augustine-jkmap 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["augustine-jkmap"]=t():e["augustine-jkmap"]=t()})("undefined"!==typeof self?self:this,()=>(()=>{"use strict";var e={};(()=>{e.d=(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})}})(),(()=>{e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{e.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{e.p=""})();var t={};if(e.r(t),e.d(t,{MyButton:()=>c,default:()=>_}),"undefined"!==typeof window){var n=window.document.currentScript,o=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(e.p=o[1])}var r=function(){var e=this,t=e._self._c;return t("button",{staticClass:"my-btn",on:{click:function(t){return e.$emit("click")}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2)},i=[];const s={name:"MyButton",props:{label:{type:String,default:"Button"}}},a=s;function d(e,t,n,o,r,i,s,a){var d,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=d):r&&(d=a?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),d)if(u.functional){u._injectStyles=d;var c=u.render;u.render=function(e,t){return d.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,d):[d]}return{exports:e,options:u}}var u=d(a,r,i,!1,null,"fc12b42e",null);const c=u.exports,f=[c],l=e=>{l.installed||(l.installed=!0,f.forEach(t=>{e.component(t.name,t)}))},p={install:l,...f};"undefined"!==typeof window&&window.Vue&&l(window.Vue);const _=p;return t})());
1
+ (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["augustine-jkmap"]=e():t["augustine-jkmap"]=e()})("undefined"!==typeof self?self:this,()=>(()=>{var t={3(t,e){(function(t,i){i(e)})(0,function(t){"use strict";var e="undefined"!==typeof window,i={Promise:e?window["Promise"]:void 0},r="4.25",n="next";function o(t){if(t.toLowerCase()===n)return n;var e=t&&t.match(/^(\d)\.(\d+)/);return e&&{major:parseInt(e[1],10),minor:parseInt(e[2],10)}}function s(t){return void 0===t&&(t=r),"https://js.arcgis.com/".concat(t,"/")}function a(t){void 0===t&&(t=r);var e=s(t),i=o(t);if(i!==n&&3===i.major){var a=i.minor<=10?"js/":"";return"".concat(e).concat(a,"esri/css/esri.css")}return"".concat(e,"esri/themes/light/main.css")}function l(t){var e=document.createElement("link");return e.rel="stylesheet",e.href=t,e}function c(t,e){if(e){var i=document.querySelector(e);i.parentNode.insertBefore(t,i)}else document.head.appendChild(t)}function u(t){return document.querySelector('link[href*="'.concat(t,'"]'))}function d(t){return!t||o(t)?a(t):t}function h(t,e){var i=d(t),r=u(i);return r||(r=l(i),c(r,e)),r}var p={};function f(t){var e=document.createElement("script");return e.type="text/javascript",e.src=t,e.setAttribute("data-esri-loader","loading"),e}function y(t,e,i){var r;i&&(r=m(t,i));var n=function(){e(t),t.removeEventListener("load",n,!1),r&&t.removeEventListener("error",r,!1)};t.addEventListener("load",n,!1)}function m(t,e){var i=function(r){e(r.error||new Error("There was an error attempting to load ".concat(t.src))),t.removeEventListener("error",i,!1)};return t.addEventListener("error",i,!1),i}function g(t){void 0===t&&(t={}),p=t}function w(){return document.querySelector("script[data-esri-loader]")}function b(){var t=window["require"];return t&&t.on}function v(t){void 0===t&&(t={});var e={};[p,t].forEach(function(t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])});var r=e.version,n=e.url||s(r);return new i.Promise(function(t,i){var o=w();if(o){var s=o.getAttribute("src");s!==n?i(new Error("The ArcGIS API for JavaScript is already loaded (".concat(s,")."))):b()?t(o):y(o,t,i)}else if(b())i(new Error("The ArcGIS API for JavaScript is already loaded."));else{var a=e.css;if(a){var l=!0===a;h(l?r:a,e.insertCssBefore)}o=f(n),y(o,function(){o.setAttribute("data-esri-loader","loaded"),t(o)},i),document.body.appendChild(o)}})}function E(t){return new i.Promise(function(e,i){var r=window["require"].on("error",i);window["require"](t,function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];r.remove(),e(t)})})}function A(t,e){if(void 0===e&&(e={}),b())return E(t);var i=w(),r=i&&i.getAttribute("src");return!e.url&&r&&(e.url=r),v(e).then(function(){return E(t)})}t.utils=i,t.loadModules=A,t.getScript=w,t.isLoaded=b,t.loadScript=v,t.setDefaultOptions=g,t.loadCss=h,Object.defineProperty(t,"__esModule",{value:!0})})},337(t,e,r){(function(e,i){if("object"===typeof t.exports)t.exports=i(r(375));else if("object"===typeof navigator){if(!e.Terraformer)throw new Error("Terraformer.WKT requires the core Terraformer library. http://github.com/esri/terraformer");e.Terraformer.WKT=i(e.Terraformer)}})(this,function(t){var e={},r=function(){var t={trace:function(){},yy:{},symbols_:{error:2,expressions:3,point:4,EOF:5,linestring:6,polygon:7,multipoint:8,multilinestring:9,multipolygon:10,coordinate:11,DOUBLE_TOK:12,ptarray:13,COMMA:14,ring_list:15,ring:16,"(":17,")":18,POINT:19,Z:20,ZM:21,M:22,EMPTY:23,point_untagged:24,polygon_list:25,polygon_untagged:26,point_list:27,LINESTRING:28,POLYGON:29,MULTIPOINT:30,MULTILINESTRING:31,MULTIPOLYGON:32,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",12:"DOUBLE_TOK",14:"COMMA",17:"(",18:")",19:"POINT",20:"Z",21:"ZM",22:"M",23:"EMPTY",28:"LINESTRING",29:"POLYGON",30:"MULTIPOINT",31:"MULTILINESTRING",32:"MULTIPOLYGON"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[3,2],[3,2],[11,2],[11,3],[11,4],[13,3],[13,1],[15,3],[15,1],[16,3],[4,4],[4,5],[4,5],[4,5],[4,2],[24,1],[24,3],[25,3],[25,1],[26,3],[27,3],[27,1],[6,4],[6,5],[6,5],[6,5],[6,2],[7,4],[7,5],[7,5],[7,5],[7,2],[8,4],[8,5],[8,5],[8,5],[8,2],[9,4],[9,5],[9,5],[9,5],[9,2],[10,4],[10,5],[10,5],[10,5],[10,2]],performAction:function(t,e,i,r,l,c,u){var d=c.length-1;switch(l){case 1:return c[d-1];case 2:return c[d-1];case 3:return c[d-1];case 4:return c[d-1];case 5:return c[d-1];case 6:return c[d-1];case 7:this.$=new n([Number(c[d-1]),Number(c[d])]);break;case 8:this.$=new n([Number(c[d-2]),Number(c[d-1]),Number(c[d])]);break;case 9:this.$=new n([Number(c[d-3]),Number(c[d-2]),Number(c[d-1]),Number(c[d])]);break;case 10:this.$=c[d-2].addPoint(c[d]);break;case 11:this.$=c[d];break;case 12:this.$=c[d-2].addRing(c[d]);break;case 13:this.$=new s(c[d]);break;case 14:this.$=new o(c[d-1]);break;case 15:this.$={type:"Point",coordinates:c[d-1].data[0]};break;case 16:this.$={type:"Point",coordinates:c[d-1].data[0],properties:{z:!0}};break;case 17:this.$={type:"Point",coordinates:c[d-1].data[0],properties:{z:!0,m:!0}};break;case 18:this.$={type:"Point",coordinates:c[d-1].data[0],properties:{m:!0}};break;case 19:this.$={type:"Point",coordinates:[]};break;case 20:this.$=c[d];break;case 21:this.$=c[d-1];break;case 22:this.$=c[d-2].addPolygon(c[d]);break;case 23:this.$=new a(c[d]);break;case 24:this.$=c[d-1];break;case 25:this.$=c[d-2].addPoint(c[d]);break;case 26:this.$=c[d];break;case 27:this.$={type:"LineString",coordinates:c[d-1].data};break;case 28:this.$={type:"LineString",coordinates:c[d-1].data,properties:{z:!0}};break;case 29:this.$={type:"LineString",coordinates:c[d-1].data,properties:{m:!0}};break;case 30:this.$={type:"LineString",coordinates:c[d-1].data,properties:{z:!0,m:!0}};break;case 31:this.$={type:"LineString",coordinates:[]};break;case 32:this.$={type:"Polygon",coordinates:c[d-1].toJSON()};break;case 33:this.$={type:"Polygon",coordinates:c[d-1].toJSON(),properties:{z:!0}};break;case 34:this.$={type:"Polygon",coordinates:c[d-1].toJSON(),properties:{m:!0}};break;case 35:this.$={type:"Polygon",coordinates:c[d-1].toJSON(),properties:{z:!0,m:!0}};break;case 36:this.$={type:"Polygon",coordinates:[]};break;case 37:this.$={type:"MultiPoint",coordinates:c[d-1].data};break;case 38:this.$={type:"MultiPoint",coordinates:c[d-1].data,properties:{z:!0}};break;case 39:this.$={type:"MultiPoint",coordinates:c[d-1].data,properties:{m:!0}};break;case 40:this.$={type:"MultiPoint",coordinates:c[d-1].data,properties:{z:!0,m:!0}};break;case 41:this.$={type:"MultiPoint",coordinates:[]};break;case 42:this.$={type:"MultiLineString",coordinates:c[d-1].toJSON()};break;case 43:this.$={type:"MultiLineString",coordinates:c[d-1].toJSON(),properties:{z:!0}};break;case 44:this.$={type:"MultiLineString",coordinates:c[d-1].toJSON(),properties:{m:!0}};break;case 45:this.$={type:"MultiLineString",coordinates:c[d-1].toJSON(),properties:{z:!0,m:!0}};break;case 46:this.$={type:"MultiLineString",coordinates:[]};break;case 47:this.$={type:"MultiPolygon",coordinates:c[d-1].toJSON()};break;case 48:this.$={type:"MultiPolygon",coordinates:c[d-1].toJSON(),properties:{z:!0}};break;case 49:this.$={type:"MultiPolygon",coordinates:c[d-1].toJSON(),properties:{m:!0}};break;case 50:this.$={type:"MultiPolygon",coordinates:c[d-1].toJSON(),properties:{z:!0,m:!0}};break;case 51:this.$={type:"MultiPolygon",coordinates:[]};break}},table:[{3:1,4:2,6:3,7:4,8:5,9:6,10:7,19:[1,8],28:[1,9],29:[1,10],30:[1,11],31:[1,12],32:[1,13]},{1:[3]},{5:[1,14]},{5:[1,15]},{5:[1,16]},{5:[1,17]},{5:[1,18]},{5:[1,19]},{17:[1,20],20:[1,21],21:[1,22],22:[1,23],23:[1,24]},{17:[1,25],20:[1,26],21:[1,28],22:[1,27],23:[1,29]},{17:[1,30],20:[1,31],21:[1,33],22:[1,32],23:[1,34]},{17:[1,35],20:[1,36],21:[1,38],22:[1,37],23:[1,39]},{17:[1,40],20:[1,41],21:[1,43],22:[1,42],23:[1,44]},{17:[1,45],20:[1,46],21:[1,48],22:[1,47],23:[1,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{11:51,12:[1,52],13:50},{17:[1,53]},{17:[1,54]},{17:[1,55]},{5:[2,19]},{11:58,12:[1,52],17:[1,59],24:57,27:56},{17:[1,60]},{17:[1,61]},{17:[1,62]},{5:[2,31]},{15:63,16:64,17:[1,65]},{17:[1,66]},{17:[1,67]},{17:[1,68]},{5:[2,36]},{11:58,12:[1,52],17:[1,59],24:57,27:69},{17:[1,70]},{17:[1,71]},{17:[1,72]},{5:[2,41]},{15:73,16:64,17:[1,65]},{17:[1,74]},{17:[1,75]},{17:[1,76]},{5:[2,46]},{17:[1,79],25:77,26:78},{17:[1,80]},{17:[1,81]},{17:[1,82]},{5:[2,51]},{14:[1,84],18:[1,83]},{14:[2,11],18:[2,11]},{12:[1,85]},{11:51,12:[1,52],13:86},{11:51,12:[1,52],13:87},{11:51,12:[1,52],13:88},{14:[1,90],18:[1,89]},{14:[2,26],18:[2,26]},{14:[2,20],18:[2,20]},{11:91,12:[1,52]},{11:58,12:[1,52],17:[1,59],24:57,27:92},{11:58,12:[1,52],17:[1,59],24:57,27:93},{11:58,12:[1,52],17:[1,59],24:57,27:94},{14:[1,96],18:[1,95]},{14:[2,13],18:[2,13]},{11:51,12:[1,52],13:97},{15:98,16:64,17:[1,65]},{15:99,16:64,17:[1,65]},{15:100,16:64,17:[1,65]},{14:[1,90],18:[1,101]},{11:58,12:[1,52],17:[1,59],24:57,27:102},{11:58,12:[1,52],17:[1,59],24:57,27:103},{11:58,12:[1,52],17:[1,59],24:57,27:104},{14:[1,96],18:[1,105]},{15:106,16:64,17:[1,65]},{15:107,16:64,17:[1,65]},{15:108,16:64,17:[1,65]},{14:[1,110],18:[1,109]},{14:[2,23],18:[2,23]},{15:111,16:64,17:[1,65]},{17:[1,79],25:112,26:78},{17:[1,79],25:113,26:78},{17:[1,79],25:114,26:78},{5:[2,15]},{11:115,12:[1,52]},{12:[1,116],14:[2,7],18:[2,7]},{14:[1,84],18:[1,117]},{14:[1,84],18:[1,118]},{14:[1,84],18:[1,119]},{5:[2,27]},{11:58,12:[1,52],17:[1,59],24:120},{18:[1,121]},{14:[1,90],18:[1,122]},{14:[1,90],18:[1,123]},{14:[1,90],18:[1,124]},{5:[2,32]},{16:125,17:[1,65]},{14:[1,84],18:[1,126]},{14:[1,96],18:[1,127]},{14:[1,96],18:[1,128]},{14:[1,96],18:[1,129]},{5:[2,37]},{14:[1,90],18:[1,130]},{14:[1,90],18:[1,131]},{14:[1,90],18:[1,132]},{5:[2,42]},{14:[1,96],18:[1,133]},{14:[1,96],18:[1,134]},{14:[1,96],18:[1,135]},{5:[2,47]},{17:[1,79],26:136},{14:[1,96],18:[1,137]},{14:[1,110],18:[1,138]},{14:[1,110],18:[1,139]},{14:[1,110],18:[1,140]},{14:[2,10],18:[2,10]},{12:[1,141],14:[2,8],18:[2,8]},{5:[2,16]},{5:[2,17]},{5:[2,18]},{14:[2,25],18:[2,25]},{14:[2,21],18:[2,21]},{5:[2,28]},{5:[2,29]},{5:[2,30]},{14:[2,12],18:[2,12]},{14:[2,14],18:[2,14]},{5:[2,33]},{5:[2,34]},{5:[2,35]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,43]},{5:[2,44]},{5:[2,45]},{14:[2,22],18:[2,22]},{14:[2,24],18:[2,24]},{5:[2,48]},{5:[2,49]},{5:[2,50]},{14:[2,9],18:[2,9]}],defaultActions:{14:[2,1],15:[2,2],16:[2,3],17:[2,4],18:[2,5],19:[2,6],24:[2,19],29:[2,31],34:[2,36],39:[2,41],44:[2,46],49:[2,51],83:[2,15],89:[2,27],95:[2,32],101:[2,37],105:[2,42],109:[2,47],117:[2,16],118:[2,17],119:[2,18],122:[2,28],123:[2,29],124:[2,30],127:[2,33],128:[2,34],129:[2,35],130:[2,38],131:[2,39],132:[2,40],133:[2,43],134:[2,44],135:[2,45],138:[2,48],139:[2,49],140:[2,50]},parseError:function(t,e){throw new Error(t)},parse:function(t){var e=this,i=[0],r=[null],n=[],o=this.table,s="",a=0,l=0,c=0;this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var u=this.lexer.yylloc;n.push(u);var d=this.lexer.options&&this.lexer.options.ranges;function h(){var t;return t=e.lexer.lex()||1,"number"!==typeof t&&(t=e.symbols_[t]||t),t}"function"===typeof this.yy.parseError&&(this.parseError=this.yy.parseError);var p,f,y,m,g,w,b,v,E,A={};while(1){if(y=i[i.length-1],this.defaultActions[y]?m=this.defaultActions[y]:(null!==p&&"undefined"!=typeof p||(p=h()),m=o[y]&&o[y][p]),"undefined"===typeof m||!m.length||!m[0]){var M="";if(!c){for(w in E=[],o[y])this.terminals_[w]&&w>2&&E.push("'"+this.terminals_[w]+"'");M=this.lexer.showPosition?"Parse error on line "+(a+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(a+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(M,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:u,expected:E})}}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+p);switch(m[0]){case 1:i.push(p),r.push(this.lexer.yytext),n.push(this.lexer.yylloc),i.push(m[1]),p=null,f?(p=f,f=null):(l=this.lexer.yyleng,s=this.lexer.yytext,a=this.lexer.yylineno,u=this.lexer.yylloc,c>0&&c--);break;case 2:if(b=this.productions_[m[1]][1],A.$=r[r.length-b],A._$={first_line:n[n.length-(b||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(b||1)].first_column,last_column:n[n.length-1].last_column},d&&(A._$.range=[n[n.length-(b||1)].range[0],n[n.length-1].range[1]]),g=this.performAction.call(A,s,l,a,this.yy,m[1],r,n),"undefined"!==typeof g)return g;b&&(i=i.slice(0,-1*b*2),r=r.slice(0,-1*b),n=n.slice(0,-1*b)),i.push(this.productions_[m[1]][0]),r.push(A.$),n.push(A._$),v=o[i[i.length-2]][i[i.length-1]],i.push(v);break;case 3:return!0}}return!0}},e=function(){var t={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e-1),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===r.length?this.yylloc.first_column:0)+r[r.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this},more:function(){return this._more=!0,this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;var t,e,i,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),s=0;s<o.length;s++)if(i=this._input.match(this.rules[o[s]]),i&&(!e||i[0].length>e[0].length)&&(e=i,r=s,!this.options.flex))break;return e?(n=e[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],t=this.performAction.call(this,this.yy,this,o[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),t||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return"undefined"!==typeof t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)},options:{},performAction:function(t,e,i,r){switch(i){case 0:break;case 1:return 17;case 2:return 18;case 3:return 12;case 4:return 19;case 5:return 28;case 6:return 29;case 7:return 30;case 8:return 31;case 9:return 32;case 10:return 14;case 11:return 23;case 12:return 22;case 13:return 20;case 14:return 21;case 15:return 5;case 16:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:\()/,/^(?:\))/,/^(?:-?[0-9]+(\.[0-9]+)?([eE][\-\+]?[0-9]+)?)/,/^(?:POINT\b)/,/^(?:LINESTRING\b)/,/^(?:POLYGON\b)/,/^(?:MULTIPOINT\b)/,/^(?:MULTILINESTRING\b)/,/^(?:MULTIPOLYGON\b)/,/^(?:,)/,/^(?:EMPTY\b)/,/^(?:M\b)/,/^(?:Z\b)/,/^(?:ZM\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],inclusive:!0}}};return t}();function i(){this.yy={}}return t.lexer=e,i.prototype=t,t.Parser=i,new i}();function n(t){this.data=[t],this.type="PointArray"}function o(t){this.data=t,this.type="Ring"}function s(t){this.data=[t],this.type="RingList"}function a(t){this.data=[t],this.type="PolygonList"}function l(e){var i;try{i=r.parse(e)}catch(n){throw Error("Unable to parse: "+n)}return t.Primitive(i)}function c(t){for(var e=[],i="",r=0;r<t.length;r++)e.push(t[r].join(" "));return i+="("+e.join(", ")+")",i}function u(t){var e="POINT ";return void 0===t.coordinates||0===t.coordinates.length?(e+="EMPTY",e):(3===t.coordinates.length?t.properties&&!0===t.properties.m?e+="M ":e+="Z ":4===t.coordinates.length&&(e+="ZM "),e+="("+t.coordinates.join(" ")+")",e)}function d(t){var e="LINESTRING ";return void 0===t.coordinates||0===t.coordinates.length||0===t.coordinates[0].length?(e+="EMPTY",e):(3===t.coordinates[0].length?t.properties&&!0===t.properties.m?e+="M ":e+="Z ":4===t.coordinates[0].length&&(e+="ZM "),e+=c(t.coordinates),e)}function h(t){var e="POLYGON ";if(void 0===t.coordinates||0===t.coordinates.length||0===t.coordinates[0].length)return e+="EMPTY",e;3===t.coordinates[0][0].length?t.properties&&!0===t.properties.m?e+="M ":e+="Z ":4===t.coordinates[0][0].length&&(e+="ZM "),e+="(";for(var i=[],r=0;r<t.coordinates.length;r++)i.push(c(t.coordinates[r]));return e+=i.join(", "),e+=")",e}function p(t){var e="MULTIPOINT ";return void 0===t.coordinates||0===t.coordinates.length||0===t.coordinates[0].length?(e+="EMPTY",e):(3===t.coordinates[0].length?t.properties&&!0===t.properties.m?e+="M ":e+="Z ":4===t.coordinates[0].length&&(e+="ZM "),e+=c(t.coordinates),e)}function f(t){var e="MULTILINESTRING ";if(void 0===t.coordinates||0===t.coordinates.length||0===t.coordinates[0].length)return e+="EMPTY",e;3===t.coordinates[0][0].length?t.properties&&!0===t.properties.m?e+="M ":e+="Z ":4===t.coordinates[0][0].length&&(e+="ZM "),e+="(";for(var i=[],r=0;r<t.coordinates.length;r++)i.push(c(t.coordinates[r]));return e+=i.join(", "),e+=")",e}function y(t){var e="MULTIPOLYGON ";if(void 0===t.coordinates||0===t.coordinates.length||0===t.coordinates[0].length||0===t.coordinates[0][0].length)return e+="EMPTY",e;3===t.coordinates[0][0][0].length?t.properties&&!0===t.properties.m?e+="M ":e+="Z ":4===t.coordinates[0][0][0].length&&(e+="ZM "),e+="(";for(var i=[],r=0;r<t.coordinates.length;r++){for(var n="(",o=[],s=0;s<t.coordinates[r].length;s++)o.push(c(t.coordinates[r][s]));n+=o.join(", "),n+=")",i.push(n)}return e+=i.join(", "),e+=")",e}function m(t){switch(t.type){case"Point":return u(t);case"LineString":return d(t);case"Polygon":return h(t);case"MultiPoint":return p(t);case"MultiLineString":return f(t);case"MultiPolygon":return y(t);case"GeometryCollection":var e="GEOMETRYCOLLECTION",r=[];for(i=0;i<t.geometries.length;i++)r.push(m(t.geometries[i]));return e+"("+r.join(", ")+")";default:throw Error("Unknown Type: "+t.type)}}return n.prototype.addPoint=function(t){return"PointArray"===t.type?this.data=this.data.concat(t.data):this.data.push(t),this},n.prototype.toJSON=function(){return this.data},o.prototype.toJSON=function(){for(var t=[],e=0;e<this.data.data.length;e++)t.push(this.data.data[e]);return t},s.prototype.addRing=function(t){return this.data.push(t),this},s.prototype.toJSON=function(){for(var t=[],e=0;e<this.data.length;e++)t.push(this.data[e].toJSON());return t.length,t},a.prototype.addPolygon=function(t){return this.data.push(t),this},a.prototype.toJSON=function(){for(var t=[],e=0;e<this.data.length;e++)t=t.concat([this.data[e].toJSON()]);return t},e.parser=r,e.Parser=r.Parser,e.parse=l,e.convert=m,e})},375(t,e){(function(e,i){"object"===typeof t.exports&&(t.exports=i()),"object"===typeof window&&(e.Terraformer=i())})(this,function(){"use strict";var t={},e=6378137,i=57.29577951308232,r=.017453292519943,n={type:"link",properties:{href:"http://spatialreference.org/ref/sr-org/6928/ogcwkt/",type:"ogcwkt"}},o={type:"link",properties:{href:"http://spatialreference.org/ref/epsg/4326/ogcwkt/",type:"ogcwkt"}};function s(t){return"[object Array]"===Object.prototype.toString.call(t)}function a(){var t=Array.prototype.slice.apply(arguments);void 0!==typeof console&&console.warn&&console.warn.apply(console,t)}function l(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function c(t){if(t.type)switch(t.type){case"Point":return[t.coordinates[0],t.coordinates[1],t.coordinates[0],t.coordinates[1]];case"MultiPoint":return h(t.coordinates);case"LineString":return h(t.coordinates);case"MultiLineString":return u(t.coordinates);case"Polygon":return u(t.coordinates);case"MultiPolygon":return d(t.coordinates);case"Feature":return t.geometry?c(t.geometry):null;case"FeatureCollection":return p(t);case"GeometryCollection":return f(t);default:throw new Error("Unknown type: "+t.type)}return null}function u(t){for(var e=null,i=null,r=null,n=null,o=0;o<t.length;o++)for(var s=t[o],a=0;a<s.length;a++){var l=s[a],c=l[0],u=l[1];(null===e||c<e)&&(e=c),(null===i||c>i)&&(i=c),(null===r||u<r)&&(r=u),(null===n||u>n)&&(n=u)}return[e,r,i,n]}function d(t){for(var e=null,i=null,r=null,n=null,o=0;o<t.length;o++)for(var s=t[o],a=0;a<s.length;a++)for(var l=s[a],c=0;c<l.length;c++){var u=l[c],d=u[0],h=u[1];(null===e||d<e)&&(e=d),(null===i||d>i)&&(i=d),(null===r||h<r)&&(r=h),(null===n||h>n)&&(n=h)}return[e,r,i,n]}function h(t){for(var e=null,i=null,r=null,n=null,o=0;o<t.length;o++){var s=t[o],a=s[0],l=s[1];(null===e||a<e)&&(e=a),(null===i||a>i)&&(i=a),(null===r||l<r)&&(r=l),(null===n||l>n)&&(n=l)}return[e,r,i,n]}function p(t){for(var e,i=[],r=t.features.length-1;r>=0;r--)e=c(t.features[r].geometry),i.push([e[0],e[1]]),i.push([e[2],e[3]]);return h(i)}function f(t){for(var e,i=[],r=t.geometries.length-1;r>=0;r--)e=c(t.geometries[r]),i.push([e[0],e[1]]),i.push([e[2],e[3]]);return h(i)}function y(t){var e=c(t);return{x:e[0],y:e[1],w:Math.abs(e[0]-e[2]),h:Math.abs(e[1]-e[3])}}function m(t){return t*i}function g(t){return t*r}function w(t,e){for(var i=0;i<t.length;i++)"number"===typeof t[i][0]&&(t[i]=e(t[i])),"object"===typeof t[i]&&(t[i]=w(t[i],e));return t}function b(t){var i=t[0],r=t[1];return[m(i/e)-360*Math.floor((m(i/e)+180)/360),m(Math.PI/2-2*Math.atan(Math.exp(-1*r/e)))]}function v(t){var i=t[0],r=Math.max(Math.min(t[1],89.99999),-89.99999);return[g(i)*e,e/2*Math.log((1+Math.sin(g(r)))/(1-Math.sin(g(r))))]}function E(t,e,i){if("Point"===t.type)t.coordinates=e(t.coordinates);else if("Feature"===t.type)t.geometry=E(t.geometry,e,!0);else if("FeatureCollection"===t.type)for(var r=0;r<t.features.length;r++)t.features[r]=E(t.features[r],e,!0);else if("GeometryCollection"===t.type)for(var o=0;o<t.geometries.length;o++)t.geometries[o]=E(t.geometries[o],e,!0);else t.coordinates=w(t.coordinates,e);return i||e===v&&(t.crs=n),e===b&&delete t.crs,t}function A(t){return E(t,v)}function M(t){return E(t,b)}function S(t,e){return t<e?-1:t>e?1:0}function x(t,e){return t[0]>e[0]?-1:t[0]<e[0]?1:t[1]>e[1]?-1:t[1]<e[1]?1:0}function T(t,e,i){return S((e[0]-t[0])*(i[1]-t[1])-(i[0]-t[0])*(e[1]-t[1]),0)}function k(t,e){var i=e[0]-t[0],r=e[1]-t[1];return i*i+r*r}function P(t,e){var i=e;for(var r in t){var n=T(e,i,t[r]);(-1===n||0===n&&k(e,t[r])>k(e,i))&&(i=t[r])}return i}function N(t){if(0===t.length)return[];if(1===t.length)return t;for(var e=[t.sort(x)[0]],i=0;i<e.length;i++){var r=P(t,e[i]);r!==e[0]&&e.push(r)}return e}function L(t){for(var e,i=0;i<t.length-3;i++){var r=t[i],n=t[i+1],o=t[i+2],s=[n[0]-r[0],n[1]-r[1]],a=o[0]*s[1]-o[1]*s[0]+s[0]*r[1]-s[1]*r[0];if(0===i)e=a<0;else if(e&&a>0||!e&&a<0)return!1}return!0}function I(t,e){for(var i=!1,r=-1,n=t.length,o=n-1;++r<n;o=r)(t[r][1]<=e[1]&&e[1]<t[o][1]||t[o][1]<=e[1]&&e[1]<t[r][1])&&e[0]<(t[o][0]-t[r][0])*(e[1]-t[r][1])/(t[o][1]-t[r][1])+t[r][0]&&(i=!i);return i}function R(t,e){if(t&&t.length){if(1===t.length)return I(t[0],e);if(I(t[0],e)){for(var i=1;i<t.length;i++)if(I(t[i],e))return!1;return!0}return!1}return!1}function C(t,e,i,r){var n=(r[0]-i[0])*(t[1]-i[1])-(r[1]-i[1])*(t[0]-i[0]),o=(e[0]-t[0])*(t[1]-i[1])-(e[1]-t[1])*(t[0]-i[0]),s=(r[1]-i[1])*(e[0]-t[0])-(r[0]-i[0])*(e[1]-t[1]);if(0!==s){var a=n/s,l=o/s;if(0<=a&&a<=1&&0<=l&&l<=1)return!0}return!1}function O(t){return!isNaN(parseFloat(t))&&isFinite(t)}function j(t,e){if(O(t[0][0])){if(O(e[0][0])){for(var i=0;i<t.length-1;i++)for(var r=0;r<e.length-1;r++)if(C(t[i],t[i+1],e[r],e[r+1]))return!0}else for(var n=0;n<e.length;n++)if(j(t,e[n]))return!0}else for(var o=0;o<t.length;o++)if(j(t[o],e))return!0;return!1}function G(t){for(var e=[],i=0;i<t.length;i++){var r=t[i].slice();!1===D(r[0],r[r.length-1])&&r.push(r[0]),e.push(r)}return e}function D(t,e){for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}function F(t,e){if(t.length!==e.length)return!1;for(var i=t.slice().sort(x),r=e.slice().sort(x),n=0;n<i.length;n++){if(i[n].length!==r[n].length)return!1;for(var o=0;o<i.length;o++)if(i[n][o]!==r[n][o])return!1}return!0}var U=["length"];function B(t){if(t)switch(t.type){case"Point":return new Z(t);case"MultiPoint":return new z(t);case"LineString":return new W(t);case"MultiLineString":return new J(t);case"Polygon":return new V(t);case"MultiPolygon":return new _(t);case"Feature":return new Q(t);case"FeatureCollection":return new Y(t);case"GeometryCollection":return new H(t);default:throw new Error("Unknown type: "+t.type)}}function Z(t){var e=Array.prototype.slice.call(arguments);if(t&&"Point"===t.type&&t.coordinates)l(this,t);else if(t&&s(t))this.coordinates=t;else{if(!(e.length>=2))throw"Terraformer: invalid input for Terraformer.Point";this.coordinates=e}this.type="Point"}function z(t){if(t&&"MultiPoint"===t.type&&t.coordinates)l(this,t);else{if(!s(t))throw"Terraformer: invalid input for Terraformer.MultiPoint";this.coordinates=t}this.type="MultiPoint"}function W(t){if(t&&"LineString"===t.type&&t.coordinates)l(this,t);else{if(!s(t))throw"Terraformer: invalid input for Terraformer.LineString";this.coordinates=t}this.type="LineString"}function J(t){if(t&&"MultiLineString"===t.type&&t.coordinates)l(this,t);else{if(!s(t))throw"Terraformer: invalid input for Terraformer.MultiLineString";this.coordinates=t}this.type="MultiLineString"}function V(t){if(t&&"Polygon"===t.type&&t.coordinates)l(this,t);else{if(!s(t))throw"Terraformer: invalid input for Terraformer.Polygon";this.coordinates=t}this.type="Polygon"}function _(t){if(t&&"MultiPolygon"===t.type&&t.coordinates)l(this,t);else{if(!s(t))throw"Terraformer: invalid input for Terraformer.MultiPolygon";this.coordinates=t}this.type="MultiPolygon"}function Q(t){if(t&&"Feature"===t.type)l(this,t);else{if(!(t&&t.type&&t.coordinates))throw"Terraformer: invalid input for Terraformer.Feature";this.geometry=t}this.type="Feature"}function Y(t){if(t&&"FeatureCollection"===t.type&&t.features)l(this,t);else{if(!s(t))throw"Terraformer: invalid input for Terraformer.FeatureCollection";this.features=t}this.type="FeatureCollection"}function H(t){if(t&&"GeometryCollection"===t.type&&t.geometries)l(this,t);else if(s(t))this.geometries=t;else{if(!t.coordinates||!t.type)throw"Terraformer: invalid input for Terraformer.GeometryCollection";this.type="GeometryCollection",this.geometries=[t]}this.type="GeometryCollection"}function X(t,e,i){for(var r=v(t),n=i||64,o={type:"Polygon",coordinates:[[]]},s=1;s<=n;s++){var a=s*(360/n)*Math.PI/180;o.coordinates[0].push([r[0]+e*Math.cos(a),r[1]+e*Math.sin(a)])}return o.coordinates=G(o.coordinates),M(o)}function K(t,e,i){var r=i||64,n=e||250;if(!t||t.length<2||!n||!r)throw new Error("Terraformer: missing parameter for Terraformer.Circle");l(this,new Q({type:"Feature",geometry:X(t,n,r),properties:{radius:n,center:t,steps:r}}))}return B.prototype.toMercator=function(){return A(this)},B.prototype.toGeographic=function(){return M(this)},B.prototype.envelope=function(){return y(this)},B.prototype.bbox=function(){return c(this)},B.prototype.convexHull=function(){var t,e,i=[];if("Point"===this.type)return null;if("LineString"===this.type||"MultiPoint"===this.type){if(!(this.coordinates&&this.coordinates.length>=3))return null;i=this.coordinates}else if("Polygon"===this.type||"MultiLineString"===this.type){if(!(this.coordinates&&this.coordinates.length>0))return null;for(t=0;t<this.coordinates.length;t++)i=i.concat(this.coordinates[t]);if(i.length<3)return null}else if("MultiPolygon"===this.type){if(!(this.coordinates&&this.coordinates.length>0))return null;for(t=0;t<this.coordinates.length;t++)for(e=0;e<this.coordinates[t].length;e++)i=i.concat(this.coordinates[t][e]);if(i.length<3)return null}else if("Feature"===this.type){var r=new B(this.geometry);return r.convexHull()}return new V({type:"Polygon",coordinates:G([N(i)])})},B.prototype.toJSON=function(){var t={};for(var e in this)this.hasOwnProperty(e)&&-1===U.indexOf(e)&&(t[e]=this[e]);return t.bbox=c(this),t},B.prototype.contains=function(t){return new B(t).within(this)},B.prototype.within=function(t){var e,i,r,n;if("Feature"===t.type&&(t=t.geometry),"Point"===t.type&&"Point"===this.type)return D(this.coordinates,t.coordinates);if("MultiLineString"===t.type&&"Point"===this.type)for(i=0;i<t.coordinates.length;i++){var o={type:"LineString",coordinates:t.coordinates[i]};if(this.within(o))return!0}if(("LineString"===t.type||"MultiPoint"===t.type)&&"Point"===this.type)for(i=0;i<t.coordinates.length;i++){if(this.coordinates.length!==t.coordinates[i].length)return!1;if(D(this.coordinates,t.coordinates[i]))return!0}if("Polygon"===t.type){if("Polygon"===this.type){if(t.coordinates.length===this.coordinates.length)for(i=0;i<this.coordinates.length;i++)if(F(this.coordinates[i],t.coordinates[i]))return!0;return!(!this.coordinates.length||!R(t.coordinates,this.coordinates[0][0]))&&!j(G(this.coordinates),G(t.coordinates))}if("Point"===this.type)return R(t.coordinates,this.coordinates);if("LineString"===this.type||"MultiPoint"===this.type){if(!this.coordinates||0===this.coordinates.length)return!1;for(i=0;i<this.coordinates.length;i++)if(!1===R(t.coordinates,this.coordinates[i]))return!1;return!0}if("MultiLineString"===this.type){for(i=0;i<this.coordinates.length;i++){var s=new W(this.coordinates[i]);if(!1===s.within(t))return n++,!1}return!0}if("MultiPolygon"===this.type){for(i=0;i<this.coordinates.length;i++){var a=new B({type:"Polygon",coordinates:this.coordinates[i]});if(!1===a.within(t))return!1}return!0}}if("MultiPolygon"===t.type){if("Point"===this.type){if(t.coordinates.length)for(i=0;i<t.coordinates.length;i++)if(e=t.coordinates[i],R(e,this.coordinates)&&!1===j([this.coordinates],t.coordinates))return!0;return!1}if("Polygon"===this.type){for(i=0;i<this.coordinates.length;i++)if(t.coordinates[i].length===this.coordinates.length)for(r=0;r<this.coordinates.length;r++)if(F(this.coordinates[r],t.coordinates[i][r]))return!0;if(!1===j(this.coordinates,t.coordinates)&&t.coordinates.length){for(i=0;i<t.coordinates.length;i++)e=t.coordinates[i],n=!1!==R(e,this.coordinates[0][0]);return n}}else if("LineString"===this.type||"MultiPoint"===this.type)for(i=0;i<t.coordinates.length;i++){var l={type:"Polygon",coordinates:t.coordinates[i]};return!!this.within(l)}else{if("MultiLineString"===this.type){for(i=0;i<this.coordinates.length;i++){var c=new W(this.coordinates[i]);if(!1===c.within(t))return!1}return!0}if("MultiPolygon"===this.type){for(i=0;i<t.coordinates.length;i++){var u={type:"Polygon",coordinates:t.coordinates[i]};if(!1===this.within(u))return!1}return!0}}}return!1},B.prototype.intersects=function(t){"Feature"===t.type&&(t=t.geometry);var e=new B(t);if(this.within(t)||e.within(this))return!0;if("Point"!==this.type&&"MultiPoint"!==this.type&&"Point"!==t.type&&"MultiPoint"!==t.type)return j(this.coordinates,t.coordinates);if("Feature"===this.type){var i=new B(this.geometry);return i.intersects(t)}return a("Type "+this.type+" to "+t.type+" intersection is not supported by intersects"),!1},Z.prototype=new B,Z.prototype.constructor=Z,z.prototype=new B,z.prototype.constructor=z,z.prototype.forEach=function(t){for(var e=0;e<this.coordinates.length;e++)t.apply(this,[this.coordinates[e],e,this.coordinates]);return this},z.prototype.addPoint=function(t){return this.coordinates.push(t),this},z.prototype.insertPoint=function(t,e){return this.coordinates.splice(e,0,t),this},z.prototype.removePoint=function(t){return"number"===typeof t?this.coordinates.splice(t,1):this.coordinates.splice(this.coordinates.indexOf(t),1),this},z.prototype.get=function(t){return new Z(this.coordinates[t])},W.prototype=new B,W.prototype.constructor=W,W.prototype.addVertex=function(t){return this.coordinates.push(t),this},W.prototype.insertVertex=function(t,e){return this.coordinates.splice(e,0,t),this},W.prototype.removeVertex=function(t){return this.coordinates.splice(t,1),this},J.prototype=new B,J.prototype.constructor=J,J.prototype.forEach=function(t){for(var e=0;e<this.coordinates.length;e++)t.apply(this,[this.coordinates[e],e,this.coordinates])},J.prototype.get=function(t){return new W(this.coordinates[t])},V.prototype=new B,V.prototype.constructor=V,V.prototype.addVertex=function(t){return this.insertVertex(t,this.coordinates[0].length-1),this},V.prototype.insertVertex=function(t,e){return this.coordinates[0].splice(e,0,t),this},V.prototype.removeVertex=function(t){return this.coordinates[0].splice(t,1),this},V.prototype.close=function(){this.coordinates=G(this.coordinates)},V.prototype.hasHoles=function(){return this.coordinates.length>1},V.prototype.holes=function(){var t=[];if(this.hasHoles())for(var e=1;e<this.coordinates.length;e++)t.push(new V([this.coordinates[e]]));return t},_.prototype=new B,_.prototype.constructor=_,_.prototype.forEach=function(t){for(var e=0;e<this.coordinates.length;e++)t.apply(this,[this.coordinates[e],e,this.coordinates])},_.prototype.get=function(t){return new V(this.coordinates[t])},_.prototype.close=function(){var t=[];return this.forEach(function(e){t.push(G(e))}),this.coordinates=t,this},Q.prototype=new B,Q.prototype.constructor=Q,Y.prototype=new B,Y.prototype.constructor=Y,Y.prototype.forEach=function(t){for(var e=0;e<this.features.length;e++)t.apply(this,[this.features[e],e,this.features])},Y.prototype.get=function(t){var e;return this.forEach(function(i){i.id===t&&(e=i)}),new Q(e)},H.prototype=new B,H.prototype.constructor=H,H.prototype.forEach=function(t){for(var e=0;e<this.geometries.length;e++)t.apply(this,[this.geometries[e],e,this.geometries])},H.prototype.get=function(t){return new B(this.geometries[t])},K.prototype=new B,K.prototype.constructor=K,K.prototype.recalculate=function(){return this.geometry=X(this.properties.center,this.properties.radius,this.properties.steps),this},K.prototype.center=function(t){return t&&(this.properties.center=t,this.recalculate()),this.properties.center},K.prototype.radius=function(t){return t&&(this.properties.radius=t,this.recalculate()),this.properties.radius},K.prototype.steps=function(t){return t&&(this.properties.steps=t,this.recalculate()),this.properties.steps},K.prototype.toJSON=function(){var t=B.prototype.toJSON.call(this);return t},t.Primitive=B,t.Point=Z,t.MultiPoint=z,t.LineString=W,t.MultiLineString=J,t.Polygon=V,t.MultiPolygon=_,t.Feature=Q,t.FeatureCollection=Y,t.GeometryCollection=H,t.Circle=K,t.toMercator=A,t.toGeographic=M,t.Tools={},t.Tools.positionToMercator=v,t.Tools.positionToGeographic=b,t.Tools.applyConverter=E,t.Tools.toMercator=A,t.Tools.toGeographic=M,t.Tools.createCircle=X,t.Tools.calculateBounds=c,t.Tools.calculateEnvelope=y,t.Tools.coordinatesContainPoint=I,t.Tools.polygonContainsPoint=R,t.Tools.arraysIntersectArrays=j,t.Tools.coordinatesContainPoint=I,t.Tools.coordinatesEqual=F,t.Tools.convexHull=N,t.Tools.isConvex=L,t.MercatorCRS=n,t.GeographicCRS=o,t})},979(t,e,i){(function(e,r){if("object"===typeof t.exports&&(t.exports=r(i(375))),"object"===typeof e.navigator){if(!e.Terraformer)throw new Error("Terraformer.ArcGIS requires the core Terraformer library. https://github.com/esri/Terraformer");e.Terraformer.ArcGIS=r(e.Terraformer)}})(this,function(t){var e={};function i(t){var e,i,r,n,o=0,s=0,a=[];r=t.match(/((\+|\-)[^\+\-]+)/g),n=parseInt(r[0],32);for(var l=1;l<r.length;l+=2)e=parseInt(r[l],32)+o,o=e,i=parseInt(r[l+1],32)+s,s=i,a.push([e/n,i/n]);return a}function r(t){return n(t[0],t[t.length-1])||t.push(t[0]),t}function n(t,e){for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}function o(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function s(t){var e,i=0,r=0,n=t.length,o=t[r];for(r;r<n-1;r++)e=t[r+1],i+=(e[0]-o[0])*(e[1]+o[1]),o=e;return i>=0}function a(t){var e=[],i=t.slice(0),n=r(i.shift().slice(0));if(n.length>=4){s(n)||n.reverse(),e.push(n);for(var o=0;o<i.length;o++){var a=r(i[o].slice(0));a.length>=4&&(s(a)&&a.reverse(),e.push(a))}}return e}function l(t){for(var e=[],i=0;i<t.length;i++)for(var r=a(t[i]),n=r.length-1;n>=0;n--){var o=r[n].slice(0);e.push(o)}return e}function c(e,i){var r=t.Tools.arraysIntersectArrays(e,i),n=t.Tools.coordinatesContainPoint(e,i[0]);return!(r||!n)}function u(e){for(var i,n,o,a=[],l=[],u=0;u<e.length;u++){var d=r(e[u].slice(0));if(!(d.length<4))if(s(d)){var h=[d.slice().reverse()];a.push(h)}else l.push(d.slice().reverse())}var p=[];while(l.length){o=l.pop();var f=!1;for(i=a.length-1;i>=0;i--)if(n=a[i][0],c(n,o)){a[i].push(o),f=!0;break}f||p.push(o)}while(p.length){o=p.pop();var y=!1;for(i=a.length-1;i>=0;i--)if(n=a[i][0],t.Tools.arraysIntersectArrays(n,o)){a[i].push(o),y=!0;break}y||a.push([o.reverse()])}return 1===a.length?{type:"Polygon",coordinates:a[0]}:{type:"MultiPolygon",coordinates:a}}function d(e,r){var n={};return r=r||{},r.idAttribute=r.idAttribute||void 0,!e.spatialReference||3857!==e.spatialReference.wkid&&102100!==e.spatialReference.wkid||(n.crs=t.MercatorCRS),"number"===typeof e.x&&"number"===typeof e.y&&(n.type="Point",n.coordinates=[e.x,e.y],(e.z||e.m)&&n.coordinates.push(e.z),e.m&&n.coordinates.push(e.m)),e.points&&(n.type="MultiPoint",n.coordinates=e.points.slice(0)),e.paths&&(1===e.paths.length?(n.type="LineString",n.coordinates=e.paths[0].slice(0)):(n.type="MultiLineString",n.coordinates=e.paths.slice(0))),e.rings&&(n=u(e.rings.slice(0))),"number"===typeof e.xmin&&"number"===typeof e.ymin&&"number"===typeof e.xmax&&"number"===typeof e.ymax&&(n.type="Polygon",n.coordinates=[[[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax]]]),(e.compressedGeometry||e.geometry||e.attributes)&&(n.type="Feature",e.compressedGeometry&&(e.geometry={paths:[i(e.compressedGeometry)]}),n.geometry=e.geometry?d(e.geometry):null,n.properties=e.attributes?o(e.attributes):null,e.attributes&&(n.id=e.attributes[r.idAttribute]||e.attributes.OBJECTID||e.attributes.FID)),new t.Primitive(n)}function h(t,e){var i;e=e||{};var r=e.idAttribute||"OBJECTID";i=e.sr?{wkid:e.sr}:t&&t.crs&&"urn:ogc:def:crs:OGC:1.3:CRS84"!=t.crs.properties.name?null:{wkid:4326};var n,s={};switch(t.type){case"Point":s.x=t.coordinates[0],s.y=t.coordinates[1],t.coordinates[2]&&(s.z=t.coordinates[2]),t.coordinates[3]&&(s.m=t.coordinates[3]),s.spatialReference=i;break;case"MultiPoint":s.points=t.coordinates.slice(0),s.spatialReference=i;break;case"LineString":s.paths=[t.coordinates.slice(0)],s.spatialReference=i;break;case"MultiLineString":s.paths=t.coordinates.slice(0),s.spatialReference=i;break;case"Polygon":s.rings=a(t.coordinates.slice(0)),s.spatialReference=i;break;case"MultiPolygon":s.rings=l(t.coordinates.slice(0)),s.spatialReference=i;break;case"Feature":t.geometry&&(s.geometry=h(t.geometry,e)),s.attributes=t.properties?o(t.properties):{},t.id&&(s.attributes[r]=t.id);break;case"FeatureCollection":for(s=[],n=0;n<t.features.length;n++)s.push(h(t.features[n],e));break;case"GeometryCollection":for(s=[],n=0;n<t.geometries.length;n++)s.push(h(t.geometries[n],e));break}return s}function p(e){return new t.LineString(i(e))}return e.parse=d,e.convert=h,e.toGeoJSON=d,e.fromGeoJSON=h,e.parseCompressedGeometry=p,e})}},e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var o=e[i]={exports:{}};return t[i].call(o.exports,o,o.exports,r),o.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 i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}})(),(()=>{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.r=t=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}})(),(()=>{r.p=""})();var n={};return(()=>{"use strict";r.r(n),r.d(n,{arcGISTranformGeoJson:()=>F,augustineGjMap:()=>Xr,augustineMap:()=>oo,createArcPoint:()=>T,createLineGraphicsLayer:()=>C,createMaskLayer:()=>O,createPolygonGraphicsLayer:()=>j,default:()=>Ao,drawArcPoint:()=>x,drawBuffer:()=>Y,drawLayer:()=>S,getArea:()=>Q,getFillSymbol:()=>M,getLineSymbol:()=>A,getPictureSymbol:()=>E,getSimpleMarkerSymbol:()=>v,getTextSymbol:()=>b,goToMap:()=>_,locationMap:()=>Fn,mapList:()=>wo,toArcGISPoint:()=>m});var t={};r.r(t),r.d(t,{aN:()=>F,B5:()=>T,qy:()=>z,XE:()=>C,sx:()=>W,Mu:()=>O,TT:()=>j,rF:()=>x,rp:()=>Y,ob:()=>S,UG:()=>Q,gA:()=>M,ff:()=>A,BN:()=>E,VH:()=>v,gr:()=>b,s9:()=>_,Kj:()=>Z,hW:()=>m});var e={};if(r.r(e),r.d(e,{hasBrowserEnv:()=>Ne,hasStandardBrowserEnv:()=>Ie,hasStandardBrowserWebWorkerEnv:()=>Re,navigator:()=>Le,origin:()=>Ce}),"undefined"!==typeof window){var i=window.document.currentScript,o=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(r.p=o[1])}var s=function(){var t=this,e=t._self._c;return e("loading-box",{attrs:{loading:t.isLoading}},[e("div",{staticClass:"arcgisMap-box"},[e("div",{staticClass:"arcgisMapBox",attrs:{id:t.mapId}}),t.pathCoordinates.length>0&&t.noAbleMoving?e("div",{staticClass:"controls"},[e("div",{staticClass:"controls-item",class:{"controls-active":t.currentPathIndex>0},on:{click:t.changeMove}},[t._v(" "+t._s(0==t.currentPathIndex?"开始":t.isPaused?"继续":"暂停")+" ")]),e("div",{staticClass:"controls-item",on:{click:t.changeSpeed}},[e("p",[t._v(t._s(t.speedNum)+" "),e("svgIcon",{attrs:{name:"close",width:"14",color:"#000"}})],1),e("p",[t._v("加速")])]),e("div",{staticClass:"controls-item",on:{click:t.stopAnimation}},[t._v("重置")]),e("div",{staticClass:"controls-item",on:{click:function(e){return t.drawMeasurement("distance")}}},[t._v(" 测距 ")]),e("div",{staticClass:"controls-item",on:{click:function(e){return t.drawMeasurement("area")}}},[t._v("测面积")]),e("div",{staticClass:"controls-item",on:{click:t.clearMeasurement}},[t._v("清除")])]):t._e(),e("CustomTooltip",{ref:"tooltip",scopedSlots:t._u([{key:"default",fn:function({data:i}){return[e("div",[t._v(" 经纬度: "),e("b",[t._v(t._s(i.longitude)+"-"+t._s(i.latitude))])]),e("div",[t._v(" 时间: "),e("b",[t._v(t._s(i.time))])])]}}])})],1)])},a=[],l=r(3);const c={initJs:"https://web.joinken.cn:82/arcgis/4.30/init.js",initCss:"https://web.joinken.cn:82/arcgis/4.30/esri/themes/light/main.css",config:null,layersType:"tdtYxt",baseMapUrl:"https://sp.joinken.cn/arcgis2d/rest/services/base/china_04/MapServer",center:[113.15333645218509,22.708905783449126],extent:null,zoom:1,minZoom:1,maxZoom:17,modules:["esri/config","esri/Map","esri/request","esri/views/MapView","esri/layers/BaseTileLayer","esri/views/SceneView","esri/Color","esri/geometry/Point","esri/geometry/Circle","esri/geometry/Polygon","esri/geometry/Polyline","esri/geometry/SpatialReference","esri/geometry/Extent","esri/layers/GraphicsLayer","esri/geometry/geometryEngine","esri/geometry/support/webMercatorUtils","esri/layers/BaseDynamicLayer","esri/layers/MapImageLayer","esri/layers/WebTileLayer","esri/layers/TileLayer","esri/layers/WMSLayer","esri/layers/WMTSLayer","esri/layers/FeatureLayer","esri/symbols/PictureMarkerSymbol","esri/symbols/SimpleMarkerSymbol","esri/symbols/SimpleLineSymbol","esri/symbols/SimpleFillSymbol","esri/layers/support/TileInfo","esri/widgets/Sketch/SketchViewModel","esri/Graphic","esri/Camera","esri/widgets/ScaleBar","esri/widgets/Swipe","esri/geometry/projection","esri/widgets/Measurement"]},u=c;function d(t=18,e="2d"){const i=[],r=!1;if(r){const r=156543.03390625,n=591657527.591555;for(let o=0;o<=t;o++){const t="2d"==e?o:o+1;i.push({level:o,levelValue:t,resolution:r/Math.pow(2,o),scale:n/Math.pow(2,o)})}}else{const r=.703125,n=295497593.05875003;for(let o=1;o<=t;o++){const t="2d"==e?o-1:o;i.push({level:o-1,levelValue:t,resolution:r/Math.pow(2,o-1),scale:n/Math.pow(2,o-1)})}}return i}function h(t){if(!t)return"";let{url:e,subDomains:i,title:r,id:n,tileInfo:o,wkid:s,fullExtent:a,loadInfo:l=!1,visible:c=!0,opacity:u=1,minScale:h=1,maxScale:p=22,popupTemplate:f,copyright:y="jk"}=t;if(!e)return"";const m=c||!1;let g={visible:m,opacity:u,spatialReference:{wkid:4490}};return i&&(g.subDomains=i),r&&(g.title=r),n&&(g.id=n),o&&(g.tileInfo=o),l&&(o?g.tileInfo=o:window.jkEsri&&window.jkEsri.TileInfo&&(g.tileInfo=new window.jkEsri.TileInfo({dpi:"90.71428571427429",rows:256,cols:256,compressionQuality:0,origin:{x:-180,y:90},spatialReference:{wkid:4490},lods:d(28,"3d")}))),s&&(g.spatialReference.wkid=s),a&&(g.fullExtent=a),f&&(g.popupTemplate=f),new window.jkEsri.WebTileLayer(e,g)}function p(t,e=!1){if(null==t)return!0;if("string"===typeof t){const e=t.trim();return""===e||"null"===e||"undefined"===e||"NaN"===e}return!(!e||0!==t&&!1!==t)}function f(t){if(!t)return null;if("string"===typeof t){const e=t.split(",").map(t=>parseFloat(t.trim()));if(2===e.length&&!isNaN(e[0])&&!isNaN(e[1]))return{x:e[0],y:e[1]}}if(Array.isArray(t)&&t.length>=2){const e=parseFloat(t[0]),i=parseFloat(t[1]);if(!isNaN(e)&&!isNaN(i))return{x:e,y:i}}if("object"===typeof t){let e,i;if("x"in t&&"y"in t?(e=parseFloat(t.x),i=parseFloat(t.y)):"longitude"in t&&"latitude"in t?(e=parseFloat(t.longitude),i=parseFloat(t.latitude)):"lng"in t&&"lat"in t&&(e=parseFloat(t.lng),i=parseFloat(t.lat)),!isNaN(e)&&!isNaN(i))return{x:e,y:i,spatialReference:t.spatialReference}}return null}function y(t){if(t&&"function"===typeof t.toJSON)try{const e=t.toJSON();if("number"===typeof e.x&&"number"===typeof e.y)return t}catch(e){throw new Error(`esri.Point toJSON 失败: ${e}`)}return null}function m(t,e=!0){let i,r,n=null;try{if(!window||!window.jkEsri||!window.jkEsri.Point)throw console.warn("[createText] ArcGIS API 未加载,跳过创建"),new Error("[createText] ArcGIS API 未加载,跳过创建");if(p(t))throw new Error("转换异常,无经纬度点位数据");if(n=y(t),n)return n;{const e=f(t);if(p(e)||p(e.x)||p(e.y))throw new Error("转换异常,无经纬度点位数据");i=e.x,r=e.y}if(isNaN(i)||isNaN(r))throw new Error("转换异常,无经纬度点位数据");if(e){if(i<-180||i>180)throw new Error("转换异常,x < -180 || x > 180");if(r<-90||r>90)throw new Error("转换异常,y < -90 || y > 90")}let o=t.wkid?t.wkid:Number(i)>1e3?102100:4326;return new window.jkEsri.Point(Number(i),Number(r),new window.jkEsri.SpatialReference({wkid:o}))}catch(o){throw console.warn("error",o),new Error(`转换异常:${o}`)}}function g(t,e,i={zoom:16}){if(!window.jkEsri)return Promise.reject(new Error("[mapJump] ArcGIS API 未加载 (window.jkEsri missing)"));if(!t||"function"!==typeof t.goTo)return Promise.reject(new Error("[mapJump] 无效的 view 对象(缺少 goTo 方法)"));const r="esri.views.SceneView"===t.declaredClass,n="esri.views.MapView"===t.declaredClass;if(!r&&!n)return Promise.reject(new Error(`[mapJump] 不支持的 view 类型: ${t.declaredClass}`));const o=Object.assign({padding:20,animate:!1,pointZoom:Math.max(1,Math.min(20,i?.pointZoom||15)),pointScale:Math.max(100,Math.min(1e5,i?.pointScale||5e3)),fallbackExtent:null,retryTimes:1},i);let s=!1;function a(){return new Promise(e=>{t.ready?e():t.when(()=>e())})}function l(e){if(!e||!e.spatialReference)return e;if(e.spatialReference.wkid===t.spatialReference.wkid)return e;try{return window.jkEsri.geometry.project(e,t.spatialReference)}catch(i){return console.warn("[projectGeometry] 空间参考转换失败,使用原几何:",i),e}}function c(t){if(!t)return!1;const e=t.type||(t.x&&t.y?"point":"");return"point"===e||"multipoint"===e}function u(e){if(!e)return null;if(e.toJSON&&"function"===typeof e.toJSON)return e;let i=e.type;if(i||void 0===e.x||void 0===e.y||(i="point"),!i)return null;const r=e.spatialReference||t.spatialReference;try{if("point"===i){const t=Number(e.x),i=Number(e.y);return isNaN(t)||isNaN(i)?(console.error("[toEsriGeometry] 点坐标非法:",e),null):new window.jkEsri.Point({x:t,y:i,z:e.z?Number(e.z):void 0,spatialReference:r})}return"multipoint"===i?new window.jkEsri.MultiPoint({points:e.points?.map(t=>t.map(Number))||[],spatialReference:r}):"polyline"===i||"multipolyline"===i?new window.jkEsri.Polyline({paths:e.paths?.map(t=>t.map(t=>t.map(Number)))||[],spatialReference:r}):"polygon"===i||"multipolygon"===i?new window.jkEsri.Polygon({rings:e.rings?.map(t=>t.map(t=>t.map(Number)))||[],spatialReference:r}):"extent"===i?new window.jkEsri.Extent({xmin:Number(e.xmin),ymin:Number(e.ymin),xmax:Number(e.xmax),ymax:Number(e.ymax),spatialReference:r}):null}catch(n){return console.warn(`[toEsriGeometry] 转换${i}失败:`,n),null}}function d(t){if(!t)return null;const e=u(t);return e?e.extent?e.extent:"point"===e.type?new window.jkEsri.Extent({xmin:e.x,ymin:e.y,xmax:e.x,ymax:e.y,spatialReference:e.spatialReference}):(console.warn("[getGeometryExtent] 无法获取几何范围:",t),null):null}function h(t){if(!t||0===t.length)return null;const e=[];for(const r of t){if(!r||!r.geometry){console.warn("[computeExtentFromGraphics] 跳过无几何的图形:",r);continue}const t=d(r.geometry);t?e.push(t):console.warn("[computeExtentFromGraphics] 图形几何无有效范围:",r.geometry)}if(0===e.length)return console.error("[computeExtentFromGraphics] 所有图形均无有效范围!"),null;if(1===e.length)return e[0];let i=e[0];for(let r=1;r<e.length;r++)i=i.union(e[r]);return i}function p(t){if(!t)return null;if(void 0!==t.x&&void 0!==t.y){const e=Number(t.x),i=Number(t.y);return isNaN(e)||isNaN(i)?null:{x:e,y:i}}if(Array.isArray(t)&&t.length>=2){const e=Number(t[0]),i=Number(t[1]);return isNaN(e)||isNaN(i)?null:{x:e,y:i}}if("string"===typeof t&&t.includes(",")){const[e,i]=t.split(",").map(Number);return isNaN(e)||isNaN(i)?null:{x:e,y:i}}return null}async function f(e,i,c){if(s)throw new Error("[mapJump] 前一次跳转未完成,中断本次操作");try{s=!0,await a();const d=l(e);if(!d)throw new Error("[mapJump] 空间参考转换后几何无效");const h={animate:o.animate,duration:o.animate?500:0};n?i?h.zoom=Math.max(1,Math.min(20,o.pointZoom)):h.padding=o.padding:r&&i&&(h.scale=Math.max(100,o.pointScale),h.target={position:d,scale:h.scale});try{await t.goTo(d,h)}catch(u){if(u.message.includes("interrupted")&&c>0)return console.warn(`[mapJump] 跳转中断,剩余重试次数: ${c}`,u),await new Promise(t=>setTimeout(t,50)),f(e,i,c-1);throw u}}finally{s=!1}}function y(e){if(e.fullExtent)return e.fullExtent;if(e.extent)return e.extent;if(e.tileInfo?.fullExtent)return e.tileInfo.fullExtent;if(e.initialExtent)return e.initialExtent;if(e.url)try{const i=new URL(e.url),r=i.searchParams.get("BBOX")||i.searchParams.get("bbox");if(r){const[i,n,o,s]=r.split(",").map(Number);if(!isNaN(i)&&!isNaN(n)&&!isNaN(o)&&!isNaN(s))return new window.jkEsri.Extent({xmin:i,ymin:n,xmax:o,ymax:s,spatialReference:e.spatialReference||t.spatialReference})}}catch(i){console.warn("[getWMXLayerExtent] 解析URL BBOX失败:",i)}return o.fallbackExtent}return new Promise(async(i,r)=>{let n=null,s=!1;try{if(await a(),e&&"object"===typeof e&&e.declaredClass&&e.declaredClass.endsWith("Layer")){const t=e;if("esri.layers.GraphicsLayer"===t.declaredClass){const e=t.graphics.toArray();if(0===e.length)return void r(new Error("[mapJump] GraphicsLayer 无有效图形"));if(1===e.length&&c(e[0].geometry))return await f(e[0].geometry,!0,o.retryTimes),void i();const n=h(e);if(n)await f(n,!1,o.retryTimes),i();else{const t=e.find(t=>t.geometry&&d(t.geometry));t?(await f(t.geometry,c(t.geometry),o.retryTimes),i()):o.fallbackExtent?(await f(o.fallbackExtent,!1,o.retryTimes),i()):r(new Error("[mapJump] 无法从GraphicsLayer计算有效范围,且无兜底范围"))}return}if("esri.layers.WMSLayer"===t.declaredClass||"esri.layers.WMTSLayer"===t.declaredClass){t.loaded||await t.load();const e=y(t);return void(e?(await f(e,!1,o.retryTimes),i()):r(new Error(`WM${t.declaredClass.includes("WMS")?"S":"TS"}图层无有效范围`)))}if("function"===typeof t.queryExtent){t.loaded||await t.load();const e=await t.queryExtent();return void(e?.extent?(await f(e.extent,!1,o.retryTimes),i()):r(new Error("服务图层查询范围为空")))}return t.fullExtent?(await f(t.fullExtent,!1,o.retryTimes),void i()):void r(new Error(`[mapJump] 不支持的图层类型: ${t.declaredClass}`))}if(Array.isArray(e)&&e.length>0){const t=e.every(t=>t.geometry);if(t){if(1===e.length&&c(e[0].geometry))return n=u(e[0].geometry),n?(await f(n,!0,o.retryTimes),void i()):void r(new Error("单个图形几何无效"));const t=h(e);if(t)await f(t,!1,o.retryTimes),i();else{const t=e.find(t=>t.geometry&&u(t.geometry));t?(n=u(t.geometry),await f(n,c(t.geometry),o.retryTimes),i()):o.fallbackExtent?(await f(o.fallbackExtent,!1,o.retryTimes),i()):r(new Error("[mapJump] 无法从图形数组计算有效范围,且无兜底范围"))}return}}if(e&&e.geometry)n=u(e.geometry),s=c(e.geometry);else if(e&&(e.type||e.x&&e.y))n=u(e),s=c(e);else{const i=p(e);i&&(n=new window.jkEsri.Point({x:i.x,y:i.y,spatialReference:t.spatialReference}),s=!0)}if(!n)return void r(new Error('[mapJump] 无法解析跳转目标,支持类型:\n 1. 基础坐标:{x,y} / [x,y] / "lng,lat"\n 2. 几何对象:Point/MultiPoint/Polyline/MultiPolyline/Polygon/MultiPolygon/Extent(API实例/纯JSON)\n 3. 图形对象:Graphic / 纯JSON Graphic / Graphic[] / 纯JSON Graphic[]\n 4. 图层对象:Layer(FeatureLayer/WMSLayer/WMTSLayer等)'));await f(n,s,o.retryTimes),i()}catch(l){r(new Error(`[mapJump] 执行失败: ${l.message}`))}})}function w(t){if(t)return t.includes("oint")?"point":t.includes("olygon")?"polygon":t.includes("ine")?"polyline":void 0}function b(t){try{const e=t.mapText||"暂无描述",i=isFinite(t.fontSize)?Number(t.fontSize):10,r="string"===typeof t.color&&t.color||"red",n="string"===typeof t.haloColor&&t.haloColor||"black",o="undefined"!==typeof t.haloSize?String(t.haloSize):"1px",s=isFinite(t.xoffset)?Number(t.xoffset):3,a=isFinite(t.yoffset)?Number(t.yoffset):3;return{type:"text",text:String(e??""),color:r,haloColor:n,haloSize:o,xoffset:s,yoffset:a,font:{size:i,weight:"bold"}}}catch(e){return console.error("[getTextSymbol] 生成 symbol 失败,使用默认值:",e),{type:"text",text:"暂无标注",color:"red",haloColor:"black",haloSize:"1px",xoffset:3,yoffset:3,font:{size:10,weight:"bold"}}}}function v(t){try{if(!window||!window.jkEsri||!window.jkEsri.SimpleMarkerSymbol)return console.error("[getSimpleMarkerSymbol] ArcGIS API-SimpleMarkerSymbol 未加载,跳过创建"),null;let e="red",i=12,r="white",n=1,o="circle",s=0;return t&&(p(t.color)||(e=t.color),isFinite(t.size)&&Number(t.size)&&(i=Number(t.size)),p(t.lineColor)||(r=t.lineColor),p(t.style)||(o=t.style),isFinite(t.lineWidth)&&Number(t.lineWidth)&&(n=Number(t.lineWidth)),isFinite(t.angle)&&Number(t.angle)&&(s=Number(t.angle))),new window.jkEsri.SimpleMarkerSymbol({color:e,size:i,outline:{color:r,width:n},style:o,angle:s})}catch(e){return console.error("[getSimpleMarkerSymbol] 生成 symbol 失败,",e),null}}function E(t){if(p(t)||p(t.url))return v(t);try{if(p(t)||p(t.url))return console.error("[getPictureSymbol] 生成 symbol",t),null;let e={x:0,y:0},i=20,r=20,n=0,o=t.url;return t&&(isFinite(t.width)&&Number(t.width)&&(i=Number(t.width)),isFinite(t.height)&&Number(t.height)&&(r=Number(t.height)),isFinite(t.size)&&Number(t.size)&&(n=Number(t.size)),isFinite(t.xoffset)&&Number(t.xoffset)&&(e.x=Number(t.xoffset)),isFinite(t.yoffset)&&Number(t.yoffset)&&(e.y=Number(t.yoffset))),{type:"picture-marker",url:o,width:i,height:r,size:n,offset:e}}catch(e){return console.error("[getPictureSymbol] 生成 symbol 失败",e),null}}function A(t){const{color:e="#fff",width:i=2,opacity:r=100}=t;try{if(!window||!window.jkEsri||!window.jkEsri.Color)return console.error("[getLineSymbol] ArcGIS API-Color 未加载,跳过创建"),null;const t=new window.jkEsri.Color(e);return t.a=Math.min(1,Math.max(0,r/100)),{type:"simple-line",color:t,width:i,cap:"round",join:"round"}}catch(n){return console.error("getLineSymbol未传入symbol,使用默认:",n),{type:"simple-line",color:new window.jkEsri.Color("#1f77b4").setAlpha(1),width:2,cap:"round",join:"round"}}}function M(t){let e="#fff",i="#fff",r=1,n=10,o=100;t&&(t.color&&(e=t.color),(t.opacity||0==t.opacity)&&(n=t.opacity),t.outline&&(i=t.outline?.color||"#fff",r=t.outline?.width||1,o=t.outline?.opacity||100));const s=new window.jkEsri.Color(e);s.a=n/100;const a=new window.jkEsri.Color(i);return a.a=o/100,{type:"simple-fill",color:s,outline:{color:a,width:r}}}function S(t){try{if(!window||!window.jkEsri||!window.jkEsri.Graphic)return console.error("[drawLayer] ArcGIS API 未加载,跳过创建"),null;if(p(t)||!t.geometry)return console.error(`[drawLayer] options.geometry格式不正确,${t}`),null;const e=t.attributes||t.properties||t||{},i={geometry:t.geometry,attributes:e};let r=window.jkEsri.Graphic.fromJSON(i),n=null;const o=t.geometry;return o.x||o.longitude||o.points&&o.points.length>0?n=t.mapText?b(t):t.url?E(t):v(t):o.paths&&o.paths.length>0?n=A(t):o.rings&&o.rings.length>0&&(n=M(t)),r.symbol=n,r}catch(e){return console.error("[drawLayer]失败,",e),null}}function x(t){try{if(!window||!window.jkEsri)throw console.error("[createArcPoint] ArcGIS API 未加载,跳过创建"),new Error("[createArcPoint] ArcGIS API 未加载,跳过创建");const e=m(t);if(!e||!isFinite(e.x)||!isFinite(e.y))throw console.error("[createText] 坐标无效,跳过创建:",t),new Error("[createText] 坐标无效,跳过创建");const i=e;let r=null;r=t.mapText?b(t):t.url?E(t):v(t);const n=new window.jkEsri.Graphic({geometry:i,symbol:r,attributes:t});return n}catch(e){return console.error("[createText] 创建文本标注失败,已跳过:",e),null}}function T(t){try{if(!window||!window.jkEsri)return console.error("[createArcPoint] ArcGIS API 未加载,跳过创建"),null;if(p(t)||"object"!=typeof t)return console.error("[createArcPoint] 数据格式不对,跳过创建",t),null;if("MultiPoint"!==t.type||!Array.isArray(t.coordinates))return x(t);{let e=[];if(t.coordinates.map(i=>{if(Array.isArray(i)&&i.length>=2&&isFinite(i[0])&&isFinite(i[1])){let r={...t,longitude:i[0],latitude:i[1]};e.push(x(r))}}),e&&e.length>0)return e}}catch(e){return console.error("[createArcPoint] 创建文本标注失败,已跳过:",e),null}}function k(t){return"string"===typeof t&&t.trim().toUpperCase().startsWith("MULTILINESTRING")}function P(t){return"string"===typeof t&&t.trim().toUpperCase().startsWith("LINESTRING")}function N(t){try{const e=t.trim().toUpperCase();let i;if(e.startsWith("MULTILINESTRING")){if(i=t.match(/MULTILINESTRING\s*\(\s*(.+)\s*\)/i)?.[1],!i)return null;const e=i.split(/\)\s*,\s*\(/);return e.map(t=>(t=t.replace(/^\(/,"").replace(/\)$/,""),t.split(",").map(t=>t.trim().split(/\s+/).map(Number))))}return e.startsWith("LINESTRING")?(i=t.match(/LINESTRING\s*\(\s*(.+)\s*\)/i)?.[1],i?[i.split(",").map(t=>t.trim().split(/\s+/).map(Number))]:null):null}catch(e){return console.error("WKT parse error:",e),null}}function L(t){return t.coordinates?"LineString"===t.type?[t.coordinates]:"MultiLineString"===t.type?t.coordinates:null:null}function I(t){return Array.isArray(t)&&0!==t.length?Array.isArray(t[0])&&Array.isArray(t[0][0])?t:Array.isArray(t[0])&&"number"===typeof t[0][0]?[t]:null:null}function R(t,e,i,r){let n=null,o={};try{if(t instanceof window.jkEsri.Graphic){const e=t.geometry;return e&&"polyline"===e.type?t:(console.error(`Item at index ${r} is a Graphic but not polyline, skipped`),null)}if(t&&"object"===typeof t&&t.geometry){const i=t.geometry;(Array.isArray(i.paths)||Array.isArray(i.coordinates)||Array.isArray(i.rings))&&(n=new window.jkEsri.Polyline({paths:i.paths||i.coordinates||i.rings,spatialReference:i.spatialReference||{wkid:e}})),o={...t.attributes,...t}}if(t&&"object"===typeof t&&t.type)if("polyline"==w(t.type))(Array.isArray(t.paths)||Array.isArray(t.coordinates)||Array.isArray(t.rings))&&(n=new window.jkEsri.Polyline({paths:t.paths||t.coordinates||t.rings,spatialReference:t.spatialReference||{wkid:e}})),o={...t.attributes,...t};else if(["LineString","MultiLineString"].includes(t.type)){const i=L(t);i&&(n=new window.jkEsri.Polyline({paths:i,spatialReference:{wkid:e}})),o={...t.properties,sourceIndex:r}}else if("Feature"===t.type)return R(t.geometry||t,e,i,r);if("string"===typeof t){if(k(t)||P(t)){const i=N(t);i&&(n=new window.jkEsri.Polyline({paths:i,spatialReference:{wkid:e}}))}o={wkt:t,sourceIndex:r}}if(Array.isArray(t)){const i=I(t);i&&(n=new window.jkEsri.Polyline({paths:i,spatialReference:{wkid:e}})),o={inputType:"array",sourceIndex:r}}if(!n)return console.error(`Invalid line data at index ${r}:`,t),null;const s={...i};t&&"object"===typeof t&&(void 0!==t.color&&(s.color=t.color),void 0!==t.width&&(s.width=t.width),void 0!==t.borderWidth&&(s.width=t.borderWidth),void 0!==t.opacity&&(s.opacity=t.opacity));const a=A(s);return new window.jkEsri.Graphic({geometry:n,symbol:a,attributes:{...o,sourceIndex:r}})}catch(s){return console.error(`Failed to parse line item at index ${r}:`,s),null}}async function C(t=[],e={},i=null){if(!Array.isArray(t)||0===t.length)return console.error("createLineGraphicsLayer: No line data provided"),null;const{defaultWKID:r=4326,layerId:n="lineGraphicsLayer",defaultSymbol:o={color:"#1f77b4",width:2,opacity:100}}=e;try{const e=[];for(let i=0;i<t.length;i++){const n=t[i],s=R(n,r,o,i);s&&e.push(s)}if(0===e.length)return console.error("createLineGraphicsLayer: No valid graphics created"),null;let s=i;return s||(s=new window.jkEsri.GraphicsLayer({id:n,title:"Dynamic Line Graphics Layer"})),s.addMany(e),{layer:s,graphics:e}}catch(s){return console.error("createLineGraphicsLayer failed:",s),null}}async function O(t=[],e,i=null,r){const{layerId:n="createMaskLayer",outerExtent:o=null}=e||{};if(!Array.isArray(t)||0===t.length)return console.warn("createMaskLayer: 范围是空的"),null;if("undefined"===typeof window.jkEsri)return console.error("ArcGIS API for JavaScript is not loaded"),null;const{Polygon:s,SpatialReference:a,GraphicsLayer:l,Graphic:c,geometryEngine:u}=window.jkEsri;let d=null,h=null,p=!1;if(i&&"object"===typeof i)if("2d"===i.type||"3d"===i.type){if(d=i,p="3d"===i.type,h=d.spatialReference,!h)return console.error("View spatialReference is not ready"),null}else"esri.layers.GraphicsLayer"===i.declaredClass||console.warn("Unknown context type, assuming WKID 4326"),h=new a({wkid:4326});else h=new a({wkid:4326});const f=h,y=f.wkid;function m(t,e){return t?Array.isArray(t)?t:t.rings?t.rings:t.geometry?.rings?t.geometry.rings:(console.warn(`Item ${e} has no valid rings`),null):null}function g(t){let e=0;for(let i=0;i<t.length;i++){const[r,n]=t[i],[o,s]=t[(i+1)%t.length];e+=(o-r)*(s+n)}return e>0}function w(t){if(t.length<3)return null;const e=t[0],i=t[t.length-1];return e[0]!==i[0]||e[1]!==i[1]?[...t,[e[0],e[1]]]:t}function b(t,e,i){const r=new s({rings:[t],spatialReference:i});if(0===e.length)return r;let n=null;for(const a of e){const t=new s({rings:[a],spatialReference:i});if(n)try{n=u.union(n,t)}catch(o){console.warn("Union hole failed, skipping:",o)}else n=t}if(!n)return r;try{const t=u.difference(r,n);return t||r}catch(o){return console.error("Geometry difference failed:",o),r}}try{let e;if(o&&o.spatialReference?.wkid===y)e=[[o.xmin,o.ymin],[o.xmax,o.ymin],[o.xmax,o.ymax],[o.xmin,o.ymax],[o.xmin,o.ymin]];else if(4326===y)e=[[-180,-90],[180,-90],[180,90],[-180,90],[-180,-90]];else if(3857===y){const t=20037508.342789244;e=[[-t,-t],[t,-t],[t,t],[-t,t],[-t,-t]]}else e=[[105.0019,19.9696],[121.0131,19.9696],[121.0131,26.933],[105.0019,26.933],[105.0019,19.9696]];const i=[];for(let r=0;r<t.length;r++){const e=t[r],n=m(e,r);!n||!Array.isArray(n[0])||n[0].length<3||n.forEach((t,e)=>{t=w(t),t&&(p||g(t)||(t=t.slice().reverse()),i.push(t))})}let a;a=p?await b(e,i,f):0===i.length?new s({rings:[e],spatialReference:f}):new s({rings:[e,...i],spatialReference:f});const u={type:"simple-fill",color:[0,0,0,.8],outline:null},h=new c({geometry:a,symbol:u});let v=r;return v?v.removeAll():(v=new l({id:n}),d&&d.map.add(v)),v.add(h),{layer:v,graphics:[h]}}catch(v){return console.error("createMaskLayer failed:",v),null}}async function j(t=[],e,i=null,r){const{layerId:n="polygonGraphicsLayer",defaultSymbol:o={color:[255,255,255,.1],outline:{color:"#0070ff",width:1}},enableHoles:s=!0}=e;if(!Array.isArray(t)||0===t.length)return console.warn("createPolygonGraphicsLayer: 范围是空的"),null;if("undefined"===typeof window.jkEsri)return console.error("ArcGIS API for JavaScript is not loaded"),null;const{Polygon:a,SpatialReference:l,GraphicsLayer:c,Graphic:u}=window.jkEsri;let d=null,h=null;if(i&&"object"===typeof i)if("2d"===i.type||"3d"===i.type){if(d=i,h=d.spatialReference,!h)return console.error("View spatialReference is not ready"),null}else"esri.layers.GraphicsLayer"===i.declaredClass||console.warn("Unknown context type, assuming WKID 4326"),h=new l({wkid:4326});else h=new l({wkid:4326});const p=h;function f(t,e){return t?Array.isArray(t)?t:t.rings?t.rings:t.geometry?.rings?t.geometry.rings:(console.warn(`Item ${e} has no valid rings`),null):null}function y(t){if(t.length<3)return null;const e=t[0],i=t[t.length-1];return e[0]!==i[0]||e[1]!==i[1]?[...t,[e[0],e[1]]]:t}try{const e=[];for(let r=0;r<t.length;r++){const i=t[r],n=f(i,r);if(!n)continue;const l={...o};if(i&&"object"===typeof i){if(Array.isArray(i.color)&&(l.color=i.color),"number"===typeof i.opacity){const t=Math.min(1,Math.max(0,i.opacity)),e=Array.isArray(l.color)?l.color.slice(0,3):[255,255,255];l.color=[...e,t]}i.outlineColor&&(l.outline.color=i.outlineColor),"number"===typeof i.outlineWidth&&(l.outline.width=i.outlineWidth)}const c={type:"simple-fill",color:l.color,outline:l.outline},d={...i||{},sourceIndex:r};if(s){const t=new a({rings:n,spatialReference:p});e.push(new u({geometry:t,symbol:c,attributes:d}))}else{const t=y(n[0]);if(t){const i=new a({rings:[t],spatialReference:p});e.push(new u({geometry:i,symbol:c,attributes:d}))}}}if(0===e.length)return console.warn("No valid graphics created"),null;let i=r;return i?i.removeAll():(i=new c({id:n,title:"Polygon Layer"}),d&&d.map.add(i)),i.addMany(e),{layer:i,graphics:e}}catch(m){return console.error("createPolygonGraphicsLayer failed:",m),null}}var G=r(979),D=r.n(G);r(337);function F(t){try{if(!t||!t.geometry)throw new Error(`${JSON.stringify(t)}-arcGISTranformGeoJson对象包含geometry:{点:{x,y},线:{paths:[]},面:{rings:[]}}`);return D().parse(t.geometry)}catch(e){throw new Error(`arcGISTranformGeoJson: ${e}`)}}var U=null,B=null;function Z(t){!U&&t.view&&(U=t.view),!B&&t.map&&(B=t.map)}function z(t,e,i){return new Promise(r=>{B=new window.jkEsri.Map({layers:[e]});const{minZoom:n=6,maxZoom:o=17}=i,s={container:t,map:B,ui:{logo:!1,components:["zoom"]}};Object.assign(s,i||{}),s.constraints={minZoom:n,maxZoom:o},U=new window.jkEsri.MapView(s),U.when(function(){i.extent&&V(i.extent),r({map:B,view:U})})})}function W(t,e){return new Promise(i=>{const r=e&&e.layersType?e.layersType:"tdtYxt";var n=h({id:r,title:"天地图-影像",url:"http://{subDomain}.tianditu.gov.cn/img_c/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=img&STYLE=default&FORMAT=tiles&TILEMATRIXSET=c&TILEMATRIX={level}&TILEROW={row}&TILECOL={col}&tk=4267820f43926eaf808d61dc07269beb",subDomains:["t0","t1","t2","t3","t4","t5","t6","t7"],loadInfo:!0}),o=h({id:"tiandituDtBz",title:"天地图-影像注记",url:"http://{subDomain}.tianditu.gov.cn/cia_c/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=cia&STYLE=default&FORMAT=tiles&TILEMATRIXSET=c&TILEMATRIX={level}&TILEROW={row}&TILECOL={col}&tk=4267820f43926eaf808d61dc07269beb",subDomains:["t0","t1","t2","t3","t4","t5","t6","t7"],loadInfo:!0});"tdtDxt"==r?n=h({id:r,title:"天地图-地形图",url:"http://{subDomain}.tianditu.gov.cn/ter_c/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=ter&STYLE=default&FORMAT=tiles&TILEMATRIXSET=c&TILEMATRIX={level}&TILEROW={row}&TILECOL={col}&tk=4267820f43926eaf808d61dc07269beb",subDomains:["t0","t1","t2","t3","t4","t5","t6","t7"],loadInfo:!0}):"tdtSlt"==r&&(n=h({id:"tdtSlt",title:"天地图-矢量图",url:"https://{subDomain}.tianditu.gov.cn/vec_c/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=vec&STYLE=default&FORMAT=tiles&TILEMATRIXSET=c&TILEMATRIX={level}&TILEROW={row}&TILECOL={col}&tk=4267820f43926eaf808d61dc07269beb",subDomains:["t0","t1","t2","t3","t4","t5","t6","t7"],loadInfo:!0})),B=new window.jkEsri.Map,B.layers.add(n,0),B.layers.add(o,1);const{minZoom:s=6,maxZoom:a=17}=e,l={map:B,container:t};e&&e.mapType&&"3d"==e.mapType?U=new window.jkEsri.SceneView(l):(Object.assign(l,e||{}),l.constraints={minZoom:s,maxZoom:a},U=new window.jkEsri.MapView(l)),U.when(function(){l.extent&&V(l.extent),i({map:B,view:U})})})}function J(t,e=17){U.goTo({target:m(t),tilt:60,heading:30,zoom:e},{duration:1e3})}function V(t){if(t.xmin&&t.ymin&&t.xmax&&t.ymax){let e=t.xmin>1e3?102100:4326;U.goTo(new window.jkEsri.Extent(t.xmin,t.ymin,t.xmax,t.ymax,new window.jkEsri.SpatialReference({wkid:e})),{duration:1e3})}}function _(t,e={zoom:16}){if(t&&U){if(t.x&&t.y||t.longitude&&t.latitude||t.jd&&t.wd||2==t.length&&t[0]&&t[1]||t.lng&&t.lat)return void J(t,e.zoom);if(t.xmin&&t.ymin&&t.xmax&&t.ymax)return void V(t);g(U,t,e)}}function Q(t){const e={wkid:4326},i=window.jkEsri.projection.project(t,e);return window.jkEsri.geometryEngine.geodesicArea(i,"square-meters")}function Y(t=10,e){return new Promise(i=>{const r={wkid:4326},n=window.jkEsri.projection.project(e,r),o=window.jkEsri.geometryEngine.geodesicBuffer(n,t,"kilometers");let s=new window.jkEsri.Color("red");const a=new window.jkEsri.Color("red");a.a=.1;const l={type:"simple-fill",color:a,outline:{color:s,width:2,style:"solid"}};let c=window.jkEsri.Graphic.fromJSON({geometry:o,attributes:null});c.symbol=l,i(c),V(c.geometry.extent)})}function H(t,e){return function(){return t.apply(e,arguments)}}const{toString:X}=Object.prototype,{getPrototypeOf:K}=Object,{iterator:q,toStringTag:$}=Symbol,tt=(t=>e=>{const i=X.call(e);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),et=t=>(t=t.toLowerCase(),e=>tt(e)===t),it=t=>e=>typeof e===t,{isArray:rt}=Array,nt=it("undefined");function ot(t){return null!==t&&!nt(t)&&null!==t.constructor&&!nt(t.constructor)&&ct(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const st=et("ArrayBuffer");function at(t){let e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&st(t.buffer),e}const lt=it("string"),ct=it("function"),ut=it("number"),dt=t=>null!==t&&"object"===typeof t,ht=t=>!0===t||!1===t,pt=t=>{if("object"!==tt(t))return!1;const e=K(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!($ in t)&&!(q in t)},ft=t=>{if(!dt(t)||ot(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},yt=et("Date"),mt=et("File"),gt=et("Blob"),wt=et("FileList"),bt=t=>dt(t)&&ct(t.pipe),vt=t=>{let e;return t&&("function"===typeof FormData&&t instanceof FormData||ct(t.append)&&("formdata"===(e=tt(t))||"object"===e&&ct(t.toString)&&"[object FormData]"===t.toString()))},Et=et("URLSearchParams"),[At,Mt,St,xt]=["ReadableStream","Request","Response","Headers"].map(et),Tt=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kt(t,e,{allOwnKeys:i=!1}={}){if(null===t||"undefined"===typeof t)return;let r,n;if("object"!==typeof t&&(t=[t]),rt(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{if(ot(t))return;const n=i?Object.getOwnPropertyNames(t):Object.keys(t),o=n.length;let s;for(r=0;r<o;r++)s=n[r],e.call(null,t[s],s,t)}}function Pt(t,e){if(ot(t))return null;e=e.toLowerCase();const i=Object.keys(t);let r,n=i.length;while(n-- >0)if(r=i[n],e===r.toLowerCase())return r;return null}const Nt=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:r.g)(),Lt=t=>!nt(t)&&t!==Nt;function It(){const{caseless:t,skipUndefined:e}=Lt(this)&&this||{},i={},r=(r,n)=>{const o=t&&Pt(i,n)||n;pt(i[o])&&pt(r)?i[o]=It(i[o],r):pt(r)?i[o]=It({},r):rt(r)?i[o]=r.slice():e&&nt(r)||(i[o]=r)};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&kt(arguments[n],r);return i}const Rt=(t,e,i,{allOwnKeys:r}={})=>(kt(e,(e,r)=>{i&&ct(e)?t[r]=H(e,i):t[r]=e},{allOwnKeys:r}),t),Ct=t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),Ot=(t,e,i,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),i&&Object.assign(t.prototype,i)},jt=(t,e,i,r)=>{let n,o,s;const a={};if(e=e||{},null==t)return e;do{n=Object.getOwnPropertyNames(t),o=n.length;while(o-- >0)s=n[o],r&&!r(s,t,e)||a[s]||(e[s]=t[s],a[s]=!0);t=!1!==i&&K(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},Gt=(t,e,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=e.length;const r=t.indexOf(e,i);return-1!==r&&r===i},Dt=t=>{if(!t)return null;if(rt(t))return t;let e=t.length;if(!ut(e))return null;const i=new Array(e);while(e-- >0)i[e]=t[e];return i},Ft=(t=>e=>t&&e instanceof t)("undefined"!==typeof Uint8Array&&K(Uint8Array)),Ut=(t,e)=>{const i=t&&t[q],r=i.call(t);let n;while((n=r.next())&&!n.done){const i=n.value;e.call(t,i[0],i[1])}},Bt=(t,e)=>{let i;const r=[];while(null!==(i=t.exec(e)))r.push(i);return r},Zt=et("HTMLFormElement"),zt=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),Wt=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),Jt=et("RegExp"),Vt=(t,e)=>{const i=Object.getOwnPropertyDescriptors(t),r={};kt(i,(i,n)=>{let o;!1!==(o=e(i,n,t))&&(r[n]=o||i)}),Object.defineProperties(t,r)},_t=t=>{Vt(t,(e,i)=>{if(ct(t)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;const r=t[i];ct(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")}))})},Qt=(t,e)=>{const i={},r=t=>{t.forEach(t=>{i[t]=!0})};return rt(t)?r(t):r(String(t).split(e)),i},Yt=()=>{},Ht=(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e;function Xt(t){return!!(t&&ct(t.append)&&"FormData"===t[$]&&t[q])}const Kt=t=>{const e=new Array(10),i=(t,r)=>{if(dt(t)){if(e.indexOf(t)>=0)return;if(ot(t))return t;if(!("toJSON"in t)){e[r]=t;const n=rt(t)?[]:{};return kt(t,(t,e)=>{const o=i(t,r+1);!nt(o)&&(n[e]=o)}),e[r]=void 0,n}}return t};return i(t,0)},qt=et("AsyncFunction"),$t=t=>t&&(dt(t)||ct(t))&&ct(t.then)&&ct(t.catch),te=((t,e)=>t?setImmediate:e?((t,e)=>(Nt.addEventListener("message",({source:i,data:r})=>{i===Nt&&r===t&&e.length&&e.shift()()},!1),i=>{e.push(i),Nt.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))("function"===typeof setImmediate,ct(Nt.postMessage)),ee="undefined"!==typeof queueMicrotask?queueMicrotask.bind(Nt):"undefined"!==typeof process&&process.nextTick||te,ie=t=>null!=t&&ct(t[q]),re={isArray:rt,isArrayBuffer:st,isBuffer:ot,isFormData:vt,isArrayBufferView:at,isString:lt,isNumber:ut,isBoolean:ht,isObject:dt,isPlainObject:pt,isEmptyObject:ft,isReadableStream:At,isRequest:Mt,isResponse:St,isHeaders:xt,isUndefined:nt,isDate:yt,isFile:mt,isBlob:gt,isRegExp:Jt,isFunction:ct,isStream:bt,isURLSearchParams:Et,isTypedArray:Ft,isFileList:wt,forEach:kt,merge:It,extend:Rt,trim:Tt,stripBOM:Ct,inherits:Ot,toFlatObject:jt,kindOf:tt,kindOfTest:et,endsWith:Gt,toArray:Dt,forEachEntry:Ut,matchAll:Bt,isHTMLForm:Zt,hasOwnProperty:Wt,hasOwnProp:Wt,reduceDescriptors:Vt,freezeMethods:_t,toObjectSet:Qt,toCamelCase:zt,noop:Yt,toFiniteNumber:Ht,findKey:Pt,global:Nt,isContextDefined:Lt,isSpecCompliantForm:Xt,toJSONObject:Kt,isAsyncFn:qt,isThenable:$t,setImmediate:te,asap:ee,isIterable:ie};function ne(t,e,i,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),i&&(this.config=i),r&&(this.request=r),n&&(this.response=n,this.status=n.status?n.status:null)}re.inherits(ne,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:re.toJSONObject(this.config),code:this.code,status:this.status}}});const oe=ne.prototype,se={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{se[t]={value:t}}),Object.defineProperties(ne,se),Object.defineProperty(oe,"isAxiosError",{value:!0}),ne.from=(t,e,i,r,n,o)=>{const s=Object.create(oe);re.toFlatObject(t,s,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t);const a=t&&t.message?t.message:"Error",l=null==e&&t?t.code:e;return ne.call(s,a,l,i,r,n),t&&null==s.cause&&Object.defineProperty(s,"cause",{value:t,configurable:!0}),s.name=t&&t.name||"Error",o&&Object.assign(s,o),s};const ae=ne,le=null;function ce(t){return re.isPlainObject(t)||re.isArray(t)}function ue(t){return re.endsWith(t,"[]")?t.slice(0,-2):t}function de(t,e,i){return t?t.concat(e).map(function(t,e){return t=ue(t),!i&&e?"["+t+"]":t}).join(i?".":""):e}function he(t){return re.isArray(t)&&!t.some(ce)}const pe=re.toFlatObject(re,{},null,function(t){return/^is[A-Z]/.test(t)});function fe(t,e,i){if(!re.isObject(t))throw new TypeError("target must be an object");e=e||new(le||FormData),i=re.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!re.isUndefined(e[t])});const r=i.metaTokens,n=i.visitor||u,o=i.dots,s=i.indexes,a=i.Blob||"undefined"!==typeof Blob&&Blob,l=a&&re.isSpecCompliantForm(e);if(!re.isFunction(n))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(re.isDate(t))return t.toISOString();if(re.isBoolean(t))return t.toString();if(!l&&re.isBlob(t))throw new ae("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(t)||re.isTypedArray(t)?l&&"function"===typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,i,n){let a=t;if(t&&!n&&"object"===typeof t)if(re.endsWith(i,"{}"))i=r?i:i.slice(0,-2),t=JSON.stringify(t);else if(re.isArray(t)&&he(t)||(re.isFileList(t)||re.endsWith(i,"[]"))&&(a=re.toArray(t)))return i=ue(i),a.forEach(function(t,r){!re.isUndefined(t)&&null!==t&&e.append(!0===s?de([i],r,o):null===s?i:i+"[]",c(t))}),!1;return!!ce(t)||(e.append(de(n,i,o),c(t)),!1)}const d=[],h=Object.assign(pe,{defaultVisitor:u,convertValue:c,isVisitable:ce});function p(t,i){if(!re.isUndefined(t)){if(-1!==d.indexOf(t))throw Error("Circular reference detected in "+i.join("."));d.push(t),re.forEach(t,function(t,r){const o=!(re.isUndefined(t)||null===t)&&n.call(e,t,re.isString(r)?r.trim():r,i,h);!0===o&&p(t,i?i.concat(r):[r])}),d.pop()}}if(!re.isObject(t))throw new TypeError("data must be an object");return p(t),e}const ye=fe;function me(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function ge(t,e){this._pairs=[],t&&ye(t,this,e)}const we=ge.prototype;we.append=function(t,e){this._pairs.push([t,e])},we.toString=function(t){const e=t?function(e){return t.call(this,e,me)}:me;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};const be=ge;function ve(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ee(t,e,i){if(!e)return t;const r=i&&i.encode||ve;re.isFunction(i)&&(i={serialize:i});const n=i&&i.serialize;let o;if(o=n?n(e,i):re.isURLSearchParams(e)?e.toString():new be(e,i).toString(r),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}class Ae{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){re.forEach(this.handlers,function(e){null!==e&&t(e)})}}const Me=Ae,Se={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xe="undefined"!==typeof URLSearchParams?URLSearchParams:be,Te="undefined"!==typeof FormData?FormData:null,ke="undefined"!==typeof Blob?Blob:null,Pe={isBrowser:!0,classes:{URLSearchParams:xe,FormData:Te,Blob:ke},protocols:["http","https","file","blob","url","data"]},Ne="undefined"!==typeof window&&"undefined"!==typeof document,Le="object"===typeof navigator&&navigator||void 0,Ie=Ne&&(!Le||["ReactNative","NativeScript","NS"].indexOf(Le.product)<0),Re=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Ce=Ne&&window.location.href||"http://localhost",Oe={...e,...Pe};function je(t,e){return ye(t,new Oe.classes.URLSearchParams,{visitor:function(t,e,i,r){return Oe.isNode&&re.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...e})}function Ge(t){return re.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}function De(t){const e={},i=Object.keys(t);let r;const n=i.length;let o;for(r=0;r<n;r++)o=i[r],e[o]=t[o];return e}function Fe(t){function e(t,i,r,n){let o=t[n++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=n>=t.length;if(o=!o&&re.isArray(r)?r.length:o,a)return re.hasOwnProp(r,o)?r[o]=[r[o],i]:r[o]=i,!s;r[o]&&re.isObject(r[o])||(r[o]=[]);const l=e(t,i,r[o],n);return l&&re.isArray(r[o])&&(r[o]=De(r[o])),!s}if(re.isFormData(t)&&re.isFunction(t.entries)){const i={};return re.forEachEntry(t,(t,r)=>{e(Ge(t),r,i,0)}),i}return null}const Ue=Fe;function Be(t,e,i){if(re.isString(t))try{return(e||JSON.parse)(t),re.trim(t)}catch(r){if("SyntaxError"!==r.name)throw r}return(i||JSON.stringify)(t)}const Ze={transitional:Se,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const i=e.getContentType()||"",r=i.indexOf("application/json")>-1,n=re.isObject(t);n&&re.isHTMLForm(t)&&(t=new FormData(t));const o=re.isFormData(t);if(o)return r?JSON.stringify(Ue(t)):t;if(re.isArrayBuffer(t)||re.isBuffer(t)||re.isStream(t)||re.isFile(t)||re.isBlob(t)||re.isReadableStream(t))return t;if(re.isArrayBufferView(t))return t.buffer;if(re.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(n){if(i.indexOf("application/x-www-form-urlencoded")>-1)return je(t,this.formSerializer).toString();if((s=re.isFileList(t))||i.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return ye(s?{"files[]":t}:t,e&&new e,this.formSerializer)}}return n||r?(e.setContentType("application/json",!1),Be(t)):t}],transformResponse:[function(t){const e=this.transitional||Ze.transitional,i=e&&e.forcedJSONParsing,r="json"===this.responseType;if(re.isResponse(t)||re.isReadableStream(t))return t;if(t&&re.isString(t)&&(i&&!this.responseType||r)){const i=e&&e.silentJSONParsing,o=!i&&r;try{return JSON.parse(t,this.parseReviver)}catch(n){if(o){if("SyntaxError"===n.name)throw ae.from(n,ae.ERR_BAD_RESPONSE,this,null,this.response);throw n}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Oe.classes.FormData,Blob:Oe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};re.forEach(["delete","get","head","post","put","patch"],t=>{Ze.headers[t]={}});const ze=Ze,We=re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Je=t=>{const e={};let i,r,n;return t&&t.split("\n").forEach(function(t){n=t.indexOf(":"),i=t.substring(0,n).trim().toLowerCase(),r=t.substring(n+1).trim(),!i||e[i]&&We[i]||("set-cookie"===i?e[i]?e[i].push(r):e[i]=[r]:e[i]=e[i]?e[i]+", "+r:r)}),e},Ve=Symbol("internals");function _e(t){return t&&String(t).trim().toLowerCase()}function Qe(t){return!1===t||null==t?t:re.isArray(t)?t.map(Qe):String(t)}function Ye(t){const e=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=i.exec(t))e[r[1]]=r[2];return e}const He=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Xe(t,e,i,r,n){return re.isFunction(r)?r.call(this,e,i):(n&&(e=i),re.isString(e)?re.isString(r)?-1!==e.indexOf(r):re.isRegExp(r)?r.test(e):void 0:void 0)}function Ke(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function qe(t,e){const i=re.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+i,{value:function(t,i,n){return this[r].call(this,e,t,i,n)},configurable:!0})})}class $e{constructor(t){t&&this.set(t)}set(t,e,i){const r=this;function n(t,e,i){const n=_e(e);if(!n)throw new Error("header name must be a non-empty string");const o=re.findKey(r,n);(!o||void 0===r[o]||!0===i||void 0===i&&!1!==r[o])&&(r[o||e]=Qe(t))}const o=(t,e)=>re.forEach(t,(t,i)=>n(t,i,e));if(re.isPlainObject(t)||t instanceof this.constructor)o(t,e);else if(re.isString(t)&&(t=t.trim())&&!He(t))o(Je(t),e);else if(re.isObject(t)&&re.isIterable(t)){let i,r,n={};for(const e of t){if(!re.isArray(e))throw TypeError("Object iterator must return a key-value pair");n[r=e[0]]=(i=n[r])?re.isArray(i)?[...i,e[1]]:[i,e[1]]:e[1]}o(n,e)}else null!=t&&n(e,t,i);return this}get(t,e){if(t=_e(t),t){const i=re.findKey(this,t);if(i){const t=this[i];if(!e)return t;if(!0===e)return Ye(t);if(re.isFunction(e))return e.call(this,t,i);if(re.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=_e(t),t){const i=re.findKey(this,t);return!(!i||void 0===this[i]||e&&!Xe(this,this[i],i,e))}return!1}delete(t,e){const i=this;let r=!1;function n(t){if(t=_e(t),t){const n=re.findKey(i,t);!n||e&&!Xe(i,i[n],n,e)||(delete i[n],r=!0)}}return re.isArray(t)?t.forEach(n):n(t),r}clear(t){const e=Object.keys(this);let i=e.length,r=!1;while(i--){const n=e[i];t&&!Xe(this,this[n],n,t,!0)||(delete this[n],r=!0)}return r}normalize(t){const e=this,i={};return re.forEach(this,(r,n)=>{const o=re.findKey(i,n);if(o)return e[o]=Qe(r),void delete e[n];const s=t?Ke(n):String(n).trim();s!==n&&delete e[n],e[s]=Qe(r),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return re.forEach(this,(i,r)=>{null!=i&&!1!==i&&(e[r]=t&&re.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(t=>i.set(t)),i}static accessor(t){const e=this[Ve]=this[Ve]={accessors:{}},i=e.accessors,r=this.prototype;function n(t){const e=_e(t);i[e]||(qe(r,t),i[e]=!0)}return re.isArray(t)?t.forEach(n):n(t),this}}$e.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),re.reduceDescriptors($e.prototype,({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[i]=t}}}),re.freezeMethods($e);const ti=$e;function ei(t,e){const i=this||ze,r=e||i,n=ti.from(r.headers);let o=r.data;return re.forEach(t,function(t){o=t.call(i,o,n.normalize(),e?e.status:void 0)}),n.normalize(),o}function ii(t){return!(!t||!t.__CANCEL__)}function ri(t,e,i){ae.call(this,null==t?"canceled":t,ae.ERR_CANCELED,e,i),this.name="CanceledError"}re.inherits(ri,ae,{__CANCEL__:!0});const ni=ri;function oi(t,e,i){const r=i.config.validateStatus;i.status&&r&&!r(i.status)?e(new ae("Request failed with status code "+i.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):t(i)}function si(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ai(t,e){t=t||10;const i=new Array(t),r=new Array(t);let n,o=0,s=0;return e=void 0!==e?e:1e3,function(a){const l=Date.now(),c=r[s];n||(n=l),i[o]=a,r[o]=l;let u=s,d=0;while(u!==o)d+=i[u++],u%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),l-n<e)return;const h=c&&l-c;return h?Math.round(1e3*d/h):void 0}}const li=ai;function ci(t,e){let i,r,n=0,o=1e3/e;const s=(e,o=Date.now())=>{n=o,i=null,r&&(clearTimeout(r),r=null),t(...e)},a=(...t)=>{const e=Date.now(),a=e-n;a>=o?s(t,e):(i=t,r||(r=setTimeout(()=>{r=null,s(i)},o-a)))},l=()=>i&&s(i);return[a,l]}const ui=ci,di=(t,e,i=3)=>{let r=0;const n=li(50,250);return ui(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-r,l=n(a),c=o<=s;r=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-o)/l:void 0,event:i,lengthComputable:null!=s,[e?"download":"upload"]:!0};t(u)},i)},hi=(t,e)=>{const i=null!=t;return[r=>e[0]({lengthComputable:i,total:t,loaded:r}),e[1]]},pi=t=>(...e)=>re.asap(()=>t(...e)),fi=Oe.hasStandardBrowserEnv?((t,e)=>i=>(i=new URL(i,Oe.origin),t.protocol===i.protocol&&t.host===i.host&&(e||t.port===i.port)))(new URL(Oe.origin),Oe.navigator&&/(msie|trident)/i.test(Oe.navigator.userAgent)):()=>!0,yi=Oe.hasStandardBrowserEnv?{write(t,e,i,r,n,o,s){if("undefined"===typeof document)return;const a=[`${t}=${encodeURIComponent(e)}`];re.isNumber(i)&&a.push(`expires=${new Date(i).toUTCString()}`),re.isString(r)&&a.push(`path=${r}`),re.isString(n)&&a.push(`domain=${n}`),!0===o&&a.push("secure"),re.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(t){if("undefined"===typeof document)return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function mi(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function gi(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function wi(t,e,i){let r=!mi(e);return t&&(r||0==i)?gi(t,e):e}const bi=t=>t instanceof ti?{...t}:t;function vi(t,e){e=e||{};const i={};function r(t,e,i,r){return re.isPlainObject(t)&&re.isPlainObject(e)?re.merge.call({caseless:r},t,e):re.isPlainObject(e)?re.merge({},e):re.isArray(e)?e.slice():e}function n(t,e,i,n){return re.isUndefined(e)?re.isUndefined(t)?void 0:r(void 0,t,i,n):r(t,e,i,n)}function o(t,e){if(!re.isUndefined(e))return r(void 0,e)}function s(t,e){return re.isUndefined(e)?re.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function a(i,n,o){return o in e?r(i,n):o in t?r(void 0,i):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,e,i)=>n(bi(t),bi(e),i,!0)};return re.forEach(Object.keys({...t,...e}),function(r){const o=l[r]||n,s=o(t[r],e[r],r);re.isUndefined(s)&&o!==a||(i[r]=s)}),i}const Ei=t=>{const e=vi({},t);let{data:i,withXSRFToken:r,xsrfHeaderName:n,xsrfCookieName:o,headers:s,auth:a}=e;if(e.headers=s=ti.from(s),e.url=Ee(wi(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),re.isFormData(i))if(Oe.hasStandardBrowserEnv||Oe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(re.isFunction(i.getHeaders)){const t=i.getHeaders(),e=["content-type","content-length"];Object.entries(t).forEach(([t,i])=>{e.includes(t.toLowerCase())&&s.set(t,i)})}if(Oe.hasStandardBrowserEnv&&(r&&re.isFunction(r)&&(r=r(e)),r||!1!==r&&fi(e.url))){const t=n&&o&&yi.read(o);t&&s.set(n,t)}return e},Ai="undefined"!==typeof XMLHttpRequest,Mi=Ai&&function(t){return new Promise(function(e,i){const r=Ei(t);let n=r.data;const o=ti.from(r.headers).normalize();let s,a,l,c,u,{responseType:d,onUploadProgress:h,onDownloadProgress:p}=r;function f(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let y=new XMLHttpRequest;function m(){if(!y)return;const r=ti.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),n=d&&"text"!==d&&"json"!==d?y.response:y.responseText,o={data:n,status:y.status,statusText:y.statusText,headers:r,config:t,request:y};oi(function(t){e(t),f()},function(t){i(t),f()},o),y=null}y.open(r.method.toUpperCase(),r.url,!0),y.timeout=r.timeout,"onloadend"in y?y.onloadend=m:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(m)},y.onabort=function(){y&&(i(new ae("Request aborted",ae.ECONNABORTED,t,y)),y=null)},y.onerror=function(e){const r=e&&e.message?e.message:"Network Error",n=new ae(r,ae.ERR_NETWORK,t,y);n.event=e||null,i(n),y=null},y.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const n=r.transitional||Se;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),i(new ae(e,n.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,t,y)),y=null},void 0===n&&o.setContentType(null),"setRequestHeader"in y&&re.forEach(o.toJSON(),function(t,e){y.setRequestHeader(e,t)}),re.isUndefined(r.withCredentials)||(y.withCredentials=!!r.withCredentials),d&&"json"!==d&&(y.responseType=r.responseType),p&&([l,u]=di(p,!0),y.addEventListener("progress",l)),h&&y.upload&&([a,c]=di(h),y.upload.addEventListener("progress",a),y.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(s=e=>{y&&(i(!e||e.type?new ni(null,t,y):e),y.abort(),y=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const g=si(r.url);g&&-1===Oe.protocols.indexOf(g)?i(new ae("Unsupported protocol "+g+":",ae.ERR_BAD_REQUEST,t)):y.send(n||null)})},Si=(t,e)=>{const{length:i}=t=t?t.filter(Boolean):[];if(e||i){let i,r=new AbortController;const n=function(t){if(!i){i=!0,s();const e=t instanceof Error?t:this.reason;r.abort(e instanceof ae?e:new ni(e instanceof Error?e.message:e))}};let o=e&&setTimeout(()=>{o=null,n(new ae(`timeout ${e} of ms exceeded`,ae.ETIMEDOUT))},e);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(n):t.removeEventListener("abort",n)}),t=null)};t.forEach(t=>t.addEventListener("abort",n));const{signal:a}=r;return a.unsubscribe=()=>re.asap(s),a}},xi=Si,Ti=function*(t,e){let i=t.byteLength;if(!e||i<e)return void(yield t);let r,n=0;while(n<i)r=n+e,yield t.slice(n,r),n=r},ki=async function*(t,e){for await(const i of Pi(t))yield*Ti(i,e)},Pi=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:i}=await e.read();if(t)break;yield i}}finally{await e.cancel()}},Ni=(t,e,i,r)=>{const n=ki(t,e);let o,s=0,a=t=>{o||(o=!0,r&&r(t))};return new ReadableStream({async pull(t){try{const{done:e,value:r}=await n.next();if(e)return a(),void t.close();let o=r.byteLength;if(i){let t=s+=o;i(t)}t.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel(t){return a(t),n.return()}},{highWaterMark:2})},Li=65536,{isFunction:Ii}=re,Ri=(({Request:t,Response:e})=>({Request:t,Response:e}))(re.global),{ReadableStream:Ci,TextEncoder:Oi}=re.global,ji=(t,...e)=>{try{return!!t(...e)}catch(i){return!1}},Gi=t=>{t=re.merge.call({skipUndefined:!0},Ri,t);const{fetch:e,Request:i,Response:r}=t,n=e?Ii(e):"function"===typeof fetch,o=Ii(i),s=Ii(r);if(!n)return!1;const a=n&&Ii(Ci),l=n&&("function"===typeof Oi?(t=>e=>t.encode(e))(new Oi):async t=>new Uint8Array(await new i(t).arrayBuffer())),c=o&&a&&ji(()=>{let t=!1;const e=new i(Oe.origin,{body:new Ci,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),u=s&&a&&ji(()=>re.isReadableStream(new r("").body)),d={stream:u&&(t=>t.body)};n&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!d[t]&&(d[t]=(e,i)=>{let r=e&&e[t];if(r)return r.call(e);throw new ae(`Response type '${t}' is not supported`,ae.ERR_NOT_SUPPORT,i)})})})();const h=async t=>{if(null==t)return 0;if(re.isBlob(t))return t.size;if(re.isSpecCompliantForm(t)){const e=new i(Oe.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return re.isArrayBufferView(t)||re.isArrayBuffer(t)?t.byteLength:(re.isURLSearchParams(t)&&(t+=""),re.isString(t)?(await l(t)).byteLength:void 0)},p=async(t,e)=>{const i=re.toFiniteNumber(t.getContentLength());return null==i?h(e):i};return async t=>{let{url:n,method:s,data:a,signal:l,cancelToken:h,timeout:f,onDownloadProgress:y,onUploadProgress:m,responseType:g,headers:w,withCredentials:b="same-origin",fetchOptions:v}=Ei(t),E=e||fetch;g=g?(g+"").toLowerCase():"text";let A=xi([l,h&&h.toAbortSignal()],f),M=null;const S=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let x;try{if(m&&c&&"get"!==s&&"head"!==s&&0!==(x=await p(w,a))){let t,e=new i(n,{method:"POST",body:a,duplex:"half"});if(re.isFormData(a)&&(t=e.headers.get("content-type"))&&w.setContentType(t),e.body){const[t,i]=hi(x,di(pi(m)));a=Ni(e.body,Li,t,i)}}re.isString(b)||(b=b?"include":"omit");const e=o&&"credentials"in i.prototype,l={...v,signal:A,method:s.toUpperCase(),headers:w.normalize().toJSON(),body:a,duplex:"half",credentials:e?b:void 0};M=o&&new i(n,l);let h=await(o?E(M,v):E(n,l));const f=u&&("stream"===g||"response"===g);if(u&&(y||f&&S)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=h[e]});const e=re.toFiniteNumber(h.headers.get("content-length")),[i,n]=y&&hi(e,di(pi(y),!0))||[];h=new r(Ni(h.body,Li,i,()=>{n&&n(),S&&S()}),t)}g=g||"text";let T=await d[re.findKey(d,g)||"text"](h,t);return!f&&S&&S(),await new Promise((e,i)=>{oi(e,i,{data:T,headers:ti.from(h.headers),status:h.status,statusText:h.statusText,config:t,request:M})})}catch(T){if(S&&S(),T&&"TypeError"===T.name&&/Load failed|fetch/i.test(T.message))throw Object.assign(new ae("Network Error",ae.ERR_NETWORK,t,M),{cause:T.cause||T});throw ae.from(T,T&&T.code,t,M)}}},Di=new Map,Fi=t=>{let e=t&&t.env||{};const{fetch:i,Request:r,Response:n}=e,o=[r,n,i];let s,a,l=o.length,c=l,u=Di;while(c--)s=o[c],a=u.get(s),void 0===a&&u.set(s,a=c?new Map:Gi(e)),u=a;return a},Ui=(Fi(),{http:le,xhr:Mi,fetch:{get:Fi}});re.forEach(Ui,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(i){}Object.defineProperty(t,"adapterName",{value:e})}});const Bi=t=>`- ${t}`,Zi=t=>re.isFunction(t)||null===t||!1===t;function zi(t,e){t=re.isArray(t)?t:[t];const{length:i}=t;let r,n;const o={};for(let s=0;s<i;s++){let i;if(r=t[s],n=r,!Zi(r)&&(n=Ui[(i=String(r)).toLowerCase()],void 0===n))throw new ae(`Unknown adapter '${i}'`);if(n&&(re.isFunction(n)||(n=n.get(e))))break;o[i||"#"+s]=n}if(!n){const t=Object.entries(o).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));let e=i?t.length>1?"since :\n"+t.map(Bi).join("\n"):" "+Bi(t[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+e,"ERR_NOT_SUPPORT")}return n}const Wi={getAdapter:zi,adapters:Ui};function Ji(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ni(null,t)}function Vi(t){Ji(t),t.headers=ti.from(t.headers),t.data=ei.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const e=Wi.getAdapter(t.adapter||ze.adapter,t);return e(t).then(function(e){return Ji(t),e.data=ei.call(t,t.transformResponse,e),e.headers=ti.from(e.headers),e},function(e){return ii(e)||(Ji(t),e&&e.response&&(e.response.data=ei.call(t,t.transformResponse,e.response),e.response.headers=ti.from(e.response.headers))),Promise.reject(e)})}const _i="1.13.2",Qi={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Qi[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const Yi={};function Hi(t,e,i){if("object"!==typeof t)throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let n=r.length;while(n-- >0){const o=r[n],s=e[o];if(s){const e=t[o],i=void 0===e||s(e,o,t);if(!0!==i)throw new ae("option "+o+" must be "+i,ae.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new ae("Unknown option "+o,ae.ERR_BAD_OPTION)}}Qi.transitional=function(t,e,i){function r(t,e){return"[Axios v"+_i+"] Transitional option '"+t+"'"+e+(i?". "+i:"")}return(i,n,o)=>{if(!1===t)throw new ae(r(n," has been removed"+(e?" in "+e:"")),ae.ERR_DEPRECATED);return e&&!Yi[n]&&(Yi[n]=!0,console.warn(r(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(i,n,o)}},Qi.spelling=function(t){return(e,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};const Xi={assertOptions:Hi,validators:Qi},Ki=Xi.validators;class qi{constructor(t){this.defaults=t||{},this.interceptors={request:new Me,response:new Me}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const e=t.stack?t.stack.replace(/^.+\n/,""):"";try{i.stack?e&&!String(i.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(i.stack+="\n"+e):i.stack=e}catch(r){}}throw i}}_request(t,e){"string"===typeof t?(e=e||{},e.url=t):e=t||{},e=vi(this.defaults,e);const{transitional:i,paramsSerializer:r,headers:n}=e;void 0!==i&&Xi.assertOptions(i,{silentJSONParsing:Ki.transitional(Ki.boolean),forcedJSONParsing:Ki.transitional(Ki.boolean),clarifyTimeoutError:Ki.transitional(Ki.boolean)},!1),null!=r&&(re.isFunction(r)?e.paramsSerializer={serialize:r}:Xi.assertOptions(r,{encode:Ki.function,serialize:Ki.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),Xi.assertOptions(e,{baseUrl:Ki.spelling("baseURL"),withXsrfToken:Ki.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=n&&re.merge(n.common,n[e.method]);n&&re.forEach(["delete","get","head","post","put","patch","common"],t=>{delete n[t]}),e.headers=ti.concat(o,n);const s=[];let a=!0;this.interceptors.request.forEach(function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))});const l=[];let c;this.interceptors.response.forEach(function(t){l.push(t.fulfilled,t.rejected)});let u,d=0;if(!a){const t=[Vi.bind(this),void 0];t.unshift(...s),t.push(...l),u=t.length,c=Promise.resolve(e);while(d<u)c=c.then(t[d++],t[d++]);return c}u=s.length;let h=e;while(d<u){const t=s[d++],e=s[d++];try{h=t(h)}catch(p){e.call(this,p);break}}try{c=Vi.call(this,h)}catch(p){return Promise.reject(p)}d=0,u=l.length;while(d<u)c=c.then(l[d++],l[d++]);return c}getUri(t){t=vi(this.defaults,t);const e=wi(t.baseURL,t.url,t.allowAbsoluteUrls);return Ee(e,t.params,t.paramsSerializer)}}re.forEach(["delete","get","head","options"],function(t){qi.prototype[t]=function(e,i){return this.request(vi(i||{},{method:t,url:e,data:(i||{}).data}))}}),re.forEach(["post","put","patch"],function(t){function e(e){return function(i,r,n){return this.request(vi(n||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}qi.prototype[t]=e(),qi.prototype[t+"Form"]=e(!0)});const $i=qi;class tr{constructor(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(t){e=t});const i=this;this.promise.then(t=>{if(!i._listeners)return;let e=i._listeners.length;while(e-- >0)i._listeners[e](t);i._listeners=null}),this.promise.then=t=>{let e;const r=new Promise(t=>{i.subscribe(t),e=t}).then(t);return r.cancel=function(){i.unsubscribe(e)},r},t(function(t,r,n){i.reason||(i.reason=new ni(t,r,n),e(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;const e=new tr(function(e){t=e});return{token:e,cancel:t}}}const er=tr;function ir(t){return function(e){return t.apply(null,e)}}function rr(t){return re.isObject(t)&&!0===t.isAxiosError}const nr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(nr).forEach(([t,e])=>{nr[e]=t});const or=nr;function sr(t){const e=new $i(t),i=H($i.prototype.request,e);return re.extend(i,$i.prototype,e,{allOwnKeys:!0}),re.extend(i,e,null,{allOwnKeys:!0}),i.create=function(e){return sr(vi(t,e))},i}const ar=sr(ze);ar.Axios=$i,ar.CanceledError=ni,ar.CancelToken=er,ar.isCancel=ii,ar.VERSION=_i,ar.toFormData=ye,ar.AxiosError=ae,ar.Cancel=ar.CanceledError,ar.all=function(t){return Promise.all(t)},ar.spread=ir,ar.isAxiosError=rr,ar.mergeConfig=vi,ar.AxiosHeaders=ti,ar.formToJSON=t=>Ue(re.isHTMLForm(t)?new FormData(t):t),ar.getAdapter=Wi.getAdapter,ar.HttpStatusCode=or,ar.default=ar;const lr=ar;let cr=[{latitude:23.183327834,longitude:113.403289721},{latitude:23.183327705,longitude:113.403289762},{latitude:23.183445415,longitude:113.403424905},{latitude:23.183448298,longitude:113.403421133},{latitude:23.183272301,longitude:113.403244761},{latitude:23.18334142,longitude:113.403288819},{latitude:23.183385722,longitude:113.403316791},{latitude:23.18338681,longitude:113.403316918},{latitude:23.18342365,longitude:113.403339142},{latitude:23.183435695,longitude:113.403368006},{latitude:23.183458462,longitude:113.40341566},{latitude:23.1834767,longitude:113.403450948},{latitude:23.183487018,longitude:113.403472978},{latitude:23.183474702,longitude:113.403519446},{latitude:23.18346746,longitude:113.403551614},{latitude:23.183457553,longitude:113.403593373},{latitude:23.183446648,longitude:113.403636364},{latitude:23.183439113,longitude:113.403677632},{latitude:23.183436163,longitude:113.403699473},{latitude:23.183433538,longitude:113.403713766},{latitude:23.183430131,longitude:113.403727555},{latitude:23.183432256,longitude:113.403753757},{latitude:23.183435481,longitude:113.403790737},{latitude:23.183437181,longitude:113.403830022},{latitude:23.183438793,longitude:113.4038605},{latitude:23.183441243,longitude:113.403883432},{latitude:23.183506056,longitude:113.403881087},{latitude:23.183535315,longitude:113.403878137},{latitude:23.183576343,longitude:113.40387476},{latitude:23.183540015,longitude:113.403878113},{latitude:23.183532393,longitude:113.403805058},{latitude:23.18352621,longitude:113.403743629},{latitude:23.183521787,longitude:113.403709945},{latitude:23.18351811,longitude:113.403660533},{latitude:23.183514268,longitude:113.403626867},{latitude:23.183512565,longitude:113.403597051},{latitude:23.183509183,longitude:113.403564486},{latitude:23.183506912,longitude:113.403547867},{latitude:23.183503392,longitude:113.403512886},{latitude:23.183499576,longitude:113.403477199},{latitude:23.183496244,longitude:113.403443952},{latitude:23.183494047,longitude:113.403421579},{latitude:23.183492919,longitude:113.403385444},{latitude:23.183493365,longitude:113.403351539},{latitude:23.183492976,longitude:113.403332441},{latitude:23.183489731,longitude:113.403299691},{latitude:23.183486624,longitude:113.403271692},{latitude:23.183439628,longitude:113.403254241},{latitude:23.183418674,longitude:113.403245809},{latitude:23.183390747,longitude:113.403234807},{latitude:23.183345598,longitude:113.403216483},{latitude:23.183319579,longitude:113.403204644},{latitude:23.183342545,longitude:113.403164238},{latitude:23.183365598,longitude:113.403128573},{latitude:23.183382969,longitude:113.403099251},{latitude:23.183386971,longitude:113.403100574},{latitude:23.183449693,longitude:113.403150908},{latitude:23.183474457,longitude:113.403170518},{latitude:23.183500643,longitude:113.403201166},{latitude:23.183538599,longitude:113.403249703},{latitude:23.183561277,longitude:113.403277425},{latitude:23.183597481,longitude:113.403325142},{latitude:23.183625068,longitude:113.40336022},{latitude:23.183641735,longitude:113.403379961},{latitude:23.183567632,longitude:113.403415609},{latitude:23.183528837,longitude:113.403432589},{latitude:23.183572127,longitude:113.403474834},{latitude:23.183571451,longitude:113.403503243},{latitude:23.183565767,longitude:113.403566032},{latitude:23.183562411,longitude:113.403613148},{latitude:23.183567786,longitude:113.403645951},{latitude:23.183577532,longitude:113.403680848},{latitude:23.183584414,longitude:113.40370146},{latitude:23.183597703,longitude:113.403754034},{latitude:23.183611276,longitude:113.403806426},{latitude:23.18362028,longitude:113.403844608},{latitude:23.183663768,longitude:113.403845759},{latitude:23.183712307,longitude:113.403831228},{latitude:23.183724163,longitude:113.403787393},{latitude:23.183730158,longitude:113.403746144},{latitude:23.183735937,longitude:113.403702431},{latitude:23.183740693,longitude:113.403667152},{latitude:23.183742057,longitude:113.403650173},{latitude:23.183734177,longitude:113.403618829},{latitude:23.183725174,longitude:113.403590992},{latitude:23.183715724,longitude:113.403552529},{latitude:23.183703949,longitude:113.403495103},{latitude:23.183696404,longitude:113.40344933},{latitude:23.183687035,longitude:113.403387525},{latitude:23.183680307,longitude:113.403339774},{latitude:23.183674136,longitude:113.403294958},{latitude:23.183666043,longitude:113.403247509},{latitude:23.183658668,longitude:113.403205447},{latitude:23.183653676,longitude:113.403176062},{latitude:23.183648883,longitude:113.403147174},{latitude:23.183641813,longitude:113.403112216},{latitude:23.183631684,longitude:113.403060803},{latitude:23.183620288,longitude:113.403011501},{latitude:23.183610919,longitude:113.402971483},{latitude:23.183603933,longitude:113.402930426},{latitude:23.183644501,longitude:113.402908973},{latitude:23.183679087,longitude:113.402903514},{latitude:23.183710094,longitude:113.402898431},{latitude:23.183747309,longitude:113.402900257},{latitude:23.183747916,longitude:113.402903264},{latitude:23.183742208,longitude:113.402950536},{latitude:23.183737572,longitude:113.402991024},{latitude:23.183733539,longitude:113.403024657},{latitude:23.183730281,longitude:113.403056637},{latitude:23.183726123,longitude:113.403095992},{latitude:23.183723362,longitude:113.403118331},{latitude:23.183718653,longitude:113.403151633},{latitude:23.183713543,longitude:113.403198101},{latitude:23.183708902,longitude:113.403238777},{latitude:23.183704083,longitude:113.403280446},{latitude:23.183701081,longitude:113.403304699},{latitude:23.18367984,longitude:113.403264485},{latitude:23.183665146,longitude:113.403232299},{latitude:23.183680248,longitude:113.403182451},{latitude:23.183694191,longitude:113.403150625},{latitude:23.183713817,longitude:113.403109762},{latitude:23.183729319,longitude:113.403078686},{latitude:23.183753524,longitude:113.403027734},{latitude:23.183772534,longitude:113.402988712},{latitude:23.183786938,longitude:113.4029754},{latitude:23.183804009,longitude:113.402964282},{latitude:23.183861869,longitude:113.402965778},{latitude:23.183878425,longitude:113.402994549},{latitude:23.183877443,longitude:113.403022199},{latitude:23.183875284,longitude:113.403067226},{latitude:23.183874527,longitude:113.403094053},{latitude:23.183873075,longitude:113.403127552},{latitude:23.183870968,longitude:113.40315874},{latitude:23.183860703,longitude:113.40317117},{latitude:23.183823963,longitude:113.403205232},{latitude:23.183781421,longitude:113.403245149},{latitude:23.183753537,longitude:113.403270052},{latitude:23.183724537,longitude:113.403295718},{latitude:23.183707588,longitude:113.403309828},{latitude:23.183706616,longitude:113.403309781},{latitude:23.183706602,longitude:113.403309451},{latitude:23.183705964,longitude:113.403309663},{latitude:23.183694647,longitude:113.40331984},{latitude:23.183681584,longitude:113.403342833},{latitude:23.183677603,longitude:113.403372324},{latitude:23.183684296,longitude:113.403401845},{latitude:23.183701266,longitude:113.403425101},{latitude:23.183706051,longitude:113.40342848},{latitude:23.183749774,longitude:113.4034589},{latitude:23.183809031,longitude:113.403499452},{latitude:23.183826268,longitude:113.403510612},{latitude:23.183868604,longitude:113.403527711},{latitude:23.183914992,longitude:113.403532835},{latitude:23.183916843,longitude:113.40353279},{latitude:23.18391646,longitude:113.403532749},{latitude:23.183922909,longitude:113.403504753},{latitude:23.183944255,longitude:113.403434947},{latitude:23.183952118,longitude:113.403399867},{latitude:23.183948062,longitude:113.403333473},{latitude:23.18391638,longitude:113.403274187},{latitude:23.183910703,longitude:113.403269006},{latitude:23.18391073,longitude:113.403267803},{latitude:23.183876459,longitude:113.40328313},{latitude:23.183812288,longitude:113.403322957},{latitude:23.183761031,longitude:113.403369712},{latitude:23.183708457,longitude:113.40342629},{latitude:23.183701975,longitude:113.403432692},{latitude:23.183700843,longitude:113.403432815},{latitude:23.183719515,longitude:113.403456823},{latitude:23.183740884,longitude:113.403475796},{latitude:23.183782589,longitude:113.403506954},{latitude:23.183802428,longitude:113.403521746},{latitude:23.183808793,longitude:113.403527574},{latitude:23.18384306,longitude:113.40357},{latitude:23.183868552,longitude:113.403611229},{latitude:23.183864236,longitude:113.403612119},{latitude:23.183808253,longitude:113.403601498},{latitude:23.183790246,longitude:113.403610983},{latitude:23.183796961,longitude:113.403612889},{latitude:23.183797604,longitude:113.403612671},{latitude:23.183823752,longitude:113.403617652},{latitude:23.18384693,longitude:113.403632835},{latitude:23.183839916,longitude:113.403679376},{latitude:23.183837127,longitude:113.403692234},{latitude:23.183823132,longitude:113.403766378},{latitude:23.183808008,longitude:113.403843895},{latitude:23.183801648,longitude:113.40387446},{latitude:23.183801726,longitude:113.403875089},{latitude:23.183801356,longitude:113.40387548},{latitude:23.183801199,longitude:113.403875693},{latitude:23.183799982,longitude:113.403875082},{latitude:23.183761855,longitude:113.40384525},{latitude:23.183701196,longitude:113.403796093},{latitude:23.183685878,longitude:113.403784816},{latitude:23.183680286,longitude:113.403780887},{latitude:23.183679922,longitude:113.403780478},{latitude:23.183699797,longitude:113.403767551},{latitude:23.183723761,longitude:113.403715465},{latitude:23.183754876,longitude:113.403601332},{latitude:23.183763831,longitude:113.403581842},{latitude:23.183816615,longitude:113.403551211},{latitude:23.183823964,longitude:113.403559712},{latitude:23.183824086,longitude:113.403561691},{latitude:23.183851736,longitude:113.403551962},{latitude:23.183894994,longitude:113.403548796}];async function ur(t,e,i=!1){return new Promise((r,n)=>{i?r(cr):lr.get(t,e).then(t=>{let e=t.data&&t.data.data?t.data.data:t.data;200==t.status&&e&&e.length>0?r(e):r([])}).catch(t=>{n(t)})})}function dr(t,e){function i(t){if(Array.isArray(t))return t;if("Feature"===t.type)return t.geometry.coordinates;if("Point"===t.type)return t.coordinates;throw new Error("Invalid input: expected [lon, lat], Point geometry, or Feature<Point>")}const r=i(t),n=i(e),[o,s]=r,[a,l]=n,c=s*Math.PI/180,u=l*Math.PI/180,d=(a-o)*Math.PI/180,h=Math.sin(d)*Math.cos(u),p=Math.cos(c)*Math.sin(u)-Math.sin(c)*Math.cos(u)*Math.cos(d);let f=Math.atan2(h,p),y=180*f/Math.PI;return(y+360)%360}const hr=r.p+"img/wrj.a3e28c49.png";var pr=function(){var t=this,e=t._self._c;return"point"==t.name?e("svg",{staticClass:"icon",attrs:{t:"1742351514971",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3951",width:t.width,height:t.width}},[e("path",{attrs:{d:"M506.885115 1.022977c-193.342657 1.534466-348.835165 159.584416-347.812188 352.927073 0.511489 91.556444 37.338661 179.532468 101.786214 244.491508L506.885115 845.490509l246.025974-247.560439c136.055944-137.078921 135.544456-359.064935-1.534466-495.120879C686.417582 38.361638 598.441558 2.045954 506.885115 1.022977zM506.885115 506.373626c-85.418581 0-154.981019-69.562438-154.469531-155.492507 0-85.418581 69.050949-154.981019 154.469531-155.492508 85.418581 0 154.981019 69.562438 154.46953 155.492508 0.511489 85.418581-69.050949 154.981019-154.46953 155.492507z m-154.469531 452.667333c0 35.804196 69.050949 64.959041 154.469531 64.959041s154.46953-29.154845 154.46953-64.959041c0-35.804196-69.050949-64.959041-154.46953-64.959041s-154.46953 29.154845-154.469531 64.959041z","p-id":"3952",fill:t.color}})]):"line"==t.name?e("svg",{staticClass:"icon",attrs:{t:"1742353681074",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4947",width:t.width,height:t.width}},[e("path",{attrs:{d:"M419.2 102.4c51.2 0 92.8 41.6 92.8 96 0 25.6-9.6 51.2-28.8 70.4l166.4 416c19.2-12.8 44.8-16 67.2-9.6l172.8-272c-19.2-32-12.8-76.8 19.2-99.2 32-22.4 73.6-12.8 96 22.4 19.2 32 12.8 76.8-19.2 99.2-9.6 6.4-25.6 12.8-38.4 12.8l-176 275.2c28.8 41.6 19.2 102.4-19.2 131.2-41.6 32-99.2 22.4-128-22.4-16-22.4-19.2-48-16-73.6L422.4 291.2h-3.2c-12.8 0-22.4-3.2-32-6.4l-208 243.2c25.6 44.8 6.4 102.4-38.4 128s-99.2 6.4-124.8-38.4-6.4-102.4 38.4-128c22.4-12.8 51.2-16 76.8-6.4l208-243.2c-25.6-44.8-6.4-102.4 38.4-128 12.8-6.4 28.8-9.6 41.6-9.6z","p-id":"4948",fill:t.color}})]):"polygon"==t.name?e("svg",{staticClass:"icon",attrs:{t:"1742353743548",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5913",width:t.width,height:t.width}},[e("path",{attrs:{d:"M928.381303 0.002274a91.333624 91.333624 0 0 1 91.939988 91.939988 91.333624 91.333624 0 0 1-91.939988 91.939988 92.849535 92.849535 0 0 1-84.891003-56.581369H212.265055c-8.83018 21.222751-26.528439 40.664306-49.494487 49.532384v634.787636c21.222751 8.868078 40.664306 26.528439 49.494487 49.532384h97.245676c19.479453 0 35.396517 15.917063 35.396516 35.358619 0 19.441556-15.917063 35.358619-35.396516 35.358619H212.265055c-12.392571 33.615321-45.969994 56.58137-84.891004 56.581369a91.333624 91.333624 0 0 1-91.939988-91.939988c0-38.883111 23.003946-70.717237 56.58137-84.891003V176.833265C58.400111 164.440695 35.396165 130.863271 35.396165 91.942262A91.333624 91.333624 0 0 1 127.374051 0.002274c37.139814 0 70.755135 22.966048 84.891004 56.581369h631.263143C855.88287 22.968322 889.498192 0.002274 928.381303 0.002274zM443.858323 760.345219l127.336505 127.336505-146.778061 40.664306c-12.354673 3.524493-24.747243-8.83018-21.222751-21.22275l40.664307-146.778061z m344.831803-339.488217l123.774114 123.774114-305.910794 298.823911-120.249622-127.336505 302.386302-295.26152z m97.245676-97.283574c17.698258-15.917063 44.226697-17.66036 60.143759-1.743297l65.41155 65.411549c15.917063 15.917063 15.917063 42.445502-1.781195 60.14376l-61.887057 61.887058-123.774115-123.774115z","p-id":"5914",fill:t.color}})]):"perv"==t.name?e("svg",{staticClass:"icon",attrs:{t:"1742353858894",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7700",width:t.width,height:t.width}},[e("path",{attrs:{d:"M365.44 112.32v133.76h237.888a340.928 340.928 0 0 1 340.928 335.36v5.632a340.928 340.928 0 0 1-335.296 340.864l-5.632 0.064h-324.48a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h324.48a244.928 244.928 0 0 0 5.12-489.856H130.432a16 16 0 0 1-11.136-27.52l218.88-213.76a16 16 0 0 1 27.2 11.456z",fill:t.color,"p-id":"7701"}})]):"next"==t.name?e("svg",{staticClass:"icon",attrs:{t:"1742353895510",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2267",width:t.width,height:t.width}},[e("path",{attrs:{d:"M670.08 112.32v133.76H432.192a340.928 340.928 0 0 0-340.928 335.36v5.632a340.928 340.928 0 0 0 335.296 340.864l5.632 0.064h324.48a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16h-324.48a244.928 244.928 0 0 1-5.12-489.856h477.952a16 16 0 0 0 11.2-27.52l-219.008-213.76a16 16 0 0 0-27.136 11.456z",fill:t.color,"p-id":"2268"}})]):"close"==t.name?e("svg",{staticClass:"icon",attrs:{t:"1763603732402",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2437",width:t.width,height:t.width}},[e("path",{attrs:{d:"M566.97558594 521.09667969L856.8828125 231.18945312c14.63378906-14.63378906 14.63378906-38.75976563 0-53.39355468l-1.58203125-1.58203125c-14.63378906-14.63378906-38.75976563-14.63378906-53.39355469 0L512 466.51660156 222.09277344 176.21386719c-14.63378906-14.63378906-38.75976563-14.63378906-53.39355469 0l-1.58203125 1.58203125c-15.02929688 14.63378906-15.02929688 38.75976563 0 53.39355469l289.90722656 289.90722656L167.1171875 811.00390625c-14.63378906 14.63378906-14.63378906 38.75976563 0 53.39355469l1.58203125 1.58203125c14.63378906 14.63378906 38.75976563 14.63378906 53.39355469 0L512 576.07226563 801.90722656 865.97949219c14.63378906 14.63378906 38.75976563 14.63378906 53.39355469 0l1.58203125-1.58203125c14.63378906-14.63378906 14.63378906-38.75976563 0-53.39355469L566.97558594 521.09667969z",fill:t.color,"p-id":"2438"}})]):"del"==t.name?e("svg",{staticClass:"icon",attrs:{t:"1763604252947",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3453",width:t.width,height:t.width}},[e("path",{attrs:{d:"M928.16 144H736V64a32 32 0 0 0-32-32H320a32 32 0 0 0-32 32v80H95.84a32 32 0 0 0 0 64H129.6l77.92 698.656A96 96 0 0 0 302.912 992h418.144a96.032 96.032 0 0 0 95.424-85.344L894.4 208h33.728a32 32 0 0 0 0.032-64zM352 96h320v48H352V96z m400.896 803.552a32 32 0 0 1-31.808 28.448H302.912a32 32 0 0 1-31.808-28.448L193.984 208h636.032l-77.12 691.552z","p-id":"3454",fill:t.color}}),e("path",{attrs:{d:"M608 820.928a32 32 0 0 0 32-32V319.104a32 32 0 0 0-64 0v469.824a32 32 0 0 0 32 32zM432 820.928a32 32 0 0 0 32-32V319.104a32 32 0 0 0-64 0v469.824a32 32 0 0 0 32 32z","p-id":"3455",fill:t.color}})]):"full"==t.name?e("svg",{staticClass:"icon",attrs:{t:"1763604352213",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4438",width:t.width,height:t.width}},[e("path",{attrs:{d:"M128 266.666667v490.666666a53.393333 53.393333 0 0 0 53.333333 53.333334h661.333334a53.393333 53.393333 0 0 0 53.333333-53.333334V266.666667a53.393333 53.393333 0 0 0-53.333333-53.333334H181.333333a53.393333 53.393333 0 0 0-53.333333 53.333334z m725.333333 0v490.666666a10.666667 10.666667 0 0 1-10.666666 10.666667H181.333333a10.666667 10.666667 0 0 1-10.666666-10.666667V266.666667a10.666667 10.666667 0 0 1 10.666666-10.666667h661.333334a10.666667 10.666667 0 0 1 10.666666 10.666667z m-597.333333 608a21.333333 21.333333 0 0 1-21.333333 21.333333H96a53.393333 53.393333 0 0 1-53.333333-53.333333v-138.666667a21.333333 21.333333 0 0 1 42.666666 0v138.666667a10.666667 10.666667 0 0 0 10.666667 10.666666h138.666667a21.333333 21.333333 0 0 1 21.333333 21.333334zM42.666667 320V181.333333a53.393333 53.393333 0 0 1 53.333333-53.333333h138.666667a21.333333 21.333333 0 0 1 0 42.666667H96a10.666667 10.666667 0 0 0-10.666667 10.666666v138.666667a21.333333 21.333333 0 0 1-42.666666 0z m938.666666-138.666667v138.666667a21.333333 21.333333 0 0 1-42.666666 0V181.333333a10.666667 10.666667 0 0 0-10.666667-10.666666h-138.666667a21.333333 21.333333 0 0 1 0-42.666667h138.666667a53.393333 53.393333 0 0 1 53.333333 53.333333z m0 522.666667v138.666667a53.393333 53.393333 0 0 1-53.333333 53.333333h-138.666667a21.333333 21.333333 0 0 1 0-42.666667h138.666667a10.666667 10.666667 0 0 0 10.666667-10.666666v-138.666667a21.333333 21.333333 0 0 1 42.666666 0z",fill:t.color,"p-id":"4439"}})]):"loading"==t.name?e("svg",{staticClass:"icon",attrs:{t:"1766044858654",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2820",width:t.width,height:t.width}},[e("path",{attrs:{d:"M512 64a31.146667 31.146667 0 0 1 23.04 8.96c5.973333 6.016 8.96 13.696 8.96 23.04v192a31.146667 31.146667 0 0 1-8.96 23.04 31.146667 31.146667 0 0 1-23.04 8.96 31.146667 31.146667 0 0 1-23.04-8.96 31.146667 31.146667 0 0 1-8.96-23.04v-192a31.146667 31.146667 0 0 1 8.96-23.04 31.146667 31.146667 0 0 1 23.04-8.96z m0 640a31.146667 31.146667 0 0 1 23.04 8.96c5.973333 6.016 8.96 13.696 8.96 23.04v192a31.146667 31.146667 0 0 1-8.96 23.04 31.146667 31.146667 0 0 1-23.04 8.96 31.146667 31.146667 0 0 1-23.04-8.96 31.146667 31.146667 0 0 1-8.96-23.04v-192a31.146667 31.146667 0 0 1 8.96-23.04 31.146667 31.146667 0 0 1 23.04-8.96zM960 512a31.146667 31.146667 0 0 1-8.96 23.04 31.146667 31.146667 0 0 1-23.04 8.96h-192a31.146667 31.146667 0 0 1-23.04-8.96 31.146667 31.146667 0 0 1-8.96-23.04 31.146667 31.146667 0 0 1 8.96-23.04 31.146667 31.146667 0 0 1 23.04-8.96h192a31.146667 31.146667 0 0 1 23.04 8.96c5.973333 6.016 8.96 13.696 8.96 23.04z m-640 0a31.146667 31.146667 0 0 1-8.96 23.04 31.146667 31.146667 0 0 1-23.04 8.96h-192a31.146667 31.146667 0 0 1-23.04-8.96 31.146667 31.146667 0 0 1-8.96-23.04 31.146667 31.146667 0 0 1 8.96-23.04 31.146667 31.146667 0 0 1 23.04-8.96h192a31.146667 31.146667 0 0 1 23.04 8.96c5.973333 6.016 8.96 13.696 8.96 23.04zM194.986667 194.986667a33.450667 33.450667 0 0 1 23.04-8.96c8.661333 0 16 2.986667 22.016 8.96l135.978666 136.021333a32.853333 32.853333 0 0 1 9.002667 22.485333 30.293333 30.293333 0 0 1-9.514667 22.016 30.037333 30.037333 0 0 1-22.016 9.514667 32.938667 32.938667 0 0 1-22.485333-8.96L194.986667 240a29.952 29.952 0 0 1-8.96-22.016c0-8.704 2.986667-16.384 8.96-23.04z m452.992 452.992a31.104 31.104 0 0 1 22.528-9.984c8.32 0 15.786667 3.328 22.485333 10.026666l136.021333 135.978667c5.973333 5.973333 8.96 13.354667 8.96 22.016a30.72 30.72 0 0 1-9.514666 22.485333 30.933333 30.933333 0 0 1-22.485334 9.514667 29.866667 29.866667 0 0 1-22.016-8.96l-135.978666-136.021333a31.146667 31.146667 0 0 1-10.026667-22.485334c0-8.32 3.328-15.829333 10.026667-22.528zM829.013333 194.986667c5.973333 6.698667 8.96 14.378667 8.96 23.04s-2.986667 16-8.96 22.016l-136.021333 135.978666a32.853333 32.853333 0 0 1-22.485333 9.002667 30.293333 30.293333 0 0 1-22.016-9.514667 30.037333 30.037333 0 0 1-9.514667-22.016c0-8.32 2.986667-15.829333 8.96-22.485333l136.021333-136.021333c5.973333-5.973333 13.354667-8.96 22.016-8.96 8.704 0 16.341333 2.986667 23.04 8.96zM376.021333 648.021333a31.104 31.104 0 0 1 9.984 22.528c0 8.32-3.328 15.786667-10.026666 22.485334L240.042667 829.013333a29.952 29.952 0 0 1-22.016 8.96 30.72 30.72 0 0 1-22.485334-9.514666 30.890667 30.890667 0 0 1-9.514666-22.485334 29.866667 29.866667 0 0 1 8.96-22.016l136.021333-135.978666a31.104 31.104 0 0 1 22.485333-10.026667c8.32 0 15.829333 3.328 22.528 10.026667z",fill:t.color,"p-id":"2821"}})]):t._e()},fr=[];const yr={props:{name:{type:String,default:"point"},width:{type:String,default:"20"},color:{type:String,default:"#6a6a6a"}}},mr=yr;function gr(t,e,i,r,n,o,s,a){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=l):n&&(l=a?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}var wr=gr(mr,pr,fr,!1,null,null,null);const br=wr.exports,vr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAkCAYAAACTz/ouAAAACXBIWXMAAAsTAAALEwEAmpwYAAAG0GlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIiB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXA6Q3JlYXRlRGF0ZT0iMjAyMS0wNi0xMFQxNzoxODo1MyswODowMCIgeG1wOk1vZGlmeURhdGU9IjIwMjEtMDYtMTBUMTc6MjA6NTgrMDg6MDAiIHhtcDpNZXRhZGF0YURhdGU9IjIwMjEtMDYtMTBUMTc6MjA6NTgrMDg6MDAiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6N2U0NWVlMzctMWZlOS1mODQxLWE4Y2MtZjBjZWUzMzJlNTgyIiB4bXBNTTpEb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6Y2NlYjM3MTYtY2U4Ny1kODRlLWExZmEtM2Q4MTg4YTRiYzA5IiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6QTJFMEJEOTNDNTBCMTFFQkIwQkJDRjgyQUNBOEU3QjMiIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIiBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIiBwaG90b3Nob3A6SUNDUHJvZmlsZT0ic1JHQiBJRUM2MTk2Ni0yLjEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpBMkUwQkQ5MEM1MEIxMUVCQjBCQkNGODJBQ0E4RTdCMyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpBMkUwQkQ5MUM1MEIxMUVCQjBCQkNGODJBQ0E4RTdCMyIvPiA8eG1wTU06SGlzdG9yeT4gPHJkZjpTZXE+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpkMmFlNzI5Yy1lM2E2LWI1NGUtODljYS1mODk0NzEyNzI1MTkiIHN0RXZ0OndoZW49IjIwMjEtMDYtMTBUMTc6MjA6NDQrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6N2U0NWVlMzctMWZlOS1mODQxLWE4Y2MtZjBjZWUzMzJlNTgyIiBzdEV2dDp3aGVuPSIyMDIxLTA2LTEwVDE3OjIwOjU4KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+50B0oQAABaxJREFUSImV1nmMlVcZBvDfufcySzsLzFAmYa3iMNQ/sEULpqUUk7KEKg22FVlK/5FWEpBGC3RJS8QFE1dilRaoBqqVghoEQmhZ2qJijSnQlCKIZRkSZjrMDMswA7Pc+/nHN1xmJrPg89/3vuc8z3ve53znnJAZP04vuA0P4UGMwgAE1OO/2IntONcTQehBYCC+jW+2k/aGBqzFj/HJzQhMwUaUSadJJvvgz6Iej2NHx2Cqy6AHsUMySVMTly9TWnpDJAQuXoxzEEVxrrSUfv1KZDLbMQubuxP4vLifMfHttwsLnhC99EuqqigspLaWkSO5916SKaIMZ89y6BCtLXGMN1CFv3YUyMU2sYEx0ezZzJjB889RX09jE6PKhU1vkJtLOkO6jaIi0bPPsGEDw4dfL3YrRuBKoj2wHIOzawlBmHg/u3YxYoSw8ntcqBNWr6a4WDTxPtFdd4oWL4rHNzaRk9Ox1SV4ARLIw5JsqrU17umoctGf/yTMncfkycycScXoeExZGSdOCLO+TkMDb+6K53TGIhSlMKldMTaxtpYpU4nwzjssXca5c8La9fxxC7l5wqoficrLmT5dtOAbseklJbHpN3ALJqdwf6fqc3OFp58mP58FCygvF23dypEjfH8l6YxwplL42c9Z+V1ef50xY7pWfx0TU+1mxGhriytpbqaqSli6jMozrPk1p04zsJTnnicRWxcVFNC/Pyc/ZlBZvNMymY4Ct6ey7SGuuq1N9LVH6d9feHc/a9fF5LMeFX6wipEjRU8tEYYMFZYu5bH5vLpe9PY+ztd2Nbt/As3ZzygilaK2VliyhKYm0WsbeXy+sGkzjY2ip5awZbNo2TLRV2dy7BjPPCu88CJXr8ZduIHWFBo7da26munTmT0n9v3AP0TXronmzGbbNmHnTn6xWrRiBb96SfTee1RUxLuosDDbvnY0JlcMHTIcU2+sIkNxMY1XOPwBB9/npz9h/36GDuPDD4WKUcLceULpQHa/FZPWnicvv6vJvwuZ8eM+i4+yoX794j/31EmuNpNMMGkSQ4fy0RHq6qit4+GHGXQb23dQVNSV+Dq+kMBR/D0bunqVAQPiFr28Rjh4SNizVxj3RSrPCrveEnbvad9dL5NOxysIoSv5Qbx/vWE/zIZraoTFi4VXfyM88SSJIFq+XLTuFYqK2b6N8eOFvW8Le/byuTvjw7Hz9oRVdL4PNuIxLS3xkVBcxNGj8WnZ1hYfDzk5VFYybBhz5wqLFse2TbiHS5e59dbrXG9iWlcB+EAyOSZ75hcWxv9Gx+UnEly6FHsxejRjx3LwEFca4i1OHT6Di90JlOJf+FR3jnVCIhG3pqmJgQPjiyeK6nEPjmeHdZlWhwk43adAJkNBAYMGxWJRVI37OpJ3J0D8QpiEmj5FbuBS+5yjXRPdCcAZ8Snb3EO+IzL4ki6V9yUAx/DITQjMw6Gekr0JED9B/tJLfjf+0BtBXwKwEFe7ibfgyb4m34xAFdZ1E38Np/qanAq1tT1n02kKC0UFBftkMt/KxkMgivaFCxfiazbRc53h9Pr13SYyqRQhGLZxg9SxY2XRkCEnJBKFENrarqmvr2i6++7KmilTRcmkROeL5obAP6ure5AO0jk5bqmsNGzNGiV79xyMSkruglBX95+6L3+l4uTSZTK5OUI63fVFkUUqtycBhHRa8+DBD5xatnRafnXVp/OPHycE1+64Y9iZhQt/H1pb3s2rqd4kJC73xNGbyQVRMrml3/nzu4XEd1rKyoo1N9PcrHVASX6UTM5JNTS8IiT+Lf7R/m+BB/BIiCKZVEpLaWn8KKupcW3oEJm8PCG+AwZjTU8kXZ/vHXEAfxNFE5KNjT6Z8RCtbQSqZ86UunLlet+b8WJPJOHw4cO9aID5IZOZls7PH9tWXFyGZOrSpYZkU9PxKJk8gN/i454m/w/xrwBmtkG4YQAAAABJRU5ErkJggg==",Er="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAABIFBMVEUAAAAKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVQKhVT///8plGkajmANhlYgkGQRiVmRyLPu9/PF4tej0r9hsZFHpH/l8u3d7ujD4dW73tCx2cmez7xYrIpSqYcul20lk2f7/v3S6eCazbmCwaher48xmXAVi1z1+vjy+Pbp9fDg8Oqv18er1sWp1MOUyrRzuZ1wuJxMpoJDoXw/n3kXjF75/PvJ5Nm43M6128yMxq93vKBrtZhms5Q2m3O/39KHxKxOp4TN5tw8nndMsDdzAAAAJnRSTlMA8xzu6d/DoPmpm3pfQzYs5Mm8ppSLhWVMFQ/80a9RRiYJBbKCb/tMGe8AAAKVSURBVEjHldTndtpAEAXgtTG4Effe7SR31Oi9d4MpBtxbkvd/i7CLCGUlIN8vnbNzEbMzwCwcX+7v7my7zvfci2wOl6sL+Gf78HpG+eYOxm25p9avo89IKzpM36d8sWX0aEl/OENE5cd8EZxjw65+lZe/VWno+QPchv3nKz4ak/nSAJweW9W7AXS8w9pAsyxeYgA4Y7ITAKnKsD6kQY/yhyeeOJADu4AapqFKAkaEuAZ6pKtaBFCnUWE9aD4FASxPBvaBjtmnN/zou+09RNNmIAtg5WQi4ABi4vSupKeKKgIPFIqS6ReAw4mVANQHcag/Rm9j5G3HydsYBOryd1oHCuLsVif1HVV6eaPI+yDg1QCnNGRPv1WFul/diK/xTrEEDaSAlfGAa9BCVaF0AfV8oSUCwyYWxgNbgFiK6IemaAZ0RS0puqEEfebUpYADEFMqov0Sb6oYSNkFnECNn5Sea4X712wCJo2EeyngAl74Se0NPaVoEiYSFKnpVSApxoZu/q4JNauNBkIAHNIcSmXx7riCVgL+IIp3kd8FQwTiAHakScMvLjwHaB7kA0pESeu+/nA6FgvuAFIZvphxDe0AcjFfJ5dv/BH1n1Y/0wOIWefwUfN7NCNEpNbhV3n9QxGAU/q7A2BkKdMG+lFKtPxNcRGvkJaV2wOQDlHlVVeDT2INk+p9iPhLe5aY5HoFgBKmSR5w35jsAj1d/3i5NwBumVlZAxf8HJZXPCq4LWbNBSHdeqqWyZuNJw30XdkEbpZg6YjZuTqFhZ/M3jfIfrBp3FL9GptuHeNcbJY9jHLesJm2MWKRzXayMKy/kE6nX9U+m8/aoAE2L3PiG3MHjsCds/mdyTc0u+9dJszfxeZ/BY6WbHboLym+vLfXHvBlAAAAAElFTkSuQmCC",Ar="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAkCAYAAACTz/ouAAAACXBIWXMAAAsTAAALEwEAmpwYAAAG0GlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIiB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXA6Q3JlYXRlRGF0ZT0iMjAyMS0wNi0xMFQxNzoxODo1NCswODowMCIgeG1wOk1vZGlmeURhdGU9IjIwMjEtMDYtMTBUMTc6MjE6MDYrMDg6MDAiIHhtcDpNZXRhZGF0YURhdGU9IjIwMjEtMDYtMTBUMTc6MjE6MDYrMDg6MDAiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTI2YmMyNTItNjg3Mi04ZTQ1LWJiODUtZTYwZWY1N2JmZmQxIiB4bXBNTTpEb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6YjJiOWY1MGEtYzMzYi03OTQzLWE4YTItNTZhZmQwOTg1YzFkIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6OUNDRTI2MjFDNTBCMTFFQkIwRUJFNzExQzdCNzMzQTUiIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIiBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIiBwaG90b3Nob3A6SUNDUHJvZmlsZT0ic1JHQiBJRUM2MTk2Ni0yLjEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo5Q0NFMjYxRUM1MEIxMUVCQjBFQkU3MTFDN0I3MzNBNSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5Q0NFMjYxRkM1MEIxMUVCQjBFQkU3MTFDN0I3MzNBNSIvPiA8eG1wTU06SGlzdG9yeT4gPHJkZjpTZXE+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo1NGJmMDI5NS1lMWJkLTYwNGUtYTA3OS1iYmY1ZTU0ZmE4NmEiIHN0RXZ0OndoZW49IjIwMjEtMDYtMTBUMTc6MjE6MDYrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6OTI2YmMyNTItNjg3Mi04ZTQ1LWJiODUtZTYwZWY1N2JmZmQxIiBzdEV2dDp3aGVuPSIyMDIxLTA2LTEwVDE3OjIxOjA2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+00YfsgAABjhJREFUSImVln1wVGcVxn/v/diPZDfJLiG7SZFiAYO1dqTYUgrGaqGQUqq1VB2n0mGsCqPQkTK2dtCho9YZqX9ox2mVAdtGsU4ZbUuLIra1U2Rs0wQYKiQSyBckZLNf+diPu3v3ff1js3FJdhP6zNy5c895z/Oce899z3nFnftWMQPmAl8A1gMfA3yAAKJAF3AYOAQMlCMQZQRqgR3AlgnSmTAG/BbYAwxNdWolAu4EPgB+cBXkAF7gEeAMcPdsAuuBI0AAwNAM4ukY4eQwutARCBSKTM6avKxcGqkkAuEn/7m+XE5gGXBIiDxJLBWlM3yW5dfcRvOiDVyIdRG3YoxbY6AEmtIRSkPHJJlJIJEFnj8Bnyk8GBN3J/AqIHIyh6EZfLphObF0jIdu/g7X+RcyODZALB3hpoZbeGDpZqqdNQCkskmOnHudZ9/7FVWuajShAbwMXAuMF4r8I+AJgHg6zmJ/I89tfBHDKOjncbK/nWp3DXVVAVra9mPLLHcvuRdfpY+1+5vwOD3oQi8s/znwqAG4gIcL1ipnFZHUMJv//FUuJwZ5vOkJFvoXs/XVB8nlFHu/2ML7/e+y+43HyCgLXRjc98mvoGtXJgN8F/ipAdwO+CeLIjSUUvTFeumJdTOSGsGyLS4Mn0cTOgqFEGJitZi4SqICWGMAny22DidCrFnYzO47foYtbdwON0JotG3r5Hz4HJZt4XP7eXDZQ6Slxa0LbqPSWYmUdimRJmOiGJOodlXTHe/i0b8/TDKbZNuKnQQ9QX5x7EmSmRSbln6DW+bfyq6an2BoBlmZ5XDHISQSMf1tFhjFnwfAZbjpiXWzyLeE7sgF2i++x83zVrDn7aepdMKOlY9x6lI7W/6ymTmVtZi6Sd9ILw7DxNRMcipXTFdjAFaxJSuzADy57ikOnj5AT7yXoLee3Xc8TiQRRiAYtUaJWmE0QyCV5FrfAly6k1AihK7pV9AZQKLYkslZBCrrkVLywdBpDN2k1lPL95t2cerSCZRSWLn83+PQnfSP9LJn7dPUVzfwpd83E/TWF9MlNKD1CgHbwuv0oukaLtONx/TQH+uj+bkmdv5tGxWOCgKeIBoa49Y4XtPLDfU3UuP2kZte6FaDfO+ZRMpOE/Dks9iyfDvdkfP0xXu4ONYPCtoGWln/8Xs4tqWdtJ0m4A0ihODH/9iF03RNFfirQb4L/gtYKRDYOZu7Gu+hY+gs6WyKpfOW0dr3b0zhIC2T/PDoTs4Mneb6uhvIKcnAeD9HOg9zYvB9ltRdDwoUCqAdaCu0iruA1xOZBDVOH69tfoO97/6aXx5/in33HWD5/BUMxC/RMfwfRqxRRlIxnLoLqSRpO4Wvwk80GaXl1D4cuomWbxf3AwcL+/sw0KKQX6/1zOXExTbe6f0nEsn2Q99k3eIN3PuJ+5nnm0+DlCjURIsGTegIodEZOoOUEqUpEBwBDsKUiSaEOKWUunHcGsfQDTwOLyk7SSwVQcriFjEVClN3MKeiFhQRhVoExOH/7Tq/TKnPK1Sry3R+1NBMbJnF1EzqKoNliKfIKBUFVhbIYfpEiwjEKkMze66K8UpcJj9oOouNpWbyAPkOG/oQ5CMTMWemOkoJAPSS77JWGX8xJPA5pmQ+mwBAB7DxKgQeAE6Uc84kAPAa8MoM/qPAH2cimE0AYCuQKmHPAN+eLfhqBAaBvSXsLUD3bMFG1IqUdeZUDo/podLwvCmV3F6wTxzA3oxnYtjKRpshT/H8W/tLKwsDAbzUe4Cusc5A0N1wTkPzAtjKTsczscZP+Zf13R5YjSZ0bFVyJiMGOgbLaePQHFxK9fNC117eCb3VXuPwLQWIZaL/XVPf3Li1cQcOzTExJlXpREPpaQfiSUiVo85dv3rrku+tG0pfvu7C2DmEECz2Nn5k08Jv/SErs2+H06EXhRCj5ThmKrJHE/pLUSt8VCAemeuqq7akhZWzqHH43brQvzZuj/1GCHGW/Eb70AKrgY1KKQzNxOeYQ9QKE7ZCBN0NOHUnSkmABuCZciTTzntFOA4cU6hVyWyCtQ3rsWUWIQTN12wgYScKk8sif7YtCXHy5MkZNADYJJVc59LdN1WZVQFAH82OjqVzyU5N6MeB3wHnywX/D+/GdEtw++AIAAAAAElFTkSuQmCC";var Mr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"loading-wrapper"},[e("div",{staticClass:"loading-main-box"},[t.loading?e("div",{staticClass:"loading-box"},[t._v("地图加载中...")]):t._e(),t._t("default")],2)])},Sr=[];const xr={name:"loadingIndex",props:{loading:{type:Boolean,default:!0}}},Tr=xr;var kr=gr(Tr,Mr,Sr,!1,null,null,null);const Pr=kr.exports;var Nr=function(){var t=this,e=t._self._c;return e("Teleport",{attrs:{to:"body"}},[t.visible?e("div",{ref:"tooltipRef",staticClass:"arcgis-custom-tooltip",style:t.tooltipStyle},[t._t("default",null,{data:t.showData})],2):t._e()])},Lr=[];const Ir={name:"CustomTooltip",computed:{tooltipStyle(){let t=this.$refs.tooltipRef;if(!t)return{left:this.x+"px",top:this.y+"px"};const e=t.getBoundingClientRect(),i=e.width,r=e.height,n=this.x-i/2+"px",o=this.y-r-10+"px";return{left:n,top:o,position:"absolute"}}},data(){return{visible:!1,x:0,y:0,showData:null}},methods:{show(t,e){this.x=t.x,this.y=t.y,this.showData=e,this.visible=!0,this.$nextTick(()=>{})},hide(){this.visible=!1}}},Rr=Ir;var Cr=gr(Rr,Nr,Lr,!1,null,"533a75ed",null);const Or=Cr.exports;var jr,Gr,Dr,Fr,Ur,Br,Zr,zr,Wr=[],Jr=0,Vr=null;function _r(t,e){let i;return(...r)=>{clearTimeout(i),i=setTimeout(()=>t.apply(this,r),e)}}const Qr={name:"gjMap",components:{CustomTooltip:Or,svgIcon:br,loadingBox:Pr},props:{mapParams:{type:Object,default:u},load:{type:Function,default:null},center:{type:Array,default:()=>[113.15333645218509,22.708905783449126]}},computed:{},data(){return{mapId:"map"+Math.round(1e4*Math.random()),isLoading:!0,gjParams:null,gjData:null,apiToken:null,currentPathIndex:0,pathCoordinates:[],pointCoordinates:[],isPaused:!1,speedNum:1,speed:500,noAbleMoving:!1}},activated(){let t=this.$route;this.gjParams=t.query,this.noAbleMoving=!t.query||!t.query.cannotMove,this.isLoading=!0,t.query.token&&(this.apiToken=t.query.token)},mounted(){this.isLoading=!0,this.init(this.mapParams)},methods:{returnLineSymbol(t){return new window.jkEsri.SimpleLineSymbol({color:t.color,width:t.width})},returnMarkerSymbol(t){return new window.jkEsri.PictureMarkerSymbol({url:t.url,width:t.width,height:t.height})},returnPolyLine(t=[]){return new window.jkEsri.Polyline({paths:t})},changeSpeed(){switch(this.speedNum<3?this.speedNum++:this.speedNum=1,this.speedNum){case 1:this.speed=1e3;break;case 2:this.speed=550;break;case 3:this.speed=300;break;default:break}},pauseAnimation(){this.isPaused=!0,cancelAnimationFrame(Vr),Vr=null},stopAnimation(){this.currentPathIndex=0,Zr.geometry=new window.jkEsri.Point({x:this.pathCoordinates[0][0],y:this.pathCoordinates[0][1]}),this.updateTrail([],!0),this.pauseAnimation(),setTimeout(()=>{this.startAnimation()},200)},resumeAnimation(){this.isPaused&&!Vr&&(this.isPaused=!1,Jr=performance.now(),this.animate())},startAnimation(){null===Vr&&(this.currentPathIndex=0,Jr=performance.now(),this.isPaused=!1,this.animate(Jr))},changeMove(){0==this.currentPathIndex?this.startAnimation():this.isPaused?this.resumeAnimation():this.pauseAnimation()},animate(t){if(this.isPaused)return;const e=t-Jr;if(e>=this.speed&&this.currentPathIndex<this.pathCoordinates.length){const t=this.pathCoordinates[this.currentPathIndex];this.updatePosition(t);const e=this.pathCoordinates.slice(0,this.currentPathIndex+1);this.updateTrail(e),Jr=performance.now(),this.currentPathIndex++}Vr=this.currentPathIndex<this.pathCoordinates.length?requestAnimationFrame(t=>this.animate(t)):null},updatePosition(t){if(this.isPaused)return;let e=this.getBearingForPath(t);e<-90&&(e=-180+e),Zr.symbol.angle=this.getBearingForPath(t)<0&&this.getBearingForPath(t)>-90?e:Math.abs(e),Zr.symbol.url=(this.getBearingForPath(t),hr),Zr.geometry=new window.jkEsri.Point({x:t[0],y:t[1]})},updateTrail(t,e=!1){e?zr.geometry=this.returnPolyLine():t.length<2||(zr.geometry=this.returnPolyLine([t.map(([t,e])=>[t,e])]))},getBearingForPath(t){if(this.currentPathIndex<=1)return 0;const e=this.pathCoordinates[this.currentPathIndex-2],i=this.pathCoordinates[this.currentPathIndex-1],r={type:"Feature",geometry:{type:"Point",coordinates:e}},n={type:"Feature",geometry:{type:"Point",coordinates:i}};return dr(r,n)},returnGraphic(t,e){return new window.jkEsri.Graphic({geometry:m(t),symbol:e})},initGraphics(){if(this.isLoading=!1,this.pathCoordinates.length>0){Fr=new window.jkEsri.GraphicsLayer({id:"startLayer"}),Fr.add(this.returnGraphic(this.pathCoordinates[0],this.returnMarkerSymbol({url:Ar,width:24,height:30}))),Ur=new window.jkEsri.GraphicsLayer({id:"endLayer"}),Ur.add(this.returnGraphic(this.pathCoordinates[this.pathCoordinates.length-1],this.returnMarkerSymbol({url:vr,width:24,height:30}))),Zr=new window.jkEsri.Graphic({geometry:null,symbol:this.returnMarkerSymbol({url:hr,width:32,height:32})}),zr=new window.jkEsri.Graphic({geometry:this.returnPolyLine(),symbol:this.returnLineSymbol({color:"#c8c8c8",width:2})});let t=new window.jkEsri.GraphicsLayer({id:"polylineInit"}),e=new window.jkEsri.Graphic({geometry:this.returnPolyLine(this.pathCoordinates),symbol:this.returnLineSymbol({color:"#176415",width:2})});t.add(e),jr.add(t),jr.add(Br,18),jr.add(Fr,19),jr.add(Ur,19),Gr.graphics.add(zr,11),Gr.graphics.add(Zr,10),_(e.geometry.extent)}else Fr=new window.jkEsri.Graphic({geometry:m(this.center),symbol:this.returnMarkerSymbol({url:Er,width:32,height:32})}),Gr.graphics.add(Fr,8),_(this.center)},loadMapData(){this.gjData=[],this.pathCoordinates=[],this.pointCoordinates=[];let t=!(this.gjParams&&this.gjParams.url);const e={"Content-Type":"application/json"};this.apiToken&&(e.Authorization="Bearer "+this.apiToken);let i={};for(const r in this.gjParams)Object.prototype.hasOwnProperty.call(this.gjParams,r)&&"url"!=r&&"move"!=r&&(i[r]=this.gjParams[r]);ur(this.gjParams.url,{params:i,headers:e},t).then(t=>{if(t&&t.length>0){this.gjData=t;let e=[];Br=new window.jkEsri.GraphicsLayer({id:"pointLayer"}),t.map(t=>{if(t.longitude=t[window._$config.jd||"jd"]||t.longitude||"",t.latitude=t[window._$config.wd||"wd"]||t.latitude||"",t.longitude&&t.latitude){t.point=m([t.longitude,t.latitude]),e.push([t.longitude,t.latitude]),t.longitude=Number(t.longitude)?Number(t.longitude).toFixed(2):t.longitude,t.latitude=Number(t.latitude)?Number(t.latitude).toFixed(2):t.latitude;const i=new window.jkEsri.Graphic({geometry:t.point,attributes:t,symbol:{type:"simple-marker",size:"8px",color:"#98fe33"}});Br.add(i),this.pointCoordinates.push(t)}}),this.pathCoordinates=e,this.initGraphics()}else this.initGraphics()})},TDTinstance(t,e){for(const i in e){const r=t.modules[i].split("/").pop();"geometryEngine"===r&&(Wr.geometryEngine=e[i]),"webMercatorUtils"===r&&(Wr.webMercatorToGeographic=e[i].webMercatorToGeographic,Wr.geographicToWebMercator=e[i].geographicToWebMercator),Wr[r]=e[i]}window.jkEsri=Wr},init(t){(0,l.loadCss)(t.initCss),(0,l.loadModules)(t.modules||[],{url:t.initJs}).then(this.TDTinstance.bind(this,this.mapParams)).then(this.initMap.bind(this))},hideDefaulte(){Gr.container.style.cursor="default",this.$refs.tooltip.hide()},async debouncedHover(t){const e=await Gr.hitTest(t);if(e&&e.results&&e.screenPoint)if(e.results.length>0){let t=null;e.results.some(e=>{e.graphic&&e.graphic.layer&&e.graphic.layer.id&&"pointLayer"==e.graphic.layer.id&&(t=e.graphic)}),t?(Gr.container.style.cursor="pointer",this.$refs.tooltip.show({x:e.screenPoint.x,y:e.screenPoint.y},t.attributes)):this.hideDefaulte()}else this.hideDefaulte();else this.hideDefaulte()},initMap(){W(this.mapId,{mapType:this.mapParams.mapType,layersType:this.mapParams.layersType,center:this.center,zoom:7}).then(t=>{jr=t.map,Gr=t.view,this.isLoading=!1,Dr=new window.jkEsri.Measurement({view:Gr}),Gr.on("pointer-move",_r(this.debouncedHover,300)),this.loadMapData()})},drawMeasurement(t){Dr&&(Dr.clear(),Dr.activeTool=null,setTimeout(()=>{Dr.activeTool=t},500))},clearMeasurement(){Dr&&Dr.clear()}}},Yr=Qr;var Hr=gr(Yr,s,a,!1,null,"4294e38e",null);const Xr=Hr.exports;var Kr=function(){var t=this,e=t._self._c;return e("loading-box",{attrs:{loading:t.isLoading}},[e("div",{staticClass:"arcgisMap-box"},[e("div",{staticClass:"map-canvans",attrs:{id:t.mapId}}),!t.isLoading&&t.isSearch?e("searchMap",{ref:"searchRef",on:{"select-point":t.refreshPoint,clearSearchMap:t.clearSearchMap}}):t._e()],1)])},qr=[],$r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"arcgis-search-wrapper"},[e("div",{staticClass:"arcigs-search-box"},[e("CustomSearchInput",{on:{"checked-point":t.changeCheckedPoint,search:t.searchMap,clear:t.clearSearch},model:{value:t.keyWord,callback:function(e){t.keyWord=e},expression:"keyWord"}}),t.keyWord&&t.isSearch&&!t.checkedPoint?e("div",{staticClass:"search-item-box"},[e("div",{staticClass:"arcgis-line"}),e("div",{staticClass:"search-item-wrapper"},[t.mapNameList.length>0?[t._l(t.mapNameList,function(i,r){return e("div",{key:r,staticClass:"search-item",on:{click:function(e){return e.stopPropagation(),t.goDetail(i)}}},[e("div",{staticClass:"search-name"},[t._v(t._s(i.name))]),e("div",{staticClass:"search-address"},[t._v(t._s(i.address))])])}),t.loadPage?e("div",{staticClass:"loaded-box"},[t._v(" "+t._s(t.finished?"数据加载中...":"数据已到底!!!")+" ")]):t._e()]:e("div",{staticClass:"search-no-data"},[t._v(" "+t._s(t.loadSearch?"数据加载中...":"暂无数据")+" ")])],2)]):t._e()],1)])},tn=[],en=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"message-fade"}},[t.localVisible?e("div",{staticClass:"custom-message",class:`custom-message--${t.type}`,on:{click:t.handleClick}},[(t.showIcon,t._e()),e("span",{staticClass:"custom-message__content"},[t._v(t._s(t.message))]),t.closable?e("button",{staticClass:"custom-message__close",attrs:{type:"button","aria-label":"关闭提示"},on:{click:function(e){return e.stopPropagation(),t.close.apply(null,arguments)}}},[t._v(" × ")]):t._e()]):t._e()])},rn=[];const nn={name:"CustomMessage",props:{closable:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1}},data(){return{timer:null,message:"",showIcon:!1,localVisible:!1,duration:3e3,type:"info"}},computed:{iconMap(){return{success:"✓",error:"✗",warning:"⚠",info:"ℹ"}}},mounted(){this.localVisible&&this.startTimer()},beforeUnmount(){this.clearTimer()},methods:{startTimer(){this.clearTimer(),this.duration>0&&!this.closable&&(this.timer=setTimeout(()=>{this.close()},this.duration))},clearTimer(){this.timer&&(clearTimeout(this.timer),this.timer=null)},close(){this.localVisible=!1},handleClick(){this.closeOnClick&&!this.closable&&this.close()},show(t={}){const{message:e,type:i="info",duration:r=3e3,closable:n,closeOnClick:o}=t;void 0!==e&&(this.message=e),this.type=i,void 0!==r&&(this.duration=r),void 0!==n&&(this.$props.closable=n),void 0!==o&&(this.$props.closeOnClick=o),this.localVisible=!0,this.startTimer()}}},on=nn;var sn=gr(on,en,rn,!1,null,"5b0941a0",null);const an=sn.exports;var ln=function(){var t=this,e=t._self._c;return e("div",{staticClass:"search-input-wrapper"},[e("div",{staticClass:"input-container"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.localValue,expression:"localValue"}],ref:"input",staticClass:"custom-input",attrs:{type:"text",placeholder:t.computedPlaceholder},domProps:{value:t.localValue},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSearch.apply(null,arguments)},input:[function(e){e.target.composing||(t.localValue=e.target.value)},t.onInput],focus:function(e){t.isFocused=!0},blur:function(e){t.isFocused=!1}}}),!t.localValue||!t.isFocused&&t.isMobile?t._e():e("button",{staticClass:"clear-btn",attrs:{type:"button","aria-label":"清除内容"},on:{click:function(e){return e.stopPropagation(),t.handleClear.apply(null,arguments)}}},[t._v(" × ")]),e("button",{staticClass:"search-btn",attrs:{type:"button","aria-label":"搜索"},on:{click:function(e){return e.stopPropagation(),t.handleSearch.apply(null,arguments)}}},[e("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"}},[e("circle",{attrs:{cx:"11",cy:"11",r:"8"}}),e("path",{attrs:{d:"m21 21-4.35-4.35"}})])])]),e("label",{staticClass:"custom-checkbox"},[e("input",{staticClass:"checkbox-input",attrs:{type:"checkbox"},domProps:{checked:t.localCheckedPoint},on:{change:t.toggleCheckedPoint}}),e("span",{staticClass:"checkbox-box"},[e("svg",{staticClass:"check-icon",attrs:{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M1 4L3.5 6.5L9 1",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}})])]),e("span",{staticClass:"checkbox-label",style:{color:t.localCheckedPoint?"#409eff":"#fff"}},[t._v("坐标反查")])])])},cn=[];const un={name:"SearchInputWithCheckbox",props:{value:{type:String,default:""}},data(){return{localValue:this.value,localCheckedPoint:!1,isFocused:!1}},computed:{computedPlaceholder(){return this.localCheckedPoint?"输入经纬度(115.83,23.43)":"输入地址"},isMobile(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}},watch:{value(t){this.localValue=t}},methods:{handleSearch(){this.$emit("search",this.localValue)},handleClear(){this.localValue="",this.$emit("clear",this.localValue),this.$refs.input.focus()},toggleCheckedPoint(t){const e=t.target.checked;this.localCheckedPoint=e,this.$emit("checkedPoint",e)},onInput(){}}},dn=un;var hn=gr(dn,ln,cn,!1,null,"3e01720b",null);const pn=hn.exports,fn="f04ece8bf0ff9c1117526a29a96bb2e1";function yn(t){return new Promise((e,i)=>{if(!t||!t.keyWord)return void i();let{keyWord:r,level:n=12,mapBound:o="108.38512072748536,20.999700722178734,118.92018884189694,26.042267179024694",currentPage:s=0,pageSize:a=20}=t;lr.get("http://api.tianditu.gov.cn/v2/search",{params:{postStr:JSON.stringify({keyWord:r,level:n,mapBound:o,queryType:2,start:s,count:a}),type:"query",tk:fn},timeout:1e4}).then(t=>{console.log("reject",t),t&&t.status&&200==t.status&&t.data&&t.data.pois?e({list:t.data.pois||[],total:t.data.count||0}):i(t.data)}).catch(t=>{i(t)})})}function mn(t){return new Promise((e,i)=>{if(!t)return void i();let r={lon:t.longitude,lat:t.latitude};const n=JSON.stringify(r);lr.get("https://api.tianditu.gov.cn/geocoder",{params:{postStr:n,type:"geocode",tk:fn},timeout:1e4}).then(t=>{t&&t.status&&200==t.status&&t.data&&t.data.msg&&t.data.result?e(t.data.result):i(t.data)}).catch(t=>{i(t)})})}function gn(t){return new Promise((e,i)=>{t?lr.get("https://api.tianditu.gov.cn/geocoder",{params:{ds:JSON.stringify({keyWord:t}),tk:fn},timeout:1e4}).then(t=>{t&&t.status&&200==t.status&&t.data&&t.data.msg&&t.data.location?e(t.data.location):i(t.data)}).catch(t=>{i(t)}):i()})}const wn={name:"SearchMap",components:{CustomModal:an,CustomSearchInput:pn},data(){return{keyWord:"",isSearch:!1,loadSearch:!1,currentPage:1,finished:!1,loadPage:!1,pageSize:20,total:0,mapNameList:[],checkedPoint:!1}},methods:{onShowDialog(t){this.$refs.message.show({message:t,type:"warning",duration:3e3})},clearSearch(){this.keyWord="",this.mapNameList=[],this.clearMap()},changeCheckedPoint(t){this.checkedPoint=t},initMap(t){t.map,this.isSearch=!1,this.checkedPoint=!1,this.clearSearch()},goDetail(t){if(t.lonlat){let e="string"==typeof t.lonlat?t.lonlat.split(","):[];e&&e.length>1?this.$emit("selectPoint",{...t,longitude:e[0],latitude:e[1]}):this.onShowDialog("坐标格式不正确!!!")}},loadMapList(){this.mapNameList.length>0&&this.total>this.currentPage*this.pageSize&&(this.currentPage++,this.postMapList()),this.total>0&&this.total<=this.currentPage*this.pageSize&&(this.finished=!0)},postMapList(){this.loadSearch=!0,yn({keyWord:this.keyWord,currentPage:this.currentPage,pageSize:this.pageSize}).then(t=>{this.loadSearch=!1,this.total=0,t&&t.list&&t.list.length>0&&(this.mapNameList=this.mapNameList.concat(t.list)),t.total&&Number(t.total)&&(this.total=Number(t.total),this.loadPage=!0)}).catch(t=>{console.log("定位失败",t),this.loadSearch=!1})},searchMap(t){if(t){if(this.keyWord=t,this.mapNameList)if(this.mapNameList=[],this.isSearch=!0,this.total=0,this.finished=!1,this.loadPage=!1,this.currentPage=1,this.checkedPoint){let t=this.keyWord,e="string"==typeof t?t.split(","):[];e.length>1?this.$emit("selectPoint",{longitude:e[0],latitude:e[1]}):this.onShowDialog("坐标格式不正确!!!")}else this.postMapList()}else this.onShowDialog("请输入搜索内容!!!")},clearMap(){this.$emit("clearSearchMap")}}},bn=wn;var vn=gr(bn,$r,tn,!1,null,null,null);const En=vn.exports,An="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDI1LTEyLTA5VDE0OjI2OjA3KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyNS0xMi0wOVQxNDozODo1OCswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyNS0xMi0wOVQxNDozODo1OCswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDphZjg5NWU1Zi01NTQ2LWE5NDctOGJlOS05MGVmMDY2OGEwNGQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6YWY4OTVlNWYtNTU0Ni1hOTQ3LThiZTktOTBlZjA2NjhhMDRkIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6YWY4OTVlNWYtNTU0Ni1hOTQ3LThiZTktOTBlZjA2NjhhMDRkIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDphZjg5NWU1Zi01NTQ2LWE5NDctOGJlOS05MGVmMDY2OGEwNGQiIHN0RXZ0OndoZW49IjIwMjUtMTItMDlUMTQ6MjY6MDcrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz446jdUAAACR0lEQVRYhcXXT4hNcRQH8M/TmEL+FiWKWCqSFGmyRFmoSZQGs5iU2LBCsSCxsMBCSUzKv1KzIY0F2VDYKGZBRjGNkUxv/Clj/lyL33sab+579973HnPqdd+959zz/d7zO+f8zi8XRZGJlEkTio6GATlowPB/xM0hIkRgPtpxDqv+MfAirMdNHIVcPtKCqwWDH7iNg/hSR+ApWIs9WIcFQgQm5/KRmcjHvHQPp/GoStBimPdiGdoK940FfQ825PKhCDqwJcbJTyFcbbLlyEIsRys2YVqJfkiIRnuRQCMGE5xewTF8qGAzC0txSMinxTE2I7iDnfhaLMNfOJBAoBXvcQpzY/TbcBz30VwGnPD1N4R8U4xAUdJ2pT6cxHk0YTN2Y45Q0pXkEvYLyzuOwBK8TUkCvqEbK1Lad2Fr4YrxnbAbLzMQmJ4BPMJDIfv/SGkECI2pNwOJtNKPNXgz9mHcXvAR1+sM/h0nSsHLEYAddQSP8Bx345SVdsPtdSKQw2UxX098DoyVAcyoAXwE17CrnEHSPLC6BnB4h4tCFKoi8BoPaiDQiRcqNLikJSB0tqEqwLuwUeW9I9VINoxbGcH7hVbdk2SYdibMWhFPC79EyTKUNqe0G8RZoewSFzhNDoyVT5hXQT+KC9iX1mHWsXxlgv6VsNeXLbtaCfTicQV9B55JP1dkXoKilL4V4YkwnIxmcVTtyehwyX0fzsQQS5RqI0Co9dmF/51oweesTmo5GzYJpdaHI9WAU1sECNPTVNnmyL8JTPTx/Df1OpARdwAAzQAAAABJRU5ErkJggg==";var Mn,Sn=null,xn=null,Tn=!1,kn=null,Pn=null;let Nn={url:An,width:20,height:18};const Ln={components:{loadingBox:Pr,searchMap:En,svgIcon:br},props:{mapParams:{type:Object,default:u},defaultCenter:{type:Array,default:()=>[]},isSearch:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},computed:{isShowPoint(){return!this.disabled&&this.isSearch},mapCenter(){}},data(){return{mapId:"map"+Math.round(1e4*Math.random()),isLoading:!0,center:[],address:"",pointCenter:[113.536308532987,23.3450945634734],pointData:{longitude:"",latitude:"",address:""}}},methods:{getMap(){return Sn},getView(){return xn},setupMapEvents(t){this._clickHandler=t.on("click",this.debounce(this.handleMapClick,300)),this._hoverHandler=t.on("pointer-move",this.debounce(this.handleMapHover,80))},handleMapClick(t){if(Tn)return;Mn&&Mn.abort(),Mn=new AbortController,Tn=!0;const e={mapPoint:t.mapPoint,type:"click"},i=xn.hitTest(t);i.then(i=>{if(!Mn.signal.aborted){if(e.event=i,this.isShowPoint&&Pn){let e=t.mapPoint;e&&(this.pointData.longitude=e.x,this.pointData.latitude=e.y,kn.graphics._items[0].geometry.longitude=e.x,kn.graphics._items[0].geometry.latitude=e.y,this.pointData.address="",Pn.update(kn.graphics._items[0]))}this.$emit("mapEventClick",e)}}).catch(t=>{"AbortError"!==t.name&&console.warn("hitTest error",t)}).finally(()=>{setTimeout(()=>{Tn=!1,Mn=null},300)})},async handleMapHover(t){const e=await xn.hitTest(t);e&&e.results&&e.screenPoint?(xn.container.style.cursor="pointer",this.$emit("mapEventMouse",e)):xn.container.style.cursor="default"},debounce(t,e){let i;return(...r)=>{clearTimeout(i),i=setTimeout(()=>t.apply(this,r),e)}},cleanupMapEvents(){this._clickHandler?.remove(),this._hoverHandler?.remove()},loadEdMap(e){Sn=e.map,xn=e.view,Z(e),kn=new window.jkEsri.GraphicsLayer({id:"pointLayer"}),Sn.add(kn,10),this.isShowPoint?this.setSearchVm():this.moveCenterPoint(),this.setupMapEvents(e.view),this.center&&2==this.center.length&&(0,t.goToPoint)({longitude:this.center[0],latitude:this.center[1]}),this.$emit("loadEdMap",e)},moveCenterPoint(){this.center&&2==this.center.length&&this.center[0]&&this.center[1]?this.refreshPoint({longitude:this.center[0],latitude:this.center[1]}):this.address?gn(this.address).then(t=>{t&&t.lon&&t.lat&&this.refreshPoint({longitude:t.lon||"",latitude:t.lat})}).catch(t=>{console.log("err",t)}):this.defaultCenter&&2==this.defaultCenter.length&&this.defaultCenter[0]&&this.defaultCenter[1]?this.refreshPoint({longitude:this.defaultCenter[0],latitude:this.defaultCenter[1]}):this.refreshPoint({longitude:this.pointCenter[0],latitude:this.pointCenter[1]})},setSearchVm(){if(this.disabled)this.moveCenterPoint();else{let t={type:"picture-marker",...Nn,img:Nn.url};Pn=new window.jkEsri.SketchViewModel({view:xn,layer:kn,pointSymbol:t,polylineSymbol:{type:"simple-line",color:"#8A2BE2",width:"4",style:"dash",spatialReference:{wkid:4326}},polygonSymbol:{type:"simple-fill",color:"rgba(0, 45, 99,0.4)",style:"solid",outline:{color:"white",width:2},spatialReference:{wkid:4326}},spatialReference:{wkid:4326}}),this.moveCenterPoint(),Pn.on("update",t=>{if(t&&t.graphics&&t.graphics.length>0&&t.graphics[0].geometry){let e=t.graphics[0].geometry;t.graphics[0].symbol=E({...Nn}),this.isSearch&&(this.pointData.longitude=e.longitude,this.pointData.latitude=e.latitude,this.pointData.address=""),t.graphic=t.graphics[0]}})}},clearSearchMap(){console.log("")},clearSketch(){kn&&kn.removeAll(),this.$refs.searchRef&&this.$refs.searchRef.clearSearch&&this.$refs.searchRef.clearSearch()},refreshPoint(e){kn&&kn.removeAll(),this.pointData={...e,...Nn},kn.add(x(this.pointData)),this.isShowPoint&&setTimeout(()=>{Pn.update(kn.graphics._items[0])},200),(0,t.goToPoint)(e)},initPoint(t){this.center=[],this.address="",this.pointData.address="",t&&(t.address&&(this.address=data.address),t.center&&2==t.center.length&&t.center[0]&&t.center[1]&&(this.center=data.center),Sn&&xn&&setTimeout(()=>{this.moveCenterPoint()},200))},async returnPoint(){let t=this.pointData;if(t&&t.longitude&&t.latitude){if(!t.address){let e=await mn({longitude:this.pointData.longitude,latitude:this.pointData.latitude});if(e&&e.addressComponent){let i="";i=e.addressComponent.address?e.addressComponent.address:"",t={...this.pointData,...e.addressComponent,address:i}}}return t}return t}},beforeUnmount(){this.clearSketch(),this._clickHandler?.remove(),this._hoverHandler?.remove()}};function In(t,e={}){const{executeOriginalFirst:i=!0,debounce:r,throttle:n}=e;let o=[],s=!0,a=0,l=null;const c=(t,e,i)=>{try{return t.apply(e,i)}catch(r){return console.error("EventManager listener error:",r),null}},u=(e,r)=>{s||(o.sort((t,e)=>t.index-e.index),s=!0),i&&t&&c(t,e,r);const n=[...o];for(let t=0;t<n.length;t++){const i=n[t];if(!o.includes(i))continue;const s=c(i,e,r);"remove"===s&&d(i)}!i&&t&&c(t,e,r)},d=t=>{const e=o.indexOf(t);e>-1&&o.splice(e,1)};let h=function(...t){const e=Date.now();if(!(n&&e-a<n)){if(r)return l&&clearTimeout(l),void(l=setTimeout(()=>{a=Date.now(),u(this,t)},r));a=e,u(this,t)}};return h.addListener=function(t,e=0){if("function"!==typeof t)throw new Error("Listener must be a function");return t.index=e,t.remove=()=>d(t),o.push(t),s=!1,t},h.clear=function(){o=[],s=!0,l&&(clearTimeout(l),l=null)},h.getListeners=function(){return[...o]},h.destroy=function(){this.clear(),l&&(clearTimeout(l),l=null)},h}let Rn={};class Cn{constructor(t,e={}){this.id=t;let i={...u,...e};return this.param=i,this.__config=i.config||{},this.layersType=i.layersType,this.mapParams={...i},this.onloadMap=In(),this.createMap(t,i),this}createMap(t,e){this.init(e)}init(t){if(window.jkEsri)this.initMap();else{t.initCss&&(0,l.loadCss)(t.initCss);const e=t.modules||["esri/Map","esri/views/MapView","esri/layers/WebTileLayer","esri/geometry/Extent","esri/geometry/SpatialReference","esri/geometry/support/webMercatorUtils","esri/geometry/geometryEngine"];this.mapParams.modules=e,(0,l.loadModules)(e,{url:t.initJs}).then(this.TDTinstance.bind(this,this.mapParams)).then(this.initMap.bind(this)).catch(t=>{throw console.error("地图模块加载失败:",t),t})}}TDTinstance(t,e){Rn={};for(const i in e){if(!e.hasOwnProperty(i))continue;const r=t.modules[i].split("/").pop();"webMercatorUtils"===r&&(Rn.webMercatorToGeographic=e[i].webMercatorToGeographic,Rn.geographicToWebMercator=e[i].geographicToWebMercator),"geometryEngine"===r&&(Rn.geometryEngine=e[i]),Rn[r]=e[i]}window.jkEsri=Rn,this.esri=Rn}initMap(){let t=null;if("dynamic"!=this.layersType&&"TileLayer"!=this.layersType||!this.param.baseMapUrl)W(this.id,this.param).then(t=>{this.onloadMap(t)});else{var e="dynamic"==this.layersType?window.jkEsri.MapImageLayer:window.jkEsri.TileLayer;t=new e({url:this.param.baseMapUrl,title:this.layersType,opacity:1,visible:!0}),z(this.id,t,this.param).then(t=>{this.onloadMap(t)})}}destroy(){this.onloadMap?.destroy?.(),this.view&&(this.view.container=null,this.view=null),this.map=null,this.esri=null}}const On=Cn,jn={name:"JKMapEdit",mixins:[Ln],mounted(){this.isLoading=!0,this.map=new On(this.mapId,this.mapParams),this.map.onloadMap.addListener(t=>{this.isLoading=!1,this.loadEdMap(t),(this.isShowPoint||this.isSearch||this.isLocation)&&setTimeout(()=>{this.$nextTick(()=>{this.$refs.searchRef.initMap(t)})},200)})}},Gn=jn;var Dn=gr(Gn,Kr,qr,!1,null,null,null);const Fn=Dn.exports;var Un=function(){var t=this,e=t._self._c;return e("loading-box",{attrs:{loading:t.isLoading}},[e("div",{staticClass:"arcgisMap-box"},[e("div",{staticClass:"map-canvans",attrs:{id:t.mapId}}),!t.isLoading&&t.isSearch?e("searchMap",{ref:"searchRef",on:{"select-point":t.refreshPoint,clearSearchMap:t.clearSearchMap}}):t._e(),t.isShowBtnBox?e("div",{staticClass:"edit-btn-box"},[t.drawIngArea?e("div",{staticClass:"edit-area"},[t._v(" "+t._s(t.drawIngArea)+"(平方米) ")]):t._e(),t.module.indexOf("screen")>-1?e("div",{staticClass:"edit-btn",attrs:{title:"全屏"},on:{click:t.changeFull}},[e("svgIcon",{attrs:{name:"full",width:"24",color:"#000"}})],1):t._e(),t.isUseSketch?[t.type&&t.type.indexOf("point")>-1?e("div",{staticClass:"edit-btn",attrs:{title:"点"},on:{click:function(e){return t.drawLayerType("point")}}},[e("svgIcon")],1):t._e(),t.type&&t.type.indexOf("polyline")>-1?e("div",{staticClass:"edit-btn",attrs:{title:"线"},on:{click:function(e){return t.drawLayerType("polyline")}}},[e("svgIcon",{attrs:{name:"line"}})],1):t._e(),t.type&&t.type.indexOf("polygon")>-1?e("div",{staticClass:"edit-btn",attrs:{title:"面"},on:{click:function(e){return t.drawLayerType("polygon")}}},[e("svgIcon",{attrs:{name:"polygon"}})],1):t._e(),e("div",{staticClass:"edit-btn",attrs:{title:"关闭"},on:{click:t.closeLayer}},[e("svgIcon",{attrs:{name:"close",width:"22",color:"#000"}})],1),e("div",{staticClass:"edit-btn",attrs:{title:"删除"},on:{click:t.delDraw}},[e("svgIcon",{attrs:{name:"del"}})],1),e("div",{staticClass:"edit-btn",class:{"btn-disable":!t.isPerv},attrs:{title:"上一步"},on:{click:t.undo}},[e("svgIcon",{attrs:{name:"perv",width:"22",color:t.isPerv?"#6a6a6a":"#dadada"}})],1),e("div",{staticClass:"edit-btn",class:{"btn-disable":0==t.isNextList.length},attrs:{title:"下一步"},on:{click:t.redo}},[e("svgIcon",{attrs:{name:"next",width:"22",color:t.isNextList.length>0?"#6a6a6a":"#dadada"}})],1)]:t._e()],2):t._e()],1)])},Bn=[];let Zn=null,zn=null,Wn=null,Jn=!1,Vn=null,_n=null,Qn=null,Yn=null,Hn=null,Xn=null,Kn=null,qn=null,$n=0;const to={url:An,width:20,height:18},eo={components:{searchMap:En,svgIcon:br,loadingBox:Pr},props:{mapParams:{type:Object,default:()=>({})},module:{type:Array,default:()=>["search","edit","screen"]},isUseMore:{type:Boolean,default:!1},center:{type:Array,default:()=>[115.837683,23.43353]},type:{type:Array,default:()=>["point","polyline","polygon"]}},computed:{isShowPoint(){return this.type&&this.type.includes("point")},isSearch(){return this.module&&this.module.length>0&&this.module.indexOf("search")>-1},isUseSketch(){return this.module&&this.module.length>0&&this.module.indexOf("edit")>-1},isShowBtnBox(){return this.module&&this.module.length>0&&(this.module.indexOf("edit")>-1||this.module.indexOf("screen")>-1)}},data(){return{mapId:"map"+Math.round(1e4*Math.random()),isLoading:!0,pointData:null,isPerv:!1,isNextList:[],drawIngArea:0}},methods:{getMap(){return Zn},getView(){return zn},setupMapEvents(t){this._clickHandler=t.on("click",this.debounce(this.handleMapClick,300)),this._hoverHandler=t.on("pointer-move",this.debounce(this.handleMapHover,80))},async handleMapClick(t){if(Jn)return;Wn&&Wn.abort(),Wn=new AbortController,Jn=!0;const e={mapPoint:t.mapPoint,type:"click"};try{const i=await zn.hitTest(t);if(Wn.signal.aborted)return;this.$emit("mapEventClick",{...e,...i})}catch(i){"AbortError"!==i.name&&console.warn("hitTest error",i)}finally{setTimeout(()=>{Jn=!1,Wn=null},300)}},async handleMapHover(t){const e=await zn.hitTest(t);e.results=e.results.filter(t=>t.layer&&t.layer.id&&-1==t.layer.id.indexOf("map-mask")),e&&e.results&&e.results.length>0&&e.screenPoint?this.$emit("mapEventMouse",e):zn.container.style.cursor="default"},debounce(t,e){let i;return(...r)=>{clearTimeout(i),i=setTimeout(()=>t.apply(this,r),e)}},cleanupMapEvents(){this._clickHandler?.remove(),this._hoverHandler?.remove()},loadEdMap(t){Zn=t.map,zn=t.view,Z(t),this.setupMapEvents(t.view),this.isSearch&&(Vn=new window.jkEsri.GraphicsLayer({id:"pointLayer"}),Zn.add(Vn,10)),this.isUseSketch&&this.loadSketch(),this.center&&2===this.center.length&&_({longitude:this.center[0],latitude:this.center[1]}),this.$emit("loadEdMap",t)},clearSearchMap(){Vn?.removeAll()},refreshPoint(t){Vn?.removeAll(),this.pointData={...t,...to},Vn.add(x(this.pointData)),_(t)},uuidGenerator(){const t="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",e="ABCDEFGHJKMNPQRSTWXYZ0123456789",i=e.length;return t.replace(/x/g,()=>e.charAt(Math.floor(Math.random()*i)))},drawLayerType(t){Qn=null,_n.create(t),_n.on("create",t=>{if(this.isPerv=!0,t.graphic&&this.drawLayerNames(t.graphic),"complete"===t.state){if(this.isUseMore||_n.cancel(),this.isPerv=!1,this.isNextList=[],this.drawIngArea=0,Qn=null,$n=1,t.graphic&&!t.graphic.attributes){const e={typeId:this.uuidGenerator(),name:"",describe:"",area:0};"simple-fill"===t.graphic.symbol.type?t.graphic.attributes={...e,type:"polygon"}:"simple-line"===t.graphic.symbol.type?t.graphic.attributes={...e,type:"polyline"}:t.graphic.attributes={...e,type:"point"}}else if(t.graphics?.[0]){const e=t.graphics[0];["simple-marker","picture-marker"].includes(e.symbol.type)&&(e.symbol=E({url:e.attributes?.url||An,width:e.attributes?.width||20,height:e.attributes?.height||18}))}this.drawcomplete(t)}})},undo(){this.isPerv&&(_n.undo(),this.isNextList.push("1"),Qn&&this.drawLayerNames(Qn))},redo(){0!==this.isNextList.length&&(this.isPerv=!0,_n.redo(),Qn&&this.drawLayerNames(Qn),this.isNextList.pop())},closeLayer(){_n?.viewModel&&_n.viewModel.cancel(),this.isPerv=!1,this.isNextList=[]},delDraw(){this.clearSketch()},changeFull(){this.$emit("changeFull")},completeSketch(){Qn=null,_n?.viewModel?.complete()},clearSketch(){this.closeLayer(),Qn=null,Yn?.removeAll(),Hn?.removeAll(),Kn?.removeAll(),qn?.removeAll(),Xn?.removeAll(),Vn?.removeAll(),(this.isShowPoint||this.isSearch)&&this.$refs.searchRef&&this.$refs.searchRef.clearSearch&&this.$nextTick(()=>{this.$refs.searchRef.clearSearch()})},addGeometryLayer(t){Yn?.add(t)},loadSketch(){Vn=new window.jkEsri.GraphicsLayer({id:"pointLayer"}),Kn=new window.jkEsri.GraphicsLayer({id:"layerDraw"}),qn=new window.jkEsri.GraphicsLayer({id:"layerDrawText"}),Yn=new window.jkEsri.GraphicsLayer({id:"sketchLayer"}),Hn=new window.jkEsri.GraphicsLayer({id:"sketchTextLayer"}),Xn=new window.jkEsri.GraphicsLayer({id:"drawingText"}),Zn.add(Vn,10),Zn.add(Kn,1),Zn.add(qn,2),Zn.add(Yn,4),Zn.add(Hn,5),Zn.add(Xn,5),_n=new window.jkEsri.SketchViewModel({layer:Yn,view:zn,polylineSymbol:{type:"simple-line",color:"#fff",width:"4",style:"dash"},polygonSymbol:{type:"simple-fill",color:"rgba(0, 45, 99,0.01)",style:"solid",outline:{color:"white",width:2}}}),_n.on("delete",t=>{t.graphics?.length>0&&(t.graphic=t.graphics[0]),this.drawIngArea=0,Qn=null,this.drawcomplete(t)}),_n.on("update",t=>{if(t.graphics?.[0]&&this.drawLayerNames(t.graphics[0]),"start"===t.state){if($n=0,t.graphic=t.graphics[0],t.graphic&&!t.graphic.attributes){const e={typeId:this.uuidGenerator(),name:"",describe:"",area:0,rings:[]};"simple-fill"===t.graphic.symbol.type?t.graphic.attributes={...e,type:"polygon",color:"#cef5ff",opacity:20,outline:{opacity:100,color:"#0ccfff",width:2,style:"solid"}}:"simple-line"===t.graphic.symbol.type?t.graphic.attributes={...e,type:"polyline",outline:{opacity:100,color:"#0ccfff",width:2,style:"solid"}}:t.graphic.attributes={...e,type:"point"}}}else"active"===t.state?this.isPerv=!0:"complete"===t.state&&(this.isPerv=!1,this.isNextList=[],$n=1,this.drawIngArea=0,Qn=null,t.graphic=t.graphics[0],this.drawcomplete(t))})},drawLayerNames(t){if("polygon"===t?.geometry?.type&&t.geometry.rings?.length>0){this.drawIngArea=0,Qn=t;const e=t.geometry.rings[t.geometry.rings.length-1],i=e.length>2,r=Q(t.geometry);if(i&&r&&Number(r)>0&&(this.drawIngArea=Number(r).toFixed(2)),t.attributes?.uuid&&Hn?.graphics?.items){const e=Hn.graphics.items.find(e=>e.attributes?.uuid===t.attributes.uuid);e&&(e.geometry=t.geometry.centroid)}}},async retuanGraphics(){let t=0,e={drawEnd:$n,area:"",mArea:"",hectareArea:"",latitude:"",longitude:"",ringsList:[]};if(Yn?.graphics?.items?.length>0)for(const i of Yn.graphics.items){const r=this.judgeLayerType(i.geometry.type);let n=F(i);if("point"===r)e.longitude=i.geometry.longitude,e.latitude=i.geometry.latitude,e.ringsList.push({type:"Point",geometry:n});else if("polyline"===r)e.ringsList.push({type:"Polyline",geometry:n,latitude:"",longitude:"",area:0});else if("polygon"===r){const r=Q(i.geometry);let o=0;r&&Number(r)&&(o=Math.abs(Number(r).toFixed(2))),t+=o,e.longitude=i.geometry.centroid.longitude,e.latitude=i.geometry.centroid.latitude,e.ringsList.push({type:"polygon",geometry:n,longitude:i.geometry.centroid.longitude,latitude:i.geometry.centroid.latitude,area:o})}}return t>0&&(e.area=t,e.mArea=.0015*Number(t),e.hectareArea=1e-4*Number(t)),console.log("formatMapData00",e,Yn.graphics.items),e},async drawcomplete(t){if("delete"==t.type&&t.graphic?.attributes?.uuid&&Hn?.graphics?.items){const e=Hn.graphics.items.findIndex(e=>e.attributes?.uuid===t.graphic.attributes.uuid);e>=0&&Hn.remove(Hn.graphics.items[e])}const e=await this.retuanGraphics();this.$emit("drawcomplete",e)},judgeLayerType(t){if(t)return t.includes("oint")?"point":t.includes("olygon")?"polygon":t.includes("ine")?"polyline":void 0},batchDraw(t,e="edit"){let i="edit"==e?Yn:Kn,r=[];if(t?.length>0){for(const e of t){let t=S(e,e.drawType);r&&r.push(t)}r.length>0&&i.addMany(r),_(i)}}},beforeUnmount(){this.clearSketch(),this.cleanupMapEvents()}},io={name:"JKMapEdit",mixins:[eo],mounted(){this.isLoading=!0,this.map=new On(this.mapId,this.mapParams),this.map.onloadMap.addListener(t=>{this.isLoading=!1,this.loadEdMap(t),(this.isShowPoint||this.isSearch||this.isLocation)&&setTimeout(()=>{this.$nextTick(()=>{this.$refs.searchRef.initMap(t)})},200)})}},ro=io;var no=gr(ro,Un,Bn,!1,null,null,null);const oo=no.exports;var so,ao=function(){var t=this,e=t._self._c;return e("loading-box",{attrs:{loading:t.isLoading}},[e("div",{staticClass:"arcgisMap-box"},[e("div",{staticClass:"map-canvans",attrs:{id:t.mapId}})])])},lo=[],co=null,uo=null,ho=!1,po=null;const fo={components:{loadingBox:Pr},props:{mapParams:{type:Object,default:u},load:{type:Function,default:null},defaultCenter:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1}},computed:{mapCenter(){}},data(){return{mapId:"map"+Math.round(1e4*Math.random()),isLoading:!0,center:[],address:"",pointCenter:[113.536308532987,23.3450945634734],pointsList:[]}},methods:{getMap(){return co},getView(){return uo},setupMapEvents(t){this._clickHandler=t.on("click",this.debounce(this.handleMapClick,300)),this._hoverHandler=t.on("pointer-move",this.debounce(this.handleMapHover,80))},changeGraphic(t){po&&po.graphics&&po.graphics._items&&po.graphics._items.map(e=>{let i=e.attributes.url,r=e.attributes.width,n=e.attributes.height;return t&&e&&e.attributes&&e.attributes.name==t.name&&(i=t.activeUrl?t.activeUrl:t.url,r=t.width+5,n=t.height*r/t.width),e.symbol=E({url:i,width:r,height:n}),e})},handleMapClick(t){if(ho)return;so&&so.abort(),so=new AbortController,ho=!0;const e={mapPoint:t.mapPoint,type:"click"},i=uo.hitTest(t);i.then(t=>{if(!so.signal.aborted){if(e.event=t,t&&t.results&&t.results.length>0){const e=t.results.filter(t=>t.layer&&t.layer.id&&t.layer.id.indexOf("pointLayer")>-1);if(e&&e.length>0){const t=e[0].graphic,i=t.attributes;this.changeGraphic(i)}console.log("eventData",t.results,e)}else this.changeGraphic(null);this.$emit("mapEventClick",e)}}).catch(t=>{"AbortError"!==t.name&&console.warn("hitTest error",t)}).finally(()=>{setTimeout(()=>{ho=!1,so=null},300)})},async handleMapHover(t){const e=await uo.hitTest(t);e&&e.results&&e.screenPoint?(uo.container.style.cursor="pointer",this.$emit("mapEventMouse",e)):uo.container.style.cursor="default"},debounce(t,e){let i;return(...r)=>{clearTimeout(i),i=setTimeout(()=>t.apply(this,r),e)}},cleanupMapEvents(){this._clickHandler?.remove(),this._hoverHandler?.remove()},loadEdMap(t){co=t.map,uo=t.view,setTimeout(()=>{po=new window.jkEsri.GraphicsLayer({id:"pointLayer"}),co.add(po,10),this.drawPoints(),this.setupMapEvents(t.view),this.$emit("loadEdMap",t)},500)},moveCenterPoint(){this.defaultCenter&&2==this.defaultCenter.length&&this.defaultCenter[0]&&this.defaultCenter[1]?_(this.defaultCenter):_(this.pointCenter)},drawPoints(){if(this.pointsList&&this.pointsList.length>0){const t=this.pointsList.map(t=>T(t)).filter(t=>null!==t);po.addMany(t),_(po.graphics.items)}},initPoint(t=[]){this.pointsList=t||[],co&&uo&&(po&&po.removeAll(),this.drawPoints())}},beforeUnmount(){this._clickHandler?.remove(),this._hoverHandler?.remove()}},yo={name:"JKMapList",mixins:[fo],mounted(){this.isLoading=!0,this.map=new On(this.mapId,this.mapParams),this.map.onloadMap.addListener(t=>{this.isLoading=!1,this.loadEdMap(t)})}},mo=yo;var go=gr(mo,ao,lo,!1,null,null,null);const wo=go.exports,bo=[Xr,oo,Fn,wo],vo=t=>{vo.installed||(vo.installed=!0,bo.forEach(e=>{t.component(e.name,e)}))},Eo={install:vo,...bo};"undefined"!==typeof window&&window.Vue&&vo(window.Vue);const Ao=Eo})(),n})());
2
2
  //# sourceMappingURL=augustine-jkmap.umd.min.js.map