diff --git a/1.a9e52d88.async.js b/111.4e4e4a4b.async.js similarity index 52% rename from 1.a9e52d88.async.js rename to 111.4e4e4a4b.async.js index c0997b5..6b1f054 100644 --- a/1.a9e52d88.async.js +++ b/111.4e4e4a4b.async.js @@ -1,16 +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. +(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[111],{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=="},85838: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;nF&&(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},49554:function(A,S,a){"use strict";a.d(S,{Z:function(){return M}});var e=a(58740),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(58740);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(58740),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},15269:function(A,S,a){"use strict";a.d(S,{Z:function(){return j}});var e=a(58740),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},96506:function(A,S,a){"use strict";a.d(S,{Z:function(){return y}});var e=a(51431),m=a(58740),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(58740),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},77670: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(58740);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},65869:function(A,S,a){"use strict";a.d(S,{Z:function(){return h}});var e=a(58740),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},80433: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(83654),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},88134: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(58740);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/1.dec64465.chunk.css b/111.dec64465.chunk.css similarity index 100% rename from 1.dec64465.chunk.css rename to 111.dec64465.chunk.css diff --git a/268.542cd1dc.async.js b/268.542cd1dc.async.js new file mode 100644 index 0000000..f296a0d --- /dev/null +++ b/268.542cd1dc.async.js @@ -0,0 +1,18 @@ +"use strict";(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[268],{45934:function(Je,be,s){s.d(be,{Z:function(){return Z}});var ce=s(26508),I=s(80268),pe=s(52528),Y=s(74710),ue=s(74809),Te=s(57338),h=s(9967),Ne=s(29161),ge=s(12826),de=s(12124),V=s.n(de),$=s(5090),M=s(77617),ee=s(17683),oe=function(C){for(var re=C.prefixCls,r=C.level,_=C.isStart,U=C.isEnd,se="".concat(re,"-indent-unit"),i=[],u=0;u0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],K=l.length,e=p.length;if(Math.abs(K-e)!==1)return{add:!1,key:null};function v(k,E){var t=new Map;k.forEach(function(n){t.set(n,!0)});var a=E.filter(function(n){return!t.has(n)});return a.length===1?a[0]:null}return K ").concat(p);return p}var We=O.forwardRef(function(l,p){var K=l.prefixCls,e=l.data,v=l.selectable,k=l.checkable,E=l.expandedKeys,t=l.selectedKeys,a=l.checkedKeys,n=l.loadedKeys,d=l.loadingKeys,f=l.halfCheckedKeys,y=l.keyEntities,S=l.disabled,N=l.dragging,w=l.dragOverNodeKey,H=l.dropPosition,m=l.motion,j=l.height,R=l.itemHeight,F=l.virtual,B=l.focusable,q=l.activeItem,le=l.focused,he=l.tabIndex,Q=l.onKeyDown,Ce=l.onFocus,xe=l.onBlur,Ee=l.onActiveChange,ke=l.onListChangeStart,Me=l.onListChangeEnd,Le=(0,o.Z)(l,u),Ie=O.useRef(null),Ze=O.useRef(null);O.useImperativeHandle(p,function(){return{scrollTo:function(Ge){Ie.current.scrollTo(Ge)},getIndentWidth:function(){return Ze.current.offsetWidth}}});var we=O.useState(E),Fe=(0,ne.Z)(we,2),vt=Fe[0],qe=Fe[1],at=O.useState(e),et=(0,ne.Z)(at,2),Ye=et[0],je=et[1],Re=O.useState(e),Ue=(0,ne.Z)(Re,2),Oe=Ue[0],Pe=Ue[1],Ve=O.useState([]),Xe=(0,ne.Z)(Ve,2),ht=Xe[0],ot=Xe[1],yt=O.useState(null),it=(0,ne.Z)(yt,2),mt=it[0],st=it[1],tt=O.useRef(e);tt.current=e;function dt(){var fe=tt.current;je(fe),Pe(fe),ot([]),st(null),Me()}(0,g.Z)(function(){qe(E);var fe=se(vt,E);if(fe.key!==null)if(fe.add){var Ge=Ye.findIndex(function(pt){var ut=pt.key;return ut===fe.key}),nt=De(i(Ye,e,fe.key),F,j,R),ct=Ye.slice();ct.splice(Ge+1,0,ye),Pe(ct),ot(nt),st("show")}else{var rt=e.findIndex(function(pt){var ut=pt.key;return ut===fe.key}),$e=De(i(e,Ye,fe.key),F,j,R),gt=e.slice();gt.splice(rt+1,0,ye),Pe(gt),ot($e),st("hide")}else Ye!==e&&(je(e),Pe(e))},[E,e]),O.useEffect(function(){N||dt()},[N]);var lt=m?Oe:e,Qe={expandedKeys:E,selectedKeys:t,loadedKeys:n,loadingKeys:d,checkedKeys:a,halfCheckedKeys:f,dragOverNodeKey:w,dropPosition:H,keyEntities:y};return O.createElement(O.Fragment,null,le&&q&&O.createElement("span",{style:D,"aria-live":"assertive"},_e(q)),O.createElement("div",null,O.createElement("input",{style:D,disabled:B===!1||S,tabIndex:B!==!1?he:null,onKeyDown:Q,onFocus:Ce,onBlur:xe,value:"",onChange:A,"aria-label":"for screen reader"})),O.createElement("div",{className:"".concat(K,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},O.createElement("div",{className:"".concat(K,"-indent")},O.createElement("div",{ref:Ze,className:"".concat(K,"-indent-unit")}))),O.createElement(P.Z,(0,ce.Z)({},Le,{data:lt,itemKey:Se,height:j,fullHeight:!1,virtual:F,itemHeight:R,prefixCls:"".concat(K,"-list"),ref:Ie,onVisibleChange:function(Ge,nt){var ct=new Set(Ge),rt=nt.filter(function($e){return!ct.has($e)});rt.some(function($e){return Se($e)===z})&&dt()}}),function(fe){var Ge=fe.pos,nt=(0,ce.Z)({},(ie(fe.data),fe.data)),ct=fe.title,rt=fe.key,$e=fe.isStart,gt=fe.isEnd,pt=(0,C.km)(rt,Ge);delete nt.key,delete nt.children;var ut=(0,C.H8)(pt,Qe);return O.createElement(U,(0,ce.Z)({},nt,ut,{title:ct,active:!!q&&rt===q.key,pos:Ge,data:fe.data,isStart:$e,isEnd:gt,motion:m,motionNodes:rt===z?ht:null,motionType:mt,onMotionStart:ke,onMotionEnd:dt,treeNodeRequiredProps:Qe,onMouseMove:function(){Ee(null)}}))}))});We.displayName="NodeList";var Be=We,G=s(67449),He=s(57324),ze=s(79532),c=10,b=function(l){(0,ge.Z)(K,l);var p=(0,de.Z)(K);function K(){var e;(0,Te.Z)(this,K);for(var v=arguments.length,k=new Array(v),E=0;E2&&arguments[2]!==void 0?arguments[2]:!1,f=e.state,y=f.dragChildrenKeys,S=f.dropPosition,N=f.dropTargetKey,w=f.dropTargetPos,H=f.dropAllowed;if(H){var m=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),N!==null){var j=(0,Y.Z)((0,Y.Z)({},(0,C.H8)(N,e.getTreeNodeRequiredProps())),{},{active:((n=e.getActiveItem())===null||n===void 0?void 0:n.key)===N,data:(0,ze.Z)(e.state.keyEntities,N).node}),R=y.indexOf(N)!==-1;(0,oe.ZP)(!R,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var F=(0,G.yx)(w),B={event:t,node:(0,C.F)(j),dragNode:e.dragNode?(0,C.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(y),dropToGap:S!==0,dropPosition:S+Number(F[F.length-1])};d||m==null||m(B),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,a){var n=e.state,d=n.expandedKeys,f=n.flattenNodes,y=a.expanded,S=a.key,N=a.isLeaf;if(!(N||t.shiftKey||t.metaKey||t.ctrlKey)){var w=f.filter(function(m){return m.key===S})[0],H=(0,C.F)((0,Y.Z)((0,Y.Z)({},(0,C.H8)(S,e.getTreeNodeRequiredProps())),{},{data:w.data}));e.setExpandedKeys(y?(0,G._5)(d,S):(0,G.L0)(d,S)),e.onNodeExpand(t,H)}},e.onNodeClick=function(t,a){var n=e.props,d=n.onClick,f=n.expandAction;f==="click"&&e.triggerExpandActionExpand(t,a),d==null||d(t,a)},e.onNodeDoubleClick=function(t,a){var n=e.props,d=n.onDoubleClick,f=n.expandAction;f==="doubleClick"&&e.triggerExpandActionExpand(t,a),d==null||d(t,a)},e.onNodeSelect=function(t,a){var n=e.state.selectedKeys,d=e.state,f=d.keyEntities,y=d.fieldNames,S=e.props,N=S.onSelect,w=S.multiple,H=a.selected,m=a[y.key],j=!H;j?w?n=(0,G.L0)(n,m):n=[m]:n=(0,G._5)(n,m);var R=n.map(function(F){var B=(0,ze.Z)(f,F);return B?B.node:null}).filter(function(F){return F});e.setUncontrolledState({selectedKeys:n}),N==null||N(n,{event:"select",selected:j,node:a,selectedNodes:R,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,a,n){var d=e.state,f=d.keyEntities,y=d.checkedKeys,S=d.halfCheckedKeys,N=e.props,w=N.checkStrictly,H=N.onCheck,m=a.key,j,R={event:"check",node:a,checked:n,nativeEvent:t.nativeEvent};if(w){var F=n?(0,G.L0)(y,m):(0,G._5)(y,m),B=(0,G._5)(S,m);j={checked:F,halfChecked:B},R.checkedNodes=F.map(function(xe){return(0,ze.Z)(f,xe)}).filter(function(xe){return xe}).map(function(xe){return xe.node}),e.setUncontrolledState({checkedKeys:F})}else{var q=(0,He.S)([].concat((0,ue.Z)(y),[m]),!0,f),le=q.checkedKeys,he=q.halfCheckedKeys;if(!n){var Q=new Set(le);Q.delete(m);var Ce=(0,He.S)(Array.from(Q),{checked:!1,halfCheckedKeys:he},f);le=Ce.checkedKeys,he=Ce.halfCheckedKeys}j=le,R.checkedNodes=[],R.checkedNodesPositions=[],R.halfCheckedKeys=he,le.forEach(function(xe){var Ee=(0,ze.Z)(f,xe);if(Ee){var ke=Ee.node,Me=Ee.pos;R.checkedNodes.push(ke),R.checkedNodesPositions.push({node:ke,pos:Me})}}),e.setUncontrolledState({checkedKeys:le},!1,{halfCheckedKeys:he})}H==null||H(j,R)},e.onNodeLoad=function(t){var a=t.key,n=new Promise(function(d,f){e.setState(function(y){var S=y.loadedKeys,N=S===void 0?[]:S,w=y.loadingKeys,H=w===void 0?[]:w,m=e.props,j=m.loadData,R=m.onLoad;if(!j||N.indexOf(a)!==-1||H.indexOf(a)!==-1)return null;var F=j(t);return F.then(function(){var B=e.state.loadedKeys,q=(0,G.L0)(B,a);R==null||R(q,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:q}),e.setState(function(le){return{loadingKeys:(0,G._5)(le.loadingKeys,a)}}),d()}).catch(function(B){if(e.setState(function(le){return{loadingKeys:(0,G._5)(le.loadingKeys,a)}}),e.loadingRetryTimes[a]=(e.loadingRetryTimes[a]||0)+1,e.loadingRetryTimes[a]>=c){var q=e.state.loadedKeys;(0,oe.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,G.L0)(q,a)}),d()}f(B)}),{loadingKeys:(0,G.L0)(H,a)}})});return n.catch(function(){}),n},e.onNodeMouseEnter=function(t,a){var n=e.props.onMouseEnter;n==null||n({event:t,node:a})},e.onNodeMouseLeave=function(t,a){var n=e.props.onMouseLeave;n==null||n({event:t,node:a})},e.onNodeContextMenu=function(t,a){var n=e.props.onRightClick;n&&(t.preventDefault(),n({event:t,node:a}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var a=arguments.length,n=new Array(a),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var d=!1,f=!0,y={};Object.keys(t).forEach(function(S){if(S in e.props){f=!1;return}d=!0,y[S]=t[S]}),d&&(!a||f)&&e.setState((0,Y.Z)((0,Y.Z)({},y),n))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,h.Z)(K,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var v=this.props,k=v.activeKey,E=v.itemScrollOffset,t=E===void 0?0:E;k!==void 0&&k!==this.state.activeKey&&(this.setState({activeKey:k}),k!==null&&this.scrollTo({key:k,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 v,k=this.state,E=k.focused,t=k.flattenNodes,a=k.keyEntities,n=k.draggingNodeKey,d=k.activeKey,f=k.dropLevelOffset,y=k.dropContainerKey,S=k.dropTargetKey,N=k.dropPosition,w=k.dragOverNodeKey,H=k.indent,m=this.props,j=m.prefixCls,R=m.className,F=m.style,B=m.showLine,q=m.focusable,le=m.tabIndex,he=le===void 0?0:le,Q=m.selectable,Ce=m.showIcon,xe=m.icon,Ee=m.switcherIcon,ke=m.draggable,Me=m.checkable,Le=m.checkStrictly,Ie=m.disabled,Ze=m.motion,we=m.loadData,Fe=m.filterTreeNode,vt=m.height,qe=m.itemHeight,at=m.virtual,et=m.titleRender,Ye=m.dropIndicatorRender,je=m.onContextMenu,Re=m.onScroll,Ue=m.direction,Oe=m.rootClassName,Pe=m.rootStyle,Ve=(0,ee.Z)(this.props,{aria:!0,data:!0}),Xe;return ke&&((0,pe.Z)(ke)==="object"?Xe=ke:typeof ke=="function"?Xe={nodeDraggable:ke}:Xe={}),O.createElement(ve.k.Provider,{value:{prefixCls:j,selectable:Q,showIcon:Ce,icon:xe,switcherIcon:Ee,draggable:Xe,draggingNodeKey:n,checkable:Me,checkStrictly:Le,disabled:Ie,keyEntities:a,dropLevelOffset:f,dropContainerKey:y,dropTargetKey:S,dropPosition:N,dragOverNodeKey:w,indent:H,direction:Ue,dropIndicatorRender:Ye,loadData:we,filterTreeNode:Fe,titleRender:et,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}},O.createElement("div",{role:"tree",className:$()(j,R,Oe,(v={},(0,I.Z)(v,"".concat(j,"-show-line"),B),(0,I.Z)(v,"".concat(j,"-focused"),E),(0,I.Z)(v,"".concat(j,"-active-focused"),d!==null),v)),style:Pe},O.createElement(Be,(0,ce.Z)({ref:this.listRef,prefixCls:j,style:F,data:t,disabled:Ie,selectable:Q,checkable:!!Me,motion:Ze,dragging:n!==null,height:vt,itemHeight:qe,virtual:at,focusable:q,focused:E,tabIndex:he,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:je,onScroll:Re},this.getTreeNodeRequiredProps(),Ve))))}}],[{key:"getDerivedStateFromProps",value:function(v,k){var E=k.prevProps,t={prevProps:v};function a(q){return!E&&q in v||E&&E[q]!==v[q]}var n,d=k.fieldNames;if(a("fieldNames")&&(d=(0,C.w$)(v.fieldNames),t.fieldNames=d),a("treeData")?n=v.treeData:a("children")&&((0,oe.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=(0,C.zn)(v.children)),n){t.treeData=n;var f=(0,C.I8)(n,{fieldNames:d});t.keyEntities=(0,Y.Z)((0,I.Z)({},z,ae),f.keyEntities)}var y=t.keyEntities||k.keyEntities;if(a("expandedKeys")||E&&a("autoExpandParent"))t.expandedKeys=v.autoExpandParent||!E&&v.defaultExpandParent?(0,G.r7)(v.expandedKeys,y):v.expandedKeys;else if(!E&&v.defaultExpandAll){var S=(0,Y.Z)({},y);delete S[z],t.expandedKeys=Object.keys(S).map(function(q){return S[q].key})}else!E&&v.defaultExpandedKeys&&(t.expandedKeys=v.autoExpandParent||v.defaultExpandParent?(0,G.r7)(v.defaultExpandedKeys,y):v.defaultExpandedKeys);if(t.expandedKeys||delete t.expandedKeys,n||t.expandedKeys){var N=(0,C.oH)(n||k.treeData,t.expandedKeys||k.expandedKeys,d);t.flattenNodes=N}if(v.selectable&&(a("selectedKeys")?t.selectedKeys=(0,G.BT)(v.selectedKeys,v):!E&&v.defaultSelectedKeys&&(t.selectedKeys=(0,G.BT)(v.defaultSelectedKeys,v))),v.checkable){var w;if(a("checkedKeys")?w=(0,G.E6)(v.checkedKeys)||{}:!E&&v.defaultCheckedKeys?w=(0,G.E6)(v.defaultCheckedKeys)||{}:n&&(w=(0,G.E6)(v.checkedKeys)||{checkedKeys:k.checkedKeys,halfCheckedKeys:k.halfCheckedKeys}),w){var H=w,m=H.checkedKeys,j=m===void 0?[]:m,R=H.halfCheckedKeys,F=R===void 0?[]:R;if(!v.checkStrictly){var B=(0,He.S)(j,!0,y);j=B.checkedKeys,F=B.halfCheckedKeys}t.checkedKeys=j,t.halfCheckedKeys=F}}return a("loadedKeys")&&(t.loadedKeys=v.loadedKeys),t}}]),K}(O.Component);b.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:te,allowDrop:function(){return!0},expandAction:!1},b.TreeNode=Z.Z;var x=b,L=x},67449:function(Je,be,s){s.d(be,{BT:function(){return O},E6:function(){return ie},L0:function(){return de},OM:function(){return oe},_5:function(){return ge},r7:function(){return ne},wA:function(){return $},yx:function(){return V}});var ce=s(42371),I=s(91002),pe=s(46644),Y=s(77617),ue=s(45934),Te=s(79532),h=s(26858),Ne=null;function ge(o,g){if(!o)return[];var P=o.slice(),T=P.indexOf(g);return T>=0&&P.splice(T,1),P}function de(o,g){var P=(o||[]).slice();return P.indexOf(g)===-1&&P.push(g),P}function V(o){return o.split("-")}function $(o,g){var P=[],T=(0,Te.Z)(g,o);function Z(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];W.forEach(function(C){var re=C.key,r=C.children;P.push(re),Z(r)})}return Z(T.children),P}function M(o){if(o.parent){var g=V(o.pos);return Number(g[g.length-1])===o.parent.children.length-1}return!1}function ee(o){var g=V(o.pos);return Number(g[g.length-1])===0}function oe(o,g,P,T,Z,W,C,re,r,_){var U,se=o.clientX,i=o.clientY,u=o.target.getBoundingClientRect(),D=u.top,A=u.height,z=(_==="rtl"?-1:1)*(((Z==null?void 0:Z.x)||0)-se),Ke=(z-12)/T,ae=(0,Te.Z)(re,P.props.eventKey);if(i-1.5?W({dragNode:c,dropNode:b,dropPosition:1})?G=1:x=!1:W({dragNode:c,dropNode:b,dropPosition:0})?G=0:W({dragNode:c,dropNode:b,dropPosition:1})?G=1:x=!1:W({dragNode:c,dropNode:b,dropPosition:1})?G=1:x=!1,{dropPosition:G,dropLevelOffset:He,dropTargetKey:ae.key,dropTargetPos:ae.pos,dragOverNodeKey:Be,dropContainerKey:G===0?null:((U=ae.parent)===null||U===void 0?void 0:U.key)||null,dropAllowed:x}}function O(o,g){if(o){var P=g.multiple;return P?o.slice():o.length?[o[0]]:o}}var ve=function(g){return g};function te(o,g){if(!o)return[];var P=g||{},T=P.processProps,Z=T===void 0?ve:T,W=Array.isArray(o)?o:[o];return W.map(function(C){var re=C.children,r=_objectWithoutProperties(C,Ne),_=te(re,g);return React.createElement(TreeNode,_extends({key:r.key},Z(r)),_)})}function ie(o){if(!o)return null;var g;if(Array.isArray(o))g={checkedKeys:o,halfCheckedKeys:void 0};else if((0,I.Z)(o)==="object")g={checkedKeys:o.checked||void 0,halfCheckedKeys:o.halfChecked||void 0};else return(0,pe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return g}function ne(o,g){var P=new Set;function T(Z){if(!P.has(Z)){var W=(0,Te.Z)(g,Z);if(W){P.add(Z);var C=W.parent,re=W.node;re.disabled||C&&T(C.key)}}}return(o||[]).forEach(function(Z){T(Z)}),(0,ce.Z)(P)}},57324:function(Je,be,s){s.d(be,{S:function(){return h}});var ce=s(46644),I=s(79532);function pe(Ne,ge){var de=new Set;return Ne.forEach(function(V){ge.has(V)||de.add(V)}),de}function Y(Ne){var ge=Ne||{},de=ge.disabled,V=ge.disableCheckbox,$=ge.checkable;return!!(de||V)||$===!1}function ue(Ne,ge,de,V){for(var $=new Set(Ne),M=new Set,ee=0;ee<=de;ee+=1){var oe=ge.get(ee)||new Set;oe.forEach(function(ie){var ne=ie.key,o=ie.node,g=ie.children,P=g===void 0?[]:g;$.has(ne)&&!V(o)&&P.filter(function(T){return!V(T.node)}).forEach(function(T){$.add(T.key)})})}for(var O=new Set,ve=de;ve>=0;ve-=1){var te=ge.get(ve)||new Set;te.forEach(function(ie){var ne=ie.parent,o=ie.node;if(!(V(o)||!ie.parent||O.has(ie.parent.key))){if(V(ie.parent.node)){O.add(ne.key);return}var g=!0,P=!1;(ne.children||[]).filter(function(T){return!V(T.node)}).forEach(function(T){var Z=T.key,W=$.has(Z);g&&!W&&(g=!1),!P&&(W||M.has(Z))&&(P=!0)}),g&&$.add(ne.key),P&&M.add(ne.key),O.add(ne.key)}})}return{checkedKeys:Array.from($),halfCheckedKeys:Array.from(pe(M,$))}}function Te(Ne,ge,de,V,$){for(var M=new Set(Ne),ee=new Set(ge),oe=0;oe<=V;oe+=1){var O=de.get(oe)||new Set;O.forEach(function(ne){var o=ne.key,g=ne.node,P=ne.children,T=P===void 0?[]:P;!M.has(o)&&!ee.has(o)&&!$(g)&&T.filter(function(Z){return!$(Z.node)}).forEach(function(Z){M.delete(Z.key)})})}ee=new Set;for(var ve=new Set,te=V;te>=0;te-=1){var ie=de.get(te)||new Set;ie.forEach(function(ne){var o=ne.parent,g=ne.node;if(!($(g)||!ne.parent||ve.has(ne.parent.key))){if($(ne.parent.node)){ve.add(o.key);return}var P=!0,T=!1;(o.children||[]).filter(function(Z){return!$(Z.node)}).forEach(function(Z){var W=Z.key,C=M.has(W);P&&!C&&(P=!1),!T&&(C||ee.has(W))&&(T=!0)}),P||M.delete(o.key),T&&ee.add(o.key),ve.add(o.key)}})}return{checkedKeys:Array.from(M),halfCheckedKeys:Array.from(pe(ee,M))}}function h(Ne,ge,de,V){var $=[],M;V?M=V:M=Y;var ee=new Set(Ne.filter(function(te){var ie=!!(0,I.Z)(de,te);return ie||$.push(te),ie})),oe=new Map,O=0;Object.keys(de).forEach(function(te){var ie=de[te],ne=ie.level,o=oe.get(ne);o||(o=new Set,oe.set(ne,o)),o.add(ie),O=Math.max(O,ne)}),(0,ce.ZP)(!$.length,"Tree missing follow keys: ".concat($.slice(0,100).map(function(te){return"'".concat(te,"'")}).join(", ")));var ve;return ge===!0?ve=ue(ee,oe,O,M):ve=Te(ee,ge.halfCheckedKeys,oe,O,M),ve}},79532:function(Je,be,s){s.d(be,{Z:function(){return ce}});function ce(I,pe){return I[pe]}},26858:function(Je,be,s){s.d(be,{F:function(){return ne},H8:function(){return ie},I8:function(){return te},km:function(){return $},oH:function(){return O},w$:function(){return M},zn:function(){return oe}});var ce=s(91002),I=s(42371),pe=s(74710),Y=s(52528),ue=s(38930),Te=s(39029),h=s(46644),Ne=s(79532),ge=["children"];function de(o,g){return"".concat(o,"-").concat(g)}function V(o){return o&&o.type&&o.type.isTreeNode}function $(o,g){return o!=null?o:g}function M(o){var g=o||{},P=g.title,T=g._title,Z=g.key,W=g.children,C=P||"title";return{title:C,_title:T||[C],key:Z||"key",children:W||"children"}}function ee(o,g){var P=new Map;function T(Z){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Z||[]).forEach(function(C){var re=C[g.key],r=C[g.children];warning(re!=null,"Tree node must have a certain key: [".concat(W).concat(re,"]"));var _=String(re);warning(!P.has(_)||re===null||re===void 0,"Same 'key' exist in the Tree: ".concat(_)),P.set(_,!0),T(r,"".concat(W).concat(_," > "))})}T(o)}function oe(o){function g(P){var T=(0,ue.Z)(P);return T.map(function(Z){if(!V(Z))return(0,h.ZP)(!Z,"Tree/TreeNode can only accept TreeNode as children."),null;var W=Z.key,C=Z.props,re=C.children,r=(0,Y.Z)(C,ge),_=(0,pe.Z)({key:W},r),U=g(re);return U.length&&(_.children=U),_}).filter(function(Z){return Z})}return g(o)}function O(o,g,P){var T=M(P),Z=T._title,W=T.key,C=T.children,re=new Set(g===!0?[]:g),r=[];function _(U){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return U.map(function(i,u){for(var D=de(se?se.pos:"0",u),A=$(i[W],D),z,Ke=0;Ke1&&arguments[1]!==void 0?arguments[1]:{},P=g.initWrapper,T=g.processEntity,Z=g.onProcessFinished,W=g.externalGetKey,C=g.childrenPropName,re=g.fieldNames,r=arguments.length>2?arguments[2]:void 0,_=W||r,U={},se={},i={posEntities:U,keyEntities:se};return P&&(i=P(i)||i),ve(o,function(u){var D=u.node,A=u.index,z=u.pos,Ke=u.key,ae=u.parentPos,ye=u.level,De=u.nodes,Se={node:D,nodes:De,index:A,key:Ke,pos:z,level:ye},_e=$(Ke,z);U[z]=Se,se[_e]=Se,Se.parent=U[ae],Se.parent&&(Se.parent.children=Se.parent.children||[],Se.parent.children.push(Se)),T&&T(Se,i)},{externalGetKey:_,childrenPropName:C,fieldNames:re}),Z&&Z(i),i}function ie(o,g){var P=g.expandedKeys,T=g.selectedKeys,Z=g.loadedKeys,W=g.loadingKeys,C=g.checkedKeys,re=g.halfCheckedKeys,r=g.dragOverNodeKey,_=g.dropPosition,U=g.keyEntities,se=(0,Ne.Z)(U,o),i={eventKey:o,expanded:P.indexOf(o)!==-1,selected:T.indexOf(o)!==-1,loaded:Z.indexOf(o)!==-1,loading:W.indexOf(o)!==-1,checked:C.indexOf(o)!==-1,halfChecked:re.indexOf(o)!==-1,pos:String(se?se.pos:""),dragOver:r===o&&_===0,dragOverGapTop:r===o&&_===-1,dragOverGapBottom:r===o&&_===1};return i}function ne(o){var g=o.data,P=o.expanded,T=o.selected,Z=o.checked,W=o.loaded,C=o.loading,re=o.halfChecked,r=o.dragOver,_=o.dragOverGapTop,U=o.dragOverGapBottom,se=o.pos,i=o.active,u=o.eventKey,D=(0,pe.Z)((0,pe.Z)({},g),{},{expanded:P,selected:T,checked:Z,loaded:W,loading:C,halfChecked:re,dragOver:r,dragOverGapTop:_,dragOverGapBottom:U,pos:se,active:i,key:u});return"props"in D||Object.defineProperty(D,"props",{get:function(){return(0,h.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),o}}),D}},95470:function(Je,be,s){s.d(be,{C8:function(){return I.Z},t4:function(){return pe.t4},x1:function(){return pe.x1},zX:function(){return ce.Z}});var ce=s(61759),I=s(41760),pe=s(9681),Y=s(66181),ue=s(46644)},5090:function(Je,be,s){s.d(be,{Z:function(){return Ne}});var ce=s(74710),I=`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`,pe=`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`,Y="".concat(I," ").concat(pe).split(/[\s\n]+/),ue="aria-",Te="data-";function h(ge,de){return ge.indexOf(de)===0}function Ne(ge){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,V;de===!1?V={aria:!0,data:!0,attr:!0}:de===!0?V={aria:!0}:V=(0,ce.Z)({},de);var $={};return Object.keys(ge).forEach(function(M){(V.aria&&(M==="role"||h(M,ue))||V.data&&h(M,Te)||V.attr&&Y.includes(M))&&($[M]=ge[M])}),$}},84249:function(Je,be,s){s.d(be,{Z:function(){return ce}});function ce(I,pe){for(var Y=I,ue=0;ue3&&arguments[3]!==void 0?arguments[3]:!1;return M.length&&oe&&ee===void 0&&!(0,ue.Z)($,M.slice(0,-1))?$:Te($,M,ee,oe)}function Ne($){return(0,ce.Z)($)==="object"&&$!==null&&Object.getPrototypeOf($)===Object.prototype}function ge($){return Array.isArray($)?[]:{}}var de=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function V(){for(var $=arguments.length,M=new Array($),ee=0;ee<$;ee++)M[ee]=arguments[ee];var oe=ge(M[0]);return M.forEach(function(O){function ve(te,ie){var ne=new Set(ie),o=(0,ue.Z)(O,te),g=Array.isArray(o);if(g||Ne(o)){if(!ne.has(o)){ne.add(o);var P=(0,ue.Z)(oe,te);g?oe=h(oe,te,[]):(!P||(0,ce.Z)(P)!=="object")&&(oe=h(oe,te,ge(o))),de(o).forEach(function(T){ve([].concat((0,pe.Z)(te),[T]),ne)})}}else oe=h(oe,te,o)}ve([])}),oe}},96232:function(Je,be,s){s.d(be,{Z:function(){return ze}});var ce=s(26508),I=s(74710),pe=s(91002),Y=s(39718),ue=s(80268),Te=s(52528),h=s(77617),Ne=s(79161),ge=s(12124),de=s.n(ge),V=s(28647),$=h.forwardRef(function(c,b){var x=c.height,L=c.offsetY,l=c.offsetX,p=c.children,K=c.prefixCls,e=c.onInnerResize,v=c.innerProps,k=c.rtl,E=c.extra,t={},a={display:"flex",flexDirection:"column"};if(L!==void 0){var n;t={height:x,position:"relative",overflow:"hidden"},a=(0,I.Z)((0,I.Z)({},a),{},(n={transform:"translateY(".concat(L,"px)")},(0,ue.Z)(n,k?"marginRight":"marginLeft",-l),(0,ue.Z)(n,"position","absolute"),(0,ue.Z)(n,"left",0),(0,ue.Z)(n,"right",0),(0,ue.Z)(n,"top",0),n))}return h.createElement("div",{style:t},h.createElement(V.Z,{onResize:function(f){var y=f.offsetHeight;y&&e&&e()}},h.createElement("div",(0,ce.Z)({style:a,className:de()((0,ue.Z)({},"".concat(K,"-holder-inner"),K)),ref:b},v),p,E)))});$.displayName="Filler";var M=$,ee=s(28637);function oe(c,b){var x="touches"in c?c.touches[0]:c;return x[b?"pageX":"pageY"]}var O=h.forwardRef(function(c,b){var x,L=c.prefixCls,l=c.rtl,p=c.scrollOffset,K=c.scrollRange,e=c.onStartMove,v=c.onStopMove,k=c.onScroll,E=c.horizontal,t=c.spinSize,a=c.containerSize,n=c.style,d=c.thumbStyle,f=h.useState(!1),y=(0,Y.Z)(f,2),S=y[0],N=y[1],w=h.useState(null),H=(0,Y.Z)(w,2),m=H[0],j=H[1],R=h.useState(null),F=(0,Y.Z)(R,2),B=F[0],q=F[1],le=!l,he=h.useRef(),Q=h.useRef(),Ce=h.useState(!1),xe=(0,Y.Z)(Ce,2),Ee=xe[0],ke=xe[1],Me=h.useRef(),Le=function(){clearTimeout(Me.current),ke(!0),Me.current=setTimeout(function(){ke(!1)},3e3)},Ie=K-a||0,Ze=a-t||0,we=Ie>0,Fe=h.useMemo(function(){if(p===0||Ie===0)return 0;var Oe=p/Ie;return Oe*Ze},[p,Ie,Ze]),vt=function(Pe){Pe.stopPropagation(),Pe.preventDefault()},qe=h.useRef({top:Fe,dragging:S,pageY:m,startTop:B});qe.current={top:Fe,dragging:S,pageY:m,startTop:B};var at=function(Pe){N(!0),j(oe(Pe,E)),q(qe.current.top),e(),Pe.stopPropagation(),Pe.preventDefault()};h.useEffect(function(){var Oe=function(ht){ht.preventDefault()},Pe=he.current,Ve=Q.current;return Pe.addEventListener("touchstart",Oe),Ve.addEventListener("touchstart",at),function(){Pe.removeEventListener("touchstart",Oe),Ve.removeEventListener("touchstart",at)}},[]);var et=h.useRef();et.current=Ie;var Ye=h.useRef();Ye.current=Ze,h.useEffect(function(){if(S){var Oe,Pe=function(ht){var ot=qe.current,yt=ot.dragging,it=ot.pageY,mt=ot.startTop;if(ee.Z.cancel(Oe),yt){var st=oe(ht,E)-it,tt=mt;!le&&E?tt-=st:tt+=st;var dt=et.current,lt=Ye.current,Qe=lt?tt/lt:0,fe=Math.ceil(Qe*dt);fe=Math.max(fe,0),fe=Math.min(fe,dt),Oe=(0,ee.Z)(function(){k(fe,E)})}},Ve=function(){N(!1),v()};return window.addEventListener("mousemove",Pe),window.addEventListener("touchmove",Pe),window.addEventListener("mouseup",Ve),window.addEventListener("touchend",Ve),function(){window.removeEventListener("mousemove",Pe),window.removeEventListener("touchmove",Pe),window.removeEventListener("mouseup",Ve),window.removeEventListener("touchend",Ve),ee.Z.cancel(Oe)}}},[S]),h.useEffect(function(){Le()},[p]),h.useImperativeHandle(b,function(){return{delayHidden:Le}});var je="".concat(L,"-scrollbar"),Re={position:"absolute",visibility:Ee&&we?null:"hidden"},Ue={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return E?(Re.height=8,Re.left=0,Re.right=0,Re.bottom=0,Ue.height="100%",Ue.width=t,le?Ue.left=Fe:Ue.right=Fe):(Re.width=8,Re.top=0,Re.bottom=0,le?Re.right=0:Re.left=0,Ue.width="100%",Ue.height=t,Ue.top=Fe),h.createElement("div",{ref:he,className:de()(je,(x={},(0,ue.Z)(x,"".concat(je,"-horizontal"),E),(0,ue.Z)(x,"".concat(je,"-vertical"),!E),(0,ue.Z)(x,"".concat(je,"-visible"),Ee),x)),style:(0,I.Z)((0,I.Z)({},Re),n),onMouseDown:vt,onMouseMove:Le},h.createElement("div",{ref:Q,className:de()("".concat(je,"-thumb"),(0,ue.Z)({},"".concat(je,"-thumb-moving"),S)),style:(0,I.Z)((0,I.Z)({},Ue),d),onMouseDown:at}))}),ve=O;function te(c){var b=c.children,x=c.setRef,L=h.useCallback(function(l){x(l)},[]);return h.cloneElement(b,{ref:L})}function ie(c,b,x,L,l,p,K){var e=K.getKey;return c.slice(b,x+1).map(function(v,k){var E=b+k,t=p(v,E,{style:{width:L}}),a=e(v);return h.createElement(te,{key:a,setRef:function(d){return l(v,d)}},t)})}var ne=s(44992),o=s(74809),g=s(57338),P=function(){function c(){(0,o.Z)(this,c),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,g.Z)(c,[{key:"set",value:function(x,L){this.maps[x]=L,this.id+=1}},{key:"get",value:function(x){return this.maps[x]}}]),c}(),T=P;function Z(c,b,x){var L=h.useState(0),l=(0,Y.Z)(L,2),p=l[0],K=l[1],e=(0,h.useRef)(new Map),v=(0,h.useRef)(new T),k=(0,h.useRef)();function E(){ee.Z.cancel(k.current)}function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;E();var d=function(){e.current.forEach(function(y,S){if(y&&y.offsetParent){var N=(0,ne.Z)(y),w=N.offsetHeight;v.current.get(S)!==w&&v.current.set(S,N.offsetHeight)}}),K(function(y){return y+1})};n?d():k.current=(0,ee.Z)(d)}function a(n,d){var f=c(n),y=e.current.get(f);d?(e.current.set(f,d),t()):e.current.delete(f),!y!=!d&&(d?b==null||b(n):x==null||x(n))}return(0,h.useEffect)(function(){return E},[]),[a,t,v.current,p]}var W=s(62305),C=s(95470),re=10;function r(c,b,x,L,l,p,K,e){var v=h.useRef(),k=h.useState(null),E=(0,Y.Z)(k,2),t=E[0],a=E[1];return(0,W.Z)(function(){if(t&&t.times=0;Ce-=1){var xe=l(b[Ce]),Ee=x.get(xe);if(Ee===void 0){N=!0;break}if(Q-=Ee,Q<=0)break}switch(m){case"top":H=R-y;break;case"bottom":H=F-S+y;break;default:{var ke=c.current.scrollTop,Me=ke+S;RMe&&(w="bottom")}}H!==null&&K(H),H!==t.lastTop&&(N=!0)}N&&a((0,I.Z)((0,I.Z)({},t),{},{times:t.times+1,targetAlign:w,lastTop:H}))}},[t,c.current]),function(n){if(n==null){e();return}if(ee.Z.cancel(v.current),typeof n=="number")K(n);else if(n&&(0,pe.Z)(n)==="object"){var d,f=n.align;"index"in n?d=n.index:d=b.findIndex(function(N){return l(N)===n.key});var y=n.offset,S=y===void 0?0:y;a({times:0,index:d,offset:S,originAlign:f})}}}function _(c,b,x,L){var l=x-c,p=b-x,K=Math.min(l,p)*2;if(L<=K){var e=Math.floor(L/2);return L%2?x+e+1:x-e}return l>p?x-(L-p):x+(L-l)}function U(c,b,x){var L=c.length,l=b.length,p,K;if(L===0&&l===0)return null;L1&&arguments[1]!==void 0?arguments[1]:!1,v=K<0&&p.current.top||K>0&&p.current.bottom;return e&&v?(clearTimeout(L.current),x.current=!1):(!v||x.current)&&l(),!x.current&&v}};function A(c,b,x,L,l){var p=(0,h.useRef)(0),K=(0,h.useRef)(null),e=(0,h.useRef)(null),v=(0,h.useRef)(!1),k=D(b,x);function E(y,S){ee.Z.cancel(K.current),p.current+=S,e.current=S,!k(S)&&(u||y.preventDefault(),K.current=(0,ee.Z)(function(){var N=v.current?10:1;l(p.current*N),p.current=0}))}function t(y,S){l(S,!0),u||y.preventDefault()}var a=(0,h.useRef)(null),n=(0,h.useRef)(null);function d(y){if(c){ee.Z.cancel(n.current),n.current=(0,ee.Z)(function(){a.current=null},2);var S=y.deltaX,N=y.deltaY,w=y.shiftKey,H=S,m=N;(a.current==="sx"||!a.current&&w&&N&&!S)&&(H=N,m=0,a.current="sx");var j=Math.abs(H),R=Math.abs(m);a.current===null&&(a.current=L&&j>R?"x":"y"),a.current==="y"?E(y,m):t(y,H)}}function f(y){c&&(v.current=y.detail===e.current)}return[d,f]}var z=14/15;function Ke(c,b,x){var L=(0,h.useRef)(!1),l=(0,h.useRef)(0),p=(0,h.useRef)(null),K=(0,h.useRef)(null),e,v=function(a){if(L.current){var n=Math.ceil(a.touches[0].pageY),d=l.current-n;l.current=n,x(d)&&a.preventDefault(),clearInterval(K.current),K.current=setInterval(function(){d*=z,(!x(d,!0)||Math.abs(d)<=.1)&&clearInterval(K.current)},16)}},k=function(){L.current=!1,e()},E=function(a){e(),a.touches.length===1&&!L.current&&(L.current=!0,l.current=Math.ceil(a.touches[0].pageY),p.current=a.target,p.current.addEventListener("touchmove",v),p.current.addEventListener("touchend",k))};e=function(){p.current&&(p.current.removeEventListener("touchmove",v),p.current.removeEventListener("touchend",k))},(0,W.Z)(function(){return c&&b.current.addEventListener("touchstart",E),function(){var t;(t=b.current)===null||t===void 0||t.removeEventListener("touchstart",E),e(),clearInterval(K.current)}},[c])}var ae=20;function ye(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,x=c/b*100;return isNaN(x)&&(x=0),x=Math.max(x,ae),x=Math.min(x,c/2),Math.floor(x)}function De(c,b,x,L){var l=h.useMemo(function(){return[new Map,[]]},[c,x.id,L]),p=(0,Y.Z)(l,2),K=p[0],e=p[1],v=function(E){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,a=K.get(E),n=K.get(t);if(a===void 0||n===void 0)for(var d=c.length,f=e.length;fp||!!f),le=d==="rtl",he=de()(L,(0,ue.Z)({},"".concat(L,"-rtl"),le),l),Q=E||_e,Ce=(0,h.useRef)(),xe=(0,h.useRef)(),Ee=(0,h.useState)(0),ke=(0,Y.Z)(Ee,2),Me=ke[0],Le=ke[1],Ie=(0,h.useState)(0),Ze=(0,Y.Z)(Ie,2),we=Ze[0],Fe=Ze[1],vt=(0,h.useState)(!1),qe=(0,Y.Z)(vt,2),at=qe[0],et=qe[1],Ye=function(){et(!0)},je=function(){et(!1)},Re=h.useCallback(function(X){return typeof a=="function"?a(X):X==null?void 0:X[a]},[a]),Ue={getKey:Re};function Oe(X){Le(function(J){var me;typeof X=="function"?me=X(J):me=X;var Ae=Ft(me);return Ce.current.scrollTop=Ae,Ae})}var Pe=(0,h.useRef)({start:0,end:Q.length}),Ve=(0,h.useRef)(),Xe=se(Q,Re),ht=(0,Y.Z)(Xe,1),ot=ht[0];Ve.current=ot;var yt=Z(Re,null,null),it=(0,Y.Z)(yt,4),mt=it[0],st=it[1],tt=it[2],dt=it[3],lt=h.useMemo(function(){if(!B)return{scrollHeight:void 0,start:0,end:Q.length-1,offset:void 0};if(!q){var X;return{scrollHeight:((X=xe.current)===null||X===void 0?void 0:X.offsetHeight)||0,start:0,end:Q.length-1,offset:void 0}}for(var J=0,me,Ae,ft,Vt=Q.length,Kt=0;Kt=Me&&me===void 0&&(me=Kt,Ae=J),bt>Me+p&&ft===void 0&&(ft=Kt),J=bt}return me===void 0&&(me=0,Ae=0,ft=Math.ceil(p/K)),ft===void 0&&(ft=Q.length-1),ft=Math.min(ft+1,Q.length-1),{scrollHeight:J,start:me,end:ft,offset:Ae}},[q,B,Me,Q,dt,p]),Qe=lt.scrollHeight,fe=lt.start,Ge=lt.end,nt=lt.offset;Pe.current.start=fe,Pe.current.end=Ge;var ct=h.useState({width:0,height:p}),rt=(0,Y.Z)(ct,2),$e=rt[0],gt=rt[1],pt=function(J){gt({width:J.width||J.offsetWidth,height:J.height||J.offsetHeight})},ut=(0,h.useRef)(),St=(0,h.useRef)(),_t=h.useMemo(function(){return ye($e.width,f)},[$e.width,f]),Ht=h.useMemo(function(){return ye($e.height,Qe)},[$e.height,Qe]),xt=Qe-p,Ct=(0,h.useRef)(xt);Ct.current=xt;function Ft(X){var J=X;return Number.isNaN(Ct.current)||(J=Math.min(J,Ct.current)),J=Math.max(J,0),J}var Rt=Me<=0,Ot=Me>=xt,Ut=D(Rt,Ot),Nt=function(){return{x:le?-we:we,y:Me}},Dt=(0,h.useRef)(Nt()),kt=(0,C.zX)(function(){if(w){var X=Nt();(Dt.current.x!==X.x||Dt.current.y!==X.y)&&(w(X),Dt.current=X)}});function Tt(X,J){var me=X;J?((0,Ne.flushSync)(function(){Fe(me)}),kt()):Oe(me)}function Wt(X){var J=X.currentTarget.scrollTop;J!==Me&&Oe(J),N==null||N(X),kt()}var Mt=function(J){var me=J,Ae=f-$e.width;return me=Math.max(me,0),me=Math.min(me,Ae),me},Bt=(0,C.zX)(function(X,J){J?((0,Ne.flushSync)(function(){Fe(function(me){var Ae=me+(le?-X:X);return Mt(Ae)})}),kt()):Oe(function(me){var Ae=me+X;return Ae})}),zt=A(B,Rt,Ot,!!f,Bt),Zt=(0,Y.Z)(zt,2),Pt=Zt[0],Lt=Zt[1];Ke(B,Ce,function(X,J){return Ut(X,J)?!1:(Pt({preventDefault:function(){},deltaY:X}),!0)}),(0,W.Z)(function(){function X(me){B&&me.preventDefault()}var J=Ce.current;return J.addEventListener("wheel",Pt),J.addEventListener("DOMMouseScroll",Lt),J.addEventListener("MozMousePixelScroll",X),function(){J.removeEventListener("wheel",Pt),J.removeEventListener("DOMMouseScroll",Lt),J.removeEventListener("MozMousePixelScroll",X)}},[B]),(0,W.Z)(function(){f&&Fe(function(X){return Mt(X)})},[$e.width,f]);var It=function(){var J,me;(J=ut.current)===null||J===void 0||J.delayHidden(),(me=St.current)===null||me===void 0||me.delayHidden()},At=r(Ce,Q,tt,K,Re,function(){return st(!0)},Oe,It);h.useImperativeHandle(b,function(){return{getScrollInfo:Nt,scrollTo:function(J){function me(Ae){return Ae&&(0,pe.Z)(Ae)==="object"&&("left"in Ae||"top"in Ae)}me(J)?(J.left!==void 0&&Fe(Mt(J.left)),At(J.top)):At(J)}}}),(0,W.Z)(function(){if(H){var X=Q.slice(fe,Ge+1);H(X,Q)}},[fe,Ge,Q]);var jt=De(Q,Re,tt,K),Gt=j==null?void 0:j({start:fe,end:Ge,virtual:q,offsetX:we,offsetY:nt,rtl:le,getSize:jt}),Yt=ie(Q,fe,Ge,f,mt,t,Ue),Et=null;p&&(Et=(0,I.Z)((0,ue.Z)({},v?"height":"maxHeight",p),We),B&&(Et.overflowY="hidden",f&&(Et.overflowX="hidden"),at&&(Et.pointerEvents="none")));var wt={};return le&&(wt.dir="rtl"),h.createElement("div",(0,ce.Z)({style:(0,I.Z)((0,I.Z)({},k),{},{position:"relative"}),className:he},wt,F),h.createElement(V.Z,{onResize:pt},h.createElement(S,{className:"".concat(L,"-holder"),style:Et,ref:Ce,onScroll:Wt,onMouseEnter:It},h.createElement(M,{prefixCls:L,height:Qe,offsetX:we,offsetY:nt,scrollWidth:f,onInnerResize:st,ref:xe,innerProps:m,rtl:le,extra:Gt},Yt))),q&&Qe>p&&h.createElement(ve,{ref:ut,prefixCls:L,scrollOffset:Me,scrollRange:Qe,rtl:le,onScroll:Tt,onStartMove:Ye,onStopMove:je,spinSize:Ht,containerSize:$e.height,style:R==null?void 0:R.verticalScrollBar,thumbStyle:R==null?void 0:R.verticalScrollBarThumb}),q&&f&&h.createElement(ve,{ref:St,prefixCls:L,scrollOffset:we,scrollRange:f,rtl:le,onScroll:Tt,onStartMove:Ye,onStopMove:je,spinSize:_t,containerSize:$e.width,horizontal:!0,style:R==null?void 0:R.horizontalScrollBar,thumbStyle:R==null?void 0:R.horizontalScrollBarThumb}))}var G=h.forwardRef(Be);G.displayName="List";var He=G,ze=He}}]); diff --git a/404.html b/404.html index fbfa5a0..9cb8bb0 100644 --- a/404.html +++ b/404.html @@ -26,6 +26,6 @@
- + \ No newline at end of file diff --git a/240.674197f2.chunk.css b/456.674197f2.chunk.css similarity index 100% rename from 240.674197f2.chunk.css rename to 456.674197f2.chunk.css diff --git a/240.75d89888.async.js b/456.8ab1751c.async.js similarity index 56% rename from 240.75d89888.async.js rename to 456.8ab1751c.async.js index 209e2ab..2ed0bfd 100644 --- a/240.75d89888.async.js +++ b/456.8ab1751c.async.js @@ -1,5 +1,5 @@ -!(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([[240],{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(Ct.h)<=240?mt=zt?Math.round(Ct.h)-b*ft:Math.round(Ct.h)+b*ft:mt=zt?Math.round(Ct.h)+b*ft:Math.round(Ct.h)-b*ft,mt<0?mt+=360:mt>=360&&(mt-=360),mt}function re(Ct,ft,zt){if(Ct.h===0&&Ct.s===0)return Ct.s;var mt;return zt?mt=Ct.s-z*ft:ft===C?mt=Ct.s+z:mt=Ct.s+k*ft,mt>1&&(mt=1),zt&&ft===A&&mt>.1&&(mt=.1),mt<.06&&(mt=.06),Number(mt.toFixed(2))}function ce(Ct,ft,zt){var mt;return zt?mt=Ct.v+N*ft:mt=Ct.v-w*ft,mt>1&&(mt=1),Number(mt.toFixed(2))}function pe(Ct){for(var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zt=[],mt=(0,I.uA)(Ct),yn=A;yn>0;yn-=1){var Bn=S(mt),Lr=P((0,I.uA)({h:te(Bn,yn,!0),s:re(Bn,yn,!0),v:ce(Bn,yn,!0)}));zt.push(Lr)}zt.push(P(mt));for(var ri=1;ri<=C;ri+=1){var gi=S(mt),ro=P((0,I.uA)({h:te(gi,ri),s:re(gi,ri),v:ce(gi,ri)}));zt.push(ro)}return ft.theme==="dark"?f.map(function(To){var _r=To.index,Bo=To.opacity,fs=P(W((0,I.uA)(ft.backgroundColor||"#141414"),(0,I.uA)(zt[_r]),Bo*100));return fs}):zt}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(Ct){fe[Ct]=pe(he[Ct]),fe[Ct].primary=fe[Ct][5],Be[Ct]=pe(he[Ct],{theme:"dark",backgroundColor:"#141414"}),Be[Ct].primary=Be[Ct][5]});var Ie=fe.red,je=fe.volcano,be=fe.gold,ve=fe.orange,ye=fe.yellow,Ce=fe.lime,xe=fe.green,Ae=fe.cyan,ge=fe.blue,We=fe.geekblue,Se=fe.purple,Pt=fe.magenta,dt=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 Ui},fp:function(){return xo},xy:function(){return $a}});var y=m(42371),I=m(74710);function b(ls){for(var Ks=0,xa,Il=0,El=ls.length;El>=4;++Il,El-=4)xa=ls.charCodeAt(Il)&255|(ls.charCodeAt(++Il)&255)<<8|(ls.charCodeAt(++Il)&255)<<16|(ls.charCodeAt(++Il)&255)<<24,xa=(xa&65535)*1540483477+((xa>>>16)*59797<<16),xa^=xa>>>24,Ks=(xa&65535)*1540483477+((xa>>>16)*59797<<16)^(Ks&65535)*1540483477+((Ks>>>16)*59797<<16);switch(El){case 3:Ks^=(ls.charCodeAt(Il+2)&255)<<16;case 2:Ks^=(ls.charCodeAt(Il+1)&255)<<8;case 1:Ks^=ls.charCodeAt(Il)&255,Ks=(Ks&65535)*1540483477+((Ks>>>16)*59797<<16)}return Ks^=Ks>>>13,Ks=(Ks&65535)*1540483477+((Ks>>>16)*59797<<16),((Ks^Ks>>>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 ls(Ks){(0,C.Z)(this,ls),(0,S.Z)(this,"instanceId",void 0),(0,S.Z)(this,"cache",new Map),this.instanceId=Ks}return(0,f.Z)(ls,[{key:"get",value:function(xa){return this.cache.get(xa.join(P))||null}},{key:"update",value:function(xa,Il){var El=xa.join(P),ml=this.cache.get(El),fu=Il(ml);fu===null?this.cache.delete(El):this.cache.set(El,fu)}}]),ls}(),te=W,re=null,ce="data-token-hash",pe="data-css-hash",he="data-cache-path",fe="__cssinjs_instance__";function Be(){var ls=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var Ks=document.body.querySelectorAll("style[".concat(pe,"]"))||[],xa=document.head.firstChild;Array.from(Ks).forEach(function(El){El[fe]=El[fe]||ls,El[fe]===ls&&document.head.insertBefore(El,xa)});var Il={};Array.from(document.querySelectorAll("style[".concat(pe,"]"))).forEach(function(El){var ml=El.getAttribute(pe);if(Il[ml]){if(El[fe]===ls){var fu;(fu=El.parentNode)===null||fu===void 0||fu.removeChild(El)}}else Il[ml]=!0})}return new te(ls)}var Ie=k.createContext({hashPriority:"low",cache:Be(),defaultCache:!0}),je=function(Ks){var xa=Ks.children,Il=_objectWithoutProperties(Ks,re),El=React.useContext(Ie),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 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:ml},xa)},be=Ie,ve=m(91002),ye=m(53261),Ce=m(68063),xe=m(39718);function Ae(ls,Ks){if(ls.length!==Ks.length)return!1;for(var xa=0;xa1&&arguments[1]!==void 0?arguments[1]:!1,fu={map:this.cache};return xa.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&&ml&&(fu.value[1]=this.cacheCallTimes++),(El=fu)===null||El===void 0?void 0:El.value}},{key:"get",value:function(xa){var Il;return(Il=this.internalGet(xa,!0))===null||Il===void 0?void 0:Il[0]}},{key:"has",value:function(xa){return!!this.internalGet(xa)}},{key:"set",value:function(xa,Il){var El=this;if(!this.has(xa)){if(this.size()+1>ls.MAX_CACHE_SIZE+ls.MAX_CACHE_OFFSET){var ml=this.keys.reduce(function(Ic,Vc){var zd=(0,xe.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."),Se+=1}return(0,f.Z)(ls,[{key:"getDerivativeToken",value:function(xa){return this.derivatives.reduce(function(Il,El){return El(xa,Il)},void 0)}}]),ls}(),dt=new ge;function He(ls){var Ks=Array.isArray(ls)?ls:[ls];return dt.has(Ks)||dt.set(Ks,new Pt(Ks)),dt.get(Ks)}var Ct=new WeakMap,ft={};function zt(ls,Ks){for(var xa=Ct,Il=0;IlVr&&Il.forEach(function(El){_n(El,Ks),uo.delete(El)})}var Ui=function(Ks,xa,Il,El){var ml=Il.getDerivativeToken(Ks),fu=(0,I.Z)((0,I.Z)({},ml),xa);return El&&(fu=El(fu)),fu};function xo(ls,Ks){var xa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Il=(0,k.useContext)(be),El=Il.cache.instanceId,ml=xa.salt,fu=ml===void 0?"":ml,Nu=xa.override,lc=Nu===void 0?ii:Nu,Ic=xa.formatToken,Vc=xa.getComputedToken,zd=zt(function(){return Object.assign.apply(Object,[{}].concat((0,y.Z)(Ks)))},Ks),eh=yn(zd),Kd=yn(lc),ad=Kr("token",[fu,ls.id,eh,Kd],function(){var ku=Vc?Vc(zd,lc,ls):Ui(zd,lc,ls,Ic),Fc=Bn(ku,fu);ku._tokenKey=Fc,Qo(Fc);var dd="".concat(si,"-").concat(z(Fc));return ku._hashId=dd,[ku,dd]},function(ku){qr(ku[0]._tokenKey,El)});return ad}var Us=m(26508),$n={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},Kn=$n,Fr="-ms-",mi="-moz-",Tr="-webkit-",ti="comm",di="rule",rn="decl",Qn="@page",Xr="@media",ao="@import",as="@charset",Bt="@viewport",pn="@supports",xr="@document",Jr="@namespace",vi="@keyframes",Ti="@font-face",co="@counter-style",Qr="@font-feature-values",oi="@layer",Zi=Math.abs,Ir=String.fromCharCode,tn=Object.assign;function Gn(ls,Ks){return wi(ls,0)^45?(((Ks<<2^wi(ls,0))<<2^wi(ls,1))<<2^wi(ls,2))<<2^wi(ls,3):0}function Ei(ls){return ls.trim()}function Ln(ls,Ks){return(ls=Ks.exec(ls))?ls[0]:ls}function Ii(ls,Ks,xa){return ls.replace(Ks,xa)}function nr(ls,Ks){return ls.indexOf(Ks)}function wi(ls,Ks){return ls.charCodeAt(Ks)|0}function Mi(ls,Ks,xa){return ls.slice(Ks,xa)}function Rr(ls){return ls.length}function Xn(ls){return ls.length}function ms(ls,Ks){return Ks.push(ls),ls}function ya(ls,Ks){return ls.map(Ks).join("")}function fa(ls,Ks){return ls.filter(function(xa){return!Ln(xa,Ks)})}function Ws(ls,Ks){for(var xa="",Il=0;Il0?wi(pr,--er):0,cl--,Dr===10&&(cl=1,Ao--),Dr}function Er(){return Dr=er<$r?wi(pr,er++):0,cl++,Dr===10&&(cl=1,Ao++),Dr}function ui(){return wi(pr,er)}function Xt(){return er}function gn(ls,Ks){return Mi(pr,ls,Ks)}function En(ls){switch(ls){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tt(ls){return Ao=cl=1,$r=Rr(pr=ls),er=0,[]}function at(ls){return pr="",ls}function gt(ls){return Ei(gn(er-1,Vn(ls===91?ls+2:ls===40?ls+1:ls)))}function Re(ls){return at(St(tt(ls)))}function lt(ls){for(;(Dr=ui())&&Dr<33;)Er();return En(ls)>2||En(Dr)>3?"":" "}function St(ls){for(;Er();)switch(En(Dr)){case 0:append(ki(er-1),ls);break;case 2:append(gt(Dr),ls);break;default:append(from(Dr),ls)}return ls}function ln(ls,Ks){for(;--Ks&&Er()&&!(Dr<48||Dr>102||Dr>57&&Dr<65||Dr>70&&Dr<97););return gn(ls,Xt()+(Ks<6&&ui()==32&&Er()==32))}function Vn(ls){for(;Er();)switch(Dr){case ls:return er;case 34:case 39:ls!==34&&ls!==39&&Vn(Dr);break;case 40:ls===41&&Vn(ls);break;case 92:Er();break}return er}function wr(ls,Ks){for(;Er()&&ls+Dr!==47+10;)if(ls+Dr===42+42&&ui()===47)break;return"/*"+gn(Ks,er-1)+"*"+Ir(ls===47?ls:Er())}function ki(ls){for(;!En(ui());)Er();return gn(ls,er)}function Vi(ls){return at(Ki("",null,null,null,[""],ls=tt(ls),0,[0],ls))}function Ki(ls,Ks,xa,Il,El,ml,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=ml,vh=Il,id=Xd;Fc;)switch(ad=vd,vd=Er()){case 40:if(ad!=108&&wi(id,zd-1)==58){nr(id+=Ii(gt(vd),"&","&\f"),"&\f")!=-1&&(dd=-1);break}case 34:case 39:case 91:id+=gt(vd);break;case 9:case 10:case 13:case 32:id+=lt(ad);break;case 92:id+=ln(Xt()-1,7);continue;case 47:switch(ui()){case 42:case 47:ms(Ns(wr(Er(),Xt()),Ks,xa,lc),lc);break;default:id+="/"}break;case 123*ku:Nu[Ic++]=Rr(id)*dd;case 125*ku:case 59:case 0:switch(vd){case 0:case 125:Fc=0;case 59+Vc:dd==-1&&(id=Ii(id,/\f/g,"")),Kd>0&&Rr(id)-zd&&ms(Kd>32?Bs(id+";",Il,xa,zd-1,lc):Bs(Ii(id," ","")+";",Il,xa,zd-2,lc),lc);break;case 59:id+=";";default:if(ms(vh=ps(id,Ks,xa,Ic,Vc,El,Nu,Xd,th=[],jd=[],zd,ml),ml),vd===123)if(Vc===0)Ki(id,Ks,vh,vh,th,ml,zd,Nu,jd);else switch(eh===99&&wi(id,3)===110?100:eh){case 100:case 108:case 109:case 115:Ki(ls,vh,vh,Il&&ms(ps(ls,vh,vh,0,0,El,Nu,Xd,El,th=[],zd,jd),jd),El,jd,zd,Nu,Il?th:jd);break;default:Ki(id,vh,vh,vh,[""],jd,0,Nu,jd)}}Ic=Vc=Kd=0,ku=dd=1,Xd=id="",zd=fu;break;case 58:zd=1+Rr(id),Kd=ad;default:if(ku<1){if(vd==123)--ku;else if(vd==125&&ku++==0&&xs()==125)continue}switch(id+=Ir(vd),vd*ku){case 38:dd=Vc>0?1:(id+="\f",-1);break;case 44:Nu[Ic++]=(Rr(id)-1)*dd,dd=1;break;case 64:ui()===45&&(id+=gt(Er())),eh=ui(),Vc=zd=Rr(Xd=id+=ki(Xt())),vd++;break;case 45:ad===45&&Rr(id)==2&&(ku=0)}}return ml}function ps(ls,Ks,xa,Il,El,ml,fu,Nu,lc,Ic,Vc,zd){for(var eh=El-1,Kd=El===0?ml:[""],ad=Xn(Kd),ku=0,Fc=0,dd=0;ku0?Kd[vd]+" "+Xd:Ii(Xd,/&\f/g,Kd[vd])))&&(lc[dd++]=th);return ci(ls,Ks,xa,El===0?di:Nu,lc,Ic,Vc,zd)}function Ns(ls,Ks,xa,Il){return ci(ls,Ks,xa,ti,Ir(Ts()),Mi(ls,2,-2),0,Il)}function Bs(ls,Ks,xa,Il,El){return ci(ls,Ks,xa,rn,Mi(ls,0,Il),Mi(ls,Il+1,-1),Il,El)}function _a(ls,Ks){var xa=Ks.path,Il=Ks.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(xa?"Error in ".concat(xa,": "):"").concat(ls).concat(Il.length?" Selector: ".concat(Il.join(" | ")):""))}var oo=function(Ks,xa,Il){if(Ks==="content"){var El=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,ml=["normal","none","initial","inherit","unset"];(typeof xa!="string"||ml.indexOf(xa)===-1&&!El.test(xa)&&(xa.charAt(0)!==xa.charAt(xa.length-1)||xa.charAt(0)!=='"'&&xa.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(xa,"\"'`."),Il)}},Ds=null,oa=function(Ks,xa,Il){Ks==="animation"&&Il.hashId&&xa!=="none"&&lintWarning("You seem to be using hashed animation '".concat(xa,"', in which case 'animationName' with Keyframe as value is recommended."),Il)},va=null;function Bl(ls){var Ks,xa=((Ks=ls.match(/:not\(([^)]*)\)/))===null||Ks===void 0?void 0:Ks[1])||"",Il=xa.split(/(\[[^[]*])|(?=[.#])/).filter(function(El){return El});return Il.length>1}function Fa(ls){return ls.parentSelectors.reduce(function(Ks,xa){return Ks?xa.includes("&")?xa.replace(/&/g,Ks):"".concat(Ks," ").concat(xa):xa},"")}var gl=function(Ks,xa,Il){var El=Fa(Il),ml=El.match(/:not\([^)]*\)/g)||[];ml.length>0&&ml.some(Bl)&&lintWarning("Concat ':not' selector not support in legacy browsers.",Il)},ua=null,Nl=function(Ks,xa,Il){switch(Ks){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(Ks,"' 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 xa=="string"){var El=xa.split(" ").map(function(Nu){return Nu.trim()});El.length===4&&El[1]!==El[3]&&lintWarning("You seem to be using '".concat(Ks,"' property with different left ").concat(Ks," and right ").concat(Ks,", 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":(xa==="left"||xa==="right")&&lintWarning("You seem to be using non-logical value '".concat(xa,"' of ").concat(Ks,", 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 xa=="string"){var ml=xa.split("/").map(function(Nu){return Nu.trim()}),fu=ml.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(xa,"' of ").concat(Ks,", 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:}},vs=null,Hi=function(Ks,xa,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)},eo=null,sa="data-ant-cssinjs-cache-path",Cs="_FILE_STYLE__";function Ka(ls){return Object.keys(ls).map(function(Ks){var xa=ls[Ks];return"".concat(Ks,":").concat(xa)}).join(";")}var $u,rc=!0;function Pc(ls){var Ks=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;$u=ls,rc=Ks}function vo(){if(!$u&&($u={},(0,ye.Z)())){var ls=document.createElement("div");ls.className=sa,ls.style.position="fixed",ls.style.visibility="hidden",ls.style.top="-9999px",document.body.appendChild(ls);var Ks=getComputedStyle(ls).content||"";Ks=Ks.replace(/^"/,"").replace(/"$/,""),Ks.split(";").forEach(function(El){var ml=El.split(":"),fu=(0,xe.Z)(ml,2),Nu=fu[0],lc=fu[1];$u[Nu]=lc});var xa=document.querySelector("style[".concat(sa,"]"));if(xa){var Il;rc=!1,(Il=xa.parentNode)===null||Il===void 0||Il.removeChild(xa)}document.body.removeChild(ls)}}function to(ls){return vo(),!!$u[ls]}function hs(ls){var Ks=$u[ls],xa=null;if(Ks&&(0,ye.Z)())if(rc)xa=Cs;else{var Il=document.querySelector("style[".concat(pe,'="').concat($u[ls],'"]'));Il?xa=Il.innerHTML:delete $u[ls]}return[xa,Ks]}var jn=(0,ye.Z)(),yr="_skip_check_",ai="_multi_value_";function hi(ls){var Ks=Ws(Vi(ls),Ua);return Ks.replace(/\{%%%\:[^;];}/g,";")}function Ji(ls){return(0,ve.Z)(ls)==="object"&&ls&&(yr in ls||ai in ls)}function so(ls,Ks,xa){if(!Ks)return ls;var Il=".".concat(Ks),El=xa==="low"?":where(".concat(Il,")"):Il,ml=ls.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 ml.join(",")}var Pi=function ls(Ks){var xa=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,Nu=xa.hashId,lc=xa.layer,Ic=xa.path,Vc=xa.hashPriority,zd=xa.transformers,eh=zd===void 0?[]:zd,Kd=xa.linters,ad=Kd===void 0?[]:Kd,ku="",Fc={};function dd(vh){var id=vh.getName(Nu);if(!Fc[id]){var nd=ls(vh.style,xa,{root:!1,parentSelectors:fu}),Pf=(0,xe.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(Ks)?Ks:[Ks]);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)&&!Ji(qd)){var cc=!1,Xc=Pf.trim(),jh=!1;(El||ml)&&Nu?Xc.startsWith("@")?cc=!0:Xc=so(Pf,Nu,Vc):El&&!Nu&&(Xc==="&"||Xc==="")&&(Xc="",jh=!0);var uf=ls(qd,xa,{root:jh,injectHash:cc,parentSelectors:[].concat((0,y.Z)(fu),[Xc])}),Lh=(0,xe.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 tl=yu.replace(/[A-Z]/g,function(wd){return"-".concat(wd.toLowerCase())}),Fu=ff;!Kn[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(tl,":").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[ai]&&Array.isArray(uh)?uh.forEach(function(yu){Th(Pf,yu)}):Th(Pf,uh)}})}}),!El)ku="{".concat(ku,"}");else if(lc&&To()){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 us(ls,Ks){return z("".concat(ls.join("%")).concat(Ks))}function ga(){return null}function $a(ls,Ks){var xa=ls.token,Il=ls.path,El=ls.hashId,ml=ls.layer,fu=ls.nonce,Nu=ls.clientOnly,lc=ls.order,Ic=lc===void 0?0:lc,Vc=k.useContext(be),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=xa._tokenKey,jd=[th].concat((0,y.Z)(Il)),vh=jn,id=Kr("style",jd,function(){var Xc=jd.join("|");if(to(Xc)){var jh=hs(Xc),uf=(0,xe.Z)(jh,2),Lh=uf[0],Sf=uf[1];if(Lh)return[Lh,th,Sf,{},Nu,Ic]}var Cp=Ks(),Nf=Pi(Cp,{hashId:El,hashPriority:ad,layer:ml,path:Il.join("-"),transformers:dd,linters:vd}),uh=(0,xe.Z)(Nf,2),Th=uh[0],yu=uh[1],ff=hi(Th),tl=us(jd,ff);return[ff,th,tl,yu,Nu,Ic]},function(Xc,jh){var uf=(0,xe.Z)(Xc,3),Lh=uf[2];(jh||zd)&&jn&&(0,Ce.jL)(Lh,{mark:pe})},function(Xc){var jh=(0,xe.Z)(Xc,4),uf=jh[0],Lh=jh[1],Sf=jh[2],Cp=jh[3];if(vh&&uf!==Cs){var Nf={mark:pe,prepend:"queue",attachTo:ku,priority:Ic},uh=typeof fu=="function"?fu():fu;uh&&(Nf.csp={nonce:uh});var Th=(0,Ce.hq)(uf,Sf,Nf);Th[fe]=Xd.instanceId,Th.setAttribute(ce,th),Object.keys(Cp).forEach(function(yu){(0,Ce.hq)(hi(Cp[yu]),"_effect-".concat(yu),Nf)})}}),nd=(0,xe.Z)(id,3),Pf=nd[0],qd=nd[1],cc=nd[2];return function(Xc){var jh;if(!Fc||vh||!Kd)jh=k.createElement(ga,null);else{var uf;jh=k.createElement("style",(0,Us.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 dl(ls){var Ks=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xa="style%",Il=Array.from(ls.cache.keys()).filter(function(Ic){return Ic.startsWith(xa)}),El={},ml={},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 Ks?Ic:"")}var lc=Il.map(function(Ic){var Vc=Ic.slice(xa.length).replace(/%/g,"|"),zd=_slicedToArray(ls.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);ml[Vc]=ad,ku&&Object.keys(ku).forEach(function(jd){El[jd]||(El[jd]=!0,Xd+=Nu(hi(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(ml),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP)),fu}var Hl=function(){function ls(Ks,xa){(0,C.Z)(this,ls),(0,S.Z)(this,"name",void 0),(0,S.Z)(this,"style",void 0),(0,S.Z)(this,"_keyframe",!0),this.name=Ks,this.style=xa}return(0,f.Z)(ls,[{key:"getName",value:function(){var xa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return xa?"".concat(xa,"-").concat(this.name):this.name}}]),ls}(),Ml=Hl;function Za(ls){if(typeof ls=="number")return[[ls],!1];var Ks=String(ls).trim(),xa=Ks.match(/(.*)(!important)/),Il=(xa?xa[1]:Ks).trim().split(/\s+/),El="",ml=0;return[Il.reduce(function(fu,Nu){return Nu.includes("(")?(El+=Nu,ml+=Nu.split("(").length-1):Nu.includes(")")?(El+=Nu,ml-=Nu.split(")").length-1,ml===0&&(fu.push(El),El="")):ml>0?El+=Nu:fu.push(Nu),fu},[]),!!xa]}function Pu(ls){return ls.notSplit=!0,ls}var ea={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 Qa(ls,Ks){var xa=ls;return Ks&&(xa="".concat(xa," !important")),{_skip_check_:!0,value:xa}}var el={visit:function(Ks){var xa={};return Object.keys(Ks).forEach(function(Il){var El=Ks[Il],ml=ea[Il];if(ml&&(typeof El=="number"||typeof El=="string")){var fu=Za(El),Nu=(0,xe.Z)(fu,2),lc=Nu[0],Ic=Nu[1];ml.length&&ml.notSplit?ml.forEach(function(Vc){xa[Vc]=Qa(El,Ic)}):ml.length===1?xa[ml[0]]=Qa(El,Ic):ml.length===2?ml.forEach(function(Vc,zd){var eh;xa[Vc]=Qa((eh=lc[zd])!==null&&eh!==void 0?eh:lc[0],Ic)}):ml.length===4?ml.forEach(function(Vc,zd){var eh,Kd;xa[Vc]=Qa((eh=(Kd=lc[zd])!==null&&Kd!==void 0?Kd:lc[zd-2])!==null&&eh!==void 0?eh:lc[0],Ic)}):xa[Il]=El}else xa[Il]=El}),xa}},Ul=null,ql=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function vu(ls,Ks){var xa=Math.pow(10,Ks+1),Il=Math.floor(ls*xa);return Math.round(Il/10)*10/xa}var au=function(){var Ks=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},xa=Ks.rootValue,Il=xa===void 0?16:xa,El=Ks.precision,ml=El===void 0?5:El,fu=Ks.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,ml);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}},Cn=null,Eu={supportModernCSS:function(){return Bo()&&me()}}},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},58781:function(nt,V,m){"use strict";m.d(V,{Z:function(){return fr}});var y=m(74710),I=m(39718),b=m(80268),z=m(52528),k=m(77617),N=m(12124),w=m.n(N),A=(0,k.createContext)({}),C=A,f=m(91002),S=m(12722),P=m(9915),W=2,te=.16,re=.05,ce=.05,pe=.15,he=5,fe=4,Be=[{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 Ie(Kr){var ii=Kr.r,si=Kr.g,uo=Kr.b,Qo=(0,S.py)(ii,si,uo);return{h:Qo.h*360,s:Qo.s,v:Qo.v}}function je(Kr){var ii=Kr.r,si=Kr.g,uo=Kr.b;return"#".concat((0,S.vq)(ii,si,uo,!1))}function be(Kr,ii,si){var uo=si/100,Qo={r:(ii.r-Kr.r)*uo+Kr.r,g:(ii.g-Kr.g)*uo+Kr.g,b:(ii.b-Kr.b)*uo+Kr.b};return Qo}function ve(Kr,ii,si){var uo;return Math.round(Kr.h)>=60&&Math.round(Kr.h)<=240?uo=si?Math.round(Kr.h)-W*ii:Math.round(Kr.h)+W*ii:uo=si?Math.round(Kr.h)+W*ii:Math.round(Kr.h)-W*ii,uo<0?uo+=360:uo>=360&&(uo-=360),uo}function ye(Kr,ii,si){if(Kr.h===0&&Kr.s===0)return Kr.s;var uo;return si?uo=Kr.s-te*ii:ii===fe?uo=Kr.s+te:uo=Kr.s+re*ii,uo>1&&(uo=1),si&&ii===he&&uo>.1&&(uo=.1),uo<.06&&(uo=.06),Number(uo.toFixed(2))}function Ce(Kr,ii,si){var uo;return si?uo=Kr.v+ce*ii:uo=Kr.v-pe*ii,uo>1&&(uo=1),Number(uo.toFixed(2))}function xe(Kr){for(var ii=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},si=[],uo=(0,P.uA)(Kr),Qo=he;Qo>0;Qo-=1){var _n=Ie(uo),Vr=je((0,P.uA)({h:ve(_n,Qo,!0),s:ye(_n,Qo,!0),v:Ce(_n,Qo,!0)}));si.push(Vr)}si.push(je(uo));for(var qr=1;qr<=fe;qr+=1){var Ui=Ie(uo),xo=je((0,P.uA)({h:ve(Ui,qr),s:ye(Ui,qr),v:Ce(Ui,qr)}));si.push(xo)}return ii.theme==="dark"?Be.map(function(Us){var $n=Us.index,Kn=Us.opacity,Fr=je(be((0,P.uA)(ii.backgroundColor||"#141414"),(0,P.uA)(si[$n]),Kn*100));return Fr}):si}var Ae={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"},ge={},We={};Object.keys(Ae).forEach(function(Kr){ge[Kr]=xe(Ae[Kr]),ge[Kr].primary=ge[Kr][5],We[Kr]=xe(Ae[Kr],{theme:"dark",backgroundColor:"#141414"}),We[Kr].primary=We[Kr][5]});var Se=ge.red,Pt=ge.volcano,dt=ge.gold,He=ge.orange,Ct=ge.yellow,ft=ge.lime,zt=ge.green,mt=ge.cyan,yn=ge.blue,Bn=ge.geekblue,Lr=ge.purple,ri=ge.magenta,gi=ge.grey,ro=m(46644),To=m(68063),_r=m(34301),Bo=m.n(_r);function fs(Kr,ii){(0,ro.ZP)(Kr,"[@ant-design/icons] ".concat(ii))}function me(Kr){return(0,f.Z)(Kr)==="object"&&typeof Kr.name=="string"&&typeof Kr.theme=="string"&&((0,f.Z)(Kr.icon)==="object"||typeof Kr.icon=="function")}function So(){var Kr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(Kr).reduce(function(ii,si){var uo=Kr[si];switch(si){case"class":ii.className=uo,delete ii.class;break;default:delete ii[si],ii[Bo()(si)]=uo}return ii},{})}function ho(Kr,ii,si){return si?k.createElement(Kr.tag,(0,y.Z)((0,y.Z)({key:ii},So(Kr.attrs)),si),(Kr.children||[]).map(function(uo,Qo){return ho(uo,"".concat(ii,"-").concat(Kr.tag,"-").concat(Qo))})):k.createElement(Kr.tag,(0,y.Z)({key:ii},So(Kr.attrs)),(Kr.children||[]).map(function(uo,Qo){return ho(uo,"".concat(ii,"-").concat(Kr.tag,"-").concat(Qo))}))}function go(Kr){return xe(Kr)[0]}function ji(Kr){return Kr?Array.isArray(Kr)?Kr:[Kr]:[]}var No={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},dn=` +!(function(){var upe=Object.defineProperty,cpe=Object.defineProperties;var hpe=Object.getOwnPropertyDescriptors;var wz=Object.getOwnPropertySymbols;var Jee=Object.prototype.hasOwnProperty,Qee=Object.prototype.propertyIsEnumerable;var E1=Math.pow,yX=(mt,q,_)=>q in mt?upe(mt,q,{enumerable:!0,configurable:!0,writable:!0,value:_}):mt[q]=_,Pf=(mt,q)=>{for(var _ in q||(q={}))Jee.call(q,_)&&yX(mt,_,q[_]);if(wz)for(var _ of wz(q))Qee.call(q,_)&&yX(mt,_,q[_]);return mt},hv=(mt,q)=>cpe(mt,hpe(q));var LS=(mt,q)=>{var _={};for(var v in mt)Jee.call(mt,v)&&q.indexOf(v)<0&&(_[v]=mt[v]);if(mt!=null&&wz)for(var v of wz(mt))q.indexOf(v)<0&&Qee.call(mt,v)&&(_[v]=mt[v]);return _};var PS=(mt,q,_)=>(yX(mt,typeof q!="symbol"?q+"":q,_),_);var Cg=(mt,q,_)=>new Promise((v,M)=>{var C=V=>{try{N(_.next(V))}catch(R){M(R)}},x=V=>{try{N(_.throw(V))}catch(R){M(R)}},N=V=>V.done?v(V.value):Promise.resolve(V.value).then(C,x);N((_=_.apply(mt,q)).next())});(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[456],{95906:function(mt){"use strict";(function(q,_){mt.exports=_()})(this,function(){function q(k){var S=[];return k.AMapUI&&S.push(_(k.AMapUI)),k.Loca&&S.push(v(k.Loca)),Promise.all(S)}function _(k){return new Promise(function(S,p){var T=[];if(k.plugins)for(var F=0;F=60&&Math.round(Bt.h)<=240?Tt=an?Math.round(Bt.h)-C*At:Math.round(Bt.h)+C*At:Tt=an?Math.round(Bt.h)+C*At:Math.round(Bt.h)-C*At,Tt<0?Tt+=360:Tt>=360&&(Tt-=360),Tt}function fe(Bt,At,an){if(Bt.h===0&&Bt.s===0)return Bt.s;var Tt;return an?Tt=Bt.s-x*At:At===S?Tt=Bt.s+x:Tt=Bt.s+N*At,Tt>1&&(Tt=1),an&&At===k&&Tt>.1&&(Tt=.1),Tt<.06&&(Tt=.06),Number(Tt.toFixed(2))}function be(Bt,At,an){var Tt;return an?Tt=Bt.v+V*At:Tt=Bt.v-R*At,Tt>1&&(Tt=1),Number(Tt.toFixed(2))}function Ae(Bt){for(var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},an=[],Tt=(0,M.uA)(Bt),Nn=k;Nn>0;Nn-=1){var mn=T(Tt),zn=F((0,M.uA)({h:he(mn,Nn,!0),s:fe(mn,Nn,!0),v:be(mn,Nn,!0)}));an.push(zn)}an.push(F(Tt));for(var Kr=1;Kr<=S;Kr+=1){var Ui=T(Tt),go=F((0,M.uA)({h:he(Ui,Kr),s:fe(Ui,Kr),v:be(Ui,Kr)}));an.push(go)}return At.theme==="dark"?p.map(function(gi){var Mr=gi.index,To=gi.opacity,ms=F(K((0,M.uA)(At.backgroundColor||"#141414"),(0,M.uA)(an[Mr]),To*100));return ms}):an}var xe={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"},Se={},it={};Object.keys(xe).forEach(function(Bt){Se[Bt]=Ae(xe[Bt]),Se[Bt].primary=Se[Bt][5],it[Bt]=Ae(xe[Bt],{theme:"dark",backgroundColor:"#141414"}),it[Bt].primary=it[Bt][5]});var Xe=Se.red,ft=Se.volcano,Me=Se.gold,Ee=Se.orange,ze=Se.yellow,Pe=Se.lime,Re=Se.green,je=Se.cyan,Ce=Se.blue,rt=Se.geekblue,Ne=Se.purple,Xt=Se.magenta,Ft=Se.grey,lt=Se.grey},84608:function(mt,q,_){"use strict";_.d(q,{E4:function(){return Dl},jG:function(){return lt},t2:function(){return Wi},fp:function(){return ir},xy:function(){return Ma}});var v=_(42371),M=_(74710);function C(Ho){for(var Ls=0,Xs,il=0,iu=Ho.length;iu>=4;++il,iu-=4)Xs=Ho.charCodeAt(il)&255|(Ho.charCodeAt(++il)&255)<<8|(Ho.charCodeAt(++il)&255)<<16|(Ho.charCodeAt(++il)&255)<<24,Xs=(Xs&65535)*1540483477+((Xs>>>16)*59797<<16),Xs^=Xs>>>24,Ls=(Xs&65535)*1540483477+((Xs>>>16)*59797<<16)^(Ls&65535)*1540483477+((Ls>>>16)*59797<<16);switch(iu){case 3:Ls^=(Ho.charCodeAt(il+2)&255)<<16;case 2:Ls^=(Ho.charCodeAt(il+1)&255)<<8;case 1:Ls^=Ho.charCodeAt(il)&255,Ls=(Ls&65535)*1540483477+((Ls>>>16)*59797<<16)}return Ls^=Ls>>>13,Ls=(Ls&65535)*1540483477+((Ls>>>16)*59797<<16),((Ls^Ls>>>15)>>>0).toString(36)}var x=C,N=_(77617),V=_.t(N,2),R=_(79102),k=_(68554),S=_(74809),p=_(57338),T=_(80268),F="%",K=function(){function Ho(Ls){(0,S.Z)(this,Ho),(0,T.Z)(this,"instanceId",void 0),(0,T.Z)(this,"cache",new Map),this.instanceId=Ls}return(0,p.Z)(Ho,[{key:"get",value:function(Xs){return this.cache.get(Xs.join(F))||null}},{key:"update",value:function(Xs,il){var iu=Xs.join(F),hu=this.cache.get(iu),ic=il(hu);ic===null?this.cache.delete(iu):this.cache.set(iu,ic)}}]),Ho}(),he=K,fe=null,be="data-token-hash",Ae="data-css-hash",xe="data-cache-path",Se="__cssinjs_instance__";function it(){var Ho=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var Ls=document.body.querySelectorAll("style[".concat(Ae,"]"))||[],Xs=document.head.firstChild;Array.from(Ls).forEach(function(iu){iu[Se]=iu[Se]||Ho,iu[Se]===Ho&&document.head.insertBefore(iu,Xs)});var il={};Array.from(document.querySelectorAll("style[".concat(Ae,"]"))).forEach(function(iu){var hu=iu.getAttribute(Ae);if(il[hu]){if(iu[Se]===Ho){var ic;(ic=iu.parentNode)===null||ic===void 0||ic.removeChild(iu)}}else il[hu]=!0})}return new he(Ho)}var Xe=N.createContext({hashPriority:"low",cache:it(),defaultCache:!0}),ft=function(Ls){var Xs=Ls.children,il=_objectWithoutProperties(Ls,fe),iu=React.useContext(Xe),hu=useMemo(function(){var ic=_objectSpread({},iu);Object.keys(il).forEach(function(pc){var qc=il[pc];il[pc]!==void 0&&(ic[pc]=qc)});var Gu=il.cache;return ic.cache=ic.cache||it(),ic.defaultCache=!Gu&&iu.defaultCache,ic},[iu,il],function(ic,Gu){return!isEqual(ic[0],Gu[0],!0)||!isEqual(ic[1],Gu[1],!0)});return React.createElement(Xe.Provider,{value:hu},Xs)},Me=Xe,Ee=_(91002),ze=_(53261),Pe=_(68063),Re=_(39718);function je(Ho,Ls){if(Ho.length!==Ls.length)return!1;for(var Xs=0;Xs1&&arguments[1]!==void 0?arguments[1]:!1,ic={map:this.cache};return Xs.forEach(function(Gu){if(!ic)ic=void 0;else{var pc,qc;ic=(pc=ic)===null||pc===void 0||(qc=pc.map)===null||qc===void 0?void 0:qc.get(Gu)}}),(il=ic)!==null&&il!==void 0&&il.value&&hu&&(ic.value[1]=this.cacheCallTimes++),(iu=ic)===null||iu===void 0?void 0:iu.value}},{key:"get",value:function(Xs){var il;return(il=this.internalGet(Xs,!0))===null||il===void 0?void 0:il[0]}},{key:"has",value:function(Xs){return!!this.internalGet(Xs)}},{key:"set",value:function(Xs,il){var iu=this;if(!this.has(Xs)){if(this.size()+1>Ho.MAX_CACHE_SIZE+Ho.MAX_CACHE_OFFSET){var hu=this.keys.reduce(function(qc,Lc){var jh=(0,Re.Z)(qc,2),Md=jh[1];return iu.internalGet(Lc)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Ne+=1}return(0,p.Z)(Ho,[{key:"getDerivativeToken",value:function(Xs){return this.derivatives.reduce(function(il,iu){return iu(Xs,il)},void 0)}}]),Ho}(),Ft=new Ce;function lt(Ho){var Ls=Array.isArray(Ho)?Ho:[Ho];return Ft.has(Ls)||Ft.set(Ls,new Xt(Ls)),Ft.get(Ls)}var Bt=new WeakMap,At={};function an(Ho,Ls){for(var Xs=Bt,il=0;ilzr&&il.forEach(function(iu){On(iu,Ls),Hi.delete(iu)})}var Wi=function(Ls,Xs,il,iu){var hu=il.getDerivativeToken(Ls),ic=(0,M.Z)((0,M.Z)({},hu),Xs);return iu&&(ic=iu(ic)),ic};function ir(Ho,Ls){var Xs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},il=(0,N.useContext)(Me),iu=il.cache.instanceId,hu=Xs.salt,ic=hu===void 0?"":hu,Gu=Xs.override,pc=Gu===void 0?xi:Gu,qc=Xs.formatToken,Lc=Xs.getComputedToken,jh=an(function(){return Object.assign.apply(Object,[{}].concat((0,v.Z)(Ls)))},Ls),Md=Nn(jh),ad=Nn(pc),kh=jr("token",[ic,Ho.id,Md,ad],function(){var hc=Lc?Lc(jh,pc,Ho):Wi(jh,pc,Ho,qc),yc=mn(hc,ic);hc._tokenKey=yc,Io(yc);var Uh="".concat(Pr,"-").concat(x(yc));return hc._hashId=Uh,[hc,Uh]},function(hc){qr(hc[0]._tokenKey,iu)});return kh}var Jn=_(26508),$t={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},Gt=$t,wn="-ms-",Zn="-moz-",_r="-webkit-",qn="comm",$n="rule",jt="decl",In="@page",vr="@media",Ur="@import",Ao="@charset",Yt="@viewport",xn="@supports",fr="@document",Nr="@namespace",bi="@keyframes",Ei="@font-face",Yi="@counter-style",di="@font-feature-values",Wr="@layer",Ni=Math.abs,kr=String.fromCharCode,Xr=Object.assign;function yo(Ho,Ls){return fi(Ho,0)^45?(((Ls<<2^fi(Ho,0))<<2^fi(Ho,1))<<2^fi(Ho,2))<<2^fi(Ho,3):0}function ls(Ho){return Ho.trim()}function Sr(Ho,Ls){return(Ho=Ls.exec(Ho))?Ho[0]:Ho}function hs(Ho,Ls,Xs){return Ho.replace(Ls,Xs)}function ta(Ho,Ls){return Ho.indexOf(Ls)}function fi(Ho,Ls){return Ho.charCodeAt(Ls)|0}function Po(Ho,Ls,Xs){return Ho.slice(Ls,Xs)}function mo(Ho){return Ho.length}function or(Ho){return Ho.length}function Oi(Ho,Ls){return Ls.push(Ho),Ho}function Wa(Ho,Ls){return Ho.map(Ls).join("")}function Sa(Ho,Ls){return Ho.filter(function(Xs){return!Sr(Xs,Ls)})}function xa(Ho,Ls){for(var Xs="",il=0;il0?fi(An,--Ai):0,_l--,to===10&&(_l=1,wo--),to}function Hr(){return to=Ai2||ur(to)>3?"":" "}function Vt(Ho){for(;Hr();)switch(ur(to)){case 0:append(eo(Ai-1),Ho);break;case 2:append(Et(to),Ho);break;default:append(from(to),Ho)}return Ho}function yn(Ho,Ls){for(;--Ls&&Hr()&&!(to<48||to>102||to>57&&to<65||to>70&&to<97););return Ln(Ho,fn()+(Ls<6&&Bi()==32&&Hr()==32))}function yr(Ho){for(;Hr();)switch(to){case Ho:return Ai;case 34:case 39:Ho!==34&&Ho!==39&&yr(to);break;case 40:Ho===41&&yr(Ho);break;case 92:Hr();break}return Ai}function Yr(Ho,Ls){for(;Hr()&&Ho+to!==47+10;)if(Ho+to===42+42&&Bi()===47)break;return"/*"+Ln(Ls,Ai-1)+"*"+kr(Ho===47?Ho:Hr())}function eo(Ho){for(;!ur(Bi());)Hr();return Ln(Ho,Ai)}function Zo(Ho){return xt(Ii("",null,null,null,[""],Ho=dt(Ho),0,[0],Ho))}function Ii(Ho,Ls,Xs,il,iu,hu,ic,Gu,pc){for(var qc=0,Lc=0,jh=ic,Md=0,ad=0,kh=0,hc=1,yc=1,Uh=1,yh=0,pd="",Ed=iu,vh=hu,zd=il,Th=pd;yc;)switch(kh=yh,yh=Hr()){case 40:if(kh!=108&&fi(Th,jh-1)==58){ta(Th+=hs(Et(yh),"&","&\f"),"&\f")!=-1&&(Uh=-1);break}case 34:case 39:case 91:Th+=Et(yh);break;case 9:case 10:case 13:case 32:Th+=wt(kh);break;case 92:Th+=yn(fn()-1,7);continue;case 47:switch(Bi()){case 42:case 47:Oi(ks(Yr(Hr(),fn()),Ls,Xs,pc),pc);break;default:Th+="/"}break;case 123*hc:Gu[qc++]=mo(Th)*Uh;case 125*hc:case 59:case 0:switch(yh){case 0:case 125:yc=0;case 59+Lc:Uh==-1&&(Th=hs(Th,/\f/g,"")),ad>0&&mo(Th)-jh&&Oi(ad>32?ba(Th+";",il,Xs,jh-1,pc):ba(hs(Th," ","")+";",il,Xs,jh-2,pc),pc);break;case 59:Th+=";";default:if(Oi(zd=Cs(Th,Ls,Xs,qc,Lc,iu,Gu,pd,Ed=[],vh=[],jh,hu),hu),yh===123)if(Lc===0)Ii(Th,Ls,zd,zd,Ed,hu,jh,Gu,vh);else switch(Md===99&&fi(Th,3)===110?100:Md){case 100:case 108:case 109:case 115:Ii(Ho,zd,zd,il&&Oi(Cs(Ho,zd,zd,0,0,iu,Gu,pd,iu,Ed=[],jh,vh),vh),iu,vh,jh,Gu,il?Ed:vh);break;default:Ii(Th,zd,zd,zd,[""],vh,0,Gu,vh)}}qc=Lc=ad=0,hc=Uh=1,pd=Th="",jh=ic;break;case 58:jh=1+mo(Th),ad=kh;default:if(hc<1){if(yh==123)--hc;else if(yh==125&&hc++==0&&Hs()==125)continue}switch(Th+=kr(yh),yh*hc){case 38:Uh=Lc>0?1:(Th+="\f",-1);break;case 44:Gu[qc++]=(mo(Th)-1)*Uh,Uh=1;break;case 64:Bi()===45&&(Th+=Et(Hr())),Md=Bi(),Lc=jh=mo(pd=Th+=eo(fn())),yh++;break;case 45:kh===45&&mo(Th)==2&&(hc=0)}}return hu}function Cs(Ho,Ls,Xs,il,iu,hu,ic,Gu,pc,qc,Lc,jh){for(var Md=iu-1,ad=iu===0?hu:[""],kh=or(ad),hc=0,yc=0,Uh=0;hc0?ad[yh]+" "+pd:hs(pd,/&\f/g,ad[yh])))&&(pc[Uh++]=Ed);return ri(Ho,Ls,Xs,iu===0?$n:Gu,pc,qc,Lc,jh)}function ks(Ho,Ls,Xs,il){return ri(Ho,Ls,Xs,qn,kr(_s()),Po(Ho,2,-2),0,il)}function ba(Ho,Ls,Xs,il,iu){return ri(Ho,Ls,Xs,jt,Po(Ho,0,il),Po(Ho,il+1,-1),il,iu)}function Zs(Ho,Ls){var Xs=Ls.path,il=Ls.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(Xs?"Error in ".concat(Xs,": "):"").concat(Ho).concat(il.length?" Selector: ".concat(il.join(" | ")):""))}var No=function(Ls,Xs,il){if(Ls==="content"){var iu=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,hu=["normal","none","initial","inherit","unset"];(typeof Xs!="string"||hu.indexOf(Xs)===-1&&!iu.test(Xs)&&(Xs.charAt(0)!==Xs.charAt(Xs.length-1)||Xs.charAt(0)!=='"'&&Xs.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(Xs,"\"'`."),il)}},js=null,ga=function(Ls,Xs,il){Ls==="animation"&&il.hashId&&Xs!=="none"&&lintWarning("You seem to be using hashed animation '".concat(Xs,"', in which case 'animationName' with Keyframe as value is recommended."),il)},da=null;function Il(Ho){var Ls,Xs=((Ls=Ho.match(/:not\(([^)]*)\)/))===null||Ls===void 0?void 0:Ls[1])||"",il=Xs.split(/(\[[^[]*])|(?=[.#])/).filter(function(iu){return iu});return il.length>1}function Al(Ho){return Ho.parentSelectors.reduce(function(Ls,Xs){return Ls?Xs.includes("&")?Xs.replace(/&/g,Ls):"".concat(Ls," ").concat(Xs):Xs},"")}var Js=function(Ls,Xs,il){var iu=Al(il),hu=iu.match(/:not\([^)]*\)/g)||[];hu.length>0&&hu.some(Il)&&lintWarning("Concat ':not' selector not support in legacy browsers.",il)},Ea=null,gl=function(Ls,Xs,il){switch(Ls){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(Ls,"' 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 Xs=="string"){var iu=Xs.split(" ").map(function(Gu){return Gu.trim()});iu.length===4&&iu[1]!==iu[3]&&lintWarning("You seem to be using '".concat(Ls,"' property with different left ").concat(Ls," and right ").concat(Ls,", 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":(Xs==="left"||Xs==="right")&&lintWarning("You seem to be using non-logical value '".concat(Xs,"' of ").concat(Ls,", 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 Xs=="string"){var hu=Xs.split("/").map(function(Gu){return Gu.trim()}),ic=hu.reduce(function(Gu,pc){if(Gu)return Gu;var qc=pc.split(" ").map(function(Lc){return Lc.trim()});return qc.length>=2&&qc[0]!==qc[1]||qc.length===3&&qc[1]!==qc[2]||qc.length===4&&qc[2]!==qc[3]?!0:Gu},!1);ic&&lintWarning("You seem to be using non-logical value '".concat(Xs,"' of ").concat(Ls,", 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:}},ds=null,Gi=function(Ls,Xs,il){il.parentSelectors.some(function(iu){var hu=iu.split(",");return hu.some(function(ic){return ic.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",il)},Jo=null,Ps="data-ant-cssinjs-cache-path",Fs="_FILE_STYLE__";function Za(Ho){return Object.keys(Ho).map(function(Ls){var Xs=Ho[Ls];return"".concat(Ls,":").concat(Xs)}).join(";")}var Nu,Tc=!0;function Pc(Ho){var Ls=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Nu=Ho,Tc=Ls}function tc(){if(!Nu&&(Nu={},(0,ze.Z)())){var Ho=document.createElement("div");Ho.className=Ps,Ho.style.position="fixed",Ho.style.visibility="hidden",Ho.style.top="-9999px",document.body.appendChild(Ho);var Ls=getComputedStyle(Ho).content||"";Ls=Ls.replace(/^"/,"").replace(/"$/,""),Ls.split(";").forEach(function(iu){var hu=iu.split(":"),ic=(0,Re.Z)(hu,2),Gu=ic[0],pc=ic[1];Nu[Gu]=pc});var Xs=document.querySelector("style[".concat(Ps,"]"));if(Xs){var il;Tc=!1,(il=Xs.parentNode)===null||il===void 0||il.removeChild(Xs)}document.body.removeChild(Ho)}}function cc(Ho){return tc(),!!Nu[Ho]}function Uu(Ho){var Ls=Nu[Ho],Xs=null;if(Ls&&(0,ze.Z)())if(Tc)Xs=Fs;else{var il=document.querySelector("style[".concat(Ae,'="').concat(Nu[Ho],'"]'));il?Xs=il.innerHTML:delete Nu[Ho]}return[Xs,Ls]}var Pn=(0,ze.Z)(),er="_skip_check_",Lr="_multi_value_";function Gr(Ho){var Ls=xa(Zo(Ho),Ml);return Ls.replace(/\{%%%\:[^;];}/g,";")}function ai(Ho){return(0,Ee.Z)(Ho)==="object"&&Ho&&(er in Ho||Lr in Ho)}function Qi(Ho,Ls,Xs){if(!Ls)return Ho;var il=".".concat(Ls),iu=Xs==="low"?":where(".concat(il,")"):il,hu=Ho.split(",").map(function(ic){var Gu,pc=ic.trim().split(/\s+/),qc=pc[0]||"",Lc=((Gu=qc.match(/^\w+/))===null||Gu===void 0?void 0:Gu[0])||"";return qc="".concat(Lc).concat(iu).concat(qc.slice(Lc.length)),[qc].concat((0,v.Z)(pc.slice(1))).join(" ")});return hu.join(",")}var Pi=function Ho(Ls){var Xs=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},il=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},iu=il.root,hu=il.injectHash,ic=il.parentSelectors,Gu=Xs.hashId,pc=Xs.layer,qc=Xs.path,Lc=Xs.hashPriority,jh=Xs.transformers,Md=jh===void 0?[]:jh,ad=Xs.linters,kh=ad===void 0?[]:ad,hc="",yc={};function Uh(zd){var Th=zd.getName(Gu);if(!yc[Th]){var gh=Ho(zd.style,Xs,{root:!1,parentSelectors:ic}),Mf=(0,Re.Z)(gh,1),gd=Mf[0];yc[Th]="@keyframes ".concat(zd.getName(Gu)).concat(gd)}}function yh(zd){var Th=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return zd.forEach(function(gh){Array.isArray(gh)?yh(gh,Th):gh&&Th.push(gh)}),Th}var pd=yh(Array.isArray(Ls)?Ls:[Ls]);if(pd.forEach(function(zd){var Th=typeof zd=="string"&&!iu?{}:zd;if(typeof Th=="string")hc+="".concat(Th,` +`);else if(Th._keyframe)Uh(Th);else{var gh=Md.reduce(function(Mf,gd){var Yu;return(gd==null||(Yu=gd.visit)===null||Yu===void 0?void 0:Yu.call(gd,Mf))||Mf},Th);Object.keys(gh).forEach(function(Mf){var gd=gh[Mf];if((0,Ee.Z)(gd)==="object"&&gd&&(Mf!=="animationName"||!gd._keyframe)&&!ai(gd)){var Yu=!1,nh=Mf.trim(),Nd=!1;(iu||hu)&&Gu?nh.startsWith("@")?Yu=!0:nh=Qi(Mf,Gu,Lc):iu&&!Gu&&(nh==="&"||nh==="")&&(nh="",Nd=!0);var df=Ho(gd,Xs,{root:Nd,injectHash:Yu,parentSelectors:[].concat((0,v.Z)(ic),[nh])}),bf=(0,Re.Z)(df,2),Of=bf[0],Yf=bf[1];yc=(0,M.Z)((0,M.Z)({},yc),Yf),hc+="".concat(nh).concat(Of)}else{let Sd=function(Eu,xf){var ol=Eu.replace(/[A-Z]/g,function(Ah){return"-".concat(Ah.toLowerCase())}),Pu=xf;!Gt[Eu]&&typeof Pu=="number"&&Pu!==0&&(Pu="".concat(Pu,"px")),Eu==="animationName"&&xf!==null&&xf!==void 0&&xf._keyframe&&(Uh(xf),Pu=xf.getName(Gu)),hc+="".concat(ol,":").concat(Pu,";")};var Bf,xd=(Bf=gd==null?void 0:gd.value)!==null&&Bf!==void 0?Bf:gd;(0,Ee.Z)(gd)==="object"&&gd!==null&&gd!==void 0&&gd[Lr]&&Array.isArray(xd)?xd.forEach(function(Eu){Sd(Mf,Eu)}):Sd(Mf,xd)}})}}),!iu)hc="{".concat(hc,"}");else if(pc&&gi()){var Ed=pc.split(","),vh=Ed[Ed.length-1].trim();hc="@layer ".concat(vh," {").concat(hc,"}"),Ed.length>1&&(hc="@layer ".concat(pc,"{%%%:%}").concat(hc))}return[hc,yc]};function fs(Ho,Ls){return x("".concat(Ho.join("%")).concat(Ls))}function Ks(){return null}function Ma(Ho,Ls){var Xs=Ho.token,il=Ho.path,iu=Ho.hashId,hu=Ho.layer,ic=Ho.nonce,Gu=Ho.clientOnly,pc=Ho.order,qc=pc===void 0?0:pc,Lc=N.useContext(Me),jh=Lc.autoClear,Md=Lc.mock,ad=Lc.defaultCache,kh=Lc.hashPriority,hc=Lc.container,yc=Lc.ssrInline,Uh=Lc.transformers,yh=Lc.linters,pd=Lc.cache,Ed=Xs._tokenKey,vh=[Ed].concat((0,v.Z)(il)),zd=Pn,Th=jr("style",vh,function(){var nh=vh.join("|");if(cc(nh)){var Nd=Uu(nh),df=(0,Re.Z)(Nd,2),bf=df[0],Of=df[1];if(bf)return[bf,Ed,Of,{},Gu,qc]}var Yf=Ls(),Bf=Pi(Yf,{hashId:iu,hashPriority:kh,layer:hu,path:il.join("-"),transformers:Uh,linters:yh}),xd=(0,Re.Z)(Bf,2),Sd=xd[0],Eu=xd[1],xf=Gr(Sd),ol=fs(vh,xf);return[xf,Ed,ol,Eu,Gu,qc]},function(nh,Nd){var df=(0,Re.Z)(nh,3),bf=df[2];(Nd||jh)&&Pn&&(0,Pe.jL)(bf,{mark:Ae})},function(nh){var Nd=(0,Re.Z)(nh,4),df=Nd[0],bf=Nd[1],Of=Nd[2],Yf=Nd[3];if(zd&&df!==Fs){var Bf={mark:Ae,prepend:"queue",attachTo:hc,priority:qc},xd=typeof ic=="function"?ic():ic;xd&&(Bf.csp={nonce:xd});var Sd=(0,Pe.hq)(df,Of,Bf);Sd[Se]=pd.instanceId,Sd.setAttribute(be,Ed),Object.keys(Yf).forEach(function(Eu){(0,Pe.hq)(Gr(Yf[Eu]),"_effect-".concat(Eu),Bf)})}}),gh=(0,Re.Z)(Th,3),Mf=gh[0],gd=gh[1],Yu=gh[2];return function(nh){var Nd;if(!yc||zd||!ad)Nd=N.createElement(Ks,null);else{var df;Nd=N.createElement("style",(0,Jn.Z)({},(df={},(0,T.Z)(df,be,gd),(0,T.Z)(df,Ae,Yu),df),{dangerouslySetInnerHTML:{__html:Mf}}))}return N.createElement(N.Fragment,null,Nd,nh)}}function qa(Ho){var Ls=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xs="style%",il=Array.from(Ho.cache.keys()).filter(function(qc){return qc.startsWith(Xs)}),iu={},hu={},ic="";function Gu(qc,Lc,jh){var Md,ad=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},kh=_objectSpread(_objectSpread({},ad),{},(Md={},_defineProperty(Md,ATTR_TOKEN,Lc),_defineProperty(Md,ATTR_MARK,jh),Md)),hc=Object.keys(kh).map(function(yc){var Uh=kh[yc];return Uh?"".concat(yc,'="').concat(Uh,'"'):null}).filter(function(yc){return yc}).join(" ");return Ls?qc:"")}var pc=il.map(function(qc){var Lc=qc.slice(Xs.length).replace(/%/g,"|"),jh=_slicedToArray(Ho.cache.get(qc)[1],6),Md=jh[0],ad=jh[1],kh=jh[2],hc=jh[3],yc=jh[4],Uh=jh[5];if(yc)return null;var yh={"data-rc-order":"prependQueue","data-rc-priority":"".concat(Uh)},pd=Gu(Md,ad,kh,yh);hu[Lc]=kh,hc&&Object.keys(hc).forEach(function(vh){iu[vh]||(iu[vh]=!0,pd+=Gu(Gr(hc[vh]),ad,"_effect-".concat(vh),yh))});var Ed=[Uh,pd];return Ed}).filter(function(qc){return qc});return pc.sort(function(qc,Lc){return qc[0]-Lc[0]}).forEach(function(qc){var Lc=_slicedToArray(qc,2),jh=Lc[1];ic+=jh}),ic+=Gu(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serializeCacheMap(hu),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP)),ic}var rl=function(){function Ho(Ls,Xs){(0,S.Z)(this,Ho),(0,T.Z)(this,"name",void 0),(0,T.Z)(this,"style",void 0),(0,T.Z)(this,"_keyframe",!0),this.name=Ls,this.style=Xs}return(0,p.Z)(Ho,[{key:"getName",value:function(){var Xs=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Xs?"".concat(Xs,"-").concat(this.name):this.name}}]),Ho}(),Dl=rl;function Oa(Ho){if(typeof Ho=="number")return[[Ho],!1];var Ls=String(Ho).trim(),Xs=Ls.match(/(.*)(!important)/),il=(Xs?Xs[1]:Ls).trim().split(/\s+/),iu="",hu=0;return[il.reduce(function(ic,Gu){return Gu.includes("(")?(iu+=Gu,hu+=Gu.split("(").length-1):Gu.includes(")")?(iu+=Gu,hu-=Gu.split(")").length-1,hu===0&&(ic.push(iu),iu="")):hu>0?iu+=Gu:ic.push(Gu),ic},[]),!!Xs]}function ju(Ho){return Ho.notSplit=!0,Ho}var Ia={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:ju(["borderTop","borderBottom"]),borderBlockStart:ju(["borderTop"]),borderBlockEnd:ju(["borderBottom"]),borderInline:ju(["borderLeft","borderRight"]),borderInlineStart:ju(["borderLeft"]),borderInlineEnd:ju(["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 Ha(Ho,Ls){var Xs=Ho;return Ls&&(Xs="".concat(Xs," !important")),{_skip_check_:!0,value:Xs}}var tl={visit:function(Ls){var Xs={};return Object.keys(Ls).forEach(function(il){var iu=Ls[il],hu=Ia[il];if(hu&&(typeof iu=="number"||typeof iu=="string")){var ic=Oa(iu),Gu=(0,Re.Z)(ic,2),pc=Gu[0],qc=Gu[1];hu.length&&hu.notSplit?hu.forEach(function(Lc){Xs[Lc]=Ha(iu,qc)}):hu.length===1?Xs[hu[0]]=Ha(iu,qc):hu.length===2?hu.forEach(function(Lc,jh){var Md;Xs[Lc]=Ha((Md=pc[jh])!==null&&Md!==void 0?Md:pc[0],qc)}):hu.length===4?hu.forEach(function(Lc,jh){var Md,ad;Xs[Lc]=Ha((Md=(ad=pc[jh])!==null&&ad!==void 0?ad:pc[jh-2])!==null&&Md!==void 0?Md:pc[0],qc)}):Xs[il]=iu}else Xs[il]=iu}),Xs}},cu=null,Xl=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function yu(Ho,Ls){var Xs=Math.pow(10,Ls+1),il=Math.floor(Ho*Xs);return Math.round(il/10)*10/Xs}var Cl=function(){var Ls=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Xs=Ls.rootValue,il=Xs===void 0?16:Xs,iu=Ls.precision,hu=iu===void 0?5:iu,ic=Ls.mediaQuery,Gu=ic===void 0?!1:ic,pc=function(jh,Md){if(!Md)return jh;var ad=parseFloat(Md);if(ad<=1)return jh;var kh=yu(ad/il,hu);return"".concat(kh,"rem")},qc=function(jh){var Md=_objectSpread({},jh);return Object.entries(jh).forEach(function(ad){var kh=_slicedToArray(ad,2),hc=kh[0],yc=kh[1];if(typeof yc=="string"&&yc.includes("px")){var Uh=yc.replace(Xl,pc);Md[hc]=Uh}!unitless[hc]&&typeof yc=="number"&&yc!==0&&(Md[hc]="".concat(yc,"px").replace(Xl,pc));var yh=hc.trim();if(yh.startsWith("@")&&yh.includes("px")&&Gu){var pd=hc.replace(Xl,pc);Md[pd]=Md[hc],delete Md[hc]}}),Md};return{visit:qc}},nu=null,Xn={supportModernCSS:function(){return To()&&De()}}},7786:function(mt,q){"use strict";var _={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"};q.Z=_},77364:function(mt,q){"use strict";var _={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"};q.Z=_},58825:function(mt,q){"use strict";var _={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"};q.Z=_},28186:function(mt,q){"use strict";var _={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"};q.Z=_},15702:function(mt,q){"use strict";var _={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"};q.Z=_},40043:function(mt,q){"use strict";var _={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"};q.Z=_},58781:function(mt,q,_){"use strict";_.d(q,{Z:function(){return wr}});var v=_(74710),M=_(39718),C=_(80268),x=_(52528),N=_(77617),V=_(12124),R=_.n(V),k=(0,N.createContext)({}),S=k,p=_(91002),T=_(12722),F=_(9915),K=2,he=.16,fe=.05,be=.05,Ae=.15,xe=5,Se=4,it=[{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 Xe(jr){var xi=jr.r,Pr=jr.g,Hi=jr.b,Io=(0,T.py)(xi,Pr,Hi);return{h:Io.h*360,s:Io.s,v:Io.v}}function ft(jr){var xi=jr.r,Pr=jr.g,Hi=jr.b;return"#".concat((0,T.vq)(xi,Pr,Hi,!1))}function Me(jr,xi,Pr){var Hi=Pr/100,Io={r:(xi.r-jr.r)*Hi+jr.r,g:(xi.g-jr.g)*Hi+jr.g,b:(xi.b-jr.b)*Hi+jr.b};return Io}function Ee(jr,xi,Pr){var Hi;return Math.round(jr.h)>=60&&Math.round(jr.h)<=240?Hi=Pr?Math.round(jr.h)-K*xi:Math.round(jr.h)+K*xi:Hi=Pr?Math.round(jr.h)+K*xi:Math.round(jr.h)-K*xi,Hi<0?Hi+=360:Hi>=360&&(Hi-=360),Hi}function ze(jr,xi,Pr){if(jr.h===0&&jr.s===0)return jr.s;var Hi;return Pr?Hi=jr.s-he*xi:xi===Se?Hi=jr.s+he:Hi=jr.s+fe*xi,Hi>1&&(Hi=1),Pr&&xi===xe&&Hi>.1&&(Hi=.1),Hi<.06&&(Hi=.06),Number(Hi.toFixed(2))}function Pe(jr,xi,Pr){var Hi;return Pr?Hi=jr.v+be*xi:Hi=jr.v-Ae*xi,Hi>1&&(Hi=1),Number(Hi.toFixed(2))}function Re(jr){for(var xi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pr=[],Hi=(0,F.uA)(jr),Io=xe;Io>0;Io-=1){var On=Xe(Hi),zr=ft((0,F.uA)({h:Ee(On,Io,!0),s:ze(On,Io,!0),v:Pe(On,Io,!0)}));Pr.push(zr)}Pr.push(ft(Hi));for(var qr=1;qr<=Se;qr+=1){var Wi=Xe(Hi),ir=ft((0,F.uA)({h:Ee(Wi,qr),s:ze(Wi,qr),v:Pe(Wi,qr)}));Pr.push(ir)}return xi.theme==="dark"?it.map(function(Jn){var $t=Jn.index,Gt=Jn.opacity,wn=ft(Me((0,F.uA)(xi.backgroundColor||"#141414"),(0,F.uA)(Pr[$t]),Gt*100));return wn}):Pr}var je={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"},Ce={},rt={};Object.keys(je).forEach(function(jr){Ce[jr]=Re(je[jr]),Ce[jr].primary=Ce[jr][5],rt[jr]=Re(je[jr],{theme:"dark",backgroundColor:"#141414"}),rt[jr].primary=rt[jr][5]});var Ne=Ce.red,Xt=Ce.volcano,Ft=Ce.gold,lt=Ce.orange,Bt=Ce.yellow,At=Ce.lime,an=Ce.green,Tt=Ce.cyan,Nn=Ce.blue,mn=Ce.geekblue,zn=Ce.purple,Kr=Ce.magenta,Ui=Ce.grey,go=_(46644),gi=_(68063),Mr=_(34301),To=_.n(Mr);function ms(jr,xi){(0,go.ZP)(jr,"[@ant-design/icons] ".concat(xi))}function De(jr){return(0,p.Z)(jr)==="object"&&typeof jr.name=="string"&&typeof jr.theme=="string"&&((0,p.Z)(jr.icon)==="object"||typeof jr.icon=="function")}function Oo(){var jr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(jr).reduce(function(xi,Pr){var Hi=jr[Pr];switch(Pr){case"class":xi.className=Hi,delete xi.class;break;default:delete xi[Pr],xi[To()(Pr)]=Hi}return xi},{})}function $i(jr,xi,Pr){return Pr?N.createElement(jr.tag,(0,v.Z)((0,v.Z)({key:xi},Oo(jr.attrs)),Pr),(jr.children||[]).map(function(Hi,Io){return $i(Hi,"".concat(xi,"-").concat(jr.tag,"-").concat(Io))})):N.createElement(jr.tag,(0,v.Z)({key:xi},Oo(jr.attrs)),(jr.children||[]).map(function(Hi,Io){return $i(Hi,"".concat(xi,"-").concat(jr.tag,"-").concat(Io))}))}function co(jr){return Re(jr)[0]}function Vr(jr){return jr?Array.isArray(jr)?jr:[jr]:[]}var Ro={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Tn=` .anticon { display: inline-block; color: inherit; @@ -53,7 +53,7 @@ transform: rotate(360deg); } } -`,Ve=function(){var ii=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dn,si=(0,k.useContext)(C),uo=si.csp;(0,k.useEffect)(function(){(0,To.hq)(ii,"@ant-design-icons",{prepend:!0,csp:uo})},[])},yt=["icon","className","onClick","style","primaryColor","secondaryColor"],xt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Wt(Kr){var ii=Kr.primaryColor,si=Kr.secondaryColor;xt.primaryColor=ii,xt.secondaryColor=si||go(ii),xt.calculated=!!si}function sn(){return(0,y.Z)({},xt)}var Ot=function(ii){var si=ii.icon,uo=ii.className,Qo=ii.onClick,_n=ii.style,Vr=ii.primaryColor,qr=ii.secondaryColor,Ui=(0,z.Z)(ii,yt),xo=xt;if(Vr&&(xo={primaryColor:Vr,secondaryColor:qr||go(Vr)}),Ve(),fs(me(si),"icon should be icon definiton, but got ".concat(si)),!me(si))return null;var Us=si;return Us&&typeof Us.icon=="function"&&(Us=(0,y.Z)((0,y.Z)({},Us),{},{icon:Us.icon(xo.primaryColor,xo.secondaryColor)})),ho(Us.icon,"svg-".concat(Us.name),(0,y.Z)({className:uo,onClick:Qo,style:_n,"data-icon":Us.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Ui))};Ot.displayName="IconReact",Ot.getTwoToneColors=sn,Ot.setTwoToneColors=Wt;var Tt=Ot;function bt(Kr){var ii=ji(Kr),si=(0,I.Z)(ii,2),uo=si[0],Qo=si[1];return Tt.setTwoToneColors({primaryColor:uo,secondaryColor:Qo})}function Ht(){var Kr=Tt.getTwoToneColors();return Kr.calculated?[Kr.primaryColor,Kr.secondaryColor]:Kr.primaryColor}var zn=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];bt("#1890ff");var en=k.forwardRef(function(Kr,ii){var si,uo=Kr.className,Qo=Kr.icon,_n=Kr.spin,Vr=Kr.rotate,qr=Kr.tabIndex,Ui=Kr.onClick,xo=Kr.twoToneColor,Us=(0,z.Z)(Kr,zn),$n=k.useContext(C),Kn=$n.prefixCls,Fr=Kn===void 0?"anticon":Kn,mi=$n.rootClassName,Tr=w()(mi,Fr,(si={},(0,b.Z)(si,"".concat(Fr,"-").concat(Qo.name),!!Qo.name),(0,b.Z)(si,"".concat(Fr,"-spin"),!!_n||Qo.name==="loading"),si),uo),ti=qr;ti===void 0&&Ui&&(ti=-1);var di=Vr?{msTransform:"rotate(".concat(Vr,"deg)"),transform:"rotate(".concat(Vr,"deg)")}:void 0,rn=ji(xo),Qn=(0,I.Z)(rn,2),Xr=Qn[0],ao=Qn[1];return k.createElement("span",(0,y.Z)((0,y.Z)({role:"img","aria-label":Qo.name},Us),{},{ref:ii,tabIndex:ti,onClick:Ui,className:Tr}),k.createElement(Tt,{icon:Qo,primaryColor:Xr,secondaryColor:ao,style:di}))});en.displayName="AntdIcon",en.getTwoToneColor=Ht,en.setTwoToneColor=bt;var fr=en},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(58781),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(58781),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(58781),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(58781),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(58781),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(58781),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(58781),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(58781),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(58781),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(58781),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(58781),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(58781),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(58781),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(58781),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(58781),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(58781),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(58781),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(58781),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(58781),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(58781),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)},91851:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Ct}});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),te=m(46644);function re(ft){return ft.replace(/-(.)/g,function(zt,mt){return mt.toUpperCase()})}function ce(ft,zt){(0,te.ZP)(ft,"[@ant-design/icons] ".concat(zt))}function pe(ft){return(0,S.Z)(ft)==="object"&&typeof ft.name=="string"&&typeof ft.theme=="string"&&((0,S.Z)(ft.icon)==="object"||typeof ft.icon=="function")}function he(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(ft).reduce(function(zt,mt){var yn=ft[mt];switch(mt){case"class":zt.className=yn,delete zt.class;break;default:delete zt[mt],zt[re(mt)]=yn}return zt},{})}function fe(ft,zt,mt){return mt?k.createElement(ft.tag,(0,f.Z)((0,f.Z)({key:zt},he(ft.attrs)),mt),(ft.children||[]).map(function(yn,Bn){return fe(yn,"".concat(zt,"-").concat(ft.tag,"-").concat(Bn))})):k.createElement(ft.tag,(0,f.Z)({key:zt},he(ft.attrs)),(ft.children||[]).map(function(yn,Bn){return fe(yn,"".concat(zt,"-").concat(ft.tag,"-").concat(Bn))}))}function Be(ft){return(0,A.R_)(ft)[0]}function Ie(ft){return ft?Array.isArray(ft)?ft:[ft]:[]}var je={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},be=` +`,nt=function(){var xi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tn,Pr=(0,N.useContext)(S),Hi=Pr.csp;(0,N.useEffect)(function(){(0,gi.hq)(xi,"@ant-design-icons",{prepend:!0,csp:Hi})},[])},Ct=["icon","className","onClick","style","primaryColor","secondaryColor"],Ht={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function hn(jr){var xi=jr.primaryColor,Pr=jr.secondaryColor;Ht.primaryColor=xi,Ht.secondaryColor=Pr||co(xi),Ht.calculated=!!Pr}function En(){return(0,v.Z)({},Ht)}var rn=function(xi){var Pr=xi.icon,Hi=xi.className,Io=xi.onClick,On=xi.style,zr=xi.primaryColor,qr=xi.secondaryColor,Wi=(0,x.Z)(xi,Ct),ir=Ht;if(zr&&(ir={primaryColor:zr,secondaryColor:qr||co(zr)}),nt(),ms(De(Pr),"icon should be icon definiton, but got ".concat(Pr)),!De(Pr))return null;var Jn=Pr;return Jn&&typeof Jn.icon=="function"&&(Jn=(0,v.Z)((0,v.Z)({},Jn),{},{icon:Jn.icon(ir.primaryColor,ir.secondaryColor)})),$i(Jn.icon,"svg-".concat(Jn.name),(0,v.Z)({className:Hi,onClick:Io,style:On,"data-icon":Jn.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Wi))};rn.displayName="IconReact",rn.getTwoToneColors=En,rn.setTwoToneColors=hn;var Jt=rn;function Mt(jr){var xi=Vr(jr),Pr=(0,M.Z)(xi,2),Hi=Pr[0],Io=Pr[1];return Jt.setTwoToneColors({primaryColor:Hi,secondaryColor:Io})}function Qt(){var jr=Jt.getTwoToneColors();return jr.calculated?[jr.primaryColor,jr.secondaryColor]:jr.primaryColor}var Dn=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Mt("#1890ff");var sn=N.forwardRef(function(jr,xi){var Pr,Hi=jr.className,Io=jr.icon,On=jr.spin,zr=jr.rotate,qr=jr.tabIndex,Wi=jr.onClick,ir=jr.twoToneColor,Jn=(0,x.Z)(jr,Dn),$t=N.useContext(S),Gt=$t.prefixCls,wn=Gt===void 0?"anticon":Gt,Zn=$t.rootClassName,_r=R()(Zn,wn,(Pr={},(0,C.Z)(Pr,"".concat(wn,"-").concat(Io.name),!!Io.name),(0,C.Z)(Pr,"".concat(wn,"-spin"),!!On||Io.name==="loading"),Pr),Hi),qn=qr;qn===void 0&&Wi&&(qn=-1);var $n=zr?{msTransform:"rotate(".concat(zr,"deg)"),transform:"rotate(".concat(zr,"deg)")}:void 0,jt=Vr(ir),In=(0,M.Z)(jt,2),vr=In[0],Ur=In[1];return N.createElement("span",(0,v.Z)((0,v.Z)({role:"img","aria-label":Io.name},Jn),{},{ref:xi,tabIndex:qn,onClick:Wi,className:_r}),N.createElement(Jt,{icon:Io,primaryColor:vr,secondaryColor:Ur,style:$n}))});sn.displayName="AntdIcon",sn.getTwoToneColor=Qt,sn.setTwoToneColor=Mt;var wr=sn},63887:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(74710),M=_(77617),C={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"},x=C,N=_(58781),V=function(S,p){return M.createElement(N.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:p,icon:x}))};V.displayName="CaretRightOutlined";var R=M.forwardRef(V)},66850:function(mt,q,_){"use strict";var v=_(74710),M=_(77617),C=_(7786),x=_(58781),N=function(R,k){return M.createElement(x.Z,(0,v.Z)((0,v.Z)({},R),{},{ref:k,icon:C.Z}))};N.displayName="CloseOutlined",q.Z=M.forwardRef(N)},36584:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(74710),M=_(77617),C={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"},x=C,N=_(58781),V=function(S,p){return M.createElement(N.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:p,icon:x}))};V.displayName="CloudDownloadOutlined";var R=M.forwardRef(V)},25394:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(74710),M=_(77617),C={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"},x=C,N=_(58781),V=function(S,p){return M.createElement(N.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:p,icon:x}))};V.displayName="CloudUploadOutlined";var R=M.forwardRef(V)},74307:function(mt,q,_){"use strict";var v=_(74710),M=_(77617),C=_(77364),x=_(58781),N=function(R,k){return M.createElement(x.Z,(0,v.Z)((0,v.Z)({},R),{},{ref:k,icon:C.Z}))};N.displayName="DeleteOutlined",q.Z=M.forwardRef(N)},69768:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(74710),M=_(77617),C={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"},x=C,N=_(58781),V=function(S,p){return M.createElement(N.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:p,icon:x}))};V.displayName="DingtalkOutlined";var R=M.forwardRef(V)},41445:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(74710),M=_(77617),C={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"},x=C,N=_(58781),V=function(S,p){return M.createElement(N.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:p,icon:x}))};V.displayName="FieldBinaryOutlined";var R=M.forwardRef(V)},64015:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(74710),M=_(77617),C={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"},x=C,N=_(58781),V=function(S,p){return M.createElement(N.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:p,icon:x}))};V.displayName="FieldStringOutlined";var R=M.forwardRef(V)},54068:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(74710),M=_(77617),C={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"},x=C,N=_(58781),V=function(S,p){return M.createElement(N.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:p,icon:x}))};V.displayName="FileTextOutlined";var R=M.forwardRef(V)},7741:function(mt,q,_){"use strict";var v=_(74710),M=_(77617),C=_(58825),x=_(58781),N=function(R,k){return M.createElement(x.Z,(0,v.Z)((0,v.Z)({},R),{},{ref:k,icon:C.Z}))};N.displayName="FilterFilled",q.Z=M.forwardRef(N)},28909:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(74710),M=_(77617),C={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"},x=C,N=_(58781),V=function(S,p){return M.createElement(N.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:p,icon:x}))};V.displayName="FilterOutlined";var R=M.forwardRef(V)},9971:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(74710),M=_(77617),C={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"},x=C,N=_(58781),V=function(S,p){return M.createElement(N.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:p,icon:x}))};V.displayName="FlagOutlined";var R=M.forwardRef(V)},68380:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(74710),M=_(77617),C={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"},x=C,N=_(58781),V=function(S,p){return M.createElement(N.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:p,icon:x}))};V.displayName="GithubOutlined";var R=M.forwardRef(V)},54977:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(74710),M=_(77617),C={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"},x=C,N=_(58781),V=function(S,p){return M.createElement(N.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:p,icon:x}))};V.displayName="GlobalOutlined";var R=M.forwardRef(V)},22840:function(mt,q,_){"use strict";var v=_(74710),M=_(77617),C=_(28186),x=_(58781),N=function(R,k){return M.createElement(x.Z,(0,v.Z)((0,v.Z)({},R),{},{ref:k,icon:C.Z}))};N.displayName="PlusOutlined",q.Z=M.forwardRef(N)},43056:function(mt,q,_){"use strict";var v=_(74710),M=_(77617),C=_(15702),x=_(58781),N=function(R,k){return M.createElement(x.Z,(0,v.Z)((0,v.Z)({},R),{},{ref:k,icon:C.Z}))};N.displayName="PlusSquareOutlined",q.Z=M.forwardRef(N)},83624:function(mt,q,_){"use strict";var v=_(74710),M=_(77617),C=_(40043),x=_(58781),N=function(R,k){return M.createElement(x.Z,(0,v.Z)((0,v.Z)({},R),{},{ref:k,icon:C.Z}))};N.displayName="QuestionCircleOutlined",q.Z=M.forwardRef(N)},96278:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(74710),M=_(77617),C={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"},x=C,N=_(58781),V=function(S,p){return M.createElement(N.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:p,icon:x}))};V.displayName="SaveOutlined";var R=M.forwardRef(V)},48619:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(74710),M=_(77617),C={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"},x=C,N=_(58781),V=function(S,p){return M.createElement(N.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:p,icon:x}))};V.displayName="SettingOutlined";var R=M.forwardRef(V)},43959:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(74710),M=_(77617),C={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"},x=C,N=_(58781),V=function(S,p){return M.createElement(N.Z,(0,v.Z)((0,v.Z)({},S),{},{ref:p,icon:x}))};V.displayName="TableOutlined";var R=M.forwardRef(V)},91851:function(mt,q,_){"use strict";_.d(q,{Z:function(){return Bt}});var v=_(26508),M=_(39718),C=_(80268),x=_(52528),N=_(77617),V=_(12124),R=_.n(V),k=_(63511),S=_(35954),p=_(74710),T=_(91002),F=_(68063),K=_(85207),he=_(46644);function fe(At){return At.replace(/-(.)/g,function(an,Tt){return Tt.toUpperCase()})}function be(At,an){(0,he.ZP)(At,"[@ant-design/icons] ".concat(an))}function Ae(At){return(0,T.Z)(At)==="object"&&typeof At.name=="string"&&typeof At.theme=="string"&&((0,T.Z)(At.icon)==="object"||typeof At.icon=="function")}function xe(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(At).reduce(function(an,Tt){var Nn=At[Tt];switch(Tt){case"class":an.className=Nn,delete an.class;break;default:delete an[Tt],an[fe(Tt)]=Nn}return an},{})}function Se(At,an,Tt){return Tt?N.createElement(At.tag,(0,p.Z)((0,p.Z)({key:an},xe(At.attrs)),Tt),(At.children||[]).map(function(Nn,mn){return Se(Nn,"".concat(an,"-").concat(At.tag,"-").concat(mn))})):N.createElement(At.tag,(0,p.Z)({key:an},xe(At.attrs)),(At.children||[]).map(function(Nn,mn){return Se(Nn,"".concat(an,"-").concat(At.tag,"-").concat(mn))}))}function it(At){return(0,k.R_)(At)[0]}function Xe(At){return At?Array.isArray(At)?At:[At]:[]}var ft={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Me=` .anticon { display: inline-block; color: inherit; @@ -107,42 +107,42 @@ transform: rotate(360deg); } } -`,ve=function(zt){var mt=(0,k.useContext)(C.Z),yn=mt.csp,Bn=mt.prefixCls,Lr=be;Bn&&(Lr=Lr.replace(/anticon/g,Bn)),(0,k.useEffect)(function(){var ri=zt.current,gi=(0,W.A)(ri);(0,P.hq)(Lr,"@ant-design-icons",{prepend:!0,csp:yn,attachTo:gi})},[])},ye=["icon","className","onClick","style","primaryColor","secondaryColor"],Ce={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function xe(ft){var zt=ft.primaryColor,mt=ft.secondaryColor;Ce.primaryColor=zt,Ce.secondaryColor=mt||Be(zt),Ce.calculated=!!mt}function Ae(){return(0,f.Z)({},Ce)}var ge=function(zt){var mt=zt.icon,yn=zt.className,Bn=zt.onClick,Lr=zt.style,ri=zt.primaryColor,gi=zt.secondaryColor,ro=(0,z.Z)(zt,ye),To=k.useRef(),_r=Ce;if(ri&&(_r={primaryColor:ri,secondaryColor:gi||Be(ri)}),ve(To),ce(pe(mt),"icon should be icon definiton, but got ".concat(mt)),!pe(mt))return null;var Bo=mt;return Bo&&typeof Bo.icon=="function"&&(Bo=(0,f.Z)((0,f.Z)({},Bo),{},{icon:Bo.icon(_r.primaryColor,_r.secondaryColor)})),fe(Bo.icon,"svg-".concat(Bo.name),(0,f.Z)((0,f.Z)({className:yn,onClick:Bn,style:Lr,"data-icon":Bo.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},ro),{},{ref:To}))};ge.displayName="IconReact",ge.getTwoToneColors=Ae,ge.setTwoToneColors=xe;var We=ge;function Se(ft){var zt=Ie(ft),mt=(0,I.Z)(zt,2),yn=mt[0],Bn=mt[1];return We.setTwoToneColors({primaryColor:yn,secondaryColor:Bn})}function Pt(){var ft=We.getTwoToneColors();return ft.calculated?[ft.primaryColor,ft.secondaryColor]:ft.primaryColor}var dt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Se(A.iN.primary);var He=k.forwardRef(function(ft,zt){var mt,yn=ft.className,Bn=ft.icon,Lr=ft.spin,ri=ft.rotate,gi=ft.tabIndex,ro=ft.onClick,To=ft.twoToneColor,_r=(0,z.Z)(ft,dt),Bo=k.useContext(C.Z),fs=Bo.prefixCls,me=fs===void 0?"anticon":fs,So=Bo.rootClassName,ho=w()(So,me,(mt={},(0,b.Z)(mt,"".concat(me,"-").concat(Bn.name),!!Bn.name),(0,b.Z)(mt,"".concat(me,"-spin"),!!Lr||Bn.name==="loading"),mt),yn),go=gi;go===void 0&&ro&&(go=-1);var ji=ri?{msTransform:"rotate(".concat(ri,"deg)"),transform:"rotate(".concat(ri,"deg)")}:void 0,No=Ie(To),dn=(0,I.Z)(No,2),Ve=dn[0],yt=dn[1];return k.createElement("span",(0,y.Z)({role:"img","aria-label":Bn.name},_r,{ref:zt,tabIndex:go,onClick:ro,className:ho}),k.createElement(We,{icon:Bn,primaryColor:Ve,secondaryColor:yt,style:ji}))});He.displayName="AntdIcon",He.getTwoToneColor=Pt,He.setTwoToneColor=Se;var Ct=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",te="viewport",re="popper",ce="reference",pe=f.reduce(function(we,ze){return we.concat([ze+"-"+S,ze+"-"+P])},[]),he=[].concat(f,[C]).reduce(function(we,ze){return we.concat([ze,ze+"-"+S,ze+"-"+P])},[]),fe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Be(we){return we?(we.nodeName||"").toLowerCase():null}function Ie(we){if(we==null)return window;if(""+we!="[object Window]"){var ze=we.ownerDocument;return ze&&ze.defaultView||window}return we}function je(we){return we instanceof Ie(we).Element||we instanceof Element}function be(we){return we instanceof Ie(we).HTMLElement||we instanceof HTMLElement}function ve(we){return typeof ShadowRoot!="undefined"&&(we instanceof Ie(we).ShadowRoot||we instanceof ShadowRoot)}var ye={name:"applyStyles",enabled:!0,phase:"write",fn:function(we){var ze=we.state;Object.keys(ze.elements).forEach(function(Je){var Oe=ze.styles[Je]||{},ot=ze.attributes[Je]||{},Lt=ze.elements[Je];be(Lt)&&Be(Lt)&&(Object.assign(Lt.style,Oe),Object.keys(ot).forEach(function(on){var Fn=ot[on];Fn===!1?Lt.removeAttribute(on):Lt.setAttribute(on,Fn===!0?"":Fn)}))})},effect:function(we){var ze=we.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]||{},on=Object.keys(ze.styles.hasOwnProperty(Oe)?ze.styles[Oe]:Je[Oe]).reduce(function(Fn,Yn){return Fn[Yn]="",Fn},{});be(ot)&&Be(ot)&&(Object.assign(ot.style,on),Object.keys(Lt).forEach(function(Fn){ot.removeAttribute(Fn)}))})}},requires:["computeStyles"]};function Ce(we){return we.split("-")[0]}var xe=Math.max,Ae=Math.min,ge=Math.round;function We(){var we=navigator.userAgentData;return we!=null&&we.brands&&Array.isArray(we.brands)?we.brands.map(function(ze){return ze.brand+"/"+ze.version}).join(" "):navigator.userAgent}function Se(){return!/^((?!chrome|android).)*safari/i.test(We())}function Pt(we,ze,Je){ze===void 0&&(ze=!1),Je===void 0&&(Je=!1);var Oe=we.getBoundingClientRect(),ot=1,Lt=1;ze&&be(we)&&(ot=we.offsetWidth>0&&ge(Oe.width)/we.offsetWidth||1,Lt=we.offsetHeight>0&&ge(Oe.height)/we.offsetHeight||1);var on=(je(we)?Ie(we):window).visualViewport,Fn=!Se()&&Je,Yn=(Oe.left+(Fn&&on?on.offsetLeft:0))/ot,zi=(Oe.top+(Fn&&on?on.offsetTop:0))/Lt,ns=Oe.width/ot,Fo=Oe.height/Lt;return{width:ns,height:Fo,top:zi,right:Yn+ns,bottom:zi+Fo,left:Yn,x:Yn,y:zi}}function dt(we){var ze=Pt(we),Je=we.offsetWidth,Oe=we.offsetHeight;return Math.abs(ze.width-Je)>1||(Je=ze.width),Math.abs(ze.height-Oe)>1||(Oe=ze.height),{x:we.offsetLeft,y:we.offsetTop,width:Je,height:Oe}}function He(we,ze){var Je=ze.getRootNode&&ze.getRootNode();if(we.contains(ze))return!0;if(Je&&ve(Je)){var Oe=ze;do{if(Oe&&we.isSameNode(Oe))return!0;Oe=Oe.parentNode||Oe.host}while(Oe)}return!1}function Ct(we){return Ie(we).getComputedStyle(we)}function ft(we){return["table","td","th"].indexOf(Be(we))>=0}function zt(we){return((je(we)?we.ownerDocument:we.document)||window.document).documentElement}function mt(we){return Be(we)==="html"?we:we.assignedSlot||we.parentNode||(ve(we)?we.host:null)||zt(we)}function yn(we){return be(we)&&Ct(we).position!=="fixed"?we.offsetParent:null}function Bn(we){for(var ze=Ie(we),Je=yn(we);Je&&ft(Je)&&Ct(Je).position==="static";)Je=yn(Je);return Je&&(Be(Je)==="html"||Be(Je)==="body"&&Ct(Je).position==="static")?ze:Je||function(Oe){var ot=/firefox/i.test(We());if(/Trident/i.test(We())&&be(Oe)&&Ct(Oe).position==="fixed")return null;var Lt=mt(Oe);for(ve(Lt)&&(Lt=Lt.host);be(Lt)&&0>["html","body"].indexOf(Be(Lt));){var on=Ct(Lt);if(on.transform!=="none"||on.perspective!=="none"||on.contain==="paint"||["transform","perspective"].indexOf(on.willChange)!==-1||ot&&on.willChange==="filter"||ot&&on.filter&&on.filter!=="none")return Lt;Lt=Lt.parentNode}return null}(we)||ze}function Lr(we){return 0>["top","bottom"].indexOf(we)?"y":"x"}function ri(we,ze,Je){return xe(we,Ae(ze,Je))}function gi(we){return Object.assign({},{top:0,right:0,bottom:0,left:0},we)}function ro(we,ze){return ze.reduce(function(Je,Oe){return Je[Oe]=we,Je},{})}var To={name:"arrow",enabled:!0,phase:"main",fn:function(we){var ze,Je=we.state,Oe=we.name,ot=we.options,Lt=Je.elements.arrow,on=Je.modifiersData.popperOffsets,Fn=Ce(Je.placement),Yn=Lr(Fn),zi=[A,w].indexOf(Fn)>=0?"height":"width";if(Lt&&on){var ns=function(pu,ic){return gi(typeof(pu=typeof pu=="function"?pu(Object.assign({},ic.rects,{placement:ic.placement})):pu)!="number"?pu:ro(pu,f))}(ot.padding,Je),Fo=dt(Lt),Ho=Yn==="y"?k:A,zu=Yn==="y"?N:w,gu=Je.rects.reference[zi]+Je.rects.reference[Yn]-on[Yn]-Je.rects.popper[zi],Gl=on[Yn]-Je.rects.reference[Yn],Sl=Bn(Lt),Kl=Sl?Yn==="y"?Sl.clientHeight||0:Sl.clientWidth||0:0,il=Kl/2-Fo[zi]/2+(gu/2-Gl/2),Ga=ri(ns[Ho],il,Kl-Fo[zi]-ns[zu]);Je.modifiersData[Oe]=((ze={})[Yn]=Ga,ze.centerOffset=Ga-il,ze)}},effect:function(we){var ze=we.state,Je=we.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 _r(we){return we.split("-")[1]}var Bo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fs(we){var ze,Je=we.popper,Oe=we.popperRect,ot=we.placement,Lt=we.variation,on=we.offsets,Fn=we.position,Yn=we.gpuAcceleration,zi=we.adaptive,ns=we.roundOffsets,Fo=we.isFixed,Ho=on.x,zu=Ho===void 0?0:Ho,gu=on.y,Gl=gu===void 0?0:gu,Sl=typeof ns=="function"?ns({x:zu,y:Gl}):{x:zu,y:Gl};zu=Sl.x,Gl=Sl.y;var Kl=on.hasOwnProperty("x"),il=on.hasOwnProperty("y"),Ga=A,pu=k,ic=window;if(zi){var od=Bn(Je),Oo="clientHeight",Qh="clientWidth";od===Ie(Je)&&Ct(od=zt(Je)).position!=="static"&&Fn==="absolute"&&(Oo="scrollHeight",Qh="scrollWidth"),(ot===k||(ot===A||ot===w)&&Lt===P)&&(pu=N,Gl-=(Fo&&od===ic&&ic.visualViewport?ic.visualViewport.height:od[Oo])-Oe.height,Gl*=Yn?1:-1),(ot===A||(ot===k||ot===N)&&Lt===P)&&(Ga=w,zu-=(Fo&&od===ic&&ic.visualViewport?ic.visualViewport.width:od[Qh])-Oe.width,zu*=Yn?1:-1)}var xc,hh=Object.assign({position:Fn},zi&&Bo),Gd=ns===!0?function(_,R){var G=_.y,le=R.devicePixelRatio||1;return{x:ge(_.x*le)/le||0,y:ge(G*le)/le||0}}({x:zu,y:Gl},Ie(Je)):{x:zu,y:Gl};return zu=Gd.x,Gl=Gd.y,Object.assign({},hh,Yn?((xc={})[pu]=il?"0":"",xc[Ga]=Kl?"0":"",xc.transform=(ic.devicePixelRatio||1)>1?"translate3d("+zu+"px, "+Gl+"px, 0)":"translate("+zu+"px, "+Gl+"px)",xc):((ze={})[pu]=il?Gl+"px":"",ze[Ga]=Kl?zu+"px":"",ze.transform="",ze))}var me={passive:!0},So={left:"right",right:"left",bottom:"top",top:"bottom"};function ho(we){return we.replace(/left|right|bottom|top/g,function(ze){return So[ze]})}var go={start:"end",end:"start"};function ji(we){return we.replace(/start|end/g,function(ze){return go[ze]})}function No(we){var ze=Ie(we);return{scrollLeft:ze.pageXOffset,scrollTop:ze.pageYOffset}}function dn(we){return Pt(zt(we)).left+No(we).scrollLeft}function Ve(we){var ze=Ct(we);return/auto|scroll|overlay|hidden/.test(ze.overflow+ze.overflowY+ze.overflowX)}function yt(we){return 0>["html","body","#document"].indexOf(Be(we))?be(we)&&Ve(we)?we:yt(mt(we)):we.ownerDocument.body}function xt(we,ze){var Je;ze===void 0&&(ze=[]);var Oe=yt(we),ot=Oe===((Je=we.ownerDocument)==null?void 0:Je.body),Lt=Ie(Oe),on=ot?[Lt].concat(Lt.visualViewport||[],Ve(Oe)?Oe:[]):Oe,Fn=ze.concat(on);return ot?Fn:Fn.concat(xt(mt(on)))}function Wt(we){return Object.assign({},we,{left:we.x,top:we.y,right:we.x+we.width,bottom:we.y+we.height})}function sn(we,ze,Je){return ze===te?Wt(function(Oe,ot){var Lt=Ie(Oe),on=zt(Oe),Fn=Lt.visualViewport,Yn=on.clientWidth,zi=on.clientHeight,ns=0,Fo=0;if(Fn){Yn=Fn.width,zi=Fn.height;var Ho=Se();(Ho||!Ho&&ot==="fixed")&&(ns=Fn.offsetLeft,Fo=Fn.offsetTop)}return{width:Yn,height:zi,x:ns+dn(Oe),y:Fo}}(we,Je)):je(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=zt(Oe),on=No(Oe),Fn=(ot=Oe.ownerDocument)==null?void 0:ot.body,Yn=xe(Lt.scrollWidth,Lt.clientWidth,Fn?Fn.scrollWidth:0,Fn?Fn.clientWidth:0),zi=xe(Lt.scrollHeight,Lt.clientHeight,Fn?Fn.scrollHeight:0,Fn?Fn.clientHeight:0),ns=-on.scrollLeft+dn(Oe),Fo=-on.scrollTop;return Ct(Fn||Lt).direction==="rtl"&&(ns+=xe(Lt.clientWidth,Fn?Fn.clientWidth:0)-Yn),{width:Yn,height:zi,x:ns,y:Fo}}(zt(we)))}function Ot(we,ze,Je,Oe){var ot=ze==="clippingParents"?function(Fn){var Yn=xt(mt(Fn)),zi=["absolute","fixed"].indexOf(Ct(Fn).position)>=0&&be(Fn)?Bn(Fn):Fn;return je(zi)?Yn.filter(function(ns){return je(ns)&&He(ns,zi)&&Be(ns)!=="body"}):[]}(we):[].concat(ze),Lt=[].concat(ot,[Je]),on=Lt.reduce(function(Fn,Yn){var zi=sn(we,Yn,Oe);return Fn.top=xe(zi.top,Fn.top),Fn.right=Ae(zi.right,Fn.right),Fn.bottom=Ae(zi.bottom,Fn.bottom),Fn.left=xe(zi.left,Fn.left),Fn},sn(we,Lt[0],Oe));return on.width=on.right-on.left,on.height=on.bottom-on.top,on.x=on.left,on.y=on.top,on}function Tt(we){var ze,Je=we.reference,Oe=we.element,ot=we.placement,Lt=ot?Ce(ot):null,on=ot?_r(ot):null,Fn=Je.x+Je.width/2-Oe.width/2,Yn=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:Yn};break;case A:ze={x:Je.x-Oe.width,y:Yn};break;default:ze={x:Je.x,y:Je.y}}var zi=Lt?Lr(Lt):null;if(zi!=null){var ns=zi==="y"?"height":"width";switch(on){case S:ze[zi]=ze[zi]-(Je[ns]/2-Oe[ns]/2);break;case P:ze[zi]=ze[zi]+(Je[ns]/2-Oe[ns]/2)}}return ze}function bt(we,ze){ze===void 0&&(ze={});var Je=ze.placement,Oe=Je===void 0?we.placement:Je,ot=ze.strategy,Lt=ot===void 0?we.strategy:ot,on=ze.boundary,Fn=on===void 0?W:on,Yn=ze.rootBoundary,zi=Yn===void 0?te:Yn,ns=ze.elementContext,Fo=ns===void 0?re:ns,Ho=ze.altBoundary,zu=Ho!==void 0&&Ho,gu=ze.padding,Gl=gu===void 0?0:gu,Sl=gi(typeof Gl!="number"?Gl:ro(Gl,f)),Kl=we.rects.popper,il=we.elements[zu?Fo===re?ce:re:Fo],Ga=Ot(je(il)?il:il.contextElement||zt(we.elements.popper),Fn,zi,Lt),pu=Pt(we.elements.reference),ic=Tt({reference:pu,element:Kl,strategy:"absolute",placement:Oe}),od=Wt(Object.assign({},Kl,ic)),Oo=Fo===re?od:pu,Qh={top:Ga.top-Oo.top+Sl.top,bottom:Oo.bottom-Ga.bottom+Sl.bottom,left:Ga.left-Oo.left+Sl.left,right:Oo.right-Ga.right+Sl.right},xc=we.modifiersData.offset;if(Fo===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(we,ze){ze===void 0&&(ze={});var Je=ze.boundary,Oe=ze.rootBoundary,ot=ze.padding,Lt=ze.flipVariations,on=ze.allowedAutoPlacements,Fn=on===void 0?he:on,Yn=_r(ze.placement),zi=Yn?Lt?pe:pe.filter(function(Ho){return _r(Ho)===Yn}):f,ns=zi.filter(function(Ho){return Fn.indexOf(Ho)>=0});ns.length===0&&(ns=zi);var Fo=ns.reduce(function(Ho,zu){return Ho[zu]=bt(we,{placement:zu,boundary:Je,rootBoundary:Oe,padding:ot})[Ce(zu)],Ho},{});return Object.keys(Fo).sort(function(Ho,zu){return Fo[Ho]-Fo[zu]})}var zn={name:"flip",enabled:!0,phase:"main",fn:function(we){var ze=we.state,Je=we.options,Oe=we.name;if(!ze.modifiersData[Oe]._skip){for(var ot=Je.mainAxis,Lt=ot===void 0||ot,on=Je.altAxis,Fn=on===void 0||on,Yn=Je.fallbackPlacements,zi=Je.padding,ns=Je.boundary,Fo=Je.rootBoundary,Ho=Je.altBoundary,zu=Je.flipVariations,gu=zu===void 0||zu,Gl=Je.allowedAutoPlacements,Sl=ze.options.placement,Kl=Ce(Sl),il=Yn||(Kl===Sl||!gu?[ho(Sl)]:function(cr){if(Ce(cr)===C)return[];var Ur=ho(cr);return[ji(cr),Ur,ji(Ur)]}(Sl)),Ga=[Sl].concat(il).reduce(function(cr,Ur){return cr.concat(Ce(Ur)===C?Ht(ze,{placement:Ur,boundary:ns,rootBoundary:Fo,padding:zi,flipVariations:gu,allowedAutoPlacements:Gl}):Ur)},[]),pu=ze.rects.reference,ic=ze.rects.popper,od=new Map,Oo=!0,Qh=Ga[0],xc=0;Ga.length>xc;xc++){var hh=Ga[xc],Gd=Ce(hh),_=_r(hh)===S,R=[k,N].indexOf(Gd)>=0,G=R?"width":"height",le=bt(ze,{placement:hh,boundary:ns,rootBoundary:Fo,altBoundary:Ho,padding:zi}),ke=R?_?w:A:_?N:k;pu[G]>ic[G]&&(ke=ho(ke));var Qe=ho(ke),wt=[];if(Lt&&wt.push(0>=le[Gd]),Fn&&wt.push(0>=le[ke],0>=le[Qe]),wt.every(function(cr){return cr})){Qh=hh,Oo=!1;break}od.set(hh,wt)}if(Oo)for(var jt=function(cr){var Ur=Ga.find(function(bi){var _o=od.get(bi);if(_o)return _o.slice(0,cr).every(function(zo){return zo})});if(Ur)return Qh=Ur,"break"},Nn=gu?3:1;Nn>0&&jt(Nn)!=="break";Nn--);ze.placement!==Qh&&(ze.modifiersData[Oe]._skip=!0,ze.placement=Qh,ze.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function en(we,ze,Je){return Je===void 0&&(Je={x:0,y:0}),{top:we.top-ze.height-Je.y,right:we.right-ze.width+Je.x,bottom:we.bottom-ze.height+Je.y,left:we.left-ze.width-Je.x}}function fr(we){return[k,w,N,A].some(function(ze){return we[ze]>=0})}var Kr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(we){var ze=we.state,Je=we.name,Oe=we.options.offset,ot=Oe===void 0?[0,0]:Oe,Lt=he.reduce(function(Yn,zi){return Yn[zi]=function(ns,Fo,Ho){var zu=Ce(ns),gu=0>[A,k].indexOf(zu)?1:-1,Gl=typeof Ho=="function"?Ho(Object.assign({},Fo,{placement:ns})):Ho,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}}(zi,ze.rects,ot),Yn},{}),on=Lt[ze.placement],Fn=on.y;ze.modifiersData.popperOffsets!=null&&(ze.modifiersData.popperOffsets.x+=on.x,ze.modifiersData.popperOffsets.y+=Fn),ze.modifiersData[Je]=Lt}},ii={name:"preventOverflow",enabled:!0,phase:"main",fn:function(we){var ze=we.state,Je=we.options,Oe=we.name,ot=Je.mainAxis,Lt=ot===void 0||ot,on=Je.altAxis,Fn=on!==void 0&&on,Yn=Je.tether,zi=Yn===void 0||Yn,ns=Je.tetherOffset,Fo=ns===void 0?0:ns,Ho=bt(ze,{boundary:Je.boundary,rootBoundary:Je.rootBoundary,padding:Je.padding,altBoundary:Je.altBoundary}),zu=Ce(ze.placement),gu=_r(ze.placement),Gl=!gu,Sl=Lr(zu),Kl=Sl==="x"?"y":"x",il=ze.modifiersData.popperOffsets,Ga=ze.rects.reference,pu=ze.rects.popper,ic=typeof Fo=="function"?Fo(Object.assign({},ze.rects,{placement:ze.placement})):Fo,od=typeof ic=="number"?{mainAxis:ic,altAxis:ic}:Object.assign({mainAxis:0,altAxis:0},ic),Oo=ze.modifiersData.offset?ze.modifiersData.offset[ze.placement]:null,Qh={x:0,y:0};if(il){if(Lt){var xc,hh=Sl==="y"?k:A,Gd=Sl==="y"?N:w,_=Sl==="y"?"height":"width",R=il[Sl],G=R+Ho[hh],le=R-Ho[Gd],ke=zi?-pu[_]/2:0,Qe=gu===S?Ga[_]:pu[_],wt=gu===S?-pu[_]:-Ga[_],jt=ze.elements.arrow,Nn=zi&&jt?dt(jt):{width:0,height:0},cr=ze.modifiersData["arrow#persistent"]?ze.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ur=cr[hh],bi=cr[Gd],_o=ri(0,Ga[_],Nn[_]),zo=Gl?Ga[_]/2-ke-_o-Ur-od.mainAxis:Qe-_o-Ur-od.mainAxis,qs=Gl?-Ga[_]/2+ke+_o+bi+od.mainAxis:wt+_o+bi+od.mainAxis,ra=ze.elements.arrow&&Bn(ze.elements.arrow),al=(xc=Oo==null?void 0:Oo[Sl])!=null?xc:0,Pa=R+qs-al,Ol=ri(zi?Ae(G,R+zo-al-(ra?Sl==="y"?ra.clientTop||0:ra.clientLeft||0:0)):G,R,zi?xe(le,Pa):le);il[Sl]=Ol,Qh[Sl]=Ol-R}if(Fn){var jl,cu=il[Kl],lu=Kl==="y"?"height":"width",Uu=cu+Ho[Sl==="x"?k:A],kc=cu-Ho[Sl==="x"?N:w],ac=[k,A].indexOf(zu)!==-1,_d=(jl=Oo==null?void 0:Oo[Kl])!=null?jl:0,Xu=ac?Uu:cu-Ga[lu]-pu[lu]-_d+od.altAxis,Nd=ac?cu+Ga[lu]+pu[lu]-_d-od.altAxis:kc,qt=zi&&ac?function(On,hr,Gr){var bo=ri(On,hr,Gr);return bo>Gr?Gr:bo}(Xu,cu,Nd):ri(zi?Xu:Uu,cu,zi?Nd:kc);il[Kl]=qt,Qh[Kl]=qt-cu}ze.modifiersData[Oe]=Qh}},requiresIfExists:["offset"]};function si(we,ze,Je){Je===void 0&&(Je=!1);var Oe,ot,Lt=be(ze),on=be(ze)&&function(Fo){var Ho=Fo.getBoundingClientRect(),zu=ge(Ho.width)/Fo.offsetWidth||1,gu=ge(Ho.height)/Fo.offsetHeight||1;return zu!==1||gu!==1}(ze),Fn=zt(ze),Yn=Pt(we,on,Je),zi={scrollLeft:0,scrollTop:0},ns={x:0,y:0};return(Lt||!Lt&&!Je)&&((Be(ze)!=="body"||Ve(Fn))&&(zi=(Oe=ze)!==Ie(Oe)&&be(Oe)?{scrollLeft:(ot=Oe).scrollLeft,scrollTop:ot.scrollTop}:No(Oe)),be(ze)?((ns=Pt(ze,!0)).x+=ze.clientLeft,ns.y+=ze.clientTop):Fn&&(ns.x=dn(Fn))),{x:Yn.left+zi.scrollLeft-ns.x,y:Yn.top+zi.scrollTop-ns.y,width:Yn.width,height:Yn.height}}function uo(we){var ze=new Map,Je=new Set,Oe=[];function ot(Lt){Je.add(Lt.name),[].concat(Lt.requires||[],Lt.requiresIfExists||[]).forEach(function(on){if(!Je.has(on)){var Fn=ze.get(on);Fn&&ot(Fn)}}),Oe.push(Lt)}return we.forEach(function(Lt){ze.set(Lt.name,Lt)}),we.forEach(function(Lt){Je.has(Lt.name)||ot(Lt)}),Oe}var Qo={placement:"bottom",modifiers:[],strategy:"absolute"};function _n(){for(var we=arguments.length,ze=Array(we),Je=0;we>Je;Je++)ze[Je]=arguments[Je];return!ze.some(function(Oe){return!(Oe&&typeof Oe.getBoundingClientRect=="function")})}function Vr(we){we===void 0&&(we={});var ze=we.defaultModifiers,Je=ze===void 0?[]:ze,Oe=we.defaultOptions,ot=Oe===void 0?Qo:Oe;return function(Lt,on,Fn){Fn===void 0&&(Fn=ot);var Yn,zi,ns={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qo,ot),modifiersData:{},elements:{reference:Lt,popper:on},attributes:{},styles:{}},Fo=[],Ho=!1,zu={state:ns,setOptions:function(Gl){var Sl=typeof Gl=="function"?Gl(ns.options):Gl;gu(),ns.options=Object.assign({},ot,ns.options,Sl),ns.scrollParents={reference:je(Lt)?xt(Lt):Lt.contextElement?xt(Lt.contextElement):[],popper:xt(on)};var Kl,il,Ga=function(pu){var ic=uo(pu);return fe.reduce(function(od,Oo){return od.concat(ic.filter(function(Qh){return Qh.phase===Oo}))},[])}((Kl=[].concat(Je,ns.options.modifiers),il=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(il).map(function(pu){return il[pu]})));return ns.orderedModifiers=Ga.filter(function(pu){return pu.enabled}),ns.orderedModifiers.forEach(function(pu){var ic=pu.options,od=pu.effect;if(typeof od=="function"){var Oo=od({state:ns,name:pu.name,instance:zu,options:ic===void 0?{}:ic});Fo.push(Oo||function(){})}}),zu.update()},forceUpdate:function(){if(!Ho){var Gl=ns.elements,Sl=Gl.reference,Kl=Gl.popper;if(_n(Sl,Kl)){ns.rects={reference:si(Sl,Bn(Kl),ns.options.strategy==="fixed"),popper:dt(Kl)},ns.reset=!1,ns.placement=ns.options.placement,ns.orderedModifiers.forEach(function(od){return ns.modifiersData[od.name]=Object.assign({},od.data)});for(var il=0;ns.orderedModifiers.length>il;il++)if(ns.reset!==!0){var Ga=ns.orderedModifiers[il],pu=Ga.fn,ic=Ga.options;typeof pu=="function"&&(ns=pu({state:ns,options:ic===void 0?{}:ic,name:Ga.name,instance:zu})||ns)}else ns.reset=!1,il=-1}}},update:(Yn=function(){return new Promise(function(Gl){zu.forceUpdate(),Gl(ns)})},function(){return zi||(zi=new Promise(function(Gl){Promise.resolve().then(function(){zi=void 0,Gl(Yn())})})),zi}),destroy:function(){gu(),Ho=!0}};if(!_n(Lt,on))return zu;function gu(){Fo.forEach(function(Gl){return Gl()}),Fo=[]}return zu.setOptions(Fn).then(function(Gl){!Ho&&Fn.onFirstUpdate&&Fn.onFirstUpdate(Gl)}),zu}}var qr=Vr({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(we){var ze=we.state,Je=we.instance,Oe=we.options,ot=Oe.scroll,Lt=ot===void 0||ot,on=Oe.resize,Fn=on===void 0||on,Yn=Ie(ze.elements.popper),zi=[].concat(ze.scrollParents.reference,ze.scrollParents.popper);return Lt&&zi.forEach(function(ns){ns.addEventListener("scroll",Je.update,me)}),Fn&&Yn.addEventListener("resize",Je.update,me),function(){Lt&&zi.forEach(function(ns){ns.removeEventListener("scroll",Je.update,me)}),Fn&&Yn.removeEventListener("resize",Je.update,me)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(we){var ze=we.state;ze.modifiersData[we.name]=Tt({reference:ze.rects.reference,element:ze.rects.popper,strategy:"absolute",placement:ze.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(we){var ze=we.state,Je=we.options,Oe=Je.gpuAcceleration,ot=Oe===void 0||Oe,Lt=Je.adaptive,on=Lt===void 0||Lt,Fn=Je.roundOffsets,Yn=Fn===void 0||Fn,zi={placement:Ce(ze.placement),variation:_r(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,fs(Object.assign({},zi,{offsets:ze.modifiersData.popperOffsets,position:ze.options.strategy,adaptive:on,roundOffsets:Yn})))),ze.modifiersData.arrow!=null&&(ze.styles.arrow=Object.assign({},ze.styles.arrow,fs(Object.assign({},zi,{offsets:ze.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Yn})))),ze.attributes.popper=Object.assign({},ze.attributes.popper,{"data-popper-placement":ze.placement})},data:{}},ye,Kr,zn,ii,To,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(we){var ze=we.state,Je=we.name,Oe=ze.rects.reference,ot=ze.rects.popper,Lt=ze.modifiersData.preventOverflow,on=bt(ze,{elementContext:"reference"}),Fn=bt(ze,{altBoundary:!0}),Yn=en(on,Oe),zi=en(Fn,ot,Lt),ns=fr(Yn),Fo=fr(zi);ze.modifiersData[Je]={referenceClippingOffsets:Yn,popperEscapeOffsets:zi,isReferenceHidden:ns,hasPopperEscaped:Fo},ze.attributes.popper=Object.assign({},ze.attributes.popper,{"data-popper-reference-hidden":ns,"data-popper-escaped":Fo})}}]}),Ui="tippy-content",xo="tippy-backdrop",Us="tippy-arrow",$n="tippy-svg-arrow",Kn={passive:!0,capture:!0},Fr=function(){return document.body};function mi(we,ze,Je){if(Array.isArray(we)){var Oe=we[ze];return Oe==null?Array.isArray(Je)?Je[ze]:Je:Oe}return we}function Tr(we,ze){var Je={}.toString.call(we);return Je.indexOf("[object")===0&&Je.indexOf(ze+"]")>-1}function ti(we,ze){return typeof we=="function"?we.apply(void 0,ze):we}function di(we,ze){return ze===0?we:function(Oe){clearTimeout(Je),Je=setTimeout(function(){we(Oe)},ze)};var Je}function rn(we){return[].concat(we)}function Qn(we,ze){we.indexOf(ze)===-1&&we.push(ze)}function Xr(we){return[].slice.call(we)}function ao(we){return Object.keys(we).reduce(function(ze,Je){return we[Je]!==void 0&&(ze[Je]=we[Je]),ze},{})}function as(){return document.createElement("div")}function Bt(we){return["Element","Fragment"].some(function(ze){return Tr(we,ze)})}function pn(we){return Tr(we,"MouseEvent")}function xr(we){return Bt(we)?[we]:function(ze){return Tr(ze,"NodeList")}(we)?Xr(we):Array.isArray(we)?we:Xr(document.querySelectorAll(we))}function Jr(we,ze){we.forEach(function(Je){Je&&(Je.style.transitionDuration=ze+"ms")})}function vi(we,ze){we.forEach(function(Je){Je&&Je.setAttribute("data-state",ze)})}function Ti(we){var ze,Je=rn(we)[0];return Je!=null&&(ze=Je.ownerDocument)!=null&&ze.body?Je.ownerDocument:document}function co(we,ze,Je){var Oe=ze+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(ot){we[Oe](ot,Je)})}function Qr(we,ze){for(var Je=ze;Je;){var Oe;if(we.contains(Je))return!0;Je=Je.getRootNode==null||(Oe=Je.getRootNode())==null?void 0:Oe.host}return!1}var oi={isTouch:!1},Zi=0;function Ir(){oi.isTouch||(oi.isTouch=!0,window.performance&&document.addEventListener("mousemove",tn))}function tn(){var we=performance.now();20>we-Zi&&(oi.isTouch=!1,document.removeEventListener("mousemove",tn)),Zi=we}function Gn(){var we,ze=document.activeElement;(we=ze)&&we._tippy&&we._tippy.reference===we&&ze.blur&&!ze._tippy.state.isVisible&&ze.blur()}var Ei=typeof window!="undefined"&&typeof document!="undefined"&&!!window.msCrypto,Ln=Object.assign({appendTo:Fr,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}),Ii=Object.keys(Ln);function nr(we){var ze=(we.plugins||[]).reduce(function(Je,Oe){var ot,Lt=Oe.name;return Lt&&(Je[Lt]=we[Lt]!==void 0?we[Lt]:(ot=Ln[Lt])!=null?ot:Oe.defaultValue),Je},{});return Object.assign({},we,ze)}function wi(we,ze){var Je=Object.assign({},ze,{content:ti(ze.content,[we])},ze.ignoreAttributes?{}:function(Oe,ot){return(ot?Object.keys(nr(Object.assign({},Ln,{plugins:ot}))):Ii).reduce(function(Lt,on){var Fn=(Oe.getAttribute("data-tippy-"+on)||"").trim();if(!Fn)return Lt;if(on==="content")Lt[on]=Fn;else try{Lt[on]=JSON.parse(Fn)}catch(Yn){Lt[on]=Fn}return Lt},{})}(we,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 Mi=function(){return"innerHTML"};function Rr(we,ze){we[Mi()]=ze}function Xn(we){var ze=as();return we===!0?ze.className=Us:(ze.className=$n,Bt(we)?ze.appendChild(we):Rr(ze,we)),ze}function ms(we,ze){Bt(ze.content)?(Rr(we,""),we.appendChild(ze.content)):typeof ze.content!="function"&&(ze.allowHTML?Rr(we,ze.content):we.textContent=ze.content)}function ya(we){var ze=we.firstElementChild,Je=Xr(ze.children);return{box:ze,content:Je.find(function(Oe){return Oe.classList.contains(Ui)}),arrow:Je.find(function(Oe){return Oe.classList.contains(Us)||Oe.classList.contains($n)}),backdrop:Je.find(function(Oe){return Oe.classList.contains(xo)})}}function fa(we){var ze=as(),Je=as();Je.className="tippy-box",Je.setAttribute("data-state","hidden"),Je.setAttribute("tabindex","-1");var Oe=as();function ot(Lt,on){var Fn=ya(ze),Yn=Fn.box,zi=Fn.content,ns=Fn.arrow;on.theme?Yn.setAttribute("data-theme",on.theme):Yn.removeAttribute("data-theme"),typeof on.animation=="string"?Yn.setAttribute("data-animation",on.animation):Yn.removeAttribute("data-animation"),on.inertia?Yn.setAttribute("data-inertia",""):Yn.removeAttribute("data-inertia"),Yn.style.maxWidth=typeof on.maxWidth=="number"?on.maxWidth+"px":on.maxWidth,on.role?Yn.setAttribute("role",on.role):Yn.removeAttribute("role"),Lt.content===on.content&&Lt.allowHTML===on.allowHTML||ms(zi,we.props),on.arrow?ns?Lt.arrow!==on.arrow&&(Yn.removeChild(ns),Yn.appendChild(Xn(on.arrow))):Yn.appendChild(Xn(on.arrow)):ns&&Yn.removeChild(ns)}return Oe.className=Ui,Oe.setAttribute("data-state","hidden"),ms(Oe,we.props),ze.appendChild(Je),Je.appendChild(Oe),ot(we.props,we.props),{popper:ze,onUpdate:ot}}fa.$$tippy=!0;var Ws=1,Ua=[],Ao=[];function cl(we,ze){var Je,Oe,ot,Lt,on,Fn,Yn,zi,ns=wi(we,Object.assign({},Ln,nr(ao(ze)))),Fo=!1,Ho=!1,zu=!1,gu=!1,Gl=[],Sl=di(jl,ns.interactiveDebounce),Kl=Ws++,il=(zi=ns.plugins).filter(function(qt,On){return zi.indexOf(qt)===On}),Ga={id:Kl,reference:we,popper:as(),popperInstance:null,props:ns,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:il,clearDelayTimeouts:function(){clearTimeout(Je),clearTimeout(Oe),cancelAnimationFrame(ot)},setProps:function(qt){if(!Ga.state.isDestroyed){Qe("onBeforeUpdate",[Ga,qt]),Pa();var On=Ga.props,hr=wi(we,Object.assign({},On,ao(qt),{ignoreAttributes:!0}));Ga.props=hr,al(),On.interactiveDebounce!==hr.interactiveDebounce&&(Nn(),Sl=di(jl,hr.interactiveDebounce)),On.triggerTarget&&!hr.triggerTarget?rn(On.triggerTarget).forEach(function(Gr){Gr.removeAttribute("aria-expanded")}):hr.triggerTarget&&we.removeAttribute("aria-expanded"),jt(),ke(),od&&od(On,hr),Ga.popperInstance&&(kc(),_d().forEach(function(Gr){requestAnimationFrame(Gr._tippy.popperInstance.forceUpdate)})),Qe("onAfterUpdate",[Ga,qt])}},setContent:function(qt){Ga.setProps({content:qt})},show:function(){var qt=Ga.state.isVisible,On=Ga.state.isDestroyed,hr=!Ga.state.isEnabled,Gr=oi.isTouch&&!Ga.props.touch,bo=mi(Ga.props.duration,0,Ln.duration);if(!(qt||On||hr||Gr)&&!_().hasAttribute("disabled")&&(Qe("onShow",[Ga],!1),Ga.props.onShow(Ga)!==!1)){if(Ga.state.isVisible=!0,Gd()&&(ic.style.visibility="visible"),ke(),_o(),Ga.state.isMounted||(ic.style.transition="none"),Gd()){var la=G();Jr([la.box,la.content],0)}Fn=function(){var Ya;if(Ga.state.isVisible&&!gu){if(gu=!0,ic.style.transition=Ga.props.moveTransition,Gd()&&Ga.props.animation){var ka=G(),Xl=ka.box,wu=ka.content;Jr([Xl,wu],bo),vi([Xl,wu],"visible")}wt(),jt(),Qn(Ao,Ga),(Ya=Ga.popperInstance)==null||Ya.forceUpdate(),Qe("onMount",[Ga]),Ga.props.animation&&Gd()&&function(Ls,Kc){qs(Ls,Kc)}(bo,function(){Ga.state.isShown=!0,Qe("onShown",[Ga])})}},function(){var Ya,ka=Ga.props.appendTo,Xl=_();Ya=Ga.props.interactive&&ka===Fr||ka==="parent"?Xl.parentNode:ti(ka,[Xl]),Ya.contains(ic)||Ya.appendChild(ic),Ga.state.isMounted=!0,kc()}()}},hide:function(){var qt=!Ga.state.isVisible,On=Ga.state.isDestroyed,hr=!Ga.state.isEnabled,Gr=mi(Ga.props.duration,1,Ln.duration);if(!(qt||On||hr)&&(Qe("onHide",[Ga],!1),Ga.props.onHide(Ga)!==!1)){if(Ga.state.isVisible=!1,Ga.state.isShown=!1,gu=!1,Fo=!1,Gd()&&(ic.style.visibility="hidden"),Nn(),zo(),ke(!0),Gd()){var bo=G(),la=bo.box,Ya=bo.content;Ga.props.animation&&(Jr([la,Ya],Gr),vi([la,Ya],"hidden"))}wt(),jt(),Ga.props.animation?Gd()&&function(ka,Xl){qs(ka,function(){!Ga.state.isVisible&&ic.parentNode&&ic.parentNode.contains(ic)&&Xl()})}(Gr,Ga.unmount):Ga.unmount()}},hideWithInteractivity:function(qt){R().addEventListener("mousemove",Sl),Qn(Ua,Sl),Sl(qt)},enable:function(){Ga.state.isEnabled=!0},disable:function(){Ga.hide(),Ga.state.isEnabled=!1},unmount:function(){Ga.state.isVisible&&Ga.hide(),Ga.state.isMounted&&(ac(),_d().forEach(function(qt){qt._tippy.unmount()}),ic.parentNode&&ic.parentNode.removeChild(ic),Ao=Ao.filter(function(qt){return qt!==Ga}),Ga.state.isMounted=!1,Qe("onHidden",[Ga]))},destroy:function(){Ga.state.isDestroyed||(Ga.clearDelayTimeouts(),Ga.unmount(),Pa(),delete we._tippy,Ga.state.isDestroyed=!0,Qe("onDestroy",[Ga]))}};if(!ns.render)return Ga;var pu=ns.render(Ga),ic=pu.popper,od=pu.onUpdate;ic.setAttribute("data-tippy-root",""),ic.id="tippy-"+Ga.id,Ga.popper=ic,we._tippy=Ga,ic._tippy=Ga;var Oo=il.map(function(qt){return qt.fn(Ga)}),Qh=we.hasAttribute("aria-expanded");return al(),jt(),ke(),Qe("onCreate",[Ga]),ns.showOnCreate&&Xu(),ic.addEventListener("mouseenter",function(){Ga.props.interactive&&Ga.state.isVisible&&Ga.clearDelayTimeouts()}),ic.addEventListener("mouseleave",function(){Ga.props.interactive&&Ga.props.trigger.indexOf("mouseenter")>=0&&R().addEventListener("mousemove",Sl)}),Ga;function xc(){var qt=Ga.props.touch;return Array.isArray(qt)?qt:[qt,0]}function hh(){return xc()[0]==="hold"}function Gd(){var qt;return!((qt=Ga.props.render)==null||!qt.$$tippy)}function _(){return Yn||we}function R(){var qt=_().parentNode;return qt?Ti(qt):document}function G(){return ya(ic)}function le(qt){return Ga.state.isMounted&&!Ga.state.isVisible||oi.isTouch||Lt&&Lt.type==="focus"?0:mi(Ga.props.delay,qt?0:1,Ln.delay)}function ke(qt){qt===void 0&&(qt=!1),ic.style.pointerEvents=Ga.props.interactive&&!qt?"":"none",ic.style.zIndex=""+Ga.props.zIndex}function Qe(qt,On,hr){var Gr;hr===void 0&&(hr=!0),Oo.forEach(function(bo){bo[qt]&&bo[qt].apply(bo,On)}),hr&&(Gr=Ga.props)[qt].apply(Gr,On)}function wt(){var qt=Ga.props.aria;if(qt.content){var On="aria-"+qt.content,hr=ic.id;rn(Ga.props.triggerTarget||we).forEach(function(Gr){var bo=Gr.getAttribute(On);if(Ga.state.isVisible)Gr.setAttribute(On,bo?bo+" "+hr:hr);else{var la=bo&&bo.replace(hr,"").trim();la?Gr.setAttribute(On,la):Gr.removeAttribute(On)}})}}function jt(){!Qh&&Ga.props.aria.expanded&&rn(Ga.props.triggerTarget||we).forEach(function(qt){Ga.props.interactive?qt.setAttribute("aria-expanded",Ga.state.isVisible&&qt===_()?"true":"false"):qt.removeAttribute("aria-expanded")})}function Nn(){R().removeEventListener("mousemove",Sl),Ua=Ua.filter(function(qt){return qt!==Sl})}function cr(qt){if(!oi.isTouch||!zu&&qt.type!=="mousedown"){var On=qt.composedPath&&qt.composedPath()[0]||qt.target;if(!Ga.props.interactive||!Qr(ic,On)){if(rn(Ga.props.triggerTarget||we).some(function(hr){return Qr(hr,On)})){if(oi.isTouch||Ga.state.isVisible&&Ga.props.trigger.indexOf("click")>=0)return}else Qe("onClickOutside",[Ga,qt]);Ga.props.hideOnClick===!0&&(Ga.clearDelayTimeouts(),Ga.hide(),Ho=!0,setTimeout(function(){Ho=!1}),Ga.state.isMounted||zo())}}}function Ur(){zu=!0}function bi(){zu=!1}function _o(){var qt=R();qt.addEventListener("mousedown",cr,!0),qt.addEventListener("touchend",cr,Kn),qt.addEventListener("touchstart",bi,Kn),qt.addEventListener("touchmove",Ur,Kn)}function zo(){var qt=R();qt.removeEventListener("mousedown",cr,!0),qt.removeEventListener("touchend",cr,Kn),qt.removeEventListener("touchstart",bi,Kn),qt.removeEventListener("touchmove",Ur,Kn)}function qs(qt,On){var hr=G().box;function Gr(bo){bo.target===hr&&(co(hr,"remove",Gr),On())}if(qt===0)return On();co(hr,"remove",on),co(hr,"add",Gr),on=Gr}function ra(qt,On,hr){hr===void 0&&(hr=!1),rn(Ga.props.triggerTarget||we).forEach(function(Gr){Gr.addEventListener(qt,On,hr),Gl.push({node:Gr,eventType:qt,handler:On,options:hr})})}function al(){var qt;hh()&&(ra("touchstart",Ol,{passive:!0}),ra("touchend",cu,{passive:!0})),(qt=Ga.props.trigger,qt.split(/\s+/).filter(Boolean)).forEach(function(On){if(On!=="manual")switch(ra(On,Ol),On){case"mouseenter":ra("mouseleave",cu);break;case"focus":ra(Ei?"focusout":"blur",lu);break;case"focusin":ra("focusout",lu)}})}function Pa(){Gl.forEach(function(qt){qt.node.removeEventListener(qt.eventType,qt.handler,qt.options)}),Gl=[]}function Ol(qt){var On,hr=!1;if(Ga.state.isEnabled&&!Uu(qt)&&!Ho){var Gr=((On=Lt)==null?void 0:On.type)==="focus";Lt=qt,Yn=qt.currentTarget,jt(),!Ga.state.isVisible&&pn(qt)&&Ua.forEach(function(bo){return bo(qt)}),qt.type==="click"&&(0>Ga.props.trigger.indexOf("mouseenter")||Fo)&&Ga.props.hideOnClick!==!1&&Ga.state.isVisible?hr=!0:Xu(qt),qt.type==="click"&&(Fo=!hr),hr&&!Gr&&Nd(qt)}}function jl(qt){var On=qt.target,hr=_().contains(On)||ic.contains(On);if(qt.type!=="mousemove"||!hr){var Gr=_d().concat(ic).map(function(bo){var la,Ya=(la=bo._tippy.popperInstance)==null?void 0:la.state;return Ya?{popperRect:bo.getBoundingClientRect(),popperState:Ya,props:ns}:null}).filter(Boolean);(function(bo,la){var Ya=la.clientX,ka=la.clientY;return bo.every(function(Xl){var wu=Xl.popperRect,Ls=Xl.popperState,Kc=Xl.props.interactiveBorder,fh=Ls.placement.split("-")[0],ph=Ls.modifiersData.offset;return!ph||wu.top-ka+(fh==="bottom"?ph.top.y:0)>Kc||ka-wu.bottom-(fh==="top"?ph.bottom.y:0)>Kc||wu.left-Ya+(fh==="right"?ph.left.x:0)>Kc||Ya-wu.right-(fh==="left"?ph.right.x:0)>Kc})})(Gr,qt)&&(Nn(),Nd(qt))}}function cu(qt){Uu(qt)||Ga.props.trigger.indexOf("click")>=0&&Fo||(Ga.props.interactive?Ga.hideWithInteractivity(qt):Nd(qt))}function lu(qt){0>Ga.props.trigger.indexOf("focusin")&&qt.target!==_()||Ga.props.interactive&&qt.relatedTarget&&ic.contains(qt.relatedTarget)||Nd(qt)}function Uu(qt){return!!oi.isTouch&&hh()!==qt.type.indexOf("touch")>=0}function kc(){ac();var qt=Ga.props,On=qt.popperOptions,hr=qt.placement,Gr=qt.offset,bo=qt.getReferenceClientRect,la=qt.moveTransition,Ya=Gd()?ya(ic).arrow:null,ka=bo?{getBoundingClientRect:bo,contextElement:bo.contextElement||_()}:we,Xl={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ls){var Kc=Ls.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:Gr}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!la}},Xl];Gd()&&Ya&&wu.push({name:"arrow",options:{element:Ya,padding:3}}),wu.push.apply(wu,(On==null?void 0:On.modifiers)||[]),Ga.popperInstance=qr(ka,ic,Object.assign({},On,{placement:hr,onFirstUpdate:Fn,modifiers:wu}))}function ac(){Ga.popperInstance&&(Ga.popperInstance.destroy(),Ga.popperInstance=null)}function _d(){return Xr(ic.querySelectorAll("[data-tippy-root]"))}function Xu(qt){Ga.clearDelayTimeouts(),qt&&Qe("onTrigger",[Ga,qt]),_o();var On=le(!0),hr=xc(),Gr=hr[1];oi.isTouch&&hr[0]==="hold"&&Gr&&(On=Gr),On?Je=setTimeout(function(){Ga.show()},On):Ga.show()}function Nd(qt){if(Ga.clearDelayTimeouts(),Qe("onUntrigger",[Ga,qt]),Ga.state.isVisible){if(0>Ga.props.trigger.indexOf("mouseenter")||0>Ga.props.trigger.indexOf("click")||0>["mouseleave","mousemove"].indexOf(qt.type)||!Fo){var On=le(!1);On?Oe=setTimeout(function(){Ga.state.isVisible&&Ga.hide()},On):ot=requestAnimationFrame(function(){Ga.hide()})}}else zo()}}function $r(we,ze){ze===void 0&&(ze={});var Je=Ln.plugins.concat(ze.plugins||[]);document.addEventListener("touchstart",Ir,Kn),window.addEventListener("blur",Gn);var Oe=Object.assign({},ze,{plugins:Je}),ot=xr(we).reduce(function(Lt,on){var Fn=on&&cl(on,Oe);return Fn&&Lt.push(Fn),Lt},[]);return Bt(we)?ot[0]:ot}$r.defaultProps=Ln,$r.setDefaultProps=function(we){Object.keys(we).forEach(function(ze){Ln[ze]=we[ze]})},$r.currentInput=oi,Object.assign({},ye,{effect:function(we){var ze=we.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 er={clientX:0,clientY:0},Dr=[];function pr(we){er={clientX:we.clientX,clientY:we.clientY}}var ci={name:"followCursor",defaultValue:!1,fn:function(we){var ze=we.reference,Je=Ti(we.props.triggerTarget||ze),Oe=!1,ot=!1,Lt=!0,on=we.props;function Fn(){return we.props.followCursor==="initial"&&we.state.isVisible}function Yn(){Je.addEventListener("mousemove",Fo)}function zi(){Je.removeEventListener("mousemove",Fo)}function ns(){Oe=!0,we.setProps({getReferenceClientRect:null}),Oe=!1}function Fo(gu){var Gl=!gu.target||ze.contains(gu.target),Sl=we.props.followCursor,Kl=gu.clientX,il=gu.clientY,Ga=ze.getBoundingClientRect(),pu=Kl-Ga.left,ic=il-Ga.top;!Gl&&we.props.interactive||we.setProps({getReferenceClientRect:function(){var od=ze.getBoundingClientRect(),Oo=Kl,Qh=il;Sl==="initial"&&(Oo=od.left+pu,Qh=od.top+ic);var xc=Sl==="horizontal"?od.top:Qh,hh=Sl==="vertical"?od.right:Oo,Gd=Sl==="horizontal"?od.bottom:Qh,_=Sl==="vertical"?od.left:Oo;return{width:hh-_,height:Gd-xc,top:xc,right:hh,bottom:Gd,left:_}}})}function Ho(){we.props.followCursor&&(Dr.push({instance:we,doc:Je}),function(gu){gu.addEventListener("mousemove",pr)}(Je))}function zu(){(Dr=Dr.filter(function(gu){return gu.instance!==we})).filter(function(gu){return gu.doc===Je}).length===0&&function(gu){gu.removeEventListener("mousemove",pr)}(Je)}return{onCreate:Ho,onDestroy:zu,onBeforeUpdate:function(){on=we.props},onAfterUpdate:function(gu,Gl){var Sl=Gl.followCursor;Oe||Sl!==void 0&&on.followCursor!==Sl&&(zu(),Sl?(Ho(),!we.state.isMounted||ot||Fn()||Yn()):(zi(),ns()))},onMount:function(){we.props.followCursor&&!ot&&(Lt&&(Fo(er),Lt=!1),Fn()||Yn())},onTrigger:function(gu,Gl){pn(Gl)&&(er={clientX:Gl.clientX,clientY:Gl.clientY}),ot=Gl.type==="focus"},onHidden:function(){we.props.followCursor&&(ns(),zi(),Lt=!0)}}}};$r.setDefaultProps({render:fa});var Eo,mo,Ts,xs,Er,ui,Xt={showTotalDistance:!1,showDashDistance:!0,showWhen:["normal","active"],format:function(we){return 1e3>we?+we.toFixed(2)+"m":+(we/1e3).toFixed(2)+"km"}},gn={showWhen:["normal","active"],format:function(we){return we>1e6?"".concat(+(we/1e6).toFixed(2),"km\xB2"):"".concat(+we.toFixed(2),"m\xB2")}},En={maxSize:100},tt={remove:["del","backspace"],revert:["command+z","ctrl+z"],redo:["command+shift+z","ctrl+shift+z"]},at={allowHTML:!0,followCursor:!0,placement:"bottom-start",offset:[-10,20],plugins:[ci],trigger:"manual",hideOnClick:!1,theme:"light"},gt={data:"drawData",pointAdsorbPixel:12,lineAdsorbPixel:10};function Re(we,ze){var Je=Object.keys(we);if(Object.getOwnPropertySymbols){var Oe=Object.getOwnPropertySymbols(we);ze&&(Oe=Oe.filter(function(ot){return Object.getOwnPropertyDescriptor(we,ot).enumerable})),Je.push.apply(Je,Oe)}return Je}function lt(we){for(var ze=1;arguments.length>ze;ze++){var Je=arguments[ze]!=null?arguments[ze]:{};ze%2?Re(Object(Je),!0).forEach(function(Oe){wr(we,Oe,Je[Oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(we,Object.getOwnPropertyDescriptors(Je)):Re(Object(Je)).forEach(function(Oe){Object.defineProperty(we,Oe,Object.getOwnPropertyDescriptor(Je,Oe))})}return we}function St(we,ze){if(!(we instanceof ze))throw new TypeError("Cannot call a class as a function")}function ln(we,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(we,va(Oe.key),Oe)}}function Vn(we,ze,Je){return ze&&ln(we.prototype,ze),Je&&ln(we,Je),Object.defineProperty(we,"prototype",{writable:!1}),we}function wr(we,ze,Je){return(ze=va(ze))in we?Object.defineProperty(we,ze,{value:Je,enumerable:!0,configurable:!0,writable:!0}):we[ze]=Je,we}function ki(we,ze){if(typeof ze!="function"&&ze!==null)throw new TypeError("Super expression must either be null or a function");we.prototype=Object.create(ze&&ze.prototype,{constructor:{value:we,writable:!0,configurable:!0}}),Object.defineProperty(we,"prototype",{writable:!1}),ze&&Ki(we,ze)}function Vi(we){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ze){return ze.__proto__||Object.getPrototypeOf(ze)},Vi(we)}function Ki(we,ze){return Ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Je,Oe){return Je.__proto__=Oe,Je},Ki(we,ze)}function ps(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function Ns(we){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=Vi(we);if(ze){var ot=Vi(this).constructor;Je=Reflect.construct(Oe,arguments,ot)}else Je=Oe.apply(this,arguments);return function(Lt,on){if(on&&(typeof on=="object"||typeof on=="function"))return on;if(on!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ps(Lt)}(this,Je)}}function Bs(){return Bs=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(we,ze,Je){var Oe=function(Lt,on){for(;!Object.prototype.hasOwnProperty.call(Lt,on)&&(Lt=Vi(Lt))!==null;);return Lt}(we,ze);if(Oe){var ot=Object.getOwnPropertyDescriptor(Oe,ze);return ot.get?ot.get.call(3>arguments.length?we:Je):ot.value}},Bs.apply(this,arguments)}function _a(we,ze){return function(Je){if(Array.isArray(Je))return Je}(we)||function(Je,Oe){var ot=Je==null?null:typeof Symbol!="undefined"&&Je[Symbol.iterator]||Je["@@iterator"];if(ot!=null){var Lt,on,Fn,Yn,zi=[],ns=!0,Fo=!1;try{if(Fn=(ot=ot.call(Je)).next,Oe===0){if(Object(ot)!==ot)return;ns=!1}else for(;!(ns=(Lt=Fn.call(ot)).done)&&(zi.push(Lt.value),zi.length!==Oe);ns=!0);}catch(Ho){Fo=!0,on=Ho}finally{try{if(!ns&&ot.return!=null&&(Yn=ot.return(),Object(Yn)!==Yn))return}finally{if(Fo)throw on}}return zi}}(we,ze)||Ds(we,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 oo(we){return function(ze){if(Array.isArray(ze))return oa(ze)}(we)||function(ze){if(typeof Symbol!="undefined"&&ze[Symbol.iterator]!=null||ze["@@iterator"]!=null)return Array.from(ze)}(we)||Ds(we)||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 Ds(we,ze){if(we){if(typeof we=="string")return oa(we,ze);var Je=Object.prototype.toString.call(we).slice(8,-1);return Je==="Object"&&we.constructor&&(Je=we.constructor.name),Je==="Map"||Je==="Set"?Array.from(we):Je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Je)?oa(we,ze):void 0}}function oa(we,ze){(ze==null||ze>we.length)&&(ze=we.length);for(var Je=0,Oe=Array(ze);ze>Je;Je++)Oe[Je]=we[Je];return Oe}function va(we){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)}(we,"string");return typeof ze=="symbol"?ze:ze+""}(Eo=y.DrawEvent||(y.DrawEvent={})).Init="init",Eo.Destroy="destroy",Eo.Enable="enable",Eo.Disable="disable",Eo.Add="add",Eo.Edit="edit",Eo.Remove="remove",Eo.Clear="clear",Eo.Change="change",Eo.DragStart="dragStart",Eo.Dragging="dragging",Eo.DragEnd="dragEnd",Eo.Select="select",Eo.AddNode="addNode",Eo.RemoveNode="removeNode",(mo=y.SourceEvent||(y.SourceEvent={})).Change="change",mo.Update="update",(Ts=y.RenderEvent||(y.RenderEvent={})).Click="click",Ts.UnClick="unclick",Ts.Dragstart="dragstart",Ts.Mousemove="mousemove",Ts.Mouseout="mouseout",Ts.Dragging="dragging",Ts.Dragend="dragend",Ts.DblClick="dblClick",Ts.Contextmenu="contextmenu",(xs=y.LayerEvent||(y.LayerEvent={})).Mousedown="mousedown",xs.Mouseup="mouseup",xs.Click="click",xs.UnClick="unclick",xs.Dblclick="dblclick",xs.Mousemove="mousemove",xs.Mouseover="mouseover",xs.Mouseenter="mouseenter",xs.Mouseleave="mouseleave",xs.Mouseout="mouseout",xs.Contextmenu="contextmenu",(Er=y.SceneEvent||(y.SceneEvent={})).Loaded="loaded",Er.MapMove="mapmove",Er.MoveStart="movestart",Er.MoveEnd="moveend",Er.ZoomChange="zoomchange",Er.ZoomStart="zoomstart",Er.ZoomEnd="zoomend",Er.Click="click",Er.Dblclick="dblclick",Er.Mousemove="mousemove",Er.Mousewheel="mousewheel",Er.Mouseover="mouseover",Er.Mouseout="mouseout",Er.Mouseup="mouseup",Er.Mousedown="mousedown",Er.Contextmenu="contextmenu",Er.Dragstart="dragstart",Er.Dragging="dragging",Er.Dragend="dragend",(ui=y.ControlEvent||(y.ControlEvent={})).DrawChange="drawchange",ui.DataChange="datachange",ui.DrawSelect="drawselect";var Bl=63710088e-1,Fa={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 ua(we,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=we,Oe}function Nl(we,ze,Je){if(Je===void 0&&(Je={}),!we)throw Error("coordinates is required");if(!Array.isArray(we))throw Error("coordinates must be an Array");if(2>we.length)throw Error("coordinates must be at least 2 numbers long");if(!to(we[0])||!to(we[1]))throw Error("coordinates must contain numbers");return ua({type:"Point",coordinates:we},ze,Je)}function vs(we,ze,Je){Je===void 0&&(Je={});for(var Oe=0,ot=we;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 on=0;Lt[Lt.length-1].length>on;on++)if(Lt[Lt.length-1][on]!==Lt[0][on])throw Error("First and last Position are not equivalent.")}return ua({type:"Polygon",coordinates:we},ze,Je)}function Hi(we,ze,Je){if(Je===void 0&&(Je={}),2>we.length)throw Error("coordinates must be an array of two or more positions");return ua({type:"LineString",coordinates:we},ze,Je)}function eo(we,ze){ze===void 0&&(ze={});var Je={type:"FeatureCollection"};return ze.id&&(Je.id=ze.id),ze.bbox&&(Je.bbox=ze.bbox),Je.features=we,Je}function sa(we,ze,Je){return Je===void 0&&(Je={}),ua({type:"MultiLineString",coordinates:we},ze,Je)}function Cs(we,ze,Je){return Je===void 0&&(Je={}),ua({type:"MultiPoint",coordinates:we},ze,Je)}function Ka(we,ze,Je){return Je===void 0&&(Je={}),ua({type:"MultiPolygon",coordinates:we},ze,Je)}function $u(we,ze){ze===void 0&&(ze="kilometers");var Je=Fa[ze];if(!Je)throw Error(ze+" units is invalid");return we*Je}function rc(we,ze){ze===void 0&&(ze="kilometers");var Je=Fa[ze];if(!Je)throw Error(ze+" units is invalid");return we/Je}function Pc(we){return 180*(we%(2*Math.PI))/Math.PI}function vo(we){return we%360*Math.PI/180}function to(we){return!isNaN(we)&&we!==null&&!Array.isArray(we)}function hs(we){return!!we&&we.constructor===Object}var jn=Object.freeze({__proto__:null,earthRadius:Bl,factors:Fa,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:ua,geometry:function(we,ze,Je){switch(we){case"Point":return Nl(ze).geometry;case"LineString":return Hi(ze).geometry;case"Polygon":return vs(ze).geometry;case"MultiPoint":return Cs(ze).geometry;case"MultiLineString":return sa(ze).geometry;case"MultiPolygon":return Ka(ze).geometry;default:throw Error(we+" is invalid")}},point:Nl,points:function(we,ze,Je){return Je===void 0&&(Je={}),eo(we.map(function(Oe){return Nl(Oe,ze)}),Je)},polygon:vs,polygons:function(we,ze,Je){return Je===void 0&&(Je={}),eo(we.map(function(Oe){return vs(Oe,ze)}),Je)},lineString:Hi,lineStrings:function(we,ze,Je){return Je===void 0&&(Je={}),eo(we.map(function(Oe){return Hi(Oe,ze)}),Je)},featureCollection:eo,multiLineString:sa,multiPoint:Cs,multiPolygon:Ka,geometryCollection:function(we,ze,Je){return Je===void 0&&(Je={}),ua({type:"GeometryCollection",geometries:we},ze,Je)},round:function(we,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(we*Je)/Je},radiansToLength:$u,lengthToRadians:rc,lengthToDegrees:function(we,ze){return Pc(rc(we,ze))},bearingToAzimuth:function(we){var ze=we%360;return 0>ze&&(ze+=360),ze},radiansToDegrees:Pc,degreesToRadians:vo,convertLength:function(we,ze,Je){if(ze===void 0&&(ze="kilometers"),Je===void 0&&(Je="kilometers"),we<0)throw Error("length must be a positive number");return $u(rc(we,ze),Je)},convertArea:function(we,ze,Je){if(ze===void 0&&(ze="meters"),Je===void 0&&(Je="kilometers"),we<0)throw Error("area must be a positive number");var Oe=gl[ze];if(!Oe)throw Error("invalid original units");var ot=gl[Je];if(!ot)throw Error("invalid final units");return we/Oe*ot},isNumber:to,isObject:hs,validateBBox:function(we){if(!we)throw Error("bbox is required");if(!Array.isArray(we))throw Error("bbox must be an Array");if(we.length!==4&&we.length!==6)throw Error("bbox must be an Array of 4 or 6 numbers");we.forEach(function(ze){if(!to(ze))throw Error("bbox must only contain numbers")})},validateId:function(we){if(!we)throw Error("id is required");if(["string","number"].indexOf(typeof we)===-1)throw Error("id must be a number or a string")}});function yr(we,ze,Je){if(we!==null)for(var Oe,ot,Lt,on,Fn,Yn,zi,ns,Fo=0,Ho=0,zu=we.type,gu=zu==="FeatureCollection",Gl=zu==="Feature",Sl=gu?we.features.length:1,Kl=0;Sl>Kl;Kl++){Fn=(ns=!!(zi=gu?we.features[Kl].geometry:Gl?we.geometry:we)&&zi.type==="GeometryCollection")?zi.geometries.length:1;for(var il=0;Fn>il;il++){var Ga=0,pu=0;if((on=ns?zi.geometries[il]:zi)!==null){Yn=on.coordinates;var ic=on.type;switch(Fo=!Je||ic!=="Polygon"&&ic!=="MultiPolygon"?0:1,ic){case null:break;case"Point":if(ze(Yn,Ho,Kl,Ga,pu)===!1)return!1;Ho++,Ga++;break;case"LineString":case"MultiPoint":for(Oe=0;Yn.length>Oe;Oe++){if(ze(Yn[Oe],Ho,Kl,Ga,pu)===!1)return!1;Ho++,ic==="MultiPoint"&&Ga++}ic==="LineString"&&Ga++;break;case"Polygon":case"MultiLineString":for(Oe=0;Yn.length>Oe;Oe++){for(ot=0;Yn[Oe].length-Fo>ot;ot++){if(ze(Yn[Oe][ot],Ho,Kl,Ga,pu)===!1)return!1;Ho++}ic==="MultiLineString"&&Ga++,ic==="Polygon"&&pu++}ic==="Polygon"&&Ga++;break;case"MultiPolygon":for(Oe=0;Yn.length>Oe;Oe++){for(pu=0,ot=0;Yn[Oe].length>ot;ot++){for(Lt=0;Yn[Oe][ot].length-Fo>Lt;Lt++){if(ze(Yn[Oe][ot][Lt],Ho,Kl,Ga,pu)===!1)return!1;Ho++}pu++}Ga++}break;case"GeometryCollection":for(Oe=0;on.geometries.length>Oe;Oe++)if(yr(on.geometries[Oe],ze,Je)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}}}}}function ai(we,ze){var Je;switch(we.type){case"FeatureCollection":for(Je=0;we.features.length>Je&&ze(we.features[Je].properties,Je)!==!1;Je++);break;case"Feature":ze(we.properties,0)}}function hi(we,ze){if(we.type==="Feature")ze(we,0);else if(we.type==="FeatureCollection")for(var Je=0;we.features.length>Je&&ze(we.features[Je],Je)!==!1;Je++);}function Ji(we){var ze=[];return yr(we,function(Je){ze.push(Je)}),ze}function so(we,ze){var Je,Oe,ot,Lt,on,Fn,Yn,zi,ns,Fo,Ho=0,zu=we.type==="FeatureCollection",gu=we.type==="Feature",Gl=zu?we.features.length:1;for(Je=0;Gl>Je;Je++){for(zi=zu?we.features[Je].properties:gu?we.properties:{},ns=zu?we.features[Je].bbox:gu?we.bbox:void 0,Fo=zu?we.features[Je].id:gu?we.id:void 0,on=(Yn=!!(Fn=zu?we.features[Je].geometry:gu?we.geometry:we)&&Fn.type==="GeometryCollection")?Fn.geometries.length:1,ot=0;on>ot;ot++)if((Lt=Yn?Fn.geometries[ot]:Fn)!==null)switch(Lt.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(ze(Lt,Ho,zi,ns,Fo)===!1)return!1;break;case"GeometryCollection":for(Oe=0;Lt.geometries.length>Oe;Oe++)if(ze(Lt.geometries[Oe],Ho,zi,ns,Fo)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}else if(ze(null,Ho,zi,ns,Fo)===!1)return!1;Ho++}}function Pi(we,ze,Je){var Oe=Je;return so(we,function(ot,Lt,on,Fn,Yn){Oe=Lt===0&&Je===void 0?ot:ze(Oe,ot,Lt,on,Fn,Yn)}),Oe}function us(we,ze){so(we,function(Je,Oe,ot,Lt,on){var Fn,Yn=Je===null?null:Je.type;switch(Yn){case null:case"Point":case"LineString":case"Polygon":return ze(ua(Je,ot,{bbox:Lt,id:on}),Oe,0)!==!1&&void 0}switch(Yn){case"MultiPoint":Fn="Point";break;case"MultiLineString":Fn="LineString";break;case"MultiPolygon":Fn="Polygon"}for(var zi=0;Je.coordinates.length>zi;zi++)if(ze(ua({type:Fn,coordinates:Je.coordinates[zi]},ot),Oe,zi)===!1)return!1})}function ga(we,ze){us(we,function(Je,Oe,ot){var Lt=0;if(Je.geometry){var on=Je.geometry.type;if(on!=="Point"&&on!=="MultiPoint"){var Fn,Yn=0,zi=0,ns=0;return yr(Je,function(Fo,Ho,zu,gu,Gl){if(Fn===void 0||Oe>Yn||gu>zi||Gl>ns)return Fn=Fo,Yn=Oe,zi=gu,ns=Gl,void(Lt=0);var Sl=Hi([Fn,Fo],Je.properties);if(ze(Sl,Oe,ot,Gl,Lt)===!1)return!1;Lt++,Fn=Fo})!==!1&&void 0}}})}function $a(we,ze,Je){var Oe=Je,ot=!1;return ga(we,function(Lt,on,Fn,Yn,zi){Oe=ot===!1&&Je===void 0?Lt:ze(Oe,Lt,on,Fn,Yn,zi),ot=!0}),Oe}function dl(we,ze){if(!we)throw Error("geojson is required");us(we,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 on=0;Lt.length>on;on++)if(ze(Hi(Lt[on],Je.properties),Oe,ot,on)===!1)return!1}}})}var Hl=Object.freeze({__proto__:null,coordAll:Ji,coordEach:yr,coordReduce:function(we,ze,Je,Oe){var ot=Je;return yr(we,function(Lt,on,Fn,Yn,zi){ot=on===0&&Je===void 0?Lt:ze(ot,Lt,on,Fn,Yn,zi)},Oe),ot},featureEach:hi,featureReduce:function(we,ze,Je){var Oe=Je;return hi(we,function(ot,Lt){Oe=Lt===0&&Je===void 0?ot:ze(Oe,ot,Lt)}),Oe},findPoint:function(we,ze){if(!hs(ze=ze||{}))throw Error("options is invalid");var Je,Oe=ze.featureIndex||0,ot=ze.multiFeatureIndex||0,Lt=ze.geometryIndex||0,on=ze.coordIndex||0,Fn=ze.properties;switch(we.type){case"FeatureCollection":0>Oe&&(Oe=we.features.length+Oe),Fn=Fn||we.features[Oe].properties,Je=we.features[Oe].geometry;break;case"Feature":Fn=Fn||we.properties,Je=we.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":Je=we;break;default:throw Error("geojson is invalid")}if(Je===null)return null;var Yn=Je.coordinates;switch(Je.type){case"Point":return Nl(Yn,Fn,ze);case"MultiPoint":return 0>ot&&(ot=Yn.length+ot),Nl(Yn[ot],Fn,ze);case"LineString":return 0>on&&(on=Yn.length+on),Nl(Yn[on],Fn,ze);case"Polygon":return 0>Lt&&(Lt=Yn.length+Lt),0>on&&(on=Yn[Lt].length+on),Nl(Yn[Lt][on],Fn,ze);case"MultiLineString":return 0>ot&&(ot=Yn.length+ot),0>on&&(on=Yn[ot].length+on),Nl(Yn[ot][on],Fn,ze);case"MultiPolygon":return 0>ot&&(ot=Yn.length+ot),0>Lt&&(Lt=Yn[ot].length+Lt),0>on&&(on=Yn[ot][Lt].length-on),Nl(Yn[ot][Lt][on],Fn,ze)}throw Error("geojson is invalid")},findSegment:function(we,ze){if(!hs(ze=ze||{}))throw Error("options is invalid");var Je,Oe=ze.featureIndex||0,ot=ze.multiFeatureIndex||0,Lt=ze.geometryIndex||0,on=ze.segmentIndex||0,Fn=ze.properties;switch(we.type){case"FeatureCollection":0>Oe&&(Oe=we.features.length+Oe),Fn=Fn||we.features[Oe].properties,Je=we.features[Oe].geometry;break;case"Feature":Fn=Fn||we.properties,Je=we.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":Je=we;break;default:throw Error("geojson is invalid")}if(Je===null)return null;var Yn=Je.coordinates;switch(Je.type){case"Point":case"MultiPoint":return null;case"LineString":return 0>on&&(on=Yn.length+on-1),Hi([Yn[on],Yn[on+1]],Fn,ze);case"Polygon":return 0>Lt&&(Lt=Yn.length+Lt),0>on&&(on=Yn[Lt].length+on-1),Hi([Yn[Lt][on],Yn[Lt][on+1]],Fn,ze);case"MultiLineString":return 0>ot&&(ot=Yn.length+ot),0>on&&(on=Yn[ot].length+on-1),Hi([Yn[ot][on],Yn[ot][on+1]],Fn,ze);case"MultiPolygon":return 0>ot&&(ot=Yn.length+ot),0>Lt&&(Lt=Yn[ot].length+Lt),0>on&&(on=Yn[ot][Lt].length-on-1),Hi([Yn[ot][Lt][on],Yn[ot][Lt][on+1]],Fn,ze)}throw Error("geojson is invalid")},flattenEach:us,flattenReduce:function(we,ze,Je){var Oe=Je;return us(we,function(ot,Lt,on){Oe=Lt===0&&on===0&&Je===void 0?ot:ze(Oe,ot,Lt,on)}),Oe},geomEach:so,geomReduce:Pi,lineEach:dl,lineReduce:function(we,ze,Je){var Oe=Je;return dl(we,function(ot,Lt,on,Fn){Oe=Lt===0&&Je===void 0?ot:ze(Oe,ot,Lt,on,Fn)}),Oe},propEach:ai,propReduce:function(we,ze,Je){var Oe=Je;return ai(we,function(ot,Lt){Oe=Lt===0&&Je===void 0?ot:ze(Oe,ot,Lt)}),Oe},segmentEach:ga,segmentReduce:$a});function Ml(we){var ze=[1/0,1/0,-1/0,-1/0];return yr(we,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 Za=Object.freeze({__proto__:null,default:Ml});function Pu(we){if(!we)throw Error("coord is required");if(!Array.isArray(we)){if(we.type==="Feature"&&we.geometry!==null&&we.geometry.type==="Point")return we.geometry.coordinates;if(we.type==="Point")return we.coordinates}if(Array.isArray(we)&&we.length>=2&&!Array.isArray(we[0])&&!Array.isArray(we[1]))return we;throw Error("coord must be GeoJSON Point or an Array of numbers")}function ea(we){if(Array.isArray(we))return we;if(we.type==="Feature"){if(we.geometry!==null)return we.geometry.coordinates}else if(we.coordinates)return we.coordinates;throw Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Qa(we){return we.type==="Feature"?we.geometry:we}function el(we,ze){return we.type==="FeatureCollection"?"FeatureCollection":we.type==="GeometryCollection"?"GeometryCollection":we.type==="Feature"&&we.geometry!==null?we.geometry.type:we.type}function Ul(we,ze,Je,Oe,ot){ql(we,ze,Je||0,Oe||we.length-1,ot||au)}function ql(we,ze,Je,Oe,ot){for(;Oe>Je;){if(Oe-Je>600){var Lt=Oe-Je+1,on=ze-Je+1,Fn=Math.log(Lt),Yn=.5*Math.exp(2*Fn/3),zi=.5*Math.sqrt(Fn*Yn*(Lt-Yn)/Lt)*(0>on-Lt/2?-1:1);ql(we,ze,Math.max(Je,Math.floor(ze-on*Yn/Lt+zi)),Math.min(Oe,Math.floor(ze+(Lt-on)*Yn/Lt+zi)),ot)}var ns=we[ze],Fo=Je,Ho=Oe;for(vu(we,Je,ze),ot(we[Oe],ns)>0&&vu(we,Je,Oe);Ho>Fo;){for(vu(we,Fo,Ho),Fo++,Ho--;0>ot(we[Fo],ns);)Fo++;for(;ot(we[Ho],ns)>0;)Ho--}ot(we[Je],ns)===0?vu(we,Je,Ho):vu(we,++Ho,Oe),Ho>ze||(Je=Ho+1),ze>Ho||(Oe=Ho-1)}}function vu(we,ze,Je){var Oe=we[ze];we[ze]=we[Je],we[Je]=Oe}function au(we,ze){return ze>we?-1:we>ze?1:0}function Cn(we,ze,Je){if(!Je)return ze.indexOf(we);for(let Oe=0;ze.length>Oe;Oe++)if(Je(we,ze[Oe]))return Oe;return-1}function Eu(we,ze){ls(we,0,we.children.length,ze,we)}function ls(we,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 on=we.children[Lt];Ks(ot,we.leaf?Oe(on):on)}return ot}function Ks(we,ze){return we.minX=Math.min(we.minX,ze.minX),we.minY=Math.min(we.minY,ze.minY),we.maxX=Math.max(we.maxX,ze.maxX),we.maxY=Math.max(we.maxY,ze.maxY),we}function xa(we,ze){return we.minX-ze.minX}function Il(we,ze){return we.minY-ze.minY}function El(we){return(we.maxX-we.minX)*(we.maxY-we.minY)}function ml(we){return we.maxX-we.minX+(we.maxY-we.minY)}function fu(we,ze){const Je=Math.max(we.minX,ze.minX),Oe=Math.max(we.minY,ze.minY),ot=Math.min(we.maxX,ze.maxX),Lt=Math.min(we.maxY,ze.maxY);return Math.max(0,ot-Je)*Math.max(0,Lt-Oe)}function Nu(we,ze){return!(we.minX>ze.minX||we.minY>ze.minY||ze.maxX>we.maxX||ze.maxY>we.maxY)}function lc(we,ze){return!(ze.minX>we.maxX||ze.minY>we.maxY||we.minX>ze.maxX||we.minY>ze.maxY)}function Ic(we){return{children:we,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Vc(we,ze,Je,Oe,ot){const Lt=[ze,Je];for(;Lt.length;){if(Oe>=(Je=Lt.pop())-(ze=Lt.pop()))continue;const on=ze+Math.ceil((Je-ze)/Oe/2)*Oe;Ul(we,on,ze,Je,ot),Lt.push(ze,on,on,Je)}}var zd=Object.freeze({__proto__:null,default:class{constructor(we=9){this._maxEntries=Math.max(4,we),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(we){let ze=this.data;const Je=[];if(!lc(we,ze))return Je;const Oe=this.toBBox,ot=[];for(;ze;){for(let Lt=0;ze.children.length>Lt;Lt++){const on=ze.children[Lt],Fn=ze.leaf?Oe(on):on;lc(we,Fn)&&(ze.leaf?Je.push(on):Nu(we,Fn)?this._all(on,Je):ot.push(on))}ze=ot.pop()}return Je}collides(we){let ze=this.data;if(!lc(we,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(we,Lt)){if(ze.leaf||Nu(we,Lt))return!0;Je.push(ot)}}ze=Je.pop()}return!1}load(we){if(!we||!we.length)return this;if(this._minEntries>we.length){for(let Je=0;we.length>Je;Je++)this.insert(we[Je]);return this}let ze=this._build(we.slice(),0,we.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(we){return we&&this._insert(we,this.data.height-1),this}clear(){return this.data=Ic([]),this}remove(we,ze){if(!we)return this;let Je=this.data;const Oe=this.toBBox(we),ot=[],Lt=[];let on,Fn,Yn;for(;Je||ot.length;){if(Je||(Je=ot.pop(),Fn=ot[ot.length-1],on=Lt.pop(),Yn=!0),Je.leaf){const zi=Cn(we,Je.children,ze);if(zi!==-1)return Je.children.splice(zi,1),ot.push(Je),this._condense(ot),this}Yn||Je.leaf||!Nu(Je,Oe)?Fn?(on++,Je=Fn.children[on],Yn=!1):Je=null:(ot.push(Je),Lt.push(on),on=0,Fn=Je,Je=Je.children[0])}return this}toBBox(we){return we}compareMinX(we,ze){return we.minX-ze.minX}compareMinY(we,ze){return we.minY-ze.minY}toJSON(){return this.data}fromJSON(we){return this.data=we,this}_all(we,ze){const Je=[];for(;we;)we.leaf?ze.push(...we.children):Je.push(...we.children),we=Je.pop();return ze}_build(we,ze,Je,Oe){const ot=Je-ze+1;let Lt,on=this._maxEntries;if(on>=ot)return Lt=Ic(we.slice(ze,Je+1)),Eu(Lt,this.toBBox),Lt;Oe||(on=Math.ceil(ot/Math.pow(on,(Oe=Math.ceil(Math.log(ot)/Math.log(on)))-1))),Lt=Ic([]),Lt.leaf=!1,Lt.height=Oe;const Fn=Math.ceil(ot/on),Yn=Fn*Math.ceil(Math.sqrt(on));Vc(we,ze,Je,Yn,this.compareMinX);for(let zi=ze;Je>=zi;zi+=Yn){const ns=Math.min(zi+Yn-1,Je);Vc(we,zi,ns,Fn,this.compareMinY);for(let Fo=zi;ns>=Fo;Fo+=Fn)Lt.children.push(this._build(we,Fo,Math.min(Fo+Fn-1,ns),Oe-1))}return Eu(Lt,this.toBBox),Lt}_chooseSubtree(we,ze,Je,Oe){for(;Oe.push(ze),!ze.leaf&&Oe.length-1!==Je;){let on,Fn=1/0,Yn=1/0;for(let zi=0;ze.children.length>zi;zi++){const ns=ze.children[zi],Fo=El(ns),Ho=(Math.max((Lt=ns).maxX,(ot=we).maxX)-Math.min(Lt.minX,ot.minX))*(Math.max(Lt.maxY,ot.maxY)-Math.min(Lt.minY,ot.minY))-Fo;Yn>Ho?(Yn=Ho,Fn=Fn>Fo?Fo:Fn,on=ns):Ho===Yn&&Fn>Fo&&(Fn=Fo,on=ns)}ze=on||ze.children[0]}var ot,Lt;return ze}_insert(we,ze,Je){const Oe=Je?we:this.toBBox(we),ot=[],Lt=this._chooseSubtree(Oe,this.data,ze,ot);for(Lt.children.push(we),Ks(Lt,Oe);ze>=0&&ot[ze].children.length>this._maxEntries;)this._split(ot,ze),ze--;this._adjustParentBBoxes(Oe,ot,ze)}_split(we,ze){const Je=we[ze],Oe=Je.children.length,ot=this._minEntries;this._chooseSplitAxis(Je,ot,Oe);const Lt=this._chooseSplitIndex(Je,ot,Oe),on=Ic(Je.children.splice(Lt,Je.children.length-Lt));on.height=Je.height,on.leaf=Je.leaf,Eu(Je,this.toBBox),Eu(on,this.toBBox),ze?we[ze-1].children.push(on):this._splitRoot(Je,on)}_splitRoot(we,ze){this.data=Ic([we,ze]),this.data.height=we.height+1,this.data.leaf=!1,Eu(this.data,this.toBBox)}_chooseSplitIndex(we,ze,Je){let Oe,ot=1/0,Lt=1/0;for(let on=ze;Je-ze>=on;on++){const Fn=ls(we,0,on,this.toBBox),Yn=ls(we,on,Je,this.toBBox),zi=fu(Fn,Yn),ns=El(Fn)+El(Yn);ot>zi?(ot=zi,Oe=on,Lt=Lt>ns?ns:Lt):zi===ot&&Lt>ns&&(Lt=ns,Oe=on)}return Oe||Je-ze}_chooseSplitAxis(we,ze,Je){const Oe=we.leaf?this.compareMinX:xa,ot=we.leaf?this.compareMinY:Il,Lt=this._allDistMargin(we,ze,Je,Oe);this._allDistMargin(we,ze,Je,ot)>Lt&&we.children.sort(Oe)}_allDistMargin(we,ze,Je,Oe){we.children.sort(Oe);const ot=this.toBBox,Lt=ls(we,0,ze,ot),on=ls(we,Je-ze,Je,ot);let Fn=ml(Lt)+ml(on);for(let Yn=ze;Je-ze>Yn;Yn++){const zi=we.children[Yn];Ks(Lt,we.leaf?ot(zi):zi),Fn+=ml(Lt)}for(let Yn=Je-ze-1;Yn>=ze;Yn--){const zi=we.children[Yn];Ks(on,we.leaf?ot(zi):zi),Fn+=ml(on)}return Fn}_adjustParentBBoxes(we,ze,Je){for(let Oe=Je;Oe>=0;Oe--)Ks(ze[Oe],we)}_condense(we){for(let ze,Je=we.length-1;Je>=0;Je--)we[Je].children.length===0?Je>0?(ze=we[Je-1].children,ze.splice(ze.indexOf(we[Je]),1)):this.clear():Eu(we[Je],this.toBBox)}}});function eh(we,ze){return ze>we?-1:we>ze?1:0}var Kd=Object.freeze({__proto__:null,default:class{constructor(we=[],ze=eh){if(this.data=we,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(we){this.data.push(we),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const we=this.data[0],ze=this.data.pop();return this.length--,this.length>0&&(this.data[0]=ze,this._down(0)),we}peek(){return this.data[0]}_up(we){const{data:ze,compare:Je}=this,Oe=ze[we];for(;we>0;){const ot=we-1>>1,Lt=ze[ot];if(Je(Oe,Lt)>=0)break;ze[we]=Lt,we=ot}ze[we]=Oe}_down(we){const{data:ze,compare:Je}=this,Oe=this.length>>1,ot=ze[we];for(;Oe>we;){let Lt=1+(we<<1),on=ze[Lt];const Fn=Lt+1;if(this.length>Fn&&0>Je(ze[Fn],on)&&(Lt=Fn,on=ze[Fn]),Je(on,ot)>=0)break;ze[we]=on,we=Lt}ze[we]=ot}}}),ad=function(we,ze,Je,Oe){var ot=we[0],Lt=we[1],on=!1;Je===void 0&&(Je=0),Oe===void 0&&(Oe=ze.length);for(var Fn=(Oe-Je)/2,Yn=0,zi=Fn-1;Fn>Yn;zi=Yn++){var ns=ze[Je+2*Yn+0],Fo=ze[Je+2*Yn+1],Ho=ze[Je+2*zi+1];Fo>Lt!=Ho>Lt&&(ze[Je+2*zi+0]-ns)*(Lt-Fo)/(Ho-Fo)+ns>ot&&(on=!on)}return on},ku=function(we,ze,Je,Oe){var ot=we[0],Lt=we[1],on=!1;Je===void 0&&(Je=0),Oe===void 0&&(Oe=ze.length);for(var Fn=Oe-Je,Yn=0,zi=Fn-1;Fn>Yn;zi=Yn++){var ns=ze[Yn+Je][0],Fo=ze[Yn+Je][1],Ho=ze[zi+Je][1];Fo>Lt!=Ho>Lt&&(ze[zi+Je][0]-ns)*(Lt-Fo)/(Ho-Fo)+ns>ot&&(on=!on)}return on},Fc=function(we,ze,Je,Oe){return ze.length>0&&Array.isArray(ze[0])?ku(we,ze,Je,Oe):ad(we,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(we,ze,Je){return we(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(we){if(we.__esModule)return we;var ze=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(we).forEach(function(Je){var Oe=Object.getOwnPropertyDescriptor(we,Je);Object.defineProperty(ze,Je,Oe.get?Oe:{enumerable:!0,get:function(){return we[Je]}})}),ze}var jd=Xd(function(we,ze){(function(Je){const ot=33306690738754706e-32;function Lt(Gl,Sl,Kl,il,Ga){let pu,ic,od,Oo,Qh=Sl[0],xc=il[0],hh=0,Gd=0;xc>Qh==xc>-Qh?(pu=Qh,Qh=Sl[++hh]):(pu=xc,xc=il[++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=il[++Gd]),pu=ic,od!==0&&(Ga[_++]=od);Gl>hh&&Kl>Gd;)xc>Qh==xc>-Qh?(od=pu-((ic=pu+Qh)-(Oo=ic-pu))+(Qh-Oo),Qh=Sl[++hh]):(od=pu-((ic=pu+xc)-(Oo=ic-pu))+(xc-Oo),xc=il[++Gd]),pu=ic,od!==0&&(Ga[_++]=od);for(;Gl>hh;)od=pu-((ic=pu+Qh)-(Oo=ic-pu))+(Qh-Oo),Qh=Sl[++hh],pu=ic,od!==0&&(Ga[_++]=od);for(;Kl>Gd;)od=pu-((ic=pu+xc)-(Oo=ic-pu))+(xc-Oo),xc=il[++Gd],pu=ic,od!==0&&(Ga[_++]=od);return pu===0&&_!==0||(Ga[_++]=pu),_}function on(Gl){return new Float64Array(Gl)}const Fn=33306690738754716e-32,Yn=22204460492503146e-32,zi=11093356479670487e-47,ns=on(4),Fo=on(8),Ho=on(12),zu=on(16),gu=on(4);Je.orient2d=function(Gl,Sl,Kl,il,Ga,pu){const ic=(Sl-pu)*(Kl-Ga),od=(Gl-Ga)*(il-pu),Oo=ic-od;if(ic===0||od===0||ic>0!=od>0)return Oo;const Qh=Math.abs(ic+od);return Fn*Qh>Math.abs(Oo)?-function(xc,hh,Gd,_,R,G,le){let ke,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs,ra,al,Pa,Ol,jl,cu,lu;const Uu=xc-R,kc=Gd-R,ac=hh-G,_d=_-G;Nn=(Ol=(bi=Uu-(Ur=(cr=134217729*Uu)-(cr-Uu)))*(zo=_d-(_o=(cr=134217729*_d)-(cr-_d)))-((Pa=Uu*_d)-Ur*_o-bi*_o-Ur*zo))-(qs=Ol-(cu=(bi=ac-(Ur=(cr=134217729*ac)-(cr-ac)))*(zo=kc-(_o=(cr=134217729*kc)-(cr-kc)))-((jl=ac*kc)-Ur*_o-bi*_o-Ur*zo))),ns[0]=Ol-(qs+Nn)+(Nn-cu),Nn=(al=Pa-((ra=Pa+qs)-(Nn=ra-Pa))+(qs-Nn))-(qs=al-jl),ns[1]=al-(qs+Nn)+(Nn-jl),Nn=(lu=ra+qs)-ra,ns[2]=ra-(lu-Nn)+(qs-Nn),ns[3]=lu;let Xu=function(Gr,bo){let la=bo[0];for(let Ya=1;Gr>Ya;Ya++)la+=bo[Ya];return la}(4,ns),Nd=Yn*le;if(Xu>=Nd||-Xu>=Nd||(ke=xc-(Uu+(Nn=xc-Uu))+(Nn-R),wt=Gd-(kc+(Nn=Gd-kc))+(Nn-R),Qe=hh-(ac+(Nn=hh-ac))+(Nn-G),jt=_-(_d+(Nn=_-_d))+(Nn-G),ke===0&&Qe===0&&wt===0&&jt===0)||(Nd=zi*le+ot*Math.abs(Xu),(Xu+=Uu*jt+_d*ke-(ac*wt+kc*Qe))>=Nd||-Xu>=Nd))return Xu;Nn=(Ol=(bi=ke-(Ur=(cr=134217729*ke)-(cr-ke)))*(zo=_d-(_o=(cr=134217729*_d)-(cr-_d)))-((Pa=ke*_d)-Ur*_o-bi*_o-Ur*zo))-(qs=Ol-(cu=(bi=Qe-(Ur=(cr=134217729*Qe)-(cr-Qe)))*(zo=kc-(_o=(cr=134217729*kc)-(cr-kc)))-((jl=Qe*kc)-Ur*_o-bi*_o-Ur*zo))),gu[0]=Ol-(qs+Nn)+(Nn-cu),Nn=(al=Pa-((ra=Pa+qs)-(Nn=ra-Pa))+(qs-Nn))-(qs=al-jl),gu[1]=al-(qs+Nn)+(Nn-jl),Nn=(lu=ra+qs)-ra,gu[2]=ra-(lu-Nn)+(qs-Nn),gu[3]=lu;const qt=Lt(4,ns,4,gu,Fo);Nn=(Ol=(bi=Uu-(Ur=(cr=134217729*Uu)-(cr-Uu)))*(zo=jt-(_o=(cr=134217729*jt)-(cr-jt)))-((Pa=Uu*jt)-Ur*_o-bi*_o-Ur*zo))-(qs=Ol-(cu=(bi=ac-(Ur=(cr=134217729*ac)-(cr-ac)))*(zo=wt-(_o=(cr=134217729*wt)-(cr-wt)))-((jl=ac*wt)-Ur*_o-bi*_o-Ur*zo))),gu[0]=Ol-(qs+Nn)+(Nn-cu),Nn=(al=Pa-((ra=Pa+qs)-(Nn=ra-Pa))+(qs-Nn))-(qs=al-jl),gu[1]=al-(qs+Nn)+(Nn-jl),Nn=(lu=ra+qs)-ra,gu[2]=ra-(lu-Nn)+(qs-Nn),gu[3]=lu;const On=Lt(qt,Fo,4,gu,Ho);Nn=(Ol=(bi=ke-(Ur=(cr=134217729*ke)-(cr-ke)))*(zo=jt-(_o=(cr=134217729*jt)-(cr-jt)))-((Pa=ke*jt)-Ur*_o-bi*_o-Ur*zo))-(qs=Ol-(cu=(bi=Qe-(Ur=(cr=134217729*Qe)-(cr-Qe)))*(zo=wt-(_o=(cr=134217729*wt)-(cr-wt)))-((jl=Qe*wt)-Ur*_o-bi*_o-Ur*zo))),gu[0]=Ol-(qs+Nn)+(Nn-cu),Nn=(al=Pa-((ra=Pa+qs)-(Nn=ra-Pa))+(qs-Nn))-(qs=al-jl),gu[1]=al-(qs+Nn)+(Nn-jl),Nn=(lu=ra+qs)-ra,gu[2]=ra-(lu-Nn)+(qs-Nn),gu[3]=lu;const hr=Lt(On,Ho,4,gu,zu);return zu[hr-1]}(Gl,Sl,Kl,il,Ga,pu,Qh):Oo},Je.orient2dfast=function(Gl,Sl,Kl,il,Ga,pu){return(Sl-pu)*(Kl-Ga)-(Gl-Ga)*(il-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(we,ze,Je){ze=Math.max(0,ze===void 0?2:ze),Je=Je||0;var Oe=function(il){for(var Ga=il[0],pu=il[0],ic=il[0],od=il[0],Oo=0;il.length>Oo;Oo++){var Qh=il[Oo];Ga[0]>Qh[0]&&(Ga=Qh),Qh[0]>ic[0]&&(ic=Qh),pu[1]>Qh[1]&&(pu=Qh),Qh[1]>od[1]&&(od=Qh)}var xc=[Ga,pu,ic,od],hh=xc.slice();for(Oo=0;il.length>Oo;Oo++)Fc(il[Oo],xc)||hh.push(il[Oo]);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)}(we),ot=new vh(16);ot.toBBox=function(il){return{minX:il[0],minY:il[1],maxX:il[0],maxY:il[1]}},ot.compareMinX=function(il,Ga){return il[0]-Ga[0]},ot.compareMinY=function(il,Ga){return il[1]-Ga[1]},ot.load(we);for(var Lt,on=[],Fn=0;Oe.length>Fn;Fn++){var Yn=Oe[Fn];ot.remove(Yn),Lt=Nf(Yn,Lt),on.push(Lt)}var zi=new vh(16);for(Fn=0;on.length>Fn;Fn++)zi.insert(Cp(on[Fn]));for(var ns=ze*ze,Fo=Je*Je;on.length;){var Ho=on.shift(),zu=Ho.p,gu=Ho.next.p,Gl=uh(zu,gu);if(Gl>=Fo){var Sl=Gl/ns;(Yn=cc(ot,Ho.prev.p,zu,gu,Ho.next.next.p,Sl,zi))&&Math.min(uh(Yn,zu),uh(Yn,gu))<=Sl&&(on.push(Ho),on.push(Nf(Yn,Ho)),ot.remove(Yn),zi.remove(Ho),zi.insert(Cp(Ho)),zi.insert(Cp(Ho.next)))}}Ho=Lt;var Kl=[];do Kl.push(Ho.p),Ho=Ho.next;while(Ho!==Lt);return Kl.push(Ho.p),Kl}function cc(we,ze,Je,Oe,ot,Lt,on){for(var Fn=new id([],Xc),Yn=we.data;Yn;){for(var zi=0;Yn.children.length>zi;zi++){var ns=Yn.children[zi],Fo=Yn.leaf?Th(ns,Je,Oe):jh(Je,Oe,ns);LtHo.dist&&Gl>Ho.dist&&Lh(Je,zu,on)&&Lh(Oe,zu,on))return zu}(Yn=Fn.pop())&&(Yn=Yn.node)}return null}function Xc(we,ze){return we.dist-ze.dist}function jh(we,ze,Je){if(uf(we,Je)||uf(ze,Je))return 0;var Oe=yu(we[0],we[1],ze[0],ze[1],Je.minX,Je.minY,Je.maxX,Je.minY);if(Oe===0)return 0;var ot=yu(we[0],we[1],ze[0],ze[1],Je.minX,Je.minY,Je.minX,Je.maxY);if(ot===0)return 0;var Lt=yu(we[0],we[1],ze[0],ze[1],Je.maxX,Je.minY,Je.maxX,Je.maxY);if(Lt===0)return 0;var on=yu(we[0],we[1],ze[0],ze[1],Je.minX,Je.maxY,Je.maxX,Je.maxY);return on===0?0:Math.min(Oe,ot,Lt,on)}function uf(we,ze){return!(ze.minX>we[0]||we[0]>ze.maxX||ze.minY>we[1]||we[1]>ze.maxY)}function Lh(we,ze,Je){for(var Oe,ot,Lt,on,Fn=Je.search({minX:Math.min(we[0],ze[0]),minY:Math.min(we[1],ze[1]),maxX:Math.max(we[0],ze[0]),maxY:Math.max(we[1],ze[1])}),Yn=0;Fn.length>Yn;Yn++)if(ot=Fn[Yn].next.p,Lt=we,(Oe=Fn[Yn].p)!==(on=ze)&&ot!==Lt&&Sf(Oe,ot,Lt)>0!=Sf(Oe,ot,on)>0&&Sf(Lt,on,Oe)>0!=Sf(Lt,on,ot)>0)return!1;return!0}function Sf(we,ze,Je){return nd(we[0],we[1],ze[0],ze[1],Je[0],Je[1])}function Cp(we){var ze=we.p,Je=we.next.p;return we.minX=Math.min(ze[0],Je[0]),we.minY=Math.min(ze[1],Je[1]),we.maxX=Math.max(ze[0],Je[0]),we.maxY=Math.max(ze[1],Je[1]),we}function Nf(we,ze){var Je={p:we,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(we,ze){var Je=we[0]-ze[0],Oe=we[1]-ze[1];return Je*Je+Oe*Oe}function Th(we,ze,Je){var Oe=ze[0],ot=ze[1],Lt=Je[0]-Oe,on=Je[1]-ot;if(Lt!==0||on!==0){var Fn=((we[0]-Oe)*Lt+(we[1]-ot)*on)/(Lt*Lt+on*on);Fn>1?(Oe=Je[0],ot=Je[1]):Fn>0&&(Oe+=Lt*Fn,ot+=on*Fn)}return(Lt=we[0]-Oe)*Lt+(on=we[1]-ot)*on}function yu(we,ze,Je,Oe,ot,Lt,on,Fn){var Yn,zi,ns,Fo,Ho=Je-we,zu=Oe-ze,gu=on-ot,Gl=Fn-Lt,Sl=we-ot,Kl=ze-Lt,il=Ho*Ho+zu*zu,Ga=Ho*gu+zu*Gl,pu=gu*gu+Gl*Gl,ic=Ho*Sl+zu*Kl,od=gu*Sl+Gl*Kl,Oo=il*pu-Ga*Ga,Qh=Oo,xc=Oo;Oo===0?(zi=0,Qh=1,Fo=od,xc=pu):(Fo=il*od-Ga*ic,0>(zi=Ga*od-pu*ic)?(zi=0,Fo=od,xc=pu):zi>Qh&&(zi=Qh,Fo=od+Ga,xc=pu)),0>Fo?(Fo=0,0>-ic?zi=0:-ic>il?zi=Qh:(zi=-ic,Qh=il)):Fo>xc&&(Fo=xc,0>-ic+Ga?zi=0:-ic+Ga>il?zi=Qh:(zi=-ic+Ga,Qh=il));var hh=(1-(ns=Fo===0?0:Fo/xc))*ot+ns*on-((1-(Yn=zi===0?0:zi/Qh))*we+Yn*Je),Gd=(1-ns)*Lt+ns*Fn-((1-Yn)*ze+Yn*Oe);return hh*hh+Gd*Gd}function ff(we,ze){return we[0]===ze[0]?we[1]-ze[1]:we[0]-ze[0]}function tl(we,ze,Je){Je===void 0&&(Je={});var Oe=Pu(we),ot=Pu(ze),Lt=vo(ot[1]-Oe[1]),on=vo(ot[0]-Oe[0]),Fn=vo(Oe[1]),Yn=vo(ot[1]),zi=Math.pow(Math.sin(Lt/2),2)+Math.pow(Math.sin(on/2),2)*Math.cos(Fn)*Math.cos(Yn);return $u(2*Math.atan2(Math.sqrt(zi),Math.sqrt(1-zi)),Je.units)}function Fu(we){return function(ze,Je){Je===void 0&&(Je={});var Oe=Number(ze[0]),ot=Number(ze[1]),Lt=Number(ze[2]),on=Number(ze[3]);if(ze.length===6)throw Error("@turf/bbox-polygon does not support BBox with 6 positions");var Fn=[Oe,ot];return vs([[Fn,[Lt,ot],[Lt,on],[Oe,on],Fn]],Je.properties,{bbox:ze,id:Je.id})}(Ml(we))}function wd(we,ze,Je,Oe){Oe===void 0&&(Oe={});var ot=Pu(we),Lt=vo(ot[0]),on=vo(ot[1]),Fn=vo(Je),Yn=rc(ze,Oe.units),zi=Math.asin(Math.sin(on)*Math.cos(Yn)+Math.cos(on)*Math.sin(Yn)*Math.cos(Fn));return Nl([Pc(Lt+Math.atan2(Math.sin(Fn)*Math.sin(Yn)*Math.cos(on),Math.cos(Yn)-Math.sin(on)*Math.sin(zi))),Pc(zi)],Oe.properties)}function Yd(we,ze,Je){if(Je===void 0&&(Je={}),Je.final===!0)return function(zi,ns){var Fo=Yd(ns,zi);return Fo=(Fo+180)%360}(we,ze);var Oe=Pu(we),ot=Pu(ze),Lt=vo(Oe[0]),on=vo(ot[0]),Fn=vo(Oe[1]),Yn=vo(ot[1]);return Pc(Math.atan2(Math.sin(on-Lt)*Math.cos(Yn),Math.cos(Fn)*Math.sin(Yn)-Math.sin(Fn)*Math.cos(Yn)*Math.cos(on-Lt)))}function ja(we,ze){ze===void 0&&(ze={});var Je=Ml(we);return Nl([(Je[0]+Je[2])/2,(Je[1]+Je[3])/2],ze.properties,ze)}function ru(we,ze){ze===void 0&&(ze={});var Je=0,Oe=0,ot=0;return yr(we,function(Lt){Je+=Lt[0],Oe+=Lt[1],ot++},!0),Nl([Je/ot,Oe/ot],ze.properties)}function zl(we,ze){switch(ze===void 0&&(ze={}),el(we)){case"Point":return Nl(Pu(we),ze.properties);case"Polygon":var Je=[];yr(we,function(Ga){Je.push(Ga)});var Oe,ot,Lt,on,Fn,Yn,zi,ns,Fo=ru(we,{properties:ze.properties}),Ho=Fo.geometry.coordinates,zu=0,gu=0,Gl=0,Sl=Je.map(function(Ga){return[Ga[0]-Ho[0],Ga[1]-Ho[1]]});for(Oe=0;Je.length-1>Oe;Oe++)Gl+=ns=(on=(ot=Sl[Oe])[0])*(zi=(Lt=Sl[Oe+1])[1])-(Fn=Lt[0])*(Yn=ot[1]),zu+=(on+Fn)*ns,gu+=(Yn+zi)*ns;if(Gl===0)return Fo;var Kl=1/(6*(.5*Gl));return Nl([Ho[0]+Kl*zu,Ho[1]+Kl*gu],ze.properties);default:var il=function(Ga,pu){pu===void 0&&(pu={}),pu.concavity=pu.concavity||1/0;var ic=[];if(yr(Ga,function(Oo){ic.push([Oo[0],Oo[1]])}),!ic.length)return null;var od=Pf(ic,pu.concavity);return od.length>3?vs([od]):null}(we);return il?zl(il,{properties:ze.properties}):ru(we,{properties:ze.properties})}}function Au(we){if(!we)throw Error("geojson is required");var ze=[];return us(we,function(Je){(function(Oe,ot){var Lt=[],on=Oe.geometry;if(on!==null){switch(on.type){case"Polygon":Lt=ea(on);break;case"LineString":Lt=[ea(on)]}Lt.forEach(function(Fn){var Yn=function(zi,ns){var Fo=[];return zi.reduce(function(Ho,zu){var gu,Gl,Sl,Kl,il,Ga,pu=Hi([Ho,zu],ns);return pu.bbox=[(il=(Gl=zu)[0])>(Sl=(gu=Ho)[0])?Sl:il,(Ga=Gl[1])>(Kl=gu[1])?Kl:Ga,Sl>il?Sl:il,Kl>Ga?Kl:Ga],Fo.push(pu),zu}),Fo}(Fn,Oe.properties);Yn.forEach(function(zi){zi.id=ot.length,ot.push(zi)})})}})(Je,ze)}),eo(ze)}Pf.default=qd;function Vu(we,ze,Je){if(!Je)return ze.indexOf(we);for(let Oe=0;ze.length>Oe;Oe++)if(Je(we,ze[Oe]))return Oe;return-1}function Vd(we,ze){Ud(we,0,we.children.length,ze,we)}function Ud(we,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 on=we.children[Lt];oh(ot,we.leaf?Oe(on):on)}return ot}function oh(we,ze){return we.minX=Math.min(we.minX,ze.minX),we.minY=Math.min(we.minY,ze.minY),we.maxX=Math.max(we.maxX,ze.maxX),we.maxY=Math.max(we.maxY,ze.maxY),we}function Vf(we,ze){return we.minX-ze.minX}function yf(we,ze){return we.minY-ze.minY}function Uh(we){return(we.maxX-we.minX)*(we.maxY-we.minY)}function kf(we){return we.maxX-we.minX+(we.maxY-we.minY)}function Bh(we,ze){const Je=Math.max(we.minX,ze.minX),Oe=Math.max(we.minY,ze.minY),ot=Math.min(we.maxX,ze.maxX),Lt=Math.min(we.maxY,ze.maxY);return Math.max(0,ot-Je)*Math.max(0,Lt-Oe)}function Kf(we,ze){return!(we.minX>ze.minX||we.minY>ze.minY||ze.maxX>we.maxX||ze.maxY>we.maxY)}function sh(we,ze){return!(ze.minX>we.maxX||ze.minY>we.maxY||we.minX>ze.maxX||we.minY>ze.maxY)}function ed(we){return{children:we,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Vh(we,ze,Je,Oe,ot){const Lt=[ze,Je];for(;Lt.length;){if(Oe>=(Je=Lt.pop())-(ze=Lt.pop()))continue;const on=ze+Math.ceil((Je-ze)/Oe/2)*Oe;Ul(we,on,ze,Je,ot),Lt.push(ze,on,on,Je)}}var Kh=Object.freeze({__proto__:null,default:class{constructor(we=9){this._maxEntries=Math.max(4,we),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(we){let ze=this.data;const Je=[];if(!sh(we,ze))return Je;const Oe=this.toBBox,ot=[];for(;ze;){for(let Lt=0;ze.children.length>Lt;Lt++){const on=ze.children[Lt],Fn=ze.leaf?Oe(on):on;sh(we,Fn)&&(ze.leaf?Je.push(on):Kf(we,Fn)?this._all(on,Je):ot.push(on))}ze=ot.pop()}return Je}collides(we){let ze=this.data;if(!sh(we,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(we,Lt)){if(ze.leaf||Kf(we,Lt))return!0;Je.push(ot)}}ze=Je.pop()}return!1}load(we){if(!we||!we.length)return this;if(this._minEntries>we.length){for(let Je=0;we.length>Je;Je++)this.insert(we[Je]);return this}let ze=this._build(we.slice(),0,we.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(we){return we&&this._insert(we,this.data.height-1),this}clear(){return this.data=ed([]),this}remove(we,ze){if(!we)return this;let Je=this.data;const Oe=this.toBBox(we),ot=[],Lt=[];let on,Fn,Yn;for(;Je||ot.length;){if(Je||(Je=ot.pop(),Fn=ot[ot.length-1],on=Lt.pop(),Yn=!0),Je.leaf){const zi=Vu(we,Je.children,ze);if(zi!==-1)return Je.children.splice(zi,1),ot.push(Je),this._condense(ot),this}Yn||Je.leaf||!Kf(Je,Oe)?Fn?(on++,Je=Fn.children[on],Yn=!1):Je=null:(ot.push(Je),Lt.push(on),on=0,Fn=Je,Je=Je.children[0])}return this}toBBox(we){return we}compareMinX(we,ze){return we.minX-ze.minX}compareMinY(we,ze){return we.minY-ze.minY}toJSON(){return this.data}fromJSON(we){return this.data=we,this}_all(we,ze){const Je=[];for(;we;)we.leaf?ze.push(...we.children):Je.push(...we.children),we=Je.pop();return ze}_build(we,ze,Je,Oe){const ot=Je-ze+1;let Lt,on=this._maxEntries;if(on>=ot)return Lt=ed(we.slice(ze,Je+1)),Vd(Lt,this.toBBox),Lt;Oe||(on=Math.ceil(ot/Math.pow(on,(Oe=Math.ceil(Math.log(ot)/Math.log(on)))-1))),Lt=ed([]),Lt.leaf=!1,Lt.height=Oe;const Fn=Math.ceil(ot/on),Yn=Fn*Math.ceil(Math.sqrt(on));Vh(we,ze,Je,Yn,this.compareMinX);for(let zi=ze;Je>=zi;zi+=Yn){const ns=Math.min(zi+Yn-1,Je);Vh(we,zi,ns,Fn,this.compareMinY);for(let Fo=zi;ns>=Fo;Fo+=Fn)Lt.children.push(this._build(we,Fo,Math.min(Fo+Fn-1,ns),Oe-1))}return Vd(Lt,this.toBBox),Lt}_chooseSubtree(we,ze,Je,Oe){for(;Oe.push(ze),!ze.leaf&&Oe.length-1!==Je;){let on,Fn=1/0,Yn=1/0;for(let zi=0;ze.children.length>zi;zi++){const ns=ze.children[zi],Fo=Uh(ns),Ho=(Math.max((Lt=ns).maxX,(ot=we).maxX)-Math.min(Lt.minX,ot.minX))*(Math.max(Lt.maxY,ot.maxY)-Math.min(Lt.minY,ot.minY))-Fo;Yn>Ho?(Yn=Ho,Fn=Fn>Fo?Fo:Fn,on=ns):Ho===Yn&&Fn>Fo&&(Fn=Fo,on=ns)}ze=on||ze.children[0]}var ot,Lt;return ze}_insert(we,ze,Je){const Oe=Je?we:this.toBBox(we),ot=[],Lt=this._chooseSubtree(Oe,this.data,ze,ot);for(Lt.children.push(we),oh(Lt,Oe);ze>=0&&ot[ze].children.length>this._maxEntries;)this._split(ot,ze),ze--;this._adjustParentBBoxes(Oe,ot,ze)}_split(we,ze){const Je=we[ze],Oe=Je.children.length,ot=this._minEntries;this._chooseSplitAxis(Je,ot,Oe);const Lt=this._chooseSplitIndex(Je,ot,Oe),on=ed(Je.children.splice(Lt,Je.children.length-Lt));on.height=Je.height,on.leaf=Je.leaf,Vd(Je,this.toBBox),Vd(on,this.toBBox),ze?we[ze-1].children.push(on):this._splitRoot(Je,on)}_splitRoot(we,ze){this.data=ed([we,ze]),this.data.height=we.height+1,this.data.leaf=!1,Vd(this.data,this.toBBox)}_chooseSplitIndex(we,ze,Je){let Oe,ot=1/0,Lt=1/0;for(let on=ze;Je-ze>=on;on++){const Fn=Ud(we,0,on,this.toBBox),Yn=Ud(we,on,Je,this.toBBox),zi=Bh(Fn,Yn),ns=Uh(Fn)+Uh(Yn);ot>zi?(ot=zi,Oe=on,Lt=Lt>ns?ns:Lt):zi===ot&&Lt>ns&&(Lt=ns,Oe=on)}return Oe||Je-ze}_chooseSplitAxis(we,ze,Je){const Oe=we.leaf?this.compareMinX:Vf,ot=we.leaf?this.compareMinY:yf,Lt=this._allDistMargin(we,ze,Je,Oe);this._allDistMargin(we,ze,Je,ot)>Lt&&we.children.sort(Oe)}_allDistMargin(we,ze,Je,Oe){we.children.sort(Oe);const ot=this.toBBox,Lt=Ud(we,0,ze,ot),on=Ud(we,Je-ze,Je,ot);let Fn=kf(Lt)+kf(on);for(let Yn=ze;Je-ze>Yn;Yn++){const zi=we.children[Yn];oh(Lt,we.leaf?ot(zi):zi),Fn+=kf(Lt)}for(let Yn=Je-ze-1;Yn>=ze;Yn--){const zi=we.children[Yn];oh(on,we.leaf?ot(zi):zi),Fn+=kf(on)}return Fn}_adjustParentBBoxes(we,ze,Je){for(let Oe=Je;Oe>=0;Oe--)oh(ze[Oe],we)}_condense(we){for(let ze,Je=we.length-1;Je>=0;Je--)we[Je].children.length===0?Je>0?(ze=we[Je-1].children,ze.splice(ze.indexOf(we[Je]),1)):this.clear():Vd(we[Je],this.toBBox)}}}),cf=th(Kh),Qc=th(jn),Ra=th(Hl),cs=th(Za).default,Op=Ra.featureEach,no=Qc.featureCollection;function bc(we){var ze=new cf(we);return ze.insert=function(Je){if(Je.type!=="Feature")throw Error("invalid feature");return Je.bbox=Je.bbox?Je.bbox:cs(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:cs(ot),Oe.push(ot)}):Op(Je,function(ot){if(ot.type!=="Feature")throw Error("invalid features");ot.bbox=ot.bbox?ot.bbox:cs(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:cs(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 no(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 no(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=cs(Je);else{if(Je.type!=="FeatureCollection")throw Error("invalid geojson");Oe=cs(Je)}return{minX:Oe[0],minY:Oe[1],maxX:Oe[2],maxY:Oe[3]}},ze}var gf=bc;function Qu(we,ze){var Je={},Oe=[];if(we.type==="LineString"&&(we=ua(we)),ze.type==="LineString"&&(ze=ua(ze)),we.type==="Feature"&&ze.type==="Feature"&&we.geometry!==null&&ze.geometry!==null&&we.geometry.type==="LineString"&&ze.geometry.type==="LineString"&&we.geometry.coordinates.length===2&&ze.geometry.coordinates.length===2){var ot=Bc(we,ze);return ot&&Oe.push(ot),eo(Oe)}var Lt=gf();return Lt.load(Au(ze)),hi(Au(we),function(on){hi(Lt.search(on),function(Fn){var Yn=Bc(on,Fn);if(Yn){var zi=ea(Yn).join(",");Je[zi]||(Je[zi]=!0,Oe.push(Yn))}})}),eo(Oe)}function Bc(we,ze){var Je=ea(we),Oe=ea(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],on=Je[1][0],Fn=Je[1][1],Yn=Oe[0][0],zi=Oe[0][1],ns=Oe[1][0],Fo=Oe[1][1],Ho=(Fo-zi)*(on-ot)-(ns-Yn)*(Fn-Lt),zu=(ns-Yn)*(Lt-zi)-(Fo-zi)*(ot-Yn),gu=(on-ot)*(Lt-zi)-(Fn-Lt)*(ot-Yn);if(Ho===0)return null;var Gl=zu/Ho,Sl=gu/Ho;return 0>Gl||Gl>1||0>Sl||Sl>1?null:Nl([ot+Gl*(on-ot),Lt+Gl*(Fn-Lt)])}gf.default=bc;var Df=6378137;function qp(we){return Pi(we,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(we){var ze=0;if(we&&we.length>0){ze+=Math.abs(Ah(we[0]));for(var Je=1;we.length>Je;Je++)ze-=Math.abs(Ah(we[Je]))}return ze}function Ah(we){var ze,Je,Oe,ot,Lt,on,Fn=0,Yn=we.length;if(Yn>2){for(on=0;Yn>on;on++)on===Yn-2?(Oe=Yn-2,ot=Yn-1,Lt=0):on===Yn-1?(Oe=Yn-1,ot=0,Lt=1):(Oe=on,ot=on+1,Lt=on+2),ze=we[Oe],Je=we[ot],Fn+=(sp(we[Lt][0])-sp(ze[0]))*Math.sin(sp(Je[1]));Fn=Fn*Df*Df/2}return Fn}function sp(we){return we*Math.PI/180}function Rp(we,ze){return ze===void 0&&(ze={}),$a(we,function(Je,Oe){var ot=Oe.geometry.coordinates;return Je+tl(ot[0],ot[1],ze)},0)}function tp(we,ze){ze===void 0&&(ze={});var Je=Qa(we);switch(ze.properties||we.type!=="Feature"||(ze.properties=we.properties),Je.type){case"Polygon":return function(Oe,ot){ot===void 0&&(ot={});var Lt=Qa(Oe),on=Lt.coordinates,Fn=ot.properties?ot.properties:Oe.type==="Feature"?Oe.properties:{};return pg(on,Fn)}(Je,ze);case"MultiPolygon":return function(Oe,ot){ot===void 0&&(ot={});var Lt=Qa(Oe),on=Lt.coordinates,Fn=ot.properties?ot.properties:Oe.type==="Feature"?Oe.properties:{},Yn=[];return on.forEach(function(zi){Yn.push(pg(zi,Fn))}),eo(Yn)}(Je,ze);default:throw Error("invalid poly")}}function pg(we,ze){return we.length>1?sa(we,ze):Hi(we[0],ze)}function wp(we){for(var ze,Je,Oe=ea(we),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(we){var ze=Object.prototype.hasOwnProperty,Je="~";function Oe(){}function ot(Yn,zi,ns){this.fn=Yn,this.context=zi,this.once=ns||!1}function Lt(Yn,zi,ns,Fo,Ho){if(typeof ns!="function")throw new TypeError("The listener must be a function");var zu=new ot(ns,Fo||Yn,Ho),gu=Je?Je+zi:zi;return Yn._events[gu]?Yn._events[gu].fn?Yn._events[gu]=[Yn._events[gu],zu]:Yn._events[gu].push(zu):(Yn._events[gu]=zu,Yn._eventsCount++),Yn}function on(Yn,zi){--Yn._eventsCount==0?Yn._events=new Oe:delete Yn._events[zi]}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 Yn,zi,ns=[];if(this._eventsCount===0)return ns;for(zi in Yn=this._events)ze.call(Yn,zi)&&ns.push(Je?zi.slice(1):zi);return Object.getOwnPropertySymbols?ns.concat(Object.getOwnPropertySymbols(Yn)):ns},Fn.prototype.listeners=function(Yn){var zi=this._events[Je?Je+Yn:Yn];if(!zi)return[];if(zi.fn)return[zi.fn];for(var ns=0,Fo=zi.length,Ho=Array(Fo);Fo>ns;ns++)Ho[ns]=zi[ns].fn;return Ho},Fn.prototype.listenerCount=function(Yn){var zi=this._events[Je?Je+Yn:Yn];return zi?zi.fn?1:zi.length:0},Fn.prototype.emit=function(Yn,zi,ns,Fo,Ho,zu){var gu=Je?Je+Yn:Yn;if(!this._events[gu])return!1;var Gl,Sl,Kl=this._events[gu],il=arguments.length;if(Kl.fn){switch(Kl.once&&this.removeListener(Yn,Kl.fn,void 0,!0),il){case 1:return Kl.fn.call(Kl.context),!0;case 2:return Kl.fn.call(Kl.context,zi),!0;case 3:return Kl.fn.call(Kl.context,zi,ns),!0;case 4:return Kl.fn.call(Kl.context,zi,ns,Fo),!0;case 5:return Kl.fn.call(Kl.context,zi,ns,Fo,Ho),!0;case 6:return Kl.fn.call(Kl.context,zi,ns,Fo,Ho,zu),!0}for(Sl=1,Gl=Array(il-1);il>Sl;Sl++)Gl[Sl-1]=arguments[Sl];Kl.fn.apply(Kl.context,Gl)}else{var Ga,pu=Kl.length;for(Sl=0;pu>Sl;Sl++)switch(Kl[Sl].once&&this.removeListener(Yn,Kl[Sl].fn,void 0,!0),il){case 1:Kl[Sl].fn.call(Kl[Sl].context);break;case 2:Kl[Sl].fn.call(Kl[Sl].context,zi);break;case 3:Kl[Sl].fn.call(Kl[Sl].context,zi,ns);break;case 4:Kl[Sl].fn.call(Kl[Sl].context,zi,ns,Fo);break;default:if(!Gl)for(Ga=1,Gl=Array(il-1);il>Ga;Ga++)Gl[Ga-1]=arguments[Ga];Kl[Sl].fn.apply(Kl[Sl].context,Gl)}}return!0},Fn.prototype.on=function(Yn,zi,ns){return Lt(this,Yn,zi,ns,!1)},Fn.prototype.once=function(Yn,zi,ns){return Lt(this,Yn,zi,ns,!0)},Fn.prototype.removeListener=function(Yn,zi,ns,Fo){var Ho=Je?Je+Yn:Yn;if(!this._events[Ho])return this;if(!zi)return on(this,Ho),this;var zu=this._events[Ho];if(zu.fn)zu.fn!==zi||Fo&&!zu.once||ns&&zu.context!==ns||on(this,Ho);else{for(var gu=0,Gl=[],Sl=zu.length;Sl>gu;gu++)(zu[gu].fn!==zi||Fo&&!zu[gu].once||ns&&zu[gu].context!==ns)&&Gl.push(zu[gu]);Gl.length?this._events[Ho]=Gl.length===1?Gl[0]:Gl:on(this,Ho)}return this},Fn.prototype.removeAllListeners=function(Yn){var zi;return Yn?this._events[zi=Je?Je+Yn:Yn]&&on(this,zi):(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,we.exports=Fn}),Pd=function(we){ki(Je,we);var ze=Ns(Je);function Je(Oe,ot){var Lt,on=ot.style;return St(this,Je),(Lt=ze.call(this)).scene=void 0,Lt.style=void 0,Lt.layers=void 0,Lt.data=[],Lt.scene=Oe,Lt.style=on,Lt.layers=Lt.initLayers(),Lt.layers.forEach(function(Fn){Oe.addLayer(Fn)}),on.callback instanceof Function&&on.callback(Lt.layers),Lt}return Vn(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=oo(Oe).sort(function(Lt,on){return+Lt.properties.isActive-+on.properties.isActive});this.data=ot,this.layers.forEach(function(Lt){Lt.setData(eo(ot))})}},{key:"destroy",value:function(){var Oe=this;this.layers.forEach(function(ot){Oe.scene.removeLayer(ot)})}}]),Je}(Uf.EventEmitter),Np=function(we){ki(Je,we);var ze=Ns(Je);function Je(){return St(this,Je),ze.apply(this,arguments)}return Vn(Je,[{key:"initLayers",value:function(){var Oe=this.style,ot=Oe.normal,Lt=Oe.style,on=Oe.options;return[new I.LineLayer(on!=null?on:{}).source(eo([])).size(ot.size).color(ot.color).shape("line").style(Lt)]}}]),Je}(Pd),$p=function(we){var ze=typeof we;return we!=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(we){for(var ze=we.length;ze--&&of.test(we.charAt(ze)););return ze},iu=/^\s+/,mp=function(we){return we&&we.slice(0,Ff(we)+1).replace(iu,"")},Af=Wp.Symbol,np=Object.prototype,Od=np.hasOwnProperty,td=np.toString,Dp=Af?Af.toStringTag:void 0,_f=function(we){var ze=Od.call(we,Dp),Je=we[Dp];try{we[Dp]=void 0;var Oe=!0}catch(Lt){}var ot=td.call(we);return Oe&&(ze?we[Dp]=Je:delete we[Dp]),ot},Hh=Object.prototype.toString,Ap=function(we){return Hh.call(we)},Vp=Af?Af.toStringTag:void 0,Cd=function(we){return we==null?we===void 0?"[object Undefined]":"[object Null]":Vp&&Vp in Object(we)?_f(we):Ap(we)},Jh=function(we){return we!=null&&typeof we=="object"},kh=function(we){return typeof we=="symbol"||Jh(we)&&Cd(we)=="[object Symbol]"},yh=/^[-+]0x[0-9a-f]+$/i,Bf=/^0b[01]+$/i,bd=/^0o[0-7]+$/i,$c=parseInt,Hd=function(we){if(typeof we=="number")return we;if(kh(we))return NaN;if($p(we)){var ze=typeof we.valueOf=="function"?we.valueOf():we;we=$p(ze)?ze+"":ze}if(typeof we!="string")return we===0?we:+we;we=mp(we);var Je=Bf.test(we);return Je||bd.test(we)?$c(we.slice(2),Je?2:8):yh.test(we)?NaN:+we},mh=Math.max,Io=Math.min,D=function(we,ze,Je){var Oe,ot,Lt,on,Fn,Yn,zi=0,ns=!1,Fo=!1,Ho=!0;if(typeof we!="function")throw new TypeError("Expected a function");function zu(il){var Ga=Oe,pu=ot;return Oe=ot=void 0,zi=il,on=we.apply(pu,Ga)}function gu(il){var Ga=il-Yn;return Yn===void 0||Ga>=ze||0>Ga||Fo&&il-zi>=Lt}function Gl(){var il=Ih();if(gu(il))return Sl(il);Fn=setTimeout(Gl,function(Ga){var pu=ze-(Ga-Yn);return Fo?Io(pu,Lt-(Ga-zi)):pu}(il))}function Sl(il){return Fn=void 0,Ho&&Oe?zu(il):(Oe=ot=void 0,on)}function Kl(){var il=Ih(),Ga=gu(il);if(Oe=arguments,ot=this,Yn=il,Ga){if(Fn===void 0)return function(pu){return zi=pu,Fn=setTimeout(Gl,ze),ns?zu(pu):on}(Yn);if(Fo)return clearTimeout(Fn),Fn=setTimeout(Gl,ze),zu(Yn)}return Fn===void 0&&(Fn=setTimeout(Gl,ze)),on}return ze=Hd(ze)||0,$p(Je)&&(ns=!!Je.leading,Lt=(Fo="maxWait"in Je)?mh(Hd(Je.maxWait)||0,ze):Lt,Ho="trailing"in Je?!!Je.trailing:Ho),Kl.cancel=function(){Fn!==void 0&&clearTimeout(Fn),zi=0,Oe=Yn=ot=Fn=void 0},Kl.flush=function(){return Fn===void 0?on:Sl(Ih())},Kl},F=function(we){ki(Je,we);var ze=Ns(Je);function Je(){var Oe;St(this,Je);for(var ot=arguments.length,Lt=Array(ot),on=0;ot>on;on++)Lt[on]=arguments[on];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,Yn;Oe.disableHover(),(Fn=Oe.layers[0])===null||Fn===void 0||Fn.on(y.LayerEvent.Mousemove,Oe.onMouseMove),(Yn=Oe.layers[0])===null||Yn===void 0||Yn.on(y.LayerEvent.Mouseout,Oe.onMouseOut)},Oe.disableHover=function(){var Fn,Yn;(Fn=Oe.layers[0])===null||Fn===void 0||Fn.off(y.LayerEvent.Mousemove,Oe.onMouseMove),(Yn=Oe.layers[0])===null||Yn===void 0||Yn.off(y.LayerEvent.Mouseout,Oe.onMouseOut)},Oe}return Vn(Je,[{key:"initLayers",value:function(){var Oe=this.style,ot=Oe.normal,Lt=Oe.hover,on=Oe.active,Fn=Oe.style,Yn=Oe.options;return[new I.LineLayer(Yn!=null?Yn:{}).source(eo([])).size("isHover*isActive",function(zi,ns){return ns?on.size:zi?Lt.size:ot.size}).color("isHover*isActive",function(zi,ns){return ns?on.color:zi?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(we){ki(Je,we);var ze=Ns(Je);function Je(){var Oe;St(this,Je);for(var ot=arguments.length,Lt=Array(ot),on=0;ot>on;on++)Lt[on]=arguments[on];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 Vn(Je,[{key:"initLayers",value:function(){var Oe=this.style,ot=Oe.normal,Lt=Oe.style,on=Lt===void 0?{}:Lt,Fn=Oe.options,Yn=ot.shape,zi=ot.size,ns=ot.color;return[new I.PointLayer(Fn!=null?Fn:{}).source(eo([])).size(zi).color(ns).shape(Yn).style(on)]}},{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(we){ki(Je,we);var ze=Ns(Je);function Je(){var Oe;St(this,Je);for(var ot=arguments.length,Lt=Array(ot),on=0;ot>on;on++)Lt[on]=arguments[on];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 Vn(Je,[{key:"initLayers",value:function(){var Oe=this.style,ot=Oe.normal,Lt=Oe.hover,on=Oe.active,Fn=Oe.style,Yn=Fn===void 0?{}:Fn,zi=Oe.options;return[new I.PointLayer(zi!=null?zi:{}).source(eo([])).size("isHover*isActive",function(ns,Fo){return Fo?on.size:ns?Lt.size:ot.size}).color("isHover*isActive",function(ns,Fo){return Fo?on.color:ns?Lt.color:ot.color}).shape("isHover*isActive",function(ns,Fo){return Fo?on.shape:ns?Lt.shape:ot.shape}).style(Yn)]}},{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(we){ki(Je,we);var ze=Ns(Je);function Je(){var Oe;St(this,Je);for(var ot=arguments.length,Lt=Array(ot),on=0;ot>on;on++)Lt[on]=arguments[on];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,Yn;Oe.disableHover(),(Fn=Oe.layers[0])===null||Fn===void 0||Fn.on(y.LayerEvent.Mousemove,Oe.onMouseMove),(Yn=Oe.layers[0])===null||Yn===void 0||Yn.on(y.LayerEvent.Mouseout,Oe.onMouseOut)},Oe.disableHover=function(){var Fn,Yn;(Fn=Oe.layers[0])===null||Fn===void 0||Fn.off(y.LayerEvent.Mousemove,Oe.onMouseMove),(Yn=Oe.layers[0])===null||Yn===void 0||Yn.off(y.LayerEvent.Mouseout,Oe.onMouseOut)},Oe}return Vn(Je,[{key:"initLayers",value:function(){var Oe=this.style,ot=Oe.normal,Lt=Oe.hover,on=Oe.active,Fn=Oe.style,Yn=Oe.options,zi=new I.PolygonLayer(Yn!=null?Yn:{});return zi.source(eo([])).color("isHover*isActive",function(ns,Fo){return Fo?on.color:ns?Lt.color:ot.color}).style(Fn),[zi]}},{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),Jt=function(we){ki(Je,we);var ze=Ns(Je);function Je(Oe){var ot;return St(this,Je),(ot=ze.call(this)).scene=void 0,ot.previousClick=void 0,ot.onDblClick=function(Lt){var on,Fn,Yn=(on=(Fn=Lt.pixel)!==null&&Fn!==void 0?Fn:Lt.point)!==null&&on!==void 0?on:{},zi=Yn.x,ns=zi===void 0?0:zi,Fo=Yn.y,Ho=Fo===void 0?0:Fo,zu=Date.now();if(ot.previousClick){var gu=ot.previousClick,Gl=gu.y;300>zu-gu.time&&5>Math.abs(ns-gu.x)&&5>Math.abs(Ho-Gl)&&ot.emit(y.RenderEvent.DblClick,Lt)}ot.previousClick={x:ns,y:Ho,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 Vn(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),Wn=function(we){ki(Je,we);var ze=Ns(Je);function Je(){return St(this,Je),ze.apply(this,arguments)}return Vn(Je,[{key:"initLayers",value:function(){var Oe=this.style,ot=Oe.normal,Lt=Oe.active,on=Oe.style,Fn=on===void 0?{}:on,Yn=Oe.options;return[new I.PointLayer(Yn!=null?Yn:{}).source(eo([])).size("isActive",function(zi){return zi?Lt.size:ot.size}).color("isActive",function(zi){return zi?Lt.color:ot.color}).shape("text","text").style(Fn)]}}]),Je}(Pd),_i={point:se,line:F,dashLine:Np,midPoint:q,text:Wn,polygon:Ue},Xo="#1990FF",pa="#ED9D48",Cl={blend:"normal",pickingBuffer:5},Ll={color:Xo,shape:"circle",size:6},Bu={color:pa,shape:"circle",size:6},Iu={shape:"circle",size:6,color:pa},pc={options:Cl,normal:Ll,hover:lt(lt({},Ll),{},{size:8}),active:lt(lt({},Ll),{},{size:8,color:pa}),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:Xo,size:12},X={point:zc,line:{options:Cl,normal:{color:Xo,size:2},hover:{color:Xo,size:2},active:{color:pa,size:2},style:{}},polygon:{options:Cl,normal:{color:Xo},hover:{color:Xo},active:{color:pa},style:{opacity:.15}},midPoint:{options:Cl,normal:Iu},dashLine:{options:Cl,normal:{color:pa,size:2},style:{lineType:"dash",dashArray:[6,6]}},text:{options:Cl,normal:Rd,active:lt(lt({},Rd),{},{color:pa}),style:{fontWeight:"800",textOffset:[0,Rd.size+6],textAllowOverlap:!0,stroke:"#ffffff",strokeWidth:2}}},ne=function(we,ze){return we===ze||we!=we&&ze!=ze},J=function(we,ze){for(var Je=we.length;Je--;)if(ne(we[Je][0],ze))return Je;return-1},ae=Array.prototype.splice,it=function(we){var ze=this.__data__,Je=J(ze,we);return Je>=0&&(Je==ze.length-1?ze.pop():ae.call(ze,Je,1),--this.size,!0)},Rt=function(we){var ze=this.__data__,Je=J(ze,we);return 0>Je?void 0:ze[Je][1]},nn=function(we){return J(this.__data__,we)>-1},qn=function(we,ze){var Je=this.__data__,Oe=J(Je,we);return 0>Oe?(++this.size,Je.push([we,ze])):Je[Oe][1]=ze,this};function ei(we){var ze=-1,Je=we==null?0:we.length;for(this.clear();++zeOe.length)return Oe.push([we,ze]),this.size=++Je.size,this;Je=this.__data__=new Oc(Oe)}return Je.set(we,ze),this.size=Je.size,this};function yd(we){var ze=this.__data__=new gr(we);this.size=ze.size}yd.prototype.clear=ss,yd.prototype.delete=ts,yd.prototype.get=Is,yd.prototype.has=ca,yd.prototype.set=ld;var Bd=yd,Dc=function(we,ze){for(var Je=-1,Oe=we==null?0:we.length;++Je-1&&we%1==0&&ze>we},jg=function(we){return typeof we=="number"&&we>-1&&we%1==0&&9007199254740991>=we},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(we){return Jh(we)&&jg(we.length)&&!!ap[Cd(we)]},Id=function(we){return function(ze){return we(ze)}},rm=Xd(function(we,ze){var Je=ze&&!ze.nodeType&&ze,Oe=Je&&we&&!we.nodeType&&we,ot=Oe&&Oe.exports===Je&&ag.process,Lt=function(){try{var on=Oe&&Oe.require&&Oe.require("util").types;return on||ot&&ot.binding&&ot.binding("util")}catch(Fn){}}();we.exports=Lt}),Im=rm&&rm.isTypedArray,zm=Im?Id(Im):lg,im=Object.prototype.hasOwnProperty,Cm=function(we,ze){var Je=Jp(we),Oe=!Je&&bf(we),ot=!Je&&!Oe&&Hf(we),Lt=!Je&&!Oe&&!ot&&zm(we),on=Je||Oe||ot||Lt,Fn=on?Hp(we.length,String):[],Yn=Fn.length;for(var zi in we)!ze&&!im.call(we,zi)||on&&(zi=="length"||ot&&(zi=="offset"||zi=="parent")||Lt&&(zi=="buffer"||zi=="byteLength"||zi=="byteOffset")||af(zi,Yn))||Fn.push(zi);return Fn},vm=Object.prototype,Lg=function(we){var ze=we&&we.constructor;return we===(typeof ze=="function"&&ze.prototype||vm)},ug=function(we,ze){return function(Je){return we(ze(Je))}},om=ug(Object.keys,Object),Qg=Object.prototype.hasOwnProperty,Lm=function(we){if(!Lg(we))return om(we);var ze=[];for(var Je in Object(we))Qg.call(we,Je)&&Je!="constructor"&&ze.push(Je);return ze},Om=function(we){return we!=null&&jg(we.length)&&!Ko(we)},Sg=function(we){return Om(we)?Cm(we):Lm(we)},$m=function(we,ze){return we&&Gg(ze,Sg(ze),we)},Zp=function(we){var ze=[];if(we!=null)for(var Je in Object(we))ze.push(Je);return ze},k0=Object.prototype.hasOwnProperty,Sp=function(we){if(!$p(we))return Zp(we);var ze=Lg(we),Je=[];for(var Oe in we)(Oe!="constructor"||!ze&&k0.call(we,Oe))&&Je.push(Oe);return Je},Xf=function(we){return Om(we)?Cm(we,!0):Sp(we)},Zh=function(we,ze){return we&&Gg(ze,Xf(ze),we)},a0=Xd(function(we,ze){var Je=ze&&!ze.nodeType&&ze,Oe=Je&&we&&!we.nodeType&&we,ot=Oe&&Oe.exports===Je?Wp.Buffer:void 0,Lt=ot?ot.allocUnsafe:void 0;we.exports=function(on,Fn){if(Fn)return on.slice();var Yn=on.length,zi=Lt?Lt(Yn):new on.constructor(Yn);return on.copy(zi),zi}}),M0=function(we,ze){var Je=-1,Oe=we.length;for(ze||(ze=Array(Oe));++JeFn))return!1;var zi=Lt.get(we),ns=Lt.get(ze);if(zi&&ns)return zi==ze&&ns==we;var Fo=-1,Ho=!0,zu=2&Je?new Ft:void 0;for(Lt.set(we,ze),Lt.set(ze,we);++Fo0){if(++ze>=800)return arguments[0]}else ze=0;return we.apply(void 0,arguments)}},Dl=ul(xd?function(we,ze){return xd(we,"toString",{configurable:!0,enumerable:!1,value:io(ze),writable:!0})}:Ps),Ba=function(we,ze){return Dl(sr(we,ze,Ps),we+"")},Ss=function(we,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)&&ne(Je[ze],we)},wl=function(we){return Ba(function(ze,Je){var Oe=-1,ot=Je.length,Lt=ot>1?Je[ot-1]:void 0,on=ot>2?Je[2]:void 0;for(Lt=we.length>3&&typeof Lt=="function"?(ot--,Lt):void 0,on&&Ss(Je[0],Je[1],on)&&(Lt=3>ot?void 0:Lt,ot=1),ze=Object(ze);++Oe":".","?":"/","|":"\\"},Yn={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},zi=1;20>zi;++zi)Lt[111+zi]="f"+zi;for(zi=0;9>=zi;++zi)Lt[zi+96]=""+zi;Sl.prototype.bind=function(Kl,il,Ga){var pu=this;return pu._bindMultiple.call(pu,Kl=Kl instanceof Array?Kl:[Kl],il,Ga),pu},Sl.prototype.unbind=function(Kl,il){return this.bind.call(this,Kl,function(){},il)},Sl.prototype.trigger=function(Kl,il){var Ga=this;return Ga._directMap[Kl+":"+il]&&Ga._directMap[Kl+":"+il]({},Kl),Ga},Sl.prototype.reset=function(){var Kl=this;return Kl._callbacks={},Kl._directMap={},Kl},Sl.prototype.stopCallback=function(Kl,il){if((" "+il.className+" ").indexOf(" mousetrap ")>-1||Gl(il,this.target))return!1;if("composedPath"in Kl&&typeof Kl.composedPath=="function"){var Ga=Kl.composedPath()[0];Ga!==Kl.target&&(il=Ga)}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(Kl){for(var il in Kl)Kl.hasOwnProperty(il)&&(Lt[il]=Kl[il]);ot=null},Sl.init=function(){var Kl=Sl(Je);for(var il in Kl)il.charAt(0)!=="_"&&(Sl[il]=function(Ga){return function(){return Kl[Ga].apply(Kl,arguments)}}(il))},Sl.init(),ze.Mousetrap=Sl,we.exports&&(we.exports=Sl)}function ns(Kl,il,Ga){Kl.addEventListener?Kl.addEventListener(il,Ga,!1):Kl.attachEvent("on"+il,Ga)}function Fo(Kl){if(Kl.type=="keypress"){var il=String.fromCharCode(Kl.which);return Kl.shiftKey||(il=il.toLowerCase()),il}return Lt[Kl.which]?Lt[Kl.which]:on[Kl.which]?on[Kl.which]:String.fromCharCode(Kl.which).toLowerCase()}function Ho(Kl){return Kl=="shift"||Kl=="ctrl"||Kl=="alt"||Kl=="meta"}function zu(Kl,il,Ga){return Ga||(Ga=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"),Ga=="keypress"&&il.length&&(Ga="keydown"),Ga}function gu(Kl,il){var Ga,pu,ic,od=[];for(Ga=function(Oo){return Oo==="+"?["+"]:(Oo=Oo.replace(/\+{2}/g,"+plus")).split("+")}(Kl),ic=0;Ga.length>ic;++ic)Yn[pu=Ga[ic]]&&(pu=Yn[pu]),il&&il!="keypress"&&Fn[pu]&&(pu=Fn[pu],od.push("shift")),Ho(pu)&&od.push(pu);return{key:pu,modifiers:od,action:il=zu(pu,od,il)}}function Gl(Kl,il){return Kl!==null&&Kl!==Je&&(Kl===il||Gl(Kl.parentNode,il))}function Sl(Kl){var il=this;if(Kl=Kl||Je,!(il instanceof Sl))return new Sl(Kl);il.target=Kl,il._callbacks={},il._directMap={};var Ga,pu={},ic=!1,od=!1,Oo=!1;function Qh(G){G=G||{};var le,ke=!1;for(le in pu)G[le]?ke=!0:pu[le]=0;ke||(Oo=!1)}function xc(G,le,ke,Qe,wt,jt){var Nn,cr,Ur,bi=[],_o=ke.type;if(!il._callbacks[G])return[];for(_o=="keyup"&&Ho(G)&&(le=[G]),Nn=0;il._callbacks[G].length>Nn;++Nn)cr=il._callbacks[G][Nn],(Qe||!cr.seq||pu[cr.seq]==cr.level)&&_o==cr.action&&(_o=="keypress"&&!ke.metaKey&&!ke.ctrlKey||(Ur=cr.modifiers,le.sort().join(",")===Ur.sort().join(",")))&&((!Qe&&cr.combo==wt||Qe&&cr.seq==Qe&&cr.level==jt)&&il._callbacks[G].splice(Nn,1),bi.push(cr));return bi}function hh(G,le,ke,Qe){il.stopCallback(le,le.target||le.srcElement,ke,Qe)||G(le,ke)===!1&&(function(wt){wt.preventDefault?wt.preventDefault():wt.returnValue=!1}(le),function(wt){wt.stopPropagation?wt.stopPropagation():wt.cancelBubble=!0}(le))}function Gd(G){typeof G.which!="number"&&(G.which=G.keyCode);var le=Fo(G);le&&(G.type!="keyup"||ic!==le?il.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 wt(Ur){return function(){Oo=Ur,++pu[G],clearTimeout(Ga),Ga=setTimeout(Qh,1e3)}}function jt(Ur){hh(ke,Ur,G),Qe!=="keyup"&&(ic=Fo(Ur)),setTimeout(Qh,10)}pu[G]=0;for(var Nn=0;le.length>Nn;++Nn){var cr=Nn+1===le.length?jt:wt(Qe||gu(le[Nn+1]).action);R(le[Nn],cr,Qe,G,Nn)}}function R(G,le,ke,Qe,wt){il._directMap[G+":"+ke]=le;var jt,Nn=(G=G.replace(/\s+/g," ")).split(" ");Nn.length>1?_(G,Nn,le,ke):(jt=gu(G,ke),il._callbacks[jt.key]=il._callbacks[jt.key]||[],xc(jt.key,jt.modifiers,{type:jt.action},Qe,G,wt),il._callbacks[jt.key][Qe?"unshift":"push"]({callback:le,modifiers:jt.modifiers,action:jt.action,seq:Qe,level:wt,combo:G}))}il._handleKey=function(G,le,ke){var Qe,wt=xc(G,le,ke),jt={},Nn=0,cr=!1;for(Qe=0;wt.length>Qe;++Qe)wt[Qe].seq&&(Nn=Math.max(Nn,wt[Qe].level));for(Qe=0;wt.length>Qe;++Qe)if(wt[Qe].seq){if(wt[Qe].level!=Nn)continue;cr=!0,jt[wt[Qe].seq]=1,hh(wt[Qe].callback,ke,wt[Qe].combo,wt[Qe].seq)}else cr||hh(wt[Qe].callback,ke,wt[Qe].combo);var Ur=ke.type=="keypress"&&od;ke.type!=Oo||Ho(G)||Ur||Qh(jt),od=cr&&ke.type=="keydown"},il._bindMultiple=function(G,le,ke){for(var Qe=0;G.length>Qe;++Qe)R(G[Qe],le,ke)},ns(Kl,"keypress",Gd),ns(Kl,"keydown",Gd),ns(Kl,"keyup",Gd)}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)}),$l,su=function(we){return we&&we.length?we[0]:void 0},tu=($l=1,function(we){return"".concat(we,"-").concat($l++)}),Js=function(we,ze){var Je,Oe;return!(!we||!ze||((Je=we.properties)===null||Je===void 0?void 0:Je.id)!==((Oe=ze.properties)===null||Oe===void 0?void 0:Oe.id))},Gc=function(we){var ze=we.target,Je=we.targetHandler,Oe=we.otherHandler;return we.data.map(function(ot,Lt){var on,Fn=Js(ot,ze)?Je:Oe;return(on=Fn==null?void 0:Fn(ot,Lt))!==null&&on!==void 0?on: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(we){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Nl(we,lt(lt({},Le()),ze))},Or=function(we){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:lt(lt({},Me()),{},{nodes:we},ze),geometry:{type:"LineString",coordinates:Ji(eo(we))}}},wn=function(we){return Hi(we,{id:tu("dashLine")})},li=function(we){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:lt(lt({},et()),{},{nodes:we},ze),geometry:{type:"Polygon",coordinates:[Ji(eo([].concat(oo(we),[su(we)])))]}}},Fi=function(we){return function(ze,Je,Oe){Oe===void 0&&(Oe={});for(var ot=Qa(ze).coordinates,Lt=0,on=0;ot.length>on&&(Lt>Je||on!==ot.length-1);on++){if(Lt>=Je){var Fn=Je-Lt;if(Fn){var Yn=Yd(ot[on],ot[on-1])-180;return wd(ot[on],Fn,Yn,Oe)}return Nl(ot[on])}Lt+=tl(ot[on],ot[on+1],Oe)}return Nl(ot[ot.length-1])}(we,Rp(we,{units:"meters"})/2,{units:"meters"})},_s=function(we,ze){var Je=ze.format,Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ot=[];if(ze.showTotalDistance){var Lt=Fi(we),on=Rp(we,{units:"meters"});Lt.properties=lt({id:tu("text"),isActive:!1,meters:on,text:Je(on),type:"totalDistance"},Oe),ot.push(Lt)}else for(var Fn=we.geometry.coordinates,Yn=0;Fn.length-1>Yn;Yn++){var zi=Nl(Fn[Yn]),ns=Nl(Fn[Yn+1]),Fo=tl(zi,ns,{units:"meters"}),Ho=ja(eo([zi,ns]));Ho.properties=lt({id:tu("text"),isActive:!1,meters:Fo,text:Je(Fo),type:"distance"},Oe),ot.push(Ho)}return ot},Ea=function(we,ze){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Oe=ze.format,ot=qp(we);return zl(we,{properties:lt({meters:ot,text:Oe(ot),type:"area",isActive:!1},Je)})},Aa=function(we){var ze,Je,Oe=we.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},bl=function(we){return we.lngLat||we.lnglat},Ql=function(we){var ze=bl(we);return[ze.lng,ze.lat]},Ju=function(we){return[we.lng,we.lat]},As=function(we){for(var ze=Number.MAX_SAFE_INTEGER,Je=0,Oe=we.length,ot=0;Oe>ot;ot++)ze>we[ot]&&(ze=we[ot],Je=ot);return Je},Xa=function(we,ze){var Je=[],Oe=[];return we.forEach(function(ot){Ri(ot,ze)?Oe.length&&(Je.push(Oe),Oe=[]):Oe.push(ot)}),Oe.length&&Je.push(Oe),Je},vr=function(we,ze,Je){var Oe=[],ot=[],Lt=[];return Oe=we==="allDrawData"?Na.instances.map(function(on){return on.getData()}).flat():we==="drawData"?ze.getData():we instanceof Function?we(Je):we,Oe.length&&(ot=Oe.map(function(on){var Fn,Yn=(Fn=on.properties)!==null&&Fn!==void 0?Fn:{},zi=Yn.nodes,ns=zi===void 0?[]:zi,Fo=Yn.isActive;return Fo!==void 0&&Fo?ns.filter(function(Ho){return!Ri(Ho.geometry.coordinates,Je)}):ns}).flat().filter(function(on){return on}),ot.length||(ot=Ji(eo(Oe)).map(function(on){return Nl(on)})),Lt=Oe.map(function(on){var Fn,Yn,zi=(Fn=on.properties)===null||Fn===void 0?void 0:Fn.line;return!((Yn=on.properties)===null||Yn===void 0)&&Yn.isActive&&zi?Xa(zi.properties.nodes.map(function(ns){return ns.geometry.coordinates}),Je).filter(function(ns){return ns.length>1}).map(function(ns){return Hi(ns)}):[zi]}).flat().filter(function(on){return on}),Lt.length||Oe.forEach(function(on){var Fn=el(on);if(/linestring/i.test(Fn)&&Lt.push(on),/polygon/i.test(Fn)){var Yn,zi,ns=tp(on);return(Yn=Lt).push.apply(Yn,oo((zi=ns==null?void 0:ns.features)!==null&&zi!==void 0?zi:[ns]))}})),{points:ot,lines:Lt}},qa=function(we,ze,Je,Oe){var ot=Je.pointAdsorbPixel,Lt=_a(we,2),on=Oe.lngLatToPixel([Lt[0],Lt[1]]),Fn=on.x,Yn=on.y,zi=ze.map(function(Fo){var Ho=_a(Fo.geometry.coordinates,2),zu=Oe.lngLatToPixel([Ho[0],Ho[1]]),gu=zu.y;return Math.pow(Fn-zu.x,2)+Math.pow(Yn-gu,2)}),ns=As(zi);return Math.pow(zi[ns],.5)>ot?null:ze[ns].geometry.coordinates},Ta=function(we,ze,Je,Oe){var ot=Je.lineAdsorbPixel,Lt=_a(we,2),on=Oe.lngLatToPixel([Lt[0],Lt[1]]),Fn=on.x,Yn=on.y,zi=ze.filter(function(Ho){return Ji(Ho).length>1}).map(function(Ho){return function(zu,gu,Gl){Gl===void 0&&(Gl={});var Sl=Nl([1/0,1/0],{dist:1/0}),Kl=0;return us(zu,function(il){for(var Ga=ea(il),pu=0;Ga.length-1>pu;pu++){var ic=Nl(Ga[pu]);ic.properties.dist=tl(gu,ic,Gl);var od=Nl(Ga[pu+1]);od.properties.dist=tl(gu,od,Gl);var Oo=tl(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(Hi([hh.geometry.coordinates,Gd.geometry.coordinates]),Hi([ic.geometry.coordinates,od.geometry.coordinates])),R=null;_.features.length>0&&((R=_.features[0]).properties.dist=tl(gu,R,Gl),R.properties.location=Kl+tl(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+Oo),R&&Sl.properties.dist>R.properties.dist&&((Sl=R).properties.index=pu),Kl+=Oo}}),Sl}(Ho,we)});if(!zi.length)return null;var ns=zi.map(function(Ho){var zu=_a(Ho.geometry.coordinates,2),gu=Oe.lngLatToPixel([zu[0],zu[1]]),Gl=gu.y;return Math.pow(Fn-gu.x,2)+Math.pow(Yn-Gl,2)}),Fo=As(ns);return Math.pow(ns[Fo],.5)>ot?null:zi[Fo].geometry.coordinates},Du=function(we,ze){var Je=_a(ze,2),Oe=Je[0],ot=Je[1];we.lngLat&&(we.lngLat={lng:Oe,lat:ot}),we.lnglat&&(we.lnglat={lng:Oe,lat:ot})},Wc=function(){function we(ze,Je){St(this,we),this.container=void 0,this.cursor=null,this.options=void 0,this.container=Aa(ze),this.options=Je}return Vn(we,[{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)}}]),we}();function os(we,ze){ze===void 0&&(ze={});var Je=ze.insertAt;if(we&&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=we:ot.appendChild(document.createTextNode(we))}}os('.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}'),os(".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 Mo=function(){function we(ze,Je){var Oe=this;St(this,we),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=$r(Aa(ze),lt(lt({},at),Je)),this.tippy.hide(),this.scene=ze,ze.on(y.SceneEvent.Mousemove,this.onMouseMove),ze.on(y.SceneEvent.Mouseout,this.onMouseOut)}return Vn(we,[{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()}}]),we}(),ks=function(){function we(ze){var Je=ze.config;St(this,we),this.historyList=[],this.historyIndex=0,this.config=void 0,this.config=Je}return Vn(we,[{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=ys(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?ys(ze):void 0}}},{key:"redo",value:function(){if(this.historyList.length&&this.historyIndex>0){var ze=this.historyList[--this.historyIndex];return ze?ys(ze):void 0}}}]),we}(),Da=function(we){ki(Je,we);var ze=Ns(Je);function Je(Oe){var ot,Lt=Oe.data,on=Oe.render,Fn=Oe.history,Yn=Oe.scene;return St(this,Je),(ot=ze.call(this)).scene=void 0,ot.render=void 0,ot.data=ys(z),ot.timeout=null,ot.diffData={},ot.history=void 0,ot.scene=Yn,ot.render=on,Fn&&(ot.history=new ks({config:Fn})),Lt&&ot.setData(Lt),ot}return Vn(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(wr({},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 on,Fn=_a(Lt,2),Yn=Fn[0],zi=Fn[1];Array.isArray(zi)&&((on=Oe.getRender(Yn))===null||on===void 0||on.setData(zi))}),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(Os(Object.keys(this.render).map(function(Oe){return[Oe,[]]})))}}]),Je}(Uf),Na=function(we){ki(Je,we);var ze=Ns(Je);function Je(Oe,ot){var Lt;St(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(zi){Lt.mouseLngLat=bl(zi)},100,{maxWait:100}),Lt.saveHistory=D(function(){Lt.options.history&&Lt.source.saveHistory()},100),Lt.bindThis(),Lt.scene=Oe,Lt.sceneRender=new Jt(Oe),Lt.options=rl({},Lt.getDefaultOptions(ot),ot),Lt.render=Lt.initRender(),Lt.source=new Da({render:Lt.render,history:Lt.options.history||void 0,scene:Oe}),Lt.cursor=new Wc(Oe,Lt.options.cursor);var on=Lt.options,Fn=on.initialData,Yn=on.popup;return Fn&&Lt.setData(Fn),Yn&&(Lt.popup=new Mo(Oe,Yn instanceof Object?Yn:{})),Lt.saveHistory(),Lt.bindCommonEvent(),Lt.emit(y.DrawEvent.Init,ps(Lt)),Lt.bindEnableEvent(),Je.instances.push(ps(Lt)),Lt}return Vn(Je,[{key:"addable",get:function(){var Oe=this.getData(),ot=this.options,Lt=ot.multiple,on=ot.maxCount,Fn=Oe.find(function(Yn){return Yn.properties.isDraw});return!(!this.enabled||!this.allowCreate)&&(!!(Lt&&0>=on||Fn)||!(!Lt&&this.addCount>=1)&&(0>=on||on>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,on=this.options.helper;if(on){var Fn=(ot=Oe in on?on[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,on=function(){var Fn,Yn,zi,ns=Oe.getData().find(function(Fo){var Ho;return(Ho=Fo.properties)===null||Ho===void 0?void 0:Ho.isActive})||null;((Fn=Lt)===null||Fn===void 0||(Yn=Fn.properties)===null||Yn===void 0?void 0:Yn.id)!==(ns==null||(zi=ns.properties)===null||zi===void 0?void 0:zi.id)&&(Lt=ns,Oe.emit(y.DrawEvent.Select,ns))};this.source.on(y.SourceEvent.Change,on),ot&&on()}},{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,on=ot.redo,Fn=ot.remove;Fn&&qu.bind(Fn,function(){Oe.removeActiveFeature()}),this.options.history&&(Lt&&qu.bind(Lt,this.revertHistory),on&&qu.bind(on,this.redoHistory))}},{key:"unbindKeyboardEvent",value:function(){var Oe=this.options.keyboard||{},ot=Oe.revert,Lt=Oe.redo,on=Oe.remove;on&&qu.unbind(on),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 Os(Ca(this.render).map(function(Oe){var ot=_a(Oe,2);return[ot[0],ot[1].getLayers()]}))}},{key:"getTargetFeature",value:function(Oe){var ot,Lt,on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getData(),Fn=null;return Oe&&(Fn=(ot=on.find(function(Yn){var zi;return Yn.properties.id===(typeof Oe=="string"?Oe:(zi=Oe.properties)===null||zi===void 0?void 0:zi.id)}))!==null&&ot!==void 0?ot:null,!Fn&&Oe instanceof Object&&(Fn=(Lt=on.find(function(Yn){return Ri(Oe.geometry,Yn.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(on){return!Js(Lt,on)})),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,Yn){var zi=typeof Symbol!="undefined"&&Fn[Symbol.iterator]||Fn["@@iterator"];if(!zi){if(Array.isArray(Fn)||(zi=Ds(Fn))||Yn&&Fn&&typeof Fn.length=="number"){zi&&(Fn=zi);var ns=0,Fo=function(){};return{s:Fo,n:function(){return Fn.length>ns?{done:!1,value:Fn[ns++]}:{done:!0}},e:function(Gl){throw Gl},f:Fo}}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 Ho,zu=!0,gu=!1;return{s:function(){zi=zi.call(Fn)},n:function(){var Gl=zi.next();return zu=Gl.done,Gl},e:function(Gl){gu=!0,Ho=Gl},f:function(){try{zu||zi.return==null||zi.return()}finally{if(gu)throw Ho}}}}(this.getRenderTypes());try{for(Lt.s();!(Oe=Lt.n()).done;){var on=Oe.value;ot[on]=new _i[on](this.scene,{style:this.options.style[on]})}}catch(Fn){Lt.e(Fn)}finally{Lt.f()}return ot}},{key:"getCommonOptions",value:function(Oe){return{initialData:[],autoActive:!0,cursor:ys(b),editable:!0,style:ys(X),multiple:!0,history:ys(En),keyboard:ys(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(on){on.destroy()}),Object.values(y.RenderEvent).forEach(function(on){Object.values(ot.render).forEach(function(Fn){Fn.removeAllListeners(on)}),ot.sceneRender.removeAllListeners(on)}),setTimeout(function(){Object.values(y.DrawEvent).forEach(function(on){ot.removeAllListeners(on)})},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);Na.instances=[];var js=function(we){var ze=we==null?0:we.length;return ze?we[ze-1]:void 0},bs=function(we){ki(Je,we);var ze=Ns(Je);function Je(){return St(this,Je),ze.apply(this,arguments)}return Vn(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,on,Fn,Yn;(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)),(on=this.pointRender)===null||on===void 0||on.on(y.RenderEvent.Dragstart,this.onPointDragStart.bind(this)),(Fn=this.pointRender)===null||Fn===void 0||Fn.on(y.RenderEvent.Dragging,this.onPointDragging.bind(this)),(Yn=this.pointRender)===null||Yn===void 0||Yn.on(y.RenderEvent.Dragend,this.onPointDragEnd.bind(this))}},{key:"handleCreatePoint",value:function(Oe){var ot=this.options,Lt=ot.autoActive,on=ot.editable,Fn=hn(Oe);return this.setPointData(function(Yn){return Gc({target:Fn,data:[].concat(oo(Yn),[Fn]),targetHandler:function(zi){zi.properties=lt(lt({},zi.properties),{},{isHover:on,isActive:Lt&&on})},otherHandler:function(zi){zi.properties=lt(lt({},zi.properties),{},{isHover:!1,isActive:!1,isDrag:!1})}})}),Fn}},{key:"handlePointHover",value:function(Oe){return this.setCursor("pointHover"),Js(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(on){on.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(bl(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,bl(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,on,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(),(on=this.pointRender)===null||on===void 0||on.enableDrag())}},{key:"disablePointRenderAction",value:function(){var Oe,ot,Lt,on;(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(),(on=this.pointRender)===null||on===void 0||on.disableClick()}}]),Je}(Na),Qi=function(we){ki(Je,we);var ze=Ns(Je);function Je(){return St(this,Je),ze.apply(this,arguments)}return Vn(Je,[{key:"midPointRender",get:function(){return this.render.midPoint}},{key:"getCommonOptions",value:function(Oe){return lt(lt({},Bs(Vi(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=[],on=0;ot.length-1>on;on++){var Fn,Yn,zi,ns,Fo=ja(eo([ot[on],ot[on+1]]),{properties:{id:tu("midPoint"),startId:(Fn=(Yn=ot[on].properties)===null||Yn===void 0?void 0:Yn.id)!==null&&Fn!==void 0?Fn:"",endId:(zi=(ns=ot[on+1].properties)===null||ns===void 0?void 0:ns.id)!==null&&zi!==void 0?zi:""}});Lt.push(Fo)}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}(bs),ar={draw:"\u5355\u51FB\u7ED8\u5236\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u70B9\u4F4D\u7F6E",pointDrag:null},zr={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"},Ci={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},gs=lt(lt({},Ci),{},{draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawFinish:"\u5355\u51FB\u7ED3\u675F\u7ED8\u5236"}),Es={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"},ta={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E"},vl=function(we){ki(Je,we);var ze=Ns(Je);function Je(){var Oe;St(this,Je);for(var ot=arguments.length,Lt=Array(ot),on=0;ot>on;on++)Lt[on]=arguments[on];return(Oe=ze.call.apply(ze,[this].concat(Lt))).previousPosition=[0,0],Oe}return Vn(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:ys(zr)});return Oe.distanceOptions&&(ot.distanceOptions=lt(lt({},Xt),ot.distanceOptions)),Oe.adsorbOptions&&(ot.adsorbOptions=lt(lt({},gt),ot.adsorbOptions)),ot}},{key:"getAdsorbPosition",value:function(Oe){var ot=this.options.adsorbOptions;if(typeof ot=="boolean")return Oe;var Lt=this.scene,on=ot.pointAdsorbPixel,Fn=ot.lineAdsorbPixel,Yn=null,zi=vr(ot.data,this,Oe),ns=zi.points,Fo=zi.lines;return ns.length&&on>0&&(Yn=qa(Oe,ns,ot,Lt)),!Yn&&Fo.length&&Fn>0&&(Yn=Ta(Oe,Fo,ot,Lt)),Yn}},{key:"bindSceneEvent",value:function(){this.sceneRender.on(y.RenderEvent.Mousemove,this.onSceneMouseMove.bind(this))}},{key:"bindPointRenderEvent",value:function(){var Oe;Bs(Vi(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,on,Fn,Yn;(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)),(on=this.lineRender)===null||on===void 0||on.on(y.RenderEvent.Dragstart,this.onLineDragStart.bind(this)),(Fn=this.lineRender)===null||Fn===void 0||Fn.on(y.RenderEvent.Dragging,this.onLineDragging.bind(this)),(Yn=this.lineRender)===null||Yn===void 0||Yn.on(y.RenderEvent.Dragend,this.onLineDragEnd.bind(this))}},{key:"getDashLineDistanceTexts",value:function(Oe,ot){var Lt=ot.showTotalDistance,on=ot.format;return ot.showDashDistance?Oe.map(function(Fn){return _s(Fn,{showTotalDistance:Lt,format:on},{isActive:!0,type:"dash"})}).flat():[]}},{key:"getLineDistanceTexts",value:function(Oe,ot){var Lt=ot.showTotalDistance,on=ot.format,Fn=ot.showWhen,Yn=[];if(Fn.includes("active")){var zi=Oe.filter(function(Fo){return Fo.properties.isActive&&Fo.properties.nodes.length>1});Yn.push.apply(Yn,oo(zi.map(function(Fo){return _s(Fo,{showTotalDistance:Lt,format:on},{isActive:!0})}).flat()))}if(Fn.includes("normal")){var ns=Oe.filter(function(Fo){return!Fo.properties.isActive&&Fo.properties.nodes.length>1});Yn.push.apply(Yn,oo(ns.map(function(Fo){return _s(Fo,{showTotalDistance:Lt,format:on})}).flat()))}return Yn}},{key:"getDistanceTexts",value:function(){var Oe=this.options.distanceOptions;if(!Oe)return[];var ot=[],Lt=Oe.showWhen,on=Oe.showDashDistance,Fn=Oe.format,Yn=Oe.showTotalDistance;return ot.push.apply(ot,oo(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!1,format:Fn,showDashDistance:on})).concat(oo(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:Yn,format:Fn,showWhen:Lt})))),ot}},{key:"getAllTexts",value:function(){return this.getDistanceTexts()}},{key:"handleCreateLine",value:function(Oe){var ot=Or([Oe],{isActive:!0,isDraw:!0});return this.setLineData(function(Lt){return Gc({target:ot,data:[].concat(oo(Lt),[ot]),otherHandler:function(on){on.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=Ji(eo(ot)),this.setLineData(function(Lt){return Lt.map(function(on){return Js(on,Oe)?Oe:on})}),Js(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(on){on.properties=lt(lt({},on.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},ot)},otherHandler:function(on){on.properties=lt(lt({},on.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"),Js(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,on=ot.lat,Fn=Oe.properties.nodes,Yn=_a(this.previousPosition,2),zi=Yn[0],ns=Yn[1];return Fn.forEach(function(Fo){var Ho=Fo.geometry.coordinates;Fo.geometry.coordinates=[Ho[0]+Lt-zi,Ho[1]+on-ns]}),this.syncLineNodes(Oe,Fn),this.setActiveLine(Oe,{isDrag:!0}),this.setCursor("lineDrag"),this.previousPosition=[Lt,on],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(bl(Oe)));return ot&&Du(Oe,ot),ot}}},{key:"onPointCreate",value:function(Oe){if(!this.editLine){this.resetAdsorbLngLat(Oe);var ot=Bs(Vi(Je.prototype),"onPointCreate",this).call(this,Oe),Lt=this.drawLine;if(ot)return Lt?(this.syncLineNodes(Lt,[].concat(oo(Lt.properties.nodes),[ot])),this.setDashLineData([])):this.handleCreateLine(ot),ot}}},{key:"onPointDragStart",value:function(Oe){if(this.editLine)return this.setHelper("pointDrag"),Bs(Vi(Je.prototype),"onPointDragStart",this).call(this,Oe)}},{key:"onPointDragging",value:function(Oe){var ot=Bs(Vi(Je.prototype),"onPointDragging",this).call(this,Oe);if(ot){var Lt=this.resetAdsorbLngLat(Oe);Lt&&(ot.geometry.coordinates=ys(Lt))}var on=this.editLine;return on&&ot&&(this.syncLineNodes(on,on.properties.nodes.map(function(Fn){return Js(ot,Fn)?ot:Fn})),this.setActiveLine(on)),ot}},{key:"onPointDragEnd",value:function(Oe){if(this.editLine){var ot=Bs(Vi(Je.prototype),"onPointDragEnd",this).call(this,Oe);return this.setPointData(function(Lt){return Lt.map(function(on){return on.properties.isActive=!1,on})}),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,bl(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=Bs(Vi(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=Bs(Vi(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){Bs(Vi(Je.prototype),"onMidPointHover",this).call(this,Oe),this.setHelper("midPointHover")}},{key:"onMidPointUnHover",value:function(Oe){Bs(Vi(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 on=ot.properties.nodes,Fn=Lt.properties,Yn=Fn.startId,zi=Fn.endId,ns=on.findIndex(function(zu){return zu.properties.id===Yn}),Fo=on.findIndex(function(zu){return zu.properties.id===zi});if(ns>-1&&Fo>-1){var Ho=hn(Lt.geometry.coordinates,{isDrag:!0,isHover:!0});return this.setHelper("pointDrag"),on.splice(Fo,0,Ho),ot.geometry.coordinates=Ji(eo(on)),this.syncLineNodes(ot,on),this.setActiveLine(ot),Ho}}}},{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,on=this.options.editable;(Oe=this.lineRender)===null||Oe===void 0||Oe.enableUnClick(),on&&((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}(Qi),mu=function(we){ki(Je,we);var ze=Ns(Je);function Je(){return St(this,Je),ze.apply(this,arguments)}return Vn(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({},Bs(Vi(Je.prototype),"getDefaultOptions",this).call(this,Oe)),{},{areaOptions:!1,helper:ys(Ci)});return Oe.areaOptions&&(ot.areaOptions=lt(lt({},gn),Oe.areaOptions)),ot}},{key:"getAreaTexts",value:function(Oe){var ot=this.options.areaOptions;if(!ot)return[];var Lt=ot.format,on=ot.showWhen,Fn=[],Yn=Oe.filter(function(zi){return zi.geometry.coordinates[0].length>=4});return on.includes("active")&&Yn.filter(function(zi){return zi.properties.isActive}).forEach(function(zi){Fn.push(Ea(zi,{format:Lt},{isActive:!0}))}),on.includes("normal")&&Yn.filter(function(zi){return!zi.properties.isActive}).forEach(function(zi){Fn.push(Ea(zi,{format:Lt},{isActive:!1}))}),Fn}},{key:"getAllTexts",value:function(){return[].concat(oo(Bs(Vi(Je.prototype),"getAllTexts",this).call(this)),oo(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=li(Oe,{nodes:Oe,line:ot,isActive:!0,isDraw:!0});return this.setPolygonData(function(on){return Gc({target:Lt,data:[].concat(oo(on),[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"),Js(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,on;(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)),(on=this.polygonRender)===null||on===void 0||on.on(y.RenderEvent.Dragstart,this.onPolygonDragStart.bind(this))}},{key:"syncPolygonNodes",value:function(Oe,ot){var Lt=Ji(eo([].concat(oo(ot),[su(ot)]))),on=Oe.properties,Fn=on.line;if(Oe.properties.nodes=ot,Oe.geometry.coordinates=[wp(Hi(Lt))?Lt:Lt.reverse()],this.setPolygonData(function(Ho){return Ho.map(function(zu){return Js(zu,Oe)?Oe:zu})}),!Js(this.drawPolygon,Oe)){var Yn=Fn.properties.nodes,zi=oo(ot),ns=su(zi);zi.push(Yn.length===ot.length?hn(ns.geometry.coordinates):js(Yn));var Fo=js(zi);Ri(ns.geometry.coordinates,Fo.geometry.coordinates)||(Fo.geometry.coordinates=ys(ns.geometry.coordinates)),this.syncLineNodes(Fn,zi)}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(on){on.properties=lt(lt({},on.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},ot)},otherHandler:function(on){on.properties=lt(lt({},on.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=Bs(Vi(Je.prototype),"onLineDragStart",this).call(this,Oe),Lt=this.getPolygonData().find(function(on){return Js(on.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=Bs(Vi(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=Bs(Vi(Je.prototype),"onMidPointClick",this).call(this,Oe);if(Lt&&ot){var on=ot.properties.line.properties.nodes;this.syncPolygonNodes(ot,on.slice(0,on.length-1)),this.setActivePolygon(ot)}return Lt}},{key:"onPointDragEnd",value:function(Oe){var ot=this.editPolygon,Lt=Bs(Vi(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,on=this.options.editable;(Oe=this.polygonRender)===null||Oe===void 0||Oe.enableUnClick(),on&&((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(){Bs(Vi(Je.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.enablePolygonRenderAction()}},{key:"unbindEnableEvent",value:function(){Bs(Vi(Je.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.disablePolygonRenderAction()}},{key:"bindThis",value:function(){Bs(Vi(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}(vl),hc=function(we){ki(Je,we);var ze=Ns(Je);function Je(Oe,ot){var Lt;return St(this,Je),(Lt=ze.call(this,Oe,ot)).onSceneDragStart=Lt.onSceneDragStart.bind(ps(Lt)),Lt.onSceneDragEnd=Lt.onSceneDragEnd.bind(ps(Lt)),Lt}return Vn(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({},Bs(Vi(Je.prototype),"getDefaultOptions",this).call(this,Oe)),{},{showMidPoint:!1,trigger:"click",autoActive:!1,helper:ys(gs)});return Oe.trigger==="drag"&&(ot.helper=lt(lt({},ot.helper),Es)),ot}},{key:"getMidPointsByLine",value:function(Oe){return[]}},{key:"handleCreatePolygon",value:function(Oe,ot){var Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},on=ot.properties.nodes;return li(on.slice(0,on.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}),on=this.handleCreatePolygon([Oe,ot],Lt,{isDraw:!0,isActive:!0});return this.setPolygonData(function(Fn){return Gc({target:on,data:[].concat(oo(Fn),[on]),targetHandler:function(Yn){Yn.properties=lt(lt({},Yn.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,on=ot.editable,Fn=this.drawPolygon;return Fn&&(this.setLineData(function(Yn){return[].concat(oo(Yn),[Fn.properties.line])}),this.setActivePolygon(Fn),Lt&&on||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(on?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,on=Ql(Oe),Fn=this.handleCreatePoint(on);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(on){return Gc({target:Oe,data:on,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,bl(Oe)),on=this.editPolygon;return Lt&&on&&(this.syncPolygonNodes(on,on.properties.nodes.map(function(Fn){return Js(Fn,Lt)?Lt:Fn})),this.setActivePolygon(on)),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,on=su(Lt),Fn=js(Lt);Fn.geometry.coordinates=Ql(Oe),this.syncPolygonNodes(ot,[on,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(){Bs(Vi(Je.prototype),"bindEnableEvent",this).call(this),this.isDragTrigger&&this.bindSceneDragEvent()}},{key:"unbindEnableEvent",value:function(){Bs(Vi(Je.prototype),"unbindEnableEvent",this).call(this),this.isDragTrigger&&this.unbindSceneDragEvent()}},{key:"bindThis",value:function(){Bs(Vi(Je.prototype),"bindThis",this).call(this),this.onSceneDragStart=this.onSceneDragStart.bind(this),this.onSceneDragEnd=this.onSceneDragEnd.bind(this)}}]),Je}(mu),cd=function(we){ki(Je,we);var ze=Ns(Je);function Je(Oe,ot){var Lt;return St(this,Je),(Lt=ze.call(this,Oe,ot)).bindPointRenderEvent(),Lt.bindSceneEvent(),Lt.bindMidPointRenderEvent(),Lt.bindLineRenderEvent(),Lt.bindPolygonRenderEvent(),Lt}return Vn(Je,[{key:"getDefaultOptions",value:function(Oe){var ot=lt(lt({},Bs(Vi(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),ta)),ot}},{key:"getDistanceTexts",value:function(){var Oe=this.options.distanceOptions;if(!Oe)return[];var ot=[],Lt=Oe.showWhen,on=Oe.showDashDistance,Fn=Oe.format,Yn=Oe.showTotalDistance;return ot.push.apply(ot,oo(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!0,format:Fn,showDashDistance:on})).concat(oo(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:Yn,format:Fn,showWhen:Lt})))),ot}},{key:"setData",value:function(Oe){var ot=this,Lt=Oe.map(function(on){var Fn,Yn,zi;on.properties=lt(lt({},et()),on.properties);var ns=(Fn=on.properties)===null||Fn===void 0?void 0:Fn.nodes;if(((Yn=ns)===null||Yn===void 0?void 0:Yn.length)!==2){var Fo=_a(ja(on).geometry.coordinates,2),Ho=Fo[0],zu=Fo[1],gu=Ml(on),Gl=gu[2],Sl=(gu[1]+gu[3])/2;ns=[hn([Ho,zu]),hn([Gl,Sl])],on.properties.nodes=ns}var Kl=ns[0],il=ns[1],Ga=!!(!((zi=on.properties)===null||zi===void 0)&&zi.isActive),pu=on.properties.line;return pu||(pu=ot.handleCreatePolygonLine(Kl,il,{isActive:Ga}),on.properties.line=pu),ot.handleCreatePolygon([Kl,il],pu,lt(lt({},on.properties),{},{isActive:Ga}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:Lt,line:Lt.map(function(on){return on.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]:{},on=this.getBoundaryPositions(Oe,ot).map(function(Fn){return hn(Fn)});return Or(on,Lt)}},{key:"syncPolygonNodes",value:function(Oe,ot){var Lt=Oe.properties.line,on=this.getBoundaryPositions(ot[0],ot[1]);return Oe.properties.nodes=ot,Oe.geometry.coordinates=[on],this.setPolygonData(function(Fn){return Fn.map(function(Yn){return Js(Yn,Oe)?Oe:Yn})}),this.setPointData(Oe.properties.isDraw?[ot[0]]:ot),Lt.properties.nodes.forEach(function(Fn,Yn){Fn.geometry.coordinates=on[Yn]}),Lt.geometry.coordinates=on,Oe}},{key:"onLineDragging",value:function(Oe){var ot=this.dragPolygon,Lt=_a(this.previousPosition,2),on=Lt[0],Fn=Lt[1],Yn=Bs(Vi(Je.prototype),"onLineDragging",this).call(this,Oe);if(ot){var zi=_a(Ql(Oe),2),ns=zi[0],Fo=zi[1];ot.properties.nodes.forEach(function(Ho){var zu=_a(Ho.geometry.coordinates,2);Ho.geometry.coordinates=[zu[0]+ns-on,zu[1]+Fo-Fn]}),this.syncPolygonNodes(ot,ot.properties.nodes),this.setActivePolygon(ot,{isDrag:!0}),this.emit(y.DrawEvent.Dragging,ot,this.getPolygonData())}return Yn}},{key:"getBoundaryPositions",value:function(Oe,ot){for(var Lt=this.options.circleSteps,on=tl(Oe,ot,{units:"meters"}),Fn=[],Yn=0;Lt>Yn;Yn++)Fn.push(wd(Oe,on,-360*Yn/Lt,{units:"meters"}).geometry.coordinates);return Fn.push(Fn[0]),Fn}}]),Je}(hc),Wo=function(we){ki(Je,we);var ze=Ns(Je);function Je(Oe,ot){var Lt;return St(this,Je),(Lt=ze.call(this,Oe,ot)).drawLineFinish=function(){var on,Fn=Lt.drawLine,Yn=(on=Fn==null?void 0:Fn.properties.nodes)!==null&&on!==void 0?on:[];if(Fn&&(Yn==null?void 0:Yn.length)>1){Lt.setActiveLine(Fn);var zi=Lt.options,ns=zi.autoActive,Fo=zi.editable;ns&&Fo||Lt.handleLineUnClick(Fn),Lt.setHelper(Fo&&ns?"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 Vn(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 on,Fn;return Lt.properties=lt(lt({},Me()),(on=Lt.properties)!==null&&on!==void 0?on:{}),!((Fn=Lt.properties.nodes)===null||Fn===void 0)&&Fn.length||(Lt.properties.nodes=Ji(Lt).map(function(Yn){return hn(Yn)})),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;Bs(Vi(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,on=this.drawLine,Fn=(ot=on==null?void 0:on.properties.nodes)!==null&&ot!==void 0?ot:[],Yn=Oe.feature;if(Js(Yn,js(Fn)))requestAnimationFrame(function(){Lt.drawLineFinish()});else{var zi=_a(Yn.geometry.coordinates,2);Oe.lngLat={lng:zi[0],lat:zi[1]},this.onPointCreate(Oe)}}},{key:"removeNode",value:function(Oe,ot){var Lt,on=this.getTargetFeature(ot),Fn=this.getTargetFeature(Oe,(Lt=on==null?void 0:on.properties.nodes)!==null&&Lt!==void 0?Lt:[]);if(on&&Fn){var Yn,zi=(Yn=on==null?void 0:on.properties.nodes)!==null&&Yn!==void 0?Yn:[];if(3>zi.length)return;this.syncLineNodes(on,zi.filter(function(ns){return!Js(Fn,ns)})),this.emit(y.DrawEvent.RemoveNode,Fn,on,this.getLineData()),this.emit(y.DrawEvent.Edit,on,this.getLineData())}}},{key:"onPointContextMenu",value:function(Oe){var ot,Lt=this.editLine,on=Oe.feature,Fn=(ot=Lt==null?void 0:Lt.properties.nodes)!==null&&ot!==void 0?ot:[];if(Lt&&Fn.length>=3)return this.removeNode(on,Lt),this.scene.setMapStatus({dragEnable:!0}),on}},{key:"onPointCreate",value:function(Oe){if(this.addable){var ot=Bs(Vi(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=Bs(Vi(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=Bs(Vi(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=Bs(Vi(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=Bs(Vi(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=Bs(Vi(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,on=js(ot.properties.nodes),Fn=Ql(Oe);this.options.adsorbOptions&&(Fn=(Lt=this.getAdsorbPosition(Fn))!==null&&Lt!==void 0?Lt:Fn),this.setDashLineData([wn([Fn,on.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;Bs(Vi(Je.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((Oe=this.pointRender)===null||Oe===void 0||Oe.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var Oe;Bs(Vi(Je.prototype),"disablePointRenderAction",this).call(this),(Oe=this.pointRender)===null||Oe===void 0||Oe.disableContextMenu()}},{key:"bindEnableEvent",value:function(){Bs(Vi(Je.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.sceneRender.enableDblClick()}},{key:"unbindEnableEvent",value:function(){Bs(Vi(Je.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.sceneRender.disableDblClick()}},{key:"bindThis",value:function(){Bs(Vi(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),Wd=function(we){ki(Je,we);var ze=Ns(Je);function Je(Oe,ot){var Lt;return St(this,Je),(Lt=ze.call(this,Oe,ot)).bindPointRenderEvent(),Lt}return Vn(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:ys(ar),initialData:Oe.initialData});return ot.style.point=pc,ot}},{key:"bindEnableEvent",value:function(){Bs(Vi(Je.prototype),"bindEnableEvent",this).call(this),this.enablePointRenderAction()}},{key:"unbindEnableEvent",value:function(){Bs(Vi(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=Bs(Vi(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(on){return on.properties=lt(lt({},on.properties),{},{isHover:!1,isActive:!1}),on})})}},{key:"onPointMouseMove",value:function(Oe){var ot=Bs(Vi(Je.prototype),"onPointMouseMove",this).call(this,Oe);return this.options.editable&&!this.dragPoint&&this.setHelper("pointHover"),ot}},{key:"onPointMouseOut",value:function(Oe){var ot=Bs(Vi(Je.prototype),"onPointMouseOut",this).call(this,Oe);return this.setHelper(this.addable?"draw":null),ot}},{key:"onPointDragStart",value:function(Oe){var ot=Bs(Vi(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=Bs(Vi(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=Bs(Vi(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(){Bs(Vi(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(on){return on.properties.isActive=Js(ot,on),on})})}},{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}(bs),fd=function(we){ki(Je,we);var ze=Ns(Je);function Je(Oe,ot){var Lt;return St(this,Je),(Lt=ze.call(this,Oe,ot)).drawPolygonFinish=function(){var on,Fn=Lt.drawPolygon,Yn=(on=Fn==null?void 0:Fn.properties.nodes)!==null&&on!==void 0?on:[];if(Fn&&Yn.length>=3){Fn.properties.isDraw=!1,Lt.syncPolygonNodes(Fn,Yn),Lt.setActivePolygon(Fn);var zi=Lt.options,ns=zi.autoActive,Fo=zi.editable;ns&&Fo||Lt.handlePolygonUnClick(Fn),Lt.setHelper(Fo?ns?"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 Vn(Je,[{key:"getDefaultOptions",value:function(Oe){return lt(lt({},Bs(Vi(Je.prototype),"getDefaultOptions",this).call(this,Oe)),{},{liveUpdate:!1})}},{key:"setData",value:function(Oe){var ot=Oe.map(function(Lt){var on,Fn;if(Lt.properties=lt(lt({},et()),(on=Lt.properties)!==null&&on!==void 0?on:{}),!(!((Fn=Lt.properties.nodes)===null||Fn===void 0)&&Fn.length)){var Yn=Ji(Lt);Yn=Yn.slice(0,Yn.length-1),Lt.properties.nodes=Yn.map(function(ns){return hn(ns)})}if(!Lt.properties.line){var zi=Lt.properties.nodes;Lt.properties.line=Or([].concat(oo(zi),[hn(su(zi).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=Bs(Vi(Je.prototype),"onPointCreate",this).call(this,Oe),Lt=this.drawPolygon,on=this.drawLine;return ot&&(Lt?(this.syncPolygonNodes(Lt,[].concat(oo(Lt.properties.nodes),[ot])),this.setDashLineData([wn([Ql(Oe),Lt.properties.nodes[0].geometry.coordinates])]),Lt.properties.nodes.length>1&&this.setHelper("drawFinish")):on&&(this.handleCreatePolygon([ot],on),this.setHelper("drawContinue")),this.emit(y.DrawEvent.AddNode,ot,Lt,this.getPolygonData())),ot}}},{key:"onPointClick",value:function(Oe){var ot=this,Lt=this.drawPolygon,on=Oe.feature;if(Lt){var Fn=Lt.properties.nodes;if(Fn.length<3||!Js(su(Fn),on)&&!Js(js(Fn),on)){var Yn=_a(on.geometry.coordinates,2);Oe.lngLat={lng:Yn[0],lat:Yn[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 on=Lt.properties.line;on.properties.nodes=on.properties.nodes.map(function(zu){return Js(zu,ot)?ot:zu});var Fn=on.properties.nodes,Yn=Fn.slice(0,Fn.length-1),zi=su(Fn),ns=js(Fn),Fo=Js(zi,ot)||Js(ns,ot);if(Fo&&(zi.geometry.coordinates=ns.geometry.coordinates=Ql(Oe)),this.options.adsorbOptions&&Fo){var Ho=this.resetAdsorbLngLat(Oe);Ho&&(zi.geometry.coordinates=ns.geometry.coordinates=Ho)}Bs(Vi(Je.prototype),"onPointDragging",this).call(this,Oe),this.syncPolygonNodes(Lt,Yn),this.setActivePolygon(Lt)}return ot}},{key:"onLineDragging",value:function(Oe){var ot=this.dragPolygon,Lt=Bs(Vi(Je.prototype),"onLineDragging",this).call(this,Oe);if(Lt&&ot){var on=Lt.properties.nodes;this.syncPolygonNodes(ot,on.slice(0,on.length-1)),this.emit(y.DrawEvent.Dragging,ot,this.getPolygonData())}return Lt}},{key:"onMidPointClick",value:function(Oe){var ot=Bs(Vi(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,on=(ot=Lt==null?void 0:Lt.properties.nodes)!==null&&ot!==void 0?ot:[];if(Lt&&on.length){this.options.adsorbOptions&&this.resetAdsorbLngLat(Oe);var Fn=Ql(Oe),Yn=[];if(Yn.push(wn([Fn,su(on).geometry.coordinates])),on.length>1&&Yn.push(wn([Fn,js(on).geometry.coordinates])),this.options.liveUpdate&&on.length>=2){var zi=Ji(eo(on));Lt.geometry.coordinates=[[].concat(oo(zi),[Fn,zi[0]])],this.setPolygonData(this.getPolygonData())}this.setDashLineData(Yn),this.setTextData(this.getAllTexts())}}},{key:"removeNode",value:function(Oe,ot){var Lt,on=this.getTargetFeature(ot),Fn=this.getTargetFeature(Oe,(Lt=on==null?void 0:on.properties.nodes)!==null&&Lt!==void 0?Lt:[]);if(on&&Fn){var Yn,zi=(Yn=on==null?void 0:on.properties.nodes)!==null&&Yn!==void 0?Yn:[];if(4>zi.length)return;this.syncPolygonNodes(on,zi.filter(function(ns){return!Js(Fn,ns)})),this.emit(y.DrawEvent.RemoveNode,Fn,on,this.getLineData()),this.emit(y.DrawEvent.Edit,on,this.getPolygonData())}}},{key:"onPointContextMenu",value:function(Oe){var ot,Lt=this.editPolygon,on=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(Yn){return Js(Yn,on)})||(on=Fn[0]),this.removeNode(on,Lt),on}},{key:"bindPointRenderEvent",value:function(){var Oe;Bs(Vi(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;Bs(Vi(Je.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((Oe=this.pointRender)===null||Oe===void 0||Oe.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var Oe;Bs(Vi(Je.prototype),"disablePointRenderAction",this).call(this),(Oe=this.pointRender)===null||Oe===void 0||Oe.disableContextMenu()}}]),Je}(mu),lp=function(we){ki(Je,we);var ze=Ns(Je);function Je(Oe,ot){var Lt;return St(this,Je),(Lt=ze.call(this,Oe,ot)).bindPointRenderEvent(),Lt.bindSceneEvent(),Lt.bindMidPointRenderEvent(),Lt.bindLineRenderEvent(),Lt.bindPolygonRenderEvent(),Lt}return Vn(Je,[{key:"getDefaultOptions",value:function(Oe){var ot=Bs(Vi(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(on){var Fn,Yn,zi;on.properties=lt(lt({},et()),(Fn=on.properties)!==null&&Fn!==void 0?Fn:{});var ns=on.properties.nodes;if(((Yn=ns)===null||Yn===void 0?void 0:Yn.length)!==2){var Fo=_a(Ml(on),4),Ho=Fo[2],zu=Fo[3];ns=[hn([Fo[0],Fo[1]]),hn([Ho,zu])],on.properties.nodes=ns}var gu=_a(ns,2),Gl=gu[0],Sl=gu[1],Kl=!!(!((zi=on.properties)===null||zi===void 0)&&zi.isActive),il=on.properties.line;return il||(il=ot.handleCreatePolygonLine(Gl,Sl,{isActive:Kl}),on.properties.line=il),ot.handleCreatePolygon([Gl,Sl],il,lt(lt({},on.properties),{},{isActive:Kl}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:Lt,line:Lt.map(function(on){return on.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]:{},on=Ji(Fu(eo([Oe,ot]))).map(function(Fn,Yn){return Yn===0?Oe:Yn===2?ot:hn(Fn)});return Or(on,Lt)}},{key:"syncPolygonNodes",value:function(Oe,ot){var Lt=Oe.properties.line,on=Ji(Fu(eo(ot)));Oe.properties.nodes=ot,Oe.geometry.coordinates=[on],this.setPolygonData(function(zi){return zi.map(function(ns){return Js(ns,Oe)?Oe:ns})}),this.setPointData(Oe.properties.isDraw?[ot[0]]:ot);var Fn=Lt.properties.nodes,Yn=on.filter(function(zi){return!Ri(zi,ot[0].geometry.coordinates)&&!Ri(zi,ot[1].geometry.coordinates)});return Fn.forEach(function(zi,ns){var Fo=[0,0];switch(ns){case 0:Fo=ot[0].geometry.coordinates;break;case 1:Fo=Yn[0];break;case 2:Fo=ot[1].geometry.coordinates;break;case 3:Fo=Yn[1];break;case 4:Fo=ys(ot[0].geometry.coordinates)}zi.geometry.coordinates=Fo}),Lt.geometry.coordinates=on,Oe}},{key:"onLineDragging",value:function(Oe){var ot=Bs(Vi(Je.prototype),"onLineDragging",this).call(this,Oe),Lt=this.dragPolygon;if(ot&&Lt){var on=Lt.properties.line.properties.nodes;this.syncPolygonNodes(Lt,[on[0],on[2]]),this.setActivePolygon(Lt,{isDrag:!0}),this.emit(y.DrawEvent.Dragging,Lt,this.getPolygonData())}return ot}}]),Je}(hc),Qp=function(we,ze){for(var Je=we;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:Wo,polygon:fd,rect:lp,circle:cd},Rm="data-draw-type",Vm="l7-draw-control",Eg="".concat(Vm,"__btn"),wm="".concat(Eg,"--active");(function(we){var ze,Je,Oe,ot,Lt,on='',Fn=(Fn=document.getElementsByTagName("script"))[Fn.length-1].getAttribute("data-injectcss");if(Fn&&!we.__iconfont__svg__cssinject__){we.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(zi){console&&console.log(zi)}}function Yn(){Lt||(Lt=!0,Oe())}ze=function(){var zi,ns=document.createElement("div");ns.innerHTML=on,on=null,(ns=ns.getElementsByTagName("svg")[0])&&(ns.setAttribute("aria-hidden","true"),ns.style.position="absolute",ns.style.width=0,ns.style.height=0,ns.style.overflow="hidden",(zi=document.body).firstChild?function(Fo,Ho){Ho.parentNode.insertBefore(Fo,Ho)}(ns,zi.firstChild):zi.appendChild(ns))},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=we.document,Lt=!1,function zi(){try{ot.documentElement.doScroll("left")}catch(ns){return void setTimeout(zi,50)}Yn()}(),ot.onreadystatechange=function(){ot.readyState=="complete"&&(ot.onreadystatechange=null,Yn())})})(window),os(".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(we){ki(Je,we);var ze=Ns(Je);function Je(Oe){var ot,Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return St(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(on,Fn){ot.emit(y.ControlEvent.DrawSelect,on,Fn)},ot.sceneInstance=Oe,ot.controlOption=lt(lt({},ot.getDefault()),Lt||{}),ot.onBtnClick=ot.onBtnClick.bind(ps(ot)),ot}return Vn(Je,[{key:"getActiveType",value:function(){return this.activeType}},{key:"getDefault",value:function(){return lt(lt({},Bs(Vi(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 Bs(Vi(Je.prototype),"addTo",this).call(this,Oe),this.init(),this}},{key:"onAdd",value:function(){var Oe=this.controlOption,ot=Oe.className,Lt=Oe.style,on=I.DOM.create("div","".concat(Vm," ").concat(ot));return Lt&&on.setAttribute("style",Lt),on}},{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(on){var Fn=_a(on,2),Yn=Fn[0],zi=Fn[1];if(zi){var ns=ot.initBtn(Yn);ns.addEventListener("click",ot.onBtnClick),Lt.push(ns),ot.btnMap[Yn]=ns;var Fo=Pm[Yn];if(Fo&&ot.sceneInstance){var Ho=new Fo(ot.sceneInstance,lt(lt({},ot.controlOption.commonDrawOptions),typeof zi=="boolean"?{}:zi));Ho.on(y.DrawEvent.Change,ot.emitDataChange),Ho.on(y.DrawEvent.Select,function(zu){ot.emitDrawSelect(Yn,zu)}),ot.drawMap[Yn]=Ho}}}),(Oe=this.container).append.apply(Oe,Lt),this.controlOption.defaultActiveType&&this.onDrawClick(this.controlOption.defaultActiveType)}},{key:"getDrawData",value:function(){return Os(Ca(this.drawMap).map(function(Oe){var ot=_a(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 on,Fn=this.btnMap[Lt];if(Fn){I.DOM.removeClass(Fn,wm);var Yn=this.controlOption.activeButtonClassName;Yn&&I.DOM.removeClass(Fn,Yn)}(on=this.drawMap[Lt])===null||on===void 0||on.disable(),ot=null}if(Lt!==Oe&&Oe){var zi;(zi=this.drawMap[Oe])===null||zi===void 0||zi.enable();var ns=this.btnMap[Oe];ns&&I.DOM.addClass(ns,"".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=pa,y.BaseMode=Na,y.CircleDrawer=cd,y.DEFAULT_ADSORB_CONFIG=gt,y.DEFAULT_AREA_OPTIONS=gn,y.DEFAULT_COMMON_OPTIONS=Cl,y.DEFAULT_CURSOR_MAP=b,y.DEFAULT_DISTANCE_OPTIONS=Xt,y.DEFAULT_HISTORY_CONFIG=En,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=at,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=Wo,y.DrawPoint=Wd,y.DrawPolygon=fd,y.DrawRect=lp,y.LayerRender=Pd,y.LineDrawer=Wo,y.LineMode=vl,y.LineRender=F,y.MidPointMode=Qi,y.MidPointRender=q,y.NORMAL_COLOR=Xo,y.PointDrawer=Wd,y.PointMode=bs,y.PointRender=se,y.PolygonDrawer=fd,y.PolygonMode=mu,y.PolygonRender=Ue,y.RENDER_MAP=_i,y.RectDrawer=lp,y.SceneRender=Jt,y.Source=Da,y.TextRender=Wn,y.calcAreaText=Ea,y.calcDistanceTextsByLine=_s,y.createDashLine=wn,y.createLineFeature=Or,y.createPointFeature=hn,y.createPolygonFeature=li,y.findMinIndex=As,y.getAdsorbFeature=vr,y.getAdsorbLine=Ta,y.getAdsorbPoint=qa,y.getDefaultLineProperties=Me,y.getDefaultPointProperties=Le,y.getDefaultPolygonProperties=et,y.getLineCenterPoint=Fi,y.getLngLat=bl,y.getMapDom=Aa,y.getParentByClassName=Qp,y.getPosition=Ql,y.getSingleColorStyle=function(we){return{point:{normal:{color:we},hover:{color:we},active:{color:we}},line:{normal:{color:we},hover:{color:we},active:{color:we}},polygon:{normal:{color:we},hover:{color:we},active:{color:we},style:{opacity:.2}},text:{normal:{color:we},active:{color:we}},midPoint:{normal:{color:we}},dashLine:{normal:{color:we}}}},y.getUuid=tu,y.isDev=!1,y.isSameFeature=Js,y.resetEventLngLat=Du,y.splitByPosition=Xa,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 fs},AttributeType:function(){return Ld},BKDRHash:function(){return Nf},BMap:function(){return PV},BaseLayer:function(){return Ja},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 nl},FrequencyController:function(){return ls},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 _t},Mapbox:function(){return lL},Marker:function(){return N2},MarkerLayer:function(){return xC},MaskLayer:function(){return mO},MaskOperation:function(){return es},MouseLocation:function(){return Uo},PassType:function(){return Rf},PointFillTriangulation:function(){return Vt},PointLayer:function(){return RP},PolygonLayer:function(){return FP},PopperControl:function(){return Zn},Popup:function(){return _g},PositionType:function(){return bo},RasterLayer:function(){return BP},RasterTileType:function(){return kv},Satistics:function(){return I},Scale:function(){return _c},ScaleTypes:function(){return n0},Scene:function(){return K7},SceneConifg:function(){return ro},SceneEventList:function(){return Ew},SelectControl:function(){return $o},SizeUnitType:function(){return Wh},Source:function(){return r0},SourceTile:function(){return Od},StencilType:function(){return nf},StyleScaleType:function(){return Wb},TYPES:function(){return vr},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 Hr},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 oi},djb2hash:function(){return uh},encodePickingColor:function(){return Zi},executeWorkerTask:function(){return zs},expandUrl:function(){return bd},extent:function(){return fu},flow:function(){return uf},formatImage:function(){return sn},generateCatRamp:function(){return Gn},generateColorRamp:function(){return Ir},generateCustomRamp:function(){return Ln},generateLinearRamp:function(){return tn},generateQuantizeRamp:function(){return Ei},getAngle:function(){return jh},getArrayBuffer:function(){return ji},getBBoxFromPoints:function(){return Cp},getCullFace:function(){return Mi},getDefaultDomain:function(){return nr},getImage:function(){return Wt},getJSON:function(){return go},getProtocolAction:function(){return Bo},getReferrer:function(){return el},getTileIndices:function(){return iu},getTileWarpXY:function(){return mp},getURLFromTemplate:function(){return $c},getWMTSURLFromTemplate:function(){return Hd},gl:function(){return qi},guid:function(){return Th},isAndroid:function(){return vu},isColor:function(){return co},isImageBitmap:function(){return ea},isPC:function(){return au},isURLTemplate:function(){return Bf},isWorker:function(){return Qa},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 ml},lngLatToMeters:function(){return Vc},lnglatDistance:function(){return Xd},lodashUtil:function(){return Fa},longitude:function(){return eh},makeXMLHttpRequestPromise:function(){return So},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 Yt},postData:function(){return No},project:function(){return th},rgb2arr:function(){return Qr},sameOrigin:function(){return dn},setL7WorkerSource:function(){return Po},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 hi},addClass:function(){return Cs},addStyle:function(){return Ji},appendElementType:function(){return Ml},clearChildren:function(){return dl},create:function(){return eo},css2Style:function(){return us},empty:function(){return vo},findParentElement:function(){return Za},getClass:function(){return Pc},getContainer:function(){return ua},getDiffRect:function(){return ga},getStyleList:function(){return so},getViewPortScale:function(){return ai},hasClass:function(){return $u},printCanvas:function(){return yr},remove:function(){return sa},removeClass:function(){return Ka},removeStyle:function(){return Pi},setChecked:function(){return $a},setClass:function(){return rc},setTransform:function(){return hs},setUnDraggable:function(){return Hl},splitWords:function(){return vs},triggerResize:function(){return jn},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 Yn},create:function(){return on},determinant:function(){return Gl},equals:function(){return Xu},exactEquals:function(){return _d},frob:function(){return cu},fromQuat:function(){return Nn},fromQuat2:function(){return G},fromRotation:function(){return xc},fromRotationTranslation:function(){return R},fromRotationTranslationScale:function(){return wt},fromRotationTranslationScaleOrigin:function(){return jt},fromScaling:function(){return Qh},fromTranslation:function(){return Oo},fromValues:function(){return zi},fromXRotation:function(){return hh},fromYRotation:function(){return Gd},fromZRotation:function(){return _},frustum:function(){return cr},getRotation:function(){return Qe},getScaling:function(){return ke},getTranslation:function(){return le},identity:function(){return Fo},invert:function(){return zu},lookAt:function(){return Pa},mul:function(){return Nd},multiply:function(){return Sl},multiplyScalar:function(){return kc},multiplyScalarAndAdd:function(){return ac},ortho:function(){return ra},orthoNO:function(){return qs},orthoZO:function(){return al},perspective:function(){return bi},perspectiveFromFieldOfView:function(){return zo},perspectiveNO:function(){return Ur},perspectiveZO:function(){return _o},rotate:function(){return Ga},rotateX:function(){return pu},rotateY:function(){return ic},rotateZ:function(){return od},scale:function(){return il},set:function(){return ns},str:function(){return jl},sub:function(){return qt},subtract:function(){return Uu},targetTo:function(){return Ol},translate:function(){return Kl},transpose:function(){return Ho}});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 eP},mul:function(){return qN},multiply:function(){return HN},negate:function(){return tP},normalize:function(){return $2},random:function(){return XN},rotateX:function(){return hb},rotateY:function(){return yz},rotateZ:function(){return nP},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 rP},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,te=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 je(a){var p=new RegExp('["'+a+` -\r]`),u=a.charCodeAt(0);function c(Ze,Et){var Mt,An,Mn=l(Ze,function(br,Li){if(Mt)return Mt(br,Li-1);An=br,Mt=Et?pe(br,Et):ce(br)});return Mn.columns=An||[],Mn}function l(Ze,Et){var Mt=[],An=Ze.length,Mn=0,br=0,Li,Zo=An<=0,Go=!1;Ze.charCodeAt(An-1)===te&&--An,Ze.charCodeAt(An-1)===re&&--An;function Qs(){if(Zo)return P;if(Go)return Go=!1,S;var Oa,yl=Mn,Wl;if(Ze.charCodeAt(yl)===W){for(;Mn++=An?Zo=!0:(Wl=Ze.charCodeAt(Mn++))===te?Go=!0:Wl===re&&(Go=!0,Ze.charCodeAt(Mn)===te&&++Mn),Ze.slice(yl+1,Oa-1).replace(/""/g,'"')}for(;Mn=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 fs(u.status,u.statusText,c.toString(),T))}},u.cancel=u.abort,u.send(a.body),u}function So(a){return new Promise(function(p,u){me(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 ho(a,p){return me(a,p)}var go=function(p,u){var c=Bo(p.url)||ho;return c((0,Se.Z)((0,Se.Z)({},p),{},{type:"json"}),u)},ji=function(p,u){var c=Bo(p.url)||ho;return c((0,Se.Z)((0,Se.Z)({},p),{},{type:"arrayBuffer"}),u)},No=function(p,u){return ho((0,Se.Z)((0,Se.Z)({},p),{},{method:"POST"}),u)};function dn(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 yt(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):yt(ee,u)}};return p.type==="json"?go(p,l):ji(p,l)},sn=function(p,u){var c=typeof createImageBitmap=="function";c?xt(p,u):yt(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 zn(a,p){var u=Object.create(a.prototype);for(var c in p)u[c]=p[c];return u}function en(){}var fr=.7,Kr=1/fr,ii="\\s*([+-]?\\d+)\\s*",si="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",uo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qo=/^#([0-9a-f]{3,8})$/,_n=new RegExp("^rgb\\("+[ii,ii,ii]+"\\)$"),Vr=new RegExp("^rgb\\("+[uo,uo,uo]+"\\)$"),qr=new RegExp("^rgba\\("+[ii,ii,ii,si]+"\\)$"),Ui=new RegExp("^rgba\\("+[uo,uo,uo,si]+"\\)$"),xo=new RegExp("^hsl\\("+[si,uo,uo]+"\\)$"),Us=new RegExp("^hsla\\("+[si,uo,uo,si]+"\\)$"),$n={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(en,Tr,{copy:function(a){return Object.assign(new this.constructor,this,a)},displayable:function(){return this.rgb().displayable()},hex:Kn,formatHex:Kn,formatHsl:Fr,formatRgb:mi,toString:mi});function Kn(){return this.rgb().formatHex()}function Fr(){return xr(this).formatHsl()}function mi(){return this.rgb().formatRgb()}function Tr(a){var p,u;return a=(a+"").trim().toLowerCase(),(p=Qo.exec(a))?(u=p[1].length,p=parseInt(p[1],16),u===6?ti(p):u===3?new Xr(p>>8&15|p>>4&240,p>>4&15|p&240,(p&15)<<4|p&15,1):u===8?di(p>>24&255,p>>16&255,p>>8&255,(p&255)/255):u===4?di(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=_n.exec(a))?new Xr(p[1],p[2],p[3],1):(p=Vr.exec(a))?new Xr(p[1]*255/100,p[2]*255/100,p[3]*255/100,1):(p=qr.exec(a))?di(p[1],p[2],p[3],p[4]):(p=Ui.exec(a))?di(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=Us.exec(a))?pn(p[1],p[2]/100,p[3]/100,p[4]):$n.hasOwnProperty(a)?ti($n[a]):a==="transparent"?new Xr(NaN,NaN,NaN,0):null}function ti(a){return new Xr(a>>16&255,a>>8&255,a&255,1)}function di(a,p,u,c){return c<=0&&(a=p=u=NaN),new Xr(a,p,u,c)}function rn(a){return a instanceof en||(a=Tr(a)),a?(a=a.rgb(),new Xr(a.r,a.g,a.b,a.opacity)):new Xr}function Qn(a,p,u,c){return arguments.length===1?rn(a):new Xr(a,p,u,c==null?1:c)}function Xr(a,p,u,c){this.r=+a,this.g=+p,this.b=+u,this.opacity=+c}Ht(Xr,Qn,zn(en,{brighter:function(a){return a=a==null?Kr:Math.pow(Kr,a),new Xr(this.r*a,this.g*a,this.b*a,this.opacity)},darker:function(a){return a=a==null?fr:Math.pow(fr,a),new Xr(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:ao,formatHex:ao,formatRgb:as,toString:as}));function ao(){return"#"+Bt(this.r)+Bt(this.g)+Bt(this.b)}function as(){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 Bt(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 vi(a,p,u,c)}function xr(a){if(a instanceof vi)return new vi(a.h,a.s,a.l,a.opacity);if(a instanceof en||(a=Tr(a)),!a)return new vi;if(a instanceof vi)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 vi(T,B,Z,a.opacity)}function Jr(a,p,u,c){return arguments.length===1?xr(a):new vi(a,p,u,c==null?1:c)}function vi(a,p,u,c){this.h=+a,this.s=+p,this.l=+u,this.opacity=+c}Ht(vi,Jr,zn(en,{brighter:function(a){return a=a==null?Kr:Math.pow(Kr,a),new vi(this.h,this.s,this.l*a,this.opacity)},darker:function(a){return a=a==null?fr:Math.pow(fr,a),new vi(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 Xr(Ti(a>=240?a-240:a+120,l,c),Ti(a,l,c),Ti(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 Ti(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 co(a){return typeof a=="string"?!!Tr(a):!1}function Qr(a){var p=Tr(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 oi(a){var p=a&&a[0],u=a&&a[1],c=a&&a[2],l=p+u*256+c*65536-1;return l}function Zi(a){return[a+1&255,a+1>>8&255,a+1>>8>>8&255]}function Ir(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 vo(a){for(;a&&a.firstChild;)a.removeChild(a.firstChild)}var to=Hi(["transform","WebkitTransform"]);function hs(a,p){a.style[to]=p}function jn(){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 yr(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 ai(){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,Xn.Z)(g,1),B=T[0];return B==="initial-scale"});return c?c.split("=")[1]*1:1}var hi=ai()<1?1:window.devicePixelRatio;function Ji(a,p){a.setAttribute("style","".concat(a.style.cssText).concat(p))}function so(a){return a.split(";").map(function(p){return p.trim()}).filter(function(p){return p})}function Pi(a,p){var u,c=so((u=a.getAttribute("style"))!==null&&u!==void 0?u:""),l=so(p),g=gl.apply(void 0,[c].concat((0,Rr.Z)(l)));a.setAttribute("style",g.join(";"))}function us(a){return Object.entries(a).map(function(p){var u=(0,Xn.Z)(p,2),c=u[0],l=u[1];return"".concat(c,": ").concat(l)}).join(";")}function ga(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 $a(a,p){a.checked=p,p?a.setAttribute("checked","true"):a.removeAttribute("checked")}function dl(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,Rr.Z)(p)):a.append(p)}function Za(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 ea(a){return typeof ImageBitmap!="undefined"&&a instanceof ImageBitmap}function Qa(){return typeof importScripts=="function"}var el=Qa()?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 Cn=m(80268);function Eu(a,p){a.forEach(function(u){p[u]&&(p[u]=p[u].bind(p))})}var ls=function(){function a(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16;(0,Ct.Z)(this,a),(0,Cn.Z)(this,"duration",16),(0,Cn.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}(),Ks=m(86461),xa=m(8822);function Il(a){return typeof a=="number"}var El=2*Math.PI*6378137/2;function ml(a,p){var u=(0,Xn.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,Xn.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,xa.degreesToRadians)(p[1]-a[1]),l=(0,xa.degreesToRadians)(p[0]-a[0]),g=(0,xa.degreesToRadians)(a[1]),T=(0,xa.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,xa.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(Et){Et.duration=p*(Et.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 tl(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,Rr.Z)(vd(tl(Z,u),tl(ee,u))),[0])}else{var Pe=wd(a,p,c),Ze=[a[0],Pe[0],p[0]],Et=[a[1],Pe[1],p[1]];return[tl(Ze,u),tl(Et,u),0]}}function ja(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,xa.degreesToRadians)(a[0]),(0,xa.degreesToRadians)(a[1])],g=[(0,xa.degreesToRadians)(p[0]),(0,xa.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),Et=[Math.sin(l[0]),Math.sin(l[1])],Mt=[Math.cos(l[0]),Math.cos(l[1])],An=[Math.sin(g[0]),Math.sin(g[1])],Mn=[Math.cos(g[0]),Math.cos(g[1])],br=Pe*Mt[1]*Mt[0]+Ze*Mn[1]*Mn[0],Li=Pe*Mt[1]*Et[0]+Ze*Mn[1]*An[0],Zo=Pe*Et[1]+Ze*An[1];return[(0,xa.radiansToDegrees)(Math.atan2(Li,br)),(0,xa.radiansToDegrees)(Math.atan2(Zo,Math.sqrt(br*br+Li*Li)))]}}function Vd(a,p){for(var u=0,c=[],l=0;lee){var br=An.p1,Li=An.p2,Zo=(ee-An.lastTotalDistance)/An.distance,Go=Ud(Li,br,Zo);Pe=Go[0],Ze=Go[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,Se.Z)((0,Se.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],Et=Pe[1],Mt=typeof l=="string"?a[l]||0:l,An;switch(c){case"arc":An=ff;break;case"greatcircle":An=ja;break;default:An=ff}var Mn=An(Ze,Et,u,Mt,g,B,ee),br=(0,Xn.Z)(Mn,3),Li=br[0],Zo=br[1],Go=br[2];return{lng:Li,lat:Zo,height:Go}}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,Ct.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 Ra=m(97100),cs=m(9967),Op=m(96026),no=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,Cn.Z)(Uf,Bc.Realtime,sp),(0,Cn.Z)(Uf,Bc.Overlap,Rp),(0,Cn.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,Xn.Z)(l,2),T=g[0],B=g[1],Z=of(p+1,u+1,c),ee=(0,Xn.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 Et=(0,Xn.Z)(u,4),Mt=Et[0],An=Et[1],Mn=Et[2],br=Et[3],Li=[Math.max(Mt,Pe[0]),Math.max(An,Pe[1]),Math.min(Mn,Pe[2]),Math.min(br,Pe[3])],Zo=[],Go=Ih(Li[0],Li[1],Ze),Qs=(0,Xn.Z)(Go,2),aa=Qs[0],Oa=Qs[1],yl=Ih(Li[2],Li[3],Ze),Wl=(0,Xn.Z)(yl,2),Jl=Wl[0],ju=Wl[1],Ku=aa;Ku<=Jl;Ku++)for(var Jc=ju;Jc<=Oa;Jc++)Zo.push({x:Ku,y:Jc,z:Ze});var gd=(Jl+aa)/2,Ch=(Oa+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,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,zt.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,ft.Z)(u,a);var p=Af(u);function u(c){var l;(0,Ct.Z)(this,u),l=p.call(this),(0,Cn.Z)((0,cs.Z)(l),"tileSize",256),(0,Cn.Z)((0,cs.Z)(l),"isVisible",!1),(0,Cn.Z)((0,cs.Z)(l),"isCurrent",!1),(0,Cn.Z)((0,cs.Z)(l),"isVisibleChange",!1),(0,Cn.Z)((0,cs.Z)(l),"loadedLayers",0),(0,Cn.Z)((0,cs.Z)(l),"isLayerLoaded",!1),(0,Cn.Z)((0,cs.Z)(l),"isLoad",!1),(0,Cn.Z)((0,cs.Z)(l),"isChildLoad",!1),(0,Cn.Z)((0,cs.Z)(l),"parent",null),(0,Cn.Z)((0,cs.Z)(l),"children",[]),(0,Cn.Z)((0,cs.Z)(l),"data",null),(0,Cn.Z)((0,cs.Z)(l),"properties",{}),(0,Cn.Z)((0,cs.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,Xn.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:` +`,Ee=function(an){var Tt=(0,N.useContext)(S.Z),Nn=Tt.csp,mn=Tt.prefixCls,zn=Me;mn&&(zn=zn.replace(/anticon/g,mn)),(0,N.useEffect)(function(){var Kr=an.current,Ui=(0,K.A)(Kr);(0,F.hq)(zn,"@ant-design-icons",{prepend:!0,csp:Nn,attachTo:Ui})},[])},ze=["icon","className","onClick","style","primaryColor","secondaryColor"],Pe={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Re(At){var an=At.primaryColor,Tt=At.secondaryColor;Pe.primaryColor=an,Pe.secondaryColor=Tt||it(an),Pe.calculated=!!Tt}function je(){return(0,p.Z)({},Pe)}var Ce=function(an){var Tt=an.icon,Nn=an.className,mn=an.onClick,zn=an.style,Kr=an.primaryColor,Ui=an.secondaryColor,go=(0,x.Z)(an,ze),gi=N.useRef(),Mr=Pe;if(Kr&&(Mr={primaryColor:Kr,secondaryColor:Ui||it(Kr)}),Ee(gi),be(Ae(Tt),"icon should be icon definiton, but got ".concat(Tt)),!Ae(Tt))return null;var To=Tt;return To&&typeof To.icon=="function"&&(To=(0,p.Z)((0,p.Z)({},To),{},{icon:To.icon(Mr.primaryColor,Mr.secondaryColor)})),Se(To.icon,"svg-".concat(To.name),(0,p.Z)((0,p.Z)({className:Nn,onClick:mn,style:zn,"data-icon":To.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},go),{},{ref:gi}))};Ce.displayName="IconReact",Ce.getTwoToneColors=je,Ce.setTwoToneColors=Re;var rt=Ce;function Ne(At){var an=Xe(At),Tt=(0,M.Z)(an,2),Nn=Tt[0],mn=Tt[1];return rt.setTwoToneColors({primaryColor:Nn,secondaryColor:mn})}function Xt(){var At=rt.getTwoToneColors();return At.calculated?[At.primaryColor,At.secondaryColor]:At.primaryColor}var Ft=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ne(k.iN.primary);var lt=N.forwardRef(function(At,an){var Tt,Nn=At.className,mn=At.icon,zn=At.spin,Kr=At.rotate,Ui=At.tabIndex,go=At.onClick,gi=At.twoToneColor,Mr=(0,x.Z)(At,Ft),To=N.useContext(S.Z),ms=To.prefixCls,De=ms===void 0?"anticon":ms,Oo=To.rootClassName,$i=R()(Oo,De,(Tt={},(0,C.Z)(Tt,"".concat(De,"-").concat(mn.name),!!mn.name),(0,C.Z)(Tt,"".concat(De,"-spin"),!!zn||mn.name==="loading"),Tt),Nn),co=Ui;co===void 0&&go&&(co=-1);var Vr=Kr?{msTransform:"rotate(".concat(Kr,"deg)"),transform:"rotate(".concat(Kr,"deg)")}:void 0,Ro=Xe(gi),Tn=(0,M.Z)(Ro,2),nt=Tn[0],Ct=Tn[1];return N.createElement("span",(0,v.Z)({role:"img","aria-label":mn.name},Mr,{ref:an,tabIndex:co,onClick:go,className:$i}),N.createElement(rt,{icon:mn,primaryColor:nt,secondaryColor:Ct,style:Vr}))});lt.displayName="AntdIcon",lt.getTwoToneColor=Xt,lt.setTwoToneColor=Ne;var Bt=lt},35954:function(mt,q,_){"use strict";var v=_(77617),M=(0,v.createContext)({});q.Z=M},95934:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(26508),M=_(77617),C={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"},x=C,N=_(91851),V=function(S,p){return M.createElement(N.Z,(0,v.Z)({},S,{ref:p,icon:x}))},R=M.forwardRef(V)},75769:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(26508),M=_(77617),C={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"},x=C,N=_(91851),V=function(S,p){return M.createElement(N.Z,(0,v.Z)({},S,{ref:p,icon:x}))},R=M.forwardRef(V)},48796:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(26508),M=_(77617),C={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"},x=C,N=_(91851),V=function(S,p){return M.createElement(N.Z,(0,v.Z)({},S,{ref:p,icon:x}))},R=M.forwardRef(V)},49934:function(mt,q,_){"use strict";var v=_(26508),M=_(77617),C=_(7786),x=_(91851),N=function(R,k){return M.createElement(x.Z,(0,v.Z)({},R,{ref:k,icon:C.Z}))};q.Z=M.forwardRef(N)},42884:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(26508),M=_(77617),C={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"},x=C,N=_(91851),V=function(S,p){return M.createElement(N.Z,(0,v.Z)({},S,{ref:p,icon:x}))},R=M.forwardRef(V)},93319:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(26508),M=_(77617),C={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"},x=C,N=_(91851),V=function(S,p){return M.createElement(N.Z,(0,v.Z)({},S,{ref:p,icon:x}))},R=M.forwardRef(V)},86850:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(26508),M=_(77617),C={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"},x=C,N=_(91851),V=function(S,p){return M.createElement(N.Z,(0,v.Z)({},S,{ref:p,icon:x}))},R=M.forwardRef(V)},15997:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(26508),M=_(77617),C={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"},x=C,N=_(91851),V=function(S,p){return M.createElement(N.Z,(0,v.Z)({},S,{ref:p,icon:x}))},R=M.forwardRef(V)},37748:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(26508),M=_(77617),C={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"},x=C,N=_(91851),V=function(S,p){return M.createElement(N.Z,(0,v.Z)({},S,{ref:p,icon:x}))},R=M.forwardRef(V)},52063:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(26508),M=_(77617),C={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"},x=C,N=_(91851),V=function(S,p){return M.createElement(N.Z,(0,v.Z)({},S,{ref:p,icon:x}))},R=M.forwardRef(V)},38521:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(26508),M=_(77617),C={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"},x=C,N=_(91851),V=function(S,p){return M.createElement(N.Z,(0,v.Z)({},S,{ref:p,icon:x}))},R=M.forwardRef(V)},22311:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(26508),M=_(77617),C={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"},x=C,N=_(91851),V=function(S,p){return M.createElement(N.Z,(0,v.Z)({},S,{ref:p,icon:x}))},R=M.forwardRef(V)},46820:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(26508),M=_(77617),C={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"},x=C,N=_(91851),V=function(S,p){return M.createElement(N.Z,(0,v.Z)({},S,{ref:p,icon:x}))},R=M.forwardRef(V)},70458:function(){window._iconfont_svg_string_3580659='',function(mt){try{let S=function(){N||(N=!0,C())},p=function(){try{x.documentElement.doScroll("left")}catch(T){return void setTimeout(p,50)}S()};var R=S,k=p,_=(_=document.getElementsByTagName("script"))[_.length-1],q=_.getAttribute("data-injectcss"),_=_.getAttribute("data-disable-injectsvg");if(!_){var v,M,C,x,N,V=function(F,K){K.parentNode.insertBefore(F,K)};if(q&&!mt.__iconfont__svg__cssinject__){mt.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(T){console&&console.log(T)}}v=function(){var F,K=document.createElement("div");K.innerHTML=mt._iconfont_svg_string_3580659,(K=K.getElementsByTagName("svg")[0])&&(K.setAttribute("aria-hidden","true"),K.style.position="absolute",K.style.width=0,K.style.height=0,K.style.overflow="hidden",K=K,(F=document.body).firstChild?V(K,F.firstChild):F.appendChild(K))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(v,0):(M=function(){document.removeEventListener("DOMContentLoaded",M,!1),v()},document.addEventListener("DOMContentLoaded",M,!1)):document.attachEvent&&(C=v,x=mt.document,N=!1,p(),x.onreadystatechange=function(){x.readyState=="complete"&&(x.onreadystatechange=null,S())})}}catch(S){}}(window)},43851:function(mt,q,_){(function(v,M){M(q,_(68911))})(this,function(v,M){"use strict";var C={draw:"crosshair",pointHover:"pointer",pointDrag:"move",lineHover:"pointer",lineDrag:"move",polygonHover:"pointer",polygonDrag:"move"},x={point:[],line:[],polygon:[],midPoint:[],dashLine:[],text:[]},N="top",V="bottom",R="right",k="left",S="auto",p=[N,V,R,k],T="start",F="end",K="clippingParents",he="viewport",fe="popper",be="reference",Ae=p.reduce(function(Le,d){return Le.concat([d+"-"+T,d+"-"+F])},[]),xe=[].concat(p,[S]).reduce(function(Le,d){return Le.concat([d,d+"-"+T,d+"-"+F])},[]),Se=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function it(Le){return Le?(Le.nodeName||"").toLowerCase():null}function Xe(Le){if(Le==null)return window;if(""+Le!="[object Window]"){var d=Le.ownerDocument;return d&&d.defaultView||window}return Le}function ft(Le){return Le instanceof Xe(Le).Element||Le instanceof Element}function Me(Le){return Le instanceof Xe(Le).HTMLElement||Le instanceof HTMLElement}function Ee(Le){return typeof ShadowRoot!="undefined"&&(Le instanceof Xe(Le).ShadowRoot||Le instanceof ShadowRoot)}var ze={name:"applyStyles",enabled:!0,phase:"write",fn:function(Le){var d=Le.state;Object.keys(d.elements).forEach(function(y){var E=d.styles[y]||{},Z=d.attributes[y]||{},re=d.elements[y];Me(re)&&it(re)&&(Object.assign(re.style,E),Object.keys(Z).forEach(function(pe){var Ie=Z[pe];Ie===!1?re.removeAttribute(pe):re.setAttribute(pe,Ie===!0?"":Ie)}))})},effect:function(Le){var d=Le.state,y={popper:{position:d.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(d.elements.popper.style,y.popper),d.styles=y,d.elements.arrow&&Object.assign(d.elements.arrow.style,y.arrow),function(){Object.keys(d.elements).forEach(function(E){var Z=d.elements[E],re=d.attributes[E]||{},pe=Object.keys(d.styles.hasOwnProperty(E)?d.styles[E]:y[E]).reduce(function(Ie,Je){return Ie[Je]="",Ie},{});Me(Z)&&it(Z)&&(Object.assign(Z.style,pe),Object.keys(re).forEach(function(Ie){Z.removeAttribute(Ie)}))})}},requires:["computeStyles"]};function Pe(Le){return Le.split("-")[0]}var Re=Math.max,je=Math.min,Ce=Math.round;function rt(){var Le=navigator.userAgentData;return Le!=null&&Le.brands&&Array.isArray(Le.brands)?Le.brands.map(function(d){return d.brand+"/"+d.version}).join(" "):navigator.userAgent}function Ne(){return!/^((?!chrome|android).)*safari/i.test(rt())}function Xt(Le,d,y){d===void 0&&(d=!1),y===void 0&&(y=!1);var E=Le.getBoundingClientRect(),Z=1,re=1;d&&Me(Le)&&(Z=Le.offsetWidth>0&&Ce(E.width)/Le.offsetWidth||1,re=Le.offsetHeight>0&&Ce(E.height)/Le.offsetHeight||1);var pe=(ft(Le)?Xe(Le):window).visualViewport,Ie=!Ne()&&y,Je=(E.left+(Ie&&pe?pe.offsetLeft:0))/Z,zt=(E.top+(Ie&&pe?pe.offsetTop:0))/re,ln=E.width/Z,Kn=E.height/re;return{width:ln,height:Kn,top:zt,right:Je+ln,bottom:zt+Kn,left:Je,x:Je,y:zt}}function Ft(Le){var d=Xt(Le),y=Le.offsetWidth,E=Le.offsetHeight;return Math.abs(d.width-y)>1||(y=d.width),Math.abs(d.height-E)>1||(E=d.height),{x:Le.offsetLeft,y:Le.offsetTop,width:y,height:E}}function lt(Le,d){var y=d.getRootNode&&d.getRootNode();if(Le.contains(d))return!0;if(y&&Ee(y)){var E=d;do{if(E&&Le.isSameNode(E))return!0;E=E.parentNode||E.host}while(E)}return!1}function Bt(Le){return Xe(Le).getComputedStyle(Le)}function At(Le){return["table","td","th"].indexOf(it(Le))>=0}function an(Le){return((ft(Le)?Le.ownerDocument:Le.document)||window.document).documentElement}function Tt(Le){return it(Le)==="html"?Le:Le.assignedSlot||Le.parentNode||(Ee(Le)?Le.host:null)||an(Le)}function Nn(Le){return Me(Le)&&Bt(Le).position!=="fixed"?Le.offsetParent:null}function mn(Le){for(var d=Xe(Le),y=Nn(Le);y&&At(y)&&Bt(y).position==="static";)y=Nn(y);return y&&(it(y)==="html"||it(y)==="body"&&Bt(y).position==="static")?d:y||function(E){var Z=/firefox/i.test(rt());if(/Trident/i.test(rt())&&Me(E)&&Bt(E).position==="fixed")return null;var re=Tt(E);for(Ee(re)&&(re=re.host);Me(re)&&0>["html","body"].indexOf(it(re));){var pe=Bt(re);if(pe.transform!=="none"||pe.perspective!=="none"||pe.contain==="paint"||["transform","perspective"].indexOf(pe.willChange)!==-1||Z&&pe.willChange==="filter"||Z&&pe.filter&&pe.filter!=="none")return re;re=re.parentNode}return null}(Le)||d}function zn(Le){return 0>["top","bottom"].indexOf(Le)?"y":"x"}function Kr(Le,d,y){return Re(Le,je(d,y))}function Ui(Le){return Object.assign({},{top:0,right:0,bottom:0,left:0},Le)}function go(Le,d){return d.reduce(function(y,E){return y[E]=Le,y},{})}var gi={name:"arrow",enabled:!0,phase:"main",fn:function(Le){var d,y=Le.state,E=Le.name,Z=Le.options,re=y.elements.arrow,pe=y.modifiersData.popperOffsets,Ie=Pe(y.placement),Je=zn(Ie),zt=[k,R].indexOf(Ie)>=0?"height":"width";if(re&&pe){var ln=function(Vs,Ta){return Ui(typeof(Vs=typeof Vs=="function"?Vs(Object.assign({},Ta.rects,{placement:Ta.placement})):Vs)!="number"?Vs:go(Vs,p))}(Z.padding,y),Kn=Ft(re),pr=Je==="y"?N:k,si=Je==="y"?V:R,yi=y.rects.reference[zt]+y.rects.reference[Je]-pe[Je]-y.rects.popper[zt],Do=pe[Je]-y.rects.reference[Je],Co=mn(re),Uo=Co?Je==="y"?Co.clientHeight||0:Co.clientWidth||0:0,Mo=Uo/2-Kn[zt]/2+(yi/2-Do/2),oo=Kr(ln[pr],Mo,Uo-Kn[zt]-ln[si]);y.modifiersData[E]=((d={})[Je]=oo,d.centerOffset=oo-Mo,d)}},effect:function(Le){var d=Le.state,y=Le.options.element,E=y===void 0?"[data-popper-arrow]":y;E!=null&&(typeof E!="string"||(E=d.elements.popper.querySelector(E)))&<(d.elements.popper,E)&&(d.elements.arrow=E)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mr(Le){return Le.split("-")[1]}var To={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ms(Le){var d,y=Le.popper,E=Le.popperRect,Z=Le.placement,re=Le.variation,pe=Le.offsets,Ie=Le.position,Je=Le.gpuAcceleration,zt=Le.adaptive,ln=Le.roundOffsets,Kn=Le.isFixed,pr=pe.x,si=pr===void 0?0:pr,yi=pe.y,Do=yi===void 0?0:yi,Co=typeof ln=="function"?ln({x:si,y:Do}):{x:si,y:Do};si=Co.x,Do=Co.y;var Uo=pe.hasOwnProperty("x"),Mo=pe.hasOwnProperty("y"),oo=k,Vs=N,Ta=window;if(zt){var cl=mn(y),ou="clientHeight",Tu="clientWidth";cl===Xe(y)&&Bt(cl=an(y)).position!=="static"&&Ie==="absolute"&&(ou="scrollHeight",Tu="scrollWidth"),(Z===N||(Z===k||Z===R)&&re===F)&&(Vs=V,Do-=(Kn&&cl===Ta&&Ta.visualViewport?Ta.visualViewport.height:cl[ou])-E.height,Do*=Je?1:-1),(Z===k||(Z===N||Z===V)&&re===F)&&(oo=R,si-=(Kn&&cl===Ta&&Ta.visualViewport?Ta.visualViewport.width:cl[Tu])-E.width,si*=Je?1:-1)}var Cu,Hc=Object.assign({position:Ie},zt&&To),bu=ln===!0?function(Dc,Sn){var rr=Dc.y,Dr=Sn.devicePixelRatio||1;return{x:Ce(Dc.x*Dr)/Dr||0,y:Ce(rr*Dr)/Dr||0}}({x:si,y:Do},Xe(y)):{x:si,y:Do};return si=bu.x,Do=bu.y,Object.assign({},Hc,Je?((Cu={})[Vs]=Mo?"0":"",Cu[oo]=Uo?"0":"",Cu.transform=(Ta.devicePixelRatio||1)>1?"translate3d("+si+"px, "+Do+"px, 0)":"translate("+si+"px, "+Do+"px)",Cu):((d={})[Vs]=Mo?Do+"px":"",d[oo]=Uo?si+"px":"",d.transform="",d))}var De={passive:!0},Oo={left:"right",right:"left",bottom:"top",top:"bottom"};function $i(Le){return Le.replace(/left|right|bottom|top/g,function(d){return Oo[d]})}var co={start:"end",end:"start"};function Vr(Le){return Le.replace(/start|end/g,function(d){return co[d]})}function Ro(Le){var d=Xe(Le);return{scrollLeft:d.pageXOffset,scrollTop:d.pageYOffset}}function Tn(Le){return Xt(an(Le)).left+Ro(Le).scrollLeft}function nt(Le){var d=Bt(Le);return/auto|scroll|overlay|hidden/.test(d.overflow+d.overflowY+d.overflowX)}function Ct(Le){return 0>["html","body","#document"].indexOf(it(Le))?Me(Le)&&nt(Le)?Le:Ct(Tt(Le)):Le.ownerDocument.body}function Ht(Le,d){var y;d===void 0&&(d=[]);var E=Ct(Le),Z=E===((y=Le.ownerDocument)==null?void 0:y.body),re=Xe(E),pe=Z?[re].concat(re.visualViewport||[],nt(E)?E:[]):E,Ie=d.concat(pe);return Z?Ie:Ie.concat(Ht(Tt(pe)))}function hn(Le){return Object.assign({},Le,{left:Le.x,top:Le.y,right:Le.x+Le.width,bottom:Le.y+Le.height})}function En(Le,d,y){return d===he?hn(function(E,Z){var re=Xe(E),pe=an(E),Ie=re.visualViewport,Je=pe.clientWidth,zt=pe.clientHeight,ln=0,Kn=0;if(Ie){Je=Ie.width,zt=Ie.height;var pr=Ne();(pr||!pr&&Z==="fixed")&&(ln=Ie.offsetLeft,Kn=Ie.offsetTop)}return{width:Je,height:zt,x:ln+Tn(E),y:Kn}}(Le,y)):ft(d)?function(E,Z){var re=Xt(E,!1,Z==="fixed");return re.top=re.top+E.clientTop,re.left=re.left+E.clientLeft,re.bottom=re.top+E.clientHeight,re.right=re.left+E.clientWidth,re.width=E.clientWidth,re.height=E.clientHeight,re.x=re.left,re.y=re.top,re}(d,y):hn(function(E){var Z,re=an(E),pe=Ro(E),Ie=(Z=E.ownerDocument)==null?void 0:Z.body,Je=Re(re.scrollWidth,re.clientWidth,Ie?Ie.scrollWidth:0,Ie?Ie.clientWidth:0),zt=Re(re.scrollHeight,re.clientHeight,Ie?Ie.scrollHeight:0,Ie?Ie.clientHeight:0),ln=-pe.scrollLeft+Tn(E),Kn=-pe.scrollTop;return Bt(Ie||re).direction==="rtl"&&(ln+=Re(re.clientWidth,Ie?Ie.clientWidth:0)-Je),{width:Je,height:zt,x:ln,y:Kn}}(an(Le)))}function rn(Le,d,y,E){var Z=d==="clippingParents"?function(Ie){var Je=Ht(Tt(Ie)),zt=["absolute","fixed"].indexOf(Bt(Ie).position)>=0&&Me(Ie)?mn(Ie):Ie;return ft(zt)?Je.filter(function(ln){return ft(ln)&<(ln,zt)&&it(ln)!=="body"}):[]}(Le):[].concat(d),re=[].concat(Z,[y]),pe=re.reduce(function(Ie,Je){var zt=En(Le,Je,E);return Ie.top=Re(zt.top,Ie.top),Ie.right=je(zt.right,Ie.right),Ie.bottom=je(zt.bottom,Ie.bottom),Ie.left=Re(zt.left,Ie.left),Ie},En(Le,re[0],E));return pe.width=pe.right-pe.left,pe.height=pe.bottom-pe.top,pe.x=pe.left,pe.y=pe.top,pe}function Jt(Le){var d,y=Le.reference,E=Le.element,Z=Le.placement,re=Z?Pe(Z):null,pe=Z?Mr(Z):null,Ie=y.x+y.width/2-E.width/2,Je=y.y+y.height/2-E.height/2;switch(re){case N:d={x:Ie,y:y.y-E.height};break;case V:d={x:Ie,y:y.y+y.height};break;case R:d={x:y.x+y.width,y:Je};break;case k:d={x:y.x-E.width,y:Je};break;default:d={x:y.x,y:y.y}}var zt=re?zn(re):null;if(zt!=null){var ln=zt==="y"?"height":"width";switch(pe){case T:d[zt]=d[zt]-(y[ln]/2-E[ln]/2);break;case F:d[zt]=d[zt]+(y[ln]/2-E[ln]/2)}}return d}function Mt(Le,d){d===void 0&&(d={});var y=d.placement,E=y===void 0?Le.placement:y,Z=d.strategy,re=Z===void 0?Le.strategy:Z,pe=d.boundary,Ie=pe===void 0?K:pe,Je=d.rootBoundary,zt=Je===void 0?he:Je,ln=d.elementContext,Kn=ln===void 0?fe:ln,pr=d.altBoundary,si=pr!==void 0&&pr,yi=d.padding,Do=yi===void 0?0:yi,Co=Ui(typeof Do!="number"?Do:go(Do,p)),Uo=Le.rects.popper,Mo=Le.elements[si?Kn===fe?be:fe:Kn],oo=rn(ft(Mo)?Mo:Mo.contextElement||an(Le.elements.popper),Ie,zt,re),Vs=Xt(Le.elements.reference),Ta=Jt({reference:Vs,element:Uo,strategy:"absolute",placement:E}),cl=hn(Object.assign({},Uo,Ta)),ou=Kn===fe?cl:Vs,Tu={top:oo.top-ou.top+Co.top,bottom:ou.bottom-oo.bottom+Co.bottom,left:oo.left-ou.left+Co.left,right:ou.right-oo.right+Co.right},Cu=Le.modifiersData.offset;if(Kn===fe&&Cu){var Hc=Cu[E];Object.keys(Tu).forEach(function(bu){var Dc=0>[R,V].indexOf(bu)?-1:1;Tu[bu]+=Hc[0>[N,V].indexOf(bu)?"x":"y"]*Dc})}return Tu}function Qt(Le,d){d===void 0&&(d={});var y=d.boundary,E=d.rootBoundary,Z=d.padding,re=d.flipVariations,pe=d.allowedAutoPlacements,Ie=pe===void 0?xe:pe,Je=Mr(d.placement),zt=Je?re?Ae:Ae.filter(function(pr){return Mr(pr)===Je}):p,ln=zt.filter(function(pr){return Ie.indexOf(pr)>=0});ln.length===0&&(ln=zt);var Kn=ln.reduce(function(pr,si){return pr[si]=Mt(Le,{placement:si,boundary:y,rootBoundary:E,padding:Z})[Pe(si)],pr},{});return Object.keys(Kn).sort(function(pr,si){return Kn[pr]-Kn[si]})}var Dn={name:"flip",enabled:!0,phase:"main",fn:function(Le){var d=Le.state,y=Le.options,E=Le.name;if(!d.modifiersData[E]._skip){for(var Z=y.mainAxis,re=Z===void 0||Z,pe=y.altAxis,Ie=pe===void 0||pe,Je=y.fallbackPlacements,zt=y.padding,ln=y.boundary,Kn=y.rootBoundary,pr=y.altBoundary,si=y.flipVariations,yi=si===void 0||si,Do=y.allowedAutoPlacements,Co=d.options.placement,Uo=Pe(Co),Mo=Je||(Uo===Co||!yi?[$i(Co)]:function(nl){if(Pe(nl)===S)return[];var tu=$i(nl);return[Vr(nl),tu,Vr(tu)]}(Co)),oo=[Co].concat(Mo).reduce(function(nl,tu){return nl.concat(Pe(tu)===S?Qt(d,{placement:tu,boundary:ln,rootBoundary:Kn,padding:zt,flipVariations:yi,allowedAutoPlacements:Do}):tu)},[]),Vs=d.rects.reference,Ta=d.rects.popper,cl=new Map,ou=!0,Tu=oo[0],Cu=0;oo.length>Cu;Cu++){var Hc=oo[Cu],bu=Pe(Hc),Dc=Mr(Hc)===T,Sn=[N,V].indexOf(bu)>=0,rr=Sn?"width":"height",Dr=Mt(d,{placement:Hc,boundary:ln,rootBoundary:Kn,altBoundary:pr,padding:zt}),ni=Sn?Dc?R:k:Dc?V:N;Vs[rr]>Ta[rr]&&(ni=$i(ni));var so=$i(ni),Ws=[];if(re&&Ws.push(0>=Dr[bu]),Ie&&Ws.push(0>=Dr[ni],0>=Dr[so]),Ws.every(function(nl){return nl})){Tu=Hc,ou=!1;break}cl.set(Hc,Ws)}if(ou)for(var La=function(nl){var tu=oo.find(function(Ds){var xc=cl.get(Ds);if(xc)return xc.slice(0,nl).every(function(Gh){return Gh})});if(tu)return Tu=tu,"break"},Is=yi?3:1;Is>0&&La(Is)!=="break";Is--);d.placement!==Tu&&(d.modifiersData[E]._skip=!0,d.placement=Tu,d.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function sn(Le,d,y){return y===void 0&&(y={x:0,y:0}),{top:Le.top-d.height-y.y,right:Le.right-d.width+y.x,bottom:Le.bottom-d.height+y.y,left:Le.left-d.width-y.x}}function wr(Le){return[N,R,V,k].some(function(d){return Le[d]>=0})}var jr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(Le){var d=Le.state,y=Le.name,E=Le.options.offset,Z=E===void 0?[0,0]:E,re=xe.reduce(function(Je,zt){return Je[zt]=function(ln,Kn,pr){var si=Pe(ln),yi=0>[k,N].indexOf(si)?1:-1,Do=typeof pr=="function"?pr(Object.assign({},Kn,{placement:ln})):pr,Co=Do[0],Uo=Do[1];return Co=Co||0,Uo=(Uo||0)*yi,0>[k,R].indexOf(si)?{x:Co,y:Uo}:{x:Uo,y:Co}}(zt,d.rects,Z),Je},{}),pe=re[d.placement],Ie=pe.y;d.modifiersData.popperOffsets!=null&&(d.modifiersData.popperOffsets.x+=pe.x,d.modifiersData.popperOffsets.y+=Ie),d.modifiersData[y]=re}},xi={name:"preventOverflow",enabled:!0,phase:"main",fn:function(Le){var d=Le.state,y=Le.options,E=Le.name,Z=y.mainAxis,re=Z===void 0||Z,pe=y.altAxis,Ie=pe!==void 0&&pe,Je=y.tether,zt=Je===void 0||Je,ln=y.tetherOffset,Kn=ln===void 0?0:ln,pr=Mt(d,{boundary:y.boundary,rootBoundary:y.rootBoundary,padding:y.padding,altBoundary:y.altBoundary}),si=Pe(d.placement),yi=Mr(d.placement),Do=!yi,Co=zn(si),Uo=Co==="x"?"y":"x",Mo=d.modifiersData.popperOffsets,oo=d.rects.reference,Vs=d.rects.popper,Ta=typeof Kn=="function"?Kn(Object.assign({},d.rects,{placement:d.placement})):Kn,cl=typeof Ta=="number"?{mainAxis:Ta,altAxis:Ta}:Object.assign({mainAxis:0,altAxis:0},Ta),ou=d.modifiersData.offset?d.modifiersData.offset[d.placement]:null,Tu={x:0,y:0};if(Mo){if(re){var Cu,Hc=Co==="y"?N:k,bu=Co==="y"?V:R,Dc=Co==="y"?"height":"width",Sn=Mo[Co],rr=Sn+pr[Hc],Dr=Sn-pr[bu],ni=zt?-Vs[Dc]/2:0,so=yi===T?oo[Dc]:Vs[Dc],Ws=yi===T?-Vs[Dc]:-oo[Dc],La=d.elements.arrow,Is=zt&&La?Ft(La):{width:0,height:0},nl=d.modifiersData["arrow#persistent"]?d.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},tu=nl[Hc],Ds=nl[bu],xc=Kr(0,oo[Dc],Is[Dc]),Gh=Do?oo[Dc]/2-ni-xc-tu-cl.mainAxis:so-xc-tu-cl.mainAxis,Ph=Do?-oo[Dc]/2+ni+xc+Ds+cl.mainAxis:Ws+xc+Ds+cl.mainAxis,hh=d.elements.arrow&&mn(d.elements.arrow),Kh=(Cu=ou==null?void 0:ou[Co])!=null?Cu:0,tp=Sn+Ph-Kh,lp=Kr(zt?je(rr,Sn+Gh-Kh-(hh?Co==="y"?hh.clientTop||0:hh.clientLeft||0:0)):rr,Sn,zt?Re(Dr,tp):Dr);Mo[Co]=lp,Tu[Co]=lp-Sn}if(Ie){var Td,jd=Mo[Uo],es=Uo==="y"?"height":"width",Pl=jd+pr[Co==="x"?N:k],qd=jd-pr[Co==="x"?V:R],dd=[N,k].indexOf(si)!==-1,mf=(Td=ou==null?void 0:ou[Uo])!=null?Td:0,rg=dd?Pl:jd-oo[es]-Vs[es]-mf+cl.altAxis,cf=dd?jd+oo[es]+Vs[es]-mf-cl.altAxis:qd,Ql=zt&&dd?function(_h,Yd,Rd){var H=Kr(_h,Yd,Rd);return H>Rd?Rd:H}(rg,jd,cf):Kr(zt?rg:Pl,jd,zt?cf:qd);Mo[Uo]=Ql,Tu[Uo]=Ql-jd}d.modifiersData[E]=Tu}},requiresIfExists:["offset"]};function Pr(Le,d,y){y===void 0&&(y=!1);var E,Z,re=Me(d),pe=Me(d)&&function(Kn){var pr=Kn.getBoundingClientRect(),si=Ce(pr.width)/Kn.offsetWidth||1,yi=Ce(pr.height)/Kn.offsetHeight||1;return si!==1||yi!==1}(d),Ie=an(d),Je=Xt(Le,pe,y),zt={scrollLeft:0,scrollTop:0},ln={x:0,y:0};return(re||!re&&!y)&&((it(d)!=="body"||nt(Ie))&&(zt=(E=d)!==Xe(E)&&Me(E)?{scrollLeft:(Z=E).scrollLeft,scrollTop:Z.scrollTop}:Ro(E)),Me(d)?((ln=Xt(d,!0)).x+=d.clientLeft,ln.y+=d.clientTop):Ie&&(ln.x=Tn(Ie))),{x:Je.left+zt.scrollLeft-ln.x,y:Je.top+zt.scrollTop-ln.y,width:Je.width,height:Je.height}}function Hi(Le){var d=new Map,y=new Set,E=[];function Z(re){y.add(re.name),[].concat(re.requires||[],re.requiresIfExists||[]).forEach(function(pe){if(!y.has(pe)){var Ie=d.get(pe);Ie&&Z(Ie)}}),E.push(re)}return Le.forEach(function(re){d.set(re.name,re)}),Le.forEach(function(re){y.has(re.name)||Z(re)}),E}var Io={placement:"bottom",modifiers:[],strategy:"absolute"};function On(){for(var Le=arguments.length,d=Array(Le),y=0;Le>y;y++)d[y]=arguments[y];return!d.some(function(E){return!(E&&typeof E.getBoundingClientRect=="function")})}function zr(Le){Le===void 0&&(Le={});var d=Le.defaultModifiers,y=d===void 0?[]:d,E=Le.defaultOptions,Z=E===void 0?Io:E;return function(re,pe,Ie){Ie===void 0&&(Ie=Z);var Je,zt,ln={placement:"bottom",orderedModifiers:[],options:Object.assign({},Io,Z),modifiersData:{},elements:{reference:re,popper:pe},attributes:{},styles:{}},Kn=[],pr=!1,si={state:ln,setOptions:function(Do){var Co=typeof Do=="function"?Do(ln.options):Do;yi(),ln.options=Object.assign({},Z,ln.options,Co),ln.scrollParents={reference:ft(re)?Ht(re):re.contextElement?Ht(re.contextElement):[],popper:Ht(pe)};var Uo,Mo,oo=function(Vs){var Ta=Hi(Vs);return Se.reduce(function(cl,ou){return cl.concat(Ta.filter(function(Tu){return Tu.phase===ou}))},[])}((Uo=[].concat(y,ln.options.modifiers),Mo=Uo.reduce(function(Vs,Ta){var cl=Vs[Ta.name];return Vs[Ta.name]=cl?Object.assign({},cl,Ta,{options:Object.assign({},cl.options,Ta.options),data:Object.assign({},cl.data,Ta.data)}):Ta,Vs},{}),Object.keys(Mo).map(function(Vs){return Mo[Vs]})));return ln.orderedModifiers=oo.filter(function(Vs){return Vs.enabled}),ln.orderedModifiers.forEach(function(Vs){var Ta=Vs.options,cl=Vs.effect;if(typeof cl=="function"){var ou=cl({state:ln,name:Vs.name,instance:si,options:Ta===void 0?{}:Ta});Kn.push(ou||function(){})}}),si.update()},forceUpdate:function(){if(!pr){var Do=ln.elements,Co=Do.reference,Uo=Do.popper;if(On(Co,Uo)){ln.rects={reference:Pr(Co,mn(Uo),ln.options.strategy==="fixed"),popper:Ft(Uo)},ln.reset=!1,ln.placement=ln.options.placement,ln.orderedModifiers.forEach(function(cl){return ln.modifiersData[cl.name]=Object.assign({},cl.data)});for(var Mo=0;ln.orderedModifiers.length>Mo;Mo++)if(ln.reset!==!0){var oo=ln.orderedModifiers[Mo],Vs=oo.fn,Ta=oo.options;typeof Vs=="function"&&(ln=Vs({state:ln,options:Ta===void 0?{}:Ta,name:oo.name,instance:si})||ln)}else ln.reset=!1,Mo=-1}}},update:(Je=function(){return new Promise(function(Do){si.forceUpdate(),Do(ln)})},function(){return zt||(zt=new Promise(function(Do){Promise.resolve().then(function(){zt=void 0,Do(Je())})})),zt}),destroy:function(){yi(),pr=!0}};if(!On(re,pe))return si;function yi(){Kn.forEach(function(Do){return Do()}),Kn=[]}return si.setOptions(Ie).then(function(Do){!pr&&Ie.onFirstUpdate&&Ie.onFirstUpdate(Do)}),si}}var qr=zr({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(Le){var d=Le.state,y=Le.instance,E=Le.options,Z=E.scroll,re=Z===void 0||Z,pe=E.resize,Ie=pe===void 0||pe,Je=Xe(d.elements.popper),zt=[].concat(d.scrollParents.reference,d.scrollParents.popper);return re&&zt.forEach(function(ln){ln.addEventListener("scroll",y.update,De)}),Ie&&Je.addEventListener("resize",y.update,De),function(){re&&zt.forEach(function(ln){ln.removeEventListener("scroll",y.update,De)}),Ie&&Je.removeEventListener("resize",y.update,De)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(Le){var d=Le.state;d.modifiersData[Le.name]=Jt({reference:d.rects.reference,element:d.rects.popper,strategy:"absolute",placement:d.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(Le){var d=Le.state,y=Le.options,E=y.gpuAcceleration,Z=E===void 0||E,re=y.adaptive,pe=re===void 0||re,Ie=y.roundOffsets,Je=Ie===void 0||Ie,zt={placement:Pe(d.placement),variation:Mr(d.placement),popper:d.elements.popper,popperRect:d.rects.popper,gpuAcceleration:Z,isFixed:d.options.strategy==="fixed"};d.modifiersData.popperOffsets!=null&&(d.styles.popper=Object.assign({},d.styles.popper,ms(Object.assign({},zt,{offsets:d.modifiersData.popperOffsets,position:d.options.strategy,adaptive:pe,roundOffsets:Je})))),d.modifiersData.arrow!=null&&(d.styles.arrow=Object.assign({},d.styles.arrow,ms(Object.assign({},zt,{offsets:d.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Je})))),d.attributes.popper=Object.assign({},d.attributes.popper,{"data-popper-placement":d.placement})},data:{}},ze,jr,Dn,xi,gi,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(Le){var d=Le.state,y=Le.name,E=d.rects.reference,Z=d.rects.popper,re=d.modifiersData.preventOverflow,pe=Mt(d,{elementContext:"reference"}),Ie=Mt(d,{altBoundary:!0}),Je=sn(pe,E),zt=sn(Ie,Z,re),ln=wr(Je),Kn=wr(zt);d.modifiersData[y]={referenceClippingOffsets:Je,popperEscapeOffsets:zt,isReferenceHidden:ln,hasPopperEscaped:Kn},d.attributes.popper=Object.assign({},d.attributes.popper,{"data-popper-reference-hidden":ln,"data-popper-escaped":Kn})}}]}),Wi="tippy-content",ir="tippy-backdrop",Jn="tippy-arrow",$t="tippy-svg-arrow",Gt={passive:!0,capture:!0},wn=function(){return document.body};function Zn(Le,d,y){if(Array.isArray(Le)){var E=Le[d];return E==null?Array.isArray(y)?y[d]:y:E}return Le}function _r(Le,d){var y={}.toString.call(Le);return y.indexOf("[object")===0&&y.indexOf(d+"]")>-1}function qn(Le,d){return typeof Le=="function"?Le.apply(void 0,d):Le}function $n(Le,d){return d===0?Le:function(E){clearTimeout(y),y=setTimeout(function(){Le(E)},d)};var y}function jt(Le){return[].concat(Le)}function In(Le,d){Le.indexOf(d)===-1&&Le.push(d)}function vr(Le){return[].slice.call(Le)}function Ur(Le){return Object.keys(Le).reduce(function(d,y){return Le[y]!==void 0&&(d[y]=Le[y]),d},{})}function Ao(){return document.createElement("div")}function Yt(Le){return["Element","Fragment"].some(function(d){return _r(Le,d)})}function xn(Le){return _r(Le,"MouseEvent")}function fr(Le){return Yt(Le)?[Le]:function(d){return _r(d,"NodeList")}(Le)?vr(Le):Array.isArray(Le)?Le:vr(document.querySelectorAll(Le))}function Nr(Le,d){Le.forEach(function(y){y&&(y.style.transitionDuration=d+"ms")})}function bi(Le,d){Le.forEach(function(y){y&&y.setAttribute("data-state",d)})}function Ei(Le){var d,y=jt(Le)[0];return y!=null&&(d=y.ownerDocument)!=null&&d.body?y.ownerDocument:document}function Yi(Le,d,y){var E=d+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(Z){Le[E](Z,y)})}function di(Le,d){for(var y=d;y;){var E;if(Le.contains(y))return!0;y=y.getRootNode==null||(E=y.getRootNode())==null?void 0:E.host}return!1}var Wr={isTouch:!1},Ni=0;function kr(){Wr.isTouch||(Wr.isTouch=!0,window.performance&&document.addEventListener("mousemove",Xr))}function Xr(){var Le=performance.now();20>Le-Ni&&(Wr.isTouch=!1,document.removeEventListener("mousemove",Xr)),Ni=Le}function yo(){var Le,d=document.activeElement;(Le=d)&&Le._tippy&&Le._tippy.reference===Le&&d.blur&&!d._tippy.state.isVisible&&d.blur()}var ls=typeof window!="undefined"&&typeof document!="undefined"&&!!window.msCrypto,Sr=Object.assign({appendTo:wn,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}),hs=Object.keys(Sr);function ta(Le){var d=(Le.plugins||[]).reduce(function(y,E){var Z,re=E.name;return re&&(y[re]=Le[re]!==void 0?Le[re]:(Z=Sr[re])!=null?Z:E.defaultValue),y},{});return Object.assign({},Le,d)}function fi(Le,d){var y=Object.assign({},d,{content:qn(d.content,[Le])},d.ignoreAttributes?{}:function(E,Z){return(Z?Object.keys(ta(Object.assign({},Sr,{plugins:Z}))):hs).reduce(function(re,pe){var Ie=(E.getAttribute("data-tippy-"+pe)||"").trim();if(!Ie)return re;if(pe==="content")re[pe]=Ie;else try{re[pe]=JSON.parse(Ie)}catch(Je){re[pe]=Ie}return re},{})}(Le,d.plugins));return y.aria=Object.assign({},Sr.aria,y.aria),y.aria={expanded:y.aria.expanded==="auto"?d.interactive:y.aria.expanded,content:y.aria.content==="auto"?d.interactive?null:"describedby":y.aria.content},y}var Po=function(){return"innerHTML"};function mo(Le,d){Le[Po()]=d}function or(Le){var d=Ao();return Le===!0?d.className=Jn:(d.className=$t,Yt(Le)?d.appendChild(Le):mo(d,Le)),d}function Oi(Le,d){Yt(d.content)?(mo(Le,""),Le.appendChild(d.content)):typeof d.content!="function"&&(d.allowHTML?mo(Le,d.content):Le.textContent=d.content)}function Wa(Le){var d=Le.firstElementChild,y=vr(d.children);return{box:d,content:y.find(function(E){return E.classList.contains(Wi)}),arrow:y.find(function(E){return E.classList.contains(Jn)||E.classList.contains($t)}),backdrop:y.find(function(E){return E.classList.contains(ir)})}}function Sa(Le){var d=Ao(),y=Ao();y.className="tippy-box",y.setAttribute("data-state","hidden"),y.setAttribute("tabindex","-1");var E=Ao();function Z(re,pe){var Ie=Wa(d),Je=Ie.box,zt=Ie.content,ln=Ie.arrow;pe.theme?Je.setAttribute("data-theme",pe.theme):Je.removeAttribute("data-theme"),typeof pe.animation=="string"?Je.setAttribute("data-animation",pe.animation):Je.removeAttribute("data-animation"),pe.inertia?Je.setAttribute("data-inertia",""):Je.removeAttribute("data-inertia"),Je.style.maxWidth=typeof pe.maxWidth=="number"?pe.maxWidth+"px":pe.maxWidth,pe.role?Je.setAttribute("role",pe.role):Je.removeAttribute("role"),re.content===pe.content&&re.allowHTML===pe.allowHTML||Oi(zt,Le.props),pe.arrow?ln?re.arrow!==pe.arrow&&(Je.removeChild(ln),Je.appendChild(or(pe.arrow))):Je.appendChild(or(pe.arrow)):ln&&Je.removeChild(ln)}return E.className=Wi,E.setAttribute("data-state","hidden"),Oi(E,Le.props),d.appendChild(y),y.appendChild(E),Z(Le.props,Le.props),{popper:d,onUpdate:Z}}Sa.$$tippy=!0;var xa=1,Ml=[],wo=[];function _l(Le,d){var y,E,Z,re,pe,Ie,Je,zt,ln=fi(Le,Object.assign({},Sr,ta(Ur(d)))),Kn=!1,pr=!1,si=!1,yi=!1,Do=[],Co=$n(Td,ln.interactiveDebounce),Uo=xa++,Mo=(zt=ln.plugins).filter(function(Ql,_h){return zt.indexOf(Ql)===_h}),oo={id:Uo,reference:Le,popper:Ao(),popperInstance:null,props:ln,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:Mo,clearDelayTimeouts:function(){clearTimeout(y),clearTimeout(E),cancelAnimationFrame(Z)},setProps:function(Ql){if(!oo.state.isDestroyed){so("onBeforeUpdate",[oo,Ql]),tp();var _h=oo.props,Yd=fi(Le,Object.assign({},_h,Ur(Ql),{ignoreAttributes:!0}));oo.props=Yd,Kh(),_h.interactiveDebounce!==Yd.interactiveDebounce&&(Is(),Co=$n(Td,Yd.interactiveDebounce)),_h.triggerTarget&&!Yd.triggerTarget?jt(_h.triggerTarget).forEach(function(Rd){Rd.removeAttribute("aria-expanded")}):Yd.triggerTarget&&Le.removeAttribute("aria-expanded"),La(),ni(),cl&&cl(_h,Yd),oo.popperInstance&&(qd(),mf().forEach(function(Rd){requestAnimationFrame(Rd._tippy.popperInstance.forceUpdate)})),so("onAfterUpdate",[oo,Ql])}},setContent:function(Ql){oo.setProps({content:Ql})},show:function(){var Ql=oo.state.isVisible,_h=oo.state.isDestroyed,Yd=!oo.state.isEnabled,Rd=Wr.isTouch&&!oo.props.touch,H=Zn(oo.props.duration,0,Sr.duration);if(!(Ql||_h||Yd||Rd)&&!Dc().hasAttribute("disabled")&&(so("onShow",[oo],!1),oo.props.onShow(oo)!==!1)){if(oo.state.isVisible=!0,bu()&&(Ta.style.visibility="visible"),ni(),xc(),oo.state.isMounted||(Ta.style.transition="none"),bu()){var P=rr();Nr([P.box,P.content],0)}Ie=function(){var ee;if(oo.state.isVisible&&!yi){if(yi=!0,Ta.style.transition=oo.props.moveTransition,bu()&&oo.props.animation){var ye=rr(),Ue=ye.box,gt=ye.content;Nr([Ue,gt],H),bi([Ue,gt],"visible")}Ws(),La(),In(wo,oo),(ee=oo.popperInstance)==null||ee.forceUpdate(),so("onMount",[oo]),oo.props.animation&&bu()&&function(_t,Ut){Ph(_t,Ut)}(H,function(){oo.state.isShown=!0,so("onShown",[oo])})}},function(){var ee,ye=oo.props.appendTo,Ue=Dc();ee=oo.props.interactive&&ye===wn||ye==="parent"?Ue.parentNode:qn(ye,[Ue]),ee.contains(Ta)||ee.appendChild(Ta),oo.state.isMounted=!0,qd()}()}},hide:function(){var Ql=!oo.state.isVisible,_h=oo.state.isDestroyed,Yd=!oo.state.isEnabled,Rd=Zn(oo.props.duration,1,Sr.duration);if(!(Ql||_h||Yd)&&(so("onHide",[oo],!1),oo.props.onHide(oo)!==!1)){if(oo.state.isVisible=!1,oo.state.isShown=!1,yi=!1,Kn=!1,bu()&&(Ta.style.visibility="hidden"),Is(),Gh(),ni(!0),bu()){var H=rr(),P=H.box,ee=H.content;oo.props.animation&&(Nr([P,ee],Rd),bi([P,ee],"hidden"))}Ws(),La(),oo.props.animation?bu()&&function(ye,Ue){Ph(ye,function(){!oo.state.isVisible&&Ta.parentNode&&Ta.parentNode.contains(Ta)&&Ue()})}(Rd,oo.unmount):oo.unmount()}},hideWithInteractivity:function(Ql){Sn().addEventListener("mousemove",Co),In(Ml,Co),Co(Ql)},enable:function(){oo.state.isEnabled=!0},disable:function(){oo.hide(),oo.state.isEnabled=!1},unmount:function(){oo.state.isVisible&&oo.hide(),oo.state.isMounted&&(dd(),mf().forEach(function(Ql){Ql._tippy.unmount()}),Ta.parentNode&&Ta.parentNode.removeChild(Ta),wo=wo.filter(function(Ql){return Ql!==oo}),oo.state.isMounted=!1,so("onHidden",[oo]))},destroy:function(){oo.state.isDestroyed||(oo.clearDelayTimeouts(),oo.unmount(),tp(),delete Le._tippy,oo.state.isDestroyed=!0,so("onDestroy",[oo]))}};if(!ln.render)return oo;var Vs=ln.render(oo),Ta=Vs.popper,cl=Vs.onUpdate;Ta.setAttribute("data-tippy-root",""),Ta.id="tippy-"+oo.id,oo.popper=Ta,Le._tippy=oo,Ta._tippy=oo;var ou=Mo.map(function(Ql){return Ql.fn(oo)}),Tu=Le.hasAttribute("aria-expanded");return Kh(),La(),ni(),so("onCreate",[oo]),ln.showOnCreate&&rg(),Ta.addEventListener("mouseenter",function(){oo.props.interactive&&oo.state.isVisible&&oo.clearDelayTimeouts()}),Ta.addEventListener("mouseleave",function(){oo.props.interactive&&oo.props.trigger.indexOf("mouseenter")>=0&&Sn().addEventListener("mousemove",Co)}),oo;function Cu(){var Ql=oo.props.touch;return Array.isArray(Ql)?Ql:[Ql,0]}function Hc(){return Cu()[0]==="hold"}function bu(){var Ql;return!((Ql=oo.props.render)==null||!Ql.$$tippy)}function Dc(){return Je||Le}function Sn(){var Ql=Dc().parentNode;return Ql?Ei(Ql):document}function rr(){return Wa(Ta)}function Dr(Ql){return oo.state.isMounted&&!oo.state.isVisible||Wr.isTouch||re&&re.type==="focus"?0:Zn(oo.props.delay,Ql?0:1,Sr.delay)}function ni(Ql){Ql===void 0&&(Ql=!1),Ta.style.pointerEvents=oo.props.interactive&&!Ql?"":"none",Ta.style.zIndex=""+oo.props.zIndex}function so(Ql,_h,Yd){var Rd;Yd===void 0&&(Yd=!0),ou.forEach(function(H){H[Ql]&&H[Ql].apply(H,_h)}),Yd&&(Rd=oo.props)[Ql].apply(Rd,_h)}function Ws(){var Ql=oo.props.aria;if(Ql.content){var _h="aria-"+Ql.content,Yd=Ta.id;jt(oo.props.triggerTarget||Le).forEach(function(Rd){var H=Rd.getAttribute(_h);if(oo.state.isVisible)Rd.setAttribute(_h,H?H+" "+Yd:Yd);else{var P=H&&H.replace(Yd,"").trim();P?Rd.setAttribute(_h,P):Rd.removeAttribute(_h)}})}}function La(){!Tu&&oo.props.aria.expanded&&jt(oo.props.triggerTarget||Le).forEach(function(Ql){oo.props.interactive?Ql.setAttribute("aria-expanded",oo.state.isVisible&&Ql===Dc()?"true":"false"):Ql.removeAttribute("aria-expanded")})}function Is(){Sn().removeEventListener("mousemove",Co),Ml=Ml.filter(function(Ql){return Ql!==Co})}function nl(Ql){if(!Wr.isTouch||!si&&Ql.type!=="mousedown"){var _h=Ql.composedPath&&Ql.composedPath()[0]||Ql.target;if(!oo.props.interactive||!di(Ta,_h)){if(jt(oo.props.triggerTarget||Le).some(function(Yd){return di(Yd,_h)})){if(Wr.isTouch||oo.state.isVisible&&oo.props.trigger.indexOf("click")>=0)return}else so("onClickOutside",[oo,Ql]);oo.props.hideOnClick===!0&&(oo.clearDelayTimeouts(),oo.hide(),pr=!0,setTimeout(function(){pr=!1}),oo.state.isMounted||Gh())}}}function tu(){si=!0}function Ds(){si=!1}function xc(){var Ql=Sn();Ql.addEventListener("mousedown",nl,!0),Ql.addEventListener("touchend",nl,Gt),Ql.addEventListener("touchstart",Ds,Gt),Ql.addEventListener("touchmove",tu,Gt)}function Gh(){var Ql=Sn();Ql.removeEventListener("mousedown",nl,!0),Ql.removeEventListener("touchend",nl,Gt),Ql.removeEventListener("touchstart",Ds,Gt),Ql.removeEventListener("touchmove",tu,Gt)}function Ph(Ql,_h){var Yd=rr().box;function Rd(H){H.target===Yd&&(Yi(Yd,"remove",Rd),_h())}if(Ql===0)return _h();Yi(Yd,"remove",pe),Yi(Yd,"add",Rd),pe=Rd}function hh(Ql,_h,Yd){Yd===void 0&&(Yd=!1),jt(oo.props.triggerTarget||Le).forEach(function(Rd){Rd.addEventListener(Ql,_h,Yd),Do.push({node:Rd,eventType:Ql,handler:_h,options:Yd})})}function Kh(){var Ql;Hc()&&(hh("touchstart",lp,{passive:!0}),hh("touchend",jd,{passive:!0})),(Ql=oo.props.trigger,Ql.split(/\s+/).filter(Boolean)).forEach(function(_h){if(_h!=="manual")switch(hh(_h,lp),_h){case"mouseenter":hh("mouseleave",jd);break;case"focus":hh(ls?"focusout":"blur",es);break;case"focusin":hh("focusout",es)}})}function tp(){Do.forEach(function(Ql){Ql.node.removeEventListener(Ql.eventType,Ql.handler,Ql.options)}),Do=[]}function lp(Ql){var _h,Yd=!1;if(oo.state.isEnabled&&!Pl(Ql)&&!pr){var Rd=((_h=re)==null?void 0:_h.type)==="focus";re=Ql,Je=Ql.currentTarget,La(),!oo.state.isVisible&&xn(Ql)&&Ml.forEach(function(H){return H(Ql)}),Ql.type==="click"&&(0>oo.props.trigger.indexOf("mouseenter")||Kn)&&oo.props.hideOnClick!==!1&&oo.state.isVisible?Yd=!0:rg(Ql),Ql.type==="click"&&(Kn=!Yd),Yd&&!Rd&&cf(Ql)}}function Td(Ql){var _h=Ql.target,Yd=Dc().contains(_h)||Ta.contains(_h);if(Ql.type!=="mousemove"||!Yd){var Rd=mf().concat(Ta).map(function(H){var P,ee=(P=H._tippy.popperInstance)==null?void 0:P.state;return ee?{popperRect:H.getBoundingClientRect(),popperState:ee,props:ln}:null}).filter(Boolean);(function(H,P){var ee=P.clientX,ye=P.clientY;return H.every(function(Ue){var gt=Ue.popperRect,_t=Ue.popperState,Ut=Ue.props.interactiveBorder,bn=_t.placement.split("-")[0],lr=_t.modifiersData.offset;return!lr||gt.top-ye+(bn==="bottom"?lr.top.y:0)>Ut||ye-gt.bottom-(bn==="top"?lr.bottom.y:0)>Ut||gt.left-ee+(bn==="right"?lr.left.x:0)>Ut||ee-gt.right-(bn==="left"?lr.right.x:0)>Ut})})(Rd,Ql)&&(Is(),cf(Ql))}}function jd(Ql){Pl(Ql)||oo.props.trigger.indexOf("click")>=0&&Kn||(oo.props.interactive?oo.hideWithInteractivity(Ql):cf(Ql))}function es(Ql){0>oo.props.trigger.indexOf("focusin")&&Ql.target!==Dc()||oo.props.interactive&&Ql.relatedTarget&&Ta.contains(Ql.relatedTarget)||cf(Ql)}function Pl(Ql){return!!Wr.isTouch&&Hc()!==Ql.type.indexOf("touch")>=0}function qd(){dd();var Ql=oo.props,_h=Ql.popperOptions,Yd=Ql.placement,Rd=Ql.offset,H=Ql.getReferenceClientRect,P=Ql.moveTransition,ee=bu()?Wa(Ta).arrow:null,ye=H?{getBoundingClientRect:H,contextElement:H.contextElement||Dc()}:Le,Ue={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(_t){var Ut=_t.state;if(bu()){var bn=rr().box;["placement","reference-hidden","escaped"].forEach(function(lr){lr==="placement"?bn.setAttribute("data-placement",Ut.placement):Ut.attributes.popper["data-popper-"+lr]?bn.setAttribute("data-"+lr,""):bn.removeAttribute("data-"+lr)}),Ut.attributes.popper={}}}},gt=[{name:"offset",options:{offset:Rd}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!P}},Ue];bu()&&ee&>.push({name:"arrow",options:{element:ee,padding:3}}),gt.push.apply(gt,(_h==null?void 0:_h.modifiers)||[]),oo.popperInstance=qr(ye,Ta,Object.assign({},_h,{placement:Yd,onFirstUpdate:Ie,modifiers:gt}))}function dd(){oo.popperInstance&&(oo.popperInstance.destroy(),oo.popperInstance=null)}function mf(){return vr(Ta.querySelectorAll("[data-tippy-root]"))}function rg(Ql){oo.clearDelayTimeouts(),Ql&&so("onTrigger",[oo,Ql]),xc();var _h=Dr(!0),Yd=Cu(),Rd=Yd[1];Wr.isTouch&&Yd[0]==="hold"&&Rd&&(_h=Rd),_h?y=setTimeout(function(){oo.show()},_h):oo.show()}function cf(Ql){if(oo.clearDelayTimeouts(),so("onUntrigger",[oo,Ql]),oo.state.isVisible){if(0>oo.props.trigger.indexOf("mouseenter")||0>oo.props.trigger.indexOf("click")||0>["mouseleave","mousemove"].indexOf(Ql.type)||!Kn){var _h=Dr(!1);_h?E=setTimeout(function(){oo.state.isVisible&&oo.hide()},_h):Z=requestAnimationFrame(function(){oo.hide()})}}else Gh()}}function El(Le,d){d===void 0&&(d={});var y=Sr.plugins.concat(d.plugins||[]);document.addEventListener("touchstart",kr,Gt),window.addEventListener("blur",yo);var E=Object.assign({},d,{plugins:y}),Z=fr(Le).reduce(function(re,pe){var Ie=pe&&_l(pe,E);return Ie&&re.push(Ie),re},[]);return Yt(Le)?Z[0]:Z}El.defaultProps=Sr,El.setDefaultProps=function(Le){Object.keys(Le).forEach(function(d){Sr[d]=Le[d]})},El.currentInput=Wr,Object.assign({},ze,{effect:function(Le){var d=Le.state,y={popper:{position:d.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(d.elements.popper.style,y.popper),d.styles=y,d.elements.arrow&&Object.assign(d.elements.arrow.style,y.arrow)}});var Ai={clientX:0,clientY:0},to=[];function An(Le){Ai={clientX:Le.clientX,clientY:Le.clientY}}var ri={name:"followCursor",defaultValue:!1,fn:function(Le){var d=Le.reference,y=Ei(Le.props.triggerTarget||d),E=!1,Z=!1,re=!0,pe=Le.props;function Ie(){return Le.props.followCursor==="initial"&&Le.state.isVisible}function Je(){y.addEventListener("mousemove",Kn)}function zt(){y.removeEventListener("mousemove",Kn)}function ln(){E=!0,Le.setProps({getReferenceClientRect:null}),E=!1}function Kn(yi){var Do=!yi.target||d.contains(yi.target),Co=Le.props.followCursor,Uo=yi.clientX,Mo=yi.clientY,oo=d.getBoundingClientRect(),Vs=Uo-oo.left,Ta=Mo-oo.top;!Do&&Le.props.interactive||Le.setProps({getReferenceClientRect:function(){var cl=d.getBoundingClientRect(),ou=Uo,Tu=Mo;Co==="initial"&&(ou=cl.left+Vs,Tu=cl.top+Ta);var Cu=Co==="horizontal"?cl.top:Tu,Hc=Co==="vertical"?cl.right:ou,bu=Co==="horizontal"?cl.bottom:Tu,Dc=Co==="vertical"?cl.left:ou;return{width:Hc-Dc,height:bu-Cu,top:Cu,right:Hc,bottom:bu,left:Dc}}})}function pr(){Le.props.followCursor&&(to.push({instance:Le,doc:y}),function(yi){yi.addEventListener("mousemove",An)}(y))}function si(){(to=to.filter(function(yi){return yi.instance!==Le})).filter(function(yi){return yi.doc===y}).length===0&&function(yi){yi.removeEventListener("mousemove",An)}(y)}return{onCreate:pr,onDestroy:si,onBeforeUpdate:function(){pe=Le.props},onAfterUpdate:function(yi,Do){var Co=Do.followCursor;E||Co!==void 0&&pe.followCursor!==Co&&(si(),Co?(pr(),!Le.state.isMounted||Z||Ie()||Je()):(zt(),ln()))},onMount:function(){Le.props.followCursor&&!Z&&(re&&(Kn(Ai),re=!1),Ie()||Je())},onTrigger:function(yi,Do){xn(Do)&&(Ai={clientX:Do.clientX,clientY:Do.clientY}),Z=Do.type==="focus"},onHidden:function(){Le.props.followCursor&&(ln(),zt(),re=!0)}}}};El.setDefaultProps({render:Sa});var ao,Mi,_s,Hs,Hr,Bi,fn={showTotalDistance:!1,showDashDistance:!0,showWhen:["normal","active"],format:function(Le){return 1e3>Le?+Le.toFixed(2)+"m":+(Le/1e3).toFixed(2)+"km"}},Ln={showWhen:["normal","active"],format:function(Le){return Le>1e6?"".concat(+(Le/1e6).toFixed(2),"km\xB2"):"".concat(+Le.toFixed(2),"m\xB2")}},ur={maxSize:100},dt={remove:["del","backspace"],revert:["command+z","ctrl+z"],redo:["command+shift+z","ctrl+shift+z"]},xt={allowHTML:!0,followCursor:!0,placement:"bottom-start",offset:[-10,20],plugins:[ri],trigger:"manual",hideOnClick:!1,theme:"light"},Et={data:"drawData",pointAdsorbPixel:12,lineAdsorbPixel:10};function et(Le,d){var y=Object.keys(Le);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(Le);d&&(E=E.filter(function(Z){return Object.getOwnPropertyDescriptor(Le,Z).enumerable})),y.push.apply(y,E)}return y}function wt(Le){for(var d=1;arguments.length>d;d++){var y=arguments[d]!=null?arguments[d]:{};d%2?et(Object(y),!0).forEach(function(E){eo(Le,E,y[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Le,Object.getOwnPropertyDescriptors(y)):et(Object(y)).forEach(function(E){Object.defineProperty(Le,E,Object.getOwnPropertyDescriptor(y,E))})}return Le}function Vt(Le){return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},Vt(Le)}function yn(Le,d){if(!(Le instanceof d))throw new TypeError("Cannot call a class as a function")}function yr(Le,d){for(var y=0;d.length>y;y++){var E=d[y];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(Le,Il(E.key),E)}}function Yr(Le,d,y){return d&&yr(Le.prototype,d),y&&yr(Le,y),Object.defineProperty(Le,"prototype",{writable:!1}),Le}function eo(Le,d,y){return(d=Il(d))in Le?Object.defineProperty(Le,d,{value:y,enumerable:!0,configurable:!0,writable:!0}):Le[d]=y,Le}function Zo(Le,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");Le.prototype=Object.create(d&&d.prototype,{constructor:{value:Le,writable:!0,configurable:!0}}),Object.defineProperty(Le,"prototype",{writable:!1}),d&&Cs(Le,d)}function Ii(Le){return Ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(d){return d.__proto__||Object.getPrototypeOf(d)},Ii(Le)}function Cs(Le,d){return Cs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,E){return y.__proto__=E,y},Cs(Le,d)}function ks(Le){if(Le===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Le}function ba(Le){var d=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(y){return!1}}();return function(){var y,E=Ii(Le);if(d){var Z=Ii(this).constructor;y=Reflect.construct(E,arguments,Z)}else y=E.apply(this,arguments);return function(re,pe){if(pe&&(typeof pe=="object"||typeof pe=="function"))return pe;if(pe!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ks(re)}(this,y)}}function Zs(){return Zs=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(Le,d,y){var E=function(re,pe){for(;!Object.prototype.hasOwnProperty.call(re,pe)&&(re=Ii(re))!==null;);return re}(Le,d);if(E){var Z=Object.getOwnPropertyDescriptor(E,d);return Z.get?Z.get.call(3>arguments.length?Le:y):Z.value}},Zs.apply(this,arguments)}function No(Le,d){return function(y){if(Array.isArray(y))return y}(Le)||function(y,E){var Z=y==null?null:typeof Symbol!="undefined"&&y[Symbol.iterator]||y["@@iterator"];if(Z!=null){var re,pe,Ie,Je,zt=[],ln=!0,Kn=!1;try{if(Ie=(Z=Z.call(y)).next,E===0){if(Object(Z)!==Z)return;ln=!1}else for(;!(ln=(re=Ie.call(Z)).done)&&(zt.push(re.value),zt.length!==E);ln=!0);}catch(pr){Kn=!0,pe=pr}finally{try{if(!ln&&Z.return!=null&&(Je=Z.return(),Object(Je)!==Je))return}finally{if(Kn)throw pe}}return zt}}(Le,d)||ga(Le,d)||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 js(Le){return function(d){if(Array.isArray(d))return da(d)}(Le)||function(d){if(typeof Symbol!="undefined"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}(Le)||ga(Le)||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 ga(Le,d){if(Le){if(typeof Le=="string")return da(Le,d);var y=Object.prototype.toString.call(Le).slice(8,-1);return y==="Object"&&Le.constructor&&(y=Le.constructor.name),y==="Map"||y==="Set"?Array.from(Le):y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)?da(Le,d):void 0}}function da(Le,d){(d==null||d>Le.length)&&(d=Le.length);for(var y=0,E=Array(d);d>y;y++)E[y]=Le[y];return E}function Il(Le){var d=function(y,E){if(typeof y!="object"||y===null)return y;var Z=y[Symbol.toPrimitive];if(Z!==void 0){var re=Z.call(y,E||"default");if(typeof re!="object")return re;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(y)}(Le,"string");return typeof d=="symbol"?d:d+""}(ao=v.DrawEvent||(v.DrawEvent={})).Init="init",ao.Destroy="destroy",ao.Enable="enable",ao.Disable="disable",ao.Add="add",ao.Edit="edit",ao.Remove="remove",ao.Clear="clear",ao.Change="change",ao.DragStart="dragStart",ao.Dragging="dragging",ao.DragEnd="dragEnd",ao.Select="select",ao.AddNode="addNode",ao.RemoveNode="removeNode",(Mi=v.SourceEvent||(v.SourceEvent={})).Change="change",Mi.Update="update",(_s=v.RenderEvent||(v.RenderEvent={})).Click="click",_s.UnClick="unclick",_s.Dragstart="dragstart",_s.Mousemove="mousemove",_s.Mouseout="mouseout",_s.Dragging="dragging",_s.Dragend="dragend",_s.DblClick="dblClick",_s.Contextmenu="contextmenu",(Hs=v.LayerEvent||(v.LayerEvent={})).Mousedown="mousedown",Hs.Mouseup="mouseup",Hs.Click="click",Hs.UnClick="unclick",Hs.Dblclick="dblclick",Hs.Mousemove="mousemove",Hs.Mouseover="mouseover",Hs.Mouseenter="mouseenter",Hs.Mouseleave="mouseleave",Hs.Mouseout="mouseout",Hs.Contextmenu="contextmenu",(Hr=v.SceneEvent||(v.SceneEvent={})).Loaded="loaded",Hr.MapMove="mapmove",Hr.MoveStart="movestart",Hr.MoveEnd="moveend",Hr.ZoomChange="zoomchange",Hr.ZoomStart="zoomstart",Hr.ZoomEnd="zoomend",Hr.Click="click",Hr.Dblclick="dblclick",Hr.Mousemove="mousemove",Hr.Mousewheel="mousewheel",Hr.Mouseover="mouseover",Hr.Mouseout="mouseout",Hr.Mouseup="mouseup",Hr.Mousedown="mousedown",Hr.Contextmenu="contextmenu",Hr.Dragstart="dragstart",Hr.Dragging="dragging",Hr.Dragend="dragend",(Bi=v.ControlEvent||(v.ControlEvent={})).DrawChange="drawchange",Bi.DataChange="datachange",Bi.DrawSelect="drawselect",Bi.DrawClear="drawclear";var Al=63710088e-1,Js={centimeters:637100880,centimetres:637100880,degrees:57.22891354143274,feet:20902260511392e-6,inches:39.37*Al,kilometers:6371.0088,kilometres:6371.0088,meters:Al,metres:Al,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:Al/1852,radians:1,yards:6967335223679999e-9},Ea={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 gl(Le,d,y){y===void 0&&(y={});var E={type:"Feature"};return(y.id===0||y.id)&&(E.id=y.id),y.bbox&&(E.bbox=y.bbox),E.properties=d||{},E.geometry=Le,E}function ds(Le,d,y){if(y===void 0&&(y={}),!Le)throw Error("coordinates is required");if(!Array.isArray(Le))throw Error("coordinates must be an Array");if(2>Le.length)throw Error("coordinates must be at least 2 numbers long");if(!Uu(Le[0])||!Uu(Le[1]))throw Error("coordinates must contain numbers");return gl({type:"Point",coordinates:Le},d,y)}function Gi(Le,d,y){y===void 0&&(y={});for(var E=0,Z=Le;Z.length>E;E++){var re=Z[E];if(4>re.length)throw Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var pe=0;re[re.length-1].length>pe;pe++)if(re[re.length-1][pe]!==re[0][pe])throw Error("First and last Position are not equivalent.")}return gl({type:"Polygon",coordinates:Le},d,y)}function Jo(Le,d,y){if(y===void 0&&(y={}),2>Le.length)throw Error("coordinates must be an array of two or more positions");return gl({type:"LineString",coordinates:Le},d,y)}function Ps(Le,d){d===void 0&&(d={});var y={type:"FeatureCollection"};return d.id&&(y.id=d.id),d.bbox&&(y.bbox=d.bbox),y.features=Le,y}function Fs(Le,d,y){return y===void 0&&(y={}),gl({type:"MultiLineString",coordinates:Le},d,y)}function Za(Le,d,y){return y===void 0&&(y={}),gl({type:"MultiPoint",coordinates:Le},d,y)}function Nu(Le,d,y){return y===void 0&&(y={}),gl({type:"MultiPolygon",coordinates:Le},d,y)}function Tc(Le,d){d===void 0&&(d="kilometers");var y=Js[d];if(!y)throw Error(d+" units is invalid");return Le*y}function Pc(Le,d){d===void 0&&(d="kilometers");var y=Js[d];if(!y)throw Error(d+" units is invalid");return Le/y}function tc(Le){return 180*(Le%(2*Math.PI))/Math.PI}function cc(Le){return Le%360*Math.PI/180}function Uu(Le){return!isNaN(Le)&&Le!==null&&!Array.isArray(Le)}function Pn(Le){return!!Le&&Le.constructor===Object}var er=Object.freeze({__proto__:null,earthRadius:Al,factors:Js,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/Al,yards:1.0936133},areaFactors:Ea,feature:gl,geometry:function(Le,d,y){switch(Le){case"Point":return ds(d).geometry;case"LineString":return Jo(d).geometry;case"Polygon":return Gi(d).geometry;case"MultiPoint":return Za(d).geometry;case"MultiLineString":return Fs(d).geometry;case"MultiPolygon":return Nu(d).geometry;default:throw Error(Le+" is invalid")}},point:ds,points:function(Le,d,y){return y===void 0&&(y={}),Ps(Le.map(function(E){return ds(E,d)}),y)},polygon:Gi,polygons:function(Le,d,y){return y===void 0&&(y={}),Ps(Le.map(function(E){return Gi(E,d)}),y)},lineString:Jo,lineStrings:function(Le,d,y){return y===void 0&&(y={}),Ps(Le.map(function(E){return Jo(E,d)}),y)},featureCollection:Ps,multiLineString:Fs,multiPoint:Za,multiPolygon:Nu,geometryCollection:function(Le,d,y){return y===void 0&&(y={}),gl({type:"GeometryCollection",geometries:Le},d,y)},round:function(Le,d){if(d===void 0&&(d=0),d&&d<0)throw Error("precision must be a positive number");var y=Math.pow(10,d||0);return Math.round(Le*y)/y},radiansToLength:Tc,lengthToRadians:Pc,lengthToDegrees:function(Le,d){return tc(Pc(Le,d))},bearingToAzimuth:function(Le){var d=Le%360;return 0>d&&(d+=360),d},radiansToDegrees:tc,degreesToRadians:cc,convertLength:function(Le,d,y){if(d===void 0&&(d="kilometers"),y===void 0&&(y="kilometers"),Le<0)throw Error("length must be a positive number");return Tc(Pc(Le,d),y)},convertArea:function(Le,d,y){if(d===void 0&&(d="meters"),y===void 0&&(y="kilometers"),Le<0)throw Error("area must be a positive number");var E=Ea[d];if(!E)throw Error("invalid original units");var Z=Ea[y];if(!Z)throw Error("invalid final units");return Le/E*Z},isNumber:Uu,isObject:Pn,validateBBox:function(Le){if(!Le)throw Error("bbox is required");if(!Array.isArray(Le))throw Error("bbox must be an Array");if(Le.length!==4&&Le.length!==6)throw Error("bbox must be an Array of 4 or 6 numbers");Le.forEach(function(d){if(!Uu(d))throw Error("bbox must only contain numbers")})},validateId:function(Le){if(!Le)throw Error("id is required");if(["string","number"].indexOf(typeof Le)===-1)throw Error("id must be a number or a string")}});function Lr(Le,d,y){if(Le!==null)for(var E,Z,re,pe,Ie,Je,zt,ln,Kn=0,pr=0,si=Le.type,yi=si==="FeatureCollection",Do=si==="Feature",Co=yi?Le.features.length:1,Uo=0;Co>Uo;Uo++){Ie=(ln=!!(zt=yi?Le.features[Uo].geometry:Do?Le.geometry:Le)&&zt.type==="GeometryCollection")?zt.geometries.length:1;for(var Mo=0;Ie>Mo;Mo++){var oo=0,Vs=0;if((pe=ln?zt.geometries[Mo]:zt)!==null){Je=pe.coordinates;var Ta=pe.type;switch(Kn=!y||Ta!=="Polygon"&&Ta!=="MultiPolygon"?0:1,Ta){case null:break;case"Point":if(d(Je,pr,Uo,oo,Vs)===!1)return!1;pr++,oo++;break;case"LineString":case"MultiPoint":for(E=0;Je.length>E;E++){if(d(Je[E],pr,Uo,oo,Vs)===!1)return!1;pr++,Ta==="MultiPoint"&&oo++}Ta==="LineString"&&oo++;break;case"Polygon":case"MultiLineString":for(E=0;Je.length>E;E++){for(Z=0;Je[E].length-Kn>Z;Z++){if(d(Je[E][Z],pr,Uo,oo,Vs)===!1)return!1;pr++}Ta==="MultiLineString"&&oo++,Ta==="Polygon"&&Vs++}Ta==="Polygon"&&oo++;break;case"MultiPolygon":for(E=0;Je.length>E;E++){for(Vs=0,Z=0;Je[E].length>Z;Z++){for(re=0;Je[E][Z].length-Kn>re;re++){if(d(Je[E][Z][re],pr,Uo,oo,Vs)===!1)return!1;pr++}Vs++}oo++}break;case"GeometryCollection":for(E=0;pe.geometries.length>E;E++)if(Lr(pe.geometries[E],d,y)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}}}}}function Gr(Le,d){var y;switch(Le.type){case"FeatureCollection":for(y=0;Le.features.length>y&&d(Le.features[y].properties,y)!==!1;y++);break;case"Feature":d(Le.properties,0)}}function ai(Le,d){if(Le.type==="Feature")d(Le,0);else if(Le.type==="FeatureCollection")for(var y=0;Le.features.length>y&&d(Le.features[y],y)!==!1;y++);}function Qi(Le){var d=[];return Lr(Le,function(y){d.push(y)}),d}function Pi(Le,d){var y,E,Z,re,pe,Ie,Je,zt,ln,Kn,pr=0,si=Le.type==="FeatureCollection",yi=Le.type==="Feature",Do=si?Le.features.length:1;for(y=0;Do>y;y++){for(zt=si?Le.features[y].properties:yi?Le.properties:{},ln=si?Le.features[y].bbox:yi?Le.bbox:void 0,Kn=si?Le.features[y].id:yi?Le.id:void 0,pe=(Je=!!(Ie=si?Le.features[y].geometry:yi?Le.geometry:Le)&&Ie.type==="GeometryCollection")?Ie.geometries.length:1,Z=0;pe>Z;Z++)if((re=Je?Ie.geometries[Z]:Ie)!==null)switch(re.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(d(re,pr,zt,ln,Kn)===!1)return!1;break;case"GeometryCollection":for(E=0;re.geometries.length>E;E++)if(d(re.geometries[E],pr,zt,ln,Kn)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}else if(d(null,pr,zt,ln,Kn)===!1)return!1;pr++}}function fs(Le,d,y){var E=y;return Pi(Le,function(Z,re,pe,Ie,Je){E=re===0&&y===void 0?Z:d(E,Z,re,pe,Ie,Je)}),E}function Ks(Le,d){Pi(Le,function(y,E,Z,re,pe){var Ie,Je=y===null?null:y.type;switch(Je){case null:case"Point":case"LineString":case"Polygon":return d(gl(y,Z,{bbox:re,id:pe}),E,0)!==!1&&void 0}switch(Je){case"MultiPoint":Ie="Point";break;case"MultiLineString":Ie="LineString";break;case"MultiPolygon":Ie="Polygon"}for(var zt=0;y.coordinates.length>zt;zt++)if(d(gl({type:Ie,coordinates:y.coordinates[zt]},Z),E,zt)===!1)return!1})}function Ma(Le,d){Ks(Le,function(y,E,Z){var re=0;if(y.geometry){var pe=y.geometry.type;if(pe!=="Point"&&pe!=="MultiPoint"){var Ie,Je=0,zt=0,ln=0;return Lr(y,function(Kn,pr,si,yi,Do){if(Ie===void 0||E>Je||yi>zt||Do>ln)return Ie=Kn,Je=E,zt=yi,ln=Do,void(re=0);var Co=Jo([Ie,Kn],y.properties);if(d(Co,E,Z,Do,re)===!1)return!1;re++,Ie=Kn})!==!1&&void 0}}})}function qa(Le,d,y){var E=y,Z=!1;return Ma(Le,function(re,pe,Ie,Je,zt){E=Z===!1&&y===void 0?re:d(E,re,pe,Ie,Je,zt),Z=!0}),E}function rl(Le,d){if(!Le)throw Error("geojson is required");Ks(Le,function(y,E,Z){if(y.geometry!==null){var re=y.geometry.coordinates;switch(y.geometry.type){case"LineString":if(d(y,E,Z,0,0)===!1)return!1;break;case"Polygon":for(var pe=0;re.length>pe;pe++)if(d(Jo(re[pe],y.properties),E,Z,pe)===!1)return!1}}})}var Dl=Object.freeze({__proto__:null,coordAll:Qi,coordEach:Lr,coordReduce:function(Le,d,y,E){var Z=y;return Lr(Le,function(re,pe,Ie,Je,zt){Z=pe===0&&y===void 0?re:d(Z,re,pe,Ie,Je,zt)},E),Z},featureEach:ai,featureReduce:function(Le,d,y){var E=y;return ai(Le,function(Z,re){E=re===0&&y===void 0?Z:d(E,Z,re)}),E},findPoint:function(Le,d){if(!Pn(d=d||{}))throw Error("options is invalid");var y,E=d.featureIndex||0,Z=d.multiFeatureIndex||0,re=d.geometryIndex||0,pe=d.coordIndex||0,Ie=d.properties;switch(Le.type){case"FeatureCollection":0>E&&(E=Le.features.length+E),Ie=Ie||Le.features[E].properties,y=Le.features[E].geometry;break;case"Feature":Ie=Ie||Le.properties,y=Le.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":y=Le;break;default:throw Error("geojson is invalid")}if(y===null)return null;var Je=y.coordinates;switch(y.type){case"Point":return ds(Je,Ie,d);case"MultiPoint":return 0>Z&&(Z=Je.length+Z),ds(Je[Z],Ie,d);case"LineString":return 0>pe&&(pe=Je.length+pe),ds(Je[pe],Ie,d);case"Polygon":return 0>re&&(re=Je.length+re),0>pe&&(pe=Je[re].length+pe),ds(Je[re][pe],Ie,d);case"MultiLineString":return 0>Z&&(Z=Je.length+Z),0>pe&&(pe=Je[Z].length+pe),ds(Je[Z][pe],Ie,d);case"MultiPolygon":return 0>Z&&(Z=Je.length+Z),0>re&&(re=Je[Z].length+re),0>pe&&(pe=Je[Z][re].length-pe),ds(Je[Z][re][pe],Ie,d)}throw Error("geojson is invalid")},findSegment:function(Le,d){if(!Pn(d=d||{}))throw Error("options is invalid");var y,E=d.featureIndex||0,Z=d.multiFeatureIndex||0,re=d.geometryIndex||0,pe=d.segmentIndex||0,Ie=d.properties;switch(Le.type){case"FeatureCollection":0>E&&(E=Le.features.length+E),Ie=Ie||Le.features[E].properties,y=Le.features[E].geometry;break;case"Feature":Ie=Ie||Le.properties,y=Le.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":y=Le;break;default:throw Error("geojson is invalid")}if(y===null)return null;var Je=y.coordinates;switch(y.type){case"Point":case"MultiPoint":return null;case"LineString":return 0>pe&&(pe=Je.length+pe-1),Jo([Je[pe],Je[pe+1]],Ie,d);case"Polygon":return 0>re&&(re=Je.length+re),0>pe&&(pe=Je[re].length+pe-1),Jo([Je[re][pe],Je[re][pe+1]],Ie,d);case"MultiLineString":return 0>Z&&(Z=Je.length+Z),0>pe&&(pe=Je[Z].length+pe-1),Jo([Je[Z][pe],Je[Z][pe+1]],Ie,d);case"MultiPolygon":return 0>Z&&(Z=Je.length+Z),0>re&&(re=Je[Z].length+re),0>pe&&(pe=Je[Z][re].length-pe-1),Jo([Je[Z][re][pe],Je[Z][re][pe+1]],Ie,d)}throw Error("geojson is invalid")},flattenEach:Ks,flattenReduce:function(Le,d,y){var E=y;return Ks(Le,function(Z,re,pe){E=re===0&&pe===0&&y===void 0?Z:d(E,Z,re,pe)}),E},geomEach:Pi,geomReduce:fs,lineEach:rl,lineReduce:function(Le,d,y){var E=y;return rl(Le,function(Z,re,pe,Ie){E=re===0&&y===void 0?Z:d(E,Z,re,pe,Ie)}),E},propEach:Gr,propReduce:function(Le,d,y){var E=y;return Gr(Le,function(Z,re){E=re===0&&y===void 0?Z:d(E,Z,re)}),E},segmentEach:Ma,segmentReduce:qa});function Oa(Le){var d=[1/0,1/0,-1/0,-1/0];return Lr(Le,function(y){d[0]>y[0]&&(d[0]=y[0]),d[1]>y[1]&&(d[1]=y[1]),y[0]>d[2]&&(d[2]=y[0]),y[1]>d[3]&&(d[3]=y[1])}),d}Oa.default=Oa;var ju=Object.freeze({__proto__:null,default:Oa});function Ia(Le){if(!Le)throw Error("coord is required");if(!Array.isArray(Le)){if(Le.type==="Feature"&&Le.geometry!==null&&Le.geometry.type==="Point")return Le.geometry.coordinates;if(Le.type==="Point")return Le.coordinates}if(Array.isArray(Le)&&Le.length>=2&&!Array.isArray(Le[0])&&!Array.isArray(Le[1]))return Le;throw Error("coord must be GeoJSON Point or an Array of numbers")}function Ha(Le){if(Array.isArray(Le))return Le;if(Le.type==="Feature"){if(Le.geometry!==null)return Le.geometry.coordinates}else if(Le.coordinates)return Le.coordinates;throw Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function tl(Le){return Le.type==="Feature"?Le.geometry:Le}function cu(Le,d){return Le.type==="FeatureCollection"?"FeatureCollection":Le.type==="GeometryCollection"?"GeometryCollection":Le.type==="Feature"&&Le.geometry!==null?Le.geometry.type:Le.type}function Xl(Le,d,y,E,Z){yu(Le,d,y||0,E||Le.length-1,Z||nu)}function yu(Le,d,y,E,Z){for(;E>y;){if(E-y>600){var re=E-y+1,pe=d-y+1,Ie=Math.log(re),Je=.5*Math.exp(2*Ie/3),zt=.5*Math.sqrt(Ie*Je*(re-Je)/re)*(0>pe-re/2?-1:1);yu(Le,d,Math.max(y,Math.floor(d-pe*Je/re+zt)),Math.min(E,Math.floor(d+(re-pe)*Je/re+zt)),Z)}var ln=Le[d],Kn=y,pr=E;for(Cl(Le,y,d),Z(Le[E],ln)>0&&Cl(Le,y,E);pr>Kn;){for(Cl(Le,Kn,pr),Kn++,pr--;0>Z(Le[Kn],ln);)Kn++;for(;Z(Le[pr],ln)>0;)pr--}Z(Le[y],ln)===0?Cl(Le,y,pr):Cl(Le,++pr,E),pr>d||(y=pr+1),d>pr||(E=pr-1)}}function Cl(Le,d,y){var E=Le[d];Le[d]=Le[y],Le[y]=E}function nu(Le,d){return d>Le?-1:Le>d?1:0}function Xn(Le,d,y){if(!y)return d.indexOf(Le);for(let E=0;d.length>E;E++)if(y(Le,d[E]))return E;return-1}function Ho(Le,d){Ls(Le,0,Le.children.length,d,Le)}function Ls(Le,d,y,E,Z){Z||(Z=Lc(null)),Z.minX=1/0,Z.minY=1/0,Z.maxX=-1/0,Z.maxY=-1/0;for(let re=d;y>re;re++){const pe=Le.children[re];Xs(Z,Le.leaf?E(pe):pe)}return Z}function Xs(Le,d){return Le.minX=Math.min(Le.minX,d.minX),Le.minY=Math.min(Le.minY,d.minY),Le.maxX=Math.max(Le.maxX,d.maxX),Le.maxY=Math.max(Le.maxY,d.maxY),Le}function il(Le,d){return Le.minX-d.minX}function iu(Le,d){return Le.minY-d.minY}function hu(Le){return(Le.maxX-Le.minX)*(Le.maxY-Le.minY)}function ic(Le){return Le.maxX-Le.minX+(Le.maxY-Le.minY)}function Gu(Le,d){const y=Math.max(Le.minX,d.minX),E=Math.max(Le.minY,d.minY),Z=Math.min(Le.maxX,d.maxX),re=Math.min(Le.maxY,d.maxY);return Math.max(0,Z-y)*Math.max(0,re-E)}function pc(Le,d){return!(Le.minX>d.minX||Le.minY>d.minY||d.maxX>Le.maxX||d.maxY>Le.maxY)}function qc(Le,d){return!(d.minX>Le.maxX||d.minY>Le.maxY||Le.minX>d.maxX||Le.minY>d.maxY)}function Lc(Le){return{children:Le,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function jh(Le,d,y,E,Z){const re=[d,y];for(;re.length;){if(E>=(y=re.pop())-(d=re.pop()))continue;const pe=d+Math.ceil((y-d)/E/2)*E;Xl(Le,pe,d,y,Z),re.push(d,pe,pe,y)}}var Md=Object.freeze({__proto__:null,default:class{constructor(Le=9){this._maxEntries=Math.max(4,Le),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(Le){let d=this.data;const y=[];if(!qc(Le,d))return y;const E=this.toBBox,Z=[];for(;d;){for(let re=0;d.children.length>re;re++){const pe=d.children[re],Ie=d.leaf?E(pe):pe;qc(Le,Ie)&&(d.leaf?y.push(pe):pc(Le,Ie)?this._all(pe,y):Z.push(pe))}d=Z.pop()}return y}collides(Le){let d=this.data;if(!qc(Le,d))return!1;const y=[];for(;d;){for(let E=0;d.children.length>E;E++){const Z=d.children[E],re=d.leaf?this.toBBox(Z):Z;if(qc(Le,re)){if(d.leaf||pc(Le,re))return!0;y.push(Z)}}d=y.pop()}return!1}load(Le){if(!Le||!Le.length)return this;if(this._minEntries>Le.length){for(let y=0;Le.length>y;y++)this.insert(Le[y]);return this}let d=this._build(Le.slice(),0,Le.length-1,0);if(this.data.children.length)if(this.data.height===d.height)this._splitRoot(this.data,d);else{if(d.height>this.data.height){const y=this.data;this.data=d,d=y}this._insert(d,this.data.height-d.height-1,!0)}else this.data=d;return this}insert(Le){return Le&&this._insert(Le,this.data.height-1),this}clear(){return this.data=Lc([]),this}remove(Le,d){if(!Le)return this;let y=this.data;const E=this.toBBox(Le),Z=[],re=[];let pe,Ie,Je;for(;y||Z.length;){if(y||(y=Z.pop(),Ie=Z[Z.length-1],pe=re.pop(),Je=!0),y.leaf){const zt=Xn(Le,y.children,d);if(zt!==-1)return y.children.splice(zt,1),Z.push(y),this._condense(Z),this}Je||y.leaf||!pc(y,E)?Ie?(pe++,y=Ie.children[pe],Je=!1):y=null:(Z.push(y),re.push(pe),pe=0,Ie=y,y=y.children[0])}return this}toBBox(Le){return Le}compareMinX(Le,d){return Le.minX-d.minX}compareMinY(Le,d){return Le.minY-d.minY}toJSON(){return this.data}fromJSON(Le){return this.data=Le,this}_all(Le,d){const y=[];for(;Le;)Le.leaf?d.push(...Le.children):y.push(...Le.children),Le=y.pop();return d}_build(Le,d,y,E){const Z=y-d+1;let re,pe=this._maxEntries;if(pe>=Z)return re=Lc(Le.slice(d,y+1)),Ho(re,this.toBBox),re;E||(pe=Math.ceil(Z/Math.pow(pe,(E=Math.ceil(Math.log(Z)/Math.log(pe)))-1))),re=Lc([]),re.leaf=!1,re.height=E;const Ie=Math.ceil(Z/pe),Je=Ie*Math.ceil(Math.sqrt(pe));jh(Le,d,y,Je,this.compareMinX);for(let zt=d;y>=zt;zt+=Je){const ln=Math.min(zt+Je-1,y);jh(Le,zt,ln,Ie,this.compareMinY);for(let Kn=zt;ln>=Kn;Kn+=Ie)re.children.push(this._build(Le,Kn,Math.min(Kn+Ie-1,ln),E-1))}return Ho(re,this.toBBox),re}_chooseSubtree(Le,d,y,E){for(;E.push(d),!d.leaf&&E.length-1!==y;){let pe,Ie=1/0,Je=1/0;for(let zt=0;d.children.length>zt;zt++){const ln=d.children[zt],Kn=hu(ln),pr=(Math.max((re=ln).maxX,(Z=Le).maxX)-Math.min(re.minX,Z.minX))*(Math.max(re.maxY,Z.maxY)-Math.min(re.minY,Z.minY))-Kn;Je>pr?(Je=pr,Ie=Ie>Kn?Kn:Ie,pe=ln):pr===Je&&Ie>Kn&&(Ie=Kn,pe=ln)}d=pe||d.children[0]}var Z,re;return d}_insert(Le,d,y){const E=y?Le:this.toBBox(Le),Z=[],re=this._chooseSubtree(E,this.data,d,Z);for(re.children.push(Le),Xs(re,E);d>=0&&Z[d].children.length>this._maxEntries;)this._split(Z,d),d--;this._adjustParentBBoxes(E,Z,d)}_split(Le,d){const y=Le[d],E=y.children.length,Z=this._minEntries;this._chooseSplitAxis(y,Z,E);const re=this._chooseSplitIndex(y,Z,E),pe=Lc(y.children.splice(re,y.children.length-re));pe.height=y.height,pe.leaf=y.leaf,Ho(y,this.toBBox),Ho(pe,this.toBBox),d?Le[d-1].children.push(pe):this._splitRoot(y,pe)}_splitRoot(Le,d){this.data=Lc([Le,d]),this.data.height=Le.height+1,this.data.leaf=!1,Ho(this.data,this.toBBox)}_chooseSplitIndex(Le,d,y){let E,Z=1/0,re=1/0;for(let pe=d;y-d>=pe;pe++){const Ie=Ls(Le,0,pe,this.toBBox),Je=Ls(Le,pe,y,this.toBBox),zt=Gu(Ie,Je),ln=hu(Ie)+hu(Je);Z>zt?(Z=zt,E=pe,re=re>ln?ln:re):zt===Z&&re>ln&&(re=ln,E=pe)}return E||y-d}_chooseSplitAxis(Le,d,y){const E=Le.leaf?this.compareMinX:il,Z=Le.leaf?this.compareMinY:iu,re=this._allDistMargin(Le,d,y,E);this._allDistMargin(Le,d,y,Z)>re&&Le.children.sort(E)}_allDistMargin(Le,d,y,E){Le.children.sort(E);const Z=this.toBBox,re=Ls(Le,0,d,Z),pe=Ls(Le,y-d,y,Z);let Ie=ic(re)+ic(pe);for(let Je=d;y-d>Je;Je++){const zt=Le.children[Je];Xs(re,Le.leaf?Z(zt):zt),Ie+=ic(re)}for(let Je=y-d-1;Je>=d;Je--){const zt=Le.children[Je];Xs(pe,Le.leaf?Z(zt):zt),Ie+=ic(pe)}return Ie}_adjustParentBBoxes(Le,d,y){for(let E=y;E>=0;E--)Xs(d[E],Le)}_condense(Le){for(let d,y=Le.length-1;y>=0;y--)Le[y].children.length===0?y>0?(d=Le[y-1].children,d.splice(d.indexOf(Le[y]),1)):this.clear():Ho(Le[y],this.toBBox)}}});function ad(Le,d){return d>Le?-1:Le>d?1:0}var kh=Object.freeze({__proto__:null,default:class{constructor(Le=[],d=ad){if(this.data=Le,this.length=this.data.length,this.compare=d,this.length>0)for(let y=(this.length>>1)-1;y>=0;y--)this._down(y)}push(Le){this.data.push(Le),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const Le=this.data[0],d=this.data.pop();return this.length--,this.length>0&&(this.data[0]=d,this._down(0)),Le}peek(){return this.data[0]}_up(Le){const{data:d,compare:y}=this,E=d[Le];for(;Le>0;){const Z=Le-1>>1,re=d[Z];if(y(E,re)>=0)break;d[Le]=re,Le=Z}d[Le]=E}_down(Le){const{data:d,compare:y}=this,E=this.length>>1,Z=d[Le];for(;E>Le;){let re=1+(Le<<1),pe=d[re];const Ie=re+1;if(this.length>Ie&&0>y(d[Ie],pe)&&(re=Ie,pe=d[Ie]),y(pe,Z)>=0)break;d[Le]=pe,Le=re}d[Le]=Z}}}),hc=function(Le,d,y,E){var Z=Le[0],re=Le[1],pe=!1;y===void 0&&(y=0),E===void 0&&(E=d.length);for(var Ie=(E-y)/2,Je=0,zt=Ie-1;Ie>Je;zt=Je++){var ln=d[y+2*Je+0],Kn=d[y+2*Je+1],pr=d[y+2*zt+1];Kn>re!=pr>re&&(d[y+2*zt+0]-ln)*(re-Kn)/(pr-Kn)+ln>Z&&(pe=!pe)}return pe},yc=function(Le,d,y,E){var Z=Le[0],re=Le[1],pe=!1;y===void 0&&(y=0),E===void 0&&(E=d.length);for(var Ie=E-y,Je=0,zt=Ie-1;Ie>Je;zt=Je++){var ln=d[Je+y][0],Kn=d[Je+y][1],pr=d[zt+y][1];Kn>re!=pr>re&&(d[zt+y][0]-ln)*(re-Kn)/(pr-Kn)+ln>Z&&(pe=!pe)}return pe},Uh=function(Le,d,y,E){return d.length>0&&Array.isArray(d[0])?yc(Le,d,y,E):hc(Le,d,y,E)},yh=hc;Uh.nested=yc,Uh.flat=yh;var pd=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof _.g!="undefined"?_.g:typeof self!="undefined"?self:{};function Ed(Le,d,y){return Le(y={path:d,exports:{},require:function(E,Z){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},y.exports),y.exports}function vh(Le){if(Le.__esModule)return Le;var d=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(Le).forEach(function(y){var E=Object.getOwnPropertyDescriptor(Le,y);Object.defineProperty(d,y,E.get?E:{enumerable:!0,get:function(){return Le[y]}})}),d}var zd=Ed(function(Le,d){(function(y){const Z=33306690738754706e-32;function re(Do,Co,Uo,Mo,oo){let Vs,Ta,cl,ou,Tu=Co[0],Cu=Mo[0],Hc=0,bu=0;Cu>Tu==Cu>-Tu?(Vs=Tu,Tu=Co[++Hc]):(Vs=Cu,Cu=Mo[++bu]);let Dc=0;if(Do>Hc&&Uo>bu)for(Cu>Tu==Cu>-Tu?(cl=Vs-((Ta=Tu+Vs)-Tu),Tu=Co[++Hc]):(cl=Vs-((Ta=Cu+Vs)-Cu),Cu=Mo[++bu]),Vs=Ta,cl!==0&&(oo[Dc++]=cl);Do>Hc&&Uo>bu;)Cu>Tu==Cu>-Tu?(cl=Vs-((Ta=Vs+Tu)-(ou=Ta-Vs))+(Tu-ou),Tu=Co[++Hc]):(cl=Vs-((Ta=Vs+Cu)-(ou=Ta-Vs))+(Cu-ou),Cu=Mo[++bu]),Vs=Ta,cl!==0&&(oo[Dc++]=cl);for(;Do>Hc;)cl=Vs-((Ta=Vs+Tu)-(ou=Ta-Vs))+(Tu-ou),Tu=Co[++Hc],Vs=Ta,cl!==0&&(oo[Dc++]=cl);for(;Uo>bu;)cl=Vs-((Ta=Vs+Cu)-(ou=Ta-Vs))+(Cu-ou),Cu=Mo[++bu],Vs=Ta,cl!==0&&(oo[Dc++]=cl);return Vs===0&&Dc!==0||(oo[Dc++]=Vs),Dc}function pe(Do){return new Float64Array(Do)}const Ie=33306690738754716e-32,Je=22204460492503146e-32,zt=11093356479670487e-47,ln=pe(4),Kn=pe(8),pr=pe(12),si=pe(16),yi=pe(4);y.orient2d=function(Do,Co,Uo,Mo,oo,Vs){const Ta=(Co-Vs)*(Uo-oo),cl=(Do-oo)*(Mo-Vs),ou=Ta-cl;if(Ta===0||cl===0||Ta>0!=cl>0)return ou;const Tu=Math.abs(Ta+cl);return Ie*Tu>Math.abs(ou)?-function(Cu,Hc,bu,Dc,Sn,rr,Dr){let ni,so,Ws,La,Is,nl,tu,Ds,xc,Gh,Ph,hh,Kh,tp,lp,Td,jd,es;const Pl=Cu-Sn,qd=bu-Sn,dd=Hc-rr,mf=Dc-rr;Is=(lp=(Ds=Pl-(tu=(nl=134217729*Pl)-(nl-Pl)))*(Gh=mf-(xc=(nl=134217729*mf)-(nl-mf)))-((tp=Pl*mf)-tu*xc-Ds*xc-tu*Gh))-(Ph=lp-(jd=(Ds=dd-(tu=(nl=134217729*dd)-(nl-dd)))*(Gh=qd-(xc=(nl=134217729*qd)-(nl-qd)))-((Td=dd*qd)-tu*xc-Ds*xc-tu*Gh))),ln[0]=lp-(Ph+Is)+(Is-jd),Is=(Kh=tp-((hh=tp+Ph)-(Is=hh-tp))+(Ph-Is))-(Ph=Kh-Td),ln[1]=Kh-(Ph+Is)+(Is-Td),Is=(es=hh+Ph)-hh,ln[2]=hh-(es-Is)+(Ph-Is),ln[3]=es;let rg=function(Rd,H){let P=H[0];for(let ee=1;Rd>ee;ee++)P+=H[ee];return P}(4,ln),cf=Je*Dr;if(rg>=cf||-rg>=cf||(ni=Cu-(Pl+(Is=Cu-Pl))+(Is-Sn),Ws=bu-(qd+(Is=bu-qd))+(Is-Sn),so=Hc-(dd+(Is=Hc-dd))+(Is-rr),La=Dc-(mf+(Is=Dc-mf))+(Is-rr),ni===0&&so===0&&Ws===0&&La===0)||(cf=zt*Dr+Z*Math.abs(rg),(rg+=Pl*La+mf*ni-(dd*Ws+qd*so))>=cf||-rg>=cf))return rg;Is=(lp=(Ds=ni-(tu=(nl=134217729*ni)-(nl-ni)))*(Gh=mf-(xc=(nl=134217729*mf)-(nl-mf)))-((tp=ni*mf)-tu*xc-Ds*xc-tu*Gh))-(Ph=lp-(jd=(Ds=so-(tu=(nl=134217729*so)-(nl-so)))*(Gh=qd-(xc=(nl=134217729*qd)-(nl-qd)))-((Td=so*qd)-tu*xc-Ds*xc-tu*Gh))),yi[0]=lp-(Ph+Is)+(Is-jd),Is=(Kh=tp-((hh=tp+Ph)-(Is=hh-tp))+(Ph-Is))-(Ph=Kh-Td),yi[1]=Kh-(Ph+Is)+(Is-Td),Is=(es=hh+Ph)-hh,yi[2]=hh-(es-Is)+(Ph-Is),yi[3]=es;const Ql=re(4,ln,4,yi,Kn);Is=(lp=(Ds=Pl-(tu=(nl=134217729*Pl)-(nl-Pl)))*(Gh=La-(xc=(nl=134217729*La)-(nl-La)))-((tp=Pl*La)-tu*xc-Ds*xc-tu*Gh))-(Ph=lp-(jd=(Ds=dd-(tu=(nl=134217729*dd)-(nl-dd)))*(Gh=Ws-(xc=(nl=134217729*Ws)-(nl-Ws)))-((Td=dd*Ws)-tu*xc-Ds*xc-tu*Gh))),yi[0]=lp-(Ph+Is)+(Is-jd),Is=(Kh=tp-((hh=tp+Ph)-(Is=hh-tp))+(Ph-Is))-(Ph=Kh-Td),yi[1]=Kh-(Ph+Is)+(Is-Td),Is=(es=hh+Ph)-hh,yi[2]=hh-(es-Is)+(Ph-Is),yi[3]=es;const _h=re(Ql,Kn,4,yi,pr);Is=(lp=(Ds=ni-(tu=(nl=134217729*ni)-(nl-ni)))*(Gh=La-(xc=(nl=134217729*La)-(nl-La)))-((tp=ni*La)-tu*xc-Ds*xc-tu*Gh))-(Ph=lp-(jd=(Ds=so-(tu=(nl=134217729*so)-(nl-so)))*(Gh=Ws-(xc=(nl=134217729*Ws)-(nl-Ws)))-((Td=so*Ws)-tu*xc-Ds*xc-tu*Gh))),yi[0]=lp-(Ph+Is)+(Is-jd),Is=(Kh=tp-((hh=tp+Ph)-(Is=hh-tp))+(Ph-Is))-(Ph=Kh-Td),yi[1]=Kh-(Ph+Is)+(Is-Td),Is=(es=hh+Ph)-hh,yi[2]=hh-(es-Is)+(Ph-Is),yi[3]=es;const Yd=re(_h,pr,4,yi,si);return si[Yd-1]}(Do,Co,Uo,Mo,oo,Vs,Tu):ou},y.orient2dfast=function(Do,Co,Uo,Mo,oo,Vs){return(Co-Vs)*(Uo-oo)-(Do-oo)*(Mo-Vs)},Object.defineProperty(y,"__esModule",{value:!0})})(d)}),Th=vh(Md),gh=vh(kh),Mf=zd.orient2d;gh.default&&(gh=gh.default);var gd=Yu;function Yu(Le,d,y){d=Math.max(0,d===void 0?2:d),y=y||0;var E=function(Mo){for(var oo=Mo[0],Vs=Mo[0],Ta=Mo[0],cl=Mo[0],ou=0;Mo.length>ou;ou++){var Tu=Mo[ou];oo[0]>Tu[0]&&(oo=Tu),Tu[0]>Ta[0]&&(Ta=Tu),Vs[1]>Tu[1]&&(Vs=Tu),Tu[1]>cl[1]&&(cl=Tu)}var Cu=[oo,Vs,Ta,cl],Hc=Cu.slice();for(ou=0;Mo.length>ou;ou++)Uh(Mo[ou],Cu)||Hc.push(Mo[ou]);return function(bu){bu.sort(ol);for(var Dc=[],Sn=0;bu.length>Sn;Sn++){for(;Dc.length>=2&&0>=Yf(Dc[Dc.length-2],Dc[Dc.length-1],bu[Sn]);)Dc.pop();Dc.push(bu[Sn])}for(var rr=[],Dr=bu.length-1;Dr>=0;Dr--){for(;rr.length>=2&&0>=Yf(rr[rr.length-2],rr[rr.length-1],bu[Dr]);)rr.pop();rr.push(bu[Dr])}return rr.pop(),Dc.pop(),Dc.concat(rr)}(Hc)}(Le),Z=new Th(16);Z.toBBox=function(Mo){return{minX:Mo[0],minY:Mo[1],maxX:Mo[0],maxY:Mo[1]}},Z.compareMinX=function(Mo,oo){return Mo[0]-oo[0]},Z.compareMinY=function(Mo,oo){return Mo[1]-oo[1]},Z.load(Le);for(var re,pe=[],Ie=0;E.length>Ie;Ie++){var Je=E[Ie];Z.remove(Je),re=xd(Je,re),pe.push(re)}var zt=new Th(16);for(Ie=0;pe.length>Ie;Ie++)zt.insert(Bf(pe[Ie]));for(var ln=d*d,Kn=y*y;pe.length;){var pr=pe.shift(),si=pr.p,yi=pr.next.p,Do=Sd(si,yi);if(Do>=Kn){var Co=Do/ln;(Je=nh(Z,pr.prev.p,si,yi,pr.next.next.p,Co,zt))&&Math.min(Sd(Je,si),Sd(Je,yi))<=Co&&(pe.push(pr),pe.push(xd(Je,pr)),Z.remove(Je),zt.remove(pr),zt.insert(Bf(pr)),zt.insert(Bf(pr.next)))}}pr=re;var Uo=[];do Uo.push(pr.p),pr=pr.next;while(pr!==re);return Uo.push(pr.p),Uo}function nh(Le,d,y,E,Z,re,pe){for(var Ie=new gh([],Nd),Je=Le.data;Je;){for(var zt=0;Je.children.length>zt;zt++){var ln=Je.children[zt],Kn=Je.leaf?Eu(ln,y,E):df(y,E,ln);repr.dist&&Do>pr.dist&&Of(y,si,pe)&&Of(E,si,pe))return si}(Je=Ie.pop())&&(Je=Je.node)}return null}function Nd(Le,d){return Le.dist-d.dist}function df(Le,d,y){if(bf(Le,y)||bf(d,y))return 0;var E=xf(Le[0],Le[1],d[0],d[1],y.minX,y.minY,y.maxX,y.minY);if(E===0)return 0;var Z=xf(Le[0],Le[1],d[0],d[1],y.minX,y.minY,y.minX,y.maxY);if(Z===0)return 0;var re=xf(Le[0],Le[1],d[0],d[1],y.maxX,y.minY,y.maxX,y.maxY);if(re===0)return 0;var pe=xf(Le[0],Le[1],d[0],d[1],y.minX,y.maxY,y.maxX,y.maxY);return pe===0?0:Math.min(E,Z,re,pe)}function bf(Le,d){return!(d.minX>Le[0]||Le[0]>d.maxX||d.minY>Le[1]||Le[1]>d.maxY)}function Of(Le,d,y){for(var E,Z,re,pe,Ie=y.search({minX:Math.min(Le[0],d[0]),minY:Math.min(Le[1],d[1]),maxX:Math.max(Le[0],d[0]),maxY:Math.max(Le[1],d[1])}),Je=0;Ie.length>Je;Je++)if(Z=Ie[Je].next.p,re=Le,(E=Ie[Je].p)!==(pe=d)&&Z!==re&&Yf(E,Z,re)>0!=Yf(E,Z,pe)>0&&Yf(re,pe,E)>0!=Yf(re,pe,Z)>0)return!1;return!0}function Yf(Le,d,y){return Mf(Le[0],Le[1],d[0],d[1],y[0],y[1])}function Bf(Le){var d=Le.p,y=Le.next.p;return Le.minX=Math.min(d[0],y[0]),Le.minY=Math.min(d[1],y[1]),Le.maxX=Math.max(d[0],y[0]),Le.maxY=Math.max(d[1],y[1]),Le}function xd(Le,d){var y={p:Le,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return d?(y.next=d.next,y.prev=d,d.next.prev=y,d.next=y):(y.prev=y,y.next=y),y}function Sd(Le,d){var y=Le[0]-d[0],E=Le[1]-d[1];return y*y+E*E}function Eu(Le,d,y){var E=d[0],Z=d[1],re=y[0]-E,pe=y[1]-Z;if(re!==0||pe!==0){var Ie=((Le[0]-E)*re+(Le[1]-Z)*pe)/(re*re+pe*pe);Ie>1?(E=y[0],Z=y[1]):Ie>0&&(E+=re*Ie,Z+=pe*Ie)}return(re=Le[0]-E)*re+(pe=Le[1]-Z)*pe}function xf(Le,d,y,E,Z,re,pe,Ie){var Je,zt,ln,Kn,pr=y-Le,si=E-d,yi=pe-Z,Do=Ie-re,Co=Le-Z,Uo=d-re,Mo=pr*pr+si*si,oo=pr*yi+si*Do,Vs=yi*yi+Do*Do,Ta=pr*Co+si*Uo,cl=yi*Co+Do*Uo,ou=Mo*Vs-oo*oo,Tu=ou,Cu=ou;ou===0?(zt=0,Tu=1,Kn=cl,Cu=Vs):(Kn=Mo*cl-oo*Ta,0>(zt=oo*cl-Vs*Ta)?(zt=0,Kn=cl,Cu=Vs):zt>Tu&&(zt=Tu,Kn=cl+oo,Cu=Vs)),0>Kn?(Kn=0,0>-Ta?zt=0:-Ta>Mo?zt=Tu:(zt=-Ta,Tu=Mo)):Kn>Cu&&(Kn=Cu,0>-Ta+oo?zt=0:-Ta+oo>Mo?zt=Tu:(zt=-Ta+oo,Tu=Mo));var Hc=(1-(ln=Kn===0?0:Kn/Cu))*Z+ln*pe-((1-(Je=zt===0?0:zt/Tu))*Le+Je*y),bu=(1-ln)*re+ln*Ie-((1-Je)*d+Je*E);return Hc*Hc+bu*bu}function ol(Le,d){return Le[0]===d[0]?Le[1]-d[1]:Le[0]-d[0]}function Pu(Le,d,y){y===void 0&&(y={});var E=Ia(Le),Z=Ia(d),re=cc(Z[1]-E[1]),pe=cc(Z[0]-E[0]),Ie=cc(E[1]),Je=cc(Z[1]),zt=Math.pow(Math.sin(re/2),2)+Math.pow(Math.sin(pe/2),2)*Math.cos(Ie)*Math.cos(Je);return Tc(2*Math.atan2(Math.sqrt(zt),Math.sqrt(1-zt)),y.units)}function Ah(Le){return function(d,y){y===void 0&&(y={});var E=Number(d[0]),Z=Number(d[1]),re=Number(d[2]),pe=Number(d[3]);if(d.length===6)throw Error("@turf/bbox-polygon does not support BBox with 6 positions");var Ie=[E,Z];return Gi([[Ie,[re,Z],[re,pe],[E,pe],Ie]],y.properties,{bbox:d,id:y.id})}(Oa(Le))}function md(Le,d,y,E){E===void 0&&(E={});var Z=Ia(Le),re=cc(Z[0]),pe=cc(Z[1]),Ie=cc(y),Je=Pc(d,E.units),zt=Math.asin(Math.sin(pe)*Math.cos(Je)+Math.cos(pe)*Math.sin(Je)*Math.cos(Ie));return ds([tc(re+Math.atan2(Math.sin(Ie)*Math.sin(Je)*Math.cos(pe),Math.cos(Je)-Math.sin(pe)*Math.sin(zt))),tc(zt)],E.properties)}function Aa(Le,d,y){if(y===void 0&&(y={}),y.final===!0)return function(zt,ln){var Kn=Aa(ln,zt);return Kn=(Kn+180)%360}(Le,d);var E=Ia(Le),Z=Ia(d),re=cc(E[0]),pe=cc(Z[0]),Ie=cc(E[1]),Je=cc(Z[1]);return tc(Math.atan2(Math.sin(pe-re)*Math.cos(Je),Math.cos(Ie)*Math.sin(Je)-Math.sin(Ie)*Math.cos(Je)*Math.cos(pe-re)))}function _u(Le,d){d===void 0&&(d={});var y=Oa(Le);return ds([(y[0]+y[2])/2,(y[1]+y[3])/2],d.properties,d)}function Hl(Le,d){d===void 0&&(d={});var y=0,E=0,Z=0;return Lr(Le,function(re){y+=re[0],E+=re[1],Z++},!0),ds([y/Z,E/Z],d.properties)}function Ou(Le,d){switch(d===void 0&&(d={}),cu(Le)){case"Point":return ds(Ia(Le),d.properties);case"Polygon":var y=[];Lr(Le,function(oo){y.push(oo)});var E,Z,re,pe,Ie,Je,zt,ln,Kn=Hl(Le,{properties:d.properties}),pr=Kn.geometry.coordinates,si=0,yi=0,Do=0,Co=y.map(function(oo){return[oo[0]-pr[0],oo[1]-pr[1]]});for(E=0;y.length-1>E;E++)Do+=ln=(pe=(Z=Co[E])[0])*(zt=(re=Co[E+1])[1])-(Ie=re[0])*(Je=Z[1]),si+=(pe+Ie)*ln,yi+=(Je+zt)*ln;if(Do===0)return Kn;var Uo=1/(6*(.5*Do));return ds([pr[0]+Uo*si,pr[1]+Uo*yi],d.properties);default:var Mo=function(oo,Vs){Vs===void 0&&(Vs={}),Vs.concavity=Vs.concavity||1/0;var Ta=[];if(Lr(oo,function(ou){Ta.push([ou[0],ou[1]])}),!Ta.length)return null;var cl=gd(Ta,Vs.concavity);return cl.length>3?Gi([cl]):null}(Le);return Mo?Ou(Mo,{properties:d.properties}):Hl(Le,{properties:d.properties})}}function qu(Le){if(!Le)throw Error("geojson is required");var d=[];return Ks(Le,function(y){(function(E,Z){var re=[],pe=E.geometry;if(pe!==null){switch(pe.type){case"Polygon":re=Ha(pe);break;case"LineString":re=[Ha(pe)]}re.forEach(function(Ie){var Je=function(zt,ln){var Kn=[];return zt.reduce(function(pr,si){var yi,Do,Co,Uo,Mo,oo,Vs=Jo([pr,si],ln);return Vs.bbox=[(Mo=(Do=si)[0])>(Co=(yi=pr)[0])?Co:Mo,(oo=Do[1])>(Uo=yi[1])?Uo:oo,Co>Mo?Co:Mo,Uo>oo?Uo:oo],Kn.push(Vs),si}),Kn}(Ie,E.properties);Je.forEach(function(zt){zt.id=Z.length,Z.push(zt)})})}})(y,d)}),Ps(d)}gd.default=Yu;function id(Le,d,y){if(!y)return d.indexOf(Le);for(let E=0;d.length>E;E++)if(y(Le,d[E]))return E;return-1}function ld(Le,d){Jh(Le,0,Le.children.length,d,Le)}function Jh(Le,d,y,E,Z){Z||(Z=ff(null)),Z.minX=1/0,Z.minY=1/0,Z.maxX=-1/0,Z.maxY=-1/0;for(let re=d;y>re;re++){const pe=Le.children[re];Rf(Z,Le.leaf?E(pe):pe)}return Z}function Rf(Le,d){return Le.minX=Math.min(Le.minX,d.minX),Le.minY=Math.min(Le.minY,d.minY),Le.maxX=Math.max(Le.maxX,d.maxX),Le.maxY=Math.max(Le.maxY,d.maxY),Le}function zf(Le,d){return Le.minX-d.minX}function rf(Le,d){return Le.minY-d.minY}function Vf(Le){return(Le.maxX-Le.minX)*(Le.maxY-Le.minY)}function tf(Le){return Le.maxX-Le.minX+(Le.maxY-Le.minY)}function pp(Le,d){const y=Math.max(Le.minX,d.minX),E=Math.max(Le.minY,d.minY),Z=Math.min(Le.maxX,d.maxX),re=Math.min(Le.maxY,d.maxY);return Math.max(0,Z-y)*Math.max(0,re-E)}function Fd(Le,d){return!(Le.minX>d.minX||Le.minY>d.minY||d.maxX>Le.maxX||d.maxY>Le.maxY)}function Dh(Le,d){return!(d.minX>Le.maxX||d.minY>Le.maxY||Le.minX>d.maxX||Le.minY>d.maxY)}function ff(Le){return{children:Le,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function lf(Le,d,y,E,Z){const re=[d,y];for(;re.length;){if(E>=(y=re.pop())-(d=re.pop()))continue;const pe=d+Math.ceil((y-d)/E/2)*E;Xl(Le,pe,d,y,Z),re.push(d,pe,pe,y)}}var Zc=Object.freeze({__proto__:null,default:class{constructor(Le=9){this._maxEntries=Math.max(4,Le),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(Le){let d=this.data;const y=[];if(!Dh(Le,d))return y;const E=this.toBBox,Z=[];for(;d;){for(let re=0;d.children.length>re;re++){const pe=d.children[re],Ie=d.leaf?E(pe):pe;Dh(Le,Ie)&&(d.leaf?y.push(pe):Fd(Le,Ie)?this._all(pe,y):Z.push(pe))}d=Z.pop()}return y}collides(Le){let d=this.data;if(!Dh(Le,d))return!1;const y=[];for(;d;){for(let E=0;d.children.length>E;E++){const Z=d.children[E],re=d.leaf?this.toBBox(Z):Z;if(Dh(Le,re)){if(d.leaf||Fd(Le,re))return!0;y.push(Z)}}d=y.pop()}return!1}load(Le){if(!Le||!Le.length)return this;if(this._minEntries>Le.length){for(let y=0;Le.length>y;y++)this.insert(Le[y]);return this}let d=this._build(Le.slice(),0,Le.length-1,0);if(this.data.children.length)if(this.data.height===d.height)this._splitRoot(this.data,d);else{if(d.height>this.data.height){const y=this.data;this.data=d,d=y}this._insert(d,this.data.height-d.height-1,!0)}else this.data=d;return this}insert(Le){return Le&&this._insert(Le,this.data.height-1),this}clear(){return this.data=ff([]),this}remove(Le,d){if(!Le)return this;let y=this.data;const E=this.toBBox(Le),Z=[],re=[];let pe,Ie,Je;for(;y||Z.length;){if(y||(y=Z.pop(),Ie=Z[Z.length-1],pe=re.pop(),Je=!0),y.leaf){const zt=id(Le,y.children,d);if(zt!==-1)return y.children.splice(zt,1),Z.push(y),this._condense(Z),this}Je||y.leaf||!Fd(y,E)?Ie?(pe++,y=Ie.children[pe],Je=!1):y=null:(Z.push(y),re.push(pe),pe=0,Ie=y,y=y.children[0])}return this}toBBox(Le){return Le}compareMinX(Le,d){return Le.minX-d.minX}compareMinY(Le,d){return Le.minY-d.minY}toJSON(){return this.data}fromJSON(Le){return this.data=Le,this}_all(Le,d){const y=[];for(;Le;)Le.leaf?d.push(...Le.children):y.push(...Le.children),Le=y.pop();return d}_build(Le,d,y,E){const Z=y-d+1;let re,pe=this._maxEntries;if(pe>=Z)return re=ff(Le.slice(d,y+1)),ld(re,this.toBBox),re;E||(pe=Math.ceil(Z/Math.pow(pe,(E=Math.ceil(Math.log(Z)/Math.log(pe)))-1))),re=ff([]),re.leaf=!1,re.height=E;const Ie=Math.ceil(Z/pe),Je=Ie*Math.ceil(Math.sqrt(pe));lf(Le,d,y,Je,this.compareMinX);for(let zt=d;y>=zt;zt+=Je){const ln=Math.min(zt+Je-1,y);lf(Le,zt,ln,Ie,this.compareMinY);for(let Kn=zt;ln>=Kn;Kn+=Ie)re.children.push(this._build(Le,Kn,Math.min(Kn+Ie-1,ln),E-1))}return ld(re,this.toBBox),re}_chooseSubtree(Le,d,y,E){for(;E.push(d),!d.leaf&&E.length-1!==y;){let pe,Ie=1/0,Je=1/0;for(let zt=0;d.children.length>zt;zt++){const ln=d.children[zt],Kn=Vf(ln),pr=(Math.max((re=ln).maxX,(Z=Le).maxX)-Math.min(re.minX,Z.minX))*(Math.max(re.maxY,Z.maxY)-Math.min(re.minY,Z.minY))-Kn;Je>pr?(Je=pr,Ie=Ie>Kn?Kn:Ie,pe=ln):pr===Je&&Ie>Kn&&(Ie=Kn,pe=ln)}d=pe||d.children[0]}var Z,re;return d}_insert(Le,d,y){const E=y?Le:this.toBBox(Le),Z=[],re=this._chooseSubtree(E,this.data,d,Z);for(re.children.push(Le),Rf(re,E);d>=0&&Z[d].children.length>this._maxEntries;)this._split(Z,d),d--;this._adjustParentBBoxes(E,Z,d)}_split(Le,d){const y=Le[d],E=y.children.length,Z=this._minEntries;this._chooseSplitAxis(y,Z,E);const re=this._chooseSplitIndex(y,Z,E),pe=ff(y.children.splice(re,y.children.length-re));pe.height=y.height,pe.leaf=y.leaf,ld(y,this.toBBox),ld(pe,this.toBBox),d?Le[d-1].children.push(pe):this._splitRoot(y,pe)}_splitRoot(Le,d){this.data=ff([Le,d]),this.data.height=Le.height+1,this.data.leaf=!1,ld(this.data,this.toBBox)}_chooseSplitIndex(Le,d,y){let E,Z=1/0,re=1/0;for(let pe=d;y-d>=pe;pe++){const Ie=Jh(Le,0,pe,this.toBBox),Je=Jh(Le,pe,y,this.toBBox),zt=pp(Ie,Je),ln=Vf(Ie)+Vf(Je);Z>zt?(Z=zt,E=pe,re=re>ln?ln:re):zt===Z&&re>ln&&(re=ln,E=pe)}return E||y-d}_chooseSplitAxis(Le,d,y){const E=Le.leaf?this.compareMinX:zf,Z=Le.leaf?this.compareMinY:rf,re=this._allDistMargin(Le,d,y,E);this._allDistMargin(Le,d,y,Z)>re&&Le.children.sort(E)}_allDistMargin(Le,d,y,E){Le.children.sort(E);const Z=this.toBBox,re=Jh(Le,0,d,Z),pe=Jh(Le,y-d,y,Z);let Ie=tf(re)+tf(pe);for(let Je=d;y-d>Je;Je++){const zt=Le.children[Je];Rf(re,Le.leaf?Z(zt):zt),Ie+=tf(re)}for(let Je=y-d-1;Je>=d;Je--){const zt=Le.children[Je];Rf(pe,Le.leaf?Z(zt):zt),Ie+=tf(pe)}return Ie}_adjustParentBBoxes(Le,d,y){for(let E=y;E>=0;E--)Rf(d[E],Le)}_condense(Le){for(let d,y=Le.length-1;y>=0;y--)Le[y].children.length===0?y>0?(d=Le[y-1].children,d.splice(d.indexOf(Le[y]),1)):this.clear():ld(Le[y],this.toBBox)}}}),Jc=vh(Zc),vd=vh(er),pl=vh(Dl),ps=vh(ju).default,bc=pl.featureEach,Zi=vd.featureCollection;function $p(Le){var d=new Jc(Le);return d.insert=function(y){if(y.type!=="Feature")throw Error("invalid feature");return y.bbox=y.bbox?y.bbox:ps(y),Jc.prototype.insert.call(this,y)},d.load=function(y){var E=[];return Array.isArray(y)?y.forEach(function(Z){if(Z.type!=="Feature")throw Error("invalid features");Z.bbox=Z.bbox?Z.bbox:ps(Z),E.push(Z)}):bc(y,function(Z){if(Z.type!=="Feature")throw Error("invalid features");Z.bbox=Z.bbox?Z.bbox:ps(Z),E.push(Z)}),Jc.prototype.load.call(this,E)},d.remove=function(y,E){if(y.type!=="Feature")throw Error("invalid feature");return y.bbox=y.bbox?y.bbox:ps(y),Jc.prototype.remove.call(this,y,E)},d.clear=function(){return Jc.prototype.clear.call(this)},d.search=function(y){var E=Jc.prototype.search.call(this,this.toBBox(y));return Zi(E)},d.collides=function(y){return Jc.prototype.collides.call(this,this.toBBox(y))},d.all=function(){var y=Jc.prototype.all.call(this);return Zi(y)},d.toJSON=function(){return Jc.prototype.toJSON.call(this)},d.fromJSON=function(y){return Jc.prototype.fromJSON.call(this,y)},d.toBBox=function(y){var E;if(y.bbox)E=y.bbox;else if(Array.isArray(y)&&y.length===4)E=y;else if(Array.isArray(y)&&y.length===6)E=[y[0],y[1],y[3],y[4]];else if(y.type==="Feature")E=ps(y);else{if(y.type!=="FeatureCollection")throw Error("invalid geojson");E=ps(y)}return{minX:E[0],minY:E[1],maxX:E[2],maxY:E[3]}},d}var Wu=$p;function uh(Le,d){var y={},E=[];if(Le.type==="LineString"&&(Le=gl(Le)),d.type==="LineString"&&(d=gl(d)),Le.type==="Feature"&&d.type==="Feature"&&Le.geometry!==null&&d.geometry!==null&&Le.geometry.type==="LineString"&&d.geometry.type==="LineString"&&Le.geometry.coordinates.length===2&&d.geometry.coordinates.length===2){var Z=vp(Le,d);return Z&&E.push(Z),Ps(E)}var re=Wu();return re.load(qu(d)),ai(qu(Le),function(pe){ai(re.search(pe),function(Ie){var Je=vp(pe,Ie);if(Je){var zt=Ha(Je).join(",");y[zt]||(y[zt]=!0,E.push(Je))}})}),Ps(E)}function vp(Le,d){var y=Ha(Le),E=Ha(d);if(y.length!==2)throw Error(" line1 must only contain 2 coordinates");if(E.length!==2)throw Error(" line2 must only contain 2 coordinates");var Z=y[0][0],re=y[0][1],pe=y[1][0],Ie=y[1][1],Je=E[0][0],zt=E[0][1],ln=E[1][0],Kn=E[1][1],pr=(Kn-zt)*(pe-Z)-(ln-Je)*(Ie-re),si=(ln-Je)*(re-zt)-(Kn-zt)*(Z-Je),yi=(pe-Z)*(re-zt)-(Ie-re)*(Z-Je);if(pr===0)return null;var Do=si/pr,Co=yi/pr;return 0>Do||Do>1||0>Co||Co>1?null:ds([Z+Do*(pe-Z),re+Do*(Ie-re)])}Wu.default=$p;var yp=6378137;function vg(Le){return fs(Le,function(d,y){return d+function(E){var Z,re=0;switch(E.type){case"Polygon":return uf(E.coordinates);case"MultiPolygon":for(Z=0;E.coordinates.length>Z;Z++)re+=uf(E.coordinates[Z]);return re;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(y)},0)}function uf(Le){var d=0;if(Le&&Le.length>0){d+=Math.abs(sp(Le[0]));for(var y=1;Le.length>y;y++)d-=Math.abs(sp(Le[y]))}return d}function sp(Le){var d,y,E,Z,re,pe,Ie=0,Je=Le.length;if(Je>2){for(pe=0;Je>pe;pe++)pe===Je-2?(E=Je-2,Z=Je-1,re=0):pe===Je-1?(E=Je-1,Z=0,re=1):(E=pe,Z=pe+1,re=pe+2),d=Le[E],y=Le[Z],Ie+=(Vp(Le[re][0])-Vp(d[0]))*Math.sin(Vp(y[1]));Ie=Ie*yp*yp/2}return Ie}function Vp(Le){return Le*Math.PI/180}function ap(Le,d){return d===void 0&&(d={}),qa(Le,function(y,E){var Z=E.geometry.coordinates;return y+Pu(Z[0],Z[1],d)},0)}function yg(Le,d){d===void 0&&(d={});var y=tl(Le);switch(d.properties||Le.type!=="Feature"||(d.properties=Le.properties),y.type){case"Polygon":return function(E,Z){Z===void 0&&(Z={});var re=tl(E),pe=re.coordinates,Ie=Z.properties?Z.properties:E.type==="Feature"?E.properties:{};return Zf(pe,Ie)}(y,d);case"MultiPolygon":return function(E,Z){Z===void 0&&(Z={});var re=tl(E),pe=re.coordinates,Ie=Z.properties?Z.properties:E.type==="Feature"?E.properties:{},Je=[];return pe.forEach(function(zt){Je.push(Zf(zt,Ie))}),Ps(Je)}(y,d);default:throw Error("invalid poly")}}function Zf(Le,d){return Le.length>1?Fs(Le,d):Jo(Le[0],d)}function qf(Le){for(var d,y,E=Ha(Le),Z=0,re=1;E.length>re;)d=y||E[0],Z+=((y=E[re])[0]-d[0])*(y[1]+d[1]),re++;return Z>0}var Bh=Ed(function(Le){var d=Object.prototype.hasOwnProperty,y="~";function E(){}function Z(Je,zt,ln){this.fn=Je,this.context=zt,this.once=ln||!1}function re(Je,zt,ln,Kn,pr){if(typeof ln!="function")throw new TypeError("The listener must be a function");var si=new Z(ln,Kn||Je,pr),yi=y?y+zt:zt;return Je._events[yi]?Je._events[yi].fn?Je._events[yi]=[Je._events[yi],si]:Je._events[yi].push(si):(Je._events[yi]=si,Je._eventsCount++),Je}function pe(Je,zt){--Je._eventsCount==0?Je._events=new E:delete Je._events[zt]}function Ie(){this._events=new E,this._eventsCount=0}Object.create&&(E.prototype=Object.create(null),new E().__proto__||(y=!1)),Ie.prototype.eventNames=function(){var Je,zt,ln=[];if(this._eventsCount===0)return ln;for(zt in Je=this._events)d.call(Je,zt)&&ln.push(y?zt.slice(1):zt);return Object.getOwnPropertySymbols?ln.concat(Object.getOwnPropertySymbols(Je)):ln},Ie.prototype.listeners=function(Je){var zt=this._events[y?y+Je:Je];if(!zt)return[];if(zt.fn)return[zt.fn];for(var ln=0,Kn=zt.length,pr=Array(Kn);Kn>ln;ln++)pr[ln]=zt[ln].fn;return pr},Ie.prototype.listenerCount=function(Je){var zt=this._events[y?y+Je:Je];return zt?zt.fn?1:zt.length:0},Ie.prototype.emit=function(Je,zt,ln,Kn,pr,si){var yi=y?y+Je:Je;if(!this._events[yi])return!1;var Do,Co,Uo=this._events[yi],Mo=arguments.length;if(Uo.fn){switch(Uo.once&&this.removeListener(Je,Uo.fn,void 0,!0),Mo){case 1:return Uo.fn.call(Uo.context),!0;case 2:return Uo.fn.call(Uo.context,zt),!0;case 3:return Uo.fn.call(Uo.context,zt,ln),!0;case 4:return Uo.fn.call(Uo.context,zt,ln,Kn),!0;case 5:return Uo.fn.call(Uo.context,zt,ln,Kn,pr),!0;case 6:return Uo.fn.call(Uo.context,zt,ln,Kn,pr,si),!0}for(Co=1,Do=Array(Mo-1);Mo>Co;Co++)Do[Co-1]=arguments[Co];Uo.fn.apply(Uo.context,Do)}else{var oo,Vs=Uo.length;for(Co=0;Vs>Co;Co++)switch(Uo[Co].once&&this.removeListener(Je,Uo[Co].fn,void 0,!0),Mo){case 1:Uo[Co].fn.call(Uo[Co].context);break;case 2:Uo[Co].fn.call(Uo[Co].context,zt);break;case 3:Uo[Co].fn.call(Uo[Co].context,zt,ln);break;case 4:Uo[Co].fn.call(Uo[Co].context,zt,ln,Kn);break;default:if(!Do)for(oo=1,Do=Array(Mo-1);Mo>oo;oo++)Do[oo-1]=arguments[oo];Uo[Co].fn.apply(Uo[Co].context,Do)}}return!0},Ie.prototype.on=function(Je,zt,ln){return re(this,Je,zt,ln,!1)},Ie.prototype.once=function(Je,zt,ln){return re(this,Je,zt,ln,!0)},Ie.prototype.removeListener=function(Je,zt,ln,Kn){var pr=y?y+Je:Je;if(!this._events[pr])return this;if(!zt)return pe(this,pr),this;var si=this._events[pr];if(si.fn)si.fn!==zt||Kn&&!si.once||ln&&si.context!==ln||pe(this,pr);else{for(var yi=0,Do=[],Co=si.length;Co>yi;yi++)(si[yi].fn!==zt||Kn&&!si[yi].once||ln&&si[yi].context!==ln)&&Do.push(si[yi]);Do.length?this._events[pr]=Do.length===1?Do[0]:Do:pe(this,pr)}return this},Ie.prototype.removeAllListeners=function(Je){var zt;return Je?this._events[zt=y?y+Je:Je]&&pe(this,zt):(this._events=new E,this._eventsCount=0),this},Ie.prototype.off=Ie.prototype.removeListener,Ie.prototype.addListener=Ie.prototype.on,Ie.prefixed=y,Ie.EventEmitter=Ie,Le.exports=Ie}),kp=function(Le){Zo(y,Le);var d=ba(y);function y(E,Z){var re,pe=Z.style;return yn(this,y),(re=d.call(this)).scene=void 0,re.style=void 0,re.layers=void 0,re.data=[],re.scene=E,re.style=pe,re.layers=re.initLayers(),re.layers.forEach(function(Ie){E.addLayer(Ie)}),pe.callback instanceof Function&&pe.callback(re.layers),re}return Yr(y,[{key:"getLayers",value:function(){return this.layers}},{key:"show",value:function(){this.layers.forEach(function(E){E.show()})}},{key:"hide",value:function(){this.layers.forEach(function(E){E.hide()})}},{key:"setData",value:function(E){var Z=js(E).sort(function(re,pe){return+re.properties.isActive-+pe.properties.isActive});this.data=Z,this.layers.forEach(function(re){re.setData(Ps(Z))})}},{key:"destroy",value:function(){var E=this;this.layers.forEach(function(Z){E.scene.removeLayer(Z)})}}]),y}(Bh.EventEmitter),pg=function(Le){Zo(y,Le);var d=ba(y);function y(){return yn(this,y),d.apply(this,arguments)}return Yr(y,[{key:"initLayers",value:function(){var E=this.style,Z=E.normal,re=E.style,pe=E.options;return[new M.LineLayer(pe!=null?pe:{}).source(Ps([])).size(Z.size).color(Z.color).shape("line").style(re)]}}]),y}(kp),Mp=function(Le){var d=typeof Le;return Le!=null&&(d=="object"||d=="function")},bd=typeof pd=="object"&&pd&&pd.Object===Object&&pd,Qp=typeof self=="object"&&self&&self.Object===Object&&self,Ih=bd||Qp||Function("return this")(),yf=function(){return Ih.Date.now()},Jf=/\s/,wu=function(Le){for(var d=Le.length;d--&&Jf.test(Le.charAt(d)););return d},Tp=/^\s+/,_p=function(Le){return Le&&Le.slice(0,wu(Le)+1).replace(Tp,"")},jf=Ih.Symbol,Eh=Object.prototype,Mh=Eh.hasOwnProperty,Wh=Eh.toString,bh=jf?jf.toStringTag:void 0,Vd=function(Le){var d=Mh.call(Le,bh),y=Le[bh];try{Le[bh]=void 0;var E=!0}catch(re){}var Z=Wh.call(Le);return E&&(d?Le[bh]=y:delete Le[bh]),Z},Rp=Object.prototype.toString,qp=function(Le){return Rp.call(Le)},mh=jf?jf.toStringTag:void 0,Df=function(Le){return Le==null?Le===void 0?"[object Undefined]":"[object Null]":mh&&mh in Object(Le)?Vd(Le):qp(Le)},yd=function(Le){return Le!=null&&typeof Le=="object"},wd=function(Le){return typeof Le=="symbol"||yd(Le)&&Df(Le)=="[object Symbol]"},Hf=/^[-+]0x[0-9a-f]+$/i,sh=/^0b[01]+$/i,Oc=/^0o[0-7]+$/i,Zh=parseInt,$d=function(Le){if(typeof Le=="number")return Le;if(wd(Le))return NaN;if(Mp(Le)){var d=typeof Le.valueOf=="function"?Le.valueOf():Le;Le=Mp(d)?d+"":d}if(typeof Le!="string")return Le===0?Le:+Le;Le=_p(Le);var y=sh.test(Le);return y||Oc.test(Le)?Zh(Le.slice(2),y?2:8):Hf.test(Le)?NaN:+Le},zo=Math.max,L=Math.min,U=function(Le,d,y){var E,Z,re,pe,Ie,Je,zt=0,ln=!1,Kn=!1,pr=!0;if(typeof Le!="function")throw new TypeError("Expected a function");function si(Mo){var oo=E,Vs=Z;return E=Z=void 0,zt=Mo,pe=Le.apply(Vs,oo)}function yi(Mo){var oo=Mo-Je;return Je===void 0||oo>=d||0>oo||Kn&&Mo-zt>=re}function Do(){var Mo=yf();if(yi(Mo))return Co(Mo);Ie=setTimeout(Do,function(oo){var Vs=d-(oo-Je);return Kn?L(Vs,re-(oo-zt)):Vs}(Mo))}function Co(Mo){return Ie=void 0,pr&&E?si(Mo):(E=Z=void 0,pe)}function Uo(){var Mo=yf(),oo=yi(Mo);if(E=arguments,Z=this,Je=Mo,oo){if(Ie===void 0)return function(Vs){return zt=Vs,Ie=setTimeout(Do,d),ln?si(Vs):pe}(Je);if(Kn)return clearTimeout(Ie),Ie=setTimeout(Do,d),si(Je)}return Ie===void 0&&(Ie=setTimeout(Do,d)),pe}return d=$d(d)||0,Mp(y)&&(ln=!!y.leading,re=(Kn="maxWait"in y)?zo($d(y.maxWait)||0,d):re,pr="trailing"in y?!!y.trailing:pr),Uo.cancel=function(){Ie!==void 0&&clearTimeout(Ie),zt=0,E=Je=Z=Ie=void 0},Uo.flush=function(){return Ie===void 0?pe:Co(yf())},Uo},ae=function(Le){Zo(y,Le);var d=ba(y);function y(){var E;yn(this,y);for(var Z=arguments.length,re=Array(Z),pe=0;Z>pe;pe++)re[pe]=arguments[pe];return(E=d.call.apply(d,[this].concat(re))).onMouseMove=function(Ie){E.emit(v.RenderEvent.Mousemove,Ie)},E.onMouseOut=function(Ie){E.emit(v.RenderEvent.Mouseout,Ie)},E.onMouseDown=function(Ie){E.emit(v.RenderEvent.Dragstart,Ie)},E.onDragging=function(Ie){E.emit(v.RenderEvent.Dragging,Ie)},E.onDragEnd=U(function(Ie){E.emit(v.RenderEvent.Dragend,Ie)},0),E.onUnClick=function(Ie){E.emit(v.RenderEvent.UnClick,Ie)},E.enableHover=function(){var Ie,Je;E.disableHover(),(Ie=E.layers[0])===null||Ie===void 0||Ie.on(v.LayerEvent.Mousemove,E.onMouseMove),(Je=E.layers[0])===null||Je===void 0||Je.on(v.LayerEvent.Mouseout,E.onMouseOut)},E.disableHover=function(){var Ie,Je;(Ie=E.layers[0])===null||Ie===void 0||Ie.off(v.LayerEvent.Mousemove,E.onMouseMove),(Je=E.layers[0])===null||Je===void 0||Je.off(v.LayerEvent.Mouseout,E.onMouseOut)},E}return Yr(y,[{key:"initLayers",value:function(){var E=this.style,Z=E.normal,re=E.hover,pe=E.active,Ie=E.style,Je=E.options;return[new M.LineLayer(Je!=null?Je:{}).source(Ps([])).size("isHover*isActive",function(zt,ln){return ln?pe.size:zt?re.size:Z.size}).color("isHover*isActive",function(zt,ln){return ln?pe.color:zt?re.color:Z.color}).shape("line").style(Ie)]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(v.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(v.LayerEvent.UnClick,this.onUnClick)}}]),y}(kp),me=function(Le){Zo(y,Le);var d=ba(y);function y(){var E;yn(this,y);for(var Z=arguments.length,re=Array(Z),pe=0;Z>pe;pe++)re[pe]=arguments[pe];return(E=d.call.apply(d,[this].concat(re))).onMouseMove=function(Ie){E.emit(v.RenderEvent.Mousemove,Ie)},E.onMouseOut=function(Ie){E.emit(v.RenderEvent.Mouseout,Ie)},E.onMouseDown=function(Ie){E.emit(v.RenderEvent.Click,Ie)},E}return Yr(y,[{key:"initLayers",value:function(){var E=this.style,Z=E.normal,re=E.style,pe=re===void 0?{}:re,Ie=E.options,Je=Z.shape,zt=Z.size,ln=Z.color;return[new M.PointLayer(Ie!=null?Ie:{}).source(Ps([])).size(zt).color(ln).shape(Je).style(pe)]}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown)}},{key:"disableClick",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown)}},{key:"enableHover",value:function(){var E,Z;this.disableHover(),(E=this.layers[0])===null||E===void 0||E.on(v.LayerEvent.Mousemove,this.onMouseMove),(Z=this.layers[0])===null||Z===void 0||Z.on(v.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var E,Z;(E=this.layers[0])===null||E===void 0||E.off(v.LayerEvent.Mousemove,this.onMouseMove),(Z=this.layers[0])===null||Z===void 0||Z.off(v.LayerEvent.Mouseout,this.onMouseOut)}}]),y}(kp),ot=function(Le){Zo(y,Le);var d=ba(y);function y(){var E;yn(this,y);for(var Z=arguments.length,re=Array(Z),pe=0;Z>pe;pe++)re[pe]=arguments[pe];return(E=d.call.apply(d,[this].concat(re))).onCreate=function(Ie){E.emit(v.RenderEvent.UnClick,Ie)},E.onMouseMove=function(Ie){E.emit(v.RenderEvent.Mousemove,Ie)},E.onMouseOut=function(Ie){E.emit(v.RenderEvent.Mouseout,Ie)},E.onMouseDown=function(Ie){E.emit(v.RenderEvent.Dragstart,Ie)},E.onDragging=function(Ie){E.emit(v.RenderEvent.Dragging,Ie)},E.onDragEnd=U(function(Ie){E.emit(v.RenderEvent.Dragend,Ie)},0),E.onClick=function(Ie){E.emit(v.RenderEvent.Click,Ie)},E.onContextmenu=function(Ie){E.emit(v.RenderEvent.Contextmenu,Ie)},E}return Yr(y,[{key:"initLayers",value:function(){var E=this.style,Z=E.normal,re=E.hover,pe=E.active,Ie=E.style,Je=Ie===void 0?{}:Ie,zt=E.options;return[new M.PointLayer(zt!=null?zt:{}).source(Ps([])).size("isHover*isActive",function(ln,Kn){return Kn?pe.size:ln?re.size:Z.size}).color("isHover*isActive",function(ln,Kn){return Kn?pe.color:ln?re.color:Z.color}).shape("isHover*isActive",function(ln,Kn){return Kn?pe.shape:ln?re.shape:Z.shape}).style(Je)]}},{key:"enableCreate",value:function(){this.disableCreate(),this.layers[0].on(v.LayerEvent.UnClick,this.onCreate)}},{key:"disableCreate",value:function(){this.layers[0].off(v.LayerEvent.UnClick,this.onCreate)}},{key:"enableHover",value:function(){var E,Z;this.disableHover(),(E=this.layers[0])===null||E===void 0||E.on(v.LayerEvent.Mousemove,this.onMouseMove),(Z=this.layers[0])===null||Z===void 0||Z.on(v.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var E,Z;(E=this.layers[0])===null||E===void 0||E.off(v.LayerEvent.Mousemove,this.onMouseMove),(Z=this.layers[0])===null||Z===void 0||Z.off(v.LayerEvent.Mouseout,this.onMouseOut)}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(v.LayerEvent.Click,this.onClick)}},{key:"disableClick",value:function(){this.layers[0].off(v.LayerEvent.Click,this.onClick)}},{key:"enableContextMenu",value:function(){this.disableContextMenu(),this.layers[0].on(v.LayerEvent.Contextmenu,this.onContextmenu)}},{key:"disableContextMenu",value:function(){this.layers[0].off(v.LayerEvent.Contextmenu,this.onContextmenu)}}]),y}(kp),dn=function(Le){Zo(y,Le);var d=ba(y);function y(){var E;yn(this,y);for(var Z=arguments.length,re=Array(Z),pe=0;Z>pe;pe++)re[pe]=arguments[pe];return(E=d.call.apply(d,[this].concat(re))).onMouseMove=function(Ie){E.emit(v.RenderEvent.Mousemove,Ie)},E.onMouseOut=function(Ie){E.emit(v.RenderEvent.Mouseout,Ie)},E.onMouseDown=function(Ie){E.emit(v.RenderEvent.Dragstart,Ie)},E.onDragging=function(Ie){E.emit(v.RenderEvent.Dragging,Ie)},E.onDragEnd=U(function(Ie){E.emit(v.RenderEvent.Dragend,Ie)},0),E.onUnClick=function(Ie){E.emit(v.RenderEvent.UnClick,Ie)},E.enableHover=function(){var Ie,Je;E.disableHover(),(Ie=E.layers[0])===null||Ie===void 0||Ie.on(v.LayerEvent.Mousemove,E.onMouseMove),(Je=E.layers[0])===null||Je===void 0||Je.on(v.LayerEvent.Mouseout,E.onMouseOut)},E.disableHover=function(){var Ie,Je;(Ie=E.layers[0])===null||Ie===void 0||Ie.off(v.LayerEvent.Mousemove,E.onMouseMove),(Je=E.layers[0])===null||Je===void 0||Je.off(v.LayerEvent.Mouseout,E.onMouseOut)},E}return Yr(y,[{key:"initLayers",value:function(){var E=this.style,Z=E.normal,re=E.hover,pe=E.active,Ie=E.style,Je=E.options,zt=new M.PolygonLayer(Je!=null?Je:{});return zt.source(Ps([])).color("isHover*isActive",function(ln,Kn){return Kn?pe.color:ln?re.color:Z.color}).style(Ie),[zt]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(v.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(v.LayerEvent.UnClick,this.onUnClick)}}]),y}(kp),tr=function(Le){Zo(y,Le);var d=ba(y);function y(E){var Z;return yn(this,y),(Z=d.call(this)).scene=void 0,Z.previousClick=void 0,Z.onDblClick=function(re){var pe,Ie,Je=(pe=(Ie=re.pixel)!==null&&Ie!==void 0?Ie:re.point)!==null&&pe!==void 0?pe:{},zt=Je.x,ln=zt===void 0?0:zt,Kn=Je.y,pr=Kn===void 0?0:Kn,si=Date.now();if(Z.previousClick){var yi=Z.previousClick,Do=yi.y;300>si-yi.time&&5>Math.abs(ln-yi.x)&&5>Math.abs(pr-Do)&&Z.emit(v.RenderEvent.DblClick,re)}Z.previousClick={x:ln,y:pr,time:si}},Z.onMouseMove=function(re){Z.emit(v.RenderEvent.Mousemove,re)},Z.onMouseDown=function(re){Z.emit(v.RenderEvent.Dragstart,re)},Z.onDragging=function(re){Z.emit(v.RenderEvent.Dragging,re)},Z.onDragEnd=U(function(re){Z.emit(v.RenderEvent.Dragend,re)},0),Z.scene=E,Z}return Yr(y,[{key:"enableDrag",value:function(){this.disableDrag(),this.scene.on(v.SceneEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.scene.off(v.SceneEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableMouseMove",value:function(){this.disableMouseMove(),this.scene.on(v.SceneEvent.Mousemove,this.onMouseMove)}},{key:"disableMouseMove",value:function(){this.scene.off(v.SceneEvent.Mousemove,this.onMouseMove)}},{key:"enableDblClick",value:function(){this.disableDblClick(),this.scene.on(v.SceneEvent.Mousedown,this.onDblClick)}},{key:"disableDblClick",value:function(){this.scene.off(v.SceneEvent.Mousedown,this.onDblClick)}}]),y}(Bh),Te=function(Le){Zo(y,Le);var d=ba(y);function y(){return yn(this,y),d.apply(this,arguments)}return Yr(y,[{key:"initLayers",value:function(){var E=this.style,Z=E.normal,re=E.active,pe=E.style,Ie=pe===void 0?{}:pe,Je=E.options;return[new M.PointLayer(Je!=null?Je:{}).source(Ps([])).size("isActive",function(zt){return zt?re.size:Z.size}).color("isActive",function(zt){return zt?re.color:Z.color}).shape("text","text").style(Ie)]}}]),y}(kp),D={point:ot,line:ae,dashLine:pg,midPoint:me,text:Te,polygon:dn},ie="#1990FF",we="#ED9D48",Oe={blend:"normal",pickingBuffer:5},ut={color:ie,shape:"circle",size:6},Zt={color:we,shape:"circle",size:6},tn={shape:"circle",size:6,color:we},kn={options:Oe,normal:ut,hover:wt(wt({},ut),{},{size:8}),active:wt(wt({},ut),{},{size:8,color:we}),style:{stroke:"#ffffff",strokeWidth:2}},xr={options:Oe,normal:Zt,hover:wt(wt({},Zt),{},{size:8}),active:wt(wt({},Zt),{},{size:8}),style:{stroke:"#ffffff",strokeWidth:2}},G={color:ie,size:12},te={point:xr,line:{options:Oe,normal:{color:ie,size:2},hover:{color:ie,size:2},active:{color:we,size:2},style:{}},polygon:{options:Oe,normal:{color:ie},hover:{color:ie},active:{color:we},style:{opacity:.15}},midPoint:{options:Oe,normal:tn},dashLine:{options:Oe,normal:{color:we,size:2},style:{lineType:"dash",dashArray:[6,6]}},text:{options:Oe,normal:G,active:wt(wt({},G),{},{color:we}),style:{fontWeight:"800",textOffset:[0,G.size+6],textAllowOverlap:!0,stroke:"#ffffff",strokeWidth:2}}},ne=function(Le,d){return Le===d||Le!=Le&&d!=d},ce=function(Le,d){for(var y=Le.length;y--;)if(ne(Le[y][0],d))return y;return-1},Ze=Array.prototype.splice,vt=function(Le){var d=this.__data__,y=ce(d,Le);return y>=0&&(y==d.length-1?d.pop():Ze.call(d,y,1),--this.size,!0)},Pt=function(Le){var d=this.__data__,y=ce(d,Le);return 0>y?void 0:d[y][1]},gn=function(Le){return ce(this.__data__,Le)>-1},dr=function(Le,d){var y=this.__data__,E=ce(y,Le);return 0>E?(++this.size,y.push([Le,d])):y[E][1]=d,this};function _n(Le){var d=-1,y=Le==null?0:Le.length;for(this.clear();++dE.length)return E.push([Le,d]),this.size=++y.size,this;y=this.__data__=new ah(E)}return y.set(Le,d),this.size=y.size,this};function Hh(Le){var d=this.__data__=new ii(Le);this.size=d.size}Hh.prototype.clear=Si,Hh.prototype.delete=Vi,Hh.prototype.get=Fo,Hh.prototype.has=Go,Hh.prototype.set=ch;var Cc=Hh,cd=function(Le,d){for(var y=-1,E=Le==null?0:Le.length;++y-1&&Le%1==0&&d>Le},rm=function(Le){return typeof Le=="number"&&Le>-1&&Le%1==0&&9007199254740991>=Le},Wf={};Wf["[object Float32Array]"]=Wf["[object Float64Array]"]=Wf["[object Int8Array]"]=Wf["[object Int16Array]"]=Wf["[object Int32Array]"]=Wf["[object Uint8Array]"]=Wf["[object Uint8ClampedArray]"]=Wf["[object Uint16Array]"]=Wf["[object Uint32Array]"]=!0,Wf["[object Arguments]"]=Wf["[object Array]"]=Wf["[object ArrayBuffer]"]=Wf["[object Boolean]"]=Wf["[object DataView]"]=Wf["[object Date]"]=Wf["[object Error]"]=Wf["[object Function]"]=Wf["[object Map]"]=Wf["[object Number]"]=Wf["[object Object]"]=Wf["[object RegExp]"]=Wf["[object Set]"]=Wf["[object String]"]=Wf["[object WeakMap]"]=!1;var fd=function(Le){return yd(Le)&&rm(Le.length)&&!!Wf[Df(Le)]},Am=function(Le){return function(d){return Le(d)}},um=Ed(function(Le,d){var y=d&&!d.nodeType&&d,E=y&&Le&&!Le.nodeType&&Le,Z=E&&E.exports===y&&bd.process,re=function(){try{var pe=E&&E.require&&E.require("util").types;return pe||Z&&Z.binding&&Z.binding("util")}catch(Ie){}}();Le.exports=re}),l0=um&&um.isTypedArray,Jg=l0?Am(l0):fd,zm=Object.prototype.hasOwnProperty,Hm=function(Le,d){var y=Cp(Le),E=!y&&eg(Le),Z=!y&&!E&&Xd(Le),re=!y&&!E&&!Z&&Jg(Le),pe=y||E||Z||re,Ie=pe?Lg(Le.length,String):[],Je=Ie.length;for(var zt in Le)!d&&!zm.call(Le,zt)||pe&&(zt=="length"||Z&&(zt=="offset"||zt=="parent")||re&&(zt=="buffer"||zt=="byteLength"||zt=="byteOffset")||Ag(zt,Je))||Ie.push(zt);return Ie},am=Object.prototype,Sg=function(Le){var d=Le&&Le.constructor;return Le===(typeof d=="function"&&d.prototype||am)},Qg=function(Le,d){return function(y){return Le(d(y))}},m0=Qg(Object.keys,Object),cm=Object.prototype.hasOwnProperty,em=function(Le){if(!Sg(Le))return m0(Le);var d=[];for(var y in Object(Le))cm.call(Le,y)&&y!="constructor"&&d.push(y);return d},kg=function(Le){return Le!=null&&rm(Le.length)&&!Vo(Le)},Cm=function(Le){return kg(Le)?Hm(Le):em(Le)},dg=function(Le,d){return Le&&xp(d,Cm(d),Le)},F0=function(Le){var d=[];if(Le!=null)for(var y in Object(Le))d.push(y);return d},Gf=Object.prototype.hasOwnProperty,gp=function(Le){if(!Mp(Le))return F0(Le);var d=Sg(Le),y=[];for(var E in Le)(E!="constructor"||!d&&Gf.call(Le,E))&&y.push(E);return y},pf=function(Le){return kg(Le)?Hm(Le,!0):gp(Le)},v0=function(Le,d){return Le&&xp(d,pf(d),Le)},y0=Ed(function(Le,d){var y=d&&!d.nodeType&&d,E=y&&Le&&!Le.nodeType&&Le,Z=E&&E.exports===y?Ih.Buffer:void 0,re=Z?Z.allocUnsafe:void 0;Le.exports=function(pe,Ie){if(Ie)return pe.slice();var Je=pe.length,zt=re?re(Je):new pe.constructor(Je);return pe.copy(zt),zt}}),tm=function(Le,d){var y=-1,E=Le.length;for(d||(d=Array(E));++yIe))return!1;var zt=re.get(Le),ln=re.get(d);if(zt&&ln)return zt==d&&ln==Le;var Kn=-1,pr=!0,si=2&y?new Ja:void 0;for(re.set(Le,d),re.set(d,Le);++Kn0){if(++d>=800)return arguments[0]}else d=0;return Le.apply(void 0,arguments)}},Rl=ru(qh?function(Le,d){return qh(Le,"toString",{configurable:!0,enumerable:!1,value:ea(d),writable:!0})}:Ol),ha=function(Le,d){return Rl(Ko(Le,d,Ol),Le+"")},pu=function(Le,d,y){if(!Mp(y))return!1;var E=typeof d;return!!(E=="number"?kg(y)&&Ag(d,y.length):E=="string"&&d in y)&&ne(y[d],Le)},Kl=function(Le){return ha(function(d,y){var E=-1,Z=y.length,re=Z>1?y[Z-1]:void 0,pe=Z>2?y[2]:void 0;for(re=Le.length>3&&typeof re=="function"?(Z--,re):void 0,pe&&pu(y[0],y[1],pe)&&(re=3>Z?void 0:re,Z=1),d=Object(d);++E":".","?":"/","|":"\\"},Je={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},zt=1;20>zt;++zt)re[111+zt]="f"+zt;for(zt=0;9>=zt;++zt)re[zt+96]=""+zt;Co.prototype.bind=function(Uo,Mo,oo){var Vs=this;return Vs._bindMultiple.call(Vs,Uo=Uo instanceof Array?Uo:[Uo],Mo,oo),Vs},Co.prototype.unbind=function(Uo,Mo){return this.bind.call(this,Uo,function(){},Mo)},Co.prototype.trigger=function(Uo,Mo){var oo=this;return oo._directMap[Uo+":"+Mo]&&oo._directMap[Uo+":"+Mo]({},Uo),oo},Co.prototype.reset=function(){var Uo=this;return Uo._callbacks={},Uo._directMap={},Uo},Co.prototype.stopCallback=function(Uo,Mo){if((" "+Mo.className+" ").indexOf(" mousetrap ")>-1||Do(Mo,this.target))return!1;if("composedPath"in Uo&&typeof Uo.composedPath=="function"){var oo=Uo.composedPath()[0];oo!==Uo.target&&(Mo=oo)}return Mo.tagName=="INPUT"||Mo.tagName=="SELECT"||Mo.tagName=="TEXTAREA"||Mo.isContentEditable},Co.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},Co.addKeycodes=function(Uo){for(var Mo in Uo)Uo.hasOwnProperty(Mo)&&(re[Mo]=Uo[Mo]);Z=null},Co.init=function(){var Uo=Co(y);for(var Mo in Uo)Mo.charAt(0)!=="_"&&(Co[Mo]=function(oo){return function(){return Uo[oo].apply(Uo,arguments)}}(Mo))},Co.init(),d.Mousetrap=Co,Le.exports&&(Le.exports=Co)}function ln(Uo,Mo,oo){Uo.addEventListener?Uo.addEventListener(Mo,oo,!1):Uo.attachEvent("on"+Mo,oo)}function Kn(Uo){if(Uo.type=="keypress"){var Mo=String.fromCharCode(Uo.which);return Uo.shiftKey||(Mo=Mo.toLowerCase()),Mo}return re[Uo.which]?re[Uo.which]:pe[Uo.which]?pe[Uo.which]:String.fromCharCode(Uo.which).toLowerCase()}function pr(Uo){return Uo=="shift"||Uo=="ctrl"||Uo=="alt"||Uo=="meta"}function si(Uo,Mo,oo){return oo||(oo=function(){if(!Z)for(var Vs in Z={},re)Vs>95&&112>Vs||re.hasOwnProperty(Vs)&&(Z[re[Vs]]=Vs);return Z}()[Uo]?"keydown":"keypress"),oo=="keypress"&&Mo.length&&(oo="keydown"),oo}function yi(Uo,Mo){var oo,Vs,Ta,cl=[];for(oo=function(ou){return ou==="+"?["+"]:(ou=ou.replace(/\+{2}/g,"+plus")).split("+")}(Uo),Ta=0;oo.length>Ta;++Ta)Je[Vs=oo[Ta]]&&(Vs=Je[Vs]),Mo&&Mo!="keypress"&&Ie[Vs]&&(Vs=Ie[Vs],cl.push("shift")),pr(Vs)&&cl.push(Vs);return{key:Vs,modifiers:cl,action:Mo=si(Vs,cl,Mo)}}function Do(Uo,Mo){return Uo!==null&&Uo!==y&&(Uo===Mo||Do(Uo.parentNode,Mo))}function Co(Uo){var Mo=this;if(Uo=Uo||y,!(Mo instanceof Co))return new Co(Uo);Mo.target=Uo,Mo._callbacks={},Mo._directMap={};var oo,Vs={},Ta=!1,cl=!1,ou=!1;function Tu(rr){rr=rr||{};var Dr,ni=!1;for(Dr in Vs)rr[Dr]?ni=!0:Vs[Dr]=0;ni||(ou=!1)}function Cu(rr,Dr,ni,so,Ws,La){var Is,nl,tu,Ds=[],xc=ni.type;if(!Mo._callbacks[rr])return[];for(xc=="keyup"&&pr(rr)&&(Dr=[rr]),Is=0;Mo._callbacks[rr].length>Is;++Is)nl=Mo._callbacks[rr][Is],(so||!nl.seq||Vs[nl.seq]==nl.level)&&xc==nl.action&&(xc=="keypress"&&!ni.metaKey&&!ni.ctrlKey||(tu=nl.modifiers,Dr.sort().join(",")===tu.sort().join(",")))&&((!so&&nl.combo==Ws||so&&nl.seq==so&&nl.level==La)&&Mo._callbacks[rr].splice(Is,1),Ds.push(nl));return Ds}function Hc(rr,Dr,ni,so){Mo.stopCallback(Dr,Dr.target||Dr.srcElement,ni,so)||rr(Dr,ni)===!1&&(function(Ws){Ws.preventDefault?Ws.preventDefault():Ws.returnValue=!1}(Dr),function(Ws){Ws.stopPropagation?Ws.stopPropagation():Ws.cancelBubble=!0}(Dr))}function bu(rr){typeof rr.which!="number"&&(rr.which=rr.keyCode);var Dr=Kn(rr);Dr&&(rr.type!="keyup"||Ta!==Dr?Mo.handleKey(Dr,function(ni){var so=[];return ni.shiftKey&&so.push("shift"),ni.altKey&&so.push("alt"),ni.ctrlKey&&so.push("ctrl"),ni.metaKey&&so.push("meta"),so}(rr),rr):Ta=!1)}function Dc(rr,Dr,ni,so){function Ws(tu){return function(){ou=tu,++Vs[rr],clearTimeout(oo),oo=setTimeout(Tu,1e3)}}function La(tu){Hc(ni,tu,rr),so!=="keyup"&&(Ta=Kn(tu)),setTimeout(Tu,10)}Vs[rr]=0;for(var Is=0;Dr.length>Is;++Is){var nl=Is+1===Dr.length?La:Ws(so||yi(Dr[Is+1]).action);Sn(Dr[Is],nl,so,rr,Is)}}function Sn(rr,Dr,ni,so,Ws){Mo._directMap[rr+":"+ni]=Dr;var La,Is=(rr=rr.replace(/\s+/g," ")).split(" ");Is.length>1?Dc(rr,Is,Dr,ni):(La=yi(rr,ni),Mo._callbacks[La.key]=Mo._callbacks[La.key]||[],Cu(La.key,La.modifiers,{type:La.action},so,rr,Ws),Mo._callbacks[La.key][so?"unshift":"push"]({callback:Dr,modifiers:La.modifiers,action:La.action,seq:so,level:Ws,combo:rr}))}Mo._handleKey=function(rr,Dr,ni){var so,Ws=Cu(rr,Dr,ni),La={},Is=0,nl=!1;for(so=0;Ws.length>so;++so)Ws[so].seq&&(Is=Math.max(Is,Ws[so].level));for(so=0;Ws.length>so;++so)if(Ws[so].seq){if(Ws[so].level!=Is)continue;nl=!0,La[Ws[so].seq]=1,Hc(Ws[so].callback,ni,Ws[so].combo,Ws[so].seq)}else nl||Hc(Ws[so].callback,ni,Ws[so].combo);var tu=ni.type=="keypress"&&cl;ni.type!=ou||pr(rr)||tu||Tu(La),cl=nl&&ni.type=="keydown"},Mo._bindMultiple=function(rr,Dr,ni){for(var so=0;rr.length>so;++so)Sn(rr[so],Dr,ni)},ln(Uo,"keypress",bu),ln(Uo,"keydown",bu),ln(Uo,"keyup",bu)}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)}),Xc,vc=function(Le){return Le&&Le.length?Le[0]:void 0},Qa=(Xc=1,function(Le){return"".concat(Le,"-").concat(Xc++)}),hd=function(Le,d){var y,E;return!(!Le||!d||((y=Le.properties)===null||y===void 0?void 0:y.id)!==((E=d.properties)===null||E===void 0?void 0:E.id))},Ge=function(Le){var d=Le.target,y=Le.targetHandler,E=Le.otherHandler;return Le.data.map(function(Z,re){var pe,Ie=hd(Z,d)?y:E;return(pe=Ie==null?void 0:Ie(Z,re))!==null&&pe!==void 0?pe:Z})},He=function(){return{id:Qa("point"),isHover:!1,isActive:!1,isDrag:!1,createTime:Date.now()}},pt=function(){return{id:Qa("line"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},Rn=function(){return{id:Qa("polygon"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},ui=function(Le){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ds(Le,wt(wt({},He()),d))},Yn=function(Le){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:wt(wt({},pt()),{},{nodes:Le},d),geometry:{type:"LineString",coordinates:Qi(Ps(Le))}}},Ci=function(Le){return Jo(Le,{id:Qa("dashLine")})},xo=function(Le){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:wt(wt({},Rn()),{},{nodes:Le},d),geometry:{type:"Polygon",coordinates:[Qi(Ps([].concat(js(Le),[vc(Le)])))]}}},oa=function(Le){return function(d,y,E){E===void 0&&(E={});for(var Z=tl(d).coordinates,re=0,pe=0;Z.length>pe&&(re>y||pe!==Z.length-1);pe++){if(re>=y){var Ie=y-re;if(Ie){var Je=Aa(Z[pe],Z[pe-1])-180;return md(Z[pe],Ie,Je,E)}return ds(Z[pe])}re+=Pu(Z[pe],Z[pe+1],E)}return ds(Z[Z.length-1])}(Le,ap(Le,{units:"meters"})/2,{units:"meters"})},Ca=function(Le,d){var y=d.format,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Z=[];if(d.showTotalDistance){var re=oa(Le),pe=ap(Le,{units:"meters"});re.properties=wt({id:Qa("text"),isActive:!1,meters:pe,text:y(pe),type:"totalDistance"},E),Z.push(re)}else for(var Ie=Le.geometry.coordinates,Je=0;Ie.length-1>Je;Je++){var zt=ds(Ie[Je]),ln=ds(Ie[Je+1]),Kn=Pu(zt,ln,{units:"meters"}),pr=_u(Ps([zt,ln]));pr.properties=wt({id:Qa("text"),isActive:!1,meters:Kn,text:y(Kn),type:"distance"},E),Z.push(pr)}return Z},bl=function(Le,d){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},E=d.format,Z=vg(Le);return Ou(Le,{properties:wt({meters:Z,text:E(Z),type:"area",isActive:!1},y)})},Fu=function(Le){var d,y,E=Le.getContainer();return(d=(y=E==null?void 0:E.querySelector(".l7-marker-container"))!==null&&y!==void 0?y:E==null?void 0:E.querySelector(".amap-maps"))!==null&&d!==void 0?d:null},sc=function(Le){return Le.lngLat||Le.lnglat},Fc=function(Le){var d=sc(Le);return[d.lng,d.lat]},fa=function(Le){return[Le.lng,Le.lat]},wl=function(Le){for(var d=Number.MAX_SAFE_INTEGER,y=0,E=Le.length,Z=0;E>Z;Z++)d>Le[Z]&&(d=Le[Z],y=Z);return y},Fr=function(Le,d){var y=[],E=[];return Le.forEach(function(Z){Ke(Z,d)?E.length&&(y.push(E),E=[]):E.push(Z)}),E.length&&y.push(E),y},fl=function(Le,d,y){var E=[],Z=[],re=[];return E=Le==="allDrawData"?wa.instances.map(function(pe){return pe.getData()}).flat():Le==="drawData"?d.getData():Le instanceof Function?Le(y):Le,E.length&&(Z=E.map(function(pe){var Ie,Je=(Ie=pe.properties)!==null&&Ie!==void 0?Ie:{},zt=Je.nodes,ln=zt===void 0?[]:zt,Kn=Je.isActive;return Kn!==void 0&&Kn?ln.filter(function(pr){return!Ke(pr.geometry.coordinates,y)}):ln}).flat().filter(function(pe){return pe}),Z.length||(Z=Qi(Ps(E)).map(function(pe){return ds(pe)})),re=E.map(function(pe){var Ie,Je,zt=(Ie=pe.properties)===null||Ie===void 0?void 0:Ie.line;return!((Je=pe.properties)===null||Je===void 0)&&Je.isActive&&zt?Fr(zt.properties.nodes.map(function(ln){return ln.geometry.coordinates}),y).filter(function(ln){return ln.length>1}).map(function(ln){return Jo(ln)}):[zt]}).flat().filter(function(pe){return pe}),re.length||E.forEach(function(pe){var Ie=cu(pe);if(/linestring/i.test(Ie)&&re.push(pe),/polygon/i.test(Ie)){var Je,zt,ln=yg(pe);return(Je=re).push.apply(Je,js((zt=ln==null?void 0:ln.features)!==null&&zt!==void 0?zt:[ln]))}})),{points:Z,lines:re}},Ga=function(Le,d,y,E){var Z=y.pointAdsorbPixel,re=No(Le,2),pe=E.lngLatToPixel([re[0],re[1]]),Ie=pe.x,Je=pe.y,zt=d.map(function(Kn){var pr=No(Kn.geometry.coordinates,2),si=E.lngLatToPixel([pr[0],pr[1]]),yi=si.y;return Math.pow(Ie-si.x,2)+Math.pow(Je-yi,2)}),ln=wl(zt);return Math.pow(zt[ln],.5)>Z?null:d[ln].geometry.coordinates},ku=function(Le,d,y,E){var Z=y.lineAdsorbPixel,re=No(Le,2),pe=E.lngLatToPixel([re[0],re[1]]),Ie=pe.x,Je=pe.y,zt=d.filter(function(pr){return Qi(pr).length>1}).map(function(pr){return function(si,yi,Do){Do===void 0&&(Do={});var Co=ds([1/0,1/0],{dist:1/0}),Uo=0;return Ks(si,function(Mo){for(var oo=Ha(Mo),Vs=0;oo.length-1>Vs;Vs++){var Ta=ds(oo[Vs]);Ta.properties.dist=Pu(yi,Ta,Do);var cl=ds(oo[Vs+1]);cl.properties.dist=Pu(yi,cl,Do);var ou=Pu(Ta,cl,Do),Tu=Math.max(Ta.properties.dist,cl.properties.dist),Cu=Aa(Ta,cl),Hc=md(yi,Tu,Cu+90,Do),bu=md(yi,Tu,Cu-90,Do),Dc=uh(Jo([Hc.geometry.coordinates,bu.geometry.coordinates]),Jo([Ta.geometry.coordinates,cl.geometry.coordinates])),Sn=null;Dc.features.length>0&&((Sn=Dc.features[0]).properties.dist=Pu(yi,Sn,Do),Sn.properties.location=Uo+Pu(Ta,Sn,Do)),Co.properties.dist>Ta.properties.dist&&((Co=Ta).properties.index=Vs,Co.properties.location=Uo),Co.properties.dist>cl.properties.dist&&((Co=cl).properties.index=Vs+1,Co.properties.location=Uo+ou),Sn&&Co.properties.dist>Sn.properties.dist&&((Co=Sn).properties.index=Vs),Uo+=ou}}),Co}(pr,Le)});if(!zt.length)return null;var ln=zt.map(function(pr){var si=No(pr.geometry.coordinates,2),yi=E.lngLatToPixel([si[0],si[1]]),Do=yi.y;return Math.pow(Ie-yi.x,2)+Math.pow(Je-Do,2)}),Kn=wl(ln);return Math.pow(ln[Kn],.5)>Z?null:zt[Kn].geometry.coordinates},wh=function(Le,d){var y=No(d,2),E=y[0],Z=y[1];Le.lngLat&&(Le.lngLat={lng:E,lat:Z}),Le.lnglat&&(Le.lnglat={lng:E,lat:Z})},ws=function(){function Le(d,y){yn(this,Le),this.container=void 0,this.cursor=null,this.options=void 0,this.container=Fu(d),this.options=y}return Yr(Le,[{key:"setCursor",value:function(d){d!==this.cursor&&this.container&&(this.container.style.cursor=d?this.options[d]:"",this.cursor=d)}},{key:"destroy",value:function(){this.setCursor(null)}}]),Le}();function Xo(Le,d){d===void 0&&(d={});var y=d.insertAt;if(Le&&typeof document!="undefined"){var E=document.head||document.getElementsByTagName("head")[0],Z=document.createElement("style");Z.type="text/css",y==="top"&&E.firstChild?E.insertBefore(Z,E.firstChild):E.appendChild(Z),Z.styleSheet?Z.styleSheet.cssText=Le:Z.appendChild(document.createTextNode(Le))}}Xo('.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}'),Xo(".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 Ns=function(){function Le(d,y){var E=this;yn(this,Le),this.content="",this.tippy=void 0,this.scene=void 0,this.isMouseInner=!1,this.onMouseMove=function(){E.isMouseInner=!0,E.checkTippyShow()},this.onMouseOut=function(){E.isMouseInner=!1,E.checkTippyShow()},this.setContent=U(function(Z){E.content=Z!=null?Z:"",E.tippy.setContent(Z!=null?Z:""),E.checkTippyShow()},16,{maxWait:16}),this.tippy=El(Fu(d),wt(wt({},xt),y)),this.tippy.hide(),this.scene=d,d.on(v.SceneEvent.Mousemove,this.onMouseMove),d.on(v.SceneEvent.Mouseout,this.onMouseOut)}return Yr(Le,[{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(v.SceneEvent.Mousemove,this.onMouseMove),this.scene.off(v.SceneEvent.Mouseout,this.onMouseOut),this.tippy.destroy()}}]),Le}(),Xa=function(){function Le(d){var y=d.config;yn(this,Le),this.historyList=[],this.historyIndex=0,this.config=void 0,this.config=y}return Yr(Le,[{key:"save",value:function(d){if(this.config){var y=this.config.maxSize;this.historyIndex&&(this.historyList=this.historyList.slice(this.historyIndex),this.historyIndex=0),y>this.historyList.length||this.historyList.pop();var E=ts(d);return this.historyList.unshift(E),E}}},{key:"revert",value:function(){if(this.historyList.length&&this.historyList.length-1>this.historyIndex){var d=this.historyList[++this.historyIndex];return d?ts(d):void 0}}},{key:"redo",value:function(){if(this.historyList.length&&this.historyIndex>0){var d=this.historyList[--this.historyIndex];return d?ts(d):void 0}}}]),Le}(),sl=function(Le){Zo(y,Le);var d=ba(y);function y(E){var Z,re=E.data,pe=E.render,Ie=E.history,Je=E.scene;return yn(this,y),(Z=d.call(this)).scene=void 0,Z.render=void 0,Z.data=ts(x),Z.timeout=null,Z.diffData={},Z.history=void 0,Z.scene=Je,Z.render=pe,Ie&&(Z.history=new Xa({config:Ie})),re&&Z.setData(re),Z}return Yr(y,[{key:"saveHistory",value:function(){var E;return(E=this.history)===null||E===void 0?void 0:E.save(this.data)}},{key:"revertHistory",value:function(){var E,Z=(E=this.history)===null||E===void 0?void 0:E.revert();if(Z)return this.setData(Z),Z}},{key:"redoHistory",value:function(){var E,Z=(E=this.history)===null||E===void 0?void 0:E.redo();if(Z)return this.setData(Z),Z}},{key:"setData",value:function(E){var Z=this;return Object.keys(E).length&&(this.data=wt(wt({},this.data),E),this.diffData=wt(wt({},this.diffData),E),this.timeout||(this.timeout=requestAnimationFrame(function(){return Z.updateDiffData()})),this.emit(v.SourceEvent.Change,{data:this.data})),this.data}},{key:"getData",value:function(){return this.data}},{key:"getRenderData",value:function(E){return this.data[E]}},{key:"setRenderData",value:function(E,Z){var re=typeof Z=="function"?Z(this.getRenderData(E)):Z;return this.setData(eo({},E,re)),this.emit(v.SourceEvent.Change,this.data),re}},{key:"updateDiffData",value:function(){var E=this,Z=Object.entries(this.diffData);Z.length&&(Z.forEach(function(re){var pe,Ie=No(re,2),Je=Ie[0],zt=Ie[1];Array.isArray(zt)&&((pe=E.getRender(Je))===null||pe===void 0||pe.setData(zt))}),this.emit(v.SourceEvent.Update,this.data,this.diffData),this.diffData={},this.timeout=null,requestAnimationFrame(function(){E.scene.render()}))}},{key:"getRender",value:function(E){return this.render[E]}},{key:"clear",value:function(){this.setData(vs(Object.keys(this.render).map(function(E){return[E,[]]})))}}]),y}(Bh),wa=function(Le){Zo(y,Le);var d=ba(y);function y(E,Z){var re;yn(this,y),(re=d.call(this)).scene=void 0,re.source=void 0,re.render=void 0,re.cursor=void 0,re.options=void 0,re.enabled=!1,re.allowCreate=!1,re.sceneRender=void 0,re.mouseLngLat={lng:0,lat:0},re.popup=void 0,re.addCount=0,re.saveMouseLngLat=U(function(zt){re.mouseLngLat=sc(zt)},100,{maxWait:100}),re.saveHistory=U(function(){re.options.history&&re.source.saveHistory()},100),re.bindThis(),re.scene=E,re.sceneRender=new tr(E),re.options=xh({},re.getDefaultOptions(Z),Z),re.render=re.initRender(),re.source=new sl({render:re.render,history:re.options.history||void 0,scene:E}),re.cursor=new ws(E,re.options.cursor);var pe=re.options,Ie=pe.initialData,Je=pe.popup;return Ie&&re.setData(Ie),Je&&(re.popup=new Ns(E,Je instanceof Object?Je:{})),re.saveHistory(),re.bindCommonEvent(),re.emit(v.DrawEvent.Init,ks(re)),re.bindEnableEvent(),y.instances.push(ks(re)),re}return Yr(y,[{key:"addable",get:function(){var E=this.getData(),Z=this.options,re=Z.multiple,pe=Z.maxCount,Ie=E.find(function(Je){return Je.properties.isDraw});return!(!this.enabled||!this.allowCreate)&&(!!(re&&0>=pe||Ie)||!(!re&&this.addCount>=1)&&(0>=pe||pe>E.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(E){var Z,re,pe=this.options.helper;if(pe){var Ie=(Z=E in pe?pe[E]:E)!==null&&Z!==void 0?Z:null;(re=this.popup)===null||re===void 0||re.setContent(Ie)}}},{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 E=this;this.on(v.DrawEvent.Add,this.emitChangeEvent),this.on(v.DrawEvent.Add,function(){E.addCount++}),this.on(v.DrawEvent.Edit,this.emitChangeEvent),this.on(v.DrawEvent.Remove,this.emitChangeEvent),this.on(v.DrawEvent.Clear,this.emitChangeEvent),this.on(v.DrawEvent.AddNode,this.saveHistory),this.on(v.DrawEvent.RemoveNode,this.emitChangeEvent),this.bindEmitSelectEvent(!0)}},{key:"bindEmitSelectEvent",value:function(){var E=this,Z=arguments.length>0&&arguments[0]!==void 0&&arguments[0],re=null,pe=function(){var Ie,Je,zt,ln=E.getData().find(function(Kn){var pr;return(pr=Kn.properties)===null||pr===void 0?void 0:pr.isActive})||null;((Ie=re)===null||Ie===void 0||(Je=Ie.properties)===null||Je===void 0?void 0:Je.id)!==(ln==null||(zt=ln.properties)===null||zt===void 0?void 0:zt.id)&&(re=ln,E.emit(v.DrawEvent.Select,ln))};this.source.on(v.SourceEvent.Change,pe),Z&&pe()}},{key:"bindEnableEvent",value:function(){this.unbindKeyboardEvent(),this.scene.setMapStatus({doubleClickZoom:!1}),this.scene.on(v.SceneEvent.Mousemove,this.saveMouseLngLat),this.bindKeyboardEvent()}},{key:"unbindEnableEvent",value:function(){this.scene.setMapStatus({doubleClickZoom:!0}),this.scene.off(v.SceneEvent.Mousemove,this.saveMouseLngLat),this.unbindKeyboardEvent()}},{key:"bindKeyboardEvent",value:function(){var E=this,Z=this.options.keyboard||{},re=Z.revert,pe=Z.redo,Ie=Z.remove;Ie&&Au.bind(Ie,function(){E.removeActiveFeature()}),this.options.history&&(re&&Au.bind(re,this.revertHistory),pe&&Au.bind(pe,this.redoHistory))}},{key:"unbindKeyboardEvent",value:function(){var E=this.options.keyboard||{},Z=E.revert,re=E.redo,pe=E.remove;pe&&Au.unbind(pe),this.options.history&&(Z&&Au.unbind(Z),re&&Au.unbind(re))}},{key:"emitChangeEvent",value:function(){this.emit(v.DrawEvent.Change,this.getData()),this.saveHistory()}},{key:"revertHistory",value:function(){this.enabled&&this.options.history&&this.source.revertHistory()&&(this.correctDrawItem(),this.emit(v.DrawEvent.Change,this.getData()))}},{key:"redoHistory",value:function(){this.enabled&&this.options.history&&this.source.redoHistory()&&(this.correctDrawItem(),this.emit(v.DrawEvent.Change,this.getData()))}},{key:"getRenderLayers",value:function(){return vs(jc(this.render).map(function(E){var Z=No(E,2);return[Z[0],Z[1].getLayers()]}))}},{key:"getTargetFeature",value:function(E){var Z,re,pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getData(),Ie=null;return E&&(Ie=(Z=pe.find(function(Je){var zt;return Je.properties.id===(typeof E=="string"?E:(zt=E.properties)===null||zt===void 0?void 0:zt.id)}))!==null&&Z!==void 0?Z:null,!Ie&&E instanceof Object&&(Ie=(re=pe.find(function(Je){return Ke(E.geometry,Je.geometry)}))!==null&&re!==void 0?re:null)),Ie}},{key:"removeActiveFeature",value:function(){var E=this.getData().find(function(Z){var re=Z.properties;return re.isActive||re.isDraw});return E&&this.removeFeature(E),E}},{key:"removeFeature",value:function(E){var Z=this.getData(),re=this.getTargetFeature(E);re&&(this.setData(Z.filter(function(pe){return!hd(re,pe)})),this.emit(v.DrawEvent.Remove,E,this.getData()))}},{key:"correctDrawItem",value:function(){this.getData().find(function(E){return E.properties.isDraw})&&this.onSceneMouseMove({type:"mousemove",lnglat:this.mouseLngLat,lngLat:this.mouseLngLat})}},{key:"initRender",value:function(){var E,Z={},re=function(Ie,Je){var zt=typeof Symbol!="undefined"&&Ie[Symbol.iterator]||Ie["@@iterator"];if(!zt){if(Array.isArray(Ie)||(zt=ga(Ie))||Je&&Ie&&typeof Ie.length=="number"){zt&&(Ie=zt);var ln=0,Kn=function(){};return{s:Kn,n:function(){return Ie.length>ln?{done:!1,value:Ie[ln++]}:{done:!0}},e:function(Do){throw Do},f:Kn}}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 pr,si=!0,yi=!1;return{s:function(){zt=zt.call(Ie)},n:function(){var Do=zt.next();return si=Do.done,Do},e:function(Do){yi=!0,pr=Do},f:function(){try{si||zt.return==null||zt.return()}finally{if(yi)throw pr}}}}(this.getRenderTypes());try{for(re.s();!(E=re.n()).done;){var pe=E.value;Z[pe]=new D[pe](this.scene,{style:this.options.style[pe]})}}catch(Ie){re.e(Ie)}finally{re.f()}return Z}},{key:"getCommonOptions",value:function(E){return{initialData:[],autoActive:!0,cursor:ts(C),editable:!0,style:ts(te),multiple:!0,history:ts(ur),keyboard:ts(dt),popup:!0,helper:{},maxCount:-1}}},{key:"setCursor",value:function(E){this.cursor.setCursor(E)}},{key:"resetCursor",value:function(){this.setCursor(this.addable?"draw":null)}},{key:"enable",value:function(){var E=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(){E.emit(v.DrawEvent.Enable,E)},0)}},{key:"disable",value:function(){var E=this;this.resetFeatures(),this.enabled=!1,this.setCursor(null),this.unbindEnableEvent(),this.addCount=0,this.setHelper(null),setTimeout(function(){E.emit(v.DrawEvent.Disable,E)},0)}},{key:"clear",value:function(){var E=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.source.clear(),this.emit(v.DrawEvent.Clear,this),E&&this.disable()}},{key:"show",value:function(){return Object.values(this.render).forEach(function(E){E.show()})}},{key:"hide",value:function(){return Object.values(this.render).forEach(function(E){E.hide()})}},{key:"destroy",value:function(){var E,Z=this;Object.values(this.render).forEach(function(pe){pe.destroy()}),Object.values(v.RenderEvent).forEach(function(pe){Object.values(Z.render).forEach(function(Ie){Ie.removeAllListeners(pe)}),Z.sceneRender.removeAllListeners(pe)}),setTimeout(function(){Object.values(v.DrawEvent).forEach(function(pe){Z.removeAllListeners(pe)})},0),(E=this.popup)===null||E===void 0||E.destroy(),this.cursor.destroy(),this.emit(v.DrawEvent.Destroy,this);var re=y.instances.indexOf(this);re>-1&&y.instances.splice(re,1)}}]),y}(Bh);wa.instances=[];var Bs=function(Le){var d=Le==null?0:Le.length;return d?Le[d-1]:void 0},al=function(Le){Zo(y,Le);var d=ba(y);function y(){return yn(this,y),d.apply(this,arguments)}return Yr(y,[{key:"pointRender",get:function(){return this.render.point}},{key:"dragPoint",get:function(){return this.getPointData().find(function(E){return E.properties.isDrag})}},{key:"editPoint",get:function(){return this.getPointData().find(function(E){return E.properties.isActive})}},{key:"hoverPoint",get:function(){return this.getPointData().find(function(E){return E.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(E){return this.source.setRenderData("point",E)}},{key:"bindPointRenderEvent",value:function(){var E,Z,re,pe,Ie,Je;(E=this.pointRender)===null||E===void 0||E.on(v.RenderEvent.UnClick,this.onPointCreate.bind(this)),(Z=this.pointRender)===null||Z===void 0||Z.on(v.RenderEvent.Mousemove,this.onPointMouseMove.bind(this)),(re=this.pointRender)===null||re===void 0||re.on(v.RenderEvent.Mouseout,this.onPointMouseOut.bind(this)),(pe=this.pointRender)===null||pe===void 0||pe.on(v.RenderEvent.Dragstart,this.onPointDragStart.bind(this)),(Ie=this.pointRender)===null||Ie===void 0||Ie.on(v.RenderEvent.Dragging,this.onPointDragging.bind(this)),(Je=this.pointRender)===null||Je===void 0||Je.on(v.RenderEvent.Dragend,this.onPointDragEnd.bind(this))}},{key:"handleCreatePoint",value:function(E){var Z=this.options,re=Z.autoActive,pe=Z.editable,Ie=ui(E);return this.setPointData(function(Je){return Ge({target:Ie,data:[].concat(js(Je),[Ie]),targetHandler:function(zt){zt.properties=wt(wt({},zt.properties),{},{isHover:pe,isActive:re&&pe})},otherHandler:function(zt){zt.properties=wt(wt({},zt.properties),{},{isHover:!1,isActive:!1,isDrag:!1})}})}),Ie}},{key:"handlePointHover",value:function(E){return this.setCursor("pointHover"),hd(E,this.hoverPoint)||this.setPointData(function(Z){return Ge({target:E,data:Z,targetHandler:function(re){re.properties.isHover=!0},otherHandler:function(re){re.properties.isHover=!1}})}),E}},{key:"handlePointUnHover",value:function(E){return this.resetCursor(),this.setPointData(function(Z){return Z.map(function(re){return re.properties.isHover=!1,re})}),E}},{key:"handlePointDragStart",value:function(E){return this.setPointData(function(Z){return Ge({target:E,data:Z,targetHandler:function(re){re.properties=wt(wt({},re.properties),{},{isDrag:!0,isActive:!0})},otherHandler:function(re){re.properties=wt(wt({},re.properties),{},{isDrag:!1,isActive:!1})}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),E}},{key:"handlePointDragging",value:function(E,Z){return this.setPointData(function(re){return Ge({target:E,data:re,targetHandler:function(pe){pe.geometry.coordinates=fa(Z)}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),E}},{key:"handlePointDragEnd",value:function(E){return this.setPointData(function(Z){return Ge({target:E,data:Z,targetHandler:function(re){re.properties.isDrag=!1}})}),this.scene.setMapStatus({dragEnable:!0}),this.setCursor("pointHover"),E}},{key:"onPointCreate",value:function(E){return this.handleCreatePoint(fa(sc(E)))}},{key:"onPointMouseMove",value:function(E){return this.handlePointHover(E.feature)}},{key:"onPointMouseOut",value:function(E){return this.handlePointUnHover(E.feature)}},{key:"onPointDragStart",value:function(E){if(this.options.editable)return this.handlePointDragStart(E.feature)}},{key:"onPointDragging",value:function(E){var Z=this.dragPoint;if(this.options.editable&&Z)return this.handlePointDragging(Z,sc(E))}},{key:"onPointDragEnd",value:function(E){var Z=this.dragPoint;if(this.options.editable&&Z)return this.handlePointDragEnd(Z)}},{key:"enablePointRenderAction",value:function(){var E,Z,re,pe,Ie=this.options.editable;this.enabled&&((Z=this.pointRender)===null||Z===void 0||Z.enableCreate()),(E=this.pointRender)===null||E===void 0||E.enableClick(),Ie&&((re=this.pointRender)===null||re===void 0||re.enableHover(),(pe=this.pointRender)===null||pe===void 0||pe.enableDrag())}},{key:"disablePointRenderAction",value:function(){var E,Z,re,pe;(E=this.pointRender)===null||E===void 0||E.disableCreate(),(Z=this.pointRender)===null||Z===void 0||Z.disableHover(),(re=this.pointRender)===null||re===void 0||re.disableDrag(),(pe=this.pointRender)===null||pe===void 0||pe.disableClick()}}]),y}(wa),gs=function(Le){Zo(y,Le);var d=ba(y);function y(){return yn(this,y),d.apply(this,arguments)}return Yr(y,[{key:"midPointRender",get:function(){return this.render.midPoint}},{key:"getCommonOptions",value:function(E){return wt(wt({},Zs(Ii(y.prototype),"getCommonOptions",this).call(this,E)),{},{showMidPoint:!0})}},{key:"bindMidPointRenderEvent",value:function(){var E,Z,re;(E=this.midPointRender)===null||E===void 0||E.on(v.RenderEvent.Click,this.onMidPointClick.bind(this)),(Z=this.midPointRender)===null||Z===void 0||Z.on(v.RenderEvent.Mousemove,this.onMidPointHover.bind(this)),(re=this.midPointRender)===null||re===void 0||re.on(v.RenderEvent.Mouseout,this.onMidPointUnHover.bind(this))}},{key:"getMidPointData",value:function(){return this.source.getRenderData("midPoint")}},{key:"setMidPointData",value:function(E){return this.source.setRenderData("midPoint",E)}},{key:"getMidPointsByLine",value:function(E){var Z=E.properties.nodes;if(!this.options.showMidPoint||2>Z.length)return[];for(var re=[],pe=0;Z.length-1>pe;pe++){var Ie,Je,zt,ln,Kn=_u(Ps([Z[pe],Z[pe+1]]),{properties:{id:Qa("midPoint"),startId:(Ie=(Je=Z[pe].properties)===null||Je===void 0?void 0:Je.id)!==null&&Ie!==void 0?Ie:"",endId:(zt=(ln=Z[pe+1].properties)===null||ln===void 0?void 0:ln.id)!==null&&zt!==void 0?zt:""}});re.push(Kn)}return re}},{key:"onMidPointHover",value:function(E){this.setCursor("pointHover")}},{key:"onMidPointUnHover",value:function(E){this.resetCursor()}},{key:"enableMidPointRenderAction",value:function(){var E,Z;(E=this.midPointRender)===null||E===void 0||E.enableClick(),(Z=this.midPointRender)===null||Z===void 0||Z.enableHover()}},{key:"disableMidPointRenderAction",value:function(){var E,Z;(E=this.midPointRender)===null||E===void 0||E.disableClick(),(Z=this.midPointRender)===null||Z===void 0||Z.disableHover()}}]),y}(al),$s={draw:"\u5355\u51FB\u7ED8\u5236\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u70B9\u4F4D\u7F6E",pointDrag:null},As={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"},fo={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},Xi=wt(wt({},fo),{},{draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawFinish:"\u5355\u51FB\u7ED3\u675F\u7ED8\u5236"}),us={draw:"\u62D6\u62FD\u5F00\u59CB\u7ED8\u5236",drawFinish:"\u677E\u5F00\u9F20\u6807\u7ED3\u675F\u7ED8\u5236"},Qo={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E"},sa={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E"},$a=function(Le){Zo(y,Le);var d=ba(y);function y(){var E;yn(this,y);for(var Z=arguments.length,re=Array(Z),pe=0;Z>pe;pe++)re[pe]=arguments[pe];return(E=d.call.apply(d,[this].concat(re))).previousPosition=[0,0],E}return Yr(y,[{key:"lineRender",get:function(){return this.render.line}},{key:"dragLine",get:function(){return this.getLineData().find(function(E){return E.properties.isDrag})}},{key:"drawLine",get:function(){return this.getLineData().find(function(E){return E.properties.isDraw})}},{key:"editLine",get:function(){return this.getLineData().find(function(E){var Z=E.properties;return!Z.isDraw&&Z.isActive})}},{key:"hoverLine",get:function(){return this.getLineData().find(function(E){return E.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(E){var Z=wt(wt({},this.getCommonOptions(E)),{},{showMidPoint:!0,distanceOptions:!1,helper:ts(As)});return E.distanceOptions&&(Z.distanceOptions=wt(wt({},fn),Z.distanceOptions)),E.adsorbOptions&&(Z.adsorbOptions=wt(wt({},Et),Z.adsorbOptions)),Z}},{key:"getAdsorbPosition",value:function(E){var Z=this.options.adsorbOptions;if(typeof Z=="boolean")return E;var re=this.scene,pe=Z.pointAdsorbPixel,Ie=Z.lineAdsorbPixel,Je=null,zt=fl(Z.data,this,E),ln=zt.points,Kn=zt.lines;return ln.length&&pe>0&&(Je=Ga(E,ln,Z,re)),!Je&&Kn.length&&Ie>0&&(Je=ku(E,Kn,Z,re)),Je}},{key:"bindSceneEvent",value:function(){this.sceneRender.on(v.RenderEvent.Mousemove,this.onSceneMouseMove.bind(this))}},{key:"bindPointRenderEvent",value:function(){var E;Zs(Ii(y.prototype),"bindPointRenderEvent",this).call(this),(E=this.pointRender)===null||E===void 0||E.on(v.RenderEvent.Click,this.onPointClick.bind(this))}},{key:"bindLineRenderEvent",value:function(){var E,Z,re,pe,Ie,Je;(E=this.lineRender)===null||E===void 0||E.on(v.RenderEvent.UnClick,this.onLineUnClick.bind(this)),(Z=this.lineRender)===null||Z===void 0||Z.on(v.RenderEvent.Mousemove,this.onLineMouseMove.bind(this)),(re=this.lineRender)===null||re===void 0||re.on(v.RenderEvent.Mouseout,this.onLineMouseOut.bind(this)),(pe=this.lineRender)===null||pe===void 0||pe.on(v.RenderEvent.Dragstart,this.onLineDragStart.bind(this)),(Ie=this.lineRender)===null||Ie===void 0||Ie.on(v.RenderEvent.Dragging,this.onLineDragging.bind(this)),(Je=this.lineRender)===null||Je===void 0||Je.on(v.RenderEvent.Dragend,this.onLineDragEnd.bind(this))}},{key:"getDashLineDistanceTexts",value:function(E,Z){var re=Z.showTotalDistance,pe=Z.format;return Z.showDashDistance?E.map(function(Ie){return Ca(Ie,{showTotalDistance:re,format:pe},{isActive:!0,type:"dash"})}).flat():[]}},{key:"getLineDistanceTexts",value:function(E,Z){var re=Z.showTotalDistance,pe=Z.format,Ie=Z.showWhen,Je=[];if(Ie.includes("active")){var zt=E.filter(function(Kn){return Kn.properties.isActive&&Kn.properties.nodes.length>1});Je.push.apply(Je,js(zt.map(function(Kn){return Ca(Kn,{showTotalDistance:re,format:pe},{isActive:!0})}).flat()))}if(Ie.includes("normal")){var ln=E.filter(function(Kn){return!Kn.properties.isActive&&Kn.properties.nodes.length>1});Je.push.apply(Je,js(ln.map(function(Kn){return Ca(Kn,{showTotalDistance:re,format:pe})}).flat()))}return Je}},{key:"getDistanceTexts",value:function(){var E=this.options.distanceOptions;if(!E)return[];var Z=[],re=E.showWhen,pe=E.showDashDistance,Ie=E.format,Je=E.showTotalDistance;return Z.push.apply(Z,js(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!1,format:Ie,showDashDistance:pe})).concat(js(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:Je,format:Ie,showWhen:re})))),Z}},{key:"getAllTexts",value:function(){return this.getDistanceTexts()}},{key:"handleCreateLine",value:function(E){var Z=Yn([E],{isActive:!0,isDraw:!0});return this.setLineData(function(re){return Ge({target:Z,data:[].concat(js(re),[Z]),otherHandler:function(pe){pe.properties.isActive=!1}})}),this.setPointData([E]),this.setTextData(this.getAllTexts()),Z}},{key:"syncLineNodes",value:function(E,Z){return E.properties.nodes=Z,E.geometry.coordinates=Qi(Ps(Z)),this.setLineData(function(re){return re.map(function(pe){return hd(pe,E)?E:pe})}),hd(this.editLine,E)&&this.setMidPointData(this.getMidPointsByLine(E)),this.setPointData(E.properties.nodes),this.setTextData(this.getAllTexts()),E}},{key:"setActiveLine",value:function(E){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setLineData(function(re){return Ge({target:E,data:re,targetHandler:function(pe){pe.properties=wt(wt({},pe.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},Z)},otherHandler:function(pe){pe.properties=wt(wt({},pe.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(E.properties.nodes.map(function(re){return re.properties=wt(wt({},re.properties),{},{isHover:!1,isActive:!1}),re})),this.setMidPointData(this.getMidPointsByLine(E)),this.setDashLineData([]),this.setTextData(this.getAllTexts()),E}},{key:"clearActiveLine",value:function(){this.source.setData({point:[],line:this.getLineData().map(function(E){return E.properties=wt(wt({},E.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),E}),midPoint:[],text:this.getAllTexts()})}},{key:"handleLineUnClick",value:function(E){return this.clearActiveLine(),E}},{key:"handleLineHover",value:function(E){if(!this.drawLine)return this.setCursor("lineHover"),hd(E,this.hoverLine)||this.setLineData(function(Z){return Ge({target:E,data:Z,targetHandler:function(re){re.properties.isHover=!0},otherHandler:function(re){re.properties.isHover=!1}})}),E}},{key:"handleLineUnHover",value:function(E){if(!this.drawLine)return this.resetCursor(),this.setLineData(function(Z){return Z.map(function(re){return re.properties.isHover=!1,re})}),E}},{key:"handleLineDragStart",value:function(E){return this.setActiveLine(E,{isDrag:!0,isActive:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("lineDrag"),E}},{key:"handleLineDragging",value:function(E,Z){var re=Z.lng,pe=Z.lat,Ie=E.properties.nodes,Je=No(this.previousPosition,2),zt=Je[0],ln=Je[1];return Ie.forEach(function(Kn){var pr=Kn.geometry.coordinates;Kn.geometry.coordinates=[pr[0]+re-zt,pr[1]+pe-ln]}),this.syncLineNodes(E,Ie),this.setActiveLine(E,{isDrag:!0}),this.setCursor("lineDrag"),this.previousPosition=[re,pe],E}},{key:"handleLineDragEnd",value:function(E){return E.properties.isDrag=!1,this.setLineData(function(Z){return Z}),this.scene.setMapStatus({dragEnable:!0}),E}},{key:"resetAdsorbLngLat",value:function(E){if(this.options.adsorbOptions){var Z=this.getAdsorbPosition(fa(sc(E)));return Z&&wh(E,Z),Z}}},{key:"onPointCreate",value:function(E){if(!this.editLine){this.resetAdsorbLngLat(E);var Z=Zs(Ii(y.prototype),"onPointCreate",this).call(this,E),re=this.drawLine;if(Z)return re?(this.syncLineNodes(re,[].concat(js(re.properties.nodes),[Z])),this.setDashLineData([])):this.handleCreateLine(Z),Z}}},{key:"onPointDragStart",value:function(E){if(this.editLine)return this.setHelper("pointDrag"),Zs(Ii(y.prototype),"onPointDragStart",this).call(this,E)}},{key:"onPointDragging",value:function(E){var Z=Zs(Ii(y.prototype),"onPointDragging",this).call(this,E);if(Z){var re=this.resetAdsorbLngLat(E);re&&(Z.geometry.coordinates=ts(re))}var pe=this.editLine;return pe&&Z&&(this.syncLineNodes(pe,pe.properties.nodes.map(function(Ie){return hd(Z,Ie)?Z:Ie})),this.setActiveLine(pe)),Z}},{key:"onPointDragEnd",value:function(E){if(this.editLine){var Z=Zs(Ii(y.prototype),"onPointDragEnd",this).call(this,E);return this.setPointData(function(re){return re.map(function(pe){return pe.properties.isActive=!1,pe})}),this.setHelper("pointHover"),Z}}},{key:"onLineUnClick",value:function(E){var Z=this.editLine;if(Z)return this.handleLineUnClick(Z)}},{key:"onLineMouseMove",value:function(E){if(!this.drawLine)return this.dragLine||this.drawLine||!this.options.editable||this.setHelper("lineHover"),this.handleLineHover(E.feature)}},{key:"onLineMouseOut",value:function(E){if(!this.drawLine)return this.dragLine||this.drawLine||this.setHelper(this.addable?"draw":null),this.handleLineUnHover(E.feature)}},{key:"onLineDragStart",value:function(E){if(this.options.editable&&!this.drawLine)return this.previousPosition=Fc(E),this.setHelper("lineDrag"),this.handleLineDragStart(E.feature)}},{key:"onLineDragging",value:function(E){var Z=this.dragLine;if(Z)return this.handleLineDragging(Z,sc(E))}},{key:"onLineDragEnd",value:function(E){var Z=this.dragLine;if(Z)return this.setHelper("lineHover"),this.handleLineDragEnd(Z)}},{key:"onPointMouseMove",value:function(E){var Z=Zs(Ii(y.prototype),"onPointMouseMove",this).call(this,E);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper("pointHover"),Z}},{key:"onPointMouseOut",value:function(E){var Z=Zs(Ii(y.prototype),"onPointMouseOut",this).call(this,E);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper(this.addable?"draw":null),Z}},{key:"onMidPointHover",value:function(E){Zs(Ii(y.prototype),"onMidPointHover",this).call(this,E),this.setHelper("midPointHover")}},{key:"onMidPointUnHover",value:function(E){Zs(Ii(y.prototype),"onMidPointUnHover",this).call(this,E),this.setHelper(null)}},{key:"onPointClick",value:function(E){}},{key:"getLineData",value:function(){return this.source.getRenderData("line")}},{key:"setLineData",value:function(E){return this.source.setRenderData("line",E)}},{key:"getTextData",value:function(){return this.source.getRenderData("text")}},{key:"setTextData",value:function(E){return this.source.setRenderData("text",E)}},{key:"getDashLineData",value:function(){return this.source.getRenderData("dashLine")}},{key:"setDashLineData",value:function(E){return this.source.setRenderData("dashLine",E)}},{key:"onMidPointClick",value:function(E){var Z=this.editLine,re=E.feature;if(Z&&re&&!this.dragPoint){var pe=Z.properties.nodes,Ie=re.properties,Je=Ie.startId,zt=Ie.endId,ln=pe.findIndex(function(si){return si.properties.id===Je}),Kn=pe.findIndex(function(si){return si.properties.id===zt});if(ln>-1&&Kn>-1){var pr=ui(re.geometry.coordinates,{isDrag:!0,isHover:!0});return this.setHelper("pointDrag"),pe.splice(Kn,0,pr),Z.geometry.coordinates=Qi(Ps(pe)),this.syncLineNodes(Z,pe),this.setActiveLine(Z),pr}}}},{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 E,Z,re,pe=this.options.editable;(E=this.lineRender)===null||E===void 0||E.enableUnClick(),pe&&((Z=this.lineRender)===null||Z===void 0||Z.enableHover(),(re=this.lineRender)===null||re===void 0||re.enableDrag())}},{key:"disableLineRenderAction",value:function(){var E,Z,re;(E=this.lineRender)===null||E===void 0||E.disableUnClick(),(Z=this.lineRender)===null||Z===void 0||Z.disableHover(),(re=this.lineRender)===null||re===void 0||re.disableDrag()}}]),y}(gs),Ru=function(Le){Zo(y,Le);var d=ba(y);function y(){return yn(this,y),d.apply(this,arguments)}return Yr(y,[{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(E){return E.properties.isDrag})}},{key:"drawPolygon",get:function(){return this.getPolygonData().find(function(E){return E.properties.isDraw})}},{key:"editPolygon",get:function(){return this.getPolygonData().find(function(E){var Z=E.properties;return!Z.isDraw&&Z.isActive})}},{key:"hoverPolygon",get:function(){return this.getPolygonData().find(function(E){return E.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 E,Z;return(E=(Z=this.render.polygon)===null||Z===void 0?void 0:Z.getLayers())!==null&&E!==void 0?E:[]}},{key:"getDefaultOptions",value:function(E){var Z=wt(wt({},Zs(Ii(y.prototype),"getDefaultOptions",this).call(this,E)),{},{areaOptions:!1,helper:ts(fo)});return E.areaOptions&&(Z.areaOptions=wt(wt({},Ln),E.areaOptions)),Z}},{key:"getAreaTexts",value:function(E){var Z=this.options.areaOptions;if(!Z)return[];var re=Z.format,pe=Z.showWhen,Ie=[],Je=E.filter(function(zt){return zt.geometry.coordinates[0].length>=4});return pe.includes("active")&&Je.filter(function(zt){return zt.properties.isActive}).forEach(function(zt){Ie.push(bl(zt,{format:re},{isActive:!0}))}),pe.includes("normal")&&Je.filter(function(zt){return!zt.properties.isActive}).forEach(function(zt){Ie.push(bl(zt,{format:re},{isActive:!1}))}),Ie}},{key:"getAllTexts",value:function(){return[].concat(js(Zs(Ii(y.prototype),"getAllTexts",this).call(this)),js(this.getAreaTexts(this.getPolygonData())))}},{key:"getPolygonData",value:function(){return this.source.getRenderData("polygon")}},{key:"setPolygonData",value:function(E){return this.source.setRenderData("polygon",E)}},{key:"handleCreatePolygon",value:function(E,Z){var re=xo(E,{nodes:E,line:Z,isActive:!0,isDraw:!0});return this.setPolygonData(function(pe){return Ge({target:re,data:[].concat(js(pe),[re]),otherHandler:function(Ie){Ie.properties.isActive=!1}})}),re}},{key:"handlePolygonUnClick",value:function(E){return this.clearActivePolygon(),E}},{key:"handlePolygonHover",value:function(E){return this.setCursor("polygonHover"),hd(E,this.hoverPolygon)||this.setPolygonData(function(Z){return Ge({target:E,data:Z,targetHandler:function(re){re.properties.isHover=!0},otherHandler:function(re){re.properties.isHover=!1}})}),E}},{key:"handlePolygonUnHover",value:function(){this.resetCursor(),this.setPolygonData(function(E){return E.map(function(Z){return Z.properties.isHover=!1,Z})})}},{key:"handlePolygonDragStart",value:function(E){return this.setActivePolygon(E,{isDrag:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("polygonDrag"),E}},{key:"bindPolygonRenderEvent",value:function(){var E,Z,re,pe;(E=this.polygonRender)===null||E===void 0||E.on(v.RenderEvent.UnClick,this.onPolygonUnClick.bind(this)),(Z=this.polygonRender)===null||Z===void 0||Z.on(v.RenderEvent.Mousemove,this.onPolygonHover.bind(this)),(re=this.polygonRender)===null||re===void 0||re.on(v.RenderEvent.Mouseout,this.onPolygonUnHover.bind(this)),(pe=this.polygonRender)===null||pe===void 0||pe.on(v.RenderEvent.Dragstart,this.onPolygonDragStart.bind(this))}},{key:"syncPolygonNodes",value:function(E,Z){var re=Qi(Ps([].concat(js(Z),[vc(Z)]))),pe=E.properties,Ie=pe.line;if(E.properties.nodes=Z,E.geometry.coordinates=[qf(Jo(re))?re:re.reverse()],this.setPolygonData(function(pr){return pr.map(function(si){return hd(si,E)?E:si})}),!hd(this.drawPolygon,E)){var Je=Ie.properties.nodes,zt=js(Z),ln=vc(zt);zt.push(Je.length===Z.length?ui(ln.geometry.coordinates):Bs(Je));var Kn=Bs(zt);Ke(ln.geometry.coordinates,Kn.geometry.coordinates)||(Kn.geometry.coordinates=ts(ln.geometry.coordinates)),this.syncLineNodes(Ie,zt)}return E}},{key:"setActivePolygon",value:function(E){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setActiveLine(E.properties.line,Z),this.setPolygonData(function(re){return Ge({target:E,data:re,targetHandler:function(pe){pe.properties=wt(wt({},pe.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},Z)},otherHandler:function(pe){pe.properties=wt(wt({},pe.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setTextData(this.getAllTexts()),E}},{key:"clearActivePolygon",value:function(){this.setPolygonData(function(E){return E.map(function(Z){return Z.properties=wt(wt({},Z.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),Z})}),this.clearActiveLine()}},{key:"onLineDragStart",value:function(E){var Z=Zs(Ii(y.prototype),"onLineDragStart",this).call(this,E),re=this.getPolygonData().find(function(pe){return hd(pe.properties.line,Z)});return re&&(this.setActivePolygon(re,{isDrag:!0}),this.emit(v.DrawEvent.DragStart,re,this.getPolygonData())),Z}},{key:"onLineUnClick",value:function(E){return this.editLine}},{key:"onLineDragEnd",value:function(E){var Z=Zs(Ii(y.prototype),"onLineDragEnd",this).call(this,E),re=this.dragPolygon;return Z&&re&&(re.properties.isDrag=!1,this.emit(v.DrawEvent.DragEnd,re,this.getPolygonData()),this.emit(v.DrawEvent.Edit,re,this.getPolygonData())),Z}},{key:"onPolygonUnClick",value:function(E){var Z=this.editPolygon;if(Z)return this.handlePolygonUnClick(Z)}},{key:"onPolygonHover",value:function(E){if(!this.drawPolygon)return this.dragPolygon||this.setHelper("polygonHover"),this.handlePolygonHover(E.feature)}},{key:"onPolygonUnHover",value:function(E){if(!this.drawPolygon)return this.setHelper(this.addable?"draw":null),this.handlePolygonUnHover()}},{key:"onPolygonDragStart",value:function(E){if(this.options.editable&&!this.drawPolygon){var Z=E.feature;return this.previousPosition=Fc(E),this.setHelper("polygonDrag"),this.emit(v.DrawEvent.DragStart,Z,this.getPolygonData()),this.handlePolygonDragStart(Z)}}},{key:"onMidPointClick",value:function(E){var Z=this.editPolygon,re=Zs(Ii(y.prototype),"onMidPointClick",this).call(this,E);if(re&&Z){var pe=Z.properties.line.properties.nodes;this.syncPolygonNodes(Z,pe.slice(0,pe.length-1)),this.setActivePolygon(Z)}return re}},{key:"onPointDragEnd",value:function(E){var Z=this.editPolygon,re=Zs(Ii(y.prototype),"onPointDragEnd",this).call(this,E);return re&&Z&&this.emit(v.DrawEvent.Edit,Z,this.getPolygonData()),re}},{key:"enablePolygonRenderAction",value:function(){var E,Z,re,pe=this.options.editable;(E=this.polygonRender)===null||E===void 0||E.enableUnClick(),pe&&((Z=this.polygonRender)===null||Z===void 0||Z.enableHover(),(re=this.polygonRender)===null||re===void 0||re.enableDrag())}},{key:"disablePolygonRenderAction",value:function(){var E,Z,re;(E=this.polygonRender)===null||E===void 0||E.disableUnClick(),(Z=this.polygonRender)===null||Z===void 0||Z.disableHover(),(re=this.polygonRender)===null||re===void 0||re.disableDrag()}},{key:"bindEnableEvent",value:function(){Zs(Ii(y.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.enablePolygonRenderAction()}},{key:"unbindEnableEvent",value:function(){Zs(Ii(y.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.disablePolygonRenderAction()}},{key:"bindThis",value:function(){Zs(Ii(y.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(E){var Z=this.getTargetFeature(E);Z?this.setActivePolygon(Z):this.clearActivePolygon()}},{key:"resetFeatures",value:function(){var E=this.getPolygonData();this.drawPolygon&&(E=E.filter(function(Z){return!Z.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setLineData(function(Z){return Z.filter(function(re){return!re.properties.isDraw})}),this.setTextData(function(Z){return Z.filter(function(re){return!re.properties.isActive})})),this.editPolygon&&this.handlePolygonUnClick(this.editPolygon),this.setPolygonData(E.map(function(Z){return Z.properties=wt(wt({},Z.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),Z}))}}]),y}($a),rh=function(Le){Zo(y,Le);var d=ba(y);function y(E,Z){var re;return yn(this,y),(re=d.call(this,E,Z)).onSceneDragStart=re.onSceneDragStart.bind(ks(re)),re.onSceneDragEnd=re.onSceneDragEnd.bind(ks(re)),re}return Yr(y,[{key:"drawLine",get:function(){var E;return(E=this.drawPolygon)===null||E===void 0?void 0:E.properties.line}},{key:"isDragTrigger",get:function(){return this.options.trigger==="drag"}},{key:"isClickTrigger",get:function(){return this.options.trigger==="click"}},{key:"getDefaultOptions",value:function(E){var Z=wt(wt({},Zs(Ii(y.prototype),"getDefaultOptions",this).call(this,E)),{},{showMidPoint:!1,trigger:"click",autoActive:!1,helper:ts(Xi)});return E.trigger==="drag"&&(Z.helper=wt(wt({},Z.helper),us)),Z}},{key:"getMidPointsByLine",value:function(E){return[]}},{key:"handleCreatePolygon",value:function(E,Z){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pe=Z.properties.nodes;return xo(pe.slice(0,pe.length-1),wt({nodes:E,line:Z},re))}},{key:"handleFirstNodeCreate",value:function(E){var Z=ui(E.geometry.coordinates),re=this.handleCreatePolygonLine(E,Z,{isDraw:!0,isActive:!0}),pe=this.handleCreatePolygon([E,Z],re,{isDraw:!0,isActive:!0});return this.setPolygonData(function(Ie){return Ge({target:pe,data:[].concat(js(Ie),[pe]),targetHandler:function(Je){Je.properties=wt(wt({},Je.properties),{},{isDraw:!0,isActive:!0})}})}),this.emit(v.DrawEvent.AddNode,E,this.drawPolygon,this.getPolygonData()),this.setHelper("drawFinish"),E}},{key:"handleLastNodeCreate",value:function(E){var Z=this.options,re=Z.autoActive,pe=Z.editable,Ie=this.drawPolygon;return Ie&&(this.setLineData(function(Je){return[].concat(js(Je),[Ie.properties.line])}),this.setActivePolygon(Ie),re&&pe||this.handlePolygonUnClick(Ie),this.emit(v.DrawEvent.Add,Ie,this.getPolygonData()),this.emit(v.DrawEvent.AddNode,Ie.properties.nodes[1],this.drawPolygon,this.getPolygonData()),this.setHelper(pe?re?"pointHover":"polygonHover":this.addable?"draw":null)),E}},{key:"onPointCreate",value:function(E){var Z=this;if(this.addable&&!this.dragPoint&&!this.editLine&&this.isClickTrigger){var re=this.drawPolygon,pe=Fc(E),Ie=this.handleCreatePoint(pe);return re?requestAnimationFrame(function(){Z.handleLastNodeCreate(Ie)}):this.handleFirstNodeCreate(Ie),Ie}}},{key:"setActivePolygon",value:function(E){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.setActiveLine(E.properties.line,Z),this.setPolygonData(function(pe){return Ge({target:E,data:pe,targetHandler:function(Ie){Ie.properties=wt(wt({},Ie.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},Z)},otherHandler:function(Ie){Ie.properties=wt(wt({},Ie.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(E.properties.nodes),this.setDashLineData([]);var re=this.getAllTexts();return this.setTextData(re),E}},{key:"onPointDragging",value:function(E){var Z=this.dragPoint;if(Z){var re=this.handlePointDragging(Z,sc(E)),pe=this.editPolygon;return re&&pe&&(this.syncPolygonNodes(pe,pe.properties.nodes.map(function(Ie){return hd(Ie,re)?re:Ie})),this.setActivePolygon(pe)),re}}},{key:"onSceneDragStart",value:function(E){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&(this.scene.setMapStatus({dragEnable:!1}),this.handleFirstNodeCreate(this.handleCreatePoint(Fc(E))))}},{key:"onSceneDragEnd",value:function(E){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&this.drawPolygon&&(this.scene.setMapStatus({dragEnable:!1}),this.handleLastNodeCreate(this.handleCreatePoint(Fc(E))))}},{key:"onSceneMouseMove",value:function(E){var Z=this.drawPolygon;if(Z){var re=Z.properties.nodes,pe=vc(re),Ie=Bs(re);Ie.geometry.coordinates=Fc(E),this.syncPolygonNodes(Z,[pe,Ie]),this.setDashLineData([Z.properties.line]),this.setTextData(this.getAllTexts()),this.resetCursor()}}},{key:"bindSceneDragEvent",value:function(){this.unbindSceneDragEvent(),this.sceneRender.on(v.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.on(v.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!1})}},{key:"unbindSceneDragEvent",value:function(){this.sceneRender.off(v.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.off(v.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!0})}},{key:"bindEnableEvent",value:function(){Zs(Ii(y.prototype),"bindEnableEvent",this).call(this),this.isDragTrigger&&this.bindSceneDragEvent()}},{key:"unbindEnableEvent",value:function(){Zs(Ii(y.prototype),"unbindEnableEvent",this).call(this),this.isDragTrigger&&this.unbindSceneDragEvent()}},{key:"bindThis",value:function(){Zs(Ii(y.prototype),"bindThis",this).call(this),this.onSceneDragStart=this.onSceneDragStart.bind(this),this.onSceneDragEnd=this.onSceneDragEnd.bind(this)}}]),y}(Ru),Lo=function(Le){Zo(y,Le);var d=ba(y);function y(E,Z){var re;return yn(this,y),(re=d.call(this,E,Z)).bindPointRenderEvent(),re.bindSceneEvent(),re.bindMidPointRenderEvent(),re.bindLineRenderEvent(),re.bindPolygonRenderEvent(),re}return Yr(y,[{key:"getDefaultOptions",value:function(E){var Z=wt(wt({},Zs(Ii(y.prototype),"getDefaultOptions",this).call(this,E)),{},{showMidPoint:!1,circleSteps:60});return Z.distanceOptions&&(Z.distanceOptions.showTotalDistance=!0,Z.distanceOptions.showOnRadius===void 0&&(Z.distanceOptions.showOnRadius=!0)),Z.helper&&(Z.helper=wt(wt({},Z.helper),sa)),Z}},{key:"getDistanceTexts",value:function(){var E=this.options.distanceOptions;if(!E)return[];var Z=[],re=E.showWhen,pe=E.showDashDistance,Ie=E.format,Je=E.showTotalDistance;return Z.push.apply(Z,js(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!0,format:Ie,showDashDistance:pe})).concat(js(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:Je,format:Ie,showWhen:re})))),Z}},{key:"setData",value:function(E){var Z=this,re=E.map(function(pe){var Ie,Je,zt;pe.properties=wt(wt({},Rn()),pe.properties);var ln=(Ie=pe.properties)===null||Ie===void 0?void 0:Ie.nodes;if(((Je=ln)===null||Je===void 0?void 0:Je.length)!==2){var Kn=No(_u(pe).geometry.coordinates,2),pr=Kn[0],si=Kn[1],yi=Oa(pe),Do=yi[2],Co=(yi[1]+yi[3])/2;ln=[ui([pr,si]),ui([Do,Co])],pe.properties.nodes=ln}var Uo=ln[0],Mo=ln[1],oo=!!(!((zt=pe.properties)===null||zt===void 0)&&zt.isActive),Vs=pe.properties.line;return Vs||(Vs=Z.handleCreatePolygonLine(Uo,Mo,{isActive:oo}),pe.properties.line=Vs),Z.handleCreatePolygon([Uo,Mo],Vs,wt(wt({},pe.properties),{},{isActive:oo}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:re,line:re.map(function(pe){return pe.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(E,Z){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pe=this.getBoundaryPositions(E,Z).map(function(Ie){return ui(Ie)});return Yn(pe,re)}},{key:"syncPolygonNodes",value:function(E,Z){var re=E.properties.line,pe=this.getBoundaryPositions(Z[0],Z[1]);return E.properties.nodes=Z,E.geometry.coordinates=[pe],this.setPolygonData(function(Ie){return Ie.map(function(Je){return hd(Je,E)?E:Je})}),this.setPointData(E.properties.isDraw?[Z[0]]:Z),re.properties.nodes.forEach(function(Ie,Je){Ie.geometry.coordinates=pe[Je]}),re.geometry.coordinates=pe,E}},{key:"onLineDragging",value:function(E){var Z=this.dragPolygon,re=No(this.previousPosition,2),pe=re[0],Ie=re[1],Je=Zs(Ii(y.prototype),"onLineDragging",this).call(this,E);if(Z){var zt=No(Fc(E),2),ln=zt[0],Kn=zt[1];Z.properties.nodes.forEach(function(pr){var si=No(pr.geometry.coordinates,2);pr.geometry.coordinates=[si[0]+ln-pe,si[1]+Kn-Ie]}),this.syncPolygonNodes(Z,Z.properties.nodes),this.setActivePolygon(Z,{isDrag:!0}),this.emit(v.DrawEvent.Dragging,Z,this.getPolygonData())}return Je}},{key:"getBoundaryPositions",value:function(E,Z){for(var re=this.options.circleSteps,pe=Pu(E,Z,{units:"meters"}),Ie=[],Je=0;re>Je;Je++)Ie.push(md(E,pe,-360*Je/re,{units:"meters"}).geometry.coordinates);return Ie.push(Ie[0]),Ie}}]),y}(rh),Lh=function(Le){Zo(y,Le);var d=ba(y);function y(E,Z){var re;return yn(this,y),(re=d.call(this,E,Z)).drawLineFinish=function(){var pe,Ie=re.drawLine,Je=(pe=Ie==null?void 0:Ie.properties.nodes)!==null&&pe!==void 0?pe:[];if(Ie&&(Je==null?void 0:Je.length)>1){re.setActiveLine(Ie);var zt=re.options,ln=zt.autoActive,Kn=zt.editable;ln&&Kn||re.handleLineUnClick(Ie),re.setHelper(Kn&&ln?"pointHover":re.addable?"draw":null),re.emit(v.DrawEvent.Add,Ie,re.getLineData())}},re.sceneRender.on(v.RenderEvent.DblClick,re.drawLineFinish),re.bindPointRenderEvent(),re.bindSceneEvent(),re.bindMidPointRenderEvent(),re.bindLineRenderEvent(),re}return Yr(y,[{key:"dragItem",get:function(){return this.dragLine}},{key:"editItem",get:function(){return this.editLine}},{key:"getMainLayer",value:function(){var E,Z;return(E=(Z=this.render.line)===null||Z===void 0?void 0:Z.getLayers())!==null&&E!==void 0?E:[]}},{key:"setData",value:function(E){var Z=E.map(function(re){var pe,Ie;return re.properties=wt(wt({},pt()),(pe=re.properties)!==null&&pe!==void 0?pe:{}),!((Ie=re.properties.nodes)===null||Ie===void 0)&&Ie.length||(re.properties.nodes=Qi(re).map(function(Je){return ui(Je)})),re});this.source.setData({point:[],midPoint:[],dashLine:[],line:Z}),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 E;Zs(Ii(y.prototype),"bindPointRenderEvent",this).call(this),(E=this.pointRender)===null||E===void 0||E.on(v.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"onPointClick",value:function(E){var Z,re=this,pe=this.drawLine,Ie=(Z=pe==null?void 0:pe.properties.nodes)!==null&&Z!==void 0?Z:[],Je=E.feature;if(hd(Je,Bs(Ie)))requestAnimationFrame(function(){re.drawLineFinish()});else{var zt=No(Je.geometry.coordinates,2);E.lngLat={lng:zt[0],lat:zt[1]},this.onPointCreate(E)}}},{key:"removeNode",value:function(E,Z){var re,pe=this.getTargetFeature(Z),Ie=this.getTargetFeature(E,(re=pe==null?void 0:pe.properties.nodes)!==null&&re!==void 0?re:[]);if(pe&&Ie){var Je,zt=(Je=pe==null?void 0:pe.properties.nodes)!==null&&Je!==void 0?Je:[];if(3>zt.length)return;this.syncLineNodes(pe,zt.filter(function(ln){return!hd(Ie,ln)})),this.emit(v.DrawEvent.RemoveNode,Ie,pe,this.getLineData()),this.emit(v.DrawEvent.Edit,pe,this.getLineData())}}},{key:"onPointContextMenu",value:function(E){var Z,re=this.editLine,pe=E.feature,Ie=(Z=re==null?void 0:re.properties.nodes)!==null&&Z!==void 0?Z:[];if(re&&Ie.length>=3)return this.removeNode(pe,re),this.scene.setMapStatus({dragEnable:!0}),pe}},{key:"onPointCreate",value:function(E){if(this.addable){var Z=Zs(Ii(y.prototype),"onPointCreate",this).call(this,E);return Z&&(this.setHelper("drawFinish"),this.emit(v.DrawEvent.AddNode,Z,this.drawLine,this.getLineData())),Z}}},{key:"onPointDragEnd",value:function(E){var Z=this.editLine,re=Zs(Ii(y.prototype),"onPointDragEnd",this).call(this,E);return Z&&re&&this.emit(v.DrawEvent.Edit,Z,this.getLineData()),re}},{key:"onLineDragStart",value:function(E){var Z=Zs(Ii(y.prototype),"onLineDragStart",this).call(this,E);return Z&&this.emit(v.DrawEvent.DragStart,Z,this.getLineData()),Z}},{key:"onLineDragging",value:function(E){var Z=Zs(Ii(y.prototype),"onLineDragging",this).call(this,E);return Z&&this.emit(v.DrawEvent.Dragging,Z,this.getLineData()),Z}},{key:"onLineDragEnd",value:function(E){var Z=Zs(Ii(y.prototype),"onLineDragEnd",this).call(this,E);return Z&&(this.emit(v.DrawEvent.DragEnd,Z,this.getLineData()),this.emit(v.DrawEvent.Edit,Z,this.getLineData())),Z}},{key:"onMidPointClick",value:function(E){var Z=this.editLine,re=Zs(Ii(y.prototype),"onMidPointClick",this).call(this,E);return Z&&re&&(this.emit(v.DrawEvent.Edit,Z,this.getLineData()),this.emit(v.DrawEvent.AddNode,re,Z,this.getLineData())),re}},{key:"onSceneMouseMove",value:function(E){var Z=this.drawLine;if(Z){var re,pe=Bs(Z.properties.nodes),Ie=Fc(E);this.options.adsorbOptions&&(Ie=(re=this.getAdsorbPosition(Ie))!==null&&re!==void 0?re:Ie),this.setDashLineData([Ci([Ie,pe.geometry.coordinates])]),this.setTextData(this.getAllTexts())}}},{key:"setActiveFeature",value:function(E){var Z=this.getTargetFeature(E);Z?this.setActiveLine(Z):this.clearActiveLine()}},{key:"resetFeatures",value:function(){var E=this.getLineData();this.drawLine&&(E=E.filter(function(Z){return!Z.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setTextData(function(Z){return Z.filter(function(re){return!re.properties.isActive})})),this.editLine&&this.handleLineUnClick(this.editLine),this.setLineData(E.map(function(Z){return Z.properties=wt(wt({},Z.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),Z}))}},{key:"enablePointRenderAction",value:function(){var E;Zs(Ii(y.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((E=this.pointRender)===null||E===void 0||E.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var E;Zs(Ii(y.prototype),"disablePointRenderAction",this).call(this),(E=this.pointRender)===null||E===void 0||E.disableContextMenu()}},{key:"bindEnableEvent",value:function(){Zs(Ii(y.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.sceneRender.enableDblClick()}},{key:"unbindEnableEvent",value:function(){Zs(Ii(y.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.sceneRender.disableDblClick()}},{key:"bindThis",value:function(){Zs(Ii(y.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)}}]),y}($a),Uc=function(Le){Zo(y,Le);var d=ba(y);function y(E,Z){var re;return yn(this,y),(re=d.call(this,E,Z)).bindPointRenderEvent(),re}return Yr(y,[{key:"dragItem",get:function(){return this.dragPoint}},{key:"editItem",get:function(){return this.editPoint}},{key:"getDefaultOptions",value:function(E){var Z=wt(wt({},this.getCommonOptions(E)),{},{helper:ts($s),initialData:E.initialData});return Z.style.point=kn,Z}},{key:"bindEnableEvent",value:function(){Zs(Ii(y.prototype),"bindEnableEvent",this).call(this),this.enablePointRenderAction()}},{key:"unbindEnableEvent",value:function(){Zs(Ii(y.prototype),"unbindEnableEvent",this).call(this),this.disablePointRenderAction()}},{key:"getRenderTypes",value:function(){return["point"]}},{key:"getMainLayer",value:function(){var E,Z;return(E=(Z=this.render.point)===null||Z===void 0?void 0:Z.getLayers())!==null&&E!==void 0?E:[]}},{key:"setData",value:function(E){this.setPointData(E.map(function(Z){var re;return Z.properties=wt(wt({},He()),(re=Z.properties)!==null&&re!==void 0?re:{}),Z}))}},{key:"getData",value:function(){return this.getPointData()}},{key:"onPointCreate",value:function(E){if(this.addable){var Z=Zs(Ii(y.prototype),"onPointCreate",this).call(this,E);if(Z)return this.options.editable&&this.setHelper("pointHover"),this.emit(v.DrawEvent.Add,Z,this.getData()),Z}else this.setPointData(function(re){return re.map(function(pe){return pe.properties=wt(wt({},pe.properties),{},{isHover:!1,isActive:!1}),pe})})}},{key:"onPointMouseMove",value:function(E){var Z=Zs(Ii(y.prototype),"onPointMouseMove",this).call(this,E);return this.options.editable&&!this.dragPoint&&this.setHelper("pointHover"),Z}},{key:"onPointMouseOut",value:function(E){var Z=Zs(Ii(y.prototype),"onPointMouseOut",this).call(this,E);return this.setHelper(this.addable?"draw":null),Z}},{key:"onPointDragStart",value:function(E){var Z=Zs(Ii(y.prototype),"onPointDragStart",this).call(this,E);return this.setHelper("pointDrag"),this.emit(v.DrawEvent.DragStart,Z,this.getData()),Z}},{key:"onPointDragging",value:function(E){var Z=Zs(Ii(y.prototype),"onPointDragging",this).call(this,E);return Z&&this.options.editable&&this.emit(v.DrawEvent.Dragging,Z,this.getData()),Z}},{key:"onPointDragEnd",value:function(E){var Z=Zs(Ii(y.prototype),"onPointDragEnd",this).call(this,E);return Z&&this.options.editable&&(this.setHelper("pointHover"),this.emit(v.DrawEvent.DragEnd,Z,this.getData()),this.emit(v.DrawEvent.Edit,Z,this.getData())),Z}},{key:"bindThis",value:function(){Zs(Ii(y.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this)}},{key:"onSceneMouseMove",value:function(E){}},{key:"setActiveFeature",value:function(E){var Z=this.getTargetFeature(E);this.setPointData(function(re){return re.map(function(pe){return pe.properties.isActive=hd(Z,pe),pe})})}},{key:"resetFeatures",value:function(){this.setPointData(function(E){return E.map(function(Z){return Z.properties=wt(wt({},Z.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),Z})})}}]),y}(al),Hd=function(Le){Zo(y,Le);var d=ba(y);function y(E,Z){var re;return yn(this,y),(re=d.call(this,E,Z)).drawPolygonFinish=function(){var pe,Ie=re.drawPolygon,Je=(pe=Ie==null?void 0:Ie.properties.nodes)!==null&&pe!==void 0?pe:[];if(Ie&&Je.length>=3){Ie.properties.isDraw=!1,re.syncPolygonNodes(Ie,Je),re.setActivePolygon(Ie);var zt=re.options,ln=zt.autoActive,Kn=zt.editable;ln&&Kn||re.handlePolygonUnClick(Ie),re.setHelper(Kn?ln?"pointHover":"polygonHover":re.addable?"draw":null),re.emit(v.DrawEvent.Add,Ie,re.getPolygonData())}},re.sceneRender.on(v.RenderEvent.DblClick,re.drawPolygonFinish),re.bindPointRenderEvent(),re.bindSceneEvent(),re.bindMidPointRenderEvent(),re.bindLineRenderEvent(),re.bindPolygonRenderEvent(),re}return Yr(y,[{key:"getDefaultOptions",value:function(E){return wt(wt({},Zs(Ii(y.prototype),"getDefaultOptions",this).call(this,E)),{},{liveUpdate:!1})}},{key:"setData",value:function(E){var Z=E.map(function(re){var pe,Ie;if(re.properties=wt(wt({},Rn()),(pe=re.properties)!==null&&pe!==void 0?pe:{}),!(!((Ie=re.properties.nodes)===null||Ie===void 0)&&Ie.length)){var Je=Qi(re);Je=Je.slice(0,Je.length-1),re.properties.nodes=Je.map(function(ln){return ui(ln)})}if(!re.properties.line){var zt=re.properties.nodes;re.properties.line=Yn([].concat(js(zt),[ui(vc(zt).geometry.coordinates)]))}return re});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:Z,line:Z.map(function(re){return re.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"onPointCreate",value:function(E){if(this.addable&&!this.dragPoint){var Z=Zs(Ii(y.prototype),"onPointCreate",this).call(this,E),re=this.drawPolygon,pe=this.drawLine;return Z&&(re?(this.syncPolygonNodes(re,[].concat(js(re.properties.nodes),[Z])),this.setDashLineData([Ci([Fc(E),re.properties.nodes[0].geometry.coordinates])]),re.properties.nodes.length>1&&this.setHelper("drawFinish")):pe&&(this.handleCreatePolygon([Z],pe),this.setHelper("drawContinue")),this.emit(v.DrawEvent.AddNode,Z,re,this.getPolygonData())),Z}}},{key:"onPointClick",value:function(E){var Z=this,re=this.drawPolygon,pe=E.feature;if(re){var Ie=re.properties.nodes;if(Ie.length<3||!hd(vc(Ie),pe)&&!hd(Bs(Ie),pe)){var Je=No(pe.geometry.coordinates,2);E.lngLat={lng:Je[0],lat:Je[1]},this.onPointCreate(E)}else requestAnimationFrame(function(){Z.drawPolygonFinish()})}}},{key:"onPointDragging",value:function(E){var Z=this.dragPoint,re=this.editPolygon;if(Z&&re){var pe=re.properties.line;pe.properties.nodes=pe.properties.nodes.map(function(si){return hd(si,Z)?Z:si});var Ie=pe.properties.nodes,Je=Ie.slice(0,Ie.length-1),zt=vc(Ie),ln=Bs(Ie),Kn=hd(zt,Z)||hd(ln,Z);if(Kn&&(zt.geometry.coordinates=ln.geometry.coordinates=Fc(E)),this.options.adsorbOptions&&Kn){var pr=this.resetAdsorbLngLat(E);pr&&(zt.geometry.coordinates=ln.geometry.coordinates=pr)}Zs(Ii(y.prototype),"onPointDragging",this).call(this,E),this.syncPolygonNodes(re,Je),this.setActivePolygon(re)}return Z}},{key:"onLineDragging",value:function(E){var Z=this.dragPolygon,re=Zs(Ii(y.prototype),"onLineDragging",this).call(this,E);if(re&&Z){var pe=re.properties.nodes;this.syncPolygonNodes(Z,pe.slice(0,pe.length-1)),this.emit(v.DrawEvent.Dragging,Z,this.getPolygonData())}return re}},{key:"onMidPointClick",value:function(E){var Z=Zs(Ii(y.prototype),"onMidPointClick",this).call(this,E),re=this.editPolygon;return Z&&re&&(this.emit(v.DrawEvent.Edit,re,this.getPolygonData()),this.emit(v.DrawEvent.AddNode,Z,re,this.getPolygonData())),Z}},{key:"onSceneMouseMove",value:function(E){var Z,re=this.drawPolygon,pe=(Z=re==null?void 0:re.properties.nodes)!==null&&Z!==void 0?Z:[];if(re&&pe.length){this.options.adsorbOptions&&this.resetAdsorbLngLat(E);var Ie=Fc(E),Je=[];if(Je.push(Ci([Ie,vc(pe).geometry.coordinates])),pe.length>1&&Je.push(Ci([Ie,Bs(pe).geometry.coordinates])),this.options.liveUpdate&&pe.length>=2){var zt=Qi(Ps(pe));re.geometry.coordinates=[[].concat(js(zt),[Ie,zt[0]])],this.setPolygonData(this.getPolygonData())}this.setDashLineData(Je),this.setTextData(this.getAllTexts())}}},{key:"removeNode",value:function(E,Z){var re,pe=this.getTargetFeature(Z),Ie=this.getTargetFeature(E,(re=pe==null?void 0:pe.properties.nodes)!==null&&re!==void 0?re:[]);if(pe&&Ie){var Je,zt=(Je=pe==null?void 0:pe.properties.nodes)!==null&&Je!==void 0?Je:[];if(4>zt.length)return;this.syncPolygonNodes(pe,zt.filter(function(ln){return!hd(Ie,ln)})),this.emit(v.DrawEvent.RemoveNode,Ie,pe,this.getLineData()),this.emit(v.DrawEvent.Edit,pe,this.getPolygonData())}}},{key:"onPointContextMenu",value:function(E){var Z,re=this.editPolygon,pe=E.feature,Ie=(Z=re==null?void 0:re.properties.nodes)!==null&&Z!==void 0?Z:[];if(re&&Ie.length>=4)return Ie.find(function(Je){return hd(Je,pe)})||(pe=Ie[0]),this.removeNode(pe,re),pe}},{key:"bindPointRenderEvent",value:function(){var E;Zs(Ii(y.prototype),"bindPointRenderEvent",this).call(this),(E=this.pointRender)===null||E===void 0||E.on(v.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"enablePointRenderAction",value:function(){var E;Zs(Ii(y.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((E=this.pointRender)===null||E===void 0||E.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var E;Zs(Ii(y.prototype),"disablePointRenderAction",this).call(this),(E=this.pointRender)===null||E===void 0||E.disableContextMenu()}}]),y}(Ru),cg=function(Le){Zo(y,Le);var d=ba(y);function y(E,Z){var re;return yn(this,y),(re=d.call(this,E,Z)).bindPointRenderEvent(),re.bindSceneEvent(),re.bindMidPointRenderEvent(),re.bindLineRenderEvent(),re.bindPolygonRenderEvent(),re}return Yr(y,[{key:"getDefaultOptions",value:function(E){var Z=Zs(Ii(y.prototype),"getDefaultOptions",this).call(this,E);return Z.helper&&(Z.helper=wt(wt({},Z.helper),Qo)),Z}},{key:"setData",value:function(E){var Z=this,re=E.map(function(pe){var Ie,Je,zt;pe.properties=wt(wt({},Rn()),(Ie=pe.properties)!==null&&Ie!==void 0?Ie:{});var ln=pe.properties.nodes;if(((Je=ln)===null||Je===void 0?void 0:Je.length)!==2){var Kn=No(Oa(pe),4),pr=Kn[2],si=Kn[3];ln=[ui([Kn[0],Kn[1]]),ui([pr,si])],pe.properties.nodes=ln}var yi=No(ln,2),Do=yi[0],Co=yi[1],Uo=!!(!((zt=pe.properties)===null||zt===void 0)&&zt.isActive),Mo=pe.properties.line;return Mo||(Mo=Z.handleCreatePolygonLine(Do,Co,{isActive:Uo}),pe.properties.line=Mo),Z.handleCreatePolygon([Do,Co],Mo,wt(wt({},pe.properties),{},{isActive:Uo}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:re,line:re.map(function(pe){return pe.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(E,Z){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pe=Qi(Ah(Ps([E,Z]))).map(function(Ie,Je){return Je===0?E:Je===2?Z:ui(Ie)});return Yn(pe,re)}},{key:"syncPolygonNodes",value:function(E,Z){var re=E.properties.line,pe=Qi(Ah(Ps(Z)));E.properties.nodes=Z,E.geometry.coordinates=[pe],this.setPolygonData(function(zt){return zt.map(function(ln){return hd(ln,E)?E:ln})}),this.setPointData(E.properties.isDraw?[Z[0]]:Z);var Ie=re.properties.nodes,Je=pe.filter(function(zt){return!Ke(zt,Z[0].geometry.coordinates)&&!Ke(zt,Z[1].geometry.coordinates)});return Ie.forEach(function(zt,ln){var Kn=[0,0];switch(ln){case 0:Kn=Z[0].geometry.coordinates;break;case 1:Kn=Je[0];break;case 2:Kn=Z[1].geometry.coordinates;break;case 3:Kn=Je[1];break;case 4:Kn=ts(Z[0].geometry.coordinates)}zt.geometry.coordinates=Kn}),re.geometry.coordinates=pe,E}},{key:"onLineDragging",value:function(E){var Z=Zs(Ii(y.prototype),"onLineDragging",this).call(this,E),re=this.dragPolygon;if(Z&&re){var pe=re.properties.line.properties.nodes;this.syncPolygonNodes(re,[pe[0],pe[2]]),this.setActivePolygon(re,{isDrag:!0}),this.emit(v.DrawEvent.Dragging,re,this.getPolygonData())}return Z}}]),y}(rh),im=function(Le,d){for(var y=Le;y&&!Array.from(y.classList).includes(d);)y=y.parentElement;return y},Gm=["point","line","polygon","rect","circle","clear"],c0={point:"#l7draw-point",line:"#l7draw-line",polygon:"#l7draw-polygon",rect:"#l7draw-rect",circle:"#l7draw-circle",clear:"#l7draw-qingkong"},e0={point:Uc,line:Lh,polygon:Hd,rect:cg,circle:Lo},xg="data-draw-type",Vm="l7-draw-control",ym="".concat(Vm,"__btn"),dv="".concat(ym,"--active");(function(Le){var d,y,E,Z,re,pe='',Ie=(Ie=document.getElementsByTagName("script"))[Ie.length-1].getAttribute("data-injectcss");if(Ie&&!Le.__iconfont__svg__cssinject__){Le.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(zt){console&&console.log(zt)}}function Je(){re||(re=!0,E())}d=function(){var zt,ln=document.createElement("div");ln.innerHTML=pe,pe=null,(ln=ln.getElementsByTagName("svg")[0])&&(ln.setAttribute("aria-hidden","true"),ln.style.position="absolute",ln.style.width=0,ln.style.height=0,ln.style.overflow="hidden",(zt=document.body).firstChild?function(Kn,pr){pr.parentNode.insertBefore(Kn,pr)}(ln,zt.firstChild):zt.appendChild(ln))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(d,0):(y=function(){document.removeEventListener("DOMContentLoaded",y,!1),d()},document.addEventListener("DOMContentLoaded",y,!1)):document.attachEvent&&(E=d,Z=Le.document,re=!1,function zt(){try{Z.documentElement.doScroll("left")}catch(ln){return void setTimeout(zt,50)}Je()}(),Z.onreadystatechange=function(){Z.readyState=="complete"&&(Z.onreadystatechange=null,Je())})})(window),Xo(".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 Mg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,km=/^\w*$/,Sp=function(Le,d){if(Cp(Le))return!1;var y=typeof Le;return!(y!="number"&&y!="symbol"&&y!="boolean"&&Le!=null&&!wd(Le))||km.test(Le)||!Mg.test(Le)||d!=null&&Le in Object(d)};function tg(Le,d){if(typeof Le!="function"||d!=null&&typeof d!="function")throw new TypeError("Expected a function");var y=function(){var E=arguments,Z=d?d.apply(this,E):E[0],re=y.cache;if(re.has(Z))return re.get(Z);var pe=Le.apply(this,E);return y.cache=re.set(Z,pe)||re,pe};return y.cache=new(tg.Cache||ah),y}tg.Cache=ah;var _0=tg,r0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gg=/\\(\\)?/g,Ku=function(Le){var d=_0(Le,function(E){return y.size===500&&y.clear(),E}),y=d.cache;return d}(function(Le){var d=[];return Le.charCodeAt(0)===46&&d.push(""),Le.replace(r0,function(y,E,Z,re){d.push(Z?re.replace(gg,"$1"):E||y)}),d}),lm=jf?jf.prototype:void 0,i0=lm?lm.toString:void 0,dc=function Le(d){if(typeof d=="string")return d;if(Cp(d))return au(d,Le)+"";if(wd(d))return i0?i0.call(d):"";var y=d+"";return y=="0"&&1/d==-1/0?"-0":y},Du=function(Le){return Le==null?"":dc(Le)},Wv=function(Le,d){return Cp(Le)?Le:Sp(Le,d)?[Le]:Ku(Du(Le))},Dm=function(Le){if(typeof Le=="string"||wd(Le))return Le;var d=Le+"";return d=="0"&&1/Le==-1/0?"-0":d},Ap=function(Le,d){for(var y=0,E=(d=Wv(d,Le)).length;Le!=null&&E>y;)Le=Le[Dm(d[y++])];return y&&y==E?Le:void 0},Dp=function(Le,d,y){var E=-1,Z=Le.length;0>d&&(d=-d>Z?0:Z+d),0>(y=y>Z?Z:y)&&(y+=Z),Z=d>y?0:y-d>>>0,d>>>=0;for(var re=Array(Z);++Ed.length?Le:Ap(Le,Dp(d,0,-1))},sf=function(Le,d){return d=Wv(d,Le),(Le=W1(Le,d))==null||delete Le[Dm(Bs(d))]},Km=function(Le){return Ti(Le)?void 0:Le},Dg=jf?jf.isConcatSpreadable:void 0,J0=function(Le){return Cp(Le)||eg(Le)||!!(Dg&&Le&&Le[Dg])},jm=function Le(d,y,E,Z,re){var pe=-1,Ie=d.length;for(E||(E=J0),re||(re=[]);++pe0&&E(Je)?y>1?Le(Je,y-1,E,Z,re):n0(re,Je):Z||(re[re.length]=Je)}return re},Os=function(Le){return Le!=null&&Le.length?jm(Le,1):[]},fv=function(Le){return Rl(Ko(Le,void 0,Os),Le+"")}(function(Le,d){var y={};if(Le==null)return y;var E=!1;d=au(d,function(re){return re=Wv(re,Le),E||(E=re.length>1),re}),xp(Le,vm(Le),y),E&&(y=xs(y,7,Km));for(var Z=d.length;Z--;)sf(y,d[Z]);return y}),ng=fv,B0=function(Le){Zo(y,Le);var d=ba(y);function y(E){var Z,re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return yn(this,y),(Z=d.call(this,re)).controlOption=void 0,Z.sceneInstance=void 0,Z.drawMap={},Z.btnMap={},Z.activeType=null,Z.emitDataChange=U(function(){Z.emit(v.ControlEvent.DataChange,Z.getDrawData())},16),Z.emitDrawSelect=function(pe,Ie){Z.emit(v.ControlEvent.DrawSelect,pe,Ie)},Z.sceneInstance=E,Z.controlOption=wt(wt({},Z.getDefault()),re||{}),Z.onBtnClick=Z.onBtnClick.bind(ks(Z)),Z}return Yr(y,[{key:"getActiveType",value:function(){return this.activeType}},{key:"getDefault",value:function(){return wt(wt({},Zs(Ii(y.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(E){return Zs(Ii(y.prototype),"addTo",this).call(this,E),this.init(),this}},{key:"onAdd",value:function(){var E=this.controlOption,Z=E.className,re=E.style,pe=M.DOM.create("div","".concat(Vm," ").concat(Z));return re&&pe.setAttribute("style",re),pe}},{key:"onRemove",value:function(){Object.values(this.drawMap).forEach(function(E){E.clear(!0)})}},{key:"init",value:function(){var E,Z=this,re=[];Object.entries(this.controlOption.drawConfig).filter(function(pe){var Ie=No(pe,2);return Ie[1]}).sort(function(pe,Ie){var Je=No(pe,2)[1],zt=No(Ie,2)[1],ln=Number.MAX_SAFE_INTEGER;return(typeof Je=="boolean"?ln:Je.order)-(typeof zt=="boolean"?ln:zt.order)}).map(function(pe){var Ie=No(pe,2),Je=Ie[1];return[Ie[0],Vt(Je)==="object"?ng(Je,"order"):Je]}).forEach(function(pe){var Ie=No(pe,2),Je=Ie[0],zt=Ie[1];if(Vt(zt)==="object"&&zt.button){var ln=zt.button;ln.classList.contains("l7-draw-control__btn")||ln.classList.add("l7-draw-control__btn"),Z.btnMap[Je]=ln,re.push(ln)}else if(zt&&Gm.includes(Je)){var Kn=Z.initBtn(Je);Kn.addEventListener("click",Z.onBtnClick),re.push(Kn),Z.btnMap[Je]=Kn;var pr=e0[Je];if(pr&&Z.sceneInstance){var si=new pr(Z.sceneInstance,wt(wt({},Z.controlOption.commonDrawOptions),typeof zt=="boolean"?{}:zt));si.on(v.DrawEvent.Change,Z.emitDataChange),si.on(v.DrawEvent.Select,function(yi){Z.emitDrawSelect(Je,yi)}),Z.drawMap[Je]=si}}}),(E=this.container).append.apply(E,re),this.controlOption.defaultActiveType&&this.onDrawClick(this.controlOption.defaultActiveType)}},{key:"getDrawData",value:function(){return vs(jc(this.drawMap).map(function(E){var Z=No(E,2);return[Z[0],Z[1].getData()]}))}},{key:"getTypeDraw",value:function(E){var Z;return(Z=this.drawMap[E])!==null&&Z!==void 0?Z:null}},{key:"onBtnClick",value:function(E){var Z=im(E.target,ym);if(Z){var re=Z.getAttribute(xg);re==="clear"?this.clearDrawData():this.onDrawClick(re)}}},{key:"setActiveType",value:function(E){var Z=null,re=this.activeType;if(re){var pe,Ie=this.btnMap[re];if(Ie){M.DOM.removeClass(Ie,dv);var Je=this.controlOption.activeButtonClassName;Je&&M.DOM.removeClass(Ie,Je)}(pe=this.drawMap[re])===null||pe===void 0||pe.disable(),Z=null}if(re!==E&&E){var zt;(zt=this.drawMap[E])===null||zt===void 0||zt.enable();var ln=this.btnMap[E];ln&&M.DOM.addClass(ln,"".concat(dv," ").concat(this.controlOption.activeButtonClassName)),Z=E}this.activeType=Z,this.emit(v.ControlEvent.DrawChange,Z)}},{key:"onDrawClick",value:function(E){this.setActiveType(E)}},{key:"clearDrawData",value:function(){Object.values(this.drawMap).forEach(function(E){E==null||E.clear()}),this.emit(v.ControlEvent.DrawClear)}},{key:"initBtn",value:function(E){var Z=M.DOM.create("button","".concat(ym," ").concat(this.controlOption.buttonClassName));return Z.innerHTML=``),Z.setAttribute(xg,E),Z}}]),y}(M.Control);v.ACTIVE_COLOR=we,v.BaseMode=wa,v.CircleDrawer=Lo,v.DEFAULT_ADSORB_CONFIG=Et,v.DEFAULT_AREA_OPTIONS=Ln,v.DEFAULT_COMMON_OPTIONS=Oe,v.DEFAULT_CURSOR_MAP=C,v.DEFAULT_DISTANCE_OPTIONS=fn,v.DEFAULT_HISTORY_CONFIG=ur,v.DEFAULT_KEYBOARD_CONFIG=dt,v.DEFAULT_MID_POINT_STYLE=tn,v.DEFAULT_NODE_NORMAL_STYLE=Zt,v.DEFAULT_NODE_STYLE=xr,v.DEFAULT_POINT_NORMAL_STYLE=ut,v.DEFAULT_POINT_STYLE=kn,v.DEFAULT_POPUP_CONFIG=xt,v.DEFAULT_SOURCE_DATA=x,v.DEFAULT_STYLE=te,v.DEFAULT_TEXT_NORMAL_STYLE=G,v.DashLineRender=pg,v.DragPolygonMode=rh,v.DrawCircle=Lo,v.DrawControl=B0,v.DrawLine=Lh,v.DrawPoint=Uc,v.DrawPolygon=Hd,v.DrawRect=cg,v.LayerRender=kp,v.LineDrawer=Lh,v.LineMode=$a,v.LineRender=ae,v.MidPointMode=gs,v.MidPointRender=me,v.NORMAL_COLOR=ie,v.PointDrawer=Uc,v.PointMode=al,v.PointRender=ot,v.PolygonDrawer=Hd,v.PolygonMode=Ru,v.PolygonRender=dn,v.RENDER_MAP=D,v.RectDrawer=cg,v.SceneRender=tr,v.Source=sl,v.TextRender=Te,v.calcAreaText=bl,v.calcDistanceTextsByLine=Ca,v.createDashLine=Ci,v.createLineFeature=Yn,v.createPointFeature=ui,v.createPolygonFeature=xo,v.findMinIndex=wl,v.getAdsorbFeature=fl,v.getAdsorbLine=ku,v.getAdsorbPoint=Ga,v.getDefaultLineProperties=pt,v.getDefaultPointProperties=He,v.getDefaultPolygonProperties=Rn,v.getLineCenterPoint=oa,v.getLngLat=sc,v.getMapDom=Fu,v.getParentByClassName=im,v.getPosition=Fc,v.getSingleColorStyle=function(Le){return{point:{normal:{color:Le},hover:{color:Le},active:{color:Le}},line:{normal:{color:Le},hover:{color:Le},active:{color:Le}},polygon:{normal:{color:Le},hover:{color:Le},active:{color:Le},style:{opacity:.2}},text:{normal:{color:Le},active:{color:Le}},midPoint:{normal:{color:Le}},dashLine:{normal:{color:Le}}}},v.getUuid=Qa,v.isDev=!1,v.isSameFeature=hd,v.resetEventLngLat=wh,v.splitByPosition=Fr,v.transLngLat2Position=fa,v.updateTargetFeature=Ge,Object.defineProperty(v,"__esModule",{value:!0})})},68911:function(mt,q,_){"use strict";_.r(q),_.d(q,{AJAXError:function(){return ms},AttributeType:function(){return Cd},BKDRHash:function(){return xd},BaiduMap:function(){return oW},BaseLayer:function(){return ul},BaseMapService:function(){return pT},BaseMapWrapper:function(){return Hx},BaseModel:function(){return fh},BasePostProcessingPass:function(){return B_},BlendType:function(){return es},ButtonControl:function(){return tt},CameraUniform:function(){return kx},CanvasLayer:function(){return JD},CanvasUpdateType:function(){return $g},CityBuildingLayer:function(){return I8},Control:function(){return O},CoordinateSystem:function(){return Qd},CoordinateUniform:function(){return nd},DOM:function(){return v},Earth:function(){return QW},EarthLayer:function(){return zx},ExportImage:function(){return Xu},FrequencyController:function(){return Ls},Fullscreen:function(){return af},GaodeMap:function(){return H6},GaodeMapV1:function(){return W6},GaodeMapV2:function(){return H6},GeoLocate:function(){return Lm},GeometryLayer:function(){return fM},HeatmapLayer:function(){return h$},IDebugLog:function(){return Ev},ILayerStage:function(){return dd},ImageLayer:function(){return _M},InteractionEvent:function(){return Bg},LRUCache:function(){return tf},LayerPopup:function(){return k1},LayerSwitch:function(){return Jl},LineLayer:function(){return lP},LineTriangulation:function(){return It},LinearDir:function(){return Ep},LoadTileDataStatus:function(){return yp},Logo:function(){return vu},Map:function(){return NI},MapLibre:function(){return G5},MapServiceEvent:function(){return bb},MapTheme:function(){return as},Mapbox:function(){return ET},Marker:function(){return $C},MarkerLayer:function(){return GD},MaskLayer:function(){return w4},MaskOperation:function(){return qd},MouseLocation:function(){return Rc},PassType:function(){return og},PointFillTriangulation:function(){return kt},PointLayer:function(){return pP},PolygonLayer:function(){return jM},PopperControl:function(){return uo},Popup:function(){return Pm},PositionType:function(){return La},RasterLayer:function(){return Y3},RasterTileType:function(){return $v},Satistics:function(){return M},Scale:function(){return rd},ScaleTypes:function(){return qm},Scene:function(){return dZ},SceneConifg:function(){return go},SceneEventList:function(){return w2},SelectControl:function(){return bs},SizeUnitType:function(){return Ff},Source:function(){return BC},SourceTile:function(){return Mh},StencilType:function(){return Pl},StyleScaleType:function(){return Mx},TYPES:function(){return Fr},TencentMap:function(){return v9},TextureBlend:function(){return Af},TileDebugLayer:function(){return mN},TilesetManager:function(){return Hf},UpdateTileStrategy:function(){return vp},Version:function(){return Zp},Viewport:function(){return cS},WindLayer:function(){return DN},WorkerSourceMap:function(){return Wn},Zoom:function(){return Zg},aProjectFlat:function(){return yc},amap2Project:function(){return yh},amap2UnProject:function(){return pd},anchorTranslate:function(){return Mt},anchorType:function(){return Jt},applyAnchorClass:function(){return Qt},bBoxToBounds:function(){return gh},bindAll:function(){return Ho},boundsContains:function(){return Th},calAngle:function(){return Nd},calDistance:function(){return gd},calculateCentroid:function(){return Of},calculatePointsCenterAndRadius:function(){return Yf},container:function(){return om},createLayerContainer:function(){return Uy},createSceneContainer:function(){return lE},decodePickingColor:function(){return Ni},djb2hash:function(){return Sd},encodePickingColor:function(){return kr},executeWorkerTask:function(){return ji},expandUrl:function(){return Oc},extent:function(){return Gu},flow:function(){return bf},formatImage:function(){return rn},generateCatRamp:function(){return ls},generateColorRamp:function(){return Xr},generateCustomRamp:function(){return hs},generateLinearRamp:function(){return yo},generateQuantizeRamp:function(){return Sr},getAngle:function(){return df},getArrayBuffer:function(){return Vr},getBBoxFromPoints:function(){return Bf},getCullFace:function(){return mo},getData:function(){return Tn},getDefaultDomain:function(){return fi},getImage:function(){return En},getJSON:function(){return co},getProtocolAction:function(){return To},getReferrer:function(){return cu},getTileIndices:function(){return Tp},getTileWarpXY:function(){return _p},getURLFromTemplate:function(){return Zh},getWMTSURLFromTemplate:function(){return $d},gl:function(){return ho},guid:function(){return Eu},isAndroid:function(){return Cl},isColor:function(){return di},isImageBitmap:function(){return Ha},isPC:function(){return nu},isURLTemplate:function(){return sh},isWorker:function(){return tl},isiOS:function(){return yu},latitude:function(){return kh},lazyInject:function(){return yb},lazyMultiInject:function(){return l3},lineAtOffset:function(){return zf},lineAtOffsetAsyc:function(){return rf},lineStyleType:function(){return Lf},lngLatInExtent:function(){return ic},lngLatToMeters:function(){return jh},lnglatDistance:function(){return Ed},lodashUtil:function(){return Js},longitude:function(){return ad},makeXMLHttpRequestPromise:function(){return Oo},metersToLngLat:function(){return Md},normalize:function(){return Mf},osmLonLat2TileXY:function(){return yf},osmTileXY2LonLat:function(){return Jf},packCircleVertex:function(){return VD},padBounds:function(){return zd},polygonFillTriangulation:function(){return Ot},postData:function(){return Ro},project:function(){return vh},rgb2arr:function(){return Wr},sameOrigin:function(){return nt},setL7WorkerSource:function(){return li},tileToBounds:function(){return wu},tranfrormCoord:function(){return qc},unProjectFlat:function(){return Uh},validateLngLat:function(){return hc},version:function(){return ZI}});var v={};_.r(v),_.d(v,{DPR:function(){return ai},addClass:function(){return Za},addStyle:function(){return Qi},appendElementType:function(){return Oa},clearChildren:function(){return rl},create:function(){return Ps},css2Style:function(){return Ks},empty:function(){return cc},findParentElement:function(){return ju},getClass:function(){return tc},getContainer:function(){return gl},getDiffRect:function(){return Ma},getStyleList:function(){return Pi},getViewPortScale:function(){return Gr},hasClass:function(){return Tc},printCanvas:function(){return Lr},remove:function(){return Fs},removeClass:function(){return Nu},removeStyle:function(){return fs},setChecked:function(){return qa},setClass:function(){return Pc},setTransform:function(){return Pn},setUnDraggable:function(){return Dl},splitWords:function(){return Gi},triggerResize:function(){return er},trim:function(){return ds}});var M={};_.r(M),_.d(M,{getColumn:function(){return Jc},getSatByColumn:function(){return vd},max:function(){return pp},mean:function(){return ff},min:function(){return Fd},mode:function(){return lf},statMap:function(){return Zc},sum:function(){return Dh}});var C={};_.r(C),_.d(C,{add:function(){return Tu},adjoint:function(){return Dp},clone:function(){return lm},copy:function(){return i0},create:function(){return Ku},determinant:function(){return W1},equals:function(){return Sn},exactEquals:function(){return Dc},frob:function(){return ou},fromQuat:function(){return Kn},fromQuat2:function(){return re},fromRotation:function(){return Le},fromRotationTranslation:function(){return Z},fromRotationTranslationScale:function(){return zt},fromRotationTranslationScaleOrigin:function(){return ln},fromScaling:function(){return B0},fromTranslation:function(){return ng},fromValues:function(){return dc},fromXRotation:function(){return d},fromYRotation:function(){return y},fromZRotation:function(){return E},frustum:function(){return pr},getRotation:function(){return Je},getScaling:function(){return Ie},getTranslation:function(){return pe},identity:function(){return Wv},invert:function(){return Ap},lookAt:function(){return Vs},mul:function(){return rr},multiply:function(){return sf},multiplyScalar:function(){return Hc},multiplyScalarAndAdd:function(){return bu},ortho:function(){return Mo},orthoNO:function(){return Uo},orthoZO:function(){return oo},perspective:function(){return yi},perspectiveFromFieldOfView:function(){return Co},perspectiveNO:function(){return si},perspectiveZO:function(){return Do},rotate:function(){return J0},rotateX:function(){return jm},rotateY:function(){return Os},rotateZ:function(){return fv},scale:function(){return Dg},set:function(){return Du},str:function(){return cl},sub:function(){return Dr},subtract:function(){return Cu},targetTo:function(){return Ta},translate:function(){return Km},transpose:function(){return Dm}});var x={};_.r(x),_.d(x,{add:function(){return MX},angle:function(){return BL},bezier:function(){return RX},ceil:function(){return M1},clone:function(){return kz},copy:function(){return Mz},create:function(){return py},cross:function(){return nM},dist:function(){return f1},distance:function(){return NL},div:function(){return L3},divide:function(){return QD},dot:function(){return Rz},equals:function(){return FX},exactEquals:function(){return m8},floor:function(){return Oz},forEach:function(){return ww},fromValues:function(){return Nm},hermite:function(){return OX},inverse:function(){return tM},len:function(){return Vz},length:function(){return u8},lerp:function(){return p8},max:function(){return jC},min:function(){return D2},mul:function(){return UC},multiply:function(){return RL},negate:function(){return Nx},normalize:function(){return Fm},random:function(){return Nz},rotateX:function(){return Bz},rotateY:function(){return zz},rotateZ:function(){return $z},round:function(){return h8},scale:function(){return Qk},scaleAndAdd:function(){return d8},set:function(){return kX},sqrDist:function(){return y8},sqrLen:function(){return rM},squaredDistance:function(){return eM},squaredLength:function(){return f8},str:function(){return g8},sub:function(){return v8},subtract:function(){return c8},transformMat3:function(){return Fz},transformMat4:function(){return Q1},transformQuat:function(){return FL},zero:function(){return NX}});var N={},V={},R=function(g){return V[g]},k=function(g,c){V[g]=c},S=function(g){return N[g]},p=function(g,c){N[g]=c},T={},F={},K=34,he=10,fe=13;function be(a){return new Function("d","return {"+a.map(function(g,c){return JSON.stringify(g)+": d["+c+'] || ""'}).join(",")+"}")}function Ae(a,g){var c=be(a);return function(u,l){return g(c(u),l,a)}}function xe(a){var g=Object.create(null),c=[];return a.forEach(function(u){for(var l in u)l in g||c.push(g[l]=l)}),c}function Se(a,g){var c=a+"",u=c.length;return u9999?"+"+Se(a,6):Se(a,4)}function Xe(a){var g=a.getUTCHours(),c=a.getUTCMinutes(),u=a.getUTCSeconds(),l=a.getUTCMilliseconds();return isNaN(a)?"Invalid Date":it(a.getUTCFullYear(),4)+"-"+Se(a.getUTCMonth()+1,2)+"-"+Se(a.getUTCDate(),2)+(l?"T"+Se(g,2)+":"+Se(c,2)+":"+Se(u,2)+"."+Se(l,3)+"Z":u?"T"+Se(g,2)+":"+Se(c,2)+":"+Se(u,2)+"Z":c||g?"T"+Se(g,2)+":"+Se(c,2)+"Z":"")}function ft(a){var g=new RegExp('["'+a+` +\r]`),c=a.charCodeAt(0);function u(Ye,Nt){var qt,jn,Qn=l(Ye,function(Ir,ki){if(qt)return qt(Ir,ki-1);jn=Ir,qt=Nt?Ae(Ir,Nt):be(Ir)});return Qn.columns=jn||[],Qn}function l(Ye,Nt){var qt=[],jn=Ye.length,Qn=0,Ir=0,ki,jo=jn<=0,Wo=!1;Ye.charCodeAt(jn-1)===he&&--jn,Ye.charCodeAt(jn-1)===fe&&--jn;function na(){if(jo)return F;if(Wo)return Wo=!1,T;var Fa,vl=Qn,eu;if(Ye.charCodeAt(vl)===K){for(;Qn++=jn?jo=!0:(eu=Ye.charCodeAt(Qn++))===he?Wo=!0:eu===fe&&(Wo=!0,Ye.charCodeAt(Qn)===he&&++Qn),Ye.slice(vl+1,Fa-1).replace(/""/g,'"')}for(;Qn=200&&c.status<300||c.status===0)&&c.response!==null){var m=c.response;if(a.type==="json")try{m=JSON.parse(c.response)}catch(j){return g(j)}g(null,m,c.getResponseHeader("Cache-Control"),c.getResponseHeader("Expires"),c)}else{var A=new Blob([c.response],{type:c.getResponseHeader("Content-Type")});g(new ms(c.status,c.statusText,u.toString(),A))}},c.cancel=c.abort,c.send(a.body),c}function Oo(a){return new Promise(function(g,c){De(a,function(u,l,m,A,j){u?c({err:u,data:null,xhr:j}):g({err:null,data:l,cacheControl:m,expires:A,xhr:j})})})}function $i(a,g){return De(a,g)}var co=function(g,c){var u=To(g.url)||$i;return u((0,Ne.Z)((0,Ne.Z)({},g),{},{type:"json"}),c)},Vr=function(g,c){var u=To(g.url)||$i;return u((0,Ne.Z)((0,Ne.Z)({},g),{},{type:"arrayBuffer"}),c)},Ro=function(g,c){return $i((0,Ne.Z)((0,Ne.Z)({},g),{},{method:"POST"}),c)},Tn=function(g,c){return $i((0,Ne.Z)((0,Ne.Z)({},g),{},{method:"GET"}),c)};function nt(a){var g=window.document.createElement("a");return g.href=a,g.protocol===window.document.location.protocol&&g.host===window.document.location.host}var Ct="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Ht(a,g){var c=new window.Image,u=window.URL||window.webkitURL;c.crossOrigin="anonymous",c.onload=function(){g(null,c),u.revokeObjectURL(c.src),c.onload=null,window.requestAnimationFrame(function(){c.src=Ct})},c.onerror=function(){return g(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"});c.src=a.byteLength?u.createObjectURL(l):Ct}function hn(a,g){var c=new Blob([new Uint8Array(a)],{type:"image/png"});createImageBitmap(c).then(function(u){g(null,u)}).catch(function(u){g(new Error("Could not load image because of ".concat(u.message,". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")))})}var En=function(g,c,u){var l=function(A,j){if(A)c(A);else if(j){var Y=typeof createImageBitmap=="function",le=u?u(j):j;Y?hn(le,c):Ht(le,c)}};return g.type==="json"?co(g,l):Vr(g,l)},rn=function(g,c){var u=typeof createImageBitmap=="function";u?hn(g,c):Ht(g,c)},Jt=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}({}),Mt={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 Qt(a,g,c){var u=a.classList;for(var l in Mt)Mt.hasOwnProperty(l)&&u.remove("l7-".concat(c,"-anchor-").concat(l));u.add("l7-".concat(c,"-anchor-").concat(g))}function Dn(a,g,c){a.prototype=g.prototype=c,c.constructor=a}function sn(a,g){var c=Object.create(a.prototype);for(var u in g)c[u]=g[u];return c}function wr(){}var jr=.7,xi=1/jr,Pr="\\s*([+-]?\\d+)\\s*",Hi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Io="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",On=/^#([0-9a-f]{3,8})$/,zr=new RegExp("^rgb\\("+[Pr,Pr,Pr]+"\\)$"),qr=new RegExp("^rgb\\("+[Io,Io,Io]+"\\)$"),Wi=new RegExp("^rgba\\("+[Pr,Pr,Pr,Hi]+"\\)$"),ir=new RegExp("^rgba\\("+[Io,Io,Io,Hi]+"\\)$"),Jn=new RegExp("^hsl\\("+[Hi,Io,Io]+"\\)$"),$t=new RegExp("^hsla\\("+[Hi,Io,Io,Hi]+"\\)$"),Gt={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};Dn(wr,qn,{copy:function(a){return Object.assign(new this.constructor,this,a)},displayable:function(){return this.rgb().displayable()},hex:wn,formatHex:wn,formatHsl:Zn,formatRgb:_r,toString:_r});function wn(){return this.rgb().formatHex()}function Zn(){return Nr(this).formatHsl()}function _r(){return this.rgb().formatRgb()}function qn(a){var g,c;return a=(a+"").trim().toLowerCase(),(g=On.exec(a))?(c=g[1].length,g=parseInt(g[1],16),c===6?$n(g):c===3?new Ur(g>>8&15|g>>4&240,g>>4&15|g&240,(g&15)<<4|g&15,1):c===8?jt(g>>24&255,g>>16&255,g>>8&255,(g&255)/255):c===4?jt(g>>12&15|g>>8&240,g>>8&15|g>>4&240,g>>4&15|g&240,((g&15)<<4|g&15)/255):null):(g=zr.exec(a))?new Ur(g[1],g[2],g[3],1):(g=qr.exec(a))?new Ur(g[1]*255/100,g[2]*255/100,g[3]*255/100,1):(g=Wi.exec(a))?jt(g[1],g[2],g[3],g[4]):(g=ir.exec(a))?jt(g[1]*255/100,g[2]*255/100,g[3]*255/100,g[4]):(g=Jn.exec(a))?fr(g[1],g[2]/100,g[3]/100,1):(g=$t.exec(a))?fr(g[1],g[2]/100,g[3]/100,g[4]):Gt.hasOwnProperty(a)?$n(Gt[a]):a==="transparent"?new Ur(NaN,NaN,NaN,0):null}function $n(a){return new Ur(a>>16&255,a>>8&255,a&255,1)}function jt(a,g,c,u){return u<=0&&(a=g=c=NaN),new Ur(a,g,c,u)}function In(a){return a instanceof wr||(a=qn(a)),a?(a=a.rgb(),new Ur(a.r,a.g,a.b,a.opacity)):new Ur}function vr(a,g,c,u){return arguments.length===1?In(a):new Ur(a,g,c,u==null?1:u)}function Ur(a,g,c,u){this.r=+a,this.g=+g,this.b=+c,this.opacity=+u}Dn(Ur,vr,sn(wr,{brighter:function(a){return a=a==null?xi:Math.pow(xi,a),new Ur(this.r*a,this.g*a,this.b*a,this.opacity)},darker:function(a){return a=a==null?jr:Math.pow(jr,a),new Ur(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:Ao,formatHex:Ao,formatRgb:Yt,toString:Yt}));function Ao(){return"#"+xn(this.r)+xn(this.g)+xn(this.b)}function Yt(){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 xn(a){return a=Math.max(0,Math.min(255,Math.round(a)||0)),(a<16?"0":"")+a.toString(16)}function fr(a,g,c,u){return u<=0?a=g=c=NaN:c<=0||c>=1?a=g=NaN:g<=0&&(a=NaN),new Ei(a,g,c,u)}function Nr(a){if(a instanceof Ei)return new Ei(a.h,a.s,a.l,a.opacity);if(a instanceof wr||(a=qn(a)),!a)return new Ei;if(a instanceof Ei)return a;a=a.rgb();var g=a.r/255,c=a.g/255,u=a.b/255,l=Math.min(g,c,u),m=Math.max(g,c,u),A=NaN,j=m-l,Y=(m+l)/2;return j?(g===m?A=(c-u)/j+(c0&&Y<1?0:A,new Ei(A,j,Y,a.opacity)}function bi(a,g,c,u){return arguments.length===1?Nr(a):new Ei(a,g,c,u==null?1:u)}function Ei(a,g,c,u){this.h=+a,this.s=+g,this.l=+c,this.opacity=+u}Dn(Ei,bi,sn(wr,{brighter:function(a){return a=a==null?xi:Math.pow(xi,a),new Ei(this.h,this.s,this.l*a,this.opacity)},darker:function(a){return a=a==null?jr:Math.pow(jr,a),new Ei(this.h,this.s,this.l*a,this.opacity)},rgb:function(){var a=this.h%360+(this.h<0)*360,g=isNaN(a)||isNaN(this.s)?0:this.s,c=this.l,u=c+(c<.5?c:1-c)*g,l=2*c-u;return new Ur(Yi(a>=240?a-240:a+120,l,u),Yi(a,l,u),Yi(a<120?a+240:a-120,l,u),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 Yi(a,g,c){return(a<60?g+(c-g)*a/60:a<180?c:a<240?g+(c-g)*(240-a)/60:g)*255}function di(a){return typeof a=="string"?!!qn(a):!1}function Wr(a){var g=qn(a),c=[0,0,0,0];return g!=null&&(c[0]=g.r/255,c[1]=g.g/255,c[2]=g.b/255,c[3]=g.opacity),c}function Ni(a){var g=a&&a[0],c=a&&a[1],u=a&&a[2],l=g+c*256+u*65536-1;return l}function kr(a){return[a+1&255,a+1>>8&255,a+1>>8>>8&255]}function Xr(a){var g=window.document.createElement("canvas"),c=g.getContext("2d");g.width=256,g.height=1;for(var u=null,l=c.createLinearGradient(0,0,256,1),m=a.positions[0],A=a.positions[a.positions.length-1],j=0;j0&&new RegExp("(^|\\s)"+g+"(\\s|$)").test(c)}function Pc(a,g){a instanceof HTMLElement?a.className=g:a.className.baseVal=g}function tc(a){return a instanceof SVGElement&&(a=a.correspondingElement),a.className.baseVal===void 0?a.className:a.className.baseVal}function cc(a){for(;a&&a.firstChild;)a.removeChild(a.firstChild)}var Uu=Jo(["transform","WebkitTransform"]);function Pn(a,g){a.style[Uu]=g}function er(){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 Lr(a){var g=["padding: "+(a.height/2-8)+"px "+a.width/2+"px;","line-height: "+a.height+"px;","background-image: url("+a.toDataURL()+");"];console.log(`%c +`,g.join(""))}function Gr(){var a,g=window.document.querySelector('meta[name="viewport"]');if(!g)return 1;var c=(a=g.content)===null||a===void 0?void 0:a.split(","),u=c.find(function(l){var m=l.split("="),A=(0,Oi.Z)(m,1),j=A[0];return j==="initial-scale"});return u?u.split("=")[1]*1:1}var ai=Gr()<1?1:window.devicePixelRatio;function Qi(a,g){a.setAttribute("style","".concat(a.style.cssText).concat(g))}function Pi(a){return a.split(";").map(function(g){return g.trim()}).filter(function(g){return g})}function fs(a,g){var c,u=Pi((c=a.getAttribute("style"))!==null&&c!==void 0?c:""),l=Pi(g),m=Ea.apply(void 0,[u].concat((0,or.Z)(l)));a.setAttribute("style",m.join(";"))}function Ks(a){return Object.entries(a).map(function(g){var c=(0,Oi.Z)(g,2),u=c[0],l=c[1];return"".concat(u,": ").concat(l)}).join(";")}function Ma(a,g){return{left:a.left-g.left,top:a.top-g.top,right:g.left+g.width-a.left-a.width,bottom:g.top+g.height-a.top-a.height}}function qa(a,g){a.checked=g,g?a.setAttribute("checked","true"):a.removeAttribute("checked")}function rl(a){a.innerHTML=""}function Dl(a){a.setAttribute("draggable","false")}function Oa(a,g){if(typeof g=="string"){var c=document.createElement("div");for(c.innerHTML=g;c.firstChild;)a.append(c.firstChild)}else Array.isArray(g)?a.append.apply(a,(0,or.Z)(g)):a.append(g)}function ju(a,g){for(var c=Array.isArray(g)?g:[g],u=a;u instanceof Element&&u!==window.document.body;){var l,m;if(c.find(function(A){var j;return(j=u)===null||j===void 0?void 0:j.matches(A)}))return u;u=(l=(m=u)===null||m===void 0?void 0:m.parentElement)!==null&&l!==void 0?l:null}}var Ia;function Ha(a){return typeof ImageBitmap!="undefined"&&a instanceof ImageBitmap}function tl(){return typeof importScripts=="function"}var cu=tl()?function(){return self.worker&&self.worker.referrer}:function(){return(window.location.protocol==="blob:"?window.parent:window).location.href},Xl=(Ia=navigator)===null||Ia===void 0?void 0:Ia.userAgent,yu=!!Xl.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),Cl=Xl.indexOf("Android")>-1||Xl.indexOf("Adr")>-1;function nu(){for(var a=Xl,g=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],c=!0,u=0,l=g;u0){c=!1;break}}return c}var Xn=_(80268);function Ho(a,g){a.forEach(function(c){g[c]&&(g[c]=g[c].bind(g))})}var Ls=function(){function a(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16;(0,Bt.Z)(this,a),(0,Xn.Z)(this,"duration",16),(0,Xn.Z)(this,"timestamp",new Date().getTime()),this.duration=g}return(0,lt.Z)(a,[{key:"run",value:function(c){var u=new Date().getTime(),l=u-this.timestamp;this.timestamp=u,l>=this.duration&&c()}}]),a}(),Xs=_(86461),il=_(8822);function iu(a){return typeof a=="number"}var hu=2*Math.PI*6378137/2;function ic(a,g){var c=(0,Oi.Z)(g,4),u=c[0],l=c[1],m=c[2],A=c[3];return a.lng>u&&a.lng<=m&&a.lat>l&&a.lat<=A}function Gu(a){var g=[1/0,1/0,-1/0,-1/0];return a.forEach(function(c){var u=c.coordinates;pc(g,u)}),g}function pc(a,g){return Array.isArray(g[0])?g.forEach(function(c){pc(a,c)}):(a[0]>g[0]&&(a[0]=g[0]),a[1]>g[1]&&(a[1]=g[1]),a[2]1&&arguments[1]!==void 0?arguments[1]:!0,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{enable:!0,decimal:1};a=hc(a,g);var u=a[0],l=a[1],m=u*hu/180,A=Math.log(Math.tan((90+l)*Math.PI/360))/(Math.PI/180);return A=A*hu/180,c.enable&&(m=Number(m.toFixed(c.decimal)),A=Number(A.toFixed(c.decimal))),a.length===3?[m,A,a[2]]:[m,A]}function Md(a){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,c=a[0],u=a[1],l=c/hu*180,m=u/hu*180;return m=180/Math.PI*(2*Math.atan(Math.exp(m*Math.PI/180))-Math.PI/2),g!=null&&(l=Number(l.toFixed(g)),m=Number(m.toFixed(g))),a.length===3?[l,m,a[2]]:[l,m]}function ad(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 kh(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 hc(a,g){if(g===!1)return a;var c=ad(a[0]),u=kh(a[1]);return u>85&&(u=85),u<-85&&(u=-85),a.length===3?[c,u,a[2]]:[c,u]}function yc(a){var g=85.0511287798,c=Math.max(Math.min(g,a[1]),-g),u=256<<20,l=Math.PI/180,m=a[0]*l,A=c*l;A=Math.log(Math.tan(Math.PI/4+A/2));var j=.5/Math.PI,Y=.5,le=-.5/Math.PI;return l=.5,m=u*(j*m+Y),A=u*(le*A+l),[Math.floor(m),Math.floor(A)]}function Uh(a){var g=.5/Math.PI,c=.5,u=-.5/Math.PI,l=.5,m=256<<20,A=(0,Oi.Z)(a,2),j=A[0],Y=A[1];j=(j/m-c)/g,Y=(Y/m-l)/u,Y=(Math.atan(Math.pow(Math.E,Y))-Math.PI/4)*2,l=Math.PI/180;var le=Y/l,$e=j/l;return[$e,le]}function yh(a,g){var c=85.0511287798,u=Math.PI/180,l=6378137;return g=Math.max(Math.min(c,g),-c),a*=u,g*=u,g=Math.log(Math.tan(Math.PI/4+g/2)),[a*l,g*l]}function pd(a,g){var c=Math.PI/180,u=6378137,l=a/u/c,m=2*(Math.atan(Math.exp(g/u))-Math.PI/4)/c;return[l,m]}function Ed(a,g,c){var u=(0,il.degreesToRadians)(g[1]-a[1]),l=(0,il.degreesToRadians)(g[0]-a[0]),m=(0,il.degreesToRadians)(a[1]),A=(0,il.degreesToRadians)(g[1]),j=Math.pow(Math.sin(u/2),2)+Math.pow(Math.sin(l/2),2)*Math.cos(m)*Math.cos(A);return(0,il.radiansToLength)(2*Math.atan2(Math.sqrt(j),Math.sqrt(1-j)),c="meters")}function vh(a){var g=Math.PI/180,c=85.0511287798,u=6378137,l=Math.max(Math.min(c,a[1]),-c),m=Math.sin(l*g),A=u*a[0]*g,j=u*Math.log((1+m)/(1-m))/2;return[A,j]}function zd(a,g){var c=Math.abs(a[1][1]-a[0][1])*g,u=Math.abs(a[1][0]-a[0][0])*g;return[[a[0][0]-u,a[0][1]-c],[a[1][0]+u,a[1][1]+c]]}function Th(a,g){return a[0][0]<=g[0][0]&&a[0][1]<=g[0][1]&&a[1][0]>=g[1][0]&&a[1][1]>=g[1][1]}function gh(a){return[[a[0],a[1]],[a[2],a[3]]]}function Mf(a){var g=gd(a,[0,0]);return[a[0]/g,a[1]/g]}function gd(a,g){return Math.sqrt(Math.pow(a[0]-g[0],2)+Math.pow(a[1]-g[1],2))}function Yu(a,g){return a[0]*g[0]+a[1]*g[1]}function nh(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1])}function Nd(a,g){return Math.acos(Yu(a,g)/(nh(a)*nh(g)))*180/Math.PI}function df(a,g){return g[0]>0?g[1]>0?90-Math.atan(g[1]/g[0])*180/Math.PI:90+Math.atan(-g[1]/g[0])*180/Math.PI:g[1]<0?180+(90-Math.atan(g[1]/g[0])*180/Math.PI):270+Math.atan(g[1]/-g[0])*180/Math.PI}function bf(a){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;if(!(!a||a.length<2)){for(var c=[0,1],u=0,l=[],m=0;m0){var Ye=l[m-1].rotation;Ye-$e>360-Ye+$e&&($e=$e+360)}l.push({start:A,end:j,dis:Y,rotation:$e,duration:0})}return l.map(function(Nt){Nt.duration=g*(Nt.dis/u)}),l}}function Of(a){if(iu(a[0]))return a;if(iu(a[0][0]))throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8");if(iu(a[0][0][0])){var g=a,c=0,u=0,l=0;return g.forEach(function(m){m.forEach(function(A){c+=A[0],u+=A[1],l++})}),[c/l,u/l,0]}else throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8")}function Yf(a){for(var g=a[0],c=a[1],u=a[0],l=a[1],m=0,A=0,j=0,Y=0;Yl&&(u=Math.floor(u/c)),u=u*g+a.charCodeAt(m);return u}function Sd(a){a=a.toString();for(var g=5381,c=a.length;c;)g=g*33^a.charCodeAt(--c);return g>>>0}function Eu(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var g=Math.random()*16|0,c=a==="x"?g:g&3|8;return c.toString(16)})}var xf=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 ol(a,g,c,u,l){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,A=arguments.length>6?arguments[6]:void 0,j=c;return A&&(j=Math.round(c*(m-1))/(m-1)),u?Aa(a,g,j,u,l):Aa(a,g,j,.314,l)}function Pu(a,g){var c=1-g;return(a[0]*c+a[1]*g)*c+(a[1]*c+a[2]*g)*g}function Ah(a,g){return Math.sqrt(Math.pow(a[0]-g[0],2)+Math.pow(a[1]-g[1],2))}function md(a,g,c){var u=[g[0]-a[0],g[1]-a[1]],l=Ah(u,[0,0]),m=Math.atan2(u[1],u[0]),A=l/2/Math.cos(c),j=m+c,Y=[A*Math.cos(j)+a[0],A*Math.sin(j)+a[1]];return Y}function Aa(a,g,c,u,l){if(l===xf["GAODE2.x"]){var m=yh(a[0],a[1]),A=yh(g[0],g[1]),j=md(m,A,u),Y=[m[0],j[0],A[0]],le=[m[1],j[1],A[1]];return[].concat((0,or.Z)(pd(Pu(Y,c),Pu(le,c))),[0])}else{var $e=md(a,g,u),Ye=[a[0],$e[0],g[0]],Nt=[a[1],$e[1],g[1]];return[Pu(Ye,c),Pu(Nt,c),0]}}function _u(a,g,c,u,l){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,A=arguments.length>6?arguments[6]:void 0,j=c;return A&&(j=Math.round(c*29)/29),id(a,g,j,l)}function Hl(a,g){var c=[g[0]-a[0],g[1]-a[1]],u=gd(c,[0,0]),l=Math.atan2(c[1],c[0]),m=.314,A=u/2/Math.cos(m),j=l+m,Y=[A*Math.cos(j)+a[0],A*Math.sin(j)+a[1]];return Y}function Ou(a,g){var c=1-g;return(a[0]*c+a[1]*g)*c+(a[1]*c+a[2]*g)*g}function qu(a,g){var c=[a[0]-g[0],a[1]-g[1]],u=[Math.sin(c[0]/2),Math.sin(c[1]/2)],l=u[1]*u[1]+Math.cos(a[1])*Math.cos(g[1])*u[0]*u[0];return 2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function id(a,g,c,u){var l=[(0,il.degreesToRadians)(a[0]),(0,il.degreesToRadians)(a[1])],m=[(0,il.degreesToRadians)(g[0]),(0,il.degreesToRadians)(g[1])];if(u==="GAODE2.x"){var A=Hl(l,m),j=[l[0],A[0],m[0]],Y=[l[1],A[1],m[1]];return[Ou(j,c),Ou(Y,c),0]}else{var le=qu(l,m);if(Math.abs(le-Math.PI)<.001)return[(1-c)*l[0]+c*m[0],(1-c)*l[1]+c*m[1]];var $e=Math.sin((1-c)*le)/Math.sin(le),Ye=Math.sin(c*le)/Math.sin(le),Nt=[Math.sin(l[0]),Math.sin(l[1])],qt=[Math.cos(l[0]),Math.cos(l[1])],jn=[Math.sin(m[0]),Math.sin(m[1])],Qn=[Math.cos(m[0]),Math.cos(m[1])],Ir=$e*qt[1]*qt[0]+Ye*Qn[1]*Qn[0],ki=$e*qt[1]*Nt[0]+Ye*Qn[1]*jn[0],jo=$e*Nt[1]+Ye*jn[1];return[(0,il.radiansToDegrees)(Math.atan2(ki,Ir)),(0,il.radiansToDegrees)(Math.atan2(jo,Math.sqrt(Ir*Ir+ki*ki)))]}}function ld(a,g){for(var c=0,u=[],l=0;lle){var Ir=jn.p1,ki=jn.p2,jo=(le-jn.lastTotalDistance)/jn.distance,Wo=Jh(ki,Ir,jo);$e=Wo[0],Ye=Wo[1];break}}return{lng:$e,lat:Ye,height:0}}function Jh(a,g,c){return[a[0]*c+g[0]*(1-c),a[1]*c+g[1]*(1-c)]}function Rf(a,g){return Math.sqrt(Math.pow(a[0]-g[0],2)+Math.pow(a[1]-g[1],2))}function zf(a,g){var c=g.featureId,u=a.data.dataArray;return typeof c=="number"&&(u=u.filter(function(l){var m=l.id;return m===c})),u.map(function(l){var m=Vf(l,g);return(0,Ne.Z)((0,Ne.Z)({},l),m)})}function rf(a,g){return new Promise(function(c){a.inited?c(zf(a,g)):a.once("update",function(){c(zf(a,g))})})}function Vf(a,g){var c=g.offset,u=g.shape,l=g.thetaOffset,m=g.mapVersion,A=g.segmentNumber,j=A===void 0?30:A,Y=g.autoFit,le=Y===void 0?!0:Y,$e=a.coordinates;if(u==="line")return ld($e,c);var Ye=$e[0],Nt=$e[1],qt=typeof l=="string"?a[l]||0:l,jn;switch(u){case"arc":jn=ol;break;case"greatcircle":jn=_u;break;default:jn=ol}var Qn=jn(Ye,Nt,c,qt,m,j,le),Ir=(0,Oi.Z)(Qn,3),ki=Ir[0],jo=Ir[1],Wo=Ir[2];return{lng:ki,lat:jo,height:Wo}}var tf=function(){function a(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:50,c=arguments.length>1?arguments[1]:void 0;(0,Bt.Z)(this,a),this.limit=g,this.destroy=c||this.defaultDestroy,this.order=[],this.clear()}return(0,lt.Z)(a,[{key:"clear",value:function(){var c=this;this.order.forEach(function(u){c.delete(u)}),this.cache={},this.order=[]}},{key:"get",value:function(c){var u=this.cache[c];return u&&(this.deleteOrder(c),this.appendOrder(c)),u}},{key:"set",value:function(c,u){this.cache[c]?(this.delete(c),this.cache[c]=u,this.appendOrder(c)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[c]=u,this.appendOrder(c))}},{key:"delete",value:function(c){var u=this.cache[c];u&&(this.deleteCache(c),this.deleteOrder(c),this.destroy(u,c))}},{key:"deleteCache",value:function(c){delete this.cache[c]}},{key:"deleteOrder",value:function(c){var u=this.order.findIndex(function(l){return l===c});u>=0&&this.order.splice(u,1)}},{key:"appendOrder",value:function(c){this.order.push(c)}},{key:"defaultDestroy",value:function(c,u){return null}}]),a}();function pp(a){if(a.length===0)throw new Error("max requires at least one data point");for(var g=a[0],c=1;cg&&(g=a[c]);return g*1}function Fd(a){if(a.length===0)throw new Error("min requires at least one data point");for(var g=a[0],c=1;cu&&(u=l,c=g),l=1,g=a[m]):l++;return c*1}var Zc={min:Fd,max:pp,mean:ff,sum:Dh,mode:lf};function Jc(a,g){return a.map(function(c){return c[g]})}function vd(a,g){return Zc[a](g)}var pl=_(97100),ps=_(9967),bc=_(96026),Zi=_.n(bc),$p=_(39511),Wu=_(40666),uh=_.n(Wu),vp=function(a){return a.Realtime="realtime",a.Overlap="overlap",a.Replace="replace",a}({}),yp=function(a){return a.Loading="Loading",a.Loaded="Loaded",a.Failure="Failure",a.Cancelled="Cancelled",a}({}),vg=0,uf=1,sp=2;function Vp(a){a.forEach(function(g){g.isCurrent&&(g.isVisible=g.isLoaded)})}function ap(a){a.forEach(function(g){g.properties.state=vg}),a.forEach(function(g){g.isCurrent&&!Zf(g)&&qf(g)}),a.forEach(function(g){g.isVisible=!!(g.properties.state&sp)})}function yg(a){a.forEach(function(c){c.properties.state=vg}),a.forEach(function(c){c.isCurrent&&Zf(c)});var g=a.slice().sort(function(c,u){return c.z-u.z});g.forEach(function(c){c.isVisible=!!(c.properties.state&sp),c.children.length&&(c.isVisible||c.properties.state&uf)?c.children.forEach(function(u){u.properties.state=uf}):c.isCurrent&&qf(c)})}function Zf(a){for(;a;){if(a.isLoaded)return a.properties.state|=sp,!0;a=a.parent}return!1}function qf(a){a.children.forEach(function(g){g.isLoaded?g.properties.state|=sp:qf(g)})}var Bh,kp=256,pg=[-1/0,-1/0,1/0,1/0],Mp=.2,bd=5,Qp=(Bh={},(0,Xn.Z)(Bh,vp.Realtime,Vp),(0,Xn.Z)(Bh,vp.Overlap,ap),(0,Xn.Z)(Bh,vp.Replace,yg),Bh),Ih=function(){};function yf(a,g,c){var u=Math.floor((a+180)/360*Math.pow(2,c)),l=Math.floor((1-Math.log(Math.tan(g*Math.PI/180)+1/Math.cos(g*Math.PI/180))/Math.PI)/2*Math.pow(2,c));return[u,l]}function Jf(a,g,c){var u=a/Math.pow(2,c)*360-180,l=Math.PI-2*Math.PI*g/Math.pow(2,c),m=180/Math.PI*Math.atan(.5*(Math.exp(l)-Math.exp(-l)));return[u,m]}var wu=function(g,c,u){var l=Jf(g,c,u),m=(0,Oi.Z)(l,2),A=m[0],j=m[1],Y=Jf(g+1,c+1,u),le=(0,Oi.Z)(Y,2),$e=le[0],Ye=le[1];return[A,Ye,$e,j]};function Tp(a){var g=a.zoom,c=a.latLonBounds,u=a.maxZoom,l=u===void 0?1/0:u,m=a.minZoom,A=m===void 0?0:m,j=a.zoomOffset,Y=j===void 0?0:j,le=a.extent,$e=le===void 0?pg:le,Ye=Math.ceil(g)+Y;if(Number.isFinite(A)&&Yel&&(Ye=l);for(var Nt=(0,Oi.Z)(c,4),qt=Nt[0],jn=Nt[1],Qn=Nt[2],Ir=Nt[3],ki=[Math.max(qt,$e[0]),Math.max(jn,$e[1]),Math.min(Qn,$e[2]),Math.min(Ir,$e[3])],jo=[],Wo=yf(ki[0],ki[1],Ye),na=(0,Oi.Z)(Wo,2),va=na[0],Fa=na[1],vl=yf(ki[2],ki[3],Ye),eu=(0,Oi.Z)(vl,2),uu=eu[0],Hu=eu[1],Vu=va;Vu<=uu;Vu++)for(var ih=Hu;ih<=Fa;ih++)jo.push({x:Vu,y:ih,z:Ye});var Ch=(uu+va)/2,Dd=(Fa+Hu)/2,Jp=function(mg,O0){return Math.abs(mg-Ch)+Math.abs(O0-Dd)};return jo.sort(function(Gg,mg){return Jp(Gg.x,Gg.y)-Jp(mg.x,mg.y)}),jo}var _p=function(g,c,u){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,m=Math.pow(2,u),A=m-1,j=m,Y=g,le=c;return l&&(Y<0?Y=Y+j:Y>A&&(Y=Y%j)),{warpX:Y,warpY:le}};function jf(a){var g=Eh();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function Eh(){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 Mh=function(a){(0,At.Z)(c,a);var g=jf(c);function c(u){var l;(0,Bt.Z)(this,c),l=g.call(this),(0,Xn.Z)((0,ps.Z)(l),"tileSize",256),(0,Xn.Z)((0,ps.Z)(l),"isVisible",!1),(0,Xn.Z)((0,ps.Z)(l),"isCurrent",!1),(0,Xn.Z)((0,ps.Z)(l),"isVisibleChange",!1),(0,Xn.Z)((0,ps.Z)(l),"loadedLayers",0),(0,Xn.Z)((0,ps.Z)(l),"isLayerLoaded",!1),(0,Xn.Z)((0,ps.Z)(l),"isLoad",!1),(0,Xn.Z)((0,ps.Z)(l),"isChildLoad",!1),(0,Xn.Z)((0,ps.Z)(l),"parent",null),(0,Xn.Z)((0,ps.Z)(l),"children",[]),(0,Xn.Z)((0,ps.Z)(l),"data",null),(0,Xn.Z)((0,ps.Z)(l),"properties",{}),(0,Xn.Z)((0,ps.Z)(l),"loadDataId",0);var m=u.x,A=u.y,j=u.z,Y=u.tileSize,le=u.warp,$e=le===void 0?!0:le;return l.x=m,l.y=A,l.z=j,l.warp=$e||!0,l.tileSize=Y,l}return(0,lt.Z)(c,[{key:"isLoading",get:function(){return this.loadStatus===yp.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===yp.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===yp.Failure}},{key:"setTileLayerLoaded",value:function(){this.isLayerLoaded=!0}},{key:"isCancelled",get:function(){return this.loadStatus===yp.Cancelled}},{key:"isDone",get:function(){return[yp.Loaded,yp.Cancelled,yp.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return wu(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var l=(0,Oi.Z)(this.bounds,4),m=l[0],A=l[1],j=l[2],Y=l[3],le=[(j-m)/2,(Y-A)/2],$e=(0,$p.Z)(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:le,meta:` `.concat(this.key,` - `)}});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,Ra.Z)(no().mark(function g(T){var B,Z,ee,Pe,Ze,Et,Mt,An,Mn,br,Li,Zo,Go,Qs,aa,Oa,yl;return no().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,An=this.y,Mn=this.z,br=this.bounds,Li=this.tileSize,Zo=this.warp,Go=mp(Mt,An,Mn,Zo),Qs=Go.warpX,aa=Go.warpY,Oa=this.abortController.signal,yl={x:Qs,y:aa,z:Mn,bounds:br,tileSize:Li,signal:Oa,warp:Zo},Jl.next=14,B(yl,this);case 14:Ze=Jl.sent,Jl.next=20;break;case 17:Jl.prev=17,Jl.t0=Jl.catch(7),Et=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(!(Et||!Ze)){Jl.next=28;break}return this.loadStatus=Df.Failure,ee(Et,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(An){T.e(An)}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(An){ee.e(An)}finally{ee.f()}var Et=Array.from(this.cacheTiles.values());typeof l=="function"?l(Et):Md[l](Et);var Mt=!1;Array.from(this.cacheTiles.values()).forEach(function(An){An.isVisible!==g.get(An.key)?(An.isVisibleChange=!0,Mt=!0):An.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),Et=iu({maxZoom:Pe,minZoom:Ze,zoomOffset:ee,tileSize:B,zoom:l,latLonBounds:g,extent:Z});return Et}},{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,Xn.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=Bo(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,Et=Ze===void 0?"WMTS":Ze,Mt=p.tileMatrixset,An="".concat(a,"&SERVICE=").concat(Et,"&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 An}function mh(a,p){if(!a)throw new Error(p||"web worker helper assertion failed.")}var Io={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,document:typeof document!="undefined"&&document},D=Io.self||Io.window||{},F=Io.window||Io.self||{},q=Io.self||Io.window||{},se=Io.document||{},Ue=typeof importScripts=="function",Jt=typeof window!="undefined"&&typeof window.orientation!="undefined",Wn=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}(),_i=Wn,Xo=new Map;function pa(a){mh(a.source&&!a.url||!a.source&&a.url);var p=Xo.get(a.source||a.url);return p||(a.url&&(p=Cl(a.url),Xo.set(a.url,p)),a.source&&(p=Ll(a.source),Xo.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 { + `)}});return $e}},{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 u=(0,pl.Z)(Zi().mark(function m(A){var j,Y,le,$e,Ye,Nt,qt,jn,Qn,Ir,ki,jo,Wo,na,va,Fa,vl;return Zi().wrap(function(uu){for(;;)switch(uu.prev=uu.next){case 0:return j=A.getData,Y=A.onLoad,le=A.onError,this.loadDataId++,$e=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=yp.Loading,Ye=null,uu.prev=7,qt=this.x,jn=this.y,Qn=this.z,Ir=this.bounds,ki=this.tileSize,jo=this.warp,Wo=_p(qt,jn,Qn,jo),na=Wo.warpX,va=Wo.warpY,Fa=this.abortController.signal,vl={x:na,y:va,z:Qn,bounds:Ir,tileSize:ki,signal:Fa,warp:jo},uu.next=14,j(vl,this);case 14:Ye=uu.sent,uu.next=20;break;case 17:uu.prev=17,uu.t0=uu.catch(7),Nt=uu.t0;case 20:if($e===this.loadDataId){uu.next=22;break}return uu.abrupt("return");case 22:if(!(this.isCancelled&&!Ye)){uu.next=24;break}return uu.abrupt("return");case 24:if(!(Nt||!Ye)){uu.next=28;break}return this.loadStatus=yp.Failure,le(Nt,this),uu.abrupt("return");case 28:this.loadStatus=yp.Loaded,this.data=Ye,Y(this);case 31:case"end":return uu.stop()}},m,this,[[7,17]])}));function l(m){return u.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=yp.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}]),c}(Wu.EventEmitter),Wh=function(g,c){var u=gh(g),l=zd(u,c),m=360*3-180,A=85.0511287798065,j=[Math.max(l[0][0],-m),Math.max(l[0][1],-A),Math.min(l[1][0],m),Math.min(l[1][1],A)];return j},bh=function(g,c){var u=gh(g),l=gh(c),m=Th(u,l);return m};function Vd(a,g){var c=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=Rp(a))||g&&a&&typeof a.length=="number"){c&&(a=c);var u=0,l=function(){};return{s:l,n:function(){return u>=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function Rp(a,g){if(a){if(typeof a=="string")return qp(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return qp(a,g)}}function qp(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);c=0&&Ye.x0;){var Y=l.shift();Y.abortLoad()}}},{key:"getTileByLngLat",value:function(l,m,A){var j=this.options.zoomOffset,Y=Math.ceil(A)+j,le=yf(l,m,Y),$e=this.tiles.filter(function(Ye){return Ye.key==="".concat(le[0],"_").concat(le[1],"_").concat(Y)});return $e[0]}},{key:"getTileExtent",value:function(l,m){return this.getTileIndices(m,l)}},{key:"getTileByZXY",value:function(l,m,A){var j=this.tiles.filter(function(Y){return Y.key==="".concat(m,"_").concat(A,"_").concat(l)});return j[0]}},{key:"clear",value:function(){var l=Vd(this.cacheTiles.values()),m;try{for(l.s();!(m=l.n()).done;){var A=m.value;A.isLoading?A.abortLoad():this.onTileUnload(A)}}catch(j){l.e(j)}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,m=new Map,A=Vd(this.cacheTiles.values()),j;try{for(A.s();!(j=A.n()).done;){var Y=j.value;m.set(Y.key,Y.isVisible),Y.isCurrent=!1,Y.isVisible=!1}}catch(jn){A.e(jn)}finally{A.f()}var le=Vd(this.currentTiles),$e;try{for(le.s();!($e=le.n()).done;){var Ye=$e.value;Ye.isCurrent=!0,Ye.isVisible=!0}}catch(jn){le.e(jn)}finally{le.f()}var Nt=Array.from(this.cacheTiles.values());typeof l=="function"?l(Nt):Qp[l](Nt);var qt=!1;Array.from(this.cacheTiles.values()).forEach(function(jn){jn.isVisible!==m.get(jn.key)?(jn.isVisibleChange=!0,qt=!0):jn.isVisibleChange=!1}),qt&&this.emit(wd.TileUpdate)}},{key:"getTileIndices",value:function(l,m){var A=this.options,j=A.tileSize,Y=A.extent,le=A.zoomOffset,$e=Math.floor(this.options.maxZoom),Ye=Math.ceil(this.options.minZoom),Nt=Tp({maxZoom:$e,minZoom:Ye,zoomOffset:le,tileSize:j,zoom:l,latLonBounds:m,extent:Y});return Nt}},{key:"getTileId",value:function(l,m,A){var j="".concat(l,",").concat(m,",").concat(A);return j}},{key:"loadFinished",value:function(){var l=!this.currentTiles.some(function(m){return!m.isDone});return l&&this.emit(wd.TilesLoadFinished),l}},{key:"getTile",value:function(l,m,A){var j=this.getTileId(l,m,A),Y=this.cacheTiles.get(j);return Y}},{key:"createTile",value:function(l,m,A){var j=this.getTileId(l,m,A),Y=new Mh({x:l,y:m,z:A,tileSize:this.options.tileSize,warp:this.options.warp});return this.cacheTiles.set(j,Y),Y.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),Y}},{key:"resizeCacheTiles",value:function(){var l=bd*this.currentTiles.length,m=this.cacheTiles.size>l;if(m){var A=Vd(this.cacheTiles),j;try{for(A.s();!(j=A.n()).done;){var Y=(0,Oi.Z)(j.value,2),le=Y[0],$e=Y[1];if(!$e.isVisible&&!this.currentTiles.includes($e)&&(this.cacheTiles.delete(le),this.onTileUnload($e)),this.cacheTiles.size<=l)break}}catch(Ye){A.e(Ye)}finally{A.f()}}this.rebuildTileTree()}},{key:"rebuildTileTree",value:function(){var l=Vd(this.cacheTiles.values()),m;try{for(l.s();!(m=l.n()).done;){var A=m.value;A.parent=null,A.children.length=0}}catch(Ye){l.e(Ye)}finally{l.f()}var j=Vd(this.cacheTiles.values()),Y;try{for(j.s();!(Y=j.n()).done;){var le=Y.value,$e=this.getNearestAncestor(le.x,le.y,le.z);le.parent=$e,$e!=null&&$e.children&&$e.children.push(le)}}catch(Ye){j.e(Ye)}finally{j.f()}}},{key:"getNearestAncestor",value:function(l,m,A){for(;A>this.options.minZoom;){l=Math.floor(l/2),m=Math.floor(m/2),A=A-1;var j=this.getTile(l,m,A);if(j)return j}return null}}]),c}(uh());function sh(a){return/(?=.*{box})(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(a)}function Oc(a){var g=[],c=/\{([a-z])-([a-z])\}/.exec(a);if(c){var u=c[1].charCodeAt(0),l=c[2].charCodeAt(0),m;for(m=u;m<=l;++m)g.push(a.replace(c[0],String.fromCharCode(m)));return g}if(c=/\{(\d+)-(\d+)\}/.exec(a),c){for(var A=parseInt(c[2],10),j=parseInt(c[1],10);j<=A;j++)g.push(a.replace(c[0],j.toString()));return g}return g.push(a),g}function Zh(a,g){if(!a||!a.length)throw new Error("url is not allowed to be empty");var c=g.x,u=g.y,l=g.z,m=Oc(a),A=Math.abs(c+u)%m.length,j=To(m[A])?"".concat(m[A],"/{z}/{x}/{y}"):m[A];return j.replace(/\{x\}/g,c.toString()).replace(/\{y\}/g,u.toString()).replace(/\{z\}/g,l.toString()).replace(/\{bbox\}/g,wu(c,u,l).join(",")).replace(/\{-y\}/g,(Math.pow(2,l)-u-1).toString())}function $d(a,g){var c=g.x,u=g.y,l=g.z,m=g.layer,A=g.version,j=A===void 0?"1.0.0":A,Y=g.style,le=Y===void 0?"default":Y,$e=g.format,Ye=g.service,Nt=Ye===void 0?"WMTS":Ye,qt=g.tileMatrixset,jn="".concat(a,"&SERVICE=").concat(Nt,"&REQUEST=GetTile&VERSION=").concat(j,"&LAYER=").concat(m,"&STYLE=").concat(le,"&TILEMATRIXSET=").concat(qt,"&FORMAT=").concat($e,"&TILECOL=").concat(c,"&TILEROW=").concat(u,"&TILEMATRIX=").concat(l);return jn}function zo(a,g){if(!a)throw new Error(g||"web worker helper assertion failed.")}var L={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,document:typeof document!="undefined"&&document},U=L.self||L.window||{},ae=L.window||L.self||{},me=L.self||L.window||{},ot=L.document||{},dn=typeof importScripts=="function",tr=typeof window!="undefined"&&typeof window.orientation!="undefined",Te=function(){function a(g,c){var u=this;this.name=g,this.workerThread=c,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise(function(l,m){u.resolve=l,u.reject=m})}return a.prototype.postMessage=function(g,c){this.workerThread.postMessage({source:"Main thread",type:g,payload:c})},a.prototype.done=function(g){zo(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(g)},a.prototype.error=function(g){zo(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(g)},a}(),D=Te,ie=new Map;function we(a){zo(a.source&&!a.url||!a.source&&a.url);var g=ie.get(a.source||a.url);return g||(a.url&&(g=Oe(a.url),ie.set(a.url,g)),a.source&&(g=ut(a.source),ie.set(a.source,g))),zo(g),g}function Oe(a){if(!a.startsWith("http"))return a;var g=Zt(a);return ut(g)}function ut(a){var g=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(g)}function Zt(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;mh(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=pa({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])&&(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.")},ei={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},gr=function(){function a(p){this.workerPools=new Map,this.props=nn({},ei),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=qn(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=nn(nn({},this.props),p);try{for(var l=qn(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}(),ss=gr,ts=new Map,Is=function(){function a(){}return Object.defineProperty(a,"onmessage",{set:function(p){self.onmessage=function(u){if(na(u)){var c=u.data,l=c.type,g=c.payload;p(l,g)}}},enumerable:!1,configurable:!0}),a.addEventListener=function(p){var u=ts.get(p);u||(u=function(c){if(na(c)){var l=c.data,g=l.type,T=l.payload;p(g,T)}}),self.addEventListener("message",u)},a.removeEventListener=function(p){var u=ts.get(p);ts.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}(),ca=null;function na(a){var p=a.type,u=a.data;return p==="message"&&u&&typeof u.source=="string"&&u.source==="Main thread"}function Ko(a){return JSON.parse(Gs(a))}function Gs(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 Va(a){return""+a.name}function _l(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,Ct.Z)(this,a),(0,Cn.Z)(this,"lastFlip",-1),(0,Cn.Z)(this,"miter",zf(0,0)),(0,Cn.Z)(this,"started",!1),(0,Cn.Z)(this,"dash",!1),(0,Cn.Z)(this,"totalDistance",0),(0,Cn.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),Et.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Ku,g[2]|0),this.complex.indexes.push(this.currentIndex),Et.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,Rr.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),Et.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(Et,Mt,g,ju,Jl,this.totalDistance),Ze.push.apply(Ze,(0,Rr.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),An){var aa=Zd(),Oa=Zd();$d(Oa,Ip,this.normal),Bp(aa,Ip,this.normal),Mt.push(Oa[0],Oa[1],0),Mt.push(aa[0],aa[1],0),Et.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),Et.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(Et,Mt,g,this.normal,this.thickness,this.totalDistance);Ze.push.apply(Ze,(0,Rr.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]]),Et=ku([l[0],l[1]]);ut(Ip,Ze,Et);var Mt=0;if(this.dash&&(Mt=this.lineSegmentDistance(Ze,Et),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,Rr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),B+=2;else{var An=ku([T[0],T[1]]);mn(Ze,An)&&Bp(An,Ze,Qg(An,Hf(An,Ze,Et))),ut(Pg,An,Ze);var Mn=H(de,Zd(),Ip,Pg,this.thickness),br=(0,Xn.Z)(Mn,2),Li=br[0],Zo=br[1],Go=Lm(de,this.normal)<0?-1:1;this.extrusions(ee,Pe,g,Zo,Li,this.totalDistance),Z.push.apply(Z,(0,Rr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Go=-1,bf(this.normal,Zo),B+=2,this.lastFlip=Go}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",Et=this.join==="bevel",Mt=ku([g[0],g[1]]),An=ku([l[0],l[1]]);ut(Ip,Mt,An);var Mn=0;if(this.dash&&(Mn=this.lineSegmentDistance(Mt,An),this.totalDistance+=Mn),this.normal||(this.normal=Zd(),_e(this.normal,Ip)),!this.started)if(this.started=!0,Ze){var br=Zd(),Li=Zd();Bp(br,this.normal,Ip),Bp(Li,this.normal,Ip),Pe.push(Li[0],Li[1],0),Pe.push(br[0],br[1],0),ee.push(l[0],l[1],l[2]|0,this.totalDistance-Mn,-this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),ee.push(l[0],l[1],l[2]|0,this.totalDistance-Mn,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-Mn);if(Z.push(c+0,c+1,c+2),T){var Qs=ku([T[0],T[1]]);mn(Mt,Qs)&&Bp(Qs,Mt,Qg(Qs,Hf(Qs,Mt,An))),ut(Pg,Qs,Mt);var aa=H(de,Zd(),Ip,Pg,this.thickness),Oa=(0,Xn.Z)(aa,2),yl=Oa[0],Wl=Oa[1],Jl=Lm(de,this.normal)<0?-1:1,ju=Et;if(!ju&&this.join==="miter"){var Ku=yl;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,Rr.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,yl,this.totalDistance),Z.push.apply(Z,(0,Rr.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(),Go=Zd();$d(Go,Ip,this.normal),Bp(Zo,Ip,this.normal),Pe.push(Go[0],Go[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,Rr.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 vn(a,p){return[(a-Math.PI)*180/Math.PI,(Math.atan(Math.exp(Math.PI-p))-Math.PI*.25)*2*180/Math.PI]}var Rn=function(){var a=(0,Ra.Z)(no().mark(function p(u){var c,l,g,T,B,Z,ee,Pe,Ze;return no().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(Mn){var br=Mn.id;return g?Zi(br):[0,0,0]},a_DistanceAndIndex:function(Mn,br,Li,Zo,Go,Qs){return Qs===void 0?[Li[3],10]:[Li[3],Qs]},a_Total_Distance:function(Mn,br,Li){return[Li[5]]},a_Size:function(Mn){var br=Mn.size,Li=br===void 0?1:br;return Array.isArray(Li)?[Li[0],Li[1]]:[Li,0]},a_Normal:function(Mn,br,Li,Zo,Go){return Go},a_Miter:function(Mn,br,Li){return[Li[4]]},a_iconMapUV:function(Mn){var br=Mn.texture,Li=T[br]||{x:0,y:0},Zo=Li.x,Go=Li.y;return[Zo,Go]}},Z={sizePerElement:0,elements:[]},ee=0,Pe=[],Ze=3,l.forEach(function(An,Mn){var br=Ut(An),Li=br.indices,Zo=br.vertices,Go=br.normals,Qs=br.size,aa=br.indexes;Li.forEach(function(Jl){Pe.push(Jl+ee)}),Ze=Qs;var Oa=Zo.length/Qs;Z.sizePerElement=Ze,Z.elements.push({featureIdx:Mn,vertices:Zo,normals:Go,offset:ee}),ee+=Oa;for(var yl=function(ju){var Ku=(Go==null?void 0:Go.slice(ju*3,ju*3+3))||[],Jc=Zo.slice(ju*Qs,ju*Qs+Qs),gd=0;aa&&aa[ju]!==void 0&&(gd=aa[ju]),c.forEach(function(Ch){if(Ch&&B[Ch.name]){var og;(og=Ch.buffer.data).push.apply(og,(0,Rr.Z)(B[Ch.name](An,Mn,Jc,ju,Ku,gd)))}})},Wl=0;Wl0}).forEach(function(Li,Zo){var Go=Di(Li[B]);(0,dt.flattenEach)(Go,function(Qs){var aa=(0,Pt.getCoords)(Qs),Oa=(0,Se.Z)((0,Se.Z)({},Li),{},{_id:Zo,coordinates:aa});Z.push(Oa)})}),{dataArray:Z};for(var ee=0;ee>>0}function Os(a,p){return p===void 0?null:(0,jo.Z)(a.properties[p])*1==="number"?a.properties[p]*1:a.properties&&a.properties[p]?ys(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=Di(a),a.features.length===0?{dataArray:[],featureKeys:c}:((0,dt.flattenEach)(a,function(l,g){var T=Os(l,p==null?void 0:p.featureId);T===null&&(T=g);var B=T,Z=(0,Pt.getCoords)(l),ee=(0,Se.Z)((0,Se.Z)({},l.properties),{},{coordinates:Z,_id:B});u.push(ee)}),{dataArray:u,featureKeys:c})):(a.features=[],{dataArray:[]})}function vt(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],Et=p+3;Etl)B=Et,l=Mt;else if(Mt===l){var An=Math.abs(Et-g);Anc&&(B-p>3&&vt(a,p,B,c),a[B+2]=l,u-B>3&&vt(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,vt(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&&An=c)continue;var Mn=[];if(Et==="Point"||Et==="MultiPoint")tr(Ze,Mn,u,c,l);else if(Et==="LineString")Pn(Ze,Mn,u,c,l,!1,B.lineMetrics);else if(Et==="MultiLineString")dr(Ze,Mn,u,c,l,!1);else if(Et==="Polygon")dr(Ze,Mn,u,c,l,!0);else if(Et==="MultiPolygon")for(var br=0;br=u&&T<=c&&(p.push(a[g]),p.push(a[g+1]),p.push(a[g+2]))}}function Pn(a,p,u,c,l,g,T){for(var B=ir(a),Z=l===0?Ri:Te,ee=a.start,Pe,Ze,Et=0;Etu&&(Ze=Z(B,Mt,An,br,Li,u),T&&(B.start=ee+Pe*Ze)):Zo>c?Go=u&&(Ze=Z(B,Mt,An,br,Li,u),Qs=!0),Go>c&&Zo<=c&&(Ze=Z(B,Mt,An,br,Li,c),Qs=!0),!g&&Qs&&(T&&(B.end=ee+Pe*Ze),p.push(B),B=ir(a)),T&&(ee+=Pe)}var aa=a.length-3;Mt=a[aa],An=a[aa+1],Mn=a[aa+2],Zo=l===0?Mt:An,Zo>=u&&Zo<=c&&jr(B,Mt,An,Mn),aa=B.length-3,g&&aa>=3&&(B[aa]!==B[0]||B[aa+1]!==B[1])&&jr(B,B[0],B[1],B[2]),B.length&&p.push(B)}function ir(a){var p=[];return p.size=a.size,p.start=a.start,p.end=a.end,p}function dr(a,p,u,c,l,g){for(var T=0;TT.maxX&&(T.maxX=Pe),Ze>T.maxY&&(T.maxY=Ze)}return T}function ko(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&&Ai(B,g),a.push(B)}function Ai(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=Nr(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=qo(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)))}ds.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},ds.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"),Et=this.tiles[Ze]=ma(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,Et.numFeatures,Et.numPoints,Et.numSimplified),console.timeEnd("creation"));var Mt="z"+p;this.stats[Mt]=(this.stats[Mt]||0)+1,this.total++}if(Et.source=a,l){if(p===Z.maxZoom||p===l)continue;var An=1<1&&console.time("clipping");var Mn=.5*Z.buffer/Z.extent,br=.5-Mn,Li=.5+Mn,Zo=1+Mn,Go,Qs,aa,Oa,yl,Wl;Go=Qs=aa=Oa=null,yl=kt(a,Pe,u-Mn,u+Li,0,Et.minX,Et.maxX,Z),Wl=kt(a,Pe,u+br,u+Zo,0,Et.minX,Et.maxX,Z),a=null,yl&&(Go=kt(yl,Pe,c-Mn,c+Li,1,Et.minY,Et.maxY,Z),Qs=kt(yl,Pe,c+br,c+Zo,1,Et.minY,Et.maxY,Z),yl=null),Wl&&(aa=kt(Wl,Pe,c-Mn,c+Li,1,Et.minY,Et.maxY,Z),Oa=kt(Wl,Pe,c+br,c+Zo,1,Et.minY,Et.maxY,Z),Wl=null),ee>1&&console.timeEnd("clipping"),B.push(Go||[],p+1,u*2,c*2),B.push(Qs||[],p+1,u*2,c*2+1),B.push(aa||[],p+1,u*2+1,c*2),B.push(Oa||[],p+1,u*2+1,c*2+1)}}},ds.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[Ps(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]?da(this.tiles[B],l):null)};function Ps(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,Xn.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])),Js(u,c,l)}var hn={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:Or}};function Or(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,Xn.Z)(T,2),Z=B[0],ee=B[1],Pe=(p==null?void 0:p.RMinMax)||wn(u,Z,ee),Ze=(p==null?void 0:p.GMinMax)||wn(c,Z,ee),Et=(p==null?void 0:p.BMinMax)||wn(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")},qa=m(52155),Ta=m.n(qa);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 os(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 os(a,p)}}function os(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);ug&&(Mt=0,Et++),B[Mn]={x:Mt,y:Ze+Et*Mo,width:Mo,height:Mo,advance:Li},Mt+=Mo}});var An=c+l*2;return{mapping:B,xOffset:Mt,yOffset:Ze+Et*An,canvasHeight:js(Ze+(Et+1)*An)}}function Da(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&&(Na(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&&Na(B,T,l);var Et=js(g+l+p);return{mapping:B,canvasHeight:Et}}function Na(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,Se.Z)((0,Se.Z)({},T),{},{x:B,y:u,image:T.image,width:T.width,height:T.height})}}catch(Z){c.e(Z)}finally{c.f()}}function js(a){return Math.pow(2,Math.ceil(Math.log2(a)))}var bs,Qi;function ar(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=zr(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 zr(a,p){if(a){if(typeof a=="string")return Ci(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 Ci(a,p)}}function Ci(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0&&m[m.length-1])&&(le[0]===6||le[0]===2)){c=0;continue}if(le[0]===3&&(!m||le[1]>m[0]&&le[1]this.getMaxConcurrency();c?(g.destroy(),this.count--):this.idleQueue.push(g),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[u++],done:!a}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")},_n={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},ii=function(){function a(g){this.workerPools=new Map,this.props=gn({},_n),this.setProps(g),this.workerPools=new Map}return a.isSupported=function(){return te.isSupported()},a.getWorkerFarm=function(g){return g===void 0&&(g={}),a.workerFarm=a.workerFarm||new a({}),a.workerFarm.setProps(g),a.workerFarm},a.prototype.destroy=function(){var g,c;try{for(var u=dr(this.workerPools.values()),l=u.next();!l.done;l=u.next()){var m=l.value;m.destroy()}}catch(A){g={error:A}}finally{try{l&&!l.done&&(c=u.return)&&c.call(u)}finally{if(g)throw g.error}}},a.prototype.setProps=function(g){var c,u;this.props=gn(gn({},this.props),g);try{for(var l=dr(this.workerPools.values()),m=l.next();!m.done;m=l.next()){var A=m.value;A.setProps(this.getWorkerPoolProps())}}catch(j){c={error:j}}finally{try{m&&!m.done&&(u=l.return)&&u.call(l)}finally{if(c)throw c.error}}},a.prototype.getWorkerPool=function(g){var c=g.name,u=g.source,l=g.url,m=this.workerPools.get(c);return m||(m=new Pt({name:c,source:u,url:l}),m.setProps(this.getWorkerPoolProps()),this.workerPools.set(c,m)),m},a.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},a}(),Si=ii,Vi=new Map,Fo=function(){function a(){}return Object.defineProperty(a,"onmessage",{set:function(g){self.onmessage=function(c){if(Fi(c)){var u=c.data,l=u.type,m=u.payload;g(l,m)}}},enumerable:!1,configurable:!0}),a.addEventListener=function(g){var c=Vi.get(g);c||(c=function(u){if(Fi(u)){var l=u.data,m=l.type,A=l.payload;g(m,A)}}),self.addEventListener("message",c)},a.removeEventListener=function(g){var c=Vi.get(g);Vi.delete(g),self.removeEventListener("message",c)},a.postMessage=function(g,c){if(self){var u={source:"Worker thread",type:g,payload:c},l=tn(c);self.postMessage(u,l)}},a}(),Go=null;function Fi(a){var g=a.type,c=a.data;return g==="message"&&c&&typeof c.source=="string"&&c.source==="Main thread"}function Vo(a){return JSON.parse(zs(a))}function zs(a){var g=new Set;return JSON.stringify(a,function(c,u){if(typeof u=="object"&&u!==null){if(g.has(u))try{return JSON.parse(JSON.stringify(u))}catch(l){return}g.add(u)}return u})}function ja(a){return""+a.name}function Ba(a,g){g===void 0&&(g={});var c=g[a.id]||{},u=a.name+".worker.js",l=c.workerUrl;return g._workerType==="test"&&(l=a.module+"/dist/"+u),l||(l="https://unpkg.com/"+a.module+"/dist/"+u),assert(l),l}var zl=function(a,g,c,u){function l(m){return m instanceof c?m:new c(function(A){A(m)})}return new(c||(c=Promise))(function(m,A){function j($e){try{le(u.next($e))}catch(Ye){A(Ye)}}function Y($e){try{le(u.throw($e))}catch(Ye){A(Ye)}}function le($e){$e.done?m($e.value):l($e.value).then(j,Y)}le((u=u.apply(a,g||[])).next())})},dl=function(a,g){var c={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},u,l,m,A;return A={next:j(0),throw:j(1),return:j(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function j(le){return function($e){return Y([le,$e])}}function Y(le){if(u)throw new TypeError("Generator is already executing.");for(;c;)try{if(u=1,l&&(m=le[0]&2?l.return:le[0]?l.throw||((m=l.return)&&m.call(l),0):l.next)&&!(m=m.call(l,le[1])).done)return m;switch(l=0,m&&(le=[le[0]&2,m.value]),le[0]){case 0:case 1:m=le;break;case 4:return c.label++,{value:le[1],done:!1};case 5:c.label++,l=le[1],le=[0];continue;case 7:le=c.ops.pop(),c.trys.pop();continue;default:if(m=c.trys,!(m=m.length>0&&m[m.length-1])&&(le[0]===6||le[0]===2)){c=0;continue}if(le[0]===3&&(!m||le[1]>m[0]&&le[1]0){if(this._values.length>0)throw new Error("Illegal internal state");var c=this._settlers.shift();g instanceof Error?c.reject(g):c.resolve({value:g})}else this._values.push(g)},a.prototype.close=function(){for(;this._settlers.length>0;){var g=this._settlers.shift();g.resolve({done:!0})}this._closed=!0},a.prototype.next=function(){var g=this;if(this._values.length>0){var c=this._values.shift();return c instanceof Error?Promise.reject(c):Promise.resolve({done:!1,value:c})}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(u,l){g._settlers.push({resolve:u,reject:l})})},a}(),th=null,Qc=function(a,g,c,u){function l(m){return m instanceof c?m:new c(function(A){A(m)})}return new(c||(c=Promise))(function(m,A){function j($e){try{le(u.next($e))}catch(Ye){A(Ye)}}function Y($e){try{le(u.throw($e))}catch(Ye){A(Ye)}}function le($e){$e.done?m($e.value):l($e.value).then(j,Y)}le((u=u.apply(a,g||[])).next())})},Rh=function(a,g){var c={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},u,l,m,A;return A={next:j(0),throw:j(1),return:j(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function j(le){return function($e){return Y([le,$e])}}function Y(le){if(u)throw new TypeError("Generator is already executing.");for(;c;)try{if(u=1,l&&(m=le[0]&2?l.return:le[0]?l.throw||((m=l.return)&&m.call(l),0):l.next)&&!(m=m.call(l,le[1])).done)return m;switch(l=0,m&&(le=[le[0]&2,m.value]),le[0]){case 0:case 1:m=le;break;case 4:return c.label++,{value:le[1],done:!1};case 5:c.label++,l=le[1],le=[0];continue;case 7:le=c.ops.pop(),c.trys.pop();continue;default:if(m=c.trys,!(m=m.length>0&&m[m.length-1])&&(le[0]===6||le[0]===2)){c=0;continue}if(le[0]===3&&(!m||le[1]>m[0]&&le[1]0&&m[m.length-1])&&(le[0]===6||le[0]===2)){c=0;continue}if(le[0]===3&&(!m||le[1]>m[0]&&le[1]0&&(l=1/Math.sqrt(l)),a[0]=g[0]*l,a[1]=g[1]*l,a}function em(a,g){return a[0]*g[0]+a[1]*g[1]}function kg(a,g,c){var u=g[0]*c[1]-g[1]*c[0];return a[0]=a[1]=0,a[2]=u,a}function Cm(a,g,c,u){var l=g[0],m=g[1];return a[0]=l+u*(c[0]-l),a[1]=m+u*(c[1]-m),a}function dg(a,g){g=g||1;var c=glMatrix.RANDOM()*2*Math.PI;return a[0]=Math.cos(c)*g,a[1]=Math.sin(c)*g,a}function F0(a,g,c){var u=g[0],l=g[1];return a[0]=c[0]*u+c[2]*l,a[1]=c[1]*u+c[3]*l,a}function Gf(a,g,c){var u=g[0],l=g[1];return a[0]=c[0]*u+c[2]*l+c[4],a[1]=c[1]*u+c[3]*l+c[5],a}function gp(a,g,c){var u=g[0],l=g[1];return a[0]=c[0]*u+c[3]*l+c[6],a[1]=c[1]*u+c[4]*l+c[7],a}function pf(a,g,c){var u=g[0],l=g[1];return a[0]=c[0]*u+c[4]*l+c[12],a[1]=c[1]*u+c[5]*l+c[13],a}function v0(a,g,c,u){var l=g[0]-c[0],m=g[1]-c[1],A=Math.sin(u),j=Math.cos(u);return a[0]=l*j-m*A+c[0],a[1]=l*A+m*j+c[1],a}function y0(a,g){var c=a[0],u=a[1],l=g[0],m=g[1],A=Math.sqrt(c*c+u*u)*Math.sqrt(l*l+m*m),j=A&&(c*l+u*m)/A;return Math.acos(Math.min(Math.max(j,-1),1))}function tm(a){return a[0]=0,a[1]=0,a}function u0(a){return"vec2("+a[0]+", "+a[1]+")"}function T0(a,g){return a[0]===g[0]&&a[1]===g[1]}function L0(a,g){var c=a[0],u=a[1],l=g[0],m=g[1];return Math.abs(c-l)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(l))&&Math.abs(u-m)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(m))}var Bd=null,Qm=Xd,hm=null,n0=null,mm=null,$m=null,Np=null,ug=function(){var a=Pd();return function(g,c,u,l,m,A){var j,Y;for(c||(c=2),u||(u=0),l?Y=Math.min(l*c+u,g.length):Y=g.length,j=u;j0&&arguments[0]!==void 0?arguments[0]:{};(0,Bt.Z)(this,a),(0,Xn.Z)(this,"lastFlip",-1),(0,Xn.Z)(this,"miter",wp(0,0)),(0,Xn.Z)(this,"started",!1),(0,Xn.Z)(this,"dash",!1),(0,Xn.Z)(this,"totalDistance",0),(0,Xn.Z)(this,"currentIndex",0),this.join=g.join||"miter",this.cap=g.cap||"butt",this.miterLimit=g.miterLimit||10,this.thickness=g.thickness||1,this.dash=g.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,lt.Z)(a,[{key:"extrude_gaode2",value:function(c,u){var l=this.complex;if(c.length<=1)return l;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var m=c.length,A=l.startIndex,j=1;jthis.miterLimit&&(ih=!0)}ih?(qt.push(this.normal[0],this.normal[1],0),qt.push(Hu[0],Hu[1],0),Nt.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*Vu,m[2]|0),this.complex.indexes.push(this.currentIndex),Nt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness*Vu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Ye.push.apply(Ye,(0,or.Z)(this.lastFlip!==-Vu?[u,u+2,u+3]:[u+2,u+1,u+3])),Ye.push(u+2,u+3,u+4),ke(Sm,Q),eg(this.normal,Sm),qt.push(this.normal[0],this.normal[1],0),Nt.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*Vu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,$e+=3):(this.extrusions(Nt,qt,m,Hu,uu,this.totalDistance),Ye.push.apply(Ye,(0,or.Z)(this.lastFlip===1?[u,u+2,u+3]:[u+2,u+1,u+3])),Vu=-1,eg(this.normal,Hu),$e+=2),this.lastFlip=Vu}else{if(ke(this.normal,on),jn){var va=Pd(),Fa=Pd();Qm(Fa,on,this.normal),If(va,on,this.normal),qt.push(Fa[0],Fa[1],0),qt.push(va[0],va[1],0),Nt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),Nt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(Nt,qt,m,this.normal,this.thickness,this.totalDistance);Ye.push.apply(Ye,(0,or.Z)(this.lastFlip===1?[u,u+2,u+3]:[u+2,u+1,u+3])),$e+=2}return $e}},{key:"simpleSegment",value:function(c,u,l,m,A){var j=0,Y=c.indices,le=c.positions,$e=c.normals,Ye=yc([m[0],m[1]]),Nt=yc([l[0],l[1]]);yt(on,Ye,Nt);var qt=0;if(this.dash&&(qt=this.lineSegmentDistance(Ye,Nt),this.totalDistance+=qt),this.normal||(this.normal=Pd(),ke(this.normal,on)),this.started||(this.started=!0,this.extrusions(le,$e,l,this.normal,this.thickness,this.totalDistance-qt)),Y.push(u+0,u+1,u+2),!A)ke(this.normal,on),this.extrusions(le,$e,m,this.normal,this.thickness,this.totalDistance),Y.push.apply(Y,(0,or.Z)(this.lastFlip===1?[u,u+2,u+3]:[u+2,u+1,u+3])),j+=2;else{var jn=yc([A[0],A[1]]);We(Ye,jn)&&If(jn,Ye,cm(jn,Xd(jn,Ye,Nt))),yt(Q,jn,Ye);var Qn=de(W,Pd(),on,Q,this.thickness),Ir=(0,Oi.Z)(Qn,2),ki=Ir[0],jo=Ir[1],Wo=em(W,this.normal)<0?-1:1;this.extrusions(le,$e,m,jo,ki,this.totalDistance),Y.push.apply(Y,(0,or.Z)(this.lastFlip===1?[u,u+2,u+3]:[u+2,u+1,u+3])),Wo=-1,eg(this.normal,jo),j+=2,this.lastFlip=Wo}return j}},{key:"segment",value:function(c,u,l,m,A){var j=0,Y=c.indices,le=c.positions,$e=c.normals,Ye=this.cap==="square",Nt=this.join==="bevel",qt=yc([m[0],m[1]]),jn=yc([l[0],l[1]]);yt(on,qt,jn);var Qn=0;if(this.dash&&(Qn=this.lineSegmentDistance(qt,jn),this.totalDistance+=Qn),this.normal||(this.normal=Pd(),ke(this.normal,on)),!this.started)if(this.started=!0,Ye){var Ir=Pd(),ki=Pd();If(Ir,this.normal,on),If(ki,this.normal,on),$e.push(ki[0],ki[1],0),$e.push(Ir[0],Ir[1],0),le.push(l[0],l[1],l[2]|0,this.totalDistance-Qn,-this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),le.push(l[0],l[1],l[2]|0,this.totalDistance-Qn,this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(le,$e,l,this.normal,this.thickness,this.totalDistance-Qn);if(Y.push(u+0,u+1,u+2),A){var na=yc([A[0],A[1]]);We(qt,na)&&If(na,qt,cm(na,Xd(na,qt,jn))),yt(Q,na,qt);var va=de(W,Pd(),on,Q,this.thickness),Fa=(0,Oi.Z)(va,2),vl=Fa[0],eu=Fa[1],uu=em(W,this.normal)<0?-1:1,Hu=Nt;if(!Hu&&this.join==="miter"){var Vu=vl;Vu>this.miterLimit&&(Hu=!0)}Hu?($e.push(this.normal[0],this.normal[1],0),$e.push(eu[0],eu[1],0),le.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*uu,m[2]|0),this.complex.indexes.push(this.currentIndex),le.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness*uu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Y.push.apply(Y,(0,or.Z)(this.lastFlip!==-uu?[u,u+2,u+3]:[u+2,u+1,u+3])),Y.push(u+2,u+3,u+4),ke(Sm,Q),eg(this.normal,Sm),$e.push(this.normal[0],this.normal[1],0),le.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*uu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,j+=3):(this.extrusions(le,$e,m,eu,vl,this.totalDistance),Y.push.apply(Y,(0,or.Z)(this.lastFlip===1?[u,u+2,u+3]:[u+2,u+1,u+3])),uu=-1,eg(this.normal,eu),j+=2),this.lastFlip=uu}else{if(ke(this.normal,on),Ye){var jo=Pd(),Wo=Pd();Qm(Wo,on,this.normal),If(jo,on,this.normal),$e.push(Wo[0],Wo[1],0),$e.push(jo[0],jo[1],0),le.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),le.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(le,$e,m,this.normal,this.thickness,this.totalDistance);Y.push.apply(Y,(0,or.Z)(this.lastFlip===1?[u,u+2,u+3]:[u+2,u+1,u+3])),j+=2}return j}},{key:"extrusions",value:function(c,u,l,m,A,j){u.push(m[0],m[1],0),u.push(m[0],m[1],0),c.push(l[0],l[1],l[2]|0,j,-A,l[2]|0),this.complex.indexes.push(this.currentIndex),c.push(l[0],l[1],l[2]|0,j,A,l[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(c,u){var l=u[0]-c[0],m=u[1]-c[1];return Math.sqrt(l*l+m*m)}}]),a}();function It(a){var g=a.coordinates,c=a.originCoordinates,u=a.version,l=new ct({dash:!0,join:"bevel"});if(u==="GAODE2.x"){var m=g;Array.isArray(m[0][0])||(m=[g]);var A=c;Array.isArray(A[0][0])||(A=[c]);for(var j=0;j0}).forEach(function(ki,jo){var Wo=Or(ki[j]);(0,Ft.flattenEach)(Wo,function(na){var va=(0,Xt.getCoords)(na),Fa=(0,Ne.Z)((0,Ne.Z)({},ki),{},{_id:jo,coordinates:va});Y.push(Fa)})}),{dataArray:Y};for(var le=0;le>>0}function _o(a,g){return g===void 0?null:(0,Li.Z)(a.properties[g])*1==="number"?a.properties[g]*1:a.properties&&a.properties[g]?Ki(a.properties[g]+"")%1000019:null}function xs(a,g){var c=[],u={};return a.features?(a.features=a.features.filter(function(l){var m=l.geometry;return l!=null&&m&&m.type&&m.coordinates&&m.coordinates.length>0}),a=Or(a),a.features.length===0?{dataArray:[],featureKeys:u}:((0,Ft.flattenEach)(a,function(l,m){var A=_o(l,g==null?void 0:g.featureId);A===null&&(A=m);var j=A,Y=(0,Xt.getCoords)(l),le=(0,Ne.Z)((0,Ne.Z)({},l.properties),{},{coordinates:Y,_id:j});c.push(le)}),{dataArray:c,featureKeys:u})):(a.features=[],{dataArray:[]})}function ts(a,g,c,u){for(var l=u,m=c-g>>1,A=c-g,j,Y=a[g],le=a[g+1],$e=a[c],Ye=a[c+1],Nt=g+3;Ntl)j=Nt,l=qt;else if(qt===l){var jn=Math.abs(Nt-m);jnu&&(j-g>3&&ts(a,g,j,u),a[j+2]=l,c-j>3&&ts(a,j,c,u))}function vs(a,g,c,u,l,m){var A=l-c,j=m-u;if(A!==0||j!==0){var Y=((a-c)*A+(g-u)*j)/(A*A+j*j);Y>1?(c=l,u=m):Y>0&&(c+=A*Y,u+=j*Y)}return A=a-c,j=g-u,A*A+j*j}function _a(a,g,c,u){var l={id:typeof a=="undefined"?null:a,type:g,geometry:c,tags:u,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Bo(l),l}function Bo(a){var g=a.geometry,c=a.type;if(c==="Point"||c==="MultiPoint"||c==="LineString")Ja(a,g);else if(c==="Polygon"||c==="MultiLineString")for(var u=0;u0&&(u?A+=(l*le-Y*m)/2:A+=Math.sqrt(Math.pow(Y-l,2)+Math.pow(le-m,2))),l=Y,m=le}var $e=g.length-3;g[2]=1,ts(g,0,$e,c),g[$e+2]=1,g.size=Math.abs(A),g.start=0,g.end=g.size}function Ts(a,g,c,u){for(var l=0;l1?1:c}function ia(a,g,c,u,l,m,A,j){if(c/=g,u/=g,m>=c&&A=u)return null;for(var Y=[],le=0;le=c&&jn=u)continue;var Qn=[];if(Nt==="Point"||Nt==="MultiPoint")Yl(Ye,Qn,c,u,l);else if(Nt==="LineString")Fn(Ye,Qn,c,u,l,!1,j.lineMetrics);else if(Nt==="MultiLineString")Qr(Ye,Qn,c,u,l,!1);else if(Nt==="Polygon")Qr(Ye,Qn,c,u,l,!0);else if(Nt==="MultiPolygon")for(var Ir=0;Ir=c&&A<=u&&(g.push(a[m]),g.push(a[m+1]),g.push(a[m+2]))}}function Fn(a,g,c,u,l,m,A){for(var j=io(a),Y=l===0?vo:os,le=a.start,$e,Ye,Nt=0;Ntc&&(Ye=Y(j,qt,jn,Ir,ki,c),A&&(j.start=le+$e*Ye)):jo>u?Wo=c&&(Ye=Y(j,qt,jn,Ir,ki,c),na=!0),Wo>u&&jo<=u&&(Ye=Y(j,qt,jn,Ir,ki,u),na=!0),!m&&na&&(A&&(j.end=le+$e*Ye),g.push(j),j=io(a)),A&&(le+=$e)}var va=a.length-3;qt=a[va],jn=a[va+1],Qn=a[va+2],jo=l===0?qt:jn,jo>=c&&jo<=u&&qi(j,qt,jn,Qn),va=j.length-3,m&&va>=3&&(j[va]!==j[0]||j[va+1]!==j[1])&&qi(j,j[0],j[1],j[2]),j.length&&g.push(j)}function io(a){var g=[];return g.size=a.size,g.start=a.start,g.end=a.end,g}function Qr(a,g,c,u,l,m){for(var A=0;AA.maxX&&(A.maxX=$e),Ye>A.maxY&&(A.maxY=Ye)}return A}function $l(a,g,c,u){var l=g.geometry,m=g.type,A=[];if(m==="Point"||m==="MultiPoint")for(var j=0;j0&&g.size<(l?A:u)){c.numPoints+=g.length/3;return}for(var j=[],Y=0;YA)&&(c.numSimplified++,j.push(g[Y]),j.push(g[Y+1])),c.numPoints++;l&&Ys(j,m),a.push(j)}function Ys(a,g){for(var c=0,u=0,l=a.length,m=l-2;u0===g)for(u=0,l=a.length;u24)throw new Error("maxZoom should be in the 0-24 range");if(g.promoteId&&g.generateId)throw new Error("promoteId and generateId cannot be used together.");var u=ns(a,g);this.tiles={},this.tileCoords=[],c&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",g.indexMaxZoom,g.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),u=Ms(u,g),u.length&&this.splitTile(u,0,0,0),c&&(u.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)))}rs.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},rs.prototype.splitTile=function(a,g,c,u,l,m,A){for(var j=[a,g,c,u],Y=this.options,le=Y.debug;j.length;){u=j.pop(),c=j.pop(),g=j.pop(),a=j.pop();var $e=1<1&&console.time("creation"),Nt=this.tiles[Ye]=jl(a,g,c,u,Y),this.tileCoords.push({z:g,x:c,y:u}),le)){le>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",g,c,u,Nt.numFeatures,Nt.numPoints,Nt.numSimplified),console.timeEnd("creation"));var qt="z"+g;this.stats[qt]=(this.stats[qt]||0)+1,this.total++}if(Nt.source=a,l){if(g===Y.maxZoom||g===l)continue;var jn=1<1&&console.time("clipping");var Qn=.5*Y.buffer/Y.extent,Ir=.5-Qn,ki=.5+Qn,jo=1+Qn,Wo,na,va,Fa,vl,eu;Wo=na=va=Fa=null,vl=ia(a,$e,c-Qn,c+ki,0,Nt.minX,Nt.maxX,Y),eu=ia(a,$e,c+Ir,c+jo,0,Nt.minX,Nt.maxX,Y),a=null,vl&&(Wo=ia(vl,$e,u-Qn,u+ki,1,Nt.minY,Nt.maxY,Y),na=ia(vl,$e,u+Ir,u+jo,1,Nt.minY,Nt.maxY,Y),vl=null),eu&&(va=ia(eu,$e,u-Qn,u+ki,1,Nt.minY,Nt.maxY,Y),Fa=ia(eu,$e,u+Ir,u+jo,1,Nt.minY,Nt.maxY,Y),eu=null),le>1&&console.timeEnd("clipping"),j.push(Wo||[],g+1,c*2,u*2),j.push(na||[],g+1,c*2,u*2+1),j.push(va||[],g+1,c*2+1,u*2),j.push(Fa||[],g+1,c*2+1,u*2+1)}}},rs.prototype.getTile=function(a,g,c){var u=this.options,l=u.extent,m=u.debug;if(a<0||a>24)return null;var A=1<1&&console.log("drilling down to z%d-%d-%d",a,g,c);for(var Y=a,le=g,$e=c,Ye;!Ye&&Y>0;)Y--,le=Math.floor(le/2),$e=Math.floor($e/2),Ye=this.tiles[ys(Y,le,$e)];return!Ye||!Ye.source?null:(m>1&&console.log("found parent tile z%d-%d-%d",Y,le,$e),m>1&&console.time("drilling down"),this.splitTile(Ye.source,Y,le,$e,a,g,c),m>1&&console.timeEnd("drilling down"),this.tiles[j]?su(this.tiles[j],l):null)};function ys(a,g,c){return((1<0)switch(u[0]){case"band":try{a[l]=g[u[1]][c]}catch(m){console.warn("Raster Data err!"),a[l]=0}break;default:Ge(u,g,c)}})}function He(a){var g=(0,Oi.Z)(a,3),c=g[0],u=g[1],l=u===void 0?-1:u,m=g[2],A=m===void 0?-1:m;if(c===void 0)return console.warn("Express err!"),["+",0,0];var j=c.replace(/\s+/g,"");return[j,l,A]}function pt(a){var g=He(a),c=g[0],u=g[1],l=g[2];return Array.isArray(u)&&(u=pt(a[1])),Array.isArray(l)&&(l=pt(a[2])),Qa(c,u,l)}var Rn={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:ui}};function ui(a,g){for(var c=a[0].rasterData,u=a[1].rasterData,l=a[2].rasterData,m=[],A=(g==null?void 0:g.countCut)||[2,98],j=(0,Oi.Z)(A,2),Y=j[0],le=j[1],$e=(g==null?void 0:g.RMinMax)||Yn(c,Y,le),Ye=(g==null?void 0:g.GMinMax)||Yn(u,Y,le),Nt=(g==null?void 0:g.BMinMax)||Yn(l,Y,le),qt=0;qt"),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")},fl=1e20,Ga=function(){function a(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=g.fontSize,u=c===void 0?24:c,l=g.buffer,m=l===void 0?3:l,A=g.radius,j=A===void 0?8:A,Y=g.cutoff,le=Y===void 0?.25:Y,$e=g.fontFamily,Ye=$e===void 0?"sans-serif":$e,Nt=g.fontWeight,qt=Nt===void 0?"normal":Nt,jn=g.fontStyle,Qn=jn===void 0?"normal":jn;(0,Bt.Z)(this,a),(0,Xn.Z)(this,"buffer",void 0),(0,Xn.Z)(this,"cutoff",void 0),(0,Xn.Z)(this,"radius",void 0),(0,Xn.Z)(this,"size",void 0),(0,Xn.Z)(this,"ctx",void 0),(0,Xn.Z)(this,"gridOuter",void 0),(0,Xn.Z)(this,"gridInner",void 0),(0,Xn.Z)(this,"f",void 0),(0,Xn.Z)(this,"z",void 0),(0,Xn.Z)(this,"v",void 0),this.buffer=m,this.cutoff=le,this.radius=j;var Ir=this.size=u+m*4,ki=this._createCanvas(Ir),jo=this.ctx=ki.getContext("2d",{willReadFrequently:!0});jo.font="".concat(Qn," ").concat(qt," ").concat(u,"px ").concat(Ye),jo.textBaseline="alphabetic",jo.textAlign="left",jo.fillStyle="black",this.gridOuter=new Float64Array(Ir*Ir),this.gridInner=new Float64Array(Ir*Ir),this.f=new Float64Array(Ir),this.z=new Float64Array(Ir+1),this.v=new Uint16Array(Ir)}return(0,lt.Z)(a,[{key:"_createCanvas",value:function(c){var u=document.createElement("canvas");return u.width=u.height=c,u}},{key:"draw",value:function(c){var u=this.ctx.measureText(c),l=u.width,m=u.actualBoundingBoxAscent,A=u.actualBoundingBoxDescent,j=u.actualBoundingBoxLeft,Y=u.actualBoundingBoxRight,le=Math.ceil(m),$e=0,Ye=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(Y-j))),Nt=Math.min(this.size-this.buffer,le+Math.ceil(A)),qt=Ye+2*this.buffer,jn=Nt+2*this.buffer,Qn=Math.max(qt*jn,0),Ir=new Uint8ClampedArray(Qn),ki={data:Ir,width:qt,height:jn,glyphWidth:Ye,glyphHeight:Nt,glyphTop:le,glyphLeft:$e,glyphAdvance:l};if(Ye===0||Nt===0)return ki;var jo=this.buffer,Wo=this.gridInner,na=this.gridOuter,va=this.ctx;va.clearRect(jo,jo,Ye,Nt),va.fillText(c,jo,jo+le);var Fa=va.getImageData(jo,jo,Ye,Nt);na.fill(fl,0,Qn),Wo.fill(0,0,Qn);for(var vl=0;vl0?Vu*Vu:0,Wo[Hu]=Vu<0?Vu*Vu:0}}}ku(na,0,0,qt,jn,qt,this.f,this.v,this.z),ku(Wo,jo,jo,Ye,Nt,qt,this.f,this.v,this.z);for(var ih=0;ih-1);Y++,m[Y]=j,A[Y]=le,A[Y+1]=fl}for(var Nt=0,qt=0;Nt=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function Xo(a,g){if(a){if(typeof a=="string")return Ns(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Ns(a,g)}}function Ns(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);cm&&(qt=0,Nt++),j[Qn]={x:qt,y:Ye+Nt*Xa,width:Xa,height:Xa,advance:ki},qt+=Xa}});var jn=u+l*2;return{mapping:j,xOffset:qt,yOffset:Ye+Nt*jn,canvasHeight:al(Ye+(Nt+1)*jn)}}function wa(a,g,c){var u=0,l=0,m=0,A=[],j={},Y=ws(a),le;try{for(Y.s();!(le=Y.n()).done;){var $e=le.value;if(!j[$e.id]){var Ye=$e.size;u+Ye+g>c&&(Bs(j,A,l),u=0,l=m+l+g,m=0,A=[]),A.push({icon:$e,xOffset:u}),u=u+Ye+g,m=Math.max(m,Ye)}}}catch(qt){Y.e(qt)}finally{Y.f()}A.length>0&&Bs(j,A,l);var Nt=al(m+l+g);return{mapping:j,canvasHeight:Nt}}function Bs(a,g,c){var u=ws(g),l;try{for(u.s();!(l=u.n()).done;){var m=l.value,A=m.icon,j=m.xOffset;a[A.id]=(0,Ne.Z)((0,Ne.Z)({},A),{},{x:j,y:c,image:A.image,width:A.width,height:A.height})}}catch(Y){u.e(Y)}finally{u.f()}}function al(a){return Math.pow(2,Math.ceil(Math.log2(a)))}var gs,$s;function As(a,g){var c=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=fo(a))||g&&a&&typeof a.length=="number"){c&&(a=c);var u=0,l=function(){};return{s:l,n:function(){return u>=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function fo(a,g){if(a){if(typeof a=="string")return Xi(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Xi(a,g)}}function Xi(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);c0?(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,Et=p[8]*c,Mt=p[9]*l,An=p[10]*g,Mn=T+Pe+An,br=0;return Mn>0?(br=Math.sqrt(Mn+1)*2,a[3]=.25*br,a[0]=(Ze-Mt)/br,a[1]=(Et-Z)/br,a[2]=(B-ee)/br):T>Pe&&T>An?(br=Math.sqrt(1+T-Pe-An)*2,a[3]=(Ze-Mt)/br,a[0]=.25*br,a[1]=(B+ee)/br,a[2]=(Et+Z)/br):Pe>An?(br=Math.sqrt(1+Pe-T-An)*2,a[3]=(Et-Z)/br,a[0]=(B+ee)/br,a[1]=.25*br,a[2]=(Ze+Mt)/br):(br=Math.sqrt(1+An-T-Pe)*2,a[3]=(B-ee)/br,a[0]=(Et+Z)/br,a[1]=(Ze+Mt)/br,a[2]=.25*br),a}function wt(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,Et=l*ee,Mt=l*Pe,An=g*ee,Mn=g*Pe,br=T*Pe,Li=B*Z,Zo=B*ee,Go=B*Pe,Qs=c[0],aa=c[1],Oa=c[2];return a[0]=(1-(An+br))*Qs,a[1]=(Et+Go)*Qs,a[2]=(Mt-Zo)*Qs,a[3]=0,a[4]=(Et-Go)*aa,a[5]=(1-(Ze+br))*aa,a[6]=(Mn+Li)*aa,a[7]=0,a[8]=(Mt+Zo)*Oa,a[9]=(Mn-Li)*Oa,a[10]=(1-(Ze+An))*Oa,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,Et=g*ee,Mt=g*Pe,An=g*Ze,Mn=T*Pe,br=T*Ze,Li=B*Ze,Zo=Z*ee,Go=Z*Pe,Qs=Z*Ze,aa=c[0],Oa=c[1],yl=c[2],Wl=l[0],Jl=l[1],ju=l[2],Ku=(1-(Mn+Li))*aa,Jc=(Mt+Qs)*aa,gd=(An-Go)*aa,Ch=(Mt-Qs)*Oa,og=(1-(Et+Li))*Oa,um=(br+Zo)*Oa,Zg=(An+Go)*yl,Zm=(br-Zo)*yl,p0=(1-(Et+Mn))*yl;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 Nn(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,Et=l*T,Mt=l*B,An=l*Z,Mn=g*T,br=g*B,Li=g*Z;return a[0]=1-Ze-An,a[1]=Pe+Li,a[2]=Et-br,a[3]=0,a[4]=Pe-Li,a[5]=1-ee-An,a[6]=Mt+Mn,a[7]=0,a[8]=Et+br,a[9]=Mt-Mn,a[10]=1-ee-Ze,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}function cr(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 Ur(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 bi=Ur;function _o(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 zo(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 qs(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 ra=qs;function al(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 Pa(a,p,u,c){var l,g,T,B,Z,ee,Pe,Ze,Et,Mt,An=p[0],Mn=p[1],br=p[2],Li=c[0],Zo=c[1],Go=c[2],Qs=u[0],aa=u[1],Oa=u[2];return Math.abs(An-Qs)0&&(Mt=1/Math.sqrt(Mt),Pe*=Mt,Ze*=Mt,Et*=Mt);var An=Z*Et-ee*Ze,Mn=ee*Pe-B*Et,br=B*Ze-Z*Pe;return Mt=An*An+Mn*Mn+br*br,Mt>0&&(Mt=1/Math.sqrt(Mt),An*=Mt,Mn*=Mt,br*=Mt),a[0]=An,a[1]=Mn,a[2]=br,a[3]=0,a[4]=Ze*br-Et*Mn,a[5]=Et*An-Pe*br,a[6]=Pe*Mn-Ze*An,a[7]=0,a[8]=Pe,a[9]=Ze,a[10]=Et,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],Et=a[10],Mt=a[11],An=a[12],Mn=a[13],br=a[14],Li=a[15],Zo=p[0],Go=p[1],Qs=p[2],aa=p[3],Oa=p[4],yl=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-Go)<=ud*Math.max(1,Math.abs(c),Math.abs(Go))&&Math.abs(l-Qs)<=ud*Math.max(1,Math.abs(l),Math.abs(Qs))&&Math.abs(g-aa)<=ud*Math.max(1,Math.abs(g),Math.abs(aa))&&Math.abs(T-Oa)<=ud*Math.max(1,Math.abs(T),Math.abs(Oa))&&Math.abs(B-yl)<=ud*Math.max(1,Math.abs(B),Math.abs(yl))&&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(Et-Jc)<=ud*Math.max(1,Math.abs(Et),Math.abs(Jc))&&Math.abs(Mt-gd)<=ud*Math.max(1,Math.abs(Mt),Math.abs(gd))&&Math.abs(An-Ch)<=ud*Math.max(1,Math.abs(An),Math.abs(Ch))&&Math.abs(Mn-og)<=ud*Math.max(1,Math.abs(Mn),Math.abs(og))&&Math.abs(br-um)<=ud*Math.max(1,Math.abs(br),Math.abs(um))&&Math.abs(Li-Zg)<=ud*Math.max(1,Math.abs(Li),Math.abs(Zg))}var Nd=Sl,qt=Uu,On,hr,Gr=(On=(0,As.b2)(),On(hr=function(){function a(){(0,Ct.Z)(this,a),(0,Cn.Z)(this,"viewport",void 0),(0,Cn.Z)(this,"overridedViewProjectionMatrix",void 0),(0,Cn.Z)(this,"jitteredViewProjectionMatrix",void 0),(0,Cn.Z)(this,"jitteredProjectionMatrix",void 0),(0,Cn.Z)(this,"viewMatrixInverse",void 0),(0,Cn.Z)(this,"cameraPosition",void 0)}return(0,He.Z)(a,[{key:"init",value:function(){}},{key:"update",value:function(u){this.viewport=u,this.viewMatrixInverse=on(),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,Xn.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=Oo(on(),[u,c,0]);this.jitteredProjectionMatrix=Sl(on(),l,this.viewport.getProjectionMatrix()),this.jitteredViewProjectionMatrix=Sl(on(),this.jitteredProjectionMatrix,this.viewport.getViewMatrix())}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0,this.jitteredViewProjectionMatrix=void 0}}]),a}())||hr),bo=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}({}),la,Ya;function ka(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=ka(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=eo("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("")]=eo("div",Z,l)}function T(B){var Z=B.replace(/^(top|bottom|left|right|center)/,"$1-").split("-");return[].concat((0,Rr.Z)(Z),[Ls[B]])}Object.values(bo).forEach(function(B){g(T(B))}),this.checkCornerOverlap()}},{key:"clearControlPos",value:function(){for(var u in this.controlCorners)this.controlCorners[u]&&sa(this.controlCorners[u]);this.controlContainer&&sa(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,Xn.Z)(ee,3),Ze=Pe[1],Et=Pe[2],Mt=u.controlCorners["".concat(Ze).concat(Et)],An=new c(function(Mn){var br=(0,Xn.Z)(Mn,1),Li=br[0].target;Mt&&(Mt.style[Ze]=Li.clientHeight+"px")});An.observe(u.controlCorners["".concat(Et).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(vr.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,As.b2)(),wh(cg=function(){function a(){(0,Ct.Z)(this,a),(0,Cn.Z)(this,"scene",void 0),(0,Cn.Z)(this,"mapsService",void 0),(0,Cn.Z)(this,"popups",[]),(0,Cn.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,Rr.Z)(this.popups),(0,Rr.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(vr.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}({}),es=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=Fa.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:es.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,As.b2)(),Yf(em=function(){function a(){(0,Ct.Z)(this,a),(0,Cn.Z)(this,"sceneConfigCache",{}),(0,Cn.Z)(this,"layerConfigCache",{}),(0,Cn.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,Se.Z)((0,Se.Z)({},kd),c)}},{key:"getLayerConfig",value:function(u){return this.layerConfigCache[u]}},{key:"setLayerConfig",value:function(u,c,l){this.layerConfigCache[c]=(0,Se.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,Se.Z)((0,Se.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],Et=p[2],Mt=p[3];return a[0]=Ze*ee-Et*Z+Mt*B,a[1]=-(Pe*ee)+Et*T-Mt*g,a[2]=Pe*Z-Ze*T+Mt*l,a[3]=-(Pe*B)+Ze*g-Et*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,Et=ee*g+T*l-B*c,Mt=-T*c-B*l-Z*g;return a[0]=Pe*ee+Mt*-T+Ze*-Z-Et*-B,a[1]=Ze*ee+Mt*-B+Et*-T-Pe*-Z,a[2]=Et*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;B0?(c[0]=(j*A+$e*u+Y*m-le*l)*2/Ye,c[1]=(Y*A+$e*l+le*u-j*m)*2/Ye,c[2]=(le*A+$e*m+j*l-Y*u)*2/Ye):(c[0]=(j*A+$e*u+Y*m-le*l)*2,c[1]=(Y*A+$e*l+le*u-j*m)*2,c[2]=(le*A+$e*m+j*l-Y*u)*2),Z(a,g,c),a}function pe(a,g){return a[0]=g[12],a[1]=g[13],a[2]=g[14],a}function Ie(a,g){var c=g[0],u=g[1],l=g[2],m=g[4],A=g[5],j=g[6],Y=g[8],le=g[9],$e=g[10];return a[0]=Math.hypot(c,u,l),a[1]=Math.hypot(m,A,j),a[2]=Math.hypot(Y,le,$e),a}function Je(a,g){var c=new ko(3);Ie(c,g);var u=1/c[0],l=1/c[1],m=1/c[2],A=g[0]*u,j=g[1]*l,Y=g[2]*m,le=g[4]*u,$e=g[5]*l,Ye=g[6]*m,Nt=g[8]*u,qt=g[9]*l,jn=g[10]*m,Qn=A+$e+jn,Ir=0;return Qn>0?(Ir=Math.sqrt(Qn+1)*2,a[3]=.25*Ir,a[0]=(Ye-qt)/Ir,a[1]=(Nt-Y)/Ir,a[2]=(j-le)/Ir):A>$e&&A>jn?(Ir=Math.sqrt(1+A-$e-jn)*2,a[3]=(Ye-qt)/Ir,a[0]=.25*Ir,a[1]=(j+le)/Ir,a[2]=(Nt+Y)/Ir):$e>jn?(Ir=Math.sqrt(1+$e-A-jn)*2,a[3]=(Nt-Y)/Ir,a[0]=(j+le)/Ir,a[1]=.25*Ir,a[2]=(Ye+qt)/Ir):(Ir=Math.sqrt(1+jn-A-$e)*2,a[3]=(j-le)/Ir,a[0]=(Nt+Y)/Ir,a[1]=(Ye+qt)/Ir,a[2]=.25*Ir),a}function zt(a,g,c,u){var l=g[0],m=g[1],A=g[2],j=g[3],Y=l+l,le=m+m,$e=A+A,Ye=l*Y,Nt=l*le,qt=l*$e,jn=m*le,Qn=m*$e,Ir=A*$e,ki=j*Y,jo=j*le,Wo=j*$e,na=u[0],va=u[1],Fa=u[2];return a[0]=(1-(jn+Ir))*na,a[1]=(Nt+Wo)*na,a[2]=(qt-jo)*na,a[3]=0,a[4]=(Nt-Wo)*va,a[5]=(1-(Ye+Ir))*va,a[6]=(Qn+ki)*va,a[7]=0,a[8]=(qt+jo)*Fa,a[9]=(Qn-ki)*Fa,a[10]=(1-(Ye+jn))*Fa,a[11]=0,a[12]=c[0],a[13]=c[1],a[14]=c[2],a[15]=1,a}function ln(a,g,c,u,l){var m=g[0],A=g[1],j=g[2],Y=g[3],le=m+m,$e=A+A,Ye=j+j,Nt=m*le,qt=m*$e,jn=m*Ye,Qn=A*$e,Ir=A*Ye,ki=j*Ye,jo=Y*le,Wo=Y*$e,na=Y*Ye,va=u[0],Fa=u[1],vl=u[2],eu=l[0],uu=l[1],Hu=l[2],Vu=(1-(Qn+ki))*va,ih=(qt+na)*va,Ch=(jn-Wo)*va,Dd=(qt-na)*Fa,Jp=(1-(Nt+ki))*Fa,Gg=(Ir+jo)*Fa,mg=(jn+Wo)*vl,O0=(Ir-jo)*vl,E0=(1-(Nt+Qn))*vl;return a[0]=Vu,a[1]=ih,a[2]=Ch,a[3]=0,a[4]=Dd,a[5]=Jp,a[6]=Gg,a[7]=0,a[8]=mg,a[9]=O0,a[10]=E0,a[11]=0,a[12]=c[0]+eu-(Vu*eu+Dd*uu+mg*Hu),a[13]=c[1]+uu-(ih*eu+Jp*uu+O0*Hu),a[14]=c[2]+Hu-(Ch*eu+Gg*uu+E0*Hu),a[15]=1,a}function Kn(a,g){var c=g[0],u=g[1],l=g[2],m=g[3],A=c+c,j=u+u,Y=l+l,le=c*A,$e=u*A,Ye=u*j,Nt=l*A,qt=l*j,jn=l*Y,Qn=m*A,Ir=m*j,ki=m*Y;return a[0]=1-Ye-jn,a[1]=$e+ki,a[2]=Nt-Ir,a[3]=0,a[4]=$e-ki,a[5]=1-le-jn,a[6]=qt+Qn,a[7]=0,a[8]=Nt+Ir,a[9]=qt-Qn,a[10]=1-le-Ye,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}function pr(a,g,c,u,l,m,A){var j=1/(c-g),Y=1/(l-u),le=1/(m-A);return a[0]=m*2*j,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=m*2*Y,a[6]=0,a[7]=0,a[8]=(c+g)*j,a[9]=(l+u)*Y,a[10]=(A+m)*le,a[11]=-1,a[12]=0,a[13]=0,a[14]=A*m*2*le,a[15]=0,a}function si(a,g,c,u,l){var m=1/Math.tan(g/2),A;return a[0]=m/c,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=m,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?(A=1/(u-l),a[10]=(l+u)*A,a[14]=2*l*u*A):(a[10]=-1,a[14]=-2*u),a}var yi=si;function Do(a,g,c,u,l){var m=1/Math.tan(g/2),A;return a[0]=m/c,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=m,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?(A=1/(u-l),a[10]=l*A,a[14]=l*u*A):(a[10]=-1,a[14]=-u),a}function Co(a,g,c,u){var l=Math.tan(g.upDegrees*Math.PI/180),m=Math.tan(g.downDegrees*Math.PI/180),A=Math.tan(g.leftDegrees*Math.PI/180),j=Math.tan(g.rightDegrees*Math.PI/180),Y=2/(A+j),le=2/(l+m);return a[0]=Y,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=le,a[6]=0,a[7]=0,a[8]=-((A-j)*Y*.5),a[9]=(l-m)*le*.5,a[10]=u/(c-u),a[11]=-1,a[12]=0,a[13]=0,a[14]=u*c/(c-u),a[15]=0,a}function Uo(a,g,c,u,l,m,A){var j=1/(g-c),Y=1/(u-l),le=1/(m-A);return a[0]=-2*j,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*Y,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*le,a[11]=0,a[12]=(g+c)*j,a[13]=(l+u)*Y,a[14]=(A+m)*le,a[15]=1,a}var Mo=Uo;function oo(a,g,c,u,l,m,A){var j=1/(g-c),Y=1/(u-l),le=1/(m-A);return a[0]=-2*j,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*Y,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=le,a[11]=0,a[12]=(g+c)*j,a[13]=(l+u)*Y,a[14]=m*le,a[15]=1,a}function Vs(a,g,c,u){var l,m,A,j,Y,le,$e,Ye,Nt,qt,jn=g[0],Qn=g[1],Ir=g[2],ki=u[0],jo=u[1],Wo=u[2],na=c[0],va=c[1],Fa=c[2];return Math.abs(jn-na)0&&(qt=1/Math.sqrt(qt),$e*=qt,Ye*=qt,Nt*=qt);var jn=Y*Nt-le*Ye,Qn=le*$e-j*Nt,Ir=j*Ye-Y*$e;return qt=jn*jn+Qn*Qn+Ir*Ir,qt>0&&(qt=1/Math.sqrt(qt),jn*=qt,Qn*=qt,Ir*=qt),a[0]=jn,a[1]=Qn,a[2]=Ir,a[3]=0,a[4]=Ye*Ir-Nt*Qn,a[5]=Nt*jn-$e*Ir,a[6]=$e*Qn-Ye*jn,a[7]=0,a[8]=$e,a[9]=Ye,a[10]=Nt,a[11]=0,a[12]=l,a[13]=m,a[14]=A,a[15]=1,a}function cl(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 ou(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 Tu(a,g,c){return a[0]=g[0]+c[0],a[1]=g[1]+c[1],a[2]=g[2]+c[2],a[3]=g[3]+c[3],a[4]=g[4]+c[4],a[5]=g[5]+c[5],a[6]=g[6]+c[6],a[7]=g[7]+c[7],a[8]=g[8]+c[8],a[9]=g[9]+c[9],a[10]=g[10]+c[10],a[11]=g[11]+c[11],a[12]=g[12]+c[12],a[13]=g[13]+c[13],a[14]=g[14]+c[14],a[15]=g[15]+c[15],a}function Cu(a,g,c){return a[0]=g[0]-c[0],a[1]=g[1]-c[1],a[2]=g[2]-c[2],a[3]=g[3]-c[3],a[4]=g[4]-c[4],a[5]=g[5]-c[5],a[6]=g[6]-c[6],a[7]=g[7]-c[7],a[8]=g[8]-c[8],a[9]=g[9]-c[9],a[10]=g[10]-c[10],a[11]=g[11]-c[11],a[12]=g[12]-c[12],a[13]=g[13]-c[13],a[14]=g[14]-c[14],a[15]=g[15]-c[15],a}function Hc(a,g,c){return a[0]=g[0]*c,a[1]=g[1]*c,a[2]=g[2]*c,a[3]=g[3]*c,a[4]=g[4]*c,a[5]=g[5]*c,a[6]=g[6]*c,a[7]=g[7]*c,a[8]=g[8]*c,a[9]=g[9]*c,a[10]=g[10]*c,a[11]=g[11]*c,a[12]=g[12]*c,a[13]=g[13]*c,a[14]=g[14]*c,a[15]=g[15]*c,a}function bu(a,g,c,u){return a[0]=g[0]+c[0]*u,a[1]=g[1]+c[1]*u,a[2]=g[2]+c[2]*u,a[3]=g[3]+c[3]*u,a[4]=g[4]+c[4]*u,a[5]=g[5]+c[5]*u,a[6]=g[6]+c[6]*u,a[7]=g[7]+c[7]*u,a[8]=g[8]+c[8]*u,a[9]=g[9]+c[9]*u,a[10]=g[10]+c[10]*u,a[11]=g[11]+c[11]*u,a[12]=g[12]+c[12]*u,a[13]=g[13]+c[13]*u,a[14]=g[14]+c[14]*u,a[15]=g[15]+c[15]*u,a}function Dc(a,g){return a[0]===g[0]&&a[1]===g[1]&&a[2]===g[2]&&a[3]===g[3]&&a[4]===g[4]&&a[5]===g[5]&&a[6]===g[6]&&a[7]===g[7]&&a[8]===g[8]&&a[9]===g[9]&&a[10]===g[10]&&a[11]===g[11]&&a[12]===g[12]&&a[13]===g[13]&&a[14]===g[14]&&a[15]===g[15]}function Sn(a,g){var c=a[0],u=a[1],l=a[2],m=a[3],A=a[4],j=a[5],Y=a[6],le=a[7],$e=a[8],Ye=a[9],Nt=a[10],qt=a[11],jn=a[12],Qn=a[13],Ir=a[14],ki=a[15],jo=g[0],Wo=g[1],na=g[2],va=g[3],Fa=g[4],vl=g[5],eu=g[6],uu=g[7],Hu=g[8],Vu=g[9],ih=g[10],Ch=g[11],Dd=g[12],Jp=g[13],Gg=g[14],mg=g[15];return Math.abs(c-jo)<=Ec*Math.max(1,Math.abs(c),Math.abs(jo))&&Math.abs(u-Wo)<=Ec*Math.max(1,Math.abs(u),Math.abs(Wo))&&Math.abs(l-na)<=Ec*Math.max(1,Math.abs(l),Math.abs(na))&&Math.abs(m-va)<=Ec*Math.max(1,Math.abs(m),Math.abs(va))&&Math.abs(A-Fa)<=Ec*Math.max(1,Math.abs(A),Math.abs(Fa))&&Math.abs(j-vl)<=Ec*Math.max(1,Math.abs(j),Math.abs(vl))&&Math.abs(Y-eu)<=Ec*Math.max(1,Math.abs(Y),Math.abs(eu))&&Math.abs(le-uu)<=Ec*Math.max(1,Math.abs(le),Math.abs(uu))&&Math.abs($e-Hu)<=Ec*Math.max(1,Math.abs($e),Math.abs(Hu))&&Math.abs(Ye-Vu)<=Ec*Math.max(1,Math.abs(Ye),Math.abs(Vu))&&Math.abs(Nt-ih)<=Ec*Math.max(1,Math.abs(Nt),Math.abs(ih))&&Math.abs(qt-Ch)<=Ec*Math.max(1,Math.abs(qt),Math.abs(Ch))&&Math.abs(jn-Dd)<=Ec*Math.max(1,Math.abs(jn),Math.abs(Dd))&&Math.abs(Qn-Jp)<=Ec*Math.max(1,Math.abs(Qn),Math.abs(Jp))&&Math.abs(Ir-Gg)<=Ec*Math.max(1,Math.abs(Ir),Math.abs(Gg))&&Math.abs(ki-mg)<=Ec*Math.max(1,Math.abs(ki),Math.abs(mg))}var rr=sf,Dr=Cu,ni,so,Ws=(ni=(0,fa.b2)(),ni(so=function(){function a(){(0,Bt.Z)(this,a),(0,Xn.Z)(this,"viewport",void 0),(0,Xn.Z)(this,"overridedViewProjectionMatrix",void 0),(0,Xn.Z)(this,"jitteredViewProjectionMatrix",void 0),(0,Xn.Z)(this,"jitteredProjectionMatrix",void 0),(0,Xn.Z)(this,"viewMatrixInverse",void 0),(0,Xn.Z)(this,"cameraPosition",void 0)}return(0,lt.Z)(a,[{key:"init",value:function(){}},{key:"update",value:function(c){this.viewport=c,this.viewMatrixInverse=Ku(),Ap(this.viewMatrixInverse,c.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 c=this.viewport.getCenter(),u=(0,Oi.Z)(c,2),l=u[0],m=u[1];return[l,m]}},{key:"getFocalDistance",value:function(){return this.viewport.getFocalDistance()}},{key:"getCameraPosition",value:function(){return this.cameraPosition}},{key:"projectFlat",value:function(c,u){return this.viewport.projectFlat(c,u)}},{key:"setViewProjectionMatrix",value:function(c){this.overridedViewProjectionMatrix=c}},{key:"jitterProjectionMatrix",value:function(c,u){var l=ng(Ku(),[c,u,0]);this.jitteredProjectionMatrix=sf(Ku(),l,this.viewport.getProjectionMatrix()),this.jitteredViewProjectionMatrix=sf(Ku(),this.jitteredProjectionMatrix,this.viewport.getViewMatrix())}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0,this.jitteredViewProjectionMatrix=void 0}}]),a}())||so),La=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}({}),Is,nl;function tu(a,g){var c=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=Ds(a))||g&&a&&typeof a.length=="number"){c&&(a=c);var u=0,l=function(){};return{s:l,n:function(){return u>=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function Ds(a,g){if(a){if(typeof a=="string")return xc(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return xc(a,g)}}function xc(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);c-1&&this.controls.splice(u,1),c.remove(),this}},{key:"addControls",value:function(){var c=this;this.unAddControls.forEach(function(u){u.addTo(c.scene),c.controls.push(u)}),this.unAddControls=[]}},{key:"destroy",value:function(){var c=tu(this.controls),u;try{for(c.s();!(u=c.n()).done;){var l=u.value;l.remove()}}catch(m){c.e(m)}finally{c.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var c=this.controlCorners={},u="l7-",l=this.controlContainer=Ps("div",u+"control-container",this.container);function m(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Y=j.map(function(le){return u+le}).join(" ");c[j.filter(function(le){return!["row","column"].includes(le)}).join("")]=Ps("div",Y,l)}function A(j){var Y=j.replace(/^(top|bottom|left|right|center)/,"$1-").split("-");return[].concat((0,or.Z)(Y),[Gh[j]])}Object.values(La).forEach(function(j){m(A(j))}),this.checkCornerOverlap()}},{key:"clearControlPos",value:function(){for(var c in this.controlCorners)this.controlCorners[c]&&Fs(this.controlCorners[c]);this.controlContainer&&Fs(this.controlContainer)}},{key:"checkCornerOverlap",value:function(){var c=this,u=window.MutationObserver;if(u)for(var l=function(){var Y=A[m],le=Y.match(/^(top|bottom)(left|right)$/);if(le){var $e=(0,Oi.Z)(le,3),Ye=$e[1],Nt=$e[2],qt=c.controlCorners["".concat(Ye).concat(Nt)],jn=new u(function(Qn){var Ir=(0,Oi.Z)(Qn,1),ki=Ir[0].target;qt&&(qt.style[Ye]=ki.clientHeight+"px")});jn.observe(c.controlCorners["".concat(Nt).concat(Ye)],{childList:!0,attributes:!0})}},m=0,A=Object.keys(this.controlCorners);m-1&&this.markerLayers.splice(u,1)}},{key:"addMarker",value:function(c){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(c),c.addTo(this.scene)):this.unAddMarkers.push(c)}},{key:"addMarkers",value:function(){var c=this;this.unAddMarkers.forEach(function(u){u.addTo(c.scene),c.markers.push(u)}),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var c=this;this.unAddMarkerLayers.forEach(function(u){c.markerLayers.push(u),u.addTo(c.scene)}),this.unAddMarkers=[]}},{key:"removeMarker",value:function(c){c.remove(),this.markers.indexOf(c);var u=this.markers.indexOf(c);u>-1&&this.markers.splice(u,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(c){this.scene=c,this.mapsService=c.get(Fr.IMapService)}},{key:"destroy",value:function(){this.markers.forEach(function(c){c.remove()}),this.markers=[],this.markerLayers.forEach(function(c){c.destroy()}),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(c){c.destroy()}}]),a}())||Kh),lp,Td,jd=(lp=(0,fa.b2)(),lp(Td=function(){function a(){(0,Bt.Z)(this,a),(0,Xn.Z)(this,"scene",void 0),(0,Xn.Z)(this,"mapsService",void 0),(0,Xn.Z)(this,"popups",[]),(0,Xn.Z)(this,"unAddPopups",[])}return(0,lt.Z)(a,[{key:"isMarkerReady",get:function(){return this.mapsService.map&&this.mapsService.getMarkerContainer()}},{key:"removePopup",value:function(c){c!=null&&c.isOpen()&&c.remove();var u=this.popups.indexOf(c);u>-1&&this.popups.splice(u,1);var l=this.unAddPopups.indexOf(c);l>-1&&this.unAddPopups.splice(l,1)}},{key:"destroy",value:function(){this.popups.forEach(function(c){return c.remove()})}},{key:"addPopup",value:function(c){var u=this;c&&c.getOptions().autoClose&&[].concat((0,or.Z)(this.popups),(0,or.Z)(this.unAddPopups)).forEach(function(l){l.getOptions().autoClose&&u.removePopup(l)}),this.isMarkerReady?(c.addTo(this.scene),this.popups.push(c)):this.unAddPopups.push(c),c.on("close",function(){u.removePopup(c)})}},{key:"initPopup",value:function(){var c=this;this.unAddPopups.length&&this.unAddPopups.forEach(function(u){c.addPopup(u),c.unAddPopups=[]})}},{key:"init",value:function(c){this.scene=c,this.mapsService=c.get(Fr.IMapService)}}]),a}())||Td),es=function(a){return a.normal="normal",a.additive="additive",a.subtractive="subtractive",a.min="min",a.max="max",a.none="none",a}({}),Pl=function(a){return a.MULTIPLE="MULTIPLE",a.SINGLE="SINGLE",a}({}),qd=function(a){return a.AND="and",a.OR="or",a}({}),dd=function(a){return a.INIT="init",a.UPDATE="update",a}({}),mf={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"},rg=mf,cf,Ql,_h=Js.merge,Yd={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,stencil:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},Rd={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:qd.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},H=(cf=(0,fa.b2)(),cf(Ql=function(){function a(){(0,Bt.Z)(this,a),(0,Xn.Z)(this,"sceneConfigCache",{}),(0,Xn.Z)(this,"layerConfigCache",{}),(0,Xn.Z)(this,"layerAttributeConfigCache",{})}return(0,lt.Z)(a,[{key:"getSceneConfig",value:function(c){return this.sceneConfigCache[c]}},{key:"getSceneWarninfo",value:function(c){return rg[c]}},{key:"setSceneConfig",value:function(c,u){this.sceneConfigCache[c]=(0,Ne.Z)((0,Ne.Z)({},Yd),u)}},{key:"getLayerConfig",value:function(c){return this.layerConfigCache[c]}},{key:"setLayerConfig",value:function(c,u,l){this.layerConfigCache[u]=(0,Ne.Z)({},_h({},this.sceneConfigCache[c],Rd,l))}},{key:"getAttributeConfig",value:function(c){return this.layerAttributeConfigCache[c]}},{key:"setAttributeConfig",value:function(c,u){this.layerAttributeConfigCache[c]=(0,Ne.Z)((0,Ne.Z)({},this.layerAttributeConfigCache[c]),u)}},{key:"clean",value:function(){this.sceneConfigCache={},this.layerConfigCache={}}}]),a}())||Ql);function P(a,g,c,u){c&&Object.defineProperty(a,g,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(u):void 0})}function ee(a,g,c,u,l){var m={};return Object.keys(u).forEach(function(A){m[A]=u[A]}),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce(function(A,j){return j(a,g,A)||A},m),l&&m.initializer!==void 0&&(m.value=m.initializer?m.initializer.call(l):void 0,m.initializer=void 0),m.initializer===void 0&&(Object.defineProperty(a,g,m),m=null),m}function ye(){var a=new ko(4);return ko!=Float32Array&&(a[0]=0,a[1]=0,a[2]=0,a[3]=0),a}function Ue(a){var g=new glMatrix.ARRAY_TYPE(4);return g[0]=a[0],g[1]=a[1],g[2]=a[2],g[3]=a[3],g}function gt(a,g,c,u){var l=new ko(4);return l[0]=a,l[1]=g,l[2]=c,l[3]=u,l}function _t(a,g){return a[0]=g[0],a[1]=g[1],a[2]=g[2],a[3]=g[3],a}function Ut(a,g,c,u,l){return a[0]=g,a[1]=c,a[2]=u,a[3]=l,a}function bn(a,g,c){return a[0]=g[0]+c[0],a[1]=g[1]+c[1],a[2]=g[2]+c[2],a[3]=g[3]+c[3],a}function lr(a,g,c){return a[0]=g[0]-c[0],a[1]=g[1]-c[1],a[2]=g[2]-c[2],a[3]=g[3]-c[3],a}function ti(a,g,c){return a[0]=g[0]*c[0],a[1]=g[1]*c[1],a[2]=g[2]*c[2],a[3]=g[3]*c[3],a}function _i(a,g,c){return a[0]=g[0]/c[0],a[1]=g[1]/c[1],a[2]=g[2]/c[2],a[3]=g[3]/c[3],a}function po(a,g){return a[0]=Math.ceil(g[0]),a[1]=Math.ceil(g[1]),a[2]=Math.ceil(g[2]),a[3]=Math.ceil(g[3]),a}function Yo(a,g){return a[0]=Math.floor(g[0]),a[1]=Math.floor(g[1]),a[2]=Math.floor(g[2]),a[3]=Math.floor(g[3]),a}function qo(a,g,c){return a[0]=Math.min(g[0],c[0]),a[1]=Math.min(g[1],c[1]),a[2]=Math.min(g[2],c[2]),a[3]=Math.min(g[3],c[3]),a}function pa(a,g,c){return a[0]=Math.max(g[0],c[0]),a[1]=Math.max(g[1],c[1]),a[2]=Math.max(g[2],c[2]),a[3]=Math.max(g[3],c[3]),a}function Pa(a,g){return a[0]=Math.round(g[0]),a[1]=Math.round(g[1]),a[2]=Math.round(g[2]),a[3]=Math.round(g[3]),a}function Ra(a,g,c){return a[0]=g[0]*c,a[1]=g[1]*c,a[2]=g[2]*c,a[3]=g[3]*c,a}function Gl(a,g,c,u){return a[0]=g[0]+c[0]*u,a[1]=g[1]+c[1]*u,a[2]=g[2]+c[2]*u,a[3]=g[3]+c[3]*u,a}function ll(a,g){var c=g[0]-a[0],u=g[1]-a[1],l=g[2]-a[2],m=g[3]-a[3];return Math.hypot(c,u,l,m)}function Ul(a,g){var c=g[0]-a[0],u=g[1]-a[1],l=g[2]-a[2],m=g[3]-a[3];return c*c+u*u+l*l+m*m}function mu(a){var g=a[0],c=a[1],u=a[2],l=a[3];return Math.hypot(g,c,u,l)}function kc(a){var g=a[0],c=a[1],u=a[2],l=a[3];return g*g+c*c+u*u+l*l}function kd(a,g){return a[0]=-g[0],a[1]=-g[1],a[2]=-g[2],a[3]=-g[3],a}function Ud(a,g){return a[0]=1/g[0],a[1]=1/g[1],a[2]=1/g[2],a[3]=1/g[3],a}function Gd(a,g){var c=g[0],u=g[1],l=g[2],m=g[3],A=c*c+u*u+l*l+m*m;return A>0&&(A=1/Math.sqrt(A)),a[0]=c*A,a[1]=u*A,a[2]=l*A,a[3]=m*A,a}function ed(a,g){return a[0]*g[0]+a[1]*g[1]+a[2]*g[2]+a[3]*g[3]}function td(a,g,c,u){var l=c[0]*u[1]-c[1]*u[0],m=c[0]*u[2]-c[2]*u[0],A=c[0]*u[3]-c[3]*u[0],j=c[1]*u[2]-c[2]*u[1],Y=c[1]*u[3]-c[3]*u[1],le=c[2]*u[3]-c[3]*u[2],$e=g[0],Ye=g[1],Nt=g[2],qt=g[3];return a[0]=Ye*le-Nt*Y+qt*j,a[1]=-($e*le)+Nt*A-qt*m,a[2]=$e*Y-Ye*A+qt*l,a[3]=-($e*j)+Ye*m-Nt*l,a}function Jd(a,g,c,u){var l=g[0],m=g[1],A=g[2],j=g[3];return a[0]=l+u*(c[0]-l),a[1]=m+u*(c[1]-m),a[2]=A+u*(c[2]-A),a[3]=j+u*(c[3]-j),a}function _d(a,g){g=g||1;var c,u,l,m,A,j;do c=glMatrix.RANDOM()*2-1,u=glMatrix.RANDOM()*2-1,A=c*c+u*u;while(A>=1);do l=glMatrix.RANDOM()*2-1,m=glMatrix.RANDOM()*2-1,j=l*l+m*m;while(j>=1);var Y=Math.sqrt((1-A)/j);return a[0]=g*c,a[1]=g*u,a[2]=g*l*Y,a[3]=g*m*Y,a}function dh(a,g,c){var u=g[0],l=g[1],m=g[2],A=g[3];return a[0]=c[0]*u+c[4]*l+c[8]*m+c[12]*A,a[1]=c[1]*u+c[5]*l+c[9]*m+c[13]*A,a[2]=c[2]*u+c[6]*l+c[10]*m+c[14]*A,a[3]=c[3]*u+c[7]*l+c[11]*m+c[15]*A,a}function wf(a,g,c){var u=g[0],l=g[1],m=g[2],A=c[0],j=c[1],Y=c[2],le=c[3],$e=le*u+j*m-Y*l,Ye=le*l+Y*u-A*m,Nt=le*m+A*l-j*u,qt=-A*u-j*l-Y*m;return a[0]=$e*le+qt*-A+Ye*-Y-Nt*-j,a[1]=Ye*le+qt*-j+Nt*-A-$e*-Y,a[2]=Nt*le+qt*-Y+$e*-j-Ye*-A,a[3]=g[3],a}function Ef(a){return a[0]=0,a[1]=0,a[2]=0,a[3]=0,a}function Fp(a){return"vec4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"}function Og(a,g){return a[0]===g[0]&&a[1]===g[1]&&a[2]===g[2]&&a[3]===g[3]}function fg(a,g){var c=a[0],u=a[1],l=a[2],m=a[3],A=g[0],j=g[1],Y=g[2],le=g[3];return Math.abs(c-A)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(u-j)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(j))&&Math.abs(l-Y)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(Y))&&Math.abs(m-le)<=glMatrix.EPSILON*Math.max(1,Math.abs(m),Math.abs(le))}var _m=null,z0=null,$0=null,dm=null,Mm=null,Bu=null,xu=null,eh=function(){var a=ye();return function(g,c,u,l,m,A){var j,Y;for(c||(c=4),u||(u=0),l?Y=Math.min(l*c+u,g.length):Y=g.length,j=u;jAn-1*hi||Go<0||Qs>Mn-1*hi||Qs<0)return!1;var aa=Ze({x:Math.floor(Go/p.pickBufferScale),y:Math.floor((Mn-(g+1)*hi)/p.pickBufferScale),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:p.pickingFBO});if(p.pickedColors=aa,aa[0]!==0||aa[1]!==0||aa[2]!==0){var Oa=oi(aa),yl=u.layerPickService.getFeatureById(Oa);Oa!==u.getCurrentPickId()&&B==="mousemove"&&(B="mouseenter");var Wl={x:l,y:g,type:B,lngLat:T,featureId:Oa,feature:yl,target:Z};yl&&(ee=!0,u.setCurrentPickId(Oa),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,Se.Z)((0,Se.Z)({},Jl),{},{type:"unpick"})),p.triggerHoverOnLayer(u,Jl),u.setCurrentPickId(null)}if(Li&&u.layerPickService.highlightPickedFeature(aa),Zo&&B==="click"&&(aa==null?void 0:aa.toString())!==[0,0,0,0].toString()){var ju=oi(aa);u.getCurrentSelectedId()===null||ju!==u.getCurrentSelectedId()?(u.layerPickService.selectFeature(aa),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*=hi,ee*=hi,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:qi.CLAMP_TO_EDGE,wrapT:qi.CLAMP_TO_EDGE})}),this.interactionService.on(fg.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var p=(0,Ra.Z)(no().mark(function c(l,g,T){var B=this,Z,ee,Pe;return no().wrap(function(Et){for(;;)switch(Et.prev=Et.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 Et.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*hi/l.pickBufferScale)}),T=(0,Xn.Z)(g,4),B=T[0],Z=T[1],ee=T[2],Pe=T[3],Ze=this.rendererService,Et=Ze.readPixels,Mt=Ze.getContainer,An=this.getContainerSize(Mt()),Mn=An.width,br=An.height;if(Mn*=hi,br*=hi,B>(Mn-1)*hi/this.pickBufferScale||ee<0||Z>(br-1)*hi/this.pickBufferScale||Pe<0)return[];for(var Li=Math.min(Mn/this.pickBufferScale,ee)-B,Zo=Math.min(br/this.pickBufferScale,Pe)-Z,Go=Et({x:B,y:Math.floor(br/this.pickBufferScale-(Pe+1)),width:Li,height:Zo,data:new Uint8Array(Li*Zo*4),framebuffer:this.pickingFBO}),Qs=[],aa={},Oa=0;Oa0&&arguments[0]!==void 0?arguments[0]:!0;(0,Ct.Z)(this,a),(0,Cn.Z)(this,"autoStart",void 0),(0,Cn.Z)(this,"startTime",0),(0,Cn.Z)(this,"oldTime",0),(0,Cn.Z)(this,"running",!1),(0,Cn.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,Ra.Z)(no().mark(function g(){return no().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,Ra.Z)(no().mark(function g(){var T,B,Z,ee,Pe,Ze;return no().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(An){return An.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,Ra.Z)(no().mark(function g(T){var B;return no().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(Mn){return Mn.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 Et=qy(Pe),Mt;try{for(Et.s();!(Mt=Et.n()).done;){var An=Mt.value;An.render({isStencil:!0,stencilType:Ze,stencilIndex:g++})}}catch(Mn){Et.e(Mn)}finally{Et.f()}}l.tileMask&&l.tileMask.render({isStencil:!0,stencilType:Ze,stencilIndex:g++,stencilOperation:es.OR})}},{key:"renderTileLayer",value:function(){var c=(0,Ra.Z)(no().mark(function g(T){return no().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=Qr(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_=Fa.isNil,rw=function(){function a(p){var u=this;(0,Ct.Z)(this,a),(0,Cn.Z)(this,"name",void 0),(0,Cn.Z)(this,"type",void 0),(0,Cn.Z)(this,"scale",void 0),(0,Cn.Z)(this,"descriptor",void 0),(0,Cn.Z)(this,"featureBufferLayout",[]),(0,Cn.Z)(this,"needRescale",!1),(0,Cn.Z)(this,"needRemapping",!1),(0,Cn.Z)(this,"needRegenerateVertices",!1),(0,Cn.Z)(this,"featureRange",{startIndex:0,endIndex:1/0}),(0,Cn.Z)(this,"vertexAttribute",void 0),(0,Cn.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,Rr.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,Cn.Z)(cy,qi.FLOAT,4),(0,Cn.Z)(cy,qi.UNSIGNED_BYTE,1),(0,Cn.Z)(cy,qi.UNSIGNED_SHORT,2),cy),LS=(hx=(0,As.b2)(),T_=(0,As.f3)(vr.IRendererService),hx(D_=(A_=function(){function a(){(0,Ct.Z)(this,a),(0,Cn.Z)(this,"attributesAndIndices",void 0),Fd(this,"rendererService",sC,this),(0,Cn.Z)(this,"attributes",[]),(0,Cn.Z)(this,"triangulation",void 0),(0,Cn.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,Se.Z)((0,Se.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(aa){return aa.name===u});if(B&&B.descriptor){var Z=B.descriptor,ee=Z.update,Pe=Z.buffer,Ze=Z.size,Et=Ze===void 0?0:Ze,Mt=fx[Pe.type||qi.FLOAT];if(ee){var An=this.featureLayout,Mn=An.elements,br=An.sizePerElement,Li=Mn.slice(l,g);if(!Li.length)return;var Zo=Li[0].offset,Go=Zo*Et*Mt,Qs=Li.map(function(aa,Oa){for(var yl=aa.featureIdx,Wl=aa.vertices,Jl=aa.normals,ju=Wl.length/br,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 Et=[],Mt=arguments.length;Mt--;)Et[Mt]=arguments[Mt];var An=Et.pop(),Mn=Ze.apply(this,Et);return ee(Mn,An)}:(0,c.default)(function(Et,Mt){var An;try{An=Ze.apply(this,Et)}catch(Mn){return Mt(Mn)}if(An&&typeof An.then=="function")return ee(An,Mt);Mt(null,An)})}function ee(Ze,Et){return Ze.then(function(Mt){Pe(Et,null,Mt)},function(Mt){Pe(Et,Mt&&Mt.message?Mt:new Error(Mt))})}function Pe(Ze,Et,Mt){try{Ze(Et,Mt)}catch(An){(0,g.default)(function(Mn){throw Mn},An)}}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 Et=[],Mt=arguments.length-1;Mt-- >0;)Et[Mt]=arguments[Mt+1];if(Ze)return Pe(Ze);ee(Et.length>1?Et:Et[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 Et=(0,c.default)(Pe)?[]:{};ee(Pe,function(Mt,An,Mn){(0,g.default)(Mt)(function(br){for(var Li,Zo=[],Go=arguments.length-1;Go-- >0;)Zo[Go]=arguments[Go+1];Zo.length<2&&(Li=Zo,Zo=Li[0]),Et[An]=Zo,Mn(br)})},function(Mt){return Ze(Mt,Et)})},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 Et=-1,Mt=Ze.length;return function(){return++Et=B||Et||Pe||(Et=!0,T.next().then(function(Zo){var Go=Zo.value,Qs=Zo.done;if(!(Ze||Pe)){if(Et=!1,Qs){Pe=!0,Mt<=0&&ee(null);return}Mt++,Z(Go,An,br),An++,Mn()}}).catch(Li))}function br(Zo,Go){if(Mt-=1,!Ze){if(Zo)return Li(Zo);if(Zo===!1){Pe=!0,Ze=!0;return}if(Go===c.default||Pe&&Mt<=0)return Pe=!0,ee(null);Mn()}}function Li(Zo){Ze||(Et=!1,Pe=!0,ee(Zo))}Mn()}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,Et=Mt(Ze);function Mt(An){return An&&An.__esModule?An:{default:An}}p.default=function(An){return function(Mn,br,Li){if(Li=(0,c.default)(Li),An<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!Mn)return Li(null);if((0,Z.isAsyncGenerator)(Mn))return(0,Pe.default)(Mn,An,br,Li);if((0,Z.isAsyncIterable)(Mn))return(0,Pe.default)(Mn[Symbol.asyncIterator](),An,br,Li);var Zo=(0,g.default)(Mn),Go=!1,Qs=!1,aa=0,Oa=!1;function yl(Jl,ju){if(!Qs)if(aa-=1,Jl)Go=!0,Li(Jl);else if(Jl===!1)Go=!0,Qs=!0;else{if(ju===Et.default||Go&&aa<=0)return Go=!0,Li(null);Oa||Wl()}}function Wl(){for(Oa=!0;aa0;)Zo[Go]=arguments[Go+1];if(Li!==!1){if(Li||An===Et.length)return Mt.apply(void 0,[Li].concat(Zo));Mn(Zo)}}Mn([])}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,ht,Kt=Fa.uniq,Qt="#define PI 3.14159265359",At=`#define SHIFT_RIGHT17 1.0 / 131072.0 + `,c.id="l7-scene-".concat(sy++),c.classList.add("l7-scene"),g.appendChild(c),c}return null}function t_(a){var g,c=!0;if((a==null||(g=a.target)===null||g===void 0?void 0:g.target)instanceof HTMLElement)for(var u,l=a==null||(u=a.target)===null||u===void 0?void 0:u.target;l;){var m,A=Array.from(l.classList);if(A.includes("l7-marker")||A.includes("l7-popup")){c=!1;break}l=(m=l)===null||m===void 0?void 0:m.parentElement}return c}var ho=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}({}),s1,ov,qv,x0,n_,xy,Jv,Xm,Q0,Pv,pv,H0,P0,Hv=(s1=(0,fa.b2)(),ov=(0,fa.f3)(Fr.IMapService),qv=(0,fa.f3)(Fr.IRendererService),x0=(0,fa.f3)(Fr.IGlobalConfigService),n_=(0,fa.f3)(Fr.IInteractionService),xy=(0,fa.f3)(Fr.ILayerService),s1(Jv=(Xm=function(){function a(){var g=this;(0,Bt.Z)(this,a),(0,Xn.Z)(this,"pickedColors",void 0),(0,Xn.Z)(this,"pickedTileLayers",[]),P(this,"mapService",Q0,this),P(this,"rendererService",Pv,this),P(this,"configService",pv,this),P(this,"interactionService",H0,this),P(this,"layerService",P0,this),(0,Xn.Z)(this,"pickingFBO",void 0),(0,Xn.Z)(this,"width",0),(0,Xn.Z)(this,"height",0),(0,Xn.Z)(this,"alreadyInPicking",!1),(0,Xn.Z)(this,"pickBufferScale",1),(0,Xn.Z)(this,"pickFromPickingFBO",function(c,u){var l=u.x,m=u.y,A=u.lngLat,j=u.type,Y=u.target,le=!1,$e=g.rendererService,Ye=$e.readPixels,Nt=$e.getContainer,qt=g.getContainerSize(Nt()),jn=qt.width,Qn=qt.height;jn*=ai,Qn*=ai;var Ir=c.getLayerConfig(),ki=Ir.enableHighlight,jo=Ir.enableSelect,Wo=l*ai,na=m*ai;if(Wo>jn-1*ai||Wo<0||na>Qn-1*ai||na<0)return!1;var va=Ye({x:Math.floor(Wo/g.pickBufferScale),y:Math.floor((Qn-(m+1)*ai)/g.pickBufferScale),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:g.pickingFBO});if(g.pickedColors=va,va[0]!==0||va[1]!==0||va[2]!==0){var Fa=Ni(va),vl=c.layerPickService.getFeatureById(Fa);Fa!==c.getCurrentPickId()&&j==="mousemove"&&(j="mouseenter");var eu={x:l,y:m,type:j,lngLat:A,featureId:Fa,feature:vl,target:Y};vl&&(le=!0,c.setCurrentPickId(Fa),g.triggerHoverOnLayer(c,eu))}else{var uu={x:l,y:m,lngLat:A,type:c.getCurrentPickId()!==null&&j==="mousemove"?"mouseout":"un"+j,featureId:null,target:Y,feature:null};g.triggerHoverOnLayer(c,(0,Ne.Z)((0,Ne.Z)({},uu),{},{type:"unpick"})),g.triggerHoverOnLayer(c,uu),c.setCurrentPickId(null)}if(ki&&c.layerPickService.highlightPickedFeature(va),jo&&j==="click"&&(va==null?void 0:va.toString())!==[0,0,0,0].toString()){var Hu=Ni(va);c.getCurrentSelectedId()===null||Hu!==c.getCurrentSelectedId()?(c.layerPickService.selectFeature(va),c.setCurrentSelectedId(Hu)):(c.layerPickService.selectFeature(new Uint8Array([0,0,0,0])),c.setCurrentSelectedId(null))}return le})}return(0,lt.Z)(a,[{key:"init",value:function(c){var u=this.rendererService,l=u.createTexture2D,m=u.createFramebuffer,A=u.getContainer,j=this.getContainerSize(A()),Y=j.width,le=j.height;Y*=ai,le*=ai,this.pickBufferScale=this.configService.getSceneConfig(c).pickBufferScale||1,this.pickingFBO=m({color:l({width:Math.round(Y/this.pickBufferScale),height:Math.round(le/this.pickBufferScale),wrapS:ho.CLAMP_TO_EDGE,wrapT:ho.CLAMP_TO_EDGE})}),this.interactionService.on(Bg.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var g=(0,pl.Z)(Zi().mark(function u(l,m,A){var j=this,Y,le,$e;return Zi().wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:Y=this.rendererService,le=Y.useFramebuffer,$e=Y.clear,this.resizePickingFBO(),le(this.pickingFBO,function(){$e({framebuffer:j.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),l.hooks.beforePickingEncode.call(),l.renderModels({ispick:!0}),l.hooks.afterPickingEncode.call();var qt=j.pickBox(l,m);A(qt)});case 3:case"end":return Nt.stop()}},u,this)}));function c(u,l,m){return g.apply(this,arguments)}return c}()},{key:"pickBox",value:function(c,u){var l=this,m=u.map(function(Hu){var Vu=Hu<0?0:Hu;return Math.floor(Vu*ai/l.pickBufferScale)}),A=(0,Oi.Z)(m,4),j=A[0],Y=A[1],le=A[2],$e=A[3],Ye=this.rendererService,Nt=Ye.readPixels,qt=Ye.getContainer,jn=this.getContainerSize(qt()),Qn=jn.width,Ir=jn.height;if(Qn*=ai,Ir*=ai,j>(Qn-1)*ai/this.pickBufferScale||le<0||Y>(Ir-1)*ai/this.pickBufferScale||$e<0)return[];for(var ki=Math.min(Qn/this.pickBufferScale,le)-j,jo=Math.min(Ir/this.pickBufferScale,$e)-Y,Wo=Nt({x:j,y:Math.floor(Ir/this.pickBufferScale-($e+1)),width:ki,height:jo,data:new Uint8Array(ki*jo*4),framebuffer:this.pickingFBO}),na=[],va={},Fa=0;Fa0&&arguments[0]!==void 0?arguments[0]:!0;(0,Bt.Z)(this,a),(0,Xn.Z)(this,"autoStart",void 0),(0,Xn.Z)(this,"startTime",0),(0,Xn.Z)(this,"oldTime",0),(0,Xn.Z)(this,"running",!1),(0,Xn.Z)(this,"elapsedTime",0),this.autoStart=g}return(0,lt.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 c=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var u=(typeof performance=="undefined"?Date:performance).now();c=(u-this.oldTime)/1e3,this.oldTime=u,this.elapsedTime+=c}return c}}]),a}(),y1,Nv,kv,_1,a1,Fv,Z1,L_,Cv;function r_(a,g){var c=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=P_(a))||g&&a&&typeof a.length=="number"){c&&(a=c);var u=0,l=function(){};return{s:l,n:function(){return u>=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function P_(a,g){if(a){if(typeof a=="string")return l1(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return l1(a,g)}}function l1(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);c-1&&j.layerChildren.splice(Y,1)):(le=this.layers.indexOf(A),le>-1&&this.layers.splice(le,1)),A.destroy(),this.reRender(),this.emit("layerChange",this.layers);case 4:case"end":return Ye.stop()}},m,this)}));function l(m,A){return u.apply(this,arguments)}return l}()},{key:"removeAllLayers",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){return Zi().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:this.destroy(),this.reRender();case 2:case"end":return j.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"setEnableRender",value:function(l){this.enableRender=l}},{key:"renderLayers",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A,j,Y,le,$e,Ye;return Zi().wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:if(!(this.alreadyInRendering||!this.enableRender)){qt.next=2;break}return qt.abrupt("return");case 2:this.updateLayerRenderList(),A=this.debugService.generateRenderUid(),this.debugService.renderStart(A),this.alreadyInRendering=!0,this.clear(),j=r_(this.layerList),qt.prev=8,j.s();case 10:if((Y=j.n()).done){qt.next=23;break}if(le=Y.value,$e=le.getLayerConfig(),Ye=$e.enableMask,le.masks.filter(function(jn){return jn.inited}).length>0&&Ye&&this.renderMask(le.masks),!le.getLayerConfig().enableMultiPassRenderer){qt.next=19;break}return qt.next=17,le.renderMultiPass();case 17:qt.next=21;break;case 19:return qt.next=21,le.render();case 21:qt.next=10;break;case 23:qt.next=28;break;case 25:qt.prev=25,qt.t0=qt.catch(8),j.e(qt.t0);case 28:return qt.prev=28,j.f(),qt.finish(28);case 31:this.debugService.renderEnd(A),this.alreadyInRendering=!1;case 33:case"end":return qt.stop()}},m,this,[[8,25,28,31]])}));function l(){return u.apply(this,arguments)}return l}()},{key:"renderMask",value:function(l){var m=0;this.renderService.clear({stencil:0,depth:1,framebuffer:null});var A=l.length>1?Pl.MULTIPLE:Pl.SINGLE,j=r_(l),Y;try{for(j.s();!(Y=j.n()).done;){var le=Y.value;le.render({isStencil:!0,stencilType:A,stencilIndex:m++})}}catch($e){j.e($e)}finally{j.f()}}},{key:"beforeRenderData",value:function(){var u=(0,pl.Z)(Zi().mark(function m(A){var j;return Zi().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return le.next=2,A.hooks.beforeRenderData.promise();case 2:j=le.sent,j&&this.renderLayers();case 4:case"end":return le.stop()}},m,this)}));function l(m){return u.apply(this,arguments)}return l}()},{key:"renderTileLayerMask",value:function(l){var m=0,A=l.getLayerConfig(),j=A.enableMask,Y=j===void 0?!0:j,le=l.tileMask?1:0,$e=l.masks.filter(function(Qn){return Qn.inited});le=le+(Y?$e.length:1);var Ye=le>1?Pl.MULTIPLE:Pl.SINGLE;if((l.tileMask||$e.length&&Y)&&this.renderService.clear({stencil:0,depth:1,framebuffer:null}),$e.length&&Y){var Nt=r_($e),qt;try{for(Nt.s();!(qt=Nt.n()).done;){var jn=qt.value;jn.render({isStencil:!0,stencilType:Ye,stencilIndex:m++})}}catch(Qn){Nt.e(Qn)}finally{Nt.f()}}l.tileMask&&l.tileMask.render({isStencil:!0,stencilType:Ye,stencilIndex:m++,stencilOperation:qd.OR})}},{key:"renderTileLayer",value:function(){var u=(0,pl.Z)(Zi().mark(function m(A){return Zi().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(this.renderTileLayerMask(A),!A.getLayerConfig().enableMultiPassRenderer){Y.next=6;break}return Y.next=4,A.renderMultiPass();case 4:Y.next=8;break;case 6:return Y.next=8,A.render();case 8:case"end":return Y.stop()}},m,this)}));function l(m){return u.apply(this,arguments)}return l}()},{key:"updateLayerRenderList",value:function(){var l=this;this.layerList=[],this.layers.filter(function(m){return m.inited}).filter(function(m){return m.isVisible()}).sort(function(m,A){return m.zIndex-A.zIndex}).forEach(function(m){l.layerList.push(m)})}},{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=Wr(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)}}]),c}(Wu.EventEmitter),Z1=ee(Fv.prototype,"renderService",[Nv],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L_=ee(Fv.prototype,"mapService",[kv],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Cv=ee(Fv.prototype,"debugService",[_1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fv))||a1),gv=_(52528),k_=Js.isNil,bx=function(){function a(g){var c=this;(0,Bt.Z)(this,a),(0,Xn.Z)(this,"name",void 0),(0,Xn.Z)(this,"type",void 0),(0,Xn.Z)(this,"scale",void 0),(0,Xn.Z)(this,"descriptor",void 0),(0,Xn.Z)(this,"featureBufferLayout",[]),(0,Xn.Z)(this,"needRescale",!1),(0,Xn.Z)(this,"needRemapping",!1),(0,Xn.Z)(this,"needRegenerateVertices",!1),(0,Xn.Z)(this,"featureRange",{startIndex:0,endIndex:1/0}),(0,Xn.Z)(this,"vertexAttribute",void 0),(0,Xn.Z)(this,"defaultCallback",function(u){if(u.length===0){var l;return((l=c.scale)===null||l===void 0?void 0:l.defaultValues)||[]}return u.map(function(m,A){var j,Y=(j=c.scale)===null||j===void 0?void 0:j.scalers[A].func,le=Y(m);return le})}),this.setProps(g)}return(0,lt.Z)(a,[{key:"setProps",value:function(c){Object.assign(this,c)}},{key:"mapping",value:function(c){var u;if((u=this.scale)!==null&&u!==void 0&&u.callback){var l,m=(l=this.scale)===null||l===void 0?void 0:l.callback.apply(l,(0,or.Z)(c));if(!k_(m))return[m]}return this.defaultCallback(c)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),a}(),sb=["buffer","update","name"],u2=["buffer","update","name"],wy,M_,ab,c2,lb,uC,H1=(wy={},(0,Xn.Z)(wy,ho.FLOAT,4),(0,Xn.Z)(wy,ho.UNSIGNED_BYTE,1),(0,Xn.Z)(wy,ho.UNSIGNED_SHORT,2),wy),T1=(M_=(0,fa.b2)(),ab=(0,fa.f3)(Fr.IRendererService),M_(c2=(lb=function(){function a(){(0,Bt.Z)(this,a),(0,Xn.Z)(this,"attributesAndIndices",void 0),P(this,"rendererService",uC,this),(0,Xn.Z)(this,"attributes",[]),(0,Xn.Z)(this,"triangulation",void 0),(0,Xn.Z)(this,"featureLayout",{sizePerElement:0,elements:[]})}return(0,lt.Z)(a,[{key:"registerStyleAttribute",value:function(c){var u=this.getLayerStyleAttribute(c.name||"");return u?u.setProps(c):(u=new bx(c),this.attributes.push(u)),u}},{key:"unRegisterStyleAttribute",value:function(c){var u=this.attributes.findIndex(function(l){return l.name===c});u>-1&&this.attributes.splice(u,1)}},{key:"updateScaleAttribute",value:function(c){this.attributes.forEach(function(u){var l,m=u.name,A=(l=u.scale)===null||l===void 0?void 0:l.field;(c[m]||A&&c[A])&&(u.needRescale=!0,u.needRemapping=!0,u.needRegenerateVertices=!0)})}},{key:"updateStyleAttribute",value:function(c,u,l){var m=this.getLayerStyleAttribute(c);m||(m=this.registerStyleAttribute((0,Ne.Z)((0,Ne.Z)({},u),{},{name:c})));var A=u.scale;A&&m&&(m.scale=A,m.needRescale=!0,m.needRemapping=!0,m.needRegenerateVertices=!0,l&&l.featureRange&&(m.featureRange=l.featureRange))}},{key:"getLayerStyleAttributes",value:function(){return this.attributes}},{key:"getLayerStyleAttribute",value:function(c){return this.attributes.find(function(u){return u.name===c})}},{key:"getLayerAttributeScale",value:function(c){var u,l=this.getLayerStyleAttribute(c),m=l==null||(u=l.scale)===null||u===void 0?void 0:u.scalers;return m&&m[0]?m[0].func:null}},{key:"updateAttributeByFeatureRange",value:function(c,u){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,m=arguments.length>3?arguments[3]:void 0,A=arguments.length>4?arguments[4]:void 0,j=this.attributes.find(function(va){return va.name===c});if(j&&j.descriptor){var Y=j.descriptor,le=Y.update,$e=Y.buffer,Ye=Y.size,Nt=Ye===void 0?0:Ye,qt=H1[$e.type||ho.FLOAT];if(le){var jn=this.featureLayout,Qn=jn.elements,Ir=jn.sizePerElement,ki=Qn.slice(l,m);if(!ki.length)return;var jo=ki[0].offset,Wo=jo*Nt*qt,na=ki.map(function(va,Fa){for(var vl=va.featureIdx,eu=va.vertices,uu=va.normals,Hu=eu.length/Ir,Vu=[],ih=0;ih0&&m[m.length-1])&&(le[0]===6||le[0]===2)){c=0;continue}if(le[0]===3&&(!m||le[1]>m[0]&&le[1]0)&&!(l=u.next()).done;)m.push(l.value)}catch(j){A={error:j}}finally{try{l&&!l.done&&(c=u.return)&&c.call(u)}finally{if(A)throw A.error}}return m}function Sy(a,g,c){if(c||arguments.length===2)for(var u=0,l=g.length,m;u=0&&u.length%1===0}a.exports=g.default})(Fy,Fy.exports);var A0={},By={exports:{}},Vb={exports:{}};(function(a,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=function(c){return function(){for(var u=[],l=arguments.length;l--;)u[l]=arguments[l];var m=u.pop();return c.call(this,u,m)}},a.exports=g.default})(Vb,Vb.exports);var ev={};Object.defineProperty(ev,"__esModule",{value:!0}),ev.fallback=d2,ev.wrap=jb;var xx=ev.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,tw=ev.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,h2=ev.hasNextTick=typeof ay=="object"&&typeof ay.nextTick=="function";function d2(a){setTimeout(a,0)}function jb(a){return function(g){for(var c=[],u=arguments.length-1;u-- >0;)c[u]=arguments[u+1];return a(function(){return g.apply(void 0,c)})}}var s_;xx?s_=queueMicrotask:tw?s_=setImmediate:h2?s_=ay.nextTick:s_=d2,ev.default=jb(s_),function(a,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=Y;var c=Vb.exports,u=j(c),l=ev,m=j(l),A=A0;function j(Ye){return Ye&&Ye.__esModule?Ye:{default:Ye}}function Y(Ye){return(0,A.isAsync)(Ye)?function(){for(var Nt=[],qt=arguments.length;qt--;)Nt[qt]=arguments[qt];var jn=Nt.pop(),Qn=Ye.apply(this,Nt);return le(Qn,jn)}:(0,u.default)(function(Nt,qt){var jn;try{jn=Ye.apply(this,Nt)}catch(Qn){return qt(Qn)}if(jn&&typeof jn.then=="function")return le(jn,qt);qt(null,jn)})}function le(Ye,Nt){return Ye.then(function(qt){$e(Nt,null,qt)},function(qt){$e(Nt,qt&&qt.message?qt:new Error(qt))})}function $e(Ye,Nt,qt){try{Ye(Nt,qt)}catch(jn){(0,m.default)(function(Qn){throw Qn},jn)}}a.exports=g.default}(By,By.exports),Object.defineProperty(A0,"__esModule",{value:!0}),A0.isAsyncIterable=A0.isAsyncGenerator=A0.isAsync=void 0;var cC=By.exports,Cx=nw(cC);function nw(a){return a&&a.__esModule?a:{default:a}}function Ub(a){return a[Symbol.toStringTag]==="AsyncFunction"}function kS(a){return a[Symbol.toStringTag]==="AsyncGenerator"}function Sx(a){return typeof a[Symbol.asyncIterator]=="function"}function a_(a){if(typeof a!="function")throw new Error("expected a function");return Ub(a)?(0,Cx.default)(a):a}A0.default=a_,A0.isAsync=Ub,A0.isAsyncGenerator=kS,A0.isAsyncIterable=Sx;var uy={exports:{}};(function(a,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=c;function c(u,l){if(l===void 0&&(l=u.length),!l)throw new Error("arity is undefined");function m(){for(var A=this,j=[],Y=arguments.length;Y--;)j[Y]=arguments[Y];return typeof j[l-1]=="function"?u.apply(this,j):new Promise(function(le,$e){j[l-1]=function(Ye){for(var Nt=[],qt=arguments.length-1;qt-- >0;)Nt[qt]=arguments[qt+1];if(Ye)return $e(Ye);le(Nt.length>1?Nt:Nt[0])},u.apply(A,j)})}return m}a.exports=g.default})(uy,uy.exports),function(a,g){Object.defineProperty(g,"__esModule",{value:!0});var c=Fy.exports,u=Y(c),l=A0,m=Y(l),A=uy.exports,j=Y(A);function Y(le){return le&&le.__esModule?le:{default:le}}g.default=(0,j.default)(function(le,$e,Ye){var Nt=(0,u.default)($e)?[]:{};le($e,function(qt,jn,Qn){(0,m.default)(qt)(function(Ir){for(var ki,jo=[],Wo=arguments.length-1;Wo-- >0;)jo[Wo]=arguments[Wo+1];jo.length<2&&(ki=jo,jo=ki[0]),Nt[jn]=jo,Qn(Ir)})},function(qt){return Ye(qt,Nt)})},3),a.exports=g.default}(ub,ub.exports);var O_={exports:{}},Wb={exports:{}},Zb={exports:{}},cy={exports:{}};(function(a,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=c;function c(u){function l(){for(var m=[],A=arguments.length;A--;)m[A]=arguments[A];if(u!==null){var j=u;u=null,j.apply(this,m)}}return Object.assign(l,u),l}a.exports=g.default})(cy,cy.exports);var l_={exports:{}},Hb={exports:{}};(function(a,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=function(c){return c[Symbol.iterator]&&c[Symbol.iterator]()},a.exports=g.default})(Hb,Hb.exports),function(a,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=$e;var c=Fy.exports,u=A(c),l=Hb.exports,m=A(l);function A(Ye){return Ye&&Ye.__esModule?Ye:{default:Ye}}function j(Ye){var Nt=-1,qt=Ye.length;return function(){return++Nt=j||Nt||$e||(Nt=!0,A.next().then(function(jo){var Wo=jo.value,na=jo.done;if(!(Ye||$e)){if(Nt=!1,na){$e=!0,qt<=0&&le(null);return}qt++,Y(Wo,jn,Ir),jn++,Qn()}}).catch(ki))}function Ir(jo,Wo){if(qt-=1,!Ye){if(jo)return ki(jo);if(jo===!1){$e=!0,Ye=!0;return}if(Wo===u.default||$e&&qt<=0)return $e=!0,le(null);Qn()}}function ki(jo){Ye||(Nt=!1,$e=!0,le(jo))}Qn()}a.exports=g.default}(R_,R_.exports),function(a,g){Object.defineProperty(g,"__esModule",{value:!0});var c=cy.exports,u=qt(c),l=l_.exports,m=qt(l),A=cb.exports,j=qt(A),Y=A0,le=R_.exports,$e=qt(le),Ye=zy.exports,Nt=qt(Ye);function qt(jn){return jn&&jn.__esModule?jn:{default:jn}}g.default=function(jn){return function(Qn,Ir,ki){if(ki=(0,u.default)(ki),jn<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!Qn)return ki(null);if((0,Y.isAsyncGenerator)(Qn))return(0,$e.default)(Qn,jn,Ir,ki);if((0,Y.isAsyncIterable)(Qn))return(0,$e.default)(Qn[Symbol.asyncIterator](),jn,Ir,ki);var jo=(0,m.default)(Qn),Wo=!1,na=!1,va=0,Fa=!1;function vl(uu,Hu){if(!na)if(va-=1,uu)Wo=!0,ki(uu);else if(uu===!1)Wo=!0,na=!0;else{if(Hu===Nt.default||Wo&&va<=0)return Wo=!0,ki(null);Fa||eu()}}function eu(){for(Fa=!0;va0;)jo[Wo]=arguments[Wo+1];if(ki!==!1){if(ki||jn===Nt.length)return qt.apply(void 0,[ki].concat(jo));Qn(jo)}}Qn([])}g.default=(0,le.default)(Ye),a.exports=g.default})(Gb,Gb.exports);var dC=Ey(Gb.exports),RS=function(){function a(){this.tasks=[]}return a.prototype.call=function(){return dC(this.tasks)},a.prototype.tap=function(g,c){this.tasks.length===0?this.tasks.push(function(u){var l=c();u(l?null:!1,l)}):this.tasks.push(function(u,l){var m=c.apply(void 0,Sy([],o_(u),!1));l(m?null:!1,g)})},a}(),fC=function(){function a(){this.tasks=[]}return a.prototype.call=function(){return hb(this.tasks)},a.prototype.tap=function(g,c){this.tasks.push(function(u){var l=c();u(l,g)})},a}(),rw=function(){function a(){this.args=[],this.tasks=[]}return a.prototype.promise=function(){for(var g=arguments,c=[],u=0;u1&&(j=m[1].trim()),u){case"bool":j=j==="true";break;case"float":case"int":j=Number(j);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":j?j=j.replace("[","").replace("]","").split(",").reduce(function(Y,le){return Y.push(Number(le.trim())),Y},[]):j=new Array(qe(u)).fill(0);break;default:}return g[A]=j,"uniform ".concat(u," ").concat(A,`; +`)}),{content:a,uniforms:g}}var cn,vn,Wt=Js.uniq,Mn="#define PI 3.14159265359",Bn=`#define SHIFT_RIGHT17 1.0 / 131072.0 #define SHIFT_RIGHT18 1.0 / 262144.0 #define SHIFT_RIGHT19 1.0 / 524288.0 #define SHIFT_RIGHT20 1.0 / 1048576.0 @@ -172,7 +172,7 @@ vec4 decode_color(vec2 encodedColor) { unpack_float(encodedColor[1]) / 255.0 ); } -`,fn=`#define ambientRatio 0.5 +`,cr=`#define ambientRatio 0.5 #define diffuseRatio 0.3 #define specularRatio 0.2 @@ -197,7 +197,7 @@ float calc_lighting(vec4 pos) { return lightWeight; } -`,bn=`// Blinn-Phong model +`,Ar=`// Blinn-Phong model // apply lighting in vertex shader instead of fragment shader // @see https://learnopengl.com/Advanced-Lighting/Advanced-Lighting uniform float u_Ambient : 1.0; @@ -294,7 +294,7 @@ vec3 calc_lighting(vec3 position, vec3 normal, vec3 viewDir) { // } return weight; } -`,Un=`varying vec4 v_PickingResult; +`,Us=`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; @@ -372,7 +372,7 @@ vec4 filterColorAlpha(vec4 color, float alpha) { } } -`,lr=`attribute vec3 a_PickingColor; +`,aa=`attribute vec3 a_PickingColor; varying vec4 v_PickingResult; uniform vec3 u_PickingColor : [0, 0, 0]; @@ -439,7 +439,7 @@ float setPickingOrder(float z) { bool selected = bool(v_PickingResult.a); return selected ? z + 1. : 0.; } -`,Fs=` +`,kl=` #define E 2.718281828459045 vec2 ProjectFlat(vec2 lnglat){ float maxs=85.0511287798; @@ -508,7 +508,7 @@ float customPixelDistance(vec2 from, vec2 to) { vec2 a1 = ProjectFlat(from); vec2 b1 = ProjectFlat(to); return distance(a1, b1); -}`,Xs=`#define TILE_SIZE 512.0 +}`,Na=`#define TILE_SIZE 512.0 #define PI 3.1415926536 #define WORLD_SCALE TILE_SIZE / (PI * 2.0) @@ -776,13 +776,13 @@ vec4 project_common_position_to_clipspace_v2(vec4 position) { } else { return project_common_position_to_clipspace(position); } -}`,xl=`vec2 rotate_matrix(vec2 v, float a) { +}`,qs=`vec2 rotate_matrix(vec2 v, float a) { float b = a / 180.0 * 3.1415926535897932384626433832795; float s = sin(b); float c = cos(b); mat2 m = mat2(c, s, -s, c); return m * v; -}`,Ia=`/** +}`,Ya=`/** * 2D signed distance field functions * @see http://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm */ @@ -856,22 +856,22 @@ float sdVesica(vec2 p, float r, float d) { ? length(p-vec2(0.0,b)) : length(p-vec2(-d,0.0))-r; } -`,Vs=/precision\s+(high|low|medium)p\s+float/,za=`#ifdef GL_FRAGMENT_PRECISION_HIGH +`,Iu=/precision\s+(high|low|medium)p\s+float/,Su=`#ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; #else precision mediump float; #endif -`,uu=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,ou=/void\s+main\s*\([^)]*\)\s*\{\n?/,Wu=/}\n?[^{}]*$/,Ou=(st=(0,As.b2)(),st(ht=function(){function a(){(0,Ct.Z)(this,a),(0,Cn.Z)(this,"moduleCache",{}),(0,Cn.Z)(this,"rawContentCache",{})}return(0,He.Z)(a,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:Qt,fs:Qt}),this.registerModule("decode",{vs:At,fs:""}),this.registerModule("projection",{vs:Xs,fs:""}),this.registerModule("project",{vs:Fs,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:Ia}),this.registerModule("lighting",{vs:bn,fs:""}),this.registerModule("light",{vs:fn,fs:""}),this.registerModule("picking",{vs:lr,fs:Un}),this.registerModule("rotation_2d",{vs:xl,fs:""})}},{key:"registerModule",value:function(u,c){var l=c.vs,g=c.fs,T=c.uniforms,B=c.inject,Z=Ne(l),ee=Z.content,Pe=Z.uniforms,Ze=Ne(g),Et=Ze.content,Mt=Ze.uniforms;this.rawContentCache[u]={fs:Et,inject:B,uniforms:(0,Se.Z)((0,Se.Z)((0,Se.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=Ne(T==null?void 0:T["vs:#decl"]).uniforms),T!=null&&T["vs:#main-start"]&&(l=l.replace(ou,function(br){return br+(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"),Et=Ze.content,Mt=Ze.includeList,An="",Mn=Kt(Pe.concat(Mt).concat(u)).reduce(function(br,Li){return(0,Se.Z)((0,Se.Z)({},br),c.rawContentCache[Li].uniforms)},(0,Se.Z)({},B));return Vs.test(Et)||(An=An+za),An=An+Et,this.moduleCache[u]={fs:An.trim(),uniforms:Mn,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 Et=g.processModule(Ze,c,l),Mt=Et.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],`; +`,nc=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,Qu=/void\s+main\s*\([^)]*\)\s*\{\n?/,gc=/}\n?[^{}]*$/,Ll=(cn=(0,fa.b2)(),cn(vn=function(){function a(){(0,Bt.Z)(this,a),(0,Xn.Z)(this,"moduleCache",{}),(0,Xn.Z)(this,"rawContentCache",{})}return(0,lt.Z)(a,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:Mn,fs:Mn}),this.registerModule("decode",{vs:Bn,fs:""}),this.registerModule("projection",{vs:Na,fs:""}),this.registerModule("project",{vs:kl,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:Ya}),this.registerModule("lighting",{vs:Ar,fs:""}),this.registerModule("light",{vs:cr,fs:""}),this.registerModule("picking",{vs:aa,fs:Us}),this.registerModule("rotation_2d",{vs:qs,fs:""})}},{key:"registerModule",value:function(c,u){var l=u.vs,m=u.fs,A=u.uniforms,j=u.inject,Y=Dt(l),le=Y.content,$e=Y.uniforms,Ye=Dt(m),Nt=Ye.content,qt=Ye.uniforms;this.rawContentCache[c]={fs:Nt,inject:j,uniforms:(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},$e),qt),A),vs:le}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(c){var u=this,l=this.rawContentCache[c].vs,m=this.rawContentCache[c].fs,A=this.rawContentCache[c].inject,j={};A!=null&&A["vs:#decl"]&&(l=(A==null?void 0:A["vs:#decl"])+l,j=Dt(A==null?void 0:A["vs:#decl"]).uniforms),A!=null&&A["vs:#main-start"]&&(l=l.replace(Qu,function(Ir){return Ir+(A==null?void 0:A["vs:#main-start"])}));var Y=this.processModule(l,[],"vs"),le=Y.content,$e=Y.includeList,Ye=this.processModule(m,[],"fs"),Nt=Ye.content,qt=Ye.includeList,jn="",Qn=Wt($e.concat(qt).concat(c)).reduce(function(Ir,ki){return(0,Ne.Z)((0,Ne.Z)({},Ir),u.rawContentCache[ki].uniforms)},(0,Ne.Z)({},j));return Iu.test(Nt)||(jn=jn+Su),jn=jn+Nt,this.moduleCache[c]={fs:jn.trim(),uniforms:Qn,vs:le.trim()},this.moduleCache[c]}},{key:"processModule",value:function(c,u,l){var m=this,A=c.replace(nc,function(j,Y){var le=Y.split(" "),$e=le[0].replace(/"/g,"");if(u.indexOf($e)>-1)return"";var Ye=m.rawContentCache[$e][l];u.push($e);var Nt=m.processModule(Ye,u,l),qt=Nt.content;return qt});return{content:A,includeList:u}}},{key:"injectDefines",value:function(c){var u=Object.keys(c).reduce(function(l,m){return l+"#define ".concat(m.toUpperCase()," ").concat(c[m],`; `)},` -`);return c}}]),a}())||ht);function tc(a,p){for(;!Object.prototype.hasOwnProperty.call(a,p)&&(a=(0,mt.Z)(a),a!==null););return a}function Ma(){return typeof Reflect!="undefined"&&Reflect.get?Ma=Reflect.get.bind():Ma=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}},Ma.apply(this,arguments)}var Rf=function(a){return a.Normal="normal",a.PostProcessing="post-processing",a}({}),sf,Yp,eg=(sf=(0,As.b2)(),sf(Yp=function(){function a(){(0,Ct.Z)(this,a),(0,Cn.Z)(this,"shaderModuleService",void 0),(0,Cn.Z)(this,"rendererService",void 0),(0,Cn.Z)(this,"cameraService",void 0),(0,Cn.Z)(this,"mapService",void 0),(0,Cn.Z)(this,"interactionService",void 0),(0,Cn.Z)(this,"layerService",void 0),(0,Cn.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(vr.IRendererService),this.cameraService=u.getContainer().get(vr.ICameraService),this.mapService=u.getContainer().get(vr.IMapService),this.interactionService=u.getContainer().get(vr.IInteractionService),this.layerService=u.getContainer().get(vr.ILayerService),this.shaderModuleService=u.getContainer().get(vr.IShaderModuleService)}},{key:"render",value:function(u){}}]),a}())||Yp),lh,_p;function Wf(a){var p=Em();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,zt.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,As.b2)(),lh(_p=function(a){(0,ft.Z)(u,a);var p=Wf(u);function u(){return(0,Ct.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(l,g){Ma((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}(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);uLi||Oa<0||yl>Zo||yl<0)){var Wl;Mn(c.pickingFBO,function(){var Jl;if(Wl=An({x:Math.round(Oa),y:Math.round(Zo-(ee+1)*hi),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:c.pickingFBO}),Wl[0]!==0||Wl[1]!==0||Wl[2]!==0){var ju=oi(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,Se.Z)((0,Se.Z)({},gd),{},{type:"unpick"})),c.triggerHoverOnLayer(gd),c.layer.setCurrentPickId(null)}Qs&&c.highlightPickedFeature(Wl),aa&&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){Ma((0,mt.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,Et=Pe.height;this.pickingFBO=Z({color:B({width:Ze,height:Et,wrapS:qi.CLAMP_TO_EDGE,wrapT:qi.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,Et=Pe.height;this.alreadyInRendering=!0,(this.width!==Ze||this.height!==Et)&&(this.pickingFBO.resize({width:Ze,height:Et}),this.width=Ze,this.height=Et),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,Xn.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,Xn.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=Zi(g);this.selectFeature(new Uint8Array(T))}},{key:"highlightFeatureHandle",value:function(l){var g=l.featureId,T=Zi(g);this.highlightPickedFeature(new Uint8Array(T))}}]),u}(eg))||M_),xx,Cx,dw,hw,fw,l3=Fa.camelCase,DT=Fa.isNil,FS=Fa.upperFirst,AT=`attribute vec2 a_Position; +`);return u}}]),a}())||vn);function jp(a,g){for(;!Object.prototype.hasOwnProperty.call(a,g)&&(a=(0,Tt.Z)(a),a!==null););return a}function zh(){return typeof Reflect!="undefined"&&Reflect.get?zh=Reflect.get.bind():zh=function(g,c,u){var l=jp(g,c);if(l){var m=Object.getOwnPropertyDescriptor(l,c);return m.get?m.get.call(arguments.length<3?g:u):m.value}},zh.apply(this,arguments)}var og=function(a){return a.Normal="normal",a.PostProcessing="post-processing",a}({}),Ig,Wd,Up=(Ig=(0,fa.b2)(),Ig(Wd=function(){function a(){(0,Bt.Z)(this,a),(0,Xn.Z)(this,"shaderModuleService",void 0),(0,Xn.Z)(this,"rendererService",void 0),(0,Xn.Z)(this,"cameraService",void 0),(0,Xn.Z)(this,"mapService",void 0),(0,Xn.Z)(this,"interactionService",void 0),(0,Xn.Z)(this,"layerService",void 0),(0,Xn.Z)(this,"config",void 0)}return(0,lt.Z)(a,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return og.Normal}},{key:"init",value:function(c,u){this.config=u,this.rendererService=c.getContainer().get(Fr.IRendererService),this.cameraService=c.getContainer().get(Fr.ICameraService),this.mapService=c.getContainer().get(Fr.IMapService),this.interactionService=c.getContainer().get(Fr.IInteractionService),this.layerService=c.getContainer().get(Fr.ILayerService),this.shaderModuleService=c.getContainer().get(Fr.IShaderModuleService)}},{key:"render",value:function(c){}}]),a}())||Wd),mp,Om;function Rm(a){var g=zg();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function zg(){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 sv=(mp=(0,fa.b2)(),mp(Om=function(a){(0,At.Z)(c,a);var g=Rm(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(l,m){zh((0,Tt.Z)(c.prototype),"init",this).call(this,l,m)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),c}(Up))||Om),Sv,Im,Ym,Em,D0;function Vy(a,g){var c=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=G1(a))||g&&a&&typeof a.length=="number"){c&&(a=c);var u=0,l=function(){};return{s:l,n:function(){return u>=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function G1(a,g){if(a){if(typeof a=="string")return Ax(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Ax(a,g)}}function Ax(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);cki||Fa<0||vl>jo||vl<0)){var eu;Qn(u.pickingFBO,function(){var uu;if(eu=jn({x:Math.round(Fa),y:Math.round(jo-(le+1)*ai),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:u.pickingFBO}),eu[0]!==0||eu[1]!==0||eu[2]!==0){var Hu=Ni(eu),Vu=u.layer.getSource().getFeatureById(Hu),ih={x:Y,y:le,type:Ye,lngLat:$e,featureId:Hu,feature:Vu};Vu&&(u.layer.setCurrentPickId(Hu),u.triggerHoverOnLayer(ih))}else{var Ch={x:Y,y:le,lngLat:$e,type:u.layer.getCurrentPickId()===null?"un"+Ye:"mouseout",featureId:null,feature:null};u.triggerHoverOnLayer((0,Ne.Z)((0,Ne.Z)({},Ch),{},{type:"unpick"})),u.triggerHoverOnLayer(Ch),u.layer.setCurrentPickId(null)}na&&u.highlightPickedFeature(eu),va&&Ye==="click"&&((uu=eu)===null||uu===void 0?void 0:uu.toString())!==[0,0,0,0].toString()&&u.selectFeature(eu)})}}}),u}return(0,lt.Z)(c,[{key:"getType",value:function(){return og.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(l,m){zh((0,Tt.Z)(c.prototype),"init",this).call(this,l,m),this.layer=l;var A=this.rendererService,j=A.createTexture2D,Y=A.createFramebuffer,le=A.getViewportSize,$e=le(),Ye=$e.width,Nt=$e.height;this.pickingFBO=Y({color:j({width:Ye,height:Nt,wrapS:ho.CLAMP_TO_EDGE,wrapT:ho.CLAMP_TO_EDGE})}),this.interactionService.on(Bg.Hover,this.pickFromPickingFBO),this.interactionService.on(Bg.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(Bg.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(l){var m=this;if(!this.alreadyInRendering){var A=this.rendererService,j=A.getViewportSize,Y=A.useFramebuffer,le=A.clear,$e=j(),Ye=$e.width,Nt=$e.height;this.alreadyInRendering=!0,(this.width!==Ye||this.height!==Nt)&&(this.pickingFBO.resize({width:Ye,height:Nt}),this.width=Ye,this.height=Nt),Y(this.pickingFBO,function(){le({framebuffer:m.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var qt=m.layer.multiPassRenderer.getRenderFlag();m.layer.multiPassRenderer.setRenderFlag(!1),l.hooks.beforePickingEncode.call(),l.render(),l.hooks.afterPickingEncode.call(),m.layer.multiPassRenderer.setRenderFlag(qt),m.alreadyInRendering=!1})}}},{key:"triggerHoverOnLayer",value:function(l){this.layer.emit(l.type,l)}},{key:"highlightPickedFeature",value:function(l){var m=(0,Oi.Z)(l,3),A=m[0],j=m[1],Y=m[2];this.layer.hooks.beforeHighlight.call([A,j,Y]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(l){var m=(0,Oi.Z)(l,3),A=m[0],j=m[1],Y=m[2];this.layer.hooks.beforeSelect.call([A,j,Y]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(l){var m=l.featureId,A=kr(m);this.selectFeature(new Uint8Array(A))}},{key:"highlightFeatureHandle",value:function(l){var m=l.featureId,A=kr(m);this.highlightPickedFeature(new Uint8Array(A))}}]),c}(Up))||F_),sw,mC,aw,$S,VS,jS=Js.camelCase,ZT=Js.isNil,US=Js.upperFirst,ID=`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.); -}`,My=(xx=(0,As.b2)(),Cx=(0,As.f3)(vr.IShaderModuleService),xx(dw=(hw=function(){function a(){(0,Ct.Z)(this,a),Fd(this,"shaderModuleService",fw,this),(0,Cn.Z)(this,"rendererService",void 0),(0,Cn.Z)(this,"config",void 0),(0,Cn.Z)(this,"quad",AT),(0,Cn.Z)(this,"enabled",!0),(0,Cn.Z)(this,"renderToScreen",!1),(0,Cn.Z)(this,"model",void 0),(0,Cn.Z)(this,"name",void 0),(0,Cn.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(vr.IRendererService),this.shaderModuleService=u.getContainer().get(vr.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:qi.FLOAT}),size:2})},uniforms:(0,Se.Z)((0,Se.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,Et=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,Se.Z)({u_BloomFinal:0,u_Texture:g.getReadFBO(),u_ViewportSize:[Ze,Et]},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,Se.Z)((0,Se.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,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,zt.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; +}`,B_=(sw=(0,fa.b2)(),mC=(0,fa.f3)(Fr.IShaderModuleService),sw(aw=($S=function(){function a(){(0,Bt.Z)(this,a),P(this,"shaderModuleService",VS,this),(0,Xn.Z)(this,"rendererService",void 0),(0,Xn.Z)(this,"config",void 0),(0,Xn.Z)(this,"quad",ID),(0,Xn.Z)(this,"enabled",!0),(0,Xn.Z)(this,"renderToScreen",!1),(0,Xn.Z)(this,"model",void 0),(0,Xn.Z)(this,"name",void 0),(0,Xn.Z)(this,"optionsToUpdate",{})}return(0,lt.Z)(a,[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(c){this.name=c}},{key:"getType",value:function(){return og.PostProcessing}},{key:"init",value:function(c,u){this.config=u,this.rendererService=c.getContainer().get(Fr.IRendererService),this.shaderModuleService=c.getContainer().get(Fr.IShaderModuleService);var l=this.rendererService,m=l.createAttribute,A=l.createBuffer,j=l.createModel,Y=this.setupShaders(),le=Y.vs,$e=Y.fs,Ye=Y.uniforms;this.model=j({vs:le,fs:$e,attributes:{a_Position:m({buffer:A({data:[-4,-4,4,-4,0,4],type:ho.FLOAT}),size:2})},uniforms:(0,Ne.Z)((0,Ne.Z)({u_Texture:null},Ye),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:this.getName()==="copy"}})}},{key:"render",value:function(c,u){var l=this,m=c.multiPassRenderer.getPostProcessor(),A=this.rendererService,j=A.useFramebuffer,Y=A.getViewportSize,le=A.clear,$e=Y(),Ye=$e.width,Nt=$e.height;j(this.renderToScreen?null:m.getWriteFBO(),function(){le({framebuffer:m.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var qt=(0,Ne.Z)({u_BloomFinal:0,u_Texture:m.getReadFBO(),u_ViewportSize:[Ye,Nt]},l.convertOptionsToUniforms(l.optionsToUpdate));u&&(qt.u_BloomFinal=1,qt.u_Texture2=u),l.model.draw({uniforms:qt})})}},{key:"isEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(c){this.enabled=c}},{key:"setRenderToScreen",value:function(c){this.renderToScreen=c}},{key:"updateOptions",value:function(c){this.optionsToUpdate=(0,Ne.Z)((0,Ne.Z)({},this.optionsToUpdate),c)}},{key:"setupShaders",value:function(){throw new Error("Method not implemented.")}},{key:"convertOptionsToUniforms",value:function(c){var u={};return Object.keys(c).forEach(function(l){ZT(c[l])||(u["u_".concat(US(jS(l)))]=c[l])}),u}}]),a}(),VS=ee($S.prototype,"shaderModuleService",[mC],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$S))||aw),HT,GT;function KT(a){var g=LD();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.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 WS=`varying vec2 v_UV; uniform float u_BloomFinal: 0.0; uniform sampler2D u_Texture; @@ -927,14 +927,14 @@ void main() { } else { gl_FragColor = inbloomColor; } -}`,d3=`attribute vec2 a_Position; +}`,ZS=`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.); -}`,pw=Fa.isNil,BS=(IT=(0,As.b2)(),IT(LT=function(a){(0,ft.Z)(u,a);var p=u3(u);function u(){return(0,Ct.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,Se.Z)((0,Se.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,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,zt.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; +}`,HS=Js.isNil,GS=(HT=(0,fa.b2)(),HT(GT=function(a){(0,At.Z)(c,a);var g=KT(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:ZS,fs:WS});var l=this.shaderModuleService.getModule("blur-pass"),m=l.vs,A=l.fs,j=l.uniforms,Y=this.rendererService.getViewportSize(),le=Y.width,$e=Y.height;return{vs:m,fs:A,uniforms:(0,Ne.Z)((0,Ne.Z)({},j),{},{u_ViewportSize:[le,$e]})}}},{key:"convertOptionsToUniforms",value:function(l){var m={};return HS(l.bloomRadius)||(m.u_radius=l.bloomRadius),HS(l.bloomIntensity)||(m.u_intensity=l.bloomIntensity),HS(l.bloomBaseRadio)||(m.u_baseRadio=l.bloomBaseRadio),m}}]),c}(B_))||GT),KS,XS;function z_(a){var g=vC();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function vC(){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 gb=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -956,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); -}`,p2=`attribute vec2 a_Position; +}`,YS=`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=Fa.isNil,zS=(kT=(0,As.b2)(),kT(f2=function(a){(0,ft.Z)(u,a);var p=MT(u);function u(){return(0,Ct.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,Se.Z)((0,Se.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,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,zt.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; +}`,yC=Js.isNil,XT=(KS=(0,fa.b2)(),KS(XS=function(a){(0,At.Z)(c,a);var g=z_(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:YS,fs:gb});var l=this.shaderModuleService.getModule("blur-pass"),m=l.vs,A=l.fs,j=l.uniforms,Y=this.rendererService.getViewportSize(),le=Y.width,$e=Y.height;return{vs:m,fs:A,uniforms:(0,Ne.Z)((0,Ne.Z)({},j),{},{u_ViewportSize:[le,$e]})}}},{key:"convertOptionsToUniforms",value:function(l){var m={};return yC(l.blurRadius)||(m.u_BlurDir=[l.blurRadius,0]),m}}]),c}(B_))||XS),_C,K1;function Xb(a){var g=lw();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function lw(){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 PD=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -985,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); -}`,mw=`attribute vec2 a_Position; +}`,bC=`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.); -}`,h3=Fa.isNil,g2=(gw=(0,As.b2)(),gw($S=function(a){(0,ft.Z)(u,a);var p=WS(u);function u(){return(0,Ct.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,Se.Z)((0,Se.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,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,zt.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; +}`,YT=Js.isNil,X1=(_C=(0,fa.b2)(),_C(K1=function(a){(0,At.Z)(c,a);var g=Xb(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:bC,fs:PD});var l=this.shaderModuleService.getModule("blur-pass"),m=l.vs,A=l.fs,j=l.uniforms,Y=this.rendererService.getViewportSize(),le=Y.width,$e=Y.height;return{vs:m,fs:A,uniforms:(0,Ne.Z)((0,Ne.Z)({},j),{},{u_ViewportSize:[le,$e]})}}},{key:"convertOptionsToUniforms",value:function(l){var m={};return YT(l.blurRadius)||(m.u_BlurDir=[0,l.blurRadius]),m}}]),c}(B_))||K1),qS,mb;function kD(a){var g=jy();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function jy(){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=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1035,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); -}`,Oy=`attribute vec2 a_Position; +}`,m2=`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.); -}`,VS=(jS=(0,As.b2)(),jS(S1=function(a){(0,ft.Z)(u,a);var p=RT(u);function u(){return(0,Ct.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,Se.Z)((0,Se.Z)({},B),{},{u_ViewportSize:[ee,Pe]})}}}]),u}(My))||S1),Sx,US;function NT(a){var p=HS();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,zt.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; +}`,qT=(qS=(0,fa.b2)(),qS(mb=function(a){(0,At.Z)(c,a);var g=kD(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:m2,fs:JS});var l=this.shaderModuleService.getModule("colorhalftone-pass"),m=l.vs,A=l.fs,j=l.uniforms,Y=this.rendererService.getViewportSize(),le=Y.width,$e=Y.height;return{vs:m,fs:A,uniforms:(0,Ne.Z)((0,Ne.Z)({},j),{},{u_ViewportSize:[le,$e]})}}}]),c}(B_))||mb),QS,xC;function eE(a){var g=MD();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.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 uw=`varying vec2 v_UV; uniform sampler2D u_Texture; void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); -}`,p3=`attribute vec2 a_Position; +}`,tE=`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.); -}`,vw=(Sx=(0,As.b2)(),Sx(US=function(a){(0,ft.Z)(u,a);var p=NT(u);function u(){return(0,Ct.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,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,zt.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; +}`,JT=(QS=(0,fa.b2)(),QS(xC=function(a){(0,At.Z)(c,a);var g=eE(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("copy-pass",{vs:tE,fs:uw}),this.shaderModuleService.getModule("copy-pass")}}]),c}(B_))||xC),QT,e3;function OD(a){var g=RD();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.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 ND=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1098,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); -}`,y3=`attribute vec2 a_Position; +}`,cw=`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.); -}`,_3=(m2=(0,As.b2)(),m2(GS=function(a){(0,ft.Z)(u,a);var p=g3(u);function u(){return(0,Ct.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,Se.Z)((0,Se.Z)({},B),{},{u_ViewportSize:[ee,Pe]})}}}]),u}(My))||GS),fC,Ex;function b3(a){var p=Tx();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,zt.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; +}`,v2=(QT=(0,fa.b2)(),QT(e3=function(a){(0,At.Z)(c,a);var g=OD(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:cw,fs:ND});var l=this.shaderModuleService.getModule("hexagonalpixelate-pass"),m=l.vs,A=l.fs,j=l.uniforms,Y=this.rendererService.getViewportSize(),le=Y.width,$e=Y.height;return{vs:m,fs:A,uniforms:(0,Ne.Z)((0,Ne.Z)({},j),{},{u_ViewportSize:[le,$e]})}}}]),c}(B_))||e3),t3,Yb;function D1(a){var g=y2();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.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 n3=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1138,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); -}`,pC=`attribute vec2 a_Position; +}`,$_=`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.); -}`,FT=(fC=(0,As.b2)(),fC(Ex=function(a){(0,ft.Z)(u,a);var p=b3(u);function u(){return(0,Ct.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,Se.Z)((0,Se.Z)({},B),{},{u_ViewportSize:[ee,Pe]})}}}]),u}(My))||Ex),e_,Fb;function KS(a){var p=yw();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,zt.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 Xi=`varying vec2 v_UV; +}`,Dx=(t3=(0,fa.b2)(),t3(Yb=function(a){(0,At.Z)(c,a);var g=D1(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("ink-pass",{vs:$_,fs:n3});var l=this.shaderModuleService.getModule("ink-pass"),m=l.vs,A=l.fs,j=l.uniforms,Y=this.rendererService.getViewportSize(),le=Y.width,$e=Y.height;return{vs:m,fs:A,uniforms:(0,Ne.Z)((0,Ne.Z)({},j),{},{u_ViewportSize:[le,$e]})}}}]),c}(B_))||Yb),wC,_2;function lo(a){var g=sd();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function sd(){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 r3=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform float u_Amount : 0.5; @@ -1166,21 +1166,21 @@ vec4 noise_filterColor(vec4 color, vec2 texCoord) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = noise_filterColor(gl_FragColor, v_UV); -}`,Ad=`attribute vec2 a_Position; +}`,FD=`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.); -}`,BT=(e_=(0,As.b2)(),e_(Fb=function(a){(0,ft.Z)(u,a);var p=KS(u);function u(){return(0,Ct.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:Xi}),this.shaderModuleService.getModule("noise-pass")}}]),u}(My))||Fb),zT,ab;function gC(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,zt.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; +}`,qb=(wC=(0,fa.b2)(),wC(_2=function(a){(0,At.Z)(c,a);var g=lo(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("noise-pass",{vs:FD,fs:r3}),this.shaderModuleService.getModule("noise-pass")}}]),c}(B_))||_2),Ix,ef;function BD(a){var g=hw();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function hw(){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 zD=`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.); -}`,_w=`varying vec2 v_UV; +}`,$D=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -1201,7 +1201,7 @@ vec4 sepia_filterColor(vec4 color) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = sepia_filterColor(gl_FragColor); -}`,C3=(zT=(0,As.b2)(),zT(ab=function(a){(0,ft.Z)(u,a);var p=gC(u);function u(){return(0,Ct.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("sepia-pass",{vs:x3,fs:_w}),this.shaderModuleService.getModule("sepia-pass")}}]),u}(My))||ab),$T,R_,WT,XS,Dx,v2,N_=($T=(0,As.b2)(),R_=(0,As.f3)(vr.IRendererService),WT=(0,As.zY)(),$T(XS=(Dx=function(){function a(){(0,Ct.Z)(this,a),Fd(this,"rendererService",v2,this),(0,Cn.Z)(this,"passes",[]),(0,Cn.Z)(this,"readFBO",void 0),(0,Cn.Z)(this,"writeFBO",void 0)}return(0,He.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,Ra.Z)(no().mark(function g(){return no().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,Ra.Z)(no().mark(function c(l,g){var T,B;return no().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.next=2,this.getReadFBOTex();case 2:T=ee.sent,B=0;case 4:if(!(B<4)){ee.next=11;break}return ee.next=7,g.render(l,T);case 7:this.swap(),B++,ee.next=4;break;case 11:case"end":return ee.stop()}},c,this)}));function u(c,l){return p.apply(this,arguments)}return u}()},{key:"render",value:function(){var p=(0,Ra.Z)(no().mark(function c(l){var g,T;return no().wrap(function(Z){for(;;)switch(Z.prev=Z.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,b2=(mC=(0,As.b2)(),YS=(0,As.f3)(vr.IShaderModuleService),mC(bw=(_2=function(a){(0,ft.Z)(u,a);var p=jT(u);function u(){var c;(0,Ct.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,Et=Ze.createAttribute,Mt=Ze.createBuffer,An=Ze.createModel;return An((0,Se.Z)({vs:Z,fs:ee,attributes:{a_Position:Et({buffer:Mt({data:[-4,-4,4,-4,0,4],type:qi.FLOAT}),size:2})},uniforms:(0,Se.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 As.W2;vC.bind(vr.IGlobalConfigService).to(Rg).inSingletonScope(),(0,As.GW)((0,As.b2)(),gf.EventEmitter),vC.bind(vr.IEventEmitter).to(gf.EventEmitter);var x2=(0,Xa.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 As.W2;return a.parent=vC,a.bind(vr.SceneID).toConstantValue("".concat(VT++)),a.bind(vr.IShaderModuleService).to(Ou).inSingletonScope(),a.bind(vr.ILayerService).to(Lb).inSingletonScope(),a.bind(vr.IDebugService).to(hm).inSingletonScope(),a.bind(vr.ISceneService).to(K).inSingletonScope(),a.bind(vr.ICameraService).to(Gr).inSingletonScope(),a.bind(vr.ICoordinateSystemService).to(Xm).inSingletonScope(),a.bind(vr.IInteractionService).to(_1).inSingletonScope(),a.bind(vr.IPickingService).to(jv).inSingletonScope(),a.bind(vr.IControlService).to(Kc).inSingletonScope(),a.bind(vr.IMarkerService).to(rh).inSingletonScope(),a.bind(vr.IIconService).to(Lt).inSingletonScope(),a.bind(vr.IFontService).to(Eg).inSingletonScope(),a.bind(vr.IPopupService).to(yg).inSingletonScope(),a.bind(vr.INormalPass).to(_m).whenTargetNamed("clear"),a.bind(vr.INormalPass).to(ob).whenTargetNamed("pixelPicking"),a.bind(vr.INormalPass).to(y2).whenTargetNamed("render"),a.bind(vr.INormalPass).to(b2).whenTargetNamed("taa"),a.bind(vr.IFactoryNormalPass).toFactory(function(p){return function(u){return p.container.getNamed(vr.INormalPass,u)}}),a.bind(vr.IPostProcessingPass).to(vw).whenTargetNamed("copy"),a.bind(vr.IPostProcessingPass).to(BS).whenTargetNamed("bloom"),a.bind(vr.IPostProcessingPass).to(zS).whenTargetNamed("blurH"),a.bind(vr.IPostProcessingPass).to(g2).whenTargetNamed("blurV"),a.bind(vr.IPostProcessingPass).to(BT).whenTargetNamed("noise"),a.bind(vr.IPostProcessingPass).to(C3).whenTargetNamed("sepia"),a.bind(vr.IPostProcessingPass).to(VS).whenTargetNamed("colorHalftone"),a.bind(vr.IPostProcessingPass).to(_3).whenTargetNamed("hexagonalPixelate"),a.bind(vr.IPostProcessingPass).to(FT).whenTargetNamed("ink"),a.bind(vr.IFactoryPostProcessingPass).toFactory(function(p){return function(u){var c=p.container.getNamed(vr.IPostProcessingPass,u);return c.setName(u),c}}),a}function Bb(a){var p=new As.W2;return p.parent=a,p.bind(vr.IStyleAttributeService).to(LS).inSingletonScope(),p.bind(vr.IMultiPassRenderer).to(N1).inSingletonScope(),p.bind(vr.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_=Fa.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=[],Et=[],Mt=[Sw(p[0],p[1]),Sw(p[2],p[3])],An=[Sw(B[0],B[1]),Sw(B[2],B[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(Mn){var br=(0,Xn.Z)(Mn,2),Li=br[0],Zo=br[1];Pe.push([].concat(Mt,[(Li+1)*Ny+(Zo+1)*Ix+Ax(g)*Bg+u,(c+512)*w2+(l+512)*C2])),Ze.push([].concat(An,[Z,ee])),Et.push([T,0,0,0])}),{packedBuffer:Pe,packedBuffer2:Ze,packedBuffer3:Et}}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,Ra.Z)(no().mark(function p(u,c,l,g){return no().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&&Aa([{data:Ze,bands:[0]}],l,g,function(Et,Mt){Et?ee(Et):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,Ra.Z)(no().mark(function p(u,c){return no().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?sn(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,Ra.Z)(no().mark(function p(u,c,l,g,T){var B,Z,ee,Pe,Ze,Et;return no().wrap(function(An){for(;;)switch(An.prev=An.next){case 0:if(B=Jm(c.url),!(B.length>1)){An.next=15;break}return An.next=4,oE(B,c);case 4:if(Z=An.sent,ee=Z.rasterFiles,Pe=Z.xhrList,Ze=Z.errList,KT(u,Pe),!(Ze.length>0)){An.next=12;break}return l(Ze,null),An.abrupt("return");case 12:Aa(ee,g,T,l),An.next=17;break;case 15:Et=ji(c,function(Mn,br){if(Mn)l(Mn);else if(br){var Li=[{data:br,bands:B[0].bands}];Aa(Li,g,T,l)}}),KT(u,[Et]);case 17:case"end":return An.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,Ra.Z)(no().mark(function a(p,u){var c,l,g,T,B,Z,ee,Pe,Ze,Et,Mt;return no().wrap(function(Mn){for(;;)switch(Mn.prev=Mn.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,Se.Z)((0,Se.Z)((0,Se.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||Yr(a))Pe=Array.from(a);else{var Ze=Array.isArray(a)?a:[a];Pe=li(Ze,B,Z)}var Et={_id:1,dataArray:[(0,Se.Z)((0,Se.Z)({_id:1,data:Pe,width:g,height:T},ee),{},{min:c,max:l,coordinates:[[u[0],u[1]],[u[2],u[3]]]})]};return Et}var aE={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},JT=function(){var a=(0,Ra.Z)(no().mark(function p(u){return no().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",new Promise(function(g){var T=(0,Xn.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,Se.Z)((0,Se.Z)((0,Se.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}),Et={type:"FeatureCollection",features:[]};return Et.features=a.dataArray.map(function(Mt){return{type:"Feature",geometry:{type:"Point",coordinates:Mt.coordinates},properties:(0,Se.Z)({},Mt)}}),Ze.load(Et.features),Ze}function Ag(a){return a.map(function(p,u){return(0,Se.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,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,zt.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=Fa.cloneDeep,ey=Fa.isFunction,Tw=Fa.isString,Dw=Fa.mergeWith;function tD(a,p){if(Array.isArray(p))return p}var P2=function(a){(0,ft.Z)(u,a);var p=uE(u);function u(c,l){var g;return(0,Ct.Z)(this,u),g=p.call(this),(0,Cn.Z)((0,cs.Z)(g),"type","source"),(0,Cn.Z)((0,cs.Z)(g),"isTile",!1),(0,Cn.Z)((0,cs.Z)(g),"inited",!1),(0,Cn.Z)((0,cs.Z)(g),"hooks",{init:new u1}),(0,Cn.Z)((0,cs.Z)(g),"parser",{type:"geojson"}),(0,Cn.Z)((0,cs.Z)(g),"transforms",[]),(0,Cn.Z)((0,cs.Z)(g),"cluster",!1),(0,Cn.Z)((0,cs.Z)(g),"clusterOptions",{enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"}),(0,Cn.Z)((0,cs.Z)(g),"invalidExtent",!1),(0,Cn.Z)((0,cs.Z)(g),"dataArrayChanged",!1),(0,Cn.Z)((0,cs.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 Et=Ze.id;if(Et){var Mt=g.clusterIndex.getLeaves(Et,1/0),An=Mt.map(function(Li){return Li.properties}),Mn;if(Tw(Z)&&ee){var br=yi(An,ee);Mn=lE[Z](br)}ey(Z)&&(Mn=Z(An)),Ze.properties.stat=Mn}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(Go){g.e(Go)}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),Et;try{for(Ze.s();!(Et=Ze.n()).done;){var Mt=Et.value,An=Mt.coordinates[1],Mn=Mt.coordinates[0];if(Number.isFinite(An)&&Number.isFinite(Mn)){var br=Math.floor((An+90)/ee.yOffset),Li=Math.floor((Mn+180)/ee.xOffset),Zo="".concat(br,"-").concat(Li);Pe[Zo]=Pe[Zo]||{count:0,points:[]},Pe[Zo].count+=1,Pe[Zo].points.push(Mt)}}}catch(Go){Ze.e(Go)}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 Et={},Mt=[],An,Mn=Ze.length;for(An=0;An1){var Oa=Li-Qs,yl=Qs+(LiJl*Jl+ju*ju&&(Qs=yl+(Go&1?1:-1)/2,Go=Wl)}var Ku=Qs+"-"+Go,Jc=Et[Ku];Jc?Jc.push(br):(Mt.push(Jc=Et[Ku]=[br]),Jc.x=(Qs+(Go&1)/2)*B,Jc.y=Go*Z)}return Mt}function Pe(Ze){var Et=0,Mt=0;return w3.map(function(An){var Mn=Math.sin(An)*Ze,br=-Math.cos(An)*Ze,Li=Mn-Et,Zo=br-Mt;return Et=Mn,Mt=br,[Li,Zo]})}return ee.hexagon=function(Ze){return"m"+Pe(Ze==null?T:+Ze).join("l")+"z"},ee.centers=function(){for(var Ze=[],Et=Math.round(p/Z),Mt=Math.round(a/B),An=Et*Z;An180||Math.abs(An[1][0])>180){if(Pe.x>Mt){var Mn=this.mapsService.lngLatToContainer([Z-360,ee]);Pe.x=Mn.x}if(Pe.x<0){var br=this.mapsService.lngLatToContainer([Z+360,ee]);Pe.x=br.x}}(Pe.x>Mt||Pe.x<0||Pe.y>Et||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=eo("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)}Cs(g,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(Ze){var Et,Mt,An=((Et=l.markerOption)===null||Et===void 0?void 0:Et.style)&&((Mt=l.markerOption)===null||Mt===void 0?void 0:Mt.style[Ze]);g&&(g.style[Ze]=An)}),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,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,zt.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=Fa.merge,xC=function(a){(0,ft.Z)(u,a);var p=F2(u);function u(c){var l,g;return(0,Ct.Z)(this,u),g=p.call(this),(0,Cn.Z)((0,cs.Z)(g),"markers",[]),(0,Cn.Z)((0,cs.Z)(g),"points",[]),(0,Cn.Z)((0,cs.Z)(g),"clusterMarkers",[]),g.markerLayerOption=sD(g.getDefault(),c),Eu(["update"],(0,cs.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(vr.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,Se.Z)((0,Se.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,Et=Ze.field,Mt=Ze.method;if((Pe=ee.properties)!==null&&Pe!==void 0&&Pe.cluster_id){var An,Mn=T.getLeaves((An=ee.properties)===null||An===void 0?void 0:An.cluster_id);if(ee.properties.clusterData=Mn,Et&&Mt){var br=Mn==null?void 0:Mn.map(function(aa){var Oa=(0,Cn.Z)({},Et,aa.properties[Et]);return Oa}),Li=cf(br,Et),Zo=Qc(Mt,Li),Go="point_"+Mt;ee.properties[Go]=Zo.toFixed(2)}}var Qs=T.clusterMarker(ee);T.clusterMarkers.push(Qs),Qs.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=eo("div","l7-marker-cluster"),T=eo("div","",g),B=eo("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,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,zt.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,ft.Z)(u,a);var p=T3(u);function u(c){var l;return(0,Ct.Z)(this,u),l=p.call(this),u.controlCount++,l.controlOption=(0,Se.Z)((0,Se.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,Xn.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,Se.Z)((0,Se.Z)({},this.controlOption),l)}},{key:"addTo",value:function(l){this.mapsService=l.get(vr.IMapService),this.renderService=l.get(vr.IRendererService),this.layerService=l.get(vr.ILayerService),this.controlService=l.get(vr.IControlService),this.configService=l.get(vr.IGlobalConfigService),this.scene=l.get(vr.ISceneService),this.sceneContainer=l,this.isShow=!0,this.container=this.onAdd(),Cs(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;sa(this.container),this.onRemove(),this.emit("remove",this)}},{key:"onAdd",value:function(){return eo("div")}},{key:"onRemove",value:function(){}},{key:"show",value:function(){var l=this.container;Ka(l,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}},{key:"hide",value:function(){var l=this.container;Cs(l,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}},{key:"getDefault",value:function(l){return{position:bo.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]:bo.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&&Ka(g,T),l&&Cs(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,Cn.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,zt.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,ft.Z)(u,a);var p=M(u);function u(){var c;(0,Ct.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&arguments[0]!==void 0?arguments[0]:"";return eo("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),Ma((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&&sa(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(Ka(this.button,"l7-button-control--row"),Ka(this.button,"l7-button-control--column"),l){var g=this.buttonText;if(!g){var T;g=eo("div","l7-button-control__text"),(T=this.button)===null||T===void 0||T.appendChild(g),this.buttonText=g}g.innerText=l,Cs(this.button,this.controlOption.vertical?"l7-button-control--column":"l7-button-control--row")}else!l&&this.buttonText&&(sa(this.buttonText),this.buttonText=void 0)}}]),u}(v);function Q(a){var p=$e();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,zt.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,ft.Z)(u,a);var p=Q(u);function u(c,l){var g;return(0,Ct.Z)(this,u),g=p.call(this),(0,Cn.Z)((0,cs.Z)(g),"isShow",!1),(0,Cn.Z)((0,cs.Z)(g),"timeout",null),(0,Cn.Z)((0,cs.Z)(g),"show",function(){return g.isShow||!g.contentDOM.innerHTML||(g.resetPopperPosition(),Ka(g.popperDOM,"l7-popper-hide"),g.isShow=!0,g.option.unique&&u.conflictPopperList.forEach(function(T){T!==(0,cs.Z)(g)&&T.isShow&&T.hide()}),g.emit("show"),window.addEventListener("pointerdown",g.onPopperUnClick)),(0,cs.Z)(g)}),(0,Cn.Z)((0,cs.Z)(g),"hide",function(){return g.isShow&&(Cs(g.popperDOM,"l7-popper-hide"),g.isShow=!1,g.emit("hide"),window.removeEventListener("pointerdown",g.onPopperUnClick)),(0,cs.Z)(g)}),(0,Cn.Z)((0,cs.Z)(g),"setHideTimeout",function(){g.timeout||(g.timeout=window.setTimeout(function(){g.isShow&&(g.hide(),g.timeout=null)},300))}),(0,Cn.Z)((0,cs.Z)(g),"clearHideTimeout",function(){g.timeout&&(window.clearTimeout(g.timeout),g.timeout=null)}),(0,Cn.Z)((0,cs.Z)(g),"onBtnClick",function(){g.isShow?g.hide():g.show()}),(0,Cn.Z)((0,cs.Z)(g),"onPopperUnClick",function(T){Za(T.target,[".l7-button-control",".l7-popper-content"])||g.hide()}),(0,Cn.Z)((0,cs.Z)(g),"onBtnMouseLeave",function(){g.setHideTimeout()}),(0,Cn.Z)((0,cs.Z)(g),"onBtnMouseMove",function(){g.clearHideTimeout(),!g.isShow&&g.show()}),g.button=c,g.option=l,g.init(),l.unique&&u.conflictPopperList.push((0,cs.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&&(dl(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),sa(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,Xn.Z)(Z,2),Ze=Pe[0],Et=Pe[1],Mt=this.button.getBoundingClientRect(),An=T.getBoundingClientRect(),Mn=ga(Mt,An),br=Mn.left,Li=Mn.right,Zo=Mn.top,Go=Mn.bottom,Qs=!1,aa=!1;/^(left|right)/.test(ee)?(ee.includes("left")?l.right="".concat(Mt.width+Li,"px"):ee.includes("right")&&(l.left="".concat(Mt.width+br,"px")),ee.includes("start")?l.top="".concat(Zo,"px"):ee.includes("end")?l.bottom="".concat(Go,"px"):(l.top="".concat(Zo+Mt.height/2,"px"),aa=!0,l.transform="translate(".concat(Ze,"px, calc(").concat(Et,"px - 50%))"))):/^(top|bottom)/.test(ee)&&(ee.includes("top")?l.bottom="".concat(Mt.height+Go,"px"):ee.includes("bottom")&&(l.top="".concat(Mt.height+Zo,"px")),ee.includes("start")?l.left="".concat(br,"px"):ee.includes("end")?l.right="".concat(Li,"px"):(l.left="".concat(br+Mt.width/2,"px"),Qs=!0,l.transform="translate(calc(".concat(Ze,"px - 50%), ").concat(Et,"px)"))),l.transform="translate(calc(".concat(Ze,"px - ").concat(Qs?"50%":"0%","), calc(").concat(Et,"px - ").concat(aa?"50%":"0%",")");var Oa=ee.split("-");Oa.length&&Cs(this.popperDOM,Oa.map(function(yl){return"l7-popper-".concat(yl)}).join(" ")),Ji(this.popperDOM,us(l))}},{key:"createPopper",value:function(){var l=this.option,g=l.container,T=l.className,B=T===void 0?"":T,Z=l.content,ee=eo("div","l7-popper l7-popper-hide ".concat(B)),Pe=eo("div","l7-popper-content"),Ze=eo("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,Cn.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,zt.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 kn={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,ft.Z)(u,a);var p=pt(u);function u(){return(0,Ct.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(),Ma((0,mt.Z)(u.prototype),"hide",this).call(this)}},{key:"getDefault",value:function(l){var g,T=Ma((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,Se.Z)((0,Se.Z)({},Ma((0,mt.Z)(u.prototype),"getDefault",this).call(this,l)),{},{popperPlacement:B instanceof Element?"bottom":kn[B],popperTrigger:"click"})}},{key:"onAdd",value:function(){var l=Ma((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,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(Ma((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 Si(a){var p=Yi();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,zt.Z)(this,l)}}function Yi(){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 Do=function(a){return a.ActiveOptionClassName="l7-select-control-item-active",a.OptionValueAttrKey="data-option-value",a.OptionIndexAttrKey="data-option-index",a}(Do||{}),$o=function(a){(0,ft.Z)(u,a);var p=Si(u);function u(){var c;(0,Ct.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,Rr.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){Ma((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=Ma((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(Z){var ee=Z.getAttribute(Do.OptionValueAttrKey),Pe=g.getIsMultiple()?Z.querySelector("input[type=checkbox]"):void 0;B.includes(ee)?(Cs(Z,Do.ActiveOptionClassName),Pe&&$a(Pe,!0)):(Ka(Z,Do.ActiveOptionClassName),Pe&&$a(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=eo("div",T?"l7-select-control--image":"l7-select-control--normal");this.getIsMultiple()&&Cs(B,"l7-select-control--multiple");var Z=l.map(function(ee,Pe){var Ze=T?g.createImageOption(ee):g.createNormalOption(ee);return Ze.setAttribute(Do.OptionValueAttrKey,ee.value),Ze.setAttribute(Do.OptionIndexAttrKey,window.String(Pe)),Ze.addEventListener("click",g.onItemClick.bind(g,ee)),Ze});return B.append.apply(B,(0,Rr.Z)(Z)),this.optionDOMList=Z,B}},{key:"createImageOption",value:function(l){var g=this.selectValue.includes(l.value),T=eo("div","l7-select-control-item ".concat(g?Do.ActiveOptionClassName:"")),B=eo("img");B.setAttribute("src",l.img),Hl(B),T.appendChild(B);var Z=eo("div","l7-select-control-item-row");this.getIsMultiple()&&T.appendChild(this.createCheckbox(g));var ee=eo("span");return ee.innerText=l.text,Z.appendChild(ee),T.appendChild(Z),T}},{key:"createCheckbox",value:function(l){var g=eo("input");return g.setAttribute("type","checkbox"),l&&$a(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),Wr=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 Jo(a){var p=Wa();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,zt.Z)(this,l)}}function Wa(){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 nl=function(a){(0,ft.Z)(u,a);var p=Jo(u);function u(){var c;(0,Ct.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[ol.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[ol.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:ol};Object.defineProperties(du,{isFullscreen:{get:function(){return!!document[ol.fullscreenElement]}},element:{enumerable:!0,get:function(){var p;return(p=document[ol.fullscreenElement])!==null&&p!==void 0?p:void 0}},isEnabled:{enumerable:!0,get:function(){return!!document[ol.fullscreenEnabled]}}}),ol||(du={isEnabled:!1});var Ac=du;function sc(a){var p=Hu();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,zt.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,ft.Z)(u,a);var p=sc(u);function u(c){var l;return(0,Ct.Z)(this,u),l=p.call(this,c),(0,Cn.Z)((0,cs.Z)(l),"isFullscreen",!1),(0,Cn.Z)((0,cs.Z)(l),"toggleFullscreen",(0,Ra.Z)(no().mark(function g(){return no().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,Cn.Z)((0,cs.Z)(l),"onClick",function(){l.toggleFullscreen()}),(0,Cn.Z)((0,cs.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)),Ma((0,mt.Z)(u.prototype),"setOptions",this).call(this,l)}},{key:"onAdd",value:function(){var l=Ma((0,mt.Z)(u.prototype),"onAdd",this).call(this);return l.addEventListener("click",this.onClick),this.mapContainer=ua(this.scene.getSceneConfig().id),this.mapContainer.addEventListener("fullscreenchange",this.onFullscreenChange),l}},{key:"onRemove",value:function(){Ma((0,mt.Z)(u.prototype),"onRemove",this).call(this),this.mapContainer.removeEventListener("fullscreenchange",this.onFullscreenChange)}},{key:"getDefault",value:function(l){return(0,Se.Z)((0,Se.Z)({},Ma((0,mt.Z)(u.prototype),"getDefault",this).call(this,l)),{},{title:"\u5168\u5C4F",btnIcon:Wr("l7-icon-fullscreen"),exitTitle:"\u9000\u51FA\u5168\u5C4F",exitBtnIcon:Wr("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,zt.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,ft.Z)(u,a);var p=xf(u);function u(c){var l;return(0,Ct.Z)(this,u),l=p.call(this,c),(0,Cn.Z)((0,cs.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,Cn.Z)((0,cs.Z)(l),"onClick",(0,Ra.Z)(no().mark(function g(){var T,B,Z;return no().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,Se.Z)((0,Se.Z)({},Ma((0,mt.Z)(u.prototype),"getDefault",this).call(this,l)),{},{title:"\u5B9A\u4F4D",btnIcon:Wr("l7-icon-reposition")})}},{key:"onAdd",value:function(){var l=Ma((0,mt.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,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,zt.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,ft.Z)(u,a);var p=Lf(u);function u(){var c;(0,Ct.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,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,zt.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,ft.Z)(u,a);var p=Ec(u);function u(){var c;(0,Ct.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;Tc.mapsService.getMinZoom()&&c.mapsService.zoomOut()}),(0,Cn.Z)((0,cs.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,Se.Z)((0,Se.Z)({},Ma((0,mt.Z)(u.prototype),"getDefault",this).call(this,l)),{},{position:bo.BOTTOMRIGHT,name:"zoom",zoomInText:Wr("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:Wr("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}},{key:"setOptions",value:function(l){Ma((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=eo("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){dl(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=eo("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,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,zt.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,ft.Z)(u,a);var p=Mc(u);function u(c){var l;(0,Ct.Z)(this,u),l=p.call(this),(0,Cn.Z)((0,cs.Z)(l),"isShow",!0),(0,Cn.Z)((0,cs.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,Et=ee.top,Mt=Et===void 0?0:Et;l.setPopupPosition(T.clientX-Ze,T.clientY-Mt)}),(0,Cn.Z)((0,cs.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,Cn.Z)((0,cs.Z)(l),"onKeyDown",function(T){T.keyCode===27&&l.remove()}),(0,Cn.Z)((0,cs.Z)(l),"onCloseButtonClick",function(T){T.stopPropagation&&T.stopPropagation(),l.hide()}),(0,Cn.Z)((0,cs.Z)(l),"update",function(){var T=!!l.lngLat,B=l.popupOption,Z=B.className,ee=B.style,Pe=B.maxWidth,Ze=B.anchor,Et=B.stopPropagation;if(!(!l.mapsService||!T||!l.content)){var Mt=l.mapsService.getMarkerContainer();if(!l.container&&Mt&&(l.container=eo("div","l7-popup ".concat(Z!=null?Z:""," ").concat(l.isShow?"":"l7-popup-hide"),Mt),ee&&l.container.setAttribute("style",ee),l.tip=eo("div","l7-popup-tip",l.container),l.container.appendChild(l.content),Et&&["mousemove","mousedown","mouseup","click","dblclick"].forEach(function(br){l.container.addEventListener(br,function(Li){Li.stopPropagation()})}),l.container.style.whiteSpace="nowrap"),l.updateLngLatPosition(),hs(l.container,"".concat(Tt[Ze])),bt(l.container,Ze,"popup"),Pe){var An=l.container.getBoundingClientRect(),Mn=An.width;Mn>parseFloat(Pe)&&(l.container.style.width=Pe)}else l.container.style.removeProperty("width")}}),l.popupOption=(0,Se.Z)((0,Se.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(vr.IMapService),this.sceneService=l.get(vr.ISceneService),this.layerService=l.get(vr.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&&sa(this.content),this.container&&(sa(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,Se.Z)((0,Se.Z)({},this.popupOption),l),this.checkUpdateOption(l,["html","text","title","closeButton","closeButtonOffsets","maxWidth","anchor","stopPropagation","className","style","lngLat","offsets"])&&(this.container&&(sa(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&&Ka(this.container,"l7-popup-hide"),this.isShow=!0,this.emit("show"),this}},{key:"hide",value:function(){if(this.isShow)return this.container&&Cs(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=eo("div","l7-popup-content__title"),this.content.firstChild?this.content.insertBefore(this.contentTitle,this.content.firstChild):this.content.append(this.contentTitle)),dl(this.contentTitle),Ml(this.contentTitle,l)):this.contentTitle&&(sa(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&&sa(this.content),this.contentTitle=void 0,this.content=eo("div","l7-popup-content",this.container),this.setTitle(this.popupOption.title),this.popupOption.closeButton){var g=Wr("l7-icon-guanbi");Cs(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=eo("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,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,zt.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=Fa.get,$0=function(a){(0,ft.Z)(u,a);var p=Tm(u);function u(){var c;(0,Ct.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0;)c=c+u*(l%g),l=Math.floor(l/g),u=u/g;return c}var a3=1,sE=(fw=(0,fa.b2)(),iE=(0,fa.f3)(Fr.IShaderModuleService),fw(oE=(EC=function(a){(0,At.Z)(c,a);var g=mv(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;A=1&&(le(this.copyRenderTarget,function(){m.outputModel.draw({uniforms:{u_Texture:m.outputRenderTarget}})}),le(l.multiPassRenderer.getPostProcessor().getReadFBO(),function(){m.copyModel.draw({uniforms:{u_Texture:m.copyRenderTarget}})}),l.multiPassRenderer.getPostProcessor().render(l));var jo=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=jo,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,m,A){this.shaderModuleService.registerModule(l,{vs:w0,fs:m});var j=this.shaderModuleService.getModule(l),Y=j.vs,le=j.fs,$e=j.uniforms,Ye=this.rendererService,Nt=Ye.createAttribute,qt=Ye.createBuffer,jn=Ye.createModel;return jn((0,Ne.Z)({vs:Y,fs:le,attributes:{a_Position:Nt({buffer:qt({data:[-4,-4,4,-4,0,4],type:ho.FLOAT}),size:2})},uniforms:(0,Ne.Z)({},$e),depth:{enable:!1},count:3},A))}}]),c}(Up),V_=ee(EC.prototype,"shaderModuleService",[iE],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),EC))||oE),b2=new fa.W2;b2.bind(Fr.IGlobalConfigService).to(H).inSingletonScope(),(0,fa.GW)((0,fa.b2)(),Wu.EventEmitter),b2.bind(Fr.IEventEmitter).to(Wu.EventEmitter);var TC=(0,wl.Z)(b2,!1),yb=function(g){var c=TC.lazyInject(g);return function(u,l,m){c.call(this,u,l),m&&(m.initializer=function(){return u[l]})}},l3=function(g){var c=TC.lazyMultiInject(g);return function(u,l,m){c.call(this,u,l),m&&(m.initializer=function(){return u[l]})}},om=b2,aE=0;function lE(){var a=new fa.W2;return a.parent=b2,a.bind(Fr.SceneID).toConstantValue("".concat(aE++)),a.bind(Fr.IShaderModuleService).to(Ll).inSingletonScope(),a.bind(Fr.ILayerService).to(ob).inSingletonScope(),a.bind(Fr.IDebugService).to(xv).inSingletonScope(),a.bind(Fr.ISceneService).to(Ve).inSingletonScope(),a.bind(Fr.ICameraService).to(Ws).inSingletonScope(),a.bind(Fr.ICoordinateSystemService).to(b0).inSingletonScope(),a.bind(Fr.IInteractionService).to(Z0).inSingletonScope(),a.bind(Fr.IPickingService).to(Hv).inSingletonScope(),a.bind(Fr.IControlService).to(Ph).inSingletonScope(),a.bind(Fr.IMarkerService).to(tp).inSingletonScope(),a.bind(Fr.IIconService).to(gg).inSingletonScope(),a.bind(Fr.IFontService).to(ym).inSingletonScope(),a.bind(Fr.IPopupService).to(jd).inSingletonScope(),a.bind(Fr.INormalPass).to(sv).whenTargetNamed("clear"),a.bind(Fr.INormalPass).to(g2).whenTargetNamed("pixelPicking"),a.bind(Fr.INormalPass).to(o3).whenTargetNamed("render"),a.bind(Fr.INormalPass).to(sE).whenTargetNamed("taa"),a.bind(Fr.IFactoryNormalPass).toFactory(function(g){return function(c){return g.container.getNamed(Fr.INormalPass,c)}}),a.bind(Fr.IPostProcessingPass).to(JT).whenTargetNamed("copy"),a.bind(Fr.IPostProcessingPass).to(GS).whenTargetNamed("bloom"),a.bind(Fr.IPostProcessingPass).to(XT).whenTargetNamed("blurH"),a.bind(Fr.IPostProcessingPass).to(X1).whenTargetNamed("blurV"),a.bind(Fr.IPostProcessingPass).to(qb).whenTargetNamed("noise"),a.bind(Fr.IPostProcessingPass).to(vb).whenTargetNamed("sepia"),a.bind(Fr.IPostProcessingPass).to(qT).whenTargetNamed("colorHalftone"),a.bind(Fr.IPostProcessingPass).to(v2).whenTargetNamed("hexagonalPixelate"),a.bind(Fr.IPostProcessingPass).to(Dx).whenTargetNamed("ink"),a.bind(Fr.IFactoryPostProcessingPass).toFactory(function(g){return function(c){var u=g.container.getNamed(Fr.IPostProcessingPass,c);return u.setName(c),u}}),a}function Uy(a){var g=new fa.W2;return g.parent=a,g.bind(Fr.IStyleAttributeService).to(T1).inSingletonScope(),g.bind(Fr.IMultiPassRenderer).to(fb).inSingletonScope(),g.bind(Fr.IPostProcessor).to(Ty).inSingletonScope(),g}var j_=["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"];function uE(a){return j_.indexOf(a)}var u_=Js.clamp,AC=2,_b=4,cE=64,u3=128,DC=256,x2=512,k0=8192,f0=16384,fm=32768,Qv=null,mw=131072,Dy=262144,Lx=524288,c3=1048576,Wy=2097152,Px=4194304,h3=8388608,d3=16777216,U_=null;function Jb(a,g){return a=u_(Math.floor(a),0,255),g=u_(Math.floor(g),0,255),256*a+g}function VD(a){var g=a.color,c=a.radius,u=a.tileX,l=a.tileY,m=a.shape,A=a.opacity,j=a.stroke,Y=a.strokeWidth,le=a.strokeOpacity,$e=[],Ye=[],Nt=[],qt=[Jb(g[0],g[1]),Jb(g[2],g[3])],jn=[Jb(j[0],j[1]),Jb(j[2],j[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(Qn){var Ir=(0,Oi.Z)(Qn,2),ki=Ir[0],jo=Ir[1];$e.push([].concat(qt,[(ki+1)*h3+(jo+1)*Wy+uE(m)*mw+c,(u+512)*Lx+(l+512)*cE])),Ye.push([].concat(jn,[Y,le])),Nt.push([A,0,0,0])}),{packedBuffer:$e,packedBuffer2:Ye,packedBuffer3:Nt}}function I1(a,g){if(a===0&&!g)return 0;if(a===1&&g)return 4294967295;var c=g?1:0,u=Math.floor(a*127);return u*U_+c*d3+u*mw+c*Qv+u*x2+c*DC+u*AC+c}var kx={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"},Ev={MapInitStart:"mapInitStart",LayerInitStart:"layerInitStart",LayerInitEnd:"layerInitEnd",SourceInitStart:"sourceInitStart",SourceInitEnd:"sourceInitEnd",ScaleInitStart:"scaleInitStart",ScaleInitEnd:"scaleInitEnd",MappingStart:"mappingStart",MappingEnd:"mappingEnd",BuildModelStart:"buildModelStart",BuildModelEnd:"buildModelEnd"},qm=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}({}),Mx=function(a){return a.CONSTANT="constant",a.VARIABLE="variable",a}({}),Cd=function(a){return a[a.Attribute=0]="Attribute",a[a.InstancedAttribute=1]="InstancedAttribute",a[a.Uniform=2]="Uniform",a}({}),bb=["mapload","mapchange","mapAfterFrameChange"],w2=["loaded","fontloaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"],$v=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}({}),hE=function(){var a=(0,pl.Z)(Zi().mark(function g(c,u,l,m){return Zi().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",new Promise(function(Y,le){u({x:c.x,y:c.y,z:c.z},function($e,Ye){if($e||Ye.length===0){le($e);return}Ye&&bl([{data:Ye,bands:[0]}],l,m,function(Nt,qt){Nt?le(Nt):qt&&Y(qt)})})}));case 1:case"end":return j.stop()}},g)}));return function(c,u,l,m){return a.apply(this,arguments)}}(),C0=function(){var a=(0,pl.Z)(Zi().mark(function g(c,u){return Zi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",new Promise(function(A,j){u({x:c.x,y:c.y,z:c.z},function(Y,le){if(Y||!le){j(Y);return}le instanceof ArrayBuffer?rn(le,function($e,Ye){$e&&j($e),A(Ye)}):le instanceof HTMLImageElement?A(le):j(Y)})}));case 1:case"end":return m.stop()}},g)}));return function(c,u){return a.apply(this,arguments)}}();function jD(a,g){return Array.isArray(a)?typeof a[0]=="string"?a.map(function(c){return Zh(c,g)}):a.map(function(c){return{url:Zh(c.url,g),bands:c.bands||[0]}}):Zh(a,g)}function f3(a){return typeof a=="string"?[{url:a,bands:[0]}]:typeof a[0]=="string"?a.map(function(g){return{url:g,bands:[0]}}):a}function IC(a,g){a.xhrCancel=function(){g.map(function(c){c.abort()})}}var C2=function(){var a=(0,pl.Z)(Zi().mark(function g(c,u,l,m,A){var j,Y,le,$e,Ye,Nt;return Zi().wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(j=f3(u.url),!(j.length>1)){jn.next=15;break}return jn.next=4,dE(j,u);case 4:if(Y=jn.sent,le=Y.rasterFiles,$e=Y.xhrList,Ye=Y.errList,IC(c,$e),!(Ye.length>0)){jn.next=12;break}return l(Ye,null),jn.abrupt("return");case 12:bl(le,m,A,l),jn.next=17;break;case 15:Nt=Vr(u,function(Qn,Ir){if(Qn)l(Qn);else if(Ir){var ki=[{data:Ir,bands:j[0].bands}];bl(ki,m,A,l)}}),IC(c,[Nt]);case 17:case"end":return jn.stop()}},g)}));return function(c,u,l,m,A){return a.apply(this,arguments)}}();function dE(a,g){return fy.apply(this,arguments)}function fy(){return fy=(0,pl.Z)(Zi().mark(function a(g,c){var u,l,m,A,j,Y,le,$e,Ye,Nt,qt;return Zi().wrap(function(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:u=[],l=[],m=[],A=0;case 4:if(!(A1&&arguments[1]!==void 0?arguments[1]:{};if(g3(a))throw new Error("tile server url is error");var c=(g==null?void 0:g.dataType)||$v.IMAGE;c===$v.RGB&&(c=$v.ARRAYBUFFER);var u=function(A,j){switch(c){case $v.IMAGE:return L1(a,A,j,g);case $v.CUSTOMIMAGE:case $v.CUSTOMTERRAINRGB:return C0(j,g==null?void 0:g.getCustomData);case $v.ARRAYBUFFER:return UD(a,A,j,(g==null?void 0:g.format)||p3,g==null?void 0:g.operation);case $v.CUSTOMARRAYBUFFER:case $v.CUSTOMRGB:return hE(j,g==null?void 0:g.getCustomData,(g==null?void 0:g.format)||p3,g==null?void 0:g.operation);default:return L1(a,A,j,g)}},l=(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},S2),g),{},{getTileData:u});return{data:a,dataArray:[],tilesetOptions:l,isTile:!0}}var fE=["extent","min","max","width","height","format","operation"];function m3(a,g){var c=g.extent,u=g.min,l=g.max,m=g.width,A=g.height,j=g.format,Y=g.operation,le=(0,gv.Z)(g,fE),$e;if(j===void 0||Gn(a))$e=Array.from(a);else{var Ye=Array.isArray(a)?a:[a];$e=Ci(Ye,j,Y)}var Nt={_id:1,dataArray:[(0,Ne.Z)((0,Ne.Z)({_id:1,data:$e,width:m,height:A},le),{},{min:u,max:l,coordinates:[[c[0],c[1]],[c[2],c[3]]]})]};return Nt}var v3={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},y3=function(){var a=(0,pl.Z)(Zi().mark(function g(c){return Zi().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",new Promise(function(m){var A=(0,Oi.Z)(c.bounds,4),j=A[0],Y=A[1],le=A[2],$e=A[3],Ye={layers:{testTile:{features:[{type:"Feature",properties:{key:c.x+"/"+c.y+"/"+c.z,x:(j+le)/2,y:(Y+$e)/2},geometry:{type:"LineString",coordinates:[[le,$e],[le,Y],[j,Y],[j,Y]]}}]}}};m(Ye)}));case 1:case"end":return l.stop()}},g)}));return function(c){return a.apply(this,arguments)}}();function W_(a,g){var c=function(m){return y3(m)},u=(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},v3),g),{},{getTileData:c});return{data:a,dataArray:[],tilesetOptions:u,isTile:!0}}var pE=_(77028),Wg=_.n(pE);function vw(a,g){var c=g.radius,u=c===void 0?40:c,l=g.maxZoom,m=l===void 0?18:l,A=g.minZoom,j=A===void 0?0:A,Y=g.zoom,le=Y===void 0?2:Y;if(a.pointIndex){var $e=a.pointIndex.getClusters(a.extent,Math.floor(le));return a.dataArray=e1($e),a}var Ye=new(Wg())({radius:u,minZoom:j,maxZoom:m}),Nt={type:"FeatureCollection",features:[]};return Nt.features=a.dataArray.map(function(qt){return{type:"Feature",geometry:{type:"Point",coordinates:qt.coordinates},properties:(0,Ne.Z)({},qt)}}),Ye.load(Nt.features),Ye}function e1(a){return a.map(function(g,c){return(0,Ne.Z)({coordinates:g.geometry.coordinates,_id:c+1},g.properties)})}function Qb(a){if(a.length===0)throw new Error("max requires at least one data point");for(var g=a[0],c=1;cg&&(g=a[c]);return g}function PC(a){if(a.length===0)throw new Error("min requires at least one data point");for(var g=a[0],c=1;c=Math.abs(a[l])?c+=g-u+a[l]:c+=a[l]-u+g,g=u;return g+c*1}function gE(a){if(a.length===0)throw new Error("mean requires at least one data point");return kC(a)/a.length}var MC={min:PC,max:Qb,mean:gE,sum:kC};function mE(a){var g=Iy();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function Iy(){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 yw=Js.cloneDeep,E2=Js.isFunction,_3=Js.isString,OC=Js.mergeWith;function RC(a,g){if(Array.isArray(g))return g}var T2=function(a){(0,At.Z)(c,a);var g=mE(c);function c(u,l){var m;return(0,Bt.Z)(this,c),m=g.call(this),(0,Xn.Z)((0,ps.Z)(m),"type","source"),(0,Xn.Z)((0,ps.Z)(m),"isTile",!1),(0,Xn.Z)((0,ps.Z)(m),"inited",!1),(0,Xn.Z)((0,ps.Z)(m),"hooks",{init:new $y}),(0,Xn.Z)((0,ps.Z)(m),"parser",{type:"geojson"}),(0,Xn.Z)((0,ps.Z)(m),"transforms",[]),(0,Xn.Z)((0,ps.Z)(m),"cluster",!1),(0,Xn.Z)((0,ps.Z)(m),"clusterOptions",{enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"}),(0,Xn.Z)((0,ps.Z)(m),"invalidExtent",!1),(0,Xn.Z)((0,ps.Z)(m),"dataArrayChanged",!1),(0,Xn.Z)((0,ps.Z)(m),"cfg",{autoRender:!0}),m.originData=u,m.initCfg(l),m.init().then(function(){m.inited=!0,m.emit("update",{type:"inited"})}),m}return(0,lt.Z)(c,[{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 m=this,A=this.clusterOptions,j=A.method,Y=j===void 0?"sum":j,le=A.field,$e=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(l));this.clusterOptions.zoom=l,$e.forEach(function(Ye){Ye.id||(Ye.properties.point_count=1)}),(le||E2(Y))&&($e=$e.map(function(Ye){var Nt=Ye.id;if(Nt){var qt=m.clusterIndex.getLeaves(Nt,1/0),jn=qt.map(function(ki){return ki.properties}),Qn;if(_3(Y)&&le){var Ir=mi(jn,le);Qn=MC[Y](Ir)}E2(Y)&&(Qn=Y(jn)),Ye.properties.stat=Qn}else Ye.properties.point_count=1;return Ye})),this.data=R("geojson")({type:"FeatureCollection",features:$e}),this.executeTrans()}},{key:"getFeatureById",value:function(l){var m=this.parser,A=m.type,j=A===void 0?"geojson":A,Y=m.geometry;if(j==="geojson"&&!this.cluster){var le=l=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function x3(a,g){if(a){if(typeof a=="string")return ex(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return ex(a,g)}}function ex(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);cu?l:u)}}catch(Wo){m.e(Wo)}finally{m.f()}var Y=(c+u)/2,le=Ox(g,Y);if(le.xOffset<=0||le.yOffset<=0)return{gridHash:{},gridOffset:le};var $e={},Ye=b3(a),Nt;try{for(Ye.s();!(Nt=Ye.n()).done;){var qt=Nt.value,jn=qt.coordinates[1],Qn=qt.coordinates[0];if(Number.isFinite(jn)&&Number.isFinite(Qn)){var Ir=Math.floor((jn+90)/le.yOffset),ki=Math.floor((Qn+180)/le.xOffset),jo="".concat(Ir,"-").concat(ki);$e[jo]=$e[jo]||{count:0,points:[]},$e[jo].count+=1,$e[jo].points.push(qt)}}}catch(Wo){Ye.e(Wo)}finally{Ye.f()}return{gridHash:$e,gridOffset:le}}function Ox(a,g){var c=J1(a),u=C3(g,a);return{yOffset:c,xOffset:u}}function J1(a){return a/_w*(180/Math.PI)}function C3(a,g){return g/_w*(180/Math.PI)/Math.cos(a*Math.PI/180)}function WD(a,g,c){return Object.keys(a).reduce(function(u,l,m){var A=l.split("-"),j=parseInt(A[0],10),Y=parseInt(A[1],10),le={};if(c.field&&c.method){var $e=Jc(a[l].points,c.field);le[c.method]=Zc[c.method]($e)}return Object.assign(le,{_id:m,coordinates:yc([-180+g.xOffset*(Y+.5),-90+g.yOffset*(j+.5)]),rawData:a[l].points,count:a[l].count}),u.push(le),u},[])}var c_=Math.PI/3,S3=[0,c_,2*c_,3*c_,4*c_,5*c_];function yE(a){return a[0]}function _E(a){return a[1]}function ZD(){var a=0,g=0,c=1,u=1,l=yE,m=_E,A,j,Y;function le(Ye){var Nt={},qt=[],jn,Qn=Ye.length;for(jn=0;jn1){var Fa=ki-na,vl=na+(kiuu*uu+Hu*Hu&&(na=vl+(Wo&1?1:-1)/2,Wo=eu)}var Vu=na+"-"+Wo,ih=Nt[Vu];ih?ih.push(Ir):(qt.push(ih=Nt[Vu]=[Ir]),ih.x=(na+(Wo&1)/2)*j,ih.y=Wo*Y)}return qt}function $e(Ye){var Nt=0,qt=0;return S3.map(function(jn){var Qn=Math.sin(jn)*Ye,Ir=-Math.cos(jn)*Ye,ki=Qn-Nt,jo=Ir-qt;return Nt=Qn,qt=Ir,[ki,jo]})}return le.hexagon=function(Ye){return"m"+$e(Ye==null?A:+Ye).join("l")+"z"},le.centers=function(){for(var Ye=[],Nt=Math.round(g/Y),qt=Math.round(a/j),jn=Nt*Y;jn180||Math.abs(jn[1][0])>180){if($e.x>qt){var Qn=this.mapsService.lngLatToContainer([Y-360,le]);$e.x=Qn.x}if($e.x<0){var Ir=this.mapsService.lngLatToContainer([Y+360,le]);$e.x=Ir.x}}($e.x>qt||$e.x<0||$e.y>Nt||$e.y<0)&&(m.style.display="none"),m.style.left=$e.x+A[0]+"px",m.style.top=$e.y-A[1]+"px"}}}},{key:"init",value:function(){var l=this,m=this.markerOption.element,A=this.markerOption,j=A.color,Y=A.anchor;if(!m){this.defaultMarker=!0,m=Ps("div"),this.markerOption.element=m;var le=document.createElementNS("http://www.w3.org/2000/svg","svg");le.setAttributeNS(null,"display","block"),le.setAttributeNS(null,"height","48px"),le.setAttributeNS(null,"width","48px"),le.setAttributeNS(null,"viewBox","0 0 1024 1024");var $e=document.createElementNS("http://www.w3.org/2000/svg","path");$e.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"),$e.setAttributeNS(null,"fill",j),le.appendChild($e),m.appendChild(le)}Za(m,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(Ye){var Nt,qt,jn=((Nt=l.markerOption)===null||Nt===void 0?void 0:Nt.style)&&((qt=l.markerOption)===null||qt===void 0?void 0:qt.style[Ye]);m&&(m.style[Ye]=jn)}),Qt(m,Y,"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"||nu()||(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.")}}]),c}(Wu.EventEmitter);function T3(a){var g=A2();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function A2(){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 HD=Js.merge,GD=function(a){(0,At.Z)(c,a);var g=T3(c);function c(u){var l,m;return(0,Bt.Z)(this,c),m=g.call(this),(0,Xn.Z)((0,ps.Z)(m),"markers",[]),(0,Xn.Z)((0,ps.Z)(m),"points",[]),(0,Xn.Z)((0,ps.Z)(m),"clusterMarkers",[]),m.markerLayerOption=HD(m.getDefault(),u),Ho(["update"],(0,ps.Z)(m)),m.zoom=((l=m.markerLayerOption.clusterOption)===null||l===void 0?void 0:l.zoom)||-99,m}return(0,lt.Z)(c,[{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(Fr.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 m=this.markerLayerOption.cluster;if(l.getMarkerLayerContainerSize=this.getContainerSize.bind(this),m&&(this.addPoint(l,this.markers.length),this.mapsService)){var A=this.mapsService.getZoom(),j=this.mapsService.getBounds();this.bbox=zd(j,.5),this.zoom=Math.floor(A),this.getClusterMarker(this.bbox,this.zoom)}this.markers.push(l)}},{key:"removeMarker",value:function(l){this.markers.indexOf(l);var m=this.markers.indexOf(l);m>-1&&this.markers.splice(m,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(m){m.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,m){var A=l.getLnglat(),j=A.lng,Y=A.lat,le={geometry:{type:"Point",coordinates:[j,Y]},properties:(0,Ne.Z)((0,Ne.Z)({},l.getExtData()),{},{marker_id:m})};this.points.push(le),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"initCluster",value:function(){if(this.markerLayerOption.cluster){var l=this.markerLayerOption.clusterOption,m=l.radius,A=l.minZoom,j=A===void 0?0:A,Y=l.maxZoom;this.clusterIndex=new(Wg())({radius:m,minZoom:j,maxZoom:Y}),this.clusterIndex.load(this.points)}}},{key:"getClusterMarker",value:function(l,m){var A=this,j=l[0].concat(l[1]),Y=this.clusterIndex.getClusters(j,m);this.clusterMarkers.forEach(function(le){le.remove()}),this.clusterMarkers=[],Y.forEach(function(le){var $e,Ye=A.markerLayerOption.clusterOption,Nt=Ye.field,qt=Ye.method;if(($e=le.properties)!==null&&$e!==void 0&&$e.cluster_id){var jn,Qn=A.getLeaves((jn=le.properties)===null||jn===void 0?void 0:jn.cluster_id);if(le.properties.clusterData=Qn,Nt&&qt){var Ir=Qn==null?void 0:Qn.map(function(va){var Fa=(0,Xn.Z)({},Nt,va.properties[Nt]);return Fa}),ki=Jc(Ir,Nt),jo=vd(qt,ki),Wo="point_"+qt;le.properties[Wo]=jo.toFixed(2)}}var na=A.clusterMarker(le);A.clusterMarkers.push(na),na.addTo(A.scene)})}},{key:"getLeaves",value:function(l){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1/0,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return l?this.clusterIndex.getLeaves(l,m,A):null}},{key:"clusterMarker",value:function(l){var m=this.markerLayerOption.clusterOption,A=m,j=A.element,Y=j===void 0?this.generateElement.bind(this):j,le=new $C({element:Y(l)}).setLnglat({lng:l.geometry.coordinates[0],lat:l.geometry.coordinates[1]});return le}},{key:"normalMarker",value:function(l){var m=l.properties.marker_id;return this.markers[m]}},{key:"update",value:function(){if(this.mapsService&&this.markers.length!==0){var l=this.mapsService.getZoom(),m=this.mapsService.getBounds();(!this.bbox||Math.abs(l-this.zoom)>=1||!Th(this.bbox,m))&&(this.bbox=zd(m,.5),this.zoom=Math.floor(l),this.getClusterMarker(this.bbox,this.zoom))}}},{key:"generateElement",value:function(l){var m=Ps("div","l7-marker-cluster"),A=Ps("div","",m),j=Ps("span","",A),Y=this.markerLayerOption.clusterOption,le=Y.field,$e=Y.method;l.properties.point_count=l.properties.point_count||1;var Ye=le&&$e?l.properties["point_"+$e]||l.properties[le]:l.properties.point_count;return j.textContent=Ye,m}}]),c}(Wu.EventEmitter),AL=_(70458);function b(a){var g=B();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.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 O=function(a){(0,At.Z)(c,a);var g=b(c);function c(u){var l;return(0,Bt.Z)(this,c),l=g.call(this),c.controlCount++,l.controlOption=(0,Ne.Z)((0,Ne.Z)({},l.getDefault(u)),u||{}),l}return(0,lt.Z)(c,[{key:"getOptions",value:function(){return this.controlOption}},{key:"setOptions",value:function(l){var m=this.getDefault(l);Object.entries(l).forEach(function(A){var j=(0,Oi.Z)(A,2),Y=j[0],le=j[1];le===void 0&&(l[Y]=m[Y])}),"position"in l&&this.setPosition(l.position),"className"in l&&this.setClassName(l.className),"style"in l&&this.setStyle(l.style),this.controlOption=(0,Ne.Z)((0,Ne.Z)({},this.controlOption),l)}},{key:"addTo",value:function(l){this.mapsService=l.get(Fr.IMapService),this.renderService=l.get(Fr.IRendererService),this.layerService=l.get(Fr.ILayerService),this.controlService=l.get(Fr.IControlService),this.configService=l.get(Fr.IGlobalConfigService),this.scene=l.get(Fr.ISceneService),this.sceneContainer=l,this.isShow=!0,this.container=this.onAdd(),Za(this.container,"l7-control");var m=this.controlOption,A=m.className,j=m.style;return A&&this.setClassName(A),j&&this.setStyle(j),this.insertContainer(),this.emit("add",this),this}},{key:"remove",value:function(){if(!this.mapsService)return this;Fs(this.container),this.onRemove(),this.emit("remove",this)}},{key:"onAdd",value:function(){return Ps("div")}},{key:"onRemove",value:function(){}},{key:"show",value:function(){var l=this.container;Nu(l,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}},{key:"hide",value:function(){var l=this.container;Za(l,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}},{key:"getDefault",value:function(l){return{position:La.TOPRIGHT,name:"".concat(c.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 m=this.mapsService.getContainer();m!==null&&m.focus()}}},{key:"setPosition",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:La.TOPLEFT,m=this.controlService;return m&&m.removeControl(this),this.controlOption.position=l,m&&m.addControl(this,this.sceneContainer),this}},{key:"setClassName",value:function(l){var m=this.container,A=this.controlOption.className;A&&Nu(m,A),l&&Za(m,l)}},{key:"setStyle",value:function(l){var m=this.container;l?m.setAttribute("style",l):m.removeAttribute("style")}},{key:"insertContainer",value:function(){var l=this.controlOption.position,m=this.container;if(l instanceof Element)l.appendChild(m);else{var A=this.controlService.controlCorners[l];["bottomleft","bottomright","righttop","rightbottom"].includes(l)?A.insertBefore(m,A.firstChild):A.appendChild(m)}}},{key:"checkUpdateOption",value:function(l,m){return m.some(function(A){return A in l})}}]),c}(uh());(0,Xn.Z)(O,"controlCount",0);function se(a){var g=ue();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function ue(){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 tt=function(a){(0,At.Z)(c,a);var g=se(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;A0&&arguments[0]!==void 0?arguments[0]:"";return Ps("button","l7-button-control ".concat(l))}},{key:"onAdd",value:function(){this.button=this.createButton(),this.isDisable=!1;var l=this.controlOption,m=l.title,A=l.btnText,j=l.btnIcon;return this.setBtnTitle(m),this.setBtnText(A),this.setBtnIcon(j),this.button}},{key:"onRemove",value:function(){this.button=this.buttonIcon=this.buttonText=void 0,this.isDisable=!1}},{key:"setOptions",value:function(l){var m=l.title,A=l.btnText,j=l.btnIcon;this.checkUpdateOption(l,["title"])&&this.setBtnTitle(m),this.checkUpdateOption(l,["btnIcon"])&&this.setBtnIcon(j),this.checkUpdateOption(l,["btnText"])&&this.setBtnText(A),zh((0,Tt.Z)(c.prototype),"setOptions",this).call(this,l)}},{key:"setBtnTitle",value:function(l){var m;(m=this.button)===null||m===void 0||m.setAttribute("title",l!=null?l:"")}},{key:"setBtnIcon",value:function(l){if(this.buttonIcon&&Fs(this.buttonIcon),l){var m,A=(m=this.button)===null||m===void 0?void 0:m.firstChild;if(A){var j;(j=this.button)===null||j===void 0||j.insertBefore(l,A)}else{var Y;(Y=this.button)===null||Y===void 0||Y.appendChild(l)}this.buttonIcon=l}}},{key:"setBtnText",value:function(l){if(this.button)if(Nu(this.button,"l7-button-control--row"),Nu(this.button,"l7-button-control--column"),l){var m=this.buttonText;if(!m){var A;m=Ps("div","l7-button-control__text"),(A=this.button)===null||A===void 0||A.appendChild(m),this.buttonText=m}m.innerText=l,Za(this.button,this.controlOption.vertical?"l7-button-control--column":"l7-button-control--row")}else!l&&this.buttonText&&(Fs(this.buttonText),this.buttonText=void 0)}}]),c}(O);function ht(a){var g=Lt();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function Lt(){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 Cn=function(a){(0,At.Z)(c,a);var g=ht(c);function c(u,l){var m;return(0,Bt.Z)(this,c),m=g.call(this),(0,Xn.Z)((0,ps.Z)(m),"isShow",!1),(0,Xn.Z)((0,ps.Z)(m),"timeout",null),(0,Xn.Z)((0,ps.Z)(m),"show",function(){return m.isShow||!m.contentDOM.innerHTML||(m.resetPopperPosition(),Nu(m.popperDOM,"l7-popper-hide"),m.isShow=!0,m.option.unique&&c.conflictPopperList.forEach(function(A){A!==(0,ps.Z)(m)&&A.isShow&&A.hide()}),m.emit("show"),window.addEventListener("pointerdown",m.onPopperUnClick)),(0,ps.Z)(m)}),(0,Xn.Z)((0,ps.Z)(m),"hide",function(){return m.isShow&&(Za(m.popperDOM,"l7-popper-hide"),m.isShow=!1,m.emit("hide"),window.removeEventListener("pointerdown",m.onPopperUnClick)),(0,ps.Z)(m)}),(0,Xn.Z)((0,ps.Z)(m),"setHideTimeout",function(){m.timeout||(m.timeout=window.setTimeout(function(){m.isShow&&(m.hide(),m.timeout=null)},300))}),(0,Xn.Z)((0,ps.Z)(m),"clearHideTimeout",function(){m.timeout&&(window.clearTimeout(m.timeout),m.timeout=null)}),(0,Xn.Z)((0,ps.Z)(m),"onBtnClick",function(){m.isShow?m.hide():m.show()}),(0,Xn.Z)((0,ps.Z)(m),"onPopperUnClick",function(A){ju(A.target,[".l7-button-control",".l7-popper-content"])||m.hide()}),(0,Xn.Z)((0,ps.Z)(m),"onBtnMouseLeave",function(){m.setHideTimeout()}),(0,Xn.Z)((0,ps.Z)(m),"onBtnMouseMove",function(){m.clearHideTimeout(),!m.isShow&&m.show()}),m.button=u,m.option=l,m.init(),l.unique&&c.conflictPopperList.push((0,ps.Z)(m)),m}return(0,lt.Z)(c,[{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&&(rl(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),Fs(this.popperDOM)}},{key:"resetPopperPosition",value:function(){var l={},m=this.option,A=m.container,j=m.offset,Y=j===void 0?[0,0]:j,le=m.placement,$e=(0,Oi.Z)(Y,2),Ye=$e[0],Nt=$e[1],qt=this.button.getBoundingClientRect(),jn=A.getBoundingClientRect(),Qn=Ma(qt,jn),Ir=Qn.left,ki=Qn.right,jo=Qn.top,Wo=Qn.bottom,na=!1,va=!1;/^(left|right)/.test(le)?(le.includes("left")?l.right="".concat(qt.width+ki,"px"):le.includes("right")&&(l.left="".concat(qt.width+Ir,"px")),le.includes("start")?l.top="".concat(jo,"px"):le.includes("end")?l.bottom="".concat(Wo,"px"):(l.top="".concat(jo+qt.height/2,"px"),va=!0,l.transform="translate(".concat(Ye,"px, calc(").concat(Nt,"px - 50%))"))):/^(top|bottom)/.test(le)&&(le.includes("top")?l.bottom="".concat(qt.height+Wo,"px"):le.includes("bottom")&&(l.top="".concat(qt.height+jo,"px")),le.includes("start")?l.left="".concat(Ir,"px"):le.includes("end")?l.right="".concat(ki,"px"):(l.left="".concat(Ir+qt.width/2,"px"),na=!0,l.transform="translate(calc(".concat(Ye,"px - 50%), ").concat(Nt,"px)"))),l.transform="translate(calc(".concat(Ye,"px - ").concat(na?"50%":"0%","), calc(").concat(Nt,"px - ").concat(va?"50%":"0%",")");var Fa=le.split("-");Fa.length&&Za(this.popperDOM,Fa.map(function(vl){return"l7-popper-".concat(vl)}).join(" ")),Qi(this.popperDOM,Ks(l))}},{key:"createPopper",value:function(){var l=this.option,m=l.container,A=l.className,j=A===void 0?"":A,Y=l.content,le=Ps("div","l7-popper l7-popper-hide ".concat(j)),$e=Ps("div","l7-popper-content"),Ye=Ps("div","l7-popper-arrow");return le.appendChild($e),le.appendChild(Ye),m.appendChild(le),this.popperDOM=le,this.contentDOM=$e,Y&&this.setContent(Y),le}}]),c}(Wu.EventEmitter);(0,Xn.Z)(Cn,"conflictPopperList",[]);function sr(a){var g=hr();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function hr(){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 Ri={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"},uo=function(a){(0,At.Z)(c,a);var g=sr(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"getPopper",value:function(){return this.popper}},{key:"hide",value:function(){this.popper.hide(),zh((0,Tt.Z)(c.prototype),"hide",this).call(this)}},{key:"getDefault",value:function(l){var m,A=zh((0,Tt.Z)(c.prototype),"getDefault",this).call(this,l),j=(m=l==null?void 0:l.position)!==null&&m!==void 0?m:A.position;return(0,Ne.Z)((0,Ne.Z)({},zh((0,Tt.Z)(c.prototype),"getDefault",this).call(this,l)),{},{popperPlacement:j instanceof Element?"bottom":Ri[j],popperTrigger:"click"})}},{key:"onAdd",value:function(){var l=zh((0,Tt.Z)(c.prototype),"onAdd",this).call(this);return this.initPopper(),l}},{key:"onRemove",value:function(){this.popper.destroy()}},{key:"initPopper",value:function(){var l=this,m=this.controlOption,A=m.popperClassName,j=m.popperPlacement,Y=m.popperTrigger,le=this.mapsService.getMapContainer();return this.popper=new Cn(this.button,{className:A,placement:j,trigger:Y,container:le,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(zh((0,Tt.Z)(c.prototype),"setOptions",this).call(this,l),this.checkUpdateOption(l,["popperPlacement","popperTrigger","popperClassName"])){var m=this.popper.getContent();this.popper.destroy(),this.initPopper(),this.popper.setContent(m)}}}]),c}(tt);function $o(a){var g=is();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function is(){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 oi=function(a){return a.ActiveOptionClassName="l7-select-control-item-active",a.OptionValueAttrKey="data-option-value",a.OptionIndexAttrKey="data-option-index",a}(oi||{}),bs=function(a){(0,At.Z)(c,a);var g=$o(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;A-1?u.selectValue.splice(Y,1):u.selectValue=[].concat((0,or.Z)(u.selectValue),[j.value])}else u.selectValue=[j.value];u.setSelectValue(u.selectValue)}),u}return(0,lt.Z)(c,[{key:"setOptions",value:function(l){zh((0,Tt.Z)(c.prototype),"setOptions",this).call(this,l);var m=l.options;m&&this.popper.setContent(this.getPopperContent(m))}},{key:"onAdd",value:function(){var l=zh((0,Tt.Z)(c.prototype),"onAdd",this).call(this),m=this.controlOption.defaultValue;return m&&(this.selectValue=this.transSelectValue(m)),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 m=this,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,j=this.transSelectValue(l);this.optionDOMList.forEach(function(Y){var le=Y.getAttribute(oi.OptionValueAttrKey),$e=m.getIsMultiple()?Y.querySelector("input[type=checkbox]"):void 0;j.includes(le)?(Za(Y,oi.ActiveOptionClassName),$e&&qa($e,!0)):(Nu(Y,oi.ActiveOptionClassName),$e&&qa($e,!1))}),this.selectValue=j,A&&this.emit("selectChange",this.getIsMultiple()?j:j[0])}},{key:"getIsMultiple",value:function(){return!1}},{key:"getPopperContent",value:function(l){var m=this,A=this.isImageOptions(),j=Ps("div",A?"l7-select-control--image":"l7-select-control--normal");this.getIsMultiple()&&Za(j,"l7-select-control--multiple");var Y=l.map(function(le,$e){var Ye=A?m.createImageOption(le):m.createNormalOption(le);return Ye.setAttribute(oi.OptionValueAttrKey,le.value),Ye.setAttribute(oi.OptionIndexAttrKey,window.String($e)),Ye.addEventListener("click",m.onItemClick.bind(m,le)),Ye});return j.append.apply(j,(0,or.Z)(Y)),this.optionDOMList=Y,j}},{key:"createImageOption",value:function(l){var m=this.selectValue.includes(l.value),A=Ps("div","l7-select-control-item ".concat(m?oi.ActiveOptionClassName:"")),j=Ps("img");j.setAttribute("src",l.img),Dl(j),A.appendChild(j);var Y=Ps("div","l7-select-control-item-row");this.getIsMultiple()&&A.appendChild(this.createCheckbox(m));var le=Ps("span");return le.innerText=l.text,Y.appendChild(le),A.appendChild(Y),A}},{key:"createCheckbox",value:function(l){var m=Ps("input");return m.setAttribute("type","checkbox"),l&&qa(m,!0),m}},{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]}}]),c}(uo),Ua=function(g){var c=document.createElementNS("http://www.w3.org/2000/svg","svg");c.classList.add("l7-iconfont"),c.setAttribute("aria-hidden","true");var u=document.createElementNS("http://www.w3.org/2000/svg","use");return u.setAttributeNS("http://www.w3.org/1999/xlink","href","#".concat(g)),c.appendChild(u),c};function hl(a){var g=Da();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function Da(){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 Xu=function(a){(0,At.Z)(c,a);var g=hl(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;A=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function $u(a,g){if(a){if(typeof a=="string")return Sl(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Sl(a,g)}}function Sl(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);c0&&arguments[0]!==void 0?arguments[0]:document.documentElement,c=arguments.length>1?arguments[1]:void 0;return new Promise(function(u,l){var m=function j(){ac.off("change",j),u()};ac.on("change",m);var A=g[Mu.requestFullscreen](c);A instanceof Promise&&A.then(m).catch(l)})},exit:function(){return new Promise(function(g,c){if(!ac.isFullscreen){g();return}var u=function m(){ac.off("change",m),g()};ac.on("change",u);var l=document[Mu.exitFullscreen]();l instanceof Promise&&l.then(u).catch(c)})},toggle:function(g,c){return ac.isFullscreen?ac.exit():ac.request(g,c)},onchange:function(g){ac.on("change",g)},onerror:function(g){ac.on("error",g)},on:function(g,c){var u=Gc[g];u&&document.addEventListener(u,c,!1)},off:function(g,c){var u=Gc[g];u&&document.removeEventListener(u,c,!1)},raw:Mu};Object.defineProperties(ac,{isFullscreen:{get:function(){return!!document[Mu.fullscreenElement]}},element:{enumerable:!0,get:function(){var g;return(g=document[Mu.fullscreenElement])!==null&&g!==void 0?g:void 0}},isEnabled:{enumerable:!0,get:function(){return!!document[Mu.fullscreenEnabled]}}}),Mu||(ac={isEnabled:!1});var rc=ac;function vf(a){var g=rp();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function rp(){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 af=function(a){(0,At.Z)(c,a);var g=vf(c);function c(u){var l;return(0,Bt.Z)(this,c),l=g.call(this,u),(0,Xn.Z)((0,ps.Z)(l),"isFullscreen",!1),(0,Xn.Z)((0,ps.Z)(l),"toggleFullscreen",(0,pl.Z)(Zi().mark(function m(){return Zi().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(!rc.isEnabled){j.next=3;break}return j.next=3,rc.toggle(l.mapContainer);case 3:case"end":return j.stop()}},m)}))),(0,Xn.Z)((0,ps.Z)(l),"onClick",function(){l.toggleFullscreen()}),(0,Xn.Z)((0,ps.Z)(l),"onFullscreenChange",function(){l.isFullscreen=!!document.fullscreenElement;var m=l.controlOption,A=m.btnText,j=m.btnIcon,Y=m.title,le=m.exitBtnText,$e=m.exitBtnIcon,Ye=m.exitTitle;l.isFullscreen?(l.setBtnTitle(Ye),l.setBtnText(le),l.setBtnIcon($e)):(l.setBtnTitle(Y),l.setBtnText(A),l.setBtnIcon(j)),l.emit("fullscreenChange",l.isFullscreen)}),rc.isEnabled||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u5BF9\u5730\u56FE\u5168\u5C4F\u5316"),l}return(0,lt.Z)(c,[{key:"setOptions",value:function(l){var m=l.exitBtnText,A=l.exitBtnIcon,j=l.exitTitle;this.isFullscreen&&(this.checkUpdateOption(l,["exitBtnIcon"])&&this.setBtnIcon(A),this.checkUpdateOption(l,["exitBtnText"])&&this.setBtnText(m),this.checkUpdateOption(l,["exitTitle"])&&this.setBtnTitle(j)),zh((0,Tt.Z)(c.prototype),"setOptions",this).call(this,l)}},{key:"onAdd",value:function(){var l=zh((0,Tt.Z)(c.prototype),"onAdd",this).call(this);return l.addEventListener("click",this.onClick),this.mapContainer=gl(this.scene.getSceneConfig().id),this.mapContainer.addEventListener("fullscreenchange",this.onFullscreenChange),l}},{key:"onRemove",value:function(){zh((0,Tt.Z)(c.prototype),"onRemove",this).call(this),this.mapContainer.removeEventListener("fullscreenchange",this.onFullscreenChange)}},{key:"getDefault",value:function(l){return(0,Ne.Z)((0,Ne.Z)({},zh((0,Tt.Z)(c.prototype),"getDefault",this).call(this,l)),{},{title:"\u5168\u5C4F",btnIcon:Ua("l7-icon-fullscreen"),exitTitle:"\u9000\u51FA\u5168\u5C4F",exitBtnIcon:Ua("l7-icon-exit-fullscreen")})}}]),c}(tt);function Lp(a){var g=fp();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function fp(){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 Lm=function(a){(0,At.Z)(c,a);var g=Lp(c);function c(u){var l;return(0,Bt.Z)(this,c),l=g.call(this,u),(0,Xn.Z)((0,ps.Z)(l),"getGeoLocation",function(){return new Promise(function(m,A){window.navigator.geolocation.getCurrentPosition(function(j){var Y=j.coords,le=Y!=null?Y:{},$e=le.longitude,Ye=le.latitude;!isNaN($e)&&!isNaN(Ye)?m([$e,Ye]):A()},function(j){A(j)})})}),(0,Xn.Z)((0,ps.Z)(l),"onClick",(0,pl.Z)(Zi().mark(function m(){var A,j,Y;return Zi().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(window.navigator.geolocation){$e.next=2;break}return $e.abrupt("return");case 2:return A=l.controlOption.transform,$e.next=5,l.getGeoLocation();case 5:if(j=$e.sent,Y=l.mapsService.getZoom(),$e.t0=l.mapsService,$e.t1=Y>15?Y:15,!A){$e.next=15;break}return $e.next=12,A(j);case 12:$e.t2=$e.sent,$e.next=16;break;case 15:$e.t2=j;case 16:$e.t3=$e.t2,$e.t0.setZoomAndCenter.call($e.t0,$e.t1,$e.t3);case 18:case"end":return $e.stop()}},m)}))),window.navigator.geolocation||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u83B7\u53D6\u5730\u7406\u5B9A\u4F4D"),l}return(0,lt.Z)(c,[{key:"getDefault",value:function(l){return(0,Ne.Z)((0,Ne.Z)({},zh((0,Tt.Z)(c.prototype),"getDefault",this).call(this,l)),{},{title:"\u5B9A\u4F4D",btnIcon:Ua("l7-icon-reposition")})}},{key:"onAdd",value:function(){var l=zh((0,Tt.Z)(c.prototype),"onAdd",this).call(this);return l.addEventListener("click",this.onClick),l}}]),c}(tt);function Nf(a){var g=Wp();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function Wp(){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 $h(a){return a&&a.layer}var Jl=function(a){(0,At.Z)(c,a);var g=Nf(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;A=10?10:A>=5?5:A>=3?3:A>=2?2:1,m*A}},{key:"updateMetric",value:function(l){var m=this.getRoundNum(l),A=m<1e3?m+" m":m/1e3+" km";this.updateScale(this.mScale,A,m/l)}},{key:"updateImperial",value:function(l){var m=l*3.2808399,A,j,Y;m>5280?(A=m/5280,j=this.getRoundNum(A),this.updateScale(this.iScale,j+" mi",j/A)):(Y=this.getRoundNum(m),this.updateScale(this.iScale,Y+" ft",Y/m))}}]),c}(O);function oh(a){var g=ig();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function ig(){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,At.Z)(c,a);var g=oh(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;Au.mapsService.getMinZoom()&&u.mapsService.zoomOut()}),(0,Xn.Z)((0,ps.Z)(u),"updateDisabled",function(){var j=u.mapsService;u.zoomInButton.removeAttribute("disabled"),u.zoomOutButton.removeAttribute("disabled"),(u.disabled||j.getZoom()<=j.getMinZoom())&&u.zoomOutButton.setAttribute("disabled","true"),u.controlOption.showZoom&&u.zoomNumDiv&&(u.zoomNumDiv.innerText=String(Math.floor(j.getZoom()))),(u.disabled||j.getZoom()>=j.getMaxZoom())&&u.zoomInButton.setAttribute("disabled","true")}),u}return(0,lt.Z)(c,[{key:"getDefault",value:function(l){return(0,Ne.Z)((0,Ne.Z)({},zh((0,Tt.Z)(c.prototype),"getDefault",this).call(this,l)),{},{position:La.BOTTOMRIGHT,name:"zoom",zoomInText:Ua("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:Ua("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}},{key:"setOptions",value:function(l){zh((0,Tt.Z)(c.prototype),"setOptions",this).call(this,l),this.checkUpdateOption(l,["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","showZoom"])&&this.resetButtonGroup(this.container)}},{key:"onAdd",value:function(){var l=Ps("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){rl(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,m,A,j,Y){var le=Ps("button",A,j);return typeof l=="string"?le.innerHTML=l:le.append(l),le.title=m,Y&&le.addEventListener("click",Y),le}}]),c}(O);function Wm(a){var g=I0();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.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 Pm=function(a){(0,At.Z)(c,a);var g=Wm(c);function c(u){var l;(0,Bt.Z)(this,c),l=g.call(this),(0,Xn.Z)((0,ps.Z)(l),"isShow",!0),(0,Xn.Z)((0,ps.Z)(l),"onMouseMove",function(A){var j,Y=l.mapsService.getMapContainer(),le=(j=Y==null?void 0:Y.getBoundingClientRect())!==null&&j!==void 0?j:{},$e=le.left,Ye=$e===void 0?0:$e,Nt=le.top,qt=Nt===void 0?0:Nt;l.setPopupPosition(A.clientX-Ye,A.clientY-qt)}),(0,Xn.Z)((0,ps.Z)(l),"updateLngLatPosition",function(){if(!(!l.mapsService||l.popupOption.followCursor)){var A=l.lngLat,j=A.lng,Y=A.lat,le=l.mapsService.lngLatToContainer([j,Y]),$e=le.x,Ye=le.y;l.setPopupPosition($e,Ye)}}),(0,Xn.Z)((0,ps.Z)(l),"onKeyDown",function(A){A.keyCode===27&&l.remove()}),(0,Xn.Z)((0,ps.Z)(l),"onCloseButtonClick",function(A){A.stopPropagation&&A.stopPropagation(),l.hide()}),(0,Xn.Z)((0,ps.Z)(l),"update",function(){var A=!!l.lngLat,j=l.popupOption,Y=j.className,le=j.style,$e=j.maxWidth,Ye=j.anchor,Nt=j.stopPropagation;if(!(!l.mapsService||!A||!l.content)){var qt=l.mapsService.getMarkerContainer();if(!l.container&&qt&&(l.container=Ps("div","l7-popup ".concat(Y!=null?Y:""," ").concat(l.isShow?"":"l7-popup-hide"),qt),le&&l.container.setAttribute("style",le),l.tip=Ps("div","l7-popup-tip",l.container),l.container.appendChild(l.content),Nt&&["mousemove","mousedown","mouseup","click","dblclick"].forEach(function(Ir){l.container.addEventListener(Ir,function(ki){ki.stopPropagation()})}),l.container.style.whiteSpace="nowrap"),l.updateLngLatPosition(),Pn(l.container,"".concat(Mt[Ye])),Qt(l.container,Ye,"popup"),$e){var jn=l.container.getBoundingClientRect(),Qn=jn.width;Qn>parseFloat($e)&&(l.container.style.width=$e)}else l.container.style.removeProperty("width")}}),l.popupOption=(0,Ne.Z)((0,Ne.Z)({},l.getDefault(u!=null?u:{})),u);var m=l.popupOption.lngLat;return m&&(l.lngLat=m),l}return(0,lt.Z)(c,[{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(Fr.IMapService),this.sceneService=l.get(Fr.ISceneService),this.layerService=l.get(Fr.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 m=this.popupOption,A=m.html,j=m.text,Y=m.title;return A?this.setHTML(A):j&&this.setText(j),Y&&this.setTitle(Y),this.emit("open"),this}},{key:"remove",value:function(){if(this!==null&&this!==void 0&&this.isOpen())return this.content&&Fs(this.content),this.container&&(Fs(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,Ne.Z)((0,Ne.Z)({},this.popupOption),l),this.checkUpdateOption(l,["html","text","title","closeButton","closeButtonOffsets","maxWidth","anchor","stopPropagation","className","style","lngLat","offsets"])&&(this.container&&(Fs(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&&Nu(this.container,"l7-popup-hide"),this.isShow=!0,this.emit("show"),this}},{key:"hide",value:function(){if(this.isShow)return this.container&&Za(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=Ps("div","l7-popup-content__title"),this.content.firstChild?this.content.insertBefore(this.contentTitle,this.content.firstChild):this.content.append(this.contentTitle)),rl(this.contentTitle),Oa(this.contentTitle,l)):this.contentTitle&&(Fs(this.contentTitle),this.contentTitle=void 0)}},{key:"panToPopup",value:function(){var l=this.lngLat,m=l.lng,A=l.lat;return this.popupOption.autoPan&&this.mapsService.panTo([m,A]),this}},{key:"setLngLat",value:function(l){return this.setLnglat(l)}},{key:"setLnglat",value:function(l){var m=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(){m.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:Jt.BOTTOM,stopPropagation:!0,autoPan:!1,autoClose:!0,closeOnEsc:!1,followCursor:!1}}},{key:"setDOMContent",value:function(l){return this.show(),this.createContent(),Oa(this.contentPanel,l),this.update(),this}},{key:"updateCloseOnClick",value:function(l){var m=this,A=this.mapsService;A&&(A==null||A.off("click",this.onCloseButtonClick),this.popupOption.closeOnClick&&!l&&requestAnimationFrame(function(){A==null||A.on("click",m.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 m,A=(m=this.mapsService)===null||m===void 0?void 0:m.getContainer();A&&(A==null||A.removeEventListener("mousemove",this.onMouseMove),this.popupOption.followCursor&&!l&&(A==null||A.addEventListener("mousemove",this.onMouseMove)))}},{key:"createContent",value:function(){var l=this;if(this.content&&Fs(this.content),this.contentTitle=void 0,this.content=Ps("div","l7-popup-content",this.container),this.setTitle(this.popupOption.title),this.popupOption.closeButton){var m=Ua("l7-icon-guanbi");Za(m,"l7-popup-close-button"),this.content.appendChild(m),this.popupOption.closeButtonOffsets&&(m.style.right=this.popupOption.closeButtonOffsets[0]+"px",m.style.top=this.popupOption.closeButtonOffsets[1]+"px"),m.setAttribute("aria-label","Close popup"),m.addEventListener("click",function(){l.hide()}),m.addEventListener("pointerup",function(A){A.stopPropagation()}),m.addEventListener("pointerdown",function(A){A.stopPropagation()}),this.closeButton=m}else this.closeButton=void 0;this.contentPanel=Ps("div","l7-popup-content__panel",this.content)}},{key:"setPopupPosition",value:function(l,m){if(this.container){var A=this.popupOption.offsets;this.container.style.left=l+A[0]+"px",this.container.style.top=m-A[1]+"px"}}},{key:"checkUpdateOption",value:function(l,m){return m.some(function(A){return A in l})}}]),c}(Wu.EventEmitter);function av(a){var g=Zm();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function Zm(){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 P1=Js.get,k1=function(a){(0,At.Z)(c,a);var g=av(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;A0&&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 An=Rv(Mt,ee);Mt.needRemapping=!1,Mt.name==="color"&&(An=An.map(function(Mn){return Qr(Mn)})),Pe[Mt.name]=Array.isArray(An)&&An.length===1?An[0]:An,Mt.name==="shape"&&(Pe.shape=u.getIconFontKey(Pe[Mt.name]))}),Pe.shape==="line"&&B.enable){var Ze=Pe.coordinates,Et=r_(Ze[0],Ze[1]);Pe.coordinates.splice(1,0,Et,Et)}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,Xn.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,Ct.Z)(this,a),this.layer=p}return(0,He.Z)(a,[{key:"pickRender",value:function(u){var c=this.layer.getContainer(),l=c.get(vr.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(vr.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(vr.IPickingService),B=g.get(vr.IMapService),Z=this.layer.getSource().extent,ee=ml(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 Et=this.readRasterValue(u,Z,B,c.x,c.y);return Pe.rasterValue=Et,T.triggerHoverOnLayer(Ze,Pe),!0}else return Pe.type=c.type==="mousemove"?"mouseout":"un"+c.type,T.triggerHoverOnLayer(Ze,(0,Se.Z)((0,Se.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,Xn.Z)(c,4),ee=Z[0],Pe=ee===void 0?0:ee,Ze=Z[1],Et=Ze===void 0?0:Ze,Mt=Z[2],An=Mt===void 0?10:Mt,Mn=Z[3],br=Mn===void 0?-10:Mn,Li=l.lngLatToContainer([Pe,Et]),Zo=l.lngLatToContainer([An,br]),Go=Zo.x-Li.x,Qs=Li.y-Zo.y,aa=[(g-Li.x)/Go,(T-Zo.y)/Qs],Oa=B.width||1,yl=B.height||1,Wl=Math.floor(aa[0]*Oa),Jl=Math.floor(aa[1]*yl),ju=Math.max(0,Jl-1)*Oa+Wl,Ku=B.data[ju];return Ku}},{key:"selectFeature",value:function(u){var c=this.layer,l=(0,Xn.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,Xn.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,Ct.Z)(this,a),this.layer=p;var u=this.layer.getContainer();this.rendererService=u.get(vr.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 Ei(u);case"custom":return Ln(u,c);case"linear":return tn(u,c);default:return Ir(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,Ct.Z)(this,u),c=p.call(this),(0,Cn.Z)((0,cs.Z)(c),"id","".concat(Ms++)),(0,Cn.Z)((0,cs.Z)(c),"name","".concat(Ms)),(0,Cn.Z)((0,cs.Z)(c),"visible",!0),(0,Cn.Z)((0,cs.Z)(c),"zIndex",0),(0,Cn.Z)((0,cs.Z)(c),"inited",!1),(0,Cn.Z)((0,cs.Z)(c),"layerModelNeedUpdate",!1),(0,Cn.Z)((0,cs.Z)(c),"pickedFeatureID",null),(0,Cn.Z)((0,cs.Z)(c),"selectedFeatureID",null),(0,Cn.Z)((0,cs.Z)(c),"styleNeedUpdate",!1),(0,Cn.Z)((0,cs.Z)(c),"forceRender",!1),(0,Cn.Z)((0,cs.Z)(c),"clusterZoom",0),(0,Cn.Z)((0,cs.Z)(c),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),(0,Cn.Z)((0,cs.Z)(c),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,Cn.Z)((0,cs.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,Cn.Z)((0,cs.Z)(c),"models",[]),(0,Cn.Z)((0,cs.Z)(c),"startInit",!1),(0,Cn.Z)((0,cs.Z)(c),"layerChildren",[]),(0,Cn.Z)((0,cs.Z)(c),"masks",[]),Fd((0,cs.Z)(c),"configService",Vb,(0,cs.Z)(c)),(0,Cn.Z)((0,cs.Z)(c),"animateOptions",{enable:!1}),(0,Cn.Z)((0,cs.Z)(c),"currentPickId",null),(0,Cn.Z)((0,cs.Z)(c),"encodeStyleAttribute",{}),(0,Cn.Z)((0,cs.Z)(c),"enableShaderEncodeStyles",[]),(0,Cn.Z)((0,cs.Z)(c),"enableDataEncodeStyles",[]),(0,Cn.Z)((0,cs.Z)(c),"enablg",[]),(0,Cn.Z)((0,cs.Z)(c),"pendingStyleAttributes",[]),(0,Cn.Z)((0,cs.Z)(c),"scaleOptions",{}),(0,Cn.Z)((0,cs.Z)(c),"animateStatus",!1),(0,Cn.Z)((0,cs.Z)(c),"isDestroyed",!1),(0,Cn.Z)((0,cs.Z)(c),"encodeDataLength",0),(0,Cn.Z)((0,cs.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,Se.Z)((0,Se.Z)({},this.needUpdateConfig),l);else{var T=this.container.get(vr.SceneID);this.configService.setLayerConfig(T,this.id,(0,Se.Z)((0,Se.Z)((0,Se.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,Ra.Z)(no().mark(function g(){var T=this,B,Z,ee,Pe,Ze,Et,Mt;return no().wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:B=this.container.get(vr.SceneID),this.startInit=!0,this.configService.setLayerConfig(B,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(vr.IIconService),this.fontService=this.container.get(vr.IFontService),this.rendererService=this.container.get(vr.IRendererService),this.layerService=this.container.get(vr.ILayerService),this.debugService=this.container.get(vr.IDebugService),this.interactionService=this.container.get(vr.IInteractionService),this.pickingService=this.container.get(vr.IPickingService),this.mapService=this.container.get(vr.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(vr.ICameraService),this.coordinateService=this.container.get(vr.ICoordinateSystemService),this.shaderModuleService=this.container.get(vr.IShaderModuleService),this.postProcessingPassFactory=this.container.get(vr.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(vr.IFactoryNormalPass),this.styleAttributeService=this.container.get(vr.IStyleAttributeService),ee&&(this.multiPassRenderer=this.container.get(vr.IMultiPassRenderer),this.multiPassRenderer.setLayer(this)),this.pendingStyleAttributes.forEach(function(br){var Li=br.attributeName,Zo=br.attributeField,Go=br.attributeValues,Qs=br.updateOptions;T.styleAttributeService.updateStyleAttribute(Li,{scale:(0,Se.Z)({field:Zo},T.splitValuesAndCallbackInAttribute(Go,Zo?void 0:T.getLayerConfig()[Li]))},Qs)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(vr.ILayerPlugin),Ze=yE(this.plugins);try{for(Ze.s();!(Et=Ze.n()).done;)Mt=Et.value,Mt.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch(br){Ze.e(br)}finally{Ze.f()}return this.layerPickService=new qL(this),this.textureService=new JL(this),this.log(pm.LayerInitStart),Mn.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 Mn.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,Se.Z)((0,Se.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,Rr.Z)(g.enableShaderEncodeStyles),(0,Rr.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,Se.Z)({},this.scaleOptions);if(T1(l)?this.scaleOptions=(0,Se.Z)((0,Se.Z)({},this.scaleOptions),l):this.scaleOptions[l]=g,this.styleAttributeService&&!k3(T,this.scaleOptions)){var B=T1(l)?l:(0,Cn.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,Ra.Z)(no().mark(function g(){return no().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(Zi(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(Zi(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,Cn.Z)({value:g.invertExtent(ee)},l,ee)});return T}else if(g.ticks){var B=g.ticks().map(function(ee){return(0,Cn.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,Cn.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,Ra.Z)(no().mark(function g(T){var B=this,Z,ee,Pe,Ze,Et,Mt,An,Mn,br,Li,Zo,Go;return no().wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:return Z=T.moduleName,ee=T.vertexShader,Pe=T.fragmentShader,Ze=T.inject,Et=T.triangulation,Mt=T.segmentNumber,An=(0,Ug.Z)(T,gM),this.shaderModuleService.registerModule(Z,{vs:ee,fs:Pe,inject:Ze}),Mn=this.shaderModuleService.getModule(Z),br=Mn.vs,Li=Mn.fs,Zo=Mn.uniforms,Go=this.rendererService.createModel,aa.abrupt("return",new Promise(function(Oa){var yl=B.styleAttributeService.createAttributesAndIndices(B.encodedData,Et,Mt),Wl=yl.attributes,Jl=yl.elements,ju=yl.count,Ku=(0,Se.Z)({attributes:Wl,uniforms:Zo,fs:Li,vs:br,elements:Jl,blend:d1[Nh.normal]},An);ju&&(Ku.count=ju);var Jc=Go(Ku);Oa(Jc)}));case 5:case"end":return aa.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,Ra.Z)(no().mark(function g(){return no().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,Ra.Z)(no().mark(function g(){return no().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,Ra.Z)(no().mark(function g(T){return no().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,Cn.Z)({},l,{field:g,values:T})),this.startInit?this.styleAttributeService.updateStyleAttribute(l,{scale:(0,Se.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,Ra.Z)(no().mark(function g(){return no().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 La(a,p){return{enable:a,mask:255,func:{cmp:qi.EQUAL,ref:p?1:0,mask:1}}}function Ha(a){return a.maskOperation===es.OR?{enable:!0,mask:255,func:{cmp:qi.ALWAYS,ref:1,mask:255},opFront:{fail:qi.KEEP,zfail:qi.REPLACE,zpass:qi.REPLACE}}:{enable:!0,mask:255,func:{cmp:a.stencilType===nf.SINGLE||a.stencilIndex===0?qi.ALWAYS:qi.LESS,ref:a.stencilType===nf.SINGLE?1:a.stencilIndex===0?2:1,mask:255},opFront:{fail:qi.KEEP,zfail:qi.REPLACE,zpass:qi.REPLACE}}}function hl(a){switch(a){case"rotation":return{name:"Rotation",type:Ld.Attribute,descriptor:{name:"a_Rotation",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.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:qi.DYNAMIC_DRAW,data:[],type:qi.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:qi.STATIC_DRAW,data:[],type:qi.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:qi.STATIC_DRAW,data:[],type:qi.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:qi.STATIC_DRAW,data:[],type:qi.FLOAT},size:2,update:function(u){var c=u.offsets;return c}}};default:return}}var fl,gc,qc,Su=(fl=Cw(vr.IGlobalConfigService),gc=function(){function a(p){(0,Ct.Z)(this,a),(0,Cn.Z)(this,"preStyleAttribute",{}),(0,Cn.Z)(this,"encodeStyleAttribute",{}),Fd(this,"configService",qc,this),this.layer=p,this.rendererService=p.getContainer().get(vr.IRendererService),this.pickingService=p.getContainer().get(vr.IPickingService),this.shaderModuleService=p.getContainer().get(vr.IShaderModuleService),this.styleAttributeService=p.getContainer().get(vr.IStyleAttributeService),this.mapService=p.getContainer().get(vr.IMapService),this.iconService=p.getContainer().get(vr.IIconService),this.fontService=p.getContainer().get(vr.IFontService),this.cameraService=p.getContainer().get(vr.ICameraService),this.layerService=p.getContainer().get(vr.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?es.AND:ee;if(this.layer.type==="MaskLayer")return Ha({isStencil:!0,stencilType:nf.SINGLE});if(u.isStencil)return Ha((0,Se.Z)((0,Se.Z)({},u),{},{maskOperation:Pe}));var Ze=g||Z&&this.layer.masks.length!==0||this.layer.tileMask!==void 0;return La(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,Ra.Z)(no().mark(function c(){return no().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,Ra.Z)(no().mark(function c(){return no().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,Ra.Z)(no().mark(function c(){return no().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 vv,Zy=(vv={},(0,Xn.Z)(vv,es.additive,{enable:!0,func:{srcRGB:ho.ONE,dstRGB:ho.ONE,srcAlpha:1,dstAlpha:1}}),(0,Xn.Z)(vv,es.none,{enable:!1}),(0,Xn.Z)(vv,es.normal,{enable:!0,func:{srcRGB:ho.SRC_ALPHA,dstRGB:ho.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}}),(0,Xn.Z)(vv,es.subtractive,{enable:!0,func:{srcRGB:ho.ONE,dstRGB:ho.ONE,srcAlpha:ho.ZERO,dstAlpha:ho.ONE_MINUS_SRC_COLOR},equation:{rgb:ho.FUNC_SUBTRACT,alpha:ho.FUNC_SUBTRACT}}),(0,Xn.Z)(vv,es.max,{enable:!0,func:{srcRGB:ho.ONE,dstRGB:ho.ONE},equation:{rgb:ho.MAX_EXT}}),(0,Xn.Z)(vv,es.min,{enable:!0,func:{srcRGB:ho.ONE,dstRGB:ho.ONE},equation:{rgb:ho.MIN_EXT}}),vv),Zp=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}({}),Gv=Js.cloneDeep;function Z_(a,g){var c=[g[0]-a[0],g[1]-a[1]],u=Mf(c),l=[a[0]+u[0]*1e-4,a[1]+u[1]*1e-4];return l}function t1(a,g,c){if(a.length>0&&g.version===Zp["GAODE2.x"]){var u=c.coordCenter;typeof a[0].coordinates[0]=="number"?a.filter(function(l){return!l.originCoordinates}).map(function(l){l.version=Zp["GAODE2.x"],l.originCoordinates=Gv(l.coordinates),l.coordinates=g.coordToAMap2RelativeCoordinates(l.coordinates,u)}):a.filter(function(l){return!l.originCoordinates}).map(function(l){l.version=Zp["GAODE2.x"],l.originCoordinates=Gv(l.coordinates),l.coordinates=g.coordToAMap2RelativeCoordinates(l.coordinates,u)})}}function Ly(a,g){a.length>0&&g.version===Zp.SIMPLE&&a.map(function(c){c.simpleCoordinate||(c.coordinates=wE(c.coordinates,g),c.simpleCoordinate=!0)})}function wE(a,g){if(typeof a[0]=="number")return g.simpleMapCoord.unproject(a);if(a[0]&&a[0][0]instanceof Array){var c=[];return a.map(function(l){var m=[];l.map(function(A){m.push(g.simpleMapCoord.unproject(A))}),c.push(m)}),c}else{var u=[];return a.map(function(l){u.push(g.simpleMapCoord.unproject(l))}),u}}function DL(a,g){var c;if(!a.scale)return[];var u=(a==null||(c=a.scale)===null||c===void 0?void 0:c.scalers)||[],l=[];u.forEach(function(A){var j,Y=A.field;(g.hasOwnProperty(Y)||((j=a.scale)===null||j===void 0?void 0:j.type)==="variable")&&l.push(g[Y])});var m=a.mapping?a.mapping(l):[];return m}function IL(a,g,c,u,l){var m=l==null?void 0:l.getLayerConfig(),A=m.arrow,j=A===void 0?{enable:!1}:A,Y=g.map(function(le){var $e={id:le._id,coordinates:le.coordinates};if(a.filter(function(qt){return qt.scale!==void 0}).forEach(function(qt){var jn=DL(qt,le);qt.needRemapping=!1,qt.name==="color"&&(jn=jn.map(function(Qn){return Wr(Qn)})),$e[qt.name]=Array.isArray(jn)&&jn.length===1?jn[0]:jn,qt.name==="shape"&&($e.shape=c.getIconFontKey($e[qt.name]))}),$e.shape==="line"&&j.enable){var Ye=$e.coordinates,Nt=Z_(Ye[0],Ye[1]);$e.coordinates.splice(1,0,Nt,Nt)}return $e});return t1(Y,u,l),Ly(Y,u),Y}function LL(a,g,c,u,l,m){var A=new BC(l,m),j=u.getLayerStyleAttributes()||[],Y=A.data.dataArray,le=Y,$e=IL(j,le,g,c,a);return A.destroy(),$e}function KD(a){return a.map(function(g){return typeof g=="string"&&(g=[g,{}]),g})}function XD(a,g,c,u){var l=a.multiPassRenderer,m=a.getLayerConfig(),A=m.enableTAA;return A?l.add(u("taa")):l.add(u("render")),KD(g).forEach(function(j){var Y=(0,Oi.Z)(j,2),le=Y[0],$e=Y[1];l.add(c(le),$e)}),l.add(c("copy")),l}var qk=function(){function a(g){(0,Bt.Z)(this,a),this.layer=g}return(0,lt.Z)(a,[{key:"pickRender",value:function(c){var u=this.layer.getContainer(),l=u.get(Fr.ILayerService),m=this.layer;if(m.tileLayer)return m.tileLayer.pickRender(c);m.hooks.beforePickingEncode.call(),l.renderTileLayerMask(m),m.renderModels({ispick:!0}),m.hooks.afterPickingEncode.call()}},{key:"pick",value:function(c,u){var l=this.layer.getContainer(),m=l.get(Fr.IPickingService);return c.type==="RasterLayer"?this.pickRasterLayer(c,u):(this.pickRender(u),m.pickFromPickingFBO(c,u))}},{key:"pickRasterLayer",value:function(c,u,l){var m=this.layer.getContainer(),A=m.get(Fr.IPickingService),j=m.get(Fr.IMapService),Y=this.layer.getSource().extent,le=ic(u.lngLat,Y),$e={x:u.x,y:u.y,type:u.type,lngLat:u.lngLat,target:u,rasterValue:null},Ye=l||c;if(le){var Nt=this.readRasterValue(c,Y,j,u.x,u.y);return $e.rasterValue=Nt,A.triggerHoverOnLayer(Ye,$e),!0}else return $e.type=u.type==="mousemove"?"mouseout":"un"+u.type,A.triggerHoverOnLayer(Ye,(0,Ne.Z)((0,Ne.Z)({},$e),{},{type:"unpick"})),A.triggerHoverOnLayer(Ye,$e),!1}},{key:"readRasterValue",value:function(c,u,l,m,A){var j=c.getSource().data.dataArray[0],Y=(0,Oi.Z)(u,4),le=Y[0],$e=le===void 0?0:le,Ye=Y[1],Nt=Ye===void 0?0:Ye,qt=Y[2],jn=qt===void 0?10:qt,Qn=Y[3],Ir=Qn===void 0?-10:Qn,ki=l.lngLatToContainer([$e,Nt]),jo=l.lngLatToContainer([jn,Ir]),Wo=jo.x-ki.x,na=ki.y-jo.y,va=[(m-ki.x)/Wo,(A-jo.y)/na],Fa=j.width||1,vl=j.height||1,eu=Math.floor(va[0]*Fa),uu=Math.floor(va[1]*vl),Hu=Math.max(0,uu-1)*Fa+eu,Vu=j.data[Hu];return Vu}},{key:"selectFeature",value:function(c){var u=this.layer,l=(0,Oi.Z)(c,3),m=l[0],A=l[1],j=l[2];u.hooks.beforeSelect.call([m,A,j])}},{key:"highlightPickedFeature",value:function(c){var u=(0,Oi.Z)(c,3),l=u[0],m=u[1],A=u[2];this.layer.hooks.beforeHighlight.call([l,m,A])}},{key:"getFeatureById",value:function(c){return this.layer.getSource().getFeatureById(c)}}]),a}(),PL=function(){function a(g){(0,Bt.Z)(this,a),this.layer=g;var c=this.layer.getContainer();this.rendererService=c.get(Fr.IRendererService)}return(0,lt.Z)(a,[{key:"getColorTexture",value:function(c,u){var l=this.getTextureKey(c,u);return this.key===l?this.colorTexture:(this.createColorTexture(c,u),this.key=l,this.colorTexture)}},{key:"createColorTexture",value:function(c,u){var l=this.rendererService.createTexture2D,m=this.getColorRampBar(c,u),A=l({data:new Uint8Array(m.data),width:m.width,height:m.height,flipY:!1});return this.colorTexture=A,A}},{key:"setColorTexture",value:function(c,u,l){this.key=this.getTextureKey(u,l),this.colorTexture=c}},{key:"destroy",value:function(){var c;(c=this.colorTexture)===null||c===void 0||c.destroy()}},{key:"getColorRampBar",value:function(c,u){switch(c.type){case"cat":return ls(c);case"quantize":return Sr(c);case"custom":return hs(c,u);case"linear":return yo(c,u);default:return Xr(c)}}},{key:"getTextureKey",value:function(c,u){var l;return"".concat(c.colors.join("_"),"_").concat(c==null||(l=c.positions)===null||l===void 0?void 0:l.join("_"),"_").concat(c.type,"_").concat(u==null?void 0:u.join("_"))}}]),a}(),A3=["passes"],Rx=["moduleName","vertexShader","fragmentShader","inject","triangulation","segmentNumber"],VC,bw,YD;function D3(a,g){var c=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=Jk(a))||g&&a&&typeof a.length=="number"){c&&(a=c);var u=0,l=function(){};return{s:l,n:function(){return u>=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function Jk(a,g){if(a){if(typeof a=="string")return kL(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return kL(a,g)}}function kL(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);c0&&arguments[0]!==void 0?arguments[0]:{};return(0,Bt.Z)(this,c),u=g.call(this),(0,Xn.Z)((0,ps.Z)(u),"id","".concat(el++)),(0,Xn.Z)((0,ps.Z)(u),"name","".concat(el)),(0,Xn.Z)((0,ps.Z)(u),"visible",!0),(0,Xn.Z)((0,ps.Z)(u),"zIndex",0),(0,Xn.Z)((0,ps.Z)(u),"inited",!1),(0,Xn.Z)((0,ps.Z)(u),"layerModelNeedUpdate",!1),(0,Xn.Z)((0,ps.Z)(u),"pickedFeatureID",null),(0,Xn.Z)((0,ps.Z)(u),"selectedFeatureID",null),(0,Xn.Z)((0,ps.Z)(u),"styleNeedUpdate",!1),(0,Xn.Z)((0,ps.Z)(u),"forceRender",!1),(0,Xn.Z)((0,ps.Z)(u),"clusterZoom",0),(0,Xn.Z)((0,ps.Z)(u),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),(0,Xn.Z)((0,ps.Z)(u),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,Xn.Z)((0,ps.Z)(u),"hooks",{init:new iw,afterInit:new fC,beforeRender:new fC,beforeRenderData:new N_,afterRender:new $y,beforePickingEncode:new $y,afterPickingEncode:new $y,beforeHighlight:new $y(["pickedColor"]),afterHighlight:new $y,beforeSelect:new $y(["pickedColor"]),afterSelect:new $y,beforeDestroy:new $y,afterDestroy:new $y}),(0,Xn.Z)((0,ps.Z)(u),"models",[]),(0,Xn.Z)((0,ps.Z)(u),"startInit",!1),(0,Xn.Z)((0,ps.Z)(u),"layerChildren",[]),(0,Xn.Z)((0,ps.Z)(u),"masks",[]),P((0,ps.Z)(u),"configService",YD,(0,ps.Z)(u)),(0,Xn.Z)((0,ps.Z)(u),"animateOptions",{enable:!1}),(0,Xn.Z)((0,ps.Z)(u),"currentPickId",null),(0,Xn.Z)((0,ps.Z)(u),"encodeStyleAttribute",{}),(0,Xn.Z)((0,ps.Z)(u),"enableShaderEncodeStyles",[]),(0,Xn.Z)((0,ps.Z)(u),"enableDataEncodeStyles",[]),(0,Xn.Z)((0,ps.Z)(u),"enablg",[]),(0,Xn.Z)((0,ps.Z)(u),"pendingStyleAttributes",[]),(0,Xn.Z)((0,ps.Z)(u),"scaleOptions",{}),(0,Xn.Z)((0,ps.Z)(u),"animateStatus",!1),(0,Xn.Z)((0,ps.Z)(u),"isDestroyed",!1),(0,Xn.Z)((0,ps.Z)(u),"encodeDataLength",0),(0,Xn.Z)((0,ps.Z)(u),"sourceEvent",function(){u.dataState.dataSourceNeedUpdate=!0;var m=u.getLayerConfig();m&&m.autoFit&&u.fitBounds(m.fitBoundsOptions);var A=u.layerSource.getSourceCfg().autoRender;A&&u.reRender()}),u.name=l.name||u.id,u.zIndex=l.zIndex||0,u.rawConfig=l,u}return(0,lt.Z)(c,[{key:"addMask",value:function(l){this.masks.push(l),this.enableMask()}},{key:"removeMask",value:function(l){var m=this.masks.indexOf(l);m>-1&&this.masks.splice(m,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 m=this.masks.indexOf(l);m>-1&&this.masks.splice(m,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 m=this;if(Object.keys(l).map(function(j){j in m.rawConfig&&(m.rawConfig[j]=l[j])}),!this.startInit)this.needUpdateConfig=(0,Ne.Z)((0,Ne.Z)({},this.needUpdateConfig),l);else{var A=this.container.get(Fr.SceneID);this.configService.setLayerConfig(A,this.id,(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),l)),this.needUpdateConfig={}}}},{key:"setContainer",value:function(l,m){this.container=l,this.sceneContainer=m}},{key:"getContainer",value:function(){return this.container}},{key:"addPlugin",value:function(l){return this.plugins.push(l),this}},{key:"init",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A=this,j,Y,le,$e,Ye,Nt,qt;return Zi().wrap(function(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:j=this.container.get(Fr.SceneID),this.startInit=!0,this.configService.setLayerConfig(j,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(Fr.IIconService),this.fontService=this.container.get(Fr.IFontService),this.rendererService=this.container.get(Fr.IRendererService),this.layerService=this.container.get(Fr.ILayerService),this.debugService=this.container.get(Fr.IDebugService),this.interactionService=this.container.get(Fr.IInteractionService),this.pickingService=this.container.get(Fr.IPickingService),this.mapService=this.container.get(Fr.IMapService),Y=this.getLayerConfig(),le=Y.enableMultiPassRenderer,$e=Y.passes,le&&$e!==null&&$e!==void 0&&$e.length&&$e.length>0&&this.mapService.on("mapAfterFrameChange",function(){A.renderLayers()}),this.cameraService=this.container.get(Fr.ICameraService),this.coordinateService=this.container.get(Fr.ICoordinateSystemService),this.shaderModuleService=this.container.get(Fr.IShaderModuleService),this.postProcessingPassFactory=this.container.get(Fr.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(Fr.IFactoryNormalPass),this.styleAttributeService=this.container.get(Fr.IStyleAttributeService),le&&(this.multiPassRenderer=this.container.get(Fr.IMultiPassRenderer),this.multiPassRenderer.setLayer(this)),this.pendingStyleAttributes.forEach(function(Ir){var ki=Ir.attributeName,jo=Ir.attributeField,Wo=Ir.attributeValues,na=Ir.updateOptions;A.styleAttributeService.updateStyleAttribute(ki,{scale:(0,Ne.Z)({field:jo},A.splitValuesAndCallbackInAttribute(Wo,jo?void 0:A.getLayerConfig()[ki]))},na)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(Fr.ILayerPlugin),Ye=D3(this.plugins);try{for(Ye.s();!(Nt=Ye.n()).done;)qt=Nt.value,qt.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch(Ir){Ye.e(Ir)}finally{Ye.f()}return this.layerPickService=new qk(this),this.textureService=new PL(this),this.log(Ev.LayerInitStart),Qn.next=31,this.hooks.init.promise();case 31:this.log(Ev.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 Qn.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"log",value:function(l){var m,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"init";if(!(this.tileLayer||this.isTileLayer)){var j="".concat(this.id,".").concat(A,".").concat(l),Y={id:this.id,type:this.type};(m=this.debugService)===null||m===void 0||m.log(j,Y)}}},{key:"updateModelData",value:function(l){l.attributes&&l.elements?this.models.map(function(m){m.updateAttributesAndElements(l.attributes,l.elements)}):console.warn("data error")}},{key:"createModelData",value:function(l,m){var A;if((A=this.layerModel)!==null&&A!==void 0&&A.createModelData)return this.layerModel.createModelData(m);var j=this.calculateEncodeData(l,m),Y=this.triangulation;return j&&Y?this.styleAttributeService.createAttributesAndIndices(j,Y):{attributes:void 0,elements:void 0}}},{key:"setLayerPickService",value:function(l){this.layerPickService=l}},{key:"calculateEncodeData",value:function(l,m){return this.inited?LL(this,this.fontService,this.mapService,this.styleAttributeService,l,m):(console.warn("layer not inited!"),null)}},{key:"prepareBuildModel",value:function(){Object.keys(this.needUpdateConfig||{}).length!==0&&this.updateLayerConfig({});var l=this.getLayerConfig(),m=l.animateOption;m!=null&&m.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}},{key:"color",value:function(l,m,A){return this.updateStyleAttribute("color",l,m,A),this}},{key:"texture",value:function(l,m,A){return this.updateStyleAttribute("texture",l,m,A),this}},{key:"rotate",value:function(l,m,A){return this.updateStyleAttribute("rotate",l,m,A),this}},{key:"size",value:function(l,m,A){return this.updateStyleAttribute("size",l,m,A),this}},{key:"filter",value:function(l,m,A){var j=this.updateStyleAttribute("filter",l,m,A);return this.dataState.dataSourceNeedUpdate=j&&this.inited,this}},{key:"shape",value:function(l,m,A){this.shapeOption={field:l,values:m};var j=this.updateStyleAttribute("shape",l,m,A);return this.dataState.dataSourceNeedUpdate=j&&this.inited,this}},{key:"label",value:function(l,m,A){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:l,attributeValues:m,updateOptions:A}),this}},{key:"animate",value:function(l){var m={};return Rs(l)?(m.enable=!0,m=(0,Ne.Z)((0,Ne.Z)({},m),l)):m.enable=l,this.updateLayerConfig({animateOption:m}),this}},{key:"source",value:function(l,m){return(l==null?void 0:l.type)==="source"?(this.setSource(l),this):(this.sourceOption={data:l,options:m},this.clusterZoom=0,this)}},{key:"setData",value:function(l,m){var A=this;return this.inited?(this.log(Ev.SourceInitStart,dd.UPDATE),this.layerSource.setData(l,m),this.log(Ev.SourceInitEnd,dd.UPDATE)):this.on("inited",function(){A.log(Ev.SourceInitStart,dd.UPDATE);var j=A.getSource();j?A.layerSource.setData(l,m):A.source(new BC(l,m)),A.layerSource.once("update",function(){A.log(Ev.SourceInitEnd,dd.UPDATE)})}),this}},{key:"style",value:function(l){var m=this,A=l.passes,j=(0,gv.Z)(l,A3);A&&KD(A).forEach(function(le){var $e=m.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(le[0]);$e&&$e.updateOptions(le[1])});var Y=j;return Object.keys(j).forEach(function(le){var $e=j[le];Array.isArray($e)&&$e.length===2&&!OL($e[0])&&!OL($e[1])&&(Y[le]={field:$e[0],value:$e[1]})}),this.encodeStyle(Y),this.updateLayerConfig(Y),this}},{key:"encodeStyle",value:function(l){var m=this;Object.keys(l).forEach(function(A){[].concat((0,or.Z)(m.enableShaderEncodeStyles),(0,or.Z)(m.enableDataEncodeStyles)).includes(A)&&xl(l[A])&&(l[A].field||l[A].value)&&!I3(m.encodeStyleAttribute[A],l[A])?(m.encodeStyleAttribute[A]=l[A],m.updateStyleAttribute(A,l[A].field,l[A].value),m.inited&&(m.dataState.dataMappingNeedUpdate=!0)):m.encodeStyleAttribute[A]&&(delete m.encodeStyleAttribute[A],m.dataState.dataSourceNeedUpdate=!0)})}},{key:"scale",value:function(l,m){var A=(0,Ne.Z)({},this.scaleOptions);if(Rs(l)?this.scaleOptions=(0,Ne.Z)((0,Ne.Z)({},this.scaleOptions),l):this.scaleOptions[l]=m,this.styleAttributeService&&!I3(A,this.scaleOptions)){var j=Rs(l)?l:(0,Xn.Z)({},l,m);this.styleAttributeService.updateScaleAttribute(j)}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 u=(0,pl.Z)(Zi().mark(function m(){return Zi().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(!(this.encodeDataLength<=0&&!this.forceRender)){j.next=2;break}return j.abrupt("return");case 2:if(!(this.multiPassRenderer&&this.multiPassRenderer.getRenderFlag())){j.next=7;break}return j.next=5,this.multiPassRenderer.render();case 5:j.next=8;break;case 7:this.multiPassRenderer?this.renderModels():this.renderModels();case 8:case"end":return j.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"active",value:function(l){var m={};return m.enableHighlight=Rs(l)?!0:l,Rs(l)?(m.enableHighlight=!0,l.color&&(m.highlightColor=l.color),l.mix&&(m.activeMix=l.mix)):m.enableHighlight=!!l,this.updateLayerConfig(m),this}},{key:"setActive",value:function(l,m){var A=this;if(Rs(l)){var j=l.x,Y=j===void 0?0:j,le=l.y,$e=le===void 0?0:le;this.updateLayerConfig({highlightColor:Rs(m)?m.color:this.getLayerConfig().highlightColor,activeMix:Rs(m)?m.mix:this.getLayerConfig().activeMix}),this.pick({x:Y,y:$e})}else this.updateLayerConfig({pickedFeatureID:l,highlightColor:Rs(m)?m.color:this.getLayerConfig().highlightColor,activeMix:Rs(m)?m.mix:this.getLayerConfig().activeMix}),this.hooks.beforeHighlight.call(kr(l)).then(function(){setTimeout(function(){A.reRender()},1)})}},{key:"select",value:function(l){var m={};return m.enableSelect=Rs(l)?!0:l,Rs(l)?(m.enableSelect=!0,l.color&&(m.selectColor=l.color),l.mix&&(m.selectMix=l.mix)):m.enableSelect=!!l,this.updateLayerConfig(m),this}},{key:"setSelect",value:function(l,m){var A=this;if(Rs(l)){var j=l.x,Y=j===void 0?0:j,le=l.y,$e=le===void 0?0:le;this.updateLayerConfig({selectColor:Rs(m)?m.color:this.getLayerConfig().selectColor,selectMix:Rs(m)?m.mix:this.getLayerConfig().selectMix}),this.pick({x:Y,y:$e})}else this.updateLayerConfig({pickedFeatureID:l,selectColor:Rs(m)?m.color:this.getLayerConfig().selectColor,selectMix:Rs(m)?m.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(kr(l)).then(function(){setTimeout(function(){A.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(),m=this.getLayerConfig(),A=m.visible,j=m.minZoom,Y=j===void 0?-1/0:j,le=m.maxZoom,$e=le===void 0?1/0:le;return!!A&&l>=Y&&l<$e}},{key:"setMultiPass",value:function(l,m){if(this.updateLayerConfig({enableMultiPassRenderer:l}),m&&this.updateLayerConfig({passes:m}),l){var A=this.getLayerConfig(),j=A.passes,Y=j===void 0?[]:j;this.multiPassRenderer=XD(this,Y,this.postProcessingPassFactory,this.normalPassFactory),this.multiPassRenderer.setRenderFlag(!0);var le=this.rendererService.getViewportSize(),$e=le.width,Ye=le.height;this.multiPassRenderer.resize($e,Ye)}return this}},{key:"setMinZoom",value:function(l){return this.updateLayerConfig({minZoom:l}),this}},{key:"getMinZoom",value:function(){var l=this.getLayerConfig(),m=l.minZoom;return m}},{key:"getMaxZoom",value:function(){var l=this.getLayerConfig(),m=l.maxZoom;return m}},{key:"get",value:function(l){var m=this.getLayerConfig();return m[l]}},{key:"setMaxZoom",value:function(l){return this.updateLayerConfig({maxZoom:l}),this}},{key:"setAutoFit",value:function(l){return this.updateLayerConfig({autoFit:l}),this}},{key:"fitBounds",value:function(l){if(!this.inited)return this.updateLayerConfig({autoFit:!0}),this;var m=this.getSource(),A=m.extent,j=A.some(function(Y){return Math.abs(Y)===1/0});return j?this:(this.mapService.fitBounds([[A[0],A[1]],[A[2],A[3]]],l),this)}},{key:"destroy",value:function(){var l,m,A,j,Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.isDestroyed){this.layerChildren.map(function(Ye){return Ye.destroy(!1)}),this.layerChildren=[];var le=this.getLayerConfig(),$e=le.maskfence;$e&&(this.masks.map(function(Ye){return Ye.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(),(m=this.layerModel)===null||m===void 0||m.clearModels(Y),(A=this.tileLayer)===null||A===void 0||A.destroy(),this.models=[],(j=this.debugService)===null||j===void 0||j.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(m){return m.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 m=this;if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=l,this.clusterZoom=0,this.inited&&this.layerSource.cluster){var A=this.mapService.getZoom();this.layerSource.updateClusterData(A)}this.layerSource.inited&&this.sourceEvent(),this.layerSource.on("update",function(j){var Y=j.type;if(m.coordCenter===void 0){var le,$e=m.layerSource.center;m.coordCenter=$e,(le=m.mapService)!==null&&le!==void 0&&le.setCoordCenter&&m.mapService.setCoordCenter($e)}if(Y==="update"){if(m.tileLayer){m.tileLayer.reload();return}m.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 m,A,j,Y=this.styleAttributeService.getLayerStyleAttribute(l),le=(Y==null||(m=Y.scale)===null||m===void 0?void 0:m.scalers)||[];return{type:(A=le[0].option)===null||A===void 0?void 0:A.type,field:Y==null||(j=Y.scale)===null||j===void 0?void 0:j.field,items:this.getLegendItems(l)}}},{key:"getLegendItems",value:function(l){var m=this.styleAttributeService.getLayerAttributeScale(l);if(!m)return[];if(m.invertExtent){var A=m.range().map(function(le){return(0,Xn.Z)({value:m.invertExtent(le)},l,le)});return A}else if(m.ticks){var j=m.ticks().map(function(le){return(0,Xn.Z)({value:le},l,m(le))});return j}else if(m!=null&&m.domain){var Y=m.domain().filter(function(le){return!Va(le)}).map(function(le){return(0,Xn.Z)({value:le},l,m(le))});return Y}return[]}},{key:"pick",value:function(l){var m=l.x,A=l.y;this.interactionService.triggerHover({x:m,y:A})}},{key:"boxSelect",value:function(l,m){this.pickingService.boxPickLayer(this,l,m)}},{key:"buildLayerModel",value:function(){var u=(0,pl.Z)(Zi().mark(function m(A){var j=this,Y,le,$e,Ye,Nt,qt,jn,Qn,Ir,ki,jo,Wo;return Zi().wrap(function(va){for(;;)switch(va.prev=va.next){case 0:return Y=A.moduleName,le=A.vertexShader,$e=A.fragmentShader,Ye=A.inject,Nt=A.triangulation,qt=A.segmentNumber,jn=(0,gv.Z)(A,Rx),this.shaderModuleService.registerModule(Y,{vs:le,fs:$e,inject:Ye}),Qn=this.shaderModuleService.getModule(Y),Ir=Qn.vs,ki=Qn.fs,jo=Qn.uniforms,Wo=this.rendererService.createModel,va.abrupt("return",new Promise(function(Fa){var vl=j.styleAttributeService.createAttributesAndIndices(j.encodedData,Nt,qt),eu=vl.attributes,uu=vl.elements,Hu=vl.count,Vu=(0,Ne.Z)({attributes:eu,uniforms:jo,fs:ki,vs:Ir,elements:uu,blend:Zy[es.normal]},jn);Hu&&(Vu.count=Hu);var ih=Wo(Vu);Fa(ih)}));case 5:case"end":return va.stop()}},m,this)}));function l(m){return u.apply(this,arguments)}return l}()},{key:"createAttributes",value:function(l){var m=l.triangulation,A=this.styleAttributeService.createAttributes(this.encodedData,m),j=A.attributes;return j}},{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 m=this.getLayerConfig(),A=m.enableHighlight,j=A===void 0?!0:A,Y=m.enableSelect,le=Y===void 0?!0:Y,$e=this.eventNames().indexOf(l)!==-1||this.eventNames().indexOf("un"+l)!==-1;return(l==="click"||l==="dblclick")&&le&&($e=!0),l==="mousemove"&&(j||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&($e=!0),this.isVisible()&&$e}},{key:"buildModels",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){return Zi().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return j.stop()}},m)}));function l(){return u.apply(this,arguments)}return l}()},{key:"rebuildModels",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){return Zi().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,this.buildModels();case 2:case"end":return j.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"renderMulPass",value:function(){var u=(0,pl.Z)(Zi().mark(function m(A){return Zi().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.next=2,A.render();case 2:case"end":return Y.stop()}},m)}));function l(m){return u.apply(this,arguments)}return l}()},{key:"renderModels",value:function(){var l=this,m=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(A){A.draw({uniforms:l.layerModel.getUninforms(),blend:l.layerModel.getBlend(),stencil:l.layerModel.getStencil(m)},(m==null?void 0:m.ispick)||!1)}),this.hooks.afterRender.call(),this)}},{key:"updateStyleAttribute",value:function(l,m,A,j){var Y=this.configService.getAttributeConfig(this.id)||{};return I3(Y[l],{field:m,values:A})?!1:(["color","size","texture","rotate","filter","label","shape"].indexOf(l)!==-1&&this.configService.setAttributeConfig(this.id,(0,Xn.Z)({},l,{field:m,values:A})),this.startInit?this.styleAttributeService.updateStyleAttribute(l,{scale:(0,Ne.Z)({field:m},this.splitValuesAndCallbackInAttribute(A,this.getLayerConfig()[m]))},j):this.pendingStyleAttributes.push({attributeName:l,attributeField:m,attributeValues:A,updateOptions:j}),!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 u=(0,pl.Z)(Zi().mark(function m(){return Zi().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return this.models.forEach(function(Y){return Y.destroy()}),this.models=[],j.next=4,this.layerModel.initModels();case 4:this.models=j.sent;case 5:case"end":return j.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"reRender",value:function(){this.inited&&this.layerService.reRender()}},{key:"splitValuesAndCallbackInAttribute",value:function(l){return{values:ML(l)?void 0:l,callback:ML(l)?l:void 0}}}]),c}(Wu.EventEmitter),YD=ee(bw.prototype,"configService",[VC],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bw);function Tl(a,g){return{enable:a,mask:255,func:{cmp:ho.EQUAL,ref:g?1:0,mask:1}}}function Ic(a){return a.maskOperation===qd.OR?{enable:!0,mask:255,func:{cmp:ho.ALWAYS,ref:1,mask:255},opFront:{fail:ho.KEEP,zfail:ho.REPLACE,zpass:ho.REPLACE}}:{enable:!0,mask:255,func:{cmp:a.stencilType===Pl.SINGLE||a.stencilIndex===0?ho.ALWAYS:ho.LESS,ref:a.stencilType===Pl.SINGLE?1:a.stencilIndex===0?2:1,mask:255},opFront:{fail:ho.KEEP,zfail:ho.REPLACE,zpass:ho.REPLACE}}}function Sh(a){switch(a){case"rotation":return{name:"Rotation",type:Cd.Attribute,descriptor:{name:"a_Rotation",buffer:{usage:ho.DYNAMIC_DRAW,data:[],type:ho.FLOAT},size:1,update:function(c){var u=c.rotation,l=u===void 0?0:u;return Array.isArray(l)?[l[0]]:[l]}}};case"stroke":return{name:"stroke",type:Cd.Attribute,descriptor:{name:"a_Stroke",buffer:{usage:ho.DYNAMIC_DRAW,data:[],type:ho.FLOAT},size:4,update:function(c){var u=c.stroke,l=u===void 0?[1,1,1,1]:u;return l}}};case"opacity":return{name:"opacity",type:Cd.Attribute,descriptor:{name:"a_Opacity",buffer:{usage:ho.STATIC_DRAW,data:[],type:ho.FLOAT},size:1,update:function(c){var u=c.opacity,l=u===void 0?1:u;return[l]}}};case"extrusionBase":return{name:"extrusionBase",type:Cd.Attribute,descriptor:{name:"a_ExtrusionBase",buffer:{usage:ho.STATIC_DRAW,data:[],type:ho.FLOAT},size:1,update:function(c){var u=c.extrusionBase,l=u===void 0?0:u;return[l]}}};case"offsets":return{name:"offsets",type:Cd.Attribute,descriptor:{name:"a_Offsets",buffer:{usage:ho.STATIC_DRAW,data:[],type:ho.FLOAT},size:2,update:function(c){var u=c.offsets;return u}}};default:return}}var Bc,Nc,Yc,fh=(Bc=yb(Fr.IGlobalConfigService),Nc=function(){function a(g){(0,Bt.Z)(this,a),(0,Xn.Z)(this,"preStyleAttribute",{}),(0,Xn.Z)(this,"encodeStyleAttribute",{}),P(this,"configService",Yc,this),this.layer=g,this.rendererService=g.getContainer().get(Fr.IRendererService),this.pickingService=g.getContainer().get(Fr.IPickingService),this.shaderModuleService=g.getContainer().get(Fr.IShaderModuleService),this.styleAttributeService=g.getContainer().get(Fr.IStyleAttributeService),this.mapService=g.getContainer().get(Fr.IMapService),this.iconService=g.getContainer().get(Fr.IIconService),this.fontService=g.getContainer().get(Fr.IFontService),this.cameraService=g.getContainer().get(Fr.ICameraService),this.layerService=g.getContainer().get(Fr.ILayerService),this.registerStyleAttribute(),this.registerBuiltinAttributes(),this.startModelAnimate();var c=this.rendererService.createTexture2D;this.createTexture2D=c}return(0,lt.Z)(a,[{key:"getBlend",value:function(){var c=this.layer.getLayerConfig(),u=c.blend,l=u===void 0?"normal":u;return Zy[es[l]]}},{key:"getStencil",value:function(c){var u=this.layer.getLayerConfig(),l=u.mask,m=l===void 0?!1:l,A=u.maskInside,j=A===void 0?!0:A,Y=u.enableMask,le=u.maskOperation,$e=le===void 0?qd.AND:le;if(this.layer.type==="MaskLayer")return Ic({isStencil:!0,stencilType:Pl.SINGLE});if(c.isStencil)return Ic((0,Ne.Z)((0,Ne.Z)({},c),{},{maskOperation:$e}));var Ye=m||Y&&this.layer.masks.length!==0||this.layer.tileMask!==void 0;return Tl(Ye,j)}},{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 g=(0,pl.Z)(Zi().mark(function u(){return Zi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",!1);case 1:case"end":return m.stop()}},u)}));function c(){return g.apply(this,arguments)}return c}()},{key:"buildModels",value:function(){var g=(0,pl.Z)(Zi().mark(function u(){return Zi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return m.stop()}},u)}));function c(){return g.apply(this,arguments)}return c}()},{key:"initModels",value:function(){var g=(0,pl.Z)(Zi().mark(function u(){return Zi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return m.stop()}},u)}));function c(){return g.apply(this,arguments)}return c}()},{key:"clearModels",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0}},{key:"getAttribute",value:function(){throw new Error("Method not implemented.")}},{key:"render",value:function(c){throw new Error("Method not implemented.")}},{key:"registerBuiltinAttributes",value:function(){throw new Error("Method not implemented.")}},{key:"animateOption2Array",value:function(c){return[c.enable?0:1,c.duration||4,c.interval||.2,c.trailLength||.1]}},{key:"startModelAnimate",value:function(){var c=this.layer.getLayerConfig(),u=c.animateOption;u.enable&&this.layer.setAnimateStartTime()}},{key:"getInject",value:function(){var c=this.layer.encodeStyleAttribute,u="",l={opacity:"float",stroke:"vec4",offsets:"vec2",textOffset:"vec2",rotation:"float",extrusionBase:"float"};this.layer.enableShaderEncodeStyles.forEach(function(A){c[A]&&(u+="#define USE_ATTRIBUTE_".concat(A.toUpperCase(),` 0.0; -`)),c+=` - #ifdef USE_ATTRIBUTE_`.concat(T.toUpperCase(),` - attribute `).concat(l[T]," a_").concat(T.charAt(0).toUpperCase()+T.slice(1),`; +`)),u+=` + #ifdef USE_ATTRIBUTE_`.concat(A.toUpperCase(),` + attribute `).concat(l[A]," a_").concat(A.charAt(0).toUpperCase()+A.slice(1),`; #else - uniform `).concat(l[T]," u_").concat(T,`; + uniform `).concat(l[A]," u_").concat(A,`; #endif - `)});var g="";return this.layer.enableShaderEncodeStyles.forEach(function(T){g+=` + `)});var m="";return this.layer.enableShaderEncodeStyles.forEach(function(A){m+=` -#ifdef USE_ATTRIBUTE_`.concat(T.toUpperCase(),` - `).concat(l[T]," ").concat(T," = a_").concat(T.charAt(0).toUpperCase()+T.slice(1),`; +#ifdef USE_ATTRIBUTE_`.concat(A.toUpperCase(),` + `).concat(l[A]," ").concat(A," = a_").concat(A.charAt(0).toUpperCase()+A.slice(1),`; #else - `).concat(l[T]," ").concat(T," = u_").concat(T,`; + `).concat(l[A]," ").concat(A," = u_").concat(A,`; #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=Qr(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}(),qc=$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}({}),xh=function(a){return a.NORMAL="normal",a.REPLACE="replace",a}({}),Wh=function(a){return a[a.pixel=0]="pixel",a[a.meter=1]="meter",a}({}),jf=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,zt.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,ft.Z)(u,a);var p=Gh(u);function u(){var c;(0,Ct.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 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,Et=Z*g;return a[0]=p[0]*ee+u[0]*Pe+c[0]*Ze+l[0]*Et,a[1]=p[1]*ee+u[1]*Pe+c[1]*Ze+l[1]*Et,a[2]=p[2]*ee+u[2]*Pe+c[2]*Ze+l[2]*Et,a}function XN(a,p){p=p||1;var u=Ro()*2*Math.PI,c=Ro()*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,Et=c*Z-l*B,Mt=l*Et-g*Ze,An=g*Pe-c*Et,Mn=c*Ze-l*Pe,br=T*2;return Pe*=br,Ze*=br,Et*=br,Mt*=2,An*=2,Mn*=2,a[0]=B+Pe+Mt,a[1]=Z+Ze+An,a[2]=ee+Et+Mn,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 nP(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 rP=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 aa=Ze.length,Oa=aa-2*(Z+1);Oa+Z+20&&arguments[0]!==void 0?arguments[0]:{};(0,Ct.Z)(this,a),(0,Cn.Z)(this,"lastFlip",-1),(0,Cn.Z)(this,"miter",zf(0,0)),(0,Cn.Z)(this,"started",!1),(0,Cn.Z)(this,"dash",!1),(0,Cn.Z)(this,"totalDistance",0),(0,Cn.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),Et.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Ku,g[2]|0),this.complex.indexes.push(this.currentIndex),Et.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,Rr.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),Et.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(Et,Mt,g,ju,Jl,this.totalDistance),Ze.push.apply(Ze,(0,Rr.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),An){var aa=Zd(),Oa=Zd();$d(Oa,xv,this.normal),Bp(aa,xv,this.normal),Mt.push(Oa[0],Oa[1],0),Mt.push(aa[0],aa[1],0),Et.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),Et.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(Et,Mt,g,this.normal,this.thickness,this.totalDistance);Ze.push.apply(Ze,(0,Rr.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",Et=this.join==="bevel",Mt=ku([g[0],g[1]]),An=ku([l[0],l[1]]);CE(xv,Mt,An);var Mn=0;if(this.dash&&(Mn=this.lineSegmentDistance(Mt,An),this.totalDistance+=Mn),this.normal||(this.normal=Zd(),V2(this.normal,xv)),!this.started)if(this.started=!0,Ze){var br=Zd(),Li=Zd();Bp(br,this.normal,xv),Bp(Li,this.normal,xv),Pe.push(Li[0],Li[1],0),Pe.push(br[0],br[1],0),ee.push(l[0],l[1],l[2]|0,this.totalDistance-Mn,-this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),ee.push(l[0],l[1],l[2]|0,this.totalDistance-Mn,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-Mn);if(Z.push(c+0,c+1,c+2),T){var Qs=ku([T[0],T[1]]);ty(Mt,Qs)&&Bp(Qs,Mt,Qg(Qs,Hf(Qs,Mt,An))),CE(j2,Qs,Mt);var aa=SM(xE,Zd(),xv,j2,this.thickness),Oa=(0,Xn.Z)(aa,2),yl=Oa[0],Wl=Oa[1],Jl=Lm(xE,this.normal)<0?-1:1,ju=Et;if(!ju&&this.join==="miter"){var Ku=yl;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,Rr.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,yl,this.totalDistance),Z.push.apply(Z,(0,Rr.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(),Go=Zd();$d(Go,xv,this.normal),Bp(Zo,xv,this.normal),Pe.push(Go[0],Go[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,Rr.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,Rr.Z)(a)),Z=$g.apply(z,(0,Rr.Z)(p)),ee=$g.apply(z,(0,Rr.Z)(u));rP(l,ee,Z),rP(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(aP&&aP[a])return aP[a];var u=mD[a]?mD[a]():mD.cylinder(),c=EM([u],p);return aP[a]=c,c}function hP(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,Et=p.length;Ze0&&(m=1/Math.sqrt(m)),a[0]=g[0]*m,a[1]=g[1]*m,a[2]=g[2]*m,a}function Rz(a,g){return a[0]*g[0]+a[1]*g[1]+a[2]*g[2]}function nM(a,g,c){var u=g[0],l=g[1],m=g[2],A=c[0],j=c[1],Y=c[2];return a[0]=l*Y-m*j,a[1]=m*A-u*Y,a[2]=u*j-l*A,a}function p8(a,g,c,u){var l=g[0],m=g[1],A=g[2];return a[0]=l+u*(c[0]-l),a[1]=m+u*(c[1]-m),a[2]=A+u*(c[2]-A),a}function OX(a,g,c,u,l,m){var A=m*m,j=A*(2*m-3)+1,Y=A*(m-2)+m,le=A*(m-1),$e=A*(3-2*m);return a[0]=g[0]*j+c[0]*Y+u[0]*le+l[0]*$e,a[1]=g[1]*j+c[1]*Y+u[1]*le+l[1]*$e,a[2]=g[2]*j+c[2]*Y+u[2]*le+l[2]*$e,a}function RX(a,g,c,u,l,m){var A=1-m,j=A*A,Y=m*m,le=j*A,$e=3*m*j,Ye=3*Y*A,Nt=Y*m;return a[0]=g[0]*le+c[0]*$e+u[0]*Ye+l[0]*Nt,a[1]=g[1]*le+c[1]*$e+u[1]*Ye+l[1]*Nt,a[2]=g[2]*le+c[2]*$e+u[2]*Ye+l[2]*Nt,a}function Nz(a,g){g=g||1;var c=bg()*2*Math.PI,u=bg()*2-1,l=Math.sqrt(1-u*u)*g;return a[0]=Math.cos(c)*l,a[1]=Math.sin(c)*l,a[2]=u*g,a}function Q1(a,g,c){var u=g[0],l=g[1],m=g[2],A=c[3]*u+c[7]*l+c[11]*m+c[15];return A=A||1,a[0]=(c[0]*u+c[4]*l+c[8]*m+c[12])/A,a[1]=(c[1]*u+c[5]*l+c[9]*m+c[13])/A,a[2]=(c[2]*u+c[6]*l+c[10]*m+c[14])/A,a}function Fz(a,g,c){var u=g[0],l=g[1],m=g[2];return a[0]=u*c[0]+l*c[3]+m*c[6],a[1]=u*c[1]+l*c[4]+m*c[7],a[2]=u*c[2]+l*c[5]+m*c[8],a}function FL(a,g,c){var u=c[0],l=c[1],m=c[2],A=c[3],j=g[0],Y=g[1],le=g[2],$e=l*le-m*Y,Ye=m*j-u*le,Nt=u*Y-l*j,qt=l*Nt-m*Ye,jn=m*$e-u*Nt,Qn=u*Ye-l*$e,Ir=A*2;return $e*=Ir,Ye*=Ir,Nt*=Ir,qt*=2,jn*=2,Qn*=2,a[0]=j+$e+qt,a[1]=Y+Ye+jn,a[2]=le+Nt+Qn,a}function Bz(a,g,c,u){var l=[],m=[];return l[0]=g[0]-c[0],l[1]=g[1]-c[1],l[2]=g[2]-c[2],m[0]=l[0],m[1]=l[1]*Math.cos(u)-l[2]*Math.sin(u),m[2]=l[1]*Math.sin(u)+l[2]*Math.cos(u),a[0]=m[0]+c[0],a[1]=m[1]+c[1],a[2]=m[2]+c[2],a}function zz(a,g,c,u){var l=[],m=[];return l[0]=g[0]-c[0],l[1]=g[1]-c[1],l[2]=g[2]-c[2],m[0]=l[2]*Math.sin(u)+l[0]*Math.cos(u),m[1]=l[1],m[2]=l[2]*Math.cos(u)-l[0]*Math.sin(u),a[0]=m[0]+c[0],a[1]=m[1]+c[1],a[2]=m[2]+c[2],a}function $z(a,g,c,u){var l=[],m=[];return l[0]=g[0]-c[0],l[1]=g[1]-c[1],l[2]=g[2]-c[2],m[0]=l[0]*Math.cos(u)-l[1]*Math.sin(u),m[1]=l[0]*Math.sin(u)+l[1]*Math.cos(u),m[2]=l[2],a[0]=m[0]+c[0],a[1]=m[1]+c[1],a[2]=m[2]+c[2],a}function BL(a,g){var c=a[0],u=a[1],l=a[2],m=g[0],A=g[1],j=g[2],Y=Math.sqrt(c*c+u*u+l*l),le=Math.sqrt(m*m+A*A+j*j),$e=Y*le,Ye=$e&&Rz(a,g)/$e;return Math.acos(Math.min(Math.max(Ye,-1),1))}function NX(a){return a[0]=0,a[1]=0,a[2]=0,a}function g8(a){return"vec3("+a[0]+", "+a[1]+", "+a[2]+")"}function m8(a,g){return a[0]===g[0]&&a[1]===g[1]&&a[2]===g[2]}function FX(a,g){var c=a[0],u=a[1],l=a[2],m=g[0],A=g[1],j=g[2];return Math.abs(c-m)<=Ec*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(u-A)<=Ec*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(l-j)<=Ec*Math.max(1,Math.abs(l),Math.abs(j))}var v8=c8,UC=RL,L3=QD,f1=NL,y8=eM,Vz=u8,rM=f8,ww=function(){var a=py();return function(g,c,u,l,m,A){var j,Y;for(c||(c=3),u||(u=0),l?Y=Math.min(l*c+u,g.length):Y=g.length,j=u;j0)for(var va=Ye.length,Fa=va-2*(Y+1);Fa+Y+20&&arguments[0]!==void 0?arguments[0]:{};(0,Bt.Z)(this,a),(0,Xn.Z)(this,"lastFlip",-1),(0,Xn.Z)(this,"miter",wp(0,0)),(0,Xn.Z)(this,"started",!1),(0,Xn.Z)(this,"dash",!1),(0,Xn.Z)(this,"totalDistance",0),(0,Xn.Z)(this,"currentIndex",0),this.join=g.join||"miter",this.cap=g.cap||"butt",this.miterLimit=g.miterLimit||10,this.thickness=g.thickness||1,this.dash=g.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,lt.Z)(a,[{key:"simpleExtrude",value:function(c){var u=this.complex;if(c.length<=1)return u;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var l=c.length,m=u.startIndex,A=1;Athis.miterLimit&&(ih=!0)}ih?(qt.push(this.normal[0],this.normal[1],0),qt.push(Hu[0],Hu[1],0),Nt.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*Vu,m[2]|0),this.complex.indexes.push(this.currentIndex),Nt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness*Vu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Ye.push.apply(Ye,(0,or.Z)(this.lastFlip!==-Vu?[u,u+2,u+3]:[u+2,u+1,u+3])),Ye.push(u+2,u+3,u+4),Bm($L,HC),eg(this.normal,$L),qt.push(this.normal[0],this.normal[1],0),Nt.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*Vu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,$e+=3):(this.extrusions(Nt,qt,m,Hu,uu,this.totalDistance),Ye.push.apply(Ye,(0,or.Z)(this.lastFlip===1?[u,u+2,u+3]:[u+2,u+1,u+3])),Vu=-1,eg(this.normal,Hu),$e+=2),this.lastFlip=Vu}else{if(Bm(this.normal,O1),jn){var va=Pd(),Fa=Pd();Qm(Fa,O1,this.normal),If(va,O1,this.normal),qt.push(Fa[0],Fa[1],0),qt.push(va[0],va[1],0),Nt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),Nt.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(Nt,qt,m,this.normal,this.thickness,this.totalDistance);Ye.push.apply(Ye,(0,or.Z)(this.lastFlip===1?[u,u+2,u+3]:[u+2,u+1,u+3])),$e+=2}return $e}},{key:"segment",value:function(c,u,l,m,A){var j=0,Y=c.indices,le=c.positions,$e=c.normals,Ye=this.cap==="square",Nt=this.join==="bevel",qt=yc([m[0],m[1]]),jn=yc([l[0],l[1]]);Vv(O1,qt,jn);var Qn=0;if(this.dash&&(Qn=this.lineSegmentDistance(qt,jn),this.totalDistance+=Qn),this.normal||(this.normal=Pd(),Bm(this.normal,O1)),!this.started)if(this.started=!0,Ye){var Ir=Pd(),ki=Pd();If(Ir,this.normal,O1),If(ki,this.normal,O1),$e.push(ki[0],ki[1],0),$e.push(Ir[0],Ir[1],0),le.push(l[0],l[1],l[2]|0,this.totalDistance-Qn,-this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),le.push(l[0],l[1],l[2]|0,this.totalDistance-Qn,this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(le,$e,l,this.normal,this.thickness,this.totalDistance-Qn);if(Y.push(u+0,u+1,u+2),A){var na=yc([A[0],A[1]]);s0(qt,na)&&If(na,qt,cm(na,Xd(na,qt,jn))),Vv(HC,na,qt);var va=gy(TE,Pd(),O1,HC,this.thickness),Fa=(0,Oi.Z)(va,2),vl=Fa[0],eu=Fa[1],uu=em(TE,this.normal)<0?-1:1,Hu=Nt;if(!Hu&&this.join==="miter"){var Vu=vl;Vu>this.miterLimit&&(Hu=!0)}Hu?($e.push(this.normal[0],this.normal[1],0),$e.push(eu[0],eu[1],0),le.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*uu,m[2]|0),this.complex.indexes.push(this.currentIndex),le.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness*uu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Y.push.apply(Y,(0,or.Z)(this.lastFlip!==-uu?[u,u+2,u+3]:[u+2,u+1,u+3])),Y.push(u+2,u+3,u+4),Bm($L,HC),eg(this.normal,$L),$e.push(this.normal[0],this.normal[1],0),le.push(m[0],m[1],m[2]|0,this.totalDistance,-this.thickness*uu,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,j+=3):(this.extrusions(le,$e,m,eu,vl,this.totalDistance),Y.push.apply(Y,(0,or.Z)(this.lastFlip===1?[u,u+2,u+3]:[u+2,u+1,u+3])),uu=-1,eg(this.normal,eu),j+=2),this.lastFlip=uu}else{if(Bm(this.normal,O1),Ye){var jo=Pd(),Wo=Pd();Qm(Wo,O1,this.normal),If(jo,O1,this.normal),$e.push(Wo[0],Wo[1],0),$e.push(jo[0],jo[1],0),le.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),le.push(m[0],m[1],m[2]|0,this.totalDistance,this.thickness,m[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(le,$e,m,this.normal,this.thickness,this.totalDistance);Y.push.apply(Y,(0,or.Z)(this.lastFlip===1?[u,u+2,u+3]:[u+2,u+1,u+3])),j+=2}return j}},{key:"extrusions",value:function(c,u,l,m,A,j){u.push(m[0],m[1],0),u.push(m[0],m[1],0),c.push(l[0],l[1],l[2]|0,j,-A,l[2]|0),this.complex.indexes.push(this.currentIndex),c.push(l[0],l[1],l[2]|0,j,A,l[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(c,u){var l=u[0]-c[0],m=u[1]-c[1];return Math.sqrt(l*l+m*m)}}]),a}();function Wz(a){var g=a[0][0],c=a[0][a[0].length-1];g[0]===c[0]&&g[1]===c[1]&&(a[0]=a[0].slice(0,a[0].length-1));for(var u=a[0].length,l=qh().flatten(a),m=l.vertices,A=l.dimensions,j=[],Y=[],le=0;le1&&arguments[1]!==void 0?arguments[1]:!1,c=a[0][0],u=a[0][a[0].length-1];c[0]===u[0]&&c[1]===u[1]&&(a[0]=a[0].slice(0,a[0].length-1));for(var l=a[0].length,m=qh().flatten(a),A=m.vertices,j=m.dimensions,Y=[],le=[],$e=[],Ye=0;Ye3&&arguments[3]!==void 0?arguments[3]:!1,l=py(),m=py(),A=py();u&&(a=jh(a),g=jh(g),c=jh(c));var j=Nm.apply(x,(0,or.Z)(a)),Y=Nm.apply(x,(0,or.Z)(g)),le=Nm.apply(x,(0,or.Z)(c));v8(l,le,Y),v8(m,j,Y),nM(A,l,m);var $e=py();return Fm($e,A),$e}var wb,ag=function(a){return a.CYLINDER="cylinder",a.SQUARECOLUMN="squareColumn",a.TRIANGLECOLUMN="triangleColumn",a.HEXAGONCOLUMN="hexagonColumn",a.PENTAGONCOLUMN="pentagonColumn",a}({}),AE=function(a){return a.CIRCLE="circle",a.SQUARE="square",a.TRIANGLE="triangle",a.HEXAGON="hexagon",a.PENTAGON="pentagon",a}({});function e4(a){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=Math.PI*2/a,u=[],l=0;l1&&arguments[1]!==void 0?arguments[1]:!1;if(VL&&VL[a])return VL[a];var c=k3[a]?k3[a]():k3.cylinder(),u=x8([c],g);return VL[a]=u,u}function Gz(a,g){for(var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,l=new Float32Array(a.length/c*3),m,A,j,Y=vec3.create(),le=vec3.create(),$e=vec3.create(),Ye=0,Nt=g.length;Ye0&&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,Et=Math.floor(T),Mt=Math.floor(B),An=Et+1,Mn=Mt+1,br=l/Et,Li=g/Mt,Zo=[],Go=[],Qs=0;Qs0&&arguments[0]!==void 0?arguments[0]:1,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,Y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:120,le=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,$e=l/2,Ye=m/2,Nt=Math.floor(A),qt=Math.floor(j),jn=Nt+1,Qn=qt+1,Ir=l/Nt,ki=m/qt,jo=[],Wo=[],na=0;naEt&&(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,Et=0;EtNt&&(u.positions[qt+2]=Ye)):(u.positions[qt+2]-=$e,u.positions[qt+2]0&&arguments[0]!==void 0?arguments[0]:10,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:120,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30,Y=[],le=[],$e=this.mapService,Ye=this.spriteAnimate===N3.UP?-this.spriteTop:this.spriteTop,Nt=0;Nt0&&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}(Ja);function FM(a){var p=bP();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,zt.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 Hz=`precision mediump float; +`,Iw=function(a){(0,At.Z)(c,a);var g=c$(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"getUninforms",value:function(){var l=this.layer.getLayerConfig(),m=l.opacity,A=l.coverage,j=l.angle;return{u_opacity:m||1,u_coverage:A||.9,u_angle:j||0,u_radius:[this.layer.getSource().data.xOffset,this.layer.getSource().data.yOffset]}}},{key:"initModels",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){return Zi().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",this.buildModels());case 1:case"end":return j.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A;return Zi().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.next=2,this.layer.buildLayerModel({moduleName:"heatmapHexagon",vertexShader:L2,fragmentShader:Dw,triangulation:WL,depth:{enable:!1},primitive:ho.TRIANGLES});case 2:return A=Y.sent,Y.abrupt("return",[A]);case 4:case"end":return Y.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"pos",type:Cd.Attribute,descriptor:{name:"a_Pos",buffer:{usage:ho.DYNAMIC_DRAW,data:[],type:ho.FLOAT},size:3,update:function(m){var A=m.version==="GAODE2.x"?m.originCoordinates:m.coordinates;return[A[0],A[1],0]}}})}}]),c}(fh),QL={heatmap:M8,heatmap3d:M8,grid:XL,grid3d:a$,hexagon:Iw},O8=QL;function yM(a){var g=eP();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function eP(){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 h$=function(a){(0,At.Z)(c,a);var g=yM(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;A0&&arguments[0]!==void 0?arguments[0]:{},A=this.getModelType();return A==="heatmap"?(this.layerModel&&this.layerModel.render(m),this):this.encodeDataLength<=0&&!this.forceRender?this:(this.hooks.beforeRender.call(),this.models.forEach(function(j){return j.draw({uniforms:l.layerModel.getUninforms(),blend:l.layerModel.getBlend(),stencil:l.layerModel.getStencil(m)})}),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,m=this.styleAttributeService.getLayerStyleAttribute("shape"),A=this.getLayerConfig(),j=A.shape3d,Y=this.getSource(),le=Y.data.type,$e=(m==null||(l=m.scale)===null||l===void 0?void 0:l.field)||"heatmap";return $e==="heatmap"||$e==="heatmap3d"?"heatmap":le==="hexagon"?(j==null?void 0:j.indexOf($e))===-1?"hexagon":"grid3d":le==="grid"?(j==null?void 0:j.indexOf($e))===-1?"grid":"grid3d":"heatmap"}}]),c}(ul);function Fx(a){var g=R8();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function R8(){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 d$=`precision mediump float; uniform float u_opacity: 1.0; uniform sampler2D u_texture; varying vec2 v_texCoord; @@ -2639,7 +2639,7 @@ void main() { if(gl_FragColor.a < 0.01) discard; } -`,Nx=`precision highp float; +`,f$=`precision highp float; uniform mat4 u_ModelMatrix; attribute vec3 a_Position; @@ -2652,7 +2652,7 @@ void main() { gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); } -`,h6=function(a){(0,ft.Z)(u,a);var p=FM(u);function u(){return(0,Ct.Z)(this,u),p.apply(this,arguments)}return(0,He.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,Ra.Z)(no().mark(function g(){var T,B,Z,ee;return no().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return T=this.layer.getSource(),B=this.rendererService.createTexture2D,this.texture=B({height:0,width:0}),Ze.next=5,T.data.images;case 5:return Z=Ze.sent,this.texture=B({data:Z[0],width:Z[0].width,height:Z[0].height,mag:qi.LINEAR,min:qi.LINEAR}),Ze.next=9,this.layer.buildLayerModel({moduleName:"rasterImage",vertexShader:Nx,fragmentShader:Hz,triangulation:yD,primitive:qi.TRIANGLES,blend:{enable:!0},depth:{enable:!1}});case 9:return ee=Ze.sent,Ze.abrupt("return",[ee]);case 11:case"end":return Ze.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,Ra.Z)(no().mark(function g(){return no().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:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:2,update:function(g,T,B){return[B[3],B[4]]}}})}}]),u}(Su),Zz={image:h6},Gz=Zz;function Kz(a){var p=AD();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,zt.Z)(this,l)}}function AD(){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=function(a){(0,ft.Z)(u,a);var p=Kz(u);function u(){var c;(0,Ct.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T 0.0) { + lineHeight *= mapboxZoomScale; + } + + } else { + // amap + h += u_raisingHeight; + // lineHeight \u9876\u70B9\u504F\u79FB\u9AD8\u5EA6 + if(u_heightfixed < 1.0) { + lineHeight *= pow(2.0, 20.0 - u_Zoom); + } } - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight, 1.0)); + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight + h, 1.0)); } setPickingColor(a_PickingColor); } -`,h1=`#extension GL_OES_standard_derivatives : enable +`,NE=`#extension GL_OES_standard_derivatives : enable #define Animate 0.0 #define LineTexture 1.0 uniform float u_textureBlend; @@ -4592,7 +4611,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } -`,_y=` +`,w1=` #define Animate 0.0 attribute float a_Miter; @@ -4755,7 +4774,7 @@ void main() { setPickingColor(a_PickingColor); } -`,H2=`varying vec4 v_color; +`,R$=`varying vec4 v_color; varying vec4 v_texture_data; uniform float u_linearDir: 1.0; uniform float u_linearColor: 0; @@ -4781,7 +4800,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } -`,AE={solid:0,dash:1},f1=function(a){(0,ft.Z)(u,a);var p=LD(u);function u(){var c;(0,Ct.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&T.enable){var Oa=T.speed,yl=Oa===void 0?.01:Oa;this.raiseCount+=yl,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(Et),u_heightfixed:Number(An),u_r:T.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:nm(Z)?Z:1,u_linearColor:Go,u_sourceColor:Qs,u_targetColor:aa,u_opacitylinear:Number(br.enable),u_opacitylinear_dir:br.dir==="up"?1:0,u_lightEnable:Number(Zo)}}},{key:"initModels",value:function(){var c=(0,Ra.Z)(no().mark(function g(){return no().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,Ra.Z)(no().mark(function g(){var T,B,Z,ee;return no().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:Mi(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:qi.DYNAMIC_DRAW,data:[],type:qi.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:qi.STATIC_DRAW,data:[],type:qi.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:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:3,update:function(g){var T=Lh(g.coordinates);return wM([T[0],T[1]])}}})}}]),u}(Su);function IP(a){var p=kD();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,zt.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; +`,j3=Js.isNumber,AM=function(a){(0,At.Z)(c,a);var g=W8(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;A0&&A.enable){var Fa=A.speed,vl=Fa===void 0?.01:Fa;this.raiseCount+=vl,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(Nt),u_heightfixed:Number(jn),u_r:A.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:j3(Y)?Y:1,u_linearColor:Wo,u_sourceColor:na,u_targetColor:va,u_opacitylinear:Number(Ir.enable),u_opacitylinear_dir:Ir.dir==="up"?1:0,u_lightEnable:Number(jo)}}},{key:"initModels",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){return Zi().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",this.buildModels());case 1:case"end":return j.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A,j,Y,le;return Zi().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return A=this.layer.getLayerConfig(),j=A.animateOption.repeat,Y=j===void 0?1:j,this.raiseRepeat=Y,Ye.next=4,this.layer.buildLayerModel({moduleName:"pointEarthExtrude",vertexShader:uP,fragmentShader:Av,triangulation:sM,depth:{enable:!0},cull:{enable:!0,face:mo(this.mapService.version)},blend:this.getBlend()});case 4:return le=Ye.sent,Ye.abrupt("return",[le]);case 6:case"end":return Ye.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Cd.Attribute,descriptor:{name:"a_Size",buffer:{usage:ho.DYNAMIC_DRAW,data:[],type:ho.FLOAT},size:3,update:function(m){var A=m.size;if(A){var j=[];return Array.isArray(A)&&(j=A.length===2?[A[0],A[0],A[1]]:A),Array.isArray(A)||(j=[A,A,A]),j}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Cd.Attribute,descriptor:{name:"a_Normal",buffer:{usage:ho.STATIC_DRAW,data:[],type:ho.FLOAT},size:3,update:function(m,A,j,Y,le){return le}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:Cd.Attribute,descriptor:{name:"a_Pos",buffer:{usage:ho.DYNAMIC_DRAW,data:[],type:ho.FLOAT},size:3,update:function(m){var A=Of(m.coordinates);return ZC([A[0],A[1]])}}})}}]),c}(fh);function p1(a){var g=W$();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.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 U3=`uniform float u_additive; uniform float u_opacity : 1; uniform float u_stroke_opacity : 1; uniform float u_stroke_width : 2; @@ -5431,7 +5450,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } } -`,Jv=`attribute vec4 a_Color; +`,Z8=`attribute vec4 a_Color; attribute vec3 a_Position; attribute vec3 a_Extrude; attribute float a_Size; @@ -5482,7 +5501,7 @@ void main() { setPickingColor(a_PickingColor); } -`,S$=function(a){(0,ft.Z)(u,a);var p=IP(u);function u(){return(0,Ct.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,Et=Ze===void 0?"rgba(0,0,0,0)":Ze,Mt=l.blend,An=l.blur,Mn=An===void 0?0:An;return{u_blur:Mn,u_additive:Mt==="additive"?1:0,u_opacity:T,u_stroke_opacity:Z,u_stroke_width:Pe,u_stroke_color:Qr(Et)}}},{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,Ra.Z)(no().mark(function g(){return no().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,Ra.Z)(no().mark(function g(){var T;return no().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:qi.DYNAMIC_DRAW,data:[],type:qi.FLOAT},size:3,update:function(T,B,Z,ee){var Pe=(0,Xn.Z)(Z,3),Ze=Pe[0],Et=Pe[1],Mt=Pe[2],An=$g(0,0,1),Mn=$g(Ze,0,Mt),br=Ze>=0?CM(An,Mn):Math.PI*2-CM(An,Mn),Li=Math.PI*2-Math.asin(Et/100),Zo=on();ic(Zo,Zo,br),pu(Zo,Zo,Li);var Go=$g(1,1,0);dD(Go,Go,Zo),$2(Go,Go);var Qs=$g(-1,1,0);dD(Qs,Qs,Zo),$2(Qs,Qs);var aa=$g(-1,-1,0);dD(aa,aa,Zo),$2(aa,aa);var Oa=$g(1,-1,0);dD(Oa,Oa,Zo),$2(Oa,Oa);var yl=[].concat((0,Rr.Z)(Go),(0,Rr.Z)(Qs),(0,Rr.Z)(aa),(0,Rr.Z)(Oa)),Wl=ee%4*3;return[yl[Wl],yl[Wl+1],yl[Wl+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Ld.Attribute,descriptor:{name:"a_Size",buffer:{usage:qi.DYNAMIC_DRAW,data:[],type:qi.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:qi.DYNAMIC_DRAW,data:[],type:qi.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,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,zt.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; +`,W3=function(a){(0,At.Z)(c,a);var g=p1(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"getUninforms",value:function(){var l=this.layer.getLayerConfig(),m=l.opacity,A=m===void 0?1:m,j=l.strokeOpacity,Y=j===void 0?1:j,le=l.strokeWidth,$e=le===void 0?0:le,Ye=l.stroke,Nt=Ye===void 0?"rgba(0,0,0,0)":Ye,qt=l.blend,jn=l.blur,Qn=jn===void 0?0:jn;return{u_blur:Qn,u_additive:qt==="additive"?1:0,u_opacity:A,u_stroke_opacity:Y,u_stroke_width:$e,u_stroke_color:Wr(Nt)}}},{key:"getAnimateUniforms",value:function(){var l=this.layer.getLayerConfig(),m=l.animateOption,A=m===void 0?{enable:!1}:m;return{u_animate:this.animateOption2Array(A),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){return Zi().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",this.buildModels());case 1:case"end":return j.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A;return Zi().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return this.layer.triangulation=oM,Y.next=3,this.layer.buildLayerModel({moduleName:"pointEarthFill",vertexShader:Z8,fragmentShader:U3,triangulation:oM,depth:{enable:!0},blend:this.getBlend()});case 3:return A=Y.sent,Y.abrupt("return",[A]);case 5:case"end":return Y.stop()}},m,this)}));function l(){return u.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:Cd.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:ho.DYNAMIC_DRAW,data:[],type:ho.FLOAT},size:3,update:function(A,j,Y,le){var $e=(0,Oi.Z)(Y,3),Ye=$e[0],Nt=$e[1],qt=$e[2],jn=Nm(0,0,1),Qn=Nm(Ye,0,qt),Ir=Ye>=0?BL(jn,Qn):Math.PI*2-BL(jn,Qn),ki=Math.PI*2-Math.asin(Nt/100),jo=Ku();Os(jo,jo,Ir),jm(jo,jo,ki);var Wo=Nm(1,1,0);Q1(Wo,Wo,jo),Fm(Wo,Wo);var na=Nm(-1,1,0);Q1(na,na,jo),Fm(na,na);var va=Nm(-1,-1,0);Q1(va,va,jo),Fm(va,va);var Fa=Nm(1,-1,0);Q1(Fa,Fa,jo),Fm(Fa,Fa);var vl=[].concat((0,or.Z)(Wo),(0,or.Z)(na),(0,or.Z)(va),(0,or.Z)(Fa)),eu=le%4*3;return[vl[eu],vl[eu+1],vl[eu+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Cd.Attribute,descriptor:{name:"a_Size",buffer:{usage:ho.DYNAMIC_DRAW,data:[],type:ho.FLOAT},size:1,update:function(A){var j=A.size,Y=j===void 0?5:j;return Array.isArray(Y)?[Y[0]]:[Y]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:Cd.Attribute,descriptor:{name:"a_Shape",buffer:{usage:ho.DYNAMIC_DRAW,data:[],type:ho.FLOAT},size:1,update:function(A){var j=A.shape,Y=j===void 0?2:j,le=l.layer.getLayerConfig().shape2d,$e=le.indexOf(Y);return[$e]}}})}}]),c}(fh);function H8(a){var g=$E();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.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 Z$=`varying vec4 v_color; varying float v_lightWeight; uniform float u_pickLight: 0.0; @@ -5500,7 +5519,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } } -`,w6=`precision highp float; +`,G8=`precision highp float; #define pi 3.1415926535 #define ambientRatio 0.5 @@ -5609,7 +5628,7 @@ void main() { setPickingColor(a_PickingColor); } -`,Z2=function(a){(0,ft.Z)(u,a);var p=MD(u);function u(){var c;(0,Ct.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&T.enable){var Oa=T.speed,yl=Oa===void 0?.01:Oa;this.raiseCount+=yl,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(Et),u_heightfixed:Number(An),u_r:T.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:Z,u_linearColor:Go,u_sourceColor:Qs,u_targetColor:aa,u_opacitylinear:Number(br.enable),u_opacitylinear_dir:br.dir==="up"?1:0,u_lightEnable:Number(Zo)}}},{key:"initModels",value:function(){var c=(0,Ra.Z)(no().mark(function g(){return no().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,Ra.Z)(no().mark(function g(){var T,B,Z,ee,Pe,Ze;return no().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:Mi(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:qi.DYNAMIC_DRAW,data:[],type:qi.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:qi.STATIC_DRAW,data:[],type:qi.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:qi.DYNAMIC_DRAW,data:[],type:qi.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,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,zt.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=` +`,K8=function(a){(0,At.Z)(c,a);var g=H8(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;A0&&A.enable){var Fa=A.speed,vl=Fa===void 0?.01:Fa;this.raiseCount+=vl,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(Nt),u_heightfixed:Number(jn),u_r:A.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:Y,u_linearColor:Wo,u_sourceColor:na,u_targetColor:va,u_opacitylinear:Number(Ir.enable),u_opacitylinear_dir:Ir.dir==="up"?1:0,u_lightEnable:Number(jo)}}},{key:"initModels",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){return Zi().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",this.buildModels());case 1:case"end":return j.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A,j,Y,le,$e,Ye;return Zi().wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return A=this.layer.getLayerConfig(),j=A.depth,Y=j===void 0?!0:j,le=A.animateOption.repeat,$e=le===void 0?1:le,this.raiseRepeat=$e,qt.next=4,this.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:G8,fragmentShader:Z$,triangulation:sM,cull:{enable:!0,face:mo(this.mapService.version)},depth:{enable:Y}});case 4:return Ye=qt.sent,qt.abrupt("return",[Ye]);case 6:case"end":return qt.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Cd.Attribute,descriptor:{name:"a_Size",buffer:{usage:ho.DYNAMIC_DRAW,data:[],type:ho.FLOAT},size:3,update:function(m){var A=m.size;if(A){var j=[];return Array.isArray(A)&&(j=A.length===2?[A[0],A[0],A[1]]:A),Array.isArray(A)||(j=[A,A,A]),j}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Cd.Attribute,descriptor:{name:"a_Normal",buffer:{usage:ho.STATIC_DRAW,data:[],type:ho.FLOAT},size:3,update:function(m,A,j,Y,le){return le}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:Cd.Attribute,descriptor:{name:"a_Pos",buffer:{usage:ho.DYNAMIC_DRAW,data:[],type:ho.FLOAT},size:3,update:function(m){var A=Of(m.coordinates);return[A[0],A[1],0]}}})}}]),c}(fh);function H$(a){var g=G$();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function G$(){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 H_=` uniform float u_additive; @@ -5664,7 +5683,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } } -`,T$=`uniform float u_additive; +`,R1=`uniform float u_additive; uniform float u_stroke_opacity : 1; uniform float u_stroke_width : 2; @@ -5741,7 +5760,7 @@ void main() { discard; } } -`,KM=`attribute vec4 a_Color; +`,XC=`attribute vec4 a_Color; attribute vec3 a_Position; attribute vec3 a_Extrude; attribute float a_Size; @@ -5819,7 +5838,7 @@ void main() { setPickingColor(a_PickingColor); } -`,$_=function(a){(0,ft.Z)(u,a);var p=E$(u);function u(){return(0,Ct.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,Et=l.raisingHeight,Mt=Et===void 0?0:Et,An=l.heightfixed,Mn=An===void 0?!1:An,br=l.unit,Li=br===void 0?"pixel":br;return(0,Se.Z)({u_blur_height_fixed:[Ze,Number(Mt),Number(Mn)],u_additive:ee==="additive"?1:0,u_stroke_opacity:T,u_stroke_width:Z,u_size_unit:Wh[Li]},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,Ra.Z)(no().mark(function g(){return no().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,Ra.Z)(no().mark(function g(){var T,B,Z,ee,Pe,Ze,Et,Mt;return no().wrap(function(Mn){for(;;)switch(Mn.prev=Mn.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,Et=ee.type,this.layer.triangulation=Vt,Mn.next=5,this.layer.buildLayerModel({moduleName:Et,vertexShader:Ze,fragmentShader:Pe,inject:this.getInject(),triangulation:Vt,depth:{enable:!1}});case 5:return Mt=Mn.sent,Mn.abrupt("return",[Mt]);case 7:case"end":return Mn.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:qi.DYNAMIC_DRAW,data:[],type:qi.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:qi.DYNAMIC_DRAW,data:[],type:qi.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:qi.DYNAMIC_DRAW,data:[],type:qi.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,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,zt.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 LP=`uniform sampler2D u_texture; +`,d4=function(a){(0,At.Z)(c,a);var g=H$(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"getUninforms",value:function(){var l=this.layer.getLayerConfig(),m=l.strokeOpacity,A=m===void 0?1:m,j=l.strokeWidth,Y=j===void 0?0:j,le=l.blend,$e=l.blur,Ye=$e===void 0?0:$e,Nt=l.raisingHeight,qt=Nt===void 0?0:Nt,jn=l.heightfixed,Qn=jn===void 0?!1:jn,Ir=l.unit,ki=Ir===void 0?"pixel":Ir;return(0,Ne.Z)({u_blur_height_fixed:[Ye,Number(qt),Number(Qn)],u_additive:le==="additive"?1:0,u_stroke_opacity:A,u_stroke_width:Y,u_size_unit:Ff[ki]},this.getStyleAttribute())}},{key:"getAnimateUniforms",value:function(){var l=this.layer.getLayerConfig(),m=l.animateOption,A=m===void 0?{enable:!1}:m;return{u_animate:this.animateOption2Array(A),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),kt)}},{key:"initModels",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){return Zi().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",this.buildModels());case 1:case"end":return j.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A,j,Y,le,$e,Ye,Nt,qt;return Zi().wrap(function(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:return A=this.layer.getLayerConfig(),j=A.animateOption,Y=j===void 0?{enable:!1}:j,le=this.getShaders(Y),$e=le.frag,Ye=le.vert,Nt=le.type,this.layer.triangulation=kt,Qn.next=5,this.layer.buildLayerModel({moduleName:Nt,vertexShader:Ye,fragmentShader:$e,inject:this.getInject(),triangulation:kt,depth:{enable:!1}});case 5:return qt=Qn.sent,Qn.abrupt("return",[qt]);case 7:case"end":return Qn.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"getShaders",value:function(l){if(l.enable)switch(l.type){case"wave":return{frag:H_,vert:XC,type:"pointWave"};default:return{frag:H_,vert:XC,type:"pointWave"}}else return{frag:R1,vert:XC,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:Cd.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:ho.DYNAMIC_DRAW,data:[],type:ho.FLOAT},size:3,update:function(A,j,Y,le){var $e=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],Ye=le%4*3;return[$e[Ye],$e[Ye+1],$e[Ye+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Cd.Attribute,descriptor:{name:"a_Size",buffer:{usage:ho.DYNAMIC_DRAW,data:[],type:ho.FLOAT},size:1,update:function(A){var j=A.size,Y=j===void 0?5:j;return Array.isArray(Y)?[Y[0]]:[Y]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:Cd.Attribute,descriptor:{name:"a_Shape",buffer:{usage:ho.DYNAMIC_DRAW,data:[],type:ho.FLOAT},size:1,update:function(A){var j=A.shape,Y=j===void 0?2:j,le=l.indexOf(Y);return[le]}}})}}]),c}(fh);function DM(a){var g=f4();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function f4(){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 K$=`uniform sampler2D u_texture; uniform vec2 u_textSize; uniform float u_opacity : 1; @@ -5837,7 +5856,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } -`,XM=`attribute vec4 a_Color; +`,X$=`attribute vec4 a_Color; attribute vec3 a_Position; attribute vec3 a_Extrude; attribute float a_Size; @@ -5896,7 +5915,7 @@ void main() { setPickingColor(a_PickingColor); } -`,V3=function(a){(0,ft.Z)(u,a);var p=I1(u);function u(){var c;(0,Ct.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 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 Et=this.bboxes,Mt=ND(Ze),An;try{for(Mt.s();!(An=Mt.n()).done;){var Mn=An.value;if(!Pe.box[Mn]){Pe.box[Mn]=!0;var br=Mn*4;if(u<=Et[br+2]&&c<=Et[br+3]&&l>=Et[br+0]&&g>=Et[br+1]&&(!ee||ee(this.boxKeys[Mn]))){if(Z.hitTest)return B.push(!0),!0;B.push({key:this.boxKeys[Mn],x1:Et[br],y1:Et[br+1],x2:Et[br+2],y2:Et[br+3]})}}}}catch(Li){Mt.e(Li)}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),Et=this.convertToXCellCoord(l),Mt=this.convertToYCellCoord(g),An=Pe;An<=Et;An++)for(var Mn=Ze;Mn<=Mt;Mn++){var br=this.xCellCount*Mn+An;if(T.call(this,u,c,l,g,br,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,Ct.Z)(this,a),(0,Cn.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=zi.apply(b,(0,Rr.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,Et=u?[Z.x+Ze,Z.y]:[0,0],Mt=u?[0,0]:[Z.x+Ze+p[0],Z.y+p[1]],An=(0-Pe)*Z.scale-Ze+Mt[0],Mn=(0-Pe)*Z.scale+Mt[1],br=An+ee.width*Z.scale,Li=Mn+ee.height*Z.scale,Zo={x:An,y:Mn},Go={x:br,y:Mn},Qs={x:An,y:Li},aa={x:br,y:Li};g.push({tl:Zo,tr:Go,bl:Qs,br:aa,tex:ee,glyphOffset:Et})}}catch(Oa){T.e(Oa)}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=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function LM(a,g){if(a){if(typeof a=="string")return PM(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return PM(a,g)}}function PM(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);cthis.width||m<0||u>this.height)return A?!1:[];var Y=[];if(c<=0&&u<=0&&this.width<=l&&this.height<=m){if(A)return!0;for(var le=0;le0:Y}},{key:"queryCell",value:function(c,u,l,m,A,j,Y,le){var $e=Y.seenUids,Ye=this.boxCells[A];if(Ye!==null){var Nt=this.bboxes,qt=nf(Ye),jn;try{for(qt.s();!(jn=qt.n()).done;){var Qn=jn.value;if(!$e.box[Qn]){$e.box[Qn]=!0;var Ir=Qn*4;if(c<=Nt[Ir+2]&&u<=Nt[Ir+3]&&l>=Nt[Ir+0]&&m>=Nt[Ir+1]&&(!le||le(this.boxKeys[Qn]))){if(Y.hitTest)return j.push(!0),!0;j.push({key:this.boxKeys[Qn],x1:Nt[Ir],y1:Nt[Ir+1],x2:Nt[Ir+2],y2:Nt[Ir+3]})}}}}catch(ki){qt.e(ki)}finally{qt.f()}}return!1}},{key:"forEachCell",value:function(c,u,l,m,A,j,Y,le){for(var $e=this.convertToXCellCoord(c),Ye=this.convertToYCellCoord(u),Nt=this.convertToXCellCoord(l),qt=this.convertToYCellCoord(m),jn=$e;jn<=Nt;jn++)for(var Qn=Ye;Qn<=qt;Qn++){var Ir=this.xCellCount*Qn+jn;if(A.call(this,c,u,l,m,Ir,j,Y,le))return}}},{key:"convertToXCellCoord",value:function(c){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(c*this.xScale)))}},{key:"convertToYCellCoord",value:function(c){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(c*this.yScale)))}}]),a}(),g4=eV,UE=function(){function a(g,c){(0,Bt.Z)(this,a),(0,Xn.Z)(this,"viewportPadding",100),this.width=g,this.height=c,this.viewportPadding=Math.max(g,c),this.grid=new g4(g+this.viewportPadding,c+this.viewportPadding,25),this.screenRightBoundary=g+this.viewportPadding,this.screenBottomBoundary=c+this.viewportPadding,this.gridRightBoundary=g+2*this.viewportPadding,this.gridBottomBoundary=c+2*this.viewportPadding}return(0,lt.Z)(a,[{key:"placeCollisionBox",value:function(c){var u=c.x1+c.anchorPointX+this.viewportPadding,l=c.y1+c.anchorPointY+this.viewportPadding,m=c.x2+c.anchorPointX+this.viewportPadding,A=c.y2+c.anchorPointY+this.viewportPadding;return!this.isInsideGrid(u,l,m,A)||this.grid.hitTest(u,l,m,A)?{box:[]}:{box:[u,l,m,A]}}},{key:"insertCollisionBox",value:function(c,u){var l={featureIndex:u};this.grid.insert(l,c[0],c[1],c[2],c[3])}},{key:"project",value:function(c,u,l){var m=gt(u,l,0,1),A=ye(),j=dc.apply(C,(0,or.Z)(c));return dh(A,m,j),{x:(A[0]/A[3]+1)/2*this.width+this.viewportPadding,y:(-A[1]/A[3]+1)/2*this.height+this.viewportPadding}}},{key:"isInsideGrid",value:function(c,u,l,m){return l>=0&&c=0&&u=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function eN(a,g){if(a){if(typeof a=="string")return tV(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return tV(a,g)}}function tV(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);c6&&arguments[6]!==void 0?arguments[6]:[0,0],j=arguments.length>7?arguments[7]:void 0,Y=a.split(` +`),le=[],$e={positionedGlyphs:le,top:A[1],bottom:A[1],left:A[0],right:A[0],lineCount:Y.length,text:a};return j?nV($e,g,Y,c,u,l,m):vy($e,g,Y,c,u,l,m),le.length?$e:!1}function tN(a){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0],c=arguments.length>2?arguments[2]:void 0,u=a.positionedGlyphs,l=u===void 0?[]:u,m=[],A=hP(l),j;try{for(A.s();!(j=A.n()).done;){var Y=j.value,le=Y.metrics,$e=4,Ye=le.advance*Y.scale/2,Nt=c?[Y.x+Ye,Y.y]:[0,0],qt=c?[0,0]:[Y.x+Ye+g[0],Y.y+g[1]],jn=(0-$e)*Y.scale-Ye+qt[0],Qn=(0-$e)*Y.scale+qt[1],Ir=jn+le.width*Y.scale,ki=Qn+le.height*Y.scale,jo={x:jn,y:Qn},Wo={x:Ir,y:Qn},na={x:jn,y:ki},va={x:Ir,y:ki};m.push({tl:jo,tr:Wo,bl:na,br:va,tex:le,glyphOffset:Nt})}}catch(Fa){A.e(Fa)}finally{A.f()}return m}function k2(a,g){var c=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=kM(a))||g&&a&&typeof a.length=="number"){c&&(a=c);var u=0,l=function(){};return{s:l,n:function(){return u>=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function kM(a,g){if(a){if(typeof a=="string")return MM(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return MM(a,g)}}function MM(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);c.5||!Li||Z!==this.preTextStyle.textAllowOverlap)){Go.next=14;break}return Go.next=13,this.reBuildModel();case 13:return Go.abrupt("return",!0);case 14:return Go.abrupt("return",!1);case 15:case"end":return Go.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:qi.STATIC_DRAW,data:[],type:qi.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:qi.DYNAMIC_DRAW,data:[],type:qi.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:qi.DYNAMIC_DRAW,data:[],type:qi.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 Et=R$(Ze),Mt;try{for(Et.s();!(Mt=Et.n()).done;){var An=Mt.value;Z.indexOf(An)===-1&&Z.push(An)}}catch(Mn){Et.e(Mn)}finally{Et.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,Et=Ze===void 0?[0,0]:Ze,Mt=l.textAnchor,An=Mt===void 0?"center":Mt,Mn=l.textOffset,br=Mn===void 0?[0,0]:Mn,Li=l.opacity,Zo=Li===void 0?1:Li,Go=l.strokeOpacity,Qs=Go===void 0?1:Go,aa=l.strokeWidth,Oa=aa===void 0?0:aa,yl=l.stroke,Wl=yl===void 0?"#000":yl;return{fontWeight:T,fontFamily:Z,textAllowOverlap:Pe,padding:Et,textAnchor:An,textOffset:br,opacity:Zo,strokeOpacity:Qs,strokeWidth:Oa,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,Et=B.textOffset,Mt=this.rawEncodeData;this.glyphInfo=Mt.map(function(An){var Mn=An.shape,br=Mn===void 0?"":Mn,Li=An.id,Zo=An.size,Go=Zo===void 0?1:Zo,Qs=An.textOffset?An.textOffset:Et||[0,0],aa=An.textAnchor?An.textAnchor:Ze||"center",Oa=Og(br.toString(),T,Go,aa,"left",ee,Qs,l),yl=ny(Oa,Qs,!1);return An.shaping=Oa,An.glyphQuads=yl,An.centroid=Lh(An.coordinates),An.originCentroid=An.version==="GAODE2.x"?Lh(An.originCoordinates):An.originCentroid=An.centroid,g.glyphInfoMap[Li]={shaping:Oa,glyphQuads:yl,centroid:Lh(An.coordinates)},An})}},{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,Et=Pe.height,Mt=new L6(Ze,Et),An=this.glyphInfo.filter(function(Mn){var br=Mn.shaping,Li=Mn.id,Zo=Li===void 0?0:Li,Go=Mn.version==="GAODE2.x"?Mn.originCentroid:Mn.centroid,Qs=Mn.size,aa=Qs/16,Oa=l.mapService.lngLatToContainer(Go),yl=Mt.placeCollisionBox({x1:br.left*aa-B[0],x2:br.right*aa+B[0],y1:br.top*aa-B[1],y2:br.bottom*aa+B[1],anchorPointX:Oa.x,anchorPointY:Oa.y}),Wl=yl.box;return Wl&&Wl.length?(Mt.insertCollisionBox(Wl,Zo),!0):!1});An.forEach(function(Mn){l.glyphInfoMap[Mn.id]=Mn})}}},{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:qi.LINEAR,min:qi.LINEAR,width:g.width,height:g.height})}},{key:"reBuildModel",value:function(){var c=(0,Ra.Z)(no().mark(function g(){var T;return no().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:MP,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 OP(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 OP(a,p)}}function OP(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u.5||!ki||Y!==this.preTextStyle.textAllowOverlap)){Wo.next=14;break}return Wo.next=13,this.reBuildModel();case 13:return Wo.abrupt("return",!0);case 14:return Wo.abrupt("return",!1);case 15:case"end":return Wo.stop()}},m,this)}));function l(){return u.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:Cd.Attribute,descriptor:{name:"a_textOffsets",buffer:{usage:ho.STATIC_DRAW,data:[],type:ho.FLOAT},size:2,update:function(m,A,j){return[j[5],j[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Cd.Attribute,descriptor:{name:"a_Size",buffer:{usage:ho.DYNAMIC_DRAW,data:[],type:ho.FLOAT},size:1,update:function(m){var A=m.size,j=A===void 0?12:A;return Array.isArray(j)?[j[0]]:[j]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:Cd.Attribute,descriptor:{name:"a_tex",buffer:{usage:ho.DYNAMIC_DRAW,data:[],type:ho.FLOAT},size:2,update:function(m,A,j){return[j[3],j[4]]}}})}},{key:"bindEvent",value:function(){this.layer.isTileLayer||this.layer.on("remapping",this.mapping)}},{key:"textExtent",value:function(){var l=this.mapService.getBounds();return zd(l,.5)}},{key:"initTextFont",value:function(){var l=this.getTextStyle(),m=l.fontWeight,A=l.fontFamily,j=this.rawEncodeData,Y=[];j.forEach(function(le){var $e=le.shape,Ye=$e===void 0?"":$e;Ye=Ye.toString();var Nt=k2(Ye),qt;try{for(Nt.s();!(qt=Nt.n()).done;){var jn=qt.value;Y.indexOf(jn)===-1&&Y.push(jn)}}catch(Qn){Nt.e(Qn)}finally{Nt.f()}}),this.fontService.setFontOptions({characterSet:Y,fontWeight:m,fontFamily:A,iconfont:!1})}},{key:"initIconFontTex",value:function(){var l=this.getTextStyle(),m=l.fontWeight,A=l.fontFamily,j=this.rawEncodeData,Y=[];j.forEach(function(le){var $e=le.shape,Ye=$e===void 0?"":$e;Ye="".concat(Ye),Y.indexOf(Ye)===-1&&Y.push(Ye)}),this.fontService.setFontOptions({characterSet:Y,fontWeight:m,fontFamily:A,iconfont:!0})}},{key:"getTextStyle",value:function(){var l=this.layer.getLayerConfig(),m=l.fontWeight,A=m===void 0?"400":m,j=l.fontFamily,Y=j===void 0?"sans-serif":j,le=l.textAllowOverlap,$e=le===void 0?!1:le,Ye=l.padding,Nt=Ye===void 0?[0,0]:Ye,qt=l.textAnchor,jn=qt===void 0?"center":qt,Qn=l.textOffset,Ir=Qn===void 0?[0,0]:Qn,ki=l.opacity,jo=ki===void 0?1:ki,Wo=l.strokeOpacity,na=Wo===void 0?1:Wo,va=l.strokeWidth,Fa=va===void 0?0:va,vl=l.stroke,eu=vl===void 0?"#000":vl;return{fontWeight:A,fontFamily:Y,textAllowOverlap:$e,padding:Nt,textAnchor:jn,textOffset:Ir,opacity:jo,strokeOpacity:na,strokeWidth:Fa,stroke:eu}}},{key:"generateGlyphLayout",value:function(l){var m=this,A=this.getFontServiceMapping(),j=this.layer.getLayerConfig(),Y=j.spacing,le=Y===void 0?2:Y,$e=j.textAnchor,Ye=$e===void 0?"center":$e,Nt=j.textOffset,qt=this.rawEncodeData;this.glyphInfo=qt.map(function(jn){var Qn=jn.shape,Ir=Qn===void 0?"":Qn,ki=jn.id,jo=jn.size,Wo=jo===void 0?1:jo,na=jn.textOffset?jn.textOffset:Nt||[0,0],va=jn.textAnchor?jn.textAnchor:Ye||"center",Fa=rV(Ir.toString(),A,Wo,va,"left",le,na,l),vl=tN(Fa,na,!1);return jn.shaping=Fa,jn.glyphQuads=vl,jn.centroid=Of(jn.coordinates),jn.originCentroid=jn.version==="GAODE2.x"?Of(jn.originCoordinates):jn.originCentroid=jn.centroid,m.glyphInfoMap[ki]={shaping:Fa,glyphQuads:vl,centroid:Of(jn.coordinates)},jn})}},{key:"getFontServiceMapping",value:function(){var l=this.layer.getLayerConfig(),m=l.fontWeight,A=m===void 0?"400":m,j=l.fontFamily,Y=j===void 0?"sans-serif":j;return this.fontService.getMappingByKey("".concat(Y,"_").concat(A))}},{key:"getFontServiceCanvas",value:function(){var l=this.layer.getLayerConfig(),m=l.fontWeight,A=m===void 0?"400":m,j=l.fontFamily,Y=j===void 0?"sans-serif":j;return this.fontService.getCanvasByKey("".concat(Y,"_").concat(A))}},{key:"filterGlyphs",value:function(){var l=this,m=this.layer.getLayerConfig(),A=m.padding,j=A===void 0?[0,0]:A,Y=m.textAllowOverlap,le=Y===void 0?!1:Y;if(!le){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var $e=this.rendererService.getViewportSize(),Ye=$e.width,Nt=$e.height,qt=new UE(Ye,Nt),jn=this.glyphInfo.filter(function(Qn){var Ir=Qn.shaping,ki=Qn.id,jo=ki===void 0?0:ki,Wo=Qn.version==="GAODE2.x"?Qn.originCentroid:Qn.centroid,na=Qn.size,va=na/16,Fa=l.mapService.lngLatToContainer(Wo),vl=qt.placeCollisionBox({x1:Ir.left*va-j[0],x2:Ir.right*va+j[0],y1:Ir.top*va-j[1],y2:Ir.bottom*va+j[1],anchorPointX:Fa.x,anchorPointY:Fa.y}),eu=vl.box;return eu&&eu.length?(qt.insertCollisionBox(eu,jo),!0):!1});jn.forEach(function(Qn){l.glyphInfoMap[Qn.id]=Qn})}}},{key:"initGlyph",value:function(){var l=this.layer.getLayerConfig(),m=l.iconfont,A=m===void 0?!1:m;A?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(A)}},{key:"updateTexture",value:function(){var l=this.rendererService.createTexture2D,m=this.getFontServiceCanvas();this.textureHeight=m.height,this.texture&&this.texture.destroy(),this.texture=l({data:m,mag:ho.LINEAR,min:ho.LINEAR,width:m.width,height:m.height})}},{key:"reBuildModel",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A;return Zi().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return this.filterGlyphs(),Y.next=3,this.layer.buildLayerModel({moduleName:"pointText",vertexShader:dP,fragmentShader:OM,triangulation:RM.bind(this),inject:this.getInject(),depth:{enable:!1}});case 3:A=Y.sent,this.layer.models=[A];case 5:case"end":return Y.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()}]),c}(fh),rN={fillImage:X8,fill:d4,radar:H3,image:Y8,normal:J8,simplePoint:U8,extrude:K8,text:fP,earthFill:W3,earthExtrude:AM},NM=rN;function oV(a,g){var c=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=sV(a))||g&&a&&typeof a.length=="number"){c&&(a=c);var u=0,l=function(){};return{s:l,n:function(){return u>=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function sV(a,g){if(a){if(typeof a=="string")return iN(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return iN(a,g)}}function iN(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);c0&&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,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,zt.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,ft.Z)(u,a);var p=jD(u);function u(){var c;(0,Ct.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""}}]),c}(fh),ZM={fill:Q3},jV=ZM;function UV(a){var g=HM();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function HM(){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 w4=function(a){(0,At.Z)(c,a);var g=UV(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;A0&&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,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,zt.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,ft.Z)(u,a);var p=jE(u);function u(){var c;(0,Ct.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}(Ja),e8,UD,wO,HD,eI,tI,Bw,SO=Fa.cloneDeep,IW=(e8=(0,As.b2)(),UD=(0,As.f3)(vr.IMapService),wO=(0,As.f3)(vr.IFontService),e8(HD=(eI=function(){function a(){(0,Ct.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,Ra.Z)(no().mark(function T(){return no().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,Ra.Z)(no().mark(function B(Z){var ee;return no().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 Et=l.mapping(u,Pe,Ze,u.getEncodedData());u.setEncodedData(Et)}}}})}},{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(Et){return Et.scale!==void 0}).filter(function(Et){return Et.name!=="filter"}),Ze=l.map(function(Et,Mt){var An=g?g[Mt]:{},Mn=(0,Se.Z)({id:Et._id,coordinates:Et.coordinates},An);if(Pe.forEach(function(Zo){var Go=T.applyAttributeMapping(Zo,Et);(Zo.name==="color"||Zo.name==="stroke")&&(Go=Go.map(function(Qs){return Qr(Qs)})),Mn[Zo.name]=Array.isArray(Go)&&Go.length===1?Go[0]:Go,Zo.name==="shape"&&(Mn.shape=T.fontService.getIconFontKey(Mn[Zo.name]))}),ee.enable&&Mn.shape==="line"){var br=Mn.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,As.b2)(),t8(q2=function(){function a(){(0,Ct.Z)(this,a)}return(0,He.Z)(a,[{key:"apply",value:function(u){var c=this;this.mapService=u.getContainer().get(vr.IMapService),u.hooks.init.tapPromise("DataSourcePlugin",(0,Ra.Z)(no().mark(function l(){var g,T,B,Z;return no().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(Et){Et.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,Ra.Z)(no().mark(function l(){var g,T,B;return no().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,Et=B.length,Mt=a[Z++],An,Mn,br=map(),Li,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,Et){ee.push({key:Et,values:T(Ze,Z)})})),Pe!=null?ee.sort(function(Ze,Et){return Pe(Ze.key,Et.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:GP(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(Et){return isNaN(Et=+Et)?g:(Z||(Z=B(a.map(c),p,u)))(c(T(Et)))}return Ze.invert=function(Et){return T(l((ee||(ee=B(p,a.map(c),GP)))(Et)))},Ze.domain=function(Et){return arguments.length?(a=o8.call(Et,$W),T===zy||(T=u8(a)),Pe()):a.slice()},Ze.range=function(Et){return arguments.length?(p=VE.call(Et),Pe()):p.slice()},Ze.rangeRound=function(Et){return p=VE.call(Et),u=BW,Pe()},Ze.clamp=function(Et){return arguments.length?(T=Et?u8(a):zy,Ze):T!==zy},Ze.interpolate=function(Et){return arguments.length?(u=Et,Pe()):u},Ze.unknown=function(Et){return arguments.length?(g=Et,Ze):g},function(Et,Mt){return c=Et,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 YP(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=YP(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=YP(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")+YP(a,Math.max(0,p+g-1))[0]}function UE(a,p){var u=YP(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 qP=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(qP.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(qP.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 Et=Ze.fill,Mt=Ze.align,An=Ze.sign,Mn=Ze.symbol,br=Ze.zero,Li=Ze.width,Zo=Ze.comma,Go=Ze.precision,Qs=Ze.trim,aa=Ze.type;aa==="n"?(Zo=!0,aa="g"):jc[aa]||(Go===void 0&&(Go=12),Qs=!0,aa="g"),(br||Et==="0"&&Mt==="=")&&(br=!0,Et="0",Mt="=");var Oa=Mn==="$"?u:Mn==="#"&&/[boxX]/.test(aa)?"0"+aa.toLowerCase():"",yl=Mn==="$"?c:/[%p]/.test(aa)?T:"",Wl=jc[aa],Jl=/[defgprs%]/.test(aa);Go=Go===void 0?6:/[gprs]/.test(aa)?Math.max(1,Math.min(21,Go)):Math.max(0,Math.min(20,Go));function ju(Ku){var Jc=Oa,gd=yl,Ch,og,um;if(aa==="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),Go),Qs&&(Ku=yX(Ku)),Zg&&+Ku==0&&An!=="+"&&(Zg=!1),Jc=(Zg?An==="("?An:B:An==="-"||An==="("?"":An)+Jc,gd=(aa==="s"?sI[8+HW/3]:"")+gd+(Zg&&An==="("?")":""),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&&!br&&(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,Et){var Mt=ee((Ze=Ww(Ze),Ze.type="f",Ze)),An=Math.max(-8,Math.min(8,Math.floor(KD(Et)/3)))*3,Mn=Math.pow(10,-An),br=sI[8+An/3];return function(Li){return Mt(Mn*Li)+br}}return{format:ee,formatPrefix:Pe}}var HE,JP,d8;GW({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function GW(a){return HE=ZW(a),JP=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 QP(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 JP(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 QP(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 XP(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(;EtPe)break;Zo.push(br)}}else for(;Et=1;--Mn)if(br=An*Mn,!(brPe)break;Zo.push(br)}}else Zo=(0,by.sd)(Et,Mt,Math.min(Mt-Et,Li)).map(g);return Ze?Zo.reverse():Zo},p.tickFormat=function(B,Z){if(Z==null&&(Z=c===10?".0e":","),typeof Z!="function"&&(Z=JP(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,i4=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=i4,xX=i4.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),o4=GE(2),YW=GE(3),tS=GE(4),qW=GE(5),cI=GE(6),CX=ZO.range,dI=Wy.range,_8=o4.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,s4=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,a4=g1(function(){},function(a,p){a.setTime(+a+p)},function(a,p){return p-a});a4.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}):a4};var w8=a4,DX=a4.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,l4=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}),u4=l4,aj=l4.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),Et=jw(g),Mt=pI(T),An=jw(T),Mn=pI(B),br=jw(B),Li=pI(Z),Zo=jw(Z),Go={a:Zg,A:Zm,b:p0,B:nv,c:null,d:nA,e:nA,f:yj,g:d4,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},Qs={a:yS,A:_S,b:I0,B:bp,c:null,d:h4,e:h4,f:e1,g:Lj,G:R8,H:f_,I:M8,j:f4,L:O8,m:Tj,M:iS,p:eC,q:hk,Q:F8,s:B8,S:t5,u:FC,U:n5,V:Dj,w:p4,W:Aj,x:null,X:null,y:Ij,Y:Pj,Z:kj,"%":N8},aa={a:ju,A:Ku,b:Jc,B:gd,c:Ch,d:c4,e:c4,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};Go.x=Oa(u,Go),Go.X=Oa(c,Go),Go.c=Oa(p,Go),Qs.x=Oa(u,Qs),Qs.X=Oa(c,Qs),Qs.c=Oa(p,Qs);function Oa(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=u4.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=aa[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=An[Fh[0].toLowerCase()],b0+Fh[0].length):-1}function Ku(gp,Am,b0){var Fh=Ze.exec(Am.slice(b0));return Fh?(gp.w=Et[Fh[0].toLowerCase()],b0+Fh[0].length):-1}function Jc(gp,Am,b0){var Fh=Li.exec(Am.slice(b0));return Fh?(gp.m=Zo[Fh[0].toLowerCase()],b0+Fh[0].length):-1}function gd(gp,Am,b0){var Fh=Mn.exec(Am.slice(b0));return Fh?(gp.m=br[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=Oa(gp+="",Go);return Am.toString=function(){return gp},Am},parse:function(gp){var Am=yl(gp+="",!1);return Am.toString=function(){return gp},Am},utcFormat:function(gp){var Am=Oa(gp+="",Qs);return Am.toString=function(){return gp},Am},utcParse:function(gp){var Am=yl(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 c4(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 d4(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 h4(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 f4(a,p){return s0(1+u4.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 p4(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,Et=Z(".%L"),Mt=Z(":%S"),An=Z("%I:%M"),Mn=Z("%I %p"),br=Z("%a %d"),Li=Z("%b %d"),Zo=Z("%B"),Go=Z("%Y"),Qs=[[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 aa(yl){return(T(yl)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 Et;ee.scale.range((Et=ee.option)===null||Et===void 0?void 0:Et.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=ZP([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=ZP([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 Et=this.createScaleConfig(Ze,u,Z,g);ee.scale=this.createDefaultScale(Et),ee.option=Et}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,Se.Z)((0,Se.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),y4,s5,G8=(y4=(0,As.b2)(),y4(s5=function(){function a(){(0,Ct.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,Se.Z)({},u.layerModel.getAnimateUniforms()))})})}}]),a}())||s5),$C,a5,Bj=($C=(0,As.b2)(),$C(a5=function(){function a(){(0,Ct.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,Rr.Z)(l)),u.updateLayerConfig({mask:g})}})}}]),a}())||a5),zj=function(){function a(p){var u=p.rendererService,c=p.layerService,l=p.parent;(0,Ct.Z)(this,a),(0,Cn.Z)(this,"tileResource",new Map),(0,Cn.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,Ra.Z)(no().mark(function c(){var l=this,g,T;return no().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return g=this.getRenderLayers(),T=g.map(function(){var ee=(0,Ra.Z)(no().mark(function Pe(Ze){return no().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,Rr.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,Rr.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,Ct.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=xa.polygon(g.coordinates);c===null?c=T:c=(0,$j.Z)(c,T)}),l&&(c.properties=(0,Se.Z)({},l)),c}}]),a}(),bI="select",xI="active",l5=function(){function a(p){var u=p.layerService,c=p.tileLayerService,l=p.parent;(0,Ct.Z)(this,a),(0,Cn.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(vr.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,Xn.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,Xn.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,Xn.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,Xn.Z)(ee,3),Ze=Pe[0],Et=Pe[1],Mt=Pe[2];this.updateHighLight(Ze,Et,Mt,xI);return}}},{key:"color2PickId",value:function(u,c,l){return oi(new Uint8Array([u,c,l]))}},{key:"pickId2Color",value:function(u){return Zi(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,Rr.Z)(g.getFeatureById(u)))}),l}},{key:"pickRasterLayer",value:function(u,c,l){return!1}}]),a}();function K8(a){return a==="PolygonLayer"?FP:a==="LineLayer"?PE:RP}function Wj(a){return["PolygonLayer","LineLayer"].indexOf(a)!==-1}function jj(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,zt.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,ft.Z)(u,a);var p=jj(u);function u(c,l){var g;return(0,Ct.Z)(this,u),g=p.call(this),(0,Cn.Z)((0,cs.Z)(g),"visible",!0),(0,Cn.Z)((0,cs.Z)(g),"layers",[]),(0,Cn.Z)((0,cs.Z)(g),"isLoaded",!1),(0,Cn.Z)((0,cs.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,Xn.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,Se.Z)((0,Se.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,Ra.Z)(no().mark(function g(){var T,B,Z;return no().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return T=new FP({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,Ra.Z)(no().mark(function g(T,B){var Z;return no().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,Ra.Z)(no().mark(function g(T){var B;return no().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,Cn.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 _4(a){var p=u5();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,zt.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,ft.Z)(u,a);var p=_4(u);function u(){return(0,Ct.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Ra.Z)(no().mark(function g(){var T,B,Z,ee;return no().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 RP({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=b4();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,zt.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 Zj=function(a){(0,ft.Z)(u,a);var p=Hj(u);function u(){return(0,Ct.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Ra.Z)(no().mark(function g(){var T,B,Z,ee;return no().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,Se.Z)({},B)).source(Z.data,Z.options),T&&Object.keys(T).forEach(function(Et){var Mt,An,Mn=Et;ee[Mn]((Mt=T[Mn])===null||Mt===void 0?void 0:Mt.field,(An=T[Mn])===null||An===void 0?void 0:An.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,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,zt.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 x4=function(a){(0,ft.Z)(u,a);var p=Gj(u);function u(){return(0,Ct.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Ra.Z)(no().mark(function g(){var T,B,Z,ee;return no().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,Se.Z)({},B)).source(Z.data,Z.options),T&&Object.keys(T).forEach(function(Et){var Mt,An,Mn=Et;ee[Mn]((Mt=T[Mn])===null||Mt===void 0?void 0:Mt.field,(An=T[Mn])===null||An===void 0?void 0:An.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,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,zt.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,ft.Z)(u,a);var p=Yj(u);function u(){return(0,Ct.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Ra.Z)(no().mark(function g(){var T,B,Z,ee;return no().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),Z=this.getSourceOption(),ee=new BP((0,Se.Z)({},B)).source(Z.data,Z.options),T&&Object.keys(T).forEach(function(Et){var Mt,An,Mn=Et;ee[Mn]((Mt=T[Mn])===null||Mt===void 0?void 0:Mt.field,(An=T[Mn])===null||An===void 0?void 0:An.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,Se.Z)({type:"rasterRgb",extent:this.sourceTile.bounds},B),transforms:l.transforms}}}}]),u}(JE);function X8(a){var p=qj();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,zt.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,ft.Z)(u,a);var p=X8(u);function u(){return(0,Ct.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Ra.Z)(no().mark(function g(){var T,B,Z,ee;return no().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),Z=this.getSourceOption(),ee=new BP((0,Se.Z)({},B)).source(Z.data,Z.options),T&&Object.keys(T).forEach(function(Et){var Mt,An,Mn=Et;ee[Mn]((Mt=T[Mn])===null||Mt===void 0?void 0:Mt.field,(An=T[Mn])===null||An===void 0?void 0:An.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,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,zt.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,ft.Z)(u,a);var p=wI(u);function u(){return(0,Ct.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Ra.Z)(no().mark(function g(){var T,B,Z,ee,Pe,Ze,Et;return no().wrap(function(An){for(;;)switch(An.prev=An.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),Et=new BP((0,Se.Z)((0,Se.Z)({},B),{},{colorTexture:this.colorTexture})).source(Z.data,Z.options),T&&Object.keys(T).forEach(function(Mn){var br,Li,Zo=Mn;Et[Zo]((br=T[Zo])===null||br===void 0?void 0:br.field,(Li=T[Zo])===null||Li===void 0?void 0:Li.values)}),An.next=9,this.addLayer(Et);case 9:this.isLoaded=!0;case 10:case"end":return An.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,Se.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,Cn.Z)(this,"viewchange",eF(this.mapchange,24)),this.parent=p;var c=this.parent.getContainer();this.rendererService=c.get(vr.IRendererService),this.layerService=c.get(vr.ILayerService),this.mapService=c.get(vr.IMapService),this.pickingService=c.get(vr.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,Ra.Z)(no().mark(function c(){var l=this,g,T;return no().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,Se.Z)((0,Se.Z)({},p),a)}function PI(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function D4(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,A4=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 I4(a,p){var u=(0,Xn.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,Xn.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*A4,T*A4]}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,Et=Z/p5/ee;if(B.pixelsPerMeter=[Et,-Et,Et],B.metersPerPixel=[1/Et,-1/Et,1/Et],B.pixelsPerDegree=[Pe,-Ze,Et],B.degreesPerPixel=[1/Pe,-1/Ze,1/Et],T){var Mt=Hx*Math.tan(p*Hx)/ee,An=Pe*Mt/2,Mn=Z/p5*Mt,br=Mn/Ze*Et;B.pixelsPerDegree2=[0,-An,Mn],B.pixelsPerMeter2=[br,0,br]}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}),Et=Ze.pixelsPerMeter,Mt=Ze.pixelsPerMeter2,An=I4(a,Pe);An[0]+=B*(Et[0]+Mt[0]*Z),An[1]+=Z*(Et[1]+Mt[1]*Z);var Mn=g5(An,Pe),br=(g||0)+(ee||0);return Number.isFinite(g)||Number.isFinite(ee)?[Mn[0],Mn[1],br]:Mn}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]),il(ee,ee,[1,1,1/p]),pu(ee,ee,-u*Hx),od(ee,ee,c*Hx),Z&&il(ee,ee,[1,-1,1]),T&&Kl(ee,ee,tP([],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,Et=Math.atan(.5/l),Mt=Math.sin(Et)*l/Math.sin(Math.PI/2-Ze-Et),An=Math.cos(Math.PI/2-Ze)*Mt+l;return{fov:2*Math.atan(u/2/l),aspect:p/u,focalDistance:l,near:Z,far:An*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,Et=bi([],Z,ee,Pe,Ze);return Et}function EF(a,p){var u=(0,Xn.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)),D4(p,[c,l,T,1])}function TF(a,p){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,c=(0,Xn.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=D4(p,[l,g,T,1]);return B}var Z=D4(p,[l,g,0,1]),ee=D4(p,[l,g,1,1]),Pe=Z[2],Ze=ee[2],Et=Pe===Ze?0:((u||0)-Pe)/(Ze-Pe);return Sg([],Z,ee,Et)}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,Ct.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();il(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,Xn.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,Xn.Z)(u,3),Z=B[0],ee=B[1],Pe=B[2],Ze=g?ee:this.height-ee,Et=T&&T*this.pixelsPerMeter,Mt=TF([Z,Ze,Pe],this.pixelUnprojectionMatrix,Et),An=this.unprojectPosition(Mt),Mn=(0,Xn.Z)(An,3),br=Mn[0],Li=Mn[1],Zo=Mn[2];return Number.isFinite(Pe)?[br,Li,Zo]:Number.isFinite(T)?[br,Li,T]:[br,Li]}},{key:"projectPosition",value:function(u){var c=this.projectFlat(u),l=(0,Xn.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,Xn.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,Et=(0,Xn.Z)(c,2),Mt=(0,Xn.Z)(Et[0],2),An=Mt[0],Mn=Mt[1],br=(0,Xn.Z)(Et[1],2),Li=br[0],Zo=br[1];if(Number.isFinite(ee)){var Go=ee;ee={top:Go,bottom:Go,left:Go,right:Go}}else QE(Number.isFinite(ee.top)&&Number.isFinite(ee.bottom)&&Number.isFinite(ee.left)&&Number.isFinite(ee.right));var Qs=new eT({width:p,height:u,longitude:0,latitude:0,zoom:0}),aa=Qs.project([An,Zo]),Oa=Qs.project([Li,Mn]),yl=[Math.max(Math.abs(Oa[0]-aa[0]),g),Math.max(Math.abs(Oa[1]-aa[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]/yl[0],ju=Wl[1]/yl[1],Ku=(ee.right-ee.left)/2/Jl,Jc=(ee.bottom-ee.top)/2/ju,gd=[(Oa[0]+aa[0])/2+Ku,(Oa[1]+aa[1])/2+Jc],Ch=Qs.unproject(gd),og=Qs.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,ft.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,Et=c.pitch,Mt=Et===void 0?0:Et,An=c.bearing,Mn=An===void 0?0:An,br=c.altitude,Li=br===void 0?1.5:br,Zo=c.nearZMultiplier,Go=c.farZMultiplier;(0,Ct.Z)(this,p),l=l||1,g=g||1;var Qs=MI(Ze);Li=Math.max(.75,Li);var aa=I4([ee,B],Qs);aa[2]=0;var Oa=OI({width:l,height:g,pitch:Mt,bearing:Mn,altitude:Li,nearZMultiplier:Zo||1/g,farZMultiplier:Go||1.01}),yl=hV({height:g,center:aa,pitch:Mt,bearing:Mn,altitude:Li,flipY:!0});return u=(0,zt.Z)(this,(0,mt.Z)(p).call(this,{width:l,height:g,viewMatrix:yl,projectionMatrix:Oa})),u.latitude=B,u.longitude=ee,u.zoom=Ze,u.pitch=Mt,u.bearing=Mn,u.altitude=Li,u.scale=Qs,u.center=aa,u.pixelsPerMeter=SF((0,cs.Z)((0,cs.Z)(u))).pixelsPerMeter[2],Object.freeze((0,cs.Z)((0,cs.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 I4(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=I4(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,Ct.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,Se.Z)((0,Se.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,L4;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{ +`,AN={0:"#3288bd",.1:"#66c2a5",.2:"#abdda4",.3:"#e6f598",.4:"#fee08b",.5:"#fdae61",.6:"#f46d43",1:"#d53e4f"},XE=function(a){(0,At.Z)(c,a);var g=XM(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;A0&&arguments[0]!==void 0?arguments[0]:{},A=this.layer.getLayerConfig(),j=A.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:j||1,u_texture:this.texture},blend:this.getBlend(),stencil:this.getStencil(m)}),this.layer.hooks.afterRender.call()}}]),c}(fh),KV={wind:XE},XV=KV;function YV(a){var g=E4();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.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 DN=function(a){(0,At.Z)(c,a);var g=YV(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;A0&&arguments[0]!==void 0?arguments[0]:{};return this.layerModel&&this.layerModel.render(l),this}},{key:"getDefaultConfig",value:function(){var l=this.getModelType(),m={wind:{}};return m[l]}},{key:"getModelType",value:function(){return"wind"}}]),c}(ul),rA,YM,T4,Nw,iA,IN,LN,YE=Js.cloneDeep,oA=(rA=(0,fa.b2)(),YM=(0,fa.f3)(Fr.IMapService),T4=(0,fa.f3)(Fr.IFontService),rA(Nw=(iA=function(){function a(){(0,Bt.Z)(this,a),P(this,"mapService",IN,this),P(this,"fontService",LN,this)}return(0,lt.Z)(a,[{key:"apply",value:function(c,u){var l=this,m=u.styleAttributeService;c.hooks.init.tapPromise("DataMappingPlugin",(0,pl.Z)(Zi().mark(function A(){return Zi().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:c.log(Ev.MappingStart,dd.INIT),l.generateMaping(c,{styleAttributeService:m}),c.log(Ev.MappingEnd,dd.INIT);case 3:case"end":return Y.stop()}},A)}))),c.hooks.beforeRenderData.tapPromise("DataMappingPlugin",function(){var A=(0,pl.Z)(Zi().mark(function j(Y){var le;return Zi().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(Y){Ye.next=2;break}return Ye.abrupt("return",Y);case 2:return c.dataState.dataMappingNeedUpdate=!1,c.log(Ev.MappingStart,dd.UPDATE),le=l.generateMaping(c,{styleAttributeService:m}),c.log(Ev.MappingEnd,dd.UPDATE),Ye.abrupt("return",le);case 7:case"end":return Ye.stop()}},j)}));return function(j){return A.apply(this,arguments)}}()),c.hooks.beforeRender.tap("DataMappingPlugin",function(){var A=c.getSource();if(!(c.layerModelNeedUpdate||!A||!A.inited)){var j=m.getLayerStyleAttributes()||[],Y=m.getLayerStyleAttribute("filter"),le=A.data.dataArray;if(!(Array.isArray(le)&&le.length===0)){var $e=j.filter(function(qt){return qt.needRemapping}),Ye=le;if(Y!=null&&Y.needRemapping&&Y!==null&&Y!==void 0&&Y.scale&&(Ye=le.filter(function(qt){return l.applyAttributeMapping(Y,qt)[0]})),$e.length){var Nt=l.mapping(c,$e,Ye,c.getEncodedData());c.setEncodedData(Nt)}}}})}},{key:"generateMaping",value:function(c,u){var l=this,m=u.styleAttributeService,A=m.getLayerStyleAttributes()||[],j=m.getLayerStyleAttribute("filter"),Y=c.getSource().data.dataArray,le=Y;j!=null&&j.scale&&(le=Y.filter(function(Ye){return l.applyAttributeMapping(j,Ye)[0]})),le=c.processData(le);var $e=this.mapping(c,A,le,void 0);return c.setEncodedData($e),Y.length===0&&c.encodeDataLength===0?!1:(c.emit("dataUpdate",null),!0)}},{key:"mapping",value:function(c,u,l,m){var A=this,j=c.getLayerConfig(),Y=j.arrow,le=Y===void 0?{enable:!1}:Y,$e=u.filter(function(Nt){return Nt.scale!==void 0}).filter(function(Nt){return Nt.name!=="filter"}),Ye=l.map(function(Nt,qt){var jn=m?m[qt]:{},Qn=(0,Ne.Z)({id:Nt._id,coordinates:Nt.coordinates},jn);if($e.forEach(function(jo){var Wo=A.applyAttributeMapping(jo,Nt);(jo.name==="color"||jo.name==="stroke")&&(Wo=Wo.map(function(na){return Wr(na)})),Qn[jo.name]=Array.isArray(Wo)&&Wo.length===1?Wo[0]:Wo,jo.name==="shape"&&(Qn.shape=A.fontService.getIconFontKey(Qn[jo.name]))}),le.enable&&Qn.shape==="line"){var Ir=Qn.coordinates;if(c.arrowInsertCount0&&this.mapService.version===Zp["GAODE2.x"]){var m=u.coordCenter||u.getSource().center;c.filter(function(A){return!A.originCoordinates}).map(function(A){A.version=Zp["GAODE2.x"],A.originCoordinates=YE(A.coordinates),A.coordinates=l.mapService.coordToAMap2RelativeCoordinates(A.coordinates,m)})}}},{key:"adjustData2SimpleCoordinates",value:function(c){var u=this;c.length>0&&this.mapService.version===Zp.SIMPLE&&c.map(function(l){l.simpleCoordinate||(l.coordinates=u.unProjectCoordinates(l.coordinates),l.simpleCoordinate=!0)})}},{key:"unProjectCoordinates",value:function(c){var u=this;if(typeof c[0]=="number")return this.mapService.simpleMapCoord.unproject(c);if(c[0]&&c[0][0]instanceof Array){var l=[];return c.map(function(A){var j=[];A.map(function(Y){j.push(u.mapService.simpleMapCoord.unproject(Y))}),l.push(j)}),l}else{var m=[];return c.map(function(A){m.push(u.mapService.simpleMapCoord.unproject(A))}),m}}},{key:"applyAttributeMapping",value:function(c,u){var l;if(!c.scale)return[];var m=(c==null||(l=c.scale)===null||l===void 0?void 0:l.scalers)||[],A=[];m.forEach(function(Y){var le,$e=Y.field;(u.hasOwnProperty($e)||((le=c.scale)===null||le===void 0?void 0:le.type)==="variable")&&A.push(u[$e])});var j=c.mapping?c.mapping(A):[];return j}},{key:"getArrowPoints",value:function(c,u){var l=[u[0]-c[0],u[1]-c[1]],m=Mf(l),A=[c[0]+m[0]*1e-4,c[1]+m[1]*1e-4];return A}}]),a}(),IN=ee(iA.prototype,"mapService",[YM],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),LN=ee(iA.prototype,"fontService",[T4],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),iA))||Nw),PN,kN,qV=(PN=(0,fa.b2)(),PN(kN=function(){function a(){(0,Bt.Z)(this,a)}return(0,lt.Z)(a,[{key:"apply",value:function(c){var u=this;this.mapService=c.getContainer().get(Fr.IMapService),c.hooks.init.tapPromise("DataSourcePlugin",(0,pl.Z)(Zi().mark(function l(){var m,A,j,Y;return Zi().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(c.log(Ev.SourceInitStart,dd.INIT),m=c.getSource(),m||(A=c.sourceOption||c.defaultSourceConfig,j=A.data,Y=A.options,m=new BC(j,Y),c.setSource(m)),!m.inited){$e.next=8;break}u.updateClusterData(c),c.log(Ev.SourceInitEnd,dd.INIT),$e.next=10;break;case 8:return $e.next=10,new Promise(function(Ye){m.on("update",function(Nt){Nt.type==="inited"&&(u.updateClusterData(c),c.log(Ev.SourceInitEnd,dd.INIT)),Ye(null)})});case 10:case"end":return $e.stop()}},l)}))),c.hooks.beforeRenderData.tapPromise("DataSourcePlugin",(0,pl.Z)(Zi().mark(function l(){var m,A,j;return Zi().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return m=u.updateClusterData(c),A=c.dataState.dataSourceNeedUpdate,c.dataState.dataSourceNeedUpdate=!1,j=m||A,le.abrupt("return",j);case 5:case"end":return le.stop()}},l)})))}},{key:"updateClusterData",value:function(c){if(c.isTileLayer||c.tileLayer||!c.getSource())return!1;var u=c.getSource(),l=u.cluster,m=u.clusterOptions.zoom,A=m===void 0?0:m,j=this.mapService.getZoom()-1,Y=c.dataState.dataSourceNeedUpdate;return l&&Y&&u.updateClusterData(Math.floor(j)),l&&Math.abs(c.clusterZoom-j)>=1?(A!==Math.floor(j)&&u.updateClusterData(Math.floor(j)),c.clusterZoom=j,!0):!1}}]),a}())||kN),Py=_(57965);function MN(a,g,c,u,l){var m=a*a,A=m*a;return((1-3*a+3*m-A)*g+(4-6*m+3*A)*c+(1+3*a+3*m-3*A)*u+A*l)/6}function JV(a){var g=a.length-1;return function(c){var u=c<=0?c=0:c>=1?(c=1,g-1):Math.floor(c*g),l=a[u],m=a[u+1],A=u>0?a[u-1]:2*l-m,j=u180||c<-180?c-360*Math.round(c/360):c):constant(isNaN(a)?g:a)}function ON(a){return(a=+a)==1?Mv:function(g,c){return c-g?eS(g,c,a):qE(isNaN(g)?c:g)}}function Mv(a,g){var c=g-a;return c?sA(a,c):qE(isNaN(a)?g:a)}var aA=function a(g){var c=ON(g);function u(l,m){var A=c((l=vr(l)).r,(m=vr(m)).r),j=c(l.g,m.g),Y=c(l.b,m.b),le=Mv(l.opacity,m.opacity);return function($e){return l.r=A($e),l.g=j($e),l.b=Y($e),l.opacity=le($e),l+""}}return u.gamma=a,u}(1);function D4(a){return function(g){var c=g.length,u=new Array(c),l=new Array(c),m=new Array(c),A,j;for(A=0;A=a.length)return c!=null&&j.sort(c),u!=null?u(j):j;for(var Ye=-1,Nt=j.length,qt=a[Y++],jn,Qn,Ir=map(),ki,jo=le();++Yea.length)return j;var le,$e=g[Y-1];return u!=null&&Y>=a.length?le=j.entries():(le=[],j.each(function(Ye,Nt){le.push({key:Nt,values:A(Ye,Y)})})),$e!=null?le.sort(function(Ye,Nt){return $e(Ye.key,Nt.key)}):le}return l={object:function(j){return m(j,0,g_,N1)},map:function(j){return m(j,0,jv,cA)},entries:function(j){return A(m(j,0,jv,cA),0)},key:function(j){return a.push(j),l},sortKeys:function(j){return g[a.length-1]=j,l},sortValues:function(j){return c=j,l},rollup:function(j){return u=j,l}}}function g_(){return{}}function N1(a,g,c){a[g]=c}function jv(){return map()}function cA(a,g,c){a.set(g,c)}function bP(){}var JE=S0.prototype;bP.prototype=ej.prototype={constructor:bP,has:JE.has,add:function(a){return a+="",this[Cf+a]=a,this},remove:JE.remove,clear:JE.clear,values:JE.keys,size:JE.size,empty:JE.empty,each:JE.each};function ej(a,g){var c=new bP;if(a instanceof bP)a.each(function(m){c.add(m)});else if(a){var u=-1,l=a.length;if(g==null)for(;++uc&&(m=g.slice(c,m),j[A]?j[A]+=m:j[++A]=m),(u=u[0])===(l=l[0])?j[A]?j[A]+=l:j[++A]=l:(j[++A]=null,Y.push({i:A,x:wP(u,l)})),c=JM.lastIndex;return cc&&(u=g,g=c,c=u),function(l){return Math.max(g,Math.min(c,l))}}function uj(a,g,c){var u=a[0],l=a[1],m=g[0],A=g[1];return l2?cj:uj,Y=le=null,Ye}function Ye(Nt){return isNaN(Nt=+Nt)?m:(Y||(Y=j(a.map(u),g,c)))(u(A(Nt)))}return Ye.invert=function(Nt){return A(l((le||(le=j(g,a.map(u),wP)))(Nt)))},Ye.domain=function(Nt){return arguments.length?(a=RN.call(Nt,BN),A===uv||(A=$N(a)),$e()):a.slice()},Ye.range=function(Nt){return arguments.length?(g=QE.call(Nt),$e()):g.slice()},Ye.rangeRound=function(Nt){return g=QE.call(Nt),c=CP,$e()},Ye.clamp=function(Nt){return arguments.length?(A=Nt?$N(a):uv,Ye):A!==uv},Ye.interpolate=function(Nt){return arguments.length?(c=Nt,$e()):c},Ye.unknown=function(Nt){return arguments.length?(m=Nt,Ye):m},function(Nt,qt){return u=Nt,l=qt,$e()}}function VN(a,g){return nS()(a,g)}var hj=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function EP(a){if(!(g=hj.exec(a)))throw new Error("invalid format: "+a);var g;return new e6({fill:g[1],align:g[2],sign:g[3],symbol:g[4],zero:g[5],width:g[6],comma:g[7],precision:g[8]&&g[8].slice(1),trim:g[9],type:g[10]})}EP.prototype=e6.prototype;function e6(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+""}e6.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 dj(a){return Math.abs(a=Math.round(a))>=1e21?a.toLocaleString("en").replace(/,/g,""):a.toString(10)}function TP(a,g){if((c=(a=g?a.toExponential(g-1):a.toExponential()).indexOf("e"))<0)return null;var c,u=a.slice(0,c);return[u.length>1?u[0]+u.slice(2):u,+a.slice(c+1)]}function I4(a){return a=TP(Math.abs(a)),a?a[1]:NaN}function ZX(a,g){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(I4(g)/3)))*3-I4(Math.abs(a)))}function HX(a,g){return function(c,u){for(var l=c.length,m=[],A=0,j=a[0],Y=0;l>0&&j>0&&(Y+j+1>u&&(j=Math.max(1,u-Y)),m.push(c.substring(l-=j,l+j)),!((Y+=j+1)>u));)j=a[A=(A+1)%a.length];return m.reverse().join(g)}}function v_(a){return function(g){return g.replace(/[0-9]/g,function(c){return a[+c]})}}function hA(a){e:for(var g=a.length,c=1,u=-1,l;c0&&(u=0);break}return u>0?a.slice(0,u)+a.slice(l+1):a}var ph;function jx(a,g){var c=TP(a,g);if(!c)return a+"";var u=c[0],l=c[1],m=l-(ph=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,A=u.length;return m===A?u:m>A?u+new Array(m-A+1).join("0"):m>0?u.slice(0,m)+"."+u.slice(m):"0."+new Array(1-m).join("0")+TP(a,Math.max(0,g+m-1))[0]}function AP(a,g){var c=TP(a,g);if(!c)return a+"";var u=c[0],l=c[1];return l<0?"0."+new Array(-l).join("0")+u:u.length>l+1?u.slice(0,l+1)+"."+u.slice(l+1):u+new Array(l-u.length+2).join("0")}var L4={"%":function(a,g){return(a*100).toFixed(g)},b:function(a){return Math.round(a).toString(2)},c:function(a){return a+""},d:dj,e:function(a,g){return a.toExponential(g)},f:function(a,g){return a.toFixed(g)},g:function(a,g){return a.toPrecision(g)},o:function(a){return Math.round(a).toString(8)},p:function(a,g){return AP(a*100,g)},r:AP,s:jx,X:function(a){return Math.round(a).toString(16).toUpperCase()},x:function(a){return Math.round(a).toString(16)}};function jN(a){return a}var P4=Array.prototype.map,t6=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function fj(a){var g=a.grouping===void 0||a.thousands===void 0?jN:HX(P4.call(a.grouping,Number),a.thousands+""),c=a.currency===void 0?"":a.currency[0]+"",u=a.currency===void 0?"":a.currency[1]+"",l=a.decimal===void 0?".":a.decimal+"",m=a.numerals===void 0?jN:v_(P4.call(a.numerals,String)),A=a.percent===void 0?"%":a.percent+"",j=a.minus===void 0?"-":a.minus+"",Y=a.nan===void 0?"NaN":a.nan+"";function le(Ye){Ye=EP(Ye);var Nt=Ye.fill,qt=Ye.align,jn=Ye.sign,Qn=Ye.symbol,Ir=Ye.zero,ki=Ye.width,jo=Ye.comma,Wo=Ye.precision,na=Ye.trim,va=Ye.type;va==="n"?(jo=!0,va="g"):L4[va]||(Wo===void 0&&(Wo=12),na=!0,va="g"),(Ir||Nt==="0"&&qt==="=")&&(Ir=!0,Nt="0",qt="=");var Fa=Qn==="$"?c:Qn==="#"&&/[boxX]/.test(va)?"0"+va.toLowerCase():"",vl=Qn==="$"?u:/[%p]/.test(va)?A:"",eu=L4[va],uu=/[defgprs%]/.test(va);Wo=Wo===void 0?6:/[gprs]/.test(va)?Math.max(1,Math.min(21,Wo)):Math.max(0,Math.min(20,Wo));function Hu(Vu){var ih=Fa,Ch=vl,Dd,Jp,Gg;if(va==="c")Ch=eu(Vu)+Ch,Vu="";else{Vu=+Vu;var mg=Vu<0||1/Vu<0;if(Vu=isNaN(Vu)?Y:eu(Math.abs(Vu),Wo),na&&(Vu=hA(Vu)),mg&&+Vu==0&&jn!=="+"&&(mg=!1),ih=(mg?jn==="("?jn:j:jn==="-"||jn==="("?"":jn)+ih,Ch=(va==="s"?t6[8+ph/3]:"")+Ch+(mg&&jn==="("?")":""),uu){for(Dd=-1,Jp=Vu.length;++DdGg||Gg>57){Ch=(Gg===46?l+Vu.slice(Dd+1):Vu.slice(Dd))+Ch,Vu=Vu.slice(0,Dd);break}}}jo&&!Ir&&(Vu=g(Vu,1/0));var O0=ih.length+Vu.length+Ch.length,E0=O0>1)+ih+Vu+Ch+E0.slice(O0);break;default:Vu=E0+ih+Vu+Ch;break}return m(Vu)}return Hu.toString=function(){return Ye+""},Hu}function $e(Ye,Nt){var qt=le((Ye=EP(Ye),Ye.type="f",Ye)),jn=Math.max(-8,Math.min(8,Math.floor(I4(Nt)/3)))*3,Qn=Math.pow(10,-jn),Ir=t6[8+jn/3];return function(ki){return qt(Qn*ki)+Ir}}return{format:le,formatPrefix:$e}}var DP,UN,IP;LP({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function LP(a){return DP=fj(a),UN=DP.format,IP=DP.formatPrefix,DP}function Bw(a,g){return a=Math.abs(a),g=Math.abs(g)-a,Math.max(0,I4(g)-I4(a))+1}function pj(a){return Math.max(0,-I4(Math.abs(a)))}function n6(a,g,c,u){var l=(0,Py.ly)(a,g,c),m;switch(u=EP(u==null?",f":u),u.type){case"s":{var A=Math.max(Math.abs(a),Math.abs(g));return u.precision==null&&!isNaN(m=ZX(l,A))&&(u.precision=m),IP(u,A)}case"":case"e":case"g":case"p":case"r":{u.precision==null&&!isNaN(m=Bw(l,Math.max(Math.abs(a),Math.abs(g))))&&(u.precision=m-(u.type==="e"));break}case"f":case"%":{u.precision==null&&!isNaN(m=pj(l))&&(u.precision=m-(u.type==="%")*2);break}}return UN(u)}function k4(a){var g=a.domain;return a.ticks=function(c){var u=g();return(0,Py.sd)(u[0],u[u.length-1],c==null?10:c)},a.tickFormat=function(c,u){var l=g();return n6(l[0],l[l.length-1],c==null?10:c,u)},a.nice=function(c){c==null&&(c=10);var u=g(),l=0,m=u.length-1,A=u[l],j=u[m],Y;return j0?(A=Math.floor(A/Y)*Y,j=Math.ceil(j/Y)*Y,Y=(0,Py.G9)(A,j,c)):Y<0&&(A=Math.ceil(A*Y)/Y,j=Math.floor(j*Y)/Y,Y=(0,Py.G9)(A,j,c)),Y>0?(u[l]=Math.floor(A/Y)*Y,u[m]=Math.ceil(j/Y)*Y,g(u)):Y<0&&(u[l]=Math.ceil(A*Y)/Y,u[m]=Math.floor(j*Y)/Y,g(u)),a},a}function WN(){var a=VN(uv,uv);return a.copy=function(){return SP(a,WN())},tS.apply(a,arguments),k4(a)}function r6(a){var g;function c(u){return isNaN(u=+u)?g:u}return c.invert=c,c.domain=c.range=function(u){return arguments.length?(a=map.call(u,number),c):a.slice()},c.unknown=function(u){return arguments.length?(g=u,c):g},c.copy=function(){return r6(a).unknown(g)},a=arguments.length?map.call(a,number):[0,1],linearish(c)}function i6(a,g){a=a.slice();var c=0,u=a.length-1,l=a[c],m=a[u],A;return m0){for(;Nt$e)break;jo.push(Ir)}}else for(;Nt=1;--Qn)if(Ir=jn*Qn,!(Ir$e)break;jo.push(Ir)}}else jo=(0,Py.sd)(Nt,qt,Math.min(qt-Nt,ki)).map(m);return Ye?jo.reverse():jo},g.tickFormat=function(j,Y){if(Y==null&&(Y=u===10?".0e":","),typeof Y!="function"&&(Y=UN(Y)),j===1/0)return Y;j==null&&(j=10);var le=Math.max(1,u*j/g.ticks().length);return function($e){var Ye=$e/m(Math.round(l($e)));return Ye*u0?c[j-1]:a[0],j=c?[u[c-1],g]:[u[le-1],u[le]]},A.unknown=function(Y){return arguments.length&&(m=Y),A},A.thresholds=function(){return u.slice()},A.copy=function(){return KN().domain([a,g]).range(l).unknown(m)},tS.apply(k4(A),arguments)}function iS(){var a=[.5],g=[0,1],c,u=1;function l(m){return m<=m?g[(0,Py.b4)(a,m,0,u)]:c}return l.domain=function(m){return arguments.length?(a=QE.call(m),u=Math.min(a.length,g.length-1),l):a.slice()},l.range=function(m){return arguments.length?(g=QE.call(m),u=Math.min(a.length,g.length-1),l):g.slice()},l.invertExtent=function(m){var A=g.indexOf(m);return[a[A-1],a[A]]},l.unknown=function(m){return arguments.length?(c=m,l):c},l.copy=function(){return iS().domain(a).range(g).unknown(c)},tS.apply(l,arguments)}var s6=new Date,a6=new Date;function _y(a,g,c,u){function l(m){return a(m=arguments.length===0?new Date:new Date(+m)),m}return l.floor=function(m){return a(m=new Date(+m)),m},l.ceil=function(m){return a(m=new Date(m-1)),g(m,1),a(m),m},l.round=function(m){var A=l(m),j=l.ceil(m);return m-A0))return Y;do Y.push(le=new Date(+m)),g(m,j),a(m);while(le=A)for(;a(A),!m(A);)A.setTime(A-1)},function(A,j){if(A>=A)if(j<0)for(;++j<=0;)for(;g(A,-1),!m(A););else for(;--j>=0;)for(;g(A,1),!m(A););})},c&&(l.count=function(m,A){return s6.setTime(+m),a6.setTime(+A),a(s6),a(a6),Math.floor(c(s6,a6))},l.every=function(m){return m=Math.floor(m),!isFinite(m)||!(m>0)?null:m>1?l.filter(u?function(A){return u(A)%m===0}:function(A){return l.count(0,A)%m===0}):l}),l}var R4=_y(function(a){a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,g){a.setFullYear(a.getFullYear()+g)},function(a,g){return g.getFullYear()-a.getFullYear()},function(a){return a.getFullYear()});R4.every=function(a){return!isFinite(a=Math.floor(a))||!(a>0)?null:_y(function(g){g.setFullYear(Math.floor(g.getFullYear()/a)*a),g.setMonth(0,1),g.setHours(0,0,0,0)},function(g,c){g.setFullYear(g.getFullYear()+c*a)})};var nT=R4,GX=R4.range,gA=_y(function(a){a.setDate(1),a.setHours(0,0,0,0)},function(a,g){a.setMonth(a.getMonth()+g)},function(a,g){return g.getMonth()-a.getMonth()+(g.getFullYear()-a.getFullYear())*12},function(a){return a.getMonth()}),Ux=gA,KX=gA.range,l6=1e3,Ab=6e4,XN=36e5,YN=864e5,G_=6048e5;function R2(a){return _y(function(g){g.setDate(g.getDate()-(g.getDay()+7-a)%7),g.setHours(0,0,0,0)},function(g,c){g.setDate(g.getDate()+c*7)},function(g,c){return(c-g-(c.getTimezoneOffset()-g.getTimezoneOffset())*Ab)/G_})}var u6=R2(0),mA=R2(1),_j=R2(2),N4=R2(3),vA=R2(4),yA=R2(5),c6=R2(6),bj=u6.range,XX=mA.range,YX=_j.range,xj=N4.range,wj=vA.range,rT=yA.range,qX=c6.range,qN=_y(function(a){a.setHours(0,0,0,0)},function(a,g){a.setDate(a.getDate()+g)},function(a,g){return(g-a-(g.getTimezoneOffset()-a.getTimezoneOffset())*Ab)/YN},function(a){return a.getDate()-1}),h6=qN,NP=qN.range,JN=_y(function(a){a.setTime(a-a.getMilliseconds()-a.getSeconds()*l6-a.getMinutes()*Ab)},function(a,g){a.setTime(+a+g*XN)},function(a,g){return(g-a)/XN},function(a){return a.getHours()}),Cj=JN,JX=JN.range,d6=_y(function(a){a.setTime(a-a.getMilliseconds()-a.getSeconds()*l6)},function(a,g){a.setTime(+a+g*Ab)},function(a,g){return(g-a)/Ab},function(a){return a.getMinutes()}),Sj=d6,QN=d6.range,eF=_y(function(a){a.setTime(a-a.getMilliseconds())},function(a,g){a.setTime(+a+g*l6)},function(a,g){return(g-a)/l6},function(a){return a.getUTCSeconds()}),tF=eF,QX=eF.range,N2=_y(function(){},function(a,g){a.setTime(+a+g)},function(a,g){return g-a});N2.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?_y(function(g){g.setTime(Math.floor(g/a)*a)},function(g,c){g.setTime(+g+c*a)},function(g,c){return(c-g)/a}):N2};var Ej=N2,F2=N2.range;function iT(a){return _y(function(g){g.setUTCDate(g.getUTCDate()-(g.getUTCDay()+7-a)%7),g.setUTCHours(0,0,0,0)},function(g,c){g.setUTCDate(g.getUTCDate()+c*7)},function(g,c){return(c-g)/G_})}var nF=iT(0),FP=iT(1),rF=iT(2),Tj=iT(3),_A=iT(4),Aj=iT(5),Dj=iT(6),eY=nF.range,Ij=FP.range,tY=rF.range,iF=Tj.range,oF=_A.range,sF=Aj.range,Lj=Dj.range,F4=_y(function(a){a.setUTCHours(0,0,0,0)},function(a,g){a.setUTCDate(a.getUTCDate()+g)},function(a,g){return(g-a)/YN},function(a){return a.getUTCDate()-1}),f6=F4,aF=F4.range,B4=_y(function(a){a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,g){a.setUTCFullYear(a.getUTCFullYear()+g)},function(a,g){return g.getUTCFullYear()-a.getUTCFullYear()},function(a){return a.getUTCFullYear()});B4.every=function(a){return!isFinite(a=Math.floor(a))||!(a>0)?null:_y(function(g){g.setUTCFullYear(Math.floor(g.getUTCFullYear()/a)*a),g.setUTCMonth(0,1),g.setUTCHours(0,0,0,0)},function(g,c){g.setUTCFullYear(g.getUTCFullYear()+c*a)})};var z4=B4,nY=B4.range;function BP(a){if(0<=a.y&&a.y<100){var g=new Date(-1,a.m,a.d,a.H,a.M,a.S,a.L);return g.setFullYear(a.y),g}return new Date(a.y,a.m,a.d,a.H,a.M,a.S,a.L)}function ix(a){if(0<=a.y&&a.y<100){var g=new Date(Date.UTC(-1,a.m,a.d,a.H,a.M,a.S,a.L));return g.setUTCFullYear(a.y),g}return new Date(Date.UTC(a.y,a.m,a.d,a.H,a.M,a.S,a.L))}function zw(a,g,c){return{y:a,m:g,d:c,H:0,M:0,S:0,L:0}}function Pj(a){var g=a.dateTime,c=a.date,u=a.time,l=a.periods,m=a.days,A=a.shortDays,j=a.months,Y=a.shortMonths,le=r1(l),$e=$4(l),Ye=r1(m),Nt=$4(m),qt=r1(A),jn=$4(A),Qn=r1(j),Ir=$4(j),ki=r1(Y),jo=$4(Y),Wo={a:mg,A:O0,b:E0,B:Kv,c:null,d:$P,e:$P,f:aS,g:Gj,G:y_,H:Vj,I:jj,j:Uj,L:hF,m:dF,M:j4,p:Y2,q:My,Q:yF,s:sT,S:K_,u:B2,U:Wj,V:Zj,w:VP,W:bA,x:null,X:null,y:Hj,Y:v6,Z:pF,"%":vF},na={a:wS,A:eD,b:Dv,B:ny,c:null,d:U4,e:U4,f:y6,g:eU,G:nU,H:Kj,I:m1,j:Xj,L:jw,m:z2,M:_6,p:HI,q:Rb,Q:yF,s:sT,S:W4,u:Yj,U:jP,V:qj,w:Jj,W:Qj,x:null,X:null,y:mF,Y:tU,Z:rU,"%":vF},va={a:Hu,A:Vu,b:ih,B:Ch,c:Dd,d:zP,e:zP,f:Vw,g:uF,G:oS,H:oT,I:oT,j:sS,L:Bj,m:cF,M:Zx,p:uu,q:Nj,Q:zj,s:$j,S:Fj,u:Oj,U:$w,V:Rj,w:p6,W:g6,x:Jp,X:Gg,y:uF,Y:oS,Z:m6,"%":V4};Wo.x=Fa(c,Wo),Wo.X=Fa(u,Wo),Wo.c=Fa(g,Wo),na.x=Fa(c,na),na.X=Fa(u,na),na.c=Fa(g,na);function Fa(Xp,a0){return function(R0){var gf=[],S_=-1,bv=0,eb=Xp.length,E_,DT,ZO;for(R0 instanceof Date||(R0=new Date(+R0));++S_53)return null;"w"in gf||(gf.w=1),"Z"in gf?(bv=ix(zw(gf.y,0,1)),eb=bv.getUTCDay(),bv=eb>4||eb===0?FP.ceil(bv):FP(bv),bv=f6.offset(bv,(gf.V-1)*7),gf.y=bv.getUTCFullYear(),gf.m=bv.getUTCMonth(),gf.d=bv.getUTCDate()+(gf.w+6)%7):(bv=BP(zw(gf.y,0,1)),eb=bv.getDay(),bv=eb>4||eb===0?mA.ceil(bv):mA(bv),bv=h6.offset(bv,(gf.V-1)*7),gf.y=bv.getFullYear(),gf.m=bv.getMonth(),gf.d=bv.getDate()+(gf.w+6)%7)}else("W"in gf||"U"in gf)&&("w"in gf||(gf.w="u"in gf?gf.u%7:"W"in gf?1:0),eb="Z"in gf?ix(zw(gf.y,0,1)).getUTCDay():BP(zw(gf.y,0,1)).getDay(),gf.m=0,gf.d="W"in gf?(gf.w+6)%7+gf.W*7-(eb+5)%7:gf.w+gf.U*7-(eb+6)%7);return"Z"in gf?(gf.H+=gf.Z/100|0,gf.M+=gf.Z%100,ix(gf)):BP(gf)}}function eu(Xp,a0,R0,gf){for(var S_=0,bv=a0.length,eb=R0.length,E_,DT;S_=eb)return-1;if(E_=a0.charCodeAt(S_++),E_===37){if(E_=a0.charAt(S_++),DT=va[E_ in Wx?a0.charAt(S_++):E_],!DT||(gf=DT(Xp,R0,gf))<0)return-1}else if(E_!=R0.charCodeAt(gf++))return-1}return gf}function uu(Xp,a0,R0){var gf=le.exec(a0.slice(R0));return gf?(Xp.p=$e[gf[0].toLowerCase()],R0+gf[0].length):-1}function Hu(Xp,a0,R0){var gf=qt.exec(a0.slice(R0));return gf?(Xp.w=jn[gf[0].toLowerCase()],R0+gf[0].length):-1}function Vu(Xp,a0,R0){var gf=Ye.exec(a0.slice(R0));return gf?(Xp.w=Nt[gf[0].toLowerCase()],R0+gf[0].length):-1}function ih(Xp,a0,R0){var gf=ki.exec(a0.slice(R0));return gf?(Xp.m=jo[gf[0].toLowerCase()],R0+gf[0].length):-1}function Ch(Xp,a0,R0){var gf=Qn.exec(a0.slice(R0));return gf?(Xp.m=Ir[gf[0].toLowerCase()],R0+gf[0].length):-1}function Dd(Xp,a0,R0){return eu(Xp,g,a0,R0)}function Jp(Xp,a0,R0){return eu(Xp,c,a0,R0)}function Gg(Xp,a0,R0){return eu(Xp,u,a0,R0)}function mg(Xp){return A[Xp.getDay()]}function O0(Xp){return m[Xp.getDay()]}function E0(Xp){return Y[Xp.getMonth()]}function Kv(Xp){return j[Xp.getMonth()]}function Y2(Xp){return l[+(Xp.getHours()>=12)]}function My(Xp){return 1+~~(Xp.getMonth()/3)}function wS(Xp){return A[Xp.getUTCDay()]}function eD(Xp){return m[Xp.getUTCDay()]}function Dv(Xp){return Y[Xp.getUTCMonth()]}function ny(Xp){return j[Xp.getUTCMonth()]}function HI(Xp){return l[+(Xp.getUTCHours()>=12)]}function Rb(Xp){return 1+~~(Xp.getUTCMonth()/3)}return{format:function(Xp){var a0=Fa(Xp+="",Wo);return a0.toString=function(){return Xp},a0},parse:function(Xp){var a0=vl(Xp+="",!1);return a0.toString=function(){return Xp},a0},utcFormat:function(Xp){var a0=Fa(Xp+="",na);return a0.toString=function(){return Xp},a0},utcParse:function(Xp){var a0=vl(Xp+="",!0);return a0.toString=function(){return Xp},a0}}}var Wx={"-":"",_:" ",0:"0"},F1=/^\s*\d+/,kj=/^%/,Mj=/[\\^$*+?|[\]().{}]/g;function g0(a,g,c){var u=a<0?"-":"",l=(u?-a:a)+"",m=l.length;return u+(m68?1900:2e3),c+u[0].length):-1}function m6(a,g,c){var u=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(g.slice(c,c+6));return u?(a.Z=u[1]?0:-(u[2]+(u[3]||"00")),c+u[0].length):-1}function Nj(a,g,c){var u=F1.exec(g.slice(c,c+1));return u?(a.q=u[0]*3-3,c+u[0].length):-1}function cF(a,g,c){var u=F1.exec(g.slice(c,c+2));return u?(a.m=u[0]-1,c+u[0].length):-1}function zP(a,g,c){var u=F1.exec(g.slice(c,c+2));return u?(a.d=+u[0],c+u[0].length):-1}function sS(a,g,c){var u=F1.exec(g.slice(c,c+3));return u?(a.m=0,a.d=+u[0],c+u[0].length):-1}function oT(a,g,c){var u=F1.exec(g.slice(c,c+2));return u?(a.H=+u[0],c+u[0].length):-1}function Zx(a,g,c){var u=F1.exec(g.slice(c,c+2));return u?(a.M=+u[0],c+u[0].length):-1}function Fj(a,g,c){var u=F1.exec(g.slice(c,c+2));return u?(a.S=+u[0],c+u[0].length):-1}function Bj(a,g,c){var u=F1.exec(g.slice(c,c+3));return u?(a.L=+u[0],c+u[0].length):-1}function Vw(a,g,c){var u=F1.exec(g.slice(c,c+6));return u?(a.L=Math.floor(u[0]/1e3),c+u[0].length):-1}function V4(a,g,c){var u=kj.exec(g.slice(c,c+1));return u?c+u[0].length:-1}function zj(a,g,c){var u=F1.exec(g.slice(c));return u?(a.Q=+u[0],c+u[0].length):-1}function $j(a,g,c){var u=F1.exec(g.slice(c));return u?(a.s=+u[0],c+u[0].length):-1}function $P(a,g){return g0(a.getDate(),g,2)}function Vj(a,g){return g0(a.getHours(),g,2)}function jj(a,g){return g0(a.getHours()%12||12,g,2)}function Uj(a,g){return g0(1+h6.count(nT(a),a),g,3)}function hF(a,g){return g0(a.getMilliseconds(),g,3)}function aS(a,g){return hF(a,g)+"000"}function dF(a,g){return g0(a.getMonth()+1,g,2)}function j4(a,g){return g0(a.getMinutes(),g,2)}function K_(a,g){return g0(a.getSeconds(),g,2)}function B2(a){var g=a.getDay();return g===0?7:g}function Wj(a,g){return g0(u6.count(nT(a)-1,a),g,2)}function fF(a){var g=a.getDay();return g>=4||g===0?vA(a):vA.ceil(a)}function Zj(a,g){return a=fF(a),g0(vA.count(nT(a),a)+(nT(a).getDay()===4),g,2)}function VP(a){return a.getDay()}function bA(a,g){return g0(mA.count(nT(a)-1,a),g,2)}function Hj(a,g){return g0(a.getFullYear()%100,g,2)}function Gj(a,g){return a=fF(a),g0(a.getFullYear()%100,g,2)}function v6(a,g){return g0(a.getFullYear()%1e4,g,4)}function y_(a,g){var c=a.getDay();return a=c>=4||c===0?vA(a):vA.ceil(a),g0(a.getFullYear()%1e4,g,4)}function pF(a){var g=a.getTimezoneOffset();return(g>0?"-":(g*=-1,"+"))+g0(g/60|0,"0",2)+g0(g%60,"0",2)}function U4(a,g){return g0(a.getUTCDate(),g,2)}function Kj(a,g){return g0(a.getUTCHours(),g,2)}function m1(a,g){return g0(a.getUTCHours()%12||12,g,2)}function Xj(a,g){return g0(1+f6.count(z4(a),a),g,3)}function jw(a,g){return g0(a.getUTCMilliseconds(),g,3)}function y6(a,g){return jw(a,g)+"000"}function z2(a,g){return g0(a.getUTCMonth()+1,g,2)}function _6(a,g){return g0(a.getUTCMinutes(),g,2)}function W4(a,g){return g0(a.getUTCSeconds(),g,2)}function Yj(a){var g=a.getUTCDay();return g===0?7:g}function jP(a,g){return g0(nF.count(z4(a)-1,a),g,2)}function gF(a){var g=a.getUTCDay();return g>=4||g===0?_A(a):_A.ceil(a)}function qj(a,g){return a=gF(a),g0(_A.count(z4(a),a)+(z4(a).getUTCDay()===4),g,2)}function Jj(a){return a.getUTCDay()}function Qj(a,g){return g0(FP.count(z4(a)-1,a),g,2)}function mF(a,g){return g0(a.getUTCFullYear()%100,g,2)}function eU(a,g){return a=gF(a),g0(a.getUTCFullYear()%100,g,2)}function tU(a,g){return g0(a.getUTCFullYear()%1e4,g,4)}function nU(a,g){var c=a.getUTCDay();return a=c>=4||c===0?_A(a):_A.ceil(a),g0(a.getUTCFullYear()%1e4,g,4)}function rU(){return"+0000"}function vF(){return"%"}function yF(a){return+a}function sT(a){return Math.floor(+a/1e3)}var aT,b6,$2,UP,_F;iU({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 iU(a){return aT=Pj(a),b6=aT.format,$2=aT.parse,UP=aT.utcFormat,_F=aT.utcParse,aT}var xA=1e3,Z4=xA*60,H4=Z4*60,ox=H4*24,x6=ox*7,lS=ox*30,w6=ox*365;function Ky(a){return new Date(a)}function sx(a){return a instanceof Date?+a:+new Date(+a)}function lT(a,g,c,u,l,m,A,j,Y){var le=VN(uv,uv),$e=le.invert,Ye=le.domain,Nt=Y(".%L"),qt=Y(":%S"),jn=Y("%I:%M"),Qn=Y("%I %p"),Ir=Y("%a %d"),ki=Y("%b %d"),jo=Y("%B"),Wo=Y("%Y"),na=[[A,1,xA],[A,5,5*xA],[A,15,15*xA],[A,30,30*xA],[m,1,Z4],[m,5,5*Z4],[m,15,15*Z4],[m,30,30*Z4],[l,1,H4],[l,3,3*H4],[l,6,6*H4],[l,12,12*H4],[u,1,ox],[u,2,2*ox],[c,1,x6],[g,1,lS],[g,3,3*lS],[a,1,w6]];function va(vl){return(A(vl)2){var Ye=le.scale.ticks(A.values.length);le.scale.domain(Ye)}A.values?le.scale.range(A.values):le.scale.range(le.option.domain);break;case qm.QUANTILE:case qm.QUANTIZE:case qm.THRESHOLD:le.scale.range(A.values);break;case qm.IDENTITY:break;case qm.CAT:A.values?le.scale.range(A.values):le.scale.range(le.option.domain);break;case qm.DIVERGING:case qm.SEQUENTIAL:le.scale.interpolator(lA(A.values));break}}if(A.values==="text"){var Nt;le.scale.range((Nt=le.option)===null||Nt===void 0?void 0:Nt.domain)}})):(A.type=Mx.CONSTANT,A.defaultValues=Y.map(function(le,$e){return le.scale(A.names[$e])})),A.scalers=Y.map(function(le){return{field:le.field,func:le.scale,option:le.option}}),m.needRescale=!1}})}},{key:"parseFields",value:function(c){return Array.isArray(c)?c:lU(c)?c.split("*"):[c]}},{key:"createScale",value:function(c,u,l,m){var A,j,Y=this.scaleOptions[u]&&((A=this.scaleOptions[u])===null||A===void 0?void 0:A.field)===c?this.scaleOptions[u]:this.scaleOptions[c],le={field:c,scale:void 0,type:Mx.VARIABLE,option:Y};if(!m||!m.length)return Y&&Y.type?le.scale=this.createDefaultScale(Y):(le.scale=xP([c]),le.type=Mx.CONSTANT),le;var $e=(j=m.find(function(qt){return!C6(qt[c])}))===null||j===void 0?void 0:j[c];if(this.isNumber(c)||C6($e)&&!Y)le.scale=xP([c]),le.type=Mx.CONSTANT;else{var Ye=Y&&Y.type||this.getDefaultType($e);l==="text"&&(Ye=qm.CAT),l===void 0&&(Ye=qm.IDENTITY);var Nt=this.createScaleConfig(Ye,c,Y,m);le.scale=this.createDefaultScale(Nt),le.option=Nt}return le}},{key:"getDefaultType",value:function(c){var u=qm.LINEAR;return typeof c=="string"&&(u=S6.test(c)?qm.TIME:qm.CAT),u}},{key:"createScaleConfig",value:function(c,u,l,m){var A={type:c},j=(m==null?void 0:m.map(function($e){return $e[u]}))||[];if(l!=null&&l.domain)A.domain=l==null?void 0:l.domain;else if(c===qm.CAT||c===qm.IDENTITY)A.domain=GP(j);else if(c===qm.QUANTILE)A.domain=j;else if(c===qm.DIVERGING){var Y=(0,Py.We)(j),le=(l==null?void 0:l.neutral)!==void 0?l==null?void 0:l.neutral:(Y[0]+Y[1])/2;A.domain=[Y[0],le,Y[1]]}else A.domain=(0,Py.We)(j);return(0,Ne.Z)((0,Ne.Z)({},A),l)}},{key:"createDefaultScale",value:function(c){var u=c.type,l=c.domain,m=c.unknown,A=c.clamp,j=c.nice,Y=CF[u]();return l&&Y.domain&&Y.domain(l),m&&Y.unknown(m),A!==void 0&&Y.clamp&&Y.clamp(A),j!==void 0&&Y.nice&&Y.nice(j),Y}}]),a}())||wF),V2,E6,uU=(V2=(0,fa.b2)(),V2(E6=function(){function a(){(0,Bt.Z)(this,a)}return(0,lt.Z)(a,[{key:"apply",value:function(c){c.hooks.beforeRender.tap("LayerAnimateStylePlugin",function(){var u=c.animateStatus;u&&c.models.forEach(function(l){l.addUniforms((0,Ne.Z)({},c.layerModel.getAnimateUniforms()))})})}}]),a}())||E6),EF,TF,K4=(EF=(0,fa.b2)(),EF(TF=function(){function a(){(0,Bt.Z)(this,a)}return(0,lt.Z)(a,[{key:"apply",value:function(c){c.hooks.afterInit.tap("LayerMaskPlugin",function(){var u=c.getLayerConfig(),l=u.maskLayers,m=u.enableMask;if(!c.tileLayer&&l&&l.length>0){var A;(A=c.masks).push.apply(A,(0,or.Z)(l)),c.updateLayerConfig({mask:m})}})}}]),a}())||TF),cU=function(){function a(g){var c=g.rendererService,u=g.layerService,l=g.parent;(0,Bt.Z)(this,a),(0,Xn.Z)(this,"tileResource",new Map),(0,Xn.Z)(this,"layerTiles",[]),this.rendererService=c,this.layerService=u,this.parent=l}return(0,lt.Z)(a,[{key:"tiles",get:function(){return this.layerTiles}},{key:"hasTile",value:function(c){return this.layerTiles.some(function(u){return u.key===c})}},{key:"addTile",value:function(c){this.layerTiles.push(c)}},{key:"getTile",value:function(c){return this.layerTiles.find(function(u){return u.key===c})}},{key:"getVisibleTileBylngLat",value:function(c){return this.layerTiles.find(function(u){return u.isLoaded&&u.visible&&u.lnglatInBounds(c)})}},{key:"removeTile",value:function(c){var u=this.layerTiles.findIndex(function(m){return m.key===c}),l=this.layerTiles.splice(u,1);l[0]&&l[0].destroy()}},{key:"updateTileVisible",value:function(c){var u=this.getTile(c.key);if(c.isVisible)if(c.parent){var l=this.isChildrenLoaded(c.parent);u==null||u.updateVisible(l)}else u==null||u.updateVisible(!0);else if(c.parent){var m=this.isChildrenLoaded(c.parent);u==null||u.updateVisible(!m)}else u==null||u.updateVisible(!1)}},{key:"isParentLoaded",value:function(c){var u=c.parent;if(!u)return!0;var l=this.getTile(u==null?void 0:u.key);return!!(l!=null&&l.isLoaded)}},{key:"isChildrenLoaded",value:function(c){var u=this,l=c==null?void 0:c.children;return l.length===0?!0:l.every(function(m){var A=u.getTile(m==null?void 0:m.key);return A?(A==null?void 0:A.isLoaded)===!0:!0})}},{key:"render",value:function(){var g=(0,pl.Z)(Zi().mark(function u(){var l=this,m,A;return Zi().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return m=this.getRenderLayers(),A=m.map(function(){var le=(0,pl.Z)(Zi().mark(function $e(Ye){return Zi().wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return qt.next=2,l.layerService.renderTileLayer(Ye);case 2:case"end":return qt.stop()}},$e)}));return function($e){return le.apply(this,arguments)}}()),Y.next=4,Promise.all(A);case 4:case"end":return Y.stop()}},u,this)}));function c(){return g.apply(this,arguments)}return c}()},{key:"getRenderLayers",value:function(){var c=this.layerTiles.filter(function(l){return l.visible&&l.isLoaded}),u=[];return c.map(function(l){return u.push.apply(u,(0,or.Z)(l.getLayers()))}),u}},{key:"getLayers",value:function(){var c=this.layerTiles.filter(function(l){return l.isLoaded}),u=[];return c.map(function(l){return u.push.apply(u,(0,or.Z)(l.getLayers()))}),u}},{key:"getTiles",value:function(){return this.layerTiles}},{key:"destroy",value:function(){this.layerTiles.forEach(function(c){return c.destroy()}),this.tileResource.clear()}}]),a}(),hU=_(35486),T6=function(){function a(){(0,Bt.Z)(this,a)}return(0,lt.Z)(a,[{key:"getCombineFeature",value:function(c){var u=null,l=c[0];return c.map(function(m){var A=il.polygon(m.coordinates);u===null?u=A:u=(0,hU.Z)(u,A)}),l&&(u.properties=(0,Ne.Z)({},l)),u}}]),a}(),EA="select",X4="active",dU=function(){function a(g){var c=g.layerService,u=g.tileLayerService,l=g.parent;(0,Bt.Z)(this,a),(0,Xn.Z)(this,"tilePickID",new Map),this.layerService=c,this.tileLayerService=u,this.parent=l,this.tileSourceService=new T6}return(0,lt.Z)(a,[{key:"pickRender",value:function(c){var u=this.tileLayerService.getVisibleTileBylngLat(c.lngLat);if(u){var l=u.getMainLayer();l==null||l.layerPickService.pickRender(c)}}},{key:"pick",value:function(c,u){var l=this.parent.getContainer(),m=l.get(Fr.IPickingService);if(c.type==="RasterLayer"){var A=this.tileLayerService.getVisibleTileBylngLat(u.lngLat);if(A&&A.getMainLayer()!==void 0){var j=A.getMainLayer();return j.layerPickService.pickRasterLayer(j,u,this.parent)}return!1}return this.pickRender(u),m.pickFromPickingFBO(c,u)}},{key:"selectFeature",value:function(c){var u=(0,Oi.Z)(c,3),l=u[0],m=u[1],A=u[2],j=this.color2PickId(l,m,A);this.tilePickID.set(EA,j),this.updateHighLight(l,m,A,EA)}},{key:"highlightPickedFeature",value:function(c){var u=(0,Oi.Z)(c,3),l=u[0],m=u[1],A=u[2],j=this.color2PickId(l,m,A);this.tilePickID.set(X4,j),this.updateHighLight(l,m,A,X4)}},{key:"updateHighLight",value:function(c,u,l,m){this.tileLayerService.tiles.map(function(A){var j=A.getMainLayer();switch(m){case EA:j==null||j.hooks.beforeSelect.call([c,u,l]);break;case X4:j==null||j.hooks.beforeHighlight.call([c,u,l]);break}})}},{key:"setPickState",value:function(){var c=this.tilePickID.get(EA),u=this.tilePickID.get(X4);if(c){var l=this.pickId2Color(c),m=(0,Oi.Z)(l,3),A=m[0],j=m[1],Y=m[2];this.updateHighLight(A,j,Y,EA);return}if(u){var le=this.pickId2Color(u),$e=(0,Oi.Z)(le,3),Ye=$e[0],Nt=$e[1],qt=$e[2];this.updateHighLight(Ye,Nt,qt,X4);return}}},{key:"color2PickId",value:function(c,u,l){return Ni(new Uint8Array([c,u,l]))}},{key:"pickId2Color",value:function(c){return kr(c)}},{key:"getFeatureById",value:function(c){var u=this.tileLayerService.getTiles().filter(function(m){return m.visible}),l=[];return u.forEach(function(m){l.push.apply(l,(0,or.Z)(m.getFeatureById(c)))}),l}},{key:"pickRasterLayer",value:function(c,u,l){return!1}}]),a}();function fU(a){return a==="PolygonLayer"?jM:a==="LineLayer"?lP:pP}function pU(a){return["PolygonLayer","LineLayer"].indexOf(a)!==-1}function KP(a){var g=A6();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function A6(){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 dT=function(a){(0,At.Z)(c,a);var g=KP(c);function c(u,l){var m;return(0,Bt.Z)(this,c),m=g.call(this),(0,Xn.Z)((0,ps.Z)(m),"visible",!0),(0,Xn.Z)((0,ps.Z)(m),"layers",[]),(0,Xn.Z)((0,ps.Z)(m),"isLoaded",!1),(0,Xn.Z)((0,ps.Z)(m),"tileMaskLayers",[]),m.parent=l,m.sourceTile=u,m.x=u.x,m.y=u.y,m.z=u.z,m.key="".concat(m.x,"_").concat(m.y,"_").concat(m.z),m}return(0,lt.Z)(c,[{key:"getLayers",value:function(){return this.layers}},{key:"styleUpdate",value:function(){}},{key:"lnglatInBounds",value:function(l){var m=(0,Oi.Z)(this.sourceTile.bounds,4),A=m[0],j=m[1],Y=m[2],le=m[3],$e=l.lng,Ye=l.lat;return $e>=A&&$e<=Y&&Ye>=j&&Ye<=le}},{key:"getLayerOptions",value:function(){var l,m=this.parent.getLayerConfig();return(0,Ne.Z)((0,Ne.Z)({},m),{},{textAllowOverlap:!0,autoFit:!1,maskLayers:this.getMaskLayer(),tileMask:pU(this.parent.type),mask:m.mask||((l=m.maskLayers)===null||l===void 0?void 0:l.length)!==0&&m.enableMask})}},{key:"getMaskLayer",value:function(){var l=this,m=this.parent.getLayerConfig(),A=m.maskLayers,j=[];return A==null||A.forEach(function(Y){if(!Y.tileLayer)return j.push(Y),Y;var le=Y.tileLayer,$e=le.getTile(l.sourceTile.key),Ye=$e==null?void 0:$e.getLayers()[0];Ye&&j.push(Ye)}),j}},{key:"addTileMask",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A,j,Y;return Zi().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return A=new jM({visible:!1,enablePicking:!1}).source({type:"FeatureCollection",features:[this.sourceTile.bboxPolygon]},{parser:{type:"geojson",featureId:"id"}}).shape("fill").style({opacity:.5}),j=Uy(this.parent.sceneContainer),A.setContainer(j,this.parent.sceneContainer),$e.next=5,A.init();case 5:return this.tileMask=A,Y=this.getMainLayer(),Y!==void 0&&(Y.tileMask=A),$e.abrupt("return",A);case 9:case"end":return $e.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"addMask",value:function(){var u=(0,pl.Z)(Zi().mark(function m(A,j){var Y;return Zi().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return Y=Uy(this.parent.sceneContainer),j.setContainer(Y,this.parent.sceneContainer),$e.next=4,j.init();case 4:A.addMask(j),this.tileMaskLayers.push(j);case 6:case"end":return $e.stop()}},m,this)}));function l(m,A){return u.apply(this,arguments)}return l}()},{key:"addLayer",value:function(){var u=(0,pl.Z)(Zi().mark(function m(A){var j;return Zi().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return A.isTileLayer=!0,j=Uy(this.parent.sceneContainer),A.setContainer(j,this.parent.sceneContainer),this.layers.push(A),le.next=6,A.init();case 6:case"end":return le.stop()}},m,this)}));function l(m){return u.apply(this,arguments)}return l}()},{key:"updateVisible",value:function(l){this.visible=l,this.updateOptions("visible",l)}},{key:"updateOptions",value:function(l,m){this.layers.forEach(function(A){A.updateLayerConfig((0,Xn.Z)({},l,m))})}},{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(m){return m.destroy()})}}]),c}(Wu.EventEmitter);function gU(a){var g=XP();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function XP(){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 mU=function(a){(0,At.Z)(c,a);var g=gU(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"initTileLayer",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A,j,Y,le;return Zi().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return A=this.getSourceOption(),j=A.data.features[0].properties,Y=new lP().source(A.data,A.options).size(1).shape("line").color("red"),le=new pP({minZoom:this.z-1,maxZoom:this.z+1,textAllowOverlap:!0}).source([j],{parser:{type:"json",x:"x",y:"y"}}).size(20).color("red").shape(this.key).style({stroke:"#fff",strokeWidth:2}),Ye.next=6,this.addLayer(Y);case 6:return Ye.next=8,this.addLayer(le);case 8:this.isLoaded=!0;case 9:case"end":return Ye.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource(),m=this.sourceTile.data.layers.testTile.features;return{data:{type:"FeatureCollection",features:m},options:{parser:{type:"geojson"},transforms:l.transforms}}}}]),c}(dT);function vU(a){var g=yU();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.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 YP=function(a){(0,At.Z)(c,a);var g=vU(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"initTileLayer",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A,j,Y,le;return Zi().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return A=this.parent.getLayerAttributeConfig(),j=this.getLayerOptions(),Y=this.getSourceOption(),le=new _M((0,Ne.Z)({},j)).source(Y.data,Y.options),A&&Object.keys(A).forEach(function(Nt){var qt,jn,Qn=Nt;le[Qn]((qt=A[Qn])===null||qt===void 0?void 0:qt.field,(jn=A[Qn])===null||jn===void 0?void 0:jn.values)}),Ye.next=7,this.addLayer(le);case 7:this.isLoaded=!0;case 8:case"end":return Ye.stop()}},m,this)}));function l(){return u.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}}}}]),c}(dT);function _U(a){var g=bU();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function bU(){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 Ib=function(a){(0,At.Z)(c,a);var g=_U(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"initTileLayer",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A,j,Y,le;return Zi().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return A=this.parent.getLayerAttributeConfig(),j=this.getLayerOptions(),Y=this.getSourceOption(),le=new w4((0,Ne.Z)({},j)).source(Y.data,Y.options),A&&Object.keys(A).forEach(function(Nt){var qt,jn,Qn=Nt;le[Qn]((qt=A[Qn])===null||qt===void 0?void 0:qt.field,(jn=A[Qn])===null||jn===void 0?void 0:jn.values)}),Ye.next=7,this.addLayer(le);case 7:this.isLoaded=!0;case 8:case"end":return Ye.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"getFeatures",value:function(l){if(!l)return[];var m=this.sourceTile.data;return m.getTileData(l)}},{key:"getSourceOption",value:function(){var l=this.parent.getSource(),m=this.parent.getLayerConfig(),A=m.sourceLayer,j=m.featureId,Y=this.getFeatures(A);return{data:{type:"FeatureCollection",features:Y},options:{parser:{type:"geojson",featureId:j},transforms:l.transforms}}}}]),c}(dT),Y4=["rasterData"];function AF(a){var g=xU();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.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 D6=function(a){(0,At.Z)(c,a);var g=AF(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"initTileLayer",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A,j,Y,le;return Zi().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return A=this.parent.getLayerAttributeConfig(),j=this.getLayerOptions(),Y=this.getSourceOption(),le=new Y3((0,Ne.Z)({},j)).source(Y.data,Y.options),A&&Object.keys(A).forEach(function(Nt){var qt,jn,Qn=Nt;le[Qn]((qt=A[Qn])===null||qt===void 0?void 0:qt.field,(jn=A[Qn])===null||jn===void 0?void 0:jn.values)}),Ye.next=7,this.addLayer(le);case 7:this.isLoaded=!0;case 8:case"end":return Ye.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource(),m=this.sourceTile.data.data,A=m.rasterData,j=(0,gv.Z)(m,Y4);return{data:A,options:{parser:(0,Ne.Z)({type:"rasterRgb",extent:this.sourceTile.bounds},j),transforms:l.transforms}}}}]),c}(dT);function X_(a){var g=q4();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function q4(){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 wU=function(a){(0,At.Z)(c,a);var g=X_(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"initTileLayer",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A,j,Y,le;return Zi().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return A=this.parent.getLayerAttributeConfig(),j=this.getLayerOptions(),Y=this.getSourceOption(),le=new Y3((0,Ne.Z)({},j)).source(Y.data,Y.options),A&&Object.keys(A).forEach(function(Nt){var qt,jn,Qn=Nt;le[Qn]((qt=A[Qn])===null||qt===void 0?void 0:qt.field,(jn=A[Qn])===null||jn===void 0?void 0:jn.values)}),Ye.next=7,this.addLayer(le);case 7:this.isLoaded=!0;case 8:case"end":return Ye.stop()}},m,this)}));function l(){return u.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}}}}]),c}(dT),DF=["rasterData"];function IF(a){var g=CU();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function CU(){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 SU={positions:[0,1],colors:["#000","#fff"]},J4=function(a){(0,At.Z)(c,a);var g=IF(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"initTileLayer",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A,j,Y,le,$e,Ye,Nt;return Zi().wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return A=this.parent.getLayerAttributeConfig(),j=this.getLayerOptions(),Y=this.getSourceOption(),le=this.getLayerOptions(),$e=le.rampColors,Ye=le.domain,this.colorTexture=this.parent.textureService.getColorTexture($e,Ye),Nt=new Y3((0,Ne.Z)((0,Ne.Z)({},j),{},{colorTexture:this.colorTexture})).source(Y.data,Y.options),A&&Object.keys(A).forEach(function(Qn){var Ir,ki,jo=Qn;Nt[jo]((Ir=A[jo])===null||Ir===void 0?void 0:Ir.field,(ki=A[jo])===null||ki===void 0?void 0:ki.values)}),jn.next=9,this.addLayer(Nt);case 9:this.isLoaded=!0;case 10:case"end":return jn.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource(),m=this.sourceTile.data.data,A=m.rasterData,j=(0,gv.Z)(m,DF);return{data:A,options:{parser:(0,Ne.Z)({type:"raster",extent:this.sourceTile.bounds},j),transforms:l.transforms}}}},{key:"styleUpdate",value:function(){for(var l=this,m=arguments.length,A=new Array(m),j=0;j=2&&!le&&(c.parent.updateLayerConfig({visible:!0}),c.layerService.reRender())}c.lastViewStates&&c.lastViewStates.zoom===j&&c.lastViewStates.latLonBounds.toString()===A.toString()||(c.lastViewStates={zoom:j,latLonBounds:A},(l=c.tilesetManager)===null||l===void 0||l.throttleUpdate(j,A))}}),(0,Xn.Z)(this,"viewchange",TU(this.mapchange,24)),this.parent=g;var u=this.parent.getContainer();this.rendererService=u.get(Fr.IRendererService),this.layerService=u.get(Fr.ILayerService),this.mapService=u.get(Fr.IMapService),this.pickingService=u.get(Fr.IPickingService),this.tileLayerService=new cU({rendererService:this.rendererService,layerService:this.layerService,parent:g}),this.tilePickService=new dU({tileLayerService:this.tileLayerService,layerService:this.layerService,parent:g}),this.parent.setLayerPickService(this.tilePickService),this.proxy(g),this.initTileSetManager()}return(0,lt.Z)(a,[{key:"initTileSetManager",value:function(){var c,u=this.parent.getSource();if(this.tilesetManager=u.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0),this.parent.isVisible()!==!1){var l=this.getCurrentView(),m=l.latLonBounds,A=l.zoom;(c=this.tilesetManager)===null||c===void 0||c.update(A,m)}}},{key:"getCurrentView",value:function(){var c=this.mapService.getBounds(),u=[c[0][0],c[0][1],c[1][0],c[1][1]],l=this.mapService.getZoom();return{latLonBounds:u,zoom:l}}},{key:"bindTilesetEvent",value:function(){var c=this;this.tilesetManager.on("tile-loaded",function(u){}),this.tilesetManager.on("tile-unload",function(u){c.tileUnLoad(u)}),this.tilesetManager.on("tile-error",function(u,l){c.tileError(u)}),this.tilesetManager.on("tile-update",function(){c.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(c){return this.tileLayerService.getTile(c)}},{key:"tileLoaded",value:function(c){}},{key:"tileError",value:function(c){console.warn("error:",c)}},{key:"destroy",value:function(){var c;this.mapService.off("zoomend",this.mapchange),this.mapService.off("moveend",this.viewchange),(c=this.tilesetManager)===null||c===void 0||c.destroy(),this.tileLayerService.destroy()}},{key:"reload",value:function(){var c;this.tilesetManager.clear();var u=this.getCurrentView(),l=u.latLonBounds,m=u.zoom;(c=this.tilesetManager)===null||c===void 0||c.update(m,l)}},{key:"tileUnLoad",value:function(c){this.tileLayerService.removeTile(c.key)}},{key:"tileUpdate",value:function(){var g=(0,pl.Z)(Zi().mark(function u(){var l=this,m,A;return Zi().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(this.tilesetManager){Y.next=2;break}return Y.abrupt("return");case 2:return m=this.parent.getMinZoom(),A=this.parent.getMaxZoom(),Y.next=6,Promise.all(this.tilesetManager.tiles.filter(function(le){return le.isLoaded}).filter(function(le){return le.isVisibleChange}).filter(function(le){return le.data}).filter(function(le){return le.z>=m&&le.z=-90&&l<=90,"invalid latitude"),g*=k6;var m=u*Kx,A=l*Kx,j=g*(m+Gx)/(2*Gx),Y=g*(Gx-Math.log(Math.tan(o5+A*.5)))/(2*Gx);return[j,Y]}function O6(a,g){var c=(0,Oi.Z)(a,2),u=c[0],l=c[1];g*=k6;var m=u/g*(2*Gx)-Gx,A=2*(Math.atan(Math.exp(Gx-l/g*(2*Gx)))-o5);return[m*s5,A*s5]}function sY(a){var g=a.latitude;assert(Number.isFinite(g));var c=Math.cos(g*Kx);return FU(M6*c)-9}function JF(a){var g=a.latitude,c=a.longitude,u=a.zoom,l=a.scale,m=a.highPrecision,A=m===void 0?!1:m;l=l!==void 0?l:qF(u),fT(Number.isFinite(g)&&Number.isFinite(c)&&Number.isFinite(l));var j={},Y=k6*l,le=Math.cos(g*Kx),$e=Y/360,Ye=$e/le,Nt=Y/M6/le;if(j.pixelsPerMeter=[Nt,-Nt,Nt],j.metersPerPixel=[1/Nt,-1/Nt,1/Nt],j.pixelsPerDegree=[$e,-Ye,Nt],j.degreesPerPixel=[1/$e,-1/Ye,1/Nt],A){var qt=Kx*Math.tan(g*Kx)/le,jn=$e*qt/2,Qn=Y/M6*qt,Ir=Qn/Ye*Nt;j.pixelsPerDegree2=[0,-jn,Qn],j.pixelsPerMeter2=[Ir,0,Ir]}return j}function aY(a,g){var c=_slicedToArray(a,3),u=c[0],l=c[1],m=c[2],A=_slicedToArray(g,3),j=A[0],Y=A[1],le=A[2],$e=1,Ye=JF({longitude:u,latitude:l,scale:$e,highPrecision:!0}),Nt=Ye.pixelsPerMeter,qt=Ye.pixelsPerMeter2,jn=l5(a,$e);jn[0]+=j*(Nt[0]+qt[0]*Y),jn[1]+=Y*(Nt[1]+qt[1]*Y);var Qn=O6(jn,$e),Ir=(m||0)+(le||0);return Number.isFinite(m)||Number.isFinite(le)?[Qn[0],Qn[1],Ir]:Qn}function kA(a){var g=a.height,c=a.pitch,u=a.bearing,l=a.altitude,m=a.center,A=m===void 0?null:m,j=a.flipY,Y=j===void 0?!1:j,le=aI();return Km(le,le,[0,0,-l]),Dg(le,le,[1,1,1/g]),jm(le,le,-c*Kx),fv(le,le,u*Kx),Y&&Dg(le,le,[1,-1,1]),A&&Km(le,le,Nx([],A)),le}function lI(a){var g=a.width,c=a.height,u=a.altitude,l=u===void 0?a5:u,m=a.pitch,A=m===void 0?0:m,j=a.nearZMultiplier,Y=j===void 0?1:j,le=a.farZMultiplier,$e=le===void 0?1:le,Ye=A*Kx,Nt=Math.atan(.5/l),qt=Math.sin(Nt)*l/Math.sin(Math.PI/2-Ye-Nt),jn=Math.cos(Math.PI/2-Ye)*qt+l;return{fov:2*Math.atan(c/2/l),aspect:g/c,focalDistance:l,near:Y,far:jn*$e}}function QF(a){var g=a.width,c=a.height,u=a.pitch,l=a.altitude,m=a.nearZMultiplier,A=a.farZMultiplier,j=lI({width:g,height:c,altitude:l,pitch:u,nearZMultiplier:m,farZMultiplier:A}),Y=j.fov,le=j.aspect,$e=j.near,Ye=j.far,Nt=yi([],Y,le,$e,Ye);return Nt}function BU(a,g){var c=(0,Oi.Z)(a,3),u=c[0],l=c[1],m=c[2],A=m===void 0?0:m;return fT(Number.isFinite(u)&&Number.isFinite(l)&&Number.isFinite(A)),i5(g,[u,l,A,1])}function e7(a,g){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,u=(0,Oi.Z)(a,3),l=u[0],m=u[1],A=u[2];if(fT(Number.isFinite(l)&&Number.isFinite(m),"invalid pixel coordinate"),Number.isFinite(A)){var j=i5(g,[l,m,A,1]);return j}var Y=i5(g,[l,m,0,1]),le=i5(g,[l,m,1,1]),$e=Y[2],Ye=le[2],Nt=$e===Ye?0:((c||0)-$e)/(Ye-$e);return Cm([],Y,le,Nt)}var MA=aI(),t7=function(){function a(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=g.width,u=g.height,l=g.viewMatrix,m=l===void 0?MA:l,A=g.projectionMatrix,j=A===void 0?MA:A;(0,Bt.Z)(this,a),this.width=c||1,this.height=u||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=m,this.projectionMatrix=j;var Y=aI();sf(Y,Y,this.projectionMatrix),sf(Y,Y,this.viewMatrix),this.viewProjectionMatrix=Y;var le=aI();Dg(le,le,[this.width/2,-this.height/2,1]),Km(le,le,[1,-1,0]),sf(le,le,this.viewProjectionMatrix);var $e=Ap(aI(),le);if(!$e)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=le,this.pixelUnprojectionMatrix=$e,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,lt.Z)(a,[{key:"equals",value:function(c){return c instanceof a?c.width===this.width&&c.height===this.height&&Sn(c.projectionMatrix,this.projectionMatrix)&&Sn(c.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=u.topLeft,m=l===void 0?!0:l,A=this.projectPosition(c),j=BU(A,this.pixelProjectionMatrix),Y=(0,Oi.Z)(j,2),le=Y[0],$e=Y[1],Ye=m?$e:this.height-$e;return c.length===2?[le,Ye]:[le,Ye,j[2]]}},{key:"unproject",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=u.topLeft,m=l===void 0?!0:l,A=u.targetZ,j=(0,Oi.Z)(c,3),Y=j[0],le=j[1],$e=j[2],Ye=m?le:this.height-le,Nt=A&&A*this.pixelsPerMeter,qt=e7([Y,Ye,$e],this.pixelUnprojectionMatrix,Nt),jn=this.unprojectPosition(qt),Qn=(0,Oi.Z)(jn,3),Ir=Qn[0],ki=Qn[1],jo=Qn[2];return Number.isFinite($e)?[Ir,ki,jo]:Number.isFinite(A)?[Ir,ki,A]:[Ir,ki]}},{key:"projectPosition",value:function(c){var u=this.projectFlat(c),l=(0,Oi.Z)(u,2),m=l[0],A=l[1],j=(c[2]||0)*this.pixelsPerMeter;return[m,A,j]}},{key:"unprojectPosition",value:function(c){var u=this.unprojectFlat(c),l=(0,Oi.Z)(u,2),m=l[0],A=l[1],j=(c[2]||0)/this.pixelsPerMeter;return[m,A,j]}},{key:"projectFlat",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return c}},{key:"unprojectFlat",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return c}}]),a}();function uI(a){var g=a.width,c=a.height,u=a.bounds,l=a.minExtent,m=l===void 0?0:l,A=a.maxZoom,j=A===void 0?24:A,Y=a.padding,le=Y===void 0?0:Y,$e=a.offset,Ye=$e===void 0?[0,0]:$e,Nt=(0,Oi.Z)(u,2),qt=(0,Oi.Z)(Nt[0],2),jn=qt[0],Qn=qt[1],Ir=(0,Oi.Z)(Nt[1],2),ki=Ir[0],jo=Ir[1];if(Number.isFinite(le)){var Wo=le;le={top:Wo,bottom:Wo,left:Wo,right:Wo}}else fT(Number.isFinite(le.top)&&Number.isFinite(le.bottom)&&Number.isFinite(le.left)&&Number.isFinite(le.right));var na=new R6({width:g,height:c,longitude:0,latitude:0,zoom:0}),va=na.project([jn,jo]),Fa=na.project([ki,Qn]),vl=[Math.max(Math.abs(Fa[0]-va[0]),m),Math.max(Math.abs(Fa[1]-va[1]),m)],eu=[g-le.left-le.right-Math.abs(Ye[0])*2,c-le.top-le.bottom-Math.abs(Ye[1])*2];fT(eu[0]>0&&eu[1]>0);var uu=eu[0]/vl[0],Hu=eu[1]/vl[1],Vu=(le.right-le.left)/2/uu,ih=(le.bottom-le.top)/2/Hu,Ch=[(Fa[0]+va[0])/2+Vu,(Fa[1]+va[1])/2+ih],Dd=na.unproject(Ch),Jp=na.zoom+Math.log2(Math.abs(Math.min(uu,Hu)));return{longitude:Dd[0],latitude:Dd[1],zoom:Math.min(Jp,j)}}var R6=function(a){(0,At.Z)(g,a);function g(){var c,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=u.width,m=u.height,A=u.latitude,j=A===void 0?0:A,Y=u.longitude,le=Y===void 0?0:Y,$e=u.zoom,Ye=$e===void 0?0:$e,Nt=u.pitch,qt=Nt===void 0?0:Nt,jn=u.bearing,Qn=jn===void 0?0:jn,Ir=u.altitude,ki=Ir===void 0?1.5:Ir,jo=u.nearZMultiplier,Wo=u.farZMultiplier;(0,Bt.Z)(this,g),l=l||1,m=m||1;var na=qF(Ye);ki=Math.max(.75,ki);var va=l5([le,j],na);va[2]=0;var Fa=QF({width:l,height:m,pitch:qt,bearing:Qn,altitude:ki,nearZMultiplier:jo||1/m,farZMultiplier:Wo||1.01}),vl=kA({height:m,center:va,pitch:qt,bearing:Qn,altitude:ki,flipY:!0});return c=(0,an.Z)(this,(0,Tt.Z)(g).call(this,{width:l,height:m,viewMatrix:vl,projectionMatrix:Fa})),c.latitude=j,c.longitude=le,c.zoom=Ye,c.pitch=qt,c.bearing=Qn,c.altitude=ki,c.scale=na,c.center=va,c.pixelsPerMeter=JF((0,ps.Z)((0,ps.Z)(c))).pixelsPerMeter[2],Object.freeze((0,ps.Z)((0,ps.Z)(c))),c}return(0,lt.Z)(g,[{key:"projectFlat",value:function(u){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return l5(u,l)}},{key:"unprojectFlat",value:function(u){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return O6(u,l)}},{key:"getMapCenterByLngLatPosition",value:function(u){var l=u.lngLat,m=u.pos,A=e7(m,this.pixelUnprojectionMatrix),j=l5(l,this.scale),Y=If([],j,Qg([],A)),le=If([],this.center,Y);return O6(le,this.scale)}},{key:"getLocationAtPoint",value:function(u){var l=u.lngLat,m=u.pos;return this.getMapCenterByLngLatPosition({lngLat:l,pos:m})}},{key:"fitBounds",value:function(u){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=this.width,A=this.height,j=uI(Object.assign({width:m,height:A,bounds:u},l)),Y=j.longitude,le=j.latitude,$e=j.zoom;return new g({width:m,height:A,longitude:Y,latitude:le,zoom:$e})}}]),g}(t7),cS=function(){function a(){(0,Bt.Z)(this,a)}return(0,lt.Z)(a,[{key:"syncWithMapCamera",value:function(c){var u=c.center,l=c.zoom,m=c.pitch,A=c.bearing,j=c.viewportHeight,Y=c.viewportWidth,le=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 R6((0,Ne.Z)((0,Ne.Z)({},le),{},{width:Y,height:j,longitude:u&&u[0],latitude:u&&u[1],zoom:l,pitch:m,bearing:A}))}},{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(c,u){return this.viewport.projectFlat(c,u)}}]),a}(),n7=function(){function a(g){(0,Bt.Z)(this,a),(0,Xn.Z)(this,"size",1e4),this.size=g||1e4}return(0,lt.Z)(a,[{key:"setSize",value:function(c){this.size=c}},{key:"getSize",value:function(){return[this.size,this.size]}},{key:"mercatorXfromLng",value:function(c){return(180+c)/360*this.size}},{key:"mercatorYfromLat",value:function(c){return(1-(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+c*Math.PI/360)))/360)*this.size}},{key:"lngFromMercatorX",value:function(c){return c/this.size*360-180}},{key:"latFromMercatorY",value:function(c){var u=180-(1-c/this.size)*360;return 360/Math.PI*Math.atan(Math.exp(u*Math.PI/180))-90}},{key:"project",value:function(c){var u=this.mercatorXfromLng(c[0]),l=this.mercatorYfromLat(c[1]);return[u,l]}},{key:"unproject",value:function(c){var u=this.lngFromMercatorX(c[0]),l=this.latFromMercatorY(c[1]);return[u,l]}}]),a}();function u5(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g={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,Ne.Z)((0,Ne.Z)({},g),a)}var r7={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"},zU=["id","style","minZoom","maxZoom","token","mapInstance","plugin"],i7,OA,o7,RA,s7,a7,NA,c5,h5,d5,N6;function F6(a,g){var c=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,u=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(c||u)&&(g||(g=document),!!g)){var l=g.head||g.getElementsByTagName("head")[0];if(!l){l=g.createElement("head");var m=g.body||g.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(l,m):g.documentElement.appendChild(l)}var A=g.createElement("style");return A.type="text/css",A.styleSheet?A.styleSheet.cssText=a:A.appendChild(g.createTextNode(a)),l.appendChild(A),A}}F6(`.amap-logo{ display: none !important; } -`);var y5={contextmenu:"rightclick"},FF={contextmenu:"rightclick",camerachange:"viewchange"},P4={"GAODE1.x":y5,"GAODE2.x":FF},pV=0;window.forceWebGL=!0;var FI="15cd8a57710d40c9b7c0e3cc120f1200",k4="1.4.15",_5="amap-script",M4=!1,O4=[],gV=12,BF=(LF=(0,As.b2)(),m5=(0,As.f3)(vr.IGlobalConfigService),PF=(0,As.f3)(vr.MapConfig),kF=(0,As.f3)(vr.ICoordinateSystemService),yA=(0,As.f3)(vr.IEventEmitter),LF(MF=(jC=function(){function a(){var p=this;(0,Ct.Z)(this,a),(0,Cn.Z)(this,"version",d0["GAODE1.x"]),(0,Cn.Z)(this,"simpleMapCoord",new T4),(0,Cn.Z)(this,"bgColor","rgba(0, 0, 0, 0)"),Fd(this,"configService",OF,this),Fd(this,"config",RF,this),Fd(this,"coordinateSystemService",NF,this),Fd(this,"eventEmitter",L4,this),(0,Cn.Z)(this,"handleCameraChanged",function(u){var c=u.camera,l=c.fov,g=c.near,T=c.far,B=c.height,Z=c.pitch,ee=c.rotation,Pe=c.aspect,Ze=c.position,Et=p.getCenter(),Mt=Et.lng,An=Et.lat;if(p.emit("mapchange"),p.cameraChangedCallback){p.viewport.syncWithMapCamera({aspect:Pe,bearing:360-ee,far:T,fov:l,cameraHeight:B,near:g,pitch:Z,zoom:p.map.getZoom()-1,center:[Mt,An],offsetOrigin:[Ze.x,Ze.y]});var Mn=p.config.offsetZoom,br=Mn===void 0?gV:Mn;p.viewport.getZoom()>br?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=eo("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(P4[this.version][u]||u,c)}},{key:"off",value:function(u,c){yC.indexOf(u)!==-1?this.eventEmitter.off(u,c):this.map.off(P4[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=on();return Kl(B,B,$g(T[0],T[1],c)),il(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,Ra.Z)(no().mark(function c(){var l=this,g,T,B,Z,ee,Pe,Ze,Et,Mt,An,Mn,br,Li,Zo;return no().wrap(function(Qs){for(;;)switch(Qs.prev=Qs.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,Et=Ze===void 0?18:Ze,Mt=g.token,An=Mt===void 0?FI:Mt,Mn=g.mapInstance,br=g.plugin,Li=br===void 0?[]:br,Zo=(0,Ug.Z)(g,fV),Qs.next=3,new Promise(function(aa){var Oa=function(){if(Mn)l.map=Mn,l.$mapContainer=l.map.getContainer(),setTimeout(function(){l.map.on("camerachange",l.handleCameraChanged),aa()},30);else{l.$mapContainer=l.creatMapContainer(T);var Wl=(0,Se.Z)({mapStyle:l.getMapStyleValue(Z),zooms:[Pe,Et],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(){aa()},10)}};!M4&&!Mn?(An===FI&&console.warn("%c".concat(l.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;"),M4=!0,Li.push("Map3D"),E4().load({key:An,version:k4,plugins:Li}).then(function(){Oa(),O4.length&&(O4.forEach(function(yl){return yl()}),O4=[])}).catch(function(yl){throw new Error(yl)})):M4&&window.AMap||Mn?Oa():O4.push(Oa)});case 3:this.viewport=new NI;case 4:case"end":return Qs.stop()}},c,this)}));function u(){return p.apply(this,arguments)}return u}()},{key:"meterToCoord",value:function(u,c){var l=AMap.GeometryUtil.distance(ri(AMap.LngLat,(0,Rr.Z)(u)),ri(AMap.LngLat,(0,Rr.Z)(c))),g=this.lngLatToCoord(u),T=(0,Xn.Z)(g,2),B=T[0],Z=T[1],ee=this.lngLatToCoord(c),Pe=(0,Xn.Z)(ee,2),Ze=Pe[0],Et=Pe[1],Mt=Math.sqrt(Math.pow(B-Ze,2)+Math.pow(Z-Et,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;TIr?g.coordinateSystemService.setCoordinateSystem(Qd.P20_OFFSET):g.coordinateSystemService.setCoordinateSystem(Qd.P20),g.cameraChangedCallback(g.viewport)}})}return(0,lt.Z)(a,[{key:"setBgColor",value:function(c){this.bgColor=c}},{key:"addMarkerContainer",value:function(){var c=this.map.getContainer();if(c!==null){var u=c.getElementsByClassName("amap-maps")[0];this.markerContainer=Ps("div","l7-marker-container",u)}}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(c,u){bb.indexOf(c)!==-1?this.eventEmitter.on(c,u):this.map.on(cI[this.version][c]||c,u)}},{key:"off",value:function(c,u){bb.indexOf(c)!==-1?this.eventEmitter.off(c,u):this.map.off(cI[this.version][c]||c,u)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){var c;return(c=this.map.getContainer())===null||c===void 0?void 0:c.getElementsByClassName("amap-maps")[0]}},{key:"getSize",value:function(){var c=this.map.getSize();return[c.getWidth(),c.getHeight()]}},{key:"getType",value:function(){return"amap"}},{key:"getZoom",value:function(){return this.map.getZoom()-1}},{key:"setZoom",value:function(c){return this.map.setZoom(c+1)}},{key:"getCenter",value:function(c){if(c!=null&&c.padding){var u=this.getCenter(),l=u5(c.padding),m=this.lngLatToPixel([u.lng,u.lat]),A=[(l.right-l.left)/2,(l.bottom-l.top)/2],j=this.pixelToLngLat([m.x-A[0],m.y-A[1]]);return j}var Y=this.map.getCenter();return{lng:Y.getLng(),lat:Y.getLat()}}},{key:"setCenter",value:function(c,u){if(u!=null&&u.padding){var l=u5(u.padding),m=this.lngLatToPixel(c),A=[(l.right-l.left)/2,(l.bottom-l.top)/2],j=this.pixelToLngLat([m.x+A[0],m.y+A[1]]);this.map.setCenter([j.lng,j.lat])}else this.map.setCenter(c)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return 360-this.map.getRotation()}},{key:"getBounds",value:function(){var c=this.map.getBounds().toBounds(),u=c.getNorthEast(),l=c.getSouthWest(),m=this.getCenter(),A=m.lng>u.getLng()||m.lng0&&arguments[0]!==void 0?arguments[0]:0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy(c,u)}},{key:"fitBounds",value:function(c){this.map.setBounds(new AMap.Bounds([c[0][0],c[0][1],c[1][0],c[1][1]]))}},{key:"setZoomAndCenter",value:function(c,u){this.map.setZoomAndCenter(c+1,u)}},{key:"setMapStyle",value:function(c){this.map.setMapStyle(this.getMapStyleValue(c))}},{key:"setMapStatus",value:function(c){this.map.setStatus(c)}},{key:"getMapStyleConfig",value:function(){return r7}},{key:"getMapStyleValue",value:function(c){return this.getMapStyleConfig()[c]||c}},{key:"getMapStyle",value:function(){return this.map.getMapStyle()}},{key:"pixelToLngLat",value:function(c){var u=this.map.pixelToLngLat(new AMap.Pixel(c[0],c[1]));return{lng:u.getLng(),lat:u.getLat()}}},{key:"lngLatToPixel",value:function(c){var u=this.map.lnglatToPixel(new AMap.LngLat(c[0],c[1]));return{x:u.getX(),y:u.getY()}}},{key:"containerToLngLat",value:function(c){var u=new AMap.Pixel(c[0],c[1]),l=this.map.containerToLngLat(u);return{lng:l==null?void 0:l.getLng(),lat:l==null?void 0:l.getLat()}}},{key:"lngLatToContainer",value:function(c){var u=new AMap.LngLat(c[0],c[1]),l=this.map.lngLatToContainer(u);return{x:l.getX(),y:l.getY()}}},{key:"lngLatToCoord",value:function(c){var u=this.map.lngLatToGeodeticCoord(c),l=u.x,m=u.y;return[l,-m]}},{key:"lngLatToMercator",value:function(c,u){return{x:0,y:0,z:0}}},{key:"getModelMatrix",value:function(c,u,l){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],A=this.viewport.projectFlat(c),j=Ku();return Km(j,j,Nm(A[0],A[1],u)),Dg(j,j,Nm(m[0],m[1],m[2])),jm(j,j,l[0]),Os(j,j,l[1]),fv(j,j,l[2]),j}},{key:"init",value:function(){var g=(0,pl.Z)(Zi().mark(function u(){var l=this,m,A,j,Y,le,$e,Ye,Nt,qt,jn,Qn,Ir,ki,jo;return Zi().wrap(function(na){for(;;)switch(na.prev=na.next){case 0:return m=this.config,A=m.id,j=m.style,Y=j===void 0?"light":j,le=m.minZoom,$e=le===void 0?0:le,Ye=m.maxZoom,Nt=Ye===void 0?18:Ye,qt=m.token,jn=qt===void 0?z6:qt,Qn=m.mapInstance,Ir=m.plugin,ki=Ir===void 0?[]:Ir,jo=(0,gv.Z)(m,zU),na.next=3,new Promise(function(va){var Fa=function(){if(Qn)l.map=Qn,l.$mapContainer=l.map.getContainer(),setTimeout(function(){l.map.on("camerachange",l.handleCameraChanged),va()},30);else{l.$mapContainer=l.creatMapContainer(A);var eu=(0,Ne.Z)({mapStyle:l.getMapStyleValue(Y),zooms:[$e,Nt],viewMode:"3D"},jo);eu.zoom&&(eu.zoom+=1);var uu=new AMap.Map(l.$mapContainer,eu);uu.on("camerachange",l.handleCameraChanged),uu.on("camerachange",function(){setTimeout(function(){return l.handleAfterMapChange()})}),l.map=uu,setTimeout(function(){va()},10)}};!$6&&!Qn?(jn===z6&&console.warn("%c".concat(l.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;"),$6=!0,ki.push("Map3D"),YF().load({key:jn,version:VU,plugins:ki}).then(function(){Fa(),hI.length&&(hI.forEach(function(vl){return vl()}),hI=[])}).catch(function(vl){throw new Error(vl)})):$6&&window.AMap||Qn?Fa():hI.push(Fa)});case 3:this.viewport=new cS;case 4:case"end":return na.stop()}},u,this)}));function c(){return g.apply(this,arguments)}return c}()},{key:"meterToCoord",value:function(c,u){var l=AMap.GeometryUtil.distance(Kr(AMap.LngLat,(0,or.Z)(c)),Kr(AMap.LngLat,(0,or.Z)(u))),m=this.lngLatToCoord(c),A=(0,Oi.Z)(m,2),j=A[0],Y=A[1],le=this.lngLatToCoord(u),$e=(0,Oi.Z)(le,2),Ye=$e[0],Nt=$e[1],qt=Math.sqrt(Math.pow(j-Ye,2)+Math.pow(Y-Nt,2));return qt/l}},{key:"updateView",value:function(c){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(c){var u,l=(u=this.getContainer())===null||u===void 0?void 0:u.getElementsByClassName("amap-layer")[0],m=c==="jpg"?l==null?void 0:l.toDataURL("image/jpeg"):l==null?void 0:l.toDataURL("image/png");return m}},{key:"emit",value:function(c){for(var u,l=arguments.length,m=new Array(l>1?l-1:0),A=1;A1?l-1:0),A=1;Aaa?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=on();return Kl(ee,ee,$g(Z[0],Z[1],g)),il(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,Ra.Z)(no().mark(function g(){var T=this,B,Z,ee,Pe,Ze,Et,Mt,An,Mn,br,Li,Zo,Go,Qs;return no().wrap(function(Oa){for(;;)switch(Oa.prev=Oa.next){case 0:return B=this.config,Z=B.id,ee=B.style,Pe=ee===void 0?"light":ee,Ze=B.minZoom,Et=Ze===void 0?0:Ze,Mt=B.maxZoom,An=Mt===void 0?18:Mt,Mn=B.token,br=Mn===void 0?xV:Mn,Li=B.mapInstance,Zo=B.plugin,Go=Zo===void 0?[]:Zo,Qs=(0,Ug.Z)(B,bV),Oa.next=3,new Promise(function(yl){var Wl=function(){if(Li)T.map=Li,T.$mapContainer=T.map.getContainer(),setTimeout(function(){T.map.on("camerachange",T.handleCameraChanged),yl()},30);else{T.$mapContainer=T.creatMapContainer(Z);var ju=(0,Se.Z)({mapStyle:T.getMapStyleValue(Pe),zooms:[Et,An],viewMode:"3D"},Qs);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(){yl()},10)}};!zI&&!Li?(br===xV&&console.warn(T.configService.getSceneWarninfo("MapToken")),zI=!0,Go.push("Map3D"),_V.load({key:br,version:R4,plugins:Go}).then(function(Jl){Wl(),N4.length&&(N4.forEach(function(ju){return ju()}),N4=[])}).catch(function(Jl){throw new Error(Jl)})):zI&&window.AMap||Li?Wl():N4.push(Wl)});case 3:this.viewport=new b5;case 4:case"end":return Oa.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"meterToCoord",value:function(l,g){var T=AMap.GeometryUtil.distance(ri(AMap.LngLat,(0,Rr.Z)(l)),ri(AMap.LngLat,(0,Rr.Z)(g))),B=this.lngLatToCoord(l),Z=(0,Xn.Z)(B,2),ee=Z[0],Pe=Z[1],Ze=this.lngLatToCoord(g),Et=(0,Xn.Z)(Ze,2),Mt=Et[0],An=Et[1],Mn=Math.sqrt(Math.pow(ee-Mt,2)+Math.pow(Pe-An,2));return Mn/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,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,zt.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,ft.Z)(u,a);var p=CV(u);function u(){return(0,Ct.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,Ct.Z)(this,a),(0,Cn.Z)(this,"projectionMatrix",on()),(0,Cn.Z)(this,"viewMatrix",on()),(0,Cn.Z)(this,"viewProjectionMatrix",on()),(0,Cn.Z)(this,"ViewProjectionMatrixUncentered",on()),(0,Cn.Z)(this,"viewUncenteredMatrix",on())}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,Et=Ze===void 0?[0,1,0]:Ze,Mt=u.lookAt,An=Mt===void 0?[0,0,0]:Mt,Mn=u.aspect,br=Mn===void 0?1:Mn,Li=u.near,Zo=Li===void 0?.1:Li,Go=u.far,Qs=Go===void 0?1e3:Go,aa=u.fov,Oa=aa===void 0?45:aa;this.zoom=l,this.center=T,bi(this.projectionMatrix,Oa/180*Math.PI,br,Zo,Qs);var yl=$g.apply(z,(0,Rr.Z)(Pe)),Wl=$g.apply(z,(0,Rr.Z)(An)),Jl=$g.apply(z,(0,Rr.Z)(Et));Pa(this.viewMatrix,yl,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,Xn.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,F4;function E5(a){var p=T5();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,zt.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{ + `,l.id="l7_amap_div"+B6++,u.appendChild(l),l}}]),a}(),c5=ee(NA.prototype,"configService",[OA],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h5=ee(NA.prototype,"config",[o7],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d5=ee(NA.prototype,"coordinateSystemService",[RA],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N6=ee(NA.prototype,"eventEmitter",[s7],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),NA))||a7);if(!window)throw Error("AMap JSAPI can only be used in Browser.");var ax=function(a){return a.notload="notload",a.loading="loading",a.loaded="loaded",a.failed="failed",a}(ax||{}),__={key:"",AMap:{version:"2.0",plugins:[]}},Uw={AMap:ax.notload},WU=[],ZU=function(g){if(typeof g=="function"){if(Uw.AMap===ax.loaded){g(window.AMap);return}WU.push(g)}},HU=function(){var a=(0,pl.Z)(Zi().mark(function g(c){return Zi().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",new Promise(function(m,A){if(Uw.AMap===ax.failed)A("");else if(Uw.AMap===ax.notload){var j=c.key,Y=c.version,le=c.plugins;if(!j){A("\u8BF7\u586B\u5199key");return}window.AMap&&location.host!=="lbs.amap.com"&&A("\u7981\u6B62\u591A\u79CDAPI\u52A0\u8F7D\u65B9\u5F0F\u6DF7\u7528"),__.key=j,__.AMap.version=Y||__.AMap.version,__.AMap.plugins=le||__.AMap.plugins,Uw.AMap=ax.loading;var $e=document.body||document.head;window._onAPILoaded=function(jn){jn?(Uw.AMap=ax.failed,A(jn)):(Uw.AMap=ax.loaded,m(null))};var Ye=document.createElement("script");Ye.type="text/javascript",Ye.async=!1,Ye.src="https://webapi.amap.com/maps?callback=_onAPILoaded&v="+__.AMap.version+"&key="+j+"&plugin="+__.AMap.plugins.join(","),Ye.onerror=function(jn){Uw.AMap=ax.failed,A(jn)},$e.appendChild(Ye)}else if(Uw.AMap===ax.loaded){if(c.key&&c.key!==__.key){A("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(c.version&&c.version!==__.AMap.version){A("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}var Nt=[];c.plugins&&c.plugins.forEach(function(jn){__.AMap.plugins.indexOf(jn)===-1&&Nt.push(jn)}),Nt.length&&window.AMap.plugin(Nt,function(){m(window.AMap)})}else{if(c.key&&c.key!==__.key){A("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(c.version&&c.version!==__.AMap.version){A("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}var qt=[];c.plugins&&c.plugins.forEach(function(jn){__.AMap.plugins.indexOf(jn)===-1&&qt.push(jn)}),ZU(function(){qt.length&&window.AMap.plugin(qt,function(){m(window.AMap)})})}}));case 1:case"end":return l.stop()}},g)}));return function(c){return a.apply(this,arguments)}}();function GU(){delete window.AMap,__={key:"",AMap:{version:"1.4.15",plugins:[]}},Uw={AMap:ax.notload}}var V6={load:HU,reset:GU},u7=Math.PI/180,p5=function(){function a(){(0,Bt.Z)(this,a),(0,Xn.Z)(this,"projectionMatrix",Ku()),(0,Xn.Z)(this,"viewMatrix",Ku()),(0,Xn.Z)(this,"viewProjectionMatrix",Ku()),(0,Xn.Z)(this,"ViewProjectionMatrixUncentered",Ku()),(0,Xn.Z)(this,"viewUncenteredMatrix",Ku())}return(0,lt.Z)(a,[{key:"syncWithMapCamera",value:function(c){var u=c.zoom,l=u===void 0?1:u,m=c.pitch,A=m===void 0?0:m,j=c.bearing,Y=j===void 0?0:j,le=c.center,$e=le===void 0?[0,0]:le,Ye=c.offsetOrigin,Nt=Ye===void 0?[0,0]:Ye,qt=c.cameraHeight,jn=qt===void 0?1:qt,Qn=c.aspect,Ir=Qn===void 0?1:Qn,ki=c.near,jo=ki===void 0?.1:ki,Wo=c.far,na=Wo===void 0?1e3:Wo,va=c.fov,Fa=va===void 0?0:va;this.zoom=l,this.center=$e;var vl=A*u7,eu=(360-Y)*u7;yi(this.projectionMatrix,Fa,Ir,jo,na);var uu=Nm(jn*Math.sin(vl)*Math.sin(eu),-jn*Math.sin(vl)*Math.cos(eu),jn*Math.cos(vl)),Hu=Nm(-Math.cos(vl)*Math.sin(eu),Math.cos(vl)*Math.cos(eu),Math.sin(vl));Vs(this.viewMatrix,uu,Nm(0,0,0),Hu),this.viewUncenteredMatrix=lm(this.viewMatrix),Km(this.viewMatrix,this.viewMatrix,Nm(-Nt[0],Nt[1],0)),sf(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),sf(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 524288}},{key:"getCenter",value:function(){var c=(0,Oi.Z)(this.center,2),u=c[0],l=c[1];return[u,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(c){var u=85.0511287798,l=Math.max(Math.min(u,c[1]),-u),m=256<<20,A=Math.PI/180,j=c[0]*A,Y=l*A;Y=Math.log(Math.tan(Math.PI/4+Y/2));var le=.5/Math.PI,$e=.5,Ye=-.5/Math.PI;return A=.5,j=m*(le*j+$e)-215440491,Y=-(m*(Ye*Y+A)-106744817),[j,Y]}}]),a}(),dI=["id","style","minZoom","maxZoom","token","mapInstance","plugin"],j6,U6;function lY(a){var g=g5();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function g5(){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 m5="15cd8a57710d40c9b7c0e3cc120f1200",KU="1.4.15",fI=!1,FA=[],XU=12,YU=(j6=(0,fa.b2)(),j6(U6=function(a){(0,At.Z)(c,a);var g=lY(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;Ava?u.coordinateSystemService.setCoordinateSystem(Qd.P20_OFFSET):u.coordinateSystemService.setCoordinateSystem(Qd.P20),u.cameraChangedCallback(u.viewport)}}),u}return(0,lt.Z)(c,[{key:"getModelMatrix",value:function(l,m,A){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Y=this.viewport.projectFlat(l),le=Ku();return Km(le,le,Nm(Y[0],Y[1],m)),Dg(le,le,Nm(j[0],j[1],j[2])),jm(le,le,A[0]),Os(le,le,A[1]),fv(le,le,A[2]),le}},{key:"init",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A=this,j,Y,le,$e,Ye,Nt,qt,jn,Qn,Ir,ki,jo,Wo,na;return Zi().wrap(function(Fa){for(;;)switch(Fa.prev=Fa.next){case 0:return j=this.config,Y=j.id,le=j.style,$e=le===void 0?"light":le,Ye=j.minZoom,Nt=Ye===void 0?0:Ye,qt=j.maxZoom,jn=qt===void 0?18:qt,Qn=j.token,Ir=Qn===void 0?m5:Qn,ki=j.mapInstance,jo=j.plugin,Wo=jo===void 0?[]:jo,na=(0,gv.Z)(j,dI),Fa.next=3,new Promise(function(vl){var eu=function(){if(ki)A.map=ki,A.$mapContainer=A.map.getContainer(),setTimeout(function(){A.map.on("camerachange",A.handleCameraChanged),vl()},30);else{A.$mapContainer=A.creatMapContainer(Y);var Hu=(0,Ne.Z)({mapStyle:A.getMapStyleValue($e),zooms:[Nt,jn],viewMode:"3D"},na);Hu.zoom&&(Hu.zoom+=1);var Vu=new AMap.Map(A.$mapContainer,Hu);Vu.on("camerachange",A.handleCameraChanged),Vu.on("camerachange",function(){setTimeout(function(){return A.handleAfterMapChange()})}),A.map=Vu,setTimeout(function(){vl()},10)}};!fI&&!ki?(Ir===m5&&console.warn(A.configService.getSceneWarninfo("MapToken")),fI=!0,Wo.push("Map3D"),V6.load({key:Ir,version:KU,plugins:Wo}).then(function(uu){eu(),FA.length&&(FA.forEach(function(Hu){return Hu()}),FA=[])}).catch(function(uu){throw new Error(uu)})):fI&&window.AMap||ki?eu():FA.push(eu)});case 3:this.viewport=new p5;case 4:case"end":return Fa.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"meterToCoord",value:function(l,m){var A=AMap.GeometryUtil.distance(Kr(AMap.LngLat,(0,or.Z)(l)),Kr(AMap.LngLat,(0,or.Z)(m))),j=this.lngLatToCoord(l),Y=(0,Oi.Z)(j,2),le=Y[0],$e=Y[1],Ye=this.lngLatToCoord(m),Nt=(0,Oi.Z)(Ye,2),qt=Nt[0],jn=Nt[1],Qn=Math.sqrt(Math.pow(le-qt,2)+Math.pow($e-jn,2));return Qn/A}},{key:"updateView",value:function(l){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(l){var m,A=(m=this.getContainer())===null||m===void 0?void 0:m.getElementsByClassName("amap-layer")[0],j=l==="jpg"?A==null?void 0:A.toDataURL("image/jpeg"):A==null?void 0:A.toDataURL("image/png");return j}},{key:"onCameraChanged",value:function(l){this.cameraChangedCallback=l}}]),c}(l7))||U6);function pI(a){var g=c7();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function c7(){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 W6=function(a){(0,At.Z)(c,a);var g=pI(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"getServiceConstructor",value:function(){return YU}}]),c}(Hx),h7=function(){function a(){(0,Bt.Z)(this,a),(0,Xn.Z)(this,"projectionMatrix",Ku()),(0,Xn.Z)(this,"viewMatrix",Ku()),(0,Xn.Z)(this,"viewProjectionMatrix",Ku()),(0,Xn.Z)(this,"ViewProjectionMatrixUncentered",Ku()),(0,Xn.Z)(this,"viewUncenteredMatrix",Ku())}return(0,lt.Z)(a,[{key:"syncWithMapCamera",value:function(c){var u=c.zoom,l=u===void 0?1:u,m=c.center,A=m===void 0?[0,0]:m,j=c.offsetOrigin,Y=j===void 0?[0,0]:j,le=c.cameraPosition,$e=le===void 0?[0,0,0]:le,Ye=c.up,Nt=Ye===void 0?[0,1,0]:Ye,qt=c.lookAt,jn=qt===void 0?[0,0,0]:qt,Qn=c.aspect,Ir=Qn===void 0?1:Qn,ki=c.near,jo=ki===void 0?.1:ki,Wo=c.far,na=Wo===void 0?1e3:Wo,va=c.fov,Fa=va===void 0?45:va;this.zoom=l,this.center=A,yi(this.projectionMatrix,Fa/180*Math.PI,Ir,jo,na);var vl=Nm.apply(x,(0,or.Z)($e)),eu=Nm.apply(x,(0,or.Z)(jn)),uu=Nm.apply(x,(0,or.Z)(Nt));Vs(this.viewMatrix,vl,eu,uu),this.viewUncenteredMatrix=lm(this.viewMatrix),Km(this.viewMatrix,this.viewMatrix,Nm(-Y[0],Y[1],0)),sf(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),sf(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 1048576}},{key:"getCenter",value:function(){var c=(0,Oi.Z)(this.center,2),u=c[0],l=c[1];return[u,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(c){var u=85.0511287798,l=Math.max(Math.min(u,c[1]),-u),m=256<<20,A=Math.PI/180,j=c[0]*A,Y=l*A;Y=Math.log(Math.tan(Math.PI/4+Y/2));var le=.5/Math.PI,$e=.5,Ye=-.5/Math.PI;return A=.5,j=m*(le*j+$e)-215440491,Y=-(m*(Ye*Y+A)-106744817),[j,Y]}}]),a}(),Z6=["id","style","minZoom","maxZoom","token","mapInstance","plugin","version"],v5,y5;function qU(a){var g=JU();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function JU(){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 QU(a,g){var c=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,u=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(c||u)&&(g||(g=document),!!g)){var l=g.head||g.getElementsByTagName("head")[0];if(!l){l=g.createElement("head");var m=g.body||g.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(l,m):g.documentElement.appendChild(l)}var A=g.createElement("style");return A.type="text/css",A.styleSheet?A.styleSheet.cssText=a:A.appendChild(g.createTextNode(a)),l.appendChild(A),A}}QU(`.amap-logo{ display: none !important; } -`);var HF=[108.92361,34.54083];window.forceWebGL=!0;var ZF="f59bcf249433f8b05caaee19f349b3d7",B4="2.0",GF=!1,zX=null,Zw=(S5=(0,As.b2)(),S5(F4=function(a){(0,ft.Z)(u,a);var p=E5(u);function u(){var c;(0,Ct.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=on();return Kl(ee,ee,$g(Z[0],Z[1],g)),il(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,Ra.Z)(no().mark(function g(){var T,B,Z,ee,Pe,Ze,Et,Mt,An,Mn,br,Li,Zo,Go,Qs,aa,Oa,yl,Wl,Jl,ju,Ku;return no().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,Et=T.maxZoom,Mt=Et===void 0?18:Et,An=T.token,Mn=An===void 0?ZF:An,br=T.mapInstance,Li=T.plugin,Zo=Li===void 0?[]:Li,Go=T.version,Qs=Go===void 0?B4:Go,aa=(0,Ug.Z)(T,w5),this.viewport=new UF,window.AMap||br){gd.next=6;break}return Zo.push("Map3D"),gd.next=6,E4().load({key:Mn,version:B4,plugins:Zo});case 6:br?(this.map=br,this.$mapContainer=this.map.getContainer(),yl=this.map.getCenter(),(Oa=this.map.customCoords)===null||Oa===void 0||Oa.setCenter([yl.lng,yl.lat]),this.setCustomCoordCenter([yl.lng,yl.lat]),this.map.on("viewchange",this.handleViewChanged)):(this.$mapContainer=this.creatMapContainer(B),Jl=(0,Se.Z)({mapStyle:this.getMapStyleValue(ee),zooms:[Ze,Mt],viewMode:"3D"},aa),Jl.zoom&&(Jl.zoom+=1),Mn===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,Et=g.up;this.emit("mapchange");var Mt=this.map.customCoords.getCenter(),An=this.map.getZoom();this.cameraChangedCallback&&(this.viewport.syncWithMapCamera({aspect:ee,far:Z,fov:T,cameraPosition:Pe,lookAt:Ze,near:B,up:Et,zoom:An-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))||F4);function EV(a){var p=TV();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,zt.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,ft.Z)(u,a);var p=EV(u);function u(){return(0,Ct.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,z4,e7,t7,n7,r7={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},Gw=12,Zx=(D5=(0,As.b2)(),XF=(0,As.f3)(vr.MapConfig),YF=(0,As.f3)(vr.IGlobalConfigService),qF=(0,As.f3)(vr.ICoordinateSystemService),JF=(0,As.f3)(vr.IEventEmitter),D5(QF=(xA=function(){function a(){var p=this;(0,Ct.Z)(this,a),(0,Cn.Z)(this,"version",d0.DEFUALT),(0,Cn.Z)(this,"simpleMapCoord",new T4),(0,Cn.Z)(this,"bgColor","rgba(0.0, 0.0, 0.0, 0.0)"),Fd(this,"config",z4,this),Fd(this,"configService",e7,this),Fd(this,"coordinateSystemService",t7,this),Fd(this,"eventEmitter",n7,this),(0,Cn.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=eo("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}(),z4=$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,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,zt.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,ft.Z)(u,a);var p=CA(u);function u(){var c;(0,Ct.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=on();return Kl(ee,ee,$g(Z[0],Z[1],g)),il(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,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,zt.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,ft.Z)(u,a);var p=IV(u);function u(){return(0,Ct.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 $4(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(W4(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=U4*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,jo.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,Ct.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,Ct.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 H4(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,Ct.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*U4;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,Ct.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-Li)}if(this.lngRange){var Zo=An.x,Go=Pe.x/2;Zo-Gog&&(Z=g-Go)}(Z!==void 0||ee!==void 0)&&(this.center=this.unproject(new Hm(Z!==void 0?Z:An.x,ee!==void 0?ee:An.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,Et=this.height/50,Mt=new Float64Array(16);bi(Mt,this._fov,this.width/this.height,Et,Ze),Mt[8]=-c.x*2/this.width,Mt[9]=c.y*2/this.height,il(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=il([],Mt,[this.worldSize,this.worldSize,this.worldSize]),il(Mt,Mt,[1,1,WV(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Mt,this.invProjMatrix=zu([],this.projMatrix);var An=this.width%2/2,Mn=this.height%2/2,br=Math.cos(this.angle),Li=Math.sin(this.angle),Zo=Z-Math.round(Z)+br*An+Li*Mn,Go=ee-Math.round(ee)+br*Mn+Li*An,Qs=new Float64Array(Mt);if(Kl(Qs,Qs,[Zo>.5?Zo-1:Zo,Go>.5?Go-1:Go,0]),this.alignedProjMatrix=Qs,Mt=on(),il(Mt,Mt,[this.width/2,-this.height/2,1]),Kl(Mt,Mt,[1,-1,0]),this.labelPlaneMatrix=Mt,Mt=on(),il(Mt,Mt,[1,-1,1]),Kl(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=zu(new Float64Array(16),this.pixelMatrix),!Mt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=Mt,this.posMatrixCache={},this.alignedPosMatrixCache={}}}}]),a}(),UV=Fa.merge,_0=(0,He.Z)(function a(p){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,Ct.Z)(this,a),UV(this,u),this.type=p});function Kw(a){var p=Z4();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,zt.Z)(this,l)}}function Z4(){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=Fa.merge,SA=function(a){(0,ft.Z)(u,a);var p=Kw(u);function u(c){var l;(0,Ct.Z)(this,u),l=p.call(this),(0,Cn.Z)((0,cs.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,V4({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(),Et=g.zoom?+g.zoom:Z,Mt=g.bearing?this.normalizeBearing(g.bearing,ee):ee,An=g.pitch?+g.pitch:Pe,Mn=g.padding?g.padding:B.padding,br=Hm.convert(g.offset),Li=B.centerPoint.add(br),Zo=B.pointLocation(Li),Go=tv.convert(g.center||Zo);this.normalizeCenter(Go);var Qs=B.project(Zo),aa=B.project(Go).sub(Qs),Oa=B.zoomScale(Et-Z),yl,Wl;g.around&&(yl=tv.convert(g.around),Wl=B.locationPoint(yl));var Jl={moving:this.moving,zooming:this.zooming,rotating:this.rotating,pitching:this.pitching};return this.zooming=this.zooming||Et!==Z,this.rotating=this.rotating||ee!==Mt,this.pitching=this.pitching||An!==Pe,this.padding=!B.isPaddingEqual(Mn),this.easeId=g.easeId,this.prepareEase(T,g.noMoveStart,Jl),clearTimeout(this.easeEndTimeoutID),this.ease(function(ju){if(l.zooming&&(B.zoom=Jb(Z,Et,ju)),l.rotating&&l.rotateEnabled&&(B.bearing=Jb(ee,Mt,ju)),l.pitching&&l.pitchEnabled&&(B.pitch=Jb(Pe,An,ju)),l.padding&&(B.interpolatePadding(Ze,Mn,ju),Li=B.centerPoint.add(br)),yl)B.setLocationAtPoint(yl,Wl);else{var Ku=B.zoomScale(B.zoom-Z),Jc=Et>Z?Math.min(2,Oa):Math.max(.5,Oa),gd=Math.pow(Jc,1-ju),Ch=B.unproject(Qs.add(aa.mult(ju*gd)).mult(Ku));B.setLocationAtPoint(B.renderWorldCopies?Ch.wrap():Ch,Li)}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=j4(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(),Et=this.getPadding(),Mt=g.zoom?VC(+g.zoom,Z.minZoom,Z.maxZoom):ee,An=g.bearing?this.normalizeBearing(g.bearing,Pe):Pe,Mn=g.pitch?+g.pitch:Ze,br="padding"in g?g.padding:Z.padding,Li=Z.zoomScale(Mt-ee),Zo=Hm.convert(g.offset),Go=Z.centerPoint.add(Zo),Qs=Z.pointLocation(Go),aa=tv.convert(g.center||Qs);this.normalizeCenter(aa);var Oa=Z.project(Qs),yl=Z.project(aa).sub(Oa),Wl=g.curve,Jl=Math.max(Z.width,Z.height),ju=Jl/Li,Ku=yl.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!==An,this.pitching=Mn!==Ze,this.padding=!Z.isPaddingEqual(br),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,An,I0)),l.pitching&&(Z.pitch=Jb(Ze,Mn,I0)),l.padding&&(Z.interpolatePadding(Et,br,I0),Go=Z.centerPoint.add(Zo));var hk=I0===1?aa:Z.unproject(Oa.add(yl.mult(e2(bp))).mult(eC));Z.setLocationAtPoint(Z.renderWorldCopies?hk.wrap():hk,Go),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=W4(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,Et=Pe.project(tv.convert(l)),Mt=Pe.project(tv.convert(g)),An=Et.rotate(-T*Math.PI/180),Mn=Mt.rotate(-T*Math.PI/180),br=new Hm(Math.max(An.x,Mn.x),Math.max(An.y,Mn.y)),Li=new Hm(Math.min(An.x,Mn.x),Math.min(An.y,Mn.y)),Zo=br.sub(Li),Go=(Pe.width-(Ze.left+Ze.right+B.padding.left+B.padding.right))/Zo.x,Qs=(Pe.height-(Ze.top+Ze.bottom+B.padding.top+B.padding.bottom))/Zo.y;if(!(Qs<0||Go<0)){var aa=Math.min(Pe.scaleZoom(Pe.scale*Math.min(Go,Qs)),B.maxZoom),Oa=Hm.convert(B.offset),yl=(B.padding.left-B.padding.right)/2,Wl=(B.padding.top-B.padding.bottom)/2,Jl=new Hm(Oa.x+yl,Oa.y+Wl),ju=Jl.mult(Pe.scale/Pe.zoomScale(aa)),Ku=Pe.unproject(Et.add(Mt).div(2).sub(ju));return{center:Ku,zoom:aa,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,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,zt.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=Fa.merge,UC=function(a){(0,ft.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,Ct.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,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,zt.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,ft.Z)(u,a);var p=GV(u);function u(c,l,g){var T;(0,Ct.Z)(this,u);var B=c==="touchend"?g.changedTouches:g.touches,Z=m1.touchPos(l.getCanvasContainer(),B),ee=Z.map(function(Et){return l.unproject(Et)}),Pe=Z.reduce(function(Et,Mt,An,Mn){return Et.add(Mt.div(Mn.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,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,zt.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,ft.Z)(u,a);var p=xb(u);function u(c,l,g){var T;return(0,Ct.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,Ct.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,Ct.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(Mn){l.e(Mn)}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=X4(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=X4(c.zoom,Z,z5);ee.zoom=this.map.transform.zoom+Ze.amount,dS(ee,Ze)}if(c.bearing){var Et=X4(c.bearing,Z,qV);ee.bearing=this.map.transform.bearing+VC(Et.amount,-179,179),dS(ee,Et)}if(c.pitch){var Mt=X4(c.pitch,Z,JV);ee.pitch=this.map.transform.pitch+Mt.amount,dS(ee,Mt)}if(ee.zoom||ee.bearing){var An=c.pinchAround===void 0?c.around:c.pinchAround;ee.around=An?this.map.unproject(An):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}(),Y4,QI=0,AA=2,W5=(Y4={},(0,Cn.Z)(Y4,QI,1),(0,Cn.Z)(Y4,AA,2),Y4);function tU(a,p){var u=W5[p];return a.buttons===void 0||(a.buttons&u)!==u}var j5=function(){function a(p){(0,Ct.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,Et;if(c.type==="wheel"&&ee&&Pe){var Mt=Math.min((uS()-c.lastWheelEventTime)/200,1),An=Pe(Mt);Et=Jb(ee,Z,An),Mt<1?c.frameId||(c.frameId=!0):Ze=!0}else Et=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:Et-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,Ct.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,Ct.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,Ct.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,Ct.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,Ct.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,Ct.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,Ct.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,ft.Z)(u,a);var p=dU(u);function u(){return(0,Ct.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"reset",value:function(){Ma((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,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}(Q4);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,zt.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,ft.Z)(u,a);var p=QX(u);function u(){return(0,Ct.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"reset",value:function(){Ma((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: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,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,zt.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 { +`);var _5=[108.92361,34.54083];window.forceWebGL=!0;var b5="f59bcf249433f8b05caaee19f349b3d7",d7="2.0",hS=!1,uY=null,eW=(v5=(0,fa.b2)(),v5(y5=function(a){(0,At.Z)(c,a);var g=qU(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;Am.getLng()||j.lng3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Y=this.map.customCoords.lngLatToCoord(l),le=Ku();return Km(le,le,Nm(Y[0],Y[1],m)),Dg(le,le,Nm(j[0],j[1],j[2])),jm(le,le,A[0]),Os(le,le,A[1]),fv(le,le,A[2]),le}},{key:"init",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A,j,Y,le,$e,Ye,Nt,qt,jn,Qn,Ir,ki,jo,Wo,na,va,Fa,vl,eu,uu,Hu,Vu;return Zi().wrap(function(Ch){for(;;)switch(Ch.prev=Ch.next){case 0:if(A=this.config,j=A.id,Y=A.style,le=Y===void 0?"light":Y,$e=A.minZoom,Ye=$e===void 0?0:$e,Nt=A.maxZoom,qt=Nt===void 0?18:Nt,jn=A.token,Qn=jn===void 0?b5:jn,Ir=A.mapInstance,ki=A.plugin,jo=ki===void 0?[]:ki,Wo=A.version,na=Wo===void 0?d7:Wo,va=(0,gv.Z)(A,Z6),this.viewport=new h7,window.AMap||Ir){Ch.next=6;break}return jo.push("Map3D"),Ch.next=6,YF().load({key:Qn,version:d7,plugins:jo});case 6:Ir?(this.map=Ir,this.$mapContainer=this.map.getContainer(),vl=this.map.getCenter(),(Fa=this.map.customCoords)===null||Fa===void 0||Fa.setCenter([vl.lng,vl.lat]),this.setCustomCoordCenter([vl.lng,vl.lat]),this.map.on("viewchange",this.handleViewChanged)):(this.$mapContainer=this.creatMapContainer(j),uu=(0,Ne.Z)({mapStyle:this.getMapStyleValue(le),zooms:[Ye,qt],viewMode:"3D"},va),uu.zoom&&(uu.zoom+=1),Qn===b5&&(window._AMapSecurityConfig={securityJsCode:"2653011adeb04230b3a26cc9a780a800"},console.warn("%c".concat(this.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;")),Hu=new AMap.Map(this.$mapContainer,uu),this.map=Hu,Vu=Hu.getCenter(),(eu=this.map.customCoords)===null||eu===void 0||eu.setCenter([Vu.lng,Vu.lat]),this.setCustomCoordCenter([Vu.lng,Vu.lat]),Hu.on("viewchange",this.handleViewChanged)),this.initViewPort();case 8:case"end":return Ch.stop()}},m,this)}));function l(){return u.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,m=(l=this.map.customCoords)===null||l===void 0?void 0:l.getCameraParams(),A=m.fov,j=m.near,Y=m.far,le=m.aspect,$e=m.position,Ye=m.lookAt,Nt=m.up;this.emit("mapchange");var qt=this.map.customCoords.getCenter(),jn=this.map.getZoom();this.cameraChangedCallback&&(this.viewport.syncWithMapCamera({aspect:le,far:Y,fov:A,cameraPosition:$e,lookAt:Ye,near:j,up:Nt,zoom:jn-1,center:qt,offsetOrigin:[$e[0],$e[1]]}),this.coordinateSystemService.setCoordinateSystem(Qd.P20_2),this.cameraChangedCallback(this.viewport))}},{key:"_sub",value:function(l,m){var A=[0,0];return A[0]=l[0]-m[0],A[1]=l[1]-m[1],A}}]),c}(l7))||y5);function tW(a){var g=BA();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function BA(){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 H6=function(a){(0,At.Z)(c,a);var g=tW(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"getServiceConstructor",value:function(){return eW}}]),c}(Hx),nW={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"}}]}},f7,p7,g7,m7,v7,x5,zA,y7,_7,b7,j2,dS={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},$A=12,pT=(f7=(0,fa.b2)(),p7=(0,fa.f3)(Fr.MapConfig),g7=(0,fa.f3)(Fr.IGlobalConfigService),m7=(0,fa.f3)(Fr.ICoordinateSystemService),v7=(0,fa.f3)(Fr.IEventEmitter),f7(x5=(zA=function(){function a(){var g=this;(0,Bt.Z)(this,a),(0,Xn.Z)(this,"version",Zp.DEFUALT),(0,Xn.Z)(this,"simpleMapCoord",new n7),(0,Xn.Z)(this,"bgColor","rgba(0.0, 0.0, 0.0, 0.0)"),P(this,"config",y7,this),P(this,"configService",_7,this),P(this,"coordinateSystemService",b7,this),P(this,"eventEmitter",j2,this),(0,Xn.Z)(this,"handleCameraChanged",function(c){var u=g.map.getCenter(),l=u.lat,m=u.lng;g.emit("mapchange"),g.viewport.syncWithMapCamera({bearing:g.map.getBearing(),center:[m,l],viewportHeight:g.map.transform.height,pitch:g.map.getPitch(),viewportWidth:g.map.transform.width,zoom:g.map.getZoom(),cameraHeight:0}),g.updateCoordinateSystemService(),g.cameraChangedCallback(g.viewport)})}return(0,lt.Z)(a,[{key:"setBgColor",value:function(c){this.bgColor=c}},{key:"addMarkerContainer",value:function(){var c=this.map.getCanvasContainer();this.markerContainer=Ps("div","l7-marker-container",c),this.markerContainer.setAttribute("tabindex","-1")}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"getOverlayContainer",value:function(){}},{key:"on",value:function(c,u){bb.indexOf(c)!==-1?this.eventEmitter.on(c,u):this.map.on(dS[c]||c,u)}},{key:"off",value:function(c,u){this.map.off(dS[c]||c,u),this.eventEmitter.off(c,u)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){if(this.version===Zp.SIMPLE)return this.simpleMapCoord.getSize();var c=this.map.transform;return[c.width,c.height]}},{key:"getType",value:function(){return"default"}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"setZoom",value:function(c){return this.map.setZoom(c)}},{key:"getCenter",value:function(){return this.map.getCenter()}},{key:"setCenter",value:function(c){this.map.setCenter(c)}},{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(c){this.map.setBearing(c)}},{key:"zoomIn",value:function(c,u){this.map.zoomIn(c,u)}},{key:"zoomOut",value:function(c,u){this.map.zoomOut(c,u)}},{key:"setPitch",value:function(c){return this.map.setPitch(c)}},{key:"panTo",value:function(c){this.map.panTo(c)}},{key:"panBy",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy([c,u])}},{key:"fitBounds",value:function(c,u){this.map.fitBounds(c,u)}},{key:"setMaxZoom",value:function(c){this.map.setMaxZoom(c)}},{key:"setMinZoom",value:function(c){this.map.setMinZoom(c)}},{key:"setMapStatus",value:function(c){c.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),c.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),c.dragEnable===!1&&this.map.dragPan.disable(),c.dragEnable===!0&&this.map.dragPan.enable(),c.rotateEnable===!1&&this.map.dragRotate.disable(),c.dragEnable===!0&&this.map.dragRotate.enable(),c.keyboardEnable===!1&&this.map.keyboard.disable(),c.keyboardEnable===!0&&this.map.keyboard.enable(),c.zoomEnable===!1&&this.map.scrollZoom.disable(),c.zoomEnable===!0&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(c,u){this.map.flyTo({zoom:c,center:u})}},{key:"setMapStyle",value:function(c){this.map.setStyle(this.getMapStyleValue(c))}},{key:"meterToCoord",value:function(c,u){return 1}},{key:"pixelToLngLat",value:function(c){return this.map.unproject(c)}},{key:"lngLatToPixel",value:function(c){return this.map.project(c)}},{key:"containerToLngLat",value:function(c){return this.map.unproject(c)}},{key:"lngLatToContainer",value:function(c){return this.map.project(c)}},{key:"getMapStyle",value:function(){try{var c,u=(c=this.map.getStyle().sprite)!==null&&c!==void 0?c:"";return/^mapbox:\/\/sprites\/zcxduo\/\w+\/\w+$/.test(u)?u==null?void 0:u.replace(/\/\w+$/,"").replace(/sprites/,"styles"):u}catch(l){return""}}},{key:"getMapStyleConfig",value:function(){return nW}},{key:"getMapStyleValue",value:function(c){var u;return(u=this.getMapStyleConfig()[c])!==null&&u!==void 0?u:c}},{key:"destroy",value:function(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(c){for(var u,l=arguments.length,m=new Array(l>1?l-1:0),A=1;A1?l-1:0),A=1;A$A&&u?this.coordinateSystemService.setCoordinateSystem(Qd.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(Qd.LNGLAT)}}]),a}(),y7=ee(zA.prototype,"config",[p7],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_7=ee(zA.prototype,"configService",[g7],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b7=ee(zA.prototype,"coordinateSystemService",[m7],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j2=ee(zA.prototype,"eventEmitter",[v7],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),zA))||x5);if(!window)throw Error("BMapGL JSAPI can only be used in Browser.");var Y_=function(a){return a.notload="notload",a.loading="loading",a.loaded="loaded",a.failed="failed",a}(Y_||{}),U2={key:"",BMapGL:{version:"1.0"}},Ww={BMapGL:Y_.notload},G6=[],x7=function(g){if(typeof g=="function"){if(Ww.BMapGL===Y_.loaded){g(window.BMapGL);return}G6.push(g)}},K6=function(g){return new Promise(function(c,u){if(Ww.BMapGL===Y_.failed)u("");else if(Ww.BMapGL===Y_.notload){var l=g.key,m=g.version;if(!l){u("\u8BF7\u586B\u5199key");return}U2.key=l,U2.BMapGL.version=m||U2.BMapGL.version,Ww.BMapGL=Y_.loading;var A=document.body||document.head;window.___onBMapGLAPILoaded=function(Y){if(delete window.___onBMapGLAPILoaded,Y)Ww.BMapGL=Y_.failed,u(Y);else for(Ww.BMapGL=Y_.loaded;G6.length;)G6.splice(0,1)[0](window.BMapGL)};var j=document.createElement("script");j.type="text/javascript",j.src="https://api.map.baidu.com/api?type=webgl&v=".concat(U2.BMapGL.version,"&ak=").concat(U2.key,"&callback=___onBMapGLAPILoaded"),j.onerror=function(Y){Ww.BMapGL=Y_.failed,u(Y)},A.appendChild(j),x7(c)}else if(Ww.BMapGL===Y_.loaded){if(g.key&&g.key!==U2.key){u("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(g.version&&g.version!==U2.BMapGL.version){u("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}c(window.BMapGL)}else{if(g.key&&g.key!==U2.key){u("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(g.version&&g.version!==U2.BMapGL.version){u("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}x7(c)}})},X6=function(){delete window.BMapGL,U2={key:"",BMapGL:{version:"1.0"}},Ww={BMapGL:Y_.notload}},w5={load:K6,reset:X6},w7=["id","center","zoom","token","mapInstance","version","mapSize","minZoom","maxZoom"];function ty(a){var g=Y6();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function Y6(){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,g){var c=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,u=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(c||u)&&(g||(g=document),!!g)){var l=g.head||g.getElementsByTagName("head")[0];if(!l){l=g.createElement("head");var m=g.body||g.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(l,m):g.documentElement.appendChild(l)}var A=g.createElement("style");return A.type="text/css",A.styleSheet?A.styleSheet.cssText=a:A.appendChild(g.createTextNode(a)),l.appendChild(A),A}}C7(`.bmap-contianer--hide-logo .anchorBL > img[src*='api.map.baidu.com/images/logo_hd.png'] { + display: none; +} +`);var q6={mapmove:"moving",contextmenu:"rightclick",camerachange:"update",zoomchange:"zoomend"},S7="zLhopYPPERGtpGOgimcdKcCimGRyyIsh",E7="1.0",rW=function(a){(0,At.Z)(c,a);var g=ty(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;A3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Y=this.viewport.projectFlat(l),le=Ku();return Km(le,le,Nm(Y[0],Y[1],m)),Dg(le,le,Nm(j[0],j[1],j[2])),jm(le,le,A[0]),Os(le,le,A[1]),fv(le,le,A[2]),le}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"exportMap",value:function(l){var m=this.getMap()._webglPainter._canvas,A=l==="jpg"?m==null?void 0:m.toDataURL("image/jpeg"):m==null?void 0:m.toDataURL("image/png");return A}},{key:"hideLogo",value:function(){var l=this.map.getContainer();l&&Za(l,"bmap-contianer--hide-logo")}},{key:"initMapByConfig",value:function(l){var m=l.style,A=l.pitch,j=A===void 0?0:A,Y=l.rotation,le=Y===void 0?0:Y,$e=l.logoVisible,Ye=$e===void 0?!0:$e;m&&this.setMapStyle(m),j&&this.setPitch(j),le&&this.setRotation(le),Ye===!1&&this.hideLogo()}}]),c}(pT);function iW(a){var g=C5();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function C5(){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 oW=function(a){(0,At.Z)(c,a);var g=iW(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"getServiceConstructor",value:function(){return rW}}]),c}(Hx),sW=_(58240),aW=_.n(sW);function T7(a,g){var c=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=S5(a))||g&&a&&typeof a.length=="number"){c&&(a=c);var u=0,l=function(){};return{s:l,n:function(){return u>=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function S5(a,g){if(a){if(typeof a=="string")return E5(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return E5(a,g)}}function E5(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);c1?g-1:0),u=1;u90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}return(0,lt.Z)(a,[{key:"wrap",value:function(){return new a(Q6(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(c){var u=Math.PI/180,l=this.lat*u,m=c.lat*u,A=Math.sin(l)*Math.sin(m)+Math.cos(l)*Math.cos(m)*Math.cos((c.lng-this.lng)*u),j=A7*Math.acos(Math.min(A,1));return j}}],[{key:"convert",value:function(c){if(c instanceof a)return c;if(Array.isArray(c)&&(c.length===2||c.length===3))return new a(Number(c[0]),Number(c[1]));if(!Array.isArray(c)&&(0,Li.Z)(c)==="object"&&c!==null){var u="lng"in c?c.lng:c.lon;return new a(Number(u),Number(c.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}(),UA=function(){function a(g,c){(0,Bt.Z)(this,a),g&&(c?this.setSouthWest(g).setNorthEast(c):g.length===4?this.setSouthWest([g[0],g[1]]).setNorthEast([g[2],g[3]]):this.setSouthWest(g[0]).setNorthEast(g[1]))}return(0,lt.Z)(a,[{key:"setNorthEast",value:function(c){return this.ne=c instanceof _v?new _v(c.lng,c.lat):_v.convert(c),this}},{key:"setSouthWest",value:function(c){return this.sw=c instanceof _v?new _v(c.lng,c.lat):_v.convert(c),this}},{key:"extend",value:function(c){var u=this.sw,l=this.ne,m,A;if(c instanceof _v)m=c,A=c;else if(c instanceof a){if(m=c.sw,A=c.ne,!m||!A)return this}else{if(Array.isArray(c))if(c.length===4||c.every(Array.isArray)){var j=c;return this.extend(a.convert(j))}else{var Y=c;return this.extend(_v.convert(Y))}return this}return!u&&!l?(this.sw=new _v(m.lng,m.lat),this.ne=new _v(A.lng,A.lat)):(u.lng=Math.min(m.lng,u.lng),u.lat=Math.min(m.lat,u.lat),l.lng=Math.max(A.lng,l.lng),l.lat=Math.max(A.lat,l.lat)),this}},{key:"getCenter",value:function(){return new _v((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 _v(this.getWest(),this.getNorth())}},{key:"getSouthEast",value:function(){return new _v(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(c){var u=_v.convert(c),l=u.lng,m=u.lat,A=this.sw.lat<=m&&m<=this.ne.lat,j=this.sw.lng<=l&&l<=this.ne.lng;return this.sw.lng>this.ne.lng&&(j=this.sw.lng>=l&&l>=this.ne.lng),A&&j}}],[{key:"convert",value:function(c){return c instanceof a?c:new a(c)}}]),a}(),t0=function(){function a(g,c){(0,Bt.Z)(this,a),this.x=g,this.y=c}return(0,lt.Z)(a,[{key:"clone",value:function(){return new a(this.x,this.y)}},{key:"_add",value:function(c){return this.x+=c.x,this.y+=c.y,this}},{key:"add",value:function(c){return this.clone()._add(c)}},{key:"_sub",value:function(c){return this.x-=c.x,this.y-=c.y,this}},{key:"sub",value:function(c){return this.clone()._sub(c)}},{key:"_multByPoint",value:function(c){return this.x*=c.x,this.y*=c.y,this}},{key:"multByPoint",value:function(c){return this.clone()._multByPoint(c)}},{key:"_divByPoint",value:function(c){return this.x/=c.x,this.y/=c.y,this}},{key:"divByPoint",value:function(c){return this.clone()._divByPoint(c)}},{key:"_mult",value:function(c){return this.x*=c,this.y*=c,this}},{key:"mult",value:function(c){return this.clone()._mult(c)}},{key:"_div",value:function(c){return this.x/=c,this.y/=c,this}},{key:"div",value:function(c){return this.clone()._div(c)}},{key:"_rotate",value:function(c){var u=Math.cos(c),l=Math.sin(c),m=u*this.x-l*this.y,A=l*this.x+u*this.y;return this.x=m,this.y=A,this}},{key:"rotate",value:function(c){return this.clone()._rotate(c)}},{key:"_rotateAround",value:function(c,u){var l=Math.cos(c),m=Math.sin(c),A=u.x+l*(this.x-u.x)-m*(this.y-u.y),j=u.y+m*(this.x-u.x)+l*(this.y-u.y);return this.x=A,this.y=j,this}},{key:"roateAround",value:function(c,u){return this.clone()._rotateAround(c,u)}},{key:"_matMult",value:function(c){var u=c[0]*this.x+c[1]*this.y,l=c[2]*this.x+c[3]*this.y;return this.x=u,this.y=l,this}},{key:"matMult",value:function(c){return this.clone()._matMult(c)}},{key:"_unit",value:function(){return this.div(this.mag()),this}},{key:"unit",value:function(){return this.clone()._unit()}},{key:"_perp",value:function(){var c=this.y;return this.y=this.x,this.x=-c,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(c){return this.x===c.x&&this.y===c.y}},{key:"dist",value:function(c){return Math.sqrt(this.distSqr(c))}},{key:"distSqr",value:function(c){var u=c.x-this.x,l=c.y-this.y;return u*u+l*l}},{key:"angle",value:function(){return Math.atan2(this.y,this.x)}},{key:"angleTo",value:function(c){return Math.atan2(this.y-c.y,this.x-c.x)}},{key:"angleWith",value:function(c){return this.angleWithSep(c.x,c.y)}},{key:"angleWithSep",value:function(c,u){return Math.atan2(this.x*u-this.y*c,this.x*c+this.y*u)}}],[{key:"convert",value:function(c){return c instanceof a?c:Array.isArray(c)?new a(c[0],c[1]):c}}]),a}();function Xy(){var a=new ko(4);return ko!=Float32Array&&(a[1]=0,a[2]=0),a[0]=1,a[3]=1,a}function T5(a){var g=new glMatrix.ARRAY_TYPE(4);return g[0]=a[0],g[1]=a[1],g[2]=a[2],g[3]=a[3],g}function cY(a,g){return a[0]=g[0],a[1]=g[1],a[2]=g[2],a[3]=g[3],a}function hY(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=1,a}function nO(a,g,c,u){var l=new glMatrix.ARRAY_TYPE(4);return l[0]=a,l[1]=g,l[2]=c,l[3]=u,l}function dY(a,g,c,u,l){return a[0]=g,a[1]=c,a[2]=u,a[3]=l,a}function cW(a,g){if(a===g){var c=g[1];a[1]=g[2],a[2]=c}else a[0]=g[0],a[1]=g[2],a[2]=g[1],a[3]=g[3];return a}function hW(a,g){var c=g[0],u=g[1],l=g[2],m=g[3],A=c*m-l*u;return A?(A=1/A,a[0]=m*A,a[1]=-u*A,a[2]=-l*A,a[3]=c*A,a):null}function fY(a,g){var c=g[0];return a[0]=g[3],a[1]=-g[1],a[2]=-g[2],a[3]=c,a}function pY(a){return a[0]*a[3]-a[2]*a[1]}function kte(a,g,c){var u=g[0],l=g[1],m=g[2],A=g[3],j=c[0],Y=c[1],le=c[2],$e=c[3];return a[0]=u*j+m*Y,a[1]=l*j+A*Y,a[2]=u*le+m*$e,a[3]=l*le+A*$e,a}function gY(a,g,c){var u=g[0],l=g[1],m=g[2],A=g[3],j=Math.sin(c),Y=Math.cos(c);return a[0]=u*Y+m*j,a[1]=l*Y+A*j,a[2]=u*-j+m*Y,a[3]=l*-j+A*Y,a}function Mte(a,g,c){var u=g[0],l=g[1],m=g[2],A=g[3],j=c[0],Y=c[1];return a[0]=u*j,a[1]=l*j,a[2]=m*Y,a[3]=A*Y,a}function Ote(a,g){var c=Math.sin(g),u=Math.cos(g);return a[0]=u,a[1]=c,a[2]=-c,a[3]=u,a}function rO(a,g){return a[0]=g[0],a[1]=0,a[2]=0,a[3]=g[1],a}function Rte(a){return"mat2("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"}function Nte(a){return Math.hypot(a[0],a[1],a[2],a[3])}function Fte(a,g,c,u){return a[2]=u[2]/u[0],c[0]=u[0],c[1]=u[1],c[3]=u[3]-a[2]*c[1],[a,g,c]}function Bte(a,g,c){return a[0]=g[0]+c[0],a[1]=g[1]+c[1],a[2]=g[2]+c[2],a[3]=g[3]+c[3],a}function gS(a,g,c){return a[0]=g[0]-c[0],a[1]=g[1]-c[1],a[2]=g[2]-c[2],a[3]=g[3]-c[3],a}function dW(a,g){return a[0]===g[0]&&a[1]===g[1]&&a[2]===g[2]&&a[3]===g[3]}function fW(a,g){var c=a[0],u=a[1],l=a[2],m=a[3],A=g[0],j=g[1],Y=g[2],le=g[3];return Math.abs(c-A)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(u-j)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(j))&&Math.abs(l-Y)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(Y))&&Math.abs(m-le)<=glMatrix.EPSILON*Math.max(1,Math.abs(m),Math.abs(le))}function mY(a,g,c){return a[0]=g[0]*c,a[1]=g[1]*c,a[2]=g[2]*c,a[3]=g[3]*c,a}function vY(a,g,c,u){return a[0]=g[0]+c[0]*u,a[1]=g[1]+c[1]*u,a[2]=g[2]+c[2]*u,a[3]=g[3]+c[3]*u,a}var yY=null,_Y=null,pW=function(){function a(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=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(g)||g<0||isNaN(c)||c<0||isNaN(u)||u<0||isNaN(l)||l<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=g,this.bottom=c,this.left=u,this.right=l}return(0,lt.Z)(a,[{key:"interpolate",value:function(c,u,l){return u.top!=null&&c.top!=null&&(this.top=lx(c.top,u.top,l)),u.bottom!=null&&c.bottom!=null&&(this.bottom=lx(c.bottom,u.bottom,l)),u.left!=null&&c.left!=null&&(this.left=lx(c.left,u.left,l)),u.right!=null&&c.right!=null&&(this.right=lx(c.right,u.right,l)),this}},{key:"getCenter",value:function(c,u){var l=fS((this.left+c-this.right)/2,0,c),m=fS((this.top+u-this.bottom)/2,0,u);return new t0(l,m)}},{key:"equals",value:function(c){return this.top===c.top&&this.bottom===c.bottom&&this.left===c.left&&this.right===c.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}(),iO=2*Math.PI*A7;function D7(a){return iO*Math.cos(a*Math.PI/180)}function A5(a){return(180+a)/360}function ux(a){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+a*Math.PI/360)))/360}function mI(a,g){return a/D7(g)}function I7(a){return a*360-180}function gT(a){var g=180-a*360;return 360/Math.PI*Math.atan(Math.exp(g*Math.PI/180))-90}function gW(a,g){return a*D7(gT(g))}function mW(a){return 1/Math.cos(a*Math.PI/180)}var W2=function(){function a(g,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;(0,Bt.Z)(this,a),this.x=+g,this.y=+c,this.z=+u}return(0,lt.Z)(a,[{key:"toLngLat",value:function(){return new _v(I7(this.x),gT(this.y))}},{key:"toAltitude",value:function(){return gW(this.z,this.y)}},{key:"meterInMercatorCoordinateUnits",value:function(){return 1/iO*mW(gT(this.y))}}],[{key:"fromLngLat",value:function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=_v.convert(c);return new a(A5(l.lng),ux(l.lat),mI(u,l.lat))}}]),a}();function vW(a,g){var c=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=vI(a))||g&&a&&typeof a.length=="number"){c&&(a=c);var u=0,l=function(){};return{s:l,n:function(){return u>=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function vI(a,g){if(a){if(typeof a=="string")return L7(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return L7(a,g)}}function L7(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);cu&&(le=u-ki)}if(this.lngRange){var jo=jn.x,Wo=$e.x/2;jo-Wom&&(Y=m-Wo)}(Y!==void 0||le!==void 0)&&(this.center=this.unproject(new t0(Y!==void 0?Y:jn.x,le!==void 0?le:jn.y))),this.unmodified=Ye,this.constraining=!1}}},{key:"calcMatrices",value:function(){if(this.height){var c=this._fov/2,u=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(c)*this.height;var l=Math.PI/2+this._pitch,m=this._fov*(.5+u.y/this.height),A=Math.sin(m)*this.cameraToCenterDistance/Math.sin(fS(Math.PI-l-m,.01,Math.PI-.01)),j=this.point,Y=j.x,le=j.y,$e=Math.cos(Math.PI/2-this._pitch)*A+this.cameraToCenterDistance,Ye=$e*1.01,Nt=this.height/50,qt=new Float64Array(16);yi(qt,this._fov,this.width/this.height,Nt,Ye),qt[8]=-u.x*2/this.width,qt[9]=u.y*2/this.height,Dg(qt,qt,[1,-1,1]),Km(qt,qt,[0,0,-this.cameraToCenterDistance]),jm(qt,qt,this._pitch),fv(qt,qt,this.angle),Km(qt,qt,[-Y,-le,0]),this.mercatorMatrix=Dg([],qt,[this.worldSize,this.worldSize,this.worldSize]),Dg(qt,qt,[1,1,mI(1,this.center.lat)*this.worldSize,1]),this.projMatrix=qt,this.invProjMatrix=Ap([],this.projMatrix);var jn=this.width%2/2,Qn=this.height%2/2,Ir=Math.cos(this.angle),ki=Math.sin(this.angle),jo=Y-Math.round(Y)+Ir*jn+ki*Qn,Wo=le-Math.round(le)+Ir*Qn+ki*jn,na=new Float64Array(qt);if(Km(na,na,[jo>.5?jo-1:jo,Wo>.5?Wo-1:Wo,0]),this.alignedProjMatrix=na,qt=Ku(),Dg(qt,qt,[this.width/2,-this.height/2,1]),Km(qt,qt,[1,-1,0]),this.labelPlaneMatrix=qt,qt=Ku(),Dg(qt,qt,[1,-1,1]),Km(qt,qt,[-1,-1,0]),Dg(qt,qt,[2/this.width,2/this.height,1]),this.glCoordMatrix=qt,this.pixelMatrix=sf(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),qt=Ap(new Float64Array(16),this.pixelMatrix),!qt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=qt,this.posMatrixCache={},this.alignedPosMatrixCache={}}}}]),a}(),P7=Js.merge,M0=(0,lt.Z)(function a(g){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,Bt.Z)(this,a),P7(this,c),this.type=g});function k7(a){var g=_W();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.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 Z2=Js.merge,WA=function(a){(0,At.Z)(c,a);var g=k7(c);function c(u){var l;(0,Bt.Z)(this,c),l=g.call(this),(0,Xn.Z)((0,ps.Z)(l),"renderFrameCallback",function(){var $e=Math.min((pS()-l.easeStart)/l.easeOptions.duration,1);l.onEaseFrame(l.easeOptions.easing($e)),$e<1?l.easeFrameId=l.requestRenderFrame(l.renderFrameCallback):l.stop()}),l.options=u;var m=u.minZoom,A=u.maxZoom,j=u.minPitch,Y=u.maxPitch,le=u.renderWorldCopies;return l.moving=!1,l.zooming=!1,l.bearingSnap=u.bearingSnap,l.pitchEnabled=u.pitchEnabled,l.rotateEnabled=u.rotateEnabled,l.transform=new yW(m,A,j,Y,le),l}return(0,lt.Z)(c,[{key:"requestRenderFrame",value:function(l){return 0}},{key:"cancelRenderFrame",value:function(l){}},{key:"getCenter",value:function(){var l=this.transform.center,m=l.lng,A=l.lat;return new _v(m,A)}},{key:"getZoom",value:function(){return this.transform.zoom}},{key:"getPitch",value:function(){return this.transform.pitch}},{key:"setCenter",value:function(l,m){return this.jumpTo({center:l},m)}},{key:"setPitch",value:function(l,m){return this.jumpTo({pitch:l},m),this}},{key:"getBearing",value:function(){return this.transform.bearing}},{key:"panTo",value:function(l,m,A){return this.easeTo(Z2({center:l},m),A)}},{key:"panBy",value:function(l,m,A){return l=t0.convert(l).mult(-1),this.panTo(this.transform.center,tO({offset:l},m||{}),A)}},{key:"zoomOut",value:function(l,m){return this.zoomTo(this.getZoom()-1,l,m),this}},{key:"setBearing",value:function(l,m){return this.jumpTo({bearing:l},m),this}},{key:"setZoom",value:function(l,m){return this.jumpTo({zoom:l},m),this}},{key:"zoomIn",value:function(l,m){return this.zoomTo(this.getZoom()+1,l,m),this}},{key:"zoomTo",value:function(l,m,A){return this.easeTo(Z2({zoom:l},m),A)}},{key:"getPadding",value:function(){return this.transform.padding}},{key:"setPadding",value:function(l,m){return this.jumpTo({padding:l},m),this}},{key:"rotateTo",value:function(l,m,A){return this.easeTo(Z2({bearing:l},m),A)}},{key:"resetNorth",value:function(l,m){return this.rotateTo(0,Z2({duration:1e3},l),m),this}},{key:"resetNorthPitch",value:function(l,m){return this.easeTo(Z2({bearing:0,pitch:0,duration:1e3},l),m),this}},{key:"fitBounds",value:function(l,m,A){return this.fitInternal(this.cameraForBounds(l,m),m,A)}},{key:"cameraForBounds",value:function(l,m){return l=UA.convert(l),this.cameraForBoxAndBearing(l.getNorthWest(),l.getSouthEast(),0,m)}},{key:"snapToNorth",value:function(l,m){return Math.abs(this.getBearing())0&&arguments[0]!==void 0?arguments[0]:{},m=arguments.length>1?arguments[1]:void 0;this.stop();var A=this.transform,j=!1,Y=!1,le=!1;return l.zoom!==void 0&&A.zoom!==+l.zoom&&(j=!0,A.zoom=+l.zoom),l.center!==void 0&&(A.center=_v.convert(l.center)),l.bearing!==void 0&&A.bearing!==+l.bearing&&(Y=!0,A.bearing=+l.bearing),l.pitch!==void 0&&A.pitch!==+l.pitch&&(le=!0,A.pitch=+l.pitch),l.padding!==void 0&&!A.isPaddingEqual(l.padding)&&(A.padding=l.padding),this.emit("movestart",new M0("movestart",m)),this.emit("move",new M0("move",m)),j&&(this.emit("zoomstart",new M0("zoomstart",m)),this.emit("zoom",new M0("zoom",m)),this.emit("zoomend",new M0("zoomend",m))),Y&&(this.emit("rotatestart",new M0("rotatestart",m)),this.emit("rotate",new M0("rotate",m)),this.emit("rotateend",new M0("rotateend",m))),le&&(this.emit("pitchstart",new M0("pitchstart",m)),this.emit("pitch",new M0("pitch",m)),this.emit("pitchend",new M0("pitchend",m))),this.emit("moveend",new M0("moveend",m))}},{key:"easeTo",value:function(){var l=this,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=arguments.length>1?arguments[1]:void 0;m=Z2({offset:[0,0],duration:500,easing:b_},m),(m.animate===!1||!m.essential&&eO())&&(m.duration=0);var j=this.transform,Y=this.getZoom(),le=this.getBearing(),$e=this.getPitch(),Ye=this.getPadding(),Nt=m.zoom?+m.zoom:Y,qt=m.bearing?this.normalizeBearing(m.bearing,le):le,jn=m.pitch?+m.pitch:$e,Qn=m.padding?m.padding:j.padding,Ir=t0.convert(m.offset),ki=j.centerPoint.add(Ir),jo=j.pointLocation(ki),Wo=_v.convert(m.center||jo);this.normalizeCenter(Wo);var na=j.project(jo),va=j.project(Wo).sub(na),Fa=j.zoomScale(Nt-Y),vl,eu;m.around&&(vl=_v.convert(m.around),eu=j.locationPoint(vl));var uu={moving:this.moving,zooming:this.zooming,rotating:this.rotating,pitching:this.pitching};return this.zooming=this.zooming||Nt!==Y,this.rotating=this.rotating||le!==qt,this.pitching=this.pitching||jn!==$e,this.padding=!j.isPaddingEqual(Qn),this.easeId=m.easeId,this.prepareEase(A,m.noMoveStart,uu),clearTimeout(this.easeEndTimeoutID),this.ease(function(Hu){if(l.zooming&&(j.zoom=lx(Y,Nt,Hu)),l.rotating&&l.rotateEnabled&&(j.bearing=lx(le,qt,Hu)),l.pitching&&l.pitchEnabled&&(j.pitch=lx($e,jn,Hu)),l.padding&&(j.interpolatePadding(Ye,Qn,Hu),ki=j.centerPoint.add(Ir)),vl)j.setLocationAtPoint(vl,eu);else{var Vu=j.zoomScale(j.zoom-Y),ih=Nt>Y?Math.min(2,Fa):Math.max(.5,Fa),Ch=Math.pow(ih,1-Hu),Dd=j.unproject(na.add(va.mult(Hu*Ch)).mult(Vu));j.setLocationAtPoint(j.renderWorldCopies?Dd.wrap():Dd,ki)}l.fireMoveEvents(A)},function(Hu){l.afterEase(A,Hu)},m),this}},{key:"flyTo",value:function(){var l=this,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=arguments.length>1?arguments[1]:void 0;if(!m.essential&&eO()){var j=lW(m,["center","zoom","bearing","pitch","around"]);return this.jumpTo(j,A)}this.stop(),m=Z2({offset:[0,0],speed:1.2,curve:1.42,easing:b_},m);var Y=this.transform,le=this.getZoom(),$e=this.getBearing(),Ye=this.getPitch(),Nt=this.getPadding(),qt=m.zoom?fS(+m.zoom,Y.minZoom,Y.maxZoom):le,jn=m.bearing?this.normalizeBearing(m.bearing,$e):$e,Qn=m.pitch?+m.pitch:Ye,Ir="padding"in m?m.padding:Y.padding,ki=Y.zoomScale(qt-le),jo=t0.convert(m.offset),Wo=Y.centerPoint.add(jo),na=Y.pointLocation(Wo),va=_v.convert(m.center||na);this.normalizeCenter(va);var Fa=Y.project(na),vl=Y.project(va).sub(Fa),eu=m.curve,uu=Math.max(Y.width,Y.height),Hu=uu/ki,Vu=vl.mag();if("minZoom"in m){var ih=fS(Math.min(m.minZoom,le,qt),Y.minZoom,Y.maxZoom),Ch=uu/Y.zoomScale(ih-le);eu=Math.sqrt(Ch/Vu*2)}var Dd=eu*eu;function Jp(Dv){var ny=(Hu*Hu-uu*uu+(Dv?-1:1)*Dd*Dd*Vu*Vu)/(2*(Dv?Hu:uu)*Dd*Vu);return Math.log(Math.sqrt(ny*ny+1)-ny)}function Gg(Dv){return(Math.exp(Dv)-Math.exp(-Dv))/2}function mg(Dv){return(Math.exp(Dv)+Math.exp(-Dv))/2}function O0(Dv){return Gg(Dv)/mg(Dv)}var E0=Jp(0),Kv=function(ny){return mg(E0)/mg(E0+eu*ny)},Y2=function(ny){return uu*((mg(E0)*O0(E0+eu*ny)-Gg(E0))/Dd)/Vu},My=(Jp(1)-E0)/eu;if(Math.abs(Vu)<1e-6||!isFinite(My)){if(Math.abs(uu-Hu)<1e-6)return this.easeTo(m,A);var wS=Hum.maxDuration&&(m.duration=0),this.zooming=!0,this.rotating=$e!==jn,this.pitching=Qn!==Ye,this.padding=!Y.isPaddingEqual(Ir),this.prepareEase(A,!1),this.ease(function(Dv){var ny=Dv*My,HI=1/Kv(ny);Y.zoom=Dv===1?qt:le+Y.scaleZoom(HI),l.rotating&&(Y.bearing=lx($e,jn,Dv)),l.pitching&&(Y.pitch=lx(Ye,Qn,Dv)),l.padding&&(Y.interpolatePadding(Nt,Ir,Dv),Wo=Y.centerPoint.add(jo));var Rb=Dv===1?va:Y.unproject(Fa.add(vl.mult(Y2(ny))).mult(HI));Y.setLocationAtPoint(Y.renderWorldCopies?Rb.wrap():Rb,Wo),l.fireMoveEvents(A)},function(){return l.afterEase(A)},m),this}},{key:"fitScreenCoordinates",value:function(l,m,A,j,Y){return this.fitInternal(this.cameraForBoxAndBearing(this.transform.pointLocation(t0.convert(l)),this.transform.pointLocation(t0.convert(m)),A,j),j,Y)}},{key:"stop",value:function(l,m){if(this.easeFrameId&&(this.cancelRenderFrame(this.easeFrameId),delete this.easeFrameId,delete this.onEaseFrame),this.onEaseEnd){var A=this.onEaseEnd;delete this.onEaseEnd,A.call(this,m)}return this}},{key:"normalizeBearing",value:function(l,m){l=Q6(l,-180,180);var A=Math.abs(l-m);return Math.abs(l-360-m)180?-360:A<-180?360:0}}},{key:"fireMoveEvents",value:function(l){this.emit("move",new M0("move",l)),this.zooming&&this.emit("zoom",new M0("zoom",l)),this.rotating&&this.emit("rotate",new M0("rotate",l)),this.pitching&&this.emit("rotate",new M0("pitch",l))}},{key:"prepareEase",value:function(l){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.moving=!0,!m&&!A.moving&&this.emit("movestart",new M0("movestart",l)),this.zooming&&!A.zooming&&this.emit("zoomstart",new M0("zoomstart",l)),this.rotating&&!A.rotating&&this.emit("rotatestart",new M0("rotatestart",l)),this.pitching&&!A.pitching&&this.emit("pitchstart",new M0("pitchstart",l))}},{key:"afterEase",value:function(l,m){if(!(this.easeId&&m&&this.easeId===m)){delete this.easeId;var A=this.zooming,j=this.rotating,Y=this.pitching;this.moving=!1,this.zooming=!1,this.rotating=!1,this.pitching=!1,this.padding=!1,A&&this.emit("zoomend",new M0("zoomend",l)),j&&this.emit("rotateend",new M0("rotateend",l)),Y&&this.emit("pitchend",new M0("pitchend",l)),this.emit("moveend",new M0("moveend",l))}}},{key:"ease",value:function(l,m,A){A.animate===!1||A.duration===0?(l(1),m()):(this.easeStart=pS(),this.easeOptions=A,this.onEaseFrame=l,this.onEaseEnd=m,this.easeFrameId=this.requestRenderFrame(this.renderFrameCallback))}},{key:"cameraForBoxAndBearing",value:function(l,m,A,j){var Y={top:0,bottom:0,right:0,left:0};if(j=Z2({padding:Y,offset:[0,0],maxZoom:this.transform.maxZoom},j),typeof j.padding=="number"){var le=j.padding;j.padding={top:le,bottom:le,right:le,left:le}}j.padding=Z2(Y,j.padding);var $e=this.transform,Ye=$e.padding,Nt=$e.project(_v.convert(l)),qt=$e.project(_v.convert(m)),jn=Nt.rotate(-A*Math.PI/180),Qn=qt.rotate(-A*Math.PI/180),Ir=new t0(Math.max(jn.x,Qn.x),Math.max(jn.y,Qn.y)),ki=new t0(Math.min(jn.x,Qn.x),Math.min(jn.y,Qn.y)),jo=Ir.sub(ki),Wo=($e.width-(Ye.left+Ye.right+j.padding.left+j.padding.right))/jo.x,na=($e.height-(Ye.top+Ye.bottom+j.padding.top+j.padding.bottom))/jo.y;if(!(na<0||Wo<0)){var va=Math.min($e.scaleZoom($e.scale*Math.min(Wo,na)),j.maxZoom),Fa=t0.convert(j.offset),vl=(j.padding.left-j.padding.right)/2,eu=(j.padding.top-j.padding.bottom)/2,uu=new t0(Fa.x+vl,Fa.y+eu),Hu=uu.mult($e.scale/$e.zoomScale(va)),Vu=$e.unproject(Nt.add(qt).div(2).sub(Hu));return{center:Vu,zoom:va,bearing:A}}}},{key:"fitInternal",value:function(l,m,A){return l?(m=Z2(l,m),delete m.padding,m.linear?this.easeTo(m,A):this.flyTo(m,A)):this}}]),c}(Wu.EventEmitter);function M7(a,g){var c=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=O7(a))||g&&a&&typeof a.length=="number"){c&&(a=c);var u=0,l=function(){};return{s:l,n:function(){return u>=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function O7(a,g){if(a){if(typeof a=="string")return oO(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return oO(a,g)}}function oO(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);c3&&arguments[3]!==void 0?arguments[3]:{};"passive"in u&&D5?a.addEventListener(g,c,u):a.addEventListener(g,c,u.capture)},Lb.removeEventListener=function(a,g,c){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};"passive"in u&&D5?a.removeEventListener(g,c,u):a.removeEventListener(g,c,u.capture)};var vT=function a(g){g.preventDefault(),g.stopPropagation(),window.removeEventListener("click",a,!0)};Lb.suppressClick=function(){window.addEventListener("click",vT,!0),setTimeout(function(){window.removeEventListener("click",vT,!0)},0)},Lb.mousePos=function(a,g){var c=a.getBoundingClientRect();return new t0(g.clientX-c.left-a.clientLeft,g.clientY-c.top-a.clientTop)},Lb.touchPos=function(a,g){var c=a.getBoundingClientRect(),u=[],l=M7(g),m;try{for(l.s();!(m=l.n()).done;){var A=m.value;u.push(new t0(A.clientX-c.left-a.clientLeft,A.clientY-c.top-a.clientTop))}}catch(j){l.e(j)}finally{l.f()}return u},Lb.mouseButton=function(a){return a.button},Lb.remove=function(a){a.parentNode&&a.parentNode.removeChild(a)};function N7(a){var g=H2();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function H2(){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 sO=Js.merge,kb=function(a){(0,At.Z)(c,a);var g=N7(c);function c(u,l,m){var A,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};(0,Bt.Z)(this,c);var Y=ky.mousePos(l.getCanvasContainer(),m),le=l.unproject(Y);return A=g.call(this,u,sO({point:Y,lngLat:le,originalEvent:m},j)),A.defaultPrevented=!1,A.target=l,A}return(0,lt.Z)(c,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),c}(M0);function aO(a){var g=bW();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function bW(){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 I5=function(a){(0,At.Z)(c,a);var g=aO(c);function c(u,l,m){var A;(0,Bt.Z)(this,c);var j=u==="touchend"?m.changedTouches:m.touches,Y=ky.touchPos(l.getCanvasContainer(),j),le=Y.map(function(Nt){return l.unproject(Nt)}),$e=Y.reduce(function(Nt,qt,jn,Qn){return Nt.add(qt.div(Qn.length))},new t0(0,0)),Ye=l.unproject($e);return A=g.call(this,u,{points:Y,point:$e,lngLats:le,lngLat:Ye,originalEvent:m}),A.defaultPrevented=!1,A}return(0,lt.Z)(c,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),c}(M0);function xW(a){var g=wW();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function wW(){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 lO=function(a){(0,At.Z)(c,a);var g=xW(c);function c(u,l,m){var A;return(0,Bt.Z)(this,c),A=g.call(this,u,{originalEvent:m}),A.defaultPrevented=!1,A}return(0,lt.Z)(c,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),c}(M0),CW=function(){function a(g){(0,Bt.Z)(this,a),this.map=g}return(0,lt.Z)(a,[{key:"reset",value:function(){this.delayContextMenu=!1,delete this.contextMenuEvent}},{key:"mousemove",value:function(c){this.map.emit(c.type,new kb(c.type,this.map,c))}},{key:"mousedown",value:function(){this.delayContextMenu=!0}},{key:"mouseup",value:function(){this.delayContextMenu=!1,this.contextMenuEvent&&(this.map.emit("contextmenu",new kb("contextmenu",this.map,this.contextMenuEvent)),delete this.contextMenuEvent)}},{key:"contextmenu",value:function(c){this.delayContextMenu?this.contextMenuEvent=c:this.map.emit(c.type,new kb(c.type,this.map,c)),this.map.listeners("contextmenu")&&c.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}(),SW=function(){function a(g,c){(0,Bt.Z)(this,a),this.map=g,this.el=g.getCanvasContainer(),this.container=g.getContainer(),this.clickTolerance=c.clickTolerance||1}return(0,lt.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(c,u){this.isEnabled()&&c.shiftKey&&c.button===0&&(ky.disableDrag(),this.startPos=this.lastPos=u,this.active=!0)}},{key:"mousemoveWindow",value:function(c,u){if(this.active){var l=u;if(!(this.lastPos.equals(l)||!this.box&&l.dist(this.startPos)=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function x_(a,g){if(a){if(typeof a=="string")return DW(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return DW(a,g)}}function DW(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);c0&&u-c[0].time>l;)c.shift()}},{key:"onMoveEnd",value:function(c){if(this.drainInertiaBuffer(),!(this.inertiaBuffer.length<2)){var u={zoom:0,bearing:0,pitch:0,pan:new t0(0,0),pinchAround:void 0,around:void 0},l=AW(this.inertiaBuffer),m;try{for(l.s();!(m=l.n()).done;){var A=m.value.settings;u.zoom+=A.zoomDelta||0,u.bearing+=A.bearingDelta||0,u.pitch+=A.pitchDelta||0,A.panDelta&&u.pan._add(A.panDelta),A.around&&(u.around=A.around),A.pinchAround&&(u.pinchAround=A.pinchAround)}}catch(Qn){l.e(Qn)}finally{l.f()}var j=this.inertiaBuffer[this.inertiaBuffer.length-1],Y=j.time-this.inertiaBuffer[0].time,le={};if(u.pan.mag()){var $e=yT(u.pan.mag(),Y,ZA({},L5,c||{}));le.offset=u.pan.mult($e.amount/u.pan.mag()),le.center=this.map.transform.center,HA(le,$e)}if(u.zoom){var Ye=yT(u.zoom,Y,cO);le.zoom=this.map.transform.zoom+Ye.amount,HA(le,Ye)}if(u.bearing){var Nt=yT(u.bearing,Y,IW);le.bearing=this.map.transform.bearing+fS(Nt.amount,-179,179),HA(le,Nt)}if(u.pitch){var qt=yT(u.pitch,Y,LW);le.pitch=this.map.transform.pitch+qt.amount,HA(le,qt)}if(le.zoom||le.bearing){var jn=u.pinchAround===void 0?u.around:u.pinchAround;le.around=jn?this.map.unproject(jn):this.map.getCenter()}return this.clear(),ZA(le,{noMoveStart:!0})}}}]),a}();function HA(a,g){(!a.duration||a.duration=this.clickTolerance||this.map.emit(c.type,new kb(c.type,this.map,c))}},{key:"dblclick",value:function(c){return this.firePreventable(new kb(c.type,this.map,c))}},{key:"mouseover",value:function(c){this.map.emit(c.type,new kb(c.type,this.map,c))}},{key:"mouseout",value:function(c){this.map.emit(c.type,new kb(c.type,this.map,c))}},{key:"touchstart",value:function(c){return this.firePreventable(new I5(c.type,this.map,c))}},{key:"touchmove",value:function(c){this.map.emit(c.type,new I5(c.type,this.map,c))}},{key:"touchend",value:function(c){this.map.emit(c.type,new I5(c.type,this.map,c))}},{key:"touchcancel",value:function(c){this.map.emit(c.type,new I5(c.type,this.map,c))}},{key:"firePreventable",value:function(c){if(this.map.emit(c.type,c),c.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}(),k5,M5=0,xI=2,kW=(k5={},(0,Xn.Z)(k5,M5,1),(0,Xn.Z)(k5,xI,2),k5);function MW(a,g){var c=kW[g];return a.buttons===void 0||(a.buttons&c)!==c}var dO=function(){function a(g){(0,Bt.Z)(this,a),this.reset(),this.clickTolerance=g.clickTolerance||1}return(0,lt.Z)(a,[{key:"reset",value:function(){this.active=!1,this.moved=!1,delete this.lastPoint,delete this.eventButton}},{key:"mousedown",value:function(c,u){if(!this.lastPoint){var l=ky.mouseButton(c);this.correctButton(c,l)&&(this.lastPoint=u,this.eventButton=l)}}},{key:"mousemoveWindow",value:function(c,u){var l=this.lastPoint;if(l){if(c.preventDefault(),MW(c,this.eventButton)){this.reset();return}if(!(!this.moved&&u.dist(l)O5?u.wheelZoomRate:u.defaultZoomRate,A=U7/(1+Math.exp(-Math.abs(u.delta*m)));u.delta<0&&A!==0&&(A=1/A);var j=typeof u.targetZoom=="number"?l.zoomScale(u.targetZoom):l.scale;u.targetZoom=Math.min(l.maxZoom,Math.max(l.minZoom,l.scaleZoom(j*A))),u.type==="wheel"&&(u.startZoom=l.zoom,u.easing=u.smoothOutEasing(200)),u.delta=0}var Y=typeof u.targetZoom=="number"?u.targetZoom:l.zoom,le=u.startZoom,$e=u.easing,Ye=!1,Nt;if(u.type==="wheel"&&le&&$e){var qt=Math.min((pS()-u.lastWheelEventTime)/200,1),jn=$e(qt);Nt=lx(le,Y,jn),qt<1?u.frameId||(u.frameId=!0):Ye=!0}else Nt=Y,Ye=!0;return u.active=!0,Ye&&(u.active=!1,u.finishTimeout=setTimeout(function(){u.zooming=!1,u.handler.triggerRenderFrame(),delete u.targetZoom,delete u.finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ye,zoomDelta:Nt-l.zoom,around:u.aroundPoint,originalEvent:u.lastWheelEvent}}}),this.map=g,this.el=g.getCanvasContainer(),this.handler=c,this.delta=0,this.defaultZoomRate=FW,this.wheelZoomRate=j7}return(0,lt.Z)(a,[{key:"setZoomRate",value:function(c){this.defaultZoomRate=c}},{key:"setWheelZoomRate",value:function(c){this.wheelZoomRate=c}},{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(c){this.isEnabled()||(this.enabled=!0,this.aroundCenter=c&&c.around==="center")}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"wheel",value:function(c){if(this.isEnabled()){var u=c.deltaMode===window.WheelEvent.DOM_DELTA_LINE?c.deltaY*40:c.deltaY,l=pS(),m=l-(this.lastWheelEventTime||0);this.lastWheelEventTime=l,u!==0&&u%O5===0?this.type="wheel":u!==0&&Math.abs(u)<4?this.type="trackpad":m>400?(this.type=null,this.lastValue=u,this.timeout=setTimeout(this.onTimeout,40,c)):this.type||(this.type=Math.abs(m*u)<200?"trackpad":"wheel",this.timeout&&(clearTimeout(this.timeout),this.timeout=null,u+=this.lastValue)),c.shiftKey&&u&&(u=u/4),this.type&&(this.lastWheelEvent=c,this.delta-=u,this.active||this.start(c)),c.preventDefault()}}},{key:"renderFrame",value:function(){return this.onScrollFrame()}},{key:"reset",value:function(){this.active=!1}},{key:"onTimeout",value:function(c){this.type="wheel",this.delta-=this.lastValue,!this.active&&this.start&&this.start(c)}},{key:"start",value:function(c){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 u=ky.mousePos(this.el,c);this.around=_v.convert(this.aroundCenter?this.map.getCenter():this.map.unproject(u)),this.aroundPoint=this.map.transform.locationPoint(this.around),this.frameId||(this.frameId=!0,this.handler.triggerRenderFrame())}}},{key:"smoothOutEasing",value:function(c){var u=b_;if(this.prevEase){var l=this.prevEase,m=(pS()-l.start)/l.duration,A=l.easing(m+.01)-l.easing(m),j=.27/Math.sqrt(A*A+1e-4)*.01,Y=Math.sqrt(.27*.27-j*j);u=gI(j,Y,.25,1)}return this.prevEase={start:pS(),duration:c,easing:u},u}}]),a}(),mO=BW,zW=function(){function a(g,c){(0,Bt.Z)(this,a),this.clickZoom=g,this.tapZoom=c}return(0,lt.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}(),W7=function(){function a(g,c,u){(0,Bt.Z)(this,a),this.el=g,this.mousePan=c,this.touchPan=u}return(0,lt.Z)(a,[{key:"enable",value:function(c){this.inertiaOptions=c||{},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}(),vO=function(){function a(g,c,u){(0,Bt.Z)(this,a),this.pitchWithRotate=g.pitchWithRotate,this.mouseRotate=c,this.mousePitch=u}return(0,lt.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}(),Z7=function(){function a(g,c,u,l){(0,Bt.Z)(this,a),this.el=g,this.touchZoom=c,this.touchRotate=u,this.tapDragZoom=l,this.rotationDisabled=!1,this.enabled=!0}return(0,lt.Z)(a,[{key:"enable",value:function(c){this.touchZoom.enable(c),this.rotationDisabled||this.touchRotate.enable(c),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 wI(a,g){for(var c={},u=0;u=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function VW(a,g){if(a){if(typeof a=="string")return H7(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return H7(a,g)}}function H7(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);cthis.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=c.timeStamp),l.length===this.numTouches&&(this.centroid=jW(u),this.touches=wI(l,u)))}},{key:"touchmove",value:function(c,u,l){if(!(this.aborted||!this.centroid)){var m=wI(l,u);for(var A in this.touches)if(this.touches[A]){var j=this.touches[A],Y=m[A];(!Y||Y.dist(j)>UW)&&(this.aborted=!0)}}}},{key:"touchend",value:function(c,u,l){if((!this.centroid||c.timeStamp-this.startTime>xY)&&(this.aborted=!0),l.length===0){var m=!this.aborted&&this.centroid;if(this.reset(),m)return m}}}]),a}(),K7=function(){function a(g){(0,Bt.Z)(this,a),this.singleTap=new R5(g),this.numTaps=g.numTaps,this.reset()}return(0,lt.Z)(a,[{key:"reset",value:function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}},{key:"touchstart",value:function(c,u,l){this.singleTap.touchstart(c,u,l)}},{key:"touchmove",value:function(c,u,l){this.singleTap.touchmove(c,u,l)}},{key:"touchend",value:function(c,u,l){var m=this.singleTap.touchend(c,u,l);if(m){var A=c.timeStamp-this.lastTimeG7&&this.reset(),this.tapTime?l.length>0&&(this.swipePoint=u[0],this.swipeTouch=l[0].identifier):this.tap.touchstart(c,u,l))}},{key:"touchmove",value:function(c,u,l){if(!this.tapTime)this.tap.touchmove(c,u,l);else if(this.swipePoint){if(l[0].identifier!==this.swipeTouch)return;var m=u[0],A=m.y-this.swipePoint.y;return this.swipePoint=m,c.preventDefault(),this.active=!0,{zoomDelta:A/128}}}},{key:"touchend",value:function(c,u,l){if(this.tapTime)this.swipePoint&&l.length===0&&this.reset();else{var m=this.tap.touchend(c,u,l);m&&(this.tapTime=c.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}(),CY=function(){function a(){(0,Bt.Z)(this,a),this.zoomIn=new K7({numTouches:1,numTaps:2}),this.zoomOut=new K7({numTouches:2,numTaps:1}),this.reset()}return(0,lt.Z)(a,[{key:"reset",value:function(){this.active=!1,this.zoomIn.reset(),this.zoomOut.reset()}},{key:"touchstart",value:function(c,u,l){this.zoomIn.touchstart(c,u,l),this.zoomOut.touchstart(c,u,l)}},{key:"touchmove",value:function(c,u,l){this.zoomIn.touchmove(c,u,l),this.zoomOut.touchmove(c,u,l)}},{key:"touchend",value:function(c,u,l){var m=this,A=this.zoomIn.touchend(c,u,l),j=this.zoomOut.touchend(c,u,l);if(A)return this.active=!0,c.preventDefault(),setTimeout(function(){return m.reset()},0),{cameraAnimation:function(le){return le.easeTo({duration:300,zoom:le.getZoom()+1,around:le.unproject(A)},{originalEvent:c})}};if(j)return this.active=!0,c.preventDefault(),setTimeout(function(){return m.reset()},0),{cameraAnimation:function(le){return le.easeTo({duration:300,zoom:le.getZoom()-1,around:le.unproject(j)},{originalEvent:c})}}}},{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}(),SY=function(){function a(g){(0,Bt.Z)(this,a),this.minTouches=1,this.clickTolerance=g.clickTolerance||1,this.reset()}return(0,lt.Z)(a,[{key:"reset",value:function(){this.active=!1,this.touches={},this.sum=new t0(0,0)}},{key:"touchstart",value:function(c,u,l){return this.calculateTransform(c,u,l)}},{key:"touchmove",value:function(c,u,l){if(this.active)return c.preventDefault(),this.calculateTransform(c,u,l)}},{key:"touchend",value:function(c,u,l){this.calculateTransform(c,u,l),this.active&&l.length0&&(this.active=!0);var m=wI(l,u),A=new t0(0,0),j=new t0(0,0),Y=0;for(var le in m)if(m[le]){var $e=m[le],Ye=this.touches[le];Ye&&(A._add($e),j._add($e.sub(Ye)),Y++,m[le]=$e)}if(this.touches=m,!(YMath.abs(a.x)}var WW=100,_T=function(a){(0,At.Z)(c,a);var g=EY(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"reset",value:function(){zh((0,Tt.Z)(c.prototype),"reset",this).call(this),this.valid=void 0,delete this.firstMove,delete this.lastPoints}},{key:"start",value:function(l){this.lastPoints=l,SI(l[0].sub(l[1]))&&(this.valid=!1)}},{key:"move",value:function(l,m,A){var j=l[0].sub(this.lastPoints[0]),Y=l[1].sub(this.lastPoints[1]);if(this.valid=this.gestureBeginsVertically(j,Y,A.timeStamp),!!this.valid){this.lastPoints=l,this.active=!0;var le=(j.y+Y.y)/2,$e=-.5;return{pitchDelta:le*$e}}}},{key:"gestureBeginsVertically",value:function(l,m,A){if(this.valid!==void 0)return this.valid;var j=2,Y=l.mag()>=j,le=m.mag()>=j;if(!(!Y&&!le)){if(!Y||!le)return this.firstMove===void 0&&(this.firstMove=A),A-this.firstMove0==m.y>0;return SI(l)&&SI(m)&&$e}}}]),c}(X7);function N5(a){var g=ZW();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function ZW(){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 HW=25;function Yx(a,g){return a.angleWith(g)*180/Math.PI}var gm=function(a){(0,At.Z)(c,a);var g=N5(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"reset",value:function(){zh((0,Tt.Z)(c.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,m){var A=this.vector;if(this.vector=l[0].sub(l[1]),!(!this.active&&this.isBelowThreshold(this.vector)))return this.active=!0,{bearingDelta:Yx(this.vector,A),pinchAround:m}}},{key:"isBelowThreshold",value:function(l){this.minDiameter=Math.min(this.minDiameter,l.mag());var m=Math.PI*this.minDiameter,A=HW/m*360,j=Yx(l,this.startVector);return Math.abs(j)=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function _O(a,g){if(a){if(typeof a=="string")return F5(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return F5(a,g)}}function F5(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);cV5}).reduce(function(Y,le){return Y+(le-V5)/V5},0),j=A/(u+A)*100;return{loadTime:g,fullLoadTime:c,fps:m,percentDroppedFrames:j}}};function J_(a,g){var c=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=bO(a))||g&&a&&typeof a.length=="number"){c&&(a=c);var u=0,l=function(){};return{s:l,n:function(){return u>=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(le){throw le},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 m=!0,A=!1,j;return{s:function(){c=c.call(a)},n:function(){var le=c.next();return m=le.done,le},e:function(le){A=!0,j=le},f:function(){try{!m&&c.return!=null&&c.return()}finally{if(A)throw j}}}}function bO(a,g){if(a){if(typeof a=="string")return j5(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return j5(a,g)}}function j5(a,g){(g==null||g>a.length)&&(g=a.length);for(var c=0,u=new Array(g);c0&&arguments[0]!==void 0?arguments[0]:0,u=this.currentlyRunning=this.queue;this.queue=[];var l=J_(u),m;try{for(l.s();!(m=l.n()).done;){var A=m.value;if(!A.cancelled&&(A.callback(c),this.cleared))break}}catch(j){l.e(j)}finally{l.f()}this.cleared=!1,this.currentlyRunning=!1}},{key:"clear",value:function(){this.currentlyRunning&&(this.cleared=!0),this.queue=[]}}]),a}(),II=DI;function qx(a){var g=G2();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function G2(){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 K2(a,g){var c=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,u=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(c||u)&&(g||(g=document),!!g)){var l=g.head||g.getElementsByTagName("head")[0];if(!l){l=g.createElement("head");var m=g.body||g.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(l,m):g.documentElement.appendChild(l)}var A=g.createElement("style");return A.type="text/css",A.styleSheet?A.styleSheet.cssText=a:A.appendChild(g.createTextNode(a)),l.appendChild(A),A}}K2(`.l7-map { font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif; overflow: hidden; position: relative; @@ -7598,7 +7620,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 0.5; z-index: 10; } -`);var ik=-2,oR=22,M7=Fa.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,ft.Z)(u,a);var p=yU(u);function u(c){var l;return(0,Ct.Z)(this,u),l=p.call(this,M7({},sR,c)),(0,Cn.Z)((0,cs.Z)(l),"renderTaskQueue",new rk),(0,Cn.Z)((0,cs.Z)(l),"trackResize",!0),(0,Cn.Z)((0,cs.Z)(l),"onWindowOnline",function(){l.update()}),(0,Cn.Z)((0,cs.Z)(l),"onWindowResize",function(g){l.trackResize&&l.resize({originalEvent:g}).update()}),l.initContainer(),l.resize(),l.handlers=new Xx((0,cs.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=eo("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=hi||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=Fa.throttle,lR=function(){function a(p){var u=this;(0,Ct.Z)(this,a),(0,Cn.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,Cn.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,Cn.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 Et=this.hashName,Mt=!1,An=window.location.hash.slice(1).split("&").map(function(Mn){var br=Mn.split("=")[0];return br===Et?(Mt=!0,"".concat(br,"=").concat(Ze)):Mn}).filter(function(Mn){return Mn});return Mt||An.push("".concat(Et,"=").concat(Ze)),"#".concat(An.join("&"))}return"#".concat(Ze)}}]),a}(),nL=lR;function ok(a){var p=Yx();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,zt.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 { +`);var bT=-2,Jx=22,KW=Js.merge,Xw=0,XA=60,Q7={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:bT,maxZoom:Jx,minPitch:Xw,maxPitch:XA,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},e9=function(a){(0,At.Z)(c,a);var g=qx(c);function c(u){var l;return(0,Bt.Z)(this,c),l=g.call(this,KW({},Q7,u)),(0,Xn.Z)((0,ps.Z)(l),"renderTaskQueue",new II),(0,Xn.Z)((0,ps.Z)(l),"trackResize",!0),(0,Xn.Z)((0,ps.Z)(l),"onWindowOnline",function(){l.update()}),(0,Xn.Z)((0,ps.Z)(l),"onWindowResize",function(m){l.trackResize&&l.resize({originalEvent:m}).update()}),l.initContainer(),l.resize(),l.handlers=new z5((0,ps.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,lt.Z)(c,[{key:"resize",value:function(l){var m=this.containerDimensions(),A=m[0],j=m[1];this.transform.resize(A,j);var Y=!this.moving;return Y&&(this.stop(),this.emit("movestart",new Event("movestart",l)),this.emit("move",new Event("move",l))),this.emit("resize",new Event("resize",l)),Y&&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(_v.convert(l))}},{key:"unproject",value:function(l){return this.transform.pointLocation(t0.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(UA.convert(l))}},{key:"setStyle",value:function(l){}},{key:"setMinZoom",value:function(l){if(l=l==null?bT:l,l>=bT&&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?Xw:l,l=Xw&&l<=this.transform.maxPitch)return this.transform.minPitch=l,this.getPitch()XA)throw new Error("maxPitch must be less than or equal to ".concat(XA));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=jA(function(m){KA.frame(m),l.frame=null,l.update(m)}))}},{key:"update",value:function(l){var m=this;this.frame||(this.frame=jA(function(A){KA.frame(A),m.frame=null,m.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 m=this.canvasContainer=Ps("div","l7-canvas-container",l);this.options.interactive&&m.classList.add("l7-interactive")}},{key:"containerDimensions",value:function(){var l=0,m=0;return this.container&&(l=this.container.clientWidth||400,m=this.container.clientHeight||300),[l,m]}},{key:"resizeCanvas",value:function(l,m){var A=ai||1;this.canvas.width=A*l,this.canvas.height=A*m,this.canvas.style.width="".concat(l,"px"),this.canvas.style.height="".concat(m,"px")}}]),c}(WA),xO=Js.throttle,t9=function(){function a(g){var c=this;(0,Bt.Z)(this,a),(0,Xn.Z)(this,"onHashChange",function(){var u=c.getCurrentHash();if(u.length>=3&&!u.some(function(m){return isNaN(+m)})){var l=c.map.dragRotate.isEnabled()&&c.map.touchZoomRotate.isEnabled()?+(u[3]||0):c.map.getBearing();return c.map.jumpTo({center:[+u[2],+u[1]],zoom:+u[0],bearing:l,pitch:+(u[4]||0)}),!0}return!1}),(0,Xn.Z)(this,"getCurrentHash",function(){var u=window.location.hash.replace("#","");if(c.hashName){var l;return u.split("&").map(function(m){return m.split("=")}).forEach(function(m){m[0]===c.hashName&&(l=m)}),(l&&l[1]||"").split("/")}return u.split("/")}),(0,Xn.Z)(this,"updateHashUnthrottled",function(){var u=c.getHashString();try{window.history.replaceState(window.history.state,"",u)}catch(l){}}),this.hashName=g&&encodeURIComponent(g),this.updateHash=xO(this.updateHashUnthrottled,30*1e3/100)}return(0,lt.Z)(a,[{key:"addTo",value:function(c){return this.map=c,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(c){var u=this.map.getCenter(),l=Math.round(this.map.getZoom()*100)/100,m=Math.ceil((l*Math.LN2+Math.log(512/360/.5))/Math.LN10),A=Math.pow(10,m),j=Math.round(u.lng*A)/A,Y=Math.round(u.lat*A)/A,le=this.map.getBearing(),$e=this.map.getPitch(),Ye="";if(c?Ye+="/".concat(j,"/").concat(Y,"/").concat(l):Ye+="".concat(l,"/").concat(Y,"/").concat(j),(le||$e)&&(Ye+="/".concat(Math.round(le*10)/10)),$e&&(Ye+="/".concat(Math.round($e))),this.hashName){var Nt=this.hashName,qt=!1,jn=window.location.hash.slice(1).split("&").map(function(Qn){var Ir=Qn.split("=")[0];return Ir===Nt?(qt=!0,"".concat(Ir,"=").concat(Ye)):Qn}).filter(function(Qn){return Qn});return qt||jn.push("".concat(Nt,"=").concat(Ye)),"#".concat(jn.join("&"))}return"#".concat(Ye)}}]),a}(),XW=t9;function YW(a){var g=qW();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function qW(){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 n9(a,g){var c=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,u=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(c||u)&&(g||(g=document),!!g)){var l=g.head||g.getElementsByTagName("head")[0];if(!l){l=g.createElement("head");var m=g.body||g.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(l,m):g.documentElement.appendChild(l)}var A=g.createElement("style");return A.type="text/css",A.styleSheet?A.styleSheet.cssText=a:A.appendChild(g.createTextNode(a)),l.appendChild(A),A}}n9(`.l7-map { font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif; overflow: hidden; position: relative; @@ -7698,118 +7720,126 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 0.5; z-index: 10; } -`);var wb=-2,rL=22,qx=Fa.merge,PA=0,iT=60,uR={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:wb,maxZoom:rL,minPitch:PA,maxPitch:iT,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},cR=function(a){(0,ft.Z)(u,a);var p=ok(u);function u(c){var l;(0,Ct.Z)(this,u),l=p.call(this,qx({},uR,c)),(0,Cn.Z)((0,cs.Z)(l),"renderTaskQueue",new rk),(0,Cn.Z)((0,cs.Z)(l),"trackResize",!0),(0,Cn.Z)((0,cs.Z)(l),"onWindowOnline",function(){l.update()}),(0,Cn.Z)((0,cs.Z)(l),"onWindowResize",function(T){l.trackResize&&l.resize({originalEvent:T}).update()}),l.initContainer(),l.resize(),l.handlers=new Xx((0,cs.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 nL(g).addTo((0,cs.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,qx({},c.fitBoundsOptions,{duration:0})))),l}return(0,He.Z)(u,[{key:"resize",value:function(l){var g=this.containerDimensions(),T=(0,Xn.Z)(g,2),B=T[0],Z=T[1];this.transform.resize(B,Z);var ee=!this.moving;return ee&&(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)),ee&&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(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?wb:l,l>=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=eo("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,Ct.Z)(this,a),(0,Cn.Z)(this,"xzReg",-Math.PI*.6),(0,Cn.Z)(this,"yReg",Math.PI*.2),(0,Cn.Z)(this,"earthCameraRadius",200),(0,Cn.Z)(this,"earthCameraZoom",1),(0,Cn.Z)(this,"cameraPosition",z_()),(0,Cn.Z)(this,"projectionMatrix",on()),(0,Cn.Z)(this,"modelMatrix",on()),(0,Cn.Z)(this,"viewMatrix",on()),(0,Cn.Z)(this,"viewProjectionMatrix",on()),(0,Cn.Z)(this,"ViewProjectionMatrixUncentered",on()),(0,Cn.Z)(this,"viewUncenteredMatrix",on())}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;bi(this.projectionMatrix,Pe,B,Z,ee);var Ze=this.earthCameraRadius*Math.cos(this.xzReg),Et=this.earthCameraRadius*Math.sin(this.xzReg),Mt=this.earthCameraRadius*Math.sin(this.yReg);this.cameraPosition=$g(Ze,Mt,Et),$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 An=z_();cD(An,this.cameraPosition,$g(0,1,0));var Mn=$g(0,1,0);cD(Mn,An,this.cameraPosition);var br=$g(0,0,0);Pa(this.viewMatrix,this.cameraPosition,br,Mn),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,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,zt.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,As.b2)(),hR(R7=function(a){(0,ft.Z)(u,a);var p=bU(u);function u(){var c;(0,Ct.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,Ra.Z)(no().mark(function g(){var T,B,Z,ee,Pe,Ze,Et,Mt;return no().wrap(function(Mn){for(;;)switch(Mn.prev=Mn.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,Et=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,Se.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Pe),bearing:Et},Mt)),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged({});case 7:case"end":return Mn.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,Et=Ze===void 0?0:Ze;return{x:Z,y:Pe,z:Et}}},{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=on();return Kl(Ze,Ze,$g(ee.x-Z.x,ee.y-Z.y,ee.z||0-Z.z)),il(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,Ra.Z)(no().mark(function g(){var T=this,B,Z,ee,Pe,Ze,Et,Mt,An,Mn,br,Li,Zo,Go,Qs,aa;return no().wrap(function(yl){for(;;)switch(yl.prev=yl.next){case 0:B=this.config,Z=B.id,ee=Z===void 0?"map":Z,Pe=B.style,Ze=Pe===void 0?"light":Pe,Et=B.rotation,Mt=Et===void 0?0:Et,An=B.mapInstance,Mn=B.version,br=Mn===void 0?"DEFAULTMAP":Mn,Li=B.mapSize,Zo=Li===void 0?1e4:Li,Go=B.interactive,Qs=Go===void 0?!0:Go,aa=(0,Ug.Z)(B,iL),this.viewport=new NI,this.version=br,this.simpleMapCoord.setSize(Zo),br===d0.SIMPLE&&aa.center&&(aa.center=this.simpleMapCoord.unproject(aa.center)),An?(this.map=An,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ee),this.map=new cR((0,Se.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Ze),bearing:Mt},aa))),this.map.on("load",function(){T.handleCameraChanged()}),Qs&&this.map.on("move",this.handleCameraChanged),setTimeout(function(){T.handleCameraChanged()},100),this.handleCameraChanged();case 10:case"end":return yl.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"initMiniMap",value:function(){var c=(0,Ra.Z)(no().mark(function g(){var T=this,B,Z,ee,Pe,Ze,Et,Mt,An,Mn,br,Li,Zo,Go,Qs;return no().wrap(function(Oa){for(;;)switch(Oa.prev=Oa.next){case 0:B=this.config,Z=B.id,ee=Z===void 0?"map":Z,Pe=B.style,Ze=Pe===void 0?"light":Pe,Et=B.rotation,Mt=Et===void 0?0:Et,An=B.mapInstance,Mn=B.canvas,br=Mn===void 0?null:Mn,Li=B.hasBaseMap,Zo=Li===void 0?!1:Li,Go=(0,Ug.Z)(B,oT),this.viewport=new NI,this.$mapContainer=br,this.map=new cR((0,Se.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Ze),bearing:Mt,canvas:br},Go)),Zo?(Qs=this.map.getCenter(),this.handleMiniCameraChanged(Qs.lng,Qs.lat,this.map.getZoom(),this.map.getBearing(),this.map.getPitch()),window.document.addEventListener("mapCameaParams",function(yl){var Wl=yl.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 Oa.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,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,zt.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,ft.Z)(u,a);var p=SU(u);function u(){return(0,Ct.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,Ct.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,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,zt.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,As.b2)(),W7(aT=function(a){(0,ft.Z)(u,a);var p=sk(u);function u(){var c;(0,Ct.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,Et=Ze===void 0?0:Ze;return{x:Z,y:Pe,z:Et}}},{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=on();return Kl(Ze,Ze,$g(ee.x-Z.x,ee.y-Z.y,ee.z||0-Z.z)),il(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,Ra.Z)(no().mark(function g(){var T=this,B,Z,ee,Pe,Ze,Et,Mt,An,Mn,br,Li,Zo,Go;return no().wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:B=this.config,Z=B.id,ee=Z===void 0?"map":Z,Pe=B.attributionControl,Ze=Pe===void 0?!1:Pe,Et=B.style,Mt=Et===void 0?"light":Et,An=B.token,Mn=An===void 0?ak:An,br=B.rotation,Li=br===void 0?0:br,Zo=B.mapInstance,Go=(0,Ug.Z)(B,TU),this.viewport=new EU,!Zo&&!window.mapboxgl&&console.error(this.configService.getSceneWarninfo("SDK")),Mn===ak&&Mt!=="blank"&&!window.mapboxgl.accessToken&&!Zo&&console.warn(this.configService.getSceneWarninfo("MapToken")),!Zo&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=Mn),Zo?(this.map=Zo,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ee),this.map=new window.mapboxgl.Map((0,Se.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Mt),attributionControl:Ze,bearing:Li},Go))),this.map.on("load",function(){T.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return aa.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;Z=LI&&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?xT:l,l=xT&&l<=this.transform.maxPitch)return this.transform.minPitch=l,this.getPitch()PI)throw new Error("maxPitch must be less than or equal to ".concat(PI));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=jA(function(m){KA.frame(m),l.frame=null,l.update(m)}))}},{key:"update",value:function(l){var m=this;this.frame||(this.frame=jA(function(A){KA.frame(A),m.frame=null,m.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 m=this.canvasContainer=Ps("div","l7-canvas-container",l);this.options.interactive&&m.classList.add("l7-interactive")}},{key:"initMiniContainer",value:function(){this.container=this.options.canvas,this.canvasContainer=this.container}},{key:"containerDimensions",value:function(){var l=0,m=0;return this.container&&(l=this.container.clientWidth,m=this.container.clientHeight,l=l===0?400:l,m=m===0?300:m),[l,m]}}]),c}(WA),TY=function(){function a(){(0,Bt.Z)(this,a),(0,Xn.Z)(this,"xzReg",-Math.PI*.6),(0,Xn.Z)(this,"yReg",Math.PI*.2),(0,Xn.Z)(this,"earthCameraRadius",200),(0,Xn.Z)(this,"earthCameraZoom",1),(0,Xn.Z)(this,"cameraPosition",py()),(0,Xn.Z)(this,"projectionMatrix",Ku()),(0,Xn.Z)(this,"modelMatrix",Ku()),(0,Xn.Z)(this,"viewMatrix",Ku()),(0,Xn.Z)(this,"viewProjectionMatrix",Ku()),(0,Xn.Z)(this,"ViewProjectionMatrixUncentered",Ku()),(0,Xn.Z)(this,"viewUncenteredMatrix",Ku())}return(0,lt.Z)(a,[{key:"syncWithMapCamera",value:function(c){var u=c.viewportHeight,l=u===void 0?1:u,m=c.viewportWidth,A=m===void 0?1:m,j=A/l,Y=.1,le=1e4,$e=20;yi(this.projectionMatrix,$e,j,Y,le);var Ye=this.earthCameraRadius*Math.cos(this.xzReg),Nt=this.earthCameraRadius*Math.sin(this.xzReg),qt=this.earthCameraRadius*Math.sin(this.yReg);this.cameraPosition=Nm(Ye,qt,Nt),Fm(this.cameraPosition,this.cameraPosition),RL(this.cameraPosition,this.cameraPosition,Nm(this.earthCameraRadius,this.earthCameraRadius,this.earthCameraRadius)),Qk(this.cameraPosition,this.cameraPosition,this.earthCameraZoom);var jn=py();nM(jn,this.cameraPosition,Nm(0,1,0));var Qn=Nm(0,1,0);nM(Qn,jn,this.cameraPosition);var Ir=Nm(0,0,0);Vs(this.viewMatrix,this.cameraPosition,Ir,Qn),this.viewUncenteredMatrix=lm(this.viewMatrix),sf(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),sf(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"rotateY",value:function(c){this.xzReg+=c*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"rotateX",value:function(c){this.yReg+=c*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"scaleZoom",value:function(c){this.earthCameraZoom+=c,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(c,u){return this.viewport.projectFlat(c,u)}}]),a}(),JW=["id","style","rotation"],Yw,r9;function MI(a){var g=w_();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.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 i9={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},CO=12,wT=(Yw=(0,fa.b2)(),Yw(r9=function(a){(0,At.Z)(c,a);var g=MI(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;AMath.abs(j.originalEvent.movementY)?j.originalEvent.movementX>0?u.viewport.rotateY(le):j.originalEvent.movementX<0&&u.viewport.rotateY(-le):j.originalEvent.movementY>0?u.viewport.rotateX(le):j.originalEvent.movementY<0&&u.viewport.rotateX(-le));var $e=u.config.offsetCoordinate,Ye=$e===void 0?!0:$e;u.viewport.syncWithMapCamera({viewportHeight:u.map.transform.height,viewportWidth:u.map.transform.width}),u.viewport.getZoom()>CO&&Ye?u.coordinateSystemService.setCoordinateSystem(Qd.LNGLAT_OFFSET):u.coordinateSystemService.setCoordinateSystem(Qd.LNGLAT),u.cameraChangedCallback(u.viewport)}),u}return(0,lt.Z)(c,[{key:"lngLatToMercator",value:function(l,m){throw new Error("Method not implemented.")}},{key:"getModelMatrix",value:function(l,m,A,j,Y){throw new Error("Method not implemented.")}},{key:"on",value:function(l,m){bb.indexOf(l)!==-1?this.eventEmitter.on(l,m):this.map.on(i9[l]||l,m)}},{key:"off",value:function(l,m){this.map.off(i9[l]||l,m),this.eventEmitter.off(l,m)}},{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 u=(0,pl.Z)(Zi().mark(function m(){var A,j,Y,le,$e,Ye,Nt,qt;return Zi().wrap(function(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:A=this.config,j=A.id,Y=j===void 0?"map":j,le=A.style,$e=le===void 0?"light":le,Ye=A.rotation,Nt=Ye===void 0?0:Ye,qt=(0,gv.Z)(A,JW),this.viewport=new TY,this.$mapContainer=this.creatMapContainer(Y),this.map=new e9((0,Ne.Z)({container:this.$mapContainer,style:this.getMapStyleValue($e),bearing:Nt},qt)),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged({});case 7:case"end":return Qn.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"destroy",value:function(){var l,m;(l=this.$mapContainer)===null||l===void 0||(m=l.parentNode)===null||m===void 0||m.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(l){for(var m,A=arguments.length,j=new Array(A>1?A-1:0),Y=1;Y1?A-1:0),Y=1;YnZ&&qt?u.coordinateSystemService.setCoordinateSystem(Qd.LNGLAT_OFFSET):u.coordinateSystemService.setCoordinateSystem(Qd.LNGLAT),u.cameraChangedCallback(u.viewport)}),u}return(0,lt.Z)(c,[{key:"lngLatToCoord",value:function(l){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},A=this.lngLatToMercator(l,0),j=A.x,Y=A.y;return[j-m.x,Y-m.y]}},{key:"lngLatToMercator",value:function(l,m){var A=W2.fromLngLat(l,m),j=A.x,Y=j===void 0?0:j,le=A.y,$e=le===void 0?0:le,Ye=A.z,Nt=Ye===void 0?0:Ye;return{x:Y,y:$e,z:Nt}}},{key:"getModelMatrix",value:function(l,m,A){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},le=W2.fromLngLat(l,m),$e=le.meterInMercatorCoordinateUnits(),Ye=Ku();return Km(Ye,Ye,Nm(le.x-Y.x,le.y-Y.y,le.z||0-Y.z)),Dg(Ye,Ye,Nm($e*j[0],-$e*j[1],$e*j[2])),jm(Ye,Ye,A[0]),Os(Ye,Ye,A[1]),fv(Ye,Ye,A[2]),Ye}},{key:"init",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A=this,j,Y,le,$e,Ye,Nt,qt,jn,Qn,Ir,ki,jo,Wo,na,va;return Zi().wrap(function(vl){for(;;)switch(vl.prev=vl.next){case 0:j=this.config,Y=j.id,le=Y===void 0?"map":Y,$e=j.style,Ye=$e===void 0?"light":$e,Nt=j.rotation,qt=Nt===void 0?0:Nt,jn=j.mapInstance,Qn=j.version,Ir=Qn===void 0?"DEFAULTMAP":Qn,ki=j.mapSize,jo=ki===void 0?1e4:ki,Wo=j.interactive,na=Wo===void 0?!0:Wo,va=(0,gv.Z)(j,eZ),this.viewport=new cS,this.version=Ir,this.simpleMapCoord.setSize(jo),Ir===Zp.SIMPLE&&va.center&&(va.center=this.simpleMapCoord.unproject(va.center)),jn?(this.map=jn,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(le),this.map=new vS((0,Ne.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Ye),bearing:qt},va))),this.map.on("load",function(){A.handleCameraChanged()}),na&&this.map.on("move",this.handleCameraChanged),setTimeout(function(){A.handleCameraChanged()},100),this.handleCameraChanged();case 10:case"end":return vl.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"initMiniMap",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A=this,j,Y,le,$e,Ye,Nt,qt,jn,Qn,Ir,ki,jo,Wo,na;return Zi().wrap(function(Fa){for(;;)switch(Fa.prev=Fa.next){case 0:j=this.config,Y=j.id,le=Y===void 0?"map":Y,$e=j.style,Ye=$e===void 0?"light":$e,Nt=j.rotation,qt=Nt===void 0?0:Nt,jn=j.mapInstance,Qn=j.canvas,Ir=Qn===void 0?null:Qn,ki=j.hasBaseMap,jo=ki===void 0?!1:ki,Wo=(0,gv.Z)(j,tZ),this.viewport=new cS,this.$mapContainer=Ir,this.map=new vS((0,Ne.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Ye),bearing:qt,canvas:Ir},Wo)),jo?(na=this.map.getCenter(),this.handleMiniCameraChanged(na.lng,na.lat,this.map.getZoom(),this.map.getBearing(),this.map.getPitch()),window.document.addEventListener("mapCameaParams",function(vl){var eu=vl.e,uu=eu.longitude,Hu=eu.latitude,Vu=eu.scale,ih=eu.bearing,Ch=eu.pitch;A.handleMiniCameraChanged(uu,Hu,Vu-1.25,ih,Ch)})):(this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged());case 5:case"end":return Fa.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"exportMap",value:function(l){var m=this.map.getCanvas(),A=l==="jpg"?m==null?void 0:m.toDataURL("image/jpeg"):m==null?void 0:m.toDataURL("image/png");return A}}]),c}(pT))||OI);function rZ(a){var g=AO();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function AO(){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 NI=function(a){(0,At.Z)(c,a);var g=rZ(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"getServiceConstructor",value:function(){return TO}}]),c}(Hx),iZ=_(17369),qw=_.n(iZ),o9=function(){function a(){(0,Bt.Z)(this,a)}return(0,lt.Z)(a,[{key:"syncWithMapCamera",value:function(c){var u=c.center,l=c.zoom,m=c.pitch,A=c.bearing,j=c.viewportHeight,Y=c.viewportWidth;this.viewport=new R6({width:Y,height:j,longitude:u&&u[0],latitude:u&&u[1],zoom:l,pitch:m,bearing:A})}},{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(c,u){return this.viewport.projectFlat(c,u)}}]),a}(),oZ=["id","attributionControl","style","token","rotation","mapInstance"],X2,DO;function Z5(a){var g=sZ();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function sZ(){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 aZ(a,g){var c=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,u=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(c||u)&&(g||(g=document),!!g)){var l=g.head||g.getElementsByTagName("head")[0];if(!l){l=g.createElement("head");var m=g.body||g.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(l,m):g.documentElement.appendChild(l)}var A=g.createElement("style");return A.type="text/css",A.styleSheet?A.styleSheet.cssText=a:A.appendChild(g.createTextNode(a)),l.appendChild(A),A}}aZ(`.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=qw();var IO=0,s9="101MlGsZ2AmmA&access_token=pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg",YA=(X2=(0,fa.b2)(),X2(DO=function(a){(0,At.Z)(c,a);var g=Z5(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;A1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},A=this.lngLatToMercator(l,0),j=A.x,Y=A.y;return[j-m.x,Y-m.y]}},{key:"lngLatToMercator",value:function(l,m){var A=window.mapboxgl.MercatorCoordinate.fromLngLat(l,m),j=A.x,Y=j===void 0?0:j,le=A.y,$e=le===void 0?0:le,Ye=A.z,Nt=Ye===void 0?0:Ye;return{x:Y,y:$e,z:Nt}}},{key:"getModelMatrix",value:function(l,m,A){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},le=window.mapboxgl.MercatorCoordinate.fromLngLat(l,m),$e=le.meterInMercatorCoordinateUnits(),Ye=Ku();return Km(Ye,Ye,Nm(le.x-Y.x,le.y-Y.y,le.z||0-Y.z)),Dg(Ye,Ye,Nm($e*j[0],-$e*j[1],$e*j[2])),jm(Ye,Ye,A[0]),Os(Ye,Ye,A[1]),fv(Ye,Ye,A[2]),Ye}},{key:"init",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A=this,j,Y,le,$e,Ye,Nt,qt,jn,Qn,Ir,ki,jo,Wo;return Zi().wrap(function(va){for(;;)switch(va.prev=va.next){case 0:j=this.config,Y=j.id,le=Y===void 0?"map":Y,$e=j.attributionControl,Ye=$e===void 0?!1:$e,Nt=j.style,qt=Nt===void 0?"light":Nt,jn=j.token,Qn=jn===void 0?s9:jn,Ir=j.rotation,ki=Ir===void 0?0:Ir,jo=j.mapInstance,Wo=(0,gv.Z)(j,oZ),this.viewport=new o9,!jo&&!window.mapboxgl&&console.error(this.configService.getSceneWarninfo("SDK")),Qn===s9&&qt!=="blank"&&!window.mapboxgl.accessToken&&!jo&&console.warn(this.configService.getSceneWarninfo("MapToken")),!jo&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=Qn),jo?(this.map=jo,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(le),this.map=new window.mapboxgl.Map((0,Ne.Z)({container:this.$mapContainer,style:this.getMapStyleValue(qt),attributionControl:Ye,bearing:ki},Wo))),this.map.on("load",function(){A.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return va.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"destroy",value:function(){var l,m;(l=this.$mapContainer)===null||l===void 0||(m=l.parentNode)===null||m===void 0||m.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(l){for(var m,A=arguments.length,j=new Array(A>1?A-1:0),Y=1;Y1?A-1:0),Y=1;Y0&&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,As.b2)(),nx(MA=function(){function a(){var p=this;(0,Ct.Z)(this,a),(0,Cn.Z)(this,"createModel",function(u){return new TR(p.gl,u)}),(0,Cn.Z)(this,"createAttribute",function(u){return new Jw(p.gl,u)}),(0,Cn.Z)(this,"createBuffer",function(u){return new xR(p.gl,u)}),(0,Cn.Z)(this,"createElements",function(u){return new CR(p.gl,u)}),(0,Cn.Z)(this,"createTexture2D",function(u){return new H7(p.gl,u)}),(0,Cn.Z)(this,"createFramebuffer",function(u){return new wR(p.gl,u)}),(0,Cn.Z)(this,"useFramebuffer",function(u,c){p.gl({framebuffer:u?u.get():null})(c)}),(0,Cn.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,Cn.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,Cn.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,Cn.Z)(this,"getViewportSize",function(){return{width:p.gl._gl.drawingBufferWidth,height:p.gl._gl.drawingBufferHeight}}),(0,Cn.Z)(this,"getContainer",function(){var u;return(u=p.canvas)===null||u===void 0?void 0:u.parentElement}),(0,Cn.Z)(this,"getCanvas",function(){return p.canvas}),(0,Cn.Z)(this,"getGLContext",function(){return p.gl._gl}),(0,Cn.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,Ra.Z)(no().mark(function c(l,g,T){var B=this;return no().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,An){(Mt||!An)&&Ze(Mt),Pe(An)}})});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,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,zt.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,ft.Z)(u,a);var p=fL(u);function u(c){var l,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,Ct.Z)(this,u),l=p.call(this),(0,Cn.Z)((0,cs.Z)(l),"isEnable",!1),(0,Cn.Z)((0,cs.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,Cn.Z)((0,cs.Z)(l),"onDragging",function(T){l.endEvent=T,l.syncBoxBound(),l.emit("selecting",l.getLngLatBox(),l.startEvent,l.endEvent)}),(0,Cn.Z)((0,cs.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=eo("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),Et=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(Et,"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,Ct.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(vr.IRendererService).to(rx).inSingletonScope(),this.sceneService=T.get(vr.ISceneService),this.mapService=T.get(vr.IMapService),this.iconService=T.get(vr.IIconService),this.fontService=T.get(vr.IFontService),this.controlService=T.get(vr.IControlService),this.layerService=T.get(vr.ILayerService),this.debugService=T.get(vr.IDebugService),this.debugService.setEnable(p.debug),this.markerService=T.get(vr.IMarkerService),this.interactionService=T.get(vr.IInteractionService),this.popupService=T.get(vr.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,Ra.Z)(no().mark(function c(l){return no().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,Ra.Z)(no().mark(function c(l){return no().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,Ra.Z)(no().mark(function c(l,g){return no().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,Ra.Z)(no().mark(function c(){return no().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,Xn.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,Ra.Z)(no().mark(function c(l,g){return no().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,Se.Z)((0,Se.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(vr.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 ro.REGISTERED_PROTOCOLS[u]}},{key:"getPointSizeRange",value:function(){return this.sceneService.getPointSizeRange()}},{key:"initComponent",value:function(u){this.controlService.init({container:ua(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){ro.REGISTERED_PROTOCOLS[u]=c}},{key:"removeProtocol",value:function(u){delete ro.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 pa},$2:function(){return mi},Ie:function(){return Df},OB:function(){return dh},w3:function(){return nn},Jx:function(){return Zc},CB:function(){return ca},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 Zi},$r:function(){return ti}});var y=m(5552),I=m(77617),b=m(1948),z=function(Le){return function(Me,et){var hn=(0,I.useRef)(),Or=(0,I.useRef)(0);(et===void 0||!(0,b.k)(et,hn.current))&&(hn.current=et,Or.current+=1),Le(Me,[Or.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=[],Or=1;Or=Le.length?{done:!0}:{done:!1,value:Le[hn++]}},e:function(Ea){throw Ea},f:Or}}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 wn=!0,li=!1,Fi;return{s:function(){et=et.call(Le)},n:function(){var Ea=et.next();return wn=Ea.done,Ea},e:function(Ea){li=!0,Fi=Ea},f:function(){try{!wn&&et.return!=null&&et.return()}finally{if(li)throw Fi}}}}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),Or=hn[0],wn=hn[1],li=(0,dt.Z)(Or),Fi=wn;return typeof Fi=="number"?Fi="".concat(Fi,"px"):typeof Fi=="string"&&(Fi=Fi.replace("'","")),"".concat(li," :").concat(Fi)}).join("; ")};function Lr(Le,Me){return _r(Le)||To(Le,Me)||gi(Le,Me)||ri()}function ri(){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 gi(Le,Me){if(Le){if(typeof Le=="string")return ro(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 ro(Le,Me)}}function ro(Le,Me){(Me==null||Me>Le.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);et=0;--gs){var Es=this.tryEntries[gs],Pl=Es.completion;if(Es.tryLoc==="root")return Ci("end");if(Es.tryLoc<=this.prev){var ta=et.call(Es,"catchLoc"),vl=et.call(Es,"finallyLoc");if(ta&&vl){if(this.prev=0;--Ci){var gs=this.tryEntries[Ci];if(gs.tryLoc<=this.prev&&et.call(gs,"finallyLoc")&&this.prev=0;--zr){var Ci=this.tryEntries[zr];if(Ci.finallyLoc===ar)return this.complete(Ci.completion,Ci.afterLoc),Da(Ci),bl}},catch:function(ar){for(var zr=this.tryEntries.length-1;zr>=0;--zr){var Ci=this.tryEntries[zr];if(Ci.tryLoc===ar){var gs=Ci.completion;if(gs.type==="throw"){var Es=gs.arg;Da(Ci)}return Es}}throw new Error("illegal catch attempt")},delegateYield:function(ar,zr,Ci){return this.delegate={iterator:js(ar),resultName:zr,nextLoc:Ci},this.method==="next"&&(this.arg=void 0),bl}},Le}function So(Le,Me,et,hn,Or,wn,li){try{var Fi=Le[wn](li),_s=Fi.value}catch(Ea){et(Ea);return}Fi.done?Me(_s):Promise.resolve(_s).then(hn,Or)}function ho(Le){return function(){var Me=this,et=arguments;return new Promise(function(hn,Or){var wn=Le.apply(Me,et);function li(_s){So(wn,hn,Or,li,Fi,"next",_s)}function Fi(_s){So(wn,hn,Or,li,Fi,"throw",_s)}li(void 0)})}}var go=function(){var Le=ho(me().mark(function Me(et,hn){return me().wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:if(et!=="Map"){wn.next=2;break}return wn.abrupt("return",new y.Map(hn));case 2:if(et!=="Gaode"){wn.next=6;break}return wn.abrupt("return",new y.GaodeMap(hn));case 6:if(et!=="GaodeV1"){wn.next=10;break}return wn.abrupt("return",new y.GaodeMapV1(hn));case 10:if(et!=="GaodeV2"){wn.next=12;break}return wn.abrupt("return",new y.GaodeMapV2(hn));case 12:return wn.abrupt("return",Promise.resolve(Promise.resolve().then(m.bind(m,5552))).then(function(li){var Fi=li.Mapbox;return new Fi(hn)}));case 13:case"end":return wn.stop()}},Me)}));return function(et,hn){return Le.apply(this,arguments)}}(),ji=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}):[]},No=function(Le,Me){var et=(0,I.useRef)();(0,I.useEffect)(function(){var hn=ji(et.current,Me),Or=et.current;return et.current=Me,Le(hn,Or,Me)},Me)},dn=No,Ve=m(22633),yt={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(yt);function Wt(Le){return bt(Le)||Tt(Le)||Ot(Le)||sn()}function sn(){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 Kn(Le,Me){if(Le==null)return{};var et={},hn=Object.keys(Le),Or,wn;for(wn=0;wn=0)&&(et[Or]=Le[Or]);return et}var Fr=I.createContext(null),mi=(0,I.memo)((0,I.forwardRef)(function(Me,et){var hn=Me.id,Or=Me.style,wn=Me.className,li=Me.map,Fi=Me.mapType,_s=Fi===void 0?"Gaode":Fi,Ea=Me.mapOptions,Aa=Ea===void 0?{}:Ea,bl=Me.onLayerManagerCreated,Ql=Me.onSceneLoaded,Ju=Me.children,As=$n(Me,fr),Xa=(0,I.useRef)(),vr=(0,I.useState)(null),qa=_n(vr,2),Ta=qa[0],Du=qa[1],Wc=(0,I.useRef)({scene:null,layerManager:null}),os=Wc.current;(0,I.useEffect)(function(){var ks,Da=!0,Na=(0,A.Z)(li)?go(_s,Aa):typeof li=="function"?li():li;return Promise.resolve(Na).then(function(js){if(Da){ks=new y.Scene(ii(ii({},As),{},{id:Xa.current,map:js}));var bs=new Pt({scene:ks});os.scene=ks,os.layerManager=bs,ks.once("loaded",function(){Ql&&Ql(ks),bl&&bl(bs),Du(ks)})}}).catch(function(js){console.error(js)}),function(){Da=!1,ks&&(os.scene=null,os.layerManager=null,ks.destroy())}},[]),zn(Ta,Me),(0,I.useImperativeHandle)(et,function(){return{getScene:function(){return Ta},getMap:function(){return Ta.map}}},[Ta]),(0,I.useEffect)(function(){Ta&&Aa.style&&Ta.setMapStyle(Aa.style)},[Aa.style]),k(function(){(0,C.Z)(Ta)||(Aa.center&&(0,f.Z)(Aa.zoom)?Ta.setZoomAndCenter(Aa.zoom,Aa.center):(0,f.Z)(Aa.zoom)?Ta.setZoom(Aa.zoom):Aa.center&&Ta.setCenter(Aa.center))},[Aa.zoom,Aa.center]),(0,I.useEffect)(function(){Ta&&(0,f.Z)(Aa.pitch)&&Ta.setPitch(Aa.pitch)},[Aa.pitch]),(0,I.useEffect)(function(){Ta&&(0,f.Z)(Aa.rotation)&&Ta.setRotation(Aa.rotation)},[Aa.rotation]);var Mo=(0,I.useMemo)(function(){return ii({position:"relative"},Or)},[Or]);return I.createElement("div",{id:hn,ref:Xa,style:Mo,className:w()("larkmap",wn)},Ta&&I.createElement(Fr.Provider,{value:os},Ju))})),Tr=m(35894),ti=function(){var Me=(0,I.useContext)(Fr);if(!Me)throw new Error("The useScene must be used in the LarkMap container");var et=Me.scene;return et},di=function(Me,et,hn){var Or=ti(),wn=(0,I.useRef)();(0,I.useEffect)(function(){var li=new y.Control(hn);return li.onAdd=function(){return Me(Or)},li.onRemove=function(){},wn.current=li,Or.addControl(li),function(){typeof et=="function"&&et(Or),wn.current=null,Or.removeControl(li)}},[]),(0,Tr.Z)(function(){var li;(li=wn.current)===null||li===void 0||li.setOptions(hn)},[hn])},rn=function(){var Me=(0,I.useContext)(Fr);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)||Bt(Le,Me)||ao(Le,Me)||Xr()}function Xr(){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 ao(Le,Me){if(Le){if(typeof Le=="string")return as(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 as(Le,Me)}}function as(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 ya(Le,Me){if(Le==null)return{};var et={},hn=Object.keys(Le),Or,wn;for(wn=0;wn=0)&&(et[Or]=Le[Or]);return et}var fa=function(Me,et){var hn=et.onCreated,Or=et.source,wn=ms(et,Ei),li=rn(),Fi=(0,I.useRef)(),_s=(0,I.useRef)(wn),Ea=(0,I.useRef)(Or);return Fi.current||(Fi.current=new Me(et),hn&&Fi.current.once("inited",function(){return hn(Fi.current)}),li.addLayer(Fi.current)),(0,Tr.Z)(function(){if(Fi.current){var Aa=!(0,Ir.Z)(_s.current,wn);Aa&&(Fi.current.update(wn),_s.current=(0,tn.Z)(wn))}},[wn]),(0,Tr.Z)(function(){if(Fi.current){var Aa=Or.data,bl=ms(Or,Ln),Ql=Ea.current,Ju=Ql.data,As=ms(Ql,Ii),Xa=Aa!==Ju||!(0,Ir.Z)(bl,As);Xa&&(Fi.current.changeData(Or),Ea.current=wi({},Or))}},[Or]),(0,I.useEffect)(function(){return function(){Fi.current&&(li.removeLayer(Fi.current),Fi.current=null)}},[]),Fi},Ws={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"},Ua=function(Me,et){var hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ws,Or=(0,I.useMemo)(function(){return Object.keys(hn)},[hn]),wn=function(Aa){Or.forEach(function(bl){var Ql=hn[bl],Ju=et[bl];bl&&Ju&&Me[Aa](Ql,Ju)})},li=function(){return wn("on")},Fi=function(){return wn("off")},_s=(0,I.useRef)(!0);_s.current&&li(),(0,I.useEffect)(function(){return _s.current?_s.current=!1:li(),function(){Fi()}},Or.map(function(Ea){return et[Ea]})),(0,Ve.Z)(function(){Fi()})},Ao=null,cl=null,$r=m(32290),er={}.toString,Dr=function(Le,Me){return er.call(Le)==="[object "+Me+"]"},pr=Dr,ci=function(Le){return pr(Le,"Function")},Eo=function(Le){return Array.isArray?Array.isArray(Le):pr(Le,"Array")},mo=function(Le){var Me=typeof Le;return Le!==null&&Me==="object"||Me==="function"};function Ts(Le,Me){if(Le){var et;if(Eo(Le))for(var hn=0,Or=Le.length;hn-1;)oo.call(Le,wn,1);return Le},va=null,Bl=Array.prototype.splice,Fa=function(Me,et){if(!isArrayLike(Me))return[];for(var hn=Me?et.length:0,Or=hn-1;hn--;){var wn=void 0,li=et[hn];(hn===Or||li!==wn)&&(wn=li,Bl.call(Me,li,1))}return Me},gl=null,ua=function(Le,Me,et){if(!Eo(Le)&&!gt(Le))return Le;var hn=et;return xs(Le,function(Or,wn){hn=Me(hn,Or,wn)}),hn},Nl=ua,vs=function(Le,Me){var et=[];if(!isArrayLike(Le))return et;for(var hn=-1,Or=[],wn=Le.length;++hnwn[Fi])return 1;if(Or[Fi]0},au=null,Cn=function(Le,Me){if(isArray(Le)){for(var et,hn=-1/0,Or=0;Orhn&&(et=wn,hn=li)}return et}},Eu=function(Le,Me){if(isArray(Le)){for(var et,hn=1/0,Or=0;OrFi&&Aa>Fi);)if(_s.push(Ea),Fi-=Aa,li=li.substr(Or),!li)return _s.join("");for(;Ea=li.substr(0,1),Aa=measureTextWidth(Ea,et),!(Aa+wn>Fi);)if(_s.push(Ea),Fi-=Aa,li=li.substr(1),!li)return _s.join("");return""+_s.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),Or,wn;for(wn=0;wn=0)&&(et[Or]=Le[Or]);return et}var Sp="SECRET_COMBOBOX_MODE_DO_NOT_USE",Xf="larkmap-select",Zh=function(Me,et){var hn=Me.prefixCls,Or=Me.bordered,wn=Or===void 0?!0:Or,li=Me.className,Fi=Me.getPopupContainer,_s=Me.dropdownClassName,Ea=Me.popupClassName,Aa=Me.listHeight,bl=Aa===void 0?256:Aa,Ql=Me.placement,Ju=Me.listItemHeight,As=Ju===void 0?24:Ju,Xa=Me.disabled,vr=Me.notFoundContent,qa=Zp(Me,Qg),Ta=I.useMemo(function(){var os=qa,Mo=os.mode;if(Mo!=="combobox")return Mo===Sp?"combobox":Mo},[qa]),Du=(0,Lg.Z)(qa,"suffixIcon","itemIcon"),Wc=w()(Om({},"".concat(Xf,"-borderless"),!wn),li);return I.createElement(ug.ZP,Lm({ref:et},Du,{listHeight:bl,listItemHeight:As,mode:Ta,prefixCls:Xf,placement:Ql,notFoundContent:vr!=null?vr:"\u5F53\u524D\u65E0\u6570\u636E",className:Wc,getPopupContainer:Fi,dropdownClassName:Ea,disabled:Xa}))},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;--gs){var Es=this.tryEntries[gs],Pl=Es.completion;if(Es.tryLoc==="root")return Ci("end");if(Es.tryLoc<=this.prev){var ta=et.call(Es,"catchLoc"),vl=et.call(Es,"finallyLoc");if(ta&&vl){if(this.prev=0;--Ci){var gs=this.tryEntries[Ci];if(gs.tryLoc<=this.prev&&et.call(gs,"finallyLoc")&&this.prev=0;--zr){var Ci=this.tryEntries[zr];if(Ci.finallyLoc===ar)return this.complete(Ci.completion,Ci.afterLoc),Da(Ci),bl}},catch:function(ar){for(var zr=this.tryEntries.length-1;zr>=0;--zr){var Ci=this.tryEntries[zr];if(Ci.tryLoc===ar){var gs=Ci.completion;if(gs.type==="throw"){var Es=gs.arg;Da(Ci)}return Es}}throw new Error("illegal catch attempt")},delegateYield:function(ar,zr,Ci){return this.delegate={iterator:js(ar),resultName:zr,nextLoc:Ci},this.method==="next"&&(this.arg=void 0),bl}},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 ut(Le)}function ym(Le,Me){var et=Object.keys(Le);if(Object.getOwnPropertySymbols){var hn=Object.getOwnPropertySymbols(Le);Me&&(hn=hn.filter(function(Or){return Object.getOwnPropertyDescriptor(Le,Or).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),Or,wn;for(wn=0;wn=0)&&(et[Or]=Le[Or]);return et}var Ut=M0.Option,Vt=function(Me){var et=Me.searchParams,hn=Me.showDistrict,Or=Me.showAddress,wn=Me.onSearchFinish,li=Me.onChange,Fi=Xe(Me,Wm),_s=(0,I.useState)([]),Ea=de(_s,2),Aa=Ea[0],bl=Ea[1];(0,I.useEffect)(function(){wn==null||wn(Aa)},[wn,Aa]);var Ql=(0,im.Z)(function(){var Xa=Pg(Gm().mark(function vr(qa){var Ta,Du,Wc,os;return Gm().wrap(function(ks){for(;;)switch(ks.prev=ks.next){case 0:if(qa){ks.next=3;break}return bl([]),ks.abrupt("return");case 3:return Wc=Bo(vm,jm(jm({},et),{},{keywords:[].concat($d(((Ta=et.keywords)!==null&&Ta!==void 0?Ta:"").split("|")),[qa]).filter(function(Da){return!!Da}).join("|")})),ks.next=6,fetch(Wc);case 6:return ks.next=8,ks.sent.json();case 8:os=ks.sent,bl(((Du=os==null?void 0:os.tips)!==null&&Du!==void 0?Du:[]).filter(function(Da){return Da.location&&Da.location.length}).map(function(Da){var Na=Da.location.split(","),js=de(Na,2),bs=js[0],Qi=js[1];return Da.longitude=+bs,Da.latitude=+Qi,Da}));case 10:case"end":return ks.stop()}},vr)}));return function(vr){return Xa.apply(this,arguments)}}(),{wait:1e3}),Ju=Ql.run,As=(0,I.useCallback)(function(Xa){var vr=Xa&&Aa.find(function(qa){return qa.name===Xa});li==null||li(Xa||void 0,vr||void 0)},[li,Aa]);return I.createElement(M0,m0({className:"".concat(Cm),onSearch:Ju,onChange:As,clearIcon:function(){return null}},Fi),Aa.map(function(Xa){var vr="".concat(hn?Xa.district:"").concat(Or?Xa.address:"");return I.createElement(Ut,{key:Xa.id,value:Xa.name},I.createElement("div",{title:Xa.name,className:"".concat(Cm,"__option-name")},Xa.name),vr&&I.createElement("div",{title:vr,className:"".concat(Cm,"__option-tip")},vr))}))};Vt.defaultProps={placeholder:"\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u5730\u540D",showSearch:!0,allowClear:!0,filterOption:!1,defaultActiveFirstOption:!1,showAddress:!0,showDistrict:!0};var Yt=m(88234),an=m(4639),vn="larkmap-administrative-location",Rn="https://restapi.amap.com/v3/geocode/regeo";function ur(Le){"@babel/helpers - typeof";return ur=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},ur(Le)}function Ar(){"use strict";Ar=function(){return Le};var Le={},Me=Object.prototype,et=Me.hasOwnProperty,hn=Object.defineProperty||function(Qi,ar,zr){Qi[ar]=zr.value},Or=typeof Symbol=="function"?Symbol:{},wn=Or.iterator||"@@iterator",li=Or.asyncIterator||"@@asyncIterator",Fi=Or.toStringTag||"@@toStringTag";function _s(Qi,ar,zr){return Object.defineProperty(Qi,ar,{value:zr,enumerable:!0,configurable:!0,writable:!0}),Qi[ar]}try{_s({},"")}catch(Qi){_s=function(zr,Ci,gs){return zr[Ci]=gs}}function Ea(Qi,ar,zr,Ci){var gs=ar&&ar.prototype instanceof Ql?ar:Ql,Es=Object.create(gs.prototype),Pl=new Na(Ci||[]);return hn(Es,"_invoke",{value:os(Qi,zr,Pl)}),Es}function Aa(Qi,ar,zr){try{return{type:"normal",arg:Qi.call(ar,zr)}}catch(Ci){return{type:"throw",arg:Ci}}}Le.wrap=Ea;var bl={};function Ql(){}function Ju(){}function As(){}var Xa={};_s(Xa,wn,function(){return this});var vr=Object.getPrototypeOf,qa=vr&&vr(vr(js([])));qa&&qa!==Me&&et.call(qa,wn)&&(Xa=qa);var Ta=As.prototype=Ql.prototype=Object.create(Xa);function Du(Qi){["next","throw","return"].forEach(function(ar){_s(Qi,ar,function(zr){return this._invoke(ar,zr)})})}function Wc(Qi,ar){function zr(gs,Es,Pl,ta){var vl=Aa(Qi[gs],Qi,Es);if(vl.type!=="throw"){var mu=vl.arg,hc=mu.value;return hc&&ur(hc)=="object"&&et.call(hc,"__await")?ar.resolve(hc.__await).then(function(cd){zr("next",cd,Pl,ta)},function(cd){zr("throw",cd,Pl,ta)}):ar.resolve(hc).then(function(cd){mu.value=cd,Pl(mu)},function(cd){return zr("throw",cd,Pl,ta)})}ta(vl.arg)}var Ci;hn(this,"_invoke",{value:function(Es,Pl){function ta(){return new ar(function(vl,mu){zr(Es,Pl,vl,mu)})}return Ci=Ci?Ci.then(ta,ta):ta()}})}function os(Qi,ar,zr){var Ci="suspendedStart";return function(gs,Es){if(Ci==="executing")throw new Error("Generator is already running");if(Ci==="completed"){if(gs==="throw")throw Es;return bs()}for(zr.method=gs,zr.arg=Es;;){var Pl=zr.delegate;if(Pl){var ta=Mo(Pl,zr);if(ta){if(ta===bl)continue;return ta}}if(zr.method==="next")zr.sent=zr._sent=zr.arg;else if(zr.method==="throw"){if(Ci==="suspendedStart")throw Ci="completed",zr.arg;zr.dispatchException(zr.arg)}else zr.method==="return"&&zr.abrupt("return",zr.arg);Ci="executing";var vl=Aa(Qi,ar,zr);if(vl.type==="normal"){if(Ci=zr.done?"completed":"suspendedYield",vl.arg===bl)continue;return{value:vl.arg,done:zr.done}}vl.type==="throw"&&(Ci="completed",zr.method="throw",zr.arg=vl.arg)}}}function Mo(Qi,ar){var zr=ar.method,Ci=Qi.iterator[zr];if(Ci===void 0)return ar.delegate=null,zr==="throw"&&Qi.iterator.return&&(ar.method="return",ar.arg=void 0,Mo(Qi,ar),ar.method==="throw")||zr!=="return"&&(ar.method="throw",ar.arg=new TypeError("The iterator does not provide a '"+zr+"' method")),bl;var gs=Aa(Ci,Qi.iterator,ar.arg);if(gs.type==="throw")return ar.method="throw",ar.arg=gs.arg,ar.delegate=null,bl;var Es=gs.arg;return Es?Es.done?(ar[Qi.resultName]=Es.value,ar.next=Qi.nextLoc,ar.method!=="return"&&(ar.method="next",ar.arg=void 0),ar.delegate=null,bl):Es:(ar.method="throw",ar.arg=new TypeError("iterator result is not an object"),ar.delegate=null,bl)}function ks(Qi){var ar={tryLoc:Qi[0]};1 in Qi&&(ar.catchLoc=Qi[1]),2 in Qi&&(ar.finallyLoc=Qi[2],ar.afterLoc=Qi[3]),this.tryEntries.push(ar)}function Da(Qi){var ar=Qi.completion||{};ar.type="normal",delete ar.arg,Qi.completion=ar}function Na(Qi){this.tryEntries=[{tryLoc:"root"}],Qi.forEach(ks,this),this.reset(!0)}function js(Qi){if(Qi){var ar=Qi[wn];if(ar)return ar.call(Qi);if(typeof Qi.next=="function")return Qi;if(!isNaN(Qi.length)){var zr=-1,Ci=function gs(){for(;++zr=0;--gs){var Es=this.tryEntries[gs],Pl=Es.completion;if(Es.tryLoc==="root")return Ci("end");if(Es.tryLoc<=this.prev){var ta=et.call(Es,"catchLoc"),vl=et.call(Es,"finallyLoc");if(ta&&vl){if(this.prev=0;--Ci){var gs=this.tryEntries[Ci];if(gs.tryLoc<=this.prev&&et.call(gs,"finallyLoc")&&this.prev=0;--zr){var Ci=this.tryEntries[zr];if(Ci.finallyLoc===ar)return this.complete(Ci.completion,Ci.afterLoc),Da(Ci),bl}},catch:function(ar){for(var zr=this.tryEntries.length-1;zr>=0;--zr){var Ci=this.tryEntries[zr];if(Ci.tryLoc===ar){var gs=Ci.completion;if(gs.type==="throw"){var Es=gs.arg;Da(Ci)}return Es}}throw new Error("illegal catch attempt")},delegateYield:function(ar,zr,Ci){return this.delegate={iterator:js(ar),resultName:zr,nextLoc:Ci},this.method==="next"&&(this.arg=void 0),bl}},Le}function Hr(Le){return mr(Le)||rr(Le)||Pr(Le)||Br()}function Br(){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 rr(Le){if(typeof Symbol!="undefined"&&Le[Symbol.iterator]!=null||Le["@@iterator"]!=null)return Array.from(Le)}function mr(Le){if(Array.isArray(Le))return Ni(Le)}function ni(Le,Me){var et=Object.keys(Le);if(Object.getOwnPropertySymbols){var hn=Object.getOwnPropertySymbols(Le);Me&&(hn=hn.filter(function(Or){return Object.getOwnPropertyDescriptor(Le,Or).enumerable})),et.push.apply(et,hn)}return et}function yo(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,Or=[Me],wn=cn()(Me).object(),li=cn()(et).object();if(hn<2)return hn<1?[]:Or;var Fi={r:(wn.r-li.r)/(hn-1),g:(wn.g-li.g)/(hn-1),b:(wn.b-li.b)/(hn-1)};return(0,Jn.Z)(new Array(hn-2),function(_s,Ea){return Or.push(cn()({r:(0,Sr.Z)(wn.r-Fi.r*(Ea+1),0),g:(0,Sr.Z)(wn.g-Fi.g*(Ea+1),0),b:(0,Sr.Z)(wn.b-Fi.b*(Ea+1),0)}).hex())}),Or.push(et),Or};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 tr(Le,Me,et){return Me=Pn(Me),Me in Le?Object.defineProperty(Le,Me,{value:et,enumerable:!0,configurable:!0,writable:!0}):Le[Me]=et,Le}function Pn(Le){var Me=ir(Le,"string");return kt(Me)==="symbol"?Me:String(Me)}function ir(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 dr="larkmap-legend-category";function jr(Le){var Me=Le.labels,et=Le.colors,hn=Le.geometryType,Or=hn===void 0?"circle":hn,wn=Le.isStrokeColor,li=Le.style,Fi=Le.className;function _s(bl){return wn?{border:"2px solid ".concat(bl)}:{background:bl}}function Ea(bl){return I.createElement("div",{className:w()(dr,Fi),style:li},Me.map(function(Ql,Ju){return I.createElement("div",{className:"".concat(dr,"__content"),key:Ql},I.createElement("div",{className:w()("".concat(dr,"__content__shape"),tr({},"".concat(dr,"__content__").concat(Or),Or)),style:_s(bl[Ju])}),I.createElement("div",{className:"".concat(dr,"labels")},Ql))}))}function Aa(){if(Array.isArray(et))return Ea(et);var bl=Lo(et.startColor,et.endColor,Me.length);return Ea(bl)}return I.createElement(Aa,null)}jr.defaultProps={geometryType:"circle",isStrokeColor:!1};var Ri=m(46266),Te="larkmap-legend-ramp",qo=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 Zs(Le){var Me=Le.labels,et=Le.labelUnit,hn=et===void 0?"":et,Or=Le.colors,wn=Me[0]+hn,li=Me[Me.length-1]+hn;return I.createElement(I.Fragment,null,I.createElement("div",{className:"".concat(Te,"__continuous"),style:{background:"linear-gradient(to right,".concat(Or,")")}}),I.createElement("div",{className:"".concat(Te,"__continuous-labelbar")},I.createElement("span",null,wn),I.createElement("span",null,li)))}function Sa(Le){var Me=Le.labels,et=Le.labelUnit,hn=et===void 0?"":et,Or=Le.colors,wn=(0,I.useRef)(null),li=(0,Ri.Z)(wn),Fi=(li==null?void 0:li.width)/(Or.length+1),_s=Me;if(Me.length+1===Or.length){var Ea="< "+Me[0],Aa="\u2265 "+Me[Me.length-1];_s.unshift(Ea),_s.push(Aa)}var bl=function(Ju){var As="".concat(Me[Ju]).concat(hn," - ").concat(Me[Ju+1]).concat(hn);return As};return I.createElement("div",{className:"".concat(Te,"__dis-continuous"),ref:wn},Number.isNaN(Fi)?null:I.createElement(I.Fragment,null,I.createElement("div",{className:"".concat(Te,"__dis-continuous__colors"),style:{paddingLeft:Fi/2}},Or==null?void 0:Or.map(function(Ql,Ju){return I.createElement("div",{key:Ql,title:bl(Ju),className:"".concat(Te,"__dis-continuous__color"),style:{background:Ql,width:Fi}})})),I.createElement("div",{className:"".concat(Te,"__dis-continuous__labels")},Me==null?void 0:Me.map(function(Ql){var Ju=Ql+hn;return I.createElement("span",{key:Ql,className:"".concat(Te,"__dis-continuous__label")},Ju)}))))}function da(Le){var Me=Le.isContinuous,et=Le.labels,hn=Le.colors,Or=Le.labelUnit,wn=Le.className,li=Le.style;return I.createElement("div",{className:w()("".concat(Te),wn),style:li},Me?I.createElement(Zs,{labels:et,labelUnit:Or,colors:hn}):I.createElement(Sa,{labels:et,labelUnit:Or,colors:hn}))}da.defaultProps={isContinuous:!1,labelUnit:""};var Rs=m(68503),ma={point:Rs.DrawPoint,line:Rs.DrawLine,polygon:Rs.DrawPolygon,rect:Rs.DrawRect,circle:Rs.DrawCircle};function ko(Le){"@babel/helpers - typeof";return ko=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},ko(Le)}function or(Le,Me){var et=Object.keys(Le);if(Object.getOwnPropertySymbols){var hn=Object.getOwnPropertySymbols(Le);Me&&(hn=hn.filter(function(Or){return Object.getOwnPropertyDescriptor(Le,Or).enumerable})),et.push.apply(et,hn)}return et}function Ai(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&&++En;else{let tt=-1;for(let at of Xt)(at=gn(at,++tt,Xt))!=null&&(at=+at)>=at&&++En}return En}function A(Xt){return Math.max(1,Math.ceil(Math.log(w(Xt))/Math.LN2)+1)}function C(Xt,gn){let En,tt;if(gn===void 0)for(const at of Xt)at!=null&&(En===void 0?at>=at&&(En=tt=at):(En>at&&(En=at),tt=gt&&(En=tt=gt):(En>gt&&(En=gt),tt=f?10:gt>=S?5:gt>=P?2:1;let lt,St,ln;return at<0?(ln=Math.pow(10,-at)/Re,lt=Math.round(Xt*ln),St=Math.round(gn*ln),lt/lngn&&--St,ln=-ln):(ln=Math.pow(10,at)*Re,lt=Math.round(Xt/ln),St=Math.round(gn/ln),lt*lngn&&--St),St0))return[];if(Xt===gn)return[Xt];const tt=gn=at))return[];const lt=gt-at+1,St=new Array(lt);if(tt)if(Re<0)for(let ln=0;ln0?(Xt=Math.floor(Xt/at)*at,gn=Math.ceil(gn/at)*at):at<0&&(Xt=Math.ceil(Xt*at)/at,gn=Math.floor(gn*at)/at),tt=at}}var he=Array.prototype,fe=he.slice;function Be(Xt,gn){return Xt-gn}function Ie(Xt){for(var gn=0,En=Xt.length,tt=Xt[En-1][1]*Xt[0][0]-Xt[En-1][0]*Xt[0][1];++gn()=>Xt;function be(Xt,gn){for(var En=-1,tt=gn.length,at;++Entt!=Vi>tt&&En<(ki-ln)*(tt-Vn)/(Vi-Vn)+ln&&(at=-at)}return at}function ye(Xt,gn,En){var tt;return Ce(Xt,gn,En)&&xe(Xt[tt=+(Xt[0]===gn[0])],En[tt],gn[tt])}function Ce(Xt,gn,En){return(gn[0]-Xt[0])*(En[1]-Xt[1])===(En[0]-Xt[0])*(gn[1]-Xt[1])}function xe(Xt,gn,En){return Xt<=gn&&gn<=En||En<=gn&&gn<=Xt}function Ae(){}var ge=[[],[[[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 Xt=1,gn=1,En=A,tt=St;function at(ln){var Vn=En(ln);if(Array.isArray(Vn))Vn=Vn.slice().sort(Be);else{const wr=C(ln,Se);for(Vn=te(...pe(wr[0],wr[1],Vn),Vn);Vn[Vn.length-1]>=wr[1];)Vn.pop();for(;Vn[1]gt(ln,wr))}function gt(ln,Vn){const wr=Vn==null?NaN:+Vn;if(isNaN(wr))throw new Error(`invalid value: ${Vn}`);var ki=[],Vi=[];return Re(ln,wr,function(Ki){tt(Ki,ln,wr),Ie(Ki)>0?ki.push([Ki]):Vi.push(Ki)}),Vi.forEach(function(Ki){for(var ps=0,Ns=ki.length,Bs;ps=Vn,ge[_a<<2].forEach(Ds);++Ki0&&Vi0&&Ki=0&&wr>=0))throw new Error("invalid size");return Xt=Vn,gn=wr,at},at.thresholds=function(ln){return arguments.length?(En=typeof ln=="function"?ln:Array.isArray(ln)?je(fe.call(ln)):je(ln),at):En},at.smooth=function(ln){return arguments.length?(tt=ln?St:Ae,at):tt===St},at}function Se(Xt){return isFinite(Xt)?Xt:NaN}function Pt(Xt,gn){return Xt==null?!1:+Xt>=gn}function dt(Xt){return Xt==null||isNaN(Xt=+Xt)?-1/0:Xt}function He(Xt,gn,En,tt){const at=tt-gn,gt=En-gn,Re=isFinite(at)||isFinite(gt)?at/gt:Math.sign(at)/Math.sign(gt);return isNaN(Re)?Xt:Xt+Re-.5}var Ct=m(91482),ft=m.n(Ct);function zt(Xt,gn){return ri(Xt)||Lr(Xt,gn)||yn(Xt,gn)||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 yn(Xt,gn){if(Xt){if(typeof Xt=="string")return Bn(Xt,gn);var En=Object.prototype.toString.call(Xt).slice(8,-1);if(En==="Object"&&Xt.constructor&&(En=Xt.constructor.name),En==="Map"||En==="Set")return Array.from(Xt);if(En==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(En))return Bn(Xt,gn)}}function Bn(Xt,gn){(gn==null||gn>Xt.length)&&(gn=Xt.length);for(var En=0,tt=new Array(gn);En1&&arguments[1]!==void 0?arguments[1]:"image/png",En=document.createElement("canvas"),tt=En.getContext("2d");return En.width=Xt.width,En.height=Xt.height,tt.drawImage(Xt,0,0,Xt.width,Xt.height),En.toDataURL(gn)}function To(Xt){var gn=gi(Xt),En=new Image;return En.src=gn.toDataURL(),En}function _r(Xt,gn,En,tt){for(var at=new Uint8ClampedArray(Xt.data),gt=new Uint8ClampedArray(4*En*tt),Re=0;Re0){var lt=4*Re;gt[lt+0]=at[lt+0],gt[lt+1]=at[lt+1],gt[lt+2]=Math.max(at[lt+2],200),gt[lt+3]=at[lt+3]}return To(new ImageData(gt,En,tt))}function Bo(Xt,gn,En){for(var tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:15,at=gn,gt=0,Re=En,lt=0,St=0;St0){var ln=St%gn,Vn=Math.floor(St/gn);at=Math.min(at,ln),gt=Math.max(gt,ln),Re=Math.min(Re,Vn),lt=Math.max(lt,Vn)}return[at-tt,gt+tt,Re-tt,lt+tt]}function fs(Xt,gn,En,tt,at,gt){for(var Re=[],lt=0,St=gn;St0?1:-1}return Re}function me(Xt,gn,En){var tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,at=Xt.map(function(Re){return{x:Re[0]+gn,y:Re[1]+En}});if(tt===0)return at;var gt=ft()(at,tt,!0);return gt}var So=function(gn){return new Promise(function(En,tt){var at=new FileReader;at.readAsDataURL(gn),at.onload=function(){return En(at.result)},at.onerror=function(gt){return tt(gt)}})};function ho(Xt,gn,En){var tt=Bo(Xt,gn,En),at=zt(tt,4),gt=at[0],Re=at[1],lt=at[2],St=at[3],ln=fs(gt,lt,Re,St,Xt,gn),Vn=_r(ln,Re-gt,St-lt);return To(Vn)}function go(Xt,gn,En){var tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,at=Bo(Xt,gn,En),gt=zt(at,4),Re=gt[0],lt=gt[1],St=gt[2],ln=gt[3],Vn=fs(Re,St,lt,ln,Xt,gn),wr=lt-Re,ki=ln-St,Vi=We().size([wr,ki]).smooth(!1).thresholds(2),Ki=Vi(Vn);return me(Ki[1].coordinates[0][0],Re,St,tt)}function ji(Xt,gn){for(var En=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,tt=0;tt0)&&(Xt.data[4*tt+0]=0,Xt.data[4*tt+1]=0,Xt.data[4*tt+2]=0,Xt.data[4*tt+3]=0);return To(Xt)}function No(Xt,gn,En,tt){for(var at=Bo(gn,En,tt),gt=zt(at,4),Re=gt[0],lt=gt[1],St=gt[2],ln=gt[3],Vn=new Uint8ClampedArray(4*(lt-Re)*(ln-St)).fill(0),wr=0,ki=St;ki0&&(Vn[wr*4]=Xt.data[Ki*4],Vn[wr*4+1]=Xt.data[Ki*4+1],Vn[wr*4+2]=Xt.data[Ki*4+2],Vn[wr*4+3]=Xt.data[Ki*4+3]),wr++}var ps=new ImageData(Vn,lt-Re,ln-St);return To(ps)}function dn(Xt){var gn=document.createElement("a");gn.href=Xt.src,gn.download="image",gn.click()}function Ve(Xt){var gn=document.createElement("a");gn.href=Xt.toDataURL("image/png"),gn.download="image",gn.click()}function yt(Xt){var gn=document.createElement("canvas"),En=gn.getContext("2d");return gn.width=Xt.width,gn.height=Xt.height,En==null||En.drawImage(Xt,0,0),En==null?void 0:En.getImageData(0,0,Xt.width,Xt.height)}var xt=function(gn){var En=1024,tt=gn.naturalWidth,at=gn.naturalHeight,gt=En/Math.max(at,tt);return{height:at,width:tt,samScale:gt}},Wt=function(gn,En){var tt=1024,at=tt/Math.max(En,gn);return{height:En,width:gn,samScale:at}};function sn(Xt){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(gn){return typeof gn}:function(gn){return gn&&typeof Symbol=="function"&&gn.constructor===Symbol&&gn!==Symbol.prototype?"symbol":typeof gn},sn(Xt)}function Ot(){"use strict";Ot=function(){return Xt};var Xt={},gn=Object.prototype,En=gn.hasOwnProperty,tt=Object.defineProperty||function(vs,Hi,eo){vs[Hi]=eo.value},at=typeof Symbol=="function"?Symbol:{},gt=at.iterator||"@@iterator",Re=at.asyncIterator||"@@asyncIterator",lt=at.toStringTag||"@@toStringTag";function St(vs,Hi,eo){return Object.defineProperty(vs,Hi,{value:eo,enumerable:!0,configurable:!0,writable:!0}),vs[Hi]}try{St({},"")}catch(vs){St=function(eo,sa,Cs){return eo[sa]=Cs}}function ln(vs,Hi,eo,sa){var Cs=Hi&&Hi.prototype instanceof ki?Hi:ki,Ka=Object.create(Cs.prototype),$u=new gl(sa||[]);return tt(Ka,"_invoke",{value:oa(vs,eo,$u)}),Ka}function Vn(vs,Hi,eo){try{return{type:"normal",arg:vs.call(Hi,eo)}}catch(sa){return{type:"throw",arg:sa}}}Xt.wrap=ln;var wr={};function ki(){}function Vi(){}function Ki(){}var ps={};St(ps,gt,function(){return this});var Ns=Object.getPrototypeOf,Bs=Ns&&Ns(Ns(ua([])));Bs&&Bs!==gn&&En.call(Bs,gt)&&(ps=Bs);var _a=Ki.prototype=ki.prototype=Object.create(ps);function oo(vs){["next","throw","return"].forEach(function(Hi){St(vs,Hi,function(eo){return this._invoke(Hi,eo)})})}function Ds(vs,Hi){function eo(Cs,Ka,$u,rc){var Pc=Vn(vs[Cs],vs,Ka);if(Pc.type!=="throw"){var vo=Pc.arg,to=vo.value;return to&&sn(to)=="object"&&En.call(to,"__await")?Hi.resolve(to.__await).then(function(hs){eo("next",hs,$u,rc)},function(hs){eo("throw",hs,$u,rc)}):Hi.resolve(to).then(function(hs){vo.value=hs,$u(vo)},function(hs){return eo("throw",hs,$u,rc)})}rc(Pc.arg)}var sa;tt(this,"_invoke",{value:function(Ka,$u){function rc(){return new Hi(function(Pc,vo){eo(Ka,$u,Pc,vo)})}return sa=sa?sa.then(rc,rc):rc()}})}function oa(vs,Hi,eo){var sa="suspendedStart";return function(Cs,Ka){if(sa==="executing")throw new Error("Generator is already running");if(sa==="completed"){if(Cs==="throw")throw Ka;return Nl()}for(eo.method=Cs,eo.arg=Ka;;){var $u=eo.delegate;if($u){var rc=va($u,eo);if(rc){if(rc===wr)continue;return rc}}if(eo.method==="next")eo.sent=eo._sent=eo.arg;else if(eo.method==="throw"){if(sa==="suspendedStart")throw sa="completed",eo.arg;eo.dispatchException(eo.arg)}else eo.method==="return"&&eo.abrupt("return",eo.arg);sa="executing";var Pc=Vn(vs,Hi,eo);if(Pc.type==="normal"){if(sa=eo.done?"completed":"suspendedYield",Pc.arg===wr)continue;return{value:Pc.arg,done:eo.done}}Pc.type==="throw"&&(sa="completed",eo.method="throw",eo.arg=Pc.arg)}}}function va(vs,Hi){var eo=Hi.method,sa=vs.iterator[eo];if(sa===void 0)return Hi.delegate=null,eo==="throw"&&vs.iterator.return&&(Hi.method="return",Hi.arg=void 0,va(vs,Hi),Hi.method==="throw")||eo!=="return"&&(Hi.method="throw",Hi.arg=new TypeError("The iterator does not provide a '"+eo+"' method")),wr;var Cs=Vn(sa,vs.iterator,Hi.arg);if(Cs.type==="throw")return Hi.method="throw",Hi.arg=Cs.arg,Hi.delegate=null,wr;var Ka=Cs.arg;return Ka?Ka.done?(Hi[vs.resultName]=Ka.value,Hi.next=vs.nextLoc,Hi.method!=="return"&&(Hi.method="next",Hi.arg=void 0),Hi.delegate=null,wr):Ka:(Hi.method="throw",Hi.arg=new TypeError("iterator result is not an object"),Hi.delegate=null,wr)}function Bl(vs){var Hi={tryLoc:vs[0]};1 in vs&&(Hi.catchLoc=vs[1]),2 in vs&&(Hi.finallyLoc=vs[2],Hi.afterLoc=vs[3]),this.tryEntries.push(Hi)}function Fa(vs){var Hi=vs.completion||{};Hi.type="normal",delete Hi.arg,vs.completion=Hi}function gl(vs){this.tryEntries=[{tryLoc:"root"}],vs.forEach(Bl,this),this.reset(!0)}function ua(vs){if(vs){var Hi=vs[gt];if(Hi)return Hi.call(vs);if(typeof vs.next=="function")return vs;if(!isNaN(vs.length)){var eo=-1,sa=function Cs(){for(;++eo=0;--Cs){var Ka=this.tryEntries[Cs],$u=Ka.completion;if(Ka.tryLoc==="root")return sa("end");if(Ka.tryLoc<=this.prev){var rc=En.call(Ka,"catchLoc"),Pc=En.call(Ka,"finallyLoc");if(rc&&Pc){if(this.prev=0;--sa){var Cs=this.tryEntries[sa];if(Cs.tryLoc<=this.prev&&En.call(Cs,"finallyLoc")&&this.prev=0;--eo){var sa=this.tryEntries[eo];if(sa.finallyLoc===Hi)return this.complete(sa.completion,sa.afterLoc),Fa(sa),wr}},catch:function(Hi){for(var eo=this.tryEntries.length-1;eo>=0;--eo){var sa=this.tryEntries[eo];if(sa.tryLoc===Hi){var Cs=sa.completion;if(Cs.type==="throw"){var Ka=Cs.arg;Fa(sa)}return Ka}}throw new Error("illegal catch attempt")},delegateYield:function(Hi,eo,sa){return this.delegate={iterator:ua(Hi),resultName:eo,nextLoc:sa},this.method==="next"&&(this.arg=void 0),wr}},Xt}function Tt(Xt,gn,En,tt,at,gt,Re){try{var lt=Xt[gt](Re),St=lt.value}catch(ln){En(ln);return}lt.done?gn(St):Promise.resolve(St).then(tt,at)}function bt(Xt){return function(){var gn=this,En=arguments;return new Promise(function(tt,at){var gt=Xt.apply(gn,En);function Re(St){Tt(gt,tt,at,Re,lt,"next",St)}function lt(St){Tt(gt,tt,at,Re,lt,"throw",St)}Re(void 0)})}}function Ht(Xt,gn){if(!(Xt instanceof gn))throw new TypeError("Cannot call a class as a function")}function zn(Xt,gn){for(var En=0;En1&&ln[1]!==void 0?ln[1]:"float32",Re=new N,typeof at!="string"){wr.next=6;break}wr.t0=Re.load(at),wr.next=9;break;case 6:return wr.next=8,Re.parse(at);case 8:wr.t0=wr.sent;case 9:lt=wr.t0,St=new si.Tensor(gt,lt.data,lt.shape),this.tensor=St;case 12:case"end":return wr.stop()}},tt,this)}));function En(tt){return gn.apply(this,arguments)}return En}()},{key:"predict",value:function(){var gn=bt(Ot().mark(function tt(at){var gt,Re,lt;return Ot().wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:if(ln.prev=0,!(this.model===null||at===null||this.tensor===null||this.modelScale===null)){ln.next=6;break}return console.log("model not loaded"),ln.abrupt("return");case 6:if(gt=b({clicks:at,tensor:this.tensor,modelScale:this.modelScale}),gt!==void 0){ln.next=9;break}return ln.abrupt("return");case 9:return ln.next=11,this.model.run(gt);case 11:return Re=ln.sent,lt=Re[this.model.outputNames[0]],ln.abrupt("return",lt);case 14:ln.next=20;break;case 16:return ln.prev=16,ln.t0=ln.catch(0),console.log(ln.t0),ln.abrupt("return");case 20:case"end":return ln.stop()}},tt,this,[[0,16]])}));function En(tt){return gn.apply(this,arguments)}return En}()},{key:"predictByBox",value:function(){var gn=bt(Ot().mark(function tt(at){return Ot().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",at);case 1:case"end":return Re.stop()}},tt)}));function En(tt){return gn.apply(this,arguments)}return En}()},{key:"exportMaskImage",value:function(En){if(this.imageData!==void 0)return _r(this.imageData,En.data,En.dims[3],En.dims[2])}},{key:"exportMaskClip",value:function(En){return ho(En.data,En.dims[3],En.dims[2])}},{key:"exportImage",value:function(En){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.imageData!==void 0)return ji(this.imageData,En.data,tt)}},{key:"exportImageClip",value:function(En){if(this.imageData!==void 0)return No(this.imageData,En.data,En.dims[3],En.dims[2])}},{key:"exportVector",value:function(En){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;return go(En.data,En.dims[3],En.dims[2],tt)}},{key:"setWasmUrl",value:function(En){I.env.wasm.wasmPaths=En}},{key:"getImageScale",value:function(En){var tt=En.width,at=En.height;this.modelScale=Wt(tt,at)}}]),Xt}();function Qo(Xt){"@babel/helpers - typeof";return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(gn){return typeof gn}:function(gn){return gn&&typeof Symbol=="function"&&gn.constructor===Symbol&&gn!==Symbol.prototype?"symbol":typeof gn},Qo(Xt)}function _n(Xt,gn){return Us(Xt)||xo(Xt,gn)||qr(Xt,gn)||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 qr(Xt,gn){if(Xt){if(typeof Xt=="string")return Ui(Xt,gn);var En=Object.prototype.toString.call(Xt).slice(8,-1);if(En==="Object"&&Xt.constructor&&(En=Xt.constructor.name),En==="Map"||En==="Set")return Array.from(Xt);if(En==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(En))return Ui(Xt,gn)}}function Ui(Xt,gn){(gn==null||gn>Xt.length)&&(gn=Xt.length);for(var En=0,tt=new Array(gn);En0&&arguments[0]!==void 0?arguments[0]:256,En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"tms";$n(this,Xt),mi(this,"tileSize",void 0),mi(this,"type",void 0),mi(this,"initialResolution",void 0),mi(this,"originShift",void 0),this.tileSize=gn,this.type=En,this.initialResolution=2*Math.PI*6378137/this.tileSize,this.originShift=2*Math.PI*6378137/2}return Fr(Xt,[{key:"lngLatToMeters",value:function(En,tt){var at=En*this.originShift/180,gt=Math.log(Math.tan((90+tt)*Math.PI/360))/(Math.PI/180);return gt=gt*this.originShift/180,[at,gt]}},{key:"metersToLngLat",value:function(En,tt){var at=En/this.originShift*180,gt=tt/this.originShift*180;return gt=180/Math.PI*(2*Math.atan(Math.exp(gt*Math.PI/180))-Math.PI/2),[at,gt]}},{key:"pixelsToMeters",value:function(En,tt,at){var gt=this.resolution(at),Re=En*gt-this.originShift,lt=(this.type==="tms"?tt:Math.pow(2,at)*256-tt)*gt-this.originShift;return[Re,lt]}},{key:"metersToPixels",value:function(En,tt,at){var gt=this.resolution(at),Re=(En+this.originShift)/gt,lt=(tt+this.originShift)/gt;return lt=this.type==="tms"?lt:Math.pow(2,at)*256-lt,[Re,lt]}},{key:"metersToTile",value:function(En,tt,at){var gt=this.metersToPixels(En,tt,at),Re=_n(gt,2),lt=Re[0],St=Re[1];return this.pixelsToTile(lt,St)}},{key:"tileToMeters",value:function(En,tt,at){return this.pixelsToMeters(En*this.tileSize,tt*this.tileSize,at)}},{key:"tileToLngLat",value:function(En,tt,at){var gt=this.tileToMeters(En,tt,at),Re=_n(gt,2),lt=Re[0],St=Re[1];return this.metersToLngLat(lt,St)}},{key:"pixelsToTile",value:function(En,tt){var at=Math.floor(Math.ceil(En/this.tileSize)-1),gt=Math.floor(Math.ceil(tt/this.tileSize)-1);return[at,gt]}},{key:"pixelsToRaster",value:function(En,tt,at){var gt=this.tileSize<Xt.length)&&(gn=Xt.length);for(var En=0,tt=new Array(gn);En=0;--Cs){var Ka=this.tryEntries[Cs],$u=Ka.completion;if(Ka.tryLoc==="root")return sa("end");if(Ka.tryLoc<=this.prev){var rc=En.call(Ka,"catchLoc"),Pc=En.call(Ka,"finallyLoc");if(rc&&Pc){if(this.prev=0;--sa){var Cs=this.tryEntries[sa];if(Cs.tryLoc<=this.prev&&En.call(Cs,"finallyLoc")&&this.prev=0;--eo){var sa=this.tryEntries[eo];if(sa.finallyLoc===Hi)return this.complete(sa.completion,sa.afterLoc),Fa(sa),wr}},catch:function(Hi){for(var eo=this.tryEntries.length-1;eo>=0;--eo){var sa=this.tryEntries[eo];if(sa.tryLoc===Hi){var Cs=sa.completion;if(Cs.type==="throw"){var Ka=Cs.arg;Fa(sa)}return Ka}}throw new Error("illegal catch attempt")},delegateYield:function(Hi,eo,sa){return this.delegate={iterator:ua(Hi),resultName:eo,nextLoc:sa},this.method==="next"&&(this.arg=void 0),wr}},Xt}function Jr(Xt,gn,En,tt,at,gt,Re){try{var lt=Xt[gt](Re),St=lt.value}catch(ln){En(ln);return}lt.done?gn(St):Promise.resolve(St).then(tt,at)}function vi(Xt){return function(){var gn=this,En=arguments;return new Promise(function(tt,at){var gt=Xt.apply(gn,En);function Re(St){Jr(gt,tt,at,Re,lt,"next",St)}function lt(St){Jr(gt,tt,at,Re,lt,"throw",St)}Re(void 0)})}}var Ti=null,co=function(gn){var En=Qn(gn,4),tt=En[0],at=En[1],gt=En[2],Re=En[3];return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[tt,at],[tt,Re],[gt,Re],[gt,at],[tt,at]]]}}]}},Qr=function(gn){return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[gn]}}]}},oi=function(){return{type:"FeatureCollection",features:[]}};function Zi(Xt){"@babel/helpers - typeof";return Zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(gn){return typeof gn}:function(gn){return gn&&typeof Symbol=="function"&&gn.constructor===Symbol&&gn!==Symbol.prototype?"symbol":typeof gn},Zi(Xt)}function Ir(Xt,gn){return Ei(Xt)||Gn(Xt,gn)||wi(Xt,gn)||tn()}function tn(){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(Xt,gn){var En=Xt==null?null:typeof Symbol!="undefined"&&Xt[Symbol.iterator]||Xt["@@iterator"];if(En!=null){var tt,at,gt,Re,lt=[],St=!0,ln=!1;try{if(gt=(En=En.call(Xt)).next,gn===0){if(Object(En)!==En)return;St=!1}else for(;!(St=(tt=gt.call(En)).done)&&(lt.push(tt.value),lt.length!==gn);St=!0);}catch(Vn){ln=!0,at=Vn}finally{try{if(!St&&En.return!=null&&(Re=En.return(),Object(Re)!==Re))return}finally{if(ln)throw at}}return lt}}function Ei(Xt){if(Array.isArray(Xt))return Xt}function Ln(){"use strict";Ln=function(){return Xt};var Xt={},gn=Object.prototype,En=gn.hasOwnProperty,tt=Object.defineProperty||function(vs,Hi,eo){vs[Hi]=eo.value},at=typeof Symbol=="function"?Symbol:{},gt=at.iterator||"@@iterator",Re=at.asyncIterator||"@@asyncIterator",lt=at.toStringTag||"@@toStringTag";function St(vs,Hi,eo){return Object.defineProperty(vs,Hi,{value:eo,enumerable:!0,configurable:!0,writable:!0}),vs[Hi]}try{St({},"")}catch(vs){St=function(eo,sa,Cs){return eo[sa]=Cs}}function ln(vs,Hi,eo,sa){var Cs=Hi&&Hi.prototype instanceof ki?Hi:ki,Ka=Object.create(Cs.prototype),$u=new gl(sa||[]);return tt(Ka,"_invoke",{value:oa(vs,eo,$u)}),Ka}function Vn(vs,Hi,eo){try{return{type:"normal",arg:vs.call(Hi,eo)}}catch(sa){return{type:"throw",arg:sa}}}Xt.wrap=ln;var wr={};function ki(){}function Vi(){}function Ki(){}var ps={};St(ps,gt,function(){return this});var Ns=Object.getPrototypeOf,Bs=Ns&&Ns(Ns(ua([])));Bs&&Bs!==gn&&En.call(Bs,gt)&&(ps=Bs);var _a=Ki.prototype=ki.prototype=Object.create(ps);function oo(vs){["next","throw","return"].forEach(function(Hi){St(vs,Hi,function(eo){return this._invoke(Hi,eo)})})}function Ds(vs,Hi){function eo(Cs,Ka,$u,rc){var Pc=Vn(vs[Cs],vs,Ka);if(Pc.type!=="throw"){var vo=Pc.arg,to=vo.value;return to&&Zi(to)=="object"&&En.call(to,"__await")?Hi.resolve(to.__await).then(function(hs){eo("next",hs,$u,rc)},function(hs){eo("throw",hs,$u,rc)}):Hi.resolve(to).then(function(hs){vo.value=hs,$u(vo)},function(hs){return eo("throw",hs,$u,rc)})}rc(Pc.arg)}var sa;tt(this,"_invoke",{value:function(Ka,$u){function rc(){return new Hi(function(Pc,vo){eo(Ka,$u,Pc,vo)})}return sa=sa?sa.then(rc,rc):rc()}})}function oa(vs,Hi,eo){var sa="suspendedStart";return function(Cs,Ka){if(sa==="executing")throw new Error("Generator is already running");if(sa==="completed"){if(Cs==="throw")throw Ka;return Nl()}for(eo.method=Cs,eo.arg=Ka;;){var $u=eo.delegate;if($u){var rc=va($u,eo);if(rc){if(rc===wr)continue;return rc}}if(eo.method==="next")eo.sent=eo._sent=eo.arg;else if(eo.method==="throw"){if(sa==="suspendedStart")throw sa="completed",eo.arg;eo.dispatchException(eo.arg)}else eo.method==="return"&&eo.abrupt("return",eo.arg);sa="executing";var Pc=Vn(vs,Hi,eo);if(Pc.type==="normal"){if(sa=eo.done?"completed":"suspendedYield",Pc.arg===wr)continue;return{value:Pc.arg,done:eo.done}}Pc.type==="throw"&&(sa="completed",eo.method="throw",eo.arg=Pc.arg)}}}function va(vs,Hi){var eo=Hi.method,sa=vs.iterator[eo];if(sa===void 0)return Hi.delegate=null,eo==="throw"&&vs.iterator.return&&(Hi.method="return",Hi.arg=void 0,va(vs,Hi),Hi.method==="throw")||eo!=="return"&&(Hi.method="throw",Hi.arg=new TypeError("The iterator does not provide a '"+eo+"' method")),wr;var Cs=Vn(sa,vs.iterator,Hi.arg);if(Cs.type==="throw")return Hi.method="throw",Hi.arg=Cs.arg,Hi.delegate=null,wr;var Ka=Cs.arg;return Ka?Ka.done?(Hi[vs.resultName]=Ka.value,Hi.next=vs.nextLoc,Hi.method!=="return"&&(Hi.method="next",Hi.arg=void 0),Hi.delegate=null,wr):Ka:(Hi.method="throw",Hi.arg=new TypeError("iterator result is not an object"),Hi.delegate=null,wr)}function Bl(vs){var Hi={tryLoc:vs[0]};1 in vs&&(Hi.catchLoc=vs[1]),2 in vs&&(Hi.finallyLoc=vs[2],Hi.afterLoc=vs[3]),this.tryEntries.push(Hi)}function Fa(vs){var Hi=vs.completion||{};Hi.type="normal",delete Hi.arg,vs.completion=Hi}function gl(vs){this.tryEntries=[{tryLoc:"root"}],vs.forEach(Bl,this),this.reset(!0)}function ua(vs){if(vs){var Hi=vs[gt];if(Hi)return Hi.call(vs);if(typeof vs.next=="function")return vs;if(!isNaN(vs.length)){var eo=-1,sa=function Cs(){for(;++eo=0;--Cs){var Ka=this.tryEntries[Cs],$u=Ka.completion;if(Ka.tryLoc==="root")return sa("end");if(Ka.tryLoc<=this.prev){var rc=En.call(Ka,"catchLoc"),Pc=En.call(Ka,"finallyLoc");if(rc&&Pc){if(this.prev=0;--sa){var Cs=this.tryEntries[sa];if(Cs.tryLoc<=this.prev&&En.call(Cs,"finallyLoc")&&this.prev=0;--eo){var sa=this.tryEntries[eo];if(sa.finallyLoc===Hi)return this.complete(sa.completion,sa.afterLoc),Fa(sa),wr}},catch:function(Hi){for(var eo=this.tryEntries.length-1;eo>=0;--eo){var sa=this.tryEntries[eo];if(sa.tryLoc===Hi){var Cs=sa.completion;if(Cs.type==="throw"){var Ka=Cs.arg;Fa(sa)}return Ka}}throw new Error("illegal catch attempt")},delegateYield:function(Hi,eo,sa){return this.delegate={iterator:ua(Hi),resultName:eo,nextLoc:sa},this.method==="next"&&(this.arg=void 0),wr}},Xt}function Ii(Xt){return Rr(Xt)||Mi(Xt)||wi(Xt)||nr()}function nr(){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 wi(Xt,gn){if(Xt){if(typeof Xt=="string")return Xn(Xt,gn);var En=Object.prototype.toString.call(Xt).slice(8,-1);if(En==="Object"&&Xt.constructor&&(En=Xt.constructor.name),En==="Map"||En==="Set")return Array.from(Xt);if(En==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(En))return Xn(Xt,gn)}}function Mi(Xt){if(typeof Symbol!="undefined"&&Xt[Symbol.iterator]!=null||Xt["@@iterator"]!=null)return Array.from(Xt)}function Rr(Xt){if(Array.isArray(Xt))return Xn(Xt)}function Xn(Xt,gn){(gn==null||gn>Xt.length)&&(gn=Xt.length);for(var En=0,tt=new Array(gn);En1&&Vi[1]!==void 0?Vi[1]:5,ps.next=3,this.exportVector(Re,St);case 3:return ln=ps.sent,Vn=this.imageBounds,wr=ln.map(function(Ns){var Bs=[Ns.x*lt.metersPerpixelsX+Vn[0],(lt.imageOption.height-Ns.y)*lt.metersPerpixelsY+Vn[1]],_a=lt.mapHelper.metersToLngLat(Bs[0],Bs[1]);return _a}),ki=Qr(wr),ps.abrupt("return",ki);case 8:case"end":return ps.stop()}},gt,this)}));function at(gt){return tt.apply(this,arguments)}return at}()},{key:"lngLat2ImagePixel",value:function(at){if(this.imageBounds){var gt=this.mapHelper.lngLatToMeters(at[0],at[1]),Re=Ir(gt,2),lt=Re[0],St=Re[1],ln=(lt-this.imageBounds[0])/this.metersPerpixelsX,Vn=(St-this.imageBounds[1])/this.metersPerpixelsY;return Vn=this.imageOption.height-Vn,[ln,Vn]}}}]),En}(uo)},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 te},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,je=(he+fe)/2;if(he===fe)Ie=0,Be=0;else{var be=he-fe;switch(Ie=je>.5?be/(2-he-fe):be/(he+fe),he){case re:Be=(ce-pe)/be+(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,je=2*pe-Ie;he=z(je,Ie,re+1/3),fe=z(je,Ie,re),Be=z(je,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,je=he-fe,be=he===0?0:je/he;if(he===fe)Be=0;else{switch(he){case re:Be=(ce-pe)/je+(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 te={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)?(te=(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),te=(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),te=(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(te.r,0)),g:Math.min(255,Math.max(te.g,0)),b:Math.min(255,Math.max(te.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 te=!1;if(I.R[W])W=I.R[W],te=!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:te?"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:te?"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:te?"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:te?"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,te=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),te<=.03928?S=te/12.92:S=Math.pow((te+.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=[],te=1/A;A--;)W.push(new w({h:f,s:S,v:P})),P=(P+te)%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 Xt}});function y(tt){if(tt.sheet)return tt.sheet;for(var at=0;at0?P(be,--Ie):0,fe--,je===10&&(fe=1,he--),je}function Ae(){return je=Ie2||Pt(je)>3?"":" "}function mt(tt){for(;Ae();)switch(Pt(je)){case 0:append(ri(Ie-1),tt);break;case 2:append(Ct(je),tt);break;default:append(from(je),tt)}return tt}function yn(tt,at){for(;--at&&Ae()&&!(je<48||je>102||je>57&&je<65||je>70&&je<97););return Se(tt,We()+(at<6&&ge()==32&&Ae()==32))}function Bn(tt){for(;Ae();)switch(je){case tt:return Ie;case 34:case 39:tt!==34&&tt!==39&&Bn(je);break;case 40:tt===41&&Bn(tt);break;case 92:Ae();break}return Ie}function Lr(tt,at){for(;Ae()&&tt+je!==47+10;)if(tt+je===42+42&&ge()===47)break;return"/*"+Se(at,Ie-1)+"*"+k(tt===47?tt:Ae())}function ri(tt){for(;!Pt(ge());)Ae();return Se(tt,Ie)}var gi="-ms-",ro="-moz-",To="-webkit-",_r="comm",Bo="rule",fs="decl",me="@page",So="@media",ho="@import",go="@charset",ji="@viewport",No="@supports",dn="@document",Ve="@namespace",yt="@keyframes",xt="@font-face",Wt="@counter-style",sn="@font-feature-values",Ot="@layer";function Tt(tt,at){for(var gt="",Re=re(tt),lt=0;lt-1&&!tt.return)switch(tt.type){case DECLARATION:tt.return=prefix(tt.value,tt.length,gt);return;case KEYFRAMES:return serialize([copy(tt,{value:replace(tt.value,"@","@"+WEBKIT)})],Re);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")]})],Re);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")]})],Re)}return""})}}function fr(tt){switch(tt.type){case RULESET:tt.props=tt.props.map(function(at){return combine(tokenize(at),function(gt,Re,lt){switch(charat(gt,0)){case 12:return substr(gt,1,strlen(gt));case 0:case 40:case 43:case 62:case 126:return gt;case 58:lt[++Re]==="global"&&(lt[Re]="",lt[++Re]="\f"+substr(lt[Re],Re=1,-1));case 32:return Re===1?"":gt;default:switch(Re){case 0:return tt=gt,sizeof(lt)>1?"":gt;case(Re=sizeof(lt)-1):case 2:return Re===2?gt+tt+tt:gt+tt;default:return gt}}})})}}function Kr(tt){return He(ii("",null,null,null,[""],tt=dt(tt),0,[0],tt))}function ii(tt,at,gt,Re,lt,St,ln,Vn,wr){for(var ki=0,Vi=0,Ki=ln,ps=0,Ns=0,Bs=0,_a=1,oo=1,Ds=1,oa=0,va="",Bl=lt,Fa=St,gl=Re,ua=va;oo;)switch(Bs=oa,oa=Ae()){case 40:if(Bs!=108&&P(ua,Ki-1)==58){S(ua+=f(Ct(oa),"&","&\f"),"&\f")!=-1&&(Ds=-1);break}case 34:case 39:case 91:ua+=Ct(oa);break;case 9:case 10:case 13:case 32:ua+=zt(Bs);break;case 92:ua+=yn(We()-1,7);continue;case 47:switch(ge()){case 42:case 47:ce(uo(Lr(Ae(),We()),at,gt),wr);break;default:ua+="/"}break;case 123*_a:Vn[ki++]=te(ua)*Ds;case 125*_a:case 59:case 0:switch(oa){case 0:case 125:oo=0;case 59+Vi:Ds==-1&&(ua=f(ua,/\f/g,"")),Ns>0&&te(ua)-Ki&&ce(Ns>32?Qo(ua+";",Re,gt,Ki-1):Qo(f(ua," ","")+";",Re,gt,Ki-2),wr);break;case 59:ua+=";";default:if(ce(gl=si(ua,at,gt,ki,Vi,lt,Vn,va,Bl=[],Fa=[],Ki),St),oa===123)if(Vi===0)ii(ua,at,gl,gl,Bl,St,Ki,Vn,Fa);else switch(ps===99&&P(ua,3)===110?100:ps){case 100:case 108:case 109:case 115:ii(tt,gl,gl,Re&&ce(si(tt,gl,gl,0,0,lt,Vn,va,lt,Bl=[],Ki),Fa),lt,Fa,Ki,Vn,Re?Bl:Fa);break;default:ii(ua,gl,gl,gl,[""],Fa,0,Vn,Fa)}}ki=Vi=Ns=0,_a=Ds=1,va=ua="",Ki=ln;break;case 58:Ki=1+te(ua),Ns=Bs;default:if(_a<1){if(oa==123)--_a;else if(oa==125&&_a++==0&&xe()==125)continue}switch(ua+=k(oa),oa*_a){case 38:Ds=Vi>0?1:(ua+="\f",-1);break;case 44:Vn[ki++]=(te(ua)-1)*Ds,Ds=1;break;case 64:ge()===45&&(ua+=Ct(Ae())),ps=ge(),Vi=Ki=te(va=ua+=ri(We())),oa++;break;case 45:Bs===45&&te(ua)==2&&(_a=0)}}return St}function si(tt,at,gt,Re,lt,St,ln,Vn,wr,ki,Vi){for(var Ki=lt-1,ps=lt===0?St:[""],Ns=re(ps),Bs=0,_a=0,oo=0;Bs0?ps[Ds]+" "+oa:f(oa,/&\f/g,ps[Ds])))&&(wr[oo++]=va);return ve(tt,at,gt,lt===0?Bo:Vn,wr,ki,Vi)}function uo(tt,at,gt){return ve(tt,at,gt,_r,k(Ce()),W(tt,2,-2),0)}function Qo(tt,at,gt,Re){return ve(tt,at,gt,fs,W(tt,0,Re),W(tt,Re+1,-1),Re)}var _n=function(at,gt,Re){for(var lt=0,St=0;lt=St,St=ge(),lt===38&&St===12&&(gt[Re]=1),!Pt(St);)Ae();return Se(at,Ie)},Vr=function(at,gt){var Re=-1,lt=44;do switch(Pt(lt)){case 0:lt===38&&ge()===12&&(gt[Re]=1),at[Re]+=_n(Ie-1,gt,Re);break;case 2:at[Re]+=Ct(lt);break;case 4:if(lt===44){at[++Re]=ge()===58?"&\f":"",gt[Re]=at[Re].length;break}default:at[Re]+=k(lt)}while(lt=Ae());return at},qr=function(at,gt){return He(Vr(dt(at),gt))},Ui=new WeakMap,xo=function(at){if(!(at.type!=="rule"||!at.parent||at.length<1)){for(var gt=at.value,Re=at.parent,lt=at.column===Re.column&&at.line===Re.line;Re.type!=="rule";)if(Re=Re.parent,!Re)return;if(!(at.props.length===1&>.charCodeAt(0)!==58&&!Ui.get(Re))&&!lt){Ui.set(at,!0);for(var St=[],ln=qr(gt,St),Vn=Re.props,wr=0,ki=0;wr-1},Fr=function(at){return function(gt,Re,lt){if(!(gt.type!=="rule"||at.compat)){var St=gt.value.match(/(:first|:nth|:nth-last)-child/g);if(St){for(var ln=!!gt.parent,Vn=ln?gt.parent.children:lt,wr=Vn.length-1;wr>=0;wr--){var ki=Vn[wr];if(ki.line=0;Re--)if(!mi(gt[Re]))return!0;return!1},ti=function(at){at.type="",at.value="",at.return="",at.children="",at.props=""},di=function(at,gt,Re){mi(at)&&(at.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."),ti(at)):Tr(gt,Re)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ti(at)))};function rn(tt,at){switch(w(tt,at)){case 5103:return To+"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 To+tt+tt;case 5349:case 4246:case 4810:case 6968:case 2756:return To+tt+ro+tt+gi+tt+tt;case 6828:case 4268:return To+tt+gi+tt+tt;case 6165:return To+tt+gi+"flex-"+tt+tt;case 5187:return To+tt+f(tt,/(\w+).+(:[^]+)/,To+"box-$1$2"+gi+"flex-$1$2")+tt;case 5443:return To+tt+gi+"flex-item-"+f(tt,/flex-|-self/,"")+tt;case 4675:return To+tt+gi+"flex-line-pack"+f(tt,/align-content|flex-|-self/,"")+tt;case 5548:return To+tt+gi+f(tt,"shrink","negative")+tt;case 5292:return To+tt+gi+f(tt,"basis","preferred-size")+tt;case 6060:return To+"box-"+f(tt,"-grow","")+To+tt+gi+f(tt,"grow","positive")+tt;case 4554:return To+f(tt,/([^-])(transform)/g,"$1"+To+"$2")+tt;case 6187:return f(f(f(tt,/(zoom-|grab)/,To+"$1"),/(image-set)/,To+"$1"),tt,"")+tt;case 5495:case 3959:return f(tt,/(image-set\([^]*)/,To+"$1$`$1");case 4968:return f(f(tt,/(.+:)(flex-)?(.*)/,To+"box-pack:$3"+gi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+To+tt+tt;case 4095:case 3583:case 4068:case 2532:return f(tt,/(.+)-inline(.+)/,To+"$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(te(tt)-1-at>6)switch(P(tt,at+1)){case 109:if(P(tt,at+4)!==45)break;case 102:return f(tt,/(.+:)(.+)-([^]+)/,"$1"+To+"$2-$3$1"+ro+(P(tt,at+3)==108?"$3":"$2-$3"))+tt;case 115:return~S(tt,"stretch")?rn(f(tt,"stretch","fill-available"),at)+tt:tt}break;case 4949:if(P(tt,at+1)!==115)break;case 6444:switch(P(tt,te(tt)-3-(~S(tt,"!important")&&10))){case 107:return f(tt,":",":"+To)+tt;case 101:return f(tt,/(.+:)([^;!]+)(;|!.+)?/,"$1"+To+(P(tt,14)===45?"inline-":"")+"box$3$1"+To+"$2$3$1"+gi+"$2box$3")+tt}break;case 5936:switch(P(tt,at+11)){case 114:return To+tt+gi+f(tt,/[svh]\w+-[tblr]{2}/,"tb")+tt;case 108:return To+tt+gi+f(tt,/[svh]\w+-[tblr]{2}/,"tb-rl")+tt;case 45:return To+tt+gi+f(tt,/[svh]\w+-[tblr]{2}/,"lr")+tt}return To+tt+gi+tt+tt}return tt}var Qn=function(at,gt,Re,lt){if(at.length>-1&&!at.return)switch(at.type){case fs:at.return=rn(at.value,at.length);break;case yt:return Tt([ye(at,{value:f(at.value,"@","@"+To)})],lt);case Bo:if(at.length)return pe(at.props,function(St){switch(C(St,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Tt([ye(at,{props:[f(St,/:(read-\w+)/,":"+ro+"$1")]})],lt);case"::placeholder":return Tt([ye(at,{props:[f(St,/:(plac\w+)/,":"+To+"input-$1")]}),ye(at,{props:[f(St,/:(plac\w+)/,":"+ro+"$1")]}),ye(at,{props:[f(St,/:(plac\w+)/,gi+"input-$1")]})],lt)}return""})}},Xr=[Qn],ao=function(at){var gt=at.key;if(gt==="css"){var Re=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(Re,function(_a){var oo=_a.getAttribute("data-emotion");oo.indexOf(" ")!==-1&&(document.head.appendChild(_a),_a.setAttribute("data-s",""))})}var lt=at.stylisPlugins||Xr,St={},ln,Vn=[];ln=at.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+gt+' "]'),function(_a){for(var oo=_a.getAttribute("data-emotion").split(" "),Ds=1;Ds=4;++Re,lt-=4)gt=tt.charCodeAt(Re)&255|(tt.charCodeAt(++Re)&255)<<8|(tt.charCodeAt(++Re)&255)<<16|(tt.charCodeAt(++Re)&255)<<24,gt=(gt&65535)*1540483477+((gt>>>16)*59797<<16),gt^=gt>>>24,at=(gt&65535)*1540483477+((gt>>>16)*59797<<16)^(at&65535)*1540483477+((at>>>16)*59797<<16);switch(lt){case 3:at^=(tt.charCodeAt(Re+2)&255)<<16;case 2:at^=(tt.charCodeAt(Re+1)&255)<<8;case 1:at^=tt.charCodeAt(Re)&255,at=(at&65535)*1540483477+((at>>>16)*59797<<16)}return at^=at>>>13,at=(at&65535)*1540483477+((at>>>16)*59797<<16),((at^at>>>15)>>>0).toString(36)}var Bt={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 at=Object.create(null);return function(gt){return at[gt]===void 0&&(at[gt]=tt(gt)),at[gt]}}var xr=`You have illegal escape sequence in your template literal, most likely inside content's property value. +`);var ET=function(a){(0,At.Z)(c,a);var g=a9(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"getServiceConstructor",value:function(){return YA}}]),c}(Hx),l9=_(71925),Jw=_.n(l9),LO=["id","attributionControl","style","rotation","mapInstance"],FI,H5;function PO(a){var g=u9();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function u9(){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 BI(a,g){var c=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,u=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(c||u)&&(g||(g=document),!!g)){var l=g.head||g.getElementsByTagName("head")[0];if(!l){l=g.createElement("head");var m=g.body||g.getElementsByTagName("body")[0];m?m.parentNode.insertBefore(l,m):g.documentElement.appendChild(l)}var A=g.createElement("style");return A.type="text/css",A.styleSheet?A.styleSheet.cssText=a:A.appendChild(g.createTextNode(a)),l.appendChild(A),A}}BI(`.maplibregl-map{-webkit-tap-highlight-color:rgb(0 0 0/0);font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:-webkit-full-screen{height:100%;width:100%}.maplibregl-map:-moz-full-screen{height:100%;width:100%}.maplibregl-map:-ms-fullscreen{height:100%;width:100%}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{-ms-touch-action:none;touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:-webkit-grab;cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:-webkit-grabbing;cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{-ms-touch-action:pinch-zoom;touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{-ms-touch-action:none;touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;-webkit-transform:translate(0);transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 0 2px rgba(0,0,0,.1);box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.maplibregl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 0 2px ButtonText;box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (-ms-high-contrast:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%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")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%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){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%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")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%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){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%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")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%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")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%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")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%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){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%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")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%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){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%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")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%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")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8h-8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8h-8z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8h-8z'/%3E%3Cpath fill='%23999' d='m10.5 16 4 8 4-8h-8z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8h-8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8h-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1 9-9z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{-webkit-animation:maplibregl-spin 2s linear infinite;animation:maplibregl-spin 2s linear infinite}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1 9-9z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1 9-9z'/%3E%3C/svg%3E")}}@-webkit-keyframes maplibregl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes maplibregl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.255 1.255 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.255 1.255 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5.11 5.11 0 0 1 .314-.787l.009-.016a4.623 4.623 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.548 4.548 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4.314.319.566.676.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.416 2.416 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.448 2.448 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675c.211.2.381.43.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.76 4.76 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.407 3.407 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.255 1.255 0 0 1 .689 1.004 4.73 4.73 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528 0 .343-.02.694-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.815 5.815 0 0 1-.548-2.512c0-.286.017-.567.053-.843a1.255 1.255 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.778 4.778 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.47 4.47 0 0 1-1.935-.424 1.252 1.252 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.402 2.402 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.703 4.703 0 0 1-1.782 1.884 4.767 4.767 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.47 4.47 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a4.983 4.983 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.255 1.255 0 0 1-1.115.676h-.098a1.255 1.255 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15c.329-.237.574-.499.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267c-.088-.22-.264-.438-.526-.658l-.032-.028a3.16 3.16 0 0 0-.668-.428l-.27-.12a3.293 3.293 0 0 0-1.235-.23c-.757 0-1.415.163-1.974.493a3.36 3.36 0 0 0-1.3 1.382c-.297.593-.444 1.284-.444 2.074 0 .8.17 1.503.51 2.107a3.795 3.795 0 0 0 1.382 1.381 3.883 3.883 0 0 0 1.893.477c.53 0 1.015-.11 1.455-.33zm-2.789-5.38c-.384.45-.575 1.038-.575 1.762 0 .735.186 1.332.559 1.794.384.45.933.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.17 2.17 0 0 0 .468-.29l.178-.161a2.163 2.163 0 0 0 .397-.561c.163-.333.244-.717.244-1.15v-.115c0-.472-.098-.894-.296-1.267l-.043-.077a2.211 2.211 0 0 0-.633-.709l-.13-.086-.047-.028a2.099 2.099 0 0 0-1.073-.285c-.702 0-1.244.231-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.958.958 0 0 0-.353-.389.851.851 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.626 2.626 0 0 0 .331.423c.213.22.464.402.755.548l.173.074c.433.17.93.255 1.49.255.68 0 1.295-.165 1.844-.493a3.447 3.447 0 0 0 1.316-1.4c.329-.603.493-1.299.493-2.089 0-1.273-.33-2.243-.988-2.913-.658-.68-1.52-1.02-2.584-1.02-.598 0-1.124.115-1.575.347a2.807 2.807 0 0 0-.415.262l-.199.166a3.35 3.35 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138c.137.193.297.36.48.5l.155.11.053.034c.34.197.713.297 1.119.297.714 0 1.262-.225 1.645-.675.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.29 0-.569.053-.835.16a2.366 2.366 0 0 0-.284.136 1.99 1.99 0 0 0-.363.254 2.237 2.237 0 0 0-.46.569l-.082.162a2.56 2.56 0 0 0-.213 1.072v.115c0 .471.098.894.296 1.267l.135.211zm.964-.818a1.11 1.11 0 0 0 .367.385.937.937 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a.995.995 0 0 0-.503.135l-.012.007a.859.859 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.43 1.43 0 0 0 .14.66zm15.7-6.222c.232-.23.346-.516.346-.856a1.053 1.053 0 0 0-.345-.79 1.175 1.175 0 0 0-.84-.329c-.34 0-.625.11-.855.33a1.053 1.053 0 0 0-.346.79c0 .34.115.625.346.855.23.23.516.346.856.346.34 0 .62-.115.839-.346zm4.337 9.314.033-1.332c.128.269.324.518.59.747l.098.081a3.727 3.727 0 0 0 .316.224l.223.122a3.21 3.21 0 0 0 1.44.322 3.785 3.785 0 0 0 1.875-.477 3.52 3.52 0 0 0 1.382-1.366c.352-.593.526-1.29.526-2.09 0-.79-.147-1.48-.444-2.073a3.235 3.235 0 0 0-1.283-1.399c-.549-.34-1.195-.51-1.942-.51a3.476 3.476 0 0 0-1.527.344l-.086.043-.165.09a3.412 3.412 0 0 0-.33.214c-.288.21-.507.446-.656.707a1.893 1.893 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.482 2.482 0 0 0 .566.7c.078.065.159.125.245.18l.144.08a2.105 2.105 0 0 0 .975.232c.713 0 1.262-.225 1.645-.675.384-.46.576-1.053.576-1.778 0-.734-.192-1.327-.576-1.777-.373-.46-.921-.692-1.645-.692a2.18 2.18 0 0 0-1.015.235c-.147.075-.285.17-.415.282l-.15.142a2.086 2.086 0 0 0-.42.594c-.149.32-.223.685-.223 1.1v.115c0 .47.097.89.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.868.868 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.13 1.13 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013c.23-.087.472-.134.724-.14l.069-.002c.329 0 .542.033.642.099l.247-1.794c-.13-.066-.37-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2.086 2.086 0 0 0-.411.148 2.18 2.18 0 0 0-.4.249 2.482 2.482 0 0 0-.485.499 2.659 2.659 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884c0-.364.053-.678.159-.943a1.49 1.49 0 0 1 .466-.636 2.52 2.52 0 0 1 .399-.253 2.19 2.19 0 0 1 .224-.099zm9.784 2.656.05-.922c0-1.162-.285-2.062-.856-2.698-.559-.647-1.42-.97-2.584-.97-.746 0-1.415.163-2.007.493a3.462 3.462 0 0 0-1.4 1.382c-.329.604-.493 1.306-.493 2.106 0 .714.143 1.371.428 1.975.285.593.73 1.07 1.332 1.432.604.351 1.355.526 2.255.526.649 0 1.204-.062 1.668-.185l.044-.012.135-.04c.409-.122.736-.263.984-.421l-.542-1.267c-.2.108-.415.199-.642.274l-.297.087c-.34.088-.773.131-1.3.131-.636 0-1.135-.147-1.497-.444a1.573 1.573 0 0 1-.192-.193c-.244-.294-.415-.705-.512-1.234l-.004-.021h5.43zm-5.427-1.256-.003.022h3.752v-.138c-.007-.485-.104-.857-.288-1.118a1.056 1.056 0 0 0-.156-.176c-.307-.285-.746-.428-1.316-.428-.657 0-1.155.202-1.494.604-.253.3-.417.712-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81c-.68 0-1.311-.16-1.893-.478a3.795 3.795 0 0 1-1.381-1.382c-.34-.604-.51-1.306-.51-2.106 0-.79.147-1.482.444-2.074a3.364 3.364 0 0 1 1.3-1.382c.559-.33 1.217-.494 1.974-.494a3.293 3.293 0 0 1 1.234.231 3.341 3.341 0 0 1 .97.575c.264.22.44.439.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332c-.186.395-.526.746-1.02 1.053a3.167 3.167 0 0 1-1.662.444zm.296-1.482c.626 0 1.152-.214 1.58-.642.428-.44.642-1.01.642-1.711v-.115c0-.472-.098-.894-.296-1.267a2.211 2.211 0 0 0-.807-.872 2.098 2.098 0 0 0-1.119-.313c-.702 0-1.245.231-1.629.692-.384.45-.575 1.037-.575 1.76 0 .736.186 1.333.559 1.795.384.45.933.675 1.645.675zm6.521-6.237h1.711v1.4c.604-1.065 1.547-1.597 2.83-1.597 1.064 0 1.926.34 2.584 1.02.659.67.988 1.641.988 2.914 0 .79-.164 1.487-.493 2.09a3.456 3.456 0 0 1-1.316 1.399 3.51 3.51 0 0 1-1.844.493c-.636 0-1.19-.11-1.662-.329a2.665 2.665 0 0 1-1.086-.97l.017 5.134h-1.728V9.242zm4.048 6.22c.714 0 1.262-.224 1.645-.674.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.395 0-.768.098-1.12.296-.34.187-.613.46-.822.823-.197.351-.296.763-.296 1.234v.115c0 .472.098.894.296 1.267.209.362.483.647.823.855.34.197.713.297 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.159 1.159 0 0 1-.856-.346 1.165 1.165 0 0 1-.346-.856 1.053 1.053 0 0 1 .346-.79c.23-.219.516-.329.856-.329.329 0 .609.11.839.33a1.053 1.053 0 0 1 .345.79 1.159 1.159 0 0 1-.345.855c-.22.23-.5.346-.84.346zm7.875 9.133a3.167 3.167 0 0 1-1.662-.444c-.482-.307-.817-.658-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283c.186-.438.548-.812 1.086-1.119a3.486 3.486 0 0 1 1.778-.477c.746 0 1.393.17 1.942.51a3.235 3.235 0 0 1 1.283 1.4c.297.592.444 1.282.444 2.072 0 .8-.175 1.498-.526 2.09a3.52 3.52 0 0 1-1.382 1.366 3.785 3.785 0 0 1-1.876.477zm-.296-1.481c.713 0 1.26-.225 1.645-.675.384-.46.577-1.053.577-1.778 0-.734-.193-1.327-.577-1.776-.373-.46-.921-.692-1.645-.692a2.115 2.115 0 0 0-1.58.659c-.428.428-.642.992-.642 1.694v.115c0 .473.098.895.296 1.267a2.385 2.385 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481c.176-.505.46-.91.856-1.217a2.14 2.14 0 0 1 1.349-.46c.351 0 .593.032.724.098l-.247 1.794c-.099-.066-.313-.099-.642-.099-.516 0-.988.164-1.416.494-.417.329-.626.855-.626 1.58v3.883h-1.777V9.242zm9.534 7.718c-.9 0-1.651-.175-2.255-.526-.603-.362-1.047-.84-1.332-1.432a4.567 4.567 0 0 1-.428-1.975c0-.8.164-1.502.493-2.106a3.462 3.462 0 0 1 1.4-1.382c.592-.33 1.262-.494 2.007-.494 1.163 0 2.024.324 2.584.97.57.637.856 1.537.856 2.7 0 .296-.017.603-.05.92h-5.43c.12.67.356 1.153.708 1.45.362.296.86.443 1.497.443.526 0 .96-.044 1.3-.131a4.123 4.123 0 0 0 .938-.362l.542 1.267c-.274.175-.647.329-1.119.46-.472.132-1.042.197-1.711.197zm1.596-4.558c.01-.68-.137-1.158-.444-1.432-.307-.285-.746-.428-1.316-.428-1.152 0-1.815.62-1.991 1.86h3.752z'/%3E%3Cg fill-rule='evenodd' stroke-width='1.036'%3E%3Cpath fill='%23000' fill-opacity='.4' d='m8.166 16.146-.002.002a1.54 1.54 0 0 1-2.009 0l-.002-.002-.043-.034-.002-.002-.199-.162H4.377a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659H8.411l-.202.164zm-1.121-.905a.29.29 0 0 0 .113.023.286.286 0 0 0 .189-.07l.077-.063c.634-.508 4.672-3.743 4.672-7.575 0-2.55-2.215-4.625-4.938-4.625S2.221 5.006 2.221 7.556c0 3.225 2.86 6.027 4.144 7.137h.004l.04.038.484.4.077.063a.628.628 0 0 0 .074.047zm-2.52-.548a16.898 16.898 0 0 1-1.183-1.315C2.187 11.942.967 9.897.967 7.555c0-3.319 2.855-5.88 6.192-5.88 3.338 0 6.193 2.561 6.193 5.881 0 2.34-1.22 4.387-2.376 5.822a16.898 16.898 0 0 1-1.182 1.315h.15a1.912 1.912 0 0 1 1.914 1.914v1.84a1.912 1.912 0 0 1-1.914 1.914H4.377a1.912 1.912 0 0 1-1.914-1.914v-1.84a1.912 1.912 0 0 1 1.914-1.914zm3.82-6.935c0 .692-.55 1.222-1.187 1.222s-1.185-.529-1.185-1.222.548-1.222 1.185-1.222c.638 0 1.186.529 1.186 1.222zm-1.186 2.477c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477zm2.048 7.71H5.114v-.838h4.093z'/%3E%3Cpath fill='%23e1e3e9' d='M2.222 7.555c0-2.55 2.214-4.625 4.937-4.625 2.723 0 4.938 2.075 4.938 4.625 0 3.832-4.038 7.068-4.672 7.575l-.077.063a.286.286 0 0 1-.189.07.286.286 0 0 1-.188-.07l-.077-.063c-.634-.507-4.672-3.743-4.672-7.575zm4.937 2.68c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477z'/%3E%3Cpath fill='%23fff' d='M4.377 15.948a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659zm4.83 1.16H5.114v.838h4.093z'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (-ms-high-contrast:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.255 1.255 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.255 1.255 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5.11 5.11 0 0 1 .314-.787l.009-.016a4.623 4.623 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.548 4.548 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4.314.319.566.676.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.416 2.416 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.448 2.448 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675c.211.2.381.43.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.76 4.76 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.407 3.407 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.255 1.255 0 0 1 .689 1.004 4.73 4.73 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528 0 .343-.02.694-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.815 5.815 0 0 1-.548-2.512c0-.286.017-.567.053-.843a1.255 1.255 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.778 4.778 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.47 4.47 0 0 1-1.935-.424 1.252 1.252 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.402 2.402 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.703 4.703 0 0 1-1.782 1.884 4.767 4.767 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.47 4.47 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a4.983 4.983 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.255 1.255 0 0 1-1.115.676h-.098a1.255 1.255 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15c.329-.237.574-.499.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267c-.088-.22-.264-.438-.526-.658l-.032-.028a3.16 3.16 0 0 0-.668-.428l-.27-.12a3.293 3.293 0 0 0-1.235-.23c-.757 0-1.415.163-1.974.493a3.36 3.36 0 0 0-1.3 1.382c-.297.593-.444 1.284-.444 2.074 0 .8.17 1.503.51 2.107a3.795 3.795 0 0 0 1.382 1.381 3.883 3.883 0 0 0 1.893.477c.53 0 1.015-.11 1.455-.33zm-2.789-5.38c-.384.45-.575 1.038-.575 1.762 0 .735.186 1.332.559 1.794.384.45.933.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.17 2.17 0 0 0 .468-.29l.178-.161a2.163 2.163 0 0 0 .397-.561c.163-.333.244-.717.244-1.15v-.115c0-.472-.098-.894-.296-1.267l-.043-.077a2.211 2.211 0 0 0-.633-.709l-.13-.086-.047-.028a2.099 2.099 0 0 0-1.073-.285c-.702 0-1.244.231-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.958.958 0 0 0-.353-.389.851.851 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.626 2.626 0 0 0 .331.423c.213.22.464.402.755.548l.173.074c.433.17.93.255 1.49.255.68 0 1.295-.165 1.844-.493a3.447 3.447 0 0 0 1.316-1.4c.329-.603.493-1.299.493-2.089 0-1.273-.33-2.243-.988-2.913-.658-.68-1.52-1.02-2.584-1.02-.598 0-1.124.115-1.575.347a2.807 2.807 0 0 0-.415.262l-.199.166a3.35 3.35 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138c.137.193.297.36.48.5l.155.11.053.034c.34.197.713.297 1.119.297.714 0 1.262-.225 1.645-.675.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.29 0-.569.053-.835.16a2.366 2.366 0 0 0-.284.136 1.99 1.99 0 0 0-.363.254 2.237 2.237 0 0 0-.46.569l-.082.162a2.56 2.56 0 0 0-.213 1.072v.115c0 .471.098.894.296 1.267l.135.211zm.964-.818a1.11 1.11 0 0 0 .367.385.937.937 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a.995.995 0 0 0-.503.135l-.012.007a.859.859 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.43 1.43 0 0 0 .14.66zm15.7-6.222c.232-.23.346-.516.346-.856a1.053 1.053 0 0 0-.345-.79 1.175 1.175 0 0 0-.84-.329c-.34 0-.625.11-.855.33a1.053 1.053 0 0 0-.346.79c0 .34.115.625.346.855.23.23.516.346.856.346.34 0 .62-.115.839-.346zm4.337 9.314.033-1.332c.128.269.324.518.59.747l.098.081a3.727 3.727 0 0 0 .316.224l.223.122a3.21 3.21 0 0 0 1.44.322 3.785 3.785 0 0 0 1.875-.477 3.52 3.52 0 0 0 1.382-1.366c.352-.593.526-1.29.526-2.09 0-.79-.147-1.48-.444-2.073a3.235 3.235 0 0 0-1.283-1.399c-.549-.34-1.195-.51-1.942-.51a3.476 3.476 0 0 0-1.527.344l-.086.043-.165.09a3.412 3.412 0 0 0-.33.214c-.288.21-.507.446-.656.707a1.893 1.893 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.482 2.482 0 0 0 .566.7c.078.065.159.125.245.18l.144.08a2.105 2.105 0 0 0 .975.232c.713 0 1.262-.225 1.645-.675.384-.46.576-1.053.576-1.778 0-.734-.192-1.327-.576-1.777-.373-.46-.921-.692-1.645-.692a2.18 2.18 0 0 0-1.015.235c-.147.075-.285.17-.415.282l-.15.142a2.086 2.086 0 0 0-.42.594c-.149.32-.223.685-.223 1.1v.115c0 .47.097.89.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.868.868 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.13 1.13 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013c.23-.087.472-.134.724-.14l.069-.002c.329 0 .542.033.642.099l.247-1.794c-.13-.066-.37-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2.086 2.086 0 0 0-.411.148 2.18 2.18 0 0 0-.4.249 2.482 2.482 0 0 0-.485.499 2.659 2.659 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884c0-.364.053-.678.159-.943a1.49 1.49 0 0 1 .466-.636 2.52 2.52 0 0 1 .399-.253 2.19 2.19 0 0 1 .224-.099zm9.784 2.656.05-.922c0-1.162-.285-2.062-.856-2.698-.559-.647-1.42-.97-2.584-.97-.746 0-1.415.163-2.007.493a3.462 3.462 0 0 0-1.4 1.382c-.329.604-.493 1.306-.493 2.106 0 .714.143 1.371.428 1.975.285.593.73 1.07 1.332 1.432.604.351 1.355.526 2.255.526.649 0 1.204-.062 1.668-.185l.044-.012.135-.04c.409-.122.736-.263.984-.421l-.542-1.267c-.2.108-.415.199-.642.274l-.297.087c-.34.088-.773.131-1.3.131-.636 0-1.135-.147-1.497-.444a1.573 1.573 0 0 1-.192-.193c-.244-.294-.415-.705-.512-1.234l-.004-.021h5.43zm-5.427-1.256-.003.022h3.752v-.138c-.007-.485-.104-.857-.288-1.118a1.056 1.056 0 0 0-.156-.176c-.307-.285-.746-.428-1.316-.428-.657 0-1.155.202-1.494.604-.253.3-.417.712-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81c-.68 0-1.311-.16-1.893-.478a3.795 3.795 0 0 1-1.381-1.382c-.34-.604-.51-1.306-.51-2.106 0-.79.147-1.482.444-2.074a3.364 3.364 0 0 1 1.3-1.382c.559-.33 1.217-.494 1.974-.494a3.293 3.293 0 0 1 1.234.231 3.341 3.341 0 0 1 .97.575c.264.22.44.439.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332c-.186.395-.526.746-1.02 1.053a3.167 3.167 0 0 1-1.662.444zm.296-1.482c.626 0 1.152-.214 1.58-.642.428-.44.642-1.01.642-1.711v-.115c0-.472-.098-.894-.296-1.267a2.211 2.211 0 0 0-.807-.872 2.098 2.098 0 0 0-1.119-.313c-.702 0-1.245.231-1.629.692-.384.45-.575 1.037-.575 1.76 0 .736.186 1.333.559 1.795.384.45.933.675 1.645.675zm6.521-6.237h1.711v1.4c.604-1.065 1.547-1.597 2.83-1.597 1.064 0 1.926.34 2.584 1.02.659.67.988 1.641.988 2.914 0 .79-.164 1.487-.493 2.09a3.456 3.456 0 0 1-1.316 1.399 3.51 3.51 0 0 1-1.844.493c-.636 0-1.19-.11-1.662-.329a2.665 2.665 0 0 1-1.086-.97l.017 5.134h-1.728V9.242zm4.048 6.22c.714 0 1.262-.224 1.645-.674.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.395 0-.768.098-1.12.296-.34.187-.613.46-.822.823-.197.351-.296.763-.296 1.234v.115c0 .472.098.894.296 1.267.209.362.483.647.823.855.34.197.713.297 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.159 1.159 0 0 1-.856-.346 1.165 1.165 0 0 1-.346-.856 1.053 1.053 0 0 1 .346-.79c.23-.219.516-.329.856-.329.329 0 .609.11.839.33a1.053 1.053 0 0 1 .345.79 1.159 1.159 0 0 1-.345.855c-.22.23-.5.346-.84.346zm7.875 9.133a3.167 3.167 0 0 1-1.662-.444c-.482-.307-.817-.658-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283c.186-.438.548-.812 1.086-1.119a3.486 3.486 0 0 1 1.778-.477c.746 0 1.393.17 1.942.51a3.235 3.235 0 0 1 1.283 1.4c.297.592.444 1.282.444 2.072 0 .8-.175 1.498-.526 2.09a3.52 3.52 0 0 1-1.382 1.366 3.785 3.785 0 0 1-1.876.477zm-.296-1.481c.713 0 1.26-.225 1.645-.675.384-.46.577-1.053.577-1.778 0-.734-.193-1.327-.577-1.776-.373-.46-.921-.692-1.645-.692a2.115 2.115 0 0 0-1.58.659c-.428.428-.642.992-.642 1.694v.115c0 .473.098.895.296 1.267a2.385 2.385 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481c.176-.505.46-.91.856-1.217a2.14 2.14 0 0 1 1.349-.46c.351 0 .593.032.724.098l-.247 1.794c-.099-.066-.313-.099-.642-.099-.516 0-.988.164-1.416.494-.417.329-.626.855-.626 1.58v3.883h-1.777V9.242zm9.534 7.718c-.9 0-1.651-.175-2.255-.526-.603-.362-1.047-.84-1.332-1.432a4.567 4.567 0 0 1-.428-1.975c0-.8.164-1.502.493-2.106a3.462 3.462 0 0 1 1.4-1.382c.592-.33 1.262-.494 2.007-.494 1.163 0 2.024.324 2.584.97.57.637.856 1.537.856 2.7 0 .296-.017.603-.05.92h-5.43c.12.67.356 1.153.708 1.45.362.296.86.443 1.497.443.526 0 .96-.044 1.3-.131a4.123 4.123 0 0 0 .938-.362l.542 1.267c-.274.175-.647.329-1.119.46-.472.132-1.042.197-1.711.197zm1.596-4.558c.01-.68-.137-1.158-.444-1.432-.307-.285-.746-.428-1.316-.428-1.152 0-1.815.62-1.991 1.86h3.752z'/%3E%3Cg fill-rule='evenodd' stroke-width='1.036'%3E%3Cpath fill='%23000' fill-opacity='.4' d='m8.166 16.146-.002.002a1.54 1.54 0 0 1-2.009 0l-.002-.002-.043-.034-.002-.002-.199-.162H4.377a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659H8.411l-.202.164zm-1.121-.905a.29.29 0 0 0 .113.023.286.286 0 0 0 .189-.07l.077-.063c.634-.508 4.672-3.743 4.672-7.575 0-2.55-2.215-4.625-4.938-4.625S2.221 5.006 2.221 7.556c0 3.225 2.86 6.027 4.144 7.137h.004l.04.038.484.4.077.063a.628.628 0 0 0 .074.047zm-2.52-.548a16.898 16.898 0 0 1-1.183-1.315C2.187 11.942.967 9.897.967 7.555c0-3.319 2.855-5.88 6.192-5.88 3.338 0 6.193 2.561 6.193 5.881 0 2.34-1.22 4.387-2.376 5.822a16.898 16.898 0 0 1-1.182 1.315h.15a1.912 1.912 0 0 1 1.914 1.914v1.84a1.912 1.912 0 0 1-1.914 1.914H4.377a1.912 1.912 0 0 1-1.914-1.914v-1.84a1.912 1.912 0 0 1 1.914-1.914zm3.82-6.935c0 .692-.55 1.222-1.187 1.222s-1.185-.529-1.185-1.222.548-1.222 1.185-1.222c.638 0 1.186.529 1.186 1.222zm-1.186 2.477c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477zm2.048 7.71H5.114v-.838h4.093z'/%3E%3Cpath fill='%23e1e3e9' d='M2.222 7.555c0-2.55 2.214-4.625 4.937-4.625 2.723 0 4.938 2.075 4.938 4.625 0 3.832-4.038 7.068-4.672 7.575l-.077.063a.286.286 0 0 1-.189.07.286.286 0 0 1-.188-.07l-.077-.063c-.634-.507-4.672-3.743-4.672-7.575zm4.937 2.68c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477z'/%3E%3Cpath fill='%23fff' d='M4.377 15.948a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659zm4.83 1.16H5.114v.838h4.093z'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.255 1.255 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.255 1.255 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5.11 5.11 0 0 1 .314-.787l.009-.016a4.623 4.623 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.548 4.548 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4.314.319.566.676.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.416 2.416 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.448 2.448 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675c.211.2.381.43.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.76 4.76 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.407 3.407 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.255 1.255 0 0 1 .689 1.004 4.73 4.73 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528 0 .343-.02.694-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.815 5.815 0 0 1-.548-2.512c0-.286.017-.567.053-.843a1.255 1.255 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.778 4.778 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.47 4.47 0 0 1-1.935-.424 1.252 1.252 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.402 2.402 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.703 4.703 0 0 1-1.782 1.884 4.767 4.767 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.47 4.47 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a4.983 4.983 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.255 1.255 0 0 1-1.115.676h-.098a1.255 1.255 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15c.329-.237.574-.499.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267c-.088-.22-.264-.438-.526-.658l-.032-.028a3.16 3.16 0 0 0-.668-.428l-.27-.12a3.293 3.293 0 0 0-1.235-.23c-.757 0-1.415.163-1.974.493a3.36 3.36 0 0 0-1.3 1.382c-.297.593-.444 1.284-.444 2.074 0 .8.17 1.503.51 2.107a3.795 3.795 0 0 0 1.382 1.381 3.883 3.883 0 0 0 1.893.477c.53 0 1.015-.11 1.455-.33zm-2.789-5.38c-.384.45-.575 1.038-.575 1.762 0 .735.186 1.332.559 1.794.384.45.933.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.17 2.17 0 0 0 .468-.29l.178-.161a2.163 2.163 0 0 0 .397-.561c.163-.333.244-.717.244-1.15v-.115c0-.472-.098-.894-.296-1.267l-.043-.077a2.211 2.211 0 0 0-.633-.709l-.13-.086-.047-.028a2.099 2.099 0 0 0-1.073-.285c-.702 0-1.244.231-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.958.958 0 0 0-.353-.389.851.851 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.626 2.626 0 0 0 .331.423c.213.22.464.402.755.548l.173.074c.433.17.93.255 1.49.255.68 0 1.295-.165 1.844-.493a3.447 3.447 0 0 0 1.316-1.4c.329-.603.493-1.299.493-2.089 0-1.273-.33-2.243-.988-2.913-.658-.68-1.52-1.02-2.584-1.02-.598 0-1.124.115-1.575.347a2.807 2.807 0 0 0-.415.262l-.199.166a3.35 3.35 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138c.137.193.297.36.48.5l.155.11.053.034c.34.197.713.297 1.119.297.714 0 1.262-.225 1.645-.675.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.29 0-.569.053-.835.16a2.366 2.366 0 0 0-.284.136 1.99 1.99 0 0 0-.363.254 2.237 2.237 0 0 0-.46.569l-.082.162a2.56 2.56 0 0 0-.213 1.072v.115c0 .471.098.894.296 1.267l.135.211zm.964-.818a1.11 1.11 0 0 0 .367.385.937.937 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a.995.995 0 0 0-.503.135l-.012.007a.859.859 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.43 1.43 0 0 0 .14.66zm15.7-6.222c.232-.23.346-.516.346-.856a1.053 1.053 0 0 0-.345-.79 1.175 1.175 0 0 0-.84-.329c-.34 0-.625.11-.855.33a1.053 1.053 0 0 0-.346.79c0 .34.115.625.346.855.23.23.516.346.856.346.34 0 .62-.115.839-.346zm4.337 9.314.033-1.332c.128.269.324.518.59.747l.098.081a3.727 3.727 0 0 0 .316.224l.223.122a3.21 3.21 0 0 0 1.44.322 3.785 3.785 0 0 0 1.875-.477 3.52 3.52 0 0 0 1.382-1.366c.352-.593.526-1.29.526-2.09 0-.79-.147-1.48-.444-2.073a3.235 3.235 0 0 0-1.283-1.399c-.549-.34-1.195-.51-1.942-.51a3.476 3.476 0 0 0-1.527.344l-.086.043-.165.09a3.412 3.412 0 0 0-.33.214c-.288.21-.507.446-.656.707a1.893 1.893 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.482 2.482 0 0 0 .566.7c.078.065.159.125.245.18l.144.08a2.105 2.105 0 0 0 .975.232c.713 0 1.262-.225 1.645-.675.384-.46.576-1.053.576-1.778 0-.734-.192-1.327-.576-1.777-.373-.46-.921-.692-1.645-.692a2.18 2.18 0 0 0-1.015.235c-.147.075-.285.17-.415.282l-.15.142a2.086 2.086 0 0 0-.42.594c-.149.32-.223.685-.223 1.1v.115c0 .47.097.89.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.868.868 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.13 1.13 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013c.23-.087.472-.134.724-.14l.069-.002c.329 0 .542.033.642.099l.247-1.794c-.13-.066-.37-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2.086 2.086 0 0 0-.411.148 2.18 2.18 0 0 0-.4.249 2.482 2.482 0 0 0-.485.499 2.659 2.659 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884c0-.364.053-.678.159-.943a1.49 1.49 0 0 1 .466-.636 2.52 2.52 0 0 1 .399-.253 2.19 2.19 0 0 1 .224-.099zm9.784 2.656.05-.922c0-1.162-.285-2.062-.856-2.698-.559-.647-1.42-.97-2.584-.97-.746 0-1.415.163-2.007.493a3.462 3.462 0 0 0-1.4 1.382c-.329.604-.493 1.306-.493 2.106 0 .714.143 1.371.428 1.975.285.593.73 1.07 1.332 1.432.604.351 1.355.526 2.255.526.649 0 1.204-.062 1.668-.185l.044-.012.135-.04c.409-.122.736-.263.984-.421l-.542-1.267c-.2.108-.415.199-.642.274l-.297.087c-.34.088-.773.131-1.3.131-.636 0-1.135-.147-1.497-.444a1.573 1.573 0 0 1-.192-.193c-.244-.294-.415-.705-.512-1.234l-.004-.021h5.43zm-5.427-1.256-.003.022h3.752v-.138c-.007-.485-.104-.857-.288-1.118a1.056 1.056 0 0 0-.156-.176c-.307-.285-.746-.428-1.316-.428-.657 0-1.155.202-1.494.604-.253.3-.417.712-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81c-.68 0-1.311-.16-1.893-.478a3.795 3.795 0 0 1-1.381-1.382c-.34-.604-.51-1.306-.51-2.106 0-.79.147-1.482.444-2.074a3.364 3.364 0 0 1 1.3-1.382c.559-.33 1.217-.494 1.974-.494a3.293 3.293 0 0 1 1.234.231 3.341 3.341 0 0 1 .97.575c.264.22.44.439.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332c-.186.395-.526.746-1.02 1.053a3.167 3.167 0 0 1-1.662.444zm.296-1.482c.626 0 1.152-.214 1.58-.642.428-.44.642-1.01.642-1.711v-.115c0-.472-.098-.894-.296-1.267a2.211 2.211 0 0 0-.807-.872 2.098 2.098 0 0 0-1.119-.313c-.702 0-1.245.231-1.629.692-.384.45-.575 1.037-.575 1.76 0 .736.186 1.333.559 1.795.384.45.933.675 1.645.675zm6.521-6.237h1.711v1.4c.604-1.065 1.547-1.597 2.83-1.597 1.064 0 1.926.34 2.584 1.02.659.67.988 1.641.988 2.914 0 .79-.164 1.487-.493 2.09a3.456 3.456 0 0 1-1.316 1.399 3.51 3.51 0 0 1-1.844.493c-.636 0-1.19-.11-1.662-.329a2.665 2.665 0 0 1-1.086-.97l.017 5.134h-1.728V9.242zm4.048 6.22c.714 0 1.262-.224 1.645-.674.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.395 0-.768.098-1.12.296-.34.187-.613.46-.822.823-.197.351-.296.763-.296 1.234v.115c0 .472.098.894.296 1.267.209.362.483.647.823.855.34.197.713.297 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.159 1.159 0 0 1-.856-.346 1.165 1.165 0 0 1-.346-.856 1.053 1.053 0 0 1 .346-.79c.23-.219.516-.329.856-.329.329 0 .609.11.839.33a1.053 1.053 0 0 1 .345.79 1.159 1.159 0 0 1-.345.855c-.22.23-.5.346-.84.346zm7.875 9.133a3.167 3.167 0 0 1-1.662-.444c-.482-.307-.817-.658-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283c.186-.438.548-.812 1.086-1.119a3.486 3.486 0 0 1 1.778-.477c.746 0 1.393.17 1.942.51a3.235 3.235 0 0 1 1.283 1.4c.297.592.444 1.282.444 2.072 0 .8-.175 1.498-.526 2.09a3.52 3.52 0 0 1-1.382 1.366 3.785 3.785 0 0 1-1.876.477zm-.296-1.481c.713 0 1.26-.225 1.645-.675.384-.46.577-1.053.577-1.778 0-.734-.193-1.327-.577-1.776-.373-.46-.921-.692-1.645-.692a2.115 2.115 0 0 0-1.58.659c-.428.428-.642.992-.642 1.694v.115c0 .473.098.895.296 1.267a2.385 2.385 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481c.176-.505.46-.91.856-1.217a2.14 2.14 0 0 1 1.349-.46c.351 0 .593.032.724.098l-.247 1.794c-.099-.066-.313-.099-.642-.099-.516 0-.988.164-1.416.494-.417.329-.626.855-.626 1.58v3.883h-1.777V9.242zm9.534 7.718c-.9 0-1.651-.175-2.255-.526-.603-.362-1.047-.84-1.332-1.432a4.567 4.567 0 0 1-.428-1.975c0-.8.164-1.502.493-2.106a3.462 3.462 0 0 1 1.4-1.382c.592-.33 1.262-.494 2.007-.494 1.163 0 2.024.324 2.584.97.57.637.856 1.537.856 2.7 0 .296-.017.603-.05.92h-5.43c.12.67.356 1.153.708 1.45.362.296.86.443 1.497.443.526 0 .96-.044 1.3-.131a4.123 4.123 0 0 0 .938-.362l.542 1.267c-.274.175-.647.329-1.119.46-.472.132-1.042.197-1.711.197zm1.596-4.558c.01-.68-.137-1.158-.444-1.432-.307-.285-.746-.428-1.316-.428-1.152 0-1.815.62-1.991 1.86h3.752z'/%3E%3Cg fill-rule='evenodd' stroke-width='1.036'%3E%3Cpath fill='%23000' fill-opacity='.4' d='m8.166 16.146-.002.002a1.54 1.54 0 0 1-2.009 0l-.002-.002-.043-.034-.002-.002-.199-.162H4.377a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659H8.411l-.202.164zm-1.121-.905a.29.29 0 0 0 .113.023.286.286 0 0 0 .189-.07l.077-.063c.634-.508 4.672-3.743 4.672-7.575 0-2.55-2.215-4.625-4.938-4.625S2.221 5.006 2.221 7.556c0 3.225 2.86 6.027 4.144 7.137h.004l.04.038.484.4.077.063a.628.628 0 0 0 .074.047zm-2.52-.548a16.898 16.898 0 0 1-1.183-1.315C2.187 11.942.967 9.897.967 7.555c0-3.319 2.855-5.88 6.192-5.88 3.338 0 6.193 2.561 6.193 5.881 0 2.34-1.22 4.387-2.376 5.822a16.898 16.898 0 0 1-1.182 1.315h.15a1.912 1.912 0 0 1 1.914 1.914v1.84a1.912 1.912 0 0 1-1.914 1.914H4.377a1.912 1.912 0 0 1-1.914-1.914v-1.84a1.912 1.912 0 0 1 1.914-1.914zm3.82-6.935c0 .692-.55 1.222-1.187 1.222s-1.185-.529-1.185-1.222.548-1.222 1.185-1.222c.638 0 1.186.529 1.186 1.222zm-1.186 2.477c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477zm2.048 7.71H5.114v-.838h4.093z'/%3E%3Cpath fill='%23e1e3e9' d='M2.222 7.555c0-2.55 2.214-4.625 4.937-4.625 2.723 0 4.938 2.075 4.938 4.625 0 3.832-4.038 7.068-4.672 7.575l-.077.063a.286.286 0 0 1-.189.07.286.286 0 0 1-.188-.07l-.077-.063c-.634-.507-4.672-3.743-4.672-7.575zm4.937 2.68c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477z'/%3E%3Cpath fill='%23fff' d='M4.377 15.948a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659zm4.83 1.16H5.114v.838h4.093z'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;-webkit-box-sizing:content-box;box-sizing:content-box;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;-webkit-box-sizing:border-box;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:-webkit-box;display:-ms-flexbox;display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.maplibregl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.maplibregl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{-ms-flex-item-align:start;align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{-ms-flex-item-align:end;align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{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:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{-webkit-animation:maplibregl-user-location-dot-pulse 2s infinite;animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35);-webkit-box-sizing:border-box;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@-webkit-keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}70%{opacity:0;-webkit-transform:scale(3);transform:scale(3)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}70%{opacity:0;-webkit-transform:scale(3);transform:scale(3)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:rgba(0,0,0,.4);color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:1.4em;inset:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;-webkit-transition:opacity 1s ease 1s;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;-webkit-transition:opacity .05s;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`),window.maplibregl=Jw();var kO=0,c9=(FI=(0,fa.b2)(),FI(H5=function(a){(0,At.Z)(c,a);var g=PO(c);function c(){var u;(0,Bt.Z)(this,c);for(var l=arguments.length,m=new Array(l),A=0;A1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},A=this.lngLatToMercator(l,0),j=A.x,Y=A.y;return[j-m.x,Y-m.y]}},{key:"lngLatToMercator",value:function(l,m){var A=window.maplibregl.MercatorCoordinate.fromLngLat(l,m),j=A.x,Y=j===void 0?0:j,le=A.y,$e=le===void 0?0:le,Ye=A.z,Nt=Ye===void 0?0:Ye;return{x:Y,y:$e,z:Nt}}},{key:"getModelMatrix",value:function(l,m,A){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},le=window.maplibregl.MercatorCoordinate.fromLngLat(l,m),$e=le.meterInMercatorCoordinateUnits(),Ye=Ku();return Km(Ye,Ye,Nm(le.x-Y.x,le.y-Y.y,le.z||0-Y.z)),Dg(Ye,Ye,Nm($e*j[0],-$e*j[1],$e*j[2])),jm(Ye,Ye,A[0]),Os(Ye,Ye,A[1]),fv(Ye,Ye,A[2]),Ye}},{key:"init",value:function(){var u=(0,pl.Z)(Zi().mark(function m(){var A=this,j,Y,le,$e,Ye,Nt,qt,jn,Qn,Ir,ki;return Zi().wrap(function(Wo){for(;;)switch(Wo.prev=Wo.next){case 0:j=this.config,Y=j.id,le=Y===void 0?"map":Y,$e=j.attributionControl,Ye=$e===void 0?!1:$e,Nt=j.style,qt=Nt===void 0?"light":Nt,jn=j.rotation,Qn=jn===void 0?0:jn,Ir=j.mapInstance,ki=(0,gv.Z)(j,LO),this.viewport=new o9,!Ir&&!window.maplibregl&&console.error(this.configService.getSceneWarninfo("SDK")),Ir?(this.map=Ir,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(le),this.map=new window.maplibregl.Map((0,Ne.Z)({container:this.$mapContainer,style:this.getMapStyleValue(qt),attributionControl:Ye,bearing:Qn},ki))),this.map.on("load",function(){A.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 7:case"end":return Wo.stop()}},m,this)}));function l(){return u.apply(this,arguments)}return l}()},{key:"destroy",value:function(){var l,m;(l=this.$mapContainer)===null||l===void 0||(m=l.parentNode)===null||m===void 0||m.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(l){for(var m,A=arguments.length,j=new Array(A>1?A-1:0),Y=1;Y1?A-1:0),Y=1;Y3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Y=this.viewport.projectFlat(l),le=Ku();return Km(le,le,Nm(Y[0],Y[1],m)),Dg(le,le,Nm(j[0],j[1],j[2])),jm(le,le,A[0]),Os(le,le,A[1]),fv(le,le,A[2]),le}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"exportMap",value:function(l){var m=this.getMapCanvasContainer(),A=l==="jpg"?m==null?void 0:m.toDataURL("image/jpeg"):m==null?void 0:m.toDataURL("image/png");return A}},{key:"rotateY",value:function(){throw new Error("Method not implemented.")}},{key:"hideLogo",value:function(){var l=this.map.getContainer();l&&Za(l,"tmap-contianer--hide-logo")}}]),c}(pT);function g9(a){var g=m9();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function m9(){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 v9=function(a){(0,At.Z)(c,a);var g=g9(c);function c(){return(0,Bt.Z)(this,c),g.apply(this,arguments)}return(0,lt.Z)(c,[{key:"getServiceConstructor",value:function(){return p9}}]),c}(Hx),y9=_(96377),lZ=_.n(y9),uZ=function(){function a(g,c){(0,Bt.Z)(this,a);var u=c.buffer,l=c.offset,m=c.stride,A=c.normalized,j=c.size,Y=c.divisor;this.buffer=u,this.attribute={buffer:u.get(),offset:l||0,stride:m||0,normalized:A||!1,divisor:Y||0},j&&(this.attribute.size=j)}return(0,lt.Z)(a,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(c){this.buffer.subData(c)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),a}(),t2,n2,r2,Ob,TT,bS,VI,X5,i2,Qw,$1,Yy,S1,eC,qy=(t2={},(0,Xn.Z)(t2,ho.POINTS,"points"),(0,Xn.Z)(t2,ho.LINES,"lines"),(0,Xn.Z)(t2,ho.LINE_LOOP,"line loop"),(0,Xn.Z)(t2,ho.LINE_STRIP,"line strip"),(0,Xn.Z)(t2,ho.TRIANGLES,"triangles"),(0,Xn.Z)(t2,ho.TRIANGLE_FAN,"triangle fan"),(0,Xn.Z)(t2,ho.TRIANGLE_STRIP,"triangle strip"),t2),BO=(n2={},(0,Xn.Z)(n2,ho.STATIC_DRAW,"static"),(0,Xn.Z)(n2,ho.DYNAMIC_DRAW,"dynamic"),(0,Xn.Z)(n2,ho.STREAM_DRAW,"stream"),n2),Q_=(r2={},(0,Xn.Z)(r2,ho.BYTE,"int8"),(0,Xn.Z)(r2,ho.INT,"int32"),(0,Xn.Z)(r2,ho.UNSIGNED_BYTE,"uint8"),(0,Xn.Z)(r2,ho.UNSIGNED_SHORT,"uint16"),(0,Xn.Z)(r2,ho.UNSIGNED_INT,"uint32"),(0,Xn.Z)(r2,ho.FLOAT,"float"),r2),qA=(Ob={},(0,Xn.Z)(Ob,ho.ALPHA,"alpha"),(0,Xn.Z)(Ob,ho.LUMINANCE,"luminance"),(0,Xn.Z)(Ob,ho.LUMINANCE_ALPHA,"luminance alpha"),(0,Xn.Z)(Ob,ho.RGB,"rgb"),(0,Xn.Z)(Ob,ho.RGBA,"rgba"),(0,Xn.Z)(Ob,ho.RGBA4,"rgba4"),(0,Xn.Z)(Ob,ho.RGB5_A1,"rgb5 a1"),(0,Xn.Z)(Ob,ho.RGB565,"rgb565"),(0,Xn.Z)(Ob,ho.DEPTH_COMPONENT,"depth"),(0,Xn.Z)(Ob,ho.DEPTH_STENCIL,"depth stencil"),Ob),zO=(TT={},(0,Xn.Z)(TT,ho.DONT_CARE,"dont care"),(0,Xn.Z)(TT,ho.NICEST,"nice"),(0,Xn.Z)(TT,ho.FASTEST,"fast"),TT),dx=(bS={},(0,Xn.Z)(bS,ho.NEAREST,"nearest"),(0,Xn.Z)(bS,ho.LINEAR,"linear"),(0,Xn.Z)(bS,ho.LINEAR_MIPMAP_LINEAR,"mipmap"),(0,Xn.Z)(bS,ho.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),(0,Xn.Z)(bS,ho.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),(0,Xn.Z)(bS,ho.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),bS),JA=(VI={},(0,Xn.Z)(VI,ho.REPEAT,"repeat"),(0,Xn.Z)(VI,ho.CLAMP_TO_EDGE,"clamp"),(0,Xn.Z)(VI,ho.MIRRORED_REPEAT,"mirror"),VI),_9=(X5={},(0,Xn.Z)(X5,ho.NONE,"none"),(0,Xn.Z)(X5,ho.BROWSER_DEFAULT_WEBGL,"browser"),X5),jI=(i2={},(0,Xn.Z)(i2,ho.NEVER,"never"),(0,Xn.Z)(i2,ho.ALWAYS,"always"),(0,Xn.Z)(i2,ho.LESS,"less"),(0,Xn.Z)(i2,ho.LEQUAL,"lequal"),(0,Xn.Z)(i2,ho.GREATER,"greater"),(0,Xn.Z)(i2,ho.GEQUAL,"gequal"),(0,Xn.Z)(i2,ho.EQUAL,"equal"),(0,Xn.Z)(i2,ho.NOTEQUAL,"notequal"),i2),tC=(Qw={},(0,Xn.Z)(Qw,ho.FUNC_ADD,"add"),(0,Xn.Z)(Qw,ho.MIN_EXT,"min"),(0,Xn.Z)(Qw,ho.MAX_EXT,"max"),(0,Xn.Z)(Qw,ho.FUNC_SUBTRACT,"subtract"),(0,Xn.Z)(Qw,ho.FUNC_REVERSE_SUBTRACT,"reverse subtract"),Qw),Y5=($1={},(0,Xn.Z)($1,ho.ZERO,"zero"),(0,Xn.Z)($1,ho.ONE,"one"),(0,Xn.Z)($1,ho.SRC_COLOR,"src color"),(0,Xn.Z)($1,ho.ONE_MINUS_SRC_COLOR,"one minus src color"),(0,Xn.Z)($1,ho.SRC_ALPHA,"src alpha"),(0,Xn.Z)($1,ho.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),(0,Xn.Z)($1,ho.DST_COLOR,"dst color"),(0,Xn.Z)($1,ho.ONE_MINUS_DST_COLOR,"one minus dst color"),(0,Xn.Z)($1,ho.DST_ALPHA,"dst alpha"),(0,Xn.Z)($1,ho.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),(0,Xn.Z)($1,ho.CONSTANT_COLOR,"constant color"),(0,Xn.Z)($1,ho.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),(0,Xn.Z)($1,ho.CONSTANT_ALPHA,"constant alpha"),(0,Xn.Z)($1,ho.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),(0,Xn.Z)($1,ho.SRC_ALPHA_SATURATE,"src alpha saturate"),$1),cZ=(Yy={},(0,Xn.Z)(Yy,ho.NEVER,"never"),(0,Xn.Z)(Yy,ho.ALWAYS,"always"),(0,Xn.Z)(Yy,ho.LESS,"less"),(0,Xn.Z)(Yy,ho.LEQUAL,"lequal"),(0,Xn.Z)(Yy,ho.GREATER,"greater"),(0,Xn.Z)(Yy,ho.GEQUAL,"gequal"),(0,Xn.Z)(Yy,ho.EQUAL,"equal"),(0,Xn.Z)(Yy,ho.NOTEQUAL,"notequal"),Yy),QA=(S1={},(0,Xn.Z)(S1,ho.ZERO,"zero"),(0,Xn.Z)(S1,ho.KEEP,"keep"),(0,Xn.Z)(S1,ho.REPLACE,"replace"),(0,Xn.Z)(S1,ho.INVERT,"invert"),(0,Xn.Z)(S1,ho.INCR,"increment"),(0,Xn.Z)(S1,ho.DECR,"decrement"),(0,Xn.Z)(S1,ho.INCR_WRAP,"increment wrap"),(0,Xn.Z)(S1,ho.DECR_WRAP,"decrement wrap"),S1),hZ=(eC={},(0,Xn.Z)(eC,ho.FRONT,"front"),(0,Xn.Z)(eC,ho.BACK,"back"),eC),b9=function(){function a(g,c){(0,Bt.Z)(this,a),(0,Xn.Z)(this,"isDestroyed",!1);var u=c.data,l=c.usage,m=c.type;this.buffer=g.buffer({data:u,usage:BO[l||ho.STATIC_DRAW],type:Q_[m||ho.UNSIGNED_BYTE]})}return(0,lt.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(c){var u=c.data,l=c.offset;this.buffer.subdata(u,l)}}]),a}(),x9=function(){function a(g,c){(0,Bt.Z)(this,a);var u=c.data,l=c.usage,m=c.type,A=c.count;this.elements=g.elements({data:u,usage:BO[l||ho.STATIC_DRAW],type:Q_[m||ho.UNSIGNED_BYTE],count:A})}return(0,lt.Z)(a,[{key:"get",value:function(){return this.elements}},{key:"subData",value:function(c){var u=c.data;this.elements.subdata(u)}},{key:"destroy",value:function(){}}]),a}(),$O=function(){function a(g,c){(0,Bt.Z)(this,a);var u=c.width,l=c.height,m=c.color,A=c.colors,j={width:u,height:l};Array.isArray(A)&&(j.colors=A.map(function(Y){return Y.get()})),m&&typeof m!="boolean"&&(j.color=m.get()),this.framebuffer=g.framebuffer(j)}return(0,lt.Z)(a,[{key:"get",value:function(){return this.framebuffer}},{key:"destroy",value:function(){this.framebuffer.destroy()}},{key:"resize",value:function(c){var u=c.width,l=c.height;this.framebuffer.resize(u,l)}}]),a}(),VO=Js.isPlainObject,w9=Js.isTypedArray,C9=function(){function a(g,c){(0,Bt.Z)(this,a),(0,Xn.Z)(this,"destroyed",!1),(0,Xn.Z)(this,"uniforms",{}),this.reGl=g;var u=c.vs,l=c.fs,m=c.attributes,A=c.uniforms,j=c.primitive,Y=c.count,le=c.elements,$e=c.depth,Ye=c.cull,Nt=c.instances,qt={};this.options=c,A&&(this.uniforms=this.extractUniforms(A),Object.keys(A).forEach(function(Ir){qt[Ir]=g.prop(Ir)}));var jn={};Object.keys(m).forEach(function(Ir){jn[Ir]=m[Ir].get()});var Qn={attributes:jn,frag:l,uniforms:qt,vert:u,colorMask:g.prop("colorMask"),lineWidth:1,blend:{enable:g.prop("blend.enable"),func:g.prop("blend.func"),equation:g.prop("blend.equation"),color:g.prop("blend.color")},stencil:{enable:g.prop("stencil.enable"),mask:g.prop("stencil.mask"),func:g.prop("stencil.func"),opFront:g.prop("stencil.opFront"),opBack:g.prop("stencil.opBack")},primitive:qy[j===void 0?ho.TRIANGLES:j]};Nt&&(Qn.instances=Nt),Y?Qn.count=Y:le&&(Qn.elements=le.get()),this.initDepthDrawParams({depth:$e},Qn),this.initCullDrawParams({cull:Ye},Qn),this.drawCommand=g(Qn),this.drawParams=Qn}return(0,lt.Z)(a,[{key:"updateAttributesAndElements",value:function(c,u){var l={};Object.keys(c).forEach(function(m){l[m]=c[m].get()}),this.drawParams.attributes=l,this.drawParams.elements=u.get(),this.drawCommand=this.reGl(this.drawParams)}},{key:"updateAttributes",value:function(c){var u={};Object.keys(c).forEach(function(l){u[l]=c[l].get()}),this.drawParams.attributes=u,this.drawCommand=this.reGl(this.drawParams)}},{key:"addUniforms",value:function(c){this.uniforms=(0,Ne.Z)((0,Ne.Z)({},this.uniforms),this.extractUniforms(c))}},{key:"draw",value:function(c,u){if(!(this.drawParams.attributes&&Object.keys(this.drawParams.attributes).length===0)){var l=(0,Ne.Z)((0,Ne.Z)({},this.uniforms),this.extractUniforms(c.uniforms||{})),m={};Object.keys(l).forEach(function(A){var j=(0,Li.Z)(l[A]);j==="boolean"||j==="number"||Array.isArray(l[A])||l[A].BYTES_PER_ELEMENT?m[A]=l[A]:m[A]=l[A].get()}),m.blend=u?this.getBlendDrawParams({blend:{enable:!1}}):this.getBlendDrawParams(c),m.stencil=this.getStencilDrawParams(c),m.colorMask=this.getColorMaskDrawParams(c,u),this.drawCommand(m)}}},{key:"destroy",value:function(){var c,u;(c=this.drawParams)===null||c===void 0||(u=c.elements)===null||u===void 0||u.destroy(),this.options.attributes&&Object.values(this.options.attributes).forEach(function(l){l==null||l.destroy()}),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(c,u){var l=c.depth;l&&(u.depth={enable:l.enable===void 0?!0:!!l.enable,mask:l.mask===void 0?!0:!!l.mask,func:jI[l.func||ho.LESS],range:l.range||[0,1]})}},{key:"getBlendDrawParams",value:function(c){var u=c.blend,l=u||{},m=l.enable,A=l.func,j=l.equation,Y=l.color,le=Y===void 0?[0,0,0,0]:Y;return{enable:!!m,func:{srcRGB:Y5[A&&A.srcRGB||ho.SRC_ALPHA],srcAlpha:Y5[A&&A.srcAlpha||ho.SRC_ALPHA],dstRGB:Y5[A&&A.dstRGB||ho.ONE_MINUS_SRC_ALPHA],dstAlpha:Y5[A&&A.dstAlpha||ho.ONE_MINUS_SRC_ALPHA]},equation:{rgb:tC[j&&j.rgb||ho.FUNC_ADD],alpha:tC[j&&j.alpha||ho.FUNC_ADD]},color:le}}},{key:"getStencilDrawParams",value:function(c){var u=c.stencil,l=u||{},m=l.enable,A=l.mask,j=A===void 0?-1:A,Y=l.func,le=Y===void 0?{cmp:ho.ALWAYS,ref:0,mask:-1}:Y,$e=l.opFront,Ye=$e===void 0?{fail:ho.KEEP,zfail:ho.KEEP,zpass:ho.KEEP}:$e,Nt=l.opBack,qt=Nt===void 0?{fail:ho.KEEP,zfail:ho.KEEP,zpass:ho.KEEP}:Nt;return{enable:!!m,mask:j,func:(0,Ne.Z)((0,Ne.Z)({},le),{},{cmp:cZ[le.cmp]}),opFront:{fail:QA[Ye.fail],zfail:QA[Ye.zfail],zpass:QA[Ye.zpass]},opBack:{fail:QA[qt.fail],zfail:QA[qt.zfail],zpass:QA[qt.zpass]}}}},{key:"getColorMaskDrawParams",value:function(c,u){var l=c.stencil,m=l!=null&&l.enable&&l.opFront&&!u?[!1,!1,!1,!1]:[!0,!0,!0,!0];return m}},{key:"initCullDrawParams",value:function(c,u){var l=c.cull;if(l){var m=l.enable,A=l.face,j=A===void 0?ho.BACK:A;u.cull={enable:!!m,face:hZ[j]}}}},{key:"extractUniforms",value:function(c){var u=this,l={};return Object.keys(c).forEach(function(m){u.extractUniformsRecursively(m,c[m],l,"")}),l}},{key:"extractUniformsRecursively",value:function(c,u,l,m){var A=this;if(u===null||typeof u=="number"||typeof u=="boolean"||Array.isArray(u)&&typeof u[0]=="number"||w9(u)||u===""||"resize"in u){l["".concat(m&&m+".").concat(c)]=u;return}VO(u)&&Object.keys(u).forEach(function(j){A.extractUniformsRecursively(j,u[j],l,"".concat(m&&m+".").concat(c))}),Array.isArray(u)&&u.forEach(function(j,Y){Object.keys(j).forEach(function(le){A.extractUniformsRecursively(le,j[le],l,"".concat(m&&m+".").concat(c,"[").concat(Y,"]"))})})}}]),a}(),AT=function(){function a(g,c){(0,Bt.Z)(this,a),(0,Xn.Z)(this,"isDestroy",!1);var u=c.data,l=c.type,m=l===void 0?ho.UNSIGNED_BYTE:l,A=c.width,j=c.height,Y=c.flipY,le=Y===void 0?!1:Y,$e=c.format,Ye=$e===void 0?ho.RGBA:$e,Nt=c.mipmap,qt=Nt===void 0?!1:Nt,jn=c.wrapS,Qn=jn===void 0?ho.CLAMP_TO_EDGE:jn,Ir=c.wrapT,ki=Ir===void 0?ho.CLAMP_TO_EDGE:Ir,jo=c.aniso,Wo=jo===void 0?0:jo,na=c.alignment,va=na===void 0?1:na,Fa=c.premultiplyAlpha,vl=Fa===void 0?!1:Fa,eu=c.mag,uu=eu===void 0?ho.NEAREST:eu,Hu=c.min,Vu=Hu===void 0?ho.NEAREST:Hu,ih=c.colorSpace,Ch=ih===void 0?ho.BROWSER_DEFAULT_WEBGL:ih,Dd=c.x,Jp=Dd===void 0?0:Dd,Gg=c.y,mg=Gg===void 0?0:Gg,O0=c.copy,E0=O0===void 0?!1:O0;this.width=A,this.height=j;var Kv={width:A,height:j,type:Q_[m],format:qA[Ye],wrapS:JA[Qn],wrapT:JA[ki],mag:dx[uu],min:dx[Vu],alignment:va,flipY:le,colorSpace:_9[Ch],premultiplyAlpha:vl,aniso:Wo,x:Jp,y:mg,copy:E0};u&&(Kv.data=u),typeof qt=="number"?Kv.mipmap=zO[qt]:typeof qt=="boolean"&&(Kv.mipmap=qt),this.texture=g.texture(Kv)}return(0,lt.Z)(a,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.texture(c)}},{key:"bind",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(c){var u=c.width,l=c.height;this.texture.resize(u,l),this.width=u,this.height=l}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var c;(c=this.texture)===null||c===void 0||c.destroy()}this.isDestroy=!0}}]),a}(),UI,jO,UO=(UI=(0,fa.b2)(),UI(jO=function(){function a(){var g=this;(0,Bt.Z)(this,a),(0,Xn.Z)(this,"createModel",function(c){return new C9(g.gl,c)}),(0,Xn.Z)(this,"createAttribute",function(c){return new uZ(g.gl,c)}),(0,Xn.Z)(this,"createBuffer",function(c){return new b9(g.gl,c)}),(0,Xn.Z)(this,"createElements",function(c){return new x9(g.gl,c)}),(0,Xn.Z)(this,"createTexture2D",function(c){return new AT(g.gl,c)}),(0,Xn.Z)(this,"createFramebuffer",function(c){return new $O(g.gl,c)}),(0,Xn.Z)(this,"useFramebuffer",function(c,u){g.gl({framebuffer:c?c.get():null})(u)}),(0,Xn.Z)(this,"clear",function(c){var u,l=c.color,m=c.depth,A=c.stencil,j=c.framebuffer,Y=j===void 0?null:j,le={color:l,depth:m,stencil:A};le.framebuffer=Y===null?Y:Y.get(),(u=g.gl)===null||u===void 0||u.clear(le)}),(0,Xn.Z)(this,"viewport",function(c){var u=c.x,l=c.y,m=c.width,A=c.height;g.gl._gl.viewport(u,l,m,A),g.width=m,g.height=A,g.gl._refresh()}),(0,Xn.Z)(this,"readPixels",function(c){var u=c.framebuffer,l=c.x,m=c.y,A=c.width,j=c.height,Y={x:l,y:m,width:A,height:j};return u&&(Y.framebuffer=u.get()),g.gl.read(Y)}),(0,Xn.Z)(this,"getViewportSize",function(){return{width:g.gl._gl.drawingBufferWidth,height:g.gl._gl.drawingBufferHeight}}),(0,Xn.Z)(this,"getContainer",function(){var c;return(c=g.canvas)===null||c===void 0?void 0:c.parentElement}),(0,Xn.Z)(this,"getCanvas",function(){return g.canvas}),(0,Xn.Z)(this,"getGLContext",function(){return g.gl._gl}),(0,Xn.Z)(this,"destroy",function(){var c,u,l;g.canvas=null,(c=g.gl)===null||c===void 0||(u=c._gl)===null||u===void 0||(l=u.getExtension("WEBGL_lose_context"))===null||l===void 0||l.loseContext(),g.gl.destroy(),g.gl=null})}return(0,lt.Z)(a,[{key:"init",value:function(){var g=(0,pl.Z)(Zi().mark(function u(l,m,A){var j=this;return Zi().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(this.canvas=l,!A){le.next=5;break}this.gl=A,le.next=8;break;case 5:return le.next=7,new Promise(function($e,Ye){lZ()({canvas:j.canvas,attributes:{alpha:!0,antialias:m.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:m.preserveDrawingBuffer,stencil:m.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(qt,jn){(qt||!jn)&&Ye(qt),$e(jn)}})});case 7:this.gl=le.sent;case 8:this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")};case 9:case"end":return le.stop()}},u,this)}));function c(u,l,m){return g.apply(this,arguments)}return c}()},{key:"getPointSizeRange",value:function(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(c){return!!this.getGLContext().getExtension(c)}},{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 c=this.getGLContext();c.disable(c.CULL_FACE)}},{key:"setDirty",value:function(c){this.isDirty=c}},{key:"getDirty",value:function(){return this.isDirty}}]),a}())||jO);function WO(a){var g=WI();return function(){var u=(0,Tt.Z)(a),l;if(g){var m=(0,Tt.Z)(this).constructor;l=Reflect.construct(u,arguments,m)}else l=u.apply(this,arguments);return(0,an.Z)(this,l)}}function WI(){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 jg=["selectstart","selecting","selectend"],xS=function(a){(0,At.Z)(c,a);var g=WO(c);function c(u){var l,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,Bt.Z)(this,c),l=g.call(this),(0,Xn.Z)((0,ps.Z)(l),"isEnable",!1),(0,Xn.Z)((0,ps.Z)(l),"onDragStart",function(A){l.box.style.display="block",l.startEvent=l.endEvent=A,l.syncBoxBound(),l.emit("selectstart",l.getLngLatBox(),l.startEvent,l.endEvent)}),(0,Xn.Z)((0,ps.Z)(l),"onDragging",function(A){l.endEvent=A,l.syncBoxBound(),l.emit("selecting",l.getLngLatBox(),l.startEvent,l.endEvent)}),(0,Xn.Z)((0,ps.Z)(l),"onDragEnd",function(A){l.endEvent=A,l.box.style.display="none",l.emit("selectend",l.getLngLatBox(),l.startEvent,l.endEvent)}),l.scene=u,l.options=m,l}return(0,lt.Z)(c,[{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 m=Ps("div",void 0,this.container);m.classList.add("l7-select-box"),l&&m.classList.add(l),m.style.display="none",this.box=m}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,m=l.x,A=l.y,j=this.endEvent,Y=j.x,le=j.y,$e=Math.min(m,Y),Ye=Math.min(A,le),Nt=Math.abs(m-Y),qt=Math.abs(A-le);this.box.style.top="".concat(Ye,"px"),this.box.style.left="".concat($e,"px"),this.box.style.width="".concat(Nt,"px"),this.box.style.height="".concat(qt,"px")}},{key:"getLngLatBox",value:function(){var l=this.startEvent.lngLat,m=l.lng,A=l.lat,j=this.endEvent.lngLat,Y=j.lng,le=j.lat;return Bf([[m,A],[Y,le]])}}]),c}(Wu.EventEmitter),dZ=function(){function a(g){(0,Bt.Z)(this,a);var c=g.id,u=g.map,l=g.canvas,m=g.hasBaseMap,A=lE();this.container=A,u.setContainer(A,c,l,m),A.bind(Fr.IRendererService).to(UO).inSingletonScope(),this.sceneService=A.get(Fr.ISceneService),this.mapService=A.get(Fr.IMapService),this.iconService=A.get(Fr.IIconService),this.fontService=A.get(Fr.IFontService),this.controlService=A.get(Fr.IControlService),this.layerService=A.get(Fr.ILayerService),this.debugService=A.get(Fr.IDebugService),this.debugService.setEnable(g.debug),this.markerService=A.get(Fr.IMarkerService),this.interactionService=A.get(Fr.IInteractionService),this.popupService=A.get(Fr.IPopupService),this.boxSelect=new xS(this,{}),this.initComponent(c),this.sceneService.init(g),this.initControl()}return(0,lt.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 g=(0,pl.Z)(Zi().mark(function u(l){return Zi().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.abrupt("return",this.sceneService.exportPng(l));case 1:case"end":return A.stop()}},u,this)}));function c(u){return g.apply(this,arguments)}return c}()},{key:"exportMap",value:function(){var g=(0,pl.Z)(Zi().mark(function u(l){return Zi().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.abrupt("return",this.sceneService.exportPng(l));case 1:case"end":return A.stop()}},u,this)}));function c(u){return g.apply(this,arguments)}return c}()},{key:"registerRenderService",value:function(c){var u=this;if(this.sceneService.loaded){var l=new c(this);l.init()}else this.on("loaded",function(){var m=new c(u);m.init()})}},{key:"setBgColor",value:function(c){this.mapService.setBgColor(c)}},{key:"addLayer",value:function(c){var u=this,l=Uy(this.container);if(c.setContainer(l,this.container),this.sceneService.addLayer(c),c.inited){var m=this.initMask(c);this.addMask(m,c.id)}else c.on("inited",function(){var A=u.initMask(c);u.addMask(A,c.id)})}},{key:"initMask",value:function(c){var u=c.getLayerConfig(),l=u.mask,m=u.maskfence,A=u.maskColor,j=A===void 0?"#000":A,Y=u.maskOpacity,le=Y===void 0?0:Y;if(!(!l||!m)){var $e=new w4().source(m).shape("fill").style({color:j,opacity:le});return $e}}},{key:"addMask",value:function(c,u){if(c){var l=this.getLayer(u);if(l){var m=Uy(this.container);c.setContainer(m,this.container),l.addMaskLayer(c),this.sceneService.addMask(c)}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(c){return this.layerService.getLayer(c)}},{key:"getLayerByName",value:function(c){return this.layerService.getLayerByName(c)}},{key:"removeLayer",value:function(){var g=(0,pl.Z)(Zi().mark(function u(l,m){return Zi().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,this.layerService.remove(l,m);case 2:case"end":return j.stop()}},u,this)}));function c(u,l){return g.apply(this,arguments)}return c}()},{key:"removeAllLayer",value:function(){var g=(0,pl.Z)(Zi().mark(function u(){return Zi().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,this.layerService.removeAllLayers();case 2:case"end":return m.stop()}},u,this)}));function c(){return g.apply(this,arguments)}return c}()},{key:"render",value:function(){this.sceneService.render()}},{key:"setEnableRender",value:function(c){this.layerService.setEnableRender(c)}},{key:"addIconFont",value:function(c,u){this.fontService.addIconFont(c,u)}},{key:"addIconFonts",value:function(c){var u=this;c.forEach(function(l){var m=(0,Oi.Z)(l,2),A=m[0],j=m[1];u.fontService.addIconFont(A,j)})}},{key:"addFontFace",value:function(c,u){var l=this;this.fontService.once("fontloaded",function(m){l.emit("fontloaded",m)}),this.fontService.addFontFace(c,u)}},{key:"addImage",value:function(){var g=(0,pl.Z)(Zi().mark(function u(l,m){return Zi().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,this.iconService.addImage(l,m);case 2:case"end":return j.stop()}},u,this)}));function c(u,l){return g.apply(this,arguments)}return c}()},{key:"hasImage",value:function(c){return this.iconService.hasImage(c)}},{key:"removeImage",value:function(c){this.iconService.removeImage(c)}},{key:"addIconFontGlyphs",value:function(c,u){this.fontService.addIconGlyphs(u)}},{key:"addControl",value:function(c){this.controlService.addControl(c,this.container)}},{key:"removeControl",value:function(c){this.controlService.removeControl(c)}},{key:"getControlByName",value:function(c){return this.controlService.getControlByName(c)}},{key:"addMarker",value:function(c){this.markerService.addMarker(c)}},{key:"addMarkerLayer",value:function(c){this.markerService.addMarkerLayer(c)}},{key:"removeMarkerLayer",value:function(c){this.markerService.removeMarkerLayer(c)}},{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(c){this.popupService.addPopup(c)}},{key:"removePopup",value:function(c){this.popupService.removePopup(c)}},{key:"on",value:function(c,u){if(jg.includes(c)){var l;(l=this.boxSelect)===null||l===void 0||l.on(c,u)}else w2.includes(c)?this.sceneService.on(c,u):this.mapService.on(c,u)}},{key:"once",value:function(c,u){if(jg.includes(c)){var l;(l=this.boxSelect)===null||l===void 0||l.once(c,u)}else w2.includes(c)?this.sceneService.once(c,u):this.mapService.once(c,u)}},{key:"emit",value:function(c,u){w2.indexOf(c)===-1?this.mapService.on(c,u):this.sceneService.emit(c,u)}},{key:"off",value:function(c,u){if(jg.includes(c)){var l;(l=this.boxSelect)===null||l===void 0||l.off(c,u)}else w2.includes(c)?this.sceneService.off(c,u):this.mapService.off(c,u)}},{key:"getZoom",value:function(){return this.mapService.getZoom()}},{key:"getCenter",value:function(c){return this.mapService.getCenter(c)}},{key:"setCenter",value:function(c,u){return this.mapService.setCenter(c,u)}},{key:"getPitch",value:function(){return this.mapService.getPitch()}},{key:"setPitch",value:function(c){return this.mapService.setPitch(c)}},{key:"getRotation",value:function(){return this.mapService.getRotation()}},{key:"getBounds",value:function(){return this.mapService.getBounds()}},{key:"setRotation",value:function(c){this.mapService.setRotation(c)}},{key:"zoomIn",value:function(){this.mapService.zoomIn()}},{key:"zoomOut",value:function(){this.mapService.zoomOut()}},{key:"panTo",value:function(c){this.mapService.panTo(c)}},{key:"panBy",value:function(c,u){this.mapService.panBy(c,u)}},{key:"getContainer",value:function(){return this.mapService.getContainer()}},{key:"setZoom",value:function(c){this.mapService.setZoom(c)}},{key:"fitBounds",value:function(c,u){var l=this.sceneService.getSceneConfig(),m=l.fitBoundsOptions,A=l.animate;this.mapService.fitBounds(c,u||(0,Ne.Z)((0,Ne.Z)({},m),{},{animate:A}))}},{key:"setZoomAndCenter",value:function(c,u){this.mapService.setZoomAndCenter(c,u)}},{key:"setMapStyle",value:function(c){this.mapService.setMapStyle(c)}},{key:"setMapStatus",value:function(c){this.mapService.setMapStatus(c)}},{key:"pixelToLngLat",value:function(c){return this.mapService.pixelToLngLat(c)}},{key:"lngLatToPixel",value:function(c){return this.mapService.lngLatToPixel(c)}},{key:"containerToLngLat",value:function(c){return this.mapService.containerToLngLat(c)}},{key:"lngLatToContainer",value:function(c){return this.mapService.lngLatToContainer(c)}},{key:"destroy",value:function(){this.sceneService.destroy()}},{key:"registerPostProcessingPass",value:function(c,u){this.container.bind(Fr.IPostProcessingPass).to(c).whenTargetNamed(u)}},{key:"enableShaderPick",value:function(){this.layerService.enableShaderPick()}},{key:"diasbleShaderPick",value:function(){this.layerService.disableShaderPick()}},{key:"enableBoxSelect",value:function(){var c=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.boxSelect.enable(),u&&this.boxSelect.once("selectend",function(){c.disableBoxSelect()})}},{key:"disableBoxSelect",value:function(){this.boxSelect.disable()}},{key:"getProtocol",value:function(c){return go.REGISTERED_PROTOCOLS[c]}},{key:"getPointSizeRange",value:function(){return this.sceneService.getPointSizeRange()}},{key:"initComponent",value:function(c){this.controlService.init({container:gl(c)},this.container),this.markerService.init(this.container),this.popupService.init(this.container)}},{key:"initControl",value:function(){var c=this.sceneService.getSceneConfig(),u=c.logoVisible,l=c.logoPosition;u&&this.addControl(new vu({position:l}))}}],[{key:"addProtocol",value:function(c,u){go.REGISTERED_PROTOCOLS[c]=u}},{key:"removeProtocol",value:function(c){delete go.REGISTERED_PROTOCOLS[c]}}]),a}(),ZI="2.19.9"},53800:function(mt,q,_){"use strict";_.d(q,{br:function(){return Jf},ot:function(){return ae},l_:function(){return ie},$2:function(){return Zn},Ie:function(){return vp},OB:function(){return Od},w3:function(){return Pt},Jx:function(){return zc},CB:function(){return Fo},ns:function(){return vg},dW:function(){return sp},GI:function(){return qh},YY:function(){return ap},kp:function(){return Gn},jf:function(){return zl},AB:function(){return Zf},Ly:function(){return Qc},dN:function(){return Ni},$r:function(){return qn}});var v=_(68911),M=_(77617),C=_(1948),x=function(Ge){return function(He,pt){var Rn=(0,M.useRef)(),ui=(0,M.useRef)(0);(pt===void 0||!(0,C.k)(pt,Rn.current))&&(Rn.current=pt,ui.current+=1),Ge(He,[ui.current])}},N=x(M.useEffect),V=_(12124),R=_.n(V),k=_(63364),S=_(40984),p=_(92378),T="*",F=function(){function Ge(){this._events={}}return Ge.prototype.on=function(He,pt,Rn){return this._events[He]||(this._events[He]=[]),this._events[He].push({callback:pt,once:!!Rn}),this},Ge.prototype.once=function(He,pt){return this.on(He,pt,!0)},Ge.prototype.emit=function(He){for(var pt=this,Rn=[],ui=1;ui=Ge.length?{done:!0}:{done:!1,value:Ge[Rn++]}},e:function(Ca){throw Ca},f:ui}}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 Yn=!0,Ci=!1,xo;return{s:function(){pt=pt.call(Ge)},n:function(){var Ca=pt.next();return Yn=Ca.done,Ca},e:function(Ca){Ci=!0,xo=Ca},f:function(){try{!Yn&&pt.return!=null&&pt.return()}finally{if(Ci)throw xo}}}}function be(Ge,He){if(Ge){if(typeof Ge=="string")return Ae(Ge,He);var pt=Object.prototype.toString.call(Ge).slice(8,-1);if(pt==="Object"&&Ge.constructor&&(pt=Ge.constructor.name),pt==="Map"||pt==="Set")return Array.from(Ge);if(pt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pt))return Ae(Ge,He)}}function Ae(Ge,He){(He==null||He>Ge.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);pt0&&arguments[0]!==void 0?arguments[0]:{};return Object.entries(He!=null?He:{}).map(function(pt){var Rn=lt(pt,2),ui=Rn[0],Yn=Rn[1],Ci=(0,Ft.Z)(ui),xo=Yn;return typeof xo=="number"?xo="".concat(xo,"px"):typeof xo=="string"&&(xo=xo.replace("'","")),"".concat(Ci," :").concat(xo)}).join("; ")};function zn(Ge,He){return Mr(Ge)||gi(Ge,He)||Ui(Ge,He)||Kr()}function Kr(){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 Ui(Ge,He){if(Ge){if(typeof Ge=="string")return go(Ge,He);var pt=Object.prototype.toString.call(Ge).slice(8,-1);if(pt==="Object"&&Ge.constructor&&(pt=Ge.constructor.name),pt==="Map"||pt==="Set")return Array.from(Ge);if(pt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pt))return go(Ge,He)}}function go(Ge,He){(He==null||He>Ge.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);pt=0;--sa){var $a=this.tryEntries[sa],Ru=$a.completion;if($a.tryLoc==="root")return Qo("end");if($a.tryLoc<=this.prev){var rh=Rn.call($a,"catchLoc"),Lo=Rn.call($a,"finallyLoc");if(rh&&Lo){if(this.prev<$a.catchLoc)return Qo($a.catchLoc,!0);if(this.prev<$a.finallyLoc)return Qo($a.finallyLoc)}else if(rh){if(this.prev<$a.catchLoc)return Qo($a.catchLoc,!0)}else{if(!Lo)throw new Error("try statement without catch or finally");if(this.prev<$a.finallyLoc)return Qo($a.finallyLoc)}}}},abrupt:function(Xi,us){for(var Qo=this.tryEntries.length-1;Qo>=0;--Qo){var sa=this.tryEntries[Qo];if(sa.tryLoc<=this.prev&&Rn.call(sa,"finallyLoc")&&this.prev=0;--us){var Qo=this.tryEntries[us];if(Qo.finallyLoc===Xi)return this.complete(Qo.completion,Qo.afterLoc),gs(Qo),Fr}},catch:function(Xi){for(var us=this.tryEntries.length-1;us>=0;--us){var Qo=this.tryEntries[us];if(Qo.tryLoc===Xi){var sa=Qo.completion;if(sa.type==="throw"){var $a=sa.arg;gs(Qo)}return $a}}throw new Error("illegal catch attempt")},delegateYield:function(Xi,us,Qo){return this.delegate={iterator:As(Xi),resultName:us,nextLoc:Qo},this.method==="next"&&(this.arg=Ge),Fr}},He}function Oo(Ge,He,pt,Rn,ui,Yn,Ci){try{var xo=Ge[Yn](Ci),oa=xo.value}catch(Ca){pt(Ca);return}xo.done?He(oa):Promise.resolve(oa).then(Rn,ui)}function $i(Ge){return function(){var He=this,pt=arguments;return new Promise(function(Rn,ui){var Yn=Ge.apply(He,pt);function Ci(oa){Oo(Yn,Rn,ui,Ci,xo,"next",oa)}function xo(oa){Oo(Yn,Rn,ui,Ci,xo,"throw",oa)}Ci(void 0)})}}var co=function(){var Ge=$i(De().mark(function He(pt,Rn){return De().wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:if(pt!=="Map"){Yn.next=2;break}return Yn.abrupt("return",new v.Map(Rn));case 2:if(pt!=="Gaode"){Yn.next=6;break}return Yn.abrupt("return",new v.GaodeMap(Rn));case 6:if(pt!=="GaodeV1"){Yn.next=10;break}return Yn.abrupt("return",new v.GaodeMapV1(Rn));case 10:if(pt!=="GaodeV2"){Yn.next=12;break}return Yn.abrupt("return",new v.GaodeMapV2(Rn));case 12:if(pt!=="Tencent"){Yn.next=14;break}return Yn.abrupt("return",Promise.resolve(Promise.resolve().then(_.bind(_,68911))).then(function(Ci){var xo=Ci.TencentMap;return new xo(Rn)}));case 14:if(pt!=="Baidu"){Yn.next=16;break}return Yn.abrupt("return",Promise.resolve(Promise.resolve().then(_.bind(_,68911))).then(function(Ci){var xo=Ci.BaiduMap;return new xo(Rn)}));case 16:return Yn.abrupt("return",Promise.resolve(Promise.resolve().then(_.bind(_,68911))).then(function(Ci){var xo=Ci.Mapbox;return new xo(Rn)}));case 17:case"end":return Yn.stop()}},He)}));return function(pt,Rn){return Ge.apply(this,arguments)}}(),Vr=function(Ge,He){return Ge?Ge.map(function(pt,Rn){return Object.is(Ge[Rn],He==null?void 0:He[Rn])?-1:Rn}).filter(function(pt){return pt>=0}):He?He.map(function(pt,Rn){return Rn}):[]},Ro=function(Ge,He){var pt=(0,M.useRef)();(0,M.useEffect)(function(){var Rn=Vr(pt.current,He),ui=pt.current;return pt.current=He,Ge(Rn,ui,He)},He)},Tn=Ro,nt=_(22633),Ct={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"},Ht=Object.keys(Ct);function hn(Ge){return Mt(Ge)||Jt(Ge)||rn(Ge)||En()}function En(){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 rn(Ge,He){if(Ge){if(typeof Ge=="string")return Qt(Ge,He);var pt=Object.prototype.toString.call(Ge).slice(8,-1);if(pt==="Object"&&Ge.constructor&&(pt=Ge.constructor.name),pt==="Map"||pt==="Set")return Array.from(Ge);if(pt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pt))return Qt(Ge,He)}}function Jt(Ge){if(typeof Symbol!="undefined"&&Ge[Symbol.iterator]!=null||Ge["@@iterator"]!=null)return Array.from(Ge)}function Mt(Ge){if(Array.isArray(Ge))return Qt(Ge)}function Qt(Ge,He){(He==null||He>Ge.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);pt=0)&&Object.prototype.propertyIsEnumerable.call(Ge,Rn)&&(pt[Rn]=Ge[Rn])}return pt}function Gt(Ge,He){if(Ge==null)return{};var pt={},Rn=Object.keys(Ge),ui,Yn;for(Yn=0;Yn=0)&&(pt[ui]=Ge[ui]);return pt}var wn=M.createContext(null),Zn=(0,M.memo)((0,M.forwardRef)(function(He,pt){var Rn=He.id,ui=He.style,Yn=He.className,Ci=He.map,xo=He.mapType,oa=xo===void 0?"Gaode":xo,Ca=He.mapOptions,bl=Ca===void 0?{}:Ca,Fu=He.onLayerManagerCreated,sc=He.onSceneLoaded,Fc=He.children,fa=$t(He,wr),wl=(0,M.useRef)(),Fr=(0,M.useState)(null),fl=On(Fr,2),Ga=fl[0],ku=fl[1],wh=(0,M.useRef)({scene:null,layerManager:null}),ws=wh.current;(0,M.useEffect)(function(){var Ns,Xa=!0,sl=(0,k.Z)(Ci)?co(oa,bl):typeof Ci=="function"?Ci():Ci;return Promise.resolve(sl).then(function(wa){if(Xa){Ns=new v.Scene(xi(xi({},fa),{},{id:wl.current,map:wa}));var Bs=new Xt({scene:Ns});ws.scene=Ns,ws.layerManager=Bs,Ns.once("loaded",function(){sc&&sc(Ns),Fu&&Fu(Bs),ku(Ns)})}}).catch(function(wa){console.error(wa)}),function(){Xa=!1,Ns&&(ws.scene=null,ws.layerManager=null,Ns.destroy())}},[]),Dn(Ga,He),(0,M.useImperativeHandle)(pt,function(){return{getScene:function(){return Ga},getMap:function(){return Ga.map}}},[Ga]),(0,M.useEffect)(function(){Ga&&bl.style&&Ga.setMapStyle(bl.style)},[bl.style]),N(function(){(0,S.Z)(Ga)||(bl.center&&(0,p.Z)(bl.zoom)?Ga.setZoomAndCenter(bl.zoom,bl.center):(0,p.Z)(bl.zoom)?Ga.setZoom(bl.zoom):bl.center&&Ga.setCenter(bl.center))},[bl.zoom,bl.center]),(0,M.useEffect)(function(){Ga&&(0,p.Z)(bl.pitch)&&Ga.setPitch(bl.pitch)},[bl.pitch]),(0,M.useEffect)(function(){Ga&&(0,p.Z)(bl.rotation)&&Ga.setRotation(bl.rotation)},[bl.rotation]);var Xo=(0,M.useMemo)(function(){return xi({position:"relative"},ui)},[ui]);return M.createElement("div",{id:Rn,ref:wl,style:Xo,className:R()("larkmap",Yn)},Ga&&M.createElement(wn.Provider,{value:ws},Fc))})),_r=_(35894),qn=function(){var He=(0,M.useContext)(wn);if(!He)throw new Error("The useScene must be used in the LarkMap container");var pt=He.scene;return pt},$n=function(He,pt,Rn){var ui=qn(),Yn=(0,M.useRef)();(0,M.useEffect)(function(){var Ci=new v.Control(Rn);return Ci.onAdd=function(){return He(ui)},Ci.onRemove=function(){},Yn.current=Ci,ui.addControl(Ci),function(){typeof pt=="function"&&pt(ui),Yn.current=null,ui.removeControl(Ci)}},[]),(0,_r.Z)(function(){var Ci;(Ci=Yn.current)===null||Ci===void 0||Ci.setOptions(Rn)},[Rn])},jt=function(){var He=(0,M.useContext)(wn);if(!He)throw new Error("The useLayerManager must be used in the LarkMap container");var pt=He.layerManager;return pt};function In(Ge,He){return xn(Ge)||Yt(Ge,He)||Ur(Ge,He)||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 Ur(Ge,He){if(Ge){if(typeof Ge=="string")return Ao(Ge,He);var pt=Object.prototype.toString.call(Ge).slice(8,-1);if(pt==="Object"&&Ge.constructor&&(pt=Ge.constructor.name),pt==="Map"||pt==="Set")return Array.from(Ge);if(pt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pt))return Ao(Ge,He)}}function Ao(Ge,He){(He==null||He>Ge.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);pt=0)&&Object.prototype.propertyIsEnumerable.call(Ge,Rn)&&(pt[Rn]=Ge[Rn])}return pt}function Wa(Ge,He){if(Ge==null)return{};var pt={},Rn=Object.keys(Ge),ui,Yn;for(Yn=0;Yn=0)&&(pt[ui]=Ge[ui]);return pt}var Sa=function(He,pt){var Rn=pt.onCreated,ui=pt.source,Yn=Oi(pt,ls),Ci=jt(),xo=(0,M.useRef)(),oa=(0,M.useRef)(Yn),Ca=(0,M.useRef)(ui);return xo.current||(xo.current=new He(pt),Rn&&xo.current.once("inited",function(){return Rn(xo.current)}),Ci.addLayer(xo.current)),(0,_r.Z)(function(){if(xo.current){var bl=!(0,kr.Z)(oa.current,Yn);bl&&(xo.current.update(Yn),oa.current=(0,Xr.Z)(Yn))}},[Yn]),(0,_r.Z)(function(){if(xo.current){var bl=ui.data,Fu=Oi(ui,Sr),sc=Ca.current,Fc=sc.data,fa=Oi(sc,hs),wl=bl!==Fc||!(0,kr.Z)(Fu,fa);wl&&(xo.current.changeData(ui),Ca.current=fi({},ui))}},[ui]),(0,M.useEffect)(function(){return function(){xo.current&&(Ci.removeLayer(xo.current),xo.current=null)}},[]),xo},xa={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"},Ml=function(He,pt){var Rn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xa,ui=(0,M.useMemo)(function(){return Object.keys(Rn)},[Rn]),Yn=function(bl){ui.forEach(function(Fu){var sc=Rn[Fu],Fc=pt[Fu];Fu&&Fc&&He[bl](sc,Fc)})},Ci=function(){return Yn("on")},xo=function(){return Yn("off")},oa=(0,M.useRef)(!0);oa.current&&Ci(),(0,M.useEffect)(function(){return oa.current?oa.current=!1:Ci(),function(){xo()}},ui.map(function(Ca){return pt[Ca]})),(0,nt.Z)(function(){xo()})},wo=null,_l=null,El=_(32290),Ai={}.toString,to=function(Ge,He){return Ai.call(Ge)==="[object "+He+"]"},An=to,ri=function(Ge){return An(Ge,"Function")},ao=function(Ge){return Array.isArray?Array.isArray(Ge):An(Ge,"Array")},Mi=function(Ge){var He=typeof Ge;return Ge!==null&&He==="object"||He==="function"};function _s(Ge,He){if(Ge){var pt;if(ao(Ge))for(var Rn=0,ui=Ge.length;Rn-1;)No.call(Ge,Yn,1);return Ge},da=null,Il=Array.prototype.splice,Al=function(He,pt){if(!isArrayLike(He))return[];for(var Rn=He?pt.length:0,ui=Rn-1;Rn--;){var Yn=void 0,Ci=pt[Rn];(Rn===ui||Ci!==Yn)&&(Yn=Ci,Il.call(He,Ci,1))}return He},Js=null,Ea=function(Ge,He,pt){if(!ao(Ge)&&!Et(Ge))return Ge;var Rn=pt;return Hs(Ge,function(ui,Yn){Rn=He(Rn,ui,Yn)}),Rn},gl=Ea,ds=function(Ge,He){var pt=[];if(!isArrayLike(Ge))return pt;for(var Rn=-1,ui=[],Yn=Ge.length;++RnYn[xo])return 1;if(ui[xo]0},Cl=null,nu=function(Ge,He){if(isArray(Ge)){for(var pt,Rn=-1/0,ui=0;uiRn&&(pt=Yn,Rn=Ci)}return pt}},Xn=function(Ge,He){if(isArray(Ge)){for(var pt,Rn=1/0,ui=0;uixo&&bl>xo);)if(oa.push(Ca),xo-=bl,Ci=Ci.substr(ui),!Ci)return oa.join("");for(;Ca=Ci.substr(0,1),bl=measureTextWidth(Ca,pt),!(bl+Yn>xo);)if(oa.push(Ca),xo-=bl,Ci=Ci.substr(1),!Ci)return oa.join("");return""+oa.join("")+Rn},Dh=function(){function Ge(){this.map={}}return Ge.prototype.has=function(He){return this.map[He]!==void 0},Ge.prototype.get=function(He,pt){var Rn=this.map[He];return Rn===void 0?pt:Rn},Ge.prototype.set=function(He,pt){this.map[He]=pt},Ge.prototype.clear=function(){this.map={}},Ge.prototype.delete=function(He){delete this.map[He]},Ge.prototype.size=function(){return Object.keys(this.map).length},Ge}(),ff=null;function lf(Ge,He){return function(){for(var pt=[],Rn=0;RnGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);pt=0)&&Object.prototype.propertyIsEnumerable.call(Ge,Rn)&&(pt[Rn]=Ge[Rn])}return pt}function F0(Ge,He){if(Ge==null)return{};var pt={},Rn=Object.keys(Ge),ui,Yn;for(Yn=0;Yn=0)&&(pt[ui]=Ge[ui]);return pt}var Gf="SECRET_COMBOBOX_MODE_DO_NOT_USE",gp="larkmap-select",pf=function(He,pt){var Rn=He.prefixCls,ui=He.bordered,Yn=ui===void 0?!0:ui,Ci=He.className,xo=He.getPopupContainer,oa=He.dropdownClassName,Ca=He.popupClassName,bl=He.listHeight,Fu=bl===void 0?256:bl,sc=He.placement,Fc=He.listItemHeight,fa=Fc===void 0?24:Fc,wl=He.disabled,Fr=He.notFoundContent,fl=dg(He,m0),Ga=M.useMemo(function(){var ws=fl,Xo=ws.mode;if(Xo!=="combobox")return Xo===Gf?"combobox":Xo},[fl]),ku=(0,am.Z)(fl,"suffixIcon","itemIcon"),wh=R()(em({},"".concat(gp,"-borderless"),!Yn),Ci);return M.createElement(Sg.ZP,cm({ref:pt},ku,{listHeight:Fu,listItemHeight:fa,mode:Ga,prefixCls:gp,placement:sc,notFoundContent:Fr!=null?Fr:"\u5F53\u524D\u65E0\u6570\u636E",className:wh,getPopupContainer:xo,dropdownClassName:Ca,disabled:wl}))},v0=M.forwardRef(pf);v0.SECRET_COMBOBOX_MODE_DO_NOT_USE=Gf,v0.Option=Sg.Wx,v0.OptGroup=Sg.Xo;var y0=v0;function tm(Ge){"@babel/helpers - typeof";return tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(He){return typeof He}:function(He){return He&&typeof Symbol=="function"&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He},tm(Ge)}var u0=["searchParams","showDistrict","showAddress","onSearchFinish","onChange"];function T0(){return T0=Object.assign?Object.assign.bind():function(Ge){for(var He=1;He=0;--sa){var $a=this.tryEntries[sa],Ru=$a.completion;if($a.tryLoc==="root")return Qo("end");if($a.tryLoc<=this.prev){var rh=Rn.call($a,"catchLoc"),Lo=Rn.call($a,"finallyLoc");if(rh&&Lo){if(this.prev<$a.catchLoc)return Qo($a.catchLoc,!0);if(this.prev<$a.finallyLoc)return Qo($a.finallyLoc)}else if(rh){if(this.prev<$a.catchLoc)return Qo($a.catchLoc,!0)}else{if(!Lo)throw new Error("try statement without catch or finally");if(this.prev<$a.finallyLoc)return Qo($a.finallyLoc)}}}},abrupt:function(Xi,us){for(var Qo=this.tryEntries.length-1;Qo>=0;--Qo){var sa=this.tryEntries[Qo];if(sa.tryLoc<=this.prev&&Rn.call(sa,"finallyLoc")&&this.prev=0;--us){var Qo=this.tryEntries[us];if(Qo.finallyLoc===Xi)return this.complete(Qo.completion,Qo.afterLoc),gs(Qo),Fr}},catch:function(Xi){for(var us=this.tryEntries.length-1;us>=0;--us){var Qo=this.tryEntries[us];if(Qo.tryLoc===Xi){var sa=Qo.completion;if(sa.type==="throw"){var $a=sa.arg;gs(Qo)}return $a}}throw new Error("illegal catch attempt")},delegateYield:function(Xi,us,Qo){return this.delegate={iterator:As(Xi),resultName:us,nextLoc:Qo},this.method==="next"&&(this.arg=Ge),Fr}},He}function Bd(Ge){return n0(Ge)||hm(Ge)||de(Ge)||Qm()}function Qm(){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 hm(Ge){if(typeof Symbol!="undefined"&&Ge[Symbol.iterator]!=null||Ge["@@iterator"]!=null)return Array.from(Ge)}function n0(Ge){if(Array.isArray(Ge))return ke(Ge)}function mm(Ge,He){var pt=Object.keys(Ge);if(Object.getOwnPropertySymbols){var Rn=Object.getOwnPropertySymbols(Ge);He&&(Rn=Rn.filter(function(ui){return Object.getOwnPropertyDescriptor(Ge,ui).enumerable})),pt.push.apply(pt,Rn)}return pt}function $m(Ge){for(var He=1;HeGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);pt=0)&&Object.prototype.propertyIsEnumerable.call(Ge,Rn)&&(pt[Rn]=Ge[Rn])}return pt}function ct(Ge,He){if(Ge==null)return{};var pt={},Rn=Object.keys(Ge),ui,Yn;for(Yn=0;Yn=0)&&(pt[ui]=Ge[ui]);return pt}var It=y0.Option,kt=function(He){var pt=He.searchParams,Rn=He.showDistrict,ui=He.showAddress,Yn=He.onSearchFinish,Ci=He.onChange,xo=Fe(He,u0),oa=(0,M.useState)([]),Ca=Q(oa,2),bl=Ca[0],Fu=Ca[1];(0,M.useEffect)(function(){Yn==null||Yn(bl)},[Yn,bl]);var sc=(0,Jg.Z)(function(){var wl=on(L0().mark(function Fr(fl){var Ga,ku,wh,ws;return L0().wrap(function(Ns){for(;;)switch(Ns.prev=Ns.next){case 0:if(fl){Ns.next=3;break}return Fu([]),Ns.abrupt("return");case 3:return wh=To(Hm,$m($m({},pt),{},{keywords:[].concat(Bd(((Ga=pt.keywords)!==null&&Ga!==void 0?Ga:"").split("|")),[fl]).filter(function(Xa){return!!Xa}).join("|")})),Ns.next=6,fetch(wh);case 6:return Ns.next=8,Ns.sent.json();case 8:ws=Ns.sent,Fu(((ku=ws==null?void 0:ws.tips)!==null&&ku!==void 0?ku:[]).filter(function(Xa){return Xa.location&&Xa.location.length}).map(function(Xa){var sl=Xa.location.split(","),wa=Q(sl,2),Bs=wa[0],al=wa[1];return Xa.longitude=+Bs,Xa.latitude=+al,Xa}));case 10:case"end":return Ns.stop()}},Fr)}));return function(Fr){return wl.apply(this,arguments)}}(),{wait:1e3}),Fc=sc.run,fa=(0,M.useCallback)(function(wl){var Fr=wl&&bl.find(function(fl){return fl.name===wl});Ci==null||Ci(wl||void 0,Fr||void 0)},[Ci,bl]);return M.createElement(y0,T0({className:"".concat(zm),onSearch:Fc,onChange:fa,clearIcon:function(){return null}},xo),bl.map(function(wl){var Fr="".concat(Rn?wl.district:"").concat(ui?wl.address:"");return M.createElement(It,{key:wl.id,value:wl.name},M.createElement("div",{title:wl.name,className:"".concat(zm,"__option-name")},wl.name),Fr&&M.createElement("div",{title:Fr,className:"".concat(zm,"__option-tip")},Fr))}))};kt.defaultProps={placeholder:"\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u5730\u540D",showSearch:!0,allowClear:!0,filterOption:!1,defaultActiveFirstOption:!1,showAddress:!0,showDistrict:!0};var Ot=_(88234),Kt=_(4639),en="larkmap-administrative-location",pn="https://restapi.amap.com/v3/geocode/regeo";function Wn(Ge){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(He){return typeof He}:function(He){return He&&typeof Symbol=="function"&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He},Wn(Ge)}function ar(){"use strict";ar=function(){return He};var Ge,He={},pt=Object.prototype,Rn=pt.hasOwnProperty,ui=Object.defineProperty||function(fo,Xi,us){fo[Xi]=us.value},Yn=typeof Symbol=="function"?Symbol:{},Ci=Yn.iterator||"@@iterator",xo=Yn.asyncIterator||"@@asyncIterator",oa=Yn.toStringTag||"@@toStringTag";function Ca(fo,Xi,us){return Object.defineProperty(fo,Xi,{value:us,enumerable:!0,configurable:!0,writable:!0}),fo[Xi]}try{Ca({},"")}catch(fo){Ca=function(us,Qo,sa){return us[Qo]=sa}}function bl(fo,Xi,us,Qo){var sa=Xi&&Xi.prototype instanceof fl?Xi:fl,$a=Object.create(sa.prototype),Ru=new $s(Qo||[]);return ui($a,"_invoke",{value:wa(fo,us,Ru)}),$a}function Fu(fo,Xi,us){try{return{type:"normal",arg:fo.call(Xi,us)}}catch(Qo){return{type:"throw",arg:Qo}}}He.wrap=bl;var sc="suspendedStart",Fc="suspendedYield",fa="executing",wl="completed",Fr={};function fl(){}function Ga(){}function ku(){}var wh={};Ca(wh,Ci,function(){return this});var ws=Object.getPrototypeOf,Xo=ws&&ws(ws(As([])));Xo&&Xo!==pt&&Rn.call(Xo,Ci)&&(wh=Xo);var Ns=ku.prototype=fl.prototype=Object.create(wh);function Xa(fo){["next","throw","return"].forEach(function(Xi){Ca(fo,Xi,function(us){return this._invoke(Xi,us)})})}function sl(fo,Xi){function us(sa,$a,Ru,rh){var Lo=Fu(fo[sa],fo,$a);if(Lo.type!=="throw"){var Lh=Lo.arg,Uc=Lh.value;return Uc&&Wn(Uc)=="object"&&Rn.call(Uc,"__await")?Xi.resolve(Uc.__await).then(function(Hd){us("next",Hd,Ru,rh)},function(Hd){us("throw",Hd,Ru,rh)}):Xi.resolve(Uc).then(function(Hd){Lh.value=Hd,Ru(Lh)},function(Hd){return us("throw",Hd,Ru,rh)})}rh(Lo.arg)}var Qo;ui(this,"_invoke",{value:function($a,Ru){function rh(){return new Xi(function(Lo,Lh){us($a,Ru,Lo,Lh)})}return Qo=Qo?Qo.then(rh,rh):rh()}})}function wa(fo,Xi,us){var Qo=sc;return function(sa,$a){if(Qo===fa)throw new Error("Generator is already running");if(Qo===wl){if(sa==="throw")throw $a;return{value:Ge,done:!0}}for(us.method=sa,us.arg=$a;;){var Ru=us.delegate;if(Ru){var rh=Bs(Ru,us);if(rh){if(rh===Fr)continue;return rh}}if(us.method==="next")us.sent=us._sent=us.arg;else if(us.method==="throw"){if(Qo===sc)throw Qo=wl,us.arg;us.dispatchException(us.arg)}else us.method==="return"&&us.abrupt("return",us.arg);Qo=fa;var Lo=Fu(fo,Xi,us);if(Lo.type==="normal"){if(Qo=us.done?wl:Fc,Lo.arg===Fr)continue;return{value:Lo.arg,done:us.done}}Lo.type==="throw"&&(Qo=wl,us.method="throw",us.arg=Lo.arg)}}}function Bs(fo,Xi){var us=Xi.method,Qo=fo.iterator[us];if(Qo===Ge)return Xi.delegate=null,us==="throw"&&fo.iterator.return&&(Xi.method="return",Xi.arg=Ge,Bs(fo,Xi),Xi.method==="throw")||us!=="return"&&(Xi.method="throw",Xi.arg=new TypeError("The iterator does not provide a '"+us+"' method")),Fr;var sa=Fu(Qo,fo.iterator,Xi.arg);if(sa.type==="throw")return Xi.method="throw",Xi.arg=sa.arg,Xi.delegate=null,Fr;var $a=sa.arg;return $a?$a.done?(Xi[fo.resultName]=$a.value,Xi.next=fo.nextLoc,Xi.method!=="return"&&(Xi.method="next",Xi.arg=Ge),Xi.delegate=null,Fr):$a:(Xi.method="throw",Xi.arg=new TypeError("iterator result is not an object"),Xi.delegate=null,Fr)}function al(fo){var Xi={tryLoc:fo[0]};1 in fo&&(Xi.catchLoc=fo[1]),2 in fo&&(Xi.finallyLoc=fo[2],Xi.afterLoc=fo[3]),this.tryEntries.push(Xi)}function gs(fo){var Xi=fo.completion||{};Xi.type="normal",delete Xi.arg,fo.completion=Xi}function $s(fo){this.tryEntries=[{tryLoc:"root"}],fo.forEach(al,this),this.reset(!0)}function As(fo){if(fo||fo===""){var Xi=fo[Ci];if(Xi)return Xi.call(fo);if(typeof fo.next=="function")return fo;if(!isNaN(fo.length)){var us=-1,Qo=function sa(){for(;++us=0;--sa){var $a=this.tryEntries[sa],Ru=$a.completion;if($a.tryLoc==="root")return Qo("end");if($a.tryLoc<=this.prev){var rh=Rn.call($a,"catchLoc"),Lo=Rn.call($a,"finallyLoc");if(rh&&Lo){if(this.prev<$a.catchLoc)return Qo($a.catchLoc,!0);if(this.prev<$a.finallyLoc)return Qo($a.finallyLoc)}else if(rh){if(this.prev<$a.catchLoc)return Qo($a.catchLoc,!0)}else{if(!Lo)throw new Error("try statement without catch or finally");if(this.prev<$a.finallyLoc)return Qo($a.finallyLoc)}}}},abrupt:function(Xi,us){for(var Qo=this.tryEntries.length-1;Qo>=0;--Qo){var sa=this.tryEntries[Qo];if(sa.tryLoc<=this.prev&&Rn.call(sa,"finallyLoc")&&this.prev=0;--us){var Qo=this.tryEntries[us];if(Qo.finallyLoc===Xi)return this.complete(Qo.completion,Qo.afterLoc),gs(Qo),Fr}},catch:function(Xi){for(var us=this.tryEntries.length-1;us>=0;--us){var Qo=this.tryEntries[us];if(Qo.tryLoc===Xi){var sa=Qo.completion;if(sa.type==="throw"){var $a=sa.arg;gs(Qo)}return $a}}throw new Error("illegal catch attempt")},delegateYield:function(Xi,us,Qo){return this.delegate={iterator:As(Xi),resultName:us,nextLoc:Qo},this.method==="next"&&(this.arg=Ge),Fr}},He}function Cr(Ge){return gr(Ge)||Hn(Ge)||br(Ge)||mr()}function mr(){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 Hn(Ge){if(typeof Symbol!="undefined"&&Ge[Symbol.iterator]!=null||Ge["@@iterator"]!=null)return Array.from(Ge)}function gr(Ge){if(Array.isArray(Ge))return mi(Ge)}function Tr(Ge,He){var pt=Object.keys(Ge);if(Object.getOwnPropertySymbols){var Rn=Object.getOwnPropertySymbols(Ge);He&&(Rn=Rn.filter(function(ui){return Object.getOwnPropertyDescriptor(Ge,ui).enumerable})),pt.push.apply(pt,Rn)}return pt}function wi(Ge){for(var He=1;HeGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);pt2&&arguments[2]!==void 0?arguments[2]:5,ui=[He],Yn=ro()(He).object(),Ci=ro()(pt).object();if(Rn<2)return Rn<1?[]:ui;var xo={r:(Yn.r-Ci.r)/(Rn-1),g:(Yn.g-Ci.g)/(Rn-1),b:(Yn.b-Ci.b)/(Rn-1)};return(0,cs.Z)(new Array(Rn-2),function(oa,Ca){return ui.push(ro()({r:(0,ia.Z)(Yn.r-xo.r*(Ca+1),0),g:(0,ia.Z)(Yn.g-xo.g*(Ca+1),0),b:(0,ia.Z)(Yn.b-xo.b*(Ca+1),0)}).hex())}),ui.push(pt),ui};function Fn(Ge){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(He){return typeof He}:function(He){return He&&typeof Symbol=="function"&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He},Fn(Ge)}function io(Ge,He,pt){return He=Qr(He),He in Ge?Object.defineProperty(Ge,He,{value:pt,enumerable:!0,configurable:!0,writable:!0}):Ge[He]=pt,Ge}function Qr(Ge){var He=qi(Ge,"string");return Fn(He)==="symbol"?He:String(He)}function qi(Ge,He){if(Fn(Ge)!=="object"||Ge===null)return Ge;var pt=Ge[Symbol.toPrimitive];if(pt!==void 0){var Rn=pt.call(Ge,He||"default");if(Fn(Rn)!=="object")return Rn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(He==="string"?String:Number)(Ge)}var vo="larkmap-legend-category";function os(Ge){var He=Ge.labels,pt=Ge.colors,Rn=Ge.geometryType,ui=Rn===void 0?"circle":Rn,Yn=Ge.isStrokeColor,Ci=Ge.style,xo=Ge.className;function oa(Fu){return Yn?{border:"2px solid ".concat(Fu)}:{background:Fu}}function Ca(Fu){return M.createElement("div",{className:R()(vo,xo),style:Ci},He.map(function(sc,Fc){return M.createElement("div",{className:"".concat(vo,"__content"),key:sc},M.createElement("div",{className:R()("".concat(vo,"__content__shape"),io({},"".concat(vo,"__content__").concat(ui),ui)),style:oa(Fu[Fc])}),M.createElement("div",{className:"".concat(vo,"labels")},sc))}))}function bl(){if(Array.isArray(pt))return Ca(pt);var Fu=Yl(pt.startColor,pt.endColor,He.length);return Ca(Fu)}return M.createElement(bl,null)}os.defaultProps={geometryType:"circle",isStrokeColor:!1};var Ms=_(46266),Ke="larkmap-legend-ramp",Ka=function(He){var pt=He[He.length-1],Rn=He[0];return Number.isFinite(Rn)||(Rn=parseInt(Rn,10)),Number.isFinite(pt)||(pt=parseInt(pt,10)),[Rn,pt]};function su(Ge){var He=Ge.labels,pt=Ge.labelUnit,Rn=pt===void 0?"":pt,ui=Ge.colors,Yn=He[0]+Rn,Ci=He[He.length-1]+Rn;return M.createElement(M.Fragment,null,M.createElement("div",{className:"".concat(Ke,"__continuous"),style:{background:"linear-gradient(to right,".concat(ui,")")}}),M.createElement("div",{className:"".concat(Ke,"__continuous-labelbar")},M.createElement("span",null,Yn),M.createElement("span",null,Ci)))}function Wl(Ge){var He=Ge.labels,pt=Ge.labelUnit,Rn=pt===void 0?"":pt,ui=Ge.colors,Yn=(0,M.useRef)(null),Ci=(0,Ms.Z)(Yn),xo=(Ci==null?void 0:Ci.width)/(ui.length+1),oa=He;if(He.length+1===ui.length){var Ca="< "+He[0],bl="\u2265 "+He[He.length-1];oa.unshift(Ca),oa.push(bl)}var Fu=function(Fc){var fa="".concat(He[Fc]).concat(Rn," - ").concat(He[Fc+1]).concat(Rn);return fa};return M.createElement("div",{className:"".concat(Ke,"__dis-continuous"),ref:Yn},Number.isNaN(xo)?null:M.createElement(M.Fragment,null,M.createElement("div",{className:"".concat(Ke,"__dis-continuous__colors"),style:{paddingLeft:xo/2}},ui==null?void 0:ui.map(function(sc,Fc){return M.createElement("div",{key:sc,title:Fu(Fc),className:"".concat(Ke,"__dis-continuous__color"),style:{background:sc,width:xo}})})),M.createElement("div",{className:"".concat(Ke,"__dis-continuous__labels")},He==null?void 0:He.map(function(sc){var Fc=sc+Rn;return M.createElement("span",{key:sc,className:"".concat(Ke,"__dis-continuous__label")},Fc)}))))}function jl(Ge){var He=Ge.isContinuous,pt=Ge.labels,Rn=Ge.colors,ui=Ge.labelUnit,Yn=Ge.className,Ci=Ge.style;return M.createElement("div",{className:R()("".concat(Ke),Yn),style:Ci},He?M.createElement(su,{labels:pt,labelUnit:ui,colors:Rn}):M.createElement(Wl,{labels:pt,labelUnit:ui,colors:Rn}))}jl.defaultProps={isContinuous:!1,labelUnit:""};var $l=_(43851),ql={point:$l.DrawPoint,line:$l.DrawLine,polygon:$l.DrawPolygon,rect:$l.DrawRect,circle:$l.DrawCircle};function Ys(Ge){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(He){return typeof He}:function(He){return He&&typeof Symbol=="function"&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He},Ys(Ge)}function Ti(Ge,He){var pt=Object.keys(Ge);if(Object.getOwnPropertySymbols){var Rn=Object.getOwnPropertySymbols(Ge);He&&(Rn=Rn.filter(function(ui){return Object.getOwnPropertyDescriptor(Ge,ui).enumerable})),pt.push.apply(pt,Rn)}return pt}function rs(Ge){for(var He=1;HeGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);ptGe.length)&&(He=Ge.length);for(var pt=0,Rn=new Array(He);pt=dt&&++ur;else{let dt=-1;for(let xt of fn)(xt=Ln(xt,++dt,fn))!=null&&(xt=+xt)>=xt&&++ur}return ur}function k(fn){return Math.max(1,Math.ceil(Math.log(R(fn))/Math.LN2)+1)}function S(fn,Ln){let ur,dt;if(Ln===void 0)for(const xt of fn)xt!=null&&(ur===void 0?xt>=xt&&(ur=dt=xt):(ur>xt&&(ur=xt),dt=Et&&(ur=dt=Et):(ur>Et&&(ur=Et),dt=p?10:Et>=T?5:Et>=F?2:1;let wt,Vt,yn;return xt<0?(yn=Math.pow(10,-xt)/et,wt=Math.round(fn*yn),Vt=Math.round(Ln*yn),wt/ynLn&&--Vt,yn=-yn):(yn=Math.pow(10,xt)*et,wt=Math.round(fn/yn),Vt=Math.round(Ln/yn),wt*ynLn&&--Vt),Vt0))return[];if(fn===Ln)return[fn];const dt=Ln=xt))return[];const wt=Et-xt+1,Vt=new Array(wt);if(dt)if(et<0)for(let yn=0;yn0?(fn=Math.floor(fn/xt)*xt,Ln=Math.ceil(Ln/xt)*xt):xt<0&&(fn=Math.ceil(fn*xt)/xt,Ln=Math.floor(Ln*xt)/xt),dt=xt}}var xe=Array.prototype,Se=xe.slice;function it(fn,Ln){return fn-Ln}function Xe(fn){for(var Ln=0,ur=fn.length,dt=fn[ur-1][1]*fn[0][0]-fn[ur-1][0]*fn[0][1];++Ln()=>fn;function Me(fn,Ln){for(var ur=-1,dt=Ln.length,xt;++urdt!=Zo>dt&&ur<(eo-yn)*(dt-yr)/(Zo-yr)+yn&&(xt=-xt)}return xt}function ze(fn,Ln,ur){var dt;return Pe(fn,Ln,ur)&&Re(fn[dt=+(fn[0]===Ln[0])],ur[dt],Ln[dt])}function Pe(fn,Ln,ur){return(Ln[0]-fn[0])*(ur[1]-fn[1])===(ur[0]-fn[0])*(Ln[1]-fn[1])}function Re(fn,Ln,ur){return fn<=Ln&&Ln<=ur||ur<=Ln&&Ln<=fn}function je(){}var Ce=[[],[[[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 rt(){var fn=1,Ln=1,ur=k,dt=Vt;function xt(yn){var yr=ur(yn);if(Array.isArray(yr))yr=yr.slice().sort(it);else{const Yr=S(yn,Ne);for(yr=he(...Ae(Yr[0],Yr[1],yr),yr);yr[yr.length-1]>=Yr[1];)yr.pop();for(;yr[1]Et(yn,Yr))}function Et(yn,yr){const Yr=yr==null?NaN:+yr;if(isNaN(Yr))throw new Error(`invalid value: ${yr}`);var eo=[],Zo=[];return et(yn,Yr,function(Ii){dt(Ii,yn,Yr),Xe(Ii)>0?eo.push([Ii]):Zo.push(Ii)}),Zo.forEach(function(Ii){for(var Cs=0,ks=eo.length,ba;Cs=yr,Ce[Zs<<2].forEach(js);++Ii0&&Zo0&&Ii=0&&Yr>=0))throw new Error("invalid size");return fn=yr,Ln=Yr,xt},xt.thresholds=function(yn){return arguments.length?(ur=typeof yn=="function"?yn:Array.isArray(yn)?ft(Se.call(yn)):ft(yn),xt):ur},xt.smooth=function(yn){return arguments.length?(dt=yn?Vt:je,xt):dt===Vt},xt}function Ne(fn){return isFinite(fn)?fn:NaN}function Xt(fn,Ln){return fn==null?!1:+fn>=Ln}function Ft(fn){return fn==null||isNaN(fn=+fn)?-1/0:fn}function lt(fn,Ln,ur,dt){const xt=dt-Ln,Et=ur-Ln,et=isFinite(xt)||isFinite(Et)?xt/Et:Math.sign(xt)/Math.sign(Et);return isNaN(et)?fn:fn+et-.5}var Bt=_(91482),At=_.n(Bt);function an(fn,Ln){return Kr(fn)||zn(fn,Ln)||Nn(fn,Ln)||Tt()}function Tt(){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 Nn(fn,Ln){if(fn){if(typeof fn=="string")return mn(fn,Ln);var ur=Object.prototype.toString.call(fn).slice(8,-1);if(ur==="Object"&&fn.constructor&&(ur=fn.constructor.name),ur==="Map"||ur==="Set")return Array.from(fn);if(ur==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ur))return mn(fn,Ln)}}function mn(fn,Ln){(Ln==null||Ln>fn.length)&&(Ln=fn.length);for(var ur=0,dt=new Array(Ln);ur1&&arguments[1]!==void 0?arguments[1]:"image/png",ur=document.createElement("canvas"),dt=ur.getContext("2d");return ur.width=fn.width,ur.height=fn.height,dt.drawImage(fn,0,0,fn.width,fn.height),ur.toDataURL(Ln)}function gi(fn){var Ln=Ui(fn),ur=new Image;return ur.src=Ln.toDataURL(),ur}function Mr(fn,Ln,ur,dt){for(var xt=new Uint8ClampedArray(fn.data),Et=new Uint8ClampedArray(4*ur*dt),et=0;et0){var wt=4*et;Et[wt+0]=xt[wt+0],Et[wt+1]=xt[wt+1],Et[wt+2]=Math.max(xt[wt+2],200),Et[wt+3]=xt[wt+3]}return gi(new ImageData(Et,ur,dt))}function To(fn,Ln,ur){for(var dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:15,xt=Ln,Et=0,et=ur,wt=0,Vt=0;Vt0){var yn=Vt%Ln,yr=Math.floor(Vt/Ln);xt=Math.min(xt,yn),Et=Math.max(Et,yn),et=Math.min(et,yr),wt=Math.max(wt,yr)}return[xt-dt,Et+dt,et-dt,wt+dt]}function ms(fn,Ln,ur,dt,xt,Et){for(var et=[],wt=0,Vt=Ln;Vt0?1:-1}return et}function De(fn,Ln,ur){var dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,xt=fn.map(function(et){return{x:et[0]+Ln,y:et[1]+ur}});if(dt===0)return xt;var Et=At()(xt,dt,!0);return Et}var Oo=function(Ln){return new Promise(function(ur,dt){var xt=new FileReader;xt.readAsDataURL(Ln),xt.onload=function(){return ur(xt.result)},xt.onerror=function(Et){return dt(Et)}})};function $i(fn,Ln,ur){var dt=To(fn,Ln,ur),xt=an(dt,4),Et=xt[0],et=xt[1],wt=xt[2],Vt=xt[3],yn=ms(Et,wt,et,Vt,fn,Ln),yr=Mr(yn,et-Et,Vt-wt);return gi(yr)}function co(fn,Ln,ur){var dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,xt=To(fn,Ln,ur),Et=an(xt,4),et=Et[0],wt=Et[1],Vt=Et[2],yn=Et[3],yr=ms(et,Vt,wt,yn,fn,Ln),Yr=wt-et,eo=yn-Vt,Zo=rt().size([Yr,eo]).smooth(!1).thresholds(2),Ii=Zo(yr);return De(Ii[1].coordinates[0][0],et,Vt,dt)}function Vr(fn,Ln){for(var ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,dt=0;dt0)&&(fn.data[4*dt+0]=0,fn.data[4*dt+1]=0,fn.data[4*dt+2]=0,fn.data[4*dt+3]=0);return gi(fn)}function Ro(fn,Ln,ur,dt){for(var xt=To(Ln,ur,dt),Et=an(xt,4),et=Et[0],wt=Et[1],Vt=Et[2],yn=Et[3],yr=new Uint8ClampedArray(4*(wt-et)*(yn-Vt)).fill(0),Yr=0,eo=Vt;eo0&&(yr[Yr*4]=fn.data[Ii*4],yr[Yr*4+1]=fn.data[Ii*4+1],yr[Yr*4+2]=fn.data[Ii*4+2],yr[Yr*4+3]=fn.data[Ii*4+3]),Yr++}var Cs=new ImageData(yr,wt-et,yn-Vt);return gi(Cs)}function Tn(fn){var Ln=document.createElement("a");Ln.href=fn.src,Ln.download="image",Ln.click()}function nt(fn){var Ln=document.createElement("a");Ln.href=fn.toDataURL("image/png"),Ln.download="image",Ln.click()}function Ct(fn){var Ln=document.createElement("canvas"),ur=Ln.getContext("2d");return Ln.width=fn.width,Ln.height=fn.height,ur==null||ur.drawImage(fn,0,0),ur==null?void 0:ur.getImageData(0,0,fn.width,fn.height)}var Ht=function(Ln){var ur=1024,dt=Ln.naturalWidth,xt=Ln.naturalHeight,Et=ur/Math.max(xt,dt);return{height:xt,width:dt,samScale:Et}},hn=function(Ln,ur){var dt=1024,xt=dt/Math.max(ur,Ln);return{height:ur,width:Ln,samScale:xt}};function En(fn){"@babel/helpers - typeof";return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ln){return typeof Ln}:function(Ln){return Ln&&typeof Symbol=="function"&&Ln.constructor===Symbol&&Ln!==Symbol.prototype?"symbol":typeof Ln},En(fn)}function rn(){"use strict";rn=function(){return fn};var fn={},Ln=Object.prototype,ur=Ln.hasOwnProperty,dt=Object.defineProperty||function(ds,Gi,Jo){ds[Gi]=Jo.value},xt=typeof Symbol=="function"?Symbol:{},Et=xt.iterator||"@@iterator",et=xt.asyncIterator||"@@asyncIterator",wt=xt.toStringTag||"@@toStringTag";function Vt(ds,Gi,Jo){return Object.defineProperty(ds,Gi,{value:Jo,enumerable:!0,configurable:!0,writable:!0}),ds[Gi]}try{Vt({},"")}catch(ds){Vt=function(Jo,Ps,Fs){return Jo[Ps]=Fs}}function yn(ds,Gi,Jo,Ps){var Fs=Gi&&Gi.prototype instanceof eo?Gi:eo,Za=Object.create(Fs.prototype),Nu=new Js(Ps||[]);return dt(Za,"_invoke",{value:ga(ds,Jo,Nu)}),Za}function yr(ds,Gi,Jo){try{return{type:"normal",arg:ds.call(Gi,Jo)}}catch(Ps){return{type:"throw",arg:Ps}}}fn.wrap=yn;var Yr={};function eo(){}function Zo(){}function Ii(){}var Cs={};Vt(Cs,Et,function(){return this});var ks=Object.getPrototypeOf,ba=ks&&ks(ks(Ea([])));ba&&ba!==Ln&&ur.call(ba,Et)&&(Cs=ba);var Zs=Ii.prototype=eo.prototype=Object.create(Cs);function No(ds){["next","throw","return"].forEach(function(Gi){Vt(ds,Gi,function(Jo){return this._invoke(Gi,Jo)})})}function js(ds,Gi){function Jo(Fs,Za,Nu,Tc){var Pc=yr(ds[Fs],ds,Za);if(Pc.type!=="throw"){var tc=Pc.arg,cc=tc.value;return cc&&En(cc)=="object"&&ur.call(cc,"__await")?Gi.resolve(cc.__await).then(function(Uu){Jo("next",Uu,Nu,Tc)},function(Uu){Jo("throw",Uu,Nu,Tc)}):Gi.resolve(cc).then(function(Uu){tc.value=Uu,Nu(tc)},function(Uu){return Jo("throw",Uu,Nu,Tc)})}Tc(Pc.arg)}var Ps;dt(this,"_invoke",{value:function(Za,Nu){function Tc(){return new Gi(function(Pc,tc){Jo(Za,Nu,Pc,tc)})}return Ps=Ps?Ps.then(Tc,Tc):Tc()}})}function ga(ds,Gi,Jo){var Ps="suspendedStart";return function(Fs,Za){if(Ps==="executing")throw new Error("Generator is already running");if(Ps==="completed"){if(Fs==="throw")throw Za;return gl()}for(Jo.method=Fs,Jo.arg=Za;;){var Nu=Jo.delegate;if(Nu){var Tc=da(Nu,Jo);if(Tc){if(Tc===Yr)continue;return Tc}}if(Jo.method==="next")Jo.sent=Jo._sent=Jo.arg;else if(Jo.method==="throw"){if(Ps==="suspendedStart")throw Ps="completed",Jo.arg;Jo.dispatchException(Jo.arg)}else Jo.method==="return"&&Jo.abrupt("return",Jo.arg);Ps="executing";var Pc=yr(ds,Gi,Jo);if(Pc.type==="normal"){if(Ps=Jo.done?"completed":"suspendedYield",Pc.arg===Yr)continue;return{value:Pc.arg,done:Jo.done}}Pc.type==="throw"&&(Ps="completed",Jo.method="throw",Jo.arg=Pc.arg)}}}function da(ds,Gi){var Jo=Gi.method,Ps=ds.iterator[Jo];if(Ps===void 0)return Gi.delegate=null,Jo==="throw"&&ds.iterator.return&&(Gi.method="return",Gi.arg=void 0,da(ds,Gi),Gi.method==="throw")||Jo!=="return"&&(Gi.method="throw",Gi.arg=new TypeError("The iterator does not provide a '"+Jo+"' method")),Yr;var Fs=yr(Ps,ds.iterator,Gi.arg);if(Fs.type==="throw")return Gi.method="throw",Gi.arg=Fs.arg,Gi.delegate=null,Yr;var Za=Fs.arg;return Za?Za.done?(Gi[ds.resultName]=Za.value,Gi.next=ds.nextLoc,Gi.method!=="return"&&(Gi.method="next",Gi.arg=void 0),Gi.delegate=null,Yr):Za:(Gi.method="throw",Gi.arg=new TypeError("iterator result is not an object"),Gi.delegate=null,Yr)}function Il(ds){var Gi={tryLoc:ds[0]};1 in ds&&(Gi.catchLoc=ds[1]),2 in ds&&(Gi.finallyLoc=ds[2],Gi.afterLoc=ds[3]),this.tryEntries.push(Gi)}function Al(ds){var Gi=ds.completion||{};Gi.type="normal",delete Gi.arg,ds.completion=Gi}function Js(ds){this.tryEntries=[{tryLoc:"root"}],ds.forEach(Il,this),this.reset(!0)}function Ea(ds){if(ds){var Gi=ds[Et];if(Gi)return Gi.call(ds);if(typeof ds.next=="function")return ds;if(!isNaN(ds.length)){var Jo=-1,Ps=function Fs(){for(;++Jo=0;--Fs){var Za=this.tryEntries[Fs],Nu=Za.completion;if(Za.tryLoc==="root")return Ps("end");if(Za.tryLoc<=this.prev){var Tc=ur.call(Za,"catchLoc"),Pc=ur.call(Za,"finallyLoc");if(Tc&&Pc){if(this.prev=0;--Ps){var Fs=this.tryEntries[Ps];if(Fs.tryLoc<=this.prev&&ur.call(Fs,"finallyLoc")&&this.prev=0;--Jo){var Ps=this.tryEntries[Jo];if(Ps.finallyLoc===Gi)return this.complete(Ps.completion,Ps.afterLoc),Al(Ps),Yr}},catch:function(Gi){for(var Jo=this.tryEntries.length-1;Jo>=0;--Jo){var Ps=this.tryEntries[Jo];if(Ps.tryLoc===Gi){var Fs=Ps.completion;if(Fs.type==="throw"){var Za=Fs.arg;Al(Ps)}return Za}}throw new Error("illegal catch attempt")},delegateYield:function(Gi,Jo,Ps){return this.delegate={iterator:Ea(Gi),resultName:Jo,nextLoc:Ps},this.method==="next"&&(this.arg=void 0),Yr}},fn}function Jt(fn,Ln,ur,dt,xt,Et,et){try{var wt=fn[Et](et),Vt=wt.value}catch(yn){ur(yn);return}wt.done?Ln(Vt):Promise.resolve(Vt).then(dt,xt)}function Mt(fn){return function(){var Ln=this,ur=arguments;return new Promise(function(dt,xt){var Et=fn.apply(Ln,ur);function et(Vt){Jt(Et,dt,xt,et,wt,"next",Vt)}function wt(Vt){Jt(Et,dt,xt,et,wt,"throw",Vt)}et(void 0)})}}function Qt(fn,Ln){if(!(fn instanceof Ln))throw new TypeError("Cannot call a class as a function")}function Dn(fn,Ln){for(var ur=0;ur1&&yn[1]!==void 0?yn[1]:"float32",et=new V,typeof xt!="string"){Yr.next=6;break}Yr.t0=et.load(xt),Yr.next=9;break;case 6:return Yr.next=8,et.parse(xt);case 8:Yr.t0=Yr.sent;case 9:wt=Yr.t0,Vt=new Pr.Tensor(Et,wt.data,wt.shape),this.tensor=Vt;case 12:case"end":return Yr.stop()}},dt,this)}));function ur(dt){return Ln.apply(this,arguments)}return ur}()},{key:"predict",value:function(){var Ln=Mt(rn().mark(function dt(xt){var Et,et,wt;return rn().wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:if(yn.prev=0,!(this.model===null||xt===null||this.tensor===null||this.modelScale===null)){yn.next=6;break}return console.log("model not loaded"),yn.abrupt("return");case 6:if(Et=C({clicks:xt,tensor:this.tensor,modelScale:this.modelScale}),Et!==void 0){yn.next=9;break}return yn.abrupt("return");case 9:return yn.next=11,this.model.run(Et);case 11:return et=yn.sent,wt=et[this.model.outputNames[0]],yn.abrupt("return",wt);case 14:yn.next=20;break;case 16:return yn.prev=16,yn.t0=yn.catch(0),console.log(yn.t0),yn.abrupt("return");case 20:case"end":return yn.stop()}},dt,this,[[0,16]])}));function ur(dt){return Ln.apply(this,arguments)}return ur}()},{key:"predictByBox",value:function(){var Ln=Mt(rn().mark(function dt(xt){return rn().wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return et.abrupt("return",xt);case 1:case"end":return et.stop()}},dt)}));function ur(dt){return Ln.apply(this,arguments)}return ur}()},{key:"exportMaskImage",value:function(ur){if(this.imageData!==void 0)return Mr(this.imageData,ur.data,ur.dims[3],ur.dims[2])}},{key:"exportMaskClip",value:function(ur){return $i(ur.data,ur.dims[3],ur.dims[2])}},{key:"exportImage",value:function(ur){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.imageData!==void 0)return Vr(this.imageData,ur.data,dt)}},{key:"exportImageClip",value:function(ur){if(this.imageData!==void 0)return Ro(this.imageData,ur.data,ur.dims[3],ur.dims[2])}},{key:"exportVector",value:function(ur){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;return co(ur.data,ur.dims[3],ur.dims[2],dt)}},{key:"setWasmUrl",value:function(ur){M.env.wasm.wasmPaths=ur}},{key:"getImageScale",value:function(ur){var dt=ur.width,xt=ur.height;this.modelScale=hn(dt,xt)}}]),fn}();function Io(fn){"@babel/helpers - typeof";return Io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ln){return typeof Ln}:function(Ln){return Ln&&typeof Symbol=="function"&&Ln.constructor===Symbol&&Ln!==Symbol.prototype?"symbol":typeof Ln},Io(fn)}function On(fn,Ln){return Jn(fn)||ir(fn,Ln)||qr(fn,Ln)||zr()}function zr(){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 qr(fn,Ln){if(fn){if(typeof fn=="string")return Wi(fn,Ln);var ur=Object.prototype.toString.call(fn).slice(8,-1);if(ur==="Object"&&fn.constructor&&(ur=fn.constructor.name),ur==="Map"||ur==="Set")return Array.from(fn);if(ur==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ur))return Wi(fn,Ln)}}function Wi(fn,Ln){(Ln==null||Ln>fn.length)&&(Ln=fn.length);for(var ur=0,dt=new Array(Ln);ur0&&arguments[0]!==void 0?arguments[0]:256,ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"tms";$t(this,fn),Zn(this,"tileSize",void 0),Zn(this,"type",void 0),Zn(this,"initialResolution",void 0),Zn(this,"originShift",void 0),this.tileSize=Ln,this.type=ur,this.initialResolution=2*Math.PI*6378137/this.tileSize,this.originShift=2*Math.PI*6378137/2}return wn(fn,[{key:"lngLatToMeters",value:function(ur,dt){var xt=ur*this.originShift/180,Et=Math.log(Math.tan((90+dt)*Math.PI/360))/(Math.PI/180);return Et=Et*this.originShift/180,[xt,Et]}},{key:"metersToLngLat",value:function(ur,dt){var xt=ur/this.originShift*180,Et=dt/this.originShift*180;return Et=180/Math.PI*(2*Math.atan(Math.exp(Et*Math.PI/180))-Math.PI/2),[xt,Et]}},{key:"pixelsToMeters",value:function(ur,dt,xt){var Et=this.resolution(xt),et=ur*Et-this.originShift,wt=(this.type==="tms"?dt:Math.pow(2,xt)*256-dt)*Et-this.originShift;return[et,wt]}},{key:"metersToPixels",value:function(ur,dt,xt){var Et=this.resolution(xt),et=(ur+this.originShift)/Et,wt=(dt+this.originShift)/Et;return wt=this.type==="tms"?wt:Math.pow(2,xt)*256-wt,[et,wt]}},{key:"metersToTile",value:function(ur,dt,xt){var Et=this.metersToPixels(ur,dt,xt),et=On(Et,2),wt=et[0],Vt=et[1];return this.pixelsToTile(wt,Vt)}},{key:"tileToMeters",value:function(ur,dt,xt){return this.pixelsToMeters(ur*this.tileSize,dt*this.tileSize,xt)}},{key:"tileToLngLat",value:function(ur,dt,xt){var Et=this.tileToMeters(ur,dt,xt),et=On(Et,2),wt=et[0],Vt=et[1];return this.metersToLngLat(wt,Vt)}},{key:"pixelsToTile",value:function(ur,dt){var xt=Math.floor(Math.ceil(ur/this.tileSize)-1),Et=Math.floor(Math.ceil(dt/this.tileSize)-1);return[xt,Et]}},{key:"pixelsToRaster",value:function(ur,dt,xt){var Et=this.tileSize<fn.length)&&(Ln=fn.length);for(var ur=0,dt=new Array(Ln);ur=0;--Fs){var Za=this.tryEntries[Fs],Nu=Za.completion;if(Za.tryLoc==="root")return Ps("end");if(Za.tryLoc<=this.prev){var Tc=ur.call(Za,"catchLoc"),Pc=ur.call(Za,"finallyLoc");if(Tc&&Pc){if(this.prev=0;--Ps){var Fs=this.tryEntries[Ps];if(Fs.tryLoc<=this.prev&&ur.call(Fs,"finallyLoc")&&this.prev=0;--Jo){var Ps=this.tryEntries[Jo];if(Ps.finallyLoc===Gi)return this.complete(Ps.completion,Ps.afterLoc),Al(Ps),Yr}},catch:function(Gi){for(var Jo=this.tryEntries.length-1;Jo>=0;--Jo){var Ps=this.tryEntries[Jo];if(Ps.tryLoc===Gi){var Fs=Ps.completion;if(Fs.type==="throw"){var Za=Fs.arg;Al(Ps)}return Za}}throw new Error("illegal catch attempt")},delegateYield:function(Gi,Jo,Ps){return this.delegate={iterator:Ea(Gi),resultName:Jo,nextLoc:Ps},this.method==="next"&&(this.arg=void 0),Yr}},fn}function Nr(fn,Ln,ur,dt,xt,Et,et){try{var wt=fn[Et](et),Vt=wt.value}catch(yn){ur(yn);return}wt.done?Ln(Vt):Promise.resolve(Vt).then(dt,xt)}function bi(fn){return function(){var Ln=this,ur=arguments;return new Promise(function(dt,xt){var Et=fn.apply(Ln,ur);function et(Vt){Nr(Et,dt,xt,et,wt,"next",Vt)}function wt(Vt){Nr(Et,dt,xt,et,wt,"throw",Vt)}et(void 0)})}}var Ei=null,Yi=function(Ln){var ur=In(Ln,4),dt=ur[0],xt=ur[1],Et=ur[2],et=ur[3];return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[dt,xt],[dt,et],[Et,et],[Et,xt],[dt,xt]]]}}]}},di=function(Ln){return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[Ln]}}]}},Wr=function(){return{type:"FeatureCollection",features:[]}};function Ni(fn){"@babel/helpers - typeof";return Ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ln){return typeof Ln}:function(Ln){return Ln&&typeof Symbol=="function"&&Ln.constructor===Symbol&&Ln!==Symbol.prototype?"symbol":typeof Ln},Ni(fn)}function kr(fn,Ln){return ls(fn)||yo(fn,Ln)||fi(fn,Ln)||Xr()}function Xr(){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 yo(fn,Ln){var ur=fn==null?null:typeof Symbol!="undefined"&&fn[Symbol.iterator]||fn["@@iterator"];if(ur!=null){var dt,xt,Et,et,wt=[],Vt=!0,yn=!1;try{if(Et=(ur=ur.call(fn)).next,Ln===0){if(Object(ur)!==ur)return;Vt=!1}else for(;!(Vt=(dt=Et.call(ur)).done)&&(wt.push(dt.value),wt.length!==Ln);Vt=!0);}catch(yr){yn=!0,xt=yr}finally{try{if(!Vt&&ur.return!=null&&(et=ur.return(),Object(et)!==et))return}finally{if(yn)throw xt}}return wt}}function ls(fn){if(Array.isArray(fn))return fn}function Sr(){"use strict";Sr=function(){return fn};var fn={},Ln=Object.prototype,ur=Ln.hasOwnProperty,dt=Object.defineProperty||function(ds,Gi,Jo){ds[Gi]=Jo.value},xt=typeof Symbol=="function"?Symbol:{},Et=xt.iterator||"@@iterator",et=xt.asyncIterator||"@@asyncIterator",wt=xt.toStringTag||"@@toStringTag";function Vt(ds,Gi,Jo){return Object.defineProperty(ds,Gi,{value:Jo,enumerable:!0,configurable:!0,writable:!0}),ds[Gi]}try{Vt({},"")}catch(ds){Vt=function(Jo,Ps,Fs){return Jo[Ps]=Fs}}function yn(ds,Gi,Jo,Ps){var Fs=Gi&&Gi.prototype instanceof eo?Gi:eo,Za=Object.create(Fs.prototype),Nu=new Js(Ps||[]);return dt(Za,"_invoke",{value:ga(ds,Jo,Nu)}),Za}function yr(ds,Gi,Jo){try{return{type:"normal",arg:ds.call(Gi,Jo)}}catch(Ps){return{type:"throw",arg:Ps}}}fn.wrap=yn;var Yr={};function eo(){}function Zo(){}function Ii(){}var Cs={};Vt(Cs,Et,function(){return this});var ks=Object.getPrototypeOf,ba=ks&&ks(ks(Ea([])));ba&&ba!==Ln&&ur.call(ba,Et)&&(Cs=ba);var Zs=Ii.prototype=eo.prototype=Object.create(Cs);function No(ds){["next","throw","return"].forEach(function(Gi){Vt(ds,Gi,function(Jo){return this._invoke(Gi,Jo)})})}function js(ds,Gi){function Jo(Fs,Za,Nu,Tc){var Pc=yr(ds[Fs],ds,Za);if(Pc.type!=="throw"){var tc=Pc.arg,cc=tc.value;return cc&&Ni(cc)=="object"&&ur.call(cc,"__await")?Gi.resolve(cc.__await).then(function(Uu){Jo("next",Uu,Nu,Tc)},function(Uu){Jo("throw",Uu,Nu,Tc)}):Gi.resolve(cc).then(function(Uu){tc.value=Uu,Nu(tc)},function(Uu){return Jo("throw",Uu,Nu,Tc)})}Tc(Pc.arg)}var Ps;dt(this,"_invoke",{value:function(Za,Nu){function Tc(){return new Gi(function(Pc,tc){Jo(Za,Nu,Pc,tc)})}return Ps=Ps?Ps.then(Tc,Tc):Tc()}})}function ga(ds,Gi,Jo){var Ps="suspendedStart";return function(Fs,Za){if(Ps==="executing")throw new Error("Generator is already running");if(Ps==="completed"){if(Fs==="throw")throw Za;return gl()}for(Jo.method=Fs,Jo.arg=Za;;){var Nu=Jo.delegate;if(Nu){var Tc=da(Nu,Jo);if(Tc){if(Tc===Yr)continue;return Tc}}if(Jo.method==="next")Jo.sent=Jo._sent=Jo.arg;else if(Jo.method==="throw"){if(Ps==="suspendedStart")throw Ps="completed",Jo.arg;Jo.dispatchException(Jo.arg)}else Jo.method==="return"&&Jo.abrupt("return",Jo.arg);Ps="executing";var Pc=yr(ds,Gi,Jo);if(Pc.type==="normal"){if(Ps=Jo.done?"completed":"suspendedYield",Pc.arg===Yr)continue;return{value:Pc.arg,done:Jo.done}}Pc.type==="throw"&&(Ps="completed",Jo.method="throw",Jo.arg=Pc.arg)}}}function da(ds,Gi){var Jo=Gi.method,Ps=ds.iterator[Jo];if(Ps===void 0)return Gi.delegate=null,Jo==="throw"&&ds.iterator.return&&(Gi.method="return",Gi.arg=void 0,da(ds,Gi),Gi.method==="throw")||Jo!=="return"&&(Gi.method="throw",Gi.arg=new TypeError("The iterator does not provide a '"+Jo+"' method")),Yr;var Fs=yr(Ps,ds.iterator,Gi.arg);if(Fs.type==="throw")return Gi.method="throw",Gi.arg=Fs.arg,Gi.delegate=null,Yr;var Za=Fs.arg;return Za?Za.done?(Gi[ds.resultName]=Za.value,Gi.next=ds.nextLoc,Gi.method!=="return"&&(Gi.method="next",Gi.arg=void 0),Gi.delegate=null,Yr):Za:(Gi.method="throw",Gi.arg=new TypeError("iterator result is not an object"),Gi.delegate=null,Yr)}function Il(ds){var Gi={tryLoc:ds[0]};1 in ds&&(Gi.catchLoc=ds[1]),2 in ds&&(Gi.finallyLoc=ds[2],Gi.afterLoc=ds[3]),this.tryEntries.push(Gi)}function Al(ds){var Gi=ds.completion||{};Gi.type="normal",delete Gi.arg,ds.completion=Gi}function Js(ds){this.tryEntries=[{tryLoc:"root"}],ds.forEach(Il,this),this.reset(!0)}function Ea(ds){if(ds){var Gi=ds[Et];if(Gi)return Gi.call(ds);if(typeof ds.next=="function")return ds;if(!isNaN(ds.length)){var Jo=-1,Ps=function Fs(){for(;++Jo=0;--Fs){var Za=this.tryEntries[Fs],Nu=Za.completion;if(Za.tryLoc==="root")return Ps("end");if(Za.tryLoc<=this.prev){var Tc=ur.call(Za,"catchLoc"),Pc=ur.call(Za,"finallyLoc");if(Tc&&Pc){if(this.prev=0;--Ps){var Fs=this.tryEntries[Ps];if(Fs.tryLoc<=this.prev&&ur.call(Fs,"finallyLoc")&&this.prev=0;--Jo){var Ps=this.tryEntries[Jo];if(Ps.finallyLoc===Gi)return this.complete(Ps.completion,Ps.afterLoc),Al(Ps),Yr}},catch:function(Gi){for(var Jo=this.tryEntries.length-1;Jo>=0;--Jo){var Ps=this.tryEntries[Jo];if(Ps.tryLoc===Gi){var Fs=Ps.completion;if(Fs.type==="throw"){var Za=Fs.arg;Al(Ps)}return Za}}throw new Error("illegal catch attempt")},delegateYield:function(Gi,Jo,Ps){return this.delegate={iterator:Ea(Gi),resultName:Jo,nextLoc:Ps},this.method==="next"&&(this.arg=void 0),Yr}},fn}function hs(fn){return mo(fn)||Po(fn)||fi(fn)||ta()}function ta(){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 fi(fn,Ln){if(fn){if(typeof fn=="string")return or(fn,Ln);var ur=Object.prototype.toString.call(fn).slice(8,-1);if(ur==="Object"&&fn.constructor&&(ur=fn.constructor.name),ur==="Map"||ur==="Set")return Array.from(fn);if(ur==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ur))return or(fn,Ln)}}function Po(fn){if(typeof Symbol!="undefined"&&fn[Symbol.iterator]!=null||fn["@@iterator"]!=null)return Array.from(fn)}function mo(fn){if(Array.isArray(fn))return or(fn)}function or(fn,Ln){(Ln==null||Ln>fn.length)&&(Ln=fn.length);for(var ur=0,dt=new Array(Ln);ur1&&Zo[1]!==void 0?Zo[1]:5,Cs.next=3,this.exportVector(et,Vt);case 3:return yn=Cs.sent,yr=this.imageBounds,Yr=yn.map(function(ks){var ba=[ks.x*wt.metersPerpixelsX+yr[0],(wt.imageOption.height-ks.y)*wt.metersPerpixelsY+yr[1]],Zs=wt.mapHelper.metersToLngLat(ba[0],ba[1]);return Zs}),eo=di(Yr),Cs.abrupt("return",eo);case 8:case"end":return Cs.stop()}},Et,this)}));function xt(Et){return dt.apply(this,arguments)}return xt}()},{key:"lngLat2ImagePixel",value:function(xt){if(this.imageBounds){var Et=this.mapHelper.lngLatToMeters(xt[0],xt[1]),et=kr(Et,2),wt=et[0],Vt=et[1],yn=(wt-this.imageBounds[0])/this.metersPerpixelsX,yr=(Vt-this.imageBounds[1])/this.metersPerpixelsY;return yr=this.imageOption.height-yr,[yn,yr]}}}]),ur}(Hi)},12722:function(mt,q,_){"use strict";_.d(q,{T6:function(){return F},VD:function(){return K},WE:function(){return R},Yt:function(){return he},lC:function(){return C},py:function(){return V},rW:function(){return M},s:function(){return S},ve:function(){return N},vq:function(){return k}});var v=_(12187);function M(fe,be,Ae){return{r:(0,v.sh)(fe,255)*255,g:(0,v.sh)(be,255)*255,b:(0,v.sh)(Ae,255)*255}}function C(fe,be,Ae){fe=(0,v.sh)(fe,255),be=(0,v.sh)(be,255),Ae=(0,v.sh)(Ae,255);var xe=Math.max(fe,be,Ae),Se=Math.min(fe,be,Ae),it=0,Xe=0,ft=(xe+Se)/2;if(xe===Se)Xe=0,it=0;else{var Me=xe-Se;switch(Xe=ft>.5?Me/(2-xe-Se):Me/(xe+Se),xe){case fe:it=(be-Ae)/Me+(be1&&(Ae-=1),Ae<1/6?fe+(be-fe)*(6*Ae):Ae<1/2?be:Ae<2/3?fe+(be-fe)*(2/3-Ae)*6:fe}function N(fe,be,Ae){var xe,Se,it;if(fe=(0,v.sh)(fe,360),be=(0,v.sh)(be,100),Ae=(0,v.sh)(Ae,100),be===0)Se=Ae,it=Ae,xe=Ae;else{var Xe=Ae<.5?Ae*(1+be):Ae+be-Ae*be,ft=2*Ae-Xe;xe=x(ft,Xe,fe+1/3),Se=x(ft,Xe,fe),it=x(ft,Xe,fe-1/3)}return{r:xe*255,g:Se*255,b:it*255}}function V(fe,be,Ae){fe=(0,v.sh)(fe,255),be=(0,v.sh)(be,255),Ae=(0,v.sh)(Ae,255);var xe=Math.max(fe,be,Ae),Se=Math.min(fe,be,Ae),it=0,Xe=xe,ft=xe-Se,Me=xe===0?0:ft/xe;if(xe===Se)it=0;else{switch(xe){case fe:it=(be-Ae)/ft+(be>16,g:(fe&65280)>>8,b:fe&255}}},93796:function(mt,q,_){"use strict";_.d(q,{R:function(){return v}});var v={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(mt,q,_){"use strict";_.d(q,{uA:function(){return x}});var v=_(12722),M=_(93796),C=_(12187);function x(K){var he={r:0,g:0,b:0},fe=1,be=null,Ae=null,xe=null,Se=!1,it=!1;return typeof K=="string"&&(K=T(K)),typeof K=="object"&&(F(K.r)&&F(K.g)&&F(K.b)?(he=(0,v.rW)(K.r,K.g,K.b),Se=!0,it=String(K.r).substr(-1)==="%"?"prgb":"rgb"):F(K.h)&&F(K.s)&&F(K.v)?(be=(0,C.JX)(K.s),Ae=(0,C.JX)(K.v),he=(0,v.WE)(K.h,be,Ae),Se=!0,it="hsv"):F(K.h)&&F(K.s)&&F(K.l)&&(be=(0,C.JX)(K.s),xe=(0,C.JX)(K.l),he=(0,v.ve)(K.h,be,xe),Se=!0,it="hsl"),Object.prototype.hasOwnProperty.call(K,"a")&&(fe=K.a)),fe=(0,C.Yq)(fe),{ok:Se,format:K.format||it,r:Math.min(255,Math.max(he.r,0)),g:Math.min(255,Math.max(he.g,0)),b:Math.min(255,Math.max(he.b,0)),a:fe}}var N="[-\\+]?\\d+%?",V="[-\\+]?\\d*\\.\\d+%?",R="(?:".concat(V,")|(?:").concat(N,")"),k="[\\s|\\(]+(".concat(R,")[,|\\s]+(").concat(R,")[,|\\s]+(").concat(R,")\\s*\\)?"),S="[\\s|\\(]+(".concat(R,")[,|\\s]+(").concat(R,")[,|\\s]+(").concat(R,")[,|\\s]+(").concat(R,")\\s*\\)?"),p={CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+k),rgba:new RegExp("rgba"+S),hsl:new RegExp("hsl"+k),hsla:new RegExp("hsla"+S),hsv:new RegExp("hsv"+k),hsva:new RegExp("hsva"+S),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 T(K){if(K=K.trim().toLowerCase(),K.length===0)return!1;var he=!1;if(M.R[K])K=M.R[K],he=!0;else if(K==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var fe=p.rgb.exec(K);return fe?{r:fe[1],g:fe[2],b:fe[3]}:(fe=p.rgba.exec(K),fe?{r:fe[1],g:fe[2],b:fe[3],a:fe[4]}:(fe=p.hsl.exec(K),fe?{h:fe[1],s:fe[2],l:fe[3]}:(fe=p.hsla.exec(K),fe?{h:fe[1],s:fe[2],l:fe[3],a:fe[4]}:(fe=p.hsv.exec(K),fe?{h:fe[1],s:fe[2],v:fe[3]}:(fe=p.hsva.exec(K),fe?{h:fe[1],s:fe[2],v:fe[3],a:fe[4]}:(fe=p.hex8.exec(K),fe?{r:(0,v.VD)(fe[1]),g:(0,v.VD)(fe[2]),b:(0,v.VD)(fe[3]),a:(0,v.T6)(fe[4]),format:he?"name":"hex8"}:(fe=p.hex6.exec(K),fe?{r:(0,v.VD)(fe[1]),g:(0,v.VD)(fe[2]),b:(0,v.VD)(fe[3]),format:he?"name":"hex"}:(fe=p.hex4.exec(K),fe?{r:(0,v.VD)(fe[1]+fe[1]),g:(0,v.VD)(fe[2]+fe[2]),b:(0,v.VD)(fe[3]+fe[3]),a:(0,v.T6)(fe[4]+fe[4]),format:he?"name":"hex8"}:(fe=p.hex3.exec(K),fe?{r:(0,v.VD)(fe[1]+fe[1]),g:(0,v.VD)(fe[2]+fe[2]),b:(0,v.VD)(fe[3]+fe[3]),format:he?"name":"hex"}:!1)))))))))}function F(K){return!!p.CSS_UNIT.exec(String(K))}},64993:function(mt,q,_){"use strict";_.d(q,{C:function(){return N}});var v=_(12722),M=_(93796),C=_(9915),x=_(12187),N=function(){function R(k,S){k===void 0&&(k=""),S===void 0&&(S={});var p;if(k instanceof R)return k;typeof k=="number"&&(k=(0,v.Yt)(k)),this.originalInput=k;var T=(0,C.uA)(k);this.originalInput=k,this.r=T.r,this.g=T.g,this.b=T.b,this.a=T.a,this.roundA=Math.round(100*this.a)/100,this.format=(p=S.format)!==null&&p!==void 0?p:T.format,this.gradientType=S.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=T.ok}return R.prototype.isDark=function(){return this.getBrightness()<128},R.prototype.isLight=function(){return!this.isDark()},R.prototype.getBrightness=function(){var k=this.toRgb();return(k.r*299+k.g*587+k.b*114)/1e3},R.prototype.getLuminance=function(){var k=this.toRgb(),S,p,T,F=k.r/255,K=k.g/255,he=k.b/255;return F<=.03928?S=F/12.92:S=Math.pow((F+.055)/1.055,2.4),K<=.03928?p=K/12.92:p=Math.pow((K+.055)/1.055,2.4),he<=.03928?T=he/12.92:T=Math.pow((he+.055)/1.055,2.4),.2126*S+.7152*p+.0722*T},R.prototype.getAlpha=function(){return this.a},R.prototype.setAlpha=function(k){return this.a=(0,x.Yq)(k),this.roundA=Math.round(100*this.a)/100,this},R.prototype.isMonochrome=function(){var k=this.toHsl().s;return k===0},R.prototype.toHsv=function(){var k=(0,v.py)(this.r,this.g,this.b);return{h:k.h*360,s:k.s,v:k.v,a:this.a}},R.prototype.toHsvString=function(){var k=(0,v.py)(this.r,this.g,this.b),S=Math.round(k.h*360),p=Math.round(k.s*100),T=Math.round(k.v*100);return this.a===1?"hsv(".concat(S,", ").concat(p,"%, ").concat(T,"%)"):"hsva(".concat(S,", ").concat(p,"%, ").concat(T,"%, ").concat(this.roundA,")")},R.prototype.toHsl=function(){var k=(0,v.lC)(this.r,this.g,this.b);return{h:k.h*360,s:k.s,l:k.l,a:this.a}},R.prototype.toHslString=function(){var k=(0,v.lC)(this.r,this.g,this.b),S=Math.round(k.h*360),p=Math.round(k.s*100),T=Math.round(k.l*100);return this.a===1?"hsl(".concat(S,", ").concat(p,"%, ").concat(T,"%)"):"hsla(".concat(S,", ").concat(p,"%, ").concat(T,"%, ").concat(this.roundA,")")},R.prototype.toHex=function(k){return k===void 0&&(k=!1),(0,v.vq)(this.r,this.g,this.b,k)},R.prototype.toHexString=function(k){return k===void 0&&(k=!1),"#"+this.toHex(k)},R.prototype.toHex8=function(k){return k===void 0&&(k=!1),(0,v.s)(this.r,this.g,this.b,this.a,k)},R.prototype.toHex8String=function(k){return k===void 0&&(k=!1),"#"+this.toHex8(k)},R.prototype.toHexShortString=function(k){return k===void 0&&(k=!1),this.a===1?this.toHexString(k):this.toHex8String(k)},R.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},R.prototype.toRgbString=function(){var k=Math.round(this.r),S=Math.round(this.g),p=Math.round(this.b);return this.a===1?"rgb(".concat(k,", ").concat(S,", ").concat(p,")"):"rgba(".concat(k,", ").concat(S,", ").concat(p,", ").concat(this.roundA,")")},R.prototype.toPercentageRgb=function(){var k=function(S){return"".concat(Math.round((0,x.sh)(S,255)*100),"%")};return{r:k(this.r),g:k(this.g),b:k(this.b),a:this.a}},R.prototype.toPercentageRgbString=function(){var k=function(S){return Math.round((0,x.sh)(S,255)*100)};return this.a===1?"rgb(".concat(k(this.r),"%, ").concat(k(this.g),"%, ").concat(k(this.b),"%)"):"rgba(".concat(k(this.r),"%, ").concat(k(this.g),"%, ").concat(k(this.b),"%, ").concat(this.roundA,")")},R.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var k="#"+(0,v.vq)(this.r,this.g,this.b,!1),S=0,p=Object.entries(M.R);S=0,F=!S&&T&&(k.startsWith("hex")||k==="name");return F?k==="name"&&this.a===0?this.toName():this.toRgbString():(k==="rgb"&&(p=this.toRgbString()),k==="prgb"&&(p=this.toPercentageRgbString()),(k==="hex"||k==="hex6")&&(p=this.toHexString()),k==="hex3"&&(p=this.toHexString(!0)),k==="hex4"&&(p=this.toHex8String(!0)),k==="hex8"&&(p=this.toHex8String()),k==="name"&&(p=this.toName()),k==="hsl"&&(p=this.toHslString()),k==="hsv"&&(p=this.toHsvString()),p||this.toHexString())},R.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},R.prototype.clone=function(){return new R(this.toString())},R.prototype.lighten=function(k){k===void 0&&(k=10);var S=this.toHsl();return S.l+=k/100,S.l=(0,x.V2)(S.l),new R(S)},R.prototype.brighten=function(k){k===void 0&&(k=10);var S=this.toRgb();return S.r=Math.max(0,Math.min(255,S.r-Math.round(255*-(k/100)))),S.g=Math.max(0,Math.min(255,S.g-Math.round(255*-(k/100)))),S.b=Math.max(0,Math.min(255,S.b-Math.round(255*-(k/100)))),new R(S)},R.prototype.darken=function(k){k===void 0&&(k=10);var S=this.toHsl();return S.l-=k/100,S.l=(0,x.V2)(S.l),new R(S)},R.prototype.tint=function(k){return k===void 0&&(k=10),this.mix("white",k)},R.prototype.shade=function(k){return k===void 0&&(k=10),this.mix("black",k)},R.prototype.desaturate=function(k){k===void 0&&(k=10);var S=this.toHsl();return S.s-=k/100,S.s=(0,x.V2)(S.s),new R(S)},R.prototype.saturate=function(k){k===void 0&&(k=10);var S=this.toHsl();return S.s+=k/100,S.s=(0,x.V2)(S.s),new R(S)},R.prototype.greyscale=function(){return this.desaturate(100)},R.prototype.spin=function(k){var S=this.toHsl(),p=(S.h+k)%360;return S.h=p<0?360+p:p,new R(S)},R.prototype.mix=function(k,S){S===void 0&&(S=50);var p=this.toRgb(),T=new R(k).toRgb(),F=S/100,K={r:(T.r-p.r)*F+p.r,g:(T.g-p.g)*F+p.g,b:(T.b-p.b)*F+p.b,a:(T.a-p.a)*F+p.a};return new R(K)},R.prototype.analogous=function(k,S){k===void 0&&(k=6),S===void 0&&(S=30);var p=this.toHsl(),T=360/S,F=[this];for(p.h=(p.h-(T*k>>1)+720)%360;--k;)p.h=(p.h+T)%360,F.push(new R(p));return F},R.prototype.complement=function(){var k=this.toHsl();return k.h=(k.h+180)%360,new R(k)},R.prototype.monochromatic=function(k){k===void 0&&(k=6);for(var S=this.toHsv(),p=S.h,T=S.s,F=S.v,K=[],he=1/k;k--;)K.push(new R({h:p,s:T,v:F})),F=(F+he)%1;return K},R.prototype.splitcomplement=function(){var k=this.toHsl(),S=k.h;return[this,new R({h:(S+72)%360,s:k.s,l:k.l}),new R({h:(S+216)%360,s:k.s,l:k.l})]},R.prototype.onBackground=function(k){var S=this.toRgb(),p=new R(k).toRgb(),T=S.a+p.a*(1-S.a);return new R({r:(S.r*S.a+p.r*p.a*(1-S.a))/T,g:(S.g*S.a+p.g*p.a*(1-S.a))/T,b:(S.b*S.a+p.b*p.a*(1-S.a))/T,a:T})},R.prototype.triad=function(){return this.polyad(3)},R.prototype.tetrad=function(){return this.polyad(4)},R.prototype.polyad=function(k){for(var S=this.toHsl(),p=S.h,T=[this],F=360/k,K=1;K1)&&(k=1),k}function V(k){return k<=1?"".concat(Number(k)*100,"%"):k}function R(k){return k.length===1?"0"+k:String(k)}},78576:function(mt,q,_){"use strict";_.d(q,{iv:function(){return fn}});function v(dt){if(dt.sheet)return dt.sheet;for(var xt=0;xt0?F(Me,--Xe):0,Se--,ft===10&&(Se=1,xe--),ft}function je(){return ft=Xe2||Xt(ft)>3?"":" "}function Tt(dt){for(;je();)switch(Xt(ft)){case 0:append(Kr(Xe-1),dt);break;case 2:append(Bt(ft),dt);break;default:append(from(ft),dt)}return dt}function Nn(dt,xt){for(;--xt&&je()&&!(ft<48||ft>102||ft>57&&ft<65||ft>70&&ft<97););return Ne(dt,rt()+(xt<6&&Ce()==32&&je()==32))}function mn(dt){for(;je();)switch(ft){case dt:return Xe;case 34:case 39:dt!==34&&dt!==39&&mn(ft);break;case 40:dt===41&&mn(dt);break;case 92:je();break}return Xe}function zn(dt,xt){for(;je()&&dt+ft!==47+10;)if(dt+ft===42+42&&Ce()===47)break;return"/*"+Ne(xt,Xe-1)+"*"+N(dt===47?dt:je())}function Kr(dt){for(;!Xt(Ce());)je();return Ne(dt,Xe)}var Ui="-ms-",go="-moz-",gi="-webkit-",Mr="comm",To="rule",ms="decl",De="@page",Oo="@media",$i="@import",co="@charset",Vr="@viewport",Ro="@supports",Tn="@document",nt="@namespace",Ct="@keyframes",Ht="@font-face",hn="@counter-style",En="@font-feature-values",rn="@layer";function Jt(dt,xt){for(var Et="",et=fe(dt),wt=0;wt-1&&!dt.return)switch(dt.type){case DECLARATION:dt.return=prefix(dt.value,dt.length,Et);return;case KEYFRAMES:return serialize([copy(dt,{value:replace(dt.value,"@","@"+WEBKIT)})],et);case RULESET:if(dt.length)return combine(dt.props,function(wt){switch(match(wt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(dt,{props:[replace(wt,/:(read-\w+)/,":"+MOZ+"$1")]})],et);case"::placeholder":return serialize([copy(dt,{props:[replace(wt,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(dt,{props:[replace(wt,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(dt,{props:[replace(wt,/:(plac\w+)/,MS+"input-$1")]})],et)}return""})}}function wr(dt){switch(dt.type){case RULESET:dt.props=dt.props.map(function(xt){return combine(tokenize(xt),function(Et,et,wt){switch(charat(Et,0)){case 12:return substr(Et,1,strlen(Et));case 0:case 40:case 43:case 62:case 126:return Et;case 58:wt[++et]==="global"&&(wt[et]="",wt[++et]="\f"+substr(wt[et],et=1,-1));case 32:return et===1?"":Et;default:switch(et){case 0:return dt=Et,sizeof(wt)>1?"":Et;case(et=sizeof(wt)-1):case 2:return et===2?Et+dt+dt:Et+dt;default:return Et}}})})}}function jr(dt){return lt(xi("",null,null,null,[""],dt=Ft(dt),0,[0],dt))}function xi(dt,xt,Et,et,wt,Vt,yn,yr,Yr){for(var eo=0,Zo=0,Ii=yn,Cs=0,ks=0,ba=0,Zs=1,No=1,js=1,ga=0,da="",Il=wt,Al=Vt,Js=et,Ea=da;No;)switch(ba=ga,ga=je()){case 40:if(ba!=108&&F(Ea,Ii-1)==58){T(Ea+=p(Bt(ga),"&","&\f"),"&\f")!=-1&&(js=-1);break}case 34:case 39:case 91:Ea+=Bt(ga);break;case 9:case 10:case 13:case 32:Ea+=an(ba);break;case 92:Ea+=Nn(rt()-1,7);continue;case 47:switch(Ce()){case 42:case 47:be(Hi(zn(je(),rt()),xt,Et),Yr);break;default:Ea+="/"}break;case 123*Zs:yr[eo++]=he(Ea)*js;case 125*Zs:case 59:case 0:switch(ga){case 0:case 125:No=0;case 59+Zo:js==-1&&(Ea=p(Ea,/\f/g,"")),ks>0&&he(Ea)-Ii&&be(ks>32?Io(Ea+";",et,Et,Ii-1):Io(p(Ea," ","")+";",et,Et,Ii-2),Yr);break;case 59:Ea+=";";default:if(be(Js=Pr(Ea,xt,Et,eo,Zo,wt,yr,da,Il=[],Al=[],Ii),Vt),ga===123)if(Zo===0)xi(Ea,xt,Js,Js,Il,Vt,Ii,yr,Al);else switch(Cs===99&&F(Ea,3)===110?100:Cs){case 100:case 108:case 109:case 115:xi(dt,Js,Js,et&&be(Pr(dt,Js,Js,0,0,wt,yr,da,wt,Il=[],Ii),Al),wt,Al,Ii,yr,et?Il:Al);break;default:xi(Ea,Js,Js,Js,[""],Al,0,yr,Al)}}eo=Zo=ks=0,Zs=js=1,da=Ea="",Ii=yn;break;case 58:Ii=1+he(Ea),ks=ba;default:if(Zs<1){if(ga==123)--Zs;else if(ga==125&&Zs++==0&&Re()==125)continue}switch(Ea+=N(ga),ga*Zs){case 38:js=Zo>0?1:(Ea+="\f",-1);break;case 44:yr[eo++]=(he(Ea)-1)*js,js=1;break;case 64:Ce()===45&&(Ea+=Bt(je())),Cs=Ce(),Zo=Ii=he(da=Ea+=Kr(rt())),ga++;break;case 45:ba===45&&he(Ea)==2&&(Zs=0)}}return Vt}function Pr(dt,xt,Et,et,wt,Vt,yn,yr,Yr,eo,Zo){for(var Ii=wt-1,Cs=wt===0?Vt:[""],ks=fe(Cs),ba=0,Zs=0,No=0;ba0?Cs[js]+" "+ga:p(ga,/&\f/g,Cs[js])))&&(Yr[No++]=da);return Ee(dt,xt,Et,wt===0?To:yr,Yr,eo,Zo)}function Hi(dt,xt,Et){return Ee(dt,xt,Et,Mr,N(Pe()),K(dt,2,-2),0)}function Io(dt,xt,Et,et){return Ee(dt,xt,Et,ms,K(dt,0,et),K(dt,et+1,-1),et)}var On=function(xt,Et,et){for(var wt=0,Vt=0;wt=Vt,Vt=Ce(),wt===38&&Vt===12&&(Et[et]=1),!Xt(Vt);)je();return Ne(xt,Xe)},zr=function(xt,Et){var et=-1,wt=44;do switch(Xt(wt)){case 0:wt===38&&Ce()===12&&(Et[et]=1),xt[et]+=On(Xe-1,Et,et);break;case 2:xt[et]+=Bt(wt);break;case 4:if(wt===44){xt[++et]=Ce()===58?"&\f":"",Et[et]=xt[et].length;break}default:xt[et]+=N(wt)}while(wt=je());return xt},qr=function(xt,Et){return lt(zr(Ft(xt),Et))},Wi=new WeakMap,ir=function(xt){if(!(xt.type!=="rule"||!xt.parent||xt.length<1)){for(var Et=xt.value,et=xt.parent,wt=xt.column===et.column&&xt.line===et.line;et.type!=="rule";)if(et=et.parent,!et)return;if(!(xt.props.length===1&&Et.charCodeAt(0)!==58&&!Wi.get(et))&&!wt){Wi.set(xt,!0);for(var Vt=[],yn=qr(Et,Vt),yr=et.props,Yr=0,eo=0;Yr-1},wn=function(xt){return function(Et,et,wt){if(!(Et.type!=="rule"||xt.compat)){var Vt=Et.value.match(/(:first|:nth|:nth-last)-child/g);if(Vt){for(var yn=!!Et.parent,yr=yn?Et.parent.children:wt,Yr=yr.length-1;Yr>=0;Yr--){var eo=yr[Yr];if(eo.line=0;et--)if(!Zn(Et[et]))return!0;return!1},qn=function(xt){xt.type="",xt.value="",xt.return="",xt.children="",xt.props=""},$n=function(xt,Et,et){Zn(xt)&&(xt.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."),qn(xt)):_r(Et,et)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),qn(xt)))};function jt(dt,xt){switch(R(dt,xt)){case 5103:return gi+"print-"+dt+dt;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 gi+dt+dt;case 5349:case 4246:case 4810:case 6968:case 2756:return gi+dt+go+dt+Ui+dt+dt;case 6828:case 4268:return gi+dt+Ui+dt+dt;case 6165:return gi+dt+Ui+"flex-"+dt+dt;case 5187:return gi+dt+p(dt,/(\w+).+(:[^]+)/,gi+"box-$1$2"+Ui+"flex-$1$2")+dt;case 5443:return gi+dt+Ui+"flex-item-"+p(dt,/flex-|-self/,"")+dt;case 4675:return gi+dt+Ui+"flex-line-pack"+p(dt,/align-content|flex-|-self/,"")+dt;case 5548:return gi+dt+Ui+p(dt,"shrink","negative")+dt;case 5292:return gi+dt+Ui+p(dt,"basis","preferred-size")+dt;case 6060:return gi+"box-"+p(dt,"-grow","")+gi+dt+Ui+p(dt,"grow","positive")+dt;case 4554:return gi+p(dt,/([^-])(transform)/g,"$1"+gi+"$2")+dt;case 6187:return p(p(p(dt,/(zoom-|grab)/,gi+"$1"),/(image-set)/,gi+"$1"),dt,"")+dt;case 5495:case 3959:return p(dt,/(image-set\([^]*)/,gi+"$1$`$1");case 4968:return p(p(dt,/(.+:)(flex-)?(.*)/,gi+"box-pack:$3"+Ui+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gi+dt+dt;case 4095:case 3583:case 4068:case 2532:return p(dt,/(.+)-inline(.+)/,gi+"$1$2")+dt;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(he(dt)-1-xt>6)switch(F(dt,xt+1)){case 109:if(F(dt,xt+4)!==45)break;case 102:return p(dt,/(.+:)(.+)-([^]+)/,"$1"+gi+"$2-$3$1"+go+(F(dt,xt+3)==108?"$3":"$2-$3"))+dt;case 115:return~T(dt,"stretch")?jt(p(dt,"stretch","fill-available"),xt)+dt:dt}break;case 4949:if(F(dt,xt+1)!==115)break;case 6444:switch(F(dt,he(dt)-3-(~T(dt,"!important")&&10))){case 107:return p(dt,":",":"+gi)+dt;case 101:return p(dt,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gi+(F(dt,14)===45?"inline-":"")+"box$3$1"+gi+"$2$3$1"+Ui+"$2box$3")+dt}break;case 5936:switch(F(dt,xt+11)){case 114:return gi+dt+Ui+p(dt,/[svh]\w+-[tblr]{2}/,"tb")+dt;case 108:return gi+dt+Ui+p(dt,/[svh]\w+-[tblr]{2}/,"tb-rl")+dt;case 45:return gi+dt+Ui+p(dt,/[svh]\w+-[tblr]{2}/,"lr")+dt}return gi+dt+Ui+dt+dt}return dt}var In=function(xt,Et,et,wt){if(xt.length>-1&&!xt.return)switch(xt.type){case ms:xt.return=jt(xt.value,xt.length);break;case Ct:return Jt([ze(xt,{value:p(xt.value,"@","@"+gi)})],wt);case To:if(xt.length)return Ae(xt.props,function(Vt){switch(S(Vt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jt([ze(xt,{props:[p(Vt,/:(read-\w+)/,":"+go+"$1")]})],wt);case"::placeholder":return Jt([ze(xt,{props:[p(Vt,/:(plac\w+)/,":"+gi+"input-$1")]}),ze(xt,{props:[p(Vt,/:(plac\w+)/,":"+go+"$1")]}),ze(xt,{props:[p(Vt,/:(plac\w+)/,Ui+"input-$1")]})],wt)}return""})}},vr=[In],Ur=function(xt){var Et=xt.key;if(Et==="css"){var et=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(et,function(Zs){var No=Zs.getAttribute("data-emotion");No.indexOf(" ")!==-1&&(document.head.appendChild(Zs),Zs.setAttribute("data-s",""))})}var wt=xt.stylisPlugins||vr,Vt={},yn,yr=[];yn=xt.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+Et+' "]'),function(Zs){for(var No=Zs.getAttribute("data-emotion").split(" "),js=1;js=4;++et,wt-=4)Et=dt.charCodeAt(et)&255|(dt.charCodeAt(++et)&255)<<8|(dt.charCodeAt(++et)&255)<<16|(dt.charCodeAt(++et)&255)<<24,Et=(Et&65535)*1540483477+((Et>>>16)*59797<<16),Et^=Et>>>24,xt=(Et&65535)*1540483477+((Et>>>16)*59797<<16)^(xt&65535)*1540483477+((xt>>>16)*59797<<16);switch(wt){case 3:xt^=(dt.charCodeAt(et+2)&255)<<16;case 2:xt^=(dt.charCodeAt(et+1)&255)<<8;case 1:xt^=dt.charCodeAt(et)&255,xt=(xt&65535)*1540483477+((xt>>>16)*59797<<16)}return xt^=xt>>>13,xt=(xt&65535)*1540483477+((xt>>>16)*59797<<16),((xt^xt>>>15)>>>0).toString(36)}var Yt={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 xn(dt){var xt=Object.create(null);return function(Et){return xt[Et]===void 0&&(xt[Et]=dt(Et)),xt[Et]}}var fr=`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`,Jr="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",vi=/[A-Z]|^ms/g,Ti=/_EMO_([^_]+?)_([^]*?)_EMO_/g,co=function(at){return at.charCodeAt(1)===45},Qr=function(at){return at!=null&&typeof at!="boolean"},oi=pn(function(tt){return co(tt)?tt:tt.replace(vi,"-$&").toLowerCase()}),Zi=function(at,gt){switch(at){case"animation":case"animationName":if(typeof gt=="string")return gt.replace(Ti,function(Re,lt,St){return ms={name:lt,styles:St,next:ms},lt})}return Bt[at]!==1&&!co(at)&&typeof gt=="number"&>!==0?gt+"px":gt};if(!1)var Ir,tn,Gn,Ei,Ln,Ii;var nr=null;function wi(tt,at,gt){if(gt==null)return"";if(gt.__emotion_styles!==void 0)return gt;switch(typeof gt){case"boolean":return"";case"object":{if(gt.anim===1)return ms={name:gt.name,styles:gt.styles,next:ms},gt.name;if(gt.styles!==void 0){var Re=gt.next;if(Re!==void 0)for(;Re!==void 0;)ms={name:Re.name,styles:Re.styles,next:ms},Re=Re.next;var lt=gt.styles+";";return lt}return Mi(tt,at,gt)}case"function":{if(tt!==void 0){var St=ms,ln=gt(tt);return ms=St,wi(tt,at,ln)}break}case"string":if(!1)var Vn,wr;break}if(at==null)return gt;var ki=at[gt];return ki!==void 0?ki:gt}function Mi(tt,at,gt){var Re="";if(Array.isArray(gt))for(var lt=0;lt=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]=te,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&&(te&&W.push(te),te=[]),te.push(new y(S,P));else if(C===7)te&&te.push(te[0].clone());else throw new Error("unknown command "+C)}return te&&W.push(te),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,te=-1/0,re=1/0,ce=-1/0;w.pos>3}if(f--,C===1||C===2)S+=w.readSVarint(),P+=w.readSVarint(),Ste&&(te=S),Pce&&(ce=P);else if(C!==7)throw new Error("unknown command "+C)}return[W,re,te,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(),te=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,xe||0);return Math.round(Ce*Ae)/Ae}V.round=W;function te(Ce,xe){xe===void 0&&(xe="kilometers");var Ae=V.factors[xe];if(!Ae)throw new Error(xe+" units is invalid");return Ce*Ae}V.radiansToLength=te;function re(Ce,xe){xe===void 0&&(xe="kilometers");var Ae=V.factors[xe];if(!Ae)throw new Error(xe+" units is invalid");return Ce/Ae}V.lengthToRadians=re;function ce(Ce,xe){return he(re(Ce,xe))}V.lengthToDegrees=ce;function pe(Ce){var xe=Ce%360;return xe<0&&(xe+=360),xe}V.bearingToAzimuth=pe;function he(Ce){var xe=Ce%(2*Math.PI);return xe*180/Math.PI}V.radiansToDegrees=he;function fe(Ce){var xe=Ce%360;return xe*Math.PI/180}V.degreesToRadians=fe;function Be(Ce,xe,Ae){if(xe===void 0&&(xe="kilometers"),Ae===void 0&&(Ae="kilometers"),!(Ce>=0))throw new Error("length must be a positive number");return te(re(Ce,xe),Ae)}V.convertLength=Be;function Ie(Ce,xe,Ae){if(xe===void 0&&(xe="meters"),Ae===void 0&&(Ae="kilometers"),!(Ce>=0))throw new Error("area must be a positive number");var ge=V.areaFactors[xe];if(!ge)throw new Error("invalid original units");var We=V.areaFactors[Ae];if(!We)throw new Error("invalid final units");return Ce/ge*We}V.convertArea=Ie;function je(Ce){return!isNaN(Ce)&&Ce!==null&&!Array.isArray(Ce)}V.isNumber=je;function be(Ce){return!!Ce&&Ce.constructor===Object}V.isObject=be;function ve(Ce){if(!Ce)throw new Error("bbox is required");if(!Array.isArray(Ce))throw new Error("bbox must be an Array");if(Ce.length!==4&&Ce.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");Ce.forEach(function(xe){if(!je(xe))throw new Error("bbox must only contain numbers")})}V.validateBBox=ve;function ye(Ce){if(!Ce)throw new Error("id is required");if(["string","number"].indexOf(typeof Ce)===-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 je,be,ve,ye,Ce,xe,Ae,ge=0,We=0,Se,Pt=fe.type,dt=Pt==="FeatureCollection",He=Pt==="Feature",Ct=dt?fe.features.length:1,ft=0;ftxe||dt>Ae||He>ge){Ce=We,xe=je,Ae=dt,ge=He,ve=0;return}var Ct=y.lineString([Ce,We],Ie.properties);if(Be(Ct,je,be,He,ve)===!1)return!1;ve++,Ce=We})===!1)return!1}}})}function te(fe,Be,Ie){var je=Ie,be=!1;return W(fe,function(ve,ye,Ce,xe,Ae){be===!1&&Ie===void 0?je=ve:je=Be(je,ve,ye,Ce,xe,Ae),be=!0}),je}function re(fe,Be){if(!fe)throw new Error("geojson is required");S(fe,function(Ie,je,be){if(Ie.geometry!==null){var ve=Ie.geometry.type,ye=Ie.geometry.coordinates;switch(ve){case"LineString":if(Be(Ie,je,be,0,0)===!1)return!1;break;case"Polygon":for(var Ce=0;Ce=Math.abs(S)?x-p+S:S-p+x,x=p}x+N>=0!=!!C&&M.reverse()}},59263:function(mt){"use strict";mt.exports=q;function q(_,v){this.x=_,this.y=v}q.prototype={clone:function(){return new q(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(_,v){return this.clone()._rotateAround(_,v)},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 v=_.x-this.x,M=_.y-this.y;return v*v+M*M},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(_,v){return Math.atan2(this.x*v-this.y*_,this.x*_+this.y*v)},_matMult:function(_){var v=_[0]*this.x+_[1]*this.y,M=_[2]*this.x+_[3]*this.y;return this.x=v,this.y=M,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 v=Math.cos(_),M=Math.sin(_),C=v*this.x-M*this.y,x=M*this.x+v*this.y;return this.x=C,this.y=x,this},_rotateAround:function(_,v){var M=Math.cos(_),C=Math.sin(_),x=v.x+M*(this.x-v.x)-C*(this.y-v.y),N=v.y+C*(this.x-v.x)+M*(this.y-v.y);return this.x=x,this.y=N,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},q.convert=function(_){return _ instanceof q?_:Array.isArray(_)?new q(_[0],_[1]):_}},91327:function(mt,q,_){var v=_(97671),M=function(){"use strict";var C=/\s*/g,x=/^\s*|\s*$/g,N=/\s+/;function V(ze){if(!ze||!ze.length)return 0;for(var Pe=0,Re=0;PeC)return C;for(;MN?M=x:C=x,x=(C-M)*.5+M}return x},q.prototype.solve=function(_,v){return this.sampleCurveY(this.solveCurveX(_,v))}},8332:function(mt,q,_){mt.exports.VectorTile=_(29148),_(82442),_(37815)},29148:function(mt,q,_){"use strict";var v=_(37815);mt.exports=M;function M(x,N){this.layers=x.readFields(C,{},N)}function C(x,N,V){if(x===3){var R=new v(V,V.readVarint()+V.pos);R.length&&(N[R.name]=R)}}},82442:function(mt,q,_){"use strict";var v=_(59263);mt.exports=M;function M(R,k,S,p,T){this.properties={},this.extent=S,this.type=0,this._pbf=R,this._geometry=-1,this._keys=p,this._values=T,R.readFields(C,this,k)}function C(R,k,S){R==1?k.id=S.readVarint():R==2?x(S,k):R==3?k.type=S.readVarint():R==4&&(k._geometry=S.pos)}function x(R,k){for(var S=R.readVarint()+R.pos;R.pos>3}if(p--,S===1||S===2)T+=R.readSVarint(),F+=R.readSVarint(),S===1&&(he&&K.push(he),he=[]),he.push(new v(T,F));else if(S===7)he&&he.push(he[0].clone());else throw new Error("unknown command "+S)}return he&&K.push(he),K},M.prototype.bbox=function(){var R=this._pbf;R.pos=this._geometry;for(var k=R.readVarint()+R.pos,S=1,p=0,T=0,F=0,K=1/0,he=-1/0,fe=1/0,be=-1/0;R.pos>3}if(p--,S===1||S===2)T+=R.readSVarint(),F+=R.readSVarint(),The&&(he=T),Fbe&&(be=F);else if(S!==7)throw new Error("unknown command "+S)}return[K,fe,he,be]},M.prototype.toGeoJSON=function(R,k,S){var p=this.extent*Math.pow(2,S),T=this.extent*R,F=this.extent*k,K=this.loadGeometry(),he=M.types[this.type],fe,be;function Ae(it){for(var Xe=0;Xe>3;V=k===1?N.readString():k===2?N.readFloat():k===3?N.readDouble():k===4?N.readVarint64():k===5?N.readVarint():k===6?N.readSVarint():k===7?N.readBoolean():null}return V}M.prototype.feature=function(N){if(N<0||N>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[N];var V=this._pbf.readVarint()+this._pbf.pos;return new v(this._pbf,V,this.extent,this._keys,this._values)}},76314:function(mt,q,_){"use strict";var v;v={value:!0};var M=_(9750);function C(x){var N=[1/0,1/0,-1/0,-1/0];return M.coordEach(x,function(V){N[0]>V[0]&&(N[0]=V[0]),N[1]>V[1]&&(N[1]=V[1]),N[2]=0))throw new Error("precision must be a positive number");var je=Math.pow(10,Re||0);return Math.round(Pe*je)/je}q.round=K;function he(Pe,Re){Re===void 0&&(Re="kilometers");var je=q.factors[Re];if(!je)throw new Error(Re+" units is invalid");return Pe*je}q.radiansToLength=he;function fe(Pe,Re){Re===void 0&&(Re="kilometers");var je=q.factors[Re];if(!je)throw new Error(Re+" units is invalid");return Pe/je}q.lengthToRadians=fe;function be(Pe,Re){return xe(fe(Pe,Re))}q.lengthToDegrees=be;function Ae(Pe){var Re=Pe%360;return Re<0&&(Re+=360),Re}q.bearingToAzimuth=Ae;function xe(Pe){var Re=Pe%(2*Math.PI);return Re*180/Math.PI}q.radiansToDegrees=xe;function Se(Pe){var Re=Pe%360;return Re*Math.PI/180}q.degreesToRadians=Se;function it(Pe,Re,je){if(Re===void 0&&(Re="kilometers"),je===void 0&&(je="kilometers"),!(Pe>=0))throw new Error("length must be a positive number");return he(fe(Pe,Re),je)}q.convertLength=it;function Xe(Pe,Re,je){if(Re===void 0&&(Re="meters"),je===void 0&&(je="kilometers"),!(Pe>=0))throw new Error("area must be a positive number");var Ce=q.areaFactors[Re];if(!Ce)throw new Error("invalid original units");var rt=q.areaFactors[je];if(!rt)throw new Error("invalid final units");return Pe/Ce*rt}q.convertArea=Xe;function ft(Pe){return!isNaN(Pe)&&Pe!==null&&!Array.isArray(Pe)}q.isNumber=ft;function Me(Pe){return!!Pe&&Pe.constructor===Object}q.isObject=Me;function Ee(Pe){if(!Pe)throw new Error("bbox is required");if(!Array.isArray(Pe))throw new Error("bbox must be an Array");if(Pe.length!==4&&Pe.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");Pe.forEach(function(Re){if(!ft(Re))throw new Error("bbox must only contain numbers")})}q.validateBBox=Ee;function ze(Pe){if(!Pe)throw new Error("id is required");if(["string","number"].indexOf(typeof Pe)===-1)throw new Error("id must be a number or a string")}q.validateId=ze},9750:function(mt,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var v=_(78161);function M(Se,it,Xe){if(Se!==null)for(var ft,Me,Ee,ze,Pe,Re,je,Ce=0,rt=0,Ne,Xt=Se.type,Ft=Xt==="FeatureCollection",lt=Xt==="Feature",Bt=Ft?Se.features.length:1,At=0;AtRe||Ft>je||lt>Ce){Pe=rt,Re=ft,je=Ft,Ce=lt,Ee=0;return}var Bt=v.lineString([Pe,rt],Xe.properties);if(it(Bt,ft,Me,lt,Ee)===!1)return!1;Ee++,Pe=rt})===!1)return!1}}})}function he(Se,it,Xe){var ft=Xe,Me=!1;return K(Se,function(Ee,ze,Pe,Re,je){Me===!1&&Xe===void 0?ft=Ee:ft=it(ft,Ee,ze,Pe,Re,je),Me=!0}),ft}function fe(Se,it){if(!Se)throw new Error("geojson is required");T(Se,function(Xe,ft,Me){if(Xe.geometry!==null){var Ee=Xe.geometry.type,ze=Xe.geometry.coordinates;switch(Ee){case"LineString":if(it(Xe,ft,Me,0,0)===!1)return!1;break;case"Polygon":for(var Pe=0;Pe=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(Bt){return Bt!==""}function k(Bt){return Bt?Bt.split(/[\t\n\f\r ]+/).filter(z):[]}function N(Bt,pn){return Bt.hasOwnProperty(pn)||(Bt[pn]=!0),Bt}function w(Bt){if(!Bt)return[];var pn=k(Bt);return Object.keys(pn.reduce(N,{}))}function A(Bt){return function(pn){return Bt&&Bt.indexOf(pn)!==-1}}function C(Bt,pn){for(var xr in Bt)Object.prototype.hasOwnProperty.call(Bt,xr)&&(pn[xr]=Bt[xr])}function f(Bt,pn){var xr=Bt.prototype;if(!(xr instanceof pn)){let vi=function(){};var Jr=vi;vi.prototype=pn.prototype,vi=new vi,C(xr,vi),Bt.prototype=xr=vi}xr.constructor!=Bt&&(typeof Bt!="function"&&console.error("unknown Class:"+Bt),xr.constructor=Bt)}var S={},P=S.ELEMENT_NODE=1,W=S.ATTRIBUTE_NODE=2,te=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,je=S.DOCUMENT_FRAGMENT_NODE=11,be=S.NOTATION_NODE=12,ve={},ye={},Ce=ve.INDEX_SIZE_ERR=(ye[1]="Index size error",1),xe=ve.DOMSTRING_SIZE_ERR=(ye[2]="DOMString size error",2),Ae=ve.HIERARCHY_REQUEST_ERR=(ye[3]="Hierarchy request error",3),ge=ve.WRONG_DOCUMENT_ERR=(ye[4]="Wrong document",4),We=ve.INVALID_CHARACTER_ERR=(ye[5]="Invalid character",5),Se=ve.NO_DATA_ALLOWED_ERR=(ye[6]="No data allowed",6),Pt=ve.NO_MODIFICATION_ALLOWED_ERR=(ye[7]="No modification allowed",7),dt=ve.NOT_FOUND_ERR=(ye[8]="Not found",8),He=ve.NOT_SUPPORTED_ERR=(ye[9]="Not supported",9),Ct=ve.INUSE_ATTRIBUTE_ERR=(ye[10]="Attribute in use",10),ft=ve.INVALID_STATE_ERR=(ye[11]="Invalid state",11),zt=ve.SYNTAX_ERR=(ye[12]="Syntax error",12),mt=ve.INVALID_MODIFICATION_ERR=(ye[13]="Invalid modification",13),yn=ve.NAMESPACE_ERR=(ye[14]="Invalid namespace",14),Bn=ve.INVALID_ACCESS_ERR=(ye[15]="Invalid access",15);function Lr(Bt,pn){if(pn instanceof Error)var xr=pn;else xr=this,Error.call(this,ye[Bt]),this.message=ye[Bt],Error.captureStackTrace&&Error.captureStackTrace(this,Lr);return xr.code=Bt,pn&&(this.message=this.message+": "+pn),xr}Lr.prototype=Error.prototype,C(ve,Lr);function ri(){}ri.prototype={length:0,item:function(Bt){return Bt>=0&&Bt=0){for(var vi=pn.length-1;Jr0},lookupPrefix:function(Bt){for(var pn=this;pn;){var xr=pn._nsMap;if(xr){for(var Jr in xr)if(Object.prototype.hasOwnProperty.call(xr,Jr)&&xr[Jr]===Bt)return Jr}pn=pn.nodeType==W?pn.ownerDocument:pn.parentNode}return null},lookupNamespaceURI:function(Bt){for(var pn=this;pn;){var xr=pn._nsMap;if(xr&&Object.prototype.hasOwnProperty.call(xr,Bt))return xr[Bt];pn=pn.nodeType==W?pn.ownerDocument:pn.parentNode}return null},isDefaultNamespace:function(Bt){var pn=this.lookupPrefix(Bt);return pn==null}};function ho(Bt){return Bt=="<"&&"<"||Bt==">"&&">"||Bt=="&"&&"&"||Bt=='"'&&"""||"&#"+Bt.charCodeAt()+";"}C(S,So),C(S,So.prototype);function go(Bt,pn){if(pn(Bt))return!0;if(Bt=Bt.firstChild)do if(go(Bt,pn))return!0;while(Bt=Bt.nextSibling)}function ji(){this.ownerDocument=this}function No(Bt,pn,xr){Bt&&Bt._inc++;var Jr=xr.namespaceURI;Jr===b.XMLNS&&(pn._nsMap[xr.prefix?xr.localName:""]=xr.value)}function dn(Bt,pn,xr,Jr){Bt&&Bt._inc++;var vi=xr.namespaceURI;vi===b.XMLNS&&delete pn._nsMap[xr.prefix?xr.localName:""]}function Ve(Bt,pn,xr){if(Bt&&Bt._inc){Bt._inc++;var Jr=pn.childNodes;if(xr)Jr[Jr.length++]=xr;else{for(var vi=pn.firstChild,Ti=0;vi;)Jr[Ti++]=vi,vi=vi.nextSibling;Jr.length=Ti,delete Jr[Jr.length]}}}function yt(Bt,pn){var xr=pn.previousSibling,Jr=pn.nextSibling;return xr?xr.nextSibling=Jr:Bt.firstChild=Jr,Jr?Jr.previousSibling=xr:Bt.lastChild=xr,pn.parentNode=null,pn.previousSibling=null,pn.nextSibling=null,Ve(Bt.ownerDocument,Bt),pn}function xt(Bt){return Bt&&(Bt.nodeType===So.DOCUMENT_NODE||Bt.nodeType===So.DOCUMENT_FRAGMENT_NODE||Bt.nodeType===So.ELEMENT_NODE)}function Wt(Bt){return Bt&&(Ot(Bt)||Tt(Bt)||sn(Bt)||Bt.nodeType===So.DOCUMENT_FRAGMENT_NODE||Bt.nodeType===So.COMMENT_NODE||Bt.nodeType===So.PROCESSING_INSTRUCTION_NODE)}function sn(Bt){return Bt&&Bt.nodeType===So.DOCUMENT_TYPE_NODE}function Ot(Bt){return Bt&&Bt.nodeType===So.ELEMENT_NODE}function Tt(Bt){return Bt&&Bt.nodeType===So.TEXT_NODE}function bt(Bt,pn){var xr=Bt.childNodes||[];if(I(xr,Ot)||sn(pn))return!1;var Jr=I(xr,sn);return!(pn&&Jr&&xr.indexOf(Jr)>xr.indexOf(pn))}function Ht(Bt,pn){var xr=Bt.childNodes||[];function Jr(Ti){return Ot(Ti)&&Ti!==pn}if(I(xr,Jr))return!1;var vi=I(xr,sn);return!(pn&&vi&&xr.indexOf(vi)>xr.indexOf(pn))}function zn(Bt,pn,xr){if(!xt(Bt))throw new Lr(Ae,"Unexpected parent node type "+Bt.nodeType);if(xr&&xr.parentNode!==Bt)throw new Lr(dt,"child not in parent");if(!Wt(pn)||sn(pn)&&Bt.nodeType!==So.DOCUMENT_NODE)throw new Lr(Ae,"Unexpected node type "+pn.nodeType+" for parent node type "+Bt.nodeType)}function en(Bt,pn,xr){var Jr=Bt.childNodes||[],vi=pn.childNodes||[];if(pn.nodeType===So.DOCUMENT_FRAGMENT_NODE){var Ti=vi.filter(Ot);if(Ti.length>1||I(vi,Tt))throw new Lr(Ae,"More than one element or text in fragment");if(Ti.length===1&&!bt(Bt,xr))throw new Lr(Ae,"Element in fragment can not be inserted before doctype")}if(Ot(pn)&&!bt(Bt,xr))throw new Lr(Ae,"Only one element can be added and only after doctype");if(sn(pn)){if(I(Jr,sn))throw new Lr(Ae,"Only one doctype is allowed");var co=I(Jr,Ot);if(xr&&Jr.indexOf(co)1||I(vi,Tt))throw new Lr(Ae,"More than one element or text in fragment");if(Ti.length===1&&!Ht(Bt,xr))throw new Lr(Ae,"Element in fragment can not be inserted before doctype")}if(Ot(pn)&&!Ht(Bt,xr))throw new Lr(Ae,"Only one element can be added and only after doctype");if(sn(pn)){let oi=function(Zi){return sn(Zi)&&Zi!==xr};var Qr=oi;if(I(Jr,oi))throw new Lr(Ae,"Only one doctype is allowed");var co=I(Jr,Ot);if(xr&&Jr.indexOf(co)0&&go(xr.documentElement,function(vi){if(vi!==xr&&vi.nodeType===P){var Ti=vi.getAttribute("class");if(Ti){var co=Bt===Ti;if(!co){var Qr=w(Ti);co=pn.every(A(Qr))}co&&Jr.push(vi)}}}),Jr})},createElement:function(Bt){var pn=new si;pn.ownerDocument=this,pn.nodeName=Bt,pn.tagName=Bt,pn.localName=Bt,pn.childNodes=new ri;var xr=pn.attributes=new To;return xr._ownerElement=pn,pn},createDocumentFragment:function(){var Bt=new Kn;return Bt.ownerDocument=this,Bt.childNodes=new ri,Bt},createTextNode:function(Bt){var pn=new _n;return pn.ownerDocument=this,pn.appendData(Bt),pn},createComment:function(Bt){var pn=new Vr;return pn.ownerDocument=this,pn.appendData(Bt),pn},createCDATASection:function(Bt){var pn=new qr;return pn.ownerDocument=this,pn.appendData(Bt),pn},createProcessingInstruction:function(Bt,pn){var xr=new Fr;return xr.ownerDocument=this,xr.tagName=xr.nodeName=xr.target=Bt,xr.nodeValue=xr.data=pn,xr},createAttribute:function(Bt){var pn=new uo;return pn.ownerDocument=this,pn.name=Bt,pn.nodeName=Bt,pn.localName=Bt,pn.specified=!0,pn},createEntityReference:function(Bt){var pn=new $n;return pn.ownerDocument=this,pn.nodeName=Bt,pn},createElementNS:function(Bt,pn){var xr=new si,Jr=pn.split(":"),vi=xr.attributes=new To;return xr.childNodes=new ri,xr.ownerDocument=this,xr.nodeName=pn,xr.tagName=pn,xr.namespaceURI=Bt,Jr.length==2?(xr.prefix=Jr[0],xr.localName=Jr[1]):xr.localName=pn,vi._ownerElement=xr,xr},createAttributeNS:function(Bt,pn){var xr=new uo,Jr=pn.split(":");return xr.ownerDocument=this,xr.nodeName=pn,xr.name=pn,xr.namespaceURI=Bt,xr.specified=!0,Jr.length==2?(xr.prefix=Jr[0],xr.localName=Jr[1]):xr.localName=pn,xr}},f(ji,So);function si(){this._nsMap={}}si.prototype={nodeType:P,hasAttribute:function(Bt){return this.getAttributeNode(Bt)!=null},getAttribute:function(Bt){var pn=this.getAttributeNode(Bt);return pn&&pn.value||""},getAttributeNode:function(Bt){return this.attributes.getNamedItem(Bt)},setAttribute:function(Bt,pn){var xr=this.ownerDocument.createAttribute(Bt);xr.value=xr.nodeValue=""+pn,this.setAttributeNode(xr)},removeAttribute:function(Bt){var pn=this.getAttributeNode(Bt);pn&&this.removeAttributeNode(pn)},appendChild:function(Bt){return Bt.nodeType===je?this.insertBefore(Bt,null):ii(this,Bt)},setAttributeNode:function(Bt){return this.attributes.setNamedItem(Bt)},setAttributeNodeNS:function(Bt){return this.attributes.setNamedItemNS(Bt)},removeAttributeNode:function(Bt){return this.attributes.removeNamedItem(Bt.nodeName)},removeAttributeNS:function(Bt,pn){var xr=this.getAttributeNodeNS(Bt,pn);xr&&this.removeAttributeNode(xr)},hasAttributeNS:function(Bt,pn){return this.getAttributeNodeNS(Bt,pn)!=null},getAttributeNS:function(Bt,pn){var xr=this.getAttributeNodeNS(Bt,pn);return xr&&xr.value||""},setAttributeNS:function(Bt,pn,xr){var Jr=this.ownerDocument.createAttributeNS(Bt,pn);Jr.value=Jr.nodeValue=""+xr,this.setAttributeNode(Jr)},getAttributeNodeNS:function(Bt,pn){return this.attributes.getNamedItemNS(Bt,pn)},getElementsByTagName:function(Bt){return new gi(this,function(pn){var xr=[];return go(pn,function(Jr){Jr!==pn&&Jr.nodeType==P&&(Bt==="*"||Jr.tagName==Bt)&&xr.push(Jr)}),xr})},getElementsByTagNameNS:function(Bt,pn){return new gi(this,function(xr){var Jr=[];return go(xr,function(vi){vi!==xr&&vi.nodeType===P&&(Bt==="*"||vi.namespaceURI===Bt)&&(pn==="*"||vi.localName==pn)&&Jr.push(vi)}),Jr})}},ji.prototype.getElementsByTagName=si.prototype.getElementsByTagName,ji.prototype.getElementsByTagNameNS=si.prototype.getElementsByTagNameNS,f(si,So);function uo(){}uo.prototype.nodeType=W,f(uo,So);function Qo(){}Qo.prototype={data:"",substringData:function(Bt,pn){return this.data.substring(Bt,Bt+pn)},appendData:function(Bt){Bt=this.data+Bt,this.nodeValue=this.data=Bt,this.length=Bt.length},insertData:function(Bt,pn){this.replaceData(Bt,0,pn)},appendChild:function(Bt){throw new Error(ye[Ae])},deleteData:function(Bt,pn){this.replaceData(Bt,pn,"")},replaceData:function(Bt,pn,xr){var Jr=this.data.substring(0,Bt),vi=this.data.substring(Bt+pn);xr=Jr+xr+vi,this.nodeValue=this.data=xr,this.length=xr.length}},f(Qo,So);function _n(){}_n.prototype={nodeName:"#text",nodeType:te,splitText:function(Bt){var pn=this.data,xr=pn.substring(Bt);pn=pn.substring(0,Bt),this.data=this.nodeValue=pn,this.length=pn.length;var Jr=this.ownerDocument.createTextNode(xr);return this.parentNode&&this.parentNode.insertBefore(Jr,this.nextSibling),Jr}},f(_n,Qo);function Vr(){}Vr.prototype={nodeName:"#comment",nodeType:fe},f(Vr,Qo);function qr(){}qr.prototype={nodeName:"#cdata-section",nodeType:re},f(qr,Qo);function Ui(){}Ui.prototype.nodeType=Ie,f(Ui,So);function xo(){}xo.prototype.nodeType=be,f(xo,So);function Us(){}Us.prototype.nodeType=pe,f(Us,So);function $n(){}$n.prototype.nodeType=ce,f($n,So);function Kn(){}Kn.prototype.nodeName="#document-fragment",Kn.prototype.nodeType=je,f(Kn,So);function Fr(){}Fr.prototype.nodeType=he,f(Fr,So);function mi(){}mi.prototype.serializeToString=function(Bt,pn,xr){return Tr.call(Bt,pn,xr)},So.prototype.toString=Tr;function Tr(Bt,pn){var xr=[],Jr=this.nodeType==9&&this.documentElement||this,vi=Jr.prefix,Ti=Jr.namespaceURI;if(Ti&&vi==null){var vi=Jr.lookupPrefix(Ti);if(vi==null)var co=[{namespace:Ti,prefix:null}]}return rn(this,xr,Bt,pn,co),xr.join("")}function ti(Bt,pn,xr){var Jr=Bt.prefix||"",vi=Bt.namespaceURI;if(!vi||Jr==="xml"&&vi===b.XML||vi===b.XMLNS)return!1;for(var Ti=xr.length;Ti--;){var co=xr[Ti];if(co.prefix===Jr)return co.namespace!==vi}return!0}function di(Bt,pn,xr){Bt.push(" ",pn,'="',xr.replace(/[<>&"\t\n\r]/g,ho),'"')}function rn(Bt,pn,xr,Jr,vi){if(vi||(vi=[]),Jr)if(Bt=Jr(Bt),Bt){if(typeof Bt=="string"){pn.push(Bt);return}}else return;switch(Bt.nodeType){case P:var Ti=Bt.attributes,co=Ti.length,wi=Bt.firstChild,Qr=Bt.tagName;xr=b.isHTML(Bt.namespaceURI)||xr;var oi=Qr;if(!xr&&!Bt.prefix&&Bt.namespaceURI){for(var Zi,Ir=0;Ir=0;tn--){var Gn=vi[tn];if(Gn.prefix===""&&Gn.namespace===Bt.namespaceURI){Zi=Gn.namespace;break}}if(Zi!==Bt.namespaceURI)for(var tn=vi.length-1;tn>=0;tn--){var Gn=vi[tn];if(Gn.namespace===Bt.namespaceURI){Gn.prefix&&(oi=Gn.prefix+":"+Qr);break}}}pn.push("<",oi);for(var Ei=0;Ei"),xr&&/^script$/i.test(Qr))for(;wi;)wi.data?pn.push(wi.data):rn(wi,pn,xr,Jr,vi.slice()),wi=wi.nextSibling;else for(;wi;)rn(wi,pn,xr,Jr,vi.slice()),wi=wi.nextSibling;pn.push("")}else pn.push("/>");return;case Be:case je:for(var wi=Bt.firstChild;wi;)rn(wi,pn,xr,Jr,vi.slice()),wi=wi.nextSibling;return;case W:return di(pn,Bt.name,Bt.value);case te:return pn.push(Bt.data.replace(/[<&>]/g,ho));case re:return pn.push("");case fe:return pn.push("");case Ie:var Mi=Bt.publicId,Rr=Bt.systemId;if(pn.push("");else if(Rr&&Rr!=".")pn.push(" SYSTEM ",Rr,">");else{var Xn=Bt.internalSubset;Xn&&pn.push(" [",Xn,"]"),pn.push(">")}return;case he:return pn.push("");case ce:return pn.push("&",Bt.nodeName,";");default:pn.push("??",Bt.nodeName)}}function Qn(Bt,pn,xr){var Jr;switch(pn.nodeType){case P:Jr=pn.cloneNode(!1),Jr.ownerDocument=Bt;case je:break;case W:xr=!0;break}if(Jr||(Jr=pn.cloneNode(!1)),Jr.ownerDocument=Bt,Jr.parentNode=null,xr)for(var vi=pn.firstChild;vi;)Jr.appendChild(Qn(Bt,vi,xr)),vi=vi.nextSibling;return Jr}function Xr(Bt,pn,xr){var Jr=new pn.constructor;for(var vi in pn)if(Object.prototype.hasOwnProperty.call(pn,vi)){var Ti=pn[vi];typeof Ti!="object"&&Ti!=Jr[vi]&&(Jr[vi]=Ti)}switch(pn.childNodes&&(Jr.childNodes=new ri),Jr.ownerDocument=Bt,Jr.nodeType){case P:var co=pn.attributes,Qr=Jr.attributes=new To,oi=co.length;Qr._ownerElement=Jr;for(var Zi=0;Zi",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(Ce,xe){this.message=Ce,this.locator=xe,Error.captureStackTrace&&Error.captureStackTrace(this,W)}W.prototype=new Error,W.prototype.name=W.name;function te(){}te.prototype={parse:function(Ce,xe,Ae){var ge=this.domBuilder;ge.startDocument(),Ie(xe,xe={}),re(Ce,xe,Ae,ge,this.errorHandler),ge.endDocument()}};function re(Ce,xe,Ae,ge,We){function Se(xt){if(xt>65535){xt-=65536;var Wt=55296+(xt>>10),sn=56320+(xt&1023);return String.fromCharCode(Wt,sn)}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)==="#"?Se(parseInt(Wt.substr(1).replace("x","0x"))):(We.error("entity not found:"+xt),xt)}function dt(xt){if(xt>Lr){var Wt=Ce.substring(Lr,xt).replace(/&#?\w+;/g,Pt);mt&&He(Lr),ge.characters(Wt,0,xt-Lr),Lr=xt}}function He(xt,Wt){for(;xt>=ft&&(Wt=zt.exec(Ce));)Ct=Wt.index,ft=Ct+Wt[0].length,mt.lineNumber++;mt.columnNumber=xt-Ct+1}for(var Ct=0,ft=0,zt=/.*(?:\r\n?|\n)|.*$/g,mt=ge.locator,yn=[{currentNSMap:xe}],Bn={},Lr=0;;){try{var ri=Ce.indexOf("<",Lr);if(ri<0){if(!Ce.substr(Lr).match(/^\s*$/)){var gi=ge.doc,ro=gi.createTextNode(Ce.substr(Lr));gi.appendChild(ro),ge.currentElement=ro}return}switch(ri>Lr&&dt(ri),Ce.charAt(ri+1)){case"/":var ji=Ce.indexOf(">",ri+3),To=Ce.substring(ri+2,ji).replace(/[ \t\n\r]+$/g,""),_r=yn.pop();ji<0?(To=Ce.substring(ri+2).replace(/[\s<].*/,""),We.error("end tag name: "+To+" is not complete:"+_r.tagName),ji=ri+1+To.length):To.match(/\sLr?Lr=ji:dt(Math.max(ri,Lr)+1)}}function ce(Ce,xe){return xe.lineNumber=Ce.lineNumber,xe.columnNumber=Ce.columnNumber,xe}function pe(Ce,xe,Ae,ge,We,Se){function Pt(yn,Bn,Lr){Ae.attributeNames.hasOwnProperty(yn)&&Se.fatalError("Attribute "+yn+" redefined"),Ae.addValue(yn,Bn.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,We),Lr)}for(var dt,He,Ct=++xe,ft=k;;){var zt=Ce.charAt(Ct);switch(zt){case"=":if(ft===N)dt=Ce.slice(xe,Ct),ft=A;else if(ft===w)ft=A;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(ft===A||ft===N)if(ft===N&&(Se.warning('attribute value must after "="'),dt=Ce.slice(xe,Ct)),xe=Ct+1,Ct=Ce.indexOf(zt,xe),Ct>0)He=Ce.slice(xe,Ct),Pt(dt,He,xe-1),ft=f;else throw new Error("attribute value no end '"+zt+"' match");else if(ft==C)He=Ce.slice(xe,Ct),Pt(dt,He,xe),Se.warning('attribute "'+dt+'" missed start quot('+zt+")!!"),xe=Ct+1,ft=f;else throw new Error('attribute value must after "="');break;case"/":switch(ft){case k:Ae.setTagName(Ce.slice(xe,Ct));case f:case S:case P:ft=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 Se.error("unexpected end of input"),ft==k&&Ae.setTagName(Ce.slice(xe,Ct)),Ct;case">":switch(ft){case k:Ae.setTagName(Ce.slice(xe,Ct));case f:case S:case P:break;case C:case N:He=Ce.slice(xe,Ct),He.slice(-1)==="/"&&(Ae.closed=!0,He=He.slice(0,-1));case w:ft===w&&(He=dt),ft==C?(Se.warning('attribute "'+He+'" missed quot(")!'),Pt(dt,He,xe)):((!y.isHTML(ge[""])||!He.match(/^(?:disabled|checked|selected)$/i))&&Se.warning('attribute "'+He+'" missed value!! "'+He+'" instead!!'),Pt(He,He,xe));break;case A:throw new Error("attribute value missed!!")}return Ct;case"\x80":zt=" ";default:if(zt<=" ")switch(ft){case k:Ae.setTagName(Ce.slice(xe,Ct)),ft=S;break;case N:dt=Ce.slice(xe,Ct),ft=w;break;case C:var He=Ce.slice(xe,Ct);Se.warning('attribute "'+He+'" missed quot(")!!'),Pt(dt,He,xe);case f:ft=S;break}else switch(ft){case w:var mt=Ae.tagName;(!y.isHTML(ge[""])||!dt.match(/^(?:disabled|checked|selected)$/i))&&Se.warning('attribute "'+dt+'" missed value!! "'+dt+'" instead2!!'),Pt(dt,dt,xe),xe=Ct,ft=N;break;case f:Se.warning('attribute space is required"'+dt+'"!!');case S:ft=N,xe=Ct;break;case A:ft=C,xe=Ct;break;case P:throw new Error("elements closed character '/' and '>' must be connected to")}}Ct++}}function he(Ce,xe,Ae){for(var ge=Ce.tagName,We=null,zt=Ce.length;zt--;){var Se=Ce[zt],Pt=Se.qName,dt=Se.value,mt=Pt.indexOf(":");if(mt>0)var He=Se.prefix=Pt.slice(0,mt),Ct=Pt.slice(mt+1),ft=He==="xmlns"&&Ct;else Ct=Pt,He=null,ft=Pt==="xmlns"&&"";Se.localName=Ct,ft!==!1&&(We==null&&(We={},Ie(Ae,Ae={})),Ae[ft]=We[ft]=dt,Se.uri=y.XMLNS,xe.startPrefixMapping(ft,dt))}for(var zt=Ce.length;zt--;){Se=Ce[zt];var He=Se.prefix;He&&(He==="xml"&&(Se.uri=y.XML),He!=="xmlns"&&(Se.uri=Ae[He||""]))}var mt=ge.indexOf(":");mt>0?(He=Ce.prefix=ge.slice(0,mt),Ct=Ce.localName=ge.slice(mt+1)):(He=null,Ct=Ce.localName=ge);var yn=Ce.uri=Ae[He||""];if(xe.startElement(yn,Ct,ge,Ce),Ce.closed){if(xe.endElement(yn,Ct,ge),We)for(He in We)Object.prototype.hasOwnProperty.call(We,He)&&xe.endPrefixMapping(He)}else return Ce.currentNSMap=Ae,Ce.localNSMap=We,!0}function fe(Ce,xe,Ae,ge,We){if(/^(?:script|textarea)$/i.test(Ae)){var Se=Ce.indexOf("",xe),Pt=Ce.substring(xe+1,Se);if(/[&<]/.test(Pt))return/^script$/i.test(Ae)?(We.characters(Pt,0,Pt.length),Se):(Pt=Pt.replace(/&#?\w+;/g,ge),We.characters(Pt,0,Pt.length),Se)}return xe+1}function Be(Ce,xe,Ae,ge){var We=ge[Ae];return We==null&&(We=Ce.lastIndexOf(""),We",xe+4);return Se>xe?(Ae.comment(Ce,xe+4,Se-xe-4),Se+3):(ge.error("Unclosed comment"),-1)}else return-1;default:if(Ce.substr(xe+3,6)=="CDATA["){var Se=Ce.indexOf("]]>",xe+9);return Ae.startCDATA(),Ae.characters(Ce,xe+9,Se-xe-9),Ae.endCDATA(),Se+3}var Pt=ye(Ce,xe),dt=Pt.length;if(dt>1&&/!doctype/i.test(Pt[0][0])){var He=Pt[1][0],Ct=!1,ft=!1;dt>3&&(/^public$/i.test(Pt[2][0])?(Ct=Pt[3][0],ft=dt>4&&Pt[4][0]):/^system$/i.test(Pt[2][0])&&(ft=Pt[3][0]));var zt=Pt[dt-1];return Ae.startDTD(He,Ct,ft),Ae.endDTD(),zt.index+zt[0].length}}return-1}function be(Ce,xe,Ae){var ge=Ce.indexOf("?>",xe);if(ge){var We=Ce.substring(xe,ge).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(We){var Se=We[0].length;return Ae.processingInstruction(We[1],We[2]),ge+2}else return-1}return-1}function ve(){this.attributeNames={}}ve.prototype={setTagName:function(Ce){if(!z.test(Ce))throw new Error("invalid tagName:"+Ce);this.tagName=Ce},addValue:function(Ce,xe,Ae){if(!z.test(Ce))throw new Error("invalid attribute:"+Ce);this.attributeNames[Ce]=this.length,this[this.length++]={qName:Ce,value:xe,offset:Ae}},length:0,getLocalName:function(Ce){return this[Ce].localName},getLocator:function(Ce){return this[Ce].locator},getQName:function(Ce){return this[Ce].qName},getURI:function(Ce){return this[Ce].uri},getValue:function(Ce){return this[Ce].value}};function ye(Ce,xe){var Ae,ge=[],We=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(We.lastIndex=xe,We.exec(Ce);Ae=We.exec(Ce);)if(ge.push(Ae),Ae[1])return ge}V.XMLReader=te,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),te=(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:te,isSilent:re,quitOnNullishReturnValue:ce,actionFn:pe}=w,he=I.useRef(!1),fe=I.useRef(null),[Be,Ie]=(0,y.Z)(!1),je=function(){P==null||P.apply(void 0,arguments)};I.useEffect(()=>{let ye=null;return W&&(ye=setTimeout(()=>{var Ce;(Ce=fe.current)===null||Ce===void 0||Ce.focus()})),()=>{ye&&clearTimeout(ye)}},[]);const be=ye=>{k(ye)&&(Ie(!0),ye.then(function(){Ie(!1,!0),je.apply(void 0,arguments),he.current=!1},Ce=>{if(Ie(!1,!0),he.current=!1,!(re!=null&&re()))return Promise.reject(Ce)}))},ve=ye=>{if(he.current)return;if(he.current=!0,!pe){je();return}let Ce;if(te){if(Ce=pe(ye),ce&&!k(Ce)){he.current=!1,je(ye);return}}else if(pe.length)Ce=pe(P),he.current=!1;else if(Ce=pe(),!Ce){je();return}be(Ce)};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:te}=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:je}=I.useContext(z.E_),be=je(A||"select",W);I.useEffect(()=>{if(Ie(!0),typeof ResizeObserver!="undefined"){const ye=new ResizeObserver(xe=>{const Ae=xe[0].target;pe(Ae.offsetHeight+8),fe(Ae.offsetWidth)}),Ce=setInterval(()=>{var xe;const Ae=C?`.${C(be)}`:`.${be}-dropdown`,ge=(xe=re.current)===null||xe===void 0?void 0:xe.querySelector(Ae);ge&&(clearInterval(Ce),ye.observe(ge))},10);return()=>{clearInterval(Ce),ye.disconnect()}}},[]);let ve=Object.assign(Object.assign({},P),{style:Object.assign(Object.assign({},te),{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,te=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]=-te-S;break;case"bottom":case"bottomLeft":case"bottomRight":he.offset[1]=te+S;break;case"left":case"leftTop":case"leftBottom":he.offset[0]=-te-S;break;case"right":case"rightTop":case"rightBottom":he.offset[0]=te+S;break}const fe=(0,y.fS)({contentRadius:P,limitVerticalRadius:!0});if(f)switch(ce){case"topLeft":case"bottomLeft":he.offset[0]=-fe.dropdownArrowOffset-te;break;case"topRight":case"bottomRight":he.offset[0]=fe.dropdownArrowOffset+te;break;case"leftTop":case"rightTop":he.offset[1]=-fe.dropdownArrowOffset-te;break;case"leftBottom":case"rightBottom":he.offset[1]=fe.dropdownArrowOffset+te;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(),te=`screen${W}Min`,re=`screen${W}`;if(!(C[te]<=C[re]))throw new Error(`${te}<=${re} fails : !(${C[te]}<=${C[re]})`);if(P{const f=new Map;let S=-1,P={};return{matchHandlers:{},dispatch(W){return P=W,f.forEach(te=>te(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 te=C[W],re=this.matchHandlers[te];re==null||re.mql.removeListener(re==null?void 0:re.listener)}),f.clear()},register(){Object.keys(C).forEach(W=>{const te=C[W],re=pe=>{let{matches:he}=pe;this.dispatch(Object.assign(Object.assign({},P),{[W]:he}))},ce=window.matchMedia(te);ce.addListener(re),this.matchHandlers[te]={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 Ce}});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=xe=>{const{componentCls:Ae,colorPrimary:ge}=xe;return{[Ae]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${ge})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${xe.motionEaseOutCirc}`,`opacity 2s ${xe.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${xe.motionEaseInOut}`,`opacity 0.35s ${xe.motionEaseInOut}`].join(",")}}}}};var f=(0,A.Z)("Wave",xe=>[C(xe)]),S=m(95470),P=m(28637),W=m(44516),te=m(13493);function re(xe){const Ae=(xe||"").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(xe){return xe&&xe!=="#fff"&&xe!=="#ffffff"&&xe!=="rgb(255, 255, 255)"&&xe!=="rgba(255, 255, 255, 1)"&&re(xe)&&!/rgba\((?:\d*, ){3}0\)/.test(xe)&&xe!=="transparent"}function pe(xe){const{borderTopColor:Ae,borderColor:ge,backgroundColor:We}=getComputedStyle(xe);return ce(Ae)?Ae:ce(ge)?ge:ce(We)?We:null}var he=m(71208);function fe(xe){return Number.isNaN(xe)?0:xe}const Be=xe=>{const{className:Ae,target:ge,component:We}=xe,Se=k.useRef(null),[Pt,dt]=k.useState(null),[He,Ct]=k.useState([]),[ft,zt]=k.useState(0),[mt,yn]=k.useState(0),[Bn,Lr]=k.useState(0),[ri,gi]=k.useState(0),[ro,To]=k.useState(!1),_r={left:ft,top:mt,width:Bn,height:ri,borderRadius:He.map(me=>`${me}px`).join(" ")};Pt&&(_r["--wave-color"]=Pt);function Bo(){const me=getComputedStyle(ge);dt(pe(ge));const So=me.position==="static",{borderLeftWidth:ho,borderTopWidth:go}=me;zt(So?ge.offsetLeft:fe(-parseFloat(ho))),yn(So?ge.offsetTop:fe(-parseFloat(go))),Lr(ge.offsetWidth),gi(ge.offsetHeight);const{borderTopLeftRadius:ji,borderTopRightRadius:No,borderBottomLeftRadius:dn,borderBottomRightRadius:Ve}=me;Ct([ji,No,Ve,dn].map(yt=>fe(parseFloat(yt))))}if(k.useEffect(()=>{if(ge){const me=(0,P.Z)(()=>{Bo(),To(!0)});let So;return typeof ResizeObserver!="undefined"&&(So=new ResizeObserver(Bo),So.observe(ge)),()=>{P.Z.cancel(me),So==null||So.disconnect()}}},[]),!ro)return null;const fs=(We==="Checkbox"||We==="Radio")&&(ge==null?void 0:ge.classList.contains(he.A));return k.createElement(W.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(me,So)=>{var ho;if(So.deadline||So.propertyName==="opacity"){const go=(ho=Se.current)===null||ho===void 0?void 0:ho.parentElement;(0,te.v)(go).then(()=>{go==null||go.remove()})}return!1}},me=>{let{className:So}=me;return k.createElement("div",{ref:Se,className:I()(Ae,{"wave-quick":fs},So),style:_r})})};var je=(xe,Ae)=>{var ge;const{component:We}=Ae;if(We==="Checkbox"&&!(!((ge=xe.querySelector("input"))===null||ge===void 0)&&ge.checked))return;const Se=document.createElement("div");Se.style.position="absolute",Se.style.left="0px",Se.style.top="0px",xe==null||xe.insertBefore(Se,xe==null?void 0:xe.firstChild),(0,te.s)(k.createElement(Be,Object.assign({},Ae,{target:xe})),Se)},be=m(99737);function ve(xe,Ae,ge){const{wave:We}=k.useContext(N.E_),[,Se,Pt]=(0,be.Z)(),dt=(0,S.zX)(ft=>{const zt=xe.current;if(We!=null&&We.disabled||!zt)return;const mt=zt.querySelector(`.${he.A}`)||zt,{showEffect:yn}=We||{};(yn||je)(mt,{className:Ae,token:Se,component:ge,event:ft,hashId:Pt})}),He=k.useRef();return ft=>{P.Z.cancel(He.current),He.current=(0,P.Z)(()=>{dt(ft)})}}var Ce=xe=>{const{children:Ae,disabled:ge,component:We}=xe,{getPrefixCls:Se}=(0,k.useContext)(N.E_),Pt=(0,k.useRef)(null),dt=Se("wave"),[,He]=f(dt),Ct=ve(Pt,I()(dt,He),We);if(k.useEffect(()=>{const zt=Pt.current;if(!zt||zt.nodeType!==1||ge)return;const mt=yn=>{!(0,z.Z)(yn.target)||!zt.getAttribute||zt.getAttribute("disabled")||zt.disabled||zt.className.includes("disabled")||zt.className.includes("-leave")||Ct(yn)};return zt.addEventListener("click",mt,!0),()=>{zt.removeEventListener("click",mt,!0)}},[ge]),!k.isValidElement(Ae))return Ae!=null?Ae:null;const ft=(0,b.Yr)(Ae)?(0,b.sQ)(Ae.ref,Pt):Pt;return(0,w.Tm)(Ae,{ref:ft})}},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,te){if(W==null)return;const re=te?" ":"";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,te){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,te))}const f=null,S=null,P=null},38115:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return zn}});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(en,fr){var Kr={};for(var ii in en)Object.prototype.hasOwnProperty.call(en,ii)&&fr.indexOf(ii)<0&&(Kr[ii]=en[ii]);if(en!=null&&typeof Object.getOwnPropertySymbols=="function")for(var si=0,ii=Object.getOwnPropertySymbols(en);si{const{getPrefixCls:fr,direction:Kr}=y.useContext(w.E_),{prefixCls:ii,size:si,className:uo}=en,Qo=P(en,["prefixCls","size","className"]),_n=fr("btn-group",ii),[,,Vr]=(0,S.Z)();let qr="";switch(si){case"large":qr="lg";break;case"small":qr="sm";break;case"middle":default:}const Ui=b()(_n,{[`${_n}-${qr}`]:qr,[`${_n}-rtl`]:Kr==="rtl"},uo,Vr);return y.createElement(W.Provider,{value:si},y.createElement("div",Object.assign({},Qo,{className:Ui})))},ce=m(81201),he=(0,y.forwardRef)((en,fr)=>{const{className:Kr,style:ii,children:si,prefixCls:uo}=en,Qo=b()(`${uo}-icon`,Kr);return y.createElement("span",{ref:fr,className:Qo,style:ii},si)}),fe=m(38521),Be=m(44516);const Ie=(0,y.forwardRef)((en,fr)=>{let{prefixCls:Kr,className:ii,style:si,iconClassName:uo}=en;const Qo=b()(`${Kr}-loading-icon`,ii);return y.createElement(he,{prefixCls:Kr,className:Qo,style:si,ref:fr},y.createElement(fe.Z,{className:uo}))}),je=()=>({width:0,opacity:0,transform:"scale(0)"}),be=en=>({width:en.scrollWidth,opacity:1,transform:"scale(1)"});var ye=en=>{const{prefixCls:fr,loading:Kr,existIcon:ii,className:si,style:uo}=en,Qo=!!Kr;return ii?y.createElement(Ie,{prefixCls:fr,className:si,style:uo}):y.createElement(Be.ZP,{visible:Qo,motionName:`${fr}-loading-icon-motion`,motionLeave:Qo,removeOnLeave:!0,onAppearStart:je,onAppearActive:be,onEnterStart:je,onEnterActive:be,onLeaveStart:be,onLeaveActive:je},(_n,Vr)=>{let{className:qr,style:Ui}=_n;return y.createElement(Ie,{prefixCls:fr,className:si,style:Object.assign(Object.assign({},uo),Ui),ref:Vr,iconClassName:qr})})},Ce=m(92068),xe=m(41788),Ae=m(24577);const ge=(en,fr)=>({[`> span, > ${en}`]:{"&:not(:last-child)":{[`&, & > ${en}`]:{"&:not(:disabled)":{borderInlineEndColor:fr}}},"&:not(:first-child)":{[`&, & > ${en}`]:{"&:not(:disabled)":{borderInlineStartColor:fr}}}}});var Se=en=>{const{componentCls:fr,fontSize:Kr,lineWidth:ii,groupBorderColor:si,colorErrorHover:uo}=en;return{[`${fr}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${fr}`]:{"&:not(:last-child)":{[`&, & > ${fr}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-ii,[`&, & > ${fr}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[fr]:{position:"relative",zIndex:1,[`&:hover, +`)}function T(xe){this.options=xe||{locator:{}}}T.prototype.parseFromString=function(xe,Se){var it=this.options,Xe=new S,ft=it.domBuilder||new K,Me=it.errorHandler,Ee=it.locator,ze=it.xmlns||{},Pe=/\/x?html?$/.test(Se),Re=Pe?x.HTML_ENTITIES:x.XML_ENTITIES;Ee&&ft.setDocumentLocator(Ee),Xe.errorHandler=F(Me,ft,Ee),Xe.domBuilder=it.domBuilder||ft,Pe&&(ze[""]=R.HTML),ze.xml=ze.xml||R.XML;var je=it.normalizeLineEndings||p;return xe&&typeof xe=="string"?Xe.parse(je(xe),ze,Re):Xe.errorHandler.error("invalid doc source"),ft.doc};function F(xe,Se,it){if(!xe){if(Se instanceof K)return Se;xe=Se}var Xe={},ft=xe instanceof Function;it=it||{};function Me(Ee){var ze=xe[Ee];!ze&&ft&&(ze=xe.length==2?function(Pe){xe(Ee,Pe)}:xe),Xe[Ee]=ze&&function(Pe){ze("[xmldom "+Ee+"] "+Pe+fe(it))}||function(){}}return Me("warning"),Me("error"),Me("fatalError"),Xe}function K(){this.cdata=!1}function he(xe,Se){Se.lineNumber=xe.lineNumber,Se.columnNumber=xe.columnNumber}K.prototype={startDocument:function(){this.doc=new V().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(xe,Se,it,Xe){var ft=this.doc,Me=ft.createElementNS(xe,it||Se),Ee=Xe.length;Ae(this,Me),this.currentElement=Me,this.locator&&he(this.locator,Me);for(var ze=0;ze=Se+it||Se?new java.lang.String(xe,Se,it)+"":xe}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(xe){K.prototype[xe]=function(){return null}});function Ae(xe,Se){xe.currentElement?xe.currentElement.appendChild(Se):xe.doc.appendChild(Se)}v=K,v=p,v=T},32706:function(mt,q,_){var v=_(18859),M=v.find,C=v.NAMESPACE;function x(Yt){return Yt!==""}function N(Yt){return Yt?Yt.split(/[\t\n\f\r ]+/).filter(x):[]}function V(Yt,xn){return Yt.hasOwnProperty(xn)||(Yt[xn]=!0),Yt}function R(Yt){if(!Yt)return[];var xn=N(Yt);return Object.keys(xn.reduce(V,{}))}function k(Yt){return function(xn){return Yt&&Yt.indexOf(xn)!==-1}}function S(Yt,xn){for(var fr in Yt)Object.prototype.hasOwnProperty.call(Yt,fr)&&(xn[fr]=Yt[fr])}function p(Yt,xn){var fr=Yt.prototype;if(!(fr instanceof xn)){let bi=function(){};var Nr=bi;bi.prototype=xn.prototype,bi=new bi,S(fr,bi),Yt.prototype=fr=bi}fr.constructor!=Yt&&(typeof Yt!="function"&&console.error("unknown Class:"+Yt),fr.constructor=Yt)}var T={},F=T.ELEMENT_NODE=1,K=T.ATTRIBUTE_NODE=2,he=T.TEXT_NODE=3,fe=T.CDATA_SECTION_NODE=4,be=T.ENTITY_REFERENCE_NODE=5,Ae=T.ENTITY_NODE=6,xe=T.PROCESSING_INSTRUCTION_NODE=7,Se=T.COMMENT_NODE=8,it=T.DOCUMENT_NODE=9,Xe=T.DOCUMENT_TYPE_NODE=10,ft=T.DOCUMENT_FRAGMENT_NODE=11,Me=T.NOTATION_NODE=12,Ee={},ze={},Pe=Ee.INDEX_SIZE_ERR=(ze[1]="Index size error",1),Re=Ee.DOMSTRING_SIZE_ERR=(ze[2]="DOMString size error",2),je=Ee.HIERARCHY_REQUEST_ERR=(ze[3]="Hierarchy request error",3),Ce=Ee.WRONG_DOCUMENT_ERR=(ze[4]="Wrong document",4),rt=Ee.INVALID_CHARACTER_ERR=(ze[5]="Invalid character",5),Ne=Ee.NO_DATA_ALLOWED_ERR=(ze[6]="No data allowed",6),Xt=Ee.NO_MODIFICATION_ALLOWED_ERR=(ze[7]="No modification allowed",7),Ft=Ee.NOT_FOUND_ERR=(ze[8]="Not found",8),lt=Ee.NOT_SUPPORTED_ERR=(ze[9]="Not supported",9),Bt=Ee.INUSE_ATTRIBUTE_ERR=(ze[10]="Attribute in use",10),At=Ee.INVALID_STATE_ERR=(ze[11]="Invalid state",11),an=Ee.SYNTAX_ERR=(ze[12]="Syntax error",12),Tt=Ee.INVALID_MODIFICATION_ERR=(ze[13]="Invalid modification",13),Nn=Ee.NAMESPACE_ERR=(ze[14]="Invalid namespace",14),mn=Ee.INVALID_ACCESS_ERR=(ze[15]="Invalid access",15);function zn(Yt,xn){if(xn instanceof Error)var fr=xn;else fr=this,Error.call(this,ze[Yt]),this.message=ze[Yt],Error.captureStackTrace&&Error.captureStackTrace(this,zn);return fr.code=Yt,xn&&(this.message=this.message+": "+xn),fr}zn.prototype=Error.prototype,S(Ee,zn);function Kr(){}Kr.prototype={length:0,item:function(Yt){return Yt>=0&&Yt=0){for(var bi=xn.length-1;Nr0},lookupPrefix:function(Yt){for(var xn=this;xn;){var fr=xn._nsMap;if(fr){for(var Nr in fr)if(Object.prototype.hasOwnProperty.call(fr,Nr)&&fr[Nr]===Yt)return Nr}xn=xn.nodeType==K?xn.ownerDocument:xn.parentNode}return null},lookupNamespaceURI:function(Yt){for(var xn=this;xn;){var fr=xn._nsMap;if(fr&&Object.prototype.hasOwnProperty.call(fr,Yt))return fr[Yt];xn=xn.nodeType==K?xn.ownerDocument:xn.parentNode}return null},isDefaultNamespace:function(Yt){var xn=this.lookupPrefix(Yt);return xn==null}};function $i(Yt){return Yt=="<"&&"<"||Yt==">"&&">"||Yt=="&"&&"&"||Yt=='"'&&"""||"&#"+Yt.charCodeAt()+";"}S(T,Oo),S(T,Oo.prototype);function co(Yt,xn){if(xn(Yt))return!0;if(Yt=Yt.firstChild)do if(co(Yt,xn))return!0;while(Yt=Yt.nextSibling)}function Vr(){this.ownerDocument=this}function Ro(Yt,xn,fr){Yt&&Yt._inc++;var Nr=fr.namespaceURI;Nr===C.XMLNS&&(xn._nsMap[fr.prefix?fr.localName:""]=fr.value)}function Tn(Yt,xn,fr,Nr){Yt&&Yt._inc++;var bi=fr.namespaceURI;bi===C.XMLNS&&delete xn._nsMap[fr.prefix?fr.localName:""]}function nt(Yt,xn,fr){if(Yt&&Yt._inc){Yt._inc++;var Nr=xn.childNodes;if(fr)Nr[Nr.length++]=fr;else{for(var bi=xn.firstChild,Ei=0;bi;)Nr[Ei++]=bi,bi=bi.nextSibling;Nr.length=Ei,delete Nr[Nr.length]}}}function Ct(Yt,xn){var fr=xn.previousSibling,Nr=xn.nextSibling;return fr?fr.nextSibling=Nr:Yt.firstChild=Nr,Nr?Nr.previousSibling=fr:Yt.lastChild=fr,xn.parentNode=null,xn.previousSibling=null,xn.nextSibling=null,nt(Yt.ownerDocument,Yt),xn}function Ht(Yt){return Yt&&(Yt.nodeType===Oo.DOCUMENT_NODE||Yt.nodeType===Oo.DOCUMENT_FRAGMENT_NODE||Yt.nodeType===Oo.ELEMENT_NODE)}function hn(Yt){return Yt&&(rn(Yt)||Jt(Yt)||En(Yt)||Yt.nodeType===Oo.DOCUMENT_FRAGMENT_NODE||Yt.nodeType===Oo.COMMENT_NODE||Yt.nodeType===Oo.PROCESSING_INSTRUCTION_NODE)}function En(Yt){return Yt&&Yt.nodeType===Oo.DOCUMENT_TYPE_NODE}function rn(Yt){return Yt&&Yt.nodeType===Oo.ELEMENT_NODE}function Jt(Yt){return Yt&&Yt.nodeType===Oo.TEXT_NODE}function Mt(Yt,xn){var fr=Yt.childNodes||[];if(M(fr,rn)||En(xn))return!1;var Nr=M(fr,En);return!(xn&&Nr&&fr.indexOf(Nr)>fr.indexOf(xn))}function Qt(Yt,xn){var fr=Yt.childNodes||[];function Nr(Ei){return rn(Ei)&&Ei!==xn}if(M(fr,Nr))return!1;var bi=M(fr,En);return!(xn&&bi&&fr.indexOf(bi)>fr.indexOf(xn))}function Dn(Yt,xn,fr){if(!Ht(Yt))throw new zn(je,"Unexpected parent node type "+Yt.nodeType);if(fr&&fr.parentNode!==Yt)throw new zn(Ft,"child not in parent");if(!hn(xn)||En(xn)&&Yt.nodeType!==Oo.DOCUMENT_NODE)throw new zn(je,"Unexpected node type "+xn.nodeType+" for parent node type "+Yt.nodeType)}function sn(Yt,xn,fr){var Nr=Yt.childNodes||[],bi=xn.childNodes||[];if(xn.nodeType===Oo.DOCUMENT_FRAGMENT_NODE){var Ei=bi.filter(rn);if(Ei.length>1||M(bi,Jt))throw new zn(je,"More than one element or text in fragment");if(Ei.length===1&&!Mt(Yt,fr))throw new zn(je,"Element in fragment can not be inserted before doctype")}if(rn(xn)&&!Mt(Yt,fr))throw new zn(je,"Only one element can be added and only after doctype");if(En(xn)){if(M(Nr,En))throw new zn(je,"Only one doctype is allowed");var Yi=M(Nr,rn);if(fr&&Nr.indexOf(Yi)1||M(bi,Jt))throw new zn(je,"More than one element or text in fragment");if(Ei.length===1&&!Qt(Yt,fr))throw new zn(je,"Element in fragment can not be inserted before doctype")}if(rn(xn)&&!Qt(Yt,fr))throw new zn(je,"Only one element can be added and only after doctype");if(En(xn)){let Wr=function(Ni){return En(Ni)&&Ni!==fr};var di=Wr;if(M(Nr,Wr))throw new zn(je,"Only one doctype is allowed");var Yi=M(Nr,rn);if(fr&&Nr.indexOf(Yi)0&&co(fr.documentElement,function(bi){if(bi!==fr&&bi.nodeType===F){var Ei=bi.getAttribute("class");if(Ei){var Yi=Yt===Ei;if(!Yi){var di=R(Ei);Yi=xn.every(k(di))}Yi&&Nr.push(bi)}}}),Nr})},createElement:function(Yt){var xn=new Pr;xn.ownerDocument=this,xn.nodeName=Yt,xn.tagName=Yt,xn.localName=Yt,xn.childNodes=new Kr;var fr=xn.attributes=new gi;return fr._ownerElement=xn,xn},createDocumentFragment:function(){var Yt=new Gt;return Yt.ownerDocument=this,Yt.childNodes=new Kr,Yt},createTextNode:function(Yt){var xn=new On;return xn.ownerDocument=this,xn.appendData(Yt),xn},createComment:function(Yt){var xn=new zr;return xn.ownerDocument=this,xn.appendData(Yt),xn},createCDATASection:function(Yt){var xn=new qr;return xn.ownerDocument=this,xn.appendData(Yt),xn},createProcessingInstruction:function(Yt,xn){var fr=new wn;return fr.ownerDocument=this,fr.tagName=fr.nodeName=fr.target=Yt,fr.nodeValue=fr.data=xn,fr},createAttribute:function(Yt){var xn=new Hi;return xn.ownerDocument=this,xn.name=Yt,xn.nodeName=Yt,xn.localName=Yt,xn.specified=!0,xn},createEntityReference:function(Yt){var xn=new $t;return xn.ownerDocument=this,xn.nodeName=Yt,xn},createElementNS:function(Yt,xn){var fr=new Pr,Nr=xn.split(":"),bi=fr.attributes=new gi;return fr.childNodes=new Kr,fr.ownerDocument=this,fr.nodeName=xn,fr.tagName=xn,fr.namespaceURI=Yt,Nr.length==2?(fr.prefix=Nr[0],fr.localName=Nr[1]):fr.localName=xn,bi._ownerElement=fr,fr},createAttributeNS:function(Yt,xn){var fr=new Hi,Nr=xn.split(":");return fr.ownerDocument=this,fr.nodeName=xn,fr.name=xn,fr.namespaceURI=Yt,fr.specified=!0,Nr.length==2?(fr.prefix=Nr[0],fr.localName=Nr[1]):fr.localName=xn,fr}},p(Vr,Oo);function Pr(){this._nsMap={}}Pr.prototype={nodeType:F,hasAttribute:function(Yt){return this.getAttributeNode(Yt)!=null},getAttribute:function(Yt){var xn=this.getAttributeNode(Yt);return xn&&xn.value||""},getAttributeNode:function(Yt){return this.attributes.getNamedItem(Yt)},setAttribute:function(Yt,xn){var fr=this.ownerDocument.createAttribute(Yt);fr.value=fr.nodeValue=""+xn,this.setAttributeNode(fr)},removeAttribute:function(Yt){var xn=this.getAttributeNode(Yt);xn&&this.removeAttributeNode(xn)},appendChild:function(Yt){return Yt.nodeType===ft?this.insertBefore(Yt,null):xi(this,Yt)},setAttributeNode:function(Yt){return this.attributes.setNamedItem(Yt)},setAttributeNodeNS:function(Yt){return this.attributes.setNamedItemNS(Yt)},removeAttributeNode:function(Yt){return this.attributes.removeNamedItem(Yt.nodeName)},removeAttributeNS:function(Yt,xn){var fr=this.getAttributeNodeNS(Yt,xn);fr&&this.removeAttributeNode(fr)},hasAttributeNS:function(Yt,xn){return this.getAttributeNodeNS(Yt,xn)!=null},getAttributeNS:function(Yt,xn){var fr=this.getAttributeNodeNS(Yt,xn);return fr&&fr.value||""},setAttributeNS:function(Yt,xn,fr){var Nr=this.ownerDocument.createAttributeNS(Yt,xn);Nr.value=Nr.nodeValue=""+fr,this.setAttributeNode(Nr)},getAttributeNodeNS:function(Yt,xn){return this.attributes.getNamedItemNS(Yt,xn)},getElementsByTagName:function(Yt){return new Ui(this,function(xn){var fr=[];return co(xn,function(Nr){Nr!==xn&&Nr.nodeType==F&&(Yt==="*"||Nr.tagName==Yt)&&fr.push(Nr)}),fr})},getElementsByTagNameNS:function(Yt,xn){return new Ui(this,function(fr){var Nr=[];return co(fr,function(bi){bi!==fr&&bi.nodeType===F&&(Yt==="*"||bi.namespaceURI===Yt)&&(xn==="*"||bi.localName==xn)&&Nr.push(bi)}),Nr})}},Vr.prototype.getElementsByTagName=Pr.prototype.getElementsByTagName,Vr.prototype.getElementsByTagNameNS=Pr.prototype.getElementsByTagNameNS,p(Pr,Oo);function Hi(){}Hi.prototype.nodeType=K,p(Hi,Oo);function Io(){}Io.prototype={data:"",substringData:function(Yt,xn){return this.data.substring(Yt,Yt+xn)},appendData:function(Yt){Yt=this.data+Yt,this.nodeValue=this.data=Yt,this.length=Yt.length},insertData:function(Yt,xn){this.replaceData(Yt,0,xn)},appendChild:function(Yt){throw new Error(ze[je])},deleteData:function(Yt,xn){this.replaceData(Yt,xn,"")},replaceData:function(Yt,xn,fr){var Nr=this.data.substring(0,Yt),bi=this.data.substring(Yt+xn);fr=Nr+fr+bi,this.nodeValue=this.data=fr,this.length=fr.length}},p(Io,Oo);function On(){}On.prototype={nodeName:"#text",nodeType:he,splitText:function(Yt){var xn=this.data,fr=xn.substring(Yt);xn=xn.substring(0,Yt),this.data=this.nodeValue=xn,this.length=xn.length;var Nr=this.ownerDocument.createTextNode(fr);return this.parentNode&&this.parentNode.insertBefore(Nr,this.nextSibling),Nr}},p(On,Io);function zr(){}zr.prototype={nodeName:"#comment",nodeType:Se},p(zr,Io);function qr(){}qr.prototype={nodeName:"#cdata-section",nodeType:fe},p(qr,Io);function Wi(){}Wi.prototype.nodeType=Xe,p(Wi,Oo);function ir(){}ir.prototype.nodeType=Me,p(ir,Oo);function Jn(){}Jn.prototype.nodeType=Ae,p(Jn,Oo);function $t(){}$t.prototype.nodeType=be,p($t,Oo);function Gt(){}Gt.prototype.nodeName="#document-fragment",Gt.prototype.nodeType=ft,p(Gt,Oo);function wn(){}wn.prototype.nodeType=xe,p(wn,Oo);function Zn(){}Zn.prototype.serializeToString=function(Yt,xn,fr){return _r.call(Yt,xn,fr)},Oo.prototype.toString=_r;function _r(Yt,xn){var fr=[],Nr=this.nodeType==9&&this.documentElement||this,bi=Nr.prefix,Ei=Nr.namespaceURI;if(Ei&&bi==null){var bi=Nr.lookupPrefix(Ei);if(bi==null)var Yi=[{namespace:Ei,prefix:null}]}return jt(this,fr,Yt,xn,Yi),fr.join("")}function qn(Yt,xn,fr){var Nr=Yt.prefix||"",bi=Yt.namespaceURI;if(!bi||Nr==="xml"&&bi===C.XML||bi===C.XMLNS)return!1;for(var Ei=fr.length;Ei--;){var Yi=fr[Ei];if(Yi.prefix===Nr)return Yi.namespace!==bi}return!0}function $n(Yt,xn,fr){Yt.push(" ",xn,'="',fr.replace(/[<>&"\t\n\r]/g,$i),'"')}function jt(Yt,xn,fr,Nr,bi){if(bi||(bi=[]),Nr)if(Yt=Nr(Yt),Yt){if(typeof Yt=="string"){xn.push(Yt);return}}else return;switch(Yt.nodeType){case F:var Ei=Yt.attributes,Yi=Ei.length,fi=Yt.firstChild,di=Yt.tagName;fr=C.isHTML(Yt.namespaceURI)||fr;var Wr=di;if(!fr&&!Yt.prefix&&Yt.namespaceURI){for(var Ni,kr=0;kr=0;Xr--){var yo=bi[Xr];if(yo.prefix===""&&yo.namespace===Yt.namespaceURI){Ni=yo.namespace;break}}if(Ni!==Yt.namespaceURI)for(var Xr=bi.length-1;Xr>=0;Xr--){var yo=bi[Xr];if(yo.namespace===Yt.namespaceURI){yo.prefix&&(Wr=yo.prefix+":"+di);break}}}xn.push("<",Wr);for(var ls=0;ls"),fr&&/^script$/i.test(di))for(;fi;)fi.data?xn.push(fi.data):jt(fi,xn,fr,Nr,bi.slice()),fi=fi.nextSibling;else for(;fi;)jt(fi,xn,fr,Nr,bi.slice()),fi=fi.nextSibling;xn.push("")}else xn.push("/>");return;case it:case ft:for(var fi=Yt.firstChild;fi;)jt(fi,xn,fr,Nr,bi.slice()),fi=fi.nextSibling;return;case K:return $n(xn,Yt.name,Yt.value);case he:return xn.push(Yt.data.replace(/[<&>]/g,$i));case fe:return xn.push("");case Se:return xn.push("");case Xe:var Po=Yt.publicId,mo=Yt.systemId;if(xn.push("");else if(mo&&mo!=".")xn.push(" SYSTEM ",mo,">");else{var or=Yt.internalSubset;or&&xn.push(" [",or,"]"),xn.push(">")}return;case xe:return xn.push("");case be:return xn.push("&",Yt.nodeName,";");default:xn.push("??",Yt.nodeName)}}function In(Yt,xn,fr){var Nr;switch(xn.nodeType){case F:Nr=xn.cloneNode(!1),Nr.ownerDocument=Yt;case ft:break;case K:fr=!0;break}if(Nr||(Nr=xn.cloneNode(!1)),Nr.ownerDocument=Yt,Nr.parentNode=null,fr)for(var bi=xn.firstChild;bi;)Nr.appendChild(In(Yt,bi,fr)),bi=bi.nextSibling;return Nr}function vr(Yt,xn,fr){var Nr=new xn.constructor;for(var bi in xn)if(Object.prototype.hasOwnProperty.call(xn,bi)){var Ei=xn[bi];typeof Ei!="object"&&Ei!=Nr[bi]&&(Nr[bi]=Ei)}switch(xn.childNodes&&(Nr.childNodes=new Kr),Nr.ownerDocument=Yt,Nr.nodeType){case F:var Yi=xn.attributes,di=Nr.attributes=new gi,Wr=Yi.length;di._ownerElement=Nr;for(var Ni=0;Ni",lt:"<",quot:'"'}),q.HTML_ENTITIES=v({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"}),q.entityMap=q.HTML_ENTITIES},65952:function(mt,q,_){var v,M=_(32706);v=M.DOMImplementation,q.B=M.XMLSerializer,_(36980)},12128:function(mt,q,_){var v=_(18859).NAMESPACE,M=/[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]/,C=new RegExp("[\\-\\.0-9"+M.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),x=new RegExp("^"+M.source+C.source+"*(?::"+M.source+C.source+"*)?$"),N=0,V=1,R=2,k=3,S=4,p=5,T=6,F=7;function K(Pe,Re){this.message=Pe,this.locator=Re,Error.captureStackTrace&&Error.captureStackTrace(this,K)}K.prototype=new Error,K.prototype.name=K.name;function he(){}he.prototype={parse:function(Pe,Re,je){var Ce=this.domBuilder;Ce.startDocument(),Xe(Re,Re={}),fe(Pe,Re,je,Ce,this.errorHandler),Ce.endDocument()}};function fe(Pe,Re,je,Ce,rt){function Ne(Ht){if(Ht>65535){Ht-=65536;var hn=55296+(Ht>>10),En=56320+(Ht&1023);return String.fromCharCode(hn,En)}else return String.fromCharCode(Ht)}function Xt(Ht){var hn=Ht.slice(1,-1);return Object.hasOwnProperty.call(je,hn)?je[hn]:hn.charAt(0)==="#"?Ne(parseInt(hn.substr(1).replace("x","0x"))):(rt.error("entity not found:"+Ht),Ht)}function Ft(Ht){if(Ht>zn){var hn=Pe.substring(zn,Ht).replace(/&#?\w+;/g,Xt);Tt&<(zn),Ce.characters(hn,0,Ht-zn),zn=Ht}}function lt(Ht,hn){for(;Ht>=At&&(hn=an.exec(Pe));)Bt=hn.index,At=Bt+hn[0].length,Tt.lineNumber++;Tt.columnNumber=Ht-Bt+1}for(var Bt=0,At=0,an=/.*(?:\r\n?|\n)|.*$/g,Tt=Ce.locator,Nn=[{currentNSMap:Re}],mn={},zn=0;;){try{var Kr=Pe.indexOf("<",zn);if(Kr<0){if(!Pe.substr(zn).match(/^\s*$/)){var Ui=Ce.doc,go=Ui.createTextNode(Pe.substr(zn));Ui.appendChild(go),Ce.currentElement=go}return}switch(Kr>zn&&Ft(Kr),Pe.charAt(Kr+1)){case"/":var Vr=Pe.indexOf(">",Kr+3),gi=Pe.substring(Kr+2,Vr).replace(/[ \t\n\r]+$/g,""),Mr=Nn.pop();Vr<0?(gi=Pe.substring(Kr+2).replace(/[\s<].*/,""),rt.error("end tag name: "+gi+" is not complete:"+Mr.tagName),Vr=Kr+1+gi.length):gi.match(/\szn?zn=Vr:Ft(Math.max(Kr,zn)+1)}}function be(Pe,Re){return Re.lineNumber=Pe.lineNumber,Re.columnNumber=Pe.columnNumber,Re}function Ae(Pe,Re,je,Ce,rt,Ne){function Xt(Nn,mn,zn){je.attributeNames.hasOwnProperty(Nn)&&Ne.fatalError("Attribute "+Nn+" redefined"),je.addValue(Nn,mn.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,rt),zn)}for(var Ft,lt,Bt=++Re,At=N;;){var an=Pe.charAt(Bt);switch(an){case"=":if(At===V)Ft=Pe.slice(Re,Bt),At=k;else if(At===R)At=k;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(At===k||At===V)if(At===V&&(Ne.warning('attribute value must after "="'),Ft=Pe.slice(Re,Bt)),Re=Bt+1,Bt=Pe.indexOf(an,Re),Bt>0)lt=Pe.slice(Re,Bt),Xt(Ft,lt,Re-1),At=p;else throw new Error("attribute value no end '"+an+"' match");else if(At==S)lt=Pe.slice(Re,Bt),Xt(Ft,lt,Re),Ne.warning('attribute "'+Ft+'" missed start quot('+an+")!!"),Re=Bt+1,At=p;else throw new Error('attribute value must after "="');break;case"/":switch(At){case N:je.setTagName(Pe.slice(Re,Bt));case p:case T:case F:At=F,je.closed=!0;case S:case V:break;case R:je.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return Ne.error("unexpected end of input"),At==N&&je.setTagName(Pe.slice(Re,Bt)),Bt;case">":switch(At){case N:je.setTagName(Pe.slice(Re,Bt));case p:case T:case F:break;case S:case V:lt=Pe.slice(Re,Bt),lt.slice(-1)==="/"&&(je.closed=!0,lt=lt.slice(0,-1));case R:At===R&&(lt=Ft),At==S?(Ne.warning('attribute "'+lt+'" missed quot(")!'),Xt(Ft,lt,Re)):((!v.isHTML(Ce[""])||!lt.match(/^(?:disabled|checked|selected)$/i))&&Ne.warning('attribute "'+lt+'" missed value!! "'+lt+'" instead!!'),Xt(lt,lt,Re));break;case k:throw new Error("attribute value missed!!")}return Bt;case"\x80":an=" ";default:if(an<=" ")switch(At){case N:je.setTagName(Pe.slice(Re,Bt)),At=T;break;case V:Ft=Pe.slice(Re,Bt),At=R;break;case S:var lt=Pe.slice(Re,Bt);Ne.warning('attribute "'+lt+'" missed quot(")!!'),Xt(Ft,lt,Re);case p:At=T;break}else switch(At){case R:var Tt=je.tagName;(!v.isHTML(Ce[""])||!Ft.match(/^(?:disabled|checked|selected)$/i))&&Ne.warning('attribute "'+Ft+'" missed value!! "'+Ft+'" instead2!!'),Xt(Ft,Ft,Re),Re=Bt,At=V;break;case p:Ne.warning('attribute space is required"'+Ft+'"!!');case T:At=V,Re=Bt;break;case k:At=S,Re=Bt;break;case F:throw new Error("elements closed character '/' and '>' must be connected to")}}Bt++}}function xe(Pe,Re,je){for(var Ce=Pe.tagName,rt=null,an=Pe.length;an--;){var Ne=Pe[an],Xt=Ne.qName,Ft=Ne.value,Tt=Xt.indexOf(":");if(Tt>0)var lt=Ne.prefix=Xt.slice(0,Tt),Bt=Xt.slice(Tt+1),At=lt==="xmlns"&&Bt;else Bt=Xt,lt=null,At=Xt==="xmlns"&&"";Ne.localName=Bt,At!==!1&&(rt==null&&(rt={},Xe(je,je={})),je[At]=rt[At]=Ft,Ne.uri=v.XMLNS,Re.startPrefixMapping(At,Ft))}for(var an=Pe.length;an--;){Ne=Pe[an];var lt=Ne.prefix;lt&&(lt==="xml"&&(Ne.uri=v.XML),lt!=="xmlns"&&(Ne.uri=je[lt||""]))}var Tt=Ce.indexOf(":");Tt>0?(lt=Pe.prefix=Ce.slice(0,Tt),Bt=Pe.localName=Ce.slice(Tt+1)):(lt=null,Bt=Pe.localName=Ce);var Nn=Pe.uri=je[lt||""];if(Re.startElement(Nn,Bt,Ce,Pe),Pe.closed){if(Re.endElement(Nn,Bt,Ce),rt)for(lt in rt)Object.prototype.hasOwnProperty.call(rt,lt)&&Re.endPrefixMapping(lt)}else return Pe.currentNSMap=je,Pe.localNSMap=rt,!0}function Se(Pe,Re,je,Ce,rt){if(/^(?:script|textarea)$/i.test(je)){var Ne=Pe.indexOf("",Re),Xt=Pe.substring(Re+1,Ne);if(/[&<]/.test(Xt))return/^script$/i.test(je)?(rt.characters(Xt,0,Xt.length),Ne):(Xt=Xt.replace(/&#?\w+;/g,Ce),rt.characters(Xt,0,Xt.length),Ne)}return Re+1}function it(Pe,Re,je,Ce){var rt=Ce[je];return rt==null&&(rt=Pe.lastIndexOf(""),rt",Re+4);return Ne>Re?(je.comment(Pe,Re+4,Ne-Re-4),Ne+3):(Ce.error("Unclosed comment"),-1)}else return-1;default:if(Pe.substr(Re+3,6)=="CDATA["){var Ne=Pe.indexOf("]]>",Re+9);return je.startCDATA(),je.characters(Pe,Re+9,Ne-Re-9),je.endCDATA(),Ne+3}var Xt=ze(Pe,Re),Ft=Xt.length;if(Ft>1&&/!doctype/i.test(Xt[0][0])){var lt=Xt[1][0],Bt=!1,At=!1;Ft>3&&(/^public$/i.test(Xt[2][0])?(Bt=Xt[3][0],At=Ft>4&&Xt[4][0]):/^system$/i.test(Xt[2][0])&&(At=Xt[3][0]));var an=Xt[Ft-1];return je.startDTD(lt,Bt,At),je.endDTD(),an.index+an[0].length}}return-1}function Me(Pe,Re,je){var Ce=Pe.indexOf("?>",Re);if(Ce){var rt=Pe.substring(Re,Ce).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(rt){var Ne=rt[0].length;return je.processingInstruction(rt[1],rt[2]),Ce+2}else return-1}return-1}function Ee(){this.attributeNames={}}Ee.prototype={setTagName:function(Pe){if(!x.test(Pe))throw new Error("invalid tagName:"+Pe);this.tagName=Pe},addValue:function(Pe,Re,je){if(!x.test(Pe))throw new Error("invalid attribute:"+Pe);this.attributeNames[Pe]=this.length,this[this.length++]={qName:Pe,value:Re,offset:je}},length:0,getLocalName:function(Pe){return this[Pe].localName},getLocator:function(Pe){return this[Pe].locator},getQName:function(Pe){return this[Pe].qName},getURI:function(Pe){return this[Pe].uri},getValue:function(Pe){return this[Pe].value}};function ze(Pe,Re){var je,Ce=[],rt=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(rt.lastIndex=Re,rt.exec(Pe);je=rt.exec(Pe);)if(Ce.push(je),je[1])return Ce}q.XMLReader=he,q.ParseError=K},28084:function(mt,q,_){"use strict";var v=_(32290),M=_(77617),C=_(73680);function x(V){return(0,C.mf)(V[Symbol.asyncIterator])}function N(V,R){(0,M.useEffect)(function(){var k=V(),S=!1;function p(){return(0,v.mG)(this,void 0,void 0,function(){var T;return(0,v.Jh)(this,function(F){switch(F.label){case 0:if(!x(k))return[3,4];F.label=1;case 1:return[4,k.next()];case 2:return T=F.sent(),T.done||S?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,k];case 5:F.sent(),F.label=6;case 6:return[2]}})})}return p(),function(){S=!0}},R)}q.Z=N},64310:function(mt,q,_){"use strict";var v=_(32290),M=_(77617),C=_(50160);function x(N,V){var R=(0,v.CR)((0,M.useState)(N),2),k=R[0],S=R[1],p=(0,C.Z)(function(){S(N)},V).run;return(0,M.useEffect)(function(){p()},[N]),k}q.Z=x},50160:function(mt,q,_){"use strict";var v=_(32290),M=_(41571),C=_.n(M),x=_(77617),N=_(30542),V=_(22633),R=_(73680),k=_(37036);function S(p,T){var F;k.Z&&((0,R.mf)(p)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof p)));var K=(0,N.Z)(p),he=(F=T==null?void 0:T.wait)!==null&&F!==void 0?F:1e3,fe=(0,x.useMemo)(function(){return C()(function(){for(var be=[],Ae=0;Ae{const{type:k,children:S,prefixCls:p,buttonProps:T,close:F,autoFocus:K,emitEvent:he,isSilent:fe,quitOnNullishReturnValue:be,actionFn:Ae}=R,xe=M.useRef(!1),Se=M.useRef(null),[it,Xe]=(0,v.Z)(!1),ft=function(){F==null||F.apply(void 0,arguments)};M.useEffect(()=>{let ze=null;return K&&(ze=setTimeout(()=>{var Pe;(Pe=Se.current)===null||Pe===void 0||Pe.focus()})),()=>{ze&&clearTimeout(ze)}},[]);const Me=ze=>{N(ze)&&(Xe(!0),ze.then(function(){Xe(!1,!0),ft.apply(void 0,arguments),xe.current=!1},Pe=>{if(Xe(!1,!0),xe.current=!1,!(fe!=null&&fe()))return Promise.reject(Pe)}))},Ee=ze=>{if(xe.current)return;if(xe.current=!0,!Ae){ft();return}let Pe;if(he){if(Pe=Ae(ze),be&&!N(Pe)){xe.current=!1,ft(ze);return}}else if(Ae.length)Pe=Ae(F),xe.current=!1;else if(Pe=Ae(),!Pe){ft();return}Me(Pe)};return M.createElement(C.ZP,Object.assign({},(0,x.nx)(k),{onClick:Ee,loading:it,prefixCls:p},T,{ref:Se}),S)};q.Z=V},33966:function(mt,q,_){"use strict";_.d(q,{Z:function(){return V},i:function(){return N}});var v=_(41760),M=_(77617),C=_(87255),x=_(41203);function N(R){return function(S){return M.createElement(C.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},M.createElement(R,Object.assign({},S)))}}function V(R,k,S,p){function T(F){const{prefixCls:K,style:he}=F,fe=M.useRef(null),[be,Ae]=M.useState(0),[xe,Se]=M.useState(0),[it,Xe]=(0,v.Z)(!1,{value:F.open}),{getPrefixCls:ft}=M.useContext(x.E_),Me=ft(k||"select",K);M.useEffect(()=>{if(Xe(!0),typeof ResizeObserver!="undefined"){const ze=new ResizeObserver(Re=>{const je=Re[0].target;Ae(je.offsetHeight+8),Se(je.offsetWidth)}),Pe=setInterval(()=>{var Re;const je=S?`.${S(Me)}`:`.${Me}-dropdown`,Ce=(Re=fe.current)===null||Re===void 0?void 0:Re.querySelector(je);Ce&&(clearInterval(Pe),ze.observe(Ce))},10);return()=>{clearInterval(Pe),ze.disconnect()}}},[]);let Ee=Object.assign(Object.assign({},F),{style:Object.assign(Object.assign({},he),{margin:0}),open:it,visible:it,getPopupContainer:()=>fe.current});return p&&(Ee=p(Ee)),M.createElement("div",{ref:fe,style:{paddingBottom:be,position:"relative",minWidth:xe}},M.createElement(R,Object.assign({},Ee)))}return N(T)}},1386:function(mt,q,_){"use strict";_.d(q,{Z:function(){return v}});const v=M=>M?typeof M=="function"?M():M:null},79172:function(mt,q,_){"use strict";_.d(q,{Z:function(){return x}});var v=_(49934),M=_(77617);function C(N,V,R){return typeof N=="boolean"?N:V===void 0?!!R:V!==!1&&V!==null}function x(N,V,R){let k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:M.createElement(v.Z,null),S=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!C(N,V,S))return[!1,null];const T=typeof V=="boolean"||V===void 0||V===null?k:V;return[!0,R?R(T):T]}},78958:function(mt,q,_){"use strict";_.d(q,{Z:function(){return M}});var v=_(77617);function M(){const[,C]=v.useReducer(x=>x+1,0);return C}},8799:function(mt,q,_){"use strict";_.d(q,{Cn:function(){return R}});var v=_(77617),M=_(45844),C=_(44942);const x={Modal:0,Drawer:0,Popover:70,Popconfirm:70,Tooltip:70,Tour:70},N={SelectLike:50,Dropdown:50,ColorPicker:30,DatePicker:50,Menu:50};function V(k){return k in x}function R(k,S){const[,p]=(0,M.Z)(),T=v.useContext(C.Z),F=V(k);let K=T!=null?T:0;return F?K+=p.zIndexPopupBase+x[k]:K+=N[k],[T===void 0?S:K,K]}},8418:function(mt,q,_){"use strict";_.d(q,{m:function(){return R}});const v=()=>({height:0,opacity:0}),M=k=>{const{scrollHeight:S}=k;return{height:S,opacity:1}},C=k=>({height:k?k.offsetHeight:0}),x=(k,S)=>(S==null?void 0:S.deadline)===!0||S.propertyName==="height",N=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:v,onEnterStart:v,onAppearActive:M,onEnterActive:M,onLeaveStart:C,onLeaveActive:v,onAppearEnd:x,onEnterEnd:x,onLeaveEnd:x,motionDeadline:500}},V=null,R=(k,S,p)=>p!==void 0?p:`${k}-${S}`;q.Z=N},94892:function(mt,q,_){"use strict";_.d(q,{Z:function(){return V}});var v=_(95661);function M(R,k,S,p){if(p===!1)return{adjustX:!1,adjustY:!1};const T=p&&typeof p=="object"?p:{},F={};switch(R){case"top":case"bottom":F.shiftX=k.dropdownArrowOffset*2+S,F.shiftY=!0,F.adjustY=!0;break;case"left":case"right":F.shiftY=k.dropdownArrowOffsetVertical*2+S,F.shiftX=!0,F.adjustX=!0;break}const K=Object.assign(Object.assign({},F),T);return K.shiftX||(K.adjustX=!0),K.shiftY||(K.adjustY=!0),K}const C={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"]}},x={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"]}},N=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function V(R){const{arrowWidth:k,autoAdjustOverflow:S,arrowPointAtCenter:p,offset:T,borderRadius:F,visibleFirst:K}=R,he=k/2,fe={};return Object.keys(C).forEach(be=>{const Ae=p&&x[be]||C[be],xe=Object.assign(Object.assign({},Ae),{offset:[0,0],dynamicInset:!0});switch(fe[be]=xe,N.has(be)&&(xe.autoArrow=!1),be){case"top":case"topLeft":case"topRight":xe.offset[1]=-he-T;break;case"bottom":case"bottomLeft":case"bottomRight":xe.offset[1]=he+T;break;case"left":case"leftTop":case"leftBottom":xe.offset[0]=-he-T;break;case"right":case"rightTop":case"rightBottom":xe.offset[0]=he+T;break}const Se=(0,v.fS)({contentRadius:F,limitVerticalRadius:!0});if(p)switch(be){case"topLeft":case"bottomLeft":xe.offset[0]=-Se.dropdownArrowOffset-he;break;case"topRight":case"bottomRight":xe.offset[0]=Se.dropdownArrowOffset+he;break;case"leftTop":case"rightTop":xe.offset[1]=-Se.dropdownArrowOffset-he;break;case"leftBottom":case"rightBottom":xe.offset[1]=Se.dropdownArrowOffset+he;break}xe.overflow=M(be,Se,k,S),K&&(xe.htmlRegion="visibleFirst")}),fe}},37628:function(mt,q,_){"use strict";var v;_.d(q,{M2:function(){return x},Tm:function(){return V},l$:function(){return C}});var M=_(77617);const{isValidElement:C}=v||(v=_.t(M,2));function x(R){return R&&C(R)&&R.type===M.Fragment}function N(R,k,S){return C(R)?M.cloneElement(R,typeof S=="function"?S(R.props||{}):S):k}function V(R,k){return N(R,R,k)}},4638:function(mt,q,_){"use strict";_.d(q,{ZP:function(){return V},c4:function(){return C},m9:function(){return R}});var v=_(77617),M=_(45844);const C=["xxl","xl","lg","md","sm","xs"],x=k=>({xs:`(max-width: ${k.screenXSMax}px)`,sm:`(min-width: ${k.screenSM}px)`,md:`(min-width: ${k.screenMD}px)`,lg:`(min-width: ${k.screenLG}px)`,xl:`(min-width: ${k.screenXL}px)`,xxl:`(min-width: ${k.screenXXL}px)`}),N=k=>{const S=k,p=[].concat(C).reverse();return p.forEach((T,F)=>{const K=T.toUpperCase(),he=`screen${K}Min`,fe=`screen${K}`;if(!(S[he]<=S[fe]))throw new Error(`${he}<=${fe} fails : !(${S[he]}<=${S[fe]})`);if(F{const p=new Map;let T=-1,F={};return{matchHandlers:{},dispatch(K){return F=K,p.forEach(he=>he(F)),p.size>=1},subscribe(K){return p.size||this.register(),T+=1,p.set(T,K),K(F),T},unsubscribe(K){p.delete(K),p.size||this.unregister()},unregister(){Object.keys(S).forEach(K=>{const he=S[K],fe=this.matchHandlers[he];fe==null||fe.mql.removeListener(fe==null?void 0:fe.listener)}),p.clear()},register(){Object.keys(S).forEach(K=>{const he=S[K],fe=Ae=>{let{matches:xe}=Ae;this.dispatch(Object.assign(Object.assign({},F),{[K]:xe}))},be=window.matchMedia(he);be.addListener(fe),this.matchHandlers[he]={mql:be,listener:fe},fe(be)})},responsiveMap:S}},[k])}const R=(k,S)=>{if(S&&typeof S=="object")for(let p=0;pR||V},93837:function(mt,q,_){"use strict";_.d(q,{G8:function(){return R},ln:function(){return k}});var v=_(77617),M=_(46644);function C(){}let x=null;function N(){x=null,rcResetWarned()}let V=null;const R=v.createContext({}),k=()=>{const p=()=>{};return p.deprecated=C,p};var S=null},90836:function(mt,q,_){"use strict";_.d(q,{Z:function(){return Pe}});var v=_(12124),M=_.n(v),C=_(9681),x=_(64630),N=_(77617),V=_(41203),R=_(37628),k=_(93154);const S=Re=>{const{componentCls:je,colorPrimary:Ce}=Re;return{[je]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${Ce})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${Re.motionEaseOutCirc}`,`opacity 2s ${Re.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${Re.motionEaseInOut}`,`opacity 0.35s ${Re.motionEaseInOut}`].join(",")}}}}};var p=(0,k.Z)("Wave",Re=>[S(Re)]),T=_(95470),F=_(28637),K=_(44516),he=_(13493);function fe(Re){const je=(Re||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return je&&je[1]&&je[2]&&je[3]?!(je[1]===je[2]&&je[2]===je[3]):!0}function be(Re){return Re&&Re!=="#fff"&&Re!=="#ffffff"&&Re!=="rgb(255, 255, 255)"&&Re!=="rgba(255, 255, 255, 1)"&&fe(Re)&&!/rgba\((?:\d*, ){3}0\)/.test(Re)&&Re!=="transparent"}function Ae(Re){const{borderTopColor:je,borderColor:Ce,backgroundColor:rt}=getComputedStyle(Re);return be(je)?je:be(Ce)?Ce:be(rt)?rt:null}var xe=_(50180);function Se(Re){return Number.isNaN(Re)?0:Re}const it=Re=>{const{className:je,target:Ce,component:rt}=Re,Ne=N.useRef(null),[Xt,Ft]=N.useState(null),[lt,Bt]=N.useState([]),[At,an]=N.useState(0),[Tt,Nn]=N.useState(0),[mn,zn]=N.useState(0),[Kr,Ui]=N.useState(0),[go,gi]=N.useState(!1),Mr={left:At,top:Tt,width:mn,height:Kr,borderRadius:lt.map(De=>`${De}px`).join(" ")};Xt&&(Mr["--wave-color"]=Xt);function To(){const De=getComputedStyle(Ce);Ft(Ae(Ce));const Oo=De.position==="static",{borderLeftWidth:$i,borderTopWidth:co}=De;an(Oo?Ce.offsetLeft:Se(-parseFloat($i))),Nn(Oo?Ce.offsetTop:Se(-parseFloat(co))),zn(Ce.offsetWidth),Ui(Ce.offsetHeight);const{borderTopLeftRadius:Vr,borderTopRightRadius:Ro,borderBottomLeftRadius:Tn,borderBottomRightRadius:nt}=De;Bt([Vr,Ro,nt,Tn].map(Ct=>Se(parseFloat(Ct))))}if(N.useEffect(()=>{if(Ce){const De=(0,F.Z)(()=>{To(),gi(!0)});let Oo;return typeof ResizeObserver!="undefined"&&(Oo=new ResizeObserver(To),Oo.observe(Ce)),()=>{F.Z.cancel(De),Oo==null||Oo.disconnect()}}},[]),!go)return null;const ms=(rt==="Checkbox"||rt==="Radio")&&(Ce==null?void 0:Ce.classList.contains(xe.A));return N.createElement(K.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(De,Oo)=>{var $i;if(Oo.deadline||Oo.propertyName==="opacity"){const co=($i=Ne.current)===null||$i===void 0?void 0:$i.parentElement;(0,he.v)(co).then(()=>{co==null||co.remove()})}return!1}},De=>{let{className:Oo}=De;return N.createElement("div",{ref:Ne,className:M()(je,{"wave-quick":ms},Oo),style:Mr})})};var ft=(Re,je)=>{var Ce;const{component:rt}=je;if(rt==="Checkbox"&&!(!((Ce=Re.querySelector("input"))===null||Ce===void 0)&&Ce.checked))return;const Ne=document.createElement("div");Ne.style.position="absolute",Ne.style.left="0px",Ne.style.top="0px",Re==null||Re.insertBefore(Ne,Re==null?void 0:Re.firstChild),(0,he.s)(N.createElement(it,Object.assign({},je,{target:Re})),Ne)},Me=_(45844);function Ee(Re,je,Ce){const{wave:rt}=N.useContext(V.E_),[,Ne,Xt]=(0,Me.Z)(),Ft=(0,T.zX)(At=>{const an=Re.current;if(rt!=null&&rt.disabled||!an)return;const Tt=an.querySelector(`.${xe.A}`)||an,{showEffect:Nn}=rt||{};(Nn||ft)(Tt,{className:je,token:Ne,component:Ce,event:At,hashId:Xt})}),lt=N.useRef();return At=>{F.Z.cancel(lt.current),lt.current=(0,F.Z)(()=>{Ft(At)})}}var Pe=Re=>{const{children:je,disabled:Ce,component:rt}=Re,{getPrefixCls:Ne}=(0,N.useContext)(V.E_),Xt=(0,N.useRef)(null),Ft=Ne("wave"),[,lt]=p(Ft),Bt=Ee(Xt,M()(Ft,lt),rt);if(N.useEffect(()=>{const an=Xt.current;if(!an||an.nodeType!==1||Ce)return;const Tt=Nn=>{!(0,x.Z)(Nn.target)||!an.getAttribute||an.getAttribute("disabled")||an.disabled||an.className.includes("disabled")||an.className.includes("-leave")||Bt(Nn)};return an.addEventListener("click",Tt,!0),()=>{an.removeEventListener("click",Tt,!0)}},[Ce]),!N.isValidElement(je))return je!=null?je:null;const At=(0,C.Yr)(je)?(0,C.sQ)(je.ref,Xt):Xt;return(0,R.Tm)(je,{ref:At})}},50180:function(mt,q,_){"use strict";_.d(q,{A:function(){return v}});const v="ant-wave-target"},44942:function(mt,q,_){"use strict";var v=_(77617);const M=v.createContext(void 0);q.Z=M},45763:function(mt,q,_){"use strict";_.d(q,{Te:function(){return R},aG:function(){return x},hU:function(){return S},nx:function(){return N}});var v=_(77617),M=_(37628);const C=/^[\u4e00-\u9fa5]{2}$/,x=C.test.bind(C);function N(K){return K==="danger"?{danger:!0}:{type:K}}function V(K){return typeof K=="string"}function R(K){return K==="text"||K==="link"}function k(K,he){if(K==null)return;const fe=he?" ":"";return typeof K!="string"&&typeof K!="number"&&V(K.type)&&x(K.props.children)?(0,M.Tm)(K,{children:K.props.children.split("").join(fe)}):V(K)?x(K)?v.createElement("span",null,K.split("").join(fe)):v.createElement("span",null,K):(0,M.M2)(K)?v.createElement("span",null,K):K}function S(K,he){let fe=!1;const be=[];return v.Children.forEach(K,Ae=>{const xe=typeof Ae,Se=xe==="string"||xe==="number";if(fe&&Se){const it=be.length-1,Xe=be[it];be[it]=`${Xe}${Ae}`}else be.push(Ae);fe=Se}),v.Children.map(be,Ae=>k(Ae,he))}const p=null,T=null,F=null},34745:function(mt,q,_){"use strict";_.d(q,{ZP:function(){return Dn}});var v=_(77617),M=_(12124),C=_.n(M),x=_(39029),N=_(9681),V=_(90836),R=_(41203),k=_(57132),S=_(29212),p=_(43906),T=_(45844),F=function(sn,wr){var jr={};for(var xi in sn)Object.prototype.hasOwnProperty.call(sn,xi)&&wr.indexOf(xi)<0&&(jr[xi]=sn[xi]);if(sn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pr=0,xi=Object.getOwnPropertySymbols(sn);Pr{const{getPrefixCls:wr,direction:jr}=v.useContext(R.E_),{prefixCls:xi,size:Pr,className:Hi}=sn,Io=F(sn,["prefixCls","size","className"]),On=wr("btn-group",xi),[,,zr]=(0,T.Z)();let qr="";switch(Pr){case"large":qr="lg";break;case"small":qr="sm";break;case"middle":default:}const Wi=C()(On,{[`${On}-${qr}`]:qr,[`${On}-rtl`]:jr==="rtl"},Hi,zr);return v.createElement(K.Provider,{value:Pr},v.createElement("div",Object.assign({},Io,{className:Wi})))},be=_(45763),xe=(0,v.forwardRef)((sn,wr)=>{const{className:jr,style:xi,children:Pr,prefixCls:Hi}=sn,Io=C()(`${Hi}-icon`,jr);return v.createElement("span",{ref:wr,className:Io,style:xi},Pr)}),Se=_(38521),it=_(44516);const Xe=(0,v.forwardRef)((sn,wr)=>{let{prefixCls:jr,className:xi,style:Pr,iconClassName:Hi}=sn;const Io=C()(`${jr}-loading-icon`,xi);return v.createElement(xe,{prefixCls:jr,className:Io,style:Pr,ref:wr},v.createElement(Se.Z,{className:Hi}))}),ft=()=>({width:0,opacity:0,transform:"scale(0)"}),Me=sn=>({width:sn.scrollWidth,opacity:1,transform:"scale(1)"});var ze=sn=>{const{prefixCls:wr,loading:jr,existIcon:xi,className:Pr,style:Hi}=sn,Io=!!jr;return xi?v.createElement(Xe,{prefixCls:wr,className:Pr,style:Hi}):v.createElement(it.ZP,{visible:Io,motionName:`${wr}-loading-icon-motion`,motionLeave:Io,removeOnLeave:!0,onAppearStart:ft,onAppearActive:Me,onEnterStart:ft,onEnterActive:Me,onLeaveStart:Me,onLeaveActive:ft},(On,zr)=>{let{className:qr,style:Wi}=On;return v.createElement(Xe,{prefixCls:wr,className:Pr,style:Object.assign(Object.assign({},Hi),Wi),ref:zr,iconClassName:qr})})},Pe=_(21348),Re=_(43040),je=_(93154);const Ce=(sn,wr)=>({[`> span, > ${sn}`]:{"&:not(:last-child)":{[`&, & > ${sn}`]:{"&:not(:disabled)":{borderInlineEndColor:wr}}},"&:not(:first-child)":{[`&, & > ${sn}`]:{"&:not(:disabled)":{borderInlineStartColor:wr}}}}});var Ne=sn=>{const{componentCls:wr,fontSize:jr,lineWidth:xi,groupBorderColor:Pr,colorErrorHover:Hi}=sn;return{[`${wr}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${wr}`]:{"&:not(:last-child)":{[`&, & > ${wr}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-xi,[`&, & > ${wr}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[wr]:{position:"relative",zIndex:1,[`&:hover, &:focus, - &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${fr}-icon-only`]:{fontSize:Kr}},ge(`${fr}-primary`,si),ge(`${fr}-danger`,uo)]}};const Pt=en=>{const{componentCls:fr,iconCls:Kr,fontWeight:ii}=en;return{[fr]:{outline:"none",position:"relative",display:"inline-block",fontWeight:ii,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${en.lineWidth}px ${en.lineType} transparent`,cursor:"pointer",transition:`all ${en.motionDurationMid} ${en.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:en.lineHeight,color:en.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${fr}-icon`]:{lineHeight:0},[`> ${Kr} + span, > span + ${Kr}`]:{marginInlineStart:en.marginXS},[`&:not(${fr}-icon-only) > ${fr}-icon`]:{[`&${fr}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:en.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,Ce.Qy)(en)),[`&${fr}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${fr}-two-chinese-chars > *:not(${Kr})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${fr}-compact-item`]:{flex:"none"},[`&-compact-item${fr}-primary`]:{[`&:not([disabled]) + ${fr}-compact-item${fr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-en.lineWidth,insetInlineStart:-en.lineWidth,display:"inline-block",width:en.lineWidth,height:`calc(100% + ${en.lineWidth*2}px)`,backgroundColor:en.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${fr}-primary`]:{[`&:not([disabled]) + ${fr}-compact-vertical-item${fr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-en.lineWidth,insetInlineStart:-en.lineWidth,display:"inline-block",width:`calc(100% + ${en.lineWidth*2}px)`,height:en.lineWidth,backgroundColor:en.colorPrimaryHover,content:'""'}}}}}}},dt=(en,fr,Kr)=>({[`&:not(:disabled):not(${en}-disabled)`]:{"&:hover":fr,"&:active":Kr}}),He=en=>({minWidth:en.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Ct=en=>({borderRadius:en.controlHeight,paddingInlineStart:en.controlHeight/2,paddingInlineEnd:en.controlHeight/2}),ft=en=>({cursor:"not-allowed",borderColor:en.borderColorDisabled,color:en.colorTextDisabled,backgroundColor:en.colorBgContainerDisabled,boxShadow:"none"}),zt=(en,fr,Kr,ii,si,uo,Qo,_n)=>({[`&${en}-background-ghost`]:Object.assign(Object.assign({color:Kr||void 0,backgroundColor:fr,borderColor:ii||void 0,boxShadow:"none"},dt(en,Object.assign({backgroundColor:fr},Qo),Object.assign({backgroundColor:fr},_n))),{"&:disabled":{cursor:"not-allowed",color:si||void 0,borderColor:uo||void 0}})}),mt=en=>({[`&:disabled, &${en.componentCls}-disabled`]:Object.assign({},ft(en))}),yn=en=>Object.assign({},mt(en)),Bn=en=>({[`&:disabled, &${en.componentCls}-disabled`]:{cursor:"not-allowed",color:en.colorTextDisabled}}),Lr=en=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yn(en)),{backgroundColor:en.defaultBg,borderColor:en.defaultBorderColor,color:en.defaultColor,boxShadow:en.defaultShadow}),dt(en.componentCls,{color:en.colorPrimaryHover,borderColor:en.colorPrimaryHover},{color:en.colorPrimaryActive,borderColor:en.colorPrimaryActive})),zt(en.componentCls,en.ghostBg,en.defaultGhostColor,en.defaultGhostBorderColor,en.colorTextDisabled,en.colorBorder)),{[`&${en.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:en.colorError,borderColor:en.colorError},dt(en.componentCls,{color:en.colorErrorHover,borderColor:en.colorErrorBorderHover},{color:en.colorErrorActive,borderColor:en.colorErrorActive})),zt(en.componentCls,en.ghostBg,en.colorError,en.colorError,en.colorTextDisabled,en.colorBorder)),mt(en))}),ri=en=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yn(en)),{color:en.primaryColor,backgroundColor:en.colorPrimary,boxShadow:en.primaryShadow}),dt(en.componentCls,{color:en.colorTextLightSolid,backgroundColor:en.colorPrimaryHover},{color:en.colorTextLightSolid,backgroundColor:en.colorPrimaryActive})),zt(en.componentCls,en.ghostBg,en.colorPrimary,en.colorPrimary,en.colorTextDisabled,en.colorBorder,{color:en.colorPrimaryHover,borderColor:en.colorPrimaryHover},{color:en.colorPrimaryActive,borderColor:en.colorPrimaryActive})),{[`&${en.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:en.colorError,boxShadow:en.dangerShadow,color:en.dangerColor},dt(en.componentCls,{backgroundColor:en.colorErrorHover},{backgroundColor:en.colorErrorActive})),zt(en.componentCls,en.ghostBg,en.colorError,en.colorError,en.colorTextDisabled,en.colorBorder,{color:en.colorErrorHover,borderColor:en.colorErrorHover},{color:en.colorErrorActive,borderColor:en.colorErrorActive})),mt(en))}),gi=en=>Object.assign(Object.assign({},Lr(en)),{borderStyle:"dashed"}),ro=en=>Object.assign(Object.assign(Object.assign({color:en.colorLink},dt(en.componentCls,{color:en.colorLinkHover,backgroundColor:en.linkHoverBg},{color:en.colorLinkActive})),Bn(en)),{[`&${en.componentCls}-dangerous`]:Object.assign(Object.assign({color:en.colorError},dt(en.componentCls,{color:en.colorErrorHover},{color:en.colorErrorActive})),Bn(en))}),To=en=>Object.assign(Object.assign(Object.assign({},dt(en.componentCls,{color:en.colorText,backgroundColor:en.textHoverBg},{color:en.colorText,backgroundColor:en.colorBgTextActive})),Bn(en)),{[`&${en.componentCls}-dangerous`]:Object.assign(Object.assign({color:en.colorError},Bn(en)),dt(en.componentCls,{color:en.colorErrorHover,backgroundColor:en.colorErrorBg},{color:en.colorErrorHover,backgroundColor:en.colorErrorBg}))}),_r=en=>{const{componentCls:fr}=en;return{[`${fr}-default`]:Lr(en),[`${fr}-primary`]:ri(en),[`${fr}-dashed`]:gi(en),[`${fr}-link`]:ro(en),[`${fr}-text`]:To(en),[`${fr}-ghost`]:zt(en.componentCls,en.ghostBg,en.colorBgContainer,en.colorBgContainer,en.colorTextDisabled,en.colorBorder)}},Bo=function(en){let fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:Kr,controlHeight:ii,fontSize:si,lineHeight:uo,lineWidth:Qo,borderRadius:_n,buttonPaddingHorizontal:Vr,iconCls:qr}=en,Ui=Math.max(0,(ii-si*uo)/2-Qo),xo=`${Kr}-icon-only`;return[{[`${Kr}${fr}`]:{fontSize:si,height:ii,padding:`${Ui}px ${Vr}px`,borderRadius:_n,[`&${xo}`]:{width:ii,paddingInlineStart:0,paddingInlineEnd:0,[`&${Kr}-round`]:{width:"auto"},[qr]:{fontSize:en.buttonIconOnlyFontSize}},[`&${Kr}-loading`]:{opacity:en.opacityLoading,cursor:"default"},[`${Kr}-loading-icon`]:{transition:`width ${en.motionDurationSlow} ${en.motionEaseInOut}, opacity ${en.motionDurationSlow} ${en.motionEaseInOut}`}}},{[`${Kr}${Kr}-circle${fr}`]:He(en)},{[`${Kr}${Kr}-round${fr}`]:Ct(en)}]},fs=en=>Bo((0,xe.TS)(en,{fontSize:en.contentFontSize})),me=en=>{const fr=(0,xe.TS)(en,{controlHeight:en.controlHeightSM,fontSize:en.contentFontSizeSM,padding:en.paddingXS,buttonPaddingHorizontal:en.paddingInlineSM,borderRadius:en.borderRadiusSM,buttonIconOnlyFontSize:en.onlyIconSizeSM});return Bo(fr,`${en.componentCls}-sm`)},So=en=>{const fr=(0,xe.TS)(en,{controlHeight:en.controlHeightLG,fontSize:en.contentFontSizeLG,buttonPaddingHorizontal:en.paddingInlineLG,borderRadius:en.borderRadiusLG,buttonIconOnlyFontSize:en.onlyIconSizeLG});return Bo(fr,`${en.componentCls}-lg`)},ho=en=>{const{componentCls:fr}=en;return{[fr]:{[`&${fr}-block`]:{width:"100%"}}}},go=en=>{const{paddingInline:fr,onlyIconSize:Kr}=en;return(0,xe.TS)(en,{buttonPaddingHorizontal:fr,buttonIconOnlyFontSize:Kr})},ji=en=>({fontWeight:400,defaultShadow:`0 ${en.controlOutlineWidth}px 0 ${en.controlTmpOutline}`,primaryShadow:`0 ${en.controlOutlineWidth}px 0 ${en.controlOutline}`,dangerShadow:`0 ${en.controlOutlineWidth}px 0 ${en.colorErrorOutline}`,primaryColor:en.colorTextLightSolid,dangerColor:en.colorTextLightSolid,borderColorDisabled:en.colorBorder,defaultGhostColor:en.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:en.colorBgContainer,paddingInline:en.paddingContentHorizontal-en.lineWidth,paddingInlineLG:en.paddingContentHorizontal-en.lineWidth,paddingInlineSM:8-en.lineWidth,onlyIconSize:en.fontSizeLG,onlyIconSizeSM:en.fontSizeLG-2,onlyIconSizeLG:en.fontSizeLG+2,groupBorderColor:en.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:en.colorBgTextHover,defaultColor:en.colorText,defaultBg:en.colorBgContainer,defaultBorderColor:en.colorBorder,defaultBorderColorDisabled:en.colorBorder,contentFontSize:en.fontSize,contentFontSizeSM:en.fontSize,contentFontSizeLG:en.fontSizeLG});var No=(0,Ae.Z)("Button",en=>{const fr=go(en);return[Pt(fr),me(fr),fs(fr),So(fr),ho(fr),_r(fr),Se(fr)]},ji),dn=m(73973);function Ve(en,fr){return{[`&-item:not(${fr}-last-item)`]:{marginBottom:-en.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function yt(en,fr){return{[`&-item:not(${fr}-first-item):not(${fr}-last-item)`]:{borderRadius:0},[`&-item${fr}-first-item:not(${fr}-last-item)`]:{[`&, &${en}-sm, &${en}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${fr}-last-item:not(${fr}-first-item)`]:{[`&, &${en}-sm, &${en}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function xt(en){const fr=`${en.componentCls}-compact-vertical`;return{[fr]:Object.assign(Object.assign({},Ve(en,fr)),yt(en.componentCls,fr))}}var Wt=(0,Ae.b)(["Button","compact"],en=>{const fr=go(en);return[(0,dn.c)(fr),xt(fr)]},ji),sn=function(en,fr){var Kr={};for(var ii in en)Object.prototype.hasOwnProperty.call(en,ii)&&fr.indexOf(ii)<0&&(Kr[ii]=en[ii]);if(en!=null&&typeof Object.getOwnPropertySymbols=="function")for(var si=0,ii=Object.getOwnPropertySymbols(en);si{var Kr,ii;const{loading:si=!1,prefixCls:uo,type:Qo="default",danger:_n,shape:Vr="default",size:qr,styles:Ui,disabled:xo,className:Us,rootClassName:$n,children:Kn,icon:Fr,ghost:mi=!1,block:Tr=!1,htmlType:ti="button",classNames:di,style:rn={}}=en,Qn=sn(en,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:Xr,autoInsertSpaceInButton:ao,direction:as,button:Bt}=(0,y.useContext)(w.E_),pn=Xr("btn",uo),[xr,Jr]=No(pn),vi=(0,y.useContext)(A.Z),Ti=xo!=null?xo:vi,co=(0,y.useContext)(W),Qr=(0,y.useMemo)(()=>Ot(si),[si]),[oi,Zi]=(0,y.useState)(Qr.loading),[Ir,tn]=(0,y.useState)(!1),Gn=(0,y.createRef)(),Ei=(0,k.sQ)(fr,Gn),Ln=y.Children.count(Kn)===1&&!Fr&&!(0,ce.Te)(Qo);(0,y.useEffect)(()=>{let pr=null;Qr.delay>0?pr=setTimeout(()=>{pr=null,Zi(!0)},Qr.delay):Zi(Qr.loading);function ci(){pr&&(clearTimeout(pr),pr=null)}return ci},[Qr]),(0,y.useEffect)(()=>{if(!Ei||!Ei.current||ao===!1)return;const pr=Ei.current.textContent;Ln&&(0,ce.aG)(pr)?Ir||tn(!0):Ir&&tn(!1)},[Ei]);const Ii=pr=>{const{onClick:ci}=en;if(oi||Ti){pr.preventDefault();return}ci==null||ci(pr)},nr=ao!==!1,{compactSize:wi,compactItemClassnames:Mi}=(0,f.ri)(pn,as),Rr={large:"lg",small:"sm",middle:void 0},Xn=(0,C.Z)(pr=>{var ci,Eo;return(Eo=(ci=qr!=null?qr:wi)!==null&&ci!==void 0?ci:co)!==null&&Eo!==void 0?Eo:pr}),ms=Xn&&Rr[Xn]||"",ya=oi?"loading":Fr,fa=(0,z.Z)(Qn,["navigate"]),Ws=b()(pn,Jr,{[`${pn}-${Vr}`]:Vr!=="default"&&Vr,[`${pn}-${Qo}`]:Qo,[`${pn}-${ms}`]:ms,[`${pn}-icon-only`]:!Kn&&Kn!==0&&!!ya,[`${pn}-background-ghost`]:mi&&!(0,ce.Te)(Qo),[`${pn}-loading`]:oi,[`${pn}-two-chinese-chars`]:Ir&&nr&&!oi,[`${pn}-block`]:Tr,[`${pn}-dangerous`]:!!_n,[`${pn}-rtl`]:as==="rtl"},Mi,Us,$n,Bt==null?void 0:Bt.className),Ua=Object.assign(Object.assign({},Bt==null?void 0:Bt.style),rn),Ao=b()(di==null?void 0:di.icon,(Kr=Bt==null?void 0:Bt.classNames)===null||Kr===void 0?void 0:Kr.icon),cl=Object.assign(Object.assign({},(Ui==null?void 0:Ui.icon)||{}),((ii=Bt==null?void 0:Bt.styles)===null||ii===void 0?void 0:ii.icon)||{}),$r=Fr&&!oi?y.createElement(he,{prefixCls:pn,className:Ao,style:cl},Fr):y.createElement(ye,{existIcon:!!Fr,prefixCls:pn,loading:!!oi}),er=Kn||Kn===0?(0,ce.hU)(Kn,Ln&&nr):null;if(fa.href!==void 0)return xr(y.createElement("a",Object.assign({},fa,{className:b()(Ws,{[`${pn}-disabled`]:Ti}),style:Ua,onClick:Ii,ref:Ei}),$r,er));let Dr=y.createElement("button",Object.assign({},Qn,{type:ti,className:Ws,style:Ua,onClick:Ii,disabled:Ti,ref:Ei}),$r,er,Mi&&y.createElement(Wt,{key:"compact",prefixCls:pn}));return(0,ce.Te)(Qo)||(Dr=y.createElement(N.Z,{component:"Button",disabled:!!oi},Dr)),xr(Dr)},bt=(0,y.forwardRef)(Tt);bt.Group=re,bt.__ANT_BUTTON=!0;var Ht=bt,zn=Ht},68069:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Ii}});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,te=m(91002),re=m(80268),ce=m(74710),pe="__rc_cascader_search_mark__",he=function(wi,Mi,Rr){var Xn=Rr.label;return Mi.some(function(ms){return String(ms[Xn]).toLowerCase().includes(wi.toLowerCase())})},fe=function(wi,Mi,Rr,Xn){return Mi.map(function(ms){return ms[Xn.label]}).join(" / ")},Be=function(nr,wi,Mi,Rr,Xn,ms){var ya=Xn.filter,fa=ya===void 0?he:ya,Ws=Xn.render,Ua=Ws===void 0?fe:Ws,Ao=Xn.limit,cl=Ao===void 0?50:Ao,$r=Xn.sort;return I.useMemo(function(){var er=[];if(!nr)return[];function Dr(pr,ci){var Eo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;pr.forEach(function(mo){if(!(!$r&&cl!==!1&&cl>0&&er.length>=cl)){var Ts=[].concat((0,y.Z)(ci),[mo]),xs=mo[Mi.children],Er=Eo||mo.disabled;if((!xs||xs.length===0||ms)&&fa(nr,Ts,{label:Mi.label})){var ui;er.push((0,ce.Z)((0,ce.Z)({},mo),{},(ui={disabled:Er},(0,re.Z)(ui,Mi.label,Ua(nr,Ts,Rr,Mi)),(0,re.Z)(ui,pe,Ts),(0,re.Z)(ui,Mi.children,void 0),ui)))}xs&&Dr(mo[Mi.children],Ts,Er)}})}return Dr(wi,[]),$r&&er.sort(function(pr,ci){return $r(pr[pe],ci[pe],nr,Mi)}),cl!==!1&&cl>0?er.slice(0,cl):er},[nr,wi,Mi,Rr,Ua,ms,fa,$r,cl])},Ie="__RC_CASCADER_SPLIT__",je="SHOW_PARENT",be="SHOW_CHILD";function ve(nr){return nr.join(Ie)}function ye(nr){return nr.map(ve)}function Ce(nr){return nr.split(Ie)}function xe(nr){var wi=nr||{},Mi=wi.label,Rr=wi.value,Xn=wi.children,ms=Rr||"value";return{label:Mi||"label",value:ms,key:ms,children:Xn||"children"}}function Ae(nr,wi){var Mi,Rr;return(Mi=nr.isLeaf)!==null&&Mi!==void 0?Mi:!((Rr=nr[wi.children])!==null&&Rr!==void 0&&Rr.length)}function ge(nr){var wi=nr.parentElement;if(wi){var Mi=nr.offsetTop-wi.offsetTop;Mi-wi.scrollTop<0?wi.scrollTo({top:Mi}):Mi+nr.offsetHeight-wi.scrollTop>wi.offsetHeight&&wi.scrollTo({top:Mi+nr.offsetHeight-wi.offsetHeight})}}function We(nr,wi){return nr.map(function(Mi){var Rr;return(Rr=Mi[pe])===null||Rr===void 0?void 0:Rr.map(function(Xn){return Xn[wi.value]})})}function Se(nr){return Array.isArray(nr)&&Array.isArray(nr[0])}function Pt(nr){return nr?Se(nr)?nr:(nr.length===0?[]:[nr]).map(function(wi){return Array.isArray(wi)?wi:[wi]}):[]}function dt(nr,wi,Mi){var Rr=new Set(nr),Xn=wi();return nr.filter(function(ms){var ya=Xn[ms],fa=ya?ya.parent:null,Ws=ya?ya.children:null;return ya&&ya.node.disabled?!0:Mi===be?!(Ws&&Ws.some(function(Ua){return Ua.key&&Rr.has(Ua.key)})):!(fa&&!fa.node.disabled&&Rr.has(fa.key))})}function He(nr,wi,Mi){for(var Rr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Xn=wi,ms=[],ya=function(){var Ua,Ao,cl,$r=nr[fa],er=(Ua=Xn)===null||Ua===void 0?void 0:Ua.findIndex(function(pr){var ci=pr[Mi.value];return Rr?String(ci)===String($r):ci===$r}),Dr=er!==-1?(Ao=Xn)===null||Ao===void 0?void 0:Ao[er]:null;ms.push({value:(cl=Dr==null?void 0:Dr[Mi.value])!==null&&cl!==void 0?cl:$r,index:er,option:Dr}),Xn=Dr==null?void 0:Dr[Mi.children]},fa=0;fa1){var Xt=Dr.slice(0,-1);mo(Xt)}else Ua(!1)},Er=function(){var Xt,gn=((Xt=ci[pr])===null||Xt===void 0?void 0:Xt[Mi.children])||[],En=gn.find(function(at){return!at.disabled});if(En){var tt=[].concat((0,y.Z)(Dr),[En[Mi.value]]);mo(tt)}};I.useImperativeHandle(nr,function(){return{onKeyDown:function(Xt){var gn=Xt.which;switch(gn){case ho.Z.UP:case ho.Z.DOWN:{var En=0;gn===ho.Z.UP?En=-1:gn===ho.Z.DOWN&&(En=1),En!==0&&Ts(En);break}case ho.Z.LEFT:{if(Ws)break;cl?Er():xs();break}case ho.Z.RIGHT:{if(Ws)break;cl?xs():Er();break}case ho.Z.BACKSPACE:{Ws||xs();break}case ho.Z.ENTER:{if(Dr.length){var tt=ci[pr],at=(tt==null?void 0:tt[pe])||[];at.length?ms(at.map(function(gt){return gt[Mi.value]}),at[at.length-1]):ms(Dr,ci[pr])}break}case ho.Z.ESC:Ua(!1),Ao&&Xt.stopPropagation()}},onKeyUp:function(){}}})},ji=I.forwardRef(function(nr,wi){var Mi,Rr,Xn,ms,ya=nr.prefixCls,fa=nr.multiple,Ws=nr.searchValue,Ua=nr.toggleOpen,Ao=nr.notFoundContent,cl=nr.direction,$r=nr.open,er=I.useRef(),Dr=cl==="rtl",pr=I.useContext(W),ci=pr.options,Eo=pr.values,mo=pr.halfValues,Ts=pr.fieldNames,xs=pr.changeOnSelect,Er=pr.onSelect,ui=pr.searchOptions,Xt=pr.dropdownPrefixCls,gn=pr.loadData,En=pr.expandTrigger,tt=Xt||ya,at=I.useState([]),gt=(0,N.Z)(at,2),Re=gt[0],lt=gt[1],St=function(Nl){if(!(!gn||Ws)){var vs=He(Nl,ci,Ts),Hi=vs.map(function(Cs){var Ka=Cs.option;return Ka}),eo=Hi[Hi.length-1];if(eo&&!Ae(eo,Ts)){var sa=ve(Nl);lt(function(Cs){return[].concat((0,y.Z)(Cs),[sa])}),gn(Hi)}}};I.useEffect(function(){Re.length&&Re.forEach(function(ua){var Nl=Ce(ua),vs=He(Nl,ci,Ts,!0).map(function(eo){var sa=eo.option;return sa}),Hi=vs[vs.length-1];(!Hi||Hi[Ts.children]||Ae(Hi,Ts))&<(function(eo){return eo.filter(function(sa){return sa!==ua})})})},[ci,Re,Ts]);var ln=I.useMemo(function(){return new Set(ye(Eo))},[Eo]),Vn=I.useMemo(function(){return new Set(ye(mo))},[mo]),wr=So(fa,$r),ki=(0,N.Z)(wr,2),Vi=ki[0],Ki=ki[1],ps=function(Nl){Ki(Nl),St(Nl)},Ns=function(Nl){var vs=Nl.disabled,Hi=Ae(Nl,Ts);return!vs&&(Hi||xs||fa)},Bs=function(Nl,vs){var Hi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Er(Nl),!fa&&(vs||xs&&(En==="hover"||Hi))&&Ua(!1)},_a=I.useMemo(function(){return Ws?ui:ci},[Ws,ui,ci]),oo=I.useMemo(function(){for(var ua=[{options:_a}],Nl=_a,vs=We(Nl,Ts),Hi=function(){var Ka=Vi[eo],$u=Nl.find(function(Pc,vo){return(vs[vo]?ve(vs[vo]):Pc[Ts.value])===Ka}),rc=$u==null?void 0:$u[Ts.children];if(!(rc!=null&&rc.length))return"break";Nl=rc,ua.push({options:rc})},eo=0;eo":Eo,Ts=Mi.loadingIcon,xs=Mi.direction,Er=Mi.notFoundContent,ui=Er===void 0?"Not Found":Er,Xt=!!Ws,gn=(0,yt.C8)(Ua,{value:Ao,postState:Pt}),En=(0,N.Z)(gn,2),tt=En[0],at=En[1],gt=I.useMemo(function(){return xe(cl)},[JSON.stringify(cl)]),Re=yn(gt,fa),lt=(0,N.Z)(Re,3),St=lt[0],ln=lt[1],Vn=lt[2],wr=ft(St,gt),ki=ro(Xt,tt,ln,Vn,wr),Vi=(0,N.Z)(ki,3),Ki=Vi[0],ps=Vi[1],Ns=Vi[2],Bs=(0,yt.zX)(function(Bl){if(at(Bl),er){var Fa=Pt(Bl),gl=Fa.map(function(vs){return He(vs,St,gt).map(function(Hi){return Hi.option})}),ua=Xt?Fa:Fa[0],Nl=Xt?gl:gl[0];er(ua,Nl)}}),_a=gi(Xt,Bs,Ki,ps,Ns,ln,Vn,Dr),oo=(0,yt.zX)(function(Bl){_a(Bl)}),Ds=I.useMemo(function(){return{options:St,fieldNames:gt,values:Ki,halfValues:ps,changeOnSelect:$r,onSelect:oo,checkable:Ws,searchOptions:[],dropdownPrefixCls:null,loadData:pr,expandTrigger:ci,expandIcon:mo,loadingIcon:Ts,dropdownMenuColumnStyle:null}},[St,gt,Ki,ps,$r,oo,Ws,pr,ci,mo,Ts]),oa="".concat(Xn,"-panel"),va=!St.length;return I.createElement(W.Provider,{value:Ds},I.createElement("div",{className:z()(oa,(wi={},(0,re.Z)(wi,"".concat(oa,"-rtl"),xs==="rtl"),(0,re.Z)(wi,"".concat(oa,"-empty"),va),wi),ya),style:ms},va?ui:I.createElement(No,{prefixCls:Xn,searchValue:null,multiple:Xt,toggleOpen:xt,open:!0,direction:xs})))}function sn(nr){var wi=nr.onPopupVisibleChange,Mi=nr.popupVisible,Rr=nr.popupClassName,Xn=nr.popupPlacement;warning(!wi,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Mi===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Rr===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Xn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Ot(nr,wi){if(nr){var Mi=function Rr(Xn){for(var ms=0;ms":lt,ln=nr.loadingIcon,Vn=nr.children,wr=nr.dropdownMatchSelectWidth,ki=wr===void 0?!1:wr,Vi=nr.showCheckedStrategy,Ki=Vi===void 0?je:Vi,ps=(0,w.Z)(nr,bt),Ns=(0,C.ZP)(Mi),Bs=!!cl,_a=(0,S.Z)(ya,{value:fa,postState:Pt}),oo=(0,N.Z)(_a,2),Ds=oo[0],oa=oo[1],va=I.useMemo(function(){return xe(ms)},[JSON.stringify(ms)]),Bl=yn(va,mo),Fa=(0,N.Z)(Bl,3),gl=Fa[0],ua=Fa[1],Nl=Fa[2],vs=(0,S.Z)("",{value:Dr,postState:function(Ul){return Ul||""}}),Hi=(0,N.Z)(vs,2),eo=Hi[0],sa=Hi[1],Cs=function(Ul,ql){sa(Ul),ql.source!=="blur"&&pr&&pr(Ul)},Ka=Lr(ci),$u=(0,N.Z)(Ka,2),rc=$u[0],Pc=$u[1],vo=Be(eo,gl,va,Ts||Xn,Pc,Ws),to=ft(gl,va),hs=ro(Bs,Ds,ua,Nl,to),jn=(0,N.Z)(hs,3),yr=jn[0],ai=jn[1],hi=jn[2],Ji=I.useMemo(function(){var el=ye(yr),Ul=dt(el,ua,Ki);return[].concat((0,y.Z)(hi),(0,y.Z)(Nl(Ul)))},[yr,ua,Nl,hi,Ki]),so=Ct(Ji,gl,va,Bs,Ao),Pi=(0,f.Z)(function(el){if(oa(el),Ua){var Ul=Pt(el),ql=Ul.map(function(Cn){return He(Cn,gl,va).map(function(Eu){return Eu.option})}),vu=Bs?Ul:Ul[0],au=Bs?ql:ql[0];Ua(vu,au)}}),us=gi(Bs,Pi,yr,ai,hi,ua,Nl,Ki),ga=(0,f.Z)(function(el){(!Bs||er)&&sa(""),us(el)}),$a=function(Ul,ql){if(ql.type==="clear"){Pi([]);return}var vu=ql.values[0],au=vu.valueCells;ga(au)},dl=ui!==void 0?ui:Er,Hl=gn||Xt,Ml=at||tt,Za=function(Ul){gt==null||gt(Ul),Re==null||Re(Ul)},Pu=I.useMemo(function(){return{options:gl,fieldNames:va,values:yr,halfValues:ai,changeOnSelect:Ws,onSelect:ga,checkable:cl,searchOptions:vo,dropdownPrefixCls:Ts,loadData:xs,expandTrigger:Eo,expandIcon:St,loadingIcon:ln,dropdownMenuColumnStyle:En}},[gl,va,yr,ai,Ws,ga,cl,vo,Ts,xs,Eo,St,ln,En]),ea=!(eo?vo:gl).length,Qa=eo&&Pc.matchInputWidth||ea?{}:{minWidth:"auto"};return I.createElement(W.Provider,{value:Pu},I.createElement(A.Ac,(0,k.Z)({},ps,{ref:wi,id:Ns,prefixCls:Xn,autoClearSearchValue:er,dropdownMatchSelectWidth:ki,dropdownStyle:Qa,displayValues:so,onDisplayValuesChange:$a,mode:Bs?"multiple":void 0,searchValue:eo,onSearch:Cs,showSearch:rc,OptionList:Ve,emptyOptions:ea,open:dl,dropdownClassName:Hl,placement:Ml,onDropdownVisibleChange:Za,getRawInputElement:function(){return Vn}})))});Ht.SHOW_PARENT=je,Ht.SHOW_CHILD=be,Ht.Panel=Wt;var zn=Ht,en=zn,fr=m(39029),Kr=m(26612),ii=m(91202),si=m(5997),uo=m(67392),Qo=m(47316),_n=m(81689),Vr=m(21843),qr=m(86818),Ui=m(79857),xo=m(5998),Us=m(86755),$n=m(20446),Kn=m(58370);function Fr(nr,wi){const{getPrefixCls:Mi,direction:Rr,renderEmpty:Xn}=I.useContext(uo.E_),ms=wi||Rr,ya=Mi("select",nr),fa=Mi("cascader",nr);return[ya,fa,ms,Xn]}function mi(nr,wi){return I.useMemo(()=>wi?I.createElement("span",{className:`${nr}-checkbox-inner`}):!1,[wi])}var Tr=m(52063),ti=m(38521),di=m(22311);function rn(nr,wi,Mi){let Rr=Mi;Mi||(Rr=wi?I.createElement(Tr.Z,null):I.createElement(di.Z,null));const Xn=I.createElement("span",{className:`${nr}-menu-item-loading-icon`},I.createElement(ti.Z,{spin:!0}));return[Rr,Xn]}var Qn=m(73973),Xr=m(24577),ao=m(79148),as=m(92068),pn=nr=>{const{prefixCls:wi,componentCls:Mi}=nr,Rr=`${Mi}-menu-item`,Xn=` - &${Rr}-expand ${Rr}-expand-icon, - ${Rr}-loading-icon -`;return[(0,ao.C2)(`${wi}-checkbox`,nr),{[Mi]:{"&-checkbox":{top:0,marginInlineEnd:nr.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Mi}-menu-empty`]:{[`${Mi}-menu`]:{width:"100%",height:"auto",[Rr]:{color:nr.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:nr.controlItemWidth,height:nr.dropdownHeight,margin:0,padding:nr.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${nr.lineWidth}px ${nr.lineType} ${nr.colorSplit}`},"&-item":Object.assign(Object.assign({},as.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:nr.optionPadding,lineHeight:nr.lineHeight,cursor:"pointer",transition:`all ${nr.motionDurationMid}`,borderRadius:nr.borderRadiusSM,"&:hover":{background:nr.controlItemBgHover},"&-disabled":{color:nr.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Xn]:{color:nr.colorTextDisabled}},[`&-active:not(${Rr}-disabled)`]:{["&, &:hover"]:{fontWeight:nr.optionSelectedFontWeight,backgroundColor:nr.optionSelectedBg}},"&-content":{flex:"auto"},[Xn]:{marginInlineStart:nr.paddingXXS,color:nr.colorTextDescription,fontSize:nr.fontSizeIcon},"&-keyword":{color:nr.colorHighlight}})}}}]};const xr=nr=>{const{componentCls:wi,antCls:Mi}=nr;return[{[wi]:{width:nr.controlWidth}},{[`${wi}-dropdown`]:[{[`&${Mi}-select-dropdown`]:{padding:0}},pn(nr)]},{[`${wi}-dropdown-rtl`]:{direction:"rtl"}},(0,Qn.c)(nr)]},Jr=nr=>{const wi=Math.round((nr.controlHeight-nr.fontSize*nr.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:nr.controlItemBgActive,optionSelectedFontWeight:nr.fontWeightStrong,optionPadding:`${wi}px ${nr.paddingSM}px`,menuPadding:nr.paddingXXS}};var vi=(0,Xr.Z)("Cascader",nr=>[xr(nr)],Jr);const Ti=nr=>{const{componentCls:wi}=nr;return{[`${wi}-panel`]:[pn(nr),{display:"inline-flex",border:`${nr.lineWidth}px ${nr.lineType} ${nr.colorSplit}`,borderRadius:nr.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${wi}-menus`]:{alignItems:"stretch"},[`${wi}-menu`]:{height:"auto"},"&-empty":{padding:nr.paddingXXS}}]}};var co=(0,Xr.Z)(["Cascader","Panel"],nr=>Ti(nr),Jr);function Qr(nr){const{prefixCls:wi,className:Mi,multiple:Rr,rootClassName:Xn,notFoundContent:ms,direction:ya,expandIcon:fa}=nr,[Ws,Ua,Ao,cl]=Fr(wi,ya),[,$r]=vi(Ua);co(Ua);const er=Ao==="rtl",[Dr,pr]=rn(Ws,er,fa),ci=ms||(cl==null?void 0:cl("Cascader"))||I.createElement(Qo.Z,{componentName:"Cascader"}),Eo=mi(Ua,Rr);return I.createElement(Wt,Object.assign({},nr,{checkable:Eo,prefixCls:Ua,className:z()(Mi,$r,Xn),notFoundContent:ci,direction:Ao,expandIcon:Dr,loadingIcon:pr}))}var oi=function(nr,wi){var Mi={};for(var Rr in nr)Object.prototype.hasOwnProperty.call(nr,Rr)&&wi.indexOf(Rr)<0&&(Mi[Rr]=nr[Rr]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xn=0,Rr=Object.getOwnPropertySymbols(nr);XnWs===0?[fa]:[].concat((0,y.Z)(ya),[wi,fa]),[]),Xn=[];let ms=0;return Rr.forEach((ya,fa)=>{const Ws=ms+ya.length;let Ua=nr.slice(ms,Ws);ms=Ws,fa%2===1&&(Ua=I.createElement("span",{className:`${Mi}-menu-item-keyword`,key:`separator-${fa}`},Ua)),Xn.push(Ua)}),Xn}const Gn=(nr,wi,Mi,Rr)=>{const Xn=[],ms=nr.toLowerCase();return wi.forEach((ya,fa)=>{fa!==0&&Xn.push(" / ");let Ws=ya[Rr.label];const Ua=typeof Ws;(Ua==="string"||Ua==="number")&&(Ws=tn(String(Ws),ms,Mi)),Xn.push(Ws)}),Xn},Ei=I.forwardRef((nr,wi)=>{const{prefixCls:Mi,size:Rr,disabled:Xn,className:ms,rootClassName:ya,multiple:fa,bordered:Ws=!0,transitionName:Ua,choiceTransitionName:Ao="",popupClassName:cl,dropdownClassName:$r,expandIcon:er,placement:Dr,showSearch:pr,allowClear:ci=!0,notFoundContent:Eo,direction:mo,getPopupContainer:Ts,status:xs,showArrow:Er,builtinPlacements:ui,style:Xt}=nr,gn=oi(nr,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),En=(0,fr.Z)(gn,["suffixIcon"]),{getPopupContainer:tt,getPrefixCls:at,popupOverflow:gt,cascader:Re}=I.useContext(uo.E_),{status:lt,hasFeedback:St,isFormItemInput:ln,feedbackIcon:Vn}=I.useContext(qr.aM),wr=(0,si.F)(lt,xs),[ki,Vi,Ki,ps]=Fr(Mi,mo),Ns=Ki==="rtl",Bs=at(),[_a,oo]=(0,Ui.Z)(ki),[Ds]=vi(Vi),{compactSize:oa,compactItemClassnames:va}=(0,Kn.ri)(ki,mo),Bl=Eo||(ps==null?void 0:ps("Cascader"))||I.createElement(Qo.Z,{componentName:"Cascader"}),Fa=z()(cl||$r,`${Vi}-dropdown`,{[`${Vi}-dropdown-rtl`]:Ki==="rtl"},ya,oo),gl=I.useMemo(()=>{if(!pr)return pr;let jn={render:Gn};return typeof pr=="object"&&(jn=Object.assign(Object.assign({},jn),pr)),jn},[pr]),ua=(0,Vr.Z)(jn=>{var yr;return(yr=Rr!=null?Rr:oa)!==null&&yr!==void 0?yr:jn}),Nl=I.useContext(_n.Z),vs=Xn!=null?Xn:Nl,[Hi,eo]=rn(ki,Ns,er),sa=mi(Vi,fa),Cs=(0,$n.Z)(nr.suffixIcon,Er),{suffixIcon:Ka,removeIcon:$u,clearIcon:rc}=(0,Us.Z)(Object.assign(Object.assign({},nr),{hasFeedback:St,feedbackIcon:Vn,showSuffixIcon:Cs,multiple:fa,prefixCls:ki,componentName:"Cascader"})),Pc=I.useMemo(()=>Dr!==void 0?Dr:Ns?"bottomRight":"bottomLeft",[Dr,Ns]),vo=(0,xo.Z)(ui,gt),to=ci===!0?{clearIcon:rc}:ci,hs=I.createElement(en,Object.assign({prefixCls:ki,className:z()(!Mi&&Vi,{[`${ki}-lg`]:ua==="large",[`${ki}-sm`]:ua==="small",[`${ki}-rtl`]:Ns,[`${ki}-borderless`]:!Ws,[`${ki}-in-form-item`]:ln},(0,si.Z)(ki,wr,St),va,Re==null?void 0:Re.className,ms,ya,oo),disabled:vs,style:Object.assign(Object.assign({},Re==null?void 0:Re.style),Xt)},En,{builtinPlacements:vo,direction:Ki,placement:Pc,notFoundContent:Bl,allowClear:to,showSearch:gl,expandIcon:Hi,suffixIcon:Ka,removeIcon:$u,loadingIcon:eo,checkable:sa,dropdownClassName:Fa,dropdownPrefixCls:Mi||Vi,choiceTransitionName:(0,Kr.m)(Bs,"",Ao),transitionName:(0,Kr.m)(Bs,"slide-up",Ua),getPopupContainer:Ts||tt,ref:wi}));return Ds(_a(hs))}),Ln=(0,ii.Z)(Ei);Ei.SHOW_PARENT=Ir,Ei.SHOW_CHILD=Zi,Ei.Panel=Qr,Ei._InternalPanelDoNotUseOrYouWillBeFired=Ln;var Ii=Ei},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,Ce){var xe={};for(var Ae in ye)Object.prototype.hasOwnProperty.call(ye,Ae)&&Ce.indexOf(Ae)<0&&(xe[Ae]=ye[Ae]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,Ae=Object.getOwnPropertySymbols(ye);ge{var xe;const{prefixCls:Ae,className:ge,rootClassName:We,children:Se,indeterminate:Pt=!1,style:dt,onMouseEnter:He,onMouseLeave:Ct,skipGroup:ft=!1,disabled:zt}=ye,mt=W(ye,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:yn,direction:Bn,checkbox:Lr}=y.useContext(w.E_),ri=y.useContext(S),{isFormItemInput:gi}=y.useContext(C.aM),ro=y.useContext(A.Z),To=(xe=(ri==null?void 0:ri.disabled)||zt)!==null&&xe!==void 0?xe:ro,_r=y.useRef(mt.value);y.useEffect(()=>{ri==null||ri.registerValue(mt.value)},[]),y.useEffect(()=>{if(!ft)return mt.value!==_r.current&&(ri==null||ri.cancelValue(_r.current),ri==null||ri.registerValue(mt.value),_r.current=mt.value),()=>ri==null?void 0:ri.cancelValue(mt.value)},[mt.value]);const Bo=yn("checkbox",Ae),[fs,me]=(0,P.ZP)(Bo),So=Object.assign({},mt);ri&&!ft&&(So.onChange=function(){mt.onChange&&mt.onChange.apply(mt,arguments),ri.toggleOption&&ri.toggleOption({label:Se,value:mt.value})},So.name=ri.name,So.checked=ri.value.includes(mt.value));const ho=b()(`${Bo}-wrapper`,{[`${Bo}-rtl`]:Bn==="rtl",[`${Bo}-wrapper-checked`]:So.checked,[`${Bo}-wrapper-disabled`]:To,[`${Bo}-wrapper-in-form-item`]:gi},Lr==null?void 0:Lr.className,ge,We,me),go=b()({[`${Bo}-indeterminate`]:Pt},N.A,me),ji=Pt?"mixed":void 0;return fs(y.createElement(k.Z,{component:"Checkbox",disabled:To},y.createElement("label",{className:ho,style:Object.assign(Object.assign({},Lr==null?void 0:Lr.style),dt),onMouseEnter:He,onMouseLeave:Ct},y.createElement(z.Z,Object.assign({"aria-checked":ji},So,{prefixCls:Bo,className:go,disabled:To,ref:Ce})),Se!==void 0&&y.createElement("span",null,Se))))};var ce=y.forwardRef(te),pe=m(42371),he=m(39029),fe=function(ye,Ce){var xe={};for(var Ae in ye)Object.prototype.hasOwnProperty.call(ye,Ae)&&Ce.indexOf(Ae)<0&&(xe[Ae]=ye[Ae]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,Ae=Object.getOwnPropertySymbols(ye);ge{const{defaultValue:xe,children:Ae,options:ge=[],prefixCls:We,className:Se,rootClassName:Pt,style:dt,onChange:He}=ye,Ct=fe(ye,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ft,direction:zt}=y.useContext(w.E_),[mt,yn]=y.useState(Ct.value||xe||[]),[Bn,Lr]=y.useState([]);y.useEffect(()=>{"value"in Ct&&yn(Ct.value||[])},[Ct.value]);const ri=y.useMemo(()=>ge.map(No=>typeof No=="string"||typeof No=="number"?{label:No,value:No}:No),[ge]),gi=No=>{Lr(dn=>dn.filter(Ve=>Ve!==No))},ro=No=>{Lr(dn=>[].concat((0,pe.Z)(dn),[No]))},To=No=>{const dn=mt.indexOf(No.value),Ve=(0,pe.Z)(mt);dn===-1?Ve.push(No.value):Ve.splice(dn,1),"value"in Ct||yn(Ve),He==null||He(Ve.filter(yt=>Bn.includes(yt)).sort((yt,xt)=>{const Wt=ri.findIndex(Ot=>Ot.value===yt),sn=ri.findIndex(Ot=>Ot.value===xt);return Wt-sn}))},_r=ft("checkbox",We),Bo=`${_r}-group`,[fs,me]=(0,P.ZP)(_r),So=(0,he.Z)(Ct,["value","disabled"]),ho=ge.length?ri.map(No=>y.createElement(ce,{prefixCls:_r,key:No.value.toString(),disabled:"disabled"in No?No.disabled:Ct.disabled,value:No.value,checked:mt.includes(No.value),onChange:No.onChange,className:`${Bo}-item`,style:No.style,title:No.title,id:No.id},No.label)):Ae,go={toggleOption:To,value:mt,disabled:Ct.disabled,name:Ct.name,registerValue:ro,cancelValue:gi},ji=b()(Bo,{[`${Bo}-rtl`]:zt==="rtl"},Se,Pt,me);return fs(y.createElement("div",Object.assign({className:ji,style:dt},So,{ref:Ce}),y.createElement(S.Provider,{value:go},ho)))},Ie=y.forwardRef(Be);var je=y.memo(Ie);const be=ce;be.Group=je,be.__ANT_CHECKBOX=!0;var ve=be},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}},[`${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:'""'}}}}},{[`${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),te=m(80268),re=m(39718),ce=m(74710),pe=m(74809),he=m(57338),fe=m(29161),Be=m(12826),Ie=m(52528),je=m(91002),be=m(64993),ve=["b"],ye=["v"],Ce=function(to){return Math.round(Number(to||0))},xe=function(to){if(to&&(0,je.Z)(to)==="object"&&"h"in to&&"b"in to){var hs=to,jn=hs.b,yr=(0,Ie.Z)(hs,ve);return(0,ce.Z)((0,ce.Z)({},yr),{},{v:jn})}return typeof to=="string"&&/hsb/.test(to)?to.replace(/hsb/,"hsv"):to},Ae=function(vo){(0,fe.Z)(hs,vo);var to=(0,Be.Z)(hs);function hs(jn){return(0,pe.Z)(this,hs),to.call(this,xe(jn))}return(0,he.Z)(hs,[{key:"toHsbString",value:function(){var yr=this.toHsb(),ai=Ce(yr.s*100),hi=Ce(yr.b*100),Ji=Ce(yr.h),so=yr.a,Pi="hsb(".concat(Ji,", ").concat(ai,"%, ").concat(hi,"%)"),us="hsba(".concat(Ji,", ").concat(ai,"%, ").concat(hi,"%, ").concat(so.toFixed(so===0?0:2),")");return so===1?Pi:us}},{key:"toHsb",value:function(){var yr=this.toHsv();(0,je.Z)(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(yr=this.originalInput);var ai=yr,hi=ai.v,Ji=(0,Ie.Z)(ai,ye);return(0,ce.Z)((0,ce.Z)({},Ji),{},{b:yr.v})}}]),hs}(be.C),ge="rc-color-picker",We=function(to){return to instanceof Ae?to:new Ae(to)},Se=We("#1677ff"),Pt=function(to){var hs=to.offset,jn=to.targetRef,yr=to.containerRef,ai=to.color,hi=to.type,Ji=yr.current.getBoundingClientRect(),so=Ji.width,Pi=Ji.height,us=jn.current.getBoundingClientRect(),ga=us.width,$a=us.height,dl=ga/2,Hl=$a/2,Ml=(hs.x+dl)/so,Za=1-(hs.y+Hl)/Pi,Pu=ai.toHsb(),ea=Ml,Qa=(hs.x+dl)/so*360;if(hi)switch(hi){case"hue":return We((0,ce.Z)((0,ce.Z)({},Pu),{},{h:Qa<=0?0:Qa}));case"alpha":return We((0,ce.Z)((0,ce.Z)({},Pu),{},{a:ea<=0?0:ea}))}return We({h:Pu.h,s:Ml<=0?0:Ml,b:Za>=1?1:Za,a:Pu.a})},dt=function(to,hs,jn,yr){var ai=to.current.getBoundingClientRect(),hi=ai.width,Ji=ai.height,so=hs.current.getBoundingClientRect(),Pi=so.width,us=so.height,ga=Pi/2,$a=us/2,dl=jn.toHsb();if(!(Pi===0&&us===0||Pi!==us)){if(yr)switch(yr){case"hue":return{x:dl.h/360*hi-ga,y:-$a/3};case"alpha":return{x:dl.a/1*hi-ga,y:-$a/3}}return{x:dl.s*hi-ga,y:(1-dl.b)*Ji-$a}}},He=function(to){var hs=to.color,jn=to.prefixCls,yr=to.className,ai=to.style,hi=to.onClick,Ji="".concat(jn,"-color-block");return y.createElement("div",{className:b()(Ji,yr),style:ai,onClick:hi},y.createElement("div",{className:"".concat(Ji,"-inner"),style:{background:hs}}))},Ct=He;function ft(vo){var to="touches"in vo?vo.touches[0]:vo,hs=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,jn=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:to.pageX-hs,pageY:to.pageY-jn}}function zt(vo){var to=vo.offset,hs=vo.targetRef,jn=vo.containerRef,yr=vo.direction,ai=vo.onDragChange,hi=vo.onDragChangeComplete,Ji=vo.calculate,so=vo.color,Pi=vo.disabledDrag,us=(0,y.useState)(to||{x:0,y:0}),ga=(0,re.Z)(us,2),$a=ga[0],dl=ga[1],Hl=(0,y.useRef)(null),Ml=(0,y.useRef)(null),Za=(0,y.useRef)({flag:!1});(0,y.useEffect)(function(){if(Za.current.flag===!1){var Ul=Ji==null?void 0:Ji(jn);Ul&&dl(Ul)}},[so,jn]),(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=ft(ql),au=vu.pageX,Cn=vu.pageY,Eu=jn.current.getBoundingClientRect(),ls=Eu.x,Ks=Eu.y,xa=Eu.width,Il=Eu.height,El=hs.current.getBoundingClientRect(),ml=El.width,fu=El.height,Nu=ml/2,lc=fu/2,Ic=Math.max(0,Math.min(au-ls,xa))-Nu,Vc=Math.max(0,Math.min(Cn-Ks,Il))-lc,zd={x:Ic,y:yr==="x"?$a.y:Vc};if(ml===0&&fu===0||ml!==fu)return!1;dl(zd),ai==null||ai(zd)},ea=function(ql){ql.preventDefault(),Pu(ql)},Qa=function(ql){ql.preventDefault(),Za.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,hi==null||hi()},el=function(ql){document.removeEventListener("mousemove",Hl.current),document.removeEventListener("mouseup",Ml.current),!Pi&&(Pu(ql),Za.current.flag=!0,document.addEventListener("mousemove",ea),document.addEventListener("mouseup",Qa),document.addEventListener("touchmove",ea),document.addEventListener("touchend",Qa),Hl.current=ea,Ml.current=Qa)};return[$a,el]}var mt=zt,yn=function(to){var hs=to.size,jn=hs===void 0?"default":hs,yr=to.color,ai=to.prefixCls;return y.createElement("div",{className:b()("".concat(ai,"-handler"),(0,te.Z)({},"".concat(ai,"-handler-sm"),jn==="small")),style:{backgroundColor:yr}})},Bn=yn,Lr=function(to){var hs=to.children,jn=to.style,yr=to.prefixCls;return y.createElement("div",{className:"".concat(yr,"-palette"),style:(0,ce.Z)({position:"relative"},jn)},hs)},ri=Lr,gi=(0,y.forwardRef)(function(vo,to){var hs=vo.children,jn=vo.offset;return y.createElement("div",{ref:to,style:{position:"absolute",left:jn.x,top:jn.y,zIndex:1}},hs)}),ro=gi,To=function(to){var hs=to.color,jn=to.onChange,yr=to.prefixCls,ai=to.onChangeComplete,hi=to.disabled,Ji=(0,y.useRef)(),so=(0,y.useRef)(),Pi=(0,y.useRef)(hs),us=mt({color:hs,containerRef:Ji,targetRef:so,calculate:function(Ml){return dt(Ml,so,hs)},onDragChange:function(Ml){var Za=Pt({offset:Ml,targetRef:so,containerRef:Ji,color:hs});Pi.current=Za,jn(Za)},onDragChangeComplete:function(){return ai==null?void 0:ai(Pi.current)},disabledDrag:hi}),ga=(0,re.Z)(us,2),$a=ga[0],dl=ga[1];return y.createElement("div",{ref:Ji,className:"".concat(yr,"-select"),onMouseDown:dl,onTouchStart:dl},y.createElement(ri,{prefixCls:yr},y.createElement(ro,{offset:$a,ref:so},y.createElement(Bn,{color:hs.toRgbString(),prefixCls:yr})),y.createElement("div",{className:"".concat(yr,"-saturation"),style:{backgroundColor:"hsl(".concat(hs.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},_r=To,Bo=function(to){var hs=to.colors,jn=to.children,yr=to.direction,ai=yr===void 0?"to right":yr,hi=to.type,Ji=to.prefixCls,so=(0,y.useMemo)(function(){return hs.map(function(Pi,us){var ga=We(Pi);return hi==="alpha"&&us===hs.length-1&&ga.setAlpha(1),ga.toRgbString()}).join(",")},[hs,hi]);return y.createElement("div",{className:"".concat(Ji,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(ai,", ").concat(so,")")}},jn)},fs=Bo,me=function(to){var hs=to.gradientColors,jn=to.direction,yr=to.type,ai=yr===void 0?"hue":yr,hi=to.color,Ji=to.value,so=to.onChange,Pi=to.onChangeComplete,us=to.disabled,ga=to.prefixCls,$a=(0,y.useRef)(),dl=(0,y.useRef)(),Hl=(0,y.useRef)(hi),Ml=mt({color:hi,targetRef:dl,containerRef:$a,calculate:function(el){return dt(el,dl,hi,ai)},onDragChange:function(el){var Ul=Pt({offset:el,targetRef:dl,containerRef:$a,color:hi,type:ai});Hl.current=Ul,so(Ul)},onDragChangeComplete:function(){Pi==null||Pi(Hl.current,ai)},direction:"x",disabledDrag:us}),Za=(0,re.Z)(Ml,2),Pu=Za[0],ea=Za[1];return y.createElement("div",{ref:$a,className:b()("".concat(ga,"-slider"),"".concat(ga,"-slider-").concat(ai)),onMouseDown:ea,onTouchStart:ea},y.createElement(ri,{prefixCls:ga},y.createElement(ro,{offset:Pu,ref:dl},y.createElement(Bn,{size:"small",color:Ji,prefixCls:ga})),y.createElement(fs,{colors:hs,direction:jn,type:ai,prefixCls:ga})))},So=me;function ho(vo){return vo!==void 0}var go=function(to,hs){var jn=hs.defaultValue,yr=hs.value,ai=(0,y.useState)(function(){var Pi;return ho(yr)?Pi=yr:ho(jn)?Pi=jn:Pi=to,We(Pi)}),hi=(0,re.Z)(ai,2),Ji=hi[0],so=hi[1];return(0,y.useEffect)(function(){yr&&so(We(yr))},[yr]),[Ji,so]},ji=go,No=["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%"],dn=(0,y.forwardRef)(function(vo,to){var hs=vo.value,jn=vo.defaultValue,yr=vo.prefixCls,ai=yr===void 0?ge:yr,hi=vo.onChange,Ji=vo.onChangeComplete,so=vo.className,Pi=vo.style,us=vo.panelRender,ga=vo.disabledAlpha,$a=ga===void 0?!1:ga,dl=vo.disabled,Hl=dl===void 0?!1:dl,Ml=ji(Se,{value:hs,defaultValue:jn}),Za=(0,re.Z)(Ml,2),Pu=Za[0],ea=Za[1],Qa=(0,y.useMemo)(function(){var au=We(Pu.toRgbString());return au.setAlpha(1),au.toRgbString()},[Pu]),el=b()("".concat(ai,"-panel"),so,(0,te.Z)({},"".concat(ai,"-panel-disabled"),Hl)),Ul={prefixCls:ai,onChangeComplete:Ji,disabled:Hl},ql=function(Cn,Eu){hs||ea(Cn),hi==null||hi(Cn,Eu)},vu=y.createElement(y.Fragment,null,y.createElement(_r,(0,W.Z)({color:Pu,onChange:ql},Ul)),y.createElement("div",{className:"".concat(ai,"-slider-container")},y.createElement("div",{className:b()("".concat(ai,"-slider-group"),(0,te.Z)({},"".concat(ai,"-slider-group-disabled-alpha"),$a))},y.createElement(So,(0,W.Z)({gradientColors:No,color:Pu,value:"hsl(".concat(Pu.toHsb().h,",100%, 50%)"),onChange:function(Cn){return ql(Cn,"hue")}},Ul)),!$a&&y.createElement(So,(0,W.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",Qa],color:Pu,value:Pu.toRgbString(),onChange:function(Cn){return ql(Cn,"alpha")}},Ul))),y.createElement(Ct,{color:Pu.toRgbString(),prefixCls:ai})));return y.createElement("div",{className:el,style:Pi,ref:to},typeof us=="function"?us(vu):vu)}),Ve=dn;const yt=y.createContext({}),xt=y.createContext({}),{Provider:Wt}=yt,{Provider:sn}=xt,Ot=(vo,to)=>(vo==null?void 0:vo.replace(/[^\w/]/gi,"").slice(0,to?8:6))||"",Tt=(vo,to)=>vo?Ot(vo,to):"";let bt=function(){function vo(to){(0,pe.Z)(this,vo),this.metaColor=new Ae(to),to||this.metaColor.setAlpha(0)}return(0,he.Z)(vo,[{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()}}]),vo}();const Ht="ant-color-picker",zn=vo=>vo instanceof bt?vo:new bt(vo),en=vo=>Math.round(Number(vo||0)),fr=vo=>en(vo.toHsb().a*100),Kr=(vo,to)=>{const hs=vo.toHsb();return hs.a=to||1,zn(hs)};var si=vo=>{let{prefixCls:to,value:hs,colorCleared:jn,onChange:yr}=vo;const ai=()=>{if(hs&&!jn){const hi=hs.toHsb();hi.a=0;const Ji=zn(hi);yr==null||yr(Ji)}};return y.createElement("div",{className:`${to}-clear`,onClick:ai})},uo=m(29130),Qo;(function(vo){vo.hex="hex",vo.rgb="rgb",vo.hsb="hsb"})(Qo||(Qo={}));var _n=m(41654),qr=vo=>{let{prefixCls:to,min:hs=0,max:jn=100,value:yr,onChange:ai,className:hi,formatter:Ji}=vo;const so=`${to}-steppers`,[Pi,us]=(0,y.useState)(yr);return(0,y.useEffect)(()=>{Number.isNaN(yr)||us(yr)},[yr]),y.createElement(_n.Z,{className:b()(so,hi),min:hs,max:jn,value:Pi,formatter:Ji,size:"small",onChange:ga=>{yr||us(ga||0),ai==null||ai(ga)}})},xo=vo=>{let{prefixCls:to,value:hs,onChange:jn}=vo;const yr=`${to}-alpha-input`,[ai,hi]=(0,y.useState)(zn(hs||"#000"));(0,y.useEffect)(()=>{hs&&hi(hs)},[hs]);const Ji=so=>{const Pi=ai.toHsb();Pi.a=(so||0)/100;const us=zn(Pi);hs||hi(us),jn==null||jn(us)};return y.createElement(qr,{value:fr(ai),prefixCls:to,formatter:so=>`${so}%`,className:yr,onChange:Ji})},Us=m(68517);const $n=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Kn=vo=>$n.test(`#${vo}`);var mi=vo=>{let{prefixCls:to,value:hs,onChange:jn}=vo;const yr=`${to}-hex-input`,[ai,hi]=(0,y.useState)(hs==null?void 0:hs.toHex());(0,y.useEffect)(()=>{const so=hs==null?void 0:hs.toHex();Kn(so)&&hs&&hi(Ot(so))},[hs]);const Ji=so=>{const Pi=so.target.value;hi(Ot(Pi)),Kn(Ot(Pi,!0))&&(jn==null||jn(zn(Pi)))};return y.createElement(Us.Z,{className:yr,value:ai,prefix:"#",onChange:Ji,size:"small"})},ti=vo=>{let{prefixCls:to,value:hs,onChange:jn}=vo;const yr=`${to}-hsb-input`,[ai,hi]=(0,y.useState)(zn(hs||"#000"));(0,y.useEffect)(()=>{hs&&hi(hs)},[hs]);const Ji=(so,Pi)=>{const us=ai.toHsb();us[Pi]=Pi==="h"?so:(so||0)/100;const ga=zn(us);hs||hi(ga),jn==null||jn(ga)};return y.createElement("div",{className:yr},y.createElement(qr,{max:360,min:0,value:Number(ai.toHsb().h),prefixCls:to,className:yr,formatter:so=>en(so||0).toString(),onChange:so=>Ji(Number(so),"h")}),y.createElement(qr,{max:100,min:0,value:Number(ai.toHsb().s)*100,prefixCls:to,className:yr,formatter:so=>`${en(so||0)}%`,onChange:so=>Ji(Number(so),"s")}),y.createElement(qr,{max:100,min:0,value:Number(ai.toHsb().b)*100,prefixCls:to,className:yr,formatter:so=>`${en(so||0)}%`,onChange:so=>Ji(Number(so),"b")}))},rn=vo=>{let{prefixCls:to,value:hs,onChange:jn}=vo;const yr=`${to}-rgb-input`,[ai,hi]=(0,y.useState)(zn(hs||"#000"));(0,y.useEffect)(()=>{hs&&hi(hs)},[hs]);const Ji=(so,Pi)=>{const us=ai.toRgb();us[Pi]=so||0;const ga=zn(us);hs||hi(ga),jn==null||jn(ga)};return y.createElement("div",{className:yr},y.createElement(qr,{max:255,min:0,value:Number(ai.toRgb().r),prefixCls:to,className:yr,onChange:so=>Ji(Number(so),"r")}),y.createElement(qr,{max:255,min:0,value:Number(ai.toRgb().g),prefixCls:to,className:yr,onChange:so=>Ji(Number(so),"g")}),y.createElement(qr,{max:255,min:0,value:Number(ai.toRgb().b),prefixCls:to,className:yr,onChange:so=>Ji(Number(so),"b")}))};const Qn=[Qo.hex,Qo.hsb,Qo.rgb].map(vo=>({value:vo,label:vo.toLocaleUpperCase()}));var ao=vo=>{const{prefixCls:to,format:hs,value:jn,disabledAlpha:yr,onFormatChange:ai,onChange:hi}=vo,[Ji,so]=(0,z.Z)(Qo.hex,{value:hs,onChange:ai}),Pi=`${to}-input`,us=$a=>{so($a)},ga=(0,y.useMemo)(()=>{const $a={value:jn,prefixCls:to,onChange:hi};switch(Ji){case Qo.hsb:return y.createElement(ti,Object.assign({},$a));case Qo.rgb:return y.createElement(rn,Object.assign({},$a));case Qo.hex:default:return y.createElement(mi,Object.assign({},$a))}},[Ji,to,jn,hi]);return y.createElement("div",{className:`${Pi}-container`},y.createElement(uo.Z,{value:Ji,bordered:!1,getPopupContainer:$a=>$a,popupMatchSelectWidth:68,placement:"bottomRight",onChange:us,className:`${to}-format-select`,size:"small",options:Qn}),y.createElement("div",{className:Pi},ga),!yr&&y.createElement(xo,{prefixCls:to,value:jn,onChange:hi}))},as=function(vo,to){var hs={};for(var jn in vo)Object.prototype.hasOwnProperty.call(vo,jn)&&to.indexOf(jn)<0&&(hs[jn]=vo[jn]);if(vo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yr=0,jn=Object.getOwnPropertySymbols(vo);yr{const vo=(0,y.useContext)(yt),{prefixCls:to,colorCleared:hs,allowClear:jn,value:yr,disabledAlpha:ai,onChange:hi,onClear:Ji,onChangeComplete:so}=vo,Pi=as(vo,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return y.createElement(y.Fragment,null,jn&&y.createElement(si,Object.assign({prefixCls:to,value:yr,colorCleared:hs,onChange:us=>{hi==null||hi(us),Ji==null||Ji()}},Pi)),y.createElement(Ve,{prefixCls:to,value:yr==null?void 0:yr.toHsb(),disabledAlpha:ai,onChange:(us,ga)=>hi==null?void 0:hi(us,ga,!0),onChangeComplete:so}),y.createElement(ao,Object.assign({value:yr,onChange:hi,prefixCls:to,disabledAlpha:ai},Pi)))},xr=m(22311),Jr=m(42371),vi=m(46644),Ti=m(38930),co=m(44516),Qr=m(38251),oi=y.forwardRef(function(vo,to){var hs,jn=vo.prefixCls,yr=vo.forceRender,ai=vo.className,hi=vo.style,Ji=vo.children,so=vo.isActive,Pi=vo.role,us=y.useState(so||yr),ga=(0,re.Z)(us,2),$a=ga[0],dl=ga[1];return y.useEffect(function(){(yr||so)&&dl(!0)},[yr,so]),$a?y.createElement("div",{ref:to,className:b()("".concat(jn,"-content"),(hs={},(0,te.Z)(hs,"".concat(jn,"-content-active"),so),(0,te.Z)(hs,"".concat(jn,"-content-inactive"),!so),hs),ai),style:hi,role:Pi},y.createElement("div",{className:"".concat(jn,"-content-box")},Ji)):null});oi.displayName="PanelContent";var Zi=oi,Ir=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],tn=y.forwardRef(function(vo,to){var hs,jn,yr=vo.showArrow,ai=yr===void 0?!0:yr,hi=vo.headerClass,Ji=vo.isActive,so=vo.onItemClick,Pi=vo.forceRender,us=vo.className,ga=vo.prefixCls,$a=vo.collapsible,dl=vo.accordion,Hl=vo.panelKey,Ml=vo.extra,Za=vo.header,Pu=vo.expandIcon,ea=vo.openMotion,Qa=vo.destroyInactivePanel,el=vo.children,Ul=(0,Ie.Z)(vo,Ir),ql=$a==="disabled",vu=$a==="header",au=$a==="icon",Cn=Ml!=null&&typeof Ml!="boolean",Eu=function(){so==null||so(Hl)},ls=function(fu){(fu.key==="Enter"||fu.keyCode===Qr.Z.ENTER||fu.which===Qr.Z.ENTER)&&Eu()},Ks=typeof Pu=="function"?Pu(vo):y.createElement("i",{className:"arrow"});Ks&&(Ks=y.createElement("div",{className:"".concat(ga,"-expand-icon"),onClick:["header","icon"].includes($a)?Eu:void 0},Ks));var xa=b()((hs={},(0,te.Z)(hs,"".concat(ga,"-item"),!0),(0,te.Z)(hs,"".concat(ga,"-item-active"),Ji),(0,te.Z)(hs,"".concat(ga,"-item-disabled"),ql),hs),us),Il=b()(hi,(jn={},(0,te.Z)(jn,"".concat(ga,"-header"),!0),(0,te.Z)(jn,"".concat(ga,"-header-collapsible-only"),vu),(0,te.Z)(jn,"".concat(ga,"-icon-collapsible-only"),au),jn)),El={className:Il,"aria-expanded":Ji,"aria-disabled":ql,onKeyDown:ls};return!vu&&!au&&(El.onClick=Eu,El.role=dl?"tab":"button",El.tabIndex=ql?-1:0),y.createElement("div",(0,W.Z)({},Ul,{ref:to,className:xa}),y.createElement("div",El,ai&&Ks,y.createElement("span",{className:"".concat(ga,"-header-text"),onClick:$a==="header"?Eu:void 0},Za),Cn&&y.createElement("div",{className:"".concat(ga,"-extra")},Ml)),y.createElement(co.ZP,(0,W.Z)({visible:Ji,leavedClassName:"".concat(ga,"-content-hidden")},ea,{forceRender:Pi,removeOnLeave:Qa}),function(ml,fu){var Nu=ml.className,lc=ml.style;return y.createElement(Zi,{ref:fu,prefixCls:ga,className:Nu,style:lc,isActive:Ji,forceRender:Pi,role:dl?"tabpanel":void 0},el)}))}),Gn=tn,Ei=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Ln=function(to,hs){var jn=hs.prefixCls,yr=hs.accordion,ai=hs.collapsible,hi=hs.destroyInactivePanel,Ji=hs.onItemClick,so=hs.activeKey,Pi=hs.openMotion,us=hs.expandIcon;return to.map(function(ga,$a){var dl=ga.children,Hl=ga.label,Ml=ga.key,Za=ga.collapsible,Pu=ga.onItemClick,ea=ga.destroyInactivePanel,Qa=(0,Ie.Z)(ga,Ei),el=String(Ml!=null?Ml:$a),Ul=Za!=null?Za:ai,ql=ea!=null?ea:hi,vu=function(Eu){Ul!=="disabled"&&(Ji(Eu),Pu==null||Pu(Eu))},au=!1;return yr?au=so[0]===el:au=so.indexOf(el)>-1,y.createElement(Gn,(0,W.Z)({},Qa,{prefixCls:jn,key:el,panelKey:el,isActive:au,accordion:yr,openMotion:Pi,expandIcon:us,header:Hl,collapsible:Ul,onItemClick:vu,destroyInactivePanel:ql}),dl)})},Ii=function(to,hs,jn){if(!to)return null;var yr=jn.prefixCls,ai=jn.accordion,hi=jn.collapsible,Ji=jn.destroyInactivePanel,so=jn.onItemClick,Pi=jn.activeKey,us=jn.openMotion,ga=jn.expandIcon,$a=to.key||String(hs),dl=to.props,Hl=dl.header,Ml=dl.headerClass,Za=dl.destroyInactivePanel,Pu=dl.collapsible,ea=dl.onItemClick,Qa=!1;ai?Qa=Pi[0]===$a:Qa=Pi.indexOf($a)>-1;var el=Pu!=null?Pu:hi,Ul=function(au){el!=="disabled"&&(so(au),ea==null||ea(au))},ql={key:$a,panelKey:$a,header:Hl,headerClass:Ml,isActive:Qa,prefixCls:yr,destroyInactivePanel:Za!=null?Za:Ji,openMotion:us,accordion:ai,children:to.props.children,onItemClick:Ul,expandIcon:ga,collapsible:el};return typeof to.type=="string"?to:(Object.keys(ql).forEach(function(vu){typeof ql[vu]=="undefined"&&delete ql[vu]}),y.cloneElement(to,ql))};function nr(vo,to,hs){return Array.isArray(vo)?Ln(vo,hs):(0,Ti.Z)(to).map(function(jn,yr){return Ii(jn,yr,hs)})}var wi=nr;function Mi(vo){var to=vo;if(!Array.isArray(to)){var hs=(0,je.Z)(to);to=hs==="number"||hs==="string"?[to]:[]}return to.map(function(jn){return String(jn)})}var Rr=y.forwardRef(function(vo,to){var hs=vo.prefixCls,jn=hs===void 0?"rc-collapse":hs,yr=vo.destroyInactivePanel,ai=yr===void 0?!1:yr,hi=vo.style,Ji=vo.accordion,so=vo.className,Pi=vo.children,us=vo.collapsible,ga=vo.openMotion,$a=vo.expandIcon,dl=vo.activeKey,Hl=vo.defaultActiveKey,Ml=vo.onChange,Za=vo.items,Pu=b()(jn,so),ea=(0,z.Z)([],{value:dl,onChange:function(Cn){return Ml==null?void 0:Ml(Cn)},defaultValue:Hl,postState:Mi}),Qa=(0,re.Z)(ea,2),el=Qa[0],Ul=Qa[1],ql=function(Cn){return Ul(function(){if(Ji)return el[0]===Cn?[]:[Cn];var Eu=el.indexOf(Cn),ls=Eu>-1;return ls?el.filter(function(Ks){return Ks!==Cn}):[].concat((0,Jr.Z)(el),[Cn])})};(0,vi.ZP)(!Pi,"`children` will be removed in next major version. Please use `items` instead.");var vu=wi(Za,Pi,{prefixCls:jn,accordion:Ji,openMotion:ga,expandIcon:$a,collapsible:us,destroyInactivePanel:ai,onItemClick:ql,activeKey:el});return y.createElement("div",{ref:to,className:Pu,style:hi,role:Ji?"tablist":void 0},vu)}),Xn=Object.assign(Rr,{Panel:Gn}),ms=Xn,ya=Xn.Panel,fa=m(39029),Ws=m(26612),Ua=m(99486),cl=y.forwardRef((vo,to)=>{const{getPrefixCls:hs}=y.useContext(w.E_),{prefixCls:jn,className:yr,showArrow:ai=!0}=vo,hi=hs("collapse",jn),Ji=b()({[`${hi}-no-arrow`]:!ai},yr);return y.createElement(ms.Panel,Object.assign({ref:to},vo,{prefixCls:hi,className:Ji}))}),$r=m(92068),er=m(53710),Dr=m(24577),pr=m(41788);const ci=vo=>{const{componentCls:to,contentBg:hs,padding:jn,headerBg:yr,headerPadding:ai,collapseHeaderPaddingSM:hi,collapseHeaderPaddingLG:Ji,collapsePanelBorderRadius:so,lineWidth:Pi,lineType:us,colorBorder:ga,colorText:$a,colorTextHeading:dl,colorTextDisabled:Hl,fontSize:Ml,fontSizeLG:Za,lineHeight:Pu,marginSM:ea,paddingSM:Qa,paddingLG:el,paddingXS:Ul,motionDurationSlow:ql,fontSizeIcon:vu,contentPadding:au}=vo,Cn=`${Pi}px ${us} ${ga}`;return{[to]:Object.assign(Object.assign({},(0,$r.Wf)(vo)),{backgroundColor:yr,border:Cn,borderBottom:0,borderRadius:`${so}px`,["&-rtl"]:{direction:"rtl"},[`& > ${to}-item`]:{borderBottom:Cn,["&:last-child"]:{[` + &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${wr}-icon-only`]:{fontSize:jr}},Ce(`${wr}-primary`,Pr),Ce(`${wr}-danger`,Hi)]}};const Xt=sn=>{const{componentCls:wr,iconCls:jr,fontWeight:xi}=sn;return{[wr]:{outline:"none",position:"relative",display:"inline-block",fontWeight:xi,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${sn.lineWidth}px ${sn.lineType} transparent`,cursor:"pointer",transition:`all ${sn.motionDurationMid} ${sn.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:sn.lineHeight,color:sn.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${wr}-icon`]:{lineHeight:0},[`> ${jr} + span, > span + ${jr}`]:{marginInlineStart:sn.marginXS},[`&:not(${wr}-icon-only) > ${wr}-icon`]:{[`&${wr}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:sn.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,Pe.Qy)(sn)),[`&${wr}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${wr}-two-chinese-chars > *:not(${jr})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${wr}-compact-item`]:{flex:"none"},[`&-compact-item${wr}-primary`]:{[`&:not([disabled]) + ${wr}-compact-item${wr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-sn.lineWidth,insetInlineStart:-sn.lineWidth,display:"inline-block",width:sn.lineWidth,height:`calc(100% + ${sn.lineWidth*2}px)`,backgroundColor:sn.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${wr}-primary`]:{[`&:not([disabled]) + ${wr}-compact-vertical-item${wr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-sn.lineWidth,insetInlineStart:-sn.lineWidth,display:"inline-block",width:`calc(100% + ${sn.lineWidth*2}px)`,height:sn.lineWidth,backgroundColor:sn.colorPrimaryHover,content:'""'}}}}}}},Ft=(sn,wr,jr)=>({[`&:not(:disabled):not(${sn}-disabled)`]:{"&:hover":wr,"&:active":jr}}),lt=sn=>({minWidth:sn.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Bt=sn=>({borderRadius:sn.controlHeight,paddingInlineStart:sn.controlHeight/2,paddingInlineEnd:sn.controlHeight/2}),At=sn=>({cursor:"not-allowed",borderColor:sn.borderColorDisabled,color:sn.colorTextDisabled,backgroundColor:sn.colorBgContainerDisabled,boxShadow:"none"}),an=(sn,wr,jr,xi,Pr,Hi,Io,On)=>({[`&${sn}-background-ghost`]:Object.assign(Object.assign({color:jr||void 0,backgroundColor:wr,borderColor:xi||void 0,boxShadow:"none"},Ft(sn,Object.assign({backgroundColor:wr},Io),Object.assign({backgroundColor:wr},On))),{"&:disabled":{cursor:"not-allowed",color:Pr||void 0,borderColor:Hi||void 0}})}),Tt=sn=>({[`&:disabled, &${sn.componentCls}-disabled`]:Object.assign({},At(sn))}),Nn=sn=>Object.assign({},Tt(sn)),mn=sn=>({[`&:disabled, &${sn.componentCls}-disabled`]:{cursor:"not-allowed",color:sn.colorTextDisabled}}),zn=sn=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nn(sn)),{backgroundColor:sn.defaultBg,borderColor:sn.defaultBorderColor,color:sn.defaultColor,boxShadow:sn.defaultShadow}),Ft(sn.componentCls,{color:sn.colorPrimaryHover,borderColor:sn.colorPrimaryHover},{color:sn.colorPrimaryActive,borderColor:sn.colorPrimaryActive})),an(sn.componentCls,sn.ghostBg,sn.defaultGhostColor,sn.defaultGhostBorderColor,sn.colorTextDisabled,sn.colorBorder)),{[`&${sn.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:sn.colorError,borderColor:sn.colorError},Ft(sn.componentCls,{color:sn.colorErrorHover,borderColor:sn.colorErrorBorderHover},{color:sn.colorErrorActive,borderColor:sn.colorErrorActive})),an(sn.componentCls,sn.ghostBg,sn.colorError,sn.colorError,sn.colorTextDisabled,sn.colorBorder)),Tt(sn))}),Kr=sn=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nn(sn)),{color:sn.primaryColor,backgroundColor:sn.colorPrimary,boxShadow:sn.primaryShadow}),Ft(sn.componentCls,{color:sn.colorTextLightSolid,backgroundColor:sn.colorPrimaryHover},{color:sn.colorTextLightSolid,backgroundColor:sn.colorPrimaryActive})),an(sn.componentCls,sn.ghostBg,sn.colorPrimary,sn.colorPrimary,sn.colorTextDisabled,sn.colorBorder,{color:sn.colorPrimaryHover,borderColor:sn.colorPrimaryHover},{color:sn.colorPrimaryActive,borderColor:sn.colorPrimaryActive})),{[`&${sn.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:sn.colorError,boxShadow:sn.dangerShadow,color:sn.dangerColor},Ft(sn.componentCls,{backgroundColor:sn.colorErrorHover},{backgroundColor:sn.colorErrorActive})),an(sn.componentCls,sn.ghostBg,sn.colorError,sn.colorError,sn.colorTextDisabled,sn.colorBorder,{color:sn.colorErrorHover,borderColor:sn.colorErrorHover},{color:sn.colorErrorActive,borderColor:sn.colorErrorActive})),Tt(sn))}),Ui=sn=>Object.assign(Object.assign({},zn(sn)),{borderStyle:"dashed"}),go=sn=>Object.assign(Object.assign(Object.assign({color:sn.colorLink},Ft(sn.componentCls,{color:sn.colorLinkHover,backgroundColor:sn.linkHoverBg},{color:sn.colorLinkActive})),mn(sn)),{[`&${sn.componentCls}-dangerous`]:Object.assign(Object.assign({color:sn.colorError},Ft(sn.componentCls,{color:sn.colorErrorHover},{color:sn.colorErrorActive})),mn(sn))}),gi=sn=>Object.assign(Object.assign(Object.assign({},Ft(sn.componentCls,{color:sn.colorText,backgroundColor:sn.textHoverBg},{color:sn.colorText,backgroundColor:sn.colorBgTextActive})),mn(sn)),{[`&${sn.componentCls}-dangerous`]:Object.assign(Object.assign({color:sn.colorError},mn(sn)),Ft(sn.componentCls,{color:sn.colorErrorHover,backgroundColor:sn.colorErrorBg},{color:sn.colorErrorHover,backgroundColor:sn.colorErrorBg}))}),Mr=sn=>{const{componentCls:wr}=sn;return{[`${wr}-default`]:zn(sn),[`${wr}-primary`]:Kr(sn),[`${wr}-dashed`]:Ui(sn),[`${wr}-link`]:go(sn),[`${wr}-text`]:gi(sn),[`${wr}-ghost`]:an(sn.componentCls,sn.ghostBg,sn.colorBgContainer,sn.colorBgContainer,sn.colorTextDisabled,sn.colorBorder)}},To=function(sn){let wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:jr,controlHeight:xi,fontSize:Pr,lineHeight:Hi,lineWidth:Io,borderRadius:On,buttonPaddingHorizontal:zr,iconCls:qr}=sn,Wi=Math.max(0,(xi-Pr*Hi)/2-Io),ir=`${jr}-icon-only`;return[{[`${jr}${wr}`]:{fontSize:Pr,height:xi,padding:`${Wi}px ${zr}px`,borderRadius:On,[`&${ir}`]:{width:xi,paddingInlineStart:0,paddingInlineEnd:0,[`&${jr}-round`]:{width:"auto"},[qr]:{fontSize:sn.buttonIconOnlyFontSize}},[`&${jr}-loading`]:{opacity:sn.opacityLoading,cursor:"default"},[`${jr}-loading-icon`]:{transition:`width ${sn.motionDurationSlow} ${sn.motionEaseInOut}, opacity ${sn.motionDurationSlow} ${sn.motionEaseInOut}`}}},{[`${jr}${jr}-circle${wr}`]:lt(sn)},{[`${jr}${jr}-round${wr}`]:Bt(sn)}]},ms=sn=>To((0,Re.TS)(sn,{fontSize:sn.contentFontSize})),De=sn=>{const wr=(0,Re.TS)(sn,{controlHeight:sn.controlHeightSM,fontSize:sn.contentFontSizeSM,padding:sn.paddingXS,buttonPaddingHorizontal:sn.paddingInlineSM,borderRadius:sn.borderRadiusSM,buttonIconOnlyFontSize:sn.onlyIconSizeSM});return To(wr,`${sn.componentCls}-sm`)},Oo=sn=>{const wr=(0,Re.TS)(sn,{controlHeight:sn.controlHeightLG,fontSize:sn.contentFontSizeLG,buttonPaddingHorizontal:sn.paddingInlineLG,borderRadius:sn.borderRadiusLG,buttonIconOnlyFontSize:sn.onlyIconSizeLG});return To(wr,`${sn.componentCls}-lg`)},$i=sn=>{const{componentCls:wr}=sn;return{[wr]:{[`&${wr}-block`]:{width:"100%"}}}},co=sn=>{const{paddingInline:wr,onlyIconSize:jr}=sn;return(0,Re.TS)(sn,{buttonPaddingHorizontal:wr,buttonIconOnlyFontSize:jr})},Vr=sn=>({fontWeight:400,defaultShadow:`0 ${sn.controlOutlineWidth}px 0 ${sn.controlTmpOutline}`,primaryShadow:`0 ${sn.controlOutlineWidth}px 0 ${sn.controlOutline}`,dangerShadow:`0 ${sn.controlOutlineWidth}px 0 ${sn.colorErrorOutline}`,primaryColor:sn.colorTextLightSolid,dangerColor:sn.colorTextLightSolid,borderColorDisabled:sn.colorBorder,defaultGhostColor:sn.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:sn.colorBgContainer,paddingInline:sn.paddingContentHorizontal-sn.lineWidth,paddingInlineLG:sn.paddingContentHorizontal-sn.lineWidth,paddingInlineSM:8-sn.lineWidth,onlyIconSize:sn.fontSizeLG,onlyIconSizeSM:sn.fontSizeLG-2,onlyIconSizeLG:sn.fontSizeLG+2,groupBorderColor:sn.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:sn.colorBgTextHover,defaultColor:sn.colorText,defaultBg:sn.colorBgContainer,defaultBorderColor:sn.colorBorder,defaultBorderColorDisabled:sn.colorBorder,contentFontSize:sn.fontSize,contentFontSizeSM:sn.fontSize,contentFontSizeLG:sn.fontSizeLG});var Ro=(0,je.Z)("Button",sn=>{const wr=co(sn);return[Xt(wr),De(wr),ms(wr),Oo(wr),$i(wr),Mr(wr),Ne(wr)]},Vr),Tn=_(82248);function nt(sn,wr){return{[`&-item:not(${wr}-last-item)`]:{marginBottom:-sn.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Ct(sn,wr){return{[`&-item:not(${wr}-first-item):not(${wr}-last-item)`]:{borderRadius:0},[`&-item${wr}-first-item:not(${wr}-last-item)`]:{[`&, &${sn}-sm, &${sn}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${wr}-last-item:not(${wr}-first-item)`]:{[`&, &${sn}-sm, &${sn}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Ht(sn){const wr=`${sn.componentCls}-compact-vertical`;return{[wr]:Object.assign(Object.assign({},nt(sn,wr)),Ct(sn.componentCls,wr))}}var hn=(0,je.b)(["Button","compact"],sn=>{const wr=co(sn);return[(0,Tn.c)(wr),Ht(wr)]},Vr),En=function(sn,wr){var jr={};for(var xi in sn)Object.prototype.hasOwnProperty.call(sn,xi)&&wr.indexOf(xi)<0&&(jr[xi]=sn[xi]);if(sn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pr=0,xi=Object.getOwnPropertySymbols(sn);Pr{var jr,xi;const{loading:Pr=!1,prefixCls:Hi,type:Io="default",danger:On,shape:zr="default",size:qr,styles:Wi,disabled:ir,className:Jn,rootClassName:$t,children:Gt,icon:wn,ghost:Zn=!1,block:_r=!1,htmlType:qn="button",classNames:$n,style:jt={}}=sn,In=En(sn,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:vr,autoInsertSpaceInButton:Ur,direction:Ao,button:Yt}=(0,v.useContext)(R.E_),xn=vr("btn",Hi),[fr,Nr]=Ro(xn),bi=(0,v.useContext)(k.Z),Ei=ir!=null?ir:bi,Yi=(0,v.useContext)(K),di=(0,v.useMemo)(()=>rn(Pr),[Pr]),[Wr,Ni]=(0,v.useState)(di.loading),[kr,Xr]=(0,v.useState)(!1),yo=(0,v.createRef)(),ls=(0,N.sQ)(wr,yo),Sr=v.Children.count(Gt)===1&&!wn&&!(0,be.Te)(Io);(0,v.useEffect)(()=>{let An=null;di.delay>0?An=setTimeout(()=>{An=null,Ni(!0)},di.delay):Ni(di.loading);function ri(){An&&(clearTimeout(An),An=null)}return ri},[di]),(0,v.useEffect)(()=>{if(!ls||!ls.current||Ur===!1)return;const An=ls.current.textContent;Sr&&(0,be.aG)(An)?kr||Xr(!0):kr&&Xr(!1)},[ls]);const hs=An=>{const{onClick:ri}=sn;if(Wr||Ei){An.preventDefault();return}ri==null||ri(An)},ta=Ur!==!1,{compactSize:fi,compactItemClassnames:Po}=(0,p.ri)(xn,Ao),mo={large:"lg",small:"sm",middle:void 0},or=(0,S.Z)(An=>{var ri,ao;return(ao=(ri=qr!=null?qr:fi)!==null&&ri!==void 0?ri:Yi)!==null&&ao!==void 0?ao:An}),Oi=or&&mo[or]||"",Wa=Wr?"loading":wn,Sa=(0,x.Z)(In,["navigate"]),xa=C()(xn,Nr,{[`${xn}-${zr}`]:zr!=="default"&&zr,[`${xn}-${Io}`]:Io,[`${xn}-${Oi}`]:Oi,[`${xn}-icon-only`]:!Gt&&Gt!==0&&!!Wa,[`${xn}-background-ghost`]:Zn&&!(0,be.Te)(Io),[`${xn}-loading`]:Wr,[`${xn}-two-chinese-chars`]:kr&&ta&&!Wr,[`${xn}-block`]:_r,[`${xn}-dangerous`]:!!On,[`${xn}-rtl`]:Ao==="rtl"},Po,Jn,$t,Yt==null?void 0:Yt.className),Ml=Object.assign(Object.assign({},Yt==null?void 0:Yt.style),jt),wo=C()($n==null?void 0:$n.icon,(jr=Yt==null?void 0:Yt.classNames)===null||jr===void 0?void 0:jr.icon),_l=Object.assign(Object.assign({},(Wi==null?void 0:Wi.icon)||{}),((xi=Yt==null?void 0:Yt.styles)===null||xi===void 0?void 0:xi.icon)||{}),El=wn&&!Wr?v.createElement(xe,{prefixCls:xn,className:wo,style:_l},wn):v.createElement(ze,{existIcon:!!wn,prefixCls:xn,loading:!!Wr}),Ai=Gt||Gt===0?(0,be.hU)(Gt,Sr&&ta):null;if(Sa.href!==void 0)return fr(v.createElement("a",Object.assign({},Sa,{className:C()(xa,{[`${xn}-disabled`]:Ei}),style:Ml,onClick:hs,ref:ls}),El,Ai));let to=v.createElement("button",Object.assign({},In,{type:qn,className:xa,style:Ml,onClick:hs,disabled:Ei,ref:ls}),El,Ai,Po&&v.createElement(hn,{key:"compact",prefixCls:xn}));return(0,be.Te)(Io)||(to=v.createElement(V.Z,{component:"Button",disabled:!!Wr},to)),fr(to)},Mt=(0,v.forwardRef)(Jt);Mt.Group=fe,Mt.__ANT_BUTTON=!0;var Qt=Mt,Dn=Qt},42655:function(mt,q,_){"use strict";_.d(q,{Z:function(){return ta}});var v=_(42371),M=_(77617),C=_(12124),x=_.n(C),N=_(26508),V=_(74710),R=_(39718),k=_(52528),S=_(98889),p=_(83692),T=_(61759),F=_(41760),K=M.createContext(null),he=K,fe=_(91002),be=_(80268),Ae="__rc_cascader_search_mark__",xe=function(Po,mo,or){var Oi=or.label;return mo.some(function(Wa){return String(Wa[Oi]).toLowerCase().includes(Po.toLowerCase())})},Se=function(Po,mo,or,Oi){return mo.map(function(Wa){return Wa[Oi.label]}).join(" / ")},it=function(fi,Po,mo,or,Oi,Wa){var Sa=Oi.filter,xa=Sa===void 0?xe:Sa,Ml=Oi.render,wo=Ml===void 0?Se:Ml,_l=Oi.limit,El=_l===void 0?50:_l,Ai=Oi.sort;return M.useMemo(function(){var to=[];if(!fi)return[];function An(ri,ao){var Mi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ri.forEach(function(_s){if(!(!Ai&&El!==!1&&El>0&&to.length>=El)){var Hs=[].concat((0,v.Z)(ao),[_s]),Hr=_s[mo.children],Bi=Mi||_s.disabled;if((!Hr||Hr.length===0||Wa)&&xa(fi,Hs,{label:mo.label})){var fn;to.push((0,V.Z)((0,V.Z)({},_s),{},(fn={disabled:Bi},(0,be.Z)(fn,mo.label,wo(fi,Hs,or,mo)),(0,be.Z)(fn,Ae,Hs),(0,be.Z)(fn,mo.children,void 0),fn)))}Hr&&An(_s[mo.children],Hs,Bi)}})}return An(Po,[]),Ai&&to.sort(function(ri,ao){return Ai(ri[Ae],ao[Ae],fi,mo)}),El!==!1&&El>0?to.slice(0,El):to},[fi,Po,mo,or,wo,Wa,xa,Ai,El])},Xe="__RC_CASCADER_SPLIT__",ft="SHOW_PARENT",Me="SHOW_CHILD";function Ee(fi){return fi.join(Xe)}function ze(fi){return fi.map(Ee)}function Pe(fi){return fi.split(Xe)}function Re(fi){var Po=fi||{},mo=Po.label,or=Po.value,Oi=Po.children,Wa=or||"value";return{label:mo||"label",value:Wa,key:Wa,children:Oi||"children"}}function je(fi,Po){var mo,or;return(mo=fi.isLeaf)!==null&&mo!==void 0?mo:!((or=fi[Po.children])!==null&&or!==void 0&&or.length)}function Ce(fi){var Po=fi.parentElement;if(Po){var mo=fi.offsetTop-Po.offsetTop;mo-Po.scrollTop<0?Po.scrollTo({top:mo}):mo+fi.offsetHeight-Po.scrollTop>Po.offsetHeight&&Po.scrollTo({top:mo+fi.offsetHeight-Po.offsetHeight})}}function rt(fi,Po){return fi.map(function(mo){var or;return(or=mo[Ae])===null||or===void 0?void 0:or.map(function(Oi){return Oi[Po.value]})})}function Ne(fi){return Array.isArray(fi)&&Array.isArray(fi[0])}function Xt(fi){return fi?Ne(fi)?fi:(fi.length===0?[]:[fi]).map(function(Po){return Array.isArray(Po)?Po:[Po]}):[]}function Ft(fi,Po,mo){var or=new Set(fi),Oi=Po();return fi.filter(function(Wa){var Sa=Oi[Wa],xa=Sa?Sa.parent:null,Ml=Sa?Sa.children:null;return Sa&&Sa.node.disabled?!0:mo===Me?!(Ml&&Ml.some(function(wo){return wo.key&&or.has(wo.key)})):!(xa&&!xa.node.disabled&&or.has(xa.key))})}function lt(fi,Po,mo){for(var or=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Oi=Po,Wa=[],Sa=function(){var wo,_l,El,Ai=fi[xa],to=(wo=Oi)===null||wo===void 0?void 0:wo.findIndex(function(ri){var ao=ri[mo.value];return or?String(ao)===String(Ai):ao===Ai}),An=to!==-1?(_l=Oi)===null||_l===void 0?void 0:_l[to]:null;Wa.push({value:(El=An==null?void 0:An[mo.value])!==null&&El!==void 0?El:Ai,index:to,option:An}),Oi=An==null?void 0:An[mo.children]},xa=0;xa1){var Ln=An.slice(0,-1);_s(Ln)}else wo(!1)},Bi=function(){var Ln,ur=((Ln=ao[ri])===null||Ln===void 0?void 0:Ln[mo.children])||[],dt=ur.find(function(Et){return!Et.disabled});if(dt){var xt=[].concat((0,v.Z)(An),[dt[mo.value]]);_s(xt)}};M.useImperativeHandle(fi,function(){return{onKeyDown:function(Ln){var ur=Ln.which;switch(ur){case $i.Z.UP:case $i.Z.DOWN:{var dt=0;ur===$i.Z.UP?dt=-1:ur===$i.Z.DOWN&&(dt=1),dt!==0&&Hs(dt);break}case $i.Z.LEFT:{if(Ml)break;El?Bi():Hr();break}case $i.Z.RIGHT:{if(Ml)break;El?Hr():Bi();break}case $i.Z.BACKSPACE:{Ml||Hr();break}case $i.Z.ENTER:{if(An.length){var xt=ao[ri],Et=(xt==null?void 0:xt[Ae])||[];Et.length?Wa(Et.map(function(et){return et[mo.value]}),Et[Et.length-1]):Wa(An,ao[ri])}break}case $i.Z.ESC:wo(!1),_l&&Ln.stopPropagation()}},onKeyUp:function(){}}})},Vr=M.forwardRef(function(fi,Po){var mo,or,Oi,Wa=fi.prefixCls,Sa=fi.multiple,xa=fi.searchValue,Ml=fi.toggleOpen,wo=fi.notFoundContent,_l=fi.direction,El=fi.open,Ai=M.useRef(),to=_l==="rtl",An=M.useContext(he),ri=An.options,ao=An.values,Mi=An.halfValues,_s=An.fieldNames,Hs=An.changeOnSelect,Hr=An.onSelect,Bi=An.searchOptions,fn=An.dropdownPrefixCls,Ln=An.loadData,ur=An.expandTrigger,dt=fn||Wa,xt=M.useState([]),Et=(0,R.Z)(xt,2),et=Et[0],wt=Et[1],Vt=function(gl){if(!(!Ln||xa)){var ds=lt(gl,ri,_s),Gi=ds.map(function(Fs){var Za=Fs.option;return Za}),Jo=Gi[Gi.length-1];if(Jo&&!je(Jo,_s)){var Ps=Ee(gl);wt(function(Fs){return[].concat((0,v.Z)(Fs),[Ps])}),Ln(Gi)}}};M.useEffect(function(){et.length&&et.forEach(function(Ea){var gl=Pe(Ea),ds=lt(gl,ri,_s,!0).map(function(Jo){var Ps=Jo.option;return Ps}),Gi=ds[ds.length-1];(!Gi||Gi[_s.children]||je(Gi,_s))&&wt(function(Jo){return Jo.filter(function(Ps){return Ps!==Ea})})})},[ri,et,_s]);var yn=M.useMemo(function(){return new Set(ze(ao))},[ao]),yr=M.useMemo(function(){return new Set(ze(Mi))},[Mi]),Yr=Oo(Sa,El),eo=(0,R.Z)(Yr,2),Zo=eo[0],Ii=eo[1],Cs=function(gl){Ii(gl),Vt(gl)},ks=function(gl){var ds=gl.disabled,Gi=je(gl,_s);return!ds&&(Gi||Hs||Sa)},ba=function(gl,ds){var Gi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Hr(gl),!Sa&&(ds||Hs&&(ur==="hover"||Gi))&&Ml(!1)},Zs=M.useMemo(function(){return xa?Bi:ri},[xa,Bi,ri]),No=M.useMemo(function(){for(var Ea=[{options:Zs}],gl=Zs,ds=rt(gl,_s),Gi=function(){var Fs=Zo[Jo],Za=gl.find(function(Tc,Pc){return(ds[Pc]?Ee(ds[Pc]):Tc[_s.value])===Fs}),Nu=Za==null?void 0:Za[_s.children];if(!(Nu!=null&&Nu.length))return 1;gl=Nu,Ea.push({options:Nu})},Jo=0;Jo":Mi,Hs=mo.loadingIcon,Hr=mo.direction,Bi=mo.notFoundContent,fn=Bi===void 0?"Not Found":Bi,Ln=!!Ml,ur=(0,Ct.C8)(wo,{value:_l,postState:Xt}),dt=(0,R.Z)(ur,2),xt=dt[0],Et=dt[1],et=M.useMemo(function(){return Re(El)},[JSON.stringify(El)]),wt=Nn(et,xa),Vt=(0,R.Z)(wt,3),yn=Vt[0],yr=Vt[1],Yr=Vt[2],eo=At(yn,et),Zo=go(Ln,xt,yr,Yr,eo),Ii=(0,R.Z)(Zo,3),Cs=Ii[0],ks=Ii[1],ba=Ii[2],Zs=(0,Ct.zX)(function(Al){if(Et(Al),to){var Js=Xt(Al),Ea=Js.map(function(Gi){return lt(Gi,yn,et).map(function(Jo){return Jo.option})}),gl=Ln?Js:Js[0],ds=Ln?Ea:Ea[0];to(gl,ds)}}),No=Ui(Ln,Zs,Cs,ks,ba,yr,Yr,An),js=(0,Ct.zX)(function(Al){No(Al)}),ga=M.useMemo(function(){return{options:yn,fieldNames:et,values:Cs,halfValues:ks,changeOnSelect:Ai,onSelect:js,checkable:Ml,searchOptions:[],dropdownPrefixCls:null,loadData:ri,expandTrigger:ao,expandIcon:_s,loadingIcon:Hs,dropdownMenuColumnStyle:null}},[yn,et,Cs,ks,Ai,js,Ml,ri,ao,_s,Hs]),da="".concat(Oi,"-panel"),Il=!yn.length;return M.createElement(he.Provider,{value:ga},M.createElement("div",{className:x()(da,(Po={},(0,be.Z)(Po,"".concat(da,"-rtl"),Hr==="rtl"),(0,be.Z)(Po,"".concat(da,"-empty"),Il),Po),Sa),style:Wa},Il?fn:M.createElement(Ro,{prefixCls:Oi,searchValue:null,multiple:Ln,toggleOpen:Ht,open:!0,direction:Hr})))}function En(fi){var Po=fi.onPopupVisibleChange,mo=fi.popupVisible,or=fi.popupClassName,Oi=fi.popupPlacement;warning(!Po,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(mo===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(or===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Oi===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function rn(fi,Po){if(fi){var mo=function or(Oi){for(var Wa=0;Wa":yn,Yr=fi.loadingIcon,eo=fi.children,Zo=fi.dropdownMatchSelectWidth,Ii=Zo===void 0?!1:Zo,Cs=fi.showCheckedStrategy,ks=Cs===void 0?ft:Cs,ba=(0,k.Z)(fi,Mt),Zs=(0,p.ZP)(mo),No=!!El,js=(0,F.Z)(Sa,{value:xa,postState:Xt}),ga=(0,R.Z)(js,2),da=ga[0],Il=ga[1],Al=M.useMemo(function(){return Re(Wa)},[JSON.stringify(Wa)]),Js=Nn(Al,_s),Ea=(0,R.Z)(Js,3),gl=Ea[0],ds=Ea[1],Gi=Ea[2],Jo=(0,F.Z)("",{value:An,postState:function(yu){return yu||""}}),Ps=(0,R.Z)(Jo,2),Fs=Ps[0],Za=Ps[1],Nu=function(yu,Cl){Za(yu),Cl.source!=="blur"&&ri&&ri(yu)},Tc=zn(ao),Pc=(0,R.Z)(Tc,2),tc=Pc[0],cc=Pc[1],Uu=it(Fs,gl,Al,Hs||Oi,cc,Ml),Pn=At(gl,Al),er=go(No,da,ds,Gi,Pn),Lr=(0,R.Z)(er,3),Gr=Lr[0],ai=Lr[1],Qi=Lr[2],Pi=M.useMemo(function(){var Xl=ze(Gr),yu=Ft(Xl,ds,ks);return[].concat((0,v.Z)(Qi),(0,v.Z)(Gi(yu)))},[Gr,ds,Gi,Qi,ks]),fs=Bt(Pi,gl,Al,No,_l),Ks=(0,T.Z)(function(Xl){if(Il(Xl),wo){var yu=Xt(Xl),Cl=yu.map(function(Ho){return lt(Ho,gl,Al).map(function(Ls){return Ls.option})}),nu=No?yu:yu[0],Xn=No?Cl:Cl[0];wo(nu,Xn)}}),Ma=Ui(No,Ks,Gr,ai,Qi,ds,Gi,ks),qa=(0,T.Z)(function(Xl){(!No||to)&&Za(""),Ma(Xl)}),rl=function(yu,Cl){if(Cl.type==="clear"){Ks([]);return}var nu=Cl.values[0],Xn=nu.valueCells;qa(Xn)},Dl=fn!==void 0?fn:Bi,Oa=ur||Ln,ju=et||Et,Ia=function(yu){wt==null||wt(yu),Vt==null||Vt(yu)},Ha=M.useMemo(function(){return{options:gl,fieldNames:Al,values:Gr,halfValues:ai,changeOnSelect:Ml,onSelect:qa,checkable:El,searchOptions:Uu,dropdownPrefixCls:Hs,loadData:Hr,expandTrigger:Mi,expandIcon:yr,loadingIcon:Yr,dropdownMenuColumnStyle:dt}},[gl,Al,Gr,ai,Ml,qa,El,Uu,Hs,Hr,Mi,yr,Yr,dt]),tl=!(Fs?Uu:gl).length,cu=Fs&&cc.matchInputWidth||tl?{}:{minWidth:"auto"};return M.createElement(he.Provider,{value:Ha},M.createElement(S.Ac,(0,N.Z)({},ba,{ref:Po,id:Zs,prefixCls:Oi,autoClearSearchValue:to,dropdownMatchSelectWidth:Ii,dropdownStyle:(0,V.Z)((0,V.Z)({},cu),xt),displayValues:fs,onDisplayValuesChange:rl,mode:No?"multiple":void 0,searchValue:Fs,onSearch:Nu,showSearch:tc,OptionList:nt,emptyOptions:tl,open:Dl,dropdownClassName:Oa,placement:ju,onDropdownVisibleChange:Ia,getRawInputElement:function(){return eo}})))});Qt.SHOW_PARENT=ft,Qt.SHOW_CHILD=Me,Qt.Panel=hn;var Dn=Qt,sn=Dn,wr=_(39029),jr=_(8418),xi=_(33966),Pr=_(3335),Hi=_(41203),Io=_(56524),On=_(57132),zr=_(29212),qr=_(74334),Wi=_(32994),ir=_(12284),Jn=_(20562),$t=_(85184),Gt=_(43906);function wn(fi,Po){const{getPrefixCls:mo,direction:or,renderEmpty:Oi}=M.useContext(Hi.E_),Wa=Po||or,Sa=mo("select",fi),xa=mo("cascader",fi);return[Sa,xa,Wa,Oi]}function Zn(fi,Po){return M.useMemo(()=>Po?M.createElement("span",{className:`${fi}-checkbox-inner`}):!1,[Po])}var _r=_(52063),qn=_(38521),$n=_(22311);function jt(fi,Po,mo){let or=mo;mo||(or=Po?M.createElement(_r.Z,null):M.createElement($n.Z,null));const Oi=M.createElement("span",{className:`${fi}-menu-item-loading-icon`},M.createElement(qn.Z,{spin:!0}));return[or,Oi]}var In=_(82248),vr=_(93154),Ur=_(75692),Ao=_(21348),xn=fi=>{const{prefixCls:Po,componentCls:mo}=fi,or=`${mo}-menu-item`,Oi=` + &${or}-expand ${or}-expand-icon, + ${or}-loading-icon +`;return[(0,Ur.C2)(`${Po}-checkbox`,fi),{[mo]:{"&-checkbox":{top:0,marginInlineEnd:fi.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${mo}-menu-empty`]:{[`${mo}-menu`]:{width:"100%",height:"auto",[or]:{color:fi.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:fi.controlItemWidth,height:fi.dropdownHeight,margin:0,padding:fi.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${fi.lineWidth}px ${fi.lineType} ${fi.colorSplit}`},"&-item":Object.assign(Object.assign({},Ao.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:fi.optionPadding,lineHeight:fi.lineHeight,cursor:"pointer",transition:`all ${fi.motionDurationMid}`,borderRadius:fi.borderRadiusSM,"&:hover":{background:fi.controlItemBgHover},"&-disabled":{color:fi.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Oi]:{color:fi.colorTextDisabled}},[`&-active:not(${or}-disabled)`]:{["&, &:hover"]:{fontWeight:fi.optionSelectedFontWeight,backgroundColor:fi.optionSelectedBg}},"&-content":{flex:"auto"},[Oi]:{marginInlineStart:fi.paddingXXS,color:fi.colorTextDescription,fontSize:fi.fontSizeIcon},"&-keyword":{color:fi.colorHighlight}})}}}]};const fr=fi=>{const{componentCls:Po,antCls:mo}=fi;return[{[Po]:{width:fi.controlWidth}},{[`${Po}-dropdown`]:[{[`&${mo}-select-dropdown`]:{padding:0}},xn(fi)]},{[`${Po}-dropdown-rtl`]:{direction:"rtl"}},(0,In.c)(fi)]},Nr=fi=>{const Po=Math.round((fi.controlHeight-fi.fontSize*fi.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:fi.controlItemBgActive,optionSelectedFontWeight:fi.fontWeightStrong,optionPadding:`${Po}px ${fi.paddingSM}px`,menuPadding:fi.paddingXXS}};var bi=(0,vr.Z)("Cascader",fi=>[fr(fi)],Nr);const Ei=fi=>{const{componentCls:Po}=fi;return{[`${Po}-panel`]:[xn(fi),{display:"inline-flex",border:`${fi.lineWidth}px ${fi.lineType} ${fi.colorSplit}`,borderRadius:fi.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${Po}-menus`]:{alignItems:"stretch"},[`${Po}-menu`]:{height:"auto"},"&-empty":{padding:fi.paddingXXS}}]}};var Yi=(0,vr.Z)(["Cascader","Panel"],fi=>Ei(fi),Nr);function di(fi){const{prefixCls:Po,className:mo,multiple:or,rootClassName:Oi,notFoundContent:Wa,direction:Sa,expandIcon:xa}=fi,[Ml,wo,_l,El]=wn(Po,Sa),[,Ai]=bi(wo);Yi(wo);const to=_l==="rtl",[An,ri]=jt(Ml,to,xa),ao=Wa||(El==null?void 0:El("Cascader"))||M.createElement(Io.Z,{componentName:"Cascader"}),Mi=Zn(wo,or);return M.createElement(hn,Object.assign({},fi,{checkable:Mi,prefixCls:wo,className:x()(mo,Ai,Oi),notFoundContent:ao,direction:_l,expandIcon:An,loadingIcon:ri}))}var Wr=_(8799),Ni=function(fi,Po){var mo={};for(var or in fi)Object.prototype.hasOwnProperty.call(fi,or)&&Po.indexOf(or)<0&&(mo[or]=fi[or]);if(fi!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oi=0,or=Object.getOwnPropertySymbols(fi);OiMl===0?[xa]:[].concat((0,v.Z)(Sa),[Po,xa]),[]),Oi=[];let Wa=0;return or.forEach((Sa,xa)=>{const Ml=Wa+Sa.length;let wo=fi.slice(Wa,Ml);Wa=Ml,xa%2===1&&(wo=M.createElement("span",{className:`${mo}-menu-item-keyword`,key:`separator-${xa}`},wo)),Oi.push(wo)}),Oi}const ls=(fi,Po,mo,or)=>{const Oi=[],Wa=fi.toLowerCase();return Po.forEach((Sa,xa)=>{xa!==0&&Oi.push(" / ");let Ml=Sa[or.label];const wo=typeof Ml;(wo==="string"||wo==="number")&&(Ml=yo(String(Ml),Wa,mo)),Oi.push(Ml)}),Oi},Sr=M.forwardRef((fi,Po)=>{var mo;const{prefixCls:or,size:Oi,disabled:Wa,className:Sa,rootClassName:xa,multiple:Ml,bordered:wo=!0,transitionName:_l,choiceTransitionName:El="",popupClassName:Ai,dropdownClassName:to,expandIcon:An,placement:ri,showSearch:ao,allowClear:Mi=!0,notFoundContent:_s,direction:Hs,getPopupContainer:Hr,status:Bi,showArrow:fn,builtinPlacements:Ln,style:ur}=fi,dt=Ni(fi,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),xt=(0,wr.Z)(dt,["suffixIcon"]),{getPopupContainer:Et,getPrefixCls:et,popupOverflow:wt,cascader:Vt}=M.useContext(Hi.E_),{status:yn,hasFeedback:yr,isFormItemInput:Yr,feedbackIcon:eo}=M.useContext(qr.aM),Zo=(0,Pr.F)(yn,Bi),[Ii,Cs,ks,ba]=wn(or,Hs),Zs=ks==="rtl",No=et(),[js,ga]=(0,Wi.Z)(Ii),[da]=bi(Cs),{compactSize:Il,compactItemClassnames:Al}=(0,Gt.ri)(Ii,Hs),Js=_s||(ba==null?void 0:ba("Cascader"))||M.createElement(Io.Z,{componentName:"Cascader"}),Ea=x()(Ai||to,`${Cs}-dropdown`,{[`${Cs}-dropdown-rtl`]:ks==="rtl"},xa,ga),gl=M.useMemo(()=>{if(!ao)return ao;let Gr={render:ls};return typeof ao=="object"&&(Gr=Object.assign(Object.assign({},Gr),ao)),Gr},[ao]),ds=(0,zr.Z)(Gr=>{var ai;return(ai=Oi!=null?Oi:Il)!==null&&ai!==void 0?ai:Gr}),Gi=M.useContext(On.Z),Jo=Wa!=null?Wa:Gi,[Ps,Fs]=jt(Ii,Zs,An),Za=Zn(Cs,Ml),Nu=(0,$t.Z)(fi.suffixIcon,fn),{suffixIcon:Tc,removeIcon:Pc,clearIcon:tc}=(0,Jn.Z)(Object.assign(Object.assign({},fi),{hasFeedback:yr,feedbackIcon:eo,showSuffixIcon:Nu,multiple:Ml,prefixCls:Ii,componentName:"Cascader"})),cc=M.useMemo(()=>ri!==void 0?ri:Zs?"bottomRight":"bottomLeft",[ri,Zs]),Uu=(0,ir.Z)(Ln,wt),Pn=Mi===!0?{clearIcon:tc}:Mi,[er]=(0,Wr.Cn)("SelectLike",(mo=xt.dropdownStyle)===null||mo===void 0?void 0:mo.zIndex),Lr=M.createElement(sn,Object.assign({prefixCls:Ii,className:x()(!or&&Cs,{[`${Ii}-lg`]:ds==="large",[`${Ii}-sm`]:ds==="small",[`${Ii}-rtl`]:Zs,[`${Ii}-borderless`]:!wo,[`${Ii}-in-form-item`]:Yr},(0,Pr.Z)(Ii,Zo,yr),Al,Vt==null?void 0:Vt.className,Sa,xa,ga),disabled:Jo,style:Object.assign(Object.assign({},Vt==null?void 0:Vt.style),ur)},xt,{builtinPlacements:Uu,direction:ks,placement:cc,notFoundContent:Js,allowClear:Pn,showSearch:gl,expandIcon:Ps,suffixIcon:Tc,removeIcon:Pc,loadingIcon:Fs,checkable:Za,dropdownClassName:Ea,dropdownPrefixCls:or||Cs,dropdownStyle:Object.assign(Object.assign({},xt.dropdownStyle),{zIndex:er}),choiceTransitionName:(0,jr.m)(No,"",El),transitionName:(0,jr.m)(No,"slide-up",_l),getPopupContainer:Hr||Et,ref:Po}));return da(js(Lr))}),hs=(0,xi.Z)(Sr);Sr.SHOW_PARENT=Xr,Sr.SHOW_CHILD=kr,Sr.Panel=di,Sr._InternalPanelDoNotUseOrYouWillBeFired=hs;var ta=Sr},71298:function(mt,q,_){"use strict";_.d(q,{Z:function(){return Ee}});var v=_(77617),M=_(12124),C=_.n(M),x=_(5630),N=_(90836),V=_(50180),R=_(41203),k=_(57132),S=_(74334),T=v.createContext(null),F=_(75692),K=function(ze,Pe){var Re={};for(var je in ze)Object.prototype.hasOwnProperty.call(ze,je)&&Pe.indexOf(je)<0&&(Re[je]=ze[je]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,je=Object.getOwnPropertySymbols(ze);Ce{var Re;const{prefixCls:je,className:Ce,rootClassName:rt,children:Ne,indeterminate:Xt=!1,style:Ft,onMouseEnter:lt,onMouseLeave:Bt,skipGroup:At=!1,disabled:an}=ze,Tt=K(ze,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Nn,direction:mn,checkbox:zn}=v.useContext(R.E_),Kr=v.useContext(T),{isFormItemInput:Ui}=v.useContext(S.aM),go=v.useContext(k.Z),gi=(Re=(Kr==null?void 0:Kr.disabled)||an)!==null&&Re!==void 0?Re:go,Mr=v.useRef(Tt.value);v.useEffect(()=>{Kr==null||Kr.registerValue(Tt.value)},[]),v.useEffect(()=>{if(!At)return Tt.value!==Mr.current&&(Kr==null||Kr.cancelValue(Mr.current),Kr==null||Kr.registerValue(Tt.value),Mr.current=Tt.value),()=>Kr==null?void 0:Kr.cancelValue(Tt.value)},[Tt.value]);const To=Nn("checkbox",je),[ms,De]=(0,F.ZP)(To),Oo=Object.assign({},Tt);Kr&&!At&&(Oo.onChange=function(){Tt.onChange&&Tt.onChange.apply(Tt,arguments),Kr.toggleOption&&Kr.toggleOption({label:Ne,value:Tt.value})},Oo.name=Kr.name,Oo.checked=Kr.value.includes(Tt.value));const $i=C()(`${To}-wrapper`,{[`${To}-rtl`]:mn==="rtl",[`${To}-wrapper-checked`]:Oo.checked,[`${To}-wrapper-disabled`]:gi,[`${To}-wrapper-in-form-item`]:Ui},zn==null?void 0:zn.className,Ce,rt,De),co=C()({[`${To}-indeterminate`]:Xt},V.A,De),Vr=Xt?"mixed":void 0;return ms(v.createElement(N.Z,{component:"Checkbox",disabled:gi},v.createElement("label",{className:$i,style:Object.assign(Object.assign({},zn==null?void 0:zn.style),Ft),onMouseEnter:lt,onMouseLeave:Bt},v.createElement(x.Z,Object.assign({"aria-checked":Vr},Oo,{prefixCls:To,className:co,disabled:gi,ref:Pe})),Ne!==void 0&&v.createElement("span",null,Ne))))};var be=v.forwardRef(he),Ae=_(42371),xe=_(39029),Se=function(ze,Pe){var Re={};for(var je in ze)Object.prototype.hasOwnProperty.call(ze,je)&&Pe.indexOf(je)<0&&(Re[je]=ze[je]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,je=Object.getOwnPropertySymbols(ze);Ce{const{defaultValue:Re,children:je,options:Ce=[],prefixCls:rt,className:Ne,rootClassName:Xt,style:Ft,onChange:lt}=ze,Bt=Se(ze,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:At,direction:an}=v.useContext(R.E_),[Tt,Nn]=v.useState(Bt.value||Re||[]),[mn,zn]=v.useState([]);v.useEffect(()=>{"value"in Bt&&Nn(Bt.value||[])},[Bt.value]);const Kr=v.useMemo(()=>Ce.map(Ro=>typeof Ro=="string"||typeof Ro=="number"?{label:Ro,value:Ro}:Ro),[Ce]),Ui=Ro=>{zn(Tn=>Tn.filter(nt=>nt!==Ro))},go=Ro=>{zn(Tn=>[].concat((0,Ae.Z)(Tn),[Ro]))},gi=Ro=>{const Tn=Tt.indexOf(Ro.value),nt=(0,Ae.Z)(Tt);Tn===-1?nt.push(Ro.value):nt.splice(Tn,1),"value"in Bt||Nn(nt),lt==null||lt(nt.filter(Ct=>mn.includes(Ct)).sort((Ct,Ht)=>{const hn=Kr.findIndex(rn=>rn.value===Ct),En=Kr.findIndex(rn=>rn.value===Ht);return hn-En}))},Mr=At("checkbox",rt),To=`${Mr}-group`,[ms,De]=(0,F.ZP)(Mr),Oo=(0,xe.Z)(Bt,["value","disabled"]),$i=Ce.length?Kr.map(Ro=>v.createElement(be,{prefixCls:Mr,key:Ro.value.toString(),disabled:"disabled"in Ro?Ro.disabled:Bt.disabled,value:Ro.value,checked:Tt.includes(Ro.value),onChange:Ro.onChange,className:`${To}-item`,style:Ro.style,title:Ro.title,id:Ro.id},Ro.label)):je,co={toggleOption:gi,value:Tt,disabled:Bt.disabled,name:Bt.name,registerValue:go,cancelValue:Ui},Vr=C()(To,{[`${To}-rtl`]:an==="rtl"},Ne,Xt,De);return ms(v.createElement("div",Object.assign({className:Vr,style:Ft},Oo,{ref:Pe}),v.createElement(T.Provider,{value:co},$i)))},Xe=v.forwardRef(it);var ft=v.memo(Xe);const Me=be;Me.Group=ft,Me.__ANT_CHECKBOX=!0;var Ee=Me},75692:function(mt,q,_){"use strict";_.d(q,{C2:function(){return N}});var v=_(21348),M=_(43040),C=_(93154);const x=V=>{const{checkboxCls:R}=V,k=`${R}-wrapper`;return[{[`${R}-group`]:Object.assign(Object.assign({},(0,v.Wf)(V)),{display:"inline-flex",flexWrap:"wrap",columnGap:V.marginXS,[`> ${V.antCls}-row`]:{flex:1}}),[k]:Object.assign(Object.assign({},(0,v.Wf)(V)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${k}`]:{marginInlineStart:0},[`&${k}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[R]:Object.assign(Object.assign({},(0,v.Wf)(V)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:V.borderRadiusSM,alignSelf:"center",[`${R}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${R}-inner`]:Object.assign({},(0,v.oN)(V))},[`${R}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:V.checkboxSize,height:V.checkboxSize,direction:"ltr",backgroundColor:V.colorBgContainer,border:`${V.lineWidth}px ${V.lineType} ${V.colorBorder}`,borderRadius:V.borderRadiusSM,borderCollapse:"separate",transition:`all ${V.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:V.checkboxSize/14*5,height:V.checkboxSize/14*8,border:`${V.lineWidthBold}px solid ${V.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${V.motionDurationFast} ${V.motionEaseInBack}, opacity ${V.motionDurationFast}`}},"& + span":{paddingInlineStart:V.paddingXS,paddingInlineEnd:V.paddingXS}})},{[` + ${k}:not(${k}-disabled), + ${R}:not(${R}-disabled) + `]:{[`&:hover ${R}-inner`]:{borderColor:V.colorPrimary}},[`${k}:not(${k}-disabled)`]:{[`&:hover ${R}-checked:not(${R}-disabled) ${R}-inner`]:{backgroundColor:V.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${R}-checked:not(${R}-disabled):after`]:{borderColor:V.colorPrimaryHover}}},{[`${R}-checked`]:{[`${R}-inner`]:{backgroundColor:V.colorPrimary,borderColor:V.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${V.motionDurationMid} ${V.motionEaseOutBack} ${V.motionDurationFast}`}}},[` + ${k}-checked:not(${k}-disabled), + ${R}-checked:not(${R}-disabled) + `]:{[`&:hover ${R}-inner`]:{backgroundColor:V.colorPrimaryHover,borderColor:"transparent"}}},{[R]:{"&-indeterminate":{[`${R}-inner`]:{backgroundColor:V.colorBgContainer,borderColor:V.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:V.fontSizeLG/2,height:V.fontSizeLG/2,backgroundColor:V.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${k}-disabled`]:{cursor:"not-allowed"},[`${R}-disabled`]:{[`&, ${R}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${R}-inner`]:{background:V.colorBgContainerDisabled,borderColor:V.colorBorder,"&:after":{borderColor:V.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:V.colorTextDisabled},[`&${R}-indeterminate ${R}-inner::after`]:{background:V.colorTextDisabled}}}]};function N(V,R){const k=(0,M.TS)(R,{checkboxCls:`.${V}`,checkboxSize:R.controlInteractiveSize});return[x(k)]}q.ZP=(0,C.Z)("Checkbox",(V,R)=>{let{prefixCls:k}=R;return[N(k,V)]})},6854:function(mt,q,_){"use strict";_.d(q,{Z:function(){return Uu}});var v=_(77617),M=_(12124),C=_.n(M),x=_(41760),N=_(33966),V=_(3335),R=_(41203),k=_(29212),S=_(74334),p=_(11018),T=_(45844),F=_(74364),K=_(26508),he=_(80268),fe=_(39718),be=_(74710),Ae=_(74809),xe=_(57338),Se=_(29161),it=_(12826),Xe=_(52528),ft=_(91002),Me=_(64993),Ee=["b"],ze=["v"],Pe=function(er){return Math.round(Number(er||0))},Re=function(er){if(er&&(0,ft.Z)(er)==="object"&&"h"in er&&"b"in er){var Lr=er,Gr=Lr.b,ai=(0,Xe.Z)(Lr,Ee);return(0,be.Z)((0,be.Z)({},ai),{},{v:Gr})}return typeof er=="string"&&/hsb/.test(er)?er.replace(/hsb/,"hsv"):er},je=function(Pn){(0,Se.Z)(Lr,Pn);var er=(0,it.Z)(Lr);function Lr(Gr){return(0,Ae.Z)(this,Lr),er.call(this,Re(Gr))}return(0,xe.Z)(Lr,[{key:"toHsbString",value:function(){var ai=this.toHsb(),Qi=Pe(ai.s*100),Pi=Pe(ai.b*100),fs=Pe(ai.h),Ks=ai.a,Ma="hsb(".concat(fs,", ").concat(Qi,"%, ").concat(Pi,"%)"),qa="hsba(".concat(fs,", ").concat(Qi,"%, ").concat(Pi,"%, ").concat(Ks.toFixed(Ks===0?0:2),")");return Ks===1?Ma:qa}},{key:"toHsb",value:function(){var ai=this.toHsv();(0,ft.Z)(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(ai=this.originalInput);var Qi=ai,Pi=Qi.v,fs=(0,Xe.Z)(Qi,ze);return(0,be.Z)((0,be.Z)({},fs),{},{b:ai.v})}}]),Lr}(Me.C),Ce="rc-color-picker",rt=function(er){return er instanceof je?er:new je(er)},Ne=rt("#1677ff"),Xt=function(er){var Lr=er.offset,Gr=er.targetRef,ai=er.containerRef,Qi=er.color,Pi=er.type,fs=ai.current.getBoundingClientRect(),Ks=fs.width,Ma=fs.height,qa=Gr.current.getBoundingClientRect(),rl=qa.width,Dl=qa.height,Oa=rl/2,ju=Dl/2,Ia=(Lr.x+Oa)/Ks,Ha=1-(Lr.y+ju)/Ma,tl=Qi.toHsb(),cu=Ia,Xl=(Lr.x+Oa)/Ks*360;if(Pi)switch(Pi){case"hue":return rt((0,be.Z)((0,be.Z)({},tl),{},{h:Xl<=0?0:Xl}));case"alpha":return rt((0,be.Z)((0,be.Z)({},tl),{},{a:cu<=0?0:cu}))}return rt({h:tl.h,s:Ia<=0?0:Ia,b:Ha>=1?1:Ha,a:tl.a})},Ft=function(er,Lr,Gr,ai){var Qi=er.current.getBoundingClientRect(),Pi=Qi.width,fs=Qi.height,Ks=Lr.current.getBoundingClientRect(),Ma=Ks.width,qa=Ks.height,rl=Ma/2,Dl=qa/2,Oa=Gr.toHsb();if(!(Ma===0&&qa===0||Ma!==qa)){if(ai)switch(ai){case"hue":return{x:Oa.h/360*Pi-rl,y:-Dl/3};case"alpha":return{x:Oa.a/1*Pi-rl,y:-Dl/3}}return{x:Oa.s*Pi-rl,y:(1-Oa.b)*fs-Dl}}},lt=function(er){var Lr=er.color,Gr=er.prefixCls,ai=er.className,Qi=er.style,Pi=er.onClick,fs="".concat(Gr,"-color-block");return v.createElement("div",{className:C()(fs,ai),style:Qi,onClick:Pi},v.createElement("div",{className:"".concat(fs,"-inner"),style:{background:Lr}}))},Bt=lt;function At(Pn){var er="touches"in Pn?Pn.touches[0]:Pn,Lr=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,Gr=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:er.pageX-Lr,pageY:er.pageY-Gr}}function an(Pn){var er=Pn.offset,Lr=Pn.targetRef,Gr=Pn.containerRef,ai=Pn.direction,Qi=Pn.onDragChange,Pi=Pn.onDragChangeComplete,fs=Pn.calculate,Ks=Pn.color,Ma=Pn.disabledDrag,qa=(0,v.useState)(er||{x:0,y:0}),rl=(0,fe.Z)(qa,2),Dl=rl[0],Oa=rl[1],ju=(0,v.useRef)(null),Ia=(0,v.useRef)(null),Ha=(0,v.useRef)({flag:!1});(0,v.useEffect)(function(){if(Ha.current.flag===!1){var Cl=fs==null?void 0:fs(Gr);Cl&&Oa(Cl)}},[Ks,Gr]),(0,v.useEffect)(function(){return function(){document.removeEventListener("mousemove",ju.current),document.removeEventListener("mouseup",Ia.current),document.removeEventListener("touchmove",ju.current),document.removeEventListener("touchend",Ia.current),ju.current=null,Ia.current=null}},[]);var tl=function(nu){var Xn=At(nu),Ho=Xn.pageX,Ls=Xn.pageY,Xs=Gr.current.getBoundingClientRect(),il=Xs.x,iu=Xs.y,hu=Xs.width,ic=Xs.height,Gu=Lr.current.getBoundingClientRect(),pc=Gu.width,qc=Gu.height,Lc=pc/2,jh=qc/2,Md=Math.max(0,Math.min(Ho-il,hu))-Lc,ad=Math.max(0,Math.min(Ls-iu,ic))-jh,kh={x:Md,y:ai==="x"?Dl.y:ad};if(pc===0&&qc===0||pc!==qc)return!1;Oa(kh),Qi==null||Qi(kh)},cu=function(nu){nu.preventDefault(),tl(nu)},Xl=function(nu){nu.preventDefault(),Ha.current.flag=!1,document.removeEventListener("mousemove",ju.current),document.removeEventListener("mouseup",Ia.current),document.removeEventListener("touchmove",ju.current),document.removeEventListener("touchend",Ia.current),ju.current=null,Ia.current=null,Pi==null||Pi()},yu=function(nu){document.removeEventListener("mousemove",ju.current),document.removeEventListener("mouseup",Ia.current),!Ma&&(tl(nu),Ha.current.flag=!0,document.addEventListener("mousemove",cu),document.addEventListener("mouseup",Xl),document.addEventListener("touchmove",cu),document.addEventListener("touchend",Xl),ju.current=cu,Ia.current=Xl)};return[Dl,yu]}var Tt=an,Nn=function(er){var Lr=er.size,Gr=Lr===void 0?"default":Lr,ai=er.color,Qi=er.prefixCls;return v.createElement("div",{className:C()("".concat(Qi,"-handler"),(0,he.Z)({},"".concat(Qi,"-handler-sm"),Gr==="small")),style:{backgroundColor:ai}})},mn=Nn,zn=function(er){var Lr=er.children,Gr=er.style,ai=er.prefixCls;return v.createElement("div",{className:"".concat(ai,"-palette"),style:(0,be.Z)({position:"relative"},Gr)},Lr)},Kr=zn,Ui=(0,v.forwardRef)(function(Pn,er){var Lr=Pn.children,Gr=Pn.offset;return v.createElement("div",{ref:er,style:{position:"absolute",left:Gr.x,top:Gr.y,zIndex:1}},Lr)}),go=Ui,gi=function(er){var Lr=er.color,Gr=er.onChange,ai=er.prefixCls,Qi=er.onChangeComplete,Pi=er.disabled,fs=(0,v.useRef)(),Ks=(0,v.useRef)(),Ma=(0,v.useRef)(Lr),qa=Tt({color:Lr,containerRef:fs,targetRef:Ks,calculate:function(Ia){return Ft(Ia,Ks,Lr)},onDragChange:function(Ia){var Ha=Xt({offset:Ia,targetRef:Ks,containerRef:fs,color:Lr});Ma.current=Ha,Gr(Ha)},onDragChangeComplete:function(){return Qi==null?void 0:Qi(Ma.current)},disabledDrag:Pi}),rl=(0,fe.Z)(qa,2),Dl=rl[0],Oa=rl[1];return v.createElement("div",{ref:fs,className:"".concat(ai,"-select"),onMouseDown:Oa,onTouchStart:Oa},v.createElement(Kr,{prefixCls:ai},v.createElement(go,{offset:Dl,ref:Ks},v.createElement(mn,{color:Lr.toRgbString(),prefixCls:ai})),v.createElement("div",{className:"".concat(ai,"-saturation"),style:{backgroundColor:"hsl(".concat(Lr.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Mr=gi,To=function(er){var Lr=er.colors,Gr=er.children,ai=er.direction,Qi=ai===void 0?"to right":ai,Pi=er.type,fs=er.prefixCls,Ks=(0,v.useMemo)(function(){return Lr.map(function(Ma,qa){var rl=rt(Ma);return Pi==="alpha"&&qa===Lr.length-1&&rl.setAlpha(1),rl.toRgbString()}).join(",")},[Lr,Pi]);return v.createElement("div",{className:"".concat(fs,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(Qi,", ").concat(Ks,")")}},Gr)},ms=To,De=function(er){var Lr=er.gradientColors,Gr=er.direction,ai=er.type,Qi=ai===void 0?"hue":ai,Pi=er.color,fs=er.value,Ks=er.onChange,Ma=er.onChangeComplete,qa=er.disabled,rl=er.prefixCls,Dl=(0,v.useRef)(),Oa=(0,v.useRef)(),ju=(0,v.useRef)(Pi),Ia=Tt({color:Pi,targetRef:Oa,containerRef:Dl,calculate:function(yu){return Ft(yu,Oa,Pi,Qi)},onDragChange:function(yu){var Cl=Xt({offset:yu,targetRef:Oa,containerRef:Dl,color:Pi,type:Qi});ju.current=Cl,Ks(Cl)},onDragChangeComplete:function(){Ma==null||Ma(ju.current,Qi)},direction:"x",disabledDrag:qa}),Ha=(0,fe.Z)(Ia,2),tl=Ha[0],cu=Ha[1];return v.createElement("div",{ref:Dl,className:C()("".concat(rl,"-slider"),"".concat(rl,"-slider-").concat(Qi)),onMouseDown:cu,onTouchStart:cu},v.createElement(Kr,{prefixCls:rl},v.createElement(go,{offset:tl,ref:Oa},v.createElement(mn,{size:"small",color:fs,prefixCls:rl})),v.createElement(ms,{colors:Lr,direction:Gr,type:Qi,prefixCls:rl})))},Oo=De;function $i(Pn){return Pn!==void 0}var co=function(er,Lr){var Gr=Lr.defaultValue,ai=Lr.value,Qi=(0,v.useState)(function(){var Ma;return $i(ai)?Ma=ai:$i(Gr)?Ma=Gr:Ma=er,rt(Ma)}),Pi=(0,fe.Z)(Qi,2),fs=Pi[0],Ks=Pi[1];return(0,v.useEffect)(function(){ai&&Ks(rt(ai))},[ai]),[fs,Ks]},Vr=co,Ro=["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%"],Tn=(0,v.forwardRef)(function(Pn,er){var Lr=Pn.value,Gr=Pn.defaultValue,ai=Pn.prefixCls,Qi=ai===void 0?Ce:ai,Pi=Pn.onChange,fs=Pn.onChangeComplete,Ks=Pn.className,Ma=Pn.style,qa=Pn.panelRender,rl=Pn.disabledAlpha,Dl=rl===void 0?!1:rl,Oa=Pn.disabled,ju=Oa===void 0?!1:Oa,Ia=Vr(Ne,{value:Lr,defaultValue:Gr}),Ha=(0,fe.Z)(Ia,2),tl=Ha[0],cu=Ha[1],Xl=(0,v.useMemo)(function(){var Ho=rt(tl.toRgbString());return Ho.setAlpha(1),Ho.toRgbString()},[tl]),yu=C()("".concat(Qi,"-panel"),Ks,(0,he.Z)({},"".concat(Qi,"-panel-disabled"),ju)),Cl={prefixCls:Qi,onChangeComplete:fs,disabled:ju},nu=function(Ls,Xs){Lr||cu(Ls),Pi==null||Pi(Ls,Xs)},Xn=v.createElement(v.Fragment,null,v.createElement(Mr,(0,K.Z)({color:tl,onChange:nu},Cl)),v.createElement("div",{className:"".concat(Qi,"-slider-container")},v.createElement("div",{className:C()("".concat(Qi,"-slider-group"),(0,he.Z)({},"".concat(Qi,"-slider-group-disabled-alpha"),Dl))},v.createElement(Oo,(0,K.Z)({gradientColors:Ro,color:tl,value:"hsl(".concat(tl.toHsb().h,",100%, 50%)"),onChange:function(Ls){return nu(Ls,"hue")}},Cl)),!Dl&&v.createElement(Oo,(0,K.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",Xl],color:tl,value:tl.toRgbString(),onChange:function(Ls){return nu(Ls,"alpha")}},Cl))),v.createElement(Bt,{color:tl.toRgbString(),prefixCls:Qi})));return v.createElement("div",{className:yu,style:Ma,ref:er},typeof qa=="function"?qa(Xn):Xn)}),nt=Tn;const Ct=v.createContext({}),Ht=v.createContext({}),{Provider:hn}=Ct,{Provider:En}=Ht,rn=(Pn,er)=>(Pn==null?void 0:Pn.replace(/[^\w/]/gi,"").slice(0,er?8:6))||"",Jt=(Pn,er)=>Pn?rn(Pn,er):"";let Mt=function(){function Pn(er){(0,Ae.Z)(this,Pn),this.metaColor=new je(er),er||this.metaColor.setAlpha(0)}return(0,xe.Z)(Pn,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Jt(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()}}]),Pn}();const Qt="ant-color-picker",Dn=Pn=>Pn instanceof Mt?Pn:new Mt(Pn),sn=Pn=>Math.round(Number(Pn||0)),wr=Pn=>sn(Pn.toHsb().a*100),jr=(Pn,er)=>{const Lr=Pn.toHsb();return Lr.a=er||1,Dn(Lr)};var Pr=Pn=>{let{prefixCls:er,value:Lr,colorCleared:Gr,onChange:ai}=Pn;const Qi=()=>{if(Lr&&!Gr){const Pi=Lr.toHsb();Pi.a=0;const fs=Dn(Pi);ai==null||ai(fs)}};return v.createElement("div",{className:`${er}-clear`,onClick:Qi})},Hi=_(71163),Io;(function(Pn){Pn.hex="hex",Pn.rgb="rgb",Pn.hsb="hsb"})(Io||(Io={}));var On=_(4366),qr=Pn=>{let{prefixCls:er,min:Lr=0,max:Gr=100,value:ai,onChange:Qi,className:Pi,formatter:fs}=Pn;const Ks=`${er}-steppers`,[Ma,qa]=(0,v.useState)(ai);return(0,v.useEffect)(()=>{Number.isNaN(ai)||qa(ai)},[ai]),v.createElement(On.Z,{className:C()(Ks,Pi),min:Lr,max:Gr,value:Ma,formatter:fs,size:"small",onChange:rl=>{ai||qa(rl||0),Qi==null||Qi(rl)}})},ir=Pn=>{let{prefixCls:er,value:Lr,onChange:Gr}=Pn;const ai=`${er}-alpha-input`,[Qi,Pi]=(0,v.useState)(Dn(Lr||"#000"));(0,v.useEffect)(()=>{Lr&&Pi(Lr)},[Lr]);const fs=Ks=>{const Ma=Qi.toHsb();Ma.a=(Ks||0)/100;const qa=Dn(Ma);Lr||Pi(qa),Gr==null||Gr(qa)};return v.createElement(qr,{value:wr(Qi),prefixCls:er,formatter:Ks=>`${Ks}%`,className:ai,onChange:fs})},Jn=_(15926);const $t=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Gt=Pn=>$t.test(`#${Pn}`);var Zn=Pn=>{let{prefixCls:er,value:Lr,onChange:Gr}=Pn;const ai=`${er}-hex-input`,[Qi,Pi]=(0,v.useState)(Lr==null?void 0:Lr.toHex());(0,v.useEffect)(()=>{const Ks=Lr==null?void 0:Lr.toHex();Gt(Ks)&&Lr&&Pi(rn(Ks))},[Lr]);const fs=Ks=>{const Ma=Ks.target.value;Pi(rn(Ma)),Gt(rn(Ma,!0))&&(Gr==null||Gr(Dn(Ma)))};return v.createElement(Jn.Z,{className:ai,value:Qi,prefix:"#",onChange:fs,size:"small"})},qn=Pn=>{let{prefixCls:er,value:Lr,onChange:Gr}=Pn;const ai=`${er}-hsb-input`,[Qi,Pi]=(0,v.useState)(Dn(Lr||"#000"));(0,v.useEffect)(()=>{Lr&&Pi(Lr)},[Lr]);const fs=(Ks,Ma)=>{const qa=Qi.toHsb();qa[Ma]=Ma==="h"?Ks:(Ks||0)/100;const rl=Dn(qa);Lr||Pi(rl),Gr==null||Gr(rl)};return v.createElement("div",{className:ai},v.createElement(qr,{max:360,min:0,value:Number(Qi.toHsb().h),prefixCls:er,className:ai,formatter:Ks=>sn(Ks||0).toString(),onChange:Ks=>fs(Number(Ks),"h")}),v.createElement(qr,{max:100,min:0,value:Number(Qi.toHsb().s)*100,prefixCls:er,className:ai,formatter:Ks=>`${sn(Ks||0)}%`,onChange:Ks=>fs(Number(Ks),"s")}),v.createElement(qr,{max:100,min:0,value:Number(Qi.toHsb().b)*100,prefixCls:er,className:ai,formatter:Ks=>`${sn(Ks||0)}%`,onChange:Ks=>fs(Number(Ks),"b")}))},jt=Pn=>{let{prefixCls:er,value:Lr,onChange:Gr}=Pn;const ai=`${er}-rgb-input`,[Qi,Pi]=(0,v.useState)(Dn(Lr||"#000"));(0,v.useEffect)(()=>{Lr&&Pi(Lr)},[Lr]);const fs=(Ks,Ma)=>{const qa=Qi.toRgb();qa[Ma]=Ks||0;const rl=Dn(qa);Lr||Pi(rl),Gr==null||Gr(rl)};return v.createElement("div",{className:ai},v.createElement(qr,{max:255,min:0,value:Number(Qi.toRgb().r),prefixCls:er,className:ai,onChange:Ks=>fs(Number(Ks),"r")}),v.createElement(qr,{max:255,min:0,value:Number(Qi.toRgb().g),prefixCls:er,className:ai,onChange:Ks=>fs(Number(Ks),"g")}),v.createElement(qr,{max:255,min:0,value:Number(Qi.toRgb().b),prefixCls:er,className:ai,onChange:Ks=>fs(Number(Ks),"b")}))};const In=[Io.hex,Io.hsb,Io.rgb].map(Pn=>({value:Pn,label:Pn.toLocaleUpperCase()}));var Ur=Pn=>{const{prefixCls:er,format:Lr,value:Gr,disabledAlpha:ai,onFormatChange:Qi,onChange:Pi}=Pn,[fs,Ks]=(0,x.Z)(Io.hex,{value:Lr,onChange:Qi}),Ma=`${er}-input`,qa=Dl=>{Ks(Dl)},rl=(0,v.useMemo)(()=>{const Dl={value:Gr,prefixCls:er,onChange:Pi};switch(fs){case Io.hsb:return v.createElement(qn,Object.assign({},Dl));case Io.rgb:return v.createElement(jt,Object.assign({},Dl));case Io.hex:default:return v.createElement(Zn,Object.assign({},Dl))}},[fs,er,Gr,Pi]);return v.createElement("div",{className:`${Ma}-container`},v.createElement(Hi.Z,{value:fs,bordered:!1,getPopupContainer:Dl=>Dl,popupMatchSelectWidth:68,placement:"bottomRight",onChange:qa,className:`${er}-format-select`,size:"small",options:In}),v.createElement("div",{className:Ma},rl),!ai&&v.createElement(ir,{prefixCls:er,value:Gr,onChange:Pi}))},Ao=function(Pn,er){var Lr={};for(var Gr in Pn)Object.prototype.hasOwnProperty.call(Pn,Gr)&&er.indexOf(Gr)<0&&(Lr[Gr]=Pn[Gr]);if(Pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ai=0,Gr=Object.getOwnPropertySymbols(Pn);ai{const Pn=(0,v.useContext)(Ct),{prefixCls:er,colorCleared:Lr,allowClear:Gr,value:ai,disabledAlpha:Qi,onChange:Pi,onClear:fs,onChangeComplete:Ks}=Pn,Ma=Ao(Pn,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return v.createElement(v.Fragment,null,Gr&&v.createElement(Pr,Object.assign({prefixCls:er,value:ai,colorCleared:Lr,onChange:qa=>{Pi==null||Pi(qa),fs==null||fs()}},Ma)),v.createElement(nt,{prefixCls:er,value:ai==null?void 0:ai.toHsb(),disabledAlpha:Qi,onChange:(qa,rl)=>Pi==null?void 0:Pi(qa,rl,!0),onChangeComplete:Ks}),v.createElement(Ur,Object.assign({value:ai,onChange:Pi,prefixCls:er,disabledAlpha:Qi},Ma)))},fr=_(22311),Nr=_(42371),bi=_(46644),Ei=_(38930),Yi=_(44516),di=_(38251),Wr=v.forwardRef(function(Pn,er){var Lr,Gr=Pn.prefixCls,ai=Pn.forceRender,Qi=Pn.className,Pi=Pn.style,fs=Pn.children,Ks=Pn.isActive,Ma=Pn.role,qa=v.useState(Ks||ai),rl=(0,fe.Z)(qa,2),Dl=rl[0],Oa=rl[1];return v.useEffect(function(){(ai||Ks)&&Oa(!0)},[ai,Ks]),Dl?v.createElement("div",{ref:er,className:C()("".concat(Gr,"-content"),(Lr={},(0,he.Z)(Lr,"".concat(Gr,"-content-active"),Ks),(0,he.Z)(Lr,"".concat(Gr,"-content-inactive"),!Ks),Lr),Qi),style:Pi,role:Ma},v.createElement("div",{className:"".concat(Gr,"-content-box")},fs)):null});Wr.displayName="PanelContent";var Ni=Wr,kr=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Xr=v.forwardRef(function(Pn,er){var Lr,Gr,ai=Pn.showArrow,Qi=ai===void 0?!0:ai,Pi=Pn.headerClass,fs=Pn.isActive,Ks=Pn.onItemClick,Ma=Pn.forceRender,qa=Pn.className,rl=Pn.prefixCls,Dl=Pn.collapsible,Oa=Pn.accordion,ju=Pn.panelKey,Ia=Pn.extra,Ha=Pn.header,tl=Pn.expandIcon,cu=Pn.openMotion,Xl=Pn.destroyInactivePanel,yu=Pn.children,Cl=(0,Xe.Z)(Pn,kr),nu=Dl==="disabled",Xn=Dl==="header",Ho=Dl==="icon",Ls=Ia!=null&&typeof Ia!="boolean",Xs=function(){Ks==null||Ks(ju)},il=function(qc){(qc.key==="Enter"||qc.keyCode===di.Z.ENTER||qc.which===di.Z.ENTER)&&Xs()},iu=typeof tl=="function"?tl(Pn):v.createElement("i",{className:"arrow"});iu&&(iu=v.createElement("div",{className:"".concat(rl,"-expand-icon"),onClick:["header","icon"].includes(Dl)?Xs:void 0},iu));var hu=C()((Lr={},(0,he.Z)(Lr,"".concat(rl,"-item"),!0),(0,he.Z)(Lr,"".concat(rl,"-item-active"),fs),(0,he.Z)(Lr,"".concat(rl,"-item-disabled"),nu),Lr),qa),ic=C()(Pi,(Gr={},(0,he.Z)(Gr,"".concat(rl,"-header"),!0),(0,he.Z)(Gr,"".concat(rl,"-header-collapsible-only"),Xn),(0,he.Z)(Gr,"".concat(rl,"-icon-collapsible-only"),Ho),Gr)),Gu={className:ic,"aria-expanded":fs,"aria-disabled":nu,onKeyDown:il};return!Xn&&!Ho&&(Gu.onClick=Xs,Gu.role=Oa?"tab":"button",Gu.tabIndex=nu?-1:0),v.createElement("div",(0,K.Z)({},Cl,{ref:er,className:hu}),v.createElement("div",Gu,Qi&&iu,v.createElement("span",{className:"".concat(rl,"-header-text"),onClick:Dl==="header"?Xs:void 0},Ha),Ls&&v.createElement("div",{className:"".concat(rl,"-extra")},Ia)),v.createElement(Yi.ZP,(0,K.Z)({visible:fs,leavedClassName:"".concat(rl,"-content-hidden")},cu,{forceRender:Ma,removeOnLeave:Xl}),function(pc,qc){var Lc=pc.className,jh=pc.style;return v.createElement(Ni,{ref:qc,prefixCls:rl,className:Lc,style:jh,isActive:fs,forceRender:Ma,role:Oa?"tabpanel":void 0},yu)}))}),yo=Xr,ls=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Sr=function(er,Lr){var Gr=Lr.prefixCls,ai=Lr.accordion,Qi=Lr.collapsible,Pi=Lr.destroyInactivePanel,fs=Lr.onItemClick,Ks=Lr.activeKey,Ma=Lr.openMotion,qa=Lr.expandIcon;return er.map(function(rl,Dl){var Oa=rl.children,ju=rl.label,Ia=rl.key,Ha=rl.collapsible,tl=rl.onItemClick,cu=rl.destroyInactivePanel,Xl=(0,Xe.Z)(rl,ls),yu=String(Ia!=null?Ia:Dl),Cl=Ha!=null?Ha:Qi,nu=cu!=null?cu:Pi,Xn=function(Xs){Cl!=="disabled"&&(fs(Xs),tl==null||tl(Xs))},Ho=!1;return ai?Ho=Ks[0]===yu:Ho=Ks.indexOf(yu)>-1,v.createElement(yo,(0,K.Z)({},Xl,{prefixCls:Gr,key:yu,panelKey:yu,isActive:Ho,accordion:ai,openMotion:Ma,expandIcon:qa,header:ju,collapsible:Cl,onItemClick:Xn,destroyInactivePanel:nu}),Oa)})},hs=function(er,Lr,Gr){if(!er)return null;var ai=Gr.prefixCls,Qi=Gr.accordion,Pi=Gr.collapsible,fs=Gr.destroyInactivePanel,Ks=Gr.onItemClick,Ma=Gr.activeKey,qa=Gr.openMotion,rl=Gr.expandIcon,Dl=er.key||String(Lr),Oa=er.props,ju=Oa.header,Ia=Oa.headerClass,Ha=Oa.destroyInactivePanel,tl=Oa.collapsible,cu=Oa.onItemClick,Xl=!1;Qi?Xl=Ma[0]===Dl:Xl=Ma.indexOf(Dl)>-1;var yu=tl!=null?tl:Pi,Cl=function(Ho){yu!=="disabled"&&(Ks(Ho),cu==null||cu(Ho))},nu={key:Dl,panelKey:Dl,header:ju,headerClass:Ia,isActive:Xl,prefixCls:ai,destroyInactivePanel:Ha!=null?Ha:fs,openMotion:qa,accordion:Qi,children:er.props.children,onItemClick:Cl,expandIcon:rl,collapsible:yu};return typeof er.type=="string"?er:(Object.keys(nu).forEach(function(Xn){typeof nu[Xn]=="undefined"&&delete nu[Xn]}),v.cloneElement(er,nu))};function ta(Pn,er,Lr){return Array.isArray(Pn)?Sr(Pn,Lr):(0,Ei.Z)(er).map(function(Gr,ai){return hs(Gr,ai,Lr)})}var fi=ta;function Po(Pn){var er=Pn;if(!Array.isArray(er)){var Lr=(0,ft.Z)(er);er=Lr==="number"||Lr==="string"?[er]:[]}return er.map(function(Gr){return String(Gr)})}var mo=v.forwardRef(function(Pn,er){var Lr=Pn.prefixCls,Gr=Lr===void 0?"rc-collapse":Lr,ai=Pn.destroyInactivePanel,Qi=ai===void 0?!1:ai,Pi=Pn.style,fs=Pn.accordion,Ks=Pn.className,Ma=Pn.children,qa=Pn.collapsible,rl=Pn.openMotion,Dl=Pn.expandIcon,Oa=Pn.activeKey,ju=Pn.defaultActiveKey,Ia=Pn.onChange,Ha=Pn.items,tl=C()(Gr,Ks),cu=(0,x.Z)([],{value:Oa,onChange:function(Ls){return Ia==null?void 0:Ia(Ls)},defaultValue:ju,postState:Po}),Xl=(0,fe.Z)(cu,2),yu=Xl[0],Cl=Xl[1],nu=function(Ls){return Cl(function(){if(fs)return yu[0]===Ls?[]:[Ls];var Xs=yu.indexOf(Ls),il=Xs>-1;return il?yu.filter(function(iu){return iu!==Ls}):[].concat((0,Nr.Z)(yu),[Ls])})};(0,bi.ZP)(!Ma,"`children` will be removed in next major version. Please use `items` instead.");var Xn=fi(Ha,Ma,{prefixCls:Gr,accordion:fs,openMotion:rl,expandIcon:Dl,collapsible:qa,destroyInactivePanel:Qi,onItemClick:nu,activeKey:yu});return v.createElement("div",{ref:er,className:tl,style:Pi,role:fs?"tablist":void 0},Xn)}),or=Object.assign(mo,{Panel:yo}),Oi=or,Wa=or.Panel,Sa=_(39029),xa=_(8418),Ml=_(37628),_l=v.forwardRef((Pn,er)=>{const{getPrefixCls:Lr}=v.useContext(R.E_),{prefixCls:Gr,className:ai,showArrow:Qi=!0}=Pn,Pi=Lr("collapse",Gr),fs=C()({[`${Pi}-no-arrow`]:!Qi},ai);return v.createElement(Oi.Panel,Object.assign({ref:er},Pn,{prefixCls:Pi,className:fs}))}),El=_(21348),Ai=_(63797),to=_(93154),An=_(43040);const ri=Pn=>{const{componentCls:er,contentBg:Lr,padding:Gr,headerBg:ai,headerPadding:Qi,collapseHeaderPaddingSM:Pi,collapseHeaderPaddingLG:fs,collapsePanelBorderRadius:Ks,lineWidth:Ma,lineType:qa,colorBorder:rl,colorText:Dl,colorTextHeading:Oa,colorTextDisabled:ju,fontSize:Ia,fontSizeLG:Ha,lineHeight:tl,marginSM:cu,paddingSM:Xl,paddingLG:yu,paddingXS:Cl,motionDurationSlow:nu,fontSizeIcon:Xn,contentPadding:Ho}=Pn,Ls=`${Ma}px ${qa} ${rl}`;return{[er]:Object.assign(Object.assign({},(0,El.Wf)(Pn)),{backgroundColor:ai,border:Ls,borderBottom:0,borderRadius:`${Ks}px`,["&-rtl"]:{direction:"rtl"},[`& > ${er}-item`]:{borderBottom:Ls,["&:last-child"]:{[` &, - & > ${to}-header`]:{borderRadius:`0 0 ${so}px ${so}px`}},[`> ${to}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:ai,color:dl,lineHeight:Pu,cursor:"pointer",transition:`all ${ql}, visibility 0s`,[`> ${to}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${to}-expand-icon`]:{height:Ml*Pu,display:"flex",alignItems:"center",paddingInlineEnd:ea},[`${to}-arrow`]:Object.assign(Object.assign({},(0,$r.Ro)()),{fontSize:vu,svg:{transition:`transform ${ql}`}}),[`${to}-header-text`]:{marginInlineEnd:"auto"}},[`${to}-header-collapsible-only`]:{cursor:"default",[`${to}-header-text`]:{flex:"none",cursor:"pointer"}},[`${to}-icon-collapsible-only`]:{cursor:"default",[`${to}-expand-icon`]:{cursor:"pointer"}}},[`${to}-content`]:{color:$a,backgroundColor:hs,borderTop:Cn,[`& > ${to}-content-box`]:{padding:au},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${to}-item`]:{[`> ${to}-header`]:{padding:hi,paddingInlineStart:Ul,[`> ${to}-expand-icon`]:{marginInlineStart:Qa-Ul}},[`> ${to}-content > ${to}-content-box`]:{padding:Qa}}},["&-large"]:{[`> ${to}-item`]:{fontSize:Za,[`> ${to}-header`]:{padding:Ji,paddingInlineStart:jn,[`> ${to}-expand-icon`]:{height:Za*Pu,marginInlineStart:el-jn}},[`> ${to}-content > ${to}-content-box`]:{padding:el}}},[`${to}-item:last-child`]:{[`> ${to}-content`]:{borderRadius:`0 0 ${so}px ${so}px`}},[`& ${to}-item-disabled > ${to}-header`]:{[` + & > ${er}-header`]:{borderRadius:`0 0 ${Ks}px ${Ks}px`}},[`> ${er}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:Qi,color:Oa,lineHeight:tl,cursor:"pointer",transition:`all ${nu}, visibility 0s`,[`> ${er}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${er}-expand-icon`]:{height:Ia*tl,display:"flex",alignItems:"center",paddingInlineEnd:cu},[`${er}-arrow`]:Object.assign(Object.assign({},(0,El.Ro)()),{fontSize:Xn,svg:{transition:`transform ${nu}`}}),[`${er}-header-text`]:{marginInlineEnd:"auto"}},[`${er}-header-collapsible-only`]:{cursor:"default",[`${er}-header-text`]:{flex:"none",cursor:"pointer"}},[`${er}-icon-collapsible-only`]:{cursor:"default",[`${er}-expand-icon`]:{cursor:"pointer"}}},[`${er}-content`]:{color:Dl,backgroundColor:Lr,borderTop:Ls,[`& > ${er}-content-box`]:{padding:Ho},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${er}-item`]:{[`> ${er}-header`]:{padding:Pi,paddingInlineStart:Cl,[`> ${er}-expand-icon`]:{marginInlineStart:Xl-Cl}},[`> ${er}-content > ${er}-content-box`]:{padding:Xl}}},["&-large"]:{[`> ${er}-item`]:{fontSize:Ha,[`> ${er}-header`]:{padding:fs,paddingInlineStart:Gr,[`> ${er}-expand-icon`]:{height:Ha*tl,marginInlineStart:yu-Gr}},[`> ${er}-content > ${er}-content-box`]:{padding:yu}}},[`${er}-item:last-child`]:{[`> ${er}-content`]:{borderRadius:`0 0 ${Ks}px ${Ks}px`}},[`& ${er}-item-disabled > ${er}-header`]:{[` &, & > .arrow - `]:{color:Hl,cursor:"not-allowed"}},[`&${to}-icon-position-end`]:{[`& > ${to}-item`]:{[`> ${to}-header`]:{[`${to}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:ea}}}}})}},Eo=vo=>{const{componentCls:to}=vo,hs=`> ${to}-item > ${to}-header ${to}-arrow svg`;return{[`${to}-rtl`]:{[hs]:{transform:"rotate(180deg)"}}}},mo=vo=>{const{componentCls:to,headerBg:hs,paddingXXS:jn,colorBorder:yr}=vo;return{[`${to}-borderless`]:{backgroundColor:hs,border:0,[`> ${to}-item`]:{borderBottom:`1px solid ${yr}`},[` - > ${to}-item:last-child, - > ${to}-item:last-child ${to}-header - `]:{borderRadius:0},[`> ${to}-item:last-child`]:{borderBottom:0},[`> ${to}-item > ${to}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${to}-item > ${to}-content > ${to}-content-box`]:{paddingTop:jn}}}},Ts=vo=>{const{componentCls:to,paddingSM:hs}=vo;return{[`${to}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${to}-item`]:{borderBottom:0,[`> ${to}-content`]:{backgroundColor:"transparent",border:0,[`> ${to}-content-box`]:{paddingBlock:hs}}}}}};var xs=(0,Dr.Z)("Collapse",vo=>{const to=(0,pr.TS)(vo,{collapseHeaderPaddingSM:`${vo.paddingXS}px ${vo.paddingSM}px`,collapseHeaderPaddingLG:`${vo.padding}px ${vo.paddingLG}px`,collapsePanelBorderRadius:vo.borderRadiusLG});return[ci(to),mo(to),Ts(to),Eo(to),(0,er.Z)(to)]},vo=>({headerPadding:`${vo.paddingSM}px ${vo.padding}px`,headerBg:vo.colorFillAlter,contentPadding:`${vo.padding}px 16px`,contentBg:vo.colorBgContainer})),ui=Object.assign(y.forwardRef((vo,to)=>{const{getPrefixCls:hs,direction:jn,collapse:yr}=y.useContext(w.E_),{prefixCls:ai,className:hi,rootClassName:Ji,style:so,bordered:Pi=!0,ghost:us,size:ga,expandIconPosition:$a="start",children:dl,expandIcon:Hl}=vo,Ml=(0,A.Z)(Cn=>{var Eu;return(Eu=ga!=null?ga:Cn)!==null&&Eu!==void 0?Eu:"middle"}),Za=hs("collapse",ai),Pu=hs(),[ea,Qa]=xs(Za),el=y.useMemo(()=>$a==="left"?"start":$a==="right"?"end":$a,[$a]),Ul=function(){let Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Eu=Hl?Hl(Cn):y.createElement(xr.Z,{rotate:Cn.isActive?90:void 0});return(0,Ua.Tm)(Eu,()=>({className:b()(Eu.props.className,`${Za}-arrow`)}))},ql=b()(`${Za}-icon-position-${el}`,{[`${Za}-borderless`]:!Pi,[`${Za}-rtl`]:jn==="rtl",[`${Za}-ghost`]:!!us,[`${Za}-${Ml}`]:Ml!=="middle"},yr==null?void 0:yr.className,hi,Ji,Qa),vu=Object.assign(Object.assign({},(0,Ws.Z)(Pu)),{motionAppear:!1,leavedClassName:`${Za}-content-hidden`}),au=y.useMemo(()=>dl?(0,Ti.Z)(dl).map((Cn,Eu)=>{var ls,Ks;if(!((ls=Cn.props)===null||ls===void 0)&&ls.disabled){const xa=(Ks=Cn.key)!==null&&Ks!==void 0?Ks:String(Eu),{disabled:Il,collapsible:El}=Cn.props,ml=Object.assign(Object.assign({},(0,fa.Z)(Cn.props,["disabled"])),{key:xa,collapsible:El!=null?El:Il?"disabled":void 0});return(0,Ua.Tm)(Cn,ml)}return Cn}):null,[dl]);return ea(y.createElement(ms,Object.assign({ref:to,openMotion:vu},(0,fa.Z)(vo,["rootClassName"]),{expandIcon:Ul,prefixCls:Za,className:ql,style:Object.assign(Object.assign({},yr==null?void 0:yr.style),so)}),au))}),{Panel:cl}),Xt=ui,gn=m(879);const En=vo=>vo.map(to=>(to.colors=to.colors.map(zn),to)),tt=(vo,to)=>{const{r:hs,g:jn,b:yr,a:ai}=vo.toRgb(),hi=new Ae(vo.toRgbString()).onBackground(to).toHsv();return ai<=.5?hi.v>.5:hs*.299+jn*.587+yr*.114>192};var gt=vo=>{let{prefixCls:to,presets:hs,value:jn,onChange:yr}=vo;const[ai]=(0,gn.Z)("ColorPicker"),[,hi]=(0,S.Z)(),[Ji]=(0,z.Z)(En(hs),{value:En(hs),postState:En}),so=`${to}-presets`,Pi=(0,y.useMemo)(()=>Ji.map($a=>`panel-${$a.label}`),[Ji]),us=$a=>{yr==null||yr($a)},ga=Ji.map($a=>{var dl;return{key:`panel-${$a.label}`,label:y.createElement("div",{className:`${so}-label`},$a==null?void 0:$a.label),children:y.createElement("div",{className:`${so}-items`},Array.isArray($a==null?void 0:$a.colors)&&((dl=$a.colors)===null||dl===void 0?void 0:dl.length)>0?$a.colors.map((Hl,Ml)=>y.createElement(Ct,{key:`preset-${Ml}-${Hl.toHexString()}`,color:zn(Hl).toRgbString(),prefixCls:to,className:b()(`${so}-color`,{[`${so}-color-checked`]:Hl.toHexString()===(jn==null?void 0:jn.toHexString()),[`${so}-color-bright`]:tt(Hl,hi.colorBgElevated)}),onClick:()=>us(Hl)})):y.createElement("span",{className:`${so}-empty`},ai.presetEmpty))}});return y.createElement("div",{className:so},y.createElement(Xt,{defaultActiveKey:Pi,ghost:!0,items:ga}))},lt=()=>{const{prefixCls:vo,value:to,presets:hs,onChange:jn}=(0,y.useContext)(xt);return Array.isArray(hs)?y.createElement(gt,{value:to,presets:hs,prefixCls:vo,onChange:jn}):null},St=function(vo,to){var hs={};for(var jn in vo)Object.prototype.hasOwnProperty.call(vo,jn)&&to.indexOf(jn)<0&&(hs[jn]=vo[jn]);if(vo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yr=0,jn=Object.getOwnPropertySymbols(vo);yr{const{prefixCls:to,presets:hs,panelRender:jn,color:yr,onChange:ai,onClear:hi}=vo,Ji=St(vo,["prefixCls","presets","panelRender","color","onChange","onClear"]),so=`${to}-inner-content`,Pi=Object.assign({prefixCls:to,value:yr,onChange:ai,onClear:hi},Ji),us=y.useMemo(()=>({prefixCls:to,value:yr,presets:hs,onChange:ai}),[to,yr,hs,ai]),ga=y.createElement(y.Fragment,null,y.createElement(pn,null),Array.isArray(hs)&&y.createElement(P.Z,{className:`${so}-divider`}),y.createElement(lt,null));return y.createElement(Wt,{value:Pi},y.createElement(sn,{value:us},y.createElement("div",{className:so},typeof jn=="function"?jn(ga,{components:{Picker:pn,Presets:lt}}):ga)))},wr=function(vo,to){var hs={};for(var jn in vo)Object.prototype.hasOwnProperty.call(vo,jn)&&to.indexOf(jn)<0&&(hs[jn]=vo[jn]);if(vo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yr=0,jn=Object.getOwnPropertySymbols(vo);yr{const{color:hs,prefixCls:jn,open:yr,colorCleared:ai,disabled:hi,format:Ji,className:so,showText:Pi}=vo,us=wr(vo,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),ga=`${jn}-trigger`,$a=(0,y.useMemo)(()=>ai?y.createElement(si,{prefixCls:jn}):y.createElement(Ct,{prefixCls:jn,color:hs.toRgbString()}),[hs,ai,jn]),dl=()=>{const Ml=hs.toHexString().toUpperCase(),Za=fr(hs);switch(Ji){case"rgb":return hs.toRgbString();case"hsb":return hs.toHsbString();case"hex":default:return Za<100?`${Ml.slice(0,7)},${Za}%`:Ml}},Hl=()=>{if(typeof Pi=="function")return Pi(hs);if(Pi)return dl()};return y.createElement("div",Object.assign({ref:to,className:b()(ga,so,{[`${ga}-active`]:yr,[`${ga}-disabled`]:hi})},us),$a,Pi&&y.createElement("div",{className:`${ga}-text`},Hl()))});function Ki(vo){return vo!==void 0}var Ns=(vo,to)=>{const{defaultValue:hs,value:jn}=to,[yr,ai]=(0,y.useState)(()=>{let hi;return Ki(jn)?hi=jn:Ki(hs)?hi=hs:hi=vo,zn(hi||"")});return(0,y.useEffect)(()=>{jn&&ai(zn(jn))},[jn]),[yr,ai]};const Bs=(vo,to)=>({backgroundImage:`conic-gradient(${to} 0 25%, transparent 0 50%, ${to} 0 75%, transparent 0)`,backgroundSize:`${vo} ${vo}`});var oo=(vo,to)=>{const{componentCls:hs,borderRadiusSM:jn,colorPickerInsetShadow:yr,lineWidth:ai,colorFillSecondary:hi}=vo;return{[`${hs}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:jn,width:to,height:to,boxShadow:yr},Bs("50%",vo.colorFillSecondary)),{[`${hs}-color-block-inner`]:{width:"100%",height:"100%",border:`${ai}px solid ${hi}`,borderRadius:"inherit"}})}},oa=vo=>{const{componentCls:to,antCls:hs,fontSizeSM:jn,lineHeightSM:yr,colorPickerAlphaInputWidth:ai,marginXXS:hi,paddingXXS:Ji,controlHeightSM:so,marginXS:Pi,fontSizeIcon:us,paddingXS:ga,colorTextPlaceholder:$a,colorPickerInputNumberHandleWidth:dl,lineWidth:Hl}=vo;return{[`${to}-input-container`]:{display:"flex",[`${to}-steppers${hs}-input-number`]:{fontSize:jn,lineHeight:yr,[`${hs}-input-number-input`]:{paddingInlineStart:Ji,paddingInlineEnd:0},[`${hs}-input-number-handler-wrap`]:{width:dl}},[`${to}-steppers${to}-alpha-input`]:{flex:`0 0 ${ai}px`,marginInlineStart:hi},[`${to}-format-select${hs}-select`]:{marginInlineEnd:Pi,width:"auto","&-single":{[`${hs}-select-selector`]:{padding:0,border:0},[`${hs}-select-arrow`]:{insetInlineEnd:0},[`${hs}-select-selection-item`]:{paddingInlineEnd:us+hi,fontSize:jn,lineHeight:`${so}px`},[`${hs}-select-item-option-content`]:{fontSize:jn,lineHeight:yr},[`${hs}-select-dropdown`]:{[`${hs}-select-item`]:{minHeight:"auto"}}}},[`${to}-input`]:{gap:hi,alignItems:"center",flex:1,width:0,[`${to}-hsb-input,${to}-rgb-input`]:{display:"flex",gap:hi,alignItems:"center"},[`${to}-steppers`]:{flex:1},[`${to}-hex-input${hs}-input-affix-wrapper`]:{flex:1,padding:`0 ${ga}px`,[`${hs}-input`]:{fontSize:jn,textTransform:"uppercase",lineHeight:`${so-2*Hl}px`},[`${hs}-input-prefix`]:{color:$a}}}}}},Bl=vo=>{const{componentCls:to,controlHeightLG:hs,borderRadiusSM:jn,colorPickerInsetShadow:yr,marginSM:ai,colorBgElevated:hi,colorFillSecondary:Ji,lineWidthBold:so,colorPickerHandlerSize:Pi,colorPickerHandlerSizeSM:us,colorPickerSliderHeight:ga}=vo;return{[`${to}-select`]:{[`${to}-palette`]:{minHeight:hs*4,overflow:"hidden",borderRadius:jn},[`${to}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:yr,inset:0},marginBottom:ai},[`${to}-handler`]:{width:Pi,height:Pi,border:`${so}px solid ${hi}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${yr}, 0 0 0 1px ${Ji}`,"&-sm":{width:us,height:us}},[`${to}-slider`]:{borderRadius:ga/2,[`${to}-palette`]:{height:ga},[`${to}-gradient`]:{borderRadius:ga/2,boxShadow:yr},"&-alpha":Bs(`${ga}px`,vo.colorFillSecondary),"&-hue":{marginBottom:ai}},[`${to}-slider-container`]:{display:"flex",gap:ai,marginBottom:ai,[`${to}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${to}-slider`]:{flex:1,marginBottom:0}}}}}},gl=vo=>{const{componentCls:to,antCls:hs,colorTextQuaternary:jn,paddingXXS:yr,colorPickerPresetColorSize:ai,fontSizeSM:hi,colorText:Ji,lineHeightSM:so,lineWidth:Pi,borderRadius:us,colorFill:ga,colorWhite:$a,marginXXS:dl,paddingXS:Hl}=vo;return{[`${to}-presets`]:{[`${hs}-collapse-item > ${hs}-collapse-header`]:{padding:0,[`${hs}-collapse-expand-icon`]:{height:hi*so,color:jn,paddingInlineEnd:yr}},[`${hs}-collapse`]:{display:"flex",flexDirection:"column",gap:dl},[`${hs}-collapse-item > ${hs}-collapse-content > ${hs}-collapse-content-box`]:{padding:`${Hl}px 0`},"&-label":{fontSize:hi,color:Ji,lineHeight:so},"&-items":{display:"flex",flexWrap:"wrap",gap:dl*1.5,[`${to}-presets-color`]:{position:"relative",cursor:"pointer",width:ai,height:ai,"&::before":{content:'""',pointerEvents:"none",width:ai+4*Pi,height:ai+4*Pi,position:"absolute",top:-2*Pi,insetInlineStart:-2*Pi,borderRadius:us,border:`${Pi}px solid transparent`,transition:`border-color ${vo.motionDurationMid} ${vo.motionEaseInBack}`},"&:hover::before":{borderColor:ga},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ai/13*5,height:ai/13*8,border:`${vo.lineWidthBold}px solid ${vo.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${vo.motionDurationFast} ${vo.motionEaseInBack}, opacity ${vo.motionDurationFast}`},[`&${to}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:$a,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${vo.motionDurationMid} ${vo.motionEaseOutBack} ${vo.motionDurationFast}`},[`&${to}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:hi,color:jn}}}};const ua=(vo,to,hs)=>({borderInlineEndWidth:vo.lineWidth,borderColor:to,boxShadow:`0 0 0 ${vo.controlOutlineWidth}px ${hs}`,outline:0}),Nl=vo=>{const{componentCls:to}=vo;return{"&-rtl":{[`${to}-presets-color`]:{"&::after":{direction:"ltr"}},[`${to}-clear`]:{"&::after":{direction:"ltr"}}}}},vs=(vo,to,hs)=>{const{componentCls:jn,borderRadiusSM:yr,lineWidth:ai,colorSplit:hi,red6:Ji}=vo;return{[`${jn}-clear`]:Object.assign(Object.assign({width:to,height:to,borderRadius:yr,border:`${ai}px solid ${hi}`,position:"relative",cursor:"pointer",overflow:"hidden"},hs),{"&::after":{content:'""',position:"absolute",insetInlineEnd:ai,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:Ji}})}},Hi=vo=>{const{componentCls:to,colorError:hs,colorWarning:jn,colorErrorHover:yr,colorWarningHover:ai,colorErrorOutline:hi,colorWarningOutline:Ji}=vo;return{[`&${to}-status-error`]:{borderColor:hs,"&:hover":{borderColor:yr},[`&${to}-trigger-active`]:Object.assign({},ua(vo,hs,hi))},[`&${to}-status-warning`]:{borderColor:jn,"&:hover":{borderColor:ai},[`&${to}-trigger-active`]:Object.assign({},ua(vo,jn,Ji))}}},eo=vo=>{const{componentCls:to,controlHeightLG:hs,controlHeightSM:jn,controlHeight:yr,controlHeightXS:ai,borderRadius:hi,borderRadiusSM:Ji,borderRadiusXS:so,borderRadiusLG:Pi,fontSizeLG:us}=vo;return{[`&${to}-lg`]:{minWidth:hs,height:hs,borderRadius:Pi,[`${to}-color-block, ${to}-clear`]:{width:yr,height:yr,borderRadius:hi},[`${to}-trigger-text`]:{fontSize:us}},[`&${to}-sm`]:{minWidth:jn,height:jn,borderRadius:Ji,[`${to}-color-block, ${to}-clear`]:{width:ai,height:ai,borderRadius:so}}}},sa=vo=>{const{componentCls:to,colorPickerWidth:hs,colorPrimary:jn,motionDurationMid:yr,colorBgElevated:ai,colorTextDisabled:hi,colorText:Ji,colorBgContainerDisabled:so,borderRadius:Pi,marginXS:us,marginSM:ga,controlHeight:$a,controlHeightSM:dl,colorBgTextActive:Hl,colorPickerPresetColorSize:Ml,colorPickerPreviewSize:Za,lineWidth:Pu,colorBorder:ea,paddingXXS:Qa,fontSize:el,colorPrimaryHover:Ul,controlOutline:ql}=vo;return[{[to]:Object.assign({[`${to}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:hs,"&-divider":{margin:`${ga}px 0 ${us}px`},[`${to}-panel`]:Object.assign({},Bl(vo))},oo(vo,Za)),oa(vo)),gl(vo)),vs(vo,Ml,{marginInlineStart:"auto",marginBottom:us})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:$a,height:$a,borderRadius:Pi,border:`${Pu}px solid ${ea}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${yr}`,background:ai,padding:Qa-Pu,[`${to}-trigger-text`]:{marginInlineStart:us,marginInlineEnd:us-(Qa-Pu),fontSize:el,color:Ji},"&:hover":{borderColor:Ul},[`&${to}-trigger-active`]:Object.assign({},ua(vo,jn,ql)),"&-disabled":{color:hi,background:so,cursor:"not-allowed","&:hover":{borderColor:Hl},[`${to}-trigger-text`]:{color:hi}}},vs(vo,dl)),oo(vo,dl)),Hi(vo)),eo(vo))},Nl(vo))}]};var Cs=(0,Dr.Z)("ColorPicker",vo=>{const{colorTextQuaternary:to,marginSM:hs}=vo,jn=8,yr=(0,pr.TS)(vo,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${to}`,colorPickerSliderHeight:jn,colorPickerPreviewSize:jn*2+hs});return[sa(yr)]});const Ka=vo=>{const{value:to,defaultValue:hs,format:jn,defaultFormat:yr,allowClear:ai=!1,presets:hi,children:Ji,trigger:so="click",open:Pi,disabled:us,placement:ga="bottomLeft",arrow:$a=!0,panelRender:dl,showText:Hl,style:Ml,className:Za,size:Pu,rootClassName:ea,styles:Qa,disabledAlpha:el=!1,onFormatChange:Ul,onChange:ql,onClear:vu,onOpenChange:au,onChangeComplete:Cn,getPopupContainer:Eu,autoAdjustOverflow:ls=!0,destroyTooltipOnHide:Ks}=vo,{getPrefixCls:xa,direction:Il,colorPicker:El}=(0,y.useContext)(w.E_),[,ml]=(0,S.Z)(),[fu,Nu]=Ns(ml.colorPrimary,{value:to,defaultValue:hs}),[lc,Ic]=(0,z.Z)(!1,{value:Pi,postState:Lh=>!us&&Lh,onChange:au}),[Vc,zd]=(0,z.Z)(jn,{value:jn,defaultValue:yr,onChange:Ul}),[eh,Kd]=(0,y.useState)(!1),ad=xa("color-picker",Ht),ku=(0,y.useMemo)(()=>fr(fu)<100,[fu]),{status:Fc}=y.useContext(C.aM),dd=(0,A.Z)(Pu),[vd,Xd]=Cs(ad),th={[`${ad}-rtl`]:Il},jd=b()(ea,th),vh=b()((0,N.Z)(ad,Fc),{[`${ad}-sm`]:dd==="small",[`${ad}-lg`]:dd==="large"},El==null?void 0:El.className,jd,Za,Xd),id=b()(ad,th),nd=(0,y.useRef)(!0),Pf=(Lh,Sf,Cp)=>{let Nf=zn(Lh);(eh||(to===null||!to&&hs===null))&&(Kd(!1),fr(fu)===0&&Sf!=="alpha"&&(Nf=Kr(Nf))),el&&ku&&(Nf=Kr(Nf)),Cp?nd.current=!1:Cn==null||Cn(Nf),Nu(Nf),ql==null||ql(Nf,Nf.toHexString())},qd=()=>{Kd(!0),vu==null||vu()},cc=Lh=>{nd.current=!0;let Sf=zn(Lh);el&&ku&&(Sf=Kr(Lh)),Cn==null||Cn(Sf)},Xc={open:lc,trigger:so,placement:ga,arrow:$a,rootClassName:ea,getPopupContainer:Eu,autoAdjustOverflow:ls,destroyTooltipOnHide:Ks},jh={prefixCls:ad,color:fu,allowClear:ai,colorCleared:eh,disabled:us,disabledAlpha:el,presets:hi,panelRender:dl,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:Qa==null?void 0:Qa.popup,overlayInnerStyle:Qa==null?void 0:Qa.popupOverlayInner,onOpenChange:Lh=>{nd.current&&!us&&Ic(Lh)},content:y.createElement(C.Ux,{override:!0,status:!0},y.createElement(Vn,Object.assign({},jh,{onChange:Pf,onChangeComplete:cc,onClear:qd}))),overlayClassName:id},Xc),Ji||y.createElement(Vi,{open:lc,className:vh,style:uf,color:to?zn(to):fu,prefixCls:ad,disabled:us,colorCleared:eh,showText:Hl,format:Vc})))},$u=(0,k.Z)(Ka,"color-picker",vo=>vo,vo=>Object.assign(Object.assign({},vo),{placement:"bottom",autoAdjustOverflow:!1}));Ka._InternalPanelDoNotUseOrYouWillBeFired=$u;var rc=Ka,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 go},w6:function(){return me}});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=ji=>{const{locale:No={},children:dn,_ANT_MARK__:Ve}=ji;y.useEffect(()=>(0,A.f)(No&&No.Modal),[No]);const yt=y.useMemo(()=>Object.assign(Object.assign({},No),{exist:!0}),[No]);return y.createElement(C.Z.Provider,{value:yt},dn)},W=m(530),te=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 je(ji,No){const dn={},Ve=(Wt,sn)=>{let Ot=Wt.clone();return Ot=(sn==null?void 0:sn(Ot))||Ot,Ot.toRgbString()},yt=(Wt,sn)=>{const Ot=new he.C(Wt),Tt=(0,pe.R_)(Ot.toRgbString());dn[`${sn}-color`]=Ve(Ot),dn[`${sn}-color-disabled`]=Tt[1],dn[`${sn}-color-hover`]=Tt[4],dn[`${sn}-color-active`]=Tt[6],dn[`${sn}-color-outline`]=Ot.clone().setAlpha(.2).toRgbString(),dn[`${sn}-color-deprecated-bg`]=Tt[0],dn[`${sn}-color-deprecated-border`]=Tt[2]};if(No.primaryColor){yt(No.primaryColor,"primary");const Wt=new he.C(No.primaryColor),sn=(0,pe.R_)(Wt.toRgbString());sn.forEach((Tt,bt)=>{dn[`primary-${bt+1}`]=Tt}),dn["primary-color-deprecated-l-35"]=Ve(Wt,Tt=>Tt.lighten(35)),dn["primary-color-deprecated-l-20"]=Ve(Wt,Tt=>Tt.lighten(20)),dn["primary-color-deprecated-t-20"]=Ve(Wt,Tt=>Tt.tint(20)),dn["primary-color-deprecated-t-50"]=Ve(Wt,Tt=>Tt.tint(50)),dn["primary-color-deprecated-f-12"]=Ve(Wt,Tt=>Tt.setAlpha(Tt.getAlpha()*.12));const Ot=new he.C(sn[0]);dn["primary-color-active-deprecated-f-30"]=Ve(Ot,Tt=>Tt.setAlpha(Tt.getAlpha()*.3)),dn["primary-color-active-deprecated-d-02"]=Ve(Ot,Tt=>Tt.darken(2))}return No.successColor&&yt(No.successColor,"success"),No.warningColor&&yt(No.warningColor,"warning"),No.errorColor&&yt(No.errorColor,"error"),No.infoColor&&yt(No.infoColor,"info"),` + `]:{color:ju,cursor:"not-allowed"}},[`&${er}-icon-position-end`]:{[`& > ${er}-item`]:{[`> ${er}-header`]:{[`${er}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:cu}}}}})}},ao=Pn=>{const{componentCls:er}=Pn,Lr=`> ${er}-item > ${er}-header ${er}-arrow svg`;return{[`${er}-rtl`]:{[Lr]:{transform:"rotate(180deg)"}}}},Mi=Pn=>{const{componentCls:er,headerBg:Lr,paddingXXS:Gr,colorBorder:ai}=Pn;return{[`${er}-borderless`]:{backgroundColor:Lr,border:0,[`> ${er}-item`]:{borderBottom:`1px solid ${ai}`},[` + > ${er}-item:last-child, + > ${er}-item:last-child ${er}-header + `]:{borderRadius:0},[`> ${er}-item:last-child`]:{borderBottom:0},[`> ${er}-item > ${er}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${er}-item > ${er}-content > ${er}-content-box`]:{paddingTop:Gr}}}},_s=Pn=>{const{componentCls:er,paddingSM:Lr}=Pn;return{[`${er}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${er}-item`]:{borderBottom:0,[`> ${er}-content`]:{backgroundColor:"transparent",border:0,[`> ${er}-content-box`]:{paddingBlock:Lr}}}}}};var Hs=(0,to.Z)("Collapse",Pn=>{const er=(0,An.TS)(Pn,{collapseHeaderPaddingSM:`${Pn.paddingXS}px ${Pn.paddingSM}px`,collapseHeaderPaddingLG:`${Pn.padding}px ${Pn.paddingLG}px`,collapsePanelBorderRadius:Pn.borderRadiusLG});return[ri(er),Mi(er),_s(er),ao(er),(0,Ai.Z)(er)]},Pn=>({headerPadding:`${Pn.paddingSM}px ${Pn.padding}px`,headerBg:Pn.colorFillAlter,contentPadding:`${Pn.padding}px 16px`,contentBg:Pn.colorBgContainer})),Bi=Object.assign(v.forwardRef((Pn,er)=>{const{getPrefixCls:Lr,direction:Gr,collapse:ai}=v.useContext(R.E_),{prefixCls:Qi,className:Pi,rootClassName:fs,style:Ks,bordered:Ma=!0,ghost:qa,size:rl,expandIconPosition:Dl="start",children:Oa,expandIcon:ju}=Pn,Ia=(0,k.Z)(Ls=>{var Xs;return(Xs=rl!=null?rl:Ls)!==null&&Xs!==void 0?Xs:"middle"}),Ha=Lr("collapse",Qi),tl=Lr(),[cu,Xl]=Hs(Ha),yu=v.useMemo(()=>Dl==="left"?"start":Dl==="right"?"end":Dl,[Dl]),Cl=function(){let Ls=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Xs=ju?ju(Ls):v.createElement(fr.Z,{rotate:Ls.isActive?90:void 0});return(0,Ml.Tm)(Xs,()=>({className:C()(Xs.props.className,`${Ha}-arrow`)}))},nu=C()(`${Ha}-icon-position-${yu}`,{[`${Ha}-borderless`]:!Ma,[`${Ha}-rtl`]:Gr==="rtl",[`${Ha}-ghost`]:!!qa,[`${Ha}-${Ia}`]:Ia!=="middle"},ai==null?void 0:ai.className,Pi,fs,Xl),Xn=Object.assign(Object.assign({},(0,xa.Z)(tl)),{motionAppear:!1,leavedClassName:`${Ha}-content-hidden`}),Ho=v.useMemo(()=>Oa?(0,Ei.Z)(Oa).map((Ls,Xs)=>{var il,iu;if(!((il=Ls.props)===null||il===void 0)&&il.disabled){const hu=(iu=Ls.key)!==null&&iu!==void 0?iu:String(Xs),{disabled:ic,collapsible:Gu}=Ls.props,pc=Object.assign(Object.assign({},(0,Sa.Z)(Ls.props,["disabled"])),{key:hu,collapsible:Gu!=null?Gu:ic?"disabled":void 0});return(0,Ml.Tm)(Ls,pc)}return Ls}):null,[Oa]);return cu(v.createElement(Oi,Object.assign({ref:er,openMotion:Xn},(0,Sa.Z)(Pn,["rootClassName"]),{expandIcon:Cl,prefixCls:Ha,className:nu,style:Object.assign(Object.assign({},ai==null?void 0:ai.style),Ks)}),Ho))}),{Panel:_l}),fn=Bi,Ln=_(92584);const ur=Pn=>Pn.map(er=>(er.colors=er.colors.map(Dn),er)),dt=(Pn,er)=>{const{r:Lr,g:Gr,b:ai,a:Qi}=Pn.toRgb(),Pi=new je(Pn.toRgbString()).onBackground(er).toHsv();return Qi<=.5?Pi.v>.5:Lr*.299+Gr*.587+ai*.114>192},xt=Pn=>{let{label:er}=Pn;return`panel-${er}`};var et=Pn=>{let{prefixCls:er,presets:Lr,value:Gr,onChange:ai}=Pn;const[Qi]=(0,Ln.Z)("ColorPicker"),[,Pi]=(0,T.Z)(),[fs]=(0,x.Z)(ur(Lr),{value:ur(Lr),postState:ur}),Ks=`${er}-presets`,Ma=(0,v.useMemo)(()=>fs.reduce((Dl,Oa)=>{const{defaultOpen:ju=!0}=Oa;return ju&&Dl.push(xt(Oa)),Dl},[]),[fs]),qa=Dl=>{ai==null||ai(Dl)},rl=fs.map(Dl=>{var Oa;return{key:xt(Dl),label:v.createElement("div",{className:`${Ks}-label`},Dl==null?void 0:Dl.label),children:v.createElement("div",{className:`${Ks}-items`},Array.isArray(Dl==null?void 0:Dl.colors)&&((Oa=Dl.colors)===null||Oa===void 0?void 0:Oa.length)>0?Dl.colors.map((ju,Ia)=>v.createElement(Bt,{key:`preset-${Ia}-${ju.toHexString()}`,color:Dn(ju).toRgbString(),prefixCls:er,className:C()(`${Ks}-color`,{[`${Ks}-color-checked`]:ju.toHexString()===(Gr==null?void 0:Gr.toHexString()),[`${Ks}-color-bright`]:dt(ju,Pi.colorBgElevated)}),onClick:()=>qa(ju)})):v.createElement("span",{className:`${Ks}-empty`},Qi.presetEmpty))}});return v.createElement("div",{className:Ks},v.createElement(fn,{defaultActiveKey:Ma,ghost:!0,items:rl}))},Vt=()=>{const{prefixCls:Pn,value:er,presets:Lr,onChange:Gr}=(0,v.useContext)(Ht);return Array.isArray(Lr)?v.createElement(et,{value:er,presets:Lr,prefixCls:Pn,onChange:Gr}):null},yn=function(Pn,er){var Lr={};for(var Gr in Pn)Object.prototype.hasOwnProperty.call(Pn,Gr)&&er.indexOf(Gr)<0&&(Lr[Gr]=Pn[Gr]);if(Pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ai=0,Gr=Object.getOwnPropertySymbols(Pn);ai{const{prefixCls:er,presets:Lr,panelRender:Gr,color:ai,onChange:Qi,onClear:Pi}=Pn,fs=yn(Pn,["prefixCls","presets","panelRender","color","onChange","onClear"]),Ks=`${er}-inner-content`,Ma=Object.assign({prefixCls:er,value:ai,onChange:Qi,onClear:Pi},fs),qa=v.useMemo(()=>({prefixCls:er,value:ai,presets:Lr,onChange:Qi}),[er,ai,Lr,Qi]),rl=v.createElement(v.Fragment,null,v.createElement(xn,null),Array.isArray(Lr)&&v.createElement(F.Z,{className:`${Ks}-divider`}),v.createElement(Vt,null));return v.createElement(hn,{value:Ma},v.createElement(En,{value:qa},v.createElement("div",{className:Ks},typeof Gr=="function"?Gr(rl,{components:{Picker:xn,Presets:Vt}}):rl)))},eo=function(Pn,er){var Lr={};for(var Gr in Pn)Object.prototype.hasOwnProperty.call(Pn,Gr)&&er.indexOf(Gr)<0&&(Lr[Gr]=Pn[Gr]);if(Pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ai=0,Gr=Object.getOwnPropertySymbols(Pn);ai{const{color:Lr,prefixCls:Gr,open:ai,colorCleared:Qi,disabled:Pi,format:fs,className:Ks,showText:Ma}=Pn,qa=eo(Pn,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),rl=`${Gr}-trigger`,Dl=(0,v.useMemo)(()=>Qi?v.createElement(Pr,{prefixCls:Gr}):v.createElement(Bt,{prefixCls:Gr,color:Lr.toRgbString()}),[Lr,Qi,Gr]),Oa=()=>{const Ia=Lr.toHexString().toUpperCase(),Ha=wr(Lr);switch(fs){case"rgb":return Lr.toRgbString();case"hsb":return Lr.toHsbString();case"hex":default:return Ha<100?`${Ia.slice(0,7)},${Ha}%`:Ia}},ju=()=>{if(typeof Ma=="function")return Ma(Lr);if(Ma)return Oa()};return v.createElement("div",Object.assign({ref:er,className:C()(rl,Ks,{[`${rl}-active`]:ai,[`${rl}-disabled`]:Pi})},qa),Dl,Ma&&v.createElement("div",{className:`${rl}-text`},ju()))});function Cs(Pn){return Pn!==void 0}var ba=(Pn,er)=>{const{defaultValue:Lr,value:Gr}=er,[ai,Qi]=(0,v.useState)(()=>{let Pi;return Cs(Gr)?Pi=Gr:Cs(Lr)?Pi=Lr:Pi=Pn,Dn(Pi||"")});return(0,v.useEffect)(()=>{Gr&&Qi(Dn(Gr))},[Gr]),[ai,Qi]};const Zs=(Pn,er)=>({backgroundImage:`conic-gradient(${er} 0 25%, transparent 0 50%, ${er} 0 75%, transparent 0)`,backgroundSize:`${Pn} ${Pn}`});var js=(Pn,er)=>{const{componentCls:Lr,borderRadiusSM:Gr,colorPickerInsetShadow:ai,lineWidth:Qi,colorFillSecondary:Pi}=Pn;return{[`${Lr}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:Gr,width:er,height:er,boxShadow:ai},Zs("50%",Pn.colorFillSecondary)),{[`${Lr}-color-block-inner`]:{width:"100%",height:"100%",border:`${Qi}px solid ${Pi}`,borderRadius:"inherit"}})}},da=Pn=>{const{componentCls:er,antCls:Lr,fontSizeSM:Gr,lineHeightSM:ai,colorPickerAlphaInputWidth:Qi,marginXXS:Pi,paddingXXS:fs,controlHeightSM:Ks,marginXS:Ma,fontSizeIcon:qa,paddingXS:rl,colorTextPlaceholder:Dl,colorPickerInputNumberHandleWidth:Oa,lineWidth:ju}=Pn;return{[`${er}-input-container`]:{display:"flex",[`${er}-steppers${Lr}-input-number`]:{fontSize:Gr,lineHeight:ai,[`${Lr}-input-number-input`]:{paddingInlineStart:fs,paddingInlineEnd:0},[`${Lr}-input-number-handler-wrap`]:{width:Oa}},[`${er}-steppers${er}-alpha-input`]:{flex:`0 0 ${Qi}px`,marginInlineStart:Pi},[`${er}-format-select${Lr}-select`]:{marginInlineEnd:Ma,width:"auto","&-single":{[`${Lr}-select-selector`]:{padding:0,border:0},[`${Lr}-select-arrow`]:{insetInlineEnd:0},[`${Lr}-select-selection-item`]:{paddingInlineEnd:qa+Pi,fontSize:Gr,lineHeight:`${Ks}px`},[`${Lr}-select-item-option-content`]:{fontSize:Gr,lineHeight:ai},[`${Lr}-select-dropdown`]:{[`${Lr}-select-item`]:{minHeight:"auto"}}}},[`${er}-input`]:{gap:Pi,alignItems:"center",flex:1,width:0,[`${er}-hsb-input,${er}-rgb-input`]:{display:"flex",gap:Pi,alignItems:"center"},[`${er}-steppers`]:{flex:1},[`${er}-hex-input${Lr}-input-affix-wrapper`]:{flex:1,padding:`0 ${rl}px`,[`${Lr}-input`]:{fontSize:Gr,textTransform:"uppercase",lineHeight:`${Ks-2*ju}px`},[`${Lr}-input-prefix`]:{color:Dl}}}}}},Al=Pn=>{const{componentCls:er,controlHeightLG:Lr,borderRadiusSM:Gr,colorPickerInsetShadow:ai,marginSM:Qi,colorBgElevated:Pi,colorFillSecondary:fs,lineWidthBold:Ks,colorPickerHandlerSize:Ma,colorPickerHandlerSizeSM:qa,colorPickerSliderHeight:rl}=Pn;return{[`${er}-select`]:{[`${er}-palette`]:{minHeight:Lr*4,overflow:"hidden",borderRadius:Gr},[`${er}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:ai,inset:0},marginBottom:Qi},[`${er}-handler`]:{width:Ma,height:Ma,border:`${Ks}px solid ${Pi}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${ai}, 0 0 0 1px ${fs}`,"&-sm":{width:qa,height:qa}},[`${er}-slider`]:{borderRadius:rl/2,[`${er}-palette`]:{height:rl},[`${er}-gradient`]:{borderRadius:rl/2,boxShadow:ai},"&-alpha":Zs(`${rl}px`,Pn.colorFillSecondary),"&-hue":{marginBottom:Qi}},[`${er}-slider-container`]:{display:"flex",gap:Qi,marginBottom:Qi,[`${er}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${er}-slider`]:{flex:1,marginBottom:0}}}}}},Ea=Pn=>{const{componentCls:er,antCls:Lr,colorTextQuaternary:Gr,paddingXXS:ai,colorPickerPresetColorSize:Qi,fontSizeSM:Pi,colorText:fs,lineHeightSM:Ks,lineWidth:Ma,borderRadius:qa,colorFill:rl,colorWhite:Dl,marginXXS:Oa,paddingXS:ju}=Pn;return{[`${er}-presets`]:{[`${Lr}-collapse-item > ${Lr}-collapse-header`]:{padding:0,[`${Lr}-collapse-expand-icon`]:{height:Pi*Ks,color:Gr,paddingInlineEnd:ai}},[`${Lr}-collapse`]:{display:"flex",flexDirection:"column",gap:Oa},[`${Lr}-collapse-item > ${Lr}-collapse-content > ${Lr}-collapse-content-box`]:{padding:`${ju}px 0`},"&-label":{fontSize:Pi,color:fs,lineHeight:Ks},"&-items":{display:"flex",flexWrap:"wrap",gap:Oa*1.5,[`${er}-presets-color`]:{position:"relative",cursor:"pointer",width:Qi,height:Qi,"&::before":{content:'""',pointerEvents:"none",width:Qi+4*Ma,height:Qi+4*Ma,position:"absolute",top:-2*Ma,insetInlineStart:-2*Ma,borderRadius:qa,border:`${Ma}px solid transparent`,transition:`border-color ${Pn.motionDurationMid} ${Pn.motionEaseInBack}`},"&:hover::before":{borderColor:rl},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Qi/13*5,height:Qi/13*8,border:`${Pn.lineWidthBold}px solid ${Pn.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Pn.motionDurationFast} ${Pn.motionEaseInBack}, opacity ${Pn.motionDurationFast}`},[`&${er}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:Dl,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${Pn.motionDurationMid} ${Pn.motionEaseOutBack} ${Pn.motionDurationFast}`},[`&${er}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:Pi,color:Gr}}}};const gl=(Pn,er,Lr)=>({borderInlineEndWidth:Pn.lineWidth,borderColor:er,boxShadow:`0 0 0 ${Pn.controlOutlineWidth}px ${Lr}`,outline:0}),ds=Pn=>{const{componentCls:er}=Pn;return{"&-rtl":{[`${er}-presets-color`]:{"&::after":{direction:"ltr"}},[`${er}-clear`]:{"&::after":{direction:"ltr"}}}}},Gi=(Pn,er,Lr)=>{const{componentCls:Gr,borderRadiusSM:ai,lineWidth:Qi,colorSplit:Pi,red6:fs}=Pn;return{[`${Gr}-clear`]:Object.assign(Object.assign({width:er,height:er,borderRadius:ai,border:`${Qi}px solid ${Pi}`,position:"relative",cursor:"pointer",overflow:"hidden"},Lr),{"&::after":{content:'""',position:"absolute",insetInlineEnd:Qi,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:fs}})}},Jo=Pn=>{const{componentCls:er,colorError:Lr,colorWarning:Gr,colorErrorHover:ai,colorWarningHover:Qi,colorErrorOutline:Pi,colorWarningOutline:fs}=Pn;return{[`&${er}-status-error`]:{borderColor:Lr,"&:hover":{borderColor:ai},[`&${er}-trigger-active`]:Object.assign({},gl(Pn,Lr,Pi))},[`&${er}-status-warning`]:{borderColor:Gr,"&:hover":{borderColor:Qi},[`&${er}-trigger-active`]:Object.assign({},gl(Pn,Gr,fs))}}},Ps=Pn=>{const{componentCls:er,controlHeightLG:Lr,controlHeightSM:Gr,controlHeight:ai,controlHeightXS:Qi,borderRadius:Pi,borderRadiusSM:fs,borderRadiusXS:Ks,borderRadiusLG:Ma,fontSizeLG:qa}=Pn;return{[`&${er}-lg`]:{minWidth:Lr,height:Lr,borderRadius:Ma,[`${er}-color-block, ${er}-clear`]:{width:ai,height:ai,borderRadius:Pi},[`${er}-trigger-text`]:{fontSize:qa}},[`&${er}-sm`]:{minWidth:Gr,height:Gr,borderRadius:fs,[`${er}-color-block, ${er}-clear`]:{width:Qi,height:Qi,borderRadius:Ks}}}},Fs=Pn=>{const{componentCls:er,colorPickerWidth:Lr,colorPrimary:Gr,motionDurationMid:ai,colorBgElevated:Qi,colorTextDisabled:Pi,colorText:fs,colorBgContainerDisabled:Ks,borderRadius:Ma,marginXS:qa,marginSM:rl,controlHeight:Dl,controlHeightSM:Oa,colorBgTextActive:ju,colorPickerPresetColorSize:Ia,colorPickerPreviewSize:Ha,lineWidth:tl,colorBorder:cu,paddingXXS:Xl,fontSize:yu,colorPrimaryHover:Cl,controlOutline:nu}=Pn;return[{[er]:Object.assign({[`${er}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:Lr,"&-divider":{margin:`${rl}px 0 ${qa}px`},[`${er}-panel`]:Object.assign({},Al(Pn))},js(Pn,Ha)),da(Pn)),Ea(Pn)),Gi(Pn,Ia,{marginInlineStart:"auto",marginBottom:qa})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:Dl,height:Dl,borderRadius:Ma,border:`${tl}px solid ${cu}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${ai}`,background:Qi,padding:Xl-tl,[`${er}-trigger-text`]:{marginInlineStart:qa,marginInlineEnd:qa-(Xl-tl),fontSize:yu,color:fs},"&:hover":{borderColor:Cl},[`&${er}-trigger-active`]:Object.assign({},gl(Pn,Gr,nu)),"&-disabled":{color:Pi,background:Ks,cursor:"not-allowed","&:hover":{borderColor:ju},[`${er}-trigger-text`]:{color:Pi}}},Gi(Pn,Oa)),js(Pn,Oa)),Jo(Pn)),Ps(Pn))},ds(Pn))}]};var Za=(0,to.Z)("ColorPicker",Pn=>{const{colorTextQuaternary:er,marginSM:Lr}=Pn,Gr=8,ai=(0,An.TS)(Pn,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${er}`,colorPickerSliderHeight:Gr,colorPickerPreviewSize:Gr*2+Lr});return[Fs(ai)]}),Nu=_(8799),Tc=function(Pn,er){var Lr={};for(var Gr in Pn)Object.prototype.hasOwnProperty.call(Pn,Gr)&&er.indexOf(Gr)<0&&(Lr[Gr]=Pn[Gr]);if(Pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ai=0,Gr=Object.getOwnPropertySymbols(Pn);ai{const{value:er,defaultValue:Lr,format:Gr,defaultFormat:ai,allowClear:Qi=!1,presets:Pi,children:fs,trigger:Ks="click",open:Ma,disabled:qa,placement:rl="bottomLeft",arrow:Dl=!0,panelRender:Oa,showText:ju,style:Ia,className:Ha,size:tl,rootClassName:cu,styles:Xl,disabledAlpha:yu=!1,onFormatChange:Cl,onChange:nu,onClear:Xn,onOpenChange:Ho,onChangeComplete:Ls,getPopupContainer:Xs,autoAdjustOverflow:il=!0,destroyTooltipOnHide:iu}=Pn,hu=Tc(Pn,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:ic,direction:Gu,colorPicker:pc}=(0,v.useContext)(R.E_),[,qc]=(0,T.Z)(),[Lc,jh]=ba(qc.colorPrimary,{value:er,defaultValue:Lr}),[Md,ad]=(0,x.Z)(!1,{value:Ma,postState:Sd=>!qa&&Sd,onChange:Ho}),[kh,hc]=(0,x.Z)(Gr,{value:Gr,defaultValue:ai,onChange:Cl}),[yc,Uh]=(0,v.useState)(!1),yh=ic("color-picker",Qt),pd=(0,v.useMemo)(()=>wr(Lc)<100,[Lc]),{status:Ed}=v.useContext(S.aM),vh=(0,k.Z)(tl),[zd,Th]=Za(yh),gh={[`${yh}-rtl`]:Gu},Mf=C()(cu,gh),gd=C()((0,V.Z)(yh,Ed),{[`${yh}-sm`]:vh==="small",[`${yh}-lg`]:vh==="large"},pc==null?void 0:pc.className,Mf,Ha,Th),Yu=C()(yh,gh),nh=(0,v.useRef)(!0),Nd=(Sd,Eu,xf)=>{let ol=Dn(Sd);(yc||(er===null||!er&&Lr===null))&&(Uh(!1),wr(Lc)===0&&Eu!=="alpha"&&(ol=jr(ol))),yu&&pd&&(ol=jr(ol)),xf?nh.current=!1:Ls==null||Ls(ol),jh(ol),nu==null||nu(ol,ol.toHexString())},df=()=>{Uh(!0),Xn==null||Xn()},bf=Sd=>{nh.current=!0;let Eu=Dn(Sd);yu&&pd&&(Eu=jr(Sd)),Ls==null||Ls(Eu)},Of={open:Md,trigger:Ks,placement:rl,arrow:Dl,rootClassName:cu,getPopupContainer:Xs,autoAdjustOverflow:il,destroyTooltipOnHide:iu},Yf={prefixCls:yh,color:Lc,allowClear:Qi,colorCleared:yc,disabled:qa,disabledAlpha:yu,presets:Pi,panelRender:Oa,format:kh,onFormatChange:hc,onChangeComplete:bf},Bf=Object.assign(Object.assign({},pc==null?void 0:pc.style),Ia),[xd]=(0,Nu.Cn)("ColorPicker");return zd(v.createElement(p.Z,Object.assign({style:Xl==null?void 0:Xl.popup,overlayInnerStyle:Xl==null?void 0:Xl.popupOverlayInner,onOpenChange:Sd=>{nh.current&&!qa&&ad(Sd)},content:v.createElement(S.Ux,{override:!0,status:!0},v.createElement(Yr,Object.assign({},Yf,{onChange:Nd,onChangeComplete:bf,onClear:df}))),overlayClassName:Yu,zIndex:xd},Of),fs||v.createElement(Ii,Object.assign({open:Md,className:gd,style:Bf,color:er?Dn(er):Lc,prefixCls:yh,disabled:qa,colorCleared:yc,showText:ju,format:kh},hu))))},tc=(0,N.Z)(Pc,"color-picker",Pn=>Pn,Pn=>Object.assign(Object.assign({},Pn),{placement:"bottom",autoAdjustOverflow:!1}));Pc._InternalPanelDoNotUseOrYouWillBeFired=tc;var cc=Pc,Uu=cc},57132:function(mt,q,_){"use strict";_.d(q,{n:function(){return C}});var v=_(77617);const M=v.createContext(!1),C=x=>{let{children:N,disabled:V}=x;const R=v.useContext(M);return v.createElement(M.Provider,{value:V!=null?V:R},N)};q.Z=M},61629:function(mt,q,_){"use strict";_.d(q,{q:function(){return C}});var v=_(77617);const M=v.createContext(void 0),C=x=>{let{children:N,size:V}=x;const R=v.useContext(M);return v.createElement(M.Provider,{value:V||R},N)};q.Z=M},41203:function(mt,q,_){"use strict";_.d(q,{E_:function(){return x},oR:function(){return M}});var v=_(77617);const M="anticon",C=(V,R)=>R||(V?`ant-${V}`:"ant"),x=v.createContext({getPrefixCls:C,iconPrefixCls:M}),{Consumer:N}=x},56524:function(mt,q,_){"use strict";var v=_(77617),M=_(41203),C=_(71025);const x=N=>{const{componentName:V}=N,{getPrefixCls:R}=(0,v.useContext)(M.E_),k=R("empty");switch(V){case"Table":case"List":return v.createElement(C.Z,{image:C.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return v.createElement(C.Z,{image:C.Z.PRESENTED_IMAGE_SIMPLE,className:`${k}-small`});default:return v.createElement(C.Z,null)}};q.Z=x},29212:function(mt,q,_){"use strict";var v=_(77617),M=_(61629);const C=x=>{const N=v.useContext(M.Z);return v.useMemo(()=>x?typeof x=="string"?x!=null?x:N:x instanceof Function?x(N):N:N,[x,N])};q.Z=C},87255:function(mt,q,_){"use strict";_.d(q,{ZP:function(){return co},w6:function(){return De}});var v=_(77617),M=_(84608),C=_(35954),x=_(79102),N=_(66181),V=_(93837),R=_(94680),k=_(16831),S=_(48851);const p="internalMark";var F=Vr=>{const{locale:Ro={},children:Tn,_ANT_MARK__:nt}=Vr;v.useEffect(()=>(0,k.f)(Ro&&Ro.Modal),[Ro]);const Ct=v.useMemo(()=>Object.assign(Object.assign({},Ro),{exist:!0}),[Ro]);return v.createElement(S.Z.Provider,{value:Ct},Tn)},K=_(47462),he=_(75408),fe=_(59916),be=_(41203),Ae=_(63511),xe=_(64993),Se=_(53261),it=_(68063);const Xe=`-ant-${Date.now()}-${Math.random()}`;function ft(Vr,Ro){const Tn={},nt=(hn,En)=>{let rn=hn.clone();return rn=(En==null?void 0:En(rn))||rn,rn.toRgbString()},Ct=(hn,En)=>{const rn=new xe.C(hn),Jt=(0,Ae.R_)(rn.toRgbString());Tn[`${En}-color`]=nt(rn),Tn[`${En}-color-disabled`]=Jt[1],Tn[`${En}-color-hover`]=Jt[4],Tn[`${En}-color-active`]=Jt[6],Tn[`${En}-color-outline`]=rn.clone().setAlpha(.2).toRgbString(),Tn[`${En}-color-deprecated-bg`]=Jt[0],Tn[`${En}-color-deprecated-border`]=Jt[2]};if(Ro.primaryColor){Ct(Ro.primaryColor,"primary");const hn=new xe.C(Ro.primaryColor),En=(0,Ae.R_)(hn.toRgbString());En.forEach((Jt,Mt)=>{Tn[`primary-${Mt+1}`]=Jt}),Tn["primary-color-deprecated-l-35"]=nt(hn,Jt=>Jt.lighten(35)),Tn["primary-color-deprecated-l-20"]=nt(hn,Jt=>Jt.lighten(20)),Tn["primary-color-deprecated-t-20"]=nt(hn,Jt=>Jt.tint(20)),Tn["primary-color-deprecated-t-50"]=nt(hn,Jt=>Jt.tint(50)),Tn["primary-color-deprecated-f-12"]=nt(hn,Jt=>Jt.setAlpha(Jt.getAlpha()*.12));const rn=new xe.C(En[0]);Tn["primary-color-active-deprecated-f-30"]=nt(rn,Jt=>Jt.setAlpha(Jt.getAlpha()*.3)),Tn["primary-color-active-deprecated-d-02"]=nt(rn,Jt=>Jt.darken(2))}return Ro.successColor&&Ct(Ro.successColor,"success"),Ro.warningColor&&Ct(Ro.warningColor,"warning"),Ro.errorColor&&Ct(Ro.errorColor,"error"),Ro.infoColor&&Ct(Ro.infoColor,"info"),` :root { - ${Object.keys(dn).map(Wt=>`--${ji}-${Wt}: ${dn[Wt]};`).join(` + ${Object.keys(Tn).map(hn=>`--${Vr}-${hn}: ${Tn[hn]};`).join(` `)} } - `.trim()}function be(ji,No){const dn=je(ji,No);(0,fe.Z)()&&(0,Be.hq)(dn,`${Ie}-dynamic-theme`)}var ve=m(81689),ye=m(75189);function Ce(){const ji=(0,y.useContext)(ve.Z),No=(0,y.useContext)(ye.Z);return{componentDisabled:ji,componentSize:No}}var xe=Ce,Ae=m(68554);function ge(ji,No){const dn=ji||{},Ve=dn.inherit===!1||!No?te.u_:No;return(0,z.Z)(()=>{if(!ji)return No;const yt=Object.assign({},Ve.components);return Object.keys(ji.components||{}).forEach(xt=>{yt[xt]=Object.assign(Object.assign({},yt[xt]),ji.components[xt])}),Object.assign(Object.assign(Object.assign({},Ve),dn),{token:Object.assign(Object.assign({},Ve.token),dn.token),components:yt})},[dn,Ve],(yt,xt)=>yt.some((Wt,sn)=>{const Ot=xt[sn];return!(0,Ae.Z)(Wt,Ot,!0)}))}var We=m(44516),Se=m(99737);function Pt(ji){const{children:No}=ji,[,dn]=(0,Se.Z)(),{motion:Ve}=dn,yt=y.useRef(!1);return yt.current=yt.current||Ve===!1,yt.current?y.createElement(We.zt,{motion:Ve},No):No}const dt=null;var He=()=>null,Ct=m(69569),ft=function(ji,No){var dn={};for(var Ve in ji)Object.prototype.hasOwnProperty.call(ji,Ve)&&No.indexOf(Ve)<0&&(dn[Ve]=ji[Ve]);if(ji!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Ve=Object.getOwnPropertySymbols(ji);ytNo.endsWith("Color"))}const fs=ji=>{let{prefixCls:No,iconPrefixCls:dn,theme:Ve}=ji;No!==void 0&&(ri=No),dn!==void 0&&(gi=dn),Ve&&(Bo(Ve)?be(To(),Ve):ro=Ve)},me=()=>({getPrefixCls:(ji,No)=>No||(ji?`${To()}-${ji}`:To()),getIconPrefixCls:_r,getRootPrefixCls:()=>ri||To(),getTheme:()=>ro}),So=ji=>{const{children:No,csp:dn,autoInsertSpaceInButton:Ve,alert:yt,anchor:xt,form:Wt,locale:sn,componentSize:Ot,direction:Tt,space:bt,virtual:Ht,dropdownMatchSelectWidth:zn,popupMatchSelectWidth:en,popupOverflow:fr,legacyLocale:Kr,parentContext:ii,iconPrefixCls:si,theme:uo,componentDisabled:Qo,segmented:_n,statistic:Vr,spin:qr,calendar:Ui,carousel:xo,cascader:Us,collapse:$n,typography:Kn,checkbox:Fr,descriptions:mi,divider:Tr,drawer:ti,skeleton:di,steps:rn,image:Qn,layout:Xr,list:ao,mentions:as,modal:Bt,progress:pn,result:xr,slider:Jr,breadcrumb:vi,menu:Ti,pagination:co,input:Qr,empty:oi,badge:Zi,radio:Ir,rate:tn,switch:Gn,transfer:Ei,avatar:Ln,message:Ii,tag:nr,table:wi,card:Mi,tabs:Rr,timeline:Xn,timePicker:ms,upload:ya,notification:fa,tree:Ws,colorPicker:Ua,datePicker:Ao,flex:cl,wave:$r,warning:er}=ji,Dr=y.useCallback((En,tt)=>{const{prefixCls:at}=ji;if(tt)return tt;const gt=at||ii.getPrefixCls("");return En?`${gt}-${En}`:gt},[ii.getPrefixCls,ji.prefixCls]),pr=si||ii.iconPrefixCls||ce.oR,ci=dn||ii.csp;(0,Ct.Z)(pr,ci);const Eo=ge(uo,ii.theme),mo={csp:ci,autoInsertSpaceInButton:Ve,alert:yt,anchor:xt,locale:sn||Kr,direction:Tt,space:bt,virtual:Ht,popupMatchSelectWidth:en!=null?en:zn,popupOverflow:fr,getPrefixCls:Dr,iconPrefixCls:pr,theme:Eo,segmented:_n,statistic:Vr,spin:qr,calendar:Ui,carousel:xo,cascader:Us,collapse:$n,typography:Kn,checkbox:Fr,descriptions:mi,divider:Tr,drawer:ti,skeleton:di,steps:rn,image:Qn,input:Qr,layout:Xr,list:ao,mentions:as,modal:Bt,progress:pn,result:xr,slider:Jr,breadcrumb:vi,menu:Ti,pagination:co,empty:oi,badge:Zi,radio:Ir,rate:tn,switch:Gn,transfer:Ei,avatar:Ln,message:Ii,tag:nr,table:wi,card:Mi,tabs:Rr,timeline:Xn,timePicker:ms,upload:ya,notification:fa,tree:Ws,colorPicker:Ua,datePicker:Ao,flex:cl,wave:$r,warning:er},Ts=Object.assign({},ii);Object.keys(mo).forEach(En=>{mo[En]!==void 0&&(Ts[En]=mo[En])}),Bn.forEach(En=>{const tt=ji[En];tt&&(Ts[En]=tt)});const xs=(0,z.Z)(()=>Ts,Ts,(En,tt)=>{const at=Object.keys(En),gt=Object.keys(tt);return at.length!==gt.length||at.some(Re=>En[Re]!==tt[Re])}),Er=y.useMemo(()=>({prefixCls:pr,csp:ci}),[pr,ci]);let ui=y.createElement(y.Fragment,null,y.createElement(He,{dropdownMatchSelectWidth:zn}),No);const Xt=y.useMemo(()=>{var En,tt,at,gt;return(0,k.T)(((En=W.Z.Form)===null||En===void 0?void 0:En.defaultValidateMessages)||{},((at=(tt=xs.locale)===null||tt===void 0?void 0:tt.Form)===null||at===void 0?void 0:at.defaultValidateMessages)||{},((gt=xs.form)===null||gt===void 0?void 0:gt.validateMessages)||{},(Wt==null?void 0:Wt.validateMessages)||{})},[xs,Wt==null?void 0:Wt.validateMessages]);Object.keys(Xt).length>0&&(ui=y.createElement(w.Z.Provider,{value:Xt},ui)),sn&&(ui=y.createElement(P,{locale:sn,_ANT_MARK__:f},ui)),(pr||ci)&&(ui=y.createElement(b.Z.Provider,{value:Er},ui)),Ot&&(ui=y.createElement(ye.q,{size:Ot},ui)),ui=y.createElement(Pt,null,ui);const gn=y.useMemo(()=>{const En=Eo||{},{algorithm:tt,token:at,components:gt}=En,Re=ft(En,["algorithm","token","components"]),lt=tt&&(!Array.isArray(tt)||tt.length>0)?(0,I.jG)(tt):te.uH,St={};Object.entries(gt||{}).forEach(Vn=>{let[wr,ki]=Vn;const Vi=Object.assign({},ki);"algorithm"in Vi&&(Vi.algorithm===!0?Vi.theme=lt:(Array.isArray(Vi.algorithm)||typeof Vi.algorithm=="function")&&(Vi.theme=(0,I.jG)(Vi.algorithm)),delete Vi.algorithm),St[wr]=Vi});const ln=Object.assign(Object.assign({},re.Z),at);return Object.assign(Object.assign({},Re),{theme:lt,token:ln,components:St,override:Object.assign({override:ln},St)})},[Eo]);return uo&&(ui=y.createElement(te.Mj.Provider,{value:gn},ui)),xs.warning&&(ui=y.createElement(N.G8.Provider,{value:xs.warning},ui)),Qo!==void 0&&(ui=y.createElement(ve.n,{disabled:Qo},ui)),y.createElement(ce.E_.Provider,{value:xs},ui)},ho=ji=>{const No=y.useContext(ce.E_),dn=y.useContext(C.Z);return y.createElement(So,Object.assign({parentContext:No,legacyLocale:dn},ji))};ho.ConfigContext=ce.E_,ho.SizeContext=ye.Z,ho.config=fs,ho.useConfig=xe,Object.defineProperty(ho,"SizeContext",{get:()=>ye.Z});var go=ho},1856:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ft}});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(zt,mt){var yn={};for(var Bn in zt)Object.prototype.hasOwnProperty.call(zt,Bn)&&mt.indexOf(Bn)<0&&(yn[Bn]=zt[Bn]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,Bn=Object.getOwnPropertySymbols(zt);Lr(0,P.Z)(zt).map(mt=>Object.assign({},mt==null?void 0:mt.props));function re(zt,mt,yn){const Bn=y.useMemo(()=>mt||te(yn),[mt,yn]);return y.useMemo(()=>Bn.map(ri=>{var{span:gi}=ri,ro=W(ri,["span"]);return Object.assign(Object.assign({},ro),{span:typeof gi=="number"?gi:(0,z.m9)(zt,gi)})}),[Bn,zt])}function ce(zt,mt,yn){let Bn=zt,Lr=!1;return(yn===void 0||yn>mt)&&(Bn=Object.assign(Object.assign({},zt),{span:mt}),Lr=yn!==void 0),[Bn,Lr]}function pe(zt,mt){const yn=[];let Bn=[],Lr=mt,ri=!1;return zt.filter(gi=>gi).forEach((gi,ro)=>{const To=gi==null?void 0:gi.span,_r=To||1;if(ro===zt.length-1){const[Bo,fs]=ce(gi,Lr,To);ri=ri||fs,Bn.push(Bo),yn.push(Bn);return}if(_r{const[yn,Bn]=(0,y.useMemo)(()=>pe(mt,zt),[mt,zt]);return yn},Ie=zt=>{let{children:mt}=zt;return mt};function je(zt){return zt!=null}var ve=zt=>{const{itemPrefixCls:mt,component:yn,span:Bn,className:Lr,style:ri,labelStyle:gi,contentStyle:ro,bordered:To,label:_r,content:Bo,colon:fs}=zt,me=yn;return To?y.createElement(me,{className:b()({[`${mt}-item-label`]:je(_r),[`${mt}-item-content`]:je(Bo)},Lr),style:ri,colSpan:Bn},je(_r)&&y.createElement("span",{style:gi},_r),je(Bo)&&y.createElement("span",{style:ro},Bo)):y.createElement(me,{className:b()(`${mt}-item`,Lr),style:ri,colSpan:Bn},y.createElement("div",{className:`${mt}-item-container`},(_r||_r===0)&&y.createElement("span",{className:b()(`${mt}-item-label`,{[`${mt}-item-no-colon`]:!fs}),style:gi},_r),(Bo||Bo===0)&&y.createElement("span",{className:b()(`${mt}-item-content`),style:ro},Bo)))};function ye(zt,mt,yn){let{colon:Bn,prefixCls:Lr,bordered:ri}=mt,{component:gi,type:ro,showLabel:To,showContent:_r,labelStyle:Bo,contentStyle:fs}=yn;return zt.map((me,So)=>{let{label:ho,children:go,prefixCls:ji=Lr,className:No,style:dn,labelStyle:Ve,contentStyle:yt,span:xt=1,key:Wt}=me;return typeof gi=="string"?y.createElement(ve,{key:`${ro}-${Wt||So}`,className:No,style:dn,labelStyle:Object.assign(Object.assign({},Bo),Ve),contentStyle:Object.assign(Object.assign({},fs),yt),span:xt,colon:Bn,component:gi,itemPrefixCls:ji,bordered:ri,label:To?ho:null,content:_r?go:null}):[y.createElement(ve,{key:`label-${Wt||So}`,className:No,style:Object.assign(Object.assign(Object.assign({},Bo),dn),Ve),span:1,colon:Bn,component:gi[0],itemPrefixCls:ji,bordered:ri,label:ho}),y.createElement(ve,{key:`content-${Wt||So}`,className:No,style:Object.assign(Object.assign(Object.assign({},fs),dn),yt),span:xt*2-1,component:gi[1],itemPrefixCls:ji,bordered:ri,content:go})]})}var xe=zt=>{const mt=y.useContext(S),{prefixCls:yn,vertical:Bn,row:Lr,index:ri,bordered:gi}=zt;return Bn?y.createElement(y.Fragment,null,y.createElement("tr",{key:`label-${ri}`,className:`${yn}-row`},ye(Lr,zt,Object.assign({component:"th",type:"label",showLabel:!0},mt))),y.createElement("tr",{key:`content-${ri}`,className:`${yn}-row`},ye(Lr,zt,Object.assign({component:"td",type:"content",showContent:!0},mt)))):y.createElement("tr",{key:ri,className:`${yn}-row`},ye(Lr,zt,Object.assign({component:gi?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},mt)))},Ae=m(92068),ge=m(24577),We=m(41788);const Se=zt=>{const{componentCls:mt,labelBg:yn}=zt;return{[`&${mt}-bordered`]:{[`> ${mt}-view`]:{border:`${zt.lineWidth}px ${zt.lineType} ${zt.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${mt}-row`]:{borderBottom:`${zt.lineWidth}px ${zt.lineType} ${zt.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${mt}-item-label, > ${mt}-item-content`]:{padding:`${zt.padding}px ${zt.paddingLG}px`,borderInlineEnd:`${zt.lineWidth}px ${zt.lineType} ${zt.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${mt}-item-label`]:{color:zt.colorTextSecondary,backgroundColor:yn,"&::after":{display:"none"}}}},[`&${mt}-middle`]:{[`${mt}-row`]:{[`> ${mt}-item-label, > ${mt}-item-content`]:{padding:`${zt.paddingSM}px ${zt.paddingLG}px`}}},[`&${mt}-small`]:{[`${mt}-row`]:{[`> ${mt}-item-label, > ${mt}-item-content`]:{padding:`${zt.paddingXS}px ${zt.padding}px`}}}}}},Pt=zt=>{const{componentCls:mt,extraColor:yn,itemPaddingBottom:Bn,colonMarginRight:Lr,colonMarginLeft:ri,titleMarginBottom:gi}=zt;return{[mt]:Object.assign(Object.assign(Object.assign({},(0,Ae.Wf)(zt)),Se(zt)),{["&-rtl"]:{direction:"rtl"},[`${mt}-header`]:{display:"flex",alignItems:"center",marginBottom:gi},[`${mt}-title`]:Object.assign(Object.assign({},Ae.vS),{flex:"auto",color:zt.titleColor,fontWeight:zt.fontWeightStrong,fontSize:zt.fontSizeLG,lineHeight:zt.lineHeightLG}),[`${mt}-extra`]:{marginInlineStart:"auto",color:yn,fontSize:zt.fontSize},[`${mt}-view`]:{width:"100%",borderRadius:zt.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${mt}-row`]:{"> th, > td":{paddingBottom:Bn},"&:last-child":{borderBottom:"none"}},[`${mt}-item-label`]:{color:zt.colorTextTertiary,fontWeight:"normal",fontSize:zt.fontSize,lineHeight:zt.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${ri}px ${Lr}px`},[`&${mt}-item-no-colon::after`]:{content:'""'}},[`${mt}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${mt}-item-content`]:{display:"table-cell",flex:1,color:zt.contentColor,fontSize:zt.fontSize,lineHeight:zt.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:zt.paddingSM}}},"&-small":{[`${mt}-row`]:{"> th, > td":{paddingBottom:zt.paddingXS}}}})}};var dt=(0,ge.Z)("Descriptions",zt=>{const mt=(0,We.TS)(zt,{});return[Pt(mt)]},zt=>({labelBg:zt.colorFillAlter,titleColor:zt.colorText,titleMarginBottom:zt.fontSizeSM*zt.lineHeightSM,itemPaddingBottom:zt.padding,colonMarginRight:zt.marginXS,colonMarginLeft:zt.marginXXS/2,contentColor:zt.colorText,extraColor:zt.colorText})),He=function(zt,mt){var yn={};for(var Bn in zt)Object.prototype.hasOwnProperty.call(zt,Bn)&&mt.indexOf(Bn)<0&&(yn[Bn]=zt[Bn]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,Bn=Object.getOwnPropertySymbols(zt);Lr{const{prefixCls:mt,title:yn,extra:Bn,column:Lr,colon:ri=!0,bordered:gi,layout:ro,children:To,className:_r,rootClassName:Bo,style:fs,size:me,labelStyle:So,contentStyle:ho,items:go}=zt,ji=He(zt,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:No,direction:dn,descriptions:Ve}=y.useContext(k.E_),yt=No("descriptions",mt),xt=(0,w.Z)(),Wt=y.useMemo(()=>{var en;return typeof Lr=="number"?Lr:(en=(0,z.m9)(xt,Object.assign(Object.assign({},C),Lr)))!==null&&en!==void 0?en:3},[xt,Lr]),sn=re(xt,go,To),Ot=(0,N.Z)(me),Tt=fe(Wt,sn),[bt,Ht]=dt(yt),zn=y.useMemo(()=>({labelStyle:So,contentStyle:ho}),[So,ho]);return bt(y.createElement(S.Provider,{value:zn},y.createElement("div",Object.assign({className:b()(yt,Ve==null?void 0:Ve.className,{[`${yt}-${Ot}`]:Ot&&Ot!=="default",[`${yt}-bordered`]:!!gi,[`${yt}-rtl`]:dn==="rtl"},_r,Bo,Ht),style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),fs)},ji),(yn||Bn)&&y.createElement("div",{className:`${yt}-header`},yn&&y.createElement("div",{className:`${yt}-title`},yn),Bn&&y.createElement("div",{className:`${yt}-extra`},Bn)),y.createElement("div",{className:`${yt}-view`},y.createElement("table",null,y.createElement("tbody",null,Tt.map((en,fr)=>y.createElement(xe,{key:fr,index:fr,colon:ri,prefixCls:yt,vertical:ro==="vertical",bordered:gi,row:en}))))))))};Ct.Item=Ie;var ft=Ct},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:te,sizePaddingEdgeHorizontal:re,colorSplit:ce,lineWidth:pe,textPaddingInline:he,orientationMargin:fe,verticalMarginInline:Be}=W;return{[te]: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${te}-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${te}-with-text-left`]:{"&::before":{width:`${fe*100}%`},"&::after":{width:`${100-fe*100}%`}},[`&-horizontal${te}-with-text-right`]:{"&::before":{width:`${100-fe*100}%`},"&::after":{width:`${fe*100}%`}},[`${te}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:he},"&-dashed":{background:"none",borderColor:ce,borderStyle:"dashed",borderWidth:`${pe}px 0 0`},[`&-horizontal${te}-with-text${te}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${te}-dashed`]:{borderInlineStartWidth:pe,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${te}-with-text`]:{color:W.colorText,fontWeight:"normal",fontSize:W.fontSize},[`&-horizontal${te}-with-text-left${te}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${te}-inner-text`]:{paddingInlineStart:re}},[`&-horizontal${te}-with-text-right${te}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${te}-inner-text`]:{paddingInlineEnd:re}}})}};var C=(0,N.Z)("Divider",W=>{const te=(0,w.TS)(W,{dividerHorizontalWithTextGutterMargin:W.margin,dividerHorizontalGutterMargin:W.marginLG,sizePaddingEdgeHorizontal:0});return[A(te)]},W=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:W.marginXS})),f=function(W,te){var re={};for(var ce in W)Object.prototype.hasOwnProperty.call(W,ce)&&te.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:te,direction:re,divider:ce}=y.useContext(z.E_),{prefixCls:pe,type:he="horizontal",orientation:fe="center",orientationMargin:Be,className:Ie,rootClassName:je,children:be,dashed:ve,plain:ye,style:Ce}=W,xe=f(W,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Ae=te("divider",pe),[ge,We]=C(Ae),Se=fe.length>0?`-${fe}`:fe,Pt=!!be,dt=fe==="left"&&Be!=null,He=fe==="right"&&Be!=null,Ct=b()(Ae,ce==null?void 0:ce.className,We,`${Ae}-${he}`,{[`${Ae}-with-text`]:Pt,[`${Ae}-with-text${Se}`]:Pt,[`${Ae}-dashed`]:!!ve,[`${Ae}-plain`]:!!ye,[`${Ae}-rtl`]:re==="rtl",[`${Ae}-no-default-orientation-margin-left`]:dt,[`${Ae}-no-default-orientation-margin-right`]:He},Ie,je),ft=y.useMemo(()=>typeof Be=="number"?Be:/^\d+$/.test(Be)?Number(Be):Be,[Be]),zt=Object.assign(Object.assign({},dt&&{marginLeft:ft}),He&&{marginRight:ft});return ge(y.createElement("div",Object.assign({className:Ct,style:Object.assign(Object.assign({},ce==null?void 0:ce.style),Ce)},xe,{role:"separator"}),be&&he!=="vertical"&&y.createElement("span",{className:`${Ae}-inner-text`,style:zt},be)))}},30899:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ri}});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),te=m(7205),re=m(63044),ce=m(99737),pe=m(92068),he=m(22759),fe=m(40659),Be=m(69601),Ie=m(72881),je=m(24577),be=m(41788),ye=gi=>{const{componentCls:ro,menuCls:To,colorError:_r,colorTextLightSolid:Bo}=gi,fs=`${To}-item`;return{[`${ro}, ${ro}-menu-submenu`]:{[`${To} ${fs}`]:{[`&${fs}-danger:not(${fs}-disabled)`]:{color:_r,"&:hover":{color:Bo,backgroundColor:_r}}}}}};const Ce=gi=>{const{componentCls:ro,menuCls:To,zIndexPopup:_r,dropdownArrowDistance:Bo,sizePopupArrow:fs,antCls:me,iconCls:So,motionDurationMid:ho,dropdownPaddingVertical:go,fontSize:ji,dropdownEdgeChildPadding:No,colorTextDisabled:dn,fontSizeIcon:Ve,controlPaddingHorizontal:yt,colorBgElevated:xt}=gi;return[{[ro]:Object.assign(Object.assign({},(0,pe.Wf)(gi)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:_r,display:"block","&::before":{position:"absolute",insetBlock:-Bo+fs/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${me}-btn`]:{[`& > ${So}-down, & > ${me}-btn-icon > ${So}-down`]:{fontSize:Ve}},[`${ro}-wrap`]:{position:"relative",[`${me}-btn > ${So}-down`]:{fontSize:Ve},[`${So}-down::before`]:{transition:`transform ${ho}`}},[`${ro}-wrap-open`]:{[`${So}-down::before`]:{transform:"rotate(180deg)"}},[` + `.trim()}function Me(Vr,Ro){const Tn=ft(Vr,Ro);(0,Se.Z)()&&(0,it.hq)(Tn,`${Xe}-dynamic-theme`)}var Ee=_(57132),ze=_(61629);function Pe(){const Vr=(0,v.useContext)(Ee.Z),Ro=(0,v.useContext)(ze.Z);return{componentDisabled:Vr,componentSize:Ro}}var Re=Pe,je=_(68554);function Ce(Vr,Ro){const Tn=Vr||{},nt=Tn.inherit===!1||!Ro?he.u_:Ro;return(0,x.Z)(()=>{if(!Vr)return Ro;const Ct=Object.assign({},nt.components);return Object.keys(Vr.components||{}).forEach(Ht=>{Ct[Ht]=Object.assign(Object.assign({},Ct[Ht]),Vr.components[Ht])}),Object.assign(Object.assign(Object.assign({},nt),Tn),{token:Object.assign(Object.assign({},nt.token),Tn.token),components:Ct})},[Tn,nt],(Ct,Ht)=>Ct.some((hn,En)=>{const rn=Ht[En];return!(0,je.Z)(hn,rn,!0)}))}var rt=_(44516),Ne=_(45844);function Xt(Vr){const{children:Ro}=Vr,[,Tn]=(0,Ne.Z)(),{motion:nt}=Tn,Ct=v.useRef(!1);return Ct.current=Ct.current||nt===!1,Ct.current?v.createElement(rt.zt,{motion:nt},Ro):Ro}const Ft=null;var lt=()=>null,Bt=_(76701),At=function(Vr,Ro){var Tn={};for(var nt in Vr)Object.prototype.hasOwnProperty.call(Vr,nt)&&Ro.indexOf(nt)<0&&(Tn[nt]=Vr[nt]);if(Vr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,nt=Object.getOwnPropertySymbols(Vr);CtRo.endsWith("Color"))}const ms=Vr=>{let{prefixCls:Ro,iconPrefixCls:Tn,theme:nt}=Vr;Ro!==void 0&&(Kr=Ro),Tn!==void 0&&(Ui=Tn),nt&&(To(nt)?Me(gi(),nt):go=nt)},De=()=>({getPrefixCls:(Vr,Ro)=>Ro||(Vr?`${gi()}-${Vr}`:gi()),getIconPrefixCls:Mr,getRootPrefixCls:()=>Kr||gi(),getTheme:()=>go}),Oo=Vr=>{const{children:Ro,csp:Tn,autoInsertSpaceInButton:nt,alert:Ct,anchor:Ht,form:hn,locale:En,componentSize:rn,direction:Jt,space:Mt,virtual:Qt,dropdownMatchSelectWidth:Dn,popupMatchSelectWidth:sn,popupOverflow:wr,legacyLocale:jr,parentContext:xi,iconPrefixCls:Pr,theme:Hi,componentDisabled:Io,segmented:On,statistic:zr,spin:qr,calendar:Wi,carousel:ir,cascader:Jn,collapse:$t,typography:Gt,checkbox:wn,descriptions:Zn,divider:_r,drawer:qn,skeleton:$n,steps:jt,image:In,layout:vr,list:Ur,mentions:Ao,modal:Yt,progress:xn,result:fr,slider:Nr,breadcrumb:bi,menu:Ei,pagination:Yi,input:di,empty:Wr,badge:Ni,radio:kr,rate:Xr,switch:yo,transfer:ls,avatar:Sr,message:hs,tag:ta,table:fi,card:Po,tabs:mo,timeline:or,timePicker:Oi,upload:Wa,notification:Sa,tree:xa,colorPicker:Ml,datePicker:wo,rangePicker:_l,flex:El,wave:Ai,dropdown:to,warning:An}=Vr,ri=v.useCallback((xt,Et)=>{const{prefixCls:et}=Vr;if(Et)return Et;const wt=et||xi.getPrefixCls("");return xt?`${wt}-${xt}`:wt},[xi.getPrefixCls,Vr.prefixCls]),ao=Pr||xi.iconPrefixCls||be.oR,Mi=Tn||xi.csp;(0,Bt.Z)(ao,Mi);const _s=Ce(Hi,xi.theme),Hs={csp:Mi,autoInsertSpaceInButton:nt,alert:Ct,anchor:Ht,locale:En||jr,direction:Jt,space:Mt,virtual:Qt,popupMatchSelectWidth:sn!=null?sn:Dn,popupOverflow:wr,getPrefixCls:ri,iconPrefixCls:ao,theme:_s,segmented:On,statistic:zr,spin:qr,calendar:Wi,carousel:ir,cascader:Jn,collapse:$t,typography:Gt,checkbox:wn,descriptions:Zn,divider:_r,drawer:qn,skeleton:$n,steps:jt,image:In,input:di,layout:vr,list:Ur,mentions:Ao,modal:Yt,progress:xn,result:fr,slider:Nr,breadcrumb:bi,menu:Ei,pagination:Yi,empty:Wr,badge:Ni,radio:kr,rate:Xr,switch:yo,transfer:ls,avatar:Sr,message:hs,tag:ta,table:fi,card:Po,tabs:mo,timeline:or,timePicker:Oi,upload:Wa,notification:Sa,tree:xa,colorPicker:Ml,datePicker:wo,rangePicker:_l,flex:El,wave:Ai,dropdown:to,warning:An},Hr=Object.assign({},xi);Object.keys(Hs).forEach(xt=>{Hs[xt]!==void 0&&(Hr[xt]=Hs[xt])}),mn.forEach(xt=>{const Et=Vr[xt];Et&&(Hr[xt]=Et)});const Bi=(0,x.Z)(()=>Hr,Hr,(xt,Et)=>{const et=Object.keys(xt),wt=Object.keys(Et);return et.length!==wt.length||et.some(Vt=>xt[Vt]!==Et[Vt])}),fn=v.useMemo(()=>({prefixCls:ao,csp:Mi}),[ao,Mi]);let Ln=v.createElement(v.Fragment,null,v.createElement(lt,{dropdownMatchSelectWidth:Dn}),Ro);const ur=v.useMemo(()=>{var xt,Et,et,wt;return(0,N.T)(((xt=K.Z.Form)===null||xt===void 0?void 0:xt.defaultValidateMessages)||{},((et=(Et=Bi.locale)===null||Et===void 0?void 0:Et.Form)===null||et===void 0?void 0:et.defaultValidateMessages)||{},((wt=Bi.form)===null||wt===void 0?void 0:wt.validateMessages)||{},(hn==null?void 0:hn.validateMessages)||{})},[Bi,hn==null?void 0:hn.validateMessages]);Object.keys(ur).length>0&&(Ln=v.createElement(R.Z.Provider,{value:ur},Ln)),En&&(Ln=v.createElement(F,{locale:En,_ANT_MARK__:p},Ln)),(ao||Mi)&&(Ln=v.createElement(C.Z.Provider,{value:fn},Ln)),rn&&(Ln=v.createElement(ze.q,{size:rn},Ln)),Ln=v.createElement(Xt,null,Ln);const dt=v.useMemo(()=>{const xt=_s||{},{algorithm:Et,token:et,components:wt}=xt,Vt=At(xt,["algorithm","token","components"]),yn=Et&&(!Array.isArray(Et)||Et.length>0)?(0,M.jG)(Et):he.uH,yr={};Object.entries(wt||{}).forEach(eo=>{let[Zo,Ii]=eo;const Cs=Object.assign({},Ii);"algorithm"in Cs&&(Cs.algorithm===!0?Cs.theme=yn:(Array.isArray(Cs.algorithm)||typeof Cs.algorithm=="function")&&(Cs.theme=(0,M.jG)(Cs.algorithm)),delete Cs.algorithm),yr[Zo]=Cs});const Yr=Object.assign(Object.assign({},fe.Z),et);return Object.assign(Object.assign({},Vt),{theme:yn,token:Yr,components:yr,override:Object.assign({override:Yr},yr)})},[_s]);return Hi&&(Ln=v.createElement(he.Mj.Provider,{value:dt},Ln)),Bi.warning&&(Ln=v.createElement(V.G8.Provider,{value:Bi.warning},Ln)),Io!==void 0&&(Ln=v.createElement(Ee.n,{disabled:Io},Ln)),v.createElement(be.E_.Provider,{value:Bi},Ln)},$i=Vr=>{const Ro=v.useContext(be.E_),Tn=v.useContext(S.Z);return v.createElement(Oo,Object.assign({parentContext:Ro,legacyLocale:Tn},Vr))};$i.ConfigContext=be.E_,$i.SizeContext=ze.Z,$i.config=ms,$i.useConfig=Re,Object.defineProperty($i,"SizeContext",{get:()=>ze.Z});var co=$i},82301:function(mt,q,_){"use strict";_.d(q,{Z:function(){return At}});var v=_(77617),M=_(12124),C=_.n(M),x=_(4638),N=_(41203),V=_(29212),R=_(93294),S={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},T=v.createContext({}),F=_(38930),K=function(an,Tt){var Nn={};for(var mn in an)Object.prototype.hasOwnProperty.call(an,mn)&&Tt.indexOf(mn)<0&&(Nn[mn]=an[mn]);if(an!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zn=0,mn=Object.getOwnPropertySymbols(an);zn(0,F.Z)(an).map(Tt=>Object.assign({},Tt==null?void 0:Tt.props));function fe(an,Tt,Nn){const mn=v.useMemo(()=>Tt||he(Nn),[Tt,Nn]);return v.useMemo(()=>mn.map(Kr=>{var{span:Ui}=Kr,go=K(Kr,["span"]);return Object.assign(Object.assign({},go),{span:typeof Ui=="number"?Ui:(0,x.m9)(an,Ui)})}),[mn,an])}function be(an,Tt,Nn){let mn=an,zn=!1;return(Nn===void 0||Nn>Tt)&&(mn=Object.assign(Object.assign({},an),{span:Tt}),zn=Nn!==void 0),[mn,zn]}function Ae(an,Tt){const Nn=[];let mn=[],zn=Tt,Kr=!1;return an.filter(Ui=>Ui).forEach((Ui,go)=>{const gi=Ui==null?void 0:Ui.span,Mr=gi||1;if(go===an.length-1){const[To,ms]=be(Ui,zn,gi);Kr=Kr||ms,mn.push(To),Nn.push(mn);return}if(Mr{const[Nn,mn]=(0,v.useMemo)(()=>Ae(Tt,an),[Tt,an]);return Nn},Xe=an=>{let{children:Tt}=an;return Tt};function ft(an){return an!=null}var Ee=an=>{const{itemPrefixCls:Tt,component:Nn,span:mn,className:zn,style:Kr,labelStyle:Ui,contentStyle:go,bordered:gi,label:Mr,content:To,colon:ms}=an,De=Nn;return gi?v.createElement(De,{className:C()({[`${Tt}-item-label`]:ft(Mr),[`${Tt}-item-content`]:ft(To)},zn),style:Kr,colSpan:mn},ft(Mr)&&v.createElement("span",{style:Ui},Mr),ft(To)&&v.createElement("span",{style:go},To)):v.createElement(De,{className:C()(`${Tt}-item`,zn),style:Kr,colSpan:mn},v.createElement("div",{className:`${Tt}-item-container`},(Mr||Mr===0)&&v.createElement("span",{className:C()(`${Tt}-item-label`,{[`${Tt}-item-no-colon`]:!ms}),style:Ui},Mr),(To||To===0)&&v.createElement("span",{className:C()(`${Tt}-item-content`),style:go},To)))};function ze(an,Tt,Nn){let{colon:mn,prefixCls:zn,bordered:Kr}=Tt,{component:Ui,type:go,showLabel:gi,showContent:Mr,labelStyle:To,contentStyle:ms}=Nn;return an.map((De,Oo)=>{let{label:$i,children:co,prefixCls:Vr=zn,className:Ro,style:Tn,labelStyle:nt,contentStyle:Ct,span:Ht=1,key:hn}=De;return typeof Ui=="string"?v.createElement(Ee,{key:`${go}-${hn||Oo}`,className:Ro,style:Tn,labelStyle:Object.assign(Object.assign({},To),nt),contentStyle:Object.assign(Object.assign({},ms),Ct),span:Ht,colon:mn,component:Ui,itemPrefixCls:Vr,bordered:Kr,label:gi?$i:null,content:Mr?co:null}):[v.createElement(Ee,{key:`label-${hn||Oo}`,className:Ro,style:Object.assign(Object.assign(Object.assign({},To),Tn),nt),span:1,colon:mn,component:Ui[0],itemPrefixCls:Vr,bordered:Kr,label:$i}),v.createElement(Ee,{key:`content-${hn||Oo}`,className:Ro,style:Object.assign(Object.assign(Object.assign({},ms),Tn),Ct),span:Ht*2-1,component:Ui[1],itemPrefixCls:Vr,bordered:Kr,content:co})]})}var Re=an=>{const Tt=v.useContext(T),{prefixCls:Nn,vertical:mn,row:zn,index:Kr,bordered:Ui}=an;return mn?v.createElement(v.Fragment,null,v.createElement("tr",{key:`label-${Kr}`,className:`${Nn}-row`},ze(zn,an,Object.assign({component:"th",type:"label",showLabel:!0},Tt))),v.createElement("tr",{key:`content-${Kr}`,className:`${Nn}-row`},ze(zn,an,Object.assign({component:"td",type:"content",showContent:!0},Tt)))):v.createElement("tr",{key:Kr,className:`${Nn}-row`},ze(zn,an,Object.assign({component:Ui?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},Tt)))},je=_(21348),Ce=_(93154),rt=_(43040);const Ne=an=>{const{componentCls:Tt,labelBg:Nn}=an;return{[`&${Tt}-bordered`]:{[`> ${Tt}-view`]:{border:`${an.lineWidth}px ${an.lineType} ${an.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${Tt}-row`]:{borderBottom:`${an.lineWidth}px ${an.lineType} ${an.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${Tt}-item-label, > ${Tt}-item-content`]:{padding:`${an.padding}px ${an.paddingLG}px`,borderInlineEnd:`${an.lineWidth}px ${an.lineType} ${an.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${Tt}-item-label`]:{color:an.colorTextSecondary,backgroundColor:Nn,"&::after":{display:"none"}}}},[`&${Tt}-middle`]:{[`${Tt}-row`]:{[`> ${Tt}-item-label, > ${Tt}-item-content`]:{padding:`${an.paddingSM}px ${an.paddingLG}px`}}},[`&${Tt}-small`]:{[`${Tt}-row`]:{[`> ${Tt}-item-label, > ${Tt}-item-content`]:{padding:`${an.paddingXS}px ${an.padding}px`}}}}}},Xt=an=>{const{componentCls:Tt,extraColor:Nn,itemPaddingBottom:mn,colonMarginRight:zn,colonMarginLeft:Kr,titleMarginBottom:Ui}=an;return{[Tt]:Object.assign(Object.assign(Object.assign({},(0,je.Wf)(an)),Ne(an)),{["&-rtl"]:{direction:"rtl"},[`${Tt}-header`]:{display:"flex",alignItems:"center",marginBottom:Ui},[`${Tt}-title`]:Object.assign(Object.assign({},je.vS),{flex:"auto",color:an.titleColor,fontWeight:an.fontWeightStrong,fontSize:an.fontSizeLG,lineHeight:an.lineHeightLG}),[`${Tt}-extra`]:{marginInlineStart:"auto",color:Nn,fontSize:an.fontSize},[`${Tt}-view`]:{width:"100%",borderRadius:an.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${Tt}-row`]:{"> th, > td":{paddingBottom:mn},"&:last-child":{borderBottom:"none"}},[`${Tt}-item-label`]:{color:an.colorTextTertiary,fontWeight:"normal",fontSize:an.fontSize,lineHeight:an.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${Kr}px ${zn}px`},[`&${Tt}-item-no-colon::after`]:{content:'""'}},[`${Tt}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${Tt}-item-content`]:{display:"table-cell",flex:1,color:an.contentColor,fontSize:an.fontSize,lineHeight:an.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${Tt}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${Tt}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${Tt}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${Tt}-row`]:{"> th, > td":{paddingBottom:an.paddingSM}}},"&-small":{[`${Tt}-row`]:{"> th, > td":{paddingBottom:an.paddingXS}}}})}};var Ft=(0,Ce.Z)("Descriptions",an=>{const Tt=(0,rt.TS)(an,{});return[Xt(Tt)]},an=>({labelBg:an.colorFillAlter,titleColor:an.colorText,titleMarginBottom:an.fontSizeSM*an.lineHeightSM,itemPaddingBottom:an.padding,colonMarginRight:an.marginXS,colonMarginLeft:an.marginXXS/2,contentColor:an.colorText,extraColor:an.colorText})),lt=function(an,Tt){var Nn={};for(var mn in an)Object.prototype.hasOwnProperty.call(an,mn)&&Tt.indexOf(mn)<0&&(Nn[mn]=an[mn]);if(an!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zn=0,mn=Object.getOwnPropertySymbols(an);zn{const{prefixCls:Tt,title:Nn,extra:mn,column:zn,colon:Kr=!0,bordered:Ui,layout:go,children:gi,className:Mr,rootClassName:To,style:ms,size:De,labelStyle:Oo,contentStyle:$i,items:co}=an,Vr=lt(an,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:Ro,direction:Tn,descriptions:nt}=v.useContext(N.E_),Ct=Ro("descriptions",Tt),Ht=(0,R.Z)(),hn=v.useMemo(()=>{var sn;return typeof zn=="number"?zn:(sn=(0,x.m9)(Ht,Object.assign(Object.assign({},S),zn)))!==null&&sn!==void 0?sn:3},[Ht,zn]),En=fe(Ht,co,gi),rn=(0,V.Z)(De),Jt=Se(hn,En),[Mt,Qt]=Ft(Ct),Dn=v.useMemo(()=>({labelStyle:Oo,contentStyle:$i}),[Oo,$i]);return Mt(v.createElement(T.Provider,{value:Dn},v.createElement("div",Object.assign({className:C()(Ct,nt==null?void 0:nt.className,{[`${Ct}-${rn}`]:rn&&rn!=="default",[`${Ct}-bordered`]:!!Ui,[`${Ct}-rtl`]:Tn==="rtl"},Mr,To,Qt),style:Object.assign(Object.assign({},nt==null?void 0:nt.style),ms)},Vr),(Nn||mn)&&v.createElement("div",{className:`${Ct}-header`},Nn&&v.createElement("div",{className:`${Ct}-title`},Nn),mn&&v.createElement("div",{className:`${Ct}-extra`},mn)),v.createElement("div",{className:`${Ct}-view`},v.createElement("table",null,v.createElement("tbody",null,Jt.map((sn,wr)=>v.createElement(Re,{key:wr,index:wr,colon:Kr,prefixCls:Ct,vertical:go==="vertical",bordered:Ui,row:sn}))))))))};Bt.Item=Xe;var At=Bt},74364:function(mt,q,_){"use strict";_.d(q,{Z:function(){return F}});var v=_(77617),M=_(12124),C=_.n(M),x=_(41203),N=_(21348),V=_(93154),R=_(43040);const k=K=>{const{componentCls:he,sizePaddingEdgeHorizontal:fe,colorSplit:be,lineWidth:Ae,textPaddingInline:xe,orientationMargin:Se,verticalMarginInline:it}=K;return{[he]:Object.assign(Object.assign({},(0,N.Wf)(K)),{borderBlockStart:`${Ae}px solid ${be}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:it,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Ae}px solid ${be}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${K.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${he}-with-text`]:{display:"flex",alignItems:"center",margin:`${K.dividerHorizontalWithTextGutterMargin}px 0`,color:K.colorTextHeading,fontWeight:500,fontSize:K.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${be}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Ae}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${he}-with-text-left`]:{"&::before":{width:`${Se*100}%`},"&::after":{width:`${100-Se*100}%`}},[`&-horizontal${he}-with-text-right`]:{"&::before":{width:`${100-Se*100}%`},"&::after":{width:`${Se*100}%`}},[`${he}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:xe},"&-dashed":{background:"none",borderColor:be,borderStyle:"dashed",borderWidth:`${Ae}px 0 0`},[`&-horizontal${he}-with-text${he}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${he}-dashed`]:{borderInlineStartWidth:Ae,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${he}-with-text`]:{color:K.colorText,fontWeight:"normal",fontSize:K.fontSize},[`&-horizontal${he}-with-text-left${he}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${he}-inner-text`]:{paddingInlineStart:fe}},[`&-horizontal${he}-with-text-right${he}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${he}-inner-text`]:{paddingInlineEnd:fe}}})}};var S=(0,V.Z)("Divider",K=>{const he=(0,R.TS)(K,{dividerHorizontalWithTextGutterMargin:K.margin,dividerHorizontalGutterMargin:K.marginLG,sizePaddingEdgeHorizontal:0});return[k(he)]},K=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:K.marginXS})),p=function(K,he){var fe={};for(var be in K)Object.prototype.hasOwnProperty.call(K,be)&&he.indexOf(be)<0&&(fe[be]=K[be]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,be=Object.getOwnPropertySymbols(K);Ae{const{getPrefixCls:he,direction:fe,divider:be}=v.useContext(x.E_),{prefixCls:Ae,type:xe="horizontal",orientation:Se="center",orientationMargin:it,className:Xe,rootClassName:ft,children:Me,dashed:Ee,plain:ze,style:Pe}=K,Re=p(K,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),je=he("divider",Ae),[Ce,rt]=S(je),Ne=Se.length>0?`-${Se}`:Se,Xt=!!Me,Ft=Se==="left"&&it!=null,lt=Se==="right"&&it!=null,Bt=C()(je,be==null?void 0:be.className,rt,`${je}-${xe}`,{[`${je}-with-text`]:Xt,[`${je}-with-text${Ne}`]:Xt,[`${je}-dashed`]:!!Ee,[`${je}-plain`]:!!ze,[`${je}-rtl`]:fe==="rtl",[`${je}-no-default-orientation-margin-left`]:Ft,[`${je}-no-default-orientation-margin-right`]:lt},Xe,ft),At=v.useMemo(()=>typeof it=="number"?it:/^\d+$/.test(it)?Number(it):it,[it]),an=Object.assign(Object.assign({},Ft&&{marginLeft:At}),lt&&{marginRight:At});return Ce(v.createElement("div",Object.assign({className:Bt,style:Object.assign(Object.assign({},be==null?void 0:be.style),Pe)},Re,{role:"separator"}),Me&&xe!=="vertical"&&v.createElement("span",{className:`${je}-inner-text`,style:an},Me)))}},68899:function(mt,q,_){"use strict";_.d(q,{Z:function(){return go}});var v=_(77617),M=_(22311),C=_(12124),x=_.n(C),N=_(31561),V=_(95470),R=_(41760),k=_(39029),S=_(8799),p=_(94892),T=_(33966),F=_(37628),K=_(93837),he=_(44942),fe=_(41203),be=_(80235),Ae=_(12781),xe=_(45844),Se=_(21348),it=_(81437),Xe=_(58893),ft=_(53679),Me=_(95661),Ee=_(93154),ze=_(43040),Re=gi=>{const{componentCls:Mr,menuCls:To,colorError:ms,colorTextLightSolid:De}=gi,Oo=`${To}-item`;return{[`${Mr}, ${Mr}-menu-submenu`]:{[`${To} ${Oo}`]:{[`&${Oo}-danger:not(${Oo}-disabled)`]:{color:ms,"&:hover":{color:De,backgroundColor:ms}}}}}};const je=gi=>{const{componentCls:Mr,menuCls:To,zIndexPopup:ms,dropdownArrowDistance:De,sizePopupArrow:Oo,antCls:$i,iconCls:co,motionDurationMid:Vr,dropdownPaddingVertical:Ro,fontSize:Tn,dropdownEdgeChildPadding:nt,colorTextDisabled:Ct,fontSizeIcon:Ht,controlPaddingHorizontal:hn,colorBgElevated:En}=gi;return[{[Mr]:Object.assign(Object.assign({},(0,Se.Wf)(gi)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ms,display:"block","&::before":{position:"absolute",insetBlock:-De+Oo/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${$i}-btn`]:{[`& > ${co}-down, & > ${$i}-btn-icon > ${co}-down`]:{fontSize:Ht}},[`${Mr}-wrap`]:{position:"relative",[`${$i}-btn > ${co}-down`]:{fontSize:Ht},[`${co}-down::before`]:{transition:`transform ${Vr}`}},[`${Mr}-wrap-open`]:{[`${co}-down::before`]:{transform:"rotate(180deg)"}},[` &-hidden, &-menu-hidden, &-menu-submenu-hidden - `]:{display:"none"},[`&${me}-slide-down-enter${me}-slide-down-enter-active${ro}-placement-bottomLeft, - &${me}-slide-down-appear${me}-slide-down-appear-active${ro}-placement-bottomLeft, - &${me}-slide-down-enter${me}-slide-down-enter-active${ro}-placement-bottom, - &${me}-slide-down-appear${me}-slide-down-appear-active${ro}-placement-bottom, - &${me}-slide-down-enter${me}-slide-down-enter-active${ro}-placement-bottomRight, - &${me}-slide-down-appear${me}-slide-down-appear-active${ro}-placement-bottomRight`]:{animationName:he.fJ},[`&${me}-slide-up-enter${me}-slide-up-enter-active${ro}-placement-topLeft, - &${me}-slide-up-appear${me}-slide-up-appear-active${ro}-placement-topLeft, - &${me}-slide-up-enter${me}-slide-up-enter-active${ro}-placement-top, - &${me}-slide-up-appear${me}-slide-up-appear-active${ro}-placement-top, - &${me}-slide-up-enter${me}-slide-up-enter-active${ro}-placement-topRight, - &${me}-slide-up-appear${me}-slide-up-appear-active${ro}-placement-topRight`]:{animationName:he.Qt},[`&${me}-slide-down-leave${me}-slide-down-leave-active${ro}-placement-bottomLeft, - &${me}-slide-down-leave${me}-slide-down-leave-active${ro}-placement-bottom, - &${me}-slide-down-leave${me}-slide-down-leave-active${ro}-placement-bottomRight`]:{animationName:he.Uw},[`&${me}-slide-up-leave${me}-slide-up-leave-active${ro}-placement-topLeft, - &${me}-slide-up-leave${me}-slide-up-leave-active${ro}-placement-top, - &${me}-slide-up-leave${me}-slide-up-leave-active${ro}-placement-topRight`]:{animationName:he.ly}})},(0,Ie.ZP)(gi,{colorBg:xt,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${ro} ${To}`]:{position:"relative",margin:0},[`${To}-submenu-popup`]:{position:"absolute",zIndex:_r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${ro}, ${ro}-menu-submenu`]:{[To]:Object.assign(Object.assign({padding:No,listStyleType:"none",backgroundColor:xt,backgroundClip:"padding-box",borderRadius:gi.borderRadiusLG,outline:"none",boxShadow:gi.boxShadowSecondary},(0,pe.Qy)(gi)),{[`${To}-item-group-title`]:{padding:`${go}px ${yt}px`,color:gi.colorTextDescription,transition:`all ${ho}`},[`${To}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${To}-item-icon`]:{minWidth:ji,marginInlineEnd:gi.marginXS,fontSize:gi.fontSizeSM},[`${To}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ho}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${To}-item, ${To}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${go}px ${yt}px`,color:gi.colorText,fontWeight:"normal",fontSize:ji,lineHeight:gi.lineHeight,cursor:"pointer",transition:`all ${ho}`,borderRadius:gi.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:gi.controlItemBgHover}},(0,pe.Qy)(gi)),{"&-selected":{color:gi.colorPrimary,backgroundColor:gi.controlItemBgActive,"&:hover, &-active":{backgroundColor:gi.controlItemBgActiveHover}},"&-disabled":{color:dn,cursor:"not-allowed","&:hover":{color:dn,backgroundColor:xt,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${gi.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:gi.colorSplit},[`${ro}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:gi.paddingXS,[`${ro}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:gi.colorTextDescription,fontSize:Ve,fontStyle:"normal"}}}),[`${To}-item-group-list`]:{margin:`0 ${gi.marginXS}px`,padding:0,listStyle:"none"},[`${To}-submenu-title`]:{paddingInlineEnd:yt+gi.fontSizeSM},[`${To}-submenu-vertical`]:{position:"relative"},[`${To}-submenu${To}-submenu-disabled ${ro}-menu-submenu-title`]:{[`&, ${ro}-menu-submenu-arrow-icon`]:{color:dn,backgroundColor:xt,cursor:"not-allowed"}},[`${To}-submenu-selected ${ro}-menu-submenu-title`]:{color:gi.colorPrimary}})}},[(0,he.oN)(gi,"slide-up"),(0,he.oN)(gi,"slide-down"),(0,fe.Fm)(gi,"move-up"),(0,fe.Fm)(gi,"move-down"),(0,Be._y)(gi,"zoom-big")]]};var xe=(0,je.Z)("Dropdown",(gi,ro)=>{let{rootPrefixCls:To}=ro;const{marginXXS:_r,sizePopupArrow:Bo,controlHeight:fs,fontSize:me,lineHeight:So,paddingXXS:ho,componentCls:go,borderRadiusLG:ji}=gi,No=(fs-me*So)/2,{dropdownArrowOffset:dn}=(0,Ie.fS)({contentRadius:ji}),Ve=(0,be.TS)(gi,{menuCls:`${go}-menu`,rootPrefixCls:To,dropdownArrowDistance:Bo/2+_r,dropdownArrowOffset:dn,dropdownPaddingVertical:No,dropdownEdgeChildPadding:ho});return[Ce(Ve),ye(Ve)]},gi=>({zIndexPopup:gi.zIndexPopupBase+50}));const Ae=null,ge=gi=>{const{menu:ro,arrow:To,prefixCls:_r,children:Bo,trigger:fs,disabled:me,dropdownRender:So,getPopupContainer:ho,overlayClassName:go,rootClassName:ji,open:No,onOpenChange:dn,visible:Ve,onVisibleChange:yt,mouseEnterDelay:xt=.15,mouseLeaveDelay:Wt=.1,autoAdjustOverflow:sn=!0,placement:Ot="",overlay:Tt,transitionName:bt}=gi,{getPopupContainer:Ht,getPrefixCls:zn,direction:en}=y.useContext(W.E_),fr=(0,P.ln)("Dropdown"),Kr=y.useMemo(()=>{const di=zn();return bt!==void 0?bt:Ot.includes("top")?`${di}-slide-down`:`${di}-slide-up`},[zn,Ot,bt]),ii=y.useMemo(()=>Ot?Ot.includes("Center")?Ot.slice(0,Ot.indexOf("Center")):Ot:en==="rtl"?"bottomRight":"bottomLeft",[Ot,en]),si=zn("dropdown",_r),[uo,Qo]=xe(si),[,_n]=(0,ce.Z)(),Vr=y.Children.only(Bo),qr=(0,S.Tm)(Vr,{className:z()(`${si}-trigger`,{[`${si}-rtl`]:en==="rtl"},Vr.props.className),disabled:me}),Ui=me?[]:fs;let xo;Ui&&Ui.includes("contextMenu")&&(xo=!0);const[Us,$n]=(0,w.Z)(!1,{value:No!=null?No:Ve}),Kn=(0,N.zX)(di=>{dn==null||dn(di),yt==null||yt(di),$n(di)}),Fr=z()(go,ji,Qo,{[`${si}-rtl`]:en==="rtl"}),mi=(0,C.Z)({arrowPointAtCenter:typeof To=="object"&&To.pointAtCenter,autoAdjustOverflow:sn,offset:_n.marginXXS,arrowWidth:To?_n.sizePopupArrow:0,borderRadius:_n.borderRadius}),Tr=y.useCallback(()=>{$n(!1)},[]),ti=()=>{let di;return ro!=null&&ro.items?di=y.createElement(te.Z,Object.assign({},ro)):typeof Tt=="function"?di=Tt():di=Tt,So&&(di=So(di)),di=y.Children.only(typeof di=="string"?y.createElement("span",null,di):di),y.createElement(re.J,{prefixCls:`${si}-menu`,expandIcon:y.createElement("span",{className:`${si}-menu-submenu-arrow`},y.createElement(I.Z,{className:`${si}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Tr,validator:rn=>{let{mode:Qn}=rn}},di)};return uo(y.createElement(k.Z,Object.assign({alignPoint:xo},(0,A.Z)(gi,["rootClassName"]),{mouseEnterDelay:xt,mouseLeaveDelay:Wt,visible:Us,builtinPlacements:mi,arrow:!!To,overlayClassName:Fr,prefixCls:si,getPopupContainer:ho||Ht,transitionName:Kr,trigger:Ui,overlay:ti,placement:ii,onVisibleChange:Kn}),qr))};function We(gi){return Object.assign(Object.assign({},gi),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Se=(0,f.Z)(ge,"dropdown",gi=>gi,We),Pt=gi=>y.createElement(Se,Object.assign({},gi),y.createElement("span",null));ge._InternalPanelDoNotUseOrYouWillBeFired=Pt;var dt=ge,He=m(93319),Ct=m(38115),ft=m(31045),zt=m(58370),mt=function(gi,ro){var To={};for(var _r in gi)Object.prototype.hasOwnProperty.call(gi,_r)&&ro.indexOf(_r)<0&&(To[_r]=gi[_r]);if(gi!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bo=0,_r=Object.getOwnPropertySymbols(gi);Bo<_r.length;Bo++)ro.indexOf(_r[Bo])<0&&Object.prototype.propertyIsEnumerable.call(gi,_r[Bo])&&(To[_r[Bo]]=gi[_r[Bo]]);return To};const yn=gi=>{const{getPopupContainer:ro,getPrefixCls:To,direction:_r}=y.useContext(W.E_),{prefixCls:Bo,type:fs="default",danger:me,disabled:So,loading:ho,onClick:go,htmlType:ji,children:No,className:dn,menu:Ve,arrow:yt,autoFocus:xt,overlay:Wt,trigger:sn,align:Ot,open:Tt,onOpenChange:bt,placement:Ht,getPopupContainer:zn,href:en,icon:fr=y.createElement(He.Z,null),title:Kr,buttonsRender:ii=ao=>ao,mouseEnterDelay:si,mouseLeaveDelay:uo,overlayClassName:Qo,overlayStyle:_n,destroyPopupOnHide:Vr,dropdownRender:qr}=gi,Ui=mt(gi,["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=To("dropdown",Bo),Us=`${xo}-button`,[$n,Kn]=xe(xo),Fr={menu:Ve,arrow:yt,autoFocus:xt,align:Ot,disabled:So,trigger:So?[]:sn,onOpenChange:bt,getPopupContainer:zn||ro,mouseEnterDelay:si,mouseLeaveDelay:uo,overlayClassName:Qo,overlayStyle:_n,destroyPopupOnHide:Vr,dropdownRender:qr},{compactSize:mi,compactItemClassnames:Tr}=(0,zt.ri)(xo,_r),ti=z()(Us,Tr,dn,Kn);"overlay"in gi&&(Fr.overlay=Wt),"open"in gi&&(Fr.open=Tt),"placement"in gi?Fr.placement=Ht:Fr.placement=_r==="rtl"?"bottomLeft":"bottomRight";const di=y.createElement(Ct.ZP,{type:fs,danger:me,disabled:So,loading:ho,onClick:go,htmlType:ji,href:en,title:Kr},No),rn=y.createElement(Ct.ZP,{type:fs,danger:me,icon:fr}),[Qn,Xr]=ii([di,rn]);return $n(y.createElement(ft.Z.Compact,Object.assign({className:ti,size:mi,block:!0},Ui),Qn,y.createElement(dt,Object.assign({},Fr),Xr)))};yn.__ANT_BUTTON=!0;var Bn=yn;const Lr=dt;Lr.Button=Bn;var ri=Lr},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)(),be=new N.C(Ie.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return b.createElement("svg",{style:be,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:je,colorFillTertiary:be,colorFillQuaternary:ve,colorBgContainer:ye}=Ie,{borderColor:Ce,shadowColor:xe,contentColor:Ae}=(0,b.useMemo)(()=>({borderColor:new N.C(je).onBackground(ye).toHexShortString(),shadowColor:new N.C(be).onBackground(ye).toHexShortString(),contentColor:new N.C(ve).onBackground(ye).toHexShortString()}),[je,be,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:xe,cx:"32",cy:"33",rx:"32",ry:"7"}),b.createElement("g",{fillRule:"nonzero",stroke:Ce},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 te=Ie=>{const{componentCls:je,margin:be,marginXS:ve,marginXL:ye,fontSize:Ce,lineHeight:xe}=Ie;return{[je]:{marginInline:ve,fontSize:Ce,lineHeight:xe,textAlign:"center",[`${je}-image`]:{height:Ie.emptyImgHeight,marginBottom:ve,opacity:Ie.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${je}-description`]:{color:Ie.colorText},[`${je}-footer`]:{marginTop:be},"&-normal":{marginBlock:ye,color:Ie.colorTextDisabled,[`${je}-description`]:{color:Ie.colorTextDisabled},[`${je}-image`]:{height:Ie.emptyImgHeightMD}},"&-small":{marginBlock:ve,color:Ie.colorTextDisabled,[`${je}-image`]:{height:Ie.emptyImgHeightSM}}}}};var re=(0,P.Z)("Empty",Ie=>{const{componentCls:je,controlHeightLG:be}=Ie,ve=(0,W.TS)(Ie,{emptyImgCls:`${je}-img`,emptyImgHeight:be*2.5,emptyImgHeightMD:be,emptyImgHeightSM:be*.875});return[te(ve)]}),ce=function(Ie,je){var be={};for(var ve in Ie)Object.prototype.hasOwnProperty.call(Ie,ve)&&je.indexOf(ve)<0&&(be[ve]=Ie[ve]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,ve=Object.getOwnPropertySymbols(Ie);ye{var{className:je,rootClassName:be,prefixCls:ve,image:ye=pe,description:Ce,children:xe,imageStyle:Ae,style:ge}=Ie,We=ce(Ie,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Se,direction:Pt,empty:dt}=b.useContext(z.E_),He=Se("empty",ve),[Ct,ft]=re(He),[zt]=(0,k.Z)("Empty"),mt=typeof Ce!="undefined"?Ce:zt==null?void 0:zt.description,yn=typeof mt=="string"?mt:"empty";let Bn=null;return typeof ye=="string"?Bn=b.createElement("img",{alt:yn,src:ye}):Bn=ye,Ct(b.createElement("div",Object.assign({className:I()(ft,He,dt==null?void 0:dt.className,{[`${He}-normal`]:ye===he,[`${He}-rtl`]:Pt==="rtl"},je,be),style:Object.assign(Object.assign({},dt==null?void 0:dt.style),ge)},We),b.createElement("div",{className:`${He}-image`,style:Ae},Bn),mt&&b.createElement("div",{className:`${He}-description`},mt),xe&&b.createElement("div",{className:`${He}-footer`},xe)))};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 te=(0,y.useContext)(A),re=(0,y.useMemo)(()=>{const ce=Object.assign({},te);return W&&delete ce.isFormItemInput,P&&(delete ce.status,delete ce.hasFeedback,delete ce.feedbackIcon),ce},[P,W,te]);return y.createElement(A.Provider,{value:re},S)}},21107:function(nt,V,m){"use strict";m.d(V,{Z:function(){return xs}});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(Er){const[ui,Xt]=k.useState(Er);return k.useEffect(()=>{const gn=setTimeout(()=>{Xt(Er)},Er.length?0:10);return()=>{clearTimeout(gn)}},[Er]),ui}var C=m(92068),f=m(69601),S=m(53710),P=m(41788),W=m(24577),re=Er=>{const{componentCls:ui}=Er,Xt=`${ui}-show-help`,gn=`${ui}-show-help-item`;return{[Xt]:{transition:`opacity ${Er.motionDurationSlow} ${Er.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[gn]:{overflow:"hidden",transition:`height ${Er.motionDurationSlow} ${Er.motionEaseInOut}, - opacity ${Er.motionDurationSlow} ${Er.motionEaseInOut}, - transform ${Er.motionDurationSlow} ${Er.motionEaseInOut} !important`,[`&${gn}-appear, &${gn}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${gn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ce=Er=>({legend:{display:"block",width:"100%",marginBottom:Er.marginLG,padding:0,color:Er.colorTextDescription,fontSize:Er.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Er.lineWidth}px ${Er.lineType} ${Er.colorBorder}`},label:{fontSize:Er.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, + `]:{display:"none"},[`&${$i}-slide-down-enter${$i}-slide-down-enter-active${Mr}-placement-bottomLeft, + &${$i}-slide-down-appear${$i}-slide-down-appear-active${Mr}-placement-bottomLeft, + &${$i}-slide-down-enter${$i}-slide-down-enter-active${Mr}-placement-bottom, + &${$i}-slide-down-appear${$i}-slide-down-appear-active${Mr}-placement-bottom, + &${$i}-slide-down-enter${$i}-slide-down-enter-active${Mr}-placement-bottomRight, + &${$i}-slide-down-appear${$i}-slide-down-appear-active${Mr}-placement-bottomRight`]:{animationName:it.fJ},[`&${$i}-slide-up-enter${$i}-slide-up-enter-active${Mr}-placement-topLeft, + &${$i}-slide-up-appear${$i}-slide-up-appear-active${Mr}-placement-topLeft, + &${$i}-slide-up-enter${$i}-slide-up-enter-active${Mr}-placement-top, + &${$i}-slide-up-appear${$i}-slide-up-appear-active${Mr}-placement-top, + &${$i}-slide-up-enter${$i}-slide-up-enter-active${Mr}-placement-topRight, + &${$i}-slide-up-appear${$i}-slide-up-appear-active${Mr}-placement-topRight`]:{animationName:it.Qt},[`&${$i}-slide-down-leave${$i}-slide-down-leave-active${Mr}-placement-bottomLeft, + &${$i}-slide-down-leave${$i}-slide-down-leave-active${Mr}-placement-bottom, + &${$i}-slide-down-leave${$i}-slide-down-leave-active${Mr}-placement-bottomRight`]:{animationName:it.Uw},[`&${$i}-slide-up-leave${$i}-slide-up-leave-active${Mr}-placement-topLeft, + &${$i}-slide-up-leave${$i}-slide-up-leave-active${Mr}-placement-top, + &${$i}-slide-up-leave${$i}-slide-up-leave-active${Mr}-placement-topRight`]:{animationName:it.ly}})},(0,Me.ZP)(gi,{colorBg:En,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Mr} ${To}`]:{position:"relative",margin:0},[`${To}-submenu-popup`]:{position:"absolute",zIndex:ms,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Mr}, ${Mr}-menu-submenu`]:{[To]:Object.assign(Object.assign({padding:nt,listStyleType:"none",backgroundColor:En,backgroundClip:"padding-box",borderRadius:gi.borderRadiusLG,outline:"none",boxShadow:gi.boxShadowSecondary},(0,Se.Qy)(gi)),{[`${To}-item-group-title`]:{padding:`${Ro}px ${hn}px`,color:gi.colorTextDescription,transition:`all ${Vr}`},[`${To}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${To}-item-icon`]:{minWidth:Tn,marginInlineEnd:gi.marginXS,fontSize:gi.fontSizeSM},[`${To}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${Vr}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${To}-item, ${To}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Ro}px ${hn}px`,color:gi.colorText,fontWeight:"normal",fontSize:Tn,lineHeight:gi.lineHeight,cursor:"pointer",transition:`all ${Vr}`,borderRadius:gi.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:gi.controlItemBgHover}},(0,Se.Qy)(gi)),{"&-selected":{color:gi.colorPrimary,backgroundColor:gi.controlItemBgActive,"&:hover, &-active":{backgroundColor:gi.controlItemBgActiveHover}},"&-disabled":{color:Ct,cursor:"not-allowed","&:hover":{color:Ct,backgroundColor:En,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${gi.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:gi.colorSplit},[`${Mr}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:gi.paddingXS,[`${Mr}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:gi.colorTextDescription,fontSize:Ht,fontStyle:"normal"}}}),[`${To}-item-group-list`]:{margin:`0 ${gi.marginXS}px`,padding:0,listStyle:"none"},[`${To}-submenu-title`]:{paddingInlineEnd:hn+gi.fontSizeSM},[`${To}-submenu-vertical`]:{position:"relative"},[`${To}-submenu${To}-submenu-disabled ${Mr}-menu-submenu-title`]:{[`&, ${Mr}-menu-submenu-arrow-icon`]:{color:Ct,backgroundColor:En,cursor:"not-allowed"}},[`${To}-submenu-selected ${Mr}-menu-submenu-title`]:{color:gi.colorPrimary}})}},[(0,it.oN)(gi,"slide-up"),(0,it.oN)(gi,"slide-down"),(0,Xe.Fm)(gi,"move-up"),(0,Xe.Fm)(gi,"move-down"),(0,ft._y)(gi,"zoom-big")]]};var Ce=(0,Ee.Z)("Dropdown",(gi,Mr)=>{let{rootPrefixCls:To}=Mr;const{marginXXS:ms,sizePopupArrow:De,controlHeight:Oo,fontSize:$i,lineHeight:co,paddingXXS:Vr,componentCls:Ro,borderRadiusLG:Tn}=gi,nt=(Oo-$i*co)/2,{dropdownArrowOffset:Ct}=(0,Me.fS)({contentRadius:Tn}),Ht=(0,ze.TS)(gi,{menuCls:`${Ro}-menu`,rootPrefixCls:To,dropdownArrowDistance:De/2+ms,dropdownArrowOffset:Ct,dropdownPaddingVertical:nt,dropdownEdgeChildPadding:Vr});return[je(Ht),Re(Ht)]},gi=>({zIndexPopup:gi.zIndexPopupBase+50}));const rt=null,Ne=gi=>{const{menu:Mr,arrow:To,prefixCls:ms,children:De,trigger:Oo,disabled:$i,dropdownRender:co,getPopupContainer:Vr,overlayClassName:Ro,rootClassName:Tn,overlayStyle:nt,open:Ct,onOpenChange:Ht,visible:hn,onVisibleChange:En,mouseEnterDelay:rn=.15,mouseLeaveDelay:Jt=.1,autoAdjustOverflow:Mt=!0,placement:Qt="",overlay:Dn,transitionName:sn}=gi,{getPopupContainer:wr,getPrefixCls:jr,direction:xi,dropdown:Pr}=v.useContext(fe.E_),Hi=(0,K.ln)("Dropdown"),Io=v.useMemo(()=>{const Yt=jr();return sn!==void 0?sn:Qt.includes("top")?`${Yt}-slide-down`:`${Yt}-slide-up`},[jr,Qt,sn]),On=v.useMemo(()=>Qt?Qt.includes("Center")?Qt.slice(0,Qt.indexOf("Center")):Qt:xi==="rtl"?"bottomRight":"bottomLeft",[Qt,xi]),zr=jr("dropdown",ms),[qr,Wi]=Ce(zr),[,ir]=(0,xe.Z)(),Jn=v.Children.only(De),$t=(0,F.Tm)(Jn,{className:x()(`${zr}-trigger`,{[`${zr}-rtl`]:xi==="rtl"},Jn.props.className),disabled:$i}),Gt=$i?[]:Oo;let wn;Gt&&Gt.includes("contextMenu")&&(wn=!0);const[Zn,_r]=(0,R.Z)(!1,{value:Ct!=null?Ct:hn}),qn=(0,V.zX)(Yt=>{Ht==null||Ht(Yt,{source:"trigger"}),En==null||En(Yt),_r(Yt)}),$n=x()(Ro,Tn,Wi,Pr==null?void 0:Pr.className,{[`${zr}-rtl`]:xi==="rtl"}),jt=(0,p.Z)({arrowPointAtCenter:typeof To=="object"&&To.pointAtCenter,autoAdjustOverflow:Mt,offset:ir.marginXXS,arrowWidth:To?ir.sizePopupArrow:0,borderRadius:ir.borderRadius}),In=v.useCallback(()=>{Mr!=null&&Mr.selectable&&(Mr!=null&&Mr.multiple)||(Ht==null||Ht(!1,{source:"menu"}),_r(!1))},[Mr==null?void 0:Mr.selectable,Mr==null?void 0:Mr.multiple]),vr=()=>{let Yt;return Mr!=null&&Mr.items?Yt=v.createElement(be.Z,Object.assign({},Mr)):typeof Dn=="function"?Yt=Dn():Yt=Dn,co&&(Yt=co(Yt)),Yt=v.Children.only(typeof Yt=="string"?v.createElement("span",null,Yt):Yt),v.createElement(Ae.J,{prefixCls:`${zr}-menu`,expandIcon:v.createElement("span",{className:`${zr}-menu-submenu-arrow`},v.createElement(M.Z,{className:`${zr}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:In,validator:xn=>{let{mode:fr}=xn}},Yt)},[Ur,Ao]=(0,S.Cn)("Dropdown",nt==null?void 0:nt.zIndex);return qr(v.createElement(he.Z.Provider,{value:Ao},v.createElement(N.Z,Object.assign({alignPoint:wn},(0,k.Z)(gi,["rootClassName"]),{mouseEnterDelay:rn,mouseLeaveDelay:Jt,visible:Zn,builtinPlacements:jt,arrow:!!To,overlayClassName:$n,prefixCls:zr,getPopupContainer:Vr||wr,transitionName:Io,trigger:Gt,overlay:vr,placement:On,onVisibleChange:qn,overlayStyle:Object.assign(Object.assign(Object.assign({},Pr==null?void 0:Pr.style),nt),{zIndex:Ur})}),$t)))};function Xt(gi){return Object.assign(Object.assign({},gi),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Ft=(0,T.Z)(Ne,"dropdown",gi=>gi,Xt),lt=gi=>v.createElement(Ft,Object.assign({},gi),v.createElement("span",null));Ne._InternalPanelDoNotUseOrYouWillBeFired=lt;var Bt=Ne,At=_(93319),an=_(34745),Tt=_(2159),Nn=_(43906),mn=function(gi,Mr){var To={};for(var ms in gi)Object.prototype.hasOwnProperty.call(gi,ms)&&Mr.indexOf(ms)<0&&(To[ms]=gi[ms]);if(gi!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ms=Object.getOwnPropertySymbols(gi);De{const{getPopupContainer:Mr,getPrefixCls:To,direction:ms}=v.useContext(fe.E_),{prefixCls:De,type:Oo="default",danger:$i,disabled:co,loading:Vr,onClick:Ro,htmlType:Tn,children:nt,className:Ct,menu:Ht,arrow:hn,autoFocus:En,overlay:rn,trigger:Jt,align:Mt,open:Qt,onOpenChange:Dn,placement:sn,getPopupContainer:wr,href:jr,icon:xi=v.createElement(At.Z,null),title:Pr,buttonsRender:Hi=Yt=>Yt,mouseEnterDelay:Io,mouseLeaveDelay:On,overlayClassName:zr,overlayStyle:qr,destroyPopupOnHide:Wi,dropdownRender:ir}=gi,Jn=mn(gi,["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"]),$t=To("dropdown",De),Gt=`${$t}-button`,[wn,Zn]=Ce($t),_r={menu:Ht,arrow:hn,autoFocus:En,align:Mt,disabled:co,trigger:co?[]:Jt,onOpenChange:Dn,getPopupContainer:wr||Mr,mouseEnterDelay:Io,mouseLeaveDelay:On,overlayClassName:zr,overlayStyle:qr,destroyPopupOnHide:Wi,dropdownRender:ir},{compactSize:qn,compactItemClassnames:$n}=(0,Nn.ri)($t,ms),jt=x()(Gt,$n,Ct,Zn);"overlay"in gi&&(_r.overlay=rn),"open"in gi&&(_r.open=Qt),"placement"in gi?_r.placement=sn:_r.placement=ms==="rtl"?"bottomLeft":"bottomRight";const In=v.createElement(an.ZP,{type:Oo,danger:$i,disabled:co,loading:Vr,onClick:Ro,htmlType:Tn,href:jr,title:Pr},nt),vr=v.createElement(an.ZP,{type:Oo,danger:$i,icon:xi}),[Ur,Ao]=Hi([In,vr]);return wn(v.createElement(Tt.Z.Compact,Object.assign({className:jt,size:qn,block:!0},Jn),Ur,v.createElement(Bt,Object.assign({},_r),Ao)))};zn.__ANT_BUTTON=!0;var Kr=zn;const Ui=Bt;Ui.Button=Kr;var go=Ui},71025:function(mt,q,_){"use strict";_.d(q,{Z:function(){return it}});var v=_(12124),M=_.n(v),C=_(77617),x=_(41203),N=_(92584),V=_(64993),R=_(45844),S=()=>{const[,Xe]=(0,R.Z)(),Me=new V.C(Xe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return C.createElement("svg",{style:Me,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},C.createElement("g",{fill:"none",fillRule:"evenodd"},C.createElement("g",{transform:"translate(24 31.67)"},C.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),C.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"}),C.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)"}),C.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"}),C.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"})),C.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"}),C.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},C.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),C.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},T=()=>{const[,Xe]=(0,R.Z)(),{colorFill:ft,colorFillTertiary:Me,colorFillQuaternary:Ee,colorBgContainer:ze}=Xe,{borderColor:Pe,shadowColor:Re,contentColor:je}=(0,C.useMemo)(()=>({borderColor:new V.C(ft).onBackground(ze).toHexShortString(),shadowColor:new V.C(Me).onBackground(ze).toHexShortString(),contentColor:new V.C(Ee).onBackground(ze).toHexShortString()}),[ft,Me,Ee,ze]);return C.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},C.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},C.createElement("ellipse",{fill:Re,cx:"32",cy:"33",rx:"32",ry:"7"}),C.createElement("g",{fillRule:"nonzero",stroke:Pe},C.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"}),C.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:je}))))},F=_(93154),K=_(43040);const he=Xe=>{const{componentCls:ft,margin:Me,marginXS:Ee,marginXL:ze,fontSize:Pe,lineHeight:Re}=Xe;return{[ft]:{marginInline:Ee,fontSize:Pe,lineHeight:Re,textAlign:"center",[`${ft}-image`]:{height:Xe.emptyImgHeight,marginBottom:Ee,opacity:Xe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${ft}-description`]:{color:Xe.colorText},[`${ft}-footer`]:{marginTop:Me},"&-normal":{marginBlock:ze,color:Xe.colorTextDisabled,[`${ft}-description`]:{color:Xe.colorTextDisabled},[`${ft}-image`]:{height:Xe.emptyImgHeightMD}},"&-small":{marginBlock:Ee,color:Xe.colorTextDisabled,[`${ft}-image`]:{height:Xe.emptyImgHeightSM}}}}};var fe=(0,F.Z)("Empty",Xe=>{const{componentCls:ft,controlHeightLG:Me}=Xe,Ee=(0,K.TS)(Xe,{emptyImgCls:`${ft}-img`,emptyImgHeight:Me*2.5,emptyImgHeightMD:Me,emptyImgHeightSM:Me*.875});return[he(Ee)]}),be=function(Xe,ft){var Me={};for(var Ee in Xe)Object.prototype.hasOwnProperty.call(Xe,Ee)&&ft.indexOf(Ee)<0&&(Me[Ee]=Xe[Ee]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Ee=Object.getOwnPropertySymbols(Xe);ze{var{className:ft,rootClassName:Me,prefixCls:Ee,image:ze=Ae,description:Pe,children:Re,imageStyle:je,style:Ce}=Xe,rt=be(Xe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Ne,direction:Xt,empty:Ft}=C.useContext(x.E_),lt=Ne("empty",Ee),[Bt,At]=fe(lt),[an]=(0,N.Z)("Empty"),Tt=typeof Pe!="undefined"?Pe:an==null?void 0:an.description,Nn=typeof Tt=="string"?Tt:"empty";let mn=null;return typeof ze=="string"?mn=C.createElement("img",{alt:Nn,src:ze}):mn=ze,Bt(C.createElement("div",Object.assign({className:M()(At,lt,Ft==null?void 0:Ft.className,{[`${lt}-normal`]:ze===xe,[`${lt}-rtl`]:Xt==="rtl"},ft,Me),style:Object.assign(Object.assign({},Ft==null?void 0:Ft.style),Ce)},rt),C.createElement("div",{className:`${lt}-image`,style:je},mn),Tt&&C.createElement("div",{className:`${lt}-description`},Tt),Re&&C.createElement("div",{className:`${lt}-footer`},Re)))};Se.PRESENTED_IMAGE_DEFAULT=Ae,Se.PRESENTED_IMAGE_SIMPLE=xe;var it=Se},74334:function(mt,q,_){"use strict";_.d(q,{RV:function(){return V},Rk:function(){return R},Ux:function(){return S},aM:function(){return k},q3:function(){return x},qI:function(){return N}});var v=_(77617),M=_(55081),C=_(39029);const x=v.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),N=v.createContext(null),V=p=>{const T=(0,C.Z)(p,["prefixCls"]);return v.createElement(M.RV,Object.assign({},T))},R=v.createContext({prefixCls:""}),k=v.createContext({}),S=p=>{let{children:T,status:F,override:K}=p;const he=(0,v.useContext)(k),fe=(0,v.useMemo)(()=>{const be=Object.assign({},he);return K&&delete be.isFormItemInput,F&&(delete be.status,delete be.hasFeedback,delete be.feedbackIcon),be},[F,K,he]);return v.createElement(k.Provider,{value:fe},T)}},17216:function(mt,q,_){"use strict";_.d(q,{Z:function(){return Hs}});var v=_(42371),M=_(12124),C=_.n(M),x=_(44516),N=_(77617),V=_(8418),R=_(74334);function k(Hr){const[Bi,fn]=N.useState(Hr);return N.useEffect(()=>{const Ln=setTimeout(()=>{fn(Hr)},Hr.length?0:10);return()=>{clearTimeout(Ln)}},[Hr]),Bi}var S=_(21348),p=_(53679),T=_(63797),F=_(43040),K=_(93154),fe=Hr=>{const{componentCls:Bi}=Hr,fn=`${Bi}-show-help`,Ln=`${Bi}-show-help-item`;return{[fn]:{transition:`opacity ${Hr.motionDurationSlow} ${Hr.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ln]:{overflow:"hidden",transition:`height ${Hr.motionDurationSlow} ${Hr.motionEaseInOut}, + opacity ${Hr.motionDurationSlow} ${Hr.motionEaseInOut}, + transform ${Hr.motionDurationSlow} ${Hr.motionEaseInOut} !important`,[`&${Ln}-appear, &${Ln}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${Ln}-leave-active`]:{transform:"translateY(-5px)"}}}}};const be=Hr=>({legend:{display:"block",width:"100%",marginBottom:Hr.marginLG,padding:0,color:Hr.colorTextDescription,fontSize:Hr.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Hr.lineWidth}px ${Hr.lineType} ${Hr.colorBorder}`},label:{fontSize:Hr.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 ${Er.controlOutlineWidth}px ${Er.controlOutline}`},output:{display:"block",paddingTop:15,color:Er.colorText,fontSize:Er.fontSize,lineHeight:Er.lineHeight}}),pe=(Er,ui)=>{const{formItemCls:Xt}=Er;return{[Xt]:{[`${Xt}-label > label`]:{height:ui},[`${Xt}-control-input`]:{minHeight:ui}}}},he=Er=>{const{componentCls:ui}=Er;return{[Er.componentCls]:Object.assign(Object.assign(Object.assign({},(0,C.Wf)(Er)),ce(Er)),{[`${ui}-text`]:{display:"inline-block",paddingInlineEnd:Er.paddingSM},"&-small":Object.assign({},pe(Er,Er.controlHeightSM)),"&-large":Object.assign({},pe(Er,Er.controlHeightLG))})}},fe=Er=>{const{formItemCls:ui,iconCls:Xt,componentCls:gn,rootPrefixCls:En,labelRequiredMarkColor:tt,labelColor:at,labelFontSize:gt,labelHeight:Re,labelColonMarginInlineStart:lt,labelColonMarginInlineEnd:St,itemMarginBottom:ln}=Er;return{[ui]:Object.assign(Object.assign({},(0,C.Wf)(Er)),{marginBottom:ln,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden.${En}-row`]:{display:"none"},"&-has-warning":{[`${ui}-split`]:{color:Er.colorError}},"&-has-error":{[`${ui}-split`]:{color:Er.colorWarning}},[`${ui}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Er.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Re,color:at,fontSize:gt,[`> ${Xt}`]:{fontSize:Er.fontSize,verticalAlign:"top"},[`&${ui}-required:not(${ui}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Er.marginXXS,color:tt,fontSize:Er.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${gn}-hide-required-mark &`]:{display:"none"}},[`${ui}-optional`]:{display:"inline-block",marginInlineStart:Er.marginXXS,color:Er.colorTextDescription,[`${gn}-hide-required-mark &`]:{display:"none"}},[`${ui}-tooltip`]:{color:Er.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Er.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:lt,marginInlineEnd:St},[`&${ui}-no-colon::after`]:{content:'"\\a0"'}}},[`${ui}-control`]:{["--ant-display"]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${En}-col-'"]):not([class*="' ${En}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Er.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ui]:{"&-explain, &-extra":{clear:"both",color:Er.colorTextDescription,fontSize:Er.fontSize,lineHeight:Er.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Er.controlHeightSM,transition:`color ${Er.motionDurationMid} ${Er.motionEaseOut}`},"&-explain":{"&-error":{color:Er.colorError},"&-warning":{color:Er.colorWarning}}},[`&-with-help ${ui}-explain`]:{height:"auto",opacity:1},[`${ui}-feedback-icon`]:{fontSize:Er.fontSize,textAlign:"center",visibility:"visible",animationName:f.kr,animationDuration:Er.motionDurationMid,animationTimingFunction:Er.motionEaseOutBack,pointerEvents:"none","&-success":{color:Er.colorSuccess},"&-error":{color:Er.colorError},"&-warning":{color:Er.colorWarning},"&-validating":{color:Er.colorPrimary}}})}},Be=Er=>{const{componentCls:ui,formItemCls:Xt}=Er;return{[`${ui}-horizontal`]:{[`${Xt}-label`]:{flexGrow:0},[`${Xt}-control`]:{flex:"1 1 0",minWidth:0},[`${Xt}-label[class$='-24'], ${Xt}-label[class*='-24 ']`]:{[`& + ${Xt}-control`]:{minWidth:"unset"}}}}},Ie=Er=>{const{componentCls:ui,formItemCls:Xt}=Er;return{[`${ui}-inline`]:{display:"flex",flexWrap:"wrap",[Xt]:{flex:"none",marginInlineEnd:Er.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Xt}-label, - > ${Xt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Xt}-label`]:{flex:"none"},[`${ui}-text`]:{display:"inline-block"},[`${Xt}-has-feedback`]:{display:"inline-block"}}}}},je=Er=>({padding:Er.verticalLabelPadding,margin:Er.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),be=Er=>{const{componentCls:ui,formItemCls:Xt,rootPrefixCls:gn}=Er;return{[`${Xt} ${Xt}-label`]:je(Er),[ui]:{[Xt]:{flexWrap:"wrap",[`${Xt}-label, ${Xt}-control`]:{[`&:not([class*=" ${gn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ve=Er=>{const{componentCls:ui,formItemCls:Xt,rootPrefixCls:gn}=Er;return{[`${ui}-vertical`]:{[Xt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${ui}-item-control`]:{width:"100%"}}},[`${ui}-vertical ${Xt}-label, - .${gn}-col-24${Xt}-label, - .${gn}-col-xl-24${Xt}-label`]:je(Er),[`@media (max-width: ${Er.screenXSMax}px)`]:[be(Er),{[ui]:{[`.${gn}-col-xs-24${Xt}-label`]:je(Er)}}],[`@media (max-width: ${Er.screenSMMax}px)`]:{[ui]:{[`.${gn}-col-sm-24${Xt}-label`]:je(Er)}},[`@media (max-width: ${Er.screenMDMax}px)`]:{[ui]:{[`.${gn}-col-md-24${Xt}-label`]:je(Er)}},[`@media (max-width: ${Er.screenLGMax}px)`]:{[ui]:{[`.${gn}-col-lg-24${Xt}-label`]:je(Er)}}}},ye=(Er,ui)=>(0,P.TS)(Er,{formItemCls:`${Er.componentCls}-item`,rootPrefixCls:ui});var Ce=(0,W.Z)("Form",(Er,ui)=>{let{rootPrefixCls:Xt}=ui;const gn=ye(Er,Xt);return[he(gn),fe(gn),re(gn),Be(gn),Ie(gn),ve(gn),(0,S.Z)(gn),f.kr]},Er=>({labelRequiredMarkColor:Er.colorError,labelColor:Er.colorTextHeading,labelFontSize:Er.fontSize,labelHeight:Er.controlHeight,labelColonMarginInlineStart:Er.marginXXS/2,labelColonMarginInlineEnd:Er.marginXS,itemMarginBottom:Er.marginLG,verticalLabelPadding:`0 0 ${Er.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const xe=[];function Ae(Er,ui,Xt){let gn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Er=="string"?Er:`${ui}-${gn}`,error:Er,errorStatus:Xt}}var We=Er=>{let{help:ui,helpStatus:Xt,errors:gn=xe,warnings:En=xe,className:tt,fieldId:at,onVisibleChanged:gt}=Er;const{prefixCls:Re}=k.useContext(w.Rk),lt=`${Re}-item-explain`,[,St]=Ce(Re),ln=(0,k.useMemo)(()=>(0,N.Z)(Re),[Re]),Vn=A(gn),wr=A(En),ki=k.useMemo(()=>ui!=null?[Ae(ui,"help",Xt)]:[].concat((0,y.Z)(Vn.map((Ki,ps)=>Ae(Ki,"error","error",ps))),(0,y.Z)(wr.map((Ki,ps)=>Ae(Ki,"warning","warning",ps)))),[ui,Xt,Vn,wr]),Vi={};return at&&(Vi.id=`${at}_help`),k.createElement(z.ZP,{motionDeadline:ln.motionDeadline,motionName:`${Re}-show-help`,visible:!!ki.length,onVisibleChanged:gt},Ki=>{const{className:ps,style:Ns}=Ki;return k.createElement("div",Object.assign({},Vi,{className:b()(lt,ps,tt,St),style:Ns,role:"alert"}),k.createElement(z.V4,Object.assign({keys:ki},(0,N.Z)(Re),{motionName:`${Re}-show-help-item`,component:!1}),Bs=>{const{key:_a,error:oo,errorStatus:Ds,className:oa,style:va}=Bs;return k.createElement("div",{key:_a,className:b()(oa,{[`${lt}-${Ds}`]:Ds}),style:va},oo)}))})},Se=m(76152),Pt=m(67392),dt=m(81689),He=m(75189),Ct=m(21843);const ft=Er=>typeof Er=="object"&&Er!=null&&Er.nodeType===1,zt=(Er,ui)=>(!ui||Er!=="hidden")&&Er!=="visible"&&Er!=="clip",mt=(Er,ui)=>{if(Er.clientHeight{const En=(tt=>{if(!tt.ownerDocument||!tt.ownerDocument.defaultView)return null;try{return tt.ownerDocument.defaultView.frameElement}catch(at){return null}})(gn);return!!En&&(En.clientHeightttui||tt>Er&&at=ui&>>=Xt?tt-Er-gn:at>ui&>Xt?at-ui+En:0,Bn=Er=>{const ui=Er.parentElement;return ui==null?Er.getRootNode().host||null:ui},Lr=(Er,ui)=>{var Xt,gn,En,tt;if(typeof document=="undefined")return[];const{scrollMode:at,block:gt,inline:Re,boundary:lt,skipOverflowHiddenElements:St}=ui,ln=typeof lt=="function"?lt:eo=>eo!==lt;if(!ft(Er))throw new TypeError("Invalid target");const Vn=document.scrollingElement||document.documentElement,wr=[];let ki=Er;for(;ft(ki)&&ln(ki);){if(ki=Bn(ki),ki===Vn){wr.push(ki);break}ki!=null&&ki===document.body&&mt(ki)&&!mt(document.documentElement)||ki!=null&&mt(ki,St)&&wr.push(ki)}const Vi=(gn=(Xt=window.visualViewport)==null?void 0:Xt.width)!=null?gn:innerWidth,Ki=(tt=(En=window.visualViewport)==null?void 0:En.height)!=null?tt:innerHeight,{scrollX:ps,scrollY:Ns}=window,{height:Bs,width:_a,top:oo,right:Ds,bottom:oa,left:va}=Er.getBoundingClientRect(),{top:Bl,right:Fa,bottom:gl,left:ua}=(eo=>{const sa=window.getComputedStyle(eo);return{top:parseFloat(sa.scrollMarginTop)||0,right:parseFloat(sa.scrollMarginRight)||0,bottom:parseFloat(sa.scrollMarginBottom)||0,left:parseFloat(sa.scrollMarginLeft)||0}})(Er);let Nl=gt==="start"||gt==="nearest"?oo-Bl:gt==="end"?oa+gl:oo+Bs/2-Bl+gl,vs=Re==="center"?va+_a/2-ua+Fa:Re==="end"?Ds+Fa:va-ua;const Hi=[];for(let eo=0;eo=0&&va>=0&&oa<=Ki&&Ds<=Vi&&oo>=$u&&oa<=Pc&&va>=vo&&Ds<=rc)return Hi;const to=getComputedStyle(sa),hs=parseInt(to.borderLeftWidth,10),jn=parseInt(to.borderTopWidth,10),yr=parseInt(to.borderRightWidth,10),ai=parseInt(to.borderBottomWidth,10);let hi=0,Ji=0;const so="offsetWidth"in sa?sa.offsetWidth-sa.clientWidth-hs-yr:0,Pi="offsetHeight"in sa?sa.offsetHeight-sa.clientHeight-jn-ai:0,us="offsetWidth"in sa?sa.offsetWidth===0?0:Ka/sa.offsetWidth:0,ga="offsetHeight"in sa?sa.offsetHeight===0?0:Cs/sa.offsetHeight:0;if(Vn===sa)hi=gt==="start"?Nl:gt==="end"?Nl-Ki:gt==="nearest"?yn(Ns,Ns+Ki,Ki,jn,ai,Ns+Nl,Ns+Nl+Bs,Bs):Nl-Ki/2,Ji=Re==="start"?vs:Re==="center"?vs-Vi/2:Re==="end"?vs-Vi:yn(ps,ps+Vi,Vi,hs,yr,ps+vs,ps+vs+_a,_a),hi=Math.max(0,hi+Ns),Ji=Math.max(0,Ji+ps);else{hi=gt==="start"?Nl-$u-jn:gt==="end"?Nl-Pc+ai+Pi:gt==="nearest"?yn($u,Pc,Cs,jn,ai+Pi,Nl,Nl+Bs,Bs):Nl-($u+Cs/2)+Pi/2,Ji=Re==="start"?vs-vo-hs:Re==="center"?vs-(vo+Ka/2)+so/2:Re==="end"?vs-rc+yr+so:yn(vo,rc,Ka,hs,yr+so,vs,vs+_a,_a);const{scrollLeft:$a,scrollTop:dl}=sa;hi=ga===0?0:Math.max(0,Math.min(dl+hi/ga,sa.scrollHeight-Cs/ga+Pi)),Ji=us===0?0:Math.max(0,Math.min($a+Ji/us,sa.scrollWidth-Ka/us+so)),Nl+=dl-hi,vs+=$a-Ji}Hi.push({el:sa,top:hi,left:Ji})}return Hi},ri=Er=>Er===!1?{block:"end",inline:"nearest"}:(ui=>ui===Object(ui)&&Object.keys(ui).length!==0)(Er)?Er:{block:"start",inline:"nearest"};function gi(Er,ui){if(!Er.isConnected||!(En=>{let tt=En;for(;tt&&tt.parentNode;){if(tt.parentNode===document)return!0;tt=tt.parentNode instanceof ShadowRoot?tt.parentNode.host:tt.parentNode}return!1})(Er))return;const Xt=(En=>{const tt=window.getComputedStyle(En);return{top:parseFloat(tt.scrollMarginTop)||0,right:parseFloat(tt.scrollMarginRight)||0,bottom:parseFloat(tt.scrollMarginBottom)||0,left:parseFloat(tt.scrollMarginLeft)||0}})(Er);if((En=>typeof En=="object"&&typeof En.behavior=="function")(ui))return ui.behavior(Lr(Er,ui));const gn=typeof ui=="boolean"||ui==null?void 0:ui.behavior;for(const{el:En,top:tt,left:at}of Lr(Er,ri(ui))){const gt=tt-Xt.top+Xt.bottom,Re=at-Xt.left+Xt.right;En.scroll({top:gt,left:Re,behavior:gn})}}const ro=["parentNode"],To="form_item";function _r(Er){return Er===void 0||Er===!1?[]:Array.isArray(Er)?Er:[Er]}function Bo(Er,ui){if(!Er.length)return;const Xt=Er.join("_");return ui?`${ui}_${Xt}`:ro.includes(Xt)?`${To}_${Xt}`:Xt}function fs(Er,ui,Xt,gn,En,tt){let at=gn;return tt!==void 0?at=tt:Xt.validating?at="validating":Er.length?at="error":ui.length?at="warning":(Xt.touched||En&&Xt.validated)&&(at="success"),at}function me(Er){return _r(Er).join("_")}function So(Er){const[ui]=(0,Se.cI)(),Xt=k.useRef({}),gn=k.useMemo(()=>Er!=null?Er:Object.assign(Object.assign({},ui),{__INTERNAL__:{itemRef:En=>tt=>{const at=me(En);tt?Xt.current[at]=tt:delete Xt.current[at]}},scrollToField:function(En){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const at=_r(En),gt=Bo(at,gn.__INTERNAL__.name),Re=gt?document.getElementById(gt):null;Re&&gi(Re,Object.assign({scrollMode:"if-needed",block:"nearest"},tt))},getFieldInstance:En=>{const tt=me(En);return Xt.current[tt]}}),[Er,ui]);return[gn]}var ho=m(36116),go=function(Er,ui){var Xt={};for(var gn in Er)Object.prototype.hasOwnProperty.call(Er,gn)&&ui.indexOf(gn)<0&&(Xt[gn]=Er[gn]);if(Er!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,gn=Object.getOwnPropertySymbols(Er);En{const Xt=k.useContext(dt.Z),{getPrefixCls:gn,direction:En,form:tt}=k.useContext(Pt.E_),{prefixCls:at,className:gt,rootClassName:Re,size:lt,disabled:St=Xt,form:ln,colon:Vn,labelAlign:wr,labelWrap:ki,labelCol:Vi,wrapperCol:Ki,hideRequiredMark:ps,layout:Ns="horizontal",scrollToFirstError:Bs,requiredMark:_a,onFinishFailed:oo,name:Ds,style:oa,feedbackIcons:va}=Er,Bl=go(Er,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Fa=(0,Ct.Z)(lt),gl=k.useContext(ho.Z),ua=(0,k.useMemo)(()=>_a!==void 0?_a:tt&&tt.requiredMark!==void 0?tt.requiredMark:!ps,[ps,_a,tt]),Nl=Vn!=null?Vn:tt==null?void 0:tt.colon,vs=gn("form",at),[Hi,eo]=Ce(vs),sa=b()(vs,`${vs}-${Ns}`,{[`${vs}-hide-required-mark`]:ua===!1,[`${vs}-rtl`]:En==="rtl",[`${vs}-${Fa}`]:Fa},eo,tt==null?void 0:tt.className,gt,Re),[Cs]=So(ln),{__INTERNAL__:Ka}=Cs;Ka.name=Ds;const $u=(0,k.useMemo)(()=>({name:Ds,labelAlign:wr,labelCol:Vi,labelWrap:ki,wrapperCol:Ki,vertical:Ns==="vertical",colon:Nl,requiredMark:ua,itemRef:Ka.itemRef,form:Cs,feedbackIcons:va}),[Ds,wr,Vi,Ki,Ns,Nl,ua,Cs,va]);k.useImperativeHandle(ui,()=>Cs);const rc=(vo,to)=>{if(vo){let hs={block:"nearest"};typeof vo=="object"&&(hs=vo),Cs.scrollToField(to,hs)}},Pc=vo=>{if(oo==null||oo(vo),vo.errorFields.length){const to=vo.errorFields[0].name;if(Bs!==void 0){rc(Bs,to);return}tt&&tt.scrollToFirstError!==void 0&&rc(tt.scrollToFirstError,to)}};return Hi(k.createElement(dt.n,{disabled:St},k.createElement(He.q,{size:Fa},k.createElement(w.RV,{validateMessages:gl},k.createElement(w.q3.Provider,{value:$u},k.createElement(Se.ZP,Object.assign({id:Ds},Bl,{name:Ds,onFinishFailed:Pc,form:Cs,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),oa),className:sa})))))))};var dn=k.forwardRef(ji),Ve=m(92803),yt=m(9681),xt=m(99486),Wt=m(40869),sn=m(38930);function Ot(Er){if(typeof Er=="function")return Er;const ui=(0,sn.Z)(Er);return ui.length<=1?ui[0]:ui}const Tt=()=>{const{status:Er,errors:ui=[],warnings:Xt=[]}=(0,k.useContext)(w.aM);return{status:Er,errors:ui,warnings:Xt}};Tt.Context=w.aM;var bt=Tt,Ht=m(28637);function zn(Er){const[ui,Xt]=k.useState(Er),gn=(0,k.useRef)(null),En=(0,k.useRef)([]),tt=(0,k.useRef)(!1);k.useEffect(()=>(tt.current=!1,()=>{tt.current=!0,Ht.Z.cancel(gn.current),gn.current=null}),[]);function at(gt){tt.current||(gn.current===null&&(En.current=[],gn.current=(0,Ht.Z)(()=>{gn.current=null,Xt(Re=>{let lt=Re;return En.current.forEach(St=>{lt=St(lt)}),lt})})),En.current.push(gt))}return[ui,at]}function en(){const{itemRef:Er}=k.useContext(w.q3),ui=k.useRef({});function Xt(gn,En){const tt=En&&typeof En=="object"&&En.ref,at=gn.join("_");return(ui.current.name!==at||ui.current.originRef!==tt)&&(ui.current.name=at,ui.current.originRef=tt,ui.current.ref=(0,yt.sQ)(Er(gn),tt)),ui.current.ref}return Xt}var fr=m(64630),Kr=m(62305),ii=m(39029),si=m(67986),Qo=(0,k.createContext)({});const _n=Er=>{const{componentCls:ui}=Er;return{[ui]:{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"}}}},Vr=Er=>{const{componentCls:ui}=Er;return{[ui]:{position:"relative",maxWidth:"100%",minHeight:1}}},qr=(Er,ui)=>{const{componentCls:Xt,gridColumns:gn}=Er,En={};for(let tt=gn;tt>=0;tt--)tt===0?(En[`${Xt}${ui}-${tt}`]={display:"none"},En[`${Xt}-push-${tt}`]={insetInlineStart:"auto"},En[`${Xt}-pull-${tt}`]={insetInlineEnd:"auto"},En[`${Xt}${ui}-push-${tt}`]={insetInlineStart:"auto"},En[`${Xt}${ui}-pull-${tt}`]={insetInlineEnd:"auto"},En[`${Xt}${ui}-offset-${tt}`]={marginInlineStart:0},En[`${Xt}${ui}-order-${tt}`]={order:0}):(En[`${Xt}${ui}-${tt}`]=[{["--ant-display"]:"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${tt/gn*100}%`,maxWidth:`${tt/gn*100}%`}],En[`${Xt}${ui}-push-${tt}`]={insetInlineStart:`${tt/gn*100}%`},En[`${Xt}${ui}-pull-${tt}`]={insetInlineEnd:`${tt/gn*100}%`},En[`${Xt}${ui}-offset-${tt}`]={marginInlineStart:`${tt/gn*100}%`},En[`${Xt}${ui}-order-${tt}`]={order:tt});return En},Ui=(Er,ui)=>qr(Er,ui),xo=(Er,ui,Xt)=>({[`@media (min-width: ${ui}px)`]:Object.assign({},Ui(Er,Xt))}),Us=(0,W.Z)("Grid",Er=>[_n(Er)]),$n=(0,W.Z)("Grid",Er=>{const ui=(0,P.TS)(Er,{gridColumns:24}),Xt={"-sm":ui.screenSMMin,"-md":ui.screenMDMin,"-lg":ui.screenLGMin,"-xl":ui.screenXLMin,"-xxl":ui.screenXXLMin};return[Vr(ui),Ui(ui,""),Ui(ui,"-xs"),Object.keys(Xt).map(gn=>xo(ui,Xt[gn],gn)).reduce((gn,En)=>Object.assign(Object.assign({},gn),En),{})]});var Kn=function(Er,ui){var Xt={};for(var gn in Er)Object.prototype.hasOwnProperty.call(Er,gn)&&ui.indexOf(gn)<0&&(Xt[gn]=Er[gn]);if(Er!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,gn=Object.getOwnPropertySymbols(Er);En{if(typeof Er=="string"&&gn(Er),typeof Er=="object")for(let tt=0;tt{En()},[JSON.stringify(Er),ui]),Xt}var di=k.forwardRef((Er,ui)=>{const{prefixCls:Xt,justify:gn,align:En,className:tt,style:at,children:gt,gutter:Re=0,wrap:lt}=Er,St=Kn(Er,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:ln,direction:Vn}=k.useContext(Pt.E_),[wr,ki]=k.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[Vi,Ki]=k.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),ps=Tr(En,Vi),Ns=Tr(gn,Vi),Bs=k.useRef(Re),_a=(0,si.ZP)();k.useEffect(()=>{const eo=_a.subscribe(sa=>{Ki(sa);const Cs=Bs.current||0;(!Array.isArray(Cs)&&typeof Cs=="object"||Array.isArray(Cs)&&(typeof Cs[0]=="object"||typeof Cs[1]=="object"))&&ki(sa)});return()=>_a.unsubscribe(eo)},[]);const oo=()=>{const eo=[void 0,void 0];return(Array.isArray(Re)?Re:[Re,void 0]).forEach((Cs,Ka)=>{if(typeof Cs=="object")for(let $u=0;$u0?Bl[0]/-2:void 0;ua&&(gl.marginLeft=ua,gl.marginRight=ua),[,gl.rowGap]=Bl;const[Nl,vs]=Bl,Hi=k.useMemo(()=>({gutter:[Nl,vs],wrap:lt}),[Nl,vs,lt]);return oa(k.createElement(Qo.Provider,{value:Hi},k.createElement("div",Object.assign({},St,{className:Fa,style:Object.assign(Object.assign({},gl),at),ref:ui}),gt)))}),rn=function(Er,ui){var Xt={};for(var gn in Er)Object.prototype.hasOwnProperty.call(Er,gn)&&ui.indexOf(gn)<0&&(Xt[gn]=Er[gn]);if(Er!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,gn=Object.getOwnPropertySymbols(Er);En{const{getPrefixCls:Xt,direction:gn}=k.useContext(Pt.E_),{gutter:En,wrap:tt}=k.useContext(Qo),{prefixCls:at,span:gt,order:Re,offset:lt,push:St,pull:ln,className:Vn,children:wr,flex:ki,style:Vi}=Er,Ki=rn(Er,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),ps=Xt("col",at),[Ns,Bs]=$n(ps);let _a={};Xr.forEach(oa=>{let va={};const Bl=Er[oa];typeof Bl=="number"?va.span=Bl:typeof Bl=="object"&&(va=Bl||{}),delete Ki[oa],_a=Object.assign(Object.assign({},_a),{[`${ps}-${oa}-${va.span}`]:va.span!==void 0,[`${ps}-${oa}-order-${va.order}`]:va.order||va.order===0,[`${ps}-${oa}-offset-${va.offset}`]:va.offset||va.offset===0,[`${ps}-${oa}-push-${va.push}`]:va.push||va.push===0,[`${ps}-${oa}-pull-${va.pull}`]:va.pull||va.pull===0,[`${ps}-${oa}-flex-${va.flex}`]:va.flex||va.flex==="auto",[`${ps}-rtl`]:gn==="rtl"})});const oo=b()(ps,{[`${ps}-${gt}`]:gt!==void 0,[`${ps}-order-${Re}`]:Re,[`${ps}-offset-${lt}`]:lt,[`${ps}-push-${St}`]:St,[`${ps}-pull-${ln}`]:ln},Vn,_a,Bs),Ds={};if(En&&En[0]>0){const oa=En[0]/2;Ds.paddingLeft=oa,Ds.paddingRight=oa}return ki&&(Ds.flex=Qn(ki),tt===!1&&!Ds.minWidth&&(Ds.minWidth=0)),Ns(k.createElement("div",Object.assign({},Ki,{style:Object.assign(Object.assign({},Ds),Vi),className:oo,ref:ui}),wr))});const Bt=Er=>{const{formItemCls:ui}=Er;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ui}-control`]:{display:"flex"}}}};var pn=(0,W.b)(["Form","item-item"],(Er,ui)=>{let{rootPrefixCls:Xt}=ui;const gn=ye(Er,Xt);return[Bt(gn)]}),Jr=Er=>{const{prefixCls:ui,status:Xt,wrapperCol:gn,children:En,errors:tt,warnings:at,_internalItemRender:gt,extra:Re,help:lt,fieldId:St,marginBottom:ln,onErrorVisibleChanged:Vn}=Er,wr=`${ui}-item`,ki=k.useContext(w.q3),Vi=gn||ki.wrapperCol||{},Ki=b()(`${wr}-control`,Vi.className),ps=k.useMemo(()=>Object.assign({},ki),[ki]);delete ps.labelCol,delete ps.wrapperCol;const Ns=k.createElement("div",{className:`${wr}-control-input`},k.createElement("div",{className:`${wr}-control-input-content`},En)),Bs=k.useMemo(()=>({prefixCls:ui,status:Xt}),[ui,Xt]),_a=ln!==null||tt.length||at.length?k.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},k.createElement(w.Rk.Provider,{value:Bs},k.createElement(We,{fieldId:St,errors:tt,warnings:at,help:lt,helpStatus:Xt,className:`${wr}-explain-connected`,onVisibleChanged:Vn})),!!ln&&k.createElement("div",{style:{width:0,height:ln}})):null,oo={};St&&(oo.id=`${St}_extra`);const Ds=Re?k.createElement("div",Object.assign({},oo,{className:`${wr}-extra`}),Re):null,oa=gt&>.mark==="pro_table_render"&>.render?gt.render(Er,{input:Ns,errorList:_a,extra:Ds}):k.createElement(k.Fragment,null,Ns,_a,Ds);return k.createElement(w.q3.Provider,{value:ps},k.createElement(as,Object.assign({},Vi,{className:Ki}),oa),k.createElement(pn,{prefixCls:ui}))},vi=m(26508),Ti=m(40043),co=m(91851),Qr=function(ui,Xt){return k.createElement(co.Z,(0,vi.Z)({},ui,{ref:Xt,icon:Ti.Z}))},oi=k.forwardRef(Qr),Zi=m(530),Ir=m(879),tn=m(16175),Gn=function(Er,ui){var Xt={};for(var gn in Er)Object.prototype.hasOwnProperty.call(Er,gn)&&ui.indexOf(gn)<0&&(Xt[gn]=Er[gn]);if(Er!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,gn=Object.getOwnPropertySymbols(Er);En{let{prefixCls:ui,label:Xt,htmlFor:gn,labelCol:En,labelAlign:tt,colon:at,required:gt,requiredMark:Re,tooltip:lt}=Er;var St;const[ln]=(0,Ir.Z)("Form"),{vertical:Vn,labelAlign:wr,labelCol:ki,labelWrap:Vi,colon:Ki}=k.useContext(w.q3);if(!Xt)return null;const ps=En||ki||{},Ns=tt||wr,Bs=`${ui}-item-label`,_a=b()(Bs,Ns==="left"&&`${Bs}-left`,ps.className,{[`${Bs}-wrap`]:!!Vi});let oo=Xt;const Ds=at===!0||Ki!==!1&&at!==!1;Ds&&!Vn&&typeof Xt=="string"&&Xt.trim()!==""&&(oo=Xt.replace(/[:|:]\s*$/,""));const va=Ei(lt);if(va){const{icon:ua=k.createElement(oi,null)}=va,Nl=Gn(va,["icon"]),vs=k.createElement(tn.Z,Object.assign({},Nl),k.cloneElement(ua,{className:`${ui}-item-tooltip`,title:""}));oo=k.createElement(k.Fragment,null,oo,vs)}const Bl=Re==="optional",Fa=typeof Re=="function";Fa?oo=Re(oo,{required:!!gt}):Bl&&!gt&&(oo=k.createElement(k.Fragment,null,oo,k.createElement("span",{className:`${ui}-item-optional`,title:""},(ln==null?void 0:ln.optional)||((St=Zi.Z.Form)===null||St===void 0?void 0:St.optional))));const gl=b()({[`${ui}-item-required`]:gt,[`${ui}-item-required-mark-optional`]:Bl||Fa,[`${ui}-item-no-colon`]:!Ds});return k.createElement(as,Object.assign({},ps,{className:_a}),k.createElement("label",{htmlFor:gn,className:gl,title:typeof Xt=="string"?Xt:""},oo))},nr=m(95934),wi=m(48796),Mi=m(86850),Rr=m(38521);const Xn={success:nr.Z,warning:Mi.Z,error:wi.Z,validating:Rr.Z};function ms(Er){let{children:ui,errors:Xt,warnings:gn,hasFeedback:En,validateStatus:tt,prefixCls:at,meta:gt,noStyle:Re}=Er;const lt=`${at}-item`,{feedbackIcons:St}=k.useContext(w.q3),ln=fs(Xt,gn,gt,null,!!En,tt),{isFormItemInput:Vn,status:wr,hasFeedback:ki,feedbackIcon:Vi}=k.useContext(w.aM),Ki=k.useMemo(()=>{var ps;let Ns;if(En){const _a=En!==!0&&En.icons||St,oo=ln&&((ps=_a==null?void 0:_a({status:ln,errors:Xt,warnings:gn}))===null||ps===void 0?void 0:ps[ln]),Ds=ln&&Xn[ln];Ns=oo!==!1&&Ds?k.createElement("span",{className:b()(`${lt}-feedback-icon`,`${lt}-feedback-icon-${ln}`)},oo||k.createElement(Ds,null)):null}const Bs={status:ln||"",errors:Xt,warnings:gn,hasFeedback:!!En,feedbackIcon:Ns,isFormItemInput:!0};return Re&&(Bs.status=(ln!=null?ln:wr)||"",Bs.isFormItemInput=Vn,Bs.hasFeedback=!!(En!=null?En:ki),Bs.feedbackIcon=En!==void 0?Bs.feedbackIcon:Vi),Bs},[ln,En,Re,Vn,wr]);return k.createElement(w.aM.Provider,{value:Ki},ui)}var ya=function(Er,ui){var Xt={};for(var gn in Er)Object.prototype.hasOwnProperty.call(Er,gn)&&ui.indexOf(gn)<0&&(Xt[gn]=Er[gn]);if(Er!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,gn=Object.getOwnPropertySymbols(Er);En{if(va&&_a.current){const eo=getComputedStyle(_a.current);gl(parseInt(eo.marginBottom,10))}},[va,Bl]);const ua=eo=>{eo||gl(null)},vs=function(){let eo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const sa=eo?oo:lt.errors,Cs=eo?Ds:lt.warnings;return fs(sa,Cs,lt,"",!!St,Re)}(),Hi=b()(Ns,Xt,gn,{[`${Ns}-with-help`]:oa||oo.length||Ds.length,[`${Ns}-has-feedback`]:vs&&St,[`${Ns}-has-success`]:vs==="success",[`${Ns}-has-warning`]:vs==="warning",[`${Ns}-has-error`]:vs==="error",[`${Ns}-is-validating`]:vs==="validating",[`${Ns}-hidden`]:ln});return k.createElement("div",{className:Hi,style:En,ref:_a},k.createElement(di,Object.assign({className:`${Ns}-row`},(0,ii.Z)(ps,["_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(Ii,Object.assign({htmlFor:wr},Er,{requiredMark:Bs,required:ki!=null?ki:Vi,prefixCls:ui})),k.createElement(Jr,Object.assign({},Er,lt,{errors:oo,warnings:Ds,prefixCls:ui,status:vs,help:tt,marginBottom:Fa,onErrorVisibleChanged:ua}),k.createElement(w.qI.Provider,{value:Ki},k.createElement(ms,{prefixCls:ui,meta:lt,errors:lt.errors,warnings:lt.warnings,hasFeedback:St,validateStatus:vs},Vn)))),!!Fa&&k.createElement("div",{className:`${Ns}-margin-offset`,style:{marginBottom:-Fa}}))}const Ws="__SPLIT__",Ua=null,Ao=k.memo(Er=>{let{children:ui}=Er;return ui},(Er,ui)=>Er.value===ui.value&&Er.update===ui.update&&Er.childProps.length===ui.childProps.length&&Er.childProps.every((Xt,gn)=>Xt===ui.childProps[gn]));function cl(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function $r(Er){const{name:ui,noStyle:Xt,className:gn,dependencies:En,prefixCls:tt,shouldUpdate:at,rules:gt,children:Re,required:lt,label:St,messageVariables:ln,trigger:Vn="onChange",validateTrigger:wr,hidden:ki,help:Vi}=Er,{getPrefixCls:Ki}=k.useContext(Pt.E_),{name:ps}=k.useContext(w.q3),Ns=Ot(Re),Bs=typeof Ns=="function",_a=k.useContext(w.qI),{validateTrigger:oo}=k.useContext(Se.zb),Ds=wr!==void 0?wr:oo,oa=ui!=null,va=Ki("form",tt),[Bl,Fa]=Ce(va),gl=(0,Wt.ln)("Form.Item"),ua=k.useContext(Se.ZM),Nl=k.useRef(),[vs,Hi]=zn({}),[eo,sa]=(0,Ve.Z)(()=>cl()),Cs=hs=>{const jn=ua==null?void 0:ua.getKey(hs.name);if(sa(hs.destroy?cl():hs,!0),Xt&&Vi!==!1&&_a){let yr=hs.name;if(hs.destroy)yr=Nl.current||yr;else if(jn!==void 0){const[ai,hi]=jn;yr=[ai].concat((0,y.Z)(hi)),Nl.current=yr}_a(hs,yr)}},Ka=(hs,jn)=>{Hi(yr=>{const ai=Object.assign({},yr),Ji=[].concat((0,y.Z)(hs.name.slice(0,-1)),(0,y.Z)(jn)).join(Ws);return hs.destroy?delete ai[Ji]:ai[Ji]=hs,ai})},[$u,rc]=k.useMemo(()=>{const hs=(0,y.Z)(eo.errors),jn=(0,y.Z)(eo.warnings);return Object.values(vs).forEach(yr=>{hs.push.apply(hs,(0,y.Z)(yr.errors||[])),jn.push.apply(jn,(0,y.Z)(yr.warnings||[]))}),[hs,jn]},[vs,eo.errors,eo.warnings]),Pc=en();function vo(hs,jn,yr){return Xt&&!ki?k.createElement(ms,{prefixCls:va,hasFeedback:Er.hasFeedback,validateStatus:Er.validateStatus,meta:eo,errors:$u,warnings:rc,noStyle:!0},hs):k.createElement(fa,Object.assign({key:"row"},Er,{className:b()(gn,Fa),prefixCls:va,fieldId:jn,isRequired:yr,errors:$u,warnings:rc,meta:eo,onSubItemMetaChange:Ka}),hs)}if(!oa&&!Bs&&!En)return Bl(vo(Ns));let to={};return typeof St=="string"?to.label=St:ui&&(to.label=String(ui)),ln&&(to=Object.assign(Object.assign({},to),ln)),Bl(k.createElement(Se.gN,Object.assign({},Er,{messageVariables:to,trigger:Vn,validateTrigger:Ds,onMetaChange:Cs}),(hs,jn,yr)=>{const ai=_r(ui).length&&jn?jn.name:[],hi=Bo(ai,ps),Ji=lt!==void 0?lt:!!(gt&>.some(us=>{if(us&&typeof us=="object"&&us.required&&!us.warningOnly)return!0;if(typeof us=="function"){const ga=us(yr);return ga&&ga.required&&!ga.warningOnly}return!1})),so=Object.assign({},hs);let Pi=null;if(Array.isArray(Ns)&&oa)Pi=Ns;else if(!(Bs&&(!(at||En)||oa))){if(!(En&&!Bs&&!oa))if((0,xt.l$)(Ns)){const us=Object.assign(Object.assign({},Ns.props),so);if(us.id||(us.id=hi),Vi||$u.length>0||rc.length>0||Er.extra){const dl=[];(Vi||$u.length>0)&&dl.push(`${hi}_help`),Er.extra&&dl.push(`${hi}_extra`),us["aria-describedby"]=dl.join(" ")}$u.length>0&&(us["aria-invalid"]="true"),Ji&&(us["aria-required"]="true"),(0,yt.Yr)(Ns)&&(us.ref=Pc(ai,Ns)),new Set([].concat((0,y.Z)(_r(Vn)),(0,y.Z)(_r(Ds)))).forEach(dl=>{us[dl]=function(){for(var Hl,Ml,Za,Pu,ea,Qa=arguments.length,el=new Array(Qa),Ul=0;Ul{var{prefixCls:ui,children:Xt}=Er,gn=pr(Er,["prefixCls","children"]);const{getPrefixCls:En}=k.useContext(Pt.E_),tt=En("form",ui),at=k.useMemo(()=>({prefixCls:tt,status:"error"}),[tt]);return k.createElement(Se.aV,Object.assign({},gn),(gt,Re,lt)=>k.createElement(w.Rk.Provider,{value:at},Xt(gt.map(St=>Object.assign(Object.assign({},St),{fieldKey:St.key})),Re,{errors:lt.errors,warnings:lt.warnings})))};function mo(){const{form:Er}=(0,k.useContext)(w.q3);return Er}const Ts=dn;Ts.Item=Dr,Ts.List=Eo,Ts.ErrorList=We,Ts.useForm=So,Ts.useFormInstance=mo,Ts.useWatch=Se.qo,Ts.Provider=w.RV,Ts.create=()=>{};var xs=Ts},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 Qo}});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(Vr,qr){return b.createElement(N.Z,(0,I.Z)({},Vr,{ref:qr,icon:k}))},A=b.forwardRef(w),C=m(12124),f=m.n(C),S=m(80268),P=m(91002),W=m(39718),te=m(52528),re=m(74809),ce=m(57338);function pe(){return typeof BigInt=="function"}function he(_n){return!_n&&_n!==0&&!Number.isNaN(_n)||!String(_n).trim()}function fe(_n){var Vr=_n.trim(),qr=Vr.startsWith("-");qr&&(Vr=Vr.slice(1)),Vr=Vr.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Vr.startsWith(".")&&(Vr="0".concat(Vr));var Ui=Vr||"0",xo=Ui.split("."),Us=xo[0]||"0",$n=xo[1]||"0";Us==="0"&&$n==="0"&&(qr=!1);var Kn=qr?"-":"";return{negative:qr,negativeStr:Kn,trimStr:Ui,integerStr:Us,decimalStr:$n,fullStr:"".concat(Kn).concat(Ui)}}function Be(_n){var Vr=String(_n);return!Number.isNaN(Number(Vr))&&Vr.includes("e")}function Ie(_n){var Vr=String(_n);if(Be(_n)){var qr=Number(Vr.slice(Vr.indexOf("e-")+2)),Ui=Vr.match(/\.(\d+)/);return Ui!=null&&Ui[1]&&(qr+=Ui[1].length),qr}return Vr.includes(".")&&be(Vr)?Vr.length-Vr.indexOf(".")-1:0}function je(_n){var Vr=String(_n);if(Be(_n)){if(_n>Number.MAX_SAFE_INTEGER)return String(pe()?BigInt(_n).toString():Number.MAX_SAFE_INTEGER);if(_n0&&arguments[0]!==void 0?arguments[0]:!0;return qr?this.isInvalidate()?"":fe("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),_n}(),ye=function(){function _n(Vr){if((0,re.Z)(this,_n),(0,S.Z)(this,"origin",""),(0,S.Z)(this,"number",void 0),(0,S.Z)(this,"empty",void 0),he(Vr)){this.empty=!0;return}this.origin=String(Vr),this.number=Number(Vr)}return(0,ce.Z)(_n,[{key:"negate",value:function(){return new _n(-this.toNumber())}},{key:"add",value:function(qr){if(this.isInvalidate())return new _n(qr);var Ui=Number(qr);if(Number.isNaN(Ui))return this;var xo=this.number+Ui;if(xo>Number.MAX_SAFE_INTEGER)return new _n(Number.MAX_SAFE_INTEGER);if(xoNumber.MAX_SAFE_INTEGER)return new _n(Number.MAX_SAFE_INTEGER);if(xo0&&arguments[0]!==void 0?arguments[0]:!0;return qr?this.isInvalidate()?"":je(this.number):this.origin}}]),_n}();function Ce(_n){return pe()?new ve(_n):new ye(_n)}function xe(_n,Vr,qr){var Ui=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(_n==="")return"";var xo=fe(_n),Us=xo.negativeStr,$n=xo.integerStr,Kn=xo.decimalStr,Fr="".concat(Vr).concat(Kn),mi="".concat(Us).concat($n);if(qr>=0){var Tr=Number(Kn[qr]);if(Tr>=5&&!Ui){var ti=Ce(_n).add("".concat(Us,"0.").concat("0".repeat(qr)).concat(10-Tr));return xe(ti.toString(),Vr,qr,Ui)}return qr===0?mi:"".concat(mi).concat(Vr).concat(Kn.padEnd(qr,"0").slice(0,qr))}return Fr===".0"?mi:"".concat(mi).concat(Fr)}var Ae=Ce,ge=m(5044),We=m(62305),Se=m(9681),Pt=m(46644);function dt(_n,Vr){var qr=(0,b.useRef)(null);function Ui(){try{var Us=_n.selectionStart,$n=_n.selectionEnd,Kn=_n.value,Fr=Kn.substring(0,Us),mi=Kn.substring($n);qr.current={start:Us,end:$n,value:Kn,beforeTxt:Fr,afterTxt:mi}}catch(Tr){}}function xo(){if(_n&&qr.current&&Vr)try{var Us=_n.value,$n=qr.current,Kn=$n.beforeTxt,Fr=$n.afterTxt,mi=$n.start,Tr=Us.length;if(Us.endsWith(Fr))Tr=Us.length-qr.current.afterTxt.length;else if(Us.startsWith(Kn))Tr=Kn.length;else{var ti=Kn[mi-1],di=Us.indexOf(ti,mi-1);di!==-1&&(Tr=di+1)}_n.setSelectionRange(Tr,Tr)}catch(rn){(0,Pt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(rn.message))}}return[Ui,xo]}var He=m(10103),Ct=function(){var Vr=(0,b.useState)(!1),qr=(0,W.Z)(Vr,2),Ui=qr[0],xo=qr[1];return(0,We.Z)(function(){xo((0,He.Z)())},[]),Ui},ft=Ct,zt=m(28637),mt=200,yn=600;function Bn(_n){var Vr=_n.prefixCls,qr=_n.upNode,Ui=_n.downNode,xo=_n.upDisabled,Us=_n.downDisabled,$n=_n.onStep,Kn=b.useRef(),Fr=b.useRef([]),mi=b.useRef();mi.current=$n;var Tr=function(){clearTimeout(Kn.current)},ti=function(pn,xr){pn.preventDefault(),Tr(),mi.current(xr);function Jr(){mi.current(xr),Kn.current=setTimeout(Jr,mt)}Kn.current=setTimeout(Jr,yn)};b.useEffect(function(){return function(){Tr(),Fr.current.forEach(function(Bt){return zt.Z.cancel(Bt)})}},[]);var di=ft();if(di)return null;var rn="".concat(Vr,"-handler"),Qn=f()(rn,"".concat(rn,"-up"),(0,S.Z)({},"".concat(rn,"-up-disabled"),xo)),Xr=f()(rn,"".concat(rn,"-down"),(0,S.Z)({},"".concat(rn,"-down-disabled"),Us)),ao=function(){return Fr.current.push((0,zt.Z)(Tr))},as={unselectable:"on",role:"button",onMouseUp:ao,onMouseLeave:ao};return b.createElement("div",{className:"".concat(rn,"-wrap")},b.createElement("span",(0,I.Z)({},as,{onMouseDown:function(pn){ti(pn,!0)},"aria-label":"Increase Value","aria-disabled":xo,className:Qn}),qr||b.createElement("span",{unselectable:"on",className:"".concat(Vr,"-handler-up-inner")})),b.createElement("span",(0,I.Z)({},as,{onMouseDown:function(pn){ti(pn,!1)},"aria-label":"Decrease Value","aria-disabled":Us,className:Xr}),Ui||b.createElement("span",{unselectable:"on",className:"".concat(Vr,"-handler-down-inner")})))}function Lr(_n){var Vr=typeof _n=="number"?je(_n):fe(_n).fullStr,qr=Vr.includes(".");return qr?fe(Vr.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:_n+"0"}var ri=m(1892),gi=function(){var _n=(0,b.useRef)(0),Vr=function(){zt.Z.cancel(_n.current)};return(0,b.useEffect)(function(){return Vr},[]),function(qr){Vr(),_n.current=(0,zt.Z)(function(){qr()})}},ro=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],To=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],_r=function(Vr,qr){return Vr||qr.isEmpty()?qr.toString():qr.toNumber()},Bo=function(Vr){var qr=Ae(Vr);return qr.isInvalidate()?null:qr},fs=b.forwardRef(function(_n,Vr){var qr,Ui=_n.prefixCls,xo=Ui===void 0?"rc-input-number":Ui,Us=_n.className,$n=_n.style,Kn=_n.min,Fr=_n.max,mi=_n.step,Tr=mi===void 0?1:mi,ti=_n.defaultValue,di=_n.value,rn=_n.disabled,Qn=_n.readOnly,Xr=_n.upHandler,ao=_n.downHandler,as=_n.keyboard,Bt=_n.controls,pn=Bt===void 0?!0:Bt,xr=_n.classNames,Jr=_n.stringMode,vi=_n.parser,Ti=_n.formatter,co=_n.precision,Qr=_n.decimalSeparator,oi=_n.onChange,Zi=_n.onInput,Ir=_n.onPressEnter,tn=_n.onStep,Gn=(0,te.Z)(_n,ro),Ei="".concat(xo,"-input"),Ln=b.useRef(null),Ii=b.useState(!1),nr=(0,W.Z)(Ii,2),wi=nr[0],Mi=nr[1],Rr=b.useRef(!1),Xn=b.useRef(!1),ms=b.useRef(!1),ya=b.useState(function(){return Ae(di!=null?di:ti)}),fa=(0,W.Z)(ya,2),Ws=fa[0],Ua=fa[1];function Ao(oo){di===void 0&&Ua(oo)}var cl=b.useCallback(function(oo,Ds){if(!Ds)return co>=0?co:Math.max(Ie(oo),Ie(Tr))},[co,Tr]),$r=b.useCallback(function(oo){var Ds=String(oo);if(vi)return vi(Ds);var oa=Ds;return Qr&&(oa=oa.replace(Qr,".")),oa.replace(/[^\w.-]+/g,"")},[vi,Qr]),er=b.useRef(""),Dr=b.useCallback(function(oo,Ds){if(Ti)return Ti(oo,{userTyping:Ds,input:String(er.current)});var oa=typeof oo=="number"?je(oo):oo;if(!Ds){var va=cl(oa,Ds);if(be(oa)&&(Qr||va>=0)){var Bl=Qr||".";oa=xe(oa,Bl,va)}}return oa},[Ti,cl,Qr]),pr=b.useState(function(){var oo=ti!=null?ti:di;return Ws.isInvalidate()&&["string","number"].includes((0,P.Z)(oo))?Number.isNaN(oo)?"":oo:Dr(Ws.toString(),!1)}),ci=(0,W.Z)(pr,2),Eo=ci[0],mo=ci[1];er.current=Eo;function Ts(oo,Ds){mo(Dr(oo.isInvalidate()?oo.toString(!1):oo.toString(!Ds),Ds))}var xs=b.useMemo(function(){return Bo(Fr)},[Fr,co]),Er=b.useMemo(function(){return Bo(Kn)},[Kn,co]),ui=b.useMemo(function(){return!xs||!Ws||Ws.isInvalidate()?!1:xs.lessEquals(Ws)},[xs,Ws]),Xt=b.useMemo(function(){return!Er||!Ws||Ws.isInvalidate()?!1:Ws.lessEquals(Er)},[Er,Ws]),gn=dt(Ln.current,wi),En=(0,W.Z)(gn,2),tt=En[0],at=En[1],gt=function(Ds){return xs&&!Ds.lessEquals(xs)?xs:Er&&!Er.lessEquals(Ds)?Er:null},Re=function(Ds){return!gt(Ds)},lt=function(Ds,oa){var va=Ds,Bl=Re(va)||va.isEmpty();if(!va.isEmpty()&&!oa&&(va=gt(va)||va,Bl=!0),!Qn&&!rn&&Bl){var Fa=va.toString(),gl=cl(Fa,oa);return gl>=0&&(va=Ae(xe(Fa,".",gl)),Re(va)||(va=Ae(xe(Fa,".",gl,!0)))),va.equals(Ws)||(Ao(va),oi==null||oi(va.isEmpty()?null:_r(Jr,va)),di===void 0&&Ts(va,oa)),va}return Ws},St=gi(),ln=function oo(Ds){if(tt(),er.current=Ds,mo(Ds),!Xn.current){var oa=$r(Ds),va=Ae(oa);va.isNaN()||lt(va,!0)}Zi==null||Zi(Ds),St(function(){var Bl=Ds;vi||(Bl=Ds.replace(/。/g,".")),Bl!==Ds&&oo(Bl)})},Vn=function(){Xn.current=!0},wr=function(){Xn.current=!1,ln(Ln.current.value)},ki=function(Ds){ln(Ds.target.value)},Vi=function(Ds){var oa;if(!(Ds&&ui||!Ds&&Xt)){Rr.current=!1;var va=Ae(ms.current?Lr(Tr):Tr);Ds||(va=va.negate());var Bl=(Ws||Ae(0)).add(va.toString()),Fa=lt(Bl,!1);tn==null||tn(_r(Jr,Fa),{offset:ms.current?Lr(Tr):Tr,type:Ds?"up":"down"}),(oa=Ln.current)===null||oa===void 0||oa.focus()}},Ki=function(Ds){var oa=Ae($r(Eo)),va=oa;oa.isNaN()?va=lt(Ws,Ds):va=lt(oa,Ds),di!==void 0?Ts(Ws,!1):va.isNaN()||Ts(va,!1)},ps=function(){Rr.current=!0},Ns=function(Ds){var oa=Ds.key,va=Ds.shiftKey;Rr.current=!0,ms.current=va,oa==="Enter"&&(Xn.current||(Rr.current=!1),Ki(!1),Ir==null||Ir(Ds)),as!==!1&&!Xn.current&&["Up","ArrowUp","Down","ArrowDown"].includes(oa)&&(Vi(oa==="Up"||oa==="ArrowUp"),Ds.preventDefault())},Bs=function(){Rr.current=!1,ms.current=!1},_a=function(){Ki(!1),Mi(!1),Rr.current=!1};return(0,We.o)(function(){Ws.isInvalidate()||Ts(Ws,!1)},[co]),(0,We.o)(function(){var oo=Ae(di);Ua(oo);var Ds=Ae($r(Eo));(!oo.equals(Ds)||!Rr.current||Ti)&&Ts(oo,Rr.current)},[di]),(0,We.o)(function(){Ti&&at()},[Eo]),b.createElement("div",{className:f()(xo,xr==null?void 0:xr.input,Us,(qr={},(0,S.Z)(qr,"".concat(xo,"-focused"),wi),(0,S.Z)(qr,"".concat(xo,"-disabled"),rn),(0,S.Z)(qr,"".concat(xo,"-readonly"),Qn),(0,S.Z)(qr,"".concat(xo,"-not-a-number"),Ws.isNaN()),(0,S.Z)(qr,"".concat(xo,"-out-of-range"),!Ws.isInvalidate()&&!Re(Ws)),qr)),style:$n,onFocus:function(){Mi(!0)},onBlur:_a,onKeyDown:Ns,onKeyUp:Bs,onCompositionStart:Vn,onCompositionEnd:wr,onBeforeInput:ps},pn&&b.createElement(Bn,{prefixCls:xo,upNode:Xr,downNode:ao,upDisabled:ui,downDisabled:Xt,onStep:Vi}),b.createElement("div",{className:"".concat(Ei,"-wrap")},b.createElement("input",(0,I.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Kn,"aria-valuemax":Fr,"aria-valuenow":Ws.isInvalidate()?null:Ws.toString(),step:Tr},Gn,{ref:(0,Se.sQ)(Ln,Vr),className:Ei,value:Eo,onChange:ki,disabled:rn,readOnly:Qn}))))}),me=b.forwardRef(function(_n,Vr){var qr=_n.disabled,Ui=_n.style,xo=_n.prefixCls,Us=_n.value,$n=_n.prefix,Kn=_n.suffix,Fr=_n.addonBefore,mi=_n.addonAfter,Tr=_n.classes,ti=_n.className,di=_n.classNames,rn=(0,te.Z)(_n,To),Qn=b.useRef(null),Xr=function(as){Qn.current&&(0,ri.nH)(Qn.current,as)};return b.createElement(ge.Q,{inputElement:b.createElement(fs,(0,I.Z)({prefixCls:xo,disabled:qr,classNames:di,ref:(0,Se.sQ)(Qn,Vr)},rn)),className:ti,triggerFocus:Xr,prefixCls:xo,value:Us,disabled:qr,style:Ui,prefix:$n,suffix:Kn,addonAfter:mi,addonBefore:Fr,classes:Tr,classNames:di,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});me.displayName="InputNumber";var So=me,ho=So,go=m(5997),ji=m(67392),No=m(75811),dn=m(81689),Ve=m(21843),yt=m(86818),xt=m(58370),Wt=m(89746),sn=m(92068),Ot=m(73973),Tt=m(24577),bt=m(41788);const Ht=(_n,Vr)=>{let{componentCls:qr,borderRadiusSM:Ui,borderRadiusLG:xo}=_n;const Us=Vr==="lg"?xo:Ui;return{[`&-${Vr}`]:{[`${qr}-handler-wrap`]:{borderStartEndRadius:Us,borderEndEndRadius:Us},[`${qr}-handler-up`]:{borderStartEndRadius:Us},[`${qr}-handler-down`]:{borderEndEndRadius:Us}}}},zn=_n=>{const{componentCls:Vr,lineWidth:qr,lineType:Ui,colorBorder:xo,borderRadius:Us,fontSizeLG:$n,controlHeightLG:Kn,controlHeightSM:Fr,colorError:mi,paddingInlineSM:Tr,colorTextDescription:ti,motionDurationMid:di,handleHoverColor:rn,paddingInline:Qn,paddingBlock:Xr,handleBg:ao,handleActiveBg:as,colorTextDisabled:Bt,borderRadiusSM:pn,borderRadiusLG:xr,controlWidth:Jr,handleVisible:vi,handleBorderColor:Ti}=_n;return[{[Vr]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,sn.Wf)(_n)),(0,Wt.ik)(_n)),(0,Wt.bi)(_n,Vr)),{display:"inline-block",width:Jr,margin:0,padding:0,border:`${qr}px ${Ui} ${xo}`,borderRadius:Us,"&-rtl":{direction:"rtl",[`${Vr}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:$n,borderRadius:xr,[`input${Vr}-input`]:{height:Kn-2*qr}},"&-sm":{padding:0,borderRadius:pn,[`input${Vr}-input`]:{height:Fr-2*qr,padding:`0 ${Tr}px`}},"&-out-of-range":{[`${Vr}-input-wrap`]:{input:{color:mi}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,sn.Wf)(_n)),(0,Wt.s7)(_n)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Vr}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Vr}-group-addon`]:{borderRadius:xr,fontSize:_n.fontSizeLG}},"&-sm":{[`${Vr}-group-addon`]:{borderRadius:pn}},[`${Vr}-wrapper-disabled > ${Vr}-group-addon`]:Object.assign({},(0,Wt.Xy)(_n))}}),[`&-disabled ${Vr}-input`]:{cursor:"not-allowed"},[Vr]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,sn.Wf)(_n)),{width:"100%",padding:`${Xr}px ${Qn}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Us,outline:0,transition:`all ${di} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Wt.nz)(_n.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Vr]:Object.assign(Object.assign(Object.assign({[`&:hover ${Vr}-handler-wrap, &-focused ${Vr}-handler-wrap`]:{opacity:1},[`${Vr}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:_n.handleWidth,height:"100%",background:ao,borderStartStartRadius:0,borderStartEndRadius:Us,borderEndEndRadius:Us,borderEndStartRadius:0,opacity:vi===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${di} linear ${di}`,[`${Vr}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` - ${Vr}-handler-up-inner, - ${Vr}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:_n.handleFontSize}}},[`${Vr}-handler`]:{height:"50%",overflow:"hidden",color:ti,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${qr}px ${Ui} ${Ti}`,transition:`all ${di} linear`,"&:active":{background:as},"&:hover":{height:"60%",[` - ${Vr}-handler-up-inner, - ${Vr}-handler-down-inner - `]:{color:rn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,sn.Ro)()),{color:ti,transition:`all ${di} linear`,userSelect:"none"})},[`${Vr}-handler-up`]:{borderStartEndRadius:Us},[`${Vr}-handler-down`]:{borderBlockStart:`${qr}px ${Ui} ${Ti}`,borderEndEndRadius:Us}},Ht(_n,"lg")),Ht(_n,"sm")),{"&-disabled, &-readonly":{[`${Vr}-handler-wrap`]:{display:"none"},[`${Vr}-input`]:{color:"inherit"}},[` - ${Vr}-handler-up-disabled, - ${Vr}-handler-down-disabled + input[type='checkbox']:focus`]:{outline:0,boxShadow:`0 0 0 ${Hr.controlOutlineWidth}px ${Hr.controlOutline}`},output:{display:"block",paddingTop:15,color:Hr.colorText,fontSize:Hr.fontSize,lineHeight:Hr.lineHeight}}),Ae=(Hr,Bi)=>{const{formItemCls:fn}=Hr;return{[fn]:{[`${fn}-label > label`]:{height:Bi},[`${fn}-control-input`]:{minHeight:Bi}}}},xe=Hr=>{const{componentCls:Bi}=Hr;return{[Hr.componentCls]:Object.assign(Object.assign(Object.assign({},(0,S.Wf)(Hr)),be(Hr)),{[`${Bi}-text`]:{display:"inline-block",paddingInlineEnd:Hr.paddingSM},"&-small":Object.assign({},Ae(Hr,Hr.controlHeightSM)),"&-large":Object.assign({},Ae(Hr,Hr.controlHeightLG))})}},Se=Hr=>{const{formItemCls:Bi,iconCls:fn,componentCls:Ln,rootPrefixCls:ur,labelRequiredMarkColor:dt,labelColor:xt,labelFontSize:Et,labelHeight:et,labelColonMarginInlineStart:wt,labelColonMarginInlineEnd:Vt,itemMarginBottom:yn}=Hr;return{[Bi]:Object.assign(Object.assign({},(0,S.Wf)(Hr)),{marginBottom:yn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden.${ur}-row`]:{display:"none"},"&-has-warning":{[`${Bi}-split`]:{color:Hr.colorError}},"&-has-error":{[`${Bi}-split`]:{color:Hr.colorWarning}},[`${Bi}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Hr.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:et,color:xt,fontSize:Et,[`> ${fn}`]:{fontSize:Hr.fontSize,verticalAlign:"top"},[`&${Bi}-required:not(${Bi}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Hr.marginXXS,color:dt,fontSize:Hr.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Ln}-hide-required-mark &`]:{display:"none"}},[`${Bi}-optional`]:{display:"inline-block",marginInlineStart:Hr.marginXXS,color:Hr.colorTextDescription,[`${Ln}-hide-required-mark &`]:{display:"none"}},[`${Bi}-tooltip`]:{color:Hr.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Hr.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:wt,marginInlineEnd:Vt},[`&${Bi}-no-colon::after`]:{content:'"\\a0"'}}},[`${Bi}-control`]:{["--ant-display"]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ur}-col-'"]):not([class*="' ${ur}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Hr.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Bi]:{"&-explain, &-extra":{clear:"both",color:Hr.colorTextDescription,fontSize:Hr.fontSize,lineHeight:Hr.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Hr.controlHeightSM,transition:`color ${Hr.motionDurationMid} ${Hr.motionEaseOut}`},"&-explain":{"&-error":{color:Hr.colorError},"&-warning":{color:Hr.colorWarning}}},[`&-with-help ${Bi}-explain`]:{height:"auto",opacity:1},[`${Bi}-feedback-icon`]:{fontSize:Hr.fontSize,textAlign:"center",visibility:"visible",animationName:p.kr,animationDuration:Hr.motionDurationMid,animationTimingFunction:Hr.motionEaseOutBack,pointerEvents:"none","&-success":{color:Hr.colorSuccess},"&-error":{color:Hr.colorError},"&-warning":{color:Hr.colorWarning},"&-validating":{color:Hr.colorPrimary}}})}},it=Hr=>{const{componentCls:Bi,formItemCls:fn}=Hr;return{[`${Bi}-horizontal`]:{[`${fn}-label`]:{flexGrow:0},[`${fn}-control`]:{flex:"1 1 0",minWidth:0},[`${fn}-label[class$='-24'], ${fn}-label[class*='-24 ']`]:{[`& + ${fn}-control`]:{minWidth:"unset"}}}}},Xe=Hr=>{const{componentCls:Bi,formItemCls:fn}=Hr;return{[`${Bi}-inline`]:{display:"flex",flexWrap:"wrap",[fn]:{flex:"none",marginInlineEnd:Hr.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${fn}-label, + > ${fn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${fn}-label`]:{flex:"none"},[`${Bi}-text`]:{display:"inline-block"},[`${fn}-has-feedback`]:{display:"inline-block"}}}}},ft=Hr=>({padding:Hr.verticalLabelPadding,margin:Hr.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Me=Hr=>{const{componentCls:Bi,formItemCls:fn,rootPrefixCls:Ln}=Hr;return{[`${fn} ${fn}-label`]:ft(Hr),[`${Bi}:not(${Bi}-inline)`]:{[fn]:{flexWrap:"wrap",[`${fn}-label, ${fn}-control`]:{[`&:not([class*=" ${Ln}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ee=Hr=>{const{componentCls:Bi,formItemCls:fn,rootPrefixCls:Ln}=Hr;return{[`${Bi}-vertical`]:{[fn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Bi}-item-control`]:{width:"100%"}}},[`${Bi}-vertical ${fn}-label, + .${Ln}-col-24${fn}-label, + .${Ln}-col-xl-24${fn}-label`]:ft(Hr),[`@media (max-width: ${Hr.screenXSMax}px)`]:[Me(Hr),{[Bi]:{[`.${Ln}-col-xs-24${fn}-label`]:ft(Hr)}}],[`@media (max-width: ${Hr.screenSMMax}px)`]:{[Bi]:{[`.${Ln}-col-sm-24${fn}-label`]:ft(Hr)}},[`@media (max-width: ${Hr.screenMDMax}px)`]:{[Bi]:{[`.${Ln}-col-md-24${fn}-label`]:ft(Hr)}},[`@media (max-width: ${Hr.screenLGMax}px)`]:{[Bi]:{[`.${Ln}-col-lg-24${fn}-label`]:ft(Hr)}}}},ze=(Hr,Bi)=>(0,F.TS)(Hr,{formItemCls:`${Hr.componentCls}-item`,rootPrefixCls:Bi});var Pe=(0,K.Z)("Form",(Hr,Bi)=>{let{rootPrefixCls:fn}=Bi;const Ln=ze(Hr,fn);return[xe(Ln),Se(Ln),fe(Ln),it(Ln),Xe(Ln),Ee(Ln),(0,T.Z)(Ln),p.kr]},Hr=>({labelRequiredMarkColor:Hr.colorError,labelColor:Hr.colorTextHeading,labelFontSize:Hr.fontSize,labelHeight:Hr.controlHeight,labelColonMarginInlineStart:Hr.marginXXS/2,labelColonMarginInlineEnd:Hr.marginXS,itemMarginBottom:Hr.marginLG,verticalLabelPadding:`0 0 ${Hr.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Re=[];function je(Hr,Bi,fn){let Ln=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Hr=="string"?Hr:`${Bi}-${Ln}`,error:Hr,errorStatus:fn}}var rt=Hr=>{let{help:Bi,helpStatus:fn,errors:Ln=Re,warnings:ur=Re,className:dt,fieldId:xt,onVisibleChanged:Et}=Hr;const{prefixCls:et}=N.useContext(R.Rk),wt=`${et}-item-explain`,[,Vt]=Pe(et),yn=(0,N.useMemo)(()=>(0,V.Z)(et),[et]),yr=k(Ln),Yr=k(ur),eo=N.useMemo(()=>Bi!=null?[je(Bi,"help",fn)]:[].concat((0,v.Z)(yr.map((Ii,Cs)=>je(Ii,"error","error",Cs))),(0,v.Z)(Yr.map((Ii,Cs)=>je(Ii,"warning","warning",Cs)))),[Bi,fn,yr,Yr]),Zo={};return xt&&(Zo.id=`${xt}_help`),N.createElement(x.ZP,{motionDeadline:yn.motionDeadline,motionName:`${et}-show-help`,visible:!!eo.length,onVisibleChanged:Et},Ii=>{const{className:Cs,style:ks}=Ii;return N.createElement("div",Object.assign({},Zo,{className:C()(wt,Cs,dt,Vt),style:ks,role:"alert"}),N.createElement(x.V4,Object.assign({keys:eo},(0,V.Z)(et),{motionName:`${et}-show-help-item`,component:!1}),ba=>{const{key:Zs,error:No,errorStatus:js,className:ga,style:da}=ba;return N.createElement("div",{key:Zs,className:C()(ga,{[`${wt}-${js}`]:js}),style:da},No)}))})},Ne=_(55081),Xt=_(41203),Ft=_(57132),lt=_(61629),Bt=_(29212);const At=Hr=>typeof Hr=="object"&&Hr!=null&&Hr.nodeType===1,an=(Hr,Bi)=>(!Bi||Hr!=="hidden")&&Hr!=="visible"&&Hr!=="clip",Tt=(Hr,Bi)=>{if(Hr.clientHeight{const ur=(dt=>{if(!dt.ownerDocument||!dt.ownerDocument.defaultView)return null;try{return dt.ownerDocument.defaultView.frameElement}catch(xt){return null}})(Ln);return!!ur&&(ur.clientHeightdtBi||dt>Hr&&xt=Bi&&Et>=fn?dt-Hr-Ln:xt>Bi&&Etfn?xt-Bi+ur:0,mn=Hr=>{const Bi=Hr.parentElement;return Bi==null?Hr.getRootNode().host||null:Bi},zn=(Hr,Bi)=>{var fn,Ln,ur,dt;if(typeof document=="undefined")return[];const{scrollMode:xt,block:Et,inline:et,boundary:wt,skipOverflowHiddenElements:Vt}=Bi,yn=typeof wt=="function"?wt:Jo=>Jo!==wt;if(!At(Hr))throw new TypeError("Invalid target");const yr=document.scrollingElement||document.documentElement,Yr=[];let eo=Hr;for(;At(eo)&&yn(eo);){if(eo=mn(eo),eo===yr){Yr.push(eo);break}eo!=null&&eo===document.body&&Tt(eo)&&!Tt(document.documentElement)||eo!=null&&Tt(eo,Vt)&&Yr.push(eo)}const Zo=(Ln=(fn=window.visualViewport)==null?void 0:fn.width)!=null?Ln:innerWidth,Ii=(dt=(ur=window.visualViewport)==null?void 0:ur.height)!=null?dt:innerHeight,{scrollX:Cs,scrollY:ks}=window,{height:ba,width:Zs,top:No,right:js,bottom:ga,left:da}=Hr.getBoundingClientRect(),{top:Il,right:Al,bottom:Js,left:Ea}=(Jo=>{const Ps=window.getComputedStyle(Jo);return{top:parseFloat(Ps.scrollMarginTop)||0,right:parseFloat(Ps.scrollMarginRight)||0,bottom:parseFloat(Ps.scrollMarginBottom)||0,left:parseFloat(Ps.scrollMarginLeft)||0}})(Hr);let gl=Et==="start"||Et==="nearest"?No-Il:Et==="end"?ga+Js:No+ba/2-Il+Js,ds=et==="center"?da+Zs/2-Ea+Al:et==="end"?js+Al:da-Ea;const Gi=[];for(let Jo=0;Jo=0&&da>=0&&ga<=Ii&&js<=Zo&&No>=Nu&&ga<=Pc&&da>=tc&&js<=Tc)return Gi;const cc=getComputedStyle(Ps),Uu=parseInt(cc.borderLeftWidth,10),Pn=parseInt(cc.borderTopWidth,10),er=parseInt(cc.borderRightWidth,10),Lr=parseInt(cc.borderBottomWidth,10);let Gr=0,ai=0;const Qi="offsetWidth"in Ps?Ps.offsetWidth-Ps.clientWidth-Uu-er:0,Pi="offsetHeight"in Ps?Ps.offsetHeight-Ps.clientHeight-Pn-Lr:0,fs="offsetWidth"in Ps?Ps.offsetWidth===0?0:Za/Ps.offsetWidth:0,Ks="offsetHeight"in Ps?Ps.offsetHeight===0?0:Fs/Ps.offsetHeight:0;if(yr===Ps)Gr=Et==="start"?gl:Et==="end"?gl-Ii:Et==="nearest"?Nn(ks,ks+Ii,Ii,Pn,Lr,ks+gl,ks+gl+ba,ba):gl-Ii/2,ai=et==="start"?ds:et==="center"?ds-Zo/2:et==="end"?ds-Zo:Nn(Cs,Cs+Zo,Zo,Uu,er,Cs+ds,Cs+ds+Zs,Zs),Gr=Math.max(0,Gr+ks),ai=Math.max(0,ai+Cs);else{Gr=Et==="start"?gl-Nu-Pn:Et==="end"?gl-Pc+Lr+Pi:Et==="nearest"?Nn(Nu,Pc,Fs,Pn,Lr+Pi,gl,gl+ba,ba):gl-(Nu+Fs/2)+Pi/2,ai=et==="start"?ds-tc-Uu:et==="center"?ds-(tc+Za/2)+Qi/2:et==="end"?ds-Tc+er+Qi:Nn(tc,Tc,Za,Uu,er+Qi,ds,ds+Zs,Zs);const{scrollLeft:Ma,scrollTop:qa}=Ps;Gr=Ks===0?0:Math.max(0,Math.min(qa+Gr/Ks,Ps.scrollHeight-Fs/Ks+Pi)),ai=fs===0?0:Math.max(0,Math.min(Ma+ai/fs,Ps.scrollWidth-Za/fs+Qi)),gl+=qa-Gr,ds+=Ma-ai}Gi.push({el:Ps,top:Gr,left:ai})}return Gi},Kr=Hr=>Hr===!1?{block:"end",inline:"nearest"}:(Bi=>Bi===Object(Bi)&&Object.keys(Bi).length!==0)(Hr)?Hr:{block:"start",inline:"nearest"};function Ui(Hr,Bi){if(!Hr.isConnected||!(ur=>{let dt=ur;for(;dt&&dt.parentNode;){if(dt.parentNode===document)return!0;dt=dt.parentNode instanceof ShadowRoot?dt.parentNode.host:dt.parentNode}return!1})(Hr))return;const fn=(ur=>{const dt=window.getComputedStyle(ur);return{top:parseFloat(dt.scrollMarginTop)||0,right:parseFloat(dt.scrollMarginRight)||0,bottom:parseFloat(dt.scrollMarginBottom)||0,left:parseFloat(dt.scrollMarginLeft)||0}})(Hr);if((ur=>typeof ur=="object"&&typeof ur.behavior=="function")(Bi))return Bi.behavior(zn(Hr,Bi));const Ln=typeof Bi=="boolean"||Bi==null?void 0:Bi.behavior;for(const{el:ur,top:dt,left:xt}of zn(Hr,Kr(Bi))){const Et=dt-fn.top+fn.bottom,et=xt-fn.left+fn.right;ur.scroll({top:Et,left:et,behavior:Ln})}}const go=["parentNode"],gi="form_item";function Mr(Hr){return Hr===void 0||Hr===!1?[]:Array.isArray(Hr)?Hr:[Hr]}function To(Hr,Bi){if(!Hr.length)return;const fn=Hr.join("_");return Bi?`${Bi}_${fn}`:go.includes(fn)?`${gi}_${fn}`:fn}function ms(Hr,Bi,fn,Ln,ur,dt){let xt=Ln;return dt!==void 0?xt=dt:fn.validating?xt="validating":Hr.length?xt="error":Bi.length?xt="warning":(fn.touched||ur&&fn.validated)&&(xt="success"),xt}function De(Hr){return Mr(Hr).join("_")}function Oo(Hr){const[Bi]=(0,Ne.cI)(),fn=N.useRef({}),Ln=N.useMemo(()=>Hr!=null?Hr:Object.assign(Object.assign({},Bi),{__INTERNAL__:{itemRef:ur=>dt=>{const xt=De(ur);dt?fn.current[xt]=dt:delete fn.current[xt]}},scrollToField:function(ur){let dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const xt=Mr(ur),Et=To(xt,Ln.__INTERNAL__.name),et=Et?document.getElementById(Et):null;et&&Ui(et,Object.assign({scrollMode:"if-needed",block:"nearest"},dt))},getFieldInstance:ur=>{const dt=De(ur);return fn.current[dt]}}),[Hr,Bi]);return[Ln]}var $i=_(94680),co=function(Hr,Bi){var fn={};for(var Ln in Hr)Object.prototype.hasOwnProperty.call(Hr,Ln)&&Bi.indexOf(Ln)<0&&(fn[Ln]=Hr[Ln]);if(Hr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ur=0,Ln=Object.getOwnPropertySymbols(Hr);ur{const fn=N.useContext(Ft.Z),{getPrefixCls:Ln,direction:ur,form:dt}=N.useContext(Xt.E_),{prefixCls:xt,className:Et,rootClassName:et,size:wt,disabled:Vt=fn,form:yn,colon:yr,labelAlign:Yr,labelWrap:eo,labelCol:Zo,wrapperCol:Ii,hideRequiredMark:Cs,layout:ks="horizontal",scrollToFirstError:ba,requiredMark:Zs,onFinishFailed:No,name:js,style:ga,feedbackIcons:da}=Hr,Il=co(Hr,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Al=(0,Bt.Z)(wt),Js=N.useContext($i.Z),Ea=(0,N.useMemo)(()=>Zs!==void 0?Zs:dt&&dt.requiredMark!==void 0?dt.requiredMark:!Cs,[Cs,Zs,dt]),gl=yr!=null?yr:dt==null?void 0:dt.colon,ds=Ln("form",xt),[Gi,Jo]=Pe(ds),Ps=C()(ds,`${ds}-${ks}`,{[`${ds}-hide-required-mark`]:Ea===!1,[`${ds}-rtl`]:ur==="rtl",[`${ds}-${Al}`]:Al},Jo,dt==null?void 0:dt.className,Et,et),[Fs]=Oo(yn),{__INTERNAL__:Za}=Fs;Za.name=js;const Nu=(0,N.useMemo)(()=>({name:js,labelAlign:Yr,labelCol:Zo,labelWrap:eo,wrapperCol:Ii,vertical:ks==="vertical",colon:gl,requiredMark:Ea,itemRef:Za.itemRef,form:Fs,feedbackIcons:da}),[js,Yr,Zo,Ii,ks,gl,Ea,Fs,da]);N.useImperativeHandle(Bi,()=>Fs);const Tc=(tc,cc)=>{if(tc){let Uu={block:"nearest"};typeof tc=="object"&&(Uu=tc),Fs.scrollToField(cc,Uu)}},Pc=tc=>{if(No==null||No(tc),tc.errorFields.length){const cc=tc.errorFields[0].name;if(ba!==void 0){Tc(ba,cc);return}dt&&dt.scrollToFirstError!==void 0&&Tc(dt.scrollToFirstError,cc)}};return Gi(N.createElement(Ft.n,{disabled:Vt},N.createElement(lt.Z.Provider,{value:Al},N.createElement(R.RV,{validateMessages:Js},N.createElement(R.q3.Provider,{value:Nu},N.createElement(Ne.ZP,Object.assign({id:js},Il,{name:js,onFinishFailed:Pc,form:Fs,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),ga),className:Ps})))))))};var Tn=N.forwardRef(Vr),nt=_(92803),Ct=_(9681),Ht=_(37628),hn=_(93837),En=_(38930);function rn(Hr){if(typeof Hr=="function")return Hr;const Bi=(0,En.Z)(Hr);return Bi.length<=1?Bi[0]:Bi}const Jt=()=>{const{status:Hr,errors:Bi=[],warnings:fn=[]}=(0,N.useContext)(R.aM);return{status:Hr,errors:Bi,warnings:fn}};Jt.Context=R.aM;var Mt=Jt,Qt=_(28637);function Dn(Hr){const[Bi,fn]=N.useState(Hr),Ln=(0,N.useRef)(null),ur=(0,N.useRef)([]),dt=(0,N.useRef)(!1);N.useEffect(()=>(dt.current=!1,()=>{dt.current=!0,Qt.Z.cancel(Ln.current),Ln.current=null}),[]);function xt(Et){dt.current||(Ln.current===null&&(ur.current=[],Ln.current=(0,Qt.Z)(()=>{Ln.current=null,fn(et=>{let wt=et;return ur.current.forEach(Vt=>{wt=Vt(wt)}),wt})})),ur.current.push(Et))}return[Bi,xt]}function sn(){const{itemRef:Hr}=N.useContext(R.q3),Bi=N.useRef({});function fn(Ln,ur){const dt=ur&&typeof ur=="object"&&ur.ref,xt=Ln.join("_");return(Bi.current.name!==xt||Bi.current.originRef!==dt)&&(Bi.current.name=xt,Bi.current.originRef=dt,Bi.current.ref=(0,Ct.sQ)(Hr(Ln),dt)),Bi.current.ref}return fn}var wr=_(64630),jr=_(62305),xi=_(39029),Pr=_(4638),Io=(0,N.createContext)({});const On=Hr=>{const{componentCls:Bi}=Hr;return{[Bi]:{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"}}}},zr=Hr=>{const{componentCls:Bi}=Hr;return{[Bi]:{position:"relative",maxWidth:"100%",minHeight:1}}},qr=(Hr,Bi)=>{const{componentCls:fn,gridColumns:Ln}=Hr,ur={};for(let dt=Ln;dt>=0;dt--)dt===0?(ur[`${fn}${Bi}-${dt}`]={display:"none"},ur[`${fn}-push-${dt}`]={insetInlineStart:"auto"},ur[`${fn}-pull-${dt}`]={insetInlineEnd:"auto"},ur[`${fn}${Bi}-push-${dt}`]={insetInlineStart:"auto"},ur[`${fn}${Bi}-pull-${dt}`]={insetInlineEnd:"auto"},ur[`${fn}${Bi}-offset-${dt}`]={marginInlineStart:0},ur[`${fn}${Bi}-order-${dt}`]={order:0}):(ur[`${fn}${Bi}-${dt}`]=[{["--ant-display"]:"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${dt/Ln*100}%`,maxWidth:`${dt/Ln*100}%`}],ur[`${fn}${Bi}-push-${dt}`]={insetInlineStart:`${dt/Ln*100}%`},ur[`${fn}${Bi}-pull-${dt}`]={insetInlineEnd:`${dt/Ln*100}%`},ur[`${fn}${Bi}-offset-${dt}`]={marginInlineStart:`${dt/Ln*100}%`},ur[`${fn}${Bi}-order-${dt}`]={order:dt});return ur},Wi=(Hr,Bi)=>qr(Hr,Bi),ir=(Hr,Bi,fn)=>({[`@media (min-width: ${Bi}px)`]:Object.assign({},Wi(Hr,fn))}),Jn=(0,K.Z)("Grid",Hr=>[On(Hr)]),$t=(0,K.Z)("Grid",Hr=>{const Bi=(0,F.TS)(Hr,{gridColumns:24}),fn={"-sm":Bi.screenSMMin,"-md":Bi.screenMDMin,"-lg":Bi.screenLGMin,"-xl":Bi.screenXLMin,"-xxl":Bi.screenXXLMin};return[zr(Bi),Wi(Bi,""),Wi(Bi,"-xs"),Object.keys(fn).map(Ln=>ir(Bi,fn[Ln],Ln)).reduce((Ln,ur)=>Object.assign(Object.assign({},Ln),ur),{})]});var Gt=function(Hr,Bi){var fn={};for(var Ln in Hr)Object.prototype.hasOwnProperty.call(Hr,Ln)&&Bi.indexOf(Ln)<0&&(fn[Ln]=Hr[Ln]);if(Hr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ur=0,Ln=Object.getOwnPropertySymbols(Hr);ur{if(typeof Hr=="string"&&Ln(Hr),typeof Hr=="object")for(let dt=0;dt{ur()},[JSON.stringify(Hr),Bi]),fn}var $n=N.forwardRef((Hr,Bi)=>{const{prefixCls:fn,justify:Ln,align:ur,className:dt,style:xt,children:Et,gutter:et=0,wrap:wt}=Hr,Vt=Gt(Hr,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:yn,direction:yr}=N.useContext(Xt.E_),[Yr,eo]=N.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[Zo,Ii]=N.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),Cs=_r(ur,Zo),ks=_r(Ln,Zo),ba=N.useRef(et),Zs=(0,Pr.ZP)();N.useEffect(()=>{const Jo=Zs.subscribe(Ps=>{Ii(Ps);const Fs=ba.current||0;(!Array.isArray(Fs)&&typeof Fs=="object"||Array.isArray(Fs)&&(typeof Fs[0]=="object"||typeof Fs[1]=="object"))&&eo(Ps)});return()=>Zs.unsubscribe(Jo)},[]);const No=()=>{const Jo=[void 0,void 0];return(Array.isArray(et)?et:[et,void 0]).forEach((Fs,Za)=>{if(typeof Fs=="object")for(let Nu=0;Nu0?Il[0]/-2:void 0;Ea&&(Js.marginLeft=Ea,Js.marginRight=Ea),[,Js.rowGap]=Il;const[gl,ds]=Il,Gi=N.useMemo(()=>({gutter:[gl,ds],wrap:wt}),[gl,ds,wt]);return ga(N.createElement(Io.Provider,{value:Gi},N.createElement("div",Object.assign({},Vt,{className:Al,style:Object.assign(Object.assign({},Js),xt),ref:Bi}),Et)))}),jt=function(Hr,Bi){var fn={};for(var Ln in Hr)Object.prototype.hasOwnProperty.call(Hr,Ln)&&Bi.indexOf(Ln)<0&&(fn[Ln]=Hr[Ln]);if(Hr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ur=0,Ln=Object.getOwnPropertySymbols(Hr);ur{const{getPrefixCls:fn,direction:Ln}=N.useContext(Xt.E_),{gutter:ur,wrap:dt}=N.useContext(Io),{prefixCls:xt,span:Et,order:et,offset:wt,push:Vt,pull:yn,className:yr,children:Yr,flex:eo,style:Zo}=Hr,Ii=jt(Hr,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),Cs=fn("col",xt),[ks,ba]=$t(Cs);let Zs={};vr.forEach(ga=>{let da={};const Il=Hr[ga];typeof Il=="number"?da.span=Il:typeof Il=="object"&&(da=Il||{}),delete Ii[ga],Zs=Object.assign(Object.assign({},Zs),{[`${Cs}-${ga}-${da.span}`]:da.span!==void 0,[`${Cs}-${ga}-order-${da.order}`]:da.order||da.order===0,[`${Cs}-${ga}-offset-${da.offset}`]:da.offset||da.offset===0,[`${Cs}-${ga}-push-${da.push}`]:da.push||da.push===0,[`${Cs}-${ga}-pull-${da.pull}`]:da.pull||da.pull===0,[`${Cs}-${ga}-flex-${da.flex}`]:da.flex||da.flex==="auto",[`${Cs}-rtl`]:Ln==="rtl"})});const No=C()(Cs,{[`${Cs}-${Et}`]:Et!==void 0,[`${Cs}-order-${et}`]:et,[`${Cs}-offset-${wt}`]:wt,[`${Cs}-push-${Vt}`]:Vt,[`${Cs}-pull-${yn}`]:yn},yr,Zs,ba),js={};if(ur&&ur[0]>0){const ga=ur[0]/2;js.paddingLeft=ga,js.paddingRight=ga}return eo&&(js.flex=In(eo),dt===!1&&!js.minWidth&&(js.minWidth=0)),ks(N.createElement("div",Object.assign({},Ii,{style:Object.assign(Object.assign({},js),Zo),className:No,ref:Bi}),Yr))});const Yt=Hr=>{const{formItemCls:Bi}=Hr;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Bi}-control`]:{display:"flex"}}}};var xn=(0,K.b)(["Form","item-item"],(Hr,Bi)=>{let{rootPrefixCls:fn}=Bi;const Ln=ze(Hr,fn);return[Yt(Ln)]}),Nr=Hr=>{const{prefixCls:Bi,status:fn,wrapperCol:Ln,children:ur,errors:dt,warnings:xt,_internalItemRender:Et,extra:et,help:wt,fieldId:Vt,marginBottom:yn,onErrorVisibleChanged:yr}=Hr,Yr=`${Bi}-item`,eo=N.useContext(R.q3),Zo=Ln||eo.wrapperCol||{},Ii=C()(`${Yr}-control`,Zo.className),Cs=N.useMemo(()=>Object.assign({},eo),[eo]);delete Cs.labelCol,delete Cs.wrapperCol;const ks=N.createElement("div",{className:`${Yr}-control-input`},N.createElement("div",{className:`${Yr}-control-input-content`},ur)),ba=N.useMemo(()=>({prefixCls:Bi,status:fn}),[Bi,fn]),Zs=yn!==null||dt.length||xt.length?N.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},N.createElement(R.Rk.Provider,{value:ba},N.createElement(rt,{fieldId:Vt,errors:dt,warnings:xt,help:wt,helpStatus:fn,className:`${Yr}-explain-connected`,onVisibleChanged:yr})),!!yn&&N.createElement("div",{style:{width:0,height:yn}})):null,No={};Vt&&(No.id=`${Vt}_extra`);const js=et?N.createElement("div",Object.assign({},No,{className:`${Yr}-extra`}),et):null,ga=Et&&Et.mark==="pro_table_render"&&Et.render?Et.render(Hr,{input:ks,errorList:Zs,extra:js}):N.createElement(N.Fragment,null,ks,Zs,js);return N.createElement(R.q3.Provider,{value:Cs},N.createElement(Ao,Object.assign({},Zo,{className:Ii}),ga),N.createElement(xn,{prefixCls:Bi}))},bi=_(26508),Ei=_(40043),Yi=_(91851),di=function(Bi,fn){return N.createElement(Yi.Z,(0,bi.Z)({},Bi,{ref:fn,icon:Ei.Z}))},Wr=N.forwardRef(di),Ni=_(47462),kr=_(92584),Xr=_(19189),yo=function(Hr,Bi){var fn={};for(var Ln in Hr)Object.prototype.hasOwnProperty.call(Hr,Ln)&&Bi.indexOf(Ln)<0&&(fn[Ln]=Hr[Ln]);if(Hr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ur=0,Ln=Object.getOwnPropertySymbols(Hr);ur{let{prefixCls:Bi,label:fn,htmlFor:Ln,labelCol:ur,labelAlign:dt,colon:xt,required:Et,requiredMark:et,tooltip:wt}=Hr;var Vt;const[yn]=(0,kr.Z)("Form"),{vertical:yr,labelAlign:Yr,labelCol:eo,labelWrap:Zo,colon:Ii}=N.useContext(R.q3);if(!fn)return null;const Cs=ur||eo||{},ks=dt||Yr,ba=`${Bi}-item-label`,Zs=C()(ba,ks==="left"&&`${ba}-left`,Cs.className,{[`${ba}-wrap`]:!!Zo});let No=fn;const js=xt===!0||Ii!==!1&&xt!==!1;js&&!yr&&typeof fn=="string"&&fn.trim()!==""&&(No=fn.replace(/[:|:]\s*$/,""));const da=ls(wt);if(da){const{icon:Ea=N.createElement(Wr,null)}=da,gl=yo(da,["icon"]),ds=N.createElement(Xr.Z,Object.assign({},gl),N.cloneElement(Ea,{className:`${Bi}-item-tooltip`,title:""}));No=N.createElement(N.Fragment,null,No,ds)}const Il=et==="optional",Al=typeof et=="function";Al?No=et(No,{required:!!Et}):Il&&!Et&&(No=N.createElement(N.Fragment,null,No,N.createElement("span",{className:`${Bi}-item-optional`,title:""},(yn==null?void 0:yn.optional)||((Vt=Ni.Z.Form)===null||Vt===void 0?void 0:Vt.optional))));const Js=C()({[`${Bi}-item-required`]:Et,[`${Bi}-item-required-mark-optional`]:Il||Al,[`${Bi}-item-no-colon`]:!js});return N.createElement(Ao,Object.assign({},Cs,{className:Zs}),N.createElement("label",{htmlFor:Ln,className:Js,title:typeof fn=="string"?fn:""},No))},ta=_(95934),fi=_(48796),Po=_(86850),mo=_(38521);const or={success:ta.Z,warning:Po.Z,error:fi.Z,validating:mo.Z};function Oi(Hr){let{children:Bi,errors:fn,warnings:Ln,hasFeedback:ur,validateStatus:dt,prefixCls:xt,meta:Et,noStyle:et}=Hr;const wt=`${xt}-item`,{feedbackIcons:Vt}=N.useContext(R.q3),yn=ms(fn,Ln,Et,null,!!ur,dt),{isFormItemInput:yr,status:Yr,hasFeedback:eo,feedbackIcon:Zo}=N.useContext(R.aM),Ii=N.useMemo(()=>{var Cs;let ks;if(ur){const Zs=ur!==!0&&ur.icons||Vt,No=yn&&((Cs=Zs==null?void 0:Zs({status:yn,errors:fn,warnings:Ln}))===null||Cs===void 0?void 0:Cs[yn]),js=yn&&or[yn];ks=No!==!1&&js?N.createElement("span",{className:C()(`${wt}-feedback-icon`,`${wt}-feedback-icon-${yn}`)},No||N.createElement(js,null)):null}const ba={status:yn||"",errors:fn,warnings:Ln,hasFeedback:!!ur,feedbackIcon:ks,isFormItemInput:!0};return et&&(ba.status=(yn!=null?yn:Yr)||"",ba.isFormItemInput=yr,ba.hasFeedback=!!(ur!=null?ur:eo),ba.feedbackIcon=ur!==void 0?ba.feedbackIcon:Zo),ba},[yn,ur,et,yr,Yr]);return N.createElement(R.aM.Provider,{value:Ii},Bi)}var Wa=function(Hr,Bi){var fn={};for(var Ln in Hr)Object.prototype.hasOwnProperty.call(Hr,Ln)&&Bi.indexOf(Ln)<0&&(fn[Ln]=Hr[Ln]);if(Hr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ur=0,Ln=Object.getOwnPropertySymbols(Hr);ur{if(da&&Zs.current){const Jo=getComputedStyle(Zs.current);Js(parseInt(Jo.marginBottom,10))}},[da,Il]);const Ea=Jo=>{Jo||Js(null)},ds=function(){let Jo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Ps=Jo?No:wt.errors,Fs=Jo?js:wt.warnings;return ms(Ps,Fs,wt,"",!!Vt,et)}(),Gi=C()(ks,fn,Ln,{[`${ks}-with-help`]:ga||No.length||js.length,[`${ks}-has-feedback`]:ds&&Vt,[`${ks}-has-success`]:ds==="success",[`${ks}-has-warning`]:ds==="warning",[`${ks}-has-error`]:ds==="error",[`${ks}-is-validating`]:ds==="validating",[`${ks}-hidden`]:yn});return N.createElement("div",{className:Gi,style:ur,ref:Zs},N.createElement($n,Object.assign({className:`${ks}-row`},(0,xi.Z)(Cs,["_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"])),N.createElement(hs,Object.assign({htmlFor:Yr},Hr,{requiredMark:ba,required:eo!=null?eo:Zo,prefixCls:Bi})),N.createElement(Nr,Object.assign({},Hr,wt,{errors:No,warnings:js,prefixCls:Bi,status:ds,help:dt,marginBottom:Al,onErrorVisibleChanged:Ea}),N.createElement(R.qI.Provider,{value:Ii},N.createElement(Oi,{prefixCls:Bi,meta:wt,errors:wt.errors,warnings:wt.warnings,hasFeedback:Vt,validateStatus:ds},yr)))),!!Al&&N.createElement("div",{className:`${ks}-margin-offset`,style:{marginBottom:-Al}}))}const xa="__SPLIT__",Ml=null,wo=N.memo(Hr=>{let{children:Bi}=Hr;return Bi},(Hr,Bi)=>Hr.value===Bi.value&&Hr.update===Bi.update&&Hr.childProps.length===Bi.childProps.length&&Hr.childProps.every((fn,Ln)=>fn===Bi.childProps[Ln]));function _l(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function El(Hr){const{name:Bi,noStyle:fn,className:Ln,dependencies:ur,prefixCls:dt,shouldUpdate:xt,rules:Et,children:et,required:wt,label:Vt,messageVariables:yn,trigger:yr="onChange",validateTrigger:Yr,hidden:eo,help:Zo}=Hr,{getPrefixCls:Ii}=N.useContext(Xt.E_),{name:Cs}=N.useContext(R.q3),ks=rn(et),ba=typeof ks=="function",Zs=N.useContext(R.qI),{validateTrigger:No}=N.useContext(Ne.zb),js=Yr!==void 0?Yr:No,ga=Bi!=null,da=Ii("form",dt),[Il,Al]=Pe(da),Js=(0,hn.ln)("Form.Item"),Ea=N.useContext(Ne.ZM),gl=N.useRef(),[ds,Gi]=Dn({}),[Jo,Ps]=(0,nt.Z)(()=>_l()),Fs=Uu=>{const Pn=Ea==null?void 0:Ea.getKey(Uu.name);if(Ps(Uu.destroy?_l():Uu,!0),fn&&Zo!==!1&&Zs){let er=Uu.name;if(Uu.destroy)er=gl.current||er;else if(Pn!==void 0){const[Lr,Gr]=Pn;er=[Lr].concat((0,v.Z)(Gr)),gl.current=er}Zs(Uu,er)}},Za=(Uu,Pn)=>{Gi(er=>{const Lr=Object.assign({},er),ai=[].concat((0,v.Z)(Uu.name.slice(0,-1)),(0,v.Z)(Pn)).join(xa);return Uu.destroy?delete Lr[ai]:Lr[ai]=Uu,Lr})},[Nu,Tc]=N.useMemo(()=>{const Uu=(0,v.Z)(Jo.errors),Pn=(0,v.Z)(Jo.warnings);return Object.values(ds).forEach(er=>{Uu.push.apply(Uu,(0,v.Z)(er.errors||[])),Pn.push.apply(Pn,(0,v.Z)(er.warnings||[]))}),[Uu,Pn]},[ds,Jo.errors,Jo.warnings]),Pc=sn();function tc(Uu,Pn,er){return fn&&!eo?N.createElement(Oi,{prefixCls:da,hasFeedback:Hr.hasFeedback,validateStatus:Hr.validateStatus,meta:Jo,errors:Nu,warnings:Tc,noStyle:!0},Uu):N.createElement(Sa,Object.assign({key:"row"},Hr,{className:C()(Ln,Al),prefixCls:da,fieldId:Pn,isRequired:er,errors:Nu,warnings:Tc,meta:Jo,onSubItemMetaChange:Za}),Uu)}if(!ga&&!ba&&!ur)return Il(tc(ks));let cc={};return typeof Vt=="string"?cc.label=Vt:Bi&&(cc.label=String(Bi)),yn&&(cc=Object.assign(Object.assign({},cc),yn)),Il(N.createElement(Ne.gN,Object.assign({},Hr,{messageVariables:cc,trigger:yr,validateTrigger:js,onMetaChange:Fs}),(Uu,Pn,er)=>{const Lr=Mr(Bi).length&&Pn?Pn.name:[],Gr=To(Lr,Cs),ai=wt!==void 0?wt:!!(Et&&Et.some(fs=>{if(fs&&typeof fs=="object"&&fs.required&&!fs.warningOnly)return!0;if(typeof fs=="function"){const Ks=fs(er);return Ks&&Ks.required&&!Ks.warningOnly}return!1})),Qi=Object.assign({},Uu);let Pi=null;if(Array.isArray(ks)&&ga)Pi=ks;else if(!(ba&&(!(xt||ur)||ga))){if(!(ur&&!ba&&!ga))if((0,Ht.l$)(ks)){const fs=Object.assign(Object.assign({},ks.props),Qi);if(fs.id||(fs.id=Gr),Zo||Nu.length>0||Tc.length>0||Hr.extra){const qa=[];(Zo||Nu.length>0)&&qa.push(`${Gr}_help`),Hr.extra&&qa.push(`${Gr}_extra`),fs["aria-describedby"]=qa.join(" ")}Nu.length>0&&(fs["aria-invalid"]="true"),ai&&(fs["aria-required"]="true"),(0,Ct.Yr)(ks)&&(fs.ref=Pc(Lr,ks)),new Set([].concat((0,v.Z)(Mr(yr)),(0,v.Z)(Mr(js)))).forEach(qa=>{fs[qa]=function(){for(var rl,Dl,Oa,ju,Ia,Ha=arguments.length,tl=new Array(Ha),cu=0;cu{var{prefixCls:Bi,children:fn}=Hr,Ln=An(Hr,["prefixCls","children"]);const{getPrefixCls:ur}=N.useContext(Xt.E_),dt=ur("form",Bi),xt=N.useMemo(()=>({prefixCls:dt,status:"error"}),[dt]);return N.createElement(Ne.aV,Object.assign({},Ln),(Et,et,wt)=>N.createElement(R.Rk.Provider,{value:xt},fn(Et.map(Vt=>Object.assign(Object.assign({},Vt),{fieldKey:Vt.key})),et,{errors:wt.errors,warnings:wt.warnings})))};function Mi(){const{form:Hr}=(0,N.useContext)(R.q3);return Hr}const _s=Tn;_s.Item=to,_s.List=ao,_s.ErrorList=rt,_s.useForm=Oo,_s.useFormInstance=Mi,_s.useWatch=Ne.qo,_s.Provider=R.RV,_s.create=()=>{};var Hs=_s},94680:function(mt,q,_){"use strict";var v=_(77617);q.Z=(0,v.createContext)(void 0)},93294:function(mt,q,_){"use strict";var v=_(77617),M=_(62305),C=_(78958),x=_(4638);function N(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const R=(0,v.useRef)({}),k=(0,C.Z)(),S=(0,x.ZP)();return(0,M.Z)(()=>{const p=S.subscribe(T=>{R.current=T,V&&k()});return()=>S.unsubscribe(p)},[]),R.current}q.Z=N},4366:function(mt,q,_){"use strict";_.d(q,{Z:function(){return Io}});var v=_(42884),M=_(26508),C=_(77617),x={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"},N=x,V=_(91851),R=function(zr,qr){return C.createElement(V.Z,(0,M.Z)({},zr,{ref:qr,icon:N}))},k=C.forwardRef(R),S=_(12124),p=_.n(S),T=_(80268),F=_(91002),K=_(39718),he=_(52528),fe=_(74809),be=_(57338);function Ae(){return typeof BigInt=="function"}function xe(On){return!On&&On!==0&&!Number.isNaN(On)||!String(On).trim()}function Se(On){var zr=On.trim(),qr=zr.startsWith("-");qr&&(zr=zr.slice(1)),zr=zr.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),zr.startsWith(".")&&(zr="0".concat(zr));var Wi=zr||"0",ir=Wi.split("."),Jn=ir[0]||"0",$t=ir[1]||"0";Jn==="0"&&$t==="0"&&(qr=!1);var Gt=qr?"-":"";return{negative:qr,negativeStr:Gt,trimStr:Wi,integerStr:Jn,decimalStr:$t,fullStr:"".concat(Gt).concat(Wi)}}function it(On){var zr=String(On);return!Number.isNaN(Number(zr))&&zr.includes("e")}function Xe(On){var zr=String(On);if(it(On)){var qr=Number(zr.slice(zr.indexOf("e-")+2)),Wi=zr.match(/\.(\d+)/);return Wi!=null&&Wi[1]&&(qr+=Wi[1].length),qr}return zr.includes(".")&&Me(zr)?zr.length-zr.indexOf(".")-1:0}function ft(On){var zr=String(On);if(it(On)){if(On>Number.MAX_SAFE_INTEGER)return String(Ae()?BigInt(On).toString():Number.MAX_SAFE_INTEGER);if(On0&&arguments[0]!==void 0?arguments[0]:!0;return qr?this.isInvalidate()?"":Se("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),On}(),ze=function(){function On(zr){if((0,fe.Z)(this,On),(0,T.Z)(this,"origin",""),(0,T.Z)(this,"number",void 0),(0,T.Z)(this,"empty",void 0),xe(zr)){this.empty=!0;return}this.origin=String(zr),this.number=Number(zr)}return(0,be.Z)(On,[{key:"negate",value:function(){return new On(-this.toNumber())}},{key:"add",value:function(qr){if(this.isInvalidate())return new On(qr);var Wi=Number(qr);if(Number.isNaN(Wi))return this;var ir=this.number+Wi;if(ir>Number.MAX_SAFE_INTEGER)return new On(Number.MAX_SAFE_INTEGER);if(irNumber.MAX_SAFE_INTEGER)return new On(Number.MAX_SAFE_INTEGER);if(ir0&&arguments[0]!==void 0?arguments[0]:!0;return qr?this.isInvalidate()?"":ft(this.number):this.origin}}]),On}();function Pe(On){return Ae()?new Ee(On):new ze(On)}function Re(On,zr,qr){var Wi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(On==="")return"";var ir=Se(On),Jn=ir.negativeStr,$t=ir.integerStr,Gt=ir.decimalStr,wn="".concat(zr).concat(Gt),Zn="".concat(Jn).concat($t);if(qr>=0){var _r=Number(Gt[qr]);if(_r>=5&&!Wi){var qn=Pe(On).add("".concat(Jn,"0.").concat("0".repeat(qr)).concat(10-_r));return Re(qn.toString(),zr,qr,Wi)}return qr===0?Zn:"".concat(Zn).concat(zr).concat(Gt.padEnd(qr,"0").slice(0,qr))}return wn===".0"?Zn:"".concat(Zn).concat(wn)}var je=Pe,Ce=_(79952),rt=_(62305),Ne=_(9681),Xt=_(46644);function Ft(On,zr){var qr=(0,C.useRef)(null);function Wi(){try{var Jn=On.selectionStart,$t=On.selectionEnd,Gt=On.value,wn=Gt.substring(0,Jn),Zn=Gt.substring($t);qr.current={start:Jn,end:$t,value:Gt,beforeTxt:wn,afterTxt:Zn}}catch(_r){}}function ir(){if(On&&qr.current&&zr)try{var Jn=On.value,$t=qr.current,Gt=$t.beforeTxt,wn=$t.afterTxt,Zn=$t.start,_r=Jn.length;if(Jn.endsWith(wn))_r=Jn.length-qr.current.afterTxt.length;else if(Jn.startsWith(Gt))_r=Gt.length;else{var qn=Gt[Zn-1],$n=Jn.indexOf(qn,Zn-1);$n!==-1&&(_r=$n+1)}On.setSelectionRange(_r,_r)}catch(jt){(0,Xt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(jt.message))}}return[Wi,ir]}var lt=_(10103),Bt=function(){var zr=(0,C.useState)(!1),qr=(0,K.Z)(zr,2),Wi=qr[0],ir=qr[1];return(0,rt.Z)(function(){ir((0,lt.Z)())},[]),Wi},At=Bt,an=_(28637),Tt=200,Nn=600;function mn(On){var zr=On.prefixCls,qr=On.upNode,Wi=On.downNode,ir=On.upDisabled,Jn=On.downDisabled,$t=On.onStep,Gt=C.useRef(),wn=C.useRef([]),Zn=C.useRef();Zn.current=$t;var _r=function(){clearTimeout(Gt.current)},qn=function(xn,fr){xn.preventDefault(),_r(),Zn.current(fr);function Nr(){Zn.current(fr),Gt.current=setTimeout(Nr,Tt)}Gt.current=setTimeout(Nr,Nn)};C.useEffect(function(){return function(){_r(),wn.current.forEach(function(Yt){return an.Z.cancel(Yt)})}},[]);var $n=At();if($n)return null;var jt="".concat(zr,"-handler"),In=p()(jt,"".concat(jt,"-up"),(0,T.Z)({},"".concat(jt,"-up-disabled"),ir)),vr=p()(jt,"".concat(jt,"-down"),(0,T.Z)({},"".concat(jt,"-down-disabled"),Jn)),Ur=function(){return wn.current.push((0,an.Z)(_r))},Ao={unselectable:"on",role:"button",onMouseUp:Ur,onMouseLeave:Ur};return C.createElement("div",{className:"".concat(jt,"-wrap")},C.createElement("span",(0,M.Z)({},Ao,{onMouseDown:function(xn){qn(xn,!0)},"aria-label":"Increase Value","aria-disabled":ir,className:In}),qr||C.createElement("span",{unselectable:"on",className:"".concat(zr,"-handler-up-inner")})),C.createElement("span",(0,M.Z)({},Ao,{onMouseDown:function(xn){qn(xn,!1)},"aria-label":"Decrease Value","aria-disabled":Jn,className:vr}),Wi||C.createElement("span",{unselectable:"on",className:"".concat(zr,"-handler-down-inner")})))}function zn(On){var zr=typeof On=="number"?ft(On):Se(On).fullStr,qr=zr.includes(".");return qr?Se(zr.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:On+"0"}var Kr=_(55982),Ui=function(){var On=(0,C.useRef)(0),zr=function(){an.Z.cancel(On.current)};return(0,C.useEffect)(function(){return zr},[]),function(qr){zr(),On.current=(0,an.Z)(function(){qr()})}},go=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],gi=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Mr=function(zr,qr){return zr||qr.isEmpty()?qr.toString():qr.toNumber()},To=function(zr){var qr=je(zr);return qr.isInvalidate()?null:qr},ms=C.forwardRef(function(On,zr){var qr,Wi=On.prefixCls,ir=Wi===void 0?"rc-input-number":Wi,Jn=On.className,$t=On.style,Gt=On.min,wn=On.max,Zn=On.step,_r=Zn===void 0?1:Zn,qn=On.defaultValue,$n=On.value,jt=On.disabled,In=On.readOnly,vr=On.upHandler,Ur=On.downHandler,Ao=On.keyboard,Yt=On.controls,xn=Yt===void 0?!0:Yt,fr=On.classNames,Nr=On.stringMode,bi=On.parser,Ei=On.formatter,Yi=On.precision,di=On.decimalSeparator,Wr=On.onChange,Ni=On.onInput,kr=On.onPressEnter,Xr=On.onStep,yo=On.changeOnBlur,ls=yo===void 0?!0:yo,Sr=(0,he.Z)(On,go),hs="".concat(ir,"-input"),ta=C.useRef(null),fi=C.useState(!1),Po=(0,K.Z)(fi,2),mo=Po[0],or=Po[1],Oi=C.useRef(!1),Wa=C.useRef(!1),Sa=C.useRef(!1),xa=C.useState(function(){return je($n!=null?$n:qn)}),Ml=(0,K.Z)(xa,2),wo=Ml[0],_l=Ml[1];function El(ga){$n===void 0&&_l(ga)}var Ai=C.useCallback(function(ga,da){if(!da)return Yi>=0?Yi:Math.max(Xe(ga),Xe(_r))},[Yi,_r]),to=C.useCallback(function(ga){var da=String(ga);if(bi)return bi(da);var Il=da;return di&&(Il=Il.replace(di,".")),Il.replace(/[^\w.-]+/g,"")},[bi,di]),An=C.useRef(""),ri=C.useCallback(function(ga,da){if(Ei)return Ei(ga,{userTyping:da,input:String(An.current)});var Il=typeof ga=="number"?ft(ga):ga;if(!da){var Al=Ai(Il,da);if(Me(Il)&&(di||Al>=0)){var Js=di||".";Il=Re(Il,Js,Al)}}return Il},[Ei,Ai,di]),ao=C.useState(function(){var ga=qn!=null?qn:$n;return wo.isInvalidate()&&["string","number"].includes((0,F.Z)(ga))?Number.isNaN(ga)?"":ga:ri(wo.toString(),!1)}),Mi=(0,K.Z)(ao,2),_s=Mi[0],Hs=Mi[1];An.current=_s;function Hr(ga,da){Hs(ri(ga.isInvalidate()?ga.toString(!1):ga.toString(!da),da))}var Bi=C.useMemo(function(){return To(wn)},[wn,Yi]),fn=C.useMemo(function(){return To(Gt)},[Gt,Yi]),Ln=C.useMemo(function(){return!Bi||!wo||wo.isInvalidate()?!1:Bi.lessEquals(wo)},[Bi,wo]),ur=C.useMemo(function(){return!fn||!wo||wo.isInvalidate()?!1:wo.lessEquals(fn)},[fn,wo]),dt=Ft(ta.current,mo),xt=(0,K.Z)(dt,2),Et=xt[0],et=xt[1],wt=function(da){return Bi&&!da.lessEquals(Bi)?Bi:fn&&!fn.lessEquals(da)?fn:null},Vt=function(da){return!wt(da)},yn=function(da,Il){var Al=da,Js=Vt(Al)||Al.isEmpty();if(!Al.isEmpty()&&!Il&&(Al=wt(Al)||Al,Js=!0),!In&&!jt&&Js){var Ea=Al.toString(),gl=Ai(Ea,Il);return gl>=0&&(Al=je(Re(Ea,".",gl)),Vt(Al)||(Al=je(Re(Ea,".",gl,!0)))),Al.equals(wo)||(El(Al),Wr==null||Wr(Al.isEmpty()?null:Mr(Nr,Al)),$n===void 0&&Hr(Al,Il)),Al}return wo},yr=Ui(),Yr=function ga(da){if(Et(),An.current=da,Hs(da),!Wa.current){var Il=to(da),Al=je(Il);Al.isNaN()||yn(Al,!0)}Ni==null||Ni(da),yr(function(){var Js=da;bi||(Js=da.replace(/。/g,".")),Js!==da&&ga(Js)})},eo=function(){Wa.current=!0},Zo=function(){Wa.current=!1,Yr(ta.current.value)},Ii=function(da){Yr(da.target.value)},Cs=function(da){var Il;if(!(da&&Ln||!da&&ur)){Oi.current=!1;var Al=je(Sa.current?zn(_r):_r);da||(Al=Al.negate());var Js=(wo||je(0)).add(Al.toString()),Ea=yn(Js,!1);Xr==null||Xr(Mr(Nr,Ea),{offset:Sa.current?zn(_r):_r,type:da?"up":"down"}),(Il=ta.current)===null||Il===void 0||Il.focus()}},ks=function(da){var Il=je(to(_s)),Al=Il;Il.isNaN()?Al=yn(wo,da):Al=yn(Il,da),$n!==void 0?Hr(wo,!1):Al.isNaN()||Hr(Al,!1)},ba=function(){Oi.current=!0},Zs=function(da){var Il=da.key,Al=da.shiftKey;Oi.current=!0,Sa.current=Al,Il==="Enter"&&(Wa.current||(Oi.current=!1),ks(!1),kr==null||kr(da)),Ao!==!1&&!Wa.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Il)&&(Cs(Il==="Up"||Il==="ArrowUp"),da.preventDefault())},No=function(){Oi.current=!1,Sa.current=!1},js=function(){ls&&ks(!1),or(!1),Oi.current=!1};return(0,rt.o)(function(){wo.isInvalidate()||Hr(wo,!1)},[Yi,Ei]),(0,rt.o)(function(){var ga=je($n);_l(ga);var da=je(to(_s));(!ga.equals(da)||!Oi.current||Ei)&&Hr(ga,Oi.current)},[$n]),(0,rt.o)(function(){Ei&&et()},[_s]),C.createElement("div",{className:p()(ir,fr==null?void 0:fr.input,Jn,(qr={},(0,T.Z)(qr,"".concat(ir,"-focused"),mo),(0,T.Z)(qr,"".concat(ir,"-disabled"),jt),(0,T.Z)(qr,"".concat(ir,"-readonly"),In),(0,T.Z)(qr,"".concat(ir,"-not-a-number"),wo.isNaN()),(0,T.Z)(qr,"".concat(ir,"-out-of-range"),!wo.isInvalidate()&&!Vt(wo)),qr)),style:$t,onFocus:function(){or(!0)},onBlur:js,onKeyDown:Zs,onKeyUp:No,onCompositionStart:eo,onCompositionEnd:Zo,onBeforeInput:ba},xn&&C.createElement(mn,{prefixCls:ir,upNode:vr,downNode:Ur,upDisabled:Ln,downDisabled:ur,onStep:Cs}),C.createElement("div",{className:"".concat(hs,"-wrap")},C.createElement("input",(0,M.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Gt,"aria-valuemax":wn,"aria-valuenow":wo.isInvalidate()?null:wo.toString(),step:_r},Sr,{ref:(0,Ne.sQ)(ta,zr),className:hs,value:_s,onChange:Ii,disabled:jt,readOnly:In}))))}),De=C.forwardRef(function(On,zr){var qr=On.disabled,Wi=On.style,ir=On.prefixCls,Jn=On.value,$t=On.prefix,Gt=On.suffix,wn=On.addonBefore,Zn=On.addonAfter,_r=On.classes,qn=On.className,$n=On.classNames,jt=(0,he.Z)(On,gi),In=C.useRef(null),vr=function(Ao){In.current&&(0,Kr.nH)(In.current,Ao)};return C.createElement(Ce.Q,{inputElement:C.createElement(ms,(0,M.Z)({prefixCls:ir,disabled:qr,classNames:$n,ref:(0,Ne.sQ)(In,zr)},jt)),className:qn,triggerFocus:vr,prefixCls:ir,value:Jn,disabled:qr,style:Wi,prefix:$t,suffix:Gt,addonAfter:Zn,addonBefore:wn,classes:_r,classNames:$n,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});De.displayName="InputNumber";var Oo=De,$i=Oo,co=_(3335),Vr=_(41203),Ro=_(87255),Tn=_(57132),nt=_(29212),Ct=_(74334),Ht=_(43906),hn=_(83279),En=_(21348),rn=_(82248),Jt=_(93154),Mt=_(43040);const Qt=(On,zr)=>{let{componentCls:qr,borderRadiusSM:Wi,borderRadiusLG:ir}=On;const Jn=zr==="lg"?ir:Wi;return{[`&-${zr}`]:{[`${qr}-handler-wrap`]:{borderStartEndRadius:Jn,borderEndEndRadius:Jn},[`${qr}-handler-up`]:{borderStartEndRadius:Jn},[`${qr}-handler-down`]:{borderEndEndRadius:Jn}}}},Dn=On=>{const{componentCls:zr,lineWidth:qr,lineType:Wi,colorBorder:ir,borderRadius:Jn,fontSizeLG:$t,controlHeightLG:Gt,controlHeightSM:wn,colorError:Zn,paddingInlineSM:_r,colorTextDescription:qn,motionDurationMid:$n,handleHoverColor:jt,paddingInline:In,paddingBlock:vr,handleBg:Ur,handleActiveBg:Ao,colorTextDisabled:Yt,borderRadiusSM:xn,borderRadiusLG:fr,controlWidth:Nr,handleVisible:bi,handleBorderColor:Ei}=On;return[{[zr]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,En.Wf)(On)),(0,hn.ik)(On)),(0,hn.bi)(On,zr)),{display:"inline-block",width:Nr,margin:0,padding:0,border:`${qr}px ${Wi} ${ir}`,borderRadius:Jn,"&-rtl":{direction:"rtl",[`${zr}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:$t,borderRadius:fr,[`input${zr}-input`]:{height:Gt-2*qr}},"&-sm":{padding:0,borderRadius:xn,[`input${zr}-input`]:{height:wn-2*qr,padding:`0 ${_r}px`}},"&-out-of-range":{[`${zr}-input-wrap`]:{input:{color:Zn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,En.Wf)(On)),(0,hn.s7)(On)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${zr}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${zr}-group-addon`]:{borderRadius:fr,fontSize:On.fontSizeLG}},"&-sm":{[`${zr}-group-addon`]:{borderRadius:xn}},[`${zr}-wrapper-disabled > ${zr}-group-addon`]:Object.assign({},(0,hn.Xy)(On))}}),[`&-disabled ${zr}-input`]:{cursor:"not-allowed"},[zr]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,En.Wf)(On)),{width:"100%",padding:`${vr}px ${In}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Jn,outline:0,transition:`all ${$n} linear`,appearance:"textfield",fontSize:"inherit"}),(0,hn.nz)(On.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[zr]:Object.assign(Object.assign(Object.assign({[`&:hover ${zr}-handler-wrap, &-focused ${zr}-handler-wrap`]:{opacity:1},[`${zr}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:On.handleWidth,height:"100%",background:Ur,borderStartStartRadius:0,borderStartEndRadius:Jn,borderEndEndRadius:Jn,borderEndStartRadius:0,opacity:bi===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${$n} linear ${$n}`,[`${zr}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${zr}-handler-up-inner, + ${zr}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:On.handleFontSize}}},[`${zr}-handler`]:{height:"50%",overflow:"hidden",color:qn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${qr}px ${Wi} ${Ei}`,transition:`all ${$n} linear`,"&:active":{background:Ao},"&:hover":{height:"60%",[` + ${zr}-handler-up-inner, + ${zr}-handler-down-inner + `]:{color:jt}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,En.Ro)()),{color:qn,transition:`all ${$n} linear`,userSelect:"none"})},[`${zr}-handler-up`]:{borderStartEndRadius:Jn},[`${zr}-handler-down`]:{borderBlockStart:`${qr}px ${Wi} ${Ei}`,borderEndEndRadius:Jn}},Qt(On,"lg")),Qt(On,"sm")),{"&-disabled, &-readonly":{[`${zr}-handler-wrap`]:{display:"none"},[`${zr}-input`]:{color:"inherit"}},[` + ${zr}-handler-up-disabled, + ${zr}-handler-down-disabled `]:{cursor:"not-allowed"},[` - ${Vr}-handler-up-disabled:hover &-handler-up-inner, - ${Vr}-handler-down-disabled:hover &-handler-down-inner - `]:{color:Bt}})},{[`${Vr}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Vr}-handler-down`]:{borderBlockStartWidth:0}}}]},en=_n=>{const{componentCls:Vr,paddingBlock:qr,paddingInline:Ui,inputAffixPadding:xo,controlWidth:Us,borderRadiusLG:$n,borderRadiusSM:Kn}=_n;return{[`${Vr}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,Wt.ik)(_n)),(0,Wt.bi)(_n,`${Vr}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Us,padding:0,paddingInlineStart:Ui,"&-lg":{borderRadius:$n},"&-sm":{borderRadius:Kn},[`&:not(${Vr}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Vr}-disabled`]:{background:"transparent"},[`> div${Vr}`]:{width:"100%",border:"none",outline:"none",[`&${Vr}-focused`]:{boxShadow:"none !important"}},[`input${Vr}-input`]:{padding:`${qr}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Vr}-handler-wrap`]:{zIndex:2},[Vr]:{"&-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:Ui,marginInlineStart:xo}}})}};var fr=(0,Tt.Z)("InputNumber",_n=>{const Vr=(0,bt.TS)(_n,(0,Wt.e5)(_n));return[zn(Vr),en(Vr),(0,Ot.c)(Vr)]},_n=>Object.assign(Object.assign({},(0,Wt.TM)(_n)),{controlWidth:90,handleWidth:_n.controlHeightSM-_n.lineWidth*2,handleFontSize:_n.fontSize/2,handleVisible:"auto",handleActiveBg:_n.colorFillAlter,handleBg:_n.colorBgContainer,handleHoverColor:_n.colorPrimary,handleBorderColor:_n.colorBorder})),Kr=function(_n,Vr){var qr={};for(var Ui in _n)Object.prototype.hasOwnProperty.call(_n,Ui)&&Vr.indexOf(Ui)<0&&(qr[Ui]=_n[Ui]);if(_n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xo=0,Ui=Object.getOwnPropertySymbols(_n);xo{const{getPrefixCls:qr,direction:Ui}=b.useContext(ji.E_),xo=b.useRef(null);b.useImperativeHandle(Vr,()=>xo.current);const{className:Us,rootClassName:$n,size:Kn,disabled:Fr,prefixCls:mi,addonBefore:Tr,addonAfter:ti,prefix:di,bordered:rn=!0,readOnly:Qn,status:Xr,controls:ao}=_n,as=Kr(_n,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Bt=qr("input-number",mi),[pn,xr]=fr(Bt),{compactSize:Jr,compactItemClassnames:vi}=(0,xt.ri)(Bt,Ui);let Ti=b.createElement(A,{className:`${Bt}-handler-up-inner`}),co=b.createElement(y.Z,{className:`${Bt}-handler-down-inner`});const Qr=typeof ao=="boolean"?ao:void 0;typeof ao=="object"&&(Ti=typeof ao.upIcon=="undefined"?Ti:b.createElement("span",{className:`${Bt}-handler-up-inner`},ao.upIcon),co=typeof ao.downIcon=="undefined"?co:b.createElement("span",{className:`${Bt}-handler-down-inner`},ao.downIcon));const{hasFeedback:oi,status:Zi,isFormItemInput:Ir,feedbackIcon:tn}=b.useContext(yt.aM),Gn=(0,go.F)(Zi,Xr),Ei=(0,Ve.Z)(Rr=>{var Xn;return(Xn=Kn!=null?Kn:Jr)!==null&&Xn!==void 0?Xn:Rr}),Ln=b.useContext(dn.Z),Ii=Fr!=null?Fr:Ln,nr=f()({[`${Bt}-lg`]:Ei==="large",[`${Bt}-sm`]:Ei==="small",[`${Bt}-rtl`]:Ui==="rtl",[`${Bt}-borderless`]:!rn,[`${Bt}-in-form-item`]:Ir},(0,go.Z)(Bt,Gn),xr),wi=`${Bt}-group`,Mi=b.createElement(ho,Object.assign({ref:xo,disabled:Ii,className:f()(Us,$n,vi),upHandler:Ti,downHandler:co,prefixCls:Bt,readOnly:Qn,controls:Qr,prefix:di,suffix:oi&&tn,addonAfter:ti&&b.createElement(xt.BR,null,b.createElement(yt.Ux,{override:!0,status:!0},ti)),addonBefore:Tr&&b.createElement(xt.BR,null,b.createElement(yt.Ux,{override:!0,status:!0},Tr)),classNames:{input:nr},classes:{affixWrapper:f()((0,go.Z)(`${Bt}-affix-wrapper`,Gn,oi),{[`${Bt}-affix-wrapper-sm`]:Ei==="small",[`${Bt}-affix-wrapper-lg`]:Ei==="large",[`${Bt}-affix-wrapper-rtl`]:Ui==="rtl",[`${Bt}-affix-wrapper-borderless`]:!rn},xr),wrapper:f()({[`${wi}-rtl`]:Ui==="rtl",[`${Bt}-wrapper-disabled`]:Ii},xr),group:f()({[`${Bt}-group-wrapper-sm`]:Ei==="small",[`${Bt}-group-wrapper-lg`]:Ei==="large",[`${Bt}-group-wrapper-rtl`]:Ui==="rtl"},(0,go.Z)(`${Bt}-group-wrapper`,Gn,oi),xr)}},as));return pn(Mi)}),si=ii,uo=_n=>b.createElement(No.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},b.createElement(ii,Object.assign({},_n)));si._InternalPanelDoNotUseOrYouWillBeFired=uo;var Qo=si},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),te=m(89746);function re(Be){return!!(Be.prefix||Be.suffix||Be.allowClear)}var ce=function(Be,Ie){var je={};for(var be in Be)Object.prototype.hasOwnProperty.call(Be,be)&&Ie.indexOf(be)<0&&(je[be]=Be[be]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,be=Object.getOwnPropertySymbols(Be);ve{var je;const{prefixCls:be,bordered:ve=!0,status:ye,size:Ce,disabled:xe,onBlur:Ae,onFocus:ge,suffix:We,allowClear:Se,addonAfter:Pt,addonBefore:dt,className:He,style:Ct,styles:ft,rootClassName:zt,onChange:mt,classNames:yn}=Be,Bn=ce(Be,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Lr,direction:ri,input:gi}=y.useContext(A.E_),ro=Lr("input",be),To=(0,y.useRef)(null),[_r,Bo]=(0,te.ZP)(ro),{compactSize:fs,compactItemClassnames:me}=(0,P.ri)(ro,ri),So=(0,f.Z)(zn=>{var en;return(en=Ce!=null?Ce:fs)!==null&&en!==void 0?en:zn}),ho=y.useContext(C.Z),go=xe!=null?xe:ho,{status:ji,hasFeedback:No,feedbackIcon:dn}=(0,y.useContext)(S.aM),Ve=(0,w.F)(ji,ye),yt=re(Be)||!!No,xt=(0,y.useRef)(yt),Wt=(0,W.Z)(To,!0),sn=zn=>{Wt(),Ae==null||Ae(zn)},Ot=zn=>{Wt(),ge==null||ge(zn)},Tt=zn=>{Wt(),mt==null||mt(zn)},bt=(No||We)&&y.createElement(y.Fragment,null,We,No&&dn);let Ht;return typeof Se=="object"&&(Se!=null&&Se.clearIcon)?Ht=Se:Se&&(Ht={clearIcon:y.createElement(I.Z,null)}),_r(y.createElement(k.Z,Object.assign({ref:(0,N.sQ)(Ie,To),prefixCls:ro,autoComplete:gi==null?void 0:gi.autoComplete},Bn,{disabled:go,onBlur:sn,onFocus:Ot,style:Object.assign(Object.assign({},gi==null?void 0:gi.style),Ct),styles:Object.assign(Object.assign({},gi==null?void 0:gi.styles),ft),suffix:bt,allowClear:Ht,className:z()(He,zt,me,gi==null?void 0:gi.className),onChange:Tt,addonAfter:Pt&&y.createElement(P.BR,null,y.createElement(S.Ux,{override:!0,status:!0},Pt)),addonBefore:dt&&y.createElement(P.BR,null,y.createElement(S.Ux,{override:!0,status:!0},dt)),classNames:Object.assign(Object.assign(Object.assign({},yn),gi==null?void 0:gi.classNames),{input:z()({[`${ro}-sm`]:So==="small",[`${ro}-lg`]:So==="large",[`${ro}-rtl`]:ri==="rtl",[`${ro}-borderless`]:!ve},!yt&&(0,w.Z)(ro,Ve),yn==null?void 0:yn.input,(je=gi==null?void 0:gi.classNames)===null||je===void 0?void 0:je.input,Bo)}),classes:{affixWrapper:z()({[`${ro}-affix-wrapper-sm`]:So==="small",[`${ro}-affix-wrapper-lg`]:So==="large",[`${ro}-affix-wrapper-rtl`]:ri==="rtl",[`${ro}-affix-wrapper-borderless`]:!ve},(0,w.Z)(`${ro}-affix-wrapper`,Ve,No),Bo),wrapper:z()({[`${ro}-group-rtl`]:ri==="rtl"},Bo),group:z()({[`${ro}-group-wrapper-sm`]:So==="small",[`${ro}-group-wrapper-lg`]:So==="large",[`${ro}-group-wrapper-rtl`]:ri==="rtl",[`${ro}-group-wrapper-disabled`]:go},(0,w.Z)(`${ro}-group-wrapper`,Ve,No),Bo)}})))})},25279:function(nt,V,m){"use strict";m.d(V,{Z:function(){return To}});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),te=m(77617),re=m(28647),ce=m(62305),pe=m(28637),he=` + ${zr}-handler-up-disabled:hover &-handler-up-inner, + ${zr}-handler-down-disabled:hover &-handler-down-inner + `]:{color:Yt}})},{[`${zr}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${zr}-handler-down`]:{borderBlockStartWidth:0}}}]},sn=On=>{const{componentCls:zr,paddingBlock:qr,paddingInline:Wi,inputAffixPadding:ir,controlWidth:Jn,borderRadiusLG:$t,borderRadiusSM:Gt}=On;return{[`${zr}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,hn.ik)(On)),(0,hn.bi)(On,`${zr}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Jn,padding:0,paddingInlineStart:Wi,"&-lg":{borderRadius:$t},"&-sm":{borderRadius:Gt},[`&:not(${zr}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${zr}-disabled`]:{background:"transparent"},[`> div${zr}`]:{width:"100%",border:"none",outline:"none",[`&${zr}-focused`]:{boxShadow:"none !important"}},[`input${zr}-input`]:{padding:`${qr}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${zr}-handler-wrap`]:{zIndex:2},[zr]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:ir},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Wi,marginInlineStart:ir}}})}};var wr=(0,Jt.Z)("InputNumber",On=>{const zr=(0,Mt.TS)(On,(0,hn.e5)(On));return[Dn(zr),sn(zr),(0,rn.c)(zr)]},On=>Object.assign(Object.assign({},(0,hn.TM)(On)),{controlWidth:90,handleWidth:On.controlHeightSM-On.lineWidth*2,handleFontSize:On.fontSize/2,handleVisible:"auto",handleActiveBg:On.colorFillAlter,handleBg:On.colorBgContainer,handleHoverColor:On.colorPrimary,handleBorderColor:On.colorBorder})),jr=function(On,zr){var qr={};for(var Wi in On)Object.prototype.hasOwnProperty.call(On,Wi)&&zr.indexOf(Wi)<0&&(qr[Wi]=On[Wi]);if(On!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ir=0,Wi=Object.getOwnPropertySymbols(On);ir{const{getPrefixCls:qr,direction:Wi}=C.useContext(Vr.E_),ir=C.useRef(null);C.useImperativeHandle(zr,()=>ir.current);const{className:Jn,rootClassName:$t,size:Gt,disabled:wn,prefixCls:Zn,addonBefore:_r,addonAfter:qn,prefix:$n,bordered:jt=!0,readOnly:In,status:vr,controls:Ur}=On,Ao=jr(On,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Yt=qr("input-number",Zn),[xn,fr]=wr(Yt),{compactSize:Nr,compactItemClassnames:bi}=(0,Ht.ri)(Yt,Wi);let Ei=C.createElement(k,{className:`${Yt}-handler-up-inner`}),Yi=C.createElement(v.Z,{className:`${Yt}-handler-down-inner`});const di=typeof Ur=="boolean"?Ur:void 0;typeof Ur=="object"&&(Ei=typeof Ur.upIcon=="undefined"?Ei:C.createElement("span",{className:`${Yt}-handler-up-inner`},Ur.upIcon),Yi=typeof Ur.downIcon=="undefined"?Yi:C.createElement("span",{className:`${Yt}-handler-down-inner`},Ur.downIcon));const{hasFeedback:Wr,status:Ni,isFormItemInput:kr,feedbackIcon:Xr}=C.useContext(Ct.aM),yo=(0,co.F)(Ni,vr),ls=(0,nt.Z)(or=>{var Oi;return(Oi=Gt!=null?Gt:Nr)!==null&&Oi!==void 0?Oi:or}),Sr=C.useContext(Tn.Z),hs=wn!=null?wn:Sr,ta=p()({[`${Yt}-lg`]:ls==="large",[`${Yt}-sm`]:ls==="small",[`${Yt}-rtl`]:Wi==="rtl",[`${Yt}-borderless`]:!jt,[`${Yt}-in-form-item`]:kr},(0,co.Z)(Yt,yo),fr),fi=`${Yt}-group`,Po=Wr&&C.createElement(C.Fragment,null,Xr),mo=C.createElement($i,Object.assign({ref:ir,disabled:hs,className:p()(Jn,$t,bi),upHandler:Ei,downHandler:Yi,prefixCls:Yt,readOnly:In,controls:di,prefix:$n,suffix:Po,addonAfter:qn&&C.createElement(Ht.BR,null,C.createElement(Ct.Ux,{override:!0,status:!0},qn)),addonBefore:_r&&C.createElement(Ht.BR,null,C.createElement(Ct.Ux,{override:!0,status:!0},_r)),classNames:{input:ta},classes:{affixWrapper:p()((0,co.Z)(`${Yt}-affix-wrapper`,yo,Wr),{[`${Yt}-affix-wrapper-sm`]:ls==="small",[`${Yt}-affix-wrapper-lg`]:ls==="large",[`${Yt}-affix-wrapper-rtl`]:Wi==="rtl",[`${Yt}-affix-wrapper-borderless`]:!jt},fr),wrapper:p()({[`${fi}-rtl`]:Wi==="rtl",[`${Yt}-wrapper-disabled`]:hs},fr),group:p()({[`${Yt}-group-wrapper-sm`]:ls==="small",[`${Yt}-group-wrapper-lg`]:ls==="large",[`${Yt}-group-wrapper-rtl`]:Wi==="rtl"},(0,co.Z)(`${Yt}-group-wrapper`,yo,Wr),fr)}},Ao));return xn(mo)}),Pr=xi,Hi=On=>C.createElement(Ro.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},C.createElement(xi,Object.assign({},On)));Pr._InternalPanelDoNotUseOrYouWillBeFired=Hi;var Io=Pr},7744:function(mt,q,_){"use strict";_.d(q,{Z:function(){return Se},n:function(){return Ae}});var v=_(77617),M=_(48796),C=_(12124),x=_.n(C),N=_(79952),V=_(9681),R=_(3335),k=_(41203),S=_(57132),p=_(29212),T=_(74334),F=_(43906),K=_(35965),he=_(83279);function fe(it){return!!(it.prefix||it.suffix||it.allowClear)}var be=function(it,Xe){var ft={};for(var Me in it)Object.prototype.hasOwnProperty.call(it,Me)&&Xe.indexOf(Me)<0&&(ft[Me]=it[Me]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,Me=Object.getOwnPropertySymbols(it);Ee{var ft;const{prefixCls:Me,bordered:Ee=!0,status:ze,size:Pe,disabled:Re,onBlur:je,onFocus:Ce,suffix:rt,allowClear:Ne,addonAfter:Xt,addonBefore:Ft,className:lt,style:Bt,styles:At,rootClassName:an,onChange:Tt,classNames:Nn}=it,mn=be(it,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:zn,direction:Kr,input:Ui}=v.useContext(k.E_),go=zn("input",Me),gi=(0,v.useRef)(null),[Mr,To]=(0,he.ZP)(go),{compactSize:ms,compactItemClassnames:De}=(0,F.ri)(go,Kr),Oo=(0,p.Z)(Dn=>{var sn;return(sn=Pe!=null?Pe:ms)!==null&&sn!==void 0?sn:Dn}),$i=v.useContext(S.Z),co=Re!=null?Re:$i,{status:Vr,hasFeedback:Ro,feedbackIcon:Tn}=(0,v.useContext)(T.aM),nt=(0,R.F)(Vr,ze),Ct=fe(it)||!!Ro,Ht=(0,v.useRef)(Ct),hn=(0,K.Z)(gi,!0),En=Dn=>{hn(),je==null||je(Dn)},rn=Dn=>{hn(),Ce==null||Ce(Dn)},Jt=Dn=>{hn(),Tt==null||Tt(Dn)},Mt=(Ro||rt)&&v.createElement(v.Fragment,null,rt,Ro&&Tn);let Qt;return typeof Ne=="object"&&(Ne!=null&&Ne.clearIcon)?Qt=Ne:Ne&&(Qt={clearIcon:v.createElement(M.Z,null)}),Mr(v.createElement(N.Z,Object.assign({ref:(0,V.sQ)(Xe,gi),prefixCls:go,autoComplete:Ui==null?void 0:Ui.autoComplete},mn,{disabled:co,onBlur:En,onFocus:rn,style:Object.assign(Object.assign({},Ui==null?void 0:Ui.style),Bt),styles:Object.assign(Object.assign({},Ui==null?void 0:Ui.styles),At),suffix:Mt,allowClear:Qt,className:x()(lt,an,De,Ui==null?void 0:Ui.className),onChange:Jt,addonAfter:Xt&&v.createElement(F.BR,null,v.createElement(T.Ux,{override:!0,status:!0},Xt)),addonBefore:Ft&&v.createElement(F.BR,null,v.createElement(T.Ux,{override:!0,status:!0},Ft)),classNames:Object.assign(Object.assign(Object.assign({},Nn),Ui==null?void 0:Ui.classNames),{input:x()({[`${go}-sm`]:Oo==="small",[`${go}-lg`]:Oo==="large",[`${go}-rtl`]:Kr==="rtl",[`${go}-borderless`]:!Ee},!Ct&&(0,R.Z)(go,nt),Nn==null?void 0:Nn.input,(ft=Ui==null?void 0:Ui.classNames)===null||ft===void 0?void 0:ft.input,To)}),classes:{affixWrapper:x()({[`${go}-affix-wrapper-sm`]:Oo==="small",[`${go}-affix-wrapper-lg`]:Oo==="large",[`${go}-affix-wrapper-rtl`]:Kr==="rtl",[`${go}-affix-wrapper-borderless`]:!Ee},(0,R.Z)(`${go}-affix-wrapper`,nt,Ro),To),wrapper:x()({[`${go}-group-rtl`]:Kr==="rtl"},To),group:x()({[`${go}-group-wrapper-sm`]:Oo==="small",[`${go}-group-wrapper-lg`]:Oo==="large",[`${go}-group-wrapper-rtl`]:Kr==="rtl",[`${go}-group-wrapper-disabled`]:co},(0,R.Z)(`${go}-group-wrapper`,nt,Ro),To)}})))})},60838:function(mt,q,_){"use strict";_.d(q,{Z:function(){return go}});var v=_(77617),M=_(48796),C=_(12124),x=_.n(C),N=_(26508),V=_(74710),R=_(80268),k=_(42371),S=_(39718),p=_(52528),T=_(79952),F=_(35757),K=_(55982),he=_(41760),fe=_(91002),be=_(28647),Ae=_(62305),xe=_(28637),Se=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -7820,33 +7850,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"],Be={},Ie;function je(_r){var Bo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fs=_r.getAttribute("id")||_r.getAttribute("data-reactid")||_r.getAttribute("name");if(Bo&&Be[fs])return Be[fs];var me=window.getComputedStyle(_r),So=me.getPropertyValue("box-sizing")||me.getPropertyValue("-moz-box-sizing")||me.getPropertyValue("-webkit-box-sizing"),ho=parseFloat(me.getPropertyValue("padding-bottom"))+parseFloat(me.getPropertyValue("padding-top")),go=parseFloat(me.getPropertyValue("border-bottom-width"))+parseFloat(me.getPropertyValue("border-top-width")),ji=fe.map(function(dn){return"".concat(dn,":").concat(me.getPropertyValue(dn))}).join(";"),No={sizingStyle:ji,paddingSize:ho,borderSize:go,boxSizing:So};return Bo&&fs&&(Be[fs]=No),No}function be(_r){var Bo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,me=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)),_r.getAttribute("wrap")?Ie.setAttribute("wrap",_r.getAttribute("wrap")):Ie.removeAttribute("wrap");var So=je(_r,Bo),ho=So.paddingSize,go=So.borderSize,ji=So.boxSizing,No=So.sizingStyle;Ie.setAttribute("style","".concat(No,";").concat(he)),Ie.value=_r.value||_r.placeholder||"";var dn=void 0,Ve=void 0,yt,xt=Ie.scrollHeight;if(ji==="border-box"?xt+=go:ji==="content-box"&&(xt-=ho),fs!==null||me!==null){Ie.value=" ";var Wt=Ie.scrollHeight-ho;fs!==null&&(dn=Wt*fs,ji==="border-box"&&(dn=dn+ho+go),xt=Math.max(dn,xt)),me!==null&&(Ve=Wt*me,ji==="border-box"&&(Ve=Ve+ho+go),yt=xt>Ve?"":"hidden",xt=Math.min(Ve,xt))}var sn={height:xt,overflowY:yt,resize:"none"};return dn&&(sn.minHeight=dn),Ve&&(sn.maxHeight=Ve),sn}var ve=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ye=0,Ce=1,xe=2,Ae=te.forwardRef(function(_r,Bo){var fs=_r,me=fs.prefixCls,So=fs.onPressEnter,ho=fs.defaultValue,go=fs.value,ji=fs.autoSize,No=fs.onResize,dn=fs.className,Ve=fs.style,yt=fs.disabled,xt=fs.onChange,Wt=fs.onInternalAutoSize,sn=(0,C.Z)(fs,ve),Ot=(0,W.Z)(ho,{value:go,postState:function(Xr){return Xr!=null?Xr:""}}),Tt=(0,A.Z)(Ot,2),bt=Tt[0],Ht=Tt[1],zn=function(Xr){Ht(Xr.target.value),xt==null||xt(Xr)},en=te.useRef();te.useImperativeHandle(Bo,function(){return{textArea:en.current}});var fr=te.useMemo(function(){return ji&&(0,w.Z)(ji)==="object"?[ji.minRows,ji.maxRows]:[]},[ji]),Kr=(0,A.Z)(fr,2),ii=Kr[0],si=Kr[1],uo=!!ji,Qo=function(){try{if(document.activeElement===en.current){var Xr=en.current,ao=Xr.selectionStart,as=Xr.selectionEnd,Bt=Xr.scrollTop;en.current.setSelectionRange(ao,as),en.current.scrollTop=Bt}}catch(pn){}},_n=te.useState(xe),Vr=(0,A.Z)(_n,2),qr=Vr[0],Ui=Vr[1],xo=te.useState(),Us=(0,A.Z)(xo,2),$n=Us[0],Kn=Us[1],Fr=function(){Ui(ye)};(0,ce.Z)(function(){uo&&Fr()},[go,ii,si,uo]),(0,ce.Z)(function(){if(qr===ye)Ui(Ce);else if(qr===Ce){var Qn=be(en.current,!1,ii,si);Ui(xe),Kn(Qn)}else Qo()},[qr]);var mi=te.useRef(),Tr=function(){pe.Z.cancel(mi.current)},ti=function(Xr){qr===xe&&(No==null||No(Xr),ji&&(Tr(),mi.current=(0,pe.Z)(function(){Fr()})))};te.useEffect(function(){return Tr},[]);var di=uo?$n:null,rn=(0,k.Z)((0,k.Z)({},Ve),di);return(qr===ye||qr===Ce)&&(rn.overflowY="hidden",rn.overflowX="hidden"),te.createElement(re.Z,{onResize:ti,disabled:!(ji||No)},te.createElement("textarea",(0,z.Z)({},sn,{ref:en,style:rn,className:b()(me,dn,(0,N.Z)({},"".concat(me,"-disabled"),yt)),disabled:yt,value:bt,onChange:zn})))}),ge=Ae,We=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Se(_r,Bo){return(0,f.Z)(_r||"").slice(0,Bo).join("")}function Pt(_r,Bo,fs,me){var So=fs;return _r?So=Se(fs,me):(0,f.Z)(Bo||"").lengthme&&(So=Bo),So}var dt=te.forwardRef(function(_r,Bo){var fs,me=_r.defaultValue,So=_r.value,ho=_r.onFocus,go=_r.onBlur,ji=_r.onChange,No=_r.allowClear,dn=_r.maxLength,Ve=_r.onCompositionStart,yt=_r.onCompositionEnd,xt=_r.suffix,Wt=_r.prefixCls,sn=Wt===void 0?"rc-textarea":Wt,Ot=_r.classes,Tt=_r.showCount,bt=_r.className,Ht=_r.style,zn=_r.disabled,en=_r.hidden,fr=_r.classNames,Kr=_r.styles,ii=_r.onResize,si=(0,C.Z)(_r,We),uo=(0,W.Z)(me,{value:So,defaultValue:me}),Qo=(0,A.Z)(uo,2),_n=Qo[0],Vr=Qo[1],qr=(0,te.useRef)(null),Ui=te.useState(!1),xo=(0,A.Z)(Ui,2),Us=xo[0],$n=xo[1],Kn=te.useState(!1),Fr=(0,A.Z)(Kn,2),mi=Fr[0],Tr=Fr[1],ti=te.useRef(),di=te.useRef(0),rn=te.useState(null),Qn=(0,A.Z)(rn,2),Xr=Qn[0],ao=Qn[1],as=function(){var nr;(nr=qr.current)===null||nr===void 0||nr.textArea.focus()};(0,te.useImperativeHandle)(Bo,function(){return{resizableTextArea:qr.current,focus:as,blur:function(){var nr;(nr=qr.current)===null||nr===void 0||nr.textArea.blur()}}}),(0,te.useEffect)(function(){$n(function(Ii){return!zn&&Ii})},[zn]);var Bt=Number(dn)>0,pn=function(nr){Tr(!0),ti.current=_n,di.current=nr.currentTarget.selectionStart,Ve==null||Ve(nr)},xr=function(nr){Tr(!1);var wi=nr.currentTarget.value;if(Bt){var Mi,Rr=di.current>=dn+1||di.current===((Mi=ti.current)===null||Mi===void 0?void 0:Mi.length);wi=Pt(Rr,ti.current,wi,dn)}wi!==_n&&(Vr(wi),(0,P.rJ)(nr.currentTarget,nr,ji,wi)),yt==null||yt(nr)},Jr=function(nr){var wi=nr.target.value;if(!mi&&Bt){var Mi=nr.target.selectionStart>=dn+1||nr.target.selectionStart===wi.length||!nr.target.selectionStart;wi=Pt(Mi,_n,wi,dn)}Vr(wi),(0,P.rJ)(nr.currentTarget,nr,ji,wi)},vi=function(nr){var wi=si.onPressEnter,Mi=si.onKeyDown;nr.key==="Enter"&&wi&&wi(nr),Mi==null||Mi(nr)},Ti=function(nr){$n(!0),ho==null||ho(nr)},co=function(nr){$n(!1),go==null||go(nr)},Qr=function(nr){var wi;Vr(""),as(),(0,P.rJ)((wi=qr.current)===null||wi===void 0?void 0:wi.textArea,nr,ji)},oi=(0,P.D7)(_n);!mi&&Bt&&So==null&&(oi=Se(oi,dn));var Zi=xt,Ir;if(Tt){var tn=(0,f.Z)(oi).length;(0,w.Z)(Tt)==="object"?Ir=Tt.formatter({value:oi,count:tn,maxLength:dn}):Ir="".concat(tn).concat(Bt?" / ".concat(dn):""),Zi=te.createElement(te.Fragment,null,Zi,te.createElement("span",{className:b()("".concat(sn,"-data-count"),fr==null?void 0:fr.count),style:Kr==null?void 0:Kr.count},Ir))}var Gn=function(nr){var wi;ii==null||ii(nr),(wi=qr.current)!==null&&wi!==void 0&&wi.textArea.style.height&&ao(!0)},Ei=!si.autoSize&&!Tt&&!No,Ln=te.createElement(S.Q,{value:oi,allowClear:No,handleReset:Qr,suffix:Zi,prefixCls:sn,classes:{affixWrapper:b()(Ot==null?void 0:Ot.affixWrapper,(fs={},(0,N.Z)(fs,"".concat(sn,"-show-count"),Tt),(0,N.Z)(fs,"".concat(sn,"-textarea-allow-clear"),No),fs))},disabled:zn,focused:Us,className:bt,style:(0,k.Z)((0,k.Z)({},Ht),Xr&&!Ei?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ir=="string"?Ir:void 0}},hidden:en,inputElement:te.createElement(ge,(0,z.Z)({},si,{onKeyDown:vi,onChange:Jr,onFocus:Ti,onBlur:co,onCompositionStart:pn,onCompositionEnd:xr,className:fr==null?void 0:fr.textarea,style:(0,k.Z)((0,k.Z)({},Kr==null?void 0:Kr.textarea),{},{resize:Ht==null?void 0:Ht.resize}),disabled:zn,prefixCls:sn,onResize:Gn,ref:qr}))});return Ln}),He=dt,Ct=He,ft=m(5997),zt=m(67392),mt=m(81689),yn=m(21843),Bn=m(86818),Lr=m(44159),ri=m(89746),gi=function(_r,Bo){var fs={};for(var me in _r)Object.prototype.hasOwnProperty.call(_r,me)&&Bo.indexOf(me)<0&&(fs[me]=_r[me]);if(_r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var So=0,me=Object.getOwnPropertySymbols(_r);So{const{prefixCls:fs,bordered:me=!0,size:So,disabled:ho,status:go,allowClear:ji,showCount:No,classNames:dn,rootClassName:Ve,className:yt}=_r,xt=gi(_r,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Wt,direction:sn}=te.useContext(zt.E_),Ot=(0,yn.Z)(So),Tt=te.useContext(mt.Z),bt=ho!=null?ho:Tt,{status:Ht,hasFeedback:zn,feedbackIcon:en}=te.useContext(Bn.aM),fr=(0,ft.F)(Ht,go),Kr=te.useRef(null);te.useImperativeHandle(Bo,()=>{var _n;return{resizableTextArea:(_n=Kr.current)===null||_n===void 0?void 0:_n.resizableTextArea,focus:Vr=>{var qr,Ui;(0,Lr.n)((Ui=(qr=Kr.current)===null||qr===void 0?void 0:qr.resizableTextArea)===null||Ui===void 0?void 0:Ui.textArea,Vr)},blur:()=>{var Vr;return(Vr=Kr.current)===null||Vr===void 0?void 0:Vr.blur()}}});const ii=Wt("input",fs);let si;typeof ji=="object"&&(ji!=null&&ji.clearIcon)?si=ji:ji&&(si={clearIcon:te.createElement(y.Z,null)});const[uo,Qo]=(0,ri.ZP)(ii);return uo(te.createElement(Ct,Object.assign({},xt,{disabled:bt,allowClear:si,className:b()(yt,Ve),classes:{affixWrapper:b()(`${ii}-textarea-affix-wrapper`,{[`${ii}-affix-wrapper-rtl`]:sn==="rtl",[`${ii}-affix-wrapper-borderless`]:!me,[`${ii}-affix-wrapper-sm`]:Ot==="small",[`${ii}-affix-wrapper-lg`]:Ot==="large",[`${ii}-textarea-show-count`]:No},(0,ft.Z)(`${ii}-affix-wrapper`,fr),Qo)},classNames:Object.assign(Object.assign({},dn),{textarea:b()({[`${ii}-borderless`]:!me,[`${ii}-sm`]:Ot==="small",[`${ii}-lg`]:Ot==="large"},(0,ft.Z)(ii,fr),Qo,dn==null?void 0:dn.textarea)}),prefixCls:ii,suffix:zn&&te.createElement("span",{className:`${ii}-textarea-suffix`},en),showCount:No,ref:Kr})))})},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 Ct}});var y=m(77617),I=m(12124),b=m.n(I),z=m(67392),k=m(86818),N=m(89746),A=ft=>{const{getPrefixCls:zt,direction:mt}=(0,y.useContext)(z.E_),{prefixCls:yn,className:Bn}=ft,Lr=zt("input-group",yn),ri=zt("input"),[gi,ro]=(0,N.ZP)(ri),To=b()(Lr,{[`${Lr}-lg`]:ft.size==="large",[`${Lr}-sm`]:ft.size==="small",[`${Lr}-compact`]:ft.compact,[`${Lr}-rtl`]:mt==="rtl"},ro,Bn),_r=(0,y.useContext)(k.aM),Bo=(0,y.useMemo)(()=>Object.assign(Object.assign({},_r),{isFormItemInput:!1}),[_r]);return gi(y.createElement("span",{className:To,style:ft.style,onMouseEnter:ft.onMouseEnter,onMouseLeave:ft.onMouseLeave,onFocus:ft.onFocus,onBlur:ft.onBlur},y.createElement(k.aM.Provider,{value:Bo},ft.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),te=function(zt,mt){return y.createElement(W.Z,(0,f.Z)({},zt,{ref:mt,icon:P}))},re=y.forwardRef(te),ce=m(15997),pe=m(39029),he=m(9681),fe=m(41537),Be=function(ft,zt){var mt={};for(var yn in ft)Object.prototype.hasOwnProperty.call(ft,yn)&&zt.indexOf(yn)<0&&(mt[yn]=ft[yn]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,yn=Object.getOwnPropertySymbols(ft);Bnft?y.createElement(ce.Z,null):y.createElement(re,null),je={click:"onClick",hover:"onMouseOver"};var ve=y.forwardRef((ft,zt)=>{const{visibilityToggle:mt=!0}=ft,yn=typeof mt=="object"&&mt.visible!==void 0,[Bn,Lr]=(0,y.useState)(()=>yn?mt.visible:!1),ri=(0,y.useRef)(null);y.useEffect(()=>{yn&&Lr(mt.visible)},[yn,mt]);const gi=(0,fe.Z)(ri),ro=()=>{const{disabled:yt}=ft;yt||(Bn&&gi(),Lr(xt=>{var Wt;const sn=!xt;return typeof mt=="object"&&((Wt=mt.onVisibleChange)===null||Wt===void 0||Wt.call(mt,sn)),sn}))},To=yt=>{const{action:xt="click",iconRender:Wt=Ie}=ft,sn=je[xt]||"",Ot=Wt(Bn),Tt={[sn]:ro,className:`${yt}-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:_r,prefixCls:Bo,inputPrefixCls:fs,size:me}=ft,So=Be(ft,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:ho}=y.useContext(z.E_),go=ho("input",fs),ji=ho("input-password",Bo),No=mt&&To(ji),dn=b()(ji,_r,{[`${ji}-${me}`]:!!me}),Ve=Object.assign(Object.assign({},(0,pe.Z)(So,["suffix","iconRender","visibilityToggle"])),{type:Bn?"text":"password",className:dn,prefixCls:go,suffix:No});return me&&(Ve.size=me),y.createElement(C.Z,Object.assign({ref:(0,he.sQ)(zt,ri)},Ve))}),ye=m(46820),Ce=m(99486),xe=m(38115),Ae=m(21843),ge=m(58370),We=function(ft,zt){var mt={};for(var yn in ft)Object.prototype.hasOwnProperty.call(ft,yn)&&zt.indexOf(yn)<0&&(mt[yn]=ft[yn]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,yn=Object.getOwnPropertySymbols(ft);Bn{const{prefixCls:mt,inputPrefixCls:yn,className:Bn,size:Lr,suffix:ri,enterButton:gi=!1,addonAfter:ro,loading:To,disabled:_r,onSearch:Bo,onChange:fs,onCompositionStart:me,onCompositionEnd:So}=ft,ho=We(ft,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:go,direction:ji}=y.useContext(z.E_),No=y.useRef(!1),dn=go("input-search",mt),Ve=go("input",yn),{compactSize:yt}=(0,ge.ri)(dn,ji),xt=(0,Ae.Z)(Qo=>{var _n;return(_n=Lr!=null?Lr:yt)!==null&&_n!==void 0?_n:Qo}),Wt=y.useRef(null),sn=Qo=>{Qo&&Qo.target&&Qo.type==="click"&&Bo&&Bo(Qo.target.value,Qo,{source:"clear"}),fs&&fs(Qo)},Ot=Qo=>{var _n;document.activeElement===((_n=Wt.current)===null||_n===void 0?void 0:_n.input)&&Qo.preventDefault()},Tt=Qo=>{var _n,Vr;Bo&&Bo((Vr=(_n=Wt.current)===null||_n===void 0?void 0:_n.input)===null||Vr===void 0?void 0:Vr.value,Qo,{source:"input"})},bt=Qo=>{No.current||To||Tt(Qo)},Ht=typeof gi=="boolean"?y.createElement(ye.Z,null):null,zn=`${dn}-button`;let en;const fr=gi||{},Kr=fr.type&&fr.type.__ANT_BUTTON===!0;Kr||fr.type==="button"?en=(0,Ce.Tm)(fr,Object.assign({onMouseDown:Ot,onClick:Qo=>{var _n,Vr;(Vr=(_n=fr==null?void 0:fr.props)===null||_n===void 0?void 0:_n.onClick)===null||Vr===void 0||Vr.call(_n,Qo),Tt(Qo)},key:"enterButton"},Kr?{className:zn,size:xt}:{})):en=y.createElement(xe.ZP,{className:zn,type:gi?"primary":void 0,size:xt,disabled:_r,key:"enterButton",onMouseDown:Ot,onClick:Tt,loading:To,icon:Ht},gi),ro&&(en=[en,(0,Ce.Tm)(ro,{key:"addonAfter"})]);const ii=b()(dn,{[`${dn}-rtl`]:ji==="rtl",[`${dn}-${xt}`]:!!xt,[`${dn}-with-button`]:!!gi},Bn),si=Qo=>{No.current=!0,me==null||me(Qo)},uo=Qo=>{No.current=!1,So==null||So(Qo)};return y.createElement(C.Z,Object.assign({ref:(0,he.sQ)(Wt,zt),onPressEnter:bt},ho,{size:xt,onCompositionStart:si,onCompositionEnd:uo,prefixCls:Ve,addonAfter:en,suffix:ri,onChange:sn,className:ii,disabled:_r}))}),dt=m(25279);const He=C.Z;He.Group=A,He.Search=Pt,He.TextArea=dt.Z,He.Password=ve;var Ct=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=je=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:je,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),N=je=>({borderColor:je.hoverBorderColor,backgroundColor:je.hoverBg}),w=je=>({borderColor:je.activeBorderColor,boxShadow:je.activeShadow,outline:0,backgroundColor:je.activeBg}),A=je=>({color:je.colorTextDisabled,backgroundColor:je.colorBgContainerDisabled,borderColor:je.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},N((0,b.TS)(je,{hoverBorderColor:je.colorBorder,hoverBg:je.colorBgContainerDisabled})))}),C=je=>{const{paddingBlockLG:be,fontSizeLG:ve,lineHeightLG:ye,borderRadiusLG:Ce,paddingInlineLG:xe}=je;return{padding:`${be}px ${xe}px`,fontSize:ve,lineHeight:ye,borderRadius:Ce}},f=je=>({padding:`${je.paddingBlockSM}px ${je.paddingInlineSM}px`,borderRadius:je.borderRadiusSM}),S=(je,be)=>{const{componentCls:ve,colorError:ye,colorWarning:Ce,errorActiveShadow:xe,warningActiveShadow:Ae,colorErrorBorderHover:ge,colorWarningBorderHover:We}=je;return{[`&-status-error:not(${be}-disabled):not(${be}-borderless)${be}`]:{borderColor:ye,"&:hover":{borderColor:ge},"&:focus, &:focus-within":Object.assign({},w((0,b.TS)(je,{activeBorderColor:ye,activeShadow:xe}))),[`${ve}-prefix, ${ve}-suffix`]:{color:ye}},[`&-status-warning:not(${be}-disabled):not(${be}-borderless)${be}`]:{borderColor:Ce,"&:hover":{borderColor:We},"&:focus, &:focus-within":Object.assign({},w((0,b.TS)(je,{activeBorderColor:Ce,activeShadow:Ae}))),[`${ve}-prefix, ${ve}-suffix`]:{color:Ce}}}},P=je=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${je.paddingBlock}px ${je.paddingInline}px`,color:je.colorText,fontSize:je.fontSize,lineHeight:je.lineHeight,backgroundColor:je.colorBgContainer,backgroundImage:"none",borderWidth:je.lineWidth,borderStyle:je.lineType,borderColor:je.colorBorder,borderRadius:je.borderRadius,transition:`all ${je.motionDurationMid}`},k(je.colorTextPlaceholder)),{"&:hover":Object.assign({},N(je)),"&:focus, &:focus-within":Object.assign({},w(je)),"&-disabled, &[disabled]":Object.assign({},A(je)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:je.controlHeight,lineHeight:je.lineHeight,verticalAlign:"bottom",transition:`all ${je.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},C(je)),"&-sm":Object.assign({},f(je)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),W=je=>{const{componentCls:be,antCls:ve}=je;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:je.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${be}, &-lg > ${be}-group-addon`]:Object.assign({},C(je)),[`&-sm ${be}, &-sm > ${be}-group-addon`]:Object.assign({},f(je)),[`&-lg ${ve}-select-single ${ve}-select-selector`]:{height:je.controlHeightLG},[`&-sm ${ve}-select-single ${ve}-select-selector`]:{height:je.controlHeightSM},[`> ${be}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${be}-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 ${je.paddingInline}px`,color:je.colorText,fontWeight:"normal",fontSize:je.fontSize,textAlign:"center",backgroundColor:je.addonBg,border:`${je.lineWidth}px ${je.lineType} ${je.colorBorder}`,borderRadius:je.borderRadius,transition:`all ${je.motionDurationSlow}`,lineHeight:1,[`${ve}-select`]:{margin:`-${je.paddingBlock+1}px -${je.paddingInline}px`,[`&${ve}-select-single:not(${ve}-select-customize-input):not(${ve}-pagination-size-changer)`]:{[`${ve}-select-selector`]:{backgroundColor:"inherit",border:`${je.lineWidth}px ${je.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${ve}-select-selector`]:{color:je.colorPrimary}}},[`${ve}-cascader-picker`]:{margin:`-9px -${je.paddingInline}px`,backgroundColor:"transparent",[`${ve}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${be}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${be}-search-with-button &`]:{zIndex:0}}},[`> ${be}:first-child, ${be}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${ve}-select ${ve}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${be}-affix-wrapper`]:{[`&:not(:first-child) ${be}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${be}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${be}:last-child, ${be}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${ve}-select ${ve}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${be}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${be}-search &`]:{borderStartStartRadius:je.borderRadius,borderEndStartRadius:je.borderRadius}},[`&:not(:first-child), ${be}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${be}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,y.dF)()),{[`${be}-group-addon, ${be}-group-wrap, > ${be}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:je.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` - & > ${be}-affix-wrapper, - & > ${be}-number-affix-wrapper, - & > ${ve}-picker-range - `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-je.lineWidth,borderInlineEndWidth:je.lineWidth},[`${be}`]:{float:"none"},[`& > ${ve}-select > ${ve}-select-selector, - & > ${ve}-select-auto-complete ${be}, - & > ${ve}-cascader-picker ${be}, - & > ${be}-group-wrapper ${be}`]:{borderInlineEndWidth:je.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 ${be}, - & > ${ve}-cascader-picker:first-child ${be}`]:{borderStartStartRadius:je.borderRadius,borderEndStartRadius:je.borderRadius},[`& > *:last-child, - & > ${ve}-select:last-child > ${ve}-select-selector, - & > ${ve}-cascader-picker:last-child ${be}, - & > ${ve}-cascader-picker-focused:last-child ${be}`]:{borderInlineEndWidth:je.lineWidth,borderStartEndRadius:je.borderRadius,borderEndEndRadius:je.borderRadius},[`& > ${ve}-select-auto-complete ${be}`]:{verticalAlign:"top"},[`${be}-group-wrapper + ${be}-group-wrapper`]:{marginInlineStart:-je.lineWidth,[`${be}-affix-wrapper`]:{borderRadius:0}},[`${be}-group-wrapper:not(:last-child)`]:{[`&${be}-search > ${be}-group`]:{[`& > ${be}-group-addon > ${be}-search-button`]:{borderRadius:0},[`& > ${be}`]:{borderStartStartRadius:je.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:je.borderRadius}}}})}},te=je=>{const{componentCls:be,controlHeightSM:ve,lineWidth:ye}=je,Ce=16,xe=(ve-ye*2-Ce)/2;return{[be]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,y.Wf)(je)),P(je)),S(je,be)),{'&[type="color"]':{height:je.controlHeight,[`&${be}-lg`]:{height:je.controlHeightLG},[`&${be}-sm`]:{height:ve,paddingTop:xe,paddingBottom:xe}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},re=je=>{const{componentCls:be}=je;return{[`${be}-clear-icon`]:{margin:0,color:je.colorTextQuaternary,fontSize:je.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${je.motionDurationSlow}`,"&:hover":{color:je.colorTextTertiary},"&:active":{color:je.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${je.inputAffixPadding}px`}}}},ce=je=>{const{componentCls:be,inputAffixPadding:ve,colorTextDescription:ye,motionDurationSlow:Ce,colorIcon:xe,colorIconHover:Ae,iconCls:ge}=je;return{[`${be}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},P(je)),{display:"inline-flex",[`&:not(${be}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${be}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${be}[disabled]`]:{background:"transparent"}},[`> input${be}`]:{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"'},[`${be}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:je.paddingXS}},"&-show-count-suffix":{color:ye},"&-show-count-has-suffix":{marginInlineEnd:je.paddingXXS},"&-prefix":{marginInlineEnd:ve},"&-suffix":{marginInlineStart:ve}}}),re(je)),{[`${ge}${be}-password-icon`]:{color:xe,cursor:"pointer",transition:`all ${Ce}`,"&:hover":{color:Ae}}}),S(je,`${be}-affix-wrapper`))}},pe=je=>{const{componentCls:be,colorError:ve,colorWarning:ye,borderRadiusLG:Ce,borderRadiusSM:xe}=je;return{[`${be}-group`]:Object.assign(Object.assign(Object.assign({},(0,y.Wf)(je)),W(je)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${be}-group-addon`]:{borderRadius:Ce,fontSize:je.fontSizeLG}},"&-sm":{[`${be}-group-addon`]:{borderRadius:xe}},"&-status-error":{[`${be}-group-addon`]:{color:ve,borderColor:ve}},"&-status-warning":{[`${be}-group-addon`]:{color:ye,borderColor:ye}},"&-disabled":{[`${be}-group-addon`]:Object.assign({},A(je))},[`&:not(${be}-compact-first-item):not(${be}-compact-last-item)${be}-compact-item`]:{[`${be}, ${be}-group-addon`]:{borderRadius:0}},[`&:not(${be}-compact-last-item)${be}-compact-first-item`]:{[`${be}, ${be}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${be}-compact-first-item)${be}-compact-last-item`]:{[`${be}, ${be}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},he=je=>{const{componentCls:be,antCls:ve}=je,ye=`${be}-search`;return{[ye]:{[`${be}`]:{"&:hover, &:focus":{borderColor:je.colorPrimaryHover,[`+ ${be}-group-addon ${ye}-button:not(${ve}-btn-primary)`]:{borderInlineStartColor:je.colorPrimaryHover}}},[`${be}-affix-wrapper`]:{borderRadius:0},[`${be}-lg`]:{lineHeight:je.lineHeightLG-2e-4},[`> ${be}-group`]:{[`> ${be}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${ye}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:je.borderRadius,borderEndEndRadius:je.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${ye}-button:not(${ve}-btn-primary)`]:{color:je.colorTextDescription,"&:hover":{color:je.colorPrimaryHover},"&:active":{color:je.colorPrimaryActive},[`&${ve}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${ye}-button`]:{height:je.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${ye}-button`]:{height:je.controlHeightLG},[`&-small ${ye}-button`]:{height:je.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${be}-compact-item`]:{[`&:not(${be}-compact-last-item)`]:{[`${be}-group-addon`]:{[`${be}-search-button`]:{marginInlineEnd:-je.lineWidth,borderRadius:0}}},[`&:not(${be}-compact-first-item)`]:{[`${be},${be}-affix-wrapper`]:{borderRadius:0}},[`> ${be}-group-addon ${be}-search-button, - > ${be}, - ${be}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${be}-affix-wrapper-focused`]:{zIndex:2}}}}},fe=je=>{const{componentCls:be,paddingLG:ve}=je,ye=`${be}-textarea`;return{[ye]:{position:"relative","&-show-count":{[`> ${be}`]:{height:"100%"},[`${be}-data-count`]:{position:"absolute",bottom:-je.fontSize*je.lineHeight,insetInlineEnd:0,color:je.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${be}`]:{paddingInlineEnd:ve}},[`&-affix-wrapper${ye}-has-feedback`]:{[`${be}`]:{paddingInlineEnd:ve}},[`&-affix-wrapper${be}-affix-wrapper`]:{padding:0,[`> textarea${be}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${be}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${be}-clear-icon`]:{position:"absolute",insetInlineEnd:je.paddingXS,insetBlockStart:je.paddingXS},[`${ye}-suffix`]:{position:"absolute",top:0,insetInlineEnd:je.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function Be(je){return(0,b.TS)(je,{inputAffixPadding:je.paddingXXS})}const Ie=je=>{const{controlHeight:be,fontSize:ve,lineHeight:ye,lineWidth:Ce,controlHeightSM:xe,controlHeightLG:Ae,fontSizeLG:ge,lineHeightLG:We,paddingSM:Se,controlPaddingHorizontalSM:Pt,controlPaddingHorizontal:dt,colorFillAlter:He,colorPrimaryHover:Ct,colorPrimary:ft,controlOutlineWidth:zt,controlOutline:mt,colorErrorOutline:yn,colorWarningOutline:Bn}=je;return{paddingBlock:Math.max(Math.round((be-ve*ye)/2*10)/10-Ce,0),paddingBlockSM:Math.max(Math.round((xe-ve*ye)/2*10)/10-Ce,0),paddingBlockLG:Math.ceil((Ae-ge*We)/2*10)/10-Ce,paddingInline:Se-Ce,paddingInlineSM:Pt-Ce,paddingInlineLG:dt-Ce,addonBg:He,activeBorderColor:ft,hoverBorderColor:Ct,activeShadow:`0 0 0 ${zt}px ${mt}`,errorActiveShadow:`0 0 0 ${zt}px ${yn}`,warningActiveShadow:`0 0 0 ${zt}px ${Bn}`,hoverBg:"",activeBg:""}};V.ZP=(0,z.Z)("Input",je=>{const be=(0,b.TS)(je,Be(je));return[te(be),fe(be),ce(be),pe(be),he(be),(0,I.c)(be)]},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),te=(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:te}):C))});V.Z=k},7205:function(nt,V,m){"use strict";m.d(V,{Z:function(){return yt}});var y=m(51917),I=m(77617),b=m(12124),z=m.n(b),k=function(xt,Wt){var sn={};for(var Ot in xt)Object.prototype.hasOwnProperty.call(xt,Ot)&&Wt.indexOf(Ot)<0&&(sn[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 sn={};for(var Ot in xt)Object.prototype.hasOwnProperty.call(xt,Ot)&&Wt.indexOf(Ot)<0&&(sn[Ot]=xt[Ot]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Ot=Object.getOwnPropertySymbols(xt);Tt{const{prefixCls:Wt,className:sn,dashed:Ot}=xt,Tt=P(xt,["prefixCls","className","dashed"]),{getPrefixCls:bt}=I.useContext(S.E_),Ht=bt("menu",Wt),zn=z()({[`${Ht}-item-divider-dashed`]:!!Ot},sn);return I.createElement(y.iz,Object.assign({className:zn},Tt))},re=m(38930),ce=m(39029),pe=m(16175),he=m(99486),Be=(0,I.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),je=xt=>{var Wt;const{className:sn,children:Ot,icon:Tt,title:bt,danger:Ht}=xt,{prefixCls:zn,firstLevel:en,direction:fr,disableMenuItemTitleTooltip:Kr,inlineCollapsed:ii}=I.useContext(Be),si=Ui=>{const xo=I.createElement("span",{className:`${zn}-title-content`},Ot);return(!Tt||(0,he.l$)(Ot)&&Ot.type==="span")&&Ot&&Ui&&en&&typeof Ot=="string"?I.createElement("div",{className:`${zn}-inline-collapsed-noicon`},Ot.charAt(0)):xo},{siderCollapsed:uo}=I.useContext(w);let Qo=bt;typeof bt=="undefined"?Qo=en?Ot:"":bt===!1&&(Qo="");const _n={title:Qo};!uo&&!ii&&(_n.title=null,_n.open=!1);const Vr=(0,re.Z)(Ot).length;let qr=I.createElement(y.ck,Object.assign({},(0,ce.Z)(xt,["title","icon","danger"]),{className:z()({[`${zn}-item-danger`]:Ht,[`${zn}-item-only-child`]:(Tt?Vr+1:Vr)===1},sn),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:"",`${zn}-item-icon`)}),si(ii));return Kr||(qr=I.createElement(pe.Z,Object.assign({},_n,{placement:fr==="rtl"?"left":"right",overlayClassName:`${zn}-inline-collapsed-tooltip`}),qr)),qr},ve=xt=>{var Wt;const{popupClassName:sn,icon:Ot,title:Tt,theme:bt}=xt,Ht=I.useContext(Be),{prefixCls:zn,inlineCollapsed:en,theme:fr}=Ht,Kr=(0,y.Xl)();let ii;if(!Ot)ii=en&&!Kr.length&&Tt&&typeof Tt=="string"?I.createElement("div",{className:`${zn}-inline-collapsed-noicon`},Tt.charAt(0)):I.createElement("span",{className:`${zn}-title-content`},Tt);else{const uo=(0,he.l$)(Tt)&&Tt.type==="span";ii=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:"",`${zn}-item-icon`)}),uo?Tt:I.createElement("span",{className:`${zn}-title-content`},Tt))}const si=I.useMemo(()=>Object.assign(Object.assign({},Ht),{firstLevel:!1}),[Ht]);return I.createElement(Be.Provider,{value:si},I.createElement(y.Wd,Object.assign({},(0,ce.Z)(xt,["icon"]),{title:ii,popupClassName:z()(zn,sn,`${zn}-${bt||fr}`)})))},ye=m(93319),Ce=m(95470),xe=m(26612),Ae=function(xt,Wt){var sn={};for(var Ot in xt)Object.prototype.hasOwnProperty.call(xt,Ot)&&Wt.indexOf(Ot)<0&&(sn[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:zn}=Ot,en=Ae(Ot,["label","children","key","type"]),fr=Ht!=null?Ht:`tmp-${sn}`;return bt||zn==="group"?zn==="group"?I.createElement(y.BW,Object.assign({key:fr},en,{title:Tt}),ge(bt)):I.createElement(ve,Object.assign({key:fr},en,{title:Tt}),ge(bt)):zn==="divider"?I.createElement(te,Object.assign({key:fr},en)):I.createElement(je,Object.assign({key:fr},en),Tt)}return null}).filter(Wt=>Wt)}function We(xt){return I.useMemo(()=>xt&&ge(xt),[xt])}var Se=m(63044),Pt=m(64993),dt=m(92068),He=m(53710),Ct=m(22759),ft=m(69601),zt=m(24577),mt=m(41788),Bn=xt=>{const{componentCls:Wt,motionDurationSlow:sn,horizontalLineHeight:Ot,colorSplit:Tt,lineWidth:bt,lineType:Ht,itemPaddingInline:zn}=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:zn},[`> ${Wt}-item:hover, - > ${Wt}-item-active, - > ${Wt}-submenu ${Wt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Wt}-item, ${Wt}-submenu-title`]:{transition:[`border-color ${sn}`,`background ${sn}`].join(",")},[`${Wt}-submenu-arrow`]:{display:"none"}}}},ri=xt=>{let{componentCls:Wt,menuArrowOffset:sn}=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(-${sn})`},"&::after":{transform:`rotate(45deg) translateY(${sn})`}}}}};const gi=xt=>Object.assign({},(0,dt.oN)(xt));var To=(xt,Wt)=>{const{componentCls:sn,itemColor:Ot,itemSelectedColor:Tt,groupTitleColor:bt,itemBg:Ht,subMenuItemBg:zn,itemSelectedBg:en,activeBarHeight:fr,activeBarWidth:Kr,activeBarBorderWidth:ii,motionDurationSlow:si,motionEaseInOut:uo,motionEaseOut:Qo,itemPaddingInline:_n,motionDurationMid:Vr,itemHoverColor:qr,lineType:Ui,colorSplit:xo,itemDisabledColor:Us,dangerItemColor:$n,dangerItemHoverColor:Kn,dangerItemSelectedColor:Fr,dangerItemActiveBg:mi,dangerItemSelectedBg:Tr,itemHoverBg:ti,itemActiveBg:di,menuSubMenuBg:rn,horizontalItemSelectedColor:Qn,horizontalItemSelectedBg:Xr,horizontalItemBorderRadius:ao,horizontalItemHoverBg:as,popupBg:Bt}=xt;return{[`${sn}-${Wt}, ${sn}-${Wt} > ${sn}`]:{color:Ot,background:Ht,[`&${sn}-root:focus-visible`]:Object.assign({},gi(xt)),[`${sn}-item-group-title`]:{color:bt},[`${sn}-submenu-selected`]:{[`> ${sn}-submenu-title`]:{color:Tt}},[`${sn}-item-disabled, ${sn}-submenu-disabled`]:{color:`${Us} !important`},[`${sn}-item:not(${sn}-item-selected):not(${sn}-submenu-selected)`]:{[`&:hover, > ${sn}-submenu-title:hover`]:{color:qr}},[`&:not(${sn}-horizontal)`]:{[`${sn}-item:not(${sn}-item-selected)`]:{"&:hover":{backgroundColor:ti},"&:active":{backgroundColor:di}},[`${sn}-submenu-title`]:{"&:hover":{backgroundColor:ti},"&:active":{backgroundColor:di}}},[`${sn}-item-danger`]:{color:$n,[`&${sn}-item:hover`]:{[`&:not(${sn}-item-selected):not(${sn}-submenu-selected)`]:{color:Kn}},[`&${sn}-item:active`]:{background:mi}},[`${sn}-item a`]:{"&, &:hover":{color:"inherit"}},[`${sn}-item-selected`]:{color:Tt,[`&${sn}-item-danger`]:{color:Fr},["a, a:hover"]:{color:"inherit"}},[`& ${sn}-item-selected`]:{backgroundColor:en,[`&${sn}-item-danger`]:{backgroundColor:Tr}},[`${sn}-item, ${sn}-submenu-title`]:{[`&:not(${sn}-item-disabled):focus-visible`]:Object.assign({},gi(xt))},[`&${sn}-submenu > ${sn}`]:{backgroundColor:rn},[`&${sn}-popup > ${sn}`]:{backgroundColor:Bt},[`&${sn}-horizontal`]:Object.assign(Object.assign({},Wt==="dark"?{borderBottom:0}:{}),{[`> ${sn}-item, > ${sn}-submenu`]:{top:ii,marginTop:-ii,marginBottom:0,borderRadius:ao,"&::after":{position:"absolute",insetInline:_n,bottom:0,borderBottom:`${fr}px solid transparent`,transition:`border-color ${si} ${uo}`,content:'""'},["&:hover, &-active, &-open"]:{background:as,"&::after":{borderBottomWidth:fr,borderBottomColor:Qn}},["&-selected"]:{color:Qn,backgroundColor:Xr,"&:hover":{backgroundColor:Xr},"&::after":{borderBottomWidth:fr,borderBottomColor:Qn}}}}),[`&${sn}-root`]:{[`&${sn}-inline, &${sn}-vertical`]:{borderInlineEnd:`${ii}px ${Ui} ${xo}`}},[`&${sn}-inline`]:{[`${sn}-sub${sn}-inline`]:{background:zn},[`${sn}-item, ${sn}-submenu-title`]:ii&&Kr?{width:`calc(100% + ${ii}px)`}:{},[`${sn}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Kr}px solid ${Tt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Vr} ${Qo}`,`opacity ${Vr} ${Qo}`].join(","),content:'""'},[`&${sn}-item-danger`]:{"&::after":{borderInlineEndColor:Fr}}},[`${sn}-selected, ${sn}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Vr} ${uo}`,`opacity ${Vr} ${uo}`].join(",")}}}}}};const _r=xt=>{const{componentCls:Wt,itemHeight:sn,itemMarginInline:Ot,padding:Tt,menuArrowSize:bt,marginXS:Ht,itemMarginBlock:zn}=xt,en=Tt+bt+Ht;return{[`${Wt}-item`]:{position:"relative",overflow:"hidden"},[`${Wt}-item, ${Wt}-submenu-title`]:{height:sn,lineHeight:`${sn}px`,paddingInline:Tt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ot,marginBlock:zn,width:`calc(100% - ${Ot*2}px)`},[`> ${Wt}-item, - > ${Wt}-submenu > ${Wt}-submenu-title`]:{height:sn,lineHeight:`${sn}px`},[`${Wt}-item-group-list ${Wt}-submenu-title, - ${Wt}-submenu-title`]:{paddingInlineEnd:en}}};var fs=xt=>{const{componentCls:Wt,iconCls:sn,itemHeight:Ot,colorTextLightSolid:Tt,dropdownWidth:bt,controlHeightLG:Ht,motionDurationMid:zn,motionEaseOut:en,paddingXL:fr,itemMarginInline:Kr,fontSizeLG:ii,motionDurationSlow:si,paddingXS:uo,boxShadowSecondary:Qo,collapsedWidth:_n,collapsedIconSize:Vr}=xt,qr={height:Ot,lineHeight:`${Ot}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Wt]:{["&-inline, &-vertical"]:Object.assign({[`&${Wt}-root`]:{boxShadow:"none"}},_r(xt))},[`${Wt}-submenu-popup`]:{[`${Wt}-vertical`]:Object.assign(Object.assign({},_r(xt)),{boxShadow:Qo})}},{[`${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 ${si}`,`background ${si}`,`padding ${zn} ${en}`].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`]:qr,[`& ${Wt}-item-group-title`]:{paddingInlineStart:fr}},[`${Wt}-item`]:qr}},{[`${Wt}-inline-collapsed`]:{width:_n,[`&${Wt}-root`]:{[`${Wt}-item, ${Wt}-submenu ${Wt}-submenu-title`]:{[`> ${Wt}-inline-collapsed-noicon`]:{fontSize:ii,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% - ${ii/2}px - ${Kr}px)`,textOverflow:"clip",[` - ${Wt}-submenu-arrow, - ${Wt}-submenu-expand-icon - `]:{opacity:0},[`${Wt}-item-icon, ${sn}`]:{margin:0,fontSize:Vr,lineHeight:`${Ot}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Wt}-item-icon, ${sn}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Wt}-item-icon, ${sn}`]:{display:"none"},"a, a:hover":{color:Tt}},[`${Wt}-item-group-title`]:Object.assign(Object.assign({},dt.vS),{paddingInline:uo})}}]};const me=xt=>{const{componentCls:Wt,motionDurationSlow:sn,motionDurationMid:Ot,motionEaseInOut:Tt,motionEaseOut:bt,iconCls:Ht,iconSize:zn,iconMarginInlineEnd:en}=xt;return{[`${Wt}-item, ${Wt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${sn}`,`background ${sn}`,`padding ${sn} ${Tt}`].join(","),[`${Wt}-item-icon, ${Ht}`]:{minWidth:zn,fontSize:zn,transition:[`font-size ${Ot} ${bt}`,`margin ${sn} ${Tt}`,`color ${sn}`].join(","),"+ span":{marginInlineStart:en,opacity:1,transition:[`opacity ${sn} ${Tt}`,`margin ${sn}`,`color ${sn}`].join(",")}},[`${Wt}-item-icon`]:Object.assign({},(0,dt.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"}}}},So=xt=>{const{componentCls:Wt,motionDurationSlow:sn,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 ${sn} ${Ot}, opacity ${sn}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:bt*.6,height:bt*.15,backgroundColor:"currentcolor",borderRadius:Tt,transition:[`background ${sn} ${Ot}`,`transform ${sn} ${Ot}`,`top ${sn} ${Ot}`,`color ${sn} ${Ot}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ht})`},"&::after":{transform:`rotate(-45deg) translateY(${Ht})`}}}}},ho=xt=>{const{antCls:Wt,componentCls:sn,fontSize:Ot,motionDurationSlow:Tt,motionDurationMid:bt,motionEaseInOut:Ht,paddingXS:zn,padding:en,colorSplit:fr,lineWidth:Kr,zIndexPopup:ii,borderRadiusLG:si,subMenuItemBorderRadius:uo,menuArrowSize:Qo,menuArrowOffset:_n,lineType:Vr,menuPanelMaskInset:qr,groupTitleLineHeight:Ui,groupTitleFontSize:xo}=xt;return[{"":{[`${sn}`]:Object.assign(Object.assign({},(0,dt.dF)()),{["&-hidden"]:{display:"none"}})},[`${sn}-submenu-hidden`]:{display:"none"}},{[sn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,dt.Wf)(xt)),(0,dt.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",[`${sn}-item`]:{flex:"none"}},[`${sn}-item, ${sn}-submenu, ${sn}-submenu-title`]:{borderRadius:xt.itemBorderRadius},[`${sn}-item-group-title`]:{padding:`${zn}px ${en}px`,fontSize:xo,lineHeight:Ui,transition:`all ${Tt}`},[`&-horizontal ${sn}-submenu`]:{transition:[`border-color ${Tt} ${Ht}`,`background ${Tt} ${Ht}`].join(",")},[`${sn}-submenu, ${sn}-submenu-inline`]:{transition:[`border-color ${Tt} ${Ht}`,`background ${Tt} ${Ht}`,`padding ${bt} ${Ht}`].join(",")},[`${sn}-submenu ${sn}-sub`]:{cursor:"initial",transition:[`background ${Tt} ${Ht}`,`padding ${Tt} ${Ht}`].join(",")},[`${sn}-title-content`]:{transition:`color ${Tt}`,[`> ${Wt}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${sn}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${sn}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:fr,borderStyle:Vr,borderWidth:0,borderTopWidth:Kr,marginBlock:Kr,padding:0,"&-dashed":{borderStyle:"dashed"}}}),me(xt)),{[`${sn}-item-group`]:{[`${sn}-item-group-list`]:{margin:0,padding:0,[`${sn}-item, ${sn}-submenu-title`]:{paddingInline:`${Ot*2}px ${en}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ii,borderRadius:si,boxShadow:"none",transformOrigin:"0 0",[`&${sn}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${qr}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:qr},[` +`,it=["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"],Xe={},ft;function Me(gi){var Mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,To=gi.getAttribute("id")||gi.getAttribute("data-reactid")||gi.getAttribute("name");if(Mr&&Xe[To])return Xe[To];var ms=window.getComputedStyle(gi),De=ms.getPropertyValue("box-sizing")||ms.getPropertyValue("-moz-box-sizing")||ms.getPropertyValue("-webkit-box-sizing"),Oo=parseFloat(ms.getPropertyValue("padding-bottom"))+parseFloat(ms.getPropertyValue("padding-top")),$i=parseFloat(ms.getPropertyValue("border-bottom-width"))+parseFloat(ms.getPropertyValue("border-top-width")),co=it.map(function(Ro){return"".concat(Ro,":").concat(ms.getPropertyValue(Ro))}).join(";"),Vr={sizingStyle:co,paddingSize:Oo,borderSize:$i,boxSizing:De};return Mr&&To&&(Xe[To]=Vr),Vr}function Ee(gi){var Mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,To=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ms=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ft||(ft=document.createElement("textarea"),ft.setAttribute("tab-index","-1"),ft.setAttribute("aria-hidden","true"),document.body.appendChild(ft)),gi.getAttribute("wrap")?ft.setAttribute("wrap",gi.getAttribute("wrap")):ft.removeAttribute("wrap");var De=Me(gi,Mr),Oo=De.paddingSize,$i=De.borderSize,co=De.boxSizing,Vr=De.sizingStyle;ft.setAttribute("style","".concat(Vr,";").concat(Se)),ft.value=gi.value||gi.placeholder||"";var Ro=void 0,Tn=void 0,nt,Ct=ft.scrollHeight;if(co==="border-box"?Ct+=$i:co==="content-box"&&(Ct-=Oo),To!==null||ms!==null){ft.value=" ";var Ht=ft.scrollHeight-Oo;To!==null&&(Ro=Ht*To,co==="border-box"&&(Ro=Ro+Oo+$i),Ct=Math.max(Ro,Ct)),ms!==null&&(Tn=Ht*ms,co==="border-box"&&(Tn=Tn+Oo+$i),nt=Ct>Tn?"":"hidden",Ct=Math.min(Tn,Ct))}var hn={height:Ct,overflowY:nt,resize:"none"};return Ro&&(hn.minHeight=Ro),Tn&&(hn.maxHeight=Tn),hn}var ze=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Pe=0,Re=1,je=2,Ce=v.forwardRef(function(gi,Mr){var To=gi,ms=To.prefixCls,De=To.onPressEnter,Oo=To.defaultValue,$i=To.value,co=To.autoSize,Vr=To.onResize,Ro=To.className,Tn=To.style,nt=To.disabled,Ct=To.onChange,Ht=To.onInternalAutoSize,hn=(0,p.Z)(To,ze),En=(0,he.Z)(Oo,{value:$i,postState:function(In){return In!=null?In:""}}),rn=(0,S.Z)(En,2),Jt=rn[0],Mt=rn[1],Qt=function(In){Mt(In.target.value),Ct==null||Ct(In)},Dn=v.useRef();v.useImperativeHandle(Mr,function(){return{textArea:Dn.current}});var sn=v.useMemo(function(){return co&&(0,fe.Z)(co)==="object"?[co.minRows,co.maxRows]:[]},[co]),wr=(0,S.Z)(sn,2),jr=wr[0],xi=wr[1],Pr=!!co,Hi=function(){try{if(document.activeElement===Dn.current){var In=Dn.current,vr=In.selectionStart,Ur=In.selectionEnd,Ao=In.scrollTop;Dn.current.setSelectionRange(vr,Ur),Dn.current.scrollTop=Ao}}catch(Yt){}},Io=v.useState(je),On=(0,S.Z)(Io,2),zr=On[0],qr=On[1],Wi=v.useState(),ir=(0,S.Z)(Wi,2),Jn=ir[0],$t=ir[1],Gt=function(){qr(Pe)};(0,Ae.Z)(function(){Pr&&Gt()},[$i,jr,xi,Pr]),(0,Ae.Z)(function(){if(zr===Pe)qr(Re);else if(zr===Re){var jt=Ee(Dn.current,!1,jr,xi);qr(je),$t(jt)}else Hi()},[zr]);var wn=v.useRef(),Zn=function(){xe.Z.cancel(wn.current)},_r=function(In){zr===je&&(Vr==null||Vr(In),co&&(Zn(),wn.current=(0,xe.Z)(function(){Gt()})))};v.useEffect(function(){return Zn},[]);var qn=Pr?Jn:null,$n=(0,V.Z)((0,V.Z)({},Tn),qn);return(zr===Pe||zr===Re)&&($n.overflowY="hidden",$n.overflowX="hidden"),v.createElement(be.Z,{onResize:_r,disabled:!(co||Vr)},v.createElement("textarea",(0,N.Z)({},hn,{ref:Dn,style:$n,className:x()(ms,Ro,(0,R.Z)({},"".concat(ms,"-disabled"),nt)),disabled:nt,value:Jt,onChange:Qt})))}),rt=Ce,Ne=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],Xt=v.forwardRef(function(gi,Mr){var To,ms,De=gi.defaultValue,Oo=gi.value,$i=gi.onFocus,co=gi.onBlur,Vr=gi.onChange,Ro=gi.allowClear,Tn=gi.maxLength,nt=gi.onCompositionStart,Ct=gi.onCompositionEnd,Ht=gi.suffix,hn=gi.prefixCls,En=hn===void 0?"rc-textarea":hn,rn=gi.classes,Jt=gi.showCount,Mt=gi.count,Qt=gi.className,Dn=gi.style,sn=gi.disabled,wr=gi.hidden,jr=gi.classNames,xi=gi.styles,Pr=gi.onResize,Hi=(0,p.Z)(gi,Ne),Io=(0,he.Z)(De,{value:Oo,defaultValue:De}),On=(0,S.Z)(Io,2),zr=On[0],qr=On[1],Wi=zr==null?"":String(zr),ir=v.useState(!1),Jn=(0,S.Z)(ir,2),$t=Jn[0],Gt=Jn[1],wn=v.useRef(!1),Zn=v.useState(null),_r=(0,S.Z)(Zn,2),qn=_r[0],$n=_r[1],jt=(0,v.useRef)(null),In=function(){var Oi;return(Oi=jt.current)===null||Oi===void 0?void 0:Oi.textArea},vr=function(){In().focus()};(0,v.useImperativeHandle)(Mr,function(){return{resizableTextArea:jt.current,focus:vr,blur:function(){In().blur()}}}),(0,v.useEffect)(function(){Gt(function(or){return!sn&&or})},[sn]);var Ur=v.useState(null),Ao=(0,S.Z)(Ur,2),Yt=Ao[0],xn=Ao[1];v.useEffect(function(){if(Yt){var or;(or=In()).setSelectionRange.apply(or,(0,k.Z)(Yt))}},[Yt]);var fr=(0,F.Z)(Mt,Jt),Nr=(To=fr.max)!==null&&To!==void 0?To:Tn,bi=Number(Nr)>0,Ei=fr.strategy(Wi),Yi=!!Nr&&Ei>Nr,di=function(Oi,Wa){var Sa=Wa;!wn.current&&fr.exceedFormatter&&fr.max&&fr.strategy(Wa)>fr.max&&(Sa=fr.exceedFormatter(Wa,{max:fr.max}),Wa!==Sa&&xn([In().selectionStart||0,In().selectionEnd||0])),qr(Sa),(0,K.rJ)(Oi.currentTarget,Oi,Vr,Sa)},Wr=function(Oi){wn.current=!0,nt==null||nt(Oi)},Ni=function(Oi){wn.current=!1,di(Oi,Oi.currentTarget.value),Ct==null||Ct(Oi)},kr=function(Oi){di(Oi,Oi.target.value)},Xr=function(Oi){var Wa=Hi.onPressEnter,Sa=Hi.onKeyDown;Oi.key==="Enter"&&Wa&&Wa(Oi),Sa==null||Sa(Oi)},yo=function(Oi){Gt(!0),$i==null||$i(Oi)},ls=function(Oi){Gt(!1),co==null||co(Oi)},Sr=function(Oi){qr(""),vr(),(0,K.rJ)(In(),Oi,Vr)},hs=Ht,ta;fr.show&&(fr.showFormatter?ta=fr.showFormatter({value:Wi,count:Ei,maxLength:Nr}):ta="".concat(Ei).concat(bi?" / ".concat(Nr):""),hs=v.createElement(v.Fragment,null,hs,v.createElement("span",{className:x()("".concat(En,"-data-count"),jr==null?void 0:jr.count),style:xi==null?void 0:xi.count},ta)));var fi=function(Oi){var Wa;Pr==null||Pr(Oi),(Wa=In())!==null&&Wa!==void 0&&Wa.style.height&&$n(!0)},Po=!Hi.autoSize&&!Jt&&!Ro,mo=v.createElement(T.Q,{value:Wi,allowClear:Ro,handleReset:Sr,suffix:hs,prefixCls:En,classes:{affixWrapper:x()(rn==null?void 0:rn.affixWrapper,(ms={},(0,R.Z)(ms,"".concat(En,"-show-count"),Jt),(0,R.Z)(ms,"".concat(En,"-textarea-allow-clear"),Ro),ms))},disabled:sn,focused:$t,className:x()(Qt,Yi&&"".concat(En,"-out-of-range")),style:(0,V.Z)((0,V.Z)({},Dn),qn&&!Po?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ta=="string"?ta:void 0}},hidden:wr,inputElement:v.createElement(rt,(0,N.Z)({},Hi,{onKeyDown:Xr,onChange:kr,onFocus:yo,onBlur:ls,onCompositionStart:Wr,onCompositionEnd:Ni,className:x()(jr==null?void 0:jr.textarea),style:(0,V.Z)((0,V.Z)({},xi==null?void 0:xi.textarea),{},{resize:Dn==null?void 0:Dn.resize}),disabled:sn,prefixCls:En,onResize:fi,ref:jt}))});return mo}),Ft=Xt,lt=Ft,Bt=_(3335),At=_(41203),an=_(57132),Tt=_(29212),Nn=_(74334),mn=_(7744),zn=_(83279),Kr=function(gi,Mr){var To={};for(var ms in gi)Object.prototype.hasOwnProperty.call(gi,ms)&&Mr.indexOf(ms)<0&&(To[ms]=gi[ms]);if(gi!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ms=Object.getOwnPropertySymbols(gi);De{var To;const{prefixCls:ms,bordered:De=!0,size:Oo,disabled:$i,status:co,allowClear:Vr,classNames:Ro,rootClassName:Tn,className:nt}=gi,Ct=Kr(gi,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:Ht,direction:hn}=v.useContext(At.E_),En=(0,Tt.Z)(Oo),rn=v.useContext(an.Z),Jt=$i!=null?$i:rn,{status:Mt,hasFeedback:Qt,feedbackIcon:Dn}=v.useContext(Nn.aM),sn=(0,Bt.F)(Mt,co),wr=v.useRef(null);v.useImperativeHandle(Mr,()=>{var Io;return{resizableTextArea:(Io=wr.current)===null||Io===void 0?void 0:Io.resizableTextArea,focus:On=>{var zr,qr;(0,mn.n)((qr=(zr=wr.current)===null||zr===void 0?void 0:zr.resizableTextArea)===null||qr===void 0?void 0:qr.textArea,On)},blur:()=>{var On;return(On=wr.current)===null||On===void 0?void 0:On.blur()}}});const jr=Ht("input",ms);let xi;typeof Vr=="object"&&(Vr!=null&&Vr.clearIcon)?xi=Vr:Vr&&(xi={clearIcon:v.createElement(M.Z,null)});const[Pr,Hi]=(0,zn.ZP)(jr);return Pr(v.createElement(lt,Object.assign({},Ct,{disabled:Jt,allowClear:xi,className:x()(nt,Tn),classes:{affixWrapper:x()(`${jr}-textarea-affix-wrapper`,{[`${jr}-affix-wrapper-rtl`]:hn==="rtl",[`${jr}-affix-wrapper-borderless`]:!De,[`${jr}-affix-wrapper-sm`]:En==="small",[`${jr}-affix-wrapper-lg`]:En==="large",[`${jr}-textarea-show-count`]:gi.showCount||((To=gi.count)===null||To===void 0?void 0:To.show)},(0,Bt.Z)(`${jr}-affix-wrapper`,sn),Hi)},classNames:Object.assign(Object.assign({},Ro),{textarea:x()({[`${jr}-borderless`]:!De,[`${jr}-sm`]:En==="small",[`${jr}-lg`]:En==="large"},(0,Bt.Z)(jr,sn),Hi,Ro==null?void 0:Ro.textarea)}),prefixCls:jr,suffix:Qt&&v.createElement("span",{className:`${jr}-textarea-suffix`},Dn),ref:wr})))})},35965:function(mt,q,_){"use strict";_.d(q,{Z:function(){return M}});var v=_(77617);function M(C,x){const N=(0,v.useRef)([]),V=()=>{N.current.push(setTimeout(()=>{var R,k,S,p;!((R=C.current)===null||R===void 0)&&R.input&&((k=C.current)===null||k===void 0?void 0:k.input.getAttribute("type"))==="password"&&(!((S=C.current)===null||S===void 0)&&S.input.hasAttribute("value"))&&((p=C.current)===null||p===void 0||p.input.removeAttribute("value"))}))};return(0,v.useEffect)(()=>(x&&V(),()=>N.current.forEach(R=>{R&&clearTimeout(R)})),[]),V}},15926:function(mt,q,_){"use strict";_.d(q,{Z:function(){return Bt}});var v=_(77617),M=_(12124),C=_.n(M),x=_(41203),N=_(74334),V=_(83279),k=At=>{const{getPrefixCls:an,direction:Tt}=(0,v.useContext)(x.E_),{prefixCls:Nn,className:mn}=At,zn=an("input-group",Nn),Kr=an("input"),[Ui,go]=(0,V.ZP)(Kr),gi=C()(zn,{[`${zn}-lg`]:At.size==="large",[`${zn}-sm`]:At.size==="small",[`${zn}-compact`]:At.compact,[`${zn}-rtl`]:Tt==="rtl"},go,mn),Mr=(0,v.useContext)(N.aM),To=(0,v.useMemo)(()=>Object.assign(Object.assign({},Mr),{isFormItemInput:!1}),[Mr]);return Ui(v.createElement("span",{className:gi,style:At.style,onMouseEnter:At.onMouseEnter,onMouseLeave:At.onMouseLeave,onFocus:At.onFocus,onBlur:At.onBlur},v.createElement(N.aM.Provider,{value:To},At.children)))},S=_(7744),p=_(26508),T={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"},F=T,K=_(91851),he=function(an,Tt){return v.createElement(K.Z,(0,p.Z)({},an,{ref:Tt,icon:F}))},fe=v.forwardRef(he),be=_(15997),Ae=_(39029),xe=_(9681),Se=_(35965),it=function(At,an){var Tt={};for(var Nn in At)Object.prototype.hasOwnProperty.call(At,Nn)&&an.indexOf(Nn)<0&&(Tt[Nn]=At[Nn]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mn=0,Nn=Object.getOwnPropertySymbols(At);mnAt?v.createElement(be.Z,null):v.createElement(fe,null),ft={click:"onClick",hover:"onMouseOver"};var Ee=v.forwardRef((At,an)=>{const{visibilityToggle:Tt=!0}=At,Nn=typeof Tt=="object"&&Tt.visible!==void 0,[mn,zn]=(0,v.useState)(()=>Nn?Tt.visible:!1),Kr=(0,v.useRef)(null);v.useEffect(()=>{Nn&&zn(Tt.visible)},[Nn,Tt]);const Ui=(0,Se.Z)(Kr),go=()=>{const{disabled:Ct}=At;Ct||(mn&&Ui(),zn(Ht=>{var hn;const En=!Ht;return typeof Tt=="object"&&((hn=Tt.onVisibleChange)===null||hn===void 0||hn.call(Tt,En)),En}))},gi=Ct=>{const{action:Ht="click",iconRender:hn=Xe}=At,En=ft[Ht]||"",rn=hn(mn),Jt={[En]:go,className:`${Ct}-icon`,key:"passwordIcon",onMouseDown:Mt=>{Mt.preventDefault()},onMouseUp:Mt=>{Mt.preventDefault()}};return v.cloneElement(v.isValidElement(rn)?rn:v.createElement("span",null,rn),Jt)},{className:Mr,prefixCls:To,inputPrefixCls:ms,size:De}=At,Oo=it(At,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$i}=v.useContext(x.E_),co=$i("input",ms),Vr=$i("input-password",To),Ro=Tt&&gi(Vr),Tn=C()(Vr,Mr,{[`${Vr}-${De}`]:!!De}),nt=Object.assign(Object.assign({},(0,Ae.Z)(Oo,["suffix","iconRender","visibilityToggle"])),{type:mn?"text":"password",className:Tn,prefixCls:co,suffix:Ro});return De&&(nt.size=De),v.createElement(S.Z,Object.assign({ref:(0,xe.sQ)(an,Kr)},nt))}),ze=_(46820),Pe=_(37628),Re=_(34745),je=_(29212),Ce=_(43906),rt=function(At,an){var Tt={};for(var Nn in At)Object.prototype.hasOwnProperty.call(At,Nn)&&an.indexOf(Nn)<0&&(Tt[Nn]=At[Nn]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mn=0,Nn=Object.getOwnPropertySymbols(At);mn{const{prefixCls:Tt,inputPrefixCls:Nn,className:mn,size:zn,suffix:Kr,enterButton:Ui=!1,addonAfter:go,loading:gi,disabled:Mr,onSearch:To,onChange:ms,onCompositionStart:De,onCompositionEnd:Oo}=At,$i=rt(At,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:co,direction:Vr}=v.useContext(x.E_),Ro=v.useRef(!1),Tn=co("input-search",Tt),nt=co("input",Nn),{compactSize:Ct}=(0,Ce.ri)(Tn,Vr),Ht=(0,je.Z)(Io=>{var On;return(On=zn!=null?zn:Ct)!==null&&On!==void 0?On:Io}),hn=v.useRef(null),En=Io=>{Io&&Io.target&&Io.type==="click"&&To&&To(Io.target.value,Io,{source:"clear"}),ms&&ms(Io)},rn=Io=>{var On;document.activeElement===((On=hn.current)===null||On===void 0?void 0:On.input)&&Io.preventDefault()},Jt=Io=>{var On,zr;To&&To((zr=(On=hn.current)===null||On===void 0?void 0:On.input)===null||zr===void 0?void 0:zr.value,Io,{source:"input"})},Mt=Io=>{Ro.current||gi||Jt(Io)},Qt=typeof Ui=="boolean"?v.createElement(ze.Z,null):null,Dn=`${Tn}-button`;let sn;const wr=Ui||{},jr=wr.type&&wr.type.__ANT_BUTTON===!0;jr||wr.type==="button"?sn=(0,Pe.Tm)(wr,Object.assign({onMouseDown:rn,onClick:Io=>{var On,zr;(zr=(On=wr==null?void 0:wr.props)===null||On===void 0?void 0:On.onClick)===null||zr===void 0||zr.call(On,Io),Jt(Io)},key:"enterButton"},jr?{className:Dn,size:Ht}:{})):sn=v.createElement(Re.ZP,{className:Dn,type:Ui?"primary":void 0,size:Ht,disabled:Mr,key:"enterButton",onMouseDown:rn,onClick:Jt,loading:gi,icon:Qt},Ui),go&&(sn=[sn,(0,Pe.Tm)(go,{key:"addonAfter"})]);const xi=C()(Tn,{[`${Tn}-rtl`]:Vr==="rtl",[`${Tn}-${Ht}`]:!!Ht,[`${Tn}-with-button`]:!!Ui},mn),Pr=Io=>{Ro.current=!0,De==null||De(Io)},Hi=Io=>{Ro.current=!1,Oo==null||Oo(Io)};return v.createElement(S.Z,Object.assign({ref:(0,xe.sQ)(hn,an),onPressEnter:Mt},$i,{size:Ht,onCompositionStart:Pr,onCompositionEnd:Hi,prefixCls:nt,addonAfter:sn,suffix:Kr,onChange:En,className:xi,disabled:Mr}))}),Ft=_(60838);const lt=S.Z;lt.Group=k,lt.Search=Xt,lt.TextArea=Ft.Z,lt.Password=Ee;var Bt=lt},83279:function(mt,q,_){"use strict";_.d(q,{TM:function(){return ft},Xy:function(){return k},bi:function(){return T},e5:function(){return Xe},ik:function(){return F},nz:function(){return N},s7:function(){return K},x0:function(){return p}});var v=_(21348),M=_(82248),C=_(43040),x=_(93154);const N=Me=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Me,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),V=Me=>({borderColor:Me.hoverBorderColor,backgroundColor:Me.hoverBg}),R=Me=>({borderColor:Me.activeBorderColor,boxShadow:Me.activeShadow,outline:0,backgroundColor:Me.activeBg}),k=Me=>({color:Me.colorTextDisabled,backgroundColor:Me.colorBgContainerDisabled,borderColor:Me.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},V((0,C.TS)(Me,{hoverBorderColor:Me.colorBorder,hoverBg:Me.colorBgContainerDisabled})))}),S=Me=>{const{paddingBlockLG:Ee,fontSizeLG:ze,lineHeightLG:Pe,borderRadiusLG:Re,paddingInlineLG:je}=Me;return{padding:`${Ee}px ${je}px`,fontSize:ze,lineHeight:Pe,borderRadius:Re}},p=Me=>({padding:`${Me.paddingBlockSM}px ${Me.paddingInlineSM}px`,borderRadius:Me.borderRadiusSM}),T=(Me,Ee)=>{const{componentCls:ze,colorError:Pe,colorWarning:Re,errorActiveShadow:je,warningActiveShadow:Ce,colorErrorBorderHover:rt,colorWarningBorderHover:Ne}=Me;return{[`&-status-error:not(${Ee}-disabled):not(${Ee}-borderless)${Ee}`]:{borderColor:Pe,"&:hover":{borderColor:rt},"&:focus, &:focus-within":Object.assign({},R((0,C.TS)(Me,{activeBorderColor:Pe,activeShadow:je}))),[`${ze}-prefix, ${ze}-suffix`]:{color:Pe}},[`&-status-warning:not(${Ee}-disabled):not(${Ee}-borderless)${Ee}`]:{borderColor:Re,"&:hover":{borderColor:Ne},"&:focus, &:focus-within":Object.assign({},R((0,C.TS)(Me,{activeBorderColor:Re,activeShadow:Ce}))),[`${ze}-prefix, ${ze}-suffix`]:{color:Re}}}},F=Me=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Me.paddingBlock}px ${Me.paddingInline}px`,color:Me.colorText,fontSize:Me.fontSize,lineHeight:Me.lineHeight,backgroundColor:Me.colorBgContainer,backgroundImage:"none",borderWidth:Me.lineWidth,borderStyle:Me.lineType,borderColor:Me.colorBorder,borderRadius:Me.borderRadius,transition:`all ${Me.motionDurationMid}`},N(Me.colorTextPlaceholder)),{"&:hover":Object.assign({},V(Me)),"&:focus, &:focus-within":Object.assign({},R(Me)),"&-disabled, &[disabled]":Object.assign({},k(Me)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Me.controlHeight,lineHeight:Me.lineHeight,verticalAlign:"bottom",transition:`all ${Me.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},S(Me)),"&-sm":Object.assign({},p(Me)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),K=Me=>{const{componentCls:Ee,antCls:ze}=Me;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:Me.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Ee}, &-lg > ${Ee}-group-addon`]:Object.assign({},S(Me)),[`&-sm ${Ee}, &-sm > ${Ee}-group-addon`]:Object.assign({},p(Me)),[`&-lg ${ze}-select-single ${ze}-select-selector`]:{height:Me.controlHeightLG},[`&-sm ${ze}-select-single ${ze}-select-selector`]:{height:Me.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 ${Me.paddingInline}px`,color:Me.colorText,fontWeight:"normal",fontSize:Me.fontSize,textAlign:"center",backgroundColor:Me.addonBg,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,borderRadius:Me.borderRadius,transition:`all ${Me.motionDurationSlow}`,lineHeight:1,[`${ze}-select`]:{margin:`-${Me.paddingBlock+1}px -${Me.paddingInline}px`,[`&${ze}-select-single:not(${ze}-select-customize-input):not(${ze}-pagination-size-changer)`]:{[`${ze}-select-selector`]:{backgroundColor:"inherit",border:`${Me.lineWidth}px ${Me.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${ze}-select-selector`]:{color:Me.colorPrimary}}},[`${ze}-cascader-picker`]:{margin:`-9px -${Me.paddingInline}px`,backgroundColor:"transparent",[`${ze}-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,[`${ze}-select ${ze}-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,[`${ze}-select ${ze}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Ee}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ee}-search &`]:{borderStartStartRadius:Me.borderRadius,borderEndStartRadius:Me.borderRadius}},[`&:not(:first-child), ${Ee}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Ee}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,v.dF)()),{[`${Ee}-group-addon, ${Ee}-group-wrap, > ${Ee}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Me.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${Ee}-affix-wrapper, + & > ${Ee}-number-affix-wrapper, + & > ${ze}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Me.lineWidth,borderInlineEndWidth:Me.lineWidth},[`${Ee}`]:{float:"none"},[`& > ${ze}-select > ${ze}-select-selector, + & > ${ze}-select-auto-complete ${Ee}, + & > ${ze}-cascader-picker ${Ee}, + & > ${Ee}-group-wrapper ${Ee}`]:{borderInlineEndWidth:Me.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${ze}-select-focused`]:{zIndex:1},[`& > ${ze}-select > ${ze}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${ze}-select:first-child > ${ze}-select-selector, + & > ${ze}-select-auto-complete:first-child ${Ee}, + & > ${ze}-cascader-picker:first-child ${Ee}`]:{borderStartStartRadius:Me.borderRadius,borderEndStartRadius:Me.borderRadius},[`& > *:last-child, + & > ${ze}-select:last-child > ${ze}-select-selector, + & > ${ze}-cascader-picker:last-child ${Ee}, + & > ${ze}-cascader-picker-focused:last-child ${Ee}`]:{borderInlineEndWidth:Me.lineWidth,borderStartEndRadius:Me.borderRadius,borderEndEndRadius:Me.borderRadius},[`& > ${ze}-select-auto-complete ${Ee}`]:{verticalAlign:"top"},[`${Ee}-group-wrapper + ${Ee}-group-wrapper`]:{marginInlineStart:-Me.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:Me.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Me.borderRadius}}}})}},he=Me=>{const{componentCls:Ee,controlHeightSM:ze,lineWidth:Pe}=Me,Re=16,je=(ze-Pe*2-Re)/2;return{[Ee]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.Wf)(Me)),F(Me)),T(Me,Ee)),{'&[type="color"]':{height:Me.controlHeight,[`&${Ee}-lg`]:{height:Me.controlHeightLG},[`&${Ee}-sm`]:{height:ze,paddingTop:je,paddingBottom:je}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},fe=Me=>{const{componentCls:Ee}=Me;return{[`${Ee}-clear-icon`]:{margin:0,color:Me.colorTextQuaternary,fontSize:Me.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Me.motionDurationSlow}`,"&:hover":{color:Me.colorTextTertiary},"&:active":{color:Me.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Me.inputAffixPadding}px`}}}},be=Me=>{const{componentCls:Ee,inputAffixPadding:ze,colorTextDescription:Pe,motionDurationSlow:Re,colorIcon:je,colorIconHover:Ce,iconCls:rt}=Me;return{[`${Ee}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},F(Me)),{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:Me.paddingXS}},"&-show-count-suffix":{color:Pe},"&-show-count-has-suffix":{marginInlineEnd:Me.paddingXXS},"&-prefix":{marginInlineEnd:ze},"&-suffix":{marginInlineStart:ze}}}),fe(Me)),{[`${rt}${Ee}-password-icon`]:{color:je,cursor:"pointer",transition:`all ${Re}`,"&:hover":{color:Ce}}}),T(Me,`${Ee}-affix-wrapper`))}},Ae=Me=>{const{componentCls:Ee,colorError:ze,colorWarning:Pe,borderRadiusLG:Re,borderRadiusSM:je}=Me;return{[`${Ee}-group`]:Object.assign(Object.assign(Object.assign({},(0,v.Wf)(Me)),K(Me)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Ee}-group-addon`]:{borderRadius:Re,fontSize:Me.fontSizeLG}},"&-sm":{[`${Ee}-group-addon`]:{borderRadius:je}},"&-status-error":{[`${Ee}-group-addon`]:{color:ze,borderColor:ze}},"&-status-warning":{[`${Ee}-group-addon`]:{color:Pe,borderColor:Pe}},"&-disabled":{[`${Ee}-group-addon`]:Object.assign({},k(Me))},[`&: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}}}})}},xe=Me=>{const{componentCls:Ee,antCls:ze}=Me,Pe=`${Ee}-search`;return{[Pe]:{[`${Ee}`]:{"&:hover, &:focus":{borderColor:Me.colorPrimaryHover,[`+ ${Ee}-group-addon ${Pe}-button:not(${ze}-btn-primary)`]:{borderInlineStartColor:Me.colorPrimaryHover}}},[`${Ee}-affix-wrapper`]:{borderRadius:0},[`${Ee}-lg`]:{lineHeight:Me.lineHeightLG-2e-4},[`> ${Ee}-group`]:{[`> ${Ee}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Pe}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Me.borderRadius,borderEndEndRadius:Me.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Pe}-button:not(${ze}-btn-primary)`]:{color:Me.colorTextDescription,"&:hover":{color:Me.colorPrimaryHover},"&:active":{color:Me.colorPrimaryActive},[`&${ze}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Pe}-button`]:{height:Me.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Pe}-button`]:{height:Me.controlHeightLG},[`&-small ${Pe}-button`]:{height:Me.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Ee}-compact-item`]:{[`&:not(${Ee}-compact-last-item)`]:{[`${Ee}-group-addon`]:{[`${Ee}-search-button`]:{marginInlineEnd:-Me.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}}}}},Se=Me=>{const{componentCls:Ee,paddingLG:ze}=Me,Pe=`${Ee}-textarea`;return{[Pe]:{position:"relative","&-show-count":{[`> ${Ee}`]:{height:"100%"},[`${Ee}-data-count`]:{position:"absolute",bottom:-Me.fontSize*Me.lineHeight,insetInlineEnd:0,color:Me.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Ee}`]:{paddingInlineEnd:ze}},[`&-affix-wrapper${Pe}-has-feedback`]:{[`${Ee}`]:{paddingInlineEnd:ze}},[`&-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:Me.paddingXS,insetBlockStart:Me.paddingXS},[`${Pe}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Me.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},it=Me=>{const{componentCls:Ee}=Me;return{[`${Ee}-out-of-range`]:{[`&, & input, & textarea, ${Ee}-show-count-suffix, ${Ee}-data-count`]:{color:Me.colorError}}}};function Xe(Me){return(0,C.TS)(Me,{inputAffixPadding:Me.paddingXXS})}const ft=Me=>{const{controlHeight:Ee,fontSize:ze,lineHeight:Pe,lineWidth:Re,controlHeightSM:je,controlHeightLG:Ce,fontSizeLG:rt,lineHeightLG:Ne,paddingSM:Xt,controlPaddingHorizontalSM:Ft,controlPaddingHorizontal:lt,colorFillAlter:Bt,colorPrimaryHover:At,colorPrimary:an,controlOutlineWidth:Tt,controlOutline:Nn,colorErrorOutline:mn,colorWarningOutline:zn}=Me;return{paddingBlock:Math.max(Math.round((Ee-ze*Pe)/2*10)/10-Re,0),paddingBlockSM:Math.max(Math.round((je-ze*Pe)/2*10)/10-Re,0),paddingBlockLG:Math.ceil((Ce-rt*Ne)/2*10)/10-Re,paddingInline:Xt-Re,paddingInlineSM:Ft-Re,paddingInlineLG:lt-Re,addonBg:Bt,activeBorderColor:an,hoverBorderColor:At,activeShadow:`0 0 0 ${Tt}px ${Nn}`,errorActiveShadow:`0 0 0 ${Tt}px ${mn}`,warningActiveShadow:`0 0 0 ${Tt}px ${zn}`,hoverBg:"",activeBg:""}};q.ZP=(0,x.Z)("Input",Me=>{const Ee=(0,C.TS)(Me,Xe(Me));return[he(Ee),Se(Ee),be(Ee),Ae(Ee),xe(Ee),it(Ee),(0,M.c)(Ee)]},ft)},48851:function(mt,q,_){"use strict";var v=_(77617);const M=(0,v.createContext)(void 0);q.Z=M},47462:function(mt,q,_){"use strict";_.d(q,{Z:function(){return T}});var v=_(67025),M={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"},C=M,N={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},R={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"]},C),timePickerLocale:Object.assign({},N)},k=R;const S="${label} is not a valid ${type}";var T={locale:"en",Pagination:v.Z,DatePicker:R,TimePicker:N,Calendar:k,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:S,method:S,array:S,object:S,number:S,date:S,boolean:S,integer:S,float:S,regexp:S,email:S,url:S,hex:S},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"}}},92584:function(mt,q,_){"use strict";var v=_(77617),M=_(48851),C=_(47462);const x=(N,V)=>{const R=v.useContext(M.Z),k=v.useMemo(()=>{var p;const T=V||C.Z[N],F=(p=R==null?void 0:R[N])!==null&&p!==void 0?p:{};return Object.assign(Object.assign({},typeof T=="function"?T():T),F||{})},[N,V,R]),S=v.useMemo(()=>{const p=R==null?void 0:R.locale;return R!=null&&R.exist&&!p?C.Z.locale:p},[R]);return[k,S]};q.Z=x},12781:function(mt,q,_){"use strict";_.d(q,{J:function(){return V}});var v=_(77617),M=_(95470),C=_(43906),x=function(R,k){var S={};for(var p in R)Object.prototype.hasOwnProperty.call(R,p)&&k.indexOf(p)<0&&(S[p]=R[p]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var T=0,p=Object.getOwnPropertySymbols(R);T{const{children:S}=R,p=x(R,["children"]),T=v.useContext(N),F=v.useMemo(()=>Object.assign(Object.assign({},T),p),[T,p.prefixCls,p.mode,p.selectable]),K=(0,M.t4)(S),he=(0,M.x1)(k,K?S.ref:null);return v.createElement(N.Provider,{value:F},v.createElement(C.BR,null,K?v.cloneElement(S,{ref:he}):S))});q.Z=N},80235:function(mt,q,_){"use strict";_.d(q,{Z:function(){return Ht}});var v=_(51917),M=_(77617),C=_(12124),x=_.n(C),N=function(hn,En){var rn={};for(var Jt in hn)Object.prototype.hasOwnProperty.call(hn,Jt)&&En.indexOf(Jt)<0&&(rn[Jt]=hn[Jt]);if(hn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Jt=Object.getOwnPropertySymbols(hn);Mt{let hn=0;return function(){let En=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return hn+=1,`${En}${hn}`}})(),S=null;var p=null,T=_(41203),F=function(hn,En){var rn={};for(var Jt in hn)Object.prototype.hasOwnProperty.call(hn,Jt)&&En.indexOf(Jt)<0&&(rn[Jt]=hn[Jt]);if(hn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Jt=Object.getOwnPropertySymbols(hn);Mt{const{prefixCls:En,className:rn,dashed:Jt}=hn,Mt=F(hn,["prefixCls","className","dashed"]),{getPrefixCls:Qt}=M.useContext(T.E_),Dn=Qt("menu",En),sn=x()({[`${Dn}-item-divider-dashed`]:!!Jt},rn);return M.createElement(v.iz,Object.assign({className:sn},Mt))},fe=_(38930),be=_(39029),Ae=_(19189),xe=_(37628),it=(0,M.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ft=hn=>{var En;const{className:rn,children:Jt,icon:Mt,title:Qt,danger:Dn}=hn,{prefixCls:sn,firstLevel:wr,direction:jr,disableMenuItemTitleTooltip:xi,inlineCollapsed:Pr}=M.useContext(it),Hi=ir=>{const Jn=M.createElement("span",{className:`${sn}-title-content`},Jt);return(!Mt||(0,xe.l$)(Jt)&&Jt.type==="span")&&Jt&&ir&&wr&&typeof Jt=="string"?M.createElement("div",{className:`${sn}-inline-collapsed-noicon`},Jt.charAt(0)):Jn},{siderCollapsed:Io}=M.useContext(R);let On=Qt;typeof Qt=="undefined"?On=wr?Jt:"":Qt===!1&&(On="");const zr={title:On};!Io&&!Pr&&(zr.title=null,zr.open=!1);const qr=(0,fe.Z)(Jt).length;let Wi=M.createElement(v.ck,Object.assign({},(0,be.Z)(hn,["title","icon","danger"]),{className:x()({[`${sn}-item-danger`]:Dn,[`${sn}-item-only-child`]:(Mt?qr+1:qr)===1},rn),title:typeof Qt=="string"?Qt:void 0}),(0,xe.Tm)(Mt,{className:x()((0,xe.l$)(Mt)?(En=Mt.props)===null||En===void 0?void 0:En.className:"",`${sn}-item-icon`)}),Hi(Pr));return xi||(Wi=M.createElement(Ae.Z,Object.assign({},zr,{placement:jr==="rtl"?"left":"right",overlayClassName:`${sn}-inline-collapsed-tooltip`}),Wi)),Wi},Me=_(8799),ze=hn=>{var En;const{popupClassName:rn,icon:Jt,title:Mt,theme:Qt}=hn,Dn=M.useContext(it),{prefixCls:sn,inlineCollapsed:wr,theme:jr}=Dn,xi=(0,v.Xl)();let Pr;if(!Jt)Pr=wr&&!xi.length&&Mt&&typeof Mt=="string"?M.createElement("div",{className:`${sn}-inline-collapsed-noicon`},Mt.charAt(0)):M.createElement("span",{className:`${sn}-title-content`},Mt);else{const On=(0,xe.l$)(Mt)&&Mt.type==="span";Pr=M.createElement(M.Fragment,null,(0,xe.Tm)(Jt,{className:x()((0,xe.l$)(Jt)?(En=Jt.props)===null||En===void 0?void 0:En.className:"",`${sn}-item-icon`)}),On?Mt:M.createElement("span",{className:`${sn}-title-content`},Mt))}const Hi=M.useMemo(()=>Object.assign(Object.assign({},Dn),{firstLevel:!1}),[Dn]),[Io]=(0,Me.Cn)("Menu");return M.createElement(it.Provider,{value:Hi},M.createElement(v.Wd,Object.assign({},(0,be.Z)(hn,["icon"]),{title:Pr,popupClassName:x()(sn,rn,`${sn}-${Qt||jr}`),popupStyle:{zIndex:Io}})))},Pe=_(93319),Re=_(95470),je=_(8418),Ce=function(hn,En){var rn={};for(var Jt in hn)Object.prototype.hasOwnProperty.call(hn,Jt)&&En.indexOf(Jt)<0&&(rn[Jt]=hn[Jt]);if(hn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Jt=Object.getOwnPropertySymbols(hn);Mt{if(En&&typeof En=="object"){const Jt=En,{label:Mt,children:Qt,key:Dn,type:sn}=Jt,wr=Ce(Jt,["label","children","key","type"]),jr=Dn!=null?Dn:`tmp-${rn}`;return Qt||sn==="group"?sn==="group"?M.createElement(v.BW,Object.assign({key:jr},wr,{title:Mt}),rt(Qt)):M.createElement(ze,Object.assign({key:jr},wr,{title:Mt}),rt(Qt)):sn==="divider"?M.createElement(he,Object.assign({key:jr},wr)):M.createElement(ft,Object.assign({key:jr},wr),Mt)}return null}).filter(En=>En)}function Ne(hn){return M.useMemo(()=>hn&&rt(hn),[hn])}var Xt=_(12781),Ft=_(64993),lt=_(21348),Bt=_(63797),At=_(81437),an=_(53679),Tt=_(93154),Nn=_(43040),zn=hn=>{const{componentCls:En,motionDurationSlow:rn,horizontalLineHeight:Jt,colorSplit:Mt,lineWidth:Qt,lineType:Dn,itemPaddingInline:sn}=hn;return{[`${En}-horizontal`]:{lineHeight:Jt,border:0,borderBottom:`${Qt}px ${Dn} ${Mt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${En}-item, ${En}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:sn},[`> ${En}-item:hover, + > ${En}-item-active, + > ${En}-submenu ${En}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${En}-item, ${En}-submenu-title`]:{transition:[`border-color ${rn}`,`background ${rn}`].join(",")},[`${En}-submenu-arrow`]:{display:"none"}}}},Ui=hn=>{let{componentCls:En,menuArrowOffset:rn}=hn;return{[`${En}-rtl`]:{direction:"rtl"},[`${En}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${En}-rtl${En}-vertical, + ${En}-submenu-rtl ${En}-vertical`]:{[`${En}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${rn})`},"&::after":{transform:`rotate(45deg) translateY(${rn})`}}}}};const go=hn=>Object.assign({},(0,lt.oN)(hn));var Mr=(hn,En)=>{const{componentCls:rn,itemColor:Jt,itemSelectedColor:Mt,groupTitleColor:Qt,itemBg:Dn,subMenuItemBg:sn,itemSelectedBg:wr,activeBarHeight:jr,activeBarWidth:xi,activeBarBorderWidth:Pr,motionDurationSlow:Hi,motionEaseInOut:Io,motionEaseOut:On,itemPaddingInline:zr,motionDurationMid:qr,itemHoverColor:Wi,lineType:ir,colorSplit:Jn,itemDisabledColor:$t,dangerItemColor:Gt,dangerItemHoverColor:wn,dangerItemSelectedColor:Zn,dangerItemActiveBg:_r,dangerItemSelectedBg:qn,itemHoverBg:$n,itemActiveBg:jt,menuSubMenuBg:In,horizontalItemSelectedColor:vr,horizontalItemSelectedBg:Ur,horizontalItemBorderRadius:Ao,horizontalItemHoverBg:Yt,popupBg:xn}=hn;return{[`${rn}-${En}, ${rn}-${En} > ${rn}`]:{color:Jt,background:Dn,[`&${rn}-root:focus-visible`]:Object.assign({},go(hn)),[`${rn}-item-group-title`]:{color:Qt},[`${rn}-submenu-selected`]:{[`> ${rn}-submenu-title`]:{color:Mt}},[`${rn}-item-disabled, ${rn}-submenu-disabled`]:{color:`${$t} !important`},[`${rn}-item:not(${rn}-item-selected):not(${rn}-submenu-selected)`]:{[`&:hover, > ${rn}-submenu-title:hover`]:{color:Wi}},[`&:not(${rn}-horizontal)`]:{[`${rn}-item:not(${rn}-item-selected)`]:{"&:hover":{backgroundColor:$n},"&:active":{backgroundColor:jt}},[`${rn}-submenu-title`]:{"&:hover":{backgroundColor:$n},"&:active":{backgroundColor:jt}}},[`${rn}-item-danger`]:{color:Gt,[`&${rn}-item:hover`]:{[`&:not(${rn}-item-selected):not(${rn}-submenu-selected)`]:{color:wn}},[`&${rn}-item:active`]:{background:_r}},[`${rn}-item a`]:{"&, &:hover":{color:"inherit"}},[`${rn}-item-selected`]:{color:Mt,[`&${rn}-item-danger`]:{color:Zn},["a, a:hover"]:{color:"inherit"}},[`& ${rn}-item-selected`]:{backgroundColor:wr,[`&${rn}-item-danger`]:{backgroundColor:qn}},[`${rn}-item, ${rn}-submenu-title`]:{[`&:not(${rn}-item-disabled):focus-visible`]:Object.assign({},go(hn))},[`&${rn}-submenu > ${rn}`]:{backgroundColor:In},[`&${rn}-popup > ${rn}`]:{backgroundColor:xn},[`&${rn}-horizontal`]:Object.assign(Object.assign({},En==="dark"?{borderBottom:0}:{}),{[`> ${rn}-item, > ${rn}-submenu`]:{top:Pr,marginTop:-Pr,marginBottom:0,borderRadius:Ao,"&::after":{position:"absolute",insetInline:zr,bottom:0,borderBottom:`${jr}px solid transparent`,transition:`border-color ${Hi} ${Io}`,content:'""'},["&:hover, &-active, &-open"]:{background:Yt,"&::after":{borderBottomWidth:jr,borderBottomColor:vr}},["&-selected"]:{color:vr,backgroundColor:Ur,"&:hover":{backgroundColor:Ur},"&::after":{borderBottomWidth:jr,borderBottomColor:vr}}}}),[`&${rn}-root`]:{[`&${rn}-inline, &${rn}-vertical`]:{borderInlineEnd:`${Pr}px ${ir} ${Jn}`}},[`&${rn}-inline`]:{[`${rn}-sub${rn}-inline`]:{background:sn},[`${rn}-item, ${rn}-submenu-title`]:Pr&&xi?{width:`calc(100% + ${Pr}px)`}:{},[`${rn}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${xi}px solid ${Mt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${qr} ${On}`,`opacity ${qr} ${On}`].join(","),content:'""'},[`&${rn}-item-danger`]:{"&::after":{borderInlineEndColor:Zn}}},[`${rn}-selected, ${rn}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${qr} ${Io}`,`opacity ${qr} ${Io}`].join(",")}}}}}};const To=hn=>{const{componentCls:En,itemHeight:rn,itemMarginInline:Jt,padding:Mt,menuArrowSize:Qt,marginXS:Dn,itemMarginBlock:sn}=hn,wr=Mt+Qt+Dn;return{[`${En}-item`]:{position:"relative",overflow:"hidden"},[`${En}-item, ${En}-submenu-title`]:{height:rn,lineHeight:`${rn}px`,paddingInline:Mt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Jt,marginBlock:sn,width:`calc(100% - ${Jt*2}px)`},[`> ${En}-item, + > ${En}-submenu > ${En}-submenu-title`]:{height:rn,lineHeight:`${rn}px`},[`${En}-item-group-list ${En}-submenu-title, + ${En}-submenu-title`]:{paddingInlineEnd:wr}}};var De=hn=>{const{componentCls:En,iconCls:rn,itemHeight:Jt,colorTextLightSolid:Mt,dropdownWidth:Qt,controlHeightLG:Dn,motionDurationMid:sn,motionEaseOut:wr,paddingXL:jr,itemMarginInline:xi,fontSizeLG:Pr,motionDurationSlow:Hi,paddingXS:Io,boxShadowSecondary:On,collapsedWidth:zr,collapsedIconSize:qr}=hn,Wi={height:Jt,lineHeight:`${Jt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[En]:{["&-inline, &-vertical"]:Object.assign({[`&${En}-root`]:{boxShadow:"none"}},To(hn))},[`${En}-submenu-popup`]:{[`${En}-vertical`]:Object.assign(Object.assign({},To(hn)),{boxShadow:On})}},{[`${En}-submenu-popup ${En}-vertical${En}-sub`]:{minWidth:Qt,maxHeight:`calc(100vh - ${Dn*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${En}-inline`]:{width:"100%",[`&${En}-root`]:{[`${En}-item, ${En}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Hi}`,`background ${Hi}`,`padding ${sn} ${wr}`].join(","),[`> ${En}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${En}-sub${En}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${En}-submenu > ${En}-submenu-title`]:Wi,[`& ${En}-item-group-title`]:{paddingInlineStart:jr}},[`${En}-item`]:Wi}},{[`${En}-inline-collapsed`]:{width:zr,[`&${En}-root`]:{[`${En}-item, ${En}-submenu ${En}-submenu-title`]:{[`> ${En}-inline-collapsed-noicon`]:{fontSize:Pr,textAlign:"center"}}},[`> ${En}-item, + > ${En}-item-group > ${En}-item-group-list > ${En}-item, + > ${En}-item-group > ${En}-item-group-list > ${En}-submenu > ${En}-submenu-title, + > ${En}-submenu > ${En}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Pr/2}px - ${xi}px)`,textOverflow:"clip",[` + ${En}-submenu-arrow, + ${En}-submenu-expand-icon + `]:{opacity:0},[`${En}-item-icon, ${rn}`]:{margin:0,fontSize:qr,lineHeight:`${Jt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${En}-item-icon, ${rn}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${En}-item-icon, ${rn}`]:{display:"none"},"a, a:hover":{color:Mt}},[`${En}-item-group-title`]:Object.assign(Object.assign({},lt.vS),{paddingInline:Io})}}]};const Oo=hn=>{const{componentCls:En,motionDurationSlow:rn,motionDurationMid:Jt,motionEaseInOut:Mt,motionEaseOut:Qt,iconCls:Dn,iconSize:sn,iconMarginInlineEnd:wr}=hn;return{[`${En}-item, ${En}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${rn}`,`background ${rn}`,`padding ${rn} ${Mt}`].join(","),[`${En}-item-icon, ${Dn}`]:{minWidth:sn,fontSize:sn,transition:[`font-size ${Jt} ${Qt}`,`margin ${rn} ${Mt}`,`color ${rn}`].join(","),"+ span":{marginInlineStart:wr,opacity:1,transition:[`opacity ${rn} ${Mt}`,`margin ${rn}`,`color ${rn}`].join(",")}},[`${En}-item-icon`]:Object.assign({},(0,lt.Ro)()),[`&${En}-item-only-child`]:{[`> ${Dn}, > ${En}-item-icon`]:{marginInlineEnd:0}}},[`${En}-item-disabled, ${En}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${En}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},$i=hn=>{const{componentCls:En,motionDurationSlow:rn,motionEaseInOut:Jt,borderRadius:Mt,menuArrowSize:Qt,menuArrowOffset:Dn}=hn;return{[`${En}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:hn.margin,width:Qt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${rn} ${Jt}, opacity ${rn}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Qt*.6,height:Qt*.15,backgroundColor:"currentcolor",borderRadius:Mt,transition:[`background ${rn} ${Jt}`,`transform ${rn} ${Jt}`,`top ${rn} ${Jt}`,`color ${rn} ${Jt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Dn})`},"&::after":{transform:`rotate(-45deg) translateY(${Dn})`}}}}},co=hn=>{const{antCls:En,componentCls:rn,fontSize:Jt,motionDurationSlow:Mt,motionDurationMid:Qt,motionEaseInOut:Dn,paddingXS:sn,padding:wr,colorSplit:jr,lineWidth:xi,zIndexPopup:Pr,borderRadiusLG:Hi,subMenuItemBorderRadius:Io,menuArrowSize:On,menuArrowOffset:zr,lineType:qr,menuPanelMaskInset:Wi,groupTitleLineHeight:ir,groupTitleFontSize:Jn}=hn;return[{"":{[`${rn}`]:Object.assign(Object.assign({},(0,lt.dF)()),{["&-hidden"]:{display:"none"}})},[`${rn}-submenu-hidden`]:{display:"none"}},{[rn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,lt.Wf)(hn)),(0,lt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Jt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Mt} cubic-bezier(0.2, 0, 0, 1) 0s`,["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${rn}-item`]:{flex:"none"}},[`${rn}-item, ${rn}-submenu, ${rn}-submenu-title`]:{borderRadius:hn.itemBorderRadius},[`${rn}-item-group-title`]:{padding:`${sn}px ${wr}px`,fontSize:Jn,lineHeight:ir,transition:`all ${Mt}`},[`&-horizontal ${rn}-submenu`]:{transition:[`border-color ${Mt} ${Dn}`,`background ${Mt} ${Dn}`].join(",")},[`${rn}-submenu, ${rn}-submenu-inline`]:{transition:[`border-color ${Mt} ${Dn}`,`background ${Mt} ${Dn}`,`padding ${Qt} ${Dn}`].join(",")},[`${rn}-submenu ${rn}-sub`]:{cursor:"initial",transition:[`background ${Mt} ${Dn}`,`padding ${Mt} ${Dn}`].join(",")},[`${rn}-title-content`]:{transition:`color ${Mt}`,[`> ${En}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${rn}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${rn}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:jr,borderStyle:qr,borderWidth:0,borderTopWidth:xi,marginBlock:xi,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Oo(hn)),{[`${rn}-item-group`]:{[`${rn}-item-group-list`]:{margin:0,padding:0,[`${rn}-item, ${rn}-submenu-title`]:{paddingInline:`${Jt*2}px ${wr}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Pr,borderRadius:Hi,boxShadow:"none",transformOrigin:"0 0",[`&${rn}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Wi}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Wi},[` &-placement-leftTop, &-placement-bottomRight, `]:{transformOrigin:"100% 0"},[` @@ -7861,100 +7891,100 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter `]:{transformOrigin:"0 0"},[` &-placement-leftTop, &-placement-leftBottom - `]:{paddingInlineEnd:xt.paddingXS},[` + `]:{paddingInlineEnd:hn.paddingXS},[` &-placement-rightTop, &-placement-rightBottom - `]:{paddingInlineStart:xt.paddingXS},[` + `]:{paddingInlineStart:hn.paddingXS},[` &-placement-topRight, &-placement-topLeft - `]:{paddingBottom:xt.paddingXS},[` + `]:{paddingBottom:hn.paddingXS},[` &-placement-bottomRight, &-placement-bottomLeft - `]:{paddingTop:xt.paddingXS},[`> ${sn}`]:Object.assign(Object.assign(Object.assign({borderRadius:si},me(xt)),So(xt)),{[`${sn}-item, ${sn}-submenu > ${sn}-submenu-title`]:{borderRadius:uo},[`${sn}-submenu-title::after`]:{transition:`transform ${Tt} ${Ht}`}})}}),So(xt)),{[`&-inline-collapsed ${sn}-submenu-arrow, - &-inline ${sn}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${_n})`},"&::after":{transform:`rotate(45deg) translateX(-${_n})`}},[`${sn}-submenu-open${sn}-submenu-inline > ${sn}-submenu-title > ${sn}-submenu-arrow`]:{transform:`translateY(-${Qo*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${_n})`},"&::before":{transform:`rotate(45deg) translateX(${_n})`}}})},{[`${Wt}-layout-header`]:{[sn]:{lineHeight:"inherit"}}}]};var go=(xt,Wt)=>(0,zt.Z)("Menu",Ot=>{if(Wt===!1)return[];const{colorBgElevated:Tt,colorPrimary:bt,colorTextLightSolid:Ht,controlHeightLG:zn,fontSize:en,darkItemColor:fr,darkDangerItemColor:Kr,darkItemBg:ii,darkSubMenuItemBg:si,darkItemSelectedColor:uo,darkItemSelectedBg:Qo,darkDangerItemSelectedBg:_n,darkItemHoverBg:Vr,darkGroupTitleColor:qr,darkItemHoverColor:Ui,darkItemDisabledColor:xo,darkDangerItemHoverColor:Us,darkDangerItemSelectedColor:$n,darkDangerItemActiveBg:Kn}=Ot,Fr=en/7*5,mi=(0,mt.TS)(Ot,{menuArrowSize:Fr,menuHorizontalHeight:zn*1.15,menuArrowOffset:`${Fr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Tt}),Tr=(0,mt.TS)(mi,{itemColor:fr,itemHoverColor:Ui,groupTitleColor:qr,itemSelectedColor:uo,itemBg:ii,popupBg:ii,subMenuItemBg:si,itemActiveBg:"transparent",itemSelectedBg:Qo,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Vr,itemDisabledColor:xo,dangerItemColor:Kr,dangerItemHoverColor:Us,dangerItemSelectedColor:$n,dangerItemActiveBg:Kn,dangerItemSelectedBg:_n,menuSubMenuBg:si,horizontalItemSelectedColor:Ht,horizontalItemSelectedBg:bt});return[ho(mi),Bn(mi),fs(mi),To(mi,"light"),To(Tr,"dark"),ri(mi),(0,He.Z)(mi),(0,Ct.oN)(mi,"slide-up"),(0,Ct.oN)(mi,"slide-down"),(0,ft._y)(mi,"zoom-big")]},Ot=>{const{colorPrimary:Tt,colorError:bt,colorTextDisabled:Ht,colorErrorBg:zn,colorText:en,colorTextDescription:fr,colorBgContainer:Kr,colorFillAlter:ii,colorFillContent:si,lineWidth:uo,lineWidthBold:Qo,controlItemBgActive:_n,colorBgTextHover:Vr,controlHeightLG:qr,lineHeight:Ui,colorBgElevated:xo,marginXXS:Us,padding:$n,fontSize:Kn,controlHeightSM:Fr,fontSizeLG:mi,colorTextLightSolid:Tr,colorErrorHover:ti}=Ot,di=new Pt.C(Tr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ot.zIndexPopupBase+50,radiusItem:Ot.borderRadiusLG,itemBorderRadius:Ot.borderRadiusLG,radiusSubMenuItem:Ot.borderRadiusSM,subMenuItemBorderRadius:Ot.borderRadiusSM,colorItemText:en,itemColor:en,colorItemTextHover:en,itemHoverColor:en,colorItemTextHoverHorizontal:Tt,horizontalItemHoverColor:Tt,colorGroupTitle:fr,groupTitleColor:fr,colorItemTextSelected:Tt,itemSelectedColor:Tt,colorItemTextSelectedHorizontal:Tt,horizontalItemSelectedColor:Tt,colorItemBg:Kr,itemBg:Kr,colorItemBgHover:Vr,itemHoverBg:Vr,colorItemBgActive:si,itemActiveBg:_n,colorSubItemBg:ii,subMenuItemBg:ii,colorItemBgSelected:_n,itemSelectedBg:_n,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Qo,activeBarHeight:Qo,colorActiveBarBorderSize:uo,activeBarBorderWidth:uo,colorItemTextDisabled:Ht,itemDisabledColor:Ht,colorDangerItemText:bt,dangerItemColor:bt,colorDangerItemTextHover:bt,dangerItemHoverColor:bt,colorDangerItemTextSelected:bt,dangerItemSelectedColor:bt,colorDangerItemBgActive:zn,dangerItemActiveBg:zn,colorDangerItemBgSelected:zn,dangerItemSelectedBg:zn,itemMarginInline:Ot.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:qr,groupTitleLineHeight:Ui,collapsedWidth:qr*2,popupBg:xo,itemMarginBlock:Us,itemPaddingInline:$n,horizontalLineHeight:`${qr*1.15}px`,iconSize:Kn,iconMarginInlineEnd:Fr-Kn,collapsedIconSize:mi,groupTitleFontSize:Kn,darkItemDisabledColor:new Pt.C(Tr).setAlpha(.25).toRgbString(),darkItemColor:di,darkDangerItemColor:bt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Tr,darkItemSelectedBg:Tt,darkDangerItemSelectedBg:bt,darkItemHoverBg:"transparent",darkGroupTitleColor:di,darkItemHoverColor:Tr,darkDangerItemHoverColor:ti,darkDangerItemSelectedColor:Tr,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),ji=function(xt,Wt){var sn={};for(var Ot in xt)Object.prototype.hasOwnProperty.call(xt,Ot)&&Wt.indexOf(Ot)<0&&(sn[Ot]=xt[Ot]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Ot=Object.getOwnPropertySymbols(xt);Tt{var sn,Ot;const Tt=I.useContext(Se.Z),bt=Tt||{},{getPrefixCls:Ht,getPopupContainer:zn,direction:en,menu:fr}=I.useContext(S.E_),Kr=Ht(),{prefixCls:ii,className:si,style:uo,theme:Qo="light",expandIcon:_n,_internalDisableMenuItemTitleTooltip:Vr,inlineCollapsed:qr,siderCollapsed:Ui,items:xo,children:Us,rootClassName:$n,mode:Kn,selectable:Fr,onClick:mi,overflowedIndicatorPopupClassName:Tr}=xt,ti=ji(xt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),di=(0,ce.Z)(ti,["collapsedWidth"]),rn=We(xo)||Us;(sn=bt.validator)===null||sn===void 0||sn.call(bt,{mode:Kn});const Qn=(0,Ce.zX)(function(){var Qr;mi==null||mi.apply(void 0,arguments),(Qr=bt.onClick)===null||Qr===void 0||Qr.call(bt)}),Xr=bt.mode||Kn,ao=Fr!=null?Fr:bt.selectable,as=I.useMemo(()=>Ui!==void 0?Ui:qr,[qr,Ui]),Bt={horizontal:{motionName:`${Kr}-slide-up`},inline:(0,xe.Z)(Kr),other:{motionName:`${Kr}-zoom-big`}},pn=Ht("menu",ii||bt.prefixCls),[xr,Jr]=go(pn,!Tt),vi=z()(`${pn}-${Qo}`,fr==null?void 0:fr.className,si);let Ti;if(typeof _n=="function")Ti=_n;else if(_n===null||_n===!1)Ti=null;else if(bt.expandIcon===null||bt.expandIcon===!1)Ti=null;else{const Qr=_n!=null?_n:bt.expandIcon;Ti=(0,he.Tm)(Qr,{className:z()(`${pn}-submenu-expand-icon`,(0,he.l$)(Qr)?(Ot=Qr.props)===null||Ot===void 0?void 0:Ot.className:"")})}const co=I.useMemo(()=>({prefixCls:pn,inlineCollapsed:as||!1,direction:en,firstLevel:!0,theme:Qo,mode:Xr,disableMenuItemTitleTooltip:Vr}),[pn,as,en,Vr,Qo]);return xr(I.createElement(Se.Z.Provider,{value:null},I.createElement(Be.Provider,{value:co},I.createElement(y.ZP,Object.assign({getPopupContainer:zn,overflowedIndicator:I.createElement(ye.Z,null),overflowedIndicatorPopupClassName:z()(pn,`${pn}-${Qo}`,Tr),mode:Xr,selectable:ao,onClick:Qn},di,{inlineCollapsed:as,style:Object.assign(Object.assign({},fr==null?void 0:fr.style),uo),className:vi,prefixCls:pn,direction:en,defaultMotions:Bt,expandIcon:Ti,ref:Wt,rootClassName:z()($n,Jr)}),rn))))});const Ve=(0,I.forwardRef)((xt,Wt)=>{const sn=(0,I.useRef)(null),Ot=I.useContext(w);return(0,I.useImperativeHandle)(Wt,()=>({menu:sn.current,focus:Tt=>{var bt;(bt=sn.current)===null||bt===void 0||bt.focus(Tt)}})),I.createElement(dn,Object.assign({ref:sn},xt,Ot))});Ve.Item=je,Ve.SubMenu=ve,Ve.Divider=te,Ve.ItemGroup=y.BW;var yt=Ve},73824:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return mi}});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),te=m(74710),re=m(79161),ce=m(26508),pe=m(80268),he=m(44516),fe=m(38251),Be=I.forwardRef(function(Tr,ti){var di=Tr.prefixCls,rn=Tr.style,Qn=Tr.className,Xr=Tr.duration,ao=Xr===void 0?4.5:Xr,as=Tr.eventKey,Bt=Tr.content,pn=Tr.closable,xr=Tr.closeIcon,Jr=xr===void 0?"x":xr,vi=Tr.props,Ti=Tr.onClick,co=Tr.onNoticeClose,Qr=Tr.times,oi=Tr.hovering,Zi=I.useState(!1),Ir=(0,P.Z)(Zi,2),tn=Ir[0],Gn=Ir[1],Ei=oi||tn,Ln=function(){co(as)},Ii=function(Mi){(Mi.key==="Enter"||Mi.code==="Enter"||Mi.keyCode===fe.Z.ENTER)&&Ln()};I.useEffect(function(){if(!Ei&&ao>0){var wi=setTimeout(function(){Ln()},ao*1e3);return function(){clearTimeout(wi)}}},[ao,Ei,Qr]);var nr="".concat(di,"-notice");return I.createElement("div",(0,ce.Z)({},vi,{ref:ti,className:S()(nr,Qn,(0,pe.Z)({},"".concat(nr,"-closable"),pn)),style:rn,onMouseEnter:function(Mi){var Rr;Gn(!0),vi==null||(Rr=vi.onMouseEnter)===null||Rr===void 0||Rr.call(vi,Mi)},onMouseLeave:function(Mi){var Rr;Gn(!1),vi==null||(Rr=vi.onMouseLeave)===null||Rr===void 0||Rr.call(vi,Mi)},onClick:Ti}),I.createElement("div",{className:"".concat(nr,"-content")},Bt),pn&&I.createElement("a",{tabIndex:0,className:"".concat(nr,"-close"),onKeyDown:Ii,onClick:function(Mi){Mi.preventDefault(),Mi.stopPropagation(),Ln()}},Jr))}),Ie=Be,je=I.createContext({}),be=function(ti){var di=ti.children,rn=ti.classNames;return I.createElement(je.Provider,{value:{classNames:rn}},di)},ve=be,ye=m(91002),Ce=8,xe=3,Ae=16,ge=function(ti){var di={offset:Ce,threshold:xe,gap:Ae};if(ti&&(0,ye.Z)(ti)==="object"){var rn,Qn,Xr;di.offset=(rn=ti.offset)!==null&&rn!==void 0?rn:Ce,di.threshold=(Qn=ti.threshold)!==null&&Qn!==void 0?Qn:xe,di.gap=(Xr=ti.gap)!==null&&Xr!==void 0?Xr:Ae}return[!!ti,di]},We=ge,Se=function(ti){var di,rn=ti.configList,Qn=ti.placement,Xr=ti.prefixCls,ao=ti.className,as=ti.style,Bt=ti.motion,pn=ti.onAllNoticeRemoved,xr=ti.onNoticeClose,Jr=ti.stack,vi=(0,I.useContext)(je),Ti=vi.classNames,co=(0,I.useRef)({}),Qr=(0,I.useState)(null),oi=(0,P.Z)(Qr,2),Zi=oi[0],Ir=oi[1],tn=(0,I.useState)([]),Gn=(0,P.Z)(tn,2),Ei=Gn[0],Ln=Gn[1],Ii=rn.map(function(Ua){return{config:Ua,key:Ua.key}}),nr=We(Jr),wi=(0,P.Z)(nr,2),Mi=wi[0],Rr=wi[1],Xn=Rr.offset,ms=Rr.threshold,ya=Rr.gap,fa=Mi&&(Ei.length>0||Ii.length<=ms),Ws=typeof Bt=="function"?Bt(Qn):Bt;return(0,I.useEffect)(function(){Mi&&Ei.length>1&&Ln(function(Ua){return Ua.filter(function(Ao){return Ii.some(function(cl){var $r=cl.key;return Ao===$r})})})},[Ei,Ii,Mi]),(0,I.useEffect)(function(){var Ua;if(Mi&&co.current[(Ua=Ii[Ii.length-1])===null||Ua===void 0?void 0:Ua.key]){var Ao;Ir(co.current[(Ao=Ii[Ii.length-1])===null||Ao===void 0?void 0:Ao.key])}},[Ii,Mi]),I.createElement(he.V4,(0,ce.Z)({key:Qn,className:S()(Xr,"".concat(Xr,"-").concat(Qn),Ti==null?void 0:Ti.list,ao,(di={},(0,pe.Z)(di,"".concat(Xr,"-stack"),!!Mi),(0,pe.Z)(di,"".concat(Xr,"-stack-expanded"),fa),di)),style:as,keys:Ii,motionAppear:!0},Ws,{onAllRemoved:function(){pn(Qn)}}),function(Ua,Ao){var cl=Ua.config,$r=Ua.className,er=Ua.style,Dr=Ua.index,pr=cl,ci=pr.key,Eo=pr.times,mo=cl,Ts=mo.className,xs=mo.style,Er=Ii.findIndex(function(Vn){return Vn.key===ci}),ui={};if(Mi){var Xt=Ii.length-1-(Er>-1?Er:Dr-1),gn=Qn==="top"||Qn==="bottom"?"-50%":"0";if(Xt>0){var En,tt,at;ui.height=fa?(En=co.current[ci])===null||En===void 0?void 0:En.offsetHeight:Zi==null?void 0:Zi.offsetHeight;for(var gt=0,Re=0;Re-1?co.current[ci]=wr:delete co.current[ci]},prefixCls:Xr,className:S()(Ts,Ti==null?void 0:Ti.notice),times:Eo,key:ci,eventKey:ci,onNoticeClose:xr,hovering:Mi&&Ei.length>0})))})},Pt=Se,dt=I.forwardRef(function(Tr,ti){var di=Tr.prefixCls,rn=di===void 0?"rc-notification":di,Qn=Tr.container,Xr=Tr.motion,ao=Tr.maxCount,as=Tr.className,Bt=Tr.style,pn=Tr.onAllRemoved,xr=Tr.stack,Jr=Tr.renderNotifications,vi=I.useState([]),Ti=(0,P.Z)(vi,2),co=Ti[0],Qr=Ti[1],oi=function(wi){var Mi,Rr=co.find(function(Xn){return Xn.key===wi});Rr==null||(Mi=Rr.onClose)===null||Mi===void 0||Mi.call(Rr),Qr(function(Xn){return Xn.filter(function(ms){return ms.key!==wi})})};I.useImperativeHandle(ti,function(){return{open:function(wi){Qr(function(Mi){var Rr=(0,y.Z)(Mi),Xn=Rr.findIndex(function(fa){return fa.key===wi.key}),ms=(0,te.Z)({},wi);if(Xn>=0){var ya;ms.times=(((ya=Mi[Xn])===null||ya===void 0?void 0:ya.times)||0)+1,Rr[Xn]=ms}else ms.times=0,Rr.push(ms);return ao>0&&Rr.length>ao&&(Rr=Rr.slice(-ao)),Rr})},close:function(wi){oi(wi)},destroy:function(){Qr([])}}});var Zi=I.useState({}),Ir=(0,P.Z)(Zi,2),tn=Ir[0],Gn=Ir[1];I.useEffect(function(){var nr={};co.forEach(function(wi){var Mi=wi.placement,Rr=Mi===void 0?"topRight":Mi;Rr&&(nr[Rr]=nr[Rr]||[],nr[Rr].push(wi))}),Object.keys(tn).forEach(function(wi){nr[wi]=nr[wi]||[]}),Gn(nr)},[co]);var Ei=function(wi){Gn(function(Mi){var Rr=(0,te.Z)({},Mi),Xn=Rr[wi]||[];return Xn.length||delete Rr[wi],Rr})},Ln=I.useRef(!1);if(I.useEffect(function(){Object.keys(tn).length>0?Ln.current=!0:Ln.current&&(pn==null||pn(),Ln.current=!1)},[tn]),!Qn)return null;var Ii=Object.keys(tn);return(0,re.createPortal)(I.createElement(I.Fragment,null,Ii.map(function(nr){var wi=tn[nr],Mi=I.createElement(Pt,{key:nr,configList:wi,placement:nr,prefixCls:rn,className:as==null?void 0:as(nr),style:Bt==null?void 0:Bt(nr),motion:Xr,onNoticeClose:oi,onAllNoticeRemoved:Ei,stack:xr});return Jr?Jr(Mi,{prefixCls:rn,key:nr}):Mi})),Qn)}),He=dt,Ct=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],ft=function(){return document.body},zt=0;function mt(){for(var Tr={},ti=arguments.length,di=new Array(ti),rn=0;rn0&&arguments[0]!==void 0?arguments[0]:{},ti=Tr.getContainer,di=ti===void 0?ft:ti,rn=Tr.motion,Qn=Tr.prefixCls,Xr=Tr.maxCount,ao=Tr.className,as=Tr.style,Bt=Tr.onAllRemoved,pn=Tr.stack,xr=Tr.renderNotifications,Jr=(0,W.Z)(Tr,Ct),vi=I.useState(),Ti=(0,P.Z)(vi,2),co=Ti[0],Qr=Ti[1],oi=I.useRef(),Zi=I.createElement(He,{container:co,ref:oi,prefixCls:Qn,motion:rn,maxCount:Xr,className:ao,style:as,onAllRemoved:Bt,stack:pn,renderNotifications:xr}),Ir=I.useState([]),tn=(0,P.Z)(Ir,2),Gn=tn[0],Ei=tn[1],Ln=I.useMemo(function(){return{open:function(nr){var wi=mt(Jr,nr);(wi.key===null||wi.key===void 0)&&(wi.key="rc-notification-".concat(zt),zt+=1),Ei(function(Mi){return[].concat((0,y.Z)(Mi),[{type:"open",config:wi}])})},close:function(nr){Ei(function(wi){return[].concat((0,y.Z)(wi),[{type:"close",key:nr}])})},destroy:function(){Ei(function(nr){return[].concat((0,y.Z)(nr),[{type:"destroy"}])})}}},[]);return I.useEffect(function(){Qr(di())}),I.useEffect(function(){oi.current&&Gn.length&&(Gn.forEach(function(Ii){switch(Ii.type){case"open":oi.current.open(Ii.config);break;case"close":oi.current.close(Ii.key);break;case"destroy":oi.current.destroy();break}}),Ei(function(Ii){return Ii.filter(function(nr){return!Gn.includes(nr)})}))},[Gn]),[Ln,Zi]}var Bn=m(67392),Lr=m(84608),ri=m(92068),gi=m(24577),ro=m(41788);const To=Tr=>{const{componentCls:ti,iconCls:di,boxShadow:rn,colorText:Qn,colorSuccess:Xr,colorError:ao,colorWarning:as,colorInfo:Bt,fontSizeLG:pn,motionEaseInOutCirc:xr,motionDurationSlow:Jr,marginXS:vi,paddingXS:Ti,borderRadiusLG:co,zIndexPopup:Qr,contentPadding:oi,contentBg:Zi}=Tr,Ir=`${ti}-notice`,tn=new Lr.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:Ti,transform:"translateY(0)",opacity:1}}),Gn=new Lr.E4("MessageMoveOut",{"0%":{maxHeight:Tr.height,padding:Ti,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),Ei={padding:Ti,textAlign:"center",[`${ti}-custom-content > ${di}`]:{verticalAlign:"text-bottom",marginInlineEnd:vi,fontSize:pn},[`${Ir}-content`]:{display:"inline-block",padding:oi,background:Zi,borderRadius:co,boxShadow:rn,pointerEvents:"all"},[`${ti}-success > ${di}`]:{color:Xr},[`${ti}-error > ${di}`]:{color:ao},[`${ti}-warning > ${di}`]:{color:as},[`${ti}-info > ${di}, - ${ti}-loading > ${di}`]:{color:Bt}};return[{[ti]:Object.assign(Object.assign({},(0,ri.Wf)(Tr)),{color:Qn,position:"fixed",top:vi,width:"100%",pointerEvents:"none",zIndex:Qr,[`${ti}-move-up`]:{animationFillMode:"forwards"},[` - ${ti}-move-up-appear, - ${ti}-move-up-enter - `]:{animationName:tn,animationDuration:Jr,animationPlayState:"paused",animationTimingFunction:xr},[` - ${ti}-move-up-appear${ti}-move-up-appear-active, - ${ti}-move-up-enter${ti}-move-up-enter-active - `]:{animationPlayState:"running"},[`${ti}-move-up-leave`]:{animationName:Gn,animationDuration:Jr,animationPlayState:"paused",animationTimingFunction:xr},[`${ti}-move-up-leave${ti}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[ti]:{[`${Ir}-wrapper`]:Object.assign({},Ei)}},{[`${ti}-notice-pure-panel`]:Object.assign(Object.assign({},Ei),{padding:0,textAlign:"start"})}]};var _r=(0,gi.Z)("Message",Tr=>{const ti=(0,ro.TS)(Tr,{height:150});return[To(ti)]},Tr=>({zIndexPopup:Tr.zIndexPopupBase+10,contentBg:Tr.colorBgElevated,contentPadding:`${(Tr.controlHeightLG-Tr.fontSize*Tr.lineHeight)/2}px ${Tr.paddingSM}px`})),Bo=function(Tr,ti){var di={};for(var rn in Tr)Object.prototype.hasOwnProperty.call(Tr,rn)&&ti.indexOf(rn)<0&&(di[rn]=Tr[rn]);if(Tr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qn=0,rn=Object.getOwnPropertySymbols(Tr);Qn{let{prefixCls:ti,type:di,icon:rn,children:Qn}=Tr;return I.createElement("div",{className:S()(`${ti}-custom-content`,`${ti}-${di}`)},rn||fs[di],I.createElement("span",null,Qn))};var ho=Tr=>{const{prefixCls:ti,className:di,type:rn,icon:Qn,content:Xr}=Tr,ao=Bo(Tr,["prefixCls","className","type","icon","content"]),{getPrefixCls:as}=I.useContext(Bn.E_),Bt=ti||as("message"),[,pn]=_r(Bt);return I.createElement(Ie,Object.assign({},ao,{prefixCls:Bt,className:S()(di,pn,`${Bt}-notice-pure-panel`),eventKey:"pure",duration:null,content:I.createElement(me,{prefixCls:Bt,type:rn,icon:Qn},Xr)}))},go=m(49934),ji=m(40869);function No(Tr,ti){return{motionName:ti!=null?ti:`${Tr}-move-up`}}function dn(Tr){let ti;const di=new Promise(Qn=>{ti=Tr(()=>{Qn(!0)})}),rn=()=>{ti==null||ti()};return rn.then=(Qn,Xr)=>di.then(Qn,Xr),rn.promise=di,rn}var Ve=function(Tr,ti){var di={};for(var rn in Tr)Object.prototype.hasOwnProperty.call(Tr,rn)&&ti.indexOf(rn)<0&&(di[rn]=Tr[rn]);if(Tr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qn=0,rn=Object.getOwnPropertySymbols(Tr);Qn{let{children:ti,prefixCls:di}=Tr;const[,rn]=_r(di);return I.createElement(ve,{classNames:{list:rn,notice:rn}},ti)},sn=(Tr,ti)=>{let{prefixCls:di,key:rn}=ti;return I.createElement(Wt,{prefixCls:di,key:rn},Tr)},Ot=I.forwardRef((Tr,ti)=>{const{top:di,prefixCls:rn,getContainer:Qn,maxCount:Xr,duration:ao=xt,rtl:as,transitionName:Bt,onAllRemoved:pn}=Tr,{getPrefixCls:xr,getPopupContainer:Jr,message:vi}=I.useContext(Bn.E_),Ti=rn||xr("message"),co=()=>({left:"50%",transform:"translateX(-50%)",top:di!=null?di:yt}),Qr=()=>S()({[`${Ti}-rtl`]:as}),oi=()=>No(Ti,Bt),Zi=I.createElement("span",{className:`${Ti}-close-x`},I.createElement(go.Z,{className:`${Ti}-close-icon`})),[Ir,tn]=yn({prefixCls:Ti,style:co,className:Qr,motion:oi,closable:!1,closeIcon:Zi,duration:ao,getContainer:()=>(Qn==null?void 0:Qn())||(Jr==null?void 0:Jr())||document.body,maxCount:Xr,onAllRemoved:pn,renderNotifications:sn});return I.useImperativeHandle(ti,()=>Object.assign(Object.assign({},Ir),{prefixCls:Ti,message:vi})),tn});let Tt=0;function bt(Tr){const ti=I.useRef(null),di=(0,ji.ln)("Message");return[I.useMemo(()=>{const Qn=pn=>{var xr;(xr=ti.current)===null||xr===void 0||xr.close(pn)},Xr=pn=>{if(!ti.current){const Ii=()=>{};return Ii.then=()=>{},Ii}const{open:xr,prefixCls:Jr,message:vi}=ti.current,Ti=`${Jr}-notice`,{content:co,icon:Qr,type:oi,key:Zi,className:Ir,style:tn,onClose:Gn}=pn,Ei=Ve(pn,["content","icon","type","key","className","style","onClose"]);let Ln=Zi;return Ln==null&&(Tt+=1,Ln=`antd-message-${Tt}`),dn(Ii=>(xr(Object.assign(Object.assign({},Ei),{key:Ln,content:I.createElement(me,{prefixCls:Jr,type:oi,icon:Qr},co),placement:"top",className:S()(oi&&`${Ti}-${oi}`,Ir,vi==null?void 0:vi.className),style:Object.assign(Object.assign({},vi==null?void 0:vi.style),tn),onClose:()=>{Gn==null||Gn(),Ii()}})),()=>{Qn(Ln)}))},as={open:Xr,destroy:pn=>{var xr;pn!==void 0?Qn(pn):(xr=ti.current)===null||xr===void 0||xr.destroy()}};return["info","success","warning","error","loading"].forEach(pn=>{const xr=(Jr,vi,Ti)=>{let co;Jr&&typeof Jr=="object"&&"content"in Jr?co=Jr:co={content:Jr};let Qr,oi;typeof vi=="function"?oi=vi:(Qr=vi,oi=Ti);const Zi=Object.assign(Object.assign({onClose:oi,duration:Qr},co),{type:pn});return Xr(Zi)};as[pn]=xr}),as},[]),I.createElement(Ot,Object.assign({key:"message-holder"},Tr,{ref:ti}))]}function Ht(Tr){return bt(Tr)}let zn=null,en=Tr=>Tr(),fr=[],Kr={};function ii(){const{prefixCls:Tr,getContainer:ti,duration:di,rtl:rn,maxCount:Qn,top:Xr}=Kr,ao=Tr!=null?Tr:(0,z.w6)().getPrefixCls("message"),as=(ti==null?void 0:ti())||document.body;return{prefixCls:ao,getContainer:()=>as,duration:di,rtl:rn,maxCount:Qn,top:Xr}}const si=I.forwardRef((Tr,ti)=>{const[di,rn]=I.useState(ii),[Qn,Xr]=bt(di),ao=(0,z.w6)(),as=ao.getRootPrefixCls(),Bt=ao.getIconPrefixCls(),pn=ao.getTheme(),xr=()=>{rn(ii)};return I.useEffect(xr,[]),I.useImperativeHandle(ti,()=>{const Jr=Object.assign({},Qn);return Object.keys(Jr).forEach(vi=>{Jr[vi]=function(){return xr(),Qn[vi].apply(Qn,arguments)}}),{instance:Jr,sync:xr}}),I.createElement(z.ZP,{prefixCls:as,iconPrefixCls:Bt,theme:pn},Xr)});function uo(){if(!zn){const Tr=document.createDocumentFragment(),ti={fragment:Tr};zn=ti,en(()=>{(0,b.s)(I.createElement(si,{ref:di=>{const{instance:rn,sync:Qn}=di||{};Promise.resolve().then(()=>{!ti.instance&&rn&&(ti.instance=rn,ti.sync=Qn,uo())})}}),Tr)});return}zn.instance&&(fr.forEach(Tr=>{const{type:ti,skipped:di}=Tr;if(!di)switch(ti){case"open":{en(()=>{const rn=zn.instance.open(Object.assign(Object.assign({},Kr),Tr.config));rn==null||rn.then(Tr.resolve),Tr.setCloseFn(rn)});break}case"destroy":en(()=>{zn==null||zn.instance.destroy(Tr.key)});break;default:en(()=>{var rn;const Qn=(rn=zn.instance)[ti].apply(rn,(0,y.Z)(Tr.args));Qn==null||Qn.then(Tr.resolve),Tr.setCloseFn(Qn)})}}),fr=[])}function Qo(Tr){Kr=Object.assign(Object.assign({},Kr),Tr),en(()=>{var ti;(ti=zn==null?void 0:zn.sync)===null||ti===void 0||ti.call(zn)})}function _n(Tr){const ti=dn(di=>{let rn;const Qn={type:"open",config:Tr,resolve:di,setCloseFn:Xr=>{rn=Xr}};return fr.push(Qn),()=>{rn?en(()=>{rn()}):Qn.skipped=!0}});return uo(),ti}function Vr(Tr,ti){const di=dn(rn=>{let Qn;const Xr={type:Tr,args:ti,resolve:rn,setCloseFn:ao=>{Qn=ao}};return fr.push(Xr),()=>{Qn?en(()=>{Qn()}):Xr.skipped=!0}});return uo(),di}function qr(Tr){fr.push({type:"destroy",key:Tr}),uo()}const Ui=["success","info","warning","error","loading"],Us={open:_n,destroy:qr,config:Qo,useMessage:Ht,_InternalPanelDoNotUseOrYouWillBeFired:ho};Ui.forEach(Tr=>{Us[Tr]=function(){for(var ti=arguments.length,di=new Array(ti),rn=0;rn{};let Kn=null,Fr=null;var mi=Us},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 te=b.createContext({}),{Provider:re}=te;var pe=()=>{const{autoFocusButton:$r,cancelButtonProps:er,cancelTextLocale:Dr,isSilent:pr,mergedOkCancel:ci,rootPrefixCls:Eo,close:mo,onCancel:Ts,onConfirm:xs}=(0,b.useContext)(te);return ci?b.createElement(W.Z,{isSilent:pr,actionFn:Ts,close:function(){mo==null||mo.apply(void 0,arguments),xs==null||xs(!1)},autoFocus:$r==="cancel",buttonProps:er,prefixCls:`${Eo}-btn`},Dr):null},fe=()=>{const{autoFocusButton:$r,close:er,isSilent:Dr,okButtonProps:pr,rootPrefixCls:ci,okTextLocale:Eo,okType:mo,onConfirm:Ts,onOk:xs}=(0,b.useContext)(te);return b.createElement(W.Z,{isSilent:Dr,type:mo||"primary",actionFn:xs,close:function(){er==null||er.apply(void 0,arguments),Ts==null||Ts(!0)},autoFocus:$r==="ok",buttonProps:pr,prefixCls:`${ci}-btn`},Eo)},Be=m(49934),Ie=m(26508),je=m(39718),be=m(43403),ve=b.createContext({}),ye=m(74710),Ce=m(67168),xe=m(59872),Ae=m(38251),ge=m(5090);function We($r,er,Dr){var pr=er;return!pr&&Dr&&(pr="".concat($r,"-").concat(Dr)),pr}function Se($r,er){var Dr=$r["page".concat(er?"Y":"X","Offset")],pr="scroll".concat(er?"Top":"Left");if(typeof Dr!="number"){var ci=$r.document;Dr=ci.documentElement[pr],typeof Dr!="number"&&(Dr=ci.body[pr])}return Dr}function Pt($r){var er=$r.getBoundingClientRect(),Dr={left:er.left,top:er.top},pr=$r.ownerDocument,ci=pr.defaultView||pr.parentWindow;return Dr.left+=Se(ci),Dr.top+=Se(ci,!0),Dr}var dt=m(44516),He=m(9681),Ct=b.memo(function($r){var er=$r.children;return er},function($r,er){var Dr=er.shouldUpdate;return!Dr}),ft={width:0,height:0,overflow:"hidden",outline:"none"},zt=b.forwardRef(function($r,er){var Dr=$r.prefixCls,pr=$r.className,ci=$r.style,Eo=$r.title,mo=$r.ariaId,Ts=$r.footer,xs=$r.closable,Er=$r.closeIcon,ui=$r.onClose,Xt=$r.children,gn=$r.bodyStyle,En=$r.bodyProps,tt=$r.modalRender,at=$r.onMouseDown,gt=$r.onMouseUp,Re=$r.holderRef,lt=$r.visible,St=$r.forceRender,ln=$r.width,Vn=$r.height,wr=$r.classNames,ki=$r.styles,Vi=b.useContext(ve),Ki=Vi.panel,ps=(0,He.x1)(Re,Ki),Ns=(0,b.useRef)(),Bs=(0,b.useRef)();b.useImperativeHandle(er,function(){return{focus:function(){var Fa;(Fa=Ns.current)===null||Fa===void 0||Fa.focus()},changeActive:function(Fa){var gl=document,ua=gl.activeElement;Fa&&ua===Bs.current?Ns.current.focus():!Fa&&ua===Ns.current&&Bs.current.focus()}}});var _a={};ln!==void 0&&(_a.width=ln),Vn!==void 0&&(_a.height=Vn);var oo;Ts&&(oo=b.createElement("div",{className:f()("".concat(Dr,"-footer"),wr==null?void 0:wr.footer),style:(0,ye.Z)({},ki==null?void 0:ki.footer)},Ts));var Ds;Eo&&(Ds=b.createElement("div",{className:f()("".concat(Dr,"-header"),wr==null?void 0:wr.header),style:(0,ye.Z)({},ki==null?void 0:ki.header)},b.createElement("div",{className:"".concat(Dr,"-title"),id:mo},Eo)));var oa;xs&&(oa=b.createElement("button",{type:"button",onClick:ui,"aria-label":"Close",className:"".concat(Dr,"-close")},Er||b.createElement("span",{className:"".concat(Dr,"-close-x")})));var va=b.createElement("div",{className:f()("".concat(Dr,"-content"),wr==null?void 0:wr.content),style:ki==null?void 0:ki.content},oa,Ds,b.createElement("div",(0,Ie.Z)({className:f()("".concat(Dr,"-body"),wr==null?void 0:wr.body),style:(0,ye.Z)((0,ye.Z)({},gn),ki==null?void 0:ki.body)},En),Xt),oo);return b.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Eo?mo:null,"aria-modal":"true",ref:ps,style:(0,ye.Z)((0,ye.Z)({},ci),_a),className:f()(Dr,pr),onMouseDown:at,onMouseUp:gt},b.createElement("div",{tabIndex:0,ref:Ns,style:ft,"aria-hidden":"true"}),b.createElement(Ct,{shouldUpdate:lt||St},tt?tt(va):va),b.createElement("div",{tabIndex:0,ref:Bs,style:ft,"aria-hidden":"true"}))}),mt=zt,yn=b.forwardRef(function($r,er){var Dr=$r.prefixCls,pr=$r.title,ci=$r.style,Eo=$r.className,mo=$r.visible,Ts=$r.forceRender,xs=$r.destroyOnClose,Er=$r.motionName,ui=$r.ariaId,Xt=$r.onVisibleChanged,gn=$r.mousePosition,En=(0,b.useRef)(),tt=b.useState(),at=(0,je.Z)(tt,2),gt=at[0],Re=at[1],lt={};gt&&(lt.transformOrigin=gt);function St(){var ln=Pt(En.current);Re(gn?"".concat(gn.x-ln.left,"px ").concat(gn.y-ln.top,"px"):"")}return b.createElement(dt.ZP,{visible:mo,onVisibleChanged:Xt,onAppearPrepare:St,onEnterPrepare:St,forceRender:Ts,motionName:Er,removeOnLeave:xs,ref:En},function(ln,Vn){var wr=ln.className,ki=ln.style;return b.createElement(mt,(0,Ie.Z)({},$r,{ref:er,title:pr,ariaId:ui,prefixCls:Dr,holderRef:Vn,style:(0,ye.Z)((0,ye.Z)((0,ye.Z)({},ki),ci),lt),className:f()(Eo,wr)}))})});yn.displayName="Content";var Bn=yn;function Lr($r){var er=$r.prefixCls,Dr=$r.style,pr=$r.visible,ci=$r.maskProps,Eo=$r.motionName,mo=$r.className;return b.createElement(dt.ZP,{key:"mask",visible:pr,motionName:Eo,leavedClassName:"".concat(er,"-mask-hidden")},function(Ts,xs){var Er=Ts.className,ui=Ts.style;return b.createElement("div",(0,Ie.Z)({ref:xs,style:(0,ye.Z)((0,ye.Z)({},ui),Dr),className:f()("".concat(er,"-mask"),Er,mo)},ci))})}var ri=m(95470);function gi($r){var er=$r.prefixCls,Dr=er===void 0?"rc-dialog":er,pr=$r.zIndex,ci=$r.visible,Eo=ci===void 0?!1:ci,mo=$r.keyboard,Ts=mo===void 0?!0:mo,xs=$r.focusTriggerAfterClose,Er=xs===void 0?!0:xs,ui=$r.wrapStyle,Xt=$r.wrapClassName,gn=$r.wrapProps,En=$r.onClose,tt=$r.afterOpenChange,at=$r.afterClose,gt=$r.transitionName,Re=$r.animation,lt=$r.closable,St=lt===void 0?!0:lt,ln=$r.mask,Vn=ln===void 0?!0:ln,wr=$r.maskTransitionName,ki=$r.maskAnimation,Vi=$r.maskClosable,Ki=Vi===void 0?!0:Vi,ps=$r.maskStyle,Ns=$r.maskProps,Bs=$r.rootClassName,_a=$r.classNames,oo=$r.styles,Ds=(0,b.useRef)(),oa=(0,b.useRef)(),va=(0,b.useRef)(),Bl=b.useState(Eo),Fa=(0,je.Z)(Bl,2),gl=Fa[0],ua=Fa[1],Nl=(0,xe.Z)();function vs(){(0,Ce.Z)(oa.current,document.activeElement)||(Ds.current=document.activeElement)}function Hi(){if(!(0,Ce.Z)(oa.current,document.activeElement)){var to;(to=va.current)===null||to===void 0||to.focus()}}function eo(to){if(to)Hi();else{if(ua(!1),Vn&&Ds.current&&Er){try{Ds.current.focus({preventScroll:!0})}catch(hs){}Ds.current=null}gl&&(at==null||at())}tt==null||tt(to)}function sa(to){En==null||En(to)}var Cs=(0,b.useRef)(!1),Ka=(0,b.useRef)(),$u=function(){clearTimeout(Ka.current),Cs.current=!0},rc=function(){Ka.current=setTimeout(function(){Cs.current=!1})},Pc=null;Ki&&(Pc=function(hs){Cs.current?Cs.current=!1:oa.current===hs.target&&sa(hs)});function vo(to){if(Ts&&to.keyCode===Ae.Z.ESC){to.stopPropagation(),sa(to);return}Eo&&to.keyCode===Ae.Z.TAB&&va.current.changeActive(!to.shiftKey)}return(0,b.useEffect)(function(){Eo&&(ua(!0),vs())},[Eo]),(0,b.useEffect)(function(){return function(){clearTimeout(Ka.current)}},[]),b.createElement("div",(0,Ie.Z)({className:f()("".concat(Dr,"-root"),Bs)},(0,ge.Z)($r,{data:!0})),b.createElement(Lr,{prefixCls:Dr,visible:Vn&&Eo,motionName:We(Dr,wr,ki),style:(0,ye.Z)((0,ye.Z)({zIndex:pr},ps),oo==null?void 0:oo.mask),maskProps:Ns,className:_a==null?void 0:_a.mask}),b.createElement("div",(0,Ie.Z)({tabIndex:-1,onKeyDown:vo,className:f()("".concat(Dr,"-wrap"),Xt,_a==null?void 0:_a.wrapper),ref:oa,onClick:Pc,style:(0,ye.Z)((0,ye.Z)((0,ye.Z)({zIndex:pr},ui),oo==null?void 0:oo.wrapper),{},{display:gl?null:"none"})},gn),b.createElement(Bn,(0,Ie.Z)({},$r,{onMouseDown:$u,onMouseUp:rc,ref:va,closable:St,ariaId:Nl,prefixCls:Dr,visible:Eo&&gl,onClose:sa,onVisibleChanged:eo,motionName:We(Dr,gt,Re)}))))}var ro=function(er){var Dr=er.visible,pr=er.getContainer,ci=er.forceRender,Eo=er.destroyOnClose,mo=Eo===void 0?!1:Eo,Ts=er.afterClose,xs=er.panelRef,Er=b.useState(Dr),ui=(0,je.Z)(Er,2),Xt=ui[0],gn=ui[1],En=b.useMemo(function(){return{panel:xs}},[xs]);return b.useEffect(function(){Dr&&gn(!0)},[Dr]),!ci&&mo&&!Xt?null:b.createElement(ve.Provider,{value:En},b.createElement(be.Z,{open:Dr||ci||Xt,autoDestroy:!1,getContainer:pr,autoLock:Dr||Xt},b.createElement(gi,(0,Ie.Z)({},er,{destroyOnClose:mo,afterClose:function(){Ts==null||Ts(),gn(!1)}}))))};ro.displayName="Dialog";var To=ro,_r=To,Bo=m(52273),fs=m(53261);const me=()=>(0,fs.Z)()&&window.document.documentElement;var So=m(67392),ho=m(86818),go=m(58370);function ji(){}const No=b.createContext({add:ji,remove:ji});function dn($r){const er=b.useContext(No),Dr=b.useRef();return(0,ri.zX)(ci=>{if(ci){const Eo=$r?ci.querySelector($r):ci;er.add(Eo),Dr.current=Eo}else er.remove(Dr.current)})}var Ve=null,yt=m(81689),xt=m(38115),sn=()=>{const{cancelButtonProps:$r,cancelTextLocale:er,onCancel:Dr}=(0,b.useContext)(te);return b.createElement(xt.ZP,Object.assign({onClick:Dr},$r),er)},Ot=m(81201),bt=()=>{const{confirmLoading:$r,okButtonProps:er,okType:Dr,okTextLocale:pr,onOk:ci}=(0,b.useContext)(te);return b.createElement(xt.ZP,Object.assign({},(0,Ot.nx)(Dr),{loading:$r,onClick:ci},er),pr)},Ht=m(75707);function zn($r,er){return b.createElement("span",{className:`${$r}-close-x`},er||b.createElement(Be.Z,{className:`${$r}-close-icon`}))}const en=$r=>{const{okText:er,okType:Dr="primary",cancelText:pr,confirmLoading:ci,onOk:Eo,onCancel:mo,okButtonProps:Ts,cancelButtonProps:xs,footer:Er}=$r,[ui]=(0,P.Z)("Modal",(0,Ht.A)()),Xt=er||(ui==null?void 0:ui.okText),gn=pr||(ui==null?void 0:ui.cancelText),En={confirmLoading:ci,okButtonProps:Ts,cancelButtonProps:xs,okTextLocale:Xt,cancelTextLocale:gn,okType:Dr,onOk:Eo,onCancel:mo},tt=b.useMemo(()=>En,(0,y.Z)(Object.values(En)));let at;return typeof Er=="function"||typeof Er=="undefined"?(at=b.createElement(b.Fragment,null,b.createElement(sn,null),b.createElement(bt,null)),typeof Er=="function"&&(at=Er(at,{OkBtn:bt,CancelBtn:sn})),at=b.createElement(re,{value:tt},at)):at=Er,b.createElement(yt.n,{disabled:!1},at)};var fr=m(92068),Kr=m(42402),ii=m(69601),si=m(41788),uo=m(24577);function Qo($r){return{position:$r,inset:0}}const _n=$r=>{const{componentCls:er,antCls:Dr}=$r;return[{[`${er}-root`]:{[`${er}${Dr}-zoom-enter, ${er}${Dr}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:$r.motionDurationSlow,userSelect:"none"},[`${er}${Dr}-zoom-leave ${er}-content`]:{pointerEvents:"none"},[`${er}-mask`]:Object.assign(Object.assign({},Qo("fixed")),{zIndex:$r.zIndexPopupBase,height:"100%",backgroundColor:$r.colorBgMask,pointerEvents:"none",[`${er}-hidden`]:{display:"none"}}),[`${er}-wrap`]:Object.assign(Object.assign({},Qo("fixed")),{zIndex:$r.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${er}${Dr}-zoom-enter), &:has(${er}${Dr}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${er}-root`]:(0,Kr.J$)($r)}]},Vr=$r=>{const{componentCls:er}=$r;return[{[`${er}-root`]:{[`${er}-wrap-rtl`]:{direction:"rtl"},[`${er}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[er]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${$r.screenSMMax})`]:{[er]:{maxWidth:"calc(100vw - 16px)",margin:`${$r.marginXS} auto`},[`${er}-centered`]:{[er]:{flex:1}}}}},{[er]:Object.assign(Object.assign({},(0,fr.Wf)($r)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${$r.margin*2}px)`,margin:"0 auto",paddingBottom:$r.paddingLG,[`${er}-title`]:{margin:0,color:$r.titleColor,fontWeight:$r.fontWeightStrong,fontSize:$r.titleFontSize,lineHeight:$r.titleLineHeight,wordWrap:"break-word"},[`${er}-content`]:{position:"relative",backgroundColor:$r.contentBg,backgroundClip:"padding-box",border:0,borderRadius:$r.borderRadiusLG,boxShadow:$r.boxShadow,pointerEvents:"auto",padding:`${$r.paddingMD}px ${$r.paddingContentHorizontalLG}px`},[`${er}-close`]:Object.assign({position:"absolute",top:($r.modalHeaderHeight-$r.modalCloseBtnSize)/2,insetInlineEnd:($r.modalHeaderHeight-$r.modalCloseBtnSize)/2,zIndex:$r.zIndexPopupBase+10,padding:0,color:$r.modalCloseIconColor,fontWeight:$r.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:$r.borderRadiusSM,width:$r.modalCloseBtnSize,height:$r.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${$r.motionDurationMid}, background-color ${$r.motionDurationMid}`,"&-x":{display:"flex",fontSize:$r.fontSizeLG,fontStyle:"normal",lineHeight:`${$r.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:$r.modalIconHoverColor,backgroundColor:$r.wireframe?"transparent":$r.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:$r.wireframe?"transparent":$r.colorFillContentHover}},(0,fr.Qy)($r)),[`${er}-header`]:{color:$r.colorText,background:$r.headerBg,borderRadius:`${$r.borderRadiusLG}px ${$r.borderRadiusLG}px 0 0`,marginBottom:$r.marginXS},[`${er}-body`]:{fontSize:$r.fontSize,lineHeight:$r.lineHeight,wordWrap:"break-word"},[`${er}-footer`]:{textAlign:"end",background:$r.footerBg,marginTop:$r.marginSM,[`${$r.antCls}-btn + ${$r.antCls}-btn:not(${$r.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:$r.marginXS}},[`${er}-open`]:{overflow:"hidden"}})},{[`${er}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${er}-content, - ${er}-body, - ${er}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${er}-confirm-body`]:{marginBottom:"auto"}}}]},qr=$r=>{const{componentCls:er,antCls:Dr}=$r,pr=`${er}-confirm`;return{[er]:{[`${er}-content`]:{padding:0},[`${er}-header`]:{padding:$r.modalHeaderPadding,borderBottom:`${$r.modalHeaderBorderWidth}px ${$r.modalHeaderBorderStyle} ${$r.modalHeaderBorderColorSplit}`,marginBottom:0},[`${er}-body`]:{padding:$r.modalBodyPadding},[`${er}-footer`]:{padding:`${$r.modalFooterPaddingVertical}px ${$r.modalFooterPaddingHorizontal}px`,borderTop:`${$r.modalFooterBorderWidth}px ${$r.modalFooterBorderStyle} ${$r.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${$r.borderRadiusLG}px ${$r.borderRadiusLG}px`,marginTop:0}},[pr]:{[`${Dr}-modal-body`]:{padding:`${$r.padding*2}px ${$r.padding*2}px ${$r.paddingLG}px`},[`${pr}-body > ${$r.iconCls}`]:{marginInlineEnd:$r.margin},[`${pr}-btns`]:{marginTop:$r.marginLG}}}},Ui=$r=>{const{componentCls:er}=$r;return{[`${er}-root`]:{[`${er}-wrap-rtl`]:{direction:"rtl",[`${er}-confirm-body`]:{direction:"rtl"}}}}},xo=$r=>{const er=$r.padding,Dr=$r.fontSizeHeading5,pr=$r.lineHeightHeading5;return(0,si.TS)($r,{modalBodyPadding:$r.paddingLG,modalHeaderPadding:`${er}px ${$r.paddingLG}px`,modalHeaderBorderWidth:$r.lineWidth,modalHeaderBorderStyle:$r.lineType,modalHeaderBorderColorSplit:$r.colorSplit,modalHeaderHeight:pr*Dr+er*2,modalFooterBorderColorSplit:$r.colorSplit,modalFooterBorderStyle:$r.lineType,modalFooterPaddingVertical:$r.paddingXS,modalFooterPaddingHorizontal:$r.padding,modalFooterBorderWidth:$r.lineWidth,modalIconHoverColor:$r.colorIconHover,modalCloseIconColor:$r.colorIcon,modalCloseBtnSize:$r.fontSize*$r.lineHeight,modalConfirmIconSize:$r.fontSize*$r.lineHeight})},Us=$r=>({footerBg:"transparent",headerBg:$r.colorBgElevated,titleLineHeight:$r.lineHeightHeading5,titleFontSize:$r.fontSizeHeading5,contentBg:$r.colorBgElevated,titleColor:$r.colorTextHeading});var $n=(0,uo.Z)("Modal",$r=>{const er=xo($r);return[Vr(er),Ui(er),_n(er),$r.wireframe&&qr(er),(0,ii._y)(er,"zoom")]},Us),Kn=function($r,er){var Dr={};for(var pr in $r)Object.prototype.hasOwnProperty.call($r,pr)&&er.indexOf(pr)<0&&(Dr[pr]=$r[pr]);if($r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ci=0,pr=Object.getOwnPropertySymbols($r);ci{Fr={x:$r.pageX,y:$r.pageY},setTimeout(()=>{Fr=null},100)};me()&&document.documentElement.addEventListener("click",mi,!0);var ti=$r=>{var er;const{getPopupContainer:Dr,getPrefixCls:pr,direction:ci,modal:Eo}=b.useContext(So.E_),mo=Bl=>{const{onCancel:Fa}=$r;Fa==null||Fa(Bl)},Ts=Bl=>{const{onOk:Fa}=$r;Fa==null||Fa(Bl)},{prefixCls:xs,className:Er,rootClassName:ui,open:Xt,wrapClassName:gn,centered:En,getContainer:tt,closeIcon:at,closable:gt,focusTriggerAfterClose:Re=!0,style:lt,visible:St,width:ln=520,footer:Vn,classNames:wr,styles:ki}=$r,Vi=Kn($r,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),Ki=pr("modal",xs),ps=pr(),[Ns,Bs]=$n(Ki),_a=f()(gn,{[`${Ki}-centered`]:!!En,[`${Ki}-wrap-rtl`]:ci==="rtl"}),oo=Vn!==null&&b.createElement(en,Object.assign({},$r,{onOk:Ts,onCancel:mo})),[Ds,oa]=(0,Bo.Z)(gt,at,Bl=>zn(Ki,Bl),b.createElement(Be.Z,{className:`${Ki}-close-icon`}),!0),va=dn(`.${Ki}-content`);return Ns(b.createElement(go.BR,null,b.createElement(ho.Ux,{status:!0,override:!0},b.createElement(_r,Object.assign({width:ln},Vi,{getContainer:tt===void 0?Dr:tt,prefixCls:Ki,rootClassName:f()(Bs,ui),footer:oo,visible:Xt!=null?Xt:St,mousePosition:(er=Vi.mousePosition)!==null&&er!==void 0?er:Fr,onClose:mo,closable:Ds,closeIcon:oa,focusTriggerAfterClose:Re,transitionName:(0,S.m)(ps,"zoom",$r.transitionName),maskTransitionName:(0,S.m)(ps,"fade",$r.maskTransitionName),className:f()(Bs,Er,Eo==null?void 0:Eo.className),style:Object.assign(Object.assign({},Eo==null?void 0:Eo.style),lt),classNames:Object.assign(Object.assign({wrapper:_a},Eo==null?void 0:Eo.classNames),wr),styles:Object.assign(Object.assign({},Eo==null?void 0:Eo.styles),ki),panelRef:va})))))};const di=$r=>{const{componentCls:er,titleFontSize:Dr,titleLineHeight:pr,modalConfirmIconSize:ci,fontSize:Eo,lineHeight:mo}=$r,Ts=`${er}-confirm`,xs=Math.round(Dr*pr),Er=Math.round(Eo*mo);return{[Ts]:{"&-rtl":{direction:"rtl"},[`${$r.antCls}-modal-header`]:{display:"none"},[`${Ts}-body-wrapper`]:Object.assign({},(0,fr.dF)()),[`${Ts}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${$r.iconCls}`]:{flex:"none",fontSize:ci,marginInlineEnd:$r.marginSM,marginTop:(Er-ci)/2},[`&-has-title > ${$r.iconCls}`]:{marginTop:(xs-ci)/2}},[`${Ts}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:$r.marginXS,maxWidth:`calc(100% - ${$r.modalConfirmIconSize+$r.marginSM}px)`},[`${Ts}-title`]:{color:$r.colorTextHeading,fontWeight:$r.fontWeightStrong,fontSize:Dr,lineHeight:pr},[`${Ts}-content`]:{color:$r.colorText,fontSize:Eo,lineHeight:mo},[`${Ts}-btns`]:{textAlign:"end",marginTop:$r.marginSM,[`${$r.antCls}-btn + ${$r.antCls}-btn`]:{marginBottom:0,marginInlineStart:$r.marginXS}}},[`${Ts}-error ${Ts}-body > ${$r.iconCls}`]:{color:$r.colorError},[`${Ts}-warning ${Ts}-body > ${$r.iconCls}, - ${Ts}-confirm ${Ts}-body > ${$r.iconCls}`]:{color:$r.colorWarning},[`${Ts}-info ${Ts}-body > ${$r.iconCls}`]:{color:$r.colorInfo},[`${Ts}-success ${Ts}-body > ${$r.iconCls}`]:{color:$r.colorSuccess}}};var rn=(0,uo.b)(["Modal","confirm"],$r=>{const er=xo($r);return[di(er)]},Us,{order:-1e3}),Qn=function($r,er){var Dr={};for(var pr in $r)Object.prototype.hasOwnProperty.call($r,pr)&&er.indexOf(pr)<0&&(Dr[pr]=$r[pr]);if($r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ci=0,pr=Object.getOwnPropertySymbols($r);cilt,(0,y.Z)(Object.values(lt))),ln=b.createElement(b.Fragment,null,b.createElement(pe,null),b.createElement(fe,null)),Vn=$r.title!==void 0&&$r.title!==null,wr=`${Eo}-body`;return b.createElement("div",{className:`${Eo}-body-wrapper`},b.createElement("div",{className:f()(wr,{[`${wr}-has-title`]:Vn})},Xt,b.createElement("div",{className:`${Eo}-paragraph`},Vn&&b.createElement("span",{className:`${Eo}-title`},$r.title),b.createElement("div",{className:`${Eo}-content`},$r.content))),xs===void 0||typeof xs=="function"?b.createElement(re,{value:St},b.createElement("div",{className:`${Eo}-btns`},typeof xs=="function"?xs(ln,{OkBtn:fe,CancelBtn:pe}):ln)):xs,b.createElement(rn,{prefixCls:er}))}var as=$r=>{const{close:er,zIndex:Dr,afterClose:pr,open:ci,keyboard:Eo,centered:mo,getContainer:Ts,maskStyle:xs,direction:Er,prefixCls:ui,wrapClassName:Xt,rootPrefixCls:gn,iconPrefixCls:En,theme:tt,bodyStyle:at,closable:gt=!1,closeIcon:Re,modalRender:lt,focusTriggerAfterClose:St,onConfirm:ln}=$r,Vn=`${ui}-confirm`,wr=$r.width||416,ki=$r.style||{},Vi=$r.mask===void 0?!0:$r.mask,Ki=$r.maskClosable===void 0?!1:$r.maskClosable,ps=f()(Vn,`${Vn}-${$r.type}`,{[`${Vn}-rtl`]:Er==="rtl"},$r.className);return b.createElement(z.ZP,{prefixCls:gn,iconPrefixCls:En,direction:Er,theme:tt},b.createElement(ti,{prefixCls:ui,className:ps,wrapClassName:f()({[`${Vn}-centered`]:!!$r.centered},Xt),onCancel:()=>{er==null||er({triggerCancel:!0}),ln==null||ln(!1)},open:ci,title:"",footer:null,transitionName:(0,S.m)(gn||"","zoom",$r.transitionName),maskTransitionName:(0,S.m)(gn||"","fade",$r.maskTransitionName),mask:Vi,maskClosable:Ki,style:ki,styles:{body:at,mask:xs},width:wr,zIndex:Dr,afterClose:pr,keyboard:Eo,centered:mo,getContainer:Ts,closable:gt,closeIcon:Re,modalRender:lt,focusTriggerAfterClose:St},b.createElement(Xr,Object.assign({},$r,{confirmPrefixCls:Vn}))))},pn=[],xr=function($r,er){var Dr={};for(var pr in $r)Object.prototype.hasOwnProperty.call($r,pr)&&er.indexOf(pr)<0&&(Dr[pr]=$r[pr]);if($r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ci=0,pr=Object.getOwnPropertySymbols($r);cign&&gn.triggerCancel);$r.onCancel&&Xt&&$r.onCancel.apply($r,[()=>{}].concat((0,y.Z)(Er.slice(1))));for(let gn=0;gn{const tt=(0,Ht.A)(),{getPrefixCls:at,getIconPrefixCls:gt,getTheme:Re}=(0,z.w6)(),lt=at(void 0,vi()),St=Xt||`${lt}-modal`,ln=gt(),Vn=Re();let wr=gn;wr===!1&&(wr=void 0),(0,I.s)(b.createElement(as,Object.assign({},En,{getContainer:wr,prefixCls:St,rootPrefixCls:lt,iconPrefixCls:ln,okText:Er,locale:tt,theme:Vn,cancelText:ui||tt.cancelText})),er)})}function mo(){for(var xs=arguments.length,Er=new Array(xs),ui=0;ui{typeof $r.afterClose=="function"&&$r.afterClose(),ci.apply(this,Er)}}),Dr.visible&&delete Dr.visible,Eo(Dr)}function Ts(xs){typeof xs=="function"?Dr=xs(Dr):Dr=Object.assign(Object.assign({},Dr),xs),Eo(Dr)}return Eo(Dr),pn.push(mo),{destroy:mo,update:Ts}}function co($r){return Object.assign(Object.assign({},$r),{type:"warning"})}function Qr($r){return Object.assign(Object.assign({},$r),{type:"info"})}function oi($r){return Object.assign(Object.assign({},$r),{type:"success"})}function Zi($r){return Object.assign(Object.assign({},$r),{type:"error"})}function Ir($r){return Object.assign(Object.assign({},$r),{type:"confirm"})}function tn($r){let{rootPrefixCls:er}=$r;Jr=er}var Gn=m(91202),Ei=function($r,er){var Dr={};for(var pr in $r)Object.prototype.hasOwnProperty.call($r,pr)&&er.indexOf(pr)<0&&(Dr[pr]=$r[pr]);if($r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ci=0,pr=Object.getOwnPropertySymbols($r);ci{const{prefixCls:er,className:Dr,closeIcon:pr,closable:ci,type:Eo,title:mo,children:Ts}=$r,xs=Ei($r,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:Er}=b.useContext(So.E_),ui=Er(),Xt=er||Er("modal"),[,gn]=$n(Xt),En=`${Xt}-confirm`;let tt={};return Eo?tt={closable:ci!=null?ci:!1,title:"",footer:"",children:b.createElement(Xr,Object.assign({},$r,{prefixCls:Xt,confirmPrefixCls:En,rootPrefixCls:ui,content:Ts}))}:tt={closable:ci!=null?ci:!0,title:mo,footer:$r.footer===void 0?b.createElement(en,Object.assign({},$r)):$r.footer,children:Ts},b.createElement(mt,Object.assign({prefixCls:Xt,className:f()(gn,`${Xt}-pure-panel`,Eo&&En,Eo&&`${En}-${Eo}`,Dr)},xs,{closeIcon:zn(Xt,pr),closable:ci},tt))};var Ii=(0,Gn.i)(Ln);function nr(){const[$r,er]=b.useState([]),Dr=b.useCallback(pr=>(er(ci=>[].concat((0,y.Z)(ci),[pr])),()=>{er(ci=>ci.filter(Eo=>Eo!==pr))}),[]);return[$r,Dr]}var wi=m(530),Mi=function($r,er){var Dr={};for(var pr in $r)Object.prototype.hasOwnProperty.call($r,pr)&&er.indexOf(pr)<0&&(Dr[pr]=$r[pr]);if($r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ci=0,pr=Object.getOwnPropertySymbols($r);ci{var Dr,{afterClose:pr,config:ci}=$r,Eo=Mi($r,["afterClose","config"]);const[mo,Ts]=b.useState(!0),[xs,Er]=b.useState(ci),{direction:ui,getPrefixCls:Xt}=b.useContext(So.E_),gn=Xt("modal"),En=Xt(),tt=()=>{var lt;pr(),(lt=xs.afterClose)===null||lt===void 0||lt.call(xs)},at=function(){Ts(!1);for(var lt=arguments.length,St=new Array(lt),ln=0;lnwr&&wr.triggerCancel);xs.onCancel&&Vn&&xs.onCancel.apply(xs,[()=>{}].concat((0,y.Z)(St.slice(1))))};b.useImperativeHandle(er,()=>({destroy:at,update:lt=>{Er(St=>Object.assign(Object.assign({},St),lt))}}));const gt=(Dr=xs.okCancel)!==null&&Dr!==void 0?Dr:xs.type==="confirm",[Re]=(0,P.Z)("Modal",wi.Z.Modal);return b.createElement(as,Object.assign({prefixCls:gn,rootPrefixCls:En},xs,{close:at,open:mo,afterClose:tt,okText:xs.okText||(gt?Re==null?void 0:Re.okText:Re==null?void 0:Re.justOkText),direction:xs.direction||ui,cancelText:xs.cancelText||(Re==null?void 0:Re.cancelText)},Eo))};var Xn=b.forwardRef(Rr);let ms=0;const ya=b.memo(b.forwardRef(($r,er)=>{const[Dr,pr]=nr();return b.useImperativeHandle(er,()=>({patchElement:pr}),[]),b.createElement(b.Fragment,null,Dr)}));function fa(){const $r=b.useRef(null),[er,Dr]=b.useState([]);b.useEffect(()=>{er.length&&((0,y.Z)(er).forEach(mo=>{mo()}),Dr([]))},[er]);const pr=b.useCallback(Eo=>function(Ts){var xs;ms+=1;const Er=b.createRef();let ui;const Xt=new Promise(gt=>{ui=gt});let gn=!1,En;const tt=b.createElement(Xn,{key:`modal-${ms}`,config:Eo(Ts),ref:Er,afterClose:()=>{En==null||En()},isSilent:()=>gn,onConfirm:gt=>{ui(gt)}});return En=(xs=$r.current)===null||xs===void 0?void 0:xs.patchElement(tt),En&&pn.push(En),{destroy:()=>{function gt(){var Re;(Re=Er.current)===null||Re===void 0||Re.destroy()}Er.current?gt():Dr(Re=>[].concat((0,y.Z)(Re),[gt]))},update:gt=>{function Re(){var lt;(lt=Er.current)===null||lt===void 0||lt.update(gt)}Er.current?Re():Dr(lt=>[].concat((0,y.Z)(lt),[Re]))},then:gt=>(gn=!0,Xt.then(gt))}},[]);return[b.useMemo(()=>({info:pr(Qr),success:pr(oi),error:pr(Zi),warning:pr(co),confirm:pr(Ir)}),[]),b.createElement(ya,{key:"modal-holder",ref:$r})]}var Ws=fa;function Ua($r){return Ti(co($r))}const Ao=ti;Ao.useModal=Ws,Ao.info=function(er){return Ti(Qr(er))},Ao.success=function(er){return Ti(oi(er))},Ao.error=function(er){return Ti(Zi(er))},Ao.warning=Ua,Ao.warn=Ua,Ao.confirm=function(er){return Ti(Ir(er))},Ao.destroyAll=function(){for(;pn.length;){const er=pn.pop();er&&er()}},Ao.config=tn,Ao._InternalPanelDoNotUseOrYouWillBeFired=Ii;var cl=Ao},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 xe}});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),te=m(81201),re=m(879),ce=m(530),pe=m(36575),he=m(24577);const fe=Ae=>{const{componentCls:ge,iconCls:We,antCls:Se,zIndexPopup:Pt,colorText:dt,colorWarning:He,marginXXS:Ct,marginXS:ft,fontSize:zt,fontWeightStrong:mt,colorTextHeading:yn}=Ae;return{[ge]:{zIndex:Pt,[`&${Se}-popover`]:{fontSize:zt},[`${ge}-message`]:{marginBottom:ft,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${ge}-message-icon ${We}`]:{color:He,fontSize:zt,lineHeight:1,marginInlineEnd:ft},[`${ge}-title`]:{fontWeight:mt,color:yn,"&:only-child":{fontWeight:"normal"}},[`${ge}-description`]:{marginTop:Ct,color:dt}},[`${ge}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:ft}}}}};var Be=(0,he.Z)("Popconfirm",Ae=>fe(Ae),Ae=>{const{zIndexPopupBase:ge}=Ae;return{zIndexPopup:ge+60}},{resetStyle:!1}),Ie=function(Ae,ge){var We={};for(var Se in Ae)Object.prototype.hasOwnProperty.call(Ae,Se)&&ge.indexOf(Se)<0&&(We[Se]=Ae[Se]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Se=Object.getOwnPropertySymbols(Ae);Pt{const{prefixCls:ge,okButtonProps:We,cancelButtonProps:Se,title:Pt,description:dt,cancelText:He,okText:Ct,okType:ft="primary",icon:zt=w.createElement(y.Z,null),showCancel:mt=!0,close:yn,onConfirm:Bn,onCancel:Lr,onPopupClick:ri}=Ae,{getPrefixCls:gi}=w.useContext(C.E_),[ro]=(0,re.Z)("Popconfirm",ce.Z.Popconfirm),To=(0,P.Z)(Pt),_r=(0,P.Z)(dt);return w.createElement("div",{className:`${ge}-inner-content`,onClick:ri},w.createElement("div",{className:`${ge}-message`},zt&&w.createElement("span",{className:`${ge}-message-icon`},zt),w.createElement("div",{className:`${ge}-message-text`},To&&w.createElement("div",{className:b()(`${ge}-title`)},To),_r&&w.createElement("div",{className:`${ge}-description`},_r))),w.createElement("div",{className:`${ge}-buttons`},mt&&w.createElement(W.ZP,Object.assign({onClick:Lr,size:"small"},Se),He!=null?He:ro==null?void 0:ro.cancelText),w.createElement(S.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,te.nx)(ft)),We),actionFn:Bn,close:yn,prefixCls:gi("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Ct!=null?Ct:ro==null?void 0:ro.okText)))};var ve=Ae=>{const{prefixCls:ge,placement:We,className:Se,style:Pt}=Ae,dt=Ie(Ae,["prefixCls","placement","className","style"]),{getPrefixCls:He}=w.useContext(C.E_),Ct=He("popconfirm",ge),[ft]=Be(Ct);return ft(w.createElement(pe.ZP,{placement:We,className:b()(Ct,Se),style:Pt,content:w.createElement(je,Object.assign({prefixCls:Ct},dt))}))},ye=function(Ae,ge){var We={};for(var Se in Ae)Object.prototype.hasOwnProperty.call(Ae,Se)&&ge.indexOf(Se)<0&&(We[Se]=Ae[Se]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Se=Object.getOwnPropertySymbols(Ae);Pt{const{prefixCls:We,placement:Se="top",trigger:Pt="click",okType:dt="primary",icon:He=w.createElement(y.Z,null),children:Ct,overlayClassName:ft,onOpenChange:zt,onVisibleChange:mt}=Ae,yn=ye(Ae,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Bn}=w.useContext(C.E_),[Lr,ri]=(0,k.Z)(!1,{value:Ae.open,defaultValue:Ae.defaultOpen}),gi=(go,ji)=>{ri(go,!0),mt==null||mt(go),zt==null||zt(go,ji)},ro=go=>{gi(!1,go)},To=go=>{var ji;return(ji=Ae.onConfirm)===null||ji===void 0?void 0:ji.call(void 0,go)},_r=go=>{var ji;gi(!1,go),(ji=Ae.onCancel)===null||ji===void 0||ji.call(void 0,go)},Bo=go=>{go.keyCode===z.Z.ESC&&Lr&&gi(!1,go)},fs=go=>{const{disabled:ji=!1}=Ae;ji||gi(go)},me=Bn("popconfirm",We),So=b()(me,ft),[ho]=Be(me);return ho(w.createElement(f.Z,Object.assign({},(0,N.Z)(yn,["title"]),{trigger:Pt,placement:Se,onOpenChange:fs,open:Lr,ref:ge,overlayClassName:So,content:w.createElement(je,Object.assign({okType:dt,icon:He},Ae,{prefixCls:me,close:ro,onConfirm:To,onCancel:_r})),"data-popover-inject":!0}),(0,A.Tm)(Ct,{onKeyDown:go=>{var ji,No;w.isValidElement(Ct)&&((No=Ct==null?void 0:(ji=Ct.props).onKeyDown)===null||No===void 0||No.call(ji,go)),Bo(go)}})))});Ce._InternalPanelDoNotUseOrYouWillBeFired=ve;var xe=Ce},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 te={};for(var re in P)Object.prototype.hasOwnProperty.call(P,re)&&W.indexOf(re)<0&&(te[re]=P[re]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,re=Object.getOwnPropertySymbols(P);ce{if(!(!W&&!te))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)(te)))},f=P=>{const{hashId:W,prefixCls:te,className:re,style:ce,placement:pe="top",title:he,content:fe,children:Be}=P;return z.createElement("div",{className:I()(W,te,`${te}-pure`,`${te}-placement-${pe}`,re),style:ce},z.createElement("div",{className:`${te}-arrow`}),z.createElement(b.G,Object.assign({},P,{className:W,prefixCls:te}),Be||C(te,he,fe)))},S=P=>{const{prefixCls:W}=P,te=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({},te,{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,te){var re={};for(var ce in W)Object.prototype.hasOwnProperty.call(W,ce)&&te.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:te,content:re,prefixCls:ce}=W;return b.createElement(b.Fragment,null,te&&b.createElement("div",{className:`${ce}-title`},(0,z.Z)(te)),b.createElement("div",{className:`${ce}-inner-content`},(0,z.Z)(re)))},P=b.forwardRef((W,te)=>{const{prefixCls:re,title:ce,content:pe,overlayClassName:he,placement:fe="top",trigger:Be="hover",mouseEnterDelay:Ie=.1,mouseLeaveDelay:je=.1,overlayStyle:be={}}=W,ve=f(W,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ye}=b.useContext(N.E_),Ce=ye("popover",re),[xe,Ae]=(0,C.Z)(Ce),ge=ye(),We=I()(he,Ae);return xe(b.createElement(w.Z,Object.assign({placement:fe,trigger:Be,mouseEnterDelay:Ie,mouseLeaveDelay:je,overlayStyle:be},ve,{prefixCls:Ce,overlayClassName:We,ref:te,overlay:ce||pe?b.createElement(S,{prefixCls:Ce,title:ce,content:pe}):null,transitionName:(0,k.m)(ge,"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:te,popoverPadding:re,boxShadowSecondary:ce,colorTextHeading:pe,borderRadiusLG:he,zIndexPopup:fe,marginXS:Be,colorBgElevated:Ie,popoverBg:je}=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:je,backgroundClip:"padding-box",borderRadius:he,boxShadow:ce,padding:re},[`${S}-title`]:{minWidth:W,marginBottom:Be,color:pe,fontWeight:te},[`${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:te,paddingSM:re,controlHeight:ce,fontSize:pe,lineHeight:he,padding:fe}=f,Be=ce-Math.round(pe*he),Ie=Be/2,je=Be/2-P,be=fe;return{[S]:{[`${S}-inner`]:{padding:0},[`${S}-title`]:{margin:0,padding:`${Ie}px ${be}px ${je}px`,borderBottom:`${P}px ${W} ${te}`},[`${S}-inner-content`]:{padding:`${re}px ${be}px`}}}};V.Z=(0,k.Z)("Popover",f=>{const{colorBgElevated:S,colorText:P,wireframe:W}=f,te=(0,N.TS)(f,{popoverPadding:12,popoverBg:S,popoverColor:P});return[w(te),A(te),W&&C(te),(0,I._y)(te,"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 zt}});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),te=m(9681),re=m(27724),ce=m(71208),pe=m(81689),he=m(86818),fe=m(92068),Be=m(24577),Ie=m(41788);const je=mt=>{const{componentCls:yn,antCls:Bn}=mt,Lr=`${yn}-group`;return{[Lr]:Object.assign(Object.assign({},(0,fe.Wf)(mt)),{display:"inline-block",fontSize:0,[`&${Lr}-rtl`]:{direction:"rtl"},[`${Bn}-badge ${Bn}-badge-count`]:{zIndex:1},[`> ${Bn}-badge:not(:first-child) > ${Bn}-button-wrapper`]:{borderInlineStart:"none"}})}},be=mt=>{const{componentCls:yn,wrapperMarginInlineEnd:Bn,colorPrimary:Lr,radioSize:ri,motionDurationSlow:gi,motionDurationMid:ro,motionEaseInOutCirc:To,colorBgContainer:_r,colorBorder:Bo,lineWidth:fs,dotSize:me,colorBgContainerDisabled:So,colorTextDisabled:ho,paddingXS:go,dotColorDisabled:ji,lineType:No,radioDotDisabledSize:dn,wireframe:Ve,colorWhite:yt}=mt,xt=`${yn}-inner`;return{[`${yn}-wrapper`]:Object.assign(Object.assign({},(0,fe.Wf)(mt)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Bn,cursor:"pointer",[`&${yn}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:mt.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${yn}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${fs}px ${No} ${Lr}`,borderRadius:"50%",visibility:"hidden",content:'""'},[yn]:Object.assign(Object.assign({},(0,fe.Wf)(mt)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${yn}-wrapper:hover &, - &:hover ${xt}`]:{borderColor:Lr},[`${yn}-input:focus-visible + ${xt}`]:Object.assign({},(0,fe.oN)(mt)),[`${yn}:hover::after, ${yn}-wrapper:hover &::after`]:{visibility:"visible"},[`${yn}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:ri,height:ri,marginBlockStart:ri/-2,marginInlineStart:ri/-2,backgroundColor:Ve?Lr:yt,borderBlockStart:0,borderInlineStart:0,borderRadius:ri,transform:"scale(0)",opacity:0,transition:`all ${gi} ${To}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:ri,height:ri,backgroundColor:_r,borderColor:Bo,borderStyle:"solid",borderWidth:fs,borderRadius:"50%",transition:`all ${ro}`},[`${yn}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${yn}-checked`]:{[xt]:{borderColor:Lr,backgroundColor:Ve?_r:Lr,"&::after":{transform:`scale(${me/ri})`,opacity:1,transition:`all ${gi} ${To}`}}},[`${yn}-disabled`]:{cursor:"not-allowed",[xt]:{backgroundColor:So,borderColor:Bo,cursor:"not-allowed","&::after":{backgroundColor:ji}},[`${yn}-input`]:{cursor:"not-allowed"},[`${yn}-disabled + span`]:{color:ho,cursor:"not-allowed"},[`&${yn}-checked`]:{[xt]:{"&::after":{transform:`scale(${dn/ri})`}}}},[`span${yn} + *`]:{paddingInlineStart:go,paddingInlineEnd:go}})}},ve=mt=>{const{buttonColor:yn,controlHeight:Bn,componentCls:Lr,lineWidth:ri,lineType:gi,colorBorder:ro,motionDurationSlow:To,motionDurationMid:_r,buttonPaddingInline:Bo,fontSize:fs,buttonBg:me,fontSizeLG:So,controlHeightLG:ho,controlHeightSM:go,paddingXS:ji,borderRadius:No,borderRadiusSM:dn,borderRadiusLG:Ve,buttonCheckedBg:yt,buttonSolidCheckedColor:xt,colorTextDisabled:Wt,colorBgContainerDisabled:sn,buttonCheckedBgDisabled:Ot,buttonCheckedColorDisabled:Tt,colorPrimary:bt,colorPrimaryHover:Ht,colorPrimaryActive:zn,buttonSolidCheckedBg:en,buttonSolidCheckedHoverBg:fr,buttonSolidCheckedActiveBg:Kr}=mt;return{[`${Lr}-button-wrapper`]:{position:"relative",display:"inline-block",height:Bn,margin:0,paddingInline:Bo,paddingBlock:0,color:yn,fontSize:fs,lineHeight:`${Bn-ri*2}px`,background:me,border:`${ri}px ${gi} ${ro}`,borderBlockStartWidth:ri+.02,borderInlineStartWidth:0,borderInlineEndWidth:ri,cursor:"pointer",transition:[`color ${_r}`,`background ${_r}`,`box-shadow ${_r}`].join(","),a:{color:yn},[`> ${Lr}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-ri,insetInlineStart:-ri,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:ri,paddingInline:0,backgroundColor:ro,transition:`background-color ${To}`,content:'""'}},"&:first-child":{borderInlineStart:`${ri}px ${gi} ${ro}`,borderStartStartRadius:No,borderEndStartRadius:No},"&:last-child":{borderStartEndRadius:No,borderEndEndRadius:No},"&:first-child:last-child":{borderRadius:No},[`${Lr}-group-large &`]:{height:ho,fontSize:So,lineHeight:`${ho-ri*2}px`,"&:first-child":{borderStartStartRadius:Ve,borderEndStartRadius:Ve},"&:last-child":{borderStartEndRadius:Ve,borderEndEndRadius:Ve}},[`${Lr}-group-small &`]:{height:go,paddingInline:ji-ri,paddingBlock:0,lineHeight:`${go-ri*2}px`,"&:first-child":{borderStartStartRadius:dn,borderEndStartRadius:dn},"&:last-child":{borderStartEndRadius:dn,borderEndEndRadius:dn}},"&:hover":{position:"relative",color:bt},"&:has(:focus-visible)":Object.assign({},(0,fe.oN)(mt)),[`${Lr}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Lr}-button-wrapper-disabled)`]:{zIndex:1,color:bt,background:yt,borderColor:bt,"&::before":{backgroundColor:bt},"&:first-child":{borderColor:bt},"&:hover":{color:Ht,borderColor:Ht,"&::before":{backgroundColor:Ht}},"&:active":{color:zn,borderColor:zn,"&::before":{backgroundColor:zn}}},[`${Lr}-group-solid &-checked:not(${Lr}-button-wrapper-disabled)`]:{color:xt,background:en,borderColor:en,"&:hover":{color:xt,background:fr,borderColor:fr},"&:active":{color:xt,background:Kr,borderColor:Kr}},"&-disabled":{color:Wt,backgroundColor:sn,borderColor:ro,cursor:"not-allowed","&:first-child, &:hover":{color:Wt,backgroundColor:sn,borderColor:ro}},[`&-disabled${Lr}-button-wrapper-checked`]:{color:Tt,backgroundColor:Ot,borderColor:ro,boxShadow:"none"}}}},ye=mt=>mt-4*2;var Ce=(0,Be.Z)("Radio",mt=>{const{controlOutline:yn,controlOutlineWidth:Bn,radioSize:Lr}=mt,ri=`0 0 0 ${Bn}px ${yn}`,gi=ri,ro=ye(Lr),To=(0,Ie.TS)(mt,{radioDotDisabledSize:ro,radioFocusShadow:ri,radioButtonFocusShadow:gi});return[je(To),be(To),ve(To)]},mt=>{const{wireframe:yn,padding:Bn,marginXS:Lr,lineWidth:ri,fontSizeLG:gi,colorText:ro,colorBgContainer:To,colorTextDisabled:_r,controlItemBgActiveDisabled:Bo,colorTextLightSolid:fs,colorPrimary:me,colorPrimaryHover:So,colorPrimaryActive:ho}=mt,go=4,ji=gi,No=yn?ye(ji):ji-(go+ri)*2;return{radioSize:ji,dotSize:No,dotColorDisabled:_r,buttonSolidCheckedColor:fs,buttonSolidCheckedBg:me,buttonSolidCheckedHoverBg:So,buttonSolidCheckedActiveBg:ho,buttonBg:To,buttonCheckedBg:To,buttonColor:ro,buttonCheckedBgDisabled:Bo,buttonCheckedColorDisabled:_r,buttonPaddingInline:Bn-ri,wrapperMarginInlineEnd:Lr}}),xe=function(mt,yn){var Bn={};for(var Lr in mt)Object.prototype.hasOwnProperty.call(mt,Lr)&&yn.indexOf(Lr)<0&&(Bn[Lr]=mt[Lr]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ri=0,Lr=Object.getOwnPropertySymbols(mt);ri{var Bn,Lr;const ri=y.useContext(f),gi=y.useContext(S),{getPrefixCls:ro,direction:To,radio:_r}=y.useContext(N.E_),Bo=y.useRef(null),fs=(0,te.sQ)(yn,Bo),{isFormItemInput:me}=y.useContext(he.aM),So=zn=>{var en,fr;(en=mt.onChange)===null||en===void 0||en.call(mt,zn),(fr=ri==null?void 0:ri.onChange)===null||fr===void 0||fr.call(ri,zn)},{prefixCls:ho,className:go,rootClassName:ji,children:No,style:dn}=mt,Ve=xe(mt,["prefixCls","className","rootClassName","children","style"]),yt=ro("radio",ho),xt=((ri==null?void 0:ri.optionType)||gi)==="button",Wt=xt?`${yt}-button`:yt,[sn,Ot]=Ce(yt),Tt=Object.assign({},Ve),bt=y.useContext(pe.Z);ri&&(Tt.name=ri.name,Tt.onChange=So,Tt.checked=mt.value===ri.value,Tt.disabled=(Bn=Tt.disabled)!==null&&Bn!==void 0?Bn:ri.disabled),Tt.disabled=(Lr=Tt.disabled)!==null&&Lr!==void 0?Lr:bt;const Ht=b()(`${Wt}-wrapper`,{[`${Wt}-wrapper-checked`]:Tt.checked,[`${Wt}-wrapper-disabled`]:Tt.disabled,[`${Wt}-wrapper-rtl`]:To==="rtl",[`${Wt}-wrapper-in-form-item`]:me},_r==null?void 0:_r.className,go,ji,Ot);return sn(y.createElement(re.Z,{component:"Radio",disabled:Tt.disabled},y.createElement("label",{className:Ht,style:Object.assign(Object.assign({},_r==null?void 0:_r.style),dn),onMouseEnter:mt.onMouseEnter,onMouseLeave:mt.onMouseLeave},y.createElement(W.Z,Object.assign({},Tt,{className:b()(Tt.className,!xt&&ce.A),type:"radio",prefixCls:Wt,ref:fs})),No!==void 0?y.createElement("span",null,No):null)))};var We=y.forwardRef(Ae);const Se=y.forwardRef((mt,yn)=>{const{getPrefixCls:Bn,direction:Lr}=y.useContext(N.E_),[ri,gi]=(0,z.Z)(mt.defaultValue,{value:mt.value}),ro=en=>{const fr=ri,Kr=en.target.value;"value"in mt||gi(Kr);const{onChange:ii}=mt;ii&&Kr!==fr&&ii(en)},{prefixCls:To,className:_r,rootClassName:Bo,options:fs,buttonStyle:me="outline",disabled:So,children:ho,size:go,style:ji,id:No,onMouseEnter:dn,onMouseLeave:Ve,onFocus:yt,onBlur:xt}=mt,Wt=Bn("radio",To),sn=`${Wt}-group`,[Ot,Tt]=Ce(Wt);let bt=ho;fs&&fs.length>0&&(bt=fs.map(en=>typeof en=="string"||typeof en=="number"?y.createElement(We,{key:en.toString(),prefixCls:Wt,disabled:So,value:en,checked:ri===en},en):y.createElement(We,{key:`radio-group-value-options-${en.value}`,prefixCls:Wt,disabled:en.disabled||So,value:en.value,checked:ri===en.value,title:en.title,style:en.style,id:en.id},en.label)));const Ht=(0,w.Z)(go),zn=b()(sn,`${sn}-${me}`,{[`${sn}-${Ht}`]:Ht,[`${sn}-rtl`]:Lr==="rtl"},_r,Bo,Tt);return Ot(y.createElement("div",Object.assign({},(0,k.Z)(mt,{aria:!0,data:!0}),{className:zn,style:ji,onMouseEnter:dn,onMouseLeave:Ve,onFocus:yt,onBlur:xt,id:No,ref:yn}),y.createElement(C,{value:{onChange:ro,value:ri,disabled:mt.disabled,name:mt.name,optionType:mt.optionType}},bt)))});var Pt=y.memo(Se),dt=function(mt,yn){var Bn={};for(var Lr in mt)Object.prototype.hasOwnProperty.call(mt,Lr)&&yn.indexOf(Lr)<0&&(Bn[Lr]=mt[Lr]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ri=0,Lr=Object.getOwnPropertySymbols(mt);ri{const{getPrefixCls:Bn}=y.useContext(N.E_),{prefixCls:Lr}=mt,ri=dt(mt,["prefixCls"]),gi=Bn("radio",Lr);return y.createElement(P,{value:"button"},y.createElement(We,Object.assign({prefixCls:gi},ri,{type:"radio",ref:yn})))};var Ct=y.forwardRef(He);const ft=We;ft.Button=Ct,ft.Group=Pt,ft.__ANT_RADIO=!0;var zt=ft},58434:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return dt}});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(Ct,ft){return y.createElement(A.Z,(0,k.Z)({},Ct,{ref:ft,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:Ct,lineHeightHeading3:ft,iconCls:zt,padding:mt,paddingXL:yn,paddingXS:Bn,paddingLG:Lr,marginXS:ri,lineHeight:gi}=He;return{[Ct]:{padding:`${Lr*2}px ${yn}px`,"&-rtl":{direction:"rtl"}},[`${Ct} ${Ct}-image`]:{width:He.imageWidth,height:He.imageHeight,margin:"auto"},[`${Ct} ${Ct}-icon`]:{marginBottom:Lr,textAlign:"center",[`& > ${zt}`]:{fontSize:He.iconFontSize}},[`${Ct} ${Ct}-title`]:{color:He.colorTextHeading,fontSize:He.titleFontSize,lineHeight:ft,marginBlock:ri,textAlign:"center"},[`${Ct} ${Ct}-subtitle`]:{color:He.colorTextDescription,fontSize:He.subtitleFontSize,lineHeight:gi,textAlign:"center"},[`${Ct} ${Ct}-content`]:{marginTop:Lr,padding:`${Lr}px ${mt*2.5}px`,backgroundColor:He.colorFillAlter},[`${Ct} ${Ct}-extra`]:{margin:He.extraMargin,textAlign:"center","& > *":{marginInlineEnd:Bn,"&:last-child":{marginInlineEnd:0}}}}},Ie=He=>{const{componentCls:Ct,iconCls:ft}=He;return{[`${Ct}-success ${Ct}-icon > ${ft}`]:{color:He.resultSuccessIconColor},[`${Ct}-error ${Ct}-icon > ${ft}`]:{color:He.resultErrorIconColor},[`${Ct}-info ${Ct}-icon > ${ft}`]:{color:He.resultInfoIconColor},[`${Ct}-warning ${Ct}-icon > ${ft}`]:{color:He.resultWarningIconColor}}},je=He=>[Be(He),Ie(He)],be=He=>je(He);var ve=(0,he.Z)("Result",He=>{const Ct=He.colorInfo,ft=He.colorError,zt=He.colorSuccess,mt=He.colorWarning,yn=(0,fe.TS)(He,{resultInfoIconColor:Ct,resultErrorIconColor:ft,resultSuccessIconColor:zt,resultWarningIconColor:mt,imageWidth:250,imageHeight:295});return[be(yn)]},He=>({titleFontSize:He.fontSizeHeading3,subtitleFontSize:He.fontSize,iconFontSize:He.fontSizeHeading3*3,extraMargin:`${He.paddingLG}px 0 0 0`})),Ce=()=>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 xe={success:I.Z,error:b.Z,info:z.Z,warning:f},Ae={404:re,500:pe,403:Ce},ge=Object.keys(Ae),We=He=>{let{prefixCls:Ct,icon:ft,status:zt}=He;const mt=P()(`${Ct}-icon`);if(ge.includes(`${zt}`)){const Bn=Ae[zt];return y.createElement("div",{className:`${mt} ${Ct}-image`},y.createElement(Bn,null))}const yn=y.createElement(xe[zt]);return ft===null||ft===!1?null:y.createElement("div",{className:mt},ft||yn)},Se=He=>{let{prefixCls:Ct,extra:ft}=He;return ft?y.createElement("div",{className:`${Ct}-extra`},ft):null},Pt=He=>{let{prefixCls:Ct,className:ft,rootClassName:zt,subTitle:mt,title:yn,style:Bn,children:Lr,status:ri="info",icon:gi,extra:ro}=He;const{getPrefixCls:To,direction:_r,result:Bo}=y.useContext(W.E_),fs=To("result",Ct),[me,So]=ve(fs),ho=P()(fs,`${fs}-${ri}`,ft,Bo==null?void 0:Bo.className,zt,{[`${fs}-rtl`]:_r==="rtl"},So),go=Object.assign(Object.assign({},Bo==null?void 0:Bo.style),Bn);return me(y.createElement("div",{className:ho,style:go},y.createElement(We,{prefixCls:fs,status:ri,icon:gi}),y.createElement("div",{className:`${fs}-title`},yn),mt&&y.createElement("div",{className:`${fs}-subtitle`},mt),y.createElement(Se,{prefixCls:fs,extra:ro}),Lr&&y.createElement("div",{className:`${fs}-content`},Lr)))};Pt.PRESENTED_IMAGE_403=Ae[403],Pt.PRESENTED_IMAGE_404=Ae[404],Pt.PRESENTED_IMAGE_500=Ae[500];var dt=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),te=m(58370),re=m(79857),ce=m(5998),pe=m(20446),he=m(86755),fe=function(ve,ye){var Ce={};for(var xe in ve)Object.prototype.hasOwnProperty.call(ve,xe)&&ye.indexOf(xe)<0&&(Ce[xe]=ve[xe]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,xe=Object.getOwnPropertySymbols(ve);Ae{var Ce,{prefixCls:xe,bordered:Ae=!0,className:ge,rootClassName:We,getPopupContainer:Se,popupClassName:Pt,dropdownClassName:dt,listHeight:He=256,placement:Ct,listItemHeight:ft=24,size:zt,disabled:mt,notFoundContent:yn,status:Bn,builtinPlacements:Lr,dropdownMatchSelectWidth:ri,popupMatchSelectWidth:gi,direction:ro,style:To,allowClear:_r}=ve,Bo=fe(ve,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:fs,getPrefixCls:me,renderEmpty:So,direction:ho,virtual:go,popupMatchSelectWidth:ji,popupOverflow:No,select:dn}=y.useContext(C.E_),Ve=me("select",xe),yt=me(),xt=ro!=null?ro:ho,{compactSize:Wt,compactItemClassnames:sn}=(0,te.ri)(Ve,xt),[Ot,Tt]=(0,re.Z)(Ve),bt=y.useMemo(()=>{const{mode:rn}=Bo;if(rn!=="combobox")return rn===Be?"combobox":rn},[Bo.mode]),Ht=bt==="multiple"||bt==="tags",zn=(0,pe.Z)(Bo.suffixIcon,Bo.showArrow),en=(Ce=gi!=null?gi:ri)!==null&&Ce!==void 0?Ce:ji,{status:fr,hasFeedback:Kr,isFormItemInput:ii,feedbackIcon:si}=y.useContext(W.aM),uo=(0,A.F)(fr,Bn);let Qo;yn!==void 0?Qo=yn:bt==="combobox"?Qo=null:Qo=(So==null?void 0:So("Select"))||y.createElement(f.Z,{componentName:"Select"});const{suffixIcon:_n,itemIcon:Vr,removeIcon:qr,clearIcon:Ui}=(0,he.Z)(Object.assign(Object.assign({},Bo),{multiple:Ht,hasFeedback:Kr,feedbackIcon:si,showSuffixIcon:zn,prefixCls:Ve,showArrow:Bo.showArrow,componentName:"Select"})),xo=_r===!0?{clearIcon:Ui}:_r,Us=(0,k.Z)(Bo,["suffixIcon","itemIcon"]),$n=b()(Pt||dt,{[`${Ve}-dropdown-${xt}`]:xt==="rtl"},We,Tt),Kn=(0,P.Z)(rn=>{var Qn;return(Qn=zt!=null?zt:Wt)!==null&&Qn!==void 0?Qn:rn}),Fr=y.useContext(S.Z),mi=mt!=null?mt:Fr,Tr=b()({[`${Ve}-lg`]:Kn==="large",[`${Ve}-sm`]:Kn==="small",[`${Ve}-rtl`]:xt==="rtl",[`${Ve}-borderless`]:!Ae,[`${Ve}-in-form-item`]:ii},(0,A.Z)(Ve,uo,Kr),sn,dn==null?void 0:dn.className,ge,We,Tt),ti=y.useMemo(()=>Ct!==void 0?Ct:xt==="rtl"?"bottomRight":"bottomLeft",[Ct,xt]),di=(0,ce.Z)(Lr,No);return Ot(y.createElement(z.ZP,Object.assign({ref:ye,virtual:go,showSearch:dn==null?void 0:dn.showSearch},Us,{style:Object.assign(Object.assign({},dn==null?void 0:dn.style),To),dropdownMatchSelectWidth:en,builtinPlacements:di,transitionName:(0,N.m)(yt,"slide-up",Bo.transitionName),listHeight:He,listItemHeight:ft,mode:bt,prefixCls:Ve,placement:ti,direction:xt,suffixIcon:_n,menuItemSelectedIcon:Vr,removeIcon:qr,allowClear:xo,notFoundContent:Qo,className:Tr,getPopupContainer:Se||fs,dropdownClassName:$n,disabled:mi})))},je=y.forwardRef(Ie),be=(0,w.Z)(je);je.SECRET_COMBOBOX_MODE_DO_NOT_USE=Be,je.Option=z.Wx,je.OptGroup=z.Xo,je._InternalPanelDoNotUseOrYouWillBeFired=be,V.Z=je},79857:function(nt,V,m){"use strict";m.d(V,{Z:function(){return je}});var y=m(92068),I=m(73973),b=m(41788),z=m(24577),k=m(22759),N=m(40659);const w=be=>{const{optionHeight:ve,optionFontSize:ye,optionLineHeight:Ce,optionPadding:xe}=be;return{position:"relative",display:"block",minHeight:ve,padding:xe,color:be.colorText,fontWeight:"normal",fontSize:ye,lineHeight:Ce,boxSizing:"border-box"}};var C=be=>{const{antCls:ve,componentCls:ye}=be,Ce=`${ye}-item`,xe=`&${ve}-slide-up-enter${ve}-slide-up-enter-active`,Ae=`&${ve}-slide-up-appear${ve}-slide-up-appear-active`,ge=`&${ve}-slide-up-leave${ve}-slide-up-leave-active`,We=`${ye}-dropdown-placement-`;return[{[`${ye}-dropdown`]:Object.assign(Object.assign({},(0,y.Wf)(be)),{position:"absolute",top:-9999,zIndex:be.zIndexPopup,boxSizing:"border-box",padding:be.paddingXXS,overflow:"hidden",fontSize:be.fontSize,fontVariant:"initial",backgroundColor:be.colorBgElevated,borderRadius:be.borderRadiusLG,outline:"none",boxShadow:be.boxShadowSecondary,[` - ${xe}${We}bottomLeft, - ${Ae}${We}bottomLeft - `]:{animationName:k.fJ},[` - ${xe}${We}topLeft, - ${Ae}${We}topLeft, - ${xe}${We}topRight, - ${Ae}${We}topRight - `]:{animationName:k.Qt},[`${ge}${We}bottomLeft`]:{animationName:k.Uw},[` - ${ge}${We}topLeft, - ${ge}${We}topRight - `]:{animationName:k.ly},"&-hidden":{display:"none"},[`${Ce}`]:Object.assign(Object.assign({},w(be)),{cursor:"pointer",transition:`background ${be.motionDurationSlow} ease`,borderRadius:be.borderRadiusSM,"&-group":{color:be.colorTextDescription,fontSize:be.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},y.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ce}-option-disabled)`]:{backgroundColor:be.optionActiveBg},[`&-selected:not(${Ce}-option-disabled)`]:{color:be.optionSelectedColor,fontWeight:be.optionSelectedFontWeight,backgroundColor:be.optionSelectedBg,[`${Ce}-option-state`]:{color:be.colorPrimary}},"&-disabled":{[`&${Ce}-option-selected`]:{backgroundColor:be.colorBgContainerDisabled},color:be.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:be.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,k.oN)(be,"slide-up"),(0,k.oN)(be,"slide-down"),(0,N.Fm)(be,"move-up"),(0,N.Fm)(be,"move-down")]};const f=2,S=be=>{let{multipleSelectItemHeight:ve,selectHeight:ye,lineWidth:Ce}=be;const xe=(ye-ve)/2-Ce,Ae=Math.ceil(xe/2);return[xe,Ae]};function P(be,ve){const{componentCls:ye,iconCls:Ce}=be,xe=`${ye}-selection-overflow`,Ae=be.multipleSelectItemHeight,[ge]=S(be),We=ve?`${ye}-${ve}`:"";return{[`${ye}-multiple${We}`]:{fontSize:be.fontSize,[xe]:{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:`${ge-f}px ${f*2}px`,borderRadius:be.borderRadius,[`${ye}-show-search&`]:{cursor:"text"},[`${ye}-disabled&`]:{background:be.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:be.fontSizeIcon+be.controlPaddingHorizontal},[`${ye}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ae,marginTop:f,marginBottom:f,lineHeight:`${Ae-be.lineWidth*2}px`,background:be.multipleItemBg,border:`${be.lineWidth}px ${be.lineType} ${be.multipleItemBorderColor}`,borderRadius:be.borderRadiusSM,cursor:"default",transition:`font-size ${be.motionDurationSlow}, line-height ${be.motionDurationSlow}, height ${be.motionDurationSlow}`,marginInlineEnd:f*2,paddingInlineStart:be.paddingXS,paddingInlineEnd:be.paddingXS/2,[`${ye}-disabled&`]:{color:be.multipleItemColorDisabled,borderColor:be.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:be.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,y.Ro)()),{display:"inline-flex",alignItems:"center",color:be.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ce}`]:{verticalAlign:"-0.2em"},"&:hover":{color:be.colorIconHover}})},[`${xe}-item + ${xe}-item`]:{[`${ye}-selection-search`]:{marginInlineStart:0}},[`${xe}-item-suffix`]:{height:"100%"},[`${ye}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:be.inputPaddingHorizontalBase-ge,[` + `]:{paddingTop:hn.paddingXS},[`> ${rn}`]:Object.assign(Object.assign(Object.assign({borderRadius:Hi},Oo(hn)),$i(hn)),{[`${rn}-item, ${rn}-submenu > ${rn}-submenu-title`]:{borderRadius:Io},[`${rn}-submenu-title::after`]:{transition:`transform ${Mt} ${Dn}`}})}}),$i(hn)),{[`&-inline-collapsed ${rn}-submenu-arrow, + &-inline ${rn}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${zr})`},"&::after":{transform:`rotate(45deg) translateX(-${zr})`}},[`${rn}-submenu-open${rn}-submenu-inline > ${rn}-submenu-title > ${rn}-submenu-arrow`]:{transform:`translateY(-${On*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${zr})`},"&::before":{transform:`rotate(45deg) translateX(${zr})`}}})},{[`${En}-layout-header`]:{[rn]:{lineHeight:"inherit"}}}]};var Vr=(hn,En)=>(0,Tt.Z)("Menu",Jt=>{if(En===!1)return[];const{colorBgElevated:Mt,colorPrimary:Qt,colorTextLightSolid:Dn,controlHeightLG:sn,fontSize:wr,darkItemColor:jr,darkDangerItemColor:xi,darkItemBg:Pr,darkSubMenuItemBg:Hi,darkItemSelectedColor:Io,darkItemSelectedBg:On,darkDangerItemSelectedBg:zr,darkItemHoverBg:qr,darkGroupTitleColor:Wi,darkItemHoverColor:ir,darkItemDisabledColor:Jn,darkDangerItemHoverColor:$t,darkDangerItemSelectedColor:Gt,darkDangerItemActiveBg:wn}=Jt,Zn=wr/7*5,_r=(0,Nn.TS)(Jt,{menuArrowSize:Zn,menuHorizontalHeight:sn*1.15,menuArrowOffset:`${Zn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Mt}),qn=(0,Nn.TS)(_r,{itemColor:jr,itemHoverColor:ir,groupTitleColor:Wi,itemSelectedColor:Io,itemBg:Pr,popupBg:Pr,subMenuItemBg:Hi,itemActiveBg:"transparent",itemSelectedBg:On,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:qr,itemDisabledColor:Jn,dangerItemColor:xi,dangerItemHoverColor:$t,dangerItemSelectedColor:Gt,dangerItemActiveBg:wn,dangerItemSelectedBg:zr,menuSubMenuBg:Hi,horizontalItemSelectedColor:Dn,horizontalItemSelectedBg:Qt});return[co(_r),zn(_r),De(_r),Mr(_r,"light"),Mr(qn,"dark"),Ui(_r),(0,Bt.Z)(_r),(0,At.oN)(_r,"slide-up"),(0,At.oN)(_r,"slide-down"),(0,an._y)(_r,"zoom-big")]},Jt=>{const{colorPrimary:Mt,colorError:Qt,colorTextDisabled:Dn,colorErrorBg:sn,colorText:wr,colorTextDescription:jr,colorBgContainer:xi,colorFillAlter:Pr,colorFillContent:Hi,lineWidth:Io,lineWidthBold:On,controlItemBgActive:zr,colorBgTextHover:qr,controlHeightLG:Wi,lineHeight:ir,colorBgElevated:Jn,marginXXS:$t,padding:Gt,fontSize:wn,controlHeightSM:Zn,fontSizeLG:_r,colorTextLightSolid:qn,colorErrorHover:$n}=Jt,jt=new Ft.C(qn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Jt.zIndexPopupBase+50,radiusItem:Jt.borderRadiusLG,itemBorderRadius:Jt.borderRadiusLG,radiusSubMenuItem:Jt.borderRadiusSM,subMenuItemBorderRadius:Jt.borderRadiusSM,colorItemText:wr,itemColor:wr,colorItemTextHover:wr,itemHoverColor:wr,colorItemTextHoverHorizontal:Mt,horizontalItemHoverColor:Mt,colorGroupTitle:jr,groupTitleColor:jr,colorItemTextSelected:Mt,itemSelectedColor:Mt,colorItemTextSelectedHorizontal:Mt,horizontalItemSelectedColor:Mt,colorItemBg:xi,itemBg:xi,colorItemBgHover:qr,itemHoverBg:qr,colorItemBgActive:Hi,itemActiveBg:zr,colorSubItemBg:Pr,subMenuItemBg:Pr,colorItemBgSelected:zr,itemSelectedBg:zr,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:On,activeBarHeight:On,colorActiveBarBorderSize:Io,activeBarBorderWidth:Io,colorItemTextDisabled:Dn,itemDisabledColor:Dn,colorDangerItemText:Qt,dangerItemColor:Qt,colorDangerItemTextHover:Qt,dangerItemHoverColor:Qt,colorDangerItemTextSelected:Qt,dangerItemSelectedColor:Qt,colorDangerItemBgActive:sn,dangerItemActiveBg:sn,colorDangerItemBgSelected:sn,dangerItemSelectedBg:sn,itemMarginInline:Jt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Wi,groupTitleLineHeight:ir,collapsedWidth:Wi*2,popupBg:Jn,itemMarginBlock:$t,itemPaddingInline:Gt,horizontalLineHeight:`${Wi*1.15}px`,iconSize:wn,iconMarginInlineEnd:Zn-wn,collapsedIconSize:_r,groupTitleFontSize:wn,darkItemDisabledColor:new Ft.C(qn).setAlpha(.25).toRgbString(),darkItemColor:jt,darkDangerItemColor:Qt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:qn,darkItemSelectedBg:Mt,darkDangerItemSelectedBg:Qt,darkItemHoverBg:"transparent",darkGroupTitleColor:jt,darkItemHoverColor:qn,darkDangerItemHoverColor:$n,darkDangerItemSelectedColor:qn,darkDangerItemActiveBg:Qt}},{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"]]})(hn),Ro=function(hn,En){var rn={};for(var Jt in hn)Object.prototype.hasOwnProperty.call(hn,Jt)&&En.indexOf(Jt)<0&&(rn[Jt]=hn[Jt]);if(hn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Jt=Object.getOwnPropertySymbols(hn);Mt{var rn,Jt;const Mt=M.useContext(Xt.Z),Qt=Mt||{},{getPrefixCls:Dn,getPopupContainer:sn,direction:wr,menu:jr}=M.useContext(T.E_),xi=Dn(),{prefixCls:Pr,className:Hi,style:Io,theme:On="light",expandIcon:zr,_internalDisableMenuItemTitleTooltip:qr,inlineCollapsed:Wi,siderCollapsed:ir,items:Jn,children:$t,rootClassName:Gt,mode:wn,selectable:Zn,onClick:_r,overflowedIndicatorPopupClassName:qn}=hn,$n=Ro(hn,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),jt=(0,be.Z)($n,["collapsedWidth"]),In=Ne(Jn)||$t;(rn=Qt.validator)===null||rn===void 0||rn.call(Qt,{mode:wn});const vr=(0,Re.zX)(function(){var Wr;_r==null||_r.apply(void 0,arguments),(Wr=Qt.onClick)===null||Wr===void 0||Wr.call(Qt)}),Ur=Qt.mode||wn,Ao=Zn!=null?Zn:Qt.selectable,Yt=M.useMemo(()=>ir!==void 0?ir:Wi,[Wi,ir]),xn={horizontal:{motionName:`${xi}-slide-up`},inline:(0,je.Z)(xi),other:{motionName:`${xi}-zoom-big`}},fr=Dn("menu",Pr||Qt.prefixCls),[Nr,bi]=Vr(fr,!Mt),Ei=x()(`${fr}-${On}`,jr==null?void 0:jr.className,Hi);let Yi;if(typeof zr=="function")Yi=zr;else if(zr===null||zr===!1)Yi=null;else if(Qt.expandIcon===null||Qt.expandIcon===!1)Yi=null;else{const Wr=zr!=null?zr:Qt.expandIcon;Yi=(0,xe.Tm)(Wr,{className:x()(`${fr}-submenu-expand-icon`,(0,xe.l$)(Wr)?(Jt=Wr.props)===null||Jt===void 0?void 0:Jt.className:"")})}const di=M.useMemo(()=>({prefixCls:fr,inlineCollapsed:Yt||!1,direction:wr,firstLevel:!0,theme:On,mode:Ur,disableMenuItemTitleTooltip:qr}),[fr,Yt,wr,qr,On]);return Nr(M.createElement(Xt.Z.Provider,{value:null},M.createElement(it.Provider,{value:di},M.createElement(v.ZP,Object.assign({getPopupContainer:sn,overflowedIndicator:M.createElement(Pe.Z,null),overflowedIndicatorPopupClassName:x()(fr,`${fr}-${On}`,qn),mode:Ur,selectable:Ao,onClick:vr},jt,{inlineCollapsed:Yt,style:Object.assign(Object.assign({},jr==null?void 0:jr.style),Io),className:Ei,prefixCls:fr,direction:wr,defaultMotions:xn,expandIcon:Yi,ref:En,rootClassName:x()(Gt,bi)}),In))))});const Ct=(0,M.forwardRef)((hn,En)=>{const rn=(0,M.useRef)(null),Jt=M.useContext(R);return(0,M.useImperativeHandle)(En,()=>({menu:rn.current,focus:Mt=>{var Qt;(Qt=rn.current)===null||Qt===void 0||Qt.focus(Mt)}})),M.createElement(nt,Object.assign({ref:rn},hn,Jt))});Ct.Item=ft,Ct.SubMenu=ze,Ct.Divider=he,Ct.ItemGroup=v.BW;var Ht=Ct},32513:function(mt,q,_){"use strict";_.d(q,{ZP:function(){return _r}});var v=_(42371),M=_(77617),C=_(13493),x=_(87255),N=_(95934),V=_(48796),R=_(86850),k=_(37748),S=_(38521),p=_(12124),T=_.n(p),F=_(39718),K=_(52528),he=_(74710),fe=_(79161),be=_(26508),Ae=_(80268),xe=_(44516),Se=_(38251),it=M.forwardRef(function(qn,$n){var jt=qn.prefixCls,In=qn.style,vr=qn.className,Ur=qn.duration,Ao=Ur===void 0?4.5:Ur,Yt=qn.eventKey,xn=qn.content,fr=qn.closable,Nr=qn.closeIcon,bi=Nr===void 0?"x":Nr,Ei=qn.props,Yi=qn.onClick,di=qn.onNoticeClose,Wr=qn.times,Ni=qn.hovering,kr=M.useState(!1),Xr=(0,F.Z)(kr,2),yo=Xr[0],ls=Xr[1],Sr=Ni||yo,hs=function(){di(Yt)},ta=function(mo){(mo.key==="Enter"||mo.code==="Enter"||mo.keyCode===Se.Z.ENTER)&&hs()};M.useEffect(function(){if(!Sr&&Ao>0){var Po=setTimeout(function(){hs()},Ao*1e3);return function(){clearTimeout(Po)}}},[Ao,Sr,Wr]);var fi="".concat(jt,"-notice");return M.createElement("div",(0,be.Z)({},Ei,{ref:$n,className:T()(fi,vr,(0,Ae.Z)({},"".concat(fi,"-closable"),fr)),style:In,onMouseEnter:function(mo){var or;ls(!0),Ei==null||(or=Ei.onMouseEnter)===null||or===void 0||or.call(Ei,mo)},onMouseLeave:function(mo){var or;ls(!1),Ei==null||(or=Ei.onMouseLeave)===null||or===void 0||or.call(Ei,mo)},onClick:Yi}),M.createElement("div",{className:"".concat(fi,"-content")},xn),fr&&M.createElement("a",{tabIndex:0,className:"".concat(fi,"-close"),onKeyDown:ta,onClick:function(mo){mo.preventDefault(),mo.stopPropagation(),hs()}},bi))}),Xe=it,ft=M.createContext({}),Me=function($n){var jt=$n.children,In=$n.classNames;return M.createElement(ft.Provider,{value:{classNames:In}},jt)},Ee=Me,ze=_(91002),Pe=8,Re=3,je=16,Ce=function($n){var jt={offset:Pe,threshold:Re,gap:je};if($n&&(0,ze.Z)($n)==="object"){var In,vr,Ur;jt.offset=(In=$n.offset)!==null&&In!==void 0?In:Pe,jt.threshold=(vr=$n.threshold)!==null&&vr!==void 0?vr:Re,jt.gap=(Ur=$n.gap)!==null&&Ur!==void 0?Ur:je}return[!!$n,jt]},rt=Ce,Ne=["className","style","classNames","styles"],Xt=function($n){var jt,In=$n.configList,vr=$n.placement,Ur=$n.prefixCls,Ao=$n.className,Yt=$n.style,xn=$n.motion,fr=$n.onAllNoticeRemoved,Nr=$n.onNoticeClose,bi=$n.stack,Ei=(0,M.useContext)(ft),Yi=Ei.classNames,di=(0,M.useRef)({}),Wr=(0,M.useState)(null),Ni=(0,F.Z)(Wr,2),kr=Ni[0],Xr=Ni[1],yo=(0,M.useState)([]),ls=(0,F.Z)(yo,2),Sr=ls[0],hs=ls[1],ta=In.map(function(wo){return{config:wo,key:String(wo.key)}}),fi=rt(bi),Po=(0,F.Z)(fi,2),mo=Po[0],or=Po[1],Oi=or.offset,Wa=or.threshold,Sa=or.gap,xa=mo&&(Sr.length>0||ta.length<=Wa),Ml=typeof xn=="function"?xn(vr):xn;return(0,M.useEffect)(function(){mo&&Sr.length>1&&hs(function(wo){return wo.filter(function(_l){return ta.some(function(El){var Ai=El.key;return _l===Ai})})})},[Sr,ta,mo]),(0,M.useEffect)(function(){var wo;if(mo&&di.current[(wo=ta[ta.length-1])===null||wo===void 0?void 0:wo.key]){var _l;Xr(di.current[(_l=ta[ta.length-1])===null||_l===void 0?void 0:_l.key])}},[ta,mo]),M.createElement(xe.V4,(0,be.Z)({key:vr,className:T()(Ur,"".concat(Ur,"-").concat(vr),Yi==null?void 0:Yi.list,Ao,(jt={},(0,Ae.Z)(jt,"".concat(Ur,"-stack"),!!mo),(0,Ae.Z)(jt,"".concat(Ur,"-stack-expanded"),xa),jt)),style:Yt,keys:ta,motionAppear:!0},Ml,{onAllRemoved:function(){fr(vr)}}),function(wo,_l){var El=wo.config,Ai=wo.className,to=wo.style,An=wo.index,ri=El,ao=ri.key,Mi=ri.times,_s=String(ao),Hs=El,Hr=Hs.className,Bi=Hs.style,fn=Hs.classNames,Ln=Hs.styles,ur=(0,K.Z)(Hs,Ne),dt=ta.findIndex(function(Cs){return Cs.key===_s}),xt={};if(mo){var Et=ta.length-1-(dt>-1?dt:An-1),et=vr==="top"||vr==="bottom"?"-50%":"0";if(Et>0){var wt,Vt,yn;xt.height=xa?(wt=di.current[_s])===null||wt===void 0?void 0:wt.offsetHeight:kr==null?void 0:kr.offsetHeight;for(var yr=0,Yr=0;Yr-1?di.current[_s]=ks:delete di.current[_s]},prefixCls:Ur,classNames:fn,styles:Ln,className:T()(Hr,Yi==null?void 0:Yi.notice),style:Bi,times:Mi,key:ao,eventKey:ao,onNoticeClose:Nr,hovering:mo&&Sr.length>0})))})},Ft=Xt,lt=M.forwardRef(function(qn,$n){var jt=qn.prefixCls,In=jt===void 0?"rc-notification":jt,vr=qn.container,Ur=qn.motion,Ao=qn.maxCount,Yt=qn.className,xn=qn.style,fr=qn.onAllRemoved,Nr=qn.stack,bi=qn.renderNotifications,Ei=M.useState([]),Yi=(0,F.Z)(Ei,2),di=Yi[0],Wr=Yi[1],Ni=function(Po){var mo,or=di.find(function(Oi){return Oi.key===Po});or==null||(mo=or.onClose)===null||mo===void 0||mo.call(or),Wr(function(Oi){return Oi.filter(function(Wa){return Wa.key!==Po})})};M.useImperativeHandle($n,function(){return{open:function(Po){Wr(function(mo){var or=(0,v.Z)(mo),Oi=or.findIndex(function(xa){return xa.key===Po.key}),Wa=(0,he.Z)({},Po);if(Oi>=0){var Sa;Wa.times=(((Sa=mo[Oi])===null||Sa===void 0?void 0:Sa.times)||0)+1,or[Oi]=Wa}else Wa.times=0,or.push(Wa);return Ao>0&&or.length>Ao&&(or=or.slice(-Ao)),or})},close:function(Po){Ni(Po)},destroy:function(){Wr([])}}});var kr=M.useState({}),Xr=(0,F.Z)(kr,2),yo=Xr[0],ls=Xr[1];M.useEffect(function(){var fi={};di.forEach(function(Po){var mo=Po.placement,or=mo===void 0?"topRight":mo;or&&(fi[or]=fi[or]||[],fi[or].push(Po))}),Object.keys(yo).forEach(function(Po){fi[Po]=fi[Po]||[]}),ls(fi)},[di]);var Sr=function(Po){ls(function(mo){var or=(0,he.Z)({},mo),Oi=or[Po]||[];return Oi.length||delete or[Po],or})},hs=M.useRef(!1);if(M.useEffect(function(){Object.keys(yo).length>0?hs.current=!0:hs.current&&(fr==null||fr(),hs.current=!1)},[yo]),!vr)return null;var ta=Object.keys(yo);return(0,fe.createPortal)(M.createElement(M.Fragment,null,ta.map(function(fi){var Po=yo[fi],mo=M.createElement(Ft,{key:fi,configList:Po,placement:fi,prefixCls:In,className:Yt==null?void 0:Yt(fi),style:xn==null?void 0:xn(fi),motion:Ur,onNoticeClose:Ni,onAllNoticeRemoved:Sr,stack:Nr});return bi?bi(mo,{prefixCls:In,key:fi}):mo})),vr)}),Bt=lt,At=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],an=function(){return document.body},Tt=0;function Nn(){for(var qn={},$n=arguments.length,jt=new Array($n),In=0;In<$n;In++)jt[In]=arguments[In];return jt.forEach(function(vr){vr&&Object.keys(vr).forEach(function(Ur){var Ao=vr[Ur];Ao!==void 0&&(qn[Ur]=Ao)})}),qn}function mn(){var qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$n=qn.getContainer,jt=$n===void 0?an:$n,In=qn.motion,vr=qn.prefixCls,Ur=qn.maxCount,Ao=qn.className,Yt=qn.style,xn=qn.onAllRemoved,fr=qn.stack,Nr=qn.renderNotifications,bi=(0,K.Z)(qn,At),Ei=M.useState(),Yi=(0,F.Z)(Ei,2),di=Yi[0],Wr=Yi[1],Ni=M.useRef(),kr=M.createElement(Bt,{container:di,ref:Ni,prefixCls:vr,motion:In,maxCount:Ur,className:Ao,style:Yt,onAllRemoved:xn,stack:fr,renderNotifications:Nr}),Xr=M.useState([]),yo=(0,F.Z)(Xr,2),ls=yo[0],Sr=yo[1],hs=M.useMemo(function(){return{open:function(fi){var Po=Nn(bi,fi);(Po.key===null||Po.key===void 0)&&(Po.key="rc-notification-".concat(Tt),Tt+=1),Sr(function(mo){return[].concat((0,v.Z)(mo),[{type:"open",config:Po}])})},close:function(fi){Sr(function(Po){return[].concat((0,v.Z)(Po),[{type:"close",key:fi}])})},destroy:function(){Sr(function(fi){return[].concat((0,v.Z)(fi),[{type:"destroy"}])})}}},[]);return M.useEffect(function(){Wr(jt())}),M.useEffect(function(){Ni.current&&ls.length&&(ls.forEach(function(ta){switch(ta.type){case"open":Ni.current.open(ta.config);break;case"close":Ni.current.close(ta.key);break;case"destroy":Ni.current.destroy();break}}),Sr(function(ta){return ta.filter(function(fi){return!ls.includes(fi)})}))},[ls]),[hs,kr]}var zn=_(41203),Kr=_(84608),Ui=_(21348),go=_(93154),gi=_(43040);const Mr=qn=>{const{componentCls:$n,iconCls:jt,boxShadow:In,colorText:vr,colorSuccess:Ur,colorError:Ao,colorWarning:Yt,colorInfo:xn,fontSizeLG:fr,motionEaseInOutCirc:Nr,motionDurationSlow:bi,marginXS:Ei,paddingXS:Yi,borderRadiusLG:di,zIndexPopup:Wr,contentPadding:Ni,contentBg:kr}=qn,Xr=`${$n}-notice`,yo=new Kr.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:Yi,transform:"translateY(0)",opacity:1}}),ls=new Kr.E4("MessageMoveOut",{"0%":{maxHeight:qn.height,padding:Yi,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),Sr={padding:Yi,textAlign:"center",[`${$n}-custom-content > ${jt}`]:{verticalAlign:"text-bottom",marginInlineEnd:Ei,fontSize:fr},[`${Xr}-content`]:{display:"inline-block",padding:Ni,background:kr,borderRadius:di,boxShadow:In,pointerEvents:"all"},[`${$n}-success > ${jt}`]:{color:Ur},[`${$n}-error > ${jt}`]:{color:Ao},[`${$n}-warning > ${jt}`]:{color:Yt},[`${$n}-info > ${jt}, + ${$n}-loading > ${jt}`]:{color:xn}};return[{[$n]:Object.assign(Object.assign({},(0,Ui.Wf)(qn)),{color:vr,position:"fixed",top:Ei,width:"100%",pointerEvents:"none",zIndex:Wr,[`${$n}-move-up`]:{animationFillMode:"forwards"},[` + ${$n}-move-up-appear, + ${$n}-move-up-enter + `]:{animationName:yo,animationDuration:bi,animationPlayState:"paused",animationTimingFunction:Nr},[` + ${$n}-move-up-appear${$n}-move-up-appear-active, + ${$n}-move-up-enter${$n}-move-up-enter-active + `]:{animationPlayState:"running"},[`${$n}-move-up-leave`]:{animationName:ls,animationDuration:bi,animationPlayState:"paused",animationTimingFunction:Nr},[`${$n}-move-up-leave${$n}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[$n]:{[`${Xr}-wrapper`]:Object.assign({},Sr)}},{[`${$n}-notice-pure-panel`]:Object.assign(Object.assign({},Sr),{padding:0,textAlign:"start"})}]};var To=(0,go.Z)("Message",qn=>{const $n=(0,gi.TS)(qn,{height:150});return[Mr($n)]},qn=>({zIndexPopup:qn.zIndexPopupBase+10,contentBg:qn.colorBgElevated,contentPadding:`${(qn.controlHeightLG-qn.fontSize*qn.lineHeight)/2}px ${qn.paddingSM}px`})),ms=function(qn,$n){var jt={};for(var In in qn)Object.prototype.hasOwnProperty.call(qn,In)&&$n.indexOf(In)<0&&(jt[In]=qn[In]);if(qn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vr=0,In=Object.getOwnPropertySymbols(qn);vr{let{prefixCls:$n,type:jt,icon:In,children:vr}=qn;return M.createElement("div",{className:T()(`${$n}-custom-content`,`${$n}-${jt}`)},In||De[jt],M.createElement("span",null,vr))};var co=qn=>{const{prefixCls:$n,className:jt,type:In,icon:vr,content:Ur}=qn,Ao=ms(qn,["prefixCls","className","type","icon","content"]),{getPrefixCls:Yt}=M.useContext(zn.E_),xn=$n||Yt("message"),[,fr]=To(xn);return M.createElement(Xe,Object.assign({},Ao,{prefixCls:xn,className:T()(jt,fr,`${xn}-notice-pure-panel`),eventKey:"pure",duration:null,content:M.createElement(Oo,{prefixCls:xn,type:In,icon:vr},Ur)}))},Vr=_(49934),Ro=_(93837);function Tn(qn,$n){return{motionName:$n!=null?$n:`${qn}-move-up`}}function nt(qn){let $n;const jt=new Promise(vr=>{$n=qn(()=>{vr(!0)})}),In=()=>{$n==null||$n()};return In.then=(vr,Ur)=>jt.then(vr,Ur),In.promise=jt,In}var Ct=function(qn,$n){var jt={};for(var In in qn)Object.prototype.hasOwnProperty.call(qn,In)&&$n.indexOf(In)<0&&(jt[In]=qn[In]);if(qn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vr=0,In=Object.getOwnPropertySymbols(qn);vr{let{children:$n,prefixCls:jt}=qn;const[,In]=To(jt);return M.createElement(Ee,{classNames:{list:In,notice:In}},$n)},rn=(qn,$n)=>{let{prefixCls:jt,key:In}=$n;return M.createElement(En,{prefixCls:jt,key:In},qn)},Jt=M.forwardRef((qn,$n)=>{const{top:jt,prefixCls:In,getContainer:vr,maxCount:Ur,duration:Ao=hn,rtl:Yt,transitionName:xn,onAllRemoved:fr}=qn,{getPrefixCls:Nr,getPopupContainer:bi,message:Ei}=M.useContext(zn.E_),Yi=In||Nr("message"),di=()=>({left:"50%",transform:"translateX(-50%)",top:jt!=null?jt:Ht}),Wr=()=>T()({[`${Yi}-rtl`]:Yt}),Ni=()=>Tn(Yi,xn),kr=M.createElement("span",{className:`${Yi}-close-x`},M.createElement(Vr.Z,{className:`${Yi}-close-icon`})),[Xr,yo]=mn({prefixCls:Yi,style:di,className:Wr,motion:Ni,closable:!1,closeIcon:kr,duration:Ao,getContainer:()=>(vr==null?void 0:vr())||(bi==null?void 0:bi())||document.body,maxCount:Ur,onAllRemoved:fr,renderNotifications:rn});return M.useImperativeHandle($n,()=>Object.assign(Object.assign({},Xr),{prefixCls:Yi,message:Ei})),yo});let Mt=0;function Qt(qn){const $n=M.useRef(null),jt=(0,Ro.ln)("Message");return[M.useMemo(()=>{const vr=fr=>{var Nr;(Nr=$n.current)===null||Nr===void 0||Nr.close(fr)},Ur=fr=>{if(!$n.current){const ta=()=>{};return ta.then=()=>{},ta}const{open:Nr,prefixCls:bi,message:Ei}=$n.current,Yi=`${bi}-notice`,{content:di,icon:Wr,type:Ni,key:kr,className:Xr,style:yo,onClose:ls}=fr,Sr=Ct(fr,["content","icon","type","key","className","style","onClose"]);let hs=kr;return hs==null&&(Mt+=1,hs=`antd-message-${Mt}`),nt(ta=>(Nr(Object.assign(Object.assign({},Sr),{key:hs,content:M.createElement(Oo,{prefixCls:bi,type:Ni,icon:Wr},di),placement:"top",className:T()(Ni&&`${Yi}-${Ni}`,Xr,Ei==null?void 0:Ei.className),style:Object.assign(Object.assign({},Ei==null?void 0:Ei.style),yo),onClose:()=>{ls==null||ls(),ta()}})),()=>{vr(hs)}))},Yt={open:Ur,destroy:fr=>{var Nr;fr!==void 0?vr(fr):(Nr=$n.current)===null||Nr===void 0||Nr.destroy()}};return["info","success","warning","error","loading"].forEach(fr=>{const Nr=(bi,Ei,Yi)=>{let di;bi&&typeof bi=="object"&&"content"in bi?di=bi:di={content:bi};let Wr,Ni;typeof Ei=="function"?Ni=Ei:(Wr=Ei,Ni=Yi);const kr=Object.assign(Object.assign({onClose:Ni,duration:Wr},di),{type:fr});return Ur(kr)};Yt[fr]=Nr}),Yt},[]),M.createElement(Jt,Object.assign({key:"message-holder"},qn,{ref:$n}))]}function Dn(qn){return Qt(qn)}let sn=null,wr=qn=>qn(),jr=[],xi={};function Pr(){const{prefixCls:qn,getContainer:$n,duration:jt,rtl:In,maxCount:vr,top:Ur}=xi,Ao=qn!=null?qn:(0,x.w6)().getPrefixCls("message"),Yt=($n==null?void 0:$n())||document.body;return{prefixCls:Ao,getContainer:()=>Yt,duration:jt,rtl:In,maxCount:vr,top:Ur}}const Hi=M.forwardRef((qn,$n)=>{const[jt,In]=M.useState(Pr),[vr,Ur]=Qt(jt),Ao=(0,x.w6)(),Yt=Ao.getRootPrefixCls(),xn=Ao.getIconPrefixCls(),fr=Ao.getTheme(),Nr=()=>{In(Pr)};return M.useEffect(Nr,[]),M.useImperativeHandle($n,()=>{const bi=Object.assign({},vr);return Object.keys(bi).forEach(Ei=>{bi[Ei]=function(){return Nr(),vr[Ei].apply(vr,arguments)}}),{instance:bi,sync:Nr}}),M.createElement(x.ZP,{prefixCls:Yt,iconPrefixCls:xn,theme:fr},Ur)});function Io(){if(!sn){const qn=document.createDocumentFragment(),$n={fragment:qn};sn=$n,wr(()=>{(0,C.s)(M.createElement(Hi,{ref:jt=>{const{instance:In,sync:vr}=jt||{};Promise.resolve().then(()=>{!$n.instance&&In&&($n.instance=In,$n.sync=vr,Io())})}}),qn)});return}sn.instance&&(jr.forEach(qn=>{const{type:$n,skipped:jt}=qn;if(!jt)switch($n){case"open":{wr(()=>{const In=sn.instance.open(Object.assign(Object.assign({},xi),qn.config));In==null||In.then(qn.resolve),qn.setCloseFn(In)});break}case"destroy":wr(()=>{sn==null||sn.instance.destroy(qn.key)});break;default:wr(()=>{var In;const vr=(In=sn.instance)[$n].apply(In,(0,v.Z)(qn.args));vr==null||vr.then(qn.resolve),qn.setCloseFn(vr)})}}),jr=[])}function On(qn){xi=Object.assign(Object.assign({},xi),qn),wr(()=>{var $n;($n=sn==null?void 0:sn.sync)===null||$n===void 0||$n.call(sn)})}function zr(qn){const $n=nt(jt=>{let In;const vr={type:"open",config:qn,resolve:jt,setCloseFn:Ur=>{In=Ur}};return jr.push(vr),()=>{In?wr(()=>{In()}):vr.skipped=!0}});return Io(),$n}function qr(qn,$n){const jt=nt(In=>{let vr;const Ur={type:qn,args:$n,resolve:In,setCloseFn:Ao=>{vr=Ao}};return jr.push(Ur),()=>{vr?wr(()=>{vr()}):Ur.skipped=!0}});return Io(),jt}function Wi(qn){jr.push({type:"destroy",key:qn}),Io()}const ir=["success","info","warning","error","loading"],$t={open:zr,destroy:Wi,config:On,useMessage:Dn,_InternalPanelDoNotUseOrYouWillBeFired:co};ir.forEach(qn=>{$t[qn]=function(){for(var $n=arguments.length,jt=new Array($n),In=0;In<$n;In++)jt[In]=arguments[In];return qr(qn,jt)}});const Gt=()=>{};let wn=null,Zn=null;var _r=$t},87930:function(mt,q,_){"use strict";_.d(q,{Z:function(){return to}});var v=_(42371),M=_(13493),C=_(77617),x=_(87255),N=_(95934),V=_(48796),R=_(86850),k=_(37748),S=_(12124),p=_.n(S),T=_(8418),F=_(92584),K=_(43775);const he=C.createContext({}),{Provider:fe}=he;var Ae=()=>{const{autoFocusButton:An,cancelButtonProps:ri,cancelTextLocale:ao,isSilent:Mi,mergedOkCancel:_s,rootPrefixCls:Hs,close:Hr,onCancel:Bi,onConfirm:fn}=(0,C.useContext)(he);return _s?C.createElement(K.Z,{isSilent:Mi,actionFn:Bi,close:function(){Hr==null||Hr.apply(void 0,arguments),fn==null||fn(!1)},autoFocus:An==="cancel",buttonProps:ri,prefixCls:`${Hs}-btn`},ao):null},Se=()=>{const{autoFocusButton:An,close:ri,isSilent:ao,okButtonProps:Mi,rootPrefixCls:_s,okTextLocale:Hs,okType:Hr,onConfirm:Bi,onOk:fn}=(0,C.useContext)(he);return C.createElement(K.Z,{isSilent:ao,type:Hr||"primary",actionFn:fn,close:function(){ri==null||ri.apply(void 0,arguments),Bi==null||Bi(!0)},autoFocus:An==="ok",buttonProps:Mi,prefixCls:`${_s}-btn`},Hs)},it=_(49934),Xe=_(26508),ft=_(39718),Me=_(43403),Ee=C.createContext({}),ze=_(74710),Pe=_(67168),Re=_(59872),je=_(38251),Ce=_(5090);function rt(An,ri,ao){var Mi=ri;return!Mi&&ao&&(Mi="".concat(An,"-").concat(ao)),Mi}function Ne(An,ri){var ao=An["page".concat(ri?"Y":"X","Offset")],Mi="scroll".concat(ri?"Top":"Left");if(typeof ao!="number"){var _s=An.document;ao=_s.documentElement[Mi],typeof ao!="number"&&(ao=_s.body[Mi])}return ao}function Xt(An){var ri=An.getBoundingClientRect(),ao={left:ri.left,top:ri.top},Mi=An.ownerDocument,_s=Mi.defaultView||Mi.parentWindow;return ao.left+=Ne(_s),ao.top+=Ne(_s,!0),ao}var Ft=_(44516),lt=_(9681),Bt=C.memo(function(An){var ri=An.children;return ri},function(An,ri){var ao=ri.shouldUpdate;return!ao}),At={width:0,height:0,overflow:"hidden",outline:"none"},an=C.forwardRef(function(An,ri){var ao=An.prefixCls,Mi=An.className,_s=An.style,Hs=An.title,Hr=An.ariaId,Bi=An.footer,fn=An.closable,Ln=An.closeIcon,ur=An.onClose,dt=An.children,xt=An.bodyStyle,Et=An.bodyProps,et=An.modalRender,wt=An.onMouseDown,Vt=An.onMouseUp,yn=An.holderRef,yr=An.visible,Yr=An.forceRender,eo=An.width,Zo=An.height,Ii=An.classNames,Cs=An.styles,ks=C.useContext(Ee),ba=ks.panel,Zs=(0,lt.x1)(yn,ba),No=(0,C.useRef)(),js=(0,C.useRef)();C.useImperativeHandle(ri,function(){return{focus:function(){var gl;(gl=No.current)===null||gl===void 0||gl.focus()},changeActive:function(gl){var ds=document,Gi=ds.activeElement;gl&&Gi===js.current?No.current.focus():!gl&&Gi===No.current&&js.current.focus()}}});var ga={};eo!==void 0&&(ga.width=eo),Zo!==void 0&&(ga.height=Zo);var da;Bi&&(da=C.createElement("div",{className:p()("".concat(ao,"-footer"),Ii==null?void 0:Ii.footer),style:(0,ze.Z)({},Cs==null?void 0:Cs.footer)},Bi));var Il;Hs&&(Il=C.createElement("div",{className:p()("".concat(ao,"-header"),Ii==null?void 0:Ii.header),style:(0,ze.Z)({},Cs==null?void 0:Cs.header)},C.createElement("div",{className:"".concat(ao,"-title"),id:Hr},Hs)));var Al;fn&&(Al=C.createElement("button",{type:"button",onClick:ur,"aria-label":"Close",className:"".concat(ao,"-close")},Ln||C.createElement("span",{className:"".concat(ao,"-close-x")})));var Js=C.createElement("div",{className:p()("".concat(ao,"-content"),Ii==null?void 0:Ii.content),style:Cs==null?void 0:Cs.content},Al,Il,C.createElement("div",(0,Xe.Z)({className:p()("".concat(ao,"-body"),Ii==null?void 0:Ii.body),style:(0,ze.Z)((0,ze.Z)({},xt),Cs==null?void 0:Cs.body)},Et),dt),da);return C.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Hs?Hr:null,"aria-modal":"true",ref:Zs,style:(0,ze.Z)((0,ze.Z)({},_s),ga),className:p()(ao,Mi),onMouseDown:wt,onMouseUp:Vt},C.createElement("div",{tabIndex:0,ref:No,style:At,"aria-hidden":"true"}),C.createElement(Bt,{shouldUpdate:yr||Yr},et?et(Js):Js),C.createElement("div",{tabIndex:0,ref:js,style:At,"aria-hidden":"true"}))}),Tt=an,Nn=C.forwardRef(function(An,ri){var ao=An.prefixCls,Mi=An.title,_s=An.style,Hs=An.className,Hr=An.visible,Bi=An.forceRender,fn=An.destroyOnClose,Ln=An.motionName,ur=An.ariaId,dt=An.onVisibleChanged,xt=An.mousePosition,Et=(0,C.useRef)(),et=C.useState(),wt=(0,ft.Z)(et,2),Vt=wt[0],yn=wt[1],yr={};Vt&&(yr.transformOrigin=Vt);function Yr(){var eo=Xt(Et.current);yn(xt?"".concat(xt.x-eo.left,"px ").concat(xt.y-eo.top,"px"):"")}return C.createElement(Ft.ZP,{visible:Hr,onVisibleChanged:dt,onAppearPrepare:Yr,onEnterPrepare:Yr,forceRender:Bi,motionName:Ln,removeOnLeave:fn,ref:Et},function(eo,Zo){var Ii=eo.className,Cs=eo.style;return C.createElement(Tt,(0,Xe.Z)({},An,{ref:ri,title:Mi,ariaId:ur,prefixCls:ao,holderRef:Zo,style:(0,ze.Z)((0,ze.Z)((0,ze.Z)({},Cs),_s),yr),className:p()(Hs,Ii)}))})});Nn.displayName="Content";var mn=Nn;function zn(An){var ri=An.prefixCls,ao=An.style,Mi=An.visible,_s=An.maskProps,Hs=An.motionName,Hr=An.className;return C.createElement(Ft.ZP,{key:"mask",visible:Mi,motionName:Hs,leavedClassName:"".concat(ri,"-mask-hidden")},function(Bi,fn){var Ln=Bi.className,ur=Bi.style;return C.createElement("div",(0,Xe.Z)({ref:fn,style:(0,ze.Z)((0,ze.Z)({},ur),ao),className:p()("".concat(ri,"-mask"),Ln,Hr)},_s))})}var Kr=_(46644);function Ui(An){var ri=An.prefixCls,ao=ri===void 0?"rc-dialog":ri,Mi=An.zIndex,_s=An.visible,Hs=_s===void 0?!1:_s,Hr=An.keyboard,Bi=Hr===void 0?!0:Hr,fn=An.focusTriggerAfterClose,Ln=fn===void 0?!0:fn,ur=An.wrapStyle,dt=An.wrapClassName,xt=An.wrapProps,Et=An.onClose,et=An.afterOpenChange,wt=An.afterClose,Vt=An.transitionName,yn=An.animation,yr=An.closable,Yr=yr===void 0?!0:yr,eo=An.mask,Zo=eo===void 0?!0:eo,Ii=An.maskTransitionName,Cs=An.maskAnimation,ks=An.maskClosable,ba=ks===void 0?!0:ks,Zs=An.maskStyle,No=An.maskProps,js=An.rootClassName,ga=An.classNames,da=An.styles,Il=(0,C.useRef)(),Al=(0,C.useRef)(),Js=(0,C.useRef)(),Ea=C.useState(Hs),gl=(0,ft.Z)(Ea,2),ds=gl[0],Gi=gl[1],Jo=(0,Re.Z)();function Ps(){(0,Pe.Z)(Al.current,document.activeElement)||(Il.current=document.activeElement)}function Fs(){if(!(0,Pe.Z)(Al.current,document.activeElement)){var er;(er=Js.current)===null||er===void 0||er.focus()}}function Za(er){if(er)Fs();else{if(Gi(!1),Zo&&Il.current&&Ln){try{Il.current.focus({preventScroll:!0})}catch(Lr){}Il.current=null}ds&&(wt==null||wt())}et==null||et(er)}function Nu(er){Et==null||Et(er)}var Tc=(0,C.useRef)(!1),Pc=(0,C.useRef)(),tc=function(){clearTimeout(Pc.current),Tc.current=!0},cc=function(){Pc.current=setTimeout(function(){Tc.current=!1})},Uu=null;ba&&(Uu=function(Lr){Tc.current?Tc.current=!1:Al.current===Lr.target&&Nu(Lr)});function Pn(er){if(Bi&&er.keyCode===je.Z.ESC){er.stopPropagation(),Nu(er);return}Hs&&er.keyCode===je.Z.TAB&&Js.current.changeActive(!er.shiftKey)}return(0,C.useEffect)(function(){Hs&&(Gi(!0),Ps())},[Hs]),(0,C.useEffect)(function(){return function(){clearTimeout(Pc.current)}},[]),C.createElement("div",(0,Xe.Z)({className:p()("".concat(ao,"-root"),js)},(0,Ce.Z)(An,{data:!0})),C.createElement(zn,{prefixCls:ao,visible:Zo&&Hs,motionName:rt(ao,Ii,Cs),style:(0,ze.Z)((0,ze.Z)({zIndex:Mi},Zs),da==null?void 0:da.mask),maskProps:No,className:ga==null?void 0:ga.mask}),C.createElement("div",(0,Xe.Z)({tabIndex:-1,onKeyDown:Pn,className:p()("".concat(ao,"-wrap"),dt,ga==null?void 0:ga.wrapper),ref:Al,onClick:Uu,style:(0,ze.Z)((0,ze.Z)((0,ze.Z)({zIndex:Mi},ur),da==null?void 0:da.wrapper),{},{display:ds?null:"none"})},xt),C.createElement(mn,(0,Xe.Z)({},An,{onMouseDown:tc,onMouseUp:cc,ref:Js,closable:Yr,ariaId:Jo,prefixCls:ao,visible:Hs&&ds,onClose:Nu,onVisibleChanged:Za,motionName:rt(ao,Vt,yn)}))))}var go=function(ri){var ao=ri.visible,Mi=ri.getContainer,_s=ri.forceRender,Hs=ri.destroyOnClose,Hr=Hs===void 0?!1:Hs,Bi=ri.afterClose,fn=ri.panelRef,Ln=C.useState(ao),ur=(0,ft.Z)(Ln,2),dt=ur[0],xt=ur[1],Et=C.useMemo(function(){return{panel:fn}},[fn]);return C.useEffect(function(){ao&&xt(!0)},[ao]),!_s&&Hr&&!dt?null:C.createElement(Ee.Provider,{value:Et},C.createElement(Me.Z,{open:ao||_s||dt,autoDestroy:!1,getContainer:Mi,autoLock:ao||dt},C.createElement(Ui,(0,Xe.Z)({},ri,{destroyOnClose:Hr,afterClose:function(){Bi==null||Bi(),xt(!1)}}))))};go.displayName="Dialog";var gi=go,Mr=gi,To=_(79172),ms=_(53261);const De=()=>(0,ms.Z)()&&window.document.documentElement;var Oo=_(44942),$i=_(41203),co=_(74334),Vr=_(43906),Ro=_(95470);function Tn(){}const nt=C.createContext({add:Tn,remove:Tn});function Ct(An){const ri=C.useContext(nt),ao=C.useRef();return(0,Ro.zX)(_s=>{if(_s){const Hs=An?_s.querySelector(An):_s;ri.add(Hs),ao.current=Hs}else ri.remove(ao.current)})}var Ht=null,hn=_(57132),En=_(34745),Jt=()=>{const{cancelButtonProps:An,cancelTextLocale:ri,onCancel:ao}=(0,C.useContext)(he);return C.createElement(En.ZP,Object.assign({onClick:ao},An),ri)},Mt=_(45763),Dn=()=>{const{confirmLoading:An,okButtonProps:ri,okType:ao,okTextLocale:Mi,onOk:_s}=(0,C.useContext)(he);return C.createElement(En.ZP,Object.assign({},(0,Mt.nx)(ao),{loading:An,onClick:_s},ri),Mi)},sn=_(16831);function wr(An,ri){return C.createElement("span",{className:`${An}-close-x`},ri||C.createElement(it.Z,{className:`${An}-close-icon`}))}const jr=An=>{const{okText:ri,okType:ao="primary",cancelText:Mi,confirmLoading:_s,onOk:Hs,onCancel:Hr,okButtonProps:Bi,cancelButtonProps:fn,footer:Ln}=An,[ur]=(0,F.Z)("Modal",(0,sn.A)()),dt=ri||(ur==null?void 0:ur.okText),xt=Mi||(ur==null?void 0:ur.cancelText),Et={confirmLoading:_s,okButtonProps:Bi,cancelButtonProps:fn,okTextLocale:dt,cancelTextLocale:xt,okType:ao,onOk:Hs,onCancel:Hr},et=C.useMemo(()=>Et,(0,v.Z)(Object.values(Et)));let wt;return typeof Ln=="function"||typeof Ln=="undefined"?(wt=C.createElement(C.Fragment,null,C.createElement(Jt,null),C.createElement(Dn,null)),typeof Ln=="function"&&(wt=Ln(wt,{OkBtn:Dn,CancelBtn:Jt})),wt=C.createElement(fe,{value:et},wt)):wt=Ln,C.createElement(hn.n,{disabled:!1},wt)};var xi=_(21348),Pr=_(23626),Hi=_(53679),Io=_(43040),On=_(93154);function zr(An){return{position:An,inset:0}}const qr=An=>{const{componentCls:ri,antCls:ao}=An;return[{[`${ri}-root`]:{[`${ri}${ao}-zoom-enter, ${ri}${ao}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:An.motionDurationSlow,userSelect:"none"},[`${ri}${ao}-zoom-leave ${ri}-content`]:{pointerEvents:"none"},[`${ri}-mask`]:Object.assign(Object.assign({},zr("fixed")),{zIndex:An.zIndexPopupBase,height:"100%",backgroundColor:An.colorBgMask,pointerEvents:"none",[`${ri}-hidden`]:{display:"none"}}),[`${ri}-wrap`]:Object.assign(Object.assign({},zr("fixed")),{zIndex:An.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${ri}${ao}-zoom-enter), &:has(${ri}${ao}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${ri}-root`]:(0,Pr.J$)(An)}]},Wi=An=>{const{componentCls:ri}=An;return[{[`${ri}-root`]:{[`${ri}-wrap-rtl`]:{direction:"rtl"},[`${ri}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[ri]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${An.screenSMMax})`]:{[ri]:{maxWidth:"calc(100vw - 16px)",margin:`${An.marginXS} auto`},[`${ri}-centered`]:{[ri]:{flex:1}}}}},{[ri]:Object.assign(Object.assign({},(0,xi.Wf)(An)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${An.margin*2}px)`,margin:"0 auto",paddingBottom:An.paddingLG,[`${ri}-title`]:{margin:0,color:An.titleColor,fontWeight:An.fontWeightStrong,fontSize:An.titleFontSize,lineHeight:An.titleLineHeight,wordWrap:"break-word"},[`${ri}-content`]:{position:"relative",backgroundColor:An.contentBg,backgroundClip:"padding-box",border:0,borderRadius:An.borderRadiusLG,boxShadow:An.boxShadow,pointerEvents:"auto",padding:`${An.paddingMD}px ${An.paddingContentHorizontalLG}px`},[`${ri}-close`]:Object.assign({position:"absolute",top:(An.modalHeaderHeight-An.modalCloseBtnSize)/2,insetInlineEnd:(An.modalHeaderHeight-An.modalCloseBtnSize)/2,zIndex:An.zIndexPopupBase+10,padding:0,color:An.modalCloseIconColor,fontWeight:An.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:An.borderRadiusSM,width:An.modalCloseBtnSize,height:An.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${An.motionDurationMid}, background-color ${An.motionDurationMid}`,"&-x":{display:"flex",fontSize:An.fontSizeLG,fontStyle:"normal",lineHeight:`${An.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:An.modalIconHoverColor,backgroundColor:An.wireframe?"transparent":An.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:An.wireframe?"transparent":An.colorFillContentHover}},(0,xi.Qy)(An)),[`${ri}-header`]:{color:An.colorText,background:An.headerBg,borderRadius:`${An.borderRadiusLG}px ${An.borderRadiusLG}px 0 0`,marginBottom:An.marginXS},[`${ri}-body`]:{fontSize:An.fontSize,lineHeight:An.lineHeight,wordWrap:"break-word"},[`${ri}-footer`]:{textAlign:"end",background:An.footerBg,marginTop:An.marginSM,[`${An.antCls}-btn + ${An.antCls}-btn:not(${An.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:An.marginXS}},[`${ri}-open`]:{overflow:"hidden"}})},{[`${ri}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${ri}-content, + ${ri}-body, + ${ri}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${ri}-confirm-body`]:{marginBottom:"auto"}}}]},ir=An=>{const{componentCls:ri,antCls:ao}=An,Mi=`${ri}-confirm`;return{[ri]:{[`${ri}-content`]:{padding:0},[`${ri}-header`]:{padding:An.modalHeaderPadding,borderBottom:`${An.modalHeaderBorderWidth}px ${An.modalHeaderBorderStyle} ${An.modalHeaderBorderColorSplit}`,marginBottom:0},[`${ri}-body`]:{padding:An.modalBodyPadding},[`${ri}-footer`]:{padding:`${An.modalFooterPaddingVertical}px ${An.modalFooterPaddingHorizontal}px`,borderTop:`${An.modalFooterBorderWidth}px ${An.modalFooterBorderStyle} ${An.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${An.borderRadiusLG}px ${An.borderRadiusLG}px`,marginTop:0}},[Mi]:{[`${ao}-modal-body`]:{padding:`${An.padding*2}px ${An.padding*2}px ${An.paddingLG}px`},[`${Mi}-body > ${An.iconCls}`]:{marginInlineEnd:An.margin},[`${Mi}-btns`]:{marginTop:An.marginLG}}}},Jn=An=>{const{componentCls:ri}=An;return{[`${ri}-root`]:{[`${ri}-wrap-rtl`]:{direction:"rtl",[`${ri}-confirm-body`]:{direction:"rtl"}}}}},$t=An=>{const ri=An.padding,ao=An.fontSizeHeading5,Mi=An.lineHeightHeading5;return(0,Io.TS)(An,{modalBodyPadding:An.paddingLG,modalHeaderPadding:`${ri}px ${An.paddingLG}px`,modalHeaderBorderWidth:An.lineWidth,modalHeaderBorderStyle:An.lineType,modalHeaderBorderColorSplit:An.colorSplit,modalHeaderHeight:Mi*ao+ri*2,modalFooterBorderColorSplit:An.colorSplit,modalFooterBorderStyle:An.lineType,modalFooterPaddingVertical:An.paddingXS,modalFooterPaddingHorizontal:An.padding,modalFooterBorderWidth:An.lineWidth,modalIconHoverColor:An.colorIconHover,modalCloseIconColor:An.colorIcon,modalCloseBtnSize:An.fontSize*An.lineHeight,modalConfirmIconSize:An.fontSize*An.lineHeight})},Gt=An=>({footerBg:"transparent",headerBg:An.colorBgElevated,titleLineHeight:An.lineHeightHeading5,titleFontSize:An.fontSizeHeading5,contentBg:An.colorBgElevated,titleColor:An.colorTextHeading});var wn=(0,On.Z)("Modal",An=>{const ri=$t(An);return[Wi(ri),Jn(ri),qr(ri),An.wireframe&&ir(ri),(0,Hi._y)(ri,"zoom")]},Gt),Zn=_(8799),_r=function(An,ri){var ao={};for(var Mi in An)Object.prototype.hasOwnProperty.call(An,Mi)&&ri.indexOf(Mi)<0&&(ao[Mi]=An[Mi]);if(An!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _s=0,Mi=Object.getOwnPropertySymbols(An);_s{qn={x:An.pageX,y:An.pageY},setTimeout(()=>{qn=null},100)};De()&&document.documentElement.addEventListener("click",$n,!0);var In=An=>{var ri;const{getPopupContainer:ao,getPrefixCls:Mi,direction:_s,modal:Hs}=C.useContext($i.E_),Hr=ds=>{const{onCancel:Gi}=An;Gi==null||Gi(ds)},Bi=ds=>{const{onOk:Gi}=An;Gi==null||Gi(ds)},{prefixCls:fn,className:Ln,rootClassName:ur,open:dt,wrapClassName:xt,centered:Et,getContainer:et,closeIcon:wt,closable:Vt,focusTriggerAfterClose:yn=!0,style:yr,visible:Yr,width:eo=520,footer:Zo,classNames:Ii,styles:Cs}=An,ks=_r(An,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),ba=Mi("modal",fn),Zs=Mi(),[No,js]=wn(ba),ga=p()(xt,{[`${ba}-centered`]:!!Et,[`${ba}-wrap-rtl`]:_s==="rtl"}),da=Zo!==null&&C.createElement(jr,Object.assign({},An,{onOk:Bi,onCancel:Hr})),[Il,Al]=(0,To.Z)(Vt,wt,ds=>wr(ba,ds),C.createElement(it.Z,{className:`${ba}-close-icon`}),!0),Js=Ct(`.${ba}-content`),[Ea,gl]=(0,Zn.Cn)("Modal",ks.zIndex);return No(C.createElement(Vr.BR,null,C.createElement(co.Ux,{status:!0,override:!0},C.createElement(Oo.Z.Provider,{value:gl},C.createElement(Mr,Object.assign({width:eo},ks,{zIndex:Ea,getContainer:et===void 0?ao:et,prefixCls:ba,rootClassName:p()(js,ur),footer:da,visible:dt!=null?dt:Yr,mousePosition:(ri=ks.mousePosition)!==null&&ri!==void 0?ri:qn,onClose:Hr,closable:Il,closeIcon:Al,focusTriggerAfterClose:yn,transitionName:(0,T.m)(Zs,"zoom",An.transitionName),maskTransitionName:(0,T.m)(Zs,"fade",An.maskTransitionName),className:p()(js,Ln,Hs==null?void 0:Hs.className),style:Object.assign(Object.assign({},Hs==null?void 0:Hs.style),yr),classNames:Object.assign(Object.assign({wrapper:ga},Hs==null?void 0:Hs.classNames),Ii),styles:Object.assign(Object.assign({},Hs==null?void 0:Hs.styles),Cs),panelRef:Js}))))))};const vr=An=>{const{componentCls:ri,titleFontSize:ao,titleLineHeight:Mi,modalConfirmIconSize:_s,fontSize:Hs,lineHeight:Hr}=An,Bi=`${ri}-confirm`,fn=Math.round(ao*Mi),Ln=Math.round(Hs*Hr);return{[Bi]:{"&-rtl":{direction:"rtl"},[`${An.antCls}-modal-header`]:{display:"none"},[`${Bi}-body-wrapper`]:Object.assign({},(0,xi.dF)()),[`${Bi}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${An.iconCls}`]:{flex:"none",fontSize:_s,marginInlineEnd:An.marginSM,marginTop:(Ln-_s)/2},[`&-has-title > ${An.iconCls}`]:{marginTop:(fn-_s)/2}},[`${Bi}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:An.marginXS,maxWidth:`calc(100% - ${An.modalConfirmIconSize+An.marginSM}px)`},[`${Bi}-title`]:{color:An.colorTextHeading,fontWeight:An.fontWeightStrong,fontSize:ao,lineHeight:Mi},[`${Bi}-content`]:{color:An.colorText,fontSize:Hs,lineHeight:Hr},[`${Bi}-btns`]:{textAlign:"end",marginTop:An.marginSM,[`${An.antCls}-btn + ${An.antCls}-btn`]:{marginBottom:0,marginInlineStart:An.marginXS}}},[`${Bi}-error ${Bi}-body > ${An.iconCls}`]:{color:An.colorError},[`${Bi}-warning ${Bi}-body > ${An.iconCls}, + ${Bi}-confirm ${Bi}-body > ${An.iconCls}`]:{color:An.colorWarning},[`${Bi}-info ${Bi}-body > ${An.iconCls}`]:{color:An.colorInfo},[`${Bi}-success ${Bi}-body > ${An.iconCls}`]:{color:An.colorSuccess}}};var Ur=(0,On.b)(["Modal","confirm"],An=>{const ri=$t(An);return[vr(ri)]},Gt,{order:-1e3}),Ao=function(An,ri){var ao={};for(var Mi in An)Object.prototype.hasOwnProperty.call(An,Mi)&&ri.indexOf(Mi)<0&&(ao[Mi]=An[Mi]);if(An!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _s=0,Mi=Object.getOwnPropertySymbols(An);_syr,(0,v.Z)(Object.values(yr))),eo=C.createElement(C.Fragment,null,C.createElement(Ae,null),C.createElement(Se,null)),Zo=An.title!==void 0&&An.title!==null,Ii=`${Hs}-body`;return C.createElement("div",{className:`${Hs}-body-wrapper`},C.createElement("div",{className:p()(Ii,{[`${Ii}-has-title`]:Zo})},dt,C.createElement("div",{className:`${Hs}-paragraph`},Zo&&C.createElement("span",{className:`${Hs}-title`},An.title),C.createElement("div",{className:`${Hs}-content`},An.content))),fn===void 0||typeof fn=="function"?C.createElement(fe,{value:Yr},C.createElement("div",{className:`${Hs}-btns`},typeof fn=="function"?fn(eo,{OkBtn:Se,CancelBtn:Ae}):eo)):fn,C.createElement(Ur,{prefixCls:ri}))}var fr=An=>{const{close:ri,zIndex:ao,afterClose:Mi,open:_s,keyboard:Hs,centered:Hr,getContainer:Bi,maskStyle:fn,direction:Ln,prefixCls:ur,wrapClassName:dt,rootPrefixCls:xt,iconPrefixCls:Et,theme:et,bodyStyle:wt,closable:Vt=!1,closeIcon:yn,modalRender:yr,focusTriggerAfterClose:Yr,onConfirm:eo,styles:Zo}=An,Ii=`${ur}-confirm`,Cs=An.width||416,ks=An.style||{},ba=An.mask===void 0?!0:An.mask,Zs=An.maskClosable===void 0?!1:An.maskClosable,No=p()(Ii,`${Ii}-${An.type}`,{[`${Ii}-rtl`]:Ln==="rtl"},An.className);return C.createElement(x.ZP,{prefixCls:xt,iconPrefixCls:Et,direction:Ln,theme:et},C.createElement(In,{prefixCls:ur,className:No,wrapClassName:p()({[`${Ii}-centered`]:!!An.centered},dt),onCancel:()=>{ri==null||ri({triggerCancel:!0}),eo==null||eo(!1)},open:_s,title:"",footer:null,transitionName:(0,T.m)(xt||"","zoom",An.transitionName),maskTransitionName:(0,T.m)(xt||"","fade",An.maskTransitionName),mask:ba,maskClosable:Zs,style:ks,styles:Object.assign({body:wt,mask:fn},Zo),width:Cs,zIndex:ao,afterClose:Mi,keyboard:Hs,centered:Hr,getContainer:Bi,closable:Vt,closeIcon:yn,modalRender:yr,focusTriggerAfterClose:Yr},C.createElement(Yt,Object.assign({},An,{confirmPrefixCls:Ii}))))},bi=[],Ei=function(An,ri){var ao={};for(var Mi in An)Object.prototype.hasOwnProperty.call(An,Mi)&&ri.indexOf(Mi)<0&&(ao[Mi]=An[Mi]);if(An!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _s=0,Mi=Object.getOwnPropertySymbols(An);_sxt&&xt.triggerCancel);An.onCancel&&dt&&An.onCancel.apply(An,[()=>{}].concat((0,v.Z)(Ln.slice(1))));for(let xt=0;xt{const et=(0,sn.A)(),{getPrefixCls:wt,getIconPrefixCls:Vt,getTheme:yn}=(0,x.w6)(),yr=wt(void 0,di()),Yr=dt||`${yr}-modal`,eo=Vt(),Zo=yn();let Ii=xt;Ii===!1&&(Ii=void 0),(0,M.s)(C.createElement(fr,Object.assign({},Et,{getContainer:Ii,prefixCls:Yr,rootPrefixCls:yr,iconPrefixCls:eo,okText:Ln,locale:et,theme:Zo,cancelText:ur||et.cancelText})),ri)})}function Hr(){for(var fn=arguments.length,Ln=new Array(fn),ur=0;ur{typeof An.afterClose=="function"&&An.afterClose(),_s.apply(this,Ln)}}),ao.visible&&delete ao.visible,Hs(ao)}function Bi(fn){typeof fn=="function"?ao=fn(ao):ao=Object.assign(Object.assign({},ao),fn),Hs(ao)}return Hs(ao),bi.push(Hr),{destroy:Hr,update:Bi}}function Ni(An){return Object.assign(Object.assign({},An),{type:"warning"})}function kr(An){return Object.assign(Object.assign({},An),{type:"info"})}function Xr(An){return Object.assign(Object.assign({},An),{type:"success"})}function yo(An){return Object.assign(Object.assign({},An),{type:"error"})}function ls(An){return Object.assign(Object.assign({},An),{type:"confirm"})}function Sr(An){let{rootPrefixCls:ri}=An;Yi=ri}var hs=_(33966),ta=function(An,ri){var ao={};for(var Mi in An)Object.prototype.hasOwnProperty.call(An,Mi)&&ri.indexOf(Mi)<0&&(ao[Mi]=An[Mi]);if(An!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _s=0,Mi=Object.getOwnPropertySymbols(An);_s{const{prefixCls:ri,className:ao,closeIcon:Mi,closable:_s,type:Hs,title:Hr,children:Bi}=An,fn=ta(An,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:Ln}=C.useContext($i.E_),ur=Ln(),dt=ri||Ln("modal"),[,xt]=wn(dt),Et=`${dt}-confirm`;let et={};return Hs?et={closable:_s!=null?_s:!1,title:"",footer:"",children:C.createElement(Yt,Object.assign({},An,{prefixCls:dt,confirmPrefixCls:Et,rootPrefixCls:ur,content:Bi}))}:et={closable:_s!=null?_s:!0,title:Hr,footer:An.footer===void 0?C.createElement(jr,Object.assign({},An)):An.footer,children:Bi},C.createElement(Tt,Object.assign({prefixCls:dt,className:p()(xt,`${dt}-pure-panel`,Hs&&Et,Hs&&`${Et}-${Hs}`,ao)},fn,{closeIcon:wr(dt,Mi),closable:_s},et))};var Po=(0,hs.i)(fi);function mo(){const[An,ri]=C.useState([]),ao=C.useCallback(Mi=>(ri(_s=>[].concat((0,v.Z)(_s),[Mi])),()=>{ri(_s=>_s.filter(Hs=>Hs!==Mi))}),[]);return[An,ao]}var or=_(47462),Oi=function(An,ri){var ao={};for(var Mi in An)Object.prototype.hasOwnProperty.call(An,Mi)&&ri.indexOf(Mi)<0&&(ao[Mi]=An[Mi]);if(An!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _s=0,Mi=Object.getOwnPropertySymbols(An);_s{var ao,{afterClose:Mi,config:_s}=An,Hs=Oi(An,["afterClose","config"]);const[Hr,Bi]=C.useState(!0),[fn,Ln]=C.useState(_s),{direction:ur,getPrefixCls:dt}=C.useContext($i.E_),xt=dt("modal"),Et=dt(),et=()=>{var yr;Mi(),(yr=fn.afterClose)===null||yr===void 0||yr.call(fn)},wt=function(){Bi(!1);for(var yr=arguments.length,Yr=new Array(yr),eo=0;eoIi&&Ii.triggerCancel);fn.onCancel&&Zo&&fn.onCancel.apply(fn,[()=>{}].concat((0,v.Z)(Yr.slice(1))))};C.useImperativeHandle(ri,()=>({destroy:wt,update:yr=>{Ln(Yr=>Object.assign(Object.assign({},Yr),yr))}}));const Vt=(ao=fn.okCancel)!==null&&ao!==void 0?ao:fn.type==="confirm",[yn]=(0,F.Z)("Modal",or.Z.Modal);return C.createElement(fr,Object.assign({prefixCls:xt,rootPrefixCls:Et},fn,{close:wt,open:Hr,afterClose:et,okText:fn.okText||(Vt?yn==null?void 0:yn.okText:yn==null?void 0:yn.justOkText),direction:fn.direction||ur,cancelText:fn.cancelText||(yn==null?void 0:yn.cancelText)},Hs))};var Sa=C.forwardRef(Wa);let xa=0;const Ml=C.memo(C.forwardRef((An,ri)=>{const[ao,Mi]=mo();return C.useImperativeHandle(ri,()=>({patchElement:Mi}),[]),C.createElement(C.Fragment,null,ao)}));function wo(){const An=C.useRef(null),[ri,ao]=C.useState([]);C.useEffect(()=>{ri.length&&((0,v.Z)(ri).forEach(Hr=>{Hr()}),ao([]))},[ri]);const Mi=C.useCallback(Hs=>function(Bi){var fn;xa+=1;const Ln=C.createRef();let ur;const dt=new Promise(Vt=>{ur=Vt});let xt=!1,Et;const et=C.createElement(Sa,{key:`modal-${xa}`,config:Hs(Bi),ref:Ln,afterClose:()=>{Et==null||Et()},isSilent:()=>xt,onConfirm:Vt=>{ur(Vt)}});return Et=(fn=An.current)===null||fn===void 0?void 0:fn.patchElement(et),Et&&bi.push(Et),{destroy:()=>{function Vt(){var yn;(yn=Ln.current)===null||yn===void 0||yn.destroy()}Ln.current?Vt():ao(yn=>[].concat((0,v.Z)(yn),[Vt]))},update:Vt=>{function yn(){var yr;(yr=Ln.current)===null||yr===void 0||yr.update(Vt)}Ln.current?yn():ao(yr=>[].concat((0,v.Z)(yr),[yn]))},then:Vt=>(xt=!0,dt.then(Vt))}},[]);return[C.useMemo(()=>({info:Mi(kr),success:Mi(Xr),error:Mi(yo),warning:Mi(Ni),confirm:Mi(ls)}),[]),C.createElement(Ml,{key:"modal-holder",ref:An})]}var _l=wo;function El(An){return Wr(Ni(An))}const Ai=In;Ai.useModal=_l,Ai.info=function(ri){return Wr(kr(ri))},Ai.success=function(ri){return Wr(Xr(ri))},Ai.error=function(ri){return Wr(yo(ri))},Ai.warning=El,Ai.warn=El,Ai.confirm=function(ri){return Wr(ls(ri))},Ai.destroyAll=function(){for(;bi.length;){const ri=bi.pop();ri&&ri()}},Ai.config=Sr,Ai._InternalPanelDoNotUseOrYouWillBeFired=Po;var to=Ai},16831:function(mt,q,_){"use strict";_.d(q,{A:function(){return V},f:function(){return N}});var v=_(47462);let M=Object.assign({},v.Z.Modal),C=[];const x=()=>C.reduce((R,k)=>Object.assign(Object.assign({},R),k),v.Z.Modal);function N(R){if(R){const k=Object.assign({},R);return C.push(k),M=x(),()=>{C=C.filter(S=>S!==k),M=x()}}M=Object.assign({},v.Z.Modal)}function V(){return M}},72346:function(mt,q,_){"use strict";_.d(q,{Z:function(){return Re}});var v=_(77617),M=_(86850),C=_(12124),x=_.n(C),N=_(41760),V=_(38251),R=_(39029),k=_(37628),S=_(41203),p=_(11018),T=_(43775),F=_(1386),K=_(34745),he=_(45763),fe=_(92584),be=_(47462),Ae=_(46683),xe=_(93154);const Se=je=>{const{componentCls:Ce,iconCls:rt,antCls:Ne,zIndexPopup:Xt,colorText:Ft,colorWarning:lt,marginXXS:Bt,marginXS:At,fontSize:an,fontWeightStrong:Tt,colorTextHeading:Nn}=je;return{[Ce]:{zIndex:Xt,[`&${Ne}-popover`]:{fontSize:an},[`${Ce}-message`]:{marginBottom:At,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Ce}-message-icon ${rt}`]:{color:lt,fontSize:an,lineHeight:1,marginInlineEnd:At},[`${Ce}-title`]:{fontWeight:Tt,color:Nn,"&:only-child":{fontWeight:"normal"}},[`${Ce}-description`]:{marginTop:Bt,color:Ft}},[`${Ce}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:At}}}}};var it=(0,xe.Z)("Popconfirm",je=>Se(je),je=>{const{zIndexPopupBase:Ce}=je;return{zIndexPopup:Ce+60}},{resetStyle:!1}),Xe=function(je,Ce){var rt={};for(var Ne in je)Object.prototype.hasOwnProperty.call(je,Ne)&&Ce.indexOf(Ne)<0&&(rt[Ne]=je[Ne]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,Ne=Object.getOwnPropertySymbols(je);Xt{const{prefixCls:Ce,okButtonProps:rt,cancelButtonProps:Ne,title:Xt,description:Ft,cancelText:lt,okText:Bt,okType:At="primary",icon:an=v.createElement(M.Z,null),showCancel:Tt=!0,close:Nn,onConfirm:mn,onCancel:zn,onPopupClick:Kr}=je,{getPrefixCls:Ui}=v.useContext(S.E_),[go]=(0,fe.Z)("Popconfirm",be.Z.Popconfirm),gi=(0,F.Z)(Xt),Mr=(0,F.Z)(Ft);return v.createElement("div",{className:`${Ce}-inner-content`,onClick:Kr},v.createElement("div",{className:`${Ce}-message`},an&&v.createElement("span",{className:`${Ce}-message-icon`},an),v.createElement("div",{className:`${Ce}-message-text`},gi&&v.createElement("div",{className:x()(`${Ce}-title`)},gi),Mr&&v.createElement("div",{className:`${Ce}-description`},Mr))),v.createElement("div",{className:`${Ce}-buttons`},Tt&&v.createElement(K.ZP,Object.assign({onClick:zn,size:"small"},Ne),lt!=null?lt:go==null?void 0:go.cancelText),v.createElement(T.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,he.nx)(At)),rt),actionFn:mn,close:Nn,prefixCls:Ui("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Bt!=null?Bt:go==null?void 0:go.okText)))};var Ee=je=>{const{prefixCls:Ce,placement:rt,className:Ne,style:Xt}=je,Ft=Xe(je,["prefixCls","placement","className","style"]),{getPrefixCls:lt}=v.useContext(S.E_),Bt=lt("popconfirm",Ce),[At]=it(Bt);return At(v.createElement(Ae.ZP,{placement:rt,className:x()(Bt,Ne),style:Xt,content:v.createElement(ft,Object.assign({prefixCls:Bt},Ft))}))},ze=function(je,Ce){var rt={};for(var Ne in je)Object.prototype.hasOwnProperty.call(je,Ne)&&Ce.indexOf(Ne)<0&&(rt[Ne]=je[Ne]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,Ne=Object.getOwnPropertySymbols(je);Xt{const{prefixCls:rt,placement:Ne="top",trigger:Xt="click",okType:Ft="primary",icon:lt=v.createElement(M.Z,null),children:Bt,overlayClassName:At,onOpenChange:an,onVisibleChange:Tt}=je,Nn=ze(je,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:mn}=v.useContext(S.E_),[zn,Kr]=(0,N.Z)(!1,{value:je.open,defaultValue:je.defaultOpen}),Ui=(co,Vr)=>{Kr(co,!0),Tt==null||Tt(co),an==null||an(co,Vr)},go=co=>{Ui(!1,co)},gi=co=>{var Vr;return(Vr=je.onConfirm)===null||Vr===void 0?void 0:Vr.call(void 0,co)},Mr=co=>{var Vr;Ui(!1,co),(Vr=je.onCancel)===null||Vr===void 0||Vr.call(void 0,co)},To=co=>{co.keyCode===V.Z.ESC&&zn&&Ui(!1,co)},ms=co=>{const{disabled:Vr=!1}=je;Vr||Ui(co)},De=mn("popconfirm",rt),Oo=x()(De,At),[$i]=it(De);return $i(v.createElement(p.Z,Object.assign({},(0,R.Z)(Nn,["title"]),{trigger:Xt,placement:Ne,onOpenChange:ms,open:zn,ref:Ce,overlayClassName:Oo,content:v.createElement(ft,Object.assign({okType:Ft,icon:lt},je,{prefixCls:De,close:go,onConfirm:gi,onCancel:Mr})),"data-popover-inject":!0}),(0,k.Tm)(Bt,{onKeyDown:co=>{var Vr,Ro;v.isValidElement(Bt)&&((Ro=Bt==null?void 0:(Vr=Bt.props).onKeyDown)===null||Ro===void 0||Ro.call(Vr,co)),To(co)}})))});Pe._InternalPanelDoNotUseOrYouWillBeFired=Ee;var Re=Pe},46683:function(mt,q,_){"use strict";_.d(q,{t5:function(){return p}});var v=_(12124),M=_.n(v),C=_(31718),x=_(77617),N=_(41203),V=_(1386),R=_(8786),k=function(F,K){var he={};for(var fe in F)Object.prototype.hasOwnProperty.call(F,fe)&&K.indexOf(fe)<0&&(he[fe]=F[fe]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,fe=Object.getOwnPropertySymbols(F);be{if(!(!K&&!he))return x.createElement(x.Fragment,null,K&&x.createElement("div",{className:`${F}-title`},(0,V.Z)(K)),x.createElement("div",{className:`${F}-inner-content`},(0,V.Z)(he)))},p=F=>{const{hashId:K,prefixCls:he,className:fe,style:be,placement:Ae="top",title:xe,content:Se,children:it}=F;return x.createElement("div",{className:M()(K,he,`${he}-pure`,`${he}-placement-${Ae}`,fe),style:be},x.createElement("div",{className:`${he}-arrow`}),x.createElement(C.G,Object.assign({},F,{className:K,prefixCls:he}),it||S(he,xe,Se)))},T=F=>{const{prefixCls:K}=F,he=k(F,["prefixCls"]),{getPrefixCls:fe}=x.useContext(N.E_),be=fe("popover",K),[Ae,xe]=(0,R.Z)(be);return Ae(x.createElement(p,Object.assign({},he,{prefixCls:be,hashId:xe})))};q.ZP=T},11018:function(mt,q,_){"use strict";var v=_(77617),M=_(12124),C=_.n(M),x=_(1386),N=_(8418),V=_(41203),R=_(19189),k=_(46683),S=_(8786),p=function(K,he){var fe={};for(var be in K)Object.prototype.hasOwnProperty.call(K,be)&&he.indexOf(be)<0&&(fe[be]=K[be]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,be=Object.getOwnPropertySymbols(K);Ae{let{title:he,content:fe,prefixCls:be}=K;return v.createElement(v.Fragment,null,he&&v.createElement("div",{className:`${be}-title`},(0,x.Z)(he)),v.createElement("div",{className:`${be}-inner-content`},(0,x.Z)(fe)))},F=v.forwardRef((K,he)=>{const{prefixCls:fe,title:be,content:Ae,overlayClassName:xe,placement:Se="top",trigger:it="hover",mouseEnterDelay:Xe=.1,mouseLeaveDelay:ft=.1,overlayStyle:Me={}}=K,Ee=p(K,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ze}=v.useContext(V.E_),Pe=ze("popover",fe),[Re,je]=(0,S.Z)(Pe),Ce=ze(),rt=C()(xe,je);return Re(v.createElement(R.Z,Object.assign({placement:Se,trigger:it,mouseEnterDelay:Xe,mouseLeaveDelay:ft,overlayStyle:Me},Ee,{prefixCls:Pe,overlayClassName:rt,ref:he,overlay:be||Ae?v.createElement(T,{prefixCls:Pe,title:be,content:Ae}):null,transitionName:(0,N.m)(Ce,"zoom-big",Ee.transitionName),"data-popover-inject":!0})))});F._InternalPanelDoNotUseOrYouWillBeFired=k.ZP,q.Z=F},8786:function(mt,q,_){"use strict";var v=_(21348),M=_(53679),C=_(95661),x=_(33930),N=_(93154),V=_(43040);const R=p=>{const{componentCls:T,popoverColor:F,titleMinWidth:K,fontWeightStrong:he,popoverPadding:fe,boxShadowSecondary:be,colorTextHeading:Ae,borderRadiusLG:xe,zIndexPopup:Se,marginXS:it,colorBgElevated:Xe,popoverBg:ft}=p;return[{[T]:Object.assign(Object.assign({},(0,v.Wf)(p)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:Se,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Xe,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${T}-content`]:{position:"relative"},[`${T}-inner`]:{backgroundColor:ft,backgroundClip:"padding-box",borderRadius:xe,boxShadow:be,padding:fe},[`${T}-title`]:{minWidth:K,marginBottom:it,color:Ae,fontWeight:he},[`${T}-inner-content`]:{color:F}})},(0,C.ZP)(p,{colorBg:"var(--antd-arrow-background-color)"}),{[`${T}-pure`]:{position:"relative",maxWidth:"none",margin:p.sizePopupArrow,display:"inline-block",[`${T}-content`]:{display:"inline-block"}}}]},k=p=>{const{componentCls:T}=p;return{[T]:x.i.map(F=>{const K=p[`${F}6`];return{[`&${T}-${F}`]:{"--antd-arrow-background-color":K,[`${T}-inner`]:{backgroundColor:K},[`${T}-arrow`]:{background:"transparent"}}}})}},S=p=>{const{componentCls:T,lineWidth:F,lineType:K,colorSplit:he,paddingSM:fe,controlHeight:be,fontSize:Ae,lineHeight:xe,padding:Se}=p,it=be-Math.round(Ae*xe),Xe=it/2,ft=it/2-F,Me=Se;return{[T]:{[`${T}-inner`]:{padding:0},[`${T}-title`]:{margin:0,padding:`${Xe}px ${Me}px ${ft}px`,borderBottom:`${F}px ${K} ${he}`},[`${T}-inner-content`]:{padding:`${fe}px ${Me}px`}}}};q.Z=(0,N.Z)("Popover",p=>{const{colorBgElevated:T,colorText:F,wireframe:K}=p,he=(0,V.TS)(p,{popoverPadding:12,popoverBg:T,popoverColor:F});return[R(he),k(he),K&&S(he),(0,M._y)(he,"zoom-big")]},p=>({width:177,minWidth:177,titleMinWidth:177,zIndexPopup:p.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},90161:function(mt,q,_){"use strict";_.d(q,{ZP:function(){return an}});var v=_(77617),M=_(12124),C=_.n(M),x=_(41760),N=_(5090),V=_(41203),R=_(29212);const k=v.createContext(null),S=k.Provider;var p=k;const T=v.createContext(null),F=T.Provider;var K=_(5630),he=_(9681),fe=_(90836),be=_(50180),Ae=_(57132),xe=_(74334),Se=_(21348),it=_(93154),Xe=_(43040);const ft=Tt=>{const{componentCls:Nn,antCls:mn}=Tt,zn=`${Nn}-group`;return{[zn]:Object.assign(Object.assign({},(0,Se.Wf)(Tt)),{display:"inline-block",fontSize:0,[`&${zn}-rtl`]:{direction:"rtl"},[`${mn}-badge ${mn}-badge-count`]:{zIndex:1},[`> ${mn}-badge:not(:first-child) > ${mn}-button-wrapper`]:{borderInlineStart:"none"}})}},Me=Tt=>{const{componentCls:Nn,wrapperMarginInlineEnd:mn,colorPrimary:zn,radioSize:Kr,motionDurationSlow:Ui,motionDurationMid:go,motionEaseInOutCirc:gi,colorBgContainer:Mr,colorBorder:To,lineWidth:ms,dotSize:De,colorBgContainerDisabled:Oo,colorTextDisabled:$i,paddingXS:co,dotColorDisabled:Vr,lineType:Ro,radioDotDisabledSize:Tn,wireframe:nt,colorWhite:Ct}=Tt,Ht=`${Nn}-inner`;return{[`${Nn}-wrapper`]:Object.assign(Object.assign({},(0,Se.Wf)(Tt)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:mn,cursor:"pointer",[`&${Nn}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Tt.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Nn}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ms}px ${Ro} ${zn}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Nn]:Object.assign(Object.assign({},(0,Se.Wf)(Tt)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Nn}-wrapper:hover &, + &:hover ${Ht}`]:{borderColor:zn},[`${Nn}-input:focus-visible + ${Ht}`]:Object.assign({},(0,Se.oN)(Tt)),[`${Nn}:hover::after, ${Nn}-wrapper:hover &::after`]:{visibility:"visible"},[`${Nn}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Kr,height:Kr,marginBlockStart:Kr/-2,marginInlineStart:Kr/-2,backgroundColor:nt?zn:Ct,borderBlockStart:0,borderInlineStart:0,borderRadius:Kr,transform:"scale(0)",opacity:0,transition:`all ${Ui} ${gi}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Kr,height:Kr,backgroundColor:Mr,borderColor:To,borderStyle:"solid",borderWidth:ms,borderRadius:"50%",transition:`all ${go}`},[`${Nn}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Nn}-checked`]:{[Ht]:{borderColor:zn,backgroundColor:nt?Mr:zn,"&::after":{transform:`scale(${De/Kr})`,opacity:1,transition:`all ${Ui} ${gi}`}}},[`${Nn}-disabled`]:{cursor:"not-allowed",[Ht]:{backgroundColor:Oo,borderColor:To,cursor:"not-allowed","&::after":{backgroundColor:Vr}},[`${Nn}-input`]:{cursor:"not-allowed"},[`${Nn}-disabled + span`]:{color:$i,cursor:"not-allowed"},[`&${Nn}-checked`]:{[Ht]:{"&::after":{transform:`scale(${Tn/Kr})`}}}},[`span${Nn} + *`]:{paddingInlineStart:co,paddingInlineEnd:co}})}},Ee=Tt=>{const{buttonColor:Nn,controlHeight:mn,componentCls:zn,lineWidth:Kr,lineType:Ui,colorBorder:go,motionDurationSlow:gi,motionDurationMid:Mr,buttonPaddingInline:To,fontSize:ms,buttonBg:De,fontSizeLG:Oo,controlHeightLG:$i,controlHeightSM:co,paddingXS:Vr,borderRadius:Ro,borderRadiusSM:Tn,borderRadiusLG:nt,buttonCheckedBg:Ct,buttonSolidCheckedColor:Ht,colorTextDisabled:hn,colorBgContainerDisabled:En,buttonCheckedBgDisabled:rn,buttonCheckedColorDisabled:Jt,colorPrimary:Mt,colorPrimaryHover:Qt,colorPrimaryActive:Dn,buttonSolidCheckedBg:sn,buttonSolidCheckedHoverBg:wr,buttonSolidCheckedActiveBg:jr}=Tt;return{[`${zn}-button-wrapper`]:{position:"relative",display:"inline-block",height:mn,margin:0,paddingInline:To,paddingBlock:0,color:Nn,fontSize:ms,lineHeight:`${mn-Kr*2}px`,background:De,border:`${Kr}px ${Ui} ${go}`,borderBlockStartWidth:Kr+.02,borderInlineStartWidth:0,borderInlineEndWidth:Kr,cursor:"pointer",transition:[`color ${Mr}`,`background ${Mr}`,`box-shadow ${Mr}`].join(","),a:{color:Nn},[`> ${zn}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-Kr,insetInlineStart:-Kr,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Kr,paddingInline:0,backgroundColor:go,transition:`background-color ${gi}`,content:'""'}},"&:first-child":{borderInlineStart:`${Kr}px ${Ui} ${go}`,borderStartStartRadius:Ro,borderEndStartRadius:Ro},"&:last-child":{borderStartEndRadius:Ro,borderEndEndRadius:Ro},"&:first-child:last-child":{borderRadius:Ro},[`${zn}-group-large &`]:{height:$i,fontSize:Oo,lineHeight:`${$i-Kr*2}px`,"&:first-child":{borderStartStartRadius:nt,borderEndStartRadius:nt},"&:last-child":{borderStartEndRadius:nt,borderEndEndRadius:nt}},[`${zn}-group-small &`]:{height:co,paddingInline:Vr-Kr,paddingBlock:0,lineHeight:`${co-Kr*2}px`,"&:first-child":{borderStartStartRadius:Tn,borderEndStartRadius:Tn},"&:last-child":{borderStartEndRadius:Tn,borderEndEndRadius:Tn}},"&:hover":{position:"relative",color:Mt},"&:has(:focus-visible)":Object.assign({},(0,Se.oN)(Tt)),[`${zn}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${zn}-button-wrapper-disabled)`]:{zIndex:1,color:Mt,background:Ct,borderColor:Mt,"&::before":{backgroundColor:Mt},"&:first-child":{borderColor:Mt},"&:hover":{color:Qt,borderColor:Qt,"&::before":{backgroundColor:Qt}},"&:active":{color:Dn,borderColor:Dn,"&::before":{backgroundColor:Dn}}},[`${zn}-group-solid &-checked:not(${zn}-button-wrapper-disabled)`]:{color:Ht,background:sn,borderColor:sn,"&:hover":{color:Ht,background:wr,borderColor:wr},"&:active":{color:Ht,background:jr,borderColor:jr}},"&-disabled":{color:hn,backgroundColor:En,borderColor:go,cursor:"not-allowed","&:first-child, &:hover":{color:hn,backgroundColor:En,borderColor:go}},[`&-disabled${zn}-button-wrapper-checked`]:{color:Jt,backgroundColor:rn,borderColor:go,boxShadow:"none"}}}},ze=Tt=>Tt-4*2;var Pe=(0,it.Z)("Radio",Tt=>{const{controlOutline:Nn,controlOutlineWidth:mn,radioSize:zn}=Tt,Kr=`0 0 0 ${mn}px ${Nn}`,Ui=Kr,go=ze(zn),gi=(0,Xe.TS)(Tt,{radioDotDisabledSize:go,radioFocusShadow:Kr,radioButtonFocusShadow:Ui});return[ft(gi),Me(gi),Ee(gi)]},Tt=>{const{wireframe:Nn,padding:mn,marginXS:zn,lineWidth:Kr,fontSizeLG:Ui,colorText:go,colorBgContainer:gi,colorTextDisabled:Mr,controlItemBgActiveDisabled:To,colorTextLightSolid:ms,colorPrimary:De,colorPrimaryHover:Oo,colorPrimaryActive:$i}=Tt,co=4,Vr=Ui,Ro=Nn?ze(Vr):Vr-(co+Kr)*2;return{radioSize:Vr,dotSize:Ro,dotColorDisabled:Mr,buttonSolidCheckedColor:ms,buttonSolidCheckedBg:De,buttonSolidCheckedHoverBg:Oo,buttonSolidCheckedActiveBg:$i,buttonBg:gi,buttonCheckedBg:gi,buttonColor:go,buttonCheckedBgDisabled:To,buttonCheckedColorDisabled:Mr,buttonPaddingInline:mn-Kr,wrapperMarginInlineEnd:zn}}),Re=function(Tt,Nn){var mn={};for(var zn in Tt)Object.prototype.hasOwnProperty.call(Tt,zn)&&Nn.indexOf(zn)<0&&(mn[zn]=Tt[zn]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kr=0,zn=Object.getOwnPropertySymbols(Tt);Kr{var mn,zn;const Kr=v.useContext(p),Ui=v.useContext(T),{getPrefixCls:go,direction:gi,radio:Mr}=v.useContext(V.E_),To=v.useRef(null),ms=(0,he.sQ)(Nn,To),{isFormItemInput:De}=v.useContext(xe.aM),Oo=Dn=>{var sn,wr;(sn=Tt.onChange)===null||sn===void 0||sn.call(Tt,Dn),(wr=Kr==null?void 0:Kr.onChange)===null||wr===void 0||wr.call(Kr,Dn)},{prefixCls:$i,className:co,rootClassName:Vr,children:Ro,style:Tn}=Tt,nt=Re(Tt,["prefixCls","className","rootClassName","children","style"]),Ct=go("radio",$i),Ht=((Kr==null?void 0:Kr.optionType)||Ui)==="button",hn=Ht?`${Ct}-button`:Ct,[En,rn]=Pe(Ct),Jt=Object.assign({},nt),Mt=v.useContext(Ae.Z);Kr&&(Jt.name=Kr.name,Jt.onChange=Oo,Jt.checked=Tt.value===Kr.value,Jt.disabled=(mn=Jt.disabled)!==null&&mn!==void 0?mn:Kr.disabled),Jt.disabled=(zn=Jt.disabled)!==null&&zn!==void 0?zn:Mt;const Qt=C()(`${hn}-wrapper`,{[`${hn}-wrapper-checked`]:Jt.checked,[`${hn}-wrapper-disabled`]:Jt.disabled,[`${hn}-wrapper-rtl`]:gi==="rtl",[`${hn}-wrapper-in-form-item`]:De},Mr==null?void 0:Mr.className,co,Vr,rn);return En(v.createElement(fe.Z,{component:"Radio",disabled:Jt.disabled},v.createElement("label",{className:Qt,style:Object.assign(Object.assign({},Mr==null?void 0:Mr.style),Tn),onMouseEnter:Tt.onMouseEnter,onMouseLeave:Tt.onMouseLeave},v.createElement(K.Z,Object.assign({},Jt,{className:C()(Jt.className,!Ht&&be.A),type:"radio",prefixCls:hn,ref:ms})),Ro!==void 0?v.createElement("span",null,Ro):null)))};var rt=v.forwardRef(je);const Ne=v.forwardRef((Tt,Nn)=>{const{getPrefixCls:mn,direction:zn}=v.useContext(V.E_),[Kr,Ui]=(0,x.Z)(Tt.defaultValue,{value:Tt.value}),go=sn=>{const wr=Kr,jr=sn.target.value;"value"in Tt||Ui(jr);const{onChange:xi}=Tt;xi&&jr!==wr&&xi(sn)},{prefixCls:gi,className:Mr,rootClassName:To,options:ms,buttonStyle:De="outline",disabled:Oo,children:$i,size:co,style:Vr,id:Ro,onMouseEnter:Tn,onMouseLeave:nt,onFocus:Ct,onBlur:Ht}=Tt,hn=mn("radio",gi),En=`${hn}-group`,[rn,Jt]=Pe(hn);let Mt=$i;ms&&ms.length>0&&(Mt=ms.map(sn=>typeof sn=="string"||typeof sn=="number"?v.createElement(rt,{key:sn.toString(),prefixCls:hn,disabled:Oo,value:sn,checked:Kr===sn},sn):v.createElement(rt,{key:`radio-group-value-options-${sn.value}`,prefixCls:hn,disabled:sn.disabled||Oo,value:sn.value,checked:Kr===sn.value,title:sn.title,style:sn.style,id:sn.id},sn.label)));const Qt=(0,R.Z)(co),Dn=C()(En,`${En}-${De}`,{[`${En}-${Qt}`]:Qt,[`${En}-rtl`]:zn==="rtl"},Mr,To,Jt);return rn(v.createElement("div",Object.assign({},(0,N.Z)(Tt,{aria:!0,data:!0}),{className:Dn,style:Vr,onMouseEnter:Tn,onMouseLeave:nt,onFocus:Ct,onBlur:Ht,id:Ro,ref:Nn}),v.createElement(S,{value:{onChange:go,value:Kr,disabled:Tt.disabled,name:Tt.name,optionType:Tt.optionType}},Mt)))});var Xt=v.memo(Ne),Ft=function(Tt,Nn){var mn={};for(var zn in Tt)Object.prototype.hasOwnProperty.call(Tt,zn)&&Nn.indexOf(zn)<0&&(mn[zn]=Tt[zn]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kr=0,zn=Object.getOwnPropertySymbols(Tt);Kr{const{getPrefixCls:mn}=v.useContext(V.E_),{prefixCls:zn}=Tt,Kr=Ft(Tt,["prefixCls"]),Ui=mn("radio",zn);return v.createElement(F,{value:"button"},v.createElement(rt,Object.assign({prefixCls:Ui},Kr,{type:"radio",ref:Nn})))};var Bt=v.forwardRef(lt);const At=rt;At.Button=Bt,At.Group=Xt,At.__ANT_RADIO=!0;var an=At},73415:function(mt,q,_){"use strict";_.d(q,{ZP:function(){return Ft}});var v=_(77617),M=_(95934),C=_(48796),x=_(86850),N=_(26508),V={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"},R=V,k=_(91851),S=function(Bt,At){return v.createElement(k.Z,(0,N.Z)({},Bt,{ref:At,icon:R}))},p=v.forwardRef(S),T=_(12124),F=_.n(T),K=_(41203),fe=()=>v.createElement("svg",{width:"252",height:"294"},v.createElement("defs",null,v.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(0 .012)"},v.createElement("mask",{fill:"#fff"}),v.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)"})),v.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"}),v.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),v.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"}),v.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"}),v.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),v.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),v.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"}),v.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),Ae=()=>v.createElement("svg",{width:"254",height:"294"},v.createElement("defs",null,v.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),v.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(0 .067)"},v.createElement("mask",{fill:"#fff"}),v.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)"})),v.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"}),v.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),v.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.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"}),v.createElement("mask",{fill:"#fff"}),v.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),v.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)"}),v.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)"}),v.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)"}),v.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)"}),v.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)"}),v.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)"}),v.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),v.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)"}),v.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)"}),v.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)"}))),xe=_(93154),Se=_(43040);const it=lt=>{const{componentCls:Bt,lineHeightHeading3:At,iconCls:an,padding:Tt,paddingXL:Nn,paddingXS:mn,paddingLG:zn,marginXS:Kr,lineHeight:Ui}=lt;return{[Bt]:{padding:`${zn*2}px ${Nn}px`,"&-rtl":{direction:"rtl"}},[`${Bt} ${Bt}-image`]:{width:lt.imageWidth,height:lt.imageHeight,margin:"auto"},[`${Bt} ${Bt}-icon`]:{marginBottom:zn,textAlign:"center",[`& > ${an}`]:{fontSize:lt.iconFontSize}},[`${Bt} ${Bt}-title`]:{color:lt.colorTextHeading,fontSize:lt.titleFontSize,lineHeight:At,marginBlock:Kr,textAlign:"center"},[`${Bt} ${Bt}-subtitle`]:{color:lt.colorTextDescription,fontSize:lt.subtitleFontSize,lineHeight:Ui,textAlign:"center"},[`${Bt} ${Bt}-content`]:{marginTop:zn,padding:`${zn}px ${Tt*2.5}px`,backgroundColor:lt.colorFillAlter},[`${Bt} ${Bt}-extra`]:{margin:lt.extraMargin,textAlign:"center","& > *":{marginInlineEnd:mn,"&:last-child":{marginInlineEnd:0}}}}},Xe=lt=>{const{componentCls:Bt,iconCls:At}=lt;return{[`${Bt}-success ${Bt}-icon > ${At}`]:{color:lt.resultSuccessIconColor},[`${Bt}-error ${Bt}-icon > ${At}`]:{color:lt.resultErrorIconColor},[`${Bt}-info ${Bt}-icon > ${At}`]:{color:lt.resultInfoIconColor},[`${Bt}-warning ${Bt}-icon > ${At}`]:{color:lt.resultWarningIconColor}}},ft=lt=>[it(lt),Xe(lt)],Me=lt=>ft(lt);var Ee=(0,xe.Z)("Result",lt=>{const Bt=lt.colorInfo,At=lt.colorError,an=lt.colorSuccess,Tt=lt.colorWarning,Nn=(0,Se.TS)(lt,{resultInfoIconColor:Bt,resultErrorIconColor:At,resultSuccessIconColor:an,resultWarningIconColor:Tt,imageWidth:250,imageHeight:295});return[Me(Nn)]},lt=>({titleFontSize:lt.fontSizeHeading3,subtitleFontSize:lt.fontSize,iconFontSize:lt.fontSizeHeading3*3,extraMargin:`${lt.paddingLG}px 0 0 0`})),Pe=()=>v.createElement("svg",{width:"251",height:"294"},v.createElement("g",{fill:"none",fillRule:"evenodd"},v.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"}),v.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"}),v.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),v.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"}),v.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"}),v.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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 Re={success:M.Z,error:C.Z,info:x.Z,warning:p},je={404:fe,500:Ae,403:Pe},Ce=Object.keys(je),rt=lt=>{let{prefixCls:Bt,icon:At,status:an}=lt;const Tt=F()(`${Bt}-icon`);if(Ce.includes(`${an}`)){const mn=je[an];return v.createElement("div",{className:`${Tt} ${Bt}-image`},v.createElement(mn,null))}const Nn=v.createElement(Re[an]);return At===null||At===!1?null:v.createElement("div",{className:Tt},At||Nn)},Ne=lt=>{let{prefixCls:Bt,extra:At}=lt;return At?v.createElement("div",{className:`${Bt}-extra`},At):null},Xt=lt=>{let{prefixCls:Bt,className:At,rootClassName:an,subTitle:Tt,title:Nn,style:mn,children:zn,status:Kr="info",icon:Ui,extra:go}=lt;const{getPrefixCls:gi,direction:Mr,result:To}=v.useContext(K.E_),ms=gi("result",Bt),[De,Oo]=Ee(ms),$i=F()(ms,`${ms}-${Kr}`,At,To==null?void 0:To.className,an,{[`${ms}-rtl`]:Mr==="rtl"},Oo),co=Object.assign(Object.assign({},To==null?void 0:To.style),mn);return De(v.createElement("div",{className:$i,style:co},v.createElement(rt,{prefixCls:ms,status:Kr,icon:Ui}),v.createElement("div",{className:`${ms}-title`},Nn),Tt&&v.createElement("div",{className:`${ms}-subtitle`},Tt),v.createElement(Ne,{prefixCls:ms,extra:go}),zn&&v.createElement("div",{className:`${ms}-content`},zn)))};Xt.PRESENTED_IMAGE_403=je[403],Xt.PRESENTED_IMAGE_404=je[404],Xt.PRESENTED_IMAGE_500=je[500];var Ft=Xt},71163:function(mt,q,_){"use strict";var v=_(77617),M=_(12124),C=_.n(M),x=_(98889),N=_(39029),V=_(8799),R=_(8418),k=_(33966),S=_(3335),p=_(41203),T=_(56524),F=_(57132),K=_(29212),he=_(74334),fe=_(43906),be=_(32994),Ae=_(12284),xe=_(20562),Se=_(85184),it=function(ze,Pe){var Re={};for(var je in ze)Object.prototype.hasOwnProperty.call(ze,je)&&Pe.indexOf(je)<0&&(Re[je]=ze[je]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,je=Object.getOwnPropertySymbols(ze);Ce{var Re,je,{prefixCls:Ce,bordered:rt=!0,className:Ne,rootClassName:Xt,getPopupContainer:Ft,popupClassName:lt,dropdownClassName:Bt,listHeight:At=256,placement:an,listItemHeight:Tt=24,size:Nn,disabled:mn,notFoundContent:zn,status:Kr,builtinPlacements:Ui,dropdownMatchSelectWidth:go,popupMatchSelectWidth:gi,direction:Mr,style:To,allowClear:ms}=ze,De=it(ze,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Oo,getPrefixCls:$i,renderEmpty:co,direction:Vr,virtual:Ro,popupMatchSelectWidth:Tn,popupOverflow:nt,select:Ct}=v.useContext(p.E_),Ht=$i("select",Ce),hn=$i(),En=Mr!=null?Mr:Vr,{compactSize:rn,compactItemClassnames:Jt}=(0,fe.ri)(Ht,En),[Mt,Qt]=(0,be.Z)(Ht),Dn=v.useMemo(()=>{const{mode:Ur}=De;if(Ur!=="combobox")return Ur===Xe?"combobox":Ur},[De.mode]),sn=Dn==="multiple"||Dn==="tags",wr=(0,Se.Z)(De.suffixIcon,De.showArrow),jr=(Re=gi!=null?gi:go)!==null&&Re!==void 0?Re:Tn,{status:xi,hasFeedback:Pr,isFormItemInput:Hi,feedbackIcon:Io}=v.useContext(he.aM),On=(0,S.F)(xi,Kr);let zr;zn!==void 0?zr=zn:Dn==="combobox"?zr=null:zr=(co==null?void 0:co("Select"))||v.createElement(T.Z,{componentName:"Select"});const{suffixIcon:qr,itemIcon:Wi,removeIcon:ir,clearIcon:Jn}=(0,xe.Z)(Object.assign(Object.assign({},De),{multiple:sn,hasFeedback:Pr,feedbackIcon:Io,showSuffixIcon:wr,prefixCls:Ht,showArrow:De.showArrow,componentName:"Select"})),$t=ms===!0?{clearIcon:Jn}:ms,Gt=(0,N.Z)(De,["suffixIcon","itemIcon"]),wn=C()(lt||Bt,{[`${Ht}-dropdown-${En}`]:En==="rtl"},Xt,Qt),Zn=(0,K.Z)(Ur=>{var Ao;return(Ao=Nn!=null?Nn:rn)!==null&&Ao!==void 0?Ao:Ur}),_r=v.useContext(F.Z),qn=mn!=null?mn:_r,$n=C()({[`${Ht}-lg`]:Zn==="large",[`${Ht}-sm`]:Zn==="small",[`${Ht}-rtl`]:En==="rtl",[`${Ht}-borderless`]:!rt,[`${Ht}-in-form-item`]:Hi},(0,S.Z)(Ht,On,Pr),Jt,Ct==null?void 0:Ct.className,Ne,Xt,Qt),jt=v.useMemo(()=>an!==void 0?an:En==="rtl"?"bottomRight":"bottomLeft",[an,En]),In=(0,Ae.Z)(Ui,nt),[vr]=(0,V.Cn)("SelectLike",(je=De.dropdownStyle)===null||je===void 0?void 0:je.zIndex);return Mt(v.createElement(x.ZP,Object.assign({ref:Pe,virtual:Ro,showSearch:Ct==null?void 0:Ct.showSearch},Gt,{style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),To),dropdownMatchSelectWidth:jr,builtinPlacements:In,transitionName:(0,R.m)(hn,"slide-up",De.transitionName),listHeight:At,listItemHeight:Tt,mode:Dn,prefixCls:Ht,placement:jt,direction:En,suffixIcon:qr,menuItemSelectedIcon:Wi,removeIcon:ir,allowClear:$t,notFoundContent:zr,className:$n,getPopupContainer:Ft||Oo,dropdownClassName:wn,disabled:qn,dropdownStyle:Object.assign(Object.assign({},De==null?void 0:De.dropdownStyle),{zIndex:vr})})))},Me=v.forwardRef(ft),Ee=(0,k.Z)(Me);Me.SECRET_COMBOBOX_MODE_DO_NOT_USE=Xe,Me.Option=x.Wx,Me.OptGroup=x.Xo,Me._InternalPanelDoNotUseOrYouWillBeFired=Ee,q.Z=Me},32994:function(mt,q,_){"use strict";_.d(q,{Z:function(){return ft}});var v=_(21348),M=_(82248),C=_(43040),x=_(93154),N=_(81437),V=_(58893);const R=Me=>{const{optionHeight:Ee,optionFontSize:ze,optionLineHeight:Pe,optionPadding:Re}=Me;return{position:"relative",display:"block",minHeight:Ee,padding:Re,color:Me.colorText,fontWeight:"normal",fontSize:ze,lineHeight:Pe,boxSizing:"border-box"}};var S=Me=>{const{antCls:Ee,componentCls:ze}=Me,Pe=`${ze}-item`,Re=`&${Ee}-slide-up-enter${Ee}-slide-up-enter-active`,je=`&${Ee}-slide-up-appear${Ee}-slide-up-appear-active`,Ce=`&${Ee}-slide-up-leave${Ee}-slide-up-leave-active`,rt=`${ze}-dropdown-placement-`;return[{[`${ze}-dropdown`]:Object.assign(Object.assign({},(0,v.Wf)(Me)),{position:"absolute",top:-9999,zIndex:Me.zIndexPopup,boxSizing:"border-box",padding:Me.paddingXXS,overflow:"hidden",fontSize:Me.fontSize,fontVariant:"initial",backgroundColor:Me.colorBgElevated,borderRadius:Me.borderRadiusLG,outline:"none",boxShadow:Me.boxShadowSecondary,[` + ${Re}${rt}bottomLeft, + ${je}${rt}bottomLeft + `]:{animationName:N.fJ},[` + ${Re}${rt}topLeft, + ${je}${rt}topLeft, + ${Re}${rt}topRight, + ${je}${rt}topRight + `]:{animationName:N.Qt},[`${Ce}${rt}bottomLeft`]:{animationName:N.Uw},[` + ${Ce}${rt}topLeft, + ${Ce}${rt}topRight + `]:{animationName:N.ly},"&-hidden":{display:"none"},[`${Pe}`]:Object.assign(Object.assign({},R(Me)),{cursor:"pointer",transition:`background ${Me.motionDurationSlow} ease`,borderRadius:Me.borderRadiusSM,"&-group":{color:Me.colorTextDescription,fontSize:Me.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},v.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Pe}-option-disabled)`]:{backgroundColor:Me.optionActiveBg},[`&-selected:not(${Pe}-option-disabled)`]:{color:Me.optionSelectedColor,fontWeight:Me.optionSelectedFontWeight,backgroundColor:Me.optionSelectedBg,[`${Pe}-option-state`]:{color:Me.colorPrimary}},"&-disabled":{[`&${Pe}-option-selected`]:{backgroundColor:Me.colorBgContainerDisabled},color:Me.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Me.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,N.oN)(Me,"slide-up"),(0,N.oN)(Me,"slide-down"),(0,V.Fm)(Me,"move-up"),(0,V.Fm)(Me,"move-down")]};const p=2,T=Me=>{let{multipleSelectItemHeight:Ee,selectHeight:ze,lineWidth:Pe}=Me;const Re=(ze-Ee)/2-Pe,je=Math.ceil(Re/2);return[Re,je]};function F(Me,Ee){const{componentCls:ze,iconCls:Pe}=Me,Re=`${ze}-selection-overflow`,je=Me.multipleSelectItemHeight,[Ce]=T(Me),rt=Ee?`${ze}-${Ee}`:"";return{[`${ze}-multiple${rt}`]:{fontSize:Me.fontSize,[Re]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${ze}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:`${Ce-p}px ${p*2}px`,borderRadius:Me.borderRadius,[`${ze}-show-search&`]:{cursor:"text"},[`${ze}-disabled&`]:{background:Me.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${p}px 0`,lineHeight:`${je}px`,visibility:"hidden",content:'"\\a0"'}},[` + &${ze}-show-arrow ${ze}-selector, + &${ze}-allow-clear ${ze}-selector + `]:{paddingInlineEnd:Me.fontSizeIcon+Me.controlPaddingHorizontal},[`${ze}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:je,marginTop:p,marginBottom:p,lineHeight:`${je-Me.lineWidth*2}px`,background:Me.multipleItemBg,border:`${Me.lineWidth}px ${Me.lineType} ${Me.multipleItemBorderColor}`,borderRadius:Me.borderRadiusSM,cursor:"default",transition:`font-size ${Me.motionDurationSlow}, line-height ${Me.motionDurationSlow}, height ${Me.motionDurationSlow}`,marginInlineEnd:p*2,paddingInlineStart:Me.paddingXS,paddingInlineEnd:Me.paddingXS/2,[`${ze}-disabled&`]:{color:Me.multipleItemColorDisabled,borderColor:Me.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Me.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,v.Ro)()),{display:"inline-flex",alignItems:"center",color:Me.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Pe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Me.colorIconHover}})},[`${Re}-item + ${Re}-item`]:{[`${ze}-selection-search`]:{marginInlineStart:0}},[`${Re}-item-suffix`]:{height:"100%"},[`${ze}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Me.inputPaddingHorizontalBase-Ce,[` &-input, &-mirror - `]:{height:Ae,fontFamily:be.fontFamily,lineHeight:`${Ae}px`,transition:`all ${be.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:be.inputPaddingHorizontalBase,insetInlineEnd:be.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${be.motionDurationSlow}`}}}}var te=be=>{const{componentCls:ve}=be,ye=(0,b.TS)(be,{selectHeight:be.controlHeightSM,multipleSelectItemHeight:be.controlHeightXS,borderRadius:be.borderRadiusSM,borderRadiusSM:be.borderRadiusXS}),Ce=(0,b.TS)(be,{fontSize:be.fontSizeLG,selectHeight:be.controlHeightLG,multipleSelectItemHeight:be.multipleItemHeightLG,borderRadius:be.borderRadiusLG,borderRadiusSM:be.borderRadius}),[,xe]=S(be);return[P(be),P(ye,"sm"),{[`${ve}-multiple${ve}-sm`]:{[`${ve}-selection-placeholder`]:{insetInline:be.controlPaddingHorizontalSM-be.lineWidth},[`${ve}-selection-search`]:{marginInlineStart:xe}}},P(Ce,"lg")]};function re(be,ve){const{componentCls:ye,inputPaddingHorizontalBase:Ce,borderRadius:xe}=be,Ae=be.controlHeight-be.lineWidth*2,ge=Math.ceil(be.fontSize*1.25),We=ve?`${ye}-${ve}`:"";return{[`${ye}-single${We}`]:{fontSize:be.fontSize,height:be.controlHeight,[`${ye}-selector`]:Object.assign(Object.assign({},(0,y.Wf)(be,!0)),{display:"flex",borderRadius:xe,[`${ye}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Ce,insetInlineEnd:Ce,bottom:0,"&-input":{width:"100%"}},[` - ${ye}-selection-item, - ${ye}-selection-placeholder - `]:{padding:0,lineHeight:`${Ae}px`,transition:`all ${be.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:ge},[`&${ye}-open ${ye}-selection-item`]:{color:be.colorTextPlaceholder},[`&:not(${ye}-customize-input)`]:{[`${ye}-selector`]:{width:"100%",height:"100%",padding:`0 ${Ce}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 ${Ce}px`,"&:after":{display:"none"}}}}}}}function ce(be){const{componentCls:ve}=be,ye=be.controlPaddingHorizontalSM-be.lineWidth;return[re(be),re((0,b.TS)(be,{controlHeight:be.controlHeightSM,borderRadius:be.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+be.fontSize*1.5},[` - &${ve}-show-arrow ${ve}-selection-item, - &${ve}-show-arrow ${ve}-selection-placeholder - `]:{paddingInlineEnd:be.fontSize*1.5}}}},re((0,b.TS)(be,{controlHeight:be.singleItemHeightLG,fontSize:be.fontSizeLG,borderRadius:be.borderRadiusLG}),"lg")]}const pe=be=>{const{componentCls:ve,selectorBg:ye}=be;return{position:"relative",backgroundColor:ye,border:`${be.lineWidth}px ${be.lineType} ${be.colorBorder}`,transition:`all ${be.motionDurationMid} ${be.motionEaseInOut}`,input:{cursor:"pointer"},[`${ve}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${ve}-disabled&`]:{color:be.colorTextDisabled,background:be.colorBgContainerDisabled,cursor:"not-allowed",[`${ve}-multiple&`]:{background:be.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},he=function(be,ve){let ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Ce,borderHoverColor:xe,antCls:Ae,borderActiveColor:ge,outlineColor:We,controlOutlineWidth:Se}=ve,Pt=ye?{[`${Ce}-selector`]:{borderColor:ge}}:{};return{[be]:{[`&:not(${Ce}-disabled):not(${Ce}-customize-input):not(${Ae}-pagination-size-changer)`]:Object.assign(Object.assign({},Pt),{[`&:hover ${Ce}-selector`]:{borderColor:xe},[`${Ce}-focused& ${Ce}-selector`]:{borderColor:ge,boxShadow:`0 0 0 ${Se}px ${We}`,outline:0}})}}},fe=be=>{const{componentCls:ve}=be;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=be=>{const{antCls:ve,componentCls:ye,inputPaddingHorizontalBase:Ce,iconCls:xe}=be;return{[ye]:Object.assign(Object.assign({},(0,y.Wf)(be)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${ye}-customize-input) ${ye}-selector`]:Object.assign(Object.assign({},pe(be)),fe(be)),[`${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:be.colorTextPlaceholder,pointerEvents:"none"}),[`${ye}-arrow`]:Object.assign(Object.assign({},(0,y.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ce,height:be.fontSizeIcon,marginTop:-be.fontSizeIcon/2,color:be.colorTextQuaternary,fontSize:be.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[xe]:{verticalAlign:"top",transition:`transform ${be.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:Ce,zIndex:1,display:"inline-block",width:be.fontSizeIcon,height:be.fontSizeIcon,marginTop:-be.fontSizeIcon/2,color:be.colorTextQuaternary,fontSize:be.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:be.clearBg,cursor:"pointer",opacity:0,transition:`color ${be.motionDurationMid} ease, opacity ${be.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:be.colorTextTertiary}},"&:hover":{[`${ye}-clear`]:{opacity:1}}}),[`${ye}-has-feedback`]:{[`${ye}-clear`]:{insetInlineEnd:Ce+be.fontSize+be.paddingXS}}}},Ie=be=>{const{componentCls:ve}=be;return[{[ve]:{[`&-borderless ${ve}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${ve}-in-form-item`]:{width:"100%"}}},Be(be),ce(be),te(be),C(be),{[`${ve}-rtl`]:{direction:"rtl"}},he(ve,(0,b.TS)(be,{borderHoverColor:be.colorPrimaryHover,borderActiveColor:be.colorPrimary,outlineColor:be.controlOutline})),he(`${ve}-status-error`,(0,b.TS)(be,{borderHoverColor:be.colorErrorHover,borderActiveColor:be.colorError,outlineColor:be.colorErrorOutline}),!0),he(`${ve}-status-warning`,(0,b.TS)(be,{borderHoverColor:be.colorWarningHover,borderActiveColor:be.colorWarning,outlineColor:be.colorWarningOutline}),!0),(0,I.c)(be,{borderElCls:`${ve}-selector`,focusElCls:`${ve}-focused`})]};var je=(0,z.Z)("Select",(be,ve)=>{let{rootPrefixCls:ye}=ve;const Ce=(0,b.TS)(be,{rootPrefixCls:ye,inputPaddingHorizontalBase:be.paddingSM-1,multipleSelectItemHeight:be.multipleItemHeight,selectHeight:be.controlHeight});return[Ie(Ce)]},be=>{const{fontSize:ve,lineHeight:ye,controlHeight:Ce,controlPaddingHorizontal:xe,zIndexPopupBase:Ae,colorText:ge,fontWeightStrong:We,controlItemBgActive:Se,controlItemBgHover:Pt,colorBgContainer:dt,colorFillSecondary:He,controlHeightLG:Ct,controlHeightSM:ft,colorBgContainerDisabled:zt,colorTextDisabled:mt}=be;return{zIndexPopup:Ae+50,optionSelectedColor:ge,optionSelectedFontWeight:We,optionSelectedBg:Se,optionActiveBg:Pt,optionPadding:`${(Ce-ve*ye)/2}px ${xe}px`,optionFontSize:ve,optionLineHeight:ye,optionHeight:Ce,selectorBg:dt,clearBg:dt,singleItemHeightLG:Ct,multipleItemBg:He,multipleItemBorderColor:"transparent",multipleItemHeight:ft,multipleItemHeightLG:Ce,multipleSelectorBgDisabled:zt,multipleItemColorDisabled:mt,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:te,multiple:re,hasFeedback:ce,prefixCls:pe,showSuffixIcon:he,feedbackIcon:fe,showArrow:Be,componentName:Ie}=C;const je=S!=null?S:y.createElement(b.Z,null),be=xe=>f===null&&!ce&&!Be?null:y.createElement(y.Fragment,null,he!==!1&&xe,ce&&fe);let ve=null;if(f!==void 0)ve=be(f);else if(te)ve=be(y.createElement(N.Z,{spin:!0}));else{const xe=`${pe}-suffix`;ve=Ae=>{let{open:ge,showSearch:We}=Ae;return be(ge&&We?y.createElement(w.Z,{className:xe}):y.createElement(k.Z,{className:xe}))}}let ye=null;P!==void 0?ye=P:re?ye=y.createElement(I.Z,null):ye=null;let Ce=null;return W!==void 0?Ce=W:Ce=y.createElement(z.Z,null),{clearIcon:je,suffixIcon:ve,itemIcon:ye,removeIcon:Ce}}},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(te,re){var ce={};for(var pe in te)Object.prototype.hasOwnProperty.call(te,pe)&&re.indexOf(pe)<0&&(ce[pe]=te[pe]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,pe=Object.getOwnPropertySymbols(te);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()(`${te}-compact${Ie}item`,{[`${te}-compact${Ie}first-item`]:fe,[`${te}-compact${Ie}last-item`]:Be,[`${te}-compact${Ie}item-rtl`]:re==="rtl"})},[te,re,ce]);return{compactSize:ce==null?void 0:ce.compactSize,compactDirection:ce==null?void 0:ce.compactDirection,compactItemClassnames:pe}},S=te=>{let{children:re}=te;return z.createElement(C.Provider,{value:null},re)},P=te=>{var{children:re}=te,ce=A(te,["children"]);return z.createElement(C.Provider,{value:ce},re)},W=te=>{const{getPrefixCls:re,direction:ce}=z.useContext(k.E_),{size:pe,direction:he,block:fe,prefixCls:Be,className:Ie,rootClassName:je,children:be}=te,ve=A(te,["size","direction","block","prefixCls","className","rootClassName","children"]),ye=(0,N.Z)(dt=>pe!=null?pe:dt),Ce=re("space-compact",Be),[xe,Ae]=(0,w.Z)(Ce),ge=I()(Ce,Ae,{[`${Ce}-rtl`]:ce==="rtl",[`${Ce}-block`]:fe,[`${Ce}-vertical`]:he==="vertical"},Ie,je),We=z.useContext(C),Se=(0,b.Z)(be),Pt=z.useMemo(()=>Se.map((dt,He)=>{const Ct=dt&&dt.key||`${Ce}-item-${He}`;return z.createElement(P,{key:Ct,compactSize:ye,compactDirection:he,isFirstItem:He===0&&(!We||(We==null?void 0:We.isFirstItem)),isLastItem:He===Se.length-1&&(!We||(We==null?void 0:We.isLastItem))},dt)}),[pe,Se,We]);return Se.length===0?null:xe(z.createElement("div",Object.assign({className:ge},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:je,style:be}=he;const{latestIndex:ve}=y.useContext(C);return Ie==null?null:y.createElement(y.Fragment,null,y.createElement("div",{className:fe,style:be},Ie),Be{var Be,Ie;const{getPrefixCls:je,space:be,direction:ve}=y.useContext(w.E_),{size:ye=(be==null?void 0:be.size)||"small",align:Ce,className:xe,rootClassName:Ae,children:ge,direction:We="horizontal",prefixCls:Se,split:Pt,style:dt,wrap:He=!1,classNames:Ct,styles:ft}=he,zt=te(he,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[mt,yn]=Array.isArray(ye)?ye:[ye,ye],Bn=k(yn),Lr=k(mt),ri=N(yn),gi=N(mt),ro=(0,z.Z)(ge,{keepEmpty:!0}),To=Ce===void 0&&We==="horizontal"?"center":Ce,_r=je("space",Se),[Bo,fs]=(0,W.Z)(_r),me=b()(_r,be==null?void 0:be.className,fs,`${_r}-${We}`,{[`${_r}-rtl`]:ve==="rtl",[`${_r}-align-${To}`]:To,[`${_r}-gap-row-${yn}`]:Bn,[`${_r}-gap-col-${mt}`]:Lr},xe,Ae),So=b()(`${_r}-item`,(Be=Ct==null?void 0:Ct.item)!==null&&Be!==void 0?Be:(Ie=be==null?void 0:be.classNames)===null||Ie===void 0?void 0:Ie.item);let ho=0;const go=ro.map((dn,Ve)=>{var yt,xt;dn!=null&&(ho=Ve);const Wt=dn&&dn.key||`${So}-${Ve}`;return y.createElement(P,{className:So,key:Wt,index:Ve,split:Pt,style:(yt=ft==null?void 0:ft.item)!==null&&yt!==void 0?yt:(xt=be==null?void 0:be.styles)===null||xt===void 0?void 0:xt.item},dn)}),ji=y.useMemo(()=>({latestIndex:ho}),[ho]);if(ro.length===0)return null;const No={};return He&&(No.flexWrap="wrap"),!Lr&&gi&&(No.columnGap=mt),!Bn&&ri&&(No.rowGap=yn),Bo(y.createElement("div",Object.assign({ref:fe,className:me,style:Object.assign(Object.assign(Object.assign({},No),be==null?void 0:be.style),dt)},zt),y.createElement(f,{value:ji},go)))});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,Ce,xe){var Ae=xe||{},ge=Ae.noTrailing,We=ge===void 0?!1:ge,Se=Ae.noLeading,Pt=Se===void 0?!1:Se,dt=Ae.debounceMode,He=dt===void 0?void 0:dt,Ct,ft=!1,zt=0;function mt(){Ct&&clearTimeout(Ct)}function yn(Lr){var ri=Lr||{},gi=ri.upcomingOnly,ro=gi===void 0?!1:gi;mt(),ft=!ro}function Bn(){for(var Lr=arguments.length,ri=new Array(Lr),gi=0;giye?Pt?(zt=Date.now(),We||(Ct=setTimeout(He?Bo:_r,ye))):_r():We!==!0&&(Ct=setTimeout(He?Bo:_r,He===void 0?ye-To:ye))}return Bn.cancel=yn,Bn}function N(ye,Ce,xe){var Ae=xe||{},ge=Ae.atBegin,We=ge===void 0?!1:ge;return k(ye,Ce,{debounceMode:We!==!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}}),te=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:te,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 Ce=(0,P.TS)(ye,{spinDotDefault:ye.colorTextDescription});return[re(Ce)]},ye=>({contentHeight:400,dotSize:ye.controlHeightLG/2,dotSizeSM:ye.controlHeightLG*.35,dotSizeLG:ye.controlHeight})),pe=function(ye,Ce){var xe={};for(var Ae in ye)Object.prototype.hasOwnProperty.call(ye,Ae)&&Ce.indexOf(Ae)<0&&(xe[Ae]=ye[Ae]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,Ae=Object.getOwnPropertySymbols(ye);ge{const{spinPrefixCls:Ce,spinning:xe=!0,delay:Ae=0,className:ge,rootClassName:We,size:Se="default",tip:Pt,wrapperClassName:dt,style:He,children:Ct,hashId:ft}=ye,zt=pe(ye,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[mt,yn]=y.useState(()=>xe&&!Ie(xe,Ae));y.useEffect(()=>{if(xe){const fs=N(Ae,()=>{yn(!0)});return fs(),()=>{var me;(me=fs==null?void 0:fs.cancel)===null||me===void 0||me.call(fs)}}yn(!1)},[Ae,xe]);const Bn=y.useMemo(()=>typeof Ct!="undefined",[Ct]),{direction:Lr,spin:ri}=y.useContext(A.E_),gi=b()(Ce,ri==null?void 0:ri.className,{[`${Ce}-sm`]:Se==="small",[`${Ce}-lg`]:Se==="large",[`${Ce}-spinning`]:mt,[`${Ce}-show-text`]:!!Pt,[`${Ce}-rtl`]:Lr==="rtl"},ge,We,ft),ro=b()(`${Ce}-container`,{[`${Ce}-blur`]:mt}),To=(0,z.Z)(zt,["indicator","prefixCls"]),_r=Object.assign(Object.assign({},ri==null?void 0:ri.style),He),Bo=y.createElement("div",Object.assign({},To,{style:_r,className:gi,"aria-live":"polite","aria-busy":mt}),Be(Ce,ye),Pt&&Bn?y.createElement("div",{className:`${Ce}-text`},Pt):null);return Bn?y.createElement("div",Object.assign({},To,{className:b()(`${Ce}-nested-loading`,dt,ft)}),mt&&y.createElement("div",{key:"loading"},Bo),y.createElement("div",{className:ro,key:"container"},Ct)):Bo},be=ye=>{const{prefixCls:Ce}=ye,{getPrefixCls:xe}=y.useContext(A.E_),Ae=xe("spin",Ce),[ge,We]=ce(Ae),Se=Object.assign(Object.assign({},ye),{spinPrefixCls:Ae,hashId:We});return ge(y.createElement(je,Object.assign({},Se)))};be.setDefaultIndicator=ye=>{fe=ye};var ve=be},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},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"}}]}},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({},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"}}}},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,te)=>{const{antCls:re}=W,ce=`${re}-${te}`,{inKeyframes:pe,outKeyframes:he}=S[te];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,te)=>{const{antCls:re}=W,ce=`${re}-${te}`,{inKeyframes:pe,outKeyframes:he}=S[te];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%"}}),te=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:te}},ce=(pe,he)=>{const{antCls:fe}=pe,Be=`${fe}-${he}`,{inKeyframes:Ie,outKeyframes:je}=re[he];return[(0,I.R)(Be,Ie,je,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,te=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-te,Ie=re,je=2*S-P,be=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 ${te} ${re} L ${ce} ${pe} A ${w} ${w} 0 0 1 ${he} ${fe} L ${Be} ${Ie} A ${A} ${A} 0 0 0 ${je} ${be} 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:te=N.borderRadiusLG,limitVerticalRadius:re,arrowDistance:ce=0,arrowPlacement:pe={left:!0,right:!0,top:!0,bottom:!0}}=w,{dropdownArrowOffsetVertical:he,dropdownArrowOffset:fe}=b({contentRadius:te,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 We}});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(Se,Pt){var dt,He=Se.prefixCls,Ct=He===void 0?"rc-switch":He,ft=Se.className,zt=Se.checked,mt=Se.defaultChecked,yn=Se.disabled,Bn=Se.loadingIcon,Lr=Se.checkedChildren,ri=Se.unCheckedChildren,gi=Se.onClick,ro=Se.onChange,To=Se.onKeyDown,_r=(0,A.Z)(Se,S),Bo=(0,C.Z)(!1,{value:zt,defaultValue:mt}),fs=(0,w.Z)(Bo,2),me=fs[0],So=fs[1];function ho(dn,Ve){var yt=me;return yn||(yt=dn,So(yt),ro==null||ro(yt,Ve)),yt}function go(dn){dn.which===f.Z.LEFT?ho(!1,dn):dn.which===f.Z.RIGHT&&ho(!0,dn),To==null||To(dn)}function ji(dn){var Ve=ho(!me,dn);gi==null||gi(Ve,dn)}var No=z()(Ct,ft,(dt={},(0,N.Z)(dt,"".concat(Ct,"-checked"),me),(0,N.Z)(dt,"".concat(Ct,"-disabled"),yn),dt));return y.createElement("button",(0,k.Z)({},_r,{type:"button",role:"switch","aria-checked":me,disabled:yn,className:No,ref:Pt,onKeyDown:go,onClick:ji}),Bn,y.createElement("span",{className:"".concat(Ct,"-inner")},y.createElement("span",{className:"".concat(Ct,"-inner-checked")},Lr),y.createElement("span",{className:"".concat(Ct,"-inner-unchecked")},ri)))});P.displayName="Switch";var W=P,te=m(27724),re=m(67392),ce=m(81689),pe=m(21843),he=m(64993),fe=m(92068),Be=m(24577),Ie=m(41788);const je=Se=>{const{componentCls:Pt,trackHeightSM:dt,trackPadding:He,trackMinWidthSM:Ct,innerMinMarginSM:ft,innerMaxMarginSM:zt,handleSizeSM:mt}=Se,yn=`${Pt}-inner`;return{[Pt]:{[`&${Pt}-small`]:{minWidth:Ct,height:dt,lineHeight:`${dt}px`,[`${Pt}-inner`]:{paddingInlineStart:zt,paddingInlineEnd:ft,[`${yn}-checked`]:{marginInlineStart:`calc(-100% + ${mt+He*2}px - ${zt*2}px)`,marginInlineEnd:`calc(100% - ${mt+He*2}px + ${zt*2}px)`},[`${yn}-unchecked`]:{marginTop:-dt,marginInlineStart:0,marginInlineEnd:0}},[`${Pt}-handle`]:{width:mt,height:mt},[`${Pt}-loading-icon`]:{top:(mt-Se.switchLoadingIconSize)/2,fontSize:Se.switchLoadingIconSize},[`&${Pt}-checked`]:{[`${Pt}-inner`]:{paddingInlineStart:ft,paddingInlineEnd:zt,[`${yn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${yn}-unchecked`]:{marginInlineStart:`calc(100% - ${mt+He*2}px + ${zt*2}px)`,marginInlineEnd:`calc(-100% + ${mt+He*2}px - ${zt*2}px)`}},[`${Pt}-handle`]:{insetInlineStart:`calc(100% - ${mt+He}px)`}},[`&:not(${Pt}-disabled):active`]:{[`&:not(${Pt}-checked) ${yn}`]:{[`${yn}-unchecked`]:{marginInlineStart:Se.marginXXS/2,marginInlineEnd:-Se.marginXXS/2}},[`&${Pt}-checked ${yn}`]:{[`${yn}-checked`]:{marginInlineStart:-Se.marginXXS/2,marginInlineEnd:Se.marginXXS/2}}}}}}},be=Se=>{const{componentCls:Pt,handleSize:dt}=Se;return{[Pt]:{[`${Pt}-loading-icon${Se.iconCls}`]:{position:"relative",top:(dt-Se.fontSize)/2,color:Se.switchLoadingIconColor,verticalAlign:"top"},[`&${Pt}-checked ${Pt}-loading-icon`]:{color:Se.switchColor}}}},ve=Se=>{const{componentCls:Pt,motion:dt,trackPadding:He,handleBg:Ct,handleShadow:ft,handleSize:zt}=Se,mt=`${Pt}-handle`;return{[Pt]:{[mt]:{position:"absolute",top:He,insetInlineStart:He,width:zt,height:zt,transition:`all ${Se.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ct,borderRadius:zt/2,boxShadow:ft,transition:`all ${Se.switchDuration} ease-in-out`,content:'""'}},[`&${Pt}-checked ${mt}`]:{insetInlineStart:`calc(100% - ${zt+He}px)`},[`&:not(${Pt}-disabled):active`]:dt?{[`${mt}::before`]:{insetInlineEnd:Se.switchHandleActiveInset,insetInlineStart:0},[`&${Pt}-checked ${mt}::before`]:{insetInlineEnd:0,insetInlineStart:Se.switchHandleActiveInset}}:{}}}},ye=Se=>{const{componentCls:Pt,trackHeight:dt,trackPadding:He,innerMinMargin:Ct,innerMaxMargin:ft,handleSize:zt}=Se,mt=`${Pt}-inner`;return{[Pt]:{[mt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ft,paddingInlineEnd:Ct,transition:`padding-inline-start ${Se.switchDuration} ease-in-out, padding-inline-end ${Se.switchDuration} ease-in-out`,[`${mt}-checked, ${mt}-unchecked`]:{display:"block",color:Se.colorTextLightSolid,fontSize:Se.fontSizeSM,transition:`margin-inline-start ${Se.switchDuration} ease-in-out, margin-inline-end ${Se.switchDuration} ease-in-out`,pointerEvents:"none"},[`${mt}-checked`]:{marginInlineStart:`calc(-100% + ${zt+He*2}px - ${ft*2}px)`,marginInlineEnd:`calc(100% - ${zt+He*2}px + ${ft*2}px)`},[`${mt}-unchecked`]:{marginTop:-dt,marginInlineStart:0,marginInlineEnd:0}},[`&${Pt}-checked ${mt}`]:{paddingInlineStart:Ct,paddingInlineEnd:ft,[`${mt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${mt}-unchecked`]:{marginInlineStart:`calc(100% - ${zt+He*2}px + ${ft*2}px)`,marginInlineEnd:`calc(-100% + ${zt+He*2}px - ${ft*2}px)`}},[`&:not(${Pt}-disabled):active`]:{[`&:not(${Pt}-checked) ${mt}`]:{[`${mt}-unchecked`]:{marginInlineStart:He*2,marginInlineEnd:-He*2}},[`&${Pt}-checked ${mt}`]:{[`${mt}-checked`]:{marginInlineStart:-He*2,marginInlineEnd:He*2}}}}}},Ce=Se=>{const{componentCls:Pt,trackHeight:dt,trackMinWidth:He}=Se;return{[Pt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,fe.Wf)(Se)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:He,height:dt,lineHeight:`${dt}px`,verticalAlign:"middle",background:Se.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Se.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Pt}-disabled)`]:{background:Se.colorTextTertiary}}),(0,fe.Qy)(Se)),{[`&${Pt}-checked`]:{background:Se.switchColor,[`&:hover:not(${Pt}-disabled)`]:{background:Se.colorPrimaryHover}},[`&${Pt}-loading, &${Pt}-disabled`]:{cursor:"not-allowed",opacity:Se.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Pt}-rtl`]:{direction:"rtl"}})}};var xe=(0,Be.Z)("Switch",Se=>{const Pt=(0,Ie.TS)(Se,{switchDuration:Se.motionDurationMid,switchColor:Se.colorPrimary,switchDisabledOpacity:Se.opacityLoading,switchLoadingIconSize:Se.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Se.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ce(Pt),ye(Pt),ve(Pt),be(Pt),je(Pt)]},Se=>{const{fontSize:Pt,lineHeight:dt,controlHeight:He,colorWhite:Ct}=Se,ft=Pt*dt,zt=He/2,mt=2,yn=ft-mt*2,Bn=zt-mt*2;return{trackHeight:ft,trackHeightSM:zt,trackMinWidth:yn*2+mt*4,trackMinWidthSM:Bn*2+mt*2,trackPadding:mt,handleBg:Ct,handleSize:yn,handleSizeSM:Bn,handleShadow:`0 2px 4px 0 ${new he.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:yn/2,innerMaxMargin:yn+mt+mt*2,innerMinMarginSM:Bn/2,innerMaxMarginSM:Bn+mt+mt*2}}),Ae=function(Se,Pt){var dt={};for(var He in Se)Object.prototype.hasOwnProperty.call(Se,He)&&Pt.indexOf(He)<0&&(dt[He]=Se[He]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,He=Object.getOwnPropertySymbols(Se);Ct{const{prefixCls:dt,size:He,disabled:Ct,loading:ft,className:zt,rootClassName:mt,style:yn}=Se,Bn=Ae(Se,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Lr,direction:ri,switch:gi}=y.useContext(re.E_),ro=y.useContext(ce.Z),To=(Ct!=null?Ct:ro)||ft,_r=Lr("switch",dt),Bo=y.createElement("div",{className:`${_r}-handle`},ft&&y.createElement(I.Z,{className:`${_r}-loading-icon`})),[fs,me]=xe(_r),So=(0,pe.Z)(He),ho=z()(gi==null?void 0:gi.className,{[`${_r}-small`]:So==="small",[`${_r}-loading`]:ft,[`${_r}-rtl`]:ri==="rtl"},zt,mt,me),go=Object.assign(Object.assign({},gi==null?void 0:gi.style),yn);return fs(y.createElement(te.Z,{component:"Switch"},y.createElement(W,Object.assign({},Bn,{prefixCls:_r,className:ho,style:go,disabled:To,ref:Pt,loadingIcon:Bo}))))});ge.__ANT_SWITCH=!0;var We=ge},2815:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Os}});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 vt=w.createContext(void 0),Ft=function($t){var Gt=$t.value,Nr=$t.children,In=w.useRef(Gt);In.current=Gt;var Tn=w.useState(function(){return{getValue:function(){return In.current},listeners:new Set}}),cn=(0,b.Z)(Tn,1),Jn=cn[0];return(0,k.Z)(function(){(0,A.unstable_batchedUpdates)(function(){Jn.listeners.forEach(function(Sr){Sr(Gt)})})},[Gt]),w.createElement(vt.Provider,{value:Jn},Nr)};return{Context:vt,Provider:Ft,defaultValue:Ye}}function f(Ye,vt){var Ft=(0,z.Z)(typeof vt=="function"?vt:function(Sr){if(vt===void 0)return Sr;if(!Array.isArray(vt))return Sr[vt];var Lo={};return vt.forEach(function(kt){Lo[kt]=Sr[kt]}),Lo}),Dt=w.useContext(Ye==null?void 0:Ye.Context),$t=Dt||{},Gt=$t.listeners,Nr=$t.getValue,In=w.useRef();In.current=Ft(Dt?Nr():Ye==null?void 0:Ye.defaultValue);var Tn=w.useState({}),cn=(0,b.Z)(Tn,2),Jn=cn[1];return(0,k.Z)(function(){if(!Dt)return;function Sr(Lo){var kt=Ft(Lo);(0,N.Z)(In.current,kt,!0)||Jn({})}return Gt.add(Sr),function(){Gt.delete(Sr)}},[Dt]),In.current}var S=m(26508),P=m(9681);function W(){var Ye=w.createContext(null);function vt(){return w.useContext(Ye)}function Ft($t,Gt){var Nr=(0,P.Yr)($t),In=function(cn,Jn){var Sr=Nr?{ref:Jn}:{},Lo=w.useRef(0),kt=w.useRef(cn),tr=vt();return tr!==null?w.createElement($t,(0,S.Z)({},cn,Sr)):((!Gt||Gt(kt.current,cn))&&(Lo.current+=1),kt.current=cn,w.createElement(Ye.Provider,{value:Lo.current},w.createElement($t,(0,S.Z)({},cn,Sr))))};return Nr?w.forwardRef(In):In}function Dt($t,Gt){var Nr=(0,P.Yr)($t),In=function(cn,Jn){var Sr=Nr?{ref:Jn}:{};return vt(),w.createElement($t,(0,S.Z)({},cn,Sr))};return Nr?w.memo(w.forwardRef(In),Gt):w.memo(In,Gt)}return{makeImmutable:Ft,responseImmutable:Dt,useImmutableMark:vt}}var te=W(),re=te.makeImmutable,ce=te.responseImmutable,pe=te.useImmutableMark,he=W(),fe=he.makeImmutable,Be=he.responseImmutable,Ie=he.useImmutableMark,je=C(),be=je;function ve(Ye,vt){var Ft=w.useRef(0);Ft.current+=1;var Dt=w.useRef(Ye),$t=[];Object.keys(Ye||{}).map(function(Nr){var In;(Ye==null?void 0:Ye[Nr])!==((In=Dt.current)===null||In===void 0?void 0:In[Nr])&&$t.push(Nr)}),Dt.current=Ye;var Gt=w.useRef([]);return $t.length&&(Gt.current=$t),w.useDebugValue(Ft.current),w.useDebugValue(Gt.current.join(", ")),vt&&console.log("".concat(vt,":"),Ft.current,Gt.current),Ft.current}var ye=null,Ce=w.memo(function(){var Ye=ve();return w.createElement("h1",null,"Render Times: ",Ye)});Ce.displayName="RenderBlock";var xe=m(91002),Ae=m(74710),ge=m(80268),We=m(12124),Se=m.n(We),Pt=m(79102),dt=m(84249),He=m(46644),Ct=w.createContext({renderWithProps:!1}),ft=Ct,zt="RC_TABLE_KEY";function mt(Ye){return Ye==null?[]:Array.isArray(Ye)?Ye:[Ye]}function yn(Ye){var vt=[],Ft={};return Ye.forEach(function(Dt){for(var $t=Dt||{},Gt=$t.key,Nr=$t.dataIndex,In=Gt||mt(Nr).join("-")||zt;Ft[In];)In="".concat(In,"_next");Ft[In]=!0,vt.push(In)}),vt}function Bn(Ye){return Ye!=null}function Lr(Ye){return Ye&&(0,xe.Z)(Ye)==="object"&&!Array.isArray(Ye)&&!w.isValidElement(Ye)}function ri(Ye,vt,Ft,Dt,$t,Gt){var Nr=w.useContext(ft),In=Ie(),Tn=(0,Pt.Z)(function(){if(Bn(Dt))return[Dt];var cn=vt==null||vt===""?[]:Array.isArray(vt)?vt:[vt],Jn=(0,dt.Z)(Ye,cn),Sr=Jn,Lo=void 0;if($t){var kt=$t(Jn,Ye,Ft);Lr(kt)?(Sr=kt.children,Lo=kt.props,Nr.renderWithProps=!0):Sr=kt}return[Sr,Lo]},[In,Ye,Dt,vt,$t,Ft],function(cn,Jn){if(Gt){var Sr=(0,b.Z)(cn,2),Lo=Sr[1],kt=(0,b.Z)(Jn,2),tr=kt[1];return Gt(tr,Lo)}return Nr.renderWithProps?!0:!(0,N.Z)(cn,Jn,!0)});return Tn}function gi(Ye,vt,Ft,Dt){var $t=Ye+vt-1;return Ye<=Dt&&$t>=Ft}function ro(Ye,vt){return f(be,function(Ft){var Dt=gi(Ye,vt||1,Ft.hoverStartRow,Ft.hoverEndRow);return[Dt,Ft.onHover]})}var To=function(vt){var Ft=vt.ellipsis,Dt=vt.rowType,$t=vt.children,Gt,Nr=Ft===!0?{showTitle:!0}:Ft;return Nr&&(Nr.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 _r(Ye){var vt,Ft,Dt,$t,Gt,Nr,In,Tn,cn=Ye.component,Jn=Ye.children,Sr=Ye.ellipsis,Lo=Ye.scope,kt=Ye.prefixCls,tr=Ye.className,Pn=Ye.align,ir=Ye.record,dr=Ye.render,jr=Ye.dataIndex,Ri=Ye.renderIndex,Te=Ye.shouldCellUpdate,qo=Ye.index,Zs=Ye.rowType,Sa=Ye.colSpan,da=Ye.rowSpan,Rs=Ye.fixLeft,ma=Ye.fixRight,ko=Ye.firstFixLeft,or=Ye.lastFixLeft,Ai=Ye.firstFixRight,Gi=Ye.lastFixRight,ds=Ye.appendNode,Ps=Ye.additionalProps,ha=Ps===void 0?{}:Ps,Yo=Ye.isSticky,sr="".concat(kt,"-cell"),io=f(be,["supportSticky","allColumnsFixedLeft"]),ws=io.supportSticky,ul=io.allColumnsFixedLeft,Dl=ri(ir,jr,Ri,Jn,dr,Te),Ba=(0,b.Z)(Dl,2),Ss=Ba[0],wl=Ba[1],rl={},mc=typeof Rs=="number"&&ws,pl=typeof ma=="number"&&ws;mc&&(rl.position="sticky",rl.left=Rs),pl&&(rl.position="sticky",rl.right=ma);var oc=(vt=(Ft=(Dt=wl==null?void 0:wl.colSpan)!==null&&Dt!==void 0?Dt:ha.colSpan)!==null&&Ft!==void 0?Ft:Sa)!==null&&vt!==void 0?vt:1,Ca=($t=(Gt=(Nr=wl==null?void 0:wl.rowSpan)!==null&&Nr!==void 0?Nr:ha.rowSpan)!==null&&Gt!==void 0?Gt:da)!==null&&$t!==void 0?$t:1,qu=ro(qo,Ca),$l=(0,b.Z)(qu,2),su=$l[0],tu=$l[1],Js=function(li){var Fi;ir&&tu(qo,qo+Ca-1),ha==null||(Fi=ha.onMouseEnter)===null||Fi===void 0||Fi.call(ha,li)},Gc=function(li){var Fi;ir&&tu(-1,-1),ha==null||(Fi=ha.onMouseLeave)===null||Fi===void 0||Fi.call(ha,li)};if(oc===0||Ca===0)return null;var Le=(In=ha.title)!==null&&In!==void 0?In:To({rowType:Zs,ellipsis:Sr,children:Ss}),Me=Se()(sr,tr,(Tn={},(0,ge.Z)(Tn,"".concat(sr,"-fix-left"),mc&&ws),(0,ge.Z)(Tn,"".concat(sr,"-fix-left-first"),ko&&ws),(0,ge.Z)(Tn,"".concat(sr,"-fix-left-last"),or&&ws),(0,ge.Z)(Tn,"".concat(sr,"-fix-left-all"),or&&ul&&ws),(0,ge.Z)(Tn,"".concat(sr,"-fix-right"),pl&&ws),(0,ge.Z)(Tn,"".concat(sr,"-fix-right-first"),Ai&&ws),(0,ge.Z)(Tn,"".concat(sr,"-fix-right-last"),Gi&&ws),(0,ge.Z)(Tn,"".concat(sr,"-ellipsis"),Sr),(0,ge.Z)(Tn,"".concat(sr,"-with-append"),ds),(0,ge.Z)(Tn,"".concat(sr,"-fix-sticky"),(mc||pl)&&Yo&&ws),(0,ge.Z)(Tn,"".concat(sr,"-row-hover"),!wl&&su),Tn),ha.className,wl==null?void 0:wl.className),et={};Pn&&(et.textAlign=Pn);var hn=(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},rl),ha.style),et),wl==null?void 0:wl.style),Or=Ss;return(0,xe.Z)(Or)==="object"&&!Array.isArray(Or)&&!w.isValidElement(Or)&&(Or=null),Sr&&(or||Ai)&&(Or=w.createElement("span",{className:"".concat(sr,"-content")},Or)),w.createElement(cn,(0,S.Z)({},wl,ha,{className:Me,style:hn,title:Le,scope:Lo,onMouseEnter:Js,onMouseLeave:Gc,colSpan:oc!==1?oc:null,rowSpan:Ca!==1?Ca:null}),ds,Or)}var Bo=w.memo(_r);function fs(Ye,vt,Ft,Dt,$t,Gt){var Nr=Ft[Ye]||{},In=Ft[vt]||{},Tn,cn;Nr.fixed==="left"?Tn=Dt.left[$t==="rtl"?vt:Ye]:In.fixed==="right"&&(cn=Dt.right[$t==="rtl"?Ye:vt]);var Jn=!1,Sr=!1,Lo=!1,kt=!1,tr=Ft[vt+1],Pn=Ft[Ye-1],ir=!(Gt!=null&&Gt.children);if($t==="rtl"){if(Tn!==void 0){var dr=Pn&&Pn.fixed==="left";kt=!dr&&ir}else if(cn!==void 0){var jr=tr&&tr.fixed==="right";Lo=!jr&&ir}}else if(Tn!==void 0){var Ri=tr&&tr.fixed==="left";Jn=!Ri&&ir}else if(cn!==void 0){var Te=Pn&&Pn.fixed==="right";Sr=!Te&&ir}return{fixLeft:Tn,fixRight:cn,lastFixLeft:Jn,firstFixRight:Sr,lastFixRight:Lo,firstFixLeft:kt,isSticky:Dt.isSticky}}var me=w.createContext({}),So=me;function ho(Ye){var vt=Ye.className,Ft=Ye.index,Dt=Ye.children,$t=Ye.colSpan,Gt=$t===void 0?1:$t,Nr=Ye.rowSpan,In=Ye.align,Tn=f(be,["prefixCls","direction"]),cn=Tn.prefixCls,Jn=Tn.direction,Sr=w.useContext(So),Lo=Sr.scrollColumnIndex,kt=Sr.stickyOffsets,tr=Sr.flattenColumns,Pn=Sr.columns,ir=Ft+Gt-1,dr=ir+1===Lo?Gt+1:Gt,jr=fs(Ft,Ft+dr-1,tr,kt,Jn,Pn==null?void 0:Pn[Ft]);return w.createElement(Bo,(0,S.Z)({className:vt,index:Ft,component:"td",prefixCls:cn,record:null,dataIndex:null,align:In,colSpan:dr,rowSpan:Nr,render:function(){return Dt}},jr))}var go=m(52528),ji=["children"];function No(Ye){var vt=Ye.children,Ft=(0,go.Z)(Ye,ji);return w.createElement("tr",Ft,vt)}function dn(Ye){var vt=Ye.children;return vt}dn.Row=No,dn.Cell=ho;var Ve=dn;function yt(Ye){var vt=Ye.children,Ft=Ye.stickyOffsets,Dt=Ye.flattenColumns,$t=Ye.columns,Gt=f(be,"prefixCls"),Nr=Dt.length-1,In=Dt[Nr],Tn=w.useMemo(function(){return{stickyOffsets:Ft,flattenColumns:Dt,scrollColumnIndex:In!=null&&In.scrollbar?Nr:null,columns:$t}},[In,Dt,Nr,Ft,$t]);return w.createElement(So.Provider,{value:Tn},w.createElement("tfoot",{className:"".concat(Gt,"-summary")},vt))}var xt=Be(yt),Wt=Ve,sn=m(95470),Ot=m(28647),Tt=m(64630),bt=m(8339),Ht=m(9001),zn=m(5090);function en(Ye,vt,Ft,Dt,$t,Gt,Nr){Ye.push({record:vt,indent:Ft,index:Nr});var In=Gt(vt),Tn=$t==null?void 0:$t.has(In);if(vt&&Array.isArray(vt[Dt])&&Tn)for(var cn=0;cn1?ko-1:0),Ai=1;Ai=0;In-=1){var Tn=vt[In],cn=Ft&&Ft[In],Jn=cn&&cn[$n];if(Tn||Jn||Nr){var Sr=Jn||{},Lo=Sr.columnType,kt=(0,go.Z)(Sr,Fr);$t.unshift(w.createElement("col",(0,S.Z)({key:In,style:{width:Tn}},kt))),Nr=!0}}return w.createElement("colgroup",null,$t)}var Tr=mi,ti=m(42371),di=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function rn(Ye,vt){return(0,w.useMemo)(function(){for(var Ft=[],Dt=0;Dt1?"colgroup":"col":null,ellipsis:ir.ellipsis,align:ir.align,component:ir.title?Gt:Nr,prefixCls:Jn,key:kt[Pn]},dr,{additionalProps:jr,rowType:"header"}))}))}ao.displayName="HeaderRow";var as=ao;function Bt(Ye){var vt=[];function Ft(Nr,In){var Tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;vt[Tn]=vt[Tn]||[];var cn=In,Jn=Nr.filter(Boolean).map(function(Sr){var Lo={key:Sr.key,className:Sr.className||"",children:Sr.title,column:Sr,colStart:cn},kt=1,tr=Sr.children;return tr&&tr.length>0&&(kt=Ft(tr,cn,Tn+1).reduce(function(Pn,ir){return Pn+ir},0),Lo.hasSubColumns=!0),"colSpan"in Sr&&(kt=Sr.colSpan),"rowSpan"in Sr&&(Lo.rowSpan=Sr.rowSpan),Lo.colSpan=kt,Lo.colEnd=Lo.colStart+kt-1,vt[Tn].push(Lo),cn+=kt,kt});return Jn}Ft(Ye,0);for(var Dt=vt.length,$t=function(In){vt[In].forEach(function(Tn){!("rowSpan"in Tn)&&!Tn.hasSubColumns&&(Tn.rowSpan=Dt-In)})},Gt=0;Gt1&&arguments[1]!==void 0?arguments[1]:"";return typeof vt=="number"?vt:vt.endsWith("%")?Ye*parseFloat(vt)/100:null}function Ti(Ye,vt,Ft){return w.useMemo(function(){if(vt&&vt>0){var Dt=0,$t=0;Ye.forEach(function(Lo){var kt=vi(vt,Lo.width);kt?Dt+=kt:$t+=1});var Gt=Math.max(vt-Dt,$t),Nr=$t,In=Gt/$t,Tn=0,cn=Ye.map(function(Lo){var kt=(0,Ae.Z)({},Lo),tr=vi(vt,kt.width);if(tr)kt.width=tr;else{var Pn=Math.floor(In);kt.width=Nr===1?Gt:Pn,Gt-=Pn,Nr-=1}return Tn+=kt.width,kt}),Jn=Math.max(vt,Ft);if(Tn1&&arguments[1]!==void 0?arguments[1]:"key";return Ye.filter(function(Ft){return Ft&&(0,xe.Z)(Ft)==="object"}).reduce(function(Ft,Dt,$t){var Gt=Dt.fixed,Nr=Gt===!0?"left":Gt,In="".concat(vt,"-").concat($t),Tn=Dt.children;return Tn&&Tn.length>0?[].concat((0,ti.Z)(Ft),(0,ti.Z)(Zi(Tn,In).map(function(cn){return(0,Ae.Z)({fixed:Nr},cn)}))):[].concat((0,ti.Z)(Ft),[(0,Ae.Z)((0,Ae.Z)({key:In},Dt),{},{fixed:Nr})])},[])}function Ir(Ye){for(var vt=!0,Ft=0;Ft=0;Gt-=1){var Nr=Ye[Gt];if($t&&Nr.fixed!=="right")$t=!1;else if(!$t&&Nr.fixed==="right"){warning(!1,"Index ".concat(Gt+1," of `columns` missing `fixed='right'` prop."));break}}}function tn(Ye){return Ye.map(function(vt){var Ft=vt.fixed,Dt=(0,go.Z)(vt,Qr),$t=Ft;return Ft==="left"?$t="right":Ft==="right"&&($t="left"),(0,Ae.Z)({fixed:$t},Dt)})}function Gn(Ye,vt){var Ft=Ye.prefixCls,Dt=Ye.columns,$t=Ye.children,Gt=Ye.expandable,Nr=Ye.expandedKeys,In=Ye.columnTitle,Tn=Ye.getRowKey,cn=Ye.onTriggerExpand,Jn=Ye.expandIcon,Sr=Ye.rowExpandable,Lo=Ye.expandIconColumnIndex,kt=Ye.direction,tr=Ye.expandRowByClick,Pn=Ye.columnWidth,ir=Ye.fixed,dr=Ye.scrollWidth,jr=Ye.clientWidth,Ri=w.useMemo(function(){return Dt||oi($t)},[Dt,$t]),Te=w.useMemo(function(){if(Gt){var ko,or=Ri.slice();if(!or.includes(y)){var Ai=Lo||0;Ai>=0&&or.splice(Ai,0,y)}var Gi=or.indexOf(y);or=or.filter(function(Yo,sr){return Yo!==y||sr===Gi});var ds=Ri[Gi],Ps;(ir==="left"||ir)&&!Lo?Ps="left":(ir==="right"||ir)&&Lo===Ri.length?Ps="right":Ps=ds?ds.fixed:null;var ha=(ko={},(0,ge.Z)(ko,$n,{className:"".concat(Ft,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ge.Z)(ko,"title",In),(0,ge.Z)(ko,"fixed",Ps),(0,ge.Z)(ko,"className","".concat(Ft,"-row-expand-icon-cell")),(0,ge.Z)(ko,"width",Pn),(0,ge.Z)(ko,"render",function(sr,io,ws){var ul=Tn(io,ws),Dl=Nr.has(ul),Ba=Sr?Sr(io):!0,Ss=Jn({prefixCls:Ft,expanded:Dl,expandable:Ba,record:io,onExpand:cn});return tr?w.createElement("span",{onClick:function(rl){return rl.stopPropagation()}},Ss):Ss}),ko);return or.map(function(Yo){return Yo===y?ha:Yo})}return Ri.filter(function(Yo){return Yo!==y})},[Gt,Ri,Tn,Nr,Jn,kt]),qo=w.useMemo(function(){var ko=Te;return vt&&(ko=vt(ko)),ko.length||(ko=[{render:function(){return null}}]),ko},[vt,Te,kt]),Zs=w.useMemo(function(){return kt==="rtl"?tn(Zi(qo)):Zi(qo)},[qo,kt,dr]),Sa=Ti(Zs,dr,jr),da=(0,b.Z)(Sa,2),Rs=da[0],ma=da[1];return[qo,Rs,ma]}var Ei=Gn;function Ln(Ye){var vt,Ft=Ye.prefixCls,Dt=Ye.record,$t=Ye.onExpand,Gt=Ye.expanded,Nr=Ye.expandable,In="".concat(Ft,"-row-expand-icon");if(!Nr)return w.createElement("span",{className:Se()(In,"".concat(Ft,"-row-spaced"))});var Tn=function(Jn){$t(Dt,Jn),Jn.stopPropagation()};return w.createElement("span",{className:Se()(In,(vt={},(0,ge.Z)(vt,"".concat(Ft,"-row-expanded"),Gt),(0,ge.Z)(vt,"".concat(Ft,"-row-collapsed"),!Gt),vt)),onClick:Tn})}function Ii(Ye,vt,Ft){var Dt=[];function $t(Gt){(Gt||[]).forEach(function(Nr,In){Dt.push(vt(Nr,In)),$t(Nr[Ft])})}return $t(Ye),Dt}function nr(Ye,vt,Ft){var Dt=Kn(Ye),$t=Dt.expandIcon,Gt=Dt.expandedRowKeys,Nr=Dt.defaultExpandedRowKeys,In=Dt.defaultExpandAllRows,Tn=Dt.expandedRowRender,cn=Dt.onExpand,Jn=Dt.onExpandedRowsChange,Sr=Dt.childrenColumnName,Lo=$t||Ln,kt=Sr||"children",tr=w.useMemo(function(){return Tn?"row":Ye.expandable&&Ye.internalHooks===I&&Ye.expandable.__PARENT_RENDER_ICON__||vt.some(function(qo){return qo&&(0,xe.Z)(qo)==="object"&&qo[kt]})?"nest":!1},[!!Tn,vt]),Pn=w.useState(function(){return Nr||(In?Ii(vt,Ft,kt):[])}),ir=(0,b.Z)(Pn,2),dr=ir[0],jr=ir[1],Ri=w.useMemo(function(){return new Set(Gt||dr||[])},[Gt,dr]),Te=w.useCallback(function(qo){var Zs=Ft(qo,vt.indexOf(qo)),Sa,da=Ri.has(Zs);da?(Ri.delete(Zs),Sa=(0,ti.Z)(Ri)):Sa=[].concat((0,ti.Z)(Ri),[Zs]),jr(Sa),cn&&cn(!da,qo),Jn&&Jn(Sa)},[Ft,Ri,vt,cn,Jn]);return[Dt,tr,Ri,Lo,kt,Te]}function wi(Ye,vt,Ft,Dt){var $t=Ye.map(function(Gt,Nr){return fs(Nr,Nr,Ye,vt,Ft,Dt==null?void 0:Dt[Nr])});return(0,Pt.Z)(function(){return $t},[$t],function(Gt,Nr){return!(0,N.Z)(Gt,Nr)})}function Mi(Ye){var vt=(0,w.useRef)(Ye),Ft=(0,w.useState)({}),Dt=(0,b.Z)(Ft,2),$t=Dt[1],Gt=(0,w.useRef)(null),Nr=(0,w.useRef)([]);function In(Tn){Nr.current.push(Tn);var cn=Promise.resolve();Gt.current=cn,cn.then(function(){if(Gt.current===cn){var Jn=Nr.current,Sr=vt.current;Nr.current=[],Jn.forEach(function(Lo){vt.current=Lo(vt.current)}),Gt.current=null,Sr!==vt.current&&$t({})}})}return(0,w.useEffect)(function(){return function(){Gt.current=null}},[]),[vt.current,In]}function Rr(Ye){var vt=(0,w.useRef)(Ye||null),Ft=(0,w.useRef)();function Dt(){window.clearTimeout(Ft.current)}function $t(Nr){vt.current=Nr,Dt(),Ft.current=window.setTimeout(function(){vt.current=null,Ft.current=void 0},100)}function Gt(){return vt.current}return(0,w.useEffect)(function(){return Dt},[]),[$t,Gt]}function Xn(){var Ye=w.useState(-1),vt=(0,b.Z)(Ye,2),Ft=vt[0],Dt=vt[1],$t=w.useState(-1),Gt=(0,b.Z)($t,2),Nr=Gt[0],In=Gt[1],Tn=w.useCallback(function(cn,Jn){Dt(cn),In(Jn)},[]);return[Ft,Nr,Tn]}var ms=m(53261),ya=(0,ms.Z)()?window:null;function fa(Ye,vt){var Ft=(0,xe.Z)(Ye)==="object"?Ye:{},Dt=Ft.offsetHeader,$t=Dt===void 0?0:Dt,Gt=Ft.offsetSummary,Nr=Gt===void 0?0:Gt,In=Ft.offsetScroll,Tn=In===void 0?0:In,cn=Ft.getContainer,Jn=cn===void 0?function(){return ya}:cn,Sr=Jn()||ya;return w.useMemo(function(){var Lo=!!Ye;return{isSticky:Lo,stickyClassName:Lo?"".concat(vt,"-sticky-holder"):"",offsetHeader:$t,offsetSummary:Nr,offsetScroll:Tn,container:Sr}},[Tn,$t,Nr,vt,Sr])}function Ws(Ye,vt,Ft){var Dt=(0,w.useMemo)(function(){for(var $t=[],Gt=[],Nr=0,In=0,Tn=0;Tn=Sr&&(ha=Sr-Lo),Nr({scrollLeft:ha/Sr*(Jn+2)}),jr.current.x=Ai.pageX},ma=function(){if(Gt.current){var Ai=En(Gt.current).top,Gi=Ai+Gt.current.offsetHeight,ds=Tn===window?document.documentElement.scrollTop+window.innerHeight:En(Tn).top+Tn.clientHeight;Gi-(0,Ht.Z)()<=ds||Ai>=ds-In?dr(function(Ps){return(0,Ae.Z)((0,Ae.Z)({},Ps),{},{isHiddenScrollBar:!0})}):dr(function(Ps){return(0,Ae.Z)((0,Ae.Z)({},Ps),{},{isHiddenScrollBar:!1})})}},ko=function(Ai){dr(function(Gi){return(0,Ae.Z)((0,Ae.Z)({},Gi),{},{scrollLeft:Ai/Jn*Sr||0})})};return w.useImperativeHandle(Ft,function(){return{setScrollLeft:ko}}),w.useEffect(function(){var or=$r(document.body,"mouseup",Sa,!1),Ai=$r(document.body,"mousemove",Rs,!1);return ma(),function(){or.remove(),Ai.remove()}},[Lo,qo]),w.useEffect(function(){var or=$r(Tn,"scroll",ma,!1),Ai=$r(window,"resize",ma,!1);return function(){or.remove(),Ai.remove()}},[Tn]),w.useEffect(function(){ir.isHiddenScrollBar||dr(function(or){var Ai=Gt.current;return Ai?(0,Ae.Z)((0,Ae.Z)({},or),{},{scrollLeft:Ai.scrollLeft/Ai.scrollWidth*Ai.clientWidth}):or})},[ir.isHiddenScrollBar]),Jn<=Sr||!Lo||ir.isHiddenScrollBar?null:w.createElement("div",{style:{height:(0,Ht.Z)(),width:Sr,bottom:In},className:"".concat(cn,"-sticky-scroll")},w.createElement("div",{onMouseDown:da,ref:kt,className:Se()("".concat(cn,"-sticky-scroll-bar"),(0,ge.Z)({},"".concat(cn,"-sticky-scroll-bar-active"),qo)),style:{width:"".concat(Lo,"px"),transform:"translate3d(".concat(ir.scrollLeft,"px, 0, 0)")}}))},at=w.forwardRef(tt);function gt(Ye){return null}var Re=gt;function lt(Ye){return null}var St=lt,ln="rc-table",Vn=[],wr={};function ki(){return"No Data"}function Vi(Ye){var vt,Ft=(0,Ae.Z)({rowKey:"key",prefixCls:ln,emptyText:ki},Ye),Dt=Ft.prefixCls,$t=Ft.className,Gt=Ft.rowClassName,Nr=Ft.style,In=Ft.data,Tn=Ft.rowKey,cn=Ft.scroll,Jn=Ft.tableLayout,Sr=Ft.direction,Lo=Ft.title,kt=Ft.footer,tr=Ft.summary,Pn=Ft.caption,ir=Ft.id,dr=Ft.showHeader,jr=Ft.components,Ri=Ft.emptyText,Te=Ft.onRow,qo=Ft.onHeaderRow,Zs=Ft.internalHooks,Sa=Ft.transformColumns,da=Ft.internalRefs,Rs=Ft.tailor,ma=Ft.getContainerWidth,ko=Ft.sticky,or=In||Vn,Ai=!!or.length,Gi=Zs===I,ds=w.useCallback(function(xc,hh){return(0,dt.Z)(jr,xc)||hh},[jr]),Ps=w.useMemo(function(){return typeof Tn=="function"?Tn:function(xc){var hh=xc&&xc[Tn];return hh}},[Tn]),ha=ds(["body"]),Yo=Xn(),sr=(0,b.Z)(Yo,3),io=sr[0],ws=sr[1],ul=sr[2],Dl=nr(Ft,or,Ps),Ba=(0,b.Z)(Dl,6),Ss=Ba[0],wl=Ba[1],rl=Ba[2],mc=Ba[3],pl=Ba[4],oc=Ba[5],Ca=cn==null?void 0:cn.x,qu=w.useState(0),$l=(0,b.Z)(qu,2),su=$l[0],tu=$l[1],Js=Ei((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},Ft),Ss),{},{expandable:!!Ss.expandedRowRender,columnTitle:Ss.columnTitle,expandedKeys:rl,getRowKey:Ps,onTriggerExpand:oc,expandIcon:mc,expandIconColumnIndex:Ss.expandIconColumnIndex,direction:Sr,scrollWidth:Gi&&Rs&&typeof Ca=="number"?Ca:null,clientWidth:su}),Gi?Sa:null),Gc=(0,b.Z)(Js,3),Le=Gc[0],Me=Gc[1],et=Gc[2],hn=et!=null?et:Ca,Or=w.useMemo(function(){return{columns:Le,flattenColumns:Me}},[Le,Me]),wn=w.useRef(),li=w.useRef(),Fi=w.useRef(),_s=w.useRef(),Ea=w.useRef(),Aa=w.useState(!1),bl=(0,b.Z)(Aa,2),Ql=bl[0],Ju=bl[1],As=w.useState(!1),Xa=(0,b.Z)(As,2),vr=Xa[0],qa=Xa[1],Ta=Mi(new Map),Du=(0,b.Z)(Ta,2),Wc=Du[0],os=Du[1],Mo=yn(Me),ks=Mo.map(function(xc){return Wc.get(xc)}),Da=w.useMemo(function(){return ks},[ks.join("_")]),Na=Ua(Da,Me.length,Sr),js=cn&&Bn(cn.y),bs=cn&&Bn(hn)||!!Ss.fixed,Qi=bs&&Me.some(function(xc){var hh=xc.fixed;return hh}),ar=w.useRef(),zr=fa(ko,Dt),Ci=zr.isSticky,gs=zr.offsetHeader,Es=zr.offsetSummary,Pl=zr.offsetScroll,ta=zr.stickyClassName,vl=zr.container,mu=w.useMemo(function(){return tr==null?void 0:tr(or)},[tr,or]),hc=(js||Ci)&&w.isValidElement(mu)&&mu.type===Ve&&mu.props.fixed,cd,Wo,Wd;js&&(Wo={overflowY:"scroll",maxHeight:cn.y}),bs&&(cd={overflowX:"auto"},js||(Wo={overflowY:"hidden"}),Wd={width:hn===!0?"auto":hn,minWidth:"100%"});var fd=w.useCallback(function(xc,hh){(0,Tt.Z)(wn.current)&&os(function(Gd){if(Gd.get(xc)!==hh){var _=new Map(Gd);return _.set(xc,hh),_}return Gd})},[]),lp=Rr(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,_=Sr==="rtl",R=typeof Gd=="number"?Gd:hh.scrollLeft,G=hh||wr;if(!Pm()||Pm()===G){var le;Xg(G),Rm(R,li.current),Rm(R,Fi.current),Rm(R,Ea.current),Rm(R,(le=ar.current)===null||le===void 0?void 0:le.setScrollLeft)}var ke=hh||li.current;if(ke){var Qe=ke.scrollWidth,wt=ke.clientWidth;if(Qe===wt){Ju(!1),qa(!1);return}_?(Ju(-R0)):(Ju(R>0),qa(R1?Pn-Ai:0,ds=(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},Sa),Tn),{},{flex:"0 0 ".concat(Ai,"px"),width:"".concat(Ai,"px"),marginRight:Gi,pointerEvents:"auto"}),Ps=w.useMemo(function(){return Jn?ko<=1:Rs===0||ko===0||ko>1},[ko,Rs,Jn]);Ps?ds.visibility="hidden":Jn&&(ds.height=Sr==null?void 0:Sr(ko));var ha=Ps?function(){return null}:Lo,Yo={};return(ko===0||Rs===0)&&(Yo.rowSpan=1,Yo.colSpan=1),w.createElement(Bo,(0,S.Z)({className:Se()(tr,cn),ellipsis:Ft.ellipsis,align:Ft.align,scope:Ft.rowScope,component:"div",prefixCls:vt.prefixCls,key:Ri,record:In,index:Gt,renderIndex:Nr,dataIndex:kt,render:ha,shouldCellUpdate:Ft.shouldCellUpdate},Te,{appendNode:qo,additionalProps:(0,Ae.Z)((0,Ae.Z)({},Zs),{},{style:ds},Yo)}))}var va=oa,Bl=["data","index","className","rowKey","style","extra","getHeight"],Fa=w.forwardRef(function(Ye,vt){var Ft=Ye.data,Dt=Ye.index,$t=Ye.className,Gt=Ye.rowKey,Nr=Ye.style,In=Ye.extra,Tn=Ye.getHeight,cn=(0,go.Z)(Ye,Bl),Jn=Ft.record,Sr=Ft.indent,Lo=Ft.index,kt=f(be,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),tr=kt.scrollX,Pn=kt.flattenColumns,ir=kt.prefixCls,dr=kt.fixColumn,jr=kt.componentWidth,Ri=Kr(Jn,Gt,Dt,Sr),Te=Ri.rowSupportExpand,qo=Ri.expanded,Zs=Ri.rowProps,Sa=Ri.expandedRowRender,da=Ri.expandedRowClassName,Rs;if(Te&&qo){var ma=Sa(Jn,Dt,Sr+1,qo),ko=da==null?void 0:da(Jn,Dt,Sr),or={};dr&&(or={style:(0,ge.Z)({},"--virtual-width","".concat(jr,"px"))});var Ai="".concat(ir,"-expanded-row-cell");Rs=w.createElement("div",{className:Se()("".concat(ir,"-expanded-row"),"".concat(ir,"-expanded-row-level-").concat(Sr+1),ko)},w.createElement(Bo,{component:"div",prefixCls:ir,className:Se()(Ai,(0,ge.Z)({},"".concat(Ai,"-fixed"),dr)),additionalProps:or},ma))}var Gi=(0,Ae.Z)((0,Ae.Z)({},Nr),{},{width:tr});In&&(Gi.position="absolute",Gi.pointerEvents="none");var ds=w.createElement("div",(0,S.Z)({},Zs,cn,{ref:Te?null:vt,className:Se()($t,"".concat(ir,"-row"),Zs==null?void 0:Zs.className,(0,ge.Z)({},"".concat(ir,"-row-extra"),In)),style:(0,Ae.Z)((0,Ae.Z)({},Gi),Zs==null?void 0:Zs.style)}),Pn.map(function(Ps,ha){return w.createElement(va,{key:ha,rowInfo:Ri,column:Ps,colIndex:ha,indent:Sr,index:Dt,renderIndex:Lo,record:Jn,inverse:In,getHeight:Tn})}));return Te?w.createElement("div",{ref:vt},ds,Rs):ds}),gl=Be(Fa),ua=gl,Nl=w.forwardRef(function(Ye,vt){var Ft=Ye.data,Dt=Ye.onScroll,$t=f(be,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Gt=$t.flattenColumns,Nr=$t.onColumnResize,In=$t.getRowKey,Tn=$t.expandedKeys,cn=$t.prefixCls,Jn=$t.childrenColumnName,Sr=$t.emptyNode,Lo=$t.scrollX,kt=f(_a),tr=kt.sticky,Pn=kt.scrollY,ir=kt.listItemHeight,dr=w.useRef(),jr=fr(Ft,Jn,Tn,In),Ri=w.useMemo(function(){var ko=0;return Gt.map(function(or){var Ai=or.width,Gi=or.key;return ko+=Ai,[Gi,Ai,ko]})},[Gt]),Te=w.useMemo(function(){return Ri.map(function(ko){return ko[2]})},[Ri]);w.useEffect(function(){Ri.forEach(function(ko){var or=(0,b.Z)(ko,2),Ai=or[0],Gi=or[1];Nr(Ai,Gi)})},[Ri]),w.useImperativeHandle(vt,function(){var ko={};return Object.defineProperty(ko,"scrollLeft",{get:function(){var Ai;return((Ai=dr.current)===null||Ai===void 0?void 0:Ai.getScrollInfo().x)||0},set:function(Ai){var Gi;(Gi=dr.current)===null||Gi===void 0||Gi.scrollTo({left:Ai})}}),ko});var qo=function(or,Ai){var Gi,ds=(Gi=jr[Ai])===null||Gi===void 0?void 0:Gi.record,Ps=or.onCell;if(Ps){var ha,Yo=Ps(ds,Ai);return(ha=Yo==null?void 0:Yo.rowSpan)!==null&&ha!==void 0?ha:1}return 1},Zs=function(or){var Ai=or.start,Gi=or.end,ds=or.getSize,Ps=or.offsetY;if(Gi<0)return null;for(var ha=Gt.filter(function(qu){return qo(qu,Ai)===0}),Yo=Ai,sr=function($l){if(ha=ha.filter(function(su){return qo(su,$l)===0}),!ha.length)return Yo=$l,"break"},io=Ai;io>=0;io-=1){var ws=sr(io);if(ws==="break")break}for(var ul=Gt.filter(function(qu){return qo(qu,Gi)!==1}),Dl=Gi,Ba=function($l){if(ul=ul.filter(function(su){return qo(su,$l)!==1}),!ul.length)return Dl=Math.max($l-1,Gi),"break"},Ss=Gi;Ss1})&&rl.push($l)},pl=Yo;pl<=Dl;pl+=1)var oc=mc(pl);var Ca=rl.map(function(qu){var $l=jr[qu],su=In($l.record,qu),tu=function(Le){var Me=qu+Le-1,et=In(jr[Me].record,Me),hn=ds(su,et);return hn.bottom-hn.top},Js=ds(su);return w.createElement(ua,{key:qu,data:$l,rowKey:su,index:qu,style:{top:-Ps+Js.top},extra:!0,getHeight:tu})});return Ca},Sa=w.useMemo(function(){return{columnsOffset:Te}},[Te]),da="".concat(cn,"-tbody"),Rs;if(jr.length){var ma={};tr&&(ma.position="sticky",ma.bottom=0,(0,xe.Z)(tr)==="object"&&tr.offsetScroll&&(ma.bottom=tr.offsetScroll)),Rs=w.createElement(Bs.Z,{fullHeight:!1,ref:dr,styles:{horizontalScrollBar:ma},className:Se()(da,"".concat(da,"-virtual")),height:Pn,itemHeight:ir||24,data:jr,itemKey:function(or){return In(or.record)},scrollWidth:Lo,onVirtualScroll:function(or){var Ai=or.x;Dt({scrollLeft:Ai})},extraRender:Zs},function(ko,or,Ai){var Gi=In(ko.record,or);return w.createElement(ua,(0,S.Z)({data:ko,rowKey:Gi,index:or},Ai))})}else Rs=w.createElement("div",{className:Se()("".concat(cn,"-placeholder"))},w.createElement(Bo,{component:"div",prefixCls:cn},Sr));return w.createElement(oo.Provider,{value:Sa},Rs)}),vs=Be(Nl),Hi=vs,eo=function(vt,Ft){var Dt=Ft.ref,$t=Ft.onScroll;return w.createElement(Hi,{ref:Dt,data:vt,onScroll:$t})};function sa(Ye){var vt=Ye.columns,Ft=Ye.scroll,Dt=Ye.sticky,$t=Ye.prefixCls,Gt=$t===void 0?ln:$t,Nr=Ye.className,In=Ye.listItemHeight,Tn=Ft||{},cn=Tn.x,Jn=Tn.y;typeof cn!="number"&&(cn=1),typeof Jn!="number"&&(Jn=500);var Sr=w.useMemo(function(){return{sticky:Dt,scrollY:Jn,listItemHeight:In}},[Dt,Jn,In]);return w.createElement(_a.Provider,{value:Sr},w.createElement(Ns,(0,S.Z)({},Ye,{className:Se()(Nr,"".concat(Gt,"-virtual")),scroll:(0,Ae.Z)((0,Ae.Z)({},Ft),{},{x:cn}),components:{body:eo},columns:vt,internalHooks:I,tailor:!0})))}function Cs(Ye){return fe(sa,Ye)}var Ka=Cs(),$u=null;function rc(Ye){return null}var Pc=rc;function vo(Ye){return null}var to=vo,hs=m(39029),jn=m(28637);function yr(Ye,vt,Ft,Dt){const $t=Ft-vt;return Ye/=Dt/2,Ye<1?$t/2*Ye*Ye*Ye+vt:$t/2*((Ye-=2)*Ye*Ye+2)+vt}function ai(Ye){return Ye!=null&&Ye===Ye.window}function hi(Ye,vt){var Ft,Dt;if(typeof window=="undefined")return 0;const $t=vt?"scrollTop":"scrollLeft";let Gt=0;return ai(Ye)?Gt=Ye[vt?"pageYOffset":"pageXOffset"]:Ye instanceof Document?Gt=Ye.documentElement[$t]:(Ye instanceof HTMLElement||Ye)&&(Gt=Ye[$t]),Ye&&!ai(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 Ji(Ye){let vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ft=()=>window,callback:Dt,duration:$t=450}=vt,Gt=Ft(),Nr=hi(Gt,!0),In=Date.now(),Tn=()=>{const Jn=Date.now()-In,Sr=yr(Jn>$t?$t:Jn,Nr,Ye,$t);ai(Gt)?Gt.scrollTo(window.pageXOffset,Sr):Gt instanceof Document||Gt.constructor.name==="HTMLDocument"?Gt.documentElement.scrollTop=Sr:Gt.scrollTop=Sr,Jn<$t?(0,jn.Z)(Tn):typeof Dt=="function"&&Dt()};(0,jn.Z)(Tn)}var so=m(40869),Pi=m(67392),us=m(47316),ga=m(21843),$a=m(65018),dl=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,Za=m(91851),Pu=function(vt,Ft){return w.createElement(Za.Z,(0,S.Z)({},vt,{ref:Ft,icon:Ml}))},ea=w.forwardRef(Pu),Qa={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"},el=Qa,Ul=function(vt,Ft){return w.createElement(Za.Z,(0,S.Z)({},vt,{ref:Ft,icon:el}))},ql=w.forwardRef(Ul),vu=m(52063),au=m(22311),Cn=m(74809),Eu=m(57338),ls=m(29161),Ks=m(12826),xa={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Il=xa,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,ls.Z)(Ft,Ye);var vt=(0,Ks.Z)(Ft);function Ft(){var Dt;(0,Cn.Z)(this,Ft);for(var $t=arguments.length,Gt=new Array($t),Nr=0;Nr<$t;Nr++)Gt[Nr]=arguments[Nr];return Dt=vt.call.apply(vt,[this].concat(Gt)),Dt.state={goInputText:""},Dt.getValidValue=function(){var In=Dt.state.goInputText;return!In||Number.isNaN(In)?void 0:Number(In)},Dt.buildOptionText=function(In){return"".concat(In," ").concat(Dt.props.locale.items_per_page)},Dt.changeSize=function(In){Dt.props.changeSize(Number(In))},Dt.handleChange=function(In){Dt.setState({goInputText:In.target.value})},Dt.handleBlur=function(In){var Tn=Dt.props,cn=Tn.goButton,Jn=Tn.quickGo,Sr=Tn.rootPrefixCls,Lo=Dt.state.goInputText;cn||Lo===""||(Dt.setState({goInputText:""}),!(In.relatedTarget&&(In.relatedTarget.className.indexOf("".concat(Sr,"-item-link"))>=0||In.relatedTarget.className.indexOf("".concat(Sr,"-item"))>=0))&&Jn(Dt.getValidValue()))},Dt.go=function(In){var Tn=Dt.state.goInputText;Tn!==""&&(In.keyCode===Il.ENTER||In.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,Nr=$t.pageSizeOptions;return Nr.some(function(In){return In.toString()===Gt.toString()})?Nr:Nr.concat([Gt.toString()]).sort(function(In,Tn){var cn=Number.isNaN(Number(In))?0:Number(In),Jn=Number.isNaN(Number(Tn))?0:Number(Tn);return cn-Jn})}},{key:"render",value:function(){var $t=this,Gt=this.props,Nr=Gt.pageSize,In=Gt.locale,Tn=Gt.rootPrefixCls,cn=Gt.changeSize,Jn=Gt.quickGo,Sr=Gt.goButton,Lo=Gt.selectComponentClass,kt=Gt.buildOptionText,tr=Gt.selectPrefixCls,Pn=Gt.disabled,ir=this.state.goInputText,dr="".concat(Tn,"-options"),jr=Lo,Ri=null,Te=null,qo=null;if(!cn&&!Jn)return null;var Zs=this.getPageSizeOptions();if(cn&&jr){var Sa=Zs.map(function(da,Rs){return w.createElement(jr.Option,{key:Rs,value:da.toString()},(kt||$t.buildOptionText)(da))});Ri=w.createElement(jr,{disabled:Pn,prefixCls:tr,showSearch:!1,className:"".concat(dr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Nr||Zs[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Rs){return Rs.parentNode},"aria-label":In.page_size,defaultOpen:!1},Sa)}return Jn&&(Sr&&(qo=typeof Sr=="boolean"?w.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Pn,className:"".concat(dr,"-quick-jumper-button")},In.jump_to_confirm):w.createElement("span",{onClick:this.go,onKeyUp:this.go},Sr)),Te=w.createElement("div",{className:"".concat(dr,"-quick-jumper")},In.jump_to,w.createElement("input",{disabled:Pn,type:"text",value:ir,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":In.page}),In.page,qo)),w.createElement("li",{className:"".concat(dr)},Ri,Te)}}]),Ft}(w.Component);ml.defaultProps={pageSizeOptions:["10","20","50","100"]};var fu=ml,Nu=function(vt){var Ft,Dt=vt.rootPrefixCls,$t=vt.page,Gt=vt.active,Nr=vt.className,In=vt.showTitle,Tn=vt.onClick,cn=vt.onKeyPress,Jn=vt.itemRender,Sr="".concat(Dt,"-item"),Lo=Se()(Sr,"".concat(Sr,"-").concat($t),(Ft={},(0,ge.Z)(Ft,"".concat(Sr,"-active"),Gt),(0,ge.Z)(Ft,"".concat(Sr,"-disabled"),!$t),(0,ge.Z)(Ft,vt.className,Nr),Ft)),kt=function(){Tn($t)},tr=function(dr){cn(dr,Tn,$t)},Pn=Jn($t,"page",w.createElement("a",{rel:"nofollow"},$t));return Pn?w.createElement("li",{title:In?$t.toString():null,className:Lo,onClick:kt,onKeyPress:tr,tabIndex:0},Pn):null},lc=Nu;function Ic(){}function Vc(Ye){var vt=Number(Ye);return typeof vt=="number"&&!Number.isNaN(vt)&&isFinite(vt)&&Math.floor(vt)===vt}var zd=function(vt,Ft,Dt){return Dt};function eh(Ye,vt,Ft){var Dt=typeof Ye=="undefined"?vt.pageSize:Ye;return Math.floor((Ft.total-1)/Dt)+1}var Kd=function(Ye){(0,ls.Z)(Ft,Ye);var vt=(0,Ks.Z)(Ft);function Ft(Dt){var $t;(0,Cn.Z)(this,Ft),$t=vt.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 Sr=$t.props.prefixCls,Lo=cn||w.createElement("button",{type:"button","aria-label":Jn,className:"".concat(Sr,"-item-link")});return typeof cn=="function"&&(Lo=w.createElement(cn,(0,Ae.Z)({},$t.props))),Lo},$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,Sr=cn.total,Lo=$t.state.pageSize;return Sr<=Lo?!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),Sr=$t.state.currentInputValue;Jn!==Sr&&$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,Sr=eh(cn,$t.state,$t.props);Jn=Jn>Sr?Sr:Jn,Sr===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,Sr=Jn.disabled,Lo=Jn.onChange,kt=$t.state,tr=kt.pageSize,Pn=kt.current,ir=kt.currentInputValue;if($t.isValid(cn)&&!Sr){var dr=eh(void 0,$t.state,$t.props),jr=cn;return cn>dr?jr=dr:cn<1&&(jr=1),"current"in $t.props||$t.setState({current:jr}),jr!==ir&&$t.setState({currentInputValue:jr}),Lo(jr,tr),jr}return Pn},$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?Sr-2:0),kt=2;kt=Nr?Tn=Nr:Tn=Number(Gt),Tn}},{key:"getShowSizeChanger",value:function(){var $t=this.props,Gt=$t.showSizeChanger,Nr=$t.total,In=$t.totalBoundaryShowSizeChanger;return typeof Gt!="undefined"?Gt:Nr>In}},{key:"render",value:function(){var $t=this.props,Gt=$t.prefixCls,Nr=$t.className,In=$t.style,Tn=$t.disabled,cn=$t.hideOnSinglePage,Jn=$t.total,Sr=$t.locale,Lo=$t.showQuickJumper,kt=$t.showLessItems,tr=$t.showTitle,Pn=$t.showTotal,ir=$t.simple,dr=$t.itemRender,jr=$t.showPrevNextJumpers,Ri=$t.jumpPrevIcon,Te=$t.jumpNextIcon,qo=$t.selectComponentClass,Zs=$t.selectPrefixCls,Sa=$t.pageSizeOptions,da=this.state,Rs=da.current,ma=da.pageSize,ko=da.currentInputValue;if(cn===!0&&Jn<=ma)return null;var or=eh(void 0,this.state,this.props),Ai=[],Gi=null,ds=null,Ps=null,ha=null,Yo=null,sr=Lo&&Lo.goButton,io=kt?1:2,ws=Rs-1>0?Rs-1:0,ul=Rs+1Jn?Jn:Rs*ma]));if(ir){sr&&(typeof sr=="boolean"?Yo=w.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Sr.jump_to_confirm):Yo=w.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},sr),Yo=w.createElement("li",{title:tr?"".concat(Sr.jump_to).concat(Rs,"/").concat(or):null,className:"".concat(Gt,"-simple-pager")},Yo));var Ss=this.renderPrev(ws);return w.createElement("ul",(0,S.Z)({className:Se()(Gt,"".concat(Gt,"-simple"),(0,ge.Z)({},"".concat(Gt,"-disabled"),Tn),Nr),style:In,ref:this.paginationNode},Dl),Ba,Ss?w.createElement("li",{title:tr?Sr.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Se()("".concat(Gt,"-prev"),(0,ge.Z)({},"".concat(Gt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Ss):null,w.createElement("li",{title:tr?"".concat(Rs,"/").concat(or):null,className:"".concat(Gt,"-simple-pager")},w.createElement("input",{type:"text",value:ko,disabled:Tn,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),w.createElement("span",{className:"".concat(Gt,"-slash")},"/"),or),w.createElement("li",{title:tr?Sr.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Se()("".concat(Gt,"-next"),(0,ge.Z)({},"".concat(Gt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ul)),Yo)}if(or<=3+io*2){var wl={locale:Sr,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:tr,itemRender:dr};or||Ai.push(w.createElement(lc,(0,S.Z)({},wl,{key:"noPager",page:1,className:"".concat(Gt,"-item-disabled")})));for(var rl=1;rl<=or;rl+=1){var mc=Rs===rl;Ai.push(w.createElement(lc,(0,S.Z)({},wl,{key:rl,page:rl,active:mc})))}}else{var pl=kt?Sr.prev_3:Sr.prev_5,oc=kt?Sr.next_3:Sr.next_5,Ca=dr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ri,"prev page")),qu=dr(this.getJumpNextPage(),"jump-next",this.getItemIcon(Te,"next page"));jr&&(Gi=Ca?w.createElement("li",{title:tr?pl:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Se()("".concat(Gt,"-jump-prev"),(0,ge.Z)({},"".concat(Gt,"-jump-prev-custom-icon"),!!Ri))},Ca):null,ds=qu?w.createElement("li",{title:tr?oc:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Se()("".concat(Gt,"-jump-next"),(0,ge.Z)({},"".concat(Gt,"-jump-next-custom-icon"),!!Te))},qu):null),ha=w.createElement(lc,{locale:Sr,last:!0,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:or,page:or,active:!1,showTitle:tr,itemRender:dr}),Ps=w.createElement(lc,{locale:Sr,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:tr,itemRender:dr});var $l=Math.max(1,Rs-io),su=Math.min(Rs+io,or);Rs-1<=io&&(su=1+io*2),or-Rs<=io&&($l=or-io*2);for(var tu=$l;tu<=su;tu+=1){var Js=Rs===tu;Ai.push(w.createElement(lc,{locale:Sr,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:tu,page:tu,active:Js,showTitle:tr,itemRender:dr}))}Rs-1>=io*2&&Rs!==1+2&&(Ai[0]=(0,w.cloneElement)(Ai[0],{className:"".concat(Gt,"-item-after-jump-prev")}),Ai.unshift(Gi)),or-Rs>=io*2&&Rs!==or-2&&(Ai[Ai.length-1]=(0,w.cloneElement)(Ai[Ai.length-1],{className:"".concat(Gt,"-item-before-jump-next")}),Ai.push(ds)),$l!==1&&Ai.unshift(Ps),su!==or&&Ai.push(ha)}var Gc=!this.hasPrev()||!or,Le=!this.hasNext()||!or,Me=this.renderPrev(ws),et=this.renderNext(ul);return w.createElement("ul",(0,S.Z)({className:Se()(Gt,Nr,(0,ge.Z)({},"".concat(Gt,"-disabled"),Tn)),style:In,ref:this.paginationNode},Dl),Ba,Me?w.createElement("li",{title:tr?Sr.prev_page:null,onClick:this.prev,tabIndex:Gc?null:0,onKeyPress:this.runIfEnterPrev,className:Se()("".concat(Gt,"-prev"),(0,ge.Z)({},"".concat(Gt,"-disabled"),Gc)),"aria-disabled":Gc},Me):null,Ai,et?w.createElement("li",{title:tr?Sr.next_page:null,onClick:this.next,tabIndex:Le?null:0,onKeyPress:this.runIfEnterNext,className:Se()("".concat(Gt,"-next"),(0,ge.Z)({},"".concat(Gt,"-disabled"),Le)),"aria-disabled":Le},et):null,w.createElement(fu,{disabled:Tn,locale:Sr,rootPrefixCls:Gt,selectComponentClass:qo,selectPrefixCls:Zs,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Rs,pageSize:ma,pageSizeOptions:Sa,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:sr}))}}],[{key:"getDerivedStateFromProps",value:function($t,Gt){var Nr={};if("current"in $t&&(Nr.current=$t.current,$t.current!==Gt.current&&(Nr.currentInputValue=Nr.current)),"pageSize"in $t&&$t.pageSize!==Gt.pageSize){var In=Gt.current,Tn=eh($t.pageSize,Gt,$t);In=In>Tn?Tn:In,"current"in $t||(Nr.current=In,Nr.currentInputValue=In),Nr.pageSize=$t.pageSize}return Nr}}]),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:vt}=Ye;return{[`${vt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${vt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${vt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed"}}},[`&${vt}-disabled`]:{cursor:"not-allowed",[`${vt}-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}}},[`${vt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${vt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${vt}-simple-pager`]:{color:Ye.colorTextDisabled},[`${vt}-jump-prev, ${vt}-jump-next`]:{[`${vt}-item-link-icon`]:{opacity:0},[`${vt}-item-ellipsis`]:{opacity:1}}},[`&${vt}-simple`]:{[`${vt}-prev, ${vt}-next`]:{[`&${vt}-disabled ${vt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Pf=Ye=>{const{componentCls:vt}=Ye;return{[`&${vt}-mini ${vt}-total-text, &${vt}-mini ${vt}-simple-pager`]:{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`},[`&${vt}-mini ${vt}-item`]:{minWidth:Ye.itemSizeSM,height:Ye.itemSizeSM,margin:0,lineHeight:`${Ye.itemSizeSM-2}px`},[`&${vt}-mini:not(${vt}-disabled) ${vt}-item:not(${vt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ye.colorBgTextHover},"&:active":{backgroundColor:Ye.colorBgTextActive}},[`&${vt}-mini ${vt}-prev, &${vt}-mini ${vt}-next`]:{minWidth:Ye.itemSizeSM,height:Ye.itemSizeSM,margin:0,lineHeight:`${Ye.itemSizeSM}px`},[`&${vt}-mini:not(${vt}-disabled)`]:{[`${vt}-prev, ${vt}-next`]:{[`&:hover ${vt}-item-link`]:{backgroundColor:Ye.colorBgTextHover},[`&:active ${vt}-item-link`]:{backgroundColor:Ye.colorBgTextActive},[`&${vt}-disabled:hover ${vt}-item-link`]:{backgroundColor:"transparent"}}},[` - &${vt}-mini ${vt}-prev ${vt}-item-link, - &${vt}-mini ${vt}-next ${vt}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`}},[`&${vt}-mini ${vt}-jump-prev, &${vt}-mini ${vt}-jump-next`]:{height:Ye.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ye.itemSizeSM}px`},[`&${vt}-mini ${vt}-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:vt}=Ye;return{[` - &${vt}-simple ${vt}-prev, - &${vt}-simple ${vt}-next - `]:{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`,verticalAlign:"top",[`${vt}-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`}}},[`&${vt}-simple ${vt}-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:vt}=Ye;return{[`${vt}-jump-prev, ${vt}-jump-next`]:{outline:0,[`${vt}-item-container`]:{position:"relative",[`${vt}-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"}},[`${vt}-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":{[`${vt}-item-link-icon`]:{opacity:1},[`${vt}-item-ellipsis`]:{opacity:0}}},[` - ${vt}-prev, - ${vt}-jump-prev, - ${vt}-jump-next - `]:{marginInlineEnd:Ye.marginXS},[` - ${vt}-prev, - ${vt}-next, - ${vt}-jump-prev, - ${vt}-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}`},[`${vt}-prev, ${vt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ye.colorText,cursor:"pointer",userSelect:"none"},[`${vt}-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 ${vt}-item-link`]:{backgroundColor:Ye.colorBgTextHover},[`&:active ${vt}-item-link`]:{backgroundColor:Ye.colorBgTextActive},[`&${vt}-disabled:hover`]:{[`${vt}-item-link`]:{backgroundColor:"transparent"}}},[`${vt}-slash`]:{marginInlineEnd:Ye.paginationSlashMarginInlineEnd,marginInlineStart:Ye.paginationSlashMarginInlineStart},[`${vt}-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:vt}=Ye;return{[`${vt}-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(${vt}-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:vt}=Ye;return{[vt]: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:'""'},[`${vt}-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)`]:{[`${vt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ye.screenSM}px)`]:{[`${vt}-options`]:{display:"none"}}}),[`&${Ye.componentCls}-rtl`]:{direction:"rtl"}}},uf=Ye=>{const{componentCls:vt}=Ye;return{[`${vt}${vt}-disabled:not(${vt}-mini)`]:{"&, &:hover":{[`${vt}-item-link`]:{borderColor:Ye.colorBorder}},"&:focus-visible":{[`${vt}-item-link`]:{borderColor:Ye.colorBorder}},[`${vt}-item, ${vt}-item-link`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,[`&:hover:not(${vt}-item-active)`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,a:{color:Ye.colorTextDisabled}},[`&${vt}-item-active`]:{backgroundColor:Ye.itemActiveBgDisabled}},[`${vt}-prev, ${vt}-next`]:{"&:hover button":{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,color:Ye.colorTextDisabled},[`${vt}-item-link`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder}}},[`${vt}:not(${vt}-mini)`]:{[`${vt}-prev, ${vt}-next`]:{"&:hover button":{borderColor:Ye.colorPrimaryHover,backgroundColor:Ye.itemBg},[`${vt}-item-link`]:{backgroundColor:Ye.itemLinkBg,borderColor:Ye.colorBorder},[`&:hover ${vt}-item-link`]:{borderColor:Ye.colorPrimary,backgroundColor:Ye.itemBg,color:Ye.colorPrimary},[`&${vt}-disabled`]:{[`${vt}-item-link`]:{borderColor:Ye.colorBorder,color:Ye.colorTextDisabled}}},[`${vt}-item`]:{backgroundColor:Ye.itemBg,border:`${Ye.lineWidth}px ${Ye.lineType} ${Ye.colorBorder}`,[`&:hover:not(${vt}-item-active)`]:{borderColor:Ye.colorPrimary,backgroundColor:Ye.itemBg,a:{color:Ye.colorPrimary}},"&-active":{borderColor:Ye.colorPrimary}}}}},Lh=Ye=>{const{componentCls:vt}=Ye;return{[`${vt}:not(${vt}-disabled)`]:{[`${vt}-item`]:Object.assign({},(0,jd.Qy)(Ye)),[`${vt}-jump-prev, ${vt}-jump-next`]:{"&:focus-visible":Object.assign({[`${vt}-item-link-icon`]:{opacity:1},[`${vt}-item-ellipsis`]:{opacity:0}},(0,jd.oN)(Ye))},[`${vt}-prev, ${vt}-next`]:{[`&:focus-visible ${vt}-item-link`]:Object.assign({},(0,jd.oN)(Ye))}}}};var Sf=(0,vh.Z)("Pagination",Ye=>{const vt=(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(vt),Lh(vt),Ye.wireframe&&uf(vt)]},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,vt){var Ft={};for(var Dt in Ye)Object.prototype.hasOwnProperty.call(Ye,Dt)&&vt.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:vt,selectPrefixCls:Ft,className:Dt,rootClassName:$t,style:Gt,size:Nr,locale:In,selectComponentClass:Tn,responsive:cn,showSizeChanger:Jn}=Ye,Sr=Cp(Ye,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Lo}=(0,$a.Z)(cn),{getPrefixCls:kt,direction:tr,pagination:Pn={}}=w.useContext(Pi.E_),ir=kt("pagination",vt),[dr,jr]=Sf(ir),Ri=Jn!=null?Jn:Pn.showSizeChanger,Te=w.useMemo(()=>{const or=w.createElement("span",{className:`${ir}-item-ellipsis`},"\u2022\u2022\u2022"),Ai=w.createElement("button",{className:`${ir}-item-link`,type:"button",tabIndex:-1},tr==="rtl"?w.createElement(au.Z,null):w.createElement(vu.Z,null)),Gi=w.createElement("button",{className:`${ir}-item-link`,type:"button",tabIndex:-1},tr==="rtl"?w.createElement(vu.Z,null):w.createElement(au.Z,null)),ds=w.createElement("a",{className:`${ir}-item-link`},w.createElement("div",{className:`${ir}-item-container`},tr==="rtl"?w.createElement(ql,{className:`${ir}-item-link-icon`}):w.createElement(ea,{className:`${ir}-item-link-icon`}),or)),Ps=w.createElement("a",{className:`${ir}-item-link`},w.createElement("div",{className:`${ir}-item-container`},tr==="rtl"?w.createElement(ea,{className:`${ir}-item-link-icon`}):w.createElement(ql,{className:`${ir}-item-link-icon`}),or));return{prevIcon:Ai,nextIcon:Gi,jumpPrevIcon:ds,jumpNextIcon:Ps}},[tr,ir]),[qo]=(0,Fc.Z)("Pagination",ku.Z),Zs=Object.assign(Object.assign({},qo),In),Sa=(0,ga.Z)(Nr),da=Sa==="small"||!!(Lo&&!Sa&&cn),Rs=kt("select",Ft),ma=Se()({[`${ir}-mini`]:da,[`${ir}-rtl`]:tr==="rtl"},Pn==null?void 0:Pn.className,Dt,$t,jr),ko=Object.assign(Object.assign({},Pn==null?void 0:Pn.style),Gt);return dr(w.createElement(ad,Object.assign({},Te,Sr,{style:ko,prefixCls:ir,selectPrefixCls:Rs,className:ma,selectComponentClass:Tn||(da?vd:Xd),locale:Zs,showSizeChanger:Ri})))},Th=uh,yu=m(63732),ff=m(99737);function tl(Ye){return function(Ft){let{prefixCls:Dt,onExpand:$t,record:Gt,expanded:Nr,expandable:In}=Ft;const Tn=`${Dt}-row-expand-icon`;return w.createElement("button",{type:"button",onClick:cn=>{$t(Gt,cn),cn.stopPropagation()},className:Se()(Tn,{[`${Tn}-spaced`]:!In,[`${Tn}-expanded`]:In&&Nr,[`${Tn}-collapsed`]:In&&!Nr}),"aria-label":Nr?Ye.collapse:Ye.expand,"aria-expanded":Nr})}}var Fu=tl;function wd(Ye){return(Ft,Dt)=>{const $t=Ft.querySelector(`.${Ye}-container`);let Gt=Dt;if($t){const Nr=getComputedStyle($t),In=parseInt(Nr.borderLeftWidth,10),Tn=parseInt(Nr.borderRightWidth,10);Gt=Dt-In-Tn}return Gt}}function Yd(Ye,vt){return"key"in Ye&&Ye.key!==void 0&&Ye.key!==null?Ye.key:Ye.dataIndex?Array.isArray(Ye.dataIndex)?Ye.dataIndex.join("."):Ye.dataIndex:vt}function ja(Ye,vt){return vt?`${vt}-${Ye}`:`${Ye}`}function ru(Ye,vt){return typeof Ye=="function"?Ye(vt):Ye}function zl(Ye,vt){const Ft=ru(Ye,vt);return Object.prototype.toString.call(Ft)==="[object Object]"?"":Ft}var Au=m(58825),Vu=function(vt,Ft){return w.createElement(Za.Z,(0,S.Z)({},vt,{ref:Ft,icon:Au.Z}))},Vd=w.forwardRef(Vu),Ud=m(73962);function oh(Ye){const vt=w.useRef(Ye),Ft=(0,Ud.Z)();return[()=>vt.current,Dt=>{vt.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 vt=Ye.dropPosition,Ft=Ye.dropLevelOffset,Dt=Ye.indent,$t={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(vt){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),Ra=m(44516),cs=function(vt){for(var Ft=vt.prefixCls,Dt=vt.level,$t=vt.isStart,Gt=vt.isEnd,Nr="".concat(Ft,"-indent-unit"),In=[],Tn=0;Tn0&&arguments[0]!==void 0?arguments[0]:[],vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ft=Ye.length,Dt=vt.length;if(Math.abs(Ft-Dt)!==1)return{add:!1,key:null};function $t(Gt,Nr){var In=new Map;Gt.forEach(function(cn){In.set(cn,!0)});var Tn=Nr.filter(function(cn){return!In.has(cn)});return Tn.length===1?Tn[0]:null}return Ft ").concat(vt);return vt}var Af=w.forwardRef(function(Ye,vt){var Ft=Ye.prefixCls,Dt=Ye.data,$t=Ye.selectable,Gt=Ye.checkable,Nr=Ye.expandedKeys,In=Ye.selectedKeys,Tn=Ye.checkedKeys,cn=Ye.loadedKeys,Jn=Ye.loadingKeys,Sr=Ye.halfCheckedKeys,Lo=Ye.keyEntities,kt=Ye.disabled,tr=Ye.dragging,Pn=Ye.dragOverNodeKey,ir=Ye.dropPosition,dr=Ye.motion,jr=Ye.height,Ri=Ye.itemHeight,Te=Ye.virtual,qo=Ye.focusable,Zs=Ye.activeItem,Sa=Ye.focused,da=Ye.tabIndex,Rs=Ye.onKeyDown,ma=Ye.onFocus,ko=Ye.onBlur,or=Ye.onActiveChange,Ai=Ye.onListChangeStart,Gi=Ye.onListChangeEnd,ds=(0,go.Z)(Ye,Np),Ps=w.useRef(null),ha=w.useRef(null);w.useImperativeHandle(vt,function(){return{scrollTo:function(wn){Ps.current.scrollTo(wn)},getIndentWidth:function(){return ha.current.offsetWidth}}});var Yo=w.useState(Nr),sr=(0,b.Z)(Yo,2),io=sr[0],ws=sr[1],ul=w.useState(Dt),Dl=(0,b.Z)(ul,2),Ba=Dl[0],Ss=Dl[1],wl=w.useState(Dt),rl=(0,b.Z)(wl,2),mc=rl[0],pl=rl[1],oc=w.useState([]),Ca=(0,b.Z)(oc,2),qu=Ca[0],$l=Ca[1],su=w.useState(null),tu=(0,b.Z)(su,2),Js=tu[0],Gc=tu[1],Le=w.useRef(Dt);Le.current=Dt;function Me(){var Or=Le.current;Ss(Or),pl(Or),$l([]),Gc(null),Gi()}(0,k.Z)(function(){ws(Nr);var Or=Uf(io,Nr);if(Or.key!==null)if(Or.add){var wn=Ba.findIndex(function(bl){var Ql=bl.key;return Ql===Or.key}),li=Ff(Pd(Ba,Dt,Or.key),Te,jr,Ri),Fi=Ba.slice();Fi.splice(wn+1,0,of),pl(Fi),$l(li),Gc("show")}else{var _s=Dt.findIndex(function(bl){var Ql=bl.key;return Ql===Or.key}),Ea=Ff(Pd(Dt,Ba,Or.key),Te,jr,Ri),Aa=Dt.slice();Aa.splice(_s+1,0,of),pl(Aa),$l(Ea),Gc("hide")}else Ba!==Dt&&(Ss(Dt),pl(Dt))},[Nr,Dt]),w.useEffect(function(){tr||Me()},[tr]);var et=dr?mc:Dt,hn={expandedKeys:Nr,selectedKeys:In,loadedKeys:cn,loadingKeys:Jn,checkedKeys:Tn,halfCheckedKeys:Sr,dragOverNodeKey:Pn,dropPosition:ir,keyEntities:Lo};return w.createElement(w.Fragment,null,Sa&&Zs&&w.createElement("span",{style:$p,"aria-live":"assertive"},mp(Zs)),w.createElement("div",null,w.createElement("input",{style:$p,disabled:qo===!1||kt,tabIndex:qo!==!1?da:null,onKeyDown:Rs,onFocus:ma,onBlur:ko,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:ha,className:"".concat(Ft,"-indent-unit")}))),w.createElement(Bs.Z,(0,S.Z)({},ds,{data:et,itemKey:iu,height:jr,fullHeight:!1,virtual:Te,itemHeight:Ri,prefixCls:"".concat(Ft,"-list"),ref:Ps,onVisibleChange:function(wn,li){var Fi=new Set(wn),_s=li.filter(function(Ea){return!Fi.has(Ea)});_s.some(function(Ea){return iu(Ea)===Md})&&Me()}}),function(Or){var wn=Or.pos,li=(0,S.Z)({},((0,Qc.Z)(Or.data),Or.data)),Fi=Or.title,_s=Or.key,Ea=Or.isStart,Aa=Or.isEnd,bl=(0,bc.km)(_s,wn);delete li.key,delete li.children;var Ql=(0,bc.H8)(bl,hn);return w.createElement(wp,(0,S.Z)({},li,Ql,{title:Fi,active:!!Zs&&_s===Zs.key,pos:wn,data:Or.data,isStart:Ea,isEnd:Aa,motion:dr,motionNodes:_s===Md?qu:null,motionType:Js,onMotionStart:Ai,onMotionEnd:Me,treeNodeRequiredProps:hn,onMouseMove:function(){or(null)}}))}))});Af.displayName="NodeList";var np=Af,Od=null;function td(Ye,vt){if(!Ye)return[];var Ft=Ye.slice(),Dt=Ft.indexOf(vt);return Dt>=0&&Ft.splice(Dt,1),Ft}function Dp(Ye,vt){var Ft=(Ye||[]).slice();return Ft.indexOf(vt)===-1&&Ft.push(vt),Ft}function _f(Ye){return Ye.split("-")}function Hh(Ye,vt){var Ft=[],Dt=(0,no.Z)(vt,Ye);function $t(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Gt.forEach(function(Nr){var In=Nr.key,Tn=Nr.children;Ft.push(In),$t(Tn)})}return $t(Dt.children),Ft}function Ap(Ye){if(Ye.parent){var vt=_f(Ye.pos);return Number(vt[vt.length-1])===Ye.parent.children.length-1}return!1}function Vp(Ye){var vt=_f(Ye.pos);return Number(vt[vt.length-1])===0}function Cd(Ye,vt,Ft,Dt,$t,Gt,Nr,In,Tn,cn){var Jn,Sr=Ye.clientX,Lo=Ye.clientY,kt=Ye.target.getBoundingClientRect(),tr=kt.top,Pn=kt.height,ir=(cn==="rtl"?-1:1)*((($t==null?void 0:$t.x)||0)-Sr),dr=(ir-12)/Dt,jr=(0,no.Z)(In,Ft.props.eventKey);if(Lo-1.5?Gt({dragNode:or,dropNode:Ai,dropPosition:1})?Rs=1:Gi=!1:Gt({dragNode:or,dropNode:Ai,dropPosition:0})?Rs=0:Gt({dragNode:or,dropNode:Ai,dropPosition:1})?Rs=1:Gi=!1:Gt({dragNode:or,dropNode:Ai,dropPosition:1})?Rs=1:Gi=!1,{dropPosition:Rs,dropLevelOffset:ma,dropTargetKey:jr.key,dropTargetPos:jr.pos,dragOverNodeKey:da,dropContainerKey:Rs===0?null:((Jn=jr.parent)===null||Jn===void 0?void 0:Jn.key)||null,dropAllowed:Gi}}function Jh(Ye,vt){if(Ye){var Ft=vt.multiple;return Ft?Ye.slice():Ye.length?[Ye[0]]:Ye}}var kh=function(vt){return vt};function yh(Ye,vt){if(!Ye)return[];var Ft=vt||{},Dt=Ft.processProps,$t=Dt===void 0?kh:Dt,Gt=Array.isArray(Ye)?Ye:[Ye];return Gt.map(function(Nr){var In=Nr.children,Tn=_objectWithoutProperties(Nr,Od),cn=yh(In,vt);return React.createElement(TreeNode,_extends({key:Tn.key},$t(Tn)),cn)})}function Bf(Ye){if(!Ye)return null;var vt;if(Array.isArray(Ye))vt={checkedKeys:Ye,halfCheckedKeys:void 0};else if((0,xe.Z)(Ye)==="object")vt={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 vt}function bd(Ye,vt){var Ft=new Set;function Dt($t){if(!Ft.has($t)){var Gt=(0,no.Z)(vt,$t);if(Gt){Ft.add($t);var Nr=Gt.parent,In=Gt.node;In.disabled||Nr&&Dt(Nr.key)}}}return(Ye||[]).forEach(function($t){Dt($t)}),(0,ti.Z)(Ft)}var $c=m(90782),Hd=10,mh=function(Ye){(0,ls.Z)(Ft,Ye);var vt=(0,Ks.Z)(Ft);function Ft(){var Dt;(0,Cn.Z)(this,Ft);for(var $t=arguments.length,Gt=new Array($t),Nr=0;Nr<$t;Nr++)Gt[Nr]=arguments[Nr];return Dt=vt.call.apply(vt,[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(In,Tn){var cn=Dt.state,Jn=cn.expandedKeys,Sr=cn.keyEntities,Lo=Dt.props.onDragStart,kt=Tn.props.eventKey;Dt.dragNode=Tn,Dt.dragStartMousePosition={x:In.clientX,y:In.clientY};var tr=td(Jn,kt);Dt.setState({draggingNodeKey:kt,dragChildrenKeys:Hh(kt,Sr),indent:Dt.listRef.current.getIndentWidth()}),Dt.setExpandedKeys(tr),window.addEventListener("dragend",Dt.onWindowDragEnd),Lo==null||Lo({event:In,node:(0,bc.F)(Tn.props)})},Dt.onNodeDragEnter=function(In,Tn){var cn=Dt.state,Jn=cn.expandedKeys,Sr=cn.keyEntities,Lo=cn.dragChildrenKeys,kt=cn.flattenNodes,tr=cn.indent,Pn=Dt.props,ir=Pn.onDragEnter,dr=Pn.onExpand,jr=Pn.allowDrop,Ri=Pn.direction,Te=Tn.props,qo=Te.pos,Zs=Te.eventKey,Sa=(0,ed.Z)(Dt),da=Sa.dragNode;if(Dt.currentMouseOverDroppableNodeKey!==Zs&&(Dt.currentMouseOverDroppableNodeKey=Zs),!da){Dt.resetDragState();return}var Rs=Cd(In,da,Tn,tr,Dt.dragStartMousePosition,jr,kt,Sr,Jn,Ri),ma=Rs.dropPosition,ko=Rs.dropLevelOffset,or=Rs.dropTargetKey,Ai=Rs.dropContainerKey,Gi=Rs.dropTargetPos,ds=Rs.dropAllowed,Ps=Rs.dragOverNodeKey;if(Lo.indexOf(or)!==-1||!ds){Dt.resetDragState();return}if(Dt.delayedDragEnterLogic||(Dt.delayedDragEnterLogic={}),Object.keys(Dt.delayedDragEnterLogic).forEach(function(ha){clearTimeout(Dt.delayedDragEnterLogic[ha])}),da.props.eventKey!==Tn.props.eventKey&&(In.persist(),Dt.delayedDragEnterLogic[qo]=window.setTimeout(function(){if(Dt.state.draggingNodeKey!==null){var ha=(0,ti.Z)(Jn),Yo=(0,no.Z)(Sr,Tn.props.eventKey);Yo&&(Yo.children||[]).length&&(ha=Dp(Jn,Tn.props.eventKey)),"expandedKeys"in Dt.props||Dt.setExpandedKeys(ha),dr==null||dr(ha,{node:(0,bc.F)(Tn.props),expanded:!0,nativeEvent:In.nativeEvent})}},800)),da.props.eventKey===or&&ko===0){Dt.resetDragState();return}Dt.setState({dragOverNodeKey:Ps,dropPosition:ma,dropLevelOffset:ko,dropTargetKey:or,dropContainerKey:Ai,dropTargetPos:Gi,dropAllowed:ds}),ir==null||ir({event:In,node:(0,bc.F)(Tn.props),expandedKeys:Jn})},Dt.onNodeDragOver=function(In,Tn){var cn=Dt.state,Jn=cn.dragChildrenKeys,Sr=cn.flattenNodes,Lo=cn.keyEntities,kt=cn.expandedKeys,tr=cn.indent,Pn=Dt.props,ir=Pn.onDragOver,dr=Pn.allowDrop,jr=Pn.direction,Ri=(0,ed.Z)(Dt),Te=Ri.dragNode;if(Te){var qo=Cd(In,Te,Tn,tr,Dt.dragStartMousePosition,dr,Sr,Lo,kt,jr),Zs=qo.dropPosition,Sa=qo.dropLevelOffset,da=qo.dropTargetKey,Rs=qo.dropContainerKey,ma=qo.dropAllowed,ko=qo.dropTargetPos,or=qo.dragOverNodeKey;Jn.indexOf(da)!==-1||!ma||(Te.props.eventKey===da&&Sa===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():Zs===Dt.state.dropPosition&&Sa===Dt.state.dropLevelOffset&&da===Dt.state.dropTargetKey&&Rs===Dt.state.dropContainerKey&&ko===Dt.state.dropTargetPos&&ma===Dt.state.dropAllowed&&or===Dt.state.dragOverNodeKey||Dt.setState({dropPosition:Zs,dropLevelOffset:Sa,dropTargetKey:da,dropContainerKey:Rs,dropTargetPos:ko,dropAllowed:ma,dragOverNodeKey:or}),ir==null||ir({event:In,node:(0,bc.F)(Tn.props)}))}},Dt.onNodeDragLeave=function(In,Tn){Dt.currentMouseOverDroppableNodeKey===Tn.props.eventKey&&!In.currentTarget.contains(In.relatedTarget)&&(Dt.resetDragState(),Dt.currentMouseOverDroppableNodeKey=null);var cn=Dt.props.onDragLeave;cn==null||cn({event:In,node:(0,bc.F)(Tn.props)})},Dt.onWindowDragEnd=function(In){Dt.onNodeDragEnd(In,null,!0),window.removeEventListener("dragend",Dt.onWindowDragEnd)},Dt.onNodeDragEnd=function(In,Tn){var cn=Dt.props.onDragEnd;Dt.setState({dragOverNodeKey:null}),Dt.cleanDragState(),cn==null||cn({event:In,node:(0,bc.F)(Tn.props)}),Dt.dragNode=null,window.removeEventListener("dragend",Dt.onWindowDragEnd)},Dt.onNodeDrop=function(In,Tn){var cn,Jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Sr=Dt.state,Lo=Sr.dragChildrenKeys,kt=Sr.dropPosition,tr=Sr.dropTargetKey,Pn=Sr.dropTargetPos,ir=Sr.dropAllowed;if(ir){var dr=Dt.props.onDrop;if(Dt.setState({dragOverNodeKey:null}),Dt.cleanDragState(),tr!==null){var jr=(0,Ae.Z)((0,Ae.Z)({},(0,bc.H8)(tr,Dt.getTreeNodeRequiredProps())),{},{active:((cn=Dt.getActiveItem())===null||cn===void 0?void 0:cn.key)===tr,data:(0,no.Z)(Dt.state.keyEntities,tr).node}),Ri=Lo.indexOf(tr)!==-1;(0,He.ZP)(!Ri,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Te=_f(Pn),qo={event:In,node:(0,bc.F)(jr),dragNode:Dt.dragNode?(0,bc.F)(Dt.dragNode.props):null,dragNodesKeys:[Dt.dragNode.props.eventKey].concat(Lo),dropToGap:kt!==0,dropPosition:kt+Number(Te[Te.length-1])};Jn||dr==null||dr(qo),Dt.dragNode=null}}},Dt.cleanDragState=function(){var In=Dt.state.draggingNodeKey;In!==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(In,Tn){var cn=Dt.state,Jn=cn.expandedKeys,Sr=cn.flattenNodes,Lo=Tn.expanded,kt=Tn.key,tr=Tn.isLeaf;if(!(tr||In.shiftKey||In.metaKey||In.ctrlKey)){var Pn=Sr.filter(function(dr){return dr.key===kt})[0],ir=(0,bc.F)((0,Ae.Z)((0,Ae.Z)({},(0,bc.H8)(kt,Dt.getTreeNodeRequiredProps())),{},{data:Pn.data}));Dt.setExpandedKeys(Lo?td(Jn,kt):Dp(Jn,kt)),Dt.onNodeExpand(In,ir)}},Dt.onNodeClick=function(In,Tn){var cn=Dt.props,Jn=cn.onClick,Sr=cn.expandAction;Sr==="click"&&Dt.triggerExpandActionExpand(In,Tn),Jn==null||Jn(In,Tn)},Dt.onNodeDoubleClick=function(In,Tn){var cn=Dt.props,Jn=cn.onDoubleClick,Sr=cn.expandAction;Sr==="doubleClick"&&Dt.triggerExpandActionExpand(In,Tn),Jn==null||Jn(In,Tn)},Dt.onNodeSelect=function(In,Tn){var cn=Dt.state.selectedKeys,Jn=Dt.state,Sr=Jn.keyEntities,Lo=Jn.fieldNames,kt=Dt.props,tr=kt.onSelect,Pn=kt.multiple,ir=Tn.selected,dr=Tn[Lo.key],jr=!ir;jr?Pn?cn=Dp(cn,dr):cn=[dr]:cn=td(cn,dr);var Ri=cn.map(function(Te){var qo=(0,no.Z)(Sr,Te);return qo?qo.node:null}).filter(function(Te){return Te});Dt.setUncontrolledState({selectedKeys:cn}),tr==null||tr(cn,{event:"select",selected:jr,node:Tn,selectedNodes:Ri,nativeEvent:In.nativeEvent})},Dt.onNodeCheck=function(In,Tn,cn){var Jn=Dt.state,Sr=Jn.keyEntities,Lo=Jn.checkedKeys,kt=Jn.halfCheckedKeys,tr=Dt.props,Pn=tr.checkStrictly,ir=tr.onCheck,dr=Tn.key,jr,Ri={event:"check",node:Tn,checked:cn,nativeEvent:In.nativeEvent};if(Pn){var Te=cn?Dp(Lo,dr):td(Lo,dr),qo=td(kt,dr);jr={checked:Te,halfChecked:qo},Ri.checkedNodes=Te.map(function(ko){return(0,no.Z)(Sr,ko)}).filter(function(ko){return ko}).map(function(ko){return ko.node}),Dt.setUncontrolledState({checkedKeys:Te})}else{var Zs=(0,$c.S)([].concat((0,ti.Z)(Lo),[dr]),!0,Sr),Sa=Zs.checkedKeys,da=Zs.halfCheckedKeys;if(!cn){var Rs=new Set(Sa);Rs.delete(dr);var ma=(0,$c.S)(Array.from(Rs),{checked:!1,halfCheckedKeys:da},Sr);Sa=ma.checkedKeys,da=ma.halfCheckedKeys}jr=Sa,Ri.checkedNodes=[],Ri.checkedNodesPositions=[],Ri.halfCheckedKeys=da,Sa.forEach(function(ko){var or=(0,no.Z)(Sr,ko);if(or){var Ai=or.node,Gi=or.pos;Ri.checkedNodes.push(Ai),Ri.checkedNodesPositions.push({node:Ai,pos:Gi})}}),Dt.setUncontrolledState({checkedKeys:Sa},!1,{halfCheckedKeys:da})}ir==null||ir(jr,Ri)},Dt.onNodeLoad=function(In){var Tn=In.key,cn=new Promise(function(Jn,Sr){Dt.setState(function(Lo){var kt=Lo.loadedKeys,tr=kt===void 0?[]:kt,Pn=Lo.loadingKeys,ir=Pn===void 0?[]:Pn,dr=Dt.props,jr=dr.loadData,Ri=dr.onLoad;if(!jr||tr.indexOf(Tn)!==-1||ir.indexOf(Tn)!==-1)return null;var Te=jr(In);return Te.then(function(){var qo=Dt.state.loadedKeys,Zs=Dp(qo,Tn);Ri==null||Ri(Zs,{event:"load",node:In}),Dt.setUncontrolledState({loadedKeys:Zs}),Dt.setState(function(Sa){return{loadingKeys:td(Sa.loadingKeys,Tn)}}),Jn()}).catch(function(qo){if(Dt.setState(function(Sa){return{loadingKeys:td(Sa.loadingKeys,Tn)}}),Dt.loadingRetryTimes[Tn]=(Dt.loadingRetryTimes[Tn]||0)+1,Dt.loadingRetryTimes[Tn]>=Hd){var Zs=Dt.state.loadedKeys;(0,He.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Dt.setUncontrolledState({loadedKeys:Dp(Zs,Tn)}),Jn()}Sr(qo)}),{loadingKeys:Dp(ir,Tn)}})});return cn.catch(function(){}),cn},Dt.onNodeMouseEnter=function(In,Tn){var cn=Dt.props.onMouseEnter;cn==null||cn({event:In,node:Tn})},Dt.onNodeMouseLeave=function(In,Tn){var cn=Dt.props.onMouseLeave;cn==null||cn({event:In,node:Tn})},Dt.onNodeContextMenu=function(In,Tn){var cn=Dt.props.onRightClick;cn&&(In.preventDefault(),cn({event:In,node:Tn}))},Dt.onFocus=function(){var In=Dt.props.onFocus;Dt.setState({focused:!0});for(var Tn=arguments.length,cn=new Array(Tn),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,Sr=!0,Lo={};Object.keys(In).forEach(function(kt){if(kt in Dt.props){Sr=!1;return}Jn=!0,Lo[kt]=In[kt]}),Jn&&(!Tn||Sr)&&Dt.setState((0,Ae.Z)((0,Ae.Z)({},Lo),cn))}},Dt.scrollTo=function(In){Dt.listRef.current.scrollTo(In)},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,Nr=Gt.focused,In=Gt.flattenNodes,Tn=Gt.keyEntities,cn=Gt.draggingNodeKey,Jn=Gt.activeKey,Sr=Gt.dropLevelOffset,Lo=Gt.dropContainerKey,kt=Gt.dropTargetKey,tr=Gt.dropPosition,Pn=Gt.dragOverNodeKey,ir=Gt.indent,dr=this.props,jr=dr.prefixCls,Ri=dr.className,Te=dr.style,qo=dr.showLine,Zs=dr.focusable,Sa=dr.tabIndex,da=Sa===void 0?0:Sa,Rs=dr.selectable,ma=dr.showIcon,ko=dr.icon,or=dr.switcherIcon,Ai=dr.draggable,Gi=dr.checkable,ds=dr.checkStrictly,Ps=dr.disabled,ha=dr.motion,Yo=dr.loadData,sr=dr.filterTreeNode,io=dr.height,ws=dr.itemHeight,ul=dr.virtual,Dl=dr.titleRender,Ba=dr.dropIndicatorRender,Ss=dr.onContextMenu,wl=dr.onScroll,rl=dr.direction,mc=dr.rootClassName,pl=dr.rootStyle,oc=(0,zn.Z)(this.props,{aria:!0,data:!0}),Ca;return Ai&&((0,xe.Z)(Ai)==="object"?Ca=Ai:typeof Ai=="function"?Ca={nodeDraggable:Ai}:Ca={}),w.createElement(Kh.Provider,{value:{prefixCls:jr,selectable:Rs,showIcon:ma,icon:ko,switcherIcon:or,draggable:Ca,draggingNodeKey:cn,checkable:Gi,checkStrictly:ds,disabled:Ps,keyEntities:Tn,dropLevelOffset:Sr,dropContainerKey:Lo,dropTargetKey:kt,dropPosition:tr,dragOverNodeKey:Pn,indent:ir,direction:rl,dropIndicatorRender:Ba,loadData:Yo,filterTreeNode:sr,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:Se()(jr,Ri,mc,($t={},(0,ge.Z)($t,"".concat(jr,"-show-line"),qo),(0,ge.Z)($t,"".concat(jr,"-focused"),Nr),(0,ge.Z)($t,"".concat(jr,"-active-focused"),Jn!==null),$t)),style:pl},w.createElement(np,(0,S.Z)({ref:this.listRef,prefixCls:jr,style:Te,data:In,disabled:Ps,selectable:Rs,checkable:!!Gi,motion:ha,dragging:cn!==null,height:io,itemHeight:ws,virtual:ul,focusable:Zs,focused:Nr,tabIndex:da,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ss,onScroll:wl},this.getTreeNodeRequiredProps(),oc))))}}],[{key:"getDerivedStateFromProps",value:function($t,Gt){var Nr=Gt.prevProps,In={prevProps:$t};function Tn(Zs){return!Nr&&Zs in $t||Nr&&Nr[Zs]!==$t[Zs]}var cn,Jn=Gt.fieldNames;if(Tn("fieldNames")&&(Jn=(0,bc.w$)($t.fieldNames),In.fieldNames=Jn),Tn("treeData")?cn=$t.treeData:Tn("children")&&((0,He.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),cn=(0,bc.zn)($t.children)),cn){In.treeData=cn;var Sr=(0,bc.I8)(cn,{fieldNames:Jn});In.keyEntities=(0,Ae.Z)((0,ge.Z)({},Md,Ih),Sr.keyEntities)}var Lo=In.keyEntities||Gt.keyEntities;if(Tn("expandedKeys")||Nr&&Tn("autoExpandParent"))In.expandedKeys=$t.autoExpandParent||!Nr&&$t.defaultExpandParent?bd($t.expandedKeys,Lo):$t.expandedKeys;else if(!Nr&&$t.defaultExpandAll){var kt=(0,Ae.Z)({},Lo);delete kt[Md],In.expandedKeys=Object.keys(kt).map(function(Zs){return kt[Zs].key})}else!Nr&&$t.defaultExpandedKeys&&(In.expandedKeys=$t.autoExpandParent||$t.defaultExpandParent?bd($t.defaultExpandedKeys,Lo):$t.defaultExpandedKeys);if(In.expandedKeys||delete In.expandedKeys,cn||In.expandedKeys){var tr=(0,bc.oH)(cn||Gt.treeData,In.expandedKeys||Gt.expandedKeys,Jn);In.flattenNodes=tr}if($t.selectable&&(Tn("selectedKeys")?In.selectedKeys=Jh($t.selectedKeys,$t):!Nr&&$t.defaultSelectedKeys&&(In.selectedKeys=Jh($t.defaultSelectedKeys,$t))),$t.checkable){var Pn;if(Tn("checkedKeys")?Pn=Bf($t.checkedKeys)||{}:!Nr&&$t.defaultCheckedKeys?Pn=Bf($t.defaultCheckedKeys)||{}:cn&&(Pn=Bf($t.checkedKeys)||{checkedKeys:Gt.checkedKeys,halfCheckedKeys:Gt.halfCheckedKeys}),Pn){var ir=Pn,dr=ir.checkedKeys,jr=dr===void 0?[]:dr,Ri=ir.halfCheckedKeys,Te=Ri===void 0?[]:Ri;if(!$t.checkStrictly){var qo=(0,$c.S)(jr,!0,Lo);jr=qo.checkedKeys,Te=qo.halfCheckedKeys}In.checkedKeys=jr,In.halfCheckedKeys=Te}}return Tn("loadedKeys")&&(In.loadedKeys=$t.loadedKeys),In}}]),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 Io=mh,D=Io,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(vt,Ft){return w.createElement(Za.Z,(0,S.Z)({},vt,{ref:Ft,icon:q}))},Ue=w.forwardRef(se),Jt={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"},Wn=Jt,_i=function(vt,Ft){return w.createElement(Za.Z,(0,S.Z)({},vt,{ref:Ft,icon:Wn}))},Xo=w.forwardRef(_i),pa={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=pa,Ll=function(vt,Ft){return w.createElement(Za.Z,(0,S.Z)({},vt,{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(vt,Ft){return w.createElement(Za.Z,(0,S.Z)({},vt,{ref:Ft,icon:pc}))},Rd=w.forwardRef(zc),X=m(26612),ne=m(84608),J=m(79148),ae=m(53710);const it=new ne.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Rt=(Ye,vt)=>({[`.${Ye}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${vt.motionDurationSlow}`}}}),nn=(Ye,vt)=>({[`.${Ye}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:vt.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${vt.lineWidthBold}px solid ${vt.colorPrimary}`,borderRadius:"50%",content:'""'}}}),qn=(Ye,vt)=>{const{treeCls:Ft,treeNodeCls:Dt,treeNodePadding:$t,titleHeight:Gt,nodeSelectedBg:Nr,nodeHoverBg:In}=vt,Tn=vt.paddingXS;return{[Ft]:Object.assign(Object.assign({},(0,jd.Wf)(vt)),{background:vt.colorBgContainer,borderRadius:vt.borderRadius,transition:`background-color ${vt.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)(vt)),[`${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 ${vt.colorPrimary}`,opacity:0,animationName:it,animationDuration:vt.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:vt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Ft}-node-content-wrapper`]:Object.assign({},(0,jd.oN)(vt)),[`&: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 ${vt.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,vt)),{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:vt.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 ${vt.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Gt/2*.8,height:Gt/2,borderBottom:`1px solid ${vt.colorBorder}`,content:'""'}}}),[`${Ft}-checkbox`]:{top:"initial",marginInlineEnd:Tn,alignSelf:"flex-start",marginTop:vt.marginXXS},[`${Ft}-node-content-wrapper, ${Ft}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:Gt,margin:0,padding:`0 ${vt.paddingXS/2}px`,color:"inherit",lineHeight:`${Gt}px`,background:"transparent",borderRadius:vt.borderRadius,cursor:"pointer",transition:`all ${vt.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:In},[`&${Ft}-node-selected`]:{backgroundColor:Nr},[`${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"},nn(Ye,vt)),[`${Dt}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${vt.colorPrimary}`}},"&-show-line":{[`${Ft}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Gt/2,bottom:-$t,borderInlineEnd:`1px solid ${vt.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`}}}}})}},ei=Ye=>{const{treeCls:vt,treeNodeCls:Ft,treeNodePadding:Dt,directoryNodeSelectedBg:$t,directoryNodeSelectedColor:Gt}=Ye;return{[`${vt}${vt}-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},[`${vt}-switcher`]:{transition:`color ${Ye.motionDurationMid}`},[`${vt}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${vt}-node-selected`]:{color:Gt,background:"transparent"}},"&-selected":{[` + `]:{height:je,fontFamily:Me.fontFamily,lineHeight:`${je}px`,transition:`all ${Me.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ze}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:Me.inputPaddingHorizontalBase,insetInlineEnd:Me.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Me.motionDurationSlow}`}}}}var he=Me=>{const{componentCls:Ee}=Me,ze=(0,C.TS)(Me,{selectHeight:Me.controlHeightSM,multipleSelectItemHeight:Me.controlHeightXS,borderRadius:Me.borderRadiusSM,borderRadiusSM:Me.borderRadiusXS}),Pe=(0,C.TS)(Me,{fontSize:Me.fontSizeLG,selectHeight:Me.controlHeightLG,multipleSelectItemHeight:Me.multipleItemHeightLG,borderRadius:Me.borderRadiusLG,borderRadiusSM:Me.borderRadius}),[,Re]=T(Me);return[F(Me),F(ze,"sm"),{[`${Ee}-multiple${Ee}-sm`]:{[`${Ee}-selection-placeholder`]:{insetInline:Me.controlPaddingHorizontalSM-Me.lineWidth},[`${Ee}-selection-search`]:{marginInlineStart:Re}}},F(Pe,"lg")]};function fe(Me,Ee){const{componentCls:ze,inputPaddingHorizontalBase:Pe,borderRadius:Re}=Me,je=Me.controlHeight-Me.lineWidth*2,Ce=Math.ceil(Me.fontSize*1.25),rt=Ee?`${ze}-${Ee}`:"";return{[`${ze}-single${rt}`]:{fontSize:Me.fontSize,height:Me.controlHeight,[`${ze}-selector`]:Object.assign(Object.assign({},(0,v.Wf)(Me,!0)),{display:"flex",borderRadius:Re,[`${ze}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Pe,insetInlineEnd:Pe,bottom:0,"&-input":{width:"100%"}},[` + ${ze}-selection-item, + ${ze}-selection-placeholder + `]:{padding:0,lineHeight:`${je}px`,transition:`all ${Me.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${ze}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ze}-selection-item:empty:after`,`${ze}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${ze}-show-arrow ${ze}-selection-item, + &${ze}-show-arrow ${ze}-selection-placeholder + `]:{paddingInlineEnd:Ce},[`&${ze}-open ${ze}-selection-item`]:{color:Me.colorTextPlaceholder},[`&:not(${ze}-customize-input)`]:{[`${ze}-selector`]:{width:"100%",height:"100%",padding:`0 ${Pe}px`,[`${ze}-selection-search-input`]:{height:je},"&:after":{lineHeight:`${je}px`}}},[`&${ze}-customize-input`]:{[`${ze}-selector`]:{"&:after":{display:"none"},[`${ze}-selection-search`]:{position:"static",width:"100%"},[`${ze}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Pe}px`,"&:after":{display:"none"}}}}}}}function be(Me){const{componentCls:Ee}=Me,ze=Me.controlPaddingHorizontalSM-Me.lineWidth;return[fe(Me),fe((0,C.TS)(Me,{controlHeight:Me.controlHeightSM,borderRadius:Me.borderRadiusSM}),"sm"),{[`${Ee}-single${Ee}-sm`]:{[`&:not(${Ee}-customize-input)`]:{[`${Ee}-selection-search`]:{insetInlineStart:ze,insetInlineEnd:ze},[`${Ee}-selector`]:{padding:`0 ${ze}px`},[`&${Ee}-show-arrow ${Ee}-selection-search`]:{insetInlineEnd:ze+Me.fontSize*1.5},[` + &${Ee}-show-arrow ${Ee}-selection-item, + &${Ee}-show-arrow ${Ee}-selection-placeholder + `]:{paddingInlineEnd:Me.fontSize*1.5}}}},fe((0,C.TS)(Me,{controlHeight:Me.singleItemHeightLG,fontSize:Me.fontSizeLG,borderRadius:Me.borderRadiusLG}),"lg")]}const Ae=Me=>{const{componentCls:Ee,selectorBg:ze}=Me;return{position:"relative",backgroundColor:ze,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,transition:`all ${Me.motionDurationMid} ${Me.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ee}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Ee}-disabled&`]:{color:Me.colorTextDisabled,background:Me.colorBgContainerDisabled,cursor:"not-allowed",[`${Ee}-multiple&`]:{background:Me.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},xe=function(Me,Ee){let ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Pe,borderHoverColor:Re,antCls:je,borderActiveColor:Ce,outlineColor:rt,controlOutlineWidth:Ne}=Ee,Xt=ze?{[`${Pe}-selector`]:{borderColor:Ce}}:{};return{[Me]:{[`&:not(${Pe}-disabled):not(${Pe}-customize-input):not(${je}-pagination-size-changer)`]:Object.assign(Object.assign({},Xt),{[`&:hover ${Pe}-selector`]:{borderColor:Re},[`${Pe}-focused& ${Pe}-selector`]:{borderColor:Ce,boxShadow:`0 0 0 ${Ne}px ${rt}`,outline:0}})}}},Se=Me=>{const{componentCls:Ee}=Me;return{[`${Ee}-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"}}}},it=Me=>{const{antCls:Ee,componentCls:ze,inputPaddingHorizontalBase:Pe,iconCls:Re}=Me;return{[ze]:Object.assign(Object.assign({},(0,v.Wf)(Me)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${ze}-customize-input) ${ze}-selector`]:Object.assign(Object.assign({},Ae(Me)),Se(Me)),[`${ze}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},v.vS),{[`> ${Ee}-typography`]:{display:"inline"}}),[`${ze}-selection-placeholder`]:Object.assign(Object.assign({},v.vS),{flex:1,color:Me.colorTextPlaceholder,pointerEvents:"none"}),[`${ze}-arrow`]:Object.assign(Object.assign({},(0,v.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Pe,height:Me.fontSizeIcon,marginTop:-Me.fontSizeIcon/2,color:Me.colorTextQuaternary,fontSize:Me.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Re]:{verticalAlign:"top",transition:`transform ${Me.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ze}-suffix)`]:{pointerEvents:"auto"}},[`${ze}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ze}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Pe,zIndex:1,display:"inline-block",width:Me.fontSizeIcon,height:Me.fontSizeIcon,marginTop:-Me.fontSizeIcon/2,color:Me.colorTextQuaternary,fontSize:Me.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Me.clearBg,cursor:"pointer",opacity:0,transition:`color ${Me.motionDurationMid} ease, opacity ${Me.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Me.colorTextTertiary}},"&:hover":{[`${ze}-clear`]:{opacity:1}}}),[`${ze}-has-feedback`]:{[`${ze}-clear`]:{insetInlineEnd:Pe+Me.fontSize+Me.paddingXS}}}},Xe=Me=>{const{componentCls:Ee}=Me;return[{[Ee]:{[`&-borderless ${Ee}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ee}-in-form-item`]:{width:"100%"}}},it(Me),be(Me),he(Me),S(Me),{[`${Ee}-rtl`]:{direction:"rtl"}},xe(Ee,(0,C.TS)(Me,{borderHoverColor:Me.colorPrimaryHover,borderActiveColor:Me.colorPrimary,outlineColor:Me.controlOutline})),xe(`${Ee}-status-error`,(0,C.TS)(Me,{borderHoverColor:Me.colorErrorHover,borderActiveColor:Me.colorError,outlineColor:Me.colorErrorOutline}),!0),xe(`${Ee}-status-warning`,(0,C.TS)(Me,{borderHoverColor:Me.colorWarningHover,borderActiveColor:Me.colorWarning,outlineColor:Me.colorWarningOutline}),!0),(0,M.c)(Me,{borderElCls:`${Ee}-selector`,focusElCls:`${Ee}-focused`})]};var ft=(0,x.Z)("Select",(Me,Ee)=>{let{rootPrefixCls:ze}=Ee;const Pe=(0,C.TS)(Me,{rootPrefixCls:ze,inputPaddingHorizontalBase:Me.paddingSM-1,multipleSelectItemHeight:Me.multipleItemHeight,selectHeight:Me.controlHeight});return[Xe(Pe)]},Me=>{const{fontSize:Ee,lineHeight:ze,controlHeight:Pe,controlPaddingHorizontal:Re,zIndexPopupBase:je,colorText:Ce,fontWeightStrong:rt,controlItemBgActive:Ne,controlItemBgHover:Xt,colorBgContainer:Ft,colorFillSecondary:lt,controlHeightLG:Bt,controlHeightSM:At,colorBgContainerDisabled:an,colorTextDisabled:Tt}=Me;return{zIndexPopup:je+50,optionSelectedColor:Ce,optionSelectedFontWeight:rt,optionSelectedBg:Ne,optionActiveBg:Xt,optionPadding:`${(Pe-Ee*ze)/2}px ${Re}px`,optionFontSize:Ee,optionLineHeight:ze,optionHeight:Pe,selectorBg:Ft,clearBg:Ft,singleItemHeightLG:Bt,multipleItemBg:lt,multipleItemBorderColor:"transparent",multipleItemHeight:At,multipleItemHeightLG:Pe,multipleSelectorBgDisabled:an,multipleItemColorDisabled:Tt,multipleItemBorderColorDisabled:"transparent"}})},12284:function(mt,q,_){"use strict";_.d(q,{Z:function(){return M}});const v=C=>{const N={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:C==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},N),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},N),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},N),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},N),{points:["br","tr"],offset:[0,-4]})}};function M(C,x){return C||v(x)}},20562:function(mt,q,_){"use strict";_.d(q,{Z:function(){return k}});var v=_(77617),M=_(75769),C=_(48796),x=_(49934),N=_(42884),V=_(38521),R=_(46820);function k(S){let{suffixIcon:p,clearIcon:T,menuItemSelectedIcon:F,removeIcon:K,loading:he,multiple:fe,hasFeedback:be,prefixCls:Ae,showSuffixIcon:xe,feedbackIcon:Se,showArrow:it,componentName:Xe}=S;const ft=T!=null?T:v.createElement(C.Z,null),Me=Re=>p===null&&!be&&!it?null:v.createElement(v.Fragment,null,xe!==!1&&Re,be&&Se);let Ee=null;if(p!==void 0)Ee=Me(p);else if(he)Ee=Me(v.createElement(V.Z,{spin:!0}));else{const Re=`${Ae}-suffix`;Ee=je=>{let{open:Ce,showSearch:rt}=je;return Me(Ce&&rt?v.createElement(R.Z,{className:Re}):v.createElement(N.Z,{className:Re}))}}let ze=null;F!==void 0?ze=F:fe?ze=v.createElement(M.Z,null):ze=null;let Pe=null;return K!==void 0?Pe=K:Pe=v.createElement(x.Z,null),{clearIcon:ft,suffixIcon:Ee,itemIcon:ze,removeIcon:Pe}}},85184:function(mt,q,_){"use strict";_.d(q,{Z:function(){return v}});function v(M,C){return C!==void 0?C:M!==null}},43906:function(mt,q,_){"use strict";_.d(q,{BR:function(){return T},ri:function(){return p}});var v=_(12124),M=_.n(v),C=_(38930),x=_(77617),N=_(41203),V=_(29212),R=_(79754),k=function(he,fe){var be={};for(var Ae in he)Object.prototype.hasOwnProperty.call(he,Ae)&&fe.indexOf(Ae)<0&&(be[Ae]=he[Ae]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Ae=Object.getOwnPropertySymbols(he);xe{const be=x.useContext(S),Ae=x.useMemo(()=>{if(!be)return"";const{compactDirection:xe,isFirstItem:Se,isLastItem:it}=be,Xe=xe==="vertical"?"-vertical-":"-";return M()(`${he}-compact${Xe}item`,{[`${he}-compact${Xe}first-item`]:Se,[`${he}-compact${Xe}last-item`]:it,[`${he}-compact${Xe}item-rtl`]:fe==="rtl"})},[he,fe,be]);return{compactSize:be==null?void 0:be.compactSize,compactDirection:be==null?void 0:be.compactDirection,compactItemClassnames:Ae}},T=he=>{let{children:fe}=he;return x.createElement(S.Provider,{value:null},fe)},F=he=>{var{children:fe}=he,be=k(he,["children"]);return x.createElement(S.Provider,{value:be},fe)},K=he=>{const{getPrefixCls:fe,direction:be}=x.useContext(N.E_),{size:Ae,direction:xe,block:Se,prefixCls:it,className:Xe,rootClassName:ft,children:Me}=he,Ee=k(he,["size","direction","block","prefixCls","className","rootClassName","children"]),ze=(0,V.Z)(Ft=>Ae!=null?Ae:Ft),Pe=fe("space-compact",it),[Re,je]=(0,R.Z)(Pe),Ce=M()(Pe,je,{[`${Pe}-rtl`]:be==="rtl",[`${Pe}-block`]:Se,[`${Pe}-vertical`]:xe==="vertical"},Xe,ft),rt=x.useContext(S),Ne=(0,C.Z)(Me),Xt=x.useMemo(()=>Ne.map((Ft,lt)=>{const Bt=Ft&&Ft.key||`${Pe}-item-${lt}`;return x.createElement(F,{key:Bt,compactSize:ze,compactDirection:xe,isFirstItem:lt===0&&(!rt||(rt==null?void 0:rt.isFirstItem)),isLastItem:lt===Ne.length-1&&(!rt||(rt==null?void 0:rt.isLastItem))},Ft)}),[Ae,Ne,rt]);return Ne.length===0?null:Re(x.createElement("div",Object.assign({className:Ce},Ee),Xt))};q.ZP=K},2159:function(mt,q,_){"use strict";_.d(q,{Z:function(){return Ae}});var v=_(77617),M=_(12124),C=_.n(M),x=_(38930);function N(xe){return["small","middle","large"].includes(xe)}function V(xe){return xe?typeof xe=="number"&&!Number.isNaN(xe):!1}var R=_(41203),k=_(43906);const S=v.createContext({latestIndex:0}),p=S.Provider;var F=xe=>{let{className:Se,index:it,children:Xe,split:ft,style:Me}=xe;const{latestIndex:Ee}=v.useContext(S);return Xe==null?null:v.createElement(v.Fragment,null,v.createElement("div",{className:Se,style:Me},Xe),it{var it,Xe;const{getPrefixCls:ft,space:Me,direction:Ee}=v.useContext(R.E_),{size:ze=(Me==null?void 0:Me.size)||"small",align:Pe,className:Re,rootClassName:je,children:Ce,direction:rt="horizontal",prefixCls:Ne,split:Xt,style:Ft,wrap:lt=!1,classNames:Bt,styles:At}=xe,an=he(xe,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Tt,Nn]=Array.isArray(ze)?ze:[ze,ze],mn=N(Nn),zn=N(Tt),Kr=V(Nn),Ui=V(Tt),go=(0,x.Z)(Ce,{keepEmpty:!0}),gi=Pe===void 0&&rt==="horizontal"?"center":Pe,Mr=ft("space",Ne),[To,ms]=(0,K.Z)(Mr),De=C()(Mr,Me==null?void 0:Me.className,ms,`${Mr}-${rt}`,{[`${Mr}-rtl`]:Ee==="rtl",[`${Mr}-align-${gi}`]:gi,[`${Mr}-gap-row-${Nn}`]:mn,[`${Mr}-gap-col-${Tt}`]:zn},Re,je),Oo=C()(`${Mr}-item`,(it=Bt==null?void 0:Bt.item)!==null&&it!==void 0?it:(Xe=Me==null?void 0:Me.classNames)===null||Xe===void 0?void 0:Xe.item);let $i=0;const co=go.map((Tn,nt)=>{var Ct,Ht;Tn!=null&&($i=nt);const hn=Tn&&Tn.key||`${Oo}-${nt}`;return v.createElement(F,{className:Oo,key:hn,index:nt,split:Xt,style:(Ct=At==null?void 0:At.item)!==null&&Ct!==void 0?Ct:(Ht=Me==null?void 0:Me.styles)===null||Ht===void 0?void 0:Ht.item},Tn)}),Vr=v.useMemo(()=>({latestIndex:$i}),[$i]);if(go.length===0)return null;const Ro={};return lt&&(Ro.flexWrap="wrap"),!zn&&Ui&&(Ro.columnGap=Tt),!mn&&Kr&&(Ro.rowGap=Nn),To(v.createElement("div",Object.assign({ref:Se,className:De,style:Object.assign(Object.assign(Object.assign({},Ro),Me==null?void 0:Me.style),Ft)},an),v.createElement(p,{value:Vr},co)))});be.Compact=k.ZP;var Ae=be},79754:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(93154),M=_(43040),x=k=>{const{componentCls:S}=k;return{[S]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const N=k=>{const{componentCls:S}=k;return{[S]:{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"}},[`${S}-item:empty`]:{display:"none"}}}},V=k=>{const{componentCls:S}=k;return{[S]:{"&-gap-row-small":{rowGap:k.spaceGapSmallSize},"&-gap-row-middle":{rowGap:k.spaceGapMiddleSize},"&-gap-row-large":{rowGap:k.spaceGapLargeSize},"&-gap-col-small":{columnGap:k.spaceGapSmallSize},"&-gap-col-middle":{columnGap:k.spaceGapMiddleSize},"&-gap-col-large":{columnGap:k.spaceGapLargeSize}}}};var R=(0,v.Z)("Space",k=>{const S=(0,M.TS)(k,{spaceGapSmallSize:k.paddingXS,spaceGapMiddleSize:k.padding,spaceGapLargeSize:k.paddingLG});return[N(S),V(S),x(S)]},()=>({}),{resetStyle:!1})},27324:function(mt,q,_){"use strict";_.d(q,{Z:function(){return ze}});var v=_(77617),M=_(12124),C=_.n(M),x=_(39029);function N(Pe,Re,je){var Ce=je||{},rt=Ce.noTrailing,Ne=rt===void 0?!1:rt,Xt=Ce.noLeading,Ft=Xt===void 0?!1:Xt,lt=Ce.debounceMode,Bt=lt===void 0?void 0:lt,At,an=!1,Tt=0;function Nn(){At&&clearTimeout(At)}function mn(Kr){var Ui=Kr||{},go=Ui.upcomingOnly,gi=go===void 0?!1:go;Nn(),an=!gi}function zn(){for(var Kr=arguments.length,Ui=new Array(Kr),go=0;goPe?Ft?(Tt=Date.now(),Ne||(At=setTimeout(Bt?ms:To,Pe))):To():Ne!==!0&&(At=setTimeout(Bt?ms:To,Bt===void 0?Pe-Mr:Pe))}return zn.cancel=mn,zn}function V(Pe,Re,je){var Ce=je||{},rt=Ce.atBegin,Ne=rt===void 0?!1:rt;return N(Pe,Re,{debounceMode:Ne!==!1})}var R=_(37628),k=_(41203),S=_(84608),p=_(21348),T=_(93154),F=_(43040);const K=new S.E4("antSpinMove",{to:{opacity:1}}),he=new S.E4("antRotate",{to:{transform:"rotate(405deg)"}}),fe=Pe=>(Pe.dotSize-Pe.fontSize)/2+2,be=Pe=>({[`${Pe.componentCls}`]:Object.assign(Object.assign({},(0,p.Wf)(Pe)),{position:"absolute",display:"none",color:Pe.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${Pe.motionDurationSlow} ${Pe.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${Pe.componentCls}-text`]:{fontSize:Pe.fontSize,paddingTop:fe(Pe)},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:Pe.colorBgMask,zIndex:Pe.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",pointerEvents:"none",opacity:0,visibility:"hidden",transition:`all ${Pe.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${Pe.componentCls}-dot ${Pe.componentCls}-dot-item`]:{backgroundColor:Pe.colorWhite},[`${Pe.componentCls}-text`]:{color:Pe.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${Pe.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:Pe.contentHeight,[`${Pe.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-Pe.dotSize/2},[`${Pe.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${Pe.colorBgContainer}`},[`&${Pe.componentCls}-show-text ${Pe.componentCls}-dot`]:{marginTop:-(Pe.dotSize/2)-10},"&-sm":{[`${Pe.componentCls}-dot`]:{margin:-Pe.dotSizeSM/2},[`${Pe.componentCls}-text`]:{paddingTop:(Pe.dotSizeSM-Pe.fontSize)/2+2},[`&${Pe.componentCls}-show-text ${Pe.componentCls}-dot`]:{marginTop:-(Pe.dotSizeSM/2)-10}},"&-lg":{[`${Pe.componentCls}-dot`]:{margin:-(Pe.dotSizeLG/2)},[`${Pe.componentCls}-text`]:{paddingTop:(Pe.dotSizeLG-Pe.fontSize)/2+2},[`&${Pe.componentCls}-show-text ${Pe.componentCls}-dot`]:{marginTop:-(Pe.dotSizeLG/2)-10}}},[`${Pe.componentCls}-container`]:{position:"relative",transition:`opacity ${Pe.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:Pe.colorBgContainer,opacity:0,transition:`all ${Pe.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${Pe.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:Pe.spinDotDefault},[`${Pe.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:Pe.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(Pe.dotSize-Pe.marginXXS/2)/2,height:(Pe.dotSize-Pe.marginXXS/2)/2,backgroundColor:Pe.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:K,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:he,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${Pe.componentCls}-dot`]:{fontSize:Pe.dotSizeSM,i:{width:(Pe.dotSizeSM-Pe.marginXXS/2)/2,height:(Pe.dotSizeSM-Pe.marginXXS/2)/2}},[`&-lg ${Pe.componentCls}-dot`]:{fontSize:Pe.dotSizeLG,i:{width:(Pe.dotSizeLG-Pe.marginXXS)/2,height:(Pe.dotSizeLG-Pe.marginXXS)/2}},[`&${Pe.componentCls}-show-text ${Pe.componentCls}-text`]:{display:"block"}})});var Ae=(0,T.Z)("Spin",Pe=>{const Re=(0,F.TS)(Pe,{spinDotDefault:Pe.colorTextDescription});return[be(Re)]},Pe=>({contentHeight:400,dotSize:Pe.controlHeightLG/2,dotSizeSM:Pe.controlHeightLG*.35,dotSizeLG:Pe.controlHeight})),xe=function(Pe,Re){var je={};for(var Ce in Pe)Object.prototype.hasOwnProperty.call(Pe,Ce)&&Re.indexOf(Ce)<0&&(je[Ce]=Pe[Ce]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Ce=Object.getOwnPropertySymbols(Pe);rt{const{spinPrefixCls:Re,spinning:je=!0,delay:Ce=0,className:rt,rootClassName:Ne,size:Xt="default",tip:Ft,wrapperClassName:lt,style:Bt,children:At,hashId:an,fullscreen:Tt}=Pe,Nn=xe(Pe,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId","fullscreen"]),[mn,zn]=v.useState(()=>je&&!ft(je,Ce));v.useEffect(()=>{if(je){const Oo=V(Ce,()=>{zn(!0)});return Oo(),()=>{var $i;($i=Oo==null?void 0:Oo.cancel)===null||$i===void 0||$i.call(Oo)}}zn(!1)},[Ce,je]);const Kr=v.useMemo(()=>typeof At!="undefined"&&!Tt,[At,Tt]),{direction:Ui,spin:go}=v.useContext(k.E_),gi=C()(Re,go==null?void 0:go.className,{[`${Re}-sm`]:Xt==="small",[`${Re}-lg`]:Xt==="large",[`${Re}-spinning`]:mn,[`${Re}-show-text`]:!!Ft,[`${Re}-fullscreen`]:Tt,[`${Re}-fullscreen-show`]:Tt&&mn,[`${Re}-rtl`]:Ui==="rtl"},rt,Ne,an),Mr=C()(`${Re}-container`,{[`${Re}-blur`]:mn}),To=(0,x.Z)(Nn,["indicator","prefixCls"]),ms=Object.assign(Object.assign({},go==null?void 0:go.style),Bt),De=v.createElement("div",Object.assign({},To,{style:ms,className:gi,"aria-live":"polite","aria-busy":mn}),Xe(Re,Pe),Ft&&(Kr||Tt)?v.createElement("div",{className:`${Re}-text`},Ft):null);return Kr?v.createElement("div",Object.assign({},To,{className:C()(`${Re}-nested-loading`,lt,an)}),mn&&v.createElement("div",{key:"loading"},De),v.createElement("div",{className:Mr,key:"container"},At)):De},Ee=Pe=>{const{prefixCls:Re}=Pe,{getPrefixCls:je}=v.useContext(k.E_),Ce=je("spin",Re),[rt,Ne]=Ae(Ce),Xt=Object.assign(Object.assign({},Pe),{spinPrefixCls:Ce,hashId:Ne});return rt(v.createElement(Me,Object.assign({},Xt)))};Ee.setDefaultIndicator=Pe=>{it=Pe};var ze=Ee},82248:function(mt,q,_){"use strict";_.d(q,{c:function(){return C}});function v(x,N,V){const{focusElCls:R,focus:k,borderElCls:S}=V,p=S?"> *":"",T=["hover",k?"focus":null,"active"].filter(Boolean).map(F=>`&:${F} ${p}`).join(",");return{[`&-item:not(${N}-last-item)`]:{marginInlineEnd:-x.lineWidth},"&-item":Object.assign(Object.assign({[T]:{zIndex:2}},R?{[`&${R}`]:{zIndex:2}}:{}),{[`&[disabled] ${p}`]:{zIndex:0}})}}function M(x,N,V){const{borderElCls:R}=V,k=R?`> ${R}`:"";return{[`&-item:not(${N}-first-item):not(${N}-last-item) ${k}`]:{borderRadius:0},[`&-item:not(${N}-last-item)${N}-first-item`]:{[`& ${k}, &${x}-sm ${k}, &${x}-lg ${k}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${N}-first-item)${N}-last-item`]:{[`& ${k}, &${x}-sm ${k}, &${x}-lg ${k}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function C(x){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:V}=x,R=`${V}-compact`;return{[R]:Object.assign(Object.assign({},v(x,R,N)),M(V,R,N))}}},21348:function(mt,q,_){"use strict";_.d(q,{Lx:function(){return N},Qy:function(){return k},Ro:function(){return C},Wf:function(){return M},dF:function(){return x},du:function(){return V},oN:function(){return R},vS:function(){return v}});const v={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},M=function(S){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:S.colorText,fontSize:S.fontSize,lineHeight:S.lineHeight,listStyle:"none",fontFamily:p?"inherit":S.fontFamily}},C=()=>({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"}}),x=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),N=S=>({a:{color:S.colorLink,textDecoration:S.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${S.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:S.colorLinkHover},"&:active":{color:S.colorLinkActive},[`&:active, + &:hover`]:{textDecoration:S.linkHoverDecoration,outline:0},"&:focus":{textDecoration:S.linkFocusDecoration,outline:0},"&[disabled]":{color:S.colorTextDisabled,cursor:"not-allowed"}}}),V=(S,p)=>{const{fontFamily:T,fontSize:F}=S,K=`[class^="${p}"], [class*=" ${p}"]`;return{[K]:{fontFamily:T,fontSize:F,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[K]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},R=S=>({outline:`${S.lineWidthFocus}px solid ${S.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),k=S=>({"&:focus-visible":Object.assign({},R(S))})},63797:function(mt,q){"use strict";const _=v=>({[v.componentCls]:{[`${v.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${v.motionDurationMid} ${v.motionEaseInOut}, + opacity ${v.motionDurationMid} ${v.motionEaseInOut} !important`}},[`${v.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${v.motionDurationMid} ${v.motionEaseInOut}, + opacity ${v.motionDurationMid} ${v.motionEaseInOut} !important`}}});q.Z=_},23626:function(mt,q,_){"use strict";_.d(q,{J$:function(){return N}});var v=_(84608),M=_(95585);const C=new v.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),x=new v.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),N=function(V){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:k}=V,S=`${k}-fade`,p=R?"&":"";return[(0,M.R)(S,C,x,V.motionDurationMid,R),{[` + ${p}${S}-enter, + ${p}${S}-appear + `]:{opacity:0,animationTimingFunction:"linear"},[`${p}${S}-leave`]:{animationTimingFunction:"linear"}}]}},95585:function(mt,q,_){"use strict";_.d(q,{R:function(){return C}});const v=x=>({animationDuration:x,animationFillMode:"both"}),M=x=>({animationDuration:x,animationFillMode:"both"}),C=function(x,N,V,R){const S=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${S}${x}-enter, + ${S}${x}-appear + `]:Object.assign(Object.assign({},v(R)),{animationPlayState:"paused"}),[`${S}${x}-leave`]:Object.assign(Object.assign({},M(R)),{animationPlayState:"paused"}),[` + ${S}${x}-enter${x}-enter-active, + ${S}${x}-appear${x}-appear-active + `]:{animationName:N,animationPlayState:"running"},[`${S}${x}-leave${x}-leave-active`]:{animationName:V,animationPlayState:"running",pointerEvents:"none"}}}},58893:function(mt,q,_){"use strict";_.d(q,{Fm:function(){return F}});var v=_(84608),M=_(95585);const C=new v.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),x=new v.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),N=new v.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),V=new v.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),R=new v.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),k=new v.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),S=new v.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),p=new v.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),T={"move-up":{inKeyframes:S,outKeyframes:p},"move-down":{inKeyframes:C,outKeyframes:x},"move-left":{inKeyframes:N,outKeyframes:V},"move-right":{inKeyframes:R,outKeyframes:k}},F=(K,he)=>{const{antCls:fe}=K,be=`${fe}-${he}`,{inKeyframes:Ae,outKeyframes:xe}=T[he];return[(0,M.R)(be,Ae,xe,K.motionDurationMid),{[` + ${be}-enter, + ${be}-appear + `]:{opacity:0,animationTimingFunction:K.motionEaseOutCirc},[`${be}-leave`]:{animationTimingFunction:K.motionEaseInOutCirc}}]}},81437:function(mt,q,_){"use strict";_.d(q,{Qt:function(){return N},Uw:function(){return x},fJ:function(){return C},ly:function(){return V},oN:function(){return F}});var v=_(84608),M=_(95585);const C=new v.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),x=new v.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),N=new v.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),V=new v.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),R=new v.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),k=new v.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),S=new v.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),p=new v.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),T={"slide-up":{inKeyframes:C,outKeyframes:x},"slide-down":{inKeyframes:N,outKeyframes:V},"slide-left":{inKeyframes:R,outKeyframes:k},"slide-right":{inKeyframes:S,outKeyframes:p}},F=(K,he)=>{const{antCls:fe}=K,be=`${fe}-${he}`,{inKeyframes:Ae,outKeyframes:xe}=T[he];return[(0,M.R)(be,Ae,xe,K.motionDurationMid),{[` + ${be}-enter, + ${be}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:K.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${be}-leave`]:{animationTimingFunction:K.motionEaseInQuint}}]}},53679:function(mt,q,_){"use strict";_.d(q,{_y:function(){return be},kr:function(){return C}});var v=_(84608),M=_(95585);const C=new v.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),x=new v.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),N=new v.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),V=new v.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),R=new v.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),k=new v.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),S=new v.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),p=new v.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),T=new v.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),F=new v.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),K=new v.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),he=new v.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),fe={zoom:{inKeyframes:C,outKeyframes:x},"zoom-big":{inKeyframes:N,outKeyframes:V},"zoom-big-fast":{inKeyframes:N,outKeyframes:V},"zoom-left":{inKeyframes:S,outKeyframes:p},"zoom-right":{inKeyframes:T,outKeyframes:F},"zoom-up":{inKeyframes:R,outKeyframes:k},"zoom-down":{inKeyframes:K,outKeyframes:he}},be=(Ae,xe)=>{const{antCls:Se}=Ae,it=`${Se}-${xe}`,{inKeyframes:Xe,outKeyframes:ft}=fe[xe];return[(0,M.R)(it,Xe,ft,xe==="zoom-big-fast"?Ae.motionDurationFast:Ae.motionDurationMid),{[` + ${it}-enter, + ${it}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:Ae.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${it}-leave`]:{animationTimingFunction:Ae.motionEaseInOutCirc}}]}},35247:function(mt,q,_){"use strict";_.d(q,{N:function(){return v}});const v=M=>({color:M.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${M.motionDurationSlow}`,"&:focus, &:hover":{color:M.colorLinkHover},"&:active":{color:M.colorLinkActive}})},95661:function(mt,q,_){"use strict";_.d(q,{qN:function(){return M},ZP:function(){return N},fS:function(){return C}});const v=(V,R,k,S,p)=>{const T=V/2,F=0,K=T,he=k*1/Math.sqrt(2),fe=T-k*(1-1/Math.sqrt(2)),be=T-R*(1/Math.sqrt(2)),Ae=k*(Math.sqrt(2)-1)+R*(1/Math.sqrt(2)),xe=2*T-be,Se=Ae,it=2*T-he,Xe=fe,ft=2*T-F,Me=K,Ee=T*Math.sqrt(2)+k*(Math.sqrt(2)-2),ze=k*(Math.sqrt(2)-1);return{pointerEvents:"none",width:V,height:V,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:V,height:V/2,background:S,clipPath:{_multi_value_:!0,value:[`polygon(${ze}px 100%, 50% ${ze}px, ${2*T-ze}px 100%, ${ze}px 100%)`,`path('M ${F} ${K} A ${k} ${k} 0 0 0 ${he} ${fe} L ${be} ${Ae} A ${R} ${R} 0 0 1 ${xe} ${Se} L ${it} ${Xe} A ${k} ${k} 0 0 0 ${ft} ${Me} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:Ee,height:Ee,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${R}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:p,zIndex:0,background:"transparent"}}},M=8;function C(V){const R=M,{contentRadius:k,limitVerticalRadius:S}=V,p=k>12?k+2:12;return{dropdownArrowOffset:p,dropdownArrowOffsetVertical:S?R:p}}function x(V,R){return V?R:{}}function N(V,R){const{componentCls:k,sizePopupArrow:S,borderRadiusXS:p,borderRadiusOuter:T,boxShadowPopoverArrow:F}=V,{colorBg:K,contentRadius:he=V.borderRadiusLG,limitVerticalRadius:fe,arrowDistance:be=0,arrowPlacement:Ae={left:!0,right:!0,top:!0,bottom:!0}}=R,{dropdownArrowOffsetVertical:xe,dropdownArrowOffset:Se}=C({contentRadius:he,limitVerticalRadius:fe});return{[k]:Object.assign(Object.assign(Object.assign(Object.assign({[`${k}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},v(S,p,T,K,F)),{"&:before":{background:K}})]},x(!!Ae.top,{[[`&-placement-top ${k}-arrow`,`&-placement-topLeft ${k}-arrow`,`&-placement-topRight ${k}-arrow`].join(",")]:{bottom:be,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${k}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${k}-arrow`]:{left:{_skip_check_:!0,value:Se}},[`&-placement-topRight ${k}-arrow`]:{right:{_skip_check_:!0,value:Se}}})),x(!!Ae.bottom,{[[`&-placement-bottom ${k}-arrow`,`&-placement-bottomLeft ${k}-arrow`,`&-placement-bottomRight ${k}-arrow`].join(",")]:{top:be,transform:"translateY(-100%)"},[`&-placement-bottom ${k}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${k}-arrow`]:{left:{_skip_check_:!0,value:Se}},[`&-placement-bottomRight ${k}-arrow`]:{right:{_skip_check_:!0,value:Se}}})),x(!!Ae.left,{[[`&-placement-left ${k}-arrow`,`&-placement-leftTop ${k}-arrow`,`&-placement-leftBottom ${k}-arrow`].join(",")]:{right:{_skip_check_:!0,value:be},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${k}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${k}-arrow`]:{top:xe},[`&-placement-leftBottom ${k}-arrow`]:{bottom:xe}})),x(!!Ae.right,{[[`&-placement-right ${k}-arrow`,`&-placement-rightTop ${k}-arrow`,`&-placement-rightBottom ${k}-arrow`].join(",")]:{left:{_skip_check_:!0,value:be},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${k}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${k}-arrow`]:{top:xe},[`&-placement-rightBottom ${k}-arrow`]:{bottom:xe}}))}}},24272:function(mt,q,_){"use strict";_.d(q,{Z:function(){return rt}});var v=_(77617),M=_(38521),C=_(12124),x=_.n(C),N=_(26508),V=_(80268),R=_(39718),k=_(52528),S=_(41760),p=_(38251),T=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],F=v.forwardRef(function(Ne,Xt){var Ft,lt=Ne.prefixCls,Bt=lt===void 0?"rc-switch":lt,At=Ne.className,an=Ne.checked,Tt=Ne.defaultChecked,Nn=Ne.disabled,mn=Ne.loadingIcon,zn=Ne.checkedChildren,Kr=Ne.unCheckedChildren,Ui=Ne.onClick,go=Ne.onChange,gi=Ne.onKeyDown,Mr=(0,k.Z)(Ne,T),To=(0,S.Z)(!1,{value:an,defaultValue:Tt}),ms=(0,R.Z)(To,2),De=ms[0],Oo=ms[1];function $i(Tn,nt){var Ct=De;return Nn||(Ct=Tn,Oo(Ct),go==null||go(Ct,nt)),Ct}function co(Tn){Tn.which===p.Z.LEFT?$i(!1,Tn):Tn.which===p.Z.RIGHT&&$i(!0,Tn),gi==null||gi(Tn)}function Vr(Tn){var nt=$i(!De,Tn);Ui==null||Ui(nt,Tn)}var Ro=x()(Bt,At,(Ft={},(0,V.Z)(Ft,"".concat(Bt,"-checked"),De),(0,V.Z)(Ft,"".concat(Bt,"-disabled"),Nn),Ft));return v.createElement("button",(0,N.Z)({},Mr,{type:"button",role:"switch","aria-checked":De,disabled:Nn,className:Ro,ref:Xt,onKeyDown:co,onClick:Vr}),mn,v.createElement("span",{className:"".concat(Bt,"-inner")},v.createElement("span",{className:"".concat(Bt,"-inner-checked")},zn),v.createElement("span",{className:"".concat(Bt,"-inner-unchecked")},Kr)))});F.displayName="Switch";var K=F,he=_(90836),fe=_(41203),be=_(57132),Ae=_(29212),xe=_(64993),Se=_(21348),it=_(93154),Xe=_(43040);const ft=Ne=>{const{componentCls:Xt,trackHeightSM:Ft,trackPadding:lt,trackMinWidthSM:Bt,innerMinMarginSM:At,innerMaxMarginSM:an,handleSizeSM:Tt}=Ne,Nn=`${Xt}-inner`;return{[Xt]:{[`&${Xt}-small`]:{minWidth:Bt,height:Ft,lineHeight:`${Ft}px`,[`${Xt}-inner`]:{paddingInlineStart:an,paddingInlineEnd:At,[`${Nn}-checked`]:{marginInlineStart:`calc(-100% + ${Tt+lt*2}px - ${an*2}px)`,marginInlineEnd:`calc(100% - ${Tt+lt*2}px + ${an*2}px)`},[`${Nn}-unchecked`]:{marginTop:-Ft,marginInlineStart:0,marginInlineEnd:0}},[`${Xt}-handle`]:{width:Tt,height:Tt},[`${Xt}-loading-icon`]:{top:(Tt-Ne.switchLoadingIconSize)/2,fontSize:Ne.switchLoadingIconSize},[`&${Xt}-checked`]:{[`${Xt}-inner`]:{paddingInlineStart:At,paddingInlineEnd:an,[`${Nn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Nn}-unchecked`]:{marginInlineStart:`calc(100% - ${Tt+lt*2}px + ${an*2}px)`,marginInlineEnd:`calc(-100% + ${Tt+lt*2}px - ${an*2}px)`}},[`${Xt}-handle`]:{insetInlineStart:`calc(100% - ${Tt+lt}px)`}},[`&:not(${Xt}-disabled):active`]:{[`&:not(${Xt}-checked) ${Nn}`]:{[`${Nn}-unchecked`]:{marginInlineStart:Ne.marginXXS/2,marginInlineEnd:-Ne.marginXXS/2}},[`&${Xt}-checked ${Nn}`]:{[`${Nn}-checked`]:{marginInlineStart:-Ne.marginXXS/2,marginInlineEnd:Ne.marginXXS/2}}}}}}},Me=Ne=>{const{componentCls:Xt,handleSize:Ft}=Ne;return{[Xt]:{[`${Xt}-loading-icon${Ne.iconCls}`]:{position:"relative",top:(Ft-Ne.fontSize)/2,color:Ne.switchLoadingIconColor,verticalAlign:"top"},[`&${Xt}-checked ${Xt}-loading-icon`]:{color:Ne.switchColor}}}},Ee=Ne=>{const{componentCls:Xt,motion:Ft,trackPadding:lt,handleBg:Bt,handleShadow:At,handleSize:an}=Ne,Tt=`${Xt}-handle`;return{[Xt]:{[Tt]:{position:"absolute",top:lt,insetInlineStart:lt,width:an,height:an,transition:`all ${Ne.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Bt,borderRadius:an/2,boxShadow:At,transition:`all ${Ne.switchDuration} ease-in-out`,content:'""'}},[`&${Xt}-checked ${Tt}`]:{insetInlineStart:`calc(100% - ${an+lt}px)`},[`&:not(${Xt}-disabled):active`]:Ft?{[`${Tt}::before`]:{insetInlineEnd:Ne.switchHandleActiveInset,insetInlineStart:0},[`&${Xt}-checked ${Tt}::before`]:{insetInlineEnd:0,insetInlineStart:Ne.switchHandleActiveInset}}:{}}}},ze=Ne=>{const{componentCls:Xt,trackHeight:Ft,trackPadding:lt,innerMinMargin:Bt,innerMaxMargin:At,handleSize:an}=Ne,Tt=`${Xt}-inner`;return{[Xt]:{[Tt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:At,paddingInlineEnd:Bt,transition:`padding-inline-start ${Ne.switchDuration} ease-in-out, padding-inline-end ${Ne.switchDuration} ease-in-out`,[`${Tt}-checked, ${Tt}-unchecked`]:{display:"block",color:Ne.colorTextLightSolid,fontSize:Ne.fontSizeSM,transition:`margin-inline-start ${Ne.switchDuration} ease-in-out, margin-inline-end ${Ne.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Tt}-checked`]:{marginInlineStart:`calc(-100% + ${an+lt*2}px - ${At*2}px)`,marginInlineEnd:`calc(100% - ${an+lt*2}px + ${At*2}px)`},[`${Tt}-unchecked`]:{marginTop:-Ft,marginInlineStart:0,marginInlineEnd:0}},[`&${Xt}-checked ${Tt}`]:{paddingInlineStart:Bt,paddingInlineEnd:At,[`${Tt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Tt}-unchecked`]:{marginInlineStart:`calc(100% - ${an+lt*2}px + ${At*2}px)`,marginInlineEnd:`calc(-100% + ${an+lt*2}px - ${At*2}px)`}},[`&:not(${Xt}-disabled):active`]:{[`&:not(${Xt}-checked) ${Tt}`]:{[`${Tt}-unchecked`]:{marginInlineStart:lt*2,marginInlineEnd:-lt*2}},[`&${Xt}-checked ${Tt}`]:{[`${Tt}-checked`]:{marginInlineStart:-lt*2,marginInlineEnd:lt*2}}}}}},Pe=Ne=>{const{componentCls:Xt,trackHeight:Ft,trackMinWidth:lt}=Ne;return{[Xt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Se.Wf)(Ne)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:lt,height:Ft,lineHeight:`${Ft}px`,verticalAlign:"middle",background:Ne.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ne.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Xt}-disabled)`]:{background:Ne.colorTextTertiary}}),(0,Se.Qy)(Ne)),{[`&${Xt}-checked`]:{background:Ne.switchColor,[`&:hover:not(${Xt}-disabled)`]:{background:Ne.colorPrimaryHover}},[`&${Xt}-loading, &${Xt}-disabled`]:{cursor:"not-allowed",opacity:Ne.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Xt}-rtl`]:{direction:"rtl"}})}};var Re=(0,it.Z)("Switch",Ne=>{const Xt=(0,Xe.TS)(Ne,{switchDuration:Ne.motionDurationMid,switchColor:Ne.colorPrimary,switchDisabledOpacity:Ne.opacityLoading,switchLoadingIconSize:Ne.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Ne.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Pe(Xt),ze(Xt),Ee(Xt),Me(Xt),ft(Xt)]},Ne=>{const{fontSize:Xt,lineHeight:Ft,controlHeight:lt,colorWhite:Bt}=Ne,At=Xt*Ft,an=lt/2,Tt=2,Nn=At-Tt*2,mn=an-Tt*2;return{trackHeight:At,trackHeightSM:an,trackMinWidth:Nn*2+Tt*4,trackMinWidthSM:mn*2+Tt*2,trackPadding:Tt,handleBg:Bt,handleSize:Nn,handleSizeSM:mn,handleShadow:`0 2px 4px 0 ${new xe.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Nn/2,innerMaxMargin:Nn+Tt+Tt*2,innerMinMarginSM:mn/2,innerMaxMarginSM:mn+Tt+Tt*2}}),je=function(Ne,Xt){var Ft={};for(var lt in Ne)Object.prototype.hasOwnProperty.call(Ne,lt)&&Xt.indexOf(lt)<0&&(Ft[lt]=Ne[lt]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,lt=Object.getOwnPropertySymbols(Ne);Bt{const{prefixCls:Ft,size:lt,disabled:Bt,loading:At,className:an,rootClassName:Tt,style:Nn}=Ne,mn=je(Ne,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:zn,direction:Kr,switch:Ui}=v.useContext(fe.E_),go=v.useContext(be.Z),gi=(Bt!=null?Bt:go)||At,Mr=zn("switch",Ft),To=v.createElement("div",{className:`${Mr}-handle`},At&&v.createElement(M.Z,{className:`${Mr}-loading-icon`})),[ms,De]=Re(Mr),Oo=(0,Ae.Z)(lt),$i=x()(Ui==null?void 0:Ui.className,{[`${Mr}-small`]:Oo==="small",[`${Mr}-loading`]:At,[`${Mr}-rtl`]:Kr==="rtl"},an,Tt,De),co=Object.assign(Object.assign({},Ui==null?void 0:Ui.style),Nn);return ms(v.createElement(he.Z,{component:"Switch"},v.createElement(K,Object.assign({},mn,{prefixCls:Mr,className:$i,style:co,disabled:gi,ref:Xt,loadingIcon:To}))))});Ce.__ANT_SWITCH=!0;var rt=Ce},69357:function(mt,q,_){"use strict";_.d(q,{Z:function(){return vm}});var v=_(77617),M={},C="rc-table-internal-hook",x=_(39718),N=_(61759),V=_(62305),R=_(68554),k=_(79161);function S(on){var Q=v.createContext(void 0),W=function(ke){var yt=ke.value,We=ke.children,Fe=v.useRef(yt);Fe.current=yt;var ct=v.useState(function(){return{getValue:function(){return Fe.current},listeners:new Set}}),It=(0,x.Z)(ct,1),kt=It[0];return(0,V.Z)(function(){(0,k.unstable_batchedUpdates)(function(){kt.listeners.forEach(function(Ot){Ot(yt)})})},[yt]),v.createElement(Q.Provider,{value:kt},We)};return{Context:Q,Provider:W,defaultValue:on}}function p(on,Q){var W=(0,N.Z)(typeof Q=="function"?Q:function(Ot){if(Q===void 0)return Ot;if(!Array.isArray(Q))return Ot[Q];var Kt={};return Q.forEach(function(en){Kt[en]=Ot[en]}),Kt}),de=v.useContext(on==null?void 0:on.Context),ke=de||{},yt=ke.listeners,We=ke.getValue,Fe=v.useRef();Fe.current=W(de?We():on==null?void 0:on.defaultValue);var ct=v.useState({}),It=(0,x.Z)(ct,2),kt=It[1];return(0,V.Z)(function(){if(!de)return;function Ot(Kt){var en=W(Kt);(0,R.Z)(Fe.current,en,!0)||kt({})}return yt.add(Ot),function(){yt.delete(Ot)}},[de]),Fe.current}var T=_(26508),F=_(9681);function K(){var on=v.createContext(null);function Q(){return v.useContext(on)}function W(ke,yt){var We=(0,F.Yr)(ke),Fe=function(It,kt){var Ot=We?{ref:kt}:{},Kt=v.useRef(0),en=v.useRef(It),pn=Q();return pn!==null?v.createElement(ke,(0,T.Z)({},It,Ot)):((!yt||yt(en.current,It))&&(Kt.current+=1),en.current=It,v.createElement(on.Provider,{value:Kt.current},v.createElement(ke,(0,T.Z)({},It,Ot))))};return We?v.forwardRef(Fe):Fe}function de(ke,yt){var We=(0,F.Yr)(ke),Fe=function(It,kt){var Ot=We?{ref:kt}:{};return Q(),v.createElement(ke,(0,T.Z)({},It,Ot))};return We?v.memo(v.forwardRef(Fe),yt):v.memo(Fe,yt)}return{makeImmutable:W,responseImmutable:de,useImmutableMark:Q}}var he=K(),fe=he.makeImmutable,be=he.responseImmutable,Ae=he.useImmutableMark,xe=K(),Se=xe.makeImmutable,it=xe.responseImmutable,Xe=xe.useImmutableMark,ft=S(),Me=ft;function Ee(on,Q){var W=v.useRef(0);W.current+=1;var de=v.useRef(on),ke=[];Object.keys(on||{}).map(function(We){var Fe;(on==null?void 0:on[We])!==((Fe=de.current)===null||Fe===void 0?void 0:Fe[We])&&ke.push(We)}),de.current=on;var yt=v.useRef([]);return ke.length&&(yt.current=ke),v.useDebugValue(W.current),v.useDebugValue(yt.current.join(", ")),Q&&console.log("".concat(Q,":"),W.current,yt.current),W.current}var ze=null,Pe=v.memo(function(){var on=Ee();return v.createElement("h1",null,"Render Times: ",on)});Pe.displayName="RenderBlock";var Re=_(91002),je=_(74710),Ce=_(80268),rt=_(12124),Ne=_.n(rt),Xt=_(79102),Ft=_(84249),lt=_(46644),Bt=v.createContext({renderWithProps:!1}),At=Bt,an="RC_TABLE_KEY";function Tt(on){return on==null?[]:Array.isArray(on)?on:[on]}function Nn(on){var Q=[],W={};return on.forEach(function(de){for(var ke=de||{},yt=ke.key,We=ke.dataIndex,Fe=yt||Tt(We).join("-")||an;W[Fe];)Fe="".concat(Fe,"_next");W[Fe]=!0,Q.push(Fe)}),Q}function mn(on){return on!=null}function zn(on){return on&&(0,Re.Z)(on)==="object"&&!Array.isArray(on)&&!v.isValidElement(on)}function Kr(on,Q,W,de,ke,yt){var We=v.useContext(At),Fe=Xe(),ct=(0,Xt.Z)(function(){if(mn(de))return[de];var It=Q==null||Q===""?[]:Array.isArray(Q)?Q:[Q],kt=(0,Ft.Z)(on,It),Ot=kt,Kt=void 0;if(ke){var en=ke(kt,on,W);zn(en)?(Ot=en.children,Kt=en.props,We.renderWithProps=!0):Ot=en}return[Ot,Kt]},[Fe,on,de,Q,ke,W],function(It,kt){if(yt){var Ot=(0,x.Z)(It,2),Kt=Ot[1],en=(0,x.Z)(kt,2),pn=en[1];return yt(pn,Kt)}return We.renderWithProps?!0:!(0,R.Z)(It,kt,!0)});return ct}function Ui(on,Q,W,de){var ke=on+Q-1;return on<=de&&ke>=W}function go(on,Q){return p(Me,function(W){var de=Ui(on,Q||1,W.hoverStartRow,W.hoverEndRow);return[de,W.onHover]})}var gi=function(Q){var W=Q.ellipsis,de=Q.rowType,ke=Q.children,yt,We=W===!0?{showTitle:!0}:W;return We&&(We.showTitle||de==="header")&&(typeof ke=="string"||typeof ke=="number"?yt=ke.toString():v.isValidElement(ke)&&typeof ke.props.children=="string"&&(yt=ke.props.children)),yt};function Mr(on){var Q,W,de,ke,yt,We,Fe,ct,It=on.component,kt=on.children,Ot=on.ellipsis,Kt=on.scope,en=on.prefixCls,pn=on.className,Wn=on.align,ar=on.record,Cr=on.render,mr=on.dataIndex,Hn=on.renderIndex,gr=on.shouldCellUpdate,Tr=on.index,wi=on.rowType,zi=on.colSpan,ei=on.rowSpan,li=on.fixLeft,ci=on.fixRight,ji=on.firstFixLeft,hi=on.lastFixLeft,bo=on.firstFixRight,br=on.lastFixRight,mi=on.appendNode,Er=on.additionalProps,Jr=Er===void 0?{}:Er,Gn=on.isSticky,Or="".concat(en,"-cell"),Rr=p(Me,["supportSticky","allColumnsFixedLeft"]),vi=Rr.supportSticky,Li=Rr.allColumnsFixedLeft,Ki=Kr(ar,mr,Hn,kt,Cr,gr),_o=(0,x.Z)(Ki,2),xs=_o[0],ts=_o[1],vs={},_a=typeof li=="number"&&vi,Bo=typeof ci=="number"&&vi;_a&&(vs.position="sticky",vs.left=li),Bo&&(vs.position="sticky",vs.right=ci);var Ja=(Q=(W=(de=ts==null?void 0:ts.colSpan)!==null&&de!==void 0?de:Jr.colSpan)!==null&&W!==void 0?W:zi)!==null&&Q!==void 0?Q:1,ns=(ke=(yt=(We=ts==null?void 0:ts.rowSpan)!==null&&We!==void 0?We:Jr.rowSpan)!==null&&yt!==void 0?yt:ei)!==null&&ke!==void 0?ke:1,no=go(Tr,ns),Qs=(0,x.Z)(no,2),ca=Qs[0],Ts=Qs[1],ro=function(vo){var os;ar&&Ts(Tr,Tr+ns-1),Jr==null||(os=Jr.onMouseEnter)===null||os===void 0||os.call(Jr,vo)},cs=function(vo){var os;ar&&Ts(-1,-1),Jr==null||(os=Jr.onMouseLeave)===null||os===void 0||os.call(Jr,vo)};if(Ja===0||ns===0)return null;var ia=(Fe=Jr.title)!==null&&Fe!==void 0?Fe:gi({rowType:wi,ellipsis:Ot,children:xs}),Yl=Ne()(Or,pn,(ct={},(0,Ce.Z)(ct,"".concat(Or,"-fix-left"),_a&&vi),(0,Ce.Z)(ct,"".concat(Or,"-fix-left-first"),ji&&vi),(0,Ce.Z)(ct,"".concat(Or,"-fix-left-last"),hi&&vi),(0,Ce.Z)(ct,"".concat(Or,"-fix-left-all"),hi&&Li&&vi),(0,Ce.Z)(ct,"".concat(Or,"-fix-right"),Bo&&vi),(0,Ce.Z)(ct,"".concat(Or,"-fix-right-first"),bo&&vi),(0,Ce.Z)(ct,"".concat(Or,"-fix-right-last"),br&&vi),(0,Ce.Z)(ct,"".concat(Or,"-ellipsis"),Ot),(0,Ce.Z)(ct,"".concat(Or,"-with-append"),mi),(0,Ce.Z)(ct,"".concat(Or,"-fix-sticky"),(_a||Bo)&&Gn&&vi),(0,Ce.Z)(ct,"".concat(Or,"-row-hover"),!ts&&ca),ct),Jr.className,ts==null?void 0:ts.className),Fn={};Wn&&(Fn.textAlign=Wn);var io=(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},vs),Jr.style),Fn),ts==null?void 0:ts.style),Qr=xs;return(0,Re.Z)(Qr)==="object"&&!Array.isArray(Qr)&&!v.isValidElement(Qr)&&(Qr=null),Ot&&(hi||bo)&&(Qr=v.createElement("span",{className:"".concat(Or,"-content")},Qr)),v.createElement(It,(0,T.Z)({},ts,Jr,{className:Yl,style:io,title:ia,scope:Kt,onMouseEnter:ro,onMouseLeave:cs,colSpan:Ja!==1?Ja:null,rowSpan:ns!==1?ns:null}),mi,Qr)}var To=v.memo(Mr);function ms(on,Q,W,de,ke,yt){var We=W[on]||{},Fe=W[Q]||{},ct,It;We.fixed==="left"?ct=de.left[ke==="rtl"?Q:on]:Fe.fixed==="right"&&(It=de.right[ke==="rtl"?on:Q]);var kt=!1,Ot=!1,Kt=!1,en=!1,pn=W[Q+1],Wn=W[on-1],ar=!(yt!=null&&yt.children);if(ke==="rtl"){if(ct!==void 0){var Cr=Wn&&Wn.fixed==="left";en=!Cr&&ar}else if(It!==void 0){var mr=pn&&pn.fixed==="right";Kt=!mr&&ar}}else if(ct!==void 0){var Hn=pn&&pn.fixed==="left";kt=!Hn&&ar}else if(It!==void 0){var gr=Wn&&Wn.fixed==="right";Ot=!gr&&ar}return{fixLeft:ct,fixRight:It,lastFixLeft:kt,firstFixRight:Ot,lastFixRight:Kt,firstFixLeft:en,isSticky:de.isSticky}}var De=v.createContext({}),Oo=De;function $i(on){var Q=on.className,W=on.index,de=on.children,ke=on.colSpan,yt=ke===void 0?1:ke,We=on.rowSpan,Fe=on.align,ct=p(Me,["prefixCls","direction"]),It=ct.prefixCls,kt=ct.direction,Ot=v.useContext(Oo),Kt=Ot.scrollColumnIndex,en=Ot.stickyOffsets,pn=Ot.flattenColumns,Wn=Ot.columns,ar=W+yt-1,Cr=ar+1===Kt?yt+1:yt,mr=ms(W,W+Cr-1,pn,en,kt,Wn==null?void 0:Wn[W]);return v.createElement(To,(0,T.Z)({className:Q,index:W,component:"td",prefixCls:It,record:null,dataIndex:null,align:Fe,colSpan:Cr,rowSpan:We,render:function(){return de}},mr))}var co=_(52528),Vr=["children"];function Ro(on){var Q=on.children,W=(0,co.Z)(on,Vr);return v.createElement("tr",W,Q)}function Tn(on){var Q=on.children;return Q}Tn.Row=Ro,Tn.Cell=$i;var nt=Tn;function Ct(on){var Q=on.children,W=on.stickyOffsets,de=on.flattenColumns,ke=on.columns,yt=p(Me,"prefixCls"),We=de.length-1,Fe=de[We],ct=v.useMemo(function(){return{stickyOffsets:W,flattenColumns:de,scrollColumnIndex:Fe!=null&&Fe.scrollbar?We:null,columns:ke}},[Fe,de,We,W,ke]);return v.createElement(Oo.Provider,{value:ct},v.createElement("tfoot",{className:"".concat(yt,"-summary")},Q))}var Ht=it(Ct),hn=nt,En=_(28647),rn=_(64630),Jt=_(8339),Mt=_(9001),Qt=_(5090);function Dn(on,Q,W,de,ke,yt,We){on.push({record:Q,indent:W,index:We});var Fe=yt(Q),ct=ke==null?void 0:ke.has(Fe);if(Q&&Array.isArray(Q[de])&&ct)for(var It=0;It1?ji-1:0),bo=1;bo=0;Fe-=1){var ct=Q[Fe],It=W&&W[Fe],kt=It&&It[$t];if(ct||kt||We){var Ot=kt||{},Kt=Ot.columnType,en=(0,co.Z)(Ot,wn);ke.unshift(v.createElement("col",(0,T.Z)({key:Fe,style:{width:ct}},en))),We=!0}}return v.createElement("colgroup",null,ke)}var _r=Zn,qn=_(42371),$n=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function jt(on,Q){return(0,v.useMemo)(function(){for(var W=[],de=0;de1?"colgroup":"col":null,ellipsis:ar.ellipsis,align:ar.align,component:ar.title?yt:We,prefixCls:kt,key:en[Wn]},Cr,{additionalProps:mr,rowType:"header"}))}))}Ur.displayName="HeaderRow";var Ao=Ur;function Yt(on){var Q=[];function W(We,Fe){var ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Q[ct]=Q[ct]||[];var It=Fe,kt=We.filter(Boolean).map(function(Ot){var Kt={key:Ot.key,className:Ot.className||"",children:Ot.title,column:Ot,colStart:It},en=1,pn=Ot.children;return pn&&pn.length>0&&(en=W(pn,It,ct+1).reduce(function(Wn,ar){return Wn+ar},0),Kt.hasSubColumns=!0),"colSpan"in Ot&&(en=Ot.colSpan),"rowSpan"in Ot&&(Kt.rowSpan=Ot.rowSpan),Kt.colSpan=en,Kt.colEnd=Kt.colStart+en-1,Q[ct].push(Kt),It+=en,en});return kt}W(on,0);for(var de=Q.length,ke=function(Fe){Q[Fe].forEach(function(ct){!("rowSpan"in ct)&&!ct.hasSubColumns&&(ct.rowSpan=de-Fe)})},yt=0;yt1&&arguments[1]!==void 0?arguments[1]:"";return typeof Q=="number"?Q:Q.endsWith("%")?on*parseFloat(Q)/100:null}function Ei(on,Q,W){return v.useMemo(function(){if(Q&&Q>0){var de=0,ke=0;on.forEach(function(Kt){var en=bi(Q,Kt.width);en?de+=en:ke+=1});var yt=Math.max(Q,W),We=Math.max(yt-de,ke),Fe=ke,ct=We/ke,It=0,kt=on.map(function(Kt){var en=(0,je.Z)({},Kt),pn=bi(Q,en.width);if(pn)en.width=pn;else{var Wn=Math.floor(ct);en.width=Fe===1?We:Wn,We-=Wn,Fe-=1}return It+=en.width,en});if(It1&&arguments[1]!==void 0?arguments[1]:"key";return on.filter(function(W){return W&&(0,Re.Z)(W)==="object"}).reduce(function(W,de,ke){var yt=de.fixed,We=yt===!0?"left":yt,Fe="".concat(Q,"-").concat(ke),ct=de.children;return ct&&ct.length>0?[].concat((0,qn.Z)(W),(0,qn.Z)(Ni(ct,Fe).map(function(It){return(0,je.Z)({fixed:We},It)}))):[].concat((0,qn.Z)(W),[(0,je.Z)((0,je.Z)({key:Fe},de),{},{fixed:We})])},[])}function kr(on){for(var Q=!0,W=0;W=0;yt-=1){var We=on[yt];if(ke&&We.fixed!=="right")ke=!1;else if(!ke&&We.fixed==="right"){warning(!1,"Index ".concat(yt+1," of `columns` missing `fixed='right'` prop."));break}}}function Xr(on){return on.map(function(Q){var W=Q.fixed,de=(0,co.Z)(Q,di),ke=W;return W==="left"?ke="right":W==="right"&&(ke="left"),(0,je.Z)({fixed:ke},de)})}function yo(on,Q){var W=on.prefixCls,de=on.columns,ke=on.children,yt=on.expandable,We=on.expandedKeys,Fe=on.columnTitle,ct=on.getRowKey,It=on.onTriggerExpand,kt=on.expandIcon,Ot=on.rowExpandable,Kt=on.expandIconColumnIndex,en=on.direction,pn=on.expandRowByClick,Wn=on.columnWidth,ar=on.fixed,Cr=on.scrollWidth,mr=on.clientWidth,Hn=v.useMemo(function(){return de||Wr(ke)},[de,ke]),gr=v.useMemo(function(){if(yt){var ji,hi=Hn.slice();if(!hi.includes(M)){var bo=Kt||0;bo>=0&&hi.splice(bo,0,M)}var br=hi.indexOf(M);hi=hi.filter(function(Gn,Or){return Gn!==M||Or===br});var mi=Hn[br],Er;(ar==="left"||ar)&&!Kt?Er="left":(ar==="right"||ar)&&Kt===Hn.length?Er="right":Er=mi?mi.fixed:null;var Jr=(ji={},(0,Ce.Z)(ji,$t,{className:"".concat(W,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Ce.Z)(ji,"title",Fe),(0,Ce.Z)(ji,"fixed",Er),(0,Ce.Z)(ji,"className","".concat(W,"-row-expand-icon-cell")),(0,Ce.Z)(ji,"width",Wn),(0,Ce.Z)(ji,"render",function(Or,Rr,vi){var Li=ct(Rr,vi),Ki=We.has(Li),_o=Ot?Ot(Rr):!0,xs=kt({prefixCls:W,expanded:Ki,expandable:_o,record:Rr,onExpand:It});return pn?v.createElement("span",{onClick:function(vs){return vs.stopPropagation()}},xs):xs}),ji);return hi.map(function(Gn){return Gn===M?Jr:Gn})}return Hn.filter(function(Gn){return Gn!==M})},[yt,Hn,ct,We,kt,en]),Tr=v.useMemo(function(){var ji=gr;return Q&&(ji=Q(ji)),ji.length||(ji=[{render:function(){return null}}]),ji},[Q,gr,en]),wi=v.useMemo(function(){return en==="rtl"?Xr(Ni(Tr)):Ni(Tr)},[Tr,en,Cr]),zi=Ei(wi,Cr,mr),ei=(0,x.Z)(zi,2),li=ei[0],ci=ei[1];return[Tr,li,ci]}var ls=yo;function Sr(on){var Q,W=on.prefixCls,de=on.record,ke=on.onExpand,yt=on.expanded,We=on.expandable,Fe="".concat(W,"-row-expand-icon");if(!We)return v.createElement("span",{className:Ne()(Fe,"".concat(W,"-row-spaced"))});var ct=function(kt){ke(de,kt),kt.stopPropagation()};return v.createElement("span",{className:Ne()(Fe,(Q={},(0,Ce.Z)(Q,"".concat(W,"-row-expanded"),yt),(0,Ce.Z)(Q,"".concat(W,"-row-collapsed"),!yt),Q)),onClick:ct})}function hs(on,Q,W){var de=[];function ke(yt){(yt||[]).forEach(function(We,Fe){de.push(Q(We,Fe)),ke(We[W])})}return ke(on),de}function ta(on,Q,W){var de=Gt(on),ke=de.expandIcon,yt=de.expandedRowKeys,We=de.defaultExpandedRowKeys,Fe=de.defaultExpandAllRows,ct=de.expandedRowRender,It=de.onExpand,kt=de.onExpandedRowsChange,Ot=de.childrenColumnName,Kt=ke||Sr,en=Ot||"children",pn=v.useMemo(function(){return ct?"row":on.expandable&&on.internalHooks===C&&on.expandable.__PARENT_RENDER_ICON__||Q.some(function(Tr){return Tr&&(0,Re.Z)(Tr)==="object"&&Tr[en]})?"nest":!1},[!!ct,Q]),Wn=v.useState(function(){return We||(Fe?hs(Q,W,en):[])}),ar=(0,x.Z)(Wn,2),Cr=ar[0],mr=ar[1],Hn=v.useMemo(function(){return new Set(yt||Cr||[])},[yt,Cr]),gr=v.useCallback(function(Tr){var wi=W(Tr,Q.indexOf(Tr)),zi,ei=Hn.has(wi);ei?(Hn.delete(wi),zi=(0,qn.Z)(Hn)):zi=[].concat((0,qn.Z)(Hn),[wi]),mr(zi),It&&It(!ei,Tr),kt&&kt(zi)},[W,Hn,Q,It,kt]);return[de,pn,Hn,Kt,en,gr]}function fi(on,Q,W,de){var ke=on.map(function(yt,We){return ms(We,We,on,Q,W,de==null?void 0:de[We])});return(0,Xt.Z)(function(){return ke},[ke],function(yt,We){return!(0,R.Z)(yt,We)})}function Po(on){var Q=(0,v.useRef)(on),W=(0,v.useState)({}),de=(0,x.Z)(W,2),ke=de[1],yt=(0,v.useRef)(null),We=(0,v.useRef)([]);function Fe(ct){We.current.push(ct);var It=Promise.resolve();yt.current=It,It.then(function(){if(yt.current===It){var kt=We.current,Ot=Q.current;We.current=[],kt.forEach(function(Kt){Q.current=Kt(Q.current)}),yt.current=null,Ot!==Q.current&&ke({})}})}return(0,v.useEffect)(function(){return function(){yt.current=null}},[]),[Q.current,Fe]}function mo(on){var Q=(0,v.useRef)(on||null),W=(0,v.useRef)();function de(){window.clearTimeout(W.current)}function ke(We){Q.current=We,de(),W.current=window.setTimeout(function(){Q.current=null,W.current=void 0},100)}function yt(){return Q.current}return(0,v.useEffect)(function(){return de},[]),[ke,yt]}function or(){var on=v.useState(-1),Q=(0,x.Z)(on,2),W=Q[0],de=Q[1],ke=v.useState(-1),yt=(0,x.Z)(ke,2),We=yt[0],Fe=yt[1],ct=v.useCallback(function(It,kt){de(It),Fe(kt)},[]);return[W,We,ct]}var Oi=_(53261),Wa=(0,Oi.Z)()?window:null;function Sa(on,Q){var W=(0,Re.Z)(on)==="object"?on:{},de=W.offsetHeader,ke=de===void 0?0:de,yt=W.offsetSummary,We=yt===void 0?0:yt,Fe=W.offsetScroll,ct=Fe===void 0?0:Fe,It=W.getContainer,kt=It===void 0?function(){return Wa}:It,Ot=kt()||Wa;return v.useMemo(function(){var Kt=!!on;return{isSticky:Kt,stickyClassName:Kt?"".concat(Q,"-sticky-holder"):"",offsetHeader:ke,offsetSummary:We,offsetScroll:ct,container:Ot}},[ct,ke,We,Q,Ot])}function xa(on,Q,W){var de=(0,v.useMemo)(function(){for(var ke=[],yt=[],We=0,Fe=0,ct=0;ct=Ot&&(Jr=Ot-Kt),We({scrollLeft:Jr/Ot*(kt+2)}),mr.current.x=bo.pageX},ci=function(){if(yt.current){var bo=ur(yt.current).top,br=bo+yt.current.offsetHeight,mi=ct===window?document.documentElement.scrollTop+window.innerHeight:ur(ct).top+ct.clientHeight;br-(0,Mt.Z)()<=mi||bo>=mi-Fe?Cr(function(Er){return(0,je.Z)((0,je.Z)({},Er),{},{isHiddenScrollBar:!0})}):Cr(function(Er){return(0,je.Z)((0,je.Z)({},Er),{},{isHiddenScrollBar:!1})})}},ji=function(bo){Cr(function(br){return(0,je.Z)((0,je.Z)({},br),{},{scrollLeft:bo/kt*Ot||0})})};return v.useImperativeHandle(W,function(){return{setScrollLeft:ji}}),v.useEffect(function(){var hi=El(document.body,"mouseup",zi,!1),bo=El(document.body,"mousemove",li,!1);return ci(),function(){hi.remove(),bo.remove()}},[Kt,Tr]),v.useEffect(function(){var hi=El(ct,"scroll",ci,!1),bo=El(window,"resize",ci,!1);return function(){hi.remove(),bo.remove()}},[ct]),v.useEffect(function(){ar.isHiddenScrollBar||Cr(function(hi){var bo=yt.current;return bo?(0,je.Z)((0,je.Z)({},hi),{},{scrollLeft:bo.scrollLeft/bo.scrollWidth*bo.clientWidth}):hi})},[ar.isHiddenScrollBar]),kt<=Ot||!Kt||ar.isHiddenScrollBar?null:v.createElement("div",{style:{height:(0,Mt.Z)(),width:Ot,bottom:Fe},className:"".concat(It,"-sticky-scroll")},v.createElement("div",{onMouseDown:ei,ref:en,className:Ne()("".concat(It,"-sticky-scroll-bar"),(0,Ce.Z)({},"".concat(It,"-sticky-scroll-bar-active"),Tr)),style:{width:"".concat(Kt,"px"),transform:"translate3d(".concat(ar.scrollLeft,"px, 0, 0)")}}))},xt=v.forwardRef(dt);function Et(on){return null}var et=Et;function wt(on){return null}var Vt=wt,yn="rc-table",yr=[],Yr={};function eo(){return"No Data"}function Zo(on,Q){var W,de=(0,je.Z)({rowKey:"key",prefixCls:yn,emptyText:eo},on),ke=de.prefixCls,yt=de.className,We=de.rowClassName,Fe=de.style,ct=de.data,It=de.rowKey,kt=de.scroll,Ot=de.tableLayout,Kt=de.direction,en=de.title,pn=de.footer,Wn=de.summary,ar=de.caption,Cr=de.id,mr=de.showHeader,Hn=de.components,gr=de.emptyText,Tr=de.onRow,wi=de.onHeaderRow,zi=de.internalHooks,ei=de.transformColumns,li=de.internalRefs,ci=de.tailor,ji=de.getContainerWidth,hi=de.sticky,bo=ct||yr,br=!!bo.length,mi=zi===C,Er=v.useCallback(function(Qo,sa){return(0,Ft.Z)(Hn,Qo)||sa},[Hn]),Jr=v.useMemo(function(){return typeof It=="function"?It:function(Qo){var sa=Qo&&Qo[It];return sa}},[It]),Gn=Er(["body"]),Or=or(),Rr=(0,x.Z)(Or,3),vi=Rr[0],Li=Rr[1],Ki=Rr[2],_o=ta(de,bo,Jr),xs=(0,x.Z)(_o,6),ts=xs[0],vs=xs[1],_a=xs[2],Bo=xs[3],Ja=xs[4],ns=xs[5],no=kt==null?void 0:kt.x,Qs=v.useState(0),ca=(0,x.Z)(Qs,2),Ts=ca[0],ro=ca[1],cs=ls((0,je.Z)((0,je.Z)((0,je.Z)({},de),ts),{},{expandable:!!ts.expandedRowRender,columnTitle:ts.columnTitle,expandedKeys:_a,getRowKey:Jr,onTriggerExpand:ns,expandIcon:Bo,expandIconColumnIndex:ts.expandIconColumnIndex,direction:Kt,scrollWidth:mi&&ci&&typeof no=="number"?no:null,clientWidth:Ts}),mi?ei:null),ia=(0,x.Z)(cs,3),Yl=ia[0],Fn=ia[1],io=ia[2],Qr=io!=null?io:no,qi=v.useMemo(function(){return{columns:Yl,flattenColumns:Fn}},[Yl,Fn]),vo=v.useRef(),os=v.useRef(),Ms=v.useRef(),Ke=v.useRef();v.useImperativeHandle(Q,function(){return{nativeElement:vo.current,scrollTo:function(sa){var $a;if(Ms.current instanceof HTMLElement){var Ru=sa.index,rh=sa.top,Lo=sa.key;if(rh){var Lh;(Lh=Ms.current)===null||Lh===void 0||Lh.scrollTo({top:rh})}else{var Uc,Hd=Lo!=null?Lo:Jr(bo[Ru]);(Uc=Ms.current.querySelector('[data-row-key="'.concat(Hd,'"]')))===null||Uc===void 0||Uc.scrollIntoView()}}else($a=Ms.current)!==null&&$a!==void 0&&$a.scrollTo&&Ms.current.scrollTo(sa)}}});var Ka=v.useRef(),su=v.useState(!1),Wl=(0,x.Z)(su,2),jl=Wl[0],$l=Wl[1],ql=v.useState(!1),Ys=(0,x.Z)(ql,2),Ti=Ys[0],rs=Ys[1],ys=Po(new Map),ma=(0,x.Z)(ys,2),za=ma[0],Ol=ma[1],ua=Nn(Fn),$r=ua.map(function(Qo){return za.get(Qo)}),Ko=v.useMemo(function(){return $r},[$r.join("_")]),ea=Ml(Ko,Fn.length,Kt),Nl=kt&&mn(kt.y),ru=kt&&mn(Qr)||!!ts.fixed,Rl=ru&&Fn.some(function(Qo){var sa=Qo.fixed;return sa}),ha=v.useRef(),pu=Sa(hi,ke),Kl=pu.isSticky,xh=pu.offsetHeader,au=pu.offsetSummary,$c=pu.offsetScroll,Fl=pu.stickyClassName,jc=pu.container,Au=v.useMemo(function(){return Wn==null?void 0:Wn(bo)},[Wn,bo]),Xc=(Nl||Kl)&&v.isValidElement(Au)&&Au.type===nt&&Au.props.fixed,vc,Qa,hd;Nl&&(Qa={overflowY:"scroll",maxHeight:kt.y}),ru&&(vc={overflowX:"auto"},Nl||(Qa={overflowY:"hidden"}),hd={width:Qr===!0?"auto":Qr,minWidth:"100%"});var Ge=v.useCallback(function(Qo,sa){(0,rn.Z)(vo.current)&&Ol(function($a){if($a.get(Qo)!==sa){var Ru=new Map($a);return Ru.set(Qo,sa),Ru}return $a})},[]),He=mo(null),pt=(0,x.Z)(He,2),Rn=pt[0],ui=pt[1];function Yn(Qo,sa){sa&&(typeof sa=="function"?sa(Qo):sa.scrollLeft!==Qo&&(sa.scrollLeft=Qo,sa.scrollLeft!==Qo&&setTimeout(function(){sa.scrollLeft=Qo},0)))}var Ci=(0,N.Z)(function(Qo){var sa=Qo.currentTarget,$a=Qo.scrollLeft,Ru=Kt==="rtl",rh=typeof $a=="number"?$a:sa.scrollLeft,Lo=sa||Yr;if(!ui()||ui()===Lo){var Lh;Rn(Lo),Yn(rh,os.current),Yn(rh,Ms.current),Yn(rh,Ka.current),Yn(rh,(Lh=ha.current)===null||Lh===void 0?void 0:Lh.setScrollLeft)}var Uc=sa||os.current;if(Uc){var Hd=Uc.scrollWidth,cg=Uc.clientWidth;if(Hd===cg){$l(!1),rs(!1);return}Ru?($l(-rh0)):($l(rh>0),rs(rh1?Wn-bo:0,mi=(0,je.Z)((0,je.Z)((0,je.Z)({},zi),ct),{},{flex:"0 0 ".concat(bo,"px"),width:"".concat(bo,"px"),marginRight:br,pointerEvents:"auto"}),Er=v.useMemo(function(){return kt?ji<=1:li===0||ji===0||ji>1},[ji,li,kt]);Er?mi.visibility="hidden":kt&&(mi.height=Ot==null?void 0:Ot(ji));var Jr=Er?function(){return null}:Kt,Gn={};return(ji===0||li===0)&&(Gn.rowSpan=1,Gn.colSpan=1),v.createElement(To,(0,T.Z)({className:Ne()(pn,It),ellipsis:W.ellipsis,align:W.align,scope:W.rowScope,component:"div",prefixCls:Q.prefixCls,key:Hn,record:Fe,index:yt,renderIndex:We,dataIndex:en,render:Jr,shouldCellUpdate:W.shouldCellUpdate},gr,{appendNode:Tr,additionalProps:(0,je.Z)((0,je.Z)({},wi),{},{style:mi},Gn)}))}var Il=da,Al=["data","index","className","rowKey","style","extra","getHeight"],Js=v.forwardRef(function(on,Q){var W=on.data,de=on.index,ke=on.className,yt=on.rowKey,We=on.style,Fe=on.extra,ct=on.getHeight,It=(0,co.Z)(on,Al),kt=W.record,Ot=W.indent,Kt=W.index,en=p(Me,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),pn=en.scrollX,Wn=en.flattenColumns,ar=en.prefixCls,Cr=en.fixColumn,mr=en.componentWidth,Hn=jr(kt,yt,de,Ot),gr=Hn.rowSupportExpand,Tr=Hn.expanded,wi=Hn.rowProps,zi=Hn.expandedRowRender,ei=Hn.expandedRowClassName,li;if(gr&&Tr){var ci=zi(kt,de,Ot+1,Tr),ji=ei==null?void 0:ei(kt,de,Ot),hi={};Cr&&(hi={style:(0,Ce.Z)({},"--virtual-width","".concat(mr,"px"))});var bo="".concat(ar,"-expanded-row-cell");li=v.createElement("div",{className:Ne()("".concat(ar,"-expanded-row"),"".concat(ar,"-expanded-row-level-").concat(Ot+1),ji)},v.createElement(To,{component:"div",prefixCls:ar,className:Ne()(bo,(0,Ce.Z)({},"".concat(bo,"-fixed"),Cr)),additionalProps:hi},ci))}var br=(0,je.Z)((0,je.Z)({},We),{},{width:pn});Fe&&(br.position="absolute",br.pointerEvents="none");var mi=v.createElement("div",(0,T.Z)({},wi,It,{ref:gr?null:Q,className:Ne()(ke,"".concat(ar,"-row"),wi==null?void 0:wi.className,(0,Ce.Z)({},"".concat(ar,"-row-extra"),Fe)),style:(0,je.Z)((0,je.Z)({},br),wi==null?void 0:wi.style)}),Wn.map(function(Er,Jr){return v.createElement(Il,{key:Jr,rowInfo:Hn,column:Er,colIndex:Jr,indent:Ot,index:de,renderIndex:Kt,record:kt,inverse:Fe,getHeight:ct})}));return gr?v.createElement("div",{ref:Q},mi,li):mi}),Ea=it(Js),gl=Ea,ds=v.forwardRef(function(on,Q){var W=on.data,de=on.onScroll,ke=p(Me,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),yt=ke.flattenColumns,We=ke.onColumnResize,Fe=ke.getRowKey,ct=ke.expandedKeys,It=ke.prefixCls,kt=ke.childrenColumnName,Ot=ke.emptyNode,Kt=ke.scrollX,en=p(No),pn=en.sticky,Wn=en.scrollY,ar=en.listItemHeight,Cr=v.useRef(),mr=sn(W,kt,ct,Fe),Hn=v.useMemo(function(){var ji=0;return yt.map(function(hi){var bo=hi.width,br=hi.key;return ji+=bo,[br,bo,ji]})},[yt]),gr=v.useMemo(function(){return Hn.map(function(ji){return ji[2]})},[Hn]);v.useEffect(function(){Hn.forEach(function(ji){var hi=(0,x.Z)(ji,2),bo=hi[0],br=hi[1];We(bo,br)})},[Hn]),v.useImperativeHandle(Q,function(){var ji={scrollTo:function(bo){var br;(br=Cr.current)===null||br===void 0||br.scrollTo(bo)}};return Object.defineProperty(ji,"scrollLeft",{get:function(){var bo;return((bo=Cr.current)===null||bo===void 0?void 0:bo.getScrollInfo().x)||0},set:function(bo){var br;(br=Cr.current)===null||br===void 0||br.scrollTo({left:bo})}}),ji});var Tr=function(hi,bo){var br,mi=(br=mr[bo])===null||br===void 0?void 0:br.record,Er=hi.onCell;if(Er){var Jr,Gn=Er(mi,bo);return(Jr=Gn==null?void 0:Gn.rowSpan)!==null&&Jr!==void 0?Jr:1}return 1},wi=function(hi){var bo=hi.start,br=hi.end,mi=hi.getSize,Er=hi.offsetY;if(br<0)return null;for(var Jr=yt.filter(function(no){return Tr(no,bo)===0}),Gn=bo,Or=function(Qs){if(Jr=Jr.filter(function(ca){return Tr(ca,Qs)===0}),!Jr.length)return Gn=Qs,"break"},Rr=bo;Rr>=0;Rr-=1){var vi=Or(Rr);if(vi==="break")break}for(var Li=yt.filter(function(no){return Tr(no,br)!==1}),Ki=br,_o=function(Qs){if(Li=Li.filter(function(ca){return Tr(ca,Qs)!==1}),!Li.length)return Ki=Math.max(Qs-1,br),"break"},xs=br;xs1})&&vs.push(Qs)},Bo=Gn;Bo<=Ki;Bo+=1)var Ja=_a(Bo);var ns=vs.map(function(no){var Qs=mr[no],ca=Fe(Qs.record,no),Ts=function(ia){var Yl=no+ia-1,Fn=Fe(mr[Yl].record,Yl),io=mi(ca,Fn);return io.bottom-io.top},ro=mi(ca);return v.createElement(gl,{key:no,data:Qs,rowKey:ca,index:no,style:{top:-Er+ro.top},extra:!0,getHeight:Ts})});return ns},zi=v.useMemo(function(){return{columnsOffset:gr}},[gr]),ei="".concat(It,"-tbody"),li;if(mr.length){var ci={};pn&&(ci.position="sticky",ci.bottom=0,(0,Re.Z)(pn)==="object"&&pn.offsetScroll&&(ci.bottom=pn.offsetScroll)),li=v.createElement(Zs.Z,{fullHeight:!1,ref:Cr,styles:{horizontalScrollBar:ci},className:Ne()(ei,"".concat(ei,"-virtual")),height:Wn,itemHeight:ar||24,data:mr,itemKey:function(hi){return Fe(hi.record)},scrollWidth:Kt,onVirtualScroll:function(hi){var bo=hi.x;de({scrollLeft:bo})},extraRender:wi},function(ji,hi,bo){var br=Fe(ji.record,hi);return v.createElement(gl,(0,T.Z)({data:ji,rowKey:br,index:hi},bo))})}else li=v.createElement("div",{className:Ne()("".concat(It,"-placeholder"))},v.createElement(To,{component:"div",prefixCls:It},Ot));return v.createElement(js.Provider,{value:zi},li)}),Gi=it(ds),Jo=Gi,Ps=function(Q,W){var de=W.ref,ke=W.onScroll;return v.createElement(Jo,{ref:de,data:Q,onScroll:ke})};function Fs(on,Q){var W=on.columns,de=on.scroll,ke=on.sticky,yt=on.prefixCls,We=yt===void 0?yn:yt,Fe=on.className,ct=on.listItemHeight,It=de||{},kt=It.x,Ot=It.y;typeof kt!="number"&&(kt=1),typeof Ot!="number"&&(Ot=500);var Kt=v.useMemo(function(){return{sticky:ke,scrollY:Ot,listItemHeight:ct}},[ke,Ot,ct]);return v.createElement(No.Provider,{value:Kt},v.createElement(ba,(0,T.Z)({},on,{className:Ne()(Fe,"".concat(We,"-virtual")),scroll:(0,je.Z)((0,je.Z)({},de),{},{x:kt}),components:{body:Ps},columns:W,internalHooks:C,tailor:!0,ref:Q})))}var Za=v.forwardRef(Fs);function Nu(on){return Se(Za,on)}var Tc=Nu(),Pc=null;function tc(on){return null}var cc=tc;function Uu(on){return null}var Pn=Uu,er=_(42884),Lr=_(67449),Gr=_(57324),ai=_(26858),Qi=_(41760);function Pi(on){const[Q,W]=(0,v.useState)(null);return[(0,v.useCallback)((yt,We,Fe)=>{const ct=Q!=null?Q:yt,It=Math.min(ct||0,yt),kt=Math.max(ct||0,yt),Ot=We.slice(It,kt+1).map(pn=>on(pn)),Kt=Ot.some(pn=>!Fe.has(pn)),en=[];return Ot.forEach(pn=>{Kt?(Fe.has(pn)||en.push(pn),Fe.add(pn)):(Fe.delete(pn),en.push(pn))}),W(Kt?kt:null),en},[Q]),yt=>{W(yt)}]}var fs=_(93837),Ks=_(71298),Ma=_(68899),qa=_(90161);const rl={},Dl="SELECT_ALL",Oa="SELECT_INVERT",ju="SELECT_NONE",Ia=[],Ha=(on,Q)=>{let W=[];return(Q||[]).forEach(de=>{W.push(de),de&&typeof de=="object"&&on in de&&(W=[].concat((0,qn.Z)(W),(0,qn.Z)(Ha(on,de[on]))))}),W};var cu=(on,Q)=>{const{preserveSelectedRowKeys:W,selectedRowKeys:de,defaultSelectedRowKeys:ke,getCheckboxProps:yt,onChange:We,onSelect:Fe,onSelectAll:ct,onSelectInvert:It,onSelectNone:kt,onSelectMultiple:Ot,columnWidth:Kt,type:en,selections:pn,fixed:Wn,renderCell:ar,hideSelectAll:Cr,checkStrictly:mr=!0}=Q||{},{prefixCls:Hn,data:gr,pageData:Tr,getRecordByKey:wi,getRowKey:zi,expandType:ei,childrenColumnName:li,locale:ci,getPopupContainer:ji}=on,hi=(0,fs.ln)("Table"),[bo,br]=Pi(ns=>ns),[mi,Er]=(0,Qi.Z)(de||ke||Ia,{value:de}),Jr=v.useRef(new Map),Gn=(0,v.useCallback)(ns=>{if(W){const no=new Map;ns.forEach(Qs=>{let ca=wi(Qs);!ca&&Jr.current.has(Qs)&&(ca=Jr.current.get(Qs)),no.set(Qs,ca)}),Jr.current=no}},[wi,W]);v.useEffect(()=>{Gn(mi)},[mi]);const{keyEntities:Or}=(0,v.useMemo)(()=>{if(mr)return{keyEntities:null};let ns=gr;if(W){const no=new Set(gr.map((ca,Ts)=>zi(ca,Ts))),Qs=Array.from(Jr.current).reduce((ca,Ts)=>{let[ro,cs]=Ts;return no.has(ro)?ca:ca.concat(cs)},[]);ns=[].concat((0,qn.Z)(ns),(0,qn.Z)(Qs))}return(0,ai.I8)(ns,{externalGetKey:zi,childrenPropName:li})},[gr,zi,mr,li,W]),Rr=(0,v.useMemo)(()=>Ha(li,Tr),[li,Tr]),vi=(0,v.useMemo)(()=>{const ns=new Map;return Rr.forEach((no,Qs)=>{const ca=zi(no,Qs),Ts=(yt?yt(no):null)||{};ns.set(ca,Ts)}),ns},[Rr,zi,yt]),Li=(0,v.useCallback)(ns=>{var no;return!!(!((no=vi.get(zi(ns)))===null||no===void 0)&&no.disabled)},[vi,zi]),[Ki,_o]=(0,v.useMemo)(()=>{if(mr)return[mi||[],[]];const{checkedKeys:ns,halfCheckedKeys:no}=(0,Gr.S)(mi,!0,Or,Li);return[ns||[],no]},[mi,mr,Or,Li]),xs=(0,v.useMemo)(()=>{const ns=en==="radio"?Ki.slice(0,1):Ki;return new Set(ns)},[Ki,en]),ts=(0,v.useMemo)(()=>en==="radio"?new Set:new Set(_o),[_o,en]);v.useEffect(()=>{Q||Er(Ia)},[!!Q]);const vs=(0,v.useCallback)((ns,no)=>{let Qs,ca;Gn(ns),W?(Qs=ns,ca=ns.map(Ts=>Jr.current.get(Ts))):(Qs=[],ca=[],ns.forEach(Ts=>{const ro=wi(Ts);ro!==void 0&&(Qs.push(Ts),ca.push(ro))})),Er(Qs),We==null||We(Qs,ca,{type:no})},[Er,wi,We,W]),_a=(0,v.useCallback)((ns,no,Qs,ca)=>{if(Fe){const Ts=Qs.map(ro=>wi(ro));Fe(wi(ns),no,Ts,ca)}vs(Qs,"single")},[Fe,wi,vs]),Bo=(0,v.useMemo)(()=>!pn||Cr?null:(pn===!0?[Dl,Oa,ju]:pn).map(no=>no===Dl?{key:"all",text:ci.selectionAll,onSelect(){vs(gr.map((Qs,ca)=>zi(Qs,ca)).filter(Qs=>{const ca=vi.get(Qs);return!(ca!=null&&ca.disabled)||xs.has(Qs)}),"all")}}:no===Oa?{key:"invert",text:ci.selectInvert,onSelect(){const Qs=new Set(xs);Tr.forEach((Ts,ro)=>{const cs=zi(Ts,ro),ia=vi.get(cs);ia!=null&&ia.disabled||(Qs.has(cs)?Qs.delete(cs):Qs.add(cs))});const ca=Array.from(Qs);It&&(hi.deprecated(!1,"onSelectInvert","onChange"),It(ca)),vs(ca,"invert")}}:no===ju?{key:"none",text:ci.selectNone,onSelect(){kt==null||kt(),vs(Array.from(xs).filter(Qs=>{const ca=vi.get(Qs);return ca==null?void 0:ca.disabled}),"none")}}:no).map(no=>Object.assign(Object.assign({},no),{onSelect:function(){for(var Qs,ca,Ts=arguments.length,ro=new Array(Ts),cs=0;cs{var no;if(!Q)return ns.filter(Wl=>Wl!==rl);let Qs=(0,qn.Z)(ns);const ca=new Set(xs),Ts=Rr.map(zi).filter(Wl=>!vi.get(Wl).disabled),ro=Ts.every(Wl=>ca.has(Wl)),cs=Ts.some(Wl=>ca.has(Wl)),ia=()=>{const Wl=[];ro?Ts.forEach($l=>{ca.delete($l),Wl.push($l)}):Ts.forEach($l=>{ca.has($l)||(ca.add($l),Wl.push($l))});const jl=Array.from(ca);ct==null||ct(!ro,jl.map($l=>wi($l)),Wl.map($l=>wi($l))),vs(jl,"all"),br(null)};let Yl,Fn;if(en!=="radio"){let Wl;if(Bo){const Ti={getPopupContainer:ji,items:Bo.map((rs,ys)=>{const{key:ma,text:za,onSelect:Ol}=rs;return{key:ma!=null?ma:ys,onClick:()=>{Ol==null||Ol(Ts)},label:za}})};Wl=v.createElement("div",{className:`${Hn}-selection-extra`},v.createElement(Ma.Z,{menu:Ti,getPopupContainer:ji},v.createElement("span",null,v.createElement(er.Z,null))))}const jl=Rr.map((Ti,rs)=>{const ys=zi(Ti,rs),ma=vi.get(ys)||{};return Object.assign({checked:ca.has(ys)},ma)}).filter(Ti=>{let{disabled:rs}=Ti;return rs}),$l=!!jl.length&&jl.length===Rr.length,ql=$l&&jl.every(Ti=>{let{checked:rs}=Ti;return rs}),Ys=$l&&jl.some(Ti=>{let{checked:rs}=Ti;return rs});Fn=v.createElement(Ks.Z,{checked:$l?ql:!!Rr.length&&ro,indeterminate:$l?!ql&&Ys:!ro&&cs,onChange:ia,disabled:Rr.length===0||$l,"aria-label":Wl?"Custom selection":"Select all",skipGroup:!0}),Yl=!Cr&&v.createElement("div",{className:`${Hn}-selection`},Fn,Wl)}let io;en==="radio"?io=(Wl,jl,$l)=>{const ql=zi(jl,$l),Ys=ca.has(ql);return{node:v.createElement(qa.ZP,Object.assign({},vi.get(ql),{checked:Ys,onClick:Ti=>Ti.stopPropagation(),onChange:Ti=>{ca.has(ql)||_a(ql,!0,[ql],Ti.nativeEvent)}})),checked:Ys}}:io=(Wl,jl,$l)=>{var ql;const Ys=zi(jl,$l),Ti=ca.has(Ys),rs=ts.has(Ys),ys=vi.get(Ys);let ma;return ei==="nest"?ma=rs:ma=(ql=ys==null?void 0:ys.indeterminate)!==null&&ql!==void 0?ql:rs,{node:v.createElement(Ks.Z,Object.assign({},ys,{indeterminate:ma,checked:Ti,skipGroup:!0,onClick:za=>za.stopPropagation(),onChange:za=>{let{nativeEvent:Ol}=za;const{shiftKey:ua}=Ol,$r=Ts.findIndex(ea=>ea===Ys),Ko=Ki.some(ea=>Ts.includes(ea));if(ua&&mr&&Ko){const ea=bo($r,Ts,ca),Nl=Array.from(ca);Ot==null||Ot(!Ti,Nl.map(ru=>wi(ru)),ea.map(ru=>wi(ru))),vs(Nl,"multiple")}else{const ea=Ki;if(mr){const Nl=Ti?(0,Lr._5)(ea,Ys):(0,Lr.L0)(ea,Ys);_a(Ys,!Ti,Nl,Ol)}else{const Nl=(0,Gr.S)([].concat((0,qn.Z)(ea),[Ys]),!0,Or,Li),{checkedKeys:ru,halfCheckedKeys:Rl}=Nl;let ha=ru;if(Ti){const pu=new Set(ru);pu.delete(Ys),ha=(0,Gr.S)(Array.from(pu),{checked:!1,halfCheckedKeys:Rl},Or,Li).checkedKeys}_a(Ys,!Ti,ha,Ol)}}br(Ti?null:$r)}})),checked:Ti}};const Qr=(Wl,jl,$l)=>{const{node:ql,checked:Ys}=io(Wl,jl,$l);return ar?ar(Ys,jl,$l,ql):ql};if(!Qs.includes(rl))if(Qs.findIndex(Wl=>{var jl;return((jl=Wl[$t])===null||jl===void 0?void 0:jl.columnType)==="EXPAND_COLUMN"})===0){const[Wl,...jl]=Qs;Qs=[Wl,rl].concat((0,qn.Z)(jl))}else Qs=[rl].concat((0,qn.Z)(Qs));const qi=Qs.indexOf(rl);Qs=Qs.filter((Wl,jl)=>Wl!==rl||jl===qi);const vo=Qs[qi-1],os=Qs[qi+1];let Ms=Wn;Ms===void 0&&((os==null?void 0:os.fixed)!==void 0?Ms=os.fixed:(vo==null?void 0:vo.fixed)!==void 0&&(Ms=vo.fixed)),Ms&&vo&&((no=vo[$t])===null||no===void 0?void 0:no.columnType)==="EXPAND_COLUMN"&&vo.fixed===void 0&&(vo.fixed=Ms);const Ke=Ne()(`${Hn}-selection-col`,{[`${Hn}-selection-col-with-dropdown`]:pn&&en==="checkbox"}),Ka=()=>Q!=null&&Q.columnTitle?typeof Q.columnTitle=="function"?Q.columnTitle(Fn):Q.columnTitle:Yl,su={fixed:Ms,width:Kt,className:`${Hn}-selection-column`,title:Ka(),render:Qr,onCell:Q.onCell,[$t]:{className:Ke}};return Qs.map(Wl=>Wl===rl?su:Wl)},[zi,Rr,Q,Ki,xs,ts,Kt,Bo,ei,vi,Ot,_a,Li]),xs]},Xl=_(39029);function yu(on,Q){return on._antProxy=on._antProxy||{},Object.keys(Q).forEach(W=>{if(!(W in on._antProxy)){const de=on[W];on._antProxy[W]=de,on[W]=Q[W]}}),on}function Cl(on,Q){return(0,v.useImperativeHandle)(on,()=>{const W=Q(),{nativeElement:de}=W;return typeof Proxy!="undefined"?new Proxy(de,{get(ke,yt){return W[yt]?W[yt]:Reflect.get(ke,yt)}}):yu(de,W)})}var nu=_(28637);function Xn(on,Q,W,de){const ke=W-Q;return on/=de/2,on<1?ke/2*on*on*on+Q:ke/2*((on-=2)*on*on+2)+Q}function Ho(on){return on!=null&&on===on.window}function Ls(on,Q){var W,de;if(typeof window=="undefined")return 0;const ke=Q?"scrollTop":"scrollLeft";let yt=0;return Ho(on)?yt=on[Q?"pageYOffset":"pageXOffset"]:on instanceof Document?yt=on.documentElement[ke]:(on instanceof HTMLElement||on)&&(yt=on[ke]),on&&!Ho(on)&&typeof yt!="number"&&(yt=(de=((W=on.ownerDocument)!==null&&W!==void 0?W:on).documentElement)===null||de===void 0?void 0:de[ke]),yt}function Xs(on){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:W=()=>window,callback:de,duration:ke=450}=Q,yt=W(),We=Ls(yt,!0),Fe=Date.now(),ct=()=>{const kt=Date.now()-Fe,Ot=Xn(kt>ke?ke:kt,We,on,ke);Ho(yt)?yt.scrollTo(window.pageXOffset,Ot):yt instanceof Document||yt.constructor.name==="HTMLDocument"?yt.documentElement.scrollTop=Ot:yt.scrollTop=Ot,kt=0||Fe.relatedTarget.className.indexOf("".concat(Ot,"-item"))>=0))&&kt(de.getValidValue()))}),(0,Ce.Z)((0,vh.Z)(de),"go",function(Fe){var ct=de.state.goInputText;ct!==""&&(Fe.keyCode===Mf.ENTER||Fe.type==="click")&&(de.setState({goInputText:""}),de.props.quickGo(de.getValidValue()))}),de}return(0,Ed.Z)(W,[{key:"getPageSizeOptions",value:function(){var ke=this.props,yt=ke.pageSize,We=ke.pageSizeOptions;return We.some(function(Fe){return Fe.toString()===yt.toString()})?We:We.concat([yt.toString()]).sort(function(Fe,ct){var It=Number.isNaN(Number(Fe))?0:Number(Fe),kt=Number.isNaN(Number(ct))?0:Number(ct);return It-kt})}},{key:"render",value:function(){var ke=this,yt=this.props,We=yt.pageSize,Fe=yt.locale,ct=yt.rootPrefixCls,It=yt.changeSize,kt=yt.quickGo,Ot=yt.goButton,Kt=yt.selectComponentClass,en=yt.buildOptionText,pn=yt.selectPrefixCls,Wn=yt.disabled,ar=this.state.goInputText,Cr="".concat(ct,"-options"),mr=Kt,Hn=null,gr=null,Tr=null;if(!It&&!kt)return null;var wi=this.getPageSizeOptions();if(It&&mr){var zi=wi.map(function(ei,li){return v.createElement(mr.Option,{key:li,value:ei.toString()},(en||ke.buildOptionText)(ei))});Hn=v.createElement(mr,{disabled:Wn,prefixCls:pn,showSearch:!1,className:"".concat(Cr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(We||wi[0]).toString(),onChange:this.changeSize,getPopupContainer:function(li){return li.parentNode},"aria-label":Fe.page_size,defaultOpen:!1},zi)}return kt&&(Ot&&(Tr=typeof Ot=="boolean"?v.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Wn,className:"".concat(Cr,"-quick-jumper-button")},Fe.jump_to_confirm):v.createElement("span",{onClick:this.go,onKeyUp:this.go},Ot)),gr=v.createElement("div",{className:"".concat(Cr,"-quick-jumper")},Fe.jump_to,v.createElement("input",{disabled:Wn,type:"text",value:ar,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Fe.page}),Fe.page,Tr)),v.createElement("li",{className:"".concat(Cr)},Hn,gr)}}]),W}(v.Component);(0,Ce.Z)(Yu,"defaultProps",{pageSizeOptions:["10","20","50","100"]});var nh=Yu,Nd=function(Q){var W,de=Q.rootPrefixCls,ke=Q.page,yt=Q.active,We=Q.className,Fe=Q.showTitle,ct=Q.onClick,It=Q.onKeyPress,kt=Q.itemRender,Ot="".concat(de,"-item"),Kt=Ne()(Ot,"".concat(Ot,"-").concat(ke),(W={},(0,Ce.Z)(W,"".concat(Ot,"-active"),yt),(0,Ce.Z)(W,"".concat(Ot,"-disabled"),!ke),(0,Ce.Z)(W,Q.className,We),W)),en=function(){ct(ke)},pn=function(Cr){It(Cr,ct,ke)},Wn=kt(ke,"page",v.createElement("a",{rel:"nofollow"},ke));return Wn?v.createElement("li",{title:Fe?ke.toString():null,className:Kt,onClick:en,onKeyPress:pn,tabIndex:0},Wn):null},df=Nd;function bf(){}function Of(on){var Q=Number(on);return typeof Q=="number"&&!Number.isNaN(Q)&&isFinite(Q)&&Math.floor(Q)===Q}var Yf=function(Q,W,de){return de};function Bf(on,Q,W){var de=typeof on=="undefined"?Q.pageSize:on;return Math.floor((W.total-1)/de)+1}var xd=function(on){(0,zd.Z)(W,on);var Q=(0,Th.Z)(W);function W(de){var ke;(0,pd.Z)(this,W),ke=Q.call(this,de),(0,Ce.Z)((0,vh.Z)(ke),"paginationNode",v.createRef()),(0,Ce.Z)((0,vh.Z)(ke),"getJumpPrevPage",function(){return Math.max(1,ke.state.current-(ke.props.showLessItems?3:5))}),(0,Ce.Z)((0,vh.Z)(ke),"getJumpNextPage",function(){return Math.min(Bf(void 0,ke.state,ke.props),ke.state.current+(ke.props.showLessItems?3:5))}),(0,Ce.Z)((0,vh.Z)(ke),"getItemIcon",function(It,kt){var Ot=ke.props.prefixCls,Kt=It||v.createElement("button",{type:"button","aria-label":kt,className:"".concat(Ot,"-item-link")});return typeof It=="function"&&(Kt=v.createElement(It,(0,je.Z)({},ke.props))),Kt}),(0,Ce.Z)((0,vh.Z)(ke),"isValid",function(It){var kt=ke.props.total;return Of(It)&&It!==ke.state.current&&Of(kt)&&kt>0}),(0,Ce.Z)((0,vh.Z)(ke),"shouldDisplayQuickJumper",function(){var It=ke.props,kt=It.showQuickJumper,Ot=It.total,Kt=ke.state.pageSize;return Ot<=Kt?!1:kt}),(0,Ce.Z)((0,vh.Z)(ke),"handleKeyDown",function(It){(It.keyCode===Mf.ARROW_UP||It.keyCode===Mf.ARROW_DOWN)&&It.preventDefault()}),(0,Ce.Z)((0,vh.Z)(ke),"handleKeyUp",function(It){var kt=ke.getValidValue(It),Ot=ke.state.currentInputValue;kt!==Ot&&ke.setState({currentInputValue:kt}),It.keyCode===Mf.ENTER?ke.handleChange(kt):It.keyCode===Mf.ARROW_UP?ke.handleChange(kt-1):It.keyCode===Mf.ARROW_DOWN&&ke.handleChange(kt+1)}),(0,Ce.Z)((0,vh.Z)(ke),"handleBlur",function(It){var kt=ke.getValidValue(It);ke.handleChange(kt)}),(0,Ce.Z)((0,vh.Z)(ke),"changePageSize",function(It){var kt=ke.state.current,Ot=Bf(It,ke.state,ke.props);kt=kt>Ot?Ot:kt,Ot===0&&(kt=ke.state.current),typeof It=="number"&&("pageSize"in ke.props||ke.setState({pageSize:It}),"current"in ke.props||ke.setState({current:kt,currentInputValue:kt})),ke.props.onShowSizeChange(kt,It),"onChange"in ke.props&&ke.props.onChange&&ke.props.onChange(kt,It)}),(0,Ce.Z)((0,vh.Z)(ke),"handleChange",function(It){var kt=ke.props,Ot=kt.disabled,Kt=kt.onChange,en=ke.state,pn=en.pageSize,Wn=en.current,ar=en.currentInputValue;if(ke.isValid(It)&&!Ot){var Cr=Bf(void 0,ke.state,ke.props),mr=It;return It>Cr?mr=Cr:It<1&&(mr=1),"current"in ke.props||ke.setState({current:mr}),mr!==ar&&ke.setState({currentInputValue:mr}),Kt(mr,pn),mr}return Wn}),(0,Ce.Z)((0,vh.Z)(ke),"prev",function(){ke.hasPrev()&&ke.handleChange(ke.state.current-1)}),(0,Ce.Z)((0,vh.Z)(ke),"next",function(){ke.hasNext()&&ke.handleChange(ke.state.current+1)}),(0,Ce.Z)((0,vh.Z)(ke),"jumpPrev",function(){ke.handleChange(ke.getJumpPrevPage())}),(0,Ce.Z)((0,vh.Z)(ke),"jumpNext",function(){ke.handleChange(ke.getJumpNextPage())}),(0,Ce.Z)((0,vh.Z)(ke),"hasPrev",function(){return ke.state.current>1}),(0,Ce.Z)((0,vh.Z)(ke),"hasNext",function(){return ke.state.current2?Ot-2:0),en=2;en=We?ct=We:ct=Number(yt),ct}},{key:"getShowSizeChanger",value:function(){var ke=this.props,yt=ke.showSizeChanger,We=ke.total,Fe=ke.totalBoundaryShowSizeChanger;return typeof yt!="undefined"?yt:We>Fe}},{key:"render",value:function(){var ke=this.props,yt=ke.prefixCls,We=ke.className,Fe=ke.style,ct=ke.disabled,It=ke.hideOnSinglePage,kt=ke.total,Ot=ke.locale,Kt=ke.showQuickJumper,en=ke.showLessItems,pn=ke.showTitle,Wn=ke.showTotal,ar=ke.simple,Cr=ke.itemRender,mr=ke.showPrevNextJumpers,Hn=ke.jumpPrevIcon,gr=ke.jumpNextIcon,Tr=ke.selectComponentClass,wi=ke.selectPrefixCls,zi=ke.pageSizeOptions,ei=this.state,li=ei.current,ci=ei.pageSize,ji=ei.currentInputValue;if(It===!0&&kt<=ci)return null;var hi=Bf(void 0,this.state,this.props),bo=[],br=null,mi=null,Er=null,Jr=null,Gn=null,Or=Kt&&Kt.goButton,Rr=en?1:2,vi=li-1>0?li-1:0,Li=li+1kt?kt:li*ci]));if(ar){Or&&(typeof Or=="boolean"?Gn=v.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ot.jump_to_confirm):Gn=v.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Or),Gn=v.createElement("li",{title:pn?"".concat(Ot.jump_to).concat(li,"/").concat(hi):null,className:"".concat(yt,"-simple-pager")},Gn));var xs=this.renderPrev(vi);return v.createElement("ul",(0,T.Z)({className:Ne()(yt,"".concat(yt,"-simple"),(0,Ce.Z)({},"".concat(yt,"-disabled"),ct),We),style:Fe,ref:this.paginationNode},Ki),_o,xs?v.createElement("li",{title:pn?Ot.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ne()("".concat(yt,"-prev"),(0,Ce.Z)({},"".concat(yt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},xs):null,v.createElement("li",{title:pn?"".concat(li,"/").concat(hi):null,className:"".concat(yt,"-simple-pager")},v.createElement("input",{type:"text",value:ji,disabled:ct,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),v.createElement("span",{className:"".concat(yt,"-slash")},"/"),hi),v.createElement("li",{title:pn?Ot.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ne()("".concat(yt,"-next"),(0,Ce.Z)({},"".concat(yt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Li)),v.createElement(nh,{disabled:ct,locale:Ot,rootPrefixCls:yt,selectComponentClass:Tr,selectPrefixCls:wi,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:li,pageSize:ci,pageSizeOptions:zi,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Gn}))}if(hi<=3+Rr*2){var ts={locale:Ot,rootPrefixCls:yt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:pn,itemRender:Cr};hi||bo.push(v.createElement(df,(0,T.Z)({},ts,{key:"noPager",page:1,className:"".concat(yt,"-item-disabled")})));for(var vs=1;vs<=hi;vs+=1){var _a=li===vs;bo.push(v.createElement(df,(0,T.Z)({},ts,{key:vs,page:vs,active:_a})))}}else{var Bo=en?Ot.prev_3:Ot.prev_5,Ja=en?Ot.next_3:Ot.next_5,ns=Cr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Hn,"prev page")),no=Cr(this.getJumpNextPage(),"jump-next",this.getItemIcon(gr,"next page"));mr&&(br=ns?v.createElement("li",{title:pn?Bo:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ne()("".concat(yt,"-jump-prev"),(0,Ce.Z)({},"".concat(yt,"-jump-prev-custom-icon"),!!Hn))},ns):null,mi=no?v.createElement("li",{title:pn?Ja:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ne()("".concat(yt,"-jump-next"),(0,Ce.Z)({},"".concat(yt,"-jump-next-custom-icon"),!!gr))},no):null),Jr=v.createElement(df,{locale:Ot,last:!0,rootPrefixCls:yt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:hi,page:hi,active:!1,showTitle:pn,itemRender:Cr}),Er=v.createElement(df,{locale:Ot,rootPrefixCls:yt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:pn,itemRender:Cr});var Qs=Math.max(1,li-Rr),ca=Math.min(li+Rr,hi);li-1<=Rr&&(ca=1+Rr*2),hi-li<=Rr&&(Qs=hi-Rr*2);for(var Ts=Qs;Ts<=ca;Ts+=1){var ro=li===Ts;bo.push(v.createElement(df,{locale:Ot,rootPrefixCls:yt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ts,page:Ts,active:ro,showTitle:pn,itemRender:Cr}))}li-1>=Rr*2&&li!==1+2&&(bo[0]=(0,v.cloneElement)(bo[0],{className:"".concat(yt,"-item-after-jump-prev")}),bo.unshift(br)),hi-li>=Rr*2&&li!==hi-2&&(bo[bo.length-1]=(0,v.cloneElement)(bo[bo.length-1],{className:"".concat(yt,"-item-before-jump-next")}),bo.push(mi)),Qs!==1&&bo.unshift(Er),ca!==hi&&bo.push(Jr)}var cs=!this.hasPrev()||!hi,ia=!this.hasNext()||!hi,Yl=this.renderPrev(vi),Fn=this.renderNext(Li);return v.createElement("ul",(0,T.Z)({className:Ne()(yt,We,(0,Ce.Z)({},"".concat(yt,"-disabled"),ct)),style:Fe,ref:this.paginationNode},Ki),_o,Yl?v.createElement("li",{title:pn?Ot.prev_page:null,onClick:this.prev,tabIndex:cs?null:0,onKeyPress:this.runIfEnterPrev,className:Ne()("".concat(yt,"-prev"),(0,Ce.Z)({},"".concat(yt,"-disabled"),cs)),"aria-disabled":cs},Yl):null,bo,Fn?v.createElement("li",{title:pn?Ot.next_page:null,onClick:this.next,tabIndex:ia?null:0,onKeyPress:this.runIfEnterNext,className:Ne()("".concat(yt,"-next"),(0,Ce.Z)({},"".concat(yt,"-disabled"),ia)),"aria-disabled":ia},Fn):null,v.createElement(nh,{disabled:ct,locale:Ot,rootPrefixCls:yt,selectComponentClass:Tr,selectPrefixCls:wi,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:li,pageSize:ci,pageSizeOptions:zi,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Or}))}}],[{key:"getDerivedStateFromProps",value:function(ke,yt){var We={};if("current"in ke&&(We.current=ke.current,ke.current!==yt.current&&(We.currentInputValue=We.current)),"pageSize"in ke&&ke.pageSize!==yt.pageSize){var Fe=yt.current,ct=Bf(ke.pageSize,yt,ke);Fe=Fe>ct?ct:Fe,"current"in ke||(We.current=Fe,We.currentInputValue=Fe),We.pageSize=ke.pageSize}return We}}]),W}(v.Component);(0,Ce.Z)(xd,"defaultProps",{defaultCurrent:1,total:0,defaultPageSize:10,onChange:bf,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:bf,locale:gd,style:{},itemRender:Yf,totalBoundaryShowSizeChanger:50});var Sd=xd,Eu=_(67025),xf=_(92584),ol=_(71163);const Pu=on=>v.createElement(ol.Z,Object.assign({},on,{showSearch:!0,size:"small"})),Ah=on=>v.createElement(ol.Z,Object.assign({},on,{showSearch:!0,size:"middle"}));Pu.Option=ol.Z.Option,Ah.Option=ol.Z.Option;var md=_(83279),Aa=_(21348),_u=_(93154),Hl=_(43040);const Ou=on=>{const{componentCls:Q}=on;return{[`${Q}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Q}-item-link`]:{color:on.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Q}-item-link`]:{color:on.colorTextDisabled,cursor:"not-allowed"}}},[`&${Q}-disabled`]:{cursor:"not-allowed",[`${Q}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:on.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:on.colorBorder,backgroundColor:on.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:on.itemActiveBgDisabled},a:{color:on.itemActiveColorDisabled}}},[`${Q}-item-link`]:{color:on.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Q}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Q}-simple-pager`]:{color:on.colorTextDisabled},[`${Q}-jump-prev, ${Q}-jump-next`]:{[`${Q}-item-link-icon`]:{opacity:0},[`${Q}-item-ellipsis`]:{opacity:1}}},[`&${Q}-simple`]:{[`${Q}-prev, ${Q}-next`]:{[`&${Q}-disabled ${Q}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},qu=on=>{const{componentCls:Q}=on;return{[`&${Q}-mini ${Q}-total-text, &${Q}-mini ${Q}-simple-pager`]:{height:on.itemSizeSM,lineHeight:`${on.itemSizeSM}px`},[`&${Q}-mini ${Q}-item`]:{minWidth:on.itemSizeSM,height:on.itemSizeSM,margin:0,lineHeight:`${on.itemSizeSM-2}px`},[`&${Q}-mini:not(${Q}-disabled) ${Q}-item:not(${Q}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:on.colorBgTextHover},"&:active":{backgroundColor:on.colorBgTextActive}},[`&${Q}-mini ${Q}-prev, &${Q}-mini ${Q}-next`]:{minWidth:on.itemSizeSM,height:on.itemSizeSM,margin:0,lineHeight:`${on.itemSizeSM}px`},[`&${Q}-mini:not(${Q}-disabled)`]:{[`${Q}-prev, ${Q}-next`]:{[`&:hover ${Q}-item-link`]:{backgroundColor:on.colorBgTextHover},[`&:active ${Q}-item-link`]:{backgroundColor:on.colorBgTextActive},[`&${Q}-disabled:hover ${Q}-item-link`]:{backgroundColor:"transparent"}}},[` + &${Q}-mini ${Q}-prev ${Q}-item-link, + &${Q}-mini ${Q}-next ${Q}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:on.itemSizeSM,lineHeight:`${on.itemSizeSM}px`}},[`&${Q}-mini ${Q}-jump-prev, &${Q}-mini ${Q}-jump-next`]:{height:on.itemSizeSM,marginInlineEnd:0,lineHeight:`${on.itemSizeSM}px`},[`&${Q}-mini ${Q}-options`]:{marginInlineStart:on.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:on.miniOptionsSizeChangerTop},["&-quick-jumper"]:{height:on.itemSizeSM,lineHeight:`${on.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,md.x0)(on)),{width:on.paginationMiniQuickJumperInputWidth,height:on.controlHeightSM})}}}},id=on=>{const{componentCls:Q}=on;return{[` + &${Q}-simple ${Q}-prev, + &${Q}-simple ${Q}-next + `]:{height:on.itemSizeSM,lineHeight:`${on.itemSizeSM}px`,verticalAlign:"top",[`${Q}-item-link`]:{height:on.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:on.colorBgTextHover},"&:active":{backgroundColor:on.colorBgTextActive},"&::after":{height:on.itemSizeSM,lineHeight:`${on.itemSizeSM}px`}}},[`&${Q}-simple ${Q}-simple-pager`]:{display:"inline-block",height:on.itemSizeSM,marginInlineEnd:on.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:on.marginXS,padding:`0 ${on.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:on.itemInputBg,border:`${on.lineWidth}px ${on.lineType} ${on.colorBorder}`,borderRadius:on.borderRadius,outline:"none",transition:`border-color ${on.motionDurationMid}`,color:"inherit","&:hover":{borderColor:on.colorPrimary},"&:focus":{borderColor:on.colorPrimaryHover,boxShadow:`${on.inputOutlineOffset}px 0 ${on.controlOutlineWidth}px ${on.controlOutline}`},"&[disabled]":{color:on.colorTextDisabled,backgroundColor:on.colorBgContainerDisabled,borderColor:on.colorBorder,cursor:"not-allowed"}}}}},ld=on=>{const{componentCls:Q}=on;return{[`${Q}-jump-prev, ${Q}-jump-next`]:{outline:0,[`${Q}-item-container`]:{position:"relative",[`${Q}-item-link-icon`]:{color:on.colorPrimary,fontSize:on.fontSizeSM,opacity:0,transition:`all ${on.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Q}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:on.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:on.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:on.paginationEllipsisTextIndent,opacity:1,transition:`all ${on.motionDurationMid}`}},"&:hover":{[`${Q}-item-link-icon`]:{opacity:1},[`${Q}-item-ellipsis`]:{opacity:0}}},[` + ${Q}-prev, + ${Q}-jump-prev, + ${Q}-jump-next + `]:{marginInlineEnd:on.marginXS},[` + ${Q}-prev, + ${Q}-next, + ${Q}-jump-prev, + ${Q}-jump-next + `]:{display:"inline-block",minWidth:on.itemSize,height:on.itemSize,color:on.colorText,fontFamily:on.fontFamily,lineHeight:`${on.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:on.borderRadius,cursor:"pointer",transition:`all ${on.motionDurationMid}`},[`${Q}-prev, ${Q}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:on.colorText,cursor:"pointer",userSelect:"none"},[`${Q}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:on.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${on.lineWidth}px ${on.lineType} transparent`,borderRadius:on.borderRadius,outline:"none",transition:`all ${on.motionDurationMid}`},[`&:hover ${Q}-item-link`]:{backgroundColor:on.colorBgTextHover},[`&:active ${Q}-item-link`]:{backgroundColor:on.colorBgTextActive},[`&${Q}-disabled:hover`]:{[`${Q}-item-link`]:{backgroundColor:"transparent"}}},[`${Q}-slash`]:{marginInlineEnd:on.paginationSlashMarginInlineEnd,marginInlineStart:on.paginationSlashMarginInlineStart},[`${Q}-options`]:{display:"inline-block",marginInlineStart:on.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:on.controlHeight,marginInlineStart:on.marginXS,lineHeight:`${on.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,md.ik)(on)),{width:on.controlHeightLG*1.25,height:on.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:on.marginXS,marginInlineEnd:on.marginXS})}}}},Jh=on=>{const{componentCls:Q}=on;return{[`${Q}-item`]:{display:"inline-block",minWidth:on.itemSize,height:on.itemSize,marginInlineEnd:on.marginXS,fontFamily:on.fontFamily,lineHeight:`${on.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${on.lineWidth}px ${on.lineType} transparent`,borderRadius:on.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${on.paginationItemPaddingInline}px`,color:on.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Q}-item-active)`]:{"&:hover":{transition:`all ${on.motionDurationMid}`,backgroundColor:on.colorBgTextHover},"&:active":{backgroundColor:on.colorBgTextActive}},"&-active":{fontWeight:on.fontWeightStrong,backgroundColor:on.itemActiveBg,borderColor:on.colorPrimary,a:{color:on.colorPrimary},"&:hover":{borderColor:on.colorPrimaryHover},"&:hover a":{color:on.colorPrimaryHover}}}}},Rf=on=>{const{componentCls:Q}=on;return{[Q]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Aa.Wf)(on)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Q}-total-text`]:{display:"inline-block",height:on.itemSize,marginInlineEnd:on.marginXS,lineHeight:`${on.itemSize-2}px`,verticalAlign:"middle"}}),Jh(on)),ld(on)),id(on)),qu(on)),Ou(on)),{[`@media only screen and (max-width: ${on.screenLG}px)`]:{[`${Q}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${on.screenSM}px)`]:{[`${Q}-options`]:{display:"none"}}}),[`&${on.componentCls}-rtl`]:{direction:"rtl"}}},zf=on=>{const{componentCls:Q}=on;return{[`${Q}${Q}-disabled:not(${Q}-mini)`]:{"&, &:hover":{[`${Q}-item-link`]:{borderColor:on.colorBorder}},"&:focus-visible":{[`${Q}-item-link`]:{borderColor:on.colorBorder}},[`${Q}-item, ${Q}-item-link`]:{backgroundColor:on.colorBgContainerDisabled,borderColor:on.colorBorder,[`&:hover:not(${Q}-item-active)`]:{backgroundColor:on.colorBgContainerDisabled,borderColor:on.colorBorder,a:{color:on.colorTextDisabled}},[`&${Q}-item-active`]:{backgroundColor:on.itemActiveBgDisabled}},[`${Q}-prev, ${Q}-next`]:{"&:hover button":{backgroundColor:on.colorBgContainerDisabled,borderColor:on.colorBorder,color:on.colorTextDisabled},[`${Q}-item-link`]:{backgroundColor:on.colorBgContainerDisabled,borderColor:on.colorBorder}}},[`${Q}:not(${Q}-mini)`]:{[`${Q}-prev, ${Q}-next`]:{"&:hover button":{borderColor:on.colorPrimaryHover,backgroundColor:on.itemBg},[`${Q}-item-link`]:{backgroundColor:on.itemLinkBg,borderColor:on.colorBorder},[`&:hover ${Q}-item-link`]:{borderColor:on.colorPrimary,backgroundColor:on.itemBg,color:on.colorPrimary},[`&${Q}-disabled`]:{[`${Q}-item-link`]:{borderColor:on.colorBorder,color:on.colorTextDisabled}}},[`${Q}-item`]:{backgroundColor:on.itemBg,border:`${on.lineWidth}px ${on.lineType} ${on.colorBorder}`,[`&:hover:not(${Q}-item-active)`]:{borderColor:on.colorPrimary,backgroundColor:on.itemBg,a:{color:on.colorPrimary}},"&-active":{borderColor:on.colorPrimary}}}}},rf=on=>{const{componentCls:Q}=on;return{[`${Q}:not(${Q}-disabled)`]:{[`${Q}-item`]:Object.assign({},(0,Aa.Qy)(on)),[`${Q}-jump-prev, ${Q}-jump-next`]:{"&:focus-visible":Object.assign({[`${Q}-item-link-icon`]:{opacity:1},[`${Q}-item-ellipsis`]:{opacity:0}},(0,Aa.oN)(on))},[`${Q}-prev, ${Q}-next`]:{[`&:focus-visible ${Q}-item-link`]:Object.assign({},(0,Aa.oN)(on))}}}};var Vf=(0,_u.Z)("Pagination",on=>{const Q=(0,Hl.TS)(on,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:on.marginXXS/2,paginationMiniQuickJumperInputWidth:on.controlHeightLG*1.1,paginationItemPaddingInline:on.marginXXS*1.5,paginationEllipsisLetterSpacing:on.marginXXS/2,paginationSlashMarginInlineStart:on.marginXXS,paginationSlashMarginInlineEnd:on.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,md.e5)(on),(0,md.TM)(on));return[Rf(Q),rf(Q),on.wireframe&&zf(Q)]},on=>({itemBg:on.colorBgContainer,itemSize:on.controlHeight,itemSizeSM:on.controlHeightSM,itemActiveBg:on.colorBgContainer,itemLinkBg:on.colorBgContainer,itemActiveColorDisabled:on.colorTextDisabled,itemActiveBgDisabled:on.controlItemBgActiveDisabled,itemInputBg:on.colorBgContainer,miniOptionsSizeChangerTop:0})),tf=function(on,Q){var W={};for(var de in on)Object.prototype.hasOwnProperty.call(on,de)&&Q.indexOf(de)<0&&(W[de]=on[de]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,de=Object.getOwnPropertySymbols(on);ke{const{prefixCls:Q,selectPrefixCls:W,className:de,rootClassName:ke,style:yt,size:We,locale:Fe,selectComponentClass:ct,responsive:It,showSizeChanger:kt}=on,Ot=tf(on,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Kt}=(0,ic.Z)(It),{getPrefixCls:en,direction:pn,pagination:Wn={}}=v.useContext(il.E_),ar=en("pagination",Q),[Cr,mr]=Vf(ar),Hn=kt!=null?kt:Wn.showSizeChanger,gr=v.useMemo(()=>{const hi=v.createElement("span",{className:`${ar}-item-ellipsis`},"\u2022\u2022\u2022"),bo=v.createElement("button",{className:`${ar}-item-link`,type:"button",tabIndex:-1},pn==="rtl"?v.createElement(yh.Z,null):v.createElement(Uh.Z,null)),br=v.createElement("button",{className:`${ar}-item-link`,type:"button",tabIndex:-1},pn==="rtl"?v.createElement(Uh.Z,null):v.createElement(yh.Z,null)),mi=v.createElement("a",{className:`${ar}-item-link`},v.createElement("div",{className:`${ar}-item-container`},pn==="rtl"?v.createElement(yc,{className:`${ar}-item-link-icon`}):v.createElement(Md,{className:`${ar}-item-link-icon`}),hi)),Er=v.createElement("a",{className:`${ar}-item-link`},v.createElement("div",{className:`${ar}-item-container`},pn==="rtl"?v.createElement(Md,{className:`${ar}-item-link-icon`}):v.createElement(yc,{className:`${ar}-item-link-icon`}),hi));return{prevIcon:bo,nextIcon:br,jumpPrevIcon:mi,jumpNextIcon:Er}},[pn,ar]),[Tr]=(0,xf.Z)("Pagination",Eu.Z),wi=Object.assign(Object.assign({},Tr),Fe),zi=(0,hu.Z)(We),ei=zi==="small"||!!(Kt&&!zi&&It),li=en("select",W),ci=Ne()({[`${ar}-mini`]:ei,[`${ar}-rtl`]:pn==="rtl"},Wn==null?void 0:Wn.className,de,ke,mr),ji=Object.assign(Object.assign({},Wn==null?void 0:Wn.style),yt);return Cr(v.createElement(Sd,Object.assign({},gr,Ot,{style:ji,prefixCls:ar,selectPrefixCls:li,className:ci,selectComponentClass:ct||(ei?Pu:Ah),locale:wi,showSizeChanger:Hn})))},Dh=Fd,ff=_(27324),lf=_(45844);function Zc(on){return function(W){let{prefixCls:de,onExpand:ke,record:yt,expanded:We,expandable:Fe}=W;const ct=`${de}-row-expand-icon`;return v.createElement("button",{type:"button",onClick:It=>{ke(yt,It),It.stopPropagation()},className:Ne()(ct,{[`${ct}-spaced`]:!Fe,[`${ct}-expanded`]:Fe&&We,[`${ct}-collapsed`]:Fe&&!We}),"aria-label":We?on.collapse:on.expand,"aria-expanded":We})}}var Jc=Zc;function vd(on){return(W,de)=>{const ke=W.querySelector(`.${on}-container`);let yt=de;if(ke){const We=getComputedStyle(ke),Fe=parseInt(We.borderLeftWidth,10),ct=parseInt(We.borderRightWidth,10);yt=de-Fe-ct}return yt}}function pl(on,Q){return"key"in on&&on.key!==void 0&&on.key!==null?on.key:on.dataIndex?Array.isArray(on.dataIndex)?on.dataIndex.join("."):on.dataIndex:Q}function ps(on,Q){return Q?`${Q}-${on}`:`${on}`}function bc(on,Q){return typeof on=="function"?on(Q):on}function Zi(on,Q){const W=bc(on,Q);return Object.prototype.toString.call(W)==="[object Object]"?"":W}var $p=_(58825),Wu=function(Q,W){return v.createElement(Lc.Z,(0,T.Z)({},Q,{ref:W,icon:$p.Z}))},uh=v.forwardRef(Wu),vp=_(78958);function yp(on){const Q=v.useRef(on),W=(0,vp.Z)();return[()=>Q.current,de=>{Q.current=de,W()}]}var vg=_(34745),uf=_(71025),sp=_(80235),Vp=_(12781),ap=_(268),yg={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"},Zf=yg,qf=function(Q,W){return v.createElement(Lc.Z,(0,T.Z)({},Q,{ref:W,icon:Zf}))},Bh=v.forwardRef(qf),kp={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"},pg=kp,Mp=function(Q,W){return v.createElement(Lc.Z,(0,T.Z)({},Q,{ref:W,icon:pg}))},bd=v.forwardRef(Mp),Qp={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"},Ih=Qp,yf=function(Q,W){return v.createElement(Lc.Z,(0,T.Z)({},Q,{ref:W,icon:Ih}))},Jf=v.forwardRef(yf),wu={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"},Tp=wu,_p=function(Q,W){return v.createElement(Lc.Z,(0,T.Z)({},Q,{ref:W,icon:Tp}))},jf=v.forwardRef(_p),Eh=_(8418),Mh=_(84608),Wh=_(75692),bh=_(63797);const Vd=new Mh.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Rp=(on,Q)=>({[`.${on}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Q.motionDurationSlow}`}}}),qp=(on,Q)=>({[`.${on}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Q.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Q.lineWidthBold}px solid ${Q.colorPrimary}`,borderRadius:"50%",content:'""'}}}),mh=(on,Q)=>{const{treeCls:W,treeNodeCls:de,treeNodePadding:ke,titleHeight:yt,nodeSelectedBg:We,nodeHoverBg:Fe}=Q,ct=Q.paddingXS;return{[W]:Object.assign(Object.assign({},(0,Aa.Wf)(Q)),{background:Q.colorBgContainer,borderRadius:Q.borderRadius,transition:`background-color ${Q.motionDurationSlow}`,[`&${W}-rtl`]:{[`${W}-switcher`]:{"&_close":{[`${W}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${W}-active-focused)`]:Object.assign({},(0,Aa.oN)(Q)),[`${W}-list-holder-inner`]:{alignItems:"flex-start"},[`&${W}-block-node`]:{[`${W}-list-holder-inner`]:{alignItems:"stretch",[`${W}-node-content-wrapper`]:{flex:"auto"},[`${de}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:ke,insetInlineStart:0,border:`1px solid ${Q.colorPrimary}`,opacity:0,animationName:Vd,animationDuration:Q.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${de}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${ke}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${W}-node-content-wrapper`]:{color:Q.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${W}-node-content-wrapper`]:Object.assign({},(0,Aa.oN)(Q)),[`&:not(${de}-disabled).filter-node ${W}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${W}-draggable-icon`]:{flexShrink:0,width:yt,lineHeight:`${yt}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${Q.motionDurationSlow}`,[`${de}:hover &`]:{opacity:.45}},[`&${de}-disabled`]:{[`${W}-draggable-icon`]:{visibility:"hidden"}}}},[`${W}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:yt}},[`${W}-draggable-icon`]:{visibility:"hidden"},[`${W}-switcher`]:Object.assign(Object.assign({},Rp(on,Q)),{position:"relative",flex:"none",alignSelf:"stretch",width:yt,margin:0,lineHeight:`${yt}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${W}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:Q.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:yt/2,bottom:-ke,marginInlineStart:-1,borderInlineEnd:`1px solid ${Q.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:yt/2*.8,height:yt/2,borderBottom:`1px solid ${Q.colorBorder}`,content:'""'}}}),[`${W}-checkbox`]:{top:"initial",marginInlineEnd:ct,alignSelf:"flex-start",marginTop:Q.marginXXS},[`${W}-node-content-wrapper, ${W}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:yt,margin:0,padding:`0 ${Q.paddingXS/2}px`,color:"inherit",lineHeight:`${yt}px`,background:"transparent",borderRadius:Q.borderRadius,cursor:"pointer",transition:`all ${Q.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Fe},[`&${W}-node-selected`]:{backgroundColor:We},[`${W}-iconEle`]:{display:"inline-block",width:yt,height:yt,lineHeight:`${yt}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${W}-unselectable ${W}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${W}-node-content-wrapper`]:Object.assign({lineHeight:`${yt}px`,userSelect:"none"},qp(on,Q)),[`${de}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${Q.colorPrimary}`}},"&-show-line":{[`${W}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:yt/2,bottom:-ke,borderInlineEnd:`1px solid ${Q.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${W}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${de}-leaf-last`]:{[`${W}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${yt/2}px !important`}}}}})}},Df=on=>{const{treeCls:Q,treeNodeCls:W,treeNodePadding:de,directoryNodeSelectedBg:ke,directoryNodeSelectedColor:yt}=on;return{[`${Q}${Q}-directory`]:{[W]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:de,insetInlineStart:0,transition:`background-color ${on.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:on.controlItemBgHover}},"> *":{zIndex:1},[`${Q}-switcher`]:{transition:`color ${on.motionDurationMid}`},[`${Q}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${Q}-node-selected`]:{color:yt,background:"transparent"}},"&-selected":{[` &:hover::before, &::before - `]:{background:$t},[`${vt}-switcher`]:{color:Gt},[`${vt}-node-content-wrapper`]:{color:Gt,background:"transparent"}}}}}},gr=(Ye,vt)=>{const Ft=`.${Ye}`,Dt=`${Ft}-treenode`,$t=vt.paddingXS/2,Gt=(0,id.TS)(vt,{treeCls:Ft,treeNodeCls:Dt,treeNodePadding:$t});return[qn(Ye,Gt),ei(Gt)]},ss=Ye=>{const{controlHeightSM:vt}=Ye;return{titleHeight:vt,nodeHoverBg:Ye.controlItemBgHover,nodeSelectedBg:Ye.controlItemBgActive}};var ts=(0,vh.Z)("Tree",(Ye,vt)=>{let{prefixCls:Ft}=vt;return[{[Ye.componentCls]:(0,J.C2)(`${Ft}-checkbox`,Ye)},gr(Ft,Ye),(0,ae.Z)(Ye)]},Ye=>{const{colorTextLightSolid:vt,colorPrimary:Ft}=Ye;return Object.assign(Object.assign({},ss(Ye)),{directoryNodeSelectedColor:vt,directoryNodeSelectedBg:Ft})});const Is=4;function ca(Ye){const{dropPosition:vt,dropLevelOffset:Ft,prefixCls:Dt,indent:$t,direction:Gt="ltr"}=Ye,Nr=Gt==="ltr"?"left":"right",In=Gt==="ltr"?"right":"left",Tn={[Nr]:-Ft*$t+Is,[In]:0};switch(vt){case-1:Tn.top=-3;break;case 1:Tn.bottom=-3;break;default:Tn.bottom=-3,Tn[Nr]=$t+Is;break}return w.createElement("div",{style:Tn,className:`${Dt}-drop-indicator`})}var na={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"},Ko=na,Gs=function(vt,Ft){return w.createElement(Za.Z,(0,S.Z)({},vt,{ref:Ft,icon:Ko}))},Va=w.forwardRef(Gs),_l=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(vt,Ft){return w.createElement(Za.Z,(0,S.Z)({},vt,{ref:Ft,icon:xu}))},Cu=w.forwardRef(Tu),dc=m(15702),Hc=function(vt,Ft){return w.createElement(Za.Z,(0,S.Z)({},vt,{ref:Ft,icon:dc.Z}))},wc=w.forwardRef(Hc),hd=m(99486),ch=Ye=>{const{prefixCls:vt,switcherIcon:Ft,treeNodeProps:Dt,showLine:$t}=Ye,{isLeaf:Gt,expanded:Nr,loading:In}=Dt;if(In)return w.createElement(_l.Z,{className:`${vt}-switcher-loading-icon`});let Tn;if($t&&typeof $t=="object"&&(Tn=$t.showLeafIcon),Gt){if(!$t)return null;if(typeof Tn!="boolean"&&Tn){const Sr=typeof Tn=="function"?Tn(Dt):Tn,Lo=`${vt}-switcher-line-custom-icon`;return(0,hd.l$)(Sr)?(0,hd.Tm)(Sr,{className:Se()(Sr.props.className||"",Lo)}):Sr}return Tn?w.createElement(Ue,{className:`${vt}-switcher-line-icon`}):w.createElement("span",{className:`${vt}-switcher-leaf-line`})}const cn=`${vt}-switcher-icon`,Jn=typeof Ft=="function"?Ft(Dt):Ft;return(0,hd.l$)(Jn)?(0,hd.Tm)(Jn,{className:Se()(Jn.props.className||"",cn)}):Jn!==void 0?Jn:$t?Nr?w.createElement(Cu,{className:`${vt}-switcher-line-icon`}):w.createElement(wc,{className:`${vt}-switcher-line-icon`}):w.createElement(Va,{className:cn})},Xh=w.forwardRef((Ye,vt)=>{const{getPrefixCls:Ft,direction:Dt,virtual:$t,tree:Gt}=w.useContext(Pi.E_),{prefixCls:Nr,className:In,showIcon:Tn=!1,showLine:cn,switcherIcon:Jn,blockNode:Sr=!1,children:Lo,checkable:kt=!1,selectable:tr=!0,draggable:Pn,motion:ir,style:dr}=Ye,jr=Ft("tree",Nr),Ri=Ft(),Te=ir!=null?ir:Object.assign(Object.assign({},(0,X.Z)(Ri)),{motionAppear:!1}),qo=Object.assign(Object.assign({},Ye),{checkable:kt,selectable:tr,showIcon:Tn,motion:Te,blockNode:Sr,showLine:!!cn,dropIndicatorRender:ca}),[Zs,Sa]=ts(jr),da=w.useMemo(()=>{if(!Pn)return!1;let ma={};switch(typeof Pn){case"function":ma.nodeDraggable=Pn;break;case"object":ma=Object.assign({},Pn);break;default:break}return ma.icon!==!1&&(ma.icon=ma.icon||w.createElement(Rd,null)),ma},[Pn]),Rs=ma=>w.createElement(ch,{prefixCls:jr,switcherIcon:Jn,treeNodeProps:ma,showLine:cn});return Zs(w.createElement(D,Object.assign({itemHeight:20,ref:vt,virtual:$t},qo,{style:Object.assign(Object.assign({},Gt==null?void 0:Gt.style),dr),prefixCls:jr,className:Se()({[`${jr}-icon-hide`]:!Tn,[`${jr}-block-node`]:Sr,[`${jr}-unselectable`]:!tr,[`${jr}-rtl`]:Dt==="rtl"},Gt==null?void 0:Gt.className,In,Sa),direction:Dt,checkable:kt&&w.createElement("span",{className:`${jr}-checkbox-inner`}),selectable:tr,switcherIcon:Rs,draggable:da}),Lo))}),Nc;(function(Ye){Ye[Ye.None=0]="None",Ye[Ye.Start=1]="Start",Ye[Ye.End=2]="End"})(Nc||(Nc={}));function Uc(Ye,vt,Ft){const{key:Dt,children:$t}=Ft;function Gt(Nr){const In=Nr[Dt],Tn=Nr[$t];vt(In,Nr)!==!1&&Uc(Tn||[],vt,Ft)}Ye.forEach(Gt)}function tf(Ye){let{treeData:vt,expandedKeys:Ft,startKey:Dt,endKey:$t,fieldNames:Gt}=Ye;const Nr=[];let In=Nc.None;if(Dt&&Dt===$t)return[Dt];if(!Dt||!$t)return[];function Tn(cn){return cn===Dt||cn===$t}return Uc(vt,cn=>{if(In===Nc.End)return!1;if(Tn(cn)){if(Nr.push(cn),In===Nc.None)In=Nc.Start;else if(In===Nc.Start)return In=Nc.End,!1}else In===Nc.Start&&Nr.push(cn);return Ft.includes(cn)},(0,bc.w$)(Gt)),Nr}function dh(Ye,vt,Ft){const Dt=(0,ti.Z)(vt),$t=[];return Uc(Ye,(Gt,Nr)=>{const In=Dt.indexOf(Gt);return In!==-1&&($t.push(Nr),Dt.splice(In,1)),!!Dt.length},(0,bc.w$)(Ft)),$t}var nh=function(Ye,vt){var Ft={};for(var Dt in Ye)Object.prototype.hasOwnProperty.call(Ye,Dt)&&vt.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 Nr=w.useRef(),In=w.useRef(),Tn=()=>{const{keyEntities:da}=(0,bc.I8)(_h(Gt));let Rs;return Ft?Rs=Object.keys(da):Dt?Rs=bd(Gt.expandedKeys||$t||[],da):Rs=Gt.expandedKeys||$t,Rs},[cn,Jn]=w.useState(Gt.selectedKeys||Gt.defaultSelectedKeys||[]),[Sr,Lo]=w.useState(()=>Tn());w.useEffect(()=>{"selectedKeys"in Gt&&Jn(Gt.selectedKeys)},[Gt.selectedKeys]),w.useEffect(()=>{"expandedKeys"in Gt&&Lo(Gt.expandedKeys)},[Gt.expandedKeys]);const kt=(da,Rs)=>{var ma;return"expandedKeys"in Gt||Lo(da),(ma=Gt.onExpand)===null||ma===void 0?void 0:ma.call(Gt,da,Rs)},tr=(da,Rs)=>{var ma;const{multiple:ko,fieldNames:or}=Gt,{node:Ai,nativeEvent:Gi}=Rs,{key:ds=""}=Ai,Ps=_h(Gt),ha=Object.assign(Object.assign({},Rs),{selected:!0}),Yo=(Gi==null?void 0:Gi.ctrlKey)||(Gi==null?void 0:Gi.metaKey),sr=Gi==null?void 0:Gi.shiftKey;let io;ko&&Yo?(io=da,Nr.current=ds,In.current=io,ha.selectedNodes=dh(Ps,io,or)):ko&&sr?(io=Array.from(new Set([].concat((0,ti.Z)(In.current||[]),(0,ti.Z)(tf({treeData:Ps,expandedKeys:Sr,startKey:ds,endKey:Nr.current,fieldNames:or}))))),ha.selectedNodes=dh(Ps,io,or)):(io=[ds],Nr.current=ds,In.current=io,ha.selectedNodes=dh(Ps,io,or)),(ma=Gt.onSelect)===null||ma===void 0||ma.call(Gt,io,ha),"selectedKeys"in Gt||Jn(io)},{getPrefixCls:Pn,direction:ir}=w.useContext(Pi.E_),{prefixCls:dr,className:jr,showIcon:Ri=!0,expandAction:Te="click"}=Gt,qo=nh(Gt,["prefixCls","className","showIcon","expandAction"]),Zs=Pn("tree",dr),Sa=Se()(`${Zs}-directory`,{[`${Zs}-directory-rtl`]:ir==="rtl"},jr);return w.createElement(Xh,Object.assign({icon:zh,ref:vt,blockNode:!0},qo,{showIcon:Ri,expandAction:Te,prefixCls:Zs,className:Sa,expandedKeys:Sr,selectedKeys:cn,onSelect:tr,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:vt,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:vt,htmlSize:1,className:`${$t}-filter-dropdown-search-input`})):null}var Bd=yd;const Dc=Ye=>{const{keyCode:vt}=Ye;vt===Vh.Z.ENTER&&Ye.stopPropagation()};var ud=w.forwardRef((Ye,vt)=>w.createElement("div",{className:Ye.className,onClick:Ft=>Ft.stopPropagation(),onKeyDown:Dc,ref:vt},Ye.children));function Sc(Ye){let vt=[];return(Ye||[]).forEach(Ft=>{let{value:Dt,children:$t}=Ft;vt.push(Dt),$t&&(vt=[].concat((0,ti.Z)(vt),(0,ti.Z)(Sc($t))))}),vt}function Ro(Ye){return Ye.some(vt=>{let{children:Ft}=vt;return Ft})}function Gg(Ye,vt){return typeof vt=="string"||typeof vt=="number"?vt==null?void 0:vt.toString().toLowerCase().includes(Ye.trim().toLowerCase()):!1}function Hp(Ye){let{filters:vt,prefixCls:Ft,filteredKeys:Dt,filterMultiple:$t,searchValue:Gt,filterSearch:Nr}=Ye;return vt.map((In,Tn)=>{const cn=String(In.value);if(In.children)return{key:cn||Tn,label:In.text,popupClassName:`${Ft}-dropdown-submenu`,children:Hp({filters:In.children,prefixCls:Ft,filteredKeys:Dt,filterMultiple:$t,searchValue:Gt,filterSearch:Nr})};const Jn=$t?yf.Z:sh.ZP,Sr={key:In.value!==void 0?cn:Tn,label:w.createElement(w.Fragment,null,w.createElement(Jn,{checked:Dt.includes(cn)}),w.createElement("span",null,In.text))};return Gt.trim()?typeof Nr=="function"?Nr(Gt,In)?Sr:null:Gg(Gt,In.text)?Sr:null:Sr})}function mm(Ye){return Ye||[]}function Nm(Ye){var vt,Ft;const{tablePrefixCls:Dt,prefixCls:$t,column:Gt,dropdownPrefixCls:Nr,columnKey:In,filterMultiple:Tn,filterMode:cn="menu",filterSearch:Jn=!1,filterState:Sr,triggerFilter:Lo,locale:kt,children:tr,getPopupContainer:Pn}=Ye,{filterDropdownOpen:ir,onFilterDropdownOpenChange:dr,filterResetToDefaultFilteredValue:jr,defaultFilteredValue:Ri,filterDropdownVisible:Te,onFilterDropdownVisibleChange:qo}=Gt,[Zs,Sa]=w.useState(!1),da=!!(Sr&&(!((vt=Sr.filteredKeys)===null||vt===void 0)&&vt.length||Sr.forceFiltered)),Rs=tu=>{Sa(tu),dr==null||dr(tu),qo==null||qo(tu)},ma=(Ft=ir!=null?ir:Te)!==null&&Ft!==void 0?Ft:Zs,ko=Sr==null?void 0:Sr.filteredKeys,[or,Ai]=oh(mm(ko)),Gi=tu=>{let{selectedKeys:Js}=tu;Ai(Js)},ds=(tu,Js)=>{let{node:Gc,checked:Le}=Js;Gi(Tn?{selectedKeys:tu}:{selectedKeys:Le&&Gc.key?[Gc.key]:[]})};w.useEffect(()=>{Zs&&Gi({selectedKeys:mm(ko)})},[ko]);const[Ps,ha]=w.useState([]),Yo=tu=>{ha(tu)},[sr,io]=w.useState(""),ws=tu=>{const{value:Js}=tu.target;io(Js)};w.useEffect(()=>{Zs||io("")},[Zs]);const ul=tu=>{const Js=tu&&tu.length?tu:null;if(Js===null&&(!Sr||!Sr.filteredKeys)||(0,N.Z)(Js,Sr==null?void 0:Sr.filteredKeys,!0))return null;Lo({column:Gt,key:In,filteredKeys:Js})},Dl=()=>{Rs(!1),ul(or())},Ba=function(){let{confirm:tu,closeDropdown:Js}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};tu&&ul([]),Js&&Rs(!1),io(""),Ai(jr?(Ri||[]).map(Gc=>String(Gc)):[])},Ss=function(){let{closeDropdown:tu}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};tu&&Rs(!1),ul(or())},wl=tu=>{tu&&ko!==void 0&&Ai(mm(ko)),Rs(tu),!tu&&!Gt.filterDropdown&&Dl()},rl=Se()({[`${Nr}-menu-without-submenu`]:!Ro(Gt.filters||[])}),mc=tu=>{if(tu.target.checked){const Js=Sc(Gt==null?void 0:Gt.filters).map(Gc=>String(Gc));Ai(Js)}else Ai([])},pl=tu=>{let{filters:Js}=tu;return(Js||[]).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=pl({filters:Gc.children})),et})},oc=tu=>{var Js;return Object.assign(Object.assign({},tu),{text:tu.title,value:tu.key,children:((Js=tu.children)===null||Js===void 0?void 0:Js.map(Gc=>oc(Gc)))||[]})};let Ca;if(typeof Gt.filterDropdown=="function")Ca=Gt.filterDropdown({prefixCls:`${Nr}-custom`,setSelectedKeys:tu=>Gi({selectedKeys:tu}),selectedKeys:or(),confirm:Ss,clearFilters:Ba,filters:Gt.filters,visible:ma,close:()=>{Rs(!1)}});else if(Gt.filterDropdown)Ca=Gt.filterDropdown;else{const tu=or()||[],Js=()=>(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:sr,onChange:ws,tablePrefixCls:Dt,locale:kt}),w.createElement("div",{className:`${Dt}-filter-dropdown-tree`},Tn?w.createElement(yf.Z,{checked:tu.length===Sc(Gt.filters).length,indeterminate:tu.length>0&&tu.lengthtypeof Jn=="function"?Jn(sr,oc(Le)):Gg(sr,Le.title):void 0}))):w.createElement(w.Fragment,null,w.createElement(Bd,{filterSearch:Jn,value:sr,onChange:ws,tablePrefixCls:Dt,locale:kt}),w.createElement(Bh.Z,{selectable:!0,multiple:Tn,prefixCls:`${Nr}-menu`,className:rl,onSelect:Gi,onDeselect:Gi,selectedKeys:tu,getPopupContainer:Pn,openKeys:Ps,onOpenChange:Yo,items:Hp({filters:Gt.filters||[],filterSearch:Jn,prefixCls:$t,filteredKeys:or(),filterMultiple:Tn,searchValue:sr})})),Gc=()=>jr?(0,N.Z)((Ri||[]).map(Le=>String(Le)),tu,!0):tu.length===0;Ca=w.createElement(w.Fragment,null,Js(),w.createElement("div",{className:`${$t}-dropdown-btns`},w.createElement(Vf.ZP,{type:"link",size:"small",disabled:Gc(),onClick:()=>Ba()},kt.filterReset),w.createElement(Vf.ZP,{type:"primary",size:"small",onClick:Dl},kt.filterConfirm)))}Gt.filterDropdown&&(Ca=w.createElement(Kf.J,{selectable:void 0},Ca));const qu=()=>w.createElement(ud,{className:`${$t}-dropdown`},Ca);let $l;typeof Gt.filterIcon=="function"?$l=Gt.filterIcon(da):Gt.filterIcon?$l=Gt.filterIcon:$l=w.createElement(Vd,null);const{direction:su}=w.useContext(Pi.E_);return w.createElement("div",{className:`${$t}-column`},w.createElement("span",{className:`${Dt}-column-title`},tr),w.createElement(Uh.Z,{dropdownRender:qu,trigger:["click"],open:ma,onOpenChange:wl,getPopupContainer:Pn,placement:su==="rtl"?"bottomLeft":"bottomRight"},w.createElement("span",{role:"button",tabIndex:-1,className:Se()(`${$t}-trigger`,{active:da}),onClick:tu=>{tu.stopPropagation()}},$l)))}var Zd=Nm;function Fp(Ye,vt,Ft){let Dt=[];return(Ye||[]).forEach(($t,Gt)=>{var Nr;const In=ja(Gt,Ft);if($t.filters||"filterDropdown"in $t||"onFilter"in $t)if("filteredValue"in $t){let Tn=$t.filteredValue;"filterDropdown"in $t||(Tn=(Nr=Tn==null?void 0:Tn.map(String))!==null&&Nr!==void 0?Nr:Tn),Dt.push({column:$t,key:Yd($t,In),filteredKeys:Tn,forceFiltered:$t.filtered})}else Dt.push({column:$t,key:Yd($t,In),filteredKeys:vt&&$t.defaultFilteredValue?$t.defaultFilteredValue:void 0,forceFiltered:$t.filtered});"children"in $t&&(Dt=[].concat((0,ti.Z)(Dt),(0,ti.Z)(Fp($t.children,vt,In))))}),Dt}function zf(Ye,vt,Ft,Dt,$t,Gt,Nr,In){return Ft.map((Tn,cn)=>{const Jn=ja(cn,In),{filterMultiple:Sr=!0,filterMode:Lo,filterSearch:kt}=Tn;let tr=Tn;if(tr.filters||tr.filterDropdown){const Pn=Yd(tr,Jn),ir=Dt.find(dr=>{let{key:jr}=dr;return Pn===jr});tr=Object.assign(Object.assign({},tr),{title:dr=>w.createElement(Zd,{tablePrefixCls:Ye,prefixCls:`${Ye}-filter`,dropdownPrefixCls:vt,column:tr,columnKey:Pn,filterState:ir,filterMultiple:Sr,filterMode:Lo,filterSearch:kt,triggerFilter:Gt,locale:$t,getPopupContainer:Nr},ru(Tn.title,dr))})}return"children"in tr&&(tr=Object.assign(Object.assign({},tr),{children:zf(Ye,vt,tr.children,Dt,$t,Gt,Nr,Jn)})),tr})}function bf(Ye){const vt={};return Ye.forEach(Ft=>{let{key:Dt,filteredKeys:$t,column:Gt}=Ft;const Nr=Dt,{filters:In,filterDropdown:Tn}=Gt;if(Tn)vt[Nr]=$t||null;else if(Array.isArray($t)){const cn=Sc(In);vt[Nr]=cn.filter(Jn=>$t.includes(String(Jn)))}else vt[Nr]=null}),vt}function Jp(Ye,vt){return vt.reduce((Ft,Dt)=>{const{column:{onFilter:$t,filters:Gt},filteredKeys:Nr}=Dt;return $t&&Nr&&Nr.length?Ft.filter(In=>Nr.some(Tn=>{const cn=Sc(Gt),Jn=cn.findIndex(Lo=>String(Lo)===String(Tn)),Sr=Jn!==-1?cn[Jn]:Tn;return $t(Sr,In)})):Ft},Ye)}const Bp=Ye=>Ye.flatMap(vt=>"children"in vt?[vt].concat((0,ti.Z)(Bp(vt.children||[]))):[vt]);function Hf(Ye){let{prefixCls:vt,dropdownPrefixCls:Ft,mergedColumns:Dt,onFilterChange:$t,getPopupContainer:Gt,locale:Nr}=Ye;const In=(0,so.ln)("Table"),Tn=w.useMemo(()=>Bp(Dt||[]),[Dt]),[cn,Jn]=w.useState(()=>Fp(Tn,!0)),Sr=w.useMemo(()=>{const Pn=Fp(Tn,!1);if(Pn.length===0)return Pn;let ir=!0,dr=!0;if(Pn.forEach(jr=>{let{filteredKeys:Ri}=jr;Ri!==void 0?ir=!1:dr=!1}),ir){const jr=(Tn||[]).map((Ri,Te)=>Yd(Ri,ja(Te)));return cn.filter(Ri=>{let{key:Te}=Ri;return jr.includes(Te)}).map(Ri=>{const Te=Tn[jr.findIndex(qo=>qo===Ri.key)];return Object.assign(Object.assign({},Ri),{column:Object.assign(Object.assign({},Ri.column),Te),forceFiltered:Te.filtered})})}return Pn},[Tn,cn]),Lo=w.useMemo(()=>bf(Sr),[Sr]),kt=Pn=>{const ir=Sr.filter(dr=>{let{key:jr}=dr;return jr!==Pn.key});ir.push(Pn),Jn(ir),$t(bf(ir),ir)};return[Pn=>zf(vt,Ft,Pn,Sr,Nr,kt,Gt),Sr,Lo]}var df=Hf;function af(Ye,vt,Ft){const Dt=w.useRef({});function $t(Gt){if(!Dt.current||Dt.current.data!==Ye||Dt.current.childrenColumnName!==vt||Dt.current.getRowKey!==Ft){let In=function(Tn){Tn.forEach((cn,Jn)=>{const Sr=Ft(cn,Jn);Nr.set(Sr,cn),cn&&typeof cn=="object"&&vt in cn&&In(cn[vt]||[])})};const Nr=new Map;In(Ye),Dt.current={data:Ye,childrenColumnName:vt,kvMap:Nr,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 vt=1;vt{const $t=Ft[Dt];$t!==void 0&&(Ye[Dt]=$t)})}return Ye}var ap=jg,lg=function(Ye,vt){var Ft={};for(var Dt in Ye)Object.prototype.hasOwnProperty.call(Ye,Dt)&&vt.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,vt,Ft){const Dt=Ft&&typeof Ft=="object"?Ft:{},{total:$t=0}=Dt,Gt=lg(Dt,["total"]),[Nr,In]=(0,w.useState)(()=>({current:"defaultCurrent"in Gt?Gt.defaultCurrent:1,pageSize:"defaultPageSize"in Gt?Gt.defaultPageSize:Id})),Tn=ap(Nr,Gt,{total:$t>0?$t:Ye}),cn=Math.ceil(($t||Ye)/Tn.pageSize);Tn.current>cn&&(Tn.current=cn||1);const Jn=(Lo,kt)=>{In({current:Lo!=null?Lo:1,pageSize:kt||Tn.pageSize})},Sr=(Lo,kt)=>{var tr;Ft&&((tr=Ft.onChange)===null||tr===void 0||tr.call(Ft,Lo,kt)),Jn(Lo,kt),vt(Lo,kt||(Tn==null?void 0:Tn.pageSize))};return Ft===!1?[{},()=>{}]:[Object.assign(Object.assign({},Tn),{onChange:Sr}),Jn]}var zm=Im,im=m(42884),Cm=m(41760);const vm={},Lg="SELECT_ALL",ug="SELECT_INVERT",om="SELECT_NONE",Qg=[],Lm=(Ye,vt)=>{let Ft=[];return(vt||[]).forEach(Dt=>{Ft.push(Dt),Dt&&typeof Dt=="object"&&Ye in Dt&&(Ft=[].concat((0,ti.Z)(Ft),(0,ti.Z)(Lm(Ye,Dt[Ye]))))}),Ft};var Sg=(Ye,vt)=>{const{preserveSelectedRowKeys:Ft,selectedRowKeys:Dt,defaultSelectedRowKeys:$t,getCheckboxProps:Gt,onChange:Nr,onSelect:In,onSelectAll:Tn,onSelectInvert:cn,onSelectNone:Jn,onSelectMultiple:Sr,columnWidth:Lo,type:kt,selections:tr,fixed:Pn,renderCell:ir,hideSelectAll:dr,checkStrictly:jr=!0}=vt||{},{prefixCls:Ri,data:Te,pageData:qo,getRecordByKey:Zs,getRowKey:Sa,expandType:da,childrenColumnName:Rs,locale:ma,getPopupContainer:ko}=Ye,or=(0,so.ln)("Table"),[Ai,Gi]=(0,Cm.Z)(Dt||$t||Qg,{value:Dt}),ds=w.useRef(new Map),Ps=(0,w.useCallback)(Ca=>{if(Ft){const qu=new Map;Ca.forEach($l=>{let su=Zs($l);!su&&ds.current.has($l)&&(su=ds.current.get($l)),qu.set($l,su)}),ds.current=qu}},[Zs,Ft]);w.useEffect(()=>{Ps(Ai)},[Ai]);const{keyEntities:ha}=(0,w.useMemo)(()=>{if(jr)return{keyEntities:null};let Ca=Te;if(Ft){const qu=new Set(Te.map((su,tu)=>Sa(su,tu))),$l=Array.from(ds.current).reduce((su,tu)=>{let[Js,Gc]=tu;return qu.has(Js)?su:su.concat(Gc)},[]);Ca=[].concat((0,ti.Z)(Ca),(0,ti.Z)($l))}return(0,bc.I8)(Ca,{externalGetKey:Sa,childrenPropName:Rs})},[Te,Sa,jr,Rs,Ft]),Yo=(0,w.useMemo)(()=>Lm(Rs,qo),[Rs,qo]),sr=(0,w.useMemo)(()=>{const Ca=new Map;return Yo.forEach((qu,$l)=>{const su=Sa(qu,$l),tu=(Gt?Gt(qu):null)||{};Ca.set(su,tu)}),Ca},[Yo,Sa,Gt]),io=(0,w.useCallback)(Ca=>{var qu;return!!(!((qu=sr.get(Sa(Ca)))===null||qu===void 0)&&qu.disabled)},[sr,Sa]),[ws,ul]=(0,w.useMemo)(()=>{if(jr)return[Ai||[],[]];const{checkedKeys:Ca,halfCheckedKeys:qu}=(0,$c.S)(Ai,!0,ha,io);return[Ca||[],qu]},[Ai,jr,ha,io]),Dl=(0,w.useMemo)(()=>{const Ca=kt==="radio"?ws.slice(0,1):ws;return new Set(Ca)},[ws,kt]),Ba=(0,w.useMemo)(()=>kt==="radio"?new Set:new Set(ul),[ul,kt]),[Ss,wl]=(0,w.useState)(null);w.useEffect(()=>{vt||Gi(Qg)},[!!vt]);const rl=(0,w.useCallback)((Ca,qu)=>{let $l,su;Ps(Ca),Ft?($l=Ca,su=Ca.map(tu=>ds.current.get(tu))):($l=[],su=[],Ca.forEach(tu=>{const Js=Zs(tu);Js!==void 0&&($l.push(tu),su.push(Js))})),Gi($l),Nr==null||Nr($l,su,{type:qu})},[Gi,Zs,Nr,Ft]),mc=(0,w.useCallback)((Ca,qu,$l,su)=>{if(In){const tu=$l.map(Js=>Zs(Js));In(Zs(Ca),qu,tu,su)}rl($l,"single")},[In,Zs,rl]),pl=(0,w.useMemo)(()=>!tr||dr?null:(tr===!0?[Lg,ug,om]:tr).map(qu=>qu===Lg?{key:"all",text:ma.selectionAll,onSelect(){rl(Te.map(($l,su)=>Sa($l,su)).filter($l=>{const su=sr.get($l);return!(su!=null&&su.disabled)||Dl.has($l)}),"all")}}:qu===ug?{key:"invert",text:ma.selectInvert,onSelect(){const $l=new Set(Dl);qo.forEach((tu,Js)=>{const Gc=Sa(tu,Js),Le=sr.get(Gc);Le!=null&&Le.disabled||($l.has(Gc)?$l.delete(Gc):$l.add(Gc))});const su=Array.from($l);cn&&(or.deprecated(!1,"onSelectInvert","onChange"),cn(su)),rl(su,"invert")}}:qu===om?{key:"none",text:ma.selectNone,onSelect(){Jn==null||Jn(),rl(Array.from(Dl).filter($l=>{const su=sr.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,Js=new Array(tu),Gc=0;Gc{var qu;if(!vt)return Ca.filter(Aa=>Aa!==vm);let $l=(0,ti.Z)(Ca);const su=new Set(Dl),tu=Yo.map(Sa).filter(Aa=>!sr.get(Aa).disabled),Js=tu.every(Aa=>su.has(Aa)),Gc=tu.some(Aa=>su.has(Aa)),Le=()=>{const Aa=[];Js?tu.forEach(Ql=>{su.delete(Ql),Aa.push(Ql)}):tu.forEach(Ql=>{su.has(Ql)||(su.add(Ql),Aa.push(Ql))});const bl=Array.from(su);Tn==null||Tn(!Js,bl.map(Ql=>Zs(Ql)),Aa.map(Ql=>Zs(Ql))),rl(bl,"all"),wl(null)};let Me;if(kt!=="radio"){let Aa;if(pl){const Xa={getPopupContainer:ko,items:pl.map((vr,qa)=>{const{key:Ta,text:Du,onSelect:Wc}=vr;return{key:Ta!=null?Ta:qa,onClick:()=>{Wc==null||Wc(tu)},label:Du}})};Aa=w.createElement("div",{className:`${Ri}-selection-extra`},w.createElement(Uh.Z,{menu:Xa,getPopupContainer:ko},w.createElement("span",null,w.createElement(im.Z,null))))}const bl=Yo.map((Xa,vr)=>{const qa=Sa(Xa,vr),Ta=sr.get(qa)||{};return Object.assign({checked:su.has(qa)},Ta)}).filter(Xa=>{let{disabled:vr}=Xa;return vr}),Ql=!!bl.length&&bl.length===Yo.length,Ju=Ql&&bl.every(Xa=>{let{checked:vr}=Xa;return vr}),As=Ql&&bl.some(Xa=>{let{checked:vr}=Xa;return vr});Me=!dr&&w.createElement("div",{className:`${Ri}-selection`},w.createElement(yf.Z,{checked:Ql?Ju:!!Yo.length&&Js,indeterminate:Ql?!Ju&&As:!Js&&Gc,onChange:Le,disabled:Yo.length===0||Ql,"aria-label":Aa?"Custom selection":"Select all",skipGroup:!0}),Aa)}let et;kt==="radio"?et=(Aa,bl,Ql)=>{const Ju=Sa(bl,Ql),As=su.has(Ju);return{node:w.createElement(sh.ZP,Object.assign({},sr.get(Ju),{checked:As,onClick:Xa=>Xa.stopPropagation(),onChange:Xa=>{su.has(Ju)||mc(Ju,!0,[Ju],Xa.nativeEvent)}})),checked:As}}:et=(Aa,bl,Ql)=>{var Ju;const As=Sa(bl,Ql),Xa=su.has(As),vr=Ba.has(As),qa=sr.get(As);let Ta;return da==="nest"?Ta=vr:Ta=(Ju=qa==null?void 0:qa.indeterminate)!==null&&Ju!==void 0?Ju:vr,{node:w.createElement(yf.Z,Object.assign({},qa,{indeterminate:Ta,checked:Xa,skipGroup:!0,onClick:Du=>Du.stopPropagation(),onChange:Du=>{let{nativeEvent:Wc}=Du;const{shiftKey:os}=Wc;let Mo=-1,ks=-1;if(os&&jr){const Da=new Set([Ss,As]);tu.some((Na,js)=>{if(Da.has(Na))if(Mo===-1)Mo=js;else return ks=js,!0;return!1})}if(ks!==-1&&Mo!==ks&&jr){const Da=tu.slice(Mo,ks+1),Na=[];Xa?Da.forEach(bs=>{su.has(bs)&&(Na.push(bs),su.delete(bs))}):Da.forEach(bs=>{su.has(bs)||(Na.push(bs),su.add(bs))});const js=Array.from(su);Sr==null||Sr(!Xa,js.map(bs=>Zs(bs)),Na.map(bs=>Zs(bs))),rl(js,"multiple")}else{const Da=ws;if(jr){const Na=Xa?td(Da,As):Dp(Da,As);mc(As,!Xa,Na,Wc)}else{const Na=(0,$c.S)([].concat((0,ti.Z)(Da),[As]),!0,ha,io),{checkedKeys:js,halfCheckedKeys:bs}=Na;let Qi=js;if(Xa){const ar=new Set(js);ar.delete(As),Qi=(0,$c.S)(Array.from(ar),{checked:!1,halfCheckedKeys:bs},ha,io).checkedKeys}mc(As,!Xa,Qi,Wc)}}wl(Xa?null:As)}})),checked:Xa}};const hn=(Aa,bl,Ql)=>{const{node:Ju,checked:As}=et(Aa,bl,Ql);return ir?ir(As,bl,Ql,Ju):Ju};if(!$l.includes(vm))if($l.findIndex(Aa=>{var bl;return((bl=Aa[$n])===null||bl===void 0?void 0:bl.columnType)==="EXPAND_COLUMN"})===0){const[Aa,...bl]=$l;$l=[Aa,vm].concat((0,ti.Z)(bl))}else $l=[vm].concat((0,ti.Z)($l));const Or=$l.indexOf(vm);$l=$l.filter((Aa,bl)=>Aa!==vm||bl===Or);const wn=$l[Or-1],li=$l[Or+1];let Fi=Pn;Fi===void 0&&((li==null?void 0:li.fixed)!==void 0?Fi=li.fixed:(wn==null?void 0:wn.fixed)!==void 0&&(Fi=wn.fixed)),Fi&&wn&&((qu=wn[$n])===null||qu===void 0?void 0:qu.columnType)==="EXPAND_COLUMN"&&wn.fixed===void 0&&(wn.fixed=Fi);const _s=Se()(`${Ri}-selection-col`,{[`${Ri}-selection-col-with-dropdown`]:tr&&kt==="checkbox"}),Ea={fixed:Fi,width:Lo,className:`${Ri}-selection-column`,title:vt.columnTitle||Me,render:hn,onCell:vt.onCell,[$n]:{className:_s}};return $l.map(Aa=>Aa===vm?Ea:Aa)},[Sa,Yo,vt,ws,Dl,Ba,Lo,pl,da,Ss,sr,Sr,mc,io]),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(vt,Ft){return w.createElement(Za.Z,(0,S.Z)({},vt,{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(vt,Ft){return w.createElement(Za.Z,(0,S.Z)({},vt,{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,vt){return vt?Ye[Ye.indexOf(vt)+1]:Ye[0]}function Vg(Ye,vt,Ft){let Dt=[];function $t(Gt,Nr){Dt.push({column:Gt,key:Yd(Gt,Nr),multiplePriority:Gm(Gt),sortOrder:Gt.sortOrder})}return(Ye||[]).forEach((Gt,Nr)=>{const In=ja(Nr,Ft);Gt.children?("sortOrder"in Gt&&$t(Gt,In),Dt=[].concat((0,ti.Z)(Dt),(0,ti.Z)(Vg(Gt.children,vt,In)))):Gt.sorter&&("sortOrder"in Gt?$t(Gt,In):vt&&Gt.defaultSortOrder&&Dt.push({column:Gt,key:Yd(Gt,In),multiplePriority:Gm(Gt),sortOrder:Gt.defaultSortOrder}))}),Dt}function e0(Ye,vt,Ft,Dt,$t,Gt,Nr,In){return(vt||[]).map((Tn,cn)=>{const Jn=ja(cn,In);let Sr=Tn;if(Sr.sorter){const Lo=Sr.sortDirections||$t,kt=Sr.showSorterTooltip===void 0?Nr:Sr.showSorterTooltip,tr=Yd(Sr,Jn),Pn=Ft.find(da=>{let{key:Rs}=da;return Rs===tr}),ir=Pn?Pn.sortOrder:null,dr=K0(Lo,ir);let jr;if(Tn.sortIcon)jr=Tn.sortIcon({sortOrder:ir});else{const da=Lo.includes(Wm)&&w.createElement(M0,{className:Se()(`${Ye}-column-sorter-up`,{active:ir===Wm})}),Rs=Lo.includes(m0)&&w.createElement(Sp,{className:Se()(`${Ye}-column-sorter-down`,{active:ir===m0})});jr=w.createElement("span",{className:Se()(`${Ye}-column-sorter`,{[`${Ye}-column-sorter-full`]:!!(da&&Rs)})},w.createElement("span",{className:`${Ye}-column-sorter-inner`,"aria-hidden":"true"},da,Rs))}const{cancelSort:Ri,triggerAsc:Te,triggerDesc:qo}=Gt||{};let Zs=Ri;dr===m0?Zs=qo:dr===Wm&&(Zs=Te);const Sa=typeof kt=="object"?kt:{title:Zs};Sr=Object.assign(Object.assign({},Sr),{className:Se()(Sr.className,{[`${Ye}-column-sort`]:ir}),title:da=>{const Rs=w.createElement("div",{className:`${Ye}-column-sorters`},w.createElement("span",{className:`${Ye}-column-title`},ru(Tn.title,da)),jr);return kt?w.createElement(Kg.Z,Object.assign({},Sa),Rs):Rs},onHeaderCell:da=>{const Rs=Tn.onHeaderCell&&Tn.onHeaderCell(da)||{},ma=Rs.onClick,ko=Rs.onKeyDown;Rs.onClick=Gi=>{Dt({column:Tn,key:tr,sortOrder:dr,multiplePriority:Gm(Tn)}),ma==null||ma(Gi)},Rs.onKeyDown=Gi=>{Gi.keyCode===Vh.Z.ENTER&&(Dt({column:Tn,key:tr,sortOrder:dr,multiplePriority:Gm(Tn)}),ko==null||ko(Gi))};const or=zl(Tn.title,{}),Ai=or==null?void 0:or.toString();return ir?Rs["aria-sort"]=ir==="ascend"?"ascending":"descending":Rs["aria-label"]=Ai||"",Rs.className=Se()(Rs.className,`${Ye}-column-has-sorters`),Rs.tabIndex=0,Tn.ellipsis&&(Rs.title=(or!=null?or:"").toString()),Rs}})}return"children"in Sr&&(Sr=Object.assign(Object.assign({},Sr),{children:e0(Ye,Sr.children,Ft,Dt,$t,Gt,Nr,Jn)})),Sr})}function ym(Ye){const{column:vt,sortOrder:Ft}=Ye;return{column:vt,order:Ft,field:vt.dataIndex,columnKey:vt.key}}function jm(Ye){const vt=Ye.filter(Ft=>{let{sortOrder:Dt}=Ft;return Dt}).map(ym);return vt.length===0&&Ye.length?Object.assign(Object.assign({},ym(Ye[Ye.length-1])),{column:void 0}):vt.length<=1?vt[0]||{}:vt}function yp(Ye,vt,Ft){const Dt=vt.slice().sort((Nr,In)=>In.multiplePriority-Nr.multiplePriority),$t=Ye.slice(),Gt=Dt.filter(Nr=>{let{column:{sorter:In},sortOrder:Tn}=Nr;return $d(In)&&Tn});return Gt.length?$t.sort((Nr,In)=>{for(let Tn=0;Tn{const In=Nr[Ft];return In?Object.assign(Object.assign({},Nr),{[Ft]:yp(In,vt,Ft)}):Nr}):$t}function sm(Ye){let{prefixCls:vt,mergedColumns:Ft,onSorterChange:Dt,sortDirections:$t,tableLocale:Gt,showSorterTooltip:Nr}=Ye;const[In,Tn]=w.useState(Vg(Ft,!0)),cn=w.useMemo(()=>{let tr=!0;const Pn=Vg(Ft,!1);if(!Pn.length)return In;const ir=[];function dr(Ri){tr?ir.push(Ri):ir.push(Object.assign(Object.assign({},Ri),{sortOrder:null}))}let jr=null;return Pn.forEach(Ri=>{jr===null?(dr(Ri),Ri.sortOrder&&(Ri.multiplePriority===!1?tr=!1:jr=!0)):(jr&&Ri.multiplePriority!==!1||(tr=!1),dr(Ri))}),ir},[Ft,In]),Jn=w.useMemo(()=>{const tr=cn.map(Pn=>{let{column:ir,sortOrder:dr}=Pn;return{column:ir,order:dr}});return{sortColumns:tr,sortColumn:tr[0]&&tr[0].column,sortOrder:tr[0]&&tr[0].order}},[cn]);function Sr(tr){let Pn;tr.multiplePriority===!1||!cn.length||cn[0].multiplePriority===!1?Pn=[tr]:Pn=[].concat((0,ti.Z)(cn.filter(ir=>{let{key:dr}=ir;return dr!==tr.key})),[tr]),Tn(Pn),Dt(jm(Pn),Pn)}return[tr=>e0(vt,tr,cn,Sr,$t,Gt,Nr),cn,Jn,()=>jm(cn)]}function Km(Ye,vt){return Ye.map(Ft=>{const Dt=Object.assign({},Ft);return Dt.title=ru(Ft.title,vt),"children"in Dt&&(Dt.children=Km(Dt.children,vt)),Dt})}function Ip(Ye){return[w.useCallback(Ft=>Km(Ft,Ye),[Ye])]}var Pg=Ki((Ye,vt)=>{const{_renderTimes:Ft}=Ye,{_renderTimes:Dt}=vt;return Ft!==Dt}),de=Cs((Ye,vt)=>{const{_renderTimes:Ft}=Ye,{_renderTimes:Dt}=vt;return Ft!==Dt}),H=m(64993),ut=Ye=>{const{componentCls:vt}=Ye,Ft=`${Ye.lineWidth}px ${Ye.lineType} ${Ye.tableBorderColor}`,Dt=($t,Gt,Nr)=>({[`&${vt}-${$t}`]:{[`> ${vt}-container`]:{[`> ${vt}-content, > ${vt}-body`]:{[` + `]:{background:ke},[`${Q}-switcher`]:{color:yt},[`${Q}-node-content-wrapper`]:{color:yt,background:"transparent"}}}}}},yd=(on,Q)=>{const W=`.${on}`,de=`${W}-treenode`,ke=Q.paddingXS/2,yt=(0,Hl.TS)(Q,{treeCls:W,treeNodeCls:de,treeNodePadding:ke});return[mh(on,yt),Df(yt)]},wd=on=>{const{controlHeightSM:Q}=on;return{titleHeight:Q,nodeHoverBg:on.controlItemBgHover,nodeSelectedBg:on.controlItemBgActive}};var Hf=(0,_u.Z)("Tree",(on,Q)=>{let{prefixCls:W}=Q;return[{[on.componentCls]:(0,Wh.C2)(`${W}-checkbox`,on)},yd(W,on),(0,bh.Z)(on)]},on=>{const{colorTextLightSolid:Q,colorPrimary:W}=on;return Object.assign(Object.assign({},wd(on)),{directoryNodeSelectedColor:Q,directoryNodeSelectedBg:W})});const sh=4;function Oc(on){const{dropPosition:Q,dropLevelOffset:W,prefixCls:de,indent:ke,direction:yt="ltr"}=on,We=yt==="ltr"?"left":"right",Fe=yt==="ltr"?"right":"left",ct={[We]:-W*ke+sh,[Fe]:0};switch(Q){case-1:ct.top=-3;break;case 1:ct.bottom=-3;break;default:ct.bottom=-3,ct[We]=ke+sh;break}return v.createElement("div",{style:ct,className:`${de}-drop-indicator`})}var Zh={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"},$d=Zh,zo=function(Q,W){return v.createElement(Lc.Z,(0,T.Z)({},Q,{ref:W,icon:$d}))},L=v.forwardRef(zo),U=_(38521),ae={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"},me=ae,ot=function(Q,W){return v.createElement(Lc.Z,(0,T.Z)({},Q,{ref:W,icon:me}))},dn=v.forwardRef(ot),tr=_(15702),Te=function(Q,W){return v.createElement(Lc.Z,(0,T.Z)({},Q,{ref:W,icon:tr.Z}))},D=v.forwardRef(Te),ie=_(37628),Oe=on=>{const{prefixCls:Q,switcherIcon:W,treeNodeProps:de,showLine:ke}=on,{isLeaf:yt,expanded:We,loading:Fe}=de;if(Fe)return v.createElement(U.Z,{className:`${Q}-switcher-loading-icon`});let ct;if(ke&&typeof ke=="object"&&(ct=ke.showLeafIcon),yt){if(!ke)return null;if(typeof ct!="boolean"&&ct){const Ot=typeof ct=="function"?ct(de):ct,Kt=`${Q}-switcher-line-custom-icon`;return(0,ie.l$)(Ot)?(0,ie.Tm)(Ot,{className:Ne()(Ot.props.className||"",Kt)}):Ot}return ct?v.createElement(Bh,{className:`${Q}-switcher-line-icon`}):v.createElement("span",{className:`${Q}-switcher-leaf-line`})}const It=`${Q}-switcher-icon`,kt=typeof W=="function"?W(de):W;return(0,ie.l$)(kt)?(0,ie.Tm)(kt,{className:Ne()(kt.props.className||"",It)}):kt!==void 0?kt:ke?We?v.createElement(dn,{className:`${Q}-switcher-line-icon`}):v.createElement(D,{className:`${Q}-switcher-line-icon`}):v.createElement(L,{className:It})},Zt=v.forwardRef((on,Q)=>{const{getPrefixCls:W,direction:de,virtual:ke,tree:yt}=v.useContext(il.E_),{prefixCls:We,className:Fe,showIcon:ct=!1,showLine:It,switcherIcon:kt,blockNode:Ot=!1,children:Kt,checkable:en=!1,selectable:pn=!0,draggable:Wn,motion:ar,style:Cr}=on,mr=W("tree",We),Hn=W(),gr=ar!=null?ar:Object.assign(Object.assign({},(0,Eh.Z)(Hn)),{motionAppear:!1}),Tr=Object.assign(Object.assign({},on),{checkable:en,selectable:pn,showIcon:ct,motion:gr,blockNode:Ot,showLine:!!It,dropIndicatorRender:Oc}),[wi,zi]=Hf(mr),ei=v.useMemo(()=>{if(!Wn)return!1;let ci={};switch(typeof Wn){case"function":ci.nodeDraggable=Wn;break;case"object":ci=Object.assign({},Wn);break;default:break}return ci.icon!==!1&&(ci.icon=ci.icon||v.createElement(jf,null)),ci},[Wn]),li=ci=>v.createElement(Oe,{prefixCls:mr,switcherIcon:kt,treeNodeProps:ci,showLine:It});return wi(v.createElement(ap.Z,Object.assign({itemHeight:20,ref:Q,virtual:ke},Tr,{style:Object.assign(Object.assign({},yt==null?void 0:yt.style),Cr),prefixCls:mr,className:Ne()({[`${mr}-icon-hide`]:!ct,[`${mr}-block-node`]:Ot,[`${mr}-unselectable`]:!pn,[`${mr}-rtl`]:de==="rtl"},yt==null?void 0:yt.className,Fe,zi),direction:de,checkable:en&&v.createElement("span",{className:`${mr}-checkbox-inner`}),selectable:pn,switcherIcon:li,draggable:ei}),Kt))}),tn;(function(on){on[on.None=0]="None",on[on.Start=1]="Start",on[on.End=2]="End"})(tn||(tn={}));function kn(on,Q,W){const{key:de,children:ke}=W;function yt(We){const Fe=We[de],ct=We[ke];Q(Fe,We)!==!1&&kn(ct||[],Q,W)}on.forEach(yt)}function xr(on){let{treeData:Q,expandedKeys:W,startKey:de,endKey:ke,fieldNames:yt}=on;const We=[];let Fe=tn.None;if(de&&de===ke)return[de];if(!de||!ke)return[];function ct(It){return It===de||It===ke}return kn(Q,It=>{if(Fe===tn.End)return!1;if(ct(It)){if(We.push(It),Fe===tn.None)Fe=tn.Start;else if(Fe===tn.Start)return Fe=tn.End,!1}else Fe===tn.Start&&We.push(It);return W.includes(It)},(0,ai.w$)(yt)),We}function G(on,Q,W){const de=(0,qn.Z)(Q),ke=[];return kn(on,(yt,We)=>{const Fe=de.indexOf(yt);return Fe!==-1&&(ke.push(We),de.splice(Fe,1)),!!de.length},(0,ai.w$)(W)),ke}var te=function(on,Q){var W={};for(var de in on)Object.prototype.hasOwnProperty.call(on,de)&&Q.indexOf(de)<0&&(W[de]=on[de]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,de=Object.getOwnPropertySymbols(on);ke{var{defaultExpandAll:W,defaultExpandParent:de,defaultExpandedKeys:ke}=on,yt=te(on,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const We=v.useRef(),Fe=v.useRef(),ct=()=>{const{keyEntities:ei}=(0,ai.I8)(ce(yt));let li;return W?li=Object.keys(ei):de?li=(0,Lr.r7)(yt.expandedKeys||ke||[],ei):li=yt.expandedKeys||ke,li},[It,kt]=v.useState(yt.selectedKeys||yt.defaultSelectedKeys||[]),[Ot,Kt]=v.useState(()=>ct());v.useEffect(()=>{"selectedKeys"in yt&&kt(yt.selectedKeys)},[yt.selectedKeys]),v.useEffect(()=>{"expandedKeys"in yt&&Kt(yt.expandedKeys)},[yt.expandedKeys]);const en=(ei,li)=>{var ci;return"expandedKeys"in yt||Kt(ei),(ci=yt.onExpand)===null||ci===void 0?void 0:ci.call(yt,ei,li)},pn=(ei,li)=>{var ci;const{multiple:ji,fieldNames:hi}=yt,{node:bo,nativeEvent:br}=li,{key:mi=""}=bo,Er=ce(yt),Jr=Object.assign(Object.assign({},li),{selected:!0}),Gn=(br==null?void 0:br.ctrlKey)||(br==null?void 0:br.metaKey),Or=br==null?void 0:br.shiftKey;let Rr;ji&&Gn?(Rr=ei,We.current=mi,Fe.current=Rr,Jr.selectedNodes=G(Er,Rr,hi)):ji&&Or?(Rr=Array.from(new Set([].concat((0,qn.Z)(Fe.current||[]),(0,qn.Z)(xr({treeData:Er,expandedKeys:Ot,startKey:mi,endKey:We.current,fieldNames:hi}))))),Jr.selectedNodes=G(Er,Rr,hi)):(Rr=[mi],We.current=mi,Fe.current=Rr,Jr.selectedNodes=G(Er,Rr,hi)),(ci=yt.onSelect)===null||ci===void 0||ci.call(yt,Rr,Jr),"selectedKeys"in yt||kt(Rr)},{getPrefixCls:Wn,direction:ar}=v.useContext(il.E_),{prefixCls:Cr,className:mr,showIcon:Hn=!0,expandAction:gr="click"}=yt,Tr=te(yt,["prefixCls","className","showIcon","expandAction"]),wi=Wn("tree",Cr),zi=Ne()(`${wi}-directory`,{[`${wi}-directory-rtl`]:ar==="rtl"},mr);return v.createElement(Zt,Object.assign({icon:ne,ref:Q,blockNode:!0},Tr,{showIcon:Hn,expandAction:gr,prefixCls:wi,className:zi,expandedKeys:Ot,selectedKeys:It,onSelect:pn,onExpand:en}))};var Pt=v.forwardRef(Ze);const gn=Zt;gn.DirectoryTree=Pt,gn.TreeNode=ap.O;var dr=gn,_n=_(46820),ii=_(15926);function Si(on){let{value:Q,onChange:W,filterSearch:de,tablePrefixCls:ke,locale:yt}=on;return de?v.createElement("div",{className:`${ke}-filter-dropdown-search`},v.createElement(ii.Z,{prefix:v.createElement(_n.Z,null),placeholder:yt.filterSearchPlaceholder,onChange:W,value:Q,htmlSize:1,className:`${ke}-filter-dropdown-search-input`})):null}var Vi=Si,Fo=_(38251);const Go=on=>{const{keyCode:Q}=on;Q===Fo.Z.ENTER&&on.stopPropagation()};var Vo=v.forwardRef((on,Q)=>v.createElement("div",{className:on.className,onClick:W=>W.stopPropagation(),onKeyDown:Go,ref:Q},on.children));function zs(on){let Q=[];return(on||[]).forEach(W=>{let{value:de,children:ke}=W;Q.push(de),ke&&(Q=[].concat((0,qn.Z)(Q),(0,qn.Z)(zs(ke))))}),Q}function ja(on){return on.some(Q=>{let{children:W}=Q;return W})}function Ba(on,Q){return typeof Q=="string"||typeof Q=="number"?Q==null?void 0:Q.toString().toLowerCase().includes(on.trim().toLowerCase()):!1}function zl(on){let{filters:Q,prefixCls:W,filteredKeys:de,filterMultiple:ke,searchValue:yt,filterSearch:We}=on;return Q.map((Fe,ct)=>{const It=String(Fe.value);if(Fe.children)return{key:It||ct,label:Fe.text,popupClassName:`${W}-dropdown-submenu`,children:zl({filters:Fe.children,prefixCls:W,filteredKeys:de,filterMultiple:ke,searchValue:yt,filterSearch:We})};const kt=ke?Ks.Z:qa.ZP,Ot={key:Fe.value!==void 0?It:ct,label:v.createElement(v.Fragment,null,v.createElement(kt,{checked:de.includes(It)}),v.createElement("span",null,Fe.text))};return yt.trim()?typeof We=="function"?We(yt,Fe)?Ot:null:Ba(yt,Fe.text)?Ot:null:Ot})}function dl(on){return on||[]}function lu(on){var Q,W;const{tablePrefixCls:de,prefixCls:ke,column:yt,dropdownPrefixCls:We,columnKey:Fe,filterMultiple:ct,filterMode:It="menu",filterSearch:kt=!1,filterState:Ot,triggerFilter:Kt,locale:en,children:pn,getPopupContainer:Wn}=on,{filterDropdownOpen:ar,onFilterDropdownOpenChange:Cr,filterResetToDefaultFilteredValue:mr,defaultFilteredValue:Hn,filterDropdownVisible:gr,onFilterDropdownVisibleChange:Tr}=yt,[wi,zi]=v.useState(!1),ei=!!(Ot&&(!((Q=Ot.filteredKeys)===null||Q===void 0)&&Q.length||Ot.forceFiltered)),li=Ts=>{zi(Ts),Cr==null||Cr(Ts),Tr==null||Tr(Ts)},ci=(W=ar!=null?ar:gr)!==null&&W!==void 0?W:wi,ji=Ot==null?void 0:Ot.filteredKeys,[hi,bo]=yp(dl(ji)),br=Ts=>{let{selectedKeys:ro}=Ts;bo(ro)},mi=(Ts,ro)=>{let{node:cs,checked:ia}=ro;br(ct?{selectedKeys:Ts}:{selectedKeys:ia&&cs.key?[cs.key]:[]})};v.useEffect(()=>{wi&&br({selectedKeys:dl(ji)})},[ji]);const[Er,Jr]=v.useState([]),Gn=Ts=>{Jr(Ts)},[Or,Rr]=v.useState(""),vi=Ts=>{const{value:ro}=Ts.target;Rr(ro)};v.useEffect(()=>{wi||Rr("")},[wi]);const Li=Ts=>{const ro=Ts&&Ts.length?Ts:null;if(ro===null&&(!Ot||!Ot.filteredKeys)||(0,R.Z)(ro,Ot==null?void 0:Ot.filteredKeys,!0))return null;Kt({column:yt,key:Fe,filteredKeys:ro})},Ki=()=>{li(!1),Li(hi())},_o=function(){let{confirm:Ts,closeDropdown:ro}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ts&&Li([]),ro&&li(!1),Rr(""),bo(mr?(Hn||[]).map(cs=>String(cs)):[])},xs=function(){let{closeDropdown:Ts}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ts&&li(!1),Li(hi())},ts=(Ts,ro)=>{ro.source==="trigger"&&(Ts&&ji!==void 0&&bo(dl(ji)),li(Ts),!Ts&&!yt.filterDropdown&&Ki())},vs=Ne()({[`${We}-menu-without-submenu`]:!ja(yt.filters||[])}),_a=Ts=>{if(Ts.target.checked){const ro=zs(yt==null?void 0:yt.filters).map(cs=>String(cs));bo(ro)}else bo([])},Bo=Ts=>{let{filters:ro}=Ts;return(ro||[]).map((cs,ia)=>{const Yl=String(cs.value),Fn={title:cs.text,key:cs.value!==void 0?Yl:String(ia)};return cs.children&&(Fn.children=Bo({filters:cs.children})),Fn})},Ja=Ts=>{var ro;return Object.assign(Object.assign({},Ts),{text:Ts.title,value:Ts.key,children:((ro=Ts.children)===null||ro===void 0?void 0:ro.map(cs=>Ja(cs)))||[]})};let ns;if(typeof yt.filterDropdown=="function")ns=yt.filterDropdown({prefixCls:`${We}-custom`,setSelectedKeys:Ts=>br({selectedKeys:Ts}),selectedKeys:hi(),confirm:xs,clearFilters:_o,filters:yt.filters,visible:ci,close:()=>{li(!1)}});else if(yt.filterDropdown)ns=yt.filterDropdown;else{const Ts=hi()||[],ro=()=>(yt.filters||[]).length===0?v.createElement(uf.Z,{image:uf.Z.PRESENTED_IMAGE_SIMPLE,description:en.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):It==="tree"?v.createElement(v.Fragment,null,v.createElement(Vi,{filterSearch:kt,value:Or,onChange:vi,tablePrefixCls:de,locale:en}),v.createElement("div",{className:`${de}-filter-dropdown-tree`},ct?v.createElement(Ks.Z,{checked:Ts.length===zs(yt.filters).length,indeterminate:Ts.length>0&&Ts.lengthtypeof kt=="function"?kt(Or,Ja(ia)):Ba(Or,ia.title):void 0}))):v.createElement(v.Fragment,null,v.createElement(Vi,{filterSearch:kt,value:Or,onChange:vi,tablePrefixCls:de,locale:en}),v.createElement(sp.Z,{selectable:!0,multiple:ct,prefixCls:`${We}-menu`,className:vs,onSelect:br,onDeselect:br,selectedKeys:Ts,getPopupContainer:Wn,openKeys:Er,onOpenChange:Gn,items:zl({filters:yt.filters||[],filterSearch:kt,prefixCls:ke,filteredKeys:hi(),filterMultiple:ct,searchValue:Or})})),cs=()=>mr?(0,R.Z)((Hn||[]).map(ia=>String(ia)),Ts,!0):Ts.length===0;ns=v.createElement(v.Fragment,null,ro(),v.createElement("div",{className:`${ke}-dropdown-btns`},v.createElement(vg.ZP,{type:"link",size:"small",disabled:cs(),onClick:()=>_o()},en.filterReset),v.createElement(vg.ZP,{type:"primary",size:"small",onClick:Ki},en.filterConfirm)))}yt.filterDropdown&&(ns=v.createElement(Vp.J,{selectable:void 0},ns));const no=()=>v.createElement(Vo,{className:`${ke}-dropdown`},ns);let Qs;typeof yt.filterIcon=="function"?Qs=yt.filterIcon(ei):yt.filterIcon?Qs=yt.filterIcon:Qs=v.createElement(uh,null);const{direction:ca}=v.useContext(il.E_);return v.createElement("div",{className:`${ke}-column`},v.createElement("span",{className:`${de}-column-title`},pn),v.createElement(Ma.Z,{dropdownRender:no,trigger:["click"],open:ci,onOpenChange:ts,getPopupContainer:Wn,placement:ca==="rtl"?"bottomLeft":"bottomRight"},v.createElement("span",{role:"button",tabIndex:-1,className:Ne()(`${ke}-trigger`,{active:ei}),onClick:Ts=>{Ts.stopPropagation()}},Qs)))}var Lu=lu;function ec(on,Q,W){let de=[];return(on||[]).forEach((ke,yt)=>{var We;const Fe=ps(yt,W);if(ke.filters||"filterDropdown"in ke||"onFilter"in ke)if("filteredValue"in ke){let ct=ke.filteredValue;"filterDropdown"in ke||(ct=(We=ct==null?void 0:ct.map(String))!==null&&We!==void 0?We:ct),de.push({column:ke,key:pl(ke,Fe),filteredKeys:ct,forceFiltered:ke.filtered})}else de.push({column:ke,key:pl(ke,Fe),filteredKeys:Q&&ke.defaultFilteredValue?ke.defaultFilteredValue:void 0,forceFiltered:ke.filtered});"children"in ke&&(de=[].concat((0,qn.Z)(de),(0,qn.Z)(ec(ke.children,Q,Fe))))}),de}function Zu(on,Q,W,de,ke,yt,We,Fe){return W.map((ct,It)=>{const kt=ps(It,Fe),{filterMultiple:Ot=!0,filterMode:Kt,filterSearch:en}=ct;let pn=ct;if(pn.filters||pn.filterDropdown){const Wn=pl(pn,kt),ar=de.find(Cr=>{let{key:mr}=Cr;return Wn===mr});pn=Object.assign(Object.assign({},pn),{title:Cr=>v.createElement(Lu,{tablePrefixCls:on,prefixCls:`${on}-filter`,dropdownPrefixCls:Q,column:pn,columnKey:Wn,filterState:ar,filterMultiple:Ot,filterMode:Kt,filterSearch:en,triggerFilter:yt,locale:ke,getPopupContainer:We},bc(ct.title,Cr))})}return"children"in pn&&(pn=Object.assign(Object.assign({},pn),{children:Zu(on,Q,pn.children,de,ke,yt,We,kt)})),pn})}function th(on){const Q={};return on.forEach(W=>{let{key:de,filteredKeys:ke,column:yt}=W;const We=de,{filters:Fe,filterDropdown:ct}=yt;if(ct)Q[We]=ke||null;else if(Array.isArray(ke)){const It=zs(Fe);Q[We]=It.filter(kt=>ke.includes(String(kt)))}else Q[We]=null}),Q}function Qc(on,Q){return Q.reduce((W,de)=>{const{column:{onFilter:ke,filters:yt},filteredKeys:We}=de;return ke&&We&&We.length?W.filter(Fe=>We.some(ct=>{const It=zs(yt),kt=It.findIndex(Kt=>String(Kt)===String(ct)),Ot=kt!==-1?It[kt]:ct;return ke(Ot,Fe)})):W},on)}const Rh=on=>on.flatMap(Q=>"children"in Q?[Q].concat((0,qn.Z)(Rh(Q.children||[]))):[Q]);function Oh(on){let{prefixCls:Q,dropdownPrefixCls:W,mergedColumns:de,onFilterChange:ke,getPopupContainer:yt,locale:We}=on;const Fe=(0,fs.ln)("Table"),ct=v.useMemo(()=>Rh(de||[]),[de]),[It,kt]=v.useState(()=>ec(ct,!0)),Ot=v.useMemo(()=>{const Wn=ec(ct,!1);if(Wn.length===0)return Wn;let ar=!0,Cr=!0;if(Wn.forEach(mr=>{let{filteredKeys:Hn}=mr;Hn!==void 0?ar=!1:Cr=!1}),ar){const mr=(ct||[]).map((Hn,gr)=>pl(Hn,ps(gr)));return It.filter(Hn=>{let{key:gr}=Hn;return mr.includes(gr)}).map(Hn=>{const gr=ct[mr.findIndex(Tr=>Tr===Hn.key)];return Object.assign(Object.assign({},Hn),{column:Object.assign(Object.assign({},Hn.column),gr),forceFiltered:gr.filtered})})}return Wn},[ct,It]),Kt=v.useMemo(()=>th(Ot),[Ot]),en=Wn=>{const ar=Ot.filter(Cr=>{let{key:mr}=Cr;return mr!==Wn.key});ar.push(Wn),kt(ar),ke(th(ar),ar)};return[Wn=>Zu(Q,W,Wn,Ot,We,en,yt),Ot,Kt]}var Id=Oh;function Vc(on,Q,W){const de=v.useRef({});function ke(yt){if(!de.current||de.current.data!==on||de.current.childrenColumnName!==Q||de.current.getRowKey!==W){let Fe=function(ct){ct.forEach((It,kt)=>{const Ot=W(It,kt);We.set(Ot,It),It&&typeof It=="object"&&Q in It&&Fe(It[Q]||[])})};const We=new Map;Fe(on),de.current={data:on,childrenColumnName:Q,kvMap:We,getRowKey:W}}return de.current.kvMap.get(yt)}return[ke]}function wc(){const on=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Q=1;Q{const ke=W[de];ke!==void 0&&(on[de]=ke)})}return on}var of=wc,Od=function(on,Q){var W={};for(var de in on)Object.prototype.hasOwnProperty.call(on,de)&&Q.indexOf(de)<0&&(W[de]=on[de]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,de=Object.getOwnPropertySymbols(on);ke{const yt=on[ke];typeof yt!="function"&&(W[ke]=yt)}),W}function Ld(on,Q,W){const de=W&&typeof W=="object"?W:{},{total:ke=0}=de,yt=Od(de,["total"]),[We,Fe]=(0,v.useState)(()=>({current:"defaultCurrent"in yt?yt.defaultCurrent:1,pageSize:"defaultPageSize"in yt?yt.defaultPageSize:Yh})),ct=of(We,yt,{total:ke>0?ke:on}),It=Math.ceil((ke||on)/ct.pageSize);ct.current>It&&(ct.current=It||1);const kt=(Kt,en)=>{Fe({current:Kt!=null?Kt:1,pageSize:en||ct.pageSize})},Ot=(Kt,en)=>{var pn;W&&((pn=W.onChange)===null||pn===void 0||pn.call(W,Kt,en)),kt(Kt,en),Q(Kt,en||(ct==null?void 0:ct.pageSize))};return W===!1?[{},()=>{}]:[Object.assign(Object.assign({},ct),{onChange:Ot}),kt]}var ud=Ld,bp={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"},Qf=bp,cp=function(Q,W){return v.createElement(Lc.Z,(0,T.Z)({},Q,{ref:W,icon:Qf}))},zc=v.forwardRef(cp),_c={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"},ah=_c,ch=function(Q,W){return v.createElement(Lc.Z,(0,T.Z)({},Q,{ref:W,icon:ah}))},Hh=v.forwardRef(ch),Cc=_(19189);const cd="ascend",qh="descend";function Ec(on){return typeof on.sorter=="object"&&typeof on.sorter.multiple=="number"?on.sorter.multiple:!1}function ko(on){return typeof on=="function"?on:on&&typeof on=="object"&&on.compare?on.compare:!1}function bg(on,Q){return Q?on[on.indexOf(Q)+1]:on[0]}function xp(on,Q,W){let de=[];function ke(yt,We){de.push({column:yt,key:pl(yt,We),multiplePriority:Ec(yt),sortOrder:yt.sortOrder})}return(on||[]).forEach((yt,We)=>{const Fe=ps(We,W);yt.children?("sortOrder"in yt&&ke(yt,Fe),de=[].concat((0,qn.Z)(de),(0,qn.Z)(xp(yt.children,Q,Fe)))):yt.sorter&&("sortOrder"in yt?ke(yt,Fe):Q&&yt.defaultSortOrder&&de.push({column:yt,key:pl(yt,Fe),multiplePriority:Ec(yt),sortOrder:yt.defaultSortOrder}))}),de}function Lg(on,Q,W,de,ke,yt,We,Fe){return(Q||[]).map((ct,It)=>{const kt=ps(It,Fe);let Ot=ct;if(Ot.sorter){const Kt=Ot.sortDirections||ke,en=Ot.showSorterTooltip===void 0?We:Ot.showSorterTooltip,pn=pl(Ot,kt),Wn=W.find(ei=>{let{key:li}=ei;return li===pn}),ar=Wn?Wn.sortOrder:null,Cr=bg(Kt,ar);let mr;if(ct.sortIcon)mr=ct.sortIcon({sortOrder:ar});else{const ei=Kt.includes(cd)&&v.createElement(Hh,{className:Ne()(`${on}-column-sorter-up`,{active:ar===cd})}),li=Kt.includes(qh)&&v.createElement(zc,{className:Ne()(`${on}-column-sorter-down`,{active:ar===qh})});mr=v.createElement("span",{className:Ne()(`${on}-column-sorter`,{[`${on}-column-sorter-full`]:!!(ei&&li)})},v.createElement("span",{className:`${on}-column-sorter-inner`,"aria-hidden":"true"},ei,li))}const{cancelSort:Hn,triggerAsc:gr,triggerDesc:Tr}=yt||{};let wi=Hn;Cr===qh?wi=Tr:Cr===cd&&(wi=gr);const zi=typeof en=="object"?Object.assign({title:wi},en):{title:wi};Ot=Object.assign(Object.assign({},Ot),{className:Ne()(Ot.className,{[`${on}-column-sort`]:ar}),title:ei=>{const li=v.createElement("div",{className:`${on}-column-sorters`},v.createElement("span",{className:`${on}-column-title`},bc(ct.title,ei)),mr);return en?v.createElement(Cc.Z,Object.assign({},zi),li):li},onHeaderCell:ei=>{const li=ct.onHeaderCell&&ct.onHeaderCell(ei)||{},ci=li.onClick,ji=li.onKeyDown;li.onClick=br=>{de({column:ct,key:pn,sortOrder:Cr,multiplePriority:Ec(ct)}),ci==null||ci(br)},li.onKeyDown=br=>{br.keyCode===Fo.Z.ENTER&&(de({column:ct,key:pn,sortOrder:Cr,multiplePriority:Ec(ct)}),ji==null||ji(br))};const hi=Zi(ct.title,{}),bo=hi==null?void 0:hi.toString();return ar?li["aria-sort"]=ar==="ascend"?"ascending":"descending":li["aria-label"]=bo||"",li.className=Ne()(li.className,`${on}-column-has-sorters`),li.tabIndex=0,ct.ellipsis&&(li.title=(hi!=null?hi:"").toString()),li}})}return"children"in Ot&&(Ot=Object.assign(Object.assign({},Ot),{children:Lg(on,Ot.children,W,de,ke,yt,We,kt)})),Ot})}function Pg(on){const{column:Q,sortOrder:W}=on;return{column:Q,order:W,field:Q.dataIndex,columnKey:Q.key}}function Uf(on){const Q=on.filter(W=>{let{sortOrder:de}=W;return de}).map(Pg);return Q.length===0&&on.length?Object.assign(Object.assign({},Pg(on[on.length-1])),{column:void 0}):Q.length<=1?Q[0]||{}:Q}function Pd(on,Q,W){const de=Q.slice().sort((We,Fe)=>Fe.multiplePriority-We.multiplePriority),ke=on.slice(),yt=de.filter(We=>{let{column:{sorter:Fe},sortOrder:ct}=We;return ko(Fe)&&ct});return yt.length?ke.sort((We,Fe)=>{for(let ct=0;ct{const Fe=We[W];return Fe?Object.assign(Object.assign({},We),{[W]:Pd(Fe,Q,W)}):We}):ke}function ep(on){let{prefixCls:Q,mergedColumns:W,onSorterChange:de,sortDirections:ke,tableLocale:yt,showSorterTooltip:We}=on;const[Fe,ct]=v.useState(xp(W,!0)),It=v.useMemo(()=>{let pn=!0;const Wn=xp(W,!1);if(!Wn.length)return Fe;const ar=[];function Cr(Hn){pn?ar.push(Hn):ar.push(Object.assign(Object.assign({},Hn),{sortOrder:null}))}let mr=null;return Wn.forEach(Hn=>{mr===null?(Cr(Hn),Hn.sortOrder&&(Hn.multiplePriority===!1?pn=!1:mr=!0)):(mr&&Hn.multiplePriority!==!1||(pn=!1),Cr(Hn))}),ar},[W,Fe]),kt=v.useMemo(()=>{const pn=It.map(Wn=>{let{column:ar,sortOrder:Cr}=Wn;return{column:ar,order:Cr}});return{sortColumns:pn,sortColumn:pn[0]&&pn[0].column,sortOrder:pn[0]&&pn[0].order}},[It]);function Ot(pn){let Wn;pn.multiplePriority===!1||!It.length||It[0].multiplePriority===!1?Wn=[pn]:Wn=[].concat((0,qn.Z)(It.filter(ar=>{let{key:Cr}=ar;return Cr!==pn.key})),[pn]),ct(Wn),de(Uf(Wn),Wn)}return[pn=>Lg(Q,pn,It,Ot,ke,yt,We),It,kt,()=>Uf(It)]}function wp(on,Q){return on.map(W=>{const de=Object.assign({},W);return de.title=bc(W.title,Q),"children"in de&&(de.children=wp(de.children,Q)),de})}function eg(on){return[v.useCallback(W=>wp(W,on),[on])]}var Cp=Cs((on,Q)=>{const{_renderTimes:W}=on,{_renderTimes:de}=Q;return W!==de}),If=Nu((on,Q)=>{const{_renderTimes:W}=on,{_renderTimes:de}=Q;return W!==de}),Xd=_(64993),Ag=on=>{const{componentCls:Q}=on,W=`${on.lineWidth}px ${on.lineType} ${on.tableBorderColor}`,de=(ke,yt,We)=>({[`&${Q}-${ke}`]:{[`> ${Q}-container`]:{[`> ${Q}-content, > ${Q}-body`]:{[` > table > tbody > tr > th, > table > tbody > tr > td - `]:{[`> ${vt}-expanded-row-fixed`]:{margin:`-${Gt}px -${Nr+Ye.lineWidth}px`}}}}}});return{[`${vt}-wrapper`]:{[`${vt}${vt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${vt}-title`]:{border:Ft,borderBottom:0},[`> ${vt}-container`]:{borderInlineStart:Ft,borderTop:Ft,[` - > ${vt}-content, - > ${vt}-header, - > ${vt}-body, - > ${vt}-summary + `]:{[`> ${Q}-expanded-row-fixed`]:{margin:`-${yt}px -${We+on.lineWidth}px`}}}}}});return{[`${Q}-wrapper`]:{[`${Q}${Q}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Q}-title`]:{border:W,borderBottom:0},[`> ${Q}-container`]:{borderInlineStart:W,borderTop:W,[` + > ${Q}-content, + > ${Q}-header, + > ${Q}-body, + > ${Q}-summary `]:{"> table":{[` > thead > tr > th, > thead > tr > td, @@ -7962,71 +7992,71 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td - `]:{borderInlineEnd:Ft},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ft},"> tr > th::before":{backgroundColor:"transparent !important"}},[` + `]:{borderInlineEnd:W},"> thead":{"> tr:not(:last-child) > th":{borderBottom:W},"> tr > th::before":{backgroundColor:"transparent !important"}},[` > thead > tr, > tbody > tr, > tfoot > tr - `]:{[`> ${vt}-cell-fix-right-first::after`]:{borderInlineEnd:Ft}},[` + `]:{[`> ${Q}-cell-fix-right-first::after`]:{borderInlineEnd:W}},[` > tbody > tr > th, > tbody > tr > td - `]:{[`> ${vt}-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:'""'}}}}}},[`&${vt}-scroll-horizontal`]:{[`> ${vt}-container > ${vt}-body`]:{"> table > tbody":{[` - > tr${vt}-expanded-row, - > tr${vt}-placeholder - `]:{["> th, > td"]:{borderInlineEnd:0}}}}}},Dt("middle",Ye.tablePaddingVerticalMiddle,Ye.tablePaddingHorizontalMiddle)),Dt("small",Ye.tablePaddingVerticalSmall,Ye.tablePaddingHorizontalSmall)),{[`> ${vt}-footer`]:{border:Ft,borderTop:0}}),[`${vt}-cell`]:{[`${vt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ye.lineWidth}px 0 ${Ye.lineWidth}px ${Ye.tableHeaderBg}`}},[`${vt}-bordered ${vt}-cell-scrollbar`]:{borderInlineEnd:Ft}}}},rt=Ye=>{const{componentCls:vt}=Ye;return{[`${vt}-wrapper`]:{[`${vt}-cell-ellipsis`]:Object.assign(Object.assign({},jd.vS),{wordBreak:"keep-all",[` - &${vt}-cell-fix-left-last, - &${vt}-cell-fix-right-first - `]:{overflow:"visible",[`${vt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${vt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},It=Ye=>{const{componentCls:vt}=Ye;return{[`${vt}-wrapper`]:{[`${vt}-tbody > tr${vt}-placeholder`]:{textAlign:"center",color:Ye.colorTextDisabled,[` + `]:{[`> ${Q}-expanded-row-fixed`]:{margin:`-${on.tablePaddingVertical}px -${on.tablePaddingHorizontal+on.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:on.lineWidth,bottom:0,borderInlineEnd:W,content:'""'}}}}}},[`&${Q}-scroll-horizontal`]:{[`> ${Q}-container > ${Q}-body`]:{"> table > tbody":{[` + > tr${Q}-expanded-row, + > tr${Q}-placeholder + `]:{["> th, > td"]:{borderInlineEnd:0}}}}}},de("middle",on.tablePaddingVerticalMiddle,on.tablePaddingHorizontalMiddle)),de("small",on.tablePaddingVerticalSmall,on.tablePaddingHorizontalSmall)),{[`> ${Q}-footer`]:{border:W,borderTop:0}}),[`${Q}-cell`]:{[`${Q}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${on.lineWidth}px 0 ${on.lineWidth}px ${on.tableHeaderBg}`}},[`${Q}-bordered ${Q}-cell-scrollbar`]:{borderInlineEnd:W}}}},Wf=on=>{const{componentCls:Q}=on;return{[`${Q}-wrapper`]:{[`${Q}-cell-ellipsis`]:Object.assign(Object.assign({},Aa.vS),{wordBreak:"keep-all",[` + &${Q}-cell-fix-left-last, + &${Q}-cell-fix-right-first + `]:{overflow:"visible",[`${Q}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Q}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Am=on=>{const{componentCls:Q}=on;return{[`${Q}-wrapper`]:{[`${Q}-tbody > tr${Q}-placeholder`]:{textAlign:"center",color:on.colorTextDisabled,[` &:hover > th, &:hover > td, - `]:{background:Ye.colorBgContainer}}}}},Ut=m(24967),Yt=Ye=>{const{componentCls:vt,antCls:Ft,controlInteractiveSize:Dt,motionDurationSlow:$t,lineWidth:Gt,paddingXS:Nr,lineType:In,tableBorderColor:Tn,tableExpandIconBg:cn,tableExpandColumnWidth:Jn,borderRadius:Sr,fontSize:Lo,fontSizeSM:kt,lineHeight:tr,tablePaddingVertical:Pn,tablePaddingHorizontal:ir,tableExpandedRowBg:dr,paddingXXS:jr}=Ye,Ri=Dt/2-Gt,Te=Ri*2+Gt*3,qo=`${Gt}px ${In} ${Tn}`,Zs=jr-Gt;return{[`${vt}-wrapper`]:{[`${vt}-expand-icon-col`]:{width:Jn},[`${vt}-row-expand-icon-cell`]:{textAlign:"center",[`${vt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${vt}-row-indent`]:{height:1,float:"left"},[`${vt}-row-expand-icon`]:Object.assign(Object.assign({},(0,Ut.N)(Ye)),{position:"relative",float:"left",boxSizing:"border-box",width:Te,height:Te,padding:0,color:"inherit",lineHeight:`${Te}px`,background:cn,border:qo,borderRadius:Sr,transform:`scale(${Dt/Te})`,transition:`all ${$t}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${$t} ease-out`,content:'""'},"&::before":{top:Ri,insetInlineEnd:Zs,insetInlineStart:Zs,height:Gt},"&::after":{top:Zs,bottom:Zs,insetInlineStart:Ri,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"}}),[`${vt}-row-indent + ${vt}-row-expand-icon`]:{marginTop:(Lo*tr-Gt*3)/2-Math.ceil((kt*1.4-Gt*3)/2),marginInlineEnd:Nr},[`tr${vt}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:dr}},[`${Ft}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${vt}-expanded-row-fixed`]:{position:"relative",margin:`-${Pn}px -${ir}px`,padding:`${Pn}px ${ir}px`}}}},vn=Ye=>{const{componentCls:vt,antCls:Ft,iconCls:Dt,tableFilterDropdownWidth:$t,tableFilterDropdownSearchWidth:Gt,paddingXXS:Nr,paddingXS:In,colorText:Tn,lineWidth:cn,lineType:Jn,tableBorderColor:Sr,tableHeaderIconColor:Lo,fontSizeSM:kt,tablePaddingHorizontal:tr,borderRadius:Pn,motionDurationSlow:ir,colorTextDescription:dr,colorPrimary:jr,tableHeaderFilterActiveBg:Ri,colorTextDisabled:Te,tableFilterDropdownBg:qo,tableFilterDropdownHeight:Zs,controlItemBgHover:Sa,controlItemBgActive:da,boxShadowSecondary:Rs,filterDropdownMenuBg:ma}=Ye,ko=`${Ft}-dropdown`,or=`${vt}-filter-dropdown`,Ai=`${Ft}-tree`,Gi=`${cn}px ${Jn} ${Sr}`;return[{[`${vt}-wrapper`]:{[`${vt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${vt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Nr,marginInline:`${Nr}px ${-tr/2}px`,padding:`0 ${Nr}px`,color:Lo,fontSize:kt,borderRadius:Pn,cursor:"pointer",transition:`all ${ir}`,"&:hover":{color:dr,background:Ri},"&.active":{color:jr}}}},{[`${Ft}-dropdown`]:{[or]:Object.assign(Object.assign({},(0,jd.Wf)(Ye)),{minWidth:$t,backgroundColor:qo,borderRadius:Pn,boxShadow:Rs,overflow:"hidden",[`${ko}-menu`]:{maxHeight:Zs,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:ma,"&:empty::after":{display:"block",padding:`${In}px 0`,color:Te,fontSize:kt,textAlign:"center",content:'"Not Found"'}},[`${or}-tree`]:{paddingBlock:`${In}px 0`,paddingInline:In,[Ai]:{padding:0},[`${Ai}-treenode ${Ai}-node-content-wrapper:hover`]:{backgroundColor:Sa},[`${Ai}-treenode-checkbox-checked ${Ai}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:da}}},[`${or}-search`]:{padding:In,borderBottom:Gi,"&-input":{input:{minWidth:Gt},[Dt]:{color:Te}}},[`${or}-checkall`]:{width:"100%",marginBottom:Nr,marginInlineStart:Nr},[`${or}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${In-cn}px ${In}px`,overflow:"hidden",borderTop:Gi}})}},{[`${Ft}-dropdown ${or}, ${or}-submenu`]:{[`${Ft}-checkbox-wrapper + span`]:{paddingInlineStart:In,color:Tn},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},ur=Ye=>{const{componentCls:vt,lineWidth:Ft,colorSplit:Dt,motionDurationSlow:$t,zIndexTableFixed:Gt,tableBg:Nr,zIndexTableSticky:In}=Ye,Tn=Dt;return{[`${vt}-wrapper`]:{[` - ${vt}-cell-fix-left, - ${vt}-cell-fix-right - `]:{position:"sticky !important",zIndex:Gt,background:Nr},[` - ${vt}-cell-fix-left-first::after, - ${vt}-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"},[`${vt}-cell-fix-left-all::after`]:{display:"none"},[` - ${vt}-cell-fix-right-first::after, - ${vt}-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"},[`${vt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:In+1,width:30,transition:`box-shadow ${$t}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${vt}-ping-left`]:{[`&:not(${vt}-has-fix-left) ${vt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Tn}`}},[` - ${vt}-cell-fix-left-first::after, - ${vt}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${Tn}`},[`${vt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${vt}-ping-right`]:{[`&:not(${vt}-has-fix-right) ${vt}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Tn}`}},[` - ${vt}-cell-fix-right-first::after, - ${vt}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${Tn}`}}}}},Hr=Ye=>{const{componentCls:vt,antCls:Ft}=Ye;return{[`${vt}-wrapper`]:{[`${vt}-pagination${Ft}-pagination`]:{margin:`${Ye.margin}px 0`},[`${vt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ye.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},rr=Ye=>{const{componentCls:vt,tableRadius:Ft}=Ye;return{[`${vt}-wrapper`]:{[vt]:{[`${vt}-title, ${vt}-header`]:{borderRadius:`${Ft}px ${Ft}px 0 0`},[`${vt}-title + ${vt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${vt}-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`}}}}},ni=Ye=>{const{componentCls:vt}=Ye;return{[`${vt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${vt}-pagination-left`]:{justifyContent:"flex-end"},[`${vt}-pagination-right`]:{justifyContent:"flex-start"},[`${vt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${vt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${vt}-row-indent`]:{float:"right"}}}}},Co=Ye=>{const{componentCls:vt,antCls:Ft,iconCls:Dt,fontSizeIcon:$t,padding:Gt,paddingXS:Nr,tableHeaderIconColor:In,tableHeaderIconColorHover:Tn,tableSelectionColumnWidth:cn,tableSelectedRowBg:Jn,tableSelectedRowHoverBg:Sr,tableRowHoverBg:Lo}=Ye;return{[`${vt}-wrapper`]:{[`${vt}-selection-col`]:{width:cn,[`&${vt}-selection-col-with-dropdown`]:{width:cn+$t+Gt/4}},[`${vt}-bordered ${vt}-selection-col`]:{width:cn+Nr*2,[`&${vt}-selection-col-with-dropdown`]:{width:cn+$t+Gt/4+Nr*2}},[` - table tr th${vt}-selection-column, - table tr td${vt}-selection-column, - ${vt}-selection-column - `]:{paddingInlineEnd:Ye.paddingXS,paddingInlineStart:Ye.paddingXS,textAlign:"center",[`${Ft}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${vt}-selection-column${vt}-cell-fix-left`]:{zIndex:Ye.zIndexTableFixed+1},[`table tr th${vt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${vt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${vt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ye.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ye.tablePaddingHorizontal/4}px`,[Dt]:{color:In,fontSize:$t,verticalAlign:"baseline","&:hover":{color:Tn}}},[`${vt}-tbody`]:{[`${vt}-row`]:{[`&${vt}-row-selected`]:{[`> ${vt}-cell`]:{background:Jn,"&-row-hover":{background:Sr}}},[`> ${vt}-cell-row-hover`]:{background:Lo}}}}}},po=Ye=>{const{componentCls:vt}=Ye,Ft=(Dt,$t,Gt,Nr)=>({[`${vt}${vt}-${Dt}`]:{fontSize:Nr,[` - ${vt}-title, - ${vt}-footer, - ${vt}-cell, - ${vt}-thead > tr > th, - ${vt}-tbody > tr > th, - ${vt}-tbody > tr > td, + `]:{background:on.colorBgContainer}}}}},um=_(35247),Jg=on=>{const{componentCls:Q,antCls:W,controlInteractiveSize:de,motionDurationSlow:ke,lineWidth:yt,paddingXS:We,lineType:Fe,tableBorderColor:ct,tableExpandIconBg:It,tableExpandColumnWidth:kt,borderRadius:Ot,fontSize:Kt,fontSizeSM:en,lineHeight:pn,tablePaddingVertical:Wn,tablePaddingHorizontal:ar,tableExpandedRowBg:Cr,paddingXXS:mr}=on,Hn=de/2-yt,gr=Hn*2+yt*3,Tr=`${yt}px ${Fe} ${ct}`,wi=mr-yt;return{[`${Q}-wrapper`]:{[`${Q}-expand-icon-col`]:{width:kt},[`${Q}-row-expand-icon-cell`]:{textAlign:"center",[`${Q}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Q}-row-indent`]:{height:1,float:"left"},[`${Q}-row-expand-icon`]:Object.assign(Object.assign({},(0,um.N)(on)),{position:"relative",float:"left",boxSizing:"border-box",width:gr,height:gr,padding:0,color:"inherit",lineHeight:`${gr}px`,background:It,border:Tr,borderRadius:Ot,transform:`scale(${de/gr})`,transition:`all ${ke}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${ke} ease-out`,content:'""'},"&::before":{top:Hn,insetInlineEnd:wi,insetInlineStart:wi,height:yt},"&::after":{top:wi,bottom:wi,insetInlineStart:Hn,width:yt,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"}}),[`${Q}-row-indent + ${Q}-row-expand-icon`]:{marginTop:(Kt*pn-yt*3)/2-Math.ceil((en*1.4-yt*3)/2),marginInlineEnd:We},[`tr${Q}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:Cr}},[`${W}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Q}-expanded-row-fixed`]:{position:"relative",margin:`-${Wn}px -${ar}px`,padding:`${Wn}px ${ar}px`}}}},Hm=on=>{const{componentCls:Q,antCls:W,iconCls:de,tableFilterDropdownWidth:ke,tableFilterDropdownSearchWidth:yt,paddingXXS:We,paddingXS:Fe,colorText:ct,lineWidth:It,lineType:kt,tableBorderColor:Ot,tableHeaderIconColor:Kt,fontSizeSM:en,tablePaddingHorizontal:pn,borderRadius:Wn,motionDurationSlow:ar,colorTextDescription:Cr,colorPrimary:mr,tableHeaderFilterActiveBg:Hn,colorTextDisabled:gr,tableFilterDropdownBg:Tr,tableFilterDropdownHeight:wi,controlItemBgHover:zi,controlItemBgActive:ei,boxShadowSecondary:li,filterDropdownMenuBg:ci}=on,ji=`${W}-dropdown`,hi=`${Q}-filter-dropdown`,bo=`${W}-tree`,br=`${It}px ${kt} ${Ot}`;return[{[`${Q}-wrapper`]:{[`${Q}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Q}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-We,marginInline:`${We}px ${-pn/2}px`,padding:`0 ${We}px`,color:Kt,fontSize:en,borderRadius:Wn,cursor:"pointer",transition:`all ${ar}`,"&:hover":{color:Cr,background:Hn},"&.active":{color:mr}}}},{[`${W}-dropdown`]:{[hi]:Object.assign(Object.assign({},(0,Aa.Wf)(on)),{minWidth:ke,backgroundColor:Tr,borderRadius:Wn,boxShadow:li,overflow:"hidden",[`${ji}-menu`]:{maxHeight:wi,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:ci,"&:empty::after":{display:"block",padding:`${Fe}px 0`,color:gr,fontSize:en,textAlign:"center",content:'"Not Found"'}},[`${hi}-tree`]:{paddingBlock:`${Fe}px 0`,paddingInline:Fe,[bo]:{padding:0},[`${bo}-treenode ${bo}-node-content-wrapper:hover`]:{backgroundColor:zi},[`${bo}-treenode-checkbox-checked ${bo}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:ei}}},[`${hi}-search`]:{padding:Fe,borderBottom:br,"&-input":{input:{minWidth:yt},[de]:{color:gr}}},[`${hi}-checkall`]:{width:"100%",marginBottom:We,marginInlineStart:We},[`${hi}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Fe-It}px ${Fe}px`,overflow:"hidden",borderTop:br}})}},{[`${W}-dropdown ${hi}, ${hi}-submenu`]:{[`${W}-checkbox-wrapper + span`]:{paddingInlineStart:Fe,color:ct},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Sg=on=>{const{componentCls:Q,lineWidth:W,colorSplit:de,motionDurationSlow:ke,zIndexTableFixed:yt,tableBg:We,zIndexTableSticky:Fe}=on,ct=de;return{[`${Q}-wrapper`]:{[` + ${Q}-cell-fix-left, + ${Q}-cell-fix-right + `]:{position:"sticky !important",zIndex:yt,background:We},[` + ${Q}-cell-fix-left-first::after, + ${Q}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-W,width:30,transform:"translateX(100%)",transition:`box-shadow ${ke}`,content:'""',pointerEvents:"none"},[`${Q}-cell-fix-left-all::after`]:{display:"none"},[` + ${Q}-cell-fix-right-first::after, + ${Q}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:-W,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${ke}`,content:'""',pointerEvents:"none"},[`${Q}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Fe+1,width:30,transition:`box-shadow ${ke}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Q}-ping-left`]:{[`&:not(${Q}-has-fix-left) ${Q}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${ct}`}},[` + ${Q}-cell-fix-left-first::after, + ${Q}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${ct}`},[`${Q}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Q}-ping-right`]:{[`&:not(${Q}-has-fix-right) ${Q}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${ct}`}},[` + ${Q}-cell-fix-right-first::after, + ${Q}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${ct}`}}}}},m0=on=>{const{componentCls:Q,antCls:W}=on;return{[`${Q}-wrapper`]:{[`${Q}-pagination${W}-pagination`]:{margin:`${on.margin}px 0`},[`${Q}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:on.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},em=on=>{const{componentCls:Q,tableRadius:W}=on;return{[`${Q}-wrapper`]:{[Q]:{[`${Q}-title, ${Q}-header`]:{borderRadius:`${W}px ${W}px 0 0`},[`${Q}-title + ${Q}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Q}-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:W,borderStartEndRadius:W,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:W},"> *:last-child":{borderStartEndRadius:W}}},"&-footer":{borderRadius:`0 0 ${W}px ${W}px`}}}}},Cm=on=>{const{componentCls:Q}=on;return{[`${Q}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Q}-pagination-left`]:{justifyContent:"flex-end"},[`${Q}-pagination-right`]:{justifyContent:"flex-start"},[`${Q}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Q}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Q}-row-indent`]:{float:"right"}}}}},F0=on=>{const{componentCls:Q,antCls:W,iconCls:de,fontSizeIcon:ke,padding:yt,paddingXS:We,tableHeaderIconColor:Fe,tableHeaderIconColorHover:ct,tableSelectionColumnWidth:It,tableSelectedRowBg:kt,tableSelectedRowHoverBg:Ot,tableRowHoverBg:Kt}=on;return{[`${Q}-wrapper`]:{[`${Q}-selection-col`]:{width:It,[`&${Q}-selection-col-with-dropdown`]:{width:It+ke+yt/4}},[`${Q}-bordered ${Q}-selection-col`]:{width:It+We*2,[`&${Q}-selection-col-with-dropdown`]:{width:It+ke+yt/4+We*2}},[` + table tr th${Q}-selection-column, + table tr td${Q}-selection-column, + ${Q}-selection-column + `]:{paddingInlineEnd:on.paddingXS,paddingInlineStart:on.paddingXS,textAlign:"center",[`${W}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Q}-selection-column${Q}-cell-fix-left`]:{zIndex:on.zIndexTableFixed+1},[`table tr th${Q}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Q}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Q}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${on.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${on.tablePaddingHorizontal/4}px`,[de]:{color:Fe,fontSize:ke,verticalAlign:"baseline","&:hover":{color:ct}}},[`${Q}-tbody`]:{[`${Q}-row`]:{[`&${Q}-row-selected`]:{[`> ${Q}-cell`]:{background:kt,"&-row-hover":{background:Ot}}},[`> ${Q}-cell-row-hover`]:{background:Kt}}}}}},gp=on=>{const{componentCls:Q}=on,W=(de,ke,yt,We)=>({[`${Q}${Q}-${de}`]:{fontSize:We,[` + ${Q}-title, + ${Q}-footer, + ${Q}-cell, + ${Q}-thead > tr > th, + ${Q}-tbody > tr > th, + ${Q}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{padding:`${$t}px ${Gt}px`},[`${vt}-filter-trigger`]:{marginInlineEnd:`-${Gt/2}px`},[`${vt}-expanded-row-fixed`]:{margin:`-${$t}px -${Gt}px`},[`${vt}-tbody`]:{[`${vt}-wrapper:only-child ${vt}`]:{marginBlock:`-${$t}px`,marginInline:`${Ye.tableExpandColumnWidth-Gt}px -${Gt}px`}},[`${vt}-selection-extra`]:{paddingInlineStart:`${Gt/4}px`}}});return{[`${vt}-wrapper`]:Object.assign(Object.assign({},Ft("middle",Ye.tablePaddingVerticalMiddle,Ye.tablePaddingHorizontalMiddle,Ye.tableFontSizeMiddle)),Ft("small",Ye.tablePaddingVerticalSmall,Ye.tablePaddingHorizontalSmall,Ye.tableFontSizeSmall))}},Po=Ye=>{const{componentCls:vt,marginXXS:Ft,fontSizeIcon:Dt,tableHeaderIconColor:$t,tableHeaderIconColorHover:Gt}=Ye;return{[`${vt}-wrapper`]:{[`${vt}-thead th${vt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ye.motionDurationSlow}`,"&:hover":{background:Ye.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ye.colorPrimary},[` - &${vt}-cell-fix-left:hover, - &${vt}-cell-fix-right:hover - `]:{background:Ye.tableFixedHeaderSortActiveBg}},[`${vt}-thead th${vt}-column-sort`]:{background:Ye.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${vt}-column-sort`]:{background:Ye.tableBodySortBg},[`${vt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${vt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${vt}-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}},[`${vt}-column-sorter-up + ${vt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${vt}-column-sorters:hover ${vt}-column-sorter`]:{color:Gt}}}},zs=Ye=>{const{componentCls:vt,opacityLoading:Ft,tableScrollThumbBg:Dt,tableScrollThumbBgHover:$t,tableScrollThumbSize:Gt,tableScrollBg:Nr,zIndexTableSticky:In,stickyScrollBarBorderRadius:Tn}=Ye,cn=`${Ye.lineWidth}px ${Ye.lineType} ${Ye.tableBorderColor}`;return{[`${vt}-wrapper`]:{[`${vt}-sticky`]:{"&-holder":{position:"sticky",zIndex:In,background:Ye.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Gt}px !important`,zIndex:In,display:"flex",alignItems:"center",background:Nr,borderTop:cn,opacity:Ft,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Gt,backgroundColor:Dt,borderRadius:Tn,transition:`all ${Ye.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:$t}}}}}}},Ni=Ye=>{const{componentCls:vt,lineWidth:Ft,tableBorderColor:Dt}=Ye,$t=`${Ft}px ${Ye.lineType} ${Dt}`;return{[`${vt}-wrapper`]:{[`${vt}-summary`]:{position:"relative",zIndex:Ye.zIndexTableFixed,background:Ye.tableBg,"> tr":{"> th, > td":{borderBottom:$t}}},[`div${vt}-summary`]:{boxShadow:`0 -${Ft}px 0 ${Dt}`}}}},yi=Ye=>{const{componentCls:vt,motionDurationMid:Ft}=Ye,Dt=`${Ye.lineWidth}px ${Ye.lineType} ${Ye.tableBorderColor}`,$t=`${vt}-expanded-row-cell`;return{[`${vt}-wrapper`]:{[`${vt}-tbody-virtual`]:{[`${vt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${vt}-cell`]:{borderBottom:Dt,transition:`background ${Ft}`},[`${vt}-expanded-row`]:{[`${$t}${$t}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ye.lineWidth}px)`,borderInlineEnd:"none"}}},[`${vt}-bordered`]:{[`${vt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Dt,position:"absolute"},[`${vt}-cell`]:{borderInlineEnd:Dt,[`&${vt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ye.lineWidth,borderInlineStart:Dt}}},[`&${vt}-virtual`]:{[`${vt}-placeholder ${vt}-cell`]:{borderInlineEnd:Dt,borderBottom:Dt}}}}}};const Hn=Ye=>{const{componentCls:vt,fontWeightStrong:Ft,tablePaddingVertical:Dt,tablePaddingHorizontal:$t,lineWidth:Gt,lineType:Nr,tableBorderColor:In,tableFontSize:Tn,tableBg:cn,tableRadius:Jn,tableHeaderTextColor:Sr,motionDurationMid:Lo,tableHeaderBg:kt,tableHeaderCellSplitColor:tr,tableFooterTextColor:Pn,tableFooterBg:ir}=Ye,dr=`${Gt}px ${Nr} ${In}`;return{[`${vt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,jd.dF)()),{[vt]:Object.assign(Object.assign({},(0,jd.Wf)(Ye)),{fontSize:Tn,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},[` - ${vt}-cell, - ${vt}-thead > tr > th, - ${vt}-tbody > tr > th, - ${vt}-tbody > tr > td, + `]:{padding:`${ke}px ${yt}px`},[`${Q}-filter-trigger`]:{marginInlineEnd:`-${yt/2}px`},[`${Q}-expanded-row-fixed`]:{margin:`-${ke}px -${yt}px`},[`${Q}-tbody`]:{[`${Q}-wrapper:only-child ${Q}`]:{marginBlock:`-${ke}px`,marginInline:`${on.tableExpandColumnWidth-yt}px -${yt}px`}},[`${Q}-selection-extra`]:{paddingInlineStart:`${yt/4}px`}}});return{[`${Q}-wrapper`]:Object.assign(Object.assign({},W("middle",on.tablePaddingVerticalMiddle,on.tablePaddingHorizontalMiddle,on.tableFontSizeMiddle)),W("small",on.tablePaddingVerticalSmall,on.tablePaddingHorizontalSmall,on.tableFontSizeSmall))}},v0=on=>{const{componentCls:Q,marginXXS:W,fontSizeIcon:de,tableHeaderIconColor:ke,tableHeaderIconColorHover:yt}=on;return{[`${Q}-wrapper`]:{[`${Q}-thead th${Q}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${on.motionDurationSlow}`,"&:hover":{background:on.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:on.colorPrimary},[` + &${Q}-cell-fix-left:hover, + &${Q}-cell-fix-right:hover + `]:{background:on.tableFixedHeaderSortActiveBg}},[`${Q}-thead th${Q}-column-sort`]:{background:on.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Q}-column-sort`]:{background:on.tableBodySortBg},[`${Q}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Q}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Q}-column-sorter`]:{marginInlineStart:W,color:ke,fontSize:0,transition:`color ${on.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:de,"&.active":{color:on.colorPrimary}},[`${Q}-column-sorter-up + ${Q}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Q}-column-sorters:hover ${Q}-column-sorter`]:{color:yt}}}},tm=on=>{const{componentCls:Q,opacityLoading:W,tableScrollThumbBg:de,tableScrollThumbBgHover:ke,tableScrollThumbSize:yt,tableScrollBg:We,zIndexTableSticky:Fe,stickyScrollBarBorderRadius:ct}=on,It=`${on.lineWidth}px ${on.lineType} ${on.tableBorderColor}`;return{[`${Q}-wrapper`]:{[`${Q}-sticky`]:{"&-holder":{position:"sticky",zIndex:Fe,background:on.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${yt}px !important`,zIndex:Fe,display:"flex",alignItems:"center",background:We,borderTop:It,opacity:W,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:yt,backgroundColor:de,borderRadius:ct,transition:`all ${on.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:ke}}}}}}},T0=on=>{const{componentCls:Q,lineWidth:W,tableBorderColor:de}=on,ke=`${W}px ${on.lineType} ${de}`;return{[`${Q}-wrapper`]:{[`${Q}-summary`]:{position:"relative",zIndex:on.zIndexTableFixed,background:on.tableBg,"> tr":{"> th, > td":{borderBottom:ke}}},[`div${Q}-summary`]:{boxShadow:`0 -${W}px 0 ${de}`}}}},Bd=on=>{const{componentCls:Q,motionDurationMid:W}=on,de=`${on.lineWidth}px ${on.lineType} ${on.tableBorderColor}`,ke=`${Q}-expanded-row-cell`;return{[`${Q}-wrapper`]:{[`${Q}-tbody-virtual`]:{[`${Q}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Q}-cell`]:{borderBottom:de,transition:`background ${W}`},[`${Q}-expanded-row`]:{[`${ke}${ke}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${on.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Q}-bordered`]:{[`${Q}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:de,position:"absolute"},[`${Q}-cell`]:{borderInlineEnd:de,[`&${Q}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-on.lineWidth,borderInlineStart:de}}},[`&${Q}-virtual`]:{[`${Q}-placeholder ${Q}-cell`]:{borderInlineEnd:de,borderBottom:de}}}}}};const Qm=on=>{const{componentCls:Q,fontWeightStrong:W,tablePaddingVertical:de,tablePaddingHorizontal:ke,lineWidth:yt,lineType:We,tableBorderColor:Fe,tableFontSize:ct,tableBg:It,tableRadius:kt,tableHeaderTextColor:Ot,motionDurationMid:Kt,tableHeaderBg:en,tableHeaderCellSplitColor:pn,tableFooterTextColor:Wn,tableFooterBg:ar}=on,Cr=`${yt}px ${We} ${Fe}`;return{[`${Q}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Aa.dF)()),{[Q]:Object.assign(Object.assign({},(0,Aa.Wf)(on)),{fontSize:ct,background:It,borderRadius:`${kt}px ${kt}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${kt}px ${kt}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${Q}-cell, + ${Q}-thead > tr > th, + ${Q}-tbody > tr > th, + ${Q}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{position:"relative",padding:`${Dt}px ${$t}px`,overflowWrap:"break-word"},[`${vt}-title`]:{padding:`${Dt}px ${$t}px`},[`${vt}-thead`]:{[` + `]:{position:"relative",padding:`${de}px ${ke}px`,overflowWrap:"break-word"},[`${Q}-title`]:{padding:`${de}px ${ke}px`},[`${Q}-thead`]:{[` > tr > th, > tr > td - `]:{position:"relative",color:Sr,fontWeight:Ft,textAlign:"start",background:kt,borderBottom:dr,transition:`background ${Lo} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${vt}-selection-column):not(${vt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:tr,transform:"translateY(-50%)",transition:`background-color ${Lo}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${vt}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${Lo}, border-color ${Lo}`,borderBottom:dr,[` - > ${vt}-wrapper:only-child, - > ${vt}-expanded-row-fixed > ${vt}-wrapper:only-child - `]:{[vt]:{marginBlock:`-${Dt}px`,marginInline:`${Ye.tableExpandColumnWidth-$t}px -${$t}px`,[`${vt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Sr,fontWeight:Ft,textAlign:"start",background:kt,borderBottom:dr,transition:`background ${Lo} ease`}}},[`${vt}-footer`]:{padding:`${Dt}px ${$t}px`,color:Pn,background:ir}})}};var Zr=(0,vh.Z)("Table",Ye=>{const{colorTextHeading:vt,colorSplit:Ft,colorIcon:Dt,colorIconHover:$t,opacityLoading:Gt,colorBgContainer:Nr,controlInteractiveSize:In,headerBg:Tn,headerColor:cn,headerSortActiveBg:Jn,headerSortHoverBg:Sr,bodySortBg:Lo,rowHoverBg:kt,rowSelectedBg:tr,rowSelectedHoverBg:Pn,rowExpandedBg:ir,cellPaddingBlock:dr,cellPaddingInline:jr,cellPaddingBlockMD:Ri,cellPaddingInlineMD:Te,cellPaddingBlockSM:qo,cellPaddingInlineSM:Zs,borderColor:Sa,footerBg:da,footerColor:Rs,headerBorderRadius:ma,cellFontSize:ko,cellFontSizeMD:or,cellFontSizeSM:Ai,headerSplitColor:Gi,fixedHeaderSortActiveBg:ds,headerFilterHoverBg:Ps,filterDropdownBg:ha,expandIconBg:Yo,selectionColumnWidth:sr,stickyScrollBarBg:io}=Ye,ws=new H.C(Dt),ul=new H.C($t),Dl=2,Ba=(0,id.TS)(Ye,{tableFontSize:ko,tableBg:Nr,tableRadius:ma,tablePaddingVertical:dr,tablePaddingHorizontal:jr,tablePaddingVerticalMiddle:Ri,tablePaddingHorizontalMiddle:Te,tablePaddingVerticalSmall:qo,tablePaddingHorizontalSmall:Zs,tableBorderColor:Sa,tableHeaderTextColor:cn,tableHeaderBg:Tn,tableFooterTextColor:Rs,tableFooterBg:da,tableHeaderCellSplitColor:Gi,tableHeaderSortBg:Jn,tableHeaderSortHoverBg:Sr,tableHeaderIconColor:ws.clone().setAlpha(ws.getAlpha()*Gt).toRgbString(),tableHeaderIconColorHover:ul.clone().setAlpha(ul.getAlpha()*Gt).toRgbString(),tableBodySortBg:Lo,tableFixedHeaderSortActiveBg:ds,tableHeaderFilterActiveBg:Ps,tableFilterDropdownBg:ha,tableRowHoverBg:kt,tableSelectedRowBg:tr,tableSelectedRowHoverBg:Pn,zIndexTableFixed:Dl,zIndexTableSticky:Dl+1,tableFontSizeMiddle:or,tableFontSizeSmall:Ai,tableSelectionColumnWidth:sr,tableExpandIconBg:Yo,tableExpandColumnWidth:In+2*Ye.padding,tableExpandedRowBg:ir,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:io,tableScrollThumbBgHover:vt,tableScrollBg:Ft});return[Hn(Ba),Hr(Ba),Ni(Ba),Po(Ba),vn(Ba),ut(Ba),rr(Ba),Yt(Ba),Ni(Ba),It(Ba),Co(Ba),ur(Ba),zs(Ba),rt(Ba),po(Ba),ni(Ba),yi(Ba)]},Ye=>{const{colorFillAlter:vt,colorBgContainer:Ft,colorTextHeading:Dt,colorFillSecondary:$t,colorFillContent:Gt,controlItemBgActive:Nr,controlItemBgActiveHover:In,padding:Tn,paddingSM:cn,paddingXS:Jn,colorBorderSecondary:Sr,borderRadiusLG:Lo,fontSize:kt,controlHeight:tr,colorTextPlaceholder:Pn}=Ye,ir=new H.C($t).onBackground(Ft).toHexShortString(),dr=new H.C(Gt).onBackground(Ft).toHexShortString(),jr=new H.C(vt).onBackground(Ft).toHexShortString();return{headerBg:jr,headerColor:Dt,headerSortActiveBg:ir,headerSortHoverBg:dr,bodySortBg:jr,rowHoverBg:jr,rowSelectedBg:Nr,rowSelectedHoverBg:In,rowExpandedBg:vt,cellPaddingBlock:Tn,cellPaddingInline:Tn,cellPaddingBlockMD:cn,cellPaddingInlineMD:Jn,cellPaddingBlockSM:Jn,cellPaddingInlineSM:Jn,borderColor:Sr,headerBorderRadius:Lo,footerBg:jr,footerColor:Dt,cellFontSize:kt,cellFontSizeMD:kt,cellFontSizeSM:kt,headerSplitColor:Sr,fixedHeaderSortActiveBg:ir,headerFilterHoverBg:Gt,filterDropdownMenuBg:Ft,filterDropdownBg:Ft,expandIconBg:Ft,selectionColumnWidth:tr,stickyScrollBarBg:Pn,stickyScrollBarBorderRadius:100}});const Yr=[],Di=(Ye,vt)=>{const{prefixCls:Ft,className:Dt,rootClassName:$t,style:Gt,size:Nr,bordered:In,dropdownPrefixCls:Tn,dataSource:cn,pagination:Jn,rowSelection:Sr,rowKey:Lo="key",rowClassName:kt,columns:tr,children:Pn,childrenColumnName:ir,onChange:dr,getPopupContainer:jr,loading:Ri,expandIcon:Te,expandable:qo,expandedRowRender:Zs,expandIconColumnIndex:Sa,indentSize:da,scroll:Rs,sortDirections:ma,locale:ko,showSorterTooltip:or=!0,virtual:Ai}=Ye,Gi=(0,so.ln)("Table"),ds=w.useMemo(()=>tr||oi(Pn),[tr,Pn]),Ps=w.useMemo(()=>ds.some(ta=>ta.responsive),[ds]),ha=(0,$a.Z)(Ps),Yo=w.useMemo(()=>{const ta=new Set(Object.keys(ha).filter(vl=>ha[vl]));return ds.filter(vl=>!vl.responsive||vl.responsive.some(mu=>ta.has(mu)))},[ds,ha]),sr=(0,hs.Z)(Ye,["className","style","columns"]),{locale:io=dl.Z,direction:ws,table:ul,renderEmpty:Dl,getPrefixCls:Ba,getPopupContainer:Ss}=w.useContext(Pi.E_),wl=(0,ga.Z)(Nr),rl=Object.assign(Object.assign({},io.Table),ko),mc=cn||Yr,pl=Ba("table",Ft),oc=Ba("dropdown",Tn),Ca=Object.assign({childrenColumnName:ir,expandIconColumnIndex:Sa},qo),{childrenColumnName:qu="children"}=Ca,$l=w.useMemo(()=>mc.some(ta=>ta==null?void 0:ta[qu])?"nest":Zs||qo&&qo.expandedRowRender?"row":null,[mc]),su={body:w.useRef()},tu=wd(pl),Js=w.useMemo(()=>typeof Lo=="function"?Lo:ta=>ta==null?void 0:ta[Lo],[Lo]),[Gc]=af(mc,qu,Js),Le={},Me=function(ta,vl){let mu=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var hc,cd,Wo;const Wd=Object.assign(Object.assign({},Le),ta);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,(Wo=Wd.pagination)===null||Wo===void 0?void 0:Wo.pageSize)),Rs&&Rs.scrollToFirstRowOnChange!==!1&&su.body.current&&Ji(0,{getContainer:()=>su.body.current}),dr==null||dr(Wd.pagination,Wd.filters,Wd.sorter,{currentDataSource:Jp(yp(mc,Wd.sorterStates,qu),Wd.filterStates),action:vl})},et=(ta,vl)=>{Me({sorter:ta,sorterStates:vl},"sort",!1)},[hn,Or,wn,li]=sm({prefixCls:pl,mergedColumns:Yo,onSorterChange:et,sortDirections:ma||["ascend","descend"],tableLocale:rl,showSorterTooltip:or}),Fi=w.useMemo(()=>yp(mc,Or,qu),[mc,Or]);Le.sorter=li(),Le.sorterStates=Or;const _s=(ta,vl)=>{Me({filters:ta,filterStates:vl},"filter",!0)},[Ea,Aa,bl]=df({prefixCls:pl,locale:rl,dropdownPrefixCls:oc,mergedColumns:Yo,onFilterChange:_s,getPopupContainer:jr||Ss}),Ql=Jp(Fi,Aa);Le.filters=bl,Le.filterStates=Aa;const Ju=w.useMemo(()=>{const ta={};return Object.keys(bl).forEach(vl=>{bl[vl]!==null&&(ta[vl]=bl[vl])}),Object.assign(Object.assign({},wn),{filters:ta})},[wn,bl]),[As]=Ip(Ju),Xa=(ta,vl)=>{Me({pagination:Object.assign(Object.assign({},Le.pagination),{current:ta,pageSize:vl})},"paginate")},[vr,qa]=zm(Ql.length,Xa,Jn);Le.pagination=Jn===!1?{}:rm(vr,Jn),Le.resetPagination=qa;const Ta=w.useMemo(()=>{if(Jn===!1||!vr.pageSize)return Ql;const{current:ta=1,total:vl,pageSize:mu=Id}=vr;return Ql.lengthmu?Ql.slice((ta-1)*mu,ta*mu):Ql:Ql.slice((ta-1)*mu,ta*mu)},[!!Jn,Ql,vr&&vr.current,vr&&vr.pageSize,vr&&vr.total]),[Du,Wc]=Sg({prefixCls:pl,data:Ql,pageData:Ta,getRowKey:Js,getRecordByKey:Gc,expandType:$l,childrenColumnName:qu,locale:rl,getPopupContainer:jr||Ss},Sr),os=(ta,vl,mu)=>{let hc;return typeof kt=="function"?hc=Se()(kt(ta,vl,mu)):hc=Se()(kt),Se()({[`${pl}-row-selected`]:Wc.has(Js(ta,vl))},hc)};Ca.__PARENT_RENDER_ICON__=Ca.expandIcon,Ca.expandIcon=Ca.expandIcon||Te||Fu(rl),$l==="nest"&&Ca.expandIconColumnIndex===void 0?Ca.expandIconColumnIndex=Sr?1:0:Ca.expandIconColumnIndex>0&&Sr&&(Ca.expandIconColumnIndex-=1),typeof Ca.indentSize!="number"&&(Ca.indentSize=typeof da=="number"?da:15);const Mo=w.useCallback(ta=>As(Du(Ea(hn(ta)))),[hn,Ea,Du]);let ks,Da;if(Jn!==!1&&(vr!=null&&vr.total)){let ta;vr.size?ta=vr.size:ta=wl==="small"||wl==="middle"?"small":void 0;const vl=cd=>w.createElement(Th,Object.assign({},vr,{className:Se()(`${pl}-pagination ${pl}-pagination-${cd}`,vr.className),size:ta})),mu=ws==="rtl"?"left":"right",{position:hc}=vr;if(hc!==null&&Array.isArray(hc)){const cd=hc.find(fd=>fd.includes("top")),Wo=hc.find(fd=>fd.includes("bottom")),Wd=hc.every(fd=>`${fd}`=="none");!cd&&!Wo&&!Wd&&(Da=vl(mu)),cd&&(ks=vl(cd.toLowerCase().replace("top",""))),Wo&&(Da=vl(Wo.toLowerCase().replace("bottom","")))}else Da=vl(mu)}let Na;typeof Ri=="boolean"?Na={spinning:Ri}:typeof Ri=="object"&&(Na=Object.assign({spinning:!0},Ri));const[js,bs]=Zr(pl),[,Qi]=(0,ff.Z)(),ar=Se()(`${pl}-wrapper`,ul==null?void 0:ul.className,{[`${pl}-wrapper-rtl`]:ws==="rtl"},Dt,$t,bs),zr=Object.assign(Object.assign({},ul==null?void 0:ul.style),Gt),Ci=ko&&ko.emptyText||(Dl==null?void 0:Dl("Table"))||w.createElement(us.Z,{componentName:"Table"}),gs=Ai?de:Pg,Es={},Pl=w.useMemo(()=>{const{fontSize:ta,lineHeight:vl,padding:mu,paddingXS:hc,paddingSM:cd}=Qi,Wo=Math.floor(ta*vl);switch(wl){case"large":return mu*2+Wo;case"small":return hc*2+Wo;default:return cd*2+Wo}},[Qi,wl]);return Ai&&(Es.listItemHeight=Pl),js(w.createElement("div",{ref:vt,className:ar,style:zr},w.createElement(yu.Z,Object.assign({spinning:!1},Na),ks,w.createElement(gs,Object.assign({},Es,sr,{columns:Yo,direction:ws,expandable:Ca,prefixCls:pl,className:Se()({[`${pl}-middle`]:wl==="middle",[`${pl}-small`]:wl==="small",[`${pl}-bordered`]:In,[`${pl}-empty`]:mc.length===0}),data:Ta,rowKey:Js,rowClassName:os,emptyText:Ci,internalHooks:I,internalRefs:su,transformColumns:Mo,getContainerWidth:tu})),Da)))};var Bi=w.forwardRef(Di);const Oi=(Ye,vt)=>{const Ft=w.useRef(0);return Ft.current+=1,w.createElement(Bi,Object.assign({},Ye,{ref:vt,_renderTimes:Ft.current}))},jo=w.forwardRef(Oi);jo.SELECTION_COLUMN=vm,jo.EXPAND_COLUMN=y,jo.SELECTION_ALL=Lg,jo.SELECTION_INVERT=ug,jo.SELECTION_NONE=om,jo.Column=Pc,jo.ColumnGroup=to,jo.Summary=Wt;var ys=jo,Os=ys},30966:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Ir}});var y=m(77617),I=m(49934),b=m(93319),z=m(26508),k=m(28186),N=m(91851),w=function(Gn,Ei){return y.createElement(N.Z,(0,z.Z)({},Gn,{ref:Ei,icon:k.Z}))},A=y.forwardRef(w),C=m(12124),f=m.n(C),S=m(80268),P=m(74710),W=m(39718),te=m(91002),re=m(52528),ce=m(10103),pe=m(41760),he=m(44516),fe=(0,y.createContext)(null),Be=y.forwardRef(function(tn,Gn){var Ei=tn.prefixCls,Ln=tn.className,Ii=tn.style,nr=tn.id,wi=tn.active,Mi=tn.tabKey,Rr=tn.children;return y.createElement("div",{id:nr&&"".concat(nr,"-panel-").concat(Mi),role:"tabpanel",tabIndex:wi?0:-1,"aria-labelledby":nr&&"".concat(nr,"-tab-").concat(Mi),"aria-hidden":!wi,style:Ii,className:f()(Ei,wi&&"".concat(Ei,"-active"),Ln),ref:Gn},Rr)}),Ie=Be,je=["key","forceRender","style","className"];function be(tn){var Gn=tn.id,Ei=tn.activeKey,Ln=tn.animated,Ii=tn.tabPosition,nr=tn.destroyInactiveTabPane,wi=y.useContext(fe),Mi=wi.prefixCls,Rr=wi.tabs,Xn=Ln.tabPane,ms="".concat(Mi,"-tabpane");return y.createElement("div",{className:f()("".concat(Mi,"-content-holder"))},y.createElement("div",{className:f()("".concat(Mi,"-content"),"".concat(Mi,"-content-").concat(Ii),(0,S.Z)({},"".concat(Mi,"-content-animated"),Xn))},Rr.map(function(ya){var fa=ya.key,Ws=ya.forceRender,Ua=ya.style,Ao=ya.className,cl=(0,re.Z)(ya,je),$r=fa===Ei;return y.createElement(he.ZP,(0,z.Z)({key:fa,visible:$r,forceRender:Ws,removeOnLeave:!!nr,leavedClassName:"".concat(ms,"-hidden")},Ln.tabPaneMotion),function(er,Dr){var pr=er.style,ci=er.className;return y.createElement(Ie,(0,z.Z)({},cl,{prefixCls:ms,id:Gn,tabKey:fa,animated:Xn,active:$r,style:(0,P.Z)((0,P.Z)({},Ua),pr),className:f()(Ao,ci),ref:Dr}))})})))}var ve=m(42371),ye=m(28647),Ce=m(61759),xe=m(9681),Ae={width:0,height:0,left:0,top:0};function ge(tn,Gn,Ei){return(0,y.useMemo)(function(){for(var Ln,Ii=new Map,nr=Gn.get((Ln=tn[0])===null||Ln===void 0?void 0:Ln.key)||Ae,wi=nr.left+nr.width,Mi=0;MiEn?(Xt=Er,Eo.current="x"):(Xt=ui,Eo.current="y"),Gn(-Xt,-Xt)&&xs.preventDefault()}var Ts=(0,y.useRef)(null);Ts.current={onTouchStart:Dr,onTouchMove:pr,onTouchEnd:ci,onWheel:mo},y.useEffect(function(){function xs(gn){Ts.current.onTouchStart(gn)}function Er(gn){Ts.current.onTouchMove(gn)}function ui(gn){Ts.current.onTouchEnd(gn)}function Xt(gn){Ts.current.onWheel(gn)}return document.addEventListener("touchmove",Er,{passive:!1}),document.addEventListener("touchend",ui,{passive:!1}),tn.current.addEventListener("touchstart",xs,{passive:!1}),tn.current.addEventListener("wheel",Xt),function(){document.removeEventListener("touchmove",Er),document.removeEventListener("touchend",ui)}},[])}var ft=m(62305);function zt(tn){var Gn=(0,y.useState)(0),Ei=(0,W.Z)(Gn,2),Ln=Ei[0],Ii=Ei[1],nr=(0,y.useRef)(0),wi=(0,y.useRef)();return wi.current=tn,(0,ft.o)(function(){var Mi;(Mi=wi.current)===null||Mi===void 0||Mi.call(wi)},[Ln]),function(){nr.current===Ln&&(nr.current+=1,Ii(nr.current))}}function mt(tn){var Gn=(0,y.useRef)([]),Ei=(0,y.useState)({}),Ln=(0,W.Z)(Ei,2),Ii=Ln[1],nr=(0,y.useRef)(typeof tn=="function"?tn():tn),wi=zt(function(){var Rr=nr.current;Gn.current.forEach(function(Xn){Rr=Xn(Rr)}),Gn.current=[],nr.current=Rr,Ii({})});function Mi(Rr){Gn.current.push(Rr),wi()}return[nr.current,Mi]}var yn={width:0,height:0,left:0,top:0,right:0};function Bn(tn,Gn,Ei,Ln,Ii,nr,wi){var Mi=wi.tabs,Rr=wi.tabPosition,Xn=wi.rtl,ms,ya,fa;return["top","bottom"].includes(Rr)?(ms="width",ya=Xn?"right":"left",fa=Math.abs(Ei)):(ms="height",ya="top",fa=-Ei),(0,y.useMemo)(function(){if(!Mi.length)return[0,0];for(var Ws=Mi.length,Ua=Ws,Ao=0;Aofa+Gn){Ua=Ao-1;break}}for(var $r=0,er=Ws-1;er>=0;er-=1){var Dr=tn.get(Mi[er].key)||yn;if(Dr[ya]=Ua?[0,0]:[$r,Ua]},[tn,Gn,Ln,Ii,nr,fa,Rr,Mi.map(function(Ws){return Ws.key}).join("_"),Xn])}function Lr(tn){var Gn;return tn instanceof Map?(Gn={},tn.forEach(function(Ei,Ln){Gn[Ln]=Ei})):Gn=tn,JSON.stringify(Gn)}var ri="TABS_DQ";function gi(tn){return String(tn).replace(/"/g,ri)}function ro(tn,Gn,Ei,Ln){return!(!Ei||Ln||tn===!1||tn===void 0&&(Gn===!1||Gn===null))}function To(tn,Gn){var Ei=tn.prefixCls,Ln=tn.editable,Ii=tn.locale,nr=tn.style;return!Ln||Ln.showAdd===!1?null:y.createElement("button",{ref:Gn,type:"button",className:"".concat(Ei,"-nav-add"),style:nr,"aria-label":(Ii==null?void 0:Ii.addAriaLabel)||"Add tab",onClick:function(Mi){Ln.onEdit("add",{event:Mi})}},Ln.addIcon||"+")}var _r=y.forwardRef(To),Bo=y.forwardRef(function(tn,Gn){var Ei=tn.position,Ln=tn.prefixCls,Ii=tn.extra;if(!Ii)return null;var nr,wi={};return(0,te.Z)(Ii)==="object"&&!y.isValidElement(Ii)?wi=Ii:wi.right=Ii,Ei==="right"&&(nr=wi.right),Ei==="left"&&(nr=wi.left),nr?y.createElement("div",{className:"".concat(Ln,"-extra-content"),ref:Gn},nr):null}),fs=Bo,me=m(31561),So=m(51917),ho=m(38251);function go(tn,Gn){var Ei=tn.prefixCls,Ln=tn.id,Ii=tn.tabs,nr=tn.locale,wi=tn.mobile,Mi=tn.moreIcon,Rr=Mi===void 0?"More":Mi,Xn=tn.moreTransitionName,ms=tn.style,ya=tn.className,fa=tn.editable,Ws=tn.tabBarGutter,Ua=tn.rtl,Ao=tn.removeAriaLabel,cl=tn.onTabClick,$r=tn.getPopupContainer,er=tn.popupClassName,Dr=(0,y.useState)(!1),pr=(0,W.Z)(Dr,2),ci=pr[0],Eo=pr[1],mo=(0,y.useState)(null),Ts=(0,W.Z)(mo,2),xs=Ts[0],Er=Ts[1],ui="".concat(Ln,"-more-popup"),Xt="".concat(Ei,"-dropdown"),gn=xs!==null?"".concat(ui,"-").concat(xs):null,En=nr==null?void 0:nr.dropdownAriaLabel;function tt(Vn,wr){Vn.preventDefault(),Vn.stopPropagation(),fa.onEdit("remove",{key:wr,event:Vn})}var at=y.createElement(So.ZP,{onClick:function(wr){var ki=wr.key,Vi=wr.domEvent;cl(ki,Vi),Eo(!1)},prefixCls:"".concat(Xt,"-menu"),id:ui,tabIndex:-1,role:"listbox","aria-activedescendant":gn,selectedKeys:[xs],"aria-label":En!==void 0?En:"expanded dropdown"},Ii.map(function(Vn){var wr=Vn.closable,ki=Vn.disabled,Vi=Vn.closeIcon,Ki=Vn.key,ps=Vn.label,Ns=ro(wr,Vi,fa,ki);return y.createElement(So.sN,{key:Ki,id:"".concat(ui,"-").concat(Ki),role:"option","aria-controls":Ln&&"".concat(Ln,"-panel-").concat(Ki),disabled:ki},y.createElement("span",null,ps),Ns&&y.createElement("button",{type:"button","aria-label":Ao||"remove",tabIndex:0,className:"".concat(Xt,"-menu-item-remove"),onClick:function(_a){_a.stopPropagation(),tt(_a,Ki)}},Vi||fa.removeIcon||"\xD7"))}));function gt(Vn){for(var wr=Ii.filter(function(Ns){return!Ns.disabled}),ki=wr.findIndex(function(Ns){return Ns.key===xs})||0,Vi=wr.length,Ki=0;Kiml?"left":"right"})}),En=(0,W.Z)(gn,2),tt=En[0],at=En[1],gt=We(0,function(El,ml){!Xt&&Dr&&Dr({direction:El>ml?"top":"bottom"})}),Re=(0,W.Z)(gt,2),lt=Re[0],St=Re[1],ln=(0,y.useState)([0,0]),Vn=(0,W.Z)(ln,2),wr=Vn[0],ki=Vn[1],Vi=(0,y.useState)([0,0]),Ki=(0,W.Z)(Vi,2),ps=Ki[0],Ns=Ki[1],Bs=(0,y.useState)([0,0]),_a=(0,W.Z)(Bs,2),oo=_a[0],Ds=_a[1],oa=(0,y.useState)([0,0]),va=(0,W.Z)(oa,2),Bl=va[0],Fa=va[1],gl=mt(new Map),ua=(0,W.Z)(gl,2),Nl=ua[0],vs=ua[1],Hi=ge(nr,Nl,ps[0]),eo=sn(wr,Xt),sa=sn(ps,Xt),Cs=sn(oo,Xt),Ka=sn(Bl,Xt),$u=eoto?to:El}var jn=(0,y.useRef)(),yr=(0,y.useState)(),ai=(0,W.Z)(yr,2),hi=ai[0],Ji=ai[1];function so(){Ji(Date.now())}function Pi(){window.clearTimeout(jn.current)}Ct(Ts,function(El,ml){function fu(Nu,lc){Nu(function(Ic){var Vc=hs(Ic+lc);return Vc})}return $u?(Xt?fu(at,El):fu(St,ml),Pi(),so(),!0):!1}),(0,y.useEffect)(function(){return Pi(),hi&&(jn.current=window.setTimeout(function(){Ji(0)},100)),Pi},[hi]);var us=Bn(Hi,rc,Xt?tt:lt,sa,Cs,Ka,(0,P.Z)((0,P.Z)({},tn),{},{tabs:nr})),ga=(0,W.Z)(us,2),$a=ga[0],dl=ga[1],Hl=(0,Ce.Z)(function(){var El=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ms,ml=Hi.get(El)||{width:0,height:0,left:0,right:0,top:0};if(Xt){var fu=tt;ya?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)),St(0),at(hs(fu))}else{var Nu=lt;ml.top<-lt?Nu=-ml.top:ml.top+ml.height>-lt+rc&&(Nu=-(ml.top+ml.height-rc)),at(0),St(hs(Nu))}}),Ml={};Ao==="top"||Ao==="bottom"?Ml[ya?"marginRight":"marginLeft"]=cl:Ml.marginTop=cl;var Za=nr.map(function(El,ml){var fu=El.key;return y.createElement(dn,{id:Rr,prefixCls:Ii,key:fu,tab:El,style:ml===0?void 0:Ml,closable:El.closable,editable:Ws,active:fu===ms,renderWrapper:$r,removeAriaLabel:Ua==null?void 0:Ua.removeAriaLabel,onClick:function(lc){er(fu,lc)},onFocus:function(){Hl(fu),so(),Ts.current&&(ya||(Ts.current.scrollLeft=0),Ts.current.scrollTop=0)}})}),Pu=function(){return vs(function(){var ml=new Map;return nr.forEach(function(fu){var Nu,lc=fu.key,Ic=(Nu=xs.current)===null||Nu===void 0?void 0:Nu.querySelector('[data-node-key="'.concat(gi(lc),'"]'));Ic&&ml.set(lc,{width:Ic.offsetWidth,height:Ic.offsetHeight,left:Ic.offsetLeft,top:Ic.offsetTop})}),ml})};(0,y.useEffect)(function(){Pu()},[nr.map(function(El){return El.key}).join("_")]);var ea=zt(function(){var El=Wt(ci),ml=Wt(Eo),fu=Wt(mo);ki([El[0]-ml[0]-fu[0],El[1]-ml[1]-fu[1]]);var Nu=Wt(ui);Ds(Nu);var lc=Wt(Er);Fa(lc);var Ic=Wt(xs);Ns([Ic[0]-Nu[0],Ic[1]-Nu[1]]),Pu()}),Qa=nr.slice(0,$a),el=nr.slice(dl+1),Ul=[].concat((0,ve.Z)(Qa),(0,ve.Z)(el)),ql=Hi.get(ms),vu=xt({activeTabOffset:ql,horizontal:Xt,rtl:ya,indicatorSize:pr}),au=vu.style;(0,y.useEffect)(function(){Hl()},[ms,vo,to,Lr(ql),Lr(Hi),Xt]),(0,y.useEffect)(function(){ea()},[ya]);var Cn=!!Ul.length,Eu="".concat(Ii,"-nav-wrap"),ls,Ks,xa,Il;return Xt?ya?(Ks=tt>0,ls=tt!==to):(ls=tt<0,Ks=tt!==vo):(xa=lt<0,Il=lt!==vo),y.createElement(ye.Z,{onResize:ea},y.createElement("div",{ref:(0,xe.x1)(Gn,ci),role:"tablist",className:f()("".concat(Ii,"-nav"),wi),style:Mi,onKeyDown:function(){so()}},y.createElement(fs,{ref:Eo,position:"left",extra:fa,prefixCls:Ii}),y.createElement(ye.Z,{onResize:ea},y.createElement("div",{className:f()(Eu,(Ei={},(0,S.Z)(Ei,"".concat(Eu,"-ping-left"),ls),(0,S.Z)(Ei,"".concat(Eu,"-ping-right"),Ks),(0,S.Z)(Ei,"".concat(Eu,"-ping-top"),xa),(0,S.Z)(Ei,"".concat(Eu,"-ping-bottom"),Il),Ei)),ref:Ts},y.createElement(ye.Z,{onResize:ea},y.createElement("div",{ref:xs,className:"".concat(Ii,"-nav-list"),style:{transform:"translate(".concat(tt,"px, ").concat(lt,"px)"),transition:hi?"none":void 0}},Za,y.createElement(_r,{ref:ui,prefixCls:Ii,locale:Ua,editable:Ws,style:(0,P.Z)((0,P.Z)({},Za.length===0?void 0:Ml),{},{visibility:Cn?"hidden":null})}),y.createElement("div",{className:f()("".concat(Ii,"-ink-bar"),(0,S.Z)({},"".concat(Ii,"-ink-bar-animated"),Xn.inkBar)),style:au}))))),y.createElement(ji,(0,z.Z)({},tn,{removeAriaLabel:Ua==null?void 0:Ua.removeAriaLabel,ref:Er,prefixCls:Ii,tabs:Ul,className:!Cn&&Pc,tabMoving:!!hi})),y.createElement(fs,{ref:mo,position:"right",extra:fa,prefixCls:Ii})))}var Tt=y.forwardRef(Ot),bt=["renderTabBar"],Ht=["label","key"];function zn(tn){var Gn=tn.renderTabBar,Ei=(0,re.Z)(tn,bt),Ln=y.useContext(fe),Ii=Ln.tabs;if(Gn){var nr=(0,P.Z)((0,P.Z)({},Ei),{},{panes:Ii.map(function(wi){var Mi=wi.label,Rr=wi.key,Xn=(0,re.Z)(wi,Ht);return y.createElement(Ie,(0,z.Z)({tab:Mi,key:Rr,tabKey:Rr},Xn))})});return Gn(nr,Tt)}return y.createElement(Tt,Ei)}var en=m(46644);function fr(){var tn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Gn;return tn===!1?Gn={inkBar:!1,tabPane:!1}:tn===!0?Gn={inkBar:!0,tabPane:!1}:Gn=(0,P.Z)({inkBar:!0},(0,te.Z)(tn)==="object"?tn:{}),Gn.tabPaneMotion&&Gn.tabPane===void 0&&(Gn.tabPane=!0),!Gn.tabPaneMotion&&Gn.tabPane&&(Gn.tabPane=!1),Gn}var Kr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],ii=0;function si(tn,Gn){var Ei,Ln=tn.id,Ii=tn.prefixCls,nr=Ii===void 0?"rc-tabs":Ii,wi=tn.className,Mi=tn.items,Rr=tn.direction,Xn=tn.activeKey,ms=tn.defaultActiveKey,ya=tn.editable,fa=tn.animated,Ws=tn.tabPosition,Ua=Ws===void 0?"top":Ws,Ao=tn.tabBarGutter,cl=tn.tabBarStyle,$r=tn.tabBarExtraContent,er=tn.locale,Dr=tn.moreIcon,pr=tn.moreTransitionName,ci=tn.destroyInactiveTabPane,Eo=tn.renderTabBar,mo=tn.onChange,Ts=tn.onTabClick,xs=tn.onTabScroll,Er=tn.getPopupContainer,ui=tn.popupClassName,Xt=tn.indicatorSize,gn=(0,re.Z)(tn,Kr),En=y.useMemo(function(){return(Mi||[]).filter(function(Fa){return Fa&&(0,te.Z)(Fa)==="object"&&"key"in Fa})},[Mi]),tt=Rr==="rtl",at=fr(fa),gt=(0,y.useState)(!1),Re=(0,W.Z)(gt,2),lt=Re[0],St=Re[1];(0,y.useEffect)(function(){St((0,ce.Z)())},[]);var ln=(0,pe.Z)(function(){var Fa;return(Fa=En[0])===null||Fa===void 0?void 0:Fa.key},{value:Xn,defaultValue:ms}),Vn=(0,W.Z)(ln,2),wr=Vn[0],ki=Vn[1],Vi=(0,y.useState)(function(){return En.findIndex(function(Fa){return Fa.key===wr})}),Ki=(0,W.Z)(Vi,2),ps=Ki[0],Ns=Ki[1];(0,y.useEffect)(function(){var Fa=En.findIndex(function(ua){return ua.key===wr});if(Fa===-1){var gl;Fa=Math.max(0,Math.min(ps,En.length-1)),ki((gl=En[Fa])===null||gl===void 0?void 0:gl.key)}Ns(Fa)},[En.map(function(Fa){return Fa.key}).join("_"),wr,ps]);var Bs=(0,pe.Z)(null,{value:Ln}),_a=(0,W.Z)(Bs,2),oo=_a[0],Ds=_a[1];(0,y.useEffect)(function(){Ln||(Ds("rc-tabs-".concat(ii)),ii+=1)},[]);function oa(Fa,gl){Ts==null||Ts(Fa,gl);var ua=Fa!==wr;ki(Fa),ua&&(mo==null||mo(Fa))}var va={id:oo,activeKey:wr,animated:at,tabPosition:Ua,rtl:tt,mobile:lt},Bl=(0,P.Z)((0,P.Z)({},va),{},{editable:ya,locale:er,moreIcon:Dr,moreTransitionName:pr,tabBarGutter:Ao,onTabClick:oa,onTabScroll:xs,extra:$r,style:cl,panes:null,getPopupContainer:Er,popupClassName:ui,indicatorSize:Xt});return y.createElement(fe.Provider,{value:{tabs:En,prefixCls:nr}},y.createElement("div",(0,z.Z)({ref:Gn,id:Ln,className:f()(nr,"".concat(nr,"-").concat(Ua),(Ei={},(0,S.Z)(Ei,"".concat(nr,"-mobile"),lt),(0,S.Z)(Ei,"".concat(nr,"-editable"),ya),(0,S.Z)(Ei,"".concat(nr,"-rtl"),tt),Ei),wi)},gn),y.createElement(zn,(0,z.Z)({},Bl,{renderTabBar:Eo})),y.createElement(be,(0,z.Z)({destroyInactiveTabPane:ci},va,{animated:at}))))}var uo=y.forwardRef(si),Qo=uo,_n=Qo,Vr=m(67392),qr=m(21843),Ui=m(26612);const xo={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Us(tn){let Gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Ei;return Gn===!1?Ei={inkBar:!1,tabPane:!1}:Gn===!0?Ei={inkBar:!0,tabPane:!0}:Ei=Object.assign({inkBar:!0},typeof Gn=="object"?Gn:{}),Ei.tabPane&&(Ei.tabPaneMotion=Object.assign(Object.assign({},xo),{motionName:(0,Ui.m)(tn,"switch")})),Ei}var $n=m(38930),Kn=function(tn,Gn){var Ei={};for(var Ln in tn)Object.prototype.hasOwnProperty.call(tn,Ln)&&Gn.indexOf(Ln)<0&&(Ei[Ln]=tn[Ln]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ii=0,Ln=Object.getOwnPropertySymbols(tn);IiGn)}function mi(tn,Gn){if(tn)return tn;const Ei=(0,$n.Z)(Gn).map(Ln=>{if(y.isValidElement(Ln)){const{key:Ii,props:nr}=Ln,wi=nr||{},{tab:Mi}=wi,Rr=Kn(wi,["tab"]);return Object.assign(Object.assign({key:String(Ii)},Rr),{label:Mi})}return null});return Fr(Ei)}var Tr=m(92068),ti=m(24577),di=m(41788),rn=m(22759),Xr=tn=>{const{componentCls:Gn,motionDurationSlow:Ei}=tn;return[{[Gn]:{[`${Gn}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Ei}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Ei}`}}}}},[(0,rn.oN)(tn,"slide-up"),(0,rn.oN)(tn,"slide-down")]]};const ao=tn=>{const{componentCls:Gn,tabsCardPadding:Ei,cardBg:Ln,cardGutter:Ii,colorBorderSecondary:nr,itemSelectedColor:wi}=tn;return{[`${Gn}-card`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{margin:0,padding:Ei,background:Ln,border:`${tn.lineWidth}px ${tn.lineType} ${nr}`,transition:`all ${tn.motionDurationSlow} ${tn.motionEaseInOut}`},[`${Gn}-tab-active`]:{color:wi,background:tn.colorBgContainer},[`${Gn}-ink-bar`]:{visibility:"hidden"}},[`&${Gn}-top, &${Gn}-bottom`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab + ${Gn}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Ii}px`}}}},[`&${Gn}-top`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{borderRadius:`${tn.borderRadiusLG}px ${tn.borderRadiusLG}px 0 0`},[`${Gn}-tab-active`]:{borderBottomColor:tn.colorBgContainer}}},[`&${Gn}-bottom`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{borderRadius:`0 0 ${tn.borderRadiusLG}px ${tn.borderRadiusLG}px`},[`${Gn}-tab-active`]:{borderTopColor:tn.colorBgContainer}}},[`&${Gn}-left, &${Gn}-right`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab + ${Gn}-tab`]:{marginTop:`${Ii}px`}}},[`&${Gn}-left`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{borderRadius:{_skip_check_:!0,value:`${tn.borderRadiusLG}px 0 0 ${tn.borderRadiusLG}px`}},[`${Gn}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:tn.colorBgContainer}}}},[`&${Gn}-right`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${tn.borderRadiusLG}px ${tn.borderRadiusLG}px 0`}},[`${Gn}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:tn.colorBgContainer}}}}}}},as=tn=>{const{componentCls:Gn,itemHoverColor:Ei,dropdownEdgeChildVerticalPadding:Ln}=tn;return{[`${Gn}-dropdown`]:Object.assign(Object.assign({},(0,Tr.Wf)(tn)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:tn.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Gn}-dropdown-menu`]:{maxHeight:tn.tabsDropdownHeight,margin:0,padding:`${Ln}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:tn.colorBgContainer,backgroundClip:"padding-box",borderRadius:tn.borderRadiusLG,outline:"none",boxShadow:tn.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Tr.vS),{display:"flex",alignItems:"center",minWidth:tn.tabsDropdownWidth,margin:0,padding:`${tn.paddingXXS}px ${tn.paddingSM}px`,color:tn.colorText,fontWeight:"normal",fontSize:tn.fontSize,lineHeight:tn.lineHeight,cursor:"pointer",transition:`all ${tn.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:tn.marginSM},color:tn.colorTextDescription,fontSize:tn.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Ei}},"&:hover":{background:tn.controlItemBgHover},"&-disabled":{"&, &:hover":{color:tn.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Bt=tn=>{const{componentCls:Gn,margin:Ei,colorBorderSecondary:Ln,horizontalMargin:Ii,verticalItemPadding:nr,verticalItemMargin:wi}=tn;return{[`${Gn}-top, ${Gn}-bottom`]:{flexDirection:"column",[`> ${Gn}-nav, > div > ${Gn}-nav`]:{margin:Ii,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${tn.lineWidth}px ${tn.lineType} ${Ln}`,content:"''"},[`${Gn}-ink-bar`]:{height:tn.lineWidthBold,"&-animated":{transition:`width ${tn.motionDurationSlow}, left ${tn.motionDurationSlow}, - right ${tn.motionDurationSlow}`}},[`${Gn}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:tn.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:tn.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:tn.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:`${Ei}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:tn.controlHeight*1.25,[`${Gn}-tab`]:{padding:nr,textAlign:"center"},[`${Gn}-tab + ${Gn}-tab`]:{margin:wi},[`${Gn}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:tn.controlHeight},"&::before":{top:0,boxShadow:tn.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:tn.boxShadowTabsOverflowBottom},[`&${Gn}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Gn}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Gn}-ink-bar`]:{width:tn.lineWidthBold,"&-animated":{transition:`height ${tn.motionDurationSlow}, top ${tn.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:`-${tn.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${tn.lineWidth}px ${tn.lineType} ${tn.colorBorder}`},[`> ${Gn}-content > ${Gn}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:tn.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:-tn.lineWidth},borderRight:{_skip_check_:!0,value:`${tn.lineWidth}px ${tn.lineType} ${tn.colorBorder}`},[`> ${Gn}-content > ${Gn}-tabpane`]:{paddingRight:{_skip_check_:!0,value:tn.paddingLG}}}}}},pn=tn=>{const{componentCls:Gn,cardPaddingSM:Ei,cardPaddingLG:Ln,horizontalItemPaddingSM:Ii,horizontalItemPaddingLG:nr}=tn;return{[Gn]:{"&-small":{[`> ${Gn}-nav`]:{[`${Gn}-tab`]:{padding:Ii,fontSize:tn.titleFontSizeSM}}},"&-large":{[`> ${Gn}-nav`]:{[`${Gn}-tab`]:{padding:nr,fontSize:tn.titleFontSizeLG}}}},[`${Gn}-card`]:{[`&${Gn}-small`]:{[`> ${Gn}-nav`]:{[`${Gn}-tab`]:{padding:Ei}},[`&${Gn}-bottom`]:{[`> ${Gn}-nav ${Gn}-tab`]:{borderRadius:`0 0 ${tn.borderRadius}px ${tn.borderRadius}px`}},[`&${Gn}-top`]:{[`> ${Gn}-nav ${Gn}-tab`]:{borderRadius:`${tn.borderRadius}px ${tn.borderRadius}px 0 0`}},[`&${Gn}-right`]:{[`> ${Gn}-nav ${Gn}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${tn.borderRadius}px ${tn.borderRadius}px 0`}}},[`&${Gn}-left`]:{[`> ${Gn}-nav ${Gn}-tab`]:{borderRadius:{_skip_check_:!0,value:`${tn.borderRadius}px 0 0 ${tn.borderRadius}px`}}}},[`&${Gn}-large`]:{[`> ${Gn}-nav`]:{[`${Gn}-tab`]:{padding:Ln}}}}}},xr=tn=>{const{componentCls:Gn,itemActiveColor:Ei,itemHoverColor:Ln,iconCls:Ii,tabsHorizontalItemMargin:nr,horizontalItemPadding:wi,itemSelectedColor:Mi,itemColor:Rr}=tn,Xn=`${Gn}-tab`;return{[Xn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:wi,fontSize:tn.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Rr,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Ei}},(0,Tr.Qy)(tn)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-tn.marginXXS},marginLeft:{_skip_check_:!0,value:tn.marginXS},color:tn.colorTextDescription,fontSize:tn.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${tn.motionDurationSlow}`,"&:hover":{color:tn.colorTextHeading}},"&:hover":{color:Ln},[`&${Xn}-active ${Xn}-btn`]:{color:Mi,textShadow:tn.tabsActiveTextShadow},[`&${Xn}-disabled`]:{color:tn.colorTextDisabled,cursor:"not-allowed"},[`&${Xn}-disabled ${Xn}-btn, &${Xn}-disabled ${Gn}-remove`]:{"&:focus, &:active":{color:tn.colorTextDisabled}},[`& ${Xn}-remove ${Ii}`]:{margin:0},[Ii]:{marginRight:{_skip_check_:!0,value:tn.marginSM}}},[`${Xn} + ${Xn}`]:{margin:{_skip_check_:!0,value:nr}}}},Jr=tn=>{const{componentCls:Gn,tabsHorizontalItemMarginRTL:Ei,iconCls:Ln,cardGutter:Ii}=tn;return{[`${Gn}-rtl`]:{direction:"rtl",[`${Gn}-nav`]:{[`${Gn}-tab`]:{margin:{_skip_check_:!0,value:Ei},[`${Gn}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ln]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${tn.marginSM}px`}},[`${Gn}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${tn.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${tn.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:Ii},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Gn}-dropdown-rtl`]:{direction:"rtl"},[`${Gn}-menu-item`]:{[`${Gn}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},vi=tn=>{const{componentCls:Gn,tabsCardPadding:Ei,cardHeight:Ln,cardGutter:Ii,itemHoverColor:nr,itemActiveColor:wi,colorBorderSecondary:Mi}=tn;return{[Gn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Tr.Wf)(tn)),{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 ${tn.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Gn}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${tn.motionDurationSlow}`},[`${Gn}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Gn}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Gn}-nav-more`]:{position:"relative",padding:Ei,background:"transparent",border:0,color:tn.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:tn.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Gn}-nav-add`]:Object.assign({minWidth:Ln,marginLeft:{_skip_check_:!0,value:Ii},padding:`0 ${tn.paddingXS}px`,background:"transparent",border:`${tn.lineWidth}px ${tn.lineType} ${Mi}`,borderRadius:`${tn.borderRadiusLG}px ${tn.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:tn.colorText,transition:`all ${tn.motionDurationSlow} ${tn.motionEaseInOut}`,"&:hover":{color:nr},"&:active, &:focus:not(:focus-visible)":{color:wi}},(0,Tr.Qy)(tn))},[`${Gn}-extra-content`]:{flex:"none"},[`${Gn}-ink-bar`]:{position:"absolute",background:tn.inkBarColor,pointerEvents:"none"}}),xr(tn)),{[`${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 Ti=(0,ti.Z)("Tabs",tn=>{const Gn=(0,di.TS)(tn,{tabsCardPadding:tn.cardPadding||`${(tn.cardHeight-Math.round(tn.fontSize*tn.lineHeight))/2-tn.lineWidth}px ${tn.padding}px`,dropdownEdgeChildVerticalPadding:tn.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${tn.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${tn.horizontalItemGutter}px`});return[pn(Gn),Jr(Gn),Bt(Gn),as(Gn),ao(Gn),vi(Gn),Xr(Gn)]},tn=>{const Gn=tn.controlHeightLG;return{zIndexPopup:tn.zIndexPopupBase+50,cardBg:tn.colorFillAlter,cardHeight:Gn,cardPadding:"",cardPaddingSM:`${tn.paddingXXS*1.5}px ${tn.padding}px`,cardPaddingLG:`${tn.paddingXS}px ${tn.padding}px ${tn.paddingXXS*1.5}px`,titleFontSize:tn.fontSize,titleFontSizeLG:tn.fontSizeLG,titleFontSizeSM:tn.fontSize,inkBarColor:tn.colorPrimary,horizontalMargin:`0 0 ${tn.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${tn.paddingSM}px 0`,horizontalItemPaddingSM:`${tn.paddingXS}px 0`,horizontalItemPaddingLG:`${tn.padding}px 0`,verticalItemPadding:`${tn.paddingXS}px ${tn.paddingLG}px`,verticalItemMargin:`${tn.margin}px 0 0 0`,itemColor:tn.colorText,itemSelectedColor:tn.colorPrimary,itemHoverColor:tn.colorPrimaryHover,itemActiveColor:tn.colorPrimaryActive,cardGutter:tn.marginXXS/2}}),Qr=()=>null,oi=function(tn,Gn){var Ei={};for(var Ln in tn)Object.prototype.hasOwnProperty.call(tn,Ln)&&Gn.indexOf(Ln)<0&&(Ei[Ln]=tn[Ln]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ii=0,Ln=Object.getOwnPropertySymbols(tn);Ii{const{type:Gn,className:Ei,rootClassName:Ln,size:Ii,onEdit:nr,hideAdd:wi,centered:Mi,addIcon:Rr,popupClassName:Xn,children:ms,items:ya,animated:fa,style:Ws,indicatorSize:Ua}=tn,Ao=oi(tn,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:cl,moreIcon:$r=y.createElement(b.Z,null)}=Ao,{direction:er,tabs:Dr,getPrefixCls:pr,getPopupContainer:ci}=y.useContext(Vr.E_),Eo=pr("tabs",cl),[mo,Ts]=Ti(Eo);let xs;Gn==="editable-card"&&(xs={onEdit:(tt,at)=>{let{key:gt,event:Re}=at;nr==null||nr(tt==="add"?Re:gt,tt)},removeIcon:y.createElement(I.Z,null),addIcon:Rr||y.createElement(A,null),showAdd:wi!==!0});const Er=pr(),ui=mi(ya,ms),Xt=Us(Eo,fa),gn=(0,qr.Z)(Ii),En=Object.assign(Object.assign({},Dr==null?void 0:Dr.style),Ws);return mo(y.createElement(_n,Object.assign({direction:er,getPopupContainer:ci,moreTransitionName:`${Er}-slide-up`},Ao,{items:ui,className:f()({[`${Eo}-${gn}`]:gn,[`${Eo}-card`]:["card","editable-card"].includes(Gn),[`${Eo}-editable-card`]:Gn==="editable-card",[`${Eo}-centered`]:Mi},Dr==null?void 0:Dr.className,Ei,Ln,Ts),popupClassName:f()(Xn,Ts),style:En,editable:xs,moreIcon:$r,prefixCls:Eo,animated:Xt,indicatorSize:Ua!=null?Ua:Dr==null?void 0:Dr.indicatorSize})))};Zi.TabPane=Qr;var Ir=Zi},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 Ce=ye!=null&&ye.algorithm?(0,y.jG)(ye.algorithm):(0,y.jG)(I.Z),xe=Object.assign(Object.assign({},b.Z),ye==null?void 0:ye.token);return(0,y.t2)(xe,{override:ye==null?void 0:ye.token},Ce,z.Z)},w=m(99737),A=m(13803),C=m(83577);function f(ye){const{sizeUnit:Ce,sizeStep:xe}=ye,Ae=xe-2;return{sizeXXL:Ce*(Ae+10),sizeXL:Ce*(Ae+6),sizeLG:Ce*(Ae+2),sizeMD:Ce*(Ae+2),sizeMS:Ce*(Ae+1),size:Ce*Ae,sizeSM:Ce*Ae,sizeXS:Ce*(Ae-1),sizeXXS:Ce*(Ae-1)}}var S=m(10360),W=(ye,Ce)=>{const xe=Ce!=null?Ce:(0,I.Z)(ye),Ae=xe.fontSizeSM,ge=xe.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xe),f(Ce!=null?Ce:ye)),(0,S.Z)(Ae)),{controlHeight:ge}),(0,C.Z)(Object.assign(Object.assign({},xe),{controlHeight:ge})))},te=m(63511),re=m(38087),ce=m(64993);const pe=(ye,Ce)=>new ce.C(ye).setAlpha(Ce).toRgbString(),he=(ye,Ce)=>new ce.C(ye).lighten(Ce).toHexString(),fe=ye=>{const Ce=(0,te.R_)(ye,{theme:"dark"});return{1:Ce[0],2:Ce[1],3:Ce[2],4:Ce[3],5:Ce[6],6:Ce[5],7:Ce[4],8:Ce[6],9:Ce[5],10:Ce[4]}},Be=(ye,Ce)=>{const xe=ye||"#000",Ae=Ce||"#fff";return{colorBgBase:xe,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(xe,12),colorBgContainer:he(xe,8),colorBgLayout:he(xe,0),colorBgSpotlight:he(xe,26),colorBgBlur:pe(Ae,.04),colorBorder:he(xe,26),colorBorderSecondary:he(xe,19)}};var je=(ye,Ce)=>{const xe=Object.keys(b.M).map(ge=>{const We=(0,te.R_)(ye[ge],{theme:"dark"});return new Array(10).fill(1).reduce((Se,Pt,dt)=>(Se[`${ge}-${dt+1}`]=We[dt],Se[`${ge}${dt+1}`]=We[dt],Se),{})}).reduce((ge,We)=>(ge=Object.assign(Object.assign({},ge),We),ge),{}),Ae=Ce!=null?Ce:(0,I.Z)(ye);return Object.assign(Object.assign(Object.assign({},Ae),xe),(0,re.Z)(ye,{generateColorPalettes:fe,generateNeutralColorPalettes:Be}))};function be(){const[ye,Ce,xe]=(0,w.Z)();return{theme:ye,token:Ce,hashId:xe}}var ve={defaultConfig:A.u_,defaultSeed:A.u_.token,useToken:be,defaultAlgorithm:I.Z,darkAlgorithm:je,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 te=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,je)=>(Be[`${he}-${je+1}`]=fe[je],Be[`${he}${je+1}`]=fe[je],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,te.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, + `]:{position:"relative",color:Ot,fontWeight:W,textAlign:"start",background:en,borderBottom:Cr,transition:`background ${Kt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Q}-selection-column):not(${Q}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:pn,transform:"translateY(-50%)",transition:`background-color ${Kt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Q}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${Kt}, border-color ${Kt}`,borderBottom:Cr,[` + > ${Q}-wrapper:only-child, + > ${Q}-expanded-row-fixed > ${Q}-wrapper:only-child + `]:{[Q]:{marginBlock:`-${de}px`,marginInline:`${on.tableExpandColumnWidth-ke}px -${ke}px`,[`${Q}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Ot,fontWeight:W,textAlign:"start",background:en,borderBottom:Cr,transition:`background ${Kt} ease`}}},[`${Q}-footer`]:{padding:`${de}px ${ke}px`,color:Wn,background:ar}})}};var hm=(0,_u.Z)("Table",on=>{const{colorTextHeading:Q,colorSplit:W,colorIcon:de,colorIconHover:ke,opacityLoading:yt,colorBgContainer:We,controlInteractiveSize:Fe,headerBg:ct,headerColor:It,headerSortActiveBg:kt,headerSortHoverBg:Ot,bodySortBg:Kt,rowHoverBg:en,rowSelectedBg:pn,rowSelectedHoverBg:Wn,rowExpandedBg:ar,cellPaddingBlock:Cr,cellPaddingInline:mr,cellPaddingBlockMD:Hn,cellPaddingInlineMD:gr,cellPaddingBlockSM:Tr,cellPaddingInlineSM:wi,borderColor:zi,footerBg:ei,footerColor:li,headerBorderRadius:ci,cellFontSize:ji,cellFontSizeMD:hi,cellFontSizeSM:bo,headerSplitColor:br,fixedHeaderSortActiveBg:mi,headerFilterHoverBg:Er,filterDropdownBg:Jr,expandIconBg:Gn,selectionColumnWidth:Or,stickyScrollBarBg:Rr}=on,vi=new Xd.C(de),Li=new Xd.C(ke),Ki=2,_o=(0,Hl.TS)(on,{tableFontSize:ji,tableBg:We,tableRadius:ci,tablePaddingVertical:Cr,tablePaddingHorizontal:mr,tablePaddingVerticalMiddle:Hn,tablePaddingHorizontalMiddle:gr,tablePaddingVerticalSmall:Tr,tablePaddingHorizontalSmall:wi,tableBorderColor:zi,tableHeaderTextColor:It,tableHeaderBg:ct,tableFooterTextColor:li,tableFooterBg:ei,tableHeaderCellSplitColor:br,tableHeaderSortBg:kt,tableHeaderSortHoverBg:Ot,tableHeaderIconColor:vi.clone().setAlpha(vi.getAlpha()*yt).toRgbString(),tableHeaderIconColorHover:Li.clone().setAlpha(Li.getAlpha()*yt).toRgbString(),tableBodySortBg:Kt,tableFixedHeaderSortActiveBg:mi,tableHeaderFilterActiveBg:Er,tableFilterDropdownBg:Jr,tableRowHoverBg:en,tableSelectedRowBg:pn,tableSelectedRowHoverBg:Wn,zIndexTableFixed:Ki,zIndexTableSticky:Ki+1,tableFontSizeMiddle:hi,tableFontSizeSmall:bo,tableSelectionColumnWidth:Or,tableExpandIconBg:Gn,tableExpandColumnWidth:Fe+2*on.padding,tableExpandedRowBg:ar,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Rr,tableScrollThumbBgHover:Q,tableScrollBg:W});return[Qm(_o),m0(_o),T0(_o),v0(_o),Hm(_o),Ag(_o),em(_o),Jg(_o),T0(_o),Am(_o),F0(_o),Sg(_o),tm(_o),Wf(_o),gp(_o),Cm(_o),Bd(_o)]},on=>{const{colorFillAlter:Q,colorBgContainer:W,colorTextHeading:de,colorFillSecondary:ke,colorFillContent:yt,controlItemBgActive:We,controlItemBgActiveHover:Fe,padding:ct,paddingSM:It,paddingXS:kt,colorBorderSecondary:Ot,borderRadiusLG:Kt,fontSize:en,controlHeight:pn,colorTextPlaceholder:Wn}=on,ar=new Xd.C(ke).onBackground(W).toHexShortString(),Cr=new Xd.C(yt).onBackground(W).toHexShortString(),mr=new Xd.C(Q).onBackground(W).toHexShortString();return{headerBg:mr,headerColor:de,headerSortActiveBg:ar,headerSortHoverBg:Cr,bodySortBg:mr,rowHoverBg:mr,rowSelectedBg:We,rowSelectedHoverBg:Fe,rowExpandedBg:Q,cellPaddingBlock:ct,cellPaddingInline:ct,cellPaddingBlockMD:It,cellPaddingInlineMD:kt,cellPaddingBlockSM:kt,cellPaddingInlineSM:kt,borderColor:Ot,headerBorderRadius:Kt,footerBg:mr,footerColor:de,cellFontSize:en,cellFontSizeMD:en,cellFontSizeSM:en,headerSplitColor:Ot,fixedHeaderSortActiveBg:ar,headerFilterHoverBg:yt,filterDropdownMenuBg:W,filterDropdownBg:W,expandIconBg:W,selectionColumnWidth:pn,stickyScrollBarBg:Wn,stickyScrollBarBorderRadius:100}});const n0=[],mm=(on,Q)=>{const{prefixCls:W,className:de,rootClassName:ke,style:yt,size:We,bordered:Fe,dropdownPrefixCls:ct,dataSource:It,pagination:kt,rowSelection:Ot,rowKey:Kt="key",rowClassName:en,columns:pn,children:Wn,childrenColumnName:ar,onChange:Cr,getPopupContainer:mr,loading:Hn,expandIcon:gr,expandable:Tr,expandedRowRender:wi,expandIconColumnIndex:zi,indentSize:ei,scroll:li,sortDirections:ci,locale:ji,showSorterTooltip:hi=!0,virtual:bo}=on,br=(0,fs.ln)("Table"),mi=v.useMemo(()=>pn||Wr(Wn),[pn,Wn]),Er=v.useMemo(()=>mi.some(jc=>jc.responsive),[mi]),Jr=(0,ic.Z)(Er),Gn=v.useMemo(()=>{const jc=new Set(Object.keys(Jr).filter(Au=>Jr[Au]));return mi.filter(Au=>!Au.responsive||Au.responsive.some(Xc=>jc.has(Xc)))},[mi,Jr]),Or=(0,Xl.Z)(on,["className","style","columns"]),{locale:Rr=Gu.Z,direction:vi,table:Li,renderEmpty:Ki,getPrefixCls:_o,getPopupContainer:xs}=v.useContext(il.E_),ts=(0,hu.Z)(We),vs=Object.assign(Object.assign({},Rr.Table),ji),_a=It||n0,Bo=_o("table",W),Ja=_o("dropdown",ct),ns=Object.assign({childrenColumnName:ar,expandIconColumnIndex:zi},Tr),{childrenColumnName:no="children"}=ns,Qs=v.useMemo(()=>_a.some(jc=>jc==null?void 0:jc[no])?"nest":wi||Tr&&Tr.expandedRowRender?"row":null,[_a]),ca={body:v.useRef()},Ts=vd(Bo),ro=v.useRef(null),cs=v.useRef(null);Cl(Q,()=>Object.assign(Object.assign({},cs.current),{nativeElement:ro.current}));const ia=v.useMemo(()=>typeof Kt=="function"?Kt:jc=>jc==null?void 0:jc[Kt],[Kt]),[Yl]=Vc(_a,no,ia),Fn={},io=function(jc,Au){let Xc=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var vc,Qa,hd;const Ge=Object.assign(Object.assign({},Fn),jc);Xc&&((vc=Fn.resetPagination)===null||vc===void 0||vc.call(Fn),!((Qa=Ge.pagination)===null||Qa===void 0)&&Qa.current&&(Ge.pagination.current=1),kt&&kt.onChange&&kt.onChange(1,(hd=Ge.pagination)===null||hd===void 0?void 0:hd.pageSize)),li&&li.scrollToFirstRowOnChange!==!1&&ca.body.current&&Xs(0,{getContainer:()=>ca.body.current}),Cr==null||Cr(Ge.pagination,Ge.filters,Ge.sorter,{currentDataSource:Qc(Pd(_a,Ge.sorterStates,no),Ge.filterStates),action:Au})},Qr=(jc,Au)=>{io({sorter:jc,sorterStates:Au},"sort",!1)},[qi,vo,os,Ms]=ep({prefixCls:Bo,mergedColumns:Gn,onSorterChange:Qr,sortDirections:ci||["ascend","descend"],tableLocale:vs,showSorterTooltip:hi}),Ke=v.useMemo(()=>Pd(_a,vo,no),[_a,vo]);Fn.sorter=Ms(),Fn.sorterStates=vo;const Ka=(jc,Au)=>{io({filters:jc,filterStates:Au},"filter",!0)},[su,Wl,jl]=Id({prefixCls:Bo,locale:vs,dropdownPrefixCls:Ja,mergedColumns:Gn,onFilterChange:Ka,getPopupContainer:mr||xs}),$l=Qc(Ke,Wl);Fn.filters=jl,Fn.filterStates=Wl;const ql=v.useMemo(()=>{const jc={};return Object.keys(jl).forEach(Au=>{jl[Au]!==null&&(jc[Au]=jl[Au])}),Object.assign(Object.assign({},os),{filters:jc})},[os,jl]),[Ys]=eg(ql),Ti=(jc,Au)=>{io({pagination:Object.assign(Object.assign({},Fn.pagination),{current:jc,pageSize:Au})},"paginate")},[rs,ys]=ud($l.length,Ti,kt);Fn.pagination=kt===!1?{}:Zd(rs,kt),Fn.resetPagination=ys;const ma=v.useMemo(()=>{if(kt===!1||!rs.pageSize)return $l;const{current:jc=1,total:Au,pageSize:Xc=Yh}=rs;return $l.lengthXc?$l.slice((jc-1)*Xc,jc*Xc):$l:$l.slice((jc-1)*Xc,jc*Xc)},[!!kt,$l,rs&&rs.current,rs&&rs.pageSize,rs&&rs.total]),[za,Ol]=cu({prefixCls:Bo,data:$l,pageData:ma,getRowKey:ia,getRecordByKey:Yl,expandType:Qs,childrenColumnName:no,locale:vs,getPopupContainer:mr||xs},Ot),ua=(jc,Au,Xc)=>{let vc;return typeof en=="function"?vc=Ne()(en(jc,Au,Xc)):vc=Ne()(en),Ne()({[`${Bo}-row-selected`]:Ol.has(ia(jc,Au))},vc)};ns.__PARENT_RENDER_ICON__=ns.expandIcon,ns.expandIcon=ns.expandIcon||gr||Jc(vs),Qs==="nest"&&ns.expandIconColumnIndex===void 0?ns.expandIconColumnIndex=Ot?1:0:ns.expandIconColumnIndex>0&&Ot&&(ns.expandIconColumnIndex-=1),typeof ns.indentSize!="number"&&(ns.indentSize=typeof ei=="number"?ei:15);const $r=v.useCallback(jc=>Ys(za(su(qi(jc)))),[qi,su,za]);let Ko,ea;if(kt!==!1&&(rs!=null&&rs.total)){let jc;rs.size?jc=rs.size:jc=ts==="small"||ts==="middle"?"small":void 0;const Au=Qa=>v.createElement(Dh,Object.assign({},rs,{className:Ne()(`${Bo}-pagination ${Bo}-pagination-${Qa}`,rs.className),size:jc})),Xc=vi==="rtl"?"left":"right",{position:vc}=rs;if(vc!==null&&Array.isArray(vc)){const Qa=vc.find(He=>He.includes("top")),hd=vc.find(He=>He.includes("bottom")),Ge=vc.every(He=>`${He}`=="none");!Qa&&!hd&&!Ge&&(ea=Au(Xc)),Qa&&(Ko=Au(Qa.toLowerCase().replace("top",""))),hd&&(ea=Au(hd.toLowerCase().replace("bottom","")))}else ea=Au(Xc)}let Nl;typeof Hn=="boolean"?Nl={spinning:Hn}:typeof Hn=="object"&&(Nl=Object.assign({spinning:!0},Hn));const[ru,Rl]=hm(Bo),[,ha]=(0,lf.Z)(),pu=Ne()(`${Bo}-wrapper`,Li==null?void 0:Li.className,{[`${Bo}-wrapper-rtl`]:vi==="rtl"},de,ke,Rl),Kl=Object.assign(Object.assign({},Li==null?void 0:Li.style),yt),xh=ji&&ji.emptyText||(Ki==null?void 0:Ki("Table"))||v.createElement(iu.Z,{componentName:"Table"}),au=bo?If:Cp,$c={},Fl=v.useMemo(()=>{const{fontSize:jc,lineHeight:Au,padding:Xc,paddingXS:vc,paddingSM:Qa}=ha,hd=Math.floor(jc*Au);switch(ts){case"large":return Xc*2+hd;case"small":return vc*2+hd;default:return Qa*2+hd}},[ha,ts]);return bo&&($c.listItemHeight=Fl),ru(v.createElement("div",{ref:ro,className:pu,style:Kl},v.createElement(ff.Z,Object.assign({spinning:!1},Nl),Ko,v.createElement(au,Object.assign({},$c,Or,{ref:cs,columns:Gn,direction:vi,expandable:ns,prefixCls:Bo,className:Ne()({[`${Bo}-middle`]:ts==="middle",[`${Bo}-small`]:ts==="small",[`${Bo}-bordered`]:Fe,[`${Bo}-empty`]:_a.length===0}),data:ma,rowKey:ia,rowClassName:ua,emptyText:xh,internalHooks:C,internalRefs:ca,transformColumns:$r,getContainerWidth:Ts})),ea)))};var $m=v.forwardRef(mm);const Np=(on,Q)=>{const W=v.useRef(0);return W.current+=1,v.createElement($m,Object.assign({},on,{ref:Q,_renderTimes:W.current}))},ug=v.forwardRef(Np);ug.SELECTION_COLUMN=rl,ug.EXPAND_COLUMN=M,ug.SELECTION_ALL=Dl,ug.SELECTION_INVERT=Oa,ug.SELECTION_NONE=ju,ug.Column=cc,ug.ColumnGroup=Pn,ug.Summary=hn;var Sm=ug,vm=Sm},64316:function(mt,q,_){"use strict";_.d(q,{Z:function(){return Nn}});var v=_(77617),M=_(49934),C=_(93319),x=_(26508),N=_(28186),V=_(91851),R=function(zn,Kr){return v.createElement(V.Z,(0,x.Z)({},zn,{ref:Kr,icon:N.Z}))},k=v.forwardRef(R),S=_(12124),p=_.n(S),T=_(5984),F=_(41203),K=_(29212),he=_(8418);const fe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function be(mn){let zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Kr;return zn===!1?Kr={inkBar:!1,tabPane:!1}:zn===!0?Kr={inkBar:!0,tabPane:!0}:Kr=Object.assign({inkBar:!0},typeof zn=="object"?zn:{}),Kr.tabPane&&(Kr.tabPaneMotion=Object.assign(Object.assign({},fe),{motionName:(0,he.m)(mn,"switch")})),Kr}var Ae=_(38930),xe=function(mn,zn){var Kr={};for(var Ui in mn)Object.prototype.hasOwnProperty.call(mn,Ui)&&zn.indexOf(Ui)<0&&(Kr[Ui]=mn[Ui]);if(mn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var go=0,Ui=Object.getOwnPropertySymbols(mn);gozn)}function it(mn,zn){if(mn)return mn;const Kr=(0,Ae.Z)(zn).map(Ui=>{if(v.isValidElement(Ui)){const{key:go,props:gi}=Ui,Mr=gi||{},{tab:To}=Mr,ms=xe(Mr,["tab"]);return Object.assign(Object.assign({key:String(go)},ms),{label:To})}return null});return Se(Kr)}var Xe=_(21348),ft=_(93154),Me=_(43040),Ee=_(81437),Pe=mn=>{const{componentCls:zn,motionDurationSlow:Kr}=mn;return[{[zn]:{[`${zn}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Kr}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Kr}`}}}}},[(0,Ee.oN)(mn,"slide-up"),(0,Ee.oN)(mn,"slide-down")]]};const Re=mn=>{const{componentCls:zn,tabsCardPadding:Kr,cardBg:Ui,cardGutter:go,colorBorderSecondary:gi,itemSelectedColor:Mr}=mn;return{[`${zn}-card`]:{[`> ${zn}-nav, > div > ${zn}-nav`]:{[`${zn}-tab`]:{margin:0,padding:Kr,background:Ui,border:`${mn.lineWidth}px ${mn.lineType} ${gi}`,transition:`all ${mn.motionDurationSlow} ${mn.motionEaseInOut}`},[`${zn}-tab-active`]:{color:Mr,background:mn.colorBgContainer},[`${zn}-ink-bar`]:{visibility:"hidden"}},[`&${zn}-top, &${zn}-bottom`]:{[`> ${zn}-nav, > div > ${zn}-nav`]:{[`${zn}-tab + ${zn}-tab`]:{marginLeft:{_skip_check_:!0,value:`${go}px`}}}},[`&${zn}-top`]:{[`> ${zn}-nav, > div > ${zn}-nav`]:{[`${zn}-tab`]:{borderRadius:`${mn.borderRadiusLG}px ${mn.borderRadiusLG}px 0 0`},[`${zn}-tab-active`]:{borderBottomColor:mn.colorBgContainer}}},[`&${zn}-bottom`]:{[`> ${zn}-nav, > div > ${zn}-nav`]:{[`${zn}-tab`]:{borderRadius:`0 0 ${mn.borderRadiusLG}px ${mn.borderRadiusLG}px`},[`${zn}-tab-active`]:{borderTopColor:mn.colorBgContainer}}},[`&${zn}-left, &${zn}-right`]:{[`> ${zn}-nav, > div > ${zn}-nav`]:{[`${zn}-tab + ${zn}-tab`]:{marginTop:`${go}px`}}},[`&${zn}-left`]:{[`> ${zn}-nav, > div > ${zn}-nav`]:{[`${zn}-tab`]:{borderRadius:{_skip_check_:!0,value:`${mn.borderRadiusLG}px 0 0 ${mn.borderRadiusLG}px`}},[`${zn}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:mn.colorBgContainer}}}},[`&${zn}-right`]:{[`> ${zn}-nav, > div > ${zn}-nav`]:{[`${zn}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${mn.borderRadiusLG}px ${mn.borderRadiusLG}px 0`}},[`${zn}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:mn.colorBgContainer}}}}}}},je=mn=>{const{componentCls:zn,itemHoverColor:Kr,dropdownEdgeChildVerticalPadding:Ui}=mn;return{[`${zn}-dropdown`]:Object.assign(Object.assign({},(0,Xe.Wf)(mn)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:mn.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${zn}-dropdown-menu`]:{maxHeight:mn.tabsDropdownHeight,margin:0,padding:`${Ui}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:mn.colorBgContainer,backgroundClip:"padding-box",borderRadius:mn.borderRadiusLG,outline:"none",boxShadow:mn.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Xe.vS),{display:"flex",alignItems:"center",minWidth:mn.tabsDropdownWidth,margin:0,padding:`${mn.paddingXXS}px ${mn.paddingSM}px`,color:mn.colorText,fontWeight:"normal",fontSize:mn.fontSize,lineHeight:mn.lineHeight,cursor:"pointer",transition:`all ${mn.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:mn.marginSM},color:mn.colorTextDescription,fontSize:mn.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Kr}},"&:hover":{background:mn.controlItemBgHover},"&-disabled":{"&, &:hover":{color:mn.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Ce=mn=>{const{componentCls:zn,margin:Kr,colorBorderSecondary:Ui,horizontalMargin:go,verticalItemPadding:gi,verticalItemMargin:Mr}=mn;return{[`${zn}-top, ${zn}-bottom`]:{flexDirection:"column",[`> ${zn}-nav, > div > ${zn}-nav`]:{margin:go,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${mn.lineWidth}px ${mn.lineType} ${Ui}`,content:"''"},[`${zn}-ink-bar`]:{height:mn.lineWidthBold,"&-animated":{transition:`width ${mn.motionDurationSlow}, left ${mn.motionDurationSlow}, + right ${mn.motionDurationSlow}`}},[`${zn}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:mn.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:mn.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:mn.boxShadowTabsOverflowRight},[`&${zn}-nav-wrap-ping-left::before`]:{opacity:1},[`&${zn}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${zn}-top`]:{[`> ${zn}-nav, + > div > ${zn}-nav`]:{"&::before":{bottom:0},[`${zn}-ink-bar`]:{bottom:0}}},[`${zn}-bottom`]:{[`> ${zn}-nav, > div > ${zn}-nav`]:{order:1,marginTop:`${Kr}px`,marginBottom:0,"&::before":{top:0},[`${zn}-ink-bar`]:{top:0}},[`> ${zn}-content-holder, > div > ${zn}-content-holder`]:{order:0}},[`${zn}-left, ${zn}-right`]:{[`> ${zn}-nav, > div > ${zn}-nav`]:{flexDirection:"column",minWidth:mn.controlHeight*1.25,[`${zn}-tab`]:{padding:gi,textAlign:"center"},[`${zn}-tab + ${zn}-tab`]:{margin:Mr},[`${zn}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:mn.controlHeight},"&::before":{top:0,boxShadow:mn.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:mn.boxShadowTabsOverflowBottom},[`&${zn}-nav-wrap-ping-top::before`]:{opacity:1},[`&${zn}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${zn}-ink-bar`]:{width:mn.lineWidthBold,"&-animated":{transition:`height ${mn.motionDurationSlow}, top ${mn.motionDurationSlow}`}},[`${zn}-nav-list, ${zn}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${zn}-left`]:{[`> ${zn}-nav, > div > ${zn}-nav`]:{[`${zn}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${zn}-content-holder, > div > ${zn}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${mn.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${mn.lineWidth}px ${mn.lineType} ${mn.colorBorder}`},[`> ${zn}-content > ${zn}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:mn.paddingLG}}}},[`${zn}-right`]:{[`> ${zn}-nav, > div > ${zn}-nav`]:{order:1,[`${zn}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${zn}-content-holder, > div > ${zn}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-mn.lineWidth},borderRight:{_skip_check_:!0,value:`${mn.lineWidth}px ${mn.lineType} ${mn.colorBorder}`},[`> ${zn}-content > ${zn}-tabpane`]:{paddingRight:{_skip_check_:!0,value:mn.paddingLG}}}}}},rt=mn=>{const{componentCls:zn,cardPaddingSM:Kr,cardPaddingLG:Ui,horizontalItemPaddingSM:go,horizontalItemPaddingLG:gi}=mn;return{[zn]:{"&-small":{[`> ${zn}-nav`]:{[`${zn}-tab`]:{padding:go,fontSize:mn.titleFontSizeSM}}},"&-large":{[`> ${zn}-nav`]:{[`${zn}-tab`]:{padding:gi,fontSize:mn.titleFontSizeLG}}}},[`${zn}-card`]:{[`&${zn}-small`]:{[`> ${zn}-nav`]:{[`${zn}-tab`]:{padding:Kr}},[`&${zn}-bottom`]:{[`> ${zn}-nav ${zn}-tab`]:{borderRadius:`0 0 ${mn.borderRadius}px ${mn.borderRadius}px`}},[`&${zn}-top`]:{[`> ${zn}-nav ${zn}-tab`]:{borderRadius:`${mn.borderRadius}px ${mn.borderRadius}px 0 0`}},[`&${zn}-right`]:{[`> ${zn}-nav ${zn}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${mn.borderRadius}px ${mn.borderRadius}px 0`}}},[`&${zn}-left`]:{[`> ${zn}-nav ${zn}-tab`]:{borderRadius:{_skip_check_:!0,value:`${mn.borderRadius}px 0 0 ${mn.borderRadius}px`}}}},[`&${zn}-large`]:{[`> ${zn}-nav`]:{[`${zn}-tab`]:{padding:Ui}}}}}},Ne=mn=>{const{componentCls:zn,itemActiveColor:Kr,itemHoverColor:Ui,iconCls:go,tabsHorizontalItemMargin:gi,horizontalItemPadding:Mr,itemSelectedColor:To,itemColor:ms}=mn,De=`${zn}-tab`;return{[De]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Mr,fontSize:mn.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:ms,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Kr}},(0,Xe.Qy)(mn)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-mn.marginXXS},marginLeft:{_skip_check_:!0,value:mn.marginXS},color:mn.colorTextDescription,fontSize:mn.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${mn.motionDurationSlow}`,"&:hover":{color:mn.colorTextHeading}},"&:hover":{color:Ui},[`&${De}-active ${De}-btn`]:{color:To,textShadow:mn.tabsActiveTextShadow},[`&${De}-disabled`]:{color:mn.colorTextDisabled,cursor:"not-allowed"},[`&${De}-disabled ${De}-btn, &${De}-disabled ${zn}-remove`]:{"&:focus, &:active":{color:mn.colorTextDisabled}},[`& ${De}-remove ${go}`]:{margin:0},[go]:{marginRight:{_skip_check_:!0,value:mn.marginSM}}},[`${De} + ${De}`]:{margin:{_skip_check_:!0,value:gi}}}},Xt=mn=>{const{componentCls:zn,tabsHorizontalItemMarginRTL:Kr,iconCls:Ui,cardGutter:go}=mn;return{[`${zn}-rtl`]:{direction:"rtl",[`${zn}-nav`]:{[`${zn}-tab`]:{margin:{_skip_check_:!0,value:Kr},[`${zn}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ui]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${mn.marginSM}px`}},[`${zn}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${mn.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${mn.marginXXS}px`},[Ui]:{margin:0}}}},[`&${zn}-left`]:{[`> ${zn}-nav`]:{order:1},[`> ${zn}-content-holder`]:{order:0}},[`&${zn}-right`]:{[`> ${zn}-nav`]:{order:0},[`> ${zn}-content-holder`]:{order:1}},[`&${zn}-card${zn}-top, &${zn}-card${zn}-bottom`]:{[`> ${zn}-nav, > div > ${zn}-nav`]:{[`${zn}-tab + ${zn}-tab`]:{marginRight:{_skip_check_:!0,value:go},marginLeft:{_skip_check_:!0,value:0}}}}},[`${zn}-dropdown-rtl`]:{direction:"rtl"},[`${zn}-menu-item`]:{[`${zn}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ft=mn=>{const{componentCls:zn,tabsCardPadding:Kr,cardHeight:Ui,cardGutter:go,itemHoverColor:gi,itemActiveColor:Mr,colorBorderSecondary:To}=mn;return{[zn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Xe.Wf)(mn)),{display:"flex",[`> ${zn}-nav, > div > ${zn}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${zn}-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 ${mn.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${zn}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${mn.motionDurationSlow}`},[`${zn}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${zn}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${zn}-nav-more`]:{position:"relative",padding:Kr,background:"transparent",border:0,color:mn.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:mn.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${zn}-nav-add`]:Object.assign({minWidth:Ui,marginLeft:{_skip_check_:!0,value:go},padding:`0 ${mn.paddingXS}px`,background:"transparent",border:`${mn.lineWidth}px ${mn.lineType} ${To}`,borderRadius:`${mn.borderRadiusLG}px ${mn.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:mn.colorText,transition:`all ${mn.motionDurationSlow} ${mn.motionEaseInOut}`,"&:hover":{color:gi},"&:active, &:focus:not(:focus-visible)":{color:Mr}},(0,Xe.Qy)(mn))},[`${zn}-extra-content`]:{flex:"none"},[`${zn}-ink-bar`]:{position:"absolute",background:mn.inkBarColor,pointerEvents:"none"}}),Ne(mn)),{[`${zn}-content`]:{position:"relative",width:"100%"},[`${zn}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${zn}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${zn}-centered`]:{[`> ${zn}-nav, > div > ${zn}-nav`]:{[`${zn}-nav-wrap`]:{[`&:not([class*='${zn}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var lt=(0,ft.Z)("Tabs",mn=>{const zn=(0,Me.TS)(mn,{tabsCardPadding:mn.cardPadding||`${(mn.cardHeight-Math.round(mn.fontSize*mn.lineHeight))/2-mn.lineWidth}px ${mn.padding}px`,dropdownEdgeChildVerticalPadding:mn.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${mn.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${mn.horizontalItemGutter}px`});return[rt(zn),Xt(zn),Ce(zn),je(zn),Re(zn),Ft(zn),Pe(zn)]},mn=>{const zn=mn.controlHeightLG;return{zIndexPopup:mn.zIndexPopupBase+50,cardBg:mn.colorFillAlter,cardHeight:zn,cardPadding:"",cardPaddingSM:`${mn.paddingXXS*1.5}px ${mn.padding}px`,cardPaddingLG:`${mn.paddingXS}px ${mn.padding}px ${mn.paddingXXS*1.5}px`,titleFontSize:mn.fontSize,titleFontSizeLG:mn.fontSizeLG,titleFontSizeSM:mn.fontSize,inkBarColor:mn.colorPrimary,horizontalMargin:`0 0 ${mn.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${mn.paddingSM}px 0`,horizontalItemPaddingSM:`${mn.paddingXS}px 0`,horizontalItemPaddingLG:`${mn.padding}px 0`,verticalItemPadding:`${mn.paddingXS}px ${mn.paddingLG}px`,verticalItemMargin:`${mn.margin}px 0 0 0`,itemColor:mn.colorText,itemSelectedColor:mn.colorPrimary,itemHoverColor:mn.colorPrimaryHover,itemActiveColor:mn.colorPrimaryActive,cardGutter:mn.marginXXS/2}}),At=()=>null,an=function(mn,zn){var Kr={};for(var Ui in mn)Object.prototype.hasOwnProperty.call(mn,Ui)&&zn.indexOf(Ui)<0&&(Kr[Ui]=mn[Ui]);if(mn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var go=0,Ui=Object.getOwnPropertySymbols(mn);go{const{type:zn,className:Kr,rootClassName:Ui,size:go,onEdit:gi,hideAdd:Mr,centered:To,addIcon:ms,popupClassName:De,children:Oo,items:$i,animated:co,style:Vr,indicatorSize:Ro}=mn,Tn=an(mn,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:nt,moreIcon:Ct=v.createElement(C.Z,null)}=Tn,{direction:Ht,tabs:hn,getPrefixCls:En,getPopupContainer:rn}=v.useContext(F.E_),Jt=En("tabs",nt),[Mt,Qt]=lt(Jt);let Dn;zn==="editable-card"&&(Dn={onEdit:(Hi,Io)=>{let{key:On,event:zr}=Io;gi==null||gi(Hi==="add"?zr:On,Hi)},removeIcon:v.createElement(M.Z,null),addIcon:ms||v.createElement(k,null),showAdd:Mr!==!0});const sn=En(),wr=it($i,Oo),jr=be(Jt,co),xi=(0,K.Z)(go),Pr=Object.assign(Object.assign({},hn==null?void 0:hn.style),Vr);return Mt(v.createElement(T.Z,Object.assign({direction:Ht,getPopupContainer:rn,moreTransitionName:`${sn}-slide-up`},Tn,{items:wr,className:p()({[`${Jt}-${xi}`]:xi,[`${Jt}-card`]:["card","editable-card"].includes(zn),[`${Jt}-editable-card`]:zn==="editable-card",[`${Jt}-centered`]:To},hn==null?void 0:hn.className,Kr,Ui,Qt),popupClassName:p()(De,Qt),style:Pr,editable:Dn,moreIcon:Ct,prefixCls:Jt,animated:jr,indicatorSize:Ro!=null?Ro:hn==null?void 0:hn.indicatorSize})))};Tt.TabPane=At;var Nn=Tt},75408:function(mt,q,_){"use strict";_.d(q,{Mj:function(){return R},uH:function(){return N},u_:function(){return V}});var v=_(77617),M=_(84608),C=_(25744),x=_(59916);const N=(0,M.jG)(C.Z),V={token:x.Z,override:{override:x.Z},hashed:!0},R=v.createContext(V)},15466:function(mt,q,_){"use strict";_.d(q,{Z:function(){return Ee}});var v=_(84608),M=_(25744),C=_(59916),x=_(91515),V=ze=>{const Pe=ze!=null&&ze.algorithm?(0,v.jG)(ze.algorithm):(0,v.jG)(M.Z),Re=Object.assign(Object.assign({},C.Z),ze==null?void 0:ze.token);return(0,v.t2)(Re,{override:ze==null?void 0:ze.token},Pe,x.Z)},R=_(45844),k=_(75408),S=_(57761);function p(ze){const{sizeUnit:Pe,sizeStep:Re}=ze,je=Re-2;return{sizeXXL:Pe*(je+10),sizeXL:Pe*(je+6),sizeLG:Pe*(je+2),sizeMD:Pe*(je+2),sizeMS:Pe*(je+1),size:Pe*je,sizeSM:Pe*je,sizeXS:Pe*(je-1),sizeXXS:Pe*(je-1)}}var T=_(66356),K=(ze,Pe)=>{const Re=Pe!=null?Pe:(0,M.Z)(ze),je=Re.fontSizeSM,Ce=Re.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Re),p(Pe!=null?Pe:ze)),(0,T.Z)(je)),{controlHeight:Ce}),(0,S.Z)(Object.assign(Object.assign({},Re),{controlHeight:Ce})))},he=_(63511),fe=_(12988),be=_(64993);const Ae=(ze,Pe)=>new be.C(ze).setAlpha(Pe).toRgbString(),xe=(ze,Pe)=>new be.C(ze).lighten(Pe).toHexString(),Se=ze=>{const Pe=(0,he.R_)(ze,{theme:"dark"});return{1:Pe[0],2:Pe[1],3:Pe[2],4:Pe[3],5:Pe[6],6:Pe[5],7:Pe[4],8:Pe[6],9:Pe[5],10:Pe[4]}},it=(ze,Pe)=>{const Re=ze||"#000",je=Pe||"#fff";return{colorBgBase:Re,colorTextBase:je,colorText:Ae(je,.85),colorTextSecondary:Ae(je,.65),colorTextTertiary:Ae(je,.45),colorTextQuaternary:Ae(je,.25),colorFill:Ae(je,.18),colorFillSecondary:Ae(je,.12),colorFillTertiary:Ae(je,.08),colorFillQuaternary:Ae(je,.04),colorBgElevated:xe(Re,12),colorBgContainer:xe(Re,8),colorBgLayout:xe(Re,0),colorBgSpotlight:xe(Re,26),colorBgBlur:Ae(je,.04),colorBorder:xe(Re,26),colorBorderSecondary:xe(Re,19)}};var ft=(ze,Pe)=>{const Re=Object.keys(C.M).map(Ce=>{const rt=(0,he.R_)(ze[Ce],{theme:"dark"});return new Array(10).fill(1).reduce((Ne,Xt,Ft)=>(Ne[`${Ce}-${Ft+1}`]=rt[Ft],Ne[`${Ce}${Ft+1}`]=rt[Ft],Ne),{})}).reduce((Ce,rt)=>(Ce=Object.assign(Object.assign({},Ce),rt),Ce),{}),je=Pe!=null?Pe:(0,M.Z)(ze);return Object.assign(Object.assign(Object.assign({},je),Re),(0,fe.Z)(ze,{generateColorPalettes:Se,generateNeutralColorPalettes:it}))};function Me(){const[ze,Pe,Re]=(0,R.Z)();return{theme:ze,token:Pe,hashId:Re}}var Ee={defaultConfig:k.u_,defaultSeed:k.u_.token,useToken:Me,defaultAlgorithm:M.Z,darkAlgorithm:ft,compactAlgorithm:K,getDesignToken:V}},33930:function(mt,q,_){"use strict";_.d(q,{i:function(){return v}});const v=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},25744:function(mt,q,_){"use strict";_.d(q,{Z:function(){return fe}});var v=_(63511),M=_(57761);function C(be){const{sizeUnit:Ae,sizeStep:xe}=be;return{sizeXXL:Ae*(xe+8),sizeXL:Ae*(xe+4),sizeLG:Ae*(xe+2),sizeMD:Ae*(xe+1),sizeMS:Ae*xe,size:Ae*xe,sizeSM:Ae*(xe-1),sizeXS:Ae*(xe-2),sizeXXS:Ae*(xe-3)}}var x=_(59916),N=_(12988),R=be=>{let Ae=be,xe=be,Se=be,it=be;return be<6&&be>=5?Ae=be+1:be<16&&be>=6?Ae=be+2:be>=16&&(Ae=16),be<7&&be>=5?xe=4:be<8&&be>=7?xe=5:be<14&&be>=8?xe=6:be<16&&be>=14?xe=7:be>=16&&(xe=8),be<6&&be>=2?Se=1:be>=6&&(Se=2),be>4&&be<8?it=4:be>=8&&(it=6),{borderRadius:be,borderRadiusXS:Se,borderRadiusSM:xe,borderRadiusLG:Ae,borderRadiusOuter:it}};function k(be){const{motionUnit:Ae,motionBase:xe,borderRadius:Se,lineWidth:it}=be;return Object.assign({motionDurationFast:`${(xe+Ae).toFixed(1)}s`,motionDurationMid:`${(xe+Ae*2).toFixed(1)}s`,motionDurationSlow:`${(xe+Ae*3).toFixed(1)}s`,lineWidthBold:it+1},R(Se))}var S=_(64993);const p=(be,Ae)=>new S.C(be).setAlpha(Ae).toRgbString(),T=(be,Ae)=>new S.C(be).darken(Ae).toHexString(),F=be=>{const Ae=(0,v.R_)(be);return{1:Ae[0],2:Ae[1],3:Ae[2],4:Ae[3],5:Ae[4],6:Ae[5],7:Ae[6],8:Ae[4],9:Ae[5],10:Ae[6]}},K=(be,Ae)=>{const xe=be||"#fff",Se=Ae||"#000";return{colorBgBase:xe,colorTextBase:Se,colorText:p(Se,.88),colorTextSecondary:p(Se,.65),colorTextTertiary:p(Se,.45),colorTextQuaternary:p(Se,.25),colorFill:p(Se,.15),colorFillSecondary:p(Se,.06),colorFillTertiary:p(Se,.04),colorFillQuaternary:p(Se,.02),colorBgLayout:T(xe,4),colorBgContainer:T(xe,0),colorBgElevated:T(xe,0),colorBgSpotlight:p(Se,.85),colorBgBlur:"transparent",colorBorder:T(xe,15),colorBorderSecondary:T(xe,6)}};var he=_(66356);function fe(be){const Ae=Object.keys(x.M).map(xe=>{const Se=(0,v.R_)(be[xe]);return new Array(10).fill(1).reduce((it,Xe,ft)=>(it[`${xe}-${ft+1}`]=Se[ft],it[`${xe}${ft+1}`]=Se[ft],it),{})}).reduce((xe,Se)=>(xe=Object.assign(Object.assign({},xe),Se),xe),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},be),Ae),(0,N.Z)(be,{generateColorPalettes:F,generateNeutralColorPalettes:K})),(0,he.Z)(be.fontSize)),C(be)),(0,M.Z)(be)),k(be))}},59916:function(mt,q,_){"use strict";_.d(q,{M:function(){return v}});const v={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"},M=Object.assign(Object.assign({},v),{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=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,te=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:te[1],colorPrimaryBgHover:te[2],colorPrimaryBorder:te[3],colorPrimaryBorderHover:te[4],colorPrimaryHover:te[5],colorPrimary:te[6],colorPrimaryActive:te[7],colorPrimaryTextHover:te[8],colorPrimaryText:te[9],colorPrimaryTextActive:te[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 te in S)Object.prototype.hasOwnProperty.call(S,te)&&P.indexOf(te)<0&&(W[te]=S[te]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,te=Object.getOwnPropertySymbols(S);re{const te=W.getDerivativeToken(S),{override:re}=P,ce=A(P,["override"]);let pe=Object.assign(Object.assign({},te),{override:re});return pe=(0,w.Z)(pe),ce&&Object.entries(ce).forEach(he=>{let[fe,Be]=he;const{theme:Ie}=Be,je=A(Be,["theme"]);let be=je;Ie&&(be=C(Object.assign(Object.assign({},pe),je),{override:je},Ie)),pe[fe]=be}),pe};function f(){const{token:S,hashed:P,theme:W,override:te}=y.useContext(k.Mj),re=`${z}-${P||""}`,ce=W||k.uH,[pe,he]=(0,I.fp)(ce,[N.Z,S],{salt:re,override:te,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:te,g:re,b:ce}=new y.C(C).toRgb();for(let pe=.01;pe<=1;pe+=.01){const he=Math.round((f-te*(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,te=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:` +'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});q.Z=M},12988:function(mt,q,_){"use strict";_.d(q,{Z:function(){return M}});var v=_(64993);function M(C,x){let{generateColorPalettes:N,generateNeutralColorPalettes:V}=x;const{colorSuccess:R,colorWarning:k,colorError:S,colorInfo:p,colorPrimary:T,colorBgBase:F,colorTextBase:K}=C,he=N(T),fe=N(R),be=N(k),Ae=N(S),xe=N(p),Se=V(F,K),it=C.colorLink||C.colorInfo,Xe=N(it);return Object.assign(Object.assign({},Se),{colorPrimaryBg:he[1],colorPrimaryBgHover:he[2],colorPrimaryBorder:he[3],colorPrimaryBorderHover:he[4],colorPrimaryHover:he[5],colorPrimary:he[6],colorPrimaryActive:he[7],colorPrimaryTextHover:he[8],colorPrimaryText:he[9],colorPrimaryTextActive:he[10],colorSuccessBg:fe[1],colorSuccessBgHover:fe[2],colorSuccessBorder:fe[3],colorSuccessBorderHover:fe[4],colorSuccessHover:fe[4],colorSuccess:fe[6],colorSuccessActive:fe[7],colorSuccessTextHover:fe[8],colorSuccessText:fe[9],colorSuccessTextActive:fe[10],colorErrorBg:Ae[1],colorErrorBgHover:Ae[2],colorErrorBorder:Ae[3],colorErrorBorderHover:Ae[4],colorErrorHover:Ae[5],colorError:Ae[6],colorErrorActive:Ae[7],colorErrorTextHover:Ae[8],colorErrorText:Ae[9],colorErrorTextActive:Ae[10],colorWarningBg:be[1],colorWarningBgHover:be[2],colorWarningBorder:be[3],colorWarningBorderHover:be[4],colorWarningHover:be[4],colorWarning:be[6],colorWarningActive:be[7],colorWarningTextHover:be[8],colorWarningText:be[9],colorWarningTextActive:be[10],colorInfoBg:xe[1],colorInfoBgHover:xe[2],colorInfoBorder:xe[3],colorInfoBorderHover:xe[4],colorInfoHover:xe[4],colorInfo:xe[6],colorInfoActive:xe[7],colorInfoTextHover:xe[8],colorInfoText:xe[9],colorInfoTextActive:xe[10],colorLinkHover:Xe[4],colorLink:Xe[6],colorLinkActive:Xe[7],colorBgMask:new v.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},57761:function(mt,q){"use strict";const _=v=>{const{controlHeight:M}=v;return{controlHeightSM:M*.75,controlHeightXS:M*.5,controlHeightLG:M*1.25}};q.Z=_},66356:function(mt,q,_){"use strict";_.d(q,{Z:function(){return C}});function v(x){const N=new Array(10).fill(null).map((V,R)=>{const k=R-1,S=x*Math.pow(2.71828,k/5),p=R>1?Math.floor(S):Math.ceil(S);return Math.floor(p/2)*2});return N[1]=x,N.map(V=>{const R=V+8;return{size:V,lineHeight:R/V}})}var C=x=>{const N=v(x),V=N.map(k=>k.size),R=N.map(k=>k.lineHeight);return{fontSizeSM:V[0],fontSize:V[1],fontSizeLG:V[2],fontSizeXL:V[3],fontSizeHeading1:V[6],fontSizeHeading2:V[5],fontSizeHeading3:V[4],fontSizeHeading4:V[3],fontSizeHeading5:V[2],lineHeight:R[1],lineHeightLG:R[2],lineHeightSM:R[0],lineHeightHeading1:R[6],lineHeightHeading2:R[5],lineHeightHeading3:R[4],lineHeightHeading4:R[3],lineHeightHeading5:R[2]}}},45844:function(mt,q,_){"use strict";_.d(q,{Z:function(){return p}});var v=_(77617),M=_(84608),C="5.11.0",x=C,N=_(75408),V=_(59916),R=_(91515),k=function(T,F){var K={};for(var he in T)Object.prototype.hasOwnProperty.call(T,he)&&F.indexOf(he)<0&&(K[he]=T[he]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,he=Object.getOwnPropertySymbols(T);fe{const he=K.getDerivativeToken(T),{override:fe}=F,be=k(F,["override"]);let Ae=Object.assign(Object.assign({},he),{override:fe});return Ae=(0,R.Z)(Ae),be&&Object.entries(be).forEach(xe=>{let[Se,it]=xe;const{theme:Xe}=it,ft=k(it,["theme"]);let Me=ft;Xe&&(Me=S(Object.assign(Object.assign({},Ae),ft),{override:ft},Xe)),Ae[Se]=Me}),Ae};function p(){const{token:T,hashed:F,theme:K,override:he}=v.useContext(N.Mj),fe=`${x}-${F||""}`,be=K||N.uH,[Ae,xe]=(0,M.fp)(be,[V.Z,T],{salt:fe,override:he,getComputedToken:S,formatToken:R.Z});return[be,Ae,F?xe:""]}},91515:function(mt,q,_){"use strict";_.d(q,{Z:function(){return R}});var v=_(64993),M=_(59916);function C(k){return k>=0&&k<=255}function x(k,S){const{r:p,g:T,b:F,a:K}=new v.C(k).toRgb();if(K<1)return k;const{r:he,g:fe,b:be}=new v.C(S).toRgb();for(let Ae=.01;Ae<=1;Ae+=.01){const xe=Math.round((p-he*(1-Ae))/Ae),Se=Math.round((T-fe*(1-Ae))/Ae),it=Math.round((F-be*(1-Ae))/Ae);if(C(xe)&&C(Se)&&C(it))return new v.C({r:xe,g:Se,b:it,a:Math.round(Ae*100)/100}).toRgbString()}return new v.C({r:p,g:T,b:F,a:1}).toRgbString()}var N=x,V=function(k,S){var p={};for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&S.indexOf(T)<0&&(p[T]=k[T]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,T=Object.getOwnPropertySymbols(k);F{delete T[it]});const F=Object.assign(Object.assign({},p),T),K=480,he=576,fe=768,be=992,Ae=1200,xe=1600;if(F.motion===!1){const it="0s";F.motionDurationFast=it,F.motionDurationMid=it,F.motionDurationSlow=it}return Object.assign(Object.assign(Object.assign({},F),{colorFillContent:F.colorFillSecondary,colorFillContentHover:F.colorFill,colorFillAlter:F.colorFillQuaternary,colorBgContainerDisabled:F.colorFillTertiary,colorBorderBg:F.colorBgContainer,colorSplit:N(F.colorBorderSecondary,F.colorBgContainer),colorTextPlaceholder:F.colorTextQuaternary,colorTextDisabled:F.colorTextQuaternary,colorTextHeading:F.colorText,colorTextLabel:F.colorTextSecondary,colorTextDescription:F.colorTextTertiary,colorTextLightSolid:F.colorWhite,colorHighlight:F.colorError,colorBgTextHover:F.colorFillSecondary,colorBgTextActive:F.colorFill,colorIcon:F.colorTextTertiary,colorIconHover:F.colorText,colorErrorOutline:N(F.colorErrorBg,F.colorBgContainer),colorWarningOutline:N(F.colorWarningBg,F.colorBgContainer),fontSizeIcon:F.fontSizeSM,lineWidthFocus:F.lineWidth*4,lineWidth:F.lineWidth,controlOutlineWidth:F.lineWidth*2,controlInteractiveSize:F.controlHeight/2,controlItemBgHover:F.colorFillTertiary,controlItemBgActive:F.colorPrimaryBg,controlItemBgActiveHover:F.colorPrimaryBgHover,controlItemBgActiveDisabled:F.colorFill,controlTmpOutline:F.colorFillQuaternary,controlOutline:N(F.colorPrimaryBg,F.colorBgContainer),lineType:F.lineType,borderRadius:F.borderRadius,borderRadiusXS:F.borderRadiusXS,borderRadiusSM:F.borderRadiusSM,borderRadiusLG:F.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:F.sizeXXS,paddingXS:F.sizeXS,paddingSM:F.sizeSM,padding:F.size,paddingMD:F.sizeMD,paddingLG:F.sizeLG,paddingXL:F.sizeXL,paddingContentHorizontalLG:F.sizeLG,paddingContentVerticalLG:F.sizeMS,paddingContentHorizontal:F.sizeMS,paddingContentVertical:F.sizeSM,paddingContentHorizontalSM:F.size,paddingContentVerticalSM:F.sizeXS,marginXXS:F.sizeXXS,marginXS:F.sizeXS,marginSM:F.sizeSM,margin:F.size,marginMD:F.sizeMD,marginLG:F.sizeLG,marginXL:F.sizeXL,marginXXL:F.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) @@ -8038,10 +8068,10 @@ 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:W,screenXSMin:W,screenXSMax:te-1,screenSM:te,screenSMMin:te,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()} + `,screenXS:K,screenXSMin:K,screenXSMax:he-1,screenSM:he,screenSMMin:he,screenSMMax:fe-1,screenMD:fe,screenMDMin:fe,screenMDMax:be-1,screenLG:be,screenLGMin:be,screenLGMax:Ae-1,screenXL:Ae,screenXLMin:Ae,screenXLMax:xe-1,screenXXL:xe,screenXXLMin:xe,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new v.C("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new v.C("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new v.C("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), @@ -8058,27 +8088,27 @@ 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)}},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 te=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:je,iconPrefixCls:be,csp:ve}=(0,y.useContext)(z.E_),ye=je(),Ce={theme:fe,token:Be,hashId:Ie,nonce:()=>ve==null?void 0:ve.nonce,clientOnly:te.clientOnly,order:te.order||-999};return(0,I.xy)(Object.assign(Object.assign({},Ce),{clientOnly:!1,path:["Shared",ye]}),()=>[{"&":(0,k.Lx)(Be)}]),(0,A.Z)(be,ve),[(0,I.xy)(Object.assign(Object.assign({},Ce),{path:[pe,he,be]}),()=>{const{token:xe,flush:Ae}=(0,w.ZP)(Be),ge=Object.assign({},Be[ce]);if(te.deprecatedTokens){const{deprecatedTokens:Ct}=te;Ct.forEach(ft=>{let[zt,mt]=ft;var yn;(ge!=null&&ge[zt]||ge!=null&&ge[mt])&&((yn=ge[mt])!==null&&yn!==void 0||(ge[mt]=ge==null?void 0:ge[zt]))})}const We=typeof W=="function"?W((0,w.TS)(xe,ge!=null?ge:{})):W,Se=Object.assign(Object.assign({},We),ge),Pt=`.${he}`,dt=(0,w.TS)(xe,{componentCls:Pt,prefixCls:he,iconCls:`.${be}`,antCls:`.${ye}`},Se),He=P(dt,{hashId:Ie,prefixCls:he,rootPrefixCls:ye,iconPrefixCls:be,overrideComponentToken:ge});return Ae(ce,Se),[te.resetStyle===!1?null:(0,k.du)(Be,he),He]}),Ie]}}const f=(S,P,W,te)=>{const re=C(S,P,W,Object.assign({resetStyle:!1,order:-998},te));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(te=>{Object.defineProperty(S,te,{configurable:!0,enumerable:!0,get:()=>P[te]})})}),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 te;z[P]={global:Array.from(C),component:Object.assign(Object.assign({},(te=z[P])===null||te===void 0?void 0:te.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),te=m(69601),re=m(72881),ce=m(35237);function pe(dt,He){return ce.i.reduce((Ct,ft)=>{const zt=dt[`${ft}1`],mt=dt[`${ft}3`],yn=dt[`${ft}6`],Bn=dt[`${ft}7`];return Object.assign(Object.assign({},Ct),He(ft,{lightColor:zt,lightBorderColor:mt,darkColor:yn,textColor:Bn}))},{})}var he=m(41788),fe=m(24577);const Be=dt=>{const{componentCls:He,tooltipMaxWidth:Ct,tooltipColor:ft,tooltipBg:zt,tooltipBorderRadius:mt,zIndexPopup:yn,controlHeight:Bn,boxShadowSecondary:Lr,paddingSM:ri,paddingXS:gi,tooltipRadiusOuter:ro}=dt;return[{[He]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,W.Wf)(dt)),{position:"absolute",zIndex:yn,display:"block",width:"max-content",maxWidth:Ct,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":zt,[`${He}-inner`]:{minWidth:Bn,minHeight:Bn,padding:`${ri/2}px ${gi}px`,color:ft,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:zt,borderRadius:mt,boxShadow:Lr,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${He}-inner`]:{borderRadius:Math.min(mt,re.qN)}},[`${He}-content`]:{position:"relative"}}),pe(dt,(To,_r)=>{let{darkColor:Bo}=_r;return{[`&${He}-${To}`]:{[`${He}-inner`]:{backgroundColor:Bo},[`${He}-arrow`]:{"--antd-arrow-background-color":Bo}}}})),{"&-rtl":{direction:"rtl"}})},(0,re.ZP)((0,he.TS)(dt,{borderRadiusOuter:ro}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:mt,limitVerticalRadius:!0}),{[`${He}-pure`]:{position:"relative",maxWidth:"none",margin:dt.sizePopupArrow}}]};var Ie=(dt,He)=>(0,fe.Z)("Tooltip",ft=>{if(He===!1)return[];const{borderRadius:zt,colorTextLightSolid:mt,colorBgDefault:yn,borderRadiusOuter:Bn}=ft,Lr=(0,he.TS)(ft,{tooltipMaxWidth:250,tooltipColor:mt,tooltipBorderRadius:zt,tooltipBg:yn,tooltipRadiusOuter:Bn>4?4:Bn});return[Be(Lr),(0,te._y)(ft,"zoom-big-fast")]},ft=>{let{zIndexPopupBase:zt,colorBgSpotlight:mt}=ft;return{zIndexPopup:zt+70,colorBgDefault:mt}},{resetStyle:!1})(dt),je=m(42371);const be=ce.i.map(dt=>`${dt}-inverse`),ve=null;function ye(dt){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,je.Z)(be),(0,je.Z)(ce.i)).includes(dt):ce.i.includes(dt)}function Ce(dt){return ve.includes(dt)}function xe(dt,He){const Ct=ye(He),ft=b()({[`${dt}-${He}`]:He&&Ct}),zt={},mt={};return He&&!Ct&&(zt.background=He,mt["--antd-arrow-background-color"]=He),{className:ft,overlayStyle:zt,arrowStyle:mt}}var ge=dt=>{const{prefixCls:He,className:Ct,placement:ft="top",title:zt,color:mt,overlayInnerStyle:yn}=dt,{getPrefixCls:Bn}=y.useContext(f.E_),Lr=Bn("tooltip",He),[ri,gi]=Ie(Lr,!0),ro=xe(Lr,mt),To=ro.arrowStyle,_r=Object.assign(Object.assign({},yn),ro.overlayStyle),Bo=b()(gi,Lr,`${Lr}-pure`,`${Lr}-placement-${ft}`,Ct,ro.className);return ri(y.createElement("div",{className:Bo,style:To},y.createElement("div",{className:`${Lr}-arrow`}),y.createElement(z.G,Object.assign({},dt,{className:gi,prefixCls:Lr,overlayInnerStyle:_r}),zt)))},We=function(dt,He){var Ct={};for(var ft in dt)Object.prototype.hasOwnProperty.call(dt,ft)&&He.indexOf(ft)<0&&(Ct[ft]=dt[ft]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,ft=Object.getOwnPropertySymbols(dt);zt{var Ct,ft;const{prefixCls:zt,openClassName:mt,getTooltipContainer:yn,overlayClassName:Bn,color:Lr,overlayInnerStyle:ri,children:gi,afterOpenChange:ro,afterVisibleChange:To,destroyTooltipOnHide:_r,arrow:Bo=!0,title:fs,overlay:me,builtinPlacements:So,arrowPointAtCenter:ho=!1,autoAdjustOverflow:go=!0}=dt,ji=!!Bo,[,No]=(0,P.Z)(),{getPopupContainer:dn,getPrefixCls:Ve,direction:yt}=y.useContext(f.E_),xt=(0,C.ln)("Tooltip"),Wt=y.useRef(null),sn=()=>{var Xr;(Xr=Wt.current)===null||Xr===void 0||Xr.forceAlign()};y.useImperativeHandle(He,()=>({forceAlign:sn,forcePopupAlign:()=>{xt.deprecated(!1,"forcePopupAlign","forceAlign"),sn()}}));const[Ot,Tt]=(0,k.Z)(!1,{value:(Ct=dt.open)!==null&&Ct!==void 0?Ct:dt.visible,defaultValue:(ft=dt.defaultOpen)!==null&&ft!==void 0?ft:dt.defaultVisible}),bt=!fs&&!me&&fs!==0,Ht=Xr=>{var ao,as;Tt(bt?!1:Xr),bt||((ao=dt.onOpenChange)===null||ao===void 0||ao.call(dt,Xr),(as=dt.onVisibleChange)===null||as===void 0||as.call(dt,Xr))},zn=y.useMemo(()=>{var Xr,ao;let as=ho;return typeof Bo=="object"&&(as=(ao=(Xr=Bo.pointAtCenter)!==null&&Xr!==void 0?Xr:Bo.arrowPointAtCenter)!==null&&ao!==void 0?ao:ho),So||(0,w.Z)({arrowPointAtCenter:as,autoAdjustOverflow:go,arrowWidth:ji?No.sizePopupArrow:0,borderRadius:No.borderRadius,offset:No.marginXXS,visibleFirst:!0})},[ho,Bo,So,No]),en=y.useMemo(()=>fs===0?fs:me||fs||"",[me,fs]),fr=y.createElement(S.BR,null,typeof en=="function"?en():en),{getPopupContainer:Kr,placement:ii="top",mouseEnterDelay:si=.1,mouseLeaveDelay:uo=.1,overlayStyle:Qo,rootClassName:_n}=dt,Vr=We(dt,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),qr=Ve("tooltip",zt),Ui=Ve(),xo=dt["data-popover-inject"];let Us=Ot;!("open"in dt)&&!("visible"in dt)&&bt&&(Us=!1);const $n=(0,A.l$)(gi)&&!(0,A.M2)(gi)?gi:y.createElement("span",null,gi),Kn=$n.props,Fr=!Kn.className||typeof Kn.className=="string"?b()(Kn.className,mt||`${qr}-open`):Kn.className,[mi,Tr]=Ie(qr,!xo),ti=xe(qr,Lr),di=ti.arrowStyle,rn=Object.assign(Object.assign({},ri),ti.overlayStyle),Qn=b()(Bn,{[`${qr}-rtl`]:yt==="rtl"},ti.className,_n,Tr);return mi(y.createElement(z.Z,Object.assign({},Vr,{showArrow:ji,placement:ii,mouseEnterDelay:si,mouseLeaveDelay:uo,prefixCls:qr,overlayClassName:Qn,overlayStyle:Object.assign(Object.assign({},di),Qo),getTooltipContainer:Kr||yn||dn,ref:Wt,builtinPlacements:zn,overlay:fr,visible:Us,onVisibleChange:Ht,afterVisibleChange:ro!=null?ro:To,overlayInnerStyle:rn,arrowContent:y.createElement("span",{className:`${qr}-arrow-content`}),motion:{motionName:(0,N.m)(Ui,"zoom-big-fast",dt.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!_r}),Us?(0,A.Tm)($n,{className:Fr}):$n))});Se._InternalPanelDoNotUseOrYouWillBeFired=ge;var Pt=Se},29698:function(nt,V,m){"use strict";m.d(V,{Z:function(){return sn}});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 te(Ot){var Tt=window.innerWidth||document.documentElement.clientWidth,bt=window.innerHeight||document.documentElement.clientHeight,Ht=Ot.getBoundingClientRect(),zn=Ht.top,en=Ht.right,fr=Ht.bottom,Kr=Ht.left;return zn>=0&&Kr>=0&&en<=Tt&&fr<=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 zn=(0,y.useState)(void 0),en=(0,k.Z)(zn,2),fr=en[0],Kr=en[1];(0,S.Z)(function(){var Ui=typeof Ot=="function"?Ot():Ot;Kr(Ui||null)});var ii=(0,y.useState)(null),si=(0,k.Z)(ii,2),uo=si[0],Qo=si[1],_n=(0,W.Z)(function(){if(fr){!te(fr)&&Tt&&fr.scrollIntoView(Ht);var Ui=fr.getBoundingClientRect(),xo=Ui.left,Us=Ui.top,$n=Ui.width,Kn=Ui.height,Fr={left:xo,top:Us,width:$n,height:Kn,radius:0};Qo(function(mi){return JSON.stringify(mi)!==JSON.stringify(Fr)?Fr:mi})}else Qo(null)}),Vr=function(xo){var Us;return(Us=Array.isArray(bt==null?void 0:bt.offset)?bt==null?void 0:bt.offset[xo]:bt==null?void 0:bt.offset)!==null&&Us!==void 0?Us:6};(0,S.Z)(function(){return _n(),window.addEventListener("resize",_n),function(){window.removeEventListener("resize",_n)}},[fr,Tt,_n]);var qr=(0,y.useMemo)(function(){if(!uo)return uo;var Ui=Vr(0),xo=Vr(1),Us=(bt==null?void 0:bt.radius)||2;return{left:uo.left-Ui,top:uo.top-xo,width:uo.width+Ui*2,height:uo.height+xo*2,radius:Us}},[uo,bt]);return[qr,fr]}var pe=m(59872),he={fill:"transparent",pointerEvents:"auto"},fe=function(Tt){var bt=Tt.prefixCls,Ht=Tt.rootClassName,zn=Tt.pos,en=Tt.showMask,fr=Tt.style,Kr=fr===void 0?{}:fr,ii=Tt.fill,si=ii===void 0?"rgba(0,0,0,0.5)":ii,uo=Tt.open,Qo=Tt.animated,_n=Tt.zIndex,Vr=(0,pe.Z)(),qr="".concat(bt,"-mask-").concat(Vr),Ui=(0,z.Z)(Qo)==="object"?Qo==null?void 0:Qo.placeholder:Qo;return y.createElement(w.Z,{open:uo,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:_n,pointerEvents:"none"},Kr)},en?y.createElement("svg",{style:{width:"100%",height:"100%"}},y.createElement("defs",null,y.createElement("mask",{id:qr},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:Ui?"".concat(bt,"-placeholder-animated"):""}))),y.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:si,mask:"url(#".concat(qr,")")}),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))},Be=fe,Ie={adjustX:1,adjustY:1},je=[0,0],be={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(be).forEach(function(bt){Tt[bt]=(0,I.Z)((0,I.Z)({},be[bt]),{},{autoArrow:Ot,targetOffset:je})}),Tt}var ye=ve(),Ce=m(42371);function xe(Ot){var Tt=Ot.prefixCls,bt=Ot.current,Ht=Ot.total,zn=Ot.title,en=Ot.description,fr=Ot.onClose,Kr=Ot.onPrev,ii=Ot.onNext,si=Ot.onFinish,uo=Ot.className,Qo=Ot.closeIcon,_n=Qo!==!1&&Qo!==null,Vr=Qo!==void 0&&Qo!==!0?Qo:y.createElement("span",{className:"".concat(Tt,"-close-x")},"\xD7");return y.createElement("div",{className:f()("".concat(Tt,"-content"),uo)},y.createElement("div",{className:"".concat(Tt,"-inner")},_n&&y.createElement("button",{type:"button",onClick:fr,"aria-label":"Close",className:"".concat(Tt,"-close")},Vr),y.createElement("div",{className:"".concat(Tt,"-header")},y.createElement("div",{className:"".concat(Tt,"-title")},zn)),y.createElement("div",{className:"".concat(Tt,"-description")},en),y.createElement("div",{className:"".concat(Tt,"-footer")},y.createElement("div",{className:"".concat(Tt,"-sliders")},Ht>1?(0,Ce.Z)(Array.from({length:Ht}).keys()).map(function(qr,Ui){return y.createElement("span",{key:qr,className:Ui===bt?"active":""})}):null),y.createElement("div",{className:"".concat(Tt,"-buttons")},bt!==0?y.createElement("button",{className:"".concat(Tt,"-prev-btn"),onClick:Kr},"Prev"):null,bt===Ht-1?y.createElement("button",{className:"".concat(Tt,"-finish-btn"),onClick:si},"Finish"):y.createElement("button",{className:"".concat(Tt,"-next-btn"),onClick:ii},"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(xe,Tt))},ge=Ae,We=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon"],Se={left:"50%",top:"50%",width:1,height:1},Pt=function(Tt){var bt=Tt.prefixCls,Ht=bt===void 0?"rc-tour":bt,zn=Tt.steps,en=zn===void 0?[]:zn,fr=Tt.defaultCurrent,Kr=Tt.current,ii=Tt.onChange,si=Tt.onClose,uo=Tt.onFinish,Qo=Tt.open,_n=Tt.mask,Vr=_n===void 0?!0:_n,qr=Tt.arrow,Ui=qr===void 0?!0:qr,xo=Tt.rootClassName,Us=Tt.placement,$n=Tt.renderPanel,Kn=Tt.gap,Fr=Tt.animated,mi=Tt.scrollIntoViewOptions,Tr=mi===void 0?!0:mi,ti=Tt.zIndex,di=ti===void 0?1001:ti,rn=Tt.closeIcon,Qn=(0,N.Z)(Tt,We),Xr=y.useRef(),ao=(0,P.Z)(0,{value:Kr,defaultValue:fr}),as=(0,k.Z)(ao,2),Bt=as[0],pn=as[1],xr=(0,P.Z)(void 0,{value:Qo,postState:function(Eo){return Bt<0||Bt>=en.length?!1:Eo!=null?Eo:!0}}),Jr=(0,k.Z)(xr,2),vi=Jr[0],Ti=Jr[1],co=y.useRef(vi);(0,S.Z)(function(){vi&&!co.current&&pn(0),co.current=vi},[vi]);var Qr=en[Bt]||{},oi=Qr.target,Zi=Qr.placement,Ir=Qr.style,tn=Qr.arrow,Gn=Qr.className,Ei=Qr.mask,Ln=Qr.scrollIntoViewOptions,Ii=Qr.closeIcon,nr=vi&&(Ei!=null?Ei:Vr),wi=Ii!=null?Ii:rn,Mi=Ln!=null?Ln:Tr,Rr=ce(oi,Qo,Kn,Mi),Xn=(0,k.Z)(Rr,2),ms=Xn[0],ya=Xn[1],fa=re(ya,Us,Zi),Ws=ya?typeof tn=="undefined"?Ui:tn:!1,Ua=(0,z.Z)(Ws)==="object"?Ws.pointAtCenter:!1;(0,S.Z)(function(){var ci;(ci=Xr.current)===null||ci===void 0||ci.forceAlign()},[Ua,Bt]);var Ao=function(Eo){pn(Eo),ii==null||ii(Eo)};if(ya===void 0)return null;var cl=function(){Ti(!1),si==null||si(Bt)},$r=function(){return y.createElement(ge,(0,b.Z)({arrow:Ws,key:"content",prefixCls:Ht,total:en.length,renderPanel:$n,onPrev:function(){Ao(Bt-1)},onNext:function(){Ao(Bt+1)},onClose:cl,current:Bt,onFinish:function(){cl(),uo==null||uo()},closeIcon:wi},en[Bt]))},er=typeof nr=="boolean"?nr:!!nr,Dr=typeof nr=="boolean"?void 0:nr,pr=function(Eo){return Eo||ya||document.body};return y.createElement(y.Fragment,null,y.createElement(Be,{zIndex:di,prefixCls:Ht,pos:ms,showMask:er,style:Dr==null?void 0:Dr.style,fill:Dr==null?void 0:Dr.color,open:vi,animated:Fr,rootClassName:xo}),y.createElement(A.Z,(0,b.Z)({builtinPlacements:ve(Ua)},Qn,{ref:Xr,popupStyle:Ir,popupPlacement:fa,popupVisible:vi,popupClassName:f()(xo,Gn),prefixCls:Ht,popup:$r,forceRender:!1,destroyPopupOnHide:!0,zIndex:di,getTriggerDOMNode:pr,arrow:!!Ws}),y.createElement(w.Z,{open:vi,autoLock:!0},y.createElement("div",{className:f()(xo,"".concat(Ht,"-target-placeholder")),style:(0,I.Z)((0,I.Z)({},ms||Se),{},{position:"fixed",pointerEvents:"none"})}))))},dt=Pt,He=dt,Ct=m(43119),ft=m(67392),zt=m(99737),mt=m(49934),yn=m(38115),Bn=m(879),Lr=m(530),ri=m(52273);function gi(Ot){return Ot!=null}var To=Ot=>{let{stepProps:Tt,current:bt,type:Ht,indicatorsRender:zn,closeIcon:en}=Ot;var fr,Kr;const{prefixCls:ii,total:si=1,title:uo,onClose:Qo,onPrev:_n,onNext:Vr,onFinish:qr,cover:Ui,description:xo,nextButtonProps:Us,prevButtonProps:$n,type:Kn,closeIcon:Fr}=Tt,mi=Kn!=null?Kn:Ht,Tr=Fr!=null?Fr:en,ti=Tr!==!1&&Tr!==null,[di,rn]=(0,ri.Z)(ti,Tr,co=>y.createElement("span",{onClick:Qo,"aria-label":"Close",className:`${ii}-close`},co),y.createElement(mt.Z,{className:`${ii}-close-icon`}),!0),Qn=bt===si-1,Xr=()=>{var co;_n==null||_n(),(co=$n==null?void 0:$n.onClick)===null||co===void 0||co.call($n)},ao=()=>{var co;Qn?qr==null||qr():Vr==null||Vr(),(co=Us==null?void 0:Us.onClick)===null||co===void 0||co.call(Us)},as=gi(uo)?y.createElement("div",{className:`${ii}-header`},y.createElement("div",{className:`${ii}-title`},uo)):null,Bt=gi(xo)?y.createElement("div",{className:`${ii}-description`},xo):null,pn=gi(Ui)?y.createElement("div",{className:`${ii}-cover`},Ui):null;let xr;zn?xr=zn(bt,si):xr=(0,Ce.Z)(Array.from({length:si}).keys()).map((co,Qr)=>y.createElement("span",{key:co,className:f()(Qr===bt&&`${ii}-indicator-active`,`${ii}-indicator`)}));const Jr=mi==="primary"?"default":"primary",vi={type:"default",ghost:mi==="primary"},[Ti]=(0,Bn.Z)("Tour",Lr.Z.Tour);return y.createElement("div",{className:`${ii}-content`},y.createElement("div",{className:`${ii}-inner`},di&&rn,pn,as,Bt,y.createElement("div",{className:`${ii}-footer`},si>1&&y.createElement("div",{className:`${ii}-indicators`},xr),y.createElement("div",{className:`${ii}-buttons`},bt!==0?y.createElement(yn.ZP,Object.assign({},vi,$n,{onClick:Xr,size:"small",className:f()(`${ii}-prev-btn`,$n==null?void 0:$n.className)}),(fr=$n==null?void 0:$n.children)!==null&&fr!==void 0?fr:Ti==null?void 0:Ti.Previous):null,y.createElement(yn.ZP,Object.assign({type:Jr},Us,{onClick:ao,size:"small",className:f()(`${ii}-next-btn`,Us==null?void 0:Us.className)}),(Kr=Us==null?void 0:Us.children)!==null&&Kr!==void 0?Kr:Qn?Ti==null?void 0:Ti.Finish:Ti==null?void 0:Ti.Next)))))},_r=m(36575),Bo=m(64993),fs=m(92068),me=m(72881),So=m(24577),ho=m(41788);const go=Ot=>{const{componentCls:Tt,lineHeight:bt,padding:Ht,paddingXS:zn,borderRadius:en,borderRadiusXS:fr,colorPrimary:Kr,colorText:ii,colorFill:si,indicatorHeight:uo,indicatorWidth:Qo,boxShadowTertiary:_n,tourZIndexPopup:Vr,fontSize:qr,colorBgElevated:Ui,fontWeightStrong:xo,marginXS:Us,colorTextLightSolid:$n,tourBorderRadius:Kn,colorWhite:Fr,colorBgTextHover:mi,tourCloseSize:Tr,motionDurationSlow:ti,antCls:di}=Ot;return[{[Tt]:Object.assign(Object.assign({},(0,fs.Wf)(Ot)),{color:ii,position:"absolute",zIndex:Vr,display:"block",visibility:"visible",fontSize:qr,lineHeight:bt,width:520,"--antd-arrow-background-color":Ui,"&-pure":{maxWidth:"100%",position:"relative"},[`&${Tt}-hidden`]:{display:"none"},[`${Tt}-content`]:{position:"relative"},[`${Tt}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:Kn,boxShadow:_n,position:"relative",backgroundColor:Ui,border:"none",backgroundClip:"padding-box",[`${Tt}-close`]:{position:"absolute",top:Ht,insetInlineEnd:Ht,color:Ot.colorIcon,outline:"none",width:Tr,height:Tr,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+Tr+zn}px ${Ht}px 0`,img:{width:"100%"}},[`${Tt}-header`]:{padding:`${Ht}px ${Ht}px ${zn}px`,[`${Tt}-title`]:{lineHeight:bt,fontSize:qr,fontWeight:xo}},[`${Tt}-description`]:{padding:`0 ${Ht}px`,lineHeight:bt,wordWrap:"break-word"},[`${Tt}-footer`]:{padding:`${zn}px ${Ht}px ${Ht}px`,textAlign:"end",borderRadius:`0 0 ${fr}px ${fr}px`,display:"flex",[`${Tt}-indicators`]:{display:"inline-block",[`${Tt}-indicator`]:{width:Qo,height:uo,display:"inline-block",borderRadius:"50%",background:si,"&:not(:last-child)":{marginInlineEnd:uo},"&-active":{background:Kr}}},[`${Tt}-buttons`]:{marginInlineStart:"auto",[`${di}-btn`]:{marginInlineStart:Us}}}},[`${Tt}-primary, &${Tt}-primary`]:{"--antd-arrow-background-color":Kr,[`${Tt}-inner`]:{color:$n,textAlign:"start",textDecoration:"none",backgroundColor:Kr,borderRadius:en,boxShadow:_n,[`${Tt}-close`]:{color:$n},[`${Tt}-indicators`]:{[`${Tt}-indicator`]:{background:new Bo.C($n).setAlpha(.15).toRgbString(),"&-active":{background:$n}}},[`${Tt}-prev-btn`]:{color:$n,borderColor:new Bo.C($n).setAlpha(.15).toRgbString(),backgroundColor:Kr,"&:hover":{backgroundColor:new Bo.C($n).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${Tt}-next-btn`]:{color:Kr,borderColor:"transparent",background:Fr,"&:hover":{background:new Bo.C(mi).onBackground(Fr).toRgbString()}}}}}),[`${Tt}-mask`]:{[`${Tt}-placeholder-animated`]:{transition:`all ${ti}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${Tt}-inner`]:{borderRadius:Math.min(Kn,me.qN)}}},(0,me.ZP)(Ot,{colorBg:"var(--antd-arrow-background-color)",contentRadius:Kn,limitVerticalRadius:!0})]};var ji=(0,So.Z)("Tour",Ot=>{const{borderRadiusLG:Tt,fontSize:bt,lineHeight:Ht}=Ot,zn=(0,ho.TS)(Ot,{tourZIndexPopup:Ot.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:Tt,tourCloseSize:bt*Ht});return[go(zn)]}),No=m(91202),dn=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 zn=0,Ht=Object.getOwnPropertySymbols(Ot);zn{const{prefixCls:Tt,current:bt=0,total:Ht=6,className:zn,style:en,type:fr}=Ot,Kr=dn(Ot,["prefixCls","current","total","className","style","type"]),{getPrefixCls:ii}=y.useContext(ft.E_),si=ii("tour",Tt),[uo,Qo]=ji(si);return uo(y.createElement(_r.t5,{prefixCls:si,hashId:Qo,className:f()(zn,`${si}-pure`,fr&&`${si}-${fr}`),style:en},y.createElement(To,{stepProps:Object.assign(Object.assign({},Kr),{prefixCls:si,total:Ht}),current:bt,type:fr})))};var yt=(0,No.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 zn=0,Ht=Object.getOwnPropertySymbols(Ot);zn{const{prefixCls:Tt,type:bt,rootClassName:Ht,indicatorsRender:zn,steps:en}=Ot,fr=xt(Ot,["prefixCls","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:Kr,direction:ii}=(0,y.useContext)(ft.E_),si=Kr("tour",Tt),[uo,Qo]=ji(si),[,_n]=(0,zt.Z)(),Vr=(0,y.useMemo)(()=>en==null?void 0:en.map(Us=>{var $n;return Object.assign(Object.assign({},Us),{className:f()(Us.className,{[`${si}-primary`]:(($n=Us.type)!==null&&$n!==void 0?$n:bt)==="primary"})})}),[en,bt]),qr=(0,Ct.Z)({arrowPointAtCenter:!0,autoAdjustOverflow:!0,offset:_n.marginXXS,arrowWidth:_n.sizePopupArrow,borderRadius:_n.borderRadius}),Ui=f()({[`${si}-rtl`]:ii==="rtl"},Qo,Ht),xo=(Us,$n)=>y.createElement(To,{type:bt,stepProps:Us,current:$n,indicatorsRender:zn});return uo(y.createElement(He,Object.assign({},fr,{rootClassName:Ui,prefixCls:si,animated:!0,renderPanel:xo,builtinPlacements:qr,steps:Vr})))};Wt._InternalPanelDoNotUseOrYouWillBeFired=yt;var sn=Wt},91554:function(nt,V,m){"use strict";m.d(V,{Z:function(){return as}});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,xr){return y.createElement(N.Z,(0,b.Z)({},pn,{ref:xr,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,xr){return y.createElement(N.Z,(0,b.Z)({},pn,{ref:xr,icon:f}))},P=y.forwardRef(S),W=m(12124),te=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),je=m(9681),be=m(8339),ve=m(38251),ye=function(Bt,pn){var xr={};for(var Jr in Bt)Object.prototype.hasOwnProperty.call(Bt,Jr)&&pn.indexOf(Jr)<0&&(xr[Jr]=Bt[Jr]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vi=0,Jr=Object.getOwnPropertySymbols(Bt);vi{const xr=Zi=>{const{keyCode:Ir}=Zi;Ir===ve.Z.ENTER&&Zi.preventDefault()},Jr=Zi=>{const{keyCode:Ir}=Zi,{onClick:tn}=Bt;Ir===ve.Z.ENTER&&tn&&tn()},{style:vi,noStyle:Ti,disabled:co}=Bt,Qr=ye(Bt,["style","noStyle","disabled"]);let oi={};return Ti||(oi=Object.assign({},Ce)),co&&(oi.pointerEvents="none"),oi=Object.assign(Object.assign({},oi),vi),y.createElement("div",Object.assign({role:"button",tabIndex:0,ref:pn},Qr,{onKeyDown:xr,onKeyUp:Jr,style:oi}))}),ge=m(67392),We=m(879),Se=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"},dt=Pt,He=function(pn,xr){return y.createElement(N.Z,(0,b.Z)({},pn,{ref:xr,icon:dt}))},Ct=y.forwardRef(He),ft=m(99486),zt=m(25279),mt=m(24967),yn=m(24577),Bn=m(63511);const Lr=(Bt,pn,xr,Jr)=>{const{titleMarginBottom:vi,fontWeightStrong:Ti}=Jr;return{marginBottom:vi,color:xr,fontWeight:Ti,fontSize:Bt,lineHeight:pn}},ri=Bt=>{const pn=[1,2,3,4,5],xr={};return pn.forEach(Jr=>{xr[` - h${Jr}&, - div&-h${Jr}, - div&-h${Jr} > textarea, - h${Jr} - `]=Lr(Bt[`fontSizeHeading${Jr}`],Bt[`lineHeightHeading${Jr}`],Bt.colorTextHeading,Bt)}),xr},gi=Bt=>{const{componentCls:pn}=Bt;return{"a&, a":Object.assign(Object.assign({},(0,mt.N)(Bt)),{textDecoration:Bt.linkDecoration,"&:active, &:hover":{textDecoration:Bt.linkHoverDecoration},[`&[disabled], &${pn}-disabled`]:{color:Bt.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:Bt.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},ro=Bt=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:Bt.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:Bt.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:Bt.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}}),To=Bt=>{const{componentCls:pn,paddingSM:xr}=Bt,Jr=xr;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-Bt.paddingSM,marginTop:-Jr,marginBottom:`calc(1em - ${Jr}px)`},[`${pn}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:Bt.marginXS+2,insetBlockEnd:Bt.marginXS,color:Bt.colorTextDescription,fontWeight:"normal",fontSize:Bt.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},_r=Bt=>({"&-copy-success":{[` + `,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)"}),T)}},93154:function(mt,q,_){"use strict";_.d(q,{Z:function(){return S},b:function(){return p}});var v=_(77617),M=_(84608),C=_(95470),x=_(41203),N=_(21348),V=_(45844),R=_(43040),k=_(76701);function S(T,F,K){let he=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const fe=Array.isArray(T)?T:[T,T],[be]=fe,Ae=fe.join("-");return xe=>{const[Se,it,Xe]=(0,V.Z)(),{getPrefixCls:ft,iconPrefixCls:Me,csp:Ee}=(0,v.useContext)(x.E_),ze=ft(),Pe={theme:Se,token:it,hashId:Xe,nonce:()=>Ee==null?void 0:Ee.nonce,clientOnly:he.clientOnly,order:he.order||-999};return(0,M.xy)(Object.assign(Object.assign({},Pe),{clientOnly:!1,path:["Shared",ze]}),()=>[{"&":(0,N.Lx)(it)}]),(0,k.Z)(Me,Ee),[(0,M.xy)(Object.assign(Object.assign({},Pe),{path:[Ae,xe,Me]}),()=>{const{token:Re,flush:je}=(0,R.ZP)(it),Ce=Object.assign({},it[be]);if(he.deprecatedTokens){const{deprecatedTokens:Bt}=he;Bt.forEach(At=>{let[an,Tt]=At;var Nn;(Ce!=null&&Ce[an]||Ce!=null&&Ce[Tt])&&((Nn=Ce[Tt])!==null&&Nn!==void 0||(Ce[Tt]=Ce==null?void 0:Ce[an]))})}const rt=typeof K=="function"?K((0,R.TS)(Re,Ce!=null?Ce:{})):K,Ne=Object.assign(Object.assign({},rt),Ce),Xt=`.${xe}`,Ft=(0,R.TS)(Re,{componentCls:Xt,prefixCls:xe,iconCls:`.${Me}`,antCls:`.${ze}`},Ne),lt=F(Ft,{hashId:Xe,prefixCls:xe,rootPrefixCls:ze,iconPrefixCls:Me,overrideComponentToken:Ce});return je(be,Ne),[he.resetStyle===!1?null:(0,N.du)(it,xe),lt]}),Xe]}}const p=(T,F,K,he)=>{const fe=S(T,F,K,Object.assign({resetStyle:!1,order:-998},he));return Ae=>{let{prefixCls:xe}=Ae;return fe(xe),null}}},43040:function(mt,q,_){"use strict";_.d(q,{TS:function(){return C},ZP:function(){return R}});const v=typeof CSSINJS_STATISTIC!="undefined";let M=!0;function C(){for(var k=arguments.length,S=new Array(k),p=0;p{Object.keys(F).forEach(he=>{Object.defineProperty(T,he,{configurable:!0,enumerable:!0,get:()=>F[he]})})}),M=!0,T}const x={},N={};function V(){}function R(k){let S,p=k,T=V;return v&&typeof Proxy!="undefined"&&(S=new Set,p=new Proxy(k,{get(F,K){return M&&S.add(K),F[K]}}),T=(F,K)=>{var he;x[F]={global:Array.from(S),component:Object.assign(Object.assign({},(he=x[F])===null||he===void 0?void 0:he.component),K)}}),{token:p,keys:S,flush:T}}},76701:function(mt,q,_){"use strict";var v=_(84608),M=_(21348),C=_(45844);const x=(N,V)=>{const[R,k]=(0,C.Z)();return(0,v.xy)({theme:R,token:k,hashId:"",path:["ant-design-icons",N],nonce:()=>V==null?void 0:V.nonce},()=>[{[`.${N}`]:Object.assign(Object.assign({},(0,M.Ro)()),{[`.${N} .${N}-icon`]:{display:"block"}})}])};q.Z=x},19189:function(mt,q,_){"use strict";_.d(q,{Z:function(){return lt}});var v=_(77617),M=_(12124),C=_.n(M),x=_(31718),N=_(41760),V=_(8799),R=_(8418),k=_(94892),S=_(37628),p=_(93837),T=_(44942),F=_(41203),K=_(43906),he=_(45844),fe=_(21348),be=_(53679),Ae=_(95661),xe=_(33930);function Se(Bt,At){return xe.i.reduce((an,Tt)=>{const Nn=Bt[`${Tt}1`],mn=Bt[`${Tt}3`],zn=Bt[`${Tt}6`],Kr=Bt[`${Tt}7`];return Object.assign(Object.assign({},an),At(Tt,{lightColor:Nn,lightBorderColor:mn,darkColor:zn,textColor:Kr}))},{})}var it=_(43040),Xe=_(93154);const ft=Bt=>{const{componentCls:At,tooltipMaxWidth:an,tooltipColor:Tt,tooltipBg:Nn,tooltipBorderRadius:mn,zIndexPopup:zn,controlHeight:Kr,boxShadowSecondary:Ui,paddingSM:go,paddingXS:gi,tooltipRadiusOuter:Mr}=Bt;return[{[At]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,fe.Wf)(Bt)),{position:"absolute",zIndex:zn,display:"block",width:"max-content",maxWidth:an,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":Nn,[`${At}-inner`]:{minWidth:Kr,minHeight:Kr,padding:`${go/2}px ${gi}px`,color:Tt,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:Nn,borderRadius:mn,boxShadow:Ui,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${At}-inner`]:{borderRadius:Math.min(mn,Ae.qN)}},[`${At}-content`]:{position:"relative"}}),Se(Bt,(To,ms)=>{let{darkColor:De}=ms;return{[`&${At}-${To}`]:{[`${At}-inner`]:{backgroundColor:De},[`${At}-arrow`]:{"--antd-arrow-background-color":De}}}})),{"&-rtl":{direction:"rtl"}})},(0,Ae.ZP)((0,it.TS)(Bt,{borderRadiusOuter:Mr}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:mn,limitVerticalRadius:!0}),{[`${At}-pure`]:{position:"relative",maxWidth:"none",margin:Bt.sizePopupArrow}}]};var Me=(Bt,At)=>(0,Xe.Z)("Tooltip",Tt=>{if(At===!1)return[];const{borderRadius:Nn,colorTextLightSolid:mn,colorBgDefault:zn,borderRadiusOuter:Kr}=Tt,Ui=(0,it.TS)(Tt,{tooltipMaxWidth:250,tooltipColor:mn,tooltipBorderRadius:Nn,tooltipBg:zn,tooltipRadiusOuter:Kr>4?4:Kr});return[ft(Ui),(0,be._y)(Tt,"zoom-big-fast")]},Tt=>{let{zIndexPopupBase:Nn,colorBgSpotlight:mn}=Tt;return{zIndexPopup:Nn+70,colorBgDefault:mn}},{resetStyle:!1})(Bt),Ee=_(42371);const ze=xe.i.map(Bt=>`${Bt}-inverse`),Pe=null;function Re(Bt){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,Ee.Z)(ze),(0,Ee.Z)(xe.i)).includes(Bt):xe.i.includes(Bt)}function je(Bt){return Pe.includes(Bt)}function Ce(Bt,At){const an=Re(At),Tt=C()({[`${Bt}-${At}`]:At&&an}),Nn={},mn={};return At&&!an&&(Nn.background=At,mn["--antd-arrow-background-color"]=At),{className:Tt,overlayStyle:Nn,arrowStyle:mn}}var Ne=Bt=>{const{prefixCls:At,className:an,placement:Tt="top",title:Nn,color:mn,overlayInnerStyle:zn}=Bt,{getPrefixCls:Kr}=v.useContext(F.E_),Ui=Kr("tooltip",At),[go,gi]=Me(Ui,!0),Mr=Ce(Ui,mn),To=Mr.arrowStyle,ms=Object.assign(Object.assign({},zn),Mr.overlayStyle),De=C()(gi,Ui,`${Ui}-pure`,`${Ui}-placement-${Tt}`,an,Mr.className);return go(v.createElement("div",{className:De,style:To},v.createElement("div",{className:`${Ui}-arrow`}),v.createElement(x.G,Object.assign({},Bt,{className:gi,prefixCls:Ui,overlayInnerStyle:ms}),Nn)))},Xt=function(Bt,At){var an={};for(var Tt in Bt)Object.prototype.hasOwnProperty.call(Bt,Tt)&&At.indexOf(Tt)<0&&(an[Tt]=Bt[Tt]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,Tt=Object.getOwnPropertySymbols(Bt);Nn{var an,Tt;const{prefixCls:Nn,openClassName:mn,getTooltipContainer:zn,overlayClassName:Kr,color:Ui,overlayInnerStyle:go,children:gi,afterOpenChange:Mr,afterVisibleChange:To,destroyTooltipOnHide:ms,arrow:De=!0,title:Oo,overlay:$i,builtinPlacements:co,arrowPointAtCenter:Vr=!1,autoAdjustOverflow:Ro=!0}=Bt,Tn=!!De,[,nt]=(0,he.Z)(),{getPopupContainer:Ct,getPrefixCls:Ht,direction:hn}=v.useContext(F.E_),En=(0,p.ln)("Tooltip"),rn=v.useRef(null),Jt=()=>{var fr;(fr=rn.current)===null||fr===void 0||fr.forceAlign()};v.useImperativeHandle(At,()=>({forceAlign:Jt,forcePopupAlign:()=>{En.deprecated(!1,"forcePopupAlign","forceAlign"),Jt()}}));const[Mt,Qt]=(0,N.Z)(!1,{value:(an=Bt.open)!==null&&an!==void 0?an:Bt.visible,defaultValue:(Tt=Bt.defaultOpen)!==null&&Tt!==void 0?Tt:Bt.defaultVisible}),Dn=!Oo&&!$i&&Oo!==0,sn=fr=>{var Nr,bi;Qt(Dn?!1:fr),Dn||((Nr=Bt.onOpenChange)===null||Nr===void 0||Nr.call(Bt,fr),(bi=Bt.onVisibleChange)===null||bi===void 0||bi.call(Bt,fr))},wr=v.useMemo(()=>{var fr,Nr;let bi=Vr;return typeof De=="object"&&(bi=(Nr=(fr=De.pointAtCenter)!==null&&fr!==void 0?fr:De.arrowPointAtCenter)!==null&&Nr!==void 0?Nr:Vr),co||(0,k.Z)({arrowPointAtCenter:bi,autoAdjustOverflow:Ro,arrowWidth:Tn?nt.sizePopupArrow:0,borderRadius:nt.borderRadius,offset:nt.marginXXS,visibleFirst:!0})},[Vr,De,co,nt]),jr=v.useMemo(()=>Oo===0?Oo:$i||Oo||"",[$i,Oo]),xi=v.createElement(K.BR,null,typeof jr=="function"?jr():jr),{getPopupContainer:Pr,placement:Hi="top",mouseEnterDelay:Io=.1,mouseLeaveDelay:On=.1,overlayStyle:zr,rootClassName:qr}=Bt,Wi=Xt(Bt,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ir=Ht("tooltip",Nn),Jn=Ht(),$t=Bt["data-popover-inject"];let Gt=Mt;!("open"in Bt)&&!("visible"in Bt)&&Dn&&(Gt=!1);const wn=(0,S.l$)(gi)&&!(0,S.M2)(gi)?gi:v.createElement("span",null,gi),Zn=wn.props,_r=!Zn.className||typeof Zn.className=="string"?C()(Zn.className,mn||`${ir}-open`):Zn.className,[qn,$n]=Me(ir,!$t),jt=Ce(ir,Ui),In=jt.arrowStyle,vr=Object.assign(Object.assign({},go),jt.overlayStyle),Ur=C()(Kr,{[`${ir}-rtl`]:hn==="rtl"},jt.className,qr,$n),[Ao,Yt]=(0,V.Cn)("Tooltip",Wi.zIndex),xn=v.createElement(x.Z,Object.assign({},Wi,{zIndex:$t?Wi.zIndex:Ao,showArrow:Tn,placement:Hi,mouseEnterDelay:Io,mouseLeaveDelay:On,prefixCls:ir,overlayClassName:Ur,overlayStyle:Object.assign(Object.assign({},In),zr),getTooltipContainer:Pr||zn||Ct,ref:rn,builtinPlacements:wr,overlay:xi,visible:Gt,onVisibleChange:sn,afterVisibleChange:Mr!=null?Mr:To,overlayInnerStyle:vr,arrowContent:v.createElement("span",{className:`${ir}-arrow-content`}),motion:{motionName:(0,R.m)(Jn,"zoom-big-fast",Bt.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!ms}),Gt?(0,S.Tm)(wn,{className:_r}):wn);return qn(v.createElement(T.Z.Provider,{value:Yt},xn))});Ft._InternalPanelDoNotUseOrYouWillBeFired=Ne;var lt=Ft},77431:function(mt,q,_){"use strict";_.d(q,{Z:function(){return Jt}});var v=_(77617),M=_(74710),C=_(26508),x=_(91002),N=_(39718),V=_(52528),R=_(43403),k=_(13157),S=_(12124),p=_.n(S),T=_(62305),F=_(41760),K=_(61759);function he(Mt){var Qt=window.innerWidth||document.documentElement.clientWidth,Dn=window.innerHeight||document.documentElement.clientHeight,sn=Mt.getBoundingClientRect(),wr=sn.top,jr=sn.right,xi=sn.bottom,Pr=sn.left;return wr>=0&&Pr>=0&&jr<=Qt&&xi<=Dn}function fe(Mt,Qt,Dn){var sn;return(sn=Dn!=null?Dn:Qt)!==null&&sn!==void 0?sn:Mt===null?"center":"bottom"}function be(Mt,Qt,Dn,sn){var wr=(0,v.useState)(void 0),jr=(0,N.Z)(wr,2),xi=jr[0],Pr=jr[1];(0,T.Z)(function(){var Jn=typeof Mt=="function"?Mt():Mt;Pr(Jn||null)});var Hi=(0,v.useState)(null),Io=(0,N.Z)(Hi,2),On=Io[0],zr=Io[1],qr=(0,K.Z)(function(){if(xi){!he(xi)&&Qt&&xi.scrollIntoView(sn);var Jn=xi.getBoundingClientRect(),$t=Jn.left,Gt=Jn.top,wn=Jn.width,Zn=Jn.height,_r={left:$t,top:Gt,width:wn,height:Zn,radius:0};zr(function(qn){return JSON.stringify(qn)!==JSON.stringify(_r)?_r:qn})}else zr(null)}),Wi=function($t){var Gt;return(Gt=Array.isArray(Dn==null?void 0:Dn.offset)?Dn==null?void 0:Dn.offset[$t]:Dn==null?void 0:Dn.offset)!==null&&Gt!==void 0?Gt:6};(0,T.Z)(function(){return qr(),window.addEventListener("resize",qr),function(){window.removeEventListener("resize",qr)}},[xi,Qt,qr]);var ir=(0,v.useMemo)(function(){if(!On)return On;var Jn=Wi(0),$t=Wi(1),Gt=(Dn==null?void 0:Dn.radius)||2;return{left:On.left-Jn,top:On.top-$t,width:On.width+Jn*2,height:On.height+$t*2,radius:Gt}},[On,Dn]);return[ir,xi]}var Ae=_(59872),xe={fill:"transparent",pointerEvents:"auto"},Se=function(Qt){var Dn=Qt.prefixCls,sn=Qt.rootClassName,wr=Qt.pos,jr=Qt.showMask,xi=Qt.style,Pr=xi===void 0?{}:xi,Hi=Qt.fill,Io=Hi===void 0?"rgba(0,0,0,0.5)":Hi,On=Qt.open,zr=Qt.animated,qr=Qt.zIndex,Wi=(0,Ae.Z)(),ir="".concat(Dn,"-mask-").concat(Wi),Jn=(0,x.Z)(zr)==="object"?zr==null?void 0:zr.placeholder:zr;return v.createElement(R.Z,{open:On,autoLock:!0},v.createElement("div",{className:p()("".concat(Dn,"-mask"),sn),style:(0,M.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:qr,pointerEvents:"none"},Pr)},jr?v.createElement("svg",{style:{width:"100%",height:"100%"}},v.createElement("defs",null,v.createElement("mask",{id:ir},v.createElement("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"}),wr&&v.createElement("rect",{x:wr.left,y:wr.top,rx:wr.radius,width:wr.width,height:wr.height,fill:"black",className:Jn?"".concat(Dn,"-placeholder-animated"):""}))),v.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:Io,mask:"url(#".concat(ir,")")}),wr&&v.createElement(v.Fragment,null,v.createElement("rect",(0,C.Z)({},xe,{x:"0",y:"0",width:"100%",height:wr.top})),v.createElement("rect",(0,C.Z)({},xe,{x:"0",y:"0",width:wr.left,height:"100%"})),v.createElement("rect",(0,C.Z)({},xe,{x:"0",y:wr.top+wr.height,width:"100%",height:"calc(100vh - ".concat(wr.top+wr.height,"px)")})),v.createElement("rect",(0,C.Z)({},xe,{x:wr.left+wr.width,y:"0",width:"calc(100vw - ".concat(wr.left+wr.width,"px)"),height:"100%"})))):null))},it=Se,Xe={adjustX:1,adjustY:1},ft=[0,0],Me={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 Ee(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Qt={};return Object.keys(Me).forEach(function(Dn){Qt[Dn]=(0,M.Z)((0,M.Z)({},Me[Dn]),{},{autoArrow:Mt,targetOffset:ft})}),Qt}var ze=Ee(),Pe=_(42371);function Re(Mt){var Qt=Mt.prefixCls,Dn=Mt.current,sn=Mt.total,wr=Mt.title,jr=Mt.description,xi=Mt.onClose,Pr=Mt.onPrev,Hi=Mt.onNext,Io=Mt.onFinish,On=Mt.className,zr=Mt.closeIcon,qr=zr!==!1&&zr!==null,Wi=zr!==void 0&&zr!==!0?zr:v.createElement("span",{className:"".concat(Qt,"-close-x")},"\xD7");return v.createElement("div",{className:p()("".concat(Qt,"-content"),On)},v.createElement("div",{className:"".concat(Qt,"-inner")},qr&&v.createElement("button",{type:"button",onClick:xi,"aria-label":"Close",className:"".concat(Qt,"-close")},Wi),v.createElement("div",{className:"".concat(Qt,"-header")},v.createElement("div",{className:"".concat(Qt,"-title")},wr)),v.createElement("div",{className:"".concat(Qt,"-description")},jr),v.createElement("div",{className:"".concat(Qt,"-footer")},v.createElement("div",{className:"".concat(Qt,"-sliders")},sn>1?(0,Pe.Z)(Array.from({length:sn}).keys()).map(function(ir,Jn){return v.createElement("span",{key:ir,className:Jn===Dn?"active":""})}):null),v.createElement("div",{className:"".concat(Qt,"-buttons")},Dn!==0?v.createElement("button",{className:"".concat(Qt,"-prev-btn"),onClick:Pr},"Prev"):null,Dn===sn-1?v.createElement("button",{className:"".concat(Qt,"-finish-btn"),onClick:Io},"Finish"):v.createElement("button",{className:"".concat(Qt,"-next-btn"),onClick:Hi},"Next")))))}var je=function(Qt){var Dn=Qt.current,sn=Qt.renderPanel;return v.createElement(v.Fragment,null,typeof sn=="function"?sn(Qt,Dn):v.createElement(Re,Qt))},Ce=je,rt=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon"],Ne={left:"50%",top:"50%",width:1,height:1},Xt=function(Qt){var Dn=Qt.prefixCls,sn=Dn===void 0?"rc-tour":Dn,wr=Qt.steps,jr=wr===void 0?[]:wr,xi=Qt.defaultCurrent,Pr=Qt.current,Hi=Qt.onChange,Io=Qt.onClose,On=Qt.onFinish,zr=Qt.open,qr=Qt.mask,Wi=qr===void 0?!0:qr,ir=Qt.arrow,Jn=ir===void 0?!0:ir,$t=Qt.rootClassName,Gt=Qt.placement,wn=Qt.renderPanel,Zn=Qt.gap,_r=Qt.animated,qn=Qt.scrollIntoViewOptions,$n=qn===void 0?!0:qn,jt=Qt.zIndex,In=jt===void 0?1001:jt,vr=Qt.closeIcon,Ur=(0,V.Z)(Qt,rt),Ao=v.useRef(),Yt=(0,F.Z)(0,{value:Pr,defaultValue:xi}),xn=(0,N.Z)(Yt,2),fr=xn[0],Nr=xn[1],bi=(0,F.Z)(void 0,{value:zr,postState:function(_s){return fr<0||fr>=jr.length?!1:_s!=null?_s:!0}}),Ei=(0,N.Z)(bi,2),Yi=Ei[0],di=Ei[1],Wr=v.useRef(Yi);(0,T.Z)(function(){Yi&&!Wr.current&&Nr(0),Wr.current=Yi},[Yi]);var Ni=jr[fr]||{},kr=Ni.target,Xr=Ni.placement,yo=Ni.style,ls=Ni.arrow,Sr=Ni.className,hs=Ni.mask,ta=Ni.scrollIntoViewOptions,fi=Ni.closeIcon,Po=Yi&&(hs!=null?hs:Wi),mo=fi!=null?fi:vr,or=ta!=null?ta:$n,Oi=be(kr,zr,Zn,or),Wa=(0,N.Z)(Oi,2),Sa=Wa[0],xa=Wa[1],Ml=fe(xa,Gt,Xr),wo=xa?typeof ls=="undefined"?Jn:ls:!1,_l=(0,x.Z)(wo)==="object"?wo.pointAtCenter:!1;(0,T.Z)(function(){var Mi;(Mi=Ao.current)===null||Mi===void 0||Mi.forceAlign()},[_l,fr]);var El=function(_s){Nr(_s),Hi==null||Hi(_s)};if(xa===void 0)return null;var Ai=function(){di(!1),Io==null||Io(fr)},to=function(){return v.createElement(Ce,(0,C.Z)({arrow:wo,key:"content",prefixCls:sn,total:jr.length,renderPanel:wn,onPrev:function(){El(fr-1)},onNext:function(){El(fr+1)},onClose:Ai,current:fr,onFinish:function(){Ai(),On==null||On()},closeIcon:mo},jr[fr]))},An=typeof Po=="boolean"?Po:!!Po,ri=typeof Po=="boolean"?void 0:Po,ao=function(_s){return _s||xa||document.body};return v.createElement(v.Fragment,null,v.createElement(it,{zIndex:In,prefixCls:sn,pos:Sa,showMask:An,style:ri==null?void 0:ri.style,fill:ri==null?void 0:ri.color,open:Yi,animated:_r,rootClassName:$t}),v.createElement(k.Z,(0,C.Z)({builtinPlacements:Ee(_l)},Ur,{ref:Ao,popupStyle:yo,popupPlacement:Ml,popupVisible:Yi,popupClassName:p()($t,Sr),prefixCls:sn,popup:to,forceRender:!1,destroyPopupOnHide:!0,zIndex:In,getTriggerDOMNode:ao,arrow:!!wo}),v.createElement(R.Z,{open:Yi,autoLock:!0},v.createElement("div",{className:p()($t,"".concat(sn,"-target-placeholder")),style:(0,M.Z)((0,M.Z)({},Sa||Ne),{},{position:"fixed",pointerEvents:"none"})}))))},Ft=Xt,lt=Ft,Bt=_(8799),At=_(94892),an=_(44942),Tt=_(41203),Nn=_(45844),mn=_(49934),zn=_(34745),Kr=_(92584),Ui=_(47462),go=_(79172);function gi(Mt){return Mt!=null}var To=Mt=>{let{stepProps:Qt,current:Dn,type:sn,indicatorsRender:wr,closeIcon:jr}=Mt;var xi,Pr;const{prefixCls:Hi,total:Io=1,title:On,onClose:zr,onPrev:qr,onNext:Wi,onFinish:ir,cover:Jn,description:$t,nextButtonProps:Gt,prevButtonProps:wn,type:Zn,closeIcon:_r}=Qt,qn=Zn!=null?Zn:sn,$n=_r!=null?_r:jr,jt=$n!==!1&&$n!==null,[In,vr]=(0,go.Z)(jt,$n,Wr=>v.createElement("span",{onClick:zr,"aria-label":"Close",className:`${Hi}-close`},Wr),v.createElement(mn.Z,{className:`${Hi}-close-icon`}),!0),Ur=Dn===Io-1,Ao=()=>{var Wr;qr==null||qr(),(Wr=wn==null?void 0:wn.onClick)===null||Wr===void 0||Wr.call(wn)},Yt=()=>{var Wr;Ur?ir==null||ir():Wi==null||Wi(),(Wr=Gt==null?void 0:Gt.onClick)===null||Wr===void 0||Wr.call(Gt)},xn=gi(On)?v.createElement("div",{className:`${Hi}-header`},v.createElement("div",{className:`${Hi}-title`},On)):null,fr=gi($t)?v.createElement("div",{className:`${Hi}-description`},$t):null,Nr=gi(Jn)?v.createElement("div",{className:`${Hi}-cover`},Jn):null;let bi;wr?bi=wr(Dn,Io):bi=(0,Pe.Z)(Array.from({length:Io}).keys()).map((Wr,Ni)=>v.createElement("span",{key:Wr,className:p()(Ni===Dn&&`${Hi}-indicator-active`,`${Hi}-indicator`)}));const Ei=qn==="primary"?"default":"primary",Yi={type:"default",ghost:qn==="primary"},[di]=(0,Kr.Z)("Tour",Ui.Z.Tour);return v.createElement("div",{className:`${Hi}-content`},v.createElement("div",{className:`${Hi}-inner`},In&&vr,Nr,xn,fr,v.createElement("div",{className:`${Hi}-footer`},Io>1&&v.createElement("div",{className:`${Hi}-indicators`},bi),v.createElement("div",{className:`${Hi}-buttons`},Dn!==0?v.createElement(zn.ZP,Object.assign({},Yi,wn,{onClick:Ao,size:"small",className:p()(`${Hi}-prev-btn`,wn==null?void 0:wn.className)}),(xi=wn==null?void 0:wn.children)!==null&&xi!==void 0?xi:di==null?void 0:di.Previous):null,v.createElement(zn.ZP,Object.assign({type:Ei},Gt,{onClick:Yt,size:"small",className:p()(`${Hi}-next-btn`,Gt==null?void 0:Gt.className)}),(Pr=Gt==null?void 0:Gt.children)!==null&&Pr!==void 0?Pr:Ur?di==null?void 0:di.Finish:di==null?void 0:di.Next)))))},ms=_(46683),De=_(64993),Oo=_(21348),$i=_(95661),co=_(93154),Vr=_(43040);const Ro=Mt=>{const{componentCls:Qt,lineHeight:Dn,padding:sn,paddingXS:wr,borderRadius:jr,borderRadiusXS:xi,colorPrimary:Pr,colorText:Hi,colorFill:Io,indicatorHeight:On,indicatorWidth:zr,boxShadowTertiary:qr,tourZIndexPopup:Wi,fontSize:ir,colorBgElevated:Jn,fontWeightStrong:$t,marginXS:Gt,colorTextLightSolid:wn,tourBorderRadius:Zn,colorWhite:_r,colorBgTextHover:qn,tourCloseSize:$n,motionDurationSlow:jt,antCls:In}=Mt;return[{[Qt]:Object.assign(Object.assign({},(0,Oo.Wf)(Mt)),{color:Hi,position:"absolute",zIndex:Wi,display:"block",visibility:"visible",fontSize:ir,lineHeight:Dn,width:520,"--antd-arrow-background-color":Jn,"&-pure":{maxWidth:"100%",position:"relative"},[`&${Qt}-hidden`]:{display:"none"},[`${Qt}-content`]:{position:"relative"},[`${Qt}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:Zn,boxShadow:qr,position:"relative",backgroundColor:Jn,border:"none",backgroundClip:"padding-box",[`${Qt}-close`]:{position:"absolute",top:sn,insetInlineEnd:sn,color:Mt.colorIcon,outline:"none",width:$n,height:$n,borderRadius:Mt.borderRadiusSM,transition:`background-color ${Mt.motionDurationMid}, color ${Mt.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:Mt.colorIconHover,backgroundColor:Mt.wireframe?"transparent":Mt.colorFillContent}},[`${Qt}-cover`]:{textAlign:"center",padding:`${sn+$n+wr}px ${sn}px 0`,img:{width:"100%"}},[`${Qt}-header`]:{padding:`${sn}px ${sn}px ${wr}px`,[`${Qt}-title`]:{lineHeight:Dn,fontSize:ir,fontWeight:$t}},[`${Qt}-description`]:{padding:`0 ${sn}px`,lineHeight:Dn,wordWrap:"break-word"},[`${Qt}-footer`]:{padding:`${wr}px ${sn}px ${sn}px`,textAlign:"end",borderRadius:`0 0 ${xi}px ${xi}px`,display:"flex",[`${Qt}-indicators`]:{display:"inline-block",[`${Qt}-indicator`]:{width:zr,height:On,display:"inline-block",borderRadius:"50%",background:Io,"&:not(:last-child)":{marginInlineEnd:On},"&-active":{background:Pr}}},[`${Qt}-buttons`]:{marginInlineStart:"auto",[`${In}-btn`]:{marginInlineStart:Gt}}}},[`${Qt}-primary, &${Qt}-primary`]:{"--antd-arrow-background-color":Pr,[`${Qt}-inner`]:{color:wn,textAlign:"start",textDecoration:"none",backgroundColor:Pr,borderRadius:jr,boxShadow:qr,[`${Qt}-close`]:{color:wn},[`${Qt}-indicators`]:{[`${Qt}-indicator`]:{background:new De.C(wn).setAlpha(.15).toRgbString(),"&-active":{background:wn}}},[`${Qt}-prev-btn`]:{color:wn,borderColor:new De.C(wn).setAlpha(.15).toRgbString(),backgroundColor:Pr,"&:hover":{backgroundColor:new De.C(wn).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${Qt}-next-btn`]:{color:Pr,borderColor:"transparent",background:_r,"&:hover":{background:new De.C(qn).onBackground(_r).toRgbString()}}}}}),[`${Qt}-mask`]:{[`${Qt}-placeholder-animated`]:{transition:`all ${jt}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${Qt}-inner`]:{borderRadius:Math.min(Zn,$i.qN)}}},(0,$i.ZP)(Mt,{colorBg:"var(--antd-arrow-background-color)",contentRadius:Zn,limitVerticalRadius:!0})]};var Tn=(0,co.Z)("Tour",Mt=>{const{borderRadiusLG:Qt,fontSize:Dn,lineHeight:sn}=Mt,wr=(0,Vr.TS)(Mt,{tourZIndexPopup:Mt.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:Qt,tourCloseSize:Dn*sn});return[Ro(wr)]}),nt=_(33966),Ct=function(Mt,Qt){var Dn={};for(var sn in Mt)Object.prototype.hasOwnProperty.call(Mt,sn)&&Qt.indexOf(sn)<0&&(Dn[sn]=Mt[sn]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wr=0,sn=Object.getOwnPropertySymbols(Mt);wr{const{prefixCls:Qt,current:Dn=0,total:sn=6,className:wr,style:jr,type:xi}=Mt,Pr=Ct(Mt,["prefixCls","current","total","className","style","type"]),{getPrefixCls:Hi}=v.useContext(Tt.E_),Io=Hi("tour",Qt),[On,zr]=Tn(Io);return On(v.createElement(ms.t5,{prefixCls:Io,hashId:zr,className:p()(wr,`${Io}-pure`,xi&&`${Io}-${xi}`),style:jr},v.createElement(To,{stepProps:Object.assign(Object.assign({},Pr),{prefixCls:Io,total:sn}),current:Dn,type:xi})))};var hn=(0,nt.i)(Ht),En=function(Mt,Qt){var Dn={};for(var sn in Mt)Object.prototype.hasOwnProperty.call(Mt,sn)&&Qt.indexOf(sn)<0&&(Dn[sn]=Mt[sn]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wr=0,sn=Object.getOwnPropertySymbols(Mt);wr{const{prefixCls:Qt,type:Dn,rootClassName:sn,indicatorsRender:wr,steps:jr}=Mt,xi=En(Mt,["prefixCls","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:Pr,direction:Hi}=(0,v.useContext)(Tt.E_),Io=Pr("tour",Qt),[On,zr]=Tn(Io),[,qr]=(0,Nn.Z)(),Wi=(0,v.useMemo)(()=>jr==null?void 0:jr.map(Zn=>{var _r;return Object.assign(Object.assign({},Zn),{className:p()(Zn.className,{[`${Io}-primary`]:((_r=Zn.type)!==null&&_r!==void 0?_r:Dn)==="primary"})})}),[jr,Dn]),ir=(0,At.Z)({arrowPointAtCenter:!0,autoAdjustOverflow:!0,offset:qr.marginXXS,arrowWidth:qr.sizePopupArrow,borderRadius:qr.borderRadius}),Jn=p()({[`${Io}-rtl`]:Hi==="rtl"},zr,sn),$t=(Zn,_r)=>v.createElement(To,{type:Dn,stepProps:Zn,current:_r,indicatorsRender:wr}),[Gt,wn]=(0,Bt.Cn)("Tour",xi.zIndex);return On(v.createElement(an.Z.Provider,{value:wn},v.createElement(lt,Object.assign({},xi,{zIndex:Gt,rootClassName:Jn,prefixCls:Io,animated:!0,renderPanel:$t,builtinPlacements:ir,steps:Wi}))))};rn._InternalPanelDoNotUseOrYouWillBeFired=hn;var Jt=rn},52803:function(mt,q,_){"use strict";_.d(q,{Z:function(){return Ao}});var v=_(77617),M=_(75769),C=_(26508),x={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"},N=x,V=_(91851),R=function(xn,fr){return v.createElement(V.Z,(0,C.Z)({},xn,{ref:fr,icon:N}))},k=v.forwardRef(R),S={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"},p=S,T=function(xn,fr){return v.createElement(V.Z,(0,C.Z)({},xn,{ref:fr,icon:p}))},F=v.forwardRef(T),K=_(12124),he=_.n(K),fe=_(25769),be=_.n(fe),Ae=_(28647),xe=_(38930),Se=_(62305),it=_(41760),Xe=_(39029),ft=_(9681),Me=_(8339),Ee=_(38251),ze=function(Yt,xn){var fr={};for(var Nr in Yt)Object.prototype.hasOwnProperty.call(Yt,Nr)&&xn.indexOf(Nr)<0&&(fr[Nr]=Yt[Nr]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bi=0,Nr=Object.getOwnPropertySymbols(Yt);bi{const fr=Ni=>{const{keyCode:kr}=Ni;kr===Ee.Z.ENTER&&Ni.preventDefault()},Nr=Ni=>{const{keyCode:kr}=Ni,{onClick:Xr}=Yt;kr===Ee.Z.ENTER&&Xr&&Xr()},{style:bi,noStyle:Ei,disabled:Yi}=Yt,di=ze(Yt,["style","noStyle","disabled"]);let Wr={};return Ei||(Wr=Object.assign({},Pe)),Yi&&(Wr.pointerEvents="none"),Wr=Object.assign(Object.assign({},Wr),bi),v.createElement("div",Object.assign({role:"button",tabIndex:0,ref:xn},di,{onKeyDown:fr,onKeyUp:Nr,style:Wr}))}),Ce=_(41203),rt=_(92584),Ne=_(19189),Xt={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"},Ft=Xt,lt=function(xn,fr){return v.createElement(V.Z,(0,C.Z)({},xn,{ref:fr,icon:Ft}))},Bt=v.forwardRef(lt),At=_(37628),an=_(60838),Tt=_(35247),Nn=_(93154),mn=_(63511);const zn=(Yt,xn,fr,Nr)=>{const{titleMarginBottom:bi,fontWeightStrong:Ei}=Nr;return{marginBottom:bi,color:fr,fontWeight:Ei,fontSize:Yt,lineHeight:xn}},Kr=Yt=>{const xn=[1,2,3,4,5],fr={};return xn.forEach(Nr=>{fr[` + h${Nr}&, + div&-h${Nr}, + div&-h${Nr} > textarea, + h${Nr} + `]=zn(Yt[`fontSizeHeading${Nr}`],Yt[`lineHeightHeading${Nr}`],Yt.colorTextHeading,Yt)}),fr},Ui=Yt=>{const{componentCls:xn}=Yt;return{"a&, a":Object.assign(Object.assign({},(0,Tt.N)(Yt)),{textDecoration:Yt.linkDecoration,"&:active, &:hover":{textDecoration:Yt.linkHoverDecoration},[`&[disabled], &${xn}-disabled`]:{color:Yt.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:Yt.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},go=Yt=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:Yt.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:Yt.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:mn.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:Yt.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}}),gi=Yt=>{const{componentCls:xn,paddingSM:fr}=Yt,Nr=fr;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-Yt.paddingSM,marginTop:-Nr,marginBottom:`calc(1em - ${Nr}px)`},[`${xn}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:Yt.marginXS+2,insetBlockEnd:Yt.marginXS,color:Yt.colorTextDescription,fontWeight:"normal",fontSize:Yt.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Mr=Yt=>({"&-copy-success":{[` &, &:hover, - &:focus`]:{color:Bt.colorSuccess}}}),Bo=()=>({[` + &:focus`]:{color:Yt.colorSuccess}}}),To=()=>({[` 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"}}),fs=Bt=>{const{componentCls:pn,titleMarginTop:xr}=Bt;return{[pn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:Bt.colorText,wordBreak:"break-word",lineHeight:Bt.lineHeight,[`&${pn}-secondary`]:{color:Bt.colorTextDescription},[`&${pn}-success`]:{color:Bt.colorSuccess},[`&${pn}-warning`]:{color:Bt.colorWarning},[`&${pn}-danger`]:{color:Bt.colorError,"a&:active, a&:focus":{color:Bt.colorErrorActive},"a&:hover":{color:Bt.colorErrorHover}},[`&${pn}-disabled`]:{color:Bt.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"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),ms=Yt=>{const{componentCls:xn,titleMarginTop:fr}=Yt;return{[xn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:Yt.colorText,wordBreak:"break-word",lineHeight:Yt.lineHeight,[`&${xn}-secondary`]:{color:Yt.colorTextDescription},[`&${xn}-success`]:{color:Yt.colorSuccess},[`&${xn}-warning`]:{color:Yt.colorWarning},[`&${xn}-danger`]:{color:Yt.colorError,"a&:active, a&:focus":{color:Yt.colorErrorActive},"a&:hover":{color:Yt.colorErrorHover}},[`&${xn}-disabled`]:{color:Yt.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[` div&, p - `]:{marginBottom:"1em"}},ri(Bt)),{[` - & + h1${pn}, - & + h2${pn}, - & + h3${pn}, - & + h4${pn}, - & + h5${pn} - `]:{marginTop:xr},[` + `]:{marginBottom:"1em"}},Kr(Yt)),{[` + & + h1${xn}, + & + h2${xn}, + & + h3${xn}, + & + h4${xn}, + & + h5${xn} + `]:{marginTop:fr},[` div, ul, li, @@ -8093,51 +8123,54 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter + h3, + h4, + h5 - `]:{marginTop:xr}}}),ro(Bt)),gi(Bt)),{[` - ${pn}-expand, - ${pn}-edit, - ${pn}-copy - `]:Object.assign(Object.assign({},(0,mt.N)(Bt)),{marginInlineStart:Bt.marginXXS})}),To(Bt)),_r(Bt)),Bo()),{"&-rtl":{direction:"rtl"}})}};var me=(0,yn.Z)("Typography",Bt=>[fs(Bt)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),ho=Bt=>{const{prefixCls:pn,"aria-label":xr,className:Jr,style:vi,direction:Ti,maxLength:co,autoSize:Qr=!0,value:oi,onSave:Zi,onCancel:Ir,onEnd:tn,component:Gn,enterIcon:Ei=y.createElement(Ct,null)}=Bt,Ln=y.useRef(null),Ii=y.useRef(!1),nr=y.useRef(),[wi,Mi]=y.useState(oi);y.useEffect(()=>{Mi(oi)},[oi]),y.useEffect(()=>{if(Ln.current&&Ln.current.resizableTextArea){const{textArea:Dr}=Ln.current.resizableTextArea;Dr.focus();const{length:pr}=Dr.value;Dr.setSelectionRange(pr,pr)}},[]);const Rr=Dr=>{let{target:pr}=Dr;Mi(pr.value.replace(/[\n\r]/g,""))},Xn=()=>{Ii.current=!0},ms=()=>{Ii.current=!1},ya=Dr=>{let{keyCode:pr}=Dr;Ii.current||(nr.current=pr)},fa=()=>{Zi(wi.trim())},Ws=Dr=>{let{keyCode:pr,ctrlKey:ci,altKey:Eo,metaKey:mo,shiftKey:Ts}=Dr;nr.current===pr&&!Ii.current&&!ci&&!Eo&&!mo&&!Ts&&(pr===ve.Z.ENTER?(fa(),tn==null||tn()):pr===ve.Z.ESC&&Ir())},Ua=()=>{fa()},Ao=Gn?`${pn}-${Gn}`:"",[cl,$r]=me(pn),er=te()(pn,`${pn}-edit-content`,{[`${pn}-rtl`]:Ti==="rtl"},Jr,Ao,$r);return cl(y.createElement("div",{className:er,style:vi},y.createElement(zt.Z,{ref:Ln,maxLength:co,value:wi,onChange:Rr,onKeyDown:ya,onKeyUp:Ws,onCompositionStart:Xn,onCompositionEnd:ms,onBlur:Ua,"aria-label":xr,rows:1,autoSize:Qr}),Ei!==null?(0,ft.Tm)(Ei,{className:`${pn}-edit-content-confirm`}):null))},go=function(Bt,pn){var xr={};for(var Jr in Bt)Object.prototype.hasOwnProperty.call(Bt,Jr)&&pn.indexOf(Jr)<0&&(xr[Jr]=Bt[Jr]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vi=0,Jr=Object.getOwnPropertySymbols(Bt);vi{const{prefixCls:xr,component:Jr="article",className:vi,rootClassName:Ti,setContentRef:co,children:Qr,direction:oi,style:Zi}=Bt,Ir=go(Bt,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:tn,direction:Gn,typography:Ei}=y.useContext(ge.E_),Ln=oi!=null?oi:Gn;let Ii=pn;co&&(Ii=(0,je.sQ)(pn,co));const nr=tn("typography",xr),[wi,Mi]=me(nr),Rr=te()(nr,Ei==null?void 0:Ei.className,{[`${nr}-rtl`]:Ln==="rtl"},vi,Ti,Mi),Xn=Object.assign(Object.assign({},Ei==null?void 0:Ei.style),Zi);return wi(y.createElement(Jr,Object.assign({className:Rr,style:Xn,ref:Ii},Ir),Qr))});function dn(Bt,pn){return y.useMemo(()=>{const xr=!!Bt;return[xr,Object.assign(Object.assign({},pn),xr&&typeof Bt=="object"?Bt:null)]},[Bt])}var yt=(Bt,pn)=>{const xr=y.useRef(!1);y.useEffect(()=>{xr.current?Bt():xr.current=!0},pn)};function xt(Bt){const pn=typeof Bt;return pn==="string"||pn==="number"}function Wt(Bt){let pn=0;return Bt.forEach(xr=>{xt(xr)?pn+=String(xr).length:pn+=1}),pn}function sn(Bt,pn){let xr=0;const Jr=[];for(let vi=0;vipn){const Zi=pn-xr;return Jr.push(String(Ti).slice(0,Zi)),Jr}Jr.push(Ti),xr=oi}return Bt}const Ot=0,Tt=1,bt=2,Ht=3,zn=4;var fr=Bt=>{let{enabledMeasure:pn,children:xr,text:Jr,width:vi,fontSize:Ti,rows:co,onEllipsis:Qr}=Bt;const[[oi,Zi,Ir],tn]=y.useState([0,0,0]),[Gn,Ei]=y.useState(0),[Ln,Ii]=y.useState(Ot),[nr,wi]=y.useState(0),Mi=y.useRef(null),Rr=y.useRef(null),Xn=y.useMemo(()=>(0,he.Z)(Jr),[Jr]),ms=y.useMemo(()=>Wt(Xn),[Xn]),ya=y.useMemo(()=>!pn||Ln!==Ht?Gn&&Ln!==zn&&pn?xr(sn(Xn,Gn),Gn{pn&&vi&&Ti&&ms&&(Ii(Tt),tn([0,Math.ceil(ms/2),ms]))},[pn,vi,Ti,Jr,ms,co]),(0,fe.Z)(()=>{var Ao;Ln===Tt&&wi(((Ao=Mi.current)===null||Ao===void 0?void 0:Ao.offsetHeight)||0)},[Ln]),(0,fe.Z)(()=>{var Ao,cl;if(nr){if(Ln===Tt){const $r=((Ao=Rr.current)===null||Ao===void 0?void 0:Ao.offsetHeight)||0,er=co*nr;$r<=er?(Ii(zn),Qr(!1)):Ii(bt)}else if(Ln===bt)if(oi!==Ir){const $r=((cl=Rr.current)===null||cl===void 0?void 0:cl.offsetHeight)||0,er=co*nr;let Dr=oi,pr=Ir;oi===Ir-1?pr=oi:$r<=er?Dr=Zi:pr=Zi;const ci=Math.ceil((Dr+pr)/2);tn([Dr,ci,pr])}else Ii(Ht),Ei(Zi),Qr(!0)}},[Ln,oi,Ir,co,nr]);const fa={width:vi,whiteSpace:"normal",margin:0,padding:0},Ws=(Ao,cl,$r)=>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(Ti/2)*2},$r)},Ao),Ua=(Ao,cl)=>{const $r=sn(Xn,Ao);return Ws(xr($r,!0),cl,fa)};return y.createElement(y.Fragment,null,ya,pn&&Ln!==Ht&&Ln!==zn&&y.createElement(y.Fragment,null,Ws("lg",Mi,{wordBreak:"keep-all",whiteSpace:"nowrap"}),Ln===Tt?Ws(xr(Xn,!1),Rr,fa):Ua(Zi,Rr)))},ii=Bt=>{let{enabledEllipsis:pn,isEllipsis:xr,children:Jr,tooltipProps:vi}=Bt;return!(vi!=null&&vi.title)||!pn?Jr:y.createElement(Se.Z,Object.assign({open:xr?void 0:!1},vi),Jr)},si=function(Bt,pn){var xr={};for(var Jr in Bt)Object.prototype.hasOwnProperty.call(Bt,Jr)&&pn.indexOf(Jr)<0&&(xr[Jr]=Bt[Jr]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vi=0,Jr=Object.getOwnPropertySymbols(Bt);vi{var xr,Jr,vi;const{prefixCls:Ti,className:co,style:Qr,type:oi,disabled:Zi,children:Ir,ellipsis:tn,editable:Gn,copyable:Ei,component:Ln,title:Ii}=Bt,nr=si(Bt,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:wi,direction:Mi}=y.useContext(ge.E_),[Rr]=(0,We.Z)("Text"),Xn=y.useRef(null),ms=y.useRef(null),ya=wi("typography",Ti),fa=(0,Ie.Z)(nr,["mark","code","delete","underline","strong","keyboard","italic"]),[Ws,Ua]=dn(Gn),[Ao,cl]=(0,Be.Z)(!1,{value:Ua.editing}),{triggerType:$r=["icon"]}=Ua,er=vo=>{var to;vo&&((to=Ua.onStart)===null||to===void 0||to.call(Ua)),cl(vo)};yt(()=>{var vo;Ao||(vo=ms.current)===null||vo===void 0||vo.focus()},[Ao]);const Dr=vo=>{vo==null||vo.preventDefault(),er(!0)},pr=vo=>{var to;(to=Ua.onChange)===null||to===void 0||to.call(Ua,vo),er(!1)},ci=()=>{var vo;(vo=Ua.onCancel)===null||vo===void 0||vo.call(Ua),er(!1)},[Eo,mo]=dn(Ei),[Ts,xs]=y.useState(!1),Er=y.useRef(null),ui={};mo.format&&(ui.format=mo.format);const Xt=()=>{Er.current&&clearTimeout(Er.current)},gn=vo=>{var to;vo==null||vo.preventDefault(),vo==null||vo.stopPropagation(),ce()(mo.text||String(Ir)||"",ui),xs(!0),Xt(),Er.current=setTimeout(()=>{xs(!1)},3e3),(to=mo.onCopy)===null||to===void 0||to.call(mo,vo)};y.useEffect(()=>Xt,[]);const[En,tt]=y.useState(!1),[at,gt]=y.useState(!1),[Re,lt]=y.useState(!1),[St,ln]=y.useState(!1),[Vn,wr]=y.useState(!1),[ki,Vi]=y.useState(!0),[Ki,ps]=dn(tn,{expandable:!1}),Ns=Ki&&!Re,{rows:Bs=1}=ps,_a=y.useMemo(()=>!Ns||ps.suffix!==void 0||ps.onEllipsis||ps.expandable||Ws||Eo,[Ns,ps,Ws,Eo]);(0,fe.Z)(()=>{Ki&&!_a&&(tt((0,be.G)("webkitLineClamp")),gt((0,be.G)("textOverflow")))},[_a,Ki]);const oo=y.useMemo(()=>_a?!1:Bs===1?at:En,[_a,at,En]),Ds=Ns&&(oo?Vn:St),oa=Ns&&Bs===1&&oo,va=Ns&&Bs>1&&oo,Bl=vo=>{var to;lt(!0),(to=ps.onExpand)===null||to===void 0||to.call(ps,vo)},[Fa,gl]=y.useState(0),[ua,Nl]=y.useState(0),vs=(vo,to)=>{let{offsetWidth:hs}=vo;var jn;gl(hs),Nl(parseInt((jn=window.getComputedStyle)===null||jn===void 0?void 0:jn.call(window,to).fontSize,10)||0)},Hi=vo=>{var to;ln(vo),St!==vo&&((to=ps.onEllipsis)===null||to===void 0||to.call(ps,vo))};y.useEffect(()=>{const vo=Xn.current;if(Ki&&oo&&vo){const to=va?vo.offsetHeight{const vo=Xn.current;if(typeof IntersectionObserver=="undefined"||!vo||!oo||!Ns)return;const to=new IntersectionObserver(()=>{Vi(!!vo.offsetParent)});return to.observe(vo),()=>{to.disconnect()}},[oo,Ns]);let eo={};ps.tooltip===!0?eo={title:(xr=Ua.text)!==null&&xr!==void 0?xr:Ir}:y.isValidElement(ps.tooltip)?eo={title:ps.tooltip}:typeof ps.tooltip=="object"?eo=Object.assign({title:(Jr=Ua.text)!==null&&Jr!==void 0?Jr:Ir},ps.tooltip):eo={title:ps.tooltip};const sa=y.useMemo(()=>{const vo=to=>["string","number"].includes(typeof to);if(!(!Ki||oo)){if(vo(Ua.text))return Ua.text;if(vo(Ir))return Ir;if(vo(Ii))return Ii;if(vo(eo.title))return eo.title}},[Ki,oo,Ii,eo.title,Ds]);if(Ao)return y.createElement(ho,{value:(vi=Ua.text)!==null&&vi!==void 0?vi:typeof Ir=="string"?Ir:"",onSave:pr,onCancel:ci,onEnd:Ua.onEnd,prefixCls:ya,className:co,style:Qr,direction:Mi,component:Ln,maxLength:Ua.maxLength,autoSize:Ua.autoSize,enterIcon:Ua.enterIcon});const Cs=()=>{const{expandable:vo,symbol:to}=ps;if(!vo)return null;let hs;return to?hs=to:hs=Rr==null?void 0:Rr.expand,y.createElement("a",{key:"expand",className:`${ya}-expand`,onClick:Bl,"aria-label":Rr==null?void 0:Rr.expand},hs)},Ka=()=>{if(!Ws)return;const{icon:vo,tooltip:to}=Ua,hs=(0,he.Z)(to)[0]||(Rr==null?void 0:Rr.edit),jn=typeof hs=="string"?hs:"";return $r.includes("icon")?y.createElement(Se.Z,{key:"edit",title:to===!1?"":hs},y.createElement(Ae,{ref:ms,className:`${ya}-edit`,onClick:Dr,"aria-label":jn},vo||y.createElement(P,{role:"button"}))):null},$u=()=>{if(!Eo)return;const{tooltips:vo,icon:to}=mo,hs=_n(vo),jn=_n(to),yr=Ts?Qo(hs[1],Rr==null?void 0:Rr.copied):Qo(hs[0],Rr==null?void 0:Rr.copy),ai=Ts?Rr==null?void 0:Rr.copied:Rr==null?void 0:Rr.copy,hi=typeof yr=="string"?yr:ai;return y.createElement(Se.Z,{key:"copy",title:yr},y.createElement(Ae,{className:te()(`${ya}-copy`,Ts&&`${ya}-copy-success`),onClick:gn,"aria-label":hi},Ts?Qo(jn[1],y.createElement(I.Z,null),!0):Qo(jn[0],y.createElement(A,null),!0)))},rc=vo=>[vo&&Cs(),Ka(),$u()],Pc=vo=>[vo&&y.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Vr),ps.suffix,rc(vo)];return y.createElement(pe.Z,{onResize:vs,disabled:!Ns||oo},vo=>y.createElement(ii,{tooltipProps:eo,enabledEllipsis:Ns,isEllipsis:Ds},y.createElement(No,Object.assign({className:te()({[`${ya}-${oi}`]:oi,[`${ya}-disabled`]:Zi,[`${ya}-ellipsis`]:Ki,[`${ya}-single-line`]:Ns&&Bs===1,[`${ya}-ellipsis-single-line`]:oa,[`${ya}-ellipsis-multiple-line`]:va},co),prefixCls:Ti,style:Object.assign(Object.assign({},Qr),{WebkitLineClamp:va?Bs:void 0}),component:Ln,ref:(0,je.sQ)(vo,Xn,pn),direction:Mi,onClick:$r.includes("text")?Dr:void 0,"aria-label":sa==null?void 0:sa.toString(),title:Ii},fa),y.createElement(fr,{enabledMeasure:Ns&&!oo,text:Ir,rows:Bs,width:Fa,fontSize:ua,onEllipsis:Hi},(to,hs)=>{let jn=to;return to.length&&hs&&sa&&(jn=y.createElement("span",{key:"show-content","aria-hidden":!0},jn)),uo(Bt,y.createElement(y.Fragment,null,jn,Pc(hs)))}))))}),xo=function(Bt,pn){var xr={};for(var Jr in Bt)Object.prototype.hasOwnProperty.call(Bt,Jr)&&pn.indexOf(Jr)<0&&(xr[Jr]=Bt[Jr]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vi=0,Jr=Object.getOwnPropertySymbols(Bt);vi{var{ellipsis:xr,rel:Jr}=Bt,vi=xo(Bt,["ellipsis","rel"]);const Ti=Object.assign(Object.assign({},vi),{rel:Jr===void 0&&vi.target==="_blank"?"noopener noreferrer":Jr});return delete Ti.navigate,y.createElement(Ui,Object.assign({},Ti,{ref:pn,ellipsis:!!xr,component:"a"}))}),Fr=y.forwardRef((Bt,pn)=>y.createElement(Ui,Object.assign({ref:pn},Bt,{component:"div"}))),mi=function(Bt,pn){var xr={};for(var Jr in Bt)Object.prototype.hasOwnProperty.call(Bt,Jr)&&pn.indexOf(Jr)<0&&(xr[Jr]=Bt[Jr]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vi=0,Jr=Object.getOwnPropertySymbols(Bt);vi{var{ellipsis:xr}=Bt,Jr=mi(Bt,["ellipsis"]);const vi=y.useMemo(()=>xr&&typeof xr=="object"?(0,Ie.Z)(xr,["expandable","rows"]):xr,[xr]);return y.createElement(Ui,Object.assign({ref:pn},Jr,{ellipsis:vi,component:"span"}))};var ti=y.forwardRef(Tr),di=function(Bt,pn){var xr={};for(var Jr in Bt)Object.prototype.hasOwnProperty.call(Bt,Jr)&&pn.indexOf(Jr)<0&&(xr[Jr]=Bt[Jr]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vi=0,Jr=Object.getOwnPropertySymbols(Bt);vi{const{level:xr=1}=Bt,Jr=di(Bt,["level"]);let vi;return rn.includes(xr)?vi=`h${xr}`:vi="h1",y.createElement(Ui,Object.assign({ref:pn},Jr,{component:vi}))});const ao=No;ao.Text=ti,ao.Link=$n,ao.Title=Xr,ao.Paragraph=Fr;var as=ao},22204:function(nt,V,m){"use strict";m.d(V,{Z:function(){return hs}});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),te=m(91002),re=m(97100),ce=m(5090);function pe(jn,yr){var ai="cannot ".concat(jn.method," ").concat(jn.action," ").concat(yr.status,"'"),hi=new Error(ai);return hi.status=yr.status,hi.method=jn.method,hi.url=jn.action,hi}function he(jn){var yr=jn.responseText||jn.response;if(!yr)return yr;try{return JSON.parse(yr)}catch(ai){return yr}}function fe(jn){var yr=new XMLHttpRequest;jn.onProgress&&yr.upload&&(yr.upload.onprogress=function(so){so.total>0&&(so.percent=so.loaded/so.total*100),jn.onProgress(so)});var ai=new FormData;jn.data&&Object.keys(jn.data).forEach(function(Ji){var so=jn.data[Ji];if(Array.isArray(so)){so.forEach(function(Pi){ai.append("".concat(Ji,"[]"),Pi)});return}ai.append(Ji,so)}),jn.file instanceof Blob?ai.append(jn.filename,jn.file,jn.file.name):ai.append(jn.filename,jn.file),yr.onerror=function(so){jn.onError(so)},yr.onload=function(){return yr.status<200||yr.status>=300?jn.onError(pe(jn,yr),he(yr)):jn.onSuccess(he(yr),yr)},yr.open(jn.method,jn.action,!0),jn.withCredentials&&"withCredentials"in yr&&(yr.withCredentials=!0);var hi=jn.headers||{};return hi["X-Requested-With"]!==null&&yr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(hi).forEach(function(Ji){hi[Ji]!==null&&yr.setRequestHeader(Ji,hi[Ji])}),yr.send(ai),{abort:function(){yr.abort()}}}var Be=+new Date,Ie=0;function je(){return"rc-upload-".concat(Be,"-").concat(++Ie)}var be=m(46644),ve=function(jn,yr){if(jn&&yr){var ai=Array.isArray(yr)?yr:yr.split(","),hi=jn.name||"",Ji=jn.type||"",so=Ji.replace(/\/.*$/,"");return ai.some(function(Pi){var us=Pi.trim();if(/^\*(\/\*)?$/.test(Pi))return!0;if(us.charAt(0)==="."){var ga=hi.toLowerCase(),$a=us.toLowerCase(),dl=[$a];return($a===".jpg"||$a===".jpeg")&&(dl=[".jpg",".jpeg"]),dl.some(function(Hl){return ga.endsWith(Hl)})}return/\/\*$/.test(us)?so===us.replace(/\/.*$/,""):Ji===us?!0:/^\w+$/.test(us)?((0,be.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(us,"'.Skip for check.")),!0):!1})}return!0};function ye(jn,yr){var ai=jn.createReader(),hi=[];function Ji(){ai.readEntries(function(so){var Pi=Array.prototype.slice.apply(so);hi=hi.concat(Pi);var us=!Pi.length;us?yr(hi):Ji()})}Ji()}var Ce=function(yr,ai,hi){var Ji=function so(Pi,us){Pi&&(Pi.path=us||"",Pi.isFile?Pi.file(function(ga){hi(ga)&&(Pi.fullPath&&!ga.webkitRelativePath&&(Object.defineProperties(ga,{webkitRelativePath:{writable:!0}}),ga.webkitRelativePath=Pi.fullPath.replace(/^\//,""),Object.defineProperties(ga,{webkitRelativePath:{writable:!1}})),ai([ga]))}):Pi.isDirectory&&ye(Pi,function(ga){ga.forEach(function($a){so($a,"".concat(us).concat(Pi.name,"/"))})}))};yr.forEach(function(so){Ji(so.webkitGetAsEntry())})},xe=Ce,Ae=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ge=function(jn){(0,C.Z)(ai,jn);var yr=(0,f.Z)(ai);function ai(){var hi;(0,w.Z)(this,ai);for(var Ji=arguments.length,so=new Array(Ji),Pi=0;Pi{const{componentCls:yr,iconCls:ai}=jn;return{[`${yr}-wrapper`]:{[`${yr}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:jn.colorFillAlter,border:`${jn.lineWidth}px dashed ${jn.colorBorder}`,borderRadius:jn.borderRadiusLG,cursor:"pointer",transition:`border-color ${jn.motionDurationSlow}`,[yr]:{padding:`${jn.padding}px 0`},[`${yr}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${yr}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${yr}-disabled):hover`]:{borderColor:jn.colorPrimaryHover},[`p${yr}-drag-icon`]:{marginBottom:jn.margin,[ai]:{color:jn.colorPrimary,fontSize:jn.uploadThumbnailSize}},[`p${yr}-text`]:{margin:`0 0 ${jn.marginXXS}px`,color:jn.colorTextHeading,fontSize:jn.fontSizeLG},[`p${yr}-hint`]:{color:jn.colorTextDescription,fontSize:jn.fontSize},[`&${yr}-disabled`]:{cursor:"not-allowed",[`p${yr}-drag-icon ${ai}, - p${yr}-text, - p${yr}-hint - `]:{color:jn.colorTextDisabled}}}}}},Bo=jn=>{const{componentCls:yr,antCls:ai,iconCls:hi,fontSize:Ji,lineHeight:so}=jn,Pi=`${yr}-list-item`,us=`${Pi}-actions`,ga=`${Pi}-action`,$a=Math.round(Ji*so);return{[`${yr}-wrapper`]:{[`${yr}-list`]:Object.assign(Object.assign({},(0,Bn.dF)()),{lineHeight:jn.lineHeight,[Pi]:{position:"relative",height:jn.lineHeight*Ji,marginTop:jn.marginXS,fontSize:Ji,display:"flex",alignItems:"center",transition:`background-color ${jn.motionDurationSlow}`,"&:hover":{backgroundColor:jn.controlItemBgHover},[`${Pi}-name`]:Object.assign(Object.assign({},Bn.vS),{padding:`0 ${jn.paddingXS}px`,lineHeight:so,flex:"auto",transition:`all ${jn.motionDurationSlow}`}),[us]:{[ga]:{opacity:0},[`${ga}${ai}-btn-sm`]:{height:$a,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` - ${ga}:focus-visible, - &.picture ${ga} - `]:{opacity:1},[hi]:{color:jn.actionsColor,transition:`all ${jn.motionDurationSlow}`},[`&:hover ${hi}`]:{color:jn.colorText}},[`${yr}-icon ${hi}`]:{color:jn.colorTextDescription,fontSize:Ji},[`${Pi}-progress`]:{position:"absolute",bottom:-jn.uploadProgressOffset,width:"100%",paddingInlineStart:Ji+jn.paddingXS,fontSize:Ji,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Pi}:hover ${ga}`]:{opacity:1,color:jn.colorText},[`${Pi}-error`]:{color:jn.colorError,[`${Pi}-name, ${yr}-icon ${hi}`]:{color:jn.colorError},[us]:{[`${hi}, ${hi}:hover`]:{color:jn.colorError},[ga]:{opacity:1}}},[`${yr}-list-item-container`]:{transition:`opacity ${jn.motionDurationSlow}, height ${jn.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},fs=m(84608),me=m(42402);const So=new fs.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),ho=new fs.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var ji=jn=>{const{componentCls:yr}=jn,ai=`${yr}-animate-inline`;return[{[`${yr}-wrapper`]:{[`${ai}-appear, ${ai}-enter, ${ai}-leave`]:{animationDuration:jn.motionDurationSlow,animationTimingFunction:jn.motionEaseInOutCirc,animationFillMode:"forwards"},[`${ai}-appear, ${ai}-enter`]:{animationName:So},[`${ai}-leave`]:{animationName:ho}}},{[`${yr}-wrapper`]:(0,me.J$)(jn)},So,ho]},No=m(63511),dn=m(64993);const Ve=jn=>{const{componentCls:yr,iconCls:ai,uploadThumbnailSize:hi,uploadProgressOffset:Ji}=jn,so=`${yr}-list`,Pi=`${so}-item`;return{[`${yr}-wrapper`]:{[` - ${so}${so}-picture, - ${so}${so}-picture-card, - ${so}${so}-picture-circle - `]:{[Pi]:{position:"relative",height:hi+jn.lineWidth*2+jn.paddingXS*2,padding:jn.paddingXS,border:`${jn.lineWidth}px ${jn.lineType} ${jn.colorBorder}`,borderRadius:jn.borderRadiusLG,"&:hover":{background:"transparent"},[`${Pi}-thumbnail`]:Object.assign(Object.assign({},Bn.vS),{width:hi,height:hi,lineHeight:`${hi+jn.paddingSM}px`,textAlign:"center",flex:"none",[ai]:{fontSize:jn.fontSizeHeading2,color:jn.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Pi}-progress`]:{bottom:Ji,width:`calc(100% - ${jn.paddingSM*2}px)`,marginTop:0,paddingInlineStart:hi+jn.paddingXS}},[`${Pi}-error`]:{borderColor:jn.colorError,[`${Pi}-thumbnail ${ai}`]:{[`svg path[fill='${No.iN[0]}']`]:{fill:jn.colorErrorBg},[`svg path[fill='${No.iN.primary}']`]:{fill:jn.colorError}}},[`${Pi}-uploading`]:{borderStyle:"dashed",[`${Pi}-name`]:{marginBottom:Ji}}},[`${so}${so}-picture-circle ${Pi}`]:{[`&, &::before, ${Pi}-thumbnail`]:{borderRadius:"50%"}}}}},yt=jn=>{const{componentCls:yr,iconCls:ai,fontSizeLG:hi,colorTextLightSolid:Ji}=jn,so=`${yr}-list`,Pi=`${so}-item`,us=jn.uploadPicCardSize;return{[` - ${yr}-wrapper${yr}-picture-card-wrapper, - ${yr}-wrapper${yr}-picture-circle-wrapper - `]:Object.assign(Object.assign({},(0,Bn.dF)()),{display:"inline-block",width:"100%",[`${yr}${yr}-select`]:{width:us,height:us,marginInlineEnd:jn.marginXS,marginBottom:jn.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:jn.colorFillAlter,border:`${jn.lineWidth}px dashed ${jn.colorBorder}`,borderRadius:jn.borderRadiusLG,cursor:"pointer",transition:`border-color ${jn.motionDurationSlow}`,[`> ${yr}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${yr}-disabled):hover`]:{borderColor:jn.colorPrimary}},[`${so}${so}-picture-card, ${so}${so}-picture-circle`]:{[`${so}-item-container`]:{display:"inline-block",width:us,height:us,marginBlock:`0 ${jn.marginXS}px`,marginInline:`0 ${jn.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Pi]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${jn.paddingXS*2}px)`,height:`calc(100% - ${jn.paddingXS*2}px)`,backgroundColor:jn.colorBgMask,opacity:0,transition:`all ${jn.motionDurationSlow}`,content:'" "'}},[`${Pi}:hover`]:{[`&::before, ${Pi}-actions`]:{opacity:1}},[`${Pi}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${jn.motionDurationSlow}`,[`${ai}-eye, ${ai}-download, ${ai}-delete`]:{zIndex:10,width:hi,margin:`0 ${jn.marginXXS}px`,fontSize:hi,cursor:"pointer",transition:`all ${jn.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Pi}-actions, ${Pi}-actions:hover`]:{[`${ai}-eye, ${ai}-download, ${ai}-delete`]:{color:new dn.C(Ji).setAlpha(.65).toRgbString(),"&:hover":{color:Ji}}},[`${Pi}-thumbnail, ${Pi}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Pi}-name`]:{display:"none",textAlign:"center"},[`${Pi}-file + ${Pi}-name`]:{position:"absolute",bottom:jn.margin,display:"block",width:`calc(100% - ${jn.paddingXS*2}px)`},[`${Pi}-uploading`]:{[`&${Pi}`]:{backgroundColor:jn.colorFillAlter},[`&::before, ${ai}-eye, ${ai}-download, ${ai}-delete`]:{display:"none"}},[`${Pi}-progress`]:{bottom:jn.marginXL,width:`calc(100% - ${jn.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${yr}-wrapper${yr}-picture-circle-wrapper`]:{[`${yr}${yr}-select`]:{borderRadius:"50%"}}}};var Wt=jn=>{const{componentCls:yr}=jn;return{[`${yr}-rtl`]:{direction:"rtl"}}};const sn=jn=>{const{componentCls:yr,colorTextDisabled:ai}=jn;return{[`${yr}-wrapper`]:Object.assign(Object.assign({},(0,Bn.Wf)(jn)),{[yr]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${yr}-select`]:{display:"inline-block"},[`${yr}-disabled`]:{color:ai,cursor:"not-allowed"}})}};var Ot=(0,ri.Z)("Upload",jn=>{const{fontSizeHeading3:yr,fontSize:ai,lineHeight:hi,lineWidth:Ji,controlHeightLG:so}=jn,Pi=Math.round(ai*hi),us=(0,gi.TS)(jn,{uploadThumbnailSize:yr*2,uploadProgressOffset:Pi/2+Ji,uploadPicCardSize:so*2.55});return[sn(us),To(us),Ve(us),yt(us),Bo(us),ji(us),Wt(us),(0,Lr.Z)(us)]},jn=>({actionsColor:jn.colorTextDescription})),Tt={icon:function(yr,ai){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:ai}},{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:yr}}]}},name:"file",theme:"twotone"},bt=Tt,Ht=m(91851),zn=function(yr,ai){return y.createElement(Ht.Z,(0,N.Z)({},yr,{ref:ai,icon:bt}))},en=y.forwardRef(zn),fr=m(38521),Kr={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"},ii=Kr,si=function(yr,ai){return y.createElement(Ht.Z,(0,N.Z)({},yr,{ref:ai,icon:ii}))},uo=y.forwardRef(si),Qo={icon:function(yr,ai){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:yr}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:ai}},{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:ai}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:ai}},{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:yr}}]}},name:"picture",theme:"twotone"},_n=Qo,Vr=function(yr,ai){return y.createElement(Ht.Z,(0,N.Z)({},yr,{ref:ai,icon:_n}))},qr=y.forwardRef(Vr),Ui=m(44516),xo=m(73962),Us=m(26612),$n=m(99486),Kn=m(38115);function Fr(jn){return Object.assign(Object.assign({},jn),{lastModified:jn.lastModified,lastModifiedDate:jn.lastModifiedDate,name:jn.name,size:jn.size,type:jn.type,uid:jn.uid,percent:0,originFileObj:jn})}function mi(jn,yr){const ai=(0,I.Z)(yr),hi=ai.findIndex(Ji=>{let{uid:so}=Ji;return so===jn.uid});return hi===-1?ai.push(jn):ai[hi]=jn,ai}function Tr(jn,yr){const ai=jn.uid!==void 0?"uid":"name";return yr.filter(hi=>hi[ai]===jn[ai])[0]}function ti(jn,yr){const ai=jn.uid!==void 0?"uid":"name",hi=yr.filter(Ji=>Ji[ai]!==jn[ai]);return hi.length===yr.length?null:hi}const di=function(){const yr=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),hi=yr[yr.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(hi)||[""])[0]},rn=jn=>jn.indexOf("image/")===0,Qn=jn=>{if(jn.type&&!jn.thumbUrl)return rn(jn.type);const yr=jn.thumbUrl||jn.url||"",ai=di(yr);return/^data:image\//.test(yr)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(ai)?!0:!(/^data:/.test(yr)||ai)},Xr=200;function ao(jn){return new Promise(yr=>{if(!jn.type||!rn(jn.type)){yr("");return}const ai=document.createElement("canvas");ai.width=Xr,ai.height=Xr,ai.style.cssText=`position: fixed; left: 0; top: 0; width: ${Xr}px; height: ${Xr}px; z-index: 9999; display: none;`,document.body.appendChild(ai);const hi=ai.getContext("2d"),Ji=new Image;if(Ji.onload=()=>{const{width:so,height:Pi}=Ji;let us=Xr,ga=Xr,$a=0,dl=0;so>Pi?(ga=Pi*(Xr/so),dl=-(ga-us)/2):(us=so*(Xr/Pi),$a=-(us-ga)/2),hi.drawImage(Ji,$a,dl,us,ga);const Hl=ai.toDataURL();document.body.removeChild(ai),window.URL.revokeObjectURL(Ji.src),yr(Hl)},Ji.crossOrigin="anonymous",jn.type.startsWith("image/svg+xml")){const so=new FileReader;so.onload=()=>{so.result&&(Ji.src=so.result)},so.readAsDataURL(jn)}else if(jn.type.startsWith("image/gif")){const so=new FileReader;so.onload=()=>{so.result&&yr(so.result)},so.readAsDataURL(jn)}else Ji.src=window.URL.createObjectURL(jn)})}var as=m(77364),Bt=function(yr,ai){return y.createElement(Ht.Z,(0,N.Z)({},yr,{ref:ai,icon:as.Z}))},pn=y.forwardRef(Bt),xr={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"},Jr=xr,vi=function(yr,ai){return y.createElement(Ht.Z,(0,N.Z)({},yr,{ref:ai,icon:Jr}))},Ti=y.forwardRef(vi),co=m(15997),Qr=m(95934),oi=m(75769),Zi=m(48796),Ir=m(49934),tn=m(39029),Gn=m(74710),Ei={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ln=function(){var yr=(0,y.useRef)([]),ai=(0,y.useRef)(null);return(0,y.useEffect)(function(){var hi=Date.now(),Ji=!1;yr.current.forEach(function(so){if(so){Ji=!0;var Pi=so.style;Pi.transitionDuration=".3s, .3s, .3s, .06s",ai.current&&hi-ai.current<100&&(Pi.transitionDuration="0s, 0s")}}),Ji&&(ai.current=Date.now())}),yr.current},Ii=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],nr=function(yr){var ai=(0,Gn.Z)((0,Gn.Z)({},Ei),yr),hi=ai.className,Ji=ai.percent,so=ai.prefixCls,Pi=ai.strokeColor,us=ai.strokeLinecap,ga=ai.strokeWidth,$a=ai.style,dl=ai.trailColor,Hl=ai.trailWidth,Ml=ai.transition,Za=(0,P.Z)(ai,Ii);delete Za.gapPosition;var Pu=Array.isArray(Ji)?Ji:[Ji],ea=Array.isArray(Pi)?Pi:[Pi],Qa=Ln(),el=ga/2,Ul=100-ga/2,ql="M ".concat(us==="round"?el:0,",").concat(el,` - L `).concat(us==="round"?Ul:100,",").concat(el),vu="0 0 100 ".concat(ga),au=0;return y.createElement("svg",(0,N.Z)({className:k()("".concat(so,"-line"),hi),viewBox:vu,preserveAspectRatio:"none",style:$a},Za),y.createElement("path",{className:"".concat(so,"-line-trail"),d:ql,strokeLinecap:us,stroke:dl,strokeWidth:Hl||ga,fillOpacity:"0"}),Pu.map(function(Cn,Eu){var ls=1;switch(us){case"round":ls=1-ga/100;break;case"square":ls=1-ga/2/100;break;default:ls=1;break}var Ks={strokeDasharray:"".concat(Cn*ls,"px, 100px"),strokeDashoffset:"-".concat(au,"px"),transition:Ml||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},xa=ea[Eu]||ea[ea.length-1];return au+=Cn,y.createElement("path",{key:Eu,className:"".concat(so,"-line-path"),d:ql,strokeLinecap:us,stroke:xa,strokeWidth:ga,fillOpacity:"0",ref:function(El){Qa[Eu]=El},style:Ks})}))},wi=nr,Mi=m(39718),Rr=m(53261),Xn=0,ms=(0,Rr.Z)();function ya(){var jn;return ms?(jn=Xn,Xn+=1):jn="TEST_OR_SSR",jn}var fa=function(jn){var yr=y.useState(),ai=(0,Mi.Z)(yr,2),hi=ai[0],Ji=ai[1];return y.useEffect(function(){Ji("rc_progress_".concat(ya()))},[]),jn||hi},Ws=function(yr){var ai=yr.bg,hi=yr.children;return y.createElement("div",{style:{width:"100%",height:"100%",background:ai}},hi)};function Ua(jn,yr){return Object.keys(jn).map(function(ai){var hi=parseFloat(ai),Ji="".concat(Math.floor(hi*yr),"%");return"".concat(jn[ai]," ").concat(Ji)})}var Ao=y.forwardRef(function(jn,yr){var ai=jn.prefixCls,hi=jn.color,Ji=jn.gradientId,so=jn.radius,Pi=jn.style,us=jn.ptg,ga=jn.strokeLinecap,$a=jn.strokeWidth,dl=jn.size,Hl=jn.gapDegree,Ml=hi&&(0,te.Z)(hi)==="object",Za=Ml?"#FFF":void 0,Pu=dl/2,ea=y.createElement("circle",{className:"".concat(ai,"-circle-path"),r:so,cx:Pu,cy:Pu,stroke:Za,strokeLinecap:ga,strokeWidth:$a,opacity:us===0?0:1,style:Pi,ref:yr});if(!Ml)return ea;var Qa="".concat(Ji,"-conic"),el=Hl?"".concat(180+Hl/2,"deg"):"0deg",Ul=Ua(hi,(360-Hl)/360),ql=Ua(hi,1),vu="conic-gradient(from ".concat(el,", ").concat(Ul.join(", "),")"),au="linear-gradient(to ".concat(Hl?"bottom":"top",", ").concat(ql.join(", "),")");return y.createElement(y.Fragment,null,y.createElement("mask",{id:Qa},ea),y.createElement("foreignObject",{x:0,y:0,width:dl,height:dl,mask:"url(#".concat(Qa,")")},y.createElement(Ws,{bg:au},y.createElement(Ws,{bg:vu}))))}),cl=Ao,$r=100,er=function(yr,ai,hi,Ji,so,Pi,us,ga,$a,dl){var Hl=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ml=hi/100*360*((360-Pi)/360),Za=Pi===0?0:{bottom:0,top:180,left:90,right:-90}[us],Pu=(100-Ji)/100*ai;$a==="round"&&Ji!==100&&(Pu+=dl/2,Pu>=ai&&(Pu=ai-.01));var ea=$r/2;return{stroke:typeof ga=="string"?ga:void 0,strokeDasharray:"".concat(ai,"px ").concat(yr),strokeDashoffset:Pu+Hl,transform:"rotate(".concat(so+Ml+Za,"deg)"),transformOrigin:"".concat(ea,"px ").concat(ea,"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}},Dr=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function pr(jn){var yr=jn!=null?jn:[];return Array.isArray(yr)?yr:[yr]}var ci=function(yr){var ai=(0,Gn.Z)((0,Gn.Z)({},Ei),yr),hi=ai.id,Ji=ai.prefixCls,so=ai.steps,Pi=ai.strokeWidth,us=ai.trailWidth,ga=ai.gapDegree,$a=ga===void 0?0:ga,dl=ai.gapPosition,Hl=ai.trailColor,Ml=ai.strokeLinecap,Za=ai.style,Pu=ai.className,ea=ai.strokeColor,Qa=ai.percent,el=(0,P.Z)(ai,Dr),Ul=$r/2,ql=fa(hi),vu="".concat(ql,"-gradient"),au=Ul-Pi/2,Cn=Math.PI*2*au,Eu=$a>0?90+$a/2:-90,ls=Cn*((360-$a)/360),Ks=(0,te.Z)(so)==="object"?so:{count:so,space:2},xa=Ks.count,Il=Ks.space,El=pr(Qa),ml=pr(ea),fu=ml.find(function(Kd){return Kd&&(0,te.Z)(Kd)==="object"}),Nu=fu&&(0,te.Z)(fu)==="object",lc=Nu?"butt":Ml,Ic=er(Cn,ls,0,100,Eu,$a,dl,Hl,lc,Pi),Vc=Ln(),zd=function(){var ad=0;return El.map(function(ku,Fc){var dd=ml[Fc]||ml[ml.length-1],vd=er(Cn,ls,ad,ku,Eu,$a,dl,dd,lc,Pi);return ad+=ku,y.createElement(cl,{key:Fc,color:dd,ptg:ku,radius:au,prefixCls:Ji,gradientId:vu,style:vd,strokeLinecap:lc,strokeWidth:Pi,gapDegree:$a,ref:function(th){Vc[Fc]=th},size:$r})}).reverse()},eh=function(){var ad=Math.round(xa*(El[0]/100)),ku=100/xa,Fc=0;return new Array(xa).fill(null).map(function(dd,vd){var Xd=vd<=ad-1?ml[0]:Hl,th=Xd&&(0,te.Z)(Xd)==="object"?"url(#".concat(vu,")"):void 0,jd=er(Cn,ls,Fc,ku,Eu,$a,dl,Xd,"butt",Pi,Il);return Fc+=(ls-jd.strokeDashoffset+Il)*100/ls,y.createElement("circle",{key:vd,className:"".concat(Ji,"-circle-path"),r:au,cx:Ul,cy:Ul,stroke:th,strokeWidth:Pi,opacity:1,style:jd,ref:function(id){Vc[vd]=id}})})};return y.createElement("svg",(0,N.Z)({className:k()("".concat(Ji,"-circle"),Pu),viewBox:"0 0 ".concat($r," ").concat($r),style:Za,id:hi,role:"presentation"},el),!xa&&y.createElement("circle",{className:"".concat(Ji,"-circle-trail"),r:au,cx:Ul,cy:Ul,stroke:Hl,strokeLinecap:lc,strokeWidth:us||Pi,style:Ic}),xa?eh():zd())},Eo=ci,mo={Line:wi,Circle:Eo},Ts=m(16175);function xs(jn){return!jn||jn<0?0:jn>100?100:jn}function Er(jn){let{success:yr,successPercent:ai}=jn,hi=ai;return yr&&"progress"in yr&&(hi=yr.progress),yr&&"percent"in yr&&(hi=yr.percent),hi}const ui=jn=>{let{percent:yr,success:ai,successPercent:hi}=jn;const Ji=xs(Er({success:ai,successPercent:hi}));return[Ji,xs(xs(yr)-Ji)]},Xt=jn=>{let{success:yr={},strokeColor:ai}=jn;const{strokeColor:hi}=yr;return[hi||No.ez.green,ai||null]},gn=(jn,yr,ai)=>{var hi,Ji,so,Pi;let us=-1,ga=-1;if(yr==="step"){const $a=ai.steps,dl=ai.strokeWidth;typeof jn=="string"||typeof jn=="undefined"?(us=jn==="small"?2:14,ga=dl!=null?dl:8):typeof jn=="number"?[us,ga]=[jn,jn]:[us=14,ga=8]=jn,us*=$a}else if(yr==="line"){const $a=ai==null?void 0:ai.strokeWidth;typeof jn=="string"||typeof jn=="undefined"?ga=$a||(jn==="small"?6:8):typeof jn=="number"?[us,ga]=[jn,jn]:[us=-1,ga=8]=jn}else(yr==="circle"||yr==="dashboard")&&(typeof jn=="string"||typeof jn=="undefined"?[us,ga]=jn==="small"?[60,60]:[120,120]:typeof jn=="number"?[us,ga]=[jn,jn]:(us=(Ji=(hi=jn[0])!==null&&hi!==void 0?hi:jn[1])!==null&&Ji!==void 0?Ji:120,ga=(Pi=(so=jn[0])!==null&&so!==void 0?so:jn[1])!==null&&Pi!==void 0?Pi:120));return[us,ga]},En=3,tt=jn=>En/jn*100;var gt=jn=>{const{prefixCls:yr,trailColor:ai=null,strokeLinecap:hi="round",gapPosition:Ji,gapDegree:so,width:Pi=120,type:us,children:ga,success:$a,size:dl=Pi}=jn,[Hl,Ml]=gn(dl,"circle");let{strokeWidth:Za}=jn;Za===void 0&&(Za=Math.max(tt(Hl),6));const Pu={width:Hl,height:Ml,fontSize:Hl*.15+6},ea=y.useMemo(()=>{if(so||so===0)return so;if(us==="dashboard")return 75},[so,us]),Qa=Ji||us==="dashboard"&&"bottom"||void 0,el=Object.prototype.toString.call(jn.strokeColor)==="[object Object]",Ul=Xt({success:$a,strokeColor:jn.strokeColor}),ql=k()(`${yr}-inner`,{[`${yr}-circle-gradient`]:el}),vu=y.createElement(Eo,{percent:ui(jn),strokeWidth:Za,trailWidth:Za,strokeColor:Ul,strokeLinecap:hi,trailColor:ai,prefixCls:yr,gapDegree:ea,gapPosition:Qa});return y.createElement("div",{className:ql,style:Pu},Hl<=20?y.createElement(Ts.Z,{title:ga},y.createElement("span",null,vu)):y.createElement(y.Fragment,null,vu,ga))},Re=function(jn,yr){var ai={};for(var hi in jn)Object.prototype.hasOwnProperty.call(jn,hi)&&yr.indexOf(hi)<0&&(ai[hi]=jn[hi]);if(jn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ji=0,hi=Object.getOwnPropertySymbols(jn);Ji{let yr=[];return Object.keys(jn).forEach(ai=>{const hi=parseFloat(ai.replace(/%/g,""));isNaN(hi)||yr.push({key:hi,value:jn[ai]})}),yr=yr.sort((ai,hi)=>ai.key-hi.key),yr.map(ai=>{let{key:hi,value:Ji}=ai;return`${Ji} ${hi}%`}).join(", ")},St=(jn,yr)=>{const{from:ai=No.ez.blue,to:hi=No.ez.blue,direction:Ji=yr==="rtl"?"to left":"to right"}=jn,so=Re(jn,["from","to","direction"]);if(Object.keys(so).length!==0){const Pi=lt(so);return{backgroundImage:`linear-gradient(${Ji}, ${Pi})`}}return{backgroundImage:`linear-gradient(${Ji}, ${ai}, ${hi})`}};var Vn=jn=>{const{prefixCls:yr,direction:ai,percent:hi,size:Ji,strokeWidth:so,strokeColor:Pi,strokeLinecap:us="round",children:ga,trailColor:$a=null,success:dl}=jn,Hl=Pi&&typeof Pi!="string"?St(Pi,ai):{backgroundColor:Pi},Ml=us==="square"||us==="butt"?0:void 0,Za={backgroundColor:$a||void 0,borderRadius:Ml},Pu=Ji!=null?Ji:[-1,so||(Ji==="small"?6:8)],[ea,Qa]=gn(Pu,"line",{strokeWidth:so}),el=Object.assign({width:`${xs(hi)}%`,height:Qa,borderRadius:Ml},Hl),Ul=Er(jn),ql={width:`${xs(Ul)}%`,height:Qa,borderRadius:Ml,backgroundColor:dl==null?void 0:dl.strokeColor},vu={width:ea<0?"100%":ea,height:Qa};return y.createElement(y.Fragment,null,y.createElement("div",{className:`${yr}-outer`,style:vu},y.createElement("div",{className:`${yr}-inner`,style:Za},y.createElement("div",{className:`${yr}-bg`,style:el}),Ul!==void 0?y.createElement("div",{className:`${yr}-success-bg`,style:ql}):null)),ga)},ki=jn=>{const{size:yr,steps:ai,percent:hi=0,strokeWidth:Ji=8,strokeColor:so,trailColor:Pi=null,prefixCls:us,children:ga}=jn,$a=Math.round(ai*(hi/100)),dl=yr==="small"?2:14,Hl=yr!=null?yr:[dl,Ji],[Ml,Za]=gn(Hl,"step",{steps:ai,strokeWidth:Ji}),Pu=Ml/ai,ea=new Array(ai);for(let Qa=0;Qa{const yr=jn?"100%":"-100%";return new fs.E4(`antProgress${jn?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${yr}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${yr}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ki=jn=>{const{componentCls:yr,iconCls:ai}=jn;return{[yr]:Object.assign(Object.assign({},(0,Bn.Wf)(jn)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:jn.fontSize,marginInlineEnd:jn.marginXS,marginBottom:jn.marginXS},[`${yr}-outer`]:{display:"inline-block",width:"100%"},[`&${yr}-show-info`]:{[`${yr}-outer`]:{marginInlineEnd:`calc(-2em - ${jn.marginXS}px)`,paddingInlineEnd:`calc(2em + ${jn.paddingXS}px)`}},[`${yr}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:jn.remainingColor,borderRadius:jn.lineBorderRadius},[`${yr}-inner:not(${yr}-circle-gradient)`]:{[`${yr}-circle-path`]:{stroke:jn.defaultColor}},[`${yr}-success-bg, ${yr}-bg`]:{position:"relative",backgroundColor:jn.defaultColor,borderRadius:jn.lineBorderRadius,transition:`all ${jn.motionDurationSlow} ${jn.motionEaseInOutCirc}`},[`${yr}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:jn.colorSuccess},[`${yr}-text`]:{display:"inline-block",width:"2em",marginInlineStart:jn.marginXS,color:jn.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ai]:{fontSize:jn.fontSize}},[`&${yr}-status-active`]:{[`${yr}-bg::before`]:{position:"absolute",inset:0,backgroundColor:jn.colorBgContainer,borderRadius:jn.lineBorderRadius,opacity:0,animationName:Vi(),animationDuration:jn.progressActiveMotionDuration,animationTimingFunction:jn.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${yr}-rtl${yr}-status-active`]:{[`${yr}-bg::before`]:{animationName:Vi(!0)}},[`&${yr}-status-exception`]:{[`${yr}-bg`]:{backgroundColor:jn.colorError},[`${yr}-text`]:{color:jn.colorError}},[`&${yr}-status-exception ${yr}-inner:not(${yr}-circle-gradient)`]:{[`${yr}-circle-path`]:{stroke:jn.colorError}},[`&${yr}-status-success`]:{[`${yr}-bg`]:{backgroundColor:jn.colorSuccess},[`${yr}-text`]:{color:jn.colorSuccess}},[`&${yr}-status-success ${yr}-inner:not(${yr}-circle-gradient)`]:{[`${yr}-circle-path`]:{stroke:jn.colorSuccess}}})}},ps=jn=>{const{componentCls:yr,iconCls:ai}=jn;return{[yr]:{[`${yr}-circle-trail`]:{stroke:jn.remainingColor},[`&${yr}-circle ${yr}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${yr}-circle ${yr}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:jn.circleTextColor,fontSize:jn.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ai]:{fontSize:`${jn.fontSize/jn.fontSizeSM}em`}},[`${yr}-circle&-status-exception`]:{[`${yr}-text`]:{color:jn.colorError}},[`${yr}-circle&-status-success`]:{[`${yr}-text`]:{color:jn.colorSuccess}}},[`${yr}-inline-circle`]:{lineHeight:1,[`${yr}-inner`]:{verticalAlign:"bottom"}}}},Ns=jn=>{const{componentCls:yr}=jn;return{[yr]:{[`${yr}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:jn.progressStepMinWidth,marginInlineEnd:jn.progressStepMarginInlineEnd,backgroundColor:jn.remainingColor,transition:`all ${jn.motionDurationSlow}`,"&-active":{backgroundColor:jn.defaultColor}}}}}},Bs=jn=>{const{componentCls:yr,iconCls:ai}=jn;return{[yr]:{[`${yr}-small&-line, ${yr}-small&-line ${yr}-text ${ai}`]:{fontSize:jn.fontSizeSM}}}};var _a=(0,ri.Z)("Progress",jn=>{const yr=jn.marginXXS/2,ai=(0,gi.TS)(jn,{progressStepMarginInlineEnd:yr,progressStepMinWidth:yr,progressActiveMotionDuration:"2.4s"});return[Ki(ai),ps(ai),Ns(ai),Bs(ai)]},jn=>({circleTextColor:jn.colorText,defaultColor:jn.colorInfo,remainingColor:jn.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),oo=function(jn,yr){var ai={};for(var hi in jn)Object.prototype.hasOwnProperty.call(jn,hi)&&yr.indexOf(hi)<0&&(ai[hi]=jn[hi]);if(jn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ji=0,hi=Object.getOwnPropertySymbols(jn);Ji{const{prefixCls:ai,className:hi,rootClassName:Ji,steps:so,strokeColor:Pi,percent:us=0,size:ga="default",showInfo:$a=!0,type:dl="line",status:Hl,format:Ml,style:Za}=jn,Pu=oo(jn,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),ea=y.useMemo(()=>{var El,ml;const fu=Er(jn);return parseInt(fu!==void 0?(El=fu!=null?fu:0)===null||El===void 0?void 0:El.toString():(ml=us!=null?us:0)===null||ml===void 0?void 0:ml.toString(),10)},[us,jn.success,jn.successPercent]),Qa=y.useMemo(()=>!oa.includes(Hl)&&ea>=100?"success":Hl||"normal",[Hl,ea]),{getPrefixCls:el,direction:Ul,progress:ql}=y.useContext(ft.E_),vu=el("progress",ai),[au,Cn]=_a(vu),Eu=y.useMemo(()=>{if(!$a)return null;const El=Er(jn);let ml;const fu=Ml||(lc=>`${lc}%`),Nu=dl==="line";return Ml||Qa!=="exception"&&Qa!=="success"?ml=fu(xs(us),xs(El)):Qa==="exception"?ml=Nu?y.createElement(Zi.Z,null):y.createElement(Ir.Z,null):Qa==="success"&&(ml=Nu?y.createElement(Qr.Z,null):y.createElement(oi.Z,null)),y.createElement("span",{className:`${vu}-text`,title:typeof ml=="string"?ml:void 0},ml)},[$a,us,ea,Qa,dl,vu,Ml]),ls=Array.isArray(Pi)?Pi[0]:Pi,Ks=typeof Pi=="string"||Array.isArray(Pi)?Pi:void 0;let xa;dl==="line"?xa=so?y.createElement(ki,Object.assign({},jn,{strokeColor:Ks,prefixCls:vu,steps:so}),Eu):y.createElement(Vn,Object.assign({},jn,{strokeColor:ls,prefixCls:vu,direction:Ul}),Eu):(dl==="circle"||dl==="dashboard")&&(xa=y.createElement(gt,Object.assign({},jn,{strokeColor:ls,prefixCls:vu,progressStatus:Qa}),Eu));const Il=k()(vu,`${vu}-status-${Qa}`,`${vu}-${dl==="dashboard"&&"circle"||so&&"steps"||dl}`,{[`${vu}-inline-circle`]:dl==="circle"&&gn(ga,"circle")[0]<=20,[`${vu}-show-info`]:$a,[`${vu}-${ga}`]:typeof ga=="string",[`${vu}-rtl`]:Ul==="rtl"},ql==null?void 0:ql.className,hi,Ji,Cn);return au(y.createElement("div",Object.assign({ref:yr,style:Object.assign(Object.assign({},ql==null?void 0:ql.style),Za),className:Il,role:"progressbar","aria-valuenow":ea},(0,tn.Z)(Pu,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),xa))}),Fa=Bl,ua=y.forwardRef((jn,yr)=>{let{prefixCls:ai,className:hi,style:Ji,locale:so,listType:Pi,file:us,items:ga,progress:$a,iconRender:dl,actionIconRender:Hl,itemRender:Ml,isImgUrl:Za,showPreviewIcon:Pu,showRemoveIcon:ea,showDownloadIcon:Qa,previewIcon:el,removeIcon:Ul,downloadIcon:ql,onPreview:vu,onDownload:au,onClose:Cn}=jn;var Eu,ls;const{status:Ks}=us,[xa,Il]=y.useState(Ks);y.useEffect(()=>{Ks!=="removed"&&Il(Ks)},[Ks]);const[El,ml]=y.useState(!1);y.useEffect(()=>{const id=setTimeout(()=>{ml(!0)},300);return()=>{clearTimeout(id)}},[]);const fu=dl(us);let Nu=y.createElement("div",{className:`${ai}-icon`},fu);if(Pi==="picture"||Pi==="picture-card"||Pi==="picture-circle")if(xa==="uploading"||!us.thumbUrl&&!us.url){const id=k()(`${ai}-list-item-thumbnail`,{[`${ai}-list-item-file`]:xa!=="uploading"});Nu=y.createElement("div",{className:id},fu)}else{const id=Za!=null&&Za(us)?y.createElement("img",{src:us.thumbUrl||us.url,alt:us.name,className:`${ai}-list-item-image`,crossOrigin:us.crossOrigin}):fu,nd=k()(`${ai}-list-item-thumbnail`,{[`${ai}-list-item-file`]:Za&&!Za(us)});Nu=y.createElement("a",{className:nd,onClick:Pf=>vu(us,Pf),href:us.url||us.thumbUrl,target:"_blank",rel:"noopener noreferrer"},id)}const lc=k()(`${ai}-list-item`,`${ai}-list-item-${xa}`),Ic=typeof us.linkProps=="string"?JSON.parse(us.linkProps):us.linkProps,Vc=ea?Hl((typeof Ul=="function"?Ul(us):Ul)||y.createElement(pn,null),()=>Cn(us),ai,so.removeFile):null,zd=Qa&&xa==="done"?Hl((typeof ql=="function"?ql(us):ql)||y.createElement(Ti,null),()=>au(us),ai,so.downloadFile):null,eh=Pi!=="picture-card"&&Pi!=="picture-circle"&&y.createElement("span",{key:"download-delete",className:k()(`${ai}-list-item-actions`,{picture:Pi==="picture"})},zd,Vc),Kd=k()(`${ai}-list-item-name`),ad=us.url?[y.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Kd,title:us.name},Ic,{href:us.url,onClick:id=>vu(us,id)}),us.name),eh]:[y.createElement("span",{key:"view",className:Kd,onClick:id=>vu(us,id),title:us.name},us.name),eh],ku={pointerEvents:"none",opacity:.5},Fc=Pu?y.createElement("a",{href:us.url||us.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:us.url||us.thumbUrl?void 0:ku,onClick:id=>vu(us,id),title:so.previewFile},typeof el=="function"?el(us):el||y.createElement(co.Z,null)):null,dd=(Pi==="picture-card"||Pi==="picture-circle")&&xa!=="uploading"&&y.createElement("span",{className:`${ai}-list-item-actions`},Fc,xa==="done"&&zd,Vc),{getPrefixCls:vd}=y.useContext(ft.E_),Xd=vd(),th=y.createElement("div",{className:lc},Nu,ad,dd,El&&y.createElement(Ui.ZP,{motionName:`${Xd}-fade`,visible:xa==="uploading",motionDeadline:2e3},id=>{let{className:nd}=id;const Pf="percent"in us?y.createElement(Fa,Object.assign({},$a,{type:"line",percent:us.percent,"aria-label":us["aria-label"],"aria-labelledby":us["aria-labelledby"]})):null;return y.createElement("div",{className:k()(`${ai}-list-item-progress`,nd)},Pf)})),jd=us.response&&typeof us.response=="string"?us.response:((Eu=us.error)===null||Eu===void 0?void 0:Eu.statusText)||((ls=us.error)===null||ls===void 0?void 0:ls.message)||so.uploadError,vh=xa==="error"?y.createElement(Ts.Z,{title:jd,getPopupContainer:id=>id.parentNode},th):th;return y.createElement("div",{className:k()(`${ai}-list-item-container`,hi),style:Ji,ref:yr},Ml?Ml(vh,us,ga,{download:au.bind(null,us),preview:vu.bind(null,us),remove:Cn.bind(null,us)}):vh)});const Nl=(jn,yr)=>{const{listType:ai="text",previewFile:hi=ao,onPreview:Ji,onDownload:so,onRemove:Pi,locale:us,iconRender:ga,isImageUrl:$a=Qn,prefixCls:dl,items:Hl=[],showPreviewIcon:Ml=!0,showRemoveIcon:Za=!0,showDownloadIcon:Pu=!1,removeIcon:ea,previewIcon:Qa,downloadIcon:el,progress:Ul={size:[-1,2],showInfo:!1},appendAction:ql,appendActionVisible:vu=!0,itemRender:au,disabled:Cn}=jn,Eu=(0,xo.Z)(),[ls,Ks]=y.useState(!1);y.useEffect(()=>{ai!=="picture"&&ai!=="picture-card"&&ai!=="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="",hi&&hi(ku.originFileObj).then(Fc=>{ku.thumbUrl=Fc||"",Eu()}))})},[ai,Hl,hi]),y.useEffect(()=>{Ks(!0)},[]);const xa=(ku,Fc)=>{if(Ji)return Fc==null||Fc.preventDefault(),Ji(ku)},Il=ku=>{typeof so=="function"?so(ku):ku.url&&window.open(ku.url)},El=ku=>{Pi==null||Pi(ku)},ml=ku=>{if(ga)return ga(ku,ai);const Fc=ku.status==="uploading",dd=$a&&$a(ku)?y.createElement(qr,null):y.createElement(en,null);let vd=Fc?y.createElement(fr.Z,null):y.createElement(uo,null);return ai==="picture"?vd=Fc?y.createElement(fr.Z,null):dd:(ai==="picture-card"||ai==="picture-circle")&&(vd=Fc?us.uploading:dd),vd},fu=(ku,Fc,dd,vd)=>{const Xd={type:"text",size:"small",title:vd,onClick:th=>{Fc(),(0,$n.l$)(ku)&&ku.props.onClick&&ku.props.onClick(th)},className:`${dd}-list-item-action`,disabled:Cn};if((0,$n.l$)(ku)){const th=(0,$n.Tm)(ku,Object.assign(Object.assign({},ku.props),{onClick:()=>{}}));return y.createElement(Kn.ZP,Object.assign({},Xd,{icon:th}))}return y.createElement(Kn.ZP,Object.assign({},Xd),y.createElement("span",null,ku))};y.useImperativeHandle(yr,()=>({handlePreview:xa,handleDownload:Il}));const{getPrefixCls:Nu}=y.useContext(ft.E_),lc=Nu("upload",dl),Ic=Nu(),Vc=k()(`${lc}-list`,`${lc}-list-${ai}`),zd=(0,I.Z)(Hl.map(ku=>({key:ku.uid,file:ku})));let Kd={motionDeadline:2e3,motionName:`${lc}-${ai==="picture-card"||ai==="picture-circle"?"animate-inline":"animate"}`,keys:zd,motionAppear:ls};const ad=y.useMemo(()=>{const ku=Object.assign({},(0,Us.Z)(Ic));return delete ku.onAppearEnd,delete ku.onEnterEnd,delete ku.onLeaveEnd,ku},[Ic]);return ai!=="picture-card"&&ai!=="picture-circle"&&(Kd=Object.assign(Object.assign({},ad),Kd)),y.createElement("div",{className:Vc},y.createElement(Ui.V4,Object.assign({},Kd,{component:!1}),ku=>{let{key:Fc,file:dd,className:vd,style:Xd}=ku;return y.createElement(ua,{key:Fc,locale:us,prefixCls:lc,className:vd,style:Xd,file:dd,items:Hl,progress:Ul,listType:ai,isImgUrl:$a,showPreviewIcon:Ml,showRemoveIcon:Za,showDownloadIcon:Pu,removeIcon:ea,previewIcon:Qa,downloadIcon:el,iconRender:ml,actionIconRender:fu,itemRender:au,onPreview:xa,onDownload:Il,onClose:El})}),ql&&y.createElement(Ui.ZP,Object.assign({},Kd,{visible:vu,forceRender:!0}),ku=>{let{className:Fc,style:dd}=ku;return(0,$n.Tm)(ql,vd=>({className:k()(vd.className,Fc),style:Object.assign(Object.assign(Object.assign({},dd),{pointerEvents:Fc?"none":void 0}),vd.style)}))}))};var Hi=y.forwardRef(Nl),eo=function(jn,yr,ai,hi){function Ji(so){return so instanceof ai?so:new ai(function(Pi){Pi(so)})}return new(ai||(ai=Promise))(function(so,Pi){function us(dl){try{$a(hi.next(dl))}catch(Hl){Pi(Hl)}}function ga(dl){try{$a(hi.throw(dl))}catch(Hl){Pi(Hl)}}function $a(dl){dl.done?so(dl.value):Ji(dl.value).then(us,ga)}$a((hi=hi.apply(jn,yr||[])).next())})};const sa=`__LIST_IGNORE_${Date.now()}__`,Cs=(jn,yr)=>{const{fileList:ai,defaultFileList:hi,onRemove:Ji,showUploadList:so=!0,listType:Pi="text",onPreview:us,onDownload:ga,onChange:$a,onDrop:dl,previewFile:Hl,disabled:Ml,locale:Za,iconRender:Pu,isImageUrl:ea,progress:Qa,prefixCls:el,className:Ul,type:ql="select",children:vu,style:au,itemRender:Cn,maxCount:Eu,data:ls={},multiple:Ks=!1,action:xa="",accept:Il="",supportServerRender:El=!0,rootClassName:ml}=jn,fu=y.useContext(zt.Z),Nu=Ml!=null?Ml:fu,[lc,Ic]=(0,Ct.Z)(hi||[],{value:ai,postState:wd=>wd!=null?wd:[]}),[Vc,zd]=y.useState("drop"),eh=y.useRef(null);y.useMemo(()=>{const wd=Date.now();(ai||[]).forEach((Yd,ja)=>{!Yd.uid&&!Object.isFrozen(Yd)&&(Yd.uid=`__AUTO__${wd}_${ja}__`)})},[ai]);const Kd=(wd,Yd,ja)=>{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};ja&&(Au.event=ja),(!zl||ru.some(Vu=>Vu.uid===wd.uid))&&(0,b.flushSync)(()=>{$a==null||$a(Au)})},ad=(wd,Yd)=>eo(void 0,void 0,void 0,function*(){const{beforeUpload:ja,transformFile:ru}=jn;let zl=wd;if(ja){const Au=yield ja(wd,Yd);if(Au===!1)return!1;if(delete wd[sa],Au===sa)return Object.defineProperty(wd,sa,{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[sa]);if(!Yd.length)return;const ja=Yd.map(zl=>Fr(zl.file));let ru=(0,I.Z)(lc);ja.forEach(zl=>{ru=mi(zl,ru)}),ja.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,ja)=>{try{typeof wd=="string"&&(wd=JSON.parse(wd))}catch(Au){}if(!Tr(Yd,lc))return;const ru=Fr(Yd);ru.status="done",ru.percent=100,ru.response=wd,ru.xhr=ja;const zl=mi(ru,lc);Kd(ru,zl)},dd=(wd,Yd)=>{if(!Tr(Yd,lc))return;const ja=Fr(Yd);ja.status="uploading",ja.percent=wd.percent;const ru=mi(ja,lc);Kd(ja,ru,wd)},vd=(wd,Yd,ja)=>{if(!Tr(ja,lc))return;const ru=Fr(ja);ru.error=wd,ru.response=Yd,ru.status="error";const zl=mi(ru,lc);Kd(ru,zl)},Xd=wd=>{let Yd;Promise.resolve(typeof Ji=="function"?Ji(wd):Ji).then(ja=>{var ru;if(ja===!1)return;const zl=ti(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"&&(dl==null||dl(wd))};y.useImperativeHandle(yr,()=>({onBatchStart:ku,onSuccess:Fc,onProgress:dd,onError:vd,fileList:lc,upload:eh.current}));const{getPrefixCls:jd,direction:vh,upload:id}=y.useContext(ft.E_),nd=jd("upload",el),Pf=Object.assign(Object.assign({onBatchStart:ku,onError:vd,onProgress:dd,onSuccess:Fc},jn),{data:ls,multiple:Ks,action:xa,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,mt.Z)("Upload",yn.Z.Upload),{showRemoveIcon:jh,showPreviewIcon:uf,showDownloadIcon:Lh,removeIcon:Sf,previewIcon:Cp,downloadIcon:Nf}=typeof so=="boolean"?{}:so,uh=(wd,Yd)=>so?y.createElement(Hi,{prefixCls:nd,listType:Pi,items:lc,previewFile:Hl,onPreview:us,onDownload:ga,onRemove:Xd,showRemoveIcon:!Nu&&jh,showPreviewIcon:uf,showDownloadIcon:Lh,removeIcon:Sf,previewIcon:Cp,downloadIcon:Nf,iconRender:Pu,locale:Object.assign(Object.assign({},Xc),Za),isImageUrl:ea,progress:Qa,appendAction:wd,appendActionVisible:Yd,itemRender:Cn,disabled:Nu}):wd,Th=k()(`${nd}-wrapper`,Ul,ml,cc,id==null?void 0:id.className,{[`${nd}-rtl`]:vh==="rtl",[`${nd}-picture-card-wrapper`]:Pi==="picture-card",[`${nd}-picture-circle-wrapper`]:Pi==="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(Pi==="picture-card"||Pi==="picture-circle"?y.createElement("span",{className:Th},uh(Fu,!!vu)):y.createElement("span",{className:Th},Fu,uh()))};var $u=y.forwardRef(Cs),rc=function(jn,yr){var ai={};for(var hi in jn)Object.prototype.hasOwnProperty.call(jn,hi)&&yr.indexOf(hi)<0&&(ai[hi]=jn[hi]);if(jn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ji=0,hi=Object.getOwnPropertySymbols(jn);Ji{var{style:ai,height:hi}=jn,Ji=rc(jn,["style","height"]);return y.createElement($u,Object.assign({ref:yr},Ji,{type:"drag",style:Object.assign(Object.assign({},ai),{height:hi})}))});const to=$u;to.Dragger=vo,to.LIST_IGNORE=sa;var hs=to},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=te);var ce=re===te?0:4-re%4;return[re,ce]}function w(W){var te=N(W),re=te[0],ce=te[1];return(re+ce)*3/4-ce}function A(W,te,re){return(te+re)*3/4-re}function C(W){var te,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++]=te>>8&255,he[fe++]=te&255;return pe===2&&(te=y[W.charCodeAt(Ie)]<<2|y[W.charCodeAt(Ie+1)]>>4,he[fe++]=te&255),pe===1&&(te=y[W.charCodeAt(Ie)]<<10|y[W.charCodeAt(Ie+1)]<<4|y[W.charCodeAt(Ie+2)]>>2,he[fe++]=te>>8&255,he[fe++]=te&255),he}function f(W){return m[W>>18&63]+m[W>>12&63]+m[W>>6&63]+m[W&63]}function S(W,te,re){for(var ce,pe=[],he=te;heBe?Be:fe+he));return ce===1?(te=W[re-1],pe.push(m[te>>2]+m[te<<4&63]+"==")):ce===2&&(te=(W[re-2]<<8)+W[re-1],pe.push(m[te>>10]+m[te>>4&63]+m[te<<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 dn=new Uint8Array(1);return dn.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},dn.foo()===42&&typeof dn.subarray=="function"&&dn.subarray(1,1).byteLength===0}catch(Ve){return!1}}function N(){return A.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function w(dn,Ve){if(N()=N())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+N().toString(16)+" bytes");return dn|0}function he(dn){return+dn!=dn&&(dn=0),A.alloc(+dn)}A.isBuffer=function(Ve){return!!(Ve!=null&&Ve._isBuffer)},A.compare=function(Ve,yt){if(!A.isBuffer(Ve)||!A.isBuffer(yt))throw new TypeError("Arguments must be Buffers");if(Ve===yt)return 0;for(var xt=Ve.length,Wt=yt.length,sn=0,Ot=Math.min(xt,Wt);sn>>1;case"base64":return go(dn).length;default:if(xt)return me(dn).length;Ve=(""+Ve).toLowerCase(),xt=!0}}A.byteLength=fe;function Be(dn,Ve,yt){var xt=!1;if((Ve===void 0||Ve<0)&&(Ve=0),Ve>this.length||((yt===void 0||yt>this.length)&&(yt=this.length),yt<=0)||(yt>>>=0,Ve>>>=0,yt<=Ve))return"";for(dn||(dn="utf8");;)switch(dn){case"hex":return ft(this,Ve,yt);case"utf8":case"utf-8":return Se(this,Ve,yt);case"ascii":return He(this,Ve,yt);case"latin1":case"binary":return Ct(this,Ve,yt);case"base64":return We(this,Ve,yt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return zt(this,Ve,yt);default:if(xt)throw new TypeError("Unknown encoding: "+dn);dn=(dn+"").toLowerCase(),xt=!0}}A.prototype._isBuffer=!0;function Ie(dn,Ve,yt){var xt=dn[Ve];dn[Ve]=dn[yt],dn[yt]=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 yt=0;yt0&&(Ve=this.toString("hex",0,yt).match(/.{2}/g).join(" "),this.length>yt&&(Ve+=" ... ")),""},A.prototype.compare=function(Ve,yt,xt,Wt,sn){if(!A.isBuffer(Ve))throw new TypeError("Argument must be a Buffer");if(yt===void 0&&(yt=0),xt===void 0&&(xt=Ve?Ve.length:0),Wt===void 0&&(Wt=0),sn===void 0&&(sn=this.length),yt<0||xt>Ve.length||Wt<0||sn>this.length)throw new RangeError("out of range index");if(Wt>=sn&&yt>=xt)return 0;if(Wt>=sn)return-1;if(yt>=xt)return 1;if(yt>>>=0,xt>>>=0,Wt>>>=0,sn>>>=0,this===Ve)return 0;for(var Ot=sn-Wt,Tt=xt-yt,bt=Math.min(Ot,Tt),Ht=this.slice(Wt,sn),zn=Ve.slice(yt,xt),en=0;en2147483647?yt=2147483647:yt<-2147483648&&(yt=-2147483648),yt=+yt,isNaN(yt)&&(yt=Wt?0:dn.length-1),yt<0&&(yt=dn.length+yt),yt>=dn.length){if(Wt)return-1;yt=dn.length-1}else if(yt<0)if(Wt)yt=0;else return-1;if(typeof Ve=="string"&&(Ve=A.from(Ve,xt)),A.isBuffer(Ve))return Ve.length===0?-1:be(dn,Ve,yt,xt,Wt);if(typeof Ve=="number")return Ve=Ve&255,A.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Wt?Uint8Array.prototype.indexOf.call(dn,Ve,yt):Uint8Array.prototype.lastIndexOf.call(dn,Ve,yt):be(dn,[Ve],yt,xt,Wt);throw new TypeError("val must be string, number or Buffer")}function be(dn,Ve,yt,xt,Wt){var sn=1,Ot=dn.length,Tt=Ve.length;if(xt!==void 0&&(xt=String(xt).toLowerCase(),xt==="ucs2"||xt==="ucs-2"||xt==="utf16le"||xt==="utf-16le")){if(dn.length<2||Ve.length<2)return-1;sn=2,Ot/=2,Tt/=2,yt/=2}function bt(Kr,ii){return sn===1?Kr[ii]:Kr.readUInt16BE(ii*sn)}var Ht;if(Wt){var zn=-1;for(Ht=yt;HtOt&&(yt=Ot-Tt),Ht=yt;Ht>=0;Ht--){for(var en=!0,fr=0;frWt&&(xt=Wt)):xt=Wt;var sn=Ve.length;if(sn%2!==0)throw new TypeError("Invalid hex string");xt>sn/2&&(xt=sn/2);for(var Ot=0;Otsn)&&(xt=sn),Ve.length>0&&(xt<0||yt<0)||yt>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,yt,xt);case"utf8":case"utf-8":return ye(this,Ve,yt,xt);case"ascii":return Ce(this,Ve,yt,xt);case"latin1":case"binary":return xe(this,Ve,yt,xt);case"base64":return Ae(this,Ve,yt,xt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ge(this,Ve,yt,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 We(dn,Ve,yt){return Ve===0&&yt===dn.length?I.fromByteArray(dn):I.fromByteArray(dn.slice(Ve,yt))}function Se(dn,Ve,yt){yt=Math.min(dn.length,yt);for(var xt=[],Wt=Ve;Wt239?4:sn>223?3:sn>191?2:1;if(Wt+Tt<=yt){var bt,Ht,zn,en;switch(Tt){case 1:sn<128&&(Ot=sn);break;case 2:bt=dn[Wt+1],(bt&192)===128&&(en=(sn&31)<<6|bt&63,en>127&&(Ot=en));break;case 3:bt=dn[Wt+1],Ht=dn[Wt+2],(bt&192)===128&&(Ht&192)===128&&(en=(sn&15)<<12|(bt&63)<<6|Ht&63,en>2047&&(en<55296||en>57343)&&(Ot=en));break;case 4:bt=dn[Wt+1],Ht=dn[Wt+2],zn=dn[Wt+3],(bt&192)===128&&(Ht&192)===128&&(zn&192)===128&&(en=(sn&15)<<18|(bt&63)<<12|(Ht&63)<<6|zn&63,en>65535&&en<1114112&&(Ot=en))}}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 dt(xt)}var Pt=4096;function dt(dn){var Ve=dn.length;if(Ve<=Pt)return String.fromCharCode.apply(String,dn);for(var yt="",xt=0;xtxt)&&(yt=xt);for(var Wt="",sn=Ve;snxt&&(Ve=xt),yt<0?(yt+=xt,yt<0&&(yt=0)):yt>xt&&(yt=xt),ytyt)throw new RangeError("Trying to access beyond buffer length")}A.prototype.readUIntLE=function(Ve,yt,xt){Ve=Ve|0,yt=yt|0,xt||mt(Ve,yt,this.length);for(var Wt=this[Ve],sn=1,Ot=0;++Ot0&&(sn*=256);)Wt+=this[Ve+--yt]*sn;return Wt},A.prototype.readUInt8=function(Ve,yt){return yt||mt(Ve,1,this.length),this[Ve]},A.prototype.readUInt16LE=function(Ve,yt){return yt||mt(Ve,2,this.length),this[Ve]|this[Ve+1]<<8},A.prototype.readUInt16BE=function(Ve,yt){return yt||mt(Ve,2,this.length),this[Ve]<<8|this[Ve+1]},A.prototype.readUInt32LE=function(Ve,yt){return yt||mt(Ve,4,this.length),(this[Ve]|this[Ve+1]<<8|this[Ve+2]<<16)+this[Ve+3]*16777216},A.prototype.readUInt32BE=function(Ve,yt){return yt||mt(Ve,4,this.length),this[Ve]*16777216+(this[Ve+1]<<16|this[Ve+2]<<8|this[Ve+3])},A.prototype.readIntLE=function(Ve,yt,xt){Ve=Ve|0,yt=yt|0,xt||mt(Ve,yt,this.length);for(var Wt=this[Ve],sn=1,Ot=0;++Ot=sn&&(Wt-=Math.pow(2,8*yt)),Wt},A.prototype.readIntBE=function(Ve,yt,xt){Ve=Ve|0,yt=yt|0,xt||mt(Ve,yt,this.length);for(var Wt=yt,sn=1,Ot=this[Ve+--Wt];Wt>0&&(sn*=256);)Ot+=this[Ve+--Wt]*sn;return sn*=128,Ot>=sn&&(Ot-=Math.pow(2,8*yt)),Ot},A.prototype.readInt8=function(Ve,yt){return yt||mt(Ve,1,this.length),this[Ve]&128?(255-this[Ve]+1)*-1:this[Ve]},A.prototype.readInt16LE=function(Ve,yt){yt||mt(Ve,2,this.length);var xt=this[Ve]|this[Ve+1]<<8;return xt&32768?xt|4294901760:xt},A.prototype.readInt16BE=function(Ve,yt){yt||mt(Ve,2,this.length);var xt=this[Ve+1]|this[Ve]<<8;return xt&32768?xt|4294901760:xt},A.prototype.readInt32LE=function(Ve,yt){return yt||mt(Ve,4,this.length),this[Ve]|this[Ve+1]<<8|this[Ve+2]<<16|this[Ve+3]<<24},A.prototype.readInt32BE=function(Ve,yt){return yt||mt(Ve,4,this.length),this[Ve]<<24|this[Ve+1]<<16|this[Ve+2]<<8|this[Ve+3]},A.prototype.readFloatLE=function(Ve,yt){return yt||mt(Ve,4,this.length),b.read(this,Ve,!0,23,4)},A.prototype.readFloatBE=function(Ve,yt){return yt||mt(Ve,4,this.length),b.read(this,Ve,!1,23,4)},A.prototype.readDoubleLE=function(Ve,yt){return yt||mt(Ve,8,this.length),b.read(this,Ve,!0,52,8)},A.prototype.readDoubleBE=function(Ve,yt){return yt||mt(Ve,8,this.length),b.read(this,Ve,!1,52,8)};function yn(dn,Ve,yt,xt,Wt,sn){if(!A.isBuffer(dn))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ve>Wt||Vedn.length)throw new RangeError("Index out of range")}A.prototype.writeUIntLE=function(Ve,yt,xt,Wt){if(Ve=+Ve,yt=yt|0,xt=xt|0,!Wt){var sn=Math.pow(2,8*xt)-1;yn(this,Ve,yt,xt,sn,0)}var Ot=1,Tt=0;for(this[yt]=Ve&255;++Tt=0&&(Tt*=256);)this[yt+Ot]=Ve/Tt&255;return yt+xt},A.prototype.writeUInt8=function(Ve,yt,xt){return Ve=+Ve,yt=yt|0,xt||yn(this,Ve,yt,1,255,0),A.TYPED_ARRAY_SUPPORT||(Ve=Math.floor(Ve)),this[yt]=Ve&255,yt+1};function Bn(dn,Ve,yt,xt){Ve<0&&(Ve=65535+Ve+1);for(var Wt=0,sn=Math.min(dn.length-yt,2);Wt>>(xt?Wt:1-Wt)*8}A.prototype.writeUInt16LE=function(Ve,yt,xt){return Ve=+Ve,yt=yt|0,xt||yn(this,Ve,yt,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[yt]=Ve&255,this[yt+1]=Ve>>>8):Bn(this,Ve,yt,!0),yt+2},A.prototype.writeUInt16BE=function(Ve,yt,xt){return Ve=+Ve,yt=yt|0,xt||yn(this,Ve,yt,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[yt]=Ve>>>8,this[yt+1]=Ve&255):Bn(this,Ve,yt,!1),yt+2};function Lr(dn,Ve,yt,xt){Ve<0&&(Ve=4294967295+Ve+1);for(var Wt=0,sn=Math.min(dn.length-yt,4);Wt>>(xt?Wt:3-Wt)*8&255}A.prototype.writeUInt32LE=function(Ve,yt,xt){return Ve=+Ve,yt=yt|0,xt||yn(this,Ve,yt,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[yt+3]=Ve>>>24,this[yt+2]=Ve>>>16,this[yt+1]=Ve>>>8,this[yt]=Ve&255):Lr(this,Ve,yt,!0),yt+4},A.prototype.writeUInt32BE=function(Ve,yt,xt){return Ve=+Ve,yt=yt|0,xt||yn(this,Ve,yt,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[yt]=Ve>>>24,this[yt+1]=Ve>>>16,this[yt+2]=Ve>>>8,this[yt+3]=Ve&255):Lr(this,Ve,yt,!1),yt+4},A.prototype.writeIntLE=function(Ve,yt,xt,Wt){if(Ve=+Ve,yt=yt|0,!Wt){var sn=Math.pow(2,8*xt-1);yn(this,Ve,yt,xt,sn-1,-sn)}var Ot=0,Tt=1,bt=0;for(this[yt]=Ve&255;++Ot>0)-bt&255;return yt+xt},A.prototype.writeIntBE=function(Ve,yt,xt,Wt){if(Ve=+Ve,yt=yt|0,!Wt){var sn=Math.pow(2,8*xt-1);yn(this,Ve,yt,xt,sn-1,-sn)}var Ot=xt-1,Tt=1,bt=0;for(this[yt+Ot]=Ve&255;--Ot>=0&&(Tt*=256);)Ve<0&&bt===0&&this[yt+Ot+1]!==0&&(bt=1),this[yt+Ot]=(Ve/Tt>>0)-bt&255;return yt+xt},A.prototype.writeInt8=function(Ve,yt,xt){return Ve=+Ve,yt=yt|0,xt||yn(this,Ve,yt,1,127,-128),A.TYPED_ARRAY_SUPPORT||(Ve=Math.floor(Ve)),Ve<0&&(Ve=255+Ve+1),this[yt]=Ve&255,yt+1},A.prototype.writeInt16LE=function(Ve,yt,xt){return Ve=+Ve,yt=yt|0,xt||yn(this,Ve,yt,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[yt]=Ve&255,this[yt+1]=Ve>>>8):Bn(this,Ve,yt,!0),yt+2},A.prototype.writeInt16BE=function(Ve,yt,xt){return Ve=+Ve,yt=yt|0,xt||yn(this,Ve,yt,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[yt]=Ve>>>8,this[yt+1]=Ve&255):Bn(this,Ve,yt,!1),yt+2},A.prototype.writeInt32LE=function(Ve,yt,xt){return Ve=+Ve,yt=yt|0,xt||yn(this,Ve,yt,4,2147483647,-2147483648),A.TYPED_ARRAY_SUPPORT?(this[yt]=Ve&255,this[yt+1]=Ve>>>8,this[yt+2]=Ve>>>16,this[yt+3]=Ve>>>24):Lr(this,Ve,yt,!0),yt+4},A.prototype.writeInt32BE=function(Ve,yt,xt){return Ve=+Ve,yt=yt|0,xt||yn(this,Ve,yt,4,2147483647,-2147483648),Ve<0&&(Ve=4294967295+Ve+1),A.TYPED_ARRAY_SUPPORT?(this[yt]=Ve>>>24,this[yt+1]=Ve>>>16,this[yt+2]=Ve>>>8,this[yt+3]=Ve&255):Lr(this,Ve,yt,!1),yt+4};function ri(dn,Ve,yt,xt,Wt,sn){if(yt+xt>dn.length)throw new RangeError("Index out of range");if(yt<0)throw new RangeError("Index out of range")}function gi(dn,Ve,yt,xt,Wt){return Wt||ri(dn,Ve,yt,4,34028234663852886e22,-34028234663852886e22),b.write(dn,Ve,yt,xt,23,4),yt+4}A.prototype.writeFloatLE=function(Ve,yt,xt){return gi(this,Ve,yt,!0,xt)},A.prototype.writeFloatBE=function(Ve,yt,xt){return gi(this,Ve,yt,!1,xt)};function ro(dn,Ve,yt,xt,Wt){return Wt||ri(dn,Ve,yt,8,17976931348623157e292,-17976931348623157e292),b.write(dn,Ve,yt,xt,52,8),yt+8}A.prototype.writeDoubleLE=function(Ve,yt,xt){return ro(this,Ve,yt,!0,xt)},A.prototype.writeDoubleBE=function(Ve,yt,xt){return ro(this,Ve,yt,!1,xt)},A.prototype.copy=function(Ve,yt,xt,Wt){if(xt||(xt=0),!Wt&&Wt!==0&&(Wt=this.length),yt>=Ve.length&&(yt=Ve.length),yt||(yt=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-yt=0;--Ot)Ve[Ot+yt]=this[Ot+xt];else if(sn<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=yt;Ot55295&&yt<57344){if(!Wt){if(yt>56319){(Ve-=3)>-1&&sn.push(239,191,189);continue}else if(Ot+1===xt){(Ve-=3)>-1&&sn.push(239,191,189);continue}Wt=yt;continue}if(yt<56320){(Ve-=3)>-1&&sn.push(239,191,189),Wt=yt;continue}yt=(Wt-55296<<10|yt-56320)+65536}else Wt&&(Ve-=3)>-1&&sn.push(239,191,189);if(Wt=null,yt<128){if((Ve-=1)<0)break;sn.push(yt)}else if(yt<2048){if((Ve-=2)<0)break;sn.push(yt>>6|192,yt&63|128)}else if(yt<65536){if((Ve-=3)<0)break;sn.push(yt>>12|224,yt>>6&63|128,yt&63|128)}else if(yt<1114112){if((Ve-=4)<0)break;sn.push(yt>>18|240,yt>>12&63|128,yt>>6&63|128,yt&63|128)}else throw new Error("Invalid code point")}return sn}function So(dn){for(var Ve=[],yt=0;yt>8,Wt=yt%256,sn.push(Wt),sn.push(xt);return sn}function go(dn){return I.toByteArray(_r(dn))}function ji(dn,Ve,yt,xt){for(var Wt=0;Wt=Ve.length||Wt>=dn.length);++Wt)Ve[Wt+yt]=dn[Wt];return Wt}function No(dn){return dn!==dn}},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(Ct){try{return document.execCommand(Ct)}catch(ft){return!1}}var P=function(ft){var zt=f()(ft);return S("cut"),zt},W=P;function te(Ct){var ft=document.documentElement.getAttribute("dir")==="rtl",zt=document.createElement("textarea");zt.style.fontSize="12pt",zt.style.border="0",zt.style.padding="0",zt.style.margin="0",zt.style.position="absolute",zt.style[ft?"right":"left"]="-9999px";var mt=window.pageYOffset||document.documentElement.scrollTop;return zt.style.top="".concat(mt,"px"),zt.setAttribute("readonly",""),zt.value=Ct,zt}var re=function(ft,zt){var mt=te(ft);zt.container.appendChild(mt);var yn=f()(mt);return S("copy"),mt.remove(),yn},ce=function(ft){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},mt="";return typeof ft=="string"?mt=re(ft,zt):ft instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(ft==null?void 0:ft.type)?mt=re(ft.value,zt):(mt=f()(ft),S("copy")),mt},pe=ce;function he(Ct){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?he=function(zt){return typeof zt}:he=function(zt){return zt&&typeof Symbol=="function"&&zt.constructor===Symbol&&zt!==Symbol.prototype?"symbol":typeof zt},he(Ct)}var fe=function(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},zt=ft.action,mt=zt===void 0?"copy":zt,yn=ft.container,Bn=ft.target,Lr=ft.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(Lr)return pe(Lr,{container:yn});if(Bn)return mt==="cut"?W(Bn):pe(Bn,{container:yn})},Be=fe;function Ie(Ct){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ie=function(zt){return typeof zt}:Ie=function(zt){return zt&&typeof Symbol=="function"&&zt.constructor===Symbol&&zt!==Symbol.prototype?"symbol":typeof zt},Ie(Ct)}function je(Ct,ft){if(!(Ct instanceof ft))throw new TypeError("Cannot call a class as a function")}function be(Ct,ft){for(var zt=0;zt0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof yn.action=="function"?yn.action:this.defaultAction,this.target=typeof yn.target=="function"?yn.target:this.defaultTarget,this.text=typeof yn.text=="function"?yn.text:this.defaultText,this.container=Ie(yn.container)==="object"?yn.container:document.body}},{key:"listenClick",value:function(yn){var Bn=this;this.listener=A()(yn,"click",function(Lr){return Bn.onClick(Lr)})}},{key:"onClick",value:function(yn){var Bn=yn.delegateTarget||yn.currentTarget,Lr=this.action(Bn)||"copy",ri=Be({action:Lr,container:this.container,target:this.target(Bn),text:this.text(Bn)});this.emit(ri?"success":"error",{action:Lr,text:ri,trigger:Bn,clearSelection:function(){Bn&&Bn.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(yn){return Pt("action",yn)}},{key:"defaultTarget",value:function(yn){var Bn=Pt("target",yn);if(Bn)return document.querySelector(Bn)}},{key:"defaultText",value:function(yn){return Pt("text",yn)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(yn){var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return pe(yn,Bn)}},{key:"cut",value:function(yn){return W(yn)}},{key:"isSupported",value:function(){var yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Bn=typeof yn=="string"?[yn]:yn,Lr=!!document.queryCommandSupported;return Bn.forEach(function(ri){Lr=Lr&&!!document.queryCommandSupported(ri)}),Lr}}]),zt}(N()),He=dt},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 te=A.apply(this,arguments);return C.addEventListener(S,te,W),{destroy:function(){C.removeEventListener(S,te,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(te){return N(te,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(te){te.addEventListener(P,W)}),{destroy:function(){Array.prototype.forEach.call(S,function(te){te.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,te*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 te=0;te<3;te++)f=N+1/3*-(te-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[te]=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 te,re,ce;switch(S){default:case 6:case 0:te=P,re=W,ce=w;break;case 1:te=W,re=P,ce=w;break;case 2:te=w,re=P,ce=W;break;case 3:te=w,re=W,ce=P;break;case 4:te=W,re=w,ce=P;break;case 5:te=P,re=w,ce=W;break}return[te*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),te=oy(S,3);return f=P>.008856?P:(f-16/116)/7.787,C=W>.008856?W:(C-16/116)/7.787,S=te>.008856?te:(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,te){if(!(this instanceof N))return new N(W,te);if(te&&te in b&&(te=null),te&&!(te in I))throw new Error("Unknown model: "+te);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=te||"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 te=this.rgb().round().color;let re=Math.round(this.valpha*255).toString(16).toUpperCase();return re.length===1&&(re="0"+re),y.to.hex(te)+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,te=[];for(const[re,ce]of W.entries()){const pe=ce/255;te[re]=pe<=.04045?pe/12.92:oy((pe+.055)/1.055,2.4)}return .2126*te[0]+.7152*te[1]+.0722*te[2]},contrast(W){const te=this.luminosity(),re=W.luminosity();return te>re?(te+.05)/(re+.05):(re+.05)/(te+.05)},level(W){const te=this.contrast(W);return te>=7?"AAA":te>=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 te=0;te<3;te++)W.color[te]=255-W.color[te];return W},lighten(W){const te=this.hsl();return te.color[2]+=te.color[2]*W,te},darken(W){const te=this.hsl();return te.color[2]-=te.color[2]*W,te},saturate(W){const te=this.hsl();return te.color[1]+=te.color[1]*W,te},desaturate(W){const te=this.hsl();return te.color[1]-=te.color[1]*W,te},whiten(W){const te=this.hwb();return te.color[1]+=te.color[1]*W,te},blacken(W){const te=this.hwb();return te.color[2]+=te.color[2]*W,te},grayscale(){const W=this.rgb().color,te=W[0]*.3+W[1]*.59+W[2]*.11;return N.rgb(te,te,te)},fade(W){return this.alpha(this.valpha-this.valpha*W)},opaquer(W){return this.alpha(this.valpha+this.valpha*W)},rotate(W){const te=this.hsl();let re=te.color[0];return re=(re+W)%360,re=re<0?360+re:re,te.color[0]=re,te},mix(W,te){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=te===void 0?.5:te,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:te}=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,te)),new N(ce,W)}}function w(W,te){return Number(W.toFixed(te))}function A(W){return function(te){return w(te,W)}}function C(W,te,re){W=Array.isArray(W)?W:[W];for(const ce of W)(k[ce]||(k[ce]=[]))[te]=re;return W=W[0],function(ce){let pe;return ce!==void 0?(re&&(ce=re(ce)),pe=this[W](),pe.color[te]=ce,pe):(pe=this[W]().color[te],re&&(pe=re(pe)),pe)}}function f(W){return function(te){return Math.max(0,Math.min(W,te))}}function S(W){return Array.isArray(W)?W:[W]}function P(W,te){for(let re=0;reCe||Ae.push({node:Se,dist:Pt})}for(;Ae.length&&!Ae.peek().node.children;){var dt=Ae.pop(),He=dt.node,Ct=pe(He,je,be),ft=pe(He,ve,ye);if(dt.dist=je.minX&&Ie[0]<=je.maxX&&Ie[1]>=je.minY&&Ie[1]<=je.maxY}function f(Ie,je,be){for(var ve=Math.min(Ie[0],je[0]),ye=Math.min(Ie[1],je[1]),Ce=Math.max(Ie[0],je[0]),xe=Math.max(Ie[1],je[1]),Ae=be.search({minX:ve,minY:ye,maxX:Ce,maxY:xe}),ge=0;ge0!=S(Ie,je,ve)>0&&S(be,ve,Ie)>0!=S(be,ve,je)>0}function W(Ie){var je=Ie.p,be=Ie.next.p;return Ie.minX=Math.min(je[0],be[0]),Ie.minY=Math.min(je[1],be[1]),Ie.maxX=Math.max(je[0],be[0]),Ie.maxY=Math.max(je[1],be[1]),Ie}function te(Ie){for(var je=Ie[0],be=Ie[0],ve=Ie[0],ye=Ie[0],Ce=0;Ceve[0]&&(ve=xe),xe[1]ye[1]&&(ye=xe)}var Ae=[je,be,ve,ye],ge=Ae.slice();for(Ce=0;Ce1?(ve=be[0],ye=be[1]):Ae>0&&(ve+=Ce*Ae,ye+=xe*Ae)}return Ce=Ie[0]-ve,xe=Ie[1]-ye,Ce*Ce+xe*xe}function he(Ie,je,be,ve,ye,Ce,xe,Ae){var ge=be-Ie,We=ve-je,Se=xe-ye,Pt=Ae-Ce,dt=Ie-ye,He=je-Ce,Ct=ge*ge+We*We,ft=ge*Se+We*Pt,zt=Se*Se+Pt*Pt,mt=ge*dt+We*He,yn=Se*dt+Pt*He,Bn=Ct*zt-ft*ft,Lr,ri,gi,ro,To=Bn,_r=Bn;Bn===0?(ri=0,To=1,ro=yn,_r=zt):(ri=ft*yn-zt*mt,ro=Ct*yn-ft*mt,ri<0?(ri=0,ro=yn,_r=zt):ri>To&&(ri=To,ro=yn+ft,_r=zt)),ro<0?(ro=0,-mt<0?ri=0:-mt>Ct?ri=To:(ri=-mt,To=Ct)):ro>_r&&(ro=_r,-mt+ft<0?ri=0:-mt+ft>Ct?ri=To:(ri=-mt+ft,To=Ct)),Lr=ri===0?0:ri/To,gi=ro===0?0:ro/_r;var Bo=(1-Lr)*Ie+Lr*be,fs=(1-Lr)*je+Lr*ve,me=(1-gi)*ye+gi*xe,So=(1-gi)*Ce+gi*Ae,ho=me-Bo,go=So-fs;return ho*ho+go*go}function fe(Ie,je){return Ie[0]===je[0]?Ie[1]-je[1]:Ie[0]-je[0]}function Be(Ie){Ie.sort(fe);for(var je=[],be=0;be=2&&S(je[je.length-2],je[je.length-1],Ie[be])<=0;)je.pop();je.push(Ie[be])}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(),je.pop(),je.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(ge){return!1}}(),formData:"FormData"in b,arrayBuffer:"ArrayBuffer"in b};function w(ge){return ge&&DataView.prototype.isPrototypeOf(ge)}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(ge){return ge&&A.indexOf(Object.prototype.toString.call(ge))>-1};function f(ge){if(typeof ge!="string"&&(ge=String(ge)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ge))throw new TypeError("Invalid character in header field name");return ge.toLowerCase()}function S(ge){return typeof ge!="string"&&(ge=String(ge)),ge}function P(ge){var We={next:function(){var Se=ge.shift();return{done:Se===void 0,value:Se}}};return N.iterable&&(We[Symbol.iterator]=function(){return We}),We}function W(ge){this.map={},ge instanceof W?ge.forEach(function(We,Se){this.append(Se,We)},this):Array.isArray(ge)?ge.forEach(function(We){this.append(We[0],We[1])},this):ge&&Object.getOwnPropertyNames(ge).forEach(function(We){this.append(We,ge[We])},this)}W.prototype.append=function(ge,We){ge=f(ge),We=S(We);var Se=this.map[ge];this.map[ge]=Se?Se+", "+We:We},W.prototype.delete=function(ge){delete this.map[f(ge)]},W.prototype.get=function(ge){return ge=f(ge),this.has(ge)?this.map[ge]:null},W.prototype.has=function(ge){return this.map.hasOwnProperty(f(ge))},W.prototype.set=function(ge,We){this.map[f(ge)]=S(We)},W.prototype.forEach=function(ge,We){for(var Se in this.map)this.map.hasOwnProperty(Se)&&ge.call(We,this.map[Se],Se,this)},W.prototype.keys=function(){var ge=[];return this.forEach(function(We,Se){ge.push(Se)}),P(ge)},W.prototype.values=function(){var ge=[];return this.forEach(function(We){ge.push(We)}),P(ge)},W.prototype.entries=function(){var ge=[];return this.forEach(function(We,Se){ge.push([Se,We])}),P(ge)},N.iterable&&(W.prototype[Symbol.iterator]=W.prototype.entries);function te(ge){if(ge.bodyUsed)return Promise.reject(new TypeError("Already read"));ge.bodyUsed=!0}function re(ge){return new Promise(function(We,Se){ge.onload=function(){We(ge.result)},ge.onerror=function(){Se(ge.error)}})}function ce(ge){var We=new FileReader,Se=re(We);return We.readAsArrayBuffer(ge),Se}function pe(ge){var We=new FileReader,Se=re(We);return We.readAsText(ge),Se}function he(ge){for(var We=new Uint8Array(ge),Se=new Array(We.length),Pt=0;Pt-1?We:ge}function be(ge,We){We=We||{};var Se=We.body;if(ge instanceof be){if(ge.bodyUsed)throw new TypeError("Already read");this.url=ge.url,this.credentials=ge.credentials,We.headers||(this.headers=new W(ge.headers)),this.method=ge.method,this.mode=ge.mode,this.signal=ge.signal,!Se&&ge._bodyInit!=null&&(Se=ge._bodyInit,ge.bodyUsed=!0)}else this.url=String(ge);if(this.credentials=We.credentials||this.credentials||"same-origin",(We.headers||!this.headers)&&(this.headers=new W(We.headers)),this.method=je(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")&&Se)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Se)}be.prototype.clone=function(){return new be(this,{body:this._bodyInit})};function ve(ge){var We=new FormData;return ge.trim().split("&").forEach(function(Se){if(Se){var Pt=Se.split("="),dt=Pt.shift().replace(/\+/g," "),He=Pt.join("=").replace(/\+/g," ");We.append(decodeURIComponent(dt),decodeURIComponent(He))}}),We}function ye(ge){var We=new W,Se=ge.replace(/\r?\n[\t ]+/g," ");return Se.split(/\r?\n/).forEach(function(Pt){var dt=Pt.split(":"),He=dt.shift().trim();if(He){var Ct=dt.join(":").trim();We.append(He,Ct)}}),We}Be.call(be.prototype);function Ce(ge,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 W(We.headers),this.url=We.url||"",this._initBody(ge)}Be.call(Ce.prototype),Ce.prototype.clone=function(){return new Ce(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new W(this.headers),url:this.url})},Ce.error=function(){var ge=new Ce(null,{status:0,statusText:""});return ge.type="error",ge};var xe=[301,302,303,307,308];Ce.redirect=function(ge,We){if(xe.indexOf(We)===-1)throw new RangeError("Invalid status code");return new Ce(null,{status:We,headers:{location:ge}})},k.DOMException=b.DOMException;try{new k.DOMException}catch(ge){k.DOMException=function(We,Se){this.message=We,this.name=Se;var Pt=Error(We);this.stack=Pt.stack},k.DOMException.prototype=Object.create(Error.prototype),k.DOMException.prototype.constructor=k.DOMException}function Ae(ge,We){return new Promise(function(Se,Pt){var dt=new be(ge,We);if(dt.signal&&dt.signal.aborted)return Pt(new k.DOMException("Aborted","AbortError"));var He=new XMLHttpRequest;function Ct(){He.abort()}He.onload=function(){var ft={status:He.status,statusText:He.statusText,headers:ye(He.getAllResponseHeaders()||"")};ft.url="responseURL"in He?He.responseURL:ft.headers.get("X-Request-URL");var zt="response"in He?He.response:He.responseText;Se(new Ce(zt,ft))},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(dt.method,dt.url,!0),dt.credentials==="include"?He.withCredentials=!0:dt.credentials==="omit"&&(He.withCredentials=!1),"responseType"in He&&N.blob&&(He.responseType="blob"),dt.headers.forEach(function(ft,zt){He.setRequestHeader(zt,ft)}),dt.signal&&(dt.signal.addEventListener("abort",Ct),He.onreadystatechange=function(){He.readyState===4&&dt.signal.removeEventListener("abort",Ct)}),He.send(typeof dt._bodyInit=="undefined"?null:dt._bodyInit)})}return Ae.polyfill=!0,b.fetch||(b.fetch=Ae,b.Headers=W,b.Request=be,b.Response=Ce),k.Headers=W,k.Request=be,k.Response=Ce,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 je},G9:function(){return ce},ly:function(){return pe},sd:function(){return re}});function y(be,ve){return beve?1:be>=ve?0:NaN}function I(be){return be.length===1&&(be=b(be)),{left:function(ve,ye,Ce,xe){for(Ce==null&&(Ce=0),xe==null&&(xe=ve.length);Ce>>1;be(ve[Ae],ye)<0?Ce=Ae+1:xe=Ae}return Ce},right:function(ve,ye,Ce,xe){for(Ce==null&&(Ce=0),xe==null&&(xe=ve.length);Ce>>1;be(ve[Ae],ye)>0?xe=Ae:Ce=Ae+1}return Ce}}}function b(be){return function(ve,ye){return y(be(ve),ye)}}var z=I(y),k=z.right,N=z.left,w=k;function A(be,ve){var ye=be.length,Ce=-1,xe,Ae,ge;if(ve==null){for(;++Ce=xe)for(Ae=ge=xe;++Cexe&&(Ae=xe),ge=xe)for(Ae=ge=xe;++Cexe&&(Ae=xe),ge0)return[be];if((Ce=ve0)for(be=Math.ceil(be/We),ve=Math.floor(ve/We),ge=new Array(Ae=Math.ceil(ve-be+1));++xe=0?(Ae>=P?10:Ae>=W?5:Ae>=te?2:1)*Math.pow(10,xe):-Math.pow(10,-xe)/(Ae>=P?10:Ae>=W?5:Ae>=te?2:1)}function pe(be,ve,ye){var Ce=Math.abs(ve-be)/Math.max(0,ye),xe=Math.pow(10,Math.floor(Math.log(Ce)/Math.LN10)),Ae=Ce/xe;return Ae>=P?xe*=10:Ae>=W?xe*=5:Ae>=te&&(xe*=2),veHe;)Ct.pop(),--ft;var zt=new Array(ft+1),mt;for(Ae=0;Ae<=ft;++Ae)mt=zt[Ae]=[],mt.x0=Ae>0?Ct[Ae-1]:dt,mt.x1=Ae=0;)for(ge=be[ve],ye=ge.length;--ye>=0;)Ae[--xe]=ge[ye];return Ae}function Ie(be){return be===null?NaN:+be}function je(be,ve,ye){if(ye==null&&(ye=Ie),!!(Ce=be.length)){if((ve=+ve)<=0||Ce<2)return+ye(be[0],0,be);if(ve>=1)return+ye(be[Ce-1],Ce-1,be);var Ce,xe=(Ce-1)*ve,Ae=Math.floor(xe),ge=+ye(be[Ae],Ae,be),We=+ye(be[Ae+1],Ae+1,be);return ge+(We-ge)*(xe-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+)?$/,te=/\[([^\]]+)]|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(xe){var Ae=["th","st","nd","rd"],ge=xe%100;return"["+xe+(Ae[(ge-20)%10]||Ae[ge]||Ae[0])+"]"}},ce=function(xe,Ae,ge){var We=String(xe);return!We||We.length>=Ae?xe:""+Array(Ae+1-We.length).join(ge)+xe},pe={s:ce,z:function(xe){var Ae=-xe.utcOffset(),ge=Math.abs(Ae),We=Math.floor(ge/60),Se=ge%60;return(Ae<=0?"+":"-")+ce(We,2,"0")+":"+ce(Se,2,"0")},m:function xe(Ae,ge){if(Ae.date()1)return xe(dt[0])}else{var He=Ae.name;fe[He]=Ae,Se=He}return!We&&Se&&(he=Se),Se||!We&&he},be=function(xe,Ae){if(Ie(xe))return xe.clone();var ge=typeof Ae=="object"?Ae:{};return ge.date=xe,ge.args=arguments,new ye(ge)},ve=pe;ve.l=je,ve.i=Ie,ve.w=function(xe,Ae){return be(xe,{locale:Ae.$L,utc:Ae.$u,x:Ae.$x,$offset:Ae.$offset})};var ye=function(){function xe(ge){this.$L=je(ge.locale,null,!0),this.parse(ge),this.$x=this.$x||ge.x||{},this[Be]=!0}var Ae=xe.prototype;return Ae.parse=function(ge){this.$d=function(We){var Se=We.date,Pt=We.utc;if(Se===null)return new Date(NaN);if(ve.u(Se))return new Date;if(Se instanceof Date)return new Date(Se);if(typeof Se=="string"&&!/Z$/i.test(Se)){var dt=Se.match(W);if(dt){var He=dt[2]-1||0,Ct=(dt[7]||"0").substring(0,3);return Pt?new Date(Date.UTC(dt[1],He,dt[3]||1,dt[4]||0,dt[5]||0,dt[6]||0,Ct)):new Date(dt[1],He,dt[3]||1,dt[4]||0,dt[5]||0,dt[6]||0,Ct)}}return new Date(Se)}(ge),this.init()},Ae.init=function(){var ge=this.$d;this.$y=ge.getFullYear(),this.$M=ge.getMonth(),this.$D=ge.getDate(),this.$W=ge.getDay(),this.$H=ge.getHours(),this.$m=ge.getMinutes(),this.$s=ge.getSeconds(),this.$ms=ge.getMilliseconds()},Ae.$utils=function(){return ve},Ae.isValid=function(){return this.$d.toString()!==P},Ae.isSame=function(ge,We){var Se=be(ge);return this.startOf(We)<=Se&&Se<=this.endOf(We)},Ae.isAfter=function(ge,We){return be(ge)0&&typeof P[0]!="number")}function S(P,W,te){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]!=je[re])return!1;for(re=Ie.length-1;re>=0;re--)if(ce=Ie[re],!A(P[ce],W[ce],te))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,te=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(te||!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 te=0;te=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*dt){mt=Bn=Se[0],yn=Lr=Se[1];for(var To=dt;ToBn&&(Bn=ri),gi>Lr&&(Lr=gi);ro=Math.max(Bn-mt,Lr-yn),ro=ro!==0?32767/ro:0}return I(ft,zt,dt,mt,yn,ro,0),zt}function m(Se,Pt,dt,He,Ct){var ft,zt;if(Ct===We(Se,Pt,dt,He)>0)for(ft=Pt;ft=Pt;ft-=He)zt=xe(ft,Se[ft],Se[ft+1],zt);return zt&&fe(zt,zt.next)&&(Ae(zt),zt=zt.next),zt}function y(Se,Pt){if(!Se)return Se;Pt||(Pt=Se);var dt=Se,He;do if(He=!1,!dt.steiner&&(fe(dt,dt.next)||he(dt.prev,dt,dt.next)===0)){if(Ae(dt),dt=Pt=dt.prev,dt===dt.next)break;He=!0}else dt=dt.next;while(He||dt!==Pt);return Pt}function I(Se,Pt,dt,He,Ct,ft,zt){if(Se){!zt&&ft&&P(Se,He,Ct,ft);for(var mt=Se,yn,Bn;Se.prev!==Se.next;){if(yn=Se.prev,Bn=Se.next,ft?z(Se,He,Ct,ft):b(Se)){Pt.push(yn.i/dt|0),Pt.push(Se.i/dt|0),Pt.push(Bn.i/dt|0),Ae(Se),Se=Bn.next,mt=Bn.next;continue}if(Se=Bn,Se===mt){zt?zt===1?(Se=k(y(Se),Pt,dt),I(Se,Pt,dt,He,Ct,ft,2)):zt===2&&N(Se,Pt,dt,He,Ct,ft):I(y(Se),Pt,dt,He,Ct,ft,1);break}}}}function b(Se){var Pt=Se.prev,dt=Se,He=Se.next;if(he(Pt,dt,He)>=0)return!1;for(var Ct=Pt.x,ft=dt.x,zt=He.x,mt=Pt.y,yn=dt.y,Bn=He.y,Lr=Ctft?Ct>zt?Ct:zt:ft>zt?ft:zt,ro=mt>yn?mt>Bn?mt:Bn:yn>Bn?yn:Bn,To=He.next;To!==Pt;){if(To.x>=Lr&&To.x<=gi&&To.y>=ri&&To.y<=ro&&ce(Ct,mt,ft,yn,zt,Bn,To.x,To.y)&&he(To.prev,To,To.next)>=0)return!1;To=To.next}return!0}function z(Se,Pt,dt,He){var Ct=Se.prev,ft=Se,zt=Se.next;if(he(Ct,ft,zt)>=0)return!1;for(var mt=Ct.x,yn=ft.x,Bn=zt.x,Lr=Ct.y,ri=ft.y,gi=zt.y,ro=mtyn?mt>Bn?mt:Bn:yn>Bn?yn:Bn,Bo=Lr>ri?Lr>gi?Lr:gi:ri>gi?ri:gi,fs=te(ro,To,Pt,dt,He),me=te(_r,Bo,Pt,dt,He),So=Se.prevZ,ho=Se.nextZ;So&&So.z>=fs&&ho&&ho.z<=me;){if(So.x>=ro&&So.x<=_r&&So.y>=To&&So.y<=Bo&&So!==Ct&&So!==zt&&ce(mt,Lr,yn,ri,Bn,gi,So.x,So.y)&&he(So.prev,So,So.next)>=0||(So=So.prevZ,ho.x>=ro&&ho.x<=_r&&ho.y>=To&&ho.y<=Bo&&ho!==Ct&&ho!==zt&&ce(mt,Lr,yn,ri,Bn,gi,ho.x,ho.y)&&he(ho.prev,ho,ho.next)>=0))return!1;ho=ho.nextZ}for(;So&&So.z>=fs;){if(So.x>=ro&&So.x<=_r&&So.y>=To&&So.y<=Bo&&So!==Ct&&So!==zt&&ce(mt,Lr,yn,ri,Bn,gi,So.x,So.y)&&he(So.prev,So,So.next)>=0)return!1;So=So.prevZ}for(;ho&&ho.z<=me;){if(ho.x>=ro&&ho.x<=_r&&ho.y>=To&&ho.y<=Bo&&ho!==Ct&&ho!==zt&&ce(mt,Lr,yn,ri,Bn,gi,ho.x,ho.y)&&he(ho.prev,ho,ho.next)>=0)return!1;ho=ho.nextZ}return!0}function k(Se,Pt,dt){var He=Se;do{var Ct=He.prev,ft=He.next.next;!fe(Ct,ft)&&Be(Ct,He,He.next,ft)&&ve(Ct,ft)&&ve(ft,Ct)&&(Pt.push(Ct.i/dt|0),Pt.push(He.i/dt|0),Pt.push(ft.i/dt|0),Ae(He),Ae(He.next),He=Se=ft),He=He.next}while(He!==Se);return y(He)}function N(Se,Pt,dt,He,Ct,ft){var zt=Se;do{for(var mt=zt.next.next;mt!==zt.prev;){if(zt.i!==mt.i&&pe(zt,mt)){var yn=Ce(zt,mt);zt=y(zt,zt.next),yn=y(yn,yn.next),I(zt,Pt,dt,He,Ct,ft,0),I(yn,Pt,dt,He,Ct,ft,0);return}mt=mt.next}zt=zt.next}while(zt!==Se)}function w(Se,Pt,dt,He){var Ct=[],ft,zt,mt,yn,Bn;for(ft=0,zt=Pt.length;ft=dt.next.y&&dt.next.y!==dt.y){var mt=dt.x+(Ct-dt.y)*(dt.next.x-dt.x)/(dt.next.y-dt.y);if(mt<=He&&mt>ft&&(ft=mt,zt=dt.x=dt.x&&dt.x>=Bn&&He!==dt.x&&ce(Ctzt.x||dt.x===zt.x&&S(zt,dt)))&&(zt=dt,ri=gi)),dt=dt.next;while(dt!==yn);return zt}function S(Se,Pt){return he(Se.prev,Se,Pt.prev)<0&&he(Pt.next,Se,Se.next)<0}function P(Se,Pt,dt,He){var Ct=Se;do Ct.z===0&&(Ct.z=te(Ct.x,Ct.y,Pt,dt,He)),Ct.prevZ=Ct.prev,Ct.nextZ=Ct.next,Ct=Ct.next;while(Ct!==Se);Ct.prevZ.nextZ=null,Ct.prevZ=null,W(Ct)}function W(Se){var Pt,dt,He,Ct,ft,zt,mt,yn,Bn=1;do{for(dt=Se,Se=null,ft=null,zt=0;dt;){for(zt++,He=dt,mt=0,Pt=0;Pt0||yn>0&&He;)mt!==0&&(yn===0||!He||dt.z<=He.z)?(Ct=dt,dt=dt.nextZ,mt--):(Ct=He,He=He.nextZ,yn--),ft?ft.nextZ=Ct:Se=Ct,Ct.prevZ=ft,ft=Ct;dt=He}ft.nextZ=null,Bn*=2}while(zt>1);return Se}function te(Se,Pt,dt,He,Ct){return Se=(Se-dt)*Ct|0,Pt=(Pt-He)*Ct|0,Se=(Se|Se<<8)&16711935,Se=(Se|Se<<4)&252645135,Se=(Se|Se<<2)&858993459,Se=(Se|Se<<1)&1431655765,Pt=(Pt|Pt<<8)&16711935,Pt=(Pt|Pt<<4)&252645135,Pt=(Pt|Pt<<2)&858993459,Pt=(Pt|Pt<<1)&1431655765,Se|Pt<<1}function re(Se){var Pt=Se,dt=Se;do(Pt.x=(Se-zt)*(ft-mt)&&(Se-zt)*(He-mt)>=(dt-zt)*(Pt-mt)&&(dt-zt)*(ft-mt)>=(Ct-zt)*(He-mt)}function pe(Se,Pt){return Se.next.i!==Pt.i&&Se.prev.i!==Pt.i&&!be(Se,Pt)&&(ve(Se,Pt)&&ve(Pt,Se)&&ye(Se,Pt)&&(he(Se.prev,Se,Pt.prev)||he(Se,Pt.prev,Pt))||fe(Se,Pt)&&he(Se.prev,Se,Se.next)>0&&he(Pt.prev,Pt,Pt.next)>0)}function he(Se,Pt,dt){return(Pt.y-Se.y)*(dt.x-Pt.x)-(Pt.x-Se.x)*(dt.y-Pt.y)}function fe(Se,Pt){return Se.x===Pt.x&&Se.y===Pt.y}function Be(Se,Pt,dt,He){var Ct=je(he(Se,Pt,dt)),ft=je(he(Se,Pt,He)),zt=je(he(dt,He,Se)),mt=je(he(dt,He,Pt));return!!(Ct!==ft&&zt!==mt||Ct===0&&Ie(Se,dt,Pt)||ft===0&&Ie(Se,He,Pt)||zt===0&&Ie(dt,Se,He)||mt===0&&Ie(dt,Pt,He))}function Ie(Se,Pt,dt){return Pt.x<=Math.max(Se.x,dt.x)&&Pt.x>=Math.min(Se.x,dt.x)&&Pt.y<=Math.max(Se.y,dt.y)&&Pt.y>=Math.min(Se.y,dt.y)}function je(Se){return Se>0?1:Se<0?-1:0}function be(Se,Pt){var dt=Se;do{if(dt.i!==Se.i&&dt.next.i!==Se.i&&dt.i!==Pt.i&&dt.next.i!==Pt.i&&Be(dt,dt.next,Se,Pt))return!0;dt=dt.next}while(dt!==Se);return!1}function ve(Se,Pt){return he(Se.prev,Se,Se.next)<0?he(Se,Pt,Se.next)>=0&&he(Se,Se.prev,Pt)>=0:he(Se,Pt,Se.prev)<0||he(Se,Se.next,Pt)<0}function ye(Se,Pt){var dt=Se,He=!1,Ct=(Se.x+Pt.x)/2,ft=(Se.y+Pt.y)/2;do dt.y>ft!=dt.next.y>ft&&dt.next.y!==dt.y&&Ct<(dt.next.x-dt.x)*(ft-dt.y)/(dt.next.y-dt.y)+dt.x&&(He=!He),dt=dt.next;while(dt!==Se);return He}function Ce(Se,Pt){var dt=new ge(Se.i,Se.x,Se.y),He=new ge(Pt.i,Pt.x,Pt.y),Ct=Se.next,ft=Pt.prev;return Se.next=Pt,Pt.prev=Se,dt.next=Ct,Ct.prev=dt,He.next=dt,dt.prev=He,ft.next=He,He.prev=ft,He}function xe(Se,Pt,dt,He){var Ct=new ge(Se,Pt,dt);return He?(Ct.next=He.next,Ct.prev=He,He.next.prev=Ct,He.next=Ct):(Ct.prev=Ct,Ct.next=Ct),Ct}function Ae(Se){Se.next.prev=Se.prev,Se.prev.next=Se.next,Se.prevZ&&(Se.prevZ.nextZ=Se.nextZ),Se.nextZ&&(Se.nextZ.prevZ=Se.prevZ)}function ge(Se,Pt,dt){this.i=Se,this.x=Pt,this.y=dt,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}V.deviation=function(Se,Pt,dt,He){var Ct=Pt&&Pt.length,ft=Ct?Pt[0]*dt:Se.length,zt=Math.abs(We(Se,0,ft,dt));if(Ct)for(var mt=0,yn=Pt.length;mt0&&(He+=Se[Ct-1].length,dt.holes.push(He))}return dt}},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&&ho<=137.8347&&go>=.8293&&go<=55.8271}function C(ho,go){let ji=-100+2*ho+3*go+.2*go*go+.1*ho*go+.2*b(z(ho));return ji+=(20*y(6*ho*k)+20*y(2*ho*k))*2/3,ji+=(20*y(go*k)+40*y(go/3*k))*2/3,ji+=(160*y(go/12*k)+320*y(go*k/30))*2/3,ji}function f(ho,go){let ji=300+ho+2*go+.1*ho*ho+.1*ho*go+.1*b(z(ho));return ji+=(20*y(6*ho*k)+20*y(2*ho*k))*2/3,ji+=(20*y(ho*k)+40*y(ho/3*k))*2/3,ji+=(150*y(ho/12*k)+300*y(ho/30*k))*2/3,ji}function S(ho,go){let ji=f(ho-105,go-35),No=C(ho-105,go-35);const dn=go/180*k;let Ve=y(dn);Ve=1-w*Ve*Ve;const yt=b(Ve);return ji=ji*180/(N/yt*I(dn)*k),No=No*180/(N*(1-w)/(Ve*yt)*k),[ji,No]}function P(ho){const[go,ji]=ho;if(!A(go,ji))return[go,ji];const No=S(go,ji);return[go+No[0],ji+No[1]]}function W(ho){const[go,ji]=ho;if(!A(go,ji))return[go,ji];let[No,dn]=[go,ji],Ve=P([No,dn]),yt=Ve[0]-go,xt=Ve[1]-ji;for(;z(yt)>1e-6||z(xt)>1e-6;)No-=yt,dn-=xt,Ve=P([No,dn]),yt=Ve[0]-go,xt=Ve[1]-ji;return[No,dn]}const{sin:te,cos:re,atan2:ce,sqrt:pe,PI:he}=Math,fe=he*3e3/180;function Be(ho){const[go,ji]=ho,No=go-.0065,dn=ji-.006,Ve=pe(No*No+dn*dn)-2e-5*te(dn*fe),yt=ce(dn,No)-3e-6*re(No*fe),xt=Ve*re(yt),Wt=Ve*te(yt);return[xt,Wt]}function Ie(ho){const[go,ji]=ho,No=go,dn=ji,Ve=pe(No*No+dn*dn)+2e-5*te(dn*fe),yt=ce(dn,No)+3e-6*re(No*fe),xt=Ve*re(yt)+.0065,Wt=Ve*te(yt)+.006;return[xt,Wt]}const je=180/Math.PI,be=Math.PI/180,ve=6378137,ye=20037508342789244e-9;function Ce(ho){return[ho[0]*je/ve,(Math.PI*.5-2*Math.atan(Math.exp(-ho[1]/ve)))*je]}function xe(ho){const go=Math.abs(ho[0])<=180?ho[0]:ho[0]-(ho[0]<0?-1:1)*360,ji=[ve*go*be,ve*Math.log(Math.tan(Math.PI*.25+.5*ho[1]*be))];return ji[0]>ye&&(ji[0]=ye),ji[0]<-ye&&(ji[0]=-ye),ji[1]>ye&&(ji[1]=ye),ji[1]<-ye&&(ji[1]=-ye),ji}const{abs:Ae}=Math,ge=[1289059486e-2,836237787e-2,5591021,348198983e-2,167804312e-2,0],We=[75,60,45,30,15,0],Se=[[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 dt(ho,go,ji){const No=Ae(go)/ji[9];let dn=ji[0]+ji[1]*Ae(ho),Ve=ji[2]+ji[3]*No+ji[4]*Math.pow(No,2)+ji[5]*Math.pow(No,3)+ji[6]*Math.pow(No,4)+ji[7]*Math.pow(No,5)+ji[8]*Math.pow(No,6);return dn*=ho<0?-1:1,Ve*=go<0?-1:1,[dn,Ve]}function He(ho){const[go,ji]=ho;let No=[];for(let dn=0;dnWe[dn]){No=Pt[dn];break}return dt(go,ji,No)}function Ct(ho){const[go,ji]=ho;let No=[];for(let dn=0;dn=ge[dn]){No=Se[dn];break}return dt(go,ji,No)}function ft(ho,go){if(!ho)throw new Error(go)}function zt(ho){return!!ho&&Object.prototype.toString.call(ho)==="[object Array]"}function mt(ho){return!isNaN(Number(ho))&&ho!==null&&!zt(ho)}function yn(...ho){const go=ho.length-1;return function(...ji){let No=go,dn=ho[go].apply(null,ji);for(;No--;)dn=ho[No].call(null,dn);return dn}}function Bn(ho,go,ji=!1){if(ho===null)return;let No,dn,Ve,yt,xt,Wt,sn=0,Ot=0,Tt,bt;const{type:Ht}=ho,zn=Ht==="FeatureCollection",en=Ht==="Feature",fr=zn?ho.features.length:1;for(let Kr=0;Kr=2,`Invalid input coordinate: ${ho}`),ft(mt(ho[0])&&mt(ho[1]),`Invalid input coordinate: ${ho}`),ho=ho.map(Number),yt=!0);const xt=dn;return yt?xt(ho):(Bn(ho,Wt=>{[Wt[0],Wt[1]]=xt(Wt)}),ho)}const So=Object.assign(Object.assign({},Lr),{CRSTypes:Lr,transform:me})},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(te){if(te.type!=="Feature")throw new Error("invalid features");te.bbox=te.bbox?te.bbox:z(te),W.push(te)}):k(P,function(te){if(te.type!=="Feature")throw new Error("invalid features");te.bbox=te.bbox?te.bbox:z(te),W.push(te)}),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(ge){try{return b('"use strict"; return ('+ge+").constructor;")()}catch(We){}},N=Object.getOwnPropertyDescriptor;if(N)try{N({},"")}catch(ge){N=null}var w=function(){throw new z},A=N?function(){try{return arguments.callee,w}catch(ge){try{return N(arguments,"callee").get}catch(We){return w}}}():w,C=m(9997)(),f=m(77916)(),S=Object.getPrototypeOf||(f?function(ge){return ge.__proto__}:null),P={},W=typeof Uint8Array=="undefined"||!S?y:S(Uint8Array),te={"%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(ge){var re=S(S(ge));te["%Error.prototype%"]=re}var ce=function ge(We){var Se;if(We==="%AsyncFunction%")Se=k("async function () {}");else if(We==="%GeneratorFunction%")Se=k("function* () {}");else if(We==="%AsyncGeneratorFunction%")Se=k("async function* () {}");else if(We==="%AsyncGenerator%"){var Pt=ge("%AsyncGeneratorFunction%");Pt&&(Se=Pt.prototype)}else if(We==="%AsyncIteratorPrototype%"){var dt=ge("%AsyncGenerator%");dt&&S&&(Se=S(dt.prototype))}return te[We]=Se,Se},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),je=he.call(Function.call,String.prototype.replace),be=he.call(Function.call,String.prototype.slice),ve=he.call(Function.call,RegExp.prototype.exec),ye=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ce=/\\(\\)?/g,xe=function(We){var Se=be(We,0,1),Pt=be(We,-1);if(Se==="%"&&Pt!=="%")throw new I("invalid intrinsic syntax, expected closing `%`");if(Pt==="%"&&Se!=="%")throw new I("invalid intrinsic syntax, expected opening `%`");var dt=[];return je(We,ye,function(He,Ct,ft,zt){dt[dt.length]=ft?je(zt,Ce,"$1"):Ct||He}),dt},Ae=function(We,Se){var Pt=We,dt;if(fe(pe,Pt)&&(dt=pe[Pt],Pt="%"+dt[0]+"%"),fe(te,Pt)){var He=te[Pt];if(He===P&&(He=ce(Pt)),typeof He=="undefined"&&!Se)throw new z("intrinsic "+We+" exists, but is not available. Please file an issue!");return{alias:dt,name:Pt,value:He}}throw new I("intrinsic "+We+" does not exist!")};nt.exports=function(We,Se){if(typeof We!="string"||We.length===0)throw new z("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Se!="boolean")throw new z('"allowMissing" argument must be a boolean');if(ve(/^%?[^%]*%?$/,We)===null)throw new I("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Pt=xe(We),dt=Pt.length>0?Pt[0]:"",He=Ae("%"+dt+"%",Se),Ct=He.name,ft=He.value,zt=!1,mt=He.alias;mt&&(dt=mt[0],Ie(Pt,Be([0,1],mt)));for(var yn=1,Bn=!0;yn=Pt.length){var ro=N(ft,Lr);Bn=!!ro,Bn&&"get"in ro&&!("originalValue"in ro.get)?ft=ro.get:ft=ft[Lr]}else Bn=fe(ft,Lr),ft=ft[Lr];Bn&&!zt&&(te[Ct]=ft)}}return ft}},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,at,gt){return setTimeout(Be(tt,gt),at)}function W(tt,at,gt){return Array.isArray(tt)?(te(tt,gt[at],gt),!0):!1}function te(tt,at,gt){var Re;if(tt)if(tt.forEach)tt.forEach(at,gt);else if(tt.length!==k)for(Re=0;Re\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",ln=I.console&&(I.console.warn||I.console.log);return ln&&ln.call(I.console,Re,St),tt.apply(this,arguments)}}var ce;typeof Object.assign!="function"?ce=function(at){if(at===k||at===null)throw new TypeError("Cannot convert undefined or null to object");for(var gt=Object(at),Re=1;Re-1}function xe(tt){return tt.trim().split(/\s+/g)}function Ae(tt,at,gt){if(tt.indexOf&&!gt)return tt.indexOf(at);for(var Re=0;Reki[at]}):Re=Re.sort()),Re}function Se(tt,at){for(var gt,Re,lt=at[0].toUpperCase()+at.slice(1),St=0;St1&&!gt.firstMultiple?gt.firstMultiple=Ht(at):lt===1&&(gt.firstMultiple=!1);var St=gt.firstInput,ln=gt.firstMultiple,Vn=ln?ln.center:St.center,wr=at.center=zn(Re);at.timeStamp=S(),at.deltaTime=at.timeStamp-St.timeStamp,at.angle=ii(Vn,wr),at.distance=Kr(Vn,wr),Tt(gt,at),at.offsetDirection=fr(at.deltaX,at.deltaY);var ki=en(at.deltaTime,at.deltaX,at.deltaY);at.overallVelocityX=ki.x,at.overallVelocityY=ki.y,at.overallVelocity=f(ki.x)>f(ki.y)?ki.x:ki.y,at.scale=ln?uo(ln.pointers,Re):1,at.rotation=ln?si(ln.pointers,Re):0,at.maxPointers=gt.prevInput?at.pointers.length>gt.prevInput.maxPointers?at.pointers.length:gt.prevInput.maxPointers:at.pointers.length,bt(gt,at);var Vi=tt.element;ye(at.srcEvent.target,Vi)&&(Vi=at.srcEvent.target),at.target=Vi}function Tt(tt,at){var gt=at.center,Re=tt.offsetDelta||{},lt=tt.prevDelta||{},St=tt.prevInput||{};(at.eventType===ro||St.eventType===_r)&&(lt=tt.prevDelta={x:St.deltaX||0,y:St.deltaY||0},Re=tt.offsetDelta={x:gt.x,y:gt.y}),at.deltaX=lt.x+(gt.x-Re.x),at.deltaY=lt.y+(gt.y-Re.y)}function bt(tt,at){var gt=tt.lastInterval||at,Re=at.timeStamp-gt.timeStamp,lt,St,ln,Vn;if(at.eventType!=Bo&&(Re>gi||gt.velocity===k)){var wr=at.deltaX-gt.deltaX,ki=at.deltaY-gt.deltaY,Vi=en(Re,wr,ki);St=Vi.x,ln=Vi.y,lt=f(Vi.x)>f(Vi.y)?Vi.x:Vi.y,Vn=fr(wr,ki),tt.lastInterval=at}else lt=gt.velocity,St=gt.velocityX,ln=gt.velocityY,Vn=gt.direction;at.velocity=lt,at.velocityX=St,at.velocityY=ln,at.direction=Vn}function Ht(tt){for(var at=[],gt=0;gt=f(at)?tt<0?me:So:at<0?ho:go}function Kr(tt,at,gt){gt||(gt=Ve);var Re=at[gt[0]]-tt[gt[0]],lt=at[gt[1]]-tt[gt[1]];return Math.sqrt(Re*Re+lt*lt)}function ii(tt,at,gt){gt||(gt=Ve);var Re=at[gt[0]]-tt[gt[0]],lt=at[gt[1]]-tt[gt[1]];return Math.atan2(lt,Re)*180/Math.PI}function si(tt,at){return ii(at[1],at[0],yt)+ii(tt[1],tt[0],yt)}function uo(tt,at){return Kr(at[0],at[1],yt)/Kr(tt[0],tt[1],yt)}var Qo={mousedown:ro,mousemove:To,mouseup:_r},_n="mousedown",Vr="mousemove mouseup";function qr(){this.evEl=_n,this.evWin=Vr,this.pressed=!1,xt.apply(this,arguments)}fe(qr,xt,{handler:function(at){var gt=Qo[at.type];gt&ro&&at.button===0&&(this.pressed=!0),gt&To&&at.which!==1&&(gt=_r),this.pressed&&(gt&_r&&(this.pressed=!1),this.callback(this.manager,gt,{pointers:[at],changedPointers:[at],pointerType:Lr,srcEvent:at}))}});var Ui={pointerdown:ro,pointermove:To,pointerup:_r,pointercancel:Bo,pointerout:Bo},xo={2:yn,3:Bn,4:Lr,5:ri},Us="pointerdown",$n="pointermove pointerup pointercancel";I.MSPointerEvent&&!I.PointerEvent&&(Us="MSPointerDown",$n="MSPointerMove MSPointerUp MSPointerCancel");function Kn(){this.evEl=Us,this.evWin=$n,xt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}fe(Kn,xt,{handler:function(at){var gt=this.store,Re=!1,lt=at.type.toLowerCase().replace("ms",""),St=Ui[lt],ln=xo[at.pointerType]||at.pointerType,Vn=ln==yn,wr=Ae(gt,at.pointerId,"pointerId");St&ro&&(at.button===0||Vn)?wr<0&&(gt.push(at),wr=gt.length-1):St&(_r|Bo)&&(Re=!0),!(wr<0)&&(gt[wr]=at,this.callback(this.manager,St,{pointers:gt,changedPointers:[at],pointerType:ln,srcEvent:at}),Re&>.splice(wr,1))}});var Fr={touchstart:ro,touchmove:To,touchend:_r,touchcancel:Bo},mi="touchstart",Tr="touchstart touchmove touchend touchcancel";function ti(){this.evTarget=mi,this.evWin=Tr,this.started=!1,xt.apply(this,arguments)}fe(ti,xt,{handler:function(at){var gt=Fr[at.type];if(gt===ro&&(this.started=!0),!!this.started){var Re=di.call(this,at,gt);gt&(_r|Bo)&&Re[0].length-Re[1].length===0&&(this.started=!1),this.callback(this.manager,gt,{pointers:Re[0],changedPointers:Re[1],pointerType:yn,srcEvent:at})}}});function di(tt,at){var gt=ge(tt.touches),Re=ge(tt.changedTouches);return at&(_r|Bo)&&(gt=We(gt.concat(Re),"identifier",!0)),[gt,Re]}var rn={touchstart:ro,touchmove:To,touchend:_r,touchcancel:Bo},Qn="touchstart touchmove touchend touchcancel";function Xr(){this.evTarget=Qn,this.targetIds={},xt.apply(this,arguments)}fe(Xr,xt,{handler:function(at){var gt=rn[at.type],Re=ao.call(this,at,gt);Re&&this.callback(this.manager,gt,{pointers:Re[0],changedPointers:Re[1],pointerType:yn,srcEvent:at})}});function ao(tt,at){var gt=ge(tt.touches),Re=this.targetIds;if(at&(ro|To)&>.length===1)return Re[gt[0].identifier]=!0,[gt,gt];var lt,St,ln=ge(tt.changedTouches),Vn=[],wr=this.target;if(St=gt.filter(function(ki){return ye(ki.target,wr)}),at===ro)for(lt=0;lt-1&&Re.splice(St,1)};setTimeout(lt,as)}}function vi(tt){for(var at=tt.srcEvent.clientX,gt=tt.srcEvent.clientY,Re=0;Re-1&&this.requireFail.splice(at,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(tt){return!!this.simultaneous[tt.id]},emit:function(tt){var at=this,gt=this.state;function Re(lt){at.manager.emit(lt,tt)}gt=Xn&&Re(at.options.event+Ua(gt))},tryEmit:function(tt){if(this.canEmit())return this.emit(tt);this.state=fa},canEmit:function(){for(var tt=0;ttat.threshold&<&at.direction},attrTest:function(tt){return $r.prototype.attrTest.call(this,tt)&&(this.state&Mi||!(this.state&Mi)&&this.directionTest(tt))},emit:function(tt){this.pX=tt.deltaX,this.pY=tt.deltaY;var at=Ao(tt.direction);at&&(tt.additionalEvent=this.options.event+at),this._super.emit.call(this,tt)}});function Dr(){$r.apply(this,arguments)}fe(Dr,$r,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ir]},attrTest:function(tt){return this._super.attrTest.call(this,tt)&&(Math.abs(tt.scale-1)>this.options.threshold||this.state&Mi)},emit:function(tt){if(tt.scale!==1){var at=tt.scale<1?"in":"out";tt.additionalEvent=this.options.event+at}this._super.emit.call(this,tt)}});function pr(){Ws.apply(this,arguments),this._timer=null,this._input=null}fe(pr,Ws,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[oi]},process:function(tt){var at=this.options,gt=tt.pointers.length===at.pointers,Re=tt.distanceat.time;if(this._input=tt,!Re||!gt||tt.eventType&(_r|Bo)&&!lt)this.reset();else if(tt.eventType&ro)this.reset(),this._timer=P(function(){this.state=ms,this.tryEmit()},at.time,this);else if(tt.eventType&_r)return ms;return fa},reset:function(){clearTimeout(this._timer)},emit:function(tt){this.state===ms&&(tt&&tt.eventType&_r?this.manager.emit(this.options.event+"up",tt):(this._input.timeStamp=S(),this.manager.emit(this.options.event,this._input)))}});function ci(){$r.apply(this,arguments)}fe(ci,$r,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ir]},attrTest:function(tt){return this._super.attrTest.call(this,tt)&&(Math.abs(tt.rotation)>this.options.threshold||this.state&Mi)}});function Eo(){$r.apply(this,arguments)}fe(Eo,$r,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ji|No,pointers:1},getTouchAction:function(){return er.prototype.getTouchAction.call(this)},attrTest:function(tt){var at=this.options.direction,gt;return at&(ji|No)?gt=tt.overallVelocity:at&ji?gt=tt.overallVelocityX:at&No&&(gt=tt.overallVelocityY),this._super.attrTest.call(this,tt)&&at&tt.offsetDirection&&tt.distance>this.options.threshold&&tt.maxPointers==this.options.pointers&&f(gt)>this.options.velocity&&tt.eventType&_r},emit:function(tt){var at=Ao(tt.offsetDirection);at&&this.manager.emit(this.options.event+at,tt),this.manager.emit(this.options.event,tt)}});function mo(){Ws.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}fe(mo,Ws,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Zi]},process:function(tt){var at=this.options,gt=tt.pointers.length===at.pointers,Re=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,te=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+=te,w/=256,z-=8);for(N=N<0;m[I+W]=N&255,W+=te,N/=256,C-=8);m[I+W-te]|=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 te={},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)&&(te=Reflect.getMetadata(C,f));var pe=te[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&&je[je.length-1])&&(Ce[0]===6||Ce[0]===2)){fe=0;continue}if(Ce[0]===3&&(!je||Ce[1]>je[0]&&Ce[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 te=m(71971);Object.defineProperty(V,"zY",{enumerable:!0,get:function(){return te.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 te(Ie,je,be,ve,ye,Ce){var xe=Ie?z.MULTI_INJECT_TAG:z.INJECT_TAG,Ae=new A.Metadata(xe,be),ge=new P.Target(je,ve,be,Ae);if(ye!==void 0){var We=new A.Metadata(ye,Ce);ge.metadata.push(We)}return ge}function re(Ie,je,be,ve,ye){var Ce=he(be.container,ye.serviceIdentifier),xe=[];return Ce.length===y.BindingCount.NoBindingsAvailable&&be.container.options.autoBindInjectable&&typeof ye.serviceIdentifier=="function"&&Ie.getConstructorMetadata(ye.serviceIdentifier).compilerGeneratedMetadata&&(be.container.bind(ye.serviceIdentifier).toSelf(),Ce=he(be.container,ye.serviceIdentifier)),je?xe=Ce:xe=Ce.filter(function(Ae){var ge=new S.Request(Ae.serviceIdentifier,be,ve,Ae,ye);return Ae.constraint(ge)}),ce(ye.serviceIdentifier,xe,ye,be.container),xe}function ce(Ie,je,be,ve){switch(je.length){case y.BindingCount.NoBindingsAvailable:if(be.isOptional())return je;var ye=N.getServiceIdentifierAsString(Ie),Ce=I.NOT_REGISTERED;throw Ce+=N.listMetadataForTarget(ye,be),Ce+=N.listRegisteredBindingsForServiceIdentifier(ve,ye,he),new Error(Ce);case y.BindingCount.OnlyOneBindingAvailable:if(!be.isArray())return je;case y.BindingCount.MultipleBindingsAvailable:default:if(be.isArray())return je;var ye=N.getServiceIdentifierAsString(Ie),Ce=I.AMBIGUOUS_MATCH+" "+ye;throw Ce+=N.listRegisteredBindingsForServiceIdentifier(ve,ye,he),new Error(Ce)}}function pe(Ie,je,be,ve,ye,Ce){var xe,Ae;if(ye===null){xe=re(Ie,je,ve,null,Ce),Ae=new S.Request(be,ve,null,xe,Ce);var ge=new C.Plan(ve,Ae);ve.addPlan(ge)}else xe=re(Ie,je,ve,ye,Ce),Ae=ye.addChildRequest(Ce.serviceIdentifier,xe,Ce);xe.forEach(function(We){var Se=null;if(Ce.isArray())Se=Ae.addChildRequest(We.serviceIdentifier,We,Ce);else{if(We.cache)return;Se=Ae}if(We.type===b.BindingTypeEnum.Instance&&We.implementationType!==null){var Pt=f.getDependencies(Ie,We.implementationType);if(!ve.container.options.skipBaseClassChecks){var dt=f.getBaseClassDependencyCount(Ie,We.implementationType);if(Pt.length0,ye=be.length>pe.length,Ce=ve||ye?be.length:pe.length,xe=S(he,ce,Be,je,Ce),Ae=P(re,pe),ge=y(y([],xe),Ae);return ge}function f(re,ce,pe,he,fe){var Be=fe[re.toString()]||[],Ie=te(Be),je=Ie.unmanaged!==!0,be=he[re],ve=Ie.inject||Ie.multiInject;if(be=ve||be,be instanceof I.LazyServiceIdentifer&&(be=be.unwrap()),je){var ye=be===Object,Ce=be===Function,xe=be===void 0,Ae=ye||Ce||xe;if(!ce&&Ae){var ge=b.MISSING_INJECT_ANNOTATION+" argument "+re+" in class "+pe+".";throw new Error(ge)}var We=new w.Target(z.TargetTypeEnum.ConstructorArgument,Ie.targetName,be);return We.metadata=Be,We}return null}function S(re,ce,pe,he,fe){for(var Be=[],Ie=0;Ie0?je:W(re,pe)}else return 0}V.getBaseClassDependencyCount=W;function te(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}),te=W.map(S);P=N(C,te),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(),te=!f.parentRequest||!f.parentRequest.target||!f.target||!f.parentRequest.target.matchesArray(f.target.serviceIdentifier);if(W&&te)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(te){S+=te.toString()+` -`})," "+C+` - `+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"),te=W&&b(W,"value");if(!te)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]"}},72402:function(nt,V,m){(function(y){if(!0)nt.exports=y();else var I})(function(){var y,I,b;return function z(k,N,w){function A(S,P){if(!N[S]){if(!k[S]){var W=void 0;if(!P&&W)return require(S,!0);if(C)return C(S,!0);var te=new Error("Cannot find module '"+S+"'");throw te.code="MODULE_NOT_FOUND",te}var re=N[S]={exports:{}};k[S][0].call(re.exports,function(ce){var pe=k[S][1][ce];return A(pe||ce)},re,re.exports,z,k,N,w)}return N[S].exports}for(var C=void 0,f=0;f=43)}}).catch(function(){return!1})}function Ce(er){return typeof fe=="boolean"?W.resolve(fe):ye(er).then(function(Dr){return fe=Dr,fe})}function xe(er){var Dr=Be[er.name],pr={};pr.promise=new W(function(ci,Eo){pr.resolve=ci,pr.reject=Eo}),Dr.deferredOperations.push(pr),Dr.dbReady?Dr.dbReady=Dr.dbReady.then(function(){return pr.promise}):Dr.dbReady=pr.promise}function Ae(er){var Dr=Be[er.name],pr=Dr.deferredOperations.pop();if(pr)return pr.resolve(),pr.promise}function ge(er,Dr){var pr=Be[er.name],ci=pr.deferredOperations.pop();if(ci)return ci.reject(Dr),ci.promise}function We(er,Dr){return new W(function(pr,ci){if(Be[er.name]=Be[er.name]||Bn(),er.db)if(Dr)xe(er),er.db.close();else return pr(er.db);var Eo=[er.name];Dr&&Eo.push(er.version);var mo=f.open.apply(f,Eo);Dr&&(mo.onupgradeneeded=function(Ts){var xs=mo.result;try{xs.createObjectStore(er.storeName),Ts.oldVersion<=1&&xs.createObjectStore(he)}catch(Er){if(Er.name==="ConstraintError")console.warn('The database "'+er.name+'" has been upgraded from version '+Ts.oldVersion+" to version "+Ts.newVersion+', but the storage "'+er.storeName+'" already exists.');else throw Er}}),mo.onerror=function(Ts){Ts.preventDefault(),ci(mo.error)},mo.onsuccess=function(){var Ts=mo.result;Ts.onversionchange=function(xs){xs.target.close()},pr(Ts),Ae(er)}})}function Se(er){return We(er,!1)}function Pt(er){return We(er,!0)}function dt(er,Dr){if(!er.db)return!0;var pr=!er.db.objectStoreNames.contains(er.storeName),ci=er.versioner.db.version;if(ci&&(er.version!==Dr&&console.warn('The database "'+er.name+`" can't be downgraded from version `+er.db.version+" to version "+er.version+"."),er.version=er.db.version),Eo||pr){if(pr){var mo=er.db.version+1;mo>er.version&&(er.version=mo)}return!0}return!1}function He(er){return new W(function(Dr,pr){var ci=new FileReader;ci.onerror=pr,ci.onloadend=function(Eo){var mo=btoa(Eo.target.result||"");Dr({__local_forage_encoded_blob:!0,data:mo,type:er.type})},ci.readAsBinaryString(er)})}function Ct(er){var Dr=ve(atob(er.data));return P([Dr],{type:er.type})}function ft(er){return er&&er.__local_forage_encoded_blob}function zt(er){var Dr=this,pr=Dr._initReady().then(function(){var ci=Be[Dr._dbInfo.name];if(ci&&ci.dbReady)return ci.dbReady});return re(pr,er,er),pr}function mt(er){xe(er);for(var Dr=Be[er.name],pr=Dr.forages,ci=0;ci0&&(!er.db||mo.name==="InvalidStateError"||mo.name==="NotFoundError"))return W.resolve().then(function(){if(!er.db||mo.name==="NotFoundError"&&!er.db.objectStoreNames.contains(er.storeName)&&er.version<=er.db.version)return er.db&&(er.version=er.db.version+1),Pt(er)}).then(function(){return mt(er).then(function(){yn(er,Dr,pr,ci-1)})}).catch(pr);pr(mo)}}function Bn(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Lr(er){var Dr=this,pr={db:null};if(er)for(var ci in er)pr[ci]=er[ci];var Eo=Be[pr.name];Eo||(Eo=Bn(),Be[pr.name]=Eo),Eo.forages.push(Dr),Dr._initReady||(Dr._initReady=Dr.ready,Dr.ready=zt);var mo=[];function Ts(){return W.resolve()}for(var xs=0;xs>4,Xt[Eo++]=(Ts&15)<<4|xs>>2,Xt[Eo++]=(xs&3)<<6|Er&63;return ui}function Qo(er){var Dr=new Uint8Array(er),pr="",ci;for(ci=0;ci>2],pr+=ji[(Dr[ci]&3)<<4|Dr[ci+1]>>4],pr+=ji[(Dr[ci+1]&15)<<2|Dr[ci+2]>>6],pr+=ji[Dr[ci+2]&63];return Dr.length%3===2?pr=pr.substring(0,pr.length-1)+"=":Dr.length%3===1&&(pr=pr.substring(0,pr.length-2)+"=="),pr}function _n(er,Dr){var pr="";if(er&&(pr=si.call(er)),er&&(pr==="[object ArrayBuffer]"||er.buffer&&si.call(er.buffer)==="[object ArrayBuffer]")){var ci,Eo=Ve;er instanceof ArrayBuffer?(ci=er,Eo+=xt):(ci=er.buffer,pr==="[object Int8Array]"?Eo+=sn:pr==="[object Uint8Array]"?Eo+=Ot:pr==="[object Uint8ClampedArray]"?Eo+=Tt:pr==="[object Int16Array]"?Eo+=bt:pr==="[object Uint16Array]"?Eo+=zn:pr==="[object Int32Array]"?Eo+=Ht:pr==="[object Uint32Array]"?Eo+=en:pr==="[object Float32Array]"?Eo+=fr:pr==="[object Float64Array]"?Eo+=Kr:Dr(new Error("Failed to get type for BinaryArray"))),Dr(Eo+Qo(ci))}else if(pr==="[object Blob]"){var mo=new FileReader;mo.onload=function(){var Ts=No+er.type+"~"+Qo(this.result);Dr(Ve+Wt+Ts)},mo.readAsArrayBuffer(er)}else try{Dr(JSON.stringify(er))}catch(Ts){console.error("Couldn't convert value into a JSON string: ",er),Dr(null,Ts)}}function Vr(er){if(er.substring(0,yt)!==Ve)return JSON.parse(er);var Dr=er.substring(ii),pr=er.substring(yt,ii),ci;if(pr===Wt&&dn.test(Dr)){var Eo=Dr.match(dn);ci=Eo[1],Dr=Dr.substring(Eo[0].length)}var mo=uo(Dr);switch(pr){case xt:return mo;case Wt:return P([mo],{type:ci});case sn:return new Int8Array(mo);case Ot:return new Uint8Array(mo);case Tt:return new Uint8ClampedArray(mo);case bt:return new Int16Array(mo);case zn:return new Uint16Array(mo);case Ht:return new Int32Array(mo);case en:return new Uint32Array(mo);case fr:return new Float32Array(mo);case Kr:return new Float64Array(mo);default:throw new Error("Unkown type: "+pr)}}var qr={serialize:_n,deserialize:Vr,stringToBuffer:uo,bufferToString:Qo};function Ui(er,Dr,pr,ci){er.executeSql("CREATE TABLE IF NOT EXISTS "+Dr.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],pr,ci)}function xo(er){var Dr=this,pr={db:null};if(er)for(var ci in er)pr[ci]=typeof er[ci]!="string"?er[ci].toString():er[ci];var Eo=new W(function(mo,Ts){try{pr.db=openDatabase(pr.name,String(pr.version),pr.description,pr.size)}catch(xs){return Ts(xs)}pr.db.transaction(function(xs){Ui(xs,pr,function(){Dr._dbInfo=pr,mo()},function(Er,ui){Ts(ui)})},Ts)});return pr.serializer=qr,Eo}function Us(er,Dr,pr,ci,Eo,mo){er.executeSql(pr,ci,Eo,function(Ts,xs){xs.code===xs.SYNTAX_ERR?Ts.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Dr.storeName],function(Er,ui){ui.rows.length?mo(Er,xs):Ui(Er,Dr,function(){Er.executeSql(pr,ci,Eo,mo)},mo)},mo):mo(Ts,xs)},mo)}function $n(er,Dr){var pr=this;er=ce(er);var ci=new W(function(Eo,mo){pr.ready().then(function(){var Ts=pr._dbInfo;Ts.db.transaction(function(xs){Us(xs,Ts,"SELECT * FROM "+Ts.storeName+" WHERE key = ? LIMIT 1",[er],function(Er,ui){var Xt=ui.rows.length?ui.rows.item(0).value:null;Xt&&(Xt=Ts.serializer.deserialize(Xt)),Eo(Xt)},function(Er,ui){mo(ui)})})}).catch(mo)});return te(ci,Dr),ci}function Kn(er,Dr){var pr=this,ci=new W(function(Eo,mo){pr.ready().then(function(){var Ts=pr._dbInfo;Ts.db.transaction(function(xs){Us(xs,Ts,"SELECT * FROM "+Ts.storeName,[],function(Er,ui){for(var Xt=ui.rows,gn=Xt.length,En=0;En0){Ts(Fr.apply(Eo,[er,Er,pr,ci-1]));return}xs(En)}})})}).catch(xs)});return te(mo,pr),mo}function mi(er,Dr,pr){return Fr.apply(this,[er,Dr,pr,1])}function Tr(er,Dr){var pr=this;er=ce(er);var ci=new W(function(Eo,mo){pr.ready().then(function(){var Ts=pr._dbInfo;Ts.db.transaction(function(xs){Us(xs,Ts,"DELETE FROM "+Ts.storeName+" WHERE key = ?",[er],function(){Eo()},function(Er,ui){mo(ui)})})}).catch(mo)});return te(ci,Dr),ci}function ti(er){var Dr=this,pr=new W(function(ci,Eo){Dr.ready().then(function(){var mo=Dr._dbInfo;mo.db.transaction(function(Ts){Us(Ts,mo,"DELETE FROM "+mo.storeName,[],function(){ci()},function(xs,Er){Eo(Er)})})}).catch(Eo)});return te(pr,er),pr}function di(er){var Dr=this,pr=new W(function(ci,Eo){Dr.ready().then(function(){var mo=Dr._dbInfo;mo.db.transaction(function(Ts){Us(Ts,mo,"SELECT COUNT(key) as c FROM "+mo.storeName,[],function(xs,Er){var ui=Er.rows.item(0).c;ci(ui)},function(xs,Er){Eo(Er)})})}).catch(Eo)});return te(pr,er),pr}function rn(er,Dr){var pr=this,ci=new W(function(Eo,mo){pr.ready().then(function(){var Ts=pr._dbInfo;Ts.db.transaction(function(xs){Us(xs,Ts,"SELECT key FROM "+Ts.storeName+" WHERE id = ? LIMIT 1",[er+1],function(Er,ui){var Xt=ui.rows.length?ui.rows.item(0).key:null;Eo(Xt)},function(Er,ui){mo(ui)})})}).catch(mo)});return te(ci,Dr),ci}function Qn(er){var Dr=this,pr=new W(function(ci,Eo){Dr.ready().then(function(){var mo=Dr._dbInfo;mo.db.transaction(function(Ts){Us(Ts,mo,"SELECT key FROM "+mo.storeName,[],function(xs,Er){for(var ui=[],Xt=0;Xt '__WebKitDatabaseInfoTable__'",[],function(Eo,mo){for(var Ts=[],xs=0;xs0}function vi(er){var Dr=this,pr={};if(er)for(var ci in er)pr[ci]=er[ci];return pr.keyPrefix=pn(er,Dr._defaultConfig),Jr()?(Dr._dbInfo=pr,pr.serializer=qr,W.resolve()):W.reject()}function Ti(er){var Dr=this,pr=Dr.ready().then(function(){for(var ci=Dr._dbInfo.keyPrefix,Eo=localStorage.length-1;Eo>=0;Eo--){var mo=localStorage.key(Eo);mo.indexOf(ci)===0&&localStorage.removeItem(mo)}});return te(pr,er),pr}function co(er,Dr){var pr=this;er=ce(er);var ci=pr.ready().then(function(){var Eo=pr._dbInfo,mo=localStorage.getItem(Eo.keyPrefix+er);return mo&&(mo=Eo.serializer.deserialize(mo)),mo});return te(ci,Dr),ci}function Qr(er,Dr){var pr=this,ci=pr.ready().then(function(){for(var Eo=pr._dbInfo,mo=Eo.keyPrefix,Ts=mo.length,xs=localStorage.length,Er=1,ui=0;ui=0;Ts--){var xs=localStorage.key(Ts);xs.indexOf(mo)===0&&localStorage.removeItem(xs)}}):Eo=W.reject("Invalid arguments"),te(Eo,Dr),Eo}var Ln={_driver:"localStorageWrapper",_initStorage:vi,_support:Bt(),iterate:Qr,getItem:co,setItem:Gn,removeItem:tn,clear:Ti,length:Ir,key:oi,keys:Zi,dropInstance:Ei},Ii=function(Dr,pr){return Dr===pr||typeof Dr=="number"&&typeof pr=="number"&&isNaN(Dr)&&isNaN(pr)},nr=function(Dr,pr){for(var ci=Dr.length,Eo=0;Eo-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),te=m(97541),re=m(4084),ce=m(80744),pe=m(57835),he=m(41626),fe=m(20816),Be=m(65226),Ie=m(55451),je=m(56730),be=1,ve=2,ye=4,Ce="[object Arguments]",xe="[object Array]",Ae="[object Boolean]",ge="[object Date]",We="[object Error]",Se="[object Function]",Pt="[object GeneratorFunction]",dt="[object Map]",He="[object Number]",Ct="[object Object]",ft="[object RegExp]",zt="[object Set]",mt="[object String]",yn="[object Symbol]",Bn="[object WeakMap]",Lr="[object ArrayBuffer]",ri="[object DataView]",gi="[object Float32Array]",ro="[object Float64Array]",To="[object Int8Array]",_r="[object Int16Array]",Bo="[object Int32Array]",fs="[object Uint8Array]",me="[object Uint8ClampedArray]",So="[object Uint16Array]",ho="[object Uint32Array]",go={};go[Ce]=go[xe]=go[Lr]=go[ri]=go[Ae]=go[ge]=go[gi]=go[ro]=go[To]=go[_r]=go[Bo]=go[dt]=go[He]=go[Ct]=go[ft]=go[zt]=go[mt]=go[yn]=go[fs]=go[me]=go[So]=go[ho]=!0,go[We]=go[Se]=go[Bn]=!1;function ji(No,dn,Ve,yt,xt,Wt){var sn,Ot=dn&be,Tt=dn&ve,bt=dn&ye;if(Ve&&(sn=xt?Ve(No,yt,xt,Wt):Ve(No)),sn!==void 0)return sn;if(!fe(No))return No;var Ht=ce(No);if(Ht){if(sn=W(No),!Ot)return w(No,sn)}else{var zn=P(No),en=zn==Se||zn==Pt;if(pe(No))return N(No,Ot);if(zn==Ct||zn==Ce||en&&!xt){if(sn=Tt||en?{}:re(No),!Ot)return Tt?C(No,k(sn,No)):A(No,z(sn,No))}else{if(!go[zn])return xt?No:{};sn=te(No,zn,Ot)}}Wt||(Wt=new y);var fr=Wt.get(No);if(fr)return fr;Wt.set(No,sn),Be(No)?No.forEach(function(si){sn.add(ji(si,dn,Ve,si,No,Wt))}):he(No)&&No.forEach(function(si,uo){sn.set(uo,ji(si,dn,Ve,uo,No,Wt))});var Kr=bt?Tt?S:f:Tt?je:Ie,ii=Ht?void 0:Kr(No);return I(ii||No,function(si,uo){ii&&(uo=si,si=No[uo]),b(sn,uo,ji(si,dn,Ve,uo,No,Wt))}),sn}nt.exports=ji},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);++wte))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||Se<0||fe&&Pt>=W}function ye(){var We=I();if(ve(We))return Ce(We);re=setTimeout(ye,be(We))}function Ce(We){return re=void 0,Be&&S?Ie(We):(S=P=void 0,te)}function xe(){re!==void 0&&clearTimeout(re),pe=0,S=ce=P=re=void 0}function Ae(){return re===void 0?te:Ce(I())}function ge(){var We=I(),Se=ve(We);if(S=arguments,P=this,ce=We,Se){if(re===void 0)return je(ce);if(fe)return clearTimeout(re),re=setTimeout(ye,C),Ie(ce)}return re===void 0&&(re=setTimeout(ye,C)),te}return ge.cancel=xe,ge.flush=Ae,ge}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,te=1,re=2,ce=1,pe=2,he=4,fe=8,Be=16,Ie=32,je=64,be=128,ve=256,ye=512,Ce=30,xe="...",Ae=800,ge=16,We=1,Se=2,Pt=3,dt=1/0,He=9007199254740991,Ct=17976931348623157e292,ft=0/0,zt=4294967295,mt=zt-1,yn=zt>>>1,Bn=[["ary",be],["bind",ce],["bindKey",pe],["curry",fe],["curryRight",Be],["flip",ye],["partial",Ie],["partialRight",je],["rearg",ve]],Lr="[object Arguments]",ri="[object Array]",gi="[object AsyncFunction]",ro="[object Boolean]",To="[object Date]",_r="[object DOMException]",Bo="[object Error]",fs="[object Function]",me="[object GeneratorFunction]",So="[object Map]",ho="[object Number]",go="[object Null]",ji="[object Object]",No="[object Promise]",dn="[object Proxy]",Ve="[object RegExp]",yt="[object Set]",xt="[object String]",Wt="[object Symbol]",sn="[object Undefined]",Ot="[object WeakMap]",Tt="[object WeakSet]",bt="[object ArrayBuffer]",Ht="[object DataView]",zn="[object Float32Array]",en="[object Float64Array]",fr="[object Int8Array]",Kr="[object Int16Array]",ii="[object Int32Array]",si="[object Uint8Array]",uo="[object Uint8ClampedArray]",Qo="[object Uint16Array]",_n="[object Uint32Array]",Vr=/\b__p \+= '';/g,qr=/\b(__p \+=) '' \+/g,Ui=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xo=/&(?:amp|lt|gt|quot|#39);/g,Us=/[&<>"']/g,$n=RegExp(xo.source),Kn=RegExp(Us.source),Fr=/<%-([\s\S]+?)%>/g,mi=/<%([\s\S]+?)%>/g,Tr=/<%=([\s\S]+?)%>/g,ti=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,di=/^\w*$/,rn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qn=/[\\^$.*+?()[\]{}|]/g,Xr=RegExp(Qn.source),ao=/^\s+/,as=/\s/,Bt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pn=/\{\n\/\* \[wrapped with (.+)\] \*/,xr=/,? & /,Jr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vi=/[()=,{}\[\]\/\s]/,Ti=/\\(\\)?/g,co=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qr=/\w*$/,oi=/^[-+]0x[0-9a-f]+$/i,Zi=/^0b[01]+$/i,Ir=/^\[object .+?Constructor\]$/,tn=/^0o[0-7]+$/i,Gn=/^(?:0|[1-9]\d*)$/,Ei=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ln=/($^)/,Ii=/['\n\r\u2028\u2029\\]/g,nr="\\ud800-\\udfff",wi="\\u0300-\\u036f",Mi="\\ufe20-\\ufe2f",Rr="\\u20d0-\\u20ff",Xn=wi+Mi+Rr,ms="\\u2700-\\u27bf",ya="a-z\\xdf-\\xf6\\xf8-\\xff",fa="\\xac\\xb1\\xd7\\xf7",Ws="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ua="\\u2000-\\u206f",Ao=" \\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",$r="\\ufe0e\\ufe0f",er=fa+Ws+Ua+Ao,Dr="['\u2019]",pr="["+nr+"]",ci="["+er+"]",Eo="["+Xn+"]",mo="\\d+",Ts="["+ms+"]",xs="["+ya+"]",Er="[^"+nr+er+mo+ms+ya+cl+"]",ui="\\ud83c[\\udffb-\\udfff]",Xt="(?:"+Eo+"|"+ui+")",gn="[^"+nr+"]",En="(?:\\ud83c[\\udde6-\\uddff]){2}",tt="[\\ud800-\\udbff][\\udc00-\\udfff]",at="["+cl+"]",gt="\\u200d",Re="(?:"+xs+"|"+Er+")",lt="(?:"+at+"|"+Er+")",St="(?:"+Dr+"(?:d|ll|m|re|s|t|ve))?",ln="(?:"+Dr+"(?:D|LL|M|RE|S|T|VE))?",Vn=Xt+"?",wr="["+$r+"]?",ki="(?:"+gt+"(?:"+[gn,En,tt].join("|")+")"+wr+Vn+")*",Vi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ki="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ps=wr+Vn+ki,Ns="(?:"+[Ts,En,tt].join("|")+")"+ps,Bs="(?:"+[gn+Eo+"?",Eo,En,tt,pr].join("|")+")",_a=RegExp(Dr,"g"),oo=RegExp(Eo,"g"),Ds=RegExp(ui+"(?="+ui+")|"+Bs+ps,"g"),oa=RegExp([at+"?"+xs+"+"+St+"(?="+[ci,at,"$"].join("|")+")",lt+"+"+ln+"(?="+[ci,at+Re,"$"].join("|")+")",at+"?"+Re+"+"+St,at+"+"+ln,Ki,Vi,mo,Ns].join("|"),"g"),va=RegExp("["+gt+nr+Xn+$r+"]"),Bl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fa=["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,ua={};ua[zn]=ua[en]=ua[fr]=ua[Kr]=ua[ii]=ua[si]=ua[uo]=ua[Qo]=ua[_n]=!0,ua[Lr]=ua[ri]=ua[bt]=ua[ro]=ua[Ht]=ua[To]=ua[Bo]=ua[fs]=ua[So]=ua[ho]=ua[ji]=ua[Ve]=ua[yt]=ua[xt]=ua[Ot]=!1;var Nl={};Nl[Lr]=Nl[ri]=Nl[bt]=Nl[Ht]=Nl[ro]=Nl[To]=Nl[zn]=Nl[en]=Nl[fr]=Nl[Kr]=Nl[ii]=Nl[So]=Nl[ho]=Nl[ji]=Nl[Ve]=Nl[yt]=Nl[xt]=Nl[Wt]=Nl[si]=Nl[uo]=Nl[Qo]=Nl[_n]=!0,Nl[Bo]=Nl[fs]=Nl[Ot]=!1;var vs={\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"},Hi={"&":"&","<":"<",">":">",'"':""","'":"'"},eo={"&":"&","<":"<",">":">",""":'"',"'":"'"},sa={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cs=parseFloat,Ka=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")(),vo=V&&!V.nodeType&&V,to=vo&&!0&&nt&&!nt.nodeType&&nt,hs=to&&to.exports===vo,jn=hs&&$u.process,yr=function(){try{var ja=to&&to.require&&to.require("util").types;return ja||jn&&jn.binding&&jn.binding("util")}catch(ru){}}(),ai=yr&&yr.isArrayBuffer,hi=yr&&yr.isDate,Ji=yr&&yr.isMap,so=yr&&yr.isRegExp,Pi=yr&&yr.isSet,us=yr&&yr.isTypedArray;function ga(ja,ru,zl){switch(zl.length){case 0:return ja.call(ru);case 1:return ja.call(ru,zl[0]);case 2:return ja.call(ru,zl[0],zl[1]);case 3:return ja.call(ru,zl[0],zl[1],zl[2])}return ja.apply(ru,zl)}function $a(ja,ru,zl,Au){for(var Vu=-1,Vd=ja==null?0:ja.length;++Vu-1}function ea(ja,ru,zl){for(var Au=-1,Vu=ja==null?0:ja.length;++Au-1;);return zl}function vd(ja,ru){for(var zl=ja.length;zl--&&xa(ru,ja[zl],0)>-1;);return zl}function Xd(ja,ru){for(var zl=ja.length,Au=0;zl--;)ja[zl]===ru&&++Au;return Au}var th=Nu(vs),jd=Nu(Hi);function vh(ja){return"\\"+sa[ja]}function id(ja,ru){return ja==null?I:ja[ru]}function nd(ja){return va.test(ja)}function Pf(ja){return Bl.test(ja)}function qd(ja){for(var ru,zl=[];!(ru=ja.next()).done;)zl.push(ru.value);return zl}function cc(ja){var ru=-1,zl=Array(ja.size);return ja.forEach(function(Au,Vu){zl[++ru]=[Vu,Au]}),zl}function Xc(ja,ru){return function(zl){return ja(ru(zl))}}function jh(ja,ru){for(var zl=-1,Au=ja.length,Vu=0,Vd=[];++zl-1}function ne(ue,Fe){var Zt=this.__data__,kr=dc(Zt,ue);return kr<0?(++this.size,Zt.push([ue,Fe])):Zt[kr][1]=Fe,this}Iu.prototype.clear=pc,Iu.prototype.delete=zc,Iu.prototype.get=Rd,Iu.prototype.has=X,Iu.prototype.set=ne;function J(ue){var Fe=-1,Zt=ue==null?0:ue.length;for(this.clear();++Fe=Fe?ue:Fe)),ue}function Xh(ue,Fe,Zt,kr,Vo,ia){var Tl,Vl=Fe&S,Mu=Fe&P,rd=Fe&W;if(Zt&&(Tl=Vo?Zt(ue,kr,Vo,ia):Zt(ue)),Tl!==I)return Tl;if(!hg(ue))return ue;var sd=mf(ue);if(sd){if(Tl=or(ue),!Vl)return mr(ue,Tl)}else{var Dd=da(ue),Yh=Dd==fs||Dd==me;if(ih(ue))return Vt(ue,Vl);if(Dd==ji||Dd==Lr||Yh&&!Vo){if(Tl=Mu||Yh?{}:Ai(ue),!Vl)return Mu?Co(ue,hd(Tl,ue)):yo(ue,wc(Tl,ue))}else{if(!Nl[Dd])return Vo?ue:{};Tl=Gi(ue,Dd,Vl)}}ia||(ia=new ts);var If=ia.get(ue);if(If)return If;ia.set(ue,Tl),Sv(ue)?ue.forEach(function(zp){Tl.add(Xh(zp,Fe,Zt,zp,ue,ia))}):B0(ue)&&ue.forEach(function(zp,kg){Tl.set(kg,Xh(zp,Fe,Zt,kg,ue,ia))});var fp=rd?Mu?kt:Lo:Mu?z0:fm,pp=sd?I:fp(ue);return dl(pp||ue,function(zp,kg){pp&&(kg=zp,zp=ue[kg]),Cu(Tl,kg,Xh(zp,Fe,Zt,kg,ue,ia))}),Tl}function Nc(ue){var Fe=fm(ue);return function(Zt){return Uc(Zt,ue,Fe)}}function Uc(ue,Fe,Zt){var kr=Zt.length;if(ue==null)return!kr;for(ue=oh(ue);kr--;){var Vo=Zt[kr],ia=Fe[Vo],Tl=ue[Vo];if(Tl===I&&!(Vo in ue)||!ia(Tl))return!1}return!0}function tf(ue,Fe,Zt){if(typeof ue!="function")throw new Uh(N);return Js(function(){ue.apply(I,Zt)},Fe)}function dh(ue,Fe,Zt,kr){var Vo=-1,ia=Pu,Tl=!0,Vl=ue.length,Mu=[],rd=Fe.length;if(!Vl)return Mu;Zt&&(Fe=Qa(Fe,ad(Zt))),kr?(ia=ea,Tl=!1):Fe.length>=z&&(ia=Fc,Tl=!1,Fe=new ei(Fe));e:for(;++VoVo?0:Vo+Zt),kr=kr===I||kr>Vo?Vo:vc(kr),kr<0&&(kr+=Vo),kr=Zt>kr?0:bh(kr);Zt0&&Zt(Vl)?Fe>1?vp(Vl,Fe-1,Zt,kr,Vo):el(Vo,Vl):kr||(Vo[Vo.length]=Vl)}return Vo}var Zc=Po(),Oc=Po(!0);function ld(ue,Fe){return ue&&Zc(ue,Fe,fm)}function yd(ue,Fe){return ue&&Oc(ue,Fe,fm)}function Bd(ue,Fe){return Za(Fe,function(Zt){return dg(ue[Zt])})}function Dc(ue,Fe){Fe=rt(Fe,ue);for(var Zt=0,kr=Fe.length;ue!=null&&ZtFe}function Ro(ue,Fe){return ue!=null&&Vh.call(ue,Fe)}function Gg(ue,Fe){return ue!=null&&Fe in oh(ue)}function Hp(ue,Fe,Zt){return ue>=Ff(Fe,Zt)&&ue=120&&sd.length>=120)?new ei(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,Fe){for(var Zt=ue?Fe.length:0,kr=Zt-1;Zt--;){var Vo=Fe[Zt];if(Zt==kr||Vo!==ia){var ia=Vo;ha(Vo)?sg.call(ue,Vo,1):Km(ue,Vo)}}return ue}function k0(ue,Fe){return ue+Np(Af()*(Fe-ue+1))}function Sp(ue,Fe,Zt,kr){for(var Vo=-1,ia=of(Pd((Fe-ue)/(Zt||1)),0),Tl=zl(ia);ia--;)Tl[kr?ia:++Vo]=ue,ue+=Zt;return Tl}function Xf(ue,Fe){var Zt="";if(!ue||Fe<1||Fe>He)return Zt;do Fe%2&&(Zt+=ue),Fe=Np(Fe/2),Fe&&(ue+=ue);while(Fe);return Zt}function Zh(ue,Fe){return Gc(Ca(ue,Fe,Pv),ue+"")}function a0(ue){return _l(cv(ue))}function M0(ue,Fe){var Zt=cv(ue);return et(Zt,Jd(Fe,0,Zt.length))}function Kg(ue,Fe,Zt,kr){if(!hg(ue))return ue;Fe=rt(Fe,ue);for(var Vo=-1,ia=Fe.length,Tl=ia-1,Vl=ue;Vl!=null&&++VoVo?0:Vo+Fe),Zt=Zt>Vo?Vo:Zt,Zt<0&&(Zt+=Vo),Vo=Fe>Zt?0:Zt-Fe>>>0,Fe>>>=0;for(var ia=zl(Vo);++kr>>1,Tl=ue[ia];Tl!==null&&!E0(Tl)&&(Zt?Tl<=Fe:Tl=z){var rd=Fe?null:Ft(ue);if(rd)return uf(rd);Tl=!1,Vo=Fc,Mu=new ei}else Mu=Fe?[]:Vl;e:for(;++kr=kr?ue:$d(ue,Fe,Zt)}var Ut=pg||function(ue){return Pc.clearTimeout(ue)};function Vt(ue,Fe){if(Fe)return ue.slice();var Zt=ue.length,kr=Qu?Qu(Zt):new ue.constructor(Zt);return ue.copy(kr),kr}function Yt(ue){var Fe=new ue.constructor(ue.byteLength);return new gf(Fe).set(new gf(ue)),Fe}function an(ue,Fe){var Zt=Fe?Yt(ue.buffer):ue.buffer;return new ue.constructor(Zt,ue.byteOffset,ue.byteLength)}function vn(ue){var Fe=new ue.constructor(ue.source,Qr.exec(ue));return Fe.lastIndex=ue.lastIndex,Fe}function Rn(ue){return Hd?oh(Hd.call(ue)):{}}function ur(ue,Fe){var Zt=Fe?Yt(ue.buffer):ue.buffer;return new ue.constructor(Zt,ue.byteOffset,ue.length)}function Ar(ue,Fe){if(ue!==Fe){var Zt=ue!==I,kr=ue===null,Vo=ue===ue,ia=E0(ue),Tl=Fe!==I,Vl=Fe===null,Mu=Fe===Fe,rd=E0(Fe);if(!Vl&&!rd&&!ia&&ue>Fe||ia&&Tl&&Mu&&!Vl&&!rd||kr&&Tl&&Mu||!Zt&&Mu||!Vo)return 1;if(!kr&&!ia&&!rd&&ue=Vl)return Mu;var rd=Zt[kr];return Mu*(rd=="desc"?-1:1)}}return ue.index-Fe.index}function Br(ue,Fe,Zt,kr){for(var Vo=-1,ia=ue.length,Tl=Zt.length,Vl=-1,Mu=Fe.length,rd=of(ia-Tl,0),sd=zl(Mu+rd),Dd=!kr;++Vl1?Zt[Vo-1]:I,Tl=Vo>2?Zt[2]:I;for(ia=ue.length>3&&typeof ia=="function"?(Vo--,ia):I,Tl&&Yo(Zt[0],Zt[1],Tl)&&(ia=Vo<3?I:ia,Vo=1),Fe=oh(Fe);++kr-1?Vo[ia?Fe[Tl]:Tl]:I}}function Hn(ue){return Sr(function(Fe){var Zt=Fe.length,kr=Zt,Vo=q.prototype.thru;for(ue&&Fe.reverse();kr--;){var ia=Fe[kr];if(typeof ia!="function")throw new Uh(N);if(Vo&&!Tl&&Pn(ia)=="wrapper")var Tl=new q([],!0)}for(kr=Tl?kr:Zt;++kr1&&tm.reverse(),sd&&MuVl))return!1;var rd=ia.get(ue),sd=ia.get(Fe);if(rd&&sd)return rd==Fe&&sd==ue;var Dd=-1,Yh=!0,If=Zt&re?new ei:I;for(ia.set(ue,Fe),ia.set(Fe,ue);++Dd1?"& ":"")+Fe[kr],Fe=Fe.join(Zt>2?", ":" "),ue.replace(Bt,`{ -/* [wrapped with `+Fe+`] */ -`)}function Ps(ue){return mf(ue)||Ep(ue)||!!(Ah&&ue&&ue[Ah])}function ha(ue,Fe){var Zt=typeof ue;return Fe=Fe==null?He:Fe,!!Fe&&(Zt=="number"||Zt!="symbol"&&Gn.test(ue))&&ue>-1&&ue%1==0&&ue0){if(++Fe>=Ae)return arguments[0]}else Fe=0;return ue.apply(I,arguments)}}function et(ue,Fe){var Zt=-1,kr=ue.length,Vo=kr-1;for(Fe=Fe===I?kr:Fe;++Zt1?ue[Fe-1]:I;return Zt=typeof Zt=="function"?(ue.pop(),Zt):I,Fo(ue,Zt)});function pu(ue){var Fe=Io(ue);return Fe.__chain__=!0,Fe}function ic(ue,Fe){return Fe(ue),ue}function od(ue,Fe){return Fe(ue)}var Oo=Sr(function(ue){var Fe=ue.length,Zt=Fe?ue[0]:0,kr=this.__wrapped__,Vo=function(ia){return ch(ia,ue)};return Fe>1||this.__actions__.length||!(kr instanceof se)||!ha(Zt)?this.thru(Vo):(kr=kr.slice(Zt,+Zt+(Fe?1:0)),kr.__actions__.push({func:od,args:[Vo],thisArg:I}),new q(kr,this.__chain__).thru(function(ia){return Fe&&!ia.length&&ia.push(I),ia}))});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,Fe=ue?I:this.__values__[this.__index__++];return{done:ue,value:Fe}}function Gd(){return this}function _(ue){for(var Fe,Zt=this;Zt instanceof F;){var kr=Fi(Zt);kr.__index__=0,kr.__values__=I,Fe?Vo.__wrapped__=kr:Fe=kr;var Vo=kr;Zt=Zt.__wrapped__}return Vo.__wrapped__=ue,Fe}function R(){var ue=this.__wrapped__;if(ue instanceof se){var Fe=ue;return this.__actions__.length&&(Fe=new se(this)),Fe=Fe.reverse(),Fe.__actions__.push({func:od,args:[Wd],thisArg:I}),new q(Fe,this.__chain__)}return this.thru(Wd)}function G(){return de(this.__wrapped__,this.__actions__)}var le=xi(function(ue,Fe,Zt){Vh.call(ue,Zt)?++ue[Zt]:Td(ue,Zt,1)});function ke(ue,Fe,Zt){var kr=mf(ue)?Ml:_h;return Zt&&Yo(ue,Fe,Zt)&&(Fe=I),kr(ue,dr(Fe,3))}function Qe(ue,Fe){var Zt=mf(ue)?Za:jp;return Zt(ue,dr(Fe,3))}var wt=yi(Du),jt=yi(Wc);function Nn(ue,Fe){return vp(Pa(ue,Fe),1)}function cr(ue,Fe){return vp(Pa(ue,Fe),dt)}function Ur(ue,Fe,Zt){return Zt=Zt===I?1:vc(Zt),vp(Pa(ue,Fe),Zt)}function bi(ue,Fe){var Zt=mf(ue)?dl:nh;return Zt(ue,dr(Fe,3))}function _o(ue,Fe){var Zt=mf(ue)?Hl:zh;return Zt(ue,dr(Fe,3))}var zo=xi(function(ue,Fe,Zt){Vh.call(ue,Zt)?ue[Zt].push(Fe):Td(ue,Zt,[Fe])});function qs(ue,Fe,Zt,kr){ue=Of(ue)?ue:cv(ue),Zt=Zt&&!kr?vc(Zt):0;var Vo=ue.length;return Zt<0&&(Zt=of(Vo+Zt,0)),vv(ue)?Zt<=Vo&&ue.indexOf(Fe,Zt)>-1:!!Vo&&xa(ue,Fe,Zt)>-1}var ra=Zh(function(ue,Fe,Zt){var kr=-1,Vo=typeof Fe=="function",ia=Of(ue)?zl(ue.length):[];return nh(ue,function(Tl){ia[++kr]=Vo?ga(Fe,Tl,Zt):Zd(Tl,Fe,Zt)}),ia}),al=xi(function(ue,Fe,Zt){Td(ue,Zt,Fe)});function Pa(ue,Fe){var Zt=mf(ue)?Qa:im;return Zt(ue,dr(Fe,3))}function Ol(ue,Fe,Zt,kr){return ue==null?[]:(mf(Fe)||(Fe=Fe==null?[]:[Fe]),Zt=kr?I:Zt,mf(Zt)||(Zt=Zt==null?[]:[Zt]),Qg(ue,Fe,Zt))}var jl=xi(function(ue,Fe,Zt){ue[Zt?0:1].push(Fe)},function(){return[[],[]]});function cu(ue,Fe,Zt){var kr=mf(ue)?Ul:lc,Vo=arguments.length<3;return kr(ue,dr(Fe,4),Zt,Vo,nh)}function lu(ue,Fe,Zt){var kr=mf(ue)?ql:lc,Vo=arguments.length<3;return kr(ue,dr(Fe,4),Zt,Vo,zh)}function Uu(ue,Fe){var Zt=mf(ue)?Za:jp;return Zt(ue,rh(dr(Fe,3)))}function kc(ue){var Fe=mf(ue)?_l:a0;return Fe(ue)}function ac(ue,Fe,Zt){(Zt?Yo(ue,Fe,Zt):Fe===I)?Fe=1:Fe=vc(Fe);var kr=mf(ue)?nu:M0;return kr(ue,Fe)}function _d(ue){var Fe=mf(ue)?xu:Gm;return Fe(ue)}function Xu(ue){if(ue==null)return 0;if(Of(ue))return vv(ue)?Nf(ue):ue.length;var Fe=da(ue);return Fe==So||Fe==yt?ue.size:rm(ue).length}function Nd(ue,Fe,Zt){var kr=mf(ue)?vu:K0;return Zt&&Yo(ue,Fe,Zt)&&(Fe=I),kr(ue,dr(Fe,3))}var qt=Zh(function(ue,Fe){if(ue==null)return[];var Zt=Fe.length;return Zt>1&&Yo(ue,Fe[0],Fe[1])?Fe=[]:Zt>2&&Yo(Fe[0],Fe[1],Fe[2])&&(Fe=[Fe[0]]),Qg(ue,vp(Fe,1),[])}),On=wp||function(){return Pc.Date.now()};function hr(ue,Fe){if(typeof Fe!="function")throw new Uh(N);return ue=vc(ue),function(){if(--ue<1)return Fe.apply(this,arguments)}}function Gr(ue,Fe,Zt){return Fe=Zt?I:Fe,Fe=ue&&Fe==null?ue.length:Fe,$t(ue,be,I,I,I,I,Fe)}function bo(ue,Fe){var Zt;if(typeof Fe!="function")throw new Uh(N);return ue=vc(ue),function(){return--ue>0&&(Zt=Fe.apply(this,arguments)),ue<=1&&(Fe=I),Zt}}var la=Zh(function(ue,Fe,Zt){var kr=ce;if(Zt.length){var Vo=jh(Zt,ir(la));kr|=Ie}return $t(ue,kr,Fe,Zt,Vo)}),Ya=Zh(function(ue,Fe,Zt){var kr=ce|pe;if(Zt.length){var Vo=jh(Zt,ir(Ya));kr|=Ie}return $t(Fe,kr,ue,Zt,Vo)});function ka(ue,Fe,Zt){Fe=Zt?I:Fe;var kr=$t(ue,fe,I,I,I,I,I,Fe);return kr.placeholder=ka.placeholder,kr}function Xl(ue,Fe,Zt){Fe=Zt?I:Fe;var kr=$t(ue,Be,I,I,I,I,I,Fe);return kr.placeholder=Xl.placeholder,kr}function wu(ue,Fe,Zt){var kr,Vo,ia,Tl,Vl,Mu,rd=0,sd=!1,Dd=!1,Yh=!0;if(typeof ue!="function")throw new Uh(N);Fe=Qd(Fe)||0,hg(Zt)&&(sd=!!Zt.leading,Dd="maxWait"in Zt,ia=Dd?of(Qd(Zt.maxWait)||0,Fe):ia,Yh="trailing"in Zt?!!Zt.trailing:Yh);function If(O0){var c1=kr,X1=Vo;return kr=Vo=I,rd=O0,Tl=ue.apply(X1,c1),Tl}function fp(O0){return rd=O0,Vl=Js(kg,Fe),sd?If(O0):Tl}function pp(O0){var c1=O0-Mu,X1=O0-rd,_x=Fe-c1;return Dd?Ff(_x,ia-X1):_x}function zp(O0){var c1=O0-Mu,X1=O0-rd;return Mu===I||c1>=Fe||c1<0||Dd&&X1>=ia}function kg(){var O0=On();if(zp(O0))return tm(O0);Vl=Js(kg,pp(O0))}function tm(O0){return Vl=I,Yh&&kr?If(O0):(kr=Vo=I,Tl)}function Zv(){Vl!==I&&Ut(Vl),rd=0,kr=Mu=Vo=Vl=I}function hv(){return Vl===I?Tl:tm(On())}function Gv(){var O0=On(),c1=zp(O0);if(kr=arguments,Vo=this,Mu=O0,c1){if(Vl===I)return fp(Mu);if(Dd)return Ut(Vl),Vl=Js(kg,Fe),If(Mu)}return Vl===I&&(Vl=Js(kg,Fe)),Tl}return Gv.cancel=Zv,Gv.flush=hv,Gv}var Ls=Zh(function(ue,Fe){return tf(ue,1,Fe)}),Kc=Zh(function(ue,Fe,Zt){return tf(ue,Qd(Fe)||0,Zt)});function fh(ue){return $t(ue,ye)}function ph(ue,Fe){if(typeof ue!="function"||Fe!=null&&typeof Fe!="function")throw new Uh(N);var Zt=function(){var kr=arguments,Vo=Fe?Fe.apply(this,kr):kr[0],ia=Zt.cache;if(ia.has(Vo))return ia.get(Vo);var Tl=ue.apply(this,kr);return Zt.cache=ia.set(Vo,Tl)||ia,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 Fe=arguments;switch(Fe.length){case 0:return!ue.call(this);case 1:return!ue.call(this,Fe[0]);case 2:return!ue.call(this,Fe[0],Fe[1]);case 3:return!ue.call(this,Fe[0],Fe[1],Fe[2])}return!ue.apply(this,Fe)}}function wh(ue){return bo(2,ue)}var cg=Xe(function(ue,Fe){Fe=Fe.length==1&&mf(Fe[0])?Qa(Fe[0],ad(dr())):Qa(vp(Fe,1),ad(dr()));var Zt=Fe.length;return Zh(function(kr){for(var Vo=-1,ia=Ff(kr.length,Zt);++Vo=Fe}),Ep=Fp(function(){return arguments}())?Fp:function(ue){return Xp(ue)&&Vh.call(ue,"callee")&&!qp.call(ue,"callee")},mf=zl.isArray,Gp=ai?ad(ai):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)==ro}var ih=ag||ky,Lp=hi?ad(hi):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 Fe=da(ue);if(Fe==So||Fe==yt)return!ue.size;if(Ba(ue))return!rm(ue).length;for(var Zt in ue)if(Vh.call(ue,Zt))return!1;return!0}function Kp(ue,Fe){return Jp(ue,Fe)}function rp(ue,Fe,Zt){Zt=typeof Zt=="function"?Zt:I;var kr=Zt?Zt(ue,Fe):I;return kr===I?Jp(ue,Fe,I,Zt):!!kr}function Sm(ue){if(!Xp(ue))return!1;var Fe=ud(ue);return Fe==Bo||Fe==_r||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 Fe=ud(ue);return Fe==fs||Fe==me||Fe==gi||Fe==dn}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 Fe=typeof ue;return ue!=null&&(Fe=="object"||Fe=="function")}function Xp(ue){return ue!=null&&typeof ue=="object"}var B0=Ji?ad(Ji):Hf;function v1(ue,Fe){return ue===Fe||df(ue,Fe,Ri(Fe))}function j0(ue,Fe,Zt){return Zt=typeof Zt=="function"?Zt:I,df(ue,Fe,Ri(Fe),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)==ho}function wv(ue){if(!Xp(ue)||ud(ue)!=ji)return!1;var Fe=Bc(ue);if(Fe===null)return!0;var Zt=Vh.call(Fe,"constructor")&&Fe.constructor;return typeof Zt=="function"&&Zt instanceof Zt&&ed.call(Zt)==Ra}var mv=so?ad(so):jg;function sy(ue){return qg(ue)&&ue>=-He&&ue<=He}var Sv=Pi?ad(Pi):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=us?ad(us):lg;function ay(ue){return ue===I}function Ky(ue){return Xp(ue)&&da(ue)==Ot}function Wv(ue){return Xp(ue)&&ud(ue)==Tt}var n1=Os(zm),Gu=Os(function(ue,Fe){return ue<=Fe});function hu(ue){if(!ue)return[];if(Of(ue))return vv(ue)?uh(ue):mr(ue);if(sp&&ue[sp])return qd(ue[sp]());var Fe=da(ue),Zt=Fe==So?cc:Fe==yt?uf:cv;return Zt(ue)}function Yc(ue){if(!ue)return ue===0?ue:0;if(ue=Qd(ue),ue===dt||ue===-dt){var Fe=ue<0?-1:1;return Fe*Ct}return ue===ue?ue:0}function vc(ue){var Fe=Yc(ue),Zt=Fe%1;return Fe===Fe?Zt?Fe-Zt:Fe:0}function bh(ue){return ue?Jd(vc(ue),0,zt):0}function Qd(ue){if(typeof ue=="number")return ue;if(E0(ue))return ft;if(hg(ue)){var Fe=typeof ue.valueOf=="function"?ue.valueOf():ue;ue=hg(Fe)?Fe+"":Fe}if(typeof ue!="string")return ue===0?ue:+ue;ue=Kd(ue);var Zt=Zi.test(ue);return Zt||tn.test(ue)?Ka(ue.slice(2),Zt?2:8):oi.test(ue)?ft:+ue}function rf(ue){return ni(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=po(function(ue,Fe){if(Ba(Fe)||Of(Fe)){ni(Fe,fm(Fe),ue);return}for(var Zt in Fe)Vh.call(Fe,Zt)&&Cu(ue,Zt,Fe[Zt])}),hp=po(function(ue,Fe){ni(Fe,z0(Fe),ue)}),t0=po(function(ue,Fe,Zt,kr){ni(Fe,z0(Fe),ue,kr)}),Dg=po(function(ue,Fe,Zt,kr){ni(Fe,fm(Fe),ue,kr)}),Xm=Sr(ch);function V0(ue,Fe){var Zt=D(ue);return Fe==null?Zt:wc(Zt,Fe)}var Ev=Zh(function(ue,Fe){ue=oh(ue);var Zt=-1,kr=Fe.length,Vo=kr>2?Fe[2]:I;for(Vo&&Yo(Fe[0],Fe[1],Vo)&&(kr=1);++Zt1),ia}),ni(ue,kt(ue),Zt),kr&&(Zt=Xh(Zt,S|P|W,In));for(var Vo=Fe.length;Vo--;)Km(Zt,Fe[Vo]);return Zt});function uy(ue,Fe){return y0(ue,rh(dr(Fe)))}var U1=Sr(function(ue,Fe){return ue==null?{}:Lm(ue,Fe)});function y0(ue,Fe){if(ue==null)return{};var Zt=Qa(kt(ue),function(kr){return[kr]});return Fe=dr(Fe),Om(ue,Zt,function(kr,Vo){return Fe(kr,Vo[0])})}function J_(ue,Fe,Zt){Fe=rt(Fe,ue);var kr=-1,Vo=Fe.length;for(Vo||(Vo=1,ue=I);++krFe){var kr=ue;ue=Fe,Fe=kr}if(Zt||ue%1||Fe%1){var Vo=Af();return Ff(ue+Vo*(Fe-ue+Cs("1e-"+((Vo+"").length-1))),Fe)}return k0(ue,Fe)}var _v=Pr(function(ue,Fe,Zt){return Fe=Fe.toLowerCase(),ue+(Zt?Vv(Fe):Fe)});function Vv(ue){return G1(Ph(ue).toLowerCase())}function Uv(ue){return ue=Ph(ue),ue&&ue.replace(Ei,th).replace(oo,"")}function R1(ue,Fe,Zt){ue=Ph(ue),Fe=yp(Fe);var kr=ue.length;Zt=Zt===I?kr:Jd(vc(Zt),0,kr);var Vo=Zt;return Zt-=Fe.length,Zt>=0&&ue.slice(Zt,Vo)==Fe}function qy(ue){return ue=Ph(ue),ue&&Kn.test(ue)?ue.replace(Us,jd):ue}function ov(ue){return ue=Ph(ue),ue&&Xr.test(ue)?ue.replace(Qn,"\\$&"):ue}var w_=Pr(function(ue,Fe,Zt){return ue+(Zt?"-":"")+Fe.toLowerCase()}),S_=Pr(function(ue,Fe,Zt){return ue+(Zt?" ":"")+Fe.toLowerCase()}),s1=zs("toLowerCase");function Ly(ue,Fe,Zt){ue=Ph(ue),Fe=vc(Fe);var kr=Fe?Nf(ue):0;if(!Fe||kr>=Fe)return ue;var Vo=(Fe-kr)/2;return Oi(Np(Vo),Zt)+ue+Oi(Pd(Vo),Zt)}function Lb(ue,Fe,Zt){ue=Ph(ue),Fe=vc(Fe);var kr=Fe?Nf(ue):0;return Fe&&kr>>0,Zt?(ue=Ph(ue),ue&&(typeof Fe=="string"||Fe!=null&&!mv(Fe))&&(Fe=yp(Fe),!Fe&&nd(ue))?It(uh(ue),0,Zt):ue.split(Fe,Zt)):[]}var hx=Pr(function(ue,Fe,Zt){return ue+(Zt?" ":"")+G1(Fe)});function T_(ue,Fe,Zt){return ue=Ph(ue),Zt=Zt==null?0:Jd(vc(Zt),0,ue.length),Fe=yp(Fe),ue.slice(Zt,Zt+Fe.length)==Fe}function D_(ue,Fe,Zt){var kr=Io.templateSettings;Zt&&Yo(ue,Fe,Zt)&&(Fe=I),ue=Ph(ue),Fe=t0({},Fe,kr,Gt);var Vo=t0({},Fe.imports,kr.imports,Gt),ia=fm(Vo),Tl=ku(Vo,ia),Vl,Mu,rd=0,sd=Fe.interpolate||Ln,Dd="__p += '",Yh=Vf((Fe.escape||Ln).source+"|"+sd.source+"|"+(sd===Tr?co:Ln).source+"|"+(Fe.evaluate||Ln).source+"|$","g"),If="//# sourceURL="+(Vh.call(Fe,"sourceURL")?(Fe.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gl+"]")+` -`;ue.replace(Yh,function(zp,kg,tm,Zv,hv,Gv){return tm||(tm=Zv),Dd+=ue.slice(rd,Gv).replace(Ii,vh),kg&&(Vl=!0,Dd+=`' + -__e(`+kg+`) + -'`),hv&&(Mu=!0,Dd+=`'; -`+hv+`; -__p += '`),tm&&(Dd+=`' + -((__t = (`+tm+`)) == null ? '' : __t) + -'`),rd=Gv+zp.length,zp}),Dd+=`'; -`;var fp=Vh.call(Fe,"variable")&&Fe.variable;if(!fp)Dd=`with (obj) { -`+Dd+` -} -`;else if(vi.test(fp))throw new Vu(w);Dd=(Mu?Dd.replace(Vr,""):Dd).replace(qr,"$1").replace(Ui,"$1;"),Dd="function("+(fp||"obj")+`) { -`+(fp?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(Vl?", __e = _.escape":"")+(Mu?`, __j = Array.prototype.join; + `]:{marginTop:fr}}}),go(Yt)),Ui(Yt)),{[` + ${xn}-expand, + ${xn}-edit, + ${xn}-copy + `]:Object.assign(Object.assign({},(0,Tt.N)(Yt)),{marginInlineStart:Yt.marginXXS})}),gi(Yt)),Mr(Yt)),To()),{"&-rtl":{direction:"rtl"}})}};var De=(0,Nn.Z)("Typography",Yt=>[ms(Yt)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),$i=Yt=>{const{prefixCls:xn,"aria-label":fr,className:Nr,style:bi,direction:Ei,maxLength:Yi,autoSize:di=!0,value:Wr,onSave:Ni,onCancel:kr,onEnd:Xr,component:yo,enterIcon:ls=v.createElement(Bt,null)}=Yt,Sr=v.useRef(null),hs=v.useRef(!1),ta=v.useRef(),[fi,Po]=v.useState(Wr);v.useEffect(()=>{Po(Wr)},[Wr]),v.useEffect(()=>{if(Sr.current&&Sr.current.resizableTextArea){const{textArea:to}=Sr.current.resizableTextArea;to.focus();const{length:An}=to.value;to.setSelectionRange(An,An)}},[]);const mo=to=>{let{target:An}=to;Po(An.value.replace(/[\n\r]/g,""))},or=()=>{hs.current=!0},Oi=()=>{hs.current=!1},Wa=to=>{let{keyCode:An}=to;hs.current||(ta.current=An)},Sa=()=>{Ni(fi.trim())},xa=to=>{let{keyCode:An,ctrlKey:ri,altKey:ao,metaKey:Mi,shiftKey:_s}=to;ta.current===An&&!hs.current&&!ri&&!ao&&!Mi&&!_s&&(An===Ee.Z.ENTER?(Sa(),Xr==null||Xr()):An===Ee.Z.ESC&&kr())},Ml=()=>{Sa()},wo=yo?`${xn}-${yo}`:"",[_l,El]=De(xn),Ai=he()(xn,`${xn}-edit-content`,{[`${xn}-rtl`]:Ei==="rtl"},Nr,wo,El);return _l(v.createElement("div",{className:Ai,style:bi},v.createElement(an.Z,{ref:Sr,maxLength:Yi,value:fi,onChange:mo,onKeyDown:Wa,onKeyUp:xa,onCompositionStart:or,onCompositionEnd:Oi,onBlur:Ml,"aria-label":fr,rows:1,autoSize:di}),ls!==null?(0,At.Tm)(ls,{className:`${xn}-edit-content-confirm`}):null))},co=function(Yt,xn){var fr={};for(var Nr in Yt)Object.prototype.hasOwnProperty.call(Yt,Nr)&&xn.indexOf(Nr)<0&&(fr[Nr]=Yt[Nr]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bi=0,Nr=Object.getOwnPropertySymbols(Yt);bi{const{prefixCls:fr,component:Nr="article",className:bi,rootClassName:Ei,setContentRef:Yi,children:di,direction:Wr,style:Ni}=Yt,kr=co(Yt,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:Xr,direction:yo,typography:ls}=v.useContext(Ce.E_),Sr=Wr!=null?Wr:yo;let hs=xn;Yi&&(hs=(0,ft.sQ)(xn,Yi));const ta=Xr("typography",fr),[fi,Po]=De(ta),mo=he()(ta,ls==null?void 0:ls.className,{[`${ta}-rtl`]:Sr==="rtl"},bi,Ei,Po),or=Object.assign(Object.assign({},ls==null?void 0:ls.style),Ni);return fi(v.createElement(Nr,Object.assign({className:mo,style:or,ref:hs},kr),di))});function Tn(Yt,xn){return v.useMemo(()=>{const fr=!!Yt;return[fr,Object.assign(Object.assign({},xn),fr&&typeof Yt=="object"?Yt:null)]},[Yt])}var Ct=(Yt,xn)=>{const fr=v.useRef(!1);v.useEffect(()=>{fr.current?Yt():fr.current=!0},xn)};function Ht(Yt){const xn=typeof Yt;return xn==="string"||xn==="number"}function hn(Yt){let xn=0;return Yt.forEach(fr=>{Ht(fr)?xn+=String(fr).length:xn+=1}),xn}function En(Yt,xn){let fr=0;const Nr=[];for(let bi=0;bixn){const Ni=xn-fr;return Nr.push(String(Ei).slice(0,Ni)),Nr}Nr.push(Ei),fr=Wr}return Yt}const rn=0,Jt=1,Mt=2,Qt=3,Dn=4;var wr=Yt=>{let{enabledMeasure:xn,children:fr,text:Nr,width:bi,fontSize:Ei,rows:Yi,onEllipsis:di}=Yt;const[[Wr,Ni,kr],Xr]=v.useState([0,0,0]),[yo,ls]=v.useState(0),[Sr,hs]=v.useState(rn),[ta,fi]=v.useState(0),Po=v.useRef(null),mo=v.useRef(null),or=v.useMemo(()=>(0,xe.Z)(Nr),[Nr]),Oi=v.useMemo(()=>hn(or),[or]),Wa=v.useMemo(()=>!xn||Sr!==Qt?yo&&Sr!==Dn&&xn?fr(En(or,yo),yo{xn&&bi&&Ei&&Oi&&(hs(Jt),Xr([0,Math.ceil(Oi/2),Oi]))},[xn,bi,Ei,Nr,Oi,Yi]),(0,Se.Z)(()=>{var wo;Sr===Jt&&fi(((wo=Po.current)===null||wo===void 0?void 0:wo.offsetHeight)||0)},[Sr]),(0,Se.Z)(()=>{var wo,_l;if(ta){if(Sr===Jt){const El=((wo=mo.current)===null||wo===void 0?void 0:wo.offsetHeight)||0,Ai=Yi*ta;El<=Ai?(hs(Dn),di(!1)):hs(Mt)}else if(Sr===Mt)if(Wr!==kr){const El=((_l=mo.current)===null||_l===void 0?void 0:_l.offsetHeight)||0,Ai=Yi*ta;let to=Wr,An=kr;Wr===kr-1?An=Wr:El<=Ai?to=Ni:An=Ni;const ri=Math.ceil((to+An)/2);Xr([to,ri,An])}else hs(Qt),ls(Ni),di(!0)}},[Sr,Wr,kr,Yi,ta]);const Sa={width:bi,whiteSpace:"normal",margin:0,padding:0},xa=(wo,_l,El)=>v.createElement("span",{"aria-hidden":!0,ref:_l,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(Ei/2)*2},El)},wo),Ml=(wo,_l)=>{const El=En(or,wo);return xa(fr(El,!0),_l,Sa)};return v.createElement(v.Fragment,null,Wa,xn&&Sr!==Qt&&Sr!==Dn&&v.createElement(v.Fragment,null,xa("lg",Po,{wordBreak:"keep-all",whiteSpace:"nowrap"}),Sr===Jt?xa(fr(or,!1),mo,Sa):Ml(Ni,mo)))},xi=Yt=>{let{enabledEllipsis:xn,isEllipsis:fr,children:Nr,tooltipProps:bi}=Yt;return!(bi!=null&&bi.title)||!xn?Nr:v.createElement(Ne.Z,Object.assign({open:fr?void 0:!1},bi),Nr)},Pr=function(Yt,xn){var fr={};for(var Nr in Yt)Object.prototype.hasOwnProperty.call(Yt,Nr)&&xn.indexOf(Nr)<0&&(fr[Nr]=Yt[Nr]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bi=0,Nr=Object.getOwnPropertySymbols(Yt);bi{var fr,Nr,bi;const{prefixCls:Ei,className:Yi,style:di,type:Wr,disabled:Ni,children:kr,ellipsis:Xr,editable:yo,copyable:ls,component:Sr,title:hs}=Yt,ta=Pr(Yt,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:fi,direction:Po}=v.useContext(Ce.E_),[mo]=(0,rt.Z)("Text"),or=v.useRef(null),Oi=v.useRef(null),Wa=fi("typography",Ei),Sa=(0,Xe.Z)(ta,["mark","code","delete","underline","strong","keyboard","italic"]),[xa,Ml]=Tn(yo),[wo,_l]=(0,it.Z)(!1,{value:Ml.editing}),{triggerType:El=["icon"]}=Ml,Ai=tc=>{var cc;tc&&((cc=Ml.onStart)===null||cc===void 0||cc.call(Ml)),_l(tc)};Ct(()=>{var tc;wo||(tc=Oi.current)===null||tc===void 0||tc.focus()},[wo]);const to=tc=>{tc==null||tc.preventDefault(),Ai(!0)},An=tc=>{var cc;(cc=Ml.onChange)===null||cc===void 0||cc.call(Ml,tc),Ai(!1)},ri=()=>{var tc;(tc=Ml.onCancel)===null||tc===void 0||tc.call(Ml),Ai(!1)},[ao,Mi]=Tn(ls),[_s,Hs]=v.useState(!1),Hr=v.useRef(null),Bi={};Mi.format&&(Bi.format=Mi.format);const fn=()=>{Hr.current&&clearTimeout(Hr.current)},Ln=tc=>{var cc;tc==null||tc.preventDefault(),tc==null||tc.stopPropagation(),be()(Mi.text||String(kr)||"",Bi),Hs(!0),fn(),Hr.current=setTimeout(()=>{Hs(!1)},3e3),(cc=Mi.onCopy)===null||cc===void 0||cc.call(Mi,tc)};v.useEffect(()=>fn,[]);const[ur,dt]=v.useState(!1),[xt,Et]=v.useState(!1),[et,wt]=v.useState(!1),[Vt,yn]=v.useState(!1),[yr,Yr]=v.useState(!1),[eo,Zo]=v.useState(!0),[Ii,Cs]=Tn(Xr,{expandable:!1}),ks=Ii&&!et,{rows:ba=1}=Cs,Zs=v.useMemo(()=>!ks||Cs.suffix!==void 0||Cs.onEllipsis||Cs.expandable||xa||ao,[ks,Cs,xa,ao]);(0,Se.Z)(()=>{Ii&&!Zs&&(dt((0,Me.G)("webkitLineClamp")),Et((0,Me.G)("textOverflow")))},[Zs,Ii]);const No=v.useMemo(()=>Zs?!1:ba===1?xt:ur,[Zs,xt,ur]),js=ks&&(No?yr:Vt),ga=ks&&ba===1&&No,da=ks&&ba>1&&No,Il=tc=>{var cc;wt(!0),(cc=Cs.onExpand)===null||cc===void 0||cc.call(Cs,tc)},[Al,Js]=v.useState(0),[Ea,gl]=v.useState(0),ds=(tc,cc)=>{let{offsetWidth:Uu}=tc;var Pn;Js(Uu),gl(parseInt((Pn=window.getComputedStyle)===null||Pn===void 0?void 0:Pn.call(window,cc).fontSize,10)||0)},Gi=tc=>{var cc;yn(tc),Vt!==tc&&((cc=Cs.onEllipsis)===null||cc===void 0||cc.call(Cs,tc))};v.useEffect(()=>{const tc=or.current;if(Ii&&No&&tc){const cc=da?tc.offsetHeight{const tc=or.current;if(typeof IntersectionObserver=="undefined"||!tc||!No||!ks)return;const cc=new IntersectionObserver(()=>{Zo(!!tc.offsetParent)});return cc.observe(tc),()=>{cc.disconnect()}},[No,ks]);let Jo={};Cs.tooltip===!0?Jo={title:(fr=Ml.text)!==null&&fr!==void 0?fr:kr}:v.isValidElement(Cs.tooltip)?Jo={title:Cs.tooltip}:typeof Cs.tooltip=="object"?Jo=Object.assign({title:(Nr=Ml.text)!==null&&Nr!==void 0?Nr:kr},Cs.tooltip):Jo={title:Cs.tooltip};const Ps=v.useMemo(()=>{const tc=cc=>["string","number"].includes(typeof cc);if(!(!Ii||No)){if(tc(Ml.text))return Ml.text;if(tc(kr))return kr;if(tc(hs))return hs;if(tc(Jo.title))return Jo.title}},[Ii,No,hs,Jo.title,js]);if(wo)return v.createElement($i,{value:(bi=Ml.text)!==null&&bi!==void 0?bi:typeof kr=="string"?kr:"",onSave:An,onCancel:ri,onEnd:Ml.onEnd,prefixCls:Wa,className:Yi,style:di,direction:Po,component:Sr,maxLength:Ml.maxLength,autoSize:Ml.autoSize,enterIcon:Ml.enterIcon});const Fs=()=>{const{expandable:tc,symbol:cc}=Cs;if(!tc)return null;let Uu;return cc?Uu=cc:Uu=mo==null?void 0:mo.expand,v.createElement("a",{key:"expand",className:`${Wa}-expand`,onClick:Il,"aria-label":mo==null?void 0:mo.expand},Uu)},Za=()=>{if(!xa)return;const{icon:tc,tooltip:cc}=Ml,Uu=(0,xe.Z)(cc)[0]||(mo==null?void 0:mo.edit),Pn=typeof Uu=="string"?Uu:"";return El.includes("icon")?v.createElement(Ne.Z,{key:"edit",title:cc===!1?"":Uu},v.createElement(je,{ref:Oi,className:`${Wa}-edit`,onClick:to,"aria-label":Pn},tc||v.createElement(F,{role:"button"}))):null},Nu=()=>{if(!ao)return;const{tooltips:tc,icon:cc}=Mi,Uu=On(tc),Pn=On(cc),er=_s?Io(Uu[1],mo==null?void 0:mo.copied):Io(Uu[0],mo==null?void 0:mo.copy),Lr=_s?mo==null?void 0:mo.copied:mo==null?void 0:mo.copy,Gr=typeof er=="string"?er:Lr;return v.createElement(Ne.Z,{key:"copy",title:er},v.createElement(je,{className:he()(`${Wa}-copy`,_s&&`${Wa}-copy-success`),onClick:Ln,"aria-label":Gr},_s?Io(Pn[1],v.createElement(M.Z,null),!0):Io(Pn[0],v.createElement(k,null),!0)))},Tc=tc=>[tc&&Fs(),Za(),Nu()],Pc=tc=>[tc&&v.createElement("span",{"aria-hidden":!0,key:"ellipsis"},zr),Cs.suffix,Tc(tc)];return v.createElement(Ae.Z,{onResize:ds,disabled:!ks||No},tc=>v.createElement(xi,{tooltipProps:Jo,enabledEllipsis:ks,isEllipsis:js},v.createElement(Ro,Object.assign({className:he()({[`${Wa}-${Wr}`]:Wr,[`${Wa}-disabled`]:Ni,[`${Wa}-ellipsis`]:Ii,[`${Wa}-single-line`]:ks&&ba===1,[`${Wa}-ellipsis-single-line`]:ga,[`${Wa}-ellipsis-multiple-line`]:da},Yi),prefixCls:Ei,style:Object.assign(Object.assign({},di),{WebkitLineClamp:da?ba:void 0}),component:Sr,ref:(0,ft.sQ)(tc,or,xn),direction:Po,onClick:El.includes("text")?to:void 0,"aria-label":Ps==null?void 0:Ps.toString(),title:hs},Sa),v.createElement(wr,{enabledMeasure:ks&&!No,text:kr,rows:ba,width:Al,fontSize:Ea,onEllipsis:Gi},(cc,Uu)=>{let Pn=cc;return cc.length&&Uu&&Ps&&(Pn=v.createElement("span",{key:"show-content","aria-hidden":!0},Pn)),Hi(Yt,v.createElement(v.Fragment,null,Pn,Pc(Uu)))}))))}),ir=function(Yt,xn){var fr={};for(var Nr in Yt)Object.prototype.hasOwnProperty.call(Yt,Nr)&&xn.indexOf(Nr)<0&&(fr[Nr]=Yt[Nr]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bi=0,Nr=Object.getOwnPropertySymbols(Yt);bi{var{ellipsis:fr,rel:Nr}=Yt,bi=ir(Yt,["ellipsis","rel"]);const Ei=Object.assign(Object.assign({},bi),{rel:Nr===void 0&&bi.target==="_blank"?"noopener noreferrer":Nr});return delete Ei.navigate,v.createElement(Wi,Object.assign({},Ei,{ref:xn,ellipsis:!!fr,component:"a"}))}),wn=v.forwardRef((Yt,xn)=>v.createElement(Wi,Object.assign({ref:xn},Yt,{component:"div"}))),Zn=function(Yt,xn){var fr={};for(var Nr in Yt)Object.prototype.hasOwnProperty.call(Yt,Nr)&&xn.indexOf(Nr)<0&&(fr[Nr]=Yt[Nr]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bi=0,Nr=Object.getOwnPropertySymbols(Yt);bi{var{ellipsis:fr}=Yt,Nr=Zn(Yt,["ellipsis"]);const bi=v.useMemo(()=>fr&&typeof fr=="object"?(0,Xe.Z)(fr,["expandable","rows"]):fr,[fr]);return v.createElement(Wi,Object.assign({ref:xn},Nr,{ellipsis:bi,component:"span"}))};var qn=v.forwardRef(_r),$n=function(Yt,xn){var fr={};for(var Nr in Yt)Object.prototype.hasOwnProperty.call(Yt,Nr)&&xn.indexOf(Nr)<0&&(fr[Nr]=Yt[Nr]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bi=0,Nr=Object.getOwnPropertySymbols(Yt);bi{const{level:fr=1}=Yt,Nr=$n(Yt,["level"]);let bi;return jt.includes(fr)?bi=`h${fr}`:bi="h1",v.createElement(Wi,Object.assign({ref:xn},Nr,{component:bi}))});const Ur=Ro;Ur.Text=qn,Ur.Link=$t,Ur.Title=vr,Ur.Paragraph=wn;var Ao=Ur},65258:function(mt,q,_){"use strict";_.d(q,{Z:function(){return Uu}});var v=_(77617),M=_(42371),C=_(79161),x=_(12124),N=_.n(x),V=_(26508),R=_(74809),k=_(57338),S=_(29161),p=_(12826),T=_(80268),F=_(52528),K=_(27968),he=_(91002),fe=_(97100),be=_(5090);function Ae(Pn,er){var Lr="cannot ".concat(Pn.method," ").concat(Pn.action," ").concat(er.status,"'"),Gr=new Error(Lr);return Gr.status=er.status,Gr.method=Pn.method,Gr.url=Pn.action,Gr}function xe(Pn){var er=Pn.responseText||Pn.response;if(!er)return er;try{return JSON.parse(er)}catch(Lr){return er}}function Se(Pn){var er=new XMLHttpRequest;Pn.onProgress&&er.upload&&(er.upload.onprogress=function(Qi){Qi.total>0&&(Qi.percent=Qi.loaded/Qi.total*100),Pn.onProgress(Qi)});var Lr=new FormData;Pn.data&&Object.keys(Pn.data).forEach(function(ai){var Qi=Pn.data[ai];if(Array.isArray(Qi)){Qi.forEach(function(Pi){Lr.append("".concat(ai,"[]"),Pi)});return}Lr.append(ai,Qi)}),Pn.file instanceof Blob?Lr.append(Pn.filename,Pn.file,Pn.file.name):Lr.append(Pn.filename,Pn.file),er.onerror=function(Qi){Pn.onError(Qi)},er.onload=function(){return er.status<200||er.status>=300?Pn.onError(Ae(Pn,er),xe(er)):Pn.onSuccess(xe(er),er)},er.open(Pn.method,Pn.action,!0),Pn.withCredentials&&"withCredentials"in er&&(er.withCredentials=!0);var Gr=Pn.headers||{};return Gr["X-Requested-With"]!==null&&er.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Gr).forEach(function(ai){Gr[ai]!==null&&er.setRequestHeader(ai,Gr[ai])}),er.send(Lr),{abort:function(){er.abort()}}}var it=+new Date,Xe=0;function ft(){return"rc-upload-".concat(it,"-").concat(++Xe)}var Me=_(46644),Ee=function(Pn,er){if(Pn&&er){var Lr=Array.isArray(er)?er:er.split(","),Gr=Pn.name||"",ai=Pn.type||"",Qi=ai.replace(/\/.*$/,"");return Lr.some(function(Pi){var fs=Pi.trim();if(/^\*(\/\*)?$/.test(Pi))return!0;if(fs.charAt(0)==="."){var Ks=Gr.toLowerCase(),Ma=fs.toLowerCase(),qa=[Ma];return(Ma===".jpg"||Ma===".jpeg")&&(qa=[".jpg",".jpeg"]),qa.some(function(rl){return Ks.endsWith(rl)})}return/\/\*$/.test(fs)?Qi===fs.replace(/\/.*$/,""):ai===fs?!0:/^\w+$/.test(fs)?((0,Me.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(fs,"'.Skip for check.")),!0):!1})}return!0};function ze(Pn,er){var Lr=Pn.createReader(),Gr=[];function ai(){Lr.readEntries(function(Qi){var Pi=Array.prototype.slice.apply(Qi);Gr=Gr.concat(Pi);var fs=!Pi.length;fs?er(Gr):ai()})}ai()}var Pe=function(er,Lr,Gr){var ai=function Qi(Pi,fs){Pi&&(Pi.path=fs||"",Pi.isFile?Pi.file(function(Ks){Gr(Ks)&&(Pi.fullPath&&!Ks.webkitRelativePath&&(Object.defineProperties(Ks,{webkitRelativePath:{writable:!0}}),Ks.webkitRelativePath=Pi.fullPath.replace(/^\//,""),Object.defineProperties(Ks,{webkitRelativePath:{writable:!1}})),Lr([Ks]))}):Pi.isDirectory&&ze(Pi,function(Ks){Ks.forEach(function(Ma){Qi(Ma,"".concat(fs).concat(Pi.name,"/"))})}))};er.forEach(function(Qi){ai(Qi.webkitGetAsEntry())})},Re=Pe,je=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ce=function(Pn){(0,S.Z)(Lr,Pn);var er=(0,p.Z)(Lr);function Lr(){var Gr;(0,R.Z)(this,Lr);for(var ai=arguments.length,Qi=new Array(ai),Pi=0;Pi{const{componentCls:er,iconCls:Lr}=Pn;return{[`${er}-wrapper`]:{[`${er}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Pn.colorFillAlter,border:`${Pn.lineWidth}px dashed ${Pn.colorBorder}`,borderRadius:Pn.borderRadiusLG,cursor:"pointer",transition:`border-color ${Pn.motionDurationSlow}`,[er]:{padding:`${Pn.padding}px 0`},[`${er}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${er}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + &:not(${er}-disabled):hover, + &-hover:not(${er}-disabled) + `]:{borderColor:Pn.colorPrimaryHover},[`p${er}-drag-icon`]:{marginBottom:Pn.margin,[Lr]:{color:Pn.colorPrimary,fontSize:Pn.uploadThumbnailSize}},[`p${er}-text`]:{margin:`0 0 ${Pn.marginXXS}px`,color:Pn.colorTextHeading,fontSize:Pn.fontSizeLG},[`p${er}-hint`]:{color:Pn.colorTextDescription,fontSize:Pn.fontSize},[`&${er}-disabled`]:{[`p${er}-drag-icon ${Lr}, + p${er}-text, + p${er}-hint + `]:{color:Pn.colorTextDisabled}}}}}},To=Pn=>{const{componentCls:er,antCls:Lr,iconCls:Gr,fontSize:ai,lineHeight:Qi}=Pn,Pi=`${er}-list-item`,fs=`${Pi}-actions`,Ks=`${Pi}-action`,Ma=Math.round(ai*Qi);return{[`${er}-wrapper`]:{[`${er}-list`]:Object.assign(Object.assign({},(0,mn.dF)()),{lineHeight:Pn.lineHeight,[Pi]:{position:"relative",height:Pn.lineHeight*ai,marginTop:Pn.marginXS,fontSize:ai,display:"flex",alignItems:"center",transition:`background-color ${Pn.motionDurationSlow}`,"&:hover":{backgroundColor:Pn.controlItemBgHover},[`${Pi}-name`]:Object.assign(Object.assign({},mn.vS),{padding:`0 ${Pn.paddingXS}px`,lineHeight:Qi,flex:"auto",transition:`all ${Pn.motionDurationSlow}`}),[fs]:{[Ks]:{opacity:0},[`${Ks}${Lr}-btn-sm`]:{height:Ma,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` + ${Ks}:focus-visible, + &.picture ${Ks} + `]:{opacity:1},[Gr]:{color:Pn.actionsColor,transition:`all ${Pn.motionDurationSlow}`},[`&:hover ${Gr}`]:{color:Pn.colorText}},[`${er}-icon ${Gr}`]:{color:Pn.colorTextDescription,fontSize:ai},[`${Pi}-progress`]:{position:"absolute",bottom:-Pn.uploadProgressOffset,width:"100%",paddingInlineStart:ai+Pn.paddingXS,fontSize:ai,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Pi}:hover ${Ks}`]:{opacity:1,color:Pn.colorText},[`${Pi}-error`]:{color:Pn.colorError,[`${Pi}-name, ${er}-icon ${Gr}`]:{color:Pn.colorError},[fs]:{[`${Gr}, ${Gr}:hover`]:{color:Pn.colorError},[Ks]:{opacity:1}}},[`${er}-list-item-container`]:{transition:`opacity ${Pn.motionDurationSlow}, height ${Pn.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},ms=_(84608),De=_(23626);const Oo=new ms.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),$i=new ms.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Vr=Pn=>{const{componentCls:er}=Pn,Lr=`${er}-animate-inline`;return[{[`${er}-wrapper`]:{[`${Lr}-appear, ${Lr}-enter, ${Lr}-leave`]:{animationDuration:Pn.motionDurationSlow,animationTimingFunction:Pn.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Lr}-appear, ${Lr}-enter`]:{animationName:Oo},[`${Lr}-leave`]:{animationName:$i}}},{[`${er}-wrapper`]:(0,De.J$)(Pn)},Oo,$i]},Ro=_(63511),Tn=_(64993);const nt=Pn=>{const{componentCls:er,iconCls:Lr,uploadThumbnailSize:Gr,uploadProgressOffset:ai}=Pn,Qi=`${er}-list`,Pi=`${Qi}-item`;return{[`${er}-wrapper`]:{[` + ${Qi}${Qi}-picture, + ${Qi}${Qi}-picture-card, + ${Qi}${Qi}-picture-circle + `]:{[Pi]:{position:"relative",height:Gr+Pn.lineWidth*2+Pn.paddingXS*2,padding:Pn.paddingXS,border:`${Pn.lineWidth}px ${Pn.lineType} ${Pn.colorBorder}`,borderRadius:Pn.borderRadiusLG,"&:hover":{background:"transparent"},[`${Pi}-thumbnail`]:Object.assign(Object.assign({},mn.vS),{width:Gr,height:Gr,lineHeight:`${Gr+Pn.paddingSM}px`,textAlign:"center",flex:"none",[Lr]:{fontSize:Pn.fontSizeHeading2,color:Pn.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Pi}-progress`]:{bottom:ai,width:`calc(100% - ${Pn.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Gr+Pn.paddingXS}},[`${Pi}-error`]:{borderColor:Pn.colorError,[`${Pi}-thumbnail ${Lr}`]:{[`svg path[fill='${Ro.iN[0]}']`]:{fill:Pn.colorErrorBg},[`svg path[fill='${Ro.iN.primary}']`]:{fill:Pn.colorError}}},[`${Pi}-uploading`]:{borderStyle:"dashed",[`${Pi}-name`]:{marginBottom:ai}}},[`${Qi}${Qi}-picture-circle ${Pi}`]:{[`&, &::before, ${Pi}-thumbnail`]:{borderRadius:"50%"}}}}},Ct=Pn=>{const{componentCls:er,iconCls:Lr,fontSizeLG:Gr,colorTextLightSolid:ai}=Pn,Qi=`${er}-list`,Pi=`${Qi}-item`,fs=Pn.uploadPicCardSize;return{[` + ${er}-wrapper${er}-picture-card-wrapper, + ${er}-wrapper${er}-picture-circle-wrapper + `]:Object.assign(Object.assign({},(0,mn.dF)()),{display:"inline-block",width:"100%",[`${er}${er}-select`]:{width:fs,height:fs,marginInlineEnd:Pn.marginXS,marginBottom:Pn.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Pn.colorFillAlter,border:`${Pn.lineWidth}px dashed ${Pn.colorBorder}`,borderRadius:Pn.borderRadiusLG,cursor:"pointer",transition:`border-color ${Pn.motionDurationSlow}`,[`> ${er}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${er}-disabled):hover`]:{borderColor:Pn.colorPrimary}},[`${Qi}${Qi}-picture-card, ${Qi}${Qi}-picture-circle`]:{[`${Qi}-item-container`]:{display:"inline-block",width:fs,height:fs,marginBlock:`0 ${Pn.marginXS}px`,marginInline:`0 ${Pn.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Pi]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Pn.paddingXS*2}px)`,height:`calc(100% - ${Pn.paddingXS*2}px)`,backgroundColor:Pn.colorBgMask,opacity:0,transition:`all ${Pn.motionDurationSlow}`,content:'" "'}},[`${Pi}:hover`]:{[`&::before, ${Pi}-actions`]:{opacity:1}},[`${Pi}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Pn.motionDurationSlow}`,[`${Lr}-eye, ${Lr}-download, ${Lr}-delete`]:{zIndex:10,width:Gr,margin:`0 ${Pn.marginXXS}px`,fontSize:Gr,cursor:"pointer",transition:`all ${Pn.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Pi}-actions, ${Pi}-actions:hover`]:{[`${Lr}-eye, ${Lr}-download, ${Lr}-delete`]:{color:new Tn.C(ai).setAlpha(.65).toRgbString(),"&:hover":{color:ai}}},[`${Pi}-thumbnail, ${Pi}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Pi}-name`]:{display:"none",textAlign:"center"},[`${Pi}-file + ${Pi}-name`]:{position:"absolute",bottom:Pn.margin,display:"block",width:`calc(100% - ${Pn.paddingXS*2}px)`},[`${Pi}-uploading`]:{[`&${Pi}`]:{backgroundColor:Pn.colorFillAlter},[`&::before, ${Lr}-eye, ${Lr}-download, ${Lr}-delete`]:{display:"none"}},[`${Pi}-progress`]:{bottom:Pn.marginXL,width:`calc(100% - ${Pn.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${er}-wrapper${er}-picture-circle-wrapper`]:{[`${er}${er}-select`]:{borderRadius:"50%"}}}};var hn=Pn=>{const{componentCls:er}=Pn;return{[`${er}-rtl`]:{direction:"rtl"}}};const En=Pn=>{const{componentCls:er,colorTextDisabled:Lr}=Pn;return{[`${er}-wrapper`]:Object.assign(Object.assign({},(0,mn.Wf)(Pn)),{[er]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${er}-select`]:{display:"inline-block"},[`${er}-disabled`]:{color:Lr,cursor:"not-allowed"}})}};var rn=(0,Kr.Z)("Upload",Pn=>{const{fontSizeHeading3:er,fontSize:Lr,lineHeight:Gr,lineWidth:ai,controlHeightLG:Qi}=Pn,Pi=Math.round(Lr*Gr),fs=(0,Ui.TS)(Pn,{uploadThumbnailSize:er*2,uploadProgressOffset:Pi/2+ai,uploadPicCardSize:Qi*2.55});return[En(fs),gi(fs),nt(fs),Ct(fs),To(fs),Vr(fs),hn(fs),(0,zn.Z)(fs)]},Pn=>({actionsColor:Pn.colorTextDescription})),Jt={icon:function(er,Lr){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Lr}},{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:er}}]}},name:"file",theme:"twotone"},Mt=Jt,Qt=_(91851),Dn=function(er,Lr){return v.createElement(Qt.Z,(0,V.Z)({},er,{ref:Lr,icon:Mt}))},sn=v.forwardRef(Dn),wr=_(38521),jr={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"},xi=jr,Pr=function(er,Lr){return v.createElement(Qt.Z,(0,V.Z)({},er,{ref:Lr,icon:xi}))},Hi=v.forwardRef(Pr),Io={icon:function(er,Lr){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:er}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Lr}},{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:Lr}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Lr}},{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:er}}]}},name:"picture",theme:"twotone"},On=Io,zr=function(er,Lr){return v.createElement(Qt.Z,(0,V.Z)({},er,{ref:Lr,icon:On}))},qr=v.forwardRef(zr),Wi=_(44516),ir=_(78958),Jn=_(8418),$t=_(37628),Gt=_(34745);function wn(Pn){return Object.assign(Object.assign({},Pn),{lastModified:Pn.lastModified,lastModifiedDate:Pn.lastModifiedDate,name:Pn.name,size:Pn.size,type:Pn.type,uid:Pn.uid,percent:0,originFileObj:Pn})}function Zn(Pn,er){const Lr=(0,M.Z)(er),Gr=Lr.findIndex(ai=>{let{uid:Qi}=ai;return Qi===Pn.uid});return Gr===-1?Lr.push(Pn):Lr[Gr]=Pn,Lr}function _r(Pn,er){const Lr=Pn.uid!==void 0?"uid":"name";return er.filter(Gr=>Gr[Lr]===Pn[Lr])[0]}function qn(Pn,er){const Lr=Pn.uid!==void 0?"uid":"name",Gr=er.filter(ai=>ai[Lr]!==Pn[Lr]);return Gr.length===er.length?null:Gr}const $n=function(){const er=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Gr=er[er.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Gr)||[""])[0]},jt=Pn=>Pn.indexOf("image/")===0,In=Pn=>{if(Pn.type&&!Pn.thumbUrl)return jt(Pn.type);const er=Pn.thumbUrl||Pn.url||"",Lr=$n(er);return/^data:image\//.test(er)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Lr)?!0:!(/^data:/.test(er)||Lr)},vr=200;function Ur(Pn){return new Promise(er=>{if(!Pn.type||!jt(Pn.type)){er("");return}const Lr=document.createElement("canvas");Lr.width=vr,Lr.height=vr,Lr.style.cssText=`position: fixed; left: 0; top: 0; width: ${vr}px; height: ${vr}px; z-index: 9999; display: none;`,document.body.appendChild(Lr);const Gr=Lr.getContext("2d"),ai=new Image;if(ai.onload=()=>{const{width:Qi,height:Pi}=ai;let fs=vr,Ks=vr,Ma=0,qa=0;Qi>Pi?(Ks=Pi*(vr/Qi),qa=-(Ks-fs)/2):(fs=Qi*(vr/Pi),Ma=-(fs-Ks)/2),Gr.drawImage(ai,Ma,qa,fs,Ks);const rl=Lr.toDataURL();document.body.removeChild(Lr),window.URL.revokeObjectURL(ai.src),er(rl)},ai.crossOrigin="anonymous",Pn.type.startsWith("image/svg+xml")){const Qi=new FileReader;Qi.onload=()=>{Qi.result&&(ai.src=Qi.result)},Qi.readAsDataURL(Pn)}else if(Pn.type.startsWith("image/gif")){const Qi=new FileReader;Qi.onload=()=>{Qi.result&&er(Qi.result)},Qi.readAsDataURL(Pn)}else ai.src=window.URL.createObjectURL(Pn)})}var Ao=_(77364),Yt=function(er,Lr){return v.createElement(Qt.Z,(0,V.Z)({},er,{ref:Lr,icon:Ao.Z}))},xn=v.forwardRef(Yt),fr={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"},Nr=fr,bi=function(er,Lr){return v.createElement(Qt.Z,(0,V.Z)({},er,{ref:Lr,icon:Nr}))},Ei=v.forwardRef(bi),Yi=_(15997),di=_(95934),Wr=_(75769),Ni=_(48796),kr=_(49934),Xr=_(39029),yo=_(74710),ls={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Sr=function(){var er=(0,v.useRef)([]),Lr=(0,v.useRef)(null);return(0,v.useEffect)(function(){var Gr=Date.now(),ai=!1;er.current.forEach(function(Qi){if(Qi){ai=!0;var Pi=Qi.style;Pi.transitionDuration=".3s, .3s, .3s, .06s",Lr.current&&Gr-Lr.current<100&&(Pi.transitionDuration="0s, 0s")}}),ai&&(Lr.current=Date.now())}),er.current},hs=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ta=function(er){var Lr=(0,yo.Z)((0,yo.Z)({},ls),er),Gr=Lr.className,ai=Lr.percent,Qi=Lr.prefixCls,Pi=Lr.strokeColor,fs=Lr.strokeLinecap,Ks=Lr.strokeWidth,Ma=Lr.style,qa=Lr.trailColor,rl=Lr.trailWidth,Dl=Lr.transition,Oa=(0,F.Z)(Lr,hs);delete Oa.gapPosition;var ju=Array.isArray(ai)?ai:[ai],Ia=Array.isArray(Pi)?Pi:[Pi],Ha=Sr(),tl=Ks/2,cu=100-Ks/2,Xl="M ".concat(fs==="round"?tl:0,",").concat(tl,` + L `).concat(fs==="round"?cu:100,",").concat(tl),yu="0 0 100 ".concat(Ks),Cl=0;return v.createElement("svg",(0,V.Z)({className:N()("".concat(Qi,"-line"),Gr),viewBox:yu,preserveAspectRatio:"none",style:Ma},Oa),v.createElement("path",{className:"".concat(Qi,"-line-trail"),d:Xl,strokeLinecap:fs,stroke:qa,strokeWidth:rl||Ks,fillOpacity:"0"}),ju.map(function(nu,Xn){var Ho=1;switch(fs){case"round":Ho=1-Ks/100;break;case"square":Ho=1-Ks/2/100;break;default:Ho=1;break}var Ls={strokeDasharray:"".concat(nu*Ho,"px, 100px"),strokeDashoffset:"-".concat(Cl,"px"),transition:Dl||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Xs=Ia[Xn]||Ia[Ia.length-1];return Cl+=nu,v.createElement("path",{key:Xn,className:"".concat(Qi,"-line-path"),d:Xl,strokeLinecap:fs,stroke:Xs,strokeWidth:Ks,fillOpacity:"0",ref:function(iu){Ha[Xn]=iu},style:Ls})}))},fi=ta,Po=_(39718),mo=_(53261),or=0,Oi=(0,mo.Z)();function Wa(){var Pn;return Oi?(Pn=or,or+=1):Pn="TEST_OR_SSR",Pn}var Sa=function(Pn){var er=v.useState(),Lr=(0,Po.Z)(er,2),Gr=Lr[0],ai=Lr[1];return v.useEffect(function(){ai("rc_progress_".concat(Wa()))},[]),Pn||Gr},xa=function(er){var Lr=er.bg,Gr=er.children;return v.createElement("div",{style:{width:"100%",height:"100%",background:Lr}},Gr)};function Ml(Pn,er){return Object.keys(Pn).map(function(Lr){var Gr=parseFloat(Lr),ai="".concat(Math.floor(Gr*er),"%");return"".concat(Pn[Lr]," ").concat(ai)})}var wo=v.forwardRef(function(Pn,er){var Lr=Pn.prefixCls,Gr=Pn.color,ai=Pn.gradientId,Qi=Pn.radius,Pi=Pn.style,fs=Pn.ptg,Ks=Pn.strokeLinecap,Ma=Pn.strokeWidth,qa=Pn.size,rl=Pn.gapDegree,Dl=Gr&&(0,he.Z)(Gr)==="object",Oa=Dl?"#FFF":void 0,ju=qa/2,Ia=v.createElement("circle",{className:"".concat(Lr,"-circle-path"),r:Qi,cx:ju,cy:ju,stroke:Oa,strokeLinecap:Ks,strokeWidth:Ma,opacity:fs===0?0:1,style:Pi,ref:er});if(!Dl)return Ia;var Ha="".concat(ai,"-conic"),tl=rl?"".concat(180+rl/2,"deg"):"0deg",cu=Ml(Gr,(360-rl)/360),Xl=Ml(Gr,1),yu="conic-gradient(from ".concat(tl,", ").concat(cu.join(", "),")"),Cl="linear-gradient(to ".concat(rl?"bottom":"top",", ").concat(Xl.join(", "),")");return v.createElement(v.Fragment,null,v.createElement("mask",{id:Ha},Ia),v.createElement("foreignObject",{x:0,y:0,width:qa,height:qa,mask:"url(#".concat(Ha,")")},v.createElement(xa,{bg:Cl},v.createElement(xa,{bg:yu}))))}),_l=wo,El=100,Ai=function(er,Lr,Gr,ai,Qi,Pi,fs,Ks,Ma,qa){var rl=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Dl=Gr/100*360*((360-Pi)/360),Oa=Pi===0?0:{bottom:0,top:180,left:90,right:-90}[fs],ju=(100-ai)/100*Lr;Ma==="round"&&ai!==100&&(ju+=qa/2,ju>=Lr&&(ju=Lr-.01));var Ia=El/2;return{stroke:typeof Ks=="string"?Ks:void 0,strokeDasharray:"".concat(Lr,"px ").concat(er),strokeDashoffset:ju+rl,transform:"rotate(".concat(Qi+Dl+Oa,"deg)"),transformOrigin:"".concat(Ia,"px ").concat(Ia,"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}},to=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function An(Pn){var er=Pn!=null?Pn:[];return Array.isArray(er)?er:[er]}var ri=function(er){var Lr=(0,yo.Z)((0,yo.Z)({},ls),er),Gr=Lr.id,ai=Lr.prefixCls,Qi=Lr.steps,Pi=Lr.strokeWidth,fs=Lr.trailWidth,Ks=Lr.gapDegree,Ma=Ks===void 0?0:Ks,qa=Lr.gapPosition,rl=Lr.trailColor,Dl=Lr.strokeLinecap,Oa=Lr.style,ju=Lr.className,Ia=Lr.strokeColor,Ha=Lr.percent,tl=(0,F.Z)(Lr,to),cu=El/2,Xl=Sa(Gr),yu="".concat(Xl,"-gradient"),Cl=cu-Pi/2,nu=Math.PI*2*Cl,Xn=Ma>0?90+Ma/2:-90,Ho=nu*((360-Ma)/360),Ls=(0,he.Z)(Qi)==="object"?Qi:{count:Qi,space:2},Xs=Ls.count,il=Ls.space,iu=An(Ha),hu=An(Ia),ic=hu.find(function(ad){return ad&&(0,he.Z)(ad)==="object"}),Gu=ic&&(0,he.Z)(ic)==="object",pc=Gu?"butt":Dl,qc=Ai(nu,Ho,0,100,Xn,Ma,qa,rl,pc,Pi),Lc=Sr(),jh=function(){var kh=0;return iu.map(function(hc,yc){var Uh=hu[yc]||hu[hu.length-1],yh=Ai(nu,Ho,kh,hc,Xn,Ma,qa,Uh,pc,Pi);return kh+=hc,v.createElement(_l,{key:yc,color:Uh,ptg:hc,radius:Cl,prefixCls:ai,gradientId:yu,style:yh,strokeLinecap:pc,strokeWidth:Pi,gapDegree:Ma,ref:function(Ed){Lc[yc]=Ed},size:El})}).reverse()},Md=function(){var kh=Math.round(Xs*(iu[0]/100)),hc=100/Xs,yc=0;return new Array(Xs).fill(null).map(function(Uh,yh){var pd=yh<=kh-1?hu[0]:rl,Ed=pd&&(0,he.Z)(pd)==="object"?"url(#".concat(yu,")"):void 0,vh=Ai(nu,Ho,yc,hc,Xn,Ma,qa,pd,"butt",Pi,il);return yc+=(Ho-vh.strokeDashoffset+il)*100/Ho,v.createElement("circle",{key:yh,className:"".concat(ai,"-circle-path"),r:Cl,cx:cu,cy:cu,stroke:Ed,strokeWidth:Pi,opacity:1,style:vh,ref:function(Th){Lc[yh]=Th}})})};return v.createElement("svg",(0,V.Z)({className:N()("".concat(ai,"-circle"),ju),viewBox:"0 0 ".concat(El," ").concat(El),style:Oa,id:Gr,role:"presentation"},tl),!Xs&&v.createElement("circle",{className:"".concat(ai,"-circle-trail"),r:Cl,cx:cu,cy:cu,stroke:rl,strokeLinecap:pc,strokeWidth:fs||Pi,style:qc}),Xs?Md():jh())},ao=ri,Mi={Line:fi,Circle:ao},_s=_(19189);function Hs(Pn){return!Pn||Pn<0?0:Pn>100?100:Pn}function Hr(Pn){let{success:er,successPercent:Lr}=Pn,Gr=Lr;return er&&"progress"in er&&(Gr=er.progress),er&&"percent"in er&&(Gr=er.percent),Gr}const Bi=Pn=>{let{percent:er,success:Lr,successPercent:Gr}=Pn;const ai=Hs(Hr({success:Lr,successPercent:Gr}));return[ai,Hs(Hs(er)-ai)]},fn=Pn=>{let{success:er={},strokeColor:Lr}=Pn;const{strokeColor:Gr}=er;return[Gr||Ro.ez.green,Lr||null]},Ln=(Pn,er,Lr)=>{var Gr,ai,Qi,Pi;let fs=-1,Ks=-1;if(er==="step"){const Ma=Lr.steps,qa=Lr.strokeWidth;typeof Pn=="string"||typeof Pn=="undefined"?(fs=Pn==="small"?2:14,Ks=qa!=null?qa:8):typeof Pn=="number"?[fs,Ks]=[Pn,Pn]:[fs=14,Ks=8]=Pn,fs*=Ma}else if(er==="line"){const Ma=Lr==null?void 0:Lr.strokeWidth;typeof Pn=="string"||typeof Pn=="undefined"?Ks=Ma||(Pn==="small"?6:8):typeof Pn=="number"?[fs,Ks]=[Pn,Pn]:[fs=-1,Ks=8]=Pn}else(er==="circle"||er==="dashboard")&&(typeof Pn=="string"||typeof Pn=="undefined"?[fs,Ks]=Pn==="small"?[60,60]:[120,120]:typeof Pn=="number"?[fs,Ks]=[Pn,Pn]:(fs=(ai=(Gr=Pn[0])!==null&&Gr!==void 0?Gr:Pn[1])!==null&&ai!==void 0?ai:120,Ks=(Pi=(Qi=Pn[0])!==null&&Qi!==void 0?Qi:Pn[1])!==null&&Pi!==void 0?Pi:120));return[fs,Ks]},ur=3,dt=Pn=>ur/Pn*100;var Et=Pn=>{const{prefixCls:er,trailColor:Lr=null,strokeLinecap:Gr="round",gapPosition:ai,gapDegree:Qi,width:Pi=120,type:fs,children:Ks,success:Ma,size:qa=Pi}=Pn,[rl,Dl]=Ln(qa,"circle");let{strokeWidth:Oa}=Pn;Oa===void 0&&(Oa=Math.max(dt(rl),6));const ju={width:rl,height:Dl,fontSize:rl*.15+6},Ia=v.useMemo(()=>{if(Qi||Qi===0)return Qi;if(fs==="dashboard")return 75},[Qi,fs]),Ha=ai||fs==="dashboard"&&"bottom"||void 0,tl=Object.prototype.toString.call(Pn.strokeColor)==="[object Object]",cu=fn({success:Ma,strokeColor:Pn.strokeColor}),Xl=N()(`${er}-inner`,{[`${er}-circle-gradient`]:tl}),yu=v.createElement(ao,{percent:Bi(Pn),strokeWidth:Oa,trailWidth:Oa,strokeColor:cu,strokeLinecap:Gr,trailColor:Lr,prefixCls:er,gapDegree:Ia,gapPosition:Ha});return v.createElement("div",{className:Xl,style:ju},rl<=20?v.createElement(_s.Z,{title:Ks},v.createElement("span",null,yu)):v.createElement(v.Fragment,null,yu,Ks))},et=function(Pn,er){var Lr={};for(var Gr in Pn)Object.prototype.hasOwnProperty.call(Pn,Gr)&&er.indexOf(Gr)<0&&(Lr[Gr]=Pn[Gr]);if(Pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ai=0,Gr=Object.getOwnPropertySymbols(Pn);ai{let er=[];return Object.keys(Pn).forEach(Lr=>{const Gr=parseFloat(Lr.replace(/%/g,""));isNaN(Gr)||er.push({key:Gr,value:Pn[Lr]})}),er=er.sort((Lr,Gr)=>Lr.key-Gr.key),er.map(Lr=>{let{key:Gr,value:ai}=Lr;return`${ai} ${Gr}%`}).join(", ")},Vt=(Pn,er)=>{const{from:Lr=Ro.ez.blue,to:Gr=Ro.ez.blue,direction:ai=er==="rtl"?"to left":"to right"}=Pn,Qi=et(Pn,["from","to","direction"]);if(Object.keys(Qi).length!==0){const Pi=wt(Qi);return{backgroundImage:`linear-gradient(${ai}, ${Pi})`}}return{backgroundImage:`linear-gradient(${ai}, ${Lr}, ${Gr})`}};var yr=Pn=>{const{prefixCls:er,direction:Lr,percent:Gr,size:ai,strokeWidth:Qi,strokeColor:Pi,strokeLinecap:fs="round",children:Ks,trailColor:Ma=null,success:qa}=Pn,rl=Pi&&typeof Pi!="string"?Vt(Pi,Lr):{backgroundColor:Pi},Dl=fs==="square"||fs==="butt"?0:void 0,Oa={backgroundColor:Ma||void 0,borderRadius:Dl},ju=ai!=null?ai:[-1,Qi||(ai==="small"?6:8)],[Ia,Ha]=Ln(ju,"line",{strokeWidth:Qi}),tl=Object.assign({width:`${Hs(Gr)}%`,height:Ha,borderRadius:Dl},rl),cu=Hr(Pn),Xl={width:`${Hs(cu)}%`,height:Ha,borderRadius:Dl,backgroundColor:qa==null?void 0:qa.strokeColor},yu={width:Ia<0?"100%":Ia,height:Ha};return v.createElement(v.Fragment,null,v.createElement("div",{className:`${er}-outer`,style:yu},v.createElement("div",{className:`${er}-inner`,style:Oa},v.createElement("div",{className:`${er}-bg`,style:tl}),cu!==void 0?v.createElement("div",{className:`${er}-success-bg`,style:Xl}):null)),Ks)},eo=Pn=>{const{size:er,steps:Lr,percent:Gr=0,strokeWidth:ai=8,strokeColor:Qi,trailColor:Pi=null,prefixCls:fs,children:Ks}=Pn,Ma=Math.round(Lr*(Gr/100)),qa=er==="small"?2:14,rl=er!=null?er:[qa,ai],[Dl,Oa]=Ln(rl,"step",{steps:Lr,strokeWidth:ai}),ju=Dl/Lr,Ia=new Array(Lr);for(let Ha=0;Ha{const er=Pn?"100%":"-100%";return new ms.E4(`antProgress${Pn?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${er}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${er}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ii=Pn=>{const{componentCls:er,iconCls:Lr}=Pn;return{[er]:Object.assign(Object.assign({},(0,mn.Wf)(Pn)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Pn.fontSize,marginInlineEnd:Pn.marginXS,marginBottom:Pn.marginXS},[`${er}-outer`]:{display:"inline-block",width:"100%"},[`&${er}-show-info`]:{[`${er}-outer`]:{marginInlineEnd:`calc(-2em - ${Pn.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Pn.paddingXS}px)`}},[`${er}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Pn.remainingColor,borderRadius:Pn.lineBorderRadius},[`${er}-inner:not(${er}-circle-gradient)`]:{[`${er}-circle-path`]:{stroke:Pn.defaultColor}},[`${er}-success-bg, ${er}-bg`]:{position:"relative",backgroundColor:Pn.defaultColor,borderRadius:Pn.lineBorderRadius,transition:`all ${Pn.motionDurationSlow} ${Pn.motionEaseInOutCirc}`},[`${er}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Pn.colorSuccess},[`${er}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Pn.marginXS,color:Pn.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Lr]:{fontSize:Pn.fontSize}},[`&${er}-status-active`]:{[`${er}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Pn.colorBgContainer,borderRadius:Pn.lineBorderRadius,opacity:0,animationName:Zo(),animationDuration:Pn.progressActiveMotionDuration,animationTimingFunction:Pn.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${er}-rtl${er}-status-active`]:{[`${er}-bg::before`]:{animationName:Zo(!0)}},[`&${er}-status-exception`]:{[`${er}-bg`]:{backgroundColor:Pn.colorError},[`${er}-text`]:{color:Pn.colorError}},[`&${er}-status-exception ${er}-inner:not(${er}-circle-gradient)`]:{[`${er}-circle-path`]:{stroke:Pn.colorError}},[`&${er}-status-success`]:{[`${er}-bg`]:{backgroundColor:Pn.colorSuccess},[`${er}-text`]:{color:Pn.colorSuccess}},[`&${er}-status-success ${er}-inner:not(${er}-circle-gradient)`]:{[`${er}-circle-path`]:{stroke:Pn.colorSuccess}}})}},Cs=Pn=>{const{componentCls:er,iconCls:Lr}=Pn;return{[er]:{[`${er}-circle-trail`]:{stroke:Pn.remainingColor},[`&${er}-circle ${er}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${er}-circle ${er}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Pn.circleTextColor,fontSize:Pn.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Lr]:{fontSize:`${Pn.fontSize/Pn.fontSizeSM}em`}},[`${er}-circle&-status-exception`]:{[`${er}-text`]:{color:Pn.colorError}},[`${er}-circle&-status-success`]:{[`${er}-text`]:{color:Pn.colorSuccess}}},[`${er}-inline-circle`]:{lineHeight:1,[`${er}-inner`]:{verticalAlign:"bottom"}}}},ks=Pn=>{const{componentCls:er}=Pn;return{[er]:{[`${er}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Pn.progressStepMinWidth,marginInlineEnd:Pn.progressStepMarginInlineEnd,backgroundColor:Pn.remainingColor,transition:`all ${Pn.motionDurationSlow}`,"&-active":{backgroundColor:Pn.defaultColor}}}}}},ba=Pn=>{const{componentCls:er,iconCls:Lr}=Pn;return{[er]:{[`${er}-small&-line, ${er}-small&-line ${er}-text ${Lr}`]:{fontSize:Pn.fontSizeSM}}}};var Zs=(0,Kr.Z)("Progress",Pn=>{const er=Pn.marginXXS/2,Lr=(0,Ui.TS)(Pn,{progressStepMarginInlineEnd:er,progressStepMinWidth:er,progressActiveMotionDuration:"2.4s"});return[Ii(Lr),Cs(Lr),ks(Lr),ba(Lr)]},Pn=>({circleTextColor:Pn.colorText,defaultColor:Pn.colorInfo,remainingColor:Pn.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),No=function(Pn,er){var Lr={};for(var Gr in Pn)Object.prototype.hasOwnProperty.call(Pn,Gr)&&er.indexOf(Gr)<0&&(Lr[Gr]=Pn[Gr]);if(Pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ai=0,Gr=Object.getOwnPropertySymbols(Pn);ai{const{prefixCls:Lr,className:Gr,rootClassName:ai,steps:Qi,strokeColor:Pi,percent:fs=0,size:Ks="default",showInfo:Ma=!0,type:qa="line",status:rl,format:Dl,style:Oa}=Pn,ju=No(Pn,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Ia=v.useMemo(()=>{var iu,hu;const ic=Hr(Pn);return parseInt(ic!==void 0?(iu=ic!=null?ic:0)===null||iu===void 0?void 0:iu.toString():(hu=fs!=null?fs:0)===null||hu===void 0?void 0:hu.toString(),10)},[fs,Pn.success,Pn.successPercent]),Ha=v.useMemo(()=>!ga.includes(rl)&&Ia>=100?"success":rl||"normal",[rl,Ia]),{getPrefixCls:tl,direction:cu,progress:Xl}=v.useContext(At.E_),yu=tl("progress",Lr),[Cl,nu]=Zs(yu),Xn=v.useMemo(()=>{if(!Ma)return null;const iu=Hr(Pn);let hu;const ic=Dl||(pc=>`${pc}%`),Gu=qa==="line";return Dl||Ha!=="exception"&&Ha!=="success"?hu=ic(Hs(fs),Hs(iu)):Ha==="exception"?hu=Gu?v.createElement(Ni.Z,null):v.createElement(kr.Z,null):Ha==="success"&&(hu=Gu?v.createElement(di.Z,null):v.createElement(Wr.Z,null)),v.createElement("span",{className:`${yu}-text`,title:typeof hu=="string"?hu:void 0},hu)},[Ma,fs,Ia,Ha,qa,yu,Dl]),Ho=Array.isArray(Pi)?Pi[0]:Pi,Ls=typeof Pi=="string"||Array.isArray(Pi)?Pi:void 0;let Xs;qa==="line"?Xs=Qi?v.createElement(eo,Object.assign({},Pn,{strokeColor:Ls,prefixCls:yu,steps:Qi}),Xn):v.createElement(yr,Object.assign({},Pn,{strokeColor:Ho,prefixCls:yu,direction:cu}),Xn):(qa==="circle"||qa==="dashboard")&&(Xs=v.createElement(Et,Object.assign({},Pn,{strokeColor:Ho,prefixCls:yu,progressStatus:Ha}),Xn));const il=N()(yu,`${yu}-status-${Ha}`,`${yu}-${qa==="dashboard"&&"circle"||Qi&&"steps"||qa}`,{[`${yu}-inline-circle`]:qa==="circle"&&Ln(Ks,"circle")[0]<=20,[`${yu}-show-info`]:Ma,[`${yu}-${Ks}`]:typeof Ks=="string",[`${yu}-rtl`]:cu==="rtl"},Xl==null?void 0:Xl.className,Gr,ai,nu);return Cl(v.createElement("div",Object.assign({ref:er,style:Object.assign(Object.assign({},Xl==null?void 0:Xl.style),Oa),className:il,role:"progressbar","aria-valuenow":Ia},(0,Xr.Z)(ju,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Xs))}),Al=Il,Ea=v.forwardRef((Pn,er)=>{let{prefixCls:Lr,className:Gr,style:ai,locale:Qi,listType:Pi,file:fs,items:Ks,progress:Ma,iconRender:qa,actionIconRender:rl,itemRender:Dl,isImgUrl:Oa,showPreviewIcon:ju,showRemoveIcon:Ia,showDownloadIcon:Ha,previewIcon:tl,removeIcon:cu,downloadIcon:Xl,onPreview:yu,onDownload:Cl,onClose:nu}=Pn;var Xn,Ho;const{status:Ls}=fs,[Xs,il]=v.useState(Ls);v.useEffect(()=>{Ls!=="removed"&&il(Ls)},[Ls]);const[iu,hu]=v.useState(!1);v.useEffect(()=>{const Th=setTimeout(()=>{hu(!0)},300);return()=>{clearTimeout(Th)}},[]);const ic=qa(fs);let Gu=v.createElement("div",{className:`${Lr}-icon`},ic);if(Pi==="picture"||Pi==="picture-card"||Pi==="picture-circle")if(Xs==="uploading"||!fs.thumbUrl&&!fs.url){const Th=N()(`${Lr}-list-item-thumbnail`,{[`${Lr}-list-item-file`]:Xs!=="uploading"});Gu=v.createElement("div",{className:Th},ic)}else{const Th=Oa!=null&&Oa(fs)?v.createElement("img",{src:fs.thumbUrl||fs.url,alt:fs.name,className:`${Lr}-list-item-image`,crossOrigin:fs.crossOrigin}):ic,gh=N()(`${Lr}-list-item-thumbnail`,{[`${Lr}-list-item-file`]:Oa&&!Oa(fs)});Gu=v.createElement("a",{className:gh,onClick:Mf=>yu(fs,Mf),href:fs.url||fs.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Th)}const pc=N()(`${Lr}-list-item`,`${Lr}-list-item-${Xs}`),qc=typeof fs.linkProps=="string"?JSON.parse(fs.linkProps):fs.linkProps,Lc=Ia?rl((typeof cu=="function"?cu(fs):cu)||v.createElement(xn,null),()=>nu(fs),Lr,Qi.removeFile):null,jh=Ha&&Xs==="done"?rl((typeof Xl=="function"?Xl(fs):Xl)||v.createElement(Ei,null),()=>Cl(fs),Lr,Qi.downloadFile):null,Md=Pi!=="picture-card"&&Pi!=="picture-circle"&&v.createElement("span",{key:"download-delete",className:N()(`${Lr}-list-item-actions`,{picture:Pi==="picture"})},jh,Lc),ad=N()(`${Lr}-list-item-name`),kh=fs.url?[v.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ad,title:fs.name},qc,{href:fs.url,onClick:Th=>yu(fs,Th)}),fs.name),Md]:[v.createElement("span",{key:"view",className:ad,onClick:Th=>yu(fs,Th),title:fs.name},fs.name),Md],hc={pointerEvents:"none",opacity:.5},yc=ju?v.createElement("a",{href:fs.url||fs.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:fs.url||fs.thumbUrl?void 0:hc,onClick:Th=>yu(fs,Th),title:Qi.previewFile},typeof tl=="function"?tl(fs):tl||v.createElement(Yi.Z,null)):null,Uh=(Pi==="picture-card"||Pi==="picture-circle")&&Xs!=="uploading"&&v.createElement("span",{className:`${Lr}-list-item-actions`},yc,Xs==="done"&&jh,Lc),{getPrefixCls:yh}=v.useContext(At.E_),pd=yh(),Ed=v.createElement("div",{className:pc},Gu,kh,Uh,iu&&v.createElement(Wi.ZP,{motionName:`${pd}-fade`,visible:Xs==="uploading",motionDeadline:2e3},Th=>{let{className:gh}=Th;const Mf="percent"in fs?v.createElement(Al,Object.assign({},Ma,{type:"line",percent:fs.percent,"aria-label":fs["aria-label"],"aria-labelledby":fs["aria-labelledby"]})):null;return v.createElement("div",{className:N()(`${Lr}-list-item-progress`,gh)},Mf)})),vh=fs.response&&typeof fs.response=="string"?fs.response:((Xn=fs.error)===null||Xn===void 0?void 0:Xn.statusText)||((Ho=fs.error)===null||Ho===void 0?void 0:Ho.message)||Qi.uploadError,zd=Xs==="error"?v.createElement(_s.Z,{title:vh,getPopupContainer:Th=>Th.parentNode},Ed):Ed;return v.createElement("div",{className:N()(`${Lr}-list-item-container`,Gr),style:ai,ref:er},Dl?Dl(zd,fs,Ks,{download:Cl.bind(null,fs),preview:yu.bind(null,fs),remove:nu.bind(null,fs)}):zd)});const gl=(Pn,er)=>{const{listType:Lr="text",previewFile:Gr=Ur,onPreview:ai,onDownload:Qi,onRemove:Pi,locale:fs,iconRender:Ks,isImageUrl:Ma=In,prefixCls:qa,items:rl=[],showPreviewIcon:Dl=!0,showRemoveIcon:Oa=!0,showDownloadIcon:ju=!1,removeIcon:Ia,previewIcon:Ha,downloadIcon:tl,progress:cu={size:[-1,2],showInfo:!1},appendAction:Xl,appendActionVisible:yu=!0,itemRender:Cl,disabled:nu}=Pn,Xn=(0,ir.Z)(),[Ho,Ls]=v.useState(!1);v.useEffect(()=>{Lr!=="picture"&&Lr!=="picture-card"&&Lr!=="picture-circle"||(rl||[]).forEach(hc=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(hc.originFileObj instanceof File||hc.originFileObj instanceof Blob)||hc.thumbUrl!==void 0||(hc.thumbUrl="",Gr&&Gr(hc.originFileObj).then(yc=>{hc.thumbUrl=yc||"",Xn()}))})},[Lr,rl,Gr]),v.useEffect(()=>{Ls(!0)},[]);const Xs=(hc,yc)=>{if(ai)return yc==null||yc.preventDefault(),ai(hc)},il=hc=>{typeof Qi=="function"?Qi(hc):hc.url&&window.open(hc.url)},iu=hc=>{Pi==null||Pi(hc)},hu=hc=>{if(Ks)return Ks(hc,Lr);const yc=hc.status==="uploading",Uh=Ma&&Ma(hc)?v.createElement(qr,null):v.createElement(sn,null);let yh=yc?v.createElement(wr.Z,null):v.createElement(Hi,null);return Lr==="picture"?yh=yc?v.createElement(wr.Z,null):Uh:(Lr==="picture-card"||Lr==="picture-circle")&&(yh=yc?fs.uploading:Uh),yh},ic=(hc,yc,Uh,yh)=>{const pd={type:"text",size:"small",title:yh,onClick:Ed=>{yc(),(0,$t.l$)(hc)&&hc.props.onClick&&hc.props.onClick(Ed)},className:`${Uh}-list-item-action`,disabled:nu};if((0,$t.l$)(hc)){const Ed=(0,$t.Tm)(hc,Object.assign(Object.assign({},hc.props),{onClick:()=>{}}));return v.createElement(Gt.ZP,Object.assign({},pd,{icon:Ed}))}return v.createElement(Gt.ZP,Object.assign({},pd),v.createElement("span",null,hc))};v.useImperativeHandle(er,()=>({handlePreview:Xs,handleDownload:il}));const{getPrefixCls:Gu}=v.useContext(At.E_),pc=Gu("upload",qa),qc=Gu(),Lc=N()(`${pc}-list`,`${pc}-list-${Lr}`),jh=(0,M.Z)(rl.map(hc=>({key:hc.uid,file:hc})));let ad={motionDeadline:2e3,motionName:`${pc}-${Lr==="picture-card"||Lr==="picture-circle"?"animate-inline":"animate"}`,keys:jh,motionAppear:Ho};const kh=v.useMemo(()=>{const hc=Object.assign({},(0,Jn.Z)(qc));return delete hc.onAppearEnd,delete hc.onEnterEnd,delete hc.onLeaveEnd,hc},[qc]);return Lr!=="picture-card"&&Lr!=="picture-circle"&&(ad=Object.assign(Object.assign({},kh),ad)),v.createElement("div",{className:Lc},v.createElement(Wi.V4,Object.assign({},ad,{component:!1}),hc=>{let{key:yc,file:Uh,className:yh,style:pd}=hc;return v.createElement(Ea,{key:yc,locale:fs,prefixCls:pc,className:yh,style:pd,file:Uh,items:rl,progress:cu,listType:Lr,isImgUrl:Ma,showPreviewIcon:Dl,showRemoveIcon:Oa,showDownloadIcon:ju,removeIcon:Ia,previewIcon:Ha,downloadIcon:tl,iconRender:hu,actionIconRender:ic,itemRender:Cl,onPreview:Xs,onDownload:il,onClose:iu})}),Xl&&v.createElement(Wi.ZP,Object.assign({},ad,{visible:yu,forceRender:!0}),hc=>{let{className:yc,style:Uh}=hc;return(0,$t.Tm)(Xl,yh=>({className:N()(yh.className,yc),style:Object.assign(Object.assign(Object.assign({},Uh),{pointerEvents:yc?"none":void 0}),yh.style)}))}))};var Gi=v.forwardRef(gl),Jo=function(Pn,er,Lr,Gr){function ai(Qi){return Qi instanceof Lr?Qi:new Lr(function(Pi){Pi(Qi)})}return new(Lr||(Lr=Promise))(function(Qi,Pi){function fs(qa){try{Ma(Gr.next(qa))}catch(rl){Pi(rl)}}function Ks(qa){try{Ma(Gr.throw(qa))}catch(rl){Pi(rl)}}function Ma(qa){qa.done?Qi(qa.value):ai(qa.value).then(fs,Ks)}Ma((Gr=Gr.apply(Pn,er||[])).next())})};const Ps=`__LIST_IGNORE_${Date.now()}__`,Fs=(Pn,er)=>{const{fileList:Lr,defaultFileList:Gr,onRemove:ai,showUploadList:Qi=!0,listType:Pi="text",onPreview:fs,onDownload:Ks,onChange:Ma,onDrop:qa,previewFile:rl,disabled:Dl,locale:Oa,iconRender:ju,isImageUrl:Ia,progress:Ha,prefixCls:tl,className:cu,type:Xl="select",children:yu,style:Cl,itemRender:nu,maxCount:Xn,data:Ho={},multiple:Ls=!1,action:Xs="",accept:il="",supportServerRender:iu=!0,rootClassName:hu}=Pn,ic=v.useContext(an.Z),Gu=Dl!=null?Dl:ic,[pc,qc]=(0,Bt.Z)(Gr||[],{value:Lr,postState:Ah=>Ah!=null?Ah:[]}),[Lc,jh]=v.useState("drop"),Md=v.useRef(null);v.useMemo(()=>{const Ah=Date.now();(Lr||[]).forEach((md,Aa)=>{!md.uid&&!Object.isFrozen(md)&&(md.uid=`__AUTO__${Ah}_${Aa}__`)})},[Lr]);const ad=(Ah,md,Aa)=>{let _u=(0,M.Z)(md),Hl=!1;Xn===1?_u=_u.slice(-1):Xn&&(Hl=_u.length>Xn,_u=_u.slice(0,Xn)),(0,C.flushSync)(()=>{qc(_u)});const Ou={file:Ah,fileList:_u};Aa&&(Ou.event=Aa),(!Hl||_u.some(qu=>qu.uid===Ah.uid))&&(0,C.flushSync)(()=>{Ma==null||Ma(Ou)})},kh=(Ah,md)=>Jo(void 0,void 0,void 0,function*(){const{beforeUpload:Aa,transformFile:_u}=Pn;let Hl=Ah;if(Aa){const Ou=yield Aa(Ah,md);if(Ou===!1)return!1;if(delete Ah[Ps],Ou===Ps)return Object.defineProperty(Ah,Ps,{value:!0,configurable:!0}),!1;typeof Ou=="object"&&Ou&&(Hl=Ou)}return _u&&(Hl=yield _u(Hl)),Hl}),hc=Ah=>{const md=Ah.filter(Hl=>!Hl.file[Ps]);if(!md.length)return;const Aa=md.map(Hl=>wn(Hl.file));let _u=(0,M.Z)(pc);Aa.forEach(Hl=>{_u=Zn(Hl,_u)}),Aa.forEach((Hl,Ou)=>{let qu=Hl;if(md[Ou].parsedFile)Hl.status="uploading";else{const{originFileObj:id}=Hl;let ld;try{ld=new File([id],id.name,{type:id.type})}catch(Jh){ld=new Blob([id],{type:id.type}),ld.name=id.name,ld.lastModifiedDate=new Date,ld.lastModified=new Date().getTime()}ld.uid=Hl.uid,qu=ld}ad(qu,_u)})},yc=(Ah,md,Aa)=>{try{typeof Ah=="string"&&(Ah=JSON.parse(Ah))}catch(Ou){}if(!_r(md,pc))return;const _u=wn(md);_u.status="done",_u.percent=100,_u.response=Ah,_u.xhr=Aa;const Hl=Zn(_u,pc);ad(_u,Hl)},Uh=(Ah,md)=>{if(!_r(md,pc))return;const Aa=wn(md);Aa.status="uploading",Aa.percent=Ah.percent;const _u=Zn(Aa,pc);ad(Aa,_u,Ah)},yh=(Ah,md,Aa)=>{if(!_r(Aa,pc))return;const _u=wn(Aa);_u.error=Ah,_u.response=md,_u.status="error";const Hl=Zn(_u,pc);ad(_u,Hl)},pd=Ah=>{let md;Promise.resolve(typeof ai=="function"?ai(Ah):ai).then(Aa=>{var _u;if(Aa===!1)return;const Hl=qn(Ah,pc);Hl&&(md=Object.assign(Object.assign({},Ah),{status:"removed"}),pc==null||pc.forEach(Ou=>{const qu=md.uid!==void 0?"uid":"name";Ou[qu]===md[qu]&&!Object.isFrozen(Ou)&&(Ou.status="removed")}),(_u=Md.current)===null||_u===void 0||_u.abort(md),ad(md,Hl))})},Ed=Ah=>{jh(Ah.type),Ah.type==="drop"&&(qa==null||qa(Ah))};v.useImperativeHandle(er,()=>({onBatchStart:hc,onSuccess:yc,onProgress:Uh,onError:yh,fileList:pc,upload:Md.current}));const{getPrefixCls:vh,direction:zd,upload:Th}=v.useContext(At.E_),gh=vh("upload",tl),Mf=Object.assign(Object.assign({onBatchStart:hc,onError:yh,onProgress:Uh,onSuccess:yc},Pn),{data:Ho,multiple:Ls,action:Xs,accept:il,supportServerRender:iu,prefixCls:gh,disabled:Gu,beforeUpload:kh,onChange:void 0});delete Mf.className,delete Mf.style,(!yu||Gu)&&delete Mf.id;const[gd,Yu]=rn(gh),[nh]=(0,Tt.Z)("Upload",Nn.Z.Upload),{showRemoveIcon:Nd,showPreviewIcon:df,showDownloadIcon:bf,removeIcon:Of,previewIcon:Yf,downloadIcon:Bf}=typeof Qi=="boolean"?{}:Qi,xd=(Ah,md)=>Qi?v.createElement(Gi,{prefixCls:gh,listType:Pi,items:pc,previewFile:rl,onPreview:fs,onDownload:Ks,onRemove:pd,showRemoveIcon:!Gu&&Nd,showPreviewIcon:df,showDownloadIcon:bf,removeIcon:Of,previewIcon:Yf,downloadIcon:Bf,iconRender:ju,locale:Object.assign(Object.assign({},nh),Oa),isImageUrl:Ia,progress:Ha,appendAction:Ah,appendActionVisible:md,itemRender:nu,disabled:Gu}):Ah,Sd=N()(`${gh}-wrapper`,cu,hu,Yu,Th==null?void 0:Th.className,{[`${gh}-rtl`]:zd==="rtl",[`${gh}-picture-card-wrapper`]:Pi==="picture-card",[`${gh}-picture-circle-wrapper`]:Pi==="picture-circle"}),Eu=Object.assign(Object.assign({},Th==null?void 0:Th.style),Cl);if(Xl==="drag"){const Ah=N()(Yu,gh,`${gh}-drag`,{[`${gh}-drag-uploading`]:pc.some(md=>md.status==="uploading"),[`${gh}-drag-hover`]:Lc==="dragover",[`${gh}-disabled`]:Gu,[`${gh}-rtl`]:zd==="rtl"});return gd(v.createElement("span",{className:Sd},v.createElement("div",{className:Ah,style:Eu,onDrop:Ed,onDragOver:Ed,onDragLeave:Ed},v.createElement(lt,Object.assign({},Mf,{ref:Md,className:`${gh}-btn`}),v.createElement("div",{className:`${gh}-drag-container`},yu))),xd()))}const xf=N()(gh,`${gh}-select`,{[`${gh}-disabled`]:Gu}),Pu=(Ah=>v.createElement("div",{className:xf,style:Ah},v.createElement(lt,Object.assign({},Mf,{ref:Md}))))(yu?void 0:{display:"none"});return gd(Pi==="picture-card"||Pi==="picture-circle"?v.createElement("span",{className:Sd},xd(Pu,!!yu)):v.createElement("span",{className:Sd},Pu,xd()))};var Nu=v.forwardRef(Fs),Tc=function(Pn,er){var Lr={};for(var Gr in Pn)Object.prototype.hasOwnProperty.call(Pn,Gr)&&er.indexOf(Gr)<0&&(Lr[Gr]=Pn[Gr]);if(Pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ai=0,Gr=Object.getOwnPropertySymbols(Pn);ai{var{style:Lr,height:Gr}=Pn,ai=Tc(Pn,["style","height"]);return v.createElement(Nu,Object.assign({ref:er},ai,{type:"drag",style:Object.assign(Object.assign({},Lr),{height:Gr})}))});const cc=Nu;cc.Dragger=tc,cc.LIST_IGNORE=Ps;var Uu=cc},33060:function(mt,q,_){"use strict";var v=_(57957).default;Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var M=v(_(83353)),C=q.default=M.default},88901:function(mt,q,_){"use strict";var v=_(57957).default;Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var M=v(_(70399)),C=q.default=M.default},83353:function(mt,q,_){"use strict";var v=_(57957).default;Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var M=v(_(25942)),C=v(_(83238));const x={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"]},M.default),timePickerLocale:Object.assign({},C.default)};var N=q.default=x},70399:function(mt,q,_){"use strict";var v=_(57957).default;Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;var M=v(_(874)),C=v(_(3819));const x={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"]},M.default),timePickerLocale:Object.assign({},C.default)};x.lang.ok="\u786E\u5B9A";var N=q.default=x},94211:function(mt,q,_){"use strict";var v,M=_(57957).default;v={value:!0},q.Z=void 0;var C=M(_(5137)),x=M(_(33060)),N=M(_(83353)),V=M(_(83238));const R="${label} is not a valid ${type}",k={locale:"en",Pagination:C.default,DatePicker:N.default,TimePicker:V.default,Calendar:x.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:R,method:R,array:R,object:R,number:R,date:R,boolean:R,integer:R,float:R,regexp:R,email:R,url:R,hex:R},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 S=q.Z=k},44073:function(mt,q,_){"use strict";var v,M=_(57957).default;v={value:!0},q.Z=void 0;var C=M(_(10876)),x=M(_(88901)),N=M(_(70399)),V=M(_(3819));const R="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",k={locale:"zh-cn",Pagination:C.default,DatePicker:N.default,TimePicker:V.default,Calendar:x.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:R,method:R,array:R,object:R,number:R,date:R,boolean:R,integer:R,float:R,regexp:R,email:R,url:R,hex:R},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 S=q.Z=k},83238:function(mt,q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;const _={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var v=q.default=_},3819:function(mt,q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.default=void 0;const _={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};var v=q.default=_},86251:function(mt,q){"use strict";q.byteLength=R,q.toByteArray=S,q.fromByteArray=F;for(var _=[],v=[],M=typeof Uint8Array!="undefined"?Uint8Array:Array,C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x=0,N=C.length;x0)throw new Error("Invalid string. Length must be a multiple of 4");var fe=K.indexOf("=");fe===-1&&(fe=he);var be=fe===he?0:4-fe%4;return[fe,be]}function R(K){var he=V(K),fe=he[0],be=he[1];return(fe+be)*3/4-be}function k(K,he,fe){return(he+fe)*3/4-fe}function S(K){var he,fe=V(K),be=fe[0],Ae=fe[1],xe=new M(k(K,be,Ae)),Se=0,it=Ae>0?be-4:be,Xe;for(Xe=0;Xe>16&255,xe[Se++]=he>>8&255,xe[Se++]=he&255;return Ae===2&&(he=v[K.charCodeAt(Xe)]<<2|v[K.charCodeAt(Xe+1)]>>4,xe[Se++]=he&255),Ae===1&&(he=v[K.charCodeAt(Xe)]<<10|v[K.charCodeAt(Xe+1)]<<4|v[K.charCodeAt(Xe+2)]>>2,xe[Se++]=he>>8&255,xe[Se++]=he&255),xe}function p(K){return _[K>>18&63]+_[K>>12&63]+_[K>>6&63]+_[K&63]}function T(K,he,fe){for(var be,Ae=[],xe=he;xeit?it:Se+xe));return be===1?(he=K[fe-1],Ae.push(_[he>>2]+_[he<<4&63]+"==")):be===2&&(he=(K[fe-2]<<8)+K[fe-1],Ae.push(_[he>>10]+_[he>>4&63]+_[he<<2&63]+"=")),Ae.join("")}},29114:function(mt,q,_){"use strict";var v;var M=_(86251),C=_(67467),x=_(99100);q.lW=k,v=xe,q.h2=50,k.TYPED_ARRAY_SUPPORT=_.g.TYPED_ARRAY_SUPPORT!==void 0?_.g.TYPED_ARRAY_SUPPORT:N(),v=V();function N(){try{var Tn=new Uint8Array(1);return Tn.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Tn.foo()===42&&typeof Tn.subarray=="function"&&Tn.subarray(1,1).byteLength===0}catch(nt){return!1}}function V(){return k.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function R(Tn,nt){if(V()=V())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V().toString(16)+" bytes");return Tn|0}function xe(Tn){return+Tn!=Tn&&(Tn=0),k.alloc(+Tn)}k.isBuffer=function(nt){return!!(nt!=null&&nt._isBuffer)},k.compare=function(nt,Ct){if(!k.isBuffer(nt)||!k.isBuffer(Ct))throw new TypeError("Arguments must be Buffers");if(nt===Ct)return 0;for(var Ht=nt.length,hn=Ct.length,En=0,rn=Math.min(Ht,hn);En>>1;case"base64":return co(Tn).length;default:if(Ht)return De(Tn).length;nt=(""+nt).toLowerCase(),Ht=!0}}k.byteLength=Se;function it(Tn,nt,Ct){var Ht=!1;if((nt===void 0||nt<0)&&(nt=0),nt>this.length||((Ct===void 0||Ct>this.length)&&(Ct=this.length),Ct<=0)||(Ct>>>=0,nt>>>=0,Ct<=nt))return"";for(Tn||(Tn="utf8");;)switch(Tn){case"hex":return At(this,nt,Ct);case"utf8":case"utf-8":return Ne(this,nt,Ct);case"ascii":return lt(this,nt,Ct);case"latin1":case"binary":return Bt(this,nt,Ct);case"base64":return rt(this,nt,Ct);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return an(this,nt,Ct);default:if(Ht)throw new TypeError("Unknown encoding: "+Tn);Tn=(Tn+"").toLowerCase(),Ht=!0}}k.prototype._isBuffer=!0;function Xe(Tn,nt,Ct){var Ht=Tn[nt];Tn[nt]=Tn[Ct],Tn[Ct]=Ht}k.prototype.swap16=function(){var nt=this.length;if(nt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ct=0;Ct0&&(nt=this.toString("hex",0,Ct).match(/.{2}/g).join(" "),this.length>Ct&&(nt+=" ... ")),""},k.prototype.compare=function(nt,Ct,Ht,hn,En){if(!k.isBuffer(nt))throw new TypeError("Argument must be a Buffer");if(Ct===void 0&&(Ct=0),Ht===void 0&&(Ht=nt?nt.length:0),hn===void 0&&(hn=0),En===void 0&&(En=this.length),Ct<0||Ht>nt.length||hn<0||En>this.length)throw new RangeError("out of range index");if(hn>=En&&Ct>=Ht)return 0;if(hn>=En)return-1;if(Ct>=Ht)return 1;if(Ct>>>=0,Ht>>>=0,hn>>>=0,En>>>=0,this===nt)return 0;for(var rn=En-hn,Jt=Ht-Ct,Mt=Math.min(rn,Jt),Qt=this.slice(hn,En),Dn=nt.slice(Ct,Ht),sn=0;sn2147483647?Ct=2147483647:Ct<-2147483648&&(Ct=-2147483648),Ct=+Ct,isNaN(Ct)&&(Ct=hn?0:Tn.length-1),Ct<0&&(Ct=Tn.length+Ct),Ct>=Tn.length){if(hn)return-1;Ct=Tn.length-1}else if(Ct<0)if(hn)Ct=0;else return-1;if(typeof nt=="string"&&(nt=k.from(nt,Ht)),k.isBuffer(nt))return nt.length===0?-1:Me(Tn,nt,Ct,Ht,hn);if(typeof nt=="number")return nt=nt&255,k.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?hn?Uint8Array.prototype.indexOf.call(Tn,nt,Ct):Uint8Array.prototype.lastIndexOf.call(Tn,nt,Ct):Me(Tn,[nt],Ct,Ht,hn);throw new TypeError("val must be string, number or Buffer")}function Me(Tn,nt,Ct,Ht,hn){var En=1,rn=Tn.length,Jt=nt.length;if(Ht!==void 0&&(Ht=String(Ht).toLowerCase(),Ht==="ucs2"||Ht==="ucs-2"||Ht==="utf16le"||Ht==="utf-16le")){if(Tn.length<2||nt.length<2)return-1;En=2,rn/=2,Jt/=2,Ct/=2}function Mt(jr,xi){return En===1?jr[xi]:jr.readUInt16BE(xi*En)}var Qt;if(hn){var Dn=-1;for(Qt=Ct;Qtrn&&(Ct=rn-Jt),Qt=Ct;Qt>=0;Qt--){for(var sn=!0,wr=0;wrhn&&(Ht=hn)):Ht=hn;var En=nt.length;if(En%2!==0)throw new TypeError("Invalid hex string");Ht>En/2&&(Ht=En/2);for(var rn=0;rnEn)&&(Ht=En),nt.length>0&&(Ht<0||Ct<0)||Ct>this.length)throw new RangeError("Attempt to write outside buffer bounds");hn||(hn="utf8");for(var rn=!1;;)switch(hn){case"hex":return Ee(this,nt,Ct,Ht);case"utf8":case"utf-8":return ze(this,nt,Ct,Ht);case"ascii":return Pe(this,nt,Ct,Ht);case"latin1":case"binary":return Re(this,nt,Ct,Ht);case"base64":return je(this,nt,Ct,Ht);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ce(this,nt,Ct,Ht);default:if(rn)throw new TypeError("Unknown encoding: "+hn);hn=(""+hn).toLowerCase(),rn=!0}},k.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function rt(Tn,nt,Ct){return nt===0&&Ct===Tn.length?M.fromByteArray(Tn):M.fromByteArray(Tn.slice(nt,Ct))}function Ne(Tn,nt,Ct){Ct=Math.min(Tn.length,Ct);for(var Ht=[],hn=nt;hn239?4:En>223?3:En>191?2:1;if(hn+Jt<=Ct){var Mt,Qt,Dn,sn;switch(Jt){case 1:En<128&&(rn=En);break;case 2:Mt=Tn[hn+1],(Mt&192)===128&&(sn=(En&31)<<6|Mt&63,sn>127&&(rn=sn));break;case 3:Mt=Tn[hn+1],Qt=Tn[hn+2],(Mt&192)===128&&(Qt&192)===128&&(sn=(En&15)<<12|(Mt&63)<<6|Qt&63,sn>2047&&(sn<55296||sn>57343)&&(rn=sn));break;case 4:Mt=Tn[hn+1],Qt=Tn[hn+2],Dn=Tn[hn+3],(Mt&192)===128&&(Qt&192)===128&&(Dn&192)===128&&(sn=(En&15)<<18|(Mt&63)<<12|(Qt&63)<<6|Dn&63,sn>65535&&sn<1114112&&(rn=sn))}}rn===null?(rn=65533,Jt=1):rn>65535&&(rn-=65536,Ht.push(rn>>>10&1023|55296),rn=56320|rn&1023),Ht.push(rn),hn+=Jt}return Ft(Ht)}var Xt=4096;function Ft(Tn){var nt=Tn.length;if(nt<=Xt)return String.fromCharCode.apply(String,Tn);for(var Ct="",Ht=0;HtHt)&&(Ct=Ht);for(var hn="",En=nt;EnHt&&(nt=Ht),Ct<0?(Ct+=Ht,Ct<0&&(Ct=0)):Ct>Ht&&(Ct=Ht),CtCt)throw new RangeError("Trying to access beyond buffer length")}k.prototype.readUIntLE=function(nt,Ct,Ht){nt=nt|0,Ct=Ct|0,Ht||Tt(nt,Ct,this.length);for(var hn=this[nt],En=1,rn=0;++rn0&&(En*=256);)hn+=this[nt+--Ct]*En;return hn},k.prototype.readUInt8=function(nt,Ct){return Ct||Tt(nt,1,this.length),this[nt]},k.prototype.readUInt16LE=function(nt,Ct){return Ct||Tt(nt,2,this.length),this[nt]|this[nt+1]<<8},k.prototype.readUInt16BE=function(nt,Ct){return Ct||Tt(nt,2,this.length),this[nt]<<8|this[nt+1]},k.prototype.readUInt32LE=function(nt,Ct){return Ct||Tt(nt,4,this.length),(this[nt]|this[nt+1]<<8|this[nt+2]<<16)+this[nt+3]*16777216},k.prototype.readUInt32BE=function(nt,Ct){return Ct||Tt(nt,4,this.length),this[nt]*16777216+(this[nt+1]<<16|this[nt+2]<<8|this[nt+3])},k.prototype.readIntLE=function(nt,Ct,Ht){nt=nt|0,Ct=Ct|0,Ht||Tt(nt,Ct,this.length);for(var hn=this[nt],En=1,rn=0;++rn=En&&(hn-=Math.pow(2,8*Ct)),hn},k.prototype.readIntBE=function(nt,Ct,Ht){nt=nt|0,Ct=Ct|0,Ht||Tt(nt,Ct,this.length);for(var hn=Ct,En=1,rn=this[nt+--hn];hn>0&&(En*=256);)rn+=this[nt+--hn]*En;return En*=128,rn>=En&&(rn-=Math.pow(2,8*Ct)),rn},k.prototype.readInt8=function(nt,Ct){return Ct||Tt(nt,1,this.length),this[nt]&128?(255-this[nt]+1)*-1:this[nt]},k.prototype.readInt16LE=function(nt,Ct){Ct||Tt(nt,2,this.length);var Ht=this[nt]|this[nt+1]<<8;return Ht&32768?Ht|4294901760:Ht},k.prototype.readInt16BE=function(nt,Ct){Ct||Tt(nt,2,this.length);var Ht=this[nt+1]|this[nt]<<8;return Ht&32768?Ht|4294901760:Ht},k.prototype.readInt32LE=function(nt,Ct){return Ct||Tt(nt,4,this.length),this[nt]|this[nt+1]<<8|this[nt+2]<<16|this[nt+3]<<24},k.prototype.readInt32BE=function(nt,Ct){return Ct||Tt(nt,4,this.length),this[nt]<<24|this[nt+1]<<16|this[nt+2]<<8|this[nt+3]},k.prototype.readFloatLE=function(nt,Ct){return Ct||Tt(nt,4,this.length),C.read(this,nt,!0,23,4)},k.prototype.readFloatBE=function(nt,Ct){return Ct||Tt(nt,4,this.length),C.read(this,nt,!1,23,4)},k.prototype.readDoubleLE=function(nt,Ct){return Ct||Tt(nt,8,this.length),C.read(this,nt,!0,52,8)},k.prototype.readDoubleBE=function(nt,Ct){return Ct||Tt(nt,8,this.length),C.read(this,nt,!1,52,8)};function Nn(Tn,nt,Ct,Ht,hn,En){if(!k.isBuffer(Tn))throw new TypeError('"buffer" argument must be a Buffer instance');if(nt>hn||ntTn.length)throw new RangeError("Index out of range")}k.prototype.writeUIntLE=function(nt,Ct,Ht,hn){if(nt=+nt,Ct=Ct|0,Ht=Ht|0,!hn){var En=Math.pow(2,8*Ht)-1;Nn(this,nt,Ct,Ht,En,0)}var rn=1,Jt=0;for(this[Ct]=nt&255;++Jt=0&&(Jt*=256);)this[Ct+rn]=nt/Jt&255;return Ct+Ht},k.prototype.writeUInt8=function(nt,Ct,Ht){return nt=+nt,Ct=Ct|0,Ht||Nn(this,nt,Ct,1,255,0),k.TYPED_ARRAY_SUPPORT||(nt=Math.floor(nt)),this[Ct]=nt&255,Ct+1};function mn(Tn,nt,Ct,Ht){nt<0&&(nt=65535+nt+1);for(var hn=0,En=Math.min(Tn.length-Ct,2);hn>>(Ht?hn:1-hn)*8}k.prototype.writeUInt16LE=function(nt,Ct,Ht){return nt=+nt,Ct=Ct|0,Ht||Nn(this,nt,Ct,2,65535,0),k.TYPED_ARRAY_SUPPORT?(this[Ct]=nt&255,this[Ct+1]=nt>>>8):mn(this,nt,Ct,!0),Ct+2},k.prototype.writeUInt16BE=function(nt,Ct,Ht){return nt=+nt,Ct=Ct|0,Ht||Nn(this,nt,Ct,2,65535,0),k.TYPED_ARRAY_SUPPORT?(this[Ct]=nt>>>8,this[Ct+1]=nt&255):mn(this,nt,Ct,!1),Ct+2};function zn(Tn,nt,Ct,Ht){nt<0&&(nt=4294967295+nt+1);for(var hn=0,En=Math.min(Tn.length-Ct,4);hn>>(Ht?hn:3-hn)*8&255}k.prototype.writeUInt32LE=function(nt,Ct,Ht){return nt=+nt,Ct=Ct|0,Ht||Nn(this,nt,Ct,4,4294967295,0),k.TYPED_ARRAY_SUPPORT?(this[Ct+3]=nt>>>24,this[Ct+2]=nt>>>16,this[Ct+1]=nt>>>8,this[Ct]=nt&255):zn(this,nt,Ct,!0),Ct+4},k.prototype.writeUInt32BE=function(nt,Ct,Ht){return nt=+nt,Ct=Ct|0,Ht||Nn(this,nt,Ct,4,4294967295,0),k.TYPED_ARRAY_SUPPORT?(this[Ct]=nt>>>24,this[Ct+1]=nt>>>16,this[Ct+2]=nt>>>8,this[Ct+3]=nt&255):zn(this,nt,Ct,!1),Ct+4},k.prototype.writeIntLE=function(nt,Ct,Ht,hn){if(nt=+nt,Ct=Ct|0,!hn){var En=Math.pow(2,8*Ht-1);Nn(this,nt,Ct,Ht,En-1,-En)}var rn=0,Jt=1,Mt=0;for(this[Ct]=nt&255;++rn>0)-Mt&255;return Ct+Ht},k.prototype.writeIntBE=function(nt,Ct,Ht,hn){if(nt=+nt,Ct=Ct|0,!hn){var En=Math.pow(2,8*Ht-1);Nn(this,nt,Ct,Ht,En-1,-En)}var rn=Ht-1,Jt=1,Mt=0;for(this[Ct+rn]=nt&255;--rn>=0&&(Jt*=256);)nt<0&&Mt===0&&this[Ct+rn+1]!==0&&(Mt=1),this[Ct+rn]=(nt/Jt>>0)-Mt&255;return Ct+Ht},k.prototype.writeInt8=function(nt,Ct,Ht){return nt=+nt,Ct=Ct|0,Ht||Nn(this,nt,Ct,1,127,-128),k.TYPED_ARRAY_SUPPORT||(nt=Math.floor(nt)),nt<0&&(nt=255+nt+1),this[Ct]=nt&255,Ct+1},k.prototype.writeInt16LE=function(nt,Ct,Ht){return nt=+nt,Ct=Ct|0,Ht||Nn(this,nt,Ct,2,32767,-32768),k.TYPED_ARRAY_SUPPORT?(this[Ct]=nt&255,this[Ct+1]=nt>>>8):mn(this,nt,Ct,!0),Ct+2},k.prototype.writeInt16BE=function(nt,Ct,Ht){return nt=+nt,Ct=Ct|0,Ht||Nn(this,nt,Ct,2,32767,-32768),k.TYPED_ARRAY_SUPPORT?(this[Ct]=nt>>>8,this[Ct+1]=nt&255):mn(this,nt,Ct,!1),Ct+2},k.prototype.writeInt32LE=function(nt,Ct,Ht){return nt=+nt,Ct=Ct|0,Ht||Nn(this,nt,Ct,4,2147483647,-2147483648),k.TYPED_ARRAY_SUPPORT?(this[Ct]=nt&255,this[Ct+1]=nt>>>8,this[Ct+2]=nt>>>16,this[Ct+3]=nt>>>24):zn(this,nt,Ct,!0),Ct+4},k.prototype.writeInt32BE=function(nt,Ct,Ht){return nt=+nt,Ct=Ct|0,Ht||Nn(this,nt,Ct,4,2147483647,-2147483648),nt<0&&(nt=4294967295+nt+1),k.TYPED_ARRAY_SUPPORT?(this[Ct]=nt>>>24,this[Ct+1]=nt>>>16,this[Ct+2]=nt>>>8,this[Ct+3]=nt&255):zn(this,nt,Ct,!1),Ct+4};function Kr(Tn,nt,Ct,Ht,hn,En){if(Ct+Ht>Tn.length)throw new RangeError("Index out of range");if(Ct<0)throw new RangeError("Index out of range")}function Ui(Tn,nt,Ct,Ht,hn){return hn||Kr(Tn,nt,Ct,4,34028234663852886e22,-34028234663852886e22),C.write(Tn,nt,Ct,Ht,23,4),Ct+4}k.prototype.writeFloatLE=function(nt,Ct,Ht){return Ui(this,nt,Ct,!0,Ht)},k.prototype.writeFloatBE=function(nt,Ct,Ht){return Ui(this,nt,Ct,!1,Ht)};function go(Tn,nt,Ct,Ht,hn){return hn||Kr(Tn,nt,Ct,8,17976931348623157e292,-17976931348623157e292),C.write(Tn,nt,Ct,Ht,52,8),Ct+8}k.prototype.writeDoubleLE=function(nt,Ct,Ht){return go(this,nt,Ct,!0,Ht)},k.prototype.writeDoubleBE=function(nt,Ct,Ht){return go(this,nt,Ct,!1,Ht)},k.prototype.copy=function(nt,Ct,Ht,hn){if(Ht||(Ht=0),!hn&&hn!==0&&(hn=this.length),Ct>=nt.length&&(Ct=nt.length),Ct||(Ct=0),hn>0&&hn=this.length)throw new RangeError("sourceStart out of bounds");if(hn<0)throw new RangeError("sourceEnd out of bounds");hn>this.length&&(hn=this.length),nt.length-Ct=0;--rn)nt[rn+Ct]=this[rn+Ht];else if(En<1e3||!k.TYPED_ARRAY_SUPPORT)for(rn=0;rn>>0,Ht=Ht===void 0?this.length:Ht>>>0,nt||(nt=0);var rn;if(typeof nt=="number")for(rn=Ct;rn55295&&Ct<57344){if(!hn){if(Ct>56319){(nt-=3)>-1&&En.push(239,191,189);continue}else if(rn+1===Ht){(nt-=3)>-1&&En.push(239,191,189);continue}hn=Ct;continue}if(Ct<56320){(nt-=3)>-1&&En.push(239,191,189),hn=Ct;continue}Ct=(hn-55296<<10|Ct-56320)+65536}else hn&&(nt-=3)>-1&&En.push(239,191,189);if(hn=null,Ct<128){if((nt-=1)<0)break;En.push(Ct)}else if(Ct<2048){if((nt-=2)<0)break;En.push(Ct>>6|192,Ct&63|128)}else if(Ct<65536){if((nt-=3)<0)break;En.push(Ct>>12|224,Ct>>6&63|128,Ct&63|128)}else if(Ct<1114112){if((nt-=4)<0)break;En.push(Ct>>18|240,Ct>>12&63|128,Ct>>6&63|128,Ct&63|128)}else throw new Error("Invalid code point")}return En}function Oo(Tn){for(var nt=[],Ct=0;Ct>8,hn=Ct%256,En.push(hn),En.push(Ht);return En}function co(Tn){return M.toByteArray(Mr(Tn))}function Vr(Tn,nt,Ct,Ht){for(var hn=0;hn=nt.length||hn>=Tn.length);++hn)nt[hn+Ct]=Tn[hn];return hn}function Ro(Tn){return Tn!==Tn}},97683:function(mt,q,_){"use strict";var v=_(44532),M=_(71262),C=M(v("String.prototype.indexOf"));mt.exports=function(N,V){var R=v(N,!!V);return typeof R=="function"&&C(N,".prototype.")>-1?M(R):R}},71262:function(mt,q,_){"use strict";var v=_(36723),M=_(44532),C=_(59662),x=M("%TypeError%"),N=M("%Function.prototype.apply%"),V=M("%Function.prototype.call%"),R=M("%Reflect.apply%",!0)||v.call(V,N),k=M("%Object.defineProperty%",!0),S=M("%Math.max%");if(k)try{k({},"a",{value:1})}catch(T){k=null}mt.exports=function(F){if(typeof F!="function")throw new x("a function is required");var K=R(v,V,arguments);return C(K,1+S(0,F.length-(arguments.length-1)),!0)};var p=function(){return R(v,N,arguments)};k?k(mt.exports,"apply",{value:p}):mt.exports.apply=p},28594:function(mt){(function(_,v){mt.exports=v()})(this,function(){return function(){var q={686:function(M,C,x){"use strict";x.d(C,{default:function(){return lt}});var N=x(279),V=x.n(N),R=x(370),k=x.n(R),S=x(817),p=x.n(S);function T(Bt){try{return document.execCommand(Bt)}catch(At){return!1}}var F=function(At){var an=p()(At);return T("cut"),an},K=F;function he(Bt){var At=document.documentElement.getAttribute("dir")==="rtl",an=document.createElement("textarea");an.style.fontSize="12pt",an.style.border="0",an.style.padding="0",an.style.margin="0",an.style.position="absolute",an.style[At?"right":"left"]="-9999px";var Tt=window.pageYOffset||document.documentElement.scrollTop;return an.style.top="".concat(Tt,"px"),an.setAttribute("readonly",""),an.value=Bt,an}var fe=function(At,an){var Tt=he(At);an.container.appendChild(Tt);var Nn=p()(Tt);return T("copy"),Tt.remove(),Nn},be=function(At){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},Tt="";return typeof At=="string"?Tt=fe(At,an):At instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(At==null?void 0:At.type)?Tt=fe(At.value,an):(Tt=p()(At),T("copy")),Tt},Ae=be;function xe(Bt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xe=function(an){return typeof an}:xe=function(an){return an&&typeof Symbol=="function"&&an.constructor===Symbol&&an!==Symbol.prototype?"symbol":typeof an},xe(Bt)}var Se=function(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},an=At.action,Tt=an===void 0?"copy":an,Nn=At.container,mn=At.target,zn=At.text;if(Tt!=="copy"&&Tt!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(mn!==void 0)if(mn&&xe(mn)==="object"&&mn.nodeType===1){if(Tt==="copy"&&mn.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(Tt==="cut"&&(mn.hasAttribute("readonly")||mn.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(zn)return Ae(zn,{container:Nn});if(mn)return Tt==="cut"?K(mn):Ae(mn,{container:Nn})},it=Se;function Xe(Bt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xe=function(an){return typeof an}:Xe=function(an){return an&&typeof Symbol=="function"&&an.constructor===Symbol&&an!==Symbol.prototype?"symbol":typeof an},Xe(Bt)}function ft(Bt,At){if(!(Bt instanceof At))throw new TypeError("Cannot call a class as a function")}function Me(Bt,At){for(var an=0;an0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof Nn.action=="function"?Nn.action:this.defaultAction,this.target=typeof Nn.target=="function"?Nn.target:this.defaultTarget,this.text=typeof Nn.text=="function"?Nn.text:this.defaultText,this.container=Xe(Nn.container)==="object"?Nn.container:document.body}},{key:"listenClick",value:function(Nn){var mn=this;this.listener=k()(Nn,"click",function(zn){return mn.onClick(zn)})}},{key:"onClick",value:function(Nn){var mn=Nn.delegateTarget||Nn.currentTarget,zn=this.action(mn)||"copy",Kr=it({action:zn,container:this.container,target:this.target(mn),text:this.text(mn)});this.emit(Kr?"success":"error",{action:zn,text:Kr,trigger:mn,clearSelection:function(){mn&&mn.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(Nn){return Xt("action",Nn)}},{key:"defaultTarget",value:function(Nn){var mn=Xt("target",Nn);if(mn)return document.querySelector(mn)}},{key:"defaultText",value:function(Nn){return Xt("text",Nn)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(Nn){var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return Ae(Nn,mn)}},{key:"cut",value:function(Nn){return K(Nn)}},{key:"isSupported",value:function(){var Nn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],mn=typeof Nn=="string"?[Nn]:Nn,zn=!!document.queryCommandSupported;return mn.forEach(function(Kr){zn=zn&&!!document.queryCommandSupported(Kr)}),zn}}]),an}(V()),lt=Ft},828:function(M){var C=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var x=Element.prototype;x.matches=x.matchesSelector||x.mozMatchesSelector||x.msMatchesSelector||x.oMatchesSelector||x.webkitMatchesSelector}function N(V,R){for(;V&&V.nodeType!==C;){if(typeof V.matches=="function"&&V.matches(R))return V;V=V.parentNode}}M.exports=N},438:function(M,C,x){var N=x(828);function V(S,p,T,F,K){var he=k.apply(this,arguments);return S.addEventListener(T,he,K),{destroy:function(){S.removeEventListener(T,he,K)}}}function R(S,p,T,F,K){return typeof S.addEventListener=="function"?V.apply(null,arguments):typeof T=="function"?V.bind(null,document).apply(null,arguments):(typeof S=="string"&&(S=document.querySelectorAll(S)),Array.prototype.map.call(S,function(he){return V(he,p,T,F,K)}))}function k(S,p,T,F){return function(K){K.delegateTarget=N(K.target,p),K.delegateTarget&&F.call(S,K)}}M.exports=R},879:function(M,C){C.node=function(x){return x!==void 0&&x instanceof HTMLElement&&x.nodeType===1},C.nodeList=function(x){var N=Object.prototype.toString.call(x);return x!==void 0&&(N==="[object NodeList]"||N==="[object HTMLCollection]")&&"length"in x&&(x.length===0||C.node(x[0]))},C.string=function(x){return typeof x=="string"||x instanceof String},C.fn=function(x){var N=Object.prototype.toString.call(x);return N==="[object Function]"}},370:function(M,C,x){var N=x(879),V=x(438);function R(T,F,K){if(!T&&!F&&!K)throw new Error("Missing required arguments");if(!N.string(F))throw new TypeError("Second argument must be a String");if(!N.fn(K))throw new TypeError("Third argument must be a Function");if(N.node(T))return k(T,F,K);if(N.nodeList(T))return S(T,F,K);if(N.string(T))return p(T,F,K);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function k(T,F,K){return T.addEventListener(F,K),{destroy:function(){T.removeEventListener(F,K)}}}function S(T,F,K){return Array.prototype.forEach.call(T,function(he){he.addEventListener(F,K)}),{destroy:function(){Array.prototype.forEach.call(T,function(he){he.removeEventListener(F,K)})}}}function p(T,F,K){return V(document.body,T,F,K)}M.exports=R},817:function(M){function C(x){var N;if(x.nodeName==="SELECT")x.focus(),N=x.value;else if(x.nodeName==="INPUT"||x.nodeName==="TEXTAREA"){var V=x.hasAttribute("readonly");V||x.setAttribute("readonly",""),x.select(),x.setSelectionRange(0,x.value.length),V||x.removeAttribute("readonly"),N=x.value}else{x.hasAttribute("contenteditable")&&x.focus();var R=window.getSelection(),k=document.createRange();k.selectNodeContents(x),R.removeAllRanges(),R.addRange(k),N=R.toString()}return N}M.exports=C},279:function(M){function C(){}C.prototype={on:function(x,N,V){var R=this.e||(this.e={});return(R[x]||(R[x]=[])).push({fn:N,ctx:V}),this},once:function(x,N,V){var R=this;function k(){R.off(x,k),N.apply(V,arguments)}return k._=N,this.on(x,k,V)},emit:function(x){var N=[].slice.call(arguments,1),V=((this.e||(this.e={}))[x]||[]).slice(),R=0,k=V.length;for(R;R1&&(S-=1)),[S*360,p*100,he*100]},C.rgb.hwb=function(N){const V=N[0],R=N[1];let k=N[2];const S=C.rgb.hsl(N)[0],p=1/255*Math.min(V,Math.min(R,k));return k=1-1/255*Math.max(V,Math.max(R,k)),[S,p*100,k*100]},C.rgb.cmyk=function(N){const V=N[0]/255,R=N[1]/255,k=N[2]/255,S=Math.min(1-V,1-R,1-k),p=(1-V-S)/(1-S)||0,T=(1-R-S)/(1-S)||0,F=(1-k-S)/(1-S)||0;return[p*100,T*100,F*100,S*100]};function x(N,V){return E1(N[0]-V[0],2)+E1(N[1]-V[1],2)+E1(N[2]-V[2],2)}C.rgb.keyword=function(N){const V=M[N];if(V)return V;let R=1/0,k;for(const S of Object.keys(v)){const p=v[S],T=x(N,p);T.04045?E1((V+.055)/1.055,2.4):V/12.92,R=R>.04045?E1((R+.055)/1.055,2.4):R/12.92,k=k>.04045?E1((k+.055)/1.055,2.4):k/12.92;const S=V*.4124+R*.3576+k*.1805,p=V*.2126+R*.7152+k*.0722,T=V*.0193+R*.1192+k*.9505;return[S*100,p*100,T*100]},C.rgb.lab=function(N){const V=C.rgb.xyz(N);let R=V[0],k=V[1],S=V[2];R/=95.047,k/=100,S/=108.883,R=R>.008856?E1(R,1/3):7.787*R+16/116,k=k>.008856?E1(k,1/3):7.787*k+16/116,S=S>.008856?E1(S,1/3):7.787*S+16/116;const p=116*k-16,T=500*(R-k),F=200*(k-S);return[p,T,F]},C.hsl.rgb=function(N){const V=N[0]/360,R=N[1]/100,k=N[2]/100;let S,p,T;if(R===0)return T=k*255,[T,T,T];k<.5?S=k*(1+R):S=k+R-k*R;const F=2*k-S,K=[0,0,0];for(let he=0;he<3;he++)p=V+1/3*-(he-1),p<0&&p++,p>1&&p--,6*p<1?T=F+(S-F)*6*p:2*p<1?T=S:3*p<2?T=F+(S-F)*(2/3-p)*6:T=F,K[he]=T*255;return K},C.hsl.hsv=function(N){const V=N[0];let R=N[1]/100,k=N[2]/100,S=R;const p=Math.max(k,.01);k*=2,R*=k<=1?k:2-k,S*=p<=1?p:2-p;const T=(k+R)/2,F=k===0?2*S/(p+S):2*R/(k+R);return[V,F*100,T*100]},C.hsv.rgb=function(N){const V=N[0]/60,R=N[1]/100;let k=N[2]/100;const S=Math.floor(V)%6,p=V-Math.floor(V),T=255*k*(1-R),F=255*k*(1-R*p),K=255*k*(1-R*(1-p));switch(k*=255,S){case 0:return[k,K,T];case 1:return[F,k,T];case 2:return[T,k,K];case 3:return[T,F,k];case 4:return[K,T,k];case 5:return[k,T,F]}},C.hsv.hsl=function(N){const V=N[0],R=N[1]/100,k=N[2]/100,S=Math.max(k,.01);let p,T;T=(2-R)*k;const F=(2-R)*S;return p=R*S,p/=F<=1?F:2-F,p=p||0,T/=2,[V,p*100,T*100]},C.hwb.rgb=function(N){const V=N[0]/360;let R=N[1]/100,k=N[2]/100;const S=R+k;let p;S>1&&(R/=S,k/=S);const T=Math.floor(6*V),F=1-k;p=6*V-T,T&1&&(p=1-p);const K=R+p*(F-R);let he,fe,be;switch(T){default:case 6:case 0:he=F,fe=K,be=R;break;case 1:he=K,fe=F,be=R;break;case 2:he=R,fe=F,be=K;break;case 3:he=R,fe=K,be=F;break;case 4:he=K,fe=R,be=F;break;case 5:he=F,fe=R,be=K;break}return[he*255,fe*255,be*255]},C.cmyk.rgb=function(N){const V=N[0]/100,R=N[1]/100,k=N[2]/100,S=N[3]/100,p=1-Math.min(1,V*(1-S)+S),T=1-Math.min(1,R*(1-S)+S),F=1-Math.min(1,k*(1-S)+S);return[p*255,T*255,F*255]},C.xyz.rgb=function(N){const V=N[0]/100,R=N[1]/100,k=N[2]/100;let S,p,T;return S=V*3.2406+R*-1.5372+k*-.4986,p=V*-.9689+R*1.8758+k*.0415,T=V*.0557+R*-.204+k*1.057,S=S>.0031308?1.055*E1(S,1/2.4)-.055:S*12.92,p=p>.0031308?1.055*E1(p,1/2.4)-.055:p*12.92,T=T>.0031308?1.055*E1(T,1/2.4)-.055:T*12.92,S=Math.min(Math.max(0,S),1),p=Math.min(Math.max(0,p),1),T=Math.min(Math.max(0,T),1),[S*255,p*255,T*255]},C.xyz.lab=function(N){let V=N[0],R=N[1],k=N[2];V/=95.047,R/=100,k/=108.883,V=V>.008856?E1(V,1/3):7.787*V+16/116,R=R>.008856?E1(R,1/3):7.787*R+16/116,k=k>.008856?E1(k,1/3):7.787*k+16/116;const S=116*R-16,p=500*(V-R),T=200*(R-k);return[S,p,T]},C.lab.xyz=function(N){const V=N[0],R=N[1],k=N[2];let S,p,T;p=(V+16)/116,S=R/500+p,T=p-k/200;const F=E1(p,3),K=E1(S,3),he=E1(T,3);return p=F>.008856?F:(p-16/116)/7.787,S=K>.008856?K:(S-16/116)/7.787,T=he>.008856?he:(T-16/116)/7.787,S*=95.047,p*=100,T*=108.883,[S,p,T]},C.lab.lch=function(N){const V=N[0],R=N[1],k=N[2];let S;S=Math.atan2(k,R)*360/2/Math.PI,S<0&&(S+=360);const T=Math.sqrt(R*R+k*k);return[V,T,S]},C.lch.lab=function(N){const V=N[0],R=N[1],S=N[2]/360*2*Math.PI,p=R*Math.cos(S),T=R*Math.sin(S);return[V,p,T]},C.rgb.ansi16=function(N,V=null){const[R,k,S]=N;let p=V===null?C.rgb.hsv(N)[2]:V;if(p=Math.round(p/50),p===0)return 30;let T=30+(Math.round(S/255)<<2|Math.round(k/255)<<1|Math.round(R/255));return p===2&&(T+=60),T},C.hsv.ansi16=function(N){return C.rgb.ansi16(C.hsv.rgb(N),N[2])},C.rgb.ansi256=function(N){const V=N[0],R=N[1],k=N[2];return V===R&&R===k?V<8?16:V>248?231:Math.round((V-8)/247*24)+232:16+36*Math.round(V/255*5)+6*Math.round(R/255*5)+Math.round(k/255*5)},C.ansi16.rgb=function(N){let V=N%10;if(V===0||V===7)return N>50&&(V+=3.5),V=V/10.5*255,[V,V,V];const R=(~~(N>50)+1)*.5,k=(V&1)*R*255,S=(V>>1&1)*R*255,p=(V>>2&1)*R*255;return[k,S,p]},C.ansi256.rgb=function(N){if(N>=232){const p=(N-232)*10+8;return[p,p,p]}N-=16;let V;const R=Math.floor(N/36)/5*255,k=Math.floor((V=N%36)/6)/5*255,S=V%6/5*255;return[R,k,S]},C.rgb.hex=function(N){const R=(((Math.round(N[0])&255)<<16)+((Math.round(N[1])&255)<<8)+(Math.round(N[2])&255)).toString(16).toUpperCase();return"000000".substring(R.length)+R},C.hex.rgb=function(N){const V=N.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!V)return[0,0,0];let R=V[0];V[0].length===3&&(R=R.split("").map(F=>F+F).join(""));const k=parseInt(R,16),S=k>>16&255,p=k>>8&255,T=k&255;return[S,p,T]},C.rgb.hcg=function(N){const V=N[0]/255,R=N[1]/255,k=N[2]/255,S=Math.max(Math.max(V,R),k),p=Math.min(Math.min(V,R),k),T=S-p;let F,K;return T<1?F=p/(1-T):F=0,T<=0?K=0:S===V?K=(R-k)/T%6:S===R?K=2+(k-V)/T:K=4+(V-R)/T,K/=6,K%=1,[K*360,T*100,F*100]},C.hsl.hcg=function(N){const V=N[1]/100,R=N[2]/100,k=R<.5?2*V*R:2*V*(1-R);let S=0;return k<1&&(S=(R-.5*k)/(1-k)),[N[0],k*100,S*100]},C.hsv.hcg=function(N){const V=N[1]/100,R=N[2]/100,k=V*R;let S=0;return k<1&&(S=(R-k)/(1-k)),[N[0],k*100,S*100]},C.hcg.rgb=function(N){const V=N[0]/360,R=N[1]/100,k=N[2]/100;if(R===0)return[k*255,k*255,k*255];const S=[0,0,0],p=V%1*6,T=p%1,F=1-T;let K=0;switch(Math.floor(p)){case 0:S[0]=1,S[1]=T,S[2]=0;break;case 1:S[0]=F,S[1]=1,S[2]=0;break;case 2:S[0]=0,S[1]=1,S[2]=T;break;case 3:S[0]=0,S[1]=F,S[2]=1;break;case 4:S[0]=T,S[1]=0,S[2]=1;break;default:S[0]=1,S[1]=0,S[2]=F}return K=(1-R)*k,[(R*S[0]+K)*255,(R*S[1]+K)*255,(R*S[2]+K)*255]},C.hcg.hsv=function(N){const V=N[1]/100,R=N[2]/100,k=V+R*(1-V);let S=0;return k>0&&(S=V/k),[N[0],S*100,k*100]},C.hcg.hsl=function(N){const V=N[1]/100,k=N[2]/100*(1-V)+.5*V;let S=0;return k>0&&k<.5?S=V/(2*k):k>=.5&&k<1&&(S=V/(2*(1-k))),[N[0],S*100,k*100]},C.hcg.hwb=function(N){const V=N[1]/100,R=N[2]/100,k=V+R*(1-V);return[N[0],(k-V)*100,(1-k)*100]},C.hwb.hcg=function(N){const V=N[1]/100,k=1-N[2]/100,S=k-V;let p=0;return S<1&&(p=(k-S)/(1-S)),[N[0],S*100,p*100]},C.apple.rgb=function(N){return[N[0]/65535*255,N[1]/65535*255,N[2]/65535*255]},C.rgb.apple=function(N){return[N[0]/255*65535,N[1]/255*65535,N[2]/255*65535]},C.gray.rgb=function(N){return[N[0]/100*255,N[0]/100*255,N[0]/100*255]},C.gray.hsl=function(N){return[0,0,N[0]]},C.gray.hsv=C.gray.hsl,C.gray.hwb=function(N){return[0,100,N[0]]},C.gray.cmyk=function(N){return[0,0,0,N[0]]},C.gray.lab=function(N){return[N[0],0,0]},C.gray.hex=function(N){const V=Math.round(N[0]/100*255)&255,k=((V<<16)+(V<<8)+V).toString(16).toUpperCase();return"000000".substring(k.length)+k},C.rgb.gray=function(N){return[(N[0]+N[1]+N[2])/3/255*100]}},41492:function(mt,q,_){const v=_(18135),M=_(40756),C={},x=Object.keys(v);function N(R){const k=function(...S){const p=S[0];return p==null?p:(p.length>1&&(S=p),R(S))};return"conversion"in R&&(k.conversion=R.conversion),k}function V(R){const k=function(...S){const p=S[0];if(p==null)return p;p.length>1&&(S=p);const T=R(S);if(typeof T=="object")for(let F=T.length,K=0;K{C[R]={},Object.defineProperty(C[R],"channels",{value:v[R].channels}),Object.defineProperty(C[R],"labels",{value:v[R].labels});const k=M(R);Object.keys(k).forEach(p=>{const T=k[p];C[R][p]=V(T),C[R][p].raw=N(T)})}),mt.exports=C},40756:function(mt,q,_){const v=_(18135);function M(){const V={},R=Object.keys(v);for(let k=R.length,S=0;S=4&&S[3]!==1&&(p=", "+S[3]),"hwb("+S[0]+", "+S[1]+"%, "+S[2]+"%"+p+")"},V.to.keyword=function(S){return x[S.slice(0,3)]};function R(S,p,T){return Math.min(Math.max(p,S),T)}function k(S){var p=Math.round(S).toString(16).toUpperCase();return p.length<2?"0"+p:p}},28170:function(mt,q,_){const v=_(75196),M=_(41492),C=["keyword","gray","hex"],x={};for(const K of Object.keys(M))x[[...M[K].labels].sort().join("")]=K;const N={};function V(K,he){if(!(this instanceof V))return new V(K,he);if(he&&he in C&&(he=null),he&&!(he in M))throw new Error("Unknown model: "+he);let fe,be;if(K==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(K instanceof V)this.model=K.model,this.color=[...K.color],this.valpha=K.valpha;else if(typeof K=="string"){const Ae=v.get(K);if(Ae===null)throw new Error("Unable to parse color from string: "+K);this.model=Ae.model,be=M[this.model].channels,this.color=Ae.value.slice(0,be),this.valpha=typeof Ae.value[be]=="number"?Ae.value[be]:1}else if(K.length>0){this.model=he||"rgb",be=M[this.model].channels;const Ae=Array.prototype.slice.call(K,0,be);this.color=F(Ae,be),this.valpha=typeof K[be]=="number"?K[be]:1}else if(typeof K=="number")this.model="rgb",this.color=[K>>16&255,K>>8&255,K&255],this.valpha=1;else{this.valpha=1;const Ae=Object.keys(K);"alpha"in K&&(Ae.splice(Ae.indexOf("alpha"),1),this.valpha=typeof K.alpha=="number"?K.alpha:0);const xe=Ae.sort().join("");if(!(xe in x))throw new Error("Unable to parse color from object: "+JSON.stringify(K));this.model=x[xe];const{labels:Se}=M[this.model],it=[];for(fe=0;fe(K%360+360)%360),saturationl:S("hsl",1,p(100)),lightness:S("hsl",2,p(100)),saturationv:S("hsv",1,p(100)),value:S("hsv",2,p(100)),chroma:S("hcg",1,p(100)),gray:S("hcg",2,p(100)),white:S("hwb",1,p(100)),wblack:S("hwb",2,p(100)),cyan:S("cmyk",0,p(100)),magenta:S("cmyk",1,p(100)),yellow:S("cmyk",2,p(100)),black:S("cmyk",3,p(100)),x:S("xyz",0,p(95.047)),y:S("xyz",1,p(100)),z:S("xyz",2,p(108.833)),l:S("lab",0,p(100)),a:S("lab",1),b:S("lab",2),keyword(K){return K!==void 0?new V(K):M[this.model].keyword(this.color)},hex(K){return K!==void 0?new V(K):v.to.hex(this.rgb().round().color)},hexa(K){if(K!==void 0)return new V(K);const he=this.rgb().round().color;let fe=Math.round(this.valpha*255).toString(16).toUpperCase();return fe.length===1&&(fe="0"+fe),v.to.hex(he)+fe},rgbNumber(){const K=this.rgb().color;return(K[0]&255)<<16|(K[1]&255)<<8|K[2]&255},luminosity(){const K=this.rgb().color,he=[];for(const[fe,be]of K.entries()){const Ae=be/255;he[fe]=Ae<=.04045?Ae/12.92:E1((Ae+.055)/1.055,2.4)}return .2126*he[0]+.7152*he[1]+.0722*he[2]},contrast(K){const he=this.luminosity(),fe=K.luminosity();return he>fe?(he+.05)/(fe+.05):(fe+.05)/(he+.05)},level(K){const he=this.contrast(K);return he>=7?"AAA":he>=4.5?"AA":""},isDark(){const K=this.rgb().color;return(K[0]*2126+K[1]*7152+K[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const K=this.rgb();for(let he=0;he<3;he++)K.color[he]=255-K.color[he];return K},lighten(K){const he=this.hsl();return he.color[2]+=he.color[2]*K,he},darken(K){const he=this.hsl();return he.color[2]-=he.color[2]*K,he},saturate(K){const he=this.hsl();return he.color[1]+=he.color[1]*K,he},desaturate(K){const he=this.hsl();return he.color[1]-=he.color[1]*K,he},whiten(K){const he=this.hwb();return he.color[1]+=he.color[1]*K,he},blacken(K){const he=this.hwb();return he.color[2]+=he.color[2]*K,he},grayscale(){const K=this.rgb().color,he=K[0]*.3+K[1]*.59+K[2]*.11;return V.rgb(he,he,he)},fade(K){return this.alpha(this.valpha-this.valpha*K)},opaquer(K){return this.alpha(this.valpha+this.valpha*K)},rotate(K){const he=this.hsl();let fe=he.color[0];return fe=(fe+K)%360,fe=fe<0?360+fe:fe,he.color[0]=fe,he},mix(K,he){if(!K||!K.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof K);const fe=K.rgb(),be=this.rgb(),Ae=he===void 0?.5:he,xe=2*Ae-1,Se=fe.alpha()-be.alpha(),it=((xe*Se===-1?xe:(xe+Se)/(1+xe*Se))+1)/2,Xe=1-it;return V.rgb(it*fe.red()+Xe*be.red(),it*fe.green()+Xe*be.green(),it*fe.blue()+Xe*be.blue(),fe.alpha()*Ae+be.alpha()*(1-Ae))}};for(const K of Object.keys(M)){if(C.includes(K))continue;const{channels:he}=M[K];V.prototype[K]=function(...fe){return this.model===K?new V(this):fe.length>0?new V(fe,K):new V([...T(M[this.model][K].raw(this.color)),this.valpha],K)},V[K]=function(...fe){let be=fe[0];return typeof be=="number"&&(be=F(fe,he)),new V(be,K)}}function R(K,he){return Number(K.toFixed(he))}function k(K){return function(he){return R(he,K)}}function S(K,he,fe){K=Array.isArray(K)?K:[K];for(const be of K)(N[be]||(N[be]=[]))[he]=fe;return K=K[0],function(be){let Ae;return be!==void 0?(fe&&(be=fe(be)),Ae=this[K](),Ae.color[he]=be,Ae):(Ae=this[K]().color[he],fe&&(Ae=fe(Ae)),Ae)}}function p(K){return function(he){return Math.max(0,Math.min(K,he))}}function T(K){return Array.isArray(K)?K:[K]}function F(K,he){for(let fe=0;fePe||je.push({node:Ne,dist:Xt})}for(;je.length&&!je.peek().node.children;){var Ft=je.pop(),lt=Ft.node,Bt=Ae(lt,ft,Me),At=Ae(lt,Ee,ze);if(Ft.dist=ft.minX&&Xe[0]<=ft.maxX&&Xe[1]>=ft.minY&&Xe[1]<=ft.maxY}function p(Xe,ft,Me){for(var Ee=Math.min(Xe[0],ft[0]),ze=Math.min(Xe[1],ft[1]),Pe=Math.max(Xe[0],ft[0]),Re=Math.max(Xe[1],ft[1]),je=Me.search({minX:Ee,minY:ze,maxX:Pe,maxY:Re}),Ce=0;Ce0!=T(Xe,ft,Ee)>0&&T(Me,Ee,Xe)>0!=T(Me,Ee,ft)>0}function K(Xe){var ft=Xe.p,Me=Xe.next.p;return Xe.minX=Math.min(ft[0],Me[0]),Xe.minY=Math.min(ft[1],Me[1]),Xe.maxX=Math.max(ft[0],Me[0]),Xe.maxY=Math.max(ft[1],Me[1]),Xe}function he(Xe){for(var ft=Xe[0],Me=Xe[0],Ee=Xe[0],ze=Xe[0],Pe=0;PeEe[0]&&(Ee=Re),Re[1]ze[1]&&(ze=Re)}var je=[ft,Me,Ee,ze],Ce=je.slice();for(Pe=0;Pe1?(Ee=Me[0],ze=Me[1]):je>0&&(Ee+=Pe*je,ze+=Re*je)}return Pe=Xe[0]-Ee,Re=Xe[1]-ze,Pe*Pe+Re*Re}function xe(Xe,ft,Me,Ee,ze,Pe,Re,je){var Ce=Me-Xe,rt=Ee-ft,Ne=Re-ze,Xt=je-Pe,Ft=Xe-ze,lt=ft-Pe,Bt=Ce*Ce+rt*rt,At=Ce*Ne+rt*Xt,an=Ne*Ne+Xt*Xt,Tt=Ce*Ft+rt*lt,Nn=Ne*Ft+Xt*lt,mn=Bt*an-At*At,zn,Kr,Ui,go,gi=mn,Mr=mn;mn===0?(Kr=0,gi=1,go=Nn,Mr=an):(Kr=At*Nn-an*Tt,go=Bt*Nn-At*Tt,Kr<0?(Kr=0,go=Nn,Mr=an):Kr>gi&&(Kr=gi,go=Nn+At,Mr=an)),go<0?(go=0,-Tt<0?Kr=0:-Tt>Bt?Kr=gi:(Kr=-Tt,gi=Bt)):go>Mr&&(go=Mr,-Tt+At<0?Kr=0:-Tt+At>Bt?Kr=gi:(Kr=-Tt+At,gi=Bt)),zn=Kr===0?0:Kr/gi,Ui=go===0?0:go/Mr;var To=(1-zn)*Xe+zn*Me,ms=(1-zn)*ft+zn*Ee,De=(1-Ui)*ze+Ui*Re,Oo=(1-Ui)*Pe+Ui*je,$i=De-To,co=Oo-ms;return $i*$i+co*co}function Se(Xe,ft){return Xe[0]===ft[0]?Xe[1]-ft[1]:Xe[0]-ft[0]}function it(Xe){Xe.sort(Se);for(var ft=[],Me=0;Me=2&&T(ft[ft.length-2],ft[ft.length-1],Xe[Me])<=0;)ft.pop();ft.push(Xe[Me])}for(var Ee=[],ze=Xe.length-1;ze>=0;ze--){for(;Ee.length>=2&&T(Ee[Ee.length-2],Ee[Ee.length-1],Xe[ze])<=0;)Ee.pop();Ee.push(Xe[ze])}return Ee.pop(),ft.pop(),ft.concat(Ee)}},81622:function(mt,q){var _=typeof self!="undefined"?self:this,v=function(){function C(){this.fetch=!1,this.DOMException=_.DOMException}return C.prototype=_,new C}();(function(C){var x=function(N){var V={searchParams:"URLSearchParams"in C,iterable:"Symbol"in C&&"iterator"in Symbol,blob:"FileReader"in C&&"Blob"in C&&function(){try{return new Blob,!0}catch(Ce){return!1}}(),formData:"FormData"in C,arrayBuffer:"ArrayBuffer"in C};function R(Ce){return Ce&&DataView.prototype.isPrototypeOf(Ce)}if(V.arrayBuffer)var k=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],S=ArrayBuffer.isView||function(Ce){return Ce&&k.indexOf(Object.prototype.toString.call(Ce))>-1};function p(Ce){if(typeof Ce!="string"&&(Ce=String(Ce)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(Ce))throw new TypeError("Invalid character in header field name");return Ce.toLowerCase()}function T(Ce){return typeof Ce!="string"&&(Ce=String(Ce)),Ce}function F(Ce){var rt={next:function(){var Ne=Ce.shift();return{done:Ne===void 0,value:Ne}}};return V.iterable&&(rt[Symbol.iterator]=function(){return rt}),rt}function K(Ce){this.map={},Ce instanceof K?Ce.forEach(function(rt,Ne){this.append(Ne,rt)},this):Array.isArray(Ce)?Ce.forEach(function(rt){this.append(rt[0],rt[1])},this):Ce&&Object.getOwnPropertyNames(Ce).forEach(function(rt){this.append(rt,Ce[rt])},this)}K.prototype.append=function(Ce,rt){Ce=p(Ce),rt=T(rt);var Ne=this.map[Ce];this.map[Ce]=Ne?Ne+", "+rt:rt},K.prototype.delete=function(Ce){delete this.map[p(Ce)]},K.prototype.get=function(Ce){return Ce=p(Ce),this.has(Ce)?this.map[Ce]:null},K.prototype.has=function(Ce){return this.map.hasOwnProperty(p(Ce))},K.prototype.set=function(Ce,rt){this.map[p(Ce)]=T(rt)},K.prototype.forEach=function(Ce,rt){for(var Ne in this.map)this.map.hasOwnProperty(Ne)&&Ce.call(rt,this.map[Ne],Ne,this)},K.prototype.keys=function(){var Ce=[];return this.forEach(function(rt,Ne){Ce.push(Ne)}),F(Ce)},K.prototype.values=function(){var Ce=[];return this.forEach(function(rt){Ce.push(rt)}),F(Ce)},K.prototype.entries=function(){var Ce=[];return this.forEach(function(rt,Ne){Ce.push([Ne,rt])}),F(Ce)},V.iterable&&(K.prototype[Symbol.iterator]=K.prototype.entries);function he(Ce){if(Ce.bodyUsed)return Promise.reject(new TypeError("Already read"));Ce.bodyUsed=!0}function fe(Ce){return new Promise(function(rt,Ne){Ce.onload=function(){rt(Ce.result)},Ce.onerror=function(){Ne(Ce.error)}})}function be(Ce){var rt=new FileReader,Ne=fe(rt);return rt.readAsArrayBuffer(Ce),Ne}function Ae(Ce){var rt=new FileReader,Ne=fe(rt);return rt.readAsText(Ce),Ne}function xe(Ce){for(var rt=new Uint8Array(Ce),Ne=new Array(rt.length),Xt=0;Xt-1?rt:Ce}function Me(Ce,rt){rt=rt||{};var Ne=rt.body;if(Ce instanceof Me){if(Ce.bodyUsed)throw new TypeError("Already read");this.url=Ce.url,this.credentials=Ce.credentials,rt.headers||(this.headers=new K(Ce.headers)),this.method=Ce.method,this.mode=Ce.mode,this.signal=Ce.signal,!Ne&&Ce._bodyInit!=null&&(Ne=Ce._bodyInit,Ce.bodyUsed=!0)}else this.url=String(Ce);if(this.credentials=rt.credentials||this.credentials||"same-origin",(rt.headers||!this.headers)&&(this.headers=new K(rt.headers)),this.method=ft(rt.method||this.method||"GET"),this.mode=rt.mode||this.mode||null,this.signal=rt.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Ne)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Ne)}Me.prototype.clone=function(){return new Me(this,{body:this._bodyInit})};function Ee(Ce){var rt=new FormData;return Ce.trim().split("&").forEach(function(Ne){if(Ne){var Xt=Ne.split("="),Ft=Xt.shift().replace(/\+/g," "),lt=Xt.join("=").replace(/\+/g," ");rt.append(decodeURIComponent(Ft),decodeURIComponent(lt))}}),rt}function ze(Ce){var rt=new K,Ne=Ce.replace(/\r?\n[\t ]+/g," ");return Ne.split(/\r?\n/).forEach(function(Xt){var Ft=Xt.split(":"),lt=Ft.shift().trim();if(lt){var Bt=Ft.join(":").trim();rt.append(lt,Bt)}}),rt}it.call(Me.prototype);function Pe(Ce,rt){rt||(rt={}),this.type="default",this.status=rt.status===void 0?200:rt.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in rt?rt.statusText:"OK",this.headers=new K(rt.headers),this.url=rt.url||"",this._initBody(Ce)}it.call(Pe.prototype),Pe.prototype.clone=function(){return new Pe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new K(this.headers),url:this.url})},Pe.error=function(){var Ce=new Pe(null,{status:0,statusText:""});return Ce.type="error",Ce};var Re=[301,302,303,307,308];Pe.redirect=function(Ce,rt){if(Re.indexOf(rt)===-1)throw new RangeError("Invalid status code");return new Pe(null,{status:rt,headers:{location:Ce}})},N.DOMException=C.DOMException;try{new N.DOMException}catch(Ce){N.DOMException=function(rt,Ne){this.message=rt,this.name=Ne;var Xt=Error(rt);this.stack=Xt.stack},N.DOMException.prototype=Object.create(Error.prototype),N.DOMException.prototype.constructor=N.DOMException}function je(Ce,rt){return new Promise(function(Ne,Xt){var Ft=new Me(Ce,rt);if(Ft.signal&&Ft.signal.aborted)return Xt(new N.DOMException("Aborted","AbortError"));var lt=new XMLHttpRequest;function Bt(){lt.abort()}lt.onload=function(){var At={status:lt.status,statusText:lt.statusText,headers:ze(lt.getAllResponseHeaders()||"")};At.url="responseURL"in lt?lt.responseURL:At.headers.get("X-Request-URL");var an="response"in lt?lt.response:lt.responseText;Ne(new Pe(an,At))},lt.onerror=function(){Xt(new TypeError("Network request failed"))},lt.ontimeout=function(){Xt(new TypeError("Network request failed"))},lt.onabort=function(){Xt(new N.DOMException("Aborted","AbortError"))},lt.open(Ft.method,Ft.url,!0),Ft.credentials==="include"?lt.withCredentials=!0:Ft.credentials==="omit"&&(lt.withCredentials=!1),"responseType"in lt&&V.blob&&(lt.responseType="blob"),Ft.headers.forEach(function(At,an){lt.setRequestHeader(an,At)}),Ft.signal&&(Ft.signal.addEventListener("abort",Bt),lt.onreadystatechange=function(){lt.readyState===4&&Ft.signal.removeEventListener("abort",Bt)}),lt.send(typeof Ft._bodyInit=="undefined"?null:Ft._bodyInit)})}return je.polyfill=!0,C.fetch||(C.fetch=je,C.Headers=K,C.Request=Me,C.Response=Pe),N.Headers=K,N.Request=Me,N.Response=Pe,N.fetch=je,Object.defineProperty(N,"__esModule",{value:!0}),N}({})})(v),v.fetch.ponyfill=!0,delete v.fetch.polyfill;var M=v;q=M.fetch,q.default=M.fetch,q.fetch=M.fetch,q.Headers=M.Headers,q.Request=M.Request,q.Response=M.Response,mt.exports=q},57965:function(mt,q,_){"use strict";_.d(q,{j2:function(){return v},b4:function(){return R},YF:function(){return M},We:function(){return k},TS:function(){return it},VR:function(){return ft},G9:function(){return be},ly:function(){return Ae},sd:function(){return fe}});function v(Me,Ee){return MeEe?1:Me>=Ee?0:NaN}function M(Me){return Me.length===1&&(Me=C(Me)),{left:function(Ee,ze,Pe,Re){for(Pe==null&&(Pe=0),Re==null&&(Re=Ee.length);Pe>>1;Me(Ee[je],ze)<0?Pe=je+1:Re=je}return Pe},right:function(Ee,ze,Pe,Re){for(Pe==null&&(Pe=0),Re==null&&(Re=Ee.length);Pe>>1;Me(Ee[je],ze)>0?Re=je:Pe=je+1}return Pe}}}function C(Me){return function(Ee,ze){return v(Me(Ee),ze)}}var x=M(v),N=x.right,V=x.left,R=N;function k(Me,Ee){var ze=Me.length,Pe=-1,Re,je,Ce;if(Ee==null){for(;++Pe=Re)for(je=Ce=Re;++PeRe&&(je=Re),Ce=Re)for(je=Ce=Re;++PeRe&&(je=Re),Ce0)return[Me];if((Pe=Ee0)for(Me=Math.ceil(Me/rt),Ee=Math.floor(Ee/rt),Ce=new Array(je=Math.ceil(Ee-Me+1));++Re=0?(je>=F?10:je>=K?5:je>=he?2:1)*Math.pow(10,Re):-Math.pow(10,-Re)/(je>=F?10:je>=K?5:je>=he?2:1)}function Ae(Me,Ee,ze){var Pe=Math.abs(Ee-Me)/Math.max(0,ze),Re=Math.pow(10,Math.floor(Math.log(Pe)/Math.LN10)),je=Pe/Re;return je>=F?Re*=10:je>=K?Re*=5:je>=he&&(Re*=2),Eelt;)Bt.pop(),--At;var an=new Array(At+1),Tt;for(je=0;je<=At;++je)Tt=an[je]=[],Tt.x0=je>0?Bt[je-1]:Ft,Tt.x1=je=0;)for(Ce=Me[Ee],ze=Ce.length;--ze>=0;)je[--Re]=Ce[ze];return je}function Xe(Me){return Me===null?NaN:+Me}function ft(Me,Ee,ze){if(ze==null&&(ze=Xe),!!(Pe=Me.length)){if((Ee=+Ee)<=0||Pe<2)return+ze(Me[0],0,Me);if(Ee>=1)return+ze(Me[Pe-1],Pe-1,Me);var Pe,Re=(Pe-1)*Ee,je=Math.floor(Re),Ce=+ze(Me[je],je,Me),rt=+ze(Me[je+1],je+1,Me);return Ce+(rt-Ce)*(Re-je)}}},9498:function(mt){(function(q,_){mt.exports=_()})(this,function(){"use strict";var q=1e3,_=6e4,v=36e5,M="millisecond",C="second",x="minute",N="hour",V="day",R="week",k="month",S="quarter",p="year",T="date",F="Invalid Date",K=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,he=/\[([^\]]+)]|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,fe={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(Re){var je=["th","st","nd","rd"],Ce=Re%100;return"["+Re+(je[(Ce-20)%10]||je[Ce]||je[0])+"]"}},be=function(Re,je,Ce){var rt=String(Re);return!rt||rt.length>=je?Re:""+Array(je+1-rt.length).join(Ce)+Re},Ae={s:be,z:function(Re){var je=-Re.utcOffset(),Ce=Math.abs(je),rt=Math.floor(Ce/60),Ne=Ce%60;return(je<=0?"+":"-")+be(rt,2,"0")+":"+be(Ne,2,"0")},m:function Re(je,Ce){if(je.date()1)return Re(Ft[0])}else{var lt=je.name;Se[lt]=je,Ne=lt}return!rt&&Ne&&(xe=Ne),Ne||!rt&&xe},Me=function(Re,je){if(Xe(Re))return Re.clone();var Ce=typeof je=="object"?je:{};return Ce.date=Re,Ce.args=arguments,new ze(Ce)},Ee=Ae;Ee.l=ft,Ee.i=Xe,Ee.w=function(Re,je){return Me(Re,{locale:je.$L,utc:je.$u,x:je.$x,$offset:je.$offset})};var ze=function(){function Re(Ce){this.$L=ft(Ce.locale,null,!0),this.parse(Ce),this.$x=this.$x||Ce.x||{},this[it]=!0}var je=Re.prototype;return je.parse=function(Ce){this.$d=function(rt){var Ne=rt.date,Xt=rt.utc;if(Ne===null)return new Date(NaN);if(Ee.u(Ne))return new Date;if(Ne instanceof Date)return new Date(Ne);if(typeof Ne=="string"&&!/Z$/i.test(Ne)){var Ft=Ne.match(K);if(Ft){var lt=Ft[2]-1||0,Bt=(Ft[7]||"0").substring(0,3);return Xt?new Date(Date.UTC(Ft[1],lt,Ft[3]||1,Ft[4]||0,Ft[5]||0,Ft[6]||0,Bt)):new Date(Ft[1],lt,Ft[3]||1,Ft[4]||0,Ft[5]||0,Ft[6]||0,Bt)}}return new Date(Ne)}(Ce),this.init()},je.init=function(){var Ce=this.$d;this.$y=Ce.getFullYear(),this.$M=Ce.getMonth(),this.$D=Ce.getDate(),this.$W=Ce.getDay(),this.$H=Ce.getHours(),this.$m=Ce.getMinutes(),this.$s=Ce.getSeconds(),this.$ms=Ce.getMilliseconds()},je.$utils=function(){return Ee},je.isValid=function(){return this.$d.toString()!==F},je.isSame=function(Ce,rt){var Ne=Me(Ce);return this.startOf(rt)<=Ne&&Ne<=this.endOf(rt)},je.isAfter=function(Ce,rt){return Me(Ce)0&&typeof F[0]!="number")}function T(F,K,he){var fe,be;if(typeof F!=typeof K||S(F)||S(K)||F.prototype!==K.prototype||M(F)!==M(K))return!1;var Ae=x(F),xe=x(K);if(Ae!==xe)return!1;if(Ae||xe)return F.source===K.source&&N(F)===N(K);if(V(F)&&V(K))return R.call(F)===R.call(K);var Se=p(F),it=p(K);if(Se!==it)return!1;if(Se||it){if(F.length!==K.length)return!1;for(fe=0;fe=0;fe--)if(Xe[fe]!=ft[fe])return!1;for(fe=Xe.length-1;fe>=0;fe--)if(be=Xe[fe],!k(F[be],K[be],he))return!1;return!0}mt.exports=k},51494:function(mt,q,_){"use strict";var v=_(38262)(),M=_(44532),C=v&&M("%Object.defineProperty%",!0);if(C)try{C({},"a",{value:1})}catch(R){C=!1}var x=M("%SyntaxError%"),N=M("%TypeError%"),V=_(67747);mt.exports=function(k,S,p){if(!k||typeof k!="object"&&typeof k!="function")throw new N("`obj` must be an object or a function`");if(typeof S!="string"&&typeof S!="symbol")throw new N("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new N("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new N("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new N("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new N("`loose`, if provided, must be a boolean");var T=arguments.length>3?arguments[3]:null,F=arguments.length>4?arguments[4]:null,K=arguments.length>5?arguments[5]:null,he=arguments.length>6?arguments[6]:!1,fe=!!V&&V(k,S);if(C)C(k,S,{configurable:K===null&&fe?fe.configurable:!K,enumerable:T===null&&fe?fe.enumerable:!T,value:p,writable:F===null&&fe?fe.writable:!F});else if(he||!T&&!F&&!K)k[S]=p;else throw new x("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},8263:function(mt,q,_){"use strict";var v=_(64253),M=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",C=Object.prototype.toString,x=Array.prototype.concat,N=_(51494),V=function(p){return typeof p=="function"&&C.call(p)==="[object Function]"},R=_(38262)(),k=function(p,T,F,K){if(T in p){if(K===!0){if(p[T]===F)return}else if(!V(K)||!K())return}R?N(p,T,F,!0):N(p,T,F)},S=function(p,T){var F=arguments.length>2?arguments[2]:{},K=v(T);M&&(K=x.call(K,Object.getOwnPropertySymbols(T)));for(var he=0;he=this.minPts&&(v=this._mergeArrays(v,x))}this._assigned[C]!==1&&this._addToCluster(C,_)}},q.prototype._addToCluster=function(_,v){this.clusters[v].push(_),this._assigned[_]=1},q.prototype._regionQuery=function(_){for(var v=[],M=0;M0){for(var k=0;k=0);return v},q.prototype.assign=function(){for(var _=!1,v=this.dataset.length,M,C=0;C=this.minPts)return N}},M.prototype._regionQuery=function(C,x){x=x||this.epsilon;for(var N=[],V=0,R=this.dataset.length;Vx&&(M=C):v80*Ft){Tt=mn=Ne[0],Nn=zn=Ne[1];for(var gi=Ft;gimn&&(mn=Kr),Ui>zn&&(zn=Ui);go=Math.max(mn-Tt,zn-Nn),go=go!==0?32767/go:0}return M(At,an,Ft,Tt,Nn,go,0),an}function _(Ne,Xt,Ft,lt,Bt){var At,an;if(Bt===rt(Ne,Xt,Ft,lt)>0)for(At=Xt;At=Xt;At-=lt)an=Re(At,Ne[At],Ne[At+1],an);return an&&Se(an,an.next)&&(je(an),an=an.next),an}function v(Ne,Xt){if(!Ne)return Ne;Xt||(Xt=Ne);var Ft=Ne,lt;do if(lt=!1,!Ft.steiner&&(Se(Ft,Ft.next)||xe(Ft.prev,Ft,Ft.next)===0)){if(je(Ft),Ft=Xt=Ft.prev,Ft===Ft.next)break;lt=!0}else Ft=Ft.next;while(lt||Ft!==Xt);return Xt}function M(Ne,Xt,Ft,lt,Bt,At,an){if(Ne){!an&&At&&F(Ne,lt,Bt,At);for(var Tt=Ne,Nn,mn;Ne.prev!==Ne.next;){if(Nn=Ne.prev,mn=Ne.next,At?x(Ne,lt,Bt,At):C(Ne)){Xt.push(Nn.i/Ft|0),Xt.push(Ne.i/Ft|0),Xt.push(mn.i/Ft|0),je(Ne),Ne=mn.next,Tt=mn.next;continue}if(Ne=mn,Ne===Tt){an?an===1?(Ne=N(v(Ne),Xt,Ft),M(Ne,Xt,Ft,lt,Bt,At,2)):an===2&&V(Ne,Xt,Ft,lt,Bt,At):M(v(Ne),Xt,Ft,lt,Bt,At,1);break}}}}function C(Ne){var Xt=Ne.prev,Ft=Ne,lt=Ne.next;if(xe(Xt,Ft,lt)>=0)return!1;for(var Bt=Xt.x,At=Ft.x,an=lt.x,Tt=Xt.y,Nn=Ft.y,mn=lt.y,zn=BtAt?Bt>an?Bt:an:At>an?At:an,go=Tt>Nn?Tt>mn?Tt:mn:Nn>mn?Nn:mn,gi=lt.next;gi!==Xt;){if(gi.x>=zn&&gi.x<=Ui&&gi.y>=Kr&&gi.y<=go&&be(Bt,Tt,At,Nn,an,mn,gi.x,gi.y)&&xe(gi.prev,gi,gi.next)>=0)return!1;gi=gi.next}return!0}function x(Ne,Xt,Ft,lt){var Bt=Ne.prev,At=Ne,an=Ne.next;if(xe(Bt,At,an)>=0)return!1;for(var Tt=Bt.x,Nn=At.x,mn=an.x,zn=Bt.y,Kr=At.y,Ui=an.y,go=TtNn?Tt>mn?Tt:mn:Nn>mn?Nn:mn,To=zn>Kr?zn>Ui?zn:Ui:Kr>Ui?Kr:Ui,ms=he(go,gi,Xt,Ft,lt),De=he(Mr,To,Xt,Ft,lt),Oo=Ne.prevZ,$i=Ne.nextZ;Oo&&Oo.z>=ms&&$i&&$i.z<=De;){if(Oo.x>=go&&Oo.x<=Mr&&Oo.y>=gi&&Oo.y<=To&&Oo!==Bt&&Oo!==an&&be(Tt,zn,Nn,Kr,mn,Ui,Oo.x,Oo.y)&&xe(Oo.prev,Oo,Oo.next)>=0||(Oo=Oo.prevZ,$i.x>=go&&$i.x<=Mr&&$i.y>=gi&&$i.y<=To&&$i!==Bt&&$i!==an&&be(Tt,zn,Nn,Kr,mn,Ui,$i.x,$i.y)&&xe($i.prev,$i,$i.next)>=0))return!1;$i=$i.nextZ}for(;Oo&&Oo.z>=ms;){if(Oo.x>=go&&Oo.x<=Mr&&Oo.y>=gi&&Oo.y<=To&&Oo!==Bt&&Oo!==an&&be(Tt,zn,Nn,Kr,mn,Ui,Oo.x,Oo.y)&&xe(Oo.prev,Oo,Oo.next)>=0)return!1;Oo=Oo.prevZ}for(;$i&&$i.z<=De;){if($i.x>=go&&$i.x<=Mr&&$i.y>=gi&&$i.y<=To&&$i!==Bt&&$i!==an&&be(Tt,zn,Nn,Kr,mn,Ui,$i.x,$i.y)&&xe($i.prev,$i,$i.next)>=0)return!1;$i=$i.nextZ}return!0}function N(Ne,Xt,Ft){var lt=Ne;do{var Bt=lt.prev,At=lt.next.next;!Se(Bt,At)&&it(Bt,lt,lt.next,At)&&Ee(Bt,At)&&Ee(At,Bt)&&(Xt.push(Bt.i/Ft|0),Xt.push(lt.i/Ft|0),Xt.push(At.i/Ft|0),je(lt),je(lt.next),lt=Ne=At),lt=lt.next}while(lt!==Ne);return v(lt)}function V(Ne,Xt,Ft,lt,Bt,At){var an=Ne;do{for(var Tt=an.next.next;Tt!==an.prev;){if(an.i!==Tt.i&&Ae(an,Tt)){var Nn=Pe(an,Tt);an=v(an,an.next),Nn=v(Nn,Nn.next),M(an,Xt,Ft,lt,Bt,At,0),M(Nn,Xt,Ft,lt,Bt,At,0);return}Tt=Tt.next}an=an.next}while(an!==Ne)}function R(Ne,Xt,Ft,lt){var Bt=[],At,an,Tt,Nn,mn;for(At=0,an=Xt.length;At=Ft.next.y&&Ft.next.y!==Ft.y){var Tt=Ft.x+(Bt-Ft.y)*(Ft.next.x-Ft.x)/(Ft.next.y-Ft.y);if(Tt<=lt&&Tt>At&&(At=Tt,an=Ft.x=Ft.x&&Ft.x>=mn&<!==Ft.x&&be(Btan.x||Ft.x===an.x&&T(an,Ft)))&&(an=Ft,Kr=Ui)),Ft=Ft.next;while(Ft!==Nn);return an}function T(Ne,Xt){return xe(Ne.prev,Ne,Xt.prev)<0&&xe(Xt.next,Ne,Ne.next)<0}function F(Ne,Xt,Ft,lt){var Bt=Ne;do Bt.z===0&&(Bt.z=he(Bt.x,Bt.y,Xt,Ft,lt)),Bt.prevZ=Bt.prev,Bt.nextZ=Bt.next,Bt=Bt.next;while(Bt!==Ne);Bt.prevZ.nextZ=null,Bt.prevZ=null,K(Bt)}function K(Ne){var Xt,Ft,lt,Bt,At,an,Tt,Nn,mn=1;do{for(Ft=Ne,Ne=null,At=null,an=0;Ft;){for(an++,lt=Ft,Tt=0,Xt=0;Xt0||Nn>0&<)Tt!==0&&(Nn===0||!lt||Ft.z<=lt.z)?(Bt=Ft,Ft=Ft.nextZ,Tt--):(Bt=lt,lt=lt.nextZ,Nn--),At?At.nextZ=Bt:Ne=Bt,Bt.prevZ=At,At=Bt;Ft=lt}At.nextZ=null,mn*=2}while(an>1);return Ne}function he(Ne,Xt,Ft,lt,Bt){return Ne=(Ne-Ft)*Bt|0,Xt=(Xt-lt)*Bt|0,Ne=(Ne|Ne<<8)&16711935,Ne=(Ne|Ne<<4)&252645135,Ne=(Ne|Ne<<2)&858993459,Ne=(Ne|Ne<<1)&1431655765,Xt=(Xt|Xt<<8)&16711935,Xt=(Xt|Xt<<4)&252645135,Xt=(Xt|Xt<<2)&858993459,Xt=(Xt|Xt<<1)&1431655765,Ne|Xt<<1}function fe(Ne){var Xt=Ne,Ft=Ne;do(Xt.x=(Ne-an)*(At-Tt)&&(Ne-an)*(lt-Tt)>=(Ft-an)*(Xt-Tt)&&(Ft-an)*(At-Tt)>=(Bt-an)*(lt-Tt)}function Ae(Ne,Xt){return Ne.next.i!==Xt.i&&Ne.prev.i!==Xt.i&&!Me(Ne,Xt)&&(Ee(Ne,Xt)&&Ee(Xt,Ne)&&ze(Ne,Xt)&&(xe(Ne.prev,Ne,Xt.prev)||xe(Ne,Xt.prev,Xt))||Se(Ne,Xt)&&xe(Ne.prev,Ne,Ne.next)>0&&xe(Xt.prev,Xt,Xt.next)>0)}function xe(Ne,Xt,Ft){return(Xt.y-Ne.y)*(Ft.x-Xt.x)-(Xt.x-Ne.x)*(Ft.y-Xt.y)}function Se(Ne,Xt){return Ne.x===Xt.x&&Ne.y===Xt.y}function it(Ne,Xt,Ft,lt){var Bt=ft(xe(Ne,Xt,Ft)),At=ft(xe(Ne,Xt,lt)),an=ft(xe(Ft,lt,Ne)),Tt=ft(xe(Ft,lt,Xt));return!!(Bt!==At&&an!==Tt||Bt===0&&Xe(Ne,Ft,Xt)||At===0&&Xe(Ne,lt,Xt)||an===0&&Xe(Ft,Ne,lt)||Tt===0&&Xe(Ft,Xt,lt))}function Xe(Ne,Xt,Ft){return Xt.x<=Math.max(Ne.x,Ft.x)&&Xt.x>=Math.min(Ne.x,Ft.x)&&Xt.y<=Math.max(Ne.y,Ft.y)&&Xt.y>=Math.min(Ne.y,Ft.y)}function ft(Ne){return Ne>0?1:Ne<0?-1:0}function Me(Ne,Xt){var Ft=Ne;do{if(Ft.i!==Ne.i&&Ft.next.i!==Ne.i&&Ft.i!==Xt.i&&Ft.next.i!==Xt.i&&it(Ft,Ft.next,Ne,Xt))return!0;Ft=Ft.next}while(Ft!==Ne);return!1}function Ee(Ne,Xt){return xe(Ne.prev,Ne,Ne.next)<0?xe(Ne,Xt,Ne.next)>=0&&xe(Ne,Ne.prev,Xt)>=0:xe(Ne,Xt,Ne.prev)<0||xe(Ne,Ne.next,Xt)<0}function ze(Ne,Xt){var Ft=Ne,lt=!1,Bt=(Ne.x+Xt.x)/2,At=(Ne.y+Xt.y)/2;do Ft.y>At!=Ft.next.y>At&&Ft.next.y!==Ft.y&&Bt<(Ft.next.x-Ft.x)*(At-Ft.y)/(Ft.next.y-Ft.y)+Ft.x&&(lt=!lt),Ft=Ft.next;while(Ft!==Ne);return lt}function Pe(Ne,Xt){var Ft=new Ce(Ne.i,Ne.x,Ne.y),lt=new Ce(Xt.i,Xt.x,Xt.y),Bt=Ne.next,At=Xt.prev;return Ne.next=Xt,Xt.prev=Ne,Ft.next=Bt,Bt.prev=Ft,lt.next=Ft,Ft.prev=lt,At.next=lt,lt.prev=At,lt}function Re(Ne,Xt,Ft,lt){var Bt=new Ce(Ne,Xt,Ft);return lt?(Bt.next=lt.next,Bt.prev=lt,lt.next.prev=Bt,lt.next=Bt):(Bt.prev=Bt,Bt.next=Bt),Bt}function je(Ne){Ne.next.prev=Ne.prev,Ne.prev.next=Ne.next,Ne.prevZ&&(Ne.prevZ.nextZ=Ne.nextZ),Ne.nextZ&&(Ne.nextZ.prevZ=Ne.prevZ)}function Ce(Ne,Xt,Ft){this.i=Ne,this.x=Xt,this.y=Ft,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}q.deviation=function(Ne,Xt,Ft,lt){var Bt=Xt&&Xt.length,At=Bt?Xt[0]*Ft:Ne.length,an=Math.abs(rt(Ne,0,At,Ft));if(Bt)for(var Tt=0,Nn=Xt.length;Tt0&&(lt+=Ne[Bt-1].length,Ft.holes.push(lt))}return Ft}},67499:function(mt){function q(v){var M=v.target||v.srcElement;M.__resizeRAF__&&cancelAnimationFrame(M.__resizeRAF__),M.__resizeRAF__=requestAnimationFrame(function(){var C=M.__resizeTrigger__,x=C&&C.__resizeListeners__;x&&x.forEach(function(N){N.call(C,v)})})}var _=function(M,C){var x=this,N=x.document,V,R=N.attachEvent;typeof navigator!="undefined"&&(V=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));function k(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",q)}if(!M.__resizeListeners__)if(M.__resizeListeners__=[],R)M.__resizeTrigger__=M,M.attachEvent("onresize",q);else{getComputedStyle(M).position==="static"&&(M.style.position="relative");var S=M.__resizeTrigger__=N.createElement("object");S.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),S.setAttribute("class","resize-sensor"),S.setAttribute("tabindex","-1"),S.setAttribute("title",""),S.__resizeElement__=M,S.onload=k,S.type="text/html",V&&M.appendChild(S),S.data="about:blank",V||M.appendChild(S)}M.__resizeListeners__.push(C)};mt.exports=typeof window=="undefined"?_:_.bind(window),mt.exports.unbind=function(v,M){var C=document.attachEvent,x=v.__resizeListeners__||[];if(M){var N=x.indexOf(M);N!==-1&&x.splice(N,1)}else x=v.__resizeListeners__=[];if(!x.length){if(C)v.detachEvent("onresize",q);else if(v.__resizeTrigger__){var V=v.__resizeTrigger__.contentDocument,R=V&&V.defaultView;R&&(R.removeEventListener("resize",q),delete R.__resizeTrigger__),v.__resizeTrigger__=!v.removeChild(v.__resizeTrigger__)}delete v.__resizeListeners__}}},40666:function(mt){"use strict";var q=Object.prototype.hasOwnProperty,_="~";function v(){}Object.create&&(v.prototype=Object.create(null),new v().__proto__||(_=!1));function M(V,R,k){this.fn=V,this.context=R,this.once=k||!1}function C(V,R,k,S,p){if(typeof k!="function")throw new TypeError("The listener must be a function");var T=new M(k,S||V,p),F=_?_+R:R;return V._events[F]?V._events[F].fn?V._events[F]=[V._events[F],T]:V._events[F].push(T):(V._events[F]=T,V._eventsCount++),V}function x(V,R){--V._eventsCount===0?V._events=new v:delete V._events[R]}function N(){this._events=new v,this._eventsCount=0}N.prototype.eventNames=function(){var R=[],k,S;if(this._eventsCount===0)return R;for(S in k=this._events)q.call(k,S)&&R.push(_?S.slice(1):S);return Object.getOwnPropertySymbols?R.concat(Object.getOwnPropertySymbols(k)):R},N.prototype.listeners=function(R){var k=_?_+R:R,S=this._events[k];if(!S)return[];if(S.fn)return[S.fn];for(var p=0,T=S.length,F=new Array(T);p=72.004&&$i<=137.8347&&co>=.8293&&co<=55.8271}function S($i,co){let Vr=-100+2*$i+3*co+.2*co*co+.1*$i*co+.2*C(x($i));return Vr+=(20*v(6*$i*N)+20*v(2*$i*N))*2/3,Vr+=(20*v(co*N)+40*v(co/3*N))*2/3,Vr+=(160*v(co/12*N)+320*v(co*N/30))*2/3,Vr}function p($i,co){let Vr=300+$i+2*co+.1*$i*$i+.1*$i*co+.1*C(x($i));return Vr+=(20*v(6*$i*N)+20*v(2*$i*N))*2/3,Vr+=(20*v($i*N)+40*v($i/3*N))*2/3,Vr+=(150*v($i/12*N)+300*v($i/30*N))*2/3,Vr}function T($i,co){let Vr=p($i-105,co-35),Ro=S($i-105,co-35);const Tn=co/180*N;let nt=v(Tn);nt=1-R*nt*nt;const Ct=C(nt);return Vr=Vr*180/(V/Ct*M(Tn)*N),Ro=Ro*180/(V*(1-R)/(nt*Ct)*N),[Vr,Ro]}function F($i){const[co,Vr]=$i;if(!k(co,Vr))return[co,Vr];const Ro=T(co,Vr);return[co+Ro[0],Vr+Ro[1]]}function K($i){const[co,Vr]=$i;if(!k(co,Vr))return[co,Vr];let[Ro,Tn]=[co,Vr],nt=F([Ro,Tn]),Ct=nt[0]-co,Ht=nt[1]-Vr;for(;x(Ct)>1e-6||x(Ht)>1e-6;)Ro-=Ct,Tn-=Ht,nt=F([Ro,Tn]),Ct=nt[0]-co,Ht=nt[1]-Vr;return[Ro,Tn]}const{sin:he,cos:fe,atan2:be,sqrt:Ae,PI:xe}=Math,Se=xe*3e3/180;function it($i){const[co,Vr]=$i,Ro=co-.0065,Tn=Vr-.006,nt=Ae(Ro*Ro+Tn*Tn)-2e-5*he(Tn*Se),Ct=be(Tn,Ro)-3e-6*fe(Ro*Se),Ht=nt*fe(Ct),hn=nt*he(Ct);return[Ht,hn]}function Xe($i){const[co,Vr]=$i,Ro=co,Tn=Vr,nt=Ae(Ro*Ro+Tn*Tn)+2e-5*he(Tn*Se),Ct=be(Tn,Ro)+3e-6*fe(Ro*Se),Ht=nt*fe(Ct)+.0065,hn=nt*he(Ct)+.006;return[Ht,hn]}const ft=180/Math.PI,Me=Math.PI/180,Ee=6378137,ze=20037508342789244e-9;function Pe($i){return[$i[0]*ft/Ee,(Math.PI*.5-2*Math.atan(Math.exp(-$i[1]/Ee)))*ft]}function Re($i){const co=Math.abs($i[0])<=180?$i[0]:$i[0]-($i[0]<0?-1:1)*360,Vr=[Ee*co*Me,Ee*Math.log(Math.tan(Math.PI*.25+.5*$i[1]*Me))];return Vr[0]>ze&&(Vr[0]=ze),Vr[0]<-ze&&(Vr[0]=-ze),Vr[1]>ze&&(Vr[1]=ze),Vr[1]<-ze&&(Vr[1]=-ze),Vr}const{abs:je}=Math,Ce=[1289059486e-2,836237787e-2,5591021,348198983e-2,167804312e-2,0],rt=[75,60,45,30,15,0],Ne=[[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]],Xt=[[-.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 Ft($i,co,Vr){const Ro=je(co)/Vr[9];let Tn=Vr[0]+Vr[1]*je($i),nt=Vr[2]+Vr[3]*Ro+Vr[4]*Math.pow(Ro,2)+Vr[5]*Math.pow(Ro,3)+Vr[6]*Math.pow(Ro,4)+Vr[7]*Math.pow(Ro,5)+Vr[8]*Math.pow(Ro,6);return Tn*=$i<0?-1:1,nt*=co<0?-1:1,[Tn,nt]}function lt($i){const[co,Vr]=$i;let Ro=[];for(let Tn=0;Tnrt[Tn]){Ro=Xt[Tn];break}return Ft(co,Vr,Ro)}function Bt($i){const[co,Vr]=$i;let Ro=[];for(let Tn=0;Tn=Ce[Tn]){Ro=Ne[Tn];break}return Ft(co,Vr,Ro)}function At($i,co){if(!$i)throw new Error(co)}function an($i){return!!$i&&Object.prototype.toString.call($i)==="[object Array]"}function Tt($i){return!isNaN(Number($i))&&$i!==null&&!an($i)}function Nn(...$i){const co=$i.length-1;return function(...Vr){let Ro=co,Tn=$i[co].apply(null,Vr);for(;Ro--;)Tn=$i[Ro].call(null,Tn);return Tn}}function mn($i,co,Vr=!1){if($i===null)return;let Ro,Tn,nt,Ct,Ht,hn,En=0,rn=0,Jt,Mt;const{type:Qt}=$i,Dn=Qt==="FeatureCollection",sn=Qt==="Feature",wr=Dn?$i.features.length:1;for(let jr=0;jr=2,`Invalid input coordinate: ${$i}`),At(Tt($i[0])&&Tt($i[1]),`Invalid input coordinate: ${$i}`),$i=$i.map(Number),Ct=!0);const Ht=Tn;return Ct?Ht($i):(mn($i,hn=>{[hn[0],hn[1]]=Ht(hn)}),$i)}const Oo=Object.assign(Object.assign({},zn),{CRSTypes:zn,transform:De})},15468:function(mt,q,_){var v=_(44930),M=function(V){this.precision=V&&V.precision?V.precision:17,this.direction=V&&V.direction?V.direction:!1,this.pseudoNode=V&&V.pseudoNode?V.pseudoNode:!1,this.objectComparator=V&&V.objectComparator?V.objectComparator:N};M.prototype.compare=function(V,R){if(V.type!==R.type||!x(V,R))return!1;switch(V.type){case"Point":return this.compareCoord(V.coordinates,R.coordinates);case"LineString":return this.compareLine(V.coordinates,R.coordinates,0,!1);case"Polygon":return this.comparePolygon(V,R);case"Feature":return this.compareFeature(V,R);default:if(V.type.indexOf("Multi")===0){var k=this,S=C(V),p=C(R);return S.every(function(T){return this.some(function(F){return k.compare(T,F)})},p)}}return!1};function C(V){return V.coordinates.map(function(R){return{type:V.type.replace("Multi",""),coordinates:R}})}function x(V,R){return V.hasOwnProperty("coordinates")?V.coordinates.length===R.coordinates.length:V.length===R.length}M.prototype.compareCoord=function(V,R){if(V.length!==R.length)return!1;for(var k=0;k=0&&(k=[].concat(V.slice(S,V.length),V.slice(1,S+1))),k},M.prototype.comparePath=function(V,R){var k=this;return V.every(function(S,p){return k.compareCoord(S,this[p])},R)},M.prototype.comparePolygon=function(V,R){if(this.compareLine(V.coordinates[0],R.coordinates[0],1,!0)){var k=V.coordinates.slice(1,V.coordinates.length),S=R.coordinates.slice(1,R.coordinates.length),p=this;return k.every(function(T){return this.some(function(F){return p.compareLine(T,F,1,!0)})},S)}else return!1},M.prototype.compareFeature=function(V,R){return V.id!==R.id||!this.objectComparator(V.properties,R.properties)||!this.compareBBox(V,R)?!1:this.compare(V.geometry,R.geometry)},M.prototype.compareBBox=function(V,R){return!!(!V.bbox&&!R.bbox||V.bbox&&R.bbox&&this.compareCoord(V.bbox,R.bbox))},M.prototype.removePseudo=function(V){return V};function N(V,R){return v(V,R,{strict:!0})}mt.exports=M},56898:function(mt,q,_){var v=_(79535),M=_(78161),C=_(9750),x=_(76314).Z,N=C.featureEach,V=C.coordEach,R=M.polygon,k=M.featureCollection;function S(p){var T=new v(p);return T.insert=function(F){if(F.type!=="Feature")throw new Error("invalid feature");return F.bbox=F.bbox?F.bbox:x(F),v.prototype.insert.call(this,F)},T.load=function(F){var K=[];return Array.isArray(F)?F.forEach(function(he){if(he.type!=="Feature")throw new Error("invalid features");he.bbox=he.bbox?he.bbox:x(he),K.push(he)}):N(F,function(he){if(he.type!=="Feature")throw new Error("invalid features");he.bbox=he.bbox?he.bbox:x(he),K.push(he)}),v.prototype.load.call(this,K)},T.remove=function(F,K){if(F.type!=="Feature")throw new Error("invalid feature");return F.bbox=F.bbox?F.bbox:x(F),v.prototype.remove.call(this,F,K)},T.clear=function(){return v.prototype.clear.call(this)},T.search=function(F){var K=v.prototype.search.call(this,this.toBBox(F));return k(K)},T.collides=function(F){return v.prototype.collides.call(this,this.toBBox(F))},T.all=function(){var F=v.prototype.all.call(this);return k(F)},T.toJSON=function(){return v.prototype.toJSON.call(this)},T.fromJSON=function(F){return v.prototype.fromJSON.call(this,F)},T.toBBox=function(F){var K;if(F.bbox)K=F.bbox;else if(Array.isArray(F)&&F.length===4)K=F;else if(Array.isArray(F)&&F.length===6)K=[F[0],F[1],F[3],F[4]];else if(F.type==="Feature")K=x(F);else if(F.type==="FeatureCollection")K=x(F);else throw new Error("invalid geojson");return{minX:K[0],minY:K[1],maxX:K[2],maxY:K[3]}},T}mt.exports=S,mt.exports.default=S},44532:function(mt,q,_){"use strict";var v,M=SyntaxError,C=Function,x=TypeError,N=function(Ce){try{return C('"use strict"; return ('+Ce+").constructor;")()}catch(rt){}},V=Object.getOwnPropertyDescriptor;if(V)try{V({},"")}catch(Ce){V=null}var R=function(){throw new x},k=V?function(){try{return arguments.callee,R}catch(Ce){try{return V(arguments,"callee").get}catch(rt){return R}}}():R,S=_(9997)(),p=_(77916)(),T=Object.getPrototypeOf||(p?function(Ce){return Ce.__proto__}:null),F={},K=typeof Uint8Array=="undefined"||!T?v:T(Uint8Array),he={"%AggregateError%":typeof AggregateError=="undefined"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?v:ArrayBuffer,"%ArrayIteratorPrototype%":S&&T?T([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":F,"%AsyncGenerator%":F,"%AsyncGeneratorFunction%":F,"%AsyncIteratorPrototype%":F,"%Atomics%":typeof Atomics=="undefined"?v:Atomics,"%BigInt%":typeof BigInt=="undefined"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?v:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?v:FinalizationRegistry,"%Function%":C,"%GeneratorFunction%":F,"%Int8Array%":typeof Int8Array=="undefined"?v:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?v:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&T?T(T([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map=="undefined"?v:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!S||!T?v:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?v:Promise,"%Proxy%":typeof Proxy=="undefined"?v:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?v:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!S||!T?v:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&T?T(""[Symbol.iterator]()):v,"%Symbol%":S?Symbol:v,"%SyntaxError%":M,"%ThrowTypeError%":k,"%TypedArray%":K,"%TypeError%":x,"%Uint8Array%":typeof Uint8Array=="undefined"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?v:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?v:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?v:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?v:WeakSet};if(T)try{null.error}catch(Ce){var fe=T(T(Ce));he["%Error.prototype%"]=fe}var be=function Ce(rt){var Ne;if(rt==="%AsyncFunction%")Ne=N("async function () {}");else if(rt==="%GeneratorFunction%")Ne=N("function* () {}");else if(rt==="%AsyncGeneratorFunction%")Ne=N("async function* () {}");else if(rt==="%AsyncGenerator%"){var Xt=Ce("%AsyncGeneratorFunction%");Xt&&(Ne=Xt.prototype)}else if(rt==="%AsyncIteratorPrototype%"){var Ft=Ce("%AsyncGenerator%");Ft&&T&&(Ne=T(Ft.prototype))}return he[rt]=Ne,Ne},Ae={"%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"]},xe=_(36723),Se=_(68854),it=xe.call(Function.call,Array.prototype.concat),Xe=xe.call(Function.apply,Array.prototype.splice),ft=xe.call(Function.call,String.prototype.replace),Me=xe.call(Function.call,String.prototype.slice),Ee=xe.call(Function.call,RegExp.prototype.exec),ze=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Pe=/\\(\\)?/g,Re=function(rt){var Ne=Me(rt,0,1),Xt=Me(rt,-1);if(Ne==="%"&&Xt!=="%")throw new M("invalid intrinsic syntax, expected closing `%`");if(Xt==="%"&&Ne!=="%")throw new M("invalid intrinsic syntax, expected opening `%`");var Ft=[];return ft(rt,ze,function(lt,Bt,At,an){Ft[Ft.length]=At?ft(an,Pe,"$1"):Bt||lt}),Ft},je=function(rt,Ne){var Xt=rt,Ft;if(Se(Ae,Xt)&&(Ft=Ae[Xt],Xt="%"+Ft[0]+"%"),Se(he,Xt)){var lt=he[Xt];if(lt===F&&(lt=be(Xt)),typeof lt=="undefined"&&!Ne)throw new x("intrinsic "+rt+" exists, but is not available. Please file an issue!");return{alias:Ft,name:Xt,value:lt}}throw new M("intrinsic "+rt+" does not exist!")};mt.exports=function(rt,Ne){if(typeof rt!="string"||rt.length===0)throw new x("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ne!="boolean")throw new x('"allowMissing" argument must be a boolean');if(Ee(/^%?[^%]*%?$/,rt)===null)throw new M("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Xt=Re(rt),Ft=Xt.length>0?Xt[0]:"",lt=je("%"+Ft+"%",Ne),Bt=lt.name,At=lt.value,an=!1,Tt=lt.alias;Tt&&(Ft=Tt[0],Xe(Xt,it([0,1],Tt)));for(var Nn=1,mn=!0;Nn=Xt.length){var go=V(At,zn);mn=!!go,mn&&"get"in go&&!("originalValue"in go.get)?At=go.get:At=At[zn]}else mn=Se(At,zn),At=At[zn];mn&&!an&&(he[Bt]=At)}}return At}},67747:function(mt,q,_){"use strict";var v=_(44532),M=v("%Object.getOwnPropertyDescriptor%",!0);if(M)try{M([],"length")}catch(C){M=null}mt.exports=M},83959:function(mt,q,_){var v;(function(M,C,x,N){"use strict";var V=["","webkit","Moz","MS","ms","o"],R=C.createElement("div"),k="function",S=Math.round,p=Math.abs,T=Date.now;function F(dt,xt,Et){return setTimeout(it(dt,Et),xt)}function K(dt,xt,Et){return Array.isArray(dt)?(he(dt,Et[xt],Et),!0):!1}function he(dt,xt,Et){var et;if(dt)if(dt.forEach)dt.forEach(xt,Et);else if(dt.length!==N)for(et=0;et\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",yn=M.console&&(M.console.warn||M.console.log);return yn&&yn.call(M.console,et,Vt),dt.apply(this,arguments)}}var be;typeof Object.assign!="function"?be=function(xt){if(xt===N||xt===null)throw new TypeError("Cannot convert undefined or null to object");for(var Et=Object(xt),et=1;et-1}function Re(dt){return dt.trim().split(/\s+/g)}function je(dt,xt,Et){if(dt.indexOf&&!Et)return dt.indexOf(xt);for(var et=0;eteo[xt]}):et=et.sort()),et}function Ne(dt,xt){for(var Et,et,wt=xt[0].toUpperCase()+xt.slice(1),Vt=0;Vt1&&!Et.firstMultiple?Et.firstMultiple=Qt(xt):wt===1&&(Et.firstMultiple=!1);var Vt=Et.firstInput,yn=Et.firstMultiple,yr=yn?yn.center:Vt.center,Yr=xt.center=Dn(et);xt.timeStamp=T(),xt.deltaTime=xt.timeStamp-Vt.timeStamp,xt.angle=xi(yr,Yr),xt.distance=jr(yr,Yr),Jt(Et,xt),xt.offsetDirection=wr(xt.deltaX,xt.deltaY);var eo=sn(xt.deltaTime,xt.deltaX,xt.deltaY);xt.overallVelocityX=eo.x,xt.overallVelocityY=eo.y,xt.overallVelocity=p(eo.x)>p(eo.y)?eo.x:eo.y,xt.scale=yn?Hi(yn.pointers,et):1,xt.rotation=yn?Pr(yn.pointers,et):0,xt.maxPointers=Et.prevInput?xt.pointers.length>Et.prevInput.maxPointers?xt.pointers.length:Et.prevInput.maxPointers:xt.pointers.length,Mt(Et,xt);var Zo=dt.element;ze(xt.srcEvent.target,Zo)&&(Zo=xt.srcEvent.target),xt.target=Zo}function Jt(dt,xt){var Et=xt.center,et=dt.offsetDelta||{},wt=dt.prevDelta||{},Vt=dt.prevInput||{};(xt.eventType===go||Vt.eventType===Mr)&&(wt=dt.prevDelta={x:Vt.deltaX||0,y:Vt.deltaY||0},et=dt.offsetDelta={x:Et.x,y:Et.y}),xt.deltaX=wt.x+(Et.x-et.x),xt.deltaY=wt.y+(Et.y-et.y)}function Mt(dt,xt){var Et=dt.lastInterval||xt,et=xt.timeStamp-Et.timeStamp,wt,Vt,yn,yr;if(xt.eventType!=To&&(et>Ui||Et.velocity===N)){var Yr=xt.deltaX-Et.deltaX,eo=xt.deltaY-Et.deltaY,Zo=sn(et,Yr,eo);Vt=Zo.x,yn=Zo.y,wt=p(Zo.x)>p(Zo.y)?Zo.x:Zo.y,yr=wr(Yr,eo),dt.lastInterval=xt}else wt=Et.velocity,Vt=Et.velocityX,yn=Et.velocityY,yr=Et.direction;xt.velocity=wt,xt.velocityX=Vt,xt.velocityY=yn,xt.direction=yr}function Qt(dt){for(var xt=[],Et=0;Et=p(xt)?dt<0?De:Oo:xt<0?$i:co}function jr(dt,xt,Et){Et||(Et=nt);var et=xt[Et[0]]-dt[Et[0]],wt=xt[Et[1]]-dt[Et[1]];return Math.sqrt(et*et+wt*wt)}function xi(dt,xt,Et){Et||(Et=nt);var et=xt[Et[0]]-dt[Et[0]],wt=xt[Et[1]]-dt[Et[1]];return Math.atan2(wt,et)*180/Math.PI}function Pr(dt,xt){return xi(xt[1],xt[0],Ct)+xi(dt[1],dt[0],Ct)}function Hi(dt,xt){return jr(xt[0],xt[1],Ct)/jr(dt[0],dt[1],Ct)}var Io={mousedown:go,mousemove:gi,mouseup:Mr},On="mousedown",zr="mousemove mouseup";function qr(){this.evEl=On,this.evWin=zr,this.pressed=!1,Ht.apply(this,arguments)}Se(qr,Ht,{handler:function(xt){var Et=Io[xt.type];Et&go&&xt.button===0&&(this.pressed=!0),Et&gi&&xt.which!==1&&(Et=Mr),this.pressed&&(Et&Mr&&(this.pressed=!1),this.callback(this.manager,Et,{pointers:[xt],changedPointers:[xt],pointerType:zn,srcEvent:xt}))}});var Wi={pointerdown:go,pointermove:gi,pointerup:Mr,pointercancel:To,pointerout:To},ir={2:Nn,3:mn,4:zn,5:Kr},Jn="pointerdown",$t="pointermove pointerup pointercancel";M.MSPointerEvent&&!M.PointerEvent&&(Jn="MSPointerDown",$t="MSPointerMove MSPointerUp MSPointerCancel");function Gt(){this.evEl=Jn,this.evWin=$t,Ht.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}Se(Gt,Ht,{handler:function(xt){var Et=this.store,et=!1,wt=xt.type.toLowerCase().replace("ms",""),Vt=Wi[wt],yn=ir[xt.pointerType]||xt.pointerType,yr=yn==Nn,Yr=je(Et,xt.pointerId,"pointerId");Vt&go&&(xt.button===0||yr)?Yr<0&&(Et.push(xt),Yr=Et.length-1):Vt&(Mr|To)&&(et=!0),!(Yr<0)&&(Et[Yr]=xt,this.callback(this.manager,Vt,{pointers:Et,changedPointers:[xt],pointerType:yn,srcEvent:xt}),et&&Et.splice(Yr,1))}});var wn={touchstart:go,touchmove:gi,touchend:Mr,touchcancel:To},Zn="touchstart",_r="touchstart touchmove touchend touchcancel";function qn(){this.evTarget=Zn,this.evWin=_r,this.started=!1,Ht.apply(this,arguments)}Se(qn,Ht,{handler:function(xt){var Et=wn[xt.type];if(Et===go&&(this.started=!0),!!this.started){var et=$n.call(this,xt,Et);Et&(Mr|To)&&et[0].length-et[1].length===0&&(this.started=!1),this.callback(this.manager,Et,{pointers:et[0],changedPointers:et[1],pointerType:Nn,srcEvent:xt})}}});function $n(dt,xt){var Et=Ce(dt.touches),et=Ce(dt.changedTouches);return xt&(Mr|To)&&(Et=rt(Et.concat(et),"identifier",!0)),[Et,et]}var jt={touchstart:go,touchmove:gi,touchend:Mr,touchcancel:To},In="touchstart touchmove touchend touchcancel";function vr(){this.evTarget=In,this.targetIds={},Ht.apply(this,arguments)}Se(vr,Ht,{handler:function(xt){var Et=jt[xt.type],et=Ur.call(this,xt,Et);et&&this.callback(this.manager,Et,{pointers:et[0],changedPointers:et[1],pointerType:Nn,srcEvent:xt})}});function Ur(dt,xt){var Et=Ce(dt.touches),et=this.targetIds;if(xt&(go|gi)&&Et.length===1)return et[Et[0].identifier]=!0,[Et,Et];var wt,Vt,yn=Ce(dt.changedTouches),yr=[],Yr=this.target;if(Vt=Et.filter(function(eo){return ze(eo.target,Yr)}),xt===go)for(wt=0;wt-1&&et.splice(Vt,1)};setTimeout(wt,Ao)}}function bi(dt){for(var xt=dt.srcEvent.clientX,Et=dt.srcEvent.clientY,et=0;et-1&&this.requireFail.splice(xt,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(dt){return!!this.simultaneous[dt.id]},emit:function(dt){var xt=this,Et=this.state;function et(wt){xt.manager.emit(wt,dt)}Et=or&&et(xt.options.event+Ml(Et))},tryEmit:function(dt){if(this.canEmit())return this.emit(dt);this.state=Sa},canEmit:function(){for(var dt=0;dtxt.threshold&&wt&xt.direction},attrTest:function(dt){return El.prototype.attrTest.call(this,dt)&&(this.state&Po||!(this.state&Po)&&this.directionTest(dt))},emit:function(dt){this.pX=dt.deltaX,this.pY=dt.deltaY;var xt=wo(dt.direction);xt&&(dt.additionalEvent=this.options.event+xt),this._super.emit.call(this,dt)}});function to(){El.apply(this,arguments)}Se(to,El,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[kr]},attrTest:function(dt){return this._super.attrTest.call(this,dt)&&(Math.abs(dt.scale-1)>this.options.threshold||this.state&Po)},emit:function(dt){if(dt.scale!==1){var xt=dt.scale<1?"in":"out";dt.additionalEvent=this.options.event+xt}this._super.emit.call(this,dt)}});function An(){xa.apply(this,arguments),this._timer=null,this._input=null}Se(An,xa,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Wr]},process:function(dt){var xt=this.options,Et=dt.pointers.length===xt.pointers,et=dt.distancext.time;if(this._input=dt,!et||!Et||dt.eventType&(Mr|To)&&!wt)this.reset();else if(dt.eventType&go)this.reset(),this._timer=F(function(){this.state=Oi,this.tryEmit()},xt.time,this);else if(dt.eventType&Mr)return Oi;return Sa},reset:function(){clearTimeout(this._timer)},emit:function(dt){this.state===Oi&&(dt&&dt.eventType&Mr?this.manager.emit(this.options.event+"up",dt):(this._input.timeStamp=T(),this.manager.emit(this.options.event,this._input)))}});function ri(){El.apply(this,arguments)}Se(ri,El,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[kr]},attrTest:function(dt){return this._super.attrTest.call(this,dt)&&(Math.abs(dt.rotation)>this.options.threshold||this.state&Po)}});function ao(){El.apply(this,arguments)}Se(ao,El,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Vr|Ro,pointers:1},getTouchAction:function(){return Ai.prototype.getTouchAction.call(this)},attrTest:function(dt){var xt=this.options.direction,Et;return xt&(Vr|Ro)?Et=dt.overallVelocity:xt&Vr?Et=dt.overallVelocityX:xt&Ro&&(Et=dt.overallVelocityY),this._super.attrTest.call(this,dt)&&xt&dt.offsetDirection&&dt.distance>this.options.threshold&&dt.maxPointers==this.options.pointers&&p(Et)>this.options.velocity&&dt.eventType&Mr},emit:function(dt){var xt=wo(dt.offsetDirection);xt&&this.manager.emit(this.options.event+xt,dt),this.manager.emit(this.options.event,dt)}});function Mi(){xa.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}Se(Mi,xa,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ni]},process:function(dt){var xt=this.options,Et=dt.pointers.length===xt.pointers,et=dt.distance>1,p=-7,T=M?x-1:0,F=M?-1:1,K=_[v+T];for(T+=F,N=K&(1<<-p)-1,K>>=-p,p+=R;p>0;N=N*256+_[v+T],T+=F,p-=8);for(V=N&(1<<-p)-1,N>>=-p,p+=C;p>0;V=V*256+_[v+T],T+=F,p-=8);if(N===0)N=1-S;else{if(N===k)return V?NaN:(K?-1:1)*(1/0);V=V+Math.pow(2,C),N=N-S}return(K?-1:1)*V*Math.pow(2,N-C)},q.write=function(_,v,M,C,x,N){var V,R,k,S=N*8-x-1,p=(1<>1,F=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,K=C?0:N-1,he=C?1:-1,fe=v<0||v===0&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?(R=isNaN(v)?1:0,V=p):(V=Math.floor(Math.log(v)/Math.LN2),v*(k=Math.pow(2,-V))<1&&(V--,k*=2),V+T>=1?v+=F/k:v+=F*Math.pow(2,1-T),v*k>=2&&(V++,k/=2),V+T>=p?(R=0,V=p):V+T>=1?(R=(v*k-1)*Math.pow(2,x),V=V+T):(R=v*Math.pow(2,T-1)*Math.pow(2,x),V=0));x>=8;_[M+K]=R&255,K+=he,R/=256,x-=8);for(V=V<0;_[M+K]=V&255,K+=he,V/=256,S-=8);_[M+K-he]|=fe*128}},3039:function(mt,q){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var _=Symbol.for("INJECTION");function v(V,R,k,S){function p(){return S&&!Reflect.hasMetadata(_,this,R)&&Reflect.defineMetadata(_,k(),this,R),Reflect.hasMetadata(_,this,R)?Reflect.getMetadata(_,this,R):k()}function T(F){Reflect.defineMetadata(_,F,this,R)}Object.defineProperty(V,R,{configurable:!0,enumerable:!0,get:p,set:T})}function M(V,R){return function(k){return function(S,p){var T=function(){return V.get(k)};v(S,p,T,R)}}}q.makePropertyInjectDecorator=M;function C(V,R){return function(k,S){return function(p,T){var F=function(){return V.getNamed(k,S)};v(p,T,F,R)}}}q.makePropertyInjectNamedDecorator=C;function x(V,R){return function(k,S,p){return function(T,F){var K=function(){return V.getTagged(k,S,p)};v(T,F,K,R)}}}q.makePropertyInjectTaggedDecorator=x;function N(V,R){return function(k){return function(S,p){var T=function(){return V.getAll(k)};v(S,p,T,R)}}}q.makePropertyMultiInjectDecorator=N},11922:function(mt,q,_){"use strict";var v;v={value:!0};var M=_(3039);function C(x,N){N===void 0&&(N=!0);var V=M.makePropertyInjectDecorator(x,N),R=M.makePropertyInjectNamedDecorator(x,N),k=M.makePropertyInjectTaggedDecorator(x,N),S=M.makePropertyMultiInjectDecorator(x,N);return{lazyInject:V,lazyInjectNamed:R,lazyInjectTagged:k,lazyMultiInject:S}}q.Z=C},80626:function(mt,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.tagProperty=q.tagParameter=q.decorate=void 0;var v=_(36078),M=_(50295);function C(S,p,T,F){var K=M.TAGGED;N(K,S,p,F,T)}q.tagParameter=C;function x(S,p,T){var F=M.TAGGED_PROP;N(F,S.constructor,p,T)}q.tagProperty=x;function N(S,p,T,F,K){var he={},fe=typeof K=="number",be=K!==void 0&&fe?K.toString():T;if(fe&&T!==void 0)throw new Error(v.INVALID_DECORATOR_OPERATION);Reflect.hasOwnMetadata(S,p)&&(he=Reflect.getMetadata(S,p));var Ae=he[be];if(!Array.isArray(Ae))Ae=[];else for(var xe=0,Se=Ae;xe= than the number of constructor arguments of its base class.")};q.ARGUMENTS_LENGTH_MISMATCH=v,q.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",q.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",q.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",q.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",q.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";var M=function(){for(var x=[],N=0;N0&&ft[ft.length-1])&&(Pe[0]===6||Pe[0]===2)){Se=0;continue}if(Pe[0]===3&&(!ft||Pe[1]>ft[0]&&Pe[1]0?N._map.set(R,k):N._map.delete(R)})},C.prototype.hasKey=function(x){if(x==null)throw new Error(v.NULL_ARGUMENT);return this._map.has(x)},C.prototype.clone=function(){var x=new C;return this._map.forEach(function(N,V){N.forEach(function(R){return x.add(V,R.clone())})}),x},C.prototype.traverse=function(x){this._map.forEach(function(N,V){x(V,N)})},C}();q.Lookup=M},99311:function(mt,q,_){"use strict";var v;v={value:!0},v=v=v=v=v=v=q.GW=v=v=q.zY=v=v=v=v=v=q.f3=v=v=q.b2=v=v=v=v=v=q.W2=v=void 0;var M=_(50295);v=M;var C=_(70596);Object.defineProperty(q,"W2",{enumerable:!0,get:function(){return C.Container}});var x=_(77690);v={enumerable:!0,get:function(){return x.BindingScopeEnum}},v={enumerable:!0,get:function(){return x.BindingTypeEnum}},v={enumerable:!0,get:function(){return x.TargetTypeEnum}};var N=_(42913);v={enumerable:!0,get:function(){return N.AsyncContainerModule}},v={enumerable:!0,get:function(){return N.ContainerModule}};var V=_(91773);Object.defineProperty(q,"b2",{enumerable:!0,get:function(){return V.injectable}});var R=_(79189);v={enumerable:!0,get:function(){return R.tagged}};var k=_(79817);v={enumerable:!0,get:function(){return k.named}};var S=_(76213);Object.defineProperty(q,"f3",{enumerable:!0,get:function(){return S.inject}}),v={enumerable:!0,get:function(){return S.LazyServiceIdentifer}};var p=_(71316);v={enumerable:!0,get:function(){return p.optional}};var T=_(19235);v={enumerable:!0,get:function(){return T.unmanaged}};var F=_(41528);v={enumerable:!0,get:function(){return F.multiInject}};var K=_(8245);v={enumerable:!0,get:function(){return K.targetName}};var he=_(71971);Object.defineProperty(q,"zY",{enumerable:!0,get:function(){return he.postConstruct}});var fe=_(43870);v={enumerable:!0,get:function(){return fe.MetadataReader}};var be=_(70023);v={enumerable:!0,get:function(){return be.id}};var Ae=_(80626);Object.defineProperty(q,"GW",{enumerable:!0,get:function(){return Ae.decorate}});var xe=_(83140);v={enumerable:!0,get:function(){return xe.traverseAncerstors}},v={enumerable:!0,get:function(){return xe.taggedConstraint}},v={enumerable:!0,get:function(){return xe.namedConstraint}},v={enumerable:!0,get:function(){return xe.typeConstraint}};var Se=_(29552);v={enumerable:!0,get:function(){return Se.getServiceIdentifierAsString}};var it=_(34384);v={enumerable:!0,get:function(){return it.multiBindToService}}},91519:function(mt,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.Context=void 0;var v=_(70023),M=function(){function C(x){this.id=v.id(),this.container=x}return C.prototype.addPlan=function(x){this.plan=x},C.prototype.setCurrentRequest=function(x){this.currentRequest=x},C}();q.Context=M},25092:function(mt,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.Metadata=void 0;var v=_(50295),M=function(){function C(x,N){this.key=x,this.value=N}return C.prototype.toString=function(){return this.key===v.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},C}();q.Metadata=M},43870:function(mt,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.MetadataReader=void 0;var v=_(50295),M=function(){function C(){}return C.prototype.getConstructorMetadata=function(x){var N=Reflect.getMetadata(v.PARAM_TYPES,x),V=Reflect.getMetadata(v.TAGGED,x);return{compilerGeneratedMetadata:N,userGeneratedMetadata:V||{}}},C.prototype.getPropertiesMetadata=function(x){var N=Reflect.getMetadata(v.TAGGED_PROP,x)||[];return N},C}();q.MetadataReader=M},6335:function(mt,q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.Plan=void 0;var _=function(){function v(M,C){this.parentContext=M,this.rootRequest=C}return v}();q.Plan=_},54142:function(mt,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.getBindingDictionary=q.createMockRequest=q.plan=void 0;var v=_(13497),M=_(36078),C=_(77690),x=_(50295),N=_(92542),V=_(29552),R=_(91519),k=_(25092),S=_(6335),p=_(16664),T=_(14810),F=_(69660);function K(Xe){return Xe._bindingDictionary}q.getBindingDictionary=K;function he(Xe,ft,Me,Ee,ze,Pe){var Re=Xe?x.MULTI_INJECT_TAG:x.INJECT_TAG,je=new k.Metadata(Re,Me),Ce=new F.Target(ft,Ee,Me,je);if(ze!==void 0){var rt=new k.Metadata(ze,Pe);Ce.metadata.push(rt)}return Ce}function fe(Xe,ft,Me,Ee,ze){var Pe=xe(Me.container,ze.serviceIdentifier),Re=[];return Pe.length===v.BindingCount.NoBindingsAvailable&&Me.container.options.autoBindInjectable&&typeof ze.serviceIdentifier=="function"&&Xe.getConstructorMetadata(ze.serviceIdentifier).compilerGeneratedMetadata&&(Me.container.bind(ze.serviceIdentifier).toSelf(),Pe=xe(Me.container,ze.serviceIdentifier)),ft?Re=Pe:Re=Pe.filter(function(je){var Ce=new T.Request(je.serviceIdentifier,Me,Ee,je,ze);return je.constraint(Ce)}),be(ze.serviceIdentifier,Re,ze,Me.container),Re}function be(Xe,ft,Me,Ee){switch(ft.length){case v.BindingCount.NoBindingsAvailable:if(Me.isOptional())return ft;var ze=V.getServiceIdentifierAsString(Xe),Pe=M.NOT_REGISTERED;throw Pe+=V.listMetadataForTarget(ze,Me),Pe+=V.listRegisteredBindingsForServiceIdentifier(Ee,ze,xe),new Error(Pe);case v.BindingCount.OnlyOneBindingAvailable:if(!Me.isArray())return ft;case v.BindingCount.MultipleBindingsAvailable:default:if(Me.isArray())return ft;var ze=V.getServiceIdentifierAsString(Xe),Pe=M.AMBIGUOUS_MATCH+" "+ze;throw Pe+=V.listRegisteredBindingsForServiceIdentifier(Ee,ze,xe),new Error(Pe)}}function Ae(Xe,ft,Me,Ee,ze,Pe){var Re,je;if(ze===null){Re=fe(Xe,ft,Ee,null,Pe),je=new T.Request(Me,Ee,null,Re,Pe);var Ce=new S.Plan(Ee,je);Ee.addPlan(Ce)}else Re=fe(Xe,ft,Ee,ze,Pe),je=ze.addChildRequest(Pe.serviceIdentifier,Re,Pe);Re.forEach(function(rt){var Ne=null;if(Pe.isArray())Ne=je.addChildRequest(rt.serviceIdentifier,rt,Pe);else{if(rt.cache)return;Ne=je}if(rt.type===C.BindingTypeEnum.Instance&&rt.implementationType!==null){var Xt=p.getDependencies(Xe,rt.implementationType);if(!Ee.container.options.skipBaseClassChecks){var Ft=p.getBaseClassDependencyCount(Xe,rt.implementationType);if(Xt.length0,ze=Me.length>Ae.length,Pe=Ee||ze?Me.length:Ae.length,Re=T(xe,be,it,ft,Pe),je=F(fe,Ae),Ce=v(v([],Re),je);return Ce}function p(fe,be,Ae,xe,Se){var it=Se[fe.toString()]||[],Xe=he(it),ft=Xe.unmanaged!==!0,Me=xe[fe],Ee=Xe.inject||Xe.multiInject;if(Me=Ee||Me,Me instanceof M.LazyServiceIdentifer&&(Me=Me.unwrap()),ft){var ze=Me===Object,Pe=Me===Function,Re=Me===void 0,je=ze||Pe||Re;if(!be&&je){var Ce=C.MISSING_INJECT_ANNOTATION+" argument "+fe+" in class "+Ae+".";throw new Error(Ce)}var rt=new R.Target(x.TargetTypeEnum.ConstructorArgument,Xe.targetName,Me);return rt.metadata=it,rt}return null}function T(fe,be,Ae,xe,Se){for(var it=[],Xe=0;Xe0?ft:K(fe,Ae)}else return 0}q.getBaseClassDependencyCount=K;function he(fe){var be={};return fe.forEach(function(Ae){be[Ae.key.toString()]=Ae.value}),{inject:be[N.INJECT_TAG],multiInject:be[N.MULTI_INJECT_TAG],targetName:be[N.NAME_TAG],unmanaged:be[N.UNMANAGED_TAG]}}},14810:function(mt,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.Request=void 0;var v=_(70023),M=function(){function C(x,N,V,R,k){this.id=v.id(),this.serviceIdentifier=x,this.parentContext=N,this.parentRequest=V,this.target=k,this.childRequests=[],this.bindings=Array.isArray(R)?R:[R],this.requestScope=V===null?new Map:null}return C.prototype.addChildRequest=function(x,N,V){var R=new C(x,this.parentContext,this,N,V);return this.childRequests.push(R),R},C}();q.Request=M},69660:function(mt,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.Target=void 0;var v=_(50295),M=_(70023),C=_(25092),x=_(68634),N=function(){function V(R,k,S,p){this.id=M.id(),this.type=R,this.serviceIdentifier=S,this.name=new x.QueryableString(k||""),this.metadata=new Array;var T=null;typeof p=="string"?T=new C.Metadata(v.NAMED_TAG,p):p instanceof C.Metadata&&(T=p),T!==null&&this.metadata.push(T)}return V.prototype.hasTag=function(R){for(var k=0,S=this.metadata;k0){var K=p.filter(function(fe){return fe.target!==null&&fe.target.type===C.TargetTypeEnum.ConstructorArgument}),he=K.map(T);F=V(S,he),F=N(F,p,T)}else F=new S;return R(S,F),F}q.resolveInstance=k},9386:function(mt,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.resolve=void 0;var v=_(36078),M=_(77690),C=_(92542),x=_(29552),N=_(74962),V=function(S,p,T){try{return T()}catch(F){throw C.isStackOverflowExeption(F)?new Error(v.CIRCULAR_DEPENDENCY_IN_FACTORY(S,p.toString())):F}},R=function(S){return function(p){p.parentContext.setCurrentRequest(p);var T=p.bindings,F=p.childRequests,K=p.target&&p.target.isArray(),he=!p.parentRequest||!p.parentRequest.target||!p.target||!p.parentRequest.target.matchesArray(p.target.serviceIdentifier);if(K&&he)return F.map(function(it){var Xe=R(S);return Xe(it)});var fe=null;if(p.target.isOptional()&&T.length===0)return;var be=T[0],Ae=be.scope===M.BindingScopeEnum.Singleton,xe=be.scope===M.BindingScopeEnum.Request;if(Ae&&be.activated)return be.cache;if(xe&&S!==null&&S.has(be.id))return S.get(be.id);if(be.type===M.BindingTypeEnum.ConstantValue)fe=be.cache,be.activated=!0;else if(be.type===M.BindingTypeEnum.Function)fe=be.cache,be.activated=!0;else if(be.type===M.BindingTypeEnum.Constructor)fe=be.implementationType;else if(be.type===M.BindingTypeEnum.DynamicValue&&be.dynamicValue!==null)fe=V("toDynamicValue",be.serviceIdentifier,function(){return be.dynamicValue(p.parentContext)});else if(be.type===M.BindingTypeEnum.Factory&&be.factory!==null)fe=V("toFactory",be.serviceIdentifier,function(){return be.factory(p.parentContext)});else if(be.type===M.BindingTypeEnum.Provider&&be.provider!==null)fe=V("toProvider",be.serviceIdentifier,function(){return be.provider(p.parentContext)});else if(be.type===M.BindingTypeEnum.Instance&&be.implementationType!==null)fe=N.resolveInstance(be.implementationType,F,R(S));else{var Se=x.getServiceIdentifierAsString(p.serviceIdentifier);throw new Error(v.INVALID_BINDING_TYPE+" "+Se)}return typeof be.onActivation=="function"&&(fe=be.onActivation(p.parentContext,fe)),Ae&&(be.cache=fe,be.activated=!0),xe&&S!==null&&!S.has(be.id)&&S.set(be.id,fe),fe}};function k(S){var p=R(S.plan.rootRequest.requestScope);return p(S.plan.rootRequest)}q.resolve=k},91640:function(mt,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.BindingInSyntax=void 0;var v=_(77690),M=_(46890),C=function(){function x(N){this._binding=N}return x.prototype.inRequestScope=function(){return this._binding.scope=v.BindingScopeEnum.Request,new M.BindingWhenOnSyntax(this._binding)},x.prototype.inSingletonScope=function(){return this._binding.scope=v.BindingScopeEnum.Singleton,new M.BindingWhenOnSyntax(this._binding)},x.prototype.inTransientScope=function(){return this._binding.scope=v.BindingScopeEnum.Transient,new M.BindingWhenOnSyntax(this._binding)},x}();q.BindingInSyntax=C},82386:function(mt,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.BindingInWhenOnSyntax=void 0;var v=_(91640),M=_(8926),C=_(36890),x=function(){function N(V){this._binding=V,this._bindingWhenSyntax=new C.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new M.BindingOnSyntax(this._binding),this._bindingInSyntax=new v.BindingInSyntax(V)}return N.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},N.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},N.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},N.prototype.when=function(V){return this._bindingWhenSyntax.when(V)},N.prototype.whenTargetNamed=function(V){return this._bindingWhenSyntax.whenTargetNamed(V)},N.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},N.prototype.whenTargetTagged=function(V,R){return this._bindingWhenSyntax.whenTargetTagged(V,R)},N.prototype.whenInjectedInto=function(V){return this._bindingWhenSyntax.whenInjectedInto(V)},N.prototype.whenParentNamed=function(V){return this._bindingWhenSyntax.whenParentNamed(V)},N.prototype.whenParentTagged=function(V,R){return this._bindingWhenSyntax.whenParentTagged(V,R)},N.prototype.whenAnyAncestorIs=function(V){return this._bindingWhenSyntax.whenAnyAncestorIs(V)},N.prototype.whenNoAncestorIs=function(V){return this._bindingWhenSyntax.whenNoAncestorIs(V)},N.prototype.whenAnyAncestorNamed=function(V){return this._bindingWhenSyntax.whenAnyAncestorNamed(V)},N.prototype.whenAnyAncestorTagged=function(V,R){return this._bindingWhenSyntax.whenAnyAncestorTagged(V,R)},N.prototype.whenNoAncestorNamed=function(V){return this._bindingWhenSyntax.whenNoAncestorNamed(V)},N.prototype.whenNoAncestorTagged=function(V,R){return this._bindingWhenSyntax.whenNoAncestorTagged(V,R)},N.prototype.whenAnyAncestorMatches=function(V){return this._bindingWhenSyntax.whenAnyAncestorMatches(V)},N.prototype.whenNoAncestorMatches=function(V){return this._bindingWhenSyntax.whenNoAncestorMatches(V)},N.prototype.onActivation=function(V){return this._bindingOnSyntax.onActivation(V)},N}();q.BindingInWhenOnSyntax=x},8926:function(mt,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.BindingOnSyntax=void 0;var v=_(36890),M=function(){function C(x){this._binding=x}return C.prototype.onActivation=function(x){return this._binding.onActivation=x,new v.BindingWhenSyntax(this._binding)},C}();q.BindingOnSyntax=M},43313:function(mt,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.BindingToSyntax=void 0;var v=_(36078),M=_(77690),C=_(82386),x=_(46890),N=function(){function V(R){this._binding=R}return V.prototype.to=function(R){return this._binding.type=M.BindingTypeEnum.Instance,this._binding.implementationType=R,new C.BindingInWhenOnSyntax(this._binding)},V.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+v.INVALID_TO_SELF_VALUE);var R=this._binding.serviceIdentifier;return this.to(R)},V.prototype.toConstantValue=function(R){return this._binding.type=M.BindingTypeEnum.ConstantValue,this._binding.cache=R,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=M.BindingScopeEnum.Singleton,new x.BindingWhenOnSyntax(this._binding)},V.prototype.toDynamicValue=function(R){return this._binding.type=M.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=R,this._binding.implementationType=null,new C.BindingInWhenOnSyntax(this._binding)},V.prototype.toConstructor=function(R){return this._binding.type=M.BindingTypeEnum.Constructor,this._binding.implementationType=R,this._binding.scope=M.BindingScopeEnum.Singleton,new x.BindingWhenOnSyntax(this._binding)},V.prototype.toFactory=function(R){return this._binding.type=M.BindingTypeEnum.Factory,this._binding.factory=R,this._binding.scope=M.BindingScopeEnum.Singleton,new x.BindingWhenOnSyntax(this._binding)},V.prototype.toFunction=function(R){if(typeof R!="function")throw new Error(v.INVALID_FUNCTION_BINDING);var k=this.toConstantValue(R);return this._binding.type=M.BindingTypeEnum.Function,this._binding.scope=M.BindingScopeEnum.Singleton,k},V.prototype.toAutoFactory=function(R){return this._binding.type=M.BindingTypeEnum.Factory,this._binding.factory=function(k){var S=function(){return k.container.get(R)};return S},this._binding.scope=M.BindingScopeEnum.Singleton,new x.BindingWhenOnSyntax(this._binding)},V.prototype.toProvider=function(R){return this._binding.type=M.BindingTypeEnum.Provider,this._binding.provider=R,this._binding.scope=M.BindingScopeEnum.Singleton,new x.BindingWhenOnSyntax(this._binding)},V.prototype.toService=function(R){this.toDynamicValue(function(k){return k.container.get(R)})},V}();q.BindingToSyntax=N},46890:function(mt,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.BindingWhenOnSyntax=void 0;var v=_(8926),M=_(36890),C=function(){function x(N){this._binding=N,this._bindingWhenSyntax=new M.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new v.BindingOnSyntax(this._binding)}return x.prototype.when=function(N){return this._bindingWhenSyntax.when(N)},x.prototype.whenTargetNamed=function(N){return this._bindingWhenSyntax.whenTargetNamed(N)},x.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},x.prototype.whenTargetTagged=function(N,V){return this._bindingWhenSyntax.whenTargetTagged(N,V)},x.prototype.whenInjectedInto=function(N){return this._bindingWhenSyntax.whenInjectedInto(N)},x.prototype.whenParentNamed=function(N){return this._bindingWhenSyntax.whenParentNamed(N)},x.prototype.whenParentTagged=function(N,V){return this._bindingWhenSyntax.whenParentTagged(N,V)},x.prototype.whenAnyAncestorIs=function(N){return this._bindingWhenSyntax.whenAnyAncestorIs(N)},x.prototype.whenNoAncestorIs=function(N){return this._bindingWhenSyntax.whenNoAncestorIs(N)},x.prototype.whenAnyAncestorNamed=function(N){return this._bindingWhenSyntax.whenAnyAncestorNamed(N)},x.prototype.whenAnyAncestorTagged=function(N,V){return this._bindingWhenSyntax.whenAnyAncestorTagged(N,V)},x.prototype.whenNoAncestorNamed=function(N){return this._bindingWhenSyntax.whenNoAncestorNamed(N)},x.prototype.whenNoAncestorTagged=function(N,V){return this._bindingWhenSyntax.whenNoAncestorTagged(N,V)},x.prototype.whenAnyAncestorMatches=function(N){return this._bindingWhenSyntax.whenAnyAncestorMatches(N)},x.prototype.whenNoAncestorMatches=function(N){return this._bindingWhenSyntax.whenNoAncestorMatches(N)},x.prototype.onActivation=function(N){return this._bindingOnSyntax.onActivation(N)},x}();q.BindingWhenOnSyntax=C},36890:function(mt,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.BindingWhenSyntax=void 0;var v=_(8926),M=_(83140),C=function(){function x(N){this._binding=N}return x.prototype.when=function(N){return this._binding.constraint=N,new v.BindingOnSyntax(this._binding)},x.prototype.whenTargetNamed=function(N){return this._binding.constraint=M.namedConstraint(N),new v.BindingOnSyntax(this._binding)},x.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(N){var V=N.target!==null&&!N.target.isNamed()&&!N.target.isTagged();return V},new v.BindingOnSyntax(this._binding)},x.prototype.whenTargetTagged=function(N,V){return this._binding.constraint=M.taggedConstraint(N)(V),new v.BindingOnSyntax(this._binding)},x.prototype.whenInjectedInto=function(N){return this._binding.constraint=function(V){return M.typeConstraint(N)(V.parentRequest)},new v.BindingOnSyntax(this._binding)},x.prototype.whenParentNamed=function(N){return this._binding.constraint=function(V){return M.namedConstraint(N)(V.parentRequest)},new v.BindingOnSyntax(this._binding)},x.prototype.whenParentTagged=function(N,V){return this._binding.constraint=function(R){return M.taggedConstraint(N)(V)(R.parentRequest)},new v.BindingOnSyntax(this._binding)},x.prototype.whenAnyAncestorIs=function(N){return this._binding.constraint=function(V){return M.traverseAncerstors(V,M.typeConstraint(N))},new v.BindingOnSyntax(this._binding)},x.prototype.whenNoAncestorIs=function(N){return this._binding.constraint=function(V){return!M.traverseAncerstors(V,M.typeConstraint(N))},new v.BindingOnSyntax(this._binding)},x.prototype.whenAnyAncestorNamed=function(N){return this._binding.constraint=function(V){return M.traverseAncerstors(V,M.namedConstraint(N))},new v.BindingOnSyntax(this._binding)},x.prototype.whenNoAncestorNamed=function(N){return this._binding.constraint=function(V){return!M.traverseAncerstors(V,M.namedConstraint(N))},new v.BindingOnSyntax(this._binding)},x.prototype.whenAnyAncestorTagged=function(N,V){return this._binding.constraint=function(R){return M.traverseAncerstors(R,M.taggedConstraint(N)(V))},new v.BindingOnSyntax(this._binding)},x.prototype.whenNoAncestorTagged=function(N,V){return this._binding.constraint=function(R){return!M.traverseAncerstors(R,M.taggedConstraint(N)(V))},new v.BindingOnSyntax(this._binding)},x.prototype.whenAnyAncestorMatches=function(N){return this._binding.constraint=function(V){return M.traverseAncerstors(V,N)},new v.BindingOnSyntax(this._binding)},x.prototype.whenNoAncestorMatches=function(N){return this._binding.constraint=function(V){return!M.traverseAncerstors(V,N)},new v.BindingOnSyntax(this._binding)},x}();q.BindingWhenSyntax=C},83140:function(mt,q,_){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.typeConstraint=q.namedConstraint=q.taggedConstraint=q.traverseAncerstors=void 0;var v=_(50295),M=_(25092),C=function(R,k){var S=R.parentRequest;return S!==null?k(S)?!0:C(S,k):!1};q.traverseAncerstors=C;var x=function(R){return function(k){var S=function(p){return p!==null&&p.target!==null&&p.target.matchesTag(R)(k)};return S.metaData=new M.Metadata(R,k),S}};q.taggedConstraint=x;var N=x(v.NAMED_TAG);q.namedConstraint=N;var V=function(R){return function(k){var S=null;if(k!==null)if(S=k.bindings[0],typeof R=="string"){var p=S.serviceIdentifier;return p===R}else{var T=k.bindings[0].implementationType;return R===T}return!1}};q.typeConstraint=V},34384:function(mt,q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.multiBindToService=void 0;var _=function(v){return function(M){return function(){for(var C=[],x=0;x ")}function V(S){S.childRequests.forEach(function(p){if(x(p,p.serviceIdentifier)){var T=N(p);throw new Error(v.CIRCULAR_DEPENDENCY+" "+T)}else V(p)})}q.circularDependencyToException=V;function R(S,p){if(p.isTagged()||p.isNamed()){var T="",F=p.getNamedTag(),K=p.getCustomTags();return F!==null&&(T+=F.toString()+` +`),K!==null&&K.forEach(function(he){T+=he.toString()+` +`})," "+S+` + `+S+" - "+T}else return" "+S}q.listMetadataForTarget=R;function k(S){if(S.name)return S.name;var p=S.toString(),T=p.match(/^function\s*([^\s(]+)/);return T?T[1]:"Anonymous function: "+p}q.getFunctionName=k},76051:function(mt,q,_){"use strict";var v=_(45119)(),M=_(97683),C=M("Object.prototype.toString"),x=function(k){return v&&k&&typeof k=="object"&&Symbol.toStringTag in k?!1:C(k)==="[object Arguments]"},N=function(k){return x(k)?!0:k!==null&&typeof k=="object"&&typeof k.length=="number"&&k.length>=0&&C(k)!=="[object Array]"&&C(k.callee)==="[object Function]"},V=function(){return x(arguments)}();x.isLegacyArguments=N,mt.exports=V?x:N},22948:function(mt){mt.exports=function(_){return!_||typeof _=="string"?!1:_ instanceof Array||Array.isArray(_)||_.length>=0&&(_.splice instanceof Function||Object.getOwnPropertyDescriptor(_,_.length-1)&&_.constructor.name!=="String")}},5012:function(mt,q,_){"use strict";var v=Date.prototype.getDay,M=function(R){try{return v.call(R),!0}catch(k){return!1}},C=Object.prototype.toString,x="[object Date]",N=_(45119)();mt.exports=function(R){return typeof R!="object"||R===null?!1:N?M(R):C.call(R)===x}},11644:function(mt,q,_){"use strict";var v=_(97683),M=_(45119)(),C,x,N,V;if(M){C=v("Object.prototype.hasOwnProperty"),x=v("RegExp.prototype.exec"),N={};var R=function(){throw N};V={toString:R,valueOf:R},typeof Symbol.toPrimitive=="symbol"&&(V[Symbol.toPrimitive]=R)}var k=v("Object.prototype.toString"),S=Object.getOwnPropertyDescriptor,p="[object RegExp]";mt.exports=M?function(F){if(!F||typeof F!="object")return!1;var K=S(F,"lastIndex"),he=K&&C(K,"value");if(!he)return!1;try{x(F,V)}catch(fe){return fe===N}}:function(F){return!F||typeof F!="object"&&typeof F!="function"?!1:k(F)===p}},99100:function(mt){var q={}.toString;mt.exports=Array.isArray||function(_){return q.call(_)=="[object Array]"}},72402:function(mt,q,_){(function(v){if(!0)mt.exports=v();else var M})(function(){var v,M,C;return function x(N,V,R){function k(T,F){if(!V[T]){if(!N[T]){var K=void 0;if(!F&&K)return require(T,!0);if(S)return S(T,!0);var he=new Error("Cannot find module '"+T+"'");throw he.code="MODULE_NOT_FOUND",he}var fe=V[T]={exports:{}};N[T][0].call(fe.exports,function(be){var Ae=N[T][1][be];return k(Ae||be)},fe,fe.exports,x,N,V,R)}return V[T].exports}for(var S=void 0,p=0;p=43)}}).catch(function(){return!1})}function Pe(Ai){return typeof Se=="boolean"?K.resolve(Se):ze(Ai).then(function(to){return Se=to,Se})}function Re(Ai){var to=it[Ai.name],An={};An.promise=new K(function(ri,ao){An.resolve=ri,An.reject=ao}),to.deferredOperations.push(An),to.dbReady?to.dbReady=to.dbReady.then(function(){return An.promise}):to.dbReady=An.promise}function je(Ai){var to=it[Ai.name],An=to.deferredOperations.pop();if(An)return An.resolve(),An.promise}function Ce(Ai,to){var An=it[Ai.name],ri=An.deferredOperations.pop();if(ri)return ri.reject(to),ri.promise}function rt(Ai,to){return new K(function(An,ri){if(it[Ai.name]=it[Ai.name]||mn(),Ai.db)if(to)Re(Ai),Ai.db.close();else return An(Ai.db);var ao=[Ai.name];to&&ao.push(Ai.version);var Mi=p.open.apply(p,ao);to&&(Mi.onupgradeneeded=function(_s){var Hs=Mi.result;try{Hs.createObjectStore(Ai.storeName),_s.oldVersion<=1&&Hs.createObjectStore(xe)}catch(Hr){if(Hr.name==="ConstraintError")console.warn('The database "'+Ai.name+'" has been upgraded from version '+_s.oldVersion+" to version "+_s.newVersion+', but the storage "'+Ai.storeName+'" already exists.');else throw Hr}}),Mi.onerror=function(_s){_s.preventDefault(),ri(Mi.error)},Mi.onsuccess=function(){var _s=Mi.result;_s.onversionchange=function(Hs){Hs.target.close()},An(_s),je(Ai)}})}function Ne(Ai){return rt(Ai,!1)}function Xt(Ai){return rt(Ai,!0)}function Ft(Ai,to){if(!Ai.db)return!0;var An=!Ai.db.objectStoreNames.contains(Ai.storeName),ri=Ai.versionAi.db.version;if(ri&&(Ai.version!==to&&console.warn('The database "'+Ai.name+`" can't be downgraded from version `+Ai.db.version+" to version "+Ai.version+"."),Ai.version=Ai.db.version),ao||An){if(An){var Mi=Ai.db.version+1;Mi>Ai.version&&(Ai.version=Mi)}return!0}return!1}function lt(Ai){return new K(function(to,An){var ri=new FileReader;ri.onerror=An,ri.onloadend=function(ao){var Mi=btoa(ao.target.result||"");to({__local_forage_encoded_blob:!0,data:Mi,type:Ai.type})},ri.readAsBinaryString(Ai)})}function Bt(Ai){var to=Ee(atob(Ai.data));return F([to],{type:Ai.type})}function At(Ai){return Ai&&Ai.__local_forage_encoded_blob}function an(Ai){var to=this,An=to._initReady().then(function(){var ri=it[to._dbInfo.name];if(ri&&ri.dbReady)return ri.dbReady});return fe(An,Ai,Ai),An}function Tt(Ai){Re(Ai);for(var to=it[Ai.name],An=to.forages,ri=0;ri0&&(!Ai.db||Mi.name==="InvalidStateError"||Mi.name==="NotFoundError"))return K.resolve().then(function(){if(!Ai.db||Mi.name==="NotFoundError"&&!Ai.db.objectStoreNames.contains(Ai.storeName)&&Ai.version<=Ai.db.version)return Ai.db&&(Ai.version=Ai.db.version+1),Xt(Ai)}).then(function(){return Tt(Ai).then(function(){Nn(Ai,to,An,ri-1)})}).catch(An);An(Mi)}}function mn(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function zn(Ai){var to=this,An={db:null};if(Ai)for(var ri in Ai)An[ri]=Ai[ri];var ao=it[An.name];ao||(ao=mn(),it[An.name]=ao),ao.forages.push(to),to._initReady||(to._initReady=to.ready,to.ready=an);var Mi=[];function _s(){return K.resolve()}for(var Hs=0;Hs>4,fn[ao++]=(_s&15)<<4|Hs>>2,fn[ao++]=(Hs&3)<<6|Hr&63;return Bi}function Io(Ai){var to=new Uint8Array(Ai),An="",ri;for(ri=0;ri>2],An+=Vr[(to[ri]&3)<<4|to[ri+1]>>4],An+=Vr[(to[ri+1]&15)<<2|to[ri+2]>>6],An+=Vr[to[ri+2]&63];return to.length%3===2?An=An.substring(0,An.length-1)+"=":to.length%3===1&&(An=An.substring(0,An.length-2)+"=="),An}function On(Ai,to){var An="";if(Ai&&(An=Pr.call(Ai)),Ai&&(An==="[object ArrayBuffer]"||Ai.buffer&&Pr.call(Ai.buffer)==="[object ArrayBuffer]")){var ri,ao=nt;Ai instanceof ArrayBuffer?(ri=Ai,ao+=Ht):(ri=Ai.buffer,An==="[object Int8Array]"?ao+=En:An==="[object Uint8Array]"?ao+=rn:An==="[object Uint8ClampedArray]"?ao+=Jt:An==="[object Int16Array]"?ao+=Mt:An==="[object Uint16Array]"?ao+=Dn:An==="[object Int32Array]"?ao+=Qt:An==="[object Uint32Array]"?ao+=sn:An==="[object Float32Array]"?ao+=wr:An==="[object Float64Array]"?ao+=jr:to(new Error("Failed to get type for BinaryArray"))),to(ao+Io(ri))}else if(An==="[object Blob]"){var Mi=new FileReader;Mi.onload=function(){var _s=Ro+Ai.type+"~"+Io(this.result);to(nt+hn+_s)},Mi.readAsArrayBuffer(Ai)}else try{to(JSON.stringify(Ai))}catch(_s){console.error("Couldn't convert value into a JSON string: ",Ai),to(null,_s)}}function zr(Ai){if(Ai.substring(0,Ct)!==nt)return JSON.parse(Ai);var to=Ai.substring(xi),An=Ai.substring(Ct,xi),ri;if(An===hn&&Tn.test(to)){var ao=to.match(Tn);ri=ao[1],to=to.substring(ao[0].length)}var Mi=Hi(to);switch(An){case Ht:return Mi;case hn:return F([Mi],{type:ri});case En:return new Int8Array(Mi);case rn:return new Uint8Array(Mi);case Jt:return new Uint8ClampedArray(Mi);case Mt:return new Int16Array(Mi);case Dn:return new Uint16Array(Mi);case Qt:return new Int32Array(Mi);case sn:return new Uint32Array(Mi);case wr:return new Float32Array(Mi);case jr:return new Float64Array(Mi);default:throw new Error("Unkown type: "+An)}}var qr={serialize:On,deserialize:zr,stringToBuffer:Hi,bufferToString:Io};function Wi(Ai,to,An,ri){Ai.executeSql("CREATE TABLE IF NOT EXISTS "+to.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],An,ri)}function ir(Ai){var to=this,An={db:null};if(Ai)for(var ri in Ai)An[ri]=typeof Ai[ri]!="string"?Ai[ri].toString():Ai[ri];var ao=new K(function(Mi,_s){try{An.db=openDatabase(An.name,String(An.version),An.description,An.size)}catch(Hs){return _s(Hs)}An.db.transaction(function(Hs){Wi(Hs,An,function(){to._dbInfo=An,Mi()},function(Hr,Bi){_s(Bi)})},_s)});return An.serializer=qr,ao}function Jn(Ai,to,An,ri,ao,Mi){Ai.executeSql(An,ri,ao,function(_s,Hs){Hs.code===Hs.SYNTAX_ERR?_s.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[to.storeName],function(Hr,Bi){Bi.rows.length?Mi(Hr,Hs):Wi(Hr,to,function(){Hr.executeSql(An,ri,ao,Mi)},Mi)},Mi):Mi(_s,Hs)},Mi)}function $t(Ai,to){var An=this;Ai=be(Ai);var ri=new K(function(ao,Mi){An.ready().then(function(){var _s=An._dbInfo;_s.db.transaction(function(Hs){Jn(Hs,_s,"SELECT * FROM "+_s.storeName+" WHERE key = ? LIMIT 1",[Ai],function(Hr,Bi){var fn=Bi.rows.length?Bi.rows.item(0).value:null;fn&&(fn=_s.serializer.deserialize(fn)),ao(fn)},function(Hr,Bi){Mi(Bi)})})}).catch(Mi)});return he(ri,to),ri}function Gt(Ai,to){var An=this,ri=new K(function(ao,Mi){An.ready().then(function(){var _s=An._dbInfo;_s.db.transaction(function(Hs){Jn(Hs,_s,"SELECT * FROM "+_s.storeName,[],function(Hr,Bi){for(var fn=Bi.rows,Ln=fn.length,ur=0;ur0){_s(wn.apply(ao,[Ai,Hr,An,ri-1]));return}Hs(ur)}})})}).catch(Hs)});return he(Mi,An),Mi}function Zn(Ai,to,An){return wn.apply(this,[Ai,to,An,1])}function _r(Ai,to){var An=this;Ai=be(Ai);var ri=new K(function(ao,Mi){An.ready().then(function(){var _s=An._dbInfo;_s.db.transaction(function(Hs){Jn(Hs,_s,"DELETE FROM "+_s.storeName+" WHERE key = ?",[Ai],function(){ao()},function(Hr,Bi){Mi(Bi)})})}).catch(Mi)});return he(ri,to),ri}function qn(Ai){var to=this,An=new K(function(ri,ao){to.ready().then(function(){var Mi=to._dbInfo;Mi.db.transaction(function(_s){Jn(_s,Mi,"DELETE FROM "+Mi.storeName,[],function(){ri()},function(Hs,Hr){ao(Hr)})})}).catch(ao)});return he(An,Ai),An}function $n(Ai){var to=this,An=new K(function(ri,ao){to.ready().then(function(){var Mi=to._dbInfo;Mi.db.transaction(function(_s){Jn(_s,Mi,"SELECT COUNT(key) as c FROM "+Mi.storeName,[],function(Hs,Hr){var Bi=Hr.rows.item(0).c;ri(Bi)},function(Hs,Hr){ao(Hr)})})}).catch(ao)});return he(An,Ai),An}function jt(Ai,to){var An=this,ri=new K(function(ao,Mi){An.ready().then(function(){var _s=An._dbInfo;_s.db.transaction(function(Hs){Jn(Hs,_s,"SELECT key FROM "+_s.storeName+" WHERE id = ? LIMIT 1",[Ai+1],function(Hr,Bi){var fn=Bi.rows.length?Bi.rows.item(0).key:null;ao(fn)},function(Hr,Bi){Mi(Bi)})})}).catch(Mi)});return he(ri,to),ri}function In(Ai){var to=this,An=new K(function(ri,ao){to.ready().then(function(){var Mi=to._dbInfo;Mi.db.transaction(function(_s){Jn(_s,Mi,"SELECT key FROM "+Mi.storeName,[],function(Hs,Hr){for(var Bi=[],fn=0;fn '__WebKitDatabaseInfoTable__'",[],function(ao,Mi){for(var _s=[],Hs=0;Hs0}function bi(Ai){var to=this,An={};if(Ai)for(var ri in Ai)An[ri]=Ai[ri];return An.keyPrefix=xn(Ai,to._defaultConfig),Nr()?(to._dbInfo=An,An.serializer=qr,K.resolve()):K.reject()}function Ei(Ai){var to=this,An=to.ready().then(function(){for(var ri=to._dbInfo.keyPrefix,ao=localStorage.length-1;ao>=0;ao--){var Mi=localStorage.key(ao);Mi.indexOf(ri)===0&&localStorage.removeItem(Mi)}});return he(An,Ai),An}function Yi(Ai,to){var An=this;Ai=be(Ai);var ri=An.ready().then(function(){var ao=An._dbInfo,Mi=localStorage.getItem(ao.keyPrefix+Ai);return Mi&&(Mi=ao.serializer.deserialize(Mi)),Mi});return he(ri,to),ri}function di(Ai,to){var An=this,ri=An.ready().then(function(){for(var ao=An._dbInfo,Mi=ao.keyPrefix,_s=Mi.length,Hs=localStorage.length,Hr=1,Bi=0;Bi=0;_s--){var Hs=localStorage.key(_s);Hs.indexOf(Mi)===0&&localStorage.removeItem(Hs)}}):ao=K.reject("Invalid arguments"),he(ao,to),ao}var Sr={_driver:"localStorageWrapper",_initStorage:bi,_support:Yt(),iterate:di,getItem:Yi,setItem:yo,removeItem:Xr,clear:Ei,length:kr,key:Wr,keys:Ni,dropInstance:ls},hs=function(to,An){return to===An||typeof to=="number"&&typeof An=="number"&&isNaN(to)&&isNaN(An)},ta=function(to,An){for(var ri=to.length,ao=0;ao-1}mt.exports=M},94874:function(mt){function q(_,v,M){for(var C=-1,x=_==null?0:_.length;++C=v?_:v)),_}mt.exports=q},99045:function(mt,q,_){var v=_(91866),M=_(60661),C=_(60348),x=_(91937),N=_(26680),V=_(32315),R=_(47760),k=_(15168),S=_(71678),p=_(12076),T=_(22675),F=_(66139),K=_(79264),he=_(97541),fe=_(4084),be=_(80744),Ae=_(57835),xe=_(41626),Se=_(20816),it=_(65226),Xe=_(55451),ft=_(56730),Me=1,Ee=2,ze=4,Pe="[object Arguments]",Re="[object Array]",je="[object Boolean]",Ce="[object Date]",rt="[object Error]",Ne="[object Function]",Xt="[object GeneratorFunction]",Ft="[object Map]",lt="[object Number]",Bt="[object Object]",At="[object RegExp]",an="[object Set]",Tt="[object String]",Nn="[object Symbol]",mn="[object WeakMap]",zn="[object ArrayBuffer]",Kr="[object DataView]",Ui="[object Float32Array]",go="[object Float64Array]",gi="[object Int8Array]",Mr="[object Int16Array]",To="[object Int32Array]",ms="[object Uint8Array]",De="[object Uint8ClampedArray]",Oo="[object Uint16Array]",$i="[object Uint32Array]",co={};co[Pe]=co[Re]=co[zn]=co[Kr]=co[je]=co[Ce]=co[Ui]=co[go]=co[gi]=co[Mr]=co[To]=co[Ft]=co[lt]=co[Bt]=co[At]=co[an]=co[Tt]=co[Nn]=co[ms]=co[De]=co[Oo]=co[$i]=!0,co[rt]=co[Ne]=co[mn]=!1;function Vr(Ro,Tn,nt,Ct,Ht,hn){var En,rn=Tn&Me,Jt=Tn&Ee,Mt=Tn&ze;if(nt&&(En=Ht?nt(Ro,Ct,Ht,hn):nt(Ro)),En!==void 0)return En;if(!Se(Ro))return Ro;var Qt=be(Ro);if(Qt){if(En=K(Ro),!rn)return R(Ro,En)}else{var Dn=F(Ro),sn=Dn==Ne||Dn==Xt;if(Ae(Ro))return V(Ro,rn);if(Dn==Bt||Dn==Pe||sn&&!Ht){if(En=Jt||sn?{}:fe(Ro),!rn)return Jt?S(Ro,N(En,Ro)):k(Ro,x(En,Ro))}else{if(!co[Dn])return Ht?Ro:{};En=he(Ro,Dn,rn)}}hn||(hn=new v);var wr=hn.get(Ro);if(wr)return wr;hn.set(Ro,En),it(Ro)?Ro.forEach(function(Pr){En.add(Vr(Pr,Tn,nt,Pr,Ro,hn))}):xe(Ro)&&Ro.forEach(function(Pr,Hi){En.set(Hi,Vr(Pr,Tn,nt,Hi,Ro,hn))});var jr=Mt?Jt?T:p:Jt?ft:Xe,xi=Qt?void 0:jr(Ro);return M(xi||Ro,function(Pr,Hi){xi&&(Hi=Pr,Pr=Ro[Hi]),C(En,Hi,Vr(Pr,Tn,nt,Hi,Ro,hn))}),En}mt.exports=Vr},35024:function(mt,q,_){var v=_(20816),M=Object.create,C=function(){function x(){}return function(N){if(!v(N))return{};if(M)return M(N);x.prototype=N;var V=new x;return x.prototype=void 0,V}}();mt.exports=C},51533:function(mt){function q(_,v,M,C){for(var x=_.length,N=M+(C?1:-1);C?N--:++N-1;)be!==S&&R.call(be,Ae,1),R.call(S,Ae,1);return S}mt.exports=k},92918:function(mt,q,_){var v=_(46962),M=_(19652),C=_(71152);function x(N,V){return C(M(N,V,v),N+"")}mt.exports=x},63989:function(mt,q,_){var v=_(13503),M=_(35234),C=_(46962),x=M?function(N,V){return M(N,"toString",{configurable:!0,enumerable:!1,value:v(V),writable:!0})}:C;mt.exports=x},75760:function(mt){function q(_,v,M){var C=-1,x=_.length;v<0&&(v=-v>x?0:x+v),M=M>x?x:M,M<0&&(M+=x),x=v>M?0:M-v>>>0,v>>>=0;for(var N=Array(x);++C=R){var xe=p?null:N(S);if(xe)return V(xe);fe=!1,K=x,Ae=new v}else Ae=p?[]:be;e:for(;++F=V?C:v(C,x,N)}mt.exports=M},20188:function(mt,q,_){var v=_(77945);function M(C){var x=new C.constructor(C.byteLength);return new v(x).set(new v(C)),x}mt.exports=M},32315:function(mt,q,_){mt=_.nmd(mt);var v=_(33152),M=q&&!q.nodeType&&q,C=M&&!0&&mt&&!mt.nodeType&&mt,x=C&&C.exports===M,N=x?v.Buffer:void 0,V=N?N.allocUnsafe:void 0;function R(k,S){if(S)return k.slice();var p=k.length,T=V?V(p):new k.constructor(p);return k.copy(T),T}mt.exports=R},27984:function(mt,q,_){var v=_(20188);function M(C,x){var N=x?v(C.buffer):C.buffer;return new C.constructor(N,C.byteOffset,C.byteLength)}mt.exports=M},78583:function(mt){var q=/\w*$/;function _(v){var M=new v.constructor(v.source,q.exec(v));return M.lastIndex=v.lastIndex,M}mt.exports=_},28757:function(mt,q,_){var v=_(91869),M=v?v.prototype:void 0,C=M?M.valueOf:void 0;function x(N){return C?Object(C.call(N)):{}}mt.exports=x},78358:function(mt,q,_){var v=_(20188);function M(C,x){var N=x?v(C.buffer):C.buffer;return new C.constructor(N,C.byteOffset,C.length)}mt.exports=M},47760:function(mt){function q(_,v){var M=-1,C=_.length;for(v||(v=Array(C));++M1?V[k-1]:void 0,p=k>2?V[2]:void 0;for(S=x.length>3&&typeof S=="function"?(k--,S):void 0,p&&M(V[0],V[1],p)&&(S=k<3?void 0:S,k=1),N=Object(N);++Rhe))return!1;var be=F.get(R),Ae=F.get(k);if(be&&Ae)return be==k&&Ae==R;var xe=-1,Se=!0,it=S&N?new v:void 0;for(F.set(R,k),F.set(k,R);++xe-1&&M%1==0&&M-1}mt.exports=M},54238:function(mt,q,_){var v=_(67971);function M(C,x){var N=this.__data__,V=v(N,C);return V<0?(++this.size,N.push([C,x])):N[V][1]=x,this}mt.exports=M},35365:function(mt,q,_){var v=_(76414),M=_(99746),C=_(40164);function x(){this.size=0,this.__data__={hash:new v,map:new(C||M),string:new v}}mt.exports=x},63765:function(mt,q,_){var v=_(89819);function M(C){var x=v(this,C).delete(C);return this.size-=x?1:0,x}mt.exports=M},12608:function(mt,q,_){var v=_(89819);function M(C){return v(this,C).get(C)}mt.exports=M},10203:function(mt,q,_){var v=_(89819);function M(C){return v(this,C).has(C)}mt.exports=M},11298:function(mt,q,_){var v=_(89819);function M(C,x){var N=v(this,C),V=N.size;return N.set(C,x),this.size+=N.size==V?0:1,this}mt.exports=M},83383:function(mt){function q(_){var v=-1,M=Array(_.size);return _.forEach(function(C,x){M[++v]=[x,C]}),M}mt.exports=q},26332:function(mt,q,_){var v=_(52858),M=500;function C(x){var N=v(x,function(R){return V.size===M&&V.clear(),R}),V=N.cache;return N}mt.exports=C},65294:function(mt,q,_){var v=_(73893),M=v(Object,"create");mt.exports=M},23730:function(mt,q,_){var v=_(31030),M=v(Object.keys,Object);mt.exports=M},97817:function(mt){function q(_){var v=[];if(_!=null)for(var M in Object(_))v.push(M);return v}mt.exports=q},52495:function(mt,q,_){mt=_.nmd(mt);var v=_(37675),M=q&&!q.nodeType&&q,C=M&&!0&&mt&&!mt.nodeType&&mt,x=C&&C.exports===M,N=x&&v.process,V=function(){try{var R=C&&C.require&&C.require("util").types;return R||N&&N.binding&&N.binding("util")}catch(k){}}();mt.exports=V},74702:function(mt){var q=Object.prototype,_=q.toString;function v(M){return _.call(M)}mt.exports=v},31030:function(mt){function q(_,v){return function(M){return _(v(M))}}mt.exports=q},19652:function(mt,q,_){var v=_(79628),M=Math.max;function C(x,N,V){return N=M(N===void 0?x.length-1:N,0),function(){for(var R=arguments,k=-1,S=M(R.length-N,0),p=Array(S);++k0){if(++x>=q)return arguments[0]}else x=0;return C.apply(void 0,arguments)}}mt.exports=M},31119:function(mt,q,_){var v=_(99746);function M(){this.__data__=new v,this.size=0}mt.exports=M},64399:function(mt){function q(_){var v=this.__data__,M=v.delete(_);return this.size=v.size,M}mt.exports=q},81897:function(mt){function q(_){return this.__data__.get(_)}mt.exports=q},90558:function(mt){function q(_){return this.__data__.has(_)}mt.exports=q},64841:function(mt,q,_){var v=_(99746),M=_(40164),C=_(52166),x=200;function N(V,R){var k=this.__data__;if(k instanceof v){var S=k.__data__;if(!M||S.length=S||Ne<0||Se&&Xt>=K}function ze(){var rt=M();if(Ee(rt))return Pe(rt);fe=setTimeout(ze,Me(rt))}function Pe(rt){return fe=void 0,it&&T?Xe(rt):(T=F=void 0,he)}function Re(){fe!==void 0&&clearTimeout(fe),Ae=0,T=be=F=fe=void 0}function je(){return fe===void 0?he:Pe(M())}function Ce(){var rt=M(),Ne=Ee(rt);if(T=arguments,F=this,be=rt,Ne){if(fe===void 0)return ft(be);if(Se)return clearTimeout(fe),fe=setTimeout(ze,S),Xe(be)}return fe===void 0&&(fe=setTimeout(ze,S)),he}return Ce.cancel=Re,Ce.flush=je,Ce}mt.exports=R},31876:function(mt,q,_){var v=_(70668),M=_(44140),C=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,x="\\u0300-\\u036f",N="\\ufe20-\\ufe2f",V="\\u20d0-\\u20ff",R=x+N+V,k="["+R+"]",S=RegExp(k,"g");function p(T){return T=M(T),T&&T.replace(C,v).replace(S,"")}mt.exports=p},43607:function(mt){function q(_,v){return _===v||_!==_&&v!==v}mt.exports=q},44231:function(mt,q,_){var v=_(89147);function M(C,x,N){var V=C==null?void 0:v(C,x);return V===void 0?N:V}mt.exports=M},46962:function(mt){function q(_){return _}mt.exports=q},13053:function(mt,q,_){var v=_(4977),M=_(93913),C=Object.prototype,x=C.hasOwnProperty,N=C.propertyIsEnumerable,V=v(function(){return arguments}())?v:function(R){return M(R)&&x.call(R,"callee")&&!N.call(R,"callee")};mt.exports=V},80744:function(mt){var q=Array.isArray;mt.exports=q},24665:function(mt,q,_){var v=_(9363),M=_(11156);function C(x){return x!=null&&M(x.length)&&!v(x)}mt.exports=C},41590:function(mt,q,_){var v=_(24665),M=_(93913);function C(x){return M(x)&&v(x)}mt.exports=C},26561:function(mt,q,_){var v=_(86756),M=_(93913),C="[object Boolean]";function x(N){return N===!0||N===!1||M(N)&&v(N)==C}mt.exports=x},57835:function(mt,q,_){mt=_.nmd(mt);var v=_(33152),M=_(55950),C=q&&!q.nodeType&&q,x=C&&!0&&mt&&!mt.nodeType&&mt,N=x&&x.exports===C,V=N?v.Buffer:void 0,R=V?V.isBuffer:void 0,k=R||M;mt.exports=k},98621:function(mt,q,_){var v=_(77295);function M(C,x){return v(C,x)}mt.exports=M},9363:function(mt,q,_){var v=_(86756),M=_(20816),C="[object AsyncFunction]",x="[object Function]",N="[object GeneratorFunction]",V="[object Proxy]";function R(k){if(!M(k))return!1;var S=v(k);return S==x||S==N||S==C||S==V}mt.exports=R},11156:function(mt){var q=9007199254740991;function _(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=q}mt.exports=_},41626:function(mt,q,_){var v=_(55005),M=_(38342),C=_(52495),x=C&&C.isMap,N=x?M(x):v;mt.exports=N},93544:function(mt){function q(_){return _==null}mt.exports=q},68868:function(mt,q,_){var v=_(86756),M=_(93913),C="[object Number]";function x(N){return typeof N=="number"||M(N)&&v(N)==C}mt.exports=x},20816:function(mt){function q(_){var v=typeof _;return _!=null&&(v=="object"||v=="function")}mt.exports=q},93913:function(mt){function q(_){return _!=null&&typeof _=="object"}mt.exports=q},19308:function(mt,q,_){var v=_(86756),M=_(49217),C=_(93913),x="[object Object]",N=Function.prototype,V=Object.prototype,R=N.toString,k=V.hasOwnProperty,S=R.call(Object);function p(T){if(!C(T)||v(T)!=x)return!1;var F=M(T);if(F===null)return!0;var K=k.call(F,"constructor")&&F.constructor;return typeof K=="function"&&K instanceof K&&R.call(K)==S}mt.exports=p},65226:function(mt,q,_){var v=_(38652),M=_(38342),C=_(52495),x=C&&C.isSet,N=x?M(x):v;mt.exports=N},7941:function(mt,q,_){var v=_(86756),M=_(80744),C=_(93913),x="[object String]";function N(V){return typeof V=="string"||!M(V)&&C(V)&&v(V)==x}mt.exports=N},45029:function(mt,q,_){var v=_(86756),M=_(93913),C="[object Symbol]";function x(N){return typeof N=="symbol"||M(N)&&v(N)==C}mt.exports=x},18397:function(mt,q,_){var v=_(10766),M=_(38342),C=_(52495),x=C&&C.isTypedArray,N=x?M(x):v;mt.exports=N},16513:function(mt){function q(_){return _===void 0}mt.exports=q},55451:function(mt,q,_){var v=_(63333),M=_(6019),C=_(24665);function x(N){return C(N)?v(N):M(N)}mt.exports=x},56730:function(mt,q,_){var v=_(63333),M=_(33988),C=_(24665);function x(N){return C(N)?v(N,!0):M(N)}mt.exports=x},89392:function(mt,q,_){mt=_.nmd(mt);var v;(function(){var M,C="4.17.21",x=200,N="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",V="Expected a function",R="Invalid `variable` option passed into `_.template`",k="__lodash_hash_undefined__",S=500,p="__lodash_placeholder__",T=1,F=2,K=4,he=1,fe=2,be=1,Ae=2,xe=4,Se=8,it=16,Xe=32,ft=64,Me=128,Ee=256,ze=512,Pe=30,Re="...",je=800,Ce=16,rt=1,Ne=2,Xt=3,Ft=1/0,lt=9007199254740991,Bt=17976931348623157e292,At=0/0,an=4294967295,Tt=an-1,Nn=an>>>1,mn=[["ary",Me],["bind",be],["bindKey",Ae],["curry",Se],["curryRight",it],["flip",ze],["partial",Xe],["partialRight",ft],["rearg",Ee]],zn="[object Arguments]",Kr="[object Array]",Ui="[object AsyncFunction]",go="[object Boolean]",gi="[object Date]",Mr="[object DOMException]",To="[object Error]",ms="[object Function]",De="[object GeneratorFunction]",Oo="[object Map]",$i="[object Number]",co="[object Null]",Vr="[object Object]",Ro="[object Promise]",Tn="[object Proxy]",nt="[object RegExp]",Ct="[object Set]",Ht="[object String]",hn="[object Symbol]",En="[object Undefined]",rn="[object WeakMap]",Jt="[object WeakSet]",Mt="[object ArrayBuffer]",Qt="[object DataView]",Dn="[object Float32Array]",sn="[object Float64Array]",wr="[object Int8Array]",jr="[object Int16Array]",xi="[object Int32Array]",Pr="[object Uint8Array]",Hi="[object Uint8ClampedArray]",Io="[object Uint16Array]",On="[object Uint32Array]",zr=/\b__p \+= '';/g,qr=/\b(__p \+=) '' \+/g,Wi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ir=/&(?:amp|lt|gt|quot|#39);/g,Jn=/[&<>"']/g,$t=RegExp(ir.source),Gt=RegExp(Jn.source),wn=/<%-([\s\S]+?)%>/g,Zn=/<%([\s\S]+?)%>/g,_r=/<%=([\s\S]+?)%>/g,qn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$n=/^\w*$/,jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,In=/[\\^$.*+?()[\]{}|]/g,vr=RegExp(In.source),Ur=/^\s+/,Ao=/\s/,Yt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xn=/\{\n\/\* \[wrapped with (.+)\] \*/,fr=/,? & /,Nr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,bi=/[()=,{}\[\]\/\s]/,Ei=/\\(\\)?/g,Yi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,di=/\w*$/,Wr=/^[-+]0x[0-9a-f]+$/i,Ni=/^0b[01]+$/i,kr=/^\[object .+?Constructor\]$/,Xr=/^0o[0-7]+$/i,yo=/^(?:0|[1-9]\d*)$/,ls=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sr=/($^)/,hs=/['\n\r\u2028\u2029\\]/g,ta="\\ud800-\\udfff",fi="\\u0300-\\u036f",Po="\\ufe20-\\ufe2f",mo="\\u20d0-\\u20ff",or=fi+Po+mo,Oi="\\u2700-\\u27bf",Wa="a-z\\xdf-\\xf6\\xf8-\\xff",Sa="\\xac\\xb1\\xd7\\xf7",xa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ml="\\u2000-\\u206f",wo=" \\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",_l="A-Z\\xc0-\\xd6\\xd8-\\xde",El="\\ufe0e\\ufe0f",Ai=Sa+xa+Ml+wo,to="['\u2019]",An="["+ta+"]",ri="["+Ai+"]",ao="["+or+"]",Mi="\\d+",_s="["+Oi+"]",Hs="["+Wa+"]",Hr="[^"+ta+Ai+Mi+Oi+Wa+_l+"]",Bi="\\ud83c[\\udffb-\\udfff]",fn="(?:"+ao+"|"+Bi+")",Ln="[^"+ta+"]",ur="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",xt="["+_l+"]",Et="\\u200d",et="(?:"+Hs+"|"+Hr+")",wt="(?:"+xt+"|"+Hr+")",Vt="(?:"+to+"(?:d|ll|m|re|s|t|ve))?",yn="(?:"+to+"(?:D|LL|M|RE|S|T|VE))?",yr=fn+"?",Yr="["+El+"]?",eo="(?:"+Et+"(?:"+[Ln,ur,dt].join("|")+")"+Yr+yr+")*",Zo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ii="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cs=Yr+yr+eo,ks="(?:"+[_s,ur,dt].join("|")+")"+Cs,ba="(?:"+[Ln+ao+"?",ao,ur,dt,An].join("|")+")",Zs=RegExp(to,"g"),No=RegExp(ao,"g"),js=RegExp(Bi+"(?="+Bi+")|"+ba+Cs,"g"),ga=RegExp([xt+"?"+Hs+"+"+Vt+"(?="+[ri,xt,"$"].join("|")+")",wt+"+"+yn+"(?="+[ri,xt+et,"$"].join("|")+")",xt+"?"+et+"+"+Vt,xt+"+"+yn,Ii,Zo,Mi,ks].join("|"),"g"),da=RegExp("["+Et+ta+or+El+"]"),Il=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Al=["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"],Js=-1,Ea={};Ea[Dn]=Ea[sn]=Ea[wr]=Ea[jr]=Ea[xi]=Ea[Pr]=Ea[Hi]=Ea[Io]=Ea[On]=!0,Ea[zn]=Ea[Kr]=Ea[Mt]=Ea[go]=Ea[Qt]=Ea[gi]=Ea[To]=Ea[ms]=Ea[Oo]=Ea[$i]=Ea[Vr]=Ea[nt]=Ea[Ct]=Ea[Ht]=Ea[rn]=!1;var gl={};gl[zn]=gl[Kr]=gl[Mt]=gl[Qt]=gl[go]=gl[gi]=gl[Dn]=gl[sn]=gl[wr]=gl[jr]=gl[xi]=gl[Oo]=gl[$i]=gl[Vr]=gl[nt]=gl[Ct]=gl[Ht]=gl[hn]=gl[Pr]=gl[Hi]=gl[Io]=gl[On]=!0,gl[To]=gl[ms]=gl[rn]=!1;var ds={\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"},Gi={"&":"&","<":"<",">":">",'"':""","'":"'"},Jo={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ps={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fs=parseFloat,Za=parseInt,Nu=typeof _.g=="object"&&_.g&&_.g.Object===Object&&_.g,Tc=typeof self=="object"&&self&&self.Object===Object&&self,Pc=Nu||Tc||Function("return this")(),tc=q&&!q.nodeType&&q,cc=tc&&!0&&mt&&!mt.nodeType&&mt,Uu=cc&&cc.exports===tc,Pn=Uu&&Nu.process,er=function(){try{var Aa=cc&&cc.require&&cc.require("util").types;return Aa||Pn&&Pn.binding&&Pn.binding("util")}catch(_u){}}(),Lr=er&&er.isArrayBuffer,Gr=er&&er.isDate,ai=er&&er.isMap,Qi=er&&er.isRegExp,Pi=er&&er.isSet,fs=er&&er.isTypedArray;function Ks(Aa,_u,Hl){switch(Hl.length){case 0:return Aa.call(_u);case 1:return Aa.call(_u,Hl[0]);case 2:return Aa.call(_u,Hl[0],Hl[1]);case 3:return Aa.call(_u,Hl[0],Hl[1],Hl[2])}return Aa.apply(_u,Hl)}function Ma(Aa,_u,Hl,Ou){for(var qu=-1,id=Aa==null?0:Aa.length;++qu-1}function Ia(Aa,_u,Hl){for(var Ou=-1,qu=Aa==null?0:Aa.length;++Ou-1;);return Hl}function yh(Aa,_u){for(var Hl=Aa.length;Hl--&&Xs(_u,Aa[Hl],0)>-1;);return Hl}function pd(Aa,_u){for(var Hl=Aa.length,Ou=0;Hl--;)Aa[Hl]===_u&&++Ou;return Ou}var Ed=Gu(ds),vh=Gu(Gi);function zd(Aa){return"\\"+Ps[Aa]}function Th(Aa,_u){return Aa==null?M:Aa[_u]}function gh(Aa){return da.test(Aa)}function Mf(Aa){return Il.test(Aa)}function gd(Aa){for(var _u,Hl=[];!(_u=Aa.next()).done;)Hl.push(_u.value);return Hl}function Yu(Aa){var _u=-1,Hl=Array(Aa.size);return Aa.forEach(function(Ou,qu){Hl[++_u]=[qu,Ou]}),Hl}function nh(Aa,_u){return function(Hl){return Aa(_u(Hl))}}function Nd(Aa,_u){for(var Hl=-1,Ou=Aa.length,qu=0,id=[];++Hl-1}function te(_e,Qe){var un=this.__data__,Zr=Lu(un,_e);return Zr<0?(++this.size,un.push([_e,Qe])):un[Zr][1]=Qe,this}Zt.prototype.clear=tn,Zt.prototype.delete=kn,Zt.prototype.get=xr,Zt.prototype.has=G,Zt.prototype.set=te;function ne(_e){var Qe=-1,un=_e==null?0:_e.length;for(this.clear();++Qe=Qe?_e:Qe)),_e}function Id(_e,Qe,un,Zr,ss,ya){var Bl,du=Qe&T,Ju=Qe&F,Nh=Qe&K;if(un&&(Bl=ss?un(_e,Zr,ss,ya):un(_e)),Bl!==M)return Bl;if(!Ul(_e))return _e;var Fh=Ue(_e);if(Fh){if(Bl=Ti(_e),!du)return gr(_e,Bl)}else{var od=jl(_e),kf=od==ms||od==De;if(lr(_e))return kt(_e,du);if(od==Vr||od==zn||kf&&!ss){if(Bl=Ju||kf?{}:rs(_e),!du)return Ju?zi(_e,th(Bl,_e)):wi(_e,Zu(Bl,_e))}else{if(!gl[od])return ss?_e:{};Bl=ys(_e,od,du)}}ya||(ya=new Si);var dp=ya.get(_e);if(dp)return dp;ya.set(_e,Bl),Fp(_e)?_e.forEach(function(hg){Bl.add(Id(hg,Qe,un,hg,_e,ya))}):kc(_e)&&_e.forEach(function(hg,Kp){Bl.set(Kp,Id(hg,Qe,un,Kp,_e,ya))});var Gp=Nh?Ju?Fn:Yl:Ju?Z0:bm,Xg=Fh?M:Gp(_e);return qa(Xg||_e,function(hg,Kp){Xg&&(Kp=hg,hg=_e[Kp]),lu(Bl,Kp,Id(hg,Qe,un,Kp,_e,ya))}),Bl}function Vc(_e){var Qe=bm(_e);return function(un){return wc(un,_e,Qe)}}function wc(_e,Qe,un){var Zr=un.length;if(_e==null)return!Zr;for(_e=Jh(_e);Zr--;){var ss=un[Zr],ya=Qe[ss],Bl=_e[ss];if(Bl===M&&!(ss in _e)||!ya(Bl))return!1}return!0}function of(_e,Qe,un){if(typeof _e!="function")throw new rf(V);return Qa(function(){_e.apply(M,un)},Qe)}function Od(_e,Qe,un,Zr){var ss=-1,ya=ju,Bl=!0,du=_e.length,Ju=[],Nh=Qe.length;if(!du)return Ju;un&&(Qe=Ha(Qe,kh(un))),Zr?(ya=Ia,Bl=!1):Qe.length>=x&&(ya=yc,Bl=!1,Qe=new dr(Qe));e:for(;++ssss?0:ss+un),Zr=Zr===M||Zr>ss?ss:oc(Zr),Zr<0&&(Zr+=ss),Zr=un>Zr?0:Xh(Zr);un0&&un(du)?Qe>1?cp(du,Qe-1,un,Zr,ss):tl(ss,du):Zr||(ss[ss.length]=du)}return ss}var zc=ji(),_c=ji(!0);function ah(_e,Qe){return _e&&zc(_e,Qe,bm)}function ch(_e,Qe){return _e&&_c(_e,Qe,bm)}function Hh(_e,Qe){return Oa(Qe,function(un){return Ra(_e[un])})}function Cc(_e,Qe){Qe=We(Qe,_e);for(var un=0,Zr=Qe.length;_e!=null&&unQe}function ko(_e,Qe){return _e!=null&&ff.call(_e,Qe)}function bg(_e,Qe){return _e!=null&&Qe in Jh(_e)}function xp(_e,Qe,un){return _e>=Jf(Qe,un)&&_e=120&&Fh.length>=120)?new dr(Bl&&Fh):M}Fh=_e[0];var od=-1,kf=du[0];e:for(;++od-1;)du!==_e&&vg.call(du,Ju,1),vg.call(_e,Ju,1);return _e}function dg(_e,Qe){for(var un=_e?Qe.length:0,Zr=un-1;un--;){var ss=Qe[un];if(un==Zr||ss!==ya){var ya=ss;Ol(ss)?vg.call(_e,ss,1):Sm(_e,ss)}}return _e}function F0(_e,Qe){return _e+kp(_p()*(Qe-_e+1))}function Gf(_e,Qe,un,Zr){for(var ss=-1,ya=yf(Bh((Qe-_e)/(un||1)),0),Bl=Hl(ya);ya--;)Bl[Zr?ya:++ss]=_e,_e+=un;return Bl}function gp(_e,Qe){var un="";if(!_e||Qe<1||Qe>lt)return un;do Qe%2&&(un+=_e),Qe=kp(Qe/2),Qe&&(_e+=_e);while(Qe);return un}function pf(_e,Qe){return hd(Fl(_e,Qe,ev),_e+"")}function v0(_e){return ja(Hv(_e))}function y0(_e,Qe){var un=Hv(_e);return pt(un,Oh(Qe,0,un.length))}function tm(_e,Qe,un,Zr){if(!Ul(_e))return _e;Qe=We(Qe,_e);for(var ss=-1,ya=Qe.length,Bl=ya-1,du=_e;du!=null&&++ssss?0:ss+Qe),un=un>ss?ss:un,un<0&&(un+=ss),ss=Qe>un?0:un-Qe>>>0,Qe>>>=0;for(var ya=Hl(ss);++Zr>>1,Bl=_e[ya];Bl!==null&&!fg(Bl)&&(un?Bl<=Qe:Bl=x){var Nh=Qe?null:Bo(_e);if(Nh)return df(Nh);Bl=!1,ss=yc,Ju=new dr}else Ju=Qe?[]:du;e:for(;++Zr=Zr?_e:Bd(_e,Qe,un)}var It=yg||function(_e){return Pc.clearTimeout(_e)};function kt(_e,Qe){if(Qe)return _e.slice();var un=_e.length,Zr=Wu?Wu(un):new _e.constructor(un);return _e.copy(Zr),Zr}function Ot(_e){var Qe=new _e.constructor(_e.byteLength);return new $p(Qe).set(new $p(_e)),Qe}function Kt(_e,Qe){var un=Qe?Ot(_e.buffer):_e.buffer;return new _e.constructor(un,_e.byteOffset,_e.byteLength)}function en(_e){var Qe=new _e.constructor(_e.source,di.exec(_e));return Qe.lastIndex=_e.lastIndex,Qe}function pn(_e){return Zh?Jh(Zh.call(_e)):{}}function Wn(_e,Qe){var un=Qe?Ot(_e.buffer):_e.buffer;return new _e.constructor(un,_e.byteOffset,_e.length)}function ar(_e,Qe){if(_e!==Qe){var un=_e!==M,Zr=_e===null,ss=_e===_e,ya=fg(_e),Bl=Qe!==M,du=Qe===null,Ju=Qe===Qe,Nh=fg(Qe);if(!du&&!Nh&&!ya&&_e>Qe||ya&&Bl&&Ju&&!du&&!Nh||Zr&&Bl&&Ju||!un&&Ju||!ss)return 1;if(!Zr&&!ya&&!Nh&&_e=du)return Ju;var Nh=un[Zr];return Ju*(Nh=="desc"?-1:1)}}return _e.index-Qe.index}function mr(_e,Qe,un,Zr){for(var ss=-1,ya=_e.length,Bl=un.length,du=-1,Ju=Qe.length,Nh=yf(ya-Bl,0),Fh=Hl(Ju+Nh),od=!Zr;++du1?un[ss-1]:M,Bl=ss>2?un[2]:M;for(ya=_e.length>3&&typeof ya=="function"?(ss--,ya):M,Bl&&ua(un[0],un[1],Bl)&&(ya=ss<3?M:ya,ss=1),Qe=Jh(Qe);++Zr-1?ss[ya?Qe[Bl]:Bl]:M}}function Gn(_e){return ia(function(Qe){var un=Qe.length,Zr=un,ss=ae.prototype.thru;for(_e&&Qe.reverse();Zr--;){var ya=Qe[Zr];if(typeof ya!="function")throw new rf(V);if(ss&&!Bl&&Qr(ya)=="wrapper")var Bl=new ae([],!0)}for(Zr=Bl?Zr:un;++Zr1&&xm.reverse(),Fh&&Judu))return!1;var Nh=ya.get(_e),Fh=ya.get(Qe);if(Nh&&Fh)return Nh==Qe&&Fh==_e;var od=-1,kf=!0,dp=un&fe?new dr:M;for(ya.set(_e,Qe),ya.set(Qe,_e);++od1?"& ":"")+Qe[Zr],Qe=Qe.join(un>2?", ":" "),_e.replace(Yt,`{ +/* [wrapped with `+Qe+`] */ +`)}function za(_e){return Ue(_e)||ye(_e)||!!(uf&&_e&&_e[uf])}function Ol(_e,Qe){var un=typeof _e;return Qe=Qe==null?lt:Qe,!!Qe&&(un=="number"||un!="symbol"&&yo.test(_e))&&_e>-1&&_e%1==0&&_e0){if(++Qe>=je)return arguments[0]}else Qe=0;return _e.apply(M,arguments)}}function pt(_e,Qe){var un=-1,Zr=_e.length,ss=Zr-1;for(Qe=Qe===M?Zr:Qe;++un1?_e[Qe-1]:M;return un=typeof un=="function"?(_e.pop(),un):M,dc(_e,un)});function Dg(_e){var Qe=zo(_e);return Qe.__chain__=!0,Qe}function J0(_e,Qe){return Qe(_e),_e}function jm(_e,Qe){return Qe(_e)}var Os=ia(function(_e){var Qe=_e.length,un=Qe?_e[0]:0,Zr=this.__wrapped__,ss=function(ya){return Rh(ya,_e)};return Qe>1||this.__actions__.length||!(Zr instanceof me)||!Ol(un)?this.thru(ss):(Zr=Zr.slice(un,+un+(Qe?1:0)),Zr.__actions__.push({func:jm,args:[ss],thisArg:M}),new ae(Zr,this.__chain__).thru(function(ya){return Qe&&!ya.length&&ya.push(M),ya}))});function fv(){return Dg(this)}function ng(){return new ae(this.value(),this.__chain__)}function B0(){this.__values__===M&&(this.__values__=xu(this.value()));var _e=this.__index__>=this.__values__.length,Qe=_e?M:this.__values__[this.__index__++];return{done:_e,value:Qe}}function Le(){return this}function d(_e){for(var Qe,un=this;un instanceof U;){var Zr=xo(un);Zr.__index__=0,Zr.__values__=M,Qe?ss.__wrapped__=Zr:Qe=Zr;var ss=Zr;un=un.__wrapped__}return ss.__wrapped__=_e,Qe}function y(){var _e=this.__wrapped__;if(_e instanceof me){var Qe=_e;return this.__actions__.length&&(Qe=new me(this)),Qe=Qe.reverse(),Qe.__actions__.push({func:jm,args:[Lh],thisArg:M}),new ae(Qe,this.__chain__)}return this.thru(Lh)}function E(){return Q(this.__wrapped__,this.__actions__)}var Z=ei(function(_e,Qe,un){ff.call(_e,un)?++_e[un]:Qc(_e,un,1)});function re(_e,Qe,un){var Zr=Ue(_e)?Dl:Ld;return un&&ua(_e,Qe,un)&&(Qe=M),Zr(_e,vo(Qe,3))}function pe(_e,Qe){var un=Ue(_e)?Oa:Qf;return un(_e,vo(Qe,3))}var Ie=Jr(ku),Je=Jr(wh);function zt(_e,Qe){return cp(Mo(_e,Qe),1)}function ln(_e,Qe){return cp(Mo(_e,Qe),Ft)}function Kn(_e,Qe,un){return un=un===M?1:oc(un),cp(Mo(_e,Qe),un)}function pr(_e,Qe){var un=Ue(_e)?qa:Yh;return un(_e,vo(Qe,3))}function si(_e,Qe){var un=Ue(_e)?rl:Zd;return un(_e,vo(Qe,3))}var yi=ei(function(_e,Qe,un){ff.call(_e,un)?_e[un].push(Qe):Qc(_e,un,[Qe])});function Do(_e,Qe,un,Zr){_e=_t(_e)?_e:Hv(_e),un=un&&!Zr?oc(un):0;var ss=_e.length;return un<0&&(un=yf(ss+un,0)),Og(_e)?un<=ss&&_e.indexOf(Qe,un)>-1:!!ss&&Xs(_e,Qe,un)>-1}var Co=pf(function(_e,Qe,un){var Zr=-1,ss=typeof Qe=="function",ya=_t(_e)?Hl(_e.length):[];return Yh(_e,function(Bl){ya[++Zr]=ss?Ks(Qe,Bl,un):Uf(Bl,Qe,un)}),ya}),Uo=ei(function(_e,Qe,un){Qc(_e,un,Qe)});function Mo(_e,Qe){var un=Ue(_e)?Ha:Jg;return un(_e,vo(Qe,3))}function oo(_e,Qe,un,Zr){return _e==null?[]:(Ue(Qe)||(Qe=Qe==null?[]:[Qe]),un=Zr?M:un,Ue(un)||(un=un==null?[]:[un]),m0(_e,Qe,un))}var Vs=ei(function(_e,Qe,un){_e[un?0:1].push(Qe)},function(){return[[],[]]});function Ta(_e,Qe,un){var Zr=Ue(_e)?cu:pc,ss=arguments.length<3;return Zr(_e,vo(Qe,4),un,ss,Yh)}function cl(_e,Qe,un){var Zr=Ue(_e)?Xl:pc,ss=arguments.length<3;return Zr(_e,vo(Qe,4),un,ss,Zd)}function ou(_e,Qe){var un=Ue(_e)?Oa:Qf;return un(_e,hh(vo(Qe,3)))}function Tu(_e){var Qe=Ue(_e)?ja:v0;return Qe(_e)}function Cu(_e,Qe,un){(un?ua(_e,Qe,un):Qe===M)?Qe=1:Qe=oc(Qe);var Zr=Ue(_e)?Ba:y0;return Zr(_e,Qe)}function Hc(_e){var Qe=Ue(_e)?zl:L0;return Qe(_e)}function bu(_e){if(_e==null)return 0;if(_t(_e))return Og(_e)?Bf(_e):_e.length;var Qe=jl(_e);return Qe==Oo||Qe==Ct?_e.size:Am(_e).length}function Dc(_e,Qe,un){var Zr=Ue(_e)?yu:Qm;return un&&ua(_e,Qe,un)&&(Qe=M),Zr(_e,vo(Qe,3))}var Sn=pf(function(_e,Qe){if(_e==null)return[];var un=Qe.length;return un>1&&ua(_e,Qe[0],Qe[1])?Qe=[]:un>2&&ua(Qe[0],Qe[1],Qe[2])&&(Qe=[Qe[0]]),m0(_e,cp(Qe,1),[])}),rr=Zf||function(){return Pc.Date.now()};function Dr(_e,Qe){if(typeof Qe!="function")throw new rf(V);return _e=oc(_e),function(){if(--_e<1)return Qe.apply(this,arguments)}}function ni(_e,Qe,un){return Qe=un?M:Qe,Qe=_e&&Qe==null?_e.length:Qe,ns(_e,Me,M,M,M,M,Qe)}function so(_e,Qe){var un;if(typeof Qe!="function")throw new rf(V);return _e=oc(_e),function(){return--_e>0&&(un=Qe.apply(this,arguments)),_e<=1&&(Qe=M),un}}var Ws=pf(function(_e,Qe,un){var Zr=be;if(un.length){var ss=Nd(un,qi(Ws));Zr|=Xe}return ns(_e,Zr,Qe,un,ss)}),La=pf(function(_e,Qe,un){var Zr=be|Ae;if(un.length){var ss=Nd(un,qi(La));Zr|=Xe}return ns(Qe,Zr,_e,un,ss)});function Is(_e,Qe,un){Qe=un?M:Qe;var Zr=ns(_e,Se,M,M,M,M,M,Qe);return Zr.placeholder=Is.placeholder,Zr}function nl(_e,Qe,un){Qe=un?M:Qe;var Zr=ns(_e,it,M,M,M,M,M,Qe);return Zr.placeholder=nl.placeholder,Zr}function tu(_e,Qe,un){var Zr,ss,ya,Bl,du,Ju,Nh=0,Fh=!1,od=!1,kf=!0;if(typeof _e!="function")throw new rf(V);Qe=Ad(Qe)||0,Ul(un)&&(Fh=!!un.leading,od="maxWait"in un,ya=od?yf(Ad(un.maxWait)||0,Qe):ya,kf="trailing"in un?!!un.trailing:kf);function dp(tv){var b1=Zr,hy=ss;return Zr=ss=M,Nh=tv,Bl=_e.apply(hy,b1),Bl}function Gp(tv){return Nh=tv,du=Qa(Kp,Qe),Fh?dp(tv):Bl}function Xg(tv){var b1=tv-Ju,hy=tv-Nh,Tx=Qe-b1;return od?Jf(Tx,ya-hy):Tx}function hg(tv){var b1=tv-Ju,hy=tv-Nh;return Ju===M||b1>=Qe||b1<0||od&&hy>=ya}function Kp(){var tv=rr();if(hg(tv))return xm(tv);du=Qa(Kp,Xg(tv))}function xm(tv){return du=M,kf&&Zr?dp(tv):(Zr=ss=M,Bl)}function c1(){du!==M&&It(du),Nh=0,Zr=Ju=ss=du=M}function Bv(){return du===M?Bl:xm(rr())}function h1(){var tv=rr(),b1=hg(tv);if(Zr=arguments,ss=this,Ju=tv,b1){if(du===M)return Gp(Ju);if(od)return It(du),du=Qa(Kp,Qe),dp(Ju)}return du===M&&(du=Qa(Kp,Qe)),Bl}return h1.cancel=c1,h1.flush=Bv,h1}var Ds=pf(function(_e,Qe){return of(_e,1,Qe)}),xc=pf(function(_e,Qe,un){return of(_e,Ad(Qe)||0,un)});function Gh(_e){return ns(_e,ze)}function Ph(_e,Qe){if(typeof _e!="function"||Qe!=null&&typeof Qe!="function")throw new rf(V);var un=function(){var Zr=arguments,ss=Qe?Qe.apply(this,Zr):Zr[0],ya=un.cache;if(ya.has(ss))return ya.get(ss);var Bl=_e.apply(this,Zr);return un.cache=ya.set(ss,Bl)||ya,Bl};return un.cache=new(Ph.Cache||ne),un}Ph.Cache=ne;function hh(_e){if(typeof _e!="function")throw new rf(V);return function(){var Qe=arguments;switch(Qe.length){case 0:return!_e.call(this);case 1:return!_e.call(this,Qe[0]);case 2:return!_e.call(this,Qe[0],Qe[1]);case 3:return!_e.call(this,Qe[0],Qe[1],Qe[2])}return!_e.apply(this,Qe)}}function Kh(_e){return so(2,_e)}var tp=Fe(function(_e,Qe){Qe=Qe.length==1&&Ue(Qe[0])?Ha(Qe[0],kh(vo())):Ha(cp(Qe,1),kh(vo()));var un=Qe.length;return pf(function(Zr){for(var ss=-1,ya=Jf(Zr.length,un);++ss=Qe}),ye=Pd(function(){return arguments}())?Pd:function(_e){return mu(_e)&&ff.call(_e,"callee")&&!yp.call(_e,"callee")},Ue=Hl.isArray,gt=Lr?kh(Lr):ep;function _t(_e){return _e!=null&&ll(_e.length)&&!Ra(_e)}function Ut(_e){return mu(_e)&&_t(_e)}function bn(_e){return _e===!0||_e===!1||mu(_e)&&qh(_e)==go}var lr=Mp||cy,ti=Gr?kh(Gr):wp;function _i(_e){return mu(_e)&&_e.nodeType===1&&!dh(_e)}function po(_e){if(_e==null)return!0;if(_t(_e)&&(Ue(_e)||typeof _e=="string"||typeof _e.splice=="function"||lr(_e)||_m(_e)||ye(_e)))return!_e.length;var Qe=jl(_e);if(Qe==Oo||Qe==Ct)return!_e.size;if(Rl(_e))return!Am(_e).length;for(var un in _e)if(ff.call(_e,un))return!1;return!0}function Yo(_e,Qe){return eg(_e,Qe)}function qo(_e,Qe,un){un=typeof un=="function"?un:M;var Zr=un?un(_e,Qe):M;return Zr===M?eg(_e,Qe,M,un):!!Zr}function pa(_e){if(!mu(_e))return!1;var Qe=qh(_e);return Qe==To||Qe==Mr||typeof _e.message=="string"&&typeof _e.name=="string"&&!dh(_e)}function Pa(_e){return typeof _e=="number"&&bd(_e)}function Ra(_e){if(!Ul(_e))return!1;var Qe=qh(_e);return Qe==ms||Qe==De||Qe==Ui||Qe==Tn}function Gl(_e){return typeof _e=="number"&&_e==oc(_e)}function ll(_e){return typeof _e=="number"&&_e>-1&&_e%1==0&&_e<=lt}function Ul(_e){var Qe=typeof _e;return _e!=null&&(Qe=="object"||Qe=="function")}function mu(_e){return _e!=null&&typeof _e=="object"}var kc=ai?kh(ai):If;function kd(_e,Qe){return _e===Qe||Xd(_e,Qe,Ms(Qe))}function Ud(_e,Qe,un){return un=typeof un=="function"?un:M,Xd(_e,Qe,Ms(Qe),un)}function Gd(_e){return _d(_e)&&_e!=+_e}function ed(_e){if(ru(_e))throw new qu(N);return Sf(_e)}function td(_e){return _e===null}function Jd(_e){return _e==null}function _d(_e){return typeof _e=="number"||mu(_e)&&qh(_e)==$i}function dh(_e){if(!mu(_e)||qh(_e)!=Vr)return!1;var Qe=uh(_e);if(Qe===null)return!0;var un=ff.call(Qe,"constructor")&&Qe.constructor;return typeof un=="function"&&un instanceof un&&Dh.call(un)==vd}var wf=Qi?kh(Qi):Ag;function Ef(_e){return Gl(_e)&&_e>=-lt&&_e<=lt}var Fp=Pi?kh(Pi):rm;function Og(_e){return typeof _e=="string"||!Ue(_e)&&mu(_e)&&qh(_e)==Ht}function fg(_e){return typeof _e=="symbol"||mu(_e)&&qh(_e)==hn}var _m=fs?kh(fs):Wf;function z0(_e){return _e===M}function $0(_e){return mu(_e)&&jl(_e)==rn}function dm(_e){return mu(_e)&&qh(_e)==Jt}var Mm=ts(l0),Bu=ts(function(_e,Qe){return _e<=Qe});function xu(_e){if(!_e)return[];if(_t(_e))return Og(_e)?xd(_e):gr(_e);if(sp&&_e[sp])return gd(_e[sp]());var Qe=jl(_e),un=Qe==Oo?Yu:Qe==Ct?df:Hv;return un(_e)}function eh(_e){if(!_e)return _e===0?_e:0;if(_e=Ad(_e),_e===Ft||_e===-Ft){var Qe=_e<0?-1:1;return Qe*Bt}return _e===_e?_e:0}function oc(_e){var Qe=eh(_e),un=Qe%1;return Qe===Qe?un?Qe-un:Qe:0}function Xh(_e){return _e?Oh(oc(_e),0,an):0}function Ad(_e){if(typeof _e=="number")return _e;if(fg(_e))return At;if(Ul(_e)){var Qe=typeof _e.valueOf=="function"?_e.valueOf():_e;_e=Ul(Qe)?Qe+"":Qe}if(typeof _e!="string")return _e===0?_e:+_e;_e=ad(_e);var un=Ni.test(_e);return un||Xr.test(_e)?Za(_e.slice(2),un?2:8):Wr.test(_e)?At:+_e}function hf(_e){return Tr(_e,Z0(_e))}function Qd(_e){return _e?Oh(oc(_e),-lt,lt):_e===0?_e:0}function nd(_e){return _e==null?"":Np(_e)}var $f=li(function(_e,Qe){if(Rl(Qe)||_t(Qe)){Tr(Qe,bm(Qe),_e);return}for(var un in Qe)ff.call(Qe,un)&&lu(_e,un,Qe[un])}),Tf=li(function(_e,Qe){Tr(Qe,Z0(Qe),_e)}),np=li(function(_e,Qe,un,Zr){Tr(Qe,Z0(Qe),_e,Zr)}),Ip=li(function(_e,Qe,un,Zr){Tr(Qe,bm(Qe),_e,Zr)}),Eg=ia(Rh);function nm(_e,Qe){var un=L(_e);return Qe==null?un:Zu(un,Qe)}var b0=pf(function(_e,Qe){_e=Jh(_e);var un=-1,Zr=Qe.length,ss=Zr>2?Qe[2]:M;for(ss&&ua(Qe[0],Qe[1],ss)&&(Zr=1);++un1),ya}),Tr(_e,Fn(_e),un),Zr&&(un=Id(un,T|F|K,ca));for(var ss=Qe.length;ss--;)Sm(un,Qe[ss]);return un});function ov(_e,Qe){return x0(_e,hh(vo(Qe)))}var qv=ia(function(_e,Qe){return _e==null?{}:cm(_e,Qe)});function x0(_e,Qe){if(_e==null)return{};var un=Ha(Fn(_e),function(Zr){return[Zr]});return Qe=vo(Qe),em(_e,un,function(Zr,ss){return Qe(Zr,ss[0])})}function n_(_e,Qe,un){Qe=We(Qe,_e);var Zr=-1,ss=Qe.length;for(ss||(ss=1,_e=M);++ZrQe){var Zr=_e;_e=Qe,Qe=Zr}if(un||_e%1||Qe%1){var ss=_p();return Jf(_e+ss*(Qe-_e+Fs("1e-"+((ss+"").length-1))),Qe)}return F0(_e,Qe)}var _1=br(function(_e,Qe,un){return Qe=Qe.toLowerCase(),_e+(un?a1(Qe):Qe)});function a1(_e){return Cy(nd(_e).toLowerCase())}function Fv(_e){return _e=nd(_e),_e&&_e.replace(ls,Ed).replace(No,"")}function Z1(_e,Qe,un){_e=nd(_e),Qe=Np(Qe);var Zr=_e.length;un=un===M?Zr:Oh(oc(un),0,Zr);var ss=un;return un-=Qe.length,un>=0&&_e.slice(un,ss)==Qe}function L_(_e){return _e=nd(_e),_e&&Gt.test(_e)?_e.replace(Jn,vh):_e}function Cv(_e){return _e=nd(_e),_e&&vr.test(_e)?_e.replace(In,"\\$&"):_e}var r_=br(function(_e,Qe,un){return _e+(un?"-":"")+Qe.toLowerCase()}),P_=br(function(_e,Qe,un){return _e+(un?" ":"")+Qe.toLowerCase()}),l1=bo("toLowerCase");function i_(_e,Qe,un){_e=nd(_e),Qe=oc(Qe);var Zr=Qe?Bf(_e):0;if(!Qe||Zr>=Qe)return _e;var ss=(Qe-Zr)/2;return Ki(kp(ss),un)+_e+Ki(Bh(ss),un)}function $b(_e,Qe,un){_e=nd(_e),Qe=oc(Qe);var Zr=Qe?Bf(_e):0;return Qe&&Zr>>0,un?(_e=nd(_e),_e&&(typeof Qe=="string"||Qe!=null&&!wf(Qe))&&(Qe=Np(Qe),!Qe&&gh(_e))?ct(xd(_e),0,un):_e.split(Qe,un)):[]}var u2=br(function(_e,Qe,un){return _e+(un?" ":"")+Cy(Qe)});function wy(_e,Qe,un){return _e=nd(_e),un=un==null?0:Oh(oc(un),0,_e.length),Qe=Np(Qe),_e.slice(un,un+Qe.length)==Qe}function M_(_e,Qe,un){var Zr=zo.templateSettings;un&&ua(_e,Qe,un)&&(Qe=M),_e=nd(_e),Qe=np({},Qe,Zr,no);var ss=np({},Qe.imports,Zr.imports,no),ya=bm(ss),Bl=hc(ss,ya),du,Ju,Nh=0,Fh=Qe.interpolate||Sr,od="__p += '",kf=Rf((Qe.escape||Sr).source+"|"+Fh.source+"|"+(Fh===_r?Yi:Sr).source+"|"+(Qe.evaluate||Sr).source+"|$","g"),dp="//# sourceURL="+(ff.call(Qe,"sourceURL")?(Qe.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Js+"]")+` +`;_e.replace(kf,function(hg,Kp,xm,c1,Bv,h1){return xm||(xm=c1),od+=_e.slice(Nh,h1).replace(hs,zd),Kp&&(du=!0,od+=`' + +__e(`+Kp+`) + +'`),Bv&&(Ju=!0,od+=`'; +`+Bv+`; +__p += '`),xm&&(od+=`' + +((__t = (`+xm+`)) == null ? '' : __t) + +'`),Nh=h1+hg.length,hg}),od+=`'; +`;var Gp=ff.call(Qe,"variable")&&Qe.variable;if(!Gp)od=`with (obj) { +`+od+` +} +`;else if(bi.test(Gp))throw new qu(R);od=(Ju?od.replace(zr,""):od).replace(qr,"$1").replace(Wi,"$1;"),od="function("+(Gp||"obj")+`) { +`+(Gp?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(du?", __e = _.escape":"")+(Ju?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+Dd+`return __p -}`;var pp=Py(function(){return Vd(ia,If+"return "+Dd).apply(I,Tl)});if(pp.source=Dd,Sm(pp))throw pp;return pp}function A_(ue){return Ph(ue).toLowerCase()}function sC(ue){return Ph(ue).toUpperCase()}function fx(ue,Fe,Zt){if(ue=Ph(ue),ue&&(Zt||Fe===I))return Kd(ue);if(!ue||!(Fe=yp(Fe)))return ue;var kr=uh(ue),Vo=uh(Fe),ia=dd(kr,Vo),Tl=vd(kr,Vo)+1;return It(kr,ia,Tl).join("")}function LS(ue,Fe,Zt){if(ue=Ph(ue),ue&&(Zt||Fe===I))return ue.slice(0,Th(ue)+1);if(!ue||!(Fe=yp(Fe)))return ue;var kr=uh(ue),Vo=vd(kr,uh(Fe))+1;return It(kr,0,Vo).join("")}function a1(ue,Fe,Zt){if(ue=Ph(ue),ue&&(Zt||Fe===I))return ue.replace(ao,"");if(!ue||!(Fe=yp(Fe)))return ue;var kr=uh(ue),Vo=dd(kr,uh(Fe));return It(kr,Vo).join("")}function Hv(ue,Fe){var Zt=Ce,kr=xe;if(hg(Fe)){var Vo="separator"in Fe?Fe.separator:Vo;Zt="length"in Fe?vc(Fe.length):Zt,kr="omission"in Fe?yp(Fe.omission):kr}ue=Ph(ue);var ia=ue.length;if(nd(ue)){var Tl=uh(ue);ia=Tl.length}if(Zt>=ia)return ue;var Vl=Zt-Nf(kr);if(Vl<1)return kr;var Mu=Tl?It(Tl,0,Vl).join(""):ue.slice(0,Vl);if(Vo===I)return Mu+kr;if(Tl&&(Vl+=Mu.length-Vl),mv(Vo)){if(ue.slice(Vl).search(Vo)){var rd,sd=Mu;for(Vo.global||(Vo=Vf(Vo.source,Ph(Qr.exec(Vo))+"g")),Vo.lastIndex=0;rd=Vo.exec(sd);)var Dd=rd.index;Mu=Mu.slice(0,Dd===I?Vl:Dd)}}else if(ue.indexOf(yp(Vo),Vl)!=Vl){var Yh=Mu.lastIndexOf(Vo);Yh>-1&&(Mu=Mu.slice(0,Yh))}return Mu+kr}function Z1(ue){return ue=Ph(ue),ue&&$n.test(ue)?ue.replace(xo,yu):ue}var Av=Pr(function(ue,Fe,Zt){return ue+(Zt?" ":"")+Fe.toUpperCase()}),G1=zs("toUpperCase");function I_(ue,Fe,Zt){return ue=Ph(ue),Fe=Zt?I:Fe,Fe===I?Pf(ue)?Fu(ue):Eu(ue):ue.match(Fe)||[]}var Py=Zh(function(ue,Fe){try{return ga(ue,I,Fe)}catch(Zt){return Sm(Zt)?Zt:new Vu(Zt)}}),K1=Sr(function(ue,Fe){return dl(Fe,function(Zt){Zt=Or(Zt),Td(ue,Zt,la(ue[Zt],ue))}),ue});function C1(ue){var Fe=ue==null?0:ue.length,Zt=dr();return ue=Fe?Qa(ue,function(kr){if(typeof kr[1]!="function")throw new Uh(N);return[Zt(kr[0]),kr[1]]}):[],Zh(function(kr){for(var Vo=-1;++VoHe)return[];var Zt=zt,kr=Ff(ue,zt);Fe=dr(Fe),ue-=zt;for(var Vo=zd(kr,Fe);++Zt0||Fe<0)?new se(Zt):(ue<0?Zt=Zt.takeRight(-ue):ue&&(Zt=Zt.drop(ue)),Fe!==I&&(Fe=vc(Fe),Zt=Fe<0?Zt.dropRight(-Fe):Zt.take(Fe-ue)),Zt)},se.prototype.takeRightWhile=function(ue){return this.reverse().takeWhile(ue).reverse()},se.prototype.toArray=function(){return this.take(zt)},ld(se.prototype,function(ue,Fe){var Zt=/^(?:filter|find|map|reject)|While$/.test(Fe),kr=/^(?:head|last)$/.test(Fe),Vo=Io[kr?"take"+(Fe=="last"?"Right":""):Fe],ia=kr||/^find/.test(Fe);Vo&&(Io.prototype[Fe]=function(){var Tl=this.__wrapped__,Vl=kr?[1]:arguments,Mu=Tl instanceof se,rd=Vl[0],sd=Mu||mf(Tl),Dd=function(kg){var tm=Vo.apply(Io,el([kg],Vl));return kr&&Yh?tm[0]:tm};sd&&Zt&&typeof rd=="function"&&rd.length!=1&&(Mu=sd=!1);var Yh=this.__chain__,If=!!this.__actions__.length,fp=ia&&!Yh,pp=Mu&&!If;if(!ia&&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?kr?zp.value()[0]:zp.value():zp)})}),dl(["pop","push","shift","sort","splice","unshift"],function(ue){var Fe=kf[ue],Zt=/^(?:push|sort|unshift)$/.test(ue)?"tap":"thru",kr=/^(?:pop|shift)$/.test(ue);Io.prototype[ue]=function(){var Vo=arguments;if(kr&&!this.__chain__){var ia=this.value();return Fe.apply(mf(ia)?ia:[],Vo)}return this[Zt](function(Tl){return Fe.apply(mf(Tl)?Tl:[],Vo)})}}),ld(se.prototype,function(ue,Fe){var Zt=Io[Fe];if(Zt){var kr=Zt.name+"";Vh.call(Cd,kr)||(Cd[kr]=[]),Cd[kr].push({name:Fe,func:Zt})}}),Cd[Zr(I,pe).name]=[{name:"wrapper",func:I}],se.prototype.clone=Ue,se.prototype.reverse=Jt,se.prototype.value=Wn,Io.prototype.at=Oo,Io.prototype.chain=Qh,Io.prototype.commit=xc,Io.prototype.next=hh,Io.prototype.plant=_,Io.prototype.reverse=R,Io.prototype.toJSON=Io.prototype.valueOf=Io.prototype.value=G,Io.prototype.first=Io.prototype.head,sp&&(Io.prototype[sp]=Gd),Io},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,wt;for(R===void 0&&(R=1e-6),ke=_,wt=0;wt<8;wt++){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 te(_,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 je(_,R,G){var le={};for(var ke in _)le[ke]=R.call(G||this,_[ke],ke,_);return le}function be(_,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"&&_?je(_,ve):_}var ye={};function Ce(_){ye[_]||(typeof console!="undefined"&&console.warn(_),ye[_]=!0)}function xe(_,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,wt=void 0;G@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(le,ke,Qe,wt){var jt=Qe||wt;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 Se=null;function Pt(_){if(Se==null){var R=_.navigator?_.navigator.userAgent:null;Se=!!_.safari||!(!R||!(/\b(iPad|iPhone|iPod)\b/.test(R)||R.match("Safari")&&!R.match("Chrome")))}return Se}function dt(_){try{var R=C[_];return R.setItem("_mapbox_test_",1),R.removeItem("_mapbox_test_"),!0}catch(G){return!1}}var He,Ct,ft,zt,mt=C.performance&&C.performance.now?C.performance.now.bind(C.performance):Date.now.bind(Date),yn=C.requestAnimationFrame||C.mozRequestAnimationFrame||C.webkitRequestAnimationFrame||C.msRequestAnimationFrame,Bn=C.cancelAnimationFrame||C.mozCancelAnimationFrame||C.webkitCancelAnimationFrame||C.msCancelAnimationFrame,Lr={now:mt,frame:function(_){var R=yn(_);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&&(Ct==null&&(Ct=C.matchMedia("(prefers-reduced-motion: reduce)")),Ct.matches)}},ri={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},gi={supported:!1,testSupport:function(_){!ro&&zt&&(To?_r(_):ft=_)}},ro=!1,To=!1;function _r(_){var R=_.createTexture();_.bindTexture(_.TEXTURE_2D,R);try{if(_.texImage2D(_.TEXTURE_2D,0,_.RGBA,_.RGBA,_.UNSIGNED_BYTE,zt),_.isContextLost())return;gi.supported=!0}catch(G){}_.deleteTexture(R),ro=!0}C.document&&((zt=C.document.createElement("img")).onload=function(){ft&&_r(ft),ft=null,To=!0},zt.onerror=function(){ro=!0,ft=null},zt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var Bo="01",fs=function(_,R){this._transformRequestFn=_,this._customAccessToken=R,this._createSkuToken()};function me(_){return _.indexOf("mapbox:")===0}fs.prototype._createSkuToken=function(){var _=function(){for(var R="",G=0;G<10;G++)R+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Bo,R].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=_.token,this._skuTokenExpiresAt=_.tokenExpiresAt},fs.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},fs.prototype.transformRequest=function(_,R){return this._transformRequestFn&&this._transformRequestFn(_,R)||{url:_}},fs.prototype.normalizeStyleURL=function(_,R){if(!me(_))return _;var G=ji(_);return G.path="/styles/v1"+G.path,this._makeAPIURL(G,this._customAccessToken||R)},fs.prototype.normalizeGlyphsURL=function(_,R){if(!me(_))return _;var G=ji(_);return G.path="/fonts/v1"+G.path,this._makeAPIURL(G,this._customAccessToken||R)},fs.prototype.normalizeSourceURL=function(_,R){if(!me(_))return _;var G=ji(_);return G.path="/v4/"+G.authority+".json",G.params.push("secure"),this._makeAPIURL(G,this._customAccessToken||R)},fs.prototype.normalizeSpriteURL=function(_,R,G,le){var ke=ji(_);return me(_)?(ke.path="/styles/v1"+ke.path+"/sprite"+R+G,this._makeAPIURL(ke,this._customAccessToken||le)):(ke.path+=""+R+G,No(ke))},fs.prototype.normalizeTileURL=function(_,R){if(this._isSkuTokenExpired()&&this._createSkuToken(),_&&!me(_))return _;var G=ji(_);G.path=G.path.replace(/(\.(png|jpg)\d*)(?=$)/,(Lr.devicePixelRatio>=2||R===512?"@2x":"")+(gi.supported?".webp":"$1")),G.path=G.path.replace(/^.+\/v4\//,"/"),G.path="/v4"+G.path;var le=this._customAccessToken||function(ke){for(var Qe=0,wt=ke;Qe=0&&_.params.splice(ke,1)}if(le.path!=="/"&&(_.path=""+le.path+_.path),!ri.REQUIRE_ACCESS_TOKEN)return No(_);if(!(R=R||ri.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),No(_)};var So=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function ho(_){return So.test(_)}var go=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function ji(_){var R=_.match(go);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 No(_){var R=_.params.length?"?"+_.params.join("&"):"";return _.protocol+"://"+_.authority+_.path+R}function dn(_){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=dn(ri.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))})):ri.ACCESS_TOKEN||"",_?"mapbox.eventData."+_+":"+R:"mapbox.eventData:"+R},Ve.prototype.fetchEventData=function(){var _=dt("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){Ce("Unable to read from LocalStorage")}},Ve.prototype.saveEventData=function(){var _=dt("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){Ce("Unable to write to LocalStorage")}},Ve.prototype.processRequests=function(_){},Ve.prototype.postEvent=function(_,R,G,le){var ke=this;if(ri.EVENTS_URL){var Qe=ji(ri.EVENTS_URL);Qe.params.push("access_token="+(le||ri.ACCESS_TOKEN||""));var wt={event:this.type,created:new Date(_).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:Bo,userId:this.anonId},jt=R?re(wt,R):wt,Nn={url:No(Qe),headers:{"Content-Type":"text/plain"},body:JSON.stringify([jt])};this.pendingRequest=Us(Nn,function(cr){ke.pendingRequest=null,G(cr),ke.saveEventData(),ke.processRequests(le)})}},Ve.prototype.queueRequest=function(_,R){this.queue.push(_),this.processRequests(R)};var yt,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 wt=!(!Qe&&!ri.ACCESS_TOKEN),jt=Array.isArray(G)&&G.some(function(Nn){return me(Nn)||ho(Nn)});ri.EVENTS_URL&&wt&&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,wt=ke.timestamp;Qe&&this.success[Qe]||(this.anonId||this.fetchEventData(),fe(this.anonId)||(this.anonId=he()),this.postEvent(wt,{skuToken:this.skuToken},function(jt){jt||Qe&&(le.success[Qe]=!0)},G))}},R}(Ve),sn=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){ri.EVENTS_URL&&ri.ACCESS_TOKEN&&Array.isArray(G)&&G.some(function(ke){return me(ke)||ho(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=dn(ri.ACCESS_TOKEN),Qe=ke?ke.u:ri.ACCESS_TOKEN,wt=Qe!==this.eventData.tokenU;fe(this.anonId)||(this.anonId=he(),wt=!0);var jt=this.queue.shift();if(this.eventData.lastSuccess){var Nn=new Date(this.eventData.lastSuccess),cr=new Date(jt),Ur=(jt-this.eventData.lastSuccess)/864e5;wt=wt||Ur>=1||Ur<-1||Nn.getDate()!==cr.getDate()}else wt=!0;if(!wt)return this.processRequests();this.postEvent(jt,{"enabled.telemetry":!1},function(bi){bi||(le.eventData.lastSuccess=jt,le.eventData.tokenU=Qe)},G)}},R}(Ve)),Ot=sn.postTurnstileEvent.bind(sn),Tt=new Wt,bt=Tt.postMapLoadEvent.bind(Tt),Ht=500,zn=50;function en(){C.caches&&!yt&&(yt=C.caches.open("mapbox-tiles"))}function fr(_){var R=_.indexOf("?");return R<0?_:_.slice(0,R)}var Kr,ii=1/0;function si(){return Kr==null&&(Kr=C.OffscreenCanvas&&new C.OffscreenCanvas(1,1).getContext("2d")&&typeof C.createImageBitmap=="function"),Kr}var uo={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(uo);var Qo=function(_){function R(G,le,ke){le===401&&ho(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),_n=ge()?function(){return self.worker&&self.worker.referrer}:function(){return(C.location.protocol==="blob:"?C.parent:C).location.href},Vr,qr,Ui=function(_,R){if(!(/^file:/.test(G=_.url)||/^file:/.test(_n())&&!/^\w+:/.test(G))){if(C.fetch&&C.Request&&C.AbortController&&C.Request.prototype.hasOwnProperty("signal"))return function(le,ke){var Qe,wt=new C.AbortController,jt=new C.Request(le.url,{method:le.method||"GET",body:le.body,credentials:le.credentials,headers:le.headers,referrer:_n(),signal:wt.signal}),Nn=!1,cr=!1,Ur=(Qe=jt.url).indexOf("sku=")>0&&ho(Qe);le.type==="json"&&jt.headers.set("Accept","application/json");var bi=function(zo,qs,ra){if(!cr){if(zo&&zo.message!=="SecurityError"&&Ce(zo),qs&&ra)return _o(qs);var al=Date.now();C.fetch(jt).then(function(Pa){if(Pa.ok){var Ol=Ur?Pa.clone():null;return _o(Pa,Ol,al)}return ke(new Qo(Pa.statusText,Pa.status,le.url))}).catch(function(Pa){Pa.code!==20&&ke(new Error(Pa.message))})}},_o=function(zo,qs,ra){(le.type==="arrayBuffer"?zo.arrayBuffer():le.type==="json"?zo.json():zo.text()).then(function(al){cr||(qs&&ra&&function(Pa,Ol,jl){if(en(),yt){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=We(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);en(),yt&&yt.then(function(ac){return ac.put(fr(Pa.url),kc)}).catch(function(ac){return Ce(ac.message)})}))}}(jt,qs,ra),Nn=!0,ke(null,al,zo.headers.get("Cache-Control"),zo.headers.get("Expires")))}).catch(function(al){cr||ke(new Error(al.message))})};return Ur?function(zo,qs){if(en(),!yt)return qs(null);var ra=fr(zo.url);yt.then(function(al){al.match(ra).then(function(Pa){var Ol=function(jl){if(!jl)return!1;var cu=new Date(jl.headers.get("Expires")||0),lu=We(jl.headers.get("Cache-Control")||"");return cu>Date.now()&&!lu["no-cache"]}(Pa);al.delete(ra),Ol&&al.put(ra,Pa.clone()),qs(null,Pa,Ol)}).catch(qs)}).catch(qs)}(jt,bi):bi(null,null),{cancel:function(){cr=!0,Nn||wt.abort()}}}(_,R);if(ge()&&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 wt in Qe.open(le.method||"GET",le.url,!0),le.type==="arrayBuffer"&&(Qe.responseType="arraybuffer"),le.headers)Qe.setRequestHeader(wt,le.headers[wt]);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(Nn){return ke(Nn)}ke(null,jt,Qe.getResponseHeader("Cache-Control"),Qe.getResponseHeader("Expires"))}else ke(new Qo(Qe.statusText,Qe.status,le.url))},Qe.send(le.body),{cancel:function(){return Qe.abort()}}}(_,R)},xo=function(_,R){return Ui(re(_,{type:"arrayBuffer"}),R)},Us=function(_,R){return Ui(re(_,{method:"POST"}),R)},$n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";Vr=[],qr=0;var Kn=function(_,R){if(gi.supported&&(_.headers||(_.headers={}),_.headers.accept="image/webp,*/*"),qr>=ri.MAX_PARALLEL_IMAGE_REQUESTS){var G={requestParameters:_,callback:R,cancelled:!1,cancel:function(){this.cancelled=!0}};return Vr.push(G),G}qr++;var le=!1,ke=function(){if(!le)for(le=!0,qr--;Vr.length&&qr0||this._oneTimeListeners&&this._oneTimeListeners[_]&&this._oneTimeListeners[_].length>0||this._eventedParent&&this._eventedParent.listens(_)},di.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 Xr(_){var R=_.value;return R?[new Qn(_.key,R,"constants have been deprecated as of v8")]:[]}function ao(_){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 Ii=[Jr,vi,Ti,co,Qr,tn,oi,Ei(Zi),Gn];function nr(_,R){if(R.kind==="error")return null;if(_.kind==="array"){if(R.kind==="array"&&(R.N===0&&R.itemType.kind==="value"||!nr(_.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=Ii;G255?255:jt}function ke(jt){return le(jt[jt.length-1]==="%"?parseFloat(jt)/100*255:parseInt(jt))}function Qe(jt){return(Nn=jt[jt.length-1]==="%"?parseFloat(jt)/100:parseFloat(jt))<0?0:Nn>1?1:Nn;var Nn}function wt(jt,Nn,cr){return cr<0?cr+=1:cr>1&&(cr-=1),6*cr<1?jt+(Nn-jt)*cr*6:2*cr<1?Nn:3*cr<2?jt+(Nn-jt)*(2/3-cr)*6:jt}try{R.parseCSSColor=function(jt){var Nn,cr=jt.replace(/ /g,"").toLowerCase();if(cr in G)return G[cr].slice();if(cr[0]==="#")return cr.length===4?(Nn=parseInt(cr.substr(1),16))>=0&&Nn<=4095?[(3840&Nn)>>4|(3840&Nn)>>8,240&Nn|(240&Nn)>>4,15&Nn|(15&Nn)<<4,1]:null:cr.length===7&&(Nn=parseInt(cr.substr(1),16))>=0&&Nn<=16777215?[(16711680&Nn)>>16,(65280&Nn)>>8,255&Nn,1]:null;var Ur=cr.indexOf("("),bi=cr.indexOf(")");if(Ur!==-1&&bi+1===cr.length){var _o=cr.substr(0,Ur),zo=cr.substr(Ur+1,bi-(Ur+1)).split(","),qs=1;switch(_o){case"rgba":if(zo.length!==4)return null;qs=Qe(zo.pop());case"rgb":return zo.length!==3?null:[ke(zo[0]),ke(zo[1]),ke(zo[2]),qs];case"hsla":if(zo.length!==4)return null;qs=Qe(zo.pop());case"hsl":if(zo.length!==3)return null;var ra=(parseFloat(zo[0])%360+360)%360/360,al=Qe(zo[1]),Pa=Qe(zo[2]),Ol=Pa<=.5?Pa*(al+1):Pa+al-Pa*al,jl=2*Pa-Ol;return[le(255*wt(jl,Ol,ra+1/3)),le(255*wt(jl,Ol,ra)),le(255*wt(jl,Ol,ra-1/3)),qs];default:return null}}return null}}catch(jt){}}).parseCSSColor,Xn=function(_,R,G,le){le===void 0&&(le=1),this.r=_,this.g=R,this.b=G,this.a=le};Xn.parse=function(_){if(_){if(_ instanceof Xn)return _;if(typeof _=="string"){var R=Rr(_);if(R)return new Xn(R[0]/255*R[3],R[1]/255*R[3],R[2]/255*R[3],R[3])}}},Xn.prototype.toString=function(){var _=this.toArray(),R=_[1],G=_[2],le=_[3];return"rgba("+Math.round(_[0])+","+Math.round(R)+","+Math.round(G)+","+le+")"},Xn.prototype.toArray=function(){var _=this.a;return _===0?[0,0,0,0]:[255*this.r/_,255*this.g/_,255*this.b/_,_]},Xn.black=new Xn(0,0,0,1),Xn.white=new Xn(1,1,1,1),Xn.transparent=new Xn(0,0,0,0),Xn.red=new Xn(1,0,0,1);var ms=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"})};ms.prototype.compare=function(_,R){return this.collator.compare(_,R)},ms.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var ya=function(_,R,G,le,ke){this.text=_,this.image=R,this.scale=G,this.fontStack=le,this.textColor=ke},fa=function(_){this.sections=_};fa.fromString=function(_){return new fa([new ya(_,null,null,null,null)])},fa.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(_){return _.text.length!==0||_.image&&_.image.name.length!==0})},fa.factory=function(_){return _ instanceof fa?_:fa.fromString(_)},fa.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(_){return _.text}).join("")},fa.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 Ao(_){if(_===null||typeof _=="string"||typeof _=="boolean"||typeof _=="number"||_ instanceof Xn||_ instanceof ms||_ instanceof fa||_ instanceof Ws)return!0;if(Array.isArray(_)){for(var R=0,G=_;R2){var jt=_[1];if(typeof jt!="string"||!(jt in pr)||jt==="object")return R.error('The item type argument of "array" must be one of string, number, boolean',1);Qe=pr[jt],le++}else Qe=Zi;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],le++}G=Ei(Qe,wt)}else G=pr[ke];for(var Nn=[];le<_.length;le++){var cr=R.parse(_[le],le,Zi);if(!cr)return null;Nn.push(cr)}return new ci(G,Nn)},ci.prototype.evaluate=function(_){for(var R=0;R1)&&R.push(le)}}return R.concat(this.args.map(function(ke){return ke.serialize()}))};var Eo=function(_){this.type=tn,this.sections=_};Eo.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 wt=_[Qe];if(ke&&typeof wt=="object"&&!Array.isArray(wt)){ke=!1;var jt=null;if(wt["font-scale"]&&!(jt=R.parse(wt["font-scale"],1,vi)))return null;var Nn=null;if(wt["text-font"]&&!(Nn=R.parse(wt["text-font"],1,Ei(Ti))))return null;var cr=null;if(wt["text-color"]&&!(cr=R.parse(wt["text-color"],1,Qr)))return null;var Ur=le[le.length-1];Ur.scale=jt,Ur.font=Nn,Ur.textColor=cr}else{var bi=R.parse(_[Qe],1,Zi);if(!bi)return null;var _o=bi.type.kind;if(_o!=="string"&&_o!=="value"&&_o!=="null"&&_o!=="resolvedImage")return R.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ke=!0,le.push({content:bi,scale:null,font:null,textColor:null})}}return new Eo(le)},Eo.prototype.evaluate=function(_){return new fa(this.sections.map(function(R){var G=R.content.evaluate(_);return cl(G)===Gn?new ya("",G,null,null,null):new ya($r(G),null,R.scale?R.scale.evaluate(_):null,R.font?R.font.evaluate(_).join(","):null,R.textColor?R.textColor.evaluate(_):null)}))},Eo.prototype.eachChild=function(_){for(var R=0,G=this.sections;R-1),G},mo.prototype.eachChild=function(_){_(this.input)},mo.prototype.outputDefined=function(){return!1},mo.prototype.serialize=function(){return["image",this.input.serialize()]};var Ts={"to-boolean":co,"to-color":Qr,"to-number":vi,"to-string":Ti},xs=function(_,R){this.type=_,this.args=R};xs.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=Ts[G],ke=[],Qe=1;Qe<_.length;Qe++){var wt=R.parse(_[Qe],Qe,Zi);if(!wt)return null;ke.push(wt)}return new xs(le,ke)},xs.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.":Ua(R[0],R[1],R[2],R[3])))return new Xn(R[0]/255,R[1]/255,R[2]/255,R[3])}throw new Dr(G||"Could not parse color from value '"+(typeof R=="string"?R:String(JSON.stringify(R)))+"'")}if(this.type.kind==="number"){for(var wt=null,jt=0,Nn=this.args;jt=R[2]||_[1]<=R[1]||_[3]>=R[3])}function at(_,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 gt(_,R,G){return R[1]>_[1]!=G[1]>_[1]&&_[0]<(G[0]-R[0])*(_[1]-R[1])/(G[1]-R[1])+R[0]}function Re(_,R){for(var G,le,ke,Qe,wt,jt,Nn,cr=!1,Ur=0,bi=R.length;Ur0&&jt<0||wt<0&&jt>0}function ln(_,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}En(R,_)}function ps(_,R,G,le){for(var ke=8192*Math.pow(2,le.z),Qe=[8192*le.x,8192*le.y],wt=[],jt=0,Nn=_;jt=0)return!1;var G=!0;return _.eachChild(function(le){G&&!Ds(le,R)&&(G=!1)}),G}Bs.parse=function(_,R){if(_.length!==2)return R.error("'within' expression requires exactly one argument, but found "+(_.length-1)+" instead.");if(Ao(_[1])){var G=_[1];if(G.type==="FeatureCollection")for(var le=0;leR))throw new Dr("Input is not a number.");Qe=wt-1}return 0}va.prototype.parse=function(_,R,G,le,ke){return ke===void 0&&(ke={}),R?this.concat(R,G,le)._parse(_,ke):this._parse(_,ke)},va.prototype._parse=function(_,R){function G(cr,Ur,bi){return bi==="assert"?new ci(Ur,[cr]):bi==="coerce"?new xs(Ur,[cr]):cr}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 wt=this.expectedType,jt=Qe.type;if(wt.kind!=="string"&&wt.kind!=="number"&&wt.kind!=="boolean"&&wt.kind!=="object"&&wt.kind!=="array"||jt.kind!=="value")if(wt.kind!=="color"&&wt.kind!=="formatted"&&wt.kind!=="resolvedImage"||jt.kind!=="value"&&jt.kind!=="string"){if(this.checkSubtype(wt,jt))return null}else Qe=G(Qe,wt,R.typeAnnotation||"coerce");else Qe=G(Qe,wt,R.typeAnnotation||"assert")}if(!(Qe instanceof er)&&Qe.type.kind!=="resolvedImage"&&function cr(Ur){if(Ur instanceof oa)return cr(Ur.boundExpression);if(Ur instanceof Xt&&Ur.name==="error"||Ur instanceof gn||Ur instanceof Bs)return!1;var bi=Ur instanceof xs||Ur instanceof ci,_o=!0;return Ur.eachChild(function(zo){_o=bi?_o&&cr(zo):_o&&zo instanceof er}),!!_o&&_a(Ur)&&Ds(Ur,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(Qe)){var Nn=new ui;try{Qe=new er(Qe.type,Qe.evaluate(Nn))}catch(cr){return this.error(cr.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.")},va.prototype.concat=function(_,R,G){var le=typeof _=="number"?this.path.concat(_):this.path,ke=G?this.scope.concat(G):this.scope;return new va(this.registry,le,R||null,ke,this.errors)},va.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,_))},va.prototype.checkSubtype=function(_,R){var G=nr(_,R);return G&&this.error(G),G};var Fa=function(_,R,G){this.type=_,this.input=R,this.labels=[],this.outputs=[];for(var le=0,ke=G;le=wt)return R.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Nn);var Ur=R.parse(jt,cr,ke);if(!Ur)return null;ke=ke||Ur.type,le.push([wt,Ur])}return new Fa(ke,G,le)},Fa.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(_)},Fa.prototype.eachChild=function(_){_(this.input);for(var R=0,G=this.outputs;R0&&_.push(this.labels[R]),_.push(this.outputs[R].serialize());return _};var ua=Object.freeze({__proto__:null,number:gl,color:function(_,R,G){return new Xn(gl(_.r,R.r,G),gl(_.g,R.g,G),gl(_.b,R.b,G),gl(_.a,R.a,G))},array:function(_,R,G){return _.map(function(le,ke){return gl(le,R[ke],G)})}}),Nl=6/29*3*(6/29),vs=Math.PI/180,Hi=180/Math.PI;function eo(_){return _>.008856451679035631?Math.pow(_,1/3):_/Nl+4/29}function sa(_){return _>6/29?_*_*_:Nl*(_-4/29)}function Cs(_){return 255*(_<=.0031308?12.92*_:1.055*Math.pow(_,1/2.4)-.055)}function Ka(_){return(_/=255)<=.04045?_/12.92:Math.pow((_+.055)/1.055,2.4)}function $u(_){var R=Ka(_.r),G=Ka(_.g),le=Ka(_.b),ke=eo((.4124564*R+.3575761*G+.1804375*le)/.95047),Qe=eo((.2126729*R+.7151522*G+.072175*le)/1);return{l:116*Qe-16,a:500*(ke-Qe),b:200*(Qe-eo((.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*sa(R),G=.95047*sa(G),le=1.08883*sa(le),new Xn(Cs(3.2404542*G-1.5371385*R-.4985314*le),Cs(-.969266*G+1.8760108*R+.041556*le),Cs(.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 vo={forward:$u,reverse:rc,interpolate:function(_,R,G){return{l:gl(_.l,R.l,G),a:gl(_.a,R.a,G),b:gl(_.b,R.b,G),alpha:gl(_.alpha,R.alpha,G)}}},to={forward:function(_){var R=$u(_),G=R.l,le=R.a,ke=R.b,Qe=Math.atan2(ke,le)*Hi;return{h:Qe<0?Qe+360:Qe,c:Math.sqrt(le*le+ke*ke),l:G,alpha:_.a}},reverse:function(_){var R=_.h*vs,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:gl(_.c,R.c,G),l:gl(_.l,R.l,G),alpha:gl(_.alpha,R.alpha,G)}}},hs=Object.freeze({__proto__:null,lab:vo,hcl:to}),jn=function(_,R,G,le,ke){this.type=_,this.operator=R,this.interpolation=G,this.input=le,this.labels=[],this.outputs=[];for(var Qe=0,wt=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,vi)))return null;var Nn=[],cr=null;G==="interpolate-hcl"||G==="interpolate-lab"?cr=Qr:R.expectedType&&R.expectedType.kind!=="value"&&(cr=R.expectedType);for(var Ur=0;Ur=bi)return R.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',zo);var ra=R.parse(_o,qs,cr);if(!ra)return null;cr=cr||ra.type,Nn.push([bi,ra])}return cr.kind==="number"||cr.kind==="color"||cr.kind==="array"&&cr.itemType.kind==="number"&&typeof cr.N=="number"?new jn(cr,G,le,ke,Nn):R.error("Type "+Ln(cr)+" is not interpolatable.")},jn.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),wt=jn.interpolationFactor(this.interpolation,le,R[Qe],R[Qe+1]),jt=G[Qe].evaluate(_),Nn=G[Qe+1].evaluate(_);return this.operator==="interpolate"?ua[this.type.kind.toLowerCase()](jt,Nn,wt):this.operator==="interpolate-hcl"?to.reverse(to.interpolate(to.forward(jt),to.forward(Nn),wt)):vo.reverse(vo.interpolate(vo.forward(jt),vo.forward(Nn),wt))},jn.prototype.eachChild=function(_){_(this.input);for(var R=0,G=this.outputs;R=G.length)throw new Dr("Array index out of bounds: "+R+" > "+(G.length-1)+".");if(R!==Math.floor(R))throw new Dr("Array index must be an integer, but found "+R+" instead.");return G[R]},Ji.prototype.eachChild=function(_){_(this.index),_(this.input)},Ji.prototype.outputDefined=function(){return!1},Ji.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var so=function(_,R){this.type=co,this.needle=_,this.haystack=R};so.parse=function(_,R){if(_.length!==3)return R.error("Expected 2 arguments, but found "+(_.length-1)+" instead.");var G=R.parse(_[1],1,Zi),le=R.parse(_[2],2,Zi);return G&&le?wi(G.type,[co,Ti,vi,Jr,Zi])?new so(G,le):R.error("Expected first argument to be of type boolean, string, number or null, but found "+Ln(G.type)+" instead"):null},so.prototype.evaluate=function(_){var R=this.needle.evaluate(_),G=this.haystack.evaluate(_);if(!G)return!1;if(!Mi(R,["boolean","string","number","null"]))throw new Dr("Expected first argument to be of type boolean, string, number or null, but found "+Ln(cl(R))+" instead.");if(!Mi(G,["string","array"]))throw new Dr("Expected second argument to be of type array or string, but found "+Ln(cl(G))+" instead.");return G.indexOf(R)>=0},so.prototype.eachChild=function(_){_(this.needle),_(this.haystack)},so.prototype.outputDefined=function(){return!0},so.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Pi=function(_,R,G){this.type=vi,this.needle=_,this.haystack=R,this.fromIndex=G};Pi.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,Zi),le=R.parse(_[2],2,Zi);if(!G||!le)return null;if(!wi(G.type,[co,Ti,vi,Jr,Zi]))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,vi);return ke?new Pi(G,le,ke):null}return new Pi(G,le)},Pi.prototype.evaluate=function(_){var R=this.needle.evaluate(_),G=this.haystack.evaluate(_);if(!Mi(R,["boolean","string","number","null"]))throw new Dr("Expected first argument to be of type boolean, string, number or null, but found "+Ln(cl(R))+" instead.");if(!Mi(G,["string","array"]))throw new Dr("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)},Pi.prototype.eachChild=function(_){_(this.needle),_(this.haystack),this.fromIndex&&_(this.fromIndex)},Pi.prototype.outputDefined=function(){return!1},Pi.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 us=function(_,R,G,le,ke,Qe){this.inputType=_,this.type=R,this.input=G,this.cases=le,this.outputs=ke,this.otherwise=Qe};us.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=[],wt=2;wt<_.length-1;wt+=2){var jt=_[wt],Nn=_[wt+1];Array.isArray(jt)||(jt=[jt]);var cr=R.concat(wt);if(jt.length===0)return cr.error("Expected at least one branch label.");for(var Ur=0,bi=jt;UrNumber.MAX_SAFE_INTEGER)return cr.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof _o=="number"&&Math.floor(_o)!==_o)return cr.error("Numeric branch labels must be integer values.");if(G){if(cr.checkSubtype(G,cl(_o)))return null}else G=cl(_o);if(ke[String(_o)]!==void 0)return cr.error("Branch labels must be unique.");ke[String(_o)]=Qe.length}var zo=R.parse(Nn,wt,le);if(!zo)return null;le=le||zo.type,Qe.push(zo)}var qs=R.parse(_[1],1,Zi);if(!qs)return null;var ra=R.parse(_[_.length-1],_.length-1,le);return ra?qs.type.kind!=="value"&&R.concat(1).checkSubtype(G,qs.type)?null:new us(G,le,qs,ke,Qe,ra):null},us.prototype.evaluate=function(_){var R=this.input.evaluate(_);return(cl(R)===this.inputType&&this.outputs[this.cases[R]]||this.otherwise).evaluate(_)},us.prototype.eachChild=function(_){_(this.input),this.outputs.forEach(_),_(this.otherwise)},us.prototype.outputDefined=function(){return this.outputs.every(function(_){return _.outputDefined()})&&this.otherwise.outputDefined()},us.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,Zi),le=R.parse(_[2],2,vi);if(!G||!le)return null;if(!wi(G.type,[Ei(Zi),Ti,Zi]))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,vi);return ke?new $a(G.type,G,le,ke):null}return new $a(G.type,G,le)},$a.prototype.evaluate=function(_){var R=this.input.evaluate(_),G=this.beginIndex.evaluate(_);if(!Mi(R,["string","array"]))throw new Dr("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)},$a.prototype.eachChild=function(_){_(this.input),_(this.beginIndex),this.endIndex&&_(this.endIndex)},$a.prototype.outputDefined=function(){return!1},$a.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 Za=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)}),ea=Ml("<",function(_,R,G){return R",function(_,R,G){return R>G},function(_,R,G,le){return le.compare(R,G)>0}),el=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=Ti,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,vi);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,Ti)))return null;var Qe=null;if(le.currency&&!(Qe=R.parse(le.currency,1,Ti)))return null;var wt=null;if(le["min-fraction-digits"]&&!(wt=R.parse(le["min-fraction-digits"],1,vi)))return null;var jt=null;return le["max-fraction-digits"]&&!(jt=R.parse(le["max-fraction-digits"],1,vi))?null:new ql(G,ke,Qe,wt,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=vi,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 Dr("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={"==":Za,"!=":Pu,">":Qa,"<":ea,">=":Ul,"<=":el,array:ci,at:Ji,boolean:ci,case:ga,coalesce:ai,collator:gn,format:Eo,image:mo,in:so,"index-of":Pi,interpolate:jn,"interpolate-hcl":jn,"interpolate-lab":jn,length:vu,let:hi,literal:er,match:us,number:ci,"number-format":ql,object:ci,slice:$a,step:Fa,string:ci,"to-boolean":xs,"to-color":xs,"to-number":xs,"to-string":xs,var:oa,within:Bs};function Cn(_,R){var G=R[0],le=R[1],ke=R[2],Qe=R[3];G=G.evaluate(_),le=le.evaluate(_),ke=ke.evaluate(_);var wt=Qe?Qe.evaluate(_):1,jt=Ua(G,le,ke,wt);if(jt)throw new Dr(jt);return new Xn(G/255*wt,le/255*wt,ke/255*wt,wt)}function Eu(_,R){return _ in R}function ls(_,R){var G=R[_];return G===void 0?null:G}function Ks(_){return{type:_}}function xa(_){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 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(bi){return bi[0]}),G),wt=function(bi,_o,zo,qs){var ra=qs-zo,al=bi-zo;return ra===0?0:_o===1?al/ra:(Math.pow(_o,al)-1)/(Math.pow(_o,ra)-1)}(G,le,_.stops[Qe][0],_.stops[Qe+1][0]),jt=_.stops[Qe][1],Nn=_.stops[Qe+1][1],cr=ua[R.type]||Ic;if(_.colorSpace&&_.colorSpace!=="rgb"){var Ur=hs[_.colorSpace];cr=function(bi,_o){return Ur.reverse(Ur.interpolate(Ur.forward(bi),Ur.forward(_o),wt))}}return typeof jt.evaluate=="function"?{evaluate:function(){for(var bi=[],_o=arguments.length;_o--;)bi[_o]=arguments[_o];var zo=jt.evaluate.apply(void 0,bi),qs=Nn.evaluate.apply(void 0,bi);if(zo!==void 0&&qs!==void 0)return cr(zo,qs,wt)}}:cr(jt,Nn,wt)}function ad(_,R,G){return R.type==="color"?G=Xn.parse(G):R.type==="formatted"?G=fa.fromString(G.toString()):R.type==="resolvedImage"?G=Ws.fromString(G.toString()):Nu(G)===R.type||R.type==="enum"&&R.values[G]||(G=void 0),Vc(G,_.default,R.default)}Xt.register(au,{error:[{kind:"error"},[Ti],function(_,R){throw new Dr(R[0].evaluate(_))}],typeof:[Ti,[Zi],function(_,R){return Ln(cl(R[0].evaluate(_)))}],"to-rgba":[Ei(vi,4),[Qr],function(_,R){return R[0].evaluate(_).toArray()}],rgb:[Qr,[vi,vi,vi],Cn],rgba:[Qr,[vi,vi,vi,vi],Cn],has:{type:co,overloads:[[[Ti],function(_,R){return Eu(R[0].evaluate(_),_.properties())}],[[Ti,oi],function(_,R){var G=R[1];return Eu(R[0].evaluate(_),G.evaluate(_))}]]},get:{type:Zi,overloads:[[[Ti],function(_,R){return ls(R[0].evaluate(_),_.properties())}],[[Ti,oi],function(_,R){var G=R[1];return ls(R[0].evaluate(_),G.evaluate(_))}]]},"feature-state":[Zi,[Ti],function(_,R){return ls(R[0].evaluate(_),_.featureState||{})}],properties:[oi,[],function(_){return _.properties()}],"geometry-type":[Ti,[],function(_){return _.geometryType()}],id:[Zi,[],function(_){return _.id()}],zoom:[vi,[],function(_){return _.globals.zoom}],"heatmap-density":[vi,[],function(_){return _.globals.heatmapDensity||0}],"line-progress":[vi,[],function(_){return _.globals.lineProgress||0}],accumulated:[Zi,[],function(_){return _.globals.accumulated===void 0?null:_.globals.accumulated}],"+":[vi,Ks(vi),function(_,R){for(var G=0,le=0,ke=R;le":[co,[Ti,Zi],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->":[co,[Zi],function(_,R){var G=R[0],le=_.id(),ke=G.value;return typeof le==typeof ke&&le>ke}],"filter-<=":[co,[Ti,Zi],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-<=":[co,[Zi],function(_,R){var G=R[0],le=_.id(),ke=G.value;return typeof le==typeof ke&&le<=ke}],"filter->=":[co,[Ti,Zi],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->=":[co,[Zi],function(_,R){var G=R[0],le=_.id(),ke=G.value;return typeof le==typeof ke&&le>=ke}],"filter-has":[co,[Zi],function(_,R){return R[0].value in _.properties()}],"filter-has-id":[co,[],function(_){return _.id()!==null&&_.id()!==void 0}],"filter-type-in":[co,[Ei(Ti)],function(_,R){return R[0].value.indexOf(_.geometryType())>=0}],"filter-id-in":[co,[Ei(Zi)],function(_,R){return R[0].value.indexOf(_.id())>=0}],"filter-in-small":[co,[Ti,Ei(Zi)],function(_,R){var G=R[0];return R[1].value.indexOf(_.properties()[G.value])>=0}],"filter-in-large":[co,[Ti,Ei(Zi)],function(_,R){var G=R[0],le=R[1];return function(ke,Qe,wt,jt){for(;wt<=jt;){var Nn=wt+jt>>1;if(Qe[Nn]===ke)return!0;Qe[Nn]>ke?jt=Nn-1:wt=Nn+1}return!1}(_.properties()[G.value],le.value,0,le.value.length-1)}],all:{type:co,overloads:[[[co,co],function(_,R){var G=R[1];return R[0].evaluate(_)&&G.evaluate(_)}],[Ks(co),function(_,R){for(var G=0,le=R;G0&&typeof _[0]=="string"&&_[0]in au}function dd(_,R){var G=new va(au,[],R?function(ke){var Qe={color:Qr,string:Ti,number:vi,enum:Ti,boolean:co,formatted:tn,resolvedImage:Gn};return ke.type==="array"?Ei(Qe[ke.value]||Zi,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?xa(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 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 Dr("Expected value to be one of "+Object.keys(this._enumValues).map(function(jt){return JSON.stringify(jt)}).join(", ")+", but found "+JSON.stringify(wt)+" instead.");return wt}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"&&!oo(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"&&!oo(R.expression),this.interpolationType=le};function th(_,R){if((_=dd(_,R)).result==="error")return _;var G=_.value.expression,le=_a(G);if(!le&&!El(R))return Il([new pn("","data expressions not supported")]);var ke=Ds(G,["zoom"]);if(!ke&&!ml(R))return Il([new pn("","zoom expressions not supported")]);var Qe=function wt(jt){var Nn=null;if(jt instanceof hi)Nn=wt(jt.result);else if(jt instanceof ai)for(var cr=0,Ur=jt.args;crle.maximum?[new Qn(R,G,G+" is greater than the maximum value "+le.maximum)]:[]}function Pf(_){var R,G,le,ke=_.valueSpec,Qe=as(_.value.type),wt={},jt=Qe!=="categorical"&&_.value.property===void 0,Nn=!jt,cr=Nu(_.value.stops)==="array"&&Nu(_.value.stops[0])==="array"&&Nu(_.value.stops[0][0])==="object",Ur=vh({key:_.key,value:_.value,valueSpec:_.styleSpec.function,style:_.style,styleSpec:_.styleSpec,objectElementValidators:{stops:function(zo){if(Qe==="identity")return[new Qn(zo.key,zo.value,'identity function may not have a "stops" property')];var qs=[],ra=zo.value;return qs=qs.concat(id({key:zo.key,value:ra,valueSpec:zo.valueSpec,style:zo.style,styleSpec:zo.styleSpec,arrayElementValidator:bi})),Nu(ra)==="array"&&ra.length===0&&qs.push(new Qn(zo.key,ra,"array must have at least one stop")),qs},default:function(zo){return Vu({key:zo.key,value:zo.value,valueSpec:ke,style:zo.style,styleSpec:zo.styleSpec})}}});return Qe==="identity"&&jt&&Ur.push(new Qn(_.key,_.value,'missing required property "property"')),Qe==="identity"||_.value.stops||Ur.push(new Qn(_.key,_.value,'missing required property "stops"')),Qe==="exponential"&&_.valueSpec.expression&&!fu(_.valueSpec)&&Ur.push(new Qn(_.key,_.value,"exponential functions not supported")),_.styleSpec.$version>=8&&(Nn&&!El(_.valueSpec)?Ur.push(new Qn(_.key,_.value,"property functions not supported")):jt&&!ml(_.valueSpec)&&Ur.push(new Qn(_.key,_.value,"zoom functions not supported"))),Qe!=="categorical"&&!cr||_.value.property!==void 0||Ur.push(new Qn(_.key,_.value,'"property" property is required')),Ur;function bi(zo){var qs=[],ra=zo.value,al=zo.key;if(Nu(ra)!=="array")return[new Qn(al,ra,"array expected, "+Nu(ra)+" found")];if(ra.length!==2)return[new Qn(al,ra,"array length 2 expected, length "+ra.length+" found")];if(cr){if(Nu(ra[0])!=="object")return[new Qn(al,ra,"object expected, "+Nu(ra[0])+" found")];if(ra[0].zoom===void 0)return[new Qn(al,ra,"object stop key must have zoom")];if(ra[0].value===void 0)return[new Qn(al,ra,"object stop key must have value")];if(le&&le>as(ra[0].zoom))return[new Qn(al,ra[0].zoom,"stop zoom values must appear in ascending order")];as(ra[0].zoom)!==le&&(le=as(ra[0].zoom),G=void 0,wt={}),qs=qs.concat(vh({key:al+"[0]",value:ra[0],valueSpec:{zoom:{}},style:zo.style,styleSpec:zo.styleSpec,objectElementValidators:{zoom:nd,value:_o}}))}else qs=qs.concat(_o({key:al+"[0]",value:ra[0],valueSpec:{},style:zo.style,styleSpec:zo.styleSpec},ra));return Fc(Bt(ra[1]))?qs.concat([new Qn(al+"[1]",ra[1],"expressions are not allowed in function stops.")]):qs.concat(Vu({key:al+"[1]",value:ra[1],valueSpec:ke,style:zo.style,styleSpec:zo.styleSpec}))}function _o(zo,qs){var ra=Nu(zo.value),al=as(zo.value),Pa=zo.value!==null?zo.value:qs;if(R){if(ra!==R)return[new Qn(zo.key,Pa,ra+" stop domain type must match previous stop domain type "+R)]}else R=ra;if(ra!=="number"&&ra!=="string"&&ra!=="boolean")return[new Qn(zo.key,Pa,"stop domain value must be a number, string, or boolean")];if(ra!=="number"&&Qe!=="categorical"){var Ol="number expected, "+ra+" found";return El(ke)&&Qe===void 0&&(Ol+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Qn(zo.key,Pa,Ol)]}return Qe!=="categorical"||ra!=="number"||isFinite(al)&&Math.floor(al)===al?Qe!=="categorical"&&ra==="number"&&G!==void 0&&al=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(Bt(_.value))?qd(ao({},_,{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,wt=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:wt.filter_operator,style:G.style,styleSpec:G.styleSpec})),as(le[0])){case"<":case"<=":case">":case">=":le.length>=2&&as(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 Nn=2;Nn=Ur[zo+0]&&le>=Ur[zo+1])?(wt[_o]=!0,Qe.push(cr[_o])):wt[_o]=!1}}},ed.prototype._forEachCell=function(_,R,G,le,ke,Qe,wt,jt){for(var Nn=this._convertToCellCoord(_),cr=this._convertToCellCoord(R),Ur=this._convertToCellCoord(G),bi=this._convertToCellCoord(le),_o=Nn;_o<=Ur;_o++)for(var zo=cr;zo<=bi;zo++){var qs=this.d*zo+_o;if((!jt||jt(this._convertFromCellCoord(_o),this._convertFromCellCoord(zo),this._convertFromCellCoord(_o+1),this._convertFromCellCoord(zo+1)))&&ke.call(this,_,R,G,le,qs,Qe,wt,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 Ur=_[cr];Nn[cr]=cf[jt].shallow.indexOf(cr)>=0?Ur:no(Ur,R)}_ instanceof Error&&(Nn.message=_.message)}if(Nn.$name)throw new Error("$name property is reserved for worker serialization logic.");return jt!=="Object"&&(Nn.$name=jt),Nn}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||cs(_)||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 Tr("pluginStateChange",{pluginStatus:tp,pluginURL:pg}))}var Pd=new di,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(wt){return wt.key+": "+wt.message}).join(", "));return ke.value}var Qe=G;return typeof G=="string"&&le.type==="color"&&(Qe=Xn.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 Nn=jt*jt,cr=Nn*jt;return 4*(jt<.5?cr:3*(jt-Nn)+cr-.75)}(wt))}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],wt=Qe.property.specification["property-type"]==="cross-faded-data-driven",jt=Qe.value.isDataDriven(),Nn=Qe.value;this._transitionablePaint.setValue(G,le),this._handleSpecialPaintPropertyUpdate(G);var cr=this._transitionablePaint._values[G].value;return cr.isDataDriven()||jt||wt||this._handleOverridablePaintPropertyUpdate(G,Nn,cr)},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),be(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,wt){return wt===void 0&&(wt={}),(!wt||wt.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}(di),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,wt=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:wt}}),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 wt=this.length;return this.resize(wt+1),this.emplace(wt,G,le,ke,Qe)},R.prototype.emplace=function(G,le,ke,Qe,wt){var jt=4*G;return this.int16[jt+0]=le,this.int16[jt+1]=ke,this.int16[jt+2]=Qe,this.int16[jt+3]=wt,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,wt,jt){var Nn=this.length;return this.resize(Nn+1),this.emplace(Nn,G,le,ke,Qe,wt,jt)},R.prototype.emplace=function(G,le,ke,Qe,wt,jt,Nn){var cr=6*G;return this.int16[cr+0]=le,this.int16[cr+1]=ke,this.int16[cr+2]=Qe,this.int16[cr+3]=wt,this.int16[cr+4]=jt,this.int16[cr+5]=Nn,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,wt,jt){var Nn=this.length;return this.resize(Nn+1),this.emplace(Nn,G,le,ke,Qe,wt,jt)},R.prototype.emplace=function(G,le,ke,Qe,wt,jt,Nn){var cr=4*G,Ur=8*G;return this.int16[cr+0]=le,this.int16[cr+1]=ke,this.uint8[Ur+4]=Qe,this.uint8[Ur+5]=wt,this.uint8[Ur+6]=jt,this.uint8[Ur+7]=Nn,G},R}(kh);mh.prototype.bytesPerElement=8,Qc("StructArrayLayout2i4ub8",mh);var Io=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);Io.prototype.bytesPerElement=8,Qc("StructArrayLayout2f8",Io);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,wt,jt,Nn,cr,Ur,bi){var _o=this.length;return this.resize(_o+1),this.emplace(_o,G,le,ke,Qe,wt,jt,Nn,cr,Ur,bi)},R.prototype.emplace=function(G,le,ke,Qe,wt,jt,Nn,cr,Ur,bi,_o){var zo=10*G;return this.uint16[zo+0]=le,this.uint16[zo+1]=ke,this.uint16[zo+2]=Qe,this.uint16[zo+3]=wt,this.uint16[zo+4]=jt,this.uint16[zo+5]=Nn,this.uint16[zo+6]=cr,this.uint16[zo+7]=Ur,this.uint16[zo+8]=bi,this.uint16[zo+9]=_o,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,wt,jt,Nn,cr,Ur,bi,_o,zo){var qs=this.length;return this.resize(qs+1),this.emplace(qs,G,le,ke,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo)},R.prototype.emplace=function(G,le,ke,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs){var ra=12*G;return this.int16[ra+0]=le,this.int16[ra+1]=ke,this.int16[ra+2]=Qe,this.int16[ra+3]=wt,this.uint16[ra+4]=jt,this.uint16[ra+5]=Nn,this.uint16[ra+6]=cr,this.uint16[ra+7]=Ur,this.int16[ra+8]=bi,this.int16[ra+9]=_o,this.int16[ra+10]=zo,this.int16[ra+11]=qs,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 wt=3*G;return this.float32[wt+0]=le,this.float32[wt+1]=ke,this.float32[wt+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,wt,jt,Nn,cr,Ur){var bi=this.length;return this.resize(bi+1),this.emplace(bi,G,le,ke,Qe,wt,jt,Nn,cr,Ur)},R.prototype.emplace=function(G,le,ke,Qe,wt,jt,Nn,cr,Ur,bi){var _o=10*G,zo=5*G;return this.int16[_o+0]=le,this.int16[_o+1]=ke,this.int16[_o+2]=Qe,this.int16[_o+3]=wt,this.int16[_o+4]=jt,this.int16[_o+5]=Nn,this.uint32[zo+3]=cr,this.uint16[_o+8]=Ur,this.uint16[_o+9]=bi,G},R}(kh);Ue.prototype.bytesPerElement=20,Qc("StructArrayLayout6i1ul2ui20",Ue);var Jt=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,wt,jt){var Nn=this.length;return this.resize(Nn+1),this.emplace(Nn,G,le,ke,Qe,wt,jt)},R.prototype.emplace=function(G,le,ke,Qe,wt,jt,Nn){var cr=6*G;return this.int16[cr+0]=le,this.int16[cr+1]=ke,this.int16[cr+2]=Qe,this.int16[cr+3]=wt,this.int16[cr+4]=jt,this.int16[cr+5]=Nn,G},R}(kh);Jt.prototype.bytesPerElement=12,Qc("StructArrayLayout2i2i2i12",Jt);var Wn=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,wt){var jt=this.length;return this.resize(jt+1),this.emplace(jt,G,le,ke,Qe,wt)},R.prototype.emplace=function(G,le,ke,Qe,wt,jt){var Nn=4*G,cr=8*G;return this.float32[Nn+0]=le,this.float32[Nn+1]=ke,this.float32[Nn+2]=Qe,this.int16[cr+6]=wt,this.int16[cr+7]=jt,G},R}(kh);Wn.prototype.bytesPerElement=16,Qc("StructArrayLayout2f1f2i16",Wn);var _i=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 wt=this.length;return this.resize(wt+1),this.emplace(wt,G,le,ke,Qe)},R.prototype.emplace=function(G,le,ke,Qe,wt){var jt=12*G,Nn=3*G;return this.uint8[jt+0]=le,this.uint8[jt+1]=ke,this.float32[Nn+1]=Qe,this.float32[Nn+2]=wt,G},R}(kh);_i.prototype.bytesPerElement=12,Qc("StructArrayLayout2ub2f12",_i);var Xo=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 wt=3*G;return this.uint16[wt+0]=le,this.uint16[wt+1]=ke,this.uint16[wt+2]=Qe,G},R}(kh);Xo.prototype.bytesPerElement=6,Qc("StructArrayLayout3ui6",Xo);var pa=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,wt,jt,Nn,cr,Ur,bi,_o,zo,qs,ra,al,Pa,Ol){var jl=this.length;return this.resize(jl+1),this.emplace(jl,G,le,ke,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs,ra,al,Pa,Ol)},R.prototype.emplace=function(G,le,ke,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs,ra,al,Pa,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]=wt,this.uint32[lu+2]=jt,this.uint32[lu+3]=Nn,this.uint32[lu+4]=cr,this.uint16[cu+10]=Ur,this.uint16[cu+11]=bi,this.uint16[cu+12]=_o,this.float32[lu+7]=zo,this.float32[lu+8]=qs,this.uint8[Uu+36]=ra,this.uint8[Uu+37]=al,this.uint8[Uu+38]=Pa,this.uint32[lu+10]=Ol,this.int16[cu+22]=jl,G},R}(kh);pa.prototype.bytesPerElement=48,Qc("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",pa);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,wt,jt,Nn,cr,Ur,bi,_o,zo,qs,ra,al,Pa,Ol,jl,cu,lu,Uu,kc,ac,_d,Xu,Nd,qt,On){var hr=this.length;return this.resize(hr+1),this.emplace(hr,G,le,ke,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs,ra,al,Pa,Ol,jl,cu,lu,Uu,kc,ac,_d,Xu,Nd,qt,On)},R.prototype.emplace=function(G,le,ke,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs,ra,al,Pa,Ol,jl,cu,lu,Uu,kc,ac,_d,Xu,Nd,qt,On,hr){var Gr=34*G,bo=17*G;return this.int16[Gr+0]=le,this.int16[Gr+1]=ke,this.int16[Gr+2]=Qe,this.int16[Gr+3]=wt,this.int16[Gr+4]=jt,this.int16[Gr+5]=Nn,this.int16[Gr+6]=cr,this.int16[Gr+7]=Ur,this.uint16[Gr+8]=bi,this.uint16[Gr+9]=_o,this.uint16[Gr+10]=zo,this.uint16[Gr+11]=qs,this.uint16[Gr+12]=ra,this.uint16[Gr+13]=al,this.uint16[Gr+14]=Pa,this.uint16[Gr+15]=Ol,this.uint16[Gr+16]=jl,this.uint16[Gr+17]=cu,this.uint16[Gr+18]=lu,this.uint16[Gr+19]=Uu,this.uint16[Gr+20]=kc,this.uint16[Gr+21]=ac,this.uint16[Gr+22]=_d,this.uint32[bo+12]=Xu,this.float32[bo+13]=Nd,this.float32[bo+14]=qt,this.float32[bo+15]=On,this.float32[bo+16]=hr,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 wt=3*G;return this.int16[wt+0]=le,this.int16[wt+1]=ke,this.int16[wt+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 wt=4*G;return this.uint32[2*G+0]=le,this.uint16[wt+2]=ke,this.uint16[wt+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 wt=this.length;return this.resize(wt+1),this.emplace(wt,G,le,ke,Qe)},R.prototype.emplace=function(G,le,ke,Qe,wt){var jt=4*G;return this.float32[jt+0]=le,this.float32[jt+1]=ke,this.float32[jt+2]=Qe,this.float32[jt+3]=wt,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 ne=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",ne);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}(pa);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 nn=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",nn);var qn=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",qn);var ei=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);ei.prototype.size=8;var gr=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.get=function(G){return new ei(this,G)},R}(Iu);Qc("FeatureIndexArray",gr);var ss=yh([{name:"a_pos",components:2,type:"Int16"}],4).members,ts=function(_){_===void 0&&(_=[]),this.segments=_};function Is(_,R){return 256*(_=W(Math.floor(_),0,255))+W(Math.floor(R),0,255)}ts.prototype.prepareSegment=function(_,R,G,le){var ke=this.segments[this.segments.length-1];return _>ts.MAX_VERTEX_ARRAY_LENGTH&&Ce("Max vertices per segment is "+ts.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+_),(!ke||ke.vertexLength+_>ts.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},ts.prototype.get=function(){return this.segments},ts.prototype.destroy=function(){for(var _=0,R=this.segments;_>>16)*jt&65535)<<16)&4294967295)<<15|cr>>>17))*Nn+(((cr>>>16)*Nn&65535)<<16)&4294967295)<<13|Qe>>>19))+((5*(Qe>>>16)&65535)<<16)&4294967295))+((58964+(wt>>>16)&65535)<<16);switch(cr=0,le){case 3:cr^=(255&R.charCodeAt(Ur+2))<<16;case 2:cr^=(255&R.charCodeAt(Ur+1))<<8;case 1:Qe^=cr=(65535&(cr=(cr=(65535&(cr^=255&R.charCodeAt(Ur)))*jt+(((cr>>>16)*jt&65535)<<16)&4294967295)<<15|cr>>>17))*Nn+(((cr>>>16)*Nn&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}}),Ko=z(function(_){_.exports=function(R,G){for(var le,ke=R.length,Qe=G^ke,wt=0;ke>=4;)le=1540483477*(65535&(le=255&R.charCodeAt(wt)|(255&R.charCodeAt(++wt))<<8|(255&R.charCodeAt(++wt))<<16|(255&R.charCodeAt(++wt))<<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,++wt;switch(ke){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}}),Gs=na,Va=Ko;Gs.murmur3=na,Gs.murmur2=Va;var _l=function(){this.ids=[],this.positions=[],this.indexed=!1};_l.prototype.add=function(_,R,G,le){this.ids.push(xu(_)),this.positions.push(R,G,le)},_l.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},_l.serialize=function(_,R){var G=new Float64Array(_.ids),le=new Uint32Array(_.positions);return function ke(Qe,wt,jt,Nn){for(;jt>1],Ur=jt-1,bi=Nn+1;;){do Ur++;while(Qe[Ur]cr);if(Ur>=bi)break;Tu(Qe,Ur,bi),Tu(wt,3*Ur,3*bi),Tu(wt,3*Ur+1,3*bi+1),Tu(wt,3*Ur+2,3*bi+2)}bi-jtwt.x+1||Nnwt.y+1)&&Ce("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 Xo,this.segments=new ts,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(Ro(_,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,wt=0;wt<_.length;wt++)for(var jt=0,Nn=(G=_[wt]).length-1;jtR.y!=(ke=G[Nn]).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],wt=_[ke];Qe.y>R.y!=wt.y>R.y&&R.x<(wt.x-Qe.x)*(R.y-Qe.y)/(wt.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=xe(_,R,G[0]);return Qe!==xe(_,R,G[1])||Qe!==xe(_,R,G[2])||Qe!==xe(_,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 wt=[],jt=0;jt<_.length;jt++)wt.push(_[jt].sub(Qe));return wt}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 wt=0,jt=_;wt=8192||Ur<0||Ur>=8192)){var bi=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,_.sortKey),_o=bi.vertexLength;yd(this.layoutVertexArray,cr,Ur,-1,-1),yd(this.layoutVertexArray,cr,Ur,1,-1),yd(this.layoutVertexArray,cr,Ur,1,1),yd(this.layoutVertexArray,cr,Ur,-1,1),this.indexArray.emplaceBack(_o,_o+1,_o+2),this.indexArray.emplaceBack(_o,_o+3,_o+2),bi.vertexLength+=4,bi.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],wt=R[3],jt=R[4],Nn=R[5],cr=R[6],Ur=R[7],bi=R[8],_o=R[9],zo=R[10],qs=R[11],ra=R[12],al=R[13],Pa=R[14],Ol=R[15],jl=G[0],cu=G[1],lu=G[2],Uu=G[3];return _[0]=jl*le+cu*jt+lu*bi+Uu*ra,_[1]=jl*ke+cu*Nn+lu*_o+Uu*al,_[2]=jl*Qe+cu*cr+lu*zo+Uu*Pa,_[3]=jl*wt+cu*Ur+lu*qs+Uu*Ol,_[4]=(jl=G[4])*le+(cu=G[5])*jt+(lu=G[6])*bi+(Uu=G[7])*ra,_[5]=jl*ke+cu*Nn+lu*_o+Uu*al,_[6]=jl*Qe+cu*cr+lu*zo+Uu*Pa,_[7]=jl*wt+cu*Ur+lu*qs+Uu*Ol,_[8]=(jl=G[8])*le+(cu=G[9])*jt+(lu=G[10])*bi+(Uu=G[11])*ra,_[9]=jl*ke+cu*Nn+lu*_o+Uu*al,_[10]=jl*Qe+cu*cr+lu*zo+Uu*Pa,_[11]=jl*wt+cu*Ur+lu*qs+Uu*Ol,_[12]=(jl=G[12])*le+(cu=G[13])*jt+(lu=G[14])*bi+(Uu=G[15])*ra,_[13]=jl*ke+cu*Nn+lu*_o+Uu*al,_[14]=jl*Qe+cu*cr+lu*zo+Uu*Pa,_[15]=jl*wt+cu*Ur+lu*qs+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],wt=R[3];return _[0]=G[0]*le+G[4]*ke+G[8]*Qe+G[12]*wt,_[1]=G[1]*le+G[5]*ke+G[9]*Qe+G[13]*wt,_[2]=G[2]*le+G[6]*ke+G[10]*Qe+G[14]*wt,_[3]=G[3]*le+G[7]*ke+G[11]*Qe+G[15]*wt,_}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,wt,jt,Nn,cr){for(var Ur=Jp(G,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),jt.angle,Nn),bi=this.paint.get("circle-radius").evaluate(le,ke)+this.paint.get("circle-stroke-width").evaluate(le,ke),_o=this.paint.get("circle-pitch-alignment")==="map",zo=_o?Ur:function(kc,ac){return kc.map(function(_d){return Im(_d,ac)})}(Ur,cr),qs=_o?bi*Nn:bi,ra=0,al=Qe;ra_.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 wt=_.data,jt=R.data,Nn=0;Nn80*G){le=Qe=_[0],ke=wt=_[1];for(var qs=G;qsQe&&(Qe=jt),Nn>wt&&(wt=Nn);cr=(cr=Math.max(Qe-le,wt-ke))!==0?1/cr:0}return a0(_o,zo,G,le,ke,cr),zo}function Xf(_,R,G,le,ke){var Qe,wt;if(ke===rt(_,R,G,le)>0)for(Qe=R;Qe=R;Qe-=le)wt=_e(Qe,_[Qe],_[Qe+1],wt);return wt&&sm(wt,wt.next)&&(ut(wt),wt=wt.next),wt}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(ut(le),(le=R=le.prev)===le.next)break;G=!0}while(G||le!==R);return R}function a0(_,R,G,le,ke,Qe,wt){if(_){!wt&&Qe&&function(Ur,bi,_o,zo){var qs=Ur;do qs.z===null&&(qs.z=Vg(qs.x,qs.y,bi,_o,zo)),qs.prevZ=qs.prev,qs.nextZ=qs.next,qs=qs.next;while(qs!==Ur);qs.prevZ.nextZ=null,qs.prevZ=null,function(ra){var al,Pa,Ol,jl,cu,lu,Uu,kc,ac=1;do{for(Pa=ra,ra=null,cu=null,lu=0;Pa;){for(lu++,Ol=Pa,Uu=0,al=0;al0||kc>0&&Ol;)Uu!==0&&(kc===0||!Ol||Pa.z<=Ol.z)?(jl=Pa,Pa=Pa.nextZ,Uu--):(jl=Ol,Ol=Ol.nextZ,kc--),cu?cu.nextZ=jl:ra=jl,jl.prevZ=cu,cu=jl;Pa=Ol}cu.nextZ=null,ac*=2}while(lu>1)}(qs)}(_,le,ke,Qe);for(var jt,Nn,cr=_;_.prev!==_.next;)if(jt=_.prev,Nn=_.next,Qe?Kg(_,le,ke,Qe):M0(_))R.push(jt.i/G),R.push(_.i/G),R.push(Nn.i/G),ut(_),_=Nn.next,cr=Nn.next;else if((_=Nn)===cr){wt?wt===1?a0(_=Wm(Zh(_),R,G),R,G,le,ke,Qe,2):wt===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=_,wt=_.next;if(yp(ke,Qe,wt)>=0)return!1;for(var jt=ke.x>Qe.x?ke.x>wt.x?ke.x:wt.x:Qe.x>wt.x?Qe.x:wt.x,Nn=ke.y>Qe.y?ke.y>wt.y?ke.y:wt.y:Qe.y>wt.y?Qe.y:wt.y,cr=Vg(ke.x=cr&&_o&&_o.z<=Ur;){if(bi!==_.prev&&bi!==_.next&&ym(ke.x,ke.y,Qe.x,Qe.y,wt.x,wt.y,bi.x,bi.y)&&yp(bi.prev,bi,bi.next)>=0||(bi=bi.prevZ,_o!==_.prev&&_o!==_.next&&ym(ke.x,ke.y,Qe.x,Qe.y,wt.x,wt.y,_o.x,_o.y)&&yp(_o.prev,_o,_o.next)>=0))return!1;_o=_o.nextZ}for(;bi&&bi.z>=cr;){if(bi!==_.prev&&bi!==_.next&&ym(ke.x,ke.y,Qe.x,Qe.y,wt.x,wt.y,bi.x,bi.y)&&yp(bi.prev,bi,bi.next)>=0)return!1;bi=bi.prevZ}for(;_o&&_o.z<=Ur;){if(_o!==_.prev&&_o!==_.next&&ym(ke.x,ke.y,Qe.x,Qe.y,wt.x,wt.y,_o.x,_o.y)&&yp(_o.prev,_o,_o.next)>=0)return!1;_o=_o.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),ut(le),ut(le.next),le=_=Qe),le=le.next}while(le!==_);return Zh(le)}function m0(_,R,G,le,ke,Qe){var wt=_;do{for(var jt=wt.next.next;jt!==wt.prev;){if(wt.i!==jt.i&&jm(wt,jt)){var Nn=H(wt,jt);return wt=Zh(wt,wt.next),Nn=Zh(Nn,Nn.next),a0(wt,R,G,le,ke,Qe),void a0(Nn,R,G,le,ke,Qe)}jt=jt.next}wt=wt.next}while(wt!==_)}function Gm(_,R){return _.x-R.x}function $d(_,R){if(R=function(le,ke){var Qe,wt=ke,jt=le.x,Nn=le.y,cr=-1/0;do{if(Nn<=wt.y&&Nn>=wt.next.y&&wt.next.y!==wt.y){var Ur=wt.x+(Nn-wt.y)*(wt.next.x-wt.x)/(wt.next.y-wt.y);if(Ur<=jt&&Ur>cr){if(cr=Ur,Ur===jt){if(Nn===wt.y)return wt;if(Nn===wt.next.y)return wt.next}Qe=wt.x=wt.x&&wt.x>=zo&&jt!==wt.x&&ym(NnQe.x||wt.x===Qe.x&&K0(Qe,wt)))&&(Qe=wt,ra=bi)),wt=wt.next;while(wt!==_o);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&&(_-wt)*(le-jt)-(G-wt)*(R-jt)>=0&&(G-wt)*(Qe-jt)-(ke-wt)*(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,wt=(G.x+le.x)/2,jt=(G.y+le.y)/2;do ke.y>jt!=ke.next.y>jt&&ke.next.y!==ke.y&&wt<(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)),wt=Pg(yp(G,le,_)),jt=Pg(yp(G,le,R));return ke!==Qe&&wt!==jt||!(ke!==0||!Ip(_,G,R))||!(Qe!==0||!Ip(_,le,R))||!(wt!==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 mn(_.i,_.x,_.y),le=new mn(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 mn(_,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 ut(_){_.next.prev=_.prev,_.prev.next=_.next,_.prevZ&&(_.prevZ.nextZ=_.nextZ),_.nextZ&&(_.nextZ.prevZ=_.prevZ)}function mn(_,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,wt=G-le;QeNn;){if(cr-Nn>600){var bi=cr-Nn+1,_o=jt-Nn+1,zo=Math.log(bi),qs=.5*Math.exp(2*zo/3),ra=.5*Math.sqrt(zo*qs*(bi-qs)/bi)*(_o-bi/2<0?-1:1);Qe(wt,jt,Math.max(Nn,Math.floor(jt-_o*qs/bi+ra)),Math.min(cr,Math.floor(jt+(bi-_o)*qs/bi+ra)),Ur)}var al=wt[jt],Pa=Nn,Ol=cr;for(It(wt,Nn,jt),Ur(wt[cr],al)>0&&It(wt,Nn,cr);Pa0;)Ol--}Ur(wt[Nn],al)===0?It(wt,Nn,Ol):It(wt,++Ol,cr),Ol<=jt&&(Nn=Ol+1),jt<=Ol&&(cr=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=[],wt=0;wt1)for(var Nn=0;Nn0&&G.holes.push(le+=_[ke-1].length)}return G},Zp.default=k0;var Rn=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 Xo,this.indexArray2=new pc,this.programConfigurations=new Mh(_.layers,_.zoom),this.segments=new ts,this.segments2=new ts,this.stateDependentLayerIds=this.layers.filter(function(R){return R.isStateDependent()}).map(function(R){return R.id})};Rn.prototype.populate=function(_,R,G){this.hasPattern=an("fill",this.layers,R);for(var le=this.layers[0].layout.get("fill-sort-key"),ke=[],Qe=0,wt=_;Qe>3}if(ke--,le===1||le===2)Qe+=_.readSVarint(),wt+=_.readSVarint(),le===1&&(R&&jt.push(R),R=[]),R.push(new w(Qe,wt));else{if(le!==7)throw new Error("unknown command "+le);R&&R.push(R[0].clone())}}return R&&jt.push(R),jt},mr.prototype.bbox=function(){var _=this._pbf;_.pos=this._geometry;for(var R=_.readVarint()+_.pos,G=1,le=0,ke=0,Qe=0,wt=1/0,jt=-1/0,Nn=1/0,cr=-1/0;_.pos>3}if(le--,G===1||G===2)(ke+=_.readSVarint())jt&&(jt=ke),(Qe+=_.readSVarint())cr&&(cr=Qe);else if(G!==7)throw new Error("unknown command "+G)}return[wt,Nn,jt,cr]},mr.prototype.toGeoJSON=function(_,R,G){var le,ke,Qe=this.extent*Math.pow(2,G),wt=this.extent*_,jt=this.extent*R,Nn=this.loadGeometry(),cr=mr.types[this.type];function Ur(zo){for(var qs=0;qs>3;ke=wt===1?le.readString():wt===2?le.readFloat():wt===3?le.readDouble():wt===4?le.readVarint64():wt===5?le.readVarint():wt===6?le.readSVarint():wt===7?le.readBoolean():null}return ke}(G))}function Wi(_,R,G){if(_===3){var le=new Co(G,G.readVarint()+G.pos);le.length&&(R[le.name]=le)}}xi.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 rr(this._pbf,R,this.extent,this._keys,this._values)};var Po={VectorTile:function(_,R){this.layers=_.readFields(Wi,{},R)},VectorTileFeature:rr,VectorTileLayer:Co},wo=Po.VectorTileFeature.types,zs=Math.pow(2,13);function Pr(_,R,G,le,ke,Qe,wt,jt){_.emplaceBack(R,G,2*Math.floor(le*zs)+wt,ke*zs*2,Qe*zs*2,Math.round(jt))}var Ni=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 Xo,this.programConfigurations=new Mh(_.layers,_.zoom),this.segments=new ts,this.stateDependentLayerIds=this.layers.filter(function(R){return R.isStateDependent()}).map(function(R){return R.id})};function Mr(_,R){return _.x===R.x&&(_.x<0||_.x>8192)||_.y===R.y&&(_.y<0||_.y>8192)}Ni.prototype.populate=function(_,R,G){this.features=[],this.hasPattern=an("fill-extrusion",this.layers,R);for(var le=0,ke=_;le8192})||bo.every(function(la){return la.y<0})||bo.every(function(la){return la.y>8192})))for(var ra=0,al=0;al=1){var Ol=qs[al-1];if(!Mr(Pa,Ol)){bi.vertexLength+4>ts.MAX_VERTEX_ARRAY_LENGTH&&(bi=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var jl=Pa.sub(Ol)._perp()._unit(),cu=Ol.dist(Pa);ra+cu>32768&&(ra=0),Pr(this.layoutVertexArray,Pa.x,Pa.y,jl.x,jl.y,0,0,ra),Pr(this.layoutVertexArray,Pa.x,Pa.y,jl.x,jl.y,0,1,ra),Pr(this.layoutVertexArray,Ol.x,Ol.y,jl.x,jl.y,0,0,ra+=cu),Pr(this.layoutVertexArray,Ol.x,Ol.y,jl.x,jl.y,0,1,ra);var lu=bi.vertexLength;this.indexArray.emplaceBack(lu,lu+2,lu+1),this.indexArray.emplaceBack(lu+1,lu+2,lu+3),bi.vertexLength+=4,bi.primitiveLength+=2}}}}if(bi.vertexLength+Nn>ts.MAX_VERTEX_ARRAY_LENGTH&&(bi=this.segments.prepareSegment(Nn,this.layoutVertexArray,this.indexArray)),wo[_.type]==="Polygon"){for(var Uu=[],kc=[],ac=bi.vertexLength,_d=0,Xu=jt;_d=2&&_[Nn-1].equals(_[Nn-2]);)Nn--;for(var cr=0;cr0;if(kc&&Pa>cr){var _d=Ur.dist(zo);if(_d>2*bi){var Xu=Ur.sub(Ur.sub(zo)._mult(bi/_d)._round());this.updateDistance(zo,Xu),this.addCurrentVertex(Xu,ra,0,0,_o),zo=Xu}}var Nd=zo&&qs,qt=Nd?G:jt?"butt":le;if(Nd&&qt==="round"&&(luke&&(qt="bevel"),qt==="bevel"&&(lu>2&&(qt="flipbevel"),lu100)Ol=al.mult(-1);else{var On=lu*ra.add(al).mag()/ra.sub(al).mag();Ol._perp()._mult(On*(ac?-1:1))}this.addCurrentVertex(Ur,Ol,0,0,_o),this.addCurrentVertex(Ur,Ol.mult(-1),0,0,_o)}else if(qt==="bevel"||qt==="fakeround"){var hr=-Math.sqrt(lu*lu-1),Gr=ac?hr:0,bo=ac?0:hr;if(zo&&this.addCurrentVertex(Ur,ra,Gr,bo,_o),qt==="fakeround")for(var la=Math.round(180*Uu/Math.PI/20),Ya=1;Ya2*bi){var fh=Ur.add(qs.sub(Ur)._mult(bi/Kc)._round());this.updateDistance(Ur,fh),this.addCurrentVertex(fh,al,0,0,_o),Ur=fh}}}}},Os.prototype.addCurrentVertex=function(_,R,G,le,ke,Qe){Qe===void 0&&(Qe=!1);var wt=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(_,wt,jt,Qe,!0,-le,ke),this.distance>ys/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(_,R,G,le,ke,Qe))},Os.prototype.addHalfVertex=function(_,R,G,le,ke,Qe,wt){var jt=.5*(this.lineClips?this.scaledDistance*(ys-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 Nn=wt.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Nn),wt.primitiveLength++),ke?this.e2=Nn:this.e1=Nn},Os.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Os.prototype.updateDistance=function(_,R){this.distance+=_.dist(R),this.updateScaledDistance()},Qc("LineBucket",Os,{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"])}),vt={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))(vt.paint.properties["line-width"].specification);Ft.useIntegerZoom=!0;var Dt=function(_){function R(G){_.call(this,G,vt),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 Fa,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 Os(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,wt,jt,Nn){var cr=Jp(G,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),jt.angle,Nn),Ur=Nn/2*$t(this.paint.get("line-width").evaluate(le,ke),this.paint.get("line-gap-width").evaluate(le,ke)),bi=this.paint.get("line-offset").evaluate(le,ke);return bi&&(Qe=function(_o,zo){for(var qs=[],ra=new w(0,0),al=0;al<_o.length;al++){for(var Pa=_o[al],Ol=[],jl=0;jl=3){for(var Pa=0;Pa0?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),Nr=yh([{name:"a_projected_pos",components:3,type:"Float32"}],4),In=(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"}])),Tn=(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,wt){var jt=Qe.layout.get("text-transform").evaluate(wt,{});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 Sr={"!":"\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"},Lo=function(_,R,G,le,ke){var Qe,wt,jt=8*ke-le-1,Nn=(1<>1,Ur=-7,bi=G?ke-1:0,_o=G?-1:1,zo=_[R+bi];for(bi+=_o,Qe=zo&(1<<-Ur)-1,zo>>=-Ur,Ur+=jt;Ur>0;Qe=256*Qe+_[R+bi],bi+=_o,Ur-=8);for(wt=Qe&(1<<-Ur)-1,Qe>>=-Ur,Ur+=le;Ur>0;wt=256*wt+_[R+bi],bi+=_o,Ur-=8);if(Qe===0)Qe=1-cr;else{if(Qe===Nn)return wt?NaN:1/0*(zo?-1:1);wt+=Math.pow(2,le),Qe-=cr}return(zo?-1:1)*wt*Math.pow(2,Qe-le)},kt=function(_,R,G,le,ke,Qe){var wt,jt,Nn,cr=8*Qe-ke-1,Ur=(1<>1,_o=ke===23?Math.pow(2,-24)-Math.pow(2,-77):0,zo=le?0:Qe-1,qs=le?1:-1,ra=R<0||R===0&&1/R<0?1:0;for(R=Math.abs(R),isNaN(R)||R===1/0?(jt=isNaN(R)?1:0,wt=Ur):(wt=Math.floor(Math.log(R)/Math.LN2),R*(Nn=Math.pow(2,-wt))<1&&(wt--,Nn*=2),(R+=wt+bi>=1?_o/Nn:_o*Math.pow(2,1-bi))*Nn>=2&&(wt++,Nn/=2),wt+bi>=Ur?(jt=0,wt=Ur):wt+bi>=1?(jt=(R*Nn-1)*Math.pow(2,ke),wt+=bi):(jt=R*Math.pow(2,bi-1)*Math.pow(2,ke),wt=0));ke>=8;_[G+zo]=255&jt,zo+=qs,jt/=256,ke-=8);for(wt=wt<0;_[G+zo]=255&wt,zo+=qs,wt/=256,cr-=8);_[G+zo-qs]|=128*ra},tr=Pn;function Pn(_){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(_)?_:new Uint8Array(_||0),this.pos=0,this.type=0,this.length=this.buf.length}Pn.Varint=0,Pn.Fixed64=1,Pn.Bytes=2,Pn.Fixed32=5;var ir=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function dr(_){return _.type===Pn.Bytes?_.readVarint()+_.pos:_.pos+1}function jr(_,R,G){return G?4294967296*R+(_>>>0):4294967296*(R>>>0)+(_>>>0)}function Ri(_,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 Te(_,R){for(var G=0;G<_.length;G++)R.writeVarint(_[G])}function qo(_,R){for(var G=0;G<_.length;G++)R.writeSVarint(_[G])}function Zs(_,R){for(var G=0;G<_.length;G++)R.writeFloat(_[G])}function Sa(_,R){for(var G=0;G<_.length;G++)R.writeDouble(_[G])}function da(_,R){for(var G=0;G<_.length;G++)R.writeBoolean(_[G])}function Rs(_,R){for(var G=0;G<_.length;G++)R.writeFixed32(_[G])}function ma(_,R){for(var G=0;G<_.length;G++)R.writeSFixed32(_[G])}function ko(_,R){for(var G=0;G<_.length;G++)R.writeFixed64(_[G])}function or(_,R){for(var G=0;G<_.length;G++)R.writeSFixed64(_[G])}function Ai(_,R){return(_[R]|_[R+1]<<8|_[R+2]<<16)+16777216*_[R+3]}function Gi(_,R,G){_[G]=R,_[G+1]=R>>>8,_[G+2]=R>>>16,_[G+3]=R>>>24}function ds(_,R){return(_[R]|_[R+1]<<8|_[R+2]<<16)+(_[R+3]<<24)}function Ps(_,R,G){_===1&&G.readMessage(ha,R)}function ha(_,R,G){if(_===3){var le=G.readMessage(Yo,{}),ke=le.width,Qe=le.height,wt=le.left,jt=le.top,Nn=le.advance;R.push({id:le.id,bitmap:new Lg({width:ke+6,height:Qe+6},le.bitmap),metrics:{width:ke,height:Qe,left:wt,top:jt,advance:Nn}})}}function Yo(_,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 sr(_){for(var R=0,G=0,le=0,ke=_;le=0;_o--){var zo=wt[_o];if(!(bi.w>zo.w||bi.h>zo.h)){if(bi.x=zo.x,bi.y=zo.y,Nn=Math.max(Nn,bi.y+bi.h),jt=Math.max(jt,bi.x+bi.w),bi.w===zo.w&&bi.h===zo.h){var qs=wt.pop();_o>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 _=Ai(this.buf,this.pos);return this.pos+=4,_},readSFixed32:function(){var _=ds(this.buf,this.pos);return this.pos+=4,_},readFixed64:function(){var _=Ai(this.buf,this.pos)+4294967296*Ai(this.buf,this.pos+4);return this.pos+=8,_},readSFixed64:function(){var _=Ai(this.buf,this.pos)+4294967296*ds(this.buf,this.pos+4);return this.pos+=8,_},readFloat:function(){var _=Lo(this.buf,this.pos,!0,23,4);return this.pos+=4,_},readDouble:function(){var _=Lo(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,wt){var jt,Nn,cr=wt.buf;if(jt=(112&(Nn=cr[wt.pos++]))>>4,Nn<128||(jt|=(127&(Nn=cr[wt.pos++]))<<3,Nn<128)||(jt|=(127&(Nn=cr[wt.pos++]))<<10,Nn<128)||(jt|=(127&(Nn=cr[wt.pos++]))<<17,Nn<128)||(jt|=(127&(Nn=cr[wt.pos++]))<<24,Nn<128)||(jt|=(1&(Nn=cr[wt.pos++]))<<31,Nn<128))return jr(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&&ir?function(G,le,ke){return ir.decode(G.subarray(le,ke))}(this.buf,R,_):function(G,le,ke){for(var Qe="",wt=le;wt239?4:Ur>223?3:Ur>191?2:1;if(wt+_o>ke)break;_o===1?Ur<128&&(bi=Ur):_o===2?(192&(jt=G[wt+1]))==128&&(bi=(31&Ur)<<6|63&jt)<=127&&(bi=null):_o===3?(Nn=G[wt+2],(192&(jt=G[wt+1]))==128&&(192&Nn)==128&&((bi=(15&Ur)<<12|(63&jt)<<6|63&Nn)<=2047||bi>=55296&&bi<=57343)&&(bi=null)):_o===4&&(Nn=G[wt+2],cr=G[wt+3],(192&(jt=G[wt+1]))==128&&(192&Nn)==128&&(192&cr)==128&&((bi=(15&Ur)<<18|(63&jt)<<12|(63&Nn)<<6|63&cr)<=65535||bi>=1114112)&&(bi=null)),bi===null?(bi=65533,_o=1):bi>65535&&(bi-=65536,Qe+=String.fromCharCode(bi>>>10&1023|55296),bi=56320|1023&bi),Qe+=String.fromCharCode(bi),wt+=_o}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!==Pn.Bytes)return _.push(this.readVarint(R));var G=dr(this);for(_=_||[];this.pos127;);else if(R===Pn.Bytes)this.pos=this.readVarint()+this.pos;else if(R===Pn.Fixed32)this.pos+=4;else{if(R!==Pn.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,wt,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,wt){var jt=(7&Qe)<<4;wt.buf[wt.pos++]|=jt|((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)))))}(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 wt,jt,Nn=0;Nn55295&&wt<57344){if(!jt){wt>56319||Nn+1===ke.length?(le[Qe++]=239,le[Qe++]=191,le[Qe++]=189):jt=wt;continue}if(wt<56320){le[Qe++]=239,le[Qe++]=191,le[Qe++]=189,jt=wt;continue}wt=jt-55296<<10|wt-56320|65536,jt=null}else jt&&(le[Qe++]=239,le[Qe++]=191,le[Qe++]=189,jt=null);wt<128?le[Qe++]=wt:(wt<2048?le[Qe++]=wt>>6|192:(wt<65536?le[Qe++]=wt>>12|224:(le[Qe++]=wt>>18|240,le[Qe++]=wt>>12&63|128),le[Qe++]=wt>>6&63|128),le[Qe++]=63&wt|128)}return Qe}(this.buf,_,this.pos);var G=this.pos-R;G>=128&&Ri(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&&Ri(G,le,this),this.pos=G-1,this.writeVarint(le),this.pos+=le},writeMessage:function(_,R,G){this.writeTag(_,Pn.Bytes),this.writeRawMessage(R,G)},writePackedVarint:function(_,R){R.length&&this.writeMessage(_,Te,R)},writePackedSVarint:function(_,R){R.length&&this.writeMessage(_,qo,R)},writePackedBoolean:function(_,R){R.length&&this.writeMessage(_,da,R)},writePackedFloat:function(_,R){R.length&&this.writeMessage(_,Zs,R)},writePackedDouble:function(_,R){R.length&&this.writeMessage(_,Sa,R)},writePackedFixed32:function(_,R){R.length&&this.writeMessage(_,Rs,R)},writePackedSFixed32:function(_,R){R.length&&this.writeMessage(_,ma,R)},writePackedFixed64:function(_,R){R.length&&this.writeMessage(_,ko,R)},writePackedSFixed64:function(_,R){R.length&&this.writeMessage(_,or,R)},writeBytesField:function(_,R){this.writeTag(_,Pn.Bytes),this.writeBytes(R)},writeFixed32Field:function(_,R){this.writeTag(_,Pn.Fixed32),this.writeFixed32(R)},writeSFixed32Field:function(_,R){this.writeTag(_,Pn.Fixed32),this.writeSFixed32(R)},writeFixed64Field:function(_,R){this.writeTag(_,Pn.Fixed64),this.writeFixed64(R)},writeSFixed64Field:function(_,R){this.writeTag(_,Pn.Fixed64),this.writeSFixed64(R)},writeVarintField:function(_,R){this.writeTag(_,Pn.Varint),this.writeVarint(R)},writeSVarintField:function(_,R){this.writeTag(_,Pn.Varint),this.writeSVarint(R)},writeStringField:function(_,R){this.writeTag(_,Pn.Bytes),this.writeString(R)},writeFloatField:function(_,R){this.writeTag(_,Pn.Fixed32),this.writeFloat(R)},writeDoubleField:function(_,R){this.writeTag(_,Pn.Fixed64),this.writeDouble(R)},writeBooleanField:function(_,R){this.writeVarintField(_,!!R)}};var io=function(_,R){var G=R.pixelRatio,le=R.version,ke=R.stretchX,Qe=R.stretchY,wt=R.content;this.paddedRect=_,this.pixelRatio=G,this.stretchX=ke,this.stretchY=Qe,this.content=wt,this.version=le},ws={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};ws.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},ws.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},ws.tlbr.get=function(){return this.tl.concat(this.br)},ws.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(io.prototype,ws);var ul=function(_,R){var G={},le={};this.haveRenderCallbacks=[];var ke=[];this.addImages(_,G,ke),this.addImages(R,le,ke);var Qe=sr(ke),wt=new ug({width:Qe.w||1,height:Qe.h||1});for(var jt in _){var Nn=_[jt],cr=G[jt].paddedRect;ug.copy(Nn.data,wt,{x:0,y:0},{x:cr.x+1,y:cr.y+1},Nn.data)}for(var Ur in R){var bi=R[Ur],_o=le[Ur].paddedRect,zo=_o.x+1,qs=_o.y+1,ra=bi.data.width,al=bi.data.height;ug.copy(bi.data,wt,{x:0,y:0},{x:zo,y:qs},bi.data),ug.copy(bi.data,wt,{x:0,y:al-1},{x:zo,y:qs-1},{width:ra,height:1}),ug.copy(bi.data,wt,{x:0,y:0},{x:zo,y:qs+al},{width:ra,height:1}),ug.copy(bi.data,wt,{x:ra-1,y:0},{x:zo-1,y:qs},{width:1,height:al}),ug.copy(bi.data,wt,{x:0,y:0},{x:zo+ra,y:qs},{width:1,height:al})}this.image=wt,this.iconPositions=G,this.patternPositions=le};ul.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 io(Qe,ke),ke.hasRenderCallback&&this.haveRenderCallbacks.push(le)}},ul.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)},ul.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",io),Qc("ImageAtlas",ul);var Dl={horizontal:1,vertical:2,horizontalOnly:3},Ba=function(){this.scale=1,this.fontStack="",this.imageName=null};Ba.forText=function(_,R){var G=new Ba;return G.scale=_||1,G.fontStack=R,G},Ba.forImage=function(_){var R=new Ba;return R.imageName=_,R};var Ss=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function wl(_,R,G,le,ke,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs,ra){var al,Pa=Ss.fromFeature(_,ke);bi===Dl.vertical&&Pa.verticalizePunctuation();var Ol=ag.processBidirectionalText,jl=ag.processStyledBidirectionalText;if(Ol&&Pa.sections.length===1){al=[];for(var cu=0,lu=Ol(Pa.toString(),$l(Pa,cr,Qe,R,le,zo,qs));cu0&&Lp>Ef&&(Ef=Lp)}else{var qf=la[Fd.fontStack],kp=qf&&qf[Tg];if(kp&&kp.rect)mf=kp.rect,Ep=kp.metrics;else{var Kp=bo[Fd.fontStack],rp=Kp&&Kp[Tg];if(!rp)continue;Ep=rp.metrics}dm=24*(Yf-Fd.scale)}Ru?(Gr.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),++es}else cg+=Xl,++es}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>=_&&rl[this.text.charCodeAt(le)];le--)G--;this.text=this.text.substring(_,G),this.sectionIndex=this.sectionIndex.slice(_,G)},Ss.prototype.substring=function(_,R){var G=new Ss;return G.text=this.text.substring(_,R),G.sectionIndex=this.sectionIndex.slice(_,R),G.sections=this.sections,G},Ss.prototype.toString=function(){return this.text},Ss.prototype.getMaxScale=function(){var _=this;return this.sectionIndex.reduce(function(R,G){return Math.max(R,_.sections[G].scale)},0)},Ss.prototype.addTextSection=function(_,R){this.text+=_.text,this.sections.push(Ba.forText(_.scale,_.fontStack||R));for(var G=this.sections.length-1,le=0;le<_.text.length;++le)this.sectionIndex.push(G)},Ss.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(Ba.forImage(R)),this.sectionIndex.push(this.sections.length-1)):Ce("Reached maximum number of images 6401")}else Ce("Can't add FormattedSection with an empty image.")},Ss.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var rl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},mc={};function pl(_,R,G,le,ke,Qe){if(R.imageName){var wt=le[R.imageName];return wt?wt.displaySize[0]*R.scale*24/Qe+ke:0}var jt=G[R.fontStack],Nn=jt&&jt[_];return Nn?Nn.metrics.advance*R.scale+ke:0}function oc(_,R,G,le){var ke=Math.pow(_-R,2);return le?_=0,bi=0,_o=0;_o<_.length();_o++){var zo=_.getSection(_o),qs=_.getCharCode(_o);if(rl[qs]||(bi+=pl(qs,zo,le,ke,R,wt)),_o<_.length()-1){var ra=!((jt=qs)<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[qs]||ra||zo.imageName)&&Nn.push(qu(_o+1,bi,cr,Nn,Ca(qs,_.getCharCode(_o+1),ra&&Ur),!1))}}return function al(Pa){return Pa?al(Pa.priorBreak).concat(Pa.index):[]}(qu(_.length(),bi,cr,Nn,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],wt=(_[G].x+Qe.metrics.advance*Qe.scale)*le,jt=R;jt<=G;jt++)_[jt].x-=wt,_[jt].y+=ke}function Js(_,R,G,le,ke,Qe){var wt,jt=_.image;if(jt.content){var Nn=jt.content,cr=jt.pixelRatio||1;wt=[Nn[0]/cr,Nn[1]/cr,jt.displaySize[0]-Nn[2]/cr,jt.displaySize[1]-Nn[3]/cr]}var Ur,bi,_o,zo,qs=R.left*Qe,ra=R.right*Qe;G==="width"||G==="both"?(zo=ke[0]+qs-le[3],bi=ke[0]+ra+le[1]):bi=(zo=ke[0]+(qs+ra-jt.displaySize[0])/2)+jt.displaySize[0];var al=R.top*Qe,Pa=R.bottom*Qe;return G==="height"||G==="both"?(Ur=ke[1]+al-le[0],_o=ke[1]+Pa+le[2]):_o=(Ur=ke[1]+(al+Pa-jt.displaySize[1])/2)+jt.displaySize[1],{image:jt,top:Ur,right:bi,bottom:_o,left:zo,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 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(--wt<0)return!1;jt-=_[wt].dist(Qe),Qe=_[wt]}jt+=_[wt].dist(_[wt+1]),wt++;for(var Nn=[],cr=0;jtle;)cr-=Nn.shift().angleDelta;if(cr>ke)return!1;wt++,jt+=Ur.dist(bi)}return!0}function wn(_){for(var R=0,G=0;G<_.length-1;G++)R+=_[G].dist(_[G+1]);return R}function li(_,R,G){return _?.6*R*G:0}function Fi(_,R){return Math.max(_?_.right-_.left:0,R?R.right-R.left:0)}function _s(_,R,G,le,ke,Qe){for(var wt=li(G,ke,Qe),jt=Fi(G,le)*Qe,Nn=0,cr=wn(_)/2,Ur=0;Ur<_.length-1;Ur++){var bi=_[Ur],_o=_[Ur+1],zo=bi.dist(_o);if(Nn+zo>cr){var qs=(cr-Nn)/zo,ra=gl(bi.x,_o.x,qs),al=gl(bi.y,_o.y,qs),Pa=new Gc(ra,al,_o.angleTo(bi),Ur);return Pa._round(),!wt||Or(_,Pa,jt,wt,R)?Pa:void 0}Nn+=zo}}function Ea(_,R,G,le,ke,Qe,wt,jt,Nn){var cr=li(le,Qe,wt),Ur=Fi(le,ke),bi=Ur*wt,_o=_[0].x===0||_[0].x===Nn||_[0].y===0||_[0].y===Nn;return R-bi=0&&Ya=0&&ka=0&&Xu+kc<=ac){var Xl=new Gc(Ya,ka,bo,qt);Xl._round(),Pa&&!Or(qs,Xl,jl,Pa,Ol)||Nd.push(Xl)}}_d+=Gr}return lu||Nd.length||cu||(Nd=zo(qs,_d/2,al,Pa,Ol,jl,cu,!0,Uu)),Nd}(_,_o?R/2*jt%R:(Ur/2+2*Qe)*wt*jt%R,R,cr,G,bi,_o,!1,Nn)}function Aa(_,R,G,le,ke){for(var Qe=[],wt=0;wt<_.length;wt++)for(var jt=_[wt],Nn=void 0,cr=0;cr=le&&bi.x>=le||(Ur.x>=le?Ur=new w(le,Ur.y+(le-Ur.x)/(bi.x-Ur.x)*(bi.y-Ur.y))._round():bi.x>=le&&(bi=new w(le,Ur.y+(le-Ur.x)/(bi.x-Ur.x)*(bi.y-Ur.y))._round()),Ur.y>=ke&&bi.y>=ke||(Ur.y>=ke?Ur=new w(Ur.x+(ke-Ur.y)/(bi.y-Ur.y)*(bi.x-Ur.x),ke)._round():bi.y>=ke&&(bi=new w(Ur.x+(ke-Ur.y)/(bi.y-Ur.y)*(bi.x-Ur.x),ke)._round()),Nn&&Ur.equals(Nn[Nn.length-1])||Qe.push(Nn=[Ur]),Nn.push(bi)))))}return Qe}function bl(_,R,G,le){var ke=[],Qe=_.image,wt=Qe.pixelRatio,jt=Qe.paddedRect.w-2,Nn=Qe.paddedRect.h-2,cr=_.right-_.left,Ur=_.bottom-_.top,bi=Qe.stretchX||[[0,jt]],_o=Qe.stretchY||[[0,Nn]],zo=function(Ya,ka){return Ya+ka[1]-ka[0]},qs=bi.reduce(zo,0),ra=_o.reduce(zo,0),al=jt-qs,Pa=Nn-ra,Ol=0,jl=qs,cu=0,lu=ra,Uu=0,kc=al,ac=0,_d=Pa;if(Qe.content&&le){var Xu=Qe.content;Ol=Ql(bi,0,Xu[0]),cu=Ql(_o,0,Xu[1]),jl=Ql(bi,Xu[0],Xu[2]),lu=Ql(_o,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(Ya,ka,Xl,wu){var Ls=As(Ya.stretch-Ol,jl,cr,_.left),Kc=Xa(Ya.fixed-Uu,kc,Ya.stretch,qs),fh=As(ka.stretch-cu,lu,Ur,_.top),ph=Xa(ka.fixed-ac,_d,ka.stretch,ra),rh=As(Xl.stretch-Ol,jl,cr,_.left),wh=Xa(Xl.fixed-Uu,kc,Xl.stretch,qs),cg=As(wu.stretch-cu,lu,Ur,_.top),yg=Xa(wu.fixed-ac,_d,wu.stretch,ra),Nh=new w(Ls,fh),nf=new w(rh,fh),es=new w(rh,cg),Rl=new w(Ls,cg),Zf=new w(Kc/wt,ph/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];Nh._matMult(kd),nf._matMult(kd),Rl._matMult(kd),es._matMult(kd)}var Ef=Ya.stretch+Ya.fixed,Rg=ka.stretch+ka.fixed;return{tl:Nh,tr:nf,bl:Rl,br:es,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/cr,minFontScaleY:_d/wt/Ur,isSDF:G}};if(le&&(Qe.stretchX||Qe.stretchY))for(var qt=Ju(bi,al,qs),On=Ju(_o,Pa,ra),hr=0;hr0&&(zo=Math.max(10,zo),this.circleDiameter=zo)}else{var qs=Qe.top*wt-jt,ra=Qe.bottom*wt+jt,al=Qe.left*wt-jt,Pa=Qe.right*wt+jt,Ol=Qe.collisionPadding;if(Ol&&(al-=Ol[0]*wt,qs-=Ol[1]*wt,Pa+=Ol[2]*wt,ra+=Ol[3]*wt),cr){var jl=new w(al,qs),cu=new w(Pa,qs),lu=new w(al,ra),Uu=new w(Pa,ra),kc=cr*Math.PI/180;jl._rotate(kc),cu._rotate(kc),lu._rotate(kc),Uu._rotate(kc),al=Math.min(jl.x,cu.x,lu.x,Uu.x),Pa=Math.max(jl.x,cu.x,lu.x,Uu.x),qs=Math.min(jl.y,cu.y,lu.y,Uu.y),ra=Math.max(jl.y,cu.y,lu.y,Uu.y)}_.emplaceBack(R.x,R.y,al,qs,Pa,ra,G,le,ke)}this.boxEndIndex=_.length},qa=function(_,R){if(_===void 0&&(_=[]),R===void 0&&(R=Ta),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 Ta(_,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,wt=-1/0,jt=_[0],Nn=0;NnQe)&&(Qe=cr.x),(!Nn||cr.y>wt)&&(wt=cr.y)}var Ur=Math.min(Qe-le,wt-ke),bi=Ur/2,_o=new qa([],Wc);if(Ur===0)return new w(le,ke);for(var zo=le;zora.d||!ra.d)&&(ra=Pa,G&&console.log("found best %d after %d probes",Math.round(1e4*Pa.d)/1e4,al)),Pa.max-ra.d<=R||(_o.push(new os(Pa.p.x-(bi=Pa.h/2),Pa.p.y-bi,bi,_)),_o.push(new os(Pa.p.x+bi,Pa.p.y-bi,bi,_)),_o.push(new os(Pa.p.x-bi,Pa.p.y+bi,bi,_)),_o.push(new os(Pa.p.x+bi,Pa.p.y+bi,bi,_)),al+=4)}return G&&(console.log("num probes: "+al),console.log("best distance: "+ra.d)),ra.p}function Wc(_,R){return R.max-_.max}function os(_,R,G,le){this.p=new w(_,R),this.h=G,this.d=function(ke,Qe){for(var wt=!1,jt=1/0,Nn=0;Nnke.y!=qs.y>ke.y&&ke.x<(qs.x-zo.x)*(ke.y-zo.y)/(qs.y-zo.y)+zo.x&&(wt=!wt),jt=Math.min(jt,mm(ke,zo,qs))}return(wt?1:-1)*Math.sqrt(jt)}(this.p,le),this.max=this.d+this.h*Math.SQRT2}qa.prototype.push=function(_){this.data.push(_),this.length++,this._up(this.length-1)},qa.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)),_}},qa.prototype.peek=function(){return this.data[0]},qa.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},qa.prototype._down=function(_){for(var R=this.data,G=this.compare,le=this.length>>1,ke=R[_];_=0)break;R[_]=wt,_=Qe}R[_]=ke};var Mo=Number.POSITIVE_INFINITY;function ks(_,R){return R[1]!==Mo?function(G,le,ke){var Qe=0,wt=0;switch(le=Math.abs(le),ke=Math.abs(ke),G){case"top-right":case"top-left":case"top":wt=ke-7;break;case"bottom-right":case"bottom-left":case"bottom":wt=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,wt]}(_,R[0],R[1]):function(G,le){var ke=0,Qe=0;le<0&&(le=0);var wt=le/Math.sqrt(2);switch(G){case"top-right":case"top-left":Qe=wt-7;break;case"bottom-right":case"bottom-left":Qe=7-wt;break;case"bottom":Qe=7-le;break;case"top":Qe=le-7}switch(G){case"top-right":case"bottom-right":ke=-wt;break;case"top-left":case"bottom-left":ke=wt;break;case"left":ke=le;break;case"right":ke=-le}return[ke,Qe]}(_,R[0])}function Da(_){switch(_){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Na(_,R,G,le,ke,Qe,wt,jt,Nn,cr,Ur,bi,_o,zo,qs){var ra=function(cu,lu,Uu,kc,ac,_d,Xu,Nd){for(var qt=kc.layout.get("text-rotate").evaluate(_d,{})*Math.PI/180,On=[],hr=0,Gr=lu.positionedLines;hr32640&&Ce(_.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):al.kind==="composite"&&((Pa=[128*zo.compositeTextSizes[0].evaluate(wt,{},qs),128*zo.compositeTextSizes[1].evaluate(wt,{},qs)])[0]>32640||Pa[1]>32640)&&Ce(_.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),_.addSymbols(_.text,ra,Pa,jt,Qe,wt,cr,R,Nn.lineStartIndex,Nn.lineLength,_o,qs);for(var Ol=0,jl=Ur;Ol=0;wt--)if(le.dist(Qe[wt])0)&&(Qe.value.kind!=="constant"||Qe.value.value.length>0),cr=jt.value.kind!=="constant"||!!jt.value.value||Object.keys(jt.parameters).length>0,Ur=ke.get("symbol-sort-key");if(this.features=[],Nn||cr){for(var bi=R.iconDependencies,_o=R.glyphDependencies,zo=R.availableImages,qs=new Md(this.zoom),ra=0,al=_;ra=0;for(var bo=0,la=ac.sections;bo=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 Nn=0;Nn0},ta.prototype.hasIconData=function(){return this.icon.segments.get().length>0},ta.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},ta.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},ta.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},ta.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)===wt&&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",ta,{omit:["layers","collisionBoxArray","features","compareText"]}),ta.MAX_GLYPHS=65535,ta.addDynamicAttributes=Ci;var vl=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:Qr,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:Jr,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=[],wt=0,jt=ke;wt",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 ge()||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:[],wt=R.hasCallback?function(Ur,bi){ke=!0,delete G.cancelCallbacks[_],G.target.postMessage({id:_,type:"",sourceMapId:G.mapId,error:Ur?no(Ur):null,data:no(bi,Qe)},Qe)}:function(Ur){ke=!0},jt=null,Nn=bc(R.data);if(this.parent[R.type])jt=this.parent[R.type](R.sourceMapId,Nn,wt);else if(this.parent.getWorkerSource){var cr=R.type.split(".");jt=this.parent.getWorkerSource(R.sourceMapId,cr[0],Nn.source)[cr[1]](Nn,wt)}else wt(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(te(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 on(_){return Lt*Math.cos(_*Math.PI/180)}function Fn(_){return(180+_)/360}function Yn(_){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+_*Math.PI/360)))/360}function zi(_,R){return _/on(R)}function ns(_){return 360/Math.PI*Math.atan(Math.exp((180-360*_)*Math.PI/180))-90}var Fo=function(_,R,G){G===void 0&&(G=0),this.x=+_,this.y=+R,this.z=+G};Fo.fromLngLat=function(_,R){R===void 0&&(R=0);var G=ot.convert(_);return new Fo(Fn(G.lng),Yn(G.lat),zi(R,G.lat))},Fo.prototype.toLngLat=function(){return new ot(360*this.x-180,ns(this.y))},Fo.prototype.toAltitude=function(){return this.z*on(ns(this.y))},Fo.prototype.meterInMercatorCoordinateUnits=function(){return 1/Lt*(_=ns(this.y),1/Math.cos(_*Math.PI/180));var _};var Ho=function(_,R,G){this.z=_,this.x=R,this.y=G,this.key=Gl(0,_,_,R,G)};Ho.prototype.equals=function(_){return this.z===_.z&&this.x===_.x&&this.y===_.y},Ho.prototype.url=function(_,R){var G,le,ke,Qe,wt,jt=(le=this.y,ke=this.z,Qe=Je(256*(G=this.x),256*(le=Math.pow(2,ke)-le-1),ke),wt=Je(256*(G+1),256*(le+1),ke),Qe[0]+","+Qe[1]+","+wt[0]+","+wt[1]),Nn=function(cr,Ur,bi){for(var _o,zo="",qs=cr;qs>0;qs--)zo+=(Ur&(_o=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 Fo(_.x-this.wrap,_.y))},Qc("CanonicalTileID",Ho),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 Ce('"'+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,wt=G*this.dim+this.dim;switch(R){case-1:le=ke-1;break;case 1:ke=le+1}switch(G){case-1:Qe=wt-1;break;case 1:wt=Qe+1}for(var jt=-R*this.dim,Nn=-G*this.dim,cr=Qe;cr=0&&Ur[3]>=0&&jt.insert(wt,Ur[0],Ur[1],Ur[2],Ur[3])}},ic.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Po.VectorTile(new tr(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||{},wt=8192/_.tileSize/_.scale,jt=uf(Qe.filter),Nn=_.queryGeometry,cr=_.queryPadding*wt,Ur=Oo(Nn),bi=this.grid.query(Ur.minX-cr,Ur.minY-cr,Ur.maxX+cr,Ur.maxY+cr),_o=Oo(_.cameraQueryGeometry),zo=this.grid3D.query(_o.minX-cr,_o.minY-cr,_o.maxX+cr,_o.maxY+cr,function(cu,lu,Uu,kc){return function(ac,_d,Xu,Nd,qt){for(var On=0,hr=ac;On=Gr.x&&qt>=Gr.y)return!0}var bo=[new w(_d,Xu),new w(_d,qt),new w(Nd,qt),new w(Nd,Xu)];if(ac.length>2){for(var la=0,Ya=bo;la=0)return!0;return!1}(Qe,bi)){var _o=this.sourceLayerCoder.decode(G),zo=this.vtLayers[_o].feature(le);if(ke.needGeometry){var qs=ld(zo,!0);if(!ke.filter(new Md(this.tileID.overscaledZ),qs,this.tileID.canonical))return}else if(!ke.filter(new Md(this.tileID.overscaledZ),zo))return;for(var ra=this.getId(zo,_o),al=0;alle)ke=!1;else if(R)if(this.expirationTimezn&&(_.getActor().send("enforceCacheSizeLimit",Ht),ii=0)},b.clamp=W,b.clearTileCache=function(_){var R=C.caches.delete("mapbox-tiles");_&&R.catch(_).then(function(){return _()})},b.clipLine=Aa,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=ri,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],wt=G[0],jt=G[1],Nn=G[2];return _[0]=ke*Nn-Qe*jt,_[1]=Qe*wt-le*Nn,_[2]=le*jt-ke*wt,_},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=gl,b.offscreenCanvasSupported=si,b.ortho=function(_,R,G,le,ke,Qe,wt){var jt=1/(R-G),Nn=1/(le-ke),cr=1/(Qe-wt);return _[0]=-2*jt,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=-2*Nn,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[10]=2*cr,_[11]=0,_[12]=(R+G)*jt,_[13]=(ke+le)*Nn,_[14]=(wt+Qe)*cr,_[15]=1,_},b.parseGlyphPBF=function(_){return new tr(_).readFields(Ps,[])},b.pbf=tr,b.performSymbolLayout=function(_,R,G,le,ke,Qe,wt){_.createArrays(),_.tilePixelRatio=8192/(512*_.overscaling),_.compareText={},_.iconsNeedLinear=!1;var jt=_.layers[0].layout,Nn=_.layers[0]._unevaluatedLayout._values,cr={};if(_.textSizeData.kind==="composite"){var Ur=_.textSizeData,bi=Ur.maxZoom;cr.compositeTextSizes=[Nn["text-size"].possiblyEvaluate(new Md(Ur.minZoom),wt),Nn["text-size"].possiblyEvaluate(new Md(bi),wt)]}if(_.iconSizeData.kind==="composite"){var _o=_.iconSizeData,zo=_o.maxZoom;cr.compositeIconSizes=[Nn["icon-size"].possiblyEvaluate(new Md(_o.minZoom),wt),Nn["icon-size"].possiblyEvaluate(new Md(zo),wt)]}cr.layoutTextSize=Nn["text-size"].possiblyEvaluate(new Md(_.zoom+1),wt),cr.layoutIconSize=Nn["icon-size"].possiblyEvaluate(new Md(_.zoom+1),wt),cr.textMaxSize=Nn["text-size"].possiblyEvaluate(new Md(18));for(var qs=24*jt.get("text-line-height"),ra=jt.get("text-rotation-alignment")==="map"&&jt.get("symbol-placement")!=="point",al=jt.get("text-keep-upright"),Pa=jt.get("text-size"),Ol=function(){var lu=cu[jl],Uu=jt.get("text-font").evaluate(lu,{},wt).join(","),kc=Pa.evaluate(lu,{},wt),ac=cr.layoutTextSize.evaluate(lu,{},wt),_d=cr.layoutIconSize.evaluate(lu,{},wt),Xu={horizontal:{},vertical:void 0},Nd=lu.text,qt=[0,0];if(Nd){var On=Nd.toString(),hr=24*jt.get("text-letter-spacing").evaluate(lu,{},wt),Gr=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}(On)?hr:0,bo=jt.get("text-anchor").evaluate(lu,{},wt),la=jt.get("text-variable-anchor");if(!la){var Ya=jt.get("text-radial-offset").evaluate(lu,{},wt);qt=Ya?ks(bo,[24*Ya,Mo]):jt.get("text-offset").evaluate(lu,{},wt).map(function(Rl){return 24*Rl})}var ka=ra?"center":jt.get("text-justify").evaluate(lu,{},wt),Xl=jt.get("symbol-placement"),wu=Xl==="point"?24*jt.get("text-max-width").evaluate(lu,{},wt):0,Ls=function(){_.allowVerticalPlacement&&Bc(On)&&(Xu.vertical=wl(Nd,R,G,ke,Uu,wu,qs,bo,"left",Gr,qt,Dl.vertical,!0,Xl,ac,kc))};if(!ra&&la){for(var Kc=ka==="auto"?la.map(function(Rl){return Da(Rl)}):[ka],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),qi=0,C_=0,Xy=0,b1=0,uy=-1,U1=-1,y0={},J_=Gs(""),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=Mo),vc.allowVerticalPlacement&&rf.vertical){var Dy=hp.layout.get("text-rotate").evaluate(v0,{},Dv)+90;fm=new vr(t0,bh,Dg,Xm,V0,rf.vertical,Ev,yv,Ng,Dy),up&&(z0=new vr(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=bl(Tp,Ay,Gf,H1),jv=up?bl(up,Ay,Gf,H1):void 0;_1=new vr(t0,bh,Dg,Xm,V0,Tp,oC,ly,!1,Ay),qi=4*Iy.length;var i1=vc.iconSizeData,cv=null;i1.kind==="source"?(cv=[128*hp.layout.get("icon-size").evaluate(v0,{})])[0]>32640&&Ce(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)&&Ce(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_=Gs(o1.text);var dv=hp.layout.get("text-rotate").evaluate(v0,{},Dv);l0=new vr(t0,bh,Dg,Xm,V0,o1,Ev,yv,Ng,dv)}var iv=o1.positionedLines.length===1;if(Xy+=Na(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+=Na(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>=ta.MAX_GLYPHS&&Ce("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,qi,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=Aa(Zf.geometry,0,0,8192,8192);hg1){var V1=_s(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=Ei.maxzoom||Ei.visibility!=="none"&&(C(Gn,this.zoom,Fr),(Bt[Ei.id]=Ei.createBucket({index:rn.bucketLayerIDs.length,layers:Gn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ti,sourceID:this.source})).populate(co,pn,this.tileID.canonical),rn.bucketLayerIDs.push(Gn.map(function(Mi){return Mi.id})))}}}var Ln=b.mapObject(pn.glyphDependencies,function(Mi){return Object.keys(Mi).map(Number)});Object.keys(Ln).length?mi.send("getGlyphs",{uid:this.uid,stacks:Ln},function(Mi,Rr){Qn||(Qn=Mi,Xr=Rr,wi.call(ti))}):Xr={};var Ii=Object.keys(pn.iconDependencies);Ii.length?mi.send("getImages",{icons:Ii,source:this.source,tileID:this.tileID,type:"icons"},function(Mi,Rr){Qn||(Qn=Mi,ao=Rr,wi.call(ti))}):ao={};var nr=Object.keys(pn.patternDependencies);function wi(){if(Qn)return Tr(Qn);if(Xr&&ao&&as){var Mi=new w(Xr),Rr=new b.ImageAtlas(ao,as);for(var Xn in Bt){var ms=Bt[Xn];ms instanceof b.SymbolBucket?(C(ms.layers,this.zoom,Fr),b.performSymbolLayout(ms,Xr,Mi.positions,ao,Rr.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):ms.hasPattern&&(ms instanceof b.LineBucket||ms instanceof b.FillBucket||ms instanceof b.FillExtrusionBucket)&&(C(ms.layers,this.zoom,Fr),ms.addFeatures(pn,this.tileID.canonical,Rr.patternPositions))}this.status="done",Tr(null,{buckets:b.values(Bt).filter(function(ya){return!ya.isEmpty()}),featureIndex:rn,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Mi.image,imageAtlas:Rr,glyphMap:this.returnDependencies?Xr:null,iconMap:this.returnDependencies?ao:null,glyphPositions:this.returnDependencies?Mi.positions:null})}}nr.length?mi.send("getImages",{icons:nr,source:this.source,tileID:this.tileID,type:"patterns"},function(Mi,Rr){Qn||(Qn=Mi,as=Rr,wi.call(ti))}):as={},wi.call(this)};var S=function($n,Kn,Fr,mi){this.actor=$n,this.layerIndex=Kn,this.availableImages=Fr,this.loadVectorData=mi||f,this.loading={},this.loaded={}};S.prototype.loadTile=function($n,Kn){var Fr=this,mi=$n.uid;this.loading||(this.loading={});var Tr=!!($n&&$n.request&&$n.request.collectResourceTiming)&&new b.RequestPerformance($n.request),ti=this.loading[mi]=new A($n);ti.abort=this.loadVectorData($n,function(di,rn){if(delete Fr.loading[mi],di||!rn)return ti.status="done",Fr.loaded[mi]=ti,Kn(di);var Qn=rn.rawData,Xr={};rn.expires&&(Xr.expires=rn.expires),rn.cacheControl&&(Xr.cacheControl=rn.cacheControl);var ao={};if(Tr){var as=Tr.finish();as&&(ao.resourceTiming=JSON.parse(JSON.stringify(as)))}ti.vectorTile=rn.vectorTile,ti.parse(rn.vectorTile,Fr.layerIndex,Fr.availableImages,Fr.actor,function(Bt,pn){if(Bt||!pn)return Kn(Bt);Kn(null,b.extend({rawTileData:Qn.slice(0)},pn,Xr,ao))}),Fr.loaded=Fr.loaded||{},Fr.loaded[mi]=ti})},S.prototype.reloadTile=function($n,Kn){var Fr=this,mi=this.loaded,Tr=$n.uid,ti=this;if(mi&&mi[Tr]){var di=mi[Tr];di.showCollisionBoxes=$n.showCollisionBoxes;var rn=function(Qn,Xr){var ao=di.reloadCallback;ao&&(delete di.reloadCallback,di.parse(di.vectorTile,ti.layerIndex,Fr.availableImages,ti.actor,ao)),Kn(Qn,Xr)};di.status==="parsing"?di.reloadCallback=rn:di.status==="done"&&(di.vectorTile?di.parse(di.vectorTile,this.layerIndex,this.availableImages,this.actor,rn):rn())}},S.prototype.abortTile=function($n,Kn){var Fr=this.loading,mi=$n.uid;Fr&&Fr[mi]&&Fr[mi].abort&&(Fr[mi].abort(),delete Fr[mi]),Kn()},S.prototype.removeTile=function($n,Kn){var Fr=this.loaded,mi=$n.uid;Fr&&Fr[mi]&&delete Fr[mi],Kn()};var P=b.window.ImageBitmap,W=function(){this.loaded={}};function te($n,Kn){if($n.length!==0){re($n[0],Kn);for(var Fr=1;Fr<$n.length;Fr++)re($n[Fr],!Kn)}}function re($n,Kn){for(var Fr=0,mi=0,Tr=0,ti=$n.length,di=ti-1;Tr=Math.abs(rn)?Fr-Qn+rn:rn-Qn+Fr,Fr=Qn}Fr+mi>=0!=!!Kn&&$n.reverse()}W.prototype.loadTile=function($n,Kn){var Fr=$n.uid,mi=$n.encoding,Tr=$n.rawImageData,ti=P&&Tr instanceof P?this.getImageData(Tr):Tr,di=new b.DEMData(Fr,ti,mi);this.loaded=this.loaded||{},this.loaded[Fr]=di,Kn(null,di)},W.prototype.getImageData=function($n){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas($n.width,$n.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=$n.width,this.offscreenCanvas.height=$n.height,this.offscreenCanvasContext.drawImage($n,0,0,$n.width,$n.height);var Kn=this.offscreenCanvasContext.getImageData(-1,-1,$n.width+2,$n.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new b.RGBAImage({width:Kn.width,height:Kn.height},Kn.data)},W.prototype.removeTile=function($n){var Kn=this.loaded,Fr=$n.uid;Kn&&Kn[Fr]&&delete Kn[Fr]};var ce=b.vectorTile.VectorTileFeature.prototype.toGeoJSON,pe=function($n){this._feature=$n,this.extent=b.EXTENT,this.type=$n.type,this.properties=$n.tags,"id"in $n&&!isNaN($n.id)&&(this.id=parseInt($n.id,10))};pe.prototype.loadGeometry=function(){if(this._feature.type===1){for(var $n=[],Kn=0,Fr=this._feature.geometry;Kn>31}function Se($n,Kn){for(var Fr=$n.loadGeometry(),mi=$n.type,Tr=0,ti=0,di=Fr.length,rn=0;rn>1;(function Ti(co,Qr,oi,Zi,Ir,tn){for(;Ir>Zi;){if(Ir-Zi>600){var Gn=Ir-Zi+1,Ei=oi-Zi+1,Ln=Math.log(Gn),Ii=.5*Math.exp(2*Ln/3),nr=.5*Math.sqrt(Ln*Ii*(Gn-Ii)/Gn)*(Ei-Gn/2<0?-1:1);Ti(co,Qr,oi,Math.max(Zi,Math.floor(oi-Ei*Ii/Gn+nr)),Math.min(Ir,Math.floor(oi+(Gn-Ei)*Ii/Gn+nr)),tn)}var wi=Qr[2*oi+tn],Mi=Zi,Rr=Ir;for(dt(co,Qr,Zi,oi),Qr[2*Ir+tn]>wi&&dt(co,Qr,Zi,Ir);Miwi;)Rr--}Qr[2*Zi+tn]===wi?dt(co,Qr,Zi,Rr):dt(co,Qr,++Rr,Ir),Rr<=oi&&(Zi=Rr+1),oi<=Rr&&(Ir=Rr-1)}})(ao,as,vi,pn,xr,Jr%2),Xr(ao,as,Bt,pn,vi-1,Jr+1),Xr(ao,as,Bt,vi+1,xr,Jr+1)}})(di,rn,mi,0,di.length-1,0)};mt.prototype.range=function($n,Kn,Fr,mi){return function(Tr,ti,di,rn,Qn,Xr,ao){for(var as,Bt,pn=[0,Tr.length-1,0],xr=[];pn.length;){var Jr=pn.pop(),vi=pn.pop(),Ti=pn.pop();if(vi-Ti<=ao)for(var co=Ti;co<=vi;co++)Bt=ti[2*co+1],(as=ti[2*co])>=di&&as<=Qn&&Bt>=rn&&Bt<=Xr&&xr.push(Tr[co]);else{var Qr=Math.floor((Ti+vi)/2);Bt=ti[2*Qr+1],(as=ti[2*Qr])>=di&&as<=Qn&&Bt>=rn&&Bt<=Xr&&xr.push(Tr[Qr]);var oi=(Jr+1)%2;(Jr===0?di<=as:rn<=Bt)&&(pn.push(Ti),pn.push(Qr-1),pn.push(oi)),(Jr===0?Qn>=as:Xr>=Bt)&&(pn.push(Qr+1),pn.push(vi),pn.push(oi))}}return xr}(this.ids,this.coords,$n,Kn,Fr,mi,this.nodeSize)},mt.prototype.within=function($n,Kn,Fr){return function(mi,Tr,ti,di,rn,Qn){for(var Xr=[0,mi.length-1,0],ao=[],as=rn*rn;Xr.length;){var Bt=Xr.pop(),pn=Xr.pop(),xr=Xr.pop();if(pn-xr<=Qn)for(var Jr=xr;Jr<=pn;Jr++)Ct(Tr[2*Jr],Tr[2*Jr+1],ti,di)<=as&&ao.push(mi[Jr]);else{var vi=Math.floor((xr+pn)/2),Ti=Tr[2*vi],co=Tr[2*vi+1];Ct(Ti,co,ti,di)<=as&&ao.push(mi[vi]);var Qr=(Bt+1)%2;(Bt===0?ti-rn<=Ti:di-rn<=co)&&(Xr.push(xr),Xr.push(vi-1),Xr.push(Qr)),(Bt===0?ti+rn>=Ti:di+rn>=co)&&(Xr.push(vi+1),Xr.push(pn),Xr.push(Qr))}}return ao}(this.ids,this.coords,$n,Kn,Fr,this.nodeSize)};var yn={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function($n){return $n}},Bn=function($n){this.options=Bo(Object.create(yn),$n),this.trees=new Array(this.options.maxZoom+1)};function Lr($n,Kn,Fr,mi,Tr){return{x:$n,y:Kn,zoom:1/0,id:Fr,parentId:-1,numPoints:mi,properties:Tr}}function ri($n,Kn){var Fr=$n.geometry.coordinates,mi=Fr[1];return{x:To(Fr[0]),y:_r(mi),zoom:1/0,index:Kn,parentId:-1}}function gi($n){return{type:"Feature",id:$n.id,properties:ro($n),geometry:{type:"Point",coordinates:[(mi=$n.x,360*(mi-.5)),(Kn=$n.y,Fr=(180-360*Kn)*Math.PI/180,360*Math.atan(Math.exp(Fr))/Math.PI-90)]}};var Kn,Fr,mi}function ro($n){var Kn=$n.numPoints,Fr=Kn>=1e4?Math.round(Kn/1e3)+"k":Kn>=1e3?Math.round(Kn/100)/10+"k":Kn;return Bo(Bo({},$n.properties),{cluster:!0,cluster_id:$n.id,point_count:Kn,point_count_abbreviated:Fr})}function To($n){return $n/360+.5}function _r($n){var Kn=Math.sin($n*Math.PI/180),Fr=.5-.25*Math.log((1+Kn)/(1-Kn))/Math.PI;return Fr<0?0:Fr>1?1:Fr}function Bo($n,Kn){for(var Fr in Kn)$n[Fr]=Kn[Fr];return $n}function fs($n){return $n.x}function me($n){return $n.y}function So($n,Kn,Fr,mi,Tr,ti){var di=Tr-Fr,rn=ti-mi;if(di!==0||rn!==0){var Qn=(($n-Fr)*di+(Kn-mi)*rn)/(di*di+rn*rn);Qn>1?(Fr=Tr,mi=ti):Qn>0&&(Fr+=di*Qn,mi+=rn*Qn)}return(di=$n-Fr)*di+(rn=Kn-mi)*rn}function ho($n,Kn,Fr,mi){var Tr={id:$n===void 0?null:$n,type:Kn,geometry:Fr,tags:mi,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(ti){var di=ti.geometry,rn=ti.type;if(rn==="Point"||rn==="MultiPoint"||rn==="LineString")go(ti,di);else if(rn==="Polygon"||rn==="MultiLineString")for(var Qn=0;Qn0&&(di+=mi?(Tr*Xr-Qn*ti)/2:Math.sqrt(Math.pow(Qn-Tr,2)+Math.pow(Xr-ti,2))),Tr=Qn,ti=Xr}var ao=Kn.length-3;Kn[2]=1,function as(Bt,pn,xr,Jr){for(var vi,Ti=Jr,co=xr-pn>>1,Qr=xr-pn,oi=Bt[pn],Zi=Bt[pn+1],Ir=Bt[xr],tn=Bt[xr+1],Gn=pn+3;GnTi)vi=Gn,Ti=Ei;else if(Ei===Ti){var Ln=Math.abs(Gn-co);LnJr&&(vi-pn>3&&as(Bt,pn,vi,Jr),Bt[vi+2]=Ti,xr-vi>3&&as(Bt,vi,xr,Jr))}(Kn,0,ao,Fr),Kn[ao+2]=1,Kn.size=Math.abs(di),Kn.start=0,Kn.end=Kn.size}function Ve($n,Kn,Fr,mi){for(var Tr=0;Tr<$n.length;Tr++){var ti=[];dn($n[Tr],ti,Fr,mi),Kn.push(ti)}}function yt($n){return $n/360+.5}function xt($n){var Kn=Math.sin($n*Math.PI/180),Fr=.5-.25*Math.log((1+Kn)/(1-Kn))/Math.PI;return Fr<0?0:Fr>1?1:Fr}function Wt($n,Kn,Fr,mi,Tr,ti,di,rn){if(mi/=Kn,ti>=(Fr/=Kn)&&di=mi)return null;for(var Qn=[],Xr=0;Xr<$n.length;Xr++){var ao=$n[Xr],as=ao.geometry,Bt=ao.type,pn=Tr===0?ao.minX:ao.minY,xr=Tr===0?ao.maxX:ao.maxY;if(pn>=Fr&&xr=mi)){var Jr=[];if(Bt==="Point"||Bt==="MultiPoint")sn(as,Jr,Fr,mi,Tr);else if(Bt==="LineString")Ot(as,Jr,Fr,mi,Tr,!1,rn.lineMetrics);else if(Bt==="MultiLineString")bt(as,Jr,Fr,mi,Tr,!1);else if(Bt==="Polygon")bt(as,Jr,Fr,mi,Tr,!0);else if(Bt==="MultiPolygon")for(var vi=0;vi=Fr&&di<=mi&&(Kn.push($n[ti]),Kn.push($n[ti+1]),Kn.push($n[ti+2]))}}function Ot($n,Kn,Fr,mi,Tr,ti,di){for(var rn,Qn,Xr=Tt($n),ao=Tr===0?zn:en,as=$n.start,Bt=0;Bt<$n.length-3;Bt+=3){var pn=$n[Bt],xr=$n[Bt+1],Jr=$n[Bt+2],vi=$n[Bt+3],Ti=$n[Bt+4],co=Tr===0?pn:xr,Qr=Tr===0?vi:Ti,oi=!1;di&&(rn=Math.sqrt(Math.pow(pn-vi,2)+Math.pow(xr-Ti,2))),coFr&&(Qn=ao(Xr,pn,xr,vi,Ti,Fr),di&&(Xr.start=as+rn*Qn)):co>mi?Qr=Fr&&(Qn=ao(Xr,pn,xr,vi,Ti,Fr),oi=!0),Qr>mi&&co<=mi&&(Qn=ao(Xr,pn,xr,vi,Ti,mi),oi=!0),!ti&&oi&&(di&&(Xr.end=as+rn*Qn),Kn.push(Xr),Xr=Tt($n)),di&&(as+=rn)}var Zi=$n.length-3;pn=$n[Zi],xr=$n[Zi+1],Jr=$n[Zi+2],(co=Tr===0?pn:xr)>=Fr&&co<=mi&&Ht(Xr,pn,xr,Jr),Zi=Xr.length-3,ti&&Zi>=3&&(Xr[Zi]!==Xr[0]||Xr[Zi+1]!==Xr[1])&&Ht(Xr,Xr[0],Xr[1],Xr[2]),Xr.length&&Kn.push(Xr)}function Tt($n){var Kn=[];return Kn.size=$n.size,Kn.start=$n.start,Kn.end=$n.end,Kn}function bt($n,Kn,Fr,mi,Tr,ti){for(var di=0;di<$n.length;di++)Ot($n[di],Kn,Fr,mi,Tr,ti,!1)}function Ht($n,Kn,Fr,mi){$n.push(Kn),$n.push(Fr),$n.push(mi)}function zn($n,Kn,Fr,mi,Tr,ti){var di=(ti-Kn)/(mi-Kn);return $n.push(ti),$n.push(Fr+(Tr-Fr)*di),$n.push(1),di}function en($n,Kn,Fr,mi,Tr,ti){var di=(ti-Fr)/(Tr-Fr);return $n.push(Kn+(mi-Kn)*di),$n.push(ti),$n.push(1),di}function fr($n,Kn){for(var Fr=[],mi=0;mi<$n.length;mi++){var Tr,ti=$n[mi],di=ti.type;if(di==="Point"||di==="MultiPoint"||di==="LineString")Tr=Kr(ti.geometry,Kn);else if(di==="MultiLineString"||di==="Polygon"){Tr=[];for(var rn=0;rndi.maxX&&(di.maxX=ao),as>di.maxY&&(di.maxY=as)}return di}function Qo($n,Kn,Fr,mi){var Tr=Kn.geometry,ti=Kn.type,di=[];if(ti==="Point"||ti==="MultiPoint")for(var rn=0;rn0&&Kn.size<(Tr?di:mi))Fr.numPoints+=Kn.length/3;else{for(var rn=[],Qn=0;Qndi)&&(Fr.numSimplified++,rn.push(Kn[Qn]),rn.push(Kn[Qn+1])),Fr.numPoints++;Tr&&function(Xr,ao){for(var as=0,Bt=0,pn=Xr.length,xr=pn-2;Bt0===ao)for(Bt=0,pn=Xr.length;Bt24)throw new Error("maxZoom should be in the 0-24 range");if(Kn.promoteId&&Kn.generateId)throw new Error("promoteId and generateId cannot be used together.");var mi=function(Tr,ti){var di=[];if(Tr.type==="FeatureCollection")for(var rn=0;rn=mi;Xr--){var ao=+Date.now();rn=this._cluster(rn,Xr),this.trees[Xr]=new mt(rn,fs,me,ti,Float32Array),Fr&&console.log("z%d: %d clusters in %dms",Xr,rn.length,+Date.now()-ao)}return Fr&&console.timeEnd("total time"),this},Bn.prototype.getClusters=function($n,Kn){var Fr=(($n[0]+180)%360+360)%360-180,mi=Math.max(-90,Math.min(90,$n[1])),Tr=$n[2]===180?180:(($n[2]+180)%360+360)%360-180,ti=Math.max(-90,Math.min(90,$n[3]));if($n[2]-$n[0]>=360)Fr=-180,Tr=180;else if(Fr>Tr){var di=this.getClusters([Fr,mi,180,ti],Kn),rn=this.getClusters([-180,mi,Tr,ti],Kn);return di.concat(rn)}for(var Qn=this.trees[this._limitZoom(Kn)],Xr=[],ao=0,as=Qn.range(To(Fr),_r(ti),To(Tr),_r(mi));aoKn&&(Bt+=Jr.numPoints||1)}if(Bt>=ti){for(var vi=Qn.x*as,Ti=Qn.y*as,co=Tr&&as>1?this._map(Qn,!0):null,Qr=(rn<<5)+(Kn+1)+this.points.length,oi=0,Zi=ao;oi1)for(var Gn=0,Ei=ao;Gn>5},Bn.prototype._getOriginZoom=function($n){return($n-this.points.length)%32},Bn.prototype._map=function($n,Kn){if($n.numPoints)return Kn?Bo({},$n.properties):$n.properties;var Fr=this.points[$n.index].properties,mi=this.options.map(Fr);return Kn&&mi===Fr?Bo({},mi):mi},Vr.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Vr.prototype.splitTile=function($n,Kn,Fr,mi,Tr,ti,di){for(var rn=[$n,Kn,Fr,mi],Qn=this.options,Xr=Qn.debug;rn.length;){mi=rn.pop(),Fr=rn.pop(),Kn=rn.pop(),$n=rn.pop();var ao=1<1&&console.time("creation"),Bt=this.tiles[as]=uo($n,Kn,Fr,mi,Qn),this.tileCoords.push({z:Kn,x:Fr,y:mi}),Xr)){Xr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Kn,Fr,mi,Bt.numFeatures,Bt.numPoints,Bt.numSimplified),console.timeEnd("creation"));var pn="z"+Kn;this.stats[pn]=(this.stats[pn]||0)+1,this.total++}if(Bt.source=$n,Tr){if(Kn===Qn.maxZoom||Kn===Tr)continue;var xr=1<1&&console.time("clipping");var Jr,vi,Ti,co,Qr,oi,Zi=.5*Qn.buffer/Qn.extent,Ir=.5-Zi,tn=.5+Zi,Gn=1+Zi;Jr=vi=Ti=co=null,Qr=Wt($n,ao,Fr-Zi,Fr+tn,0,Bt.minX,Bt.maxX,Qn),oi=Wt($n,ao,Fr+Ir,Fr+Gn,0,Bt.minX,Bt.maxX,Qn),$n=null,Qr&&(Jr=Wt(Qr,ao,mi-Zi,mi+tn,1,Bt.minY,Bt.maxY,Qn),vi=Wt(Qr,ao,mi+Ir,mi+Gn,1,Bt.minY,Bt.maxY,Qn),Qr=null),oi&&(Ti=Wt(oi,ao,mi-Zi,mi+tn,1,Bt.minY,Bt.maxY,Qn),co=Wt(oi,ao,mi+Ir,mi+Gn,1,Bt.minY,Bt.maxY,Qn),oi=null),Xr>1&&console.timeEnd("clipping"),rn.push(Jr||[],Kn+1,2*Fr,2*mi),rn.push(vi||[],Kn+1,2*Fr,2*mi+1),rn.push(Ti||[],Kn+1,2*Fr+1,2*mi),rn.push(co||[],Kn+1,2*Fr+1,2*mi+1)}}},Vr.prototype.getTile=function($n,Kn,Fr){var mi=this.options,Tr=mi.extent,ti=mi.debug;if($n<0||$n>24)return null;var di=1<<$n,rn=qr($n,Kn=(Kn%di+di)%di,Fr);if(this.tiles[rn])return ii(this.tiles[rn],Tr);ti>1&&console.log("drilling down to z%d-%d-%d",$n,Kn,Fr);for(var Qn,Xr=$n,ao=Kn,as=Fr;!Qn&&Xr>0;)Xr--,ao=Math.floor(ao/2),as=Math.floor(as/2),Qn=this.tiles[qr(Xr,ao,as)];return Qn&&Qn.source?(ti>1&&console.log("found parent tile z%d-%d-%d",Xr,ao,as),ti>1&&console.time("drilling down"),this.splitTile(Qn.source,Xr,ao,as,$n,Kn,Fr),ti>1&&console.timeEnd("drilling down"),this.tiles[rn]?ii(this.tiles[rn],Tr):null):null};var xo=function($n){function Kn(Fr,mi,Tr,ti){$n.call(this,Fr,mi,Tr,Ui),ti&&(this.loadGeoJSON=ti)}return $n&&(Kn.__proto__=$n),(Kn.prototype=Object.create($n&&$n.prototype)).constructor=Kn,Kn.prototype.loadData=function(Fr,mi){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=mi,this._pendingLoadDataParams=Fr,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},Kn.prototype._loadData=function(){var Fr=this;if(this._pendingCallback&&this._pendingLoadDataParams){var mi=this._pendingCallback,Tr=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var ti=!!(Tr&&Tr.request&&Tr.request.collectResourceTiming)&&new b.RequestPerformance(Tr.request);this.loadGeoJSON(Tr,function(di,rn){if(di||!rn)return mi(di);if(typeof rn!="object")return mi(new Error("Input data given to '"+Tr.source+"' is not a valid GeoJSON object."));(function Bt(pn,xr){var Jr,vi=pn&&pn.type;if(vi==="FeatureCollection")for(Jr=0;Jr=0?0:X.button},k.remove=function(X){X.parentNode&&X.parentNode.removeChild(X)};var re=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(J){if(this.loaded!==J&&(this.loaded=J,J)){for(var ae=0,it=this.requestors;ae=0?1.2:1))}function Be(X,ne,J,ae,it,Rt,nn){for(var qn=0;qn65535)ei(new Error("glyphs > 65535 not supported"));else if(ts.ranges[ca])ei(null,{stack:gr,id:ss,glyph:Is});else{var na=ts.requests[ca];na||(na=ts.requests[ca]=[],je.loadGlyphRange(gr,ca,J.url,J.requestManager,function(Ko,Gs){if(Gs){for(var Va in Gs)J._doesCharSupportLocalGlyph(+Va)||(ts.glyphs[+Va]=Gs[+Va]);ts.ranges[ca]=!0}for(var _l=0,nu=na;_l1&&(qn=X[++nn]);var gr=Math.abs(ei-qn.left),ss=Math.abs(ei-qn.right),ts=Math.min(gr,ss),Is=void 0,ca=it/J*(ae+1);if(qn.isDash){var na=ae-Math.abs(ca);Is=Math.sqrt(ts*ts+na*na)}else Is=ae-Math.sqrt(ts*ts+ca*ca);this.data[Rt+ei]=Math.max(0,Math.min(255,Is+128))}},Ce.prototype.addRegularDash=function(X){for(var ne=X.length-1;ne>=0;--ne){var J=X[ne],ae=X[ne+1];J.zeroLength?X.splice(ne,1):ae&&ae.isDash===J.isDash&&(ae.left=J.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 nn=this.width*this.nextRow,qn=0,ei=X[qn],gr=0;gr1&&(ei=X[++qn]);var ss=Math.abs(gr-ei.left),ts=Math.abs(gr-ei.right),Is=Math.min(ss,ts);this.data[nn+gr]=Math.max(0,Math.min(255,(ei.isDash?Is:-Is)+128))}},Ce.prototype.addDash=function(X,ne){var J=ne?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&&(gr[new b.OverscaledTileID(J.overscaledZ,nn,ae.z,Rt,ae.y-1).key]={backfilled:!1},gr[new b.OverscaledTileID(J.overscaledZ,J.wrap,ae.z,ae.x,ae.y-1).key]={backfilled:!1},gr[new b.OverscaledTileID(J.overscaledZ,ei,ae.z,qn,ae.y-1).key]={backfilled:!1}),ae.y+10&&(it.resourceTiming=J._resourceTiming,J._resourceTiming=[]),J.fire(new b.Event("data",it))}})},ne.prototype.onAdd=function(J){this.map=J,this.load()},ne.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},ne.prototype.getClusterExpansionZoom=function(J,ae){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:J,source:this.id},ae),this},ne.prototype.getClusterChildren=function(J,ae){return this.actor.send("geojson.getClusterChildren",{clusterId:J,source:this.id},ae),this},ne.prototype.getClusterLeaves=function(J,ae,it,Rt){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:J,limit:ae,offset:it},Rt),this},ne.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(nn,qn){ae._removed||qn&&qn.abandoned||(ae._loaded=!0,qn&&qn.resourceTiming&&qn.resourceTiming[ae.id]&&(ae._resourceTiming=qn.resourceTiming[ae.id].slice(0)),ae.actor.send(ae.type+".coalesce",{source:it.source},null),J(nn))})},ne.prototype.loaded=function(){return this._loaded},ne.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(nn,qn){return delete J.request,J.unloadVectorData(),J.aborted?ae(null):nn?ae(nn):(J.loadVectorData(qn,it.map.painter,Rt==="reloadTile"),ae(null))})},ne.prototype.abortTile=function(J){J.request&&(J.request.cancel(),delete J.request),J.aborted=!0},ne.prototype.unloadTile=function(J){J.unloadVectorData(),this.actor.send("removeTile",{uid:J.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),He=b.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Ct=function(X){function ne(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&&(ne.__proto__=X),(ne.prototype=Object.create(X&&X.prototype)).constructor=ne,ne.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,nn){it._loaded=!0,Rt?it.fire(new b.ErrorEvent(Rt)):nn&&(it.image=nn,J&&(it.coordinates=J),ae&&ae(),it._finishLoading())})},ne.prototype.loaded=function(){return this._loaded},ne.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},ne.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new b.Event("data",{dataType:"source",sourceDataType:"metadata"})))},ne.prototype.onAdd=function(J){this.map=J,this.load()},ne.prototype.setCoordinates=function(J){var ae=this;this.coordinates=J;var it=J.map(b.MercatorCoordinate.fromLngLat);this.tileID=function(nn){for(var qn=1/0,ei=1/0,gr=-1/0,ss=-1/0,ts=0,Is=nn;tsae.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}},ne.prototype.getVideo=function(){return this.video},ne.prototype.onAdd=function(J){this.map||(this.map=J,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 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)}}},ne.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},ne.prototype.hasTransition=function(){return this.video&&!this.video.paused},ne}(Ct),zt=function(X){function ne(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(nn){return!Array.isArray(nn)||nn.length!==2||nn.some(function(qn){return typeof qn!="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&&(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(J){this.map=J,this.load(),this.canvas&&this.animate&&this.play()},ne.prototype.onRemove=function(){this.pause()},ne.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 nn=this.tiles[Rt];nn.state!=="loaded"&&(nn.state="loaded",nn.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 J=0,ae=[this.canvas.width,this.canvas.height];Jthis.max){var nn=this._getAndRemoveByKey(this.order[0]);nn&&this.onRemove(nn)}return this},ri.prototype.has=function(X){return X.wrapped().key in this.data},ri.prototype.getAndRemove=function(X){return this.has(X)?this._getAndRemoveByKey(X.wrapped().key):null},ri.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},ri.prototype.getByKey=function(X){var ne=this.data[X];return ne?ne[0].value:null},ri.prototype.get=function(X){return this.has(X)?this.data[X.wrapped().key][0].value:null},ri.prototype.remove=function(X,ne){if(!this.has(X))return this;var J=X.wrapped().key,ae=ne===void 0?0:this.data[J].indexOf(ne),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},ri.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},ri.prototype.filter=function(X){var ne=[];for(var J in this.data)for(var ae=0,it=this.data[J];ae1||(Math.abs(ss)>1&&(Math.abs(ss+Is)===1?ss+=Is:Math.abs(ss-Is)===1&&(ss-=Is)),gr.dem&&ei.dem&&(ei.dem.backfillBorder(gr.dem,ss,ts),ei.neighboringTiles&&ei.neighboringTiles[ca]&&(ei.neighboringTiles[ca].backfilled=!0)))}},ne.prototype.getTile=function(J){return this.getTileByID(J.key)},ne.prototype.getTileByID=function(J){return this._tiles[J]},ne.prototype._retainLoadedChildren=function(J,ae,it,Rt){for(var nn in this._tiles){var qn=this._tiles[nn];if(!(Rt[nn]||!qn.hasData()||qn.tileID.overscaledZ<=ae||qn.tileID.overscaledZ>it)){for(var ei=qn.tileID;qn&&qn.tileID.overscaledZ>ae+1;){var gr=qn.tileID.scaledTo(qn.tileID.overscaledZ-1);(qn=this._tiles[gr.key])&&qn.hasData()&&(ei=gr)}for(var ss=ei;ss.overscaledZ>ae;)if(J[(ss=ss.scaledTo(ss.overscaledZ-1)).key]){Rt[ei.key]=ei;break}}}},ne.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 nn=J.scaledTo(Rt),qn=this._getLoadedTile(nn);if(qn)return qn}},ne.prototype._getLoadedTile=function(J){var ae=this._tiles[J.key];return ae&&ae.hasData()?ae:this._cache.getByKey(J.wrapped().key)},ne.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),nn=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Rt):Rt;this._cache.setMaxSize(nn)},ne.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 nn=this._tiles[Rt];nn.tileID=nn.tileID.unwrapTo(nn.tileID.wrap+ae),it[nn.tileID.key]=nn}for(var qn in this._tiles=it,this._timers)clearTimeout(this._timers[qn]),delete this._timers[qn];for(var ei in this._tiles)this._setTileReloadTimer(ei,this._tiles[ei])}},ne.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),nn=Math.max(Rt-ne.maxOverzooming,this._source.minzoom),qn=Math.max(Rt+ne.maxUnderzooming,this._source.minzoom),ei=this._updateRetainedTiles(it,Rt);if(ao(this._source.type)){for(var gr={},ss={},ts=0,Is=Object.keys(ei);tsthis._source.maxzoom){var Va=Ko.children(this._source.maxzoom)[0],_l=this.getTile(Va);if(_l&&_l.hasData()){it[Va.key]=Va;continue}}else{var nu=Ko.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=Gs.wasRequested(),Tu=Ko.overscaledZ-1;Tu>=nn;--Tu){var Cu=Ko.scaledTo(Tu);if(Rt[Cu.key]||(Rt[Cu.key]=!0,!(Gs=this.getTile(Cu))&&xu&&(Gs=this._addTile(Cu)),Gs&&(it[Cu.key]=Cu,xu=Gs.wasRequested(),Gs.hasData())))break}}}return it},ne.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 nn=Rt.scaledTo(Rt.overscaledZ-1);if(it=this._getLoadedTile(nn))break;Rt=nn}for(var qn=0,ei=ae;qn0||(ae.hasData()&&ae.state!=="reloading"?this._cache.add(ae.tileID,ae,ae.getExpiryTimeout()):(ae.aborted=!0,this._abortTile(ae),this._unloadTile(ae))))},ne.prototype.clearTiles=function(){for(var J in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(J);this._cache.reset()},ne.prototype.tilesIn=function(J,ae,it){var Rt=this,nn=[],qn=this.transform;if(!qn)return nn;for(var ei=it?qn.getCameraQueryGeometry(J):J,gr=J.map(function(Tu){return qn.pointCoordinate(Tu)}),ss=ei.map(function(Tu){return qn.pointCoordinate(Tu)}),ts=this.getIds(),Is=1/0,ca=1/0,na=-1/0,Ko=-1/0,Gs=0,Va=ss;Gs=0&&hd[1].y+wc>=0){var Td=gr.map(function(Jd){return dc.getTilePoint(Jd)}),ch=ss.map(function(Jd){return dc.getTilePoint(Jd)});nn.push({tile:Cu,tileID:dc,queryGeometry:Td,cameraQueryGeometry:ch,scale:Hc})}}},xu=0;xu=b.browser.now())return!0}return!1},ne.prototype.setFeatureState=function(J,ae,it){this._state.updateState(J=J||"_geojsonTileLayer",ae,it)},ne.prototype.removeFeatureState=function(J,ae,it){this._state.removeFeatureState(J=J||"_geojsonTileLayer",ae,it)},ne.prototype.getFeatureState=function(J,ae){return this._state.getState(J=J||"_geojsonTileLayer",ae)},ne.prototype.setDependencies=function(J,ae,it){var Rt=this._tiles[J];Rt&&Rt.setDependencies(ae,it)},ne.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)})},ne}(b.Evented);function Xr(X,ne){var J=Math.abs(2*X.wrap)-+(X.wrap<0),ae=Math.abs(2*ne.wrap)-+(ne.wrap<0);return X.overscaledZ-ne.overscaledZ||ae-J||ne.canonical.y-X.canonical.y||ne.canonical.x-X.canonical.x}function ao(X){return X==="raster"||X==="image"||X==="video"}function as(){return new b.window.Worker(Rd.workerUrl)}Qn.maxOverzooming=10,Qn.maxUnderzooming=3;var Bt="mapboxgl_preloaded_worker_pool",pn=function(){this.active={}};pn.prototype.acquire=function(X){if(!this.workers)for(this.workers=[];this.workers.length0?(ae-Rt)/nn:0;return this.points[it].mult(1-qn).add(this.points[ne].mult(qn))};var nr=function(X,ne,J){var ae=this.boxCells=[],it=this.circleCells=[];this.xCellCount=Math.ceil(X/J),this.yCellCount=Math.ceil(ne/J);for(var Rt=0;Rt=-ne[0]&&J<=ne[0]&&ae>=-ne[1]&&ae<=ne[1]}function ya(X,ne,J,ae,it,Rt,nn,qn){var ei=ae?X.textSizeData:X.iconSizeData,gr=b.evaluateSizeForZoom(ei,J.transform.zoom),ss=[256/J.width*2+1,256/J.height*2+1],ts=ae?X.text.dynamicLayoutVertexArray:X.icon.dynamicLayoutVertexArray;ts.clear();for(var Is=X.lineVertexArray,ca=ae?X.text.placedSymbolArray:X.icon.placedSymbolArray,na=J.transform.width/J.transform.height,Ko=!1,Gs=0;GsMath.abs(J.x-ne.x)*ae?{useVertical:!0}:(X===b.WritingMode.vertical?ne.yJ.x)?{needsFlipping:!0}:null}function Ua(X,ne,J,ae,it,Rt,nn,qn,ei,gr,ss,ts,Is,ca){var na,Ko=ne/24,Gs=X.lineOffsetX*Ko,Va=X.lineOffsetY*Ko;if(X.numGlyphs>1){var _l=X.glyphStartIndex+X.numGlyphs,nu=X.lineStartIndex,xu=X.lineStartIndex+X.lineLength,Tu=fa(Ko,qn,Gs,Va,J,ss,ts,X,ei,Rt,Is);if(!Tu)return{notEnoughRoom:!0};var Cu=Rr(Tu.first.point,nn).point,dc=Rr(Tu.last.point,nn).point;if(ae&&!J){var Hc=Ws(X.writingMode,Cu,dc,ca);if(Hc)return Hc}na=[Tu.first];for(var wc=X.glyphStartIndex+1;wc<_l-1;wc++)na.push(cl(Ko*qn.getoffsetX(wc),Gs,Va,J,ss,ts,X.segment,nu,xu,ei,Rt,Is));na.push(Tu.last)}else{if(ae&&!J){var hd=Rr(ts,it).point,Td=X.lineStartIndex+X.segment+1,ch=new b.Point(ei.getx(Td),ei.gety(Td)),Jd=Rr(ch,it),Xh=Jd.signedDistanceFromCamera>0?Jd.point:Ao(ts,ch,hd,1,it),Nc=Ws(X.writingMode,hd,Xh,ca);if(Nc)return Nc}var Uc=cl(Ko*qn.getoffsetX(X.glyphStartIndex),Gs,Va,J,ss,ts,X.segment,X.lineStartIndex,X.lineStartIndex+X.lineLength,ei,Rt,Is);if(!Uc)return{notEnoughRoom:!0};na=[Uc]}for(var tf=0,dh=na;tf0?1:-1,na=0;ae&&(ca*=-1,na=Math.PI),ca<0&&(na+=Math.PI);for(var Ko=ca>0?qn+nn:qn+nn+1,Gs=it,Va=it,_l=0,nu=0,xu=Math.abs(Is),Tu=[];_l+nu<=xu;){if((Ko+=ca)=ei)return null;if(Va=Gs,Tu.push(Gs),(Gs=ts[Ko])===void 0){var Cu=new b.Point(gr.getx(Ko),gr.gety(Ko)),dc=Rr(Cu,ss);if(dc.signedDistanceFromCamera>0)Gs=ts[Ko]=dc.point;else{var Hc=Ko-ca;Gs=Ao(_l===0?Rt:new b.Point(gr.getx(Hc),gr.gety(Hc)),Cu,Va,xu-_l+1,ss)}}_l+=nu,nu=Va.dist(Gs)}var wc=(xu-_l)/nu,hd=Gs.sub(Va),Td=hd.mult(wc)._add(Va);Td._add(hd._unit()._perp()._mult(J*ca));var ch=na+Math.atan2(Gs.y-Va.y,Gs.x-Va.x);return Tu.push(Td),{point:Td,angle:ch,path:Tu}}nr.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},nr.prototype.insert=function(X,ne,J,ae,it){this._forEachCell(ne,J,ae,it,this._insertBoxCell,this.boxUid++),this.boxKeys.push(X),this.bboxes.push(ne),this.bboxes.push(J),this.bboxes.push(ae),this.bboxes.push(it)},nr.prototype.insertCircle=function(X,ne,J,ae){this._forEachCell(ne-ae,J-ae,ne+ae,J+ae,this._insertCircleCell,this.circleUid++),this.circleKeys.push(X),this.circles.push(ne),this.circles.push(J),this.circles.push(ae)},nr.prototype._insertBoxCell=function(X,ne,J,ae,it,Rt){this.boxCells[it].push(Rt)},nr.prototype._insertCircleCell=function(X,ne,J,ae,it,Rt){this.circleCells[it].push(Rt)},nr.prototype._query=function(X,ne,J,ae,it,Rt){if(J<0||X>this.width||ae<0||ne>this.height)return!it&&[];var nn=[];if(X<=0&&ne<=0&&this.width<=J&&this.height<=ae){if(it)return!0;for(var qn=0;qn0:nn},nr.prototype._queryCircle=function(X,ne,J,ae,it){var Rt=X-J,nn=X+J,qn=ne-J,ei=ne+J;if(nn<0||Rt>this.width||ei<0||qn>this.height)return!ae&&[];var gr=[];return this._forEachCell(Rt,qn,nn,ei,this._queryCellCircle,gr,{hitTest:ae,circle:{x:X,y:ne,radius:J},seenUids:{box:{},circle:{}}},it),ae?gr.length>0:gr},nr.prototype.query=function(X,ne,J,ae,it){return this._query(X,ne,J,ae,!1,it)},nr.prototype.hitTest=function(X,ne,J,ae,it){return this._query(X,ne,J,ae,!0,it)},nr.prototype.hitTestCircle=function(X,ne,J,ae){return this._queryCircle(X,ne,J,!0,ae)},nr.prototype._queryCell=function(X,ne,J,ae,it,Rt,nn,qn){var ei=nn.seenUids,gr=this.boxCells[it];if(gr!==null)for(var ss=this.bboxes,ts=0,Is=gr;ts=ss[na+0]&&ae>=ss[na+1]&&(!qn||qn(this.boxKeys[ca]))){if(nn.hitTest)return Rt.push(!0),!0;Rt.push({key:this.boxKeys[ca],x1:ss[na],y1:ss[na+1],x2:ss[na+2],y2:ss[na+3]})}}}var Ko=this.circleCells[it];if(Ko!==null)for(var Gs=this.circles,Va=0,_l=Ko;Va<_l.length;Va+=1){var nu=_l[Va];if(!ei.circle[nu]){ei.circle[nu]=!0;var xu=3*nu;if(this._circleAndRectCollide(Gs[xu],Gs[xu+1],Gs[xu+2],X,ne,J,ae)&&(!qn||qn(this.circleKeys[nu]))){if(nn.hitTest)return Rt.push(!0),!0;var Tu=Gs[xu],Cu=Gs[xu+1],dc=Gs[xu+2];Rt.push({key:this.circleKeys[nu],x1:Tu-dc,y1:Cu-dc,x2:Tu+dc,y2:Cu+dc})}}}},nr.prototype._queryCellCircle=function(X,ne,J,ae,it,Rt,nn,qn){var ei=nn.circle,gr=nn.seenUids,ss=this.boxCells[it];if(ss!==null)for(var ts=this.bboxes,Is=0,ca=ss;Isnn*nn+qn*qn},nr.prototype._circleAndRectCollide=function(X,ne,J,ae,it,Rt,nn){var qn=(Rt-ae)/2,ei=Math.abs(X-(ae+qn));if(ei>qn+J)return!1;var gr=(nn-it)/2,ss=Math.abs(ne-(it+gr));if(ss>gr+J)return!1;if(ei<=qn||ss<=gr)return!0;var ts=ei-qn,Is=ss-gr;return ts*ts+Is*Is<=J*J};var $r=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function er(X,ne){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||ne>this.screenBottomBoundary},pr.prototype.isInsideGrid=function(X,ne,J,ae){return J>=0&&X=0&&ne0?(this.prevPlacement&&this.prevPlacement.variableOffsets[ts.crossTileID]&&this.prevPlacement.placements[ts.crossTileID]&&this.prevPlacement.placements[ts.crossTileID].text&&(Ko=this.prevPlacement.variableOffsets[ts.crossTileID].anchor),this.variableOffsets[ts.crossTileID]={textOffset:Gs,width:J,height:ae,anchor:X,textBoxScale:it,prevAnchor:Ko},this.markUsedJustification(Is,X,ts,ca),Is.allowVerticalPlacement&&(this.markUsedOrientation(Is,ca,ts),this.placedOrientations[ts.crossTileID]=ca),{shift:Va,placedGlyphBoxes:_l}):void 0},En.prototype.placeLayerBucketPart=function(X,ne,J){var ae=this,it=X.parameters,Rt=it.bucket,nn=it.layout,qn=it.posMatrix,ei=it.textLabelPlaneMatrix,gr=it.labelToScreenMatrix,ss=it.textPixelRatio,ts=it.holdingForFade,Is=it.collisionBoxArray,ca=it.partiallyEvaluatedTextSize,na=it.collisionGroup,Ko=nn.get("text-optional"),Gs=nn.get("icon-optional"),Va=nn.get("text-allow-overlap"),_l=nn.get("icon-allow-overlap"),nu=nn.get("text-rotation-alignment")==="map",xu=nn.get("text-pitch-alignment")==="map",Tu=nn.get("icon-text-fit")!=="none",Cu=nn.get("symbol-z-order")==="viewport-y",dc=Va&&(_l||!Rt.hasIconData()||Gs),Hc=_l&&(Va||!Rt.hasTextData()||Ko);!Rt.collisionArrays&&Is&&Rt.deserializeCollisionBoxes(Is);var wc=function(Nc,Uc){if(!ne[Nc.crossTileID])if(ts)ae.placements[Nc.crossTileID]=new Ts(!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&&!_l?af:null,Im={box:[],offscreen:!1},zm=Va?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 Ro=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,Ro))}}else{var Hp=function(df,af){var jg=ae.collisionIndex.placeCollisionBox(df,Va,ss,qn,na.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,ca,mm),Zd=nn.get("text-padding");jp=ae.collisionIndex.placeCollisionCircles(Va,mm,Rt.lineVertexArray,Rt.glyphOffsetArray,Nm,qn,ei,gr,J,xu,na.predicate,Nc.collisionCircleDiameter,Zd),dh=Va||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?gn(df,_h.x,_h.y,nu,xu,ae.transform.angle):df;return ae.collisionIndex.placeCollisionBox(af,_l,ss,qn,na.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=Ko||Nc.numHorizontalGlyphVertices===0&&Nc.numVerticalGlyphVertices===0,bf=Gs||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,nn.get("text-ignore-placement"),Rt.bucketInstanceId,Cg&&Cg.box&&Oc?Oc:Zc,na.ID),nh&&vp&&ae.collisionIndex.insertCollisionBox(vp.box,nn.get("icon-ignore-placement"),Rt.bucketInstanceId,ld,na.ID),jp&&(dh&&ae.collisionIndex.insertCollisionCircles(jp.circles,nn.get("text-ignore-placement"),Rt.bucketInstanceId,Zc,na.ID),J)){var Jp=Rt.bucketInstanceId,Bp=ae.collisionCircleArrays[Jp];Bp===void 0&&(Bp=ae.collisionCircleArrays[Jp]=new xs);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(qn).crossTileID=it>=0&&qn!==it?0:J.crossTileID)}},En.prototype.markUsedOrientation=function(X,ne,J){for(var ae=ne===b.WritingMode.horizontal||ne===b.WritingMode.horizontalOnly?ne:0,it=ne===b.WritingMode.vertical?ne:0,Rt=0,nn=[J.leftJustifiedTextSymbolIndex,J.centerJustifiedTextSymbolIndex,J.rightJustifiedTextSymbolIndex];Rt0,Hc=ae.placedOrientations[_l.crossTileID],wc=Hc===b.WritingMode.vertical,hd=Hc===b.WritingMode.horizontal||Hc===b.WritingMode.horizontalOnly;if(nu>0||xu>0){var Td=wr(Cu.text);ca(X.text,nu,wc?ki:Td),ca(X.text,xu,hd?ki:Td);var ch=Cu.text.isHidden();[_l.rightJustifiedTextSymbolIndex,_l.centerJustifiedTextSymbolIndex,_l.leftJustifiedTextSymbolIndex].forEach(function(Mh){Mh>=0&&(X.text.placedSymbolArray.get(Mh).hidden=ch||wc?1:0)}),_l.verticalPlacedTextSymbolIndex>=0&&(X.text.placedSymbolArray.get(_l.verticalPlacedTextSymbolIndex).hidden=ch||hd?1:0);var Jd=ae.variableOffsets[_l.crossTileID];Jd&&ae.markUsedJustification(X,Jd.anchor,_l,Hc);var Xh=ae.placedOrientations[_l.crossTileID];Xh&&(ae.markUsedJustification(X,"left",_l,Xh),ae.markUsedOrientation(X,Xh,_l))}if(dc){var Nc=wr(Cu.icon),Uc=!(ts&&_l.verticalPlacedIconSymbolIndex&&wc);_l.placedIconSymbolIndex>=0&&(ca(X.icon,_l.numIconVertices,Uc?Nc:ki),X.icon.placedSymbolArray.get(_l.placedIconSymbolIndex).hidden=Cu.icon.isHidden()),_l.verticalPlacedIconSymbolIndex>=0&&(ca(X.icon,_l.numVerticalIconVertices,Uc?ki:Nc),X.icon.placedSymbolArray.get(_l.verticalPlacedIconSymbolIndex).hidden=Cu.icon.isHidden())}if(X.hasIconCollisionBoxData()||X.hasTextCollisionBoxData()){var tf=X.collisionArrays[Va];if(tf){var dh=new b.Point(0,0);if(tf.textBox||tf.verticalTextBox){var nh=!0;if(ei){var zh=ae.variableOffsets[Tu];zh?(dh=Xt(zh.anchor,zh.width,zh.height,zh.textOffset,zh.textBoxScale),gr&&dh._rotate(ss?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,ts?dh.x:0,ts?dh.y:0),tf.verticalIconBox&&tt(X.iconCollisionBox.collisionVertexArray,Cu.icon.placed,!_h,ts?dh.x:0,ts?dh.y:0)}}},Ko=0;KoX},En.prototype.setStale=function(){this.stale=!0};var at=Math.pow(2,25),gt=Math.pow(2,24),Re=Math.pow(2,17),lt=Math.pow(2,16),St=Math.pow(2,9),ln=Math.pow(2,8),Vn=Math.pow(2,1);function wr(X){if(X.opacity===0&&!X.placed)return 0;if(X.opacity===1&&X.placed)return 4294967295;var ne=X.placed?1:0,J=Math.floor(127*X.opacity);return J*at+ne*gt+J*Re+ne*lt+J*St+ne*ln+J*Vn+ne}var ki=0,Vi=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=[]};Vi.prototype.continuePlacement=function(X,ne,J,ae,it){for(var Rt=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var nn=ne[X[this._currentPlacementIndex]],qn=this.placement.collisionIndex.transform.zoom;if(nn.type==="symbol"&&(!nn.minzoom||nn.minzoom<=qn)&&(!nn.maxzoom||nn.maxzoom>qn)){if(this._inProgressLayer||(this._inProgressLayer=new Vi(nn)),this._inProgressLayer.continuePlacement(J[nn.source],this.placement,this._showCollisionBoxes,nn,Rt))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Ki.prototype.commit=function(X){return this.placement.commit(X),this.placement};var ps=512/b.EXTENT/2,Ns=function(X,ne,J){this.tileID=X,this.indexedSymbolInstances={},this.bucketInstanceId=J;for(var ae=0;aeX.overscaledZ)for(var qn in nn){var ei=nn[qn];ei.tileID.isChildOf(X)&&ei.findMatches(ne.symbolInstances,X,it)}else{var gr=nn[X.scaledTo(Number(Rt)).key];gr&&gr.findMatches(ne.symbolInstances,X,it)}}for(var ss=0;ss1?"@2x":"",ts=b.getJSON(Rt.transformRequest(Rt.normalizeSpriteURL(it,ss,".json"),b.ResourceType.SpriteJSON),function(na,Ko){ts=null,gr||(gr=na,qn=Ko,ca())}),Is=b.getImage(Rt.transformRequest(Rt.normalizeSpriteURL(it,ss,".png"),b.ResourceType.SpriteImage),function(na,Ko){Is=null,gr||(gr=na,ei=Ko,ca())});function ca(){if(gr)nn(gr);else if(qn&&ei){var na=b.browser.getImageData(ei),Ko={};for(var Gs in qn){var Va=qn[Gs],_l=Va.width,nu=Va.height,xu=Va.x,Tu=Va.y,Cu=Va.sdf,dc=Va.pixelRatio,Hc=Va.stretchX,wc=Va.stretchY,hd=Va.content,Td=new b.RGBAImage({width:_l,height:nu});b.RGBAImage.copy(na,Td,{x:xu,y:Tu},{x:0,y:0},{width:_l,height:nu}),Ko[Gs]={data:Td,pixelRatio:dc,sdf:Cu,stretchX:Hc,stretchY:wc,content:hd}}nn(null,Ko)}}return{cancel:function(){ts&&(ts.cancel(),ts=null),Is&&(Is.cancel(),Is=null)}}}(J,this.map._requestManager,function(it,Rt){if(ae._spriteRequest=null,it)ae.fire(new b.ErrorEvent(it));else if(Rt)for(var nn in Rt)ae.imageManager.addImage(nn,Rt[nn]);ae.imageManager.setLoaded(!0),ae._availableImages=ae.imageManager.listImages(),ae.dispatcher.broadcast("setImages",ae._availableImages),ae.fire(new b.Event("data",{dataType:"style"}))})},ne.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+'"')))}}},ne.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()},ne.prototype._serializeLayers=function(J){for(var ae=[],it=0,Rt=J;it0)throw new Error("Unimplemented: "+Rt.map(function(nn){return nn.command}).join(", ")+".");return it.forEach(function(nn){nn.command!=="setTransition"&&ae[nn.command].apply(ae,nn.args)}),this.stylesheet=J,!0},ne.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)},ne.prototype.updateImage=function(J,ae){this.imageManager.updateImage(J,ae)},ne.prototype.getImage=function(J){return this.imageManager.getImage(J)},ne.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)},ne.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"}))},ne.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},ne.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 nn=this.sourceCaches[J]=new Qn(J,ae,this.dispatcher);nn.style=this,nn.setEventedParent(this,function(){return{isSourceLoaded:Rt.loaded(),source:nn.serialize(),sourceId:J}}),nn.onAdd(this.map),this._changed=!0}},ne.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},ne.prototype.setGeoJSONSourceData=function(J,ae){this._checkLoaded(),this.sourceCaches[J].getSource().setData(ae),this._changed=!0},ne.prototype.getSource=function(J){return this.sourceCaches[J]&&this.sourceCaches[J].getSource()},ne.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 nn;if(J.type==="custom"){if(Ds(this,b.validateCustomStyleLayer(J)))return;nn=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;nn=b.createStyleLayer(J),this._validateLayer(nn),nn.setEventedParent(this,{layer:{id:Rt}}),this._serializedLayers[nn.id]=nn.serialize()}var qn=ae?this._order.indexOf(ae):this._order.length;if(ae&&qn===-1)this.fire(new b.ErrorEvent(new Error('Layer with id "'+ae+'" does not exist on this map.')));else{if(this._order.splice(qn,0,Rt),this._layerOrderChanged=!0,this._layers[Rt]=nn,this._removedLayers[Rt]&&nn.source&&nn.type!=="custom"){var ei=this._removedLayers[Rt];delete this._removedLayers[Rt],ei.type!==nn.type?this._updatedSources[nn.source]="clear":(this._updatedSources[nn.source]="reload",this.sourceCaches[nn.source].pause())}this._updateLayer(nn),nn.onAdd&&nn.onAdd(this.map)}}},ne.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.")))},ne.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.")))},ne.prototype.getLayer=function(J){return this._layers[J]},ne.prototype.hasLayer=function(J){return J in this._layers},ne.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.")))},ne.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.")))},ne.prototype.getFilter=function(J){return b.clone$1(this.getLayer(J).filter)},ne.prototype.setLayoutProperty=function(J,ae,it,Rt){Rt===void 0&&(Rt={}),this._checkLoaded();var nn=this.getLayer(J);nn?b.deepEqual(nn.getLayoutProperty(ae),it)||(nn.setLayoutProperty(ae,it,Rt),this._updateLayer(nn)):this.fire(new b.ErrorEvent(new Error("The layer '"+J+"' does not exist in the map's style and cannot be styled.")))},ne.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.")))},ne.prototype.setPaintProperty=function(J,ae,it,Rt){Rt===void 0&&(Rt={}),this._checkLoaded();var nn=this.getLayer(J);nn?b.deepEqual(nn.getPaintProperty(ae),it)||(nn.setPaintProperty(ae,it,Rt)&&this._updateLayer(nn),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.")))},ne.prototype.getPaintProperty=function(J,ae){return this.getLayer(J).getPaintProperty(ae)},ne.prototype.setFeatureState=function(J,ae){this._checkLoaded();var it=J.source,Rt=J.sourceLayer,nn=this.sourceCaches[it];if(nn!==void 0){var qn=nn.getSource().type;qn==="geojson"&&Rt?this.fire(new b.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):qn!=="vector"||Rt?(J.id===void 0&&this.fire(new b.ErrorEvent(new Error("The feature id parameter must be provided."))),nn.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.")))},ne.prototype.removeFeatureState=function(J,ae){this._checkLoaded();var it=J.source,Rt=this.sourceCaches[it];if(Rt!==void 0){var nn=Rt.getSource().type,qn=nn==="vector"?J.sourceLayer:void 0;nn!=="vector"||qn?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(qn,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.")))},ne.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.")))},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(J){return J.serialize()}),layers:this._serializeLayers(this._order)},function(J){return J!==void 0})},ne.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},ne.prototype._flattenAndSortRenderedFeatures=function(J){for(var ae=this,it=function(Hc){return ae._layers[Hc].type==="fill-extrusion"},Rt={},nn=[],qn=this._order.length-1;qn>=0;qn--){var ei=this._order[qn];if(it(ei)){Rt[ei]=qn;for(var gr=0,ss=J;gr=0;Ko--){var Gs=this._order[Ko];if(it(Gs))for(var Va=nn.length-1;Va>=0;Va--){var _l=nn[Va].feature;if(Rt[_l.layer.id]=ya)return _e;var du=un-Bf(Zr);if(du<1)return Zr;var Ju=Bl?ct(Bl,0,du).join(""):_e.slice(0,du);if(ss===M)return Ju+Zr;if(Bl&&(du+=Ju.length-du),wf(ss)){if(_e.slice(du).search(ss)){var Nh,Fh=Ju;for(ss.global||(ss=Rf(ss.source,nd(di.exec(ss))+"g")),ss.lastIndex=0;Nh=ss.exec(Fh);)var od=Nh.index;Ju=Ju.slice(0,od===M?du:od)}}else if(_e.indexOf(Np(ss),du)!=du){var kf=Ju.lastIndexOf(ss);kf>-1&&(Ju=Ju.slice(0,kf))}return Ju+Zr}function ay(_e){return _e=nd(_e),_e&&$t.test(_e)?_e.replace(ir,Eu):_e}var u1=br(function(_e,Qe,un){return _e+(un?" ":"")+Qe.toUpperCase()}),Cy=bo("toUpperCase");function o_(_e,Qe,un){return _e=nd(_e),Qe=un?M:Qe,Qe===M?Mf(_e)?Pu(_e):Xn(_e):_e.match(Qe)||[]}var Sy=pf(function(_e,Qe){try{return Ks(_e,M,Qe)}catch(un){return pa(un)?un:new qu(un)}}),Ey=ia(function(_e,Qe){return qa(Qe,function(un){un=ui(un),Qc(_e,un,Ws(_e[un],_e))}),_e});function ly(_e){var Qe=_e==null?0:_e.length,un=vo();return _e=Qe?Ha(_e,function(Zr){if(typeof Zr[1]!="function")throw new rf(V);return[un(Zr[0]),Zr[1]]}):[],pf(function(Zr){for(var ss=-1;++sslt)return[];var un=an,Zr=Jf(_e,an);Qe=vo(Qe),_e-=an;for(var ss=jh(Zr,Qe);++un<_e;)Qe(un);return ss}function zy(_e){return Ue(_e)?Ha(_e,ui):fg(_e)?[_e]:gr(Rn(nd(_e)))}function hb(_e){var Qe=++lf;return nd(_e)+Qe}var $y=vi(function(_e,Qe){return _e+Qe},0),Ex=_a("ceil"),db=vi(function(_e,Qe){return _e/Qe},1),hC=_a("floor");function OS(_e){return _e&&_e.length?ud(_e,ev,Ec):M}function Gb(_e,Qe){return _e&&_e.length?ud(_e,vo(Qe,2),Ec):M}function dC(_e){return hu(_e,ev)}function RS(_e,Qe){return hu(_e,vo(Qe,2))}function fC(_e){return _e&&_e.length?ud(_e,ev,l0):M}function rw(_e,Qe){return _e&&_e.length?ud(_e,vo(Qe,2),l0):M}var iw=vi(function(_e,Qe){return _e*Qe},1),N_=_a("round"),f2=vi(function(_e,Qe){return _e-Qe},0);function Kb(_e){return _e&&_e.length?Lc(_e,ev):0}function A1(_e,Qe){return _e&&_e.length?Lc(_e,vo(Qe,2)):0}return zo.after=Dr,zo.ary=ni,zo.assign=$f,zo.assignIn=Tf,zo.assignInWith=np,zo.assignWith=Ip,zo.at=Eg,zo.before=so,zo.bind=Ws,zo.bindAll=Ey,zo.bindKey=La,zo.castArray=rg,zo.chain=Dg,zo.chunk=oa,zo.compact=Ca,zo.concat=bl,zo.cond=ly,zo.conforms=ub,zo.constant=Fy,zo.countBy=Z,zo.create=nm,zo.curry=Is,zo.curryRight=nl,zo.debounce=tu,zo.defaults=b0,zo.defaultsDeep=o0,zo.defer=Ds,zo.delay=xc,zo.difference=Fu,zo.differenceBy=sc,zo.differenceWith=Fc,zo.drop=fa,zo.dropRight=wl,zo.dropRightWhile=Fr,zo.dropWhile=fl,zo.fill=Ga,zo.filter=pe,zo.flatMap=zt,zo.flatMapDeep=ln,zo.flatMapDepth=Kn,zo.flatten=ws,zo.flattenDeep=Xo,zo.flattenDepth=Ns,zo.flip=Gh,zo.flow=By,zo.flowRight=Vb,zo.fromPairs=Xa,zo.functions=Bg,zo.functionsIn=Um,zo.groupBy=yi,zo.initial=Bs,zo.intersection=al,zo.intersectionBy=gs,zo.intersectionWith=$s,zo.invert=oy,zo.invertBy=d0,zo.invokeMap=Co,zo.iteratee=xx,zo.keyBy=Uo,zo.keys=bm,zo.keysIn=Z0,zo.map=Mo,zo.mapKeys=sy,zo.mapValues=Zv,zo.matches=tw,zo.matchesProperty=h2,zo.memoize=Ph,zo.merge=t_,zo.mergeWith=ho,zo.method=d2,zo.methodOf=jb,zo.mixin=s_,zo.negate=hh,zo.nthArg=nw,zo.omit=s1,zo.omitBy=ov,zo.once=Kh,zo.orderBy=oo,zo.over=Ub,zo.overArgs=tp,zo.overEvery=kS,zo.overSome=Sx,zo.partial=lp,zo.partialRight=Td,zo.partition=Vs,zo.pick=qv,zo.pickBy=x0,zo.property=a_,zo.propertyOf=uy,zo.pull=Qo,zo.pullAll=sa,zo.pullAllBy=$a,zo.pullAllWith=Ru,zo.pullAt=rh,zo.range=O_,zo.rangeRight=Wb,zo.rearg=jd,zo.reject=ou,zo.remove=Lo,zo.rest=es,zo.reverse=Lh,zo.sampleSize=Cu,zo.set=xy,zo.setWith=Jv,zo.shuffle=Hc,zo.slice=Uc,zo.sortBy=Sn,zo.sortedUniq=xg,zo.sortedUniqBy=Vm,zo.split=sb,zo.spread=Pl,zo.tail=ym,zo.take=dv,zo.takeRight=Mg,zo.takeRightWhile=km,zo.takeWhile=Sp,zo.tap=J0,zo.throttle=qd,zo.thru=jm,zo.toArray=xu,zo.toPairs=Xm,zo.toPairsIn=Q0,zo.toPath=zy,zo.toPlainObject=hf,zo.transform=Pv,zo.unary=dd,zo.union=tg,zo.unionBy=_0,zo.unionWith=r0,zo.uniq=gg,zo.uniqBy=Ku,zo.uniqWith=lm,zo.unset=pv,zo.unzip=i0,zo.unzipWith=dc,zo.update=H0,zo.updateWith=P0,zo.values=Hv,zo.valuesIn=I_,zo.without=Du,zo.words=o_,zo.wrap=mf,zo.xor=Wv,zo.xorBy=Dm,zo.xorWith=Ap,zo.zip=Dp,zo.zipObject=W1,zo.zipObjectDeep=sf,zo.zipWith=Km,zo.entries=Xm,zo.entriesIn=Q0,zo.extend=Tf,zo.extendWith=np,s_(zo,zo),zo.add=$y,zo.attempt=Sy,zo.camelCase=_1,zo.capitalize=a1,zo.ceil=Ex,zo.clamp=y1,zo.clone=cf,zo.cloneDeep=_h,zo.cloneDeepWith=Yd,zo.cloneWith=Ql,zo.conformsTo=Rd,zo.deburr=Fv,zo.defaultTo=A0,zo.divide=db,zo.endsWith=Z1,zo.eq=H,zo.escape=L_,zo.escapeRegExp=Cv,zo.every=re,zo.find=Ie,zo.findIndex=ku,zo.findKey=sg,zo.findLast=Je,zo.findLastIndex=wh,zo.findLastKey=Fg,zo.floor=hC,zo.forEach=pr,zo.forEachRight=si,zo.forIn=Yv,zo.forInRight=xv,zo.forOwn=Tg,zo.forOwnRight=h0,zo.get=hp,zo.gt=P,zo.gte=ee,zo.has=wv,zo.hasIn=Lv,zo.head=sl,zo.identity=ev,zo.includes=Do,zo.indexOf=wa,zo.inRange=Nv,zo.invoke=o1,zo.isArguments=ye,zo.isArray=Ue,zo.isArrayBuffer=gt,zo.isArrayLike=_t,zo.isArrayLikeObject=Ut,zo.isBoolean=bn,zo.isBuffer=lr,zo.isDate=ti,zo.isElement=_i,zo.isEmpty=po,zo.isEqual=Yo,zo.isEqualWith=qo,zo.isError=pa,zo.isFinite=Pa,zo.isFunction=Ra,zo.isInteger=Gl,zo.isLength=ll,zo.isMap=kc,zo.isMatch=kd,zo.isMatchWith=Ud,zo.isNaN=Gd,zo.isNative=ed,zo.isNil=Jd,zo.isNull=td,zo.isNumber=_d,zo.isObject=Ul,zo.isObjectLike=mu,zo.isPlainObject=dh,zo.isRegExp=wf,zo.isSafeInteger=Ef,zo.isSet=Fp,zo.isString=Og,zo.isSymbol=fg,zo.isTypedArray=_m,zo.isUndefined=z0,zo.isWeakMap=$0,zo.isWeakSet=dm,zo.join=As,zo.kebabCase=r_,zo.last=fo,zo.lastIndexOf=Xi,zo.lowerCase=P_,zo.lowerFirst=l1,zo.lt=Mm,zo.lte=Bu,zo.max=OS,zo.maxBy=Gb,zo.mean=dC,zo.meanBy=RS,zo.min=fC,zo.minBy=rw,zo.stubArray=Zb,zo.stubFalse=cy,zo.stubObject=l_,zo.stubString=Hb,zo.stubTrue=cb,zo.multiply=iw,zo.nth=us,zo.noConflict=cC,zo.noop=Cx,zo.now=rr,zo.pad=i_,zo.padEnd=$b,zo.padStart=G0,zo.parseInt=ob,zo.random=kv,zo.reduce=Ta,zo.reduceRight=cl,zo.repeat=gv,zo.replace=k_,zo.result=n_,zo.round=N_,zo.runInContext=Aa,zo.sample=Tu,zo.size=bu,zo.snakeCase=bx,zo.some=Dc,zo.sortedIndex=Hd,zo.sortedIndexBy=cg,zo.sortedIndexOf=im,zo.sortedLastIndex=Gm,zo.sortedLastIndexBy=c0,zo.sortedLastIndexOf=e0,zo.startCase=u2,zo.startsWith=wy,zo.subtract=f2,zo.sum=Kb,zo.sumBy=A1,zo.template=M_,zo.times=R_,zo.toFinite=eh,zo.toInteger=oc,zo.toLength=Xh,zo.toLower=ab,zo.toNumber=Ad,zo.toSafeInteger=Qd,zo.toString=nd,zo.toUpper=c2,zo.trim=lb,zo.trimEnd=uC,zo.trimStart=H1,zo.truncate=T1,zo.unescape=ay,zo.uniqueId=hb,zo.upperCase=u1,zo.upperFirst=Cy,zo.each=pr,zo.eachRight=si,zo.first=sl,s_(zo,function(){var _e={};return ah(zo,function(Qe,un){ff.call(zo.prototype,un)||(_e[un]=Qe)}),_e}(),{chain:!1}),zo.VERSION=C,qa(["bind","bindKey","curry","curryRight","partial","partialRight"],function(_e){zo[_e].placeholder=zo}),qa(["drop","take"],function(_e,Qe){me.prototype[_e]=function(un){un=un===M?1:yf(oc(un),0);var Zr=this.__filtered__&&!Qe?new me(this):this.clone();return Zr.__filtered__?Zr.__takeCount__=Jf(un,Zr.__takeCount__):Zr.__views__.push({size:Jf(un,an),type:_e+(Zr.__dir__<0?"Right":"")}),Zr},me.prototype[_e+"Right"]=function(un){return this.reverse()[_e](un).reverse()}}),qa(["filter","map","takeWhile"],function(_e,Qe){var un=Qe+1,Zr=un==rt||un==Xt;me.prototype[_e]=function(ss){var ya=this.clone();return ya.__iteratees__.push({iteratee:vo(ss,3),type:un}),ya.__filtered__=ya.__filtered__||Zr,ya}}),qa(["head","last"],function(_e,Qe){var un="take"+(Qe?"Right":"");me.prototype[_e]=function(){return this[un](1).value()[0]}}),qa(["initial","tail"],function(_e,Qe){var un="drop"+(Qe?"":"Right");me.prototype[_e]=function(){return this.__filtered__?new me(this):this[un](1)}}),me.prototype.compact=function(){return this.filter(ev)},me.prototype.find=function(_e){return this.filter(_e).head()},me.prototype.findLast=function(_e){return this.reverse().find(_e)},me.prototype.invokeMap=pf(function(_e,Qe){return typeof _e=="function"?new me(this):this.map(function(un){return Uf(un,_e,Qe)})}),me.prototype.reject=function(_e){return this.filter(hh(vo(_e)))},me.prototype.slice=function(_e,Qe){_e=oc(_e);var un=this;return un.__filtered__&&(_e>0||Qe<0)?new me(un):(_e<0?un=un.takeRight(-_e):_e&&(un=un.drop(_e)),Qe!==M&&(Qe=oc(Qe),un=Qe<0?un.dropRight(-Qe):un.take(Qe-_e)),un)},me.prototype.takeRightWhile=function(_e){return this.reverse().takeWhile(_e).reverse()},me.prototype.toArray=function(){return this.take(an)},ah(me.prototype,function(_e,Qe){var un=/^(?:filter|find|map|reject)|While$/.test(Qe),Zr=/^(?:head|last)$/.test(Qe),ss=zo[Zr?"take"+(Qe=="last"?"Right":""):Qe],ya=Zr||/^find/.test(Qe);ss&&(zo.prototype[Qe]=function(){var Bl=this.__wrapped__,du=Zr?[1]:arguments,Ju=Bl instanceof me,Nh=du[0],Fh=Ju||Ue(Bl),od=function(Kp){var xm=ss.apply(zo,tl([Kp],du));return Zr&&kf?xm[0]:xm};Fh&&un&&typeof Nh=="function"&&Nh.length!=1&&(Ju=Fh=!1);var kf=this.__chain__,dp=!!this.__actions__.length,Gp=ya&&!kf,Xg=Ju&&!dp;if(!ya&&Fh){Bl=Xg?Bl:new me(this);var hg=_e.apply(Bl,du);return hg.__actions__.push({func:jm,args:[od],thisArg:M}),new ae(hg,kf)}return Gp&&Xg?_e.apply(this,du):(hg=this.thru(od),Gp?Zr?hg.value()[0]:hg.value():hg)})}),qa(["pop","push","shift","sort","splice","unshift"],function(_e){var Qe=Vf[_e],un=/^(?:push|sort|unshift)$/.test(_e)?"tap":"thru",Zr=/^(?:pop|shift)$/.test(_e);zo.prototype[_e]=function(){var ss=arguments;if(Zr&&!this.__chain__){var ya=this.value();return Qe.apply(Ue(ya)?ya:[],ss)}return this[un](function(Bl){return Qe.apply(Ue(Bl)?Bl:[],ss)})}}),ah(me.prototype,function(_e,Qe){var un=zo[Qe];if(un){var Zr=un.name+"";ff.call(mh,Zr)||(mh[Zr]=[]),mh[Zr].push({name:Qe,func:un})}}),mh[Or(M,Ae).name]=[{name:"wrapper",func:M}],me.prototype.clone=ot,me.prototype.reverse=dn,me.prototype.value=tr,zo.prototype.at=Os,zo.prototype.chain=fv,zo.prototype.commit=ng,zo.prototype.next=B0,zo.prototype.plant=d,zo.prototype.reverse=y,zo.prototype.toJSON=zo.prototype.valueOf=zo.prototype.value=E,zo.prototype.first=zo.prototype.head,sp&&(zo.prototype[sp]=Le),zo},md=Ah();Pc._=md,v=function(){return md}.call(q,_,q,mt),v!==M&&(mt.exports=v)}).call(this)},52858:function(mt,q,_){var v=_(52166),M="Expected a function";function C(x,N){if(typeof x!="function"||N!=null&&typeof N!="function")throw new TypeError(M);var V=function(){var R=arguments,k=N?N.apply(this,R):R[0],S=V.cache;if(S.has(k))return S.get(k);var p=x.apply(this,R);return V.cache=S.set(k,p)||S,p};return V.cache=new(C.Cache||v),V}C.Cache=v,mt.exports=C},28440:function(mt,q,_){var v=_(50097),M=_(63323),C=M(function(x,N,V){v(x,N,V)});mt.exports=C},24602:function(mt,q,_){var v=_(50097),M=_(63323),C=M(function(x,N,V,R){v(x,N,V,R)});mt.exports=C},9958:function(mt){function q(){}mt.exports=q},5795:function(mt,q,_){var v=_(33152),M=function(){return v.Date.now()};mt.exports=M},63536:function(mt,q,_){var v=_(92918),M=_(14989),C=v(M);mt.exports=C},14989:function(mt,q,_){var v=_(23442);function M(C,x){return C&&C.length&&x&&x.length?v(C,x):C}mt.exports=M},4134:function(mt){function q(){return[]}mt.exports=q},55950:function(mt){function q(){return!1}mt.exports=q},46700:function(mt,q,_){var v=_(41571),M=_(20816),C="Expected a function";function x(N,V,R){var k=!0,S=!0;if(typeof N!="function")throw new TypeError(C);return M(R)&&(k="leading"in R?!!R.leading:k,S="trailing"in R?!!R.trailing:S),v(N,V,{leading:k,maxWait:V,trailing:S})}mt.exports=x},20168:function(mt,q,_){var v=_(13927),M=_(20816),C=_(45029),x=0/0,N=/^[-+]0x[0-9a-f]+$/i,V=/^0b[01]+$/i,R=/^0o[0-7]+$/i,k=parseInt;function S(p){if(typeof p=="number")return p;if(C(p))return x;if(M(p)){var T=typeof p.valueOf=="function"?p.valueOf():p;p=M(T)?T+"":T}if(typeof p!="string")return p===0?p:+p;p=v(p);var F=V.test(p);return F||R.test(p)?k(p.slice(2),F?2:8):N.test(p)?x:+p}mt.exports=S},20480:function(mt,q,_){var v=_(95378),M=_(56730);function C(x){return v(x,M(x))}mt.exports=C},44140:function(mt,q,_){var v=_(50230);function M(C){return C==null?"":v(C)}mt.exports=M},21691:function(mt,q,_){var v=_(29098);function M(C){return C&&C.length?v(C):[]}mt.exports=M},53592:function(mt,q,_){var v=_(97815),M=v("toUpperCase");mt.exports=M},61503:function(mt,q,_){var v=_(34130),M=_(62840),C=_(44140),x=_(97681);function N(V,R,k){return V=C(V),R=k?void 0:R,R===void 0?M(V)?x(V):v(V):V.match(R)||[]}mt.exports=N},17369:function(mt){(function(q,_){mt.exports=_()})(this,function(){"use strict";var q,_,v;function M(C,x){if(!q)q=x;else if(!_)_=x;else{var N="var sharedChunk = {}; ("+q+")(sharedChunk); ("+_+")(sharedChunk);",V={};q(V),v=x(V),typeof window!="undefined"&&(v.workerUrl=window.URL.createObjectURL(new Blob([N],{type:"text/javascript"})))}}return M(["exports"],function(C){"use strict";function x(d,y){return d(y={exports:{}},y.exports),y.exports}var N=V;function V(d,y,E,Z){this.cx=3*d,this.bx=3*(E-d)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*y,this.by=3*(Z-y)-this.cy,this.ay=1-this.cy-this.by,this.p1x=d,this.p1y=Z,this.p2x=E,this.p2y=Z}V.prototype.sampleCurveX=function(d){return((this.ax*d+this.bx)*d+this.cx)*d},V.prototype.sampleCurveY=function(d){return((this.ay*d+this.by)*d+this.cy)*d},V.prototype.sampleCurveDerivativeX=function(d){return(3*this.ax*d+2*this.bx)*d+this.cx},V.prototype.solveCurveX=function(d,y){var E,Z,re,pe,Ie;for(y===void 0&&(y=1e-6),re=d,Ie=0;Ie<8;Ie++){if(pe=this.sampleCurveX(re)-d,Math.abs(pe)(Z=1))return Z;for(;Epe?E=re:Z=re,re=.5*(Z-E)+E}return re},V.prototype.solve=function(d,y){return this.sampleCurveY(this.solveCurveX(d,y))};var R=k;function k(d,y){this.x=d,this.y=y}k.prototype={clone:function(){return new k(this.x,this.y)},add:function(d){return this.clone()._add(d)},sub:function(d){return this.clone()._sub(d)},multByPoint:function(d){return this.clone()._multByPoint(d)},divByPoint:function(d){return this.clone()._divByPoint(d)},mult:function(d){return this.clone()._mult(d)},div:function(d){return this.clone()._div(d)},rotate:function(d){return this.clone()._rotate(d)},rotateAround:function(d,y){return this.clone()._rotateAround(d,y)},matMult:function(d){return this.clone()._matMult(d)},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(d){return this.x===d.x&&this.y===d.y},dist:function(d){return Math.sqrt(this.distSqr(d))},distSqr:function(d){var y=d.x-this.x,E=d.y-this.y;return y*y+E*E},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(d){return Math.atan2(this.y-d.y,this.x-d.x)},angleWith:function(d){return this.angleWithSep(d.x,d.y)},angleWithSep:function(d,y){return Math.atan2(this.x*y-this.y*d,this.x*d+this.y*y)},_matMult:function(d){var y=d[2]*this.x+d[3]*this.y;return this.x=d[0]*this.x+d[1]*this.y,this.y=y,this},_add:function(d){return this.x+=d.x,this.y+=d.y,this},_sub:function(d){return this.x-=d.x,this.y-=d.y,this},_mult:function(d){return this.x*=d,this.y*=d,this},_div:function(d){return this.x/=d,this.y/=d,this},_multByPoint:function(d){return this.x*=d.x,this.y*=d.y,this},_divByPoint:function(d){return this.x/=d.x,this.y/=d.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var d=this.y;return this.y=this.x,this.x=-d,this},_rotate:function(d){var y=Math.cos(d),E=Math.sin(d),Z=E*this.x+y*this.y;return this.x=y*this.x-E*this.y,this.y=Z,this},_rotateAround:function(d,y){var E=Math.cos(d),Z=Math.sin(d),re=y.y+Z*(this.x-y.x)+E*(this.y-y.y);return this.x=y.x+E*(this.x-y.x)-Z*(this.y-y.y),this.y=re,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},k.convert=function(d){return d instanceof k?d:Array.isArray(d)?new k(d[0],d[1]):d};var S=typeof self!="undefined"?self:{},p=Math.pow(2,53)-1;function T(d,y,E,Z){var re=new N(d,y,E,Z);return function(pe){return re.solve(pe)}}var F=T(.25,.1,.25,1);function K(d,y,E){return Math.min(E,Math.max(y,d))}function he(d,y,E){var Z=E-y,re=((d-y)%Z+Z)%Z+y;return re===y?E:re}function fe(d){for(var y=[],E=arguments.length-1;E-- >0;)y[E]=arguments[E+1];for(var Z=0,re=y;Z>y/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,d)}()}function Se(d){return!!d&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(d)}function it(d,y){d.forEach(function(E){y[E]&&(y[E]=y[E].bind(y))})}function Xe(d,y){return d.indexOf(y,d.length-y.length)!==-1}function ft(d,y,E){var Z={};for(var re in d)Z[re]=y.call(E||this,d[re],re,d);return Z}function Me(d,y,E){var Z={};for(var re in d)y.call(E||this,d[re],re,d)&&(Z[re]=d[re]);return Z}function Ee(d){return Array.isArray(d)?d.map(Ee):typeof d=="object"&&d?ft(d,Ee):d}var ze={};function Pe(d){ze[d]||(typeof console!="undefined"&&console.warn(d),ze[d]=!0)}function Re(d,y,E){return(E.y-d.y)*(y.x-d.x)>(y.y-d.y)*(E.x-d.x)}function je(d){for(var y=0,E=0,Z=d.length,re=Z-1,pe=void 0,Ie=void 0;E@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(Z,re,pe,Ie){var Je=pe||Ie;return y[re]=!Je||Je.toLowerCase(),""}),y["max-age"]){var E=parseInt(y["max-age"],10);isNaN(E)?delete y["max-age"]:y["max-age"]=E}return y}var Ne=null;function Xt(d){if(Ne==null){var y=d.navigator?d.navigator.userAgent:null;Ne=!!d.safari||!(!y||!(/\b(iPad|iPhone|iPod)\b/.test(y)||y.match("Safari")&&!y.match("Chrome")))}return Ne}function Ft(d){try{var y=S[d];return y.setItem("_mapbox_test_",1),y.removeItem("_mapbox_test_"),!0}catch(E){return!1}}var lt,Bt,At,an,Tt=S.performance&&S.performance.now?S.performance.now.bind(S.performance):Date.now.bind(Date),Nn=S.requestAnimationFrame||S.mozRequestAnimationFrame||S.webkitRequestAnimationFrame||S.msRequestAnimationFrame,mn=S.cancelAnimationFrame||S.mozCancelAnimationFrame||S.webkitCancelAnimationFrame||S.msCancelAnimationFrame,zn={now:Tt,frame:function(d){var y=Nn(d);return{cancel:function(){return mn(y)}}},getImageData:function(d,y){y===void 0&&(y=0);var E=S.document.createElement("canvas"),Z=E.getContext("2d");if(!Z)throw new Error("failed to create canvas 2d context");return E.width=d.width,E.height=d.height,Z.drawImage(d,0,0,d.width,d.height),Z.getImageData(-y,-y,d.width+2*y,d.height+2*y)},resolveURL:function(d){return lt||(lt=S.document.createElement("a")),lt.href=d,lt.href},hardwareConcurrency:S.navigator&&S.navigator.hardwareConcurrency||4,get devicePixelRatio(){return S.devicePixelRatio},get prefersReducedMotion(){return!!S.matchMedia&&(Bt==null&&(Bt=S.matchMedia("(prefers-reduced-motion: reduce)")),Bt.matches)}},Kr={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},Ui={supported:!1,testSupport:function(d){!go&&an&&(gi?Mr(d):At=d)}},go=!1,gi=!1;function Mr(d){var y=d.createTexture();d.bindTexture(d.TEXTURE_2D,y);try{if(d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,d.UNSIGNED_BYTE,an),d.isContextLost())return;Ui.supported=!0}catch(E){}d.deleteTexture(y),go=!0}S.document&&((an=S.document.createElement("img")).onload=function(){At&&Mr(At),At=null,gi=!0},an.onerror=function(){go=!0,At=null},an.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var To="01",ms=function(d,y){this._transformRequestFn=d,this._customAccessToken=y,this._createSkuToken()};function De(d){return d.indexOf("mapbox:")===0}ms.prototype._createSkuToken=function(){var d=function(){for(var y="",E=0;E<10;E++)y+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",To,y].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=d.token,this._skuTokenExpiresAt=d.tokenExpiresAt},ms.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},ms.prototype.transformRequest=function(d,y){return this._transformRequestFn&&this._transformRequestFn(d,y)||{url:d}},ms.prototype.normalizeStyleURL=function(d,y){if(!De(d))return d;var E=Vr(d);return E.path="/styles/v1"+E.path,this._makeAPIURL(E,this._customAccessToken||y)},ms.prototype.normalizeGlyphsURL=function(d,y){if(!De(d))return d;var E=Vr(d);return E.path="/fonts/v1"+E.path,this._makeAPIURL(E,this._customAccessToken||y)},ms.prototype.normalizeSourceURL=function(d,y){if(!De(d))return d;var E=Vr(d);return E.path="/v4/"+E.authority+".json",E.params.push("secure"),this._makeAPIURL(E,this._customAccessToken||y)},ms.prototype.normalizeSpriteURL=function(d,y,E,Z){var re=Vr(d);return De(d)?(re.path="/styles/v1"+re.path+"/sprite"+y+E,this._makeAPIURL(re,this._customAccessToken||Z)):(re.path+=""+y+E,Ro(re))},ms.prototype.normalizeTileURL=function(d,y){if(this._isSkuTokenExpired()&&this._createSkuToken(),d&&!De(d))return d;var E=Vr(d);E.path=E.path.replace(/(\.(png|jpg)\d*)(?=$)/,(zn.devicePixelRatio>=2||y===512?"@2x":"")+(Ui.supported?".webp":"$1")),E.path=E.path.replace(/^.+\/v4\//,"/"),E.path="/v4"+E.path;var Z=this._customAccessToken||function(re){for(var pe=0,Ie=re;pe=0&&d.params.splice(re,1)}if(Z.path!=="/"&&(d.path=""+Z.path+d.path),!Kr.REQUIRE_ACCESS_TOKEN)return Ro(d);if(!(y=y||Kr.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+E);if(y[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+E);return d.params=d.params.filter(function(pe){return pe.indexOf("access_token")===-1}),d.params.push("access_token="+y),Ro(d)};var Oo=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function $i(d){return Oo.test(d)}var co=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Vr(d){var y=d.match(co);if(!y)throw new Error("Unable to parse URL object");return{protocol:y[1],authority:y[2],path:y[3]||"/",params:y[4]?y[4].split("&"):[]}}function Ro(d){var y=d.params.length?"?"+d.params.join("&"):"";return d.protocol+"://"+d.authority+d.path+y}function Tn(d){if(!d)return null;var y=d.split(".");if(!y||y.length!==3)return null;try{return JSON.parse(decodeURIComponent(S.atob(y[1]).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch(E){return null}}var nt=function(d){this.type=d,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};nt.prototype.getStorageKey=function(d){var y,E=Tn(Kr.ACCESS_TOKEN);return y=E&&E.u?S.btoa(encodeURIComponent(E.u).replace(/%([0-9A-F]{2})/g,function(Z,re){return String.fromCharCode(+("0x"+re))})):Kr.ACCESS_TOKEN||"",d?"mapbox.eventData."+d+":"+y:"mapbox.eventData:"+y},nt.prototype.fetchEventData=function(){var d=Ft("localStorage"),y=this.getStorageKey(),E=this.getStorageKey("uuid");if(d)try{var Z=S.localStorage.getItem(y);Z&&(this.eventData=JSON.parse(Z));var re=S.localStorage.getItem(E);re&&(this.anonId=re)}catch(pe){Pe("Unable to read from LocalStorage")}},nt.prototype.saveEventData=function(){var d=Ft("localStorage"),y=this.getStorageKey(),E=this.getStorageKey("uuid");if(d)try{S.localStorage.setItem(E,this.anonId),Object.keys(this.eventData).length>=1&&S.localStorage.setItem(y,JSON.stringify(this.eventData))}catch(Z){Pe("Unable to write to LocalStorage")}},nt.prototype.processRequests=function(d){},nt.prototype.postEvent=function(d,y,E,Z){var re=this;if(Kr.EVENTS_URL){var pe=Vr(Kr.EVENTS_URL);pe.params.push("access_token="+(Z||Kr.ACCESS_TOKEN||""));var Ie={event:this.type,created:new Date(d).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:To,userId:this.anonId},Je=y?fe(Ie,y):Ie,zt={url:Ro(pe),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Je])};this.pendingRequest=Jn(zt,function(ln){re.pendingRequest=null,E(ln),re.saveEventData(),re.processRequests(Z)})}},nt.prototype.queueRequest=function(d,y){this.queue.push(d),this.processRequests(y)};var Ct,Ht,hn=function(d){function y(){d.call(this,"map.load"),this.success={},this.skuToken=""}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype.postMapLoadEvent=function(E,Z,re,pe){this.skuToken=re;var Ie=!(!pe&&!Kr.ACCESS_TOKEN),Je=Array.isArray(E)&&E.some(function(zt){return De(zt)||$i(zt)});Kr.EVENTS_URL&&Ie&&Je&&this.queueRequest({id:Z,timestamp:Date.now()},pe)},y.prototype.processRequests=function(E){var Z=this;if(!this.pendingRequest&&this.queue.length!==0){var re=this.queue.shift(),pe=re.id,Ie=re.timestamp;pe&&this.success[pe]||(this.anonId||this.fetchEventData(),Se(this.anonId)||(this.anonId=xe()),this.postEvent(Ie,{skuToken:this.skuToken},function(Je){Je||pe&&(Z.success[pe]=!0)},E))}},y}(nt),En=new(function(d){function y(E){d.call(this,"appUserTurnstile"),this._customAccessToken=E}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype.postTurnstileEvent=function(E,Z){Kr.EVENTS_URL&&Kr.ACCESS_TOKEN&&Array.isArray(E)&&E.some(function(re){return De(re)||$i(re)})&&this.queueRequest(Date.now(),Z)},y.prototype.processRequests=function(E){var Z=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var re=Tn(Kr.ACCESS_TOKEN),pe=re?re.u:Kr.ACCESS_TOKEN,Ie=pe!==this.eventData.tokenU;Se(this.anonId)||(this.anonId=xe(),Ie=!0);var Je=this.queue.shift();if(this.eventData.lastSuccess){var zt=new Date(this.eventData.lastSuccess),ln=new Date(Je),Kn=(Je-this.eventData.lastSuccess)/864e5;Ie=Ie||Kn>=1||Kn<-1||zt.getDate()!==ln.getDate()}else Ie=!0;if(!Ie)return this.processRequests();this.postEvent(Je,{"enabled.telemetry":!1},function(pr){pr||(Z.eventData.lastSuccess=Je,Z.eventData.tokenU=pe)},E)}},y}(nt)),rn=En.postTurnstileEvent.bind(En),Jt=new hn,Mt=Jt.postMapLoadEvent.bind(Jt),Qt=500,Dn=50;function sn(){S.caches&&!Ct&&(Ct=S.caches.open("mapbox-tiles"))}function wr(d){var y=d.indexOf("?");return y<0?d:d.slice(0,y)}var jr,xi=1/0;function Pr(){return jr==null&&(jr=S.OffscreenCanvas&&new S.OffscreenCanvas(1,1).getContext("2d")&&typeof S.createImageBitmap=="function"),jr}var Hi={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(Hi);var Io=function(d){function y(E,Z,re){Z===401&&$i(re)&&(E+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),d.call(this,E),this.status=Z,this.url=re,this.name=this.constructor.name,this.message=E}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},y}(Error),On=Ce()?function(){return self.worker&&self.worker.referrer}:function(){return(S.location.protocol==="blob:"?S.parent:S).location.href},zr,qr,Wi=function(d,y){if(!(/^file:/.test(E=d.url)||/^file:/.test(On())&&!/^\w+:/.test(E))){if(S.fetch&&S.Request&&S.AbortController&&S.Request.prototype.hasOwnProperty("signal"))return function(Z,re){var pe,Ie=new S.AbortController,Je=new S.Request(Z.url,{method:Z.method||"GET",body:Z.body,credentials:Z.credentials,headers:Z.headers,referrer:On(),signal:Ie.signal}),zt=!1,ln=!1,Kn=(pe=Je.url).indexOf("sku=")>0&&$i(pe);Z.type==="json"&&Je.headers.set("Accept","application/json");var pr=function(yi,Do,Co){if(!ln){if(yi&&yi.message!=="SecurityError"&&Pe(yi),Do&&Co)return si(Do);var Uo=Date.now();S.fetch(Je).then(function(Mo){if(Mo.ok){var oo=Kn?Mo.clone():null;return si(Mo,oo,Uo)}return re(new Io(Mo.statusText,Mo.status,Z.url))}).catch(function(Mo){Mo.code!==20&&re(new Error(Mo.message))})}},si=function(yi,Do,Co){(Z.type==="arrayBuffer"?yi.arrayBuffer():Z.type==="json"?yi.json():yi.text()).then(function(Uo){ln||(Do&&Co&&function(Mo,oo,Vs){if(sn(),Ct){var Ta={status:oo.status,statusText:oo.statusText,headers:new S.Headers};oo.headers.forEach(function(ou,Tu){return Ta.headers.set(Tu,ou)});var cl=rt(oo.headers.get("Cache-Control")||"");cl["no-store"]||(cl["max-age"]&&Ta.headers.set("Expires",new Date(Vs+1e3*cl["max-age"]).toUTCString()),new Date(Ta.headers.get("Expires")).getTime()-Vs<42e4||function(ou,Tu){if(Ht===void 0)try{new Response(new ReadableStream),Ht=!0}catch(Cu){Ht=!1}Ht?Tu(ou.body):ou.blob().then(Tu)}(oo,function(ou){var Tu=new S.Response(ou,Ta);sn(),Ct&&Ct.then(function(Cu){return Cu.put(wr(Mo.url),Tu)}).catch(function(Cu){return Pe(Cu.message)})}))}}(Je,Do,Co),zt=!0,re(null,Uo,yi.headers.get("Cache-Control"),yi.headers.get("Expires")))}).catch(function(Uo){ln||re(new Error(Uo.message))})};return Kn?function(yi,Do){if(sn(),!Ct)return Do(null);var Co=wr(yi.url);Ct.then(function(Uo){Uo.match(Co).then(function(Mo){var oo=function(Vs){if(!Vs)return!1;var Ta=new Date(Vs.headers.get("Expires")||0),cl=rt(Vs.headers.get("Cache-Control")||"");return Ta>Date.now()&&!cl["no-cache"]}(Mo);Uo.delete(Co),oo&&Uo.put(Co,Mo.clone()),Do(null,Mo,oo)}).catch(Do)}).catch(Do)}(Je,pr):pr(null,null),{cancel:function(){ln=!0,zt||Ie.abort()}}}(d,y);if(Ce()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",d,y,void 0,!0)}var E;return function(Z,re){var pe=new S.XMLHttpRequest;for(var Ie in pe.open(Z.method||"GET",Z.url,!0),Z.type==="arrayBuffer"&&(pe.responseType="arraybuffer"),Z.headers)pe.setRequestHeader(Ie,Z.headers[Ie]);return Z.type==="json"&&(pe.responseType="text",pe.setRequestHeader("Accept","application/json")),pe.withCredentials=Z.credentials==="include",pe.onerror=function(){re(new Error(pe.statusText))},pe.onload=function(){if((pe.status>=200&&pe.status<300||pe.status===0)&&pe.response!==null){var Je=pe.response;if(Z.type==="json")try{Je=JSON.parse(pe.response)}catch(zt){return re(zt)}re(null,Je,pe.getResponseHeader("Cache-Control"),pe.getResponseHeader("Expires"))}else re(new Io(pe.statusText,pe.status,Z.url))},pe.send(Z.body),{cancel:function(){return pe.abort()}}}(d,y)},ir=function(d,y){return Wi(fe(d,{type:"arrayBuffer"}),y)},Jn=function(d,y){return Wi(fe(d,{method:"POST"}),y)},$t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";zr=[],qr=0;var Gt=function(d,y){if(Ui.supported&&(d.headers||(d.headers={}),d.headers.accept="image/webp,*/*"),qr>=Kr.MAX_PARALLEL_IMAGE_REQUESTS){var E={requestParameters:d,callback:y,cancelled:!1,cancel:function(){this.cancelled=!0}};return zr.push(E),E}qr++;var Z=!1,re=function(){if(!Z)for(Z=!0,qr--;zr.length&&qr0||this._oneTimeListeners&&this._oneTimeListeners[d]&&this._oneTimeListeners[d].length>0||this._eventedParent&&this._eventedParent.listens(d)},$n.prototype.setEventedParent=function(d,y){return this._eventedParent=d,this._eventedParentData=y,this};var jt={$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"}}},In=function(d,y,E,Z){this.message=(d?d+": ":"")+E,Z&&(this.identifier=Z),y!=null&&y.__line__&&(this.line=y.__line__)};function vr(d){var y=d.value;return y?[new In(d.key,y,"constants have been deprecated as of v8")]:[]}function Ur(d){for(var y=[],E=arguments.length-1;E-- >0;)y[E]=arguments[E+1];for(var Z=0,re=y;Z":d.itemType.kind==="value"?"array":"array<"+y+">"}return d.kind}var hs=[Nr,bi,Ei,Yi,di,Xr,Wr,ls(Ni),yo];function ta(d,y){if(y.kind==="error")return null;if(d.kind==="array"){if(y.kind==="array"&&(y.N===0&&y.itemType.kind==="value"||!ta(d.itemType,y.itemType))&&(typeof d.N!="number"||d.N===y.N))return null}else{if(d.kind===y.kind)return null;if(d.kind==="value"){for(var E=0,Z=hs;E255?255:Je}function re(Je){return Z(Je[Je.length-1]==="%"?parseFloat(Je)/100*255:parseInt(Je))}function pe(Je){return(zt=Je[Je.length-1]==="%"?parseFloat(Je)/100:parseFloat(Je))<0?0:zt>1?1:zt;var zt}function Ie(Je,zt,ln){return ln<0?ln+=1:ln>1&&(ln-=1),6*ln<1?Je+(zt-Je)*ln*6:2*ln<1?zt:3*ln<2?Je+(zt-Je)*(2/3-ln)*6:Je}try{y.parseCSSColor=function(Je){var zt,ln=Je.replace(/ /g,"").toLowerCase();if(ln in E)return E[ln].slice();if(ln[0]==="#")return ln.length===4?(zt=parseInt(ln.substr(1),16))>=0&&zt<=4095?[(3840&zt)>>4|(3840&zt)>>8,240&zt|(240&zt)>>4,15&zt|(15&zt)<<4,1]:null:ln.length===7&&(zt=parseInt(ln.substr(1),16))>=0&&zt<=16777215?[(16711680&zt)>>16,(65280&zt)>>8,255&zt,1]:null;var Kn=ln.indexOf("("),pr=ln.indexOf(")");if(Kn!==-1&&pr+1===ln.length){var si=ln.substr(0,Kn),yi=ln.substr(Kn+1,pr-(Kn+1)).split(","),Do=1;switch(si){case"rgba":if(yi.length!==4)return null;Do=pe(yi.pop());case"rgb":return yi.length!==3?null:[re(yi[0]),re(yi[1]),re(yi[2]),Do];case"hsla":if(yi.length!==4)return null;Do=pe(yi.pop());case"hsl":if(yi.length!==3)return null;var Co=(parseFloat(yi[0])%360+360)%360/360,Uo=pe(yi[1]),Mo=pe(yi[2]),oo=Mo<=.5?Mo*(Uo+1):Mo+Uo-Mo*Uo,Vs=2*Mo-oo;return[Z(255*Ie(Vs,oo,Co+1/3)),Z(255*Ie(Vs,oo,Co)),Z(255*Ie(Vs,oo,Co-1/3)),Do];default:return null}}return null}}catch(Je){}}).parseCSSColor,or=function(d,y,E,Z){Z===void 0&&(Z=1),this.r=d,this.g=y,this.b=E,this.a=Z};or.parse=function(d){if(d){if(d instanceof or)return d;if(typeof d=="string"){var y=mo(d);if(y)return new or(y[0]/255*y[3],y[1]/255*y[3],y[2]/255*y[3],y[3])}}},or.prototype.toString=function(){var d=this.toArray(),y=d[1],E=d[2],Z=d[3];return"rgba("+Math.round(d[0])+","+Math.round(y)+","+Math.round(E)+","+Z+")"},or.prototype.toArray=function(){var d=this.a;return d===0?[0,0,0,0]:[255*this.r/d,255*this.g/d,255*this.b/d,d]},or.black=new or(0,0,0,1),or.white=new or(1,1,1,1),or.transparent=new or(0,0,0,0),or.red=new or(1,0,0,1);var Oi=function(d,y,E){this.sensitivity=d?y?"variant":"case":y?"accent":"base",this.locale=E,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Oi.prototype.compare=function(d,y){return this.collator.compare(d,y)},Oi.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Wa=function(d,y,E,Z,re){this.text=d,this.image=y,this.scale=E,this.fontStack=Z,this.textColor=re},Sa=function(d){this.sections=d};Sa.fromString=function(d){return new Sa([new Wa(d,null,null,null,null)])},Sa.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(d){return d.text.length!==0||d.image&&d.image.name.length!==0})},Sa.factory=function(d){return d instanceof Sa?d:Sa.fromString(d)},Sa.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(d){return d.text}).join("")},Sa.prototype.serialize=function(){for(var d=["format"],y=0,E=this.sections;y=0&&d<=255&&typeof y=="number"&&y>=0&&y<=255&&typeof E=="number"&&E>=0&&E<=255?Z===void 0||typeof Z=="number"&&Z>=0&&Z<=1?null:"Invalid rgba value ["+[d,y,E,Z].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof Z=="number"?[d,y,E,Z]:[d,y,E]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function wo(d){if(d===null||typeof d=="string"||typeof d=="boolean"||typeof d=="number"||d instanceof or||d instanceof Oi||d instanceof Sa||d instanceof xa)return!0;if(Array.isArray(d)){for(var y=0,E=d;y2){var Je=d[1];if(typeof Je!="string"||!(Je in An)||Je==="object")return y.error('The item type argument of "array" must be one of string, number, boolean',1);pe=An[Je],Z++}else pe=Ni;if(d.length>3){if(d[2]!==null&&(typeof d[2]!="number"||d[2]<0||d[2]!==Math.floor(d[2])))return y.error('The length argument to "array" must be a positive integer literal',2);Ie=d[2],Z++}E=ls(pe,Ie)}else E=An[re];for(var zt=[];Z1)&&y.push(Z)}}return y.concat(this.args.map(function(re){return re.serialize()}))};var ao=function(d){this.type=Xr,this.sections=d};ao.parse=function(d,y){if(d.length<2)return y.error("Expected at least one argument.");var E=d[1];if(!Array.isArray(E)&&typeof E=="object")return y.error("First argument must be an image or text section.");for(var Z=[],re=!1,pe=1;pe<=d.length-1;++pe){var Ie=d[pe];if(re&&typeof Ie=="object"&&!Array.isArray(Ie)){re=!1;var Je=null;if(Ie["font-scale"]&&!(Je=y.parse(Ie["font-scale"],1,bi)))return null;var zt=null;if(Ie["text-font"]&&!(zt=y.parse(Ie["text-font"],1,ls(Ei))))return null;var ln=null;if(Ie["text-color"]&&!(ln=y.parse(Ie["text-color"],1,di)))return null;var Kn=Z[Z.length-1];Kn.scale=Je,Kn.font=zt,Kn.textColor=ln}else{var pr=y.parse(d[pe],1,Ni);if(!pr)return null;var si=pr.type.kind;if(si!=="string"&&si!=="value"&&si!=="null"&&si!=="resolvedImage")return y.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");re=!0,Z.push({content:pr,scale:null,font:null,textColor:null})}}return new ao(Z)},ao.prototype.evaluate=function(d){return new Sa(this.sections.map(function(y){var E=y.content.evaluate(d);return _l(E)===yo?new Wa("",E,null,null,null):new Wa(El(E),null,y.scale?y.scale.evaluate(d):null,y.font?y.font.evaluate(d).join(","):null,y.textColor?y.textColor.evaluate(d):null)}))},ao.prototype.eachChild=function(d){for(var y=0,E=this.sections;y-1),E},Mi.prototype.eachChild=function(d){d(this.input)},Mi.prototype.outputDefined=function(){return!1},Mi.prototype.serialize=function(){return["image",this.input.serialize()]};var _s={"to-boolean":Yi,"to-color":di,"to-number":bi,"to-string":Ei},Hs=function(d,y){this.type=d,this.args=y};Hs.parse=function(d,y){if(d.length<2)return y.error("Expected at least one argument.");var E=d[0];if((E==="to-boolean"||E==="to-string")&&d.length!==2)return y.error("Expected one argument.");for(var Z=_s[E],re=[],pe=1;pe4?"Invalid rbga value "+JSON.stringify(y)+": expected an array containing either three or four numeric values.":Ml(y[0],y[1],y[2],y[3])))return new or(y[0]/255,y[1]/255,y[2]/255,y[3])}throw new to(E||"Could not parse color from value '"+(typeof y=="string"?y:String(JSON.stringify(y)))+"'")}if(this.type.kind==="number"){for(var Ie=null,Je=0,zt=this.args;Je=y[2]||d[1]<=y[1]||d[3]>=y[3])}function xt(d,y){var E=(180+d[0])/360,Z=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+d[1]*Math.PI/360)))/360,re=Math.pow(2,y.z);return[Math.round(E*re*8192),Math.round(Z*re*8192)]}function Et(d,y,E){return y[1]>d[1]!=E[1]>d[1]&&d[0]<(E[0]-y[0])*(d[1]-y[1])/(E[1]-y[1])+y[0]}function et(d,y){for(var E,Z,re,pe,Ie,Je,zt,ln=!1,Kn=0,pr=y.length;Kn0&&Je<0||Ie<0&&Je>0}function yn(d,y,E){for(var Z=0,re=E;ZE[2]){var re=.5*Z,pe=d[0]-E[0]>re?-Z:E[0]-d[0]>re?Z:0;pe===0&&(pe=d[0]-E[2]>re?-Z:E[2]-d[0]>re?Z:0),d[0]+=pe}ur(y,d)}function Cs(d,y,E,Z){for(var re=8192*Math.pow(2,Z.z),pe=[8192*Z.x,8192*Z.y],Ie=[],Je=0,zt=d;Je=0)return!1;var E=!0;return d.eachChild(function(Z){E&&!js(Z,y)&&(E=!1)}),E}ba.parse=function(d,y){if(d.length!==2)return y.error("'within' expression requires exactly one argument, but found "+(d.length-1)+" instead.");if(wo(d[1])){var E=d[1];if(E.type==="FeatureCollection")for(var Z=0;Zy))throw new to("Input is not a number.");pe=Ie-1}return 0}da.prototype.parse=function(d,y,E,Z,re){return re===void 0&&(re={}),y?this.concat(y,E,Z)._parse(d,re):this._parse(d,re)},da.prototype._parse=function(d,y){function E(ln,Kn,pr){return pr==="assert"?new ri(Kn,[ln]):pr==="coerce"?new Hs(Kn,[ln]):ln}if(d!==null&&typeof d!="string"&&typeof d!="boolean"&&typeof d!="number"||(d=["literal",d]),Array.isArray(d)){if(d.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var Z=d[0];if(typeof Z!="string")return this.error("Expression name must be a string, but found "+typeof Z+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var re=this.registry[Z];if(re){var pe=re.parse(d,this);if(!pe)return null;if(this.expectedType){var Ie=this.expectedType,Je=pe.type;if(Ie.kind!=="string"&&Ie.kind!=="number"&&Ie.kind!=="boolean"&&Ie.kind!=="object"&&Ie.kind!=="array"||Je.kind!=="value")if(Ie.kind!=="color"&&Ie.kind!=="formatted"&&Ie.kind!=="resolvedImage"||Je.kind!=="value"&&Je.kind!=="string"){if(this.checkSubtype(Ie,Je))return null}else pe=E(pe,Ie,y.typeAnnotation||"coerce");else pe=E(pe,Ie,y.typeAnnotation||"assert")}if(!(pe instanceof Ai)&&pe.type.kind!=="resolvedImage"&&function ln(Kn){if(Kn instanceof ga)return ln(Kn.boundExpression);if(Kn instanceof fn&&Kn.name==="error"||Kn instanceof Ln||Kn instanceof ba)return!1;var pr=Kn instanceof Hs||Kn instanceof ri,si=!0;return Kn.eachChild(function(yi){si=pr?si&&ln(yi):si&&yi instanceof Ai}),!!si&&Zs(Kn)&&js(Kn,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(pe)){var zt=new Bi;try{pe=new Ai(pe.type,pe.evaluate(zt))}catch(ln){return this.error(ln.message),null}}return pe}return this.error('Unknown expression "'+Z+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(d===void 0?"'undefined' value invalid. Use null instead.":typeof d=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof d+" instead.")},da.prototype.concat=function(d,y,E){var Z=typeof d=="number"?this.path.concat(d):this.path,re=E?this.scope.concat(E):this.scope;return new da(this.registry,Z,y||null,re,this.errors)},da.prototype.error=function(d){for(var y=[],E=arguments.length-1;E-- >0;)y[E]=arguments[E+1];var Z=""+this.key+y.map(function(re){return"["+re+"]"}).join("");this.errors.push(new xn(Z,d))},da.prototype.checkSubtype=function(d,y){var E=ta(d,y);return E&&this.error(E),E};var Al=function(d,y,E){this.type=d,this.input=y,this.labels=[],this.outputs=[];for(var Z=0,re=E;Z=Ie)return y.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',zt);var Kn=y.parse(Je,ln,re);if(!Kn)return null;re=re||Kn.type,Z.push([Ie,Kn])}return new Al(re,E,Z)},Al.prototype.evaluate=function(d){var y=this.labels,E=this.outputs;if(y.length===1)return E[0].evaluate(d);var Z=this.input.evaluate(d);if(Z<=y[0])return E[0].evaluate(d);var re=y.length;return Z>=y[re-1]?E[re-1].evaluate(d):E[Il(y,Z)].evaluate(d)},Al.prototype.eachChild=function(d){d(this.input);for(var y=0,E=this.outputs;y0&&d.push(this.labels[y]),d.push(this.outputs[y].serialize());return d};var Ea=Object.freeze({__proto__:null,number:Js,color:function(d,y,E){return new or(Js(d.r,y.r,E),Js(d.g,y.g,E),Js(d.b,y.b,E),Js(d.a,y.a,E))},array:function(d,y,E){return d.map(function(Z,re){return Js(Z,y[re],E)})}}),gl=6/29*3*(6/29),ds=Math.PI/180,Gi=180/Math.PI;function Jo(d){return d>.008856451679035631?Math.pow(d,1/3):d/gl+4/29}function Ps(d){return d>6/29?d*d*d:gl*(d-4/29)}function Fs(d){return 255*(d<=.0031308?12.92*d:1.055*Math.pow(d,1/2.4)-.055)}function Za(d){return(d/=255)<=.04045?d/12.92:Math.pow((d+.055)/1.055,2.4)}function Nu(d){var y=Za(d.r),E=Za(d.g),Z=Za(d.b),re=Jo((.4124564*y+.3575761*E+.1804375*Z)/.95047),pe=Jo((.2126729*y+.7151522*E+.072175*Z)/1);return{l:116*pe-16,a:500*(re-pe),b:200*(pe-Jo((.0193339*y+.119192*E+.9503041*Z)/1.08883)),alpha:d.a}}function Tc(d){var y=(d.l+16)/116,E=isNaN(d.a)?y:y+d.a/500,Z=isNaN(d.b)?y:y-d.b/200;return y=1*Ps(y),E=.95047*Ps(E),Z=1.08883*Ps(Z),new or(Fs(3.2404542*E-1.5371385*y-.4985314*Z),Fs(-.969266*E+1.8760108*y+.041556*Z),Fs(.0556434*E-.2040259*y+1.0572252*Z),d.alpha)}function Pc(d,y,E){var Z=y-d;return d+E*(Z>180||Z<-180?Z-360*Math.round(Z/360):Z)}var tc={forward:Nu,reverse:Tc,interpolate:function(d,y,E){return{l:Js(d.l,y.l,E),a:Js(d.a,y.a,E),b:Js(d.b,y.b,E),alpha:Js(d.alpha,y.alpha,E)}}},cc={forward:function(d){var y=Nu(d),E=y.l,Z=y.a,re=y.b,pe=Math.atan2(re,Z)*Gi;return{h:pe<0?pe+360:pe,c:Math.sqrt(Z*Z+re*re),l:E,alpha:d.a}},reverse:function(d){var y=d.h*ds,E=d.c;return Tc({l:d.l,a:Math.cos(y)*E,b:Math.sin(y)*E,alpha:d.alpha})},interpolate:function(d,y,E){return{h:Pc(d.h,y.h,E),c:Js(d.c,y.c,E),l:Js(d.l,y.l,E),alpha:Js(d.alpha,y.alpha,E)}}},Uu=Object.freeze({__proto__:null,lab:tc,hcl:cc}),Pn=function(d,y,E,Z,re){this.type=d,this.operator=y,this.interpolation=E,this.input=Z,this.labels=[],this.outputs=[];for(var pe=0,Ie=re;pe1}))return y.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);Z={name:"cubic-bezier",controlPoints:Je}}if(d.length-1<4)return y.error("Expected at least 4 arguments, but found only "+(d.length-1)+".");if((d.length-1)%2!=0)return y.error("Expected an even number of arguments.");if(!(re=y.parse(re,2,bi)))return null;var zt=[],ln=null;E==="interpolate-hcl"||E==="interpolate-lab"?ln=di:y.expectedType&&y.expectedType.kind!=="value"&&(ln=y.expectedType);for(var Kn=0;Kn=pr)return y.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',yi);var Co=y.parse(si,Do,ln);if(!Co)return null;ln=ln||Co.type,zt.push([pr,Co])}return ln.kind==="number"||ln.kind==="color"||ln.kind==="array"&&ln.itemType.kind==="number"&&typeof ln.N=="number"?new Pn(ln,E,Z,re,zt):y.error("Type "+Sr(ln)+" is not interpolatable.")},Pn.prototype.evaluate=function(d){var y=this.labels,E=this.outputs;if(y.length===1)return E[0].evaluate(d);var Z=this.input.evaluate(d);if(Z<=y[0])return E[0].evaluate(d);var re=y.length;if(Z>=y[re-1])return E[re-1].evaluate(d);var pe=Il(y,Z),Ie=Pn.interpolationFactor(this.interpolation,Z,y[pe],y[pe+1]),Je=E[pe].evaluate(d),zt=E[pe+1].evaluate(d);return this.operator==="interpolate"?Ea[this.type.kind.toLowerCase()](Je,zt,Ie):this.operator==="interpolate-hcl"?cc.reverse(cc.interpolate(cc.forward(Je),cc.forward(zt),Ie)):tc.reverse(tc.interpolate(tc.forward(Je),tc.forward(zt),Ie))},Pn.prototype.eachChild=function(d){d(this.input);for(var y=0,E=this.outputs;y=E.length)throw new to("Array index out of bounds: "+y+" > "+(E.length-1)+".");if(y!==Math.floor(y))throw new to("Array index must be an integer, but found "+y+" instead.");return E[y]},ai.prototype.eachChild=function(d){d(this.index),d(this.input)},ai.prototype.outputDefined=function(){return!1},ai.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Qi=function(d,y){this.type=Yi,this.needle=d,this.haystack=y};Qi.parse=function(d,y){if(d.length!==3)return y.error("Expected 2 arguments, but found "+(d.length-1)+" instead.");var E=y.parse(d[1],1,Ni),Z=y.parse(d[2],2,Ni);return E&&Z?fi(E.type,[Yi,Ei,bi,Nr,Ni])?new Qi(E,Z):y.error("Expected first argument to be of type boolean, string, number or null, but found "+Sr(E.type)+" instead"):null},Qi.prototype.evaluate=function(d){var y=this.needle.evaluate(d),E=this.haystack.evaluate(d);if(!E)return!1;if(!Po(y,["boolean","string","number","null"]))throw new to("Expected first argument to be of type boolean, string, number or null, but found "+Sr(_l(y))+" instead.");if(!Po(E,["string","array"]))throw new to("Expected second argument to be of type array or string, but found "+Sr(_l(E))+" instead.");return E.indexOf(y)>=0},Qi.prototype.eachChild=function(d){d(this.needle),d(this.haystack)},Qi.prototype.outputDefined=function(){return!0},Qi.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Pi=function(d,y,E){this.type=bi,this.needle=d,this.haystack=y,this.fromIndex=E};Pi.parse=function(d,y){if(d.length<=2||d.length>=5)return y.error("Expected 3 or 4 arguments, but found "+(d.length-1)+" instead.");var E=y.parse(d[1],1,Ni),Z=y.parse(d[2],2,Ni);if(!E||!Z)return null;if(!fi(E.type,[Yi,Ei,bi,Nr,Ni]))return y.error("Expected first argument to be of type boolean, string, number or null, but found "+Sr(E.type)+" instead");if(d.length===4){var re=y.parse(d[3],3,bi);return re?new Pi(E,Z,re):null}return new Pi(E,Z)},Pi.prototype.evaluate=function(d){var y=this.needle.evaluate(d),E=this.haystack.evaluate(d);if(!Po(y,["boolean","string","number","null"]))throw new to("Expected first argument to be of type boolean, string, number or null, but found "+Sr(_l(y))+" instead.");if(!Po(E,["string","array"]))throw new to("Expected second argument to be of type array or string, but found "+Sr(_l(E))+" instead.");if(this.fromIndex){var Z=this.fromIndex.evaluate(d);return E.indexOf(y,Z)}return E.indexOf(y)},Pi.prototype.eachChild=function(d){d(this.needle),d(this.haystack),this.fromIndex&&d(this.fromIndex)},Pi.prototype.outputDefined=function(){return!1},Pi.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var d=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),d]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var fs=function(d,y,E,Z,re,pe){this.inputType=d,this.type=y,this.input=E,this.cases=Z,this.outputs=re,this.otherwise=pe};fs.parse=function(d,y){if(d.length<5)return y.error("Expected at least 4 arguments, but found only "+(d.length-1)+".");if(d.length%2!=1)return y.error("Expected an even number of arguments.");var E,Z;y.expectedType&&y.expectedType.kind!=="value"&&(Z=y.expectedType);for(var re={},pe=[],Ie=2;IeNumber.MAX_SAFE_INTEGER)return ln.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof si=="number"&&Math.floor(si)!==si)return ln.error("Numeric branch labels must be integer values.");if(E){if(ln.checkSubtype(E,_l(si)))return null}else E=_l(si);if(re[String(si)]!==void 0)return ln.error("Branch labels must be unique.");re[String(si)]=pe.length}var yi=y.parse(zt,Ie,Z);if(!yi)return null;Z=Z||yi.type,pe.push(yi)}var Do=y.parse(d[1],1,Ni);if(!Do)return null;var Co=y.parse(d[d.length-1],d.length-1,Z);return Co?Do.type.kind!=="value"&&y.concat(1).checkSubtype(E,Do.type)?null:new fs(E,Z,Do,re,pe,Co):null},fs.prototype.evaluate=function(d){var y=this.input.evaluate(d);return(_l(y)===this.inputType&&this.outputs[this.cases[y]]||this.otherwise).evaluate(d)},fs.prototype.eachChild=function(d){d(this.input),this.outputs.forEach(d),d(this.otherwise)},fs.prototype.outputDefined=function(){return this.outputs.every(function(d){return d.outputDefined()})&&this.otherwise.outputDefined()},fs.prototype.serialize=function(){for(var d=this,y=["match",this.input.serialize()],E=[],Z={},re=0,pe=Object.keys(this.cases).sort();re=5)return y.error("Expected 3 or 4 arguments, but found "+(d.length-1)+" instead.");var E=y.parse(d[1],1,Ni),Z=y.parse(d[2],2,bi);if(!E||!Z)return null;if(!fi(E.type,[ls(Ni),Ei,Ni]))return y.error("Expected first argument to be of type array or string, but found "+Sr(E.type)+" instead");if(d.length===4){var re=y.parse(d[3],3,bi);return re?new Ma(E.type,E,Z,re):null}return new Ma(E.type,E,Z)},Ma.prototype.evaluate=function(d){var y=this.input.evaluate(d),E=this.beginIndex.evaluate(d);if(!Po(y,["string","array"]))throw new to("Expected first argument to be of type array or string, but found "+Sr(_l(y))+" instead.");if(this.endIndex){var Z=this.endIndex.evaluate(d);return y.slice(E,Z)}return y.slice(E)},Ma.prototype.eachChild=function(d){d(this.input),d(this.beginIndex),this.endIndex&&d(this.endIndex)},Ma.prototype.outputDefined=function(){return!1},Ma.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var d=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),d]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var Oa=Dl("==",function(d,y,E){return y===E},rl),ju=Dl("!=",function(d,y,E){return y!==E},function(d,y,E,Z){return!rl(0,y,E,Z)}),Ia=Dl("<",function(d,y,E){return y",function(d,y,E){return y>E},function(d,y,E,Z){return Z.compare(y,E)>0}),tl=Dl("<=",function(d,y,E){return y<=E},function(d,y,E,Z){return Z.compare(y,E)<=0}),cu=Dl(">=",function(d,y,E){return y>=E},function(d,y,E,Z){return Z.compare(y,E)>=0}),Xl=function(d,y,E,Z,re){this.type=Ei,this.number=d,this.locale=y,this.currency=E,this.minFractionDigits=Z,this.maxFractionDigits=re};Xl.parse=function(d,y){if(d.length!==3)return y.error("Expected two arguments.");var E=y.parse(d[1],1,bi);if(!E)return null;var Z=d[2];if(typeof Z!="object"||Array.isArray(Z))return y.error("NumberFormat options argument must be an object.");var re=null;if(Z.locale&&!(re=y.parse(Z.locale,1,Ei)))return null;var pe=null;if(Z.currency&&!(pe=y.parse(Z.currency,1,Ei)))return null;var Ie=null;if(Z["min-fraction-digits"]&&!(Ie=y.parse(Z["min-fraction-digits"],1,bi)))return null;var Je=null;return Z["max-fraction-digits"]&&!(Je=y.parse(Z["max-fraction-digits"],1,bi))?null:new Xl(E,re,pe,Ie,Je)},Xl.prototype.evaluate=function(d){return new Intl.NumberFormat(this.locale?this.locale.evaluate(d):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(d):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(d):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(d):void 0}).format(this.number.evaluate(d))},Xl.prototype.eachChild=function(d){d(this.number),this.locale&&d(this.locale),this.currency&&d(this.currency),this.minFractionDigits&&d(this.minFractionDigits),this.maxFractionDigits&&d(this.maxFractionDigits)},Xl.prototype.outputDefined=function(){return!1},Xl.prototype.serialize=function(){var d={};return this.locale&&(d.locale=this.locale.serialize()),this.currency&&(d.currency=this.currency.serialize()),this.minFractionDigits&&(d["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(d["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),d]};var yu=function(d){this.type=bi,this.input=d};yu.parse=function(d,y){if(d.length!==2)return y.error("Expected 1 argument, but found "+(d.length-1)+" instead.");var E=y.parse(d[1],1);return E?E.type.kind!=="array"&&E.type.kind!=="string"&&E.type.kind!=="value"?y.error("Expected argument of type string or array, but found "+Sr(E.type)+" instead."):new yu(E):null},yu.prototype.evaluate=function(d){var y=this.input.evaluate(d);if(typeof y=="string"||Array.isArray(y))return y.length;throw new to("Expected value to be of type string or array, but found "+Sr(_l(y))+" instead.")},yu.prototype.eachChild=function(d){d(this.input)},yu.prototype.outputDefined=function(){return!1},yu.prototype.serialize=function(){var d=["length"];return this.eachChild(function(y){d.push(y.serialize())}),d};var Cl={"==":Oa,"!=":ju,">":Ha,"<":Ia,">=":cu,"<=":tl,array:ri,at:ai,boolean:ri,case:Ks,coalesce:Lr,collator:Ln,format:ao,image:Mi,in:Qi,"index-of":Pi,interpolate:Pn,"interpolate-hcl":Pn,"interpolate-lab":Pn,length:yu,let:Gr,literal:Ai,match:fs,number:ri,"number-format":Xl,object:ri,slice:Ma,step:Al,string:ri,"to-boolean":Hs,"to-color":Hs,"to-number":Hs,"to-string":Hs,var:ga,within:ba};function nu(d,y){var E=y[0],Z=y[1],re=y[2],pe=y[3];E=E.evaluate(d),Z=Z.evaluate(d),re=re.evaluate(d);var Ie=pe?pe.evaluate(d):1,Je=Ml(E,Z,re,Ie);if(Je)throw new to(Je);return new or(E/255*Ie,Z/255*Ie,re/255*Ie,Ie)}function Xn(d,y){return d in y}function Ho(d,y){var E=y[d];return E===void 0?null:E}function Ls(d){return{type:d}}function Xs(d){return{result:"success",value:d}}function il(d){return{result:"error",value:d}}function iu(d){return d["property-type"]==="data-driven"||d["property-type"]==="cross-faded-data-driven"}function hu(d){return!!d.expression&&d.expression.parameters.indexOf("zoom")>-1}function ic(d){return!!d.expression&&d.expression.interpolated}function Gu(d){return d instanceof Number?"number":d instanceof String?"string":d instanceof Boolean?"boolean":Array.isArray(d)?"array":d===null?"null":typeof d}function pc(d){return typeof d=="object"&&d!==null&&!Array.isArray(d)}function qc(d){return d}function Lc(d,y,E){return d!==void 0?d:y!==void 0?y:E!==void 0?E:void 0}function jh(d,y,E,Z,re){return Lc(typeof E===re?Z[E]:void 0,d.default,y.default)}function Md(d,y,E){if(Gu(E)!=="number")return Lc(d.default,y.default);var Z=d.stops.length;if(Z===1||E<=d.stops[0][0])return d.stops[0][1];if(E>=d.stops[Z-1][0])return d.stops[Z-1][1];var re=Il(d.stops.map(function(pe){return pe[0]}),E);return d.stops[re][1]}function ad(d,y,E){var Z=d.base!==void 0?d.base:1;if(Gu(E)!=="number")return Lc(d.default,y.default);var re=d.stops.length;if(re===1||E<=d.stops[0][0])return d.stops[0][1];if(E>=d.stops[re-1][0])return d.stops[re-1][1];var pe=Il(d.stops.map(function(pr){return pr[0]}),E),Ie=function(pr,si,yi,Do){var Co=Do-yi,Uo=pr-yi;return Co===0?0:si===1?Uo/Co:(Math.pow(si,Uo)-1)/(Math.pow(si,Co)-1)}(E,Z,d.stops[pe][0],d.stops[pe+1][0]),Je=d.stops[pe][1],zt=d.stops[pe+1][1],ln=Ea[y.type]||qc;if(d.colorSpace&&d.colorSpace!=="rgb"){var Kn=Uu[d.colorSpace];ln=function(pr,si){return Kn.reverse(Kn.interpolate(Kn.forward(pr),Kn.forward(si),Ie))}}return typeof Je.evaluate=="function"?{evaluate:function(){for(var pr=[],si=arguments.length;si--;)pr[si]=arguments[si];var yi=Je.evaluate.apply(void 0,pr),Do=zt.evaluate.apply(void 0,pr);if(yi!==void 0&&Do!==void 0)return ln(yi,Do,Ie)}}:ln(Je,zt,Ie)}function kh(d,y,E){return y.type==="color"?E=or.parse(E):y.type==="formatted"?E=Sa.fromString(E.toString()):y.type==="resolvedImage"?E=xa.fromString(E.toString()):Gu(E)===y.type||y.type==="enum"&&y.values[E]||(E=void 0),Lc(E,d.default,y.default)}fn.register(Cl,{error:[{kind:"error"},[Ei],function(d,y){throw new to(y[0].evaluate(d))}],typeof:[Ei,[Ni],function(d,y){return Sr(_l(y[0].evaluate(d)))}],"to-rgba":[ls(bi,4),[di],function(d,y){return y[0].evaluate(d).toArray()}],rgb:[di,[bi,bi,bi],nu],rgba:[di,[bi,bi,bi,bi],nu],has:{type:Yi,overloads:[[[Ei],function(d,y){return Xn(y[0].evaluate(d),d.properties())}],[[Ei,Wr],function(d,y){var E=y[1];return Xn(y[0].evaluate(d),E.evaluate(d))}]]},get:{type:Ni,overloads:[[[Ei],function(d,y){return Ho(y[0].evaluate(d),d.properties())}],[[Ei,Wr],function(d,y){var E=y[1];return Ho(y[0].evaluate(d),E.evaluate(d))}]]},"feature-state":[Ni,[Ei],function(d,y){return Ho(y[0].evaluate(d),d.featureState||{})}],properties:[Wr,[],function(d){return d.properties()}],"geometry-type":[Ei,[],function(d){return d.geometryType()}],id:[Ni,[],function(d){return d.id()}],zoom:[bi,[],function(d){return d.globals.zoom}],"heatmap-density":[bi,[],function(d){return d.globals.heatmapDensity||0}],"line-progress":[bi,[],function(d){return d.globals.lineProgress||0}],accumulated:[Ni,[],function(d){return d.globals.accumulated===void 0?null:d.globals.accumulated}],"+":[bi,Ls(bi),function(d,y){for(var E=0,Z=0,re=y;Z":[Yi,[Ei,Ni],function(d,y){var E=y[0],Z=y[1],re=d.properties()[E.value],pe=Z.value;return typeof re==typeof pe&&re>pe}],"filter-id->":[Yi,[Ni],function(d,y){var E=y[0],Z=d.id(),re=E.value;return typeof Z==typeof re&&Z>re}],"filter-<=":[Yi,[Ei,Ni],function(d,y){var E=y[0],Z=y[1],re=d.properties()[E.value],pe=Z.value;return typeof re==typeof pe&&re<=pe}],"filter-id-<=":[Yi,[Ni],function(d,y){var E=y[0],Z=d.id(),re=E.value;return typeof Z==typeof re&&Z<=re}],"filter->=":[Yi,[Ei,Ni],function(d,y){var E=y[0],Z=y[1],re=d.properties()[E.value],pe=Z.value;return typeof re==typeof pe&&re>=pe}],"filter-id->=":[Yi,[Ni],function(d,y){var E=y[0],Z=d.id(),re=E.value;return typeof Z==typeof re&&Z>=re}],"filter-has":[Yi,[Ni],function(d,y){return y[0].value in d.properties()}],"filter-has-id":[Yi,[],function(d){return d.id()!==null&&d.id()!==void 0}],"filter-type-in":[Yi,[ls(Ei)],function(d,y){return y[0].value.indexOf(d.geometryType())>=0}],"filter-id-in":[Yi,[ls(Ni)],function(d,y){return y[0].value.indexOf(d.id())>=0}],"filter-in-small":[Yi,[Ei,ls(Ni)],function(d,y){var E=y[0];return y[1].value.indexOf(d.properties()[E.value])>=0}],"filter-in-large":[Yi,[Ei,ls(Ni)],function(d,y){var E=y[0],Z=y[1];return function(re,pe,Ie,Je){for(;Ie<=Je;){var zt=Ie+Je>>1;if(pe[zt]===re)return!0;pe[zt]>re?Je=zt-1:Ie=zt+1}return!1}(d.properties()[E.value],Z.value,0,Z.value.length-1)}],all:{type:Yi,overloads:[[[Yi,Yi],function(d,y){var E=y[1];return y[0].evaluate(d)&&E.evaluate(d)}],[Ls(Yi),function(d,y){for(var E=0,Z=y;E0&&typeof d[0]=="string"&&d[0]in Cl}function Uh(d,y){var E=new da(Cl,[],y?function(re){var pe={color:di,string:Ei,number:bi,enum:Ei,boolean:Yi,formatted:Xr,resolvedImage:yo};return re.type==="array"?ls(pe[re.value]||Ni,re.length):pe[re.type]}(y):void 0),Z=E.parse(d,void 0,void 0,void 0,y&&y.type==="string"?{typeAnnotation:"coerce"}:void 0);return Z?Xs(new hc(Z,y)):il(E.errors)}hc.prototype.evaluateWithoutErrorHandling=function(d,y,E,Z,re,pe){return this._evaluator.globals=d,this._evaluator.feature=y,this._evaluator.featureState=E,this._evaluator.canonical=Z,this._evaluator.availableImages=re||null,this._evaluator.formattedSection=pe,this.expression.evaluate(this._evaluator)},hc.prototype.evaluate=function(d,y,E,Z,re,pe){this._evaluator.globals=d,this._evaluator.feature=y||null,this._evaluator.featureState=E||null,this._evaluator.canonical=Z,this._evaluator.availableImages=re||null,this._evaluator.formattedSection=pe||null;try{var Ie=this.expression.evaluate(this._evaluator);if(Ie==null||typeof Ie=="number"&&Ie!=Ie)return this._defaultValue;if(this._enumValues&&!(Ie in this._enumValues))throw new to("Expected value to be one of "+Object.keys(this._enumValues).map(function(Je){return JSON.stringify(Je)}).join(", ")+", but found "+JSON.stringify(Ie)+" instead.");return Ie}catch(Je){return this._warningHistory[Je.message]||(this._warningHistory[Je.message]=!0,typeof console!="undefined"&&console.warn(Je.message)),this._defaultValue}};var yh=function(d,y){this.kind=d,this._styleExpression=y,this.isStateDependent=d!=="constant"&&!No(y.expression)};yh.prototype.evaluateWithoutErrorHandling=function(d,y,E,Z,re,pe){return this._styleExpression.evaluateWithoutErrorHandling(d,y,E,Z,re,pe)},yh.prototype.evaluate=function(d,y,E,Z,re,pe){return this._styleExpression.evaluate(d,y,E,Z,re,pe)};var pd=function(d,y,E,Z){this.kind=d,this.zoomStops=E,this._styleExpression=y,this.isStateDependent=d!=="camera"&&!No(y.expression),this.interpolationType=Z};function Ed(d,y){if((d=Uh(d,y)).result==="error")return d;var E=d.value.expression,Z=Zs(E);if(!Z&&!iu(y))return il([new xn("","data expressions not supported")]);var re=js(E,["zoom"]);if(!re&&!hu(y))return il([new xn("","zoom expressions not supported")]);var pe=function Ie(Je){var zt=null;if(Je instanceof Gr)zt=Ie(Je.result);else if(Je instanceof Lr)for(var ln=0,Kn=Je.args;lnZ.maximum?[new In(y,E,E+" is greater than the maximum value "+Z.maximum)]:[]}function Mf(d){var y,E,Z,re=d.valueSpec,pe=Ao(d.value.type),Ie={},Je=pe!=="categorical"&&d.value.property===void 0,zt=!Je,ln=Gu(d.value.stops)==="array"&&Gu(d.value.stops[0])==="array"&&Gu(d.value.stops[0][0])==="object",Kn=zd({key:d.key,value:d.value,valueSpec:d.styleSpec.function,style:d.style,styleSpec:d.styleSpec,objectElementValidators:{stops:function(yi){if(pe==="identity")return[new In(yi.key,yi.value,'identity function may not have a "stops" property')];var Do=[],Co=yi.value;return Do=Do.concat(Th({key:yi.key,value:Co,valueSpec:yi.valueSpec,style:yi.style,styleSpec:yi.styleSpec,arrayElementValidator:pr})),Gu(Co)==="array"&&Co.length===0&&Do.push(new In(yi.key,Co,"array must have at least one stop")),Do},default:function(yi){return qu({key:yi.key,value:yi.value,valueSpec:re,style:yi.style,styleSpec:yi.styleSpec})}}});return pe==="identity"&&Je&&Kn.push(new In(d.key,d.value,'missing required property "property"')),pe==="identity"||d.value.stops||Kn.push(new In(d.key,d.value,'missing required property "stops"')),pe==="exponential"&&d.valueSpec.expression&&!ic(d.valueSpec)&&Kn.push(new In(d.key,d.value,"exponential functions not supported")),d.styleSpec.$version>=8&&(zt&&!iu(d.valueSpec)?Kn.push(new In(d.key,d.value,"property functions not supported")):Je&&!hu(d.valueSpec)&&Kn.push(new In(d.key,d.value,"zoom functions not supported"))),pe!=="categorical"&&!ln||d.value.property!==void 0||Kn.push(new In(d.key,d.value,'"property" property is required')),Kn;function pr(yi){var Do=[],Co=yi.value,Uo=yi.key;if(Gu(Co)!=="array")return[new In(Uo,Co,"array expected, "+Gu(Co)+" found")];if(Co.length!==2)return[new In(Uo,Co,"array length 2 expected, length "+Co.length+" found")];if(ln){if(Gu(Co[0])!=="object")return[new In(Uo,Co,"object expected, "+Gu(Co[0])+" found")];if(Co[0].zoom===void 0)return[new In(Uo,Co,"object stop key must have zoom")];if(Co[0].value===void 0)return[new In(Uo,Co,"object stop key must have value")];if(Z&&Z>Ao(Co[0].zoom))return[new In(Uo,Co[0].zoom,"stop zoom values must appear in ascending order")];Ao(Co[0].zoom)!==Z&&(Z=Ao(Co[0].zoom),E=void 0,Ie={}),Do=Do.concat(zd({key:Uo+"[0]",value:Co[0],valueSpec:{zoom:{}},style:yi.style,styleSpec:yi.styleSpec,objectElementValidators:{zoom:gh,value:si}}))}else Do=Do.concat(si({key:Uo+"[0]",value:Co[0],valueSpec:{},style:yi.style,styleSpec:yi.styleSpec},Co));return yc(Yt(Co[1]))?Do.concat([new In(Uo+"[1]",Co[1],"expressions are not allowed in function stops.")]):Do.concat(qu({key:Uo+"[1]",value:Co[1],valueSpec:re,style:yi.style,styleSpec:yi.styleSpec}))}function si(yi,Do){var Co=Gu(yi.value),Uo=Ao(yi.value),Mo=yi.value!==null?yi.value:Do;if(y){if(Co!==y)return[new In(yi.key,Mo,Co+" stop domain type must match previous stop domain type "+y)]}else y=Co;if(Co!=="number"&&Co!=="string"&&Co!=="boolean")return[new In(yi.key,Mo,"stop domain value must be a number, string, or boolean")];if(Co!=="number"&&pe!=="categorical"){var oo="number expected, "+Co+" found";return iu(re)&&pe===void 0&&(oo+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new In(yi.key,Mo,oo)]}return pe!=="categorical"||Co!=="number"||isFinite(Uo)&&Math.floor(Uo)===Uo?pe!=="categorical"&&Co==="number"&&E!==void 0&&Uo=2&&d[1]!=="$id"&&d[1]!=="$type";case"in":return d.length>=3&&(typeof d[1]!="string"||Array.isArray(d[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return d.length!==3||Array.isArray(d[1])||Array.isArray(d[2]);case"any":case"all":for(var y=0,E=d.slice(1);yy?1:0}function Of(d){if(!d)return!0;var y,E=d[0];return d.length<=1?E!=="any":E==="=="?Yf(d[1],d[2],"=="):E==="!="?Sd(Yf(d[1],d[2],"==")):E==="<"||E===">"||E==="<="||E===">="?Yf(d[1],d[2],E):E==="any"?(y=d.slice(1),["any"].concat(y.map(Of))):E==="all"?["all"].concat(d.slice(1).map(Of)):E==="none"?["all"].concat(d.slice(1).map(Of).map(Sd)):E==="in"?Bf(d[1],d.slice(2)):E==="!in"?Sd(Bf(d[1],d.slice(2))):E==="has"?xd(d[1]):E==="!has"?Sd(xd(d[1])):E!=="within"||d}function Yf(d,y,E){switch(d){case"$type":return["filter-type-"+E,y];case"$id":return["filter-id-"+E,y];default:return["filter-"+E,d,y]}}function Bf(d,y){if(y.length===0)return!1;switch(d){case"$type":return["filter-type-in",["literal",y]];case"$id":return["filter-id-in",["literal",y]];default:return y.length>200&&!y.some(function(E){return typeof E!=typeof y[0]})?["filter-in-large",d,["literal",y.sort(bf)]]:["filter-in-small",d,["literal",y]]}}function xd(d){switch(d){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",d]}}function Sd(d){return["!",d]}function Eu(d){return nh(Yt(d.value))?gd(Ur({},d,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function y(E){var Z=E.value,re=E.key;if(Gu(Z)!=="array")return[new In(re,Z,"array expected, "+Gu(Z)+" found")];var pe,Ie=E.styleSpec,Je=[];if(Z.length<1)return[new In(re,Z,"filter array must have at least 1 element")];switch(Je=Je.concat(Yu({key:re+"[0]",value:Z[0],valueSpec:Ie.filter_operator,style:E.style,styleSpec:E.styleSpec})),Ao(Z[0])){case"<":case"<=":case">":case">=":Z.length>=2&&Ao(Z[1])==="$type"&&Je.push(new In(re,Z,'"$type" cannot be use with operator "'+Z[0]+'"'));case"==":case"!=":Z.length!==3&&Je.push(new In(re,Z,'filter array for operator "'+Z[0]+'" must have 3 elements'));case"in":case"!in":Z.length>=2&&(pe=Gu(Z[1]))!=="string"&&Je.push(new In(re+"[1]",Z[1],"string expected, "+pe+" found"));for(var zt=2;zt=Kn[yi+0]&&Z>=Kn[yi+1])?(Ie[si]=!0,pe.push(ln[si])):Ie[si]=!1}}},Dh.prototype._forEachCell=function(d,y,E,Z,re,pe,Ie,Je){for(var zt=this._convertToCellCoord(d),ln=this._convertToCellCoord(y),Kn=this._convertToCellCoord(E),pr=this._convertToCellCoord(Z),si=zt;si<=Kn;si++)for(var yi=ln;yi<=pr;yi++){var Do=this.d*yi+si;if((!Je||Je(this._convertFromCellCoord(si),this._convertFromCellCoord(yi),this._convertFromCellCoord(si+1),this._convertFromCellCoord(yi+1)))&&re.call(this,d,y,E,Z,Do,pe,Ie,Je))return}},Dh.prototype._convertFromCellCoord=function(d){return(d-this.padding)/this.scale},Dh.prototype._convertToCellCoord=function(d){return Math.max(0,Math.min(this.d-1,Math.floor(d*this.scale)+this.padding))},Dh.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var d=this.cells,y=3+this.cells.length+1+1,E=0,Z=0;Z=0)){var Kn=d[ln];zt[ln]=Zc[Je].shallow.indexOf(ln)>=0?Kn:bc(Kn,y)}d instanceof Error&&(zt.message=d.message)}if(zt.$name)throw new Error("$name property is reserved for worker serialization logic.");return Je!=="Object"&&(zt.$name=Je),zt}throw new Error("can't serialize object of type "+typeof d)}function Zi(d){if(d==null||typeof d=="boolean"||typeof d=="number"||typeof d=="string"||d instanceof Boolean||d instanceof Number||d instanceof String||d instanceof Date||d instanceof RegExp||pl(d)||ps(d)||ArrayBuffer.isView(d)||d instanceof ff)return d;if(Array.isArray(d))return d.map(Zi);if(typeof d=="object"){var y=d.$name||"Object",E=Zc[y].klass;if(!E)throw new Error("can't deserialize unregistered class "+y);if(E.deserialize)return E.deserialize(d);for(var Z=Object.create(E.prototype),re=0,pe=Object.keys(d);re=0?Je:Zi(Je)}}return Z}throw new Error("can't deserialize object of type "+typeof d)}var $p=function(){this.first=!0};$p.prototype.update=function(d,y){var E=Math.floor(d);return this.first?(this.first=!1,this.lastIntegerZoom=E,this.lastIntegerZoomTime=0,this.lastZoom=d,this.lastFloorZoom=E,!0):(this.lastFloorZoom>E?(this.lastIntegerZoom=E+1,this.lastIntegerZoomTime=y):this.lastFloorZoom=128&&d<=255},Arabic:function(d){return d>=1536&&d<=1791},"Arabic Supplement":function(d){return d>=1872&&d<=1919},"Arabic Extended-A":function(d){return d>=2208&&d<=2303},"Hangul Jamo":function(d){return d>=4352&&d<=4607},"Unified Canadian Aboriginal Syllabics":function(d){return d>=5120&&d<=5759},Khmer:function(d){return d>=6016&&d<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(d){return d>=6320&&d<=6399},"General Punctuation":function(d){return d>=8192&&d<=8303},"Letterlike Symbols":function(d){return d>=8448&&d<=8527},"Number Forms":function(d){return d>=8528&&d<=8591},"Miscellaneous Technical":function(d){return d>=8960&&d<=9215},"Control Pictures":function(d){return d>=9216&&d<=9279},"Optical Character Recognition":function(d){return d>=9280&&d<=9311},"Enclosed Alphanumerics":function(d){return d>=9312&&d<=9471},"Geometric Shapes":function(d){return d>=9632&&d<=9727},"Miscellaneous Symbols":function(d){return d>=9728&&d<=9983},"Miscellaneous Symbols and Arrows":function(d){return d>=11008&&d<=11263},"CJK Radicals Supplement":function(d){return d>=11904&&d<=12031},"Kangxi Radicals":function(d){return d>=12032&&d<=12255},"Ideographic Description Characters":function(d){return d>=12272&&d<=12287},"CJK Symbols and Punctuation":function(d){return d>=12288&&d<=12351},Hiragana:function(d){return d>=12352&&d<=12447},Katakana:function(d){return d>=12448&&d<=12543},Bopomofo:function(d){return d>=12544&&d<=12591},"Hangul Compatibility Jamo":function(d){return d>=12592&&d<=12687},Kanbun:function(d){return d>=12688&&d<=12703},"Bopomofo Extended":function(d){return d>=12704&&d<=12735},"CJK Strokes":function(d){return d>=12736&&d<=12783},"Katakana Phonetic Extensions":function(d){return d>=12784&&d<=12799},"Enclosed CJK Letters and Months":function(d){return d>=12800&&d<=13055},"CJK Compatibility":function(d){return d>=13056&&d<=13311},"CJK Unified Ideographs Extension A":function(d){return d>=13312&&d<=19903},"Yijing Hexagram Symbols":function(d){return d>=19904&&d<=19967},"CJK Unified Ideographs":function(d){return d>=19968&&d<=40959},"Yi Syllables":function(d){return d>=40960&&d<=42127},"Yi Radicals":function(d){return d>=42128&&d<=42191},"Hangul Jamo Extended-A":function(d){return d>=43360&&d<=43391},"Hangul Syllables":function(d){return d>=44032&&d<=55215},"Hangul Jamo Extended-B":function(d){return d>=55216&&d<=55295},"Private Use Area":function(d){return d>=57344&&d<=63743},"CJK Compatibility Ideographs":function(d){return d>=63744&&d<=64255},"Arabic Presentation Forms-A":function(d){return d>=64336&&d<=65023},"Vertical Forms":function(d){return d>=65040&&d<=65055},"CJK Compatibility Forms":function(d){return d>=65072&&d<=65103},"Small Form Variants":function(d){return d>=65104&&d<=65135},"Arabic Presentation Forms-B":function(d){return d>=65136&&d<=65279},"Halfwidth and Fullwidth Forms":function(d){return d>=65280&&d<=65519}};function uh(d){for(var y=0,E=d;y=65097&&d<=65103)||Wu["CJK Compatibility Ideographs"](d)||Wu["CJK Compatibility"](d)||Wu["CJK Radicals Supplement"](d)||Wu["CJK Strokes"](d)||!(!Wu["CJK Symbols and Punctuation"](d)||d>=12296&&d<=12305||d>=12308&&d<=12319||d===12336)||Wu["CJK Unified Ideographs Extension A"](d)||Wu["CJK Unified Ideographs"](d)||Wu["Enclosed CJK Letters and Months"](d)||Wu["Hangul Compatibility Jamo"](d)||Wu["Hangul Jamo Extended-A"](d)||Wu["Hangul Jamo Extended-B"](d)||Wu["Hangul Jamo"](d)||Wu["Hangul Syllables"](d)||Wu.Hiragana(d)||Wu["Ideographic Description Characters"](d)||Wu.Kanbun(d)||Wu["Kangxi Radicals"](d)||Wu["Katakana Phonetic Extensions"](d)||Wu.Katakana(d)&&d!==12540||!(!Wu["Halfwidth and Fullwidth Forms"](d)||d===65288||d===65289||d===65293||d>=65306&&d<=65310||d===65339||d===65341||d===65343||d>=65371&&d<=65503||d===65507||d>=65512&&d<=65519)||!(!Wu["Small Form Variants"](d)||d>=65112&&d<=65118||d>=65123&&d<=65126)||Wu["Unified Canadian Aboriginal Syllabics"](d)||Wu["Unified Canadian Aboriginal Syllabics Extended"](d)||Wu["Vertical Forms"](d)||Wu["Yijing Hexagram Symbols"](d)||Wu["Yi Syllables"](d)||Wu["Yi Radicals"](d))))}function yp(d){return!(vp(d)||function(y){return!!(Wu["Latin-1 Supplement"](y)&&(y===167||y===169||y===174||y===177||y===188||y===189||y===190||y===215||y===247)||Wu["General Punctuation"](y)&&(y===8214||y===8224||y===8225||y===8240||y===8241||y===8251||y===8252||y===8258||y===8263||y===8264||y===8265||y===8273)||Wu["Letterlike Symbols"](y)||Wu["Number Forms"](y)||Wu["Miscellaneous Technical"](y)&&(y>=8960&&y<=8967||y>=8972&&y<=8991||y>=8996&&y<=9e3||y===9003||y>=9085&&y<=9114||y>=9150&&y<=9165||y===9167||y>=9169&&y<=9179||y>=9186&&y<=9215)||Wu["Control Pictures"](y)&&y!==9251||Wu["Optical Character Recognition"](y)||Wu["Enclosed Alphanumerics"](y)||Wu["Geometric Shapes"](y)||Wu["Miscellaneous Symbols"](y)&&!(y>=9754&&y<=9759)||Wu["Miscellaneous Symbols and Arrows"](y)&&(y>=11026&&y<=11055||y>=11088&&y<=11097||y>=11192&&y<=11243)||Wu["CJK Symbols and Punctuation"](y)||Wu.Katakana(y)||Wu["Private Use Area"](y)||Wu["CJK Compatibility Forms"](y)||Wu["Small Form Variants"](y)||Wu["Halfwidth and Fullwidth Forms"](y)||y===8734||y===8756||y===8757||y>=9984&&y<=10087||y>=10102&&y<=10131||y===65532||y===65533)}(d))}function vg(d){return d>=1424&&d<=2303||Wu["Arabic Presentation Forms-A"](d)||Wu["Arabic Presentation Forms-B"](d)}function uf(d,y){return!(!y&&vg(d)||d>=2304&&d<=3583||d>=3840&&d<=4255||Wu.Khmer(d))}function sp(d){for(var y=0,E=d;y-1&&(ap="error"),Vp&&Vp(d)};function qf(){Bh.fire(new _r("pluginStateChange",{pluginStatus:ap,pluginURL:yg}))}var Bh=new $n,kp=function(){return ap},pg=function(){if(ap!=="deferred"||!yg)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");ap="loading",qf(),yg&&ir({url:yg},function(d){d?Zf(d):(ap="loaded",qf())})},Mp={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return ap==="loaded"||Mp.applyArabicShaping!=null},isLoading:function(){return ap==="loading"},setState:function(d){ap=d.pluginStatus,yg=d.pluginURL},isParsed:function(){return Mp.applyArabicShaping!=null&&Mp.processBidirectionalText!=null&&Mp.processStyledBidirectionalText!=null},getPluginURL:function(){return yg}},bd=function(d,y){this.zoom=d,y?(this.now=y.now,this.fadeDuration=y.fadeDuration,this.zoomHistory=y.zoomHistory,this.transition=y.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new $p,this.transition={})};bd.prototype.isSupportedScript=function(d){return function(y,E){for(var Z=0,re=y;Zthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:y+(1-y)*E}:{fromScale:.5,toScale:1,t:1-(1-E)*y}};var Qp=function(d,y){this.property=d,this.value=y,this.expression=function(E,Z){if(pc(E))return new vh(E,Z);if(yc(E)){var re=Ed(E,Z);if(re.result==="error")throw new Error(re.value.map(function(Ie){return Ie.key+": "+Ie.message}).join(", "));return re.value}var pe=E;return typeof E=="string"&&Z.type==="color"&&(pe=or.parse(E)),{kind:"constant",evaluate:function(){return pe}}}(y===void 0?d.specification.default:y,d.specification)};Qp.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Qp.prototype.possiblyEvaluate=function(d,y,E){return this.property.possiblyEvaluate(this,d,y,E)};var Ih=function(d){this.property=d,this.value=new Qp(d,void 0)};Ih.prototype.transitioned=function(d,y){return new Jf(this.property,this.value,y,fe({},d.transition,this.transition),d.now)},Ih.prototype.untransitioned=function(){return new Jf(this.property,this.value,null,{},0)};var yf=function(d){this._properties=d,this._values=Object.create(d.defaultTransitionablePropertyValues)};yf.prototype.getValue=function(d){return Ee(this._values[d].value.value)},yf.prototype.setValue=function(d,y){this._values.hasOwnProperty(d)||(this._values[d]=new Ih(this._values[d].property)),this._values[d].value=new Qp(this._values[d].property,y===null?void 0:Ee(y))},yf.prototype.getTransition=function(d){return Ee(this._values[d].transition)},yf.prototype.setTransition=function(d,y){this._values.hasOwnProperty(d)||(this._values[d]=new Ih(this._values[d].property)),this._values[d].transition=Ee(y)||void 0},yf.prototype.serialize=function(){for(var d={},y=0,E=Object.keys(this._values);ythis.end)return this.prior=null,re;if(this.value.isDataDriven())return this.prior=null,re;if(Z=1)return 1;var zt=Je*Je,ln=zt*Je;return 4*(Je<.5?ln:3*(Je-zt)+ln-.75)}(Ie))}return re};var wu=function(d){this._properties=d,this._values=Object.create(d.defaultTransitioningPropertyValues)};wu.prototype.possiblyEvaluate=function(d,y,E){for(var Z=new jf(this._properties),re=0,pe=Object.keys(this._values);repe.zoomHistory.lastIntegerZoom?{from:E,to:Z}:{from:re,to:Z}},y.prototype.interpolate=function(E){return E},y}(Mh),bh=function(d){this.specification=d};bh.prototype.possiblyEvaluate=function(d,y,E,Z){if(d.value!==void 0){if(d.expression.kind==="constant"){var re=d.expression.evaluate(y,null,{},E,Z);return this._calculate(re,re,re,y)}return this._calculate(d.expression.evaluate(new bd(Math.floor(y.zoom-1),y)),d.expression.evaluate(new bd(Math.floor(y.zoom),y)),d.expression.evaluate(new bd(Math.floor(y.zoom+1),y)),y)}},bh.prototype._calculate=function(d,y,E,Z){return Z.zoom>Z.zoomHistory.lastIntegerZoom?{from:d,to:y}:{from:E,to:y}},bh.prototype.interpolate=function(d){return d};var Vd=function(d){this.specification=d};Vd.prototype.possiblyEvaluate=function(d,y,E,Z){return!!d.expression.evaluate(y,null,{},E,Z)},Vd.prototype.interpolate=function(){return!1};var Rp=function(d){for(var y in this.properties=d,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],d){var E=d[y];E.specification.overridable&&this.overridableProperties.push(y);var Z=this.defaultPropertyValues[y]=new Qp(E,void 0),re=this.defaultTransitionablePropertyValues[y]=new Ih(E);this.defaultTransitioningPropertyValues[y]=re.untransitioned(),this.defaultPossiblyEvaluatedValues[y]=Z.possiblyEvaluate({})}};Jc("DataDrivenProperty",Mh),Jc("DataConstantProperty",Eh),Jc("CrossFadedDataDrivenProperty",Wh),Jc("CrossFadedProperty",bh),Jc("ColorRampProperty",Vd);var qp=function(d){function y(E,Z){if(d.call(this),this.id=E.id,this.type=E.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},E.type!=="custom"&&(this.metadata=(E=E).metadata,this.minzoom=E.minzoom,this.maxzoom=E.maxzoom,E.type!=="background"&&(this.source=E.source,this.sourceLayer=E["source-layer"],this.filter=E.filter),Z.layout&&(this._unevaluatedLayout=new Tp(Z.layout)),Z.paint)){for(var re in this._transitionablePaint=new yf(Z.paint),E.paint)this.setPaintProperty(re,E.paint[re],{validate:!1});for(var pe in E.layout)this.setLayoutProperty(pe,E.layout[pe],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new jf(Z.paint)}}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},y.prototype.getLayoutProperty=function(E){return E==="visibility"?this.visibility:this._unevaluatedLayout.getValue(E)},y.prototype.setLayoutProperty=function(E,Z,re){re===void 0&&(re={}),Z!=null&&this._validate(tf,"layers."+this.id+".layout."+E,E,Z,re)||(E!=="visibility"?this._unevaluatedLayout.setValue(E,Z):this.visibility=Z)},y.prototype.getPaintProperty=function(E){return Xe(E,"-transition")?this._transitionablePaint.getTransition(E.slice(0,-11)):this._transitionablePaint.getValue(E)},y.prototype.setPaintProperty=function(E,Z,re){if(re===void 0&&(re={}),Z!=null&&this._validate(Vf,"layers."+this.id+".paint."+E,E,Z,re))return!1;if(Xe(E,"-transition"))return this._transitionablePaint.setTransition(E.slice(0,-11),Z||void 0),!1;var pe=this._transitionablePaint._values[E],Ie=pe.property.specification["property-type"]==="cross-faded-data-driven",Je=pe.value.isDataDriven(),zt=pe.value;this._transitionablePaint.setValue(E,Z),this._handleSpecialPaintPropertyUpdate(E);var ln=this._transitionablePaint._values[E].value;return ln.isDataDriven()||Je||Ie||this._handleOverridablePaintPropertyUpdate(E,zt,ln)},y.prototype._handleSpecialPaintPropertyUpdate=function(E){},y.prototype._handleOverridablePaintPropertyUpdate=function(E,Z,re){return!1},y.prototype.isHidden=function(E){return!!(this.minzoom&&E=this.maxzoom)||this.visibility==="none"},y.prototype.updateTransitions=function(E){this._transitioningPaint=this._transitionablePaint.transitioned(E,this._transitioningPaint)},y.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},y.prototype.recalculate=function(E,Z){E.getCrossfadeParameters&&(this._crossfadeParameters=E.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(E,void 0,Z)),this.paint=this._transitioningPaint.possiblyEvaluate(E,void 0,Z)},y.prototype.serialize=function(){var E={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&&(E.layout=E.layout||{},E.layout.visibility=this.visibility),Me(E,function(Z,re){return!(Z===void 0||re==="layout"&&!Object.keys(Z).length||re==="paint"&&!Object.keys(Z).length)})},y.prototype._validate=function(E,Z,re,pe,Ie){return Ie===void 0&&(Ie={}),(!Ie||Ie.validate!==!1)&&pp(this,E.call(zf,{key:Z,layerType:this.type,objectKey:re,value:pe,styleSpec:jt,style:{glyphs:!0,sprite:!0}}))},y.prototype.is3D=function(){return!1},y.prototype.isTileClipped=function(){return!1},y.prototype.hasOffscreenPass=function(){return!1},y.prototype.resize=function(){},y.prototype.isStateDependent=function(){for(var E in this.paint._values){var Z=this.paint.get(E);if(Z instanceof _p&&iu(Z.property.specification)&&(Z.value.kind==="source"||Z.value.kind==="composite")&&Z.value.isStateDependent)return!0}return!1},y}($n),mh={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Df=function(d,y){this._structArray=d,this._pos1=y*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},yd=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function wd(d,y){y===void 0&&(y=1);var E=0,Z=0;return{members:d.map(function(re){var pe=mh[re.type].BYTES_PER_ELEMENT,Ie=E=Hf(E,Math.max(y,pe)),Je=re.components||1;return Z=Math.max(Z,pe),E+=pe*Je,{name:re.name,type:re.type,components:Je,offset:Ie}}),size:Hf(E,Math.max(Z,y)),alignment:y}}function Hf(d,y){return Math.ceil(d/y)*y}yd.serialize=function(d,y){return d._trim(),y&&(d.isTransferred=!0,y.push(d.arrayBuffer)),{length:d.length,arrayBuffer:d.arrayBuffer}},yd.deserialize=function(d){var y=Object.create(this.prototype);return y.arrayBuffer=d.arrayBuffer,y.length=d.length,y.capacity=d.arrayBuffer.byteLength/y.bytesPerElement,y._refreshViews(),y},yd.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},yd.prototype.clear=function(){this.length=0},yd.prototype.resize=function(d){this.reserve(d),this.length=d},yd.prototype.reserve=function(d){if(d>this.capacity){this.capacity=Math.max(d,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var y=this.uint8;this._refreshViews(),y&&this.uint8.set(y)}},yd.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var sh=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E,Z){var re=this.length;return this.resize(re+1),this.emplace(re,E,Z)},y.prototype.emplace=function(E,Z,re){var pe=2*E;return this.int16[pe+0]=Z,this.int16[pe+1]=re,E},y}(yd);sh.prototype.bytesPerElement=4,Jc("StructArrayLayout2i4",sh);var Oc=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E,Z,re,pe){var Ie=this.length;return this.resize(Ie+1),this.emplace(Ie,E,Z,re,pe)},y.prototype.emplace=function(E,Z,re,pe,Ie){var Je=4*E;return this.int16[Je+0]=Z,this.int16[Je+1]=re,this.int16[Je+2]=pe,this.int16[Je+3]=Ie,E},y}(yd);Oc.prototype.bytesPerElement=8,Jc("StructArrayLayout4i8",Oc);var Zh=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E,Z,re,pe,Ie,Je){var zt=this.length;return this.resize(zt+1),this.emplace(zt,E,Z,re,pe,Ie,Je)},y.prototype.emplace=function(E,Z,re,pe,Ie,Je,zt){var ln=6*E;return this.int16[ln+0]=Z,this.int16[ln+1]=re,this.int16[ln+2]=pe,this.int16[ln+3]=Ie,this.int16[ln+4]=Je,this.int16[ln+5]=zt,E},y}(yd);Zh.prototype.bytesPerElement=12,Jc("StructArrayLayout2i4i12",Zh);var $d=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E,Z,re,pe,Ie,Je){var zt=this.length;return this.resize(zt+1),this.emplace(zt,E,Z,re,pe,Ie,Je)},y.prototype.emplace=function(E,Z,re,pe,Ie,Je,zt){var ln=4*E,Kn=8*E;return this.int16[ln+0]=Z,this.int16[ln+1]=re,this.uint8[Kn+4]=pe,this.uint8[Kn+5]=Ie,this.uint8[Kn+6]=Je,this.uint8[Kn+7]=zt,E},y}(yd);$d.prototype.bytesPerElement=8,Jc("StructArrayLayout2i4ub8",$d);var zo=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E,Z){var re=this.length;return this.resize(re+1),this.emplace(re,E,Z)},y.prototype.emplace=function(E,Z,re){var pe=2*E;return this.float32[pe+0]=Z,this.float32[pe+1]=re,E},y}(yd);zo.prototype.bytesPerElement=8,Jc("StructArrayLayout2f8",zo);var L=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E,Z,re,pe,Ie,Je,zt,ln,Kn,pr){var si=this.length;return this.resize(si+1),this.emplace(si,E,Z,re,pe,Ie,Je,zt,ln,Kn,pr)},y.prototype.emplace=function(E,Z,re,pe,Ie,Je,zt,ln,Kn,pr,si){var yi=10*E;return this.uint16[yi+0]=Z,this.uint16[yi+1]=re,this.uint16[yi+2]=pe,this.uint16[yi+3]=Ie,this.uint16[yi+4]=Je,this.uint16[yi+5]=zt,this.uint16[yi+6]=ln,this.uint16[yi+7]=Kn,this.uint16[yi+8]=pr,this.uint16[yi+9]=si,E},y}(yd);L.prototype.bytesPerElement=20,Jc("StructArrayLayout10ui20",L);var U=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E,Z,re,pe,Ie,Je,zt,ln,Kn,pr,si,yi){var Do=this.length;return this.resize(Do+1),this.emplace(Do,E,Z,re,pe,Ie,Je,zt,ln,Kn,pr,si,yi)},y.prototype.emplace=function(E,Z,re,pe,Ie,Je,zt,ln,Kn,pr,si,yi,Do){var Co=12*E;return this.int16[Co+0]=Z,this.int16[Co+1]=re,this.int16[Co+2]=pe,this.int16[Co+3]=Ie,this.uint16[Co+4]=Je,this.uint16[Co+5]=zt,this.uint16[Co+6]=ln,this.uint16[Co+7]=Kn,this.int16[Co+8]=pr,this.int16[Co+9]=si,this.int16[Co+10]=yi,this.int16[Co+11]=Do,E},y}(yd);U.prototype.bytesPerElement=24,Jc("StructArrayLayout4i4ui4i24",U);var ae=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E,Z,re){var pe=this.length;return this.resize(pe+1),this.emplace(pe,E,Z,re)},y.prototype.emplace=function(E,Z,re,pe){var Ie=3*E;return this.float32[Ie+0]=Z,this.float32[Ie+1]=re,this.float32[Ie+2]=pe,E},y}(yd);ae.prototype.bytesPerElement=12,Jc("StructArrayLayout3f12",ae);var me=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E){var Z=this.length;return this.resize(Z+1),this.emplace(Z,E)},y.prototype.emplace=function(E,Z){return this.uint32[1*E+0]=Z,E},y}(yd);me.prototype.bytesPerElement=4,Jc("StructArrayLayout1ul4",me);var ot=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.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)},y.prototype.emplaceBack=function(E,Z,re,pe,Ie,Je,zt,ln,Kn){var pr=this.length;return this.resize(pr+1),this.emplace(pr,E,Z,re,pe,Ie,Je,zt,ln,Kn)},y.prototype.emplace=function(E,Z,re,pe,Ie,Je,zt,ln,Kn,pr){var si=10*E,yi=5*E;return this.int16[si+0]=Z,this.int16[si+1]=re,this.int16[si+2]=pe,this.int16[si+3]=Ie,this.int16[si+4]=Je,this.int16[si+5]=zt,this.uint32[yi+3]=ln,this.uint16[si+8]=Kn,this.uint16[si+9]=pr,E},y}(yd);ot.prototype.bytesPerElement=20,Jc("StructArrayLayout6i1ul2ui20",ot);var dn=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E,Z,re,pe,Ie,Je){var zt=this.length;return this.resize(zt+1),this.emplace(zt,E,Z,re,pe,Ie,Je)},y.prototype.emplace=function(E,Z,re,pe,Ie,Je,zt){var ln=6*E;return this.int16[ln+0]=Z,this.int16[ln+1]=re,this.int16[ln+2]=pe,this.int16[ln+3]=Ie,this.int16[ln+4]=Je,this.int16[ln+5]=zt,E},y}(yd);dn.prototype.bytesPerElement=12,Jc("StructArrayLayout2i2i2i12",dn);var tr=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E,Z,re,pe,Ie){var Je=this.length;return this.resize(Je+1),this.emplace(Je,E,Z,re,pe,Ie)},y.prototype.emplace=function(E,Z,re,pe,Ie,Je){var zt=4*E,ln=8*E;return this.float32[zt+0]=Z,this.float32[zt+1]=re,this.float32[zt+2]=pe,this.int16[ln+6]=Ie,this.int16[ln+7]=Je,E},y}(yd);tr.prototype.bytesPerElement=16,Jc("StructArrayLayout2f1f2i16",tr);var Te=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E,Z,re,pe){var Ie=this.length;return this.resize(Ie+1),this.emplace(Ie,E,Z,re,pe)},y.prototype.emplace=function(E,Z,re,pe,Ie){var Je=12*E,zt=3*E;return this.uint8[Je+0]=Z,this.uint8[Je+1]=re,this.float32[zt+1]=pe,this.float32[zt+2]=Ie,E},y}(yd);Te.prototype.bytesPerElement=12,Jc("StructArrayLayout2ub2f12",Te);var D=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E,Z,re){var pe=this.length;return this.resize(pe+1),this.emplace(pe,E,Z,re)},y.prototype.emplace=function(E,Z,re,pe){var Ie=3*E;return this.uint16[Ie+0]=Z,this.uint16[Ie+1]=re,this.uint16[Ie+2]=pe,E},y}(yd);D.prototype.bytesPerElement=6,Jc("StructArrayLayout3ui6",D);var ie=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.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)},y.prototype.emplaceBack=function(E,Z,re,pe,Ie,Je,zt,ln,Kn,pr,si,yi,Do,Co,Uo,Mo,oo){var Vs=this.length;return this.resize(Vs+1),this.emplace(Vs,E,Z,re,pe,Ie,Je,zt,ln,Kn,pr,si,yi,Do,Co,Uo,Mo,oo)},y.prototype.emplace=function(E,Z,re,pe,Ie,Je,zt,ln,Kn,pr,si,yi,Do,Co,Uo,Mo,oo,Vs){var Ta=24*E,cl=12*E,ou=48*E;return this.int16[Ta+0]=Z,this.int16[Ta+1]=re,this.uint16[Ta+2]=pe,this.uint16[Ta+3]=Ie,this.uint32[cl+2]=Je,this.uint32[cl+3]=zt,this.uint32[cl+4]=ln,this.uint16[Ta+10]=Kn,this.uint16[Ta+11]=pr,this.uint16[Ta+12]=si,this.float32[cl+7]=yi,this.float32[cl+8]=Do,this.uint8[ou+36]=Co,this.uint8[ou+37]=Uo,this.uint8[ou+38]=Mo,this.uint32[cl+10]=oo,this.int16[Ta+22]=Vs,E},y}(yd);ie.prototype.bytesPerElement=48,Jc("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",ie);var we=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.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)},y.prototype.emplaceBack=function(E,Z,re,pe,Ie,Je,zt,ln,Kn,pr,si,yi,Do,Co,Uo,Mo,oo,Vs,Ta,cl,ou,Tu,Cu,Hc,bu,Dc,Sn,rr){var Dr=this.length;return this.resize(Dr+1),this.emplace(Dr,E,Z,re,pe,Ie,Je,zt,ln,Kn,pr,si,yi,Do,Co,Uo,Mo,oo,Vs,Ta,cl,ou,Tu,Cu,Hc,bu,Dc,Sn,rr)},y.prototype.emplace=function(E,Z,re,pe,Ie,Je,zt,ln,Kn,pr,si,yi,Do,Co,Uo,Mo,oo,Vs,Ta,cl,ou,Tu,Cu,Hc,bu,Dc,Sn,rr,Dr){var ni=34*E,so=17*E;return this.int16[ni+0]=Z,this.int16[ni+1]=re,this.int16[ni+2]=pe,this.int16[ni+3]=Ie,this.int16[ni+4]=Je,this.int16[ni+5]=zt,this.int16[ni+6]=ln,this.int16[ni+7]=Kn,this.uint16[ni+8]=pr,this.uint16[ni+9]=si,this.uint16[ni+10]=yi,this.uint16[ni+11]=Do,this.uint16[ni+12]=Co,this.uint16[ni+13]=Uo,this.uint16[ni+14]=Mo,this.uint16[ni+15]=oo,this.uint16[ni+16]=Vs,this.uint16[ni+17]=Ta,this.uint16[ni+18]=cl,this.uint16[ni+19]=ou,this.uint16[ni+20]=Tu,this.uint16[ni+21]=Cu,this.uint16[ni+22]=Hc,this.uint32[so+12]=bu,this.float32[so+13]=Dc,this.float32[so+14]=Sn,this.float32[so+15]=rr,this.float32[so+16]=Dr,E},y}(yd);we.prototype.bytesPerElement=68,Jc("StructArrayLayout8i15ui1ul4f68",we);var Oe=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E){var Z=this.length;return this.resize(Z+1),this.emplace(Z,E)},y.prototype.emplace=function(E,Z){return this.float32[1*E+0]=Z,E},y}(yd);Oe.prototype.bytesPerElement=4,Jc("StructArrayLayout1f4",Oe);var ut=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E,Z,re){var pe=this.length;return this.resize(pe+1),this.emplace(pe,E,Z,re)},y.prototype.emplace=function(E,Z,re,pe){var Ie=3*E;return this.int16[Ie+0]=Z,this.int16[Ie+1]=re,this.int16[Ie+2]=pe,E},y}(yd);ut.prototype.bytesPerElement=6,Jc("StructArrayLayout3i6",ut);var Zt=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E,Z,re){var pe=this.length;return this.resize(pe+1),this.emplace(pe,E,Z,re)},y.prototype.emplace=function(E,Z,re,pe){var Ie=4*E;return this.uint32[2*E+0]=Z,this.uint16[Ie+2]=re,this.uint16[Ie+3]=pe,E},y}(yd);Zt.prototype.bytesPerElement=8,Jc("StructArrayLayout1ul2ui8",Zt);var tn=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E,Z){var re=this.length;return this.resize(re+1),this.emplace(re,E,Z)},y.prototype.emplace=function(E,Z,re){var pe=2*E;return this.uint16[pe+0]=Z,this.uint16[pe+1]=re,E},y}(yd);tn.prototype.bytesPerElement=4,Jc("StructArrayLayout2ui4",tn);var kn=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E){var Z=this.length;return this.resize(Z+1),this.emplace(Z,E)},y.prototype.emplace=function(E,Z){return this.uint16[1*E+0]=Z,E},y}(yd);kn.prototype.bytesPerElement=2,Jc("StructArrayLayout1ui2",kn);var xr=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(E,Z,re,pe){var Ie=this.length;return this.resize(Ie+1),this.emplace(Ie,E,Z,re,pe)},y.prototype.emplace=function(E,Z,re,pe,Ie){var Je=4*E;return this.float32[Je+0]=Z,this.float32[Je+1]=re,this.float32[Je+2]=pe,this.float32[Je+3]=Ie,E},y}(yd);xr.prototype.bytesPerElement=16,Jc("StructArrayLayout4f16",xr);var G=function(d){function y(){d.apply(this,arguments)}d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y;var E={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 E.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},E.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},E.x1.get=function(){return this._structArray.int16[this._pos2+2]},E.y1.get=function(){return this._structArray.int16[this._pos2+3]},E.x2.get=function(){return this._structArray.int16[this._pos2+4]},E.y2.get=function(){return this._structArray.int16[this._pos2+5]},E.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},E.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},E.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},E.anchorPoint.get=function(){return new R(this.anchorPointX,this.anchorPointY)},Object.defineProperties(y.prototype,E),y}(Df);G.prototype.size=20;var te=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype.get=function(E){return new G(this,E)},y}(ot);Jc("CollisionBoxArray",te);var ne=function(d){function y(){d.apply(this,arguments)}d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y;var E={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 E.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},E.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},E.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},E.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},E.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},E.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},E.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},E.segment.get=function(){return this._structArray.uint16[this._pos2+10]},E.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},E.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},E.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},E.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},E.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},E.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},E.placedOrientation.set=function(Z){this._structArray.uint8[this._pos1+37]=Z},E.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},E.hidden.set=function(Z){this._structArray.uint8[this._pos1+38]=Z},E.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},E.crossTileID.set=function(Z){this._structArray.uint32[this._pos4+10]=Z},E.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(y.prototype,E),y}(Df);ne.prototype.size=48;var ce=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype.get=function(E){return new ne(this,E)},y}(ie);Jc("PlacedSymbolArray",ce);var Ze=function(d){function y(){d.apply(this,arguments)}d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y;var E={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 E.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},E.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},E.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},E.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},E.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},E.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},E.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},E.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},E.key.get=function(){return this._structArray.uint16[this._pos2+8]},E.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},E.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},E.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},E.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},E.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},E.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},E.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},E.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},E.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},E.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},E.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},E.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},E.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},E.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},E.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},E.crossTileID.set=function(Z){this._structArray.uint32[this._pos4+12]=Z},E.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},E.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},E.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},E.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(y.prototype,E),y}(Df);Ze.prototype.size=68;var vt=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype.get=function(E){return new Ze(this,E)},y}(we);Jc("SymbolInstanceArray",vt);var Pt=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype.getoffsetX=function(E){return this.float32[1*E+0]},y}(Oe);Jc("GlyphOffsetArray",Pt);var gn=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype.getx=function(E){return this.int16[3*E+0]},y.prototype.gety=function(E){return this.int16[3*E+1]},y.prototype.gettileUnitDistanceFromAnchor=function(E){return this.int16[3*E+2]},y}(ut);Jc("SymbolLineVertexArray",gn);var dr=function(d){function y(){d.apply(this,arguments)}d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y;var E={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return E.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},E.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},E.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(y.prototype,E),y}(Df);dr.prototype.size=8;var _n=function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype.get=function(E){return new dr(this,E)},y}(Zt);Jc("FeatureIndexArray",_n);var ii=wd([{name:"a_pos",components:2,type:"Int16"}],4).members,Si=function(d){d===void 0&&(d=[]),this.segments=d};function Vi(d,y){return 256*(d=K(Math.floor(d),0,255))+K(Math.floor(y),0,255)}Si.prototype.prepareSegment=function(d,y,E,Z){var re=this.segments[this.segments.length-1];return d>Si.MAX_VERTEX_ARRAY_LENGTH&&Pe("Max vertices per segment is "+Si.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+d),(!re||re.vertexLength+d>Si.MAX_VERTEX_ARRAY_LENGTH||re.sortKey!==Z)&&(re={vertexOffset:y.length,primitiveOffset:E.length,vertexLength:0,primitiveLength:0},Z!==void 0&&(re.sortKey=Z),this.segments.push(re)),re},Si.prototype.get=function(){return this.segments},Si.prototype.destroy=function(){for(var d=0,y=this.segments;d>>16)*Je&65535)<<16)&4294967295)<<15|ln>>>17))*zt+(((ln>>>16)*zt&65535)<<16)&4294967295)<<13|pe>>>19))+((5*(pe>>>16)&65535)<<16)&4294967295))+((58964+(Ie>>>16)&65535)<<16);switch(ln=0,Z){case 3:ln^=(255&y.charCodeAt(Kn+2))<<16;case 2:ln^=(255&y.charCodeAt(Kn+1))<<8;case 1:pe^=ln=(65535&(ln=(ln=(65535&(ln^=255&y.charCodeAt(Kn)))*Je+(((ln>>>16)*Je&65535)<<16)&4294967295)<<15|ln>>>17))*zt+(((ln>>>16)*zt&65535)<<16)&4294967295}return pe^=y.length,pe=2246822507*(65535&(pe^=pe>>>16))+((2246822507*(pe>>>16)&65535)<<16)&4294967295,pe=3266489909*(65535&(pe^=pe>>>13))+((3266489909*(pe>>>16)&65535)<<16)&4294967295,(pe^=pe>>>16)>>>0}}),Fi=x(function(d){d.exports=function(y,E){for(var Z,re=y.length,pe=E^re,Ie=0;re>=4;)Z=1540483477*(65535&(Z=255&y.charCodeAt(Ie)|(255&y.charCodeAt(++Ie))<<8|(255&y.charCodeAt(++Ie))<<16|(255&y.charCodeAt(++Ie))<<24))+((1540483477*(Z>>>16)&65535)<<16),pe=1540483477*(65535&pe)+((1540483477*(pe>>>16)&65535)<<16)^(Z=1540483477*(65535&(Z^=Z>>>24))+((1540483477*(Z>>>16)&65535)<<16)),re-=4,++Ie;switch(re){case 3:pe^=(255&y.charCodeAt(Ie+2))<<16;case 2:pe^=(255&y.charCodeAt(Ie+1))<<8;case 1:pe=1540483477*(65535&(pe^=255&y.charCodeAt(Ie)))+((1540483477*(pe>>>16)&65535)<<16)}return pe=1540483477*(65535&(pe^=pe>>>13))+((1540483477*(pe>>>16)&65535)<<16),(pe^=pe>>>15)>>>0}}),Vo=Go,zs=Fi;Vo.murmur3=Go,Vo.murmur2=zs;var ja=function(){this.ids=[],this.positions=[],this.indexed=!1};ja.prototype.add=function(d,y,E,Z){this.ids.push(zl(d)),this.positions.push(y,E,Z)},ja.prototype.getPositions=function(d){for(var y=zl(d),E=0,Z=this.ids.length-1;E>1;this.ids[re]>=y?Z=re:E=re+1}for(var pe=[];this.ids[E]===y;)pe.push({index:this.positions[3*E],start:this.positions[3*E+1],end:this.positions[3*E+2]}),E++;return pe},ja.serialize=function(d,y){var E=new Float64Array(d.ids),Z=new Uint32Array(d.positions);return function re(pe,Ie,Je,zt){for(;Je>1],Kn=Je-1,pr=zt+1;;){do Kn++;while(pe[Kn]ln);if(Kn>=pr)break;dl(pe,Kn,pr),dl(Ie,3*Kn,3*pr),dl(Ie,3*Kn+1,3*pr+1),dl(Ie,3*Kn+2,3*pr+2)}pr-JeIe.x+1||ztIe.y+1)&&Pe("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return E}function ah(d,y){return{type:d.type,id:d.id,properties:d.properties,geometry:y?_c(d):[]}}function ch(d,y,E,Z,re){d.emplaceBack(2*y+(Z+1)/2,2*E+(re+1)/2)}var Hh=function(d){this.zoom=d.zoom,this.overscaling=d.overscaling,this.layers=d.layers,this.layerIds=this.layers.map(function(y){return y.id}),this.index=d.index,this.hasPattern=!1,this.layoutVertexArray=new sh,this.indexArray=new D,this.segments=new Si,this.programConfigurations=new ud(d.layers,d.zoom),this.stateDependentLayerIds=this.layers.filter(function(y){return y.isStateDependent()}).map(function(y){return y.id})};function Cc(d,y){for(var E=0;E1){if(ko(d,y))return!0;for(var Z=0;Z1?E:E.sub(y)._mult(re)._add(y))}function Pg(d,y){for(var E,Z,re,pe=!1,Ie=0;Iey.y!=(re=E[zt]).y>y.y&&y.x<(re.x-Z.x)*(y.y-Z.y)/(re.y-Z.y)+Z.x&&(pe=!pe);return pe}function Uf(d,y){for(var E=!1,Z=0,re=d.length-1;Zy.y!=Ie.y>y.y&&y.x<(Ie.x-pe.x)*(y.y-pe.y)/(Ie.y-pe.y)+pe.x&&(E=!E)}return E}function Pd(d,y,E){var Z=E[0],re=E[2];if(d.xre.x&&y.x>re.x||d.yre.y&&y.y>re.y)return!1;var pe=Re(d,y,E[0]);return pe!==Re(d,y,E[1])||pe!==Re(d,y,E[2])||pe!==Re(d,y,E[3])}function ep(d,y,E){var Z=y.paint.get(d).value;return Z.kind==="constant"?Z.value:E.programConfigurations.get(y.id).getMaxValue(d)}function wp(d){return Math.sqrt(d[0]*d[0]+d[1]*d[1])}function eg(d,y,E,Z,re){if(!y[0]&&!y[1])return d;var pe=R.convert(y)._mult(re);E==="viewport"&&pe._rotate(-Z);for(var Ie=[],Je=0;Je=8192||Kn<0||Kn>=8192)){var pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,d.sortKey),si=pr.vertexLength;ch(this.layoutVertexArray,ln,Kn,-1,-1),ch(this.layoutVertexArray,ln,Kn,1,-1),ch(this.layoutVertexArray,ln,Kn,1,1),ch(this.layoutVertexArray,ln,Kn,-1,1),this.indexArray.emplaceBack(si,si+1,si+2),this.indexArray.emplaceBack(si,si+3,si+2),pr.vertexLength+=4,pr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,d,E,{},Z)},Jc("CircleBucket",Hh,{omit:["layers"]});var Cp=new Rp({"circle-sort-key":new Mh(jt.layout_circle["circle-sort-key"])}),If={paint:new Rp({"circle-radius":new Mh(jt.paint_circle["circle-radius"]),"circle-color":new Mh(jt.paint_circle["circle-color"]),"circle-blur":new Mh(jt.paint_circle["circle-blur"]),"circle-opacity":new Mh(jt.paint_circle["circle-opacity"]),"circle-translate":new Eh(jt.paint_circle["circle-translate"]),"circle-translate-anchor":new Eh(jt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Eh(jt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Eh(jt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Mh(jt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Mh(jt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Mh(jt.paint_circle["circle-stroke-opacity"])}),layout:Cp},Xd=typeof Float32Array!="undefined"?Float32Array:Array;function Sf(d){return d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1,d}function Ag(d,y,E){var Z=y[0],re=y[1],pe=y[2],Ie=y[3],Je=y[4],zt=y[5],ln=y[6],Kn=y[7],pr=y[8],si=y[9],yi=y[10],Do=y[11],Co=y[12],Uo=y[13],Mo=y[14],oo=y[15],Vs=E[0],Ta=E[1],cl=E[2],ou=E[3];return d[0]=Vs*Z+Ta*Je+cl*pr+ou*Co,d[1]=Vs*re+Ta*zt+cl*si+ou*Uo,d[2]=Vs*pe+Ta*ln+cl*yi+ou*Mo,d[3]=Vs*Ie+Ta*Kn+cl*Do+ou*oo,d[4]=(Vs=E[4])*Z+(Ta=E[5])*Je+(cl=E[6])*pr+(ou=E[7])*Co,d[5]=Vs*re+Ta*zt+cl*si+ou*Uo,d[6]=Vs*pe+Ta*ln+cl*yi+ou*Mo,d[7]=Vs*Ie+Ta*Kn+cl*Do+ou*oo,d[8]=(Vs=E[8])*Z+(Ta=E[9])*Je+(cl=E[10])*pr+(ou=E[11])*Co,d[9]=Vs*re+Ta*zt+cl*si+ou*Uo,d[10]=Vs*pe+Ta*ln+cl*yi+ou*Mo,d[11]=Vs*Ie+Ta*Kn+cl*Do+ou*oo,d[12]=(Vs=E[12])*Z+(Ta=E[13])*Je+(cl=E[14])*pr+(ou=E[15])*Co,d[13]=Vs*re+Ta*zt+cl*si+ou*Uo,d[14]=Vs*pe+Ta*ln+cl*yi+ou*Mo,d[15]=Vs*Ie+Ta*Kn+cl*Do+ou*oo,d}Math.hypot||(Math.hypot=function(){for(var d=arguments,y=0,E=arguments.length;E--;)y+=d[E]*d[E];return Math.sqrt(y)});var rm,Wf=Ag;function fd(d,y,E){var Z=y[0],re=y[1],pe=y[2],Ie=y[3];return d[0]=E[0]*Z+E[4]*re+E[8]*pe+E[12]*Ie,d[1]=E[1]*Z+E[5]*re+E[9]*pe+E[13]*Ie,d[2]=E[2]*Z+E[6]*re+E[10]*pe+E[14]*Ie,d[3]=E[3]*Z+E[7]*re+E[11]*pe+E[15]*Ie,d}rm=new Xd(3),Xd!=Float32Array&&(rm[0]=0,rm[1]=0,rm[2]=0),function(){var d=new Xd(4);Xd!=Float32Array&&(d[0]=0,d[1]=0,d[2]=0,d[3]=0)}();var Am=(function(){var d=new Xd(2);Xd!=Float32Array&&(d[0]=0,d[1]=0)}(),function(d){function y(E){d.call(this,E,If)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype.createBucket=function(E){return new Hh(E)},y.prototype.queryRadius=function(E){var Z=E;return ep("circle-radius",this,Z)+ep("circle-stroke-width",this,Z)+wp(this.paint.get("circle-translate"))},y.prototype.queryIntersectsFeature=function(E,Z,re,pe,Ie,Je,zt,ln){for(var Kn=eg(E,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),Je.angle,zt),pr=this.paint.get("circle-radius").evaluate(Z,re)+this.paint.get("circle-stroke-width").evaluate(Z,re),si=this.paint.get("circle-pitch-alignment")==="map",yi=si?Kn:function(Tu,Cu){return Tu.map(function(Hc){return um(Hc,Cu)})}(Kn,ln),Do=si?pr*zt:pr,Co=0,Uo=pe;Cod.width||re.height>d.height||E.x>d.width-re.width||E.y>d.height-re.height)throw new RangeError("out of range source coordinates for image copy");if(re.width>y.width||re.height>y.height||Z.x>y.width-re.width||Z.y>y.height-re.height)throw new RangeError("out of range destination coordinates for image copy");for(var Ie=d.data,Je=y.data,zt=0;zt80*E){Z=pe=d[0],re=Ie=d[1];for(var Do=E;Dope&&(pe=Je),zt>Ie&&(Ie=zt);ln=(ln=Math.max(pe-Z,Ie-re))!==0?1/ln:0}return v0(si,yi,E,Z,re,ln),yi}function gp(d,y,E,Z,re){var pe,Ie;if(re===We(d,y,E,Z)>0)for(pe=y;pe=y;pe-=Z)Ie=de(pe,d[pe],d[pe+1],Ie);return Ie&&ug(Ie,Ie.next)&&(ke(Ie),Ie=Ie.next),Ie}function pf(d,y){if(!d)return d;y||(y=d);var E,Z=d;do if(E=!1,Z.steiner||!ug(Z,Z.next)&&Np(Z.prev,Z,Z.next)!==0)Z=Z.next;else{if(ke(Z),(Z=y=Z.prev)===Z.next)break;E=!0}while(E||Z!==y);return y}function v0(d,y,E,Z,re,pe,Ie){if(d){!Ie&&pe&&function(Kn,pr,si,yi){var Do=Kn;do Do.z===null&&(Do.z=hm(Do.x,Do.y,pr,si,yi)),Do.prevZ=Do.prev,Do.nextZ=Do.next,Do=Do.next;while(Do!==Kn);Do.prevZ.nextZ=null,Do.prevZ=null,function(Co){var Uo,Mo,oo,Vs,Ta,cl,ou,Tu,Cu=1;do{for(Mo=Co,Co=null,Ta=null,cl=0;Mo;){for(cl++,oo=Mo,ou=0,Uo=0;Uo0||Tu>0&&oo;)ou!==0&&(Tu===0||!oo||Mo.z<=oo.z)?(Vs=Mo,Mo=Mo.nextZ,ou--):(Vs=oo,oo=oo.nextZ,Tu--),Ta?Ta.nextZ=Vs:Co=Vs,Vs.prevZ=Ta,Ta=Vs;Mo=oo}Ta.nextZ=null,Cu*=2}while(cl>1)}(Do)}(d,Z,re,pe);for(var Je,zt,ln=d;d.prev!==d.next;)if(Je=d.prev,zt=d.next,pe?tm(d,Z,re,pe):y0(d))y.push(Je.i/E),y.push(d.i/E),y.push(zt.i/E),ke(d),d=zt.next,ln=zt.next;else if((d=zt)===ln){Ie?Ie===1?v0(d=u0(pf(d),y,E),y,E,Z,re,pe,2):Ie===2&&T0(d,y,E,Z,re,pe):v0(pf(d),y,E,Z,re,pe,1);break}}}function y0(d){var y=d.prev,E=d,Z=d.next;if(Np(y,E,Z)>=0)return!1;for(var re=d.next.next;re!==d.prev;){if(mm(y.x,y.y,E.x,E.y,Z.x,Z.y,re.x,re.y)&&Np(re.prev,re,re.next)>=0)return!1;re=re.next}return!0}function tm(d,y,E,Z){var re=d.prev,pe=d,Ie=d.next;if(Np(re,pe,Ie)>=0)return!1;for(var Je=re.x>pe.x?re.x>Ie.x?re.x:Ie.x:pe.x>Ie.x?pe.x:Ie.x,zt=re.y>pe.y?re.y>Ie.y?re.y:Ie.y:pe.y>Ie.y?pe.y:Ie.y,ln=hm(re.x=ln&&si&&si.z<=Kn;){if(pr!==d.prev&&pr!==d.next&&mm(re.x,re.y,pe.x,pe.y,Ie.x,Ie.y,pr.x,pr.y)&&Np(pr.prev,pr,pr.next)>=0||(pr=pr.prevZ,si!==d.prev&&si!==d.next&&mm(re.x,re.y,pe.x,pe.y,Ie.x,Ie.y,si.x,si.y)&&Np(si.prev,si,si.next)>=0))return!1;si=si.nextZ}for(;pr&&pr.z>=ln;){if(pr!==d.prev&&pr!==d.next&&mm(re.x,re.y,pe.x,pe.y,Ie.x,Ie.y,pr.x,pr.y)&&Np(pr.prev,pr,pr.next)>=0)return!1;pr=pr.prevZ}for(;si&&si.z<=Kn;){if(si!==d.prev&&si!==d.next&&mm(re.x,re.y,pe.x,pe.y,Ie.x,Ie.y,si.x,si.y)&&Np(si.prev,si,si.next)>=0)return!1;si=si.nextZ}return!0}function u0(d,y,E){var Z=d;do{var re=Z.prev,pe=Z.next.next;!ug(re,pe)&&Sm(re,Z,Z.next,pe)&&Q(re,pe)&&Q(pe,re)&&(y.push(re.i/E),y.push(Z.i/E),y.push(pe.i/E),ke(Z),ke(Z.next),Z=d=pe),Z=Z.next}while(Z!==d);return pf(Z)}function T0(d,y,E,Z,re,pe){var Ie=d;do{for(var Je=Ie.next.next;Je!==Ie.prev;){if(Ie.i!==Je.i&&$m(Ie,Je)){var zt=W(Ie,Je);return Ie=pf(Ie,Ie.next),zt=pf(zt,zt.next),v0(Ie,y,E,Z,re,pe),void v0(zt,y,E,Z,re,pe)}Je=Je.next}Ie=Ie.next}while(Ie!==d)}function L0(d,y){return d.x-y.x}function Bd(d,y){if(y=function(Z,re){var pe,Ie=re,Je=Z.x,zt=Z.y,ln=-1/0;do{if(zt<=Ie.y&&zt>=Ie.next.y&&Ie.next.y!==Ie.y){var Kn=Ie.x+(zt-Ie.y)*(Ie.next.x-Ie.x)/(Ie.next.y-Ie.y);if(Kn<=Je&&Kn>ln){if(ln=Kn,Kn===Je){if(zt===Ie.y)return Ie;if(zt===Ie.next.y)return Ie.next}pe=Ie.x=Ie.x&&Ie.x>=yi&&Je!==Ie.x&&mm(ztpe.x||Ie.x===pe.x&&Qm(pe,Ie)))&&(pe=Ie,Co=pr)),Ie=Ie.next;while(Ie!==si);return pe}(d,y)){var E=W(y,d);pf(y,y.next),pf(E,E.next)}}function Qm(d,y){return Np(d.prev,d,y.prev)<0&&Np(y.next,d,d.next)<0}function hm(d,y,E,Z,re){return(d=1431655765&((d=858993459&((d=252645135&((d=16711935&((d=32767*(d-E)*re)|d<<8))|d<<4))|d<<2))|d<<1))|(y=1431655765&((y=858993459&((y=252645135&((y=16711935&((y=32767*(y-Z)*re)|y<<8))|y<<4))|y<<2))|y<<1))<<1}function n0(d){var y=d,E=d;do(y.x=0&&(d-Ie)*(Z-Je)-(E-Ie)*(y-Je)>=0&&(E-Ie)*(pe-Je)-(re-Ie)*(Z-Je)>=0}function $m(d,y){return d.next.i!==y.i&&d.prev.i!==y.i&&!function(E,Z){var re=E;do{if(re.i!==E.i&&re.next.i!==E.i&&re.i!==Z.i&&re.next.i!==Z.i&&Sm(re,re.next,E,Z))return!0;re=re.next}while(re!==E);return!1}(d,y)&&(Q(d,y)&&Q(y,d)&&function(E,Z){var re=E,pe=!1,Ie=(E.x+Z.x)/2,Je=(E.y+Z.y)/2;do re.y>Je!=re.next.y>Je&&re.next.y!==re.y&&Ie<(re.next.x-re.x)*(Je-re.y)/(re.next.y-re.y)+re.x&&(pe=!pe),re=re.next;while(re!==E);return pe}(d,y)&&(Np(d.prev,d,y.prev)||Np(d,y.prev,y))||ug(d,y)&&Np(d.prev,d,d.next)>0&&Np(y.prev,y,y.next)>0)}function Np(d,y,E){return(y.y-d.y)*(E.x-y.x)-(y.x-d.x)*(E.y-y.y)}function ug(d,y){return d.x===y.x&&d.y===y.y}function Sm(d,y,E,Z){var re=on(Np(d,y,E)),pe=on(Np(d,y,Z)),Ie=on(Np(E,Z,d)),Je=on(Np(E,Z,y));return re!==pe&&Ie!==Je||!(re!==0||!vm(d,E,y))||!(pe!==0||!vm(d,Z,y))||!(Ie!==0||!vm(E,d,Z))||!(Je!==0||!vm(E,y,Z))}function vm(d,y,E){return y.x<=Math.max(d.x,E.x)&&y.x>=Math.min(d.x,E.x)&&y.y<=Math.max(d.y,E.y)&&y.y>=Math.min(d.y,E.y)}function on(d){return d>0?1:d<0?-1:0}function Q(d,y){return Np(d.prev,d,d.next)<0?Np(d,y,d.next)>=0&&Np(d,d.prev,y)>=0:Np(d,y,d.prev)<0||Np(d,d.next,y)<0}function W(d,y){var E=new yt(d.i,d.x,d.y),Z=new yt(y.i,y.x,y.y),re=d.next,pe=y.prev;return d.next=y,y.prev=d,E.next=re,re.prev=E,Z.next=E,E.prev=Z,pe.next=Z,Z.prev=pe,Z}function de(d,y,E,Z){var re=new yt(d,y,E);return Z?(re.next=Z.next,re.prev=Z,Z.next.prev=re,Z.next=re):(re.prev=re,re.next=re),re}function ke(d){d.next.prev=d.prev,d.prev.next=d.next,d.prevZ&&(d.prevZ.nextZ=d.nextZ),d.nextZ&&(d.nextZ.prevZ=d.prevZ)}function yt(d,y,E){this.i=d,this.x=y,this.y=E,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function We(d,y,E,Z){for(var re=0,pe=y,Ie=E-Z;pezt;){if(ln-zt>600){var pr=ln-zt+1,si=Je-zt+1,yi=Math.log(pr),Do=.5*Math.exp(2*yi/3),Co=.5*Math.sqrt(yi*Do*(pr-Do)/pr)*(si-pr/2<0?-1:1);pe(Ie,Je,Math.max(zt,Math.floor(Je-si*Do/pr+Co)),Math.min(ln,Math.floor(Je+(pr-si)*Do/pr+Co)),Kn)}var Uo=Ie[Je],Mo=zt,oo=ln;for(ct(Ie,zt,Je),Kn(Ie[ln],Uo)>0&&ct(Ie,zt,ln);Mo0;)oo--}Kn(Ie[zt],Uo)===0?ct(Ie,zt,oo):ct(Ie,++oo,ln),oo<=Je&&(zt=oo+1),Je<=oo&&(ln=oo-1)}})(d,y,E||0,Z||d.length-1,re||It)}function ct(d,y,E){var Z=d[y];d[y]=d[E],d[E]=Z}function It(d,y){return dy?1:0}function kt(d,y){var E=d.length;if(E<=1)return[d];for(var Z,re,pe=[],Ie=0;Ie1)for(var zt=0;zt0&&E.holes.push(Z+=d[re-1].length)}return E},dg.default=F0;var pn=function(d){this.zoom=d.zoom,this.overscaling=d.overscaling,this.layers=d.layers,this.layerIds=this.layers.map(function(y){return y.id}),this.index=d.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new sh,this.indexArray=new D,this.indexArray2=new tn,this.programConfigurations=new ud(d.layers,d.zoom),this.segments=new Si,this.segments2=new Si,this.stateDependentLayerIds=this.layers.filter(function(y){return y.isStateDependent()}).map(function(y){return y.id})};pn.prototype.populate=function(d,y,E){this.hasPattern=Kt("fill",this.layers,y);for(var Z=this.layers[0].layout.get("fill-sort-key"),re=[],pe=0,Ie=d;pe>3}if(re--,Z===1||Z===2)pe+=d.readSVarint(),Ie+=d.readSVarint(),Z===1&&(y&&Je.push(y),y=[]),y.push(new R(pe,Ie));else{if(Z!==7)throw new Error("unknown command "+Z);y&&y.push(y[0].clone())}}return y&&Je.push(y),Je},gr.prototype.bbox=function(){var d=this._pbf;d.pos=this._geometry;for(var y=d.readVarint()+d.pos,E=1,Z=0,re=0,pe=0,Ie=1/0,Je=-1/0,zt=1/0,ln=-1/0;d.pos>3}if(Z--,E===1||E===2)(re+=d.readSVarint())Je&&(Je=re),(pe+=d.readSVarint())ln&&(ln=pe);else if(E!==7)throw new Error("unknown command "+E)}return[Ie,zt,Je,ln]},gr.prototype.toGeoJSON=function(d,y,E){var Z,re,pe=this.extent*Math.pow(2,E),Ie=this.extent*d,Je=this.extent*y,zt=this.loadGeometry(),ln=gr.types[this.type];function Kn(yi){for(var Do=0;Do>3;re=Ie===1?Z.readString():Ie===2?Z.readFloat():Ie===3?Z.readDouble():Ie===4?Z.readVarint64():Ie===5?Z.readVarint():Ie===6?Z.readSVarint():Ie===7?Z.readBoolean():null}return re}(E))}function ci(d,y,E){if(d===3){var Z=new zi(E,E.readVarint()+E.pos);Z.length&&(y[Z.name]=Z)}}ei.prototype.feature=function(d){if(d<0||d>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[d];var y=this._pbf.readVarint()+this._pbf.pos;return new Hn(this._pbf,y,this.extent,this._keys,this._values)};var ji={VectorTile:function(d,y){this.layers=d.readFields(ci,{},y)},VectorTileFeature:Hn,VectorTileLayer:zi},hi=ji.VectorTileFeature.types,bo=Math.pow(2,13);function br(d,y,E,Z,re,pe,Ie,Je){d.emplaceBack(y,E,2*Math.floor(Z*bo)+Ie,re*bo*2,pe*bo*2,Math.round(Je))}var mi=function(d){this.zoom=d.zoom,this.overscaling=d.overscaling,this.layers=d.layers,this.layerIds=this.layers.map(function(y){return y.id}),this.index=d.index,this.hasPattern=!1,this.layoutVertexArray=new Zh,this.indexArray=new D,this.programConfigurations=new ud(d.layers,d.zoom),this.segments=new Si,this.stateDependentLayerIds=this.layers.filter(function(y){return y.isStateDependent()}).map(function(y){return y.id})};function Er(d,y){return d.x===y.x&&(d.x<0||d.x>8192)||d.y===y.y&&(d.y<0||d.y>8192)}mi.prototype.populate=function(d,y,E){this.features=[],this.hasPattern=Kt("fill-extrusion",this.layers,y);for(var Z=0,re=d;Z8192})||so.every(function(Ws){return Ws.y<0})||so.every(function(Ws){return Ws.y>8192})))for(var Co=0,Uo=0;Uo=1){var oo=Do[Uo-1];if(!Er(Mo,oo)){pr.vertexLength+4>Si.MAX_VERTEX_ARRAY_LENGTH&&(pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Vs=Mo.sub(oo)._perp()._unit(),Ta=oo.dist(Mo);Co+Ta>32768&&(Co=0),br(this.layoutVertexArray,Mo.x,Mo.y,Vs.x,Vs.y,0,0,Co),br(this.layoutVertexArray,Mo.x,Mo.y,Vs.x,Vs.y,0,1,Co),br(this.layoutVertexArray,oo.x,oo.y,Vs.x,Vs.y,0,0,Co+=Ta),br(this.layoutVertexArray,oo.x,oo.y,Vs.x,Vs.y,0,1,Co);var cl=pr.vertexLength;this.indexArray.emplaceBack(cl,cl+2,cl+1),this.indexArray.emplaceBack(cl+1,cl+2,cl+3),pr.vertexLength+=4,pr.primitiveLength+=2}}}}if(pr.vertexLength+zt>Si.MAX_VERTEX_ARRAY_LENGTH&&(pr=this.segments.prepareSegment(zt,this.layoutVertexArray,this.indexArray)),hi[d.type]==="Polygon"){for(var ou=[],Tu=[],Cu=pr.vertexLength,Hc=0,bu=Je;Hc=2&&d[zt-1].equals(d[zt-2]);)zt--;for(var ln=0;ln0;if(Tu&&Mo>ln){var Hc=Kn.dist(yi);if(Hc>2*pr){var bu=Kn.sub(Kn.sub(yi)._mult(pr/Hc)._round());this.updateDistance(yi,bu),this.addCurrentVertex(bu,Co,0,0,si),yi=bu}}var Dc=yi&&Do,Sn=Dc?E:Je?"butt":Z;if(Dc&&Sn==="round"&&(clre&&(Sn="bevel"),Sn==="bevel"&&(cl>2&&(Sn="flipbevel"),cl100)oo=Uo.mult(-1);else{var rr=cl*Co.add(Uo).mag()/Co.sub(Uo).mag();oo._perp()._mult(rr*(Cu?-1:1))}this.addCurrentVertex(Kn,oo,0,0,si),this.addCurrentVertex(Kn,oo.mult(-1),0,0,si)}else if(Sn==="bevel"||Sn==="fakeround"){var Dr=-Math.sqrt(cl*cl-1),ni=Cu?Dr:0,so=Cu?0:Dr;if(yi&&this.addCurrentVertex(Kn,Co,ni,so,si),Sn==="fakeround")for(var Ws=Math.round(180*ou/Math.PI/20),La=1;La2*pr){var Gh=Kn.add(Do.sub(Kn)._mult(pr/xc)._round());this.updateDistance(Kn,Gh),this.addCurrentVertex(Gh,Uo,0,0,si),Kn=Gh}}}}},ts.prototype.addCurrentVertex=function(d,y,E,Z,re,pe){pe===void 0&&(pe=!1);var Ie=y.y*Z-y.x,Je=-y.y-y.x*Z;this.addHalfVertex(d,y.x+y.y*E,y.y-y.x*E,pe,!1,E,re),this.addHalfVertex(d,Ie,Je,pe,!0,-Z,re),this.distance>xs/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(d,y,E,Z,re,pe))},ts.prototype.addHalfVertex=function(d,y,E,Z,re,pe,Ie){var Je=.5*(this.lineClips?this.scaledDistance*(xs-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((d.x<<1)+(Z?1:0),(d.y<<1)+(re?1:0),Math.round(63*y)+128,Math.round(63*E)+128,1+(pe===0?0:pe<0?-1:1)|(63&Je)<<2,Je>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var zt=Ie.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,zt),Ie.primitiveLength++),re?this.e2=zt:this.e1=zt},ts.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},ts.prototype.updateDistance=function(d,y){this.distance+=d.dist(y),this.updateScaledDistance()},Jc("LineBucket",ts,{omit:["layers","patternFeatures"]});var vs=new Rp({"line-cap":new Eh(jt.layout_line["line-cap"]),"line-join":new Mh(jt.layout_line["line-join"]),"line-miter-limit":new Eh(jt.layout_line["line-miter-limit"]),"line-round-limit":new Eh(jt.layout_line["line-round-limit"]),"line-sort-key":new Mh(jt.layout_line["line-sort-key"])}),_a={paint:new Rp({"line-opacity":new Mh(jt.paint_line["line-opacity"]),"line-color":new Mh(jt.paint_line["line-color"]),"line-translate":new Eh(jt.paint_line["line-translate"]),"line-translate-anchor":new Eh(jt.paint_line["line-translate-anchor"]),"line-width":new Mh(jt.paint_line["line-width"]),"line-gap-width":new Mh(jt.paint_line["line-gap-width"]),"line-offset":new Mh(jt.paint_line["line-offset"]),"line-blur":new Mh(jt.paint_line["line-blur"]),"line-dasharray":new bh(jt.paint_line["line-dasharray"]),"line-pattern":new Wh(jt.paint_line["line-pattern"]),"line-gradient":new Vd(jt.paint_line["line-gradient"])}),layout:vs},Bo=new(function(d){function y(){d.apply(this,arguments)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype.possiblyEvaluate=function(E,Z){return Z=new bd(Math.floor(Z.zoom),{now:Z.now,fadeDuration:Z.fadeDuration,zoomHistory:Z.zoomHistory,transition:Z.transition}),d.prototype.possiblyEvaluate.call(this,E,Z)},y.prototype.evaluate=function(E,Z,re,pe){return Z=fe({},Z,{zoom:Math.floor(Z.zoom)}),d.prototype.evaluate.call(this,E,Z,re,pe)},y}(Mh))(_a.paint.properties["line-width"].specification);Bo.useIntegerZoom=!0;var Ja=function(d){function y(E){d.call(this,E,_a),this.gradientVersion=0}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype._handleSpecialPaintPropertyUpdate=function(E){E==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Al,this.gradientVersion=(this.gradientVersion+1)%p)},y.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},y.prototype.recalculate=function(E,Z){d.prototype.recalculate.call(this,E,Z),this.paint._values["line-floorwidth"]=Bo.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,E)},y.prototype.createBucket=function(E){return new ts(E)},y.prototype.queryRadius=function(E){var Z=E,re=ns(ep("line-width",this,Z),ep("line-gap-width",this,Z)),pe=ep("line-offset",this,Z);return re/2+Math.abs(pe)+wp(this.paint.get("line-translate"))},y.prototype.queryIntersectsFeature=function(E,Z,re,pe,Ie,Je,zt){var ln=eg(E,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Je.angle,zt),Kn=zt/2*ns(this.paint.get("line-width").evaluate(Z,re),this.paint.get("line-gap-width").evaluate(Z,re)),pr=this.paint.get("line-offset").evaluate(Z,re);return pr&&(pe=function(si,yi){for(var Do=[],Co=new R(0,0),Uo=0;Uo=3){for(var Mo=0;Mo0?y+2*d:d}var no=wd([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Qs=wd([{name:"a_projected_pos",components:3,type:"Float32"}],4),ca=(wd([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),wd([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Ts=(wd([{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"}]),wd([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),ro=wd([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function cs(d,y,E){return d.sections.forEach(function(Z){Z.text=function(re,pe,Ie){var Je=pe.layout.get("text-transform").evaluate(Ie,{});return Je==="uppercase"?re=re.toLocaleUpperCase():Je==="lowercase"&&(re=re.toLocaleLowerCase()),Mp.applyArabicShaping&&(re=Mp.applyArabicShaping(re)),re}(Z.text,y,E)}),d}wd([{name:"triangle",components:3,type:"Uint16"}]),wd([{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"}]),wd([{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"}]),wd([{type:"Float32",name:"offsetX"}]),wd([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var ia={"!":"\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"},Yl=function(d,y,E,Z,re){var pe,Ie,Je=8*re-Z-1,zt=(1<>1,Kn=-7,pr=E?re-1:0,si=E?-1:1,yi=d[y+pr];for(pr+=si,pe=yi&(1<<-Kn)-1,yi>>=-Kn,Kn+=Je;Kn>0;pe=256*pe+d[y+pr],pr+=si,Kn-=8);for(Ie=pe&(1<<-Kn)-1,pe>>=-Kn,Kn+=Z;Kn>0;Ie=256*Ie+d[y+pr],pr+=si,Kn-=8);if(pe===0)pe=1-ln;else{if(pe===zt)return Ie?NaN:1/0*(yi?-1:1);Ie+=Math.pow(2,Z),pe-=ln}return(yi?-1:1)*Ie*Math.pow(2,pe-Z)},Fn=function(d,y,E,Z,re,pe){var Ie,Je,zt,ln=8*pe-re-1,Kn=(1<>1,si=re===23?Math.pow(2,-24)-Math.pow(2,-77):0,yi=Z?0:pe-1,Do=Z?1:-1,Co=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(Je=isNaN(y)?1:0,Ie=Kn):(Ie=Math.floor(Math.log(y)/Math.LN2),y*(zt=Math.pow(2,-Ie))<1&&(Ie--,zt*=2),(y+=Ie+pr>=1?si/zt:si*Math.pow(2,1-pr))*zt>=2&&(Ie++,zt/=2),Ie+pr>=Kn?(Je=0,Ie=Kn):Ie+pr>=1?(Je=(y*zt-1)*Math.pow(2,re),Ie+=pr):(Je=y*Math.pow(2,pr-1)*Math.pow(2,re),Ie=0));re>=8;d[E+yi]=255&Je,yi+=Do,Je/=256,re-=8);for(Ie=Ie<0;d[E+yi]=255&Ie,yi+=Do,Ie/=256,ln-=8);d[E+yi-Do]|=128*Co},io=Qr;function Qr(d){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(d)?d:new Uint8Array(d||0),this.pos=0,this.type=0,this.length=this.buf.length}Qr.Varint=0,Qr.Fixed64=1,Qr.Bytes=2,Qr.Fixed32=5;var qi=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function vo(d){return d.type===Qr.Bytes?d.readVarint()+d.pos:d.pos+1}function os(d,y,E){return E?4294967296*y+(d>>>0):4294967296*(y>>>0)+(d>>>0)}function Ms(d,y,E){var Z=y<=16383?1:y<=2097151?2:y<=268435455?3:Math.floor(Math.log(y)/(7*Math.LN2));E.realloc(Z);for(var re=E.pos-1;re>=d;re--)E.buf[re+Z]=E.buf[re]}function Ke(d,y){for(var E=0;E>>8,d[E+2]=y>>>16,d[E+3]=y>>>24}function ma(d,y){return(d[y]|d[y+1]<<8|d[y+2]<<16)+(d[y+3]<<24)}function za(d,y,E){d===1&&E.readMessage(Ol,y)}function Ol(d,y,E){if(d===3){var Z=E.readMessage(ua,{}),re=Z.width,pe=Z.height,Ie=Z.left,Je=Z.top,zt=Z.advance;y.push({id:Z.id,bitmap:new am({width:re+6,height:pe+6},Z.bitmap),metrics:{width:re,height:pe,left:Ie,top:Je,advance:zt}})}}function ua(d,y,E){d===1?y.id=E.readVarint():d===2?y.bitmap=E.readBytes():d===3?y.width=E.readVarint():d===4?y.height=E.readVarint():d===5?y.left=E.readSVarint():d===6?y.top=E.readSVarint():d===7&&(y.advance=E.readVarint())}function $r(d){for(var y=0,E=0,Z=0,re=d;Z=0;si--){var yi=Ie[si];if(!(pr.w>yi.w||pr.h>yi.h)){if(pr.x=yi.x,pr.y=yi.y,zt=Math.max(zt,pr.y+pr.h),Je=Math.max(Je,pr.x+pr.w),pr.w===yi.w&&pr.h===yi.h){var Do=Ie.pop();si>3,pe=this.pos;this.type=7&Z,d(re,y,this),this.pos===pe&&this.skip(Z)}return y},readMessage:function(d,y){return this.readFields(d,y,this.readVarint()+this.pos)},readFixed32:function(){var d=rs(this.buf,this.pos);return this.pos+=4,d},readSFixed32:function(){var d=ma(this.buf,this.pos);return this.pos+=4,d},readFixed64:function(){var d=rs(this.buf,this.pos)+4294967296*rs(this.buf,this.pos+4);return this.pos+=8,d},readSFixed64:function(){var d=rs(this.buf,this.pos)+4294967296*ma(this.buf,this.pos+4);return this.pos+=8,d},readFloat:function(){var d=Yl(this.buf,this.pos,!0,23,4);return this.pos+=4,d},readDouble:function(){var d=Yl(this.buf,this.pos,!0,52,8);return this.pos+=8,d},readVarint:function(d){var y,E,Z=this.buf;return y=127&(E=Z[this.pos++]),E<128?y:(y|=(127&(E=Z[this.pos++]))<<7,E<128?y:(y|=(127&(E=Z[this.pos++]))<<14,E<128?y:(y|=(127&(E=Z[this.pos++]))<<21,E<128?y:function(re,pe,Ie){var Je,zt,ln=Ie.buf;if(Je=(112&(zt=ln[Ie.pos++]))>>4,zt<128||(Je|=(127&(zt=ln[Ie.pos++]))<<3,zt<128)||(Je|=(127&(zt=ln[Ie.pos++]))<<10,zt<128)||(Je|=(127&(zt=ln[Ie.pos++]))<<17,zt<128)||(Je|=(127&(zt=ln[Ie.pos++]))<<24,zt<128)||(Je|=(1&(zt=ln[Ie.pos++]))<<31,zt<128))return os(re,Je,pe);throw new Error("Expected varint not more than 10 bytes")}(y|=(15&(E=Z[this.pos]))<<28,d,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var d=this.readVarint();return d%2==1?(d+1)/-2:d/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var d=this.readVarint()+this.pos,y=this.pos;return this.pos=d,d-y>=12&&qi?function(E,Z,re){return qi.decode(E.subarray(Z,re))}(this.buf,y,d):function(E,Z,re){for(var pe="",Ie=Z;Ie239?4:Kn>223?3:Kn>191?2:1;if(Ie+si>re)break;si===1?Kn<128&&(pr=Kn):si===2?(192&(Je=E[Ie+1]))==128&&(pr=(31&Kn)<<6|63&Je)<=127&&(pr=null):si===3?(zt=E[Ie+2],(192&(Je=E[Ie+1]))==128&&(192&zt)==128&&((pr=(15&Kn)<<12|(63&Je)<<6|63&zt)<=2047||pr>=55296&&pr<=57343)&&(pr=null)):si===4&&(zt=E[Ie+2],ln=E[Ie+3],(192&(Je=E[Ie+1]))==128&&(192&zt)==128&&(192&ln)==128&&((pr=(15&Kn)<<18|(63&Je)<<12|(63&zt)<<6|63&ln)<=65535||pr>=1114112)&&(pr=null)),pr===null?(pr=65533,si=1):pr>65535&&(pr-=65536,pe+=String.fromCharCode(pr>>>10&1023|55296),pr=56320|1023&pr),pe+=String.fromCharCode(pr),Ie+=si}return pe}(this.buf,y,d)},readBytes:function(){var d=this.readVarint()+this.pos,y=this.buf.subarray(this.pos,d);return this.pos=d,y},readPackedVarint:function(d,y){if(this.type!==Qr.Bytes)return d.push(this.readVarint(y));var E=vo(this);for(d=d||[];this.pos127;);else if(y===Qr.Bytes)this.pos=this.readVarint()+this.pos;else if(y===Qr.Fixed32)this.pos+=4;else{if(y!==Qr.Fixed64)throw new Error("Unimplemented type: "+y);this.pos+=8}},writeTag:function(d,y){this.writeVarint(d<<3|y)},realloc:function(d){for(var y=this.length||16;y268435455||d<0?function(y,E){var Z,re;if(y>=0?(Z=y%4294967296|0,re=y/4294967296|0):(re=~(-y/4294967296),4294967295^(Z=~(-y%4294967296))?Z=Z+1|0:(Z=0,re=re+1|0)),y>=18446744073709552e3||y<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");E.realloc(10),function(pe,Ie,Je){Je.buf[Je.pos++]=127&pe|128,pe>>>=7,Je.buf[Je.pos++]=127&pe|128,pe>>>=7,Je.buf[Je.pos++]=127&pe|128,pe>>>=7,Je.buf[Je.pos++]=127&pe|128,Je.buf[Je.pos]=127&(pe>>>=7)}(Z,0,E),function(pe,Ie){var Je=(7&pe)<<4;Ie.buf[Ie.pos++]|=Je|((pe>>>=3)?128:0),pe&&(Ie.buf[Ie.pos++]=127&pe|((pe>>>=7)?128:0),pe&&(Ie.buf[Ie.pos++]=127&pe|((pe>>>=7)?128:0),pe&&(Ie.buf[Ie.pos++]=127&pe|((pe>>>=7)?128:0),pe&&(Ie.buf[Ie.pos++]=127&pe|((pe>>>=7)?128:0),pe&&(Ie.buf[Ie.pos++]=127&pe)))))}(re,E)}(d,this):(this.realloc(4),this.buf[this.pos++]=127&d|(d>127?128:0),d<=127||(this.buf[this.pos++]=127&(d>>>=7)|(d>127?128:0),d<=127||(this.buf[this.pos++]=127&(d>>>=7)|(d>127?128:0),d<=127||(this.buf[this.pos++]=d>>>7&127))))},writeSVarint:function(d){this.writeVarint(d<0?2*-d-1:2*d)},writeBoolean:function(d){this.writeVarint(!!d)},writeString:function(d){d=String(d),this.realloc(4*d.length),this.pos++;var y=this.pos;this.pos=function(Z,re,pe){for(var Ie,Je,zt=0;zt55295&&Ie<57344){if(!Je){Ie>56319||zt+1===re.length?(Z[pe++]=239,Z[pe++]=191,Z[pe++]=189):Je=Ie;continue}if(Ie<56320){Z[pe++]=239,Z[pe++]=191,Z[pe++]=189,Je=Ie;continue}Ie=Je-55296<<10|Ie-56320|65536,Je=null}else Je&&(Z[pe++]=239,Z[pe++]=191,Z[pe++]=189,Je=null);Ie<128?Z[pe++]=Ie:(Ie<2048?Z[pe++]=Ie>>6|192:(Ie<65536?Z[pe++]=Ie>>12|224:(Z[pe++]=Ie>>18|240,Z[pe++]=Ie>>12&63|128),Z[pe++]=Ie>>6&63|128),Z[pe++]=63&Ie|128)}return pe}(this.buf,d,this.pos);var E=this.pos-y;E>=128&&Ms(y,E,this),this.pos=y-1,this.writeVarint(E),this.pos+=E},writeFloat:function(d){this.realloc(4),Fn(this.buf,d,this.pos,!0,23,4),this.pos+=4},writeDouble:function(d){this.realloc(8),Fn(this.buf,d,this.pos,!0,52,8),this.pos+=8},writeBytes:function(d){var y=d.length;this.writeVarint(y),this.realloc(y);for(var E=0;E=128&&Ms(E,Z,this),this.pos=E-1,this.writeVarint(Z),this.pos+=Z},writeMessage:function(d,y,E){this.writeTag(d,Qr.Bytes),this.writeRawMessage(y,E)},writePackedVarint:function(d,y){y.length&&this.writeMessage(d,Ke,y)},writePackedSVarint:function(d,y){y.length&&this.writeMessage(d,Ka,y)},writePackedBoolean:function(d,y){y.length&&this.writeMessage(d,jl,y)},writePackedFloat:function(d,y){y.length&&this.writeMessage(d,su,y)},writePackedDouble:function(d,y){y.length&&this.writeMessage(d,Wl,y)},writePackedFixed32:function(d,y){y.length&&this.writeMessage(d,$l,y)},writePackedSFixed32:function(d,y){y.length&&this.writeMessage(d,ql,y)},writePackedFixed64:function(d,y){y.length&&this.writeMessage(d,Ys,y)},writePackedSFixed64:function(d,y){y.length&&this.writeMessage(d,Ti,y)},writeBytesField:function(d,y){this.writeTag(d,Qr.Bytes),this.writeBytes(y)},writeFixed32Field:function(d,y){this.writeTag(d,Qr.Fixed32),this.writeFixed32(y)},writeSFixed32Field:function(d,y){this.writeTag(d,Qr.Fixed32),this.writeSFixed32(y)},writeFixed64Field:function(d,y){this.writeTag(d,Qr.Fixed64),this.writeFixed64(y)},writeSFixed64Field:function(d,y){this.writeTag(d,Qr.Fixed64),this.writeSFixed64(y)},writeVarintField:function(d,y){this.writeTag(d,Qr.Varint),this.writeVarint(y)},writeSVarintField:function(d,y){this.writeTag(d,Qr.Varint),this.writeSVarint(y)},writeStringField:function(d,y){this.writeTag(d,Qr.Bytes),this.writeString(y)},writeFloatField:function(d,y){this.writeTag(d,Qr.Fixed32),this.writeFloat(y)},writeDoubleField:function(d,y){this.writeTag(d,Qr.Fixed64),this.writeDouble(y)},writeBooleanField:function(d,y){this.writeVarintField(d,!!y)}};var Ko=function(d,y){var E=y.pixelRatio,Z=y.version,re=y.stretchX,pe=y.stretchY,Ie=y.content;this.paddedRect=d,this.pixelRatio=E,this.stretchX=re,this.stretchY=pe,this.content=Ie,this.version=Z},ea={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};ea.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},ea.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},ea.tlbr.get=function(){return this.tl.concat(this.br)},ea.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(Ko.prototype,ea);var Nl=function(d,y){var E={},Z={};this.haveRenderCallbacks=[];var re=[];this.addImages(d,E,re),this.addImages(y,Z,re);var pe=$r(re),Ie=new Sg({width:pe.w||1,height:pe.h||1});for(var Je in d){var zt=d[Je],ln=E[Je].paddedRect;Sg.copy(zt.data,Ie,{x:0,y:0},{x:ln.x+1,y:ln.y+1},zt.data)}for(var Kn in y){var pr=y[Kn],si=Z[Kn].paddedRect,yi=si.x+1,Do=si.y+1,Co=pr.data.width,Uo=pr.data.height;Sg.copy(pr.data,Ie,{x:0,y:0},{x:yi,y:Do},pr.data),Sg.copy(pr.data,Ie,{x:0,y:Uo-1},{x:yi,y:Do-1},{width:Co,height:1}),Sg.copy(pr.data,Ie,{x:0,y:0},{x:yi,y:Do+Uo},{width:Co,height:1}),Sg.copy(pr.data,Ie,{x:Co-1,y:0},{x:yi-1,y:Do},{width:1,height:Uo}),Sg.copy(pr.data,Ie,{x:0,y:0},{x:yi+Co,y:Do},{width:1,height:Uo})}this.image=Ie,this.iconPositions=E,this.patternPositions=Z};Nl.prototype.addImages=function(d,y,E){for(var Z in d){var re=d[Z],pe={x:0,y:0,w:re.data.width+2,h:re.data.height+2};E.push(pe),y[Z]=new Ko(pe,re),re.hasRenderCallback&&this.haveRenderCallbacks.push(Z)}},Nl.prototype.patchUpdatedImages=function(d,y){for(var E in d.dispatchRenderCallbacks(this.haveRenderCallbacks),d.updatedImages)this.patchUpdatedImage(this.iconPositions[E],d.getImage(E),y),this.patchUpdatedImage(this.patternPositions[E],d.getImage(E),y)},Nl.prototype.patchUpdatedImage=function(d,y,E){if(d&&y&&d.version!==y.version){d.version=y.version;var Z=d.tl;E.update(y.data,void 0,{x:Z[0],y:Z[1]})}},Jc("ImagePosition",Ko),Jc("ImageAtlas",Nl);var ru={horizontal:1,vertical:2,horizontalOnly:3},Rl=function(){this.scale=1,this.fontStack="",this.imageName=null};Rl.forText=function(d,y){var E=new Rl;return E.scale=d||1,E.fontStack=y,E},Rl.forImage=function(d){var y=new Rl;return y.imageName=d,y};var ha=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function pu(d,y,E,Z,re,pe,Ie,Je,zt,ln,Kn,pr,si,yi,Do,Co){var Uo,Mo=ha.fromFeature(d,re);pr===ru.vertical&&Mo.verticalizePunctuation();var oo=Mp.processBidirectionalText,Vs=Mp.processStyledBidirectionalText;if(oo&&Mo.sections.length===1){Uo=[];for(var Ta=0,cl=oo(Mo.toString(),Au(Mo,ln,pe,y,Z,yi,Do));Ta0&&ti>_h&&(_h=ti)}else{var _i=Ws[Rd.fontStack],po=_i&&_i[P];if(po&&po.rect)Ue=po.rect,ye=po.metrics;else{var Yo=so[Rd.fontStack],qo=Yo&&Yo[P];if(!qo)continue;ye=qo.metrics}ee=24*(mf-Rd.scale)}Ut?(ni.verticalizable=!0,Ql.push({glyph:P,imageName:gt,x:Kh,y:tp+ee,vertical:Ut,scale:Rd.scale,fontStack:Rd.fontStack,sectionIndex:H,metrics:ye,rect:Ue}),Kh+=_t*Rd.scale+Gh):(Ql.push({glyph:P,imageName:gt,x:Kh,y:tp+ee,vertical:Ut,scale:Rd.scale,fontStack:Rd.fontStack,sectionIndex:H,metrics:ye,rect:Ue}),Kh+=ye.advance*Rd.scale+Gh)}Ql.length!==0&&(lp=Math.max(Kh-Gh,lp),vc(Ql,0,Ql.length-1,jd,_h)),Kh=0;var pa=nl*mf+_h;cf.lineOffset=Math.max(_h,rg),tp+=pa,Td=Math.max(pa,Td),++es}else tp+=nl,++es}var Pa,Ra=tp- -17,Gl=Xc(tu),ll=Gl.horizontalAlign,Ul=Gl.verticalAlign;(function(mu,kc,kd,Ud,Gd,ed,td,Jd,_d){var dh,wf=(kc-kd)*Gd;dh=ed!==td?-Jd*Ud- -17:(-Ud*_d+.5)*td;for(var Ef=0,Fp=mu;Ef=0&&Z>=d&&Kl[this.text.charCodeAt(Z)];Z--)E--;this.text=this.text.substring(d,E),this.sectionIndex=this.sectionIndex.slice(d,E)},ha.prototype.substring=function(d,y){var E=new ha;return E.text=this.text.substring(d,y),E.sectionIndex=this.sectionIndex.slice(d,y),E.sections=this.sections,E},ha.prototype.toString=function(){return this.text},ha.prototype.getMaxScale=function(){var d=this;return this.sectionIndex.reduce(function(y,E){return Math.max(y,d.sections[E].scale)},0)},ha.prototype.addTextSection=function(d,y){this.text+=d.text,this.sections.push(Rl.forText(d.scale,d.fontStack||y));for(var E=this.sections.length-1,Z=0;Z=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Kl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},xh={};function au(d,y,E,Z,re,pe){if(y.imageName){var Ie=Z[y.imageName];return Ie?Ie.displaySize[0]*y.scale*24/pe+re:0}var Je=E[y.fontStack],zt=Je&&Je[d];return zt?zt.metrics.advance*y.scale+re:0}function $c(d,y,E,Z){var re=Math.pow(d-y,2);return Z?d=0,pr=0,si=0;si-E/2;){if(--Ie<0)return!1;Je-=d[Ie].dist(pe),pe=d[Ie]}Je+=d[Ie].dist(d[Ie+1]),Ie++;for(var zt=[],ln=0;JeZ;)ln-=zt.shift().angleDelta;if(ln>re)return!1;Ie++,Je+=Kn.dist(pr)}return!0}function Yn(d){for(var y=0,E=0;Eln){var Do=(ln-zt)/yi,Co=Js(pr.x,si.x,Do),Uo=Js(pr.y,si.y,Do),Mo=new hd(Co,Uo,si.angleTo(pr),Kn);return Mo._round(),!Ie||ui(d,Mo,Je,Ie,y)?Mo:void 0}zt+=yi}}function Ca(d,y,E,Z,re,pe,Ie,Je,zt){var ln=Ci(Z,pe,Ie),Kn=xo(Z,re),pr=Kn*Ie,si=d[0].x===0||d[0].x===zt||d[0].y===0||d[0].y===zt;return y-pr=0&&La=0&&Is=0&&bu+Tu<=Cu){var nl=new hd(La,Is,so,Sn);nl._round(),Mo&&!ui(Do,nl,Vs,Mo,oo)||Dc.push(nl)}}Hc+=ni}return cl||Dc.length||Ta||(Dc=yi(Do,Hc/2,Uo,Mo,oo,Vs,Ta,!0,ou)),Dc}(d,si?y/2*Je%y:(Kn/2+2*pe)*Ie*Je%y,y,ln,E,pr,si,!1,zt)}function bl(d,y,E,Z,re){for(var pe=[],Ie=0;Ie=Z&&pr.x>=Z||(Kn.x>=Z?Kn=new R(Z,Kn.y+(Z-Kn.x)/(pr.x-Kn.x)*(pr.y-Kn.y))._round():pr.x>=Z&&(pr=new R(Z,Kn.y+(Z-Kn.x)/(pr.x-Kn.x)*(pr.y-Kn.y))._round()),Kn.y>=re&&pr.y>=re||(Kn.y>=re?Kn=new R(Kn.x+(re-Kn.y)/(pr.y-Kn.y)*(pr.x-Kn.x),re)._round():pr.y>=re&&(pr=new R(Kn.x+(re-Kn.y)/(pr.y-Kn.y)*(pr.x-Kn.x),re)._round()),zt&&Kn.equals(zt[zt.length-1])||pe.push(zt=[Kn]),zt.push(pr)))))}return pe}function Fu(d,y,E,Z){var re=[],pe=d.image,Ie=pe.pixelRatio,Je=pe.paddedRect.w-2,zt=pe.paddedRect.h-2,ln=d.right-d.left,Kn=d.bottom-d.top,pr=pe.stretchX||[[0,Je]],si=pe.stretchY||[[0,zt]],yi=function(La,Is){return La+Is[1]-Is[0]},Do=pr.reduce(yi,0),Co=si.reduce(yi,0),Uo=Je-Do,Mo=zt-Co,oo=0,Vs=Do,Ta=0,cl=Co,ou=0,Tu=Uo,Cu=0,Hc=Mo;if(pe.content&&Z){var bu=pe.content;oo=sc(pr,0,bu[0]),Ta=sc(si,0,bu[1]),Vs=sc(pr,bu[0],bu[2]),cl=sc(si,bu[1],bu[3]),ou=bu[0]-oo,Cu=bu[1]-Ta,Tu=bu[2]-bu[0]-Vs,Hc=bu[3]-bu[1]-cl}var Dc=function(La,Is,nl,tu){var Ds=fa(La.stretch-oo,Vs,ln,d.left),xc=wl(La.fixed-ou,Tu,La.stretch,Do),Gh=fa(Is.stretch-Ta,cl,Kn,d.top),Ph=wl(Is.fixed-Cu,Hc,Is.stretch,Co),hh=fa(nl.stretch-oo,Vs,ln,d.left),Kh=wl(nl.fixed-ou,Tu,nl.stretch,Do),tp=fa(tu.stretch-Ta,cl,Kn,d.top),lp=wl(tu.fixed-Cu,Hc,tu.stretch,Co),Td=new R(Ds,Gh),jd=new R(hh,Gh),es=new R(hh,tp),Pl=new R(Ds,tp),qd=new R(xc/Ie,Ph/Ie),dd=new R(Kh/Ie,lp/Ie),mf=y*Math.PI/180;if(mf){var rg=Math.sin(mf),cf=Math.cos(mf),Ql=[cf,-rg,rg,cf];Td._matMult(Ql),jd._matMult(Ql),Pl._matMult(Ql),es._matMult(Ql)}var _h=La.stretch+La.fixed,Yd=Is.stretch+Is.fixed;return{tl:Td,tr:jd,bl:Pl,br:es,tex:{x:pe.paddedRect.x+1+_h,y:pe.paddedRect.y+1+Yd,w:nl.stretch+nl.fixed-_h,h:tu.stretch+tu.fixed-Yd},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:qd,pixelOffsetBR:dd,minFontScaleX:Tu/Ie/ln,minFontScaleY:Hc/Ie/Kn,isSDF:E}};if(Z&&(pe.stretchX||pe.stretchY))for(var Sn=Fc(pr,Uo,Do),rr=Fc(si,Mo,Co),Dr=0;Dr0&&(yi=Math.max(10,yi),this.circleDiameter=yi)}else{var Do=pe.top*Ie-Je,Co=pe.bottom*Ie+Je,Uo=pe.left*Ie-Je,Mo=pe.right*Ie+Je,oo=pe.collisionPadding;if(oo&&(Uo-=oo[0]*Ie,Do-=oo[1]*Ie,Mo+=oo[2]*Ie,Co+=oo[3]*Ie),ln){var Vs=new R(Uo,Do),Ta=new R(Mo,Do),cl=new R(Uo,Co),ou=new R(Mo,Co),Tu=ln*Math.PI/180;Vs._rotate(Tu),Ta._rotate(Tu),cl._rotate(Tu),ou._rotate(Tu),Uo=Math.min(Vs.x,Ta.x,cl.x,ou.x),Mo=Math.max(Vs.x,Ta.x,cl.x,ou.x),Do=Math.min(Vs.y,Ta.y,cl.y,ou.y),Co=Math.max(Vs.y,Ta.y,cl.y,ou.y)}d.emplaceBack(y.x,y.y,Uo,Do,Mo,Co,E,Z,re)}this.boxEndIndex=d.length},fl=function(d,y){if(d===void 0&&(d=[]),y===void 0&&(y=Ga),this.data=d,this.length=this.data.length,this.compare=y,this.length>0)for(var E=(this.length>>1)-1;E>=0;E--)this._down(E)};function Ga(d,y){return dy?1:0}function ku(d,y,E){y===void 0&&(y=1),E===void 0&&(E=!1);for(var Z=1/0,re=1/0,pe=-1/0,Ie=-1/0,Je=d[0],zt=0;ztpe)&&(pe=ln.x),(!zt||ln.y>Ie)&&(Ie=ln.y)}var Kn=Math.min(pe-Z,Ie-re),pr=Kn/2,si=new fl([],wh);if(Kn===0)return new R(Z,re);for(var yi=Z;yiCo.d||!Co.d)&&(Co=Mo,E&&console.log("found best %d after %d probes",Math.round(1e4*Mo.d)/1e4,Uo)),Mo.max-Co.d<=y||(si.push(new ws(Mo.p.x-(pr=Mo.h/2),Mo.p.y-pr,pr,d)),si.push(new ws(Mo.p.x+pr,Mo.p.y-pr,pr,d)),si.push(new ws(Mo.p.x-pr,Mo.p.y+pr,pr,d)),si.push(new ws(Mo.p.x+pr,Mo.p.y+pr,pr,d)),Uo+=4)}return E&&(console.log("num probes: "+Uo),console.log("best distance: "+Co.d)),Co.p}function wh(d,y){return y.max-d.max}function ws(d,y,E,Z){this.p=new R(d,y),this.h=E,this.d=function(re,pe){for(var Ie=!1,Je=1/0,zt=0;ztre.y!=Do.y>re.y&&re.x<(Do.x-yi.x)*(re.y-yi.y)/(Do.y-yi.y)+yi.x&&(Ie=!Ie),Je=Math.min(Je,Lg(re,yi,Do))}return(Ie?1:-1)*Math.sqrt(Je)}(this.p,Z),this.max=this.d+this.h*Math.SQRT2}fl.prototype.push=function(d){this.data.push(d),this.length++,this._up(this.length-1)},fl.prototype.pop=function(){if(this.length!==0){var d=this.data[0],y=this.data.pop();return this.length--,this.length>0&&(this.data[0]=y,this._down(0)),d}},fl.prototype.peek=function(){return this.data[0]},fl.prototype._up=function(d){for(var y=this.data,E=this.compare,Z=y[d];d>0;){var re=d-1>>1,pe=y[re];if(E(Z,pe)>=0)break;y[d]=pe,d=re}y[d]=Z},fl.prototype._down=function(d){for(var y=this.data,E=this.compare,Z=this.length>>1,re=y[d];d=0)break;y[d]=Ie,d=pe}y[d]=re};var Xo=Number.POSITIVE_INFINITY;function Ns(d,y){return y[1]!==Xo?function(E,Z,re){var pe=0,Ie=0;switch(Z=Math.abs(Z),re=Math.abs(re),E){case"top-right":case"top-left":case"top":Ie=re-7;break;case"bottom-right":case"bottom-left":case"bottom":Ie=7-re}switch(E){case"top-right":case"bottom-right":case"right":pe=-Z;break;case"top-left":case"bottom-left":case"left":pe=Z}return[pe,Ie]}(d,y[0],y[1]):function(E,Z){var re=0,pe=0;Z<0&&(Z=0);var Ie=Z/Math.sqrt(2);switch(E){case"top-right":case"top-left":pe=Ie-7;break;case"bottom-right":case"bottom-left":pe=7-Ie;break;case"bottom":pe=7-Z;break;case"top":pe=Z-7}switch(E){case"top-right":case"bottom-right":re=-Ie;break;case"top-left":case"bottom-left":re=Ie;break;case"left":re=Z;break;case"right":re=-Z}return[re,pe]}(d,y[0])}function Xa(d){switch(d){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function sl(d,y,E,Z,re,pe,Ie,Je,zt,ln,Kn,pr,si,yi,Do){var Co=function(Ta,cl,ou,Tu,Cu,Hc,bu,Dc){for(var Sn=Tu.layout.get("text-rotate").evaluate(Hc,{})*Math.PI/180,rr=[],Dr=0,ni=cl.positionedLines;Dr32640&&Pe(d.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):Uo.kind==="composite"&&((Mo=[128*yi.compositeTextSizes[0].evaluate(Ie,{},Do),128*yi.compositeTextSizes[1].evaluate(Ie,{},Do)])[0]>32640||Mo[1]>32640)&&Pe(d.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),d.addSymbols(d.text,Co,Mo,Je,pe,Ie,ln,y,zt.lineStartIndex,zt.lineLength,si,Do);for(var oo=0,Vs=Kn;oo=0;Ie--)if(Z.dist(pe[Ie])0)&&(pe.value.kind!=="constant"||pe.value.value.length>0),ln=Je.value.kind!=="constant"||!!Je.value.value||Object.keys(Je.parameters).length>0,Kn=re.get("symbol-sort-key");if(this.features=[],zt||ln){for(var pr=y.iconDependencies,si=y.glyphDependencies,yi=y.availableImages,Do=new bd(this.zoom),Co=0,Uo=d;Co=0;for(var so=0,Ws=Cu.sections;so=0;Je--)pe[Je]={x:y[Je].x,y:y[Je].y,tileUnitDistanceFromAnchor:re},Je>0&&(re+=y[Je-1].dist(y[Je]));for(var zt=0;zt0},Qo.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Qo.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Qo.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Qo.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Qo.prototype.addIndicesForPlacedSymbol=function(d,y){for(var E=d.placedSymbolArray.get(y),Z=E.vertexStartIndex+4*E.numGlyphs,re=E.vertexStartIndex;re1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(d),this.sortedAngle=d,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var E=0,Z=this.symbolInstanceIndexes;E=0&&Je.indexOf(pe)===Ie&&y.addIndicesForPlacedSymbol(y.text,pe)}),re.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,re.verticalPlacedTextSymbolIndex),re.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,re.placedIconSymbolIndex),re.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,re.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Jc("SymbolBucket",Qo,{omit:["layers","collisionBoxArray","features","compareText"]}),Qo.MAX_GLYPHS=65535,Qo.addDynamicAttributes=As;var sa=new Rp({"symbol-placement":new Eh(jt.layout_symbol["symbol-placement"]),"symbol-spacing":new Eh(jt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Eh(jt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Mh(jt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Eh(jt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Eh(jt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Eh(jt.layout_symbol["icon-ignore-placement"]),"icon-optional":new Eh(jt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Eh(jt.layout_symbol["icon-rotation-alignment"]),"icon-size":new Mh(jt.layout_symbol["icon-size"]),"icon-text-fit":new Eh(jt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Eh(jt.layout_symbol["icon-text-fit-padding"]),"icon-image":new Mh(jt.layout_symbol["icon-image"]),"icon-rotate":new Mh(jt.layout_symbol["icon-rotate"]),"icon-padding":new Eh(jt.layout_symbol["icon-padding"]),"icon-keep-upright":new Eh(jt.layout_symbol["icon-keep-upright"]),"icon-offset":new Mh(jt.layout_symbol["icon-offset"]),"icon-anchor":new Mh(jt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Eh(jt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Eh(jt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Eh(jt.layout_symbol["text-rotation-alignment"]),"text-field":new Mh(jt.layout_symbol["text-field"]),"text-font":new Mh(jt.layout_symbol["text-font"]),"text-size":new Mh(jt.layout_symbol["text-size"]),"text-max-width":new Mh(jt.layout_symbol["text-max-width"]),"text-line-height":new Eh(jt.layout_symbol["text-line-height"]),"text-letter-spacing":new Mh(jt.layout_symbol["text-letter-spacing"]),"text-justify":new Mh(jt.layout_symbol["text-justify"]),"text-radial-offset":new Mh(jt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Eh(jt.layout_symbol["text-variable-anchor"]),"text-anchor":new Mh(jt.layout_symbol["text-anchor"]),"text-max-angle":new Eh(jt.layout_symbol["text-max-angle"]),"text-writing-mode":new Eh(jt.layout_symbol["text-writing-mode"]),"text-rotate":new Mh(jt.layout_symbol["text-rotate"]),"text-padding":new Eh(jt.layout_symbol["text-padding"]),"text-keep-upright":new Eh(jt.layout_symbol["text-keep-upright"]),"text-transform":new Mh(jt.layout_symbol["text-transform"]),"text-offset":new Mh(jt.layout_symbol["text-offset"]),"text-allow-overlap":new Eh(jt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Eh(jt.layout_symbol["text-ignore-placement"]),"text-optional":new Eh(jt.layout_symbol["text-optional"])}),$a={paint:new Rp({"icon-opacity":new Mh(jt.paint_symbol["icon-opacity"]),"icon-color":new Mh(jt.paint_symbol["icon-color"]),"icon-halo-color":new Mh(jt.paint_symbol["icon-halo-color"]),"icon-halo-width":new Mh(jt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Mh(jt.paint_symbol["icon-halo-blur"]),"icon-translate":new Eh(jt.paint_symbol["icon-translate"]),"icon-translate-anchor":new Eh(jt.paint_symbol["icon-translate-anchor"]),"text-opacity":new Mh(jt.paint_symbol["text-opacity"]),"text-color":new Mh(jt.paint_symbol["text-color"],{runtimeType:di,getOverride:function(d){return d.textColor},hasOverride:function(d){return!!d.textColor}}),"text-halo-color":new Mh(jt.paint_symbol["text-halo-color"]),"text-halo-width":new Mh(jt.paint_symbol["text-halo-width"]),"text-halo-blur":new Mh(jt.paint_symbol["text-halo-blur"]),"text-translate":new Eh(jt.paint_symbol["text-translate"]),"text-translate-anchor":new Eh(jt.paint_symbol["text-translate-anchor"])}),layout:sa},Ru=function(d){this.type=d.property.overrides?d.property.overrides.runtimeType:Nr,this.defaultValue=d};Ru.prototype.evaluate=function(d){if(d.formattedSection){var y=this.defaultValue.property.overrides;if(y&&y.hasOverride(d.formattedSection))return y.getOverride(d.formattedSection)}return d.feature&&d.featureState?this.defaultValue.evaluate(d.feature,d.featureState):this.defaultValue.property.specification.default},Ru.prototype.eachChild=function(d){this.defaultValue.isConstant()||d(this.defaultValue.value._styleExpression.expression)},Ru.prototype.outputDefined=function(){return!1},Ru.prototype.serialize=function(){return null},Jc("FormatSectionOverride",Ru,{omit:["defaultValue"]});var rh=function(d){function y(E){d.call(this,E,$a)}return d&&(y.__proto__=d),(y.prototype=Object.create(d&&d.prototype)).constructor=y,y.prototype.recalculate=function(E,Z){if(d.prototype.recalculate.call(this,E,Z),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 re=this.layout.get("text-writing-mode");if(re){for(var pe=[],Ie=0,Je=re;Ie",targetMapId:Z,sourceMapId:pe.mapId})}}},Mg.prototype.receive=function(d){var y=d.data,E=y.id;if(E&&(!y.targetMapId||this.mapId===y.targetMapId))if(y.type===""){delete this.tasks[E];var Z=this.cancelCallbacks[E];delete this.cancelCallbacks[E],Z&&Z()}else Ce()||y.mustQueue?(this.tasks[E]=y,this.taskQueue.push(E),this.invoker.trigger()):this.processTask(E,y)},Mg.prototype.process=function(){if(this.taskQueue.length){var d=this.taskQueue.shift(),y=this.tasks[d];delete this.tasks[d],this.taskQueue.length&&this.invoker.trigger(),y&&this.processTask(d,y)}},Mg.prototype.processTask=function(d,y){var E=this;if(y.type===""){var Z=this.callbacks[d];delete this.callbacks[d],Z&&(y.error?Z(Zi(y.error)):Z(null,Zi(y.data)))}else{var re=!1,pe=Xt(this.globalScope)?void 0:[],Ie=y.hasCallback?function(Kn,pr){re=!0,delete E.cancelCallbacks[d],E.target.postMessage({id:d,type:"",sourceMapId:E.mapId,error:Kn?bc(Kn):null,data:bc(pr,pe)},pe)}:function(Kn){re=!0},Je=null,zt=Zi(y.data);if(this.parent[y.type])Je=this.parent[y.type](y.sourceMapId,zt,Ie);else if(this.parent.getWorkerSource){var ln=y.type.split(".");Je=this.parent.getWorkerSource(y.sourceMapId,ln[0],zt.source)[ln[1]](zt,Ie)}else Ie(new Error("Could not find function "+y.type));!re&&Je&&Je.cancel&&(this.cancelCallbacks[d]=Je.cancel)}},Mg.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Sp=function(d,y){d&&(y?this.setSouthWest(d).setNorthEast(y):d.length===4?this.setSouthWest([d[0],d[1]]).setNorthEast([d[2],d[3]]):this.setSouthWest(d[0]).setNorthEast(d[1]))};Sp.prototype.setNorthEast=function(d){return this._ne=d instanceof tg?new tg(d.lng,d.lat):tg.convert(d),this},Sp.prototype.setSouthWest=function(d){return this._sw=d instanceof tg?new tg(d.lng,d.lat):tg.convert(d),this},Sp.prototype.extend=function(d){var y,E,Z=this._sw,re=this._ne;if(d instanceof tg)y=d,E=d;else{if(!(d instanceof Sp))return Array.isArray(d)?d.length===4||d.every(Array.isArray)?this.extend(Sp.convert(d)):this.extend(tg.convert(d)):this;if(E=d._ne,!(y=d._sw)||!E)return this}return Z||re?(Z.lng=Math.min(y.lng,Z.lng),Z.lat=Math.min(y.lat,Z.lat),re.lng=Math.max(E.lng,re.lng),re.lat=Math.max(E.lat,re.lat)):(this._sw=new tg(y.lng,y.lat),this._ne=new tg(E.lng,E.lat)),this},Sp.prototype.getCenter=function(){return new tg((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Sp.prototype.getSouthWest=function(){return this._sw},Sp.prototype.getNorthEast=function(){return this._ne},Sp.prototype.getNorthWest=function(){return new tg(this.getWest(),this.getNorth())},Sp.prototype.getSouthEast=function(){return new tg(this.getEast(),this.getSouth())},Sp.prototype.getWest=function(){return this._sw.lng},Sp.prototype.getSouth=function(){return this._sw.lat},Sp.prototype.getEast=function(){return this._ne.lng},Sp.prototype.getNorth=function(){return this._ne.lat},Sp.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Sp.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Sp.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Sp.prototype.contains=function(d){var y=tg.convert(d),E=y.lng,Z=y.lat,re=this._sw.lng<=E&&E<=this._ne.lng;return this._sw.lng>this._ne.lng&&(re=this._sw.lng>=E&&E>=this._ne.lng),this._sw.lat<=Z&&Z<=this._ne.lat&&re},Sp.convert=function(d){return!d||d instanceof Sp?d:new Sp(d)};var tg=function(d,y){if(isNaN(d)||isNaN(y))throw new Error("Invalid LngLat object: ("+d+", "+y+")");if(this.lng=+d,this.lat=+y,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};tg.prototype.wrap=function(){return new tg(he(this.lng,-180,180),this.lat)},tg.prototype.toArray=function(){return[this.lng,this.lat]},tg.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},tg.prototype.distanceTo=function(d){var y=Math.PI/180,E=this.lat*y,Z=d.lat*y,re=Math.sin(E)*Math.sin(Z)+Math.cos(E)*Math.cos(Z)*Math.cos((d.lng-this.lng)*y);return 63710088e-1*Math.acos(Math.min(re,1))},tg.prototype.toBounds=function(d){d===void 0&&(d=0);var y=360*d/40075017,E=y/Math.cos(Math.PI/180*this.lat);return new Sp(new tg(this.lng-E,this.lat-y),new tg(this.lng+E,this.lat+y))},tg.convert=function(d){if(d instanceof tg)return d;if(Array.isArray(d)&&(d.length===2||d.length===3))return new tg(Number(d[0]),Number(d[1]));if(!Array.isArray(d)&&typeof d=="object"&&d!==null)return new tg(Number("lng"in d?d.lng:d.lon),Number(d.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 _0=2*Math.PI*63710088e-1;function r0(d){return _0*Math.cos(d*Math.PI/180)}function gg(d){return(180+d)/360}function Ku(d){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+d*Math.PI/360)))/360}function lm(d,y){return d/r0(y)}function i0(d){return 360/Math.PI*Math.atan(Math.exp((180-360*d)*Math.PI/180))-90}var dc=function(d,y,E){E===void 0&&(E=0),this.x=+d,this.y=+y,this.z=+E};dc.fromLngLat=function(d,y){y===void 0&&(y=0);var E=tg.convert(d);return new dc(gg(E.lng),Ku(E.lat),lm(y,E.lat))},dc.prototype.toLngLat=function(){return new tg(360*this.x-180,i0(this.y))},dc.prototype.toAltitude=function(){return this.z*r0(i0(this.y))},dc.prototype.meterInMercatorCoordinateUnits=function(){return 1/_0*(d=i0(this.y),1/Math.cos(d*Math.PI/180));var d};var Du=function(d,y,E){this.z=d,this.x=y,this.y=E,this.key=Ap(0,d,d,y,E)};Du.prototype.equals=function(d){return this.z===d.z&&this.x===d.x&&this.y===d.y},Du.prototype.url=function(d,y){var E,Z,re,pe,Ie,Je=(Z=this.y,re=this.z,pe=km(256*(E=this.x),256*(Z=Math.pow(2,re)-Z-1),re),Ie=km(256*(E+1),256*(Z+1),re),pe[0]+","+pe[1]+","+Ie[0]+","+Ie[1]),zt=function(ln,Kn,pr){for(var si,yi="",Do=ln;Do>0;Do--)yi+=(Kn&(si=1<this.canonical.z?new Dm(d,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Dm(d,this.wrap,d,this.canonical.x>>y,this.canonical.y>>y)},Dm.prototype.calculateScaledKey=function(d,y){var E=this.canonical.z-d;return d>this.canonical.z?Ap(this.wrap*+y,d,this.canonical.z,this.canonical.x,this.canonical.y):Ap(this.wrap*+y,d,d,this.canonical.x>>E,this.canonical.y>>E)},Dm.prototype.isChildOf=function(d){if(d.wrap!==this.wrap)return!1;var y=this.canonical.z-d.canonical.z;return d.overscaledZ===0||d.overscaledZ>y&&d.canonical.y===this.canonical.y>>y},Dm.prototype.children=function(d){if(this.overscaledZ>=d)return[new Dm(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var y=this.canonical.z+1,E=2*this.canonical.x,Z=2*this.canonical.y;return[new Dm(y,this.wrap,y,E,Z),new Dm(y,this.wrap,y,E+1,Z),new Dm(y,this.wrap,y,E,Z+1),new Dm(y,this.wrap,y,E+1,Z+1)]},Dm.prototype.isLessThan=function(d){return this.wrapd.wrap)&&(this.overscaledZd.overscaledZ)&&(this.canonical.xd.canonical.x)&&this.canonical.y=this.dim+1||y<-1||y>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(y+1)*this.stride+(d+1)},Dp.prototype._unpackMapbox=function(d,y,E){return(256*d*256+256*y+E)/10-1e4},Dp.prototype._unpackTerrarium=function(d,y,E){return 256*d+y+E/256-32768},Dp.prototype.getPixels=function(){return new Sg({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Dp.prototype.backfillBorder=function(d,y,E){if(this.dim!==d.dim)throw new Error("dem dimension mismatch");var Z=y*this.dim,re=y*this.dim+this.dim,pe=E*this.dim,Ie=E*this.dim+this.dim;switch(y){case-1:Z=re-1;break;case 1:re=Z+1}switch(E){case-1:pe=Ie-1;break;case 1:Ie=pe+1}for(var Je=-y*this.dim,zt=-E*this.dim,ln=pe;ln=0&&Kn[3]>=0&&Je.insert(Ie,Kn[0],Kn[1],Kn[2],Kn[3])}},J0.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new ji.VectorTile(new io(this.rawTileData)).layers,this.sourceLayerCoder=new W1(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},J0.prototype.query=function(d,y,E,Z){var re=this;this.loadVTLayers();for(var pe=d.params||{},Ie=8192/d.tileSize/d.scale,Je=df(pe.filter),zt=d.queryGeometry,ln=d.queryPadding*Ie,Kn=Os(zt),pr=this.grid.query(Kn.minX-ln,Kn.minY-ln,Kn.maxX+ln,Kn.maxY+ln),si=Os(d.cameraQueryGeometry),yi=this.grid3D.query(si.minX-ln,si.minY-ln,si.maxX+ln,si.maxY+ln,function(Ta,cl,ou,Tu){return function(Cu,Hc,bu,Dc,Sn){for(var rr=0,Dr=Cu;rr=ni.x&&Sn>=ni.y)return!0}var so=[new R(Hc,bu),new R(Hc,Sn),new R(Dc,Sn),new R(Dc,bu)];if(Cu.length>2){for(var Ws=0,La=so;Ws=0)return!0;return!1}(pe,pr)){var si=this.sourceLayerCoder.decode(E),yi=this.vtLayers[si].feature(Z);if(re.needGeometry){var Do=ah(yi,!0);if(!re.filter(new bd(this.tileID.overscaledZ),Do,this.tileID.canonical))return}else if(!re.filter(new bd(this.tileID.overscaledZ),yi))return;for(var Co=this.getId(yi,si),Uo=0;UoZ)re=!1;else if(y)if(this.expirationTimeDn&&(d.getActor().send("enforceCacheSizeLimit",Qt),xi=0)},C.clamp=K,C.clearTileCache=function(d){var y=S.caches.delete("mapbox-tiles");d&&y.catch(d).then(function(){return d()})},C.clipLine=bl,C.clone=function(d){var y=new Xd(16);return y[0]=d[0],y[1]=d[1],y[2]=d[2],y[3]=d[3],y[4]=d[4],y[5]=d[5],y[6]=d[6],y[7]=d[7],y[8]=d[8],y[9]=d[9],y[10]=d[10],y[11]=d[11],y[12]=d[12],y[13]=d[13],y[14]=d[14],y[15]=d[15],y},C.clone$1=Ee,C.clone$2=function(d){var y=new Xd(3);return y[0]=d[0],y[1]=d[1],y[2]=d[2],y},C.collisionCircleLayout=ro,C.config=Kr,C.create=function(){var d=new Xd(16);return Xd!=Float32Array&&(d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[11]=0,d[12]=0,d[13]=0,d[14]=0),d[0]=1,d[5]=1,d[10]=1,d[15]=1,d},C.create$1=function(){var d=new Xd(9);return Xd!=Float32Array&&(d[1]=0,d[2]=0,d[3]=0,d[5]=0,d[6]=0,d[7]=0),d[0]=1,d[4]=1,d[8]=1,d},C.create$2=function(){var d=new Xd(4);return Xd!=Float32Array&&(d[1]=0,d[2]=0),d[0]=1,d[3]=1,d},C.createCommonjsModule=x,C.createExpression=Uh,C.createLayout=wd,C.createStyleLayer=function(d){return d.type==="custom"?new cg(d):new im[d.type](d)},C.cross=function(d,y,E){var Z=y[0],re=y[1],pe=y[2],Ie=E[0],Je=E[1],zt=E[2];return d[0]=re*zt-pe*Je,d[1]=pe*Ie-Z*zt,d[2]=Z*Je-re*Ie,d},C.deepEqual=function d(y,E){if(Array.isArray(y)){if(!Array.isArray(E)||y.length!==E.length)return!1;for(var Z=0;Z0&&(pe=1/Math.sqrt(pe)),d[0]=y[0]*pe,d[1]=y[1]*pe,d[2]=y[2]*pe,d},C.number=Js,C.offscreenCanvasSupported=Pr,C.ortho=function(d,y,E,Z,re,pe,Ie){var Je=1/(y-E),zt=1/(Z-re),ln=1/(pe-Ie);return d[0]=-2*Je,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=-2*zt,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=2*ln,d[11]=0,d[12]=(y+E)*Je,d[13]=(re+Z)*zt,d[14]=(Ie+pe)*ln,d[15]=1,d},C.parseGlyphPBF=function(d){return new io(d).readFields(za,[])},C.pbf=io,C.performSymbolLayout=function(d,y,E,Z,re,pe,Ie){d.createArrays(),d.tilePixelRatio=8192/(512*d.overscaling),d.compareText={},d.iconsNeedLinear=!1;var Je=d.layers[0].layout,zt=d.layers[0]._unevaluatedLayout._values,ln={};if(d.textSizeData.kind==="composite"){var Kn=d.textSizeData,pr=Kn.maxZoom;ln.compositeTextSizes=[zt["text-size"].possiblyEvaluate(new bd(Kn.minZoom),Ie),zt["text-size"].possiblyEvaluate(new bd(pr),Ie)]}if(d.iconSizeData.kind==="composite"){var si=d.iconSizeData,yi=si.maxZoom;ln.compositeIconSizes=[zt["icon-size"].possiblyEvaluate(new bd(si.minZoom),Ie),zt["icon-size"].possiblyEvaluate(new bd(yi),Ie)]}ln.layoutTextSize=zt["text-size"].possiblyEvaluate(new bd(d.zoom+1),Ie),ln.layoutIconSize=zt["icon-size"].possiblyEvaluate(new bd(d.zoom+1),Ie),ln.textMaxSize=zt["text-size"].possiblyEvaluate(new bd(18));for(var Do=24*Je.get("text-line-height"),Co=Je.get("text-rotation-alignment")==="map"&&Je.get("symbol-placement")!=="point",Uo=Je.get("text-keep-upright"),Mo=Je.get("text-size"),oo=function(){var cl=Ta[Vs],ou=Je.get("text-font").evaluate(cl,{},Ie).join(","),Tu=Mo.evaluate(cl,{},Ie),Cu=ln.layoutTextSize.evaluate(cl,{},Ie),Hc=ln.layoutIconSize.evaluate(cl,{},Ie),bu={horizontal:{},vertical:void 0},Dc=cl.text,Sn=[0,0];if(Dc){var rr=Dc.toString(),Dr=24*Je.get("text-letter-spacing").evaluate(cl,{},Ie),ni=function(Pl){for(var qd=0,dd=Pl;qd=8192||eh.y<0||eh.y>=8192||function(oc,Xh,Ad,hf,Qd,nd,$f,Tf,np,Ip,Eg,nm,b0,o0,sg,Fg,Yv,xv,Tg,h0,Bg,Um,hp,wv,Lv){var oy,d0,o1,bm,Z0,sy=oc.addToLineVertexArray(Xh,Ad),Zv=0,t_=0,ho=0,s1=0,ov=-1,qv=-1,x0={},n_=Vo(""),xy=0,Jv=0;if(Tf._unevaluatedLayout.getValue("text-radial-offset")===void 0?(xy=(oy=Tf.layout.get("text-offset").evaluate(Bg,{},wv).map(function(G0){return 24*G0}))[0],Jv=oy[1]):(xy=24*Tf.layout.get("text-radial-offset").evaluate(Bg,{},wv),Jv=Xo),oc.allowVerticalPlacement&&hf.vertical){var Xm=Tf.layout.get("text-rotate").evaluate(Bg,{},wv)+90;bm=new Fr(np,Xh,Ip,Eg,nm,hf.vertical,b0,o0,sg,Xm),$f&&(Z0=new Fr(np,Xh,Ip,Eg,nm,$f,Yv,xv,sg,Xm))}if(Qd){var Q0=Tf.layout.get("icon-rotate").evaluate(Bg,{}),Pv=Tf.layout.get("icon-text-fit")!=="none",pv=Fu(Qd,Q0,hp,Pv),H0=$f?Fu($f,Q0,hp,Pv):void 0;o1=new Fr(np,Xh,Ip,Eg,nm,Qd,Yv,xv,!1,Q0),Zv=4*pv.length;var P0=oc.iconSizeData,Hv=null;P0.kind==="source"?(Hv=[128*Tf.layout.get("icon-size").evaluate(Bg,{})])[0]>32640&&Pe(oc.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):P0.kind==="composite"&&((Hv=[128*Um.compositeIconSizes[0].evaluate(Bg,{},wv),128*Um.compositeIconSizes[1].evaluate(Bg,{},wv)])[0]>32640||Hv[1]>32640)&&Pe(oc.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),oc.addSymbols(oc.icon,pv,Hv,h0,Tg,Bg,!1,Xh,sy.lineStartIndex,sy.lineLength,-1,wv),ov=oc.icon.placedSymbolArray.length-1,H0&&(t_=4*H0.length,oc.addSymbols(oc.icon,H0,Hv,h0,Tg,Bg,ru.vertical,Xh,sy.lineStartIndex,sy.lineLength,-1,wv),qv=oc.icon.placedSymbolArray.length-1)}for(var I_ in hf.horizontal){var y1=hf.horizontal[I_];if(!d0){n_=Vo(y1.text);var Nv=Tf.layout.get("text-rotate").evaluate(Bg,{},wv);d0=new Fr(np,Xh,Ip,Eg,nm,y1,b0,o0,sg,Nv)}var kv=y1.positionedLines.length===1;if(ho+=sl(oc,Xh,y1,nd,Tf,sg,Bg,Fg,sy,hf.vertical?ru.horizontal:ru.horizontalOnly,kv?Object.keys(hf.horizontal):[I_],x0,ov,Um,wv),kv)break}hf.vertical&&(s1+=sl(oc,Xh,hf.vertical,nd,Tf,sg,Bg,Fg,sy,ru.vertical,["vertical"],x0,qv,Um,wv));var _1=d0?d0.boxStartIndex:oc.collisionBoxArray.length,a1=d0?d0.boxEndIndex:oc.collisionBoxArray.length,Fv=bm?bm.boxStartIndex:oc.collisionBoxArray.length,Z1=bm?bm.boxEndIndex:oc.collisionBoxArray.length,L_=o1?o1.boxStartIndex:oc.collisionBoxArray.length,Cv=o1?o1.boxEndIndex:oc.collisionBoxArray.length,r_=Z0?Z0.boxStartIndex:oc.collisionBoxArray.length,P_=Z0?Z0.boxEndIndex:oc.collisionBoxArray.length,l1=-1,i_=function(G0,ob){return G0&&G0.circleDiameter?Math.max(G0.circleDiameter,ob):ob};l1=i_(d0,l1),l1=i_(bm,l1),l1=i_(o1,l1);var $b=(l1=i_(Z0,l1))>-1?1:0;$b&&(l1*=Lv/24),oc.glyphOffsetArray.length>=Qo.MAX_GLYPHS&&Pe("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Bg.sortKey!==void 0&&oc.addToSortKeyRanges(oc.symbolInstances.length,Bg.sortKey),oc.symbolInstances.emplaceBack(Xh.x,Xh.y,x0.right>=0?x0.right:-1,x0.center>=0?x0.center:-1,x0.left>=0?x0.left:-1,x0.vertical||-1,ov,qv,n_,_1,a1,Fv,Z1,L_,Cv,r_,P_,Ip,ho,s1,Zv,t_,$b,0,b0,xy,Jv,l1)}(Pl,eh,xu,dd,mf,rg,ee,Pl.layers[0],Pl.collisionBoxArray,qd.index,qd.sourceLayerIndex,Pl.index,Ut,_i,qo,Yd,lr,po,pa,Ue,qd,cf,Rd,H,Ql)};if(Pa==="line")for(var Ul=0,mu=bl(qd.geometry,0,0,8192,8192);Ul1){var _d=oa(Jd,Yo,dd.vertical||gt,mf,24,bn);_d&&ll(Jd,_d)}}else if(qd.type==="Polygon")for(var dh=0,wf=kt(qd.geometry,0);dh=ls.maxzoom||ls.visibility!=="none"&&(S(yo,this.zoom,wn),(Yt[ls.id]=ls.createBucket({index:jt.bucketLayerIDs.length,layers:yo,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ei,sourceID:this.source})).populate(Yi,xn,this.tileID.canonical),jt.bucketLayerIDs.push(yo.map(function(Po){return Po.id})))}}}var Sr=C.mapObject(xn.glyphDependencies,function(Po){return Object.keys(Po).map(Number)});Object.keys(Sr).length?Zn.send("getGlyphs",{uid:this.uid,stacks:Sr},function(Po,mo){In||(In=Po,vr=mo,fi.call(qn))}):vr={};var hs=Object.keys(xn.iconDependencies);hs.length?Zn.send("getImages",{icons:hs,source:this.source,tileID:this.tileID,type:"icons"},function(Po,mo){In||(In=Po,Ur=mo,fi.call(qn))}):Ur={};var ta=Object.keys(xn.patternDependencies);function fi(){if(In)return _r(In);if(vr&&Ur&&Ao){var Po=new R(vr),mo=new C.ImageAtlas(Ur,Ao);for(var or in Yt){var Oi=Yt[or];Oi instanceof C.SymbolBucket?(S(Oi.layers,this.zoom,wn),C.performSymbolLayout(Oi,vr,Po.positions,Ur,mo.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Oi.hasPattern&&(Oi instanceof C.LineBucket||Oi instanceof C.FillBucket||Oi instanceof C.FillExtrusionBucket)&&(S(Oi.layers,this.zoom,wn),Oi.addFeatures(xn,this.tileID.canonical,mo.patternPositions))}this.status="done",_r(null,{buckets:C.values(Yt).filter(function(Wa){return!Wa.isEmpty()}),featureIndex:jt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Po.image,imageAtlas:mo,glyphMap:this.returnDependencies?vr:null,iconMap:this.returnDependencies?Ur:null,glyphPositions:this.returnDependencies?Po.positions:null})}}ta.length?Zn.send("getImages",{icons:ta,source:this.source,tileID:this.tileID,type:"patterns"},function(Po,mo){In||(In=Po,Ao=mo,fi.call(qn))}):Ao={},fi.call(this)};var T=function($t,Gt,wn,Zn){this.actor=$t,this.layerIndex=Gt,this.availableImages=wn,this.loadVectorData=Zn||p,this.loading={},this.loaded={}};T.prototype.loadTile=function($t,Gt){var wn=this,Zn=$t.uid;this.loading||(this.loading={});var _r=!!($t&&$t.request&&$t.request.collectResourceTiming)&&new C.RequestPerformance($t.request),qn=this.loading[Zn]=new k($t);qn.abort=this.loadVectorData($t,function($n,jt){if(delete wn.loading[Zn],$n||!jt)return qn.status="done",wn.loaded[Zn]=qn,Gt($n);var In=jt.rawData,vr={};jt.expires&&(vr.expires=jt.expires),jt.cacheControl&&(vr.cacheControl=jt.cacheControl);var Ur={};if(_r){var Ao=_r.finish();Ao&&(Ur.resourceTiming=JSON.parse(JSON.stringify(Ao)))}qn.vectorTile=jt.vectorTile,qn.parse(jt.vectorTile,wn.layerIndex,wn.availableImages,wn.actor,function(Yt,xn){if(Yt||!xn)return Gt(Yt);Gt(null,C.extend({rawTileData:In.slice(0)},xn,vr,Ur))}),wn.loaded=wn.loaded||{},wn.loaded[Zn]=qn})},T.prototype.reloadTile=function($t,Gt){var wn=this,Zn=this.loaded,_r=$t.uid,qn=this;if(Zn&&Zn[_r]){var $n=Zn[_r];$n.showCollisionBoxes=$t.showCollisionBoxes;var jt=function(In,vr){var Ur=$n.reloadCallback;Ur&&(delete $n.reloadCallback,$n.parse($n.vectorTile,qn.layerIndex,wn.availableImages,qn.actor,Ur)),Gt(In,vr)};$n.status==="parsing"?$n.reloadCallback=jt:$n.status==="done"&&($n.vectorTile?$n.parse($n.vectorTile,this.layerIndex,this.availableImages,this.actor,jt):jt())}},T.prototype.abortTile=function($t,Gt){var wn=this.loading,Zn=$t.uid;wn&&wn[Zn]&&wn[Zn].abort&&(wn[Zn].abort(),delete wn[Zn]),Gt()},T.prototype.removeTile=function($t,Gt){var wn=this.loaded,Zn=$t.uid;wn&&wn[Zn]&&delete wn[Zn],Gt()};var F=C.window.ImageBitmap,K=function(){this.loaded={}};function he($t,Gt){if($t.length!==0){fe($t[0],Gt);for(var wn=1;wn<$t.length;wn++)fe($t[wn],!Gt)}}function fe($t,Gt){for(var wn=0,Zn=0,_r=0,qn=$t.length,$n=qn-1;_r=Math.abs(jt)?wn-In+jt:jt-In+wn,wn=In}wn+Zn>=0!=!!Gt&&$t.reverse()}K.prototype.loadTile=function($t,Gt){var wn=$t.uid,Zn=$t.encoding,_r=$t.rawImageData,qn=F&&_r instanceof F?this.getImageData(_r):_r,$n=new C.DEMData(wn,qn,Zn);this.loaded=this.loaded||{},this.loaded[wn]=$n,Gt(null,$n)},K.prototype.getImageData=function($t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas($t.width,$t.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=$t.width,this.offscreenCanvas.height=$t.height,this.offscreenCanvasContext.drawImage($t,0,0,$t.width,$t.height);var Gt=this.offscreenCanvasContext.getImageData(-1,-1,$t.width+2,$t.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new C.RGBAImage({width:Gt.width,height:Gt.height},Gt.data)},K.prototype.removeTile=function($t){var Gt=this.loaded,wn=$t.uid;Gt&&Gt[wn]&&delete Gt[wn]};var be=C.vectorTile.VectorTileFeature.prototype.toGeoJSON,Ae=function($t){this._feature=$t,this.extent=C.EXTENT,this.type=$t.type,this.properties=$t.tags,"id"in $t&&!isNaN($t.id)&&(this.id=parseInt($t.id,10))};Ae.prototype.loadGeometry=function(){if(this._feature.type===1){for(var $t=[],Gt=0,wn=this._feature.geometry;Gt>31}function Ne($t,Gt){for(var wn=$t.loadGeometry(),Zn=$t.type,_r=0,qn=0,$n=wn.length,jt=0;jt<$n;jt++){var In=wn[jt],vr=1;Zn===1&&(vr=In.length),Gt.writeVarint(Ce(1,vr));for(var Ur=Zn===3?In.length-1:In.length,Ao=0;Ao>1;(function Ei(Yi,di,Wr,Ni,kr,Xr){for(;kr>Ni;){if(kr-Ni>600){var yo=kr-Ni+1,ls=Wr-Ni+1,Sr=Math.log(yo),hs=.5*Math.exp(2*Sr/3),ta=.5*Math.sqrt(Sr*hs*(yo-hs)/yo)*(ls-yo/2<0?-1:1);Ei(Yi,di,Wr,Math.max(Ni,Math.floor(Wr-ls*hs/yo+ta)),Math.min(kr,Math.floor(Wr+(yo-ls)*hs/yo+ta)),Xr)}var fi=di[2*Wr+Xr],Po=Ni,mo=kr;for(Ft(Yi,di,Ni,Wr),di[2*kr+Xr]>fi&&Ft(Yi,di,Ni,kr);Pofi;)mo--}di[2*Ni+Xr]===fi?Ft(Yi,di,Ni,mo):Ft(Yi,di,++mo,kr),mo<=Wr&&(Ni=mo+1),Wr<=mo&&(kr=mo-1)}})(Ur,Ao,bi,xn,fr,Nr%2),vr(Ur,Ao,Yt,xn,bi-1,Nr+1),vr(Ur,Ao,Yt,bi+1,fr,Nr+1)}})($n,jt,Zn,0,$n.length-1,0)};Tt.prototype.range=function($t,Gt,wn,Zn){return function(_r,qn,$n,jt,In,vr,Ur){for(var Ao,Yt,xn=[0,_r.length-1,0],fr=[];xn.length;){var Nr=xn.pop(),bi=xn.pop(),Ei=xn.pop();if(bi-Ei<=Ur)for(var Yi=Ei;Yi<=bi;Yi++)Yt=qn[2*Yi+1],(Ao=qn[2*Yi])>=$n&&Ao<=In&&Yt>=jt&&Yt<=vr&&fr.push(_r[Yi]);else{var di=Math.floor((Ei+bi)/2);Yt=qn[2*di+1],(Ao=qn[2*di])>=$n&&Ao<=In&&Yt>=jt&&Yt<=vr&&fr.push(_r[di]);var Wr=(Nr+1)%2;(Nr===0?$n<=Ao:jt<=Yt)&&(xn.push(Ei),xn.push(di-1),xn.push(Wr)),(Nr===0?In>=Ao:vr>=Yt)&&(xn.push(di+1),xn.push(bi),xn.push(Wr))}}return fr}(this.ids,this.coords,$t,Gt,wn,Zn,this.nodeSize)},Tt.prototype.within=function($t,Gt,wn){return function(Zn,_r,qn,$n,jt,In){for(var vr=[0,Zn.length-1,0],Ur=[],Ao=jt*jt;vr.length;){var Yt=vr.pop(),xn=vr.pop(),fr=vr.pop();if(xn-fr<=In)for(var Nr=fr;Nr<=xn;Nr++)Bt(_r[2*Nr],_r[2*Nr+1],qn,$n)<=Ao&&Ur.push(Zn[Nr]);else{var bi=Math.floor((fr+xn)/2),Ei=_r[2*bi],Yi=_r[2*bi+1];Bt(Ei,Yi,qn,$n)<=Ao&&Ur.push(Zn[bi]);var di=(Yt+1)%2;(Yt===0?qn-jt<=Ei:$n-jt<=Yi)&&(vr.push(fr),vr.push(bi-1),vr.push(di)),(Yt===0?qn+jt>=Ei:$n+jt>=Yi)&&(vr.push(bi+1),vr.push(xn),vr.push(di))}}return Ur}(this.ids,this.coords,$t,Gt,wn,this.nodeSize)};var Nn={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function($t){return $t}},mn=function($t){this.options=To(Object.create(Nn),$t),this.trees=new Array(this.options.maxZoom+1)};function zn($t,Gt,wn,Zn,_r){return{x:$t,y:Gt,zoom:1/0,id:wn,parentId:-1,numPoints:Zn,properties:_r}}function Kr($t,Gt){var wn=$t.geometry.coordinates,Zn=wn[1];return{x:gi(wn[0]),y:Mr(Zn),zoom:1/0,index:Gt,parentId:-1}}function Ui($t){return{type:"Feature",id:$t.id,properties:go($t),geometry:{type:"Point",coordinates:[(Zn=$t.x,360*(Zn-.5)),(Gt=$t.y,wn=(180-360*Gt)*Math.PI/180,360*Math.atan(Math.exp(wn))/Math.PI-90)]}};var Gt,wn,Zn}function go($t){var Gt=$t.numPoints,wn=Gt>=1e4?Math.round(Gt/1e3)+"k":Gt>=1e3?Math.round(Gt/100)/10+"k":Gt;return To(To({},$t.properties),{cluster:!0,cluster_id:$t.id,point_count:Gt,point_count_abbreviated:wn})}function gi($t){return $t/360+.5}function Mr($t){var Gt=Math.sin($t*Math.PI/180),wn=.5-.25*Math.log((1+Gt)/(1-Gt))/Math.PI;return wn<0?0:wn>1?1:wn}function To($t,Gt){for(var wn in Gt)$t[wn]=Gt[wn];return $t}function ms($t){return $t.x}function De($t){return $t.y}function Oo($t,Gt,wn,Zn,_r,qn){var $n=_r-wn,jt=qn-Zn;if($n!==0||jt!==0){var In=(($t-wn)*$n+(Gt-Zn)*jt)/($n*$n+jt*jt);In>1?(wn=_r,Zn=qn):In>0&&(wn+=$n*In,Zn+=jt*In)}return($n=$t-wn)*$n+(jt=Gt-Zn)*jt}function $i($t,Gt,wn,Zn){var _r={id:$t===void 0?null:$t,type:Gt,geometry:wn,tags:Zn,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(qn){var $n=qn.geometry,jt=qn.type;if(jt==="Point"||jt==="MultiPoint"||jt==="LineString")co(qn,$n);else if(jt==="Polygon"||jt==="MultiLineString")for(var In=0;In<$n.length;In++)co(qn,$n[In]);else if(jt==="MultiPolygon")for(In=0;In<$n.length;In++)for(var vr=0;vr<$n[In].length;vr++)co(qn,$n[In][vr])}(_r),_r}function co($t,Gt){for(var wn=0;wn0&&($n+=Zn?(_r*vr-In*qn)/2:Math.sqrt(Math.pow(In-_r,2)+Math.pow(vr-qn,2))),_r=In,qn=vr}var Ur=Gt.length-3;Gt[2]=1,function Ao(Yt,xn,fr,Nr){for(var bi,Ei=Nr,Yi=fr-xn>>1,di=fr-xn,Wr=Yt[xn],Ni=Yt[xn+1],kr=Yt[fr],Xr=Yt[fr+1],yo=xn+3;yoEi)bi=yo,Ei=ls;else if(ls===Ei){var Sr=Math.abs(yo-Yi);SrNr&&(bi-xn>3&&Ao(Yt,xn,bi,Nr),Yt[bi+2]=Ei,fr-bi>3&&Ao(Yt,bi,fr,Nr))}(Gt,0,Ur,wn),Gt[Ur+2]=1,Gt.size=Math.abs($n),Gt.start=0,Gt.end=Gt.size}function nt($t,Gt,wn,Zn){for(var _r=0;_r<$t.length;_r++){var qn=[];Tn($t[_r],qn,wn,Zn),Gt.push(qn)}}function Ct($t){return $t/360+.5}function Ht($t){var Gt=Math.sin($t*Math.PI/180),wn=.5-.25*Math.log((1+Gt)/(1-Gt))/Math.PI;return wn<0?0:wn>1?1:wn}function hn($t,Gt,wn,Zn,_r,qn,$n,jt){if(Zn/=Gt,qn>=(wn/=Gt)&&$n=Zn)return null;for(var In=[],vr=0;vr<$t.length;vr++){var Ur=$t[vr],Ao=Ur.geometry,Yt=Ur.type,xn=_r===0?Ur.minX:Ur.minY,fr=_r===0?Ur.maxX:Ur.maxY;if(xn>=wn&&fr=Zn)){var Nr=[];if(Yt==="Point"||Yt==="MultiPoint")En(Ao,Nr,wn,Zn,_r);else if(Yt==="LineString")rn(Ao,Nr,wn,Zn,_r,!1,jt.lineMetrics);else if(Yt==="MultiLineString")Mt(Ao,Nr,wn,Zn,_r,!1);else if(Yt==="Polygon")Mt(Ao,Nr,wn,Zn,_r,!0);else if(Yt==="MultiPolygon")for(var bi=0;bi=wn&&$n<=Zn&&(Gt.push($t[qn]),Gt.push($t[qn+1]),Gt.push($t[qn+2]))}}function rn($t,Gt,wn,Zn,_r,qn,$n){for(var jt,In,vr=Jt($t),Ur=_r===0?Dn:sn,Ao=$t.start,Yt=0;Yt<$t.length-3;Yt+=3){var xn=$t[Yt],fr=$t[Yt+1],Nr=$t[Yt+2],bi=$t[Yt+3],Ei=$t[Yt+4],Yi=_r===0?xn:fr,di=_r===0?bi:Ei,Wr=!1;$n&&(jt=Math.sqrt(Math.pow(xn-bi,2)+Math.pow(fr-Ei,2))),Yiwn&&(In=Ur(vr,xn,fr,bi,Ei,wn),$n&&(vr.start=Ao+jt*In)):Yi>Zn?di=wn&&(In=Ur(vr,xn,fr,bi,Ei,wn),Wr=!0),di>Zn&&Yi<=Zn&&(In=Ur(vr,xn,fr,bi,Ei,Zn),Wr=!0),!qn&&Wr&&($n&&(vr.end=Ao+jt*In),Gt.push(vr),vr=Jt($t)),$n&&(Ao+=jt)}var Ni=$t.length-3;xn=$t[Ni],fr=$t[Ni+1],Nr=$t[Ni+2],(Yi=_r===0?xn:fr)>=wn&&Yi<=Zn&&Qt(vr,xn,fr,Nr),Ni=vr.length-3,qn&&Ni>=3&&(vr[Ni]!==vr[0]||vr[Ni+1]!==vr[1])&&Qt(vr,vr[0],vr[1],vr[2]),vr.length&&Gt.push(vr)}function Jt($t){var Gt=[];return Gt.size=$t.size,Gt.start=$t.start,Gt.end=$t.end,Gt}function Mt($t,Gt,wn,Zn,_r,qn){for(var $n=0;$n<$t.length;$n++)rn($t[$n],Gt,wn,Zn,_r,qn,!1)}function Qt($t,Gt,wn,Zn){$t.push(Gt),$t.push(wn),$t.push(Zn)}function Dn($t,Gt,wn,Zn,_r,qn){var $n=(qn-Gt)/(Zn-Gt);return $t.push(qn),$t.push(wn+(_r-wn)*$n),$t.push(1),$n}function sn($t,Gt,wn,Zn,_r,qn){var $n=(qn-wn)/(_r-wn);return $t.push(Gt+(Zn-Gt)*$n),$t.push(qn),$t.push(1),$n}function wr($t,Gt){for(var wn=[],Zn=0;Zn<$t.length;Zn++){var _r,qn=$t[Zn],$n=qn.type;if($n==="Point"||$n==="MultiPoint"||$n==="LineString")_r=jr(qn.geometry,Gt);else if($n==="MultiLineString"||$n==="Polygon"){_r=[];for(var jt=0;jt$n.maxX&&($n.maxX=Ur),Ao>$n.maxY&&($n.maxY=Ao)}return $n}function Io($t,Gt,wn,Zn){var _r=Gt.geometry,qn=Gt.type,$n=[];if(qn==="Point"||qn==="MultiPoint")for(var jt=0;jt<_r.length;jt+=3)$n.push(_r[jt]),$n.push(_r[jt+1]),$t.numPoints++,$t.numSimplified++;else if(qn==="LineString")On($n,_r,$t,wn,!1,!1);else if(qn==="MultiLineString"||qn==="Polygon")for(jt=0;jt<_r.length;jt++)On($n,_r[jt],$t,wn,qn==="Polygon",jt===0);else if(qn==="MultiPolygon")for(var In=0;In<_r.length;In++){var vr=_r[In];for(jt=0;jt0&&Gt.size<(_r?$n:Zn))wn.numPoints+=Gt.length/3;else{for(var jt=[],In=0;In$n)&&(wn.numSimplified++,jt.push(Gt[In]),jt.push(Gt[In+1])),wn.numPoints++;_r&&function(vr,Ur){for(var Ao=0,Yt=0,xn=vr.length,fr=xn-2;Yt0===Ur)for(Yt=0,xn=vr.length;Yt24)throw new Error("maxZoom should be in the 0-24 range");if(Gt.promoteId&&Gt.generateId)throw new Error("promoteId and generateId cannot be used together.");var Zn=function(_r,qn){var $n=[];if(_r.type==="FeatureCollection")for(var jt=0;jt<_r.features.length;jt++)Vr($n,_r.features[jt],qn,jt);else Vr($n,_r.type==="Feature"?_r:{geometry:_r},qn);return $n}($t,Gt);this.tiles={},this.tileCoords=[],wn&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",Gt.indexMaxZoom,Gt.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(Zn=function(_r,qn){var $n=qn.buffer/qn.extent,jt=_r,In=hn(_r,1,-1-$n,$n,0,-1,2,qn),vr=hn(_r,1,1-$n,2+$n,0,-1,2,qn);return(In||vr)&&(jt=hn(_r,1,-$n,1+$n,0,-1,2,qn)||[],In&&(jt=wr(In,1).concat(jt)),vr&&(jt=jt.concat(wr(vr,-1)))),jt}(Zn,Gt)).length&&this.splitTile(Zn,0,0,0),wn&&(Zn.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)))}function qr($t,Gt,wn){return 32*((1<<$t)*wn+Gt)+$t}function Wi($t,Gt){var wn=$t.tileID.canonical;if(!this._geoJSONIndex)return Gt(null,null);var Zn=this._geoJSONIndex.getTile(wn.z,wn.x,wn.y);if(!Zn)return Gt(null,null);var _r=new xe(Zn.features),qn=Me(_r);qn.byteOffset===0&&qn.byteLength===qn.buffer.byteLength||(qn=new Uint8Array(qn)),Gt(null,{vectorTile:_r,rawData:qn.buffer})}mn.prototype.load=function($t){var Gt=this.options,wn=Gt.log,Zn=Gt.minZoom,_r=Gt.maxZoom,qn=Gt.nodeSize;wn&&console.time("total time");var $n="prepare "+$t.length+" points";wn&&console.time($n),this.points=$t;for(var jt=[],In=0;In<$t.length;In++)$t[In].geometry&&jt.push(Kr($t[In],In));this.trees[_r+1]=new Tt(jt,ms,De,qn,Float32Array),wn&&console.timeEnd($n);for(var vr=_r;vr>=Zn;vr--){var Ur=+Date.now();jt=this._cluster(jt,vr),this.trees[vr]=new Tt(jt,ms,De,qn,Float32Array),wn&&console.log("z%d: %d clusters in %dms",vr,jt.length,+Date.now()-Ur)}return wn&&console.timeEnd("total time"),this},mn.prototype.getClusters=function($t,Gt){var wn=(($t[0]+180)%360+360)%360-180,Zn=Math.max(-90,Math.min(90,$t[1])),_r=$t[2]===180?180:(($t[2]+180)%360+360)%360-180,qn=Math.max(-90,Math.min(90,$t[3]));if($t[2]-$t[0]>=360)wn=-180,_r=180;else if(wn>_r){var $n=this.getClusters([wn,Zn,180,qn],Gt),jt=this.getClusters([-180,Zn,_r,qn],Gt);return $n.concat(jt)}for(var In=this.trees[this._limitZoom(Gt)],vr=[],Ur=0,Ao=In.range(gi(wn),Mr(qn),gi(_r),Mr(Zn));UrGt&&(Yt+=Nr.numPoints||1)}if(Yt>=qn){for(var bi=In.x*Ao,Ei=In.y*Ao,Yi=_r&&Ao>1?this._map(In,!0):null,di=(jt<<5)+(Gt+1)+this.points.length,Wr=0,Ni=Ur;Wr1)for(var yo=0,ls=Ur;yo>5},mn.prototype._getOriginZoom=function($t){return($t-this.points.length)%32},mn.prototype._map=function($t,Gt){if($t.numPoints)return Gt?To({},$t.properties):$t.properties;var wn=this.points[$t.index].properties,Zn=this.options.map(wn);return Gt&&Zn===wn?To({},Zn):Zn},zr.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},zr.prototype.splitTile=function($t,Gt,wn,Zn,_r,qn,$n){for(var jt=[$t,Gt,wn,Zn],In=this.options,vr=In.debug;jt.length;){Zn=jt.pop(),wn=jt.pop(),Gt=jt.pop(),$t=jt.pop();var Ur=1<1&&console.time("creation"),Yt=this.tiles[Ao]=Hi($t,Gt,wn,Zn,In),this.tileCoords.push({z:Gt,x:wn,y:Zn}),vr)){vr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Gt,wn,Zn,Yt.numFeatures,Yt.numPoints,Yt.numSimplified),console.timeEnd("creation"));var xn="z"+Gt;this.stats[xn]=(this.stats[xn]||0)+1,this.total++}if(Yt.source=$t,_r){if(Gt===In.maxZoom||Gt===_r)continue;var fr=1<<_r-Gt;if(wn!==Math.floor(qn/fr)||Zn!==Math.floor($n/fr))continue}else if(Gt===In.indexMaxZoom||Yt.numPoints<=In.indexMaxPoints)continue;if(Yt.source=null,$t.length!==0){vr>1&&console.time("clipping");var Nr,bi,Ei,Yi,di,Wr,Ni=.5*In.buffer/In.extent,kr=.5-Ni,Xr=.5+Ni,yo=1+Ni;Nr=bi=Ei=Yi=null,di=hn($t,Ur,wn-Ni,wn+Xr,0,Yt.minX,Yt.maxX,In),Wr=hn($t,Ur,wn+kr,wn+yo,0,Yt.minX,Yt.maxX,In),$t=null,di&&(Nr=hn(di,Ur,Zn-Ni,Zn+Xr,1,Yt.minY,Yt.maxY,In),bi=hn(di,Ur,Zn+kr,Zn+yo,1,Yt.minY,Yt.maxY,In),di=null),Wr&&(Ei=hn(Wr,Ur,Zn-Ni,Zn+Xr,1,Yt.minY,Yt.maxY,In),Yi=hn(Wr,Ur,Zn+kr,Zn+yo,1,Yt.minY,Yt.maxY,In),Wr=null),vr>1&&console.timeEnd("clipping"),jt.push(Nr||[],Gt+1,2*wn,2*Zn),jt.push(bi||[],Gt+1,2*wn,2*Zn+1),jt.push(Ei||[],Gt+1,2*wn+1,2*Zn),jt.push(Yi||[],Gt+1,2*wn+1,2*Zn+1)}}},zr.prototype.getTile=function($t,Gt,wn){var Zn=this.options,_r=Zn.extent,qn=Zn.debug;if($t<0||$t>24)return null;var $n=1<<$t,jt=qr($t,Gt=(Gt%$n+$n)%$n,wn);if(this.tiles[jt])return xi(this.tiles[jt],_r);qn>1&&console.log("drilling down to z%d-%d-%d",$t,Gt,wn);for(var In,vr=$t,Ur=Gt,Ao=wn;!In&&vr>0;)vr--,Ur=Math.floor(Ur/2),Ao=Math.floor(Ao/2),In=this.tiles[qr(vr,Ur,Ao)];return In&&In.source?(qn>1&&console.log("found parent tile z%d-%d-%d",vr,Ur,Ao),qn>1&&console.time("drilling down"),this.splitTile(In.source,vr,Ur,Ao,$t,Gt,wn),qn>1&&console.timeEnd("drilling down"),this.tiles[jt]?xi(this.tiles[jt],_r):null):null};var ir=function($t){function Gt(wn,Zn,_r,qn){$t.call(this,wn,Zn,_r,Wi),qn&&(this.loadGeoJSON=qn)}return $t&&(Gt.__proto__=$t),(Gt.prototype=Object.create($t&&$t.prototype)).constructor=Gt,Gt.prototype.loadData=function(wn,Zn){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=Zn,this._pendingLoadDataParams=wn,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},Gt.prototype._loadData=function(){var wn=this;if(this._pendingCallback&&this._pendingLoadDataParams){var Zn=this._pendingCallback,_r=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var qn=!!(_r&&_r.request&&_r.request.collectResourceTiming)&&new C.RequestPerformance(_r.request);this.loadGeoJSON(_r,function($n,jt){if($n||!jt)return Zn($n);if(typeof jt!="object")return Zn(new Error("Input data given to '"+_r.source+"' is not a valid GeoJSON object."));(function Yt(xn,fr){var Nr,bi=xn&&xn.type;if(bi==="FeatureCollection")for(Nr=0;Nr=0?0:G.button},N.remove=function(G){G.parentNode&&G.parentNode.removeChild(G)};var fe=function(G){function te(){G.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new C.RGBAImage({width:1,height:1}),this.dirty=!0}return G&&(te.__proto__=G),(te.prototype=Object.create(G&&G.prototype)).constructor=te,te.prototype.isLoaded=function(){return this.loaded},te.prototype.setLoaded=function(ne){if(this.loaded!==ne&&(this.loaded=ne,ne)){for(var ce=0,Ze=this.requestors;ce=0?1.2:1))}function it(G,te,ne,ce,Ze,vt,Pt){for(var gn=0;gn65535)dr(new Error("glyphs > 65535 not supported"));else if(Si.ranges[Fo])dr(null,{stack:_n,id:ii,glyph:Vi});else{var Go=Si.requests[Fo];Go||(Go=Si.requests[Fo]=[],ft.loadGlyphRange(_n,Fo,ne.url,ne.requestManager,function(Fi,Vo){if(Vo){for(var zs in Vo)ne._doesCharSupportLocalGlyph(+zs)||(Si.glyphs[+zs]=Vo[+zs]);Si.ranges[Fo]=!0}for(var ja=0,Ba=Go;ja1&&(gn=G[++Pt]);var _n=Math.abs(dr-gn.left),ii=Math.abs(dr-gn.right),Si=Math.min(_n,ii),Vi=void 0,Fo=Ze/ne*(ce+1);if(gn.isDash){var Go=ce-Math.abs(Fo);Vi=Math.sqrt(Si*Si+Go*Go)}else Vi=ce-Math.sqrt(Si*Si+Fo*Fo);this.data[vt+dr]=Math.max(0,Math.min(255,Vi+128))}},Pe.prototype.addRegularDash=function(G){for(var te=G.length-1;te>=0;--te){var ne=G[te],ce=G[te+1];ne.zeroLength?G.splice(te,1):ce&&ce.isDash===ne.isDash&&(ce.left=ne.left,G.splice(te,1))}var Ze=G[0],vt=G[G.length-1];Ze.isDash===vt.isDash&&(Ze.left=vt.left-this.width,vt.right=Ze.right+this.width);for(var Pt=this.width*this.nextRow,gn=0,dr=G[gn],_n=0;_n1&&(dr=G[++gn]);var ii=Math.abs(_n-dr.left),Si=Math.abs(_n-dr.right),Vi=Math.min(ii,Si);this.data[Pt+_n]=Math.max(0,Math.min(255,(dr.isDash?Vi:-Vi)+128))}},Pe.prototype.addDash=function(G,te){var ne=te?7:0,ce=2*ne+1;if(this.nextRow+ce>this.height)return C.warnOnce("LineAtlas out of space"),null;for(var Ze=0,vt=0;vt=ne&&G.x=ce&&G.y0&&(_n[new C.OverscaledTileID(ne.overscaledZ,Pt,ce.z,vt,ce.y-1).key]={backfilled:!1},_n[new C.OverscaledTileID(ne.overscaledZ,ne.wrap,ce.z,ce.x,ce.y-1).key]={backfilled:!1},_n[new C.OverscaledTileID(ne.overscaledZ,dr,ce.z,gn,ce.y-1).key]={backfilled:!1}),ce.y+10&&(Ze.resourceTiming=ne._resourceTiming,ne._resourceTiming=[]),ne.fire(new C.Event("data",Ze))}})},te.prototype.onAdd=function(ne){this.map=ne,this.load()},te.prototype.setData=function(ne){var ce=this;return this._data=ne,this.fire(new C.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(Ze){if(Ze)ce.fire(new C.ErrorEvent(Ze));else{var vt={dataType:"source",sourceDataType:"content"};ce._collectResourceTiming&&ce._resourceTiming&&ce._resourceTiming.length>0&&(vt.resourceTiming=ce._resourceTiming,ce._resourceTiming=[]),ce.fire(new C.Event("data",vt))}}),this},te.prototype.getClusterExpansionZoom=function(ne,ce){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:ne,source:this.id},ce),this},te.prototype.getClusterChildren=function(ne,ce){return this.actor.send("geojson.getClusterChildren",{clusterId:ne,source:this.id},ce),this},te.prototype.getClusterLeaves=function(ne,ce,Ze,vt){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:ne,limit:ce,offset:Ze},vt),this},te.prototype._updateWorkerData=function(ne){var ce=this;this._loaded=!1;var Ze=C.extend({},this.workerOptions),vt=this._data;typeof vt=="string"?(Ze.request=this.map._requestManager.transformRequest(C.browser.resolveURL(vt),C.ResourceType.Source),Ze.request.collectResourceTiming=this._collectResourceTiming):Ze.data=JSON.stringify(vt),this.actor.send(this.type+".loadData",Ze,function(Pt,gn){ce._removed||gn&&gn.abandoned||(ce._loaded=!0,gn&&gn.resourceTiming&&gn.resourceTiming[ce.id]&&(ce._resourceTiming=gn.resourceTiming[ce.id].slice(0)),ce.actor.send(ce.type+".coalesce",{source:Ze.source},null),ne(Pt))})},te.prototype.loaded=function(){return this._loaded},te.prototype.loadTile=function(ne,ce){var Ze=this,vt=ne.actor?"reloadTile":"loadTile";ne.actor=this.actor,ne.request=this.actor.send(vt,{type:this.type,uid:ne.uid,tileID:ne.tileID,zoom:ne.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:C.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(Pt,gn){return delete ne.request,ne.unloadVectorData(),ne.aborted?ce(null):Pt?ce(Pt):(ne.loadVectorData(gn,Ze.map.painter,vt==="reloadTile"),ce(null))})},te.prototype.abortTile=function(ne){ne.request&&(ne.request.cancel(),delete ne.request),ne.aborted=!0},te.prototype.unloadTile=function(ne){ne.unloadVectorData(),this.actor.send("removeTile",{uid:ne.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 C.extend({},this._options,{type:this.type,data:this._data})},te.prototype.hasTransition=function(){return!1},te}(C.Evented),lt=C.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Bt=function(G){function te(ne,ce,Ze,vt){G.call(this),this.id=ne,this.dispatcher=Ze,this.coordinates=ce.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(vt),this.options=ce}return G&&(te.__proto__=G),(te.prototype=Object.create(G&&G.prototype)).constructor=te,te.prototype.load=function(ne,ce){var Ze=this;this._loaded=!1,this.fire(new C.Event("dataloading",{dataType:"source"})),this.url=this.options.url,C.getImage(this.map._requestManager.transformRequest(this.url,C.ResourceType.Image),function(vt,Pt){Ze._loaded=!0,vt?Ze.fire(new C.ErrorEvent(vt)):Pt&&(Ze.image=Pt,ne&&(Ze.coordinates=ne),ce&&ce(),Ze._finishLoading())})},te.prototype.loaded=function(){return this._loaded},te.prototype.updateImage=function(ne){var ce=this;return this.image&&ne.url?(this.options.url=ne.url,this.load(ne.coordinates,function(){ce.texture=null}),this):this},te.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new C.Event("data",{dataType:"source",sourceDataType:"metadata"})))},te.prototype.onAdd=function(ne){this.map=ne,this.load()},te.prototype.setCoordinates=function(ne){var ce=this;this.coordinates=ne;var Ze=ne.map(C.MercatorCoordinate.fromLngLat);this.tileID=function(Pt){for(var gn=1/0,dr=1/0,_n=-1/0,ii=-1/0,Si=0,Vi=Pt;Sice.end(0)?this.fire(new C.ErrorEvent(new C.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+ce.start(0)+" and "+ce.end(0)+"-second mark."))):this.video.currentTime=ne}},te.prototype.getVideo=function(){return this.video},te.prototype.onAdd=function(ne){this.map||(this.map=ne,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 ne=this.map.painter.context,ce=ne.gl;for(var Ze in this.boundsBuffer||(this.boundsBuffer=ne.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=C.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(ce.LINEAR,ce.CLAMP_TO_EDGE),ce.texSubImage2D(ce.TEXTURE_2D,0,0,0,ce.RGBA,ce.UNSIGNED_BYTE,this.video)):(this.texture=new C.Texture(ne,this.video,ce.RGBA),this.texture.bind(ce.LINEAR,ce.CLAMP_TO_EDGE)),this.tiles){var vt=this.tiles[Ze];vt.state!=="loaded"&&(vt.state="loaded",vt.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}(Bt),an=function(G){function te(ne,ce,Ze,vt){G.call(this,ne,ce,Ze,vt),ce.coordinates?Array.isArray(ce.coordinates)&&ce.coordinates.length===4&&!ce.coordinates.some(function(Pt){return!Array.isArray(Pt)||Pt.length!==2||Pt.some(function(gn){return typeof gn!="number"})})||this.fire(new C.ErrorEvent(new C.ValidationError("sources."+ne,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new C.ErrorEvent(new C.ValidationError("sources."+ne,null,'missing required property "coordinates"'))),ce.animate&&typeof ce.animate!="boolean"&&this.fire(new C.ErrorEvent(new C.ValidationError("sources."+ne,null,'optional "animate" property must be a boolean value'))),ce.canvas?typeof ce.canvas=="string"||ce.canvas instanceof C.window.HTMLCanvasElement||this.fire(new C.ErrorEvent(new C.ValidationError("sources."+ne,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 C.ErrorEvent(new C.ValidationError("sources."+ne,null,'missing required property "canvas"'))),this.options=ce,this.animate=ce.animate===void 0||ce.animate}return G&&(te.__proto__=G),(te.prototype=Object.create(G&&G.prototype)).constructor=te,te.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof C.window.HTMLCanvasElement?this.options.canvas:C.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new C.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(ne){this.map=ne,this.load(),this.canvas&&this.animate&&this.play()},te.prototype.onRemove=function(){this.pause()},te.prototype.prepare=function(){var ne=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,ne=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,ne=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var ce=this.map.painter.context,Ze=ce.gl;for(var vt in this.boundsBuffer||(this.boundsBuffer=ce.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=C.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(ne||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new C.Texture(ce,this.canvas,Ze.RGBA,{premultiply:!0}),this.tiles){var Pt=this.tiles[vt];Pt.state!=="loaded"&&(Pt.state="loaded",Pt.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 ne=0,ce=[this.canvas.width,this.canvas.height];nethis.max){var Pt=this._getAndRemoveByKey(this.order[0]);Pt&&this.onRemove(Pt)}return this},Kr.prototype.has=function(G){return G.wrapped().key in this.data},Kr.prototype.getAndRemove=function(G){return this.has(G)?this._getAndRemoveByKey(G.wrapped().key):null},Kr.prototype._getAndRemoveByKey=function(G){var te=this.data[G].shift();return te.timeout&&clearTimeout(te.timeout),this.data[G].length===0&&delete this.data[G],this.order.splice(this.order.indexOf(G),1),te.value},Kr.prototype.getByKey=function(G){var te=this.data[G];return te?te[0].value:null},Kr.prototype.get=function(G){return this.has(G)?this.data[G.wrapped().key][0].value:null},Kr.prototype.remove=function(G,te){if(!this.has(G))return this;var ne=G.wrapped().key,ce=te===void 0?0:this.data[ne].indexOf(te),Ze=this.data[ne][ce];return this.data[ne].splice(ce,1),Ze.timeout&&clearTimeout(Ze.timeout),this.data[ne].length===0&&delete this.data[ne],this.onRemove(Ze.value),this.order.splice(this.order.indexOf(ne),1),this},Kr.prototype.setMaxSize=function(G){for(this.max=G;this.order.length>this.max;){var te=this._getAndRemoveByKey(this.order[0]);te&&this.onRemove(te)}return this},Kr.prototype.filter=function(G){var te=[];for(var ne in this.data)for(var ce=0,Ze=this.data[ne];ce1||(Math.abs(ii)>1&&(Math.abs(ii+Vi)===1?ii+=Vi:Math.abs(ii-Vi)===1&&(ii-=Vi)),_n.dem&&dr.dem&&(dr.dem.backfillBorder(_n.dem,ii,Si),dr.neighboringTiles&&dr.neighboringTiles[Fo]&&(dr.neighboringTiles[Fo].backfilled=!0)))}},te.prototype.getTile=function(ne){return this.getTileByID(ne.key)},te.prototype.getTileByID=function(ne){return this._tiles[ne]},te.prototype._retainLoadedChildren=function(ne,ce,Ze,vt){for(var Pt in this._tiles){var gn=this._tiles[Pt];if(!(vt[Pt]||!gn.hasData()||gn.tileID.overscaledZ<=ce||gn.tileID.overscaledZ>Ze)){for(var dr=gn.tileID;gn&&gn.tileID.overscaledZ>ce+1;){var _n=gn.tileID.scaledTo(gn.tileID.overscaledZ-1);(gn=this._tiles[_n.key])&&gn.hasData()&&(dr=_n)}for(var ii=dr;ii.overscaledZ>ce;)if(ne[(ii=ii.scaledTo(ii.overscaledZ-1)).key]){vt[dr.key]=dr;break}}}},te.prototype.findLoadedParent=function(ne,ce){if(ne.key in this._loadedParentTiles){var Ze=this._loadedParentTiles[ne.key];return Ze&&Ze.tileID.overscaledZ>=ce?Ze:null}for(var vt=ne.overscaledZ-1;vt>=ce;vt--){var Pt=ne.scaledTo(vt),gn=this._getLoadedTile(Pt);if(gn)return gn}},te.prototype._getLoadedTile=function(ne){var ce=this._tiles[ne.key];return ce&&ce.hasData()?ce:this._cache.getByKey(ne.wrapped().key)},te.prototype.updateCacheSize=function(ne){var ce=Math.ceil(ne.width/this._source.tileSize)+1,Ze=Math.ceil(ne.height/this._source.tileSize)+1,vt=Math.floor(ce*Ze*5),Pt=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,vt):vt;this._cache.setMaxSize(Pt)},te.prototype.handleWrapJump=function(ne){var ce=Math.round((ne-(this._prevLng===void 0?ne:this._prevLng))/360);if(this._prevLng=ne,ce){var Ze={};for(var vt in this._tiles){var Pt=this._tiles[vt];Pt.tileID=Pt.tileID.unwrapTo(Pt.tileID.wrap+ce),Ze[Pt.tileID.key]=Pt}for(var gn in this._tiles=Ze,this._timers)clearTimeout(this._timers[gn]),delete this._timers[gn];for(var dr in this._tiles)this._setTileReloadTimer(dr,this._tiles[dr])}},te.prototype.update=function(ne){var ce=this;if(this.transform=ne,this._sourceLoaded&&!this._paused){var Ze;this.updateCacheSize(ne),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?Ze=ne.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Lu){return new C.OverscaledTileID(Lu.canonical.z,Lu.wrap,Lu.canonical.z,Lu.canonical.x,Lu.canonical.y)}):(Ze=ne.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(Ze=Ze.filter(function(Lu){return ce._source.hasTile(Lu)}))):Ze=[];var vt=ne.coveringZoomLevel(this._source),Pt=Math.max(vt-te.maxOverzooming,this._source.minzoom),gn=Math.max(vt+te.maxUnderzooming,this._source.minzoom),dr=this._updateRetainedTiles(Ze,vt);if(Ur(this._source.type)){for(var _n={},ii={},Si=0,Vi=Object.keys(dr);Sithis._source.maxzoom){var zs=Fi.children(this._source.maxzoom)[0],ja=this.getTile(zs);if(ja&&ja.hasData()){Ze[zs.key]=zs;continue}}else{var Ba=Fi.children(this._source.maxzoom);if(Ze[Ba[0].key]&&Ze[Ba[1].key]&&Ze[Ba[2].key]&&Ze[Ba[3].key])continue}for(var zl=Vo.wasRequested(),dl=Fi.overscaledZ-1;dl>=Pt;--dl){var lu=Fi.scaledTo(dl);if(vt[lu.key]||(vt[lu.key]=!0,!(Vo=this.getTile(lu))&&zl&&(Vo=this._addTile(lu)),Vo&&(Ze[lu.key]=lu,zl=Vo.wasRequested(),Vo.hasData())))break}}}return Ze},te.prototype._updateLoadedParentTileCache=function(){for(var ne in this._loadedParentTiles={},this._tiles){for(var ce=[],Ze=void 0,vt=this._tiles[ne].tileID;vt.overscaledZ>0;){if(vt.key in this._loadedParentTiles){Ze=this._loadedParentTiles[vt.key];break}ce.push(vt.key);var Pt=vt.scaledTo(vt.overscaledZ-1);if(Ze=this._getLoadedTile(Pt))break;vt=Pt}for(var gn=0,dr=ce;gn0||(ce.hasData()&&ce.state!=="reloading"?this._cache.add(ce.tileID,ce,ce.getExpiryTimeout()):(ce.aborted=!0,this._abortTile(ce),this._unloadTile(ce))))},te.prototype.clearTiles=function(){for(var ne in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(ne);this._cache.reset()},te.prototype.tilesIn=function(ne,ce,Ze){var vt=this,Pt=[],gn=this.transform;if(!gn)return Pt;for(var dr=Ze?gn.getCameraQueryGeometry(ne):ne,_n=ne.map(function(dl){return gn.pointCoordinate(dl)}),ii=dr.map(function(dl){return gn.pointCoordinate(dl)}),Si=this.getIds(),Vi=1/0,Fo=1/0,Go=-1/0,Fi=-1/0,Vo=0,zs=ii;Vo=0&&th[1].y+Zu>=0){var Qc=_n.map(function(Oh){return Lu.getTilePoint(Oh)}),Rh=ii.map(function(Oh){return Lu.getTilePoint(Oh)});Pt.push({tile:lu,tileID:Lu,queryGeometry:Qc,cameraQueryGeometry:Rh,scale:ec})}}},zl=0;zl=C.browser.now())return!0}return!1},te.prototype.setFeatureState=function(ne,ce,Ze){this._state.updateState(ne=ne||"_geojsonTileLayer",ce,Ze)},te.prototype.removeFeatureState=function(ne,ce,Ze){this._state.removeFeatureState(ne=ne||"_geojsonTileLayer",ce,Ze)},te.prototype.getFeatureState=function(ne,ce){return this._state.getState(ne=ne||"_geojsonTileLayer",ce)},te.prototype.setDependencies=function(ne,ce,Ze){var vt=this._tiles[ne];vt&&vt.setDependencies(ce,Ze)},te.prototype.reloadTilesForDependencies=function(ne,ce){for(var Ze in this._tiles)this._tiles[Ze].hasDependency(ne,ce)&&this._reloadTile(Ze,"reloading");this._cache.filter(function(vt){return!vt.hasDependency(ne,ce)})},te}(C.Evented);function vr(G,te){var ne=Math.abs(2*G.wrap)-+(G.wrap<0),ce=Math.abs(2*te.wrap)-+(te.wrap<0);return G.overscaledZ-te.overscaledZ||ce-ne||te.canonical.y-G.canonical.y||te.canonical.x-G.canonical.x}function Ur(G){return G==="raster"||G==="image"||G==="video"}function Ao(){return new C.window.Worker(xr.workerUrl)}In.maxOverzooming=10,In.maxUnderzooming=3;var Yt="mapboxgl_preloaded_worker_pool",xn=function(){this.active={}};xn.prototype.acquire=function(G){if(!this.workers)for(this.workers=[];this.workers.length0?(ce-vt)/Pt:0;return this.points[Ze].mult(1-gn).add(this.points[te].mult(gn))};var ta=function(G,te,ne){var ce=this.boxCells=[],Ze=this.circleCells=[];this.xCellCount=Math.ceil(G/ne),this.yCellCount=Math.ceil(te/ne);for(var vt=0;vt=-te[0]&&ne<=te[0]&&ce>=-te[1]&&ce<=te[1]}function Wa(G,te,ne,ce,Ze,vt,Pt,gn){var dr=ce?G.textSizeData:G.iconSizeData,_n=C.evaluateSizeForZoom(dr,ne.transform.zoom),ii=[256/ne.width*2+1,256/ne.height*2+1],Si=ce?G.text.dynamicLayoutVertexArray:G.icon.dynamicLayoutVertexArray;Si.clear();for(var Vi=G.lineVertexArray,Fo=ce?G.text.placedSymbolArray:G.icon.placedSymbolArray,Go=ne.transform.width/ne.transform.height,Fi=!1,Vo=0;VoMath.abs(ne.x-te.x)*ce?{useVertical:!0}:(G===C.WritingMode.vertical?te.yne.x)?{needsFlipping:!0}:null}function Ml(G,te,ne,ce,Ze,vt,Pt,gn,dr,_n,ii,Si,Vi,Fo){var Go,Fi=te/24,Vo=G.lineOffsetX*Fi,zs=G.lineOffsetY*Fi;if(G.numGlyphs>1){var ja=G.glyphStartIndex+G.numGlyphs,Ba=G.lineStartIndex,zl=G.lineStartIndex+G.lineLength,dl=Sa(Fi,gn,Vo,zs,ne,ii,Si,G,dr,vt,Vi);if(!dl)return{notEnoughRoom:!0};var lu=mo(dl.first.point,Pt).point,Lu=mo(dl.last.point,Pt).point;if(ce&&!ne){var ec=xa(G.writingMode,lu,Lu,Fo);if(ec)return ec}Go=[dl.first];for(var Zu=G.glyphStartIndex+1;Zu0?Oh.point:wo(Si,Rh,th,1,Ze),Vc=xa(G.writingMode,th,Id,Fo);if(Vc)return Vc}var wc=_l(Fi*gn.getoffsetX(G.glyphStartIndex),Vo,zs,ne,ii,Si,G.segment,G.lineStartIndex,G.lineStartIndex+G.lineLength,dr,vt,Vi);if(!wc)return{notEnoughRoom:!0};Go=[wc]}for(var of=0,Od=Go;of0?1:-1,Go=0;ce&&(Fo*=-1,Go=Math.PI),Fo<0&&(Go+=Math.PI);for(var Fi=Fo>0?gn+Pt:gn+Pt+1,Vo=Ze,zs=Ze,ja=0,Ba=0,zl=Math.abs(Vi),dl=[];ja+Ba<=zl;){if((Fi+=Fo)=dr)return null;if(zs=Vo,dl.push(Vo),(Vo=Si[Fi])===void 0){var lu=new C.Point(_n.getx(Fi),_n.gety(Fi)),Lu=mo(lu,ii);if(Lu.signedDistanceFromCamera>0)Vo=Si[Fi]=Lu.point;else{var ec=Fi-Fo;Vo=wo(ja===0?vt:new C.Point(_n.getx(ec),_n.gety(ec)),lu,zs,zl-ja+1,ii)}}ja+=Ba,Ba=zs.dist(Vo)}var Zu=(zl-ja)/Ba,th=Vo.sub(zs),Qc=th.mult(Zu)._add(zs);Qc._add(th._unit()._perp()._mult(ne*Fo));var Rh=Go+Math.atan2(Vo.y-zs.y,Vo.x-zs.x);return dl.push(Qc),{point:Qc,angle:Rh,path:dl}}ta.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},ta.prototype.insert=function(G,te,ne,ce,Ze){this._forEachCell(te,ne,ce,Ze,this._insertBoxCell,this.boxUid++),this.boxKeys.push(G),this.bboxes.push(te),this.bboxes.push(ne),this.bboxes.push(ce),this.bboxes.push(Ze)},ta.prototype.insertCircle=function(G,te,ne,ce){this._forEachCell(te-ce,ne-ce,te+ce,ne+ce,this._insertCircleCell,this.circleUid++),this.circleKeys.push(G),this.circles.push(te),this.circles.push(ne),this.circles.push(ce)},ta.prototype._insertBoxCell=function(G,te,ne,ce,Ze,vt){this.boxCells[Ze].push(vt)},ta.prototype._insertCircleCell=function(G,te,ne,ce,Ze,vt){this.circleCells[Ze].push(vt)},ta.prototype._query=function(G,te,ne,ce,Ze,vt){if(ne<0||G>this.width||ce<0||te>this.height)return!Ze&&[];var Pt=[];if(G<=0&&te<=0&&this.width<=ne&&this.height<=ce){if(Ze)return!0;for(var gn=0;gn0:Pt},ta.prototype._queryCircle=function(G,te,ne,ce,Ze){var vt=G-ne,Pt=G+ne,gn=te-ne,dr=te+ne;if(Pt<0||vt>this.width||dr<0||gn>this.height)return!ce&&[];var _n=[];return this._forEachCell(vt,gn,Pt,dr,this._queryCellCircle,_n,{hitTest:ce,circle:{x:G,y:te,radius:ne},seenUids:{box:{},circle:{}}},Ze),ce?_n.length>0:_n},ta.prototype.query=function(G,te,ne,ce,Ze){return this._query(G,te,ne,ce,!1,Ze)},ta.prototype.hitTest=function(G,te,ne,ce,Ze){return this._query(G,te,ne,ce,!0,Ze)},ta.prototype.hitTestCircle=function(G,te,ne,ce){return this._queryCircle(G,te,ne,!0,ce)},ta.prototype._queryCell=function(G,te,ne,ce,Ze,vt,Pt,gn){var dr=Pt.seenUids,_n=this.boxCells[Ze];if(_n!==null)for(var ii=this.bboxes,Si=0,Vi=_n;Si=ii[Go+0]&&ce>=ii[Go+1]&&(!gn||gn(this.boxKeys[Fo]))){if(Pt.hitTest)return vt.push(!0),!0;vt.push({key:this.boxKeys[Fo],x1:ii[Go],y1:ii[Go+1],x2:ii[Go+2],y2:ii[Go+3]})}}}var Fi=this.circleCells[Ze];if(Fi!==null)for(var Vo=this.circles,zs=0,ja=Fi;zsPt*Pt+gn*gn},ta.prototype._circleAndRectCollide=function(G,te,ne,ce,Ze,vt,Pt){var gn=(vt-ce)/2,dr=Math.abs(G-(ce+gn));if(dr>gn+ne)return!1;var _n=(Pt-Ze)/2,ii=Math.abs(te-(Ze+_n));if(ii>_n+ne)return!1;if(dr<=gn||ii<=_n)return!0;var Si=dr-gn,Vi=ii-_n;return Si*Si+Vi*Vi<=ne*ne};var El=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Ai(G,te){for(var ne=0;ne=1;Id--)Oh.push(Qc.path[Id]);for(var Vc=1;Vc0){for(var Yh=Oh[0].clone(),Zd=Oh[0].clone(),Ld=1;Ld=ec.x&&Zd.x<=Zu.x&&Yh.y>=ec.y&&Zd.y<=Zu.y?[Oh]:Zd.xZu.x||Zd.yZu.y?[]:C.clipLine([Oh],ec.x,ec.y,Zu.x,Zu.y)}for(var ud=0,bp=Od;ud=this.screenRightBoundary||ce<100||te>this.screenBottomBoundary},An.prototype.isInsideGrid=function(G,te,ne,ce){return ne>=0&&G=0&&te0?(this.prevPlacement&&this.prevPlacement.variableOffsets[Si.crossTileID]&&this.prevPlacement.placements[Si.crossTileID]&&this.prevPlacement.placements[Si.crossTileID].text&&(Fi=this.prevPlacement.variableOffsets[Si.crossTileID].anchor),this.variableOffsets[Si.crossTileID]={textOffset:Vo,width:ne,height:ce,anchor:G,textBoxScale:Ze,prevAnchor:Fi},this.markUsedJustification(Vi,G,Si,Fo),Vi.allowVerticalPlacement&&(this.markUsedOrientation(Vi,Fo,Si),this.placedOrientations[Si.crossTileID]=Fo),{shift:zs,placedGlyphBoxes:ja}):void 0},ur.prototype.placeLayerBucketPart=function(G,te,ne){var ce=this,Ze=G.parameters,vt=Ze.bucket,Pt=Ze.layout,gn=Ze.posMatrix,dr=Ze.textLabelPlaneMatrix,_n=Ze.labelToScreenMatrix,ii=Ze.textPixelRatio,Si=Ze.holdingForFade,Vi=Ze.collisionBoxArray,Fo=Ze.partiallyEvaluatedTextSize,Go=Ze.collisionGroup,Fi=Pt.get("text-optional"),Vo=Pt.get("icon-optional"),zs=Pt.get("text-allow-overlap"),ja=Pt.get("icon-allow-overlap"),Ba=Pt.get("text-rotation-alignment")==="map",zl=Pt.get("text-pitch-alignment")==="map",dl=Pt.get("icon-text-fit")!=="none",lu=Pt.get("symbol-z-order")==="viewport-y",Lu=zs&&(ja||!vt.hasIconData()||Vo),ec=ja&&(zs||!vt.hasTextData()||Fi);!vt.collisionArrays&&Vi&&vt.deserializeCollisionBoxes(Vi);var Zu=function(Vc,wc){if(!te[Vc.crossTileID])if(Si)ce.placements[Vc.crossTileID]=new _s(!1,!1,!1);else{var of,Od=!1,Yh=!1,Zd=!0,Ld=null,ud={box:null,offscreen:null},bp={box:null,offscreen:null},Qf=null,cp=null,zc=0,_c=0,ah=0;wc.textFeatureIndex?zc=wc.textFeatureIndex:Vc.useRuntimeCollisionCircles&&(zc=Vc.featureIndex),wc.verticalTextFeatureIndex&&(_c=wc.verticalTextFeatureIndex);var ch=wc.textBox;if(ch){var Hh=function(Xd){var Sf=C.WritingMode.horizontal;if(vt.allowVerticalPlacement&&!Xd&&ce.prevPlacement){var Ag=ce.prevPlacement.placedOrientations[Vc.crossTileID];Ag&&(ce.placedOrientations[Vc.crossTileID]=Ag,ce.markUsedOrientation(vt,Sf=Ag,Vc))}return Sf},Cc=function(Xd,Sf){if(vt.allowVerticalPlacement&&Vc.numVerticalGlyphVertices>0&&wc.verticalTextBox)for(var Ag=0,rm=vt.writingModes;Ag0&&(cd=cd.filter(function(Xd){return Xd!==qh.anchor})).unshift(qh.anchor)}var Ec=function(Xd,Sf,Ag){for(var rm=Xd.x2-Xd.x1,Wf=Xd.y2-Xd.y1,fd=Vc.textBoxScale,Am=dl&&!ja?Sf:null,um={box:[],offscreen:!1},l0=zs?2*cd.length:cd.length,Jg=0;Jg=cd.length,Vc,vt,Ag,Am);if(zm&&(um=zm.placedGlyphBoxes)&&um.box&&um.box.length){Od=!0,Ld=zm.shift;break}}return um};Cc(function(){return Ec(ch,wc.iconBox,C.WritingMode.horizontal)},function(){var Xd=wc.verticalTextBox;return vt.allowVerticalPlacement&&!(ud&&ud.box&&ud.box.length)&&Vc.numVerticalGlyphVertices>0&&Xd?Ec(Xd,wc.verticalIconBox,C.WritingMode.vertical):{box:null,offscreen:null}}),ud&&(Od=ud.box,Zd=ud.offscreen);var ko=Hh(ud&&ud.box);if(!Od&&ce.prevPlacement){var bg=ce.prevPlacement.variableOffsets[Vc.crossTileID];bg&&(ce.variableOffsets[Vc.crossTileID]=bg,ce.markUsedJustification(vt,bg.anchor,Vc,ko))}}else{var xp=function(Xd,Sf){var Ag=ce.collisionIndex.placeCollisionBox(Xd,zs,ii,gn,Go.predicate);return Ag&&Ag.box&&Ag.box.length&&(ce.markUsedOrientation(vt,Sf,Vc),ce.placedOrientations[Vc.crossTileID]=Sf),Ag};Cc(function(){return xp(ch,C.WritingMode.horizontal)},function(){var Xd=wc.verticalTextBox;return vt.allowVerticalPlacement&&Vc.numVerticalGlyphVertices>0&&Xd?xp(Xd,C.WritingMode.vertical):{box:null,offscreen:null}}),Hh(ud&&ud.box&&ud.box.length)}}if(Od=(of=ud)&&of.box&&of.box.length>0,Zd=of&&of.offscreen,Vc.useRuntimeCollisionCircles){var Lg=vt.text.placedSymbolArray.get(Vc.centerJustifiedTextSymbolIndex),Pg=C.evaluateSizeForFeature(vt.textSizeData,Fo,Lg),Uf=Pt.get("text-padding");Qf=ce.collisionIndex.placeCollisionCircles(zs,Lg,vt.lineVertexArray,vt.glyphOffsetArray,Pg,gn,dr,_n,ne,zl,Go.predicate,Vc.collisionCircleDiameter,Uf),Od=zs||Qf.circles.length>0&&!Qf.collisionDetected,Zd=Zd&&Qf.offscreen}if(wc.iconFeatureIndex&&(ah=wc.iconFeatureIndex),wc.iconBox){var Pd=function(Xd){var Sf=dl&&Ld?Ln(Xd,Ld.x,Ld.y,Ba,zl,ce.transform.angle):Xd;return ce.collisionIndex.placeCollisionBox(Sf,ja,ii,gn,Go.predicate)};Yh=bp&&bp.box&&bp.box.length&&wc.verticalIconBox?(cp=Pd(wc.verticalIconBox)).box.length>0:(cp=Pd(wc.iconBox)).box.length>0,Zd=Zd&&cp.offscreen}var ep=Fi||Vc.numHorizontalGlyphVertices===0&&Vc.numVerticalGlyphVertices===0,wp=Vo||Vc.numIconVertices===0;if(ep||wp?wp?ep||(Yh=Yh&&Od):Od=Yh&&Od:Yh=Od=Yh&&Od,Od&&of&&of.box&&ce.collisionIndex.insertCollisionBox(of.box,Pt.get("text-ignore-placement"),vt.bucketInstanceId,bp&&bp.box&&_c?_c:zc,Go.ID),Yh&&cp&&ce.collisionIndex.insertCollisionBox(cp.box,Pt.get("icon-ignore-placement"),vt.bucketInstanceId,ah,Go.ID),Qf&&(Od&&ce.collisionIndex.insertCollisionCircles(Qf.circles,Pt.get("text-ignore-placement"),vt.bucketInstanceId,zc,Go.ID),ne)){var eg=vt.bucketInstanceId,Cp=ce.collisionCircleArrays[eg];Cp===void 0&&(Cp=ce.collisionCircleArrays[eg]=new Hs);for(var If=0;If=0;--Qc){var Rh=th[Qc];Zu(vt.symbolInstances.get(Rh),vt.collisionArrays[Rh])}else for(var Oh=G.symbolInstanceStart;Oh=0&&(G.text.placedSymbolArray.get(gn).crossTileID=Ze>=0&&gn!==Ze?0:ne.crossTileID)}},ur.prototype.markUsedOrientation=function(G,te,ne){for(var ce=te===C.WritingMode.horizontal||te===C.WritingMode.horizontalOnly?te:0,Ze=te===C.WritingMode.vertical?te:0,vt=0,Pt=[ne.leftJustifiedTextSymbolIndex,ne.centerJustifiedTextSymbolIndex,ne.rightJustifiedTextSymbolIndex];vt0,ec=ce.placedOrientations[ja.crossTileID],Zu=ec===C.WritingMode.vertical,th=ec===C.WritingMode.horizontal||ec===C.WritingMode.horizontalOnly;if(Ba>0||zl>0){var Qc=Yr(lu.text);Fo(G.text,Ba,Zu?eo:Qc),Fo(G.text,zl,th?eo:Qc);var Rh=lu.text.isHidden();[ja.rightJustifiedTextSymbolIndex,ja.centerJustifiedTextSymbolIndex,ja.leftJustifiedTextSymbolIndex].forEach(function(ud){ud>=0&&(G.text.placedSymbolArray.get(ud).hidden=Rh||Zu?1:0)}),ja.verticalPlacedTextSymbolIndex>=0&&(G.text.placedSymbolArray.get(ja.verticalPlacedTextSymbolIndex).hidden=Rh||th?1:0);var Oh=ce.variableOffsets[ja.crossTileID];Oh&&ce.markUsedJustification(G,Oh.anchor,ja,ec);var Id=ce.placedOrientations[ja.crossTileID];Id&&(ce.markUsedJustification(G,"left",ja,Id),ce.markUsedOrientation(G,Id,ja))}if(Lu){var Vc=Yr(lu.icon),wc=!(Si&&ja.verticalPlacedIconSymbolIndex&&Zu);ja.placedIconSymbolIndex>=0&&(Fo(G.icon,ja.numIconVertices,wc?Vc:eo),G.icon.placedSymbolArray.get(ja.placedIconSymbolIndex).hidden=lu.icon.isHidden()),ja.verticalPlacedIconSymbolIndex>=0&&(Fo(G.icon,ja.numVerticalIconVertices,wc?eo:Vc),G.icon.placedSymbolArray.get(ja.verticalPlacedIconSymbolIndex).hidden=lu.icon.isHidden())}if(G.hasIconCollisionBoxData()||G.hasTextCollisionBoxData()){var of=G.collisionArrays[zs];if(of){var Od=new C.Point(0,0);if(of.textBox||of.verticalTextBox){var Yh=!0;if(dr){var Zd=ce.variableOffsets[dl];Zd?(Od=fn(Zd.anchor,Zd.width,Zd.height,Zd.textOffset,Zd.textBoxScale),_n&&Od._rotate(ii?ce.transform.angle:-ce.transform.angle)):Yh=!1}of.textBox&&dt(G.textCollisionBox.collisionVertexArray,lu.text.placed,!Yh||Zu,Od.x,Od.y),of.verticalTextBox&&dt(G.textCollisionBox.collisionVertexArray,lu.text.placed,!Yh||th,Od.x,Od.y)}var Ld=!!(!th&&of.verticalIconBox);of.iconBox&&dt(G.iconCollisionBox.collisionVertexArray,lu.icon.placed,Ld,Si?Od.x:0,Si?Od.y:0),of.verticalIconBox&&dt(G.iconCollisionBox.collisionVertexArray,lu.icon.placed,!Ld,Si?Od.x:0,Si?Od.y:0)}}},Fi=0;FiG},ur.prototype.setStale=function(){this.stale=!0};var xt=Math.pow(2,25),Et=Math.pow(2,24),et=Math.pow(2,17),wt=Math.pow(2,16),Vt=Math.pow(2,9),yn=Math.pow(2,8),yr=Math.pow(2,1);function Yr(G){if(G.opacity===0&&!G.placed)return 0;if(G.opacity===1&&G.placed)return 4294967295;var te=G.placed?1:0,ne=Math.floor(127*G.opacity);return ne*xt+te*Et+ne*et+te*wt+ne*Vt+te*yn+ne*yr+te}var eo=0,Zo=function(G){this._sortAcrossTiles=G.layout.get("symbol-z-order")!=="viewport-y"&&G.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Zo.prototype.continuePlacement=function(G,te,ne,ce,Ze){for(var vt=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var Pt=te[G[this._currentPlacementIndex]],gn=this.placement.collisionIndex.transform.zoom;if(Pt.type==="symbol"&&(!Pt.minzoom||Pt.minzoom<=gn)&&(!Pt.maxzoom||Pt.maxzoom>gn)){if(this._inProgressLayer||(this._inProgressLayer=new Zo(Pt)),this._inProgressLayer.continuePlacement(ne[Pt.source],this.placement,this._showCollisionBoxes,Pt,vt))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Ii.prototype.commit=function(G){return this.placement.commit(G),this.placement};var Cs=512/C.EXTENT/2,ks=function(G,te,ne){this.tileID=G,this.indexedSymbolInstances={},this.bucketInstanceId=ne;for(var ce=0;ceG.overscaledZ)for(var gn in Pt){var dr=Pt[gn];dr.tileID.isChildOf(G)&&dr.findMatches(te.symbolInstances,G,Ze)}else{var _n=Pt[G.scaledTo(Number(vt)).key];_n&&_n.findMatches(te.symbolInstances,G,Ze)}}for(var ii=0;ii1?"@2x":"",Si=C.getJSON(vt.transformRequest(vt.normalizeSpriteURL(Ze,ii,".json"),C.ResourceType.SpriteJSON),function(Go,Fi){Si=null,_n||(_n=Go,gn=Fi,Fo())}),Vi=C.getImage(vt.transformRequest(vt.normalizeSpriteURL(Ze,ii,".png"),C.ResourceType.SpriteImage),function(Go,Fi){Vi=null,_n||(_n=Go,dr=Fi,Fo())});function Fo(){if(_n)Pt(_n);else if(gn&&dr){var Go=C.browser.getImageData(dr),Fi={};for(var Vo in gn){var zs=gn[Vo],ja=zs.width,Ba=zs.height,zl=zs.x,dl=zs.y,lu=zs.sdf,Lu=zs.pixelRatio,ec=zs.stretchX,Zu=zs.stretchY,th=zs.content,Qc=new C.RGBAImage({width:ja,height:Ba});C.RGBAImage.copy(Go,Qc,{x:zl,y:dl},{x:0,y:0},{width:ja,height:Ba}),Fi[Vo]={data:Qc,pixelRatio:Lu,sdf:lu,stretchX:ec,stretchY:Zu,content:th}}Pt(null,Fi)}}return{cancel:function(){Si&&(Si.cancel(),Si=null),Vi&&(Vi.cancel(),Vi=null)}}}(ne,this.map._requestManager,function(Ze,vt){if(ce._spriteRequest=null,Ze)ce.fire(new C.ErrorEvent(Ze));else if(vt)for(var Pt in vt)ce.imageManager.addImage(Pt,vt[Pt]);ce.imageManager.setLoaded(!0),ce._availableImages=ce.imageManager.listImages(),ce.dispatcher.broadcast("setImages",ce._availableImages),ce.fire(new C.Event("data",{dataType:"style"}))})},te.prototype._validateLayer=function(ne){var ce=this.sourceCaches[ne.source];if(ce){var Ze=ne.sourceLayer;if(Ze){var vt=ce.getSource();(vt.type==="geojson"||vt.vectorLayerIds&&vt.vectorLayerIds.indexOf(Ze)===-1)&&this.fire(new C.ErrorEvent(new Error('Source layer "'+Ze+'" does not exist on source "'+vt.id+'" as specified by style layer "'+ne.id+'"')))}}},te.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var ne in this.sourceCaches)if(!this.sourceCaches[ne].loaded())return!1;return!!this.imageManager.isLoaded()},te.prototype._serializeLayers=function(ne){for(var ce=[],Ze=0,vt=ne;Ze0)throw new Error("Unimplemented: "+vt.map(function(Pt){return Pt.command}).join(", ")+".");return Ze.forEach(function(Pt){Pt.command!=="setTransition"&&ce[Pt.command].apply(ce,Pt.args)}),this.stylesheet=ne,!0},te.prototype.addImage=function(ne,ce){if(this.getImage(ne))return this.fire(new C.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(ne,ce),this._afterImageUpdated(ne)},te.prototype.updateImage=function(ne,ce){this.imageManager.updateImage(ne,ce)},te.prototype.getImage=function(ne){return this.imageManager.getImage(ne)},te.prototype.removeImage=function(ne){if(!this.getImage(ne))return this.fire(new C.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(ne),this._afterImageUpdated(ne)},te.prototype._afterImageUpdated=function(ne){this._availableImages=this.imageManager.listImages(),this._changedImages[ne]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new C.Event("data",{dataType:"style"}))},te.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},te.prototype.addSource=function(ne,ce,Ze){var vt=this;if(Ze===void 0&&(Ze={}),this._checkLoaded(),this.sourceCaches[ne]!==void 0)throw new Error("There is already a source with this ID");if(!ce.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(ce).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(ce.type)>=0&&this._validate(C.validateStyle.source,"sources."+ne,ce,null,Ze))){this.map&&this.map._collectResourceTiming&&(ce.collectResourceTiming=!0);var Pt=this.sourceCaches[ne]=new In(ne,ce,this.dispatcher);Pt.style=this,Pt.setEventedParent(this,function(){return{isSourceLoaded:vt.loaded(),source:Pt.serialize(),sourceId:ne}}),Pt.onAdd(this.map),this._changed=!0}},te.prototype.removeSource=function(ne){if(this._checkLoaded(),this.sourceCaches[ne]===void 0)throw new Error("There is no source with this ID");for(var ce in this._layers)if(this._layers[ce].source===ne)return this.fire(new C.ErrorEvent(new Error('Source "'+ne+'" cannot be removed while layer "'+ce+'" is using it.')));var Ze=this.sourceCaches[ne];delete this.sourceCaches[ne],delete this._updatedSources[ne],Ze.fire(new C.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:ne})),Ze.setEventedParent(null),Ze.clearTiles(),Ze.onRemove&&Ze.onRemove(this.map),this._changed=!0},te.prototype.setGeoJSONSourceData=function(ne,ce){this._checkLoaded(),this.sourceCaches[ne].getSource().setData(ce),this._changed=!0},te.prototype.getSource=function(ne){return this.sourceCaches[ne]&&this.sourceCaches[ne].getSource()},te.prototype.addLayer=function(ne,ce,Ze){Ze===void 0&&(Ze={}),this._checkLoaded();var vt=ne.id;if(this.getLayer(vt))this.fire(new C.ErrorEvent(new Error('Layer with id "'+vt+'" already exists on this map')));else{var Pt;if(ne.type==="custom"){if(js(this,C.validateCustomStyleLayer(ne)))return;Pt=C.createStyleLayer(ne)}else{if(typeof ne.source=="object"&&(this.addSource(vt,ne.source),ne=C.clone$1(ne),ne=C.extend(ne,{source:vt})),this._validate(C.validateStyle.layer,"layers."+vt,ne,{arrayIndex:-1},Ze))return;Pt=C.createStyleLayer(ne),this._validateLayer(Pt),Pt.setEventedParent(this,{layer:{id:vt}}),this._serializedLayers[Pt.id]=Pt.serialize()}var gn=ce?this._order.indexOf(ce):this._order.length;if(ce&&gn===-1)this.fire(new C.ErrorEvent(new Error('Layer with id "'+ce+'" does not exist on this map.')));else{if(this._order.splice(gn,0,vt),this._layerOrderChanged=!0,this._layers[vt]=Pt,this._removedLayers[vt]&&Pt.source&&Pt.type!=="custom"){var dr=this._removedLayers[vt];delete this._removedLayers[vt],dr.type!==Pt.type?this._updatedSources[Pt.source]="clear":(this._updatedSources[Pt.source]="reload",this.sourceCaches[Pt.source].pause())}this._updateLayer(Pt),Pt.onAdd&&Pt.onAdd(this.map)}}},te.prototype.moveLayer=function(ne,ce){if(this._checkLoaded(),this._changed=!0,this._layers[ne]){if(ne!==ce){var Ze=this._order.indexOf(ne);this._order.splice(Ze,1);var vt=ce?this._order.indexOf(ce):this._order.length;ce&&vt===-1?this.fire(new C.ErrorEvent(new Error('Layer with id "'+ce+'" does not exist on this map.'))):(this._order.splice(vt,0,ne),this._layerOrderChanged=!0)}}else this.fire(new C.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be moved.")))},te.prototype.removeLayer=function(ne){this._checkLoaded();var ce=this._layers[ne];if(ce){ce.setEventedParent(null);var Ze=this._order.indexOf(ne);this._order.splice(Ze,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[ne]=ce,delete this._layers[ne],delete this._serializedLayers[ne],delete this._updatedLayers[ne],delete this._updatedPaintProps[ne],ce.onRemove&&ce.onRemove(this.map)}else this.fire(new C.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be removed.")))},te.prototype.getLayer=function(ne){return this._layers[ne]},te.prototype.hasLayer=function(ne){return ne in this._layers},te.prototype.setLayerZoomRange=function(ne,ce,Ze){this._checkLoaded();var vt=this.getLayer(ne);vt?vt.minzoom===ce&&vt.maxzoom===Ze||(ce!=null&&(vt.minzoom=ce),Ze!=null&&(vt.maxzoom=Ze),this._updateLayer(vt)):this.fire(new C.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot have zoom extent.")))},te.prototype.setFilter=function(ne,ce,Ze){Ze===void 0&&(Ze={}),this._checkLoaded();var vt=this.getLayer(ne);if(vt){if(!C.deepEqual(vt.filter,ce))return ce==null?(vt.filter=void 0,void this._updateLayer(vt)):void(this._validate(C.validateStyle.filter,"layers."+vt.id+".filter",ce,null,Ze)||(vt.filter=C.clone$1(ce),this._updateLayer(vt)))}else this.fire(new C.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be filtered.")))},te.prototype.getFilter=function(ne){return C.clone$1(this.getLayer(ne).filter)},te.prototype.setLayoutProperty=function(ne,ce,Ze,vt){vt===void 0&&(vt={}),this._checkLoaded();var Pt=this.getLayer(ne);Pt?C.deepEqual(Pt.getLayoutProperty(ce),Ze)||(Pt.setLayoutProperty(ce,Ze,vt),this._updateLayer(Pt)):this.fire(new C.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be styled.")))},te.prototype.getLayoutProperty=function(ne,ce){var Ze=this.getLayer(ne);if(Ze)return Ze.getLayoutProperty(ce);this.fire(new C.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style.")))},te.prototype.setPaintProperty=function(ne,ce,Ze,vt){vt===void 0&&(vt={}),this._checkLoaded();var Pt=this.getLayer(ne);Pt?C.deepEqual(Pt.getPaintProperty(ce),Ze)||(Pt.setPaintProperty(ce,Ze,vt)&&this._updateLayer(Pt),this._changed=!0,this._updatedPaintProps[ne]=!0):this.fire(new C.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be styled.")))},te.prototype.getPaintProperty=function(ne,ce){return this.getLayer(ne).getPaintProperty(ce)},te.prototype.setFeatureState=function(ne,ce){this._checkLoaded();var Ze=ne.source,vt=ne.sourceLayer,Pt=this.sourceCaches[Ze];if(Pt!==void 0){var gn=Pt.getSource().type;gn==="geojson"&&vt?this.fire(new C.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):gn!=="vector"||vt?(ne.id===void 0&&this.fire(new C.ErrorEvent(new Error("The feature id parameter must be provided."))),Pt.setFeatureState(vt,ne.id,ce)):this.fire(new C.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new C.ErrorEvent(new Error("The source '"+Ze+"' does not exist in the map's style.")))},te.prototype.removeFeatureState=function(ne,ce){this._checkLoaded();var Ze=ne.source,vt=this.sourceCaches[Ze];if(vt!==void 0){var Pt=vt.getSource().type,gn=Pt==="vector"?ne.sourceLayer:void 0;Pt!=="vector"||gn?ce&&typeof ne.id!="string"&&typeof ne.id!="number"?this.fire(new C.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):vt.removeFeatureState(gn,ne.id,ce):this.fire(new C.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new C.ErrorEvent(new Error("The source '"+Ze+"' does not exist in the map's style.")))},te.prototype.getFeatureState=function(ne){this._checkLoaded();var ce=ne.source,Ze=ne.sourceLayer,vt=this.sourceCaches[ce];if(vt!==void 0){if(vt.getSource().type!=="vector"||Ze)return ne.id===void 0&&this.fire(new C.ErrorEvent(new Error("The feature id parameter must be provided."))),vt.getFeatureState(Ze,ne.id);this.fire(new C.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new C.ErrorEvent(new Error("The source '"+ce+"' does not exist in the map's style.")))},te.prototype.getTransition=function(){return C.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},te.prototype.serialize=function(){return C.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:C.mapObject(this.sourceCaches,function(ne){return ne.serialize()}),layers:this._serializeLayers(this._order)},function(ne){return ne!==void 0})},te.prototype._updateLayer=function(ne){this._updatedLayers[ne.id]=!0,ne.source&&!this._updatedSources[ne.source]&&this.sourceCaches[ne.source].getSource().type!=="raster"&&(this._updatedSources[ne.source]="reload",this.sourceCaches[ne.source].pause()),this._changed=!0},te.prototype._flattenAndSortRenderedFeatures=function(ne){for(var ce=this,Ze=function(ec){return ce._layers[ec].type==="fill-extrusion"},vt={},Pt=[],gn=this._order.length-1;gn>=0;gn--){var dr=this._order[gn];if(Ze(dr)){vt[dr]=gn;for(var _n=0,ii=ne;_n=0;Fi--){var Vo=this._order[Fi];if(Ze(Vo))for(var zs=Pt.length-1;zs>=0;zs--){var ja=Pt[zs].feature;if(vt[ja.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;}"),$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 +}`,"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;}"),Za=Dl("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;}"),Nu=Dl("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);}"),Tc=Dl("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=Dl(`#pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 color @@ -8243,7 +8276,7 @@ gl_FragColor=vec4(1.0); void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);}`),vo=Ml(`varying vec2 v_pos; +gl_Position=u_matrix*vec4(a_pos,0,1);}`),tc=Dl(`varying vec2 v_pos; #pragma mapbox: define highp vec4 outline_color #pragma mapbox: define lowp float opacity void main() { @@ -8259,7 +8292,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;}`),to=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;}`),cc=Dl(`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 @@ -8283,7 +8316,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;}`),hs=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;}`),Uu=Dl(`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 @@ -8307,7 +8340,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 tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;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;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),jn=Ml(`varying vec4 v_color;void main() {gl_FragColor=v_color; +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 tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;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;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),Pn=Dl(`varying vec4 v_color;void main() {gl_FragColor=v_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif @@ -8319,7 +8352,7 @@ void main() { #pragma mapbox: initialize highp float base #pragma mapbox: initialize highp float height #pragma mapbox: initialize highp vec4 color -vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),yr=Ml(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),er=Dl(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; #pragma mapbox: define lowp float base #pragma mapbox: define lowp float height #pragma mapbox: define lowp vec4 pattern_from @@ -8353,20 +8386,20 @@ void main() { #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;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;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;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 ? a_pos -: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),ai=Ml(`#ifdef GL_ES +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),Lr=Dl(`#ifdef GL_ES precision highp float; #endif uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hi=Ml(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),Gr=Dl(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; #define PI 3.141592653589793 void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),Ji=Ml(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),ai=Dl(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -8394,7 +8427,7 @@ void main() { #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width -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;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;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_width2=vec2(outset,inset);}`),so=Ml(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +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;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;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_width2=vec2(outset,inset);}`),Qi=Dl(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity void main() { @@ -8418,7 +8451,7 @@ void main() { #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width -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;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);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_width2=vec2(outset,inset);}`),Pi=Ml(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +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;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);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_width2=vec2(outset,inset);}`),Pi=Dl(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to #pragma mapbox: define lowp float pixel_ratio_from @@ -8461,7 +8494,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 -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_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),us=Ml(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +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_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),fs=Dl(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -8496,11 +8529,11 @@ 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);}`),ga=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);}`),Ks=Dl(`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 -}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),$a=Ml(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),Ma=Dl(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize lowp float opacity @@ -8514,7 +8547,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));}`),dl=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));}`),qa=Dl(`#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 @@ -8545,7 +8578,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);}`),Hl=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);}`),rl=Dl(`#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; @@ -8582,118 +8615,118 @@ 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 J=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,ae=ne.match(/attribute ([\w]+) ([\w]+)/g),it=X.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Rt=ne.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),nn=Rt?Rt.concat(it):it,qn={};return{fragmentSource:X=X.replace(J,function(ei,gr,ss,ts,Is){return qn[Is]=!0,gr==="define"?` -#ifndef HAS_UNIFORM_u_`+Is+` -varying `+ss+" "+ts+" "+Is+`; +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 Dl(G,te){var ne=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,ce=te.match(/attribute ([\w]+) ([\w]+)/g),Ze=G.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),vt=te.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Pt=vt?vt.concat(Ze):Ze,gn={};return{fragmentSource:G=G.replace(ne,function(dr,_n,ii,Si,Vi){return gn[Vi]=!0,_n==="define"?` +#ifndef HAS_UNIFORM_u_`+Vi+` +varying `+ii+" "+Si+" "+Vi+`; #else -uniform `+ss+" "+ts+" u_"+Is+`; +uniform `+ii+" "+Si+" u_"+Vi+`; #endif `:` -#ifdef HAS_UNIFORM_u_`+Is+` - `+ss+" "+ts+" "+Is+" = u_"+Is+`; +#ifdef HAS_UNIFORM_u_`+Vi+` + `+ii+" "+Si+" "+Vi+" = u_"+Vi+`; #endif -`}),vertexSource:ne=ne.replace(J,function(ei,gr,ss,ts,Is){var ca=ts==="float"?"vec2":"vec4",na=Is.match(/color/)?"color":ca;return qn[Is]?gr==="define"?` -#ifndef HAS_UNIFORM_u_`+Is+` -uniform lowp float u_`+Is+`_t; -attribute `+ss+" "+ca+" a_"+Is+`; -varying `+ss+" "+ts+" "+Is+`; +`}),vertexSource:te=te.replace(ne,function(dr,_n,ii,Si,Vi){var Fo=Si==="float"?"vec2":"vec4",Go=Vi.match(/color/)?"color":Fo;return gn[Vi]?_n==="define"?` +#ifndef HAS_UNIFORM_u_`+Vi+` +uniform lowp float u_`+Vi+`_t; +attribute `+ii+" "+Fo+" a_"+Vi+`; +varying `+ii+" "+Si+" "+Vi+`; #else -uniform `+ss+" "+ts+" u_"+Is+`; +uniform `+ii+" "+Si+" u_"+Vi+`; #endif -`:na==="vec4"?` -#ifndef HAS_UNIFORM_u_`+Is+` - `+Is+" = a_"+Is+`; +`:Go==="vec4"?` +#ifndef HAS_UNIFORM_u_`+Vi+` + `+Vi+" = a_"+Vi+`; #else - `+ss+" "+ts+" "+Is+" = u_"+Is+`; + `+ii+" "+Si+" "+Vi+" = u_"+Vi+`; #endif `:` -#ifndef HAS_UNIFORM_u_`+Is+` - `+Is+" = unpack_mix_"+na+"(a_"+Is+", u_"+Is+`_t); +#ifndef HAS_UNIFORM_u_`+Vi+` + `+Vi+" = unpack_mix_"+Go+"(a_"+Vi+", u_"+Vi+`_t); #else - `+ss+" "+ts+" "+Is+" = u_"+Is+`; + `+ii+" "+Si+" "+Vi+" = u_"+Vi+`; #endif -`:gr==="define"?` -#ifndef HAS_UNIFORM_u_`+Is+` -uniform lowp float u_`+Is+`_t; -attribute `+ss+" "+ca+" a_"+Is+`; +`:_n==="define"?` +#ifndef HAS_UNIFORM_u_`+Vi+` +uniform lowp float u_`+Vi+`_t; +attribute `+ii+" "+Fo+" a_"+Vi+`; #else -uniform `+ss+" "+ts+" u_"+Is+`; +uniform `+ii+" "+Si+" u_"+Vi+`; #endif -`:na==="vec4"?` -#ifndef HAS_UNIFORM_u_`+Is+` - `+ss+" "+ts+" "+Is+" = a_"+Is+`; +`:Go==="vec4"?` +#ifndef HAS_UNIFORM_u_`+Vi+` + `+ii+" "+Si+" "+Vi+" = a_"+Vi+`; #else - `+ss+" "+ts+" "+Is+" = u_"+Is+`; + `+ii+" "+Si+" "+Vi+" = u_"+Vi+`; #endif `:` -#ifndef HAS_UNIFORM_u_`+Is+` - `+ss+" "+ts+" "+Is+" = unpack_mix_"+na+"(a_"+Is+", u_"+Is+`_t); +#ifndef HAS_UNIFORM_u_`+Vi+` + `+ii+" "+Si+" "+Vi+" = unpack_mix_"+Go+"(a_"+Vi+", u_"+Vi+`_t); #else - `+ss+" "+ts+" "+Is+" = u_"+Is+`; + `+ii+" "+Si+" "+Vi+" = u_"+Vi+`; #endif -`}),staticAttributes:ae,staticUniforms:nn}}var Za=Object.freeze({__proto__:null,prelude:ua,background:Nl,backgroundPattern:vs,circle:Hi,clippingMask:eo,heatmap:sa,heatmapTexture:Cs,collisionBox:Ka,collisionCircle:$u,debug:rc,fill:Pc,fillOutline:vo,fillOutlinePattern:to,fillPattern:hs,fillExtrusion:jn,fillExtrusionPattern:yr,hillshadePrepare:ai,hillshade:hi,line:Ji,lineGradient:so,linePattern:Pi,lineSDF:us,raster:ga,symbolIcon:$a,symbolSDF:dl,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 ea(X){for(var ne=[],J=0;J>16,qn>>16],u_pixel_coord_lower:[65535&nn,65535&qn]}}Qa.prototype.draw=function(X,ne,J,ae,it,Rt,nn,qn,ei,gr,ss,ts,Is,ca,na,Ko){var Gs,Va=X.gl;if(!this.failedToCreate){for(var _l in X.program.set(this.program),X.setDepthMode(J),X.setStencilMode(ae),X.setColorMode(it),X.setCullFace(Rt),this.fixedUniforms)this.fixedUniforms[_l].set(nn[_l]);ca&&ca.setUniforms(X,this.binderUniforms,ts,{zoom:Is});for(var nu=(Gs={},Gs[Va.LINES]=2,Gs[Va.TRIANGLES]=3,Gs[Va.LINE_STRIP]=1,Gs)[ne],xu=0,Tu=ss.get();xu0?1-1/(1.001-nn):-nn),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,nn};function Kd(X){X*=Math.PI/180;var ne=Math.sin(X),J=Math.cos(X);return[(2*J+1)/3,(-Math.sqrt(3)*ne-J+1)/3,(Math.sqrt(3)*ne-J+1)/3]}var ad,ku=function(X,ne,J,ae,it,Rt,nn,qn,ei,gr){var ss=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:ss.cameraToCenterDistance,u_pitch:ss.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:ss.width/ss.height,u_fade_change:it.options.fadeDuration?it.symbolFadeChange:1,u_matrix:Rt,u_label_plane_matrix:nn,u_coord_matrix:qn,u_is_text:+ei,u_pitch_with_map:+ae,u_texsize:gr,u_texture:0}},Fc=function(X,ne,J,ae,it,Rt,nn,qn,ei,gr,ss){var ts=it.transform;return b.extend(ku(X,ne,J,ae,it,Rt,nn,qn,ei,gr),{u_gamma_scale:ae?Math.cos(ts._pitch)*ts.cameraToCenterDistance:1,u_device_pixel_ratio:b.browser.devicePixelRatio,u_is_halo:+ss})},dd=function(X,ne,J,ae,it,Rt,nn,qn,ei,gr){return b.extend(Fc(X,ne,J,ae,it,Rt,nn,qn,!0,ei,!0),{u_texsize_icon:gr,u_texture_icon:1})},vd=function(X,ne,J){return{u_matrix:X,u_opacity:ne,u_color:J}},Xd=function(X,ne,J,ae,it,Rt){return b.extend(function(nn,qn,ei,gr){var ss=ei.imageManager.getPattern(nn.from.toString()),ts=ei.imageManager.getPattern(nn.to.toString()),Is=ei.imageManager.getPixelSize(),ca=Is.width,na=Is.height,Ko=Math.pow(2,gr.tileID.overscaledZ),Gs=gr.tileSize*Math.pow(2,ei.transform.tileZoom)/Ko,Va=Gs*(gr.tileID.canonical.x+gr.tileID.wrap*Ko),_l=Gs*gr.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ss.tl,u_pattern_br_a:ss.br,u_pattern_tl_b:ts.tl,u_pattern_br_b:ts.br,u_texsize:[ca,na],u_mix:qn.t,u_pattern_size_a:ss.displaySize,u_pattern_size_b:ts.displaySize,u_scale_a:qn.fromScale,u_scale_b:qn.toScale,u_tile_units_to_pixels:1/ci(gr,1,ei.transform.tileZoom),u_pixel_coord_upper:[Va>>16,_l>>16],u_pixel_coord_lower:[65535&Va,65535&_l]}}(ae,Rt,J,it),{u_matrix:X,u_opacity:ne})},th={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 jd(X,ne,J,ae,it,Rt,nn){for(var qn=X.context,ei=qn.gl,gr=X.useProgram("collisionBox"),ss=[],ts=0,Is=0,ca=0;ca0){var xu=b.create(),Tu=Va;b.mul(xu,Gs.placementInvProjMatrix,X.transform.glCoordMatrix),b.mul(xu,xu,Gs.placementViewportMatrix),ss.push({circleArray:nu,circleOffset:Is,transform:Tu,invTransform:xu}),Is=ts+=nu.length/4}_l&&gr.draw(qn,ei.LINES,mi.disabled,Tr.disabled,X.colorModeForRenderPass(),di.disabled,Ks(Va,X.transform,Ko),J.id,_l.layoutVertexBuffer,_l.indexBuffer,_l.segments,null,X.transform.zoom,null,null,_l.collisionVertexBuffer)}}if(nn&&ss.length){var Cu=X.useProgram("collisionCircle"),dc=new b.StructArrayLayout2f1f2i16;dc.resize(4*ts),dc._trim();for(var Hc=0,wc=0,hd=ss;wc=0&&(na[Gs.associatedIconIndex]={shiftedAnchor:dc,angle:Hc})}else er(Gs.numGlyphs,Is)}if(ss){ca.clear();for(var hd=X.icon.placedSymbolArray,Td=0;Td0){var nn=b.browser.now(),qn=(nn-X.timeAdded)/Rt,ei=ne?(nn-ne.timeAdded)/Rt:-1,gr=J.getSource(),ss=it.coveringZoomLevel({tileSize:gr.tileSize,roundZoom:gr.roundZoom}),ts=!ne||Math.abs(ne.tileID.overscaledZ-ss)>Math.abs(X.tileID.overscaledZ-ss),Is=ts&&X.refreshedUponExpiration?1:b.clamp(ts?qn:1-ei,0,1);return X.refreshedUponExpiration&&qn>=1&&(X.refreshedUponExpiration=!1),ne?{opacity:1,mix:1-Is}:{opacity:Is,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,ne,J,ae){Fu(X,0,ne+J/2,X.transform.width,J,ae)}function tl(X,ne,J,ae){Fu(X,ne-J/2,0,J,X.transform.height,ae)}function Fu(X,ne,J,ae,it,Rt){var nn=X.context,qn=nn.gl;qn.enable(qn.SCISSOR_TEST),qn.scissor(ne*b.browser.devicePixelRatio,J*b.browser.devicePixelRatio,ae*b.browser.devicePixelRatio,it*b.browser.devicePixelRatio),nn.clear({color:Rt}),qn.disable(qn.SCISSOR_TEST)}function wd(X,ne,J){var ae=X.context,it=ae.gl,Rt=J.posMatrix,nn=X.useProgram("debug"),qn=mi.disabled,ei=Tr.disabled,gr=X.colorModeForRenderPass();ae.activeTexture.set(it.TEXTURE0),X.emptyTexture.bind(it.LINEAR,it.CLAMP_TO_EDGE),nn.draw(ae,it.LINE_STRIP,qn,ei,gr,di.disabled,Il(Rt,b.Color.red),"$debug",X.debugBuffer,X.tileBorderIndexBuffer,X.debugSegments);var ss=ne.getTileByID(J.key).latestRawTileData,ts=Math.floor((ss&&ss.byteLength||0)/1024),Is=ne.getTile(J).tileSize,ca=512/Math.min(Is,512)*(J.overscaledZ/X.transform.zoom)*.5,na=J.canonical.toString();J.overscaledZ!==J.canonical.z&&(na+=" => "+J.overscaledZ),function(Ko,Gs){Ko.initDebugOverlayCanvas();var Va=Ko.debugOverlayCanvas,_l=Ko.context.gl,nu=Ko.debugOverlayCanvas.getContext("2d");nu.clearRect(0,0,Va.width,Va.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(Gs,5,5),nu.strokeText(Gs,5,5),Ko.debugOverlayTexture.update(Va),Ko.debugOverlayTexture.bind(_l.LINEAR,_l.CLAMP_TO_EDGE)}(X,na+" "+ts+"kb"),nn.draw(ae,it.TRIANGLES,qn,ei,ti.alphaBlended,di.disabled,Il(Rt,b.Color.transparent,ca),"$debug",X.debugBuffer,X.quadTriangleIndexBuffer,X.debugSegments)}var Yd={symbol:function(X,ne,J,ae,it){if(X.renderPass==="translucent"){var Rt=Tr.disabled,nn=X.colorModeForRenderPass();J.layout.get("text-variable-anchor")&&function(qn,ei,gr,ss,ts,Is,ca){for(var na=ei.transform,Ko=ts==="map",Gs=Is==="map",Va=0,_l=qn;Va<_l.length;Va+=1){var nu=_l[Va],xu=ss.getTile(nu),Tu=xu.getBucket(gr);if(Tu&&Tu.text&&Tu.text.segments.get().length){var Cu=b.evaluateSizeForZoom(Tu.textSizeData,na.zoom),dc=ci(xu,1,ei.transform.zoom),Hc=wi(nu.posMatrix,Gs,Ko,ei.transform,dc),wc=gr.layout.get("icon-text-fit")!=="none"&&Tu.hasIconData();if(Cu){var hd=Math.pow(2,na.zoom-xu.tileID.overscaledZ);nd(Tu,Ko,Gs,ca,b.symbolSize,na,Hc,nu.posMatrix,hd,Cu,wc)}}}}(ae,X,J,ne,J.layout.get("text-rotation-alignment"),J.layout.get("text-pitch-alignment"),it),J.paint.get("icon-opacity").constantOr(1)!==0&&qd(X,ne,J,ae,!1,J.paint.get("icon-translate"),J.paint.get("icon-translate-anchor"),J.layout.get("icon-rotation-alignment"),J.layout.get("icon-pitch-alignment"),J.layout.get("icon-keep-upright"),Rt,nn),J.paint.get("text-opacity").constantOr(1)!==0&&qd(X,ne,J,ae,!0,J.paint.get("text-translate"),J.paint.get("text-translate-anchor"),J.layout.get("text-rotation-alignment"),J.layout.get("text-pitch-alignment"),J.layout.get("text-keep-upright"),Rt,nn),ne.map.showCollisionBoxes&&(jd(X,ne,J,ae,J.paint.get("text-translate"),J.paint.get("text-translate-anchor"),!0),jd(X,ne,J,ae,J.paint.get("icon-translate"),J.paint.get("icon-translate-anchor"),!1))}},circle:function(X,ne,J,ae){if(X.renderPass==="translucent"){var it=J.paint.get("circle-opacity"),Rt=J.paint.get("circle-stroke-width"),nn=J.paint.get("circle-stroke-opacity"),qn=J.layout.get("circle-sort-key").constantOr(1)!==void 0;if(it.constantOr(1)!==0||Rt.constantOr(1)!==0&&nn.constantOr(1)!==0){for(var ei=X.context,gr=ei.gl,ss=X.depthModeForSublayer(0,mi.ReadOnly),ts=Tr.disabled,Is=X.colorModeForRenderPass(),ca=[],na=0;na256&&this.clearStencil(),J.setColorMode(ti.disabled),J.setDepthMode(mi.disabled);var it=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var Rt=0,nn=ne;Rt256&&this.clearStencil();var X=this.nextStencilID++,ne=this.context.gl;return new Tr({func:ne.NOTEQUAL,mask:255},X,255,ne.KEEP,ne.KEEP,ne.REPLACE)},ja.prototype.stencilModeForClipping=function(X){var ne=this.context.gl;return new Tr({func:ne.EQUAL,mask:255},this._tileClippingMaskIDs[X.key],0,ne.KEEP,ne.KEEP,ne.REPLACE)},ja.prototype.stencilConfigForOverlap=function(X){var ne,J=this.context.gl,ae=X.sort(function(ei,gr){return gr.overscaledZ-ei.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 nn={},qn=0;qn=0;this.currentLayer--){var nu=this.style._layers[ae[this.currentLayer]],xu=it[nu.source],Tu=gr[nu.source];this._renderTileClippingMasks(nu,Tu),this.renderLayer(this,xu,nu,Tu)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?ne.pop():null},ja.prototype.isPatternMissing=function(X){if(!X)return!1;if(!X.from||!X.to)return!0;var ne=this.imageManager.getPattern(X.from.toString()),J=this.imageManager.getPattern(X.to.toString());return!ne||!J},ja.prototype.useProgram=function(X,ne){this.cache=this.cache||{};var J=""+X+(ne?ne.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[J]||(this.cache[J]=new Qa(this.context,X,Za[X],ne,th[X],this._showOverdrawInspector)),this.cache[J]},ja.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()},ja.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)},ja.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))},ja.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,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(nn){return b.transformMat4([],nn,X)}).map(function(nn){return b.scale$1([],nn,1/nn[3]/ne*ae)}),Rt=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(nn){var qn=b.sub([],it[nn[0]],it[nn[1]]),ei=b.sub([],it[nn[2]],it[nn[1]]),gr=b.normalize([],b.cross([],qn,ei)),ss=-b.dot(gr,it[nn[1]]);return gr.concat(ss)});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],J=b.clone$2(this.min),ae=b.clone$2(this.max),it=0;it=0;if(Rt===0)return 0;Rt!==ne.length&&(J=!1)}if(J)return 2;for(var qn=0;qn<3;qn++){for(var ei=Number.MAX_VALUE,gr=-Number.MAX_VALUE,ss=0;ssthis.max[qn]-this.min[qn])return 0}return 1};var Au=function(X,ne,J,ae){if(X===void 0&&(X=0),ne===void 0&&(ne=0),J===void 0&&(J=0),ae===void 0&&(ae=0),isNaN(X)||X<0||isNaN(ne)||ne<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=ne,this.left=J,this.right=ae};Au.prototype.interpolate=function(X,ne,J){return ne.top!=null&&X.top!=null&&(this.top=b.number(X.top,ne.top,J)),ne.bottom!=null&&X.bottom!=null&&(this.bottom=b.number(X.bottom,ne.bottom,J)),ne.left!=null&&X.left!=null&&(this.left=b.number(X.left,ne.left,J)),ne.right!=null&&X.right!=null&&(this.right=b.number(X.right,ne.right,J)),this},Au.prototype.getCenter=function(X,ne){var J=b.clamp((this.left+X-this.right)/2,0,X),ae=b.clamp((this.top+ne-this.bottom)/2,0,ne);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,ne,J,ae,it){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=it===void 0||it,this._minZoom=X||0,this._maxZoom=ne||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 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)},Vu.prototype.isPaddingEqual=function(X){return this._edgeInsets.equals(X)},Vu.prototype.interpolatePadding=function(X,ne,J){this._unmodified=!1,this._edgeInsets.interpolate(X,ne,J),this._constrain(),this._calcMatrices()},Vu.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)},Vu.prototype.getVisibleUnwrappedCoordinates=function(X){var ne=[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)),nn=Math.floor(Math.min(J.x,ae.x,it.x,Rt.x)),qn=Math.floor(Math.max(J.x,ae.x,it.x,Rt.x)),ei=nn-1;ei<=qn+1;ei++)ei!==0&&ne.push(new b.UnwrappedTileID(ei,X));return ne},Vu.prototype.coveringTiles=function(X){var ne=this.coveringZoomLevel(X),J=ne;if(X.minzoom!==void 0&&neX.maxzoom&&(ne=X.maxzoom);var ae=b.MercatorCoordinate.fromLngLat(this.center),it=Math.pow(2,ne),Rt=[it*ae.x,it*ae.y,0],nn=ru.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,ne),qn=X.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(qn=ne);var ei=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}},gr=[],ss=[],ts=ne,Is=X.reparseOverscaled?J:ne;if(this._renderWorldCopies)for(var ca=1;ca<=3;ca++)gr.push(ei(-ca)),gr.push(ei(ca));for(gr.push(ei(0));gr.length>0;){var na=gr.pop(),Ko=na.x,Gs=na.y,Va=na.fullyVisible;if(!Va){var _l=na.aabb.intersects(nn);if(_l===0)continue;Va=_l===2}var nu=na.aabb.distanceX(Rt),xu=na.aabb.distanceY(Rt),Tu=Math.max(Math.abs(nu),Math.abs(xu));if(na.zoom===ts||Tu>3+(1<=qn)ss.push({tileID:new b.OverscaledTileID(na.zoom===ts?Is:na.zoom,na.wrap,na.zoom,Ko,Gs),distanceSq:b.sqrLen([Rt[0]-.5-Ko,Rt[1]-.5-Gs])});else for(var Cu=0;Cu<4;Cu++){var dc=(Ko<<1)+Cu%2,Hc=(Gs<<1)+(Cu>>1);gr.push({aabb:na.aabb.quadrant(Cu),zoom:na.zoom+1,x:dc,y:Hc,wrap:na.wrap,fullyVisible:Va})}}return ss.sort(function(wc,hd){return wc.distanceSq-hd.distanceSq}).map(function(wc){return wc.tileID})},Vu.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},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 ne=b.clamp(X.lat,-this.maxValidLatitude,this.maxValidLatitude);return new b.Point(b.mercatorXfromLng(X.lng)*this.worldSize,b.mercatorYfromLat(ne)*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,ne){var J=this.pointCoordinate(ne),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 ne=[X.x,X.y,0,1],J=[X.x,X.y,1,1];b.transformMat4(ne,ne,this.pixelMatrixInverse),b.transformMat4(J,J,this.pixelMatrixInverse);var ae=ne[3],it=J[3],Rt=ne[1]/ae,nn=J[1]/it,qn=ne[2]/ae,ei=J[2]/it,gr=qn===ei?0:(0-qn)/(ei-qn);return new b.MercatorCoordinate(b.number(ne[0]/ae,J[0]/it,gr)/this.worldSize,b.number(Rt,nn,gr)/this.worldSize)},Vu.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])},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,ne){ne===void 0&&(ne=!1);var J=X.key,ae=ne?this._alignedPosMatrixCache:this._posMatrixCache;if(ae[J])return ae[J];var it=X.canonical,Rt=this.worldSize/this.zoomScale(it.z),nn=it.x+Math.pow(2,it.z)*X.wrap,qn=b.identity(new Float64Array(16));return b.translate(qn,qn,[nn*Rt,it.y*Rt,0]),b.scale(qn,qn,[Rt/b.EXTENT,Rt/b.EXTENT,1]),b.multiply(qn,ne?this.alignedProjMatrix:this.projMatrix,qn),ae[J]=new Float32Array(qn),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,ne,J,ae,it=-90,Rt=90,nn=-180,qn=180,ei=this.size,gr=this._unmodified;if(this.latRange){var ss=this.latRange;it=b.mercatorYfromLat(ss[1])*this.worldSize,X=(Rt=b.mercatorYfromLat(ss[0])*this.worldSize)-itRt&&(ae=Rt-Ko)}if(this.lngRange){var Gs=Is.x,Va=ei.x/2;Gs-Vaqn&&(J=qn-Va)}J===void 0&&ae===void 0||(this.center=this.unproject(new b.Point(J!==void 0?J:Is.x,ae!==void 0?ae:Is.y))),this._unmodified=gr,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 ne=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-ne-J,.01,Math.PI-.01)),it=this.point,Rt=it.x,nn=it.y,qn=1.01*(Math.cos(Math.PI/2-this._pitch)*ae+this.cameraToCenterDistance),ei=this.height/50,gr=new Float64Array(16);b.perspective(gr,this._fov,this.width/this.height,ei,qn),gr[8]=2*-X.x/this.width,gr[9]=2*X.y/this.height,b.scale(gr,gr,[1,-1,1]),b.translate(gr,gr,[0,0,-this.cameraToCenterDistance]),b.rotateX(gr,gr,this._pitch),b.rotateZ(gr,gr,this.angle),b.translate(gr,gr,[-Rt,-nn,0]),this.mercatorMatrix=b.scale([],gr,[this.worldSize,this.worldSize,this.worldSize]),b.scale(gr,gr,[1,1,b.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=gr,this.invProjMatrix=b.invert([],this.projMatrix);var ss=this.width%2/2,ts=this.height%2/2,Is=Math.cos(this.angle),ca=Math.sin(this.angle),na=Rt-Math.round(Rt)+Is*ss+ca*ts,Ko=nn-Math.round(nn)+Is*ts+ca*ss,Gs=new Float64Array(gr);if(b.translate(Gs,Gs,[na>.5?na-1:na,Ko>.5?Ko-1:Ko,0]),this.alignedProjMatrix=Gs,gr=b.create(),b.scale(gr,gr,[this.width/2,-this.height/2,1]),b.translate(gr,gr,[1,-1,0]),this.labelPlaneMatrix=gr,gr=b.create(),b.scale(gr,gr,[1,-1,1]),b.translate(gr,gr,[-1,-1,0]),b.scale(gr,gr,[2/this.width,2/this.height,1]),this.glCoordMatrix=gr,this.pixelMatrix=b.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(gr=b.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=gr,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Vu.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},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 ne=this.getCameraPoint();if(X.length===1)return[X[0],ne];for(var J=ne.x,ae=ne.y,it=ne.x,Rt=ne.y,nn=0,qn=X;nn=3&&!X.some(function(J){return isNaN(J)})){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 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,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},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 Ra=function(X,ne){this._map=X,this._el=X.getCanvasContainer(),this._container=X.getContainer(),this._clickTolerance=ne.clickTolerance||1};function cs(X,ne){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,nn=ae;Rt30)&&(this.aborted=!0)}}},Op.prototype.touchend=function(X,ne,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 no=function(X){this.singleTap=new Op(X),this.numTaps=X.numTaps,this.reset()};no.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},no.prototype.touchstart=function(X,ne,J){this.singleTap.touchstart(X,ne,J)},no.prototype.touchmove=function(X,ne,J){this.singleTap.touchmove(X,ne,J)},no.prototype.touchend=function(X,ne,J){var ae=this.singleTap.touchend(X,ne,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 no({numTouches:1,numTaps:2}),this._zoomOut=new no({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,J){this._zoomIn.touchstart(X,ne,J),this._zoomOut.touchstart(X,ne,J)},bc.prototype.touchmove=function(X,ne,J){this._zoomIn.touchmove(X,ne,J),this._zoomOut.touchmove(X,ne,J)},bc.prototype.touchend=function(X,ne,J){var ae=this,it=this._zoomIn.touchend(X,ne,J),Rt=this._zoomOut.touchend(X,ne,J);return it?(this._active=!0,X.preventDefault(),setTimeout(function(){return ae.reset()},0),{cameraAnimation:function(nn){return nn.easeTo({duration:300,zoom:nn.getZoom()+1,around:nn.unproject(it)},{originalEvent:X})}}):Rt?(this._active=!0,X.preventDefault(),setTimeout(function(){return ae.reset()},0),{cameraAnimation:function(nn){return nn.easeTo({duration:300,zoom:nn.getZoom()-1,around:nn.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,ne){return!1},Qu.prototype._move=function(X,ne){return{}},Qu.prototype.mousedown=function(X,ne){if(!this._lastPoint){var J=k.mouseButton(X);this._correctButton(X,J)&&(this._lastPoint=ne,this._eventButton=J)}},Qu.prototype.mousemoveWindow=function(X,ne){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||!(ne.dist(J)0&&(this._active=!0);var ae=cs(J,ne),it=new b.Point(0,0),Rt=new b.Point(0,0),nn=0;for(var qn in ae){var ei=ae[qn],gr=this._touches[qn];gr&&(it._add(ei),Rt._add(ei.sub(gr)),nn++,ae[qn]=ei)}if(this._touches=ae,!(nnMath.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(J){this._lastPoints=J,Uf(J[0].sub(J[1]))&&(this._valid=!1)},ne.prototype._move=function(J,ae,it){var Rt=J[0].sub(this._lastPoints[0]),nn=J[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(Rt,nn,it.timeStamp),this._valid)return this._lastPoints=J,this._active=!0,{pitchDelta:(Rt.y+nn.y)/2*-.5}},ne.prototype.gestureBeginsVertically=function(J,ae,it){if(this._valid!==void 0)return this._valid;var Rt=J.mag()>=2,nn=ae.mag()>=2;if(Rt||nn){if(!Rt||!nn)return this._firstMove===void 0&&(this._firstMove=it),it-this._firstMove<100&&void 0;var qn=J.y>0==ae.y>0;return Uf(J)&&Uf(ae)&&qn}},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 J=0,ae=0,it=0,Rt=0,nn=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(),nn=-1);break;case 40:X.shiftKey?it=-1:(X.preventDefault(),nn=1);break;default:return}return this._rotationDisabled&&(ae=0,it=0),{cameraAnimation:function(qn){var ei=qn.getZoom();qn.easeTo({duration:300,easeId:"keyboardHandler",easing:ag,zoom:J?Math.round(ei)+J*(X.shiftKey?2:1):ei,bearing:qn.getBearing()+ae*ne._bearingStep,pitch:qn.getPitch()+it*ne._pitchStep,offset:[-Rt*ne._panStep,-nn*ne._panStep],center:qn.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,J=b.browser.now(),ae=J-(this._lastWheelEventTime||0);this._lastWheelEventTime=J,ne!==0&&ne%4.000244140625==0?this._type="wheel":ne!==0&&Math.abs(ne)<4?this._type="trackpad":ae>400?(this._type=null,this._lastValue=ne,this._timeout=setTimeout(this._onTimeout,40,X)):this._type||(this._type=Math.abs(ae*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 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"?ne.zoomScale(this._targetZoom):ne.scale;this._targetZoom=Math.min(ne.maxZoom,Math.max(ne.minZoom,ne.scaleZoom(it*ae))),this._type==="wheel"&&(this._startZoom=ne.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var Rt,nn=typeof this._targetZoom=="number"?this._targetZoom:ne.zoom,qn=this._startZoom,ei=this._easing,gr=!1;if(this._type==="wheel"&&qn&&ei){var ss=Math.min((b.browser.now()-this._lastWheelEventTime)/200,1),ts=ei(ss);Rt=b.number(qn,nn,ts),ss<1?this._frameId||(this._frameId=!0):gr=!0}else Rt=nn,gr=!0;return this._active=!0,gr&&(this._active=!1,this._finishTimeout=setTimeout(function(){X._zooming=!1,X._handler._triggerRenderFrame(),delete X._targetZoom,delete X._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!gr,zoomDelta:Rt-ne.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Md.prototype._smoothOutEasing=function(X){var ne=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,nn=Math.sqrt(.0729-Rt*Rt);ne=b.bezier(Rt,nn,.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 Wp=function(X,ne){this._clickZoom=X,this._tapZoom=ne};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,ne){return X.preventDefault(),{cameraAnimation:function(J){J.easeTo({duration:300,zoom:J.getZoom()+(X.shiftKey?-1:1),around:J.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 no({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,J){this._swipePoint||(this._tapTime&&X.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?J.length>0&&(this._swipePoint=ne[0],this._swipeTouch=J[0].identifier):this._tap.touchstart(X,ne,J))},of.prototype.touchmove=function(X,ne,J){if(this._tapTime){if(this._swipePoint){if(J[0].identifier!==this._swipeTouch)return;var ae=ne[0],it=ae.y-this._swipePoint.y;return this._swipePoint=ae,X.preventDefault(),this._active=!0,{zoomDelta:it/128}}}else this._tap.touchmove(X,ne,J)},of.prototype.touchend=function(X,ne,J){this._tapTime?this._swipePoint&&J.length===0&&this.reset():this._tap.touchend(X,ne,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,ne,J){this._el=X,this._mousePan=ne,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,ne,J){this._pitchWithRotate=X.pitchWithRotate,this._mouseRotate=ne,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,ne,J,ae){this._el=X,this._touchZoom=ne,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 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 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;aenn?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,Ko)}it._fireMoveEvents(ae)},function(Hc){it._afterEase(ae,Hc)},J),this},ne.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))},ne.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))},ne.prototype._afterEase=function(J,ae){if(!this._easeId||!ae||this._easeId!==ae){delete this._easeId;var it=this._zooming,Rt=this._rotating,nn=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)),nn&&this.fire(new b.Event("pitchend",J)),this.fire(new b.Event("moveend",J))}},ne.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 nn=this.transform,qn=this.getZoom(),ei=this.getBearing(),gr=this.getPitch(),ss=this.getPadding(),ts="zoom"in J?b.clamp(+J.zoom,nn.minZoom,nn.maxZoom):qn,Is="bearing"in J?this._normalizeBearing(J.bearing,ei):ei,ca="pitch"in J?+J.pitch:gr,na="padding"in J?J.padding:nn.padding,Ko=nn.zoomScale(ts-qn),Gs=b.Point.convert(J.offset),Va=nn.centerPoint.add(Gs),_l=nn.pointLocation(Va),nu=b.LngLat.convert(J.center||_l);this._normalizeCenter(nu);var xu=nn.project(_l),Tu=nn.project(nu).sub(xu),Cu=J.curve,dc=Math.max(nn.width,nn.height),Hc=dc/Ko,wc=Tu.mag();if("minZoom"in J){var hd=b.clamp(Math.min(J.minZoom,qn,ts),nn.minZoom,nn.maxZoom),Td=dc/nn.zoomScale(hd-qn);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=ei!==Is,this._pitching=ca!==gr,this._padding=!nn.isPaddingEqual(na),this._prepareEase(ae,!1),this._ease(function(_h){var Mh=_h*nh,Cg=1/tf(Mh);nn.zoom=_h===1?ts:qn+nn.scaleZoom(Cg),it._rotating&&(nn.bearing=b.number(ei,Is,_h)),it._pitching&&(nn.pitch=b.number(gr,ca,_h)),it._padding&&(nn.interpolatePadding(ss,na,_h),Va=nn.centerPoint.add(Gs));var jp=_h===1?nu:nn.unproject(xu.add(Tu.mult(dh(Mh))).mult(Cg));nn.setLocationAtPoint(nn.renderWorldCopies?jp.wrap():jp,Va),it._fireMoveEvents(ae)},function(){return it._afterEase(ae)},J),this},ne.prototype.isEasing=function(){return!!this._easeFrameId},ne.prototype.stop=function(){return this._stop()},ne.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},ne.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))},ne.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()},ne.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}},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 J=this._map._getUIString("AttributionControl."+ne);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 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 J=ne.reduce(function(ae,it,Rt){return it.value&&(ae+=it.key+"="+it.value+(Rt=0)return!1;return!0})).join(" | ");nn!==this._attribHTML&&(this._attribHTML=nn,X.length?(this._innerContainer.innerHTML=nn,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 Ap=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Ap.prototype.add=function(X){var ne=++this._id;return this._queue.push({callback:X,id:ne,cancelled:!1}),ne},Ap.prototype.remove=function(X){for(var ne=this._currentlyRunning,J=0,ae=ne?this._queue.concat(ne):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(nn){it._update(nn.dataType==="style"),it.fire(new b.Event(nn.dataType+"data",nn))}),this.on("dataloading",function(nn){it.fire(new b.Event(nn.dataType+"dataloading",nn))})}X&&(ne.__proto__=X),(ne.prototype=Object.create(X&&X.prototype)).constructor=ne;var J={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(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 nn=this._controlPositions[it];return it.indexOf("bottom")!==-1?nn.insertBefore(Rt,nn.firstChild):nn.appendChild(Rt),this},ne.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},ne.prototype.hasControl=function(ae){return this._controls.indexOf(ae)>-1},ne.prototype.resize=function(ae){var it=this._containerDimensions(),Rt=it[0],nn=it[1];if(Rt===this.transform.width&&nn===this.transform.height)return this;this._resizeCanvas(Rt,nn),this.transform.resize(Rt,nn),this.painter.resize(Rt,nn);var qn=!this._moving;return qn&&this.fire(new b.Event("movestart",ae)).fire(new b.Event("move",ae)),this.fire(new b.Event("resize",ae)),qn&&this.fire(new b.Event("moveend",ae)),this},ne.prototype.getBounds=function(){return this.transform.getBounds()},ne.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},ne.prototype.setMaxBounds=function(ae){return this.transform.setMaxBounds(b.LngLatBounds.convert(ae)),this._update()},ne.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")},ne.prototype.getMaxZoom=function(){return this.transform.maxZoom},ne.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")},ne.prototype.getMaxPitch=function(){return this.transform.maxPitch},ne.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},ne.prototype.setRenderWorldCopies=function(ae){return this.transform.renderWorldCopies=ae,this._update()},ne.prototype.project=function(ae){return this.transform.locationPoint(b.LngLat.convert(ae))},ne.prototype.unproject=function(ae){return this.transform.pointLocation(b.Point.convert(ae))},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(ae,it,Rt){var nn,qn=this;if(ae==="mouseenter"||ae==="mouseover"){var ei=!1;return{layer:it,listener:Rt,delegates:{mousemove:function(ss){var ts=qn.getLayer(it)?qn.queryRenderedFeatures(ss.point,{layers:[it]}):[];ts.length?ei||(ei=!0,Rt.call(qn,new ed(ae,qn,ss.originalEvent,{features:ts}))):ei=!1},mouseout:function(){ei=!1}}}}if(ae==="mouseleave"||ae==="mouseout"){var gr=!1;return{layer:it,listener:Rt,delegates:{mousemove:function(ss){(qn.getLayer(it)?qn.queryRenderedFeatures(ss.point,{layers:[it]}):[]).length?gr=!0:gr&&(gr=!1,Rt.call(qn,new ed(ae,qn,ss.originalEvent)))},mouseout:function(ss){gr&&(gr=!1,Rt.call(qn,new ed(ae,qn,ss.originalEvent)))}}}}return{layer:it,listener:Rt,delegates:(nn={},nn[ae]=function(ss){var ts=qn.getLayer(it)?qn.queryRenderedFeatures(ss.point,{layers:[it]}):[];ts.length&&(ss.features=ts,Rt.call(qn,ss),delete ss.features)},nn)}},ne.prototype.on=function(ae,it,Rt){if(Rt===void 0)return X.prototype.on.call(this,ae,it);var nn=this._createDelegatedListener(ae,it,Rt);for(var qn in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ae]=this._delegatedListeners[ae]||[],this._delegatedListeners[ae].push(nn),nn.delegates)this.on(qn,nn.delegates[qn]);return this},ne.prototype.once=function(ae,it,Rt){if(Rt===void 0)return X.prototype.once.call(this,ae,it);var nn=this._createDelegatedListener(ae,it,Rt);for(var qn in nn.delegates)this.once(qn,nn.delegates[qn]);return this},ne.prototype.off=function(ae,it,Rt){var nn=this;return Rt===void 0?X.prototype.off.call(this,ae,it):(this._delegatedListeners&&this._delegatedListeners[ae]&&function(qn){for(var ei=qn[ae],gr=0;gr180;){var nn=J.locationPoint(X);if(nn.x>=0&&nn.y>=0&&nn.x<=J.width&&nn.y<=J.height)break;X.lng>J.center.lng?X.lng-=360:X.lng+=360}return X}mh.prototype.down=function(X,ne){this.mouseRotate.mousedown(X,ne),this.mousePitch&&this.mousePitch.mousedown(X,ne),k.disableDrag()},mh.prototype.move=function(X,ne){var J=this.map,ae=this.mouseRotate.mousemoveWindow(X,ne);if(ae&&ae.bearingDelta&&J.setBearing(J.getBearing()+ae.bearingDelta),this.mousePitch){var it=this.mousePitch.mousemoveWindow(X,ne);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")))},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(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))},ne.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},ne.prototype.isDraggable=function(){return this._draggable},ne.prototype.setRotation=function(J){return this._rotation=J||0,this._update(),this},ne.prototype.getRotation=function(){return this._rotation},ne.prototype.setRotationAlignment=function(J){return this._rotationAlignment=J||"auto",this._update(),this},ne.prototype.getRotationAlignment=function(){return this._rotationAlignment},ne.prototype.setPitchAlignment=function(J){return this._pitchAlignment=J&&J!=="auto"?J:this._rotationAlignment,this._update(),this},ne.prototype.getPitchAlignment=function(){return this._pitchAlignment},ne}(b.Evented),Ue={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Jt=0,Wn=!1,_i=function(X){function ne(J){X.call(this),this.options=b.extend({},Ue,J),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(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},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,Jt=0,Wn=!1},ne.prototype._isOutOfMapMaxBounds=function(J){var ae=this._map.getMaxBounds(),it=J.coords;return ae&&(it.longitudeae.getEast()||it.latitudeae.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(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()}},ne.prototype._updateCamera=function(J){var ae=new b.LngLat(J.coords.longitude,J.coords.latitude),it=J.coords.accuracy,Rt=this._map.getBearing(),nn=b.extend({bearing:Rt},this.options.fitBoundsOptions);this._map.fitBounds(ae.toBounds(it),nn,{geolocateSource:!0})},ne.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()},ne.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),nn=Math.ceil(2*this._accuracy/Rt);this._circleElement.style.width=nn+"px",this._circleElement.style.height=nn+"px"},ne.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},ne.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&&Wn)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()}},ne.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},ne.prototype._setupUI=function(J){var ae=this;if(this._container.addEventListener("contextmenu",function(nn){return nn.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(nn){nn.geolocateSource||ae._watchState!=="ACTIVE_LOCK"||nn.originalEvent&&nn.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")))})},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":Jt--,Wn=!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"),++Jt>1?(J={maximumAge:6e5,timeout:0},Wn=!0):(J=this.options.positionOptions,Wn=!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},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),Xo={maxWidth:100,unit:"metric"},pa=function(X){this.options=b.extend({},Xo,X),b.bindAll(["_onMove","setUnit"],this)};function Cl(X,ne,J){var ae=J&&J.maxWidth||100,it=X._container.clientHeight/2,Rt=X.unproject([0,it]),nn=X.unproject([ae,it]),qn=Rt.distanceTo(nn);if(J&&J.unit==="imperial"){var ei=3.2808*qn;ei>5280?Ll(ne,ae,ei/5280,X._getUIString("ScaleControl.Miles")):Ll(ne,ae,ei,X._getUIString("ScaleControl.Feet"))}else J&&J.unit==="nautical"?Ll(ne,ae,qn/1852,X._getUIString("ScaleControl.NauticalMiles")):qn>=1e3?Ll(ne,ae,qn/1e3,X._getUIString("ScaleControl.Kilometers")):Ll(ne,ae,qn,X._getUIString("ScaleControl.Meters"))}function Ll(X,ne,J,ae){var it,Rt,nn,qn=(it=J,(Rt=Math.pow(10,(""+Math.floor(it)).length-1))*(nn=(nn=it/Rt)>=10?10:nn>=5?5:nn>=3?3:nn>=2?2:nn>=1?1:function(ei){var gr=Math.pow(10,Math.ceil(-Math.log(ei)/Math.LN10));return Math.round(ei*gr)/gr}(nn)));X.style.width=ne*(qn/J)+"px",X.innerHTML=qn+" "+ae}pa.prototype.getDefaultPosition=function(){return"bottom-left"},pa.prototype._onMove=function(){Cl(this._map,this._container,this.options)},pa.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},pa.prototype.onRemove=function(){k.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},pa.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 ne(J){X.call(this),this.options=b.extend(Object.create(Iu),J),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(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},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(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},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(J){return this.setDOMContent(b.window.document.createTextNode(J))},ne.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)},ne.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},ne.prototype.setMaxWidth=function(J){return this.options.maxWidth=J,this._update(),this},ne.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},ne.prototype.addClassName=function(J){this._container&&this._container.classList.add(J)},ne.prototype.removeClassName=function(J){this._container&&this._container.classList.remove(J)},ne.prototype.setOffset=function(J){return this.options.offset=J,this._update(),this},ne.prototype.toggleClassName=function(J){if(this._container)return this._container.classList.toggle(J)},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(J){this._update(J.point)},ne.prototype._onMouseMove=function(J){this._update(J.point)},ne.prototype._onDrag=function(J){this._update(J.point)},ne.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(ts){return ae._container.classList.add(ts)}),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=Io(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,nn=function ts(Is){if(Is){if(typeof Is=="number"){var ca=Math.round(Math.sqrt(.5*Math.pow(Is,2)));return{center:new b.Point(0,0),top:new b.Point(0,Is),"top-left":new b.Point(ca,ca),"top-right":new b.Point(-ca,ca),bottom:new b.Point(0,-Is),"bottom-left":new b.Point(ca,-ca),"bottom-right":new b.Point(-ca,-ca),left:new b.Point(Is,0),right:new b.Point(-Is,0)}}if(Is instanceof b.Point||Array.isArray(Is)){var na=b.Point.convert(Is);return{center:na,top:na,"top-left":na,"top-right":na,bottom:na,"bottom-left":na,"bottom-right":na,left:na,right:na}}return{center:b.Point.convert(Is.center||[0,0]),top:b.Point.convert(Is.top||[0,0]),"top-left":b.Point.convert(Is["top-left"]||[0,0]),"top-right":b.Point.convert(Is["top-right"]||[0,0]),bottom:b.Point.convert(Is.bottom||[0,0]),"bottom-left":b.Point.convert(Is["bottom-left"]||[0,0]),"bottom-right":b.Point.convert(Is["bottom-right"]||[0,0]),left:b.Point.convert(Is.left||[0,0]),right:b.Point.convert(Is.right||[0,0])}}return ts(new b.Point(0,0))}(this.options.offset);if(!Rt){var qn,ei=this._container.offsetWidth,gr=this._container.offsetHeight;qn=it.y+nn.bottom.ythis._map.transform.height-gr?["bottom"]:[],it.xthis._map.transform.width-ei/2&&qn.push("right"),Rt=qn.length===0?"bottom":qn.join("-")}var ss=it.add(nn[Rt]).round();k.setTransform(this._container,D[Rt]+" translate("+ss.x+"px,"+ss.y+"px)"),F(this._container,Rt,"popup")}},ne.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var J=this._container.querySelector(pc);J&&J.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:_i,AttributionControl:_f,ScaleControl:pa,FullscreenControl:Bu,Popup:zc,Marker:se,Style:Fa,LngLat:b.LngLat,LngLatBounds:b.LngLatBounds,Point:b.Point,MercatorCoordinate:b.MercatorCoordinate,Evented:b.Evented,config:b.config,prewarm:function(){vi().acquire(Bt)},clearPrewarmedResources:function(){var X=xr;X&&(X.isPreloaded()&&X.numActive()===1?(X.release(Bt),xr=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 Ao},getZoomFactor:function(){return $r},isAndroid:function(){return xs},isChrome:function(){return ci},isElectron:function(){return Ts},isFirefox:function(){return Dr},isSafari:function(){return Eo},isStandalone:function(){return ui},isWebKit:function(){return pr},isWebkitWebView:function(){return mo}});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+` +`}),staticAttributes:ce,staticUniforms:Pt}}var Oa=Object.freeze({__proto__:null,prelude:Ea,background:gl,backgroundPattern:ds,circle:Gi,clippingMask:Jo,heatmap:Ps,heatmapTexture:Fs,collisionBox:Za,collisionCircle:Nu,debug:Tc,fill:Pc,fillOutline:tc,fillOutlinePattern:cc,fillPattern:Uu,fillExtrusion:Pn,fillExtrusionPattern:er,hillshadePrepare:Lr,hillshade:Gr,line:ai,lineGradient:Qi,linePattern:Pi,lineSDF:fs,raster:Ks,symbolIcon:Ma,symbolSDF:qa,symbolTextAndIcon:rl}),ju=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function Ia(G){for(var te=[],ne=0;ne>16,gn>>16],u_pixel_coord_lower:[65535&Pt,65535&gn]}}Ha.prototype.draw=function(G,te,ne,ce,Ze,vt,Pt,gn,dr,_n,ii,Si,Vi,Fo,Go,Fi){var Vo,zs=G.gl;if(!this.failedToCreate){for(var ja in G.program.set(this.program),G.setDepthMode(ne),G.setStencilMode(ce),G.setColorMode(Ze),G.setCullFace(vt),this.fixedUniforms)this.fixedUniforms[ja].set(Pt[ja]);Fo&&Fo.setUniforms(G,this.binderUniforms,Si,{zoom:Vi});for(var Ba=(Vo={},Vo[zs.LINES]=2,Vo[zs.TRIANGLES]=3,Vo[zs.LINE_STRIP]=1,Vo)[te],zl=0,dl=ii.get();zl0?1-1/(1.001-Pt):-Pt),u_contrast_factor:(vt=Ze.paint.get("raster-contrast"),vt>0?1/(1-vt):1+vt),u_spin_weights:ad(Ze.paint.get("raster-hue-rotate"))};var vt,Pt};function ad(G){G*=Math.PI/180;var te=Math.sin(G),ne=Math.cos(G);return[(2*ne+1)/3,(-Math.sqrt(3)*te-ne+1)/3,(Math.sqrt(3)*te-ne+1)/3]}var kh,hc=function(G,te,ne,ce,Ze,vt,Pt,gn,dr,_n){var ii=Ze.transform;return{u_is_size_zoom_constant:+(G==="constant"||G==="source"),u_is_size_feature_constant:+(G==="constant"||G==="camera"),u_size_t:te?te.uSizeT:0,u_size:te?te.uSize:0,u_camera_to_center_distance:ii.cameraToCenterDistance,u_pitch:ii.pitch/360*2*Math.PI,u_rotate_symbol:+ne,u_aspect_ratio:ii.width/ii.height,u_fade_change:Ze.options.fadeDuration?Ze.symbolFadeChange:1,u_matrix:vt,u_label_plane_matrix:Pt,u_coord_matrix:gn,u_is_text:+dr,u_pitch_with_map:+ce,u_texsize:_n,u_texture:0}},yc=function(G,te,ne,ce,Ze,vt,Pt,gn,dr,_n,ii){var Si=Ze.transform;return C.extend(hc(G,te,ne,ce,Ze,vt,Pt,gn,dr,_n),{u_gamma_scale:ce?Math.cos(Si._pitch)*Si.cameraToCenterDistance:1,u_device_pixel_ratio:C.browser.devicePixelRatio,u_is_halo:+ii})},Uh=function(G,te,ne,ce,Ze,vt,Pt,gn,dr,_n){return C.extend(yc(G,te,ne,ce,Ze,vt,Pt,gn,!0,dr,!0),{u_texsize_icon:_n,u_texture_icon:1})},yh=function(G,te,ne){return{u_matrix:G,u_opacity:te,u_color:ne}},pd=function(G,te,ne,ce,Ze,vt){return C.extend(function(Pt,gn,dr,_n){var ii=dr.imageManager.getPattern(Pt.from.toString()),Si=dr.imageManager.getPattern(Pt.to.toString()),Vi=dr.imageManager.getPixelSize(),Fo=Vi.width,Go=Vi.height,Fi=Math.pow(2,_n.tileID.overscaledZ),Vo=_n.tileSize*Math.pow(2,dr.transform.tileZoom)/Fi,zs=Vo*(_n.tileID.canonical.x+_n.tileID.wrap*Fi),ja=Vo*_n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ii.tl,u_pattern_br_a:ii.br,u_pattern_tl_b:Si.tl,u_pattern_br_b:Si.br,u_texsize:[Fo,Go],u_mix:gn.t,u_pattern_size_a:ii.displaySize,u_pattern_size_b:Si.displaySize,u_scale_a:gn.fromScale,u_scale_b:gn.toScale,u_tile_units_to_pixels:1/ri(_n,1,dr.transform.tileZoom),u_pixel_coord_upper:[zs>>16,ja>>16],u_pixel_coord_lower:[65535&zs,65535&ja]}}(ce,vt,ne,Ze),{u_matrix:G,u_opacity:te})},Ed={fillExtrusion:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_lightpos:new C.Uniform3f(G,te.u_lightpos),u_lightintensity:new C.Uniform1f(G,te.u_lightintensity),u_lightcolor:new C.Uniform3f(G,te.u_lightcolor),u_vertical_gradient:new C.Uniform1f(G,te.u_vertical_gradient),u_opacity:new C.Uniform1f(G,te.u_opacity)}},fillExtrusionPattern:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_lightpos:new C.Uniform3f(G,te.u_lightpos),u_lightintensity:new C.Uniform1f(G,te.u_lightintensity),u_lightcolor:new C.Uniform3f(G,te.u_lightcolor),u_vertical_gradient:new C.Uniform1f(G,te.u_vertical_gradient),u_height_factor:new C.Uniform1f(G,te.u_height_factor),u_image:new C.Uniform1i(G,te.u_image),u_texsize:new C.Uniform2f(G,te.u_texsize),u_pixel_coord_upper:new C.Uniform2f(G,te.u_pixel_coord_upper),u_pixel_coord_lower:new C.Uniform2f(G,te.u_pixel_coord_lower),u_scale:new C.Uniform3f(G,te.u_scale),u_fade:new C.Uniform1f(G,te.u_fade),u_opacity:new C.Uniform1f(G,te.u_opacity)}},fill:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix)}},fillPattern:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_image:new C.Uniform1i(G,te.u_image),u_texsize:new C.Uniform2f(G,te.u_texsize),u_pixel_coord_upper:new C.Uniform2f(G,te.u_pixel_coord_upper),u_pixel_coord_lower:new C.Uniform2f(G,te.u_pixel_coord_lower),u_scale:new C.Uniform3f(G,te.u_scale),u_fade:new C.Uniform1f(G,te.u_fade)}},fillOutline:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_world:new C.Uniform2f(G,te.u_world)}},fillOutlinePattern:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_world:new C.Uniform2f(G,te.u_world),u_image:new C.Uniform1i(G,te.u_image),u_texsize:new C.Uniform2f(G,te.u_texsize),u_pixel_coord_upper:new C.Uniform2f(G,te.u_pixel_coord_upper),u_pixel_coord_lower:new C.Uniform2f(G,te.u_pixel_coord_lower),u_scale:new C.Uniform3f(G,te.u_scale),u_fade:new C.Uniform1f(G,te.u_fade)}},circle:function(G,te){return{u_camera_to_center_distance:new C.Uniform1f(G,te.u_camera_to_center_distance),u_scale_with_map:new C.Uniform1i(G,te.u_scale_with_map),u_pitch_with_map:new C.Uniform1i(G,te.u_pitch_with_map),u_extrude_scale:new C.Uniform2f(G,te.u_extrude_scale),u_device_pixel_ratio:new C.Uniform1f(G,te.u_device_pixel_ratio),u_matrix:new C.UniformMatrix4f(G,te.u_matrix)}},collisionBox:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_camera_to_center_distance:new C.Uniform1f(G,te.u_camera_to_center_distance),u_pixels_to_tile_units:new C.Uniform1f(G,te.u_pixels_to_tile_units),u_extrude_scale:new C.Uniform2f(G,te.u_extrude_scale),u_overscale_factor:new C.Uniform1f(G,te.u_overscale_factor)}},collisionCircle:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_inv_matrix:new C.UniformMatrix4f(G,te.u_inv_matrix),u_camera_to_center_distance:new C.Uniform1f(G,te.u_camera_to_center_distance),u_viewport_size:new C.Uniform2f(G,te.u_viewport_size)}},debug:function(G,te){return{u_color:new C.UniformColor(G,te.u_color),u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_overlay:new C.Uniform1i(G,te.u_overlay),u_overlay_scale:new C.Uniform1f(G,te.u_overlay_scale)}},clippingMask:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix)}},heatmap:function(G,te){return{u_extrude_scale:new C.Uniform1f(G,te.u_extrude_scale),u_intensity:new C.Uniform1f(G,te.u_intensity),u_matrix:new C.UniformMatrix4f(G,te.u_matrix)}},heatmapTexture:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_world:new C.Uniform2f(G,te.u_world),u_image:new C.Uniform1i(G,te.u_image),u_color_ramp:new C.Uniform1i(G,te.u_color_ramp),u_opacity:new C.Uniform1f(G,te.u_opacity)}},hillshade:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_image:new C.Uniform1i(G,te.u_image),u_latrange:new C.Uniform2f(G,te.u_latrange),u_light:new C.Uniform2f(G,te.u_light),u_shadow:new C.UniformColor(G,te.u_shadow),u_highlight:new C.UniformColor(G,te.u_highlight),u_accent:new C.UniformColor(G,te.u_accent)}},hillshadePrepare:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_image:new C.Uniform1i(G,te.u_image),u_dimension:new C.Uniform2f(G,te.u_dimension),u_zoom:new C.Uniform1f(G,te.u_zoom),u_unpack:new C.Uniform4f(G,te.u_unpack)}},line:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_ratio:new C.Uniform1f(G,te.u_ratio),u_device_pixel_ratio:new C.Uniform1f(G,te.u_device_pixel_ratio),u_units_to_pixels:new C.Uniform2f(G,te.u_units_to_pixels)}},lineGradient:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_ratio:new C.Uniform1f(G,te.u_ratio),u_device_pixel_ratio:new C.Uniform1f(G,te.u_device_pixel_ratio),u_units_to_pixels:new C.Uniform2f(G,te.u_units_to_pixels),u_image:new C.Uniform1i(G,te.u_image),u_image_height:new C.Uniform1f(G,te.u_image_height)}},linePattern:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_texsize:new C.Uniform2f(G,te.u_texsize),u_ratio:new C.Uniform1f(G,te.u_ratio),u_device_pixel_ratio:new C.Uniform1f(G,te.u_device_pixel_ratio),u_image:new C.Uniform1i(G,te.u_image),u_units_to_pixels:new C.Uniform2f(G,te.u_units_to_pixels),u_scale:new C.Uniform3f(G,te.u_scale),u_fade:new C.Uniform1f(G,te.u_fade)}},lineSDF:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_ratio:new C.Uniform1f(G,te.u_ratio),u_device_pixel_ratio:new C.Uniform1f(G,te.u_device_pixel_ratio),u_units_to_pixels:new C.Uniform2f(G,te.u_units_to_pixels),u_patternscale_a:new C.Uniform2f(G,te.u_patternscale_a),u_patternscale_b:new C.Uniform2f(G,te.u_patternscale_b),u_sdfgamma:new C.Uniform1f(G,te.u_sdfgamma),u_image:new C.Uniform1i(G,te.u_image),u_tex_y_a:new C.Uniform1f(G,te.u_tex_y_a),u_tex_y_b:new C.Uniform1f(G,te.u_tex_y_b),u_mix:new C.Uniform1f(G,te.u_mix)}},raster:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_tl_parent:new C.Uniform2f(G,te.u_tl_parent),u_scale_parent:new C.Uniform1f(G,te.u_scale_parent),u_buffer_scale:new C.Uniform1f(G,te.u_buffer_scale),u_fade_t:new C.Uniform1f(G,te.u_fade_t),u_opacity:new C.Uniform1f(G,te.u_opacity),u_image0:new C.Uniform1i(G,te.u_image0),u_image1:new C.Uniform1i(G,te.u_image1),u_brightness_low:new C.Uniform1f(G,te.u_brightness_low),u_brightness_high:new C.Uniform1f(G,te.u_brightness_high),u_saturation_factor:new C.Uniform1f(G,te.u_saturation_factor),u_contrast_factor:new C.Uniform1f(G,te.u_contrast_factor),u_spin_weights:new C.Uniform3f(G,te.u_spin_weights)}},symbolIcon:function(G,te){return{u_is_size_zoom_constant:new C.Uniform1i(G,te.u_is_size_zoom_constant),u_is_size_feature_constant:new C.Uniform1i(G,te.u_is_size_feature_constant),u_size_t:new C.Uniform1f(G,te.u_size_t),u_size:new C.Uniform1f(G,te.u_size),u_camera_to_center_distance:new C.Uniform1f(G,te.u_camera_to_center_distance),u_pitch:new C.Uniform1f(G,te.u_pitch),u_rotate_symbol:new C.Uniform1i(G,te.u_rotate_symbol),u_aspect_ratio:new C.Uniform1f(G,te.u_aspect_ratio),u_fade_change:new C.Uniform1f(G,te.u_fade_change),u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_label_plane_matrix:new C.UniformMatrix4f(G,te.u_label_plane_matrix),u_coord_matrix:new C.UniformMatrix4f(G,te.u_coord_matrix),u_is_text:new C.Uniform1i(G,te.u_is_text),u_pitch_with_map:new C.Uniform1i(G,te.u_pitch_with_map),u_texsize:new C.Uniform2f(G,te.u_texsize),u_texture:new C.Uniform1i(G,te.u_texture)}},symbolSDF:function(G,te){return{u_is_size_zoom_constant:new C.Uniform1i(G,te.u_is_size_zoom_constant),u_is_size_feature_constant:new C.Uniform1i(G,te.u_is_size_feature_constant),u_size_t:new C.Uniform1f(G,te.u_size_t),u_size:new C.Uniform1f(G,te.u_size),u_camera_to_center_distance:new C.Uniform1f(G,te.u_camera_to_center_distance),u_pitch:new C.Uniform1f(G,te.u_pitch),u_rotate_symbol:new C.Uniform1i(G,te.u_rotate_symbol),u_aspect_ratio:new C.Uniform1f(G,te.u_aspect_ratio),u_fade_change:new C.Uniform1f(G,te.u_fade_change),u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_label_plane_matrix:new C.UniformMatrix4f(G,te.u_label_plane_matrix),u_coord_matrix:new C.UniformMatrix4f(G,te.u_coord_matrix),u_is_text:new C.Uniform1i(G,te.u_is_text),u_pitch_with_map:new C.Uniform1i(G,te.u_pitch_with_map),u_texsize:new C.Uniform2f(G,te.u_texsize),u_texture:new C.Uniform1i(G,te.u_texture),u_gamma_scale:new C.Uniform1f(G,te.u_gamma_scale),u_device_pixel_ratio:new C.Uniform1f(G,te.u_device_pixel_ratio),u_is_halo:new C.Uniform1i(G,te.u_is_halo)}},symbolTextAndIcon:function(G,te){return{u_is_size_zoom_constant:new C.Uniform1i(G,te.u_is_size_zoom_constant),u_is_size_feature_constant:new C.Uniform1i(G,te.u_is_size_feature_constant),u_size_t:new C.Uniform1f(G,te.u_size_t),u_size:new C.Uniform1f(G,te.u_size),u_camera_to_center_distance:new C.Uniform1f(G,te.u_camera_to_center_distance),u_pitch:new C.Uniform1f(G,te.u_pitch),u_rotate_symbol:new C.Uniform1i(G,te.u_rotate_symbol),u_aspect_ratio:new C.Uniform1f(G,te.u_aspect_ratio),u_fade_change:new C.Uniform1f(G,te.u_fade_change),u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_label_plane_matrix:new C.UniformMatrix4f(G,te.u_label_plane_matrix),u_coord_matrix:new C.UniformMatrix4f(G,te.u_coord_matrix),u_is_text:new C.Uniform1i(G,te.u_is_text),u_pitch_with_map:new C.Uniform1i(G,te.u_pitch_with_map),u_texsize:new C.Uniform2f(G,te.u_texsize),u_texsize_icon:new C.Uniform2f(G,te.u_texsize_icon),u_texture:new C.Uniform1i(G,te.u_texture),u_texture_icon:new C.Uniform1i(G,te.u_texture_icon),u_gamma_scale:new C.Uniform1f(G,te.u_gamma_scale),u_device_pixel_ratio:new C.Uniform1f(G,te.u_device_pixel_ratio),u_is_halo:new C.Uniform1i(G,te.u_is_halo)}},background:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_opacity:new C.Uniform1f(G,te.u_opacity),u_color:new C.UniformColor(G,te.u_color)}},backgroundPattern:function(G,te){return{u_matrix:new C.UniformMatrix4f(G,te.u_matrix),u_opacity:new C.Uniform1f(G,te.u_opacity),u_image:new C.Uniform1i(G,te.u_image),u_pattern_tl_a:new C.Uniform2f(G,te.u_pattern_tl_a),u_pattern_br_a:new C.Uniform2f(G,te.u_pattern_br_a),u_pattern_tl_b:new C.Uniform2f(G,te.u_pattern_tl_b),u_pattern_br_b:new C.Uniform2f(G,te.u_pattern_br_b),u_texsize:new C.Uniform2f(G,te.u_texsize),u_mix:new C.Uniform1f(G,te.u_mix),u_pattern_size_a:new C.Uniform2f(G,te.u_pattern_size_a),u_pattern_size_b:new C.Uniform2f(G,te.u_pattern_size_b),u_scale_a:new C.Uniform1f(G,te.u_scale_a),u_scale_b:new C.Uniform1f(G,te.u_scale_b),u_pixel_coord_upper:new C.Uniform2f(G,te.u_pixel_coord_upper),u_pixel_coord_lower:new C.Uniform2f(G,te.u_pixel_coord_lower),u_tile_units_to_pixels:new C.Uniform1f(G,te.u_tile_units_to_pixels)}}};function vh(G,te,ne,ce,Ze,vt,Pt){for(var gn=G.context,dr=gn.gl,_n=G.useProgram("collisionBox"),ii=[],Si=0,Vi=0,Fo=0;Fo0){var zl=C.create(),dl=zs;C.mul(zl,Vo.placementInvProjMatrix,G.transform.glCoordMatrix),C.mul(zl,zl,Vo.placementViewportMatrix),ii.push({circleArray:Ba,circleOffset:Vi,transform:dl,invTransform:zl}),Vi=Si+=Ba.length/4}ja&&_n.draw(gn,dr.LINES,Zn.disabled,_r.disabled,G.colorModeForRenderPass(),$n.disabled,Ls(zs,G.transform,Fi),ne.id,ja.layoutVertexBuffer,ja.indexBuffer,ja.segments,null,G.transform.zoom,null,null,ja.collisionVertexBuffer)}}if(Pt&&ii.length){var lu=G.useProgram("collisionCircle"),Lu=new C.StructArrayLayout2f1f2i16;Lu.resize(4*Si),Lu._trim();for(var ec=0,Zu=0,th=ii;Zu=0&&(Go[Vo.associatedIconIndex]={shiftedAnchor:Lu,angle:ec})}else Ai(Vo.numGlyphs,Vi)}if(ii){Fo.clear();for(var th=G.icon.placedSymbolArray,Qc=0;Qc0){var Pt=C.browser.now(),gn=(Pt-G.timeAdded)/vt,dr=te?(Pt-te.timeAdded)/vt:-1,_n=ne.getSource(),ii=Ze.coveringZoomLevel({tileSize:_n.tileSize,roundZoom:_n.roundZoom}),Si=!te||Math.abs(te.tileID.overscaledZ-ii)>Math.abs(G.tileID.overscaledZ-ii),Vi=Si&&G.refreshedUponExpiration?1:C.clamp(Si?gn:1-dr,0,1);return G.refreshedUponExpiration&&gn>=1&&(G.refreshedUponExpiration=!1),te?{opacity:1,mix:1-Vi}:{opacity:Vi,mix:0}}return{opacity:1,mix:0}}var Yf=new C.Color(1,0,0,1),Bf=new C.Color(0,1,0,1),xd=new C.Color(0,0,1,1),Sd=new C.Color(1,0,1,1),Eu=new C.Color(0,1,1,1);function xf(G,te,ne,ce){Pu(G,0,te+ne/2,G.transform.width,ne,ce)}function ol(G,te,ne,ce){Pu(G,te-ne/2,0,ne,G.transform.height,ce)}function Pu(G,te,ne,ce,Ze,vt){var Pt=G.context,gn=Pt.gl;gn.enable(gn.SCISSOR_TEST),gn.scissor(te*C.browser.devicePixelRatio,ne*C.browser.devicePixelRatio,ce*C.browser.devicePixelRatio,Ze*C.browser.devicePixelRatio),Pt.clear({color:vt}),gn.disable(gn.SCISSOR_TEST)}function Ah(G,te,ne){var ce=G.context,Ze=ce.gl,vt=ne.posMatrix,Pt=G.useProgram("debug"),gn=Zn.disabled,dr=_r.disabled,_n=G.colorModeForRenderPass();ce.activeTexture.set(Ze.TEXTURE0),G.emptyTexture.bind(Ze.LINEAR,Ze.CLAMP_TO_EDGE),Pt.draw(ce,Ze.LINE_STRIP,gn,dr,_n,$n.disabled,il(vt,C.Color.red),"$debug",G.debugBuffer,G.tileBorderIndexBuffer,G.debugSegments);var ii=te.getTileByID(ne.key).latestRawTileData,Si=Math.floor((ii&&ii.byteLength||0)/1024),Vi=te.getTile(ne).tileSize,Fo=512/Math.min(Vi,512)*(ne.overscaledZ/G.transform.zoom)*.5,Go=ne.canonical.toString();ne.overscaledZ!==ne.canonical.z&&(Go+=" => "+ne.overscaledZ),function(Fi,Vo){Fi.initDebugOverlayCanvas();var zs=Fi.debugOverlayCanvas,ja=Fi.context.gl,Ba=Fi.debugOverlayCanvas.getContext("2d");Ba.clearRect(0,0,zs.width,zs.height),Ba.shadowColor="white",Ba.shadowBlur=2,Ba.lineWidth=1.5,Ba.strokeStyle="white",Ba.textBaseline="top",Ba.font="bold 36px Open Sans, sans-serif",Ba.fillText(Vo,5,5),Ba.strokeText(Vo,5,5),Fi.debugOverlayTexture.update(zs),Fi.debugOverlayTexture.bind(ja.LINEAR,ja.CLAMP_TO_EDGE)}(G,Go+" "+Si+"kb"),Pt.draw(ce,Ze.TRIANGLES,gn,dr,qn.alphaBlended,$n.disabled,il(vt,C.Color.transparent,Fo),"$debug",G.debugBuffer,G.quadTriangleIndexBuffer,G.debugSegments)}var md={symbol:function(G,te,ne,ce,Ze){if(G.renderPass==="translucent"){var vt=_r.disabled,Pt=G.colorModeForRenderPass();ne.layout.get("text-variable-anchor")&&function(gn,dr,_n,ii,Si,Vi,Fo){for(var Go=dr.transform,Fi=Si==="map",Vo=Vi==="map",zs=0,ja=gn;zs256&&this.clearStencil(),ne.setColorMode(qn.disabled),ne.setDepthMode(Zn.disabled);var Ze=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var vt=0,Pt=te;vt256&&this.clearStencil();var G=this.nextStencilID++,te=this.context.gl;return new _r({func:te.NOTEQUAL,mask:255},G,255,te.KEEP,te.KEEP,te.REPLACE)},Aa.prototype.stencilModeForClipping=function(G){var te=this.context.gl;return new _r({func:te.EQUAL,mask:255},this._tileClippingMaskIDs[G.key],0,te.KEEP,te.KEEP,te.REPLACE)},Aa.prototype.stencilConfigForOverlap=function(G){var te,ne=this.context.gl,ce=G.sort(function(dr,_n){return _n.overscaledZ-dr.overscaledZ}),Ze=ce[ce.length-1].overscaledZ,vt=ce[0].overscaledZ-Ze+1;if(vt>1){this.currentStencilSource=void 0,this.nextStencilID+vt>256&&this.clearStencil();for(var Pt={},gn=0;gn=0;this.currentLayer--){var Ba=this.style._layers[ce[this.currentLayer]],zl=Ze[Ba.source],dl=_n[Ba.source];this._renderTileClippingMasks(Ba,dl),this.renderLayer(this,zl,Ba,dl)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?te.pop():null},Aa.prototype.isPatternMissing=function(G){if(!G)return!1;if(!G.from||!G.to)return!0;var te=this.imageManager.getPattern(G.from.toString()),ne=this.imageManager.getPattern(G.to.toString());return!te||!ne},Aa.prototype.useProgram=function(G,te){this.cache=this.cache||{};var ne=""+G+(te?te.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[ne]||(this.cache[ne]=new Ha(this.context,G,Oa[G],te,Ed[G],this._showOverdrawInspector)),this.cache[ne]},Aa.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()},Aa.prototype.setBaseState=function(){var G=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(G.FUNC_ADD)},Aa.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=C.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new C.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},Aa.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var _u=function(G,te){this.points=G,this.planes=te};_u.fromInvProjectionMatrix=function(G,te,ne){var ce=Math.pow(2,ne),Ze=[[-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(Pt){return C.transformMat4([],Pt,G)}).map(function(Pt){return C.scale$1([],Pt,1/Pt[3]/te*ce)}),vt=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(Pt){var gn=C.sub([],Ze[Pt[0]],Ze[Pt[1]]),dr=C.sub([],Ze[Pt[2]],Ze[Pt[1]]),_n=C.normalize([],C.cross([],gn,dr)),ii=-C.dot(_n,Ze[Pt[1]]);return _n.concat(ii)});return new _u(Ze,vt)};var Hl=function(G,te){this.min=G,this.max=te,this.center=C.scale$2([],C.add([],this.min,this.max),.5)};Hl.prototype.quadrant=function(G){for(var te=[G%2==0,G<2],ne=C.clone$2(this.min),ce=C.clone$2(this.max),Ze=0;Ze=0;if(vt===0)return 0;vt!==te.length&&(ne=!1)}if(ne)return 2;for(var gn=0;gn<3;gn++){for(var dr=Number.MAX_VALUE,_n=-Number.MAX_VALUE,ii=0;iithis.max[gn]-this.min[gn])return 0}return 1};var Ou=function(G,te,ne,ce){if(G===void 0&&(G=0),te===void 0&&(te=0),ne===void 0&&(ne=0),ce===void 0&&(ce=0),isNaN(G)||G<0||isNaN(te)||te<0||isNaN(ne)||ne<0||isNaN(ce)||ce<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=G,this.bottom=te,this.left=ne,this.right=ce};Ou.prototype.interpolate=function(G,te,ne){return te.top!=null&&G.top!=null&&(this.top=C.number(G.top,te.top,ne)),te.bottom!=null&&G.bottom!=null&&(this.bottom=C.number(G.bottom,te.bottom,ne)),te.left!=null&&G.left!=null&&(this.left=C.number(G.left,te.left,ne)),te.right!=null&&G.right!=null&&(this.right=C.number(G.right,te.right,ne)),this},Ou.prototype.getCenter=function(G,te){var ne=C.clamp((this.left+G-this.right)/2,0,G),ce=C.clamp((this.top+te-this.bottom)/2,0,te);return new C.Point(ne,ce)},Ou.prototype.equals=function(G){return this.top===G.top&&this.bottom===G.bottom&&this.left===G.left&&this.right===G.right},Ou.prototype.clone=function(){return new Ou(this.top,this.bottom,this.left,this.right)},Ou.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var qu=function(G,te,ne,ce,Ze){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=Ze===void 0||Ze,this._minZoom=G||0,this._maxZoom=te||22,this._minPitch=ne==null?0:ne,this._maxPitch=ce==null?60:ce,this.setMaxBounds(),this.width=0,this.height=0,this._center=new C.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Ou,this._posMatrixCache={},this._alignedPosMatrixCache={}},id={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}};qu.prototype.clone=function(){var G=new qu(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return G.tileSize=this.tileSize,G.latRange=this.latRange,G.width=this.width,G.height=this.height,G._center=this._center,G.zoom=this.zoom,G.angle=this.angle,G._fov=this._fov,G._pitch=this._pitch,G._unmodified=this._unmodified,G._edgeInsets=this._edgeInsets.clone(),G._calcMatrices(),G},id.minZoom.get=function(){return this._minZoom},id.minZoom.set=function(G){this._minZoom!==G&&(this._minZoom=G,this.zoom=Math.max(this.zoom,G))},id.maxZoom.get=function(){return this._maxZoom},id.maxZoom.set=function(G){this._maxZoom!==G&&(this._maxZoom=G,this.zoom=Math.min(this.zoom,G))},id.minPitch.get=function(){return this._minPitch},id.minPitch.set=function(G){this._minPitch!==G&&(this._minPitch=G,this.pitch=Math.max(this.pitch,G))},id.maxPitch.get=function(){return this._maxPitch},id.maxPitch.set=function(G){this._maxPitch!==G&&(this._maxPitch=G,this.pitch=Math.min(this.pitch,G))},id.renderWorldCopies.get=function(){return this._renderWorldCopies},id.renderWorldCopies.set=function(G){G===void 0?G=!0:G===null&&(G=!1),this._renderWorldCopies=G},id.worldSize.get=function(){return this.tileSize*this.scale},id.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},id.size.get=function(){return new C.Point(this.width,this.height)},id.bearing.get=function(){return-this.angle/Math.PI*180},id.bearing.set=function(G){var te=-C.wrap(G,-180,180)*Math.PI/180;this.angle!==te&&(this._unmodified=!1,this.angle=te,this._calcMatrices(),this.rotationMatrix=C.create$2(),C.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},id.pitch.get=function(){return this._pitch/Math.PI*180},id.pitch.set=function(G){var te=C.clamp(G,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==te&&(this._unmodified=!1,this._pitch=te,this._calcMatrices())},id.fov.get=function(){return this._fov/Math.PI*180},id.fov.set=function(G){G=Math.max(.01,Math.min(60,G)),this._fov!==G&&(this._unmodified=!1,this._fov=G/180*Math.PI,this._calcMatrices())},id.zoom.get=function(){return this._zoom},id.zoom.set=function(G){var te=Math.min(Math.max(G,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())},id.center.get=function(){return this._center},id.center.set=function(G){G.lat===this._center.lat&&G.lng===this._center.lng||(this._unmodified=!1,this._center=G,this._constrain(),this._calcMatrices())},id.padding.get=function(){return this._edgeInsets.toJSON()},id.padding.set=function(G){this._edgeInsets.equals(G)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,G,1),this._calcMatrices())},id.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},qu.prototype.isPaddingEqual=function(G){return this._edgeInsets.equals(G)},qu.prototype.interpolatePadding=function(G,te,ne){this._unmodified=!1,this._edgeInsets.interpolate(G,te,ne),this._constrain(),this._calcMatrices()},qu.prototype.coveringZoomLevel=function(G){var te=(G.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/G.tileSize));return Math.max(0,te)},qu.prototype.getVisibleUnwrappedCoordinates=function(G){var te=[new C.UnwrappedTileID(0,G)];if(this._renderWorldCopies)for(var ne=this.pointCoordinate(new C.Point(0,0)),ce=this.pointCoordinate(new C.Point(this.width,0)),Ze=this.pointCoordinate(new C.Point(this.width,this.height)),vt=this.pointCoordinate(new C.Point(0,this.height)),Pt=Math.floor(Math.min(ne.x,ce.x,Ze.x,vt.x)),gn=Math.floor(Math.max(ne.x,ce.x,Ze.x,vt.x)),dr=Pt-1;dr<=gn+1;dr++)dr!==0&&te.push(new C.UnwrappedTileID(dr,G));return te},qu.prototype.coveringTiles=function(G){var te=this.coveringZoomLevel(G),ne=te;if(G.minzoom!==void 0&&teG.maxzoom&&(te=G.maxzoom);var ce=C.MercatorCoordinate.fromLngLat(this.center),Ze=Math.pow(2,te),vt=[Ze*ce.x,Ze*ce.y,0],Pt=_u.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,te),gn=G.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(gn=te);var dr=function(Zu){return{aabb:new Hl([Zu*Ze,0,0],[(Zu+1)*Ze,Ze,0]),zoom:0,x:0,y:0,wrap:Zu,fullyVisible:!1}},_n=[],ii=[],Si=te,Vi=G.reparseOverscaled?ne:te;if(this._renderWorldCopies)for(var Fo=1;Fo<=3;Fo++)_n.push(dr(-Fo)),_n.push(dr(Fo));for(_n.push(dr(0));_n.length>0;){var Go=_n.pop(),Fi=Go.x,Vo=Go.y,zs=Go.fullyVisible;if(!zs){var ja=Go.aabb.intersects(Pt);if(ja===0)continue;zs=ja===2}var Ba=Go.aabb.distanceX(vt),zl=Go.aabb.distanceY(vt),dl=Math.max(Math.abs(Ba),Math.abs(zl));if(Go.zoom===Si||dl>3+(1<=gn)ii.push({tileID:new C.OverscaledTileID(Go.zoom===Si?Vi:Go.zoom,Go.wrap,Go.zoom,Fi,Vo),distanceSq:C.sqrLen([vt[0]-.5-Fi,vt[1]-.5-Vo])});else for(var lu=0;lu<4;lu++){var Lu=(Fi<<1)+lu%2,ec=(Vo<<1)+(lu>>1);_n.push({aabb:Go.aabb.quadrant(lu),zoom:Go.zoom+1,x:Lu,y:ec,wrap:Go.wrap,fullyVisible:zs})}}return ii.sort(function(Zu,th){return Zu.distanceSq-th.distanceSq}).map(function(Zu){return Zu.tileID})},qu.prototype.resize=function(G,te){this.width=G,this.height=te,this.pixelsToGLUnits=[2/G,-2/te],this._constrain(),this._calcMatrices()},id.unmodified.get=function(){return this._unmodified},qu.prototype.zoomScale=function(G){return Math.pow(2,G)},qu.prototype.scaleZoom=function(G){return Math.log(G)/Math.LN2},qu.prototype.project=function(G){var te=C.clamp(G.lat,-this.maxValidLatitude,this.maxValidLatitude);return new C.Point(C.mercatorXfromLng(G.lng)*this.worldSize,C.mercatorYfromLat(te)*this.worldSize)},qu.prototype.unproject=function(G){return new C.MercatorCoordinate(G.x/this.worldSize,G.y/this.worldSize).toLngLat()},id.point.get=function(){return this.project(this.center)},qu.prototype.setLocationAtPoint=function(G,te){var ne=this.pointCoordinate(te),ce=this.pointCoordinate(this.centerPoint),Ze=this.locationCoordinate(G),vt=new C.MercatorCoordinate(Ze.x-(ne.x-ce.x),Ze.y-(ne.y-ce.y));this.center=this.coordinateLocation(vt),this._renderWorldCopies&&(this.center=this.center.wrap())},qu.prototype.locationPoint=function(G){return this.coordinatePoint(this.locationCoordinate(G))},qu.prototype.pointLocation=function(G){return this.coordinateLocation(this.pointCoordinate(G))},qu.prototype.locationCoordinate=function(G){return C.MercatorCoordinate.fromLngLat(G)},qu.prototype.coordinateLocation=function(G){return G.toLngLat()},qu.prototype.pointCoordinate=function(G){var te=[G.x,G.y,0,1],ne=[G.x,G.y,1,1];C.transformMat4(te,te,this.pixelMatrixInverse),C.transformMat4(ne,ne,this.pixelMatrixInverse);var ce=te[3],Ze=ne[3],vt=te[1]/ce,Pt=ne[1]/Ze,gn=te[2]/ce,dr=ne[2]/Ze,_n=gn===dr?0:(0-gn)/(dr-gn);return new C.MercatorCoordinate(C.number(te[0]/ce,ne[0]/Ze,_n)/this.worldSize,C.number(vt,Pt,_n)/this.worldSize)},qu.prototype.coordinatePoint=function(G){var te=[G.x*this.worldSize,G.y*this.worldSize,0,1];return C.transformMat4(te,te,this.pixelMatrix),new C.Point(te[0]/te[3],te[1]/te[3])},qu.prototype.getBounds=function(){return new C.LngLatBounds().extend(this.pointLocation(new C.Point(0,0))).extend(this.pointLocation(new C.Point(this.width,0))).extend(this.pointLocation(new C.Point(this.width,this.height))).extend(this.pointLocation(new C.Point(0,this.height)))},qu.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new C.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},qu.prototype.setMaxBounds=function(G){G?(this.lngRange=[G.getWest(),G.getEast()],this.latRange=[G.getSouth(),G.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},qu.prototype.calculatePosMatrix=function(G,te){te===void 0&&(te=!1);var ne=G.key,ce=te?this._alignedPosMatrixCache:this._posMatrixCache;if(ce[ne])return ce[ne];var Ze=G.canonical,vt=this.worldSize/this.zoomScale(Ze.z),Pt=Ze.x+Math.pow(2,Ze.z)*G.wrap,gn=C.identity(new Float64Array(16));return C.translate(gn,gn,[Pt*vt,Ze.y*vt,0]),C.scale(gn,gn,[vt/C.EXTENT,vt/C.EXTENT,1]),C.multiply(gn,te?this.alignedProjMatrix:this.projMatrix,gn),ce[ne]=new Float32Array(gn),ce[ne]},qu.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},qu.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var G,te,ne,ce,Ze=-90,vt=90,Pt=-180,gn=180,dr=this.size,_n=this._unmodified;if(this.latRange){var ii=this.latRange;Ze=C.mercatorYfromLat(ii[1])*this.worldSize,G=(vt=C.mercatorYfromLat(ii[0])*this.worldSize)-Zevt&&(ce=vt-Fi)}if(this.lngRange){var Vo=Vi.x,zs=dr.x/2;Vo-zsgn&&(ne=gn-zs)}ne===void 0&&ce===void 0||(this.center=this.unproject(new C.Point(ne!==void 0?ne:Vi.x,ce!==void 0?ce:Vi.y))),this._unmodified=_n,this._constraining=!1}},qu.prototype._calcMatrices=function(){if(this.height){var G=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var te=Math.PI/2+this._pitch,ne=this._fov*(.5+G.y/this.height),ce=Math.sin(ne)*this.cameraToCenterDistance/Math.sin(C.clamp(Math.PI-te-ne,.01,Math.PI-.01)),Ze=this.point,vt=Ze.x,Pt=Ze.y,gn=1.01*(Math.cos(Math.PI/2-this._pitch)*ce+this.cameraToCenterDistance),dr=this.height/50,_n=new Float64Array(16);C.perspective(_n,this._fov,this.width/this.height,dr,gn),_n[8]=2*-G.x/this.width,_n[9]=2*G.y/this.height,C.scale(_n,_n,[1,-1,1]),C.translate(_n,_n,[0,0,-this.cameraToCenterDistance]),C.rotateX(_n,_n,this._pitch),C.rotateZ(_n,_n,this.angle),C.translate(_n,_n,[-vt,-Pt,0]),this.mercatorMatrix=C.scale([],_n,[this.worldSize,this.worldSize,this.worldSize]),C.scale(_n,_n,[1,1,C.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=_n,this.invProjMatrix=C.invert([],this.projMatrix);var ii=this.width%2/2,Si=this.height%2/2,Vi=Math.cos(this.angle),Fo=Math.sin(this.angle),Go=vt-Math.round(vt)+Vi*ii+Fo*Si,Fi=Pt-Math.round(Pt)+Vi*Si+Fo*ii,Vo=new Float64Array(_n);if(C.translate(Vo,Vo,[Go>.5?Go-1:Go,Fi>.5?Fi-1:Fi,0]),this.alignedProjMatrix=Vo,_n=C.create(),C.scale(_n,_n,[this.width/2,-this.height/2,1]),C.translate(_n,_n,[1,-1,0]),this.labelPlaneMatrix=_n,_n=C.create(),C.scale(_n,_n,[1,-1,1]),C.translate(_n,_n,[-1,-1,0]),C.scale(_n,_n,[2/this.width,2/this.height,1]),this.glCoordMatrix=_n,this.pixelMatrix=C.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(_n=C.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=_n,this._posMatrixCache={},this._alignedPosMatrixCache={}}},qu.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var G=this.pointCoordinate(new C.Point(0,0)),te=[G.x*this.worldSize,G.y*this.worldSize,0,1];return C.transformMat4(te,te,this.pixelMatrix)[3]/this.cameraToCenterDistance},qu.prototype.getCameraPoint=function(){var G=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new C.Point(0,G))},qu.prototype.getCameraQueryGeometry=function(G){var te=this.getCameraPoint();if(G.length===1)return[G[0],te];for(var ne=te.x,ce=te.y,Ze=te.x,vt=te.y,Pt=0,gn=G;Pt=3&&!G.some(function(ne){return isNaN(ne)})){var te=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(G[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+G[2],+G[1]],zoom:+G[0],bearing:te,pitch:+(G[4]||0)}),!0}return!1},ld.prototype._updateHashUnthrottled=function(){var G=C.window.location.href.replace(/(#.+)?$/,this.getHashString());try{C.window.history.replaceState(C.window.history.state,null,G)}catch(te){}};var Jh={linearity:.3,easing:C.bezier(0,0,.3,1)},Rf=C.extend({deceleration:2500,maxSpeed:1400},Jh),zf=C.extend({deceleration:20,maxSpeed:1400},Jh),rf=C.extend({deceleration:1e3,maxSpeed:360},Jh),Vf=C.extend({deceleration:1e3,maxSpeed:90},Jh),tf=function(G){this._map=G,this.clear()};function pp(G,te){(!G.duration||G.duration0&&te-G[0].time>160;)G.shift()},tf.prototype._onMoveEnd=function(G){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var te={zoom:0,bearing:0,pitch:0,pan:new C.Point(0,0),pinchAround:void 0,around:void 0},ne=0,ce=this._inertiaBuffer;ne=this._clickTolerance||this._map.fire(new Dh(G.type,this._map,G))},Zc.prototype.dblclick=function(G){return this._firePreventable(new Dh(G.type,this._map,G))},Zc.prototype.mouseover=function(G){this._map.fire(new Dh(G.type,this._map,G))},Zc.prototype.mouseout=function(G){this._map.fire(new Dh(G.type,this._map,G))},Zc.prototype.touchstart=function(G){return this._firePreventable(new ff(G.type,this._map,G))},Zc.prototype.touchmove=function(G){this._map.fire(new ff(G.type,this._map,G))},Zc.prototype.touchend=function(G){this._map.fire(new ff(G.type,this._map,G))},Zc.prototype.touchcancel=function(G){this._map.fire(new ff(G.type,this._map,G))},Zc.prototype._firePreventable=function(G){if(this._map.fire(G),G.defaultPrevented)return{}},Zc.prototype.isEnabled=function(){return!0},Zc.prototype.isActive=function(){return!1},Zc.prototype.enable=function(){},Zc.prototype.disable=function(){};var Jc=function(G){this._map=G};Jc.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Jc.prototype.mousemove=function(G){this._map.fire(new Dh(G.type,this._map,G))},Jc.prototype.mousedown=function(){this._delayContextMenu=!0},Jc.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Dh("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Jc.prototype.contextmenu=function(G){this._delayContextMenu?this._contextMenuEvent=G:this._map.fire(new Dh(G.type,this._map,G)),this._map.listens("contextmenu")&&G.preventDefault()},Jc.prototype.isEnabled=function(){return!0},Jc.prototype.isActive=function(){return!1},Jc.prototype.enable=function(){},Jc.prototype.disable=function(){};var vd=function(G,te){this._map=G,this._el=G.getCanvasContainer(),this._container=G.getContainer(),this._clickTolerance=te.clickTolerance||1};function pl(G,te){for(var ne={},ce=0;cethis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=G.timeStamp),ne.length===this.numTouches&&(this.centroid=function(ce){for(var Ze=new C.Point(0,0),vt=0,Pt=ce;vt30)&&(this.aborted=!0)}}},ps.prototype.touchend=function(G,te,ne){if((!this.centroid||G.timeStamp-this.startTime>500)&&(this.aborted=!0),ne.length===0){var ce=!this.aborted&&this.centroid;if(this.reset(),ce)return ce}};var bc=function(G){this.singleTap=new ps(G),this.numTaps=G.numTaps,this.reset()};bc.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},bc.prototype.touchstart=function(G,te,ne){this.singleTap.touchstart(G,te,ne)},bc.prototype.touchmove=function(G,te,ne){this.singleTap.touchmove(G,te,ne)},bc.prototype.touchend=function(G,te,ne){var ce=this.singleTap.touchend(G,te,ne);if(ce){var Ze=G.timeStamp-this.lastTime<500,vt=!this.lastTap||this.lastTap.dist(ce)<30;if(Ze&&vt||this.reset(),this.count++,this.lastTime=G.timeStamp,this.lastTap=ce,this.count===this.numTaps)return this.reset(),ce}};var Zi=function(){this._zoomIn=new bc({numTouches:1,numTaps:2}),this._zoomOut=new bc({numTouches:2,numTaps:1}),this.reset()};Zi.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Zi.prototype.touchstart=function(G,te,ne){this._zoomIn.touchstart(G,te,ne),this._zoomOut.touchstart(G,te,ne)},Zi.prototype.touchmove=function(G,te,ne){this._zoomIn.touchmove(G,te,ne),this._zoomOut.touchmove(G,te,ne)},Zi.prototype.touchend=function(G,te,ne){var ce=this,Ze=this._zoomIn.touchend(G,te,ne),vt=this._zoomOut.touchend(G,te,ne);return Ze?(this._active=!0,G.preventDefault(),setTimeout(function(){return ce.reset()},0),{cameraAnimation:function(Pt){return Pt.easeTo({duration:300,zoom:Pt.getZoom()+1,around:Pt.unproject(Ze)},{originalEvent:G})}}):vt?(this._active=!0,G.preventDefault(),setTimeout(function(){return ce.reset()},0),{cameraAnimation:function(Pt){return Pt.easeTo({duration:300,zoom:Pt.getZoom()-1,around:Pt.unproject(vt)},{originalEvent:G})}}):void 0},Zi.prototype.touchcancel=function(){this.reset()},Zi.prototype.enable=function(){this._enabled=!0},Zi.prototype.disable=function(){this._enabled=!1,this.reset()},Zi.prototype.isEnabled=function(){return this._enabled},Zi.prototype.isActive=function(){return this._active};var $p={0:1,2:2},Wu=function(G){this.reset(),this._clickTolerance=G.clickTolerance||1};Wu.prototype.blur=function(){this.reset()},Wu.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Wu.prototype._correctButton=function(G,te){return!1},Wu.prototype._move=function(G,te){return{}},Wu.prototype.mousedown=function(G,te){if(!this._lastPoint){var ne=N.mouseButton(G);this._correctButton(G,ne)&&(this._lastPoint=te,this._eventButton=ne)}},Wu.prototype.mousemoveWindow=function(G,te){var ne=this._lastPoint;if(ne){if(G.preventDefault(),function(ce,Ze){var vt=$p[Ze];return ce.buttons===void 0||(ce.buttons&vt)!==vt}(G,this._eventButton))this.reset();else if(this._moved||!(te.dist(ne)0&&(this._active=!0);var ce=pl(ne,te),Ze=new C.Point(0,0),vt=new C.Point(0,0),Pt=0;for(var gn in ce){var dr=ce[gn],_n=this._touches[gn];_n&&(Ze._add(dr),vt._add(dr.sub(_n)),Pt++,ce[gn]=dr)}if(this._touches=ce,!(PtMath.abs(G.x)}var Bh=function(G){function te(){G.apply(this,arguments)}return G&&(te.__proto__=G),(te.prototype=Object.create(G&&G.prototype)).constructor=te,te.prototype.reset=function(){G.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},te.prototype._start=function(ne){this._lastPoints=ne,qf(ne[0].sub(ne[1]))&&(this._valid=!1)},te.prototype._move=function(ne,ce,Ze){var vt=ne[0].sub(this._lastPoints[0]),Pt=ne[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(vt,Pt,Ze.timeStamp),this._valid)return this._lastPoints=ne,this._active=!0,{pitchDelta:(vt.y+Pt.y)/2*-.5}},te.prototype.gestureBeginsVertically=function(ne,ce,Ze){if(this._valid!==void 0)return this._valid;var vt=ne.mag()>=2,Pt=ce.mag()>=2;if(vt||Pt){if(!vt||!Pt)return this._firstMove===void 0&&(this._firstMove=Ze),Ze-this._firstMove<100&&void 0;var gn=ne.y>0==ce.y>0;return qf(ne)&&qf(ce)&&gn}},te}(uf),kp={panStep:100,bearingStep:15,pitchStep:10},pg=function(){var G=kp;this._panStep=G.panStep,this._bearingStep=G.bearingStep,this._pitchStep=G.pitchStep,this._rotationDisabled=!1};function Mp(G){return G*(2-G)}pg.prototype.blur=function(){this.reset()},pg.prototype.reset=function(){this._active=!1},pg.prototype.keydown=function(G){var te=this;if(!(G.altKey||G.ctrlKey||G.metaKey)){var ne=0,ce=0,Ze=0,vt=0,Pt=0;switch(G.keyCode){case 61:case 107:case 171:case 187:ne=1;break;case 189:case 109:case 173:ne=-1;break;case 37:G.shiftKey?ce=-1:(G.preventDefault(),vt=-1);break;case 39:G.shiftKey?ce=1:(G.preventDefault(),vt=1);break;case 38:G.shiftKey?Ze=1:(G.preventDefault(),Pt=-1);break;case 40:G.shiftKey?Ze=-1:(G.preventDefault(),Pt=1);break;default:return}return this._rotationDisabled&&(ce=0,Ze=0),{cameraAnimation:function(gn){var dr=gn.getZoom();gn.easeTo({duration:300,easeId:"keyboardHandler",easing:Mp,zoom:ne?Math.round(dr)+ne*(G.shiftKey?2:1):dr,bearing:gn.getBearing()+ce*te._bearingStep,pitch:gn.getPitch()+Ze*te._pitchStep,offset:[-vt*te._panStep,-Pt*te._panStep],center:gn.getCenter()},{originalEvent:G})}}}},pg.prototype.enable=function(){this._enabled=!0},pg.prototype.disable=function(){this._enabled=!1,this.reset()},pg.prototype.isEnabled=function(){return this._enabled},pg.prototype.isActive=function(){return this._active},pg.prototype.disableRotation=function(){this._rotationDisabled=!0},pg.prototype.enableRotation=function(){this._rotationDisabled=!1};var bd=function(G,te){this._map=G,this._el=G.getCanvasContainer(),this._handler=te,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,C.bindAll(["_onTimeout"],this)};bd.prototype.setZoomRate=function(G){this._defaultZoomRate=G},bd.prototype.setWheelZoomRate=function(G){this._wheelZoomRate=G},bd.prototype.isEnabled=function(){return!!this._enabled},bd.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},bd.prototype.isZooming=function(){return!!this._zooming},bd.prototype.enable=function(G){this.isEnabled()||(this._enabled=!0,this._aroundCenter=G&&G.around==="center")},bd.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},bd.prototype.wheel=function(G){if(this.isEnabled()){var te=G.deltaMode===C.window.WheelEvent.DOM_DELTA_LINE?40*G.deltaY:G.deltaY,ne=C.browser.now(),ce=ne-(this._lastWheelEventTime||0);this._lastWheelEventTime=ne,te!==0&&te%4.000244140625==0?this._type="wheel":te!==0&&Math.abs(te)<4?this._type="trackpad":ce>400?(this._type=null,this._lastValue=te,this._timeout=setTimeout(this._onTimeout,40,G)):this._type||(this._type=Math.abs(ce*te)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,te+=this._lastValue)),G.shiftKey&&te&&(te/=4),this._type&&(this._lastWheelEvent=G,this._delta-=te,this._active||this._start(G)),G.preventDefault()}},bd.prototype._onTimeout=function(G){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(G)},bd.prototype._start=function(G){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=N.mousePos(this._el,G);this._around=C.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())}},bd.prototype.renderFrame=function(){var G=this;if(this._frameId&&(this._frameId=null,this.isActive())){var te=this._map.transform;if(this._delta!==0){var ne=this._type==="wheel"&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,ce=2/(1+Math.exp(-Math.abs(this._delta*ne)));this._delta<0&&ce!==0&&(ce=1/ce);var Ze=typeof this._targetZoom=="number"?te.zoomScale(this._targetZoom):te.scale;this._targetZoom=Math.min(te.maxZoom,Math.max(te.minZoom,te.scaleZoom(Ze*ce))),this._type==="wheel"&&(this._startZoom=te.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var vt,Pt=typeof this._targetZoom=="number"?this._targetZoom:te.zoom,gn=this._startZoom,dr=this._easing,_n=!1;if(this._type==="wheel"&&gn&&dr){var ii=Math.min((C.browser.now()-this._lastWheelEventTime)/200,1),Si=dr(ii);vt=C.number(gn,Pt,Si),ii<1?this._frameId||(this._frameId=!0):_n=!0}else vt=Pt,_n=!0;return this._active=!0,_n&&(this._active=!1,this._finishTimeout=setTimeout(function(){G._zooming=!1,G._handler._triggerRenderFrame(),delete G._targetZoom,delete G._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!_n,zoomDelta:vt-te.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},bd.prototype._smoothOutEasing=function(G){var te=C.ease;if(this._prevEase){var ne=this._prevEase,ce=(C.browser.now()-ne.start)/ne.duration,Ze=ne.easing(ce+.01)-ne.easing(ce),vt=.27/Math.sqrt(Ze*Ze+1e-4)*.01,Pt=Math.sqrt(.0729-vt*vt);te=C.bezier(vt,Pt,.25,1)}return this._prevEase={start:C.browser.now(),duration:G,easing:te},te},bd.prototype.blur=function(){this.reset()},bd.prototype.reset=function(){this._active=!1};var Qp=function(G,te){this._clickZoom=G,this._tapZoom=te};Qp.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Qp.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Qp.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Qp.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(G,te){return G.preventDefault(),{cameraAnimation:function(ne){ne.easeTo({duration:300,zoom:ne.getZoom()+(G.shiftKey?-1:1),around:ne.unproject(te)},{originalEvent:G})}}},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 yf=function(){this._tap=new bc({numTouches:1,numTaps:1}),this.reset()};yf.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},yf.prototype.touchstart=function(G,te,ne){this._swipePoint||(this._tapTime&&G.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?ne.length>0&&(this._swipePoint=te[0],this._swipeTouch=ne[0].identifier):this._tap.touchstart(G,te,ne))},yf.prototype.touchmove=function(G,te,ne){if(this._tapTime){if(this._swipePoint){if(ne[0].identifier!==this._swipeTouch)return;var ce=te[0],Ze=ce.y-this._swipePoint.y;return this._swipePoint=ce,G.preventDefault(),this._active=!0,{zoomDelta:Ze/128}}}else this._tap.touchmove(G,te,ne)},yf.prototype.touchend=function(G,te,ne){this._tapTime?this._swipePoint&&ne.length===0&&this.reset():this._tap.touchend(G,te,ne)&&(this._tapTime=G.timeStamp)},yf.prototype.touchcancel=function(){this.reset()},yf.prototype.enable=function(){this._enabled=!0},yf.prototype.disable=function(){this._enabled=!1,this.reset()},yf.prototype.isEnabled=function(){return this._enabled},yf.prototype.isActive=function(){return this._active};var Jf=function(G,te,ne){this._el=G,this._mousePan=te,this._touchPan=ne};Jf.prototype.enable=function(G){this._inertiaOptions=G||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Jf.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Jf.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Jf.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var wu=function(G,te,ne){this._pitchWithRotate=G.pitchWithRotate,this._mouseRotate=te,this._mousePitch=ne};wu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},wu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},wu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},wu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Tp=function(G,te,ne,ce){this._el=G,this._touchZoom=te,this._touchRotate=ne,this._tapDragZoom=ce,this._rotationDisabled=!1,this._enabled=!0};Tp.prototype.enable=function(G){this._touchZoom.enable(G),this._rotationDisabled||this._touchRotate.enable(G),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Tp.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Tp.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Tp.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Tp.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Tp.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var _p=function(G){return G.zoom||G.drag||G.pitch||G.rotate},jf=function(G){function te(){G.apply(this,arguments)}return G&&(te.__proto__=G),(te.prototype=Object.create(G&&G.prototype)).constructor=te,te}(C.Event);function Eh(G){return G.panDelta&&G.panDelta.mag()||G.zoomDelta||G.bearingDelta||G.pitchDelta}var Mh=function(G,te){this._map=G,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new tf(G),this._bearingSnap=te.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(te),C.bindAll(["handleEvent","handleWindowEvent"],this);var ne=this._el;this._listeners=[[ne,"touchstart",{passive:!0}],[ne,"touchmove",{passive:!1}],[ne,"touchend",void 0],[ne,"touchcancel",void 0],[ne,"mousedown",void 0],[ne,"mousemove",void 0],[ne,"mouseup",void 0],[C.window.document,"mousemove",{capture:!0}],[C.window.document,"mouseup",void 0],[ne,"mouseover",void 0],[ne,"mouseout",void 0],[ne,"dblclick",void 0],[ne,"click",void 0],[ne,"keydown",{capture:!1}],[ne,"keyup",void 0],[ne,"wheel",{passive:!1}],[ne,"contextmenu",void 0],[C.window,"blur",void 0]];for(var ce=0,Ze=this._listeners;cePt?Math.min(2,lu):Math.max(.5,lu),Qc=Math.pow(th,1-ec),Rh=vt.unproject(zl.add(dl.mult(ec*Qc)).mult(Zu));vt.setLocationAtPoint(vt.renderWorldCopies?Rh.wrap():Rh,Fi)}Ze._fireMoveEvents(ce)},function(ec){Ze._afterEase(ce,ec)},ne),this},te.prototype._prepareEase=function(ne,ce,Ze){Ze===void 0&&(Ze={}),this._moving=!0,ce||Ze.moving||this.fire(new C.Event("movestart",ne)),this._zooming&&!Ze.zooming&&this.fire(new C.Event("zoomstart",ne)),this._rotating&&!Ze.rotating&&this.fire(new C.Event("rotatestart",ne)),this._pitching&&!Ze.pitching&&this.fire(new C.Event("pitchstart",ne))},te.prototype._fireMoveEvents=function(ne){this.fire(new C.Event("move",ne)),this._zooming&&this.fire(new C.Event("zoom",ne)),this._rotating&&this.fire(new C.Event("rotate",ne)),this._pitching&&this.fire(new C.Event("pitch",ne))},te.prototype._afterEase=function(ne,ce){if(!this._easeId||!ce||this._easeId!==ce){delete this._easeId;var Ze=this._zooming,vt=this._rotating,Pt=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Ze&&this.fire(new C.Event("zoomend",ne)),vt&&this.fire(new C.Event("rotateend",ne)),Pt&&this.fire(new C.Event("pitchend",ne)),this.fire(new C.Event("moveend",ne))}},te.prototype.flyTo=function(ne,ce){var Ze=this;if(!ne.essential&&C.browser.prefersReducedMotion){var vt=C.pick(ne,["center","zoom","bearing","pitch","around"]);return this.jumpTo(vt,ce)}this.stop(),ne=C.extend({offset:[0,0],speed:1.2,curve:1.42,easing:C.ease},ne);var Pt=this.transform,gn=this.getZoom(),dr=this.getBearing(),_n=this.getPitch(),ii=this.getPadding(),Si="zoom"in ne?C.clamp(+ne.zoom,Pt.minZoom,Pt.maxZoom):gn,Vi="bearing"in ne?this._normalizeBearing(ne.bearing,dr):dr,Fo="pitch"in ne?+ne.pitch:_n,Go="padding"in ne?ne.padding:Pt.padding,Fi=Pt.zoomScale(Si-gn),Vo=C.Point.convert(ne.offset),zs=Pt.centerPoint.add(Vo),ja=Pt.pointLocation(zs),Ba=C.LngLat.convert(ne.center||ja);this._normalizeCenter(Ba);var zl=Pt.project(ja),dl=Pt.project(Ba).sub(zl),lu=ne.curve,Lu=Math.max(Pt.width,Pt.height),ec=Lu/Fi,Zu=dl.mag();if("minZoom"in ne){var th=C.clamp(Math.min(ne.minZoom,gn,Si),Pt.minZoom,Pt.maxZoom),Qc=Lu/Pt.zoomScale(th-gn);lu=Math.sqrt(Qc/Zu*2)}var Rh=lu*lu;function Oh(Ld){var ud=(ec*ec-Lu*Lu+(Ld?-1:1)*Rh*Rh*Zu*Zu)/(2*(Ld?ec:Lu)*Rh*Zu);return Math.log(Math.sqrt(ud*ud+1)-ud)}function Id(Ld){return(Math.exp(Ld)-Math.exp(-Ld))/2}function Vc(Ld){return(Math.exp(Ld)+Math.exp(-Ld))/2}var wc=Oh(0),of=function(Ld){return Vc(wc)/Vc(wc+lu*Ld)},Od=function(Ld){return Lu*((Vc(wc)*(Id(ud=wc+lu*Ld)/Vc(ud))-Id(wc))/Rh)/Zu;var ud},Yh=(Oh(1)-wc)/lu;if(Math.abs(Zu)<1e-6||!isFinite(Yh)){if(Math.abs(Lu-ec)<1e-6)return this.easeTo(ne,ce);var Zd=ecne.maxDuration&&(ne.duration=0),this._zooming=!0,this._rotating=dr!==Vi,this._pitching=Fo!==_n,this._padding=!Pt.isPaddingEqual(Go),this._prepareEase(ce,!1),this._ease(function(Ld){var ud=Ld*Yh,bp=1/of(ud);Pt.zoom=Ld===1?Si:gn+Pt.scaleZoom(bp),Ze._rotating&&(Pt.bearing=C.number(dr,Vi,Ld)),Ze._pitching&&(Pt.pitch=C.number(_n,Fo,Ld)),Ze._padding&&(Pt.interpolatePadding(ii,Go,Ld),zs=Pt.centerPoint.add(Vo));var Qf=Ld===1?Ba:Pt.unproject(zl.add(dl.mult(Od(ud))).mult(bp));Pt.setLocationAtPoint(Pt.renderWorldCopies?Qf.wrap():Qf,zs),Ze._fireMoveEvents(ce)},function(){return Ze._afterEase(ce)},ne),this},te.prototype.isEasing=function(){return!!this._easeFrameId},te.prototype.stop=function(){return this._stop()},te.prototype._stop=function(ne,ce){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var Ze=this._onEaseEnd;delete this._onEaseEnd,Ze.call(this,ce)}if(!ne){var vt=this.handlers;vt&&vt.stop(!1)}return this},te.prototype._ease=function(ne,ce,Ze){Ze.animate===!1||Ze.duration===0?(ne(1),ce()):(this._easeStart=C.browser.now(),this._easeOptions=Ze,this._onEaseFrame=ne,this._onEaseEnd=ce,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},te.prototype._renderFrameCallback=function(){var ne=Math.min((C.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(ne)),ne<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},te.prototype._normalizeBearing=function(ne,ce){ne=C.wrap(ne,-180,180);var Ze=Math.abs(ne-ce);return Math.abs(ne-360-ce)180?-360:Ze<-180?360:0}},te}(C.Evented),bh=function(G){G===void 0&&(G={}),this.options=G,C.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};bh.prototype.getDefaultPosition=function(){return"bottom-right"},bh.prototype.onAdd=function(G){var te=this.options&&this.options.compact;return this._map=G,this._container=N.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=N.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=N.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},bh.prototype.onRemove=function(){N.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},bh.prototype._setElementTitle=function(G,te){var ne=this._map._getUIString("AttributionControl."+te);G.title=ne,G.setAttribute("aria-label",ne)},bh.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"))},bh.prototype._updateEditLink=function(){var G=this._editLink;G||(G=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||C.config.ACCESS_TOKEN}];if(G){var ne=te.reduce(function(ce,Ze,vt){return Ze.value&&(ce+=Ze.key+"="+Ze.value+(vt=0)return!1;return!0})).join(" | ");Pt!==this._attribHTML&&(this._attribHTML=Pt,G.length?(this._innerContainer.innerHTML=Pt,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},bh.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Vd=function(){C.bindAll(["_updateLogo"],this),C.bindAll(["_updateCompact"],this)};Vd.prototype.onAdd=function(G){this._map=G,this._container=N.create("div","mapboxgl-ctrl");var te=N.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},Vd.prototype.onRemove=function(){N.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Vd.prototype.getDefaultPosition=function(){return"bottom-left"},Vd.prototype._updateLogo=function(G){G&&G.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},Vd.prototype._logoRequired=function(){if(this._map.style){var G=this._map.style.sourceCaches;for(var te in G)if(G[te].getSource().mapbox_logo)return!0;return!1}},Vd.prototype._updateCompact=function(){var G=this._container.children;if(G.length){var te=G[0];this._map.getCanvasContainer().offsetWidth<250?te.classList.add("mapboxgl-compact"):te.classList.remove("mapboxgl-compact")}};var Rp=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Rp.prototype.add=function(G){var te=++this._id;return this._queue.push({callback:G,id:te,cancelled:!1}),te},Rp.prototype.remove=function(G){for(var te=this._currentlyRunning,ne=0,ce=te?this._queue.concat(te):this._queue;nece.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(ce.minPitch!=null&&ce.maxPitch!=null&&ce.minPitch>ce.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(ce.minPitch!=null&&ce.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(ce.maxPitch!=null&&ce.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var vt=new qu(ce.minZoom,ce.maxZoom,ce.minPitch,ce.maxPitch,ce.renderWorldCopies);if(G.call(this,vt,ce),this._interactive=ce.interactive,this._maxTileCacheSize=ce.maxTileCacheSize,this._failIfMajorPerformanceCaveat=ce.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=ce.preserveDrawingBuffer,this._antialias=ce.antialias,this._trackResize=ce.trackResize,this._bearingSnap=ce.bearingSnap,this._refreshExpiredTiles=ce.refreshExpiredTiles,this._fadeDuration=ce.fadeDuration,this._crossSourceCollisions=ce.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=ce.collectResourceTiming,this._renderTaskQueue=new Rp,this._controls=[],this._mapId=C.uniqueId(),this._locale=C.extend({},qp,ce.locale),this._clickTolerance=ce.clickTolerance,this._requestManager=new C.RequestManager(ce.transformRequest,ce.accessToken),typeof ce.container=="string"){if(this._container=C.window.document.getElementById(ce.container),!this._container)throw new Error("Container '"+ce.container+"' not found.")}else{if(!(ce.container instanceof Df))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=ce.container}if(ce.maxBounds&&this.setMaxBounds(ce.maxBounds),C.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 Ze._update(!1)}),this.on("moveend",function(){return Ze._update(!1)}),this.on("zoom",function(){return Ze._update(!0)}),C.window!==void 0&&(C.window.addEventListener("online",this._onWindowOnline,!1),C.window.addEventListener("resize",this._onWindowResize,!1),C.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Mh(this,ce),this._hash=ce.hash&&new ld(typeof ce.hash=="string"&&ce.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:ce.center,zoom:ce.zoom,bearing:ce.bearing,pitch:ce.pitch}),ce.bounds&&(this.resize(),this.fitBounds(ce.bounds,C.extend({},ce.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=ce.localIdeographFontFamily,ce.style&&this.setStyle(ce.style,{localIdeographFontFamily:ce.localIdeographFontFamily}),ce.attributionControl&&this.addControl(new bh({customAttribution:ce.customAttribution})),this.addControl(new Vd,ce.logoPosition),this.on("style.load",function(){Ze.transform.unmodified&&Ze.jumpTo(Ze.style.stylesheet)}),this.on("data",function(Pt){Ze._update(Pt.dataType==="style"),Ze.fire(new C.Event(Pt.dataType+"data",Pt))}),this.on("dataloading",function(Pt){Ze.fire(new C.Event(Pt.dataType+"dataloading",Pt))})}G&&(te.__proto__=G),(te.prototype=Object.create(G&&G.prototype)).constructor=te;var ne={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(ce,Ze){if(Ze===void 0&&(Ze=ce.getDefaultPosition?ce.getDefaultPosition():"top-right"),!ce||!ce.onAdd)return this.fire(new C.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var vt=ce.onAdd(this);this._controls.push(ce);var Pt=this._controlPositions[Ze];return Ze.indexOf("bottom")!==-1?Pt.insertBefore(vt,Pt.firstChild):Pt.appendChild(vt),this},te.prototype.removeControl=function(ce){if(!ce||!ce.onRemove)return this.fire(new C.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var Ze=this._controls.indexOf(ce);return Ze>-1&&this._controls.splice(Ze,1),ce.onRemove(this),this},te.prototype.hasControl=function(ce){return this._controls.indexOf(ce)>-1},te.prototype.resize=function(ce){var Ze=this._containerDimensions(),vt=Ze[0],Pt=Ze[1];if(vt===this.transform.width&&Pt===this.transform.height)return this;this._resizeCanvas(vt,Pt),this.transform.resize(vt,Pt),this.painter.resize(vt,Pt);var gn=!this._moving;return gn&&this.fire(new C.Event("movestart",ce)).fire(new C.Event("move",ce)),this.fire(new C.Event("resize",ce)),gn&&this.fire(new C.Event("moveend",ce)),this},te.prototype.getBounds=function(){return this.transform.getBounds()},te.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},te.prototype.setMaxBounds=function(ce){return this.transform.setMaxBounds(C.LngLatBounds.convert(ce)),this._update()},te.prototype.setMinZoom=function(ce){if((ce=ce==null?-2:ce)>=-2&&ce<=this.transform.maxZoom)return this.transform.minZoom=ce,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ce,this._update(),this.getZoom()>ce&&this.setZoom(ce),this;throw new Error("maxZoom must be greater than the current minZoom")},te.prototype.getMaxZoom=function(){return this.transform.maxZoom},te.prototype.setMinPitch=function(ce){if((ce=ce==null?0:ce)<0)throw new Error("minPitch must be greater than or equal to 0");if(ce>=0&&ce<=this.transform.maxPitch)return this.transform.minPitch=ce,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(ce>=this.transform.minPitch)return this.transform.maxPitch=ce,this._update(),this.getPitch()>ce&&this.setPitch(ce),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(ce){return this.transform.renderWorldCopies=ce,this._update()},te.prototype.project=function(ce){return this.transform.locationPoint(C.LngLat.convert(ce))},te.prototype.unproject=function(ce){return this.transform.pointLocation(C.Point.convert(ce))},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(ce,Ze,vt){var Pt,gn=this;if(ce==="mouseenter"||ce==="mouseover"){var dr=!1;return{layer:Ze,listener:vt,delegates:{mousemove:function(ii){var Si=gn.getLayer(Ze)?gn.queryRenderedFeatures(ii.point,{layers:[Ze]}):[];Si.length?dr||(dr=!0,vt.call(gn,new Dh(ce,gn,ii.originalEvent,{features:Si}))):dr=!1},mouseout:function(){dr=!1}}}}if(ce==="mouseleave"||ce==="mouseout"){var _n=!1;return{layer:Ze,listener:vt,delegates:{mousemove:function(ii){(gn.getLayer(Ze)?gn.queryRenderedFeatures(ii.point,{layers:[Ze]}):[]).length?_n=!0:_n&&(_n=!1,vt.call(gn,new Dh(ce,gn,ii.originalEvent)))},mouseout:function(ii){_n&&(_n=!1,vt.call(gn,new Dh(ce,gn,ii.originalEvent)))}}}}return{layer:Ze,listener:vt,delegates:(Pt={},Pt[ce]=function(ii){var Si=gn.getLayer(Ze)?gn.queryRenderedFeatures(ii.point,{layers:[Ze]}):[];Si.length&&(ii.features=Si,vt.call(gn,ii),delete ii.features)},Pt)}},te.prototype.on=function(ce,Ze,vt){if(vt===void 0)return G.prototype.on.call(this,ce,Ze);var Pt=this._createDelegatedListener(ce,Ze,vt);for(var gn in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ce]=this._delegatedListeners[ce]||[],this._delegatedListeners[ce].push(Pt),Pt.delegates)this.on(gn,Pt.delegates[gn]);return this},te.prototype.once=function(ce,Ze,vt){if(vt===void 0)return G.prototype.once.call(this,ce,Ze);var Pt=this._createDelegatedListener(ce,Ze,vt);for(var gn in Pt.delegates)this.once(gn,Pt.delegates[gn]);return this},te.prototype.off=function(ce,Ze,vt){var Pt=this;return vt===void 0?G.prototype.off.call(this,ce,Ze):(this._delegatedListeners&&this._delegatedListeners[ce]&&function(gn){for(var dr=gn[ce],_n=0;_n180;){var Pt=ne.locationPoint(G);if(Pt.x>=0&&Pt.y>=0&&Pt.x<=ne.width&&Pt.y<=ne.height)break;G.lng>ne.center.lng?G.lng-=360:G.lng+=360}return G}$d.prototype.down=function(G,te){this.mouseRotate.mousedown(G,te),this.mousePitch&&this.mousePitch.mousedown(G,te),N.disableDrag()},$d.prototype.move=function(G,te){var ne=this.map,ce=this.mouseRotate.mousemoveWindow(G,te);if(ce&&ce.bearingDelta&&ne.setBearing(ne.getBearing()+ce.bearingDelta),this.mousePitch){var Ze=this.mousePitch.mousemoveWindow(G,te);Ze&&Ze.pitchDelta&&ne.setPitch(ne.getPitch()+Ze.pitchDelta)}},$d.prototype.off=function(){var G=this.element;N.removeEventListener(G,"mousedown",this.mousedown),N.removeEventListener(G,"touchstart",this.touchstart,{passive:!1}),N.removeEventListener(G,"touchmove",this.touchmove),N.removeEventListener(G,"touchend",this.touchend),N.removeEventListener(G,"touchcancel",this.reset),this.offTemp()},$d.prototype.offTemp=function(){N.enableDrag(),N.removeEventListener(C.window,"mousemove",this.mousemove),N.removeEventListener(C.window,"mouseup",this.mouseup)},$d.prototype.mousedown=function(G){this.down(C.extend({},G,{ctrlKey:!0,preventDefault:function(){return G.preventDefault()}}),N.mousePos(this.element,G)),N.addEventListener(C.window,"mousemove",this.mousemove),N.addEventListener(C.window,"mouseup",this.mouseup)},$d.prototype.mousemove=function(G){this.move(G,N.mousePos(this.element,G))},$d.prototype.mouseup=function(G){this.mouseRotate.mouseupWindow(G),this.mousePitch&&this.mousePitch.mouseupWindow(G),this.offTemp()},$d.prototype.touchstart=function(G){G.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=N.touchPos(this.element,G.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return G.preventDefault()}},this._startPos))},$d.prototype.touchmove=function(G){G.targetTouches.length!==1?this.reset():(this._lastPos=N.touchPos(this.element,G.targetTouches)[0],this.move({preventDefault:function(){return G.preventDefault()}},this._lastPos))},$d.prototype.touchend=function(G){G.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=ce}this._isDragging&&(this._pos=ne.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 C.Event("dragstart"))),this.fire(new C.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 C.Event("dragend")),this._state="inactive"},te.prototype._addDragHandler=function(ne){this._element.contains(ne.originalEvent.target)&&(ne.preventDefault(),this._positionDelta=ne.point.sub(this._pos).add(this._offset),this._pointerdownPos=ne.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(ne){return this._draggable=!!ne,this._map&&(ne?(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(ne){return this._rotation=ne||0,this._update(),this},te.prototype.getRotation=function(){return this._rotation},te.prototype.setRotationAlignment=function(ne){return this._rotationAlignment=ne||"auto",this._update(),this},te.prototype.getRotationAlignment=function(){return this._rotationAlignment},te.prototype.setPitchAlignment=function(ne){return this._pitchAlignment=ne&&ne!=="auto"?ne:this._rotationAlignment,this._update(),this},te.prototype.getPitchAlignment=function(){return this._pitchAlignment},te}(C.Evented),ot={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},dn=0,tr=!1,Te=function(G){function te(ne){G.call(this),this.options=C.extend({},ot,ne),C.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return G&&(te.__proto__=G),(te.prototype=Object.create(G&&G.prototype)).constructor=te,te.prototype.onAdd=function(ne){var ce;return this._map=ne,this._container=N.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),ce=this._setupUI,ae!==void 0?ce(ae):C.window.navigator.permissions!==void 0?C.window.navigator.permissions.query({name:"geolocation"}).then(function(Ze){ce(ae=Ze.state!=="denied")}):ce(ae=!!C.window.navigator.geolocation),this._container},te.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(C.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(),N.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,dn=0,tr=!1},te.prototype._isOutOfMapMaxBounds=function(ne){var ce=this._map.getMaxBounds(),Ze=ne.coords;return ce&&(Ze.longitudece.getEast()||Ze.latitudece.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(ne){if(this._map){if(this._isOutOfMapMaxBounds(ne))return this._setErrorState(),this.fire(new C.Event("outofmaxbounds",ne)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=ne,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(ne),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(ne),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new C.Event("geolocate",ne)),this._finish()}},te.prototype._updateCamera=function(ne){var ce=new C.LngLat(ne.coords.longitude,ne.coords.latitude),Ze=ne.coords.accuracy,vt=this._map.getBearing(),Pt=C.extend({bearing:vt},this.options.fitBoundsOptions);this._map.fitBounds(ce.toBounds(Ze),Pt,{geolocateSource:!0})},te.prototype._updateMarker=function(ne){if(ne){var ce=new C.LngLat(ne.coords.longitude,ne.coords.latitude);this._accuracyCircleMarker.setLngLat(ce).addTo(this._map),this._userLocationDotMarker.setLngLat(ce).addTo(this._map),this._accuracy=ne.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},te.prototype._updateCircleRadius=function(){var ne=this._map._container.clientHeight/2,ce=this._map.unproject([0,ne]),Ze=this._map.unproject([1,ne]),vt=ce.distanceTo(Ze),Pt=Math.ceil(2*this._accuracy/vt);this._circleElement.style.width=Pt+"px",this._circleElement.style.height=Pt+"px"},te.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},te.prototype._onError=function(ne){if(this._map){if(this.options.trackUserLocation)if(ne.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 ce=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=ce,this._geolocateButton.setAttribute("aria-label",ce),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(ne.code===3&&tr)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new C.Event("error",ne)),this._finish()}},te.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},te.prototype._setupUI=function(ne){var ce=this;if(this._container.addEventListener("contextmenu",function(Pt){return Pt.preventDefault()}),this._geolocateButton=N.create("button","mapboxgl-ctrl-geolocate",this._container),N.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",ne===!1){C.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var Ze=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=Ze,this._geolocateButton.setAttribute("aria-label",Ze)}else{var vt=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=vt,this._geolocateButton.setAttribute("aria-label",vt)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=N.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new me(this._dotElement),this._circleElement=N.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new me({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(Pt){Pt.geolocateSource||ce._watchState!=="ACTIVE_LOCK"||Pt.originalEvent&&Pt.originalEvent.type==="resize"||(ce._watchState="BACKGROUND",ce._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),ce._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),ce.fire(new C.Event("trackuserlocationend")))})},te.prototype.trigger=function(){if(!this._setup)return C.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 C.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":dn--,tr=!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 C.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 C.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 ne;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++dn>1?(ne={maximumAge:6e5,timeout:0},tr=!0):(ne=this.options.positionOptions,tr=!1),this._geolocationWatchID=C.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ne)}}else C.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},te.prototype._clearWatch=function(){C.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}(C.Evented),D={maxWidth:100,unit:"metric"},ie=function(G){this.options=C.extend({},D,G),C.bindAll(["_onMove","setUnit"],this)};function we(G,te,ne){var ce=ne&&ne.maxWidth||100,Ze=G._container.clientHeight/2,vt=G.unproject([0,Ze]),Pt=G.unproject([ce,Ze]),gn=vt.distanceTo(Pt);if(ne&&ne.unit==="imperial"){var dr=3.2808*gn;dr>5280?Oe(te,ce,dr/5280,G._getUIString("ScaleControl.Miles")):Oe(te,ce,dr,G._getUIString("ScaleControl.Feet"))}else ne&&ne.unit==="nautical"?Oe(te,ce,gn/1852,G._getUIString("ScaleControl.NauticalMiles")):gn>=1e3?Oe(te,ce,gn/1e3,G._getUIString("ScaleControl.Kilometers")):Oe(te,ce,gn,G._getUIString("ScaleControl.Meters"))}function Oe(G,te,ne,ce){var Ze,vt,Pt,gn=(Ze=ne,(vt=Math.pow(10,(""+Math.floor(Ze)).length-1))*(Pt=(Pt=Ze/vt)>=10?10:Pt>=5?5:Pt>=3?3:Pt>=2?2:Pt>=1?1:function(dr){var _n=Math.pow(10,Math.ceil(-Math.log(dr)/Math.LN10));return Math.round(dr*_n)/_n}(Pt)));G.style.width=te*(gn/ne)+"px",G.innerHTML=gn+" "+ce}ie.prototype.getDefaultPosition=function(){return"bottom-left"},ie.prototype._onMove=function(){we(this._map,this._container,this.options)},ie.prototype.onAdd=function(G){return this._map=G,this._container=N.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",G.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},ie.prototype.onRemove=function(){N.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},ie.prototype.setUnit=function(G){this.options.unit=G,we(this._map,this._container,this.options)};var ut=function(G){this._fullscreen=!1,G&&G.container&&(G.container instanceof C.window.HTMLElement?this._container=G.container:C.warnOnce("Full screen control 'container' must be a DOM element.")),C.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in C.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in C.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in C.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in C.window.document&&(this._fullscreenchange="MSFullscreenChange")};ut.prototype.onAdd=function(G){return this._map=G,this._container||(this._container=this._map.getContainer()),this._controlContainer=N.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",C.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},ut.prototype.onRemove=function(){N.remove(this._controlContainer),this._map=null,C.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},ut.prototype._checkFullscreenSupport=function(){return!!(C.window.document.fullscreenEnabled||C.window.document.mozFullScreenEnabled||C.window.document.msFullscreenEnabled||C.window.document.webkitFullscreenEnabled)},ut.prototype._setupUI=function(){var G=this._fullscreenButton=N.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);N.create("span","mapboxgl-ctrl-icon",G).setAttribute("aria-hidden",!0),G.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),C.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},ut.prototype._updateTitle=function(){var G=this._getTitle();this._fullscreenButton.setAttribute("aria-label",G),this._fullscreenButton.title=G},ut.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},ut.prototype._isFullscreen=function(){return this._fullscreen},ut.prototype._changeIcon=function(){(C.window.document.fullscreenElement||C.window.document.mozFullScreenElement||C.window.document.webkitFullscreenElement||C.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())},ut.prototype._onClickFullscreen=function(){this._isFullscreen()?C.window.document.exitFullscreen?C.window.document.exitFullscreen():C.window.document.mozCancelFullScreen?C.window.document.mozCancelFullScreen():C.window.document.msExitFullscreen?C.window.document.msExitFullscreen():C.window.document.webkitCancelFullScreen&&C.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 Zt={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},tn=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),kn=function(G){function te(ne){G.call(this),this.options=C.extend(Object.create(Zt),ne),C.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return G&&(te.__proto__=G),(te.prototype=Object.create(G&&G.prototype)).constructor=te,te.prototype.addTo=function(ne){return this._map&&this.remove(),this._map=ne,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 C.Event("open")),this},te.prototype.isOpen=function(){return!!this._map},te.prototype.remove=function(){return this._content&&N.remove(this._content),this._container&&(N.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 C.Event("close")),this},te.prototype.getLngLat=function(){return this._lngLat},te.prototype.setLngLat=function(ne){return this._lngLat=C.LngLat.convert(ne),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(ne){return this.setDOMContent(C.window.document.createTextNode(ne))},te.prototype.setHTML=function(ne){var ce,Ze=C.window.document.createDocumentFragment(),vt=C.window.document.createElement("body");for(vt.innerHTML=ne;ce=vt.firstChild;)Ze.appendChild(ce);return this.setDOMContent(Ze)},te.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},te.prototype.setMaxWidth=function(ne){return this.options.maxWidth=ne,this._update(),this},te.prototype.setDOMContent=function(ne){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=N.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(ne),this._createCloseButton(),this._update(),this._focusFirstElement(),this},te.prototype.addClassName=function(ne){this._container&&this._container.classList.add(ne)},te.prototype.removeClassName=function(ne){this._container&&this._container.classList.remove(ne)},te.prototype.setOffset=function(ne){return this.options.offset=ne,this._update(),this},te.prototype.toggleClassName=function(ne){if(this._container)return this._container.classList.toggle(ne)},te.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=N.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(ne){this._update(ne.point)},te.prototype._onMouseMove=function(ne){this._update(ne.point)},te.prototype._onDrag=function(ne){this._update(ne.point)},te.prototype._update=function(ne){var ce=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=N.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=N.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Si){return ce._container.classList.add(Si)}),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=zo(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||ne)){var Ze=this._pos=this._trackPointer&&ne?ne:this._map.project(this._lngLat),vt=this.options.anchor,Pt=function Si(Vi){if(Vi){if(typeof Vi=="number"){var Fo=Math.round(Math.sqrt(.5*Math.pow(Vi,2)));return{center:new C.Point(0,0),top:new C.Point(0,Vi),"top-left":new C.Point(Fo,Fo),"top-right":new C.Point(-Fo,Fo),bottom:new C.Point(0,-Vi),"bottom-left":new C.Point(Fo,-Fo),"bottom-right":new C.Point(-Fo,-Fo),left:new C.Point(Vi,0),right:new C.Point(-Vi,0)}}if(Vi instanceof C.Point||Array.isArray(Vi)){var Go=C.Point.convert(Vi);return{center:Go,top:Go,"top-left":Go,"top-right":Go,bottom:Go,"bottom-left":Go,"bottom-right":Go,left:Go,right:Go}}return{center:C.Point.convert(Vi.center||[0,0]),top:C.Point.convert(Vi.top||[0,0]),"top-left":C.Point.convert(Vi["top-left"]||[0,0]),"top-right":C.Point.convert(Vi["top-right"]||[0,0]),bottom:C.Point.convert(Vi.bottom||[0,0]),"bottom-left":C.Point.convert(Vi["bottom-left"]||[0,0]),"bottom-right":C.Point.convert(Vi["bottom-right"]||[0,0]),left:C.Point.convert(Vi.left||[0,0]),right:C.Point.convert(Vi.right||[0,0])}}return Si(new C.Point(0,0))}(this.options.offset);if(!vt){var gn,dr=this._container.offsetWidth,_n=this._container.offsetHeight;gn=Ze.y+Pt.bottom.y<_n?["top"]:Ze.y>this._map.transform.height-_n?["bottom"]:[],Ze.xthis._map.transform.width-dr/2&&gn.push("right"),vt=gn.length===0?"bottom":gn.join("-")}var ii=Ze.add(Pt[vt]).round();N.setTransform(this._container,L[vt]+" translate("+ii.x+"px,"+ii.y+"px)"),U(this._container,vt,"popup")}},te.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var ne=this._container.querySelector(tn);ne&&ne.focus()}},te.prototype._onClose=function(){this.remove()},te}(C.Evented),xr={version:C.version,supported:x,setRTLTextPlugin:C.setRTLTextPlugin,getRTLTextPluginStatus:C.getRTLTextPluginStatus,Map:Hf,NavigationControl:Zh,GeolocateControl:Te,AttributionControl:bh,ScaleControl:ie,FullscreenControl:ut,Popup:kn,Marker:me,Style:Al,LngLat:C.LngLat,LngLatBounds:C.LngLatBounds,Point:C.Point,MercatorCoordinate:C.MercatorCoordinate,Evented:C.Evented,config:C.config,prewarm:function(){bi().acquire(Yt)},clearPrewarmedResources:function(){var G=fr;G&&(G.isPreloaded()&&G.numActive()===1?(G.release(Yt),fr=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 C.config.ACCESS_TOKEN},set accessToken(G){C.config.ACCESS_TOKEN=G},get baseApiUrl(){return C.config.API_URL},set baseApiUrl(G){C.config.API_URL=G},get workerCount(){return xn.workerCount},set workerCount(G){xn.workerCount=G},get maxParallelImageRequests(){return C.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(G){C.config.MAX_PARALLEL_IMAGE_REQUESTS=G},clearStorage:function(G){C.clearTileCache(G)},workerUrl:""};return xr}),v})},57020:function(mt,q,_){"use strict";_.r(q),_.d(q,{CancellationTokenSource:function(){return nX},Emitter:function(){return rX},KeyCode:function(){return iX},KeyMod:function(){return oX},MarkerSeverity:function(){return cX},MarkerTag:function(){return hX},Position:function(){return sX},Range:function(){return aX},Selection:function(){return lX},SelectionDirection:function(){return uX},Token:function(){return fX},Uri:function(){return dX},default:function(){return Yee},editor:function(){return pX},languages:function(){return gX}});var v={};_.r(v),_.d(v,{PixelRatio:function(){return _l},addMatchMediaChangeListener:function(){return wo},getZoomFactor:function(){return El},isAndroid:function(){return Hs},isChrome:function(){return ri},isElectron:function(){return _s},isFirefox:function(){return to},isSafari:function(){return ao},isStandalone:function(){return Bi},isWebKit:function(){return An},isWebkitWebView:function(){return Mi}});var M={};_.r(M),_.d(M,{CancellationTokenSource:function(){return nX},Emitter:function(){return rX},KeyCode:function(){return iX},KeyMod:function(){return oX},MarkerSeverity:function(){return cX},MarkerTag:function(){return hX},Position:function(){return sX},Range:function(){return aX},Selection:function(){return lX},SelectionDirection:function(){return uX},Token:function(){return fX},Uri:function(){return dX},editor:function(){return pX},languages:function(){return gX}});var C={};_.r(C),_.d(C,{CancellationTokenSource:function(){return nX},Emitter:function(){return rX},KeyCode:function(){return iX},KeyMod:function(){return oX},MarkerSeverity:function(){return cX},MarkerTag:function(){return hX},Position:function(){return sX},Range:function(){return aX},Selection:function(){return lX},SelectionDirection:function(){return uX},Token:function(){return fX},Uri:function(){return dX},default:function(){return Yee},editor:function(){return pX},languages:function(){return gX}});class x{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?be.isErrorNoTelemetry(e)?new be(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 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 te(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($i){return $i&&typeof $i=="object"&&typeof $i[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function n(){return t}o.empty=n;function*r($i){yield $i}o.single=r;function i($i){return $i||t}o.from=i;function s($i){return!$i||$i[Symbol.iterator]().next().done===!0}o.isEmpty=s;function d($i){return $i[Symbol.iterator]().next().value}o.first=d;function x($i,is){for(const Ys of $i)if(is(Ys))return!0;return!1}o.some=x;function E($i,is){for(const Ys of $i)if(is(Ys))return Ys}o.find=E;function*O($i,is){for(const Ys of $i)is(Ys)&&(yield Ys)}o.filter=O;function*j($i,is){let Ys=0;for(const fo of $i)yield is(fo,Ys++)}o.map=j;function*ie(...$i){for(const is of $i)for(const Ys of is)yield Ys}o.concat=ie;function*Ee($i){for(const is of $i)for(const Ys of is)yield Ys}o.concatNested=Ee;function Ge($i,is,Ys){let fo=Ys;for(const lo of $i)fo=is(fo,lo);return fo}o.reduce=Ge;function ct($i,is){let Ys=0;for(const fo of $i)is(fo,Ys++)}o.forEach=ct;function*Nt($i,is,Ys=$i.length){for(is<0&&(is+=$i.length),Ys<0?Ys+=$i.length:Ys>$i.length&&(Ys=$i.length);isfo===lo){const fo=$i[Symbol.iterator](),lo=is[Symbol.iterator]();for(;;){const $s=fo.next(),ll=lo.next();if($s.done!==ll.done)return!1;if($s.done)return!0;if(!Ys($s.value,ll.value))return!1}}o.equals=Cr})(fe||(fe={}));const Be=!1;let Ie=null;function je(o){Ie=o}if(Be){const o="__is_disposable_tracked__";je(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 be(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 Ce(o,e){if(Ie)for(const t of o)Ie.setParent(t,e)}function xe(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 ge(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 Ae(e);return Array.isArray(o)?[]:o}else if(o)return o.dispose(),o}function Se(...o){const e=Pt(()=>We(o));return Ce(o,e),e}function Pt(o){const e=be({dispose:he(()=>{ve(e),o()})});return e}class dt{constructor(){this._toDispose=new Set,this._isDisposed=!1,be(this)}dispose(){this._isDisposed||(ve(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?dt.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}}dt.DISABLE_DISPOSED_WARNING=!1;class He{constructor(){this._store=new dt,be(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 Ct{constructor(){this._isDisposed=!1,be(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 ft{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class zt{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,be(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 mt{constructor(e){this.object=e}dispose(){}}class yn{constructor(e){this.element=e,this.next=yn.Undefined,this.prev=yn.Undefined}}yn.Undefined=new yn(void 0);class Bn{constructor(){this._first=yn.Undefined,this._last=yn.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===yn.Undefined}clear(){let e=this._first;for(;e!==yn.Undefined;){const t=e.next;e.prev=yn.Undefined,e.next=yn.Undefined,e=t}this._first=yn.Undefined,this._last=yn.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new yn(e);if(this._first===yn.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!==yn.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==yn.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==yn.Undefined&&e.next!==yn.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===yn.Undefined&&e.next===yn.Undefined?(this._first=yn.Undefined,this._last=yn.Undefined):e.next===yn.Undefined?(this._last=this._last.prev,this._last.next=yn.Undefined):e.prev===yn.Undefined&&(this._first=this._first.next,this._first.prev=yn.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==yn.Undefined;)yield e.element,e=e.next}}var Lr=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 ri=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const gi="i-default";function ro(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}),ri&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function To(o,e){let t=o[e];return t||(t=o["*"],t)?t:null}function _r(o){return o.charAt(o.length-1)==="/"?o:o+"/"}function Bo(o,e,t){return Lr(this,void 0,void 0,function*(){const n=_r(o)+_r(e)+"vscode/"+_r(t),r=yield fetch(n);if(r.ok)return yield r.json();throw new Error(`${r.status} - ${r.statusText}`)})}function fs(o){return function(e,t){const n=Array.prototype.slice.call(arguments,2);return ro(o[e],n)}}function me(o,e,...t){return ro(e,t)}function So(o){}function ho(o){ri=o}function go(o,e){var t;return{localize:fs(e[o]),getConfiguredDefaultLocale:(t=e.getConfiguredDefaultLocale)!==null&&t!==void 0?t:n=>{}}}function ji(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:me,getConfiguredDefaultLocale:()=>{var O;return(O=i.availableLanguages)===null||O===void 0?void 0:O["*"]}});const s=i.availableLanguages?To(i.availableLanguages,o):null,d=s===null||s===gi;let x=".nls";d||(x=x+"."+s);const E=O=>{Array.isArray(O)?O.localize=fs(O):O.localize=fs(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?Lr(this,void 0,void 0,function*(){var O;try{const j=yield Bo(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],Ee=yield Bo(i.translationServiceUrl,ie,o);return(O=i.availableLanguages)!==null&&O!==void 0||(i.availableLanguages={}),i.availableLanguages["*"]=ie,E(Ee)}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 No=m(97671),dn;const Ve="en";let yt=!1,xt=!1,Wt=!1,sn=!1,Ot=!1,Tt=!1,bt=!1,Ht=!1,zn=!1,en,fr=Ve,Kr=null,ii;const si=typeof self=="object"?self:typeof m.g=="object"?m.g:{};let uo;typeof si.vscode!="undefined"&&typeof si.vscode.process!="undefined"?uo=si.vscode.process:typeof No!="undefined"&&(uo=No);const Qo=typeof((dn=uo==null?void 0:uo.versions)===null||dn===void 0?void 0:dn.electron)=="string",_n=Qo&&(uo==null?void 0:uo.type)==="renderer";if(typeof navigator=="object"&&!_n)ii=navigator.userAgent,yt=ii.indexOf("Windows")>=0,xt=ii.indexOf("Macintosh")>=0,Ht=(ii.indexOf("Macintosh")>=0||ii.indexOf("iPad")>=0||ii.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Wt=ii.indexOf("Linux")>=0,Tt=!0,en=(me({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||Ve,fr=en;else if(typeof uo=="object"){yt=uo.platform==="win32",xt=uo.platform==="darwin",Wt=uo.platform==="linux",sn=Wt&&!!uo.env.SNAP&&!!uo.env.SNAP_REVISION,bt=Qo,zn=!!uo.env.CI||!!uo.env.BUILD_ARTIFACTSTAGINGDIRECTORY,en=Ve,fr=Ve;const o=uo.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];en=e.locale,fr=t||Ve,Kr=e._translationsConfigFile}catch(e){}Ot=!0}else console.error("Unable to resolve platform.");let Vr=0;xt?Vr=1:yt?Vr=3:Wt&&(Vr=2);const qr=yt,Ui=xt,xo=Wt,Us=Ot,$n=Tt,Kn=Tt&&typeof si.importScripts=="function",Fr=Ht,mi=ii,Tr=fr,ti=typeof si.postMessage=="function"&&!si.importScripts,di=(()=>{if(ti){const o=[];si.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}),si.postMessage({vscodeScheduleAsyncWork:n},"*")}}return o=>setTimeout(o)})(),rn=xt||Ht?2:yt?1:3;let Qn=!0,Xr=!1;function ao(){if(!Xr){Xr=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,Qn=new Uint16Array(o.buffer)[0]===512+1}return Qn}const as=!!(mi&&mi.indexOf("Chrome")>=0),Bt=!!(mi&&mi.indexOf("Firefox")>=0),pn=!!(!as&&mi&&mi.indexOf("Safari")>=0),xr=!!(mi&&mi.indexOf("Edg/")>=0),Jr=!!(mi&&mi.indexOf("Android")>=0),vi=si.performance&&typeof si.performance.now=="function";class Ti{constructor(e){this._highResolution=vi&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new Ti(e)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?si.performance.now():Date.now()}}const co=!1,Qr=!1;var oi;(function(o){o.None=()=>He.None;function e(fo){if(Qr){const{onListenerDidAdd:lo}=fo,$s=Gn.create();let ll=0;fo.onListenerDidAdd=()=>{++ll===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),$s.print()),lo==null||lo()}}}function t(fo){return(lo,$s=null,ll)=>{let kl=!1,bu;return bu=fo(nc=>{if(!kl)return bu?bu.dispose():kl=!0,lo.call($s,nc)},null,ll),kl&&bu.dispose(),bu}}o.once=t;function n(fo,lo,$s){return E((ll,kl=null,bu)=>fo(nc=>ll.call(kl,lo(nc)),null,bu),$s)}o.map=n;function r(fo,lo,$s){return E((ll,kl=null,bu)=>fo(nc=>{lo(nc),ll.call(kl,nc)},null,bu),$s)}o.forEach=r;function i(fo,lo,$s){return E((ll,kl=null,bu)=>fo(nc=>lo(nc)&&ll.call(kl,nc),null,bu),$s)}o.filter=i;function s(fo){return fo}o.signal=s;function d(...fo){return(lo,$s=null,ll)=>Se(...fo.map(kl=>kl(bu=>lo.call($s,bu),null,ll)))}o.any=d;function x(fo,lo,$s,ll){let kl=$s;return n(fo,bu=>(kl=lo(kl,bu),kl),ll)}o.reduce=x;function E(fo,lo){let $s;const ll={onFirstListenerAdd(){$s=fo(kl.fire,kl)},onLastListenerRemove(){$s==null||$s.dispose()}};lo||e(ll);const kl=new Ln(ll);return lo==null||lo.add(kl),kl.event}function O(fo,lo,$s=100,ll=!1,kl,bu){let nc,Sd,Rh,Cf=0;const ep={leakWarningThreshold:kl,onFirstListenerAdd(){nc=fo(wg=>{Cf++,Sd=lo(Sd,wg),ll&&!Rh&&(dp.fire(Sd),Sd=void 0),clearTimeout(Rh),Rh=setTimeout(()=>{const w0=Sd;Sd=void 0,Rh=void 0,(!ll||Cf>1)&&dp.fire(w0),Cf=0},$s)})},onLastListenerRemove(){nc.dispose()}};bu||e(ep);const dp=new Ln(ep);return bu==null||bu.add(dp),dp.event}o.debounce=O;function j(fo,lo=(ll,kl)=>ll===kl,$s){let ll=!0,kl;return i(fo,bu=>{const nc=ll||!lo(bu,kl);return ll=!1,kl=bu,nc},$s)}o.latch=j;function ie(fo,lo,$s){return[o.filter(fo,lo,$s),o.filter(fo,ll=>!lo(ll),$s)]}o.split=ie;function Ee(fo,lo=!1,$s=[]){let ll=$s.slice(),kl=fo(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=fo(Sd=>nc.fire(Sd)))},onFirstListenerDidAdd(){ll&&(lo?setTimeout(bu):bu())},onLastListenerRemove(){kl&&kl.dispose(),kl=null}});return nc.event}o.buffer=Ee;class Ge{constructor(lo){this.event=lo,this.disposables=new dt}map(lo){return new Ge(n(this.event,lo,this.disposables))}forEach(lo){return new Ge(r(this.event,lo,this.disposables))}filter(lo){return new Ge(i(this.event,lo,this.disposables))}reduce(lo,$s){return new Ge(x(this.event,lo,$s,this.disposables))}latch(){return new Ge(j(this.event,void 0,this.disposables))}debounce(lo,$s=100,ll=!1,kl){return new Ge(O(this.event,lo,$s,ll,kl,this.disposables))}on(lo,$s,ll){return this.event(lo,$s,ll)}once(lo,$s,ll){return t(this.event)(lo,$s,ll)}dispose(){this.disposables.dispose()}}function ct(fo){return new Ge(fo)}o.chain=ct;function Nt(fo,lo,$s=ll=>ll){const ll=(...Sd)=>nc.fire($s(...Sd)),kl=()=>fo.on(lo,ll),bu=()=>fo.removeListener(lo,ll),nc=new Ln({onFirstListenerAdd:kl,onLastListenerRemove:bu});return nc.event}o.fromNodeEventEmitter=Nt;function Sn(fo,lo,$s=ll=>ll){const ll=(...Sd)=>nc.fire($s(...Sd)),kl=()=>fo.addEventListener(lo,ll),bu=()=>fo.removeEventListener(lo,ll),nc=new Ln({onFirstListenerAdd:kl,onLastListenerRemove:bu});return nc.event}o.fromDOMEventEmitter=Sn;function Dn(fo){return new Promise(lo=>t(fo)(lo))}o.toPromise=Dn;function Cr(fo,lo){return lo(void 0),fo($s=>lo($s))}o.runAndSubscribe=Cr;function $i(fo,lo){let $s=null;function ll(bu){$s==null||$s.dispose(),$s=new dt,lo(bu,$s)}ll(void 0);const kl=fo(bu=>ll(bu));return Pt(()=>{kl.dispose(),$s==null||$s.dispose()})}o.runAndSubscribeWithStore=$i;class is{constructor(lo,$s){this.obs=lo,this._counter=0,this._hasChanged=!1;const ll={onFirstListenerAdd:()=>{lo.addObserver(this)},onLastListenerRemove:()=>{lo.removeObserver(this)}};$s||e(ll),this.emitter=new Ln(ll),$s&&$s.add(this.emitter)}beginUpdate(lo){this._counter++}handleChange(lo,$s){this._hasChanged=!0}endUpdate(lo){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function Ys(fo,lo){return new is(fo,lo).emitter.event}o.fromObservable=Ys})(oi||(oi={}));class Zi{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${Zi._idPool++}`}start(e){this._stopWatch=new Ti(!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}}}Zi._idPool=0;let Ir=-1;class tn{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=Ir;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 N=new x;function V(o){p(o)||N.onUnexpectedError(o)}function R(o){p(o)||N.onUnexpectedExternalError(o)}function k(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:be.isErrorNoTelemetry(o)}}return o}const S="Canceled";function p(o){return o instanceof T?!0:o instanceof Error&&o.name===S&&o.message===S}class T extends Error{constructor(){super(S),this.name=this.message}}function F(){const o=new Error(S);return o.name=o.message,o}function K(o){return o?new Error(`Illegal argument: ${o}`):new Error("Illegal argument")}function he(o){return o?new Error(`Illegal state: ${o}`):new Error("Illegal state")}class fe extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class be extends Error{constructor(e){super(e),this.name="ErrorNoTelemetry"}static fromError(e){if(e instanceof be)return e;const t=new be;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="ErrorNoTelemetry"}}class Ae extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,Ae.prototype);debugger}}function xe(o){const e=this;let t=!1,n;return function(){return t||(t=!0,n=o.apply(e,arguments)),n}}var Se;(function(o){function e(Ji){return Ji&&typeof Ji=="object"&&typeof Ji[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function n(){return t}o.empty=n;function*r(Ji){yield Ji}o.single=r;function i(Ji){return Ji||t}o.from=i;function s(Ji){return!Ji||Ji[Symbol.iterator]().next().done===!0}o.isEmpty=s;function f(Ji){return Ji[Symbol.iterator]().next().value}o.first=f;function w(Ji,Es){for(const la of Ji)if(Es(la))return!0;return!1}o.some=w;function I(Ji,Es){for(const la of Ji)if(Es(la))return la}o.find=I;function*z(Ji,Es){for(const la of Ji)Es(la)&&(yield la)}o.filter=z;function*X(Ji,Es){let la=0;for(const Eo of Ji)yield Es(Eo,la++)}o.map=X;function*ge(...Ji){for(const Es of Ji)for(const la of Es)yield la}o.concat=ge;function*Be(Ji){for(const Es of Ji)for(const la of Es)yield la}o.concatNested=Be;function st(Ji,Es,la){let Eo=la;for(const So of Ji)Eo=Es(Eo,So);return Eo}o.reduce=st;function St(Ji,Es){let la=0;for(const Eo of Ji)Es(Eo,la++)}o.forEach=St;function*nn(Ji,Es,la=Ji.length){for(Es<0&&(Es+=Ji.length),la<0?la+=Ji.length:la>Ji.length&&(la=Ji.length);EsEo===So){const Eo=Ji[Symbol.iterator](),So=Es[Symbol.iterator]();for(;;){const Gs=Eo.next(),yl=So.next();if(Gs.done!==yl.done)return!1;if(Gs.done)return!0;if(!la(Gs.value,yl.value))return!1}}o.equals=Br})(Se||(Se={}));const it=!1;let Xe=null;function ft(o){Xe=o}if(it){const o="__is_disposable_tracked__";ft(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!==lt.None)try{e[o]=!0}catch(n){}}markAsDisposed(e){if(e&&e!==lt.None)try{e[o]=!0}catch(t){}}markAsSingleton(e){}})}function Me(o){return Xe==null||Xe.trackDisposable(o),o}function Ee(o){Xe==null||Xe.markAsDisposed(o)}function ze(o,e){Xe==null||Xe.setParent(o,e)}function Pe(o,e){if(Xe)for(const t of o)Xe.setParent(t,e)}function Re(o){return Xe==null||Xe.markAsSingleton(o),o}class je extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function Ce(o){return typeof o.dispose=="function"&&o.dispose.length===0}function rt(o){if(Se.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 je(e);return Array.isArray(o)?[]:o}else if(o)return o.dispose(),o}function Ne(...o){const e=Xt(()=>rt(o));return Pe(o,e),e}function Xt(o){const e=Me({dispose:xe(()=>{Ee(e),o()})});return e}class Ft{constructor(){this._toDispose=new Set,this._isDisposed=!1,Me(this)}dispose(){this._isDisposed||(Ee(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{rt(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 ze(e,this),this._isDisposed?Ft.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}}Ft.DISABLE_DISPOSED_WARNING=!1;class lt{constructor(){this._store=new Ft,Me(this),ze(this._store,this)}dispose(){Ee(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}lt.None=Object.freeze({dispose(){}});class Bt{constructor(){this._isDisposed=!1,Me(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&&ze(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,Ee(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&&ze(e,null),e}}class At{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class an{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,Me(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0,Ee(this))},this}}class Tt{constructor(e){this.object=e}dispose(){}}class Nn{constructor(e){this.element=e,this.next=Nn.Undefined,this.prev=Nn.Undefined}}Nn.Undefined=new Nn(void 0);class mn{constructor(){this._first=Nn.Undefined,this._last=Nn.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Nn.Undefined}clear(){let e=this._first;for(;e!==Nn.Undefined;){const t=e.next;e.prev=Nn.Undefined,e.next=Nn.Undefined,e=t}this._first=Nn.Undefined,this._last=Nn.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new Nn(e);if(this._first===Nn.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!==Nn.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Nn.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Nn.Undefined&&e.next!==Nn.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Nn.Undefined&&e.next===Nn.Undefined?(this._first=Nn.Undefined,this._last=Nn.Undefined):e.next===Nn.Undefined?(this._last=this._last.prev,this._last.next=Nn.Undefined):e.prev===Nn.Undefined&&(this._first=this._first.next,this._first.prev=Nn.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Nn.Undefined;)yield e.element,e=e.next}}var zn=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 f(z){try{I(n.next(z))}catch(X){s(X)}}function w(z){try{I(n.throw(z))}catch(X){s(X)}}function I(z){z.done?i(z.value):r(z.value).then(f,w)}I((n=n.apply(o,e||[])).next())})};let Kr=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const Ui="i-default";function go(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 f=n;return typeof s=="string"?f=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(f=String(s)),f}),Kr&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function gi(o,e){let t=o[e];return t||(t=o["*"],t)?t:null}function Mr(o){return o.charAt(o.length-1)==="/"?o:o+"/"}function To(o,e,t){return zn(this,void 0,void 0,function*(){const n=Mr(o)+Mr(e)+"vscode/"+Mr(t),r=yield fetch(n);if(r.ok)return yield r.json();throw new Error(`${r.status} - ${r.statusText}`)})}function ms(o){return function(e,t){const n=Array.prototype.slice.call(arguments,2);return go(o[e],n)}}function De(o,e,...t){return go(e,t)}function Oo(o){}function $i(o){Kr=o}function co(o,e){var t;return{localize:ms(e[o]),getConfiguredDefaultLocale:(t=e.getConfiguredDefaultLocale)!==null&&t!==void 0?t:n=>{}}}function Vr(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:De,getConfiguredDefaultLocale:()=>{var z;return(z=i.availableLanguages)===null||z===void 0?void 0:z["*"]}});const s=i.availableLanguages?gi(i.availableLanguages,o):null,f=s===null||s===Ui;let w=".nls";f||(w=w+"."+s);const I=z=>{Array.isArray(z)?z.localize=ms(z):z.localize=ms(z[o]),z.getConfiguredDefaultLocale=()=>{var X;return(X=i.availableLanguages)===null||X===void 0?void 0:X["*"]},t(z)};typeof i.loadBundle=="function"?i.loadBundle(o,s,(z,X)=>{z?e([o+".nls"],I):I(X)}):i.translationServiceUrl&&!f?zn(this,void 0,void 0,function*(){var z;try{const X=yield To(i.translationServiceUrl,s,o);return I(X)}catch(X){if(!s.includes("-"))return console.error(X),e([o+".nls"],I);try{const ge=s.split("-")[0],Be=yield To(i.translationServiceUrl,ge,o);return(z=i.availableLanguages)!==null&&z!==void 0||(i.availableLanguages={}),i.availableLanguages["*"]=ge,I(Be)}catch(ge){return console.error(ge),e([o+".nls"],I)}}}):e([o+w],I,z=>{if(w===".nls"){console.error("Failed trying to load default language strings",z);return}console.error(`Failed to load message bundle for language ${s}. Falling back to the default language:`,z),e([o+".nls"],I)})}var Ro=_(97671),Tn;const nt="en";let Ct=!1,Ht=!1,hn=!1,En=!1,rn=!1,Jt=!1,Mt=!1,Qt=!1,Dn=!1,sn,wr=nt,jr=null,xi;const Pr=typeof self=="object"?self:typeof _.g=="object"?_.g:{};let Hi;typeof Pr.vscode!="undefined"&&typeof Pr.vscode.process!="undefined"?Hi=Pr.vscode.process:typeof Ro!="undefined"&&(Hi=Ro);const Io=typeof((Tn=Hi==null?void 0:Hi.versions)===null||Tn===void 0?void 0:Tn.electron)=="string",On=Io&&(Hi==null?void 0:Hi.type)==="renderer";if(typeof navigator=="object"&&!On)xi=navigator.userAgent,Ct=xi.indexOf("Windows")>=0,Ht=xi.indexOf("Macintosh")>=0,Qt=(xi.indexOf("Macintosh")>=0||xi.indexOf("iPad")>=0||xi.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,hn=xi.indexOf("Linux")>=0,Jt=!0,sn=(De({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||nt,wr=sn;else if(typeof Hi=="object"){Ct=Hi.platform==="win32",Ht=Hi.platform==="darwin",hn=Hi.platform==="linux",En=hn&&!!Hi.env.SNAP&&!!Hi.env.SNAP_REVISION,Mt=Io,Dn=!!Hi.env.CI||!!Hi.env.BUILD_ARTIFACTSTAGINGDIRECTORY,sn=nt,wr=nt;const o=Hi.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];sn=e.locale,wr=t||nt,jr=e._translationsConfigFile}catch(e){}rn=!0}else console.error("Unable to resolve platform.");let zr=0;Ht?zr=1:Ct?zr=3:hn&&(zr=2);const qr=Ct,Wi=Ht,ir=hn,Jn=rn,$t=Jt,Gt=Jt&&typeof Pr.importScripts=="function",wn=Qt,Zn=xi,_r=wr,qn=typeof Pr.postMessage=="function"&&!Pr.importScripts,$n=(()=>{if(qn){const o=[];Pr.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}),Pr.postMessage({vscodeScheduleAsyncWork:n},"*")}}return o=>setTimeout(o)})(),jt=Ht||Qt?2:Ct?1:3;let In=!0,vr=!1;function Ur(){if(!vr){vr=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,In=new Uint16Array(o.buffer)[0]===512+1}return In}const Ao=!!(Zn&&Zn.indexOf("Chrome")>=0),Yt=!!(Zn&&Zn.indexOf("Firefox")>=0),xn=!!(!Ao&&Zn&&Zn.indexOf("Safari")>=0),fr=!!(Zn&&Zn.indexOf("Edg/")>=0),Nr=!!(Zn&&Zn.indexOf("Android")>=0),bi=Pr.performance&&typeof Pr.performance.now=="function";class Ei{constructor(e){this._highResolution=bi&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new Ei(e)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?Pr.performance.now():Date.now()}}const Yi=!1,di=!1;var Wr;(function(o){o.None=()=>lt.None;function e(Eo){if(di){const{onListenerDidAdd:So}=Eo,Gs=yo.create();let yl=0;Eo.onListenerDidAdd=()=>{++yl===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),Gs.print()),So==null||So()}}}function t(Eo){return(So,Gs=null,yl)=>{let Zl=!1,zu;return zu=Eo(mc=>{if(!Zl)return zu?zu.dispose():Zl=!0,So.call(Gs,mc)},null,yl),Zl&&zu.dispose(),zu}}o.once=t;function n(Eo,So,Gs){return I((yl,Zl=null,zu)=>Eo(mc=>yl.call(Zl,So(mc)),null,zu),Gs)}o.map=n;function r(Eo,So,Gs){return I((yl,Zl=null,zu)=>Eo(mc=>{So(mc),yl.call(Zl,mc)},null,zu),Gs)}o.forEach=r;function i(Eo,So,Gs){return I((yl,Zl=null,zu)=>Eo(mc=>So(mc)&&yl.call(Zl,mc),null,zu),Gs)}o.filter=i;function s(Eo){return Eo}o.signal=s;function f(...Eo){return(So,Gs=null,yl)=>Ne(...Eo.map(Zl=>Zl(zu=>So.call(Gs,zu),null,yl)))}o.any=f;function w(Eo,So,Gs,yl){let Zl=Gs;return n(Eo,zu=>(Zl=So(Zl,zu),Zl),yl)}o.reduce=w;function I(Eo,So){let Gs;const yl={onFirstListenerAdd(){Gs=Eo(Zl.fire,Zl)},onLastListenerRemove(){Gs==null||Gs.dispose()}};So||e(yl);const Zl=new Sr(yl);return So==null||So.add(Zl),Zl.event}function z(Eo,So,Gs=100,yl=!1,Zl,zu){let mc,Qh,_f,ip=0;const Op={leakWarningThreshold:Zl,onFirstListenerAdd(){mc=Eo(Kg=>{ip++,Qh=So(Qh,Kg),yl&&!_f&&(Hp.fire(Qh),Qh=void 0),clearTimeout(_f),_f=setTimeout(()=>{const U0=Qh;Qh=void 0,_f=void 0,(!yl||ip>1)&&Hp.fire(U0),ip=0},Gs)})},onLastListenerRemove(){mc.dispose()}};zu||e(Op);const Hp=new Sr(Op);return zu==null||zu.add(Hp),Hp.event}o.debounce=z;function X(Eo,So=(yl,Zl)=>yl===Zl,Gs){let yl=!0,Zl;return i(Eo,zu=>{const mc=yl||!So(zu,Zl);return yl=!1,Zl=zu,mc},Gs)}o.latch=X;function ge(Eo,So,Gs){return[o.filter(Eo,So,Gs),o.filter(Eo,yl=>!So(yl),Gs)]}o.split=ge;function Be(Eo,So=!1,Gs=[]){let yl=Gs.slice(),Zl=Eo(Qh=>{yl?yl.push(Qh):mc.fire(Qh)});const zu=()=>{yl==null||yl.forEach(Qh=>mc.fire(Qh)),yl=null},mc=new Sr({onFirstListenerAdd(){Zl||(Zl=Eo(Qh=>mc.fire(Qh)))},onFirstListenerDidAdd(){yl&&(So?setTimeout(zu):zu())},onLastListenerRemove(){Zl&&Zl.dispose(),Zl=null}});return mc.event}o.buffer=Be;class st{constructor(So){this.event=So,this.disposables=new Ft}map(So){return new st(n(this.event,So,this.disposables))}forEach(So){return new st(r(this.event,So,this.disposables))}filter(So){return new st(i(this.event,So,this.disposables))}reduce(So,Gs){return new st(w(this.event,So,Gs,this.disposables))}latch(){return new st(X(this.event,void 0,this.disposables))}debounce(So,Gs=100,yl=!1,Zl){return new st(z(this.event,So,Gs,yl,Zl,this.disposables))}on(So,Gs,yl){return this.event(So,Gs,yl)}once(So,Gs,yl){return t(this.event)(So,Gs,yl)}dispose(){this.disposables.dispose()}}function St(Eo){return new st(Eo)}o.chain=St;function nn(Eo,So,Gs=yl=>yl){const yl=(...Qh)=>mc.fire(Gs(...Qh)),Zl=()=>Eo.on(So,yl),zu=()=>Eo.removeListener(So,yl),mc=new Sr({onFirstListenerAdd:Zl,onLastListenerRemove:zu});return mc.event}o.fromNodeEventEmitter=nn;function Un(Eo,So,Gs=yl=>yl){const yl=(...Qh)=>mc.fire(Gs(...Qh)),Zl=()=>Eo.addEventListener(So,yl),zu=()=>Eo.removeEventListener(So,yl),mc=new Sr({onFirstListenerAdd:Zl,onLastListenerRemove:zu});return mc.event}o.fromDOMEventEmitter=Un;function nr(Eo){return new Promise(So=>t(Eo)(So))}o.toPromise=nr;function Br(Eo,So){return So(void 0),Eo(Gs=>So(Gs))}o.runAndSubscribe=Br;function Ji(Eo,So){let Gs=null;function yl(zu){Gs==null||Gs.dispose(),Gs=new Ft,So(zu,Gs)}yl(void 0);const Zl=Eo(zu=>yl(zu));return Xt(()=>{Zl.dispose(),Gs==null||Gs.dispose()})}o.runAndSubscribeWithStore=Ji;class Es{constructor(So,Gs){this.obs=So,this._counter=0,this._hasChanged=!1;const yl={onFirstListenerAdd:()=>{So.addObserver(this)},onLastListenerRemove:()=>{So.removeObserver(this)}};Gs||e(yl),this.emitter=new Sr(yl),Gs&&Gs.add(this.emitter)}beginUpdate(So){this._counter++}handleChange(So,Gs){this._hasChanged=!0}endUpdate(So){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function la(Eo,So){return new Es(Eo,So).emitter.event}o.fromObservable=la})(Wr||(Wr={}));class Ni{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${Ni._idPool++}`}start(e){this._stopWatch=new Ei(!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}}}Ni._idPool=0;let kr=-1;class Xr{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=kr;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 yo{constructor(e){this.value=e}static create(){var e;return new yo((e=new Error().stack)!==null&&e!==void 0?e:"")}print(){console.warn(this.value.split(` `).slice(2).join(` -`))}}class Ei{constructor(e,t,n){this.callback=e,this.callbackThis=t,this.stack=n,this.subscription=new zt}invoke(e){this.callback.call(this.callbackThis,e)}}class Ln{constructor(e){var t,n;this._disposed=!1,this._options=e,this._leakageMon=Ir>0?new tn(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((t=this._options)===null||t===void 0)&&t._profName?new Zi(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(co){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)),co&&(E=E!=null?E:Gn.create());const O=new Ei(e,t,E),j=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 ie=O.subscription.set(()=>{x==null||x(),this._disposed||(j(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return n instanceof dt?n.add(ie):Array.isArray(n)&&n.push(ie),ie}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new nr);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 Ii{constructor(){this._queue=new Bn}get size(){return this._queue.size}push(e,t,n){this._queue.push(new wi(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 nr extends Ii{clear(e){this._queue.clear()}}class wi{constructor(e,t,n){this.emitter=e,this.listener=t,this.event=n}}class Mi 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 Rr extends Mi{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 Xn{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 ms{constructor(){this.listening=!1,this.inputEvent=oi.None,this.inputEventListener=He.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 ya{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}ya.INSTANCE=new ya;class fa extends He{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 Ws extends He{constructor(){super(),this._onDidChange=this._register(new Ln),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new fa);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 Ua{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=xe(new Ws)),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}function Ao(o,e){typeof o=="string"&&(o=window.matchMedia(o)),o.addEventListener("change",e)}const cl=new Ua;function $r(){return ya.INSTANCE.getZoomFactor()}const er=navigator.userAgent,Dr=er.indexOf("Firefox")>=0,pr=er.indexOf("AppleWebKit")>=0,ci=er.indexOf("Chrome")>=0,Eo=!ci&&er.indexOf("Safari")>=0,mo=!ci&&!Eo&&pr,Ts=er.indexOf("Electron/")>=0,xs=er.indexOf("Android")>=0;let Er=!1;if(window.matchMedia){const o=window.matchMedia("(display-mode: standalone)");Er=o.matches,Ao(o,({matches:e})=>{Er=e})}function ui(){return Er}const Xt={clipboard:{writeText:Us||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:Us||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>Us||ui()?0:navigator.keyboard||Eo?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};class gn{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 En=new gn,tt=new gn,at=new gn,gt=new Array(230),Re={},lt=[],St=Object.create(null),ln=Object.create(null),Vn=[],wr=[];for(let o=0;o<=193;o++)Vn[o]=-1;for(let o=0;o<=127;o++)wr[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,j,ie,Ee,Ge]=r;if(n[d]||(n[d]=!0,lt[d]=x,St[x]=d,ln[x.toLowerCase()]=d,s&&(Vn[d]=E,E!==0&&E!==3&&E!==5&&E!==4&&E!==6&&E!==57&&(wr[E]=d))),!t[E]){if(t[E]=!0,!O)throw new Error(`String representation missing for key code ${E} around scan code ${x}`);En.define(E,O),tt.define(E,Ee||O),at.define(E,Ge||Ee||O)}j&&(gt[j]=E),ie&&(Re[ie]=E)}wr[3]=46})();var ki;(function(o){function e(d){return En.keyCodeToStr(d)}o.toString=e;function t(d){return En.strToKeyCode(d)}o.fromString=t;function n(d){return tt.keyCodeToStr(d)}o.toUserSettingsUS=n;function r(d){return at.keyCodeToStr(d)}o.toUserSettingsGeneral=r;function i(d){return tt.strToKeyCode(d)||at.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 En.keyCodeToStr(d)}o.toElectronAccelerator=s})(ki||(ki={}));function Vi(o,e){const t=(e&65535)<<16>>>0;return(o|t)>>>0}function Ki(o,e){if(o===0)return null;const t=(o&65535)>>>0,n=(o&4294901760)>>>16;return n!==0?new Bs([ps(t,e),ps(n,e)]):new Bs([ps(t,e)])}function ps(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 Ns(r,i,s,d,x)}class Ns{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 Bs([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class Bs{constructor(e){if(e.length===0)throw W("parts");this.parts=e}}class _a{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 oo{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 Ds{}function oa(o){if(o.charCode){const t=String.fromCharCode(o.charCode).toUpperCase();return ki.fromString(t)}const e=o.keyCode;if(e===3)return 7;if(Dr){if(e===59)return 80;if(e===107)return 81;if(e===109)return 83;if(Ui&&e===224)return 57}else if(pr){if(e===91)return 57;if(Ui&&e===93)return 57;if(!Ui&&e===92)return 57}return gt[e]||0}const va=Ui?256:2048,Bl=512,Fa=1024,gl=Ui?2048:256;class ua{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=oa(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|=va),this.altKey&&(t|=Bl),this.shiftKey&&(t|=Fa),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 Ns(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}let Nl=!1,vs=null;function Hi(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 eo{static getSameOriginWindowChain(){if(!vs){vs=[];let e=window,t;do t=Hi(e),t?vs.push({window:e,iframeElement:e.frameElement||null}):vs.push({window:e,iframeElement:null}),e=t;while(e)}return vs.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 sa{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=eo.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class Cs{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?Dr&&!Ui?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof r.wheelDeltaX!="undefined")Eo&&qr?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?Dr&&!Ui?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 Ka(o){if(Array.isArray(o)){for(var e=0,t=Array(o.length);e1?t-1:0),r=1;r/gm),Ic=jn(/^data-[\-\w.\u00B7-\uFFFF]/),Vc=jn(/^aria-[\-\w]+$/),zd=jn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),eh=jn(/^(?:\w+script|data):/i),Kd=jn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ad=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 ku(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,j=o.Text,ie=o.Comment,Ee=o.DOMParser,Ge=o.trustedTypes,ct=d.prototype,Nt=ql(ct,"cloneNode"),Sn=ql(ct,"nextSibling"),Dn=ql(ct,"childNodes"),Cr=ql(ct,"parentNode");if(typeof i=="function"){var $i=n.createElement("template");$i.content&&$i.content.ownerDocument&&(n=$i.content.ownerDocument)}var is=dd(Ge,t),Ys=is&&dM?is.createHTML(""):"",fo=n,lo=fo.implementation,$s=fo.createNodeIterator,ll=fo.createDocumentFragment,kl=fo.getElementsByTagName,bu=t.importNode,nc={};try{nc=Ul(n).documentMode?n.documentMode:{}}catch(Ig){}var Sd={};e.isSupported=typeof Cr=="function"&&lo&&typeof lo.createHTMLDocument!="undefined"&&nc!==9;var Rh=Nu,Cf=lc,ep=Ic,dp=Vc,wg=eh,w0=Kd,S0=zd,wf=null,hf=el({},[].concat(ku(vu),ku(au),ku(Cn),ku(ls),ku(xa))),P0=null,W1=el({},[].concat(ku(Il),ku(El),ku(ml),ku(fu))),G_=null,s2=null,CT=!0,a2=!0,TS=!1,mg=!1,o3=!1,NN=!1,FN=!1,s3=!1,cM=!1,qB=!0,dM=!1,JB=!0,Lc=!0,Zu=!1,ec={},Hs=null,wa=el({},["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=el({},["audio","video","img","source","image","track"]),Rc=null,md=el({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),op="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,Mm=null,xp=n.createElement("form"),t1=function(yc){Mm&&Mm===yc||((!yc||(typeof yc=="undefined"?"undefined":ad(yc))!=="object")&&(yc={}),yc=Ul(yc),wf="ALLOWED_TAGS"in yc?el({},yc.ALLOWED_TAGS):hf,P0="ALLOWED_ATTR"in yc?el({},yc.ALLOWED_ATTR):W1,Rc="ADD_URI_SAFE_ATTR"in yc?el(Ul(md),yc.ADD_URI_SAFE_ATTR):md,Yl="ADD_DATA_URI_TAGS"in yc?el(Ul(Al),yc.ADD_DATA_URI_TAGS):Al,Hs="FORBID_CONTENTS"in yc?el({},yc.FORBID_CONTENTS):wa,G_="FORBID_TAGS"in yc?el({},yc.FORBID_TAGS):{},s2="FORBID_ATTR"in yc?el({},yc.FORBID_ATTR):{},ec="USE_PROFILES"in yc?yc.USE_PROFILES:!1,CT=yc.ALLOW_ARIA_ATTR!==!1,a2=yc.ALLOW_DATA_ATTR!==!1,TS=yc.ALLOW_UNKNOWN_PROTOCOLS||!1,mg=yc.SAFE_FOR_TEMPLATES||!1,o3=yc.WHOLE_DOCUMENT||!1,s3=yc.RETURN_DOM||!1,cM=yc.RETURN_DOM_FRAGMENT||!1,qB=yc.RETURN_DOM_IMPORT!==!1,dM=yc.RETURN_TRUSTED_TYPE||!1,FN=yc.FORCE_BODY||!1,JB=yc.SANITIZE_DOM!==!1,Lc=yc.KEEP_CONTENT!==!1,Zu=yc.IN_PLACE||!1,S0=yc.ALLOWED_URI_REGEXP||S0,vg=yc.NAMESPACE||xg,mg&&(a2=!1),cM&&(s3=!0),ec&&(wf=el({},[].concat(ku(xa))),P0=[],ec.html===!0&&(el(wf,vu),el(P0,Il)),ec.svg===!0&&(el(wf,au),el(P0,El),el(P0,fu)),ec.svgFilters===!0&&(el(wf,Cn),el(P0,El),el(P0,fu)),ec.mathMl===!0&&(el(wf,ls),el(P0,ml),el(P0,fu))),yc.ADD_TAGS&&(wf===hf&&(wf=Ul(wf)),el(wf,yc.ADD_TAGS)),yc.ADD_ATTR&&(P0===W1&&(P0=Ul(P0)),el(P0,yc.ADD_ATTR)),yc.ADD_URI_SAFE_ATTR&&el(Rc,yc.ADD_URI_SAFE_ATTR),yc.FORBID_CONTENTS&&(Hs===wa&&(Hs=Ul(Hs)),el(Hs,yc.FORBID_CONTENTS)),Lc&&(wf["#text"]=!0),o3&&el(wf,["html","head","body"]),wf.table&&(el(wf,["tbody"]),delete G_.tbody),hs&&hs(yc),Mm=yc)},gv=el({},["mi","mo","mn","ms","mtext"]),iC=el({},["foreignobject","desc","title","annotation-xml"]),av=el({},au);el(av,Cn),el(av,Eu);var j1=el({},ls);el(j1,Ks);var UL=function(yc){var vf=Cr(yc);(!vf||!vf.tagName)&&(vf={namespaceURI:xg,tagName:"template"});var ng=ga(yc.tagName),lv=ga(vf.tagName);if(yc.namespaceURI===Tf)return vf.namespaceURI===xg?ng==="svg":vf.namespaceURI===op?ng==="svg"&&(lv==="annotation-xml"||gv[lv]):!!av[ng];if(yc.namespaceURI===op)return vf.namespaceURI===xg?ng==="math":vf.namespaceURI===Tf?ng==="math"&&iC[lv]:!!j1[ng];if(yc.namespaceURI===xg){if(vf.namespaceURI===Tf&&!iC[lv]||vf.namespaceURI===op&&!gv[lv])return!1;var K_=el({},["title","style","font","a","script"]);return!j1[ng]&&(K_[ng]||!av[ng])}return!1},cx=function(yc){us(e.removed,{element:yc});try{yc.parentNode.removeChild(yc)}catch(vf){try{yc.outerHTML=Ys}catch(ng){yc.remove()}}},DS=function(yc,vf){try{us(e.removed,{attribute:vf.getAttributeNode(yc),from:vf})}catch(ng){us(e.removed,{attribute:null,from:vf})}if(vf.removeAttribute(yc),yc==="is"&&!P0[yc])if(s3||cM)try{cx(vf)}catch(ng){}else try{vf.setAttribute(yc,"")}catch(ng){}},wT=function(yc){var vf=void 0,ng=void 0;if(FN)yc=""+yc;else{var lv=$a(yc,/^[\r\n\t ]+/);ng=lv&&lv[0]}var K_=is?is.createHTML(yc):yc;if(vg===xg)try{vf=new Ee().parseFromString(K_,"text/html")}catch(Y_){}if(!vf||!vf.documentElement){vf=lo.createDocument(vg,"template",null);try{vf.documentElement.innerHTML=g0?"":K_}catch(Y_){}}var X_=vf.body||vf.documentElement;return yc&&ng&&X_.insertBefore(n.createTextNode(ng),X_.childNodes[0]||null),vg===xg?kl.call(vf,o3?"html":"body")[0]:o3?vf.documentElement:X_},HL=function(yc){return $s.call(yc.ownerDocument||yc,yc,x.SHOW_ELEMENT|x.SHOW_COMMENT|x.SHOW_TEXT,null,!1)},a3=function(yc){return yc instanceof j||yc instanceof ie?!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"},ZL=function(yc){return(typeof s=="undefined"?"undefined":ad(s))==="object"?yc instanceof s:yc&&(typeof yc=="undefined"?"undefined":ad(yc))==="object"&&typeof yc.nodeType=="number"&&typeof yc.nodeName=="string"},nw=function(yc,vf,ng){Sd[yc]&&so(Sd[yc],function(lv){lv.call(e,vf,ng,Mm)})},QB=function(yc){var vf=void 0;if(nw("beforeSanitizeElements",yc,null),a3(yc)||$a(yc.nodeName,/[\u0080-\uFFFF]/))return cx(yc),!0;var ng=ga(yc.nodeName);if(nw("uponSanitizeElement",yc,{tagName:ng,allowedTags:wf}),!ZL(yc.firstElementChild)&&(!ZL(yc.content)||!ZL(yc.content.firstElementChild))&&Za(/<[/\w]/g,yc.innerHTML)&&Za(/<[/\w]/g,yc.textContent)||ng==="select"&&Za(/