@supermap/iclient-maplibregl
Version:
@supermap/iclient-maplibregl 是一套基于 Maplibre GL 的云 GIS 网络客户端开发平台, 支持访问 SuperMap iServer / iEdge / iPortal / iManager / Online 的地图、服务和资源,为用户提供了完整专业的 GIS 能力, 同时提供了优秀的可视化功能。
8 lines • 921 kB
JavaScript
/*!
*
* iclient-maplibregl
* Copyright© 2000 - 2023 SuperMap Software Co.Ltd
* license: Apache-2.0
* version: v11.1.1
*
*/(()=>{var t={693:function(t){!function(e){"use strict";if(e.__disableNativeFetch||!e.fetch){o.prototype.append=function(t,e){t=n(t),e=a(e);var r=this.map[t];r||(r=[],this.map[t]=r),r.push(e)},o.prototype.delete=function(t){delete this.map[n(t)]},o.prototype.get=function(t){var e=this.map[n(t)];return e?e[0]:null},o.prototype.getAll=function(t){return this.map[n(t)]||[]},o.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},o.prototype.set=function(t,e){this.map[n(t)]=[a(e)]},o.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach(function(r){this.map[r].forEach(function(s){t.call(e,s,r,this)},this)},this)};var r={blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e},s=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this)},c.call(d.prototype),c.call(f.prototype),f.prototype.clone=function(){return new f(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},f.error=function(){var t=new f(null,{status:0,statusText:""});return t.type="error",t};var i=[301,302,303,307,308];f.redirect=function(t,e){if(-1===i.indexOf(e))throw new RangeError("Invalid status code");return new f(null,{status:e,headers:{location:t}})},e.Headers=o,e.Request=d,e.Response=f,e.fetch=function(t,e){return new Promise(function(s,i){var n;n=d.prototype.isPrototypeOf(t)&&!e?t:new d(t,e);var a=new XMLHttpRequest;var l=!1;function h(){if(4===a.readyState){var t=1223===a.status?204:a.status;if(t<100||t>599){if(l)return;return l=!0,void i(new TypeError("Network request failed"))}var e={status:t,statusText:a.statusText,headers:function(t){var e=new o;return t.getAllResponseHeaders().trim().split("\n").forEach(function(t){var r=t.trim().split(":"),s=r.shift().trim(),i=r.join(":").trim();e.append(s,i)}),e}(a),url:"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0},r="response"in a?a.response:a.responseText;l||(l=!0,s(new f(r,e)))}}a.onreadystatechange=h,a.onload=h,a.onerror=function(){l||(l=!0,i(new TypeError("Network request failed")))},a.open(n.method,n.url,!0);try{"include"===n.credentials&&("withCredentials"in a?a.withCredentials=!0:console&&console.warn&&console.warn("withCredentials is not supported, you can ignore this warning"))}catch(t){console&&console.warn&&console.warn("set withCredentials error:"+t)}"responseType"in a&&r.blob&&(a.responseType="blob"),n.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),a.send(void 0===n._bodyInit?null:n._bodyInit)})},e.fetch.polyfill=!0,t.exports&&(t.exports=e.fetch)}function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function o(t){this.map={},t instanceof o?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function u(t){var e=new FileReader;return e.readAsArrayBuffer(t),h(e)}function c(){return this.bodyUsed=!1,this._initBody=function(t,e){if(this._bodyInit=t,"string"==typeof t)this._bodyText=t;else if(r.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t,this._options=e;else if(r.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(t){if(!r.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t))throw new Error("unsupported BodyInit type")}else this._bodyText=""},r.blob?(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(u)},this.text=function(){var t,e,r,s,i,n,a,o=l(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=this._options,r=new FileReader,s=e.headers.map["content-type"]?e.headers.map["content-type"].toString():"",i=/charset\=[0-9a-zA-Z\-\_]*;?/,n=t.type.match(i)||s.match(i),a=[t],n&&a.push(n[0].replace(/^charset\=/,"").replace(/;$/,"")),r.readAsText.apply(r,a),h(r);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var t=l(this);return t||Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(p)}),this.json=function(){return this.text().then(JSON.parse)},this}function d(t,e){var r,i,n=(e=e||{}).body;if(d.prototype.isPrototypeOf(t)){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new o(t.headers)),this.method=t.method,this.mode=t.mode,n||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=t;if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new o(e.headers)),this.method=(r=e.method||this.method||"GET",i=r.toUpperCase(),s.indexOf(i)>-1?i:r),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n,e)}function p(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),s=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(s),decodeURIComponent(i))}}),e}function f(t,e){e||(e={}),this._initBody(t,e),this.type="default",this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof o?e.headers:new o(e.headers),this.url=e.url||""}}("undefined"!=typeof self?self:this)},144:function(t,e){var r,s,i;s=[e,t],void 0===(i="function"==typeof(r=function(t,e){"use strict";var r={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function s(t){try{delete window[t]}catch(e){window[t]=void 0}}function i(t){var e=document.getElementById(t);e&&document.getElementsByTagName("head")[0].removeChild(e)}e.exports=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=t,a=e.timeout||r.timeout,o=e.jsonpCallback||r.jsonpCallback,l=void 0;return new Promise(function(r,h){var u=e.jsonpCallbackFunction||"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),c=o+"_"+u;window[u]=function(t){r({ok:!0,json:function(){return Promise.resolve(t)}}),l&&clearTimeout(l),i(c),s(u)},n+=-1===n.indexOf("?")?"?":"&";var d=document.createElement("script");d.setAttribute("src",""+n+o+"="+u),e.charset&&d.setAttribute("charset",e.charset),d.id=c,document.getElementsByTagName("head")[0].appendChild(d),l=setTimeout(function(){h(new Error("JSONP request to "+t+" timed out")),s(u),i(c),window[u]=function(){s(u)}},a),d.onerror=function(){h(new Error("JSONP request to "+t+" failed")),s(u),i(c),l&&clearTimeout(l)}})}})?r.apply(e,s):r)||(t.exports=i)},186:t=>{var e=[],r=[],s="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function i(t,i){if(i=i||{},void 0===t)throw new Error(s);var n,a=!0===i.prepend?"prepend":"append",o=void 0!==i.container?i.container:document.querySelector("head"),l=e.indexOf(o);return-1===l&&(l=e.push(o)-1,r[l]={}),void 0!==r[l]&&void 0!==r[l][a]?n=r[l][a]:(n=r[l][a]=function(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}(),"prepend"===a?o.insertBefore(n,o.childNodes[0]):o.appendChild(n)),65279===t.charCodeAt(0)&&(t=t.substr(1,t.length)),n.styleSheet?n.styleSheet.cssText+=t:n.textContent+=t,n}t.exports=i,t.exports.insertCss=i},465:(t,e,r)=>{t=r.nmd(t);var s=200,i="__lodash_hash_undefined__",n=9007199254740991,a="[object Arguments]",o="[object Boolean]",l="[object Date]",h="[object Function]",u="[object GeneratorFunction]",c="[object Map]",d="[object Number]",p="[object Object]",f="[object RegExp]",y="[object Set]",m="[object String]",g="[object Symbol]",v="[object ArrayBuffer]",b="[object DataView]",S="[object Float32Array]",_="[object Float64Array]",x="[object Int8Array]",w="[object Int16Array]",M="[object Int32Array]",A="[object Uint8Array]",C="[object Uint8ClampedArray]",E="[object Uint16Array]",T="[object Uint32Array]",O=/\w*$/,P=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,N={};N[a]=N["[object Array]"]=N[v]=N[b]=N[o]=N[l]=N[S]=N[_]=N[x]=N[w]=N[M]=N[c]=N[d]=N[p]=N[f]=N[y]=N[m]=N[g]=N[A]=N[C]=N[E]=N[T]=!0,N["[object Error]"]=N[h]=N["[object WeakMap]"]=!1;var I="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,k="object"==typeof self&&self&&self.Object===Object&&self,R=I||k||Function("return this")(),D=e&&!e.nodeType&&e,F=D&&t&&!t.nodeType&&t,B=F&&F.exports===D;function G(t,e){return t.set(e[0],e[1]),t}function j(t,e){return t.add(e),t}function U(t,e,r,s){var i=-1,n=t?t.length:0;for(s&&n&&(r=t[++i]);++i<n;)r=e(r,t[i],i,t);return r}function J(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function q(t){var e=-1,r=Array(t.size);return t.forEach(function(t,s){r[++e]=[s,t]}),r}function V(t,e){return function(r){return t(e(r))}}function z(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var H=Array.prototype,W=Function.prototype,Y=Object.prototype,X=R["__core-js_shared__"],Q=function(){var t=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Z=W.toString,K=Y.hasOwnProperty,$=Y.toString,tt=RegExp("^"+Z.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),et=B?R.Buffer:void 0,rt=R.Symbol,st=R.Uint8Array,it=V(Object.getPrototypeOf,Object),nt=Object.create,at=Y.propertyIsEnumerable,ot=H.splice,lt=Object.getOwnPropertySymbols,ht=et?et.isBuffer:void 0,ut=V(Object.keys,Object),ct=Dt(R,"DataView"),dt=Dt(R,"Map"),pt=Dt(R,"Promise"),ft=Dt(R,"Set"),yt=Dt(R,"WeakMap"),mt=Dt(Object,"create"),gt=Ut(ct),vt=Ut(dt),bt=Ut(pt),St=Ut(ft),_t=Ut(yt),xt=rt?rt.prototype:void 0,wt=xt?xt.valueOf:void 0;function Mt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}function At(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}function Ct(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}function Et(t){this.__data__=new At(t)}function Tt(t,e){var r=qt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Vt(t)}(t)&&K.call(t,"callee")&&(!at.call(t,"callee")||$.call(t)==a)}(t)?function(t,e){for(var r=-1,s=Array(t);++r<t;)s[r]=e(r);return s}(t.length,String):[],s=r.length,i=!!s;for(var n in t)!e&&!K.call(t,n)||i&&("length"==n||Gt(n,s))||r.push(n);return r}function Ot(t,e,r){var s=t[e];K.call(t,e)&&Jt(s,r)&&(void 0!==r||e in t)||(t[e]=r)}function Pt(t,e){for(var r=t.length;r--;)if(Jt(t[r][0],e))return r;return-1}function Lt(t,e,r,s,i,n,P){var L;if(s&&(L=n?s(t,i,n,P):s(t)),void 0!==L)return L;if(!Wt(t))return t;var I=qt(t);if(I){if(L=function(t){var e=t.length,r=t.constructor(e);e&&"string"==typeof t[0]&&K.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!e)return function(t,e){var r=-1,s=t.length;e||(e=Array(s));for(;++r<s;)e[r]=t[r];return e}(t,L)}else{var k=Bt(t),R=k==h||k==u;if(zt(t))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(t,e);if(k==p||k==a||R&&!n){if(J(t))return n?t:{};if(L=function(t){return"function"!=typeof t.constructor||jt(t)?{}:(e=it(t),Wt(e)?nt(e):{});var e}(R?{}:t),!e)return function(t,e){return kt(t,Ft(t),e)}(t,function(t,e){return t&&kt(e,Yt(e),t)}(L,t))}else{if(!N[k])return n?t:{};L=function(t,e,r,s){var i=t.constructor;switch(e){case v:return It(t);case o:case l:return new i(+t);case b:return function(t,e){var r=e?It(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,s);case S:case _:case x:case w:case M:case A:case C:case E:case T:return function(t,e){var r=e?It(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,s);case c:return function(t,e,r){return U(e?r(q(t),!0):q(t),G,new t.constructor)}(t,s,r);case d:case m:return new i(t);case f:return(h=new(a=t).constructor(a.source,O.exec(a))).lastIndex=a.lastIndex,h;case y:return function(t,e,r){return U(e?r(z(t),!0):z(t),j,new t.constructor)}(t,s,r);case g:return n=t,wt?Object(wt.call(n)):{}}var n;var a,h}(t,k,Lt,e)}}P||(P=new Et);var D=P.get(t);if(D)return D;if(P.set(t,L),!I)var F=r?function(t){return function(t,e,r){var s=e(t);return qt(t)?s:function(t,e){for(var r=-1,s=e.length,i=t.length;++r<s;)t[i+r]=e[r];return t}(s,r(t))}(t,Yt,Ft)}(t):Yt(t);return function(t,e){for(var r=-1,s=t?t.length:0;++r<s&&!1!==e(t[r],r,t););}(F||t,function(i,n){F&&(i=t[n=i]),Ot(L,n,Lt(i,e,r,s,n,t,P))}),L}function Nt(t){return!(!Wt(t)||Q&&Q in t)&&(Ht(t)||J(t)?tt:P).test(Ut(t))}function It(t){var e=new t.constructor(t.byteLength);return new st(e).set(new st(t)),e}function kt(t,e,r,s){r||(r={});for(var i=-1,n=e.length;++i<n;){var a=e[i],o=s?s(r[a],t[a],a,r,t):void 0;Ot(r,a,void 0===o?t[a]:o)}return r}function Rt(t,e){var r,s,i=t.__data__;return("string"==(s=typeof(r=e))||"number"==s||"symbol"==s||"boolean"==s?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function Dt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Nt(r)?r:void 0}Mt.prototype.clear=function(){this.__data__=mt?mt(null):{}},Mt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Mt.prototype.get=function(t){var e=this.__data__;if(mt){var r=e[t];return r===i?void 0:r}return K.call(e,t)?e[t]:void 0},Mt.prototype.has=function(t){var e=this.__data__;return mt?void 0!==e[t]:K.call(e,t)},Mt.prototype.set=function(t,e){return this.__data__[t]=mt&&void 0===e?i:e,this},At.prototype.clear=function(){this.__data__=[]},At.prototype.delete=function(t){var e=this.__data__,r=Pt(e,t);return!(r<0||(r==e.length-1?e.pop():ot.call(e,r,1),0))},At.prototype.get=function(t){var e=this.__data__,r=Pt(e,t);return r<0?void 0:e[r][1]},At.prototype.has=function(t){return Pt(this.__data__,t)>-1},At.prototype.set=function(t,e){var r=this.__data__,s=Pt(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},Ct.prototype.clear=function(){this.__data__={hash:new Mt,map:new(dt||At),string:new Mt}},Ct.prototype.delete=function(t){return Rt(this,t).delete(t)},Ct.prototype.get=function(t){return Rt(this,t).get(t)},Ct.prototype.has=function(t){return Rt(this,t).has(t)},Ct.prototype.set=function(t,e){return Rt(this,t).set(t,e),this},Et.prototype.clear=function(){this.__data__=new At},Et.prototype.delete=function(t){return this.__data__.delete(t)},Et.prototype.get=function(t){return this.__data__.get(t)},Et.prototype.has=function(t){return this.__data__.has(t)},Et.prototype.set=function(t,e){var r=this.__data__;if(r instanceof At){var i=r.__data__;if(!dt||i.length<s-1)return i.push([t,e]),this;r=this.__data__=new Ct(i)}return r.set(t,e),this};var Ft=lt?V(lt,Object):function(){return[]},Bt=function(t){return $.call(t)};function Gt(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||L.test(t))&&t>-1&&t%1==0&&t<e}function jt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Y)}function Ut(t){if(null!=t){try{return Z.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Jt(t,e){return t===e||t!=t&&e!=e}(ct&&Bt(new ct(new ArrayBuffer(1)))!=b||dt&&Bt(new dt)!=c||pt&&"[object Promise]"!=Bt(pt.resolve())||ft&&Bt(new ft)!=y||yt&&"[object WeakMap]"!=Bt(new yt))&&(Bt=function(t){var e=$.call(t),r=e==p?t.constructor:void 0,s=r?Ut(r):void 0;if(s)switch(s){case gt:return b;case vt:return c;case bt:return"[object Promise]";case St:return y;case _t:return"[object WeakMap]"}return e});var qt=Array.isArray;function Vt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!Ht(t)}var zt=ht||function(){return!1};function Ht(t){var e=Wt(t)?$.call(t):"";return e==h||e==u}function Wt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Yt(t){return Vt(t)?Tt(t):function(t){if(!jt(t))return ut(t);var e=[];for(var r in Object(t))K.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}t.exports=function(t){return Lt(t,!0,!0)}},52:(t,e,r)=>{var s=9007199254740991,i="[object Arguments]",n="[object Function]",a="[object GeneratorFunction]",o="[object Map]",l="[object Set]",h=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,d="object"==typeof self&&self&&self.Object===Object&&self,p=c||d||Function("return this")();function f(t,e){return function(t,e){for(var r=-1,s=t?t.length:0,i=Array(s);++r<s;)i[r]=e(t[r],r,t);return i}(e,function(e){return[e,t[e]]})}var y=Function.prototype,m=Object.prototype,g=p["__core-js_shared__"],v=function(){var t=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),b=y.toString,S=m.hasOwnProperty,_=m.toString,x=RegExp("^"+b.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=m.propertyIsEnumerable,M=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),A=B(p,"DataView"),C=B(p,"Map"),E=B(p,"Promise"),T=B(p,"Set"),O=B(p,"WeakMap"),P=U(A),L=U(C),N=U(E),I=U(T),k=U(O);function R(t,e){var r=J(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&q(t)}(t)&&S.call(t,"callee")&&(!w.call(t,"callee")||_.call(t)==i)}(t)?function(t,e){for(var r=-1,s=Array(t);++r<t;)s[r]=e(r);return s}(t.length,String):[],s=r.length,n=!!s;for(var a in t)!e&&!S.call(t,a)||n&&("length"==a||j(a,s))||r.push(a);return r}function D(t){return!(!z(t)||v&&v in t)&&(V(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?x:h).test(U(t))}function F(t){if(r=(e=t)&&e.constructor,s="function"==typeof r&&r.prototype||m,e!==s)return M(t);var e,r,s,i=[];for(var n in Object(t))S.call(t,n)&&"constructor"!=n&&i.push(n);return i}function B(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return D(r)?r:void 0}var G=function(t){return _.call(t)};function j(t,e){return!!(e=null==e?s:e)&&("number"==typeof t||u.test(t))&&t>-1&&t%1==0&&t<e}function U(t){if(null!=t){try{return b.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(A&&"[object DataView]"!=G(new A(new ArrayBuffer(1)))||C&&G(new C)!=o||E&&"[object Promise]"!=G(E.resolve())||T&&G(new T)!=l||O&&"[object WeakMap]"!=G(new O))&&(G=function(t){var e=_.call(t),r="[object Object]"==e?t.constructor:void 0,s=r?U(r):void 0;if(s)switch(s){case P:return"[object DataView]";case L:return o;case N:return"[object Promise]";case I:return l;case k:return"[object WeakMap]"}return e});var J=Array.isArray;function q(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}(t.length)&&!V(t)}function V(t){var e=z(t)?_.call(t):"";return e==n||e==a}function z(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var H=function(t){return function(e){var r,s,i,n=G(e);return n==o?(r=e,s=-1,i=Array(r.size),r.forEach(function(t,e){i[++s]=[e,t]}),i):n==l?function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=[t,t]}),r}(e):f(e,t(e))}}(function(t){return q(t)?R(t):F(t)});t.exports=H},618:(t,e,r)=>{t=r.nmd(t);var s=200,i="Expected a function",n="__lodash_hash_undefined__",a=1,o=2,l=1/0,h=9007199254740991,u="[object Arguments]",c="[object Array]",d="[object Boolean]",p="[object Date]",f="[object Error]",y="[object Function]",m="[object GeneratorFunction]",g="[object Map]",v="[object Number]",b="[object Object]",S="[object RegExp]",_="[object Set]",x="[object String]",w="[object Symbol]",M="[object ArrayBuffer]",A="[object DataView]",C=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/,T=/^\./,O=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/\\(\\)?/g,L=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,I={};I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I[u]=I[c]=I[M]=I[d]=I[A]=I[p]=I[f]=I[y]=I[g]=I[v]=I[b]=I[S]=I[_]=I[x]=I["[object WeakMap]"]=!1;var k="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,R="object"==typeof self&&self&&self.Object===Object&&self,D=k||R||Function("return this")(),F=e&&!e.nodeType&&e,B=F&&t&&!t.nodeType&&t,G=B&&B.exports===F&&k.process,j=function(){try{return G&&G.binding("util")}catch(t){}}(),U=j&&j.isTypedArray;function J(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,s){var i=t.length,n=r+(s?1:-1);for(;s?n--:++n<i;)if(e(t[n],n,t))return n;return-1}(t,z,r);var s=r-1,i=t.length;for(;++s<i;)if(t[s]===e)return s;return-1}(t,e,0)>-1}function q(t,e,r){for(var s=-1,i=t?t.length:0;++s<i;)if(r(e,t[s]))return!0;return!1}function V(t,e){for(var r=-1,s=t?t.length:0;++r<s;)if(e(t[r],r,t))return!0;return!1}function z(t){return t!=t}function H(t,e){return t.has(e)}function W(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function Y(t){var e=-1,r=Array(t.size);return t.forEach(function(t,s){r[++e]=[s,t]}),r}function X(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var Q=Array.prototype,Z=Function.prototype,K=Object.prototype,$=D["__core-js_shared__"],tt=function(){var t=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),et=Z.toString,rt=K.hasOwnProperty,st=K.toString,it=RegExp("^"+et.call(rt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nt=D.Symbol,at=D.Uint8Array,ot=K.propertyIsEnumerable,lt=Q.splice,ht=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),ut=Ut(D,"DataView"),ct=Ut(D,"Map"),dt=Ut(D,"Promise"),pt=Ut(D,"Set"),ft=Ut(D,"WeakMap"),yt=Ut(Object,"create"),mt=Xt(ut),gt=Xt(ct),vt=Xt(dt),bt=Xt(pt),St=Xt(ft),_t=nt?nt.prototype:void 0,xt=_t?_t.valueOf:void 0,wt=_t?_t.toString:void 0;function Mt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}function At(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}function Ct(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}function Et(t){var e=-1,r=t?t.length:0;for(this.__data__=new Ct;++e<r;)this.add(t[e])}function Tt(t){this.__data__=new At(t)}function Ot(t,e){var r=$t(t)||Kt(t)?function(t,e){for(var r=-1,s=Array(t);++r<t;)s[r]=e(r);return s}(t.length,String):[],s=r.length,i=!!s;for(var n in t)!e&&!rt.call(t,n)||i&&("length"==n||qt(n,s))||r.push(n);return r}function Pt(t,e){for(var r=t.length;r--;)if(Zt(t[r][0],e))return r;return-1}function Lt(t,e){for(var r=0,s=(e=Vt(e,t)?[e]:Ft(e)).length;null!=t&&r<s;)t=t[Yt(e[r++])];return r&&r==s?t:void 0}function Nt(t,e){return null!=t&&e in Object(t)}function It(t,e,r,s,i){return t===e||(null==t||null==e||!se(t)&&!ie(e)?t!=t&&e!=e:function(t,e,r,s,i,n){var l=$t(t),h=$t(e),y=c,m=c;l||(y=(y=Jt(t))==u?b:y);h||(m=(m=Jt(e))==u?b:m);var C=y==b&&!W(t),E=m==b&&!W(e),T=y==m;if(T&&!C)return n||(n=new Tt),l||ae(t)?Gt(t,e,r,s,i,n):function(t,e,r,s,i,n,l){switch(r){case A:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case M:return!(t.byteLength!=e.byteLength||!s(new at(t),new at(e)));case d:case p:case v:return Zt(+t,+e);case f:return t.name==e.name&&t.message==e.message;case S:case x:return t==e+"";case g:var h=Y;case _:var u=n&o;if(h||(h=X),t.size!=e.size&&!u)return!1;var c=l.get(t);if(c)return c==e;n|=a,l.set(t,e);var y=Gt(h(t),h(e),s,i,n,l);return l.delete(t),y;case w:if(xt)return xt.call(t)==xt.call(e)}return!1}(t,e,y,r,s,i,n);if(!(i&o)){var O=C&&rt.call(t,"__wrapped__"),P=E&&rt.call(e,"__wrapped__");if(O||P){var L=O?t.value():t,N=P?e.value():e;return n||(n=new Tt),r(L,N,s,i,n)}}if(!T)return!1;return n||(n=new Tt),function(t,e,r,s,i,n){var a=i&o,l=oe(t),h=l.length,u=oe(e).length;if(h!=u&&!a)return!1;for(var c=h;c--;){var d=l[c];if(!(a?d in e:rt.call(e,d)))return!1}var p=n.get(t);if(p&&n.get(e))return p==e;var f=!0;n.set(t,e),n.set(e,t);for(var y=a;++c<h;){d=l[c];var m=t[d],g=e[d];if(s)var v=a?s(g,m,d,e,t,n):s(m,g,d,t,e,n);if(!(void 0===v?m===g||r(m,g,s,i,n):v)){f=!1;break}y||(y="constructor"==d)}if(f&&!y){var b=t.constructor,S=e.constructor;b!=S&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof S&&S instanceof S)&&(f=!1)}return n.delete(t),n.delete(e),f}(t,e,r,s,i,n)}(t,e,It,r,s,i))}function kt(t){return!(!se(t)||tt&&tt in t)&&(ee(t)||W(t)?it:L).test(Xt(t))}function Rt(t){return"function"==typeof t?t:null==t?le:"object"==typeof t?$t(t)?function(t,e){if(Vt(t)&&zt(e))return Ht(Yt(t),e);return function(r){var s=function(t,e,r){var s=null==t?void 0:Lt(t,e);return void 0===s?r:s}(r,t);return void 0===s&&s===e?function(t,e){return null!=t&&function(t,e,r){var s,i=-1,n=(e=Vt(e,t)?[e]:Ft(e)).length;for(;++i<n;){var a=Yt(e[i]);if(!(s=null!=t&&r(t,a)))break;t=t[a]}if(s)return s;return!!(n=t?t.length:0)&&re(n)&&qt(a,n)&&($t(t)||Kt(t))}(t,e,Nt)}(r,t):It(e,s,void 0,a|o)}}(t[0],t[1]):function(t){var e=function(t){var e=oe(t),r=e.length;for(;r--;){var s=e[r],i=t[s];e[r]=[s,i,zt(i)]}return e}(t);if(1==e.length&&e[0][2])return Ht(e[0][0],e[0][1]);return function(r){return r===t||function(t,e,r,s){var i=r.length,n=i,l=!s;if(null==t)return!n;for(t=Object(t);i--;){var h=r[i];if(l&&h[2]?h[1]!==t[h[0]]:!(h[0]in t))return!1}for(;++i<n;){var u=(h=r[i])[0],c=t[u],d=h[1];if(l&&h[2]){if(void 0===c&&!(u in t))return!1}else{var p=new Tt;if(s)var f=s(c,d,u,t,e,p);if(!(void 0===f?It(d,c,s,a|o,p):f))return!1}}return!0}(r,t,e)}}(t):Vt(e=t)?(r=Yt(e),function(t){return null==t?void 0:t[r]}):function(t){return function(e){return Lt(e,t)}}(e);var e,r}function Dt(t){if(r=(e=t)&&e.constructor,s="function"==typeof r&&r.prototype||K,e!==s)return ht(t);var e,r,s,i=[];for(var n in Object(t))rt.call(t,n)&&"constructor"!=n&&i.push(n);return i}function Ft(t){return $t(t)?t:Wt(t)}Mt.prototype.clear=function(){this.__data__=yt?yt(null):{}},Mt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Mt.prototype.get=function(t){var e=this.__data__;if(yt){var r=e[t];return r===n?void 0:r}return rt.call(e,t)?e[t]:void 0},Mt.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:rt.call(e,t)},Mt.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?n:e,this},At.prototype.clear=function(){this.__data__=[]},At.prototype.delete=function(t){var e=this.__data__,r=Pt(e,t);return!(r<0||(r==e.length-1?e.pop():lt.call(e,r,1),0))},At.prototype.get=function(t){var e=this.__data__,r=Pt(e,t);return r<0?void 0:e[r][1]},At.prototype.has=function(t){return Pt(this.__data__,t)>-1},At.prototype.set=function(t,e){var r=this.__data__,s=Pt(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},Ct.prototype.clear=function(){this.__data__={hash:new Mt,map:new(ct||At),string:new Mt}},Ct.prototype.delete=function(t){return jt(this,t).delete(t)},Ct.prototype.get=function(t){return jt(this,t).get(t)},Ct.prototype.has=function(t){return jt(this,t).has(t)},Ct.prototype.set=function(t,e){return jt(this,t).set(t,e),this},Et.prototype.add=Et.prototype.push=function(t){return this.__data__.set(t,n),this},Et.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.clear=function(){this.__data__=new At},Tt.prototype.delete=function(t){return this.__data__.delete(t)},Tt.prototype.get=function(t){return this.__data__.get(t)},Tt.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof At){var i=r.__data__;if(!ct||i.length<s-1)return i.push([t,e]),this;r=this.__data__=new Ct(i)}return r.set(t,e),this};var Bt=pt&&1/X(new pt([,-0]))[1]==l?function(t){return new pt(t)}:function(){};function Gt(t,e,r,s,i,n){var l=i&o,h=t.length,u=e.length;if(h!=u&&!(l&&u>h))return!1;var c=n.get(t);if(c&&n.get(e))return c==e;var d=-1,p=!0,f=i&a?new Et:void 0;for(n.set(t,e),n.set(e,t);++d<h;){var y=t[d],m=e[d];if(s)var g=l?s(m,y,d,e,t,n):s(y,m,d,t,e,n);if(void 0!==g){if(g)continue;p=!1;break}if(f){if(!V(e,function(t,e){if(!f.has(e)&&(y===t||r(y,t,s,i,n)))return f.add(e)})){p=!1;break}}else if(y!==m&&!r(y,m,s,i,n)){p=!1;break}}return n.delete(t),n.delete(e),p}function jt(t,e){var r,s,i=t.__data__;return("string"==(s=typeof(r=e))||"number"==s||"symbol"==s||"boolean"==s?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function Ut(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return kt(r)?r:void 0}var Jt=function(t){return st.call(t)};function qt(t,e){return!!(e=null==e?h:e)&&("number"==typeof t||N.test(t))&&t>-1&&t%1==0&&t<e}function Vt(t,e){if($t(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!ne(t))||(E.test(t)||!C.test(t)||null!=e&&t in Object(e))}function zt(t){return t==t&&!se(t)}function Ht(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}(ut&&Jt(new ut(new ArrayBuffer(1)))!=A||ct&&Jt(new ct)!=g||dt&&"[object Promise]"!=Jt(dt.resolve())||pt&&Jt(new pt)!=_||ft&&"[object WeakMap]"!=Jt(new ft))&&(Jt=function(t){var e=st.call(t),r=e==b?t.constructor:void 0,s=r?Xt(r):void 0;if(s)switch(s){case mt:return A;case gt:return g;case vt:return"[object Promise]";case bt:return _;case St:return"[object WeakMap]"}return e});var Wt=Qt(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(ne(t))return wt?wt.call(t):"";var e=t+"";return"0"==e&&1/t==-l?"-0":e}(e);var r=[];return T.test(t)&&r.push(""),t.replace(O,function(t,e,s,i){r.push(s?i.replace(P,"$1"):e||t)}),r});function Yt(t){if("string"==typeof t||ne(t))return t;var e=t+"";return"0"==e&&1/t==-l?"-0":e}function Xt(t){if(null!=t){try{return et.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Qt(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(i);var r=function(){var s=arguments,i=e?e.apply(this,s):s[0],n=r.cache;if(n.has(i))return n.get(i);var a=t.apply(this,s);return r.cache=n.set(i,a),a};return r.cache=new(Qt.Cache||Ct),r}function Zt(t,e){return t===e||t!=t&&e!=e}function Kt(t){return function(t){return ie(t)&&te(t)}(t)&&rt.call(t,"callee")&&(!ot.call(t,"callee")||st.call(t)==u)}Qt.Cache=Ct;var $t=Array.isArray;function te(t){return null!=t&&re(t.length)&&!ee(t)}function ee(t){var e=se(t)?st.call(t):"";return e==y||e==m}function re(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function se(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ie(t){return!!t&&"object"==typeof t}function ne(t){return"symbol"==typeof t||ie(t)&&st.call(t)==w}var ae=U?function(t){return function(e){return t(e)}}(U):function(t){return ie(t)&&re(t.length)&&!!I[st.call(t)]};function oe(t){return te(t)?Ot(t):Dt(t)}function le(t){return t}t.exports=function(t,e){return t&&t.length?function(t,e,r){var i=-1,n=J,a=t.length,o=!0,l=[],h=l;if(r)o=!1,n=q;else if(a>=s){var u=e?null:Bt(t);if(u)return X(u);o=!1,n=H,h=new Et}else h=e?[]:l;t:for(;++i<a;){var c=t[i],d=e?e(c):c;if(c=r||0!==c?c:0,o&&d==d){for(var p=h.length;p--;)if(h[p]===d)continue t;e&&h.push(d),l.push(c)}else n(h,d,r)||(h!==l&&h.push(d),l.push(c))}return l}(t,Rt(e)):[]}},107:function(t,e,r){!function(){"use strict";function t(t){var e=this.constructor;return this.then(function(r){return e.resolve(t()).then(function(){return r})},function(r){return e.resolve(t()).then(function(){return e.reject(r)})})}function e(t){return new this(function(e,r){if(!t||void 0===t.length)return r(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var s=Array.prototype.slice.call(t);if(0===s.length)return e([]);var i=s.length;function n(t,r){if(r&&("object"==typeof r||"function"==typeof r)){var a=r.then;if("function"==typeof a)return void a.call(r,function(e){n(t,e)},function(r){s[t]={status:"rejected",reason:r},0==--i&&e(s)})}s[t]={status:"fulfilled",value:r},0==--i&&e(s)}for(var a=0;a<s.length;a++)n(a,s[a])})}var s=setTimeout;function i(t){return Boolean(t&&void 0!==t.length)}function n(){}function a(t){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(t,this)}function o(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,a._immediateFn(function(){var r=1===t._state?e.onFulfilled:e.onRejected;if(null!==r){var s;try{s=r(t._value)}catch(t){return void h(e.promise,t)}l(e.promise,s)}else(1===t._state?l:h)(e.promise,t._value)})):t._deferreds.push(e)}function l(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if(e instanceof a)return t._state=3,t._value=e,void u(t);if("function"==typeof r)return void c((s=r,i=e,function(){s.apply(i,arguments)}),t)}t._state=1,t._value=e,u(t)}catch(e){h(t,e)}var s,i}function h(t,e){t._state=2,t._value=e,u(t)}function u(t){2===t._state&&0===t._deferreds.length&&a._immediateFn(function(){t._handled||a._unhandledRejectionFn(t._value)});for(var e=0,r=t._deferreds.length;e<r;e++)o(t,t._deferreds[e]);t._deferreds=null}function c(t,e){var r=!1;try{t(function(t){r||(r=!0,l(e,t))},function(t){r||(r=!0,h(e,t))})}catch(t){if(r)return;r=!0,h(e,t)}}a.prototype.catch=function(t){return this.then(null,t)},a.prototype.then=function(t,e){var r=new this.constructor(n);return o(this,new function(t,e,r){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=r}(t,e,r)),r},a.prototype.finally=t,a.all=function(t){return new a(function(e,r){if(!i(t))return r(new TypeError("Promise.all accepts an array"));var s=Array.prototype.slice.call(t);if(0===s.length)return e([]);var n=s.length;function a(t,i){try{if(i&&("object"==typeof i||"function"==typeof i)){var o=i.then;if("function"==typeof o)return void o.call(i,function(e){a(t,e)},r)}s[t]=i,0==--n&&e(s)}catch(t){r(t)}}for(var o=0;o<s.length;o++)a(o,s[o])})},a.allSettled=e,a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(t){return new a(function(e,r){r(t)})},a.race=function(t){return new a(function(e,r){if(!i(t))return r(new TypeError("Promise.race accepts an array"));for(var s=0,n=t.length;s<n;s++)a.resolve(t[s]).then(e,r)})},a._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){s(t,0)},a._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var d=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("unable to locate global object")}();"function"!=typeof d.Promise?d.Promise=a:(d.Promise.prototype.finally||(d.Promise.prototype.finally=t),d.Promise.allSettled||(d.Promise.allSettled=e))}()},166:function(t){t.exports=function(){"use strict";function t(t,e,r){var s=t[e];t[e]=t[r],t[r]=s}function e(t,e){return t<e?-1:t>e?1:0}return function(r,s,i,n,a){!function e(r,s,i,n,a){for(;n>i;){if(n-i>600){var o=n-i+1,l=s-i+1,h=Math.log(o),u=.5*Math.exp(2*h/3),c=.5*Math.sqrt(h*u*(o-u)/o)*(l-o/2<0?-1:1),d=Math.max(i,Math.floor(s-l*u/o+c)),p=Math.min(n,Math.floor(s+(o-l)*u/o+c));e(r,s,d,p,a)}var f=r[s],y=i,m=n;for(t(r,i,s),a(r[n],f)>0&&t(r,i,n);y<m;){for(t(r,y,m),y++,m--;a(r[y],f)<0;)y++;for(;a(r[m],f)>0;)m--}0===a(r[i],f)?t(r,i,m):t(r,++m,n),m<=s&&(i=m+1),s<=m&&(n=m-1)}}(r,s,i||0,n||r.length-1,a||e)}}()},510:(t,e,r)=>{"use strict";t.exports=i,t.exports.default=i;var s=r(166);function i(t,e){if(!(this instanceof i))return new i(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function n(t,e,r){if(!r)return e.indexOf(t);for(var s=0;s<e.length;s++)if(r(t,e[s]))return s;return-1}function a(t,e){o(t,0,t.children.length,e,t)}function o(t,e,r,s,i){i||(i=y(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var n,a=e;a<r;a++)n=t.children[a],l(i,t.leaf?s(n):n);return i}function l(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function h(t,e){return t.minX-e.minX}function u(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function f(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function y(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(t,e,r,i,n){for(var a,o=[e,r];o.length;)(r=o.pop())-(e=o.pop())<=i||(a=e+Math.ceil((r-e)/i/2)*i,s(t,a,e,r,n),o.push(e,a,a,r))}i.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,r=[],s=this.toBBox;if(!f(t,e))return r;for(var i,n,a,o,l=[];e;){for(i=0,n=e.children.length;i<n;i++)a=e.children[i],f(t,o=e.leaf?s(a):a)&&(e.leaf?r.push(a):p(t,o)?this._all(a,r):l.push(a));e=l.pop()}return r},collides:function(t){var e=this.data,r=this.toBBox;if(!f(t,e))return!1;for(var s,i,n,a,o=[];e;){for(s=0,i=e.children.length;s<i;s++)if(n=e.children[s],f(t,a=e.leaf?r(n):n)){if(e.leaf||p(t,a))return!0;o.push(n)}e=o.pop()}return!1},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,r=t.length;e<r;e++)this.insert(t[e]);return this}var s=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===s.height)this._splitRoot(this.data,s);else{if(this.data.height<s.height){var i=this.data;this.data=s,s=i}this._insert(s,this.data.height-s.height-1,!0)}else this.data=s;return this},insert:function(t){return t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data=y([]),this},remove:function(t,e){if(!t)return this;for(var r,s,i,a,o=this.data,l=this.toBBox(t),h=[],u=[];o||h.length;){if(o||(o=h.pop(),s=h[h.length-1],r=u.pop(),a=!0),o.leaf&&-1!==(i=n(t,o.children,e)))return o.children.splice(i,1),h.push(o),this._condense(h),this;a||o.leaf||!p(o,l)?s?(r++,o=s.children[r],a=!1):o=null:(h.push(o),u.push(r),r=0,s=o,o=o.children[0])}return this},toBBox:function(t){return t},compareMinX:h,compareMinY:u,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var r=[];t;)t.leaf?e.push.apply(e,t.children):r.push.apply(r,t.children),t=r.pop();return e},_build:function(t,e,r,s){var i,n=r-e+1,o=this._maxEntries;if(n<=o)return a(i=y(t.slice(e,r+1)),this.toBBox),i;s||(s=Math.ceil(Math.log(n)/Math.log(o)),o=Math.ceil(n/Math.pow(o,s-1))),(i=y([])).leaf=!1,i.height=s;var l,h,u,c,d=Math.ceil(n/o),p=d*Math.ceil(Math.sqrt(o));for(m(t,e,r,p,this.compareMinX),l=e;l<=r;l+=p)for(m(t,l,u=Math.min(l+p-1,r),d,this.compareMinY),h=l;h<=u;h+=d)c=Math.min(h+d-1,u),i.children.push(this._build(t,h,c,s-1));return a(i,this.toBBox),i},_chooseSubtree:function(t,e,r,s){for(var i,n,a,o,l,h,u,d,p,f;s.push(e),!e.leaf&&s.length-1!==r;){for(u=d=1/0,i=0,n=e.children.length;i<n;i++)l=c(a=e.children[i]),p=t,f=a,(h=(Math.max(f.maxX,p.maxX)-Math.min(f.minX,p.minX))*(Math.max(f.maxY,p.maxY)-Math.min(f.minY,p.minY))-l)<d?(d=h,u=l<u?l:u,o=a):h===d&&l<u&&(u=l,o=a);e=o||e.children[0]}return e},_insert:function(t,e,r){var s=this.toBBox,i=r?t:s(t),n=[],a=this._chooseSubtree(i,this.data,e,n);for(a.children.push(t),l(a,i);e>=0&&n[e].children.length>this._maxEntries;)this._split(n,e),e--;this._adjustParentBBoxes(i,n,e)},_split:function(t,e){var r=t[e],s=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,s);var n=this._chooseSplitIndex(r,i,s),o=y(r.children.splice(n,r.children.length-n));o.height=r.height,o.leaf=r.leaf,a(r,this.toBBox),a(o,this.toBBox),e?t[e-1].children.push(o):this._splitRoot(r,o)},_splitRoot:function(t,e){this.data=y([t,e]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,r){var s,i,n,a,l,h,u,d,p,f,y,m,g,v;for(h=u=1/0,s=e;s<=r-e;s++)i=o(t,0,s,this.toBBox),n=o(t,s,r,this.toBBox),p=i,f=n,void 0,void 0,void 0,void 0,y=Math.max(p.minX,f.minX),m=Math.max(p.minY,f.minY),g=Math.min(p.maxX,f.maxX),v=Math.min(p.maxY,f.maxY),a=Math.max(0,g-y)*Math.max(0,v-m),l=c(i)+c(n),a<h?(h=a,d=s,u=l<u?l:u):a===h&&l<u&&(u=l,d=s);return d},_chooseSplitAxis:function(t,e,r){var s=t.leaf?this.compareMinX:h,i=t.leaf?this.compareMinY:u;this._allDistMargin(t,e,r,s)<this._allDistMargin(t,e,r,i)&&t.children.sort(s)},_allDistMargin:function(t,e,r,s){t.children.sort(s);var i,n,a=this.toBBox,h=o(t,0,e,a),u=o(t,r-e,r,a),c=d(h)+d(u);for(i=e;i<r-e;i++)n=t.children[i],l(h,t.leaf?a(n):n),c+=d(h);for(i=r-e-1;i>=e;i--)n=t.children[i],l(u,t.leaf?a(n):n),c+=d(u);return c},_adjustParentBBoxes:function(t,e,r){for(var s=r;s>=0;s--)l(e[s],t)},_condense:function(t){for(var e,r=t.length-1;r>=0;r--)0===t[r].children.length?r>0?(e=t[r-1].children).splice(e.indexOf(t[r]),1):this.clear():a(t[r],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}}},e={};function r(s){var i=e[s];if(void 0!==i)return i.exports;var n=e[s]={id:s,loaded:!1,exports:{}};return t[s].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}r.n=(t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e}),r.d=((t,e)=>{for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})}),r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=((t,e)=>Object.prototype.hasOwnProperty.call(t,e)),r.nmd=(t=>(t.paths=[],t.children||(t.children=[]),t)),(()=>{"use strict";const t=maplibregl;var e=r.n(t),s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF4AAAAdCAYAAAAjHtusAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozYWZlOGIwMi01MWE3LTRiZjYtYWVkYS05MGQ2ZTQ4YjZiMmUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODg0NkFBQUE3RjEzMTFFNzhFRjJFQkY4RjcxQjc1NjIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODg0NkFBQTk3RjEzMTFFNzhFRjJFQkY4RjcxQjc1NjIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4MWI3NzdhNC1lZmEyLTQ1MzUtOGQzNi03MmRjNDkyODMzN2UiIHN0UmVmOmRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDpjYTYzODVjMi1jNDQ1LTExN2EtYTc0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";class i{constructor(t){this.imageUrl=null,this.link=null,this.width=null,this.height=null,this.alt="SuperMap iClient",this._extend(this,t)}onAdd(t){this._map=t,this._container=document.createElement("div"),this._container.className="maplibregl-ctrl iclient-logo",this._container.style.marginTop=0,this._container.style.marginBottom=0,this._container.style.marginLeft=0,this._container.style.marginRight=0;var e=s;this.imageUrl&&(e=this.imageUrl);var r=this.alt,i="94px",n="29px",a="width:"+i+";height:"+n+";";this.imageUrl&&(a="width:"+(i=this.width)+";height:"+(n=this.height)+";",i&&n||(a=""));var o=this.link;return this._container.innerHTML="<a href='"+o+"' target='_blank'><img src="+e+" alt='"+r+"' style='"+a+"margin-bottom: 2px'></a>",this._createStyleSheet(),this._container}_createStyleSheet(){var t=document.createElement("style");t.type="text/css",t.innerHTML=".iclient-logo{margin:0 !important;}.iclient-logo a{border: none;display: block;height:31px;}.iclient-logo img{border: none;white-space: nowrap}",document.getElementsByTagName("head")[0].appendChild(t)}_extend(t){for(var e=0;e<Object.getOwnPropertyNames(arguments).length;e++){var r=Object.getOwnPropertyNames(arguments)[e];if("caller"!=r&&"callee"!=r&&"length"!=r&&"arguments"!=r){var s=arguments[r];if(s)for(var i=0;i<Object.getOwnPropertyNames(s).length;i++){var n=Object.getOwnPropertyNames(s)[i];"caller"!=r&&"callee"!=r&&"length"!=r&&"arguments"!=r&&(t[n]=s[n])}}}return t}}class n{constructor(t,e){this.w=t?parseFloat(t):0,this.h=t?parseFloat(e):0,this.CLASS_NAME="SuperMap.Size"}toString(){return"w="+this.w+",h="+this.h}clone(){return new n(this.w,this.h)}equals(t){var e=!1;return null!=t&&(e=this.w===t.w&&this.h===t.h||isNaN(this.w)&&isNaN(this.h)&&isNaN(t.w)&&isNaN(t.h)),e}destroy(){this.w=null,this.h=null}}class a{constructor(t,e,r){this.x=t?parseFloat(t):0,this.y=e?parseFloat(e):0,this.mode=r,this.CLASS_NAME="SuperMap.Pixel"}toString(){return"x="+this.x+",y="+this.y}clone(){return new a(this.x,this.y,this.mode)}equals(t){var e=!1;return null!=t&&(e=this.x==t.x&&this.y==t.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(t.x)&&isNaN(t.y)),e}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}add(t,e){if(null==t||null==e)throw new TypeError("Pixel.add cannot receive null values");return new a(this.x+t,this.y+e)}offset(t){var e=this.clone();return t&&(e=this.add(t.x,t.y)),e}destroy(){this.x=null,this.y=null,this.mode=null}}a.Mode={LeftTop:"lefttop",RightTop:"righttop",RightBottom:"rightbottom",LeftBottom:"leftbottom"};var o=function(...t){class e{constructor(e){for(var r=0;r<t.length;r++)i(this,new t[r](e))}}for(var r=0;r<t.length;r++){var s=t[r];i(e,s),i(e.prototype,s.prototype),i(e.prototype,new s)}return e;function i(t,e){var r=Object.getOwnPropertyNames(e);Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e)));for(var s=0;s<r.length;s++){var i=r[s];if("constructor"!==i&&"prototype"!==i&&"name"!==i&&"length"!==i){let r=Object.getOwnPropertyDescriptor(e,i);window.ActiveXObject?Object.defineProperty(t,i,r||{}):Object.defineProperty(t,i,r)}}}},l={startsWith:function(t,e){return 0==t.indexOf(e)},contains:function(t,e){return-1!=t.indexOf(e)},trim:function(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},camelize:function(t){for(var e=t.split("-"),r=e[0],s=1,i=e.length;s<i;s++){var n=e[s];r+=n.charAt(0).toUpperCase()+n.substring(1)}return r},format:function(t,e,r){e||(e=window);return t.replace(l.tokenRegEx,function(t,s){for(var i,n=s.split(/\.+/),a=0;a<n.length;a++)0==a&&(i=e),i=i[n[a]];return"function"==typeof i&&(i=r?i.apply(null,r):i()),void 0===i?"undefined":i})},tokenRegEx:/\$\{([\w.]+?)\}/g,numberRegEx:/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/,isNumeric:function(t){return l.numberRegEx.test(t)},numericIf:function(t){return l.isNumeric(t)?parseFloat(t):t}},h={decimalSeparator:".",thousandsSeparator:",",limitSigDigs:function(t,e){var r=0;return e>0&&(r=parseFloat(t.toPrecision(e))),r},format:function(t,e,r,s){e=void 0!==e?e:0,r=void 0!==r?r:h.thousandsSeparator,s=void 0!==s?s:h.decimalSeparator,null!=e&&(t=parseFloat(t.toFixed(e)));var i=t.toString().split(".");1===i.length&&null==e&&(e=0);var n,a=i[0];if(r)for(var o=/(-?[0-9]+)([0-9]{3})/;o.test(a);)a=a.replace(o,"$1"+r+"$