var HIFLEET_SDK_KEY = 'YXiHl kCC83AV5hpJnb8AAPv1szT 5 9bDV7qkBgdsPNH4SYKj0A/qqYrhuO5dGn'; /** * hifleet map sdk v5.3.491 * (c) hifleet.com */ (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["hifleet"]=e():t["hifleet"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fae3")}({0:function(t,e){},"00b4":function(t,e,n){"use strict";n("ac1f");var i=n("23e7"),r=n("c65b"),o=n("1626"),a=n("825a"),s=n("577e"),l=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},!0===e.test("abc")&&t}(),c=/./.test;i({target:"RegExp",proto:!0,forced:!l},{test:function(t){var e=a(this),n=s(t),i=e.exec;if(!o(i))return r(c,e,n);var l=r(i,e,n);return null!==l&&(a(l),!0)}})},"00bb":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function n(t,e,n,i){var r,o=this._iv;o?(r=o.slice(0),this._iv=void 0):r=this._prevBlock,i.encryptBlock(r,0);for(var a=0;a1&&"boolean"!==typeof e)throw new h('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/,t))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=j(t),i=n.length>0?n[0]:"",r=C("%"+i+"%",e),o=r.name,a=r.value,s=!1,l=r.alias;l&&(i=l[0],S(n,E([0,1],l)));for(var u=1,d=!0;u=n.length){var y=f(a,p);d=!!y,a=d&&"get"in y&&!("originalValue"in y.get)?y.get:a[p]}else d=A(a,p),a=a[p];d&&!s&&(x[o]=a)}}return a}},"00ee":function(t,e,n){"use strict";var i=n("b622"),r=i("toStringTag"),o={};o[r]="z",t.exports="[object z]"===String(o)},"00fd":function(t,n,i){var r=i("9e69"),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,l=r?r.toStringTag:void 0;function c(t){var n=a.call(t,l),i=t[l];try{t[l]=void 0;var r=!0}catch(e){}var o=s.call(t);return r&&(n?t[l]=i:delete t[l]),o}t.exports=c},"01b4":function(t,e,n){"use strict";var i=function(){this.head=null,this.tail=null};i.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return null===e&&(this.tail=null),t.item}}},t.exports=i},"029b":function(t,e,n){t.exports="https://sdk.hifleet.com/sdkdist/img/china2.5dd94a40.png"},"0366":function(t,e,n){"use strict";var i=n("4625"),r=n("59ed"),o=n("40d5"),a=i(i.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},"03dd":function(t,e,n){var i=n("eac5"),r=n("57a5"),o=Object.prototype,a=o.hasOwnProperty;function s(t){if(!i(t))return r(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}t.exports=s},"04d1":function(t,e,n){"use strict";var i=n("342f"),r=i.match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},"04f8":function(t,e,n){"use strict";var i=n("2d00"),r=n("d039"),o=n("da84"),a=o.String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},"051e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=n("664c");e.default=i.PolyVisualCenter},"057f":function(t,e,n){"use strict";var i=n("c6b6"),r=n("fc6a"),o=n("241c").f,a=n("f36a"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(t){try{return o(t)}catch(e){return a(s)}};t.exports.f=function(t){return s&&"Window"===i(t)?l(t):o(r(t))}},"06cf":function(t,e,n){"use strict";var i=n("83ab"),r=n("c65b"),o=n("d1e7"),a=n("5c6c"),s=n("fc6a"),l=n("a04b"),c=n("1a2d"),h=n("0cfb"),u=Object.getOwnPropertyDescriptor;e.f=i?u:function(t,e){if(t=s(t),e=l(e),h)try{return u(t,e)}catch(n){}if(c(t,e))return a(!r(o.f,t,e),t[e])}},"078d":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));var i="",r=function(){return i},o=function(){return"cn"==r()}},"07c7":function(t,e){function n(){return!1}t.exports=n},"07fa":function(t,e,n){"use strict";var i=n("50c4");t.exports=function(t){return i(t.length)}},"083a":function(t,e,n){"use strict";var i=n("0d51"),r=TypeError;t.exports=function(t,e){if(!delete t[e])throw new r("Cannot delete property "+i(e)+" of "+i(t))}},"087d":function(t,e){function n(t,e){var n=-1,i=e.length,r=t.length;while(++n]*>)/g,h=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,i,u,d){var p=n+t.length,f=i.length,m=h;return void 0!==u&&(u=r(u),m=c),s(d,m,(function(r,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,n);case"'":return l(e,p);case"<":c=u[l(s,1,-1)];break;default:var h=+s;if(0===h)return r;if(h>f){var d=o(h/10);return 0===d?r:d<=f?void 0===i[d-1]?a(s,1):i[d-1]+a(s,1):r}c=i[h-1]}return void 0===c?"":c}))}},"0ccb":function(t,e,n){"use strict";var i=n("e330"),r=n("50c4"),o=n("577e"),a=n("1148"),s=n("1d80"),l=i(a),c=i("".slice),h=Math.ceil,u=function(t){return function(e,n,i){var a,u,d=o(s(e)),p=r(n),f=d.length,m=void 0===i?" ":o(i);return p<=f||""===m?d:(a=p-f,u=l(m,h(a/m.length)),u.length>a&&(u=c(u,0,a)),t?d+u:u+d)}};t.exports={start:u(!1),end:u(!0)}},"0cfb":function(t,e,n){"use strict";var i=n("83ab"),r=n("d039"),o=n("cc12");t.exports=!i&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d24":function(t,e,n){(function(t){var i=n("2b3e"),r=n("07c7"),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,l=s?i.Buffer:void 0,c=l?l.isBuffer:void 0,h=c||r;t.exports=h}).call(this,n("62e4")(t))},"0d25":function(t,e,n){"use strict";t.exports=TypeError},"0d26":function(t,e,n){"use strict";var i=n("e330"),r=Error,o=i("".replace),a=function(t){return String(new r(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);t.exports=function(t,e){if(l&&"string"==typeof t&&!r.prepareStackTrace)while(e--)t=o(t,s,"");return t}},"0d51":function(t,e,n){"use strict";var i=String;t.exports=function(t){try{return i(t)}catch(e){return"Object"}}},"0df6":function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0f7c":function(t,e,n){"use strict";var i=n("688e");t.exports=Function.prototype.bind||i},1:function(t,e){},"100e":function(t,e,n){var i=n("cd9d"),r=n("2286"),o=n("c1c9");function a(t,e){return o(r(t,e,i),t+"")}t.exports=a},"106a":function(t,e,n){"use strict";var i=n("c3bd"),r=n("7a1d"),o=n("e6af"),a=n("5362"),s="/oceanweather/getjsontimelist/token?",l="/oceanweather/pressurevector/token?",c="/oceanweather/windvector/token?",h="/oceanweather/currentvector/token?",u="/oceanweather/getoceanwavepng/token?x={x}&y={y}&z={z}",d="/oceanweather/getjsonweathervalue/token?",p=function(t,e){var n={isoline:l,wind:c,current:h,wave:u,weatherValue:d},p=!0;t.weatherInit({urls:n,isSdk:p});var f=function(e){var n=e||{},i=n.key,r=n.visible,o=void 0!==r&&r,a=n.time,s=n.f;t.weatherChange({key:i,visible:o,time:a,f:s})};return{openWeatherMode:function(){f({visible:!0})},closeWeatherMode:function(){f({visible:!1})},openWaveLayer:function(t){var e=t||{},n=e.starttime,i=e.hours,r=e.time,o=e.f,s=r||n,l=o||i;f({key:a["a"].WEATHER_WAVE,visible:!0,time:s,f:l})},closeWaveLayer:function(){f({key:a["a"].WEATHER_WAVE,visible:!1})},openIsoline:function(t){var e=t||{},n=e.starttime,i=e.hours,r=e.time,o=e.f,s=r||n,l=o||i;f({key:a["a"].WEATHER_ISOLINE,visible:!0,time:s,f:l})},closeIsoline:function(){f({key:a["a"].WEATHER_ISOLINE,visible:!1})},openWind:function(t){var e=t||{},n=e.starttime,i=e.hours,r=e.time,o=e.f,s=r||n,l=o||i;f({key:a["a"].WEATHER_WIND,visible:!0,time:s,f:l})},closeWind:function(){f({key:a["a"].WEATHER_WIND,visible:!1})},openCurrent:function(t){var e=t||{},n=e.hours,i=e.starttime,r=e.time,o=e.f,s=r||i,l=o||n;f({key:a["a"].WEATHER_CURRENT,visible:!0,time:s,f:l})},closeCurrent:function(){f({key:a["a"].WEATHER_CURRENT,visible:!1})},getWeatherTimeList:function(t){var e=t||{},n=e.success,a=e.fail,l=r["i"](),c=Object(o["b"])(s);Object(i["a"])(c,{usertoken:l}).then((function(t){n&&n(t)})).catch((function(t){a&&a(t)}))}}};e["a"]={create:p}},"107c":function(t,e,n){"use strict";var i=n("d039"),r=n("da84"),o=r.RegExp;t.exports=i((function(){var t=o("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},"109c":function(t,e,n){"use strict";n("249d")},"10b7":function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){ /** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=r.create([0,1518500249,1859775393,2400959708,2840853838]),d=r.create([1352829926,1548603684,1836072691,2053994217,0]),p=a.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o,a,p,b,w,x,L,M,k,T,A,E=this._hash.words,S=u.words,P=d.words,O=s.words,D=l.words,I=c.words,R=h.words;x=o=E[0],L=a=E[1],M=p=E[2],k=b=E[3],T=w=E[4];for(n=0;n<80;n+=1)A=o+t[e+O[n]]|0,A+=n<16?f(a,p,b)+S[0]:n<32?m(a,p,b)+S[1]:n<48?g(a,p,b)+S[2]:n<64?y(a,p,b)+S[3]:_(a,p,b)+S[4],A|=0,A=v(A,I[n]),A=A+w|0,o=w,w=b,b=v(p,10),p=a,a=A,A=x+t[e+D[n]]|0,A+=n<16?_(L,M,k)+P[0]:n<32?y(L,M,k)+P[1]:n<48?g(L,M,k)+P[2]:n<64?m(L,M,k)+P[3]:f(L,M,k)+P[4],A|=0,A=v(A,R[n]),A=A+T|0,x=T,T=k,k=v(M,10),M=L,L=A;A=E[1]+p+k|0,E[1]=E[2]+b+T|0,E[2]=E[3]+w+x|0,E[3]=E[4]+o+L|0,E[4]=E[0]+a+M|0,E[0]=A},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var r=this._hash,o=r.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return r},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function f(t,e,n){return t^e^n}function m(t,e,n){return t&e|~t&n}function g(t,e,n){return(t|~e)^n}function y(t,e,n){return t&n|e&~n}function _(t,e,n){return t^(e|~n)}function v(t,e){return t<>>32-e}n.RIPEMD160=o._createHelper(p),n.HmacRIPEMD160=o._createHmacHelper(p)}(Math),t.RIPEMD160}))},"10d6":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"e",(function(){return l})),n.d(e,"m",(function(){return c})),n.d(e,"k",(function(){return h})),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return d})),n.d(e,"h",(function(){return p})),n.d(e,"i",(function(){return f})),n.d(e,"j",(function(){return m})),n.d(e,"l",(function(){return g}));var i=n("b279"),r=function(){return!0},o=function(){return!0},a=function(){Object(i["h"])("_n2620","0");return!0},s=function(){Object(i["h"])("_n2558","0");return!0},l=function(){Object(i["h"])("_n2642","0");return!0},c=function(){var t=Object(i["h"])("_hf_draw_ship_label_zoom","");return t},h=function(){var t=Object(i["h"])("_c229","1");return"0"!=t},u=function(){var t=Object(i["h"])("_n2965","0");return"0"!=t},d=function(){var t=Object(i["h"])("_n2965","0");return"2"==t},p=function(){var t=Object(i["h"])("_n2965d","0");return"0"!=t},f=function(){var t=Object(i["h"])("_n2965old","0");return"0"!=t},m=function(){var t=Object(i["h"])("_n2965version","3");return t||"3"},g=function(){var t=Object(i["h"])("___logger","0");return"0"!=t}},1132:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,i=this._map;t.clamp();for(var r=[],o=0;o>>2]>>>24-o%4*8&255,s=e[o+1>>>2]>>>24-(o+1)%4*8&255,l=e[o+2>>>2]>>>24-(o+2)%4*8&255,c=a<<16|s<<8|l,h=0;h<4&&o+.75*h>>6*(3-h)&63));var u=i.charAt(64);if(u)while(r.length%4)r.push(u);return r.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r>>6-a%4*2,c=s|l;r[o>>>2]|=c<<24-o%4*8,o++}return i.create(r,o)}}(),t.enc.Base64}))},1134:function(t,e,n){var i; /** @license * * Copyright (C) 2012 K. Arthur Endsley (kaendsle@mtu.edu) * Michigan Tech Research Institute (MTRI) * 3600 Green Court, Suite 100, Ann Arbor, MI, 48105 * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */(function(r,o){i=function(){return o()}.call(e,n,e,t),void 0===i||(t.exports=i)})(0,(function(){var t,e,n;return this,n=function(t){return t instanceof n?t:this instanceof n?void(this._wrapped=t):new n(t)},t=function(t,e){return t.substring(0,e.length)===e},e=function(t,e){return t.substring(t.length-e.length)===e},n.delimiter=" ",n.isArray=function(t){return!(!t||t.constructor!==Array)},n.trim=function(n,i){i=i||" ";while(t(n,i))n=n.substring(1);while(e(n,i))n=n.substring(0,n.length-1);return n},n.Wkt=function(t){this.delimiter=n.delimiter||" ",this.wrapVertices=!0,this.regExes={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,spaces:/\s+|\+/,numeric:/-*\d+(\.*\d+)?/,comma:/\s*,\s*/,parenComma:/\)\s*,\s*\(/,coord:/-*\d+\.*\d+ -*\d+\.*\d+/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,ogcTypes:/^(multi)?(point|line|polygon|box)?(string)?$/i,crudeJson:/^{.*"(type|coordinates|geometries|features)":.*}$/},this._stripWhitespaceAndParens=function(t){var e=t.trim(),n=e.replace(/^\(?(.*?)\)?$/,"$1");return n},this.components=void 0,t&&"string"===typeof t?this.read(t):t&&void 0!==typeof t&&this.fromObject(t)},n.Wkt.prototype.isCollection=function(){switch(this.type.slice(0,5)){case"multi":return!0;case"polyg":return!0;default:return!1}},n.Wkt.prototype.sameCoords=function(t,e){return t.x===e.x&&t.y===e.y},n.Wkt.prototype.fromObject=function(t){var e;return e=t.hasOwnProperty("type")&&t.hasOwnProperty("coordinates")?this.fromJson(t):this.deconstruct.call(this,t),this.components=e.components,this.isRectangle=e.isRectangle||!1,this.type=e.type,this},n.Wkt.prototype.toObject=function(t){var e=this.construct[this.type].call(this,t);return"object"!==typeof e||n.isArray(e)||(e.properties=this.properties),e},n.Wkt.prototype.toString=function(t){return this.write()},n.Wkt.prototype.fromJson=function(t){var e,i,r,o,a,s;if(this.type=t.type.toLowerCase(),this.components=[],t.hasOwnProperty("geometry"))return this.fromJson(t.geometry),this.properties=t.properties,this;if(o=t.coordinates,n.isArray(o[0])){for(e in o)if(o.hasOwnProperty(e))if(n.isArray(o[e][0])){for(i in s=[],o[e])if(o[e].hasOwnProperty(i))if(n.isArray(o[e][i][0])){for(r in a=[],o[e][i])o[e][i].hasOwnProperty(r)&&a.push({x:o[e][i][r][0],y:o[e][i][r][1]});s.push(a)}else s.push({x:o[e][i][0],y:o[e][i][1]});this.components.push(s)}else"multipoint"===this.type?this.components.push([{x:o[e][0],y:o[e][1]}]):this.components.push({x:o[e][0],y:o[e][1]})}else this.components.push({x:o[0],y:o[1]});return this},n.Wkt.prototype.toJson=function(){var t,e,i,r,o,a,s;if(t=this.components,e={coordinates:[],type:function(){var t,e,n;for(t in e=this.regExes.ogcTypes.exec(this.type).slice(1),n=[],e)e.hasOwnProperty(t)&&void 0!==e[t]&&n.push(e[t].toLowerCase().slice(0,1).toUpperCase()+e[t].toLowerCase().slice(1));return n}.call(this).join("")},"box"===this.type.toLowerCase()){for(i in e.type="Polygon",e.bbox=[],t)t.hasOwnProperty(i)&&(e.bbox=e.bbox.concat([t[i].x,t[i].y]));return e.coordinates=[[[t[0].x,t[0].y],[t[0].x,t[1].y],[t[1].x,t[1].y],[t[1].x,t[0].y],[t[0].x,t[0].y]]],e}for(i in t)if(t.hasOwnProperty(i))if(n.isArray(t[i])){for(r in s=[],t[i])if(t[i].hasOwnProperty(r))if(n.isArray(t[i][r])){for(o in a=[],t[i][r])t[i][r].hasOwnProperty(o)&&a.push([t[i][r][o].x,t[i][r][o].y]);s.push(a)}else t[i].length>1?s.push([t[i][r].x,t[i][r].y]):s=s.concat([t[i][r].x,t[i][r].y]);e.coordinates.push(s)}else t.length>1?e.coordinates.push([t[i].x,t[i].y]):e.coordinates=e.coordinates.concat([t[i].x,t[i].y]);return e},n.Wkt.prototype.merge=function(t){var e=this.type.slice(0,5);if(this.type!==t.type&&this.type.slice(5,this.type.length)!==t.type)throw TypeError("The input geometry types must agree or the calling this.Wkt.Wkt instance must be a multigeometry of the other");switch(e){case"point":this.components=[this.components.concat(t.components)];break;case"multi":this.components=this.components.concat("multi"===t.type.slice(0,5)?t.components:[t.components]);break;default:this.components=[this.components,t.components];break}return"multi"!==e&&(this.type="multi"+this.type),this},n.Wkt.prototype.read=function(t){var e;if(e=this.regExes.typeStr.exec(t),e)this.type=e[1].toLowerCase(),this.base=e[2],this.ingest[this.type]&&(this.components=this.ingest[this.type].apply(this,[this.base]));else{if(!this.regExes.crudeJson.test(t))throw console.log("Invalid WKT string provided to read()"),{name:"WKTError",message:"Invalid WKT string provided to read()"};if("object"!==typeof JSON||"function"!==typeof JSON.parse)throw console.log("JSON.parse() is not available; cannot parse GeoJSON strings"),{name:"JSONError",message:"JSON.parse() is not available; cannot parse GeoJSON strings"};this.fromJson(JSON.parse(t))}return this},n.Wkt.prototype.write=function(t){var e,n,i;for(t=t||this.components,n=[],n.push(this.type.toUpperCase()+"("),e=0;e0&&n.push(","),!this.extract[this.type])return null;i=this.extract[this.type].apply(this,[t[e]]),this.isCollection()&&"multipoint"!==this.type?n.push("("+i+")"):(n.push(i),e!==t.length-1&&"multipoint"!==this.type&&n.push(","))}return n.push(")"),n.join("")},n.Wkt.prototype.extract={point:function(t){return String(t.x)+this.delimiter+String(t.y)},multipoint:function(t){var e,n,i=[];for(e=0;e2&&(l=l.filter((function(t){return""!=t}))),2===l.length){var c=l[0],h=l[1];o.push({x:parseFloat(c),y:parseFloat(h)})}}r.push(o)}return r},box:function(t){var e,n,i;for(n=this.ingest.multipoint.apply(this,[t]),i=[],e=0;e0;(s>>>=1)&&(e+=e))1&s&&(n+=e);return n}},1276:function(t,e,n){"use strict";var i=n("c65b"),r=n("e330"),o=n("d784"),a=n("825a"),s=n("7234"),l=n("1d80"),c=n("4840"),h=n("8aa5"),u=n("50c4"),d=n("577e"),p=n("dc4a"),f=n("14c3"),m=n("9f7f"),g=n("d039"),y=m.UNSUPPORTED_Y,_=4294967295,v=Math.min,b=r([].push),w=r("".slice),x=!g((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),L="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",(function(t,e,n){var r="0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e;return[function(e,n){var o=l(this),a=s(e)?void 0:p(e,t);return a?i(a,e,o,n):i(r,d(o),e,n)},function(t,i){var o=a(this),s=d(t);if(!L){var l=n(r,o,s,i,r!==e);if(l.done)return l.value}var p=c(o,RegExp),m=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(y?"g":"y"),x=new p(y?"^(?:"+o.source+")":o,g),M=void 0===i?_:i>>>0;if(0===M)return[];if(0===s.length)return null===f(x,s)?[s]:[];var k=0,T=0,A=[];while(T>>24)|4278255360&(t[n]<<24|t[n]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)r[n]^=i[n+4&7];if(e){var o=e.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=l>>>16|4294901760&h,d=h<<16|65535&l;r[0]^=l,r[1]^=u,r[2]^=h,r[3]^=d,r[4]^=l,r[5]^=u,r[6]^=h,r[7]^=d;for(n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),t[e+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0;for(n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,o=i>>>16,l=((r*r>>>17)+r*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=i._createHelper(l)}(),t.Rabbit}))},"13a6":function(t,e,n){"use strict";var i=Math.round;t.exports=function(t){var e=i(t);return e<0?0:e>255?255:255&e}},"13d2":function(t,e,n){"use strict";var i=n("e330"),r=n("d039"),o=n("1626"),a=n("1a2d"),s=n("83ab"),l=n("5e77").CONFIGURABLE,c=n("8925"),h=n("69f3"),u=h.enforce,d=h.get,p=String,f=Object.defineProperty,m=i("".slice),g=i("".replace),y=i([].join),_=s&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),v=String(String).split("String"),b=t.exports=function(t,e,n){"Symbol("===m(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?f(t,"name",{value:e,configurable:!0}):t.name=e),_&&n&&a(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(r){}var i=u(t);return a(i,"source")||(i.source=y(v,"string"==typeof e?e:"")),t};Function.prototype.toString=b((function(){return o(this)&&d(this).source||c(this)}),"toString")},1409:function(t,e,n){"use strict";t.exports=ReferenceError},1448:function(t,e,n){"use strict";var i=n("dfb9"),r=n("b6b7");t.exports=function(t,e){return i(r(t),e)}},"145e":function(t,e,n){"use strict";var i=n("7b0b"),r=n("23cb"),o=n("07fa"),a=n("083a"),s=Math.min;t.exports=[].copyWithin||function(t,e){var n=i(this),l=o(n),c=r(t,l),h=r(e,l),u=arguments.length>2?arguments[2]:void 0,d=s((void 0===u?l:r(u,l))-h,l-c),p=1;h0)h in n?n[c]=n[h]:a(n,c),c+=p,h+=p;return n}},"14c3":function(t,e,n){"use strict";var i=n("c65b"),r=n("825a"),o=n("1626"),a=n("c6b6"),s=n("9263"),l=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var c=i(n,t,e);return null!==c&&r(c),c}if("RegExp"===a(t))return i(s,t,e);throw new l("RegExp#exec called on incompatible receiver")}},"14d9":function(t,e,n){"use strict";var i=n("23e7"),r=n("7b0b"),o=n("07fa"),a=n("3a34"),s=n("3511"),l=n("d039"),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),h=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},u=c||!h();i({target:"Array",proto:!0,arity:1,forced:u},{push:function(t){var e=r(this),n=o(e),i=arguments.length;s(n+i);for(var l=0;l1?arguments[1]:void 0)}},"17e1":function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){if("function"==typeof ArrayBuffer){var e=t,n=e.lib,i=n.WordArray,r=i.init,o=i.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],i=0;i>>2]|=t[i]<<24-i%4*8;r.call(this,n,e)}else r.apply(this,arguments)};o.prototype=i}}(),t.lib.WordArray}))},"182d":function(t,e,n){"use strict";var i=n("f8cd"),r=RangeError;t.exports=function(t,e){var n=i(t);if(n%e)throw new r("Wrong offset");return n}},1860:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}));var i=3,r=7},"191b":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("94f8"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.algo,o=r.SHA256,a=r.SHA224=o.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=o._doFinalize.call(this);return t.sigBytes-=4,t}});e.SHA224=o._createHelper(a),e.HmacSHA224=o._createHmacHelper(a)}(),t.SHA224}))},"19aa":function(t,e,n){"use strict";var i=n("3a9b"),r=TypeError;t.exports=function(t,e){if(i(e,t))return t;throw new r("Incorrect invocation")}},"1a2d":function(t,e,n){"use strict";var i=n("e330"),r=n("7b0b"),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},"1a8c":function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},"1be4":function(t,e,n){"use strict";var i=n("d066");t.exports=i("document","documentElement")},"1c3c":function(t,e,n){var i=n("9e69"),r=n("2474"),o=n("9638"),a=n("a2be"),s=n("edfa"),l=n("ac41"),c=1,h=2,u="[object Boolean]",d="[object Date]",p="[object Error]",f="[object Map]",m="[object Number]",g="[object RegExp]",y="[object Set]",_="[object String]",v="[object Symbol]",b="[object ArrayBuffer]",w="[object DataView]",x=i?i.prototype:void 0,L=x?x.valueOf:void 0;function M(t,e,n,i,x,M,k){switch(n){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case b:return!(t.byteLength!=e.byteLength||!M(new r(t),new r(e)));case u:case d:case m:return o(+t,+e);case p:return t.name==e.name&&t.message==e.message;case g:case _:return t==e+"";case f:var T=s;case y:var A=i&c;if(T||(T=l),t.size!=e.size&&!A)return!1;var E=k.get(t);if(E)return E==e;i|=h,k.set(t,e);var S=a(T(t),T(e),i,x,M,k);return k["delete"](t),S;case v:if(L)return L.call(t)==L.call(e)}return!1}t.exports=M},"1c53":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAABACAYAAABP97SyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJ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4X/V+AAQDGDEatapBaKwAAAABJRU5ErkJggg=="},"1c7e":function(t,e,n){"use strict";var i=n("b622"),r=i("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(l){return!1}var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(l){}return n}},"1cdc":function(t,e,n){"use strict";var i=n("342f");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},"1cec":function(t,e,n){var i=n("0b07"),r=n("2b3e"),o=i(r,"Promise");t.exports=o},"1d02":function(t,e,n){"use strict";var i=n("ebb5"),r=n("a258").findLastIndex,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findLastIndex",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i=51||!i((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1efc":function(t,e){function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},"1fc8":function(t,e,n){var i=n("4245");function r(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}t.exports=r},"20d6":function(t,e){!function(t,e,n){function i(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}L.drawVersion="1.0.4",L.Draw={},L.drawLocal={draw:{toolbar:{actions:{title:"Cancel drawing",text:"Cancel"},finish:{title:"Finish drawing",text:"Finish"},undo:{title:"Delete last point drawn",text:"Delete last point"},buttons:{polyline:"Draw a polyline",polygon:"Draw a polygon",rectangle:"Draw a rectangle",circle:"Draw a circle",marker:"Draw a marker",circlemarker:"Draw a circlemarker"}},handlers:{circle:{tooltip:{start:"Click and drag to draw circle."},radius:"Radius"},circlemarker:{tooltip:{start:"Click map to place circle marker."}},marker:{tooltip:{start:"Click map to place marker."}},polygon:{tooltip:{start:"Click to start drawing shape.",cont:"Click to continue drawing shape.",end:"Click first point to close this shape."}},polyline:{error:"Error: shape edges cannot cross!",tooltip:{start:"Click to start drawing line.",cont:"Click to continue drawing line.",end:"Click last point to finish line."}},rectangle:{tooltip:{start:"Click and drag to draw rectangle."}},simpleshape:{tooltip:{end:"Release mouse to finish drawing."}}}},edit:{toolbar:{actions:{save:{title:"Save changes",text:"Save"},cancel:{title:"Cancel editing, discards all changes",text:"Cancel"},clearAll:{title:"Clear all layers",text:"Clear All"}},buttons:{edit:"Edit layers",editDisabled:"No layers to edit",remove:"Delete layers",removeDisabled:"No layers to delete"}},handlers:{edit:{tooltip:{text:"Drag handles or markers to edit features.",subtext:"Click cancel to undo changes."}},remove:{tooltip:{text:"Click on a feature to remove."}}}}},L.Draw.Event={},L.Draw.Event.CREATED="draw:created",L.Draw.Event.EDITED="draw:edited",L.Draw.Event.DELETED="draw:deleted",L.Draw.Event.DRAWSTART="draw:drawstart",L.Draw.Event.DRAWSTOP="draw:drawstop",L.Draw.Event.DRAWVERTEX="draw:drawvertex",L.Draw.Event.EDITSTART="draw:editstart",L.Draw.Event.EDITMOVE="draw:editmove",L.Draw.Event.EDITRESIZE="draw:editresize",L.Draw.Event.EDITVERTEX="draw:editvertex",L.Draw.Event.EDITSTOP="draw:editstop",L.Draw.Event.DELETESTART="draw:deletestart",L.Draw.Event.DELETESTOP="draw:deletestop",L.Draw.Event.TOOLBAROPENED="draw:toolbaropened",L.Draw.Event.TOOLBARCLOSED="draw:toolbarclosed",L.Draw.Event.MARKERCONTEXT="draw:markercontext",L.Draw=L.Draw||{},L.Draw.Feature=L.Handler.extend({initialize:function(t,e){this._map=t,this._container=t._container,this._overlayPane=t._panes.overlayPane,this._popupPane=t._panes.popupPane,e&&e.shapeOptions&&(e.shapeOptions=L.Util.extend({},this.options.shapeOptions,e.shapeOptions)),L.setOptions(this,e);var n=L.version.split(".");1===parseInt(n[0],10)&&parseInt(n[1],10)>=2?L.Draw.Feature.include(L.Evented.prototype):L.Draw.Feature.include(L.Mixin.Events)},enable:function(){this._enabled||(L.Handler.prototype.enable.call(this),this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DRAWSTART,{layerType:this.type}))},disable:function(){this._enabled&&(L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DRAWSTOP,{layerType:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var t=this._map;t&&(L.DomUtil.disableTextSelection(),t.getContainer().focus(),this._tooltip=new L.Draw.Tooltip(this._map),L.DomEvent.on(this._container,"keyup",this._cancelDrawing,this))},removeHooks:function(){this._map&&(L.DomUtil.enableTextSelection(),this._tooltip.dispose(),this._tooltip=null,L.DomEvent.off(this._container,"keyup",this._cancelDrawing,this))},setOptions:function(t){L.setOptions(this,t)},_fireCreatedEvent:function(t){this._map.fire(L.Draw.Event.CREATED,{layer:t,layerType:this.type})},_cancelDrawing:function(t){27===t.keyCode&&(this._map.fire("draw:canceled",{layerType:this.type}),this.disable())}}),L.Draw.Polyline=L.Draw.Feature.extend({statics:{TYPE:"polyline"},Poly:L.Polyline,options:{allowIntersection:!0,repeatMode:!1,drawError:{color:"#b00b00",timeout:2500},icon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),guidelineDistance:20,maxGuideLineLength:4e3,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!1,clickable:!0},metric:!0,feet:!0,nautic:!1,showLength:!0,zIndexOffset:2e3,factor:1,maxPoints:0},initialize:function(t,e){L.Browser.touch&&(this.options.icon=this.options.touchIcon),this.options.drawError.message=L.drawLocal.draw.handlers.polyline.error,e&&e.drawError&&(e.drawError=L.Util.extend({},this.options.drawError,e.drawError)),this.type=L.Draw.Polyline.TYPE,L.Draw.Feature.prototype.initialize.call(this,t,e)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._markers=[],this._markerGroup=new L.LayerGroup,this._map.addLayer(this._markerGroup),this._poly=new L.Polyline([],this.options.shapeOptions),this._tooltip.updateContent(this._getTooltipText()),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this).addTo(this._map),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("touchstart",this._onTouch,this).on("zoomend",this._onZoomEnd,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._cleanUpShape(),this._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers,this._map.removeLayer(this._poly),delete this._poly,this._mouseMarker.off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._clearGuides(),this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("touchstart",this._onTouch,this).off("click",this._onTouch,this)},deleteLastVertex:function(){if(!(this._markers.length<=1)){var t=this._markers.pop(),e=this._poly,n=e.getLatLngs(),i=n.splice(-1,1)[0];this._poly.setLatLngs(n),this._markerGroup.removeLayer(t),e.getLatLngs().length<2&&this._map.removeLayer(e),this._vertexChanged(i,!1)}},addVertex:function(t){this._markers.length>=2&&!this.options.allowIntersection&&this._poly.newLatLngIntersects(t)?this._showErrorTooltip():(this._errorShown&&this._hideErrorTooltip(),this._markers.push(this._createMarker(t)),this._poly.addLatLng(t),2===this._poly.getLatLngs().length&&this._map.addLayer(this._poly),this._vertexChanged(t,!0))},completeShape:function(){this._markers.length<=1||!this._shapeIsValid()||(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_finishShape:function(){var t=this._poly._defaultShape?this._poly._defaultShape():this._poly.getLatLngs(),e=this._poly.newLatLngIntersects(t[t.length-1]);!this.options.allowIntersection&&e||!this._shapeIsValid()?this._showErrorTooltip():(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_shapeIsValid:function(){return!0},_onZoomEnd:function(){null!==this._markers&&this._updateGuide()},_onMouseMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent),n=this._map.layerPointToLatLng(e);this._currentLatLng=n,this._updateTooltip(n),this._updateGuide(e),this._mouseMarker.setLatLng(n),L.DomEvent.preventDefault(t.originalEvent)},_vertexChanged:function(t,e){this._map.fire(L.Draw.Event.DRAWVERTEX,{layers:this._markerGroup}),this._updateFinishHandler(),this._updateRunningMeasure(t,e),this._clearGuides(),this._updateTooltip()},_onMouseDown:function(t){if(!this._clickHandled&&!this._touchHandled&&!this._disableMarkers){this._onMouseMove(t),this._clickHandled=!0,this._disableNewMarkers();var e=t.originalEvent,n=e.clientX,i=e.clientY;this._startPoint.call(this,n,i)}},_startPoint:function(t,e){this._mouseDownOrigin=L.point(t,e)},_onMouseUp:function(t){var e=t.originalEvent,n=e.clientX,i=e.clientY;this._endPoint.call(this,n,i,t),this._clickHandled=null},_endPoint:function(e,n,i){if(this._mouseDownOrigin){var r=L.point(e,n).distanceTo(this._mouseDownOrigin),o=this._calculateFinishDistance(i.latlng);this.options.maxPoints>1&&this.options.maxPoints==this._markers.length+1?(this.addVertex(i.latlng),this._finishShape()):o<10&&L.Browser.touch?this._finishShape():Math.abs(r)<9*(t.devicePixelRatio||1)&&this.addVertex(i.latlng),this._enableNewMarkers()}this._mouseDownOrigin=null},_onTouch:function(t){var e,n,i=t.originalEvent;!i.touches||!i.touches[0]||this._clickHandled||this._touchHandled||this._disableMarkers||(e=i.touches[0].clientX,n=i.touches[0].clientY,this._disableNewMarkers(),this._touchHandled=!0,this._startPoint.call(this,e,n),this._endPoint.call(this,e,n,t),this._touchHandled=null),this._clickHandled=null},_onMouseOut:function(){this._tooltip&&this._tooltip._onMouseOut.call(this._tooltip)},_calculateFinishDistance:function(t){var e;if(this._markers.length>0){var n;if(this.type===L.Draw.Polyline.TYPE)n=this._markers[this._markers.length-1];else{if(this.type!==L.Draw.Polygon.TYPE)return 1/0;n=this._markers[0]}var i=this._map.latLngToContainerPoint(n.getLatLng()),r=new L.Marker(t,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset}),o=this._map.latLngToContainerPoint(r.getLatLng());e=i.distanceTo(o)}else e=1/0;return e},_updateFinishHandler:function(){var t=this._markers.length;t>1&&this._markers[t-1].on("click",this._finishShape,this),t>2&&this._markers[t-2].off("click",this._finishShape,this)},_createMarker:function(t){var e=new L.Marker(t,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset});return this._markerGroup.addLayer(e),e},_updateGuide:function(t){var e=this._markers?this._markers.length:0;e>0&&(t=t||this._map.latLngToLayerPoint(this._currentLatLng),this._clearGuides(),this._drawGuide(this._map.latLngToLayerPoint(this._markers[e-1].getLatLng()),t))},_updateTooltip:function(t){var e=this._getTooltipText();t&&this._tooltip.updatePosition(t),this._errorShown||this._tooltip.updateContent(e)},_drawGuide:function(t,e){var n,i,r,o=Math.floor(Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))),a=this.options.guidelineDistance,s=this.options.maxGuideLineLength,l=o>s?o-s:a;for(this._guidesContainer||(this._guidesContainer=L.DomUtil.create("div","leaflet-draw-guides",this._overlayPane));l1&&this._markers[this._markers.length-1].off("click",this._finishShape,this)},_fireCreatedEvent:function(){var t=new this.Poly(this._poly.getLatLngs(),this.options.shapeOptions);L.Draw.Feature.prototype._fireCreatedEvent.call(this,t)}}),L.Draw.Polygon=L.Draw.Polyline.extend({statics:{TYPE:"polygon"},Poly:L.Polygon,options:{showArea:!1,showLength:!1,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},metric:!0,feet:!0,nautic:!1,precision:{}},initialize:function(t,e){L.Draw.Polyline.prototype.initialize.call(this,t,e),this.type=L.Draw.Polygon.TYPE},_updateFinishHandler:function(){var t=this._markers.length;1===t&&this._markers[0].on("click",this._finishShape,this),t>2&&(this._markers[t-1].on("dblclick",this._finishShape,this),t>3&&this._markers[t-2].off("dblclick",this._finishShape,this))},_getTooltipText:function(){var t,e;return 0===this._markers.length?t=L.drawLocal.draw.handlers.polygon.tooltip.start:this._markers.length<3?(t=L.drawLocal.draw.handlers.polygon.tooltip.cont,e=this._getMeasurementString()):(t=L.drawLocal.draw.handlers.polygon.tooltip.end,e=this._getMeasurementString()),{text:t,subtext:e}},_getMeasurementString:function(){var t=this._area,e="";return t||this.options.showLength?(this.options.showLength&&(e=L.Draw.Polyline.prototype._getMeasurementString.call(this)),t&&(e+="
"+L.GeometryUtil.readableArea(t,this.options.metric,this.options.precision)),e):null},_shapeIsValid:function(){return this._markers.length>=3},_vertexChanged:function(t,e){var n;!this.options.allowIntersection&&this.options.showArea&&(n=this._poly.getLatLngs(),this._area=L.GeometryUtil.geodesicArea(n)),L.Draw.Polyline.prototype._vertexChanged.call(this,t,e)},_cleanUpShape:function(){var t=this._markers.length;t>0&&(this._markers[0].off("click",this._finishShape,this),t>2&&this._markers[t-1].off("dblclick",this._finishShape,this))}}),L.SimpleShape={},L.Draw.SimpleShape=L.Draw.Feature.extend({options:{repeatMode:!1},initialize:function(t,e){this._endLabelText=L.drawLocal.draw.handlers.simpleshape.tooltip.end,L.Draw.Feature.prototype.initialize.call(this,t,e)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._mapDraggable=this._map.dragging.enabled(),this._mapDraggable&&this._map.dragging.disable(),this._container.style.cursor="crosshair",this._tooltip.updateContent({text:this._initialLabelText}),this._map.on("mousedown",this._onMouseDown,this).on("mousemove",this._onMouseMove,this).on("touchstart",this._onMouseDown,this).on("touchmove",this._onMouseMove,this),e.addEventListener("touchstart",L.DomEvent.preventDefault,{passive:!1}))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._mapDraggable&&this._map.dragging.enable(),this._container.style.cursor="",this._map.off("mousedown",this._onMouseDown,this).off("mousemove",this._onMouseMove,this).off("touchstart",this._onMouseDown,this).off("touchmove",this._onMouseMove,this),L.DomEvent.off(e,"mouseup",this._onMouseUp,this),L.DomEvent.off(e,"touchend",this._onMouseUp,this),e.removeEventListener("touchstart",L.DomEvent.preventDefault),this._shape&&(this._map.removeLayer(this._shape),delete this._shape)),this._isDrawing=!1},_getTooltipText:function(){return{text:this._endLabelText}},_onMouseDown:function(t){this._isDrawing=!0,this._startLatLng=t.latlng,L.DomEvent.on(e,"mouseup",this._onMouseUp,this).on(e,"touchend",this._onMouseUp,this).preventDefault(t.originalEvent)},_onMouseMove:function(t){var e=t.latlng;this._tooltip.updatePosition(e),this._isDrawing&&(this._tooltip.updateContent(this._getTooltipText()),this._drawShape(e))},_onMouseUp:function(){this._shape&&this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()}}),L.Draw.Rectangle=L.Draw.SimpleShape.extend({statics:{TYPE:"rectangle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showArea:!0,metric:!0},initialize:function(t,e){this.type=L.Draw.Rectangle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.rectangle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,t,e)},disable:function(){this._enabled&&(this._isCurrentlyTwoClickDrawing=!1,L.Draw.SimpleShape.prototype.disable.call(this))},_onMouseUp:function(t){this._shape||this._isCurrentlyTwoClickDrawing?this._isCurrentlyTwoClickDrawing&&!i(t.target,"leaflet-pane")||L.Draw.SimpleShape.prototype._onMouseUp.call(this):this._isCurrentlyTwoClickDrawing=!0},_drawShape:function(t){this._shape?this._shape.setBounds(new L.LatLngBounds(this._startLatLng,t)):(this._shape=new L.Rectangle(new L.LatLngBounds(this._startLatLng,t),this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var t=new L.Rectangle(this._shape.getBounds(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,t)},_getTooltipText:function(){var t,e,n,i=L.Draw.SimpleShape.prototype._getTooltipText.call(this),r=this._shape,o=this.options.showArea;return r&&(t=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),e=L.GeometryUtil.geodesicArea(t),n=o?L.GeometryUtil.readableArea(e,this.options.metric):""),{text:i.text,subtext:n}}}),L.Draw.Marker=L.Draw.Feature.extend({statics:{TYPE:"marker"},options:{icon:new L.Icon.Default,repeatMode:!1,zIndexOffset:2e3},initialize:function(t,e){this.type=L.Draw.Marker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.marker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,t,e)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._tooltip.updateContent({text:this._initialLabelText}),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("click",this._onClick,this).addTo(this._map),this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onTouch,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._map.off("click",this._onClick,this).off("click",this._onTouch,this),this._marker&&(this._marker.off("click",this._onClick,this),this._map.removeLayer(this._marker),delete this._marker),this._mouseMarker.off("click",this._onClick,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._map.off("mousemove",this._onMouseMove,this))},_onMouseMove:function(t){var e=t.latlng;this._tooltip.updatePosition(e),this._mouseMarker.setLatLng(e),this._marker?(e=this._mouseMarker.getLatLng(),this._marker.setLatLng(e)):(this._marker=this._createMarker(e),this._marker.on("click",this._onClick,this),this._map.on("click",this._onClick,this).addLayer(this._marker))},_createMarker:function(t){return new L.Marker(t,{icon:this.options.icon,zIndexOffset:this.options.zIndexOffset})},_onClick:function(){this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()},_onTouch:function(t){this._onMouseMove(t),this._onClick()},_fireCreatedEvent:function(){var t=new L.Marker.Touch(this._marker.getLatLng(),{icon:this.options.icon});L.Draw.Feature.prototype._fireCreatedEvent.call(this,t)}}),L.Draw.CircleMarker=L.Draw.Marker.extend({statics:{TYPE:"circlemarker"},options:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0,zIndexOffset:2e3},initialize:function(t,e){this.type=L.Draw.CircleMarker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circlemarker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,t,e)},_fireCreatedEvent:function(){var t=new L.CircleMarker(this._marker.getLatLng(),this.options);L.Draw.Feature.prototype._fireCreatedEvent.call(this,t)},_createMarker:function(t){return new L.CircleMarker(t,this.options)}}),L.Draw.Circle=L.Draw.SimpleShape.extend({statics:{TYPE:"circle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showRadius:!0,metric:!0,feet:!0,nautic:!1},initialize:function(t,e){this.type=L.Draw.Circle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,t,e)},_drawShape:function(t){if(L.GeometryUtil.isVersion07x())var e=this._startLatLng.distanceTo(t);else e=this._map.distance(this._startLatLng,t);this._shape?this._shape.setRadius(e):(this._shape=new L.Circle(this._startLatLng,e,this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var t=new L.Circle(this._startLatLng,this._shape.getRadius(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,t)},_onMouseMove:function(t){var e,n=t.latlng,i=this.options.showRadius,r=this.options.metric;if(this._tooltip.updatePosition(n),this._isDrawing){this._drawShape(n),e=this._shape.getRadius().toFixed(1);var o="";i&&(o=L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(e,r,this.options.feet,this.options.nautic)),this._tooltip.updateContent({text:this._endLabelText,subtext:o})}}}),L.Edit=L.Edit||{},L.Edit.Marker=L.Handler.extend({initialize:function(t,e){this._marker=t,L.setOptions(this,e)},addHooks:function(){var t=this._marker;t.dragging.enable(),t.on("dragend",this._onDragEnd,t),this._toggleMarkerHighlight()},removeHooks:function(){var t=this._marker;t.dragging.disable(),t.off("dragend",this._onDragEnd,t),this._toggleMarkerHighlight()},_onDragEnd:function(t){var e=t.target;e.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:e})},_toggleMarkerHighlight:function(){var t=this._marker._icon;t&&(t.style.display="none",L.DomUtil.hasClass(t,"leaflet-edit-marker-selected")?(L.DomUtil.removeClass(t,"leaflet-edit-marker-selected"),this._offsetMarker(t,-4)):(L.DomUtil.addClass(t,"leaflet-edit-marker-selected"),this._offsetMarker(t,4)),t.style.display="")},_offsetMarker:function(t,e){var n=parseInt(t.style.marginTop,10)-e,i=parseInt(t.style.marginLeft,10)-e;t.style.marginTop=n+"px",t.style.marginLeft=i+"px"}}),L.Marker.addInitHook((function(){L.Edit.Marker&&(this.editing=new L.Edit.Marker(this),this.options.editable&&this.editing.enable())})),L.Edit=L.Edit||{},L.Edit.Poly=L.Handler.extend({initialize:function(t){this.latlngs=[t._latlngs],t._holes&&(this.latlngs=this.latlngs.concat(t._holes)),this._poly=t,this._poly.on("revert-edited",this._updateLatLngs,this)},_defaultShape:function(){return L.Polyline._flat?L.Polyline._flat(this._poly._latlngs)?this._poly._latlngs:this._poly._latlngs[0]:this._poly._latlngs},_eachVertexHandler:function(t){for(var e=0;et&&(n._index+=e)}))},_createMiddleMarker:function(t,e){var n,i,r,o=this._getMiddleLatLng(t,e),a=this._createMarker(o);a.setOpacity(.6),t._middleRight=e._middleLeft=a,i=function(){a.off("touchmove",i,this);var r=e._index;a._index=r,a.off("click",n,this).on("click",this._onMarkerClick,this),o.lat=a.getLatLng().lat,o.lng=a.getLatLng().lng,this._spliceLatLngs(r,0,o),this._markers.splice(r,0,a),a.setOpacity(1),this._updateIndexes(r,1),e._index++,this._updatePrevNext(t,a),this._updatePrevNext(a,e),this._poly.fire("editstart")},r=function(){a.off("dragstart",i,this),a.off("dragend",r,this),a.off("touchmove",i,this),this._createMiddleMarker(t,a),this._createMiddleMarker(a,e)},n=function(){i.call(this),r.call(this),this._fireEdit()},a.on("click",n,this).on("dragstart",i,this).on("dragend",r,this).on("touchmove",i,this),this._markerGroup.addLayer(a)},_updatePrevNext:function(t,e){t&&(t._next=e),e&&(e._prev=t)},_getMiddleLatLng:function(t,e){var n=this._poly._map,i=n.project(t.getLatLng()),r=n.project(e.getLatLng());return n.unproject(i._add(r)._divideBy(2))}}),L.Polyline.addInitHook((function(){this.editing||(L.Edit.Poly&&(this.editing=new L.Edit.Poly(this),this.options.editable&&this.editing.enable()),this.on("add",(function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()})),this.on("remove",(function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()})))})),L.Edit=L.Edit||{},L.Edit.SimpleShape=L.Handler.extend({options:{moveIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move"}),resizeIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize"}),touchMoveIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move leaflet-touch-icon"}),touchResizeIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize leaflet-touch-icon"})},initialize:function(t,e){L.Browser.touch&&(this.options.moveIcon=this.options.touchMoveIcon,this.options.resizeIcon=this.options.touchResizeIcon),this._shape=t,L.Util.setOptions(this,e)},addHooks:function(){var t=this._shape;this._shape._map&&(this._map=this._shape._map,t.setStyle(t.options.editing),t._map&&(this._map=t._map,this._markerGroup||this._initMarkers(),this._map.addLayer(this._markerGroup)))},removeHooks:function(){var t=this._shape;if(t.setStyle(t.options.original),t._map){this._unbindMarker(this._moveMarker);for(var e=0,n=this._resizeMarkers.length;e"+L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(radius,!0,this.options.feet,this.options.nautic)}),this._shape.setRadius(radius),this._map.fire(L.Draw.Event.EDITRESIZE,{layer:this._shape})}}),L.Circle.addInitHook((function(){L.Edit.Circle&&(this.editing=new L.Edit.Circle(this),this.options.editable&&this.editing.enable())})),L.Map.mergeOptions({touchExtend:!0}),L.Map.TouchExtend=L.Handler.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane},addHooks:function(){L.DomEvent.on(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.on(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.on(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.on(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.on(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.on(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.on(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.on(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.on(this._container,"touchleave",this._onTouchLeave,this))},removeHooks:function(){L.DomEvent.off(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.off(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.off(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.off(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.off(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.off(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.off(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.off(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.off(this._container,"touchleave",this._onTouchLeave,this))},_touchEvent:function(t,e){var n={};if(void 0!==t.touches){if(!t.touches.length)return;n=t.touches[0]}else{if("touch"!==t.pointerType)return;if(n=t,!this._filterClick(t))return}var i=this._map.mouseEventToContainerPoint(n),r=this._map.mouseEventToLayerPoint(n),o=this._map.layerPointToLatLng(r);this._map.fire(e,{latlng:o,layerPoint:r,containerPoint:i,pageX:n.pageX,pageY:n.pageY,originalEvent:t})},_filterClick:function(t){var e=t.timeStamp||t.originalEvent.timeStamp,n=L.DomEvent._lastClick&&e-L.DomEvent._lastClick;return n&&n>100&&n<500||t.target._simulatedClick&&!t._simulated?(L.DomEvent.stop(t),!1):(L.DomEvent._lastClick=e,!0)},_onTouchStart:function(t){this._map._loaded&&this._touchEvent(t,"touchstart")},_onTouchEnd:function(t){this._map._loaded&&this._touchEvent(t,"touchend")},_onTouchCancel:function(t){if(this._map._loaded){var e="touchcancel";this._detectIE()&&(e="pointercancel"),this._touchEvent(t,e)}},_onTouchLeave:function(t){this._map._loaded&&this._touchEvent(t,"touchleave")},_onTouchMove:function(t){this._map._loaded&&this._touchEvent(t,"touchmove")},_detectIE:function(){var e=t.navigator.userAgent,n=e.indexOf("MSIE ");if(n>0)return parseInt(e.substring(n+5,e.indexOf(".",n)),10);if(e.indexOf("Trident/")>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var r=e.indexOf("Edge/");return r>0&&parseInt(e.substring(r+5,e.indexOf(".",r)),10)}}),L.Map.addInitHook("addHandler","touchExtend",L.Map.TouchExtend),L.Marker.Touch=L.Marker.extend({_initInteraction:function(){return this.addInteractiveTarget?L.Marker.prototype._initInteraction.apply(this):this._initInteractionLegacy()},_initInteractionLegacy:function(){if(this.options.clickable){var t=this._icon,e=["dblclick","mousedown","mouseover","mouseout","contextmenu","touchstart","touchend","touchmove"];this._detectIE?e.concat(["MSPointerDown","MSPointerUp","MSPointerMove","MSPointerCancel"]):e.concat(["touchcancel"]),L.DomUtil.addClass(t,"leaflet-clickable"),L.DomEvent.on(t,"click",this._onMouseClick,this),L.DomEvent.on(t,"keypress",this._onKeyPress,this);for(var n=0;n0)return parseInt(e.substring(n+5,e.indexOf(".",n)),10);if(e.indexOf("Trident/")>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var r=e.indexOf("Edge/");return r>0&&parseInt(e.substring(r+5,e.indexOf(".",r)),10)}}),L.LatLngUtil={cloneLatLngs:function(t){for(var e=[],n=0,i=t.length;n2){for(var a=0;a1&&(n=n+a+s[1])}return n},readableArea:function(e,n,i){var r,o;i=L.Util.extend({},t,i);return n?(o=["ha","m"],type=typeof n,"string"===type?o=[n]:"boolean"!==type&&(o=n),r=e>=1e6&&-1!==o.indexOf("km")?L.GeometryUtil.formattedNumber(1e-6*e,i.km)+" km²":e>=1e4&&-1!==o.indexOf("ha")?L.GeometryUtil.formattedNumber(1e-4*e,i.ha)+" ha":L.GeometryUtil.formattedNumber(e,i.m)+" m²"):(e/=.836127,r=e>=3097600?L.GeometryUtil.formattedNumber(e/3097600,i.mi)+" mi²":e>=4840?L.GeometryUtil.formattedNumber(e/4840,i.ac)+" acres":L.GeometryUtil.formattedNumber(e,i.yd)+" yd²"),r},readableDistance:function(e,n,i,r,o){var a;o=L.Util.extend({},t,o);switch(n?"string"==typeof n?n:"metric":i?"feet":r?"nauticalMile":"yards"){case"metric":a=e>1e3?L.GeometryUtil.formattedNumber(e/1e3,o.km)+" km":L.GeometryUtil.formattedNumber(e,o.m)+" m";break;case"feet":e*=3.28083,a=L.GeometryUtil.formattedNumber(e,o.ft)+" ft";break;case"nauticalMile":e*=.53996,a=L.GeometryUtil.formattedNumber(e/1e3,o.nm)+" nm";break;case"yards":default:e*=1.09361,a=e>1760?L.GeometryUtil.formattedNumber(e/1760,o.mi)+" miles":L.GeometryUtil.formattedNumber(e,o.yd)+" yd"}return a},isVersion07x:function(){var t=L.version.split(".");return 0===parseInt(t[0],10)&&7===parseInt(t[1],10)}})}(),L.Util.extend(L.LineUtil,{segmentsIntersect:function(t,e,n,i){return this._checkCounterclockwise(t,n,i)!==this._checkCounterclockwise(e,n,i)&&this._checkCounterclockwise(t,e,n)!==this._checkCounterclockwise(t,e,i)},_checkCounterclockwise:function(t,e,n){return(n.y-t.y)*(e.x-t.x)>(e.y-t.y)*(n.x-t.x)}}),L.Polyline.include({intersects:function(){var t,e,n,i=this._getProjectedPoints(),r=i?i.length:0;if(this._tooFewPointsForIntersection())return!1;for(t=r-1;t>=3;t--)if(e=i[t-1],n=i[t],this._lineSegmentsIntersectsRange(e,n,t-2))return!0;return!1},newLatLngIntersects:function(t,e){return!!this._map&&this.newPointIntersects(this._map.latLngToLayerPoint(t),e)},newPointIntersects:function(t,e){var n=this._getProjectedPoints(),i=n?n.length:0,r=n?n[i-1]:null,o=i-2;return!this._tooFewPointsForIntersection(1)&&this._lineSegmentsIntersectsRange(r,t,o,e?1:0)},_tooFewPointsForIntersection:function(t){var e=this._getProjectedPoints(),n=e?e.length:0;return n+=t||0,!e||n<=3},_lineSegmentsIntersectsRange:function(t,e,n,i){var r,o,a=this._getProjectedPoints();i=i||0;for(var s=n;s>i;s--)if(r=a[s-1],o=a[s],L.LineUtil.segmentsIntersect(t,e,r,o))return!0;return!1},_getProjectedPoints:function(){if(!this._defaultShape)return this._originalPoints;for(var t=[],e=this._defaultShape(),n=0;n=2?L.Toolbar.include(L.Evented.prototype):L.Toolbar.include(L.Mixin.Events)},enabled:function(){return null!==this._activeMode},disable:function(){this.enabled()&&this._activeMode.handler.disable()},addToolbar:function(t){var e,n=L.DomUtil.create("div","leaflet-draw-section"),i=0,r=this._toolbarClass||"",o=this.getModeHandlers(t);for(this._toolbarContainer=L.DomUtil.create("div","leaflet-draw-toolbar leaflet-bar"),this._map=t,e=0;e0&&this._singleLineLabel&&(L.DomUtil.removeClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!1):(L.DomUtil.addClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!0),this._container.innerHTML=(t.subtext.length>0?''+t.subtext+"
":"")+""+t.text+"",t.text||t.subtext?(this._visible=!0,this._container.style.visibility="inherit"):(this._visible=!1,this._container.style.visibility="hidden"),this):this},updatePosition:function(t){var e=this._map.latLngToLayerPoint(t),n=this._container;return this._container&&(this._visible&&(n.style.visibility="inherit"),L.DomUtil.setPosition(n,e)),this},showAsError:function(){return this._container&&L.DomUtil.addClass(this._container,"leaflet-error-draw-tooltip"),this},removeError:function(){return this._container&&L.DomUtil.removeClass(this._container,"leaflet-error-draw-tooltip"),this},_onMouseOut:function(){this._container&&(this._container.style.visibility="hidden")}}),L.DrawToolbar=L.Toolbar.extend({statics:{TYPE:"draw"},options:{polyline:{},polygon:{},rectangle:{},circle:{},marker:{},circlemarker:{}},initialize:function(t){for(var e in this.options)this.options.hasOwnProperty(e)&&t[e]&&(t[e]=L.extend({},this.options[e],t[e]));this._toolbarClass="leaflet-draw-draw",L.Toolbar.prototype.initialize.call(this,t)},getModeHandlers:function(t){return[{enabled:this.options.polyline,handler:new L.Draw.Polyline(t,this.options.polyline),title:L.drawLocal.draw.toolbar.buttons.polyline},{enabled:this.options.polygon,handler:new L.Draw.Polygon(t,this.options.polygon),title:L.drawLocal.draw.toolbar.buttons.polygon},{enabled:this.options.rectangle,handler:new L.Draw.Rectangle(t,this.options.rectangle),title:L.drawLocal.draw.toolbar.buttons.rectangle},{enabled:this.options.circle,handler:new L.Draw.Circle(t,this.options.circle),title:L.drawLocal.draw.toolbar.buttons.circle},{enabled:this.options.marker,handler:new L.Draw.Marker(t,this.options.marker),title:L.drawLocal.draw.toolbar.buttons.marker},{enabled:this.options.circlemarker,handler:new L.Draw.CircleMarker(t,this.options.circlemarker),title:L.drawLocal.draw.toolbar.buttons.circlemarker}]},getActions:function(t){return[{enabled:t.completeShape,title:L.drawLocal.draw.toolbar.finish.title,text:L.drawLocal.draw.toolbar.finish.text,callback:t.completeShape,context:t},{enabled:t.deleteLastVertex,title:L.drawLocal.draw.toolbar.undo.title,text:L.drawLocal.draw.toolbar.undo.text,callback:t.deleteLastVertex,context:t},{title:L.drawLocal.draw.toolbar.actions.title,text:L.drawLocal.draw.toolbar.actions.text,callback:this.disable,context:this}]},setOptions:function(t){for(var e in L.setOptions(this,t),this._modes)this._modes.hasOwnProperty(e)&&t.hasOwnProperty(e)&&this._modes[e].handler.setOptions(t[e])}}),L.EditToolbar=L.Toolbar.extend({statics:{TYPE:"edit"},options:{edit:{selectedPathOptions:{dashArray:"10, 10",fill:!0,fillColor:"#fe57a1",fillOpacity:.1,maintainColor:!1}},remove:{},poly:null,featureGroup:null},initialize:function(t){t.edit&&(void 0===t.edit.selectedPathOptions&&(t.edit.selectedPathOptions=this.options.edit.selectedPathOptions),t.edit.selectedPathOptions=L.extend({},this.options.edit.selectedPathOptions,t.edit.selectedPathOptions)),t.remove&&(t.remove=L.extend({},this.options.remove,t.remove)),t.poly&&(t.poly=L.extend({},this.options.poly,t.poly)),this._toolbarClass="leaflet-draw-edit",L.Toolbar.prototype.initialize.call(this,t),this._selectedFeatureCount=0},getModeHandlers:function(t){var e=this.options.featureGroup;return[{enabled:this.options.edit,handler:new L.EditToolbar.Edit(t,{featureGroup:e,selectedPathOptions:this.options.edit.selectedPathOptions,poly:this.options.poly}),title:L.drawLocal.edit.toolbar.buttons.edit},{enabled:this.options.remove,handler:new L.EditToolbar.Delete(t,{featureGroup:e}),title:L.drawLocal.edit.toolbar.buttons.remove}]},getActions:function(t){var e=[{title:L.drawLocal.edit.toolbar.actions.save.title,text:L.drawLocal.edit.toolbar.actions.save.text,callback:this._save,context:this},{title:L.drawLocal.edit.toolbar.actions.cancel.title,text:L.drawLocal.edit.toolbar.actions.cancel.text,callback:this.disable,context:this}];return t.removeAllLayers&&e.push({title:L.drawLocal.edit.toolbar.actions.clearAll.title,text:L.drawLocal.edit.toolbar.actions.clearAll.text,callback:this._clearAllLayers,context:this}),e},addToolbar:function(t){var e=L.Toolbar.prototype.addToolbar.call(this,t);return this._checkDisabled(),this.options.featureGroup.on("layeradd layerremove",this._checkDisabled,this),e},removeToolbar:function(){this.options.featureGroup.off("layeradd layerremove",this._checkDisabled,this),L.Toolbar.prototype.removeToolbar.call(this)},disable:function(){this.enabled()&&(this._activeMode.handler.revertLayers(),L.Toolbar.prototype.disable.call(this))},_save:function(){this._activeMode.handler.save(),this._activeMode&&this._activeMode.handler.disable()},_clearAllLayers:function(){this._activeMode.handler.removeAllLayers(),this._activeMode&&this._activeMode.handler.disable()},_checkDisabled:function(){var t,e=this.options.featureGroup,n=0!==e.getLayers().length;this.options.edit&&(t=this._modes[L.EditToolbar.Edit.TYPE].button,n?L.DomUtil.removeClass(t,"leaflet-disabled"):L.DomUtil.addClass(t,"leaflet-disabled"),t.setAttribute("title",n?L.drawLocal.edit.toolbar.buttons.edit:L.drawLocal.edit.toolbar.buttons.editDisabled)),this.options.remove&&(t=this._modes[L.EditToolbar.Delete.TYPE].button,n?L.DomUtil.removeClass(t,"leaflet-disabled"):L.DomUtil.addClass(t,"leaflet-disabled"),t.setAttribute("title",n?L.drawLocal.edit.toolbar.buttons.remove:L.drawLocal.edit.toolbar.buttons.removeDisabled))}}),L.EditToolbar.Edit=L.Handler.extend({statics:{TYPE:"edit"},initialize:function(t,e){if(L.Handler.prototype.initialize.call(this,t),L.setOptions(this,e),this._featureGroup=e.featureGroup,!(this._featureGroup instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this._uneditedLayerProps={},this.type=L.EditToolbar.Edit.TYPE;var n=L.version.split(".");1===parseInt(n[0],10)&&parseInt(n[1],10)>=2?L.EditToolbar.Edit.include(L.Evented.prototype):L.EditToolbar.Edit.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.EDITSTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._featureGroup.on("layeradd",this._enableLayerEdit,this).on("layerremove",this._disableLayerEdit,this))},disable:function(){this._enabled&&(this._featureGroup.off("layeradd",this._enableLayerEdit,this).off("layerremove",this._disableLayerEdit,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.EDITSTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var t=this._map;t&&(t.getContainer().focus(),this._featureGroup.eachLayer(this._enableLayerEdit,this),this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}),t._editTooltip=this._tooltip,this._updateTooltip(),this._map.on("mousemove",this._onMouseMove,this).on("touchmove",this._onMouseMove,this).on("MSPointerMove",this._onMouseMove,this).on(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},removeHooks:function(){this._map&&(this._featureGroup.eachLayer(this._disableLayerEdit,this),this._uneditedLayerProps={},this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this).off("touchmove",this._onMouseMove,this).off("MSPointerMove",this._onMouseMove,this).off(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},revertLayers:function(){this._featureGroup.eachLayer((function(t){this._revertLayer(t)}),this)},save:function(){var t=new L.LayerGroup;this._featureGroup.eachLayer((function(e){e.edited&&(t.addLayer(e),e.edited=!1)})),this._map.fire(L.Draw.Event.EDITED,{layers:t})},_backupLayer:function(t){var e=L.Util.stamp(t);this._uneditedLayerProps[e]||(t instanceof L.Polyline||t instanceof L.Polygon||t instanceof L.Rectangle?this._uneditedLayerProps[e]={latlngs:L.LatLngUtil.cloneLatLngs(t.getLatLngs())}:t instanceof L.Circle?this._uneditedLayerProps[e]={latlng:L.LatLngUtil.cloneLatLng(t.getLatLng()),radius:t.getRadius()}:(t instanceof L.Marker||t instanceof L.CircleMarker)&&(this._uneditedLayerProps[e]={latlng:L.LatLngUtil.cloneLatLng(t.getLatLng())}))},_getTooltipText:function(){return{text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}},_updateTooltip:function(){this._tooltip.updateContent(this._getTooltipText())},_revertLayer:function(t){var e=L.Util.stamp(t);t.edited=!1,this._uneditedLayerProps.hasOwnProperty(e)&&(t instanceof L.Polyline||t instanceof L.Polygon||t instanceof L.Rectangle?t.setLatLngs(this._uneditedLayerProps[e].latlngs):t instanceof L.Circle?(t.setLatLng(this._uneditedLayerProps[e].latlng),t.setRadius(this._uneditedLayerProps[e].radius)):(t instanceof L.Marker||t instanceof L.CircleMarker)&&t.setLatLng(this._uneditedLayerProps[e].latlng),t.fire("revert-edited",{layer:t}))},_enableLayerEdit:function(t){var e,n,i=t.layer||t.target||t;this._backupLayer(i),this.options.poly&&(n=L.Util.extend({},this.options.poly),i.options.poly=n),this.options.selectedPathOptions&&(e=L.Util.extend({},this.options.selectedPathOptions),e.maintainColor&&(e.color=i.options.color,e.fillColor=i.options.fillColor),i.options.original=L.extend({},i.options),i.options.editing=e),i instanceof L.Marker?(i.editing&&i.editing.enable(),i.dragging.enable(),i.on("dragend",this._onMarkerDragEnd).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onMarkerDragEnd,this).on("MSPointerUp",this._onMarkerDragEnd,this)):i.editing.enable()},_disableLayerEdit:function(t){var e=t.layer||t.target||t;e.edited=!1,e.editing&&e.editing.disable(),delete e.options.editing,delete e.options.original,this._selectedPathOptions&&(e instanceof L.Marker?this._toggleMarkerHighlight(e):(e.setStyle(e.options.previousOptions),delete e.options.previousOptions)),e instanceof L.Marker?(e.dragging.disable(),e.off("dragend",this._onMarkerDragEnd,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onMarkerDragEnd,this).off("MSPointerUp",this._onMarkerDragEnd,this)):e.editing.disable()},_onMouseMove:function(t){this._tooltip.updatePosition(t.latlng)},_onMarkerDragEnd:function(t){var e=t.target;e.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:e})},_onTouchMove:function(t){var e=t.originalEvent.changedTouches[0],n=this._map.mouseEventToLayerPoint(e),i=this._map.layerPointToLatLng(n);t.target.setLatLng(i)},_hasAvailableLayers:function(){return 0!==this._featureGroup.getLayers().length}}),L.EditToolbar.Delete=L.Handler.extend({statics:{TYPE:"remove"},initialize:function(t,e){if(L.Handler.prototype.initialize.call(this,t),L.Util.setOptions(this,e),this._deletableLayers=this.options.featureGroup,!(this._deletableLayers instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this.type=L.EditToolbar.Delete.TYPE;var n=L.version.split(".");1===parseInt(n[0],10)&&parseInt(n[1],10)>=2?L.EditToolbar.Delete.include(L.Evented.prototype):L.EditToolbar.Delete.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DELETESTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._deletableLayers.on("layeradd",this._enableLayerDelete,this).on("layerremove",this._disableLayerDelete,this))},disable:function(){this._enabled&&(this._deletableLayers.off("layeradd",this._enableLayerDelete,this).off("layerremove",this._disableLayerDelete,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DELETESTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var t=this._map;t&&(t.getContainer().focus(),this._deletableLayers.eachLayer(this._enableLayerDelete,this),this._deletedLayers=new L.LayerGroup,this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.remove.tooltip.text}),this._map.on("mousemove",this._onMouseMove,this))},removeHooks:function(){this._map&&(this._deletableLayers.eachLayer(this._disableLayerDelete,this),this._deletedLayers=null,this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this))},revertLayers:function(){this._deletedLayers.eachLayer((function(t){this._deletableLayers.addLayer(t),t.fire("revert-deleted",{layer:t})}),this)},save:function(){this._map.fire(L.Draw.Event.DELETED,{layers:this._deletedLayers})},removeAllLayers:function(){this._deletableLayers.eachLayer((function(t){this._removeLayer({layer:t})}),this),this.save()},_enableLayerDelete:function(t){(t.layer||t.target||t).on("click",this._removeLayer,this)},_disableLayerDelete:function(t){var e=t.layer||t.target||t;e.off("click",this._removeLayer,this),this._deletedLayers.removeLayer(e)},_removeLayer:function(t){var e=t.layer||t.target||t;this._deletableLayers.removeLayer(e),this._deletedLayers.addLayer(e),e.fire("deleted")},_onMouseMove:function(t){this._tooltip.updatePosition(t.latlng)},_hasAvailableLayers:function(){return 0!==this._deletableLayers.getLayers().length}})}(window,document)},"219c":function(t,e,n){"use strict";var i=n("da84"),r=n("4625"),o=n("d039"),a=n("59ed"),s=n("addb"),l=n("ebb5"),c=n("04d1"),h=n("d998"),u=n("2d00"),d=n("512c"),p=l.aTypedArray,f=l.exportTypedArrayMethod,m=i.Uint16Array,g=m&&r(m.prototype.sort),y=!!g&&!(o((function(){g(new m(2),null)}))&&o((function(){g(new m(2),{})}))),_=!!g&&!o((function(){if(u)return u<74;if(c)return c<67;if(h)return!0;if(d)return d<602;var t,e,n=new m(516),i=Array(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,i[t]=t-2*e+3;for(g(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==i[t])return!0})),v=function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!==n?-1:e!==e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}};f("sort",(function(t){return void 0!==t&&a(t),_?g(this,t):s(p(this),v(t))}),!_||y)},"21bf":function(t,n,i){(function(n){(function(e,n){t.exports=n()})(0,(function(){var t=t||function(t,r){var o;if("undefined"!==typeof window&&window.crypto&&(o=window.crypto),"undefined"!==typeof self&&self.crypto&&(o=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!==typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&"undefined"!==typeof n&&n.crypto&&(o=n.crypto),!o)try{o=i(0)}catch(_){}var a=function(){if(o){if("function"===typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(_){}if("function"===typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(_){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),l={},c=l.lib={},h=c.Base=function(){return{extend:function(t){var e=s(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=c.WordArray=h.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=r?e:4*t.length},toString:function(t){return(t||p).stringify(this)},concat:function(t){var e=this.words,n=t.words,i=this.sigBytes,r=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o>>2]>>>24-o%4*8&255;e[i+o>>>2]|=a<<24-(i+o)%4*8}else for(var s=0;s>>2]=n[s>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=h.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new u.init(n,e/2)}},f=d.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new u.init(n,e)}},m=d.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},g=c.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=m.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,i=this._data,r=i.words,o=i.sigBytes,a=this.blockSize,s=4*a,l=o/s;l=e?t.ceil(l):t.max((0|l)-this._minBufferSize,0);var c=l*a,h=t.min(4*c,o);if(c){for(var d=0;d_;_++)if(b=P(t[_]),b&&c(m,b))return b;return new f(!1)}g=h(t,y)}w=k?t.next:g.next;while(!(x=r(w,g)).done){try{b=P(x.value)}catch(O){d(g,"throw",O)}if("object"==typeof b&&b&&c(m,b))return b}return new f(!1)}},2286:function(t,e,n){var i=n("85e3"),r=Math.max;function o(t,e,n){return e=r(void 0===e?t.length-1:e,0),function(){var o=arguments,a=-1,s=r(o.length-e,0),l=Array(s);while(++a=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){c.headers[t]=r.merge(a)})),t.exports=c}).call(this,i("f28c"))},2474:function(t,e,n){var i=n("2b3e"),r=i.Uint8Array;t.exports=r},2478:function(t,e,n){var i=n("4245");function r(t){return i(this,t).get(t)}t.exports=r},"249d":function(t,e,n){"use strict";var i=n("23e7"),r=n("41f6");r&&i({target:"ArrayBuffer",proto:!0},{transfer:function(){return r(this,arguments.length?arguments[0]:void 0,!0)}})},2524:function(t,e,n){var i=n("6044"),r="__lodash_hash_undefined__";function o(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?r:e,this}t.exports=o},2532:function(t,e,n){"use strict";var i=n("23e7"),r=n("e330"),o=n("5a34"),a=n("1d80"),s=n("577e"),l=n("ab13"),c=r("".indexOf);i({target:"String",proto:!0,forced:!l("includes")},{includes:function(t){return!!~c(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},"253c":function(t,e,n){var i=n("3729"),r=n("1310"),o="[object Arguments]";function a(t){return r(t)&&i(t)==o}t.exports=a},"25a1":function(t,e,n){"use strict";var i=n("ebb5"),r=n("d58f").right,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("reduceRight",(function(t){var e=arguments.length;return r(o(this),t,e,e>1?arguments[1]:void 0)}))},"25a5":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";function t(t,i,r,o,a){!function t(n,i,r,o,a){for(;o>r;){if(o-r>600){var s=o-r+1,l=i-r+1,c=Math.log(s),h=.5*Math.exp(2*c/3),u=.5*Math.sqrt(c*h*(s-h)/s)*(l-s/2<0?-1:1),d=Math.max(r,Math.floor(i-l*h/s+u)),p=Math.min(o,Math.floor(i+(s-l)*h/s+u));t(n,i,d,p,a)}var f=n[i],m=r,g=o;for(e(n,r,i),a(n[o],f)>0&&e(n,r,o);m0;)g--}0===a(n[r],f)?e(n,r,g):e(n,++g,o),g<=i&&(r=g+1),i<=g&&(o=g-1)}}(t,i,r||0,o||t.length-1,a||n)}function e(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function n(t,e){return te?1:0}var i=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function r(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i=t.minX&&e.maxY>=t.minY}function f(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(e,n,i,r,o){for(var a=[n,i];a.length;)if(!((i=a.pop())-(n=a.pop())<=r)){var s=n+Math.ceil((i-n)/r/2)*r;t(e,s,n,i,o),a.push(n,s,s,i)}}return i.prototype.all=function(){return this._all(this.data,[])},i.prototype.search=function(t){var e=this.data,n=[];if(!p(t,e))return n;for(var i=this.toBBox,r=[];e;){for(var o=0;o=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)},i.prototype._split=function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var a=this._chooseSplitIndex(n,r,i),s=f(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},i.prototype._splitRoot=function(t,e){this.data=f([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},i.prototype._chooseSplitIndex=function(t,e,n){for(var i,r,o,s,l,c,u,d=1/0,p=1/0,f=e;f<=n-e;f++){var m=a(t,0,f,this.toBBox),g=a(t,f,n,this.toBBox),y=(r=m,o=g,s=void 0,l=void 0,c=void 0,u=void 0,s=Math.max(r.minX,o.minX),l=Math.max(r.minY,o.minY),c=Math.min(r.maxX,o.maxX),u=Math.min(r.maxY,o.maxY),Math.max(0,c-s)*Math.max(0,u-l)),_=h(m)+h(g);y=e;p--){var f=t.children[p];s(l,t.leaf?r(f):f),c+=u(l)}return c},i.prototype._adjustParentBBoxes=function(t,e,n){for(var i=n;i>=0;i--)s(e[i],t)},i.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},i}))},"25f0":function(t,e,n){"use strict";var i=n("5e77").PROPER,r=n("cb2d"),o=n("825a"),a=n("577e"),s=n("d039"),l=n("90d8"),c="toString",h=RegExp.prototype,u=h[c],d=s((function(){return"/a/b"!==u.call({source:"a",flags:"b"})})),p=i&&u.name!==c;(d||p)&&r(h,c,(function(){var t=o(this),e=a(t.source),n=a(l(t));return"/"+e+"/"+n}),{unsafe:!0})},2626:function(t,e,n){"use strict";var i=n("d066"),r=n("edd0"),o=n("b622"),a=n("83ab"),s=o("species");t.exports=function(t){var e=i(t);a&&e&&!e[s]&&r(e,s,{configurable:!0,get:function(){return this}})}},2714:function(t,n,i){(function(n){var r="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&o&&"function"===typeof o.get?o.get:null,s=r&&Map.prototype.forEach,l="function"===typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,h=l&&c&&"function"===typeof c.get?c.get:null,u=l&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype,p=d?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype,m=f?WeakSet.prototype.has:null,g="function"===typeof WeakRef&&WeakRef.prototype,y=g?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,v=Object.prototype.toString,b=Function.prototype.toString,w=String.prototype.match,x=String.prototype.slice,L=String.prototype.replace,M=String.prototype.toUpperCase,k=String.prototype.toLowerCase,T=RegExp.prototype.test,A=Array.prototype.concat,E=Array.prototype.join,S=Array.prototype.slice,P=Math.floor,O="function"===typeof BigInt?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,I="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"===typeof Symbol&&"object"===typeof Symbol.iterator,j="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===R||"symbol")?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,N=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function z(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||T.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof t){var i=t<0?-P(-t):P(t);if(i!==t){var r=String(i),o=x.call(e,r.length+1);return L.call(r,n,"$&_")+"."+L.call(L.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return L.call(e,n,"$&_")}var G=i(1),B=G.custom,Z=K(B)?B:null;function U(t,e,n){var i="double"===(n.quoteStyle||e)?'"':"'";return i+t+i}function Y(t){return L.call(String(t),/"/g,""")}function W(t){return"[object Array]"===et(t)&&(!j||!("object"===typeof t&&j in t))}function F(t){return"[object Date]"===et(t)&&(!j||!("object"===typeof t&&j in t))}function V(t){return"[object RegExp]"===et(t)&&(!j||!("object"===typeof t&&j in t))}function Q(t){return"[object Error]"===et(t)&&(!j||!("object"===typeof t&&j in t))}function H(t){return"[object String]"===et(t)&&(!j||!("object"===typeof t&&j in t))}function J(t){return"[object Number]"===et(t)&&(!j||!("object"===typeof t&&j in t))}function X(t){return"[object Boolean]"===et(t)&&(!j||!("object"===typeof t&&j in t))}function K(t){if(R)return t&&"object"===typeof t&&t instanceof Symbol;if("symbol"===typeof t)return!0;if(!t||"object"!==typeof t||!I)return!1;try{return I.call(t),!0}catch(e){}return!1}function q(t){if(!t||"object"!==typeof t||!O)return!1;try{return O.call(t),!0}catch(e){}return!1}t.exports=function t(e,i,r,o){var l=i||{};if(tt(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(tt(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!tt(l,"customInspect")||l.customInspect;if("boolean"!==typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(tt(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(tt(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=l.numericSeparator;if("undefined"===typeof e)return"undefined";if(null===e)return"null";if("boolean"===typeof e)return e?"true":"false";if("string"===typeof e)return ht(e,l);if("number"===typeof e){if(0===e)return 1/0/e>0?"0":"-0";var p=String(e);return d?z(e,p):p}if("bigint"===typeof e){var f=String(e)+"n";return d?z(e,f):f}var m="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof r&&(r=0),r>=m&&m>0&&"object"===typeof e)return W(e)?"[Array]":"[Object]";var g=gt(l,r);if("undefined"===typeof o)o=[];else if(it(o,e)>=0)return"[Circular]";function y(e,n,i){if(n&&(o=S.call(o),o.push(n)),i){var a={depth:l.depth};return tt(l,"quoteStyle")&&(a.quoteStyle=l.quoteStyle),t(e,a,r+1,o)}return t(e,l,r+1,o)}if("function"===typeof e&&!V(e)){var v=nt(e),b=_t(e,y);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(b.length>0?" { "+E.call(b,", ")+" }":"")}if(K(e)){var w=R?L.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(e);return"object"!==typeof e||R?w:dt(w)}if(ct(e)){for(var M="<"+k.call(String(e.nodeName)),T=e.attributes||[],P=0;P",M}if(W(e)){if(0===e.length)return"[]";var D=_t(e,y);return g&&!mt(D)?"["+yt(D,g)+"]":"[ "+E.call(D,", ")+" ]"}if(Q(e)){var B=_t(e,y);return"cause"in Error.prototype||!("cause"in e)||C.call(e,"cause")?0===B.length?"["+String(e)+"]":"{ ["+String(e)+"] "+E.call(B,", ")+" }":"{ ["+String(e)+"] "+E.call(A.call("[cause]: "+y(e.cause),B),", ")+" }"}if("object"===typeof e&&c){if(Z&&"function"===typeof e[Z]&&G)return G(e,{depth:m-r});if("symbol"!==c&&"function"===typeof e.inspect)return e.inspect()}if(rt(e)){var $=[];return s&&s.call(e,(function(t,n){$.push(y(n,e,!0)+" => "+y(t,e))})),ft("Map",a.call(e),$,g)}if(st(e)){var ut=[];return u&&u.call(e,(function(t){ut.push(y(t,e))})),ft("Set",h.call(e),ut,g)}if(ot(e))return pt("WeakMap");if(lt(e))return pt("WeakSet");if(at(e))return pt("WeakRef");if(J(e))return dt(y(Number(e)));if(q(e))return dt(y(O.call(e)));if(X(e))return dt(_.call(e));if(H(e))return dt(y(String(e)));if("undefined"!==typeof window&&e===window)return"{ [object Window] }";if(e===n)return"{ [object globalThis] }";if(!F(e)&&!V(e)){var vt=_t(e,y),bt=N?N(e)===Object.prototype:e instanceof Object||e.constructor===Object,wt=e instanceof Object?"":"null prototype",xt=!bt&&j&&Object(e)===e&&j in e?x.call(et(e),8,-1):wt?"Object":"",Lt=bt||"function"!==typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"",Mt=Lt+(xt||wt?"["+E.call(A.call([],xt||[],wt||[]),": ")+"] ":"");return 0===vt.length?Mt+"{}":g?Mt+"{"+yt(vt,g)+"}":Mt+"{ "+E.call(vt,", ")+" }"}return String(e)};var $=Object.prototype.hasOwnProperty||function(t){return t in this};function tt(t,e){return $.call(t,e)}function et(t){return v.call(t)}function nt(t){if(t.name)return t.name;var e=w.call(b.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function it(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return ht(x.call(t,0,e.maxStringLength),e)+i}var r=L.call(L.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ut);return U(r,"single",e)}function ut(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+M.call(e.toString(16))}function dt(t){return"Object("+t+")"}function pt(t){return t+" { ? }"}function ft(t,e,n,i){var r=i?yt(n,i):E.call(n,", ");return t+" ("+e+") {"+r+"}"}function mt(t){for(var e=0;e=0)return!1;return!0}function gt(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"===typeof t.indent&&t.indent>0))return null;n=E.call(Array(t.indent+1)," ")}return{base:n,prev:E.call(Array(e+1),n)}}function yt(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+E.call(t,","+n)+"\n"+e.prev}function _t(t,e){var n=W(t),i=[];if(n){i.length=t.length;for(var r=0;ro)c[o]=n[o++];return c}),c)},"29f3":function(t,e){var n=Object.prototype,i=n.toString;function r(t){return i.call(t)}t.exports=r},"2a62":function(t,e,n){"use strict";var i=n("c65b"),r=n("825a"),o=n("dc4a");t.exports=function(t,e,n){var a,s;r(t);try{if(a=o(t,"return"),!a){if("throw"===e)throw n;return n}a=i(a,t)}catch(l){s=!0,a=l}if("throw"===e)throw n;if(s)throw a;return r(a),n}},"2a66":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},t.pad.ZeroPadding}))},"2aa9":function(t,n,i){"use strict";var r=i("00ce"),o=r("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch(e){o=null}t.exports=o},"2b3d":function(t,e,n){"use strict";n("4002")},"2b3e":function(t,e,n){var i=n("585a"),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();t.exports=o},"2b46":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAACuklEQVRIS72VQUgUcRTGv7crBRLZziiElw7OrJcORUKXIMIo8lIadKkIijRncYkIokuZhw51CLSdbcU6VCcD7ZTpIRC6BIaXLjoTHQIvOv9NCbHa3RfrKow7/9mZWai9LOx83/vNe3zvLeE/f6geXkvG1sq+5ZRmR/WHApYBRUIvwAcBPgqQUgGxAOgTQF/ijNEwLxAIVE17gJmHQNhXsxvGDyK65xjaSC1dTaBiWu8AnIk4tilh6F1+Hl+gmrW7mXkiImxTTkQ9Tr82KfNKgU3DVlu8AZED4QYUC9BW0/rXaqgUqGQWJ0DU7dPdDIMXNjsBtQM4JdUxT4pUsiccMGs5YGwl0WXh0gORah90F1EyC4Og2H0PlCBEv64GAptN+0gJPCcRzu+Orx5b6utYdz9rzc01/io2fWTgcLUnBupYMbTP7t89I02Ydi+Bc543ZrwQKf2abHxKxnoOwtXqZwzqyxvaaE2gYlo3ATzxmnkkbyTTMmDCXBwm0IBkrLdEv76jlqdD1Vw4x4jJIj0jDP20tEPTmvYJzwVh6G9qdrh37LvS8HvDkScvQmgAxJn06nMnXQs1Y71mwkU/KKNhay0K7dKEVozSiyMFNufsE6Uif6jnymx7iOmKk9JeBq7FtiBhWg8JuFsPlICsY+iGzOt7S1tzS40bpfVZMHdEgRIwX8CuzlXjQD4SsCxWn1lnuYS3UYAM6sob2pSfJ/D/MGFaTwlIhYQOCUP3njmXORDYkvm2v0iFWQDJAKjvntbcQ1lRNWtdZoYncS7tWiwW61y50ea5waFTWi1UTPsxwLd9urwuDH0szNgDR+ouoprWKwYu7RgR8yMnlbwTBlbWRAJifDyurBx6D9DJCoAnhJE8HxYWHQigEqI/0wCVUMBxkdbX/imwXHzPsNVS/v6Z1pejwOrqMCqgWv8X/ffvHeAOmgIAAAAASUVORK5CYII="},"2b79":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("df2f"),n("5980"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.Base,r=n.WordArray,o=e.algo,a=o.MD5,s=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n,i=this.cfg,o=i.hasher.create(),a=r.create(),s=a.words,l=i.keySize,c=i.iterations;while(s.length0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),t.exports=r},"2d7c":function(t,e){function n(t,e){var n=-1,i=null==t?0:t.length,r=0,o=[];while(++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&r(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);while(++i1?[t,arguments[1]]:[t])}))},"32b3":function(t,e,n){var i=n("872a"),r=n("9638"),o=Object.prototype,a=o.hasOwnProperty;function s(t,e,n){var o=t[e];a.call(t,e)&&r(o,n)&&(void 0!==n||e in t)||i(t,e,n)}t.exports=s},"32f4":function(t,e,n){var i=n("2d7c"),r=n("d327"),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(t){return null==t?[]:(t=Object(t),i(s(t),(function(e){return a.call(t,e)})))}:r;t.exports=l},3354:function(t,n,i){"use strict";var r={};i.r(r),i.d(r,"TRAJECTORY_SLOW_SPEED",(function(){return k})),i.d(r,"LABEL_BOX_PADDING_WIDTH",(function(){return T})),i.d(r,"LABEL_BOX_PADDING_HEIGHT",(function(){return A})),i.d(r,"DefaultTrajectoryStyle",(function(){return E})),i.d(r,"DefaultShipStopRecordStyle",(function(){return S})),i.d(r,"DefaultPortStyle",(function(){return P})),i.d(r,"DefaultShipStyle",(function(){return O})),i.d(r,"DefaultPolylineStyle",(function(){return D})),i.d(r,"DefaultPlanrouteStyle",(function(){return I})),i.d(r,"DefaultOnePlanrouteOptions",(function(){return R})),i.d(r,"DefaultOnePlanrouteStyle",(function(){return j})),i.d(r,"DefaultPolyonStyle",(function(){return C})),i.d(r,"DefaultPolyonInfoStyle",(function(){return N})),i.d(r,"DefaultPointMarkerStyle",(function(){return z})),i.d(r,"DefaultTyphoonInfoTrajectoryElStyle",(function(){return G})),i.d(r,"buildDefaultTrajectoryOptions",(function(){return B})),i.d(r,"TRAJECTORY_TYPE_DETAIL",(function(){return Z})),i.d(r,"TRAJECTORY_TYPE_SKETCH",(function(){return U})),i.d(r,"buildDefaultTrajectoryOptions2730",(function(){return Y})),i.d(r,"DefaultTrajectoryOptions",(function(){return W})),i.d(r,"DefaultFutureTrajectoryOptions",(function(){return F})),i.d(r,"DefaultFutureTyphoonOptions",(function(){return V})),i.d(r,"STAGES",(function(){return Q})),i.d(r,"TRACKER_MAX_MINUTE",(function(){return H})),i.d(r,"TRACKER_THRESHOLD",(function(){return J})),i.d(r,"TOTAL_NUMBER_OF_TRACKER",(function(){return X})),i.d(r,"SHIP_DELAY_TIME",(function(){return K})),i.d(r,"SHIP_DELAY_GLOBALALPHA",(function(){return q})),i.d(r,"SHIP_DELAY_THRESHOLD",(function(){return $})),i.d(r,"WIND_ICON_HEIGHT",(function(){return tt})),i.d(r,"WIND_ICON_WIDTH",(function(){return et})),i.d(r,"DRAW_TYPE_ROUTE_SWELL_DIRECTION",(function(){return nt})),i.d(r,"DRAW_TYPE_WIND",(function(){return it})),i.d(r,"DRAW_TYPE_SHIP_STOP_RECORD",(function(){return rt})),i.d(r,"DRAW_PORT",(function(){return ot})),i.d(r,"DRAW_BERTH",(function(){return at})),i.d(r,"DRAW_POLYLINE",(function(){return st})),i.d(r,"DRAW_POLYGON",(function(){return lt})),i.d(r,"DRAW_POINT_MARKER",(function(){return ct})),i.d(r,"DRAW_POINT_MARKER_CONFLICT",(function(){return ht})),i.d(r,"DRAW_TRAJECTORY_POINT",(function(){return ut})),i.d(r,"DRAW_PLAN_ROUTE",(function(){return dt})),i.d(r,"DRAW_MERCHANT",(function(){return pt})),i.d(r,"DRAW_TYPHOON_FORECAST_POINT",(function(){return ft})),i.d(r,"DRAW_POINT_INFO_MARKER",(function(){return mt})),i.d(r,"DRAW_POLYGON_INFO",(function(){return gt})),i.d(r,"DefaultShipLayerVisible",(function(){return yt})),i.d(r,"DefaultKShipElOptions",(function(){return _t}));var o=i("5530"),a=i("ef1d");i("d9e2"),i("99af"),i("caad"),i("14d9"),i("fb6a"),i("2532"),i("a15b"),i("dca8"),i("d3b7"),i("ac1f"),i("25f0"),i("5319"),i("1276"),i("498a"),Object.freeze;function s(t){var e,n,i,r;for(n=1,i=arguments.length;n1||n._animatingZoom||this._zooming;if(r)this._touchStartTime=null;else if(this._touchStartTime){var o=new Date-this._touchStartTime,s=50180)e-=360;while(i>180)i-=360;while(i<-180)i+=360;while(e<-180)e+=360;return this.llon=i,this.rlon=e,this.tlat=n,this.blat=r,this}}),w=b,x=(i("d81d"),i("b0c0"),i("159b"),i("5fbf"),i("b47d"),i("4de4"),i("b680"),i("a434"),i("e9c4"),i("841c"),i("bf19"),function t(e){var n=3,i=6;isNaN(e)||(n=Math.floor(e/2),i=e);var r={x:0,y:0,w:0,h:0,id:"root",nodes:[]},o=function(t){return"[object Array]"===Object.prototype.toString.call(t)},a=function(){var t={};return function(e){var n=0;return e in t?n=t[e]++:t[e]=0,e+"_"+n}}();t.Rectangle.squarified_ratio=function(t,e,n){var i=(t+e)/2,r=t*e,o=r/(i*i);return r*n/o};var s=function(e,i,r){var o=[],a=[],s=[];if(!e||!t.Rectangle.overlap_rectangle(e,r))return s;var l={x:e.x,y:e.y,w:e.w,h:e.h,target:i};a.push(r.nodes.length),o.push(r);do{var c=o.pop(),h=a.pop()-1;if("target"in l)while(h>=0){var u=c.nodes[h];if(t.Rectangle.overlap_rectangle(l,u)){if(l.target&&"leaf"in u&&u.leaf===l.target||!l.target&&("leaf"in u||t.Rectangle.contains_rectangle(u,l))){"nodes"in u?(s=p(u,!0,[],u),c.nodes.splice(h,1)):s=c.nodes.splice(h,1),t.Rectangle.make_MBR(c.nodes,c),delete l.target,c.nodes.length0&&t.Rectangle.make_MBR(c.nodes,c);for(var d=0;d0&&c.nodes.length0);return s},l=function(e,n){var i,r=-1,o=[];o.push(n);var a=n.nodes;do{-1!=r&&(o.push(a[r]),a=a[r].nodes,r=-1);for(var s=a.length-1;s>=0;s--){var l=a[s];if("leaf"in l){r=-1;break}var c=t.Rectangle.squarified_ratio(l.w,l.h,l.nodes.length+1),h=Math.max(l.x+l.w,e.x+e.w)-Math.min(l.x,e.x),u=Math.max(l.y+l.h,e.y+e.h)-Math.min(l.y,e.y),d=t.Rectangle.squarified_ratio(h,u,l.nodes.length+2);(r<0||Math.abs(d-c)0)h(t,e[0],e[1]);return e},h=function(e,i,r){for(var o,a,s,l=t.Rectangle.squarified_ratio(i.w,i.h,i.nodes.length+1),c=t.Rectangle.squarified_ratio(r.w,r.h,r.nodes.length+1),h=e.length-1;h>=0;h--){var u=e[h],d={};d.x=Math.min(i.x,u.x),d.y=Math.min(i.y,u.y),d.w=Math.max(i.x+i.w,u.x+u.w)-d.x,d.h=Math.max(i.y+i.h,u.y+u.h)-d.y;var p=Math.abs(t.Rectangle.squarified_ratio(d.w,d.h,i.nodes.length+2)-l),f={};f.x=Math.min(r.x,u.x),f.y=Math.min(r.y,u.y),f.w=Math.max(r.x+r.w,u.x+u.w)-f.x,f.h=Math.max(r.y+r.h,u.y+u.h)-f.y;var m=Math.abs(t.Rectangle.squarified_ratio(f.w,f.h,r.nodes.length+2)-c);(!a||!o||Math.abs(m-p)=0;s--){var l=t[s];l.x>t[r].x?r=s:l.x+l.wt[a].y?a=s:l.y+l.hh?i>r?(e=t.splice(i,1)[0],n=t.splice(r,1)[0]):(n=t.splice(r,1)[0],e=t.splice(i,1)[0]):o>a?(e=t.splice(o,1)[0],n=t.splice(a,1)[0]):(n=t.splice(a,1)[0],e=t.splice(o,1)[0]),[{x:e.x,y:e.y,w:e.w,h:e.h,nodes:[e]},{x:n.x,y:n.y,w:n.w,h:n.h,nodes:[n]}]},d=function(t,e){return t.nodes=e.nodes,t.x=e.x,t.y=e.y,t.w=e.w,t.h=e.h,t},p=function(e,n,i,r){var o=[];if(!t.Rectangle.overlap_rectangle(e,r))return i;o.push(r.nodes);do{for(var a=o.pop(),s=a.length-1;s>=0;s--){var l=a[s];t.Rectangle.overlap_rectangle(e,l)&&("nodes"in l?o.push(l.nodes):"leaf"in l&&(n?i.push(l):i.push(l.leaf)))}}while(o.length>0);return i},f=function(e,n){var r;if(0==n.nodes.length)return n.x=e.x,n.y=e.y,n.w=e.w,n.h=e.h,void n.nodes.push(e);var a=l(e,n),s=e;do{if(r&&"nodes"in r&&0==r.nodes.length){var h=r;r=a.pop();for(var u=0;u0)};this.get_tree=function(){return r},this.set_tree=function(t,e){return e||(e=r),d(e,t)},this.search=function(t,e,n){if(arguments.length<1)throw"Wrong number of arguments. RT.Search requires at least a bounding rectangle.";switch(arguments.length){case 1:arguments[1]=!1;case 2:arguments[2]=[];case 3:arguments[3]=r;default:arguments.length=4}return p.apply(this,arguments)},this.toJSON=function(e,n){var i=[],o=[],s={},l=3,c=1,h="";if(e&&!t.Rectangle.overlap_rectangle(e,r))return"";n?(l+=4,o.push(n.nodes.length),i.push(n.nodes),h+="var main_tree = {x:"+n.x.toFixed()+",y:"+n.y.toFixed()+",w:"+n.w.toFixed()+",h:"+n.h.toFixed()+",nodes:["):(o.push(r.nodes.length),i.push(r.nodes),h+="var main_tree = {x:"+r.x.toFixed()+",y:"+r.y.toFixed()+",w:"+r.w.toFixed()+",h:"+r.h.toFixed()+",nodes:[");do{var u=i.pop(),d=o.pop()-1;d>=0&&d=0){var p=u[d];if(!e||t.Rectangle.overlap_rectangle(e,p))if(p.nodes)if(c>=l){s.length;var f=a("saved_subtree");h+="{x:"+p.x.toFixed()+",y:"+p.y.toFixed()+",w:"+p.w.toFixed()+",h:"+p.h.toFixed()+",load:'"+f+".js'}",s[f]=this.toJSON(e,p),d>0&&(h+=",")}else h+="{x:"+p.x.toFixed()+",y:"+p.y.toFixed()+",w:"+p.w.toFixed()+",h:"+p.h.toFixed()+",nodes:[",c+=1,o.push(d),i.push(u),u=p.nodes,d=p.nodes.length;else if(p.leaf){var m=p.leaf.toJSON?p.leaf.toJSON():JSON.stringify(p.leaf);h+="{x:"+p.x.toFixed()+",y:"+p.y.toFixed()+",w:"+p.w.toFixed()+",h:"+p.h.toFixed()+",leaf:"+m+"}",d>0&&(h+=",")}else p.load&&(h+="{x:"+p.x.toFixed()+",y:"+p.y.toFixed()+",w:"+p.w.toFixed()+",h:"+p.h.toFixed()+",load:'"+p.load+"'}",d>0&&(h+=","));d-=1}d<0&&(h+="]}",c-=1)}while(i.length>0);for(var g in h+=";",s)h+="\nvar "+g+" = function(){"+s[g]+" return(main_tree);};";return h},this.remove=function(t,e){if(arguments.length<1)throw"Wrong number of arguments. RT.remove requires at least a bounding rectangle.";switch(arguments.length){case 1:arguments[1]=!1;case 2:arguments[2]=r;default:arguments.length=3}if(!1===arguments[1]){var n=0,i=[];do{n=i.length,i=i.concat(s.apply(this,arguments))}while(n!=i.length);return i}return s.apply(this,arguments)},this.insert=function(t,e){if(arguments.length<2)throw"Wrong number of arguments. RT.Insert requires at least a bounding rectangle and an object.";return f({x:t.x,y:t.y,w:t.w,h:t.h,leaf:e},r)}});x.Rectangle=function(t,e,n,i){var r,o,a,s,l,c;t.x?(r=t.x,a=t.y,0!==t.w&&!t.w&&t.x2?(l=t.x2-t.x,c=t.y2-t.y):(l=t.w,c=t.h),o=r+l,s=a+c):(r=t,a=e,l=n,c=i,o=r+l,s=a+c),this.x1=this.x=function(){return r},this.y1=this.y=function(){return a},this.x2=function(){return o},this.y2=function(){return s},this.w=function(){return l},this.h=function(){return c},this.toJSON=function(){return'{"x":'+r.toString()+', "y":'+a.toString()+', "w":'+l.toString()+', "h":'+c.toString()+"}"},this.overlap=function(t){return this.x()t.x()&&this.y()t.y()},this.expand=function(t){var e=Math.min(this.x(),t.x()),n=Math.min(this.y(),t.y());return l=Math.max(this.x2(),t.x2())-e,c=Math.max(this.y2(),t.y2())-n,r=e,a=n,this},this.setRect=function(t,e,n,i){var r,o,a,s;t.x?(r=t.x,o=t.y,0!==t.w&&!t.w&&t.x2?(a=t.x2-t.x,s=t.y2-t.y):(a=t.w,s=t.h),r+a):(r=t,o=e,a=n,s=i,r+a)}},x.Rectangle.overlap_rectangle=function(t,e){return t.xe.x&&t.ye.y},x.Rectangle.contains_rectangle=function(t,e){return t.x+t.w<=e.x+e.w&&t.x>=e.x&&t.y+t.h<=e.y+e.h&&t.y>=e.y},x.Rectangle.expand_rectangle=function(t,e){var n=Math.min(t.x,e.x),i=Math.min(t.y,e.y);return t.w=Math.max(t.x+t.w,e.x+e.w)-n,t.h=Math.max(t.y+t.h,e.y+e.h)-i,t.x=n,t.y=i,t},x.Rectangle.make_MBR=function(t,e){if(t.length<1)return{x:0,y:0,w:0,h:0};e?e.x=t[0].x:e={x:t[0].x,y:t[0].y,w:t[0].w,h:t[0].h},e.y=t[0].y,e.w=t[0].w,e.h=t[0].h;for(var n=t.length-1;n>0;n--)x.Rectangle.expand_rectangle(e,t[n]);return e};var M=x,k=5,T=4,A=2,E={fontSize:12,textColor:"blue",textBackgroundColor:"white",model:"nomi",circleColor:"#FF6600",lineColor:"#d63031",lineColorSlow:"#7bed9f",anchorSize:10,anchorLineColor:"#FF7423",anchorLineWidth:1,trajectoryLowSpeedLineColor:null,trajectoryLineColor:"#FF7423",trajectoryLineWidth:1,anchorGlobalAlpha:.5},S={fontSize:12,textColor:"white",textBackgroundColor:"blue",model:"nomi",circleColor:"#FF6600",lineColor:"#d63031",lineColorSlow:"#7bed9f",anchorSize:10,anchorLineColor:"#fff",anchorLineWidth:.2,anchorGlobalAlpha:.5},P={fontSize:12,textColor:"blue",textBackgroundColor:"white",model:"mi",circleColor:"#FF6600",lineColor:"#d63031",lineColorSlow:"#7bed9f",anchorSize:10,anchorLineColor:"#fff",anchorLineWidth:.2,anchorGlobalAlpha:.5},O={fontSize:12,textColor:"black",model:"mi",circleColor:"#FF6600",lineColor:"#d63031",lineColorSlow:"#7bed9f",anchorSize:10,anchorLineColor:"grey",anchorLineWidth:1,anchorGlobalAlpha:1},D={lineWidth:1,lineColor:"#d63031",textAlong:12,textStrokeLineWidth:3,textStrokeStyle:"rgb(221,242,249)",fontSize:12,font:"12px Verdana",textColor:"#2d3436"},I={lineWidth:1,lineColor:"#7f8c8d",textAlong:10,textStrokeLineWidth:3,textStrokeStyle:"rgb(221,242,249)",fontSize:10,font:"10px Verdana",textColor:"#2d3436"},R={showLabel:!1,showLatLngLabel:!1,showArrow:!1,showPoint:!1,showLine:!0,showWind:!1,showShipStopRecord:!1,showRouteSwellDirection:!1},j={fontSize:12,textColor:"black",textBackgroundColor:"white",model:"nomi",circleColor:"#FF6600",lineColor:"#9b59b6",lineWidth:3,dashLength:5,anchorSize:10,anchorLineColor:"#fff",anchorLineWidth:.2,anchorGlobalAlpha:.5},C={lineWidth:1,lineColor:"#2B86C0",textAlong:0,fontSize:12,textStrokeLineWidth:3,textStrokeStyle:"rgb(221,242,249)",font:"12px Verdana",textColor:"#2d3436",backgroundColor:"white",backgroundGlobalAlpha:.3},N={lineWidth:1,lineColor:"#2B86C0",textAlong:0,fontSize:12,textStrokeLineWidth:3,textStrokeStyle:"rgb(221,242,249)",font:"12px Verdana",textColor:"#2d3436",backgroundColor:"yellow",backgroundGlobalAlpha:.3},z={lineWidth:1,lineColor:"#d63031",textAlong:24,textStrokeLineWidth:3,textStrokeStyle:"rgb(221,242,249)",fontSize:12,font:"12px Verdana",textColor:"#2d3436"},G={lineWidth:2,strokeStyle:"pink",circleColor:"green",lineColor:"#d63031",textAlong:28,textStrokeLineWidth:3,textStrokeStyle:"rgba(225,225,225,0.5)",fontSize:12,font:"12px Verdana",textColor:"#001ef5"},B=function(){return{showLabel:!0,showSpeed:!1,showCourse:!1,showLatLngLabel:!1,showArrow:!0,showPoint:!0,showLine:!0,showWind:!1,showWave:!1,showShipStopRecord:!0}},Z="TRAJECTORY_TYPE_DETAIL",U="TRAJECTORY_TYPE_SKETCH",Y=function(){return{show2730DateLabel:!0}},W=B(),F={showLabel:!0,showArrow:!1,showPoint:!0,showLine:!1,showWind:!1,showShipStopRecord:!1},V={showLabel:!0,showArrow:!0,showPoint:!0,showLine:!0,showWind:!1,showShipStopRecord:!0},Q={ship:"ship",trajectory:"trajectory",history:"history",plan:"plan",weather:"weather",multitrajectory:"multitrajectory",sdk:"sdk",distance:"distance",playback:"playback",hlwais:"hlwais",playbackarea:"playbackarea"},H=6,J=60*H*1e3,X=12,K=4,q=.6,$=3600*K*1e3,tt=36,et=18,nt="routeSwellDirection",it="wind",rt="shipStopRecord",ot="port",at="berth",st="polyline",lt="polygon",ct="pointmarker",ht="pointmarker_confict",ut="trajectory_point",dt="plan_route",pt="merchant",ft="typhoon_forecast_point",mt="pointinfomarker",gt="polygoninfo",yt={realDrawPorts:!0,realDrawPolylines:!0,realDrawPolygons:!0,realDrawPointMarker:!0,realDrawPlanroute:!0,realDrawShips:!0,realDrawMapShips:!0,realDrawShipsLabels:!0,realDrawEstimatorRoutes:!0,realDrawTrajectory:!0,realDrawMultiTrajectory:!0,realDrawTyphoonMin:!0,realDrawShipWhenOnePlan:!0,realDrawOnePlanroute:!0,realDrawFutureTrajectory:!0,realDrawFutureTyphoon:!0,realDrawMerchant:!0,realDrawTyphoonForecast:!0,realDrawTyphoonInfo:!0,realDrawPointInfoMarker:!0,realDrawBerths:!1},_t={drawShipsOnZoomLevel:10,showLabelOnZoomLevel:11},vt=i("c448"),bt=i("9587"),wt=i("883a"),xt=6371008.8,Lt={centimeters:100*xt,centimetres:100*xt,degrees:xt/111325,feet:3.28084*xt,inches:39.37*xt,kilometers:xt/1e3,kilometres:xt/1e3,meters:xt,metres:xt,miles:xt/1609.344,millimeters:1e3*xt,millimetres:1e3*xt,nauticalmiles:xt/1852,radians:1,yards:1.0936*xt};function Mt(t,e,n){void 0===n&&(n={});var i={type:"Feature"};return(0===n.id||n.id)&&(i.id=n.id),n.bbox&&(i.bbox=n.bbox),i.properties=e||{},i.geometry=t,i}function kt(t,e,n){if(void 0===n&&(n={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Ot(t[0])||!Ot(t[1]))throw new Error("coordinates must contain numbers");var i={type:"Point",coordinates:t};return Mt(i,e,n)}function Tt(t,e,n){if(void 0===n&&(n={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");var i={type:"LineString",coordinates:t};return Mt(i,e,n)}function At(t,e){void 0===e&&(e="kilometers");var n=Lt[e];if(!n)throw new Error(e+" units is invalid");return t*n}function Et(t,e){void 0===e&&(e="kilometers");var n=Lt[e];if(!n)throw new Error(e+" units is invalid");return t/n}function St(t){var e=t%(2*Math.PI);return 180*e/Math.PI}function Pt(t){var e=t%360;return e*Math.PI/180}function Ot(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function Dt(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return t.geometry.coordinates;if("Point"===t.type)return t.coordinates}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function It(t){return"Feature"===t.type?t.geometry:t}function Rt(t,e,n){void 0===n&&(n={});var i=Dt(t),r=Dt(e),o=Pt(r[1]-i[1]),a=Pt(r[0]-i[0]),s=Pt(i[1]),l=Pt(r[1]),c=Math.pow(Math.sin(o/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(s)*Math.cos(l);return At(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),n.units)}var jt=Rt;function Ct(t,e,n){if(void 0===n&&(n={}),!0===n.final)return Nt(t,e);var i=Dt(t),r=Dt(e),o=Pt(i[0]),a=Pt(r[0]),s=Pt(i[1]),l=Pt(r[1]),c=Math.sin(a-o)*Math.cos(l),h=Math.cos(s)*Math.sin(l)-Math.sin(s)*Math.cos(l)*Math.cos(a-o);return St(Math.atan2(c,h))}function Nt(t,e){var n=Ct(e,t);return n=(n+180)%360,n}function zt(t,e,n,i){void 0===i&&(i={});var r=Dt(t),o=Pt(r[0]),a=Pt(r[1]),s=Pt(n),l=Et(e,i.units),c=Math.asin(Math.sin(a)*Math.cos(l)+Math.cos(a)*Math.sin(l)*Math.cos(s)),h=o+Math.atan2(Math.sin(s)*Math.sin(l)*Math.cos(a),Math.cos(l)-Math.sin(a)*Math.sin(c)),u=St(h),d=St(c);return kt([u,d],i.properties)}function Gt(t,e,n){void 0===n&&(n={});for(var i=It(t),r=i.coordinates,o=0,a=0;a=o&&a===r.length-1)break;if(o>=e){var s=e-o;if(s){var l=Ct(r[a],r[a-1])-180,c=zt(r[a],s,l,n);return c}return kt(r[a])}o+=jt(r[a],r[a+1],n)}return kt(r[r.length-1])}var Bt={units:"kilometers"},Zt=function(t){return Tt(t.map((function(t){return[t.lng||t.lon,t.lat]})))},Ut=function(t){var e=t||{},n=e.line,i=e.distance,r=e.unitOptions,o=void 0===r?Bt:r,a=Gt(n,i,o);if(a){var s=a.geometry.coordinates,l=s;return{lng:l[0],lat:l[1],lon:l[0]}}return{}},Yt=function(t,e){var n=kt([t.lng,t.lat]),i=kt([e.lng,e.lat]),r=jt(n,i,Bt);return r},Wt=function(t){var e=t.lng,n=t.lon,i=t.lat;return t.lon=void 0==n?1*e:1*n,t.lng=t.lon,t.lat=1*i,t},Ft=function(t){var e=t.p1,n=t.p2,i=t.fakeP1,r=t.fakeP2,a=t.gapDistance,s=t.needConsider360,l=void 0===s?0:s,c=Yt(i,r),h=200;if(h=2222.4,c200&&S>200&&(L=L==w?x:w);var P=y.map((function(t){return{lat:t.lat,lon:t.lon+L,lng:t.lng+L}})),O=e;if(0!=l)if(l>0&&e.lng<0&&n.lng>0)O=Object(o["a"])(Object(o["a"])({},e),{},{lon:e.lng+l,lng:e.lng+l});else if(l<0){var D=!(n.lng<0&&n.lng>-180&&e.lng>0&&e.lng<180)||e.lng*n.lng<0;D||(m["a"].log("_kDistancePlanroutes>>>3",l,e,n),O=Object(o["a"])(Object(o["a"])({},e),{},{lon:e.lng+l,lng:e.lng+l}));var I=P[0],R=Math.abs(I.lng-e.lng);R>90&&(O=Object(o["a"])(Object(o["a"])({},e),{},{lon:e.lng+l,lng:e.lng+l}))}P.unshift(O);var j=n;return P.push(j),P},Vt=function(t){return Ft(t)},Qt=function(t,e,n){var i,r=n||{},o=r.gapDistance,a=void 0===o?100:o,s=r.needConsider360,l=void 0===s?0:s,c=Wt(t),h=Wt(e),u=vt["r"](c.lng),d=vt["r"](h.lng),p={lon:u,lng:u,lat:c.lat},f={lon:d,lng:d,lat:h.lat},m=Math.abs(u-d),g={p1:c,p2:h,fakeP1:p,fakeP2:f,gapDistance:a,needConsider360:l};return i=m<200?Ft(g):Vt(g),i},Ht=Qt,Jt="DRAW_SHIP_LABEL_MODEL_NAME_SPEED",Xt={drawShipLabelModelonlyNameColor:"rgba(100,101,102,1)",drawShipLabelModelonlySpeedColor:"rgba(255,0,0,1)",drawShipLabelModeltextStrokeStyle:"rgba(255,255,255,1)"},Kt=function(){return Xt},qt=function(t){for(var e,n=0,i=t[0],r=1;r-90&&a<90||(o>0&&a<0?n=360:o<0&&a>0&&(n=-360),i=e))}return n},$t=function(t){var e,n,i,r,o,a,s,l,c,h=[],u=t[0];h.push(u);for(var d=1;d180&&(o=e.lng-360,a=e.lng+360,s=Math.abs(u.lng-o),l=Math.abs(u.lng-a),c=so||ca||h=0;h--){var u=i[h],d=this._buildTestBound(u);if(e=n.search(d),0==e.length)return i[h]}return null},findInsertBoundNoConflictConsider:function(t){t.query;var e=t.boundlist,n=t.iteratorDirection,i=void 0===n||n,r=void 0==i||i;if(r)for(var o=0;o=0;s--){var l=e[s];return l}return null},_extendToLabelElement_drawShipLabelModel:function(t,e){var n=t.el.drawShipLabelModel;if(Jt==n){var i=e||{},r=i.w,o=i.h,a=[[-1*r/2,-1*o]],s=[[-1*r/2,o]],l=[[0,1]];return{dtree:a,dtext:s,mi:l}}return null},extendToLabelElement:function(t,e){var n=t.ctx,i=t.layer,r=t.el,o=t.style,s=e||{},l=s.paddingSize,c=void 0===l?0:l,h=r||{},u=h.lat,d=void 0===u?0:u,p=h.lon,f=void 0===p?null:p,m=h.lng,g=void 0===m?0:m,y=h.labelText,_=o||{},v=_.anchorSize,b=void 0===v?20:v,w=_.fontSize,x=void 0===w?12:w,L=_.textColor,M=void 0===L?"black":L,k=_.model,E=void 0===k?"mi":k;d*=1,f=null!=f?1*f:1*g;var S=y;a["Util"].isArray(y)&&(S=y[0]);var P={lat:d,lng:f},O=this.convertLatLngToXY({layer:i,latlng:P}),D=x+"px Verdana";n.font=D;var I=vt["o"](S,D,6),R=x,j=O.x+I;j+=2*c;var C=O.y+R;C+=2*c;var N=a["bounds"](a["point"](O.x,O.y),a["point"](j,C)),z=O.x,G=O.y,B=[[0,-1*R],[0,0],[-1*I,0],[-1*I,-1*R]],Z=[[0,0],[0,0+R],[-1*I,R],[-1*I,0]],U=[[1,-1],[1,1],[-1,1],[-1,-1]];if("mi"!=E&&(B=[[0,-1*R],[0,0],[-1*I,0],[-1*I,-1*R]],Z=[[0,0],[0,0+R],[-1*I,R],[-1*I,0]],U=[[1,-1],[1,1],[-1,1],[-1,-1]]),t&&t.el&&t.el.hasOwnProperty("drawShipLabelModel")&&t.el.drawShipLabelModel){var Y=this._extendToLabelElement_drawShipLabelModel(t,{w:I,h:R});Y&&(B=Y.dtree||B,Z=Y.dtext||Z,U=Y.mi||U)}var W=U.map((function(t,e){var n=z+t[0]*b,i=G+t[1]*b;return{x:n+B[e][0],y:i+B[e][1],w:I+2*T,h:R+2*A,textX:n+Z[e][0],textY:i+Z[e][1],paddingSize:c,anchorX:n,anchorY:i,ow:I,oh:R,font:D}})),F={boundlist:W,bounds:N,x:O.x,y:O.y,font:D,textColor:M,labelText:y,textWidth:I,textHeight:x,x_rb:j,y_rb:C};return r&&r.nameBackgroundColor&&r.nameBackgroundColor.length>0&&(F.nameBackgroundColor=r.nameBackgroundColor),r&&r.nameColor&&r.nameColor.length>0&&(F.nameColor=r.nameColor),r&&r.nameBackgroundGlobalAlpha&&r.nameBackgroundGlobalAlpha>=0&&(F.nameBackgroundGlobalAlpha=r.nameBackgroundGlobalAlpha),F},distanceBaseOnXY:function(t){var e=t.layer,n=t.latlng0,i=t.latlng1,r=this.convertLatLngToXY({layer:e,latlng:n}),o=this.convertLatLngToXY({layer:e,latlng:i}),a=r.x-o.x,s=r.y-o.y;return a=Math.pow(a,2),s=Math.pow(s,2),Math.sqrt(a+s)},convertLatLngToXY:function(t){var e=t.layer,n=t.latlng,i=n;if(n instanceof Array)i={lat:n[0],lng:n[1]};else{var r=n||{},o=r.lng;o&&(i.lon=o)}i=this.getMapToChartLatLng(i);var a=e._map.latLngToLayerPoint(i);return a},convertLatLngToXYNoMapToChart:function(t){var e=t.layer,n=t.latlng,i=n;n instanceof Array&&(i={lat:n[0],lng:n[1]});var r=e._map.latLngToLayerPoint(i);return r},_drawLineByLatLngs:function(t){var e=t.ctx,n=t.layer,i=t.latlng0,r=t.latlng1,o=t.style,a=this.convertLatLngToXY({layer:n,latlng:i}),s=this.convertLatLngToXY({layer:n,latlng:r});this.drawLineByXY({ctx:e,layer:n,xy0:a,xy1:s,style:o})},drawBezierCurve:function(t){var e=t.ctx,n=t.layer,i=t.latlng0,r=t.latlng1,a=t.latlng2,s=t.style,l=this.convertLatLngToXY({layer:n,latlng:i}),c=this.convertLatLngToXY({layer:n,latlng:r}),h=this.convertLatLngToXY({layer:n,latlng:a}),u=s||{};wt["c"](Object(o["a"])({ctx:e,x0:l.x,y0:l.y,x1:c.x,y1:c.y,x2:h.x,y2:h.y},u))},___debug:function(t){m["a"].log("__debug____")},drawLineByLatLngs:function(t){var e,n=t.ctx,i=t.layer,r=t.latlng0,o=t.latlng1,a=t.style,s=t.dy,l=t.needConsider360,c=t.showDashLine;e=0==s?[r,o]:Ht(r,o,{needConsider360:l});var h,u=e[0];for(h=1;ha)return}catch(e){}return{p1:r,p2:o}},drawArrowOnLineByLatLngs:function(t){var e=t.ctx,n=t.layer,i=(t.latlng0,t.latlng1,t.style),r=this._getMiddleField(t),a=r||{},s=a.p1,l=a.p2;if(s&&l){var c=this.convertLatLngToXY({layer:n,latlng:s}),h=this.convertLatLngToXY({layer:n,latlng:l}),u=i||{};wt["b"](Object(o["a"])({ctx:e,x0:c.x,y0:c.y,x1:h.x,y1:h.y},u))}},drawFillPolygonByLatLngs:function(t){var e=this,n=t.ctx,i=t.layer,r=t.latlngs,a=t.style,s=r.map((function(t){return e.convertLatLngToXY({layer:i,latlng:t})})),l=a||{};wt["j"](Object(o["a"])({ctx:n,list:s},l))},drawCircleByLatLng:function(t,e){var n=t.ctx,i=t.layer,r=t.latlng,a=t.r,s=t.style,l=Object(o["a"])(Object(o["a"])({},s),e||{}),c=this.convertLatLngToXY({layer:i,latlng:r});this.drawCircleByXY({ctx:n,xy:c,r:a,style:l})},drawCircleBorderByLatLng:function(t,e){var n=t.ctx,i=t.layer,r=t.latlng,a=t.r,s=t.style,l=Object(o["a"])(Object(o["a"])({},s),e||{}),c=this.convertLatLngToXY({layer:i,latlng:r});this.drawCircleBorderByXY({ctx:n,xy:c,r:a,style:l})},drawCircleBorderByXY:function(t){var e=t.ctx,n=t.xy,i=t.r,r=t.style,a=r||{};wt["e"](Object(o["a"])({ctx:e,r:i,x:n.x,y:n.y},a))},drawFillCircleByLatLng:function(t){var e=t.ctx,n=t.layer,i=t.latlng,r=t.r,o=t.style,a=this.convertLatLngToXY({layer:n,latlng:i});this.drawFillCircleByXY({ctx:e,xy:a,r:r,style:o})},drawFillCircleByXY:function(t){var e=t.ctx,n=t.xy,i=t.r,r=t.style,a=r||{};wt["g"](Object(o["a"])({ctx:e,r:i,x:n.x,y:n.y},a))},drawCircleByXY:function(t){var e=t.ctx,n=t.xy,i=t.r,r=t.style,a=r||{};wt["d"](Object(o["a"])({ctx:e,r:i,x:n.x,y:n.y},a))},drawLabelWithText:function(t){var e=t.ctx,n=t.insertBound,i=t.el,r=t.style,a={x0:n.anchorX,y0:n.anchorY,x1:i.x,y1:i.y,lineWidth:r.anchorLineWidth||1,strokeStyle:r.anchorLineColor||"red",globalAlpha:r.anchorGlobalAlpha||1};void 0!=i.drawAnchorLine&&1!=i.drawAnchorLine||wt["h"](Object(o["a"])({ctx:e},a));var s={x:n.textX-T,y:n.textY-12,width:n.w,height:n.h};wt["q"](Object(o["a"])({ctx:e,strokeStyle:"black"},s)),wt["l"](Object(o["a"])({ctx:e,fillStyle:r.textBackgroundColor||"white",globalAlpha:1},s));var l={x:n.textX,y:n.textY,text:i.labelText,fillStyle:r.textColor||"#2d3436",font:i.font};wt["r"](Object(o["a"])({ctx:e},l))},drawTextByLatLng:function(t){var e=t.ctx,n=t.layer,i=t.latlng,r=t.text,o=t.style,a=void 0===o?{}:o,s=this.convertLatLngToXY({layer:n,latlng:i});this.drawTextByXY({ctx:e,layer:n,xy:s,text:r,style:a})},drawTextByXY:function(t){var e=t.ctx,n=(t.layer,t.xy),i=t.text,r=t.style,a=void 0===r?{}:r;wt["r"](Object(o["a"])({ctx:e,x:n.x,y:n.y,text:i},a))},getDistanceInMeters:function(t,e,n){var i=t._map;return vt["e"](i,e,n)},calcPixelDistance:function(t,e,n){var i=this.convertLatLngToXY({layer:t,latlng:e}),r=this.convertLatLngToXY({layer:t,latlng:n});return Math.sqrt(Math.pow(i.x-r.x,2)+Math.pow(i.y-r.y,2))}}),ee=te,ne=i("b0fb"),ie=i("7a1d"),re=i("c1df"),oe=i.n(re),ae=(i("20d6"),function(t){t&&window&&(window.__hf_kship=t)}),se=function(){return window&&window.__hf_kship?window.__hf_kship:null},le=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;window&&(window.__hf_setKShipRtreeResult=t)},ce=function(){if(window)return window.__hf_setKShipRtreeResult},he=i("633b"),ue=0,de=1,pe=1,fe={top:"55px",left:"5px",zIndex:"1000"},me={top:"60px",left:"400px",zIndex:"1000"};function ge(t){var e=document.createElement("style");e.type="text/css";try{e.appendChild(document.createTextNode(t))}catch(i){e.styleSheet.cssText=t}var n=document.getElementsByTagName("head")[0];n.appendChild(e)}a["Draw"].RulerTooltip=a["Draw"].Tooltip.extend({initialize:function(t){var e=t||{},n=e.map,i=e.mapEl;this._map=n,this._visible=!1;var r=document.getElementById(i)||document.body;this._container=n.options.drawControlTooltips?a["DomUtil"].create("div","leaflet-draw-tooltip kai",r):null,m["a"].log("RulerTooltip",n.options.drawControlTooltips),this._singleLineLabel=!1,ge(".leaflet-draw-tooltip:before{display:none}"),this._map.on("mouseout",this._onMouseOut,this),this._htmlRoot=this.updatePosition();var o=fe||{},s=o.top,l=o.left,c=o.zIndex;m["a"].log("phoneDefaultOptions",fe,this._container),this._container&&(this._container.style.visibility="hidden",this._container.style.top=s,this._container.style.left=l,this._container.style.zIndex=c,this._container.style.position="absolute",this._container.style.transform="none")},dispose:function(){this._map.off("mouseout",this._onMouseOut,this),this._container&&(a["DomUtil"].remove(this._container),this._container=null)},setPhoneOptions:function(t){this._phoneOptions=Object(o["a"])(Object(o["a"])({},fe),t)},updatePosition:function(t){m["a"].log("updatePosition",this._container);var e=this._container;if(this._container&&this._visible){var n=this._phoneOptions||fe;Object(he["b"])()&&(n=me||fe);var i=n,r=i.top,o=i.left,a=i.zIndex;e.style.visibility="inherit",e.style.top=r,e.style.left=o,e.style.position="absolute",e.style.transform="none",e.style.zIndex=a}return this}}),a["Icon"].KRulerLabel=a["Icon"].extend({initialize:function(t){this._text=t.text||0,this._fontSize=t.fontSize||4;var e=void 0!=t.rotate?t.rotate:"0";this._rotate=["rotate(",e,"deg)"].join(""),t.iconSize=[16,16],a["Icon"].prototype.initialize.apply(this,[t])},createIcon:function(){var t=document.createElement("div");return this._setIconStyles(t,"icon"),t=this._createNumber(t),t},_buildDiv:function(t){var e=document.createElement("div"),n=document.createElement("div");n.innerText=this._text,n.style.position="absolute";var i=0,r=5;return this._text&&this._text.length>0&&(i=-1*parseInt(this._text.length*r/2),n.style.left=i+"px"),e.appendChild(n),e.style.display="inline-block",e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.color="black",e.style.minWidth="100px",e.style.lineHeight="16px",e.style.textAlign="left",e.style.transform=this._rotate,e.style.transformOrigin="0 0 ",e.style.textShadow="-1px 0 white,0 1px white,1px 0 white,0 -1px white",t.appendChild(e),e},_createNumber:function(t){this._buildDiv(t);return t}}),a["Draw"].Ruler=a["Draw"].Polyline.extend({statics:{TYPE:"polyline"},Poly:a["Polyline"],options:{allowIntersection:!0,repeatMode:!0,drawError:{color:"#b00b00",timeout:2500},icon:new a["DivIcon"]({iconSize:new a["Point"](8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new a["DivIcon"]({iconSize:new a["Point"](20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),guidelineDistance:20,maxGuideLineLength:4e3,shapeOptions:{stroke:!0,color:"#FF7F27",weight:2,opacity:.5,fill:!1,clickable:!0},metric:!1,feet:!1,nautic:!0,showLength:!0,zIndexOffset:2e3,factor:1,maxPoints:0},initialize:function(t,e){this._mapEl=e.el||"",this._enableMode="web",this._phoneOptions={},this._callBack=e.callBack,a["Browser"].touch&&(this.options.icon=this.options.touchIcon),this.options.drawError.message=a["drawLocal"].draw.handlers.polyline.error,e&&e.drawError&&(e.drawError=a["Util"].extend({},this.options.drawError,e.drawError)),this.type=a["Draw"].Polyline.TYPE,this._setUnitValue=ue,this._rulerMarkerMode=pe,a["Draw"].Feature.prototype.initialize.call(this,t,e)},__get_course:function(t,e){var n=Object(ie["j"])(t,e),i=n;return n<10?i="00"+n:n<100&&(i="0"+n),i},__createToolTipForPhoneMode:function(){return!!this._isPhoneMode()&&(this._tooltip=new a["Draw"].RulerTooltip({map:this._map,mapEl:this._mapEl}),this._tooltip.setPhoneOptions&&this._tooltip.setPhoneOptions(this._phoneOptions),!0)},addHooks:function(){this.clearLine(),a["Draw"].Feature.prototype.addHooks.call(this),this._map&&(this.__createToolTipForPhoneMode(),this._markers=[],this._markerGroup=new a["LayerGroup"],this._map.addLayer(this._markerGroup),this._poly=new a["Polyline"]([],this.options.shapeOptions),this._distanceLayerGroup=new a["LayerGroup"],this._map.addLayer(this._distanceLayerGroup),this._distanceLayerGroup2=new a["LayerGroup"],this._map.addLayer(this._distanceLayerGroup2),this._mouseMarker||(this._mouseMarker=a["marker"](this._map.getCenter(),{icon:a["divIcon"]({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this).on("dblclick",this._myMouseDblclick,this).addTo(this._map),this._kmobile_dragging=!1,this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._kOnZoomEnd,this).on("touchstart",this._konTouch,this).on("click",this._myMouseClick,this).on("zoomend",this._kOnZoomEnd,this).on("zoomstart",this._kdragstart,this).on("dragstart",this._kdragstart,this).on("dragend",this._kdragend,this))},_kdragstart:function(){m["a"].log("_konTouch _kdragstart"),this._kmobile_dragging=!0},_kdragend:function(){m["a"].log("_konTouch _kdragend"),this._kmobile_dragging=!1},_kOnZoomEnd:function(t){this._kmobile_dragging=!1;var e=this._isPhoneMode();e||this._onZoomEnd(t)},_konTouch:function(t){var e=this,n=this._isPhoneMode();m["a"].log("_konTouch",n,this._kmobile_dragging),n&&setTimeout((function(){if(!e._kmobile_dragging){e._onTouch(t);var n={lat:0,lng:0};e._updateTooltip(n)}}),150)},_myMouseDblclick:function(t){m["a"].log("_mouseDblclick",t),this._isPhoneMode()||this._myFinishShape(t)},_isPhoneMode:function(){return"phone"==this._enableMode},enable:function(t){m["a"].log("overrider enable is called",this._tooltip);var e=t||{},n=e.mode;this._enableMode=n||"web",this._isPhoneMode()&&(m["a"].log("overrider enable is called",this._phoneOptions),this._phoneOptions=t||{}),a["Draw"].Feature.prototype.enable.call(this)},_myMouseClick:function(t){this._enabled?m["a"].log("_myMouseClick",t,this._enabled):(m["a"].log("_myMouseClick",t),this.enable(Object(o["a"])({mode:this._enableMode},this._phoneOptions)))},removeHooks:function(){m["a"].log("removeHooks is called"),a["Draw"].Feature.prototype.removeHooks.call(this),this._displayResult(),this._clearHideErrorTimeout(),this._cleanUpShape(),null!=this._tooltip&&(this._tooltip.dispose&&this._tooltip.dispose(),this._tooltip=null),this._mouseMarker.off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this),this._map.removeLayer(this._mouseMarker),this._clearGuides(),this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._kOnZoomEnd,this).off("zoomend",this._kOnZoomEnd,this).off("touchstart",this._konTouch,this).off("dragestart",this._kdragstart,this).off("dragend",this._kdragend,this).off("click",this._onTouch,this)},complete:function(){m["a"].log("complete is called"),this.clearLine(),this.disable(),this._mouseMarker&&this._mouseMarker.off("dblclick",this._myMouseDblclick,this),this._map.off("click",this._myMouseClick,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._kOnZoomEnd,this).off("touchstart",this._konTouch,this).off("zoomend",this._kOnZoomEnd,this).off("zoomstart",this._kdragstart,this).off("dragstart",this._kdragstart,this).off("dragend",this._kdragend,this),this._mouseMarker&&delete this._mouseMarker},clearLine:function(){null!=this._poly&&(this._map.removeLayer(this._markerGroup),delete this._markerGroup,this._map.removeLayer(this._poly),delete this._poly),null!=this._textmarker&&(this._map.removeLayer(this._textmarker),delete this._textmarker),this._resultDistanceLayerGroup&&(this._map.removeLayer(this._resultDistanceLayerGroup),delete this._resultDistanceLayerGroup),this._distanceLayerGroup&&(this._map.removeLayer(this._distanceLayerGroup),delete this._distanceLayerGroup),this._distanceLayerGroup2&&(this._map.removeLayer(this._distanceLayerGroup2),delete this._distanceLayerGroup2)},_myFinishShape:function(t){m["a"].log("this._myFinishShape",t),this._finishShape(t)},_finishShape:function(){this._fireCreatedEvent(),m["a"].log("2106 _finishShape is called"),this.disable()},_updateFinishHandler:function(){var t=this._markers.length;t>1&&this._markers[t-1].on("dblclick",this._myFinishShape,this),t>2&&this._markers[t-2].off("dblclick",this._myFinishShape,this),t>1&&this._addLineDistance()},_addLineDistance:function(){var t=this._poly;if(m["a"].log("2106 Draw.Ruler _addLineDistance"),t){var e=t.getLatLngs(),n=e.length-2,i=e.length-1,r=e[n],o=e[i],s=this._getPolylineWithText(r,o);this._distanceLayerGroup||(this._distanceLayerGroup=new a["LayerGroup"],this._map.addLayer(this._distanceLayerGroup)),this._distanceLayerGroup.addLayer(s)}},getLatLngs:function(){var t=this._poly;return t?t.getLatLngs():[]},setLatLngs:function(t){var e=this._poly;e&&(m["a"].log("2106 setLatLngs",t),this._poly.setLatLngs(t))},_convertLatLngToXY:function(t){return this._map.latLngToLayerPoint(t)},_getPolylineWithTextOnPoint:function(t,e){var n=this._getLineDistance(t,e),i=this.__get_course(t,e),r=[];r.push(n),r.push(i+"°");var o=[16,16],s=new a["Icon"].KRulerLabel({iconAnchor:o,text:r.join(" ")}),l=e,c=a["marker"](l,{icon:s});return c},_getPolylineWithText:function(t,e){return this._rulerMarkerMode==pe?this._getPolylineWithTextOnLine(t,e):this._getPolylineWithTextOnPoint(t,e)},_getPolylineWithTextOnLine:function(t,e,n,i){var r=this._getLineDistance(t,e),o=this.__get_course(t,e),s=[];s.push(r),s.push(o+"°");var l=s.join(" "),c=n||t,h=i||e,u=this._convertLatLngToXY(c),d=this._convertLatLngToXY(h),p=u.x,f=u.y,m=d.x,g=d.y,y=180*Math.atan((g-f)/(m-p))/Math.PI,_=new a["Polyline"]([c,h]);_.addTo(this._map);var v=_.getCenter();this._map.removeLayer(_);var b=[1,1],w=new a["Icon"].KRulerLabel({iconAnchor:b,text:l,rotate:y}),x=a["marker"](v,{icon:w});return x},_getLineDistance:function(t,e){var n=this.__get_distance(t,e);if(n<926)return n.toFixed(0)+" m";var i=this._calcDistanceConsiderUnit(n);return i},_calcDistanceConsiderUnit:function(t){var e=this._setUnitValue==de,n=a["GeometryUtil"].readableDistance(t,e,this.options.feet,this.options.nautic,this.options.precision);return n},_createMarker:function(t){var e=this.options.shapeOptions||{},n=e.color||"#FF7F27",i=a["circleMarker"](t,{radius:2,color:n,fillColor:n,weight:2});return this._markerGroup.addLayer(i),i},_onMouseMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent),n=this._map.layerPointToLatLng(e);if(this._isPhoneMode())this._updateTooltip(n);else{this._currentLatLng=n,this._updateTooltip(n),this._updateGuide(e),this._mouseMarker.setLatLng(n),a["DomEvent"].preventDefault(t.originalEvent);var i=new Array;i=[].concat(this._poly._latlngs),i.push(n),this._callBack(i)}},_updateTooltip:function(t){var e=t;if(!this._isPhoneMode()){var n=ce();if(n){var i=this._map.getBounds(),r=i.getNorthEast(),o={lat:r.lat,lng:r.lng+200};e=o}}if(e){var a=this._getTooltipText(e);this._isPhoneMode()?(this._tooltip.setPhoneOptions&&this._tooltip.setPhoneOptions(this._phoneOptions),this._tooltip.updatePosition(e)):e&&this._tooltip.updatePosition(e),this._errorShown||this._tooltip.updateContent(a)}},_getDirectionValue:function(){var t=this._poly;if(t&&t._latlngs&&t._latlngs.length>0){var e=[],n=this._currentLatLng,i=t._latlngs[t._latlngs.length-1],r=this.__get_course(i,n);return null!=r&&(a["LANG"]&&"en-US"==a["LANG"]?e.push("Direction"):e.push("方位"),e.push(r+"°")),e.join(" ")}return""},__get_distance:function(t,e){return this._map.distance(t,e)*(this.options.factor||1)},_getDistanceValue:function(){var t=this._poly;if(!t)return"";var e=this._poly.getLatLngs();if(!(t&&e&&e.length>0))return"";var n,i=[];if(a["LANG"]&&"en-US"==a["LANG"]?i.push("Total "):i.push("总里程 "),this._isPhoneMode()){n=0,m["a"].log("distance latlngs",e,e.length);for(var r=0;r0?this._isPhoneMode()?this._getDistanceValue():[this._getDistanceValue(),this._getDirectionValue()].join(" "):""},_getTooltipText:function(t){var e,n=[];return e=this._getTextValue(),this._isPhoneMode()||(a["LANG"]&&"en-US"==a["LANG"]?n.push("Double Click to complete"):n.push("双击结束")),{text:n.join(""),subtext:e}},_displayTotalLatLng:function(t){return t[t.length-1]},_clearResult:function(){this._textmarker&&(this._map.removeLayer(this._textmarker),this._textmarker=null),this._resultDistanceLayerGroup&&(this._resultDistanceLayerGroup.clearLayers(),this._map.removeLayer(this._resultDistanceLayerGroup),this._resultDistanceLayerGroup=null),this._distanceLayerGroup&&(this._map.removeLayer(this._distanceLayerGroup),delete this._distanceLayerGroup),this._distanceLayerGroup2&&(this._map.removeLayer(this._distanceLayerGroup2),delete this._distanceLayerGroup2)},_displayResult:function(){var t=this._getDistanceValue();if(m["a"].log("2106 Draw.Ruler.js _displayResult",t),this._clearResult(),""!=t){var e=this._poly,n=["",t,""].join(""),i=a["divIcon"]({html:n,className:"",iconSize:[200,-20]}),r=this._displayTotalLatLng(e.getLatLngs());this._textmarker=a["marker"](r,{icon:i}).addTo(this._map)}var o=this._poly;if(o){var s=o.getLatLngs();this._resultDistanceLayerGroup=new a["LayerGroup"];for(var l=0;l0))return{labels:l};var c=s.map((function(t){return e.processDayLineTransform(t)}));return c.forEach((function(t){e._generateTrajectory({ctx:i,layer:r,query:a,line:t,labels:l})})),{labels:l}},__extend180hacker:function(t,e){if(e&&e.length>0){var n=e[0];if(n.extend180){var i=[-360,0,360];return i.map((function(t){for(var n=[],i=0;i0||(n=vt["h"](t,e)),n},consider360:function(t){return qt(t)},_generateTrajectory:function(t){var e=t.ctx,n=t.layer,i=t.query,r=t.line,o=t.labels,a=r.latlngs||[];if(!a||0!=a.length){var s=this.extend180(n._map,a),l=this.consider360(a);if(a[0].lng<0||a[a.length-1].lng<0)for(var c=1;c<3;c++){var h=a.map((function(t){var e=we(t);return e.lng=1*t.lng+360,e.lon=1*t.lon+360,e}));s.push(h)}this._generateTrajectory_impl({ctx:e,layer:n,query:i,ret180:s,els:a,needConsider360:l,labels:o})}},_generateTrajectory_impl:function(t){var e=this,n=t||{},i=n.ctx,r=n.layer,o=n.query,a=n.ret180,s=n.els,l=n.needConsider360,c=n.labels;a.map((function(t,n){e._generateTrajectory_impl_nlatlngs({ctx:i,layer:r,query:o,ret180:a,els:s,needConsider360:l,labels:c,nlatlngs:t,nIndex:n})}))},_generateTrajectory_impl_nlatlngs:function(t){var e=t||{},n=e.ctx,i=e.layer,r=e.query,o=(e.ret180,e.els),a=e.needConsider360,s=e.labels,l=e.nlatlngs,c=(e.nIndex,o[0]),h=we(c);h.elToTooltip=c.elToTooltip;var u,d,p=l[0];h.lat=p.lat,h.lon=p.lon,h.lng=p.lng;var f=o[o.length-1],m=l[l.length-1],g=we(f);g.elToTooltip=f.elToTooltip,g.lat=m.lat,g.lon=m.lon,g.lng=m.lng,this.doDrawPointAndLabel({ctx:n,layer:i,index:l.length,labels:s,latlng:l[l.length-1],current:g,query:r});for(var y=1;y0&&(_="#00a8ff"),-1!=p&&p.length>0&&(_=p);var v=h;m>0&&(v=m);var b=l;y>0&&(b=y);var w={strokeStyle:_,r:b,lineWidth:v};return w},_drawTrajectoryPoint:function(t){t.style=this._getTrajectoryPointStyle(t),this.drawCircleByLatLng(t)},__buildLabelText:function(t){var e=this.getElementOptions(),n=t||{},i=n.lat,r=n.lon,o=n.lng,a=(n.la,n.lo,n.updatetime),s=n.speed,l=n.course;if(e.showLabel){var c=[];if(c.push(be(a)),e.showSpeed&&c.push(s+"kts"),e.showCourse){var h="";"-"!=l&&(h=ne["c"](l)),c.push(h)}return e.showLatLngLabel&&c.push(xe({lat:i,lng:o,lon:r})),c.join("/")}return""},_getTrajectoryLabelText:function(t){var e=[];if(t&&t.label&&t.label.length>0)e.push(t.label);else{var n=this.__buildLabelText(t);e.push(n)}return t&&(t.labelText=e.join(" ")),t},_getTrajectoryWidthLine:function(t){var e=t||{},n=e.previousLatLngObject,i=e.currentLatLngObject,r=e.style,o=r||{},a=o.trajectoryLineWidth,s=void 0===a?1:a,l=n||{},c=(l.lineWidth,i||{}),h=c.lineWidth;return h>0?h:s},_getTrajectoryLineStyle:function(t){var e,n=t.previousLatLngObject,i=t.currentLatLngObject,r=t.options,o=t.style,a=(t.ctx,t.layer,t.lineNo,n||{}),s=(a.speed,i||{}),l=(s.speed,o||{}),c=l.trajectoryLineColor,h=void 0===c?ve:c,u=(l.trajectoryLowSpeedLineColor,r||{}),d=u.trajectoryLowSpeedAlpha,p=void 0===d?2:d,f=this._getLowSpeedTrajectoryLineColor(t);f&&(h=f,e=p),i&&i.lineColor&&(h=i.lineColor);var m=this._getTrajectoryWidthLine(t),g={strokeStyle:h,lineWidth:m};if(e){var y=e/10;g.globalAlpha=y}return g},_lightColor:function(t){var e=t||{},n=e.style,i=e.options,r=n||{},o=r.trajectoryLineColor,a=void 0===o?ve:o,s=i||{},l=s.colorComplementary,c=void 0!==l&&l,h=a;return c&&(h=ie["d"](a)),h},_getLowSpeedTrajectoryLineColor:function(t){var e=t.previousLatLngObject,n=t.currentLatLngObject,i=(t.options,t.style),r=(t.ctx,t.layer,t.lineNo,e||{}),o=r.speed,a=void 0===o?"":o,s=n||{},l=s.speed,c=void 0===l?"":l,h=i||{},u=h.trajectoryLowSpeedLineColor;return a=a}}),ke=function(t){return new Me(t)},Te=function(t,e,n){var i,r,o=Object(ie["r"])(e,t);1==n?(i=Object(ie["f"])(t,e),r=Object(ie["j"])(e,t)):(i=o.distance,r=o.course),i/=1852,i=i.toFixed(i>0?0:2);var a=r;return r<10?a="00"+r:r<100&&(a="0"+r),{course:r,distance:i,courseText:a}},Ae=function(){return{includeKdrawTextOnLine:function(t,e){var n=t.previousLatLngObject,i=t.currentLatLngObject,r=t.ctx,o=t.layer,a=t.dy;if(n.lat!=i.lat||n.lng!=i.lng){var s=o._map,l=n,c=i,h=Te(l,c,a),u=h||{},d=u.distance,p=u.courseText,f=[];f.push(d+"nm"),f.push(p+"°");var m=f.join(" "),g=this.includeKdrawTextOnLineDrawable(r,s,l,c,m);if(g){var y=l,_=c;if(e.length>2){var v=Math.floor(e.length/2);y=e[v],_=e[v+1]}var b=y||l,w=_||c,x=s.latLngToLayerPoint(b),L=s.latLngToLayerPoint(w);this.drawTextAlongWithXY({ctx:r,xy0:x,xy1:L,text:m,style:{textStrokeStyle:"#fff",textStrokeLineWidth:3}})}}},includeKdrawTextOnLineDrawable:function(t,e,n,i,r){var o=e.latLngToLayerPoint(n),a=e.latLngToLayerPoint(i),s=o.x,l=o.y,c=a.x,h=a.y,u=Math.sqrt(Math.pow(s-c,2)+Math.pow(l-h,2)),d=t.measureText(r),p=d.width;return u>p}}},Ee=Me.include(Ae()),Se=Ee.extend({_drawTrajectoryLine:function(t){t.lineNo;var e=t.previousLatLngObject,n=t.currentLatLngObject,i=t.options,r=(t.style,t.ctx),o=t.layer,a=t.dy,s=void 0===a?0:a,l=t.needConsider360,c=this._getTrajectoryLineStyle(t),h={ctx:r,layer:o,latlng0:e,latlng1:n,style:c,dy:s,needConsider360:l,showDashLine:i.showDashLine},u=[];if(i.showLine&&(u=this.drawLineByLatLngs(h)||[],i.showDistanceCourse&&this.includeKdrawTextOnLine(t,u)),i.showArrow){var d=this._checkArrow(o,n,e);if(d){var p=this._getArrowStyle(t),f={ctx:r,layer:o,latlng0:e,latlng1:n,style:p};this.drawArrowOnLineByLatLngs(f)}}return u}}),Pe=Se.extend({_generateTrajectory_impl:function(t){var e=this.getElementOptions(),n=e||{},i=n.trajectoryType;return i&&U==i?this._n2730_generateTrajectory_impl(t):Se.prototype._generateTrajectory_impl.call(this,t)},_n2730_generateTrajectory_impl:function(t){var e=this,n=t.ctx,i=t.layer,r=t.query,o=t.ret180,a=t.els,s=t.needConsider360,l=t.labels;m["a"].log("n2730 _n2730_generateTrajectory_impl",t),o.map((function(t,c){var h=t.length;m["a"].log("n2730 len<3 use _generateTrajectory_impl_nlatlngs "),h<3?e._generateTrajectory_impl_nlatlngs({ctx:n,layer:i,query:r,ret180:o,els:a,needConsider360:s,labels:l,nlatlngs:t,nIndex:c}):e._n2730_generateTrajectory_impl_nlatlngs({ctx:n,layer:i,query:r,ret180:o,els:a,needConsider360:s,labels:l,nlatlngs:t,nIndex:c})}))},_n2730_generateTrajectory_impl_nlatlngs:function(t){var e=t||{},n=e.ctx,i=e.layer,r=(e.query,e.ret180,e.els,e.needConsider360,e.labels,e.nlatlngs),o=(e.nIndex,r.length),a=2,s=this._getTrajectoryLineStyle(t);s.globalAlpha=1,s.lineWidth=3,m["a"].log("n2730 newStyle",s);for(var l=Math.floor(o/a),c=0;c0?(s.forEach((function(t){var n=t.boundlist,o={query:a,boundlist:n},s=e.findInsertBound(o);if(s){e.insertXYElementToQuery({layer:r,query:a,el:s});var c={ctx:i,insertBound:s,el:t,style:l};e.drawLabelWithText(c)}})),{}):{}}}),Ie=function(t){return new De(t)},Re=ee.extend({realDraw:function(t){var e=this,n=t||{},i=n.ctx,r=n.layer,o=n.query,a=void 0===o?new M:o,s=this.getElements(),l=this.getElementStyle(),c=this.getElementOptions();if(!(s&&s.length>0))return{};var h=!0,u=this._getTrajectoryLabelMod(r,s),d=c.showLabel||c.showLatLngLabel;return d&&s.forEach((function(t,n){if(n%u==0){var o=t.boundlist,s={query:a,boundlist:o},c=e.findInsertBound(s);if(c){e.insertXYElementToQuery({layer:r,query:a,el:c});var d={ctx:i,insertBound:c,el:t,style:l};e.drawLabelWithText(d)}h=!h}})),{}},_getTrajectoryLabelMod:function(t,e){var n=t._map.getZoom(),i=e.length;return i>30&&n>12?7:i>30&&n>8?4:i>20&&n>6?3:1}}),je=function(t){return new Re(t)},Ce=function(t){var e=ne["a"](t.position);return e?(t.lat=e[1],t.lon=e[0],t.lng=e[0],t):null},Ne=function(t){var e=Ce(t);if(e){var n=e||{},i=n.lat,r=n.lon,s=n.accumulatetime,l=a["LANG"]&&"en-US"==a["LANG"]?"Stay for ":"停:",c=l+s;return Object(o["a"])(Object(o["a"])({},e),{},{lat:1*i,lon:1*r,labelText:c,_type:rt})}return null},ze=ee.extend({realDraw:function(t){var e=this,n=t||{},i=n.ctx,r=n.layer,o=n.query,a=void 0===o?new M:o,s=this.getElements(),l=[],c=this.getElementStyle(),h=this.getElementOptions();if(!(s&&s.length>0)||!h.showShipStopRecord)return{labels:l};for(var u=function(){var t=s[d],n=Ne(t);if(n){var o=vt["f"](r._map,1*n.lon);o.forEach((function(t){var o=vt["a"](n);o.lon=t;var s={ctx:i,layer:r,el:o,style:c};e.insertLatLngElementToQuery({layer:r,query:a,el:o}),l.push(e.extendToLabelElement(s))}))}},d=0;d0)||!u.showRouteSwellDirection)return{labels:c};for(var d=function(){var t=l[p],n=Be(t);if(n){var a=vt["f"](r._map,1*n.lon);a.forEach((function(t){var a=vt["a"](n);a.lon=t;var l=1*n.swell_d;a.direction=l,a.labelText="";var u={ctx:i,layer:r,el:a,style:h},d=l;d=d*Math.PI/180;var p=e._generateWindClickSearchBound({layer:r,latlng:a,ctx:i,radians:d,level:10}),f=p.bound,m=Object(o["a"])(Object(o["a"])(Object(o["a"])({},a),f),p);e.insertXYElementToQuery({layer:r,query:s,el:m});var g=e.extendToLabelElement(u);c.push(Object(o["a"])(Object(o["a"])({},m),g))}))}},p=0;py&&(y=t[0]),t[0]<_&&(_=t[0]),t[1]>v&&(v=t[1]),t[1]0&&o.showRouteSwellDirection?(r.forEach((function(t,n){e._draw(i,t)})),{}):{}},_draw:function(t,e){var n=We(),i=Object(o["a"])(Object(o["a"])({ctx:t},e),n||{});wt["m"](i)}}),Ve=function(t){return new Fe(t)},Qe=function(t){return t.level=t.cls,Object(o["a"])(Object(o["a"])({},t),{},{lat:1*t.lat,lon:1*t.lon,level:t.cls,_type:it})},He=ee.extend({realDraw:function(t){var e=this,n=t||{},i=n.ctx,r=n.layer,a=n.query,s=void 0===a?new M:a,l=this.getElements(),c=[],h=this.getElementStyle(),u=this.getElementOptions();if(!(l&&l.length>0)||!u.showWind)return{labels:c};for(var d=function(){var t=l[p],n=Qe(t);if(n){var a=vt["f"](r._map,1*n.lon);a.forEach((function(t){var a=vt["a"](n);a.lon=t;var l=n.windclass;a.level=l;var u=1*n.drawdirection,d=u-180,p=d*Math.PI/180;a.direction=p,a.labelText="";var f={ctx:i,layer:r,el:a,style:h},m=u;m=m*Math.PI/180;var g=e._generateWindClickSearchBound({layer:r,latlng:a,ctx:i,radians:m,level:l}),y=g.bound,_=Object(o["a"])(Object(o["a"])(Object(o["a"])({},a),y),g);e.insertXYElementToQuery({layer:r,query:s,el:_});var v=e.extendToLabelElement(f);c.push(Object(o["a"])(Object(o["a"])({},_),v))}))}},p=0;py&&(y=t[0]),t[0]<_&&(_=t[0]),t[1]>v&&(v=t[1]),t[1]0&&o.showWind?(r.forEach((function(t,n){e._drawWindLabel(i,t)})),{}):{}},_drawWindLabel:function(t,e){var n=Object(o["a"])({ctx:t},e);wt["u"](n)}}),Ke=function(t){return new Xe(t)},qe=function(t){return Object(o["a"])(Object(o["a"])({},t),{},{lat:1*t.lat,lon:1*t.lon,_type:it})},$e=ee.extend({realDraw:function(t){var e=this,n=t||{},i=n.ctx,r=n.layer,a=n.query,s=void 0===a?new M:a,l=this.getElements(),c=[],h=this.getElementStyle(),u=this.getElementOptions();if(!(l&&l.length>0)||!u.showWave)return{labels:c};for(var d=function(){var t=l[p],n=qe(t);if(n){var a=vt["f"](r._map,1*n.lon);a.forEach((function(t){var a=vt["a"](n);a.lon=t;var l=n.windspeed;a.level=l;var u=1*n.winddirection,d=u-180,p=d*Math.PI/180;a.direction=p,a.labelText="";var f={ctx:i,layer:r,el:a,style:h},m=u;m=m*Math.PI/180;var g=e._generateWaveClickSearchBound({layer:r,latlng:a,ctx:i,radians:m,level:l}),y=g.bound,_=Object(o["a"])(Object(o["a"])(Object(o["a"])({},a),y),g);e.insertXYElementToQuery({layer:r,query:s,el:_});var v=e.extendToLabelElement(f);c.push(Object(o["a"])(Object(o["a"])({},_),v))}))}},p=0;pg&&(g=t[0]),t[0]_&&(_=t[1]),t[1]1&&void 0!==arguments[1]?arguments[1]:1,n=nn(t);return n?n.replace("alpha",e):""},on=ee.extend({realDraw:function(t){var e=this,n=t||{},i=n.ctx,r=this.getElements(),o=this.getElementOptions();return r&&r.length>0&&o.showWave?(r.forEach((function(t,n){e._drawWaveLabel(i,t)})),{}):{}},_drawWaveLabel:function(t,e){var n=Object(o["a"])({ctx:t},e),i=e||{},r=i.wavevalue,a=void 0===r?"":r,s=i.waveAlpha,l=void 0===s?50:s,c=i.waveRadius,h=void 0===c?[30,50]:c;if(""!=a){var u=nn(a),d=l/100,p=u.replace("alpha",d),f=u.replace("alpha",0);""!=p&&(n.waveColorFrom=p,n.waveColorTo=f,n.waveRadiusFrom=h[0],n.waveRadiusTo=h[1],wt["t"](n))}}}),an=function(t){return new on(t)},sn=function(){return window&&window._hf_2329_params?window._hf_2329_params:{n2329_port_edge_color:"#54c0e4",n2329_port_edge_radius:4,n2329_port_point_color:"#245687",n2329_port_point_radius:2.5,n2329_berth_edge_color:"#EDEDED",n2329_berth_edge_radius:4,n2329_berth_point_color:"#D14949",n2329_berth_point_radius:2.5}},ln=function(t){var e=t||{},n=e.name,i=e.enname,r=e.country,o=void 0===r?"":r,a=vt["k"](),s=a?n:i;return a&&-1==o.toUpperCase().indexOf("CHINA")&&(s=i),t.labelText=s,t._type=ot,t},cn=ee.extend({realDraw:function(t){var e=this,n=t||{},i=n.ctx,r=n.layer,o=n.query,a=void 0===o?new M:o,s=this.getElements(),l=[],c=this.getElementStyle();if(!(s&&s.length>0))return{labels:l};for(var h=r._map.getZoom(),u=function(){var t=s[d];if(!e._portScaleInZoom(t,h))return 1;var n=vt["f"](r._map,1*t.lon);n.forEach((function(n){if(e.latLngInBBox({layer:r,latlng:{lat:t.lat,lng:n}})){var o=vt["a"](t);o=ln(o),o.lon=n,o.lng=n,o.lat=1*t.lat,o.offsetX=-1,o.offsetY=-1;var s={ctx:i,layer:r,el:o,style:c};l.push(e.extendToLabelElement(s));var h={el:o,query:a,layer:r};e.insertLatLngElementToQuery(h);var u=sn(),d=u||{},p=d.n2329_port_edge_color,f=d.n2329_port_edge_radius,m=d.n2329_port_point_color,g=d.n2329_port_point_radius,y={ctx:i,layer:r,latlng:o,style:{fillStyle:p,r:f}};e.drawCircleByLatLng(y);var _=m;y.style={fillStyle:_,r:g},e.drawCircleByLatLng(y)}}))},d=0;d8||(e>6&&(1==r||2==r)||(e>4&&1==r||1==r))}}),hn=function(t){return new cn(t)},un=function(t){var e=t||{},n=e.name,i=e.enname,r=e.country,o=void 0===r?"":r,a=e._labelText,s=vt["k"](),l=s?n:i;return s&&-1==o.toUpperCase().indexOf("CHINA")&&(l=i),t.labelText=a||l,t._type=at,t},dn=ee.extend({realDraw:function(t){var e=this,n=t||{},i=n.ctx,r=n.layer,o=n.query,a=void 0===o?new M:o,s=this.getElements(),l=[],c=this.getElementStyle();if(!(s&&s.length>0))return{labels:l};for(var h=r._map.getZoom(),u=function(){var t=s[d];if(!e._portScaleInZoom(t,h))return 1;var n=vt["f"](r._map,1*t.lon);n.forEach((function(n){if(e.latLngInBBox({layer:r,latlng:{lat:t.lat,lng:n}})){var o=vt["a"](t);o=un(o),o.lon=n,o.lng=n,o.lat=1*t.lat,o.offsetX=-1,o.offsetY=-1;var s={ctx:i,layer:r,el:o,style:c};l.push(e.extendToLabelElement(s));var h={el:o,query:a,layer:r};e.insertLatLngElementToQuery(h);var u=sn(),d=u||{},p=d.n2329_berth_edge_color,f=d.n2329_berth_edge_radius,m=d.n2329_berth_point_color,g=d.n2329_berth_point_radius,y={ctx:i,layer:r,latlng:o,style:{fillStyle:p,r:f}};e.drawCircleByLatLng(y);var _=m;y.style={fillStyle:_,r:g},e.drawCircleByLatLng(y)}}))},d=0;d=t._zoom:e>7}}),pn=function(t){return new dn(t)},fn="kai.kelement.ksearch.mouse.in",mn="kai.kelement.ksearch.mouse.out",gn="kai.kelement.ksearch.mouse.enter",yn="kai.kelement.ksearch.mouse.leave",_n=function(t){var e=t.vue,n=t.type,i=t.e;e&&e.$hfbus&&e.$hfbus.$emit(n,i)},vn=a["Icon"].extend({initialize:function(t,e){a["Icon"].prototype.initialize.apply(this,[e])},createIcon:function(){var t=document.createElement("div");return t},createShadow:function(){return null}}),bn=function(){return new vn({})},wn=null,xn=p.extend({searchEl:function(t){var e=t.point,n=t.layer,i=t.query,r=t.buffer,o=void 0===r?5:r,a=t.mapId,s=t.vue;if(document.getElementById(a).style.cursor="default",null!=n.popupMarker&&(n._map.removeLayer(n.popupMarker),_n({vue:s,type:mn,e:{point:e}})),n._clickObject=null,n.popupMarker=null,i){var l={x:e.x-o/2,y:e.y-o/2,w:o,h:o},c=i.search(l);if(c.length>0){var h=this.findEl({resultList:c,layer:n,point:e});if(h)return n._clickObject=h,this.handleEl({layer:n,el:h,point:e,query:i}),_n({vue:s,type:fn,e:{point:e,el:h}}),wn?wn.mmsi!=h.mmsi&&(_n({vue:s,type:gn,e:{point:e,el:h}}),wn=h):(_n({vue:s,type:gn,e:{point:e,el:h}}),wn=h),document.getElementById(a).style.cursor="pointer",n._clickObject;wn&&(_n({vue:s,type:yn,e:{point:e,el:wn}}),wn=null)}else wn&&(_n({vue:s,type:yn,e:{point:e,el:wn}}),wn=null)}return n._clickObject},findEl:function(t){t.resultList,t.layer,t.point;return null},handleEl:function(t){var e=t||{};e.layer,e.el,e.point,e.query;this.elToTooltip(t)},elToTooltip:function(t){var e=t.layer,n=t.el,i=t.point;if(window&&window._hf_is_mobile)return null;var r=bn(),o=a["point"](i.x,i.y),s=e._map.layerPointToLatLng(o);null!=e.popupMarker&&e._map.removeLayer(e.popupMarker);var l=this.buildToolTip({el:n});l&&(e.popupMarker=a["marker"]([s.lat,s.lng],{icon:r}).bindTooltip(l).addTo(e._map).openTooltip())},buildToolTip:function(t){var e=t||{};e.el;return""}}),Ln=function(t){var e=t||{},n=e.name,i=e.enname,r=e.country,o=void 0===r?"":r,a=e._labelText,s=vt["k"](),l=s?n:i;return s&&-1==o.toUpperCase().indexOf("CHINA")&&(l=i),t._displayname=a||l,t},Mn=function(t){var e=t||{},n=e.html;if(n&&n.cn&&n.en){var i=vt["k"]();return i?n.cn:n.en}var r=Ln(t),o=[["",r._displayname]];return ne["k"](o)},kn=xn.extend({findEl:function(t){var e=t.resultList;t.layer,t.point;return e.length>0?e[0]:null},buildToolTip:function(t){var e=t||{},n=e.el;return Mn(n)}}),Tn=function(){return new kn},An=function(t){var e=t||{},n=e.an,i=e.callsign,r=e.course,o=e.destination,a=e.dis,s=e.dn,l=e.draught,c=e.dwt,h=e.eta,u=e.fn,d=e.heading,p=e.imonumber,f=e.lat,m=e.length,g=e.lon,y=e.lng,_=e.minoTypeCode,v=e.minotype,b=e.minudiff,w=e.mmsi,x=e.name,L=e.offseta,M=e.offsetb,k=e.offsetc,T=e.offsetd,A=e.rs,E=e.speed,S=e.status,P=e.statusCode,O=e.turnrate,D=e.type,I=e.typeCode,R=e.updatetime,j=e.updatetimestamp,C=e.updateTimestamp,N=e.width,z=e.color,G=e.displayCross,B=e.testTimestamp,Z=e.html,U=e._displayColumnName,Y=e.shipname,W=e.label,F=e.updatetimeformat,V=e.elToTooltip,Q=e.strokeStyle,H=e.lineWidth,J=e.hide,X=e.updateTimeInfo,K=e.extraInfo,q=e._source,$=e.iconUrl,tt=e.iconWidth,et=e.iconHeight,nt=e.nameBackgroundColor,it=e.nameBackgroundGlobalAlpha,rt=e.nameColor,ot=e.serverTimestamp,at=e.receivedBrowserTimestamp,st=e.showTooltip,lt=e.trawlSonar,ct=e.globalAlpha,ht=e.aisName,ut=e.timezone,dt=e.updateTimeLt,pt=e.cargoManage,ft=e.drawShipAsWholeShape,mt=e.drawShipAsWholeShapeZoom,gt=e.drawShipLabelModel,yt=e.drawShipLabelModelonlyNameColor,_t=e.drawShipLabelModelonlySpeedColor,vt=j;void 0==j&&(vt=C);var bt=g;void 0==g&&void 0!=y&&(bt=y);var wt={label:W,_displayColumnName:U,shipname:Y,color:z,an:n,callsign:i,course:r,destination:o,dis:a,dn:s,draught:l,dwt:c,eta:h,fn:u,heading:d,imonumber:p,lat:f,length:m,lon:bt,minoTypeCode:_,minotype:v,minudiff:b,mmsi:w,name:x,offseta:L,offsetb:M,offsetc:k,offsetd:T,rs:A,speed:E,status:S,statusCode:P,turnrate:O,type:D,typeCode:I,updatetime:R,updatetimestamp:vt,width:N,testTimestamp:B,displayCross:G,html:Z,updatetimeformat:F,elToTooltip:V,strokeStyle:Q,lineWidth:H,hide:J,updateTimeInfo:X,extraInfo:K,_source:q,iconUrl:$,iconWidth:tt,iconHeight:et,nameBackgroundColor:nt,nameColor:rt,nameBackgroundGlobalAlpha:it,serverTimestamp:ot,receivedBrowserTimestamp:at,showTooltip:st,trawlSonar:lt,globalAlpha:ct,aisName:ht,timezone:ut,updateTimeLt:dt,cargoManage:pt,drawShipAsWholeShape:ft,drawShipAsWholeShapeZoom:mt,drawShipLabelModel:gt,drawShipLabelModelonlyNameColor:yt,drawShipLabelModelonlySpeedColor:_t};return wt},En=5,Sn=1,Pn=1e3,On=function(){return{mapper:{},updateID:{}}},Dn=function(t){return An(t)},In=ee.extend({realDraw:function(t){var e=t||{},n=e.ctx,i=e.layer;this._ships_on_map_counter=0,this._ships_on_map_mapper={};var r=this.getElements(),o=[],a=[],s=this.getElementOptions(),l=Math.random(),c=s.appendEls,h=s.selectedByMMSI;if(h&&h.mapper)for(var u in h.mapper)h[u]=[];var d=s||{},p=d.drawShipsOnZoomLevel,f=void 0===p?10:p;r&&0==r.length&&this._isEmptyAppendEl(c)&&this._resetRouteTrackerByMMSI();var m=i._map.getZoom(),g={},y=r.length<=Pn;if(m>f)for(var _=0;_0)return!1}return!0},_realDrawRouteTrackerByMMSI:function(t,e,n){var i=this;if(n&&n.mapper){var r=n.mapper,o=function(){var n=r[a];if(n.length>1)for(var o=[],s=function(){var r=n[l],a=r.lon;r.color="#5f27cd";var s=vt["f"](e._map,a),c=s.map((function(n,a){var s={lat:r.lat,lng:n};if(o.length>0){var l=o[a];i.drawLineByLatLngs({ctx:t,layer:e,latlng0:l,latlng1:s,style:{fillStyle:"black",lineWidth:.3}})}return s}));o=c},l=0;lt.updatetime&&(t=e.mapper[n]),t.color=e.mapper[n].color),t},_get_ship_delay_globalalpha:function(t){var e=this.getElementOptions(),n=e.testTimestamp;return void 0!=n&&n>0&&n-t.updatetimestamp>$?q:1},_over_12_hours:function(t){var e=this.getElementOptions(),n=e.testTimestamp;return!(0==t.updatetimestamp||n0&&n-t.updatetimestamp>432e5)},processDrawShip:function(t){var e,n=this,i=t||{},r=i.ctx,o=i.layer,a=i.query,s=i.el,l=i.appendEls,c=i.labels,h=i.preprocess,u=i.selectedByMMSI,d=i.updateID,p=i.labelAsPerZoom,f=void 0!==p&&p,g=i.phase,y=i.requireExtendToLabelElement,_=void 0===y||y,v=s.mmsi;if(h){if(e=h(s,l),null==e){s.labelText=this._attachLabelText(s);var b={ctx:r,layer:o,el:s},w=null;return _&&(w=this.extendToLabelElement(b)),void c.push(w)}s=e}if(e&&"append"==g){s.labelText=this._attachLabelText(s);var x={ctx:r,layer:o,el:s},L=this.extendToLabelElement(x);c.push(L)}var M=this.getElementOptions(),k=M||{},T=k.showLabelOnZoomLevel,A=void 0===T?En:T;this._setRouteTrackerByMMSI(v,s,d,o);var E=o._map.getZoom(),S=vt["f"](o._map,1*s.lon),P=Dn(s);P.xylist=[],S.forEach((function(t){var e=P;e.lon=t;var i=wt["w"](e,E);m["a"].logger("kShip.globalAlpha",i.globalAlpha);var s=n.convertLatLngToXY({layer:o,latlng:{lat:i.lat,lon:t}}),h=n._get_ship_delay_globalalpha(i),d=n._over_12_hours(i);d&&(h=.3,i._over12=!0);var p=!!i.displayCross;p&&(h=.8,i._over12=!0),i.globalAlpha>0&&(h=i.globalAlpha);var g={x:s.x,y:s.y};i.xy=g,i.xylist.push(g);var y=n._drawShip(r,o,s,i,E,h);if(u&&u.mapper&&u.mapper[v]){var b=n._generateShipPolygon({polygon:y.polygon,feature:i,ctx:r,xy:s});n._drawSelectedShip({ctx:r,xy:b,layer:o}),u[v].push(c.length)}var w=n._getShipBound(r,o,s,i,E);if(i.labelText=n._attachLabelText(i),a.insert(w,i),!(f&&E0&&e0?0==this._routeTrackerByMMSI.mapper[t].filter((function(t){return t.updatetimestamp==r.updatetimestamp})).length&&this._routeTrackerByMMSI.mapper[t].push(r):this._routeTrackerByMMSI.mapper[t].push(r),this._routeTrackerByMMSI.mapper[t].length>X&&this._routeTrackerByMMSI.mapper[t].shift();var s=Sn,l=this._routeTrackerByMMSI.mapper[t];if(l.length>0){for(var c=0,h=l.length-1;h>0;h--){var u=l[h],d=l[h-1],p=this.getDistanceInMeters(i,u,d),f=p/1852;if(s-=f,s<0){c=h;break}}if(c>0)while(c--)this._routeTrackerByMMSI.mapper[t].shift()}}},_routeTrackerByMMSI_checkUpdateId:function(t){if(this._routeTrackerByMMSI)for(var e in this._routeTrackerByMMSI.updateID)this._routeTrackerByMMSI.updateID[e]-t!=0&&delete this._routeTrackerByMMSI.mapper[e]},_resetRouteTrackerByMMSI:function(){this._routeTrackerByMMSI&&delete this._routeTrackerByMMSI,this._routeTrackerByMMSI=On()},_drawShip:function(t,e,n,i,r,o){var a=i.mmsi;return a&&void 0==this._ships_on_map_mapper[a]&&(this._ships_on_map_counter+=1,this._ships_on_map_mapper[a]=1),wt["p"]({ctx:t,feature:i,zoom:r,x:n.x,y:n.y,globalAlpha:o})},_generateShipPolygon:function(t){var e=t.polygon,n=t.feature,i=(t.ctx,t.xy),r=[0,0],o=n.rotation,a=o*Math.PI/180,s=Math.cos(a),l=Math.sin(a),c=e.map((function(t){return[(t[0]-r[0])*s-(t[1]-r[1])*l+r[0],(t[0]-r[0])*l+(t[1]-r[1])*s+r[1]]})).map((function(t){return{x:t[0]+i.x,y:t[1]+i.y}})),h=1/0,u=1/0,d=-1/0,p=-1/0;return c.forEach((function(t){t.x>d&&(d=t.x),t.xp&&(p=t.y),t.ym)for(var v=0;v0)return!1}return!0},_realDrawRouteTrackerByMMSI:function(t,e,n){var i=this,r=this.getElementOptions()||{},o=r.tailLength||Cn;if(n&&n.mapper){var a=n.mapper,s=function(){var n=a[l];if(n.length>1)for(var r=[],s=o,c=function(){var a=n[h];if(o0){var l=r[o];i.drawLineByLatLngs({ctx:t,layer:e,latlng0:l,latlng1:s,style:{fillStyle:"black",lineWidth:.3}})}return s}));r=g},h=n.length-1;h>=0;h--)if(c())break};for(var l in a)s()}},_preprocess_appendEl_is_drawn:function(t,e){var n=t.mmsi;return e.onmap[n]?(e.onmap[n]=!1,null):t},_preprocess_update_el:function(t,e){var n=t.mmsi;return e&&e.mapper&&e.mapper[n]&&(e.onmap[n]=!0,e.mapper[n].updatetime>t.updatetime&&(t=e.mapper[n]),t=Object(o["a"])(Object(o["a"])({},t),e.mapper[n])),t},_get_ship_delay_globalalpha:function(t){if(t&&t.globalAlpha)return t.globalAlpha;var e=this.getElementOptions(),n=e.testTimestamp;return!Object(ie["p"])(n)&&n>0&&n-t.updatetimestamp>$?q:1},_over_12_hours:function(t){var e=this.getElementOptions(),n=e.testTimestamp;return!(0==t.updatetimestamp||n0&&n-t.updatetimestamp>432e5)},processDrawShip:function(t){var e,n=this,i=t||{},r=i.ctx,o=i.layer,a=i.query,s=i.el,l=i.appendEls,c=i.labels,h=i.preprocess,u=i.selectedByMMSI,d=i.updateID,p=(i.labelAsPerZoom,i.phase),f=(i.requireExtendToLabelElement,i.mousedHoveredByMMSI),m=s.mmsi;if(h){if(e=h(s,l),null==e){s.labelText=this._attachLabelText(s);var g={ctx:r,layer:o,el:s},y=this._doExtendToLabelELement(g);return void c.push(y)}s=e}if(e&&"append"==p){s.labelText=this._attachLabelText(s);var _={ctx:r,layer:o,el:s},v=this._doExtendToLabelELement(_);c.push(v)}var b=this.getElementOptions(),w=b||{};w.showLabelOnZoomLevel;this._setRouteTrackerByMMSI(m,s,d,o);var x=o._map.getZoom(),L=vt["f"](o._map,1*s.lon),M=Gn(s);M.xylist=[],L.forEach((function(t){var e=M;e.lon=t;var i=wt["w"](e,x);if(isNaN(i.lat)||isNaN(i.lon))console.log(i.mmsi+" invalid latlng",i);else{var h=n.convertLatLngToXY({layer:o,latlng:{lat:i.lat,lon:t}}),d=n._get_ship_delay_globalalpha(i),p=n._over_12_hours(i);p&&(d=.3,i._over12=!0);var g=!!i.displayCross;g&&(d=.8,i._over12=!0);var y={x:h.x,y:h.y};i.xy=y,i.xylist.push(y);var _=1==window._hf_is_mobile;_||(i.mmsi==f?(i.strokeStyle="#ff6b6b",i.lineWidth=2,i.globalAlpha=1):(i.strokeStyle="black",i.lineWidth=1,i.globalAlpha&&delete i.globalAlpha));var v=n._drawShip(r,o,h,i,x,d);u&&u.mapper&&u.mapper[m]&&n._is_update_selectedEls&&(n._drawSelectedShip2({ctx:r,latlng:e,layer:o}),u[m].push(c.length));var b=n._getShipBound(r,o,h,i,x,v);i.labelText=n._attachLabelText(i),a.insert(b,i);var w={ctx:r,layer:o,el:i};if(l&&l.mapper&&l.mapper[m]);else{var L=null;L=n._doExtendToLabelELement(w),void 0!=s.hide&&(L.hide=s.hide),c.push(L)}}}))},_doExtendToLabelELement:function(t){var e=this.getElementOptions(),n=e||{},i=n.paddingSize,r=void 0===i?30:i,o=this.extendToLabelElement(t,{paddingSize:r});return t&&t.el&&t.el.hasOwnProperty("drawShipLabelModel")&&(o.drawShipLabelModel=t.el.drawShipLabelModel||""),o},_drawSelectedShip:function(t){var e=t.ctx,n=t.xy;t.layer;wt["n"]({ctx:e,x:n.x,y:n.y})},_attachLabelText:function(t){var e=t.label||t._displayColumnName||t.name||t.shipname||t.mmsi;if(jn["b"]())return t&&t.label&&t.label.length>0?t.label:"";var n=vt["k"]();if(t&&t.hasOwnProperty("hide")){var i=t.hide;if("0.17"==i)e="S";else if("0.122"==i)e="D";else{if("1.122"==i){var r=["[DTU]",e].join("");return r}if("1.17"==i){var o=[n?"[卫星]":"[Satellite]",e].join("");return o}}}return e},_drawSelectedShip2:function(t){var e=t.ctx,n=t.latlng,i=t.layer,r=this.convertLatLngToXY({layer:i,latlng:n});wt["n"]({ctx:e,x:r.x,y:r.y})},_setRouteTrackerByMMSI:function(t,e,n,i){if(void 0!=e.lat&&void 0!=e.lon){var r={lat:e.lat,lon:e.lon,updatetimestamp:e.updatetimestamp},o=this.getElementOptions()||{},a=o.testTimestamp;this._routeTrackerByMMSI||this._resetRouteTrackerByMMSI(),this._routeTrackerByMMSI.mapper[t]||(this._routeTrackerByMMSI.mapper[t]=[]),this._routeTrackerByMMSI.updateID[t]=n,this._routeTrackerByMMSI.mapper[t]=this._routeTrackerByMMSI.mapper[t].filter((function(t){if(t.updatetimestamp&&a){var e=a-t.updatetimestamp;return e>0&&e0?0==this._routeTrackerByMMSI.mapper[t].filter((function(t){return t.updatetimestamp==r.updatetimestamp})).length&&this._routeTrackerByMMSI.mapper[t].push(r):this._routeTrackerByMMSI.mapper[t].push(r);var s=Cn,l=this._routeTrackerByMMSI.mapper[t];if(l.length>0){for(var c=0,h=l.length-1;h>0;h--){var u=l[h],d=l[h-1],p=this.getDistanceInMeters(i,u,d),f=p/1852;if(s-=f,s<0){c=h;break}}if(c>0)while(c--)this._routeTrackerByMMSI.mapper[t].shift()}}},_routeTrackerByMMSI_checkUpdateId:function(t){if(this._routeTrackerByMMSI)for(var e in this._routeTrackerByMMSI.updateID)this._routeTrackerByMMSI.updateID[e]-t!=0&&delete this._routeTrackerByMMSI.mapper[e]},_resetRouteTrackerByMMSI:function(){this._routeTrackerByMMSI&&delete this._routeTrackerByMMSI,this._routeTrackerByMMSI=zn()},_drawShip:function(t,e,n,i,r,o){var a=i.mmsi;return a&&void 0==this._ships_on_map_mapper[a]&&(this._ships_on_map_counter+=1,this._ships_on_map_mapper[a]=1),wt["p"]({ctx:t,feature:i,zoom:r,x:n.x,y:n.y,globalAlpha:o})},_generateShipPolygon:function(t){var e=t.polygon,n=t.feature,i=(t.ctx,t.xy),r=[0,0],o=n.rotation,a=o*Math.PI/180,s=Math.cos(a),l=Math.sin(a),c=e.map((function(t){return[(t[0]-r[0])*s-(t[1]-r[1])*l+r[0],(t[0]-r[0])*l+(t[1]-r[1])*s+r[1]]})).map((function(t){return{x:t[0]+i.x,y:t[1]+i.y}})),h=1/0,u=1/0,d=-1/0,p=-1/0;return c.forEach((function(t){t.x>d&&(d=t.x),t.xp&&(p=t.y),t.y0&&o.forEach((function(t){var n=t||{},o=n.lat,a=n.lng,s=n.lon;if(void 0!=o&&(void 0!=a||void 0!=s)){var l=s||a,c=vt["f"](r._map,1*l);c.forEach((function(n){e.latLngInBBox({layer:r,latlng:{lat:t.lat,lng:n}})&&e._drawSelected({ctx:i,el:t,layer:r,nlon:n})}))}})),{labels:[]}},_drawSelected:function(t){var e,n=t.ctx,i=t.el,r=t.layer,o=t.nlon,a={lon:o,lng:o,lat:1*i.lat},s=this.convertLatLngToXY({layer:r,latlng:a}),l=i||{},c=l.drawnas;if("rectangle"==c)e={ctx:n,x:s.x,y:s.y},wt["n"](e);else if("point"==c){var h={};h.lon=o,h.lng=o,h.lat=1*i.lat,h.offsetX=-1,h.offsetY=-1;var u={ctx:n,layer:r,latlng:h,style:{fillStyle:"white",r:4}};this.drawCircleByLatLng(u);var d="red";u.style={fillStyle:d,r:2.5},this.drawCircleByLatLng(u);var p={ctx:n,layer:r,x:s.x,y:s.y};wt["n"](p)}else e={ctx:n,x:s.x,y:s.y},wt["o"](e)}}),Yn=function(t){return new Un(t)},Wn=De.extend({realDraw:function(t){var e=this,n=t||{},i=n.ctx,r=n.layer,o=n.query,a=void 0===o?new M:o,s=this.getElements(),l=this.getElementStyle();return s&&s.length>0?(s&&s.length>1e3||s.forEach((function(t){if(t&&t.boundlist){var n=t.boundlist,o={query:a,boundlist:n},s=e.findInsertBound(o);if(s){e.insertXYElementToQuery({layer:r,query:a,el:s});var c={ctx:i,insertBound:s,el:t,style:l};e.drawLabelWithText(c)}}})),{}):{}},drawLabelWithText:function(t){var e=t.ctx,n=t.insertBound,i=t.el,r=t.style,a={x:n.textX-T,y:n.textY-12,width:n.w,height:n.h};wt["l"](Object(o["a"])({ctx:e,fillStyle:r.textBackgroundColor||"white",globalAlpha:.8},a));var s={x:n.textX,y:n.textY,text:i.labelText,fillStyle:r.textColor||"#2d3436",font:i.font};wt["r"](Object(o["a"])({ctx:e},s));var l={x0:n.anchorX,y0:n.anchorY,x1:i.x,y1:i.y,lineWidth:r.anchorLineWidth||1,strokeStyle:r.anchorLineColor||"red",globalAlpha:r.anchorGlobalAlpha||1};wt["h"](Object(o["a"])({ctx:e},l))}}),Fn=function(t){return new Wn(t)},Vn=i("10d6"),Qn=De.extend({realDraw:function(t){var n=this,i=t||{},r=i.ctx,o=i.layer,a=i.query,s=void 0===a?new M:a,l=this.getElements(),c=this.getElementStyle(),h=this.getElementOptions(),u=h||{},d=u.labelShowAllTheTime,p=void 0!==d&&d;if(!(l&&l.length>0))return{};var f=l&&l.length>1500,m=Object(Vn["m"])();try{if(""!==m){var g=o._map.getZoom(),y=1*m;if(g0&&(n.textBackgroundColor=e.nameBackgroundColor),e&&e.nameColor&&e.nameColor.length>0&&(n.textColor=e.nameColor),e&&e.nameBackgroundGlobalAlpha&&e.nameBackgroundGlobalAlpha>=0&&(n.textBackgroundGlobalAlpha=e.nameBackgroundGlobalAlpha),n},drawLabelWithText:function(t){var e=t.ctx,n=t.insertBound,i=t.el,r=t.style;if(i&&i.hasOwnProperty("drawShipLabelModel")&&i.drawShipLabelModel==Jt)return this._drawLabelWithText_DRAW_SHIP_LABEL_MODEL_NAME_SPEED(t);var a={x:n.textX-T,y:n.textY-12,width:n.w,height:n.h};wt["l"](Object(o["a"])({ctx:e,fillStyle:r.textBackgroundColor||"white",globalAlpha:r.textBackgroundGlobalAlpha||.8},a));var s={x:n.textX,y:n.textY,text:i.labelText,fillStyle:r.textColor||"#2d3436",font:i.font};wt["r"](Object(o["a"])({ctx:e},s));var l={x0:n.anchorX,y0:n.anchorY,x1:i.x,y1:i.y,lineWidth:r.anchorLineWidth||1,strokeStyle:r.anchorLineColor||"red",globalAlpha:r.anchorGlobalAlpha||1};wt["h"](Object(o["a"])({ctx:e},l))},_drawLabelWithText_DRAW_SHIP_LABEL_MODEL_NAME_SPEED:function(t){var e=t.ctx,n=t.insertBound,i=t.el,r=(t.style,i.labelText);a["Util"].isArray(r)||(r=[r]);var s=n.anchorX,l=n.anchorY,c=n.oh,h=n.font,u=Kt(),d=[u.drawShipLabelModelonlyNameColor,u.drawShipLabelModelonlySpeedColor],p=u.drawShipLabelModeltextStrokeStyle;r.forEach((function(t,n){var r=d[n],a=p,u=vt["o"](t,h,6);u*=-.5;var f={x:s+u,y:l+c+14*n,text:t,fillStyle:r,textStrokeStyle:a,font:i.font};wt["r"](Object(o["a"])({ctx:e},f))}))}}),Hn=function(t){return new Qn(t)},Jn=i("b279"),Xn=function(t){ne["h"]();var e=t||{},n=e.cargoManage;if(!n)return null;var i=n||{},r=(i.id,i.mmsi,i.cargoOwner),o=(i.cargoOwnerUserId,i.cargoMinoType,i.cargoMinoType_dictText),a=(i.cargoType,i.cargoType_dictText),s=(i.cargoNo,i.captain),l=i.telphone,c=i.cargoWeight,h=i.startPort,u=(i.startPortId,i.endPort),d=(i.endPortId,i.startTime,i.endTime,i.userId,i.userCompany),p=i.transNodes,f=void 0===p?[]:p,g=[];r&&g.push(["托运人:",r]);var y=[],_=8,v=6;return d&&(Object(Jn["i"])(d)?y=Object(Jn["m"])(d,_):(y=Object(Jn["l"])(d,v),m["a"].log("n3368 enarr",y)),y.forEach((function(t,e){return g.push([0==e?"承运商:":" ",t])}))),a&&g.push(["货品:",a]),o&&g.push(["细类:",o]),c&&g.push(["重量:",c]),s&&g.push(["船长:",s]),l&&g.push(["联系:",l]),h&&g.push(["起始港:",h]),u&&g.push(["目的港:",u]),f&&f.length>0&&f.forEach((function(t){var e=t||{},n=(e.serviceState,e.serviceState_dictText),i=e.triggerTime;n&&n&&g.push(["".concat(n,":"),i])})),ne["k"](g)},Kn=function(t){var e=t||{},n=e.html;m["a"].log("n3023 buildSHipInfo",t);var i=ne["h"]();if(void 0!=n)return n;var r=ne["g"](t),o=ne["b"](r.draught),s=ne["d"](r.speed),l=ne["e"](r.updatetime);l=a["_$hfTimeZoneFormatter"](l);var c=r.eta,h=vt["p"](r.mmsi),u=Object(Jn["j"])(r.course)?Object(Jn["f"])(r.course,100):"-",d=Object(Jn["j"])(r.heading)?Object(Jn["f"])(r.heading,100):"-",p=r.destination,f=r._displayColumnName||r.name||r.shipname,g=r.minotype||r.type;0==t.updatetimestamp&&"-"==t.updatetime&&(l=t.updatetimeformat,c=i?"登录查看":"Login for detail");var y=[],_=r.aisName,v=_&&""!=_&&"-"!=_,b="";if(r.hasOwnProperty("length")){var w=i?"米":"m";b=[r.length+w,r.width+w].join("/")}var x,L,M="",k="";if(t&&t.hasOwnProperty("lat")&&(M=t.lat),t&&t.hasOwnProperty("lon")&&(k=t.lon),M&&k&&(x=Object(Jn["c"])({lat:M,lon:k,lng:k})),t&&t.hasOwnProperty("hide")){var T=t.hide;"1.122"==T?L="DTU":"1.17"==T&&(L=i?"卫星":"Satellite")}return i?(y.push(["位置更新:",l]),L&&y.push(["源:",L]),f&&y.push(["船名:",f]),v&&y.push(["AIS船名:",_]),h&&y.push(["MMSI:",h]),g&&y.push(["类型:",g]),b&&y.push(["长/宽:",b]),u&&y.push(["航迹向:",u]),d&&y.push(["船首向:",d]),s&&y.push(["航速:",s]),p&&y.push(["目的港:",p]),c&&y.push(["ETA:",c]),o&&y.push(["吃水:",o]),x&&y.push(["纬度:",x[0]]),x&&y.push(["经度:",x[1]])):(y.push(["Update:",l]),L&&y.push(["Src:",L]),f&&y.push(["Name:",f]),v&&y.push(["AISName:",_]),h&&y.push(["MMSI:",h]),g&&y.push(["Type:",g]),b&&y.push(["Len/Width:",b]),u&&y.push(["COG:",u]),d&&y.push(["HDG:",d]),s&&y.push(["SOG:",s]),p&&y.push(["Dest.:",p]),c&&y.push(["ETA:",c]),o&&y.push(["Draught:",o]),x&&y.push(["Lat:",x[0]]),x&&y.push(["Lng:",x[1]])),t&&t.extraInfo&&t.extraInfo.length>0&&t.extraInfo.forEach((function(t){return y.push([t.key+":",t.value])})),ne["k"](y)},qn=xn.extend({findEl:function(t){for(var e=t.resultList,n=t.layer,i=t.point,r=n._map.getZoom(),o=0;o0)for(var l=a.xylist,c=0;c0&&t.extraInfo.forEach((function(t){return d.push([t.key+":",t.value])})),ne["k"](d)},ei=xn.extend({findEl:function(t){for(var e=t.resultList,n=t.layer,i=t.point,r=n._map.getZoom(),o=0;o0)for(var l=a.xylist,c=0;c0&&(l?h.push(["推算时间:",t.revisedTime]):h.push(["Revised:",t.revisedTime]));try{var u={lat:t.lat,lng:t.lon,lon:t.lon},d=Object(Jn["c"])(u);l?(h.push(["纬度:",d[0]]),h.push(["经度:",d[1]])):(h.push(["Lat:",d[0]]),h.push(["Lon:",d[1]]))}catch(e){}return h},ri=function(t){var e=ne["g"](t),n=e||{},i=n.time,r=n.winddirection,o=n.windknot,s=n.windclass,l=n.windspeed,c=[["时间","Time"],["风向","Direction"],["风力","Class"],["风速","Speed"],["","Speed"]],h=[["",""],["",""],["级",""],["米/秒","m/s"],["节","kn"]],u=ne["e"](i);u=a["_$hfTimeZoneFormatter"](u);var d=ne["h"]()?0:1,p=[u,r,s,l,o],f=p.map((function(t,e){return t?[c[e][d]+":",t+h[e][d]]:-1})).filter((function(t){return-1!=t}));if(f.length>1&&":"==f[f.length-1][0]){var m=f.pop();f[f.length-1][1]+=" ( "+m[1]+" ) "}return f},oi=function(t){var e=t||{},n=e.accumulatetime,i=e.stoptime,r=e.starttime,o=[["事件","Event"],["从","From"],["到","To"],["时长","Duration"]],s=[["停船","Park"],["",""],["",""],["",""]],l=ne["h"]()?0:1,c=[" ",i,r,n],h=c.map((function(t,e){return t?[o[e][l]+":",a["_$hfTimeZoneFormatter"](t+s[e][l])]:-1})).filter((function(t){return-1!=t}));if(1==l){h.shift();var u=h.pop();u[0]="Event:",u[1]="Stay for "+u[1],h.unshift(u)}return h},ai=function(t){var e=t.el||{},n=ne["h"](),i=e||{},r=i.html;if(r)return vt["m"](r)?n?r.cn:r.en:r;var o=[];return e._type?e._type==it?o=ri(e):e._type==rt?o=oi(e):e._type==ut&&(o=ii(e)):o=ii(e),ne["k"](o)},si=xn.extend({findEl:function(t){var e=t.resultList,n=(t.layer,t.point),i=e.filter((function(t){return!t.polygon||vt["l"]([n.x,n.y],t.polygon)}));if(i.length>0){var r=i[i.length-1];return r}return null},handleEl:function(t){var e=t||{};e.layer,e.el,e.point,e.query;this.elToTooltip(t)},elToTooltip:function(t){var e=this,n=t.layer,i=t.el,r=t.point,o=i||{},a=o.elToTooltip;a?a(i,(function(t){e.__doElToTooltip({layer:n,point:r,el:t})})):this.__doElToTooltip(t)},__doElToTooltip:function(t){var e=t.layer,n=t.el,i=t.point,r=bn(),o=a["point"](i.x,i.y),s=e._map.layerPointToLatLng(o);null!=e.popupMarker&&e._map.removeLayer(e.popupMarker),e.popupMarker=a["marker"]([s.lat,s.lng],{icon:r}).bindTooltip(ai({el:n})).addTo(e._map).openTooltip()}}),li=function(){return new si},ci=function(t){m["a"].log("n3064 obj ",t);var n=ne["h"](),i=[];n||(i=[]);try{var r={lat:t.lat,lng:t.lon,lon:t.lon},o=Object(Jn["c"])(r);n?(i.push(["纬度:",o[0]]),i.push(["经度:",o[1]])):(i.push(["Lat:",o[0]]),i.push(["Lon:",o[1]]))}catch(e){}return i},hi=function(t){var e=t.el||{},n=ne["h"](),i=e||{},r=i.html;if(r)return vt["m"](r)?n?r.cn:r.en:r;var o=[];return e._type?e._type==ut&&(o=ci(e)):o=ci(e),ne["k"](o)},ui=xn.extend({findEl:function(t){var e=t.resultList,n=(t.layer,t.point),i=e.filter((function(t){return!t.polygon||vt["l"]([n.x,n.y],t.polygon)}));if(i.length>0){var r=i[i.length-1];return r}return null},handleEl:function(t){var e=t||{};e.layer,e.el,e.point,e.query;this.elToTooltip(t)},elToTooltip:function(t){var e=this,n=t.layer,i=t.el,r=t.point,o=i||{},a=o.elToTooltip;a?a(i,(function(t){e.__doElToTooltip({layer:n,point:r,el:t})})):this.__doElToTooltip(t)},__doElToTooltip:function(t){var e=t.layer,n=t.el,i=t.point,r=bn(),o=a["point"](i.x,i.y),s=e._map.layerPointToLatLng(o);null!=e.popupMarker&&e._map.removeLayer(e.popupMarker),e.popupMarker=a["marker"]([s.lat,s.lng],{icon:r}).bindTooltip(hi({el:n})).addTo(e._map).openTooltip()}}),di=function(){return new ui},pi=function(t){var e=t||{},n=e.name,i=e.enname,r=e.country,o=void 0===r?"":r,a=vt["k"](),s=a?n:i;return a&&-1==o.toUpperCase().indexOf("CHINA")&&(s=i),t._displayname=s,t},fi=function(t){var e=pi(t),n=[["",e._displayname]];return ne["k"](n)},mi=xn.extend({findEl:function(t){var e=t.resultList;t.layer,t.point;return e.length>0?e[0]:null},buildToolTip:function(t){var e=t||{},n=e.el;return fi(n)}}),gi=function(){return new mi},yi=function(t,e){var n=t||{},i=n.availableZoom;if(i){for(var r=""+i,o=r.split(","),a=0;a0))return{labels:c};for(var u=this.getLineStyle(h),d=this.getTextStyle(h),p=function(){for(var t,n=l[f],c=n.latlngs,h=[],p=0;p1){var o=yi(n,s);if(o){var l={};l.text=n.text,l=e.prepareWrapEl(l,n),n.mmsi&&(l.mmsi=n.mmsi),l.latlngs=t,l._type=e.setting.TYPE;var h={ctx:i,layer:r,text:l.text,latlngs:t,originLatLngs:c,style:_,positionInEls:l};if(n&&n.dyFlags&&(h.dyFlags=n.dyFlags),e.drawPoly(h),h.style=d,l.text&&""!=l.text&&l.text.length>0){e.drawPolyText(h);var u=e.buildBoundAndPolygon(h);u&&(l.polygon=u.polygon,u&&u.bound&&u.bound.x!=1/0&&a.insert(u.bound,l)),n.zonetype&&"circle"==n.zonetype||t.length<100&&t.map((function(t){var o=t[0],s=t[1],l=vt["a"](n),c={lat:o,lng:s},h={ctx:i,layer:r,latlng:c,buff:3},u=e.buildBoundAndPolygonByOnLatLng(h);u&&(l.polygon=u.polygon,l.__append_point=!0,l.latlng=c,a.insert(u.bound,l))}))}}}}))},f=0;fp&&(p=t[0]),t[0]m&&(m=t[1]),t[1]1)return null;var h,u=e[s],d=e[c],p=r.textAlong,f=r.fontSize,m=n.measureText(o).width,g=this.convertLatLngToXY({layer:i,latlng:u}),y=this.convertLatLngToXY({layer:i,latlng:d}),_=g.x,v=g.y,b=y.x,w=y.y;if(_==b&&v==w){var x=u.lat,L=u.lng,M=d.lat,k=d.lng;h=Math.atan((k-L)/(M-x))}else h=Math.atan((w-v)/(b-_));var T=Math.sin(h),A=Math.cos(h),E=(_+b)/2,S=(v+w)/2,P=[E,S+p-f],O=[[E,S+p-f],[E+m,S+p-f],[E+m,S+p],[E,S+p],[E,S+p-f]].map((function(t){return[(t[0]-P[0])*A-(t[1]-P[1])*T+P[0],(t[0]-P[0])*T+(t[1]-P[1])*A+P[1]]})),D=-1/0,I=1/0,R=-1/0,j=1/0;O.forEach((function(t){t[0]>D&&(D=t[0]),t[0]R&&(R=t[1]),t[1]1){var h=Object(jn["b"])();if(!h){var u=this._2054_drawPolyText(t);if(!u)return}var d=e[s],p=e[c];this.drawTextAlongWithLatLngs({ctx:n,latlng0:d,latlng1:p,layer:i,style:r,text:o})}},_n2558_drawPoly:function(t){for(var e=t.latlngs,n=(t.originLatLngs,t.ctx),i=t.layer,r=t.style,o=t.dyFlags,a=o.split(","),s=0;s1){var l=Vn["c"]();if(l&&s&&s.length>0)return this._n2558_drawPoly(t);this.drawPolylineByLatLngs({ctx:r,layer:o,latlngs:e,style:a,originLatLngs:i})}}}),vi=function(t){return new _i(t)},bi=function(t,e,n){if(""!=e){var i=t?"备注:":"Remark:";n.push([i,e])}return n},wi=function(t){var e=ne["h"](),n=t||{},i=n.__append_point,r=void 0!==i&&i,o=n.latlng,a=n.remark,s=void 0===a?"":a,l=n.text;if(r&&o){var c=[];l?c.push(["",l]):c.push(["",""]);var h=Object(Jn["c"])(o);return e?(c.push(["纬度:",h[0]]),c.push(["经度:",h[1]])):(c.push(["Lat:",h[0]]),c.push(["Lon:",h[1]])),c=bi(e,s,c),ne["k"](c)}var u="",d=[[u,""]];return l&&(d=[["",l]]),d=bi(e,s,d),ne["k"](d)},xi=xn.extend({findEl:function(t){for(var e=t.resultList,n=(t.layer,t.point),i=0;i1)return null;var c,h=o.textAlong,u=o.fontSize,d=(o.font,i.measureText(s).width),p=a["polygon"](n),f=p.getBounds().getCenter(),m=this.convertLatLngToXY({layer:r,latlng:f});c=m;try{var g=l||{},y=g.labelCenter;if(y){var _=this.convertLatLngToXY({layer:r,latlng:y});c=_}}catch(e){console.error(e),c=m}var v=c.x-d/2,b=c.y,w=[[v,b+h-u],[v+d,b+h-u],[v+d,b+h],[v,b+h],[v,b+h-u]],x=-1/0,L=1/0,M=-1/0,k=1/0;w.forEach((function(t){t[0]>x&&(x=t[0]),t[0]M&&(M=t[1]),t[1]2)){var o=5,s=i._map.getZoom();if(s>o)return!0;var l=a["polygon"](e),c=l.getLatLngs();if(c.length>0){var h=a["GeometryUtil"].geodesicArea(c[0]),u=n.measureText(r).width,d=12,p=[[0,0],[0+u,0],[0+u,0+d],[0,0]].map((function(t){return i._map.layerPointToLatLng(t)})),f=a["polygon"](p),m=f.getLatLngs(),g=a["GeometryUtil"].geodesicArea(m[0]);if(0==h)return!1;var y=g/h;return y<.8}return!0}},drawPolyText:function(t){var e=t.latlngs,n=t.ctx,i=t.layer,r=t.style,o=t.text,a=(t.startLatLngIndex,t.endLatLngIndex,t.positionInEls);if(e||!(e.length>1)){var s=Object(jn["b"])();if(!s){var l=this._2054_drawPolyText(t);if(!l)return}var c=a||{},h=c.labelCenter,u=h;if(u){var d=n.measureText(o).width;r.offsetX=-1*d/2,this.drawTextByLatLng({ctx:n,layer:i,latlng:u,text:o,style:r})}}},drawPoly:function(t){var e=t.latlngs,n=t.ctx,i=t.layer,r=t.style,o=t.positionInEls,a=o||{},s=a.center,l=a.circleLabel,c=a.radius,h=a.circleStrokeStyle,u=void 0===h?"#fff":h,d=a.circleByCanvas,p=void 0!==d&&d;if(s&&p){var f=1852*c/y[i._map.getZoom()],m={ctx:n,layer:i,latlng:s,r:f,style:r};return this.drawCircleByLatLng(m,{strokeStyle:u}),void(l&&l.length>0&&this._drawCircleLabel(t,f))}e&&e.length>0&&this.drawFillPolygonByLatLngs({latlngs:e,ctx:n,layer:i,style:r})},_drawCircleLabel:function(t,e){var n=t.ctx,i=t.layer,r=t.style,a=t.positionInEls,s=a||{},l=s.center,c=s.circleLabel,h=s.circleLabelFont,u=void 0===h?"12px Verdana":h,d=s.circleLabelAlign,p=void 0===d?"center":d,f=this.convertLatLngToXY({layer:i,latlng:l});if("center"==p){var m=n.measureText(c),g=m.width;f.x-=g/2}var y=2;f.y-=e+y;var _={ctx:n,layer:i,xy:f,text:c,style:Object(o["a"])(Object(o["a"])({},r),{},{fillStyle:"blue",textStrokeStyle:"#fff",textStrokeLineWidth:3,font:u})};this.drawTextByXY(_)}}),Si=function(t){return new Ei(t)},Pi={"PointMarker-red":{key:"PointMarker-red",cnname:"PointMarker-red",enname:"PointMarker-red",url:i("417b"),sx:-10,sy:-10,w:56,h:64},"PointMarker-H":{key:"PointMarker-H",cnname:"PointMarker-H",enname:"PointMarker-H",url:i("5163"),sx:-86,sy:-10,w:56,h:64},"PointMarker-P":{key:"PointMarker-P",cnname:"PointMarker-P",enname:"PointMarker-P",url:i("c97b"),sx:-162,sy:-10,w:56,h:64},"PointMarker-Port":{key:"PointMarker-Port",cnname:"PointMarker-Port",enname:"PointMarker-Port",url:i("c87f"),sx:-10,sy:-94,w:56,h:64},"PointMarker-Vessel":{key:"PointMarker-Vessel",cnname:"PointMarker-Vessel",enname:"PointMarker-Vessel",url:i("1c53"),sx:-86,sy:-94,w:56,h:64}},Oi=Pi,Di=function(t){var e=20-t/2;return e},Ii=function(t,e){var n=e.getZoom(),i=Di(n),r=e.latLngToLayerPoint(t),o=r.x,a=r.y,s=i/2;return{x:o-s,y:a-s,w:i,h:i}},Ri=i("9625"),ji=i("2b46"),Ci=function(t,e,n){for(var i=-1,r="",o=0;oc)&&(i=c,r=l)}return r},Ni=ee.extend({setting:{TYPE:ct,pointMarkerSpritesImgCache:null,IconCacheMapper:{}},realDraw:function(t){var e=this,n=t||{},i=n.ctx,r=n.layer,o=n.query,a=this.getElements(),s=[],l=this.getElementStyle(),c=this.getElementOptions();if(!(a&&a.length>0))return{labels:s};var h=r._map,u=h.getZoom(),d=Object(jn["b"])();if(!d&&c&&c.compressZoom>=u)return this._n2054_realDraw(t);for(var p=this.getTextStyle(l),f=new M,m=function(){var t=a[g],n=vt["f"](r._map,1*t.lon);n.forEach((function(n){if(e.latLngInBBox({layer:r,latlng:{lat:t.lat,lng:n}})){var a=vt["a"](t);a._type=a.clickType||ct,a.lon=n,a.lng=n,a.lat=1*t.lat;var s=e.convertLatLngToXY({layer:r,latlng:a});a.xy=s;var l={ctx:i,layer:r,xy:s,text:a.text,style:p,textMiddleOffset:a.textMiddleOffset},c=e._getTextBoundAndPolygon(l),h=c.bound,u=f.search(h),d=u.length,m={ctx:i,layer:r,xy:s,latlng:a};if(a.polygon=c.polygon,0==d&&(o.insert(c.bound,a),m.text=a.text,m.style=p,m.textMiddleOffset=a.textMiddleOffset,e._drawTextInMiddle(m),f.insert(h,{})),a&&a.iconUrl){var g=a.iconXOffset||0,y=a.iconYOffset||0;e.extendUrlLoad3({ctx:i,xy:s},a.iconUrl,(function(t,n){var i=t.height,r=t.width,s=n.x-1*r/2+g,l=n.y-1*i+y;m.img=t;var c=e._getMarkerBoundAndPolygon({xy:n,markerIconEl:t,style:{scale:1}});m.bound=c.bound;var h=vt["a"](a);return h.polygon=c.polygon,h._type=h.clickType||ct,o.insert(c.bound,h),{x:s,y:l}}))}else{var _=Oi[a.type]||Oi["PointMarker-red"],v=e._getMarkerBoundAndPolygon({xy:s,markerIconEl:_});m.bound=v.bound,e._drawPointMarker(m),a=vt["a"](t),a.polygon=v.polygon,a._type=a.clickType||ct,o.insert(v.bound,a)}}}))},g=0;g0))return{labels:a};for(var l=this.getTextStyle(s),c=new M,h=new M,u=i._map,d={},p=0;p0))return{labels:s};for(var c=this.getTextStyle(l),h=new M,u=new M,d=r._map,p=0;pd&&u.lng0){var M=e._processLatLngsForDrawn(p),k=e.getElementStyle();e.drawDashPolylineByLatLngsArray({ctx:n,layer:i,latlngs:M,style:k})}}))}},doDrawTrajectoryLine:function(t){var e=t.lineNo,n=t.ctx,i=t.layer,r=t.current,o=t.next,a=t.currentLatLng,s=t.nextLatLng,l=t.needConsider360,c=this.getElementStyle(),h=this.getElementOptions();r._type=ut;var u=1*r.speed,d=r||{},p=d.dy,f={anchorLineColor:r.anchorLineColor,lineColor:r.lineColor,lineWidth:r.lineWidth,lat:parseFloat(a.lat),lng:parseFloat(a.lng),lon:parseFloat(a.lng),speed:u};r._options&&(f._options=r._options);var m=1*o.speed,g={lat:parseFloat(s.lat),lng:parseFloat(s.lng),lon:parseFloat(s.lng),speed:m};return this._drawTrajectoryLine({lineNo:e,previousLatLngObject:g,currentLatLngObject:f,options:h,style:c,ctx:n,layer:i,needConsider360:l,dy:p})},_processLatLngsForDrawn:function(t){return $t(t)},_drawTrajectoryLine:function(t){var e=t.previousLatLngObject,n=t.currentLatLngObject,i=t.options,r=t.style,o=t.ctx,a=t.layer,s=t.needConsider360,l=t.dy;r.strokeStyle=r.lineColor||r.strokeStyle;var c={ctx:o,layer:a,latlngs:[e,n],style:r,needConsider360:s,dy:l,doDraw:!1};return i.showLine?this.drawDashPolylineByLatLngs(c):[]}}),Qi=function(t){return new Vi(t)},Hi=Vi.extend({drawDashPolylineByLatLngsArray:function(t){this.drawPolylineByLatLngsArray(t)}}),Ji=function(t){return new Hi(t)},Xi=_i.extend({setting:{TYPE:st},processDayLineTransform:function(t){var e=t.map((function(t){return[parseFloat(t.lon),parseFloat(t.lat)]})),n=vt["d"](e);return t.map((function(t,e){return t.lon=n[e][0],t.lat=n[e][1],t.lng=n[e][0],t}))},drawPolyText:function(t){},drawPoly:function(t){var e=t.latlngs,n=t.ctx,i=t.layer,r=t.style,a=t.positionInEls,s=t.originLatLngs,l=void 0===s?[]:s;if(e&&e.length>1){var c=this.getElementOptions(),h=c||{},u=h.hilightPlans,d=void 0===u?[]:u,p=h.show,f=void 0===p||p,m=d.filter((function(t){return t.mmsi==a.mmsi})),g=m.length>0?{strokeStyle:"#ff7979",lineWidth:3}:null;if(f||null!=g){var y=Object(o["a"])(Object(o["a"])({},r),g||{}),_=e.map((function(t,e){var n=l[e];return Object(o["a"])(Object(o["a"])({},n),t)}));m=m[0],m&&m.currentLatlng&&void 0!=m.currentLatlng.lat||this.superDrawPoly({ctx:n,layer:i,style:y,latlngs:_})}}},superDrawPoly:function(t){var e=t.latlngs,n=t.originLatLngs,i=void 0===n?[]:n,r=t.ctx,o=t.layer,a=t.style;e&&e.length>1&&this.drawPolylineByLatLngsConsiderGreatCircle({ctx:r,layer:o,latlngs:e,style:a,originLatLngs:i})},superDrawPolyold:function(t){var e=t.latlngs,n=t.originLatLngs,i=void 0===n?[]:n,r=t.ctx,o=t.layer,a=t.style;e&&e.length>1&&(m["a"].log("1629",e),this.drawPolylineByLatLngs({ctx:r,layer:o,latlngs:e,style:a,originLatLngs:i}))},__doDrawPoly:function(t){var e=t||{},n=e.ctx,i=e.layer,r=e.eStyle,o=e.latlngs,a=Ji(),s={ctx:n,layer:i,style:r,els:[{latlngs:o}],options:{showLabel:!1,showLatLngLabel:!1,showArrow:!0,showPoint:!1,showLine:!0,showWind:!1,showShipStopRecord:!1}};a.realDrawBy(s)}}),Ki=function(t){return new Xi(t)},qi=(_i.extend({setting:{TYPE:st},processDayLineTransform:function(t){var e=t.map((function(t){return[parseFloat(t.lon),parseFloat(t.lat)]})),n=vt["d"](e);return t.map((function(t,e){return t.lon=n[e][0],t.lat=n[e][1],t.lng=n[e][0],t}))},drawPolyText:function(t){},drawPoly:function(t){var e=t.latlngs,n=t.ctx,i=t.layer,r=t.style,a=t.positionInEls,s=t.originLatLngs,l=void 0===s?[]:s;if(e&&e.length>1){var c=this.getElementOptions(),h=c||{},u=h.hilightPlans,d=void 0===u?[]:u,p=h.show,f=void 0===p||p,m=d.filter((function(t){return t==a.mmsi})).length>0?{strokeStyle:"#ff7979",lineWidth:3}:null;if(f||null!=m){var g=Object(o["a"])(Object(o["a"])({},r),m||{}),y=Ji(),_=e.map((function(t,e){var n=l[e];return Object(o["a"])(Object(o["a"])({},n),t)})),v={ctx:n,layer:i,style:g,els:[{latlngs:_}],options:{showLabel:!1,showLatLngLabel:!1,showArrow:!1,showPoint:!1,showLine:!0,showWind:!1,showShipStopRecord:!1}};y.realDrawBy(v)}}}}),Vi.include(Ae())),$i=qi.extend({_drawTrajectoryLine:function(t){var e=t.previousLatLngObject,n=t.currentLatLngObject,i=t.options,r=(t.style,t.ctx),o=t.layer,a=t.needConsider360,s=t.dy,l=this._drawTrajectoryLineFoundStyle(t),c={ctx:r,layer:o,latlngs:[e,n],style:l,needConsider360:a,dy:s,doDraw:!1},h=[];return i.showLine&&(h=this.drawDashPolylineByLatLngs(c),i.showDistanceCourse&&this.includeKdrawTextOnLine(t,h)),h},_drawTrajectoryLineFoundStyle:function(t){t.previousLatLngObject;var e=t.currentLatLngObject,n=(t.options,t.style),i=(t.ctx,t.layer,t.needConsider360,t.dy,n.lineColor||n.strokeStyle),r=e||{},o=r.lineColor;return o&&(i=o||i),n.strokeStyle=i,n}}),tr=(i("a9e3"),i("7d4a"));function er(t){var e=t||{},n=e.level,i=e.translateYY,r=e.ctx,o=e.wind_arrows,a=e.extendY,s=e.flagX,l=void 0===s?0:s,c=i+a,h=n;1==h?(r.moveTo(0,-8+c),r.lineTo(4*o,-9+c)):2==h?r.lineTo(8*o,-13+c):3==h?(r.lineTo(8*o,-13+c),r.moveTo(0,-8+c),r.lineTo(4*o,-9+c)):4==h?(r.lineTo(8*o,-13+c),r.moveTo(0,-8+c),r.lineTo(8*o,-10+c)):5==h?(r.lineTo(8*o,-13+c),r.moveTo(0,-8+c),r.lineTo(8*o,-10+c),r.moveTo(0,-4+c),r.lineTo(4*o,-5+c)):6==h?(r.lineTo(8*o,-13+c),r.moveTo(0,-8+c),r.lineTo(8*o,-10+c),r.moveTo(0,-4+c),r.lineTo(8*o,-6+c)):7==h?(r.lineTo(8*o,-13+c),r.moveTo(0,-8+c),r.lineTo(8*o,-10+c),r.moveTo(0,-4+c),r.lineTo(8*o,-6+c),r.moveTo(0,0+c),r.lineTo(4*o,-1+c)):8==h?(r.lineTo(8*o,-13+c),r.moveTo(0,-8+c),r.lineTo(8*o,-10+c),r.moveTo(0,-4+c),r.lineTo(8*o,-6+c),r.moveTo(0,0+c),r.lineTo(8*o,-2+c)):9==h?(r.lineTo(8*o,-13+c),r.moveTo(0,-8+c),r.lineTo(8*o,-10+c),r.moveTo(0,-4+c),r.lineTo(8*o,-6+c),r.moveTo(0,0+c),r.lineTo(8*o,-2+c),r.moveTo(0,4+c),r.lineTo(4*o,3+c)):10==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c)):11==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-3+c),r.lineTo(5*o,-5+c)):12==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-4+c),r.lineTo(9*o,-6+c)):13==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-4+c),r.lineTo(9*o,-6+c),r.moveTo(0,0+c),r.lineTo(5*o,-1+c)):14==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-4+c),r.lineTo(9*o,-6+c),r.moveTo(0,0+c),r.lineTo(9*o,-2+c)):15==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-4+c),r.lineTo(9*o,-6+c),r.moveTo(0,0+c),r.lineTo(9*o,-2+c),r.moveTo(0,4+c),r.lineTo(5*o,3+c)):16==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-4+c),r.lineTo(9*o,-6+c),r.moveTo(0,0+c),r.lineTo(9*o,-2+c),r.moveTo(0,4+c),r.lineTo(9*o,2+c)):17==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-4+c),r.lineTo(9*o,-6+c),r.moveTo(0,-1+c),r.lineTo(9*o,-3+c),r.moveTo(0,2+c),r.lineTo(9*o,0+c),r.moveTo(0,5+c),r.lineTo(5*o,4+c)):18==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-4+c),r.lineTo(9*o,-6+c),r.moveTo(0,-1+c),r.lineTo(9*o,-3+c),r.moveTo(0,2+c),r.lineTo(9*o,0+c),r.moveTo(0,5+c),r.lineTo(9*o,3+c)):19==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-4+c),r.lineTo(9*o,-6+c),r.moveTo(0,-1+c),r.lineTo(9*o,-3+c),r.moveTo(0,2+c),r.lineTo(9*o,0+c),r.moveTo(0,5+c),r.lineTo(9*o,3+c),r.moveTo(0,8+c),r.lineTo(5*o,7+c)):20==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c)):21==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,2+c),r.lineTo(5*o,0+c)):22==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,1+c),r.lineTo(9*o,-1+c)):23==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,1+c),r.lineTo(9*o,-1+c),r.moveTo(0,4+c),r.lineTo(5*o,3+c)):24==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,1+c),r.lineTo(9*o,-1+c),r.moveTo(0,4+c),r.lineTo(9*o,2+c)):25==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,1+c),r.lineTo(9*o,-1+c),r.moveTo(0,4+c),r.lineTo(9*o,2+c),r.moveTo(0,7+c),r.lineTo(5*o,6+c)):26==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,1+c),r.lineTo(9*o,-1+c),r.moveTo(0,4+c),r.lineTo(9*o,2+c),r.moveTo(0,7+c),r.lineTo(9*o,5+c)):27==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,1+c),r.lineTo(9*o,-1+c),r.moveTo(0,4+c),r.lineTo(9*o,2+c),r.moveTo(0,7+c),r.lineTo(9*o,5+c),r.moveTo(0,10+c),r.lineTo(5*o,9+c)):28==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,1+c),r.lineTo(9*o,-1+c),r.moveTo(0,4+c),r.lineTo(9*o,2+c),r.moveTo(0,7+c),r.lineTo(9*o,5+c),r.moveTo(0,10+c),r.lineTo(9*o,8+c)):29==h&&(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,1+c),r.lineTo(9*o,-1+c),r.moveTo(0,4+c),r.lineTo(9*o,2+c),r.moveTo(0,7+c),r.lineTo(9*o,5+c),r.moveTo(0,10+c),r.lineTo(9*o,8+c),r.moveTo(0,13+c),r.lineTo(9*o,11+c))}function nr(t,e,n){var i=e,r=-12;if(0==i)t.beginPath(),t.arc(0,0,.5,0*Math.PI,2*Math.PI),t.lineWidth=1.5,t.stroke(),t.closePath(),t.beginPath(),t.arc(0,0,4,0*Math.PI,2*Math.PI);else{t.arc(0,0,1,0*Math.PI,2*Math.PI),t.lineWidth=1.5,t.stroke(),t.closePath(),t.beginPath(),t.moveTo(0,0);var o=0;e>28&&(o=-4),t.lineTo(0,-24+o);var a=0;e>19&&(a=n>0?1:-1),er({ctx:t,level:e,translateYY:r,wind_arrows:n,extendY:o,flagX:a})}}function ir(t,e,n,i,r,o){r.save(),r.beginPath(),r.strokeStyle=tr["b"](),r.translate(t,e),r.rotate(n*Math.PI/180),r.beginPath();var a=o;nr(r,i,a),r.lineWidth=1.5,r.stroke(),r.closePath(),r.globalAlpha=1,r.restore()}function rr(t){var e=t||{},n=e.ctx,i=e.x,r=e.y,o=e.lat,a=e.level,s=e.direction,l=1;t&&t.hasOwnProperty("lat")&&Number(o)<0&&(l=-1),ir(i,r,s,a,n,l)}function or(t,e){var n=10*e*2;t.moveTo(0,n+3),t.lineTo(0,0),t.moveTo(0,n+3),t.lineTo(-3,n),t.moveTo(0,n+3),t.lineTo(3,n)}function ar(t,e,n,i,r){r.save(),r.beginPath(),r.translate(t,e),r.rotate(n*Math.PI/180),r.beginPath(),or(r,i),r.lineWidth=1.5,r.strokeStyle="#224b8f",r.stroke(),r.closePath(),r.globalAlpha=1,r.restore()}function sr(t){var e=t||{},n=e.ctx,i=e.x,r=e.y,o=e.value,a=e.direction;ar(i,r,a,o,n)}var lr,cr=$i.extend({realDraw:function(t){return this._labelCache3064={},$i.prototype.realDraw.call(this,t)},_drawTrajectoryLine:function(t){var e=t.previousLatLngObject,n=t.currentLatLngObject,i=t.options,r=(t.style,t.ctx),o=t.layer,a=t.needConsider360,s=t.dy,l=n&&n._options;if(!l)return $i.prototype._drawTrajectoryLine.call(this,t);var c=i;n._options&&(c=n._options||i||{});var h=this._drawTrajectoryLineFoundStyle(t),u={ctx:r,layer:o,latlngs:[e,n],style:h,needConsider360:a,dy:s,doDraw:!1},d=[];return c.showLine&&(d=this.drawDashPolylineByLatLngs(u),i.showDistanceCourse&&this.includeKdrawTextOnLine(t,d)),d},__doDrawPointAndLabel:function(t){var e=t.ctx,n=t.layer,i=t.index,r=t.labels,o=t.latlng,a=t.current,s=t.query,l=this.getElementStyle(),c=this.getElementOptions(),h=o||{},u=h.lat,d=h.lon;[u,d].join("&");if(c=a._options,c){m["a"].log("n3105 drawWind",a);var p={el:a,query:s,layer:n};this.insertLatLngElementToQuery(p);var f={ctx:e,layer:n,latlng:o,el:a,index:i,style:{strokeStyle:l.circleColor}};if(c.showPoint&&this._drawTrajectoryPoint(f),c.showWind&&a&&a.hasOwnProperty("_wind")&&this.doDrawWind(f,a._wind),c.showCurrent&&a&&a.hasOwnProperty("_current")&&this.doDrawCurrent(f,a._current),a._type=ut,c.showLabel){var g=!0,y=c._is_sdk_mode;if(y&&(a&&a.label?"[object String]"==Object.prototype.toString.call(a.label)&&""==a.label&&(g=!1):g=!1),g){a=this._getTrajectoryLabelText(a);var _={ctx:e,layer:n,el:a,style:l},v=c.paddingSize||0,b=20,w=Math.ceil((100-v)/100*b);r.push(this.extendToLabelElement(_,{paddingSize:w}))}}}},doDrawWind:function(t,n){var i=t||{},r=i.ctx,o=i.layer,a=n||{},s=a.lat,l=(a.lng,a.lon,a.level),c=a.direction;try{var h=this.convertLatLngToXY({layer:o,latlng:n}),u={x:h.x,y:h.y,ctx:r,level:l,direction:c,lat:s};rr(u)}catch(e){console.error(e)}},doDrawCurrent:function(t,n){var i=t||{},r=i.ctx,o=i.layer,a=n||{},s=a.value,l=a.direction;try{var c=this.convertLatLngToXY({layer:o,latlng:n}),h={x:c.x,y:c.y,ctx:r,value:s,direction:l};sr(h)}catch(e){console.error(e)}},doDrawPointAndLabel:function(t){t.ctx,t.layer,t.index,t.labels;var e=t.latlng,n=t.current,i=(t.query,this.getElementStyle(),this.getElementOptions(),e||{}),r=i.lat,o=i.lon,a=([r,o].join("&"),n&&n._options);return a?this.__doDrawPointAndLabel(t):$i.prototype.doDrawPointAndLabel.call(this,t)}}),hr=function(t){return new cr(t)},ur=function(t){var e=t||{},n=e.date,i=e.name,r=e.labelText;return r||n||i},dr=Me.extend({_getTrajectoryLabelText:function(t){return t.labelText=ur(t),t._type=ut,t},_drawTrajectoryLine:function(t){}}),pr=function(t){return new dr(t)},fr=function(t){var e=t||{};e.labelText;return"台风标签"},mr=(a["Icon"].extend({initialize:function(t){this._number=t.number||0,this._fontSize=t.fontSize||4,t.iconSize=[16,16],a["Icon"].prototype.initialize.apply(this,[t])},createIcon:function(){var t=document.createElement("div");return this._setIconStyles(t,"icon"),t=this._createNumber(t),t},_createNumber:function(t){var e=document.createElement("div");return e.innerText=this._number,e.style.display="inline-block",e.style.fontSize="10px",e.style.backgroundColor="red",e.style.color="white",e.style.height="16px",e.style.minWidth="16px",e.style.lineHeight="16px",e.style.textAlign="center",e.style.borderRadius="100%",e.style.float="left",t.appendChild(e),t}}),Me.extend({_getTrajectoryLabelText:function(t){return t.labelText=fr(t),t._type=ut,t},clear:function(){this._markerGroup&&this._markerGroup.clearLayers()},_drawTrajectoryPoint:function(t){var e=t.index,n=t.latlng,i=t.layer,r=t.el;if(!(void 0!=r.index&&r.index<0)){var a=r.showIndex||r.index||e,s=a<10?-4:-8,l=a<40?4:5,c=a<10?9:10;t.style.r=c,t.style.fillStyle="red",this.drawCircleByLatLng(t);var h=this.convertLatLngToXY({layer:i,latlng:n});t.style.fillStyle="white",this.drawTextByXY(Object(o["a"])(Object(o["a"])({},t),{},{text:a,xy:{x:h.x+s,y:h.y+l}}))}},_drawTrajectoryLine:function(t){var e=t.previousLatLngObject,n=t.currentLatLngObject,i=t.options,r=t.style,o=t.ctx,a=t.layer,s=r.lineColor||"#FF7423",l={strokeStyle:s},c={ctx:o,layer:a,latlng0:e,latlng1:n,style:l};i.showLine&&this.drawLineByLatLngs(c),i.showArrow&&this.drawArrowOnLineByLatLngs(c)}})),gr=function(t){return new mr(t)},yr=function(t){var e=t||{},n=e.date,i=e.name,r=e.labelText;if(r&&r.hasOwnProperty("cn")){var o=Object(ne["h"])();return o?r.cn:r.en}return r||n||i},_r=Me.extend({_getTrajectoryLabelText:function(t){return t.labelText=yr(t),t._type=ut,t},_drawTrajectoryPoint:function(){},_drawTrajectoryLine:function(){}}),vr=function(t){return new _r(t)},br=function(t){var e=t||{},n=e.date,i=e.name;e.labelText;return n||i},wr=Me.extend({_getTrajectoryLabelText:function(t){return t.labelText=br(t),t._type=ut,t},_drawTrajectoryPoint:function(t){var e=t.index,n=t.latlng,i=t.layer,r=t.el,a=e;r&&r.showIndex&&(a=r.showIndex),t.style.r=9,t.style.fillStyle="#9b59b6",this.drawCircleByLatLng(t);var s=this.convertLatLngToXY({layer:i,latlng:n});t.style.fillStyle="white";var l=a<10?-4:-8,c=a<40?4:6;this.drawTextByXY(Object(o["a"])(Object(o["a"])({},t),{},{text:a,xy:{x:s.x+l,y:s.y+c}}))},_drawTrajectoryLine:function(t){}}),xr=function(t){return new wr(t)},Lr=i("dad3"),Mr=ee.extend({setting:{TYPE:pt},realDraw:function(t){var e=this,n=t||{},i=n.ctx,r=n.layer,o=n.query,a=this.getElements(),s=[];if(!(a&&a.length>0))return{labels:s};for(var l=function(){var t=a[c],n=vt["f"](r._map,1*t.lon);n.forEach((function(n){if(e.latLngInBBox({layer:r,latlng:{lat:t.lat,lng:n}})){var a=vt["a"](t);a._type=ct,a.lon=n,a.lng=n,a.lat=1*t.lat;var s=e.convertLatLngToXY({layer:r,latlng:a});a.xy=s;var l={ctx:i,layer:r,xy:s,latlng:a},c=Lr[a.type]||Lr["agence_s"],h=e._getMarkerBoundAndPolygon({xy:s,markerIconEl:c});l.bound=h.bound,e._drawMerchant(l),a=vt["a"](t),a.polygon=h.polygon,a._type=pt,o.insert(h.bound,a)}}))},c=0;cOr},Ir=function(t){return t<=7?"#F4D000":t<=10?"#FB7C00":"#eb4d4b"},Rr=function(t){return 40075016.686*Math.abs(Math.cos(t.getCenter().lat*Math.PI/180))/Math.pow(2,t.getZoom()+8)},jr=!0,Cr=function(){return jr},Nr="#505050",zr=function(){return Nr},Gr="#DCDCDC",Br=function(){return Gr},Zr=null,Ur=null,Yr=null,Wr=function(t,e,n,i,r,o){t.save(),t.translate(e,n),t.drawImage(i,-r/2,-o/2),t.restore()},Fr=function(t){var n=t||{},r=n.x,o=n.y,a=n.ctx;if(Zr)Wr(a,r,o,Zr,Ur,Yr);else{Zr=new Image;try{Zr.onload=function(){Ur=Zr.naturalWidth,Yr=Zr.naturalHeight,Wr(a,r,o,Zr,Ur,Yr)},Zr.src=i("ebef")}catch(e){console.error(e)}}},Vr=!1,Qr=function(){return!!Vr},Hr=2,Jr=function(){return Hr},Xr=null,Kr=function(){return Xr},qr=null,$r=function(){return qr},to=function(t){var e=t||{},n=e.country,i=e.forecasttime,r=oe()(i).format("MM-DD HH:mm");return[n,r].join(" ")},eo=Me.extend({realDraw:function(t){var e=this,n=t||{},i=n.ctx,r=n.layer,o=n.query,a=void 0===o?new M:o,s=this.getElements(),l=[];if(!(s&&s.length>0))return{labels:l};var c=s.map((function(t){return e.processDayLineTransform(t)}));return c.forEach((function(t){e._generateTrajectory({ctx:i,layer:r,query:a,line:t,labels:l})})),{labels:l}},_generateTrajectory:function(t){var e=this,n=t.ctx,i=t.layer,r=t.query,o=t.line,a=t.labels,s=o.latlngs||[];if(!s||0!=s.length){var l=vt["h"](i._map,s),c=s[0];l.map((function(t){var o,l,h=vt["a"](s[0]),u=t[0];e.doDrawPointAndLabel({ctx:n,layer:i,index:t.length,labels:a,latlng:t[t.length-1],current:vt["a"](s[s.length-1]),query:r});for(var d=1;d1){var s=e.length-2,l=e.length-1,c=e[s],h=e[l],u=a||{},d=u.country,p=Pr(d),f=this._n2485_test(a),m=f||{},g=m.isDraw,y=m.n2485color,_=(m.n2485is24,m.is2485),v=m.font,b=m.textStrokeStyle;if(!_||g){_&&(p=y);var w={fillStyle:p,textStrokeStyle:"rgba(225,225,225,0.5)"};_&&(w.font=v,w.textStrokeStyle=b);var x=Kr();x&&(w=Object(o["a"])(Object(o["a"])({},w||{}),x||{})),this.drawTextAlongWithLatLngs({ctx:n,latlng0:c,latlng1:h,layer:i,style:w,text:r})}}},getTextStyle:function(t){return Object(o["a"])(Object(o["a"])({},t),{},{textAlong:t.textAlong||15})}}),no=function(t){return new eo(t)},io=function(t){t.el;var e=t.el||{},n=e.html,i=void 0===n?{cn:"",en:""}:n,r=ne["h"]()?i.cn:i.en;return r},ro=xn.extend({findEl:function(t){var e=t.resultList;t.layer,t.point;return m["a"].log({resultList:e}),e.length>0?e[e.length-1]:null},handleEl:function(t){var e=t||{};e.layer,e.el,e.point,e.query;this.elToTooltip(t)},elToTooltip:function(t){var e=t.layer,n=t.el,i=t.point,r=bn(),o=a["point"](i.x,i.y),s=e._map.layerPointToLatLng(o);null!=e.popupMarker&&e._map.removeLayer(e.popupMarker),e.popupMarker=a["marker"]([s.lat,s.lng],{icon:r}).bindTooltip(io({el:n})).addTo(e._map).openTooltip()}}),oo=function(){return new ro},ao=function(t){return void 0!=t&&""!=t},so=function(t,n,i,r){var o=ao(t)&&ao(n)&&ao(i)&&ao(r);if(!o)return!1;try{var a=parseInt(t),s=parseInt(n),l=parseInt(i),c=parseInt(r),h=a+s+l+c,u=a+s+l,d=h/4==u/3;if(d)return!1}catch(e){return!1}return!0},lo=Me.extend({realDraw:function(t){var e=this,n=t||{},i=n.ctx,r=n.layer,o=n.query,a=void 0===o?new M:o,s=this.getElements(),l=[];if(!(s&&s.length>0))return{labels:l};var c=s.map((function(t){return e.processDayLineTransform(t)}));return c.forEach((function(t){e._generateTrajectory({ctx:i,layer:r,query:a,line:t,labels:l})})),{labels:l}},_generateTrajectory:function(t){var e=this,n=t.ctx,i=t.layer,r=t.query,o=t.line,a=t.labels,s=o.latlngs||[];if(!s||0!=s.length){var l=vt["h"](i._map,s);l.map((function(t){var o,l,c=vt["a"](s[0]),h=t[0],u={ctx:n,layer:i,index:t.length,labels:a,latlng:t[t.length-1],current:vt["a"](s[s.length-1]),query:r};e._drawTyphoonRange(u);for(var d=1;d1){var c=e[a],h=e[l],u=this.getTextStyle(this.getElementStyle());this.drawTextAlongWithLatLngs({ctx:n,latlng0:c,latlng1:h,layer:i,style:u,text:r})}}}),co=function(t){return new lo(t)},ho=function(t){var e=t||{},n=e.html,i=void 0===n?{cn:"",en:""}:n,r=ne["h"]()?i.cn:i.en;return r};function uo(t,e,n,i){var r=t-n,o=e-i,a=Math.atan2(-o,-r);return a*=180/Math.PI,a<0&&(a+=360),a}var po=xn.extend({_testAngle:function(t,e){var n=e||{},i=n.sAngle,r=n.eAngle,o=n.circleCenterXY;if(void 0!==o&&void 0!==i&&void 0!==r){var a=o.x,s=o.y,l=t.x,c=t.y,h=uo(a,s,l,c)*Math.PI/180;return i<=h&&h<=r}return null},findEl:function(t){var e=t.resultList,n=t.layer,i=t.point;if(1==e.length){var r=e[0];if(r.circleCenterXY){var o=this.__getKmFromPoint2Center(r,i,n),a=r.circleRadius;if(o1){var l=e.filter((function(t){return void 0==t.circleCenterXY}));if(l.length>0)return l[0];if(l=e.filter((function(t){return void 0!=t.circleCenterXY})),l.length>0){var c=l[0],h=this.__getKmFromPoint2Center(c,i,n);if(null!=h){for(var u,d=null,p=1/0,f=0;fc)&&(i=c,r=l)}return r},bo=ee.extend({setting:{TYPE:mt,IconCacheMapper:{}},realDraw:function(t){var e=this,n=t||{},i=n.ctx,r=n.layer,o=n.query,a=this.getElements(),s=[],l={};if(!(a&&a.length>0))return{labels:s};r._map.getZoom();var c=r._map,h=c.getZoom(),u=this.getElementOptions(),d=Object(jn["b"])();if(!d&&u&&u.compressZoom>=h)return m["a"].log("2054 _n2054_realDraw KPolygonInfoEl compress",u.compressZoom,h),this._n2054_realDraw(t);for(var p=function(){var t=a[f],n=vt["f"](r._map,1*t.lon);n.forEach((function(n,a){var s=vt["a"](t),c=s||{};c.pointZoomLevel;s._type=mt,s.lon=n,s.lng=n,s.lat=1*t.lat;var h=e.convertLatLngToXY({layer:r,latlng:s});s.xy=h,e._drawPointMarkerAndText({index:a,wrapEl:s,ctx:i,layer:r,xy:h,query:o,el:t,drawnIconMapper:l})}))},f=0;f0))return{labels:a};for(var l=i._map,c=(i._map.getZoom(),{}),h=new M,u=0;u0&&m>0&&(n=y,i=m);var r=o.x-1*i/2,l=o.y-1*n;d.img=t;var c=e._getMarkerBoundAndPolygon({xy:o,markerIconEl:t,iconHeight:n,iconWidth:i});d.bound=c.bound;var h=vt["a"](s);return h.polygon=c.polygon,h._type=mt,a.insert(c.bound,h),{x:r,y:l}}))},extendUrlLoad3:function(t,n,i){var r,o=this,a=t.ctx,s=t.wrapEl,l=s||{},c=l.iconWidth,h=void 0===c?-1:c,u=l.iconHeight,d=void 0===u?-1:u;if(!this.setting.IconCacheMapper[n]){r=new Image;try{return r.onload=function(){var t=i(r);o.setting.IconCacheMapper[n]=r;var e=t.x,s=t.y;d>0&&h>0?a.drawImage(r,e,s,h,d):a.drawImage(r,e,s)},r.src=n,r}catch(e){}return r.src=_o,r}r=this.setting.IconCacheMapper[n];var p=i(r),f=p.x,m=p.y;d>0&&h>0?a.drawImage(r,f,m,h,d):a.drawImage(r,f,m)},extendUrlLoad2:function(t,n){var i=document.createElement("img");try{return i.src=t,i}catch(e){}return i.src=_o,i},_getMarkerBoundAndPolygon:function(t){t.layer,t.ctx;var e=t.xy,n=t.style,i=void 0===n?{}:n,r=t.iconHeight,o=t.iconWidth,a=i.scale||1,s=r,l=o,c=e.x-l*a/2,h=e.y-s*a/2,u={x:c,y:h,w:l,h:s,width:l*a,height:s*a,scale:a,sx:0,sy:0},d=[[c,h],[c,h+u.height],[c+u.width,h+u.height],[c+u.width,h]];return{bound:u,polygon:d}},_drawPointMarker:function(t){var e=t.ctx,n=t.bound,i=t.img,r=n.x,o=n.y;e.drawImage(i,r,o)},_drawTextInMiddle:function(t){var e=t.layer,n=t.ctx,i=t.xy,r=t.text,o=t.style,a=void 0===o?{}:o,s=a.textAlong||0,l=n.measureText(r).width,c=a.fontSize||12,h=0;r&&/.*[\u4e00-\u9fa5]+.*$/.test(r)&&(h=4);var u=i.x-l/2+h,d=i.y-c+s;this.drawTextByXY({ctx:n,layer:e,xy:{x:u,y:d},text:r,style:a})},_drawn2054MiddleInMiddle:function(t){var e=t.layer,n=t.ctx,i=t.xy,r=t.text,o=t.style,a=void 0===o?{}:o,s=(t.textMiddleOffset,a.textAlong,n.measureText(r).width,a.fontSize||12),l=i.x,c=i.y+s;this.drawTextByXY({ctx:n,layer:e,xy:{x:l,y:c},text:r,style:a})},_getTextBoundAndPolygon:function(t){t.latlng;var e=t.xy,n=t.ctx,i=(t.layer,t.style),r=void 0===i?{}:i,o=t.text,a=r.textAlong||0,s=r.fontSize||12,l=n.measureText(o).width,c=e.x-l/2,h=e.y-2*s+a,u=[[c,h],[c,h+s],[c+l,h+s],[c+l,h]],d={x:c,y:h,w:l,h:s};return{bound:d,polygon:u}},getTextStyle:function(t){return Object(o["a"])(Object(o["a"])({},t),{},{textAlong:t.textAlong||15,font:t.font,fillStyle:t.textColor,fontSize:t.fontSize})}}),wo=function(t){return new bo(t)};function xo(t,e,n,i,r,o,a){var s=t,l=t.bound,c=[s],h={ctx:e,layer:n,text:t.text,latlngs:c,style:i||{},positionInEls:t},u=t.xy;h.style=r||{fillStyle:"black",textStrokeStyle:"white"},h.xy=u,this._drawn2054MiddleInMiddle(h);var d=this._getMarkerBoundAndPolygon({layer:n,ctx:e,xy:u,style:{},iconHeight:l.h,iconWidth:l.w});d&&(t.polygon=d.polygon,o.insert(d.bound,t));var p=a||{},f=p.outerCircleFillColor,m=void 0===f?"rgb(83,26,7)":f,g=p.innerPointFillColor,y=void 0===g?"rgb(255,195,73)":g,_={ctx:e,layer:n,latlng:s,style:{fillStyle:m,r:4}};this.drawCircleByLatLng(_);var v=y;_.style={fillStyle:v,r:2.5},this.drawCircleByLatLng(_)}var Lo=function(t){m["a"].log("KSearchPointInfoMarker.js",t);var e=t.showTooltip,n=void 0===e||e,i=t.html;if(0==n)return!1;if(vt["n"](i))return i;var r=ne["h"]()?i.cn:i.en;return r},Mo=xn.extend({findEl:function(t){for(var e=t.resultList,n=(t.layer,t.point),i=0;ic)&&(i=c,r=l)}return r},So=ee.extend({setting:{TYPE:gt,IconCacheMapper:{}},processDayLineTransform:function(t){var e=t.map((function(t){return[t[1],t[0]]})),n=vt["d"](e);return t.map((function(t,e){return[n[e][1],n[e][0]]}))},_in_bbox:function(t,e){var n=this,i=t.filter((function(t){var i={lat:t[0],lng:t[1],lon:t[1]},r={latlng:i,layer:e},o=n.latLngInBBox(r);return o})),r=i.length>0;return r},realDraw:function(t){var e=this,n=t||{},i=n.ctx,r=n.layer,o=n.query,a=this.getElements(),s=[],l=this.getElementStyle(),c=this.getElementOptions();if(!(a&&a.length>0))return{labels:s};var h=r._map,u=h.getZoom(),d=Object(jn["b"])();if(!d&&c&&c.compressZoom>=u)return m["a"].log("2054 _n2054_realDraw KPolygonInfoEl compress",c.compressZoom,u),this._n2054_realDraw(t);for(var p=this.getLineStyle(l),f=this.getTextStyle(l),g=function(){var t=a[y],n=t.latlngs;if(n&&0==n.length)return 0;n=e.processDayLineTransform(n);var s=e._in_bbox(n,r);if(!s)return 0;var l=vt["h"](r._map,n);l.map((function(a){var s=vt["a"](t);s.latlngs=a,s._type=e.setting.TYPE;var l={ctx:i,layer:r,text:s.text,latlngs:a,style:p,positionInEls:s},c=t.wktType;n&&n.length>2&&"POLYGON"==c&&e.drawPoly(l),n&&n.length>1&&"LINESTRING"==c&&e.drawLineString(l),l.style=f,e.drawInfoMarker(l);var h=e.buildBoundAndPolygon(l);h&&(s.polygon=h.polygon,o.insert(h.bound,s))}))},y=0;y0))return{labels:a};for(var l=this.getLineStyle(s),c=this.getTextStyle(s),h=new M,u=i._map,d={},p=0;p1&&(e="LINESTRING"==s?n[0]:To["a"](n)));var l=o.iconUrl,c=this.convertLatLngToXY({layer:i,latlng:e}),h=this.extendUrlLoad(l),u=h.height,d=h.width,p=c.x-d*a/2,f=c.y-u*a/2,m={x:p,y:f,w:d,h:u,width:d*a,height:u*a,scale:a,sx:0,sy:0},g=[[p,f],[p,f+m.height],[p+m.width,f+m.height],[p+m.width,f]];return{bound:m,polygon:g}},getLineStyle:function(t){return{lineWidth:t.lineWidth||1,strokeStyle:t.lineColor||"black",fillStyle:t.backgroundColor||"red",globalAlpha:t.backgroundGlobalAlpha||.5}},getTextStyle:function(t){return Object(o["a"])(Object(o["a"])({},t),{},{textAlong:0,font:t.font,fillStyle:t.textColor,fontSize:t.fontSize})},extendUrlLoad:function(t){var n=document.createElement("img");try{return n.src=t,n}catch(e){}return n.src=Ao,n},__getCenterFromLatlngs:function(t){var e=t[0],n=e||{},i=n.lat,r=n.lng;return i&&r?{lat:i,lng:r}:{lat:e[0],lng:e[1]}},getInfoMarkerLatlng:function(t){var e,n=t.latlngs,i=t.wktType;return n&&1==n.length?e=this.__getCenterFromLatlngs(n):n&&n.length>1&&(e="LINESTRING"==i?n[0]:To["a"](n)),e},drawInfoMarker:function(t){var e,n=t.latlngs,i=t.ctx,r=t.layer,o=t.style,a=t.text,s=t.positionInEls,l=(t.el,s.wktType);if(e=this._2834_centerPointLatLon(s),e||(n&&1==n.length?e=this.__getCenterFromLatlngs(n):n&&n.length>1&&(e="LINESTRING"==l?n[0]:To["a"](n))),e){var c=i.measureText(a).width;o.offsetX=-1*c/2;var h=s.iconUrl,u=this.convertLatLngToXY({layer:r,latlng:e});this.extendUrlLoad3(t,h,(function(t){var e=t.height,n=t.width,i=u.x-1*n/2,r=u.y-1*e;return{x:i,y:r}}))}return{latlng:e}},_drawTextInMiddle:function(t){var e=t.layer,n=t.ctx,i=t.xy,r=t.text,o=t.style,a=void 0===o?{}:o,s=(t.textMiddleOffset,a.textAlong,n.measureText(r).width,a.fontSize||12),l=i.x,c=i.y+s;this.drawTextByXY({ctx:n,layer:e,xy:{x:l,y:c},text:r,style:a})},extendUrlLoad3:function(t,n,i){var r,o=this,a=t.ctx;if(!this.setting.IconCacheMapper[n]){r=new Image;try{return r.onload=function(){var t=i(r);o.setting.IconCacheMapper[n]=r;var e=t.x,s=t.y;a.drawImage(r,e,s)},r.src=n,r}catch(e){}return r.src=Ao,r}r=this.setting.IconCacheMapper[n];var s=i(r),l=s.x,c=s.y;a.drawImage(r,l,c)},drawPoly:function(t){var e=t.latlngs,n=t.ctx,i=t.layer,r=t.style;e&&e.length>0&&this.drawFillPolygonByLatLngs({latlngs:e,ctx:n,layer:i,style:r})},drawLineString:function(t){var e=t.latlngs,n=t.ctx,i=t.layer,r=t.style;e&&e.length>2&&this.drawPolylineByLatLngs({latlngs:e,ctx:n,layer:i,style:r})}}),Po=function(t){return new So(t)};function Oo(t,e,n,i,r,o,a){var s=t.latlngs,l=s,c={ctx:e,layer:n,text:t.text,latlngs:s,style:i,positionInEls:t,el:a},h=t.wktType;l&&l.length>2&&"POLYGON"==h&&this.drawPoly(c),l&&l.length>1&&"LINESTRING"==h&&this.drawLineString(c),c.style=r,this.drawInfoMarker(c);var u=this.buildBoundAndPolygon(c);u&&(t.polygon=u.polygon,o.insert(u.bound,t))}function Do(t,e,n,i,r,o){var a=t.latlng,s=[a],l={ctx:e,layer:n,text:t.text,latlngs:s,style:i,positionInEls:t},c=this.convertLatLngToXY({layer:n,latlng:a});l.style=r,l.xy=c,this._drawTextInMiddle(l);var h=this.buildBoundAndPolygon(l);h&&(t.polygon=h.polygon,o.insert(h.bound,t));var u={ctx:e,layer:n,latlng:a,style:{fillStyle:"rgb(83,26,7)",r:4}};this.drawCircleByLatLng(u);var d="rgb(255,195,73)";u.style={fillStyle:d,r:2.5},this.drawCircleByLatLng(u)}var Io=function(t){var e=t.html,n=void 0===e?{cn:[],en:[]}:e,i=ne["h"]()?n.cn:n.en;return i},Ro=xn.extend({findEl:function(t){for(var e=t.resultList,n=(t.layer,t.point),i=0;i2&&void 0!==arguments[2]?arguments[2]:null;return t.hasOwnProperty(e)?t[e]:n},Go=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=zo(t,"offseta");null==e&&(e=zo(t,"oa",0));var n=zo(t,"offsetb");null==n&&(n=zo(t,"ob",0));var i=zo(t,"offsetc");null==i&&(i=zo(t,"oc",0));var r=zo(t,"offsetd");null==r&&(r=zo(t,"od",0));var o={offseta:e,offsetb:n,offsetc:i,offsetd:r};return o},Bo=function(t,e,n){var i=1*t.lat,r=Object(ie["h"])(t);r*=1;var o=1*e.lat,a=Object(ie["h"])(e),s=i*(1-n)+n*o,l=r*(1-n)+n*a;return{lat:s,lng:l,lon:l}},Zo=function(){return!(a["LANG"]&&"en-US"==a["LANG"])};a["KMotion"]={},a["KMotion"].Utils={attachDistances:function(t,e){if(e.length>1)for(var n=1;n")&&(L="\n position:absolute;\n top:0px;\n left:28px;\n text-align:center;\n background:white;\n padding:0px 2px;\n border:1px solid black;\n color:blue;\n min-width:100px;\n ");var M=l[v],k="
\n
").concat(f,"
\n
"),T=Object(o["a"])(Object(o["a"])({},n),{},{icon:a["divIcon"]({className:"",html:k,iconSize:a["point"](h,d),iconAnchor:a["point"](h/2,d/2)})});return a["marker"](i,T)},_motion:function(t){var e=this,n=(new Date).getTime()-t,i=1;if(this.motionOptions.duration&&(i=n/this.motionOptions.duration),i<1){i=this.motionOptions.easing(i,n,0,1,this.motionOptions.duration);var r=this._findNextPoint(this._map,this._linePoints,i),o=this._getUpdateTime(r,i),s=this._redrawRemark(o,r,i);if(s){var l=this._getCachedLatlngs();l.length>0&&l.forEach((function(t){return a["Polyline"].prototype.addLatLng.call(e,t.latLng)})),this._resetCachedLatlngs(),a["Polyline"].prototype.addLatLng.call(this,r.latLng),this._drawMarker(r,i)}else this._appendCachedLatlngs(r);this.__ellapsedTime=n,this.animation=a["Util"].requestAnimFrame((function(){this._motion(t)}),this)}else this.motionStop(!0)},_getVlatlngs:function(){return this._originLatlngs},_findNextPoint:function(t,e,n){var i=a["KMotion"].Utils.interpolateOnLine(t,e,n);return i},_getUpdateTime:function(t,e){var n=this._getVlatlngs(),i=n[0],r=n[n.length-1],o=Wo(i.updatetime),a=Wo(r.updatetime),s=this.markerOptions||{},l=s.timezone,c=void 0===l?8:l,h=Math.abs(o-a),u=0;void 0!=c&&c>=-12&&c<=12&&8!=c&&(u=3600*(c-8)*1e3);var d=new Date(o.getTime()+h*e+u);return d},_getTip:function(t,e,n){var i=this.markerOptions||{},r=i.timezone,o=void 0===r?8:r,a=i.motionShowSecond,s=void 0!==a&&a,l=this.UTC_LIST[o+12],c="UTC+8";l&&(c=l.text);var h=s?"hh:mm:ss/dd":"hh:mm/dd",u=[t.format(h),c],d=e.predecessor,p=this._originLatlngs,f="",m="";if(p&&p.length>0){var g=p[0];d>=0&&(g=p[d]),f=g.speed+(Yo()?"节":"kts"),m=g.course+"°",u.push("
"),u.push(f),u.push(m)}return u.join(" ")},_redrawRemark:function(t,e,n){return!0},_drawMarker:function(t,e){this._drawMarkerByMarker(t,e)},_drawMarkerByCanvas:function(t,e){var n=this._getUpdateTime(t,e),i=this._getTip(n,t,e);this.markerOptions.tip=i,this.__canvasMarkerLayer||(this.__canvasMarkerLayer=Uo(),this.__canvasMarkerLayer.addTo(this._map));var r=this.getMarker();this.__clear_canvasMarkerLayer(),r=this._createMarker(t,this._getOriginLatlngs(),this.markerOptions),this.__canvasMarkerLayer.addMarker(r),this.__marker=r},__clear_canvasMarkerLayer:function(){if(this._map.hasLayer(this.__canvasMarkerLayer)&&this.__canvasMarkerLayer._markers.length>0)for(var t=this.__canvasMarkerLayer._markers,e=!1,n=0;n0)for(var s=0;s=0){var u=i[c],d=i[c+1],p=a["KMotion"].Utils.interpolateOnLatLngSegment(u,d,l);h={latLng:p,predecessor:c}}return h},doMotion:function(t,e,n){var i=this;if(this.motionOptions.duration=n,m["a"].log("KmotionPolyline4 doMotion",this._id,t,e),e<1){e=this.motionOptions.easing(e,t,0,1,n);var r=this._findNextPoint(this._map,this._linePoints,e),o=this._getUpdateTime(r,e),s=this._redrawRemark(o,r,e);if(s){var l=this._getCachedLatlngs();l.length>0&&l.forEach((function(t){return a["Polyline"].prototype.addLatLng.call(i,t.latLng)})),this._resetCachedLatlngs(),a["Polyline"].prototype.addLatLng.call(this,r.latLng),this._drawMarker(r,e)}else this._appendCachedLatlngs(r);this.__ellapsedTime=t}}}),a["kmotionPolyline4"]=function(t,e,n,i){return new a["KmotionPolyline4"](t,e,n,i)},a["KmotionPolyline5"]=a["KmotionPolyline4"].extend({_getTip:function(t,n,i){var r=Zo(),o=this.markerOptions||{},a=o.timezone,s=void 0===a?8:a,l=o.motionShowSecond,c=void 0!==l&&l,h=this.UTC_LIST[s+12],u="UTC+8";h&&(u=h.text);var d,p=c?"hh:mm:ss/dd":"hh:mm/dd",f=[t.format(p),u],m=n.predecessor,g=(n.segmentDurationRatio,n.lineCourse),y=this._originLatlngs,_="",v="",b="";if(y&&y.length>0){if(d=y[0],m>=0&&(d=y[m]),d.fixedMotionLabel)return d.fixedMotionLabel;_=d.speed+(r?"节":"kts");try{v=d.course,"-"!=v&&(v=parseInt(v),v=vt["s"](v,3),v+="°"),360!=g&&(v=g,v+="°"+(r?"[推算]":"[DR]"))}catch(e){v=""}b=d._motionName,f.push(_),f.push(v)}return f.unshift(b),f.join(" ")},doMotion:function(t,e,n,i){if(this.motionOptions.duration=n,e<1){e=this.motionOptions.easing(e,t,0,1,n);var r=this._findNextPoint(this._map,this._linePoints,e),o=i;i||(o=this._getUpdateTime(r,e));var a=this._getCachedLatlngs(),s=this._getTip(o,r,e);this._appendCachedLatlngs(r),this.__ellapsedTime=t;var l=r||{},c=l.predecessor,h=this._getOriginLatlngs();if(h&&h.length>0&&h[c]){var u=vt["a"](h[c]);if(u){u.lat=r.latLng.lat,u.lon=r.latLng.lng,u.label=s;var d={ship:u,nextPoint:r,tip:s,_cachedLatlngs:a,updateTime:o};return d}}}return null}}),a["kmotionPolyline5"]=function(t,e,n,i){return new a["KmotionPolyline5"](t,e,n,i)};var Fo,Vo=function(t,n){var i;try{var r=Wo(t),o=Wo(n);i=o.getTime()-r.getTime()}catch(e){}return i};a["KmotionPolyline6"]=a["KmotionPolyline5"].extend({initialize:function(t,e,n,i){a["KmotionPolyline5"].prototype.initialize.call(this,t,e,n,i);for(var r,o=this.markerOptions||{},s=o.starttime,l=o.endtime,c=[],h=this._originLatlngs,u=0;u=-12&&p<=12&&8!=p&&(m=3600*(p-8)*1e3);var g=new Date(c.getTime()+f*a+m);return g},_findNextPoint2old:function(t,n,i,r,o){for(var s,l=this._totalDuration,c=l*i,h=this._durationArray,u=-1,d=0;dc){u=d;break}if(-1==u)return m["a"].log("_findNextPoint2 startIndex:-1 null",this._durationArray),null;var p=0,f=1;if(u>0&&(f=u,p=f-1),h[p]<0)return m["a"].log("_findNextPoint2 durationArr[p0]<0 null"),null;if(c0&&(p=u+1,d=u),l0&&r[n]),r&&r.length>0&&r[n]){for(var a=0;a<=n;a++){var s=r[a];o.push(s)}o.push(i)}return o},doMotion:function(t,e,n,i){if(this.motionOptions.duration=n,e<1){var r=this._findNextPoint2(this._map,t,e,n,i);if(m["a"].log("nextPoint == null",r),null==r)return null;var o=i;i||(o=this._getUpdateTime(r,e));var a=this._getCachedLatlngs(),s=this._getTip(o,r,e);this._appendCachedLatlngs(r),this.__ellapsedTime=t;var l=r||{},c=l.predecessor,h=l.lineCourse,u=this._getOriginLatlngs();if(u&&u.length>0&&u[c]){var d=vt["a"](u[c]),p=this.getCurrentTrajectory(r);m["a"].log("walked",p);var f=this.markerOptions||{},g=f.drawShipAsCircle,y=void 0!==g&&g;if(d){d.lat=r.latLng.lat,d.lon=r.latLng.lng,m["a"].log("fakeShip lat",e,d.lat),d.label=s,360!=h&&(d.course=h),y&&(d.width=-999),d.walked=p.map((function(t){return t.lineWidth=3,t.motionRouteColor&&(t.lineColor=t.motionRouteColor),t}));var _={ship:d,nextPoint:r,tip:s,_cachedLatlngs:a,updateTime:o};return m["a"].log("fakeShip",_),_}}}return null}}),a["kmotionPolyline6"]=function(t,e,n,i){return new a["KmotionPolyline6"](t,e,n,i)};var Qo=function(t){Fo&&Fo(t)},Ho=null,Jo=null;function Xo(t){return""!=t&&"-"!=t}var Ko=function(t){return!!(t.hasOwnProperty("speed")&&t.hasOwnProperty("heading")&&t.hasOwnProperty("course"))},qo=function(t){var e=t.heading,n=t.course;if(Xo(e)&&Xo(n)){var i=Math.abs(e-n);return i>Jo}return!1},$o=function(t,e){var n=!1;if(t&&e&&Ko(t)&&Ko(e)){var i=t.speed,r=e.speed;if(i>=Ho&&r>=Ho){var o=qo(t),a=qo(e);return{from_is_hdg_co_diff_allow:o,to_is_hdg_co_diff_allow:a}}}return n},ta=function(t,e){var n=$o(t,e);if(n){var i=n||{},r=i.from_is_hdg_co_diff_allow,o=i.to_is_hdg_co_diff_allow;return r&&o}return!1},ea=function(t,e){var n=$o(t,e);if(n){var i=n||{},r=i.from_is_hdg_co_diff_allow,o=i.to_is_hdg_co_diff_allow;return!r&&o}return!1},na=function(t,e){var n=$o(t,e);if(n){var i=n||{},r=i.from_is_hdg_co_diff_allow,o=i.to_is_hdg_co_diff_allow;return r&&!o}return!1},ia=function(t){return{mmsi:t.mmsi,updatetime:t.updatetime,speed:t.speed,heading:t.heading,course:t.course}},ra=function(t,n){var i=!1;try{if(null==Ho||null==Jo)return i;var r=ta(t,n),o=ea(t,n),a=na(t,n);r&&console.log("n3125 co代替hdg 相邻轨迹点同时满足条件(同时)",r,ia(t),ia(n)),o&&console.log("n3125 co代替hdg 前一个不满足,后一个满足(进入)",o,ia(t),ia(n)),a&&console.log("n3125 co代替hdg 前一个满足,后一个不满足(离开)",a,ia(t),ia(n)),i=r||o||a}catch(e){console.error(e),i=!1}return i},oa=function(t){return t&&t.hasOwnProperty("lat")&&t.hasOwnProperty("lon")};a["KmotionPolyline7"]=a["KmotionPolyline6"].extend({initialize:function(t,e,n,i){this._initialize_params={latlngs:t,options:e,motionOptions:n,markerOptions:i},m["a"].log("L.KmotionPolyline7",t),this._id=null,t.length>0&&(this._id=t[0].mmsi),this.refreshInitialize()},refreshInitialize:function(t){var e=this._initialize_params||{};e.latlngs,e.options,e.motionOptions,e.markerOptions;t&&(t.endtime&&(m["a"].log("refreshInitialize",t.endtime),this._initialize_params.markerOptions.endtime=t.endtime),t.latlngsMap&&t.latlngsMap[this._id]&&(m["a"].log("refreshInitialize latlngsMap",t.latlngsMap[this._id]),this._initialize_params.latlngs=this._initialize_params.latlngs.concat(t.latlngsMap[this._id]))),a["KmotionPolyline6"].prototype.initialize.call(this,this._initialize_params.latlngs,this._initialize_params.options,this._initialize_params.motionOptions,this._initialize_params.markerOptions)},_getUpdateTime:function(t,e){var n=this._originLatlngs,i=t||{},r=i.predecessor,o=i.segmentDurationRatio,a=void 0===o?1:o,s=n[r],l=n[r+1],c=Wo(s.updatetime),h=Wo(l.updatetime),u=this.markerOptions||{},d=u.timezone,p=void 0===d?8:d,f=Math.abs(c-h),m=0;void 0!=p&&p>=-12&&p<=12&&8!=p&&(m=3600*(p-8)*1e3);var g=new Date(c.getTime()+f*a+m);return g},_findNextPoint2:function(t,n,i,r,o){var s=this._totalDuration,l=s*i,c=this._durationArray;m["a"].log("_findNextPoint2 binarySearch",l,c);var h=Object(ie["c"])(c,l);m["a"].log("_findNextPoint2 binarySearch range",h);var u=h[0];if(-1==u)return m["a"].log("_findNextPoint2 startIndex:-1 null",this._durationArray),null;var d=0,p=1;if(u>0&&(p=u+1,d=u),l0&&r[n]),r&&r.length>0&&r[n]){for(var a=0;a<=n;a++){var s=r[a];o.push(s)}o.push(i)}return o},doMotion:function(t,e,n,i){if(this.motionOptions.duration=n,e<1){var r=this._findNextPoint2(this._map,t,e,n,i);if(m["a"].log("n3113 nextPoint == null",r),null==r)return null;var o=i;i||(o=this._getUpdateTime(r,e));var a=this._getCachedLatlngs(),s=this._getTip(o,r,e);this._appendCachedLatlngs(r),this.__ellapsedTime=t;var l=r||{},c=l.predecessor,h=l.lineCourse,u=this._getOriginLatlngs();if(u&&u.length>0&&u[c]){var d=vt["a"](u[c]),p=this.getCurrentTrajectory(r);m["a"].log("n3113 walked",d,r,p);var f=this.markerOptions||{},g=f.drawShipAsCircle,y=void 0!==g&&g,_=f.drawShipAsWholeShape,v=void 0!==_&&_,b=f.drawShipAsWholeShapeZoom,w=void 0===b?14:b,x=f.drawShipLabelModel,L=void 0===x?"":x;if(m["a"].log("n3113 drawShipAsWholeShape ",v),d){d.drawShipAsWholeShape=v,d.drawShipAsWholeShapeZoom=w,d.drawShipLabelModel=L,d.lat=r.latLng.lat,d.lon=r.latLng.lng,d.label=s,360!=h&&(d.course=h);var M=ra(u[c],u[c+1]);M&&(console.log("n3125 is_co_instead_hdg use course "+d.course+" instead of "+d.heading),d.heading=d.course),y&&(d.width=-999),d.walked=p.map((function(t){return t.lineWidth=3,t.motionRouteColor&&(t.lineColor=t.motionRouteColor),t})),d=this.n3133_update_fakeShip(d,{updateTimeVal:o});var k={ship:d,nextPoint:r,tip:s,_cachedLatlngs:a,updateTime:o};return m["a"].log("n3125 fakeShip",k),Qo({ship:d,nextPoint:r,tip:s,walked:p,lineCourse:h,from:u[c],to:u[c+1]}),k}}}return null},n3133_update_fakeShip:function(t,e){var n=e||{},i=n.updateTimeVal;return t.updatetime=i,t},_getTip:function(t,e,n){var i=this.markerOptions||{},r=(i.drawShipAsCircle,i.drawShipAsWholeShape,i.drawShipAsWholeShapeZoom,i.drawShipLabelModel),o=void 0===r?"":r;return o==Jt?this._getTip_DRAW_SHIP_LABEL_MODEL_NAME_SPEED(t,e,n):a["KmotionPolyline6"].prototype._getTip.call(this,t,e,n)},_getTip_DRAW_SHIP_LABEL_MODEL_NAME_SPEED:function(t,e,n){var i=Zo(),r=this.markerOptions||{},o=r.timezone,a=void 0===o?8:o,s=(r.motionShowSecond,this.UTC_LIST[a+12]);s&&s.text;var l,c=[],h=e.predecessor,u=(e.segmentDurationRatio,e.lineCourse,this._originLatlngs),d="",p="";if(u&&u.length>0){if(l=u[0],h>=0&&(l=u[h]),l.fixedMotionLabel)return l.fixedMotionLabel;d=l.speed+(i?"节":"kts"),p=l._motionName,c.push(d)}return c.unshift(p),c}}),a["kmotionPolyline7"]=function(t,e,n,i){return new a["KmotionPolyline7"](t,e,n,i)},a["KmotionGroup"]=a["Motion"].Polyline.extend({initialize:function(t,e,n,i){a["Motion"].Polyline.prototype.initialize.call(this,t,e,n,i),m["a"].log("L.KmotionGroup initialize is called",{motionOptions:n}),this._kmotionList=[];var r=i||{},o=r.kmotionList,s=void 0===o?[]:o;this._kmotionList=s,this._timeline_cb=null},beforeAdd:function(t){m["a"].log("L.KmotionGroup beforeAdd is called"),t.getPane(this.options.pane)||(t.createPane(this.options.pane).style.zIndex=599),this._renderer=t.getRenderer(this);for(var e=this._kmotionList||[],n=0;n0&&(e=t);var n=this.__ellapsedTime+e;this.motionEllapsedTime(n)},motionTimelinePrev:function(t){var e=1;t>0&&(e=t);var n=this.__ellapsedTime-e;n>0&&this.motionEllapsedTime(n)},motionDuration:function(t){var e=this.motionSpeed.duration;return this.motionOptions.duration=t||0,this.animation&&e&&(this.motionPause(),this.__ellapsedTime=this.__ellapsedTime*(e/t),this.motionOptions.duration=t,this.motionResume()),this},updateMarkerOptions:function(t){m["a"].log("n3113 updateMarkerOptions",t);for(var e=this._kmotionList||[],n=0;n1&&void 0!==arguments[1]?arguments[1]:a["kmotionPolyline"],n=t||{},i=n.latlngs,r=n.motionSpeed,s=void 0===r?1e4:r,l=n.timezone,c=void 0===l?8:l,h=n.motionRouteColor,u=void 0===h?"orange":h;m["a"].log("createLine",t),m["a"].log("motionSpeed",s);var d=100100-s;return e(i,{color:u},{duration:d,easing:a["Motion"].Ease.swing},Object(o["a"])(Object(o["a"])({},t),{},{timezone:c,removeOnEnd:!0}))},sa=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a["kmotionGroup"],i=t||{},r=i.latlngs,s=i.motionSpeed,l=void 0===s?1e4:s,c=i.timezone,h=void 0===c?8:c,u=i.motionRouteColor,d=void 0===u?"orange":u,p=i.motionDuration,f=void 0===p?1e5:p;m["a"].log("createGroupInstance",t);var g=n(r,{color:d},{duration:f,easing:a["Motion"].Ease.swing},Object(o["a"])(Object(o["a"])({},t),{},{timezone:h,removeOnEnd:!0,kmotionList:e}));return g.motionSpeed(l),g},la=function(t){return t&&t.length>0?t[0]._motionName:""},ca=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a["kmotionPolyline4"],n=t||{},i=n.latlngsList;if(m["a"].log("KmotionPolyline4 updateTimeArray __",t),i&&i.length>0){var r={updateTimeArray:[],nlatlngsList:i,spacelatlngs:[]},o=r||{},s=o.updateTimeArray,l=o.nlatlngsList,c=o.spacelatlngs;m["a"].log("KmotionPolyline4 updateTimeArray",s,l,i);var h=l.map((function(n){if(n&&n.length>0){var i=la(n);t.latlngs=n,t.spacelatlngs=c,m["a"].log("注入nlatlngsList",l,i),t.nlatlngsList=l;var r="orange";if(n&&n.length>0){var o=n[0];o.lineColor&&(r=o.lineColor,t.motionRouteColor=r)}var a=aa(t,e);return a}return null})).filter((function(t){return null!=t}));if(h&&h.length>0)return t.latlngs=l[0],sa(t,h,a["kmotionGroup2"])}return null},ha=function(t){var e=t||{},n=e.latlngs,i=e.latlngsList;return m["a"].log("createMotionApp",t),i&&i.length>0?(t.needChinaMapTransform=!1,ca(t,a["kmotionPolyline7"])):n&&n.length>1?aa(t,a["kmotionPolyline3"]):null},ua=function(t){var e=t.map((function(t){return[parseFloat(t.lon),parseFloat(t.lat)]})),n=vt["d"](e);return t.map((function(t,e){return t.lon=n[e][0],t.lng=n[e][0],t.lat=n[e][1],Object(o["a"])({},t)}))},da=function(t){return ua(t||[])},pa="kai.event.click.vessel",fa="kai.event.click.map",ma="kai.event.click.ukho",ga="kai.event.mouse.hover",ya="kai.event.motion.stop",_a=function(t){var e=t||{},n=e.xuhao,i=e.country;return n&&i?[n,i].join("&"):""},va=function(t){var e=t||{},n=e.latlngs,i=void 0===n?[]:n;if(i.length>0){var r=i[0],o=_a(r);return o}return""},ba="rgba(155, 89, 182, 1)",wa=function(){return ba},xa=function(t,e){var n=e||{},i=n.llon,r=n.blat,o=n.rlon,a=n.tlat,s=t.filter((function(t){var e,n,s=t||{},l=s.lat,c=s.lon,h=s.la,u=s.lo;e=1*l,n=1*c,t.hasOwnProperty("lat")||(e=1*h),t.hasOwnProperty("lon")||(n=1*u);var d=i<=n&&n<=o&&r<=e&&e<=a;return d}));return s},La=a["Polygon"].extend({getRenderer:function(){return this._renderer},registerHandleMouseHoverCallBack:function(t){this._registerHandleMouseHoverCallBack=t},registerShipCounterCallBack:function(t){this._registerShipCounterCallBack=t},unregisterShipCounterCallBack:function(){this._registerShipCounterCallBack=null},setKShipLayerBehavior:function(t){this._behavior=t},setVisibleBy:function(t){this._shipLayerVisible=Object(o["a"])(Object(o["a"])({},this._shipLayerVisible),t),this._behavior&&this._behavior.setVisibleBy(this._shipLayerVisible),this.redraw()},setCollection:function(t){this._setCollection(t)},_setCollection:function(t){if(window.___hf_sdk)this._ships=t;else if(this._map){var e=this.getBBoxConsiderChinaMapTransform(),n=e.split(",");this._ships=xa(t,{llon:n[0],blat:n[1],rlon:n[2],tlat:n[3]})}else this._ships=t},_getCollection:function(){return this._ships||[]},setMapId:function(t){this.mapId=t},initialize:function(t,e){e=a["Util"].extend({},this.kOptions,e),a["Util"].setOptions(this,e),this._setCollection(t),this._stage=Q.ship,this._trajectoryStyle=E,this._shipStopRecordStyle=S,this._trajectoryOptions=W,this._portStyle=P,this._shipStyle=O,this._kTrajectoryEl=Oe(),this._kTrajectoryLabelEl=je(),this._kShipStopRecordEl=Ge(),this._kShipStopRecordLabelEl=Ie(),this._kWindEl=Je(),this._kWindLabelEl=Ke(),this._kRouteSwellDirection=Ue(),this._kRouteSwellDirectionLabelEl=Ve(),this._kWaveEl=tn(),this._kWaveLabelEl=an(),this._kSearchWave=yo(),this._kPortEl=hn(),this._kPortLabelEl=Ie(),this._kShipEl=Zn(),this._kShipLabelEl=Hn(),this._kShipElOptions=_t||{},this._kPolylineEl=vi(),this._kPolylines=[],this._kSearchPolyline=Li(),this._polylineStyle=D,this._kSearchShip=$n(),this._kSearchShip3133=ni(),this._kSearchTrajectory=li(),this._kSearchPort=gi(),this._kPolygonEl=Si(),this._kPolygons=[],this._polygonStyle=C,this._kSearchPolygon=Ai(),this._chinaMapTransform=bt["a"],a["_chinaMapTransform"]=!1,this._kPointMarker=zi(),this._kPointMarkers=[],this._kSearchPointMarker=Yi(),this._pointMarkerStyle=z,this._kPlanrouteEl=Ki(),this._kPlanrouteStyle=I,this._kOnePlanrouteEl=hr(),this._kOnePlanrouteStyle=j,this._kOnePlanrouteOptions=R,this._kOnePlanrouteLabelEl=Ie(),this._kSearchOnePlanRoute=di(),this._kFutureTrajectoryEl=pr(),this._kFutureTrajectoryWaypointEl=xr(),this._kTyphoonNearPointEl=vr(),this._kFutureTrajectoryElOptions=F,this._kFutureTyphoonEl=gr(),this._kFutureTyphoonElOptions=V,this._kEstimatorRouteEl=Qi(),this._kEstimatorRoutes_realDraw=!0,this._shipLayerVisible=yt,this._kMerchantEl=kr(),this._kSearchMerchant=Er(),this._kTyphoonForecastTrajectoryEl=no(),this._kSearchTyphoonForecastTrajectory=oo(),this._kTyphoonInfoTrajectoryEl=co(),this._kSearchTyphoonInfoTrajectory=fo(),this._kTyphoonInfoTrajectoryElStyle=G,this._kPointInfoMarker=wo(),this._kPointInfoMarkers=[],this._kSearchPointInfoMarker=ko(),this._pointInfoMarkerStyle=z,this._pointInfoMarkerOptions={},this._kPolygonInfoEl=Po(),this._kPolygonInfos=[],this._polygonInfoStyle=N,this._kSearchPolygonInfo=jo(),this._kSelectedEl=Yn(),this._selectedEls=[],this._kstagePointMarkerEl=zi(),this._kstagePointMarkers=[],this._kstagePointMarkerSearcher=Yi(),this._kstagePointMarkerStyle=z,this._kmotionLayer=null,this._kmotionHandler=null,this._kmotionStatus={status:"stop"},this._is_update_selectedEls=!0,this._onePlanrouteStyle={trajectoryPointRadius:4,trajectoryPointLineWidth:2,trajectoryLineWidth:1},this._drawPlanRouteOption={showWind:!0,showWave:!0,showDate:!0,showWaypoint:!0,showDistanceCourse:!0,showRouteSwellDirection:!0},ae(this)},getBBoxConsiderChinaMapTransform:function(t){var e=t||{},n=e.left,i=e.right,r=e.bottom,o=this._map.getBounds(),a=o.getEast();if(i>0){var s={lat:0,lng:a};s=this._map.latLngToLayerPoint(s),s.x-=i,s=this._map.layerPointToLatLng(s),a=s.lng}var l=o.getWest();if(n>0){var c={lat:0,lng:l};c=this._map.latLngToLayerPoint(c),c.x+=n,c=this._map.layerPointToLatLng(c),l=c.lng}var h=o.getSouth();if(r>0){var u={lat:h,lng:0};u=this._map.latLngToLayerPoint(u),u.y-=r,u=this._map.layerPointToLatLng(u),h=u.lat}var d=o.getNorth();while(a>180)a-=360;while(l>180)l-=360;while(l<-180)l+=360;while(a<-180)a+=360;var p=l,f=a,m=d,g=h,y=p+","+g+","+f+","+m;return this._chinaMapTransform?([{lat:d,lng:l},{lat:d,lng:a},{lat:h,lng:l},{lat:h,lng:a}].forEach((function(t){var e=bt["d"](t),n=e.lat,i=e.lng;n>m&&(m=n),nf&&(f=i),i0:e==t,n},_realDraw:function(t,e){this._label_rtree=new M,e._map.getZoom()<16&&(this._shipLayerVisible.realDrawTyphoonForecast&&this._realDrawTyphoonForecast(t,e,this._label_rtree),this._shipLayerVisible.realDrawTyphoonForecast&&this._realDrawTyphoonInfoTrajectory(t,e,this._label_rtree));var n=this._is_update_selectedEls;this._testStage(Q.playback)&&(this._kmotionLayer||this._shipLayerVisible.realDrawShips&&this._realDrawShips(t,e,this._label_rtree),this._shipLayerVisible.realDrawMultiTrajectory&&this._realDrawMultiTrajectory(t,e,this._label_rtree),this._realDrawShipsMotion(t,e,this._label_rtree)),this._testStage(Q.playbackarea)&&(this._kmotionLayer||this._shipLayerVisible.realDrawShips&&this._realDrawShips(t,e,this._label_rtree),this._shipLayerVisible.realDrawMultiTrajectory&&this._realDrawMultiTrajectory(t,e,this._label_rtree),!this._shipLayerVisible.realDrawN2905Trajectory&&this._realDrawShipsMotion(t,e,this._label_rtree)),this._testStage(Q.ship)&&(this._shipLayerVisible.realDrawPlanroute&&this._realDrawPlanroute(t,e,this._label_rtree),this._shipLayerVisible.realDrawShips&&this._realDrawShips(t,e,this._label_rtree),this._shipLayerVisible.realDrawEstimatorRoutes&&this._realDrawEstimatorRoutes(t,e)),this._testStage(Q.history)&&(this._shipLayerVisible.realDrawTrajectory&&this._realDrawTrajectory(t,e,this._label_rtree),this._shipLayerVisible.realDrawShipWhenOnePlan&&this._realDrawShipWhenOnePlan(t,e),this._realDrawStagePointMarker(t,e),this._realDrawShipsMotion(t,e,this._label_rtree)),this._testStage(Q.trajectory)&&this._shipLayerVisible.realDrawTrajectory&&this._realDrawTrajectory(t,e,this._label_rtree),this._testStage(Q.multitrajectory)&&(this._shipLayerVisible.realDrawMultiTrajectory&&this._realDrawMultiTrajectory(t,e,this._label_rtree),this._realDrawShipsMotion(t,e,this._label_rtree),n=!1),this._testStage(Q.plan)&&(this._shipLayerVisible.realDrawTyphoonMin&&this._realDrawTyphoonMin(t,e),this._shipLayerVisible.realDrawShipWhenOnePlan&&this._realDrawShipWhenOnePlan(t,e),this._shipLayerVisible.realDrawOnePlanroute&&this._realDrawOnePlanroute(t,e),this._shipLayerVisible.realDrawFutureTyphoon&&this._realDrawFutureTyphoon(t,e),this._shipLayerVisible.realDrawFutureTrajectory&&this._realDrawFutureTrajectory(t,e)),this._testStage(Q.sdk)&&(this._shipLayerVisible.realDrawShips&&this._realDrawShips(t,e,this._label_rtree),this._shipLayerVisible.realDrawTrajectory&&this._realDrawTrajectory(t,e,this._label_rtree)),n&&this._selectedEls&&this._selectedEls.length>0&&this._realDrawSelectedEls(t,e),this._testStage(Q.distance)&&(this._realDrawDistancePlanroute(t,e,this._label_rtree),this._realDrawDistancePointMarker(t,e)),this._realDrawPointMarker(t,e,this._shipLayerVisible.realDrawPointMarker)},_realDrawStagePointMarker:function(t,e){this._kstage_pointmarker_rtree=new M;var n=this._kstagePointMarkers||[];n&&n.length>0&&this._kstagePointMarkerEl.realDrawBy({ctx:t,layer:e,query:this._kstage_pointmarker_rtree,options:{},style:this._kstagePointMarkerStyle,els:n})},_realDrawSelectedEls:function(t,e){if(e&&null==e._selectedByMMSI){var n=this._selectedEls;this._kSelectedEl.realDrawBy({ctx:t,layer:e,els:n})}},_realDrawPointInfoMarker:function(t,e,n){this._pointinfomarker_rtree=new M,this._kPointInfoMarker.realDrawBy({ctx:t,layer:e,query:this._pointinfomarker_rtree,options:this._pointInfoMarkerOptions||{},style:this._pointInfoMarkerStyle,els:this._kPointInfoMarkers})},_realDrawPolygonInfo:function(t,e){this._polygoninfo_rtree=new M,this._kPolygonInfoEl.realDrawBy({ctx:t,layer:e,query:this._polygoninfo_rtree,els:e._kPolygonInfos,style:this._polygonInfoStyle})},_realDrawTyphoonInfoTrajectory:function(t,e,n){this._typhooninfo_rtree=new M,this._realDrawTyphoonInfoTrajectory_for_one_typhoon_implement(t,e,n,this._typhooninfo_rtree,this._typhoonInfoTrajectory)},_realDrawTyphoonForecast:function(t,e,n){var i=this;this._typhoonForecastCollection_rtree=new M;var r=this._typhoonForecastCollection_rtree,o=[],a=this.getN2390LabelShowKeyMapper();this._typhoonForecastCollection&&this._typhoonForecastCollection.forEach((function(s){var l={waypoints:s},c=i.__realDrawTyphoonForecast_Implement(t,e,r,n,l),h=va(s);a&&a[h]&&(o=o.concat(c.labels||[]))})),this._kTrajectoryLabelEl.realDrawBy({ctx:t,layer:e,els:o,options:this._kFutureTrajectoryElOptions,style:this._trajectoryStyle})},_realDrawTyphoonInfoTrajectory_for_one_typhoon_implement:function(t,e,n,i,r){this._kTyphoonInfoTrajectoryEl.realDrawBy({ctx:t,layer:e,query:i,els:r,options:this._trajectoryOptions,style:this._kTyphoonInfoTrajectoryElStyle})},_realDrawTyphoonForecast_for_one_typhoon_implement:function(t,e,n,i,r){var o=this;r&&r.forEach((function(r){var a={waypoints:r};o.__realDrawTyphoonForecast_Implement(t,e,i,n,a)}))},__realDrawTyphoonForecast_Implement:function(t,e,n,i,r){var o=r.waypoints;return this._kTyphoonForecastTrajectoryEl.realDrawBy({ctx:t,layer:e,query:n,options:this._trajectoryOptions,style:{lineWidth:2,strokeStyle:"red",circleColor:"blue"},els:[o]})},_realDrawMerchant:function(t,e){this._merchant_tree=new M;this._kMerchantEl.realDrawBy({ctx:t,layer:e,query:this._merchant_tree,style:{},els:this._kMerchants})},_realDrawTyphoonMin:function(t,e){var n=this,i=this._typhoonMin;i.length>0&&(m["a"].log("n2607 opt _realDrawOnePlanroute is called 2",this._typhoonMin),i.map((function(i){n._realDrawTyphoonMinImplement(t,e,[i])})))},_realDrawTyphoonMinImplement:function(t,e,n){this._kOnePlanrouteEl.realDrawBy({ctx:t,layer:e,style:Object(o["a"])(Object(o["a"])({},this._trajectoryStyle),{},{lineColor:"#1989fa",lineWidth:3}),options:Object(o["a"])(Object(o["a"])({},this._kFutureTyphoonElOptions),{},{showArrow:!1}),els:n}),m["a"].log("n2607 need update nearPoint Drawer")},_realDrawFutureTyphoon:function(t,e){this._kFutureTyphoonEl.realDrawBy({ctx:t,layer:e,style:this._trajectoryStyle,options:this._kFutureTyphoonElOptions,els:this._futureTyphoon})},_realDraw_n2607_nearestPoint_impl:function(t,e,n){var i={ctx:t,layer:e,style:this._trajectoryStyle,els:n,options:this._kFutureTrajectoryElOptions},r=this._kTyphoonNearPointEl.realDrawBy(i);if(r&&r.labels&&r.labels.length>0){var o=r.labels;this._kTrajectoryLabelEl.realDrawBy({ctx:t,layer:e,els:o,options:this._kFutureTrajectoryElOptions,style:this._trajectoryStyle})}if(n.length>0){var a=n[0],s=a.latlngs||[];s=s.filter((function(t){return t.iconUrl})),s.length>0&&this._kPointMarker.realDrawBy({ctx:t,layer:e,query:new M,options:{},style:this._pointMarkerStyle,els:s})}},_realDraw_n2607_pointList:function(t,e){var n=this._planReckon_point_list||[];n&&n.length>0&&this._realDraw_n2607_nearestPoint_impl(t,e,[{latlngs:n}])},_realDrawFutureTrajectory:function(t,e){var n=this,i={ctx:t,layer:e,style:this._trajectoryStyle,els:this._futureTrajectory,options:this._kFutureTrajectoryElOptions},r={},a=this._futureTyphoon&&this._futureTyphoon.length>0;a?(r=this._kFutureTrajectoryWaypointEl.realDrawBy(i),this._realDraw_n2607_pointList(t,e)):r=this._kFutureTrajectoryEl.realDrawBy(i);var s=this._nearPointList||[];if(!(s&&s.length>0)){var l=[];m["a"].log("n2607 _nearPointList",this._nearPointList),this._minOneList&&this._minOneList.length>0&&(m["a"].log("N1650 _minOneList",this._minOneList,r.labels),l=r.labels.filter((function(t){return n._minOneList.filter((function(e){return e.date==t.labelText})).length>0})),m["a"].log("N1650 _minOneList end ",l),l=l.map((function(t){var e=n._minOneList.filter((function(e){return e.date==t.labelText}))[0];m["a"].log("N1650 _minOneList result_labels el",e);var i=e.distance,r=e.title||"",a=[" "+i+"nm",r].join(" ");return t.labelText+=a,t.drawAnchorLine=!1,t.boundlist=t.boundlist.map((function(t){return t.w+=8*a.length,t})),Object(o["a"])({},t)}))),l&&0==l.length&&this._minOne&&(l=r.labels.filter((function(t){return t.labelText==n._minOne.date})),l=l.map((function(t){var e=" "+n._minOne.distance+"nm";return t.labelText+=e,t.drawAnchorLine=!1,t.boundlist=t.boundlist.map((function(t){return t.w+=8*e.length,t})),Object(o["a"])({},t)}))),a&&l.length>0?this._kTrajectoryLabelEl.realDrawBy({ctx:t,layer:e,els:l,options:this._kFutureTrajectoryElOptions,style:this._trajectoryStyle}):this._kTrajectoryLabelEl.realDrawBy({ctx:t,layer:e,els:r.labels,options:this._kFutureTrajectoryElOptions,style:this._trajectoryStyle})}},_realDrawEstimatorRoutes:function(t,e){if(this._kEstimatorRoutes_realDraw){this._oneplanroute_rtree=new M;var n={ctx:t,layer:e,query:this._oneplanroute_rtree,style:this._kOnePlanrouteStyle,els:this._kEstimatorRoutes,options:this._kOnePlanrouteOptions};this._kEstimatorRouteEl.realDrawBy(n)}},_realDrawOnePlanroute:function(t,e){this._oneplanroute_rtree=new M;var n=Object(o["a"])({},this._kOnePlanrouteStyle);n&&(m["a"].log("n3064 _realDrawOnePlanroute",n),n.lineColor=wa()||n.lineColor);var i=Object(o["a"])({},this._kOnePlanrouteOptions),r=[];this._kOnePlanroutes.map((function(t){return r.push(t)})),this._kOtherPlanroutes&&this._kOtherPlanroutes.length>0&&this._kOtherPlanroutes.map((function(t){t.latlngs=t.latlngs.map((function(t){var e=t&&t.hasOwnProperty("lineColor");return e||(t.lineColor="#808c9a"),t})),r.push(t)}));var a={ctx:t,layer:e,query:this._oneplanroute_rtree,style:n,els:r,options:i};m["a"].log("n3040 1690 opt _realDrawOnePlanroute is called",this._kOnePlanroutes,r);var s=this._kOnePlanrouteEl.realDrawBy(a);this._kOnePlanrouteLabelEl.realDrawBy({ctx:t,layer:e,els:s.labels,options:i,style:n}),m["a"].log("n3105 drawwind",this._kOnePlanroutes,r)},_realDrawDistancePlanroute:function(t,e,n){this._distance_planroute_rtree=new M;var i=this._kDistancePlanrouteOptions||{},r=i.trajectoryStyle,o=void 0===r?this._trajectoryStyle||{}:r,a=i.shipStopRecordStyle,s=void 0===a?this._shipStopRecordStyle||{}:a,l={trajectoryStyle:o,shipStopRecordStyle:s},c={waypoints:this._kDistancePlanroutes,shipStopRecord:[],winds:[],waves:[],trajectoryOptions:this._kDistancePlanrouteOptions,style:l};this._realDrawTrajectoryImplement(t,e,n,this._distance_planroute_rtree,c)},setDrawOnePlanrouteStyle:function(t){this._onePlanrouteStyle=Object(o["a"])(Object(o["a"])({},this._onePlanrouteStyle||{}),t||{}),this.redraw()},_realDrawPlanroute:function(t,e,n){var i=this,r=this._drawPlanRouteOption||{},a=r.showWind,s=r.showWave,l=r.showDate,c=r.showWaypoint,h=r.showRouteSwellDirection;if(s&&this._hangxianWave&&this._hangxianWave.length>0){this._trajectory_rtree=new M;var u={trajectoryStyle:this._trajectoryStyle,shipStopRecordStyle:this._shipStopRecordStyle},d={waypoints:[],shipStopRecord:[],winds:[],waves:this._hangxianWave,trajectoryOptions:{showLabel:!1,showLatLngLabel:!1,showArrow:!1,showPoint:!1,showLine:!1,showWind:!1,showShipStopRecord:!1,showWave:!0},style:u};this._realDrawTrajectoryImplement(t,e,n,this._trajectory_rtree,d)}if(a&&this._hangxianWind&&this._hangxianWind.length>0){this._trajectory_rtree=new M;var p={trajectoryStyle:this._trajectoryStyle,shipStopRecordStyle:this._shipStopRecordStyle},f={waypoints:[],shipStopRecord:[],winds:this._hangxianWind,waves:[],trajectoryOptions:{showLabel:!1,showLatLngLabel:!1,showArrow:!1,showPoint:!1,showLine:!1,showWind:!0,showShipStopRecord:!1,showWave:!1},style:p};this._realDrawTrajectoryImplement(t,e,n,this._trajectory_rtree,f)}if(h&&this._hangxianRouteSwellDirection&&this._hangxianRouteSwellDirection.length>0){this._trajectory_rtree=new M;var g={trajectoryStyle:this._trajectoryStyle,shipStopRecordStyle:this._shipStopRecordStyle},y={waypoints:[],shipStopRecord:[],winds:[],routeSwellDirections:this._hangxianRouteSwellDirection,waves:[],trajectoryOptions:{showLabel:!1,showLatLngLabel:!1,showArrow:!1,showPoint:!1,showLine:!1,showRouteSwellDirection:!0,showShipStopRecord:!1,showWave:!1},style:g};m["a"].log("n3320 draw _hangxianRouteSwellDirection",y),this._realDrawTrajectoryImplement(t,e,n,this._trajectory_rtree,y)}this._kPlanroutes_rtree=new M;var _,v,b=this._kPlanroutesOptions||{},w=Object(o["a"])(Object(o["a"])({},b),{},{hilightPlans:this._kHilightPlans}),x=this._kPlanroutes||[],L=this._kHilightPlans||[],k=[];if(x&&x.length>0&&L&&L.length>0&&(_=L[0],k=x.filter((function(t){return t.mmsi==_.mmsi}))),k.length>0){var T=k[0];if(_.currentLatlng){for(var A,E,S=_.currentLatlng,P=T.latlngs,O=-1,D=e._map,I=0;I-1){var G=P.slice(0,O+1),B=P.slice(O,O+2),Z=P.slice(O+1);A=["#6F6F6F","#AC1A12","#8100DF"],E=[G,B,Z],v=function(){i.___realDrawPlanrouteBy(t,e,n,E,A,2),c&&i.___realDrawPlanrouteBy4OnePlanLabel(t,e,n,[G],A,2,{textColor:"gray"}),c&&i.___realDrawPlanrouteBy4OnePlanLabel(t,e,n,[Z],A,2,{})}}else A=["#8100DF"],E=[P],v=function(){i.___realDrawPlanrouteBy(t,e,n,E,A,0),c&&i.___realDrawPlanrouteBy4OnePlanLabel(t,e,n,E,A,0)}}}if(this._kPlanrouteEl.realDrawBy({ctx:t,layer:e,style:this._kPlanrouteStyle,els:x,options:w,query:this._kPlanroutes_rtree}),v&&v(),l&&this._hangxianDate&&this._hangxianDate.length>0){this._trajectory_rtree=new M;var U={trajectoryStyle:this._trajectoryStyle,shipStopRecordStyle:this._shipStopRecordStyle},Y={waypoints:this._hangxianDate,shipStopRecord:[],winds:[],waves:[],trajectoryOptions:{showLabel:!0,showLatLngLabel:!1,showArrow:!1,showPoint:!1,showLine:!1,showWind:!1,showShipStopRecord:!1,showWave:!1},style:U};this._realDrawTrajectoryImplement(t,e,n,this._trajectory_rtree,Y)}},___realDrawPlanrouteBy:function(t,e,n,i,r,o){var a=this,s=this._onePlanrouteStyle||{},l=s||{},c=l.trajectoryPointRadius,h=l.trajectoryPointLineWidth,u=l.trajectoryLineWidth,d=this._drawPlanRouteOption||{},p=d.showDistanceCourse;i.forEach((function(i,s){var l={trajectoryStyle:{trajectoryPointRadius:c,trajectoryPointLineWidth:h,fontSize:12,textColor:"blue",textBackgroundColor:"white",model:"nomi",circleColor:"#FF6600",lineColor:"#d63031",lineColorSlow:"#7bed9f",anchorSize:10,anchorLineColor:r[s],anchorLineWidth:1,trajectoryLowSpeedLineColor:r[s],trajectoryLineColor:r[s],trajectoryLineWidth:u,anchorGlobalAlpha:.5},shipStopRecordStyle:{}},d={waypoints:i,shipStopRecord:[],winds:[],waves:[],trajectoryOptions:{showLabel:!1,showLatLngLabel:!1,showArrow:!0,showPoint:!0,showLine:!0,showWind:!1,showShipStopRecord:!1,showWave:!1,showDashLine:s==o,showDistanceCourse:p},style:l};a._realDrawTrajectoryImplement4OnePlan(t,e,n,a._kPlanroutes_rtree,d)}))},___realDrawPlanrouteBy4OnePlanLabel:function(t,e,n,i,r,a,s){var l=this;i.forEach((function(i,c){var h={trajectoryStyle:Object(o["a"])({fontSize:12,textColor:"blue",textBackgroundColor:"white",model:"nomi",circleColor:"#FF6600",lineColor:"#d63031",lineColorSlow:"#7bed9f",anchorSize:10,anchorLineColor:r[c],anchorLineWidth:1,trajectoryLowSpeedLineColor:r[c],trajectoryLineColor:r[c],trajectoryLineWidth:2,anchorGlobalAlpha:.5},s||{}),shipStopRecordStyle:{}},u={waypoints:i,shipStopRecord:[],winds:[],waves:[],trajectoryOptions:{showLabel:!0,showLatLngLabel:!1,showArrow:!1,showPoint:!1,showLine:!1,showWind:!1,showShipStopRecord:!1,showWave:!1,showDashLine:c==a},style:h};l._realDrawTrajectoryImplement4OnePlan(t,e,n,l._kPlanroutes_rtree,u)}))},_realDrawDistancePointMarker:function(t,e){this._pointmarker_rtree=new M;var n=this._kDistancePointMarkers||[];n&&n.length>0&&this._kPointMarker.realDrawBy({ctx:t,layer:e,query:this._pointmarker_rtree,options:{},style:this._pointMarkerStyle,els:n})},_realDrawPointMarker:function(t,e,n){this._pointmarker_rtree=new M;var i=this._kPointMarkers||[];0==n&&(i=i.filter((function(t){return 1==t.ignoreVisible}))),i&&i.length>0&&this._kPointMarker.realDrawBy({ctx:t,layer:e,query:this._pointmarker_rtree,options:{compressZoom:5},style:this._pointMarkerStyle,els:i})},_realDrawPointMarkerOld:function(t,e,n){this._pointmarker_rtree=new M,this._kPointMarker.realDrawBy({ctx:t,layer:e,query:this._pointmarker_rtree,options:{},style:this._pointMarkerStyle,els:this._kPointMarkers})},_realDrawShipWhenOnePlan:function(t,e,n){if(!(this.isTrajectoryMotionOn()||this.isTrajectoryMotionPause()||this.isTrajectoryMotionResume()))return this._realDrawShipWhenOnePlanImpl(t,e,n)},_realDrawShipWhenOnePlanImpl:function(t,e,n){this._ship_rtree=new M;var i={mapper:{},onmap:{},labelOnMap:{}};this._selectedShips.forEach((function(t){i.mapper[t.mmsi]=t,i.onmap[t.mmsi]=!1,i.labelOnMap[t.mmsi]=!1}));var r=this._kShipEl.realDrawBy({ctx:t,layer:e,query:this._ship_rtree,options:{appendEls:i,selectedByMMSI:e._selectedByMMSI,testTimestamp:e._testTimestamp},style:{},els:[]});this._kShipLabelEl.realDrawBy({ctx:t,layer:e,els:r.appendLabels,query:this._ship_rtree,options:{},style:this._shipStyle})},_realDrawShips:function(t,e,n){this._ship_rtree=new M;var i=e._ships;this._shipLayerVisible.realDrawMapShips||(i=[]);var r=this._registerShipCounterCallBack,a={ctx:t,layer:e,query:this._ship_rtree,options:Object(o["a"])(Object(o["a"])({},this._kShipElOptions),{},{appendEls:e._appendShips,selectedByMMSI:e._selectedByMMSI,testTimestamp:e._testTimestamp,mousedHoveredByMMSI:e._mouseHoveredMMSI,cb:r,_is_update_selectedEls:this._is_update_selectedEls}),style:{},els:i},s=this._kShipEl.realDrawBy(a);if(this._shipLayerVisible.realDrawShipsLabels){e._map.getZoom();var l=new M;this._kShipLabelEl.realDrawBy({ctx:t,layer:e,els:s.appendLabels,query:l,options:{},style:this._shipStyle}),this._kShipLabelEl.realDrawBy({ctx:t,layer:e,els:s.labels,query:l,options:{},style:this._shipStyle})}},_realDrawShipsMotionWalked:function(t,e,n){for(var i=e._motion_ships||[],r=[],o=0;o0&&r.push({latlngs:c})}var h={ctx:t,layer:e,options:{showArrow:!1,showLabel:!1,showLatLngLabel:!1,showLine:!0,showPoint:!1,showShipStopRecord:!1,showWind:!1,showWave:!1},style:this._trajectoryStyle,els:r};this._kTrajectoryEl.realDrawBy(h)},_realDrawShipsMotion:function(t,e,n){this._motion_ship_rtree=new M;var i=e._motion_ships||[];this._realDrawShipsMotionWalked(t,e,n);var r=this._registerShipCounterCallBack,a={ctx:t,layer:e,query:this._motion_ship_rtree,options:Object(o["a"])(Object(o["a"])({},this._kShipElOptions),{},{appendEls:[],selectedByMMSI:[],testTimestamp:null,mousedHoveredByMMSI:[],cb:r,_is_update_selectedEls:this._is_update_selectedEls,drawShipsOnZoomLevel:0}),style:{},els:i},s=this._kShipEl.realDrawBy(a);if(this._shipLayerVisible.realDrawShipsLabels){var l=this._MotionMarkerOptions||{},c=l.labelShowAllTheTime,h=void 0!==c&&c,u=(e._map.getZoom(),new M);this._kShipLabelEl.realDrawBy({ctx:t,layer:e,els:s.appendLabels,query:u,options:{labelShowAllTheTime:h},style:this._shipStyle}),this._kShipLabelEl.realDrawBy({ctx:t,layer:e,els:s.labels,query:u,options:{labelShowAllTheTime:h},style:this._shipStyle})}},_realDrawPorts:function(t,e,n){this._ports_rtree=new M;var i=this._selectedPort||{};this._kPortEl.realDrawBy({ctx:t,layer:e,query:this._ports_rtree,options:{selectedPort:i},style:this._portStyle,els:this._ports})},_realDrawMultiTrajectory:function(t,e,n){var i=this;this._trajectory_rtree=new M,this._multiTrajectory&&this._multiTrajectory.map((function(r){i._realDrawTrajectoryImplement(t,e,n,i._trajectory_rtree,r)}))},_realDrawTrajectory:function(t,e,n){this._trajectory_rtree=new M;var i={trajectoryStyle:this._trajectoryStyle,shipStopRecordStyle:this._shipStopRecordStyle},r={waypoints:this._trajectoryWaypoints,shipStopRecord:this._shipStopRecord,winds:this._winds,waves:this._waves,trajectoryOptions:this._trajectoryOptions,style:i};this._realDrawTrajectoryImplement(t,e,n,this._trajectory_rtree,r)},_realDrawTrajectoryImplement4OnePlan:function(t,e,n,i,r){var a=r.waypoints,s=void 0===a?[]:a,l=(r.shipStopRecord,r.winds,r.waves,r.trajectoryOptions),c=void 0===l?{showArrow:!0,showLabel:!0,showLatLngLabel:!0,showLine:!0,showPoint:!0,showShipStopRecord:!0,showWind:!0,showWave:!0}:l,h=r.style,u=void 0===h?{}:h,d=this._testStage(Q.sdk),p=Object(o["a"])(Object(o["a"])({},c),{},{_is_sdk_mode:d}),f=u||{},m=f.trajectoryStyle,g=void 0===m?{}:m,y=Object(o["a"])(Object(o["a"])({},this._trajectoryStyle),g);s[0]&&void 0==s[0].latlngs&&(s=[{latlngs:s}]);var _={ctx:t,layer:e,query:i,options:p,style:y,els:s},v=this._kTrajectoryEl.realDrawBy(_);this._kTrajectoryLabelEl.realDrawBy({ctx:t,layer:e,els:v.labels,query:n,options:p,style:y})},_realDrawTrajectoryImplement:function(t,e,n,i,r){var a=r.waypoints,s=void 0===a?[]:a,l=r.shipStopRecord,c=void 0===l?[]:l,h=r.winds,u=void 0===h?[]:h,d=r.waves,p=void 0===d?[]:d,f=r.routeSwellDirections,m=void 0===f?[]:f,g=r.trajectoryOptions,y=void 0===g?{showArrow:!0,showLabel:!0,showLatLngLabel:!0,showLine:!0,showPoint:!0,showShipStopRecord:!0,showWind:!0,showWave:!0}:g,_=r.style,v=void 0===_?{}:_,b=this._testStage(Q.sdk),w=Object(o["a"])(Object(o["a"])({},y),{},{_is_sdk_mode:b}),x=v||{},L=x.trajectoryStyle,M=void 0===L?{}:L,k=x.shipStopRecordStyle,T=void 0===k?{}:k,A=Object(o["a"])(Object(o["a"])({},this._trajectoryStyle),M),E=Object(o["a"])(Object(o["a"])({},this._shipStopRecordStyle),T);if(s[0]&&void 0==s[0].latlngs&&(s=[{latlngs:s}]),w.showWave&&p&&p.length){for(var S=[],P={showArrow:!1,showLabel:!1,showLatLngLabel:!1,showLine:!0,showPoint:!1,showShipStopRecord:!1,showWind:!1,showWave:!1},O=0;O0){var z={ctx:t,layer:e,query:i,options:P,style:A,els:S};this._kTrajectoryEl.realDrawBy(z)}}var G={ctx:t,layer:e,query:i,options:w,style:A,els:s},B=this._kTrajectoryEl.realDrawBy(G);if(w.showShipStopRecord&&c&&c.length){var Z=this._kShipStopRecordEl.realDrawBy({ctx:t,layer:e,els:c,query:i,options:w,style:E});this._kShipStopRecordLabelEl.realDrawBy({ctx:t,layer:e,els:Z.labels,query:n,options:w,style:E})}if(this._kTrajectoryLabelEl.realDrawBy({ctx:t,layer:e,els:B.labels,query:n,options:w,style:A}),w.showWind&&u&&u.length){var U=this._kWindEl.realDrawBy({ctx:t,layer:e,els:u,query:i,options:w,style:{}});this._kWindLabelEl.realDrawBy({ctx:t,layer:e,els:U.labels,query:{},options:w,style:{}})}if(w.showRouteSwellDirection&&m&&m.length){var Y=this._kRouteSwellDirection.realDrawBy({ctx:t,layer:e,els:m,query:i,options:w,style:{}});this._kRouteSwellDirectionLabelEl.realDrawBy({ctx:t,layer:e,els:Y.labels,query:{},options:w,style:{}})}},_KSearchShipBuffer:function(t){var e=t._map.getZoom();return e<10?40:80},_rtree_search:function(t,e,n){var i,r={point:t,layer:e,mapId:this.mapId,vue:this._vue};if(this._testStage(Q.playback)&&this._shipLayerVisible.realDrawShips){var a=this._KSearchShipBuffer(e),s=Object(o["a"])(Object(o["a"])({},r),{},{query:e._ship_rtree,buffer:a});i=this._kSearchShip.searchEl(s),i||(i=this._kSearchTrajectory.searchEl(Object(o["a"])(Object(o["a"])({},r),{},{query:e._trajectory_rtree})))}if(this._testStage(Q.playbackarea)&&this._shipLayerVisible.realDrawShips){var l=this._KSearchShipBuffer(e),c=Object(o["a"])(Object(o["a"])({},r),{},{query:e._ship_rtree,buffer:l});i=this._kSearchShip.searchEl(c),i||(i=this._kSearchTrajectory.searchEl(Object(o["a"])(Object(o["a"])({},r),{},{query:e._trajectory_rtree})))}if((this._testStage(Q.ship)||this._testStage(Q.sdk))&&this._shipLayerVisible.realDrawShips){var h=this._KSearchShipBuffer(e),u=Object(o["a"])(Object(o["a"])({},r),{},{query:e._ship_rtree,buffer:h});i=this._kSearchShip.searchEl(u);var d=null;i&&i.mmsi&&(d=i.mmsi),this.setMouseHoveredByMMSI(d),i||(i=this._kSearchTrajectory.searchEl(Object(o["a"])(Object(o["a"])({},r),{},{query:e._kPlanroutes_rtree})))}if(this._testStage(Q.multitrajectory)&&!i){var p=this._KSearchShipBuffer(e),f=Object(o["a"])(Object(o["a"])({},r),{},{query:e._motion_ship_rtree,buffer:p});i=this._kSearchShip3133.searchEl(f)}return(this._testStage(Q.trajectory)||this._testStage(Q.history)||this._testStage(Q.multitrajectory)||this._testStage(Q.sdk))&&!i&&(i=this._kSearchTrajectory.searchEl(Object(o["a"])(Object(o["a"])({},r),{},{query:e._trajectory_rtree}))),this._testStage(Q.plan)&&!i&&(i=this._kSearchOnePlanRoute.searchEl(Object(o["a"])(Object(o["a"])({},r),{},{query:e._oneplanroute_rtree}))),this._behavior&&!i&&(i=this._behavior._rtree_search(t,e)),i||(i=this._kSearchPointMarker.searchEl(Object(o["a"])(Object(o["a"])({},r),{},{query:this._pointmarker_rtree}))),i||(i=this._kstagePointMarkerSearcher.searchEl(Object(o["a"])(Object(o["a"])({},r),{},{query:this._kstage_pointmarker_rtree}))),!i&&this._shipLayerVisible.realDrawTyphoonForecast&&(i=this._kSearchTyphoonForecastTrajectory.searchEl(Object(o["a"])(Object(o["a"])({},r),{},{query:e._typhoonForecastCollection_rtree}))),!i&&this._shipLayerVisible.realDrawTyphoonForecast&&(i=this._kSearchTyphoonInfoTrajectory.searchEl(Object(o["a"])(Object(o["a"])({},r),{},{query:e._typhooninfo_rtree})),this._testStage(Q.plan)&&(i=null)),this._registerHandleMouseHoverCallBack&&this._registerHandleMouseHoverCallBack(t,e,n,i),i},_updatePath:function(){this._renderer._kchangeDrawer(this)},redraw:function(){this._kFutureTyphoonEl&&this._kFutureTyphoonEl.clear(),a["Polygon"].prototype.redraw.call(this),this._behavior&&this._behavior.redraw()}}),Ma=La.extend({setCollection:function(t){var e=t.kship||t.ships;this._setCollection(e),this.redraw()},drawShips:function(t){this.setCollection(t)},setShips:function(t){var e=t.list||[];this._setCollection(e),this.redraw()},setMotionShips:function(t){this._motion_ships=t.list||[],m["a"].log("setMotionShips",t),this.redraw()},append:function(t){if(t._smooth)this._append_smooth(t);else{var e=t.ships||[],n={},i={},r={};e.forEach((function(t){n[t.mmsi]=t,i[t.mmsi]=!1,r[t.mmsi]=!1})),this._appendShips={mapper:n,onmap:i,labelOnMap:r},this.redraw()}},_append_smooth_refresh:function(t){var e=t.ships||[],n={},i=t._smooth||{},r=i.starttime,o=i.endtime;e.forEach((function(t){var e=t||{},i=e._smooth;if(i){var o=i||{},a=o.latlngs,s=a[0].mmsi;n[s]=a.filter((function(t){return r0&&this.setSelectedElsByArray(l)},setTrajectory:function(t){var e=t.list||[];if(this._trajectoryWaypoints=e,m["a"].log("Hmap setTrajectory _trajectoryWaypoints",e),this.isTrajectoryMotionOn()){var n=e.map((function(t){var e={};return e.latlngs=da(t.latlngs),e}));m["a"].log("Hmap setTrajectory _trajectoryWaypoints",e,n);var i=Object(o["a"])(Object(o["a"])(Object(o["a"])({},this._kmotionStatus),t),{},{latlngs:n});m["a"].log("setTrajectory extra open1"),this.__setTrajectoryMotion(i)}this.redraw()},isTrajectoryMotionOn:function(){return this._kmotionStatus&&"start"==this._kmotionStatus.status},isTrajectoryMotionPause:function(){return this._kmotionStatus&&"pause"==this._kmotionStatus.status},isTrajectoryMotionResume:function(){return this._kmotionStatus&&"resume"==this._kmotionStatus.status},isTrajectoryMotionOff:function(){return this._kmotionStatus&&"off"==this._kmotionStatus.status},isTrajectoryMotionStop:function(){return this._kmotionStatus&&"stop"==this._kmotionStatus.status},setTrajectoryMotion:function(t){this._kmotionStatus=t||{status:"stop"},m["a"].log("setTrajectoryMotion",this._kmotionStatus),this.isTrajectoryMotionOn()||(m["a"].log("setTrajectoryMotion extra open2",this._kmotionStatus),this.__setTrajectoryMotion({}))},__clearTrajectoryMotion:function(){m["a"].log("__clearTrajectoryMotion"),this._kmotionLayer&&(this._kmotionLayer.motionStop(),this._map&&this._map.removeLayer(this._kmotionLayer),this._kmotionLayer=null,clearTimeout(this._kmotionHandler),this._kmotionHandler=null)},__setTrajectoryMotion:function(t){if(m["a"].log("__setTrajectoryMotion opts",t),this.isTrajectoryMotionPause()||this.isTrajectoryMotionResume()||this.__clearTrajectoryMotion(),this.isTrajectoryMotionPause())this._kmotionLayer.motionPause();else if(this.isTrajectoryMotionResume())this._kmotionLayer.motionResume();else if(this.isTrajectoryMotionOff())this.__clearTrajectoryMotion();else if(!this.isTrajectoryMotionStop()){var e=this.___getMotion_latlngsList(t);if(e&&e.length>0)return m["a"].log("__setTrajectoryMotion4MultiRoute is called"),void this.__setTrajectoryMotion4MultiRoute(e,t);var n=t.latlngs||[];if(n&&n.length>0&&(e=this.___getMotion_latlngsList_from_latlngs(t,n),e&&e.length>0)){m["a"].log("__setTrajectoryMotion4MultiRoute is called");var i=e[0],r=i[0],o=i[i.length-1],a=r.updatetime,s=o.updatetime;this.__setTrajectoryMotion4MultiRoute_impl(e,t,a,s)}else;}},___getMotion_latlngsList_from_latlngs:function(t,e){var n=e[0],i=n.latlngs||[],r=i[0],a=i[i.length-1],s=r||{},l=s.mmsi,c=void 0===l?"null":l,h=s.name,u=c,d=h,p=r.updatetime,f=a.updatetime,g={data:[{offers:i}],waypoints:i,fakeMMSI:u,requestOptions:{starttime:p,endtime:f}},y=[g],_=Object(o["a"])({},t||{}),v={};return v[u]={_motionName:d},_.shipMapper=v,m["a"].log("___getMotion_latlngsList_from_latlngs",y,i),this.___getMotion_latlngsList_impl(_,y)},___getMotion_latlngsList_impl:function(t,e){var n=t||{},i=n.shipMapper,r=void 0===i?{}:i,a=e.map((function(t){var e=t||{},n=e.data,i=e.style,a=e.waypoints,s=e.fakeMMSI,l=i||{},c=l.trajectoryStyle,h=c||{},u=h.trajectoryLineColor,d=void 0===u?"orange":u;m["a"].log("n2573 shipMapper",r);var p=[],f=r[s],g=f||{},y=g._motionName;if(n&&n.length>0){var _="",v="";p=a.map((function(t){var e=No(t),n=Go(f);e=Object(o["a"])(Object(o["a"])(Object(o["a"])({},f),e),n||{}),e.lineColor=d,e._motionName=y;var i=t.hdg,r=t.co;return e.heading="-"!=i?i:"-"!=_?_:"-"!=v?v:0,"-"!=i&&(_=i),"-"!=r&&(v=r),e}))}return da(p)}));return a},___getMotion_latlngsList:function(t){var e=this._multiTrajectory||[];return m["a"].log("___getMotion_latlngsList",t,e),this.___getMotion_latlngsList_impl(t,e)},__setTrajectoryMotion4MultiRoute_impl:function(t,e,n,i){var r=Object(o["a"])(Object(o["a"])({},e),{},{latlngsList:t,KShipLayer:this,starttime:n,endtime:i});m["a"].log("__getMotion_ nopts",r);var a=ha(r);return a&&(a.addTo(this._map),this._kmotionLayer=a,this._kmotionLayer.updateMarkerOptions(this._MotionMarkerOptions),this._updateMotionTimelineCb(),this._motionEventOn(),this._kmotionHandler=setTimeout((function(){a.motionStart()}),200)),a},__setTrajectoryMotion4MultiRoute:function(t,e){var n,i,r=this._multiTrajectory||[];if(r.length>0){var o=r[0],a=o||{},s=a.requestOptions;if(!s)return;n=s.starttime,i=s.endtime}return this.__setTrajectoryMotion4MultiRoute_impl(t,e,n,i)},_motionEventOn:function(){this._kmotionLayer&&this._kmotionLayer.on(a["Motion"].Event.Ended,this.__fire_motion_stop)},__fire_motion_stop:function(){this._map.fire(ya)},_motionEventOff:function(){this._kmotionLayer&&this._kmotionLayer.off(a["Motion"].Event.Ended,this.__fire_motion_stop)},setMotionDuration:function(t){this._kmotionLayer&&this._kmotionLayer.motionDuration(t)},setMotionSpeed:function(t){this._kmotionLayer&&this._kmotionLayer.motionSpeed(t)},setMotionNext:function(t){this._kmotionLayer&&this._kmotionLayer.motionTimelineNext(t)},setMotionMarkerOptions:function(t){this._MotionMarkerOptions=Object(o["a"])(Object(o["a"])({},this._MotionMarkerOptions||{}),t||{}),m["a"].log("n3113 setMotionMarkerOptions",this._kmotionLayer),this._kmotionLayer&&this._kmotionLayer.updateMarkerOptions(this._MotionMarkerOptions)},setMotionPrev:function(t){this._kmotionLayer&&this._kmotionLayer.motionTimelinePrev(t)},setMotionTimelineCb:function(t){this._motionTimelineCb=t,this._updateMotionTimelineCb()},_updateMotionTimelineCb:function(){this._kmotionLayer&&this._motionTimelineCb&&(m["a"].log("_updateMotionTimelineCb done"),this._kmotionLayer.motionTimelineCb&&this._kmotionLayer.motionTimelineCb(this._motionTimelineCb))},setMotionTimeline:function(t,e){this._kmotionLayer&&(m["a"].log("setMotionTimeline",t,e),this._kmotionLayer.motionTimeline(t,e))},__setTrajectoryMotion4OneRoute:function(t,e){if(t&&t.length>0){var n=t[0];m["a"].log("Hmap setTrajectory __motionTest",t);var i=n||{},r=i.latlngs;if(r&&r.length>1){var a=ha(Object(o["a"])(Object(o["a"])({},e),{},{latlngs:r}));a&&(a.addTo(this._map),this._kmotionLayer=a,this._kmotionLayer.updateMarkerOptions(this._MotionMarkerOptions),this._updateMotionTimelineCb(),this._kmotionHandler=setTimeout((function(){a.motionStart()}),200))}}},stageToPlayback:function(){this._stage=Q.playback,this.redraw()},stageToPlaybackarea:function(){this._stage=Q.playbackarea,this.redraw()},stageToSdk:function(){this._stage=Q.sdk,this.redraw()},stageToShip:function(){this._stage=Q.ship,this.redraw()},stageToTrajectory:function(){this._stage=Q.trajectory,this.redraw()},stageToHistory:function(){this._stage=Q.history,this.redraw()},stageToPlan:function(){this._stage=Q.plan,this.redraw()},stageToMultiTrajectory:function(){this._stage=Q.multitrajectory,this.redraw()},stageToDistance:function(){this._stage=Q.distance,this.redraw()},stageToHLWais:function(){this._stage=Q.hlwais,this.redraw()},stageTo:function(t){this._stage=t||this._stage,this.redraw()},getCurrentStage:function(){return this._stage},setTrajectoryOptions:function(t){this._trajectoryOptions=Object(o["a"])(Object(o["a"])({},W),t),this.redraw()},setTimestamp:function(t){this._testTimestamp=t,this.redraw()},setShipStopRecord:function(t){this._shipStopRecord=t.stoprecord||[],this.redraw()},setWinds:function(t){this._winds=t.list||[],this.redraw()},setWaves:function(t){this._waves=t.list||[],this.redraw()},setHangxianWaves:function(t){this._hangxianWave=t.list||[],this.redraw()},setHangxianDate:function(t){this._hangxianDate=t.list||[],this.redraw()},setHangxianWinds:function(t){this._hangxianWind=t.list||[],this.redraw()},setHangxianRouteSwellDirection:function(t){this._hangxianRouteSwellDirection=t.list||[],this.redraw()},setPorts:function(t){this._ports=t.list||[],this._behavior&&this._behavior.setPorts(t)},setBerths:function(t){this._berths=t.list||[],this._behavior&&this._behavior.setBerths(t)},setSelectedPort:function(t){this._selectedPort=t||{};var e=t||{},n=e.lat;e.lon,e.lng;if(void 0!=n){var i=Object(o["a"])(Object(o["a"])({},t),{},{drawnas:"point"});this.setSelectedEls(i)}},setPolylines:function(t){this._kPolylines=t.list||[],this._behavior&&this._behavior.setPolylines(t)},setPolygons:function(t){this._kPolygons=t.list||[],this._behavior&&this._behavior.setPolygons(t)},setExtraPolygons:function(t){this._behavior&&this._behavior.setExtraPolygons(t)},setChinaMapTransform:function(t){this._chinaMapTransform=t,a["_chinaMapTransform"]=t,this.redraw()},getChinaMapTransform:function(){return a["_chinaMapTransform"]},setPointMarkers:function(t){this._kPointMarkers=t.list||[],this.redraw()},setPlanroutes:function(t){this._kPlanroutes=t.list||[],this.redraw()},setOnePlanRouteByZIndex:function(t,e){this._kOnePlanroutes_stack||(this._kOnePlanroutes_stack=[]),this._kOnePlanroutes_stack[e]=t;for(var n=this._kOnePlanroutes_stack.length-1;n>=0;n--){var i=this._kOnePlanroutes_stack[n];if(i&&i.list&&i.list.length>0&&i.list[0]&&i.list[0].latlngs&&i.list[0].latlngs.length>0)return void this.setOnePlanRoute(i)}this.setOnePlanRoute()},setOtherPlanroutes:function(t){this._kOtherPlanroutes=t.list||[],this.redraw()},setOnePlanRoute:function(t){this._kOnePlanroutes=t&&t.list||[],this.redraw()},setOnePlanRouteOptions:function(t){var e=Object(o["a"])(Object(o["a"])({},this._kOnePlanrouteOptions),t);this._kOnePlanrouteOptions=e,this.redraw()},setDistancePointMarkers:function(t){this._kDistancePointMarkers=t.list||[],this.redraw()},setStagePointMarkers:function(t){this._kstagePointMarkers=t.list||[],this.redraw()},setDistancePlanRoute:function(t){this._kDistancePlanroutes=t&&t.list||[],this.redraw()},setDistancePlanRouteOptions:function(t){var e=Object(o["a"])(Object(o["a"])({},this._kDistancePlanrouteOptions),t);this._kDistancePlanrouteOptions=e,this.redraw()},setVue:function(t){this._vue=t||{}},setHilightPlans:function(t){this._kHilightPlans=t.list||[],this.redraw()},setPlanroutesOptions:function(t){this._kPlanroutesOptions=Object(o["a"])(Object(o["a"])({},this._kPlanroutesOptions),t||{show:!0}),this.redraw()},setEstimatorRoutes:function(t){this._kEstimatorRoutes=t.list||[],this.redraw()},setEstimatorRoutesVisible:function(t){this._kEstimatorRoutes_realDraw=t,this.redraw()},__n2607_update_typhoonMin:function(t){var e=t||{},n=e.minOne,i=void 0===n?{}:n,r=e.nearPoint,o=void 0===r?null:r,a=e.typhoonMin,s=void 0===a?[]:a,l=i;o&&(l=o);var c=l||{},h=c.from,u=void 0===h?{}:h,d=c.to,p=void 0===d?{}:d;s.length>0&&(this._typhoonMin=s),u.lat&&(this._typhoonMin=[{latlngs:[u,p]}])},setPlanReckon:function(t){this._planReckon=t||{};var e=t.futureTrajectory,n=void 0===e?{}:e,i=t.futureTyphoon,r=void 0===i?{}:i,o=t.minOne,a=void 0===o?{}:o,s=t.minOneList,l=void 0===s?[]:s,c=t.nearPointList,h=void 0===c?[]:c,u=t.pointList,d=void 0===u?[]:u;this._futureTrajectory=n.list||[],this._futureTyphoon=r.list||[],this._typhoonMin=[],this._minOne=a,this._minOneList=l,this._nearPointList=h,this._planReckon_point_list=d,this.__n2607_update_typhoonMin(t),this._testStage(Q.plan)&&this.redraw()},setMerchants:function(t){this._kMerchants=t.list||[],this._behavior&&this._behavior.setMerchants(t)},setMultiTrajectory:function(t){this._multiTrajectory=t.list||[],this.redraw()},setTyphoonInfo:function(t){this._typhoonInfoTrajectory=t.list||[],this.redraw()},setTyhoonForecast:function(t){this._typhoonForecastCollection=t.list||[],this.redraw()},setDrawShipsOptions:function(t){var e=t||{};this._kShipElOptions=Object(o["a"])(Object(o["a"])({},this._kShipElOptions),e)},setPointInfoMarkers:function(t){this._kPointInfoMarkers=t.list||[],this._behavior&&this._behavior.setPointInfoMarkers(t)},setPointInforMarkerOptions:function(t){},setPolygonInfos:function(t){this._kPolygonInfos=t.list||[],this._behavior&&this._behavior.setPolygonInfos(t)},setDrawShipsOptionsWithLabelPaddingSize:function(t){var e=30;void 0!=t&&(e=100-t),this.setDrawShipsOptions({paddingSize:e}),this.redraw()},setDrawShipsOptionsWithShipTailLength:function(t){var n=1;try{n=t||1,n=n.toFixed(2)}catch(e){n=1}this.setDrawShipsOptions({tailLength:n}),this.redraw()},setSelectedEls:function(t){this._selectedEls=t?[t]:[],m["a"].log("kSelectedEl setSelectedEls",this._selectedEls),this.redraw()},setSelectedShow:function(t){this._is_update_selectedEls=1==t,this.redraw()},setSelectedElsByArray:function(t){this._selectedEls=t,this.redraw()},setDrawPlanRouteOption:function(t){this._drawPlanRouteOption=Object(o["a"])(Object(o["a"])({},this._drawPlanRouteOption||{}),t||{}),this.redraw()},setN2390LabelShowKeyMapper:function(t){this._n2390LabelShowKeyMapper=t||{},this.redraw()},getN2390LabelShowKeyMapper:function(){return this._n2390LabelShowKeyMapper?this._n2390LabelShowKeyMapper:{}}}),ka=Ma,Ta=a["Polygon"].extend({setVisibleBy:function(t){this._shipLayerVisible=Object(o["a"])(Object(o["a"])({},this._shipLayerVisible),t),this.redraw()},setCollection:function(t){this._setCollection(t)},_setCollection:function(t){this._ships=t},_getCollection:function(){return this._ships||[]},setMapId:function(t){this.mapId=t},initialize:function(t,e){e=a["Util"].extend({},this.kOptions,e),a["Util"].setOptions(this,e),this._setCollection(t),this._stage=Q.ship,this._trajectoryStyle=E,this._shipStopRecordStyle=S,this._trajectoryOptions=W,this._portStyle=P,this._shipStyle=O,this._kTrajectoryEl=ke(),this._kTrajectoryLabelEl=je(),this._kShipStopRecordEl=Ge(),this._kShipStopRecordLabelEl=Ie(),this._kWindEl=Je(),this._kWindLabelEl=Ke(),this._kPortEl=hn(),this._kBerthEl=pn(),this._kPortLabelEl=Ie(),this._kSearchBerth=Tn(),this._kShipEl=Rn(),this._kShipLabelEl=Fn(),this._kShipElOptions=_t||{},this._kPolylineEl=vi(),this._kPolylines=[],this._kSearchPolyline=Li(),this._polylineStyle=D,this._kSearchShip=$n(),this._kSearchTrajectory=li(),this._kSearchPort=gi(),this._kPolygonEl=Si(),this._kPolygons=[],this._polygonStyle=C,this._kSearchPolygon=Ai(),this._kExtraPolygonEl=Si(),this._kExtraPolygons=[],this._extraPolygonStyle=C,this._kSearchExtraPolygon=Ai(),this._chinaMapTransform=bt["a"],a["_chinaMapTransform"]=!1,this._kPointMarker=zi(),this._kPointMarkers=[],this._kSearchPointMarker=Yi(),this._pointMarkerStyle=z,this._kPlanrouteEl=Ki(),this._kPlanrouteStyle=I,this._kOnePlanrouteEl=Qi(),this._kOnePlanrouteStyle=j,this._kOnePlanrouteOptions=R,this._kOnePlanrouteLabelEl=Ie(),this._kFutureTrajectoryEl=pr(),this._kFutureTrajectoryWaypointEl=xr(),this._kFutureTrajectoryElOptions=F,this._kFutureTyphoonEl=gr(),this._kFutureTyphoonElOptions=V,this._kEstimatorRouteEl=Qi(),this._kEstimatorRoutes_realDraw=!0,this._shipLayerVisible=yt,this._kMerchantEl=kr(),this._kSearchMerchant=Er(),this._kTyphoonForecastTrajectoryEl=no(),this._kSearchTyphoonForecastTrajectory=oo(),this._kTyphoonInfoTrajectoryEl=co(),this._kSearchTyphoonInfoTrajectory=fo(),this._kTyphoonInfoTrajectoryElStyle=G,this._kPointInfoMarker=wo(),this._kPointInfoMarkers=[],this._kSearchPointInfoMarker=ko(),this._pointInfoMarkerStyle=z,this._pointInfoMarkerOptions={},this._kPolygonInfoEl=Po(),this._kPolygonInfos=[],this._polygonInfoStyle=N,this._kSearchPolygonInfo=jo()},setChinaMapTransform:function(t){this._chinaMapTransform=t,a["_chinaMapTransform"]=t},getBBoxConsiderChinaMapTransform:function(t){var e=t||{},n=e.left,i=e.right,r=e.bottom,o=this._map.getBounds(),a=o.getEast();if(i>0){var s={lat:0,lng:a};s=this._map.latLngToLayerPoint(s),s.x-=i,s=this._map.layerPointToLatLng(s),a=s.lng}var l=o.getWest();if(n>0){var c={lat:0,lng:l};c=this._map.latLngToLayerPoint(c),c.x+=n,c=this._map.layerPointToLatLng(c),l=c.lng}var h=o.getSouth();if(r>0){var u={lat:h,lng:0};u=this._map.latLngToLayerPoint(u),u.y-=r,u=this._map.layerPointToLatLng(u),h=u.lat}var d=o.getNorth();while(a>180)a-=360;while(l>180)l-=360;while(l<-180)l+=360;while(a<-180)a+=360;var p=l,f=a,m=d,g=h,y=p+","+g+","+f+","+m;return this._chinaMapTransform?([{lat:d,lng:l},{lat:d,lng:a},{lat:h,lng:l},{lat:h,lng:a}].forEach((function(t){var e=bt["d"](t),n=e.lat,i=e.lng;n>m&&(m=n),nf&&(f=i),i0)this._kOnePlanrouteEl.realDrawBy({ctx:t,layer:e,style:Object(o["a"])(Object(o["a"])({},this._trajectoryStyle),{},{lineColor:"#409EFF",lineWidth:2}),options:Object(o["a"])(Object(o["a"])({},this._kFutureTyphoonElOptions),{},{showArrow:!1}),els:this._typhoonMin})},_realDrawFutureTyphoon:function(t,e){this._kFutureTyphoonEl.realDrawBy({ctx:t,layer:e,style:this._trajectoryStyle,options:this._kFutureTyphoonElOptions,els:this._futureTyphoon})},_realDrawFutureTrajectory:function(t,e){var n=this,i={ctx:t,layer:e,style:this._trajectoryStyle,els:this._futureTrajectory,options:this._kFutureTrajectoryElOptions},r={},a=this._futureTyphoon&&this._futureTyphoon.length>0;r=a?this._kFutureTrajectoryWaypointEl.realDrawBy(i):this._kFutureTrajectoryEl.realDrawBy(i);var s=[];this._typhoonMinOne&&(s=r.labels.filter((function(t){return t.labelText==n._typhoonMinOne.date})),s=s.map((function(t){var e=" "+n._typhoonMinOne.distance+"nm";return t.labelText+=e,t.drawAnchorLine=!1,t.boundlist=t.boundlist.map((function(t){return t.w+=8*e.length,t})),Object(o["a"])({},t)}))),a&&s.length>0?this._kTrajectoryLabelEl.realDrawBy({ctx:t,layer:e,els:s,options:this._kFutureTrajectoryElOptions,style:this._trajectoryStyle}):this._kTrajectoryLabelEl.realDrawBy({ctx:t,layer:e,els:r.labels,options:this._kFutureTrajectoryElOptions,style:this._trajectoryStyle})},_realDrawEstimatorRoutes:function(t,e){if(this._kEstimatorRoutes_realDraw){this._oneplanroute_rtree=new M;this._kEstimatorRouteEl.realDrawBy({ctx:t,layer:e,query:this._oneplanroute_rtree,style:this._kOnePlanrouteStyle,els:this._kEstimatorRoutes,options:this._kOnePlanrouteOptions})}},_realDrawOnePlanroute:function(t,e){this._oneplanroute_rtree=new M;var n=this._kOnePlanrouteEl.realDrawBy({ctx:t,layer:e,query:this._oneplanroute_rtree,style:this._kOnePlanrouteStyle,els:this._kOnePlanroutes,options:this._kOnePlanrouteOptions});this._kOnePlanrouteLabelEl.realDrawBy({ctx:t,layer:e,els:n.labels,query:this._oneplanroute_rtree,options:this._kOnePlanrouteOptions,style:this._kOnePlanrouteStyle})},_realDrawPlanroute:function(t,e){this._kPlanrouteEl.realDrawBy({ctx:t,layer:e,style:this._kPlanrouteStyle,els:this._kPlanroutes,options:{hilightPlans:this._kHilightPlans}})},_realDrawPointMarker:function(t,e,n){this._pointmarker_rtree=new M,this._kPointMarker.realDrawBy({ctx:t,layer:e,query:this._pointmarker_rtree,options:{},style:this._pointMarkerStyle,els:this._kPointMarkers})},_realDrawPolylines:function(t,e){this._polyline_rtree=new M,this._kPolylineEl.realDrawBy({ctx:t,layer:e,query:this._polyline_rtree,els:this._kPolylines,style:this._polylineStyle})},_realDrawPolygons:function(t,e){this._polygon_rtree=new M,this._kPolygonEl.realDrawBy({ctx:t,layer:e,query:this._polygon_rtree,els:this._kPolygons,style:this._polygonStyle})},_realDrawExtraPolygons:function(t,e){this._extraPolygon_rtree=new M,this._kExtraPolygonEl.realDrawBy({ctx:t,layer:e,query:this._extraPolygon_rtree,els:this._kExtraPolygons,style:this._extraPolygonStyle})},_realDrawShipWhenOnePlan:function(t,e,n){this._ship_rtree=new M;var i={mapper:{},onmap:{},labelOnMap:{}};this._selectedShips.forEach((function(t){i.mapper[t.mmsi]=t,i.onmap[t.mmsi]=!1,i.labelOnMap[t.mmsi]=!1}));var r=this._kShipEl.realDrawBy({ctx:t,layer:e,query:this._ship_rtree,options:{appendEls:i,selectedByMMSI:e._selectedByMMSI,testTimestamp:e._testTimestamp},style:{},els:[]});this._kShipLabelEl.realDrawBy({ctx:t,layer:e,els:r.appendLabels,query:this._ship_rtree,options:{},style:this._shipStyle})},_realDrawShips:function(t,e,n){this._ship_rtree=new M;var i=e._ships;this._shipLayerVisible.realDrawMapShips||(i=[]);var r=this._kShipEl.realDrawBy({ctx:t,layer:e,query:this._ship_rtree,options:Object(o["a"])(Object(o["a"])({},this._kShipElOptions),{},{appendEls:e._appendShips,selectedByMMSI:e._selectedByMMSI,testTimestamp:e._testTimestamp}),style:{},els:i});if(this._shipLayerVisible.realDrawShipsLabels){var a=e._map.getZoom(),s=11;a3){var o=Math.floor(r.length/2),a=o+1;return n=r[o],i=r[a],this._getPolylineWithTextOnLine2(t,e,n,i)}}return ye.prototype._getPolylineWithTextOnLine.call(this,t,e)},_getPolylineWithTextOnLine2:function(t,e,n,i){var r=this._getLineDistance(t,e),o=this.__get_course(t,e),s=[];s.push(r),s.push(o+"°");var l=s.join(" "),c=this._convertLatLngToXY(n),h=this._convertLatLngToXY(i),u=c.x,d=c.y,p=h.x,f=h.y,m=180*Math.atan((f-d)/(p-u))/Math.PI,g=new a["Polyline"]([n,i]);g.addTo(this._map);var y=g.getCenter();this._map.removeLayer(g);var _=[1,1],v=new a["Icon"].KRulerLabel({iconAnchor:_,text:l,rotate:m}),b=a["marker"](y,{icon:v});return b},_getTooltipText:function(t){var e,n=[],i=Va();e=this._getTextValue();var r,o=this.getCurrentSegmentType();return r=Xa(o)?i?"Current:loxodromes":"当前:恒向线":i?"Current:GreatCircle":"当前:大圆",m["a"].log("KeyPressRuler _getTooltipText segment_is_line:",Xa(o),o),n.push(r),n.push(i?"press Shift to change mode":"按shift切换模式"),this._isPhoneMode()||(i?n.push("Double Click to complete"):n.push("双击结束")),{text:n.join("
"),subtext:e}},__get_course:function(t,e){var n="";if(t&&e){var i=Object(ie["j"])(t,e),r=Object(ie["r"])(t,e),o=r.course;m["a"].log("大圆course:",o," 恒向线:"+i);var a=this.getCurrentSegmentType(),s=e.hasOwnProperty("segmentType");s&&(a=e.segmentType);var l=Ja(a);if(n=l?i:o,n<10)return"00"+n;if(n<100)return"0"+n}return n},__get_distance:function(t,e){var n=this._map.distance(t,e)*(this.options.factor||1),i=Object(ie["r"])(t,e),r=i.distance,o=this.getCurrentSegmentType(),a=e.hasOwnProperty("segmentType");a&&(o=e.segmentType);var s=Ja(o),l=s?n:r;return l},_keyDown:function(t){m["a"].log("KeyPressRuler",t);var e=t||{},n=e.key,i=void 0===n?"":n;if("Shift"==i){var r=this.getCurrentSegmentType();Xa(r)?this.setCurrentSegmentType(Ha):this.setCurrentSegmentType(Qa),m["a"].log("_currentSegmentType:",this.getCurrentSegmentType()),this._tooltip.updateContent(this._getTooltipText())}},setCurrentSegmentType:function(t){this._currentSegmentType=t},getCurrentSegmentType:function(){return this._currentSegmentType},initialize:function(t,e){this.setCurrentSegmentType(Qa),ye.prototype.initialize.call(this,t,e),this._map&&(a["DomUtil"].disableTextSelection(),this._map.getContainer().focus(),a["DomEvent"].on(this._container,"keyup",this._cancelDrawing,this),a["DomEvent"].on(this._container,"keydown",this._keyDown,this),this._markers=[],this._markerGroup=new a["LayerGroup"],this._map.addLayer(this._markerGroup),this._poly=new a["Polyline"]([],this.options.shapeOptions),this._polyGroup=new a["LayerGroup"],this._map.addLayer(this._polyGroup),this._distanceLayerGroup=new a["LayerGroup"],this._map.addLayer(this._distanceLayerGroup),this._distanceLayerGroup2=new a["LayerGroup"],this._map.addLayer(this._distanceLayerGroup2),this._kmobile_dragging=!1)},clearLine:function(){m["a"].log("L.Draw.LineRuler clearLine >>>>>>>>>",this,this._markerGroup);var t=this._map;null!=this._poly&&(this._markerGroup.clearLayers(),this._map.removeLayer(this._markerGroup),delete this._markerGroup,this._map.removeLayer(this._poly),delete this._poly,this._map.removeLayer(this._polyGroup),delete this._polyGroup),this._textmarker&&(m["a"].log("L.Draw.LineRuler clearLine >>>>>>>>> _textmarker",this._textmarker,t.hasLayer(this._textmarker)),this._textmarker.remove(),this._map.removeLayer(this._textmarker),m["a"].log("L.Draw.LineRuler clearLine >>>>>>>>> _textmarker2",t.hasLayer(this._textmarker)),delete this._textmarker),this._closemarker&&(m["a"].log("L.Draw.LineRuler clearLine >>>>>>>>> _closemarker",this._closemarker),this._closemarker.remove(),this._map.removeLayer(this._closemarker),delete this._closemarker),this._resultDistanceLayerGroup&&(m["a"].log("L.Draw.LineRuler clearLine >>>>>>>>> _resultDistanceLayerGroup",this._resultDistanceLayerGroup),this._map.removeLayer(this._resultDistanceLayerGroup),delete this._resultDistanceLayerGroup),this._distanceLayerGroup&&(m["a"].log("L.Draw.LineRuler clearLine >>>>>>>>> _distanceLayerGroup"),this._map.removeLayer(this._distanceLayerGroup),m["a"].log("L.Draw.LineRuler clearLine >>>>>>>>> _distanceLayerGroup delete",this._distanceLayerGroup),delete this._distanceLayerGroup),this._distanceLayerGroup2&&(m["a"].log("L.Draw.LineRuler clearLine >>>>>>>>> _distanceLayerGroup2"),this._map.removeLayer(this._distanceLayerGroup2),m["a"].log("L.Draw.LineRuler clearLine >>>>>>>>> _distanceLayerGroup2 delete",this._distanceLayerGroup2),delete this._distanceLayerGroup2),m["a"].log("L.Draw.LineRuler clearLine >>>>>>>>> clearLine",this)},_displayResult:function(){m["a"].log("2106 _displayResult"),ye.prototype._displayResult.call(this);var t=this._getDistanceValue(),e=this._map;if(m["a"].log("2106 _displayResult",t),""!=t){var n=this._poly,i=n.getLatLngs();if(i.length>0){this._closemarker&&e.hasLayer(this._closemarker)&&(e.removeLayer(this._closemarker),delete this._closemarker);var r=a["divIcon"]({html:""),className:"",iconSize:[Na,za],iconAnchor:[Ga,Ba]}),o=i[0];this._closemarker=a["marker"](o,{icon:r}).addTo(this._map),this.registerClose(o);for(var s=0;s"),className:"",iconSize:[Ya,Ya],iconAnchor:[Wa,Wa]}),h=a["marker"](l,{icon:c});this._markerGroup.addLayer(h)}this.registerLatlngs(i)}}},_finishShape:function(){this._fireCreatedEvent(),this.disable()},addHooks:function(){},removeHooks:function(){m["a"].log("L.Draw.LineRuler removeHooks is called"),a["DomUtil"].enableTextSelection(),a["DomEvent"].off(this._container,"keyup",this._cancelDrawing,this),a["DomEvent"].off(this._container,"keydown",this._keyDown,this),this._displayResult(),this._clearHideErrorTimeout(),this._cleanUpShape(),this._clearGuides()},addVertex:function(t){var e=this._markers.length;if(e>=2&&!this.options.allowIntersection&&this._poly.newLatLngIntersects(t))this._showErrorTooltip();else{this._errorShown&&this._hideErrorTooltip(),this._markers.push(this._createMarker(t));var n=this._poly.getLatLngs(),i=this.getCurrentSegmentType();t&&t.hasOwnProperty("segmentType")&&(i=t.segmentType),t.segmentType=i,m["a"].log("2106 addVertex >>",t,i,t.hasOwnProperty("segmentType"));var r=Ja(i),s=r?"#2c3e50":"#FF7F27",l=new a["Polyline"]([],Object(o["a"])(Object(o["a"])({},this.options.shapeOptions||{}),{},{color:s}));if(n.length>0){var c=n[n.length-1],h=t;if(l.addLatLng(c),r){var u=Ht(c,h,{needConsider360:!1});u.length>2&&(u.shift(),u.length>0&&(u[u.length-1].needResult=!0),u.forEach((function(t){return l.addLatLng(t)})))}l.addLatLng(h),this._polyGroup.addLayer(l)}var d=new a["LatLng"](t.lat,t.lng);for(var p in t)d[p]=t[p];this._poly.addLatLng(d),this._vertexChanged(t,!0)}}}),a["Draw"].MultiRuler=a["Draw"].Polyline.extend({statics:{TYPE:"polyline"},Poly:a["Polyline"],options:{allowIntersection:!0,repeatMode:!0,drawError:{color:"#b00b00",timeout:2500},icon:new a["DivIcon"]({iconSize:new a["Point"](8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new a["DivIcon"]({iconSize:new a["Point"](20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),guidelineDistance:20,maxGuideLineLength:4e3,shapeOptions:{stroke:!0,color:"#FF7F27",weight:2,opacity:.5,fill:!1,clickable:!0},metric:!1,feet:!1,nautic:!0,showLength:!0,zIndexOffset:2e3,factor:1,maxPoints:0},initialize:function(t,e){this._mapEl=e.el||"",this._enableMode="web",a["Draw"].Feature.prototype.initialize.call(this,t,e),this._map&&(this._isPhoneMode()?(this._tooltip=new a["Draw"].RulerTooltip({map:this._map,mapEl:this._mapEl}),this._tooltip.setPhoneOptions&&this._tooltip.setPhoneOptions(this._phoneOptions)):this._tooltip=new a["Draw"].Tooltip(this._map),this._mouseMarker||(this._mouseMarker=a["marker"](this._map.getCenter(),{icon:a["divIcon"]({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("mouseout",this._onMouseOut,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this).on("dblclick",this._myMouseDblclick,this).addTo(this._map),m["a"].log("register _myMouseDblclick"),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._kOnZoomEnd,this).on("touchstart",this._konTouch,this).on("click",this._myMouseClick,this).on("zoomend",this._kOnZoomEnd,this).on("zoomstart",this._kdragstart,this).on("dragstart",this._kdragstart,this).on("dragend",this._kdragend,this)),this._currentRulerIndex=0,this._multiRulerList=[];var n=this.addCurrentRuler();this._prepareRuler(n)},getRulerByIndex:function(t){return t0)for(var r=0;r0)for(var e=0;e"),className:"",iconSize:[Ya,Ya],iconAnchor:[Wa,Wa]}),h=function(t){n._refreshTooltip(t,""),m["a"].log("2106 dragmarker dragend",t);var e=t.target,s=e.getLatLng();e.setLatLng(new a["LatLng"](s.lat,s.lng),{draggable:"true"});var l=n.getRulerByIndex(i),c=l.getLatLngs();l.complete(),m["a"].log("2106 addVertex updateRuler ",c.map((function(t){return t.segmentType})));var h=c.map((function(t){return Object(o["a"])({},t)})),u=c[r];h[r]=s,h[r].segmentType=u.segmentType,Za[i]={index:i,latlngs:h};var d=new a["Draw"].KeyPressRuler(n._map,n.options);d.setUnit(l.getUnit()),d._index=i,d._mouseMarker=n._mouseMarker,d._tooltip=n._tooltip,d.registerClose=function(t){Ca=Ca.map((function(e){return e.index==i&&(e.latlng=t),e}))},d.registerLatlngs=function(t){Za=Za.map((function(e){return e.index==i&&(e.latlngs=t),e}))},n.enable(Object(o["a"])({mode:n._enableMode},n._phoneOptions)),h.map((function(t){return d.addVertex(t)})),d._displayResult(),d._myMouseDblclick(),m["a"].log("2106 addVertex updateRuler after get nlatlngs",d.getLatLngs()),n.setRulerByIndex(i,d)};Fa=a["marker"](l,{icon:c,draggable:!0,zIndexOffset:this.options.zIndexOffset+1e4}),Fa.on("click",(function(t){m["a"].log("2106 dragmarker click",t),n._circleDragMarker_dragging=!1})),Fa.on("dragstart",(function(t){n._circleDragMarker_dragging=!0,m["a"].log("2106 dragmarker dragstart",t)})),Fa.on("dragend",(function(t){n._circleDragMarker_dragging=!1})),Fa.on("drag",h),this._map.addLayer(Fa)},_kdragstart:function(){var t=this.getCurrentRuler();t&&t._kdragstart()},_kdragend:function(){var t=this.getCurrentRuler();t&&t._kdragend()},_kOnZoomEnd:function(t){var e=this.getCurrentRuler();e&&e._kOnZoomEnd(t)},_konTouch:function(t){var e=this._getCloseEl(t);this._closeEl=e;var n=this._getCloseRulerLatlng(t);if(n&&(this._circleDragMarker_dragging=!0),!this._closeEl){var i=this.getCurrentRuler();i&&i._konTouch(t)}},_myMouseDblclick:function(t){m["a"].log("Draw.MultiRuler Draw.MultiRuler _mouseDblclick ",t);var e=this.getCurrentRuler();e&&e._myMouseDblclick(t),m["a"].log("Draw.MultiRuler Draw.MultiRuler create next ruler"),e=this.addCurrentRuler(),this._prepareRuler(e),m["a"].log("Draw.MultiRuler Draw.MultiRuler create next ruler append new",this._multiRulerList),this.enable(Object(o["a"])({mode:this._enableMode},this._phoneOptions))},_isPhoneMode:function(){return"phone"==this._enableMode},enable:function(t){var e=t||{},n=e.mode;this._enableMode=n||"web",this._isPhoneMode()&&(m["a"].log("Draw.MultiRuler overrider enable is called",this._phoneOptions),this._phoneOptions=t||{});var i=this.getCurrentRuler();i&&i.enable(t),a["Draw"].Feature.prototype.enable.call(this)},_myMouseClick:function(t){if(m["a"].log("Draw.MultiRuler Draw.MultiRuler _myMouseClick ",t),!this._closeEl){var e=this.getCurrentRuler();e&&e._myMouseClick(t)}},removeHooks:function(){m["a"].log("Draw.MultiRuler removeHooks is called"),a["Draw"].Feature.prototype.removeHooks.call(this)},complete:function(){var t=this;this._multiRulerList.length>0&&this._multiRulerList.forEach((function(e,n){t.closeOneRulerByIndex(n)})),Ca=[],Za=[],this._multiRulerList=[],this._currentRulerIndex=0,this.disable();var e=this._map;this._mouseMarker&&e.hasLayer(this._mouseMarker)&&(this._mouseMarker.off("dblclick",this._myMouseDblclick,this),this._mouseMarker.off("mouseout",this._onMouseOut,this).off("mousemove",this._onMouseMove,this).off("mousedown",this._onMouseDown,this).off("mouseup",this._onMouseUp,this).off("dblclick",this._myMouseDblclick,this),e.removeLayer(this._mouseMarker),delete this._mouseMarker),this._map.off("click",this._myMouseClick,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._kOnZoomEnd,this).off("zoomend",this._kOnZoomEnd,this).off("zoomstart",this._kdragstart,this).off("dragstart",this._kdragstart,this).off("dragend",this._kdragend,this)},clearLine:function(){},_myFinishShape:function(t){m["a"].log("Draw.MultiRuler this._myFinishShape",t);var e=this.getCurrentRuler();e&&e._myFinishShape(t)},_finishShape:function(){var t=this.getCurrentRuler();t&&t._finishShape(e)},_updateFinishHandler:function(){var t=this.getCurrentRuler();t&&t._updateFinishHandler()},_addLineDistance:function(){var t=this.getCurrentRuler();t&&t._addLineDistance()},setUnit:function(t){var e=this.getMultiRulerList();e.length>0&&e.forEach((function(e){return e&&e.setUnit(t)}))},setRulerMarkerMode:function(t){var e=this.getMultiRulerList();e.length>0&&e.forEach((function(e){return e&&e.setRulerMarkerMode(t)}))}});a["Draw"].MultiRuler;function Ka(t,e){return new a["Draw"].MultiRuler(t,e)}function qa(t,e){return new a["Draw"].AddArea(t,e)}function $a(t,e){return new a["Draw"].AddMarker(t,e)}a["Draw"].AddArea=a["Draw"].Polygon.extend({statics:{TYPE:"polygon"},Poly:a["Polygon"],options:{allowIntersection:!1,showArea:!0,showLength:!1,shapeOptions:{stroke:!0,color:"#FF7F27",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},metric:["km"],feet:!0,nautic:!1,precision:{km:2,ft:0}},initialize:function(t,e){a["Draw"].Polyline.prototype.initialize.call(this,t,e),this._enableMode="web",this.type=a["Draw"].Polygon.TYPE,this._textId=e.id,this._callBack=e.callBack},_createMarker:function(t){var e=a["circleMarker"](t,{radius:4,color:"#FF7F27",fillColor:"#FF7F27",weight:4});return this._markerGroup.addLayer(e),e},addHooks:function(){this.clearPolygon(),a["Draw"].Feature.prototype.addHooks.call(this),this._map&&(this._markers=[],this._markerGroup=new a["LayerGroup"],this._map.addLayer(this._markerGroup),this._polyWhenMove=new a["Polyline"]([],this.options.shapeOptions),this._markerGroupWhenMove=new a["LayerGroup"],this._markersWhenMove=[],this._map.addLayer(this._markerGroupWhenMove),this._poly=new a["Polyline"]([],this.options.shapeOptions),this._tooltip.updateContent(this._getTooltipText()),this._mouseMarker||(this._mouseMarker=a["marker"](this._map.getCenter(),{icon:a["divIcon"]({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this).addTo(this._map),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("touchstart",this._konTouch,this).on("click",this._myMouseClick,this).on("zoomend",this._onZoomEnd,this).on("zoomstart",this._kdragstart,this).on("dragstart",this._kdragstart,this).on("dragend",this._kdragend,this))},_konTouch:function(t){var e=this,n=this._isPhoneMode();m["a"].log("_konTouch",n,this._kmobile_dragging),n&&setTimeout((function(){!e._kmobile_dragging&&e._onTouch(t)}),150)},_isPhoneMode:function(){return"phone"==this._enableMode},_endPoint:function(t,e,n){if(this._mouseDownOrigin){var i=a["point"](t,e).distanceTo(this._mouseDownOrigin),r=this._calculateFinishDistance(n.latlng);this.options.maxPoints>1&&this.options.maxPoints==this._markers.length+1?(this.addVertex(n.latlng),this._finishShape()):r<10?(this._markerGroupWhenMove&&this._map.removeLayer(this._markerGroupWhenMove),this._finishShape()):Math.abs(i)<9*(window.devicePixelRatio||1)&&this.addVertex(n.latlng),this._enableNewMarkers()}this._mouseDownOrigin=null},_myMouseDblclick:function(t){this._finishShape(t)},removeHooks:function(){a["Draw"].Feature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._cleanUpShape(),this._displayResult(),this._markerGroupWhenMove&&this._map.removeLayer(this._markerGroupWhenMove),delete this._markerGroupWhenMove,this._markerGroup&&this._map.removeLayer(this._markerGroup),this._markerGroup&&delete this._markerGroup,this._poly&&this._map.removeLayer(this._poly),this._poly&&delete this._poly,this._map.removeLayer(this._polyWhenMove),delete this._polyWhenMove,this._map.removeLayer(this._markersWhenMove),delete this._markers,this._mouseMarker.off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._clearGuides(),this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("click",this._onTouch,this)},_kdragstart:function(){m["a"].log("_konTouch _kdragstart"),this._kmobile_dragging=!0},_kdragend:function(){m["a"].log("_konTouch _kdragend"),this._kmobile_dragging=!1},_finishPolygon:function(){console.log("finish")},_myMouseClick:function(t){this._enabled||this.enable(Object(o["a"])({mode:this._enableMode},this._phoneOptions))},enable:function(t){m["a"].log("overrider enable is called",this._tooltip);var e=t||{},n=e.mode;this._enableMode=n||"web",this._isPhoneMode()&&(m["a"].log("overrider enable is called",this._phoneOptions),this._phoneOptions=t||{}),a["Draw"].Feature.prototype.enable.call(this)},clearPolygon:function(){null!=this._polyWhenMove&&(m["a"].log("complete",this._polyWhenMove.getLatLngs()),this._map.removeLayer(this._polyWhenMove),this._polyWhenMove=new a["Polyline"]([],this.options.shapeOptions)),null!=this._poly&&(this._map.removeLayer(this._poly),delete this._poly),null!=this._markerGroup&&(this._map.removeLayer(this._markerGroup),delete this._markerGroup),null!=this._resultPolygon&&(this._map.removeLayer(this._resultPolygon),delete this._resultPolygon),null!=this._textmarker&&(this._map.removeLayer(this._textmarker),delete this._textmarker)},addVertex:function(t){var e=this._markers.length;e>=2&&!this.options.allowIntersection&&this._poly.newLatLngIntersects(t)?this._showErrorTooltip():(this._errorShown&&this._hideErrorTooltip(),this._markers.push(this._createMarker(t)),this._poly.addLatLng(t),this._polyWhenMove.addLatLng(t))},_addVertexWhenMove:function(t){var e=this._markers.length;if(e>=2&&!this.options.allowIntersection&&this._poly.newLatLngIntersects(t))this._showErrorTooltip();else{this._errorShown&&this._hideErrorTooltip(),this._markerGroupWhenMove&&(this._map.removeLayer(this._markerGroupWhenMove),delete this._markerGroupWhenMove),this._markersWhenMove.pop();var n=a["circleMarker"](t,{radius:4,color:"#FF7F27",fillColor:"#FF7F27",weight:4});this._markersWhenMove.push(n),this._markerGroupWhenMove=new a["LayerGroup"](this._markersWhenMove),this._map.addLayer(this._markerGroupWhenMove);var i=this._polyWhenMove.getLatLngs();i.pop(),i.push(t),this._polyWhenMove&&this._map.removeLayer(this._polyWhenMove),this._polyWhenMove.setLatLngs(i),this._map.addLayer(this._polyWhenMove)}},_updateTooltip:function(t){var e=this._getTooltipText();this._tooltip&&(t&&this._tooltip.updatePosition(t),this._errorShown||this._tooltip.updateContent(e))},_onMouseMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent),n=this._map.layerPointToLatLng(e);this._currentLatLng=n,this._addVertexWhenMove(n),this._updateTooltip(n),this._mouseMarker.setLatLng(n),a["DomEvent"].preventDefault(t.originalEvent);var i=new Array;i=[].concat(this._polyWhenMove._latlngs),i.push(n),this._callBack(i)},_updateFinishHandler:function(){var t=this._markers.length;1===t&&this._markers[0].on("click",this._finishShape,this),t>2&&(this._markers[t-1].on("dblclick",this._finishShape,this),t>3&&this._markers[t-2].off("dblclick",this._finishShape,this))},_getTooltipText:function(){var t,e,n=[];return 0===this._markers.length?(t=a["drawLocal"].draw.handlers.polygon.tooltip.start,a["LANG"]&&"en-US"==a["LANG"]?n.push("Click to start drawing shape"):n.push("点击图层开始")):this._markers.length<3?(t=a["drawLocal"].draw.handlers.polygon.tooltip.cont,e=this._getMeasurementString(),a["LANG"]&&"en-US"==a["LANG"]?n.push("Click to continue drawing shape."):n.push("继续点击图层")):(t=a["drawLocal"].draw.handlers.polygon.tooltip.end,a["LANG"]&&"en-US"==a["LANG"]?n.push("Click first point to close this shape"):n.push("点击第一个点完成绘制"),e=this._getMeasurementString()),t=n.join(""),{text:t,subtext:e}},_displayResult:function(){var t=this._polyWhenMove;if(!(t._latlngs.length<3)){var e=t.getLatLngs();e[e.length-1]=e[0];var n=t.getLatLngs(),i=a["GeometryUtil"].geodesicArea(n),r=a["GeometryUtil"].readableArea(i,this.options.metric,this.options.precision);this._resultPolygon=a["polygon"](e,{color:"#FF7F27",weight:2}),this._map.addLayer(this._resultPolygon);var o=["",r,""].join(""),s=a["divIcon"]({html:o,className:"",iconSize:[200,20]}),l=this._resultPolygon.getBounds().getCenter();l.lat&&(this._textmarker=a["marker"](l,{icon:s}).addTo(this._map))}},_getMeasurementString:function(){var t,e=this._polyWhenMove,n="",i=e.getLatLngs();return t=a["GeometryUtil"].geodesicArea(i),t||this.options.showLength?(this.options.showLength&&(n=a["Draw"].Polyline.prototype._getMeasurementString.call(this)),t&&(n+=a["GeometryUtil"].readableArea(t,this.options.metric,this.options.precision)),n):null},_shapeIsValid:function(){return this._markers.length>=3},_vertexChanged:function(t,e){var n;!this.options.allowIntersection&&this.options.showArea&&(n=this._polyWhenMove.getLatLngs(),this._area=a["GeometryUtil"].geodesicArea(n)),a["Draw"].Polyline.prototype._vertexChanged.call(this,t,e)},_cleanUpShape:function(){var t=this._markers.length;t>0&&(this._markers[0].off("click",this._finishShape,this),t>2&&this._markers[t-1].off("dblclick",this._finishShape,this))},complete:function(){this._map.off("click",this._myMouseClick,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("touchstart",this._konTouch,this).off("click",this._myMouseClick,this).off("zoomend",this._onZoomEnd,this).off("zoomstart",this._kdragstart,this).off("dragstart",this._kdragstart,this).off("dragend",this._kdragend,this),this.clearPolygon(),this.disable()}}),a["Draw"].AddMarker=a["Draw"].Feature.extend({statics:{TYPE:"marker"},options:{icon:new a["Icon"].Default,repeatMode:!0,zIndexOffset:2e3},initialize:function(t,e){this.type=a["Draw"].Marker.TYPE,this._initialLabelText=a["drawLocal"].draw.handlers.marker.tooltip.start,a["Draw"].Feature.prototype.initialize.call(this,t,e)},addHooks:function(){a["Draw"].Feature.prototype.addHooks.call(this),this._map&&(m["a"].log("addHooks:updateContent"),this._mouseMarker||(this._mouseMarker=a["marker"](this._map.getCenter(),{icon:a["divIcon"]({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("click",this._onClick,this).addTo(this._map),this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onTouch,this))},removeHooks:function(){a["Draw"].Feature.prototype.removeHooks.call(this),this._map&&(this._map.off("click",this._onClick,this).off("click",this._onTouch,this),this._currentLatLng=this._mouseMarker.getLatLng(),this._marker&&(this._marker.off("click",this._onClick,this),this._map.removeLayer(this._marker),delete this._marker),this._mouseMarker.off("click",this._onClick,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._map.off("mousemove",this._onMouseMove,this))},_displayResult:function(){var t=this._currentLatLng,e=this._createMarker(t);return e.addTo(this._map),e},_onMouseMove:function(t){var e=t.latlng;this._currentLatLng=e,this._tooltip.updatePosition(e),this._mouseMarker.setLatLng(e),this._tooltip.updateContent(this._getTooltipText())},_createMarker:function(t){var e=a["icon"]({iconUrl:Oi.default.url,iconSize:[24,24]});return new a["Marker"](t,{icon:e,zIndexOffset:this.options.zIndexOffset})},_onClick:function(){if(m["a"].log("AddMarker: _onClick"),this.disable(),this.options.repeatMode&&this.enable(),this.options.completeCallback){var t=this._map.wrapLatLng(this._currentLatLng);m["a"].log("MapTransform",a["_chinaMapTransform"]),1==a["_chinaMapTransform"]&&(t=bt["d"](t));var e=Object(o["a"])(Object(o["a"])({},t),{},{lon:t.lng});this.options.completeCallback({latlng:e})}},_onTouch:function(t){this._onMouseMove(t),this._onClick()},clearMarker:function(){this._marker&&(this._marker.off("click",this._onClick,this),this._map.removeLayer(this._marker),delete this._marker),this.disable()},_getTooltipText:function(){var t,e=[];return a["LANG"]&&"en-US"==a["LANG"]?e.push("Click map to place marker"):e.push("点击图层 放置点标记"),{text:e.join(""),subtext:t}},complete:function(){m["a"].log("complete is called clearPolygon"),this.clearMarker(),this._map.off("click",this._myMouseClick,this)}});var ts=function(){return!(a["LANG"]&&"en-US"==a["LANG"])};a["KLineMarkerPolyline"]=a["Polyline"].extend({setPolyMode:function(t){this._kmode=t},addLatLng:function(t){var e=t||{},n=e.wp;n&&(this.wp=n),this._userLatlngs||(this._userLatlngs=[]),this._original_userLatlngs||(this._original_userLatlngs=[]),this._original_userLatlngs.push(t),this._userLatlngs=this.rebuild_userLatlngs(this._original_userLatlngs),this.setLatLngs(this._userLatlngs)},rebuild_userLatlngs:function(t){m["a"].log("n2558 rebuild_userLatlngs",t);var e=t.map((function(t){return[t.lng,t.lat]})),n=vt["d"](e),i=t.map((function(t,e){var i=n[e][0],r=n[e][1];return Object(o["a"])(Object(o["a"])({},t||{}),{},{lng:i,lat:r,lon:i})}));return m["a"].log("n2558 rebuild_userLatlngs ret",i),i},_getFakeLatlngs:function(t){m["a"].log("n2558 _getFakeLatlngs",t);for(var e=[],n=0;n2?this._userLatlngs[n].dy=1:this._userLatlngs[n].dy=0,e=e.concat(s)}return m["a"].log("n2558 fakeLatlngs",e),e},setLatLngs:function(t){this._original_userLatlngs=t,this._userLatlngs=this.rebuild_userLatlngs(this._original_userLatlngs);var e=this._getFakeLatlngs(this._userLatlngs);a["Polyline"].prototype.setLatLngs.call(this,e)},getLatLngs:function(){return this._userLatlngs||[]}}),a["Icon"].NumberCircle=a["Icon"].extend({initialize:function(t){this._number=t.number||0,this._fontSize=t.fontSize||4,t.iconSize=[16,16],a["Icon"].prototype.initialize.apply(this,[t])},createIcon:function(){var t=document.createElement("div");return this._setIconStyles(t,"icon"),t=this._createNumber(t),t},_createNumber:function(t){var e=document.createElement("div");return e.innerText=this._number,e.style.display="inline-block",e.style.fontSize="10px",e.style.backgroundColor="red",e.style.color="white",e.style.height="16px",e.style.minWidth="16px",e.style.lineHeight="16px",e.style.textAlign="center",e.style.borderRadius="100%",e.style.float="left",t.appendChild(e),t}});var es="NumberCircleEdit";function ns(t){return Number(t)*Math.PI/180}function is(t){return 180*Number(t)/Math.PI}function rs(t,e){var n=new Object;n.x=ns(t.lng),n.y=ns(t.lat);var i=new Object;i.x=ns(e.lng),i.y=ns(e.lat);var r=Math.atan2(Math.sin(i.x-n.x)*Math.cos(i.y),Math.cos(n.y)*Math.sin(i.y)-Math.sin(n.y)*Math.cos(i.y)*Math.cos(i.x-n.x));return r<0&&(r+=6.283185307179586),is(r)}a["Icon"].NumberCircleEdit=a["Icon"].NumberCircle.extend({initialize:function(t){this._number=t.number||0,this._fontSize=t.fontSize||4,t.iconSize=[16,16],a["Icon"].prototype.initialize.apply(this,[t])},createIcon:function(){var t=document.createElement("div");return t.id="ID_NUMBER_CIRCLE_EDIT",this._setIconStyles(t,"icon"),t=this._createNumber(t),t.style.width="40px",t.style.backgroundColor="gray",t.style.borderRadius="16px",t=this._createDelete(t),t},_createDelete:function(t){var e=document.createElement("div");e.innerText="x",e.style.float="right",e.style.display="inline-block",e.style.fontSize="10px",e.style.width="10px",e.style.lineHeight="16px",e.style.marginRight="4px",e.style.color="white",e.style.borderRadius="16px";var n=this;return e.addEventListener("click",(function(t){if(t&&t.stopPropagation?(m["a"].log("click delete stopPropagation"),t.stopPropagation()):window.event.cancelBubble=!0,m["a"].log("click delete",n.options),n.options.clickCallBack){n.options.clickCallBack(n._number-1);var e=document.getElementById(es);e&&e.parentNode&&e.parentNode.removeChild(e)}return!1})),t.appendChild(e),t}}),a["Draw"].LineMarker=a["Draw"].Polyline.extend({statics:{TYPE:"polyline"},Poly:a["Polyline"],options:{allowIntersection:!0,repeatMode:!0,drawError:{color:"#b00b00",timeout:2500},icon:new a["DivIcon"]({iconSize:new a["Point"](8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new a["DivIcon"]({iconSize:new a["Point"](20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),guidelineDistance:20,maxGuideLineLength:4e3,shapeOptions:{stroke:!0,color:"#FF7F27",weight:2,opacity:.5,fill:!1,clickable:!0},metric:!1,feet:!1,nautic:!0,showLength:!0,zIndexOffset:2e3,factor:1,maxPoints:0},initialize:function(t,e){this._callBack=e.callBack,a["Browser"].touch&&(this.options.icon=this.options.touchIcon),this.options.drawError.message=a["drawLocal"].draw.handlers.polyline.error,e&&e.drawError&&(e.drawError=a["Util"].extend({},this.options.drawError,e.drawError)),this.type=a["Draw"].Polyline.TYPE,a["Draw"].Feature.prototype.initialize.call(this,t,e)},addHooks:function(){if(m["a"].log("0503 addHooks"),this.clearLine(),a["Draw"].Feature.prototype.addHooks.call(this),this._map){this._markers=[],this._markerGroup=new a["LayerGroup"],this._map.addLayer(this._markerGroup),this._poly=new a["KLineMarkerPolyline"]([],this.options.shapeOptions);var t="fakeEdit"==this.options.model;if(m["a"].log("=======addHooks======== n1710_is_fakeEdit",t),t)return void m["a"].log("=======addHooks======== n1710",this.options);this._mouseMarker||(this._mouseMarker=a["marker"](this._map.getCenter(),{icon:a["divIcon"]({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.addTo(this._map),this._openMouseMarkerEvent(),this._map.on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("click",this._myMouseClick,this).on("zoomend",this._onZoomEnd,this)}},setEdit:function(t){var e=this,n=t||{},i=n.latlngs,r=n.model,o=void 0===r?"editing":r;i&&i.length>0&&(this._model=o,this.setPolyMode(this._model),i.forEach((function(t){return e.addVertex(t)})),this._edit_options=t)},updateEdit:function(t){var e=this,n=t||{},i=n.latlngs;i&&i.length>0&&(m["a"].log("hand 0503 load latlngs",i.length),this._poly.setLatLngs([]),i.forEach((function(t){return e.addVertex(t)})))},_onEditing:function(){if(m["a"].log("click delete _onEditing _myMouseClick>>>",this._poly.getLatLngs()),"editing"==this._model&&this._edit_options){var t=this._edit_options.onEditing;if(t&&this._poly){var e=this._poly.getLatLngs();e&&t({latlngs:e})}}},closeEdit:function(){this._model="",delete this._edit_options,this.clearLine()},_onMarkerMouseUp:function(t){m["a"].log("click delete 0503 debug... fixing: onMouseUp is called****>>>>>",this._onMarkerMouseUpCount);var e=t.originalEvent,n=e.clientX,i=e.clientY;this._endPoint.call(this,n,i,t),this._clickHandled=null},setPolyMode:function(t){this._poly&&this._poly.setPolyMode(t),this._model=t},isMarkerMode:function(){return"marker"==this._model},isEditingMode:function(){return"editing"==this._model},setPolyModeToMarker:function(){this.setPolyMode("marker")},setPolyModeToEditing:function(){this.setPolyMode("editing")},_rightClick:function(t){var e=this;if(m["a"].log("0503 debug... fixing: dbclick _rightClick -------\x3e_myMouseDblclick",t,this._poly.getLatLngs(),this.options),this.options.completeCallback){var n=this._poly.getLatLngs(),i=n.map((function(t){return e._map.wrapLatLng(t)})).map((function(t){return{lat:t.lat,lng:t.lng,lon:t.lng}}));i=i.map((function(t){return 1==a["_chinaMapTransform"]?bt["d"](t):t})),i=i.map((function(t,e){var i=n[e];return void 0!=i.dy&&(t.dy=i.dy),t})),this.options.completeCallback({latlngs:i}),0!=this.options.doClear&&(this.doClear(),this.disable(),this.options.repeatMode&&this.enable()),m["a"].log("0503 completeCallback",i)}},_openMouseMarkerEvent:function(){m["a"].log("Line2 _openMouseMarkerEvent"),this._mouseMarkerEventIsOpen=!0,this._mouseMarker.on("contextmenu",this._rightClick,this).on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this)},_closeMouseMarkerEvent:function(){m["a"].log("Line2 _closeMouseMarkerEvent"),this._mouseMarkerEventIsOpen=!1,this._mouseMarker&&this._mouseMarker.off("mouseup",this._onMarkerMouseUp,this).off("contextmenu",this._rightClick,this).off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mousemove",this._onMouseMove,this)},_myMouseClick:function(t){m["a"].log("click delete _myMouseClick"),this._onMarkerMouseUp(t),this._enabled||this.enable()},removeHooks:function(){m["a"].log("removeHooks is called"),a["Draw"].Feature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._cleanUpShape(),delete this._markers,this._closeMouseMarkerEvent(),this._mouseMarker&&this._map.removeLayer(this._mouseMarker),this._clearGuides(),this._map.off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("click",this._onTouch,this)},complete:function(){m["a"].log("0503 complete is called"),this.clearLine(),this.disable(),this._mouseMarker&&this._mouseMarker.off("contextmenu",this._rightClick,this),this._closeMouseMarkerEvent(),this._map.off("click",this._myMouseClick,this),this._mouseMarker&&delete this._mouseMarker},doClear:function(){this.clearLine()},clearLine:function(){m["a"].log("0503 clearLines is called"),null!=this._poly&&(this._map.removeLayer(this._markerGroup),delete this._markerGroup,this._map.removeLayer(this._poly),delete this._poly),null!=this._textmarker&&(this._map.removeLayer(this._textmarker),delete this._textmarker)},reset:function(){this.disable(),this.enable()},_updateFinishHandler:function(){},_createMarker:function(t){var e=a["circleMarker"](t,{radius:2,color:"#FF7F27",fillColor:"#FF7F27",weight:2});return this._markerGroup.addLayer(e),e},_updateMarker:function(){var t,e,n=this._poly,i=n.getLatLngs();for(delete this._markers,this._markers=[],this._markerGroup.clearLayers(),e=0;e0&&o<90||o>-90&&o<0){var a=Math.sin(r)*n,s=Math.cos(r)*n;if(a>-6&&a<6&&s>-3&&s<80)return!0}return!1},_deleteClosestPoint:function(t,e){if(m["a"].log("click delete _deleteClosestPoint",t,e),e._poly&&e._poly.getLatLngs){m["a"].log("click delete _deleteClosestPoint working",t,e);var n=e._poly.getLatLngs();n=n.filter((function(e,n){return n!=t})),e._poly.setLatLngs(n),e._updateMarker(),e._testDrag(e._currentLatLng)}},_testDrag:function(t){for(var e,n,i,r,o=this,s=this._poly.getLatLngs(),l=1/0,c=0;c30&&(e=null),e){if(!this._closestMarker){m["a"].log("Line2 found closestPoint",e,r);var u=new a["Icon"].NumberCircleEdit({number:r+1,clickCallBack:function(t){m["a"].log("click delete callback",t),o._deleteClosestPoint(t,o),o._onEditing()}});this._closestMarker=a["marker"](e,{icon:u,draggable:!0,closestPointIndex:r,zIndexOffset:this.options.zIndexOffset+1}),this._closestMarker.on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this),this._map.addLayer(this._closestMarker),this._closeMouseMarkerEvent(),this._tooltip.updateContent({text:null,subtext:null})}}else 0==this._mouseMarkerEventIsOpen&&this._openMouseMarkerEvent(),this._closestMarker&&(this._closestMarker.off("dragstart",this._onDragStart).off("drag",this._onDrag).off("dragend",this._onDragEnd),m["a"].log("Line2 removeLayer this._closestMarker"),this._map.removeLayer(this._closestMarker),delete this._closestMarker),this._updateTooltip(t),this._mouseMarker.setLatLng(t)},_onMouseMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent),n=this._map.layerPointToLatLng(e);this._currentLatLng=n,this._closestMarkerDragging||(this._testDrag(n),a["DomEvent"].preventDefault(t.originalEvent))},_onTheLine:function(t){var e=this._poly,n=.99;if(e&&t&&void 0!=t.lat){var i=e.getLatLngs();if(i&&i.length>1)for(var r=0;r0){m["a"].log(t._latlngs.length);var e=[],n=this._currentLatLng,i=t._latlngs[t._latlngs.length-1],r=rs(i,n);return a["LANG"]&&"en-US"==a["LANG"]?e.push("Direction"):e.push("方位"),e.push(r.toFixed(2)+"°"),e.join(" ")}return""},_getDistanceValue:function(){var t=this._poly;if(t&&t._latlngs&&t._latlngs.length>0){m["a"].log(t._latlngs.length);var e,n=[],i=this._currentLatLng,r=t._latlngs[t._latlngs.length-1];return e=a["GeometryUtil"].isVersion07x()?r&&i&&i.distanceTo?this._measurementRunningTotal+i.distanceTo(r)*(this.options.factor||1):this._measurementRunningTotal||0:r&&i?this._measurementRunningTotal+this._map.distance(i,r)*(this.options.factor||1):this._measurementRunningTotal||0,a["LANG"]&&"en-US"==a["LANG"]?n.push("Total Distance:"):n.push("总里程:"),n.push(a["GeometryUtil"].readableDistance(e,this.options.metric,this.options.feet,this.options.nautic,this.options.precision)),n.join(" ")}return""},_getTextValue:function(){var t=this._poly;return t&&t._latlngs&&t._latlngs.length>0?this._getDirectionValue()+this._getDistanceValue():""},_getTooltipText:function(t){var e,n=this._onTheLine(t);return e=n?ts()?"左击插入一个点":"Left Click to insert a point":ts()?"右击结束":"Right Click to complete",{text:e}},_endPoint:function(t,e,n){this._mouseDownOrigin&&(this.addVertex(n.latlng),this._enableNewMarkers(),this._onEditing()),this._mouseDownOrigin=null},_onZoomEnd:function(){},_addVertexToPoly:function(t){var e=this._onTheLine(t);if(m["a"].log("0503 debug... addLatLng",t),e){var n=this._poly.getLatLngs(),i=e.insertIndex;n.splice(i+1,0,t),m["a"].log("0503 debug... addLatLng 1",t),this._poly.setLatLngs(n)}else m["a"].log("0503 debug... addLatLng 2",t),this._poly.addLatLng(t)},addVertex:function(t){var e=this._markers.length;m["a"].log("Line2 addVertex",e,t,this._poly.getLatLngs()),e>=2&&!this.options.allowIntersection&&this._poly.newLatLngIntersects(t)?this._showErrorTooltip():(this._errorShown&&this._hideErrorTooltip(),this._addVertexToPoly(t),this._updateMarker(),m["a"].log("hand Line2 addVertex clear tooltip",this._poly.getLatLngs()),2===this._poly.getLatLngs().length&&this._map.addLayer(this._poly),this._vertexChanged(t,!0),this._tooltip.updateContent({text:null,subtext:null}))},_displayResult:function(){var t=this._getDistanceValue();if(""!=t){var e=this._poly,n=a["divIcon"]({html:t,className:"",iconSize:[200,20]});this._textmarker=a["marker"](e._latlngs[e._latlngs.length-1],{icon:n}).addTo(this._map)}}});var os=a["Draw"].LineMarker;function as(t,e){return new a["Draw"].LineMarker(t,e)}var ss=function(){return!(a["LANG"]&&"en-US"==a["LANG"])};a["KLineMarkerPolyline2558"]=a["Polyline"].extend({setPolyMode:function(t){this._kmode=t},rebuild_userLatlngs:function(t){m["a"].log("n2558 rebuild_userLatlngs",t);var e=t.map((function(t){return[t.lng,t.lat]})),n=vt["d"](e),i=t.map((function(t,e){var i=n[e][0],r=n[e][1];return m["a"].log("n2558 el",t),Object(o["a"])(Object(o["a"])({},t||{}),{},{lng:i,lat:r,lon:i})}));return m["a"].log("n2558 rebuild_userLatlngs ret",i),i},addLatLng:function(t){var e=t||{},n=e.wp;n&&(this.wp=n),this._original_userLatlngs||(this._original_userLatlngs=[]),this._original_userLatlngs.push(t),this._userLatlngs=this.rebuild_userLatlngs(this._original_userLatlngs),this.setLatLngs(this._userLatlngs)},_getFakeLatlngs:function(t){m["a"].log("n2558 _getFakeLatlngs",this._kmode,t);for(var e=[],n=Vn["c"](),i=0;i2?this._userLatlngs[i].dy=1:this._userLatlngs[i].dy=0,e=e.concat(s)}return m["a"].log("n2558 fakeLatlngs",e,this._userLatlngs),e},setLatLngs:function(t){this._original_userLatlngs=t,this._userLatlngs=this.rebuild_userLatlngs(this._original_userLatlngs);var e=this._getFakeLatlngs(this._userLatlngs);a["Polyline"].prototype.setLatLngs.call(this,e)},getLatLngs:function(){return this._userLatlngs||[]},updateDy:function(t,e){m["a"].log("n2558 updateDy",t,e),this._userLatlngs&&this._userLatlngs.length>0&&t0&&this.updateDy(this._userLatlngs.length-1,t)}});var ls=0,cs=1,hs=function(t){return t==ls};function us(t,e){return new a["Draw"].LineMarker2558(t,e)}a["Draw"].LineMarker2558=os.extend({initialize:function(t,e){os.prototype.initialize.call(this,t,e),this.setCurrentSegmentType(ls)},removeHooks:function(){os.prototype.removeHooks.call(this),a["DomEvent"].off(this._container,"keydown",this._keyDown,this)},addHooks:function(){a["DomEvent"].on(this._container,"keydown",this._keyDown,this),os.prototype.addHooks.call(this),this._poly=new a["KLineMarkerPolyline2558"]([],this.options.shapeOptions),this._poly.setPolyMode("marker")},_addVertexToPoly:function(t){var e=this.getCurrentSegmentType(),n=e;t.dy=n,m["a"].log("n2558 _addVertexToPoly",t),os.prototype._addVertexToPoly.call(this,t)},_n2558_test:function(){var t=this.isMarkerMode();return!!t},_keyDown:function(t){if(this._n2558_test()){m["a"].log("n2558",t);var e=t||{},n=e.key,i=void 0===n?"":n;if("Shift"==i){var r=this.getCurrentSegmentType(),o=0;hs(r)?(this.setCurrentSegmentType(cs),o=1):(this.setCurrentSegmentType(ls),o=0),m["a"].log("n2558 _currentSegmentType:",this.getCurrentSegmentType()),this._poly.updateTailDy(o),this._updateTooltip_refresh()}}},setCurrentSegmentType:function(t){this._currentSegmentType=t},getCurrentSegmentType:function(){return this._currentSegmentType},_rightClick:function(t){m["a"].log("n2558 _rightClick 先重置为 横向线模式"),this.setCurrentSegmentType(ls),os.prototype._rightClick.call(this,t)},_getTooltipText:function(t){var e,n=this._onTheLine(t),i=this.getCurrentSegmentType(),r=hs(i);e=n?ss()?"左击插入一个点":"Left Click to insert a point":ss()?"右击结束":"Right Click to complete";var o=[e];if(this._n2558_test()){var a=ss()?"恒向线":"rhumb line",s=ss()?"大圆线":"great circle",l=r?a:s,c=r?s:a;o.push(ss()?"".concat(l,"模式"):"".concat(l," mode")),o.push(ss()?"按shift可切换为".concat(c,"模式"):"Press shift for ".concat(c," mode"))}return{text:o.join("
")}},_updateTooltip_refresh:function(){this._updateTooltip_latlng_cache&&this._updateTooltip(this._updateTooltip_latlng_cache)}});i("3719");function ds(t,e){return new a["Draw"].AddCircleMarker(t,e)}function ps(t,e){return new a["Draw"].AddRectMarker(t,e)}function fs(t,e){return new a["Draw"].AddAreaMarker(t,e)}a["Icon"].AreaCircleIcon=a["Icon"].extend({initialize:function(t){this._number=t.number||"",this._fontSize=t.fontSize||4,t.iconSize=[16,16],a["Icon"].prototype.initialize.apply(this,[t])},createIcon:function(){var t=document.createElement("div");return this._setIconStyles(t,"icon"),t=this._createNumber(t),t},_createNumber:function(t){var e=document.createElement("div");return e.innerText=this._number,e.style.display="inline-block",e.style.fontSize="10px",e.style.backgroundColor="red",e.style.color="white",e.style.height="16px",e.style.minWidth="16px",e.style.lineHeight="16px",e.style.textAlign="center",e.style.borderRadius="100%",e.style.float="left",t.appendChild(e),t}}),a["Draw"].AddCircleMarker=a["Draw"].Polygon.extend({statics:{TYPE:"polygon"},Poly:a["Polygon"],options:{allowIntersection:!1,showArea:!0,showLength:!1,shapeOptions:{stroke:!0,color:"#FF7F27",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},metric:["km"],feet:!0,nautic:!1,precision:{km:2,ft:0}},initialize:function(t,e){a["Draw"].Polyline.prototype.initialize.call(this,t,e),this.type=a["Draw"].Polygon.TYPE,this._textId=e.id,this._callBack=e.callBack,this._alert=e.alert,this._maxArea=1e7,this._previousPolyWhenMoveLatlngs=null},addHooks:function(){m["a"].log("=======addHooks========"),this.clearPolygon(),a["Draw"].Feature.prototype.addHooks.call(this),this._map&&(this._markers=[],this._markerGroup=new a["LayerGroup"],this._map.addLayer(this._markerGroup),this._polyWhenMove=new a["Polyline"]([],this.options.shapeOptions),this._poly=new a["Polyline"]([],this.options.shapeOptions),this._tooltip.updateContent(this._getTooltipText()),this._mouseMarker||(this._mouseMarker=a["marker"](this._map.getCenter(),{icon:a["divIcon"]({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._openMouseMarkerEvent(),this._mouseMarker.addTo(this._map),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("click",this._myMouseClick,this).on("zoomend",this._onZoomEnd,this))},_onZoomEnd:function(){},_finishShape:function(){this._displayResult(),this._clearGuides(),this._completeStage="complete_draw",this._updateMarker()},_getRealPixelDistance:function(t,e){if(m["a"].log("_getRealPixelDistance",t,e),t&&e){var n=this._map.latLngToLayerPoint(t),i=this._map.latLngToLayerPoint(e);return Math.pow(Math.pow(n.x-i.x,2)+Math.pow(n.y-i.y,2),.5)}return 0},_updateCircle:function(){var t=this._polyWhenMove.getLatLngs();2==t.length?(this._circleLatLng=t[0],this._circleRadius=this._map.distance(t[0],t[1]),this._circlePixelRadius=this._getRealPixelDistance(t[0],t[1])):(delete this._circleLatLng,delete this._circleRadius,delete this._circlePixelRadius)},setMaxArea:function(t){this._maxArea=t},_moreThanMaxArea:function(){var t=this._getRadiusAndArea(),e=t||{},n=e.area,i=n,r=this._maxArea;if(r>0&&i>r){var o=a["LANG"]&&"en-US"==a["LANG"]?"㎢,the area shall smaller than "+r+" ㎢":"平方公里,区域面积应小于 "+r+" 平方公里!";return o=i+o,this._alert&&this._alert({content:o}),!0}return!1},_endPoint:function(t,e,n){var i=this;if(this._mouseDownOrigin){var r=a["point"](t,e).distanceTo(this._mouseDownOrigin),o=this._polyWhenMove.getLatLngs();if(2==o.length){this._updateCircle(),this._finishShape();var s=this._moreThanMaxArea();s&&(this.disable(),this._completeStage=null,this.complete(),setTimeout((function(){i.enable(),i._openMouseMarkerEvent(),i._map.addLayer(i._polyWhenMove)}),100))}else Math.abs(r)<9*(window.devicePixelRatio||1)&&this.addVertex(n.latlng);this._enableNewMarkers()}this._mouseDownOrigin=null},_myMouseDblclick:function(t){this._finishShape(t)},removeHooks:function(){m["a"].log("removeHooks is called"),a["Draw"].Feature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._displayResult(),this._markerGroup&&this._map.removeLayer(this._markerGroup),this._markerGroup&&delete this._markerGroup,this._poly&&this._map.removeLayer(this._poly),this._poly&&delete this._poly,this._map.removeLayer(this._polyWhenMove),delete this._markers,this._closeMouseMarkerEvent(),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._clearGuides(),this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("click",this._onTouch,this)},_myMouseClick:function(t){this._enabled||this.enable()},doClear:function(){this.clearPolygon()},clearPolygon:function(){m["a"].log("clearPolygon",this._resultLayer),null!=this._poly&&(this._map.removeLayer(this._poly),delete this._poly),null!=this._markerGroup&&(this._map.removeLayer(this._markerGroup),this._markerGroup.clearLayers()),null!=this._resultLayer&&this._resultLayer.clearLayers(),null!=this._polyWhenMove&&this._polyWhenMove.setLatLngs([])},_onDragStart:function(t){m["a"].log("Line2 drag _onDragStart",t),this._closestMarkerDragging=!0},_onDrag:function(t){m["a"].log("Line2 drag _onDrag",t.target.options.closestPointIndex);var e=t.target.options.closestPointIndex,n=t.target.getLatLng(),i=this._polyWhenMove.getLatLngs();if(0==e){this._circleLatLng=n;var r=this._findTranslateLatLng(n,i[0],i[1]);i=[n,r]}else i[e]=n;this._polyWhenMove.setLatLngs(i),this._updateCircle(),this._drawCircleWhenMove(),this._displayResult(),this._updateMarker(),this._updateTooltip(n)},_onDragEnd:function(t){m["a"].log("Line2 drag _onDragEnd",t),this._closestMarkerDragging=!1,delete this._draggingPointIndex},_updateMarker:function(){var t,e,n=this._polyWhenMove,i=n.getLatLngs();m["a"].log("Line2 _updateMarker",i),delete this._markers,this._markers=[],this._markerGroup.clearLayers();var r=i.length-1;for("complete_draw"==this._completeStage&&(r=i.length),e=0;e0&&o<90||o>-90&&o<0){var a=Math.sin(r)*n,s=Math.cos(r)*n;if(a>-6&&a<6&&s>-6&&s<6)return!0}return!1},_openMouseMarkerEvent:function(){m["a"].log("Line2 _openMouseMarkerEvent"),this._mouseMarkerEventIsOpen=!0,this._mouseMarker.on("contextmenu",this._rightClick,this).on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this)},_onMouseDblclick:function(t){m["a"].log("_onMouseDblclick>>>>>>>>>>")},_closeMouseMarkerEvent:function(){m["a"].log("Line2 _closeMouseMarkerEvent"),this._mouseMarkerEventIsOpen=!1,this._mouseMarker.off("contextmenu",this._rightClick,this).off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this)},_getCirclePolygon:function(t,e){for(var n=[],i=0;i<360;i++){var r=(i+1)*Math.PI/180;n.push(this._circleTranslate(t,r,e))}return n},_resetCircle:function(){this._completeStage=null,this._polyWhenMove.setLatLngs([]),this._updateCircle(),this._drawCircleWhenMove(),this._markers=[]},_getCompleteResult:function(){var t=this._polyWhenMove.getLatLngs(),e=this._map.wrapLatLng(t[0]),n=this._getRealPixelDistance(t[0],t[1]),i=this._getCirclePolygon(e,n);if(a["_chinaMapTransform"]){var r=bt["d"](e);e=r}return{center:e,radius:this._circleRadius,nmileradius:(this._circleRadius/1852).toFixed(2),latlngs:i}},_rightClick:function(t){var e=this;if(m["a"].log("area right click"),this._completeStage=null,this.options.completeCallback){this._resultLayer&&this._map.removeLayer(this._resultLayer),delete this._resultLayer;var n=this._moreThanMaxArea();if(!n){var i=this._getCompleteResult();this.options.completeCallback(i)}this.doClear(),this._resetCircle()}setTimeout((function(){e.enable(),e._openMouseMarkerEvent(),e._map.addLayer(e._polyWhenMove)}),200),a["DomEvent"].preventDefault(t.originalEvent),a["DomEvent"].stopPropagation(t.originalEvent)},_kcalculateDistance:function(t,e){var n=this._map.latLngToContainerPoint(t),i=this._map.latLngToContainerPoint(e);return n.distanceTo(i)},_getRadius:function(t,e){var n=t.x,i=t.y,r=e.x,o=e.y;if(o==i&&r==n)return 0;var a=Math.atan((o-i)/(r-n));return a+=(r>n?-90:90)*Math.PI/180+90*Math.PI/180,a},_circleTranslate:function(t,e,n){var i=this._map.latLngToLayerPoint(t),r=Math.cos(e)*n,o=Math.sin(e)*n,a={x:i.x+r,y:i.y+o};return this._map.layerPointToLatLng(a)},_findTranslateLatLng:function(t,e,n){var i=this._map.latLngToLayerPoint(e),r=this._map.latLngToLayerPoint(n),o=this._getRadius(i,r),a=this._getRealPixelDistance(e,n);return this._circleTranslate(t,o,a)},_getCircleClosePoint:function(t){var e=this._polyWhenMove.getLatLngs(),n=e[0],i=e[1],r=this._map.distance(n,t),o=10;return r>this._circleRadius+o?{}:r<.5*this._circleRadius?{closestPoint:n,closestPointIndex:0}:{closestPoint:i,closestPointIndex:1}},_turnOffClosetMarker:function(){this._closestMarker&&(this._closestMarker.off("dragstart",this._onDragStart).off("drag",this._onDrag).off("dragend",this._onDragEnd),m["a"].log("Line2 removeLayer this._closestMarker"),this._map.removeLayer(this._closestMarker),delete this._closestMarker)},_turnOnCloseMarker:function(t){var e=t.closestPoint,n=t.closestPointIndex;m["a"].log("Line2 found closestPoint",e,n);var i=new a["Icon"].AreaCircleIcon({number:n+1});this._closestMarker=a["marker"](e,{icon:i,draggable:!0,closestPointIndex:n,zIndexOffset:this.options.zIndexOffset+1}),this._closestMarker.on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this),this._map.addLayer(this._closestMarker),this._closeMouseMarkerEvent(),this._tooltip.updateContent({text:null,subtext:null})},_testDrag:function(t){var e=this._getCircleClosePoint(t),n=e.closestPoint,i=e.closestPointIndex;n?this._closestMarker?void 0!=this._draggingPointIndex&&this._draggingPointIndex!=i&&(this._turnOffClosetMarker(),this._turnOnCloseMarker(e)):this._turnOnCloseMarker(e):(0==this._mouseMarkerEventIsOpen&&this._mouseMarker.on("contextmenu",this._rightClick,this),this._turnOffClosetMarker(),this._updateTooltip(t),this._mouseMarker.setLatLng(t)),this._draggingPointIndex=i},_onMouseMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent),n=this._map.layerPointToLatLng(e);this._currentLatLng=n,this._closestMarkerDragging||("complete_draw"==this._completeStage?this._testDrag(n):(this._addVertexWhenMove(n),this._updateTooltip(n),this._mouseMarker.setLatLng(n)),this._currentLatLngs=this._polyWhenMove.getLatLngs(),a["DomEvent"].preventDefault(t.originalEvent))},_updateFinishHandler:function(){var t=this._markers.length;1===t&&this._markers[0].on("click",this._finishShape,this),t>2&&(this._markers[t-1].on("dblclick",this._finishShape,this),t>3&&this._markers[t-2].off("dblclick",this._finishShape,this))},_getRadiusAndArea:function(){return this._circleRadius?{center:this._circleLatLng,radius:(this._circleRadius/1e3).toFixed(2),nmileradius:(this._circleRadius/1852).toFixed(2),area:(Math.PI*Math.pow(this._circleRadius/1e3,2)).toFixed(2)}:{}},_getTooltipText:function(){var t,e,n=[];return 0===this._markers.length?(t=a["drawLocal"].draw.handlers.polygon.tooltip.start,a["LANG"]&&"en-US"==a["LANG"]?n.push("Click to start "):n.push("左击确定圆心")):1==this._markers.length?(t=a["drawLocal"].draw.handlers.polygon.tooltip.cont,e=this._getMeasurementString(),a["LANG"]&&"en-US"==a["LANG"]?n.push("Click to continue drawing shape."):n.push("继续点击")):(t=a["drawLocal"].draw.handlers.polygon.tooltip.end,"complete_draw"==this._completeStage?a["LANG"]&&"en-US"==a["LANG"]?n.push("Click right to complete"):n.push("右击完成
或拖动数字点调整"):a["LANG"]&&"en-US"==a["LANG"]?n.push("Click first point to close this shape
Or drag number point "):n.push("点击第一个点完成绘制"),e=this._getMeasurementString()),t=n.join("
"),{text:t,subtext:e}},_displayResult:function(){this._resultLayer&&this._map.removeLayer(this._resultLayer),this._resultLayer=a["layerGroup"](),this._map.addLayer(this._resultLayer)},_getMeasurementString:function(){var t=this._getRadiusAndArea(),e=t.center,n=t.radius,i=t.nmileradius,r=t.area;if(n){var o=vt["k"](),a=vt["c"](e);return o?["圆心坐标:"+a.join(" "),"半径:"+i+"海里 面积:"+r+"平方公里"].join("
"):["Center:"+a.join(" "),"Radius:"+i+"nmile Area:"+r+"㎢"].join("
")}return""},complete:function(){this.clearPolygon(),this.disable(),this._resetCircle(),this._map.off("click",this._myMouseClick,this)}}),a["Draw"].AddRectMarker=a["Draw"].AddCircleMarker.extend({_updateCircleWhenMove:function(){var t=this._polyWhenMove.getLatLngs();this._circleWhenMove=new a["rectangle"](t,{color:"red",fillColor:"#FF7F27",fillOpacity:.4}),this._map.addLayer(this._circleWhenMove)},_getCompleteResult_latlngs_within180:function(t){var e=this,n=t.map((function(t){return e._map.wrapLatLng(t)}));n=n.map((function(t){return 1==a["_chinaMapTransform"]?bt["d"](t):t}));var i=n||[];return i.length>0&&(i[i.length-1]=i[0]),m["a"].log("0622 newLatlngs",i),i},_getCompleteResult:function(){var t=this._getRadiusAndArea(),e=t||{},n=e.tl,i=e.rb,r=e.tr,o=e.lb,s=[n,r,i,o,n];return a["_chinaMapTransform"]&&(s=s.map((function(t){return bt["d"](t)}))),s=this._getCompleteResult_latlngs_within180(s),{latlngs:s}},_getRadiusAndArea:function(){var t=this._polyWhenMove.getLatLngs();if(2==t.length){var e=t[0],n=t[1];t[0].lat或拖动数字点调整"):a["LANG"]&&"en-US"==a["LANG"]?n.push("Click first point to close this shape
Or drag number point "):n.push("点击第一个点完成绘制"),e=this._getMeasurementString()),t=n.join("
"),{text:t,subtext:e}},_getMeasurementString:function(){var t=this._getRadiusAndArea(),e=t.tl,n=t.rb,i=(t.tr,t.lb,t.area);if(i){var r=vt["k"](),o=vt["c"](e),a=vt["c"](n);return r?["1:"+o.join(" "),"2:"+a.join(" "),"面积:"+i+"平方公里"].join("
"):["1:"+o.join(" "),"2:"+a.join(" "),"Area:"+i+"㎢"].join("
")}return""}}),a["Icon"].AreaCircleIcon=a["Icon"].extend({initialize:function(t){this._number=t.number||"",this._fontSize=t.fontSize||4,t.iconSize=[16,16],a["Icon"].prototype.initialize.apply(this,[t])},createIcon:function(){var t=document.createElement("div");return this._setIconStyles(t,"icon"),t=this._createNumber(t),t},_createNumber:function(t){var e=document.createElement("div");return e.innerText=this._number,e.style.display="inline-block",e.style.fontSize="10px",e.style.backgroundColor="red",e.style.color="white",e.style.height="16px",e.style.minWidth="16px",e.style.lineHeight="16px",e.style.textAlign="center",e.style.borderRadius="100%",e.style.float="left",t.appendChild(e),t}}),a["Draw"].AddAreaMarker=a["Draw"].Polygon.extend({statics:{TYPE:"polygon"},Poly:a["Polygon"],options:{allowIntersection:!1,showArea:!0,showLength:!1,shapeOptions:{stroke:!0,color:"#FF7F27",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},metric:["km"],feet:!0,nautic:!1,precision:{km:2,ft:0}},initialize:function(t,e){a["Draw"].Polyline.prototype.initialize.call(this,t,e),this.type=a["Draw"].Polygon.TYPE,this._textId=e.id,this._callBack=e.callBack,this._alert=e.alert},_createMarker:function(t){var e=a["circleMarker"](t,{radius:4,color:"#FF7F27",fillColor:"#FF7F27",weight:4});return this._markerGroup.addLayer(e),e},addHooks:function(){if(m["a"].log("=======addHooks======== n1710",this.options),this.clearPolygon(),a["Draw"].Feature.prototype.addHooks.call(this),this._map){this._originLatlngs=[],this._draggedIndexMapper={},this._markers=[],this._markerGroup=new a["LayerGroup"],this._map.addLayer(this._markerGroup),this._polyWhenMove=new a["Polyline"]([],this.options.shapeOptions),this._markerGroupWhenMove=new a["LayerGroup"],this._markersWhenMove=[],this._map.addLayer(this._markerGroupWhenMove),this._poly=new a["Polyline"]([],this.options.shapeOptions),this._tooltip.updateContent(this._getTooltipText());var t="fakeEdit"==this.options.model;if(m["a"].log("=======addHooks======== n1710_is_fakeEdit",t),t)return void m["a"].log("=======addHooks======== n1710",this.options);this._mouseMarker||(this._mouseMarker=a["marker"](this._map.getCenter(),{icon:a["divIcon"]({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._openMouseMarkerEvent(),this._mouseMarker.addTo(this._map),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("click",this._myMouseClick,this).on("zoomend",this._onZoomEnd,this)}},_onZoomEnd:function(){},_testPolyWhenMove:function(){var t=this._polyWhenMove._defaultShape?this._polyWhenMove._defaultShape():this._polyWhenMove.getLatLngs(),e=this._polyWhenMove.newLatLngIntersects(t[t.length-1]);(!this.options.allowIntersection&&e||!this._shapeIsValid())&&this._showErrorTooltip()},_finishShape:function(){this._displayResult(),this._clearGuides(),this._completeStage="complete_draw",this._updateMarker()},_endPoint:function(t,e,n){var i=this;if(this._mouseDownOrigin){var r=a["point"](t,e).distanceTo(this._mouseDownOrigin),o=this._calculateFinishDistance(n.latlng);if(o<10){this._markerGroupWhenMove&&this._map.removeLayer(this._markerGroupWhenMove);var s=this._getAreaValue(this._polyWhenMove);if(m["a"].log("test areaValue",s),this._finishShape(),s>1e7){var l=a["LANG"]&&"en-US"==a["LANG"]?"㎢,the area shall smaller than 1 million ㎢":"平方公里,区域面积应小于100万平方公里!";l=s+l,this._alert&&this._alert({content:l}),this.disable(),this._completeStage=null,this.complete(),setTimeout((function(){i.enable(),i._openMouseMarkerEvent(),i._map.addLayer(i._polyWhenMove)}),100)}}else Math.abs(r)<9*(window.devicePixelRatio||1)&&this.addVertex(n.latlng);this._enableNewMarkers()}this._mouseDownOrigin=null},_getAreaValue:function(t){if(t._latlngs.length<3)return 0;var e=t.getLatLngs();e[e.length-1]=e[0];var n=t.getLatLngs(),i=a["GeometryUtil"].geodesicArea(n),r=a["GeometryUtil"].readableArea(i,this.options.metric,this.options.precision),o=r.split(" ");return 1*o[0]},_myMouseDblclick:function(t){this._finishShape(t)},removeHooks:function(){m["a"].log("removeHooks is called"),a["Draw"].Feature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._cleanUpShape(),this._displayResult(),this._markerGroup&&this._map.removeLayer(this._markerGroup),this._markerGroup&&delete this._markerGroup,this._originLatlngs&&delete this._originLatlngs,this._draggedIndexMapper&&delete this._draggedIndexMapper,this._poly&&this._map.removeLayer(this._poly),this._poly&&delete this._poly,this._map.removeLayer(this._polyWhenMove),this._map.removeLayer(this._markersWhenMove),delete this._markers,this._closeMouseMarkerEvent(),this._mouseMarker&&this._map.removeLayer(this._mouseMarker),this._mouseMarker&&delete this._mouseMarker,this._clearGuides(),this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("click",this._onTouch,this)},_myMouseClick:function(t){this._enabled||this.enable()},doClear:function(){this.clearPolygon()},clearPolygon:function(){m["a"].log("clearPolygon",this._resultLayer),null!=this._poly&&(this._map.removeLayer(this._poly),delete this._poly),null!=this._markerGroup&&(this._map.removeLayer(this._markerGroup),this._markerGroup.clearLayers(),delete this._markerGroup),null!=this._resultLayer&&this._resultLayer.clearLayers(),null!=this._polyWhenMove&&this._polyWhenMove.setLatLngs([]),null!=this._textmarker&&(this._map.removeLayer(this._textmarker),delete this._textmarker)},_onDragStart:function(t){m["a"].log("Line2 drag _onDragStart",t),this._closestMarkerDragging=!0},_onDrag:function(t){m["a"].log("Line2 drag _onDrag",t.target.options.closestPointIndex);var e=t.target.options.closestPointIndex;this._draggedIndexMapper[e]=!0;var n=this._polyWhenMove.getLatLngs();n[e]=t.target.getLatLng(),0==e&&(n[n.length-1]=n[0]),this._polyWhenMove.setLatLngs(n),this._displayResult(),this._updateMarker()},_onDragEnd:function(t){m["a"].log("Line2 drag _onDragEnd",t,this.options),this._closestMarkerDragging=!1},_updateMarker:function(){var t,e,n=this._polyWhenMove,i=n.getLatLngs();for(m["a"].log("Line2 _updateMarker",i,this._markerGroup,this._completeStage),delete this._markers,this._markers=[],this._markerGroup.clearLayers(),e=0;e0&&o<90||o>-90&&o<0){var a=Math.sin(r)*n,s=Math.cos(r)*n;if(a>-6&&a<6&&s>-6&&s<6)return!0}return!1},_openMouseMarkerEvent:function(){m["a"].log("Line2 _openMouseMarkerEvent"),this._mouseMarkerEventIsOpen=!0,this._mouseMarker.on("contextmenu",this._rightClick,this).on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this)},_isFakeEdit:function(){return"fakeEdit"==this._model},setEdit:function(t){var e=this,n=t||{},i=n.latlngs,r=void 0===i?[]:i,o=n.model,s=void 0===o?"editing":o;if(this._model=s,this._originLatlngs=r.map((function(t){return t})),r&&r.length>0){var l=r.map((function(t){return 1==a["_chinaMapTransform"]?bt["e"](t):t}));this._markerGroup?this._markerGroup.clearLayers():(this._markerGroup=new a["LayerGroup"],this._map.addLayer(this._markerGroup)),l.forEach((function(t){return e.addVertex(t)})),this._finishShape()}},_onMouseDblclick:function(t){m["a"].log("_onMouseDblclick>>>>>>>>>>")},_closeMouseMarkerEvent:function(){m["a"].log("Line2 _closeMouseMarkerEvent"),this._mouseMarkerEventIsOpen=!1,this._mouseMarker&&this._mouseMarker.off("contextmenu",this._rightClick,this).off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this)},_rightClick:function(t){var e=this;if(m["a"].log("area right click"),this._completeStage=null,this.options.completeCallback){var n=this._polyWhenMove.getLatLngs();this._resultLayer&&this._map.removeLayer(this._resultLayer),delete this._resultLayer,n=n.map((function(t){return e._map.wrapLatLng(t)})),n=n.map((function(t){return 1==a["_chinaMapTransform"]?bt["d"](t):t}));var i=this._originLatlngs||[],r=[];if(i.length>0)for(var o,s=this._draggedIndexMapper||{},l=0;l0&&(r[r.length-1]=r[0]),this.options.completeCallback({latlngs:r}),this.doClear(),this.disable(),this.options.repeatMode&&this.enable()}a["DomEvent"].preventDefault(t.originalEvent),a["DomEvent"].stopPropagation(t.originalEvent)},_kcalculateDistance:function(t,e){var n=this._map.latLngToContainerPoint(t),i=this._map.latLngToContainerPoint(e);return n.distanceTo(i)},_testDrag:function(t){for(var e,n,i,r,o=this._polyWhenMove.getLatLngs(),s=1/0,l=0;l30&&(e=null),e){if(!this._closestMarker){m["a"].log("Line2 found closestPoint",e,r);var c=new a["Icon"].AreaCircleIcon({number:r+1});this._closestMarker=a["marker"](e,{icon:c,draggable:!0,closestPointIndex:r,zIndexOffset:this.options.zIndexOffset+1}),this._closestMarker.on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this),this._map.addLayer(this._closestMarker),this._closeMouseMarkerEvent(),this._tooltip.updateContent({text:null,subtext:null})}}else 0==this._mouseMarkerEventIsOpen&&this._mouseMarker.on("contextmenu",this._rightClick,this),this._closestMarker&&(this._closestMarker.off("dragstart",this._onDragStart).off("drag",this._onDrag).off("dragend",this._onDragEnd),m["a"].log("Line2 removeLayer this._closestMarker"),this._map.removeLayer(this._closestMarker),delete this._closestMarker),this._updateTooltip(t),this._mouseMarker.setLatLng(t)},_onMouseMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent),n=this._map.layerPointToLatLng(e);this._currentLatLng=n,this._closestMarkerDragging||("complete_draw"==this._completeStage?this._testDrag(n):(this._addVertexWhenMove(n),this._updateTooltip(n),this._mouseMarker.setLatLng(n)),this._currentLatLngs=this._polyWhenMove.getLatLngs(),a["DomEvent"].preventDefault(t.originalEvent))},_updateFinishHandler:function(){var t=this._markers.length;1===t&&this._markers[0].on("click",this._finishShape,this),t>2&&(this._markers[t-1].on("dblclick",this._finishShape,this),t>3&&this._markers[t-2].off("dblclick",this._finishShape,this))},_getTooltipText:function(){var t,e,n=[];return 0===this._markers.length?(t=a["drawLocal"].draw.handlers.polygon.tooltip.start,a["LANG"]&&"en-US"==a["LANG"]?n.push("Click to start drawing shape"):n.push("点击图层开始")):this._markers.length<3?(t=a["drawLocal"].draw.handlers.polygon.tooltip.cont,e=this._getMeasurementString(),a["LANG"]&&"en-US"==a["LANG"]?n.push("Click to continue drawing shape."):n.push("继续点击图层")):(t=a["drawLocal"].draw.handlers.polygon.tooltip.end,"complete_draw"==this._completeStage?a["LANG"]&&"en-US"==a["LANG"]?n.push("Click right to complete"):n.push("右击完成
或拖动数字点调整"):a["LANG"]&&"en-US"==a["LANG"]?n.push("Click first point to close this shape
Or drag number point "):n.push("点击第一个点完成绘制"),e=this._getMeasurementString()),t=n.join(""),{text:t,subtext:e}},_displayResult:function(){var t=this._polyWhenMove;if(!(t._latlngs.length<3)){this._polyWhenMove&&this._map.removeLayer(this._polyWhenMove);var e=t.getLatLngs();e[e.length-1]=e[0],this._resultLayer&&this._map.removeLayer(this._resultLayer),this._resultLayer=a["layerGroup"]();var n=a["polygon"](e,{color:"#FF7F27",weight:2});this._resultLayer.addLayer(n);var i=t.getLatLngs(),r=a["GeometryUtil"].geodesicArea(i),o=a["GeometryUtil"].readableArea(r,this.options.metric,this.options.precision),s=a["divIcon"]({html:o,className:"",iconSize:[200,20]}),l=n.getBounds().getCenter();if(l.lat){var c=a["marker"](l,{icon:s});this._resultLayer.addLayer(c)}this._map.addLayer(this._resultLayer)}},reset:function(){},_getMeasurementString:function(){var t,e=this._polyWhenMove,n="",i=e.getLatLngs();return t=a["GeometryUtil"].geodesicArea(i),t||this.options.showLength?(this.options.showLength&&(n=a["Draw"].Polyline.prototype._getMeasurementString.call(this)),t&&(n+=a["GeometryUtil"].readableArea(t,this.options.metric,this.options.precision)),n):null},_shapeIsValid:function(){return this._markers.length>=3},_vertexChanged:function(t,e){var n;!this.options.allowIntersection&&this.options.showArea&&(n=this._polyWhenMove.getLatLngs(),this._area=a["GeometryUtil"].geodesicArea(n)),this._map.fire(a["Draw"].Event.DRAWVERTEX,{layers:this._markerGroup}),this._updateFinishHandler(),this._updateRunningMeasure(t,e),this._clearGuides(),this._updateTooltip()},_cleanUpShape:function(){var t=this._markers.length;t>0&&(this._markers[0].off("click",this._finishShape,this),t>2&&this._markers[t-1].off("dblclick",this._finishShape,this))},complete:function(){this.clearPolygon(),this.disable(),this._map.off("click",this._myMouseClick,this)}}),a["Icon"].AreaCircleIcon2=a["Icon"].extend({initialize:function(t){this._number=t.number||"",this._fontSize=t.fontSize||4,t.iconSize=[16,16],a["Icon"].prototype.initialize.apply(this,[t])},createIcon:function(){var t=document.createElement("div");return this._setIconStyles(t,"icon"),t=this._createNumber(t),t},_createNumber:function(t){var e=document.createElement("div");return e.innerText=this._number,e.style.display="inline-block",e.style.fontSize="10px",e.style.backgroundColor="red",e.style.color="white",e.style.height="16px",e.style.minWidth="16px",e.style.lineHeight="16px",e.style.textAlign="center",e.style.borderRadius="100%",e.style.float="left",t.appendChild(e),t}}),a["Draw"].AddAreaMarker2=a["Draw"].Polygon.extend({statics:{TYPE:"polygon"},Poly:a["Polygon"],options:{allowIntersection:!1,showArea:!0,showLength:!1,shapeOptions:{stroke:!0,color:"#FF7F27",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},metric:["km"],feet:!0,nautic:!1,precision:{km:2,ft:0}},initialize:function(t,e){a["Draw"].Polyline.prototype.initialize.call(this,t,e),this.type=a["Draw"].Polygon.TYPE,this._textId=e.id,this._callBack=e.callBack,this._alert=e.alert},_createMarker:function(t){var e=a["circleMarker"](t,{radius:4,color:"#FF7F27",fillColor:"#FF7F27",weight:4});return this._markerGroup.addLayer(e),e},addHooks:function(){if(m["a"].log("=======addHooks======== n1710",this.options),this.clearPolygon(),a["Draw"].Feature.prototype.addHooks.call(this),this._map){this._originLatlngs=[],this._draggedIndexMapper={},this._markers=[],this._markerGroup=new a["LayerGroup"],this._map.addLayer(this._markerGroup),this._polyWhenMove=new a["Polyline"]([],this.options.shapeOptions),this._markerGroupWhenMove=new a["LayerGroup"],this._markersWhenMove=[],this._map.addLayer(this._markerGroupWhenMove),this._poly=new a["Polyline"]([],this.options.shapeOptions),this._tooltip.updateContent(this._getTooltipText());var t="fakeEdit"==this.options.model;if(m["a"].log("=======addHooks======== n1710_is_fakeEdit",t),t)return void m["a"].log("=======addHooks======== n1710",this.options);this._mouseMarker||(this._mouseMarker=a["marker"](this._map.getCenter(),{icon:a["divIcon"]({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._openMouseMarkerEvent(),this._mouseMarker.addTo(this._map),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("click",this._myMouseClick,this).on("zoomend",this._onZoomEnd,this)}},_onZoomEnd:function(){},_testPolyWhenMove:function(){var t=this._polyWhenMove._defaultShape?this._polyWhenMove._defaultShape():this._polyWhenMove.getLatLngs(),e=this._polyWhenMove.newLatLngIntersects(t[t.length-1]);(!this.options.allowIntersection&&e||!this._shapeIsValid())&&this._showErrorTooltip()},_finishShape:function(){this._displayResult(),this._clearGuides(),this._completeStage="complete_draw",this._updateMarker()},_endPoint:function(t,e,n){var i=this;if(this._mouseDownOrigin){var r=a["point"](t,e).distanceTo(this._mouseDownOrigin),o=this._calculateFinishDistance(n.latlng);if(o<10){this._markerGroupWhenMove&&this._map.removeLayer(this._markerGroupWhenMove);var s=this._getAreaValue(this._polyWhenMove);if(m["a"].log("test areaValue",s),this._finishShape(),s>1e7){var l=a["LANG"]&&"en-US"==a["LANG"]?"㎢,the area shall smaller than 1 million ㎢":"平方公里,区域面积应小于100万平方公里!";l=s+l,this._alert&&this._alert({content:l}),this.disable(),this._completeStage=null,this.complete(),setTimeout((function(){i.enable(),i._openMouseMarkerEvent(),i._map.addLayer(i._polyWhenMove)}),100)}}else Math.abs(r)<9*(window.devicePixelRatio||1)&&this.addVertex(n.latlng);this._enableNewMarkers()}this._mouseDownOrigin=null},_getAreaValue:function(t){if(t._latlngs.length<3)return 0;var e=t.getLatLngs();e[e.length-1]=e[0];var n=t.getLatLngs(),i=a["GeometryUtil"].geodesicArea(n),r=a["GeometryUtil"].readableArea(i,this.options.metric,this.options.precision),o=r.split(" ");return 1*o[0]},_myMouseDblclick:function(t){this._finishShape(t)},removeHooks:function(){m["a"].log("removeHooks is called"),a["Draw"].Feature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._cleanUpShape(),this._displayResult(),this._markerGroup&&this._map.removeLayer(this._markerGroup),this._markerGroup&&delete this._markerGroup,this._originLatlngs&&delete this._originLatlngs,this._draggedIndexMapper&&delete this._draggedIndexMapper,this._poly&&this._map.removeLayer(this._poly),this._poly&&delete this._poly,this._map.removeLayer(this._polyWhenMove),this._map.removeLayer(this._markersWhenMove),delete this._markers,this._closeMouseMarkerEvent(),this._mouseMarker&&this._map.removeLayer(this._mouseMarker),this._mouseMarker&&delete this._mouseMarker,this._clearGuides(),this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("click",this._onTouch,this)},_myMouseClick:function(t){this._enabled||this.enable()},doClear:function(){this.clearPolygon()},clearPolygon:function(){m["a"].log("clearPolygon",this._resultLayer),null!=this._poly&&(this._map.removeLayer(this._poly),delete this._poly),null!=this._markerGroup&&(this._map.removeLayer(this._markerGroup),this._markerGroup.clearLayers(),delete this._markerGroup),null!=this._resultLayer&&this._resultLayer.clearLayers(),null!=this._polyWhenMove&&this._polyWhenMove.setLatLngs([]),null!=this._textmarker&&(this._map.removeLayer(this._textmarker),delete this._textmarker)},_marker_onDrag:function(t){var e=t.target.options.closestPointIndex;this._draggedIndexMapper[e]=!0;var n=this._polyWhenMove.getLatLngs();n[e]=t.target.getLatLng(),0==e&&(n[n.length-1]=n[0]),this._polyWhenMove.setLatLngs(n),this._displayResult(),this._tooltip.updateContent({text:null})},_updateMarker:function(){var t,e,n=this,i=this._polyWhenMove,r=i.getLatLngs();m["a"].log("Line2 _updateMarker",r,this._markerGroup,this._completeStage),delete this._markers,this._markers=[],this._markerGroup.clearLayers();var o=function(){t=r[e];var i=new a["Icon"].AreaCircleIcon2({number:e+1}),o=a["marker"](t,{icon:i,draggable:!0,closestPointIndex:e,zIndexOffset:n.options.zIndexOffset+200});o.on("mousemove",(function(t){var e=n._map.mouseEventToLayerPoint(t.originalEvent),i=n._map.layerPointToLatLng(e);n._229_drag_and_delete_tooltip(i),n._closestMarker=o})).on("mouseout",(function(t){n._closestMarker=null;var e=n._map.mouseEventToLayerPoint(t.originalEvent),i=n._map.layerPointToLatLng(e);n._229_update_tooltip(i,null)})).on("drag",n._marker_onDrag,n),0==e&&o.on("click",(function(t){m["a"].log("cmes229 first point is clicked"),n._finishShape()})),n._markers.push(o),n._markerGroup.addLayer(o)};for(e=0;e按下D键删除":"Drag to change position or
Press D to remove ";this._229_update_tooltip(t,n),this._mouseMarker.setLatLng(t)},_229_update_tooltip:function(t,e){var n={text:e,subtext:""};this._tooltip.updateContent(n),this._tooltip&&this._tooltip.updatePosition(t)},addVertex:function(t){var e=t;if("[object Array]"===Object.prototype.toString.call(t)){var n=t[0],i=t[1];e={lat:n,lng:i}}this._polyWhenMove.addLatLng(e),this._updateMarker()},_addVertexWhenMove:function(t){this._markerGroupWhenMove&&this._markerGroupWhenMove.clearLayers(),this._markersWhenMove.pop();var e=this._polyWhenMove.getLatLngs();e.pop(),e.push(t),this._polyWhenMove&&this._map.removeLayer(this._polyWhenMove),this._polyWhenMove.setLatLngs(e),this._map.addLayer(this._polyWhenMove)},_updateTooltip:function(t){var e=this._getTooltipText();this._tooltip&&(t&&this._tooltip.updatePosition(t),this._errorShown||this._tooltip.updateContent(e))},_openMouseMarkerEvent:function(){m["a"].log("cmes229 Line2 _openMouseMarkerEvent"),this._mouseMarkerEventIsOpen=!0,this._mouseMarker.on("contextmenu",this._rightClick,this).on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this)},_isFakeEdit:function(){return"fakeEdit"==this._model},setEdit:function(t){var e=this,n=t||{},i=n.latlngs,r=void 0===i?[]:i,o=n.model,s=void 0===o?"editing":o;if(this._model=s,this._originLatlngs=r.map((function(t){return t})),r&&r.length>0){var l=r.map((function(t){return 1==a["_chinaMapTransform"]?bt["e"](t):t}));this._markerGroup?this._markerGroup.clearLayers():(this._markerGroup=new a["LayerGroup"],this._map.addLayer(this._markerGroup)),l.forEach((function(t){return e.addVertex(t)})),this._finishShape()}},_closeMouseMarkerEvent:function(){m["a"].log("Line2 _closeMouseMarkerEvent"),this._mouseMarkerEventIsOpen=!1,this._mouseMarker&&this._mouseMarker.off("contextmenu",this._rightClick,this).off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this)},_rightClick:function(t){var e=this;if(m["a"].log("area right click"),this._completeStage=null,this.options.completeCallback){var n=this._polyWhenMove.getLatLngs();this._resultLayer&&this._map.removeLayer(this._resultLayer),delete this._resultLayer,n=n.map((function(t){return e._map.wrapLatLng(t)})),n=n.map((function(t){return 1==a["_chinaMapTransform"]?bt["d"](t):t}));var i=this._originLatlngs||[],r=[];if(i.length>0)for(var o,s=this._draggedIndexMapper||{},l=0;l0&&(r[r.length-1]=r[0]),m["a"].log("cmes229 rightclick",i,r),this.options.completeCallback({latlngs:r}),this.doClear(),this.disable(),this.options.repeatMode&&this.enable()}a["DomEvent"].preventDefault(t.originalEvent),a["DomEvent"].stopPropagation(t.originalEvent)},_kcalculateDistance:function(t,e){var n=this._map.latLngToContainerPoint(t),i=this._map.latLngToContainerPoint(e);return n.distanceTo(i)},_onMouseMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent),n=this._map.layerPointToLatLng(e);this._currentLatLng=n,"complete_draw"==this._completeStage||this._addVertexWhenMove(n),this._updateTooltip(n),this._mouseMarker.setLatLng(n),this._currentLatLngs=this._polyWhenMove.getLatLngs(),a["DomEvent"].preventDefault(t.originalEvent)},_updateFinishHandler:function(){var t=this._markers.length;1===t&&this._markers[0].on("click",this._finishShape,this),t>2&&(this._markers[t-1].on("dblclick",this._finishShape,this),t>3&&this._markers[t-2].off("dblclick",this._finishShape,this))},_getTooltipText:function(){var t,e,n=[];return 0===this._markers.length?(t=a["drawLocal"].draw.handlers.polygon.tooltip.start,a["LANG"]&&"en-US"==a["LANG"]?n.push("Click to start drawing shape"):n.push("点击图层开始")):this._markers.length<3?(t=a["drawLocal"].draw.handlers.polygon.tooltip.cont,e=this._getMeasurementString(),a["LANG"]&&"en-US"==a["LANG"]?n.push("Click to continue drawing shape."):n.push("继续点击图层")):(t=a["drawLocal"].draw.handlers.polygon.tooltip.end,"complete_draw"==this._completeStage?a["LANG"]&&"en-US"==a["LANG"]?n.push("Click right to complete"):n.push("右击完成
或拖动数字点调整"):a["LANG"]&&"en-US"==a["LANG"]?n.push("Click first point to close this shape
Or drag number point "):n.push("点击第一个点完成绘制"),e=this._getMeasurementString()),t=n.join(""),{text:t,subtext:e}},_displayResult:function(){m["a"].log("cmes229 _displayResult done");var t=this._polyWhenMove;if(!(t._latlngs.length<3)){this._polyWhenMove&&this._map.removeLayer(this._polyWhenMove);var e=t.getLatLngs();e[e.length-1]=e[0],this._resultLayer&&this._map.removeLayer(this._resultLayer),this._resultLayer=a["layerGroup"]();var n=a["polygon"](e,{color:"#FF7F27",weight:2});this._resultLayer.addLayer(n);var i=t.getLatLngs(),r=a["GeometryUtil"].geodesicArea(i),o=a["GeometryUtil"].readableArea(r,this.options.metric,this.options.precision),s=a["divIcon"]({html:o,className:"",iconSize:[200,20]}),l=n.getBounds().getCenter();if(l.lat){var c=a["marker"](l,{icon:s});this._resultLayer.addLayer(c)}this._map.addLayer(this._resultLayer)}},reset:function(){},_getMeasurementString:function(){var t,e=this._polyWhenMove,n="",i=e.getLatLngs();return t=a["GeometryUtil"].geodesicArea(i),t||this.options.showLength?(this.options.showLength&&(n=a["Draw"].Polyline.prototype._getMeasurementString.call(this)),t&&(n+=a["GeometryUtil"].readableArea(t,this.options.metric,this.options.precision)),n):null},_shapeIsValid:function(){return this._markers.length>=3},_vertexChanged:function(t,e){var n;!this.options.allowIntersection&&this.options.showArea&&(n=this._polyWhenMove.getLatLngs(),this._area=a["GeometryUtil"].geodesicArea(n)),this._map.fire(a["Draw"].Event.DRAWVERTEX,{layers:this._markerGroup}),this._updateFinishHandler(),this._updateRunningMeasure(t,e),this._clearGuides(),this._updateTooltip()},_cleanUpShape:function(){var t=this._markers.length;t>0&&(this._markers[0].off("click",this._finishShape,this),t>2&&this._markers[t-1].off("dblclick",this._finishShape,this))},complete:function(){this.clearPolygon(),this.disable(),this._map.off("click",this._myMouseClick,this)}});var ms=function(t,e){return t+(e-t)/2},gs=function(t,e,n){var i=ms(t.lat,e.lat),r=ms(t.lng,e.lng);return{lat:i,lng:r,beginIndex:n}};function ys(t,e){return new a["Draw"].AddAreaMarker22292(t,e)}a["Icon"].AreaCircleIconAdd2=a["Icon"].extend({initialize:function(t){this._number=t.number||"",this._fontSize=t.fontSize||4,t.iconSize=[14,14],a["Icon"].prototype.initialize.apply(this,[t])},createIcon:function(){var t=document.createElement("div");return this._setIconStyles(t,"icon"),t=this._createNumber(t),t},_createNumber:function(t){var e=document.createElement("div"),n="50,50,50";return e.innerText="+",e.style.display="inline-block",e.style.fontSize="18px",e.style.backgroundColor="rgba(".concat(n,",0.5)"),e.style.border="1px solid rgba(".concat(n,",0.3)"),e.style.color="white",e.style.height="16px",e.style.minWidth="16px",e.style.lineHeight="12px",e.style.textAlign="center",e.style.borderRadius="100%",e.style.float="left",t.appendChild(e),t}}),a["Draw"].AddAreaMarker22292=a["Draw"].AddAreaMarker2.extend({setEdit:function(t){m["a"].log("cmes229 setEdit",t),a["Draw"].AddAreaMarker2.prototype.setEdit.call(this,t),this._229_start()},_229_start:function(){if(m["a"].log("cmes229 _229_start",this._229_is_model_on(),this._model),this._229_is_model_on()){var t=this._polyWhenMove.getLatLngs();this._229_update_add_markerGroup({latlngs:t}),this._229_remove_handler()}},_229_is_model_on:function(){return"editing"===this._model||"complete_draw"===this._completeStage},_229_remove_handler:function(){this._229_is_model_on()&&(m["a"].log("cmes229 _229_remove_handler"),this._229_keypress_listener_proxy=this._229_keypress_listener.bind(this),document.addEventListener("keypress",this._229_keypress_listener_proxy))},_229_keypress_listener:function(t){m["a"].log("cmes229 keypress",t);var e={originalEvent:t};this._229_remove_keydown(e)},_229_remove_keydown:function(t){var e=this;m["a"].log("cmes229 remove keydown1>>>>>>>>>>>>",t,this._closestMarker);var n="d"===t.originalEvent.key||"D"===t.originalEvent.key;if(this._closestMarker&&n){var i=this._closestMarker.options.closestPointIndex,r=this._polyWhenMove.getLatLngs(),o=r.length>4;if(m["a"].log("cmes229 remove keydown2",t,i,r.length,o),!o)return void this._229_update_tooltip(this._closestMarker.getLatLng(),Object(vt["k"])()?"多边形至少3个点,无法移除":"3 points are required. Fail to remove it");var s=[];m["a"].log("cmes229 closestPointIndex",i,r.length);for(var l=0;l180)n-=360;while(r>180)r-=360;while(r<-180)r+=360;while(n<-180)n+=360;return r+","+o+","+n+","+i}),Fs=function(t,e){return 180==e?Vs(t)-1:(e=Qs(e),(e+180)/360*Vs(t))};function Vs(t){return t>=0&&t-Math.floor(t)<.001?1<180)t<0?t+=360:t-=360;return t}function Hs(t){while(t<-90||t>90)t<0?t+=180:t-=180;return t<-85.0511?-85.0511:t>85.0511?85.0511:t}var Js=function(t,e){e=Hs(e);var n=Math.log(Math.tan(Xs(e))+1/Math.cos(Xs(e)));return isFinite(n)&&!isNaN(n)||(e=e<0?-89.9:89.9,n=Math.log(Math.tan(Xs(e))+1/Math.cos(Xs(e)))),(1-n/Math.PI)/2*Vs(t)};function Xs(t){return t/180*Math.PI}var Ks=function(t){var e,n,i,r,o,a,s=Ws(t),l=s.split(","),c=parseInt(t.getZoom()),h=Number(l[0]),u=Number(l[1]),d=Number(l[2]),p=Number(l[3]),f=new Array;if(c<3){for(h=-180,u=-90,d=180,p=90,e=parseInt(Fs(c,h)),n=parseInt(Fs(c,d)),r=parseInt(Js(c,u)),i=parseInt(Js(c,p)),o=e;o<=n;o++)for(a=i;a<=r;a++)f.push(c+"_"+o+"_"+a);return f}if(h>d){for(e=parseInt(Fs(c,h)),n=parseInt(Fs(c,180)),r=parseInt(Js(c,u)),i=parseInt(Js(c,p)),o=e;o<=n;o++)for(a=i;a<=r;a++)f.push(c+"_"+o+"_"+a);for(e=parseInt(Fs(c,-180)),n=parseInt(Fs(c,d)),r=parseInt(Js(c,u)),i=parseInt(Js(c,p)),o=e;o<=n;o++)for(a=i;a<=r;a++)f.push(c+"_"+o+"_"+a);return f}for(e=parseInt(Fs(c,h)),n=parseInt(Fs(c,d)),r=parseInt(Js(c,u)),i=parseInt(Js(c,p)),o=e;o<=n;o++)for(a=i;a<=r;a++)f.push(c+"_"+o+"_"+a);return f};var qs=function(t){return a["_chinaMapTransform"]?bt["e"](t):t},$s=function(t,e,n){var i=n||{},r=i.zoom;if(t.flyToBounds(e,{animate:!1}),void 0==r){var o=t.getZoom();o>2&&t.setZoom(o-2)}else t.setZoom(r)},tl=function(t,e){if(void 0!=e.latlngs&&e.latlngs.length>0)$s(t,e.latlngs);else{var n,i=t.getZoom(),r=e||{},o=r.lon,s=void 0===o?"_":o,l=r.lng,c=void 0===l?"_":l,h=r.lat,u=void 0===h?"_":h,d=r.zoom,p=void 0===d?i:d,f=r.considerBottom,g=void 0!==f&&f,y=r.considerBottomPct,_=void 0===y?.4:y,v=0;if(window&&window._hf_is_mobile&&g){var b=t.getBounds(),w=b.getNorth(),x=b.getSouth(),L=Math.abs(w-x),M=L/2;v=M*_}"_"!=s&&"_"!=u?(u-=v,n={lat:1*u,lng:1*s}):"_"!=c&&"_"!=u&&(u-=v,n={lat:1*u,lng:1*c}),m["a"].log("flyTo",e,n,v),n&&(n=qs(n),t.flyTo(a["latLng"](n),p,{animate:!1}))}},el=function(t,e,n){var i=a["latLngBounds"](e);$s(t,i,n)},nl={CURRENT:"current",HISTORY:"history"},il=function(t){var n=t||{},i=n.map,s=(n.el,n.vue,i),l=nl.CURRENT,c=function(){return l},h=Da.create(t),u=Us.create(t);t.shipApp=h;var d,p=Ls.create(t),f=function(t){},g={seattleMap:"https://mt1.google.cn/vt/lyrs=y&hl=zh-CN&gl=CN&src=app&x={x}&y={y}&z={z}&s=G",chartMap:"https://www.hifleet.com/getZSNauticalChart.do?x={x}&y={y}&z={z}",basicMap:"https://mt3.google.cn/vt/lyrs=t@131,r@216000000&hl=zh-CN&gl=CN&src=app&x={x}&y={y}&z={z}&s=Gal"},y="basicMap",_=function(t){var e=t||{},n=e.name,i=void 0===n?y:n;try{return g[i]}catch(r){}return g.basicMap},v=function(t){var e=_(t);if(d)return d.setUrl(e),void(i.hasLayer(d)||d.addTo(i));d=a["tileLayer"](e,{}),d.addTo(i)},b=function(t){d.setUrl(t.url)},w=function(){d&&i.removeLayer(d)},x=function(){var t=L();return t.llon+","+t.blat+","+t.rlon+","+t.tlat},L=function(){var t=i.getBounds(),e=t.getEast(),n=t.getNorth(),r=t.getWest(),o=t.getSouth();while(e>180)e-=360;while(r>180)r-=360;while(r<-180)r+=360;while(e<-180)e+=360;return{llon:r,rlon:e,tlat:n,blat:o}},M=function(t){var e=t||{},n=e.left,r=e.right,o=e.bottom,s=i.getBounds(),l=s.getEast();if(r>0){var c={lat:0,lng:l};c=i.latLngToLayerPoint(c),c.x-=r,c=i.layerPointToLatLng(c),l=c.lng}var h=s.getWest();if(n>0){var u={lat:0,lng:h};u=i.latLngToLayerPoint(u),u.x+=n,u=i.layerPointToLatLng(u),h=u.lng}var d=s.getSouth();if(o>0){var p={lat:d,lng:0};p=i.latLngToLayerPoint(p),p.y-=o,p=i.layerPointToLatLng(p),d=p.lat}var f=s.getNorth(),m=Math.abs(l-h);if(m>=360)return[-180,d,180,f].join(",");while(l>180)l-=360;while(h>180)h-=360;while(h<-180)h+=360;while(l<-180)l+=360;var g=h,y=l,_=f,v=d,b=g+","+v+","+y+","+_;if(!a["_chinaMapTransform"])return b;[{lat:f,lng:h},{lat:f,lng:l},{lat:d,lng:h},{lat:d,lng:l}].forEach((function(t){var e=bt["d"](t),n=e.lat,i=e.lng;n>_&&(_=n),ny&&(y=i),i0){var u={lat:0,lng:h};u=i.latLngToLayerPoint(u),u.x-=r,u=i.layerPointToLatLng(u),h=u.lng}var d=c.getWest();if(n>0){var p={lat:0,lng:d};p=i.latLngToLayerPoint(p),p.x+=n,p=i.layerPointToLatLng(p),d=p.lng}var f=c.getSouth();if(o>0){var m={lat:f,lng:0};m=i.latLngToLayerPoint(m),m.y-=o,m=i.layerPointToLatLng(m),f=m.lat}var g=c.getNorth(),y=Math.abs(h-d);if(y>=360)return[-180,f,180,g].join(",");var _=d,v=h,b=g,w=f,x=_+","+w+","+v+","+b;if(!a["_chinaMapTransform"])return x;if([{lat:g,lng:d},{lat:g,lng:h},{lat:f,lng:d},{lat:f,lng:h}].forEach((function(t){var e=bt["d"](t),n=e.lat,i=e.lng;n>b&&(b=n),nv&&(v=i),i<_&&(_=i)})),l){while(_>180)_-=360;while(v>180)v-=360;while(_<-180)_+=360;while(v<-180)v+=360}var L=_+","+w+","+v+","+b;return L},T=function(t){var e=t||{},n=e.ships,i=void 0===n?[]:n;h.drawShips({kship:i})},A=function(t){},E=function(){},S=function(t){var e=i.getCenter();return 360*parseInt(e.lng/360)+t},P=function(t,e){return $s(i,t,e)},O=function(t){return tl(s,t)},D=function(t,e){return el(i,t,e)},I=function(t){var n=t.map((function(t){var e=t||{},n=e.lng,i=e.lon,r=e.lat,o=n;return i&&(n||(o=i)),[parseFloat(o),parseFloat(r)]})),i=vt["d"](n);return t.map((function(n,r){n.lon=i[r][0],n.lat=i[r][1],n.lng=n.lon;try{n.dy=t[r].dy,m["a"].log("el.dy",n.dy)}catch(e){}return n}))},R=Ra.create(t),j=function(t,e,n){var i=n||{},r=i.parts,o=void 0===r?2e3:r,a=1852*e,s=Es["circle"](t,a,{parts:o});return s.getLatLngs()},C=As.create(t),N=function(t){return a["_chinaMapTransform"]?bt["e"](t):t},z=function(t,e){var n=t.getBounds(),i=n.getEast(),r=n.getNorth(),o=n.getWest(),a=n.getSouth(),s=e.lon||e.lng,l=e.lat,c=N({lat:l,lng:s});return s=c.lng,l=c.lat,!(s>i||sr||l10))try{var s=t.lon||t.lng;if(s=vt["r"](s),sr)return void Y()}catch(e){}},F=function(t,e){return vt["e"](s,t,e)},V=function(t){var e=-3e4,n=3e4,i=-100,r=100;t.forEach((function(t){var o=t||{},a=o.lat,s=o.lon,l=o.lng;void 0!=a&&(a>i&&(i=a),ae&&(e=c),c3e3)return 1;for(var s=0,l=o.length;s0){var c=18-s+3;return m["a"].log("calcZoomByLatLngs",a,o[s],i,e,r,n,t,c),c}};return Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])({init:f,getMap:function(){return i},initMap:A,changeMap:v,hideMap:w,setUrl:b,drawShips:T,changeStage:E,getBBox:M,getBBoxOrigin:x,getBBoxConsiderChinaMap:M,getBBoxConsiderChinaMapWithoutInferiorArc:k,getZoom:function(){return i.getZoom()},getCurrentStageName:c,getStageNames:function(){return nl},getWrapCenter:function(){return s.getCenter().wrap()},getCenter:function(){return s.getCenter()},nearLng:S,flyTo:O,flyToBounds:P,flyToLatLngs:D,getLatLngsConsiderDayTransform:I},p),R),{},{getShipApp:function(){return h},createLayerGroup:function(){return a["layerGroup"]()},getLayerConstant:function(){return r},getCircleLatLngs:j,LatLngInBbox:G},C),B),u),U),{},{getXYZ:Z,inChinaMainLandByLatLng:Ys["b"],seaChartToMapByLatLng:bt["e"],mapToSeaChartByLatLng:bt["d"],mapTranslateTo180:W,distanceInMeters:F,calcZoomByLatLngs:V})},rl=i("9649"),ol=i("2411"),al=i.n(ol),sl=i("6747"),ll=i.n(sl),cl=i("3a3b"),hl=i("ade3"),ul={INFO_GREENPOINT:"display.info.greenpoint",INFO_PORTS:"display.info.ports",INFO_MERCHANTS:"display.info.merchants",INFO_MARKERS:"display.info.markers",INFO_NOTICES:"display.info.notices",INFO_PIRATES:"display.info.pirates",INFO_MARINE_OBSERVING_BUOYS:"display.info.marineObservingBuoys",INFO_ALERT_POINT:"display.info.alertpoint",INFO_FLOW_POINT:"display.info.flowpoint",INFO_AIS_MARK:"display.info.aismark",INFO_ROUTES:"display.info.routes",INFO_HLWAIS_TRUCK:"display.info.hlwais.truck",INFO_HUANGMAO_71:"display.info.huangmao.71"},dl=0,pl={id:dl++,key:ul.INFO_GREENPOINT,url:"/hifleetapi/getdotshipimage2.do?x={x}&y={y}&z={z}&r=2015739&sparse=0",type:"MultiUrlWms",options:{maxZoom:10,zIndex:_h},i18n:{en:"Vessels
GreenDot",cn:"全部船舶
绿点"}},fl={id:dl++,key:ul.INFO_ROUTES,options:{},i18n:{en:"Fleet Routes",cn:"船队航线"}},ml={id:dl++,key:ul.INFO_MARKERS,options:{},i18n:{en:"Markers",cn:"标注"}},gl={id:dl++,key:ul.INFO_PORTS,options:{},i18n:{en:"Ports",cn:"港口"}},yl={id:dl++,key:ul.INFO_MERCHANTS,options:{},i18n:{en:"Service Suppliers",cn:"服务商"}},_l={id:dl++,key:ul.INFO_PIRATES,options:{},i18n:{en:"Pirates",cn:"海盗"}},vl={id:dl++,key:ul.INFO_ALERT_POINT,options:{},i18n:{en:"Earth quakes",cn:"地震"}},bl={id:dl++,key:ul.INFO_FLOW_POINT,options:{},i18n:{en:"Tides",cn:"潮汐"}},wl={id:dl++,key:ul.INFO_AIS_MARK,options:{},i18n:{en:"AIS Buoys",cn:"AIS航标"}},xl={id:dl++,key:ul.INFO_NOTICES,options:{},i18n:{en:"Notices",cn:"航行警告"}},Ll={id:dl++,key:ul.INFO_HLWAIS_TRUCK,options:{},i18n:{en:"环卫车",cn:"环卫车"}},Ml=(dl++,ul.INFO_HUANGMAO_71,function(){var t=[pl,fl,ml,gl,yl,xl,vl,_l,bl,wl,Ll];return t.map((function(t,e){var n=t||{},i=n.url;if(i){var r=t.url;return r&&(r=ie["g"](r)),Object(o["a"])(Object(o["a"])({},t),{},{url:r})}return t}))}),kl=(i("88d7"),"/hifleetapi/getdotshipimagetms.do?"),Tl="/hifleetapi/getdotshipimagetms.do?x={x}&y={y}&z={z}",Al="/hifleetapi/getdotshipimagetms6.do?x={x}&y={y}&z={z}&sparse=10&minReportTimes=10",El="/hifleetapi/getfleetshipimagetms6.do?x={x}&y={y}&z={z}&sparse=10&minReportTimes=10",Sl=function(){var t="";try{t="https://ttse.hifleet.com"}catch(e){console.error(e)}return{vessel:t+kl,vessel2:t+Tl,vessel3:t+Al,fleet:t+El}},Pl=function(){return!(!window||!window.__hfdrawship_mode||"1"!=window.__hfdrawship_mode)},Ol=0,Dl=1,Il=2,Rl=3,jl=function(t,n){var i=Sc(t),r=Pl(),o=!0,a=!1;"00FF00"==i.color&&(a=!0);var s=Vn["d"]();try{1*i.speed==0&&(o=!1),s&&1*i.speed<.7&&(o=!1)}catch(e){o=!0}return r?a?Il:Ol:a?o?Il:Rl:o?Ol:Dl},Cl="EVENT_SWITCH_MAP",Nl=function(t){var e=new CustomEvent(Cl,{detail:t});document.dispatchEvent(e)},zl=null,Gl=function(t){m["a"].log("n2620 setSelectedMapOptions ",t),zl=t,Nl({options:t})},Bl=function(){return zl},Zl="@2x",Ul="@2x",Yl="_2620",Wl="_2620triangle",Fl="@2xwhiteborder",Vl={},Ql=(Object(hl["a"])(Object(hl["a"])(Object(hl["a"])({},Zl,{ignoreCollisionZoomLevel:11,collisionSizeListBaseOnZoom:"8,8,8,8,8,8,8,8,8,8"}),Yl,{ignoreCollisionZoomLevel:11,collisionSizeListBaseOnZoom:"8,8,8,8,8,8,8,8,8,8"}),Wl,{ignoreCollisionZoomLevel:11,collisionSizeListBaseOnZoom:"8,8,8,8,8,8,8,8,8,8"}),Zl),Hl=function(){return Ql},Jl=function(){return Ql==Zl},Xl=function(t){if(!Vn["d"]())return{imageW:38,imageH:84,useOriginImage:!1};var e=Hl();return Vl[t]||Vl[e]},Kl=function(){var t=Hl(),e=Bl();if(Ul==t)return 4;if(Fl==t)return 3;if(Yl==t)return 5;if(Wl==t){var n=e||{},i=n.key;if(rl["a"].MAP_SATELLITE==i||rl["a"].MAP_WEATHER==i)return 1;if(rl["a"].MAP_NAUTICAL==i||rl["a"].MAP_GLOBAL==i||rl["a"].MAP_CHINANAUTICAL==i)return 2}},ql=function(t){var n=t||{},i=n.rotate,r=n.iconUrlIndex,o=n.iconSize,a=n.imageIndex,s=n.cutImageWidth,l=void 0===s?10:s,c=n.cutImageHeight,h=void 0===c?20:c,u=0,d=0,p=0,f=0,m=null,g=o;try{m=Ic();var y=Kl(),_=[2,0,3,1],v=_[a];u=v*l,d=y*h,p=l,f=h,g=[l,h]}catch(e){console.error(e),u=0,d=0,p=0,f=0,m=null,g=o}return{iconUrl:m,sx:u,sy:d,swidth:p,sheight:f,rotate:i,iconUrlIndex:r,iconSize:g}},$l=0,tc=1,ec=2,nc=3,ic=4,rc=5,oc=6,ac=7,sc=8,lc=9,cc=10,hc=11,uc=12,dc=13,pc=15,fc=16,mc=17,gc=function(t){if(t&&t.length>0){var e=t.split("|");return e.map((function(t){var e=t.split(","),n=e[nc];return""==n?null:e&&e.length>2?e:null})).filter((function(t){return null!=t}))}return[]},yc=(i("c889"),Object(Jn["g"])("/image/greendot/1@2x.png")),_c=(i("b54a"),Object(Jn["g"])("/image/greendot/2@2x.png")),vc=(i("9734"),Object(Jn["g"])("/image/greendot/3@2x.png")),bc=(i("b6d6"),Object(Jn["g"])("/image/greendot/4@2x.png")),wc=(i("9959"),Object(Jn["g"])("/image/greendot/6@2x.png")),xc=(i("980d"),Object(Jn["g"])("/image/greendot/1_1563.png"),i("287f"),Object(Jn["g"])("/image/greendot/2_1563.png"),i("db9e"),Object(Jn["g"])("/image/greendot/3_1563.png"),i("7f29"),Object(Jn["g"])("/image/greendot/4_1563.png"),i("9744"),Object(Jn["g"])("/image/greendot/5_1563.png"),i("c2ed")),Lc=i("e76a"),Mc=function(){return[yc,_c,vc,bc]},kc=function(t){if(-1==t)return wc;var e=Mc(),n=e.length-1,i=t<.5?0:Math.ceil(t);if(0==i)return e[0];var r=(i-1)%n,o=e[r+1];return o},Tc=function(t){if(-1==t)return 0;var e=Mc(),n=e.length-1,i=t<.5?0:Math.ceil(t);if(0==i)return 0;var r=(i-1)%n;return r},Ac=function(t){var n=t||{},i=n.fields;try{var r=i[fc],o=i[ac],a=i[oc];return 511==r?o:Object(wt["a"])({speed:a,course:o,heading:r})}catch(e){console.error(e)}return 0},Ec=function(t){var n=Pl();if(n)return Ac(t);var i=t||{},r=i.fields;try{var o=r[fc],a=r[ac],s=r[oc];return 1*s==0?0:Object(wt["a"])({speed:s,course:a,heading:o})}catch(e){}return 0},Sc=function(t){var e=t[$l],n=t[tc],i=t[ec],r=t[nc],o=t[ic],a=t[rc],s=t[oc],l=t[ac],c=t[sc],h=t[lc],u=t[cc],d=t[hc],p=t[uc],f=t[dc],m=t[pc],g=t[fc],y=t[mc];return{mmsi:e,lat:n,lon:i,name:r,length:o,width:a,speed:s,course:l,x:c,y:h,px:u,py:d,pz:p,flag:f,color:m,heading:g,icon:y}},Pc=function(t){window._hf_KVesselGrid_mode=t},Oc=function(){return Pc("1563")},Dc=function(){return Pc("")},Ic=function(){return Object(Jn["g"])("/image/greendot/2620.png")},Rc=(i("e6cf"),a["Class"].extend({render:function(t,e){this._renderer=t,this.options=e,t._initPath(this),t._updateStyle(this)},updateStyle:function(t,e){this.options=e,t._updateStyle(this)},_getPixelBounds:function(){for(var t=this._parts,e=a["bounds"]([]),n=0;n0){var t=this.options.feat.fields[0];if("xyz"==t)return this.options.feat.fields[3];if(jc==t)return this.options.feat}var e=zc.iconCache;if(this.options.icon){var n=this.options.icon.options.iconUrl,i=(this.options.icon.options.iconUrlIndex,e[n]);if(!i){var r=this.options.icon;i=r.createIcon()}return i}return null},_containsPoint:function(t){var e,n=this.options.icon;return e=n?this._pxBounds.contains(t):a["CircleMarker"].prototype._containsPoint.call(this,t),e}}),Bc="/image/greendot/",Zc=function(t){return Object(Cc["c"])([Bc,t,".png"].join(""))},Uc=Gc.extend({_getImage:function(){var t=Gc.prototype._getImage.call(this);if(this.options.feat&&this.options.feat.fields&&this.options.feat.fields.length>0){var e=this.options.feat.fields[mc];if(e){var n=Zc(e),i=zc.iconCache[n];if(i)return i;var r=Nc(n);return zc.iconCache[n]=r.createIcon(),zc.iconCache[n]}}return t}});a["Canvas"].KTile=a["Canvas"].extend({initialize:function(t,e,n){a["Canvas"].prototype.initialize.call(this,n),this._tileCoord=t,this._size=e,this._initContainer(),this._container.setAttribute("width",this._size.x),this._container.setAttribute("height",this._size.y),this._layers={},this._drawnLayers={},this._drawing=!0,n.interactive&&(this._container.style.pointerEvents="auto")},getCoord:function(){return this._tileCoord},getContainer:function(){return this._container},getOffset:function(){return this._tileCoord.scaleBy(this._size).subtract(this._map.getPixelOrigin())},onAdd:a["Util"].falseFn,addTo:function(t){this._map=t},removeFrom:function(){delete this._map},_onClick:function(t){var e=this.__npoint(t);if(e){var n,i;for(var r in this._layers)n=this._layers[r],n.options.interactive&&n._containsPoint(e)&&!this._map._draggableMoved(n)&&(i=n);i&&(a["DomEvent"].fakeStop(t),this._fireEvent([i],t))}},_onMouseMoveFake:function(t,e){e?this._handleMouseOut(t):this._onMouseMove(t)},__npoint:function(t){var e=this._map,n=e.getZoom(),i=this._tileCoord||{},r=i.x,o=i.y,s=i.z;if(s!=n)return null;var l,c=e.mouseEventToLayerPoint(t),h=e.layerPointToLatLng(c),u=e.wrapLatLng(h);this._tileCoord.bbox?l=this._tileCoord.bbox:(l=Object(Jn["n"])(r,o,s),this._tileCoord.bbox=l);var d=u||{},p=d.lat,f=d.lng;if(l.blat<=p&&p<=l.tlat&&l.llon<=f&&f<=l.rlon){var m=Object(Jn["b"])(u,s),g=a["point"](m);return g}return null},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this.__npoint(t);e&&this._handleMouseHover(t,e)}},_updateIcon:function(t){if(this._drawing){var e=t.options.icon,n=e.options,i=a["point"](n.iconSize),r=n.iconAnchor||i&&i.divideBy(2,!0),o=t._point.subtract(r),s=this._ctx,l=t._getImage();if("[object String]"===Object.prototype.toString.call(l)){s.save(),s.font="14px Verdana",s.fillStyle="red";var c=l.split(";");return c.forEach((function(t,e){var n=o.x,i=o.y+20*e;s.fillText(t,n,i),s.strokeRect(1,1,255,255)})),void s.restore()}var h=n.iconSize[0]||4,u=n.iconSize[1]||8,d=n.rotate||0,p=n||{},f=p.sx,m=p.sy,g=p.swidth,y=p.sheight;if(l.complete){var _=h/2,v=u/2,b=o.x+_,w=o.y+v;s.save(),s.translate(b,w),s.rotate(d*Math.PI/180),g>0&&y>0?s.drawImage(l,f,m,g,y,-_,-v,i.x,i.y):s.drawImage(l,-_,-v,i.x,i.y),s.restore()}else a["DomEvent"].on(l,"load",(function(){var t=h/2,e=u/2,n=o.x+t,r=o.y+e;s.save(),s.translate(n,r),s.rotate(d*Math.PI/180),g>0&&y>0?s.drawImage(l,f,m,g,y,-t,-e,i.x,i.y):s.drawImage(l,-t,-e,i.x,i.y),s.restore()}));this._drawnLayers[t._leaflet_id]=t}}}),a["canvas"].kTile=function(t,e,n){return new a["Canvas"].KTile(t,e,n)};var Yc=function(t){return[t.x,t.y,t.z].join("_")},Wc=function(t){var n=38,i=84,r=!1;try{var o=Xl(t);if(o)return o}catch(e){n=38,i=84,r=!1}return{imageW:n,imageH:i,useOriginImage:r}};a["KVesselGrid"]=a["GridLayer"].extend({options:{updateWhenZooming:!1,rendererFactory:a["canvas"].kTile,vectorTileLayerStyles:{}},initialize:function(t){a["setOptions"](this,t),this._kRedirectUrl=t.kRedirectUrl,this.isActive=!1,a["GridLayer"].prototype.initialize.apply(this,arguments),this._rendererCacheMapper={}},disable:function(){this.isActive=!1,this.setUrl("")},init:function(){this.disable()},enable:function(){this.isActive=!0,this.setUrl(this._kRedirectUrl)},setRequestParams:function(t){m["a"].log("setRequestParams",t),this._requestParams=t},createTile:function(t,e){var n=this.isActive,i=this.options.getFeatureId,r=this.getTileSize(),o=this.options.rendererFactory(t,r,this.options);this._rendererCacheMapper[Yc(t)]=o;var s=this._tileCoordsToBounds(t),l=this._getVectorTilePromise(t,s);return i&&(this._vectorTiles[this._tileCoordsToKey(t)]=o,o._features={}),l.then(function(r){for(var s=n?gc(r):[],l={features:s},c=1,h="vessel",u=this.options.vectorTileLayerStyles[h]||a["Path"].prototype.options,d=0;d1&&void 0!==arguments[1]?arguments[1]:"3031323358595a3435363738394142434445464748494a4b4c4d4e4f50515253",n=Vc.a.enc.Hex.parse(e),i=Vc.a.enc.Hex.parse("30313233343536373839414243444546"),r={iv:i,mode:Vc.a.mode.CBC,padding:Vc.a.pad.Pkcs7},o=Vc.a.AES.decrypt(Vc.a.format.Hex.parse(t),n,r);return Vc.a.enc.Utf8.stringify(o)},Jc=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0123XYZ456789ABCDEFGHIJKLMNOPQRSTUVW",n="HF,";if(t&&0==t.indexOf(n)){var i=t.substring(n.length),r=Hc(i);return r}var o,a,s,l,c,h=e.length,u=0;c=new Array(Math.floor(t.length/3)),o=c.length;for(var d=0;d0){var r=e.length,o=Xc%r;i=Object(Cc["a"])(t,n,e,o),Xc=Xc>=r?0:Xc+1}return i};a["KVesselGrid"].Fleet=a["KVesselGrid"].extend({options:{subdomains:"abc",fetchOptions:{}},initialize:function(t,e){this._url=t,a["KVesselGrid"].prototype.initialize.call(this,e)},setUrl:function(t,e){this._url=t;var n=this._requestParams;if(""!=t&&n){var i=[];for(var r in n)i.push(r+"="+n[r]);i=i.join("&"),this._url=t+"&"+i}return e||this.redraw(),this},_getSubdomain:a["TileLayer"].prototype._getSubdomain,_getVectorTilePromise:function(t,e){var n=t||{},i=n.x,r=n.y,o=n.z,s={s:this._getSubdomain(t),x:i,y:r,z:o},l=a["Util"].template(this._url,a["extend"](s,this.options));if(""==this._url)return new Promise((function(t){t("")}));var c=Object(Cc["f"])(),h=this.options||{},u=h.hosts||c;return l=Kc(l,u),fetch(l,this.options.fetchOptions).then(function(t){return t.text().then((function(t){return t&&t.length>0&&-1==t.indexOf("|")?Jc(t):t})).catch((function(t){throw console.error(t),t}))}.bind(this)).catch((function(t){throw console.error(t),t}))}}),a["KVesselGrid"].fleet=function(t,e){return new a["KVesselGrid"].Fleet(t,e)};var qc=0,$c=function(t,e){var n=Object(Cc["g"])(),i=t;if(e&&e.length>0){var r=e.length,o=qc%r;i=Object(Cc["a"])(t,n,e,o),qc=qc>=r?0:qc+1}return i};a["KVesselGrid"].Dotship=a["KVesselGrid"].extend({options:{subdomains:"abc",fetchOptions:{}},initialize:function(t,e){this._url=t,a["KVesselGrid"].prototype.initialize.call(this,e)},setUrl:function(t,e){this._url=t;var n=this._requestParams;if(""!=t&&n){var i=[];for(var r in n)i.push(r+"="+n[r]);i=i.join("&"),this._url=t+"&"+i}return e||this.redraw(),this},_getSubdomain:a["TileLayer"].prototype._getSubdomain,_getVectorTilePromise:function(t,e){var n=t||{},i=n.x,r=n.y,o=n.z,s={s:this._getSubdomain(t),x:i,y:r,z:o},l=a["Util"].template(this._url,a["extend"](s,this.options));if(""==this._url)return new Promise((function(t){t("")}));var c=Object(Cc["f"])(),h=this.options||{},u=h.hosts||c;return l=$c(l,u),fetch(l,this.options.fetchOptions).then(function(t){return t.text().then((function(t){return t&&t.length>0&&-1==t.indexOf("|")?Jc(t):t})).catch((function(t){throw console.error(t),t}))}.bind(this)).catch((function(t){throw console.error(t),t}))}}),a["KVesselGrid"].dotship=function(t,e){return new a["KVesselGrid"].Dotship(t,e)},a["KVesselGrid"].Greendot=a["KVesselGrid"].Dotship.extend({_generateIcon:function(t){var e=xc,n=3,i=3,r=a["icon"]({iconUrl:e,iconUrlIndex:-2,iconSize:[n,i],rotate:t.fields[ac]});return r}}),a["KVesselGrid"].greendot=function(t,e){return new a["KVesselGrid"].Greendot(t,e)},a["KVesselGrid"].Arrow2=a["KVesselGrid"].Dotship.extend({_generateIcon:function(t,e){var n=Lc,i=12,r=12,o=a["icon"]({iconUrl:n,iconUrlIndex:-2,iconSize:[i,r],rotate:t.fields[ac]});return o}}),a["KVesselGrid"].arrow2=function(t,e){return new a["KVesselGrid"].Arrow2(t,e)},a["KVesselGrid"].XYZ=a["KVesselGrid"].extend({options:{subdomains:"abc",fetchOptions:{}},initialize:function(t,e){this._url=t,a["KVesselGrid"].prototype.initialize.call(this,e)},setUrl:function(t,e){this._url=t;var n=this._requestParams;if(""!=t&&n){var i=[];for(var r in n)i.push(r+"="+n[r]);i=i.join("&"),this._url=t+"&"+i}return e||this.redraw(),this},_getSubdomain:a["TileLayer"].prototype._getSubdomain,_getVectorTilePromise:function(t,e){var n=t||{},i=n.x,r=n.y,o=n.z,a="x=".concat(i,"&y=").concat(r,"&z=").concat(o),s=e||{},l=s._northEast,c=s._southWest,h={lat:l.lat.toFixed(5),lng:l.lng.toFixed(5)},u={lat:c.lat.toFixed(5),lng:c.lng.toFixed(5)},d=[a,"northEast:"+h.lat+" "+h.lng,"southWest:"+u.lat+" "+u.lng].join(";"),p=["xyz",0,0,d,0,0,0,0,10,50].join(",");return new Promise((function(t){t(p)}))}}),a["KVesselGrid"].xyz=function(t,e){return new a["KVesselGrid"].XYZ(t,e)},a["Canvas"].KWatermarkTile=a["Canvas"].KTile.extend({_updateIcon:function(t){if(this._drawing){var e=t.options.icon,n=e.options,i=a["point"](n.iconSize),r=n.iconAnchor||i&&i.divideBy(2,!0),o=(t._point.subtract(r),this._ctx),s=t._getImage();if("[object Object]"===Object.prototype.toString.call(s)){o.save();var l=Sc(s.fields),c=l.name,h=l.course,u=l.x,d=l.y,p=l.speed,f=l.lon,m=l.lat,g=l.length;return o.font=m+"px Verdana",o.fillStyle=f,o.globalAlpha=p,o.translate(u,d),o.rotate(h*Math.PI/180),o.fillText(c,-g/2,0),void o.restore()}this._drawnLayers[t._leaflet_id]=t}}}),a["canvas"].kWatermarkTile=function(t,e,n){return new a["Canvas"].KWatermarkTile(t,e,n)};var th=function(t){var e=t||{},n=e.watermark,i=void 0===n?"":n,r=e.color,o=void 0===r?"gray":r,a=e.alpha,s=void 0===a?.5:a,l=e.course,c=void 0===l?45:l,h=e.fontSize,u=void 0===h?14:h,d=e.x,p=void 0===d?125:d,f=e.y,m=void 0===f?125:f,g=-1*c,y=14,_=y*i.length/2;return[jc,u,o,i,_,y,s,g,p,m].join(",")};a["KVesselGrid"].Watermark=a["KVesselGrid"].XYZ.extend({options:{rendererFactory:a["canvas"].kWatermarkTile,vectorTileLayerStyles:{}},setRequestParams:function(t){this._requestParams=t},_getVectorTilePromise:function(t,e){var n=th(this._requestParams);return new Promise((function(t){t(n)}))}}),a["KVesselGrid"].watermark=function(t,e){return new a["KVesselGrid"].Watermark(t,e)};var eh=i("f4e2"),nh={FLEET:"display.vessel.fleet",VESSEL:"display.vessel.world",VESSEL2:"display.vessel.world2",VESSEL3:"display.vessel.world3",VESSEL4:"display.vessel.world4",VESSEL5:"display.vessel.world5",VESSEL6:"display.vessel.world6",WATERMARK:"display.watermark"},ih=function(){return!(a["LANG"]&&"en-US"==a["LANG"])},rh=function(t,e){return t&&""!=t?t:e},oh=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",i=[];return i.push(""),t.map((function(t,r){var o=rh(t[0],n),a=rh(t[1],n);0==r?i.push(""):i.push(""),i.push(""),i.push(""),i.push("")})),i.push("
"),i.push(o),i.push(""),i.push(a),i.push("
"),i.join("")},ah=a["Icon"].extend({initialize:function(t,e){a["Icon"].prototype.initialize.apply(this,[e])},createIcon:function(){return this.createIcon2()},createIcon2:function(){var t=document.createElement("img"),e=16;return t.style.width=e+"px",t.style.height=e+"px",e=-1*e/2,t.style.top=e+"px",t.style.left=e+"px",t.style.position="relative",t.src=eh,t},createShadow:function(){return null}}),sh=function(){return new ah({})},lh=function(t){var e=ih(),n=Sc(t.fields),i=n||{},r=i.name,o=i.mmsi,a=i.course,s=i.speed,l=i.lat,c=i.lon,h=(i.px,i.py,i.pz,Object(Jn["c"])({lat:l,lon:c,lng:c})),u=[];return e?(r&&u.push(["船名:",r]),o&&u.push(["MMSI:",o]),a&&u.push(["航迹向:",a]),s&&u.push(["航速:",s+" 节"]),u.push(["纬度:",h[0]]),u.push(["经度:",h[1]])):(r&&u.push(["Name:",r]),o&&u.push(["MMSI:",o]),a&&u.push(["COG:",a]),s&&u.push(["Speed:",s+" kt"]),u.push(["Lat:",h[0]]),u.push(["Lng:",h[1]])),oh(u)},ch=vh,hh={id:1,key:nh.VESSEL2,i18n:{en:"XYZ 网格显示",cn:"xyz demo"},maxZoom:18},uh=(nh.VESSEL3,nh.VESSEL4,{id:1,key:nh.FLEET,i18n:{en:"Fleet",cn:"我的船队"},maxZoom:18}),dh={id:1,key:nh.VESSEL5,i18n:{en:"Vessels (Triangle)",cn:"全部船舶
实心"},maxZoom:18},ph={id:1,key:nh.VESSEL6,i18n:{en:"Vessels (Hollow)",cn:"全部船舶
空心"},maxZoom:18},fh={id:1,key:nh.WATERMARK,i18n:{en:"Watermark",cn:"水印"},maxZoom:18},mh=function(t){var e=t||{},n=e.urls,i=e.map;n||(n=Sl());var r=i,s=(n.vessel2,n.vessel3),l=n.fleet,c=null,h=function(){c&&(r.removeLayer(c),c=null)},u=function(t,e,n){return t(e,n).on("mouseover",(function(t){if(t.layer&&t.layer.feat){var e=t.layer.feat,n=Sc(e.fields);h();var o=sh(),s=t.layerPoint,l=a["point"](s.x,s.y),u=r.layerPointToLatLng(l),d=u.lng,p=Object(Jn["k"])(d),f=d-p,g={lat:1*n.lat,lng:1*n.lon+f};m["a"].log("latlng",u,g,f,n,p),u=g;var y=lh(e);c=a["marker"]([u.lat,u.lng],{icon:o}),c.on("click",(function(t){n.an=n.flag||"";var e={};e[pa]=n,t.originalEvent=e,i.fire(pa,t)})),window&&window._hf_is_mobile?c.addTo(r):c.bindTooltip(y).addTo(r).openTooltip()}})).on("mouseout",(function(t){h()}))},d={maxZoom:10,zIndex:ch+3,kRedirectUrl:s,interactive:!0},p=u(a["KVesselGrid"].dotship,s,d),f={maxZoom:10,zIndex:ch+4,kRedirectUrl:s,interactive:!0},g=u(a["KVesselGrid"].dotship,s,f),y={maxZoom:18,zIndex:ch+4,kRedirectUrl:"",interactive:!0},_=u(a["KVesselGrid"].xyz,"",y),v={maxZoom:18,zIndex:ch+4,kRedirectUrl:"",interactive:!0},b=u(a["KVesselGrid"].watermark,"",v),w={maxZoom:10,zIndex:ch+3,kRedirectUrl:l,interactive:!0},x=u(a["KVesselGrid"].dotship,s,w);return[Object(o["a"])(Object(o["a"])({},hh),{},{layer:_}),Object(o["a"])(Object(o["a"])({},dh),{},{layer:p}),Object(o["a"])(Object(o["a"])({},ph),{},{layer:g}),Object(o["a"])(Object(o["a"])({},fh),{},{layer:b}),Object(o["a"])(Object(o["a"])({},uh),{},{layer:x})]},gh=1e4,yh=0,_h=gh+1e3,vh=gh+200,bh=gh+300,wh=gh+400,xh=gh,Lh=Object(hl["a"])(Object(hl["a"])(Object(hl["a"])(Object(hl["a"])(Object(hl["a"])(Object(hl["a"])({},ul.INFO_GREENPOINT,_h),nh.VESSEL5,vh),nh.VESSEL6,vh+1),nh.FLEET,vh+2),nh.VESSEL2,bh),nh.WATERMARK,wh),Mh=function(t){var e=t||{},n=e.key;return Lh.hasOwnProperty(n)?Lh[n]:-1},kh=function(t){return yh+=1,yh%=100,gh+100+yh},Th=i("bc3a"),Ah=i.n(Th),Eh=function(t,e){var n=t,i="https://ttse.hifleet.com/ukhomap/getUserLicenceStatus",r=!1;Ah.a.get(i).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.data||{},o=i.hasAVCSO;if(r=1==o,!r){var a=rl["b"]();if(a=a.filter((function(t){return t.key==rl["a"].MAP_NAUTICAL})),a.length>0){var s=a[0];n=s.url}}e(n,r)})).catch((function(){e(n,r)}))},Sh="https://ttse.hifleet.com/ukhomap/ukhoMapWms",Ph=ie["i"](),Oh=Ph?"&usertoken=".concat(Ph):"",Dh="&_v=5.3.491",Ih=["https://ttse.hifleet.com/hifleetapi/getNauticalChart.do?z={z}&x={x}&y={y}"+Oh,Dh].join(""),Rh=!1,jh=function(){return Rh},Ch=function(t){return Rh=t},Nh=function(t){var e=t||{},n=e.map,i=n;function r(t,e){if(ll()(t))return t.concat(e)}var s,l,c=function(t,e){return al()(t,e,r)},h=function(t){var e={};return t.forEach((function(t){e=c(e,t)})),e},u=function(){return cl},d=function(t){var e=t||{},n=e.url,i=void 0===n?Sh:n,r=i;return a["tileLayer"].wms(r,{version:"1.3.0",transparent:!0,format:"image/png",layers:0,zIndex:xh})},p=function(t){Object(ie["o"])()&&n.fire(ma,t)},f=function(){l||(l=d({url:Ih}),i.hasLayer(l)||i.addLayer(l))},m=function(){l&&(i.hasLayer(l)&&i.removeLayer(l),l=null)},g=function(t){var e=t||{},n=e.url,r=e.params,o=void 0===r?{}:r;s||(s=d(t)),i.hasLayer(s)||(i.addLayer(s),i.on("contextmenu",p)),n&&s.setUrl(n),s.setParams(o)},y=function(t){var e=t||{};e.url,e.params;Eh(Sh,(function(e,n){f(),n&&g(Object(o["a"])(Object(o["a"])({},t||{}),{},{url:e}))}))},_=function(t){var e=t||{},n=e.visible,r=void 0!==n&&n;Ch(!!r),r?y(t):(s&&i.hasLayer(s)&&i.removeLayer(s),i.off("contextmenu",p),m())};return{getJSON:u,paramsListToOne:h,display:_}},zh=(i("e260"),i("c1f9"),i("3ca3"),i("ddb0"),i("9861"),i("88a7"),i("271a"),i("5494"),a["Browser"]),Gh=a["Util"],Bh=!1,Zh=function(){Bh=!0,m["a"].log("n2472 _n2472requireTCaptcha",Bh)},Uh=function(){return{_tileOnLoad:function(t,e){var n=Object(Vn["a"])();Object(Vn["b"])();n&&this._tileOnLoad2472(e),zh.ielt9?setTimeout(Gh.bind(t,this,null,e),0):t(null,e)},_tileOnLoad2472:function(t){if(t)try{var n=t.naturalWidth;if(n>0&&257==n){var i=Object(Vn["b"])();if(i)return void this._n247202_refresh();Zh(),this._n2472_refresh_url()}}catch(e){console.error(e)}},_n2472_refresh_url:function(){var t="__r",n=Math.random(),i=this._url,r={},o="";try{var a=i;if(i&&-1!=i.indexOf("?")){var s=i.split("?");i=s[0],a=s[1]}var l=new URLSearchParams(a);for(var c in r=Object.fromEntries(l),r)c!=t&&(o+="".concat(c,"=").concat(r[c],"&"));o+=[t,n].join("="),this._url=i+"?"+o}catch(e){}},_n247202_refresh:function(){var t=this;if(this._n2472_refresh_url(),window&&window.___hf_open_tcaptcha){var e=function(){t.redraw()},n=function(){},i={authItemCode:"cmap_annually_update"};window.___hf_open_tcaptcha(i,e,n)}}}},Yh=0,Wh=0,Fh=a["TileLayer"].include(Uh()),Vh=Fh.extend({_kgetTileUrl:function(t){var e=t,n=this.options||{},i=Object(Cc["f"])(),r=Object(Cc["g"])(),o=n.hosts||i;if(o&&o.length>0){var a=o.length,s=Yh%a;e=Object(Cc["a"])(t,r,o,s),Yh=Yh>=a?0:Yh+1}return e},_useMulti:function(t){return!(!t||-1==t.indexOf("getS101Chart.do"))||!(!t||-1==t.indexOf("getNauticalChart.do"))},getTileUrl1:function(t){var e=a["TileLayer"].prototype.getTileUrl.call(this,t);return this._useMulti(e)&&(e=this._kgetTileUrl(e)),e},__append:function(t){var e=this.__findVal();return e&&(t+="&mtk="+e),t},__findVal:function(){try{return localStorage.getItem("mtk")}catch(e){}return null},getTileUrl:function(t){var e=this._url;return e&&-1!=e.indexOf("/hifleetapi")?this.getTileUrl1(t):e&&-1!=e.indexOf("api.hifleet.com")?a["TileLayer"].prototype.getTileUrl.call(this,t):this.getTileUrl2(t)},getTileUrl2:function(t){var e=a["TileLayer"].prototype.getTileUrl.call(this,t),n=e,i=Object(Cc["d"])(),r=Object(Cc["e"])();if(i&&i.length>0){var o=i.length,s=Wh%o;n=Object(Cc["a"])(e,r,i,s),Wh=Wh>=o?0:Wh+1}return n}});function Qh(t,e){return new Vh(t,e)}var Hh=i("078d"),Jh=1,Xh=0,Kh=function(){var t=ie["i"]();return{id:6,key:rl["a"].MAP_SDK_NAUTICAL,url:"https://api.hifleet.com/nauticalmap/token?z={z}&x={x}&y={y}&usertoken=".concat(t),i18n:{en:"SDK Nautical",cn:"SDK Nautical"},maxZoom:18,thumb:i("3f95"),oosThumb:"https://static.hifleet.com/gallery/image/small/nautical2.png"}},qh=function(t){var e,n,i=t||{},r=i.map,s=(i.el,i.vue,Nh(t)),l=r,c=Object(rl["b"])(),h=Object(rl["b"])(),u=function(){var t=h.filter((function(t){return t.default}));return t.length>0?t[0].key:""},d=u(),p=h[0],f=p,g="cn",y=function(t,n,i){e&&r.hasLayer(e)&&r.removeLayer(e),e=a["tileLayer"].wms(i.url,i.options),e.bringToBack(),e.addTo(r),m["a"].log("_refreshCurrentLayer_by_remote",i)},_=function(t){var e=t&&t.key&&-1!=t.key.indexOf(".remote");return e},v=function(t,n,i){return _(i)?y(t,n,i):e?(m["a"].log("_updateCurrentLayer setUrl",i),void e.setUrl(t)):(e=Qh(t,Object(o["a"])({zIndex:2},n)),e.setZIndex(2),e.addTo(r),void m["a"].log("2162 _updateCurrentLayer build",i))},b=function(t,e){var i=t.url,o=t.options,a=void 0===o?{}:o,s=(t.key,e||{}),l=s.lang,c=void 0===l?g:l;!_(t)&&Ss["c"](t);var h=a[c]||"";g=c;var u=Hh["b"]();u&&(h=a[u]||"",g=u);var d=i;h&&""!=h&&(d=h),n&&r.hasLayer(n)&&r.removeLayer(n),v(d,a,t)},w=function(t){var e=t||{},n=e.key,i=void 0===n?d:n,r=h.filter((function(t){return t.key==i})),o=r.length>0?r[0]:p;f=o,l.setMaxZoom(o.maxZoom||18),i==rl["a"].MAP_UKHO?(k(),s.display({visible:!0})):(s.display({visible:!1}),T(),b(o,t))},x=function(t){var e=t||{},n=e.key,i=void 0===n?d:n,r=(e.lang,Kh()),o=h.concat([r]),a=o.filter((function(t){return t.key==i})),c=a.length>0?a[0]:p;f=c,l.setMaxZoom(c.maxZoom||18),i==rl["a"].MAP_UKHO?(k(),s.display({visible:!0})):(s.display({visible:!1}),T(),b(c,t))},L=function(t){Gl(t);var e=t||{},n=e.is_sdk,i=void 0!==n&&n;i?x(t):w(t)},M=function(t){f&&b(f,t)},k=function(){n&&r.hasLayer(n)&&r.removeLayer(n),e&&r.hasLayer(e)&&r.removeLayer(e),Xh},T=function(){n&&r.addLayer(n),e&&r.addLayer(e),Jh},A=function(){return s},E=function(){var t=e._url,n=e.options,i={};e&&r.hasLayer(e)&&r.removeLayer(e),e=null,v(t,n,i)};return{mapListUpdate:function(t){return h=c.concat(t)},mapList:function(){return h},mapChange:L,mapChangeLanguange:M,mapClose:k,mapOpen:T,mapRefresh:E,getUkhoModule:A,setLanguageToEN:function(){return a["LANG"]="en-US"},setLanguageToCN:function(){return a["LANG"]="zh-CN"}}},$h={create:qh},tu=function(){var t=ie["i"](),e="http://beta.hifleet.com/geoserver/trajectory/wms?at=".concat(t),n=[{id:3,key:"display.complex.bitumen",options:{type:"btumtrajline"},i18n:{cn:"沥青运输船",en:"Bitumen carriers"},auth:"traffic_bitumen"},{id:11,key:"display.complex.babycapetrajline",options:{type:"babycapetrajline"},i18n:{cn:"Babycapetrajline",en:"Babycapetrajline"},auth:"traffic_babycape"},{id:12,key:"display.complex.vloctrajline",options:{type:"vloctrajline"},i18n:{cn:"Vloctrajline",en:"Vloctrajline"},auth:"traffic_vloc"},{id:13,key:"display.complex.capetrajline",options:{type:"capetrajline"},i18n:{cn:"Capetrajline",en:"Capetrajline"},auth:"traffic_cape"}],i=n.map((function(t){return Object(o["a"])(Object(o["a"])({},t),{},{url:e,options:{layers:"trajectory:"+t.options.type,TILED:!0,format:"image/png",transparent:!0,zIndex:3}})}));return i},eu=function(t){var e,n=t||{},i=n.map,r=(n.el,n.vue,i),o=tu(),s="complex.null",l=function(t,n){var i=t.url,o=t.options,s=void 0===o?{}:o;if(!e)return e=a["tileLayer"].wms(i,s).addTo(r),void e.bringToFront();e.bringToFront(),e.setUrl(i),e.setParams(s)},c=function(t){var n=t||{},i=n.key,a=void 0===i?s:i;if(a!=s){var c=o.filter((function(t){return t.key==a})),h=c.length>0?c[0]:null;h&&l(h,t)}else e&&(r.removeLayer(e),e=null)};return{complexList:function(){return o},complexChange:c}},nu={create:eu},iu=(i("c7cd"),i("1745"),a["LayerGroup"].extend({options:{interval:20,showOriginLabel:!0,redraw:"move",hidden:!1,zoomIntervals:[]},lineStyle:{stroke:!0,color:"#111",opacity:.6,weight:1,interactive:!1,clickable:!1},initialize:function(t){a["LayerGroup"].prototype.initialize.call(this),a["Util"].setOptions(this,t)},onAdd:function(t){this._map=t;this.redraw();this._map.on("viewreset "+this.options.redraw,this.redraw,this),this.eachLayer(t.addLayer,t)},onRemove:function(t){t.off("viewreset "+this.options.redraw,this.redraw,this),this.eachLayer(this.removeLayer,this)},hide:function(){this.options.hidden=!0,this.redraw()},show:function(){this.options.hidden=!1,this.redraw()},redraw:function(){if(this._bounds=this._map.getBounds().pad(.01),this.clearLayers(),!this.options.hidden){for(var t=this._map.getZoom(),e=0;e=this.options.zoomIntervals[e].start&&t<=this.options.zoomIntervals[e].end){this.options.interval=this.options.zoomIntervals[e].interval,this.options.fixed=void 0==this.options.zoomIntervals[e].fixed?0:this.options.zoomIntervals[e].fixed;break}this.constructLines(this.getMins(),this.getLineCounts()),this.options.showOriginLabel&&this.addLayer(this.addOriginLabel())}return this},getLineCounts:function(){return{x:Math.ceil((this._bounds.getEast()-this._bounds.getWest())/this.options.interval),y:Math.ceil((this._bounds.getNorth()-this._bounds.getSouth())/this.options.interval)}},getMins:function(){var t=this.options.interval;return{x:Math.floor(this._bounds.getWest()/t)*t,y:Math.floor(this._bounds.getSouth()/t)*t}},constructLines:function(t,e){for(var n=new Array(e.x+e.y),i=new Array(e.x+e.y),r=0;r<=e.x;r++){var o=t.x+r*this.options.interval;n[r]=this.buildXLine(o),i[r]=this.buildLabel("gridlabel-horiz",o)}for(var a=0;a<=e.y;a++){var s=t.y+a*this.options.interval;n[a+r]=this.buildYLine(s),i[a+r]=this.buildLabel("gridlabel-vert",s)}n.forEach(this.addLayer,this),i.forEach(this.addLayer,this)},buildXLine:function(t){var e=new a["LatLng"](this._bounds.getSouth(),t),n=new a["LatLng"](this._bounds.getNorth(),t);return new a["Polyline"]([e,n],this.lineStyle)},buildYLine:function(t){var e=new a["LatLng"](t,this._bounds.getWest()),n=new a["LatLng"](t,this._bounds.getEast());return new a["Polyline"]([e,n],this.lineStyle)},buildLabel:function(t,e){var n,i,r,o=this._map.getBounds().pad(-1e-5),s=o.getEast()-o.getWest(),l=o.getNorth()-o.getSouth();l/=2,s/=2;var c=this.options.fixed||0;return"gridlabel-horiz"==t?(n=new a["LatLng"](o.getNorth()-l,e),i=this._map.wrapLatLng(n),r=i.lng,r=r.toFixed(c),0==r?r=0:r>0?r+="°E":(r*=-1,r+="°W")):(n=new a["LatLng"](e,o.getWest()+s),i=this._map.wrapLatLng(n),r=i.lat,r=r.toFixed(c),0==r?r=0:r>0?r+="°N":(r*=-1,r+="°S")),a["marker"](n,{interactive:!1,clickable:!1,icon:a["divIcon"]({iconSize:[0,0],className:"leaflet-grid-label",html:'
'+r+"
"})})},addOriginLabel:function(){return a["marker"]([0,0],{interactive:!1,clickable:!1,icon:a["divIcon"]({iconSize:[0,0],className:"leaflet-grid-label",html:'
(0,0)
'})})}})),ru=function(t){return new iu(t)},ou={AREA_UKHO_OVERVIEW:"display.area.ukho.overview",AREA_UKHO_GENERAL:"display.area.ukho.general",AREA_UKHO_COASTAL:"display.area.ukho.coastal",AREA_UKHO_APPROACH:"display.area.ukho.approach",AREA_UKHO_HARBOUR:"display.area.ukho.harbour",AREA_UKHO_BERTHING:"display.area.ukho.berthing",AREA_ECA:"display.area.eca",AREA_HRA:"display.area.hra",AREA_JWC:"display.area.jwc",AREA_VRA:"display.area.vra",AREA_SPECIAL_WAR_ZONE:"display.area.specialWarZone",AREA_CJR_FISHING_AREA:"display.area.cjrFishingArea",AREA_PROTECTION_ZONE:"display.area.protectionZone",AREA_SEAS_ZONE:"display.area.seasZone",AREA_BASE_LINE_ZONE:"display.area.baseLineZone",AREA_GRATICULE:"display.area.graticule",AREA_TIME_ZONE:"display.area.timezone",MARPOL_GARBAGE:"display.marpol.garbage",MARPOL_OIL:"display.marpol.oil",MARPOL_OIL_GARBAGE:"display.marpol.oil.garbage",MARPOL_OIL_GARBAGE_NOXIOUS_LIQUIDS:"display.marpol.oil.garbage.noxious.liquids",HANGLU_ZHEJIANG:"display.hanglu.zhejiang",AREA_HUANGMAO_CHANGJIANG:"display.area.huangmao.changjiang"},au=function(){var t=ie["i"](),e=[{id:10,key:ou.AREA_UKHO_OVERVIEW,url:"https://tile.hifleet.com/geoserver/UKHO/wms",options:{format:"image/png",version:"1.1.1",tiled:!0,transparent:!0,layers:"UKHO:overview",zIndex:101},i18n:{en:"Overview",cn:"Overview"}},{id:11,key:ou.AREA_UKHO_GENERAL,url:"https://tile.hifleet.com/geoserver/UKHO/wms",options:{format:"image/png",version:"1.1.1",tiled:!0,transparent:!0,layers:"UKHO:general",zIndex:102},i18n:{en:"General",cn:"General"}},{id:12,key:ou.AREA_UKHO_COASTAL,url:"https://tile.hifleet.com/geoserver/UKHO/wms",options:{format:"image/png",version:"1.1.1",tiled:!0,transparent:!0,layers:"UKHO:coastal",zIndex:103},i18n:{en:"Coastal",cn:"Coastal"}},{id:13,key:ou.AREA_UKHO_APPROACH,url:"https://tile.hifleet.com/geoserver/UKHO/wms",options:{format:"image/png",version:"1.1.1",tiled:!0,transparent:!0,layers:"UKHO:approach",zIndex:104},i18n:{en:"Approach",cn:"Approach"}},{id:14,key:ou.AREA_UKHO_HARBOUR,url:"https://tile.hifleet.com/geoserver/UKHO/wms",options:{format:"image/png",version:"1.1.1",tiled:!0,transparent:!0,layers:"UKHO:harbour",zIndex:105},i18n:{en:"Harbour",cn:"Harbour"}},{id:15,key:ou.AREA_UKHO_BERTHING,url:"https://tile.hifleet.com/geoserver/UKHO/wms",options:{format:"image/png",version:"1.1.1",tiled:!0,transparent:!0,layers:"UKHO:berthing",zIndex:106},i18n:{en:"Berthing",cn:"Berthing"}}];return e.map((function(e,n){return Object(o["a"])(Object(o["a"])({},e),{},{id:n+30,url:[e.url,"at="+t].join("?")})}))},su=function(){var t=ie["i"](),e=ru({interval:20,showOriginLabel:!1,redraw:"move",zoomIntervals:[{interval:.003,start:18,end:18,fixed:3},{interval:.005,start:17,end:17,fixed:3},{interval:.01,start:15,end:16,fixed:2},{interval:.02,start:14,end:14,fixed:2},{interval:.03,start:13,end:13,fixed:2},{interval:.05,start:12,end:12,fixed:2},{interval:.1,start:11,end:11,fixed:1},{interval:.3,start:10,end:10,fixed:1},{interval:.5,start:9,end:9,fixed:1},{interval:1,start:7,end:8,fixed:0},{interval:5,start:5,end:6,fixed:0},{interval:20,start:0,end:4,fixed:0}]}),n=[{key:ou.AREA_ECA,url:"https://tile.hifleet.com/geoserver/boundaries/wms",options:{layers:"boundaries:cleaned-eca",tiled:!0,format:"image/png",version:"1.1.1",transparent:!0},adjust:[{matchBackground:"display.map.satellite",matchLanguage:"cn",url:"https://tile.hifleet.com/geoserver/boundaries/wms",options:{layers:"boundaries:cleaned-eca-gcj02",tiled:!0,format:"image/png",version:"1.1.1",transparent:!0}},{matchBackground:"display.map.global",matchLanguage:"cn",url:"https://tile.hifleet.com/geoserver/boundaries/wms",options:{layers:"boundaries:cleaned-eca-gcj02",tiled:!0,format:"image/png",version:"1.1.1",transparent:!0}}],i18n:{en:"ECA (0.1%)",cn:"ECA (0.1%)"},auth:"eca"},{key:ou.AREA_JWC,url:"https://tile.hifleet.com/geoserver/callport_in_2017/wms",options:{layers:"callport_in_2017:JWC",tiled:!0,format:"image/png",transparent:!0,version:"1.1.1"},i18n:{en:"JWC",cn:"JWC"},auth:"eca"},{key:ou.AREA_VRA,url:"https://tile.hifleet.com/geoserver/callport_in_2017/wms",options:{layers:"callport_in_2017:vra",tiled:!0,format:"image/png",transparent:!0,version:"1.1.1"},locate_z_lon_lat:"3,61.84990672023696,8.04153212573338",i18n:{en:"VRA",cn:"VRA"},auth:"eca"},{key:ou.AREA_CJR_FISHING_AREA,url:"https://tile.hifleet.com/geoserver/callport_in_2017/wms",options:{layers:"callport_in_2017:中日韩协作渔区",TILED:!0,format:"image/png",transparent:!0},locate_z_lon_lat:"5,125.69929368724127,29.047522889724803",i18n:{en:"Fishing agreement waters",cn:"渔业协定水域"}},{key:ou.AREA_PROTECTION_ZONE,url:"https://tile.hifleet.com/geoserver/cite/wms",options:{layers:"cite:2013_02_WorldHeritageMarineProgramme",TILED:!0,format:"image/png",transparent:!0},i18n:{en:"MPA",cn:"海洋保护区"},auth:"eca"},{key:ou.AREA_SEAS_ZONE,url:"https://tile.hifleet.com/geoserver/callport_in_2017/wms",options:{layers:"callport_in_2017:worldsea_cleaned",TILED:!0,format:"image/png",transparent:!0},i18n:{en:"Seas",cn:"海区"},auth:"seas"},{key:ou.AREA_BASE_LINE_ZONE,url:"https://tile.hifleet.com/geoserver/boundaries/wms",options:{layers:"boundaries:eez12china",TILED:!0,format:"image/png",transparent:!0},i18n:{en:"12nm territorial sea",cn:"12海里基线"},auth:"territorial_sea"},{key:ou.AREA_GRATICULE,url:"https://tile.hifleet.com/geoserver/boundaries/wms",options:{layers:"boundaries:eez12china",TILED:!0,format:"image/png",transparent:!0},layer:e,i18n:{en:"Graticules",cn:"经纬网"},auth:"graticules"},{key:ou.AREA_TIME_ZONE,url:"https://alpha.hifleet.com/geojson/timezone.json",options:null,i18n:{en:"TimeZone",cn:"时区"},auth:"timezone"},{key:ou.MARPOL_OIL,url:"https://tile.hifleet.com/geoserver/boundaries/wms",options:{tiled:!0,format:"image/png",layers:"boundaries:oil",transparent:!0},i18n:{en:"Oil",cn:"Oil"}},{key:ou.MARPOL_GARBAGE,url:"https://tile.hifleet.com/geoserver/boundaries/wms",options:{tiled:!0,format:"image/png",layers:"boundaries:garbage",transparent:!0},i18n:{en:"Garbage",cn:"Garbage"}},{key:ou.MARPOL_OIL_GARBAGE,url:"https://tile.hifleet.com/geoserver/boundaries/wms",options:{tiled:!0,format:"image/png",layers:"boundaries:oil_garbage",transparent:!0},i18n:{en:"Oil Garbage",cn:"Oil Garbage"}},{key:ou.MARPOL_OIL_GARBAGE_NOXIOUS_LIQUIDS,url:"https://tile.hifleet.com/geoserver/boundaries/wms",options:{tiled:!0,format:"image/png",layers:"boundaries:oil_garbage_noxious_liquids",transparent:!0},i18n:{en:"Oil Garbage Noxious Liquids",cn:"Oil Garbage Noxious Liquids"}},{key:ou.HANGLU_ZHEJIANG,url:"https://tile.hifleet.com/geoserver/sansha/wms",options:{tiled:!0,format:"image/png",layers:"sansha:hanglu",transparent:!0},locate_z_lon_lat:"7,122.18582990365593,28.93582081918992",i18n:{en:"Zhejiang route",cn:"浙江公共航路"},auth:"zj_seaway"},{key:ou.AREA_HUANGMAO_CHANGJIANG,url:"https://tile.hifleet.com/hangdao/{z}/{x}/{y}.png",options:{},locate_z_lon_lat:"7,118.24678231182439,31.29291559019287",i18n:{en:"Chang Jiang Nautical Map",cn:"长江航道图"},auth:"hangdao_map"}].map((function(t,e){return t.id=e+1,t})),i=au();return n=n.concat(i),n.map((function(e,n){var i=e.url;return t&&""!=t&&(i=[e.url,"usertoken="+t].join("?")),Object(o["a"])(Object(o["a"])({},e),{},{url:i})}))},lu=i("c3bd"),cu=function(t){var e,n,i,r,o,s=t||{},l=s.map,c=l,h=ie["g"]("/hifleetapi/serverTimestamp.do"),u=ie["g"]("/geojson/timezone.json"),d=function(){},p=function(){};function f(t){var e=t.target;m["a"].log(t),e.setStyle({weight:5,color:"#666",dashArray:"",fillOpacity:.7}),a["Browser"].ie||a["Browser"].opera||a["Browser"].edge||e.bringToFront(),d()}function g(t){n.resetStyle(t.target),p()}function y(t){return"#fab1a0"}function _(t){return{fillColor:y(t.properties.density),weight:2,opacity:1,color:"white",dashArray:"5",fillOpacity:.3}}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=null;return function(){clearTimeout(n),n=setTimeout(t,e)}}var b=function(t){var e=t.target,n=t.latlng;try{var i=e.feature.properties;x(),o&&o(),r?L(r,i,n):(w(i,n),o=v(w,1e3))}catch(t){console.error(t)}m["a"].log("timezone mouseMove",t,e.feature.properties)},w=function(t,e){Object(lu["a"])(h).then((function(n){var i=n||{},o=i.data,a=i.status;1*a==1&&(r?r=oe()(o):(r=oe()(o),L(r,t,e)))}))},x=function(){i||(i=a["popup"]({closeButton:!1}))},L=function(t,e,n){var r=e.time_zone,o=e.name,a=t.clone().subtract(8,"h").add(1*o,"h").format("YYYY-MM-DD HH:mm");x(),i.setLatLng(n),i.setContent([r,a].join("
")).openOn(c)},M=function(){function t(t,e){e.on({mousemove:b,mouseover:f,mouseout:g})}T(),n=a["geoJson"](e,{style:_,onEachFeature:t}).addTo(l)},k=function(){e?n||M():Object(lu["a"])(u,{}).then((function(t){t&&(e=t,M())}))},T=function(){n&&(l.removeLayer(n),n=null),i&&(l.removeLayer(i),i=null,r=null,o=null)};return{showTimeZone:k,hideTimeZone:T}},hu={create:cu},uu=i("1134"),du=i.n(uu),pu="UKHO55_EVENT_CLICK_SEA_CHART",fu=function(t){var e=new CustomEvent(pu,{detail:t});document.dispatchEvent(e)},mu="/ukhomap/selectEncByPoint",gu=ie["g"](mu),yu=function(t){m["a"].log("ukho mouseover",t);var e=t||{},n=e.sourceTarget,i=n||{},r=i.feature,o=r||{},a=o.geometry,s=a||{},l=s.unit;return l},_u=function(t){var e=t||{},n=e.map,i=n,r=!1,o=null,s=null,l=null,c=null,h=function(){s&&(n.removeLayer(s),s=null)},u=function(t){var e=t||{},n=e.geometry,i=n||{},r=i.unit,o=r||{},a=o.unitid;return a},d=function(t){var e=t||{},n=e.unitid;return n},p=function(t,e){if(t&&e){var n=u(t),i=d(e);if(n&&i&&n==i)return!0}return!1},f=function t(e){o&&n.removeLayer(o);var i=[];e.forEach((function(t){var e=a["geoJson"](t,{style:function(t){var e=p(t,c);if(e)return{color:"rgba(255,0,0,0.4)"}}});i.push(e)})),o=a["featureGroup"](i).on("mouseover",(function(t){var e=yu(t);c=e||null})).on("mousemove",(function(t){h(),c&&b(t)})).on("mouseout",(function(t){c=null,h()})).on("click",(function(){c&&(fu(c),t(e))})).addTo(n)},g=function(t,e){o&&i.removeLayer(o);var n=r;if(e&&(n=!0),m["a"].log("ukho93 _visible",{_visible:r,forceVisible:e,resp:t,visibleVal:n}),n&&ie["l"](t)){var a=[];t.map((function(t){var e=t||{},n=e.subUnit,i=void 0===n?[]:n;i.forEach((function(t){var e=t||{},n=e.polygon;if(n){var i=new du.a.Wkt;i.read(n);var r=i.toJson();r.unit=t,a.push(r)}}))})),f(a)}},y=function(t,e){m["a"].log("ukho moveend",t);var n=t||{},i=n.latlng,r="point("+i.lng+" "+i.lat+")",o="1";l&&l.usages&&(o=l.usages);var a={point:r,usages:o};Object(lu["b"])(gu,a).then((function(t){m["a"].log(t),g(t),e&&e(t)})).catch((function(){}))},_=function(t){Object(ie["n"])()&&y(t,(function(t){l&&l.click&&l.click(t)}))},v=a["Util"].throttle(_,500,n),b=function(t){if(c){h(),m["a"].log("ukho _mouseOverUnit",c);var e=c||{},i=e.datasetTitle,r=(e.edtn,e.id),o=(e.polygon,e.scale,e.unitid),l=(e.updn,e.usage,[]);l.push(["dataset Title:",i]),l.push(["id:",r]),l.push(["unit id:",o]);var u=ie["e"](l,!1);s=a["popup"]({maxWidth:800}).setLatLng(t.latlng).setContent(u).openOn(n)}},w=function(t){Object(ie["s"])(),l=t,r=!0,m["a"].log("ukho open"),n.on("click",v)},x=function(){Object(ie["t"])(),a["_ukhoMode"]="",m["a"].log("ukho close"),n.off("click",v),l=null,r=!1};return{open:w,close:x,showOnMap:g}},vu={create:_u},bu=function(t){return!!(t&&t.hasOwnProperty("adjust")&&t.adjust.length>0)},wu=function(t){var e=t.adjust,n=void 0===e?[]:e,i=Object(vt["k"])()?"cn":"en";Hh["a"]()&&(i="cn");var r=Ss["b"](),o=r||{},a=o.key,s=n.filter((function(t){var e=t||{},n=e.matchBackground,r=e.matchLanguage;return r==i&&n==a}));return m["a"].log("n2888 getIt",t,r,s),s.length>0?s[0]:null},xu=function(t){var e=bu(t);if(!e)return t;var n=t.url,i=t.options,r=void 0===i?{}:i,o=n,a=r,s={url:o,options:a},l=wu(t);return m["a"].log("n2888 adjustIt",l),l||s},Lu={},Mu=function(){var t=a["Marker"].prototype._initIcon,e=a["Marker"].prototype._setPos,n="msTransform"===a["DomUtil"].TRANSFORM;a["Marker"].addInitHook((function(){var t=this.options.icon&&this.options.icon.options,e=t&&this.options.icon.options.iconAnchor;e&&(e=e[0]+"px "+e[1]+"px"),this.options.rotationOrigin=this.options.rotationOrigin||e||"center bottom",this.options.rotationAngle=this.options.rotationAngle||0,this.on("drag",(function(t){t.target._applyRotation()}))})),a["Marker"].include({_initIcon:function(){t.call(this)},_setPos:function(t){e.call(this,t),this._applyRotation()},_applyRotation:function(){this.options.rotationAngle&&(this._icon.style[a["DomUtil"].TRANSFORM+"Origin"]=this.options.rotationOrigin,n?this._icon.style[a["DomUtil"].TRANSFORM]="rotate("+this.options.rotationAngle+"deg)":this._icon.style[a["DomUtil"].TRANSFORM]+=" rotateZ("+this.options.rotationAngle+"deg)")},setRotationAngle:function(t){return this.options.rotationAngle=t,this.update(),this},setRotationOrigin:function(t){return this.options.rotationOrigin=t,this.update(),this}})},ku=function(t){var n=t||{},i=(n.key,n.el);try{var r=i||{},o=(r.zoom,r.locate),s=r.url,l=r.length,c=r.width,h=r.rotate,u=o.split(","),d=[u[1],u[0]];Mu&&(Mu(),Mu=null);var p=a["marker"](d,{rotationAngle:h,rotationOrigin:"center center",icon:a["icon"]({iconUrl:s,iconSize:[c,l],iconAnchor:[c/2,l/2]})});return p}catch(e){console.error(e)}return null},Tu=function(t){var e=[];for(var n in Lu){var i=Lu[n];i.hasOwnProperty(t)&&(e=e.concat(i[t]))}return e},Au=function(t){for(var e in Lu){var n=Lu[e];n.hasOwnProperty(t)&&delete n[t]}},Eu=function(t,e,n){for(var i=0;i0){for(var u=0;u=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code;var n=this.options||{},i=n.srs;i&&(this.wmsParams[e]=i),a["TileLayer"].prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=a["TileLayer"].WMS.prototype.getTileUrl.call(this,t),n=e,i=this.options||{};if(i&&i.hasOwnProperty("buildUrlHelper")){var r=i.buildUrlHelper;if(0==r)return n}var o=Object(Cc["d"])(),s=Object(Cc["e"])(),l=i.hosts||o;if(l&&l.length>0){var c=l.length,h=Iu%c;n=Object(Cc["a"])(e,s,l,h),Iu=Iu>=c?0:Iu+1}return n},getFeatureInfoUrl:function(t,e){var n=this.options||{};if(n&&n.hasOwnProperty("getFeatureInfo")){var i=n.getFeatureInfo;if(0==i)return""}var r=this._map.getBounds(),s=this._crs,l=a["bounds"](s.project(r._northEast),s.project(r._southWest)),c=l.min,h=l.max,u=(this._wmsVersion>=1.3&&this._crs===Du?[c.y,c.x,h.y,h.x]:[c.x,c.y,h.x,h.y]).join(","),d=this._map.latLngToContainerPoint(t,this._map.getZoom()),p=this._map.getSize(),f=Object(o["a"])({request:"GetFeatureInfo",service:"WMS",srs:this.wmsParams.srs?this.wmsParams.srs:"EPSG:4326",styles:this.wmsParams.styles,transparent:this.wmsParams.transparent,version:this.wmsParams.version,format:this.wmsParams.format,bbox:u,height:p.y,width:p.x,layers:this.wmsParams.layers,query_layers:this.wmsParams.layers,info_format:"text/html"},e||{});return f["1.3.0"===f.version?"i":"x"]=parseInt(d.x),f["1.3.0"===f.version?"j":"y"]=parseInt(d.y),this._url+a["Util"].getParamString(f,this._url,!0)}});function ju(t,e){return new Ru(t,e)}var Cu=function(t,e){var n=e||{},i=n.version;if("xyz"==i){var r=Object(o["a"])({},e);return new a["TileLayer"](t,r)}return ju(t,e)},Nu=function(t){var e=t||{},n=e.map;Ou(t);var i=n,r=hu.create(t),o=vu.create(t),s=su(),l="area.null",c={},h=[],u=function(t,e,n){var r=xu(t),o=r||{},a=o.url,s=o.options,l=r.layer;if(m["a"].log("n2888 2162 area _updateCurrentLayer",t,e,n),!c[n]&&!l){c[n]=Cu(a,s);var h=kh(t);return c[n].setZIndex(h),void i.addLayer(c[n])}l?(c[n]=l,i.hasLayer(l)||i.addLayer(l)):(c[n].setUrl(a),c[n].setParams(s),c[n].bringToFront())},d=function(t){t?r.showTimeZone():r.hideTimeZone()},p=function(t){var e=s.filter((function(e){return e.key==t})),n=e.length>0?e[0]:null;return null==n&&(e=h.filter((function(e){return e.key==t})),n=e.length>0?e[0]:null),m["a"].log("n2999 findIt",n),n},f=function(t){var e=t||{},n=e.key,r=void 0===n?l:n,o=e.visible,a=void 0!==o&&o;if(r!=ou.AREA_TIME_ZONE){if(a)if(c[r]){var s=p(r),h=bu(s);h&&u(s,t,r)}else{var f=p(r);f&&u(f,t,r)}else c[r]&&(i.hasLayer(c[r])&&i.removeLayer(c[r]),delete c[r]);var m=p(r),g={it:m,key:r,visible:a,map:i};Su(g)}else d(a)},g=function(t,e){t?o.open(e):o.close()},y=function(t){h=t||[]},_=function(t,e){var n,i,r={};if(h&&h.length>0)for(var o=0;o"))},getPolygonCenter:function(t){for(var e=0,n=0,i=0,r=1;r<=t.length;r++){var o=t[r%t.length][0],a=t[r%t.length][1],s=t[r-1][0],l=t[r-1][1],c=(o*l-a*s)/2;e+=c,n+=c*(o+s)/3,i+=c*(a+l)/3}return n/=e,i/=e,[n,i]},getGeojsonList:function(t){var n=[];return t.map((function(t){var i=t||{},r=i.bound,o=i.name;try{var a=Bu.a.parse(r);a.properties={popupContent:o},n.push(a)}catch(e){console.error(e)}})),n},updateAsPolygon:function(t){var e=this.getGeojsonList(t);e.length>0&&(m["a"].log("KNoticeLayer _update geojsons",e),this.__kgeojsonsLayer=a["geoJson"](e,{onEachFeature:this.onEachFeature}).addTo(this._map))},updateAsMarker:function(t){m["a"].log("KNoticeLayer updateAsMarker");var e=this.getGeojsonList(t);e.length>0&&(m["a"].log("KNoticeLayer _update geojsons",e),this.__kgeojsonsLayer=a["geoJson"](e,{onEachFeature:this.onEachFeature}).addTo(this._map))},checkAsMarker:function(){var t=this._map.getZoom(),e=this.options.limitZoom||9;return t0){var l=s.length,c=Yu%l;n=Object(Cc["a"])(e,o,s,c),Yu=Yu>=l?0:Yu+1}return n}});function Fu(t,e){return new Wu(t,e)}var Vu=function(t){var e=t||{},n=e.map,i=n,r=Ml(),o="info.null",s=ul,l={},c={kNoticeLayer:Uu},h=function(t,e,n){var i=t.url,r=t.type,o=void 0===r?"tile":r,s=t.factoryName,l=t.options,h=void 0===l?{}:l;if("request"==o){var u=c[s];return u(i,h)}return"MultiUrlWms"==o?Fu(i,h):"tile"!=o?a["tileLayer"].wms(i,h):a["tileLayer"](i,h)},u=function(t){var e=!0;return jh()&&(e=t!=s.INFO_GREENPOINT),m["a"].log("n3101 is testToFront",jh(),e),e},d=function(t,e,n){var r=t.url,o=t.options,a=void 0===o?{}:o;if(!l[n])return l[n]=h(t,e,n),i.addLayer(l[n]),void(u(n)&&l[n].bringToFront());m["a"].log("infoChange area _updateCurrentLayer 3",r,a),l[n].setUrl(r),l[n].setParams(a),u(n)&&l[n].bringToFront()},p=function(t,e,n){t.url,t.options;l[n]&&f(n),e.options&&(e.options.zIndex=_h),l[n]=h(t,e,n),i.addLayer(l[n]),u(n)&&l[n].bringToFront()},f=function(t){l[t]&&(i.hasLayer(l[t])&&i.removeLayer(l[t]),delete l[t])},g=function(t){var e=t||{},n=e.key,i=void 0===n?o:n,a=e.visible,c=void 0!==a&&a,h=e.options;if(c){if(i==s.INFO_GREENPOINT&&h){var u=r.filter((function(t){return t.key==i&&t.url})),m=u.length>0?u[0]:null;m.options=h,m&&p(m,t,i)}else if(!l[i]){var g=r.filter((function(t){return t.key==i&&t.url})),y=g.length>0?g[0]:null;y&&d(y,t,i)}}else f(i)};return{infoList:function(){return r},infoChange:g}},Qu={create:Vu},Hu=i("5362"),Ju=0,Xu=a["TileLayer"].extend({getTileUrl:function(t){var e=a["TileLayer"].prototype.getTileUrl.call(this,t);return!e||-1==e.indexOf("hfWeatherApi")&&-1==e.indexOf("hfWeatherWaveApi")?this.getTileUrlSeaMap(t):this.getTileW10Url(t)},getTileW10Url:function(t){var e=a["TileLayer"].prototype.getTileUrl.call(this,t),n=e,i=this.options||{},r=Object(Cc["h"])(),o=Object(Cc["i"])(),s=i.hosts||r;if(s&&s.length>0){var l=s.length,c=Ju%l;n=Object(Cc["a"])(e,o,s,c),Ju=Ju>=l?0:Ju+1}return n},getTileUrlSeaMap:function(t){var e=a["TileLayer"].prototype.getTileUrl.call(this,t),n=e,i=this.options||{},r=Object(Cc["f"])(),o=Object(Cc["g"])(),s=i.hosts||r;if(s&&s.length>0){var l=s.length,c=Ju%l;n=Object(Cc["a"])(e,o,s,c),Ju=Ju>=l?0:Ju+1}return n}});function Ku(t,e){return new Xu(t,e)}i("28b5"),i("c3c2");var qu=i("0c02"),$u=i("56e2"),td="/hfWeatherWaveApi/darkmap/{z}/{x}/{y}.png?",ed=ie["g"](td),nd="/hfWeatherWaveApi/hlandmap/{z}/{x}/{y}.png?",id=ie["g"](nd),rd=ed,od="/hifleetapi/getNauticalChart.do?z={z}&x={x}&y={y}&",ad=ie["g"](od),sd="/hfWeatherWaveApi/darklandmap/{z}/{x}/{y}.png?",ld=ie["g"](sd),cd="/hfWeatherApi/GetWeatherValue?",hd=8,ud=6,dd=!1,pd=i("aedd"),fd=i("eead"),md=function(){return!(a["LANG"]&&"en-US"==a["LANG"])},gd=function(t){var e,n,i,r=t||{},s=r.map,l=(r.el,r.vue,r.maplibApp),c=void 0===l?null:l,h=s,u=-1,d=!1,p={},f=[],g={},y={},_={},v=ie["g"](cd),b=null,w=null,x=null,L=function(t){var e=y||{},n=e.time,i=e.f,r=t||{},o=r.latlng,a=r.wraplatlng;if(n&&i){var s=a||{},l=s.lat,c=s.lng;if(l&&c){var h={time:n,f:i,lat:l,lon:c},u=ie["a"](v);Object(lu["b"])(u,h).then((function(e){return t.success&&t.success({response:e,latlng:o,wraplatlng:a})})).catch((function(e){return t.fail&&t.fail(e)}))}}},M=function(){b&&h.removeLayer(b),w&&h.removeLayer(w),x&&h.removeLayer(x),b=null,w=null,x=null,_=null},k=function(t){var e,n,i,r,o,a,s=t||{},l=s.wind_nw,c=s.wind_l,h=(s.wave_v,s.current_d),u=s.current_s,d=s.visibilityVal,p=(s.wavepVal,s.wavedVal,s.waveVal),f=s.windknotVal,m=s.latlng,g="display:block;width:100%;height:20px;line-height:20px",y=md();a=y?"display:inline-block;min-width:50px;text-align:right;padding-right:4px;":"display:inline-block;min-width:60px;text-align:right;padding-right:4px;",y?(e="",n="",i="",d&&"",r="",o=""):(e="",n="",i="",d&&"",r="",o="");var _=[];if(_.push(e+l+"/"+c+"/"+f+""),_.push(n+p+""),_.push(i+h+"/"+u+""),Vn["f"]()||Vn["g"]()){var v=Object(Jn["c"])(m);_.push(r+v[0]+""),_.push(o+v[1]+"")}var b=_.length,w=20*b+"px",x="width:100%;height:".concat(w,";background-color:rgba(0,0,0,0.7);color:#fff;margin-top:0px;"),L=["

",_.join(""),"

"].join("");return{html:L,rowSize:b}},T=function(t,e,n){if(_={latlng:e,wraplatlng:n},void 0!=e&&(!e||void 0!=e.lat)){var i=t,r=Number(i.wind_l)||"-",o=i.wind_nw,s=Number(i.current_s).toFixed(1)||"-",l="N/A"==i.current_d?"-":i.current_d,c=Number(i.wave_v).toFixed(1),u=i.wave_nw;isNaN(s)?s="-":(s=(3600*s/1852).toFixed(1)+" kn",l=i.current_nw),isNaN(c)?c="-":c+=" m";var d,p,f,g=i||{},y=g.visibility_v,v=g.wave_p,L=g.wave_d,T=g.windknot;m["a"].log("n2941",i),y&&y.length>0&&(d=y+" km"),v&&v.length>0&&(p=v+" s"),L&&L.length>0&&(f=L);var A="";T&&T.length>0&&(A=T+" kn");var E=[];E.push(u),E.push(c),E.push(p),E=E.join("/");var S=k({wind_nw:o,wind_l:r,wave_v:c,current_d:l,current_s:s,visibilityVal:d,wavepVal:p,wavedVal:f,waveVal:E,windknotVal:A,latlng:e}),P=S.html,O=S.rowSize,D=3,I=2,R=20*O+55-D,j=20*O+50-D,C=20*O,N=md(),z=N?155:160,G=N?-135:-140;null!=b&&(h.removeLayer(b),h.removeLayer(w),h.removeLayer(x));var B=a["icon"]({iconUrl:pd,iconSize:[10,60],iconAnchor:[6,56]});b=a["marker"](e,{icon:B,fillText:""}).addTo(h),w=a["marker"](e,{icon:a["divIcon"]({html:P,iconAnchor:[I,R],iconSize:[z,C]})}).addTo(h),x=a["marker"](e,{icon:a["icon"]({iconUrl:fd,iconSize:[15,15],iconAnchor:[G,j]})}).addTo(h),x.on("click",M)}},A=function(t){var e=t||{},n=e.response,i=e.latlng,r=e.wraplatlng;n&&T(n,i,r)},E=function(t){var e=t.originalEvent[pa]||{};if(m["a"].log("weather mouseClickOnMap",t,e),ie["m"](e)){var n=s.wrapLatLng(t.latlng);L({latlng:t.latlng,wraplatlng:n,success:A})}},S=function(t){e=Object(Hu["b"])(t);var n=t||{},i=n.urls,r=n.isSdk,o=void 0!==r&&r;d=o;var a=i||{},s=a.weatherValue;s&&(v=s,o&&(v=Object(Cc["b"])(s))),f=e.map((function(t){var e=t.id,n=t.key,i=t.i18n;t.layer;return{id:e,key:n,i18n:i}}))},P=rd,O=Ku(P,{zIndex:$u["f"]}),D=function(t){var e=t||{},n=e.visible,i=void 0===n||n;i?h.hasLayer(O)||h.addLayer(O):h.hasLayer(O)&&h.removeLayer(O)},I=function(t,n){if(!p[t]){var i=e.filter((function(e){return e.key==t}));if(i.length>0){var r=i[0];p[t]=r.build(n),m["a"].log("n2517 _getLayer",n),g[t]=!1}}return p[t]},R=function(t){var e=t||{},n=e.key;e.visible,e.time,e.f;return I(n,{is_sdk:d})},j=function(t){var e=t||{},n=(e.key,e.visible),i=e.time,r=e.f,o=R(t);o&&(n?void 0!=i&&void 0!=r&&(h.hasLayer(o)||h.addLayer(o),o.setTime(t),o.enable()):o.disable())},C=function(t){var e,n;for(var i in g)e=g[i],n=Object(o["a"])(Object(o["a"])({},t),{},{key:i,visible:e}),j(n);y=t,_&&L(Object(o["a"])(Object(o["a"])({},_),{},{success:A}))},N=function(t,e){if(nt(),d){if(t||void 0==e)return;e?(u=h.getMaxZoom(),h.setMaxZoom(hd)):h.setMaxZoom(u)}},z=250,G=function(t){n&&clearTimeout(n),n=null},B=function(t){G(),n=setTimeout((function(){E(t)}),z)},Z=function(){G()},U=!1,Y={},W=function(t){var e=t||{},n=(e.key,e.visible),i=e.type,r=e.time,o=e.f;t&&t.hasOwnProperty("key")?(t.key==Hu["a"].WEATHER_WIND||t.key==Hu["a"].WEATHER_CURRENT||t.key==Hu["a"].WEATHER_ISOLINE)&&(Y[t.key]=n):t&&t.hasOwnProperty("f")&&(Y["opts"]={type:i,time:r,f:o})},F=function(t){var e=!!Y[t],n={};return Y["opts"]&&(n=Y["opts"]),Object(o["a"])(Object(o["a"])({},n),{},{visible:e,key:t})},V=function(t){ot(t),C(t)},Q=null,H=function(){var t=hd,e=h.getZoom(),n=!1,i=!1;if(null!=Q)n=Q<=t&&e>t,i=Q>t&&e<=t;else if(Q==e)return;if(U){if(i){var r=F(Hu["a"].WEATHER_WIND);V(r),r=F(Hu["a"].WEATHER_CURRENT),V(r),r=F(Hu["a"].WEATHER_ISOLINE),V(r),U=!1}}else if(n){U=!0;var o={key:Hu["a"].WEATHER_WIND,visible:!1};V(o),o={key:Hu["a"].WEATHER_CURRENT,visible:!1},V(o),o={key:Hu["a"].WEATHER_ISOLINE,visible:!1},V(o)}Q=e},J=!1,X=function(){var t=0==[Hu["a"].WEATHER_CURRENT_GRAY,Hu["a"].WEATHER_WAVE_GRAY,Hu["a"].WEATHER_WIND_GRAY].filter((function(t){return g[t]})).length;return t},K=function(t){var e,n=h.getZoom(),i=rd;e=Hu["a"].WEATHER_WAVE,g[e]&&(i=id),e=Hu["a"].WEATHER_CURRENT_GRAY,g[e]&&(i=ld),e=Hu["a"].WEATHER_WAVE_GRAY,g[e]&&(i=ld),e=Hu["a"].WEATHER_WIND_GRAY,g[e]&&(i=ld),e=Hu["a"].WEATHER_WAVE_CONTOUR,g[e]&&(i=ld),n>t&&(i=ad);var r=X();if(r){var o=$(ud,n);if(""!=o)return o}return i},q=function(){var t=K(hd);t&&t!=O&&(P=t,O.setUrl(t))},$=function(t,e){var n,i="",r=X();r&&(n=Hu["a"].WEATHER_WAVE,g[n]&&(i=e>t?ad:id));return i},tt=function(t){var e=$(ud,t);return""!=e&&(e!=O&&(P=e,O.setUrl(e),!0))},et=function(t){if(!d){var e=h.getZoom(),n=ud,i=$(ud,e);if(m["a"].log("n2749 test",i),e>n&&dd){dd=!dd;var r=tt(e);return m["a"].log("n2749 active",e,n),r}if(e<=n&&!dd){dd=!dd;var o=tt(e);return m["a"].log("n2749 deactive",e,n),o}}},nt=function(t){if(!d){var e=h.getZoom(),n=hd;H();var i=et(t);if(!i)return e>n&&J?(J=!J,q(),void $u["j"](R)):void(e<=n&&!J&&(J=!J,q(),$u["i"](R)))}},it=function(){for(var t in c&&c.mapOpen(),g)g[t]=!1;s.off("click",B),s.off("dblclick",Z),s.off("zoomend",nt),x&&x.off("click",M),G(),M(),Q=null},rt=function(){var t=s.getZoom(),e=5,n=3;t>e&&s.setZoom(n),s.on("click",B),s.on("dblclick",Z),s.on("zoomend",nt),c&&c.mapClose()},ot=function(t){var e=t||{},n=e.key,i=e.visible;void 0!=i&&(void 0!=n&&e.hasOwnProperty("key")?(R(t),g[n]=i):(D(t),0==i?it():rt()))},at=function(t){var e=g[t];if(e){var n=R({key:t});n.redraw()}},st=function(){var t=[Hu["a"].WEATHER_CURRENT_GRAY,Hu["a"].WEATHER_WAVE_GRAY,Hu["a"].WEATHER_WIND_GRAY].filter((function(t){return g[t]})).length>0;t?(tr["c"](1),tr["d"](1)):(tr["c"](0),tr["d"](0)),at(Hu["a"].WEATHER_CURRENT),at(Hu["a"].WEATHER_WIND)},lt=function(t){m["a"].log("1934 kaiextend weatherChange===============",t);var e=t||{},n=e.key,i=e.visible;W(t),N(n,i),ot(t),C(t),q(),st()},ct=function(t){ht(),m["a"].log("2481 openVelocityLayer",t);var e=Object(o["a"])({displayValues:!1,displayOptions:{velocityType:"GBR",displayPosition:"bottomleft",displayEmptyString:"No water data"},data:qu,maxVelocity:.6,velocityScale:.1},t||{});i=a["velocityLayer"](e),s.addLayer(i)},ht=function(){i&&(s.removeLayer(i),i=null)},ut=function(t,e){m["a"].log("n2481 weatherSetOptions",t,e);var n=R(t);if(m["a"].log("n2481 weatherSetOptions layer",n.getTime(),h.hasLayer(n)),m["a"].log("n2481 weatherSetOptions layer 1",n),m["a"].log("n2481 weatherSetOptions layer 2",n&&n.setOptions),m["a"].log("n2481 weatherSetOptions layer 3",n&&n.setOptions&&n.getTime),n&&n.setOptions&&n.getTime){var i=t.key,r=n.getTime();m["a"].log("n2481 weatherSetOptions layer 1"),h.hasLayer(n)&&h.removeLayer(n),p[i]=null;var a=g[i];n=I(i,e),n.setTime(r);var s=Object(o["a"])({key:i,visible:a},r);m["a"].log("n2481 weatherSetOptions layer switchOption",s),lt(s)}},dt=function(t){var e=R(t);return e?e.options:{}},pt=function(){e.forEach((function(t){var e,n=t.key;p[n]&&(e=p[n],h.hasLayer(e)&&(m["a"].log("weatherRefresh",e),e.draw&&e.draw()))}))};return{weatherChange:lt,weatherList:function(){return f},weatherInit:S,closeVelocityLayer:ht,openVelocityLayer:ct,weatherSetOptions:ut,weatherGetOptions:dt,weatherRefresh:pt}},yd={create:gd},_d=function(t){var e,n=t||{},i=n.map,r=(n.el,n.vue,n.maplibApp,i),a={},s=[],l={},c=null,h=new zc;h.cacheIcon([Ic()]);var u=null,d=function(t){var n={options:t,map:r};e=mh(n);var i=t||{},o=(i.urls,i.isSdk),c=void 0!==o&&o;c,s=e.map((function(t){var e=t.id,n=t.key,i=t.i18n,r=t.layer;return r&&(r.init&&r.init(),a[n]=r,l[n]=!1),{id:e,key:n,i18n:i}}))},p=function(t){var e=t||{},n=e.key,i=e.visible,o=a[n];if(o){if(!r.hasLayer(o)){var s=Mh(t);s&&o.setZIndex(s),r.addLayer(o)}i?o.enable():o.disable()}},f=function(t){var e,n;for(var i in l)e=l[i],n=Object(o["a"])(Object(o["a"])({},t),{},{key:i,visible:e}),p(n)},m=function(t){var e=t||{},n=e.key,i=e.visible;void 0!=i&&(l[n]=i,0==i&&a[n]&&a[n].fire("mouseout"))},g=function(t,e){u=Object(o["a"])(Object(o["a"])({},u||{}),e||{}),a[t]&&(r.hasLayer(a[t])||(a[t].addTo(r),a[t].disable()),a[t].setRequestParams(u),a[t].enable())},y=function(t){var e=t||{};e.key,e.visible;c=t,m(t),f(t)},_=function(t,n,i,r){e.forEach((function(t){t.id;var e=t.key;t.i18n;if(l[e]){var n=a[e];n._fireHandleMouseHover(i,r)}}))},v=function(){return c&&y(c)},b=function(){return Oc()},w=function(){return Dc()};return{vesselChange:y,vesselList:function(){return s&&0==s.length&&d(),s},vesselInit:d,vesselHandleMouseHover:_,vesselUpdateParams:g,vesselRefresh:v,vessel1563on:b,vessel1563off:w}},vd={create:_d},bd="https://ttse.hifleet.com/hifleetapi/mapPortUserMessageCount.do",wd=i("08d7"),xd=Object(Jn["g"])("/image/port/2753.png"),Ld=Qc()?xd:wd,Md=20,kd=2,Td=Md+1,Ad=a["Icon"].extend({options:{iconUrl:Ld,iconSize:[Md,Md],iconAnchor:[kd,Td]},_setIconStyles:function(t,e){a["Icon"].prototype._setIconStyles.call(this,t,e),t.style["mix-blend-mode"]="unset"}}),Ed=function(){return new Ad},Sd=function(t){var e=t||{},n=e.map,i=(e.el,e.vue,null),r=[],s=function(t){Object(lu["a"])(bd).then((function(e){var n=e||{},i=n.data,r=n.status;1*r==1&&t(i)}))},l=function(t){var e=t||{},i=e.lat,r=e.lon,s=Ed(),l=[i,r];if(1==a["_chinaMapTransform"]){var c=bt["e"]({lat:i,lng:r});l=[c.lat,c.lng]}var h=a["marker"](l,{icon:s}).addTo(n);return h.on("click",(function(e){var i={};i[pa]=Object(o["a"])(Object(o["a"])({},t),{},{_type:"port"}),e.originalEvent=i,n.fire(pa,e)})),h},c=function(){if(r&&r.length>0){for(var t=0;t0&&(c(),r=t.map((function(t){return l(t)})))}))},u=function(t){var e=t||{},n=e.visible,r=void 0!==n&&n;if(i&&(clearInterval(i),i=null,c()),1==r){h();var o=3e4;i=setInterval((function(){h()}),o)}};return{portUserMessageChange:u}},Pd={create:Sd},Od=function(t){var e=$h.create(t),n=nu.create(t),i=zu.create(t),r=Qu.create(t),a=vd.create(t),s=Pd.create(t),l=Object(o["a"])(Object(o["a"])({},t),{},{maplibApp:e}),c=yd.create(l);return Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])({},e),n),i),r),c),a),s)},Dd=w.extend({initModule:function(t){var e=Object(o["a"])({map:this._map,el:this._el},t),n=t||{},i=n._mode;"sdk"!=i?this.__initAsWeb(e):this.__initAsSdk(e)},__initAsWeb:function(t){var e=this,n=il(t),i=Od(t);i.weatherInit(),i.vesselInit();var r=n.getShipApp();r.registerHandleMouseHoverCallBack((function(t,e,n,r){i.vesselHandleMouseHover(t,e,n,r)})),this._module={},this._module.kai=n,this._module.kai.setScaleControlPosition=function(t){return e.setScaleControlPosition.call(e,t)},this._module.display=i},__initAsSdk:function(t){var e=il(t),n=Od(t);this._module={},this._module.kai=e,this._module.display=n},getModule:function(t){return this._module[t]},getBase:function(){return this},getMap:function(){return this._map}});n["a"]=Dd},"342f":function(t,e,n){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3452:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"),n("17e1"),n("a8ce"),n("1132"),n("c1bc"),n("72fe"),n("df2f"),n("94f8"),n("191b"),n("d6e6"),n("b86b"),n("e61b"),n("10b7"),n("5980"),n("7bbc"),n("2b79"),n("38ba"),n("00bb"),n("f4ea"),n("aaef"),n("4ba9"),n("81bf"),n("a817"),n("a11b"),n("8cef"),n("2a66"),n("b86c"),n("6d08"),n("c198"),n("a40e"),n("c3b6"),n("1382"),n("3d5a"),n("af5b"))})(0,(function(t){return t}))},"34ac":function(t,e,n){var i=n("9520"),r=n("1368"),o=n("1a8c"),a=n("dc57"),s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,h=Object.prototype,u=c.toString,d=h.hasOwnProperty,p=RegExp("^"+u.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(t){if(!o(t)||r(t))return!1;var e=i(t)?p:l;return e.test(a(t))}t.exports=f},3511:function(t,e,n){"use strict";var i=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw i("Maximum allowed index exceeded");return t}},3529:function(t,e,n){"use strict";var i=n("23e7"),r=n("c65b"),o=n("59ed"),a=n("f069"),s=n("e667"),l=n("2266"),c=n("5eed");i({target:"Promise",stat:!0,forced:c},{race:function(t){var e=this,n=a.f(e),i=n.reject,c=s((function(){var a=o(e.resolve);l(t,(function(t){r(a,e,t).then(n.resolve,i)}))}));return c.error&&i(c.value),n.promise}})},"35a1":function(t,e,n){"use strict";var i=n("f5df"),r=n("dc4a"),o=n("7234"),a=n("3f8c"),s=n("b622"),l=s("iterator");t.exports=function(t){if(!o(t))return r(t,l)||r(t,"@@iterator")||a[i(t)]}},3698:function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},"36f2":function(t,e,n){"use strict";var i,r,o,a,s=n("da84"),l=n("7c37"),c=n("dbe5"),h=s.structuredClone,u=s.ArrayBuffer,d=s.MessageChannel,p=!1;if(c)p=function(t){h(t,{transfer:[t]})};else if(u)try{d||(i=l("worker_threads"),i&&(d=i.MessageChannel)),d&&(r=new d,o=new u(2),a=function(t){r.port1.postMessage(null,[t])},2===o.byteLength&&(a(o),0===o.byteLength&&(p=a)))}catch(f){}t.exports=p},3719:function(t,e,n){var i,r,o;(function(a,s){typeof t<"u"?t.exports=s(n("ef1d")):(r=[n("ef1d")],i=s,o="function"===typeof i?i.apply(e,r):i,void 0===o||(t.exports=o))})(0,(function(t){"use strict";function e(){return!0}t.SVG.include({_resetTransformPath:function(t){t._path.setAttributeNS(null,"transform","")},transformPath:function(t,e){t._path.setAttributeNS(null,"transform","matrix("+e.join(" ")+")")}}),t.SVG.include(t.Browser.vml?{_resetTransformPath:function(t){t._skew&&(t._skew.on=!1,t._path.removeChild(t._skew),t._skew=null)},transformPath:function(e,n){let i=e._skew;i||(i=t.SVG.create("skew"),e._path.appendChild(i),i.style.behavior="url(#default#VML)",e._skew=i);const r=n[0].toFixed(8)+" "+n[1].toFixed(8)+" "+n[2].toFixed(8)+" "+n[3].toFixed(8)+" 0 0",o=Math.floor(n[4]).toFixed()+", "+Math.floor(n[5]).toFixed(),a=this._path.style;let s=parseFloat(a.left),l=parseFloat(a.top),c=parseFloat(a.width),h=parseFloat(a.height);isNaN(s)&&(s=0),isNaN(l)&&(l=0),(isNaN(c)||!c)&&(c=1),(isNaN(h)||!h)&&(h=1);const u=(-s/c-.5).toFixed(8)+" "+(-l/h-.5).toFixed(8);i.on="f",i.matrix=r,i.origin=u,i.offset=o,i.on=!0}}:{}),t.Canvas.include({_resetTransformPath:function(t){this._containerCopy&&(delete this._containerCopy,t._containsPoint_&&(t._containsPoint=t._containsPoint_,delete t._containsPoint_,this._requestRedraw(t)))},transformPath:function(n,i){let r=this._containerCopy;const o=this._ctx;let a;const s=t.Browser.retina?2:1,l=this._bounds,c=l.getSize(),h=l.min;r||(r=this._containerCopy=document.createElement("canvas"),a=r.getContext("2d"),r.width=s*c.x,r.height=s*c.y,this._removePath(n),this._redraw(),a.translate(s*l.min.x,s*l.min.y),a.drawImage(this._container,0,0),this._initPath(n),n._containsPoint_=n._containsPoint,n._containsPoint=e),o.save(),o.clearRect(h.x,h.y,c.x*s,c.y*s),o.setTransform(1,0,0,1,0,0),o.restore(),o.save(),o.drawImage(this._containerCopy,0,0,c.x,c.y),o.transform.apply(o,i),this._drawing=!0,n._updatePath(),this._drawing=!1,o.restore()}}), /** * Leaflet vector features drag functionality * @author Alexander Milevski * @preserve */ t.Path.include({_transform:function(t){return this._renderer&&(t?this._renderer.transformPath(this,t):(this._renderer._resetTransformPath(this),this._update())),this},_onMouseClick:function(t){this.dragging&&this.dragging.moved()||this._map.dragging&&this._map.dragging.moved()||this._fireMouseEvent(t)}});const n={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},i={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"};function r(t,e){const n=t.x-e.x,i=t.y-e.y;return Math.sqrt(n*n+i*i)}return t.Handler.PathDrag=t.Handler.extend({statics:{DRAGGING_CLS:"leaflet-path-draggable"},initialize:function(t){this._path=t,this._matrix=null,this._startPoint=null,this._dragStartPoint=null,this._mapDraggingWasEnabled=!1,this._path._dragMoved=!1},addHooks:function(){this._path.on("mousedown",this._onDragStart,this),this._path.options.className=this._path.options.className?this._path.options.className+" "+t.Handler.PathDrag.DRAGGING_CLS:t.Handler.PathDrag.DRAGGING_CLS,this._path._path&&t.DomUtil.addClass(this._path._path,t.Handler.PathDrag.DRAGGING_CLS)},removeHooks:function(){this._path.off("mousedown",this._onDragStart,this),this._path.options.className=this._path.options.className.replace(new RegExp("\\s+"+t.Handler.PathDrag.DRAGGING_CLS),""),this._path._path&&t.DomUtil.removeClass(this._path._path,t.Handler.PathDrag.DRAGGING_CLS)},moved:function(){return this._path._dragMoved},_onDragStart:function(e){const r=e.originalEvent._simulated?"touchstart":e.originalEvent.type;this._mapDraggingWasEnabled=!1,this._startPoint=e.containerPoint.clone(),this._dragStartPoint=e.containerPoint.clone(),this._matrix=[1,0,0,1,0,0],t.DomEvent.stop(e.originalEvent),t.DomUtil.addClass(this._path._renderer._container,"leaflet-interactive"),t.DomEvent.on(document,i[r],this._onDrag,this).on(document,n[r],this._onDragEnd,this),this._path._map.dragging.enabled()&&(this._path._map.dragging.disable(),this._mapDraggingWasEnabled=!0),this._path._dragMoved=!1,this._path._popup&&this._path._popup.close(),this._replaceCoordGetters(e)},_onDrag:function(e){t.DomEvent.stop(e);const n=e.touches&&e.touches.length>=1?e.touches[0]:e,i=this._path._map.mouseEventToContainerPoint(n);if("touchmove"===e.type&&!this._path._dragMoved&&this._dragStartPoint.distanceTo(i)<=this._path._map.options.tapTolerance)return;const r=i.x,o=i.y,a=r-this._startPoint.x,s=o-this._startPoint.y;(a||s)&&(this._path._dragMoved||(this._path._dragMoved=!0,this._path.options.interactive=!1,this._path._map.dragging._draggable._moved=!0,this._path.fire("dragstart",e),this._path.bringToFront()),this._matrix[4]+=a,this._matrix[5]+=s,this._startPoint.x=r,this._startPoint.y=o,this._path.fire("predrag",e),this._path._transform(this._matrix),this._path.fire("drag",e))},_onDragEnd:function(e){const n=this._path._map.mouseEventToContainerPoint(e),i=this.moved();if(i&&(this._transformPoints(this._matrix),this._path._updatePath(),this._path._project(),this._path._transform(null),t.DomEvent.stop(e)),t.DomEvent.off(document,"mousemove touchmove",this._onDrag,this),t.DomEvent.off(document,"mouseup touchend",this._onDragEnd,this),this._restoreCoordGetters(),i){this._path.fire("dragend",{distance:r(this._dragStartPoint,n)});const e=this._path._containsPoint;this._path._containsPoint=t.Util.falseFn,t.Util.requestAnimFrame((function(){this._path._dragMoved=!1,this._path.options.interactive=!0,this._path._containsPoint=e}),this)}this._mapDraggingWasEnabled&&this._path._map.dragging.enable()},_transformPoints:function(e,n){const i=this._path,r=L.point(e[4],e[5]),o=i._map.options.crs,a=o.transformation,s=o.scale(i._map.getZoom()),l=o.projection,c=a.untransform(r,s).subtract(a.untransform(t.point(0,0),s)),h=!n;if(i._bounds=new t.LatLngBounds,i._point)n=l.unproject(l.project(i._latlng)._add(c)),h&&(i._latlng=n,i._point._add(r));else if(i._rings||i._parts){const e=i._rings||i._parts;let o=i._latlngs;n=n||o,t.Util.isArray(o[0])||(o=[o],n=[n]);for(let t=0,a=e.length;th)o.f(t,n=r[h++],i[n]);return t}},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,i,r){return t.config=e,n&&(t.code=n),t.request=i,t.response=r,t.isAxiosError=!0,t.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:this.config,code:this.code}},t}},"38ba":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("2b79"))})(0,(function(t){t.lib.Cipher||function(e){var n=t,i=n.lib,r=i.Base,o=i.WordArray,a=i.BufferedBlockAlgorithm,s=n.enc,l=(s.Utf8,s.Base64),c=n.algo,h=c.EvpKDF,u=i.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?L:b}return function(e){return{encrypt:function(n,i,r){return t(i).encrypt(e,n,i,r)},decrypt:function(n,i,r){return t(i).decrypt(e,n,i,r)}}}}()}),d=(i.StreamCipher=u.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),n.mode={}),p=i.BlockCipherMode=r.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),f=d.CBC=function(){var t=p.extend();function n(t,n,i){var r,o=this._iv;o?(r=o,this._iv=e):r=this._prevBlock;for(var a=0;a>>2];t.sigBytes-=e}},y=(i.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:g}),reset:function(){var t;u.reset.call(this);var e=this.cfg,n=e.iv,i=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=i.createEncryptor:(t=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(i,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),i.CipherParams=r.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),_=n.format={},v=_.OpenSSL={stringify:function(t){var e,n=t.ciphertext,i=t.salt;return e=i?o.create([1398893684,1701076831]).concat(i).concat(n):n,e.toString(l)},parse:function(t){var e,n=l.parse(t),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(e=o.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),y.create({ciphertext:n,salt:e})}},b=i.SerializableCipher=r.extend({cfg:r.extend({format:v}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var r=t.createEncryptor(n,i),o=r.finalize(e),a=r.cfg;return y.create({ciphertext:o,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var r=t.createDecryptor(n,i).finalize(e.ciphertext);return r},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),w=n.kdf={},x=w.OpenSSL={execute:function(t,e,n,i,r){if(i||(i=o.random(8)),r)a=h.create({keySize:e+n,hasher:r}).compute(t,i);else var a=h.create({keySize:e+n}).compute(t,i);var s=o.create(a.words.slice(e),4*n);return a.sigBytes=4*e,y.create({key:a,iv:s,salt:i})}},L=i.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:x}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var r=i.kdf.execute(n,t.keySize,t.ivSize,i.salt,i.hasher);i.iv=r.iv;var o=b.encrypt.call(this,t,e,r.key,i);return o.mixIn(r),o},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var r=i.kdf.execute(n,t.keySize,t.ivSize,e.salt,i.hasher);i.iv=r.iv;var o=b.decrypt.call(this,t,e,r.key,i);return o}})}()}))},3934:function(t,e,n){"use strict";var i=n("c532");t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var i=t;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=i.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},"39ff":function(t,e,n){var i=n("0b07"),r=n("2b3e"),o=i(r,"WeakMap");t.exports=o},"3a34":function(t,e,n){"use strict";var i=n("83ab"),r=n("e8b5"),o=TypeError,a=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!a(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a3b":function(t){t.exports=JSON.parse('{"renew_map_token_using_generatetoken":{"table":{"th":{"col_0":"parameter","col_1":"example_value","col_2":"description"},"tr":[{"uuid":"licenseid","parameter":"licenseId","example_value":73706,"description":"The Fleet Manager Licence ID for the licence being called","is_json_object":false},{"uuid":"userref","parameter":"userRef","example_value":"ABC123456","description":"Unique user reference specified by the distributor","is_json_object":false},{"uuid":"token","parameter":"Token","example_value":"<>","description":"Authentication token generated from UKHO REST B2B service","is_json_object":false}]},"h1":{"text":"2.2 Renew Map Token using GenerateToken","uuid":"renew_map_token_using_generatetoken","ref":"2.2","title":"Renew Map Token using","num":"22"}},"using_standard_wms_getmap_parameters":{"table":{"th":{"col_0":"parameter","col_1":"example_value","col_2":"description"},"tr":[{"uuid":"token","parameter":"Token","example_value":"<>","description":"Map Server Token will be auto-populated from the request detailed in section 2.2","is_json_object":false},{"uuid":"service","parameter":"SERVICE","example_value":"WMS","description":"Indicates the service requested is WMS","is_json_object":false},{"uuid":"request","parameter":"REQUEST","example_value":"GetMap","description":"Indicates the request is a GetMap request","is_json_object":false},{"uuid":"format","parameter":"FORMAT","example_value":"image/png","description":"The format of the output map image","is_json_object":false},{"uuid":"transparent","parameter":"TRANSPARENT","example_value":"TRUE","description":"Sets background colour to transparent","is_json_object":false},{"uuid":"version","parameter":"VERSION","example_value":"1.3.0","description":"The WMS version","is_json_object":false},{"uuid":"layers","parameter":"LAYERS","example_value":"21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0","description":"Optional List of Layers to display, if this is not specified then all layers will be visible. See Layer list below for Layer descriptions.","is_json_object":false},{"uuid":"width","parameter":"WIDTH","example_value":1000,"description":"Output image width","is_json_object":false},{"uuid":"height","parameter":"HEIGHT","example_value":1000,"description":"Output image Height","is_json_object":false},{"uuid":"crs","parameter":"CRS","example_value":"EPSG:3857","description":"Spatial Reference","is_json_object":false},{"uuid":"bbox","parameter":"BBOX","example_value":"-4199759.866962299,4999896.148476938, 3025679.5427769204,9055339.121174172","description":"The bounding box coordinates","is_json_object":false},{"uuid":"userid","parameter":"UserId","example_value":123456,"description":"UserId should be specified according to entitlement (in practical terms this is the Fleet Manager Licence ID)","is_json_object":false},{"uuid":"userref","parameter":"userRef","example_value":"ABC123456","description":"Unique user reference specified by the distributor","is_json_object":false}]},"h1":{"text":"2.3.1 Using standard WMS GetMap Parameters","uuid":"using_standard_wms_getmap_parameters","ref":"2.3.1","title":"Using standard WMS GetMap","num":"231"},"h2":{"text":"2.3 Generate Chart Output","uuid":"generate_chart_output","ref":"2.3","title":"Generate Chart","num":"23"}},"optimal_tile_size":{"table":{"th":{"col_0":"parameter","col_1":"example_value","col_2":"description"},"tr":[{"uuid":"tilesize","parameter":"tileSize","example_value":1100,"description":"Width and height of tiles in the grid.","is_json_object":false}]},"h1":{"text":"2.3.1.1 Optimal tile size","uuid":"optimal_tile_size","ref":"2.3.1.1","title":"Optimal tile","num":"2311"}},"layers_parameter":{"table":{"th":{"col_0":"layer","col_1":"layer_id","col_2":"layers_parameter","col_3":"description","col_4":"feature_description"},"tr":[{"uuid":"display_base","layer":"Display Base","layer_id":0,"layers_parameter":"LAYERS=0","description":"Display only Display Base group","feature_description":"","is_json_object":false},{"uuid":"drying_line","layer":"Drying line","layer_id":1,"layers_parameter":"LAYERS=1","description":"Display only Drying line","feature_description":"Coastline, Ships Safety Contour, Isolated dangers consisting of depths and structures within ships defined safety contour/safe water","is_json_object":false},{"uuid":"buoys,_beacons,_structures,_aids_to_navigation","layer":"Buoys, beacons, structures, aids to navigation","layer_id":2,"layers_parameter":"LAYERS=2","description":"Display only Buoys, beacons, structures, aids to navigation","feature_description":"","is_json_object":false},{"uuid":"lights","layer":"Lights","layer_id":3,"layers_parameter":"LAYERS=3","description":"Display only Lights","feature_description":"","is_json_object":false},{"uuid":"boundaries_and_limits","layer":"Boundaries and limits","layer_id":4,"layers_parameter":"LAYERS=4","description":"Display only Boundaries and limits","feature_description":"Swept Areas, Fairway, Anchorage Areas, Dumping Grounds, Cargo Transhipment Areas","is_json_object":false},{"uuid":"prohibited_and_restricted_areas","layer":"Prohibited and restricted areas","layer_id":5,"layers_parameter":"LAYERS=5","description":"Display only Prohibited and restricted areas","feature_description":"Restricted Areas, Cautionary Areas, Military Practice Areas, Offshore Production Areas, Sea-plane landing Areas and Submarine transit Areas","is_json_object":false},{"uuid":"chart_scale_boundaries","layer":"Chart scale boundaries","layer_id":6,"layers_parameter":"LAYERS=6","description":"Display only Chart scale boundaries","feature_description":"Overscale and Under-scale pattern","is_json_object":false},{"uuid":"cautionary_notes","layer":"Cautionary notes","layer_id":7,"layers_parameter":"LAYERS=7","description":"Display only Cautionary notes","feature_description":"","is_json_object":false},{"uuid":"ships\'_routeing_systems_and_ferry_routes","layer":"Ships\' routeing systems and ferry routes","layer_id":8,"layers_parameter":"LAYERS=8","description":"Display only Ships\' routeing systems and ferry routes","feature_description":"","is_json_object":false},{"uuid":"archipelagic_sea_lanes","layer":"Archipelagic sea lanes","layer_id":9,"layers_parameter":"LAYERS=9","description":"Display only Archipelagic sea lanes","feature_description":"","is_json_object":false},{"uuid":"standard_miscellaneous","layer":"Standard Miscellaneous","layer_id":10,"layers_parameter":"LAYERS=10","description":"Display only Standard Miscellaneous","feature_description":"","is_json_object":false},{"uuid":"spot_soundings","layer":"Spot soundings","layer_id":11,"layers_parameter":"LAYERS=11","description":"Display only Spot soundings","feature_description":"","is_json_object":false},{"uuid":"submarine_cables_and_pipelines","layer":"Submarine cables and pipelines","layer_id":12,"layers_parameter":"LAYERS=12","description":"Display only Submarine cables and pipelines","feature_description":"","is_json_object":false},{"uuid":"all_isolated_dangers","layer":"All isolated dangers","layer_id":13,"layers_parameter":"LAYERS=13","description":"Display only All isolated dangers","feature_description":"","is_json_object":false},{"uuid":"magnetic_variation","layer":"Magnetic variation","layer_id":14,"layers_parameter":"LAYERS=14","description":"Display only Magnetic variation","feature_description":"","is_json_object":false},{"uuid":"depth_contours","layer":"Depth contours","layer_id":15,"layers_parameter":"LAYERS=15","description":"Display only Depth contours","feature_description":"","is_json_object":false},{"uuid":"seabed","layer":"Seabed","layer_id":16,"layers_parameter":"LAYERS=16","description":"Display only Seabed","feature_description":"","is_json_object":false},{"uuid":"tidal","layer":"Tidal","layer_id":17,"layers_parameter":"LAYERS=17","description":"Display only Tidal","feature_description":"","is_json_object":false},{"uuid":"low_accuracy_symbol","layer":"Low accuracy symbol","layer_id":18,"layers_parameter":"LAYERS=18","description":"Display only Low accuracy symbol","feature_description":"","is_json_object":false},{"uuid":"shallow_water_pattern","layer":"Shallow Water Pattern","layer_id":19,"layers_parameter":"LAYERS=19","description":"Display only Shallow Water Pattern","feature_description":"","is_json_object":false},{"uuid":"other_miscellaneous","layer":"Other Miscellaneous","layer_id":20,"layers_parameter":"LAYERS=20","description":"Display only Other Miscellaneous","feature_description":"","is_json_object":false},{"uuid":"admiralty_information_overlay","layer":"Admiralty Information Overlay","layer_id":21,"layers_parameter":"LAYERS=21","description":"Display only Admiralty Information Overlay","feature_description":"","is_json_object":false}]},"h1":{"text":"2.3.1.2 LAYERS Parameter","uuid":"layers_parameter","ref":"2.3.1.2","title":"LAYERS","num":"2312"}},"using_standard_wms_getfeatureinfo_parameters":{"table":{"th":{"col_0":"parameter","col_1":"example_value","col_2":"description"},"tr":[{"uuid":"token","parameter":"Token","example_value":"<>","description":"Map Server Token will be auto-populated from the GenerateToken request detailed in section 2.2","is_json_object":false},{"uuid":"service","parameter":"SERVICE","example_value":"WMS","description":"Indicates the service requested is WMS","is_json_object":false},{"uuid":"request","parameter":"REQUEST","example_value":"GetFeatureInfo","description":"Indicates the request is a GetFeatureInfo request","is_json_object":false},{"uuid":"format","parameter":"FORMAT","example_value":"image/png","description":"The format of the map image","is_json_object":false},{"uuid":"transparent","parameter":"TRANSPARENT","example_value":"TRUE","description":"Sets background colour to transparent","is_json_object":false},{"uuid":"version","parameter":"VERSION","example_value":"1.3.0","description":"The WMS version","is_json_object":false},{"uuid":"width","parameter":"WIDTH","example_value":1000,"description":"Output image width","is_json_object":false},{"uuid":"height","parameter":"HEIGHT","example_value":1000,"description":"Output image Height","is_json_object":false},{"uuid":"crs","parameter":"CRS","example_value":"EPSG:3857","description":"Spatial Reference","is_json_object":false},{"uuid":"bbox","parameter":"BBOX","example_value":"-4199759.866962299,4999896.148476938, 3025679.5427769204,9055339.121174172","description":"The bounding box coordinates of the chart/map","is_json_object":false},{"uuid":"info_format","parameter":"info_format","example_value":"text/html","description":"The format of the GetFeatureInfo response. Can be text/html, text/xml or application/json (JSON requires additional parameter, see note below)","is_json_object":false},{"uuid":"query_layers","parameter":"query_layers","example_value":"21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0","description":"Optional list of Layers to query for info. Note that this is not honoured in AVCS as information from all features is required to be returned.","is_json_object":false},{"uuid":"i","parameter":"i","example_value":513,"description":"The x position of the query point on the chart/map image in pixels from the left (0 = left) of the image.","is_json_object":false},{"uuid":"j","parameter":"j","example_value":236,"description":"The y position of the query point on the chart/map image in pixels from the top (0 = top) of the image.","is_json_object":false},{"uuid":"userid","parameter":"UserId","example_value":123456,"description":"UserId should be specified according to entitlement (in practical terms this is the Fleet Manager Licence ID)","is_json_object":false},{"uuid":"userref","parameter":"userRef","example_value":"ABC123456","description":"Unique user reference specified by the distributor","is_json_object":false}]},"h1":{"text":"2.3.2 Using standard WMS GetFeatureInfo Parameters","uuid":"using_standard_wms_getfeatureinfo_parameters","ref":"2.3.2","title":"Using standard WMS GetFeatureInfo","num":"232"}},"forcecharts_wms_parameter":{"table":{"th":{"col_0":"parameter","col_1":"example","col_2":"description"},"tr":[{"uuid":"forcecharts","parameter":"forceCharts","example":"forceCharts=GB5X01NW,GB5X01NE,GB4X0000","description":"Precedence given to the charts listed in order specified.","is_json_object":false}]},"h1":{"text":"2.3.3.1 ForceCharts WMS Parameter","uuid":"forcecharts_wms_parameter","ref":"2.3.3.1","title":"ForceCharts WMS","num":"2331"},"h2":{"text":"2.3.3 Using AVCS Online specific WMS Parameters","uuid":"using_avcs_online_specific_wms_parameters","ref":"2.3.3","title":"Using AVCS Online specific WMS","num":"233"}},"displaycategory_display_parameter":{"table":{"th":{"col_0":"value","col_1":"category","col_2":"example_display_params_json","col_3":"description"},"tr":[{"uuid":"1","value":1,"category":"DISPLAYBASE","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplayCategory","value":"1"}]}}},"description":"Use DisplayBase category as per the S-52 standard","is_json_object":true},{"uuid":"2","value":2,"category":"STANDARD","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplayCategory","value":"2"}]}}},"description":"Use Standard category as per the S-52 standard","is_json_object":true},{"uuid":"4","value":4,"category":"OTHER","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplayCategory","value":"4"}]}}},"description":"Use Other category as per the S-52 standard","is_json_object":true}]},"h1":{"text":"2.3.3.3 DisplayCategory Display Parameter","uuid":"displaycategory_display_parameter","ref":"2.3.3.3","title":"DisplayCategory Display","num":"2333"},"h2":{"text":"2.3.3.2 Display_params WMS Parameter","uuid":"display_params_wms_parameter","ref":"2.3.3.2","title":"Display_params WMS","num":"2332"}},"safetycontour_display_parameter":{"table":{"th":{"col_0":"value","col_1":"example_display_params_json","col_2":"description"},"tr":[{"uuid":"0","value":0,"example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"SafetyContour","value":"0"}]}}},"description":"Use a SafetyContour value of 0 metres","is_json_object":true},{"uuid":"10","value":10,"example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"SafetyContour","value":"10"}]}}},"description":"Use a SafetyContour value of 10 metres","is_json_object":true},{"uuid":"30","value":30,"example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"SafetyContour","value":"30"}]}}},"description":"Use a SafetyContour value of 30 metres","is_json_object":true},{"uuid":"40","value":40,"example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"SafetyContour","value":"40"}]}}},"description":"Use a SafetyContour value of 40 metres","is_json_object":true}]},"h1":{"text":"2.3.3.4 SafetyContour Display Parameter","uuid":"safetycontour_display_parameter","ref":"2.3.3.4","title":"SafetyContour Display","num":"2334"}},"displayaiofeatures_display_parameter":{"table":{"th":{"col_0":"value","col_1":"features","col_2":"example_display_params_json","col_3":"description"},"tr":[{"uuid":"1","value":1,"features":"Temporary notice","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplayAIOFeatures","value":"1,5,6,7"}]}}},"description":"Display Temporary notice features","is_json_object":true},{"uuid":"2","value":2,"features":"Preliminary notice","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplayAIOFeatures","value":"2,5,6,7"}]}}},"description":"Display Preliminary notice features","is_json_object":true},{"uuid":"3","value":3,"features":"ENC Preliminary notice","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplayAIOFeatures","value":"3,5,6,7"}]}}},"description":"Display ENC Preliminary notice features","is_json_object":true},{"uuid":"4","value":4,"features":"No information","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplayAIOFeatures","value":"4,5,6,7"}]}}},"description":"Display No Information features","is_json_object":true}]},"h1":{"text":"2.3.3.5 DisplayAIOFeatures Display Parameter","uuid":"displayaiofeatures_display_parameter","ref":"2.3.3.5","title":"DisplayAIOFeatures Display","num":"2335"}},"textgroups_display_parameter":{"table":{"th":{"col_0":"textgroup","col_1":"example_display_params_json","col_2":"description"},"tr":[{"uuid":"important_text","textgroup":"Important Text","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"ParameterGroup":[{"name":"TextGroups","Parameter":[{"name":"11","value":1}]}]}}},"description":"ToggleOffImportant Text","is_json_object":true},{"uuid":"names_for_position_reporting","textgroup":"Names for position reporting","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"ParameterGroup":[{"name":"TextGroups","Parameter":[{"name":"21","value":1}]}]}}},"description":"ToggleOffNames for position reporting","is_json_object":true},{"uuid":"light_description_string","textgroup":"Light description string","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"ParameterGroup":[{"name":"TextGroups","Parameter":[{"name":"23","value":1}]}]}}},"description":"ToggleOffLight description string","is_json_object":true},{"uuid":"note_on_chart_data","textgroup":"Note on chart data","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"ParameterGroup":[{"name":"TextGroups","Parameter":[{"name":"24","value":1}]}]}}},"description":"ToggleOffNote on chart data","is_json_object":true},{"uuid":"nature_of_seabed","textgroup":"Nature of seabed","example_display_params_json":"{ \\"ECDISParameters\\":{ \\"version\\":\\"10.6.1\\", \\"DynamicParameters\\":{ \\"ParameterGroup\\":[{ \\"name\\":\\"TextGroups\\", \\"Parameter\\":[{ \\"name\\":\\"25\\", \\"value\\":1 }] } } } }","description":"ToggleOffNature of seabed","is_json_object":false},{"uuid":"geographic_names","textgroup":"Geographic names","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"ParameterGroup":[{"name":"TextGroups","Parameter":[{"name":"26","value":1}]}]}}},"description":"ToggleOffGeographic names","is_json_object":true},{"uuid":"magnetic_variation_and_swept_depth","textgroup":"Magnetic variation and swept depth","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"ParameterGroup":[{"name":"TextGroups","Parameter":[{"name":"27","value":1}]}]}}},"description":"ToggleOffMagnetic variation and swept depth","is_json_object":true},{"uuid":"height_of_islet_or_land_feature","textgroup":"Height of islet or land feature","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"ParameterGroup":[{"name":"TextGroups","Parameter":[{"name":"28","value":1}]}]}}},"description":"ToggleOffHeight of islet or land feature","is_json_object":true},{"uuid":"berth_number","textgroup":"Berth number","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"ParameterGroup":[{"name":"TextGroups","Parameter":[{"name":"29","value":1}]}]}}},"description":"ToggleOffBerth number","is_json_object":true},{"uuid":"current_velocity","textgroup":"Current Velocity","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"ParameterGroup":[{"name":"TextGroups","Parameter":[{"name":"30","value":1}]}]}}},"description":"ToggleOffCurrent Velocity","is_json_object":true}]},"h1":{"text":"2.3.3.6 TextGroups Display Parameter","uuid":"textgroups_display_parameter","ref":"2.3.3.6","title":"TextGroups Display","num":"2336"}},"areasymbolizationtype_display_parameter":{"table":{"th":{"col_0":"value","col_1":"areasymbolizationtype","col_2":"example_display_params_json","col_3":"description"},"tr":[{"uuid":"1","value":1,"areasymbolizationtype":"Plain boundaries","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"AreaSymbolizationType","value":1}]}}},"description":"Display Plain boundaries","is_json_object":true},{"uuid":"2","value":2,"areasymbolizationtype":"Symbolized boundaries","example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"AreaSymbolizationType","value":2}]}}},"description":"Display Symbolized boundaries","is_json_object":true}]},"h1":{"text":"2.3.3.7 AreaSymbolizationType Display Parameter","uuid":"areasymbolizationtype_display_parameter","ref":"2.3.3.7","title":"AreaSymbolizationType Display","num":"2337"}},"displaylightsectors_display_parameter":{"table":{"th":{"col_0":"value","col_1":"example_display_params_json","col_2":"description"},"tr":[{"uuid":"1","value":1,"example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplayLightSectors","value":1}]}}},"description":"ToggleOffLight Sectors","is_json_object":true},{"uuid":"2","value":2,"example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplayLightSectors","value":2}]}}},"description":"ToggleOnLight Sectors","is_json_object":true}]},"h1":{"text":"2.3.3.8 DisplayLightSectors Display Parameter","uuid":"displaylightsectors_display_parameter","ref":"2.3.3.8","title":"DisplayLightSectors Display","num":"2338"}},"twodepthshades_display_parameter":{"table":{"th":{"col_0":"value","col_1":"example_display_params_json","col_2":"description"},"tr":[{"uuid":"1","value":1,"example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"TwoDepthShades","value":1}]}}},"description":"ToggleOff- Use four depth area shades","is_json_object":true},{"uuid":"2","value":2,"example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"TwoDepthShades","value":2}]}}},"description":"ToggleOn- Use two depth area shades","is_json_object":true}]},"h1":{"text":"2.3.3.9 TwoDepthShades Display Parameter","uuid":"twodepthshades_display_parameter","ref":"2.3.3.9","title":"TwoDepthShades Display","num":"2339"}},"shallowcontour_display_parameter":{"table":{"th":{"col_0":"value","col_1":"example_display_params_json","col_2":"description"},"tr":[{"uuid":"10","value":10,"example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"ShallowContour","value":10}]}}},"description":"ShallowContour value set to 10 metres","is_json_object":true}]},"h1":{"text":"2.3.3.10 ShallowContour Display Parameter","uuid":"shallowcontour_display_parameter","ref":"2.3.3.10","title":"ShallowContour Display","num":"23310"}},"safetydepth_display_parameter":{"table":{"th":{"col_0":"value","col_1":"example_display_params_json","col_2":"description"},"tr":[{"uuid":"15","value":15,"example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"SafetyDepth","value":15}]}}},"description":"SafetyDepth value set to 15 metres","is_json_object":true}]},"h1":{"text":"2.3.3.11 SafetyDepth Display Parameter","uuid":"safetydepth_display_parameter","ref":"2.3.3.11","title":"SafetyDepth Display","num":"23311"}},"deepcontour_display_parameter":{"table":{"th":{"col_0":"value","col_1":"example_display_params_json","col_2":"description"},"tr":[{"uuid":"50","value":50,"example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DeepContour","value":50}]}}},"description":"DeepContour value set to 50 metres","is_json_object":true}]},"h1":{"text":"2.3.3.12 DeepContour Display Parameter","uuid":"deepcontour_display_parameter","ref":"2.3.3.12","title":"DeepContour Display","num":"23312"}},"displaysafesoundings_display_parameter":{"table":{"th":{"col_0":"value","col_1":"example_display_params_json","col_2":"description"},"tr":[{"uuid":"1","value":1,"example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplaySafeSoundings","value":1}]}}},"description":"ToggleOffdisplay of sounds that are deeper than the safety depth","is_json_object":true},{"uuid":"2","value":2,"example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DisplaySafeSoundings","value":2}]}}},"description":"ToggleOndisplay of all sounds","is_json_object":true}]},"h1":{"text":"2.3.3.13 DisplaySafeSoundings Display Parameter","uuid":"displaysafesoundings_display_parameter","ref":"2.3.3.13","title":"DisplaySafeSoundings Display","num":"23313"}},"datedependencyrange_display_parameter":{"table":{"th":{"col_0":"value","col_1":"example_display_params_json","col_2":"description"},"tr":[{"uuid":"1","value":1,"example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DateDependencyRange","value":"20190411"},{"name":"DateDependencySymbols","value":2}]}}},"description":"DateDependencyRange value set to YYYYMMDD, ToggleONdisplay Date Dependency Symbols","is_json_object":true},{"uuid":"2","value":2,"example_display_params_json":{"ECDISParameters":{"version":"10.6.1","DynamicParameters":{"Parameter":[{"name":"DateDependencyRange","value":"20190411"},{"name":"DateDependencySymbols","value":1}]}}},"description":"DateDependencyRange value set to YYYYMMDD, ToggleOFFdisplay Date Dependency Symbols","is_json_object":true}]},"h1":{"text":"2.3.3.14 DateDependencyRange Display Parameter","uuid":"datedependencyrange_display_parameter","ref":"2.3.3.14","title":"DateDependencyRange Display","num":"23314"}},"notes_rest_request":{"table":{"th":{"col_0":"parameter","col_1":"example_value","col_2":"description"},"tr":[{"uuid":"token","parameter":"token","example_value":"<>","description":"Map Server Token will be auto-populated from the request detailed in section 2.2","is_json_object":false},{"uuid":"file","parameter":"file","example_value":"<> or <>","description":"The encrypted file path value obtained from feature attributes (txtdesc_token or picrep_token) returned in the GetFeatureInfo request results.","is_json_object":false},{"uuid":"f","parameter":"f","example_value":"text/plain","description":"Optional file type","is_json_object":false}]},"h1":{"text":"3. Notes REST Request","uuid":"notes_rest_request","ref":"3.","title":"Notes REST","num":"3"},"h2":{"text":"2.3.4 Full List of Display Parameters","uuid":"full_list_of_display_parameters","ref":"2.3.4","title":"Full List of Display","num":"234"}},"response_codes":{"table":{"th":{"col_0":"code","col_1":"meaning_and_possible_causes"},"tr":[{"uuid":"200","code":200,"meaning_and_possible_causes":"Successful Request","is_json_object":false},{"uuid":"522","code":522,"meaning_and_possible_causes":"Authorisation failed: Token could not be generated","is_json_object":false},{"uuid":"500","code":500,"meaning_and_possible_causes":"Internal Server Error","is_json_object":false}]},"h1":{"text":"4. Response Codes","uuid":"response_codes","ref":"4.","title":"Response","num":"4"}},"default_drawing_priority":{"table":{"th":{"col_0":"chart","col_1":"date","col_2":"scale"},"tr":[{"uuid":"it100350","chart":"IT100350","date":20180802,"scale":1500000,"is_json_object":false},{"uuid":"it100340","chart":"IT100340","date":20180426,"scale":1500000,"is_json_object":false},{"uuid":"gr1over1","chart":"GR1OVER1","date":20180423,"scale":1500000,"is_json_object":false},{"uuid":"tr100030","chart":"TR100030","date":20170803,"scale":1500000,"is_json_object":false}]},"h1":{"text":"5.1 Default Drawing Priority","uuid":"default_drawing_priority","ref":"5.1","title":"Default Drawing","num":"51"},"h2":{"text":"5. General Display Behaviour","uuid":"general_display_behaviour","ref":"5.","title":"General Display","num":"5"}}}')},"3a7b":function(t,e,n){"use strict";var i=n("ebb5"),r=n("b727").findIndex,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findIndex",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"3a9b":function(t,e,n){"use strict";var i=n("e330");t.exports=i({}.isPrototypeOf)},"3b4a":function(t,n,i){var r=i("0b07"),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=o},"3bbe":function(t,e,n){"use strict";var i=n("1787"),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o("Can't set "+r(t)+" as a prototype")}},"3c5d":function(t,e,n){"use strict";var i=n("da84"),r=n("c65b"),o=n("ebb5"),a=n("07fa"),s=n("182d"),l=n("7b0b"),c=n("d039"),h=i.RangeError,u=i.Int8Array,d=u&&u.prototype,p=d&&d.set,f=o.aTypedArray,m=o.exportTypedArrayMethod,g=!c((function(){var t=new Uint8ClampedArray(2);return r(p,t,{length:1,0:3},1),3!==t[1]})),y=g&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new u(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));m("set",(function(t){f(this);var e=s(arguments.length>1?arguments[1]:void 0,1),n=l(t);if(g)return r(p,this,n,e);var i=this.length,o=a(n),c=0;if(o+e>i)throw new h("Wrong length");while(c=n.length?s(void 0,!0):(t=i(n,r),e.index+=t.length,s(t,!1))}))},"3d5a":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.StreamCipher,r=e.algo,o=[],a=[],s=[],l=r.RabbitLegacy=i.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=l>>>16|4294901760&h,d=h<<16|65535&l;i[0]^=l,i[1]^=u,i[2]^=h,i[3]^=d,i[4]^=l,i[5]^=u,i[6]^=h,i[7]^=d;for(r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),t[e+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0;for(n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,o=i>>>16,l=((r*r>>>17)+r*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=i._createHelper(l)}(),t.RabbitLegacy}))},"3eb1":function(t,e,n){"use strict";var i=n("0f7c"),r=n("00ce"),o=n("d009"),a=n("0d25"),s=r("%Function.prototype.apply%"),l=r("%Function.prototype.call%"),c=r("%Reflect.apply%",!0)||i.call(l,s),h=n("71c9"),u=r("%Math.max%");t.exports=function(t){if("function"!==typeof t)throw new a("a function is required");var e=c(i,l,arguments);return o(e,1+u(0,t.length-(arguments.length-1)),!0)};var d=function(){return c(i,s,arguments)};h?h(t.exports,"apply",{value:d}):t.exports.apply=d},"3f8c":function(t,e,n){"use strict";t.exports={}},"3f95":function(t,e){t.exports="data:image/png;base64,i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5sIBkxGMrIQbQIS9gSlI0lVHDUD3sTD6IyYAydj6IwiCVns6OEBP5nfBq23CG3HfJoBNCwkybLrlihUk+H4dWij217uLgNYSJB/7bz+SVHduFYbgnpR2cM4qCMB1nVUAs1hueNKTIEvR49ZhCJ4/P5ROrIukaBNEoMPq2dZlo/3Q2fKQxpYp7Z5eF/8s3gEG5wtam7TdavUdhadp4RT8UGaCYJ9evvSpQSzw1y+afIbOUfVT4Ii86gYlEAAAAASUVORK5CYII="},"3fcc":function(t,e,n){"use strict";var i=n("ebb5"),r=n("b727").map,o=n("b6b7"),a=i.aTypedArray,s=i.exportTypedArrayMethod;s("map",(function(t){return r(a(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(o(t))(e)}))}))},4002:function(t,e,n){"use strict";n("3ca3");var i,r=n("23e7"),o=n("83ab"),a=n("f354"),s=n("da84"),l=n("0366"),c=n("e330"),h=n("cb2d"),u=n("edd0"),d=n("19aa"),p=n("1a2d"),f=n("60da"),m=n("4df4"),g=n("f36a"),y=n("6547").codeAt,_=n("5fb2"),v=n("577e"),b=n("d44e"),w=n("d6d6"),x=n("5352"),L=n("69f3"),M=L.set,k=L.getterFor("URL"),T=x.URLSearchParams,A=x.getState,E=s.URL,S=s.TypeError,P=s.parseInt,O=Math.floor,D=Math.pow,I=c("".charAt),R=c(/./.exec),j=c([].join),C=c(1..toString),N=c([].pop),z=c([].push),G=c("".replace),B=c([].shift),Z=c("".split),U=c("".slice),Y=c("".toLowerCase),W=c([].unshift),F="Invalid authority",V="Invalid scheme",Q="Invalid host",H="Invalid port",J=/[a-z]/i,X=/[\d+-.a-z]/i,K=/\d/,q=/^0x/i,$=/^[0-7]+$/,tt=/^\d+$/,et=/^[\da-f]+$/i,nt=/[\0\t\n\r #%/:<>?@[\\\]^|]/,it=/[\0\t\n\r #/:<>?@[\\\]^|]/,rt=/^[\u0000-\u0020]+/,ot=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,at=/[\t\n\r]/g,st=function(t){var e,n,i,r,o,a,s,l=Z(t,".");if(l.length&&""===l[l.length-1]&&l.length--,e=l.length,e>4)return t;for(n=[],i=0;i1&&"0"===I(r,0)&&(o=R(q,r)?16:8,r=U(r,8===o?1:2)),""===r)a=0;else{if(!R(10===o?tt:8===o?$:et,r))return t;a=P(r,o)}z(n,a)}for(i=0;i=D(256,5-e))return null}else if(a>255)return null;for(s=N(n),i=0;i6)return;i=0;while(d()){if(r=null,i>0){if(!("."===d()&&i<4))return;u++}if(!R(K,d()))return;while(R(K,d())){if(o=P(d(),10),null===r)r=o;else{if(0===r)return;r=10*r+o}if(r>255)return;u++}l[c]=256*l[c]+r,i++,2!==i&&4!==i||c++}if(4!==i)return;break}if(":"===d()){if(u++,!d())return}else if(d())return;l[c++]=e}else{if(null!==h)return;u++,c++,h=c}}if(null!==h){a=c-h,c=7;while(0!==c&&a>0)s=l[c],l[c--]=l[h+a-1],l[h+--a]=s}else if(8!==c)return;return l},ct=function(t){for(var e=null,n=1,i=null,r=0,o=0;o<8;o++)0!==t[o]?(r>n&&(e=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(e=i,n=r),e},ht=function(t){var e,n,i,r;if("number"==typeof t){for(e=[],n=0;n<4;n++)W(e,t%256),t=O(t/256);return j(e,".")}if("object"==typeof t){for(e="",i=ct(t),n=0;n<8;n++)r&&0===t[n]||(r&&(r=!1),i===n?(e+=n?":":"::",r=!0):(e+=C(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},ut={},dt=f({},ut,{" ":1,'"':1,"<":1,">":1,"`":1}),pt=f({},dt,{"#":1,"?":1,"{":1,"}":1}),ft=f({},pt,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),mt=function(t,e){var n=y(t,0);return n>32&&n<127&&!p(e,t)?t:encodeURIComponent(t)},gt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},yt=function(t,e){var n;return 2===t.length&&R(J,I(t,0))&&(":"===(n=I(t,1))||!e&&"|"===n)},_t=function(t){var e;return t.length>1&&yt(U(t,0,2))&&(2===t.length||"/"===(e=I(t,2))||"\\"===e||"?"===e||"#"===e)},vt=function(t){return"."===t||"%2e"===Y(t)},bt=function(t){return t=Y(t),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},wt={},xt={},Lt={},Mt={},kt={},Tt={},At={},Et={},St={},Pt={},Ot={},Dt={},It={},Rt={},jt={},Ct={},Nt={},zt={},Gt={},Bt={},Zt={},Ut=function(t,e,n){var i,r,o,a=v(t);if(e){if(r=this.parse(a),r)throw new S(r);this.searchParams=null}else{if(void 0!==n&&(i=new Ut(n,!0)),r=this.parse(a,null,i),r)throw new S(r);o=A(new T),o.bindURL(this),this.searchParams=o}};Ut.prototype={type:"URL",parse:function(t,e,n){var r,o,a,s,l=this,c=e||wt,h=0,u="",d=!1,f=!1,y=!1;t=v(t),e||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,t=G(t,rt,""),t=G(t,ot,"$1")),t=G(t,at,""),r=m(t);while(h<=r.length){switch(o=r[h],c){case wt:if(!o||!R(J,o)){if(e)return V;c=Lt;continue}u+=Y(o),c=xt;break;case xt:if(o&&(R(X,o)||"+"===o||"-"===o||"."===o))u+=Y(o);else{if(":"!==o){if(e)return V;u="",c=Lt,h=0;continue}if(e&&(l.isSpecial()!==p(gt,u)||"file"===u&&(l.includesCredentials()||null!==l.port)||"file"===l.scheme&&!l.host))return;if(l.scheme=u,e)return void(l.isSpecial()&>[l.scheme]===l.port&&(l.port=null));u="","file"===l.scheme?c=Rt:l.isSpecial()&&n&&n.scheme===l.scheme?c=Mt:l.isSpecial()?c=Et:"/"===r[h+1]?(c=kt,h++):(l.cannotBeABaseURL=!0,z(l.path,""),c=Gt)}break;case Lt:if(!n||n.cannotBeABaseURL&&"#"!==o)return V;if(n.cannotBeABaseURL&&"#"===o){l.scheme=n.scheme,l.path=g(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,c=Zt;break}c="file"===n.scheme?Rt:Tt;continue;case Mt:if("/"!==o||"/"!==r[h+1]){c=Tt;continue}c=St,h++;break;case kt:if("/"===o){c=Pt;break}c=zt;continue;case Tt:if(l.scheme=n.scheme,o===i)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=g(n.path),l.query=n.query;else if("/"===o||"\\"===o&&l.isSpecial())c=At;else if("?"===o)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=g(n.path),l.query="",c=Bt;else{if("#"!==o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=g(n.path),l.path.length--,c=zt;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=g(n.path),l.query=n.query,l.fragment="",c=Zt}break;case At:if(!l.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,c=zt;continue}c=Pt}else c=St;break;case Et:if(c=St,"/"!==o||"/"!==I(u,h+1))continue;h++;break;case St:if("/"!==o&&"\\"!==o){c=Pt;continue}break;case Pt:if("@"===o){d&&(u="%40"+u),d=!0,a=m(u);for(var _=0;_65535)return H;l.port=l.isSpecial()&&x===gt[l.scheme]?null:x,u=""}if(e)return;c=Nt;continue}return H}u+=o;break;case Rt:if(l.scheme="file","/"===o||"\\"===o)c=jt;else{if(!n||"file"!==n.scheme){c=zt;continue}switch(o){case i:l.host=n.host,l.path=g(n.path),l.query=n.query;break;case"?":l.host=n.host,l.path=g(n.path),l.query="",c=Bt;break;case"#":l.host=n.host,l.path=g(n.path),l.query=n.query,l.fragment="",c=Zt;break;default:_t(j(g(r,h),""))||(l.host=n.host,l.path=g(n.path),l.shortenPath()),c=zt;continue}}break;case jt:if("/"===o||"\\"===o){c=Ct;break}n&&"file"===n.scheme&&!_t(j(g(r,h),""))&&(yt(n.path[0],!0)?z(l.path,n.path[0]):l.host=n.host),c=zt;continue;case Ct:if(o===i||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&yt(u))c=zt;else if(""===u){if(l.host="",e)return;c=Nt}else{if(s=l.parseHost(u),s)return s;if("localhost"===l.host&&(l.host=""),e)return;u="",c=Nt}continue}u+=o;break;case Nt:if(l.isSpecial()){if(c=zt,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==i&&(c=zt,"/"!==o))continue}else l.fragment="",c=Zt;else l.query="",c=Bt;break;case zt:if(o===i||"/"===o||"\\"===o&&l.isSpecial()||!e&&("?"===o||"#"===o)){if(bt(u)?(l.shortenPath(),"/"===o||"\\"===o&&l.isSpecial()||z(l.path,"")):vt(u)?"/"===o||"\\"===o&&l.isSpecial()||z(l.path,""):("file"===l.scheme&&!l.path.length&&yt(u)&&(l.host&&(l.host=""),u=I(u,0)+":"),z(l.path,u)),u="","file"===l.scheme&&(o===i||"?"===o||"#"===o))while(l.path.length>1&&""===l.path[0])B(l.path);"?"===o?(l.query="",c=Bt):"#"===o&&(l.fragment="",c=Zt)}else u+=mt(o,pt);break;case Gt:"?"===o?(l.query="",c=Bt):"#"===o?(l.fragment="",c=Zt):o!==i&&(l.path[0]+=mt(o,ut));break;case Bt:e||"#"!==o?o!==i&&("'"===o&&l.isSpecial()?l.query+="%27":l.query+="#"===o?"%23":mt(o,ut)):(l.fragment="",c=Zt);break;case Zt:o!==i&&(l.fragment+=mt(o,dt));break}h++}},parseHost:function(t){var e,n,i;if("["===I(t,0)){if("]"!==I(t,t.length-1))return Q;if(e=lt(U(t,1,-1)),!e)return Q;this.host=e}else if(this.isSpecial()){if(t=_(t),R(nt,t))return Q;if(e=st(t),null===e)return Q;this.host=e}else{if(R(it,t))return Q;for(e="",n=m(t),i=0;i1?arguments[1]:void 0,i=M(e,new Ut(t,!1,n));o||(e.href=i.serialize(),e.origin=i.getOrigin(),e.protocol=i.getProtocol(),e.username=i.getUsername(),e.password=i.getPassword(),e.host=i.getHost(),e.hostname=i.getHostname(),e.port=i.getPort(),e.pathname=i.getPathname(),e.search=i.getSearch(),e.searchParams=i.getSearchParams(),e.hash=i.getHash())},Wt=Yt.prototype,Ft=function(t,e){return{get:function(){return k(this)[t]()},set:e&&function(t){return k(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(u(Wt,"href",Ft("serialize","setHref")),u(Wt,"origin",Ft("getOrigin")),u(Wt,"protocol",Ft("getProtocol","setProtocol")),u(Wt,"username",Ft("getUsername","setUsername")),u(Wt,"password",Ft("getPassword","setPassword")),u(Wt,"host",Ft("getHost","setHost")),u(Wt,"hostname",Ft("getHostname","setHostname")),u(Wt,"port",Ft("getPort","setPort")),u(Wt,"pathname",Ft("getPathname","setPathname")),u(Wt,"search",Ft("getSearch","setSearch")),u(Wt,"searchParams",Ft("getSearchParams")),u(Wt,"hash",Ft("getHash","setHash"))),h(Wt,"toJSON",(function(){return k(this).serialize()}),{enumerable:!0}),h(Wt,"toString",(function(){return k(this).serialize()}),{enumerable:!0}),E){var Vt=E.createObjectURL,Qt=E.revokeObjectURL;Vt&&h(Yt,"createObjectURL",l(Vt,E)),Qt&&h(Yt,"revokeObjectURL",l(Qt,E))}b(Yt,"URL"),r({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Yt})},4015:function(t,e,n){var i=n("c1f7"),r=n("ed5e"),o=n("64af");t.exports.circle=function(t,e,n){t=L.latLng(t),n=n||{};var r=n.parts||20;function a(t){for(var n=[],a=e/o.RADIUS*180/Math.PI,s=0;s90-t.lat&&n.push([n[0][0],t.lng+180],[90,t.lng+180],[90,t.lng-180],[n[0][0],t.lng-180]),a>90+t.lat&&n.splice(1+(r>>1),0,[n[r>>1][0],t.lng-180],[-90,t.lng-180],[-90,t.lng+180],[n[r>>1][0],t.lng+180]),n}var s=L.polygon(a(t),n);return s.setLatLng=function(e){return t=e,s.setLatLngs(a(t)),s},s.getRadius=function(t){return e},s.setRadius=function(n){return e=n,s.setLatLngs(a(t)),s},s},t.exports.area=function(t){var e=t.toGeoJSON();return r(e.geometry)}},"408a":function(t,e,n){"use strict";var i=n("e330");t.exports=i(1..valueOf)},"40d5":function(t,e,n){"use strict";var i=n("d039");t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"40e9":function(t,e,n){"use strict";var i=n("23e7"),r=n("41f6");r&&i({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return r(this,arguments.length?arguments[0]:void 0,!1)}})},4127:function(t,e,n){"use strict";var i=n("5402"),r=n("d233"),o=n("b313"),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},l=Array.isArray,c=Array.prototype.push,h=function(t,e){c.apply(t,l(e)?e:[e])},u=Date.prototype.toISOString,d=o["default"],p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(t){return u.call(t)},skipNulls:!1,strictNullHandling:!1},f=function(t){return"string"===typeof t||"number"===typeof t||"boolean"===typeof t||"symbol"===typeof t||"bigint"===typeof t},m={},g=function t(e,n,o,a,s,c,u,d,g,y,_,v,b,w,x,L){var M=e,k=L,T=0,A=!1;while(void 0!==(k=k.get(m))&&!A){var E=k.get(e);if(T+=1,"undefined"!==typeof E){if(E===T)throw new RangeError("Cyclic object value");A=!0}"undefined"===typeof k.get(m)&&(T=0)}if("function"===typeof d?M=d(n,M):M instanceof Date?M=_(M):"comma"===o&&l(M)&&(M=r.maybeMap(M,(function(t){return t instanceof Date?_(t):t}))),null===M){if(s)return u&&!w?u(n,p.encoder,x,"key",v):n;M=""}if(f(M)||r.isBuffer(M)){if(u){var S=w?n:u(n,p.encoder,x,"key",v);return[b(S)+"="+b(u(M,p.encoder,x,"value",v))]}return[b(n)+"="+b(String(M))]}var P,O=[];if("undefined"===typeof M)return O;if("comma"===o&&l(M))w&&u&&(M=r.maybeMap(M,u)),P=[{value:M.length>0?M.join(",")||null:void 0}];else if(l(d))P=d;else{var D=Object.keys(M);P=g?D.sort(g):D}for(var I=a&&l(M)&&1===M.length?n+"[]":n,R=0;R0?b+v:""}},4138:function(module,exports){ /*! * * leaflet.motion - v0.2.4 (https://github.com/Igor-Vladyka/leaflet.motion#readme) * Animation plugin for Leaflet.js * * MIT (http://www.opensource.org/licenses/mit-license.php) * (c) 2020 Igor Vladyka (https://github.com/Igor-Vladyka/) * */(function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)})({"./src/layer/leaflet.motion.group.js": /*!*******************************************!*\ !*** ./src/layer/leaflet.motion.group.js ***! \*******************************************/ /*! no static exports found */function(module,exports){eval('/**\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Igor Vladyka (https://github.com/Igor-Vladyka/leaflet.motion)\n**/\n\nL.Motion.Group = L.FeatureGroup.extend ({\n\toptions: {\n\t\tpane: L.Motion.Animate.options.pane,\n\t\tattribution: L.Motion.Animate.options.attribution,\n\t},\n\n\t/**\n\t\tStarts all motions in current group;\n\t*/\n\tmotionStart: function () {\n\t\tthis.invoke("motionStart");\n\t\tthis.fire(L.Motion.Event.Started, {layer: this}, false);\n\t\treturn this;\n\t},\n\n\t/**\n\t\tStops all motions in current group;\n\t*/\n\tmotionStop: function () {\n\t\tthis.invoke("motionStop");\n\t\tthis.fire(L.Motion.Event.Ended, {layer: this}, false);\n\t\treturn this;\n\t},\n\n\t/**\n\t\tPauses all motions in current group;\n\t*/\n\tmotionPause: function () {\n\t\tthis.invoke("motionPause");\n\t\tthis.fire(L.Motion.Event.Paused, {layer: this}, false);\n\t\treturn this;\n\t},\n\n\t/**\n\t\tReset all motions in current group;\n\t*/\n\tmotionResume: function () {\n\t\tthis.invoke("motionResume");\n\t\tthis.fire(L.Motion.Event.Resumed, {layer: this}, false);\n\t\treturn this;\n\t},\n\n\t/**\n\t\tReset all motions in current group;\n\t*/\n\tmotionToggle: function () {\n\t\tthis.invoke("motionToggle");\n\t\treturn this;\n\t},\n\n\t/**\n\t\tReturns markers array from all inner layers without flattering.\n\t*/\n\tgetMarkers: function () {\n\t\treturn this.getLayers().map(function(l) { return l.getMarkers(); });\n\t}\n});\n\nL.motion.group = function(motions, options){\n return new L.Motion.Group(motions, options);\n};\n\n\n//# sourceURL=webpack:///./src/layer/leaflet.motion.group.js?')},"./src/layer/leaflet.motion.polygon.js": /*!*********************************************!*\ !*** ./src/layer/leaflet.motion.polygon.js ***! \*********************************************/ /*! no static exports found */function(module,exports){eval("/**\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Igor Vladyka (https://github.com/Igor-Vladyka/leaflet.motion)\n**/\n\nL.Motion.Polygon = L.Polygon.extend(L.Motion.Animate);\n\nL.motion.polygon = function(latlngs, options, motionOptions, markerOptions){\n return new L.Motion.Polygon(latlngs, options, motionOptions, markerOptions);\n};\n\n\n//# sourceURL=webpack:///./src/layer/leaflet.motion.polygon.js?")},"./src/layer/leaflet.motion.polyline.js": /*!**********************************************!*\ !*** ./src/layer/leaflet.motion.polyline.js ***! \**********************************************/ /*! no static exports found */function(module,exports){eval("/**\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Igor Vladyka (https://github.com/Igor-Vladyka/leaflet.motion)\n**/\n\nL.Motion.Polyline = L.Polyline.extend(L.Motion.Animate);\n\nL.motion.polyline = function(latlngs, options, motionOptions, markerOptions){\n return new L.Motion.Polyline(latlngs, options, motionOptions, markerOptions);\n};\n\n\n//# sourceURL=webpack:///./src/layer/leaflet.motion.polyline.js?")},"./src/layer/leaflet.motion.seq.js": /*!*****************************************!*\ !*** ./src/layer/leaflet.motion.seq.js ***! \*****************************************/ /*! no static exports found */function(module,exports){eval('/**\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Igor Vladyka (https://github.com/Igor-Vladyka/leaflet.motion)\n**/\n\nL.Motion.Seq = L.Motion.Group.extend ({\n\t_activeLayer: null,\n\n\t/**\n\t\tStart first motion in current group;\n\t*/\n\tmotionStart: function() {\n\t\tvar layer = this.getFirstLayer();\n\t\tif (layer) {\n\t\t\tthis.__prepareStart();\n\t\t\tlayer.motionStart();\n\t\t\tthis.fire(L.Motion.Event.Started, {layer: this}, false);\n\t\t}\n\n\t\treturn this;\n\t},\n\n\t/**\n\t\tStops all motions in current group;\n\t*/\n\tmotionStop: function() {\n\t\tthis.invoke("motionStop");\n\t\tthis._activeLayer = null;\n\t\tthis.fire(L.Motion.Event.Ended, {layer: this}, false);\n\n\t\treturn this;\n\t},\n\n\t/**\n\t\tPause current motion in current group;\n\t*/\n\tmotionPause: function() {\n\t\tif (this._activeLayer) {\n\t\t\tthis._activeLayer.motionPause();\n\t\t\tthis.fire(L.Motion.Event.Paused, {layer: this}, false);\n\t\t}\n\n\t\treturn this;\n\t},\n\n\t/**\n\t\tResume last motion in current group;\n\t*/\n\tmotionResume: function() {\n\t\tif (this._activeLayer) {\n\t\t\tthis._activeLayer.motionResume();\n\t\t\tthis.fire(L.Motion.Event.Resumed, {layer: this}, false);\n\t\t}\n\n\t\treturn this;\n\t},\n\n\t/**\n\t\tReset all motions in current group;\n\t*/\n\tmotionToggle: function () {\n\t\tif (this._activeLayer) {\n\t\t\tthis.motionPause();\n\t\t} else {\n\t\t\tthis.motionResume();\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tgetFirstLayer: function() {\n\t\tvar allLayers = this.getLayers();\n\t\treturn allLayers.length ? allLayers[0] : null;\n\t},\n\n\t__prepareStart: function() {\n\t\tvar self = this;\n\t\tthis.getLayers().forEach(function(l){\n\t\t\tl.setLatLngs([]);\n\t\t\t\n\t\t\tl.off(L.Motion.Event.Ended, self.__clearActiveLayer__, self);\n\t\t\tl.on(L.Motion.Event.Ended, self.__clearActiveLayer__, self);\n\n\t\t\tl.off(L.Motion.Event.Started, self.__putActiveLayer__, self);\n\t\t\tl.on(L.Motion.Event.Started, self.__putActiveLayer__, self);\n\t\t});\n\t},\n\n\t__clearActiveLayer__: function (e) {\n\t\tthis._activeLayer = null;\n\t\tvar layers = this.getLayers();\n\t\tvar currentId = e.layer._leaflet_id;\n\t\tvar currentObject = layers.filter(function(f){ return f._leaflet_id == currentId })[0];\n\t\tvar nextIndex = layers.indexOf(currentObject) + 1;\n\t\tif (layers.length > nextIndex) {\n\t\t\tlayers[nextIndex].motionStart();\n\t\t} else {\n\t\t\tthis.fire(L.Motion.Event.Ended, {layer: this}, false);\n\t\t}\n\t},\n\n\t__putActiveLayer__: function (e) {\n\t\tthis._activeLayer = e.layer;\n\t\tthis.fire(L.Motion.Event.Section, {layer: this._activeLayer}, false);\n\t}\n});\n\nL.motion.seq = function(motion, options){\n return new L.Motion.Seq(motion, options);\n};\n\n\n//# sourceURL=webpack:///./src/layer/leaflet.motion.seq.js?')},"./src/leaflet.motion.easing.js": /*!**************************************!*\ !*** ./src/leaflet.motion.easing.js ***! \**************************************/ /*! no static exports found */function(module,exports){eval("/**\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Igor Vladyka (https://github.com/Igor-Vladyka/leaflet.motion)\n**/\n\nL.Motion.Ease = {\n\tlinear: function( x ) {\n\t\treturn x;\n\t},\n\tswing: function( x ) {\n\t\treturn 0.5 - Math.cos( x * Math.PI ) / 2;\n\t},\n\teaseInQuad: function (x, t, b, c, d) {\n\t\treturn c*(t/=d)*t + b;\n\t},\n\teaseOutQuad: function (x, t, b, c, d) {\n\t\treturn -c *(t/=d)*(t-2) + b;\n\t},\n\teaseInOutQuad: function (x, t, b, c, d) {\n\t\tif ((t/=d/2) < 1) return c/2*t*t + b;\n\t\treturn -c/2 * ((--t)*(t-2) - 1) + b;\n\t},\n\teaseInCubic: function (x, t, b, c, d) {\n\t\treturn c*(t/=d)*t*t + b;\n\t},\n\teaseOutCubic: function (x, t, b, c, d) {\n\t\treturn c*((t=t/d-1)*t*t + 1) + b;\n\t},\n\teaseInOutCubic: function (x, t, b, c, d) {\n\t\tif ((t/=d/2) < 1) return c/2*t*t*t + b;\n\t\treturn c/2*((t-=2)*t*t + 2) + b;\n\t},\n\teaseInQuart: function (x, t, b, c, d) {\n\t\treturn c*(t/=d)*t*t*t + b;\n\t},\n\teaseOutQuart: function (x, t, b, c, d) {\n\t\treturn -c * ((t=t/d-1)*t*t*t - 1) + b;\n\t},\n\teaseInOutQuart: function (x, t, b, c, d) {\n\t\tif ((t/=d/2) < 1) return c/2*t*t*t*t + b;\n\t\treturn -c/2 * ((t-=2)*t*t*t - 2) + b;\n\t},\n\teaseInQuint: function (x, t, b, c, d) {\n\t\treturn c*(t/=d)*t*t*t*t + b;\n\t},\n\teaseOutQuint: function (x, t, b, c, d) {\n\t\treturn c*((t=t/d-1)*t*t*t*t + 1) + b;\n\t},\n\teaseInOutQuint: function (x, t, b, c, d) {\n\t\tif ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;\n\t\treturn c/2*((t-=2)*t*t*t*t + 2) + b;\n\t},\n\teaseInSine: function (x, t, b, c, d) {\n\t\treturn -c * Math.cos(t/d * (Math.PI/2)) + c + b;\n\t},\n\teaseOutSine: function (x, t, b, c, d) {\n\t\treturn c * Math.sin(t/d * (Math.PI/2)) + b;\n\t},\n\teaseInOutSine: function (x, t, b, c, d) {\n\t\treturn -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;\n\t},\n\teaseInExpo: function (x, t, b, c, d) {\n\t\treturn (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;\n\t},\n\teaseOutExpo: function (x, t, b, c, d) {\n\t\treturn (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;\n\t},\n\teaseInOutExpo: function (x, t, b, c, d) {\n\t\tif (t==0) return b;\n\t\tif (t==d) return b+c;\n\t\tif ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;\n\t\treturn c/2 * (-Math.pow(2, -10 * --t) + 2) + b;\n\t},\n\teaseInCirc: function (x, t, b, c, d) {\n\t\treturn -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;\n\t},\n\teaseOutCirc: function (x, t, b, c, d) {\n\t\treturn c * Math.sqrt(1 - (t=t/d-1)*t) + b;\n\t},\n\teaseInOutCirc: function (x, t, b, c, d) {\n\t\tif ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;\n\t\treturn c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;\n\t},\n\teaseInElastic: function (x, t, b, c, d) {\n\t\tvar s=1.70158;var p=0;var a=c;\n\t\tif (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;\n\t\tif (a < Math.abs(c)) { a=c; var s=p/4; }\n\t\telse var s = p/(2*Math.PI) * Math.asin (c/a);\n\t\treturn -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;\n\t},\n\teaseOutElastic: function (x, t, b, c, d) {\n\t\tvar s=1.70158;var p=0;var a=c;\n\t\tif (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;\n\t\tif (a < Math.abs(c)) { a=c; var s=p/4; }\n\t\telse var s = p/(2*Math.PI) * Math.asin (c/a);\n\t\treturn a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;\n\t},\n\teaseInOutElastic: function (x, t, b, c, d) {\n\t\tvar s=1.70158;var p=0;var a=c;\n\t\tif (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);\n\t\tif (a < Math.abs(c)) { a=c; var s=p/4; }\n\t\telse var s = p/(2*Math.PI) * Math.asin (c/a);\n\t\tif (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;\n\t\treturn a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;\n\t},\n\teaseInBack: function (x, t, b, c, d, s) {\n\t\tif (s == undefined) s = 1.70158;\n\t\treturn c*(t/=d)*t*((s+1)*t - s) + b;\n\t},\n\teaseOutBack: function (x, t, b, c, d, s) {\n\t\tif (s == undefined) s = 1.70158;\n\t\treturn c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;\n\t},\n\teaseInOutBack: function (x, t, b, c, d, s) {\n\t\tif (s == undefined) s = 1.70158;\n\t\tif ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;\n\t\treturn c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;\n\t},\n\teaseInBounce: function (x, t, b, c, d) {\n\t\treturn c - L.Motion.Ease.easeOutBounce (x, d-t, 0, c, d) + b;\n\t},\n\teaseOutBounce: function (x, t, b, c, d) {\n\t\tif ((t/=d) < (1/2.75)) {\n\t\t\treturn c*(7.5625*t*t) + b;\n\t\t} else if (t < (2/2.75)) {\n\t\t\treturn c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;\n\t\t} else if (t < (2.5/2.75)) {\n\t\t\treturn c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;\n\t\t} else {\n\t\t\treturn c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;\n\t\t}\n\t},\n\teaseInOutBounce: function (x, t, b, c, d) {\n\t\tif (t < d/2) return L.Motion.Ease.easeInBounce (x, t*2, 0, c, d) * .5 + b;\n\t\treturn L.Motion.Ease.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;\n\t}\n};\n\n\n//# sourceURL=webpack:///./src/leaflet.motion.easing.js?")},"./src/leaflet.motion.js": /*!*******************************!*\ !*** ./src/leaflet.motion.js ***! \*******************************/ /*! no static exports found */function(module,exports){eval('/**\r\n\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\tAuthor Igor Vladyka (https://github.com/Igor-Vladyka/leaflet.motion)\r\n**/\r\n\r\nL.Motion = L.Motion || {\r\n\tEvent: {\r\n\t\t\tStarted:"motion-started",\r\n\t\t\tPaused: "motion-paused",\r\n\t\t\tResumed: "motion-resumed",\r\n\t\t\tSection: "motion-section",\r\n\t\t\tEnded: "motion-ended"\r\n\t\t}\r\n\t};\r\n\r\nL.motion = L.motion || {};\r\nL.Motion.Animate = {\r\n\toptions: {\r\n\t\tpane: "polymotionPane",\r\n\t\tattribution: "Leaflet.Motion © " + (new Date()).getFullYear() + " Igor Vladyka"\r\n\t},\r\n\r\n\tmotionOptions: {\r\n\t\tauto: false,\r\n\t\teasing: function(x){ return x; }, // linear\r\n\t\tspeed: 0, // KM/H\r\n\t\tduration: 0 // ms\r\n\t},\r\n\r\n\tmarkerOptions: undefined,\r\n\r\n\tinitialize: function (latlngs, options, motionOptions, markerOptions) {\r\n\t\tL.Util.setOptions(this, options);\r\n\t\tthis.motionOptions = L.Util.extend({}, this.motionOptions, motionOptions || {});\r\n\t\tthis.markerOptions = L.Util.extend({}, markerOptions || {});\r\n\r\n\t\tthis._bounds = L.latLngBounds();\r\n\t\tthis._linePoints = this._convertLatLngs(latlngs);\r\n\t\tif (!L.Motion.Utils.isFlat(this._linePoints)) {\r\n\t\t\tthis._linePoints = this._linePoints[0];\r\n\t\t}\r\n\r\n\t\tthis._initializeMarker();\r\n\t\tthis._latlngs = [];\r\n\t\tL.Util.stamp(this); // Enforce proper animation order;\r\n\t},\r\n\r\n\taddLatLng: function(latLng, ring) {\r\n\t\tlatLng = L.Motion.Utils.toLatLng(latLng);\r\n\t\tthis._linePoints.push(latLng);\r\n\t\tif (this._latlngs.length) {\r\n\t\t\tthis._latlngs.push(latLng);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/**\r\n @param {Map} map the Leaflet Map\r\n */\r\n\tbeforeAdd: function (map) {\r\n\t\tif (!map.getPane(this.options.pane)) {\r\n\t\t\tmap.createPane(this.options.pane).style.zIndex = 599;\r\n\t\t}\r\n\r\n\t\tthis._renderer = map.getRenderer(this);\r\n\t},\r\n\r\n\t/**\r\n @param {Map} map the Leaflet Map\r\n\t\t@return {MotionObject} this\r\n */\r\n onAdd: function (map) {\r\n\t\tthis._renderer._initPath(this);\r\n\t\tthis._reset();\r\n\t\tthis._renderer._addPath(this);\r\n\t\tif (this.__marker && this.markerOptions.showMarker) {\r\n\t\t\tthis.__marker.addTo(map);\r\n\t\t}\r\n\r\n\t\tif(this.__marker._icon && this.__marker._icon.children.length){\r\n\t\t\tvar baseRotationAngle = this.__marker._icon.children[0].getAttribute("motion-base");\r\n\t\t\tif(baseRotationAngle){\r\n\t\t\t\tthis.__marker._icon.children[0].style.transform = "rotate(" + baseRotationAngle + "deg)";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (this.motionOptions.auto) {\r\n\t\t\tthis.motionStart();\r\n\t\t}\r\n\r\n return this;\r\n },\r\n\r\n\t/**\r\n @param {Map} map the Leaflet Map\r\n */\r\n\tonRemove: function (map) {\r\n\t\tthis.motionStop();\r\n\t\tif (this.__marker) {\r\n\t\t\tmap.removeLayer(this.__marker);\r\n\t\t}\r\n\r\n\t\tthis._renderer._removePath(this);\r\n\t},\r\n\r\n\t/**\r\n @param {DateTime} startTime time from start animation\r\n */\r\n _motion: function (startTime) {\r\n\t\tvar ellapsedTime = (new Date()).getTime() - startTime;\r\n var durationRatio = 1; // 0 - 1\r\n\t\tif (this.motionOptions.duration) {\r\n\t\t\tdurationRatio = ellapsedTime / this.motionOptions.duration;\r\n\t\t}\r\n\r\n\t\tif (durationRatio < 1) {\r\n\t\t\tdurationRatio = this.motionOptions.easing(durationRatio, ellapsedTime, 0, 1, this.motionOptions.duration);\r\n\t\t\tvar nextPoint = L.Motion.Utils.interpolateOnLine(this._map, this._linePoints, durationRatio);\r\n\r\n\t\t\tL.Polyline.prototype.addLatLng.call(this, nextPoint.latLng);\r\n\t\t\tthis._drawMarker(nextPoint.latLng);\r\n\r\n\t\t\tthis.__ellapsedTime = ellapsedTime;\r\n\t\t\tthis.animation = L.Util.requestAnimFrame(function(){\r\n\t\t\t\tthis._motion(startTime);\r\n\t\t\t}, this);\r\n\t\t} else {\r\n\t\t\tthis.motionStop(true);\r\n\t\t}\r\n },\r\n\r\n\t/**\r\n\t\tDraws marker according to line position\r\n @param {LatLng} nextPoint next animation point\r\n */\r\n\t_drawMarker: function (nextPoint) {\r\n\t\tvar marker = this.getMarker();\r\n\t\tif (marker) {\r\n\t\t\tvar prevPoint = marker.getLatLng();\r\n\r\n\t\t\t// [0, 0] Means that marker is not added yet to the map\r\n\t\t\tvar initialPoints = this._linePoints[0];\r\n\t\t\tif (prevPoint.lat === initialPoints.lat && prevPoint.lng === initialPoints.lng) {\r\n\t\t\t\tmarker.addTo(this._map);\r\n\t\t\t\tmarker.addEventParent(this);\r\n\t\t\t} else {\r\n\t\t\t\tif (marker._icon && marker._icon.children.length) {\r\n\t\t\t\t\tvar needToRotateMarker = marker._icon.children[0].getAttribute("motion-base");\r\n\r\n\t\t\t\t\tif (needToRotateMarker) {\r\n\t\t\t\t\t\tvar motionMarkerOnLine = 0;\r\n\t\t\t\t\t\tif (needToRotateMarker && !isNaN(+needToRotateMarker)) {\r\n\t\t\t\t\t\t\tmotionMarkerOnLine = +needToRotateMarker;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tmarker._icon.children[0].style.transform = "rotate(-" + Math.round(L.Motion.Utils.getAngle(prevPoint, nextPoint) + motionMarkerOnLine) +"deg)";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tmarker.setLatLng(nextPoint);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n Removes marker from the map\r\n */\r\n\t_removeMarker: function (animEnded) {\r\n\t\tif (this.markerOptions && this.__marker) {\r\n\t\t\tif (!animEnded || this.markerOptions.removeOnEnd) {\r\n\t\t\t\tthis._map.removeLayer(this.__marker);\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n Initialize marker from marker options and add it to the map if needed\r\n */\r\n\t_initializeMarker: function () {\r\n\t\tif (this.markerOptions) {\r\n\t\t\tthis.__marker = L.marker(this._linePoints[0], this.markerOptions);\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n Starts animation of current object\r\n */\r\n\tmotionStart: function () {\r\n\t\tif (this._map && !this.animation) {\r\n\t\t\tif (!this.motionOptions.duration) {\r\n\t\t\t\tif (this.motionOptions.speed) {\r\n\t\t\t\t\tthis.motionOptions.duration = L.Motion.Utils.getDuration(this._map, this._linePoints, this.motionOptions.speed);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.motionOptions.duration = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.setLatLngs([]);\r\n\t this._motion((new Date).getTime());\r\n\t\t\tthis.fire(L.Motion.Event.Started, {layer: this}, false);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n },\r\n\r\n\t/**\r\n Stops animation of current object\r\n @param {LatLng[]} points full object points collection or empty collection for cleanup\r\n */\r\n motionStop: function (animEnded) {\r\n\t\tthis.motionPause();\r\n\t\tthis.setLatLngs(this._linePoints);\r\n\t\tthis.__ellapsedTime = null;\r\n\t\tthis._removeMarker(animEnded);\r\n\t\tthis.fire(L.Motion.Event.Ended, {layer: this}, false);\r\n\r\n\t\treturn this;\r\n },\r\n\r\n\t/**\r\n Pauses animation of current object\r\n */\r\n\tmotionPause: function () {\r\n\t\tif (this.animation) {\r\n\t\t\tL.Util.cancelAnimFrame(this.animation);\r\n\t\t\tthis.animation = null;\r\n\t\t\tthis.fire(L.Motion.Event.Paused, {layer: this}, false);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/**\r\n Resume animation of current object\r\n */\r\n\tmotionResume: function () {\r\n\t\tif (!this.animation && this.__ellapsedTime) {\r\n\t\t\tif (!this.motionOptions.duration) {\r\n\t\t\t\tif (this.motionOptions.speed) {\r\n\t\t\t\t\tthis.motionOptions.duration = L.Motion.Utils.getDuration(this._map, this._linePoints, this.motionOptions.speed);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.motionOptions.duration = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis._motion((new Date).getTime() - (this.__ellapsedTime));\r\n\t\t\tthis.fire(L.Motion.Event.Resumed, {layer: this}, false);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/**\r\n Toggles animation of current object; Start/Pause/Resume;\r\n */\r\n\tmotionToggle: function () {\r\n\t\tif (this.animation) {\r\n\t\t\tif (this.__ellapsedTime) {\r\n\t\t\t\tthis.motionPause();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (this.__ellapsedTime) {\r\n\t\t\t\tthis.motionResume();\r\n\t\t\t} else {\r\n\t\t\t\tthis.motionStart();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/**\r\n\t\tSetup motion duration at any time\r\n\t*/\r\n\tmotionDuration: function (duration) {\r\n\t\tvar prevDuration = this.motionSpeed.duration;\r\n\t\tthis.motionOptions.duration = duration || 0;\r\n\r\n\t\tif (this.animation && prevDuration) {\r\n\t\t\tthis.motionPause();\r\n\t\t this.__ellapsedTime = this.__ellapsedTime * (prevDuration / duration);\r\n\t\t this.motionOptions.duration = duration;\r\n\t\t\tthis.motionResume();\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/**\r\n\t\tSetup motion speed at any time\r\n\t*/\r\n\tmotionSpeed: function (speed) {\r\n\t\tvar prevSpeed = this.motionOptions.speed;\r\n\t\tthis.motionOptions.speed = speed || 0;\r\n\r\n\t\tif (this.animation && prevSpeed) {\r\n\t\t\tthis.motionPause();\r\n\t\t this.__ellapsedTime = this.__ellapsedTime * (prevSpeed / speed);\r\n\t\t this.motionOptions.duration = L.Motion.Utils.getDuration(this._map, this._linePoints, this.motionOptions.speed);\r\n\t\t\tthis.motionResume();\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/**\r\n\t\tReturns current constructed marker\r\n\t*/\r\n\tgetMarker: function () {\r\n\t\treturn this.__marker;\r\n\t},\r\n\r\n\t/**\r\n\t\tReturns markers array from all inner layers without flattering.\r\n\t*/\r\n\tgetMarkers: function () {\r\n\t\treturn [this.getMarker()];\r\n\t}\r\n}\r\n\n\n//# sourceURL=webpack:///./src/leaflet.motion.js?')},"./src/leaflet.motion.utils.js": /*!*************************************!*\ !*** ./src/leaflet.motion.utils.js ***! \*************************************/ /*! no static exports found */function(module,exports){eval("/**\r\n\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\tAuthor Igor Vladyka (https://github.com/Igor-Vladyka/leaflet.motion)\r\n**/\r\n\r\nL.Motion.Utils = {\r\n\t/**\r\n\t\tAttaches distances precalculated to current set of LatLng\r\n\t\t@param {L.Map} map Leaflet map to be calculate distances\r\n\t\t@param {Array|L.PolyLine} latlngs Set of geographical points\r\n\t\t@returns {Array|L.PolyLine} latlngs Set of geographical points with attached distances\r\n\t*/\r\n\tattachDistances: function(map, latLngs) {\r\n\t\tif (latLngs.length > 1) {\r\n\t\t\tfor (var i = 1; i < latLngs.length; i++) {\r\n\t\t\t\tlatLngs[i - 1].distanceToNextPoint = map.distance(latLngs[i - 1], latLngs[i]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn latLngs;\r\n\t},\r\n\r\n\t/**\r\n\t\tReturns the coordinate of the point located on a line at the specified ratio of the line length.\r\n\t\t@param {L.Map} map Leaflet map to be used for this method\r\n\t\t@param {Array|L.PolyLine} latlngs Set of geographical points\r\n\t\t@param {Number} ratio the length ratio, expressed as a decimal between 0 and 1, inclusive\r\n\t\t@returns {Object} an object with latLng ({LatLng}) and predecessor ({Number}), the index of the preceding vertex in the Polyline\r\n\t\t(-1 if the interpolated point is the first vertex)\r\n\t*/\r\n\tinterpolateOnLine: function (map, latLngs, ratio) {\r\n\t\tlatLngs = (latLngs instanceof L.Polyline) ? latLngs.getLatLngs() : latLngs;\r\n\t\tif (latLngs.length < 2) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tvar allDistancesCalculated = true;\r\n\t\tfor (var d = 0; d < latLngs.length - 1; d++) {\r\n\t\t\tif (!latLngs[d].distanceToNextPoint) {\r\n\t\t\t\tallDistancesCalculated = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!allDistancesCalculated) {\r\n\t\t\tthis.attachDistances(map, latLngs);\r\n\t\t}\r\n\r\n\t\t// ensure the ratio is between 0 and 1;\r\n\t\tratio = Math.max(Math.min(ratio, 1), 0);\r\n\r\n\t\tif (ratio === 0) {\r\n\t\t\treturn {\r\n\t\t\t\tlatLng: latLngs[0] instanceof L.LatLng ? latLngs[0] : L.latLng(latLngs[0]),\r\n\t\t\t\tpredecessor: -1\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tif (ratio == 1) {\r\n\t\t\treturn {\r\n\t\t\t\tlatLng: latLngs[latLngs.length -1] instanceof L.LatLng ? latLngs[latLngs.length -1] : L.latLng(latLngs[latLngs.length -1]),\r\n\t\t\t\tpredecessor: latLngs.length - 2\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\t// get full line length between points\r\n\t\tvar fullLength = 0;\r\n\t\tfor (var dIndex = 0; dIndex < latLngs.length - 1; dIndex++) {\r\n\t\t\tfullLength += latLngs[dIndex].distanceToNextPoint;\r\n\t\t}\r\n\r\n\t\t// Calculate expected ratio\r\n\t\tvar ratioDist = fullLength * ratio;\r\n\r\n\t\t// follow the line segments [ab], adding lengths,\r\n\t\t// until we find the segment where the points should lie on\r\n\t\tvar cumulativeDistanceToA = 0, cumulativeDistanceToB = 0;\r\n\t\tfor (var i = 0; cumulativeDistanceToB < ratioDist; i++) {\r\n\t\t\tvar pointA = latLngs[i], pointB = latLngs[i+1];\r\n\r\n\t\t\tcumulativeDistanceToA = cumulativeDistanceToB;\r\n\t\t\tcumulativeDistanceToB += pointA.distanceToNextPoint;\r\n\t\t}\r\n\r\n\t\tif (pointA == undefined && pointB == undefined) { // Happens when line has no length\r\n\t\t\tvar pointA = latLngs[0], pointB = latLngs[1], i = 1;\r\n\t\t}\r\n\r\n\t\t// compute the ratio relative to the segment [ab]\r\n\t\tvar segmentRatio = ((cumulativeDistanceToB - cumulativeDistanceToA) !== 0) ? ((ratioDist - cumulativeDistanceToA) / (cumulativeDistanceToB - cumulativeDistanceToA)) : 0;\r\n\t\treturn {\r\n\t\t\tlatLng: this.interpolateOnLatLngSegment(pointA, pointB, segmentRatio),\r\n\t\t\tpredecessor: i-1\r\n\t\t};\r\n\t},\r\n\r\n /**\r\n Returns the Point located on a segment at the specified ratio of the segment length.\r\n @param {L.Point} pA coordinates of point A\r\n @param {L.Point} pB coordinates of point B\r\n @param {Number} the length ratio, expressed as a decimal between 0 and 1, inclusive.\r\n @returns {L.Point} the interpolated point.\r\n */\r\n interpolateOnPointSegment: function (pA, pB, ratio) {\r\n return L.point(\r\n (pA.x * (1 - ratio)) + (ratio * pB.x),\r\n (pA.y * (1 - ratio)) + (ratio * pB.y)\r\n );\r\n },\r\n\r\n /**\r\n Returns the LatLng located on a segment at the specified ratio of the segment length.\r\n @param {L.LatLng} pA coordinates of LatLng A\r\n @param {L.LatLng} pB coordinates of LatLng B\r\n @param {Number} the length ratio, expressed as a decimal between 0 and 1, inclusive.\r\n @returns {L.LatLng} the interpolated LatLng.\r\n */\r\n interpolateOnLatLngSegment: function (pA, pB, ratio) {\r\n return L.latLng(\r\n (pA.lat * (1 - ratio)) + (ratio * pB.lat),\r\n (pA.lng * (1 - ratio)) + (ratio * pB.lng)\r\n );\r\n },\r\n\r\n\t/**\r\n\t\t@param {L.Map} map Leaflet map to be calculate distances\r\n @param {LatLng[]} linePoints of coordinates\r\n @return {Number} distance in meter\r\n */\r\n\tdistance: function(map, linePoints){\r\n\t\tvar distanceInMeter = 0;\r\n for (var i = 1; i < linePoints.length; i++) {\r\n distanceInMeter += map.distance(linePoints[i], linePoints[i - 1]);\r\n }\r\n\r\n return distanceInMeter;\r\n\t},\r\n\r\n\t/**\r\n\t\t@param {L.Map} map Leaflet map to be calculate distances\r\n @param {LatLng[]} collection of coordinates\r\n @param {Number} speed in KM/H\r\n @return {Number} duration in ms\r\n */\r\n\tgetDuration: function (map, collection, speed) {\r\n\t\tvar distance = L.Motion.Utils.distance(map, collection.map(function(m){ return L.Motion.Utils.toLatLng(m); })); // in meters;\r\n\t\treturn distance/(speed/3600); // m / (km/h * 1000 => m/h / (60 * 60)) => m / k/s (m/s * 1000) => 1000 * m / m/s => ms;\r\n\t},\r\n\r\n\ttoLatLng: function(a, b, c) {\r\n\t\tif (a instanceof L.LatLng) {\r\n\t\t\treturn a;\r\n\t\t}\r\n\t\tif (L.Util.isArray(a) && typeof a[0] !== 'object') {\r\n\t\t\tif (a.length === 3) {\r\n\t\t\t\treturn L.latLng(a[0], a[1], a[2]);\r\n\t\t\t}\r\n\t\t\tif (a.length === 2) {\r\n\t\t\t\treturn L.latLng(a[0], a[1]);\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif (a === undefined || a === null) {\r\n\t\t\treturn a;\r\n\t\t}\r\n\t\tif (typeof a === 'object' && 'lat' in a) {\r\n\t\t\treturn L.latLng(a.lat, 'lng' in a ? a.lng : a.lon, a.alt);\r\n\t\t}\r\n\t\tif (b === undefined) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn L.latLng(a, b, c);\r\n\t},\r\n\r\n\tgetAngle: function(prevPoint, nextPoint) {\r\n\t\tvar angle = Math.atan2(nextPoint.lat - prevPoint.lat, nextPoint.lng - prevPoint.lng) * 180 / Math.PI;\r\n\t\tif (angle < 0) {\r\n\t\t\tangle += 360;\r\n\t\t}\r\n\r\n\t\treturn angle;\r\n\t},\r\n\r\n\t// Leaflet -> geometries -> LineUtil\r\n\tisFlat: function (latlngs) {\r\n\t\treturn !L.Util.isArray(latlngs[0]) || (typeof latlngs[0][0] !== 'object' && typeof latlngs[0][0] !== 'undefined');\r\n\t}\r\n};\r\n\n\n//# sourceURL=webpack:///./src/leaflet.motion.utils.js?")},0: /*!*****************************************************************************************************************************************************************************************************************************************************!*\ !*** multi ./src/leaflet.motion.js ./src/leaflet.motion.utils.js ./src/leaflet.motion.easing.js ./src/layer/leaflet.motion.polyline.js ./src/layer/leaflet.motion.polygon.js ./src/layer/leaflet.motion.group.js ./src/layer/leaflet.motion.seq.js ***! \*****************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */function(module,exports,__webpack_require__){eval('__webpack_require__(/*! ./src/leaflet.motion.js */"./src/leaflet.motion.js");\n__webpack_require__(/*! ./src/leaflet.motion.utils.js */"./src/leaflet.motion.utils.js");\n__webpack_require__(/*! ./src/leaflet.motion.easing.js */"./src/leaflet.motion.easing.js");\n__webpack_require__(/*! ./src/layer/leaflet.motion.polyline.js */"./src/layer/leaflet.motion.polyline.js");\n__webpack_require__(/*! ./src/layer/leaflet.motion.polygon.js */"./src/layer/leaflet.motion.polygon.js");\n__webpack_require__(/*! ./src/layer/leaflet.motion.group.js */"./src/layer/leaflet.motion.group.js");\nmodule.exports = __webpack_require__(/*! ./src/layer/leaflet.motion.seq.js */"./src/layer/leaflet.motion.seq.js");\n\n\n//# sourceURL=webpack:///multi_./src/leaflet.motion.js_./src/leaflet.motion.utils.js_./src/leaflet.motion.easing.js_./src/layer/leaflet.motion.polyline.js_./src/layer/leaflet.motion.polygon.js_./src/layer/leaflet.motion.group.js_./src/layer/leaflet.motion.seq.js?')}})},"417b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAABACAYAAABP97SyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpiNDZkYTU5My1iMWZhLTE2NDctYmU4OC00ZTIwMTZhY2M1YWMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QkU5MUFBQjE3NEI4MTFFQUJCQjlBNUNBM0NBREFFQ0IiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QkU5MUFBQjA3NEI4MTFFQUJCQjlBNUNBM0NBREFFQ0IiIHhtcD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PT/J47OCvoSlSI/msD4ortzSU4DThVtjWOJgILNHy1k1nFQ3V/g5Rm52RbWhyM5Oo+a8DOZORs25lSXfxguquo6HHsPDLmW7GWWmUdekun6mLvcVcYymF4+m9VAzZCIHnBQ6ZtCa8xKecwzjup/wThSggXwdII8C5MVkhwJOOnwYpWsv1y2gLhngriggt+VeB5jOTRcx/1Fcvx43M27AxAEayCsA+SAW8wKn9mcOMgKNYDn+LQe6hcRz0rhpPgfmewbyIOa/UhowNpmok9nE8XwSczwNx/K25GAsfav9kMY8f7eH1EmZGrNMrU/+F8A8gfdnXL3TEb/2XnWzd+eMPq0LD4dH+QW26isws5MAsiDeUjOd0k5+W23/0G3GZV1B9mplFfOegnwbINda/7PgJdtmbZRJM3jtU/MNMzW9BfM9iutHAOre/BwjhY2N2pCNQ72EXy8C1PMAsJzKsxRZ0gYkBzz/k/XdBbguALOWZWKKwiGM9/9hzzufvWuwSvuGa7R3ZobCtVXi+QVaHQzpSm8vvTG7QEurrz6O1V7AN/+W/39QAkgZsE4/ef7Hu6yixJ0wRvovMhII5d+0Lp+96/3P+q3f+V66pG8++Xi6ft+1V39wcwOcW8ce6e90a6o5MYDb7SBlQDZ7bffvWDt5FfR//poCnAKcApwCnAKcApwCnAKcApwCnAKcApwC3KWK/jZeX76F4nfK4BRg+/U/AQYAeow4P+58bDoAAAAASUVORK5CYII="},"417f":function(t,e,n){"use strict";t.exports=EvalError},"41c3":function(t,e,n){var i=n("1a8c"),r=n("eac5"),o=n("ec8c"),a=Object.prototype,s=a.hasOwnProperty;function l(t){if(!i(t))return o(t);var e=r(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}t.exports=l},"41f6":function(t,e,n){"use strict";var i=n("da84"),r=n("e330"),o=n("7282"),a=n("0b25"),s=n("75bd"),l=n("b620"),c=n("36f2"),h=n("dbe5"),u=i.structuredClone,d=i.ArrayBuffer,p=i.DataView,f=i.TypeError,m=Math.min,g=d.prototype,y=p.prototype,_=r(g.slice),v=o(g,"resizable","get"),b=o(g,"maxByteLength","get"),w=r(y.getInt8),x=r(y.setInt8);t.exports=(h||c)&&function(t,e,n){var i,r=l(t),o=void 0===e?r:a(e),g=!v||!v(t);if(s(t))throw new f("ArrayBuffer is detached");if(h&&(t=u(t,{transfer:[t]}),r===o&&(n||g)))return t;if(r>=o&&(!n||g))i=_(t,0,o);else{var y=n&&!g&&b?{maxByteLength:b(t)}:void 0;i=new d(o,y);for(var L=new p(t),M=new p(i),k=m(o,r),T=0;T@^][^\s!#%&*+<=>@^]*>/,j=/a/g,C=/a/g,N=new T(j)!==j,z=m.MISSED_STICKY,G=m.UNSUPPORTED_Y,B=i&&(!N||z||L||M||_((function(){return C[k]=!1,T(j)!==j||T(C)===C||"/a/i"!==String(T(j,"i"))}))),Z=function(t){for(var e,n=t.length,i=0,r="",o=!1;i<=n;i++)e=P(t,i),"\\"!==e?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),r+=e):r+="[\\s\\S]":r+=e+P(t,++i);return r},U=function(t){for(var e,n=t.length,i=0,r="",o=[],a=c(null),s=!1,l=!1,h=0,u="";i<=n;i++){if(e=P(t,i),"\\"===e)e+=P(t,++i);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:S(R,I(t,i+1))&&(i+=2,l=!0),r+=e,h++;continue;case">"===e&&l:if(""===u||v(a,u))throw new E("Invalid capture group name");a[u]=!0,o[o.length]=[u,h],l=!1,u="";continue}l?u+=e:r+=e}return[r,o]};if(a("RegExp",B)){for(var Y=function(t,e){var n,i,r,o,a,c,h=u(A,this),m=d(t),g=void 0===e,y=[],_=t;if(!h&&m&&g&&t.constructor===Y)return t;if((m||u(A,t))&&(t=t.source,g&&(e=f(_))),t=void 0===t?"":p(t),e=void 0===e?"":p(e),_=t,L&&"dotAll"in j&&(i=!!e&&D(e,"s")>-1,i&&(e=O(e,/s/g,""))),n=e,z&&"sticky"in j&&(r=!!e&&D(e,"y")>-1,r&&G&&(e=O(e,/y/g,""))),M&&(o=U(t),t=o[0],y=o[1]),a=s(T(t,e),h?this:A,Y),(i||r||y.length)&&(c=b(a),i&&(c.dotAll=!0,c.raw=Y(Z(t),n)),r&&(c.sticky=!0),y.length&&(c.groups=y)),t!==_)try{l(a,"source",""===_?"(?:)":_)}catch(v){}return a},W=h(T),F=0;W.length>F;)g(Y,T,W[F++]);A.constructor=Y,Y.prototype=A,y(r,"RegExp",Y,{constructor:!0})}w("RegExp")},"4d64":function(t,e,n){"use strict";var i=n("fc6a"),r=n("23cb"),o=n("07fa"),a=function(t){return function(e,n,a){var s=i(e),l=o(s);if(0===l)return!t&&-1;var c,h=r(a,l);if(t&&n!==n){while(l>h)if(c=s[h++],c!==c)return!0}else for(;l>h;h++)if((t||h in s)&&s[h]===n)return t||h||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4d90":function(t,e,n){"use strict";var i=n("23e7"),r=n("0ccb").start,o=n("9a0c");i({target:"String",proto:!0,forced:o},{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},"4de4":function(t,e,n){"use strict";var i=n("23e7"),r=n("b727").filter,o=n("1dde"),a=o("filter");i({target:"Array",proto:!0,forced:!a},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var i=n("0366"),r=n("c65b"),o=n("7b0b"),a=n("9bdd"),s=n("e95a"),l=n("68ee"),c=n("07fa"),h=n("8418"),u=n("9a1f"),d=n("35a1"),p=Array;t.exports=function(t){var e=o(t),n=l(this),f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m;g&&(m=i(m,f>2?arguments[2]:void 0));var y,_,v,b,w,x,L=d(e),M=0;if(!L||this===p&&s(L))for(y=c(e),_=n?new this(y):p(y);y>M;M++)x=g?m(e[M],M):e[M],h(_,M,x);else for(b=u(e,L),w=b.next,_=n?new this:[];!(v=r(w,b)).done;M++)x=g?a(b,m,[v.value,M],!0):v.value,h(_,M,x);return _.length=M,_}},"4e82":function(t,e,n){"use strict";var i=n("23e7"),r=n("e330"),o=n("59ed"),a=n("7b0b"),s=n("07fa"),l=n("083a"),c=n("577e"),h=n("d039"),u=n("addb"),d=n("a640"),p=n("04d1"),f=n("d998"),m=n("2d00"),g=n("512c"),y=[],_=r(y.sort),v=r(y.push),b=h((function(){y.sort(void 0)})),w=h((function(){y.sort(null)})),x=d("sort"),L=!h((function(){if(m)return m<70;if(!(p&&p>3)){if(f)return!0;if(g)return g<603;var t,e,n,i,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)y.push({k:e+i,v:n})}for(y.sort((function(t,e){return e.v-t.v})),i=0;ic(n)?1:-1}};i({target:"Array",proto:!0,forced:M},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(L)return void 0===t?_(e):_(e,t);var n,i,r=[],c=s(e);for(i=0;i0?r(e,9007199254740991):0}},"50d8":function(t,e){function n(t,e){var n=-1,i=Array(t);while(++n")}));a("replace",(function(t,e,n){var o=S?"$":"$0";return[function(t,n){var i=f(this),o=h(t)?void 0:g(t,b);return o?r(o,t,i,n):r(e,p(i),t,n)},function(t,r){var a=l(this),s=p(t);if("string"==typeof r&&-1===k(r,o)&&-1===k(r,"$<")){var h=n(e,a,s,r);if(h.done)return h.value}var f=c(r);f||(r=p(r));var g,v=a.global;v&&(g=a.unicode,a.lastIndex=0);var b,E=[];while(1){if(b=_(a,s),null===b)break;if(M(E,b),!v)break;var S=p(b[0]);""===S&&(a.lastIndex=m(s,d(a.lastIndex),g))}for(var P="",O=0,D=0;D=O&&(P+=T(s,O,j)+I,O=j+R.length)}return P+T(s,O)}]}),!P||!E||S)},5352:function(t,e,n){"use strict";n("e260");var i=n("23e7"),r=n("da84"),o=n("157a"),a=n("c65b"),s=n("e330"),l=n("83ab"),c=n("f354"),h=n("cb2d"),u=n("edd0"),d=n("6964"),p=n("d44e"),f=n("dcc3"),m=n("69f3"),g=n("19aa"),y=n("1626"),_=n("1a2d"),v=n("0366"),b=n("f5df"),w=n("825a"),x=n("861d"),L=n("577e"),M=n("7c73"),k=n("5c6c"),T=n("9a1f"),A=n("35a1"),E=n("4754"),S=n("d6d6"),P=n("b622"),O=n("addb"),D=P("iterator"),I="URLSearchParams",R=I+"Iterator",j=m.set,C=m.getterFor(I),N=m.getterFor(R),z=o("fetch"),G=o("Request"),B=o("Headers"),Z=G&&G.prototype,U=B&&B.prototype,Y=r.RegExp,W=r.TypeError,F=r.decodeURIComponent,V=r.encodeURIComponent,Q=s("".charAt),H=s([].join),J=s([].push),X=s("".replace),K=s([].shift),q=s([].splice),$=s("".split),tt=s("".slice),et=/\+/g,nt=Array(4),it=function(t){return nt[t-1]||(nt[t-1]=Y("((?:%[\\da-f]{2}){"+t+"})","gi"))},rt=function(t){try{return F(t)}catch(e){return t}},ot=function(t){var e=X(t,et," "),n=4;try{return F(e)}catch(i){while(n)e=X(e,it(n--),rt);return e}},at=/[!'()~]|%20/g,st={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},lt=function(t){return st[t]},ct=function(t){return X(V(t),at,lt)},ht=f((function(t,e){j(this,{type:R,target:C(t).entries,index:0,kind:e})}),I,(function(){var t=N(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,E(void 0,!0);var i=e[n];switch(t.kind){case"keys":return E(i.key,!1);case"values":return E(i.value,!1)}return E([i.key,i.value],!1)}),!0),ut=function(t){this.entries=[],this.url=null,void 0!==t&&(x(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===Q(t,0)?tt(t,1):t:L(t)))};ut.prototype={type:I,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,i,r,o,s,l,c=this.entries,h=A(t);if(h){e=T(t,h),n=e.next;while(!(i=a(n,e)).done){if(r=T(w(i.value)),o=r.next,(s=a(o,r)).done||(l=a(o,r)).done||!a(o,r).done)throw new W("Expected sequence with length 2");J(c,{key:L(s.value),value:L(l.value)})}}else for(var u in t)_(t,u)&&J(c,{key:u,value:L(t[u])})},parseQuery:function(t){if(t){var e,n,i=this.entries,r=$(t,"&"),o=0;while(o0?arguments[0]:void 0,e=j(this,new ut(t));l||(this.size=e.entries.length)},pt=dt.prototype;if(d(pt,{append:function(t,e){var n=C(this);S(arguments.length,2),J(n.entries,{key:L(t),value:L(e)}),l||this.length++,n.updateURL()},delete:function(t){var e=C(this),n=S(arguments.length,1),i=e.entries,r=L(t),o=n<2?void 0:arguments[1],a=void 0===o?o:L(o),s=0;while(se.key?1:-1})),t.updateURL()},forEach:function(t){var e,n=C(this).entries,i=v(t,arguments.length>1?arguments[1]:void 0),r=0;while(r1?gt(arguments[1]):{})}}),y(G)){var yt=function(t){return g(this,Z),new G(t,arguments.length>1?gt(arguments[1]):{})};Z.constructor=yt,yt.prototype=Z,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:yt})}}t.exports={URLSearchParams:dt,getState:C}},5362:function(t,n,i){"use strict";i.d(n,"a",(function(){return ae})),i.d(n,"b",(function(){return se}));var r=i("5530"),o=(i("cb29"),i("14d9"),i("ade3")),a="kcolorMapName_NO_USE_COLOR_MAP",s=function(){var t=[[64,77,144],[64,77,144],[64,77,144],[61,121,110],[50,140,50],[140,133,49],[143,115,50],[117,52,68],[107,67,131],[67,93,133],[73,122,132],[115,135,139],[144,144,144],[144,144,144]],e={color:t,options:{},unit:[["m/s",0,.2,.4,.8,1.6],["mph",0,.4,.9,1.8,2.2,3.6],["km/h",0,.7,1.4,2.9,3.6,5.8],["kt",0,.4,.8,1.6,2,3.2]],config:{range:{min:0,max:3},colorPct:[0,0,0,.05,.0666666666666667,.116666666666667,.133333333333333,.233333333333333,.266666666666667,.48,.533333333333333,.843333333333333,.92,1]}},n=[[98,113,184],[98,113,184],[98,113,184],[98,113,184],[61,110,163],[74,148,170],[74,146,148],[77,142,124],[76,164,76],[103,164,54],[162,135,64],[162,109,92],[141,63,92],[151,75,145],[95,100,160],[91,136,161],[91,136,161]],i={color:n,options:{},unit:[["kt",0,5,10,20,30,40,60],["m/s",0,3,5,10,15,20,30],["mph",0,6,10,20,35,45,70],["km/h",0,10,20,35,55,70,100],["bft",0,2,3,5,7,8,11]],config:{range:{min:0,max:75},colorPct:[0,0,0,.05,.0666666666666667,.111333333333333,.133333333333333,.233333333333333,.266666666666667,.36,.4,.4884,.533333333333333,.7436,.8,.938,1]}},r=[[50,158,186],[50,158,186],[50,158,186],[50,158,186],[48,128,164],[48,99,142],[52,101,166],[56,104,192],[56,83,169],[57,61,143],[150,41,149],[134,48,49],[194,76,91],[192,118,105],[192,162,157],[192,162,157]],s={color:r,options:{alpha:.7},unit:[["m",.5,1,1.5,2,6,9],["ft",1.6,3.3,5,6.6,20,30]],config:{range:{min:0,max:10},colorPct:[0,.017,.034,.05,.08,.1,.126,.15,.176,.2,.55,.6,.828,.9,1]}};return Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])({},ae.WEATHER_WAVE_GRAY,s),ae.WEATHER_WIND_GRAY,i),ae.WEATHER_CURRENT_GRAY,e),"default",e),a,e)},l=i("10d6"),c=i("823b"),h=(i("4e82"),i("a9e3"),i("d3b7"),i("e6cf"),i("bc3a")),u=i.n(h),d=i("7a1d"),p=i("ef1d"),f=i("e6af"),m=p["Layer"].extend({initialize:function(t,e){this._url=t,p["Util"].setOptions(this,e||{}),this.targetPane="tilePane",this._showCanvasOn=!0,this.onInit(),this.valuecache={},this._urlCounter=0},addTo:function(t){return this.failed=!1,t.addLayer(this),this},onAdd:function(t){this._map=t;var e=t.getSize(),n=t.options.zoomAnimation&&p["Browser"].any3d;if(this._canvas=p["DomUtil"].create("canvas","leaflet-canvas"),this.onResizeCanvas(e.x,e.y),p["DomUtil"].addClass(this._canvas,"leaflet-layer leaflet-zoom-"+(n?"animated":"hide")),t.getPanes()[this.targetPane].appendChild(this._canvas),!this.onCreateCanvas(this._canvas))return this.failed=!0,void this.onCanvasFailed();this._canvas.style.zIndex=80,t.on("resize",this._resize,this),t.on("zoomanim",this._animateZoom,this),t.on("zoom",this._onZoom,this),t.on("zoomstart",this._onZoomStart,this),t.on("zoomend",this._onZoomEnd,this),this.options.disableAutoReset||t.on("moveend",this._moveEnd,this),this._reset(),this._redraw()},onRemove:function(t){this.onRemoveCanvas(this._canvas),t.getPanes()[this.targetPane].removeChild(this._canvas),t.off("resize",this._resize,this),t.off("zoomanim",this._animateZoom,this),t.off("zoom",this._onZoom,this),t.off("zoomstart",this._onZoomStart,this),t.off("zoomend",this._onZoomEnd,this),this.options.disableAutoReset||t.off("moveend",this._moveEnd,this),this._canvas=null},getCanvas:function(){return this._canvas},showCanvas:function(t){this._showCanvasOn!==t&&(this._showCanvasOn=t,this._canvas.style.display=this._showCanvasOn?"block":"none")},onResizeCanvas:function(t,e){this._canvas.width=t,this._canvas.height=e},_resize:function(t){this.onResizeCanvas(t.newSize.x,t.newSize.y)},_reset:function(){var t=this._map.containerPointToLayerPoint([0,0]);p["DomUtil"].setPosition(this._canvas,t),this._center=this._map.getCenter(),this._zoom=this._map.getZoom(),this.onReset()},reset:function(){this._reset()},onReset:function(){},_redraw:function(){this._frame=null},redraw:function(){return this._frame||(this._frame=p["Util"].requestAnimFrame(this._redraw,this)),this},_moveEnd:function(){this._reset(),this.onMoveEnd()},_onZoomStart:function(){this.wasOnZoom=!1},_onZoomEnd:function(){this.canvasDisplay(!0)},canvasDisplay:function(t){this._canvas&&(this._canvas.style.display=t?"block":"none")},_animateZoom:function(t){this.wasOnZoom&&this.canvasDisplay(!1);var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._map.getBounds(),t.zoom,t.center).min;p["DomUtil"].setTransform?p["DomUtil"].setTransform(this._canvas,n,e):this._canvas.style[p["DomUtil"].TRANSFORM]=p["DomUtil"].getTranslateString(n)+" scale("+e+")"},_onZoom:function(){this.wasOnZoom=!0,this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=this._canvas._leaflet_pos||new p["Point"](0,0),r=this._map.getSize().multiplyBy(.5+(this.options.padding||0)),o=this._map.project(this._center,e),a=this._map.project(t,e).subtract(o),s=r.multiplyBy(-n).add(i).add(r).subtract(a);p["DomUtil"].setTransform?p["DomUtil"].setTransform(this._canvas,s,n):this._canvas.style[p["DomUtil"].TRANSFORM]=p["DomUtil"].getTranslateString(s)+" scale("+n+")"},onInit:function(){},onCreateCanvas:function(){return!0},onCanvasFailed:function(){},onRemoveCanvas:function(){},onMoveEnd:function(){},onZoomEnd:function(){},putCacheValue:function(t,e){this.valuecache[t]=e},containsKey:function(t){return t in this.valuecache},getCacheValue:function(t){return this.containsKey(t)?this.valuecache[t]:null},kgetUrl:function(){var t=this._url,e=this._url,n=this.options.is_sdk,i=Object(f["g"])(),r=Object(f["h"])();if(n)return e;if(r&&r.length>0){var o=r.length,a=this._urlCounter%o;e=Object(f["a"])(t,i,r,a),this._urlCounter=this._urlCounter>=o?0:this._urlCounter+1}return e}}),g=i("66bf"),y=i("7d4a"),_=0,v=m.extend({_canvas:null,context:null,ratioScale:1,isActive:!1,time:null,f:null,onInit:function(){this.targetPane="overlayPane"},onCreateCanvas:function(){return this.getCanvas().classList.add("wind-layer"),this.context=this.getCanvas().getContext("2d"),!0},onCanvasFailed:function(){this.context=null},onRemoveCanvas:function(){this.context=null},onResizeCanvas:function(t,e){var n=Math.min(window.devicePixelRatio||1,2),i=this.getCanvas();this.ratioScale=n,i.width=t*n,i.height=e*n,i.style.width=t+"px",i.style.height=e+"px"},onReset:function(){this.draw()},epsilon:1e-4,compareFloats:function(t,e){return Math.abs(t-e)=i-2?this.isLoop(e[1],e[0],e[i-1],e[i-2])?(l=e[n+1]-e[1]+e[3],c=e[n]-e[0]+e[2]):(l=2*r-e[n-1],c=2*o-e[n-2],m=0):(l=e[n+3],c=e[n+2]);var g=((r-a)*(u=c-s)-(o-s)*(h=l-a)>0?-.025:.025)*m,y=this.dist2D(l,c,a,s);y>.02&&(g*=.02/y);var _=u*g,v=-h*g;d=(f=.25/y)*this.dist2D(r,o,a,s),p=f*this.dist2D(l,c,r,o),r+=_,o+=v,t.push(r-d*h,o-d*u,r,o,r+p*h,o+p*u)},newData:function(t,e){this.data=e.data,this.draw()},addAxiosCancelExecutor:function(t){this.axiosCancelExecutors||(this.axiosCancelExecutors=[]),this.axiosCancelExecutors.push(t)},onMoveEnd:function(){this.isActive&&(c["a"].log("WindCanvas2D moveEnd is called"),this.displayByXYZ())},draw:function(){if(this.context&&this.data&&this.isActive){var t=this.context;t.save();for(var e=this._map.getBounds(),n=[Object(g["e"])(e.getWest()),Object(g["d"])(e.getNorth()),Object(g["e"])(e.getEast()),Object(g["d"])(e.getSouth())];n[0]<0;)n[0]+=1,n[2]+=1;for(;n[0]>1;)n[0]-=1,n[2]-=1;var i=this.getCanvas().width,r=this.getCanvas().height,o=i/(n[2]-n[0]),a=r/(n[3]-n[1]),s=-o*n[0],c=-a*n[1],h=1+Math.max(0,Math.min(.14*(this._map.getZoom()-3),1));this.ratioScale;t.clearRect(0,0,i,r);var u=this.data;l["h"]()&&u.length>0&&(u=u.sort((function(t,e){return t.lo!=e.lo?e.lo-t.lo:e.la-t.la})));for(var d=0;d0&&(b=1);var w=y*o+s,x=v*a+c;l["h"]()&&(_=(_+1)%30,f=_),this.prepareDraw(w,x,m,f,t,b,p),y=Object(g["e"])(p.lo+360),w=y*o+s,this.prepareDraw(w,x,m,f,t,b,p),y=Object(g["e"])(p.lo+720),w=y*o+s,this.prepareDraw(w,x,m,f,t,b,p)}}},prepareDraw:function(t,e,n,i,r,o,a){r.save(),r.beginPath(),r.strokeStyle=y["b"](),r.translate(t,e),l["f"]()&&r.fillText("l="+i,5,0),l["g"]()&&(r.fillStyle="#fff",r.fillText("la:"+a.la,0,0),r.fillText("lo:"+a.lo,0,8),r.fillText("l:"+i,0,16)),l["h"]()||r.rotate(n*Math.PI/180),r.beginPath();var s=o;if(l["h"]()&&(s=1),l["i"]())this.drawWindShape_v1(r,i,s);else{var c=l["j"]();"3"==c?this.drawWindShape_v3(r,i,s):"2"==c?this.drawWindShape_v2(r,i,s):this.drawWindShape_v1(r,i,s)}r.lineWidth=1.5,r.stroke(),r.closePath(),r.globalAlpha=1,r.restore()},drawWindShape_v3:function(t,e,n){var i=e,r=-12;if(0==i)t.beginPath(),t.arc(0,0,.5,0*Math.PI,2*Math.PI),t.lineWidth=1.5,t.stroke(),t.closePath(),t.beginPath(),t.arc(0,0,4,0*Math.PI,2*Math.PI);else{t.arc(0,0,1,0*Math.PI,2*Math.PI),t.lineWidth=1.5,t.stroke(),t.closePath(),t.beginPath(),t.moveTo(0,0);var o=0;e>28&&(o=-4),t.lineTo(0,-24+o);var a=0;e>19&&(a=n>0?1:-1),this._drawWindShape_consider_translateY({ctx:t,level:e,translateYY:r,wind_arrows:n,extendY:o,flagX:a})}},_drawWindShape_consider_translateY:function(t){var e=t||{},n=e.level,i=e.translateYY,r=e.ctx,o=e.wind_arrows,a=e.extendY,s=e.flagX,l=void 0===s?0:s,c=i+a,h=n;1==h?(r.moveTo(0,-8+c),r.lineTo(4*o,-9+c)):2==h?r.lineTo(8*o,-13+c):3==h?(r.lineTo(8*o,-13+c),r.moveTo(0,-8+c),r.lineTo(4*o,-9+c)):4==h?(r.lineTo(8*o,-13+c),r.moveTo(0,-8+c),r.lineTo(8*o,-10+c)):5==h?(r.lineTo(8*o,-13+c),r.moveTo(0,-8+c),r.lineTo(8*o,-10+c),r.moveTo(0,-4+c),r.lineTo(4*o,-5+c)):6==h?(r.lineTo(8*o,-13+c),r.moveTo(0,-8+c),r.lineTo(8*o,-10+c),r.moveTo(0,-4+c),r.lineTo(8*o,-6+c)):7==h?(r.lineTo(8*o,-13+c),r.moveTo(0,-8+c),r.lineTo(8*o,-10+c),r.moveTo(0,-4+c),r.lineTo(8*o,-6+c),r.moveTo(0,0+c),r.lineTo(4*o,-1+c)):8==h?(r.lineTo(8*o,-13+c),r.moveTo(0,-8+c),r.lineTo(8*o,-10+c),r.moveTo(0,-4+c),r.lineTo(8*o,-6+c),r.moveTo(0,0+c),r.lineTo(8*o,-2+c)):9==h?(r.lineTo(8*o,-13+c),r.moveTo(0,-8+c),r.lineTo(8*o,-10+c),r.moveTo(0,-4+c),r.lineTo(8*o,-6+c),r.moveTo(0,0+c),r.lineTo(8*o,-2+c),r.moveTo(0,4+c),r.lineTo(4*o,3+c)):10==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c)):11==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-3+c),r.lineTo(5*o,-5+c)):12==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-4+c),r.lineTo(9*o,-6+c)):13==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-4+c),r.lineTo(9*o,-6+c),r.moveTo(0,0+c),r.lineTo(5*o,-1+c)):14==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-4+c),r.lineTo(9*o,-6+c),r.moveTo(0,0+c),r.lineTo(9*o,-2+c)):15==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-4+c),r.lineTo(9*o,-6+c),r.moveTo(0,0+c),r.lineTo(9*o,-2+c),r.moveTo(0,4+c),r.lineTo(5*o,3+c)):16==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-4+c),r.lineTo(9*o,-6+c),r.moveTo(0,0+c),r.lineTo(9*o,-2+c),r.moveTo(0,4+c),r.lineTo(9*o,2+c)):17==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-4+c),r.lineTo(9*o,-6+c),r.moveTo(0,-1+c),r.lineTo(9*o,-3+c),r.moveTo(0,2+c),r.lineTo(9*o,0+c),r.moveTo(0,5+c),r.lineTo(5*o,4+c)):18==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-4+c),r.lineTo(9*o,-6+c),r.moveTo(0,-1+c),r.lineTo(9*o,-3+c),r.moveTo(0,2+c),r.lineTo(9*o,0+c),r.moveTo(0,5+c),r.lineTo(9*o,3+c)):19==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.moveTo(0,-4+c),r.lineTo(9*o,-6+c),r.moveTo(0,-1+c),r.lineTo(9*o,-3+c),r.moveTo(0,2+c),r.lineTo(9*o,0+c),r.moveTo(0,5+c),r.lineTo(9*o,3+c),r.moveTo(0,8+c),r.lineTo(5*o,7+c)):20==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c)):21==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,2+c),r.lineTo(5*o,0+c)):22==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,1+c),r.lineTo(9*o,-1+c)):23==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,1+c),r.lineTo(9*o,-1+c),r.moveTo(0,4+c),r.lineTo(5*o,3+c)):24==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,1+c),r.lineTo(9*o,-1+c),r.moveTo(0,4+c),r.lineTo(9*o,2+c)):25==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,1+c),r.lineTo(9*o,-1+c),r.moveTo(0,4+c),r.lineTo(9*o,2+c),r.moveTo(0,7+c),r.lineTo(5*o,6+c)):26==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,1+c),r.lineTo(9*o,-1+c),r.moveTo(0,4+c),r.lineTo(9*o,2+c),r.moveTo(0,7+c),r.lineTo(9*o,5+c)):27==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,1+c),r.lineTo(9*o,-1+c),r.moveTo(0,4+c),r.lineTo(9*o,2+c),r.moveTo(0,7+c),r.lineTo(9*o,5+c),r.moveTo(0,10+c),r.lineTo(5*o,9+c)):28==h?(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,1+c),r.lineTo(9*o,-1+c),r.moveTo(0,4+c),r.lineTo(9*o,2+c),r.moveTo(0,7+c),r.lineTo(9*o,5+c),r.moveTo(0,10+c),r.lineTo(9*o,8+c)):29==h&&(r.lineTo(8*o,-13+c),r.lineTo(0+l,-6+c),r.lineTo(8*o,-7+c),r.lineTo(0,0+c),r.moveTo(0,1+c),r.lineTo(9*o,-1+c),r.moveTo(0,4+c),r.lineTo(9*o,2+c),r.moveTo(0,7+c),r.lineTo(9*o,5+c),r.moveTo(0,10+c),r.lineTo(9*o,8+c),r.moveTo(0,13+c),r.lineTo(9*o,11+c))},drawWindShape_v2:function(t,e,n){var i=e;if(0==i)t.beginPath(),t.arc(0,0,.5,0*Math.PI,2*Math.PI),t.lineWidth=1.5,t.stroke(),t.closePath(),t.beginPath(),t.arc(0,0,4,0*Math.PI,2*Math.PI);else{var r=0,o=0,a=0;e>28&&(o=-4,a=Math.abs(o/2)),t.moveTo(0,12+a),t.lineTo(0,-12-a),t.moveTo(0,12+a),t.lineTo(-3,9),t.moveTo(0,12+a),t.lineTo(3,9),t.moveTo(0,-12-a);var s=0;e>19&&(s=n>0?1:-1),this._drawWindShape_consider_translateY({ctx:t,level:e,translateYY:r,wind_arrows:n,extendY:o,flagX:s})}},drawWindShape:function(t,e,n){var i=e;if(0==i)t.beginPath(),t.arc(0,0,.5,0*Math.PI,2*Math.PI),t.lineWidth=1.5,t.stroke(),t.closePath(),t.beginPath(),t.arc(0,0,4,0*Math.PI,2*Math.PI);else{var r=0,o=0,a=0;e>28&&(o=-4,a=Math.abs(o/2)),t.moveTo(0,12+a),t.lineTo(0,-12-a),t.moveTo(0,12+a),t.lineTo(-3,9),t.moveTo(0,12+a),t.lineTo(3,9),t.moveTo(0,-12-a);var s=0;e>19&&(s=n>0?1:-1),this._drawWindShape_consider_translateY({ctx:t,level:e,translateYY:r,wind_arrows:n,extendY:o,flagX:s})}},drawWindShape_v1:function(t,e,n){0==e?t.arc(0,0,3,0*Math.PI,2*Math.PI):(t.moveTo(0,12),t.lineTo(0,-12),t.moveTo(0,12),t.lineTo(-3,9),t.moveTo(0,12),t.lineTo(3,9),t.moveTo(0,-12),1==e?t.lineTo(4*n,-14):2==e?t.lineTo(8*n,-14):3==e?(t.lineTo(8*n,-14),t.moveTo(0,-8),t.lineTo(4*n,-9)):4==e?(t.lineTo(8*n,-14),t.moveTo(0,-8),t.lineTo(8*n,-10)):5==e?(t.lineTo(8*n,-14),t.moveTo(0,-8),t.lineTo(8*n,-10),t.moveTo(0,-4),t.lineTo(4*n,-5)):6==e?(t.lineTo(8*n,-14),t.moveTo(0,-8),t.lineTo(8*n,-10),t.moveTo(0,-4),t.lineTo(8*n,-6)):7==e?(t.lineTo(8*n,-14),t.moveTo(0,-8),t.lineTo(8*n,-10),t.moveTo(0,-4),t.lineTo(8*n,-6),t.moveTo(0,0),t.lineTo(4*n,-1)):8==e?(t.lineTo(8*n,-14),t.moveTo(0,-8),t.lineTo(8*n,-10),t.moveTo(0,-4),t.lineTo(8*n,-6),t.moveTo(0,0),t.lineTo(8*n,-2)):9==e?(t.lineTo(8*n,-14),t.moveTo(0,-8),t.lineTo(8*n,-10),t.moveTo(0,-4),t.lineTo(8*n,-6),t.moveTo(0,0),t.lineTo(8*n,-2),t.moveTo(0,4),t.lineTo(4*n,3)):10==e?(t.lineTo(8*n,-14),t.moveTo(0,-8),t.lineTo(8*n,-10),t.moveTo(0,-4),t.lineTo(8*n,-6),t.moveTo(0,0),t.lineTo(8*n,-2),t.moveTo(0,4),t.lineTo(8*n,2)):11==e?(t.lineTo(8*n,-9),t.lineTo(0,-6)):12==e?(t.lineTo(8*n,-9),t.lineTo(0,-6),t.moveTo(0,-2),t.lineTo(4*n,-4)):13==e?(t.lineTo(8*n,-9),t.lineTo(0,-6),t.moveTo(0,-2),t.lineTo(9*n,-6)):14==e?(t.lineTo(8*n,-9),t.lineTo(0,-6),t.moveTo(0,-2),t.lineTo(9*n,-6),t.moveTo(0,2),t.lineTo(5*n,0)):15==e?(t.lineTo(8*n,-9),t.lineTo(0,-6),t.moveTo(0,-2),t.lineTo(9*n,-6),t.moveTo(0,2),t.lineTo(9*n,-2)):16==e&&(t.lineTo(8*n,-9),t.lineTo(0,-6),t.moveTo(0,-2),t.lineTo(9*n,-6),t.moveTo(0,2),t.lineTo(9*n,-2),t.moveTo(0,6),t.lineTo(5*n,4)))},enable:function(){this.isActive=!0,this.displayByXYZ()},disable:function(){this.isActive=!1,this.clear()},isDisplay:function(){return this.isActive},displayByXYZ:function(){var t=this._map,e=t.getZoom();if(!(e>=7)&&this.isDisplay()){for(var n=Object(g["b"])(t),i=this.time,r=this.f,o=[],a=[],s=0;s1;)n[0]-=1,n[2]-=1;var i=this.getCanvas().width,o=this.getCanvas().height,a=i/(n[2]-n[0]),s=o/(n[3]-n[1]),l=-a*n[0],c=-s*n[1],h=1+Math.max(0,Math.min(.14*(this._map.getZoom()-3),1));this.ratioScale;t.clearRect(0,0,i,o);for(var u,d=this.data,p=x(),f=0;f1;)n[0]-=1,n[2]-=1;var i=this.getCanvas().width,o=this.getCanvas().height,a=i/(n[2]-n[0]),s=o/(n[3]-n[1]),l=-a*n[0],c=-s*n[1],h=1+Math.max(0,Math.min(.14*(this._map.getZoom()-3),1));this.ratioScale;t.clearRect(0,0,i,o);for(var u,d=this.data,p=k(),f=0;f1;)n[0]-=1,n[2]-=1;var i=this.getCanvas().width,r=this.getCanvas().height,o=i/(n[2]-n[0]),a=r/(n[3]-n[1]),s=-o*n[0],l=-a*n[1],c=1+Math.max(0,Math.min(.14*(this._map.getZoom()-3),1));this.ratioScale;t.clearRect(0,0,i,r);for(var h=this.data,u=0;u=i-2?this.isLoop(e[1],e[0],e[i-1],e[i-2])?(l=e[n+1]-e[1]+e[3],c=e[n]-e[0]+e[2]):(l=2*r-e[n-1],c=2*o-e[n-2],m=0):(l=e[n+3],c=e[n+2]);var g=((r-a)*(u=c-s)-(o-s)*(h=l-a)>0?-.025:.025)*m,y=this.dist2D(l,c,a,s);y>.02&&(g*=.02/y);var _=u*g,v=-h*g;d=(f=.25/y)*this.dist2D(r,o,a,s),p=f*this.dist2D(l,c,r,o),r+=_,o+=v,t.push(r-d*h,o-d*u,r,o,r+p*h,o+p*u)},newData:function(t,e){this._map=t;var n,i,r,o,a,s=Object(g["a"])(e.data);this.ident=["off","pressure","gh","temp","deg0"];var l=[];if(s.isoline&&s.isoline.length>0){for(i=0;i1;)r[0]-=1,r[2]-=1;var o=this.getCanvas().width,a=this.getCanvas().height,s=o/(r[2]-r[0]),l=a/(r[3]-r[1]),c=-s*r[0],h=-l*r[1],u=1+Math.max(0,Math.min(.14*(this._map.getZoom()-3),1)),d=u*this.ratioScale;t.clearRect(0,0,o,a),t.lineWidth=u,t.font=2+6*d+"px sans-serif";var p,f,m,y,_,v,b,w,x=.05*(o+a),L=x,M=x,k=o-x,T=a-x,A=function(e){t.beginPath(),t.moveTo(p[2]*s+e,p[3]*l+h);for(var n=4;nL&&iM&&r4*u*u&&(_=n+4,y=i,v=r,b=c,w=u)}}t.stroke()},E="95, 94, 97",S=E;for(window&&window._hf_isoline_color&&(S=window._hf_isoline_color),S="rgba("+S+",",n=0;n3&&f>48&&(this._map.getZoom()>4||P.value%400);for(var O=[],D=0;D<4;D+=2)O.push(P.bb[D]*s+c,P.bb[D+1]*l+h);var I=S;if(t.strokeStyle=I+"1)",t.lineWidth=1.5,t.fillStyle=I+"0.9)",O[1]0&&(O[0]0&&A(c),O[0]+s0&&A(c+s),O[0]+s0&&A(c+2*s),O[0]-s0&&A(c-s)),_>0){t.save();var R=Math.atan(w/b);t.translate(y,v),t.rotate(R);var j=P.value/100,C=4*d,N=Math.max(.9*t.measureText(j).width,2*C),z=.5*N;t.beginPath(),t.moveTo(-z,C),t.lineTo(z,C),t.bezierCurveTo(N,C,N,-C,z,-C),t.lineTo(-z,-C),t.bezierCurveTo(-N,-C,-N,C,-z,C),t.fillStyle="white",t.fill(),t.fillStyle="black",t.textAlign="center",t.fillText(j,0,1+2*d),t.restore()}}t.textAlign="center",t.fillStyle="#FFFF",t.font="15px sans-serif",t.shadowColor="#000F",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0,f=this.hilo.length;var G="L",B=Math.round(16*d-4)+"px sans-serif",Z=Math.round(1+8*d)+2+"px sans-serif",U=5*d;for(e=0;e0&&W>0&&W2&&(t.fillStyle="rgb(0,0,0,1)",t.font=B,t.fillText(G,Y,W-U),t.font=Z,t.fillText(parseInt(this.hilo[e]),Y,W+U))}}t.restore()}},clear:function(t){for(var e=0;e0){var l=s.length,c=this._urlCounter%l;i=Object(f["a"])(e,a,s,c),this._urlCounter=this._urlCounter>=l?0:this._urlCounter+1}return i},setTime:function(t){this._appendOptions=t,this.options.updateInterval=500},initialize:function(t,e){this._url=t,this._urlCounter=0,e=D.setOptions(this,e);var n=e||{},i=n.kRedirectUrl,r=void 0===i?"":i;this._kRedirectUrl=r,e.detectRetina&&I.retina&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"===typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),I.android||this.on("tileunload",this._onTileRemove)},enable:function(){var t=this._appendOptions||{},e=t.time,n=void 0===e?"":e,i=t.f,r=void 0===i?"":i,o=d["i"](),a=[this._kRedirectUrl,"time="+n,"f="+r].join("&");o&&(a+="&usertoken="+o),this.setUrl(a)},disable:function(){this.setUrl("")}}),j=function(t,e){return new R(t,e)},C=(i("28b5"),i("c3c2"),function(){return{putCacheValue:function(t,e){this.valuecache||(this.valuecache={}),this.valuecache[t]=e},containsKey:function(t){return this.valuecache||(this.valuecache={}),t in this.valuecache},getCacheValue:function(t){return this.valuecache||(this.valuecache={}),this.containsKey(t)?this.valuecache[t]:null},removeCache:function(t){this.valuecache||(this.valuecache={}),this.containsKey(t)&&delete this.valuecache[t]},setTime:function(t){this.time=t.time,this.f=t.f},getTime:function(){return{time:this.time,f:this.f}},kgetUrl:function(){this._url;var t=this._url;return c["a"].log("n2481 kgetUrl",t),t},display:function(t,e){var n=this;if(""!=this.time&&""!=this.f){var i=[this.time,this.f].join("_");if(c["a"].log("n2481 loadData display",i),this.containsKey(i)){var r=this.getCacheValue(i);return c["a"].log("n2481 loadData display contain",i,r),void e.newData(e._map,r)}var o=u.a.CancelToken.source(),a={time:this.time,f:this.f},s=d["i"]();s&&(a.usertoken=s,console.log("n2481 loadData",this._url,a));var l=this.kgetUrl();this.putCacheValue(i,{}),u.a.get(l,{params:a,cancelToken:o.token}).then((function(t){n.putCacheValue(i,t),e.newData(e._map,t)})).catch((function(t){n.removeCache(i),console.log(t)})),this.addAxios(o)}else c["a"].log("n2481 loadData time or f is empty")},enable:function(t){this.isActive=!0,this.display(t,this)},disable:function(){this.isActive=!1,this.clear()},clear:function(t){this.axiosSourceArr||(this.axiosSourceArr=[]);for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:20037508.34,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.25;return(t+n)/i/(2*n)*e},s=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20037508.34,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.25;return-1*(t-n)/i/(2*n)*e};if(o.clearRect(0,0,i,r),this.isActive&&this._grayImg){var l=this._tileCoordsToBounds(t),h=Object(d["q"])(l._southWest),u=Object(d["q"])(l._northEast),f=[h.lng,u.lat,u.lng,h.lat],m=[l._southWest.lng,l._northEast.lat,l._northEast.lng,l._southWest.lat];c["a"].log("n2481 n2517 tileBounds",t,f,m);var g=f[0],y=f[1],_=f[2],v=f[3],b=this._grayImg.width,w=this._grayImg.height,x=a(g,b),L=s(y,w),M=Math.abs(a(g,b)-a(_,b)),k=Math.abs(s(y,w)-s(v,w)),T=0,A=0,E=i,S=r;c["a"].log("n2481 n2517 drawImage",b,w,x,L,M,k,T,A,E,S),o.drawImage(this._grayImg,x,L,M,k,T,A,E,S)}return e},_createTile3857:function(t){var e=p["DomUtil"].create("canvas","leaflet-tile kgrayTile"),n=this.getTileSize(),i=n.x,r=n.y;e.width=i,e.height=r;var o=e.getContext("2d"),a=function(t,e){return(t+180)/(360/e)},s=function(t,e){return-1*(t-90)/(180/e)};if(o.clearRect(0,0,i,r),this.isActive&&this._grayImg){var l=this._tileCoordsToBounds(t),h=l._southWest,u=l._northEast,d=[h.lng,u.lat,u.lng,h.lat],f=d[0],m=d[1],g=d[2],y=d[3],_=this._grayImg.width,v=this._grayImg.height;c["a"].log("n2481 n2517",_/360,v/180);var b=a(f,_),w=s(m,v),x=Math.abs(a(f,_)-a(g,_)),L=Math.abs(s(m,v)-s(y,v)),M=0,k=0,T=i,A=r;o.drawImage(this._grayImg,b,w,x,L,M,k,T,A)}return e},kgetFullUrl:function(){var t={time:this.time,f:this.f},e=this.kgetUrl(),n=d["i"]();return n&&(t.usertoken=n),e=Object(B["a"])(e,t),e},display:function(t,e){if(""!=this.time&&""!=this.f){var n=this.kgetFullUrl(),i=n;if(c["a"].log("n2481 loadData display",i),this.containsKey(i)){var r=this.getCacheValue(i);e.newData(e._map,r)}else this._kloadUrl(e,n,this._done)}else c["a"].log("n2481 loadData time or f is empty")},newData:function(t,e){var n=e||{},i=n.loading,r=n.img;n.key;i||(this._grayImg=r,this.redraw())},_kloadUrl:function(t,e,n){var i=this,r=e,o={loading:!0,img:null,key:r};this.putCacheValue(r,o);var a=new Image;a.crossOrigin="",a.src=e,a.onload=function(){c["a"].log("n2481 n2517 onload",a,e,i.options);var n=i._prepareData(a);if(n){var o=new Image;o.crossOrigin="",o.src=n,o.onload=function(){var n={loading:!1,img:o,key:r};i.putCacheValue(e,n),t.newData(t._map,n)}}}},_getRGBA:function(t,e,n,i){var r=t,o=e,a=n,s=i;if(r<5)s=0;else{var l=V(r,r,r);r=l.r,o=l.g,a=l.b}var c={r:r,g:o,b:a,a:s};return c},_prepareData:function(t){var n=t.width,i=t.height,r=p["DomUtil"].create("canvas","leaflet-tile kgrayTile");r.width=n,r.height=i;var o=r.getContext("2d");o.drawImage(t,0,0),c["a"].log("n2481 n2517 imageData drawImage");try{var a=o.getImageData(0,0,n,i),s=a.data;c["a"].log("n2481 n2517 imageData",s.length);for(var l=1e3,h=0,u={},d=0;df&&0!=f&&(l=f),h0&&a.length>0){var s=a[0],l=o[1],c=s+180,h=-1*(l-90);i=c*t,i=h*t}return{width:e,height:n,offsetX:i,offsetY:r}},_generateFullPicture:function(t){var e=p["DomUtil"].create("canvas","leaflet-tile kgrayTile"),n=this._getFullPictureParams(),i=n||{},r=i.width,o=i.height,a=i.offsetX,s=void 0===a?0:a,l=i.offsetY,c=void 0===l?0:l;e.width=r,e.height=o;var h=e.getContext("2d");h.putImageData(t,s,c);var u=e.toDataURL("image/png");return u},disable:function(){this.isActive=!1,this.clear()},clear:function(t){this.redraw()}}),X=(i("e260"),i("ace4"),i("cfc3"),i("907a"),i("9a8c"),i("a975"),i("735e"),i("c1ac"),i("d139"),i("3a7b"),i("986a"),i("1d02"),i("d5d6"),i("82f8"),i("e91f"),i("60bd"),i("5f96"),i("3280"),i("3fcc"),i("ca91"),i("25a1"),i("cd26"),i("3c5d"),i("2954"),i("649e"),i("219c"),i("170b"),i("b39a"),i("6ce5"),i("2834"),i("72f7"),i("4ea1"),i("669d"),i("109c"),i("b2c1"),p["DomEvent"],p["Util"]),K=(p["Browser"],p["DomUtil"],"\nattribute vec2 clip;\nvoid main() {\ngl_Position = vec4(clip,0,1);\n}"),q="\nprecision mediump float;\nuniform sampler2D image;\nuniform vec2 unit;\nuniform vec4 argv;\nuniform float zoom;\nvoid main() {\nvec2 p = vec2(gl_FragCoord.x,1.0 / unit.y - gl_FragCoord.y);\ngl_FragColor = texture2D(image,p * unit);\n}";J.extend({options:{klngsRange:[-180,180],klatsRange:[-80,90],kpixel2Degree:.25,crossOrigin:!0,vertexShader:K,fragmentShader:q,errorTileColor:"#7f0000",argv:[0,0,0,0]},initialize:function(t,e){var n=Object(r["a"])({zIndex:9999},e||{});X.setOptions(this,this.options),X.setOptions(this,n),this._url=t,this._grayImg=null},_initContainer:function(){p["TileLayer"].prototype._initContainer.call(this);var t=this._canvas=document.createElement("canvas");t.style.zIndex=1e4,t.style.position="absolute";var e=this._gl=t.getContext("webgl",null)||t.getContext("experimental-webgl");c["a"].log("n2481 gl",e);var n=e.createShader(e.VERTEX_SHADER);e.shaderSource(n,this.options.vertexShader),e.compileShader(n);var i=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(i,this.options.fragmentShader),e.compileShader(i);var r=this._pg=e.createProgram();e.attachShader(r,n),e.attachShader(r,i),e.linkProgram(r),e.getProgramParameter(r,e.LINK_STATUS)?(e.useProgram(r),this._map.on("moveend",(function(){this.repaint(!1)}),this),this.on("tileload",(function(t){t.tile.style.display="none"})),this.on("tileload load loading",(function(t){this.repaint(!1)}),this)):console.log(e.getProgramInfoLog(r))},repaint:function(t){p["Util"].requestAnimFrame(this._doPaint,this,t)},_get_cut_arguments:function(){},_doPaint:function(){if(this._map&&this._grayImg){var t=this._map.getCenter(),e=this._getTiledPixelBounds(t),n=this._pxBoundsToTileRange(e),i=n.getSize().add([1,1]).scaleBy(this.getTileSize()),r=this._canvas,o=document.createElement("canvas");r.width=o.width=i.x,r.height=o.height=i.y,r.style.width=i.x+"px",r.style.height=i.y+"px",this._level.el.appendChild(r);var a=o.getContext("2d");a.fillStyle=this.options.errorTileColor,a.fillRect(0,0,i.x,i.y);var s=this._getTilePos(n.min);c["a"].log("n2481 tileRange",n,e),a.drawImage(this._grayImg,0,0),p["DomUtil"].setPosition(r,s);var l=o,h=this._gl,u=this._pg,d=l.width,f=l.height,m=h.getAttribLocation(u,"clip"),g=h.getUniformLocation(u,"unit"),y=h.getUniformLocation(u,"zoom"),_=h.getUniformLocation(u,"argv"),v=h.createBuffer();h.bindBuffer(h.ARRAY_BUFFER,v),h.bufferData(h.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,1]),h.STATIC_DRAW);var b=h.createTexture();h.bindTexture(h.TEXTURE_2D,b),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.NEAREST),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.NEAREST),h.texImage2D(h.TEXTURE_2D,0,h.RGBA,h.RGBA,h.UNSIGNED_BYTE,l),h.viewport(0,0,d,f),h.enableVertexAttribArray(m),h.bindBuffer(h.ARRAY_BUFFER,v),h.vertexAttribPointer(m,2,h.FLOAT,!1,0,0),h.uniform2f(g,1/d,1/f),h.uniform1f(y,this._tileZoom);var w=this.options.argv;h.uniform4f(_,w[0],w[1],w[2],w[3]),h.drawArrays(h.TRIANGLE_STRIP,0,4),this.isActive||(h.clearColor(0,0,0,0),h.clear(h.COLOR_BUFFER_BIT))}},kgetFullUrl:function(){var t={time:this.time,f:this.f},e=this.kgetUrl(),n=d["i"]();return n&&(t.usertoken=n,console.log("n2481 loadData",this._url,t)),e=Object(B["a"])(e,t),e},display:function(t,e){if(""!=this.time&&""!=this.f){var n=this.kgetFullUrl(),i=n;if(c["a"].log("n2481 loadData display",i),this.containsKey(i)){var r=this.getCacheValue(i);return c["a"].log("n2481 loadData display contain",i,r),void e.newData(e._map,r)}console.log("n2481 loadData newUrl",n),this._kloadUrl(e,n,this._done)}else c["a"].log("n2481 loadData time or f is empty")},newData:function(t,e){var n=e||{},i=n.loading,r=n.img;n.key;i||(this._grayImg=r,c["a"].log("n2481 n2517 newData",e,this._grayImg),this.redraw())},_kloadUrl:function(t,e,n){var i=this,r=e,o={loading:!0,img:null,key:r};this.putCacheValue(r,o);var a=new Image;a.crossOrigin="",a.src=e,a.onload=function(){c["a"].log("n2481 n2517 onload",a,e,i.options);var n={loading:!1,img:a,key:r};i.putCacheValue(e,n),t.newData(t._map,n)}},_getRGBA:function(t,e,n,i){var r=t,o=e,a=n,s=i;0==r&&(s=0);var l={r:r,g:o,b:a,a:s};return l},_prepareData:function(t){var n=t.width,i=t.height,r=p["DomUtil"].create("canvas","leaflet-tile kgrayTile");r.width=n,r.height=i;var o=r.getContext("2d");o.drawImage(t,0,0),c["a"].log("n2481 n2517 imageData drawImage");try{var a=o.getImageData(0,0,n,i),s=a.data;c["a"].log("n2481 n2517 imageData",s.length);for(var l=0;l0&&a.length>0){var s=a[0],l=o[1],c=s+180,h=-1*(l-90);i=c*t,i=h*t}return{width:e,height:n,offsetX:i,offsetY:r}},_generateFullPicture:function(t){var e=p["DomUtil"].create("canvas","leaflet-tile kgrayTile"),n=this._getFullPictureParams(),i=n||{},r=i.width,o=i.height,a=i.offsetX,s=void 0===a?0:a,l=i.offsetY,h=void 0===l?0:l;e.width=r,e.height=o;var u=e.getContext("2d");u.putImageData(t,s,h);var d=e.toDataURL("image/png");return c["a"].log("n2481 n2517 imageData return ",d,n),d},disable:function(){this.isActive=!1,this.clear()},clear:function(t){this.redraw()}}),i("4de4"),i("4ec9"),i("3ca3"),i("159b"),i("ddb0");function $(t){if(Array.isArray(t))return t}i("a4d3"),i("e01a"),i("d28b");function tt(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(c)throw r}}return s}}i("a630"),i("fb6a"),i("b0c0"),i("00b4"),i("25f0");function et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}}}var at=3600,st=3600,lt=720,ct=720,ht=function(t,e,n,i,r,o){var a=o||{},s=a.requestTileSize,l=e,c=5-n,h="".concat(c,"_").concat(l),u="".concat(t,"&xy=").concat(h);s&&s>0&&(u+="&size="+s);var d={url:u,x:e*i,y:n*r,w:i,h:r};return d},ut=function(t,e){for(var n=e||{},i=n.requestTileSize,r=i,o=r||lt,a=r||ct,s=5,l=[],c=0;c0){var r=0,o=i.length;return t.map((function(t){var e=r%o,a=Object(f["a"])(t.url,n,i,e);return r=r>=o?0:r+1,t.url=a,t}))}return t},pt=function(t,e){var n=e||{},i=n.requestTileSize,r=5*i,o=ut(t,e);o=dt(o);var a=r||at,s=r||st;return{tiles:o,width:a,height:s}},ft=function(t){t.width=1,t.height=1;var e=t.getContext("2d");e&&e.clearRect(0,0,1,1)};function mt(t,e){var n=e||{},i=n.alpha,r=void 0===i?1:i,o=document.createElement("canvas"),a=256,s=1;o.width=a,o.height=s;var l,c=o.getContext("2d"),h=c.createLinearGradient(0,0,a,0),u=ot(t);try{for(u.s();!(l=u.n()).done;){var d=rt(l.value,2),p=d[0],f=d[1];p>1&&(p=1),h.addColorStop(p,"rgba(".concat(f.join(","),",").concat(r,")"))}}catch(g){u.e(g)}finally{u.f()}c.fillStyle=h,c.fillRect(0,0,a,s);var m=c.getImageData(0,0,a,s);return ft(o),{imageData:m,width:a,height:s}}function gt(t,e,n){var i=yt(t,t.VERTEX_SHADER,e),r=yt(t,t.FRAGMENT_SHADER,n),o=_t(t,i,r);return o?(t.useProgram(o),t.program=o,o):(c["a"].log("Failed to create program."),null)}function yt(t,e,n){var i=t.createShader(e);t.shaderSource(i,n),t.compileShader(i);var r=t.getShaderParameter(i,t.COMPILE_STATUS);if(r)return i;var o=t.getShaderInfoLog(i);return c["a"].log("compile shaders error: "+o),t.deleteShader(i),null}function _t(t,e,n){var i=t.createProgram();if(!i)return null;t.attachShader(i,e),t.attachShader(i,n),t.linkProgram(i);var r=t.getProgramParameter(i,t.LINK_STATUS);if(r)return i;var o=t.getProgramInfoLog(i);return c["a"].log("link program error: "+o),t.deleteProgram(i),t.deleteShader(e),t.deleteShader(n),null}function vt(t,e){c["a"].log("n2517 resizeCanvasToDisplaySize",t),e=e||1;var n=t.clientWidth*e|0,i=t.clientHeight*e|0;return(t.width!==n||t.height!==i)&&(t.width=n,t.height=i,!0)}function bt(t,e,n,i,r){var o="\n attribute vec2 a_position;\n attribute vec2 a_texCoord;\n \n uniform vec2 u_resolution;\n \n varying vec2 v_texCoord;\n \n void main() {\n // convert the rectangle from pixels to 0.0 to 1.0\n vec2 zeroToOne = a_position / u_resolution;\n \n // convert from 0->1 to 0->2\n vec2 zeroToTwo = zeroToOne * 2.0;\n \n // convert from 0->2 to -1->+1 (clipspace)\n vec2 clipSpace = zeroToTwo - 1.0;\n \n gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);\n \n // pass the texCoord to the fragment shader\n // The GPU will interpolate this value between points.\n v_texCoord = a_texCoord;\n }\n ",a="\n precision mediump float;\n \n // our texture\n uniform sampler2D u_image;\n\n uniform sampler2D u_color_texture;\n\n // the texCoords passed in from the vertex shader.\n varying vec2 v_texCoord;\n void main() {\n vec4 rgba = texture2D(u_image, v_texCoord);\n gl_FragColor =rgba;\n }\n ",s=gt(t,o,a),l=t.getAttribLocation(s,"a_position"),h=t.getAttribLocation(s,"a_texCoord"),u=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,u),c["a"].log("n2517 setRectangle w/h",e.width,e.height,i,r),xt(t,0,0,i,r);var d=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,d),t.bufferData(t.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),t.STATIC_DRAW);var p=t.getUniformLocation(s,"u_image"),f=t.createTexture();t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,f),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e);var m=t.getUniformLocation(s,"u_resolution"),g=t.getUniformLocation(s,"u_color_texture"),y=t.createTexture();t.activeTexture(t.TEXTURE1),t.bindTexture(t.TEXTURE_2D,y),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n),vt(t.canvas),c["a"].log("gl.canvas.width/height",t.canvas.width,t.canvas.height),t.viewport(0,0,t.canvas.width,t.canvas.height),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.useProgram(s),t.enableVertexAttribArray(l),t.bindBuffer(t.ARRAY_BUFFER,u);var _=2,v=t.FLOAT,b=!1,w=0,x=0;t.vertexAttribPointer(l,_,v,b,w,x),t.enableVertexAttribArray(h),t.bindBuffer(t.ARRAY_BUFFER,d),_=2,v=t.FLOAT,b=!1,w=0,x=0,t.vertexAttribPointer(h,_,v,b,w,x),t.uniform2f(m,t.canvas.width,t.canvas.height),t.uniform1i(g,1),t.uniform1i(p,0);var L=t.TRIANGLES;x=0;var M=6;t.drawArrays(L,x,M)}function wt(t,e,n,i,r){var o="\n attribute vec2 a_position;\n attribute vec2 a_texCoord;\n \n uniform vec2 u_resolution;\n \n varying vec2 v_texCoord;\n \n void main() {\n // convert the rectangle from pixels to 0.0 to 1.0\n vec2 zeroToOne = a_position / u_resolution;\n \n // convert from 0->1 to 0->2\n vec2 zeroToTwo = zeroToOne * 2.0;\n \n // convert from 0->2 to -1->+1 (clipspace)\n vec2 clipSpace = zeroToTwo - 1.0;\n \n gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);\n \n // pass the texCoord to the fragment shader\n // The GPU will interpolate this value between points.\n v_texCoord = a_texCoord;\n }\n ",a="\n precision mediump float;\n \n // our texture\n uniform sampler2D u_image;\n\n uniform sampler2D u_color_texture;\n\n // the texCoords passed in from the vertex shader.\n varying vec2 v_texCoord;\n void main() {\n vec4 rgba = texture2D(u_image, v_texCoord);\n if(rgba.x==0.0){\n rgba.a=0.0;\n rgba.b = rgba.r;\n gl_FragColor =rgba; \n return;//\n }\n\n gl_FragColor = texture2D(u_color_texture, vec2(rgba.r, 0.5));\n // gl_FragColor =fcolor;//\n }\n ",s=gt(t,o,a),l=t.getAttribLocation(s,"a_position"),h=t.getAttribLocation(s,"a_texCoord"),u=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,u),c["a"].log("n2517 setRectangle w/h",e.width,e.height,i,r),xt(t,0,0,i,r);var d=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,d),t.bufferData(t.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),t.STATIC_DRAW);var p=t.getUniformLocation(s,"u_image"),f=t.createTexture();t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,f),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e);var m=t.getUniformLocation(s,"u_resolution"),g=t.getUniformLocation(s,"u_color_texture"),y=t.createTexture();t.activeTexture(t.TEXTURE1),t.bindTexture(t.TEXTURE_2D,y),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n),vt(t.canvas),c["a"].log("gl.canvas.width/height",t.canvas.width,t.canvas.height),t.viewport(0,0,t.canvas.width,t.canvas.height),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.useProgram(s),t.enableVertexAttribArray(l),t.bindBuffer(t.ARRAY_BUFFER,u);var _=2,v=t.FLOAT,b=!1,w=0,x=0;t.vertexAttribPointer(l,_,v,b,w,x),t.enableVertexAttribArray(h),t.bindBuffer(t.ARRAY_BUFFER,d),_=2,v=t.FLOAT,b=!1,w=0,x=0,t.vertexAttribPointer(h,_,v,b,w,x),t.uniform2f(m,t.canvas.width,t.canvas.height),t.uniform1i(g,1),t.uniform1i(p,0);var L=t.TRIANGLES;x=0;var M=6;t.drawArrays(L,x,M)}function xt(t,e,n,i,r){var o=e,a=e+i,s=n,l=n+r;t.bufferData(t.ARRAY_BUFFER,new Float32Array([o,s,a,s,o,l,o,l,a,s,a,l]),t.STATIC_DRAW)}function Lt(t){t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT)}var Mt=function(){var t=Object(B["h"])("_n2602windy","1");return"0"!=t},kt=function(){try{return!1}catch(e){console.error(e)}return!1},Tt=kt()?document.body.clientWidth<500?1:2:3,At=kt()?.5:.6,Et=kt()?document.body.clientWidth<500?144:216:360,St=function(t){return t.toDataURL("image/jpeg",At)},Pt=function(t){var e;e=t.color;var n={};return e=e.filter((function(t){var e=t.join("&");return!n.hasOwnProperty(e)&&(n[e]=!0,!0)})),e};function Ot(t){var e=s(),n=e.default;c["a"].log("n2595 wi",t,n),e.hasOwnProperty(t)&&(n=e[t]);var i=n.config,r=i||{},o=(r.min,r.max,r.colorPct),a=n.color,l=new Map;if(o&&o.length>0)a.forEach((function(t,e){var n=o[e];l.set(n,t)}));else{a=Pt(n);var h=1/a.length;a.forEach((function(t,e){var n=(e+1)*h;l.set(n,t)}))}return c["a"].log("windy",l),l}function Dt(t){var e=s(),n=e.default;c["a"].log("n2595 wi",t,n),e.hasOwnProperty(t)&&(n=e[t]);var i=n.config,r=i||{},o=(r.min,r.max,r.colorPct,n.color),a=new Map,l=1/o.length;return o.forEach((function(t,e){var n=(e+1)*l;150==t[0]&&(n=.7),a.set(n,t)})),c["a"].log("windy",a),a}var It="LAYER_MODE_MULTI_TILE",Rt=(p["Layer"]?p["Layer"]:p["Class"]).extend({options:{zIndex:20,paneName:"tilePane",kcolorMapName:"",klayerMode:"LAYER_MODE_ONE_TILE"},_map:null,_canvasLayer:null,_windy:null,_context:null,_timer:0,_mouseControl:null,_grayImage:null,isActive:!1,initialize:function(t,e){p["Util"].setOptions(this,this.options),c["a"].log("K2517Layer",e),this._url=t},setOptions:function(t){var e=Object(r["a"])(Object(r["a"])({},this.options||{}),t||{});p["Util"].setOptions(this,e),c["a"].log("K2517Layer setOptions",this.options),this.redraw()},onAdd:function(t){this._paneName=this.options.paneName||"tilePane";var e=t._panes.overlayPane;t.getPane&&(e=t.getPane(this._paneName),e||(e=t.createPane(this._paneName)));var n={pane:e};void 0!==this.options.zIndex&&null!==this.options.zIndex&&(n.zIndex=this.options.zIndex),c["a"].log(n),this._canvasLayer=p["canvasLayer"](n).delegate(this),this._canvasLayer.addTo(t),this._map=t},onRemove:function(t){c["a"].log("n2517 onRemove is called"),this._canvasLayer&&this._map.hasLayer(this._canvasLayer)&&(this._map.removeLayer(this._canvasLayer),this._canvasLayer=null)},onDrawLayer:function(t,e){var n=this;n._refreshWebgl()},redraw:function(){return this.onDrawLayer(),this},__kloadImage:function(t,e,n){if(this.options.klayerMode&&this.options.klayerMode==It){c["a"].log("n2642 __kloadImage_tiles");var i=3;this.__kloadImage_tiles(t,e,n,i)}else this.__kloadImage_impl(t,e,n,!0,!1)},__kloadImage_tiles:function(t,e,n,i){var r=this,o={requestTileSize:Et},a=pt(t,o);c["a"].log("n2642 tilesOption",a);var s=a||{},l=s.tiles,h=s.width,u=s.height,d=document.createElement("canvas");d.width=h,d.height=u;var p=d.getContext("2d");p.clearRect(0,0,h,u);for(var f=0,m=!0,g=!1,y=function(){m=!1,f+=1},_=function(){var t=l[v],o=t||{},a=o.x,s=o.y,c=o.url,_=o.w,b=o.h,w=new Image;w.crossOrigin="",w.src=c,w.addEventListener("load",(function(){f+=1,p.drawImage(w,a,s,_,b),l.length==f&&(m?r.__kloadImage_impl_imageDataUrl3(d,p,e,n,m,g,h,u):i>1?r.__kloadImage_tiles(c,e,n,i-1):r.__kloadImage_impl_imageDataUrl3(d,p,e,n,m,g,h,u))})),w.addEventListener("error",y),w.addEventListener("timeout",y)},v=0;v2&&void 0!==arguments[2]?arguments[2]:20037508.34,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return(t+n)/i/(2*n)*e},a=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20037508.34,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return-1*(t-n)/i/(2*n)*e},s=n,l=s._southWest,h=s._northEast,u=l.lng,d=h.lat,p=h.lng,f=l.lat,m=this._3857bbox(l,h),g=Math.abs(p-u),y=Math.abs(f-d),_=m[0],v=m[1],b=m[2],w=m[3],x=t.width,L=x/Tt,M=t.height,k=o(_,L),T=a(v,M),A=Math.abs(o(_,L)-o(b,L)),E=Math.abs(a(v,M)-a(w,M)),S=0,P=0,O=i,D=r;if(c["a"].log("gw,gh",L,M),c["a"].log("sx,sy,sw,sh",k,T,A,E),c["a"].log("w,h",O,D),c["a"].log("dlng,dlat",g,y),k>0){var I=k;while(I>0)I-=L;k=I+L}if(k<0){var R=k;while(R<0)R+=L;k=R}return{x:S,y:P,width:O,height:D,sx:k,sy:T,swidth:A,sheight:E,grayImageWidth:L,grayImageHeight:M}},_getGrayImageData4ToDataUrl:function(t,e,n){var i=document.createElement("canvas"),r=e,o=n;i.width=r*Tt,i.height=o;for(var a=i.getContext("2d"),s=0;s-1?r(n):n}},5494:function(t,e,n){"use strict";var i=n("83ab"),r=n("e330"),o=n("edd0"),a=URLSearchParams.prototype,s=r(a.forEach);i&&!("size"in a)&&o(a,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("a4d3"),n("4de4"),n("14d9"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("159b");var i=n("ade3");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;ei&&(e=t.finalize(e)),e.clamp();for(var r=this._oKey=e.clone(),a=this._iKey=e.clone(),s=r.words,l=a.words,c=0;c2&&w.push("'"+this.terminals_[_]+"'");L=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(L,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:h,expected:w})}}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+p);switch(g[0]){case 1:n.push(p),i.push(this.lexer.yytext),r.push(this.lexer.yylloc),n.push(g[1]),p=null,f?(p=f,f=null):(l=this.lexer.yyleng,a=this.lexer.yytext,s=this.lexer.yylineno,h=this.lexer.yylloc,c>0&&c--);break;case 2:if(v=this.productions_[g[1]][1],x.$=i[i.length-v],x._$={first_line:r[r.length-(v||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(v||1)].first_column,last_column:r[r.length-1].last_column},u&&(x._$.range=[r[r.length-(v||1)].range[0],r[r.length-1].range[1]]),y=this.performAction.call(x,a,l,s,this.yy,g[1],i,r),"undefined"!==typeof y)return y;v&&(n=n.slice(0,-1*v*2),i=i.slice(0,-1*v),r=r.slice(0,-1*v)),n.push(this.productions_[g[1]][0]),i.push(x.$),r.push(x._$),b=o[n[n.length-2]][n[n.length-1]],n.push(b);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,n=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 i=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),n.length-1&&(this.yylineno-=n.length-1);var r=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[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,n,i,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),a=0;ae[0].length)&&(e=n,i=a,!this.options.flex))break;return e?(r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.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[i],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,n,i){switch(n){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 n(){this.yy={}}return t.lexer=e,n.prototype=t,t.Parser=n,new n}();function r(t){this.data=[t],this.type="PointArray"}function o(t){this.data=t,this.type="Ring"}function a(t){this.data=[t],this.type="RingList"}function s(t){this.data=[t],this.type="PolygonList"}function l(e){var i;try{i=n.parse(e)}catch(r){throw Error("Unable to parse: "+r)}return t.Primitive(i)}function c(t){for(var e=[],n="",i=0;i=55296&&r<=56319&&n>1,t+=v(t/e);while(t>g*s>>1)t=v(t/g),i+=o;return v(i+(g+1)*t/(t+l))},P=function(t){var e=[];t=A(t);var n,i,l=t.length,c=u,p=0,f=h;for(n=0;n=c&&iv((r-p)/M))throw new y(m);for(p+=(w-c)*M,c=w,n=0;nr)throw new y(m);if(i===c){var k=p,T=o;while(1){var P=T<=f?a:T>=f+s?s:T-f;if(ka){var m,g=u(arguments[a++]),y=d?f(s(g),d(g)):s(g),_=y.length,v=0;while(_>v)m=y[v++],i&&!o(p,g,m)||(n[m]=g[m])}return n}:d},"60ed":function(t,e,n){var i=n("3729"),r=n("2dcb"),o=n("1310"),a="[object Object]",s=Function.prototype,l=Object.prototype,c=s.toString,h=l.hasOwnProperty,u=c.call(Object);function d(t){if(!o(t)||i(t)!=a)return!1;var e=r(t);if(null===e)return!0;var n=h.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}t.exports=d},"621a":function(t,e,n){"use strict";var i=n("da84"),r=n("e330"),o=n("83ab"),a=n("4b11"),s=n("5e77"),l=n("9112"),c=n("edd0"),h=n("6964"),u=n("d039"),d=n("19aa"),p=n("5926"),f=n("50c4"),m=n("0b25"),g=n("be8e"),y=n("77a7"),_=n("e163"),v=n("d2bb"),b=n("81d5"),w=n("f36a"),x=n("7156"),L=n("e893"),M=n("d44e"),k=n("69f3"),T=s.PROPER,A=s.CONFIGURABLE,E="ArrayBuffer",S="DataView",P="prototype",O="Wrong length",D="Wrong index",I=k.getterFor(E),R=k.getterFor(S),j=k.set,C=i[E],N=C,z=N&&N[P],G=i[S],B=G&&G[P],Z=Object.prototype,U=i.Array,Y=i.RangeError,W=r(b),F=r([].reverse),V=y.pack,Q=y.unpack,H=function(t){return[255&t]},J=function(t){return[255&t,t>>8&255]},X=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},K=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},q=function(t){return V(g(t),23,4)},$=function(t){return V(t,52,8)},tt=function(t,e,n){c(t[P],e,{configurable:!0,get:function(){return n(this)[e]}})},et=function(t,e,n,i){var r=R(t),o=m(n),a=!!i;if(o+e>r.byteLength)throw new Y(D);var s=r.bytes,l=o+r.byteOffset,c=w(s,l,l+e);return a?c:F(c)},nt=function(t,e,n,i,r,o){var a=R(t),s=m(n),l=i(+r),c=!!o;if(s+e>a.byteLength)throw new Y(D);for(var h=a.bytes,u=s+a.byteOffset,d=0;d>24)},setUint8:function(t,e){ot(this,t,e<<24>>24)}},{unsafe:!0})}else N=function(t){d(this,z);var e=m(t);j(this,{type:E,bytes:W(U(e),0),byteLength:e}),o||(this.byteLength=e,this.detached=!1)},z=N[P],G=function(t,e,n){d(this,B),d(t,z);var i=I(t),r=i.byteLength,a=p(e);if(a<0||a>r)throw new Y("Wrong offset");if(n=void 0===n?r-a:f(n),a+n>r)throw new Y(O);j(this,{type:S,buffer:t,byteLength:n,byteOffset:a,bytes:i.bytes}),o||(this.buffer=t,this.byteLength=n,this.byteOffset=a)},B=G[P],o&&(tt(N,"byteLength",I),tt(G,"buffer",R),tt(G,"byteLength",R),tt(G,"byteOffset",R)),h(B,{getInt8:function(t){return et(this,1,t)[0]<<24>>24},getUint8:function(t){return et(this,1,t)[0]},getInt16:function(t){var e=et(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=et(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return K(et(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return K(et(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return Q(et(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return Q(et(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){nt(this,1,t,H,e)},setUint8:function(t,e){nt(this,1,t,H,e)},setInt16:function(t,e){nt(this,2,t,J,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){nt(this,2,t,J,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){nt(this,4,t,X,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){nt(this,4,t,X,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){nt(this,4,t,q,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){nt(this,8,t,$,e,arguments.length>2&&arguments[2])}});M(N,E),M(G,S),t.exports={ArrayBuffer:N,DataView:G}},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"633b":function(t,n,i){"use strict";i.d(n,"a",(function(){return a})),i.d(n,"b",(function(){return s}));i("caad"),i("2532");var r=function(){try{return!1}catch(e){console.error(e)}return!1},o=function(){try{if(r())return"undefined"!=typeof device&&"iOS"==device.platform}catch(e){console.error(e)}return!1},a=function(){try{if(r())return"undefined"!=typeof device&&"Android"==device.platform}catch(e){console.error(e)}return!1},s=function(){try{if(o())return"undefined"!=typeof device&&device.model.includes("iPad")}catch(e){}return!1}},6374:function(t,e,n){"use strict";var i=n("da84"),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},"63ea":function(t,e,n){var i=n("c05f");function r(t,e){return i(t,e)}t.exports=r},"63f9":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return isSDK})),__webpack_require__.d(__webpack_exports__,"a",(function(){return create}));var _var_jenkins_home_workspace_hfweb2_sdk_deploy_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("5530"),_map_hfmap__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("3354"),_sdk_kai_index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("bcc9"),_sdk_remote_index__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("b4f3"),_sdk_remote_weather__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("106a"),leaflet__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("ef1d"),leaflet__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(leaflet__WEBPACK_IMPORTED_MODULE_5__),_mapCache={};function $gisGetMap(t){var e=t||{},n=e.el,i=void 0===n?"map":n;if(_mapCache[i])return _mapCache[i];var r=new _map_hfmap__WEBPACK_IMPORTED_MODULE_1__["a"];return r.init(i),r.initModule(Object(_var_jenkins_home_workspace_hfweb2_sdk_deploy_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["a"])(Object(_var_jenkins_home_workspace_hfweb2_sdk_deploy_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["a"])({},t),{},{vue:this,_mode:"sdk"})),_mapCache[i]=r,_mapCache[i]}function $gisGetModule(t,e){var n=$gisGetMap(e);return n.getModule(t)}function setSDK(){window.___hf_map_sdk=!0}function isSDK(){return!!window.___hf_map_sdk}function create(options){setSDK();var kaiModule=$gisGetModule("kai",options),displayModule=$gisGetModule("display",options),baseModule=Object(_var_jenkins_home_workspace_hfweb2_sdk_deploy_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["a"])(Object(_var_jenkins_home_workspace_hfweb2_sdk_deploy_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["a"])({},kaiModule),displayModule),weatherModule=_sdk_remote_weather__WEBPACK_IMPORTED_MODULE_4__["a"].create(baseModule),exportKai=_sdk_kai_index__WEBPACK_IMPORTED_MODULE_2__["a"].capsulate(baseModule,options),exportSdk=Object(_var_jenkins_home_workspace_hfweb2_sdk_deploy_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["a"])({},exportKai),exportRemote=_sdk_remote_index__WEBPACK_IMPORTED_MODULE_3__["a"].capsulate(baseModule,options,exportSdk),destory=function(){var t=kaiModule.getMap();_mapCache={},t.remove()},val=eval("var HELLO_WORLD"),sdk=Object(_var_jenkins_home_workspace_hfweb2_sdk_deploy_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["a"])(Object(_var_jenkins_home_workspace_hfweb2_sdk_deploy_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["a"])(Object(_var_jenkins_home_workspace_hfweb2_sdk_deploy_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["a"])(Object(_var_jenkins_home_workspace_hfweb2_sdk_deploy_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["a"])({},exportSdk),exportRemote),weatherModule),{},{destory:destory});if(val){var _loop=function(t){sdk[t]=function(){return console.log(t+" no auth")}};for(var method in sdk)_loop(method)}return sdk}leaflet__WEBPACK_IMPORTED_MODULE_5__["_$hfTimeZoneFormatter"]=function(t){return t}},"649e":function(t,e,n){"use strict";var i=n("ebb5"),r=n("b727").some,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("some",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"64af":function(t,e){t.exports.RADIUS=6378137,t.exports.FLATTENING=1/298.257223563,t.exports.POLAR_RADIUS=6356752.3142},"64b0":function(t,n,i){"use strict";var r=i("71c9"),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},t.exports=o},6547:function(t,e,n){"use strict";var i=n("e330"),r=n("5926"),o=n("577e"),a=n("1d80"),s=i("".charAt),l=i("".charCodeAt),c=i("".slice),h=function(t){return function(e,n){var i,h,u=o(a(e)),d=r(n),p=u.length;return d<0||d>=p?t?"":void 0:(i=l(u,d),i<55296||i>56319||d+1===p||(h=l(u,d+1))<56320||h>57343?t?s(u,d):i:t?c(u,d,d+2):h-56320+(i-55296<<10)+65536)}};t.exports={codeAt:h(!1),charAt:h(!0)}},6566:function(t,e,n){"use strict";var i=n("7c73"),r=n("edd0"),o=n("6964"),a=n("0366"),s=n("19aa"),l=n("7234"),c=n("2266"),h=n("c6d2"),u=n("4754"),d=n("2626"),p=n("83ab"),f=n("f183").fastKey,m=n("69f3"),g=m.set,y=m.getterFor;t.exports={getConstructor:function(t,e,n,h){var u=t((function(t,r){s(t,d),g(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),p||(t.size=0),l(r)||c(r,t[h],{that:t,AS_ENTRIES:n})})),d=u.prototype,m=y(e),_=function(t,e,n){var i,r,o=m(t),a=v(t,e);return a?a.value=n:(o.last=a={index:r=f(e,!0),key:e,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=a),i&&(i.next=a),p?o.size++:t.size++,"F"!==r&&(o.index[r]=a)),t},v=function(t,e){var n,i=m(t),r=f(e);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key===e)return n};return o(d,{clear:function(){var t=this,e=m(t),n=e.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),n=n.next;e.first=e.last=void 0,e.index=i(null),p?e.size=0:t.size=0},delete:function(t){var e=this,n=m(e),i=v(e,t);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first===i&&(n.first=r),n.last===i&&(n.last=o),p?n.size--:e.size--}return!!i},forEach:function(t){var e,n=m(this),i=a(t,arguments.length>1?arguments[1]:void 0);while(e=e?e.next:n.first){i(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!v(this,t)}}),o(d,n?{get:function(t){var e=v(this,t);return e&&e.value},set:function(t,e){return _(this,0===t?0:t,e)}}:{add:function(t){return _(this,t=0===t?0:t,t)}}),p&&r(d,"size",{configurable:!0,get:function(){return m(this).size}}),u},setStrong:function(t,e,n){var i=e+" Iterator",r=y(e),o=y(i);h(t,e,(function(t,e){g(this,{type:i,target:t,state:r(t),kind:e,last:void 0})}),(function(){var t=o(this),e=t.kind,n=t.last;while(n&&n.removed)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?u("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,u(void 0,!0))}),n?"entries":"values",!n,!0),d(e)}}},"65f0":function(t,e,n){"use strict";var i=n("0b42");t.exports=function(t,e){return new(i(t))(0===e?0:e)}},"664c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PolyVisualCenter=void 0;const i=n("a0a9"),r=(t,e,n=!1)=>{const i=[];return Array.isArray(t)?Array.isArray(t[0])&&t[0].length>2?i.push(s(t,e,n)):Array.isArray(t[0])&&2===t[0].length&&i.push(s([t],e,n)):t.type&&("FeatureCollection"===t.type?t.features&&Array.isArray(t.features)&&t.features.length>0&&t.features.forEach(t=>{a(t,e,i,n)}):"Feature"===t.type?a(t,e,i,n):"GeometryCollection"===t.type&&t.geometries&&Array.isArray(t.geometries)&&t.geometries.length>0&&t.geometries.forEach(t=>{o(t,e,i,n)})),{polygon:t,poles:i}};e.PolyVisualCenter=r;const o=(t,e,n,i=!1)=>{if("Polygon"===t.type){if(t.coordinates){const r=s(t.coordinates,e,i);n.push(r),(null===t["properties"]||void 0===t["properties"]||"object"===typeof t["properties"]&&Array.isArray(t["properties"]))&&(t["properties"]={}),t["properties"]["poleX"]=r.poleX,t["properties"]["poleY"]=r.poleY,t["properties"]["poleDistance"]=r.poleDistance}}else if("MultiPolygon"===t.type&&t.coordinates){const r=t.coordinates[0],o=s(r,e,i);n.push(o),(null===t["properties"]||void 0===t["properties"]||"object"===typeof t["properties"]&&Array.isArray(t["properties"]))&&(t["properties"]={}),t["properties"]["poleX"]=o.poleX,t["properties"]["poleY"]=o.poleY,t["properties"]["poleDistance"]=o.poleDistance}},a=(t,e,n,i=!1)=>{if("Feature"===t.type&&t.geometry&&t.geometry.type)if("Polygon"===t.geometry.type){if(t.geometry.coordinates){const r=s(t.geometry.coordinates,e,i);n.push(r),(null===t["properties"]||void 0===t["properties"]||"object"===typeof t["properties"]&&Array.isArray(t["properties"]))&&(t["properties"]={}),t["properties"]["poleX"]=r.poleX,t["properties"]["poleY"]=r.poleY,t["properties"]["poleDistance"]=r.poleDistance}}else if("MultiPolygon"===t.geometry.type&&t.geometry.coordinates){const r=t.geometry.coordinates[0],o=s(r,e,i);n.push(o),(null===t["properties"]||void 0===t["properties"]||"object"===typeof t["properties"]&&Array.isArray(t["properties"]))&&(t["properties"]={}),t["properties"]["poleX"]=o.poleX,t["properties"]["poleY"]=o.poleY,t["properties"]["poleDistance"]=o.poleDistance}},s=(t,e,n=!1)=>{let r=e||1,o=999999999999,a=999999999999,s=-999999999999,u=-999999999999;for(let i=0;is)&&(s=e[0]),(!i||e[1]>u)&&(u=e[1])}const d=s-o,p=u-a,f=Math.min(d,p);let m=f/2;const g=f/10;if(r=r>g?g:r,0===f){const t={poleX:o,poleY:a,poleDistance:0};return t}const y=new i.TinyQueue(void 0,h);for(let i=o;i_.d&&(_=v);let b=y.length;while(y.length){const e=y.pop();e.d>_.d&&(_=e,n&&console.log("found best %f after %d probes",Math.round(1e4*e.d)/1e4,b)),e.max-_.d<=r||(m=e.h/2,y.push(c(e.x-m,e.y-m,m,t)),y.push(c(e.x+m,e.y-m,m,t)),y.push(c(e.x-m,e.y+m,m,t)),y.push(c(e.x+m,e.y+m,m,t)),b+=4)}n&&(console.log("num probes: "+b),console.log("best distance: "+_.d));const w={poleX:_.x,poleY:_.y,poleDistance:_.d};return w},l=t=>{let e=0,n=0,i=0;const r=t[0];for(let o=0,a=r.length,s=a-1;o{const r=u(t,e,i);return{x:t,y:e,h:n,d:r,max:r+n*Math.SQRT2}},h=(t,e)=>e.max-t.max,u=(t,e,n)=>{let i=!1,r=1/0;for(let o=0;oe!==l[1]>e&&t<(l[0]-o[0])*(e-o[1])/(l[1]-o[1])+o[0]&&(i=!i),r=Math.min(r,d(t,e,o,l))}}return 0===r?0:(i?1:-1)*Math.sqrt(r)},d=(t,e,n,i)=>{let r=n[0],o=n[1],a=i[0]-r,s=i[1]-o;if(0!==a||0!==s){const n=((t-r)*a+(e-o)*s)/(a*a+s*s);n>1?(r=i[0],o=i[1]):n>0&&(r+=a*n,o+=s*n)}return a=t-r,s=e-o,a*a+s*s}},"668f":function(t,e,n){(function(e,n){"object"===typeof t.exports&&(t.exports=n()),"object"===typeof window&&(e.Terraformer=n())})(this,(function(){"use strict";var t={},e=6378137,n=57.29577951308232,i=.017453292519943,r={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 a(t){return"[object Array]"===Object.prototype.toString.call(t)}function s(){var t=Array.prototype.slice.apply(arguments);void 0!==typeof console&&console.warn&&console.warn.apply(console,t)}function l(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);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 d(t.coordinates);case"LineString":return d(t.coordinates);case"MultiLineString":return h(t.coordinates);case"Polygon":return h(t.coordinates);case"MultiPolygon":return u(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 h(t){for(var e=null,n=null,i=null,r=null,o=0;on)&&(n=c),(null===i||hr)&&(r=h)}return[e,i,n,r]}function u(t){for(var e=null,n=null,i=null,r=null,o=0;on)&&(n=u),(null===i||dr)&&(r=d)}return[e,i,n,r]}function d(t){for(var e=null,n=null,i=null,r=null,o=0;on)&&(n=s),(null===i||lr)&&(r=l)}return[e,i,n,r]}function p(t){for(var e,n=[],i=t.features.length-1;i>=0;i--)e=c(t.features[i].geometry),n.push([e[0],e[1]]),n.push([e[2],e[3]]);return d(n)}function f(t){for(var e,n=[],i=t.geometries.length-1;i>=0;i--)e=c(t.geometries[i]),n.push([e[0],e[1]]),n.push([e[2],e[3]]);return d(n)}function m(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 g(t){return t*n}function y(t){return t*i}function _(t,e){for(var n=0;ne?1:0}function k(t,e){return t[0]>e[0]?-1:t[0]e[1]?-1:t[1]A(e,n))&&(n=t[i])}return n}function S(t){if(0===t.length)return[];if(1===t.length)return t;for(var e=[t.sort(k)[0]],n=0;n0||!e&&s<0)return!1}return!0}function O(t,e){for(var n=!1,i=-1,r=t.length,o=r-1;++i=2))throw"Terraformer: invalid input for Terraformer.Point";this.coordinates=e}this.type="Point"}function U(t){if(t&&"MultiPoint"===t.type&&t.coordinates)l(this,t);else{if(!a(t))throw"Terraformer: invalid input for Terraformer.MultiPoint";this.coordinates=t}this.type="MultiPoint"}function Y(t){if(t&&"LineString"===t.type&&t.coordinates)l(this,t);else{if(!a(t))throw"Terraformer: invalid input for Terraformer.LineString";this.coordinates=t}this.type="LineString"}function W(t){if(t&&"MultiLineString"===t.type&&t.coordinates)l(this,t);else{if(!a(t))throw"Terraformer: invalid input for Terraformer.MultiLineString";this.coordinates=t}this.type="MultiLineString"}function F(t){if(t&&"Polygon"===t.type&&t.coordinates)l(this,t);else{if(!a(t))throw"Terraformer: invalid input for Terraformer.Polygon";this.coordinates=t}this.type="Polygon"}function V(t){if(t&&"MultiPolygon"===t.type&&t.coordinates)l(this,t);else{if(!a(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 H(t){if(t&&"FeatureCollection"===t.type&&t.features)l(this,t);else{if(!a(t))throw"Terraformer: invalid input for Terraformer.FeatureCollection";this.features=t}this.type="FeatureCollection"}function J(t){if(t&&"GeometryCollection"===t.type&&t.geometries)l(this,t);else if(a(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,n){for(var i=b(t),r=n||64,o={type:"Polygon",coordinates:[[]]},a=1;a<=r;a++){var s=a*(360/r)*Math.PI/180;o.coordinates[0].push([i[0]+e*Math.cos(s),i[1]+e*Math.sin(s)])}return o.coordinates=C(o.coordinates),L(o)}function K(t,e,n){var i=n||64,r=e||250;if(!t||t.length<2||!r||!i)throw new Error("Terraformer: missing parameter for Terraformer.Circle");l(this,new Q({type:"Feature",geometry:X(t,r,i),properties:{radius:r,center:t,steps:i}}))}return B.prototype.toMercator=function(){return x(this)},B.prototype.toGeographic=function(){return L(this)},B.prototype.envelope=function(){return m(this)},B.prototype.bbox=function(){return c(this)},B.prototype.convexHull=function(){var t,e,n=[];if("Point"===this.type)return null;if("LineString"===this.type||"MultiPoint"===this.type){if(!(this.coordinates&&this.coordinates.length>=3))return null;n=this.coordinates}else if("Polygon"===this.type||"MultiLineString"===this.type){if(!(this.coordinates&&this.coordinates.length>0))return null;for(t=0;t0))return null;for(t=0;t1},F.prototype.holes=function(){var t=[];if(this.hasHoles())for(var e=1;e180)n-=360;while(r>180)r-=360;while(r<-180)r+=360;while(n<-180)n+=360;return r+","+o+","+n+","+i},o=function(t,e){return 180==e?a(t)-1:(e=s(e),(e+180)/360*a(t))};function a(t){return t>=0&&t-Math.floor(t)<.001?1<180)t<0?t+=360:t-=360;return t}function l(t){while(t<-90||t>90)t<0?t+=180:t-=180;return t<-85.0511?-85.0511:t>85.0511?85.0511:t}var c=function(t,e){e=l(e);var n=Math.log(Math.tan(h(e))+1/Math.cos(h(e)));return isFinite(n)&&!isNaN(n)||(e=e<0?-89.9:89.9,n=Math.log(Math.tan(h(e))+1/Math.cos(h(e)))),(1-n/Math.PI)/2*a(t)};function h(t){return t/180*Math.PI}var u=function(t){var e,n,i,a,s,l,h=r(t),u=h.split(","),d=t.getZoom(),p=Number(u[0]),f=Number(u[1]),m=Number(u[2]),g=Number(u[3]),y=new Array;if(d<3){for(p=-180,f=-90,m=180,g=90,e=parseInt(o(d,p)),n=parseInt(o(d,m)),a=parseInt(c(d,f)),i=parseInt(c(d,g)),s=e;s<=n;s++)for(l=i;l<=a;l++)y.push(d+"_"+s+"_"+l);return y}if(p>m){for(e=parseInt(o(d,p)),n=parseInt(o(d,180)),a=parseInt(c(d,f)),i=parseInt(c(d,g)),s=e;s<=n;s++)for(l=i;l<=a;l++)y.push(d+"_"+s+"_"+l);for(e=parseInt(o(d,-180)),n=parseInt(o(d,m)),a=parseInt(c(d,f)),i=parseInt(c(d,g)),s=e;s<=n;s++)for(l=i;l<=a;l++)y.push(d+"_"+s+"_"+l);return y}for(e=parseInt(o(d,p)),n=parseInt(o(d,m)),a=parseInt(c(d,f)),i=parseInt(c(d,g)),s=e;s<=n;s++)for(l=i;l<=a;l++)y.push(d+"_"+s+"_"+l);return y},d=function(t){return u(t)};function p(t){return m(.5-.00555555555555555*t)}function f(t){return.5+.00277777777777777*t}function m(t){return(Math.PI-Math.log(Math.tan(.5*(1-t)*Math.PI)))/(2*Math.PI)}function g(t){try{return JSON.parse(JSON.stringify(t))}catch(e){}return{}}},6747:function(t,e){var n=Array.isArray;t.exports=n},"67ca":function(t,e,n){var i=n("cb5a");function r(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}t.exports=r},"67d9":function(t,e,n){"use strict";t.exports=URIError},"67ee":function(t,e,n){"use strict";t.exports=SyntaxError},"688e":function(t,e,n){"use strict";var i="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,o=Math.max,a="[object Function]",s=function(t,e){for(var n=[],i=0;i0){var n=t[0];e=n.hasOwnProperty("lat")?t.map((function(t){return t.hasOwnProperty("lng")?[t.lat,t.lng]:[t.lat,t.lon]})):t}return e},l=function(t){var n=s(t);try{var i=o()(n),r=i||{},a=r.poles;if(a&&a.length>0){var l=a[0],c=l||{},h=c.poleX,u=void 0===h?null:h,d=c.poleY,p=void 0===d?null:d;if(null!=u&&null!=p)return{lat:u,lng:p}}}catch(e){}return null},c=function(t){var e=s(t),n=a["polygon"](e),i=n.getBounds().getCenter(),r=l(e);return r&&(i=r),i}},"6b93":function(t,e,n){"use strict";var i=n("23e7"),r=n("867a");i({target:"Math",stat:!0},{log10:r})},"6c4f":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAC4jAAAuIwF4pT92AAAF+mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2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jtrfvbMpBLYQgDAJwHHzXxXddvEYDInESbgWjXCREoqwIK+0ZuDVNeP48eqnUtXGdRCmwosSCBnpthUATCN2kigmGiSYlUojkxrY6TWLio/kOoQCpaXhCruINA80wog9ELxb/tS6EtrHAMMBDJ9AthIIgDDGUD9oqOQxDd+OAQoBTpyot/JYkeqhQvkccH3wflc8T1GrVpgCVUmhSgmkiDQNpGBhWBBpVKkYCr20rGiHCqZGsFSCWgOFhgmQy3xygYSHLeZi6gjGbxZjNInMT8Nso05EuIu0CHw2rXiZdmIVHDiIOH8aXcrY5vThskLXS6EaGhpQAmMqj9uhjXEoOkphcQOvO0Fpdpi8SQP8+FOBMTU02BZisLTPS/QQjex5Gv/ezoMCMglnwyGazlBc83q5MYWY6INWJY9vUZmbGmgK0I1vZu/grPcUbCPHXqEUphWWa1HQQxTwvxldgawZsm7mzZ+8EnnehKcBlEeWQv8AwRdBjq9t3L44GtTug62CksG8XyZ08WVq8fv1YpK+vrluWldiSbFs3nGWZdMcl43P50a5L314odmT4+7jKq9fNzL59p4QQzE1c/KClVvujWq1+RTpd1IRAz+UWF34cubiulyYnVFzt3H1G377/s8cXJ6laLfeRddvGisVO+Z5HpVJ5JxGGxFtasE0T5fvoucWlp6dv3tI0uT4njlIKHah29ixPPjTIoeIMhmEQitVuEW9vj85du/ZJEIZfxzs7EYUCKgwRd8tAbM4H15hN4FqzCVxrNoFrzZ8xK9W66dihGwAAAABJRU5ErkJggg=="},"6c53":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAOpJREFUWEftlVEOgjAMQFs8gXgU+BXhZMDJmPgLRxFPIDVlQaZRss4PTew+l9G9vpUW4csLQ+8/p1mFRAf+HnFTbztjQmJ9CAClBYgKBVADakAN/JeBIdk3AJi7rZcQ6l3XVtJ2LG7FdgbYFvy8QiAmgEuaP2TzLosRxny5nAwPIbvHQ8kaYYgIIq/BxHUzAQxJRlJ1bracANHYSGPEfYvBAO4EXHuWNag7AAfwpXefgBCPrJvoWi5FSYb3feJx0f5GEfrQumdeKycT96dCGktsYL7ALbyQ32+OowBqQA2oATUQbEDa89+dvwG5afohtbBeHAAAAABJRU5ErkJggg=="},"6c59":function(t,e,n){"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},"6ce5":function(t,e,n){"use strict";var i=n("df7e"),r=n("ebb5"),o=r.aTypedArray,a=r.exportTypedArrayMethod,s=r.getTypedArrayConstructor;a("toReversed",(function(){return i(o(this),s(this))}))},"6cff":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAACt0lEQVRIS72WQUgUcRTGv7fu/Ff0EkYg4oxC6sxCHiKhSxBhFHkpDbpUBEUGhSERRJcyDx3qEGQQSXWoTgXaKdNDIHQJDA+JO1tG7ExIEFkIBTNj+2JEZdv5z87MQu1lYOf73m/e4/u/GcJ//lE1vIXmTJvva/vsLCT1xwL6gJUU94OxDYSdABrWQEtgvAFhLl2k0TgPEAl8r2UGiuBhAJsiuvmRAl3psJyRSrqKQFMVL0A4kGhsjAnDdnvCPKHAfIvoZcZYItiamAh9esEdl3mlwHdqZqtCnDgQpQCPqa3Tdj6WQ6XAnCrGiNAb0t0Ug/P+PQLpAPbJdMwYz9puXyygqYlvJUnc8DBwLWu5Q6VFcpoYIuCqBLpkWO7mSGBOU3YQaKZcyMDszxV3V9cifpXem2lCXX1avCZge9DDXVnLe1v6f2CkOU3pJ9C9wBMzHhq2e0o2PlMVD0A4KQGeyVreaEXgvJYZTIFvScwjWcs7LwPmNOU2gQYC42O6oNvOX7UCHc6r4lCKIIv0lGG5+6UdamIyJDxHDMt9VrHDuWY0pFOroZFMNVFokC5Se/m6kx4LUxNPABwNg9YwVo/Fb4IeklAgZOPIgS21e8DFV9VsmXUPgU/olvco8lisC/KauM7A5aqgRHeNgnNW5g3dpYtNqFtOi2kAXUmgBMzWwu1usfA9EdAXm6o4CMLzRECiHr3gTIR5It+HeVW5w0Tn4kAZGM5armzNbdgjgXOt9Y1p9qbB6IiAhp7TiudQVjSvKccZFEhciXYZzN2G7QV2cOyUlgtNVdwE4aI0CMSn9YJ3P87YI0daWsTUxGMAx8oK3zAs91IcmK9JBHwK1HRqyksC7fXN/idI1nYPx4UlBvqGT631jQ57k2AUa4S7u30By/8U6Bf/0Igt/rX9C74mgVXVYVJAuf4PzTbhHc/AHUwAAAAASUVORK5CYII="},"6d08":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.CipherParams,o=n.enc,a=o.Hex,s=n.format;s.Hex={stringify:function(t){return t.ciphertext.toString(a)},parse:function(t){var e=a.parse(t);return r.create({ciphertext:e})}}}(),t.format.Hex}))},"6d61":function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("e330"),a=n("94ca"),s=n("cb2d"),l=n("f183"),c=n("2266"),h=n("19aa"),u=n("1626"),d=n("7234"),p=n("861d"),f=n("d039"),m=n("1c7e"),g=n("d44e"),y=n("7156");t.exports=function(t,e,n){var _=-1!==t.indexOf("Map"),v=-1!==t.indexOf("Weak"),b=_?"set":"add",w=r[t],x=w&&w.prototype,L=w,M={},k=function(t){var e=o(x[t]);s(x,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(v&&!p(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return v&&!p(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(v&&!p(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})},T=a(t,!u(w)||!(v||x.forEach&&!f((function(){(new w).entries().next()}))));if(T)L=n.getConstructor(e,t,_,b),l.enable();else if(a(t,!0)){var A=new L,E=A[b](v?{}:-0,1)!==A,S=f((function(){A.has(1)})),P=m((function(t){new w(t)})),O=!v&&f((function(){var t=new w,e=5;while(e--)t[b](e,e);return!t.has(-0)}));P||(L=e((function(t,e){h(t,x);var n=y(new w,t,L);return d(e)||c(e,n[b],{that:n,AS_ENTRIES:_}),n})),L.prototype=x,x.constructor=L),(S||O)&&(k("delete"),k("has"),_&&k("get")),(O||E)&&k(b),v&&x.clear&&delete x.clear}return M[t]=L,i({global:!0,constructor:!0,forced:L!==w},M),g(L,t),v||n.setStrong(L,t,_),L}},"6d65":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIgAAABXCAIAAABQsJr/AAAACXBIWXMAACdfAAAnXwEdhrpqAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv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O2Tb9OzciRV6dW+zfaDqTv2Hr3t1nY/v3PYsJ6dRg3q/tmarYXFpS8+Mb139453TRjQNDp6294jxNg1xnDXd6JMCFWSTccG5wwgR8Bx2iQ1c+uutMzs0tIKJstkGInNm3p0V3pWjs+0yLIjIsLiYyPTsi9WlFVAsKTEOE3TUtPOk+0wTdYkyXaEUyPZxAK5p0rDHRHSIi7GJsrMLagoKmW65lJk0xEOEQBdlm3hWD4zMSEODFnZeUySHeFoslxp21WBqh0a6k1oFHU+t6Ck0scYI0EwrRaJTTRFSU3PBABFQqURHhWeFN+4sKT0bOZFyNytyIYT6JkBA0gIRZJtxwZnBKbLsmk7Qthk2s2bN/XqrrPZFyt9fjLtyOjwxCaxhaUVZzNzIPFrFZobOOonRN00TKB5SaqRnrGdqiuBF7gLCAFZCjR/wxYgqvqIYOs+u8JcgdKIxIOD13RAq/8OBHqB9hrGUMdJrTU7aj1hzYtCwHbAedB5u9zTrXfqS4utekJHwKkxzr8hu3ypylJ3MPly97qODqzR6MzqfvsDe4rzutPVZFb133UGrMPQWrNf4QkDc6n8ioNcaeqrLPZfmpJpoH8jNQDTAEwDNQDTAEwDNQDTAEwDNQDTQFek/zcAdOkCxMoKnjQAAAAASUVORK5CYII="},"6f19":function(t,e,n){"use strict";var i=n("9112"),r=n("0d26"),o=n("b980"),a=Error.captureStackTrace;t.exports=function(t,e,n,s){o&&(a?a(t,e):i(t,"stack",r(n,s)))}},"6f48":function(t,e,n){"use strict";var i=n("6d61"),r=n("6566");i("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r)},"6fcd":function(t,e,n){var i=n("50d8"),r=n("d370"),o=n("6747"),a=n("0d24"),s=n("c098"),l=n("73ac"),c=Object.prototype,h=c.hasOwnProperty;function u(t,e){var n=o(t),c=!n&&r(t),u=!n&&!c&&a(t),d=!n&&!c&&!u&&l(t),p=n||c||u||d,f=p?i(t.length,String):[],m=f.length;for(var g in t)!e&&!h.call(t,g)||p&&("length"==g||u&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}t.exports=u},7149:function(t,e,n){"use strict";var i=n("23e7"),r=n("d066"),o=n("c430"),a=n("d256"),s=n("4738").CONSTRUCTOR,l=n("cdf9"),c=r("Promise"),h=o&&!s;i({target:"Promise",stat:!0,forced:o||s},{resolve:function(t){return l(h&&this===c?a:this,t)}})},7156:function(t,e,n){"use strict";var i=n("1626"),r=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var a,s;return o&&i(a=e.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},"71c9":function(t,n,i){"use strict";var r=i("00ce"),o=r("%Object.defineProperty%",!0)||!1;if(o)try{o({},"a",{value:1})}catch(e){o=!1}t.exports=o},7234:function(t,e,n){"use strict";t.exports=function(t){return null===t||void 0===t}},7282:function(t,e,n){"use strict";var i=n("e330"),r=n("59ed");t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(o){}}},"72af":function(t,e,n){var i=n("99cd"),r=i();t.exports=r},"72f0":function(t,e){function n(t){return function(){return t}}t.exports=n},"72f7":function(t,e,n){"use strict";var i=n("ebb5").exportTypedArrayMethod,r=n("d039"),o=n("da84"),a=n("e330"),s=o.Uint8Array,l=s&&s.prototype||{},c=[].toString,h=a([].join);r((function(){c.call({})}))&&(c=function(){return h(this)});var u=l.toString!==c;i("toString",c,u)},"72fe":function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=[];(function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0})();var l=a.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,a=t[e+0],l=t[e+1],p=t[e+2],f=t[e+3],m=t[e+4],g=t[e+5],y=t[e+6],_=t[e+7],v=t[e+8],b=t[e+9],w=t[e+10],x=t[e+11],L=t[e+12],M=t[e+13],k=t[e+14],T=t[e+15],A=o[0],E=o[1],S=o[2],P=o[3];A=c(A,E,S,P,a,7,s[0]),P=c(P,A,E,S,l,12,s[1]),S=c(S,P,A,E,p,17,s[2]),E=c(E,S,P,A,f,22,s[3]),A=c(A,E,S,P,m,7,s[4]),P=c(P,A,E,S,g,12,s[5]),S=c(S,P,A,E,y,17,s[6]),E=c(E,S,P,A,_,22,s[7]),A=c(A,E,S,P,v,7,s[8]),P=c(P,A,E,S,b,12,s[9]),S=c(S,P,A,E,w,17,s[10]),E=c(E,S,P,A,x,22,s[11]),A=c(A,E,S,P,L,7,s[12]),P=c(P,A,E,S,M,12,s[13]),S=c(S,P,A,E,k,17,s[14]),E=c(E,S,P,A,T,22,s[15]),A=h(A,E,S,P,l,5,s[16]),P=h(P,A,E,S,y,9,s[17]),S=h(S,P,A,E,x,14,s[18]),E=h(E,S,P,A,a,20,s[19]),A=h(A,E,S,P,g,5,s[20]),P=h(P,A,E,S,w,9,s[21]),S=h(S,P,A,E,T,14,s[22]),E=h(E,S,P,A,m,20,s[23]),A=h(A,E,S,P,b,5,s[24]),P=h(P,A,E,S,k,9,s[25]),S=h(S,P,A,E,f,14,s[26]),E=h(E,S,P,A,v,20,s[27]),A=h(A,E,S,P,M,5,s[28]),P=h(P,A,E,S,p,9,s[29]),S=h(S,P,A,E,_,14,s[30]),E=h(E,S,P,A,L,20,s[31]),A=u(A,E,S,P,g,4,s[32]),P=u(P,A,E,S,v,11,s[33]),S=u(S,P,A,E,x,16,s[34]),E=u(E,S,P,A,k,23,s[35]),A=u(A,E,S,P,l,4,s[36]),P=u(P,A,E,S,m,11,s[37]),S=u(S,P,A,E,_,16,s[38]),E=u(E,S,P,A,w,23,s[39]),A=u(A,E,S,P,M,4,s[40]),P=u(P,A,E,S,a,11,s[41]),S=u(S,P,A,E,f,16,s[42]),E=u(E,S,P,A,y,23,s[43]),A=u(A,E,S,P,b,4,s[44]),P=u(P,A,E,S,L,11,s[45]),S=u(S,P,A,E,T,16,s[46]),E=u(E,S,P,A,p,23,s[47]),A=d(A,E,S,P,a,6,s[48]),P=d(P,A,E,S,_,10,s[49]),S=d(S,P,A,E,k,15,s[50]),E=d(E,S,P,A,g,21,s[51]),A=d(A,E,S,P,L,6,s[52]),P=d(P,A,E,S,f,10,s[53]),S=d(S,P,A,E,w,15,s[54]),E=d(E,S,P,A,l,21,s[55]),A=d(A,E,S,P,v,6,s[56]),P=d(P,A,E,S,T,10,s[57]),S=d(S,P,A,E,y,15,s[58]),E=d(E,S,P,A,M,21,s[59]),A=d(A,E,S,P,m,6,s[60]),P=d(P,A,E,S,x,10,s[61]),S=d(S,P,A,E,p,15,s[62]),E=d(E,S,P,A,b,21,s[63]),o[0]=o[0]+A|0,o[1]=o[1]+E|0,o[2]=o[2]+S|0,o[3]=o[3]+P|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var o=e.floor(i/4294967296),a=i;n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var h=l[c];l[c]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,n,i,r,o,a){var s=t+(e&n|~e&i)+r+a;return(s<>>32-o)+e}function h(t,e,n,i,r,o,a){var s=t+(e&i|n&~i)+r+a;return(s<>>32-o)+e}function u(t,e,n,i,r,o,a){var s=t+(e^n^i)+r+a;return(s<>>32-o)+e}function d(t,e,n,i,r,o,a){var s=t+(n^(e|~i))+r+a;return(s<>>32-o)+e}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),t.MD5}))},"735e":function(t,e,n){"use strict";var i=n("ebb5"),r=n("81d5"),o=n("f495"),a=n("f5df"),s=n("c65b"),l=n("e330"),c=n("d039"),h=i.aTypedArray,u=i.exportTypedArrayMethod,d=l("".slice),p=c((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t}));u("fill",(function(t){var e=arguments.length;h(this);var n="Big"===d(a(this),0,3)?o(t):+t;return s(r,this,n,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),p)},"73ac":function(t,e,n){var i=n("743f"),r=n("b047"),o=n("99d3"),a=o&&o.isTypedArray,s=a?r(a):i;t.exports=s},7418:function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},"743f":function(t,e,n){var i=n("3729"),r=n("b218"),o=n("1310"),a="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",h="[object Error]",u="[object Function]",d="[object Map]",p="[object Number]",f="[object Object]",m="[object RegExp]",g="[object Set]",y="[object String]",_="[object WeakMap]",v="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",L="[object Int8Array]",M="[object Int16Array]",k="[object Int32Array]",T="[object Uint8Array]",A="[object Uint8ClampedArray]",E="[object Uint16Array]",S="[object Uint32Array]",P={};function O(t){return o(t)&&r(t.length)&&!!P[i(t)]}P[w]=P[x]=P[L]=P[M]=P[k]=P[T]=P[A]=P[E]=P[S]=!0,P[a]=P[s]=P[v]=P[l]=P[b]=P[c]=P[h]=P[u]=P[d]=P[p]=P[f]=P[m]=P[g]=P[y]=P[_]=!1,t.exports=O},"74e8":function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("c65b"),a=n("83ab"),s=n("8aa7"),l=n("ebb5"),c=n("621a"),h=n("19aa"),u=n("5c6c"),d=n("9112"),p=n("eac50"),f=n("50c4"),m=n("0b25"),g=n("182d"),y=n("13a6"),_=n("a04b"),v=n("1a2d"),b=n("f5df"),w=n("861d"),x=n("d9b5"),L=n("7c73"),M=n("3a9b"),k=n("d2bb"),T=n("241c").f,A=n("a078"),E=n("b727").forEach,S=n("2626"),P=n("edd0"),O=n("9bf2"),D=n("06cf"),I=n("dfb9"),R=n("69f3"),j=n("7156"),C=R.get,N=R.set,z=R.enforce,G=O.f,B=D.f,Z=r.RangeError,U=c.ArrayBuffer,Y=U.prototype,W=c.DataView,F=l.NATIVE_ARRAY_BUFFER_VIEWS,V=l.TYPED_ARRAY_TAG,Q=l.TypedArray,H=l.TypedArrayPrototype,J=l.isTypedArray,X="BYTES_PER_ELEMENT",K="Wrong length",q=function(t,e){P(t,e,{configurable:!0,get:function(){return C(this)[e]}})},$=function(t){var e;return M(Y,t)||"ArrayBuffer"===(e=b(t))||"SharedArrayBuffer"===e},tt=function(t,e){return J(t)&&!x(e)&&e in t&&p(+e)&&e>=0},et=function(t,e){return e=_(e),tt(t,e)?u(2,t[e]):B(t,e)},nt=function(t,e,n){return e=_(e),!(tt(t,e)&&w(n)&&v(n,"value"))||v(n,"get")||v(n,"set")||n.configurable||v(n,"writable")&&!n.writable||v(n,"enumerable")&&!n.enumerable?G(t,e,n):(t[e]=n.value,t)};a?(F||(D.f=et,O.f=nt,q(H,"buffer"),q(H,"byteOffset"),q(H,"byteLength"),q(H,"length")),i({target:"Object",stat:!0,forced:!F},{getOwnPropertyDescriptor:et,defineProperty:nt}),t.exports=function(t,e,n){var a=t.match(/\d+/)[0]/8,l=t+(n?"Clamped":"")+"Array",c="get"+t,u="set"+t,p=r[l],_=p,v=_&&_.prototype,b={},x=function(t,e){var n=C(t);return n.view[c](e*a+n.byteOffset,!0)},M=function(t,e,i){var r=C(t);r.view[u](e*a+r.byteOffset,n?y(i):i,!0)},P=function(t,e){G(t,e,{get:function(){return x(this,e)},set:function(t){return M(this,e,t)},enumerable:!0})};F?s&&(_=e((function(t,e,n,i){return h(t,v),j(function(){return w(e)?$(e)?void 0!==i?new p(e,g(n,a),i):void 0!==n?new p(e,g(n,a)):new p(e):J(e)?I(_,e):o(A,_,e):new p(m(e))}(),t,_)})),k&&k(_,Q),E(T(p),(function(t){t in _||d(_,t,p[t])})),_.prototype=v):(_=e((function(t,e,n,i){h(t,v);var r,s,l,c=0,u=0;if(w(e)){if(!$(e))return J(e)?I(_,e):o(A,_,e);r=e,u=g(n,a);var d=e.byteLength;if(void 0===i){if(d%a)throw new Z(K);if(s=d-u,s<0)throw new Z(K)}else if(s=f(i)*a,s+u>d)throw new Z(K);l=s/a}else l=m(e),s=l*a,r=new U(s);N(t,{buffer:r,byteOffset:u,byteLength:s,length:l,view:new W(r)});while(c>1,g=23===e?o(2,-24)-o(2,-77):0,y=t<0||0===t&&1/t<0?1:0,_=0;t=r(t),t!==t||t===1/0?(h=t!==t?1:0,c=f):(c=a(s(t)/l),u=o(2,-c),t*u<1&&(c--,u*=2),t+=c+m>=1?g/u:g*o(2,1-m),t*u>=2&&(c++,u/=2),c+m>=f?(h=0,c=f):c+m>=1?(h=(t*u-1)*o(2,e),c+=m):(h=t*o(2,m-1)*o(2,e),c=0));while(e>=8)d[_++]=255&h,h/=256,e-=8;c=c<0)d[_++]=255&c,c/=256,p-=8;return d[--_]|=128*y,d},h=function(t,e){var n,i=t.length,r=8*i-e-1,a=(1<>1,l=r-7,c=i-1,h=t[c--],u=127&h;h>>=7;while(l>0)u=256*u+t[c--],l-=8;n=u&(1<<-l)-1,u>>=-l,l+=e;while(l>0)n=256*n+t[c--],l-=8;if(0===u)u=1-s;else{if(u===a)return n?NaN:h?-1/0:1/0;n+=o(2,e),u-=s}return(h?-1:1)*n*o(2,u-e)};t.exports={pack:c,unpack:h}},7839:function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(t,e,n){"use strict";var i=n("cc12"),r=i("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},7992:function(t,e,n){"use strict";var i=n("71c9"),r=n("67ee"),o=n("0d25"),a=n("2aa9");t.exports=function(t,e,n){if(!t||"object"!==typeof t&&"function"!==typeof t)throw new o("`obj` must be an object or a function`");if("string"!==typeof e&&"symbol"!==typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,h=arguments.length>6&&arguments[6],u=!!a&&a(t,e);if(i)i(t,e,{configurable:null===c&&u?u.configurable:!c,enumerable:null===s&&u?u.enumerable:!s,value:n,writable:null===l&&u?u.writable:!l});else{if(!h&&(s||l||c))throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=n}}},"79bc":function(t,e,n){var i=n("0b07"),r=n("2b3e"),o=i(r,"Map");t.exports=o},"7a1d":function(t,n,i){"use strict";i.d(n,"e",(function(){return o})),i.d(n,"i",(function(){return a})),i.d(n,"k",(function(){return s})),i.d(n,"l",(function(){return l})),i.d(n,"m",(function(){return h})),i.d(n,"g",(function(){return u})),i.d(n,"a",(function(){return d})),i.d(n,"s",(function(){return g})),i.d(n,"t",(function(){return y})),i.d(n,"n",(function(){return _})),i.d(n,"o",(function(){return v})),i.d(n,"d",(function(){return x})),i.d(n,"r",(function(){return k})),i.d(n,"j",(function(){return T})),i.d(n,"b",(function(){return A})),i.d(n,"c",(function(){return E})),i.d(n,"u",(function(){return P})),i.d(n,"h",(function(){return O})),i.d(n,"f",(function(){return D})),i.d(n,"p",(function(){return I})),i.d(n,"q",(function(){return R}));i("a15b"),i("d81d"),i("14d9"),i("6b93"),i("a9e3"),i("b680"),i("b64b"),i("d3b7"),i("ac1f"),i("25f0"),i("4d90"),i("5319"),i("498a");var r=function(t){try{if(!t||""==t||0==t.length)return" "}catch(e){}return t},o=function(t,e){var n=!0;void 0!=e&&(n=e);var i=["
"],o=["
"];return t.map((function(t,e){0==e&&n?(i.push("
"+t[0]+"
"),o.push("
"+r(t[1])+"
")):(i.push("
"+t[0]+"
"),o.push("
"+r(t[1])+"
"))})),i.push("
"),o.push("
"),["
",i.join(""),o.join(""),"
"].join("")},a=function(){var t;try{t=HIFLEET_SDK_KEY}catch(e){t=""}return t},s=function(t){if(t){var e=t||{},n=e.code;e.message;if(n)return!0}return!1},l=function(t){return"[object Array]"===Object.prototype.toString.call(t)},c=function(){var t="";try{t="https://ttse.hifleet.com"}catch(e){console.error(e)}return t},h=function(t){return!!t&&0===Object.keys(t).length},u=function(t){var e=a(),n=c(),i=[n,t];return e&&""!=e&&i.push("usertoken=".concat(e)),i.join("")},d=function(t){if(t&&-1==t.indexOf("usertoken")){var e=a();if(e)return[t,"&usertoken=",e].join("")}return t},p="shipping",f="view",m=f,g=function(){return m=p},y=function(){return m=f},_=function(){return m==p},v=function(){return m==f},b=function(t){var e=0,n=0,i=0;return 4==t.length?(e="0x"+t[1]+t[1],n="0x"+t[2]+t[2],i="0x"+t[3]+t[3]):7==t.length&&(e="0x"+t[1]+t[2],n="0x"+t[3]+t[4],i="0x"+t[5]+t[6]),{r:e,g:n,b:i}},w=function(t,e,n){return t=t.toString(16),e=e.toString(16),n=n.toString(16),1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),t+e+n},x=function(t){var e=t;if(t){var n=-1!=e.indexOf("#");n||(e="#"+e);var i=b(e),r=i.r,o=i.g,a=i.b,s=w(255-r,255-o,255-a);return n?"#"+s:s}return e},L=function(t){return Number(t)*Math.PI/180},M=function(t){return 180*Number(t)/Math.PI},k=function(t,e){var n=t.lng,i=t.lat,r=e.lng,o=e.lat,a=r-n,s=o-i;a<-180&&(a+=360),a>180&&(a-=360);var l=i>0?1:-1,c=7915.70447*l*Math.log10(Math.tan(L(45+Math.abs(i)/2))),h=o>0?1:-1,u=7915.70447*h*Math.log10(Math.tan(L(45+Math.abs(o)/2))),d=u-c,p=M(Math.atan(60*a/d)),f=p;a>0&&s>0?f=p:a>0&&s<0||a<0&&s<0?f=p+180:a<0&&s>0?f=p+360:0==a&&s<0?f=180:0==a&&s>0&&(f=0);var m=Math.abs(60*s/Math.cos(L(p)));return Math.abs(s)<=1e-5&&(m=60*Math.abs(a)*Math.cos(L(Math.abs(i)))),m*=1852,{course:Math.floor(f),distance:m}},T=function(t,n){try{var i=new Object;i.x=L(t.lng),i.y=L(t.lat);var r=new Object;if(r.x=L(n.lng),r.y=L(n.lat),t.lng==n.lng)return 0;var o=Math.atan2(Math.sin(r.x-i.x)*Math.cos(r.y),Math.cos(i.y)*Math.sin(r.y)-Math.sin(i.y)*Math.cos(r.y)*Math.cos(r.x-i.x));o<0&&(o+=6.283185307179586);var a=M(o);return a=Math.floor(a),a}catch(e){}return null},A=function(t,e){var n=0,i=t.length-1;while(n<=i){var r=Math.floor((n+i)/2);if(e==t[r])return r;e>t[r]?n=r+1:i=r-1}return-1},E=function(t,e){var n=0,i=t.length-1;while(n<=i){var r=Math.floor((n+i)/2);if(e==t[r])return[r];e>t[r]?n=r+1:i=r-1}return[i,n]};function S(t){try{var n=t.replace(/-/g,"/");return new Date(n)}catch(e){console.error(e)}return null}var P=function(t,e){var n=S(t),i=S(e);return n&&i?i.getTime()-n.getTime():null},O=function(t){return t.hasOwnProperty("lng")?1*t.lng:1*t.lon},D=function(t,e){var n=6371e3,i=t.lat,r=O(t),o=e.lat,a=O(e),s=Math.PI/180,l=i*s,c=o*s,h=Math.sin((o-i)*s/2),u=Math.sin((a-r)*s/2),d=h*h+Math.cos(l)*Math.cos(c)*u*u,p=2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d));return n*p},I=function(t){return"undefined"==typeof t},R=function(t){var e=t.lng,n=t.lat,i=20037508.34*e/180,r=Math.log(Math.tan((90+n)*Math.PI/360))/(Math.PI/180);return r=20037508.34*r/180,{lng:i,lat:r}}},"7a48":function(t,e,n){var i=n("6044"),r=Object.prototype,o=r.hasOwnProperty;function a(t){var e=this.__data__;return i?void 0!==e[t]:o.call(e,t)}t.exports=a},"7a77":function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},"7aac":function(t,e,n){"use strict";var i=n("c532");t.exports=i.isStandardBrowserEnv()?function(){return{write:function(t,e,n,r,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(t,e,n){"use strict";var i=n("1d80"),r=Object;t.exports=function(t){return r(i(t))}},"7b83":function(t,e,n){var i=n("7c64"),r=n("93ed"),o=n("2478"),a=n("a524"),s=n("1fc8");function l(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e",d="<",p="prototype",f="script",m=h("IE_PROTO"),g=function(){},y=function(t){return d+f+u+t+d+"/"+f+u},_=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){var t,e=c("iframe"),n="java"+f+":";return e.style.display="none",l.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},b=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}b="undefined"!=typeof document?document.domain&&i?_(i):v():_(i);var t=a.length;while(t--)delete b[p][a[t]];return b()};s[m]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[p]=r(t),n=new g,g[p]=null,n[m]=t):n=b(),void 0===e?n:o.f(n,e)}},"7d1f":function(t,e,n){var i=n("087d"),r=n("6747");function o(t,e,n){var o=e(t);return r(t)?o:i(o,n(t))}t.exports=o},"7d4a":function(t,e,n){"use strict";n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return h}));var i=["#8f4b2e","#ffe88d"],r=["#224b8f","#64fcfd"],o=i[0],a=r[0],s=function(t){o=i[t]||i[0]},l=function(t){a=r[t]||r[0]},c=function(){return o},h=function(){return a}},"7e64":function(t,e,n){var i=n("5e2e"),r=n("efb6"),o=n("2fcc"),a=n("802a"),s=n("55a3"),l=n("d02c");function c(t){var e=this.__data__=new i(t);this.size=e.size}c.prototype.clear=r,c.prototype["delete"]=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,t.exports=c},"7ed2":function(t,e){var n="__lodash_hash_undefined__";function i(t){return this.__data__.set(t,n),this}t.exports=i},"7f29":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAABUCAYAAADu10VkAAAACXBIWXMAAC4jAAAuIwF4pT92AAAKsmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm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kxDeW7Mlnk+p8xsrNFGThsOrF+67T+Lt4YBg9ekU9QE3Cuce1QCyxusx/GhocdXU8eEdBK7ewmuqgI2Q+j6WD/j9+Ee3NAL0pw2U8hpLddprcDWSt9sADulqWAovYnDka1HOLIaVxasP6fySa3TRKzT+ErqzkXSoGobbLF0GjraaKjIIfA2aU6bivVaTFFDgc0TxkKsffi7ABS8iwORbQw2SxcGw4JtlM5rZ4VVartubOo0dgjjM6ubhVOjQmDrpFHzF97JaaAdvSxsWrKaLPRabk7LA+sRtvfx+DoguLLM3w52Ym9O25sMseLIA1suTLhZ1YVkeboEFGEY5CXlOY1fsr3LA9si7d4TwjK66PjK6nVpThuHh+XsovLA+nLsh/Gpat+K9gh7gqxquEfOiiMGmCr/C8de6dsW1TkhdcSTf3MHdhFLDLZB2q0DwhFAu9NQK22XLrtHY6voGD4Gu0+6VjoqDNxOfPLbj8+lkd2PK1uB3SKNkP34JudhZTSA91y8FyWcci+T6ZQs2AL5x+B78E8HoJrage8i2wg8JrMozYI9Is32zdVBx77c4hd8JPXAapmOyYKtl7r2oDAmOgk22AA7HtnHC6lqdBZsvJCBY+0Svnd3+t9vX+KzyFbD48IB4fnBtkq6KKw3Cj3VuB6q17K9XHcheAYz9+tR+VPCuM2WJ+wxZuC3JthDUjfWhK5dmWk0T9kHZxuqZ+7H+8tBoVPiDDBW+Kq3d5SwC1qTU4iwoGv7IKRD2ooXRwhuvPY/bryVFmN1c01U6UtZh1XDplH4Eb9qY3csjJVOpo48qB7sq3X/B1tQXbCi6oIVVResqLpgRdUFK6p/ARrR4YpBv5L6AAAAAElFTkSuQmCC"},"802a":function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},8172:function(t,e,n){"use strict";var i=n("e065"),r=n("57b9");i("toPrimitive"),r()},"81bf":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e}(),t.mode.ECB}))},"81d5":function(t,e,n){"use strict";var i=n("7b0b"),r=n("23cb"),o=n("07fa");t.exports=function(t){var e=i(this),n=o(e),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);while(c>s)e[s++]=t;return e}},"823b":function(t,e,n){"use strict";var i=n("10d6"),r=Object(i["l"])(),o={time:function(t,e){},log:function(){r&&console.log.apply(console,arguments),1==window.___hf_logger&&console.log.apply(console,arguments)},timestamp:function(t){0},err:function(){console.error.apply(console,arguments)}};e["a"]=o},"825a":function(t,e,n){"use strict";var i=n("861d"),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not an object")}},"82f8":function(t,e,n){"use strict";var i=n("ebb5"),r=n("4d64").includes,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("includes",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"83ab":function(t,e,n){"use strict";var i=n("d039");t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(t,e,n){"use strict";var i=n("d925"),r=n("e683");t.exports=function(t,e){return t&&!i(e)?r(t,e):e}},8418:function(t,e,n){"use strict";var i=n("83ab"),r=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){i?r.f(t,e,o(0,n)):t[e]=n}},"841c":function(t,e,n){"use strict";var i=n("c65b"),r=n("d784"),o=n("825a"),a=n("7234"),s=n("1d80"),l=n("129f"),c=n("577e"),h=n("dc4a"),u=n("14c3");r("search",(function(t,e,n){return[function(e){var n=s(this),r=a(e)?void 0:h(e,t);return r?i(r,e,n):new RegExp(e)[t](c(n))},function(t){var i=o(this),r=c(t),a=n(e,i,r);if(a.done)return a.value;var s=i.lastIndex;l(s,0)||(i.lastIndex=0);var h=u(i,r);return l(i.lastIndex,s)||(i.lastIndex=s),null===h?-1:h.index}]}))},"857a":function(t,e,n){"use strict";var i=n("e330"),r=n("1d80"),o=n("577e"),a=/"/g,s=i("".replace);t.exports=function(t,e,n,i){var l=o(r(t)),c="<"+e;return""!==n&&(c+=" "+n+'="'+s(o(i),a,""")+'"'),c+">"+l+""}},"85e3":function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},"861d":function(t,e,n){"use strict";var i=n("1626");t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},"867a":function(t,e,n){"use strict";var i=Math.log,r=Math.LOG10E;t.exports=Math.log10||function(t){return i(t)*r}},"872a":function(t,e,n){var i=n("3b4a");function r(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}t.exports=r},"883a":function(t,n,i){"use strict";i.d(n,"v",(function(){return D})),i.d(n,"g",(function(){return I})),i.d(n,"q",(function(){return R})),i.d(n,"p",(function(){return G})),i.d(n,"a",(function(){return B})),i.d(n,"w",(function(){return Z})),i.d(n,"n",(function(){return U})),i.d(n,"o",(function(){return Y})),i.d(n,"c",(function(){return W})),i.d(n,"h",(function(){return F})),i.d(n,"k",(function(){return V})),i.d(n,"f",(function(){return H})),i.d(n,"d",(function(){return J})),i.d(n,"e",(function(){return X})),i.d(n,"l",(function(){return K})),i.d(n,"r",(function(){return q})),i.d(n,"b",(function(){return $})),i.d(n,"s",(function(){return tt})),i.d(n,"i",(function(){return et})),i.d(n,"u",(function(){return ot})),i.d(n,"j",(function(){return at})),i.d(n,"t",(function(){return st})),i.d(n,"m",(function(){return lt}));var r=i("5530"),o=(i("cb29"),i("d81d"),i("a9e3"),i("c448")),a=i("823b"),s=14,l=function(){return s},c=!1,h=function(){return c},u=i("b279"),d=5,p=[10,10,10,10],f=function(){window.__hf_n1753_func=function(t){try{var n=1*t,i=3;return n<=5?i=0:51.3&&a>145&&a<225)return r}catch(e){console.error(e)}return null},_=i("6c4f"),v={},b=function(t){var e=t.polygon,n=t.x,i=t.y,r=t.radians,o=Math.sin(r),a=Math.cos(r);return e.map((function(t){return[(t[0]-n)*a-(t[1]-i)*o+n|1,(t[0]-n)*o+(t[1]-i)*a+i|1]}))};var w=function(t){var e=t||{},n=e.polygon,i=e.x,r=e.y,o=e.feature,a=C(o),s=-1/0,l=-1/0,c=1/0,h=1/0,u=n.map((function(t){var e=i+t[0],n=r+t[1];return e>s&&(s=e),el&&(l=n),ni)&&(i=l),(null==r||co)&&(o=c)}var h=-3,u=3;t.moveTo(n+h,r+h),t.lineTo(i+u,o+u)}function L(t){var e=t.ctx,n=t.feature,i=t.zoom,r=t.x,a=t.y,s=(t.radians,parseFloat(n.speed)||0),l=parseFloat(n.heading)||0,c=parseFloat(n.course)||0,h=Number(n["length"]),u=Number(n["width"]),d=Object(o["j"])(i),p=Math.floor(h/d),f=Math.floor(u/d),m=parseFloat(n.offseta/d)||0,g=parseFloat(n.offsetb/d)||0,y=parseFloat(n.offsetc/d)||0,_=parseFloat(n.offsetd/d)||0,v=0,b=0;0!=m&&0!=g&&(v=-(m-(m+g)/2)),0!=y&&0!=_&&(b=-(y-(y+_)/2));var L=Number(n.rot),M=1;17==i?M=3:18==i?M=6:19==i?M=8:20==i?M=10:21==i?M=15:(22==i||i>=22)&&(M=25);var k=p,T=0,A=6;m2&&i>13&&l>0&&l<=360){e.lineTo(E-E+b,0-S+v),L>0&&(e.moveTo(E-E,0-S),e.lineTo(E-4-E,0-S)),L<0&&(e.moveTo(E-E,0-S),e.lineTo(E+4-E,0-S));var D=l-c;s>2&&(D>20||D<-20)&&(c=l,D=0),0==D&&(D=.1),(D>270||D<-270)&&(D-=360);var I=T*Math.sin((90-Math.abs(D))*Math.PI/180),R=T*Math.cos((90-Math.abs(D))*Math.PI/180),j=(T-M)*Math.sin((90-Math.abs(D)+A)*Math.PI/180),C=(T-M)*Math.cos((90-Math.abs(D)+A)*Math.PI/180),N=(T-M)*Math.sin((90-Math.abs(D)-A)*Math.PI/180),z=(T-M)*Math.cos((90-Math.abs(D)-A)*Math.PI/180);D<90&&c>0&&c<360&&(D>0?(e.moveTo(E-E,S-S),e.lineTo(1+E-R-E,S-I-S),e.lineTo(1+E-C-E,S-j-S),e.lineTo(1+E-R-E,S-I-S),e.lineTo(1+E-z-E,S-N-S),e.lineTo(1+E-R-E,S-I-S)):(e.moveTo(1+E-E,S-S),e.lineTo(1+E+R-E,S-I-S),e.lineTo(1+E+C-E,S-j-S),e.lineTo(2+E+R-E,S-I-S),e.lineTo(1+E+z-E,S-N-S),e.lineTo(1+E+R-E,S-I-S)))}n._over12&&(e.moveTo(E+10-E,S-10-S),e.lineTo(E-10-E,S+10-S),e.moveTo(E-10-E,S-10-S),e.lineTo(E+10-E,S+10-S));var G=0<=l&&l<360;return!G&&s<.7&&x(e,P),O}function M(t){var e=t.ctx,n=t.feature,i=t.zoom,r=t.x,a=t.y,s=(t.radians,parseFloat(n.speed)||0),l=parseFloat(n.heading)||0,c=parseFloat(n.course)||0,h=Number(n["length"]),u=Number(n["width"]),d=Object(o["j"])(i),p=Math.floor(h/d),f=Math.floor(u/d),g=parseFloat(n.offseta/d)||0,y=parseFloat(n.offsetb/d)||0,_=parseFloat(n.offsetc/d)||0,v=parseFloat(n.offsetd/d)||0,b=0,x=0;0!=g&&0!=y&&(b=-(g-(g+y)/2)),0!=_&&0!=v&&(x=-(_-(_+v)/2));var L=Number(n.rot),M=1;17==i?M=3:18==i?M=6:19==i?M=8:20==i?M=10:21==i?M=15:(22==i||i>=22)&&(M=25);var k=p,T=0,A=6;g2&&i>13&&l>0&&l<=360){window.__hf_n1753_func||m([5,10,15,20]);var D=window.__hf_n1753_func(s);e.lineTo(x,26-S+b+D),L>0&&(e.moveTo(E-E,0-S),e.lineTo(E-4-E,0-S)),L<0&&(e.moveTo(E-E,0-S),e.lineTo(E+4-E,0-S));var I=l-c;s>2&&(I>20||I<-20)&&(c=l,I=0),0==I&&(I=.1),(I>270||I<-270)&&(I-=360);var R=T*Math.sin((90-Math.abs(I))*Math.PI/180),j=T*Math.cos((90-Math.abs(I))*Math.PI/180),C=(T-M)*Math.sin((90-Math.abs(I)+A)*Math.PI/180),N=(T-M)*Math.cos((90-Math.abs(I)+A)*Math.PI/180),z=(T-M)*Math.sin((90-Math.abs(I)-A)*Math.PI/180),G=(T-M)*Math.cos((90-Math.abs(I)-A)*Math.PI/180);I<90&&c>0&&c<360&&(I>0?(e.moveTo(E-E,S-S),e.lineTo(1+E-j-E,S-R-S),e.lineTo(1+E-N-E,S-C-S),e.lineTo(1+E-j-E,S-R-S),e.lineTo(1+E-G-E,S-z-S),e.lineTo(1+E-j-E,S-R-S)):(e.moveTo(1+E-E,S-S),e.lineTo(1+E+j-E,S-R-S),e.lineTo(1+E+N-E,S-C-S),e.lineTo(2+E+j-E,S-R-S),e.lineTo(1+E+G-E,S-z-S),e.lineTo(1+E+j-E,S-R-S)))}return n._over12&&(e.moveTo(E+10-E,S-10-S),e.lineTo(E-10-E,S+10-S),e.moveTo(E-10-E,S-10-S),e.lineTo(E+10-E,S+10-S)),O}function k(t){var e=t.ctx,n=t.feature,i=(t.resolution,t.zoom,t.x),r=t.y,o=t.__smaller,a=void 0!==o&&o,s=-18,l=-26,c=parseFloat(n["speed"]),h=n["length"],u=Number(n["rot"]),d=[[0,0],[0,0],[0,0],[0,0]],p=-10;(h<80||a)&&(d=[[0,6],[2,0],[-2,0],[0,6]],p=-4);var f=[[18+s+d[0][0],16+l+d[0][1]],[12+s+d[1][0],36+l+d[1][1]],[24+s+d[2][0],36+l+d[1][1]],[18+s+d[3][0],16+l+d[3][1]]],g=w({polygon:f,x:i,y:r,feature:n});if(!e)return g;e.beginPath&&e.beginPath(),e.lineTo(18+s+d[0][0],16+l+d[0][1]),e.lineTo(12+s+d[1][0],36+l+d[1][1]),e.lineTo(24+s+d[2][0],36+l+d[1][1]),e.lineTo(18+s+d[3][0],16+l+d[3][1]),window.__hf_n1753_func||m([5,10,15,20]);var y=p+window.__hf_n1753_func(c);return e.lineTo(18+s+d[0][0],y),u>0&&(e.moveTo(18+s,0+l),e.lineTo(14+s,0+l)),u<0&&(e.moveTo(18+s,0+l),e.lineTo(22+s,0+l)),n._over12&&(e.moveTo(28+s,16+l),e.lineTo(8+s,36+l),e.moveTo(8+s,16+l),e.lineTo(28+s,36+l)),g}function T(t){var e=t.ctx,n=t.feature,i=(t.resolution,t.zoom,t.x),r=t.y,o=t.__smaller,a=void 0!==o&&o,s=-18,l=-30,c=parseFloat(n["speed"])||0,h=parseFloat(n["heading"])||511,u=parseFloat(n["course"])||511,d=n["length"],p=Number(n["rot"]),f=[[0,0],[0,0],[0,0],[0,0]],m=d<80||a;m&&(f=[[0,6],[2,0],[-2,0],[0,6]]);var g=[[18+s+f[0][0],16+l+f[0][1]],[12+s+f[1][0],36+l+f[1][1]],[24+s+f[2][0],36+l+f[1][1]],[18+s+f[3][0],16+l+f[3][1]]],y=w({polygon:g,x:i,y:r,feature:n});if(!e)return y;e.beginPath&&e.beginPath(),e.lineTo(18+s+f[0][0],16+l+f[0][1]),e.lineTo(12+s+f[1][0],36+l+f[1][1]),e.lineTo(24+s+f[2][0],36+l+f[1][1]),e.lineTo(18+s+f[3][0],16+l+f[3][1]),p>0&&(e.moveTo(18+s,0+l),e.lineTo(14+s,0+l)),p<0&&(e.moveTo(18+s,0+l),e.lineTo(22+s,0+l));var _=0<=h&&h<360,v=0<=u&&u<360;return _||v?!_&&c<.7&&x(e,g):x(e,g),y}function A(t){var e=t.ctx,n=t.feature,i=(t.resolution,t.x),r=t.y,o=t.radians,a=-10,s=-10,l=(n["length"],[[2,2],[2,-2],[-2,-2],[-2,2],[2,2]]),c=[[5+a+l[0][0],5+s+l[0][1]],[5+a+l[1][0],16+s+l[1][1]],[16+a+l[2][0],16+s+l[2][1]],[16+a+l[3][0],5+s+l[3][1]]],h=w({polygon:c,x:i,y:r,feature:n});return e?(e.rotate(-1*o),e.rotate(45*Math.PI/180),e.beginPath(),e.lineTo(5+a+l[0][0],5+s+l[0][1]),e.lineTo(5+a+l[1][0],16+s+l[1][1]),e.lineTo(16+a+l[2][0],16+s+l[2][1]),e.lineTo(16+a+l[3][0],5+s+l[3][1]),e.lineTo(5+a+l[4][0],5+s+l[4][1]),e.moveTo(10+a,10+s),e.lineTo(11+a,11+s),n._over12&&(e.moveTo(10+a,0+s),e.lineTo(10+a,20+s),e.moveTo(0+a,10+s),e.lineTo(20+a,10+s)),h):h}function E(t){var e=t.ctx,n=t.feature,i=(t.resolution,t.x),r=t.y,o=t.radians,a=-10,s=-10,l=n["length"],c=[[0,0],[0,0],[0,0],[0,0],[0,0]];l<80&&(c=[[2,2],[2,-2],[-2,-2],[-2,2],[2,2]]);var h=[[5+a+c[0][0],5+s+c[0][1]],[5+a+c[1][0],16+s+c[1][1]],[16+a+c[2][0],16+s+c[2][1]],[16+a+c[3][0],5+s+c[3][1]]],u=w({polygon:h,x:i,y:r,feature:n});return e?(e.rotate(-1*o),e.rotate(45*Math.PI/180),e.beginPath(),e.lineTo(5+a+c[0][0],5+s+c[0][1]),e.lineTo(5+a+c[1][0],16+s+c[1][1]),e.lineTo(16+a+c[2][0],16+s+c[2][1]),e.lineTo(16+a+c[3][0],5+s+c[3][1]),e.lineTo(5+a+c[4][0],5+s+c[4][1]),e.moveTo(10+a,10+s),e.lineTo(11+a,11+s),n._over12&&(e.moveTo(10+a,0+s),e.lineTo(10+a,20+s),e.moveTo(0+a,10+s),e.lineTo(20+a,10+s)),u):u}function S(t){var n=t.ctx,i=t.feature,r=t.zoom,s=t.x,c=t.y,u=t.radians;try{var d=i.drawShipAsWholeShape,p=l(),f=h(),m=Number(i["trawlSonar"]);if(1==m)return A(t);var g=Number(i["length"]),y=Number(i["width"]),_=Number(i["speed"]),v=Object(o["j"])(r),b=Math.floor(g/v),w=Math.floor(y/v);return-999==y||f?P(t):g>600||y>80?(t.__smaller=!0,k(t)):d?r>p?M({ctx:n,feature:i,_pLength:b,_pWidth:w,resolution:v,zoom:r,x:s,y:c,radians:u}):k(t):b>24&&r>14?M({ctx:n,feature:i,_pLength:b,_pWidth:w,resolution:v,zoom:r,x:s,y:c,radians:u}):_>.5?k(t):E(t)}catch(e){a["a"].log(e)}}function P(t){var e=t.ctx,n=t.feature,i=t.x,r=t.y,o=t.__smaller,a=void 0!==o&&o,s=t.fillStyle,l=t.strokeStyle,c=-18,h=-26,u=n["length"],d=[[0,0],[0,0],[0,0],[0,0]];(u<80||a)&&(d=[[0,6],[2,0],[-2,0],[0,6]]);var p=[[18+c+d[0][0],16+h+d[0][1]],[12+c+d[1][0],36+h+d[1][1]],[24+c+d[2][0],36+h+d[1][1]],[18+c+d[3][0],16+h+d[3][1]]],f=w({polygon:p,x:i,y:r,feature:n});if(!e)return f;var m={ctx:e,x:0,y:0,fillStyle:s,strokeStyle:l};return I(m),f}function O(t){var n=t.ctx,i=t.feature,r=t.zoom,s=t.x,l=t.y,c=t.radians;try{var h=Number(i["trawlSonar"]);if(1==h)return A(t);var u=Number(i["length"]),d=Number(i["width"]),p=Number(i["speed"]),f=Object(o["j"])(r),m=Math.floor(u/f),g=Math.floor(d/f);return u>600||d>80?(t.__smaller=!0,k(t)):m>24?L({ctx:n,feature:i,_pLength:m,_pWidth:g,resolution:f,zoom:r,x:s,y:l,radians:c}):p>.5?k(t):T(t)}catch(e){a["a"].log(e)}}function D(t){try{if(window&&window.__hfdrawship_mode){var n=window.__hfdrawship_mode;if("1"==n)return O(t)}return S(t)}catch(e){a["a"].log(e)}}function I(t){var e=t||{},n=e.ctx,i=e.x,r=e.y,o=e.offsetX,a=void 0===o?0:o,s=e.offsetY,l=void 0===s?0:s,c=e.r,h=void 0===c?3:c,u=e.fillStyle,d=void 0===u?"red":u,p=e.strokeStyle,f=void 0===p?"white":p,m=e.lineWidth,g=void 0===m?1:m,y=e.globalAplha,_=void 0===y?1:y,v=e.sAngle,b=void 0===v?0:v,w=e.eAngle,x=void 0===w?2*Math.PI:w,L=e.counterclockwise,M=void 0!==L&&L;n.save(),n.beginPath(),n.lineWidth=g,n.globalAlpha=_,n.fillStyle=d,n.arc(i+a,r+l,h,b,x,M),n.fill(),f&&(n.strokeStyle=f,n.stroke()),n.restore()}function R(t){var e=t||{},n=e.ctx,i=e.strokeStyle,r=void 0===i?"black":i,o=e.globalAlpha,a=void 0===o?1:o,s=e.x,l=e.y,c=e.width,h=e.height;n.save(),n.strokeStyle=r,n.globalAlpha=a,n.rect(s,l,c,h),n.stroke(),n.restore()}var j=function(t){return t*Math.PI/180},C=function(t){var e=t.rotation;return j(e)},N=function(t){var n,i=t||{},r=i.x,o=i.y,a=i.ctx,s=i.feature,l=(i.zoom,i._source),c=i.imgWidth,h=void 0===c?40:c,u=i.imgHeight,d=void 0===u?40:u,p=s.course;if(p=j(p),v[l])return n=v[l],a.save(),a.translate(r,o),a.rotate(p),a.drawImage(n,-h/2,-d/2,h,d),void a.restore();n=new Image;try{n.onload=function(){v[l]=n,a.save(),a.translate(r,o),a.rotate(p),a.drawImage(n,-h/2,-d/2,h,d),a.restore()},n.src=l}catch(e){}},z=function(t){var n,i=t||{},r=i.x,o=i.y,a=i.ctx,s=i.feature,l=(i.zoom,i._source),c=i.imgWidth,h=void 0===c?40:c,u=i.imgHeight,d=void 0===u?40:u,p=-90+s.course||0;if(p=j(p),v[l])return n=v[l],a.save(),a.translate(r,o),a.rotate(p),a.drawImage(n,-h/2,-d/2),void a.restore();n=new Image;try{n.onload=function(){v[l]=n,a.save(),a.translate(r,o),a.rotate(p),a.drawImage(n,-h/2,-d/2),a.restore()},n.src=_}catch(e){}};function G(t){var n=t||{},i=n.ctx,o=n.feature,a=n.zoom,s=n.x,l=n.y,c=n.globalAlpha,h=void 0===c?1:c,u=o||{},d=u._source,p=u.iconUrl,f=u.iconHeight,m=u.iconWidth;if(d&&""!=d&&"hlwais"!=d)return z(t);if(p&&""!=p)return N(Object(r["a"])(Object(r["a"])({},t),{},{_source:p,imgHeight:f,imgWidth:m}));var g=C(o);i.save(),i.translate(s,l),i.rotate(g);var y="black",_=1,v=h;try{o&&(o.strokeStyle&&(y=o.strokeStyle),isNaN(o.lineWidth)||(_=parseFloat(o.lineWidth)),isNaN(o.globalAlpha)||(v=o.globalAlpha))}catch(e){y="black",_=1,v=h}i.globalAlpha=v;var b="#FFFF66";o.color&&(b=-1==o.color.indexOf("#")?"#"+o.color:o.color);var w=D({ctx:i,feature:o,zoom:a,x:s,y:l,radians:g,fillStyle:b,strokeStyle:y});return i.fillStyle=b,i.fill(),i.lineWidth=_,i.strokeStyle=y,i.stroke(),i.closePath(),i.restore(),w}var B=function(t){var n=t||{},i=n.speed,r=n.course,o=n.heading,a=n.defaultVal,s=void 0===a?90:a;if(!Object(u["j"])(o))return r;if(!Object(u["j"])(r))return o;var l=s,c=30;try{l=o>=0&&o<=360?i>2&&Math.abs(o-r)<360-c&&Math.abs(o-r)>c?r:o:r}catch(e){console.error(e)}var h=y(t);return null!=h?h:l};function Z(t,e){if(void 0!=t&&void 0!=t.mmsi){var n=Object(o["j"])(e),i=t;t._displayColumnName&&(i._displayColumnName=t._displayColumnName),i.lon=parseFloat(t.lon),i.lat=parseFloat(t.lat),i.imonumber=t.imo||t.imonumber,i.turnrate=t.rot||"",i.status=t.navStatus||"",i.myfleet=!0,void 0!=i.color&&"notfleet"!=i.color||(i.color="FFFF66"),i.hasright=1;var a=Math.floor(t.length/n),s=t.heading,l=Number(t.course),c=t.speed,h=B(Object(r["a"])(Object(r["a"])({},t),{},{speed:c,course:l,heading:s,defaultVal:90}));return i.rotation=h,i.pLength=a,i.centerx=Number((a+26)/2),i.centery=Number(26+a/2),i._source=t._source,i.globalAlpha=t.globalAlpha,t&&t.hasOwnProperty("drawShipAsWholeShape")&&(i.drawShipAsWholeShape=t.drawShipAsWholeShape),t&&t.hasOwnProperty("drawShipAsWholeShapeZoom")&&(i.drawShipAsWholeShapeZoom=t.drawShipAsWholeShapeZoom),i}}function U(t){var e=t.ctx,n=t.x,i=t.y,r=t.len,o=void 0===r?10:r;e.save(),e.strokeStyle="red",e.beginPath();var a=o,s=n-(2*o+a)/2,l=i-(2*o+a)/2;e.moveTo(s,l),e.lineTo(s,l+o),e.moveTo(s,l+o+a),e.lineTo(s,l+o+a+o),e.lineTo(s+o,l+o+a+o),e.moveTo(s+o+a,l+o+a+o),e.lineTo(s+o+a+o,l+o+a+o),e.lineTo(s+o+a+o,l+o+a),e.moveTo(s+o+a+o,l+o),e.lineTo(s+o+a+o,l),e.lineTo(s+o+a,l),e.moveTo(s+o,l),e.lineTo(s,l),e.lineCap="square",e.globalAlpha=1,e.lineWidth=1.5,e.stroke(),e.closePath(),e.restore()}function Y(t){var e=t.ctx,n=t.x,i=t.y,r=t.len,o=void 0===r?20:r;e.save(),e.strokeStyle="red",e.beginPath();var a=n-o,s=i-o;e.moveTo(a,i),e.lineTo(a+2*o,i),e.moveTo(n,s),e.lineTo(n,s+2*o),e.lineCap="square",e.globalAlpha=1,e.lineWidth=2,e.stroke(),e.closePath(),e.restore()}function W(t){var e=t||{},n=e.ctx,i=e.x0,r=e.y0,o=e.x1,a=e.y1,s=e.x2,l=e.y2,c=e.lineWidth,h=void 0===c?1:c,u=e.strokeStyle,d=void 0===u?"black":u,p=e.globalAlpha,f=void 0===p?1:p,m=e.lineCap,g=void 0===m?"round":m,y=e.lineJoin,_=void 0===y?"round":y;n.save(),n.globalAlpha=f,n.lineWidth=h,n.strokeStyle=d,n.lineCap=g,n.lineJoin=_,n.beginPath(),n.moveTo(i,r),n.quadraticCurveTo(o,a,s,l),n.stroke(),n.restore()}function F(t){var e=t||{},n=e.ctx,i=e.x0,r=e.y0,o=e.x1,a=e.y1,s=e.lineWidth,l=void 0===s?1:s,c=e.strokeStyle,h=void 0===c?"black":c,u=e.globalAlpha,d=void 0===u?1:u,p=e.lineCap,f=void 0===p?"round":p,m=e.lineJoin,g=void 0===m?"round":m;n.save(),n.globalAlpha=d,n.lineWidth=l,n.strokeStyle=h,n.lineCap=f,n.lineJoin=g,n.beginPath(),n.moveTo(i,r),n.lineTo(o,a),n.closePath(),n.stroke(),n.restore()}function V(t){for(var e=t||{},n=e.ctx,i=e.list,r=e.lineWidth,o=void 0===r?20:r,a=e.strokeStyle,s=void 0===a?"black":a,l=e.globalAlpha,c=void 0===l?1:l,h=i[0],u=1;ua?0:180)*Math.PI/180:(e=Math.atan((l-a)/(s-o)),n=(s>o?-90:90)*Math.PI/180,e+=n);var m=(o+s)/2,g=(a+l)/2;r.strokeStyle=d,r.lineWidth=h,r.globalAlpha=f,r.save(),r.beginPath(),r.translate(m,g),r.rotate(e),r.moveTo(0,0),r.lineTo(3,10),r.moveTo(0,0),r.lineTo(-3,10),r.closePath(),r.stroke(),r.restore()}function tt(t){var e=t||{},n=e.ctx,i=e.x0,r=e.y0,o=e.x1,a=e.y1,s=e.text,l=e.textStrokeStyle,c=e.textStrokeLineWidth,h=e.fillStyle,u=void 0===h?"blue":h,d=e.textAlong,p=void 0===d?15:d,f=e.font,m=void 0===f?"12px Verdana":f,g=Math.atan((a-r)/(o-i)),y=(i+o)/2,_=(r+a)/2;if(s&&s.length>0){var v=n.measureText(s),b=v.width,w=b/2;y-=Math.cos(g)*w,_-=Math.sin(g)*w}n.save(),n.translate(y,_),n.rotate(g),n.font=m,l&&(n.lineWidth=c,n.strokeStyle=l,n.strokeText(s,0,p)),n.fillStyle=u,n.fillText(s,0,p),n.restore()}function et(t){var e=t||{},n=e.x,i=e.y,r=e.img,o=e.w,a=e.h,s=e.sx,l=e.sy,c=e.ctx,h=e.scale,u=void 0===h?.5:h;c.save(),c.drawImage(r,s,l,o,a,n,i,o*u,a*u),c.restore()}var nt=i("4ab3");function it(t,e){var n=t||{},i=n.x,r=n.y,o=n.ctx,a=n.level,s=void 0===a?0:a,l=n.direction,c=void 0===l?0:l,h=(n.dx,n.dy,16),u=36,d=0,p=Math.ceil(s)*u;o.save(),o.translate(i,r),o.rotate(c),o.drawImage(e,d,p,h,u,-1*h,0,h,u),o.restore()}var rt=null;function ot(t){if(null==rt){var n=new Image;try{return n.onload=function(){rt=n,it(t,rt)},void(n.src=nt)}catch(e){}}else it(t,rt)}var at=function(t){var e,n=t.ctx,i=t.list,r=t.lineWidth,o=void 0===r?1:r,a=t.strokeStyle,s=void 0===a?"#95a5a6":a,l=t.fillStyle,c=void 0===l?"white":l,h=t.globalAlpha,u=void 0===h?.3:h;n.save(),n.beginPath();var d=i[0];for(n.moveTo(d.x,d.y),e=1;e>4,r<128)return l(t,i,e);if(r=o[n.pos++],i|=(127&r)<<3,r<128)return l(t,i,e);if(r=o[n.pos++],i|=(127&r)<<10,r<128)return l(t,i,e);if(r=o[n.pos++],i|=(127&r)<<17,r<128)return l(t,i,e);if(r=o[n.pos++],i|=(127&r)<<24,r<128)return l(t,i,e);if(r=o[n.pos++],i|=(1&r)<<31,r<128)return l(t,i,e);throw new Error("Expected varint not more than 10 bytes")}function s(t){return t.type===o.Bytes?t.readVarint()+t.pos:t.pos+1}function l(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function c(t,e){var n,i;if(t>=0?(n=t%4294967296|0,i=t/4294967296|0):(n=~(-t%4294967296),i=~(-t/4294967296),4294967295^n?n=n+1|0:(n=0,i=i+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),h(n,i,e),u(i,e)}function h(t,e,n){n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos]=127&t}function u(t,e){var n=(7&t)<<4;e.buf[e.pos++]|=n|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}function d(t,e,n){var i=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.ceil(Math.log(e)/(7*Math.LN2));n.realloc(i);for(var r=n.pos-1;r>=t;r--)n.buf[r+i]=n.buf[r]}function p(t,e){for(var n=0;n>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function k(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function T(t,e,n){for(var i="",r=e;r239?4:l>223?3:l>191?2:1;if(r+h>n)break;1===h?l<128&&(c=l):2===h?128==(192&(o=t[r+1]))&&(c=(31&l)<<6|63&o)<=127&&(c=null):3===h?(o=t[r+1],a=t[r+2],128==(192&o)&&128==(192&a)&&((c=(15&l)<<12|(63&o)<<6|63&a)<=2047||c>=55296&&c<=57343)&&(c=null)):4===h&&(o=t[r+1],a=t[r+2],s=t[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&((c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,h=1):c>65535&&(c-=65536,i+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),i+=String.fromCharCode(c),r+=h}return i}function A(t,e,n){for(var i,r,o=0;o55295&&i<57344){if(!r){i>56319||o+1===e.length?(t[n++]=239,t[n++]=191,t[n++]=189):r=i;continue}if(i<56320){t[n++]=239,t[n++]=191,t[n++]=189,r=i;continue}i=r-55296<<10|i-56320|65536,r=null}else r&&(t[n++]=239,t[n++]=191,t[n++]=189,r=null);i<128?t[n++]=i:(i<2048?t[n++]=i>>6|192:(i<65536?t[n++]=i>>12|224:(t[n++]=i>>18|240,t[n++]=i>>12&63|128),t[n++]=i>>6&63|128),t[n++]=63&i|128)}return n}function E(t,e){this.x=t,this.y=e}function S(t,e,n,i,r){this.properties={},this.extent=n,this.type=0,this._pbf=t,this._geometry=-1,this._keys=i,this._values=r,t.readFields(P,this,e)}function P(t,e,n){1==t?e.id=n.readVarint():2==t?O(n,e):3==t?e.type=n.readVarint():4==t&&(e._geometry=n.pos)}function O(t,e){for(var n=t.readVarint()+t.pos;t.pos>3;e=1===i?t.readString():2===i?t.readFloat():3===i?t.readDouble():4===i?t.readVarint64():5===i?t.readVarint():6===i?t.readSVarint():7===i?t.readBoolean():null}return e}function N(t,e){this.layers=t.readFields(z,{},e)}function z(t,e,n){if(3===t){var i=new K(n,n.readVarint()+n.pos);i.length&&(e[i.name]=i)}}!function(t){function e(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function n(t){return"string"!=typeof t&&(t=String(t)),t}function i(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return y.iterable&&(e[Symbol.iterator]=function(){return e}),e}function r(t){this.map={},t instanceof r?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function o(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function a(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function s(t){var e=new FileReader,n=a(e);return e.readAsArrayBuffer(t),n}function l(t){var e=new FileReader,n=a(e);return e.readAsText(t),n}function c(t){for(var e=new Uint8Array(t),n=new Array(e.length),i=0;i-1?e:t}function p(t,e){e=e||{};var n=e.body;if(t instanceof p){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new r(t.headers)),this.method=t.method,this.mode=t.mode,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new r(e.headers)),this.method=d(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function f(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function m(t){var e=new r;return t.split(/\r?\n/).forEach((function(t){var n=t.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();e.append(i,r)}})),e}function g(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new r(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var y={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(y.arrayBuffer)var _=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],v=function(t){return t&&DataView.prototype.isPrototypeOf(t)},b=ArrayBuffer.isView||function(t){return t&&_.indexOf(Object.prototype.toString.call(t))>-1};r.prototype.append=function(t,i){t=e(t),i=n(i);var r=this.map[t];this.map[t]=r?r+","+i:i},r.prototype.delete=function(t){delete this.map[e(t)]},r.prototype.get=function(t){return t=e(t),this.has(t)?this.map[t]:null},r.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},r.prototype.set=function(t,i){this.map[e(t)]=n(i)},r.prototype.forEach=function(t,e){var n=this;for(var i in this.map)n.map.hasOwnProperty(i)&&t.call(e,n.map[i],i,n)},r.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),i(t)},r.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),i(t)},r.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),i(t)},y.iterable&&(r.prototype[Symbol.iterator]=r.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},u.call(p.prototype),u.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new r(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var x=[301,302,303,307,308];g.redirect=function(t,e){if(-1===x.indexOf(e))throw new RangeError("Invalid status code");return new g(null,{status:e,headers:{location:t}})},t.Headers=r,t.Request=p,t.Response=g,t.fetch=function(t,e){return new Promise((function(n,i){var r=new p(t,e),o=new XMLHttpRequest;o.onload=function(){var t={status:o.status,statusText:o.statusText,headers:m(o.getAllResponseHeaders()||"")};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var e="response"in o?o.response:o.responseText;n(new g(e,t))},o.onerror=function(){i(new TypeError("Network request failed"))},o.ontimeout=function(){i(new TypeError("Network request failed"))},o.open(r.method,r.url,!0),"include"===r.credentials&&(o.withCredentials=!0),"responseType"in o&&y.blob&&(o.responseType="blob"),r.headers.forEach((function(t,e){o.setRequestHeader(e,t)})),o.send(void 0===r._bodyInit?null:r._bodyInit)}))},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:void 0);var G=function(t,e,n,i,r){var o,a,s=8*r-i-1,l=(1<>1,h=-7,u=n?r-1:0,d=n?-1:1,p=t[e+u];for(u+=d,o=p&(1<<-h)-1,p>>=-h,h+=s;h>0;o=256*o+t[e+u],u+=d,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;h>0;a=256*a+t[e+u],u+=d,h-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),o-=c}return(p?-1:1)*a*Math.pow(2,o-i)},B=function(t,e,n,i,r,o){var a,s,l,c=8*o-r-1,h=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,f=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+u>=1?d/l:d*Math.pow(2,1-u),e*l>=2&&(a++,l/=2),a+u>=h?(s=0,a=h):a+u>=1?(s=(e*l-1)*Math.pow(2,r),a+=u):(s=e*Math.pow(2,u-1)*Math.pow(2,r),a=0));r>=8;t[n+p]=255&s,p+=f,s/=256,r-=8);for(a=a<0;t[n+p]=255&a,p+=f,a/=256,c-=8);t[n+p-f]|=128*m},Z={read:G,write:B},U=o,Y=Z;o.Varint=0,o.Fixed64=1,o.Bytes=2,o.Fixed32=5;var W=4294967296,F=1/W;o.prototype={destroy:function(){this.buf=null},readFields:function(t,e,n){var i=this;for(n=n||this.length;this.pos>3,a=i.pos;i.type=7&r,t(o,e,i),i.pos===a&&i.skip(r)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=x(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=k(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=x(this.buf,this.pos)+x(this.buf,this.pos+4)*W;return this.pos+=8,t},readSFixed64:function(){var t=x(this.buf,this.pos)+k(this.buf,this.pos+4)*W;return this.pos+=8,t},readFloat:function(){var t=Y.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Y.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,n,i=this.buf;return n=i[this.pos++],e=127&n,n<128?e:(n=i[this.pos++],e|=(127&n)<<7,n<128?e:(n=i[this.pos++],e|=(127&n)<<14,n<128?e:(n=i[this.pos++],e|=(127&n)<<21,n<128?e:(n=i[this.pos],e|=(15&n)<<28,a(e,t,this)))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=T(this.buf,this.pos,t);return this.pos=t,e},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){var n=this,i=s(this);for(t=t||[];this.pos127;);else if(e===o.Bytes)this.pos=this.readVarint()+this.pos;else if(e===o.Fixed32)this.pos+=4;else{if(e!==o.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e268435455||t<0?c(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=A(this.buf,t,this.pos);var n=this.pos-e;n>=128&&d(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),Y.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),Y.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=this,n=t.length;this.writeVarint(n),this.realloc(n);for(var i=0;i=128&&d(n,i,this),this.pos=n-1,this.writeVarint(i),this.pos+=i},writeMessage:function(t,e,n){this.writeTag(t,o.Bytes),this.writeRawMessage(e,n)},writePackedVarint:function(t,e){this.writeMessage(t,p,e)},writePackedSVarint:function(t,e){this.writeMessage(t,f,e)},writePackedBoolean:function(t,e){this.writeMessage(t,y,e)},writePackedFloat:function(t,e){this.writeMessage(t,m,e)},writePackedDouble:function(t,e){this.writeMessage(t,g,e)},writePackedFixed32:function(t,e){this.writeMessage(t,_,e)},writePackedSFixed32:function(t,e){this.writeMessage(t,v,e)},writePackedFixed64:function(t,e){this.writeMessage(t,b,e)},writePackedSFixed64:function(t,e){this.writeMessage(t,w,e)},writeBytesField:function(t,e){this.writeTag(t,o.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,o.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,o.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,o.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,o.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,o.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,o.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,o.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,o.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,o.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var V=E;E.prototype={clone:function(){return new E(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,n=t.y-this.y;return e*e+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,n=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=n,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),n=Math.sin(t),i=e*this.x-n*this.y,r=n*this.x+e*this.y;return this.x=i,this.y=r,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},E.convert=function(t){return t instanceof E?t:Array.isArray(t)?new E(t[0],t[1]):t};var Q=V,H=S;S.types=["Unknown","Point","LineString","Polygon"],S.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,n=t.readVarint()+t.pos,i=1,r=0,o=0,a=0,s=[];t.pos>3}if(r--,1===i||2===i)o+=t.readSVarint(),a+=t.readSVarint(),1===i&&(e&&s.push(e),e=[]),e.push(new Q(o,a));else{if(7!==i)throw new Error("unknown command "+i);e&&e.push(e[0].clone())}}return e&&s.push(e),s},S.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,n=1,i=0,r=0,o=0,a=1/0,s=-1/0,l=1/0,c=-1/0;t.pos>3}if(i--,1===n||2===n)r+=t.readSVarint(),o+=t.readSVarint(),rs&&(s=r),oc&&(c=o);else if(7!==n)throw new Error("unknown command "+n)}return[a,l,s,c]},S.prototype.toGeoJSON=function(t,e,n){function i(t){for(var e=0;e=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new J(this._pbf,e,this.extent,this._keys,this._values)};var K=X,q=N,$=q;L.SVG.Tile=L.SVG.extend({initialize:function(t,e,n){L.SVG.prototype.initialize.call(this,n),this._tileCoord=t,this._size=e,this._initContainer(),this._container.setAttribute("width",this._size.x),this._container.setAttribute("height",this._size.y),this._container.setAttribute("viewBox",[0,0,this._size.x,this._size.y].join(" ")),this._layers={}},getCoord:function(){return this._tileCoord},getContainer:function(){return this._container},onAdd:L.Util.falseFn,addTo:function(t){if(this._map=t,this.options.interactive)for(var e in this._layers){var n=this._layers[e];n._path.style.pointerEvents="auto",this._map._targets[L.stamp(n._path)]=n}},removeFrom:function(t){if(this.options.interactive)for(var e in this._layers){var n=this._layers[e];delete this._map._targets[L.stamp(n._path)]}delete this._map},_initContainer:function(){L.SVG.prototype._initContainer.call(this),L.SVG.create("rect")},_addPath:function(t){this._rootGroup.appendChild(t._path),this._layers[L.stamp(t)]=t},_updateIcon:function(t){var e=t._path=L.SVG.create("image"),n=t.options.icon,i=n.options,r=L.point(i.iconSize),o=i.iconAnchor||r&&r.divideBy(2,!0),a=t._point.subtract(o);e.setAttribute("x",a.x),e.setAttribute("y",a.y),e.setAttribute("width",r.x+"px"),e.setAttribute("height",r.y+"px"),e.setAttribute("href",i.iconUrl)}}),L.svg.tile=function(t,e,n){return new L.SVG.Tile(t,e,n)};var tt=L.Class.extend({render:function(t,e){this._renderer=t,this.options=e,t._initPath(this),t._updateStyle(this)},updateStyle:function(t,e){this.options=e,t._updateStyle(this)},_getPixelBounds:function(){for(var t=this._parts,e=L.bounds([]),n=0;nn&&(i=r,n=o);n>a?(e[i][2]=n,c.push(l),c.push(i),l=i):(u=c.pop(),l=c.pop())}}function getSqSegDist(e,t,r){var n=t[0],o=t[1],i=r[0],a=r[1],s=e[0],l=e[1],u=i-n,c=a-o;if(0!==u||0!==c){var f=((s-n)*u+(l-o)*c)/(u*u+c*c);f>1?(n=i,o=a):f>0&&(n+=u*f,o+=c*f)}return u=s-n,c=l-o,u*u+c*c}function convert$1(e,t){var r=[];if("FeatureCollection"===e.type)for(var n=0;n1?1:n,[r,n,0]}function calcSize(e){for(var t,r,n=0,o=0,i=0;i=r&&s<=n)return e;if(a>n||s=r&&f<=n)l.push(p);else if(!(c>n||f=t&&s<=r&&o.push(a)}return o}function clipGeometry(e,t,r,n,o,i){for(var a=[],s=0;sr?(x.push(o(l,h,t),o(l,h,r)),i||(x=newSlice(a,x,g,d,v))):p>=t&&x.push(o(l,h,t)):f>r?pr&&(x.push(o(l,h,r)),i||(x=newSlice(a,x,g,d,v))));l=m[y-1],f=l[n],f>=t&&f<=r&&x.push(l),c=x[x.length-1],i&&c&&(x[0][0]!==c[0]||x[0][1]!==c[1])&&x.push(x[0]),newSlice(a,x,g,d,v)}return a}function newSlice(e,t,r,n,o){return t.length&&(t.area=r,t.dist=n,void 0!==o&&(t.outer=o),e.push(t)),[]}function wrap$1(e,t,r){var n=e,o=clip$2(e,1,-1-t,t,0,r,-1,2),i=clip$2(e,1,1-t,2+t,0,r,-1,2);return(o||i)&&(n=clip$2(e,1,-t,1+t,0,r,-1,2),o&&(n=shiftFeatureCoords(o,1).concat(n)),i&&(n=n.concat(shiftFeatureCoords(i,-1)))),n}function shiftFeatureCoords(e,t){for(var r=[],n=0;na.max[0]&&(a.max[0]=u[0]),u[1]>a.max[1]&&(a.max[1]=u[1])}return a}function addFeature(e,t,r,n){var o,i,a,s,l=t.geometry,u=t.type,c=[],f=r*r;if(1===u)for(o=0;of)&&(p.push(s),e.numSimplified++),e.numPoints++;3===u&&rewind(p,a.outer),c.push(p)}else e.numPoints+=a.length;c.length&&e.features.push({geometry:c,type:u,tags:t.tags||null})}function rewind(e,t){signedArea(e)<0===t&&e.reverse()}function signedArea(e){for(var t,r,n=0,o=0,i=e.length,a=i-1;o1)return!1;var i=o.geometry[0].length;if(5!==i)return!1;for(var a=0;a1&&console.time("creation"),m=s.tiles[h]=createTile(e,p,r,n,g,t===u.maxZoom),s.tileCoords.push({z:t,x:r,y:n}),c)){c>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,r,n,m.numFeatures,m.numPoints,m.numSimplified),console.timeEnd("creation"));var d="z"+t;s.stats[d]=(s.stats[d]||0)+1,s.total++}if(m.source=e,o){if(t===u.maxZoom||t===o)continue;var v=1<1&&console.time("clipping");var y,x,b,M,P,S,w=.5*u.buffer/u.extent,$=.5-w,C=.5+w,F=1+w;y=x=b=M=null,P=clip(e,p,r-w,r+C,0,intersectX,m.min[0],m.max[0]),S=clip(e,p,r+$,r+F,0,intersectX,m.min[0],m.max[0]),P&&(y=clip(P,p,n-w,n+C,1,intersectY,m.min[1],m.max[1]),x=clip(P,p,n+$,n+F,1,intersectY,m.min[1],m.max[1])),S&&(b=clip(S,p,n-w,n+C,1,intersectY,m.min[1],m.max[1]),M=clip(S,p,n+$,n+F,1,intersectY,m.min[1],m.max[1])),c>1&&console.timeEnd("clipping"),y&&l.push(y,t+1,2*r,2*n),x&&l.push(x,t+1,2*r,2*n+1),b&&l.push(b,t+1,2*r+1,2*n),M&&l.push(M,t+1,2*r+1,2*n+1)}else o&&(f=t)}return f},GeoJSONVT.prototype.getTile=function(e,t,r){var n=this,o=this.options,i=o.extent,a=o.debug,s=1<1&&console.log("drilling down to z%d-%d-%d",e,t,r);for(var u,c=e,f=t,p=r;!u&&c>0;)c--,f=Math.floor(f/2),p=Math.floor(p/2),u=n.tiles[toID(c,f,p)];if(!u||!u.source)return null;if(a>1&&console.log("found parent tile z%d-%d-%d",c,f,p),isClippedSquare(u,i,o.buffer))return transform.tile(u,i);a>1&&console.time("drilling down");var h=this.splitTile(u.source,c,f,p,e,t,r);if(a>1&&console.timeEnd("drilling down"),null!==h){var m=1<c&&(c=s[0]),s[1]f&&(f=s[1])}function r(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(r);break;case"Point":t(e.coordinates);break;case"MultiPoint":e.coordinates.forEach(t)}}var n=e.bbox;if(!n){var o,i,a=transform$3(e),s=new Array(2),l=1/0,u=l,c=-l,f=-l;e.arcs.forEach(function(e){for(var t=-1,r=e.length;++tc&&(c=s[0]),s[1]f&&(f=s[1])});for(i in e.objects)r(e.objects[i]);n=e.bbox=[l,u,c,f]}return n},reverse=function(e,t){for(var r,n=e.length,o=n-t;o<--n;)r=e[o],e[o++]=e[n],e[n]=r},feature=function(e,t){return"GeometryCollection"===t.type?{type:"FeatureCollection",features:t.geometries.map(function(t){return feature$1(e,t)})}:feature$1(e,t)},stitch=function(e,t){function r(t){var r,n=e.arcs[t<0?~t:t],o=n[0];return e.transform?(r=[0,0],n.forEach(function(e){r[0]+=e[0],r[1]+=e[1]})):r=n[n.length-1],t<0?[r,o]:[o,r]}function n(e,t){for(var r in e){var n=e[r];delete t[n.start],delete n.start,delete n.end,n.forEach(function(e){o[e<0?~e:e]=1}),s.push(n)}}var o={},i={},a={},s=[],l=-1;return t.forEach(function(r,n){var o,i=e.arcs[r<0?~r:r];i.length<3&&!i[1][0]&&!i[1][1]&&(o=t[++l],t[l]=r,t[n]=o)}),t.forEach(function(e){var t,n,o=r(e),s=o[0],l=o[1];if(t=a[s])if(delete a[t.end],t.push(e),t.end=l,n=i[l]){delete i[n.start];var u=n===t?t:t.concat(n);i[u.start=t.start]=a[u.end=n.end]=u}else i[t.start]=a[t.end]=t;else if(t=i[l])if(delete i[t.start],t.unshift(e),t.start=s,n=a[s]){delete a[n.end];var c=n===t?t:n.concat(t);i[c.start=n.start]=a[c.end=t.end]=c}else i[t.start]=a[t.end]=t;else t=[e],i[t.start=s]=a[t.end=l]=t}),n(a,i),n(i,a),t.forEach(function(e){o[e<0?~e:e]||s.push([e])}),s},bisect=function(e,t){for(var r=0,n=e.length;r>>1;e[o]1?arguments[1]:void 0,i=e.length,r=void 0===n?i:p(a(n),i),o=s(t);return d(e,r-o.length,r)===o}})},"8aa5":function(t,e,n){"use strict";var i=n("6547").charAt;t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"8aa7":function(t,e,n){"use strict";var i=n("da84"),r=n("d039"),o=n("1c7e"),a=n("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,s=i.ArrayBuffer,l=i.Int8Array;t.exports=!a||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!o((function(t){new l,new l(null),new l(1.5),new l(t)}),!0)||r((function(){return 1!==new l(new s(2),1,void 0).length}))},"8adb":function(t,e){function n(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}t.exports=n},"8c41":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAB4CAYAAACAcLCaAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4FpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ2MCwgMjAyMC8wNS8xMi0xNjowNDoxNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo4OWNjNWQxNC05ZDUzLWYyNDAtYjhiNi1lODBiYTQyZGVkMzAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Njk1RERDRUU1MkJEMTFFRUE4MTlENThDRTI3MDFDNjUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Njk1RERDRUQ1MkJEMTFFRUE4MTlENThDRTI3MDFDNjUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhv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2c+zTSQpJMEjN8MgTNkcrffVq9hpXprlVWZJMYSszg/+iU4lZ/AxBbiBXiaEc8Gimbml3+z3Fny8xITW49BeJqRcdWpqXMX7lbI8c8Yk85ap/s+zQ4eXEetg+3aE7ZtX+hEzQb4k1vqXSqXvftoN7zHcMsFL5oVjIPd3ieaaG/A2jfX4mHfBd+w8pUJZ+tA7xra/avo0DlJUxHtEdpLzFuD9wm3QVQPx9zpy2iPHOwC2ks4jHBNfqVVBMXFN/BX8c8gXtCsNjhbn+fKG5z8LtGIeMv/nyf4jwADAPDAlmH1SjPEAAAAAElFTkSuQmCC"},"8cef":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.Iso97971={pad:function(e,n){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,n)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971}))},"8da2":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return l}));var i=n("ef1d"),r=function(t){i["_hfBackgroundMap"]=t,s(t)},o=function(){return i["_hfBackgroundMap"]||{}},a="EVENT_SET_BACKGROUND_MAP",s=function(t){var e=new CustomEvent(a,{detail:t});document.dispatchEvent(e)},l="EVENT_setChinaMapTransform"},"8de2":function(t,e,n){var i=n("8eeb"),r=n("9934");function o(t){return i(t,r(t))}t.exports=o},"8df4":function(t,e,n){"use strict";var i=n("7a77");function r(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new i(t),e(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t,e=new r((function(e){t=e}));return{token:e,cancel:t}},t.exports=r},"8eeb":function(t,e,n){var i=n("32b3"),r=n("872a");function o(t,e,n,o){var a=!n;n||(n={});var s=-1,l=e.length;while(++s=0?i:n+i;return s<0||s>=n?void 0:e[s]}))},"90d8":function(t,e,n){"use strict";var i=n("c65b"),r=n("1a2d"),o=n("3a9b"),a=n("ad6d"),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||r(t,"flags")||!o(s,t)?e:i(a,t)}},"90e3":function(t,e,n){"use strict";var i=n("e330"),r=0,o=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},9112:function(t,e,n){"use strict";var i=n("83ab"),r=n("9bf2"),o=n("5c6c");t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"91e9":function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},9263:function(t,e,n){"use strict";var i=n("c65b"),r=n("e330"),o=n("577e"),a=n("ad6d"),s=n("9f7f"),l=n("5692"),c=n("7c73"),h=n("69f3").get,u=n("fce3"),d=n("107c"),p=l("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,m=f,g=r("".charAt),y=r("".indexOf),_=r("".replace),v=r("".slice),b=function(){var t=/a/,e=/b*/g;return i(f,t,"a"),i(f,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),w=s.BROKEN_CARET,x=void 0!==/()??/.exec("")[1],L=b||x||w||u||d;L&&(m=function(t){var e,n,r,s,l,u,d,L=this,M=h(L),k=o(t),T=M.raw;if(T)return T.lastIndex=L.lastIndex,e=i(m,T,k),L.lastIndex=T.lastIndex,e;var A=M.groups,E=w&&L.sticky,S=i(a,L),P=L.source,O=0,D=k;if(E&&(S=_(S,"y",""),-1===y(S,"g")&&(S+="g"),D=v(k,L.lastIndex),L.lastIndex>0&&(!L.multiline||L.multiline&&"\n"!==g(k,L.lastIndex-1))&&(P="(?: "+P+")",D=" "+D,O++),n=new RegExp("^(?:"+P+")",S)),x&&(n=new RegExp("^"+P+"$(?!\\s)",S)),b&&(r=L.lastIndex),s=i(f,E?n:L,D),E?s?(s.input=v(s.input,O),s[0]=v(s[0],O),s.index=L.lastIndex,L.lastIndex+=s[0].length):L.lastIndex=0:b&&s&&(L.lastIndex=L.global?s.index+s[0].length:r),x&&s&&s.length>1&&i(p,s[0],n,(function(){for(l=1;l>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+y+c[p-16]}var _=s&h^~s&u,v=i&r^i&o^r&o,b=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),w=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),x=d+w+_+l[p]+c[p],L=b+v;d=u,u=h,h=s,s=a+x|0,a=o,o=r,r=i,i=x+L|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+h|0,n[6]=n[6]+u|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(i/4294967296),n[15+(r+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});n.SHA256=o._createHelper(h),n.HmacSHA256=o._createHmacHelper(h)}(Math),t.SHA256}))},9520:function(t,e,n){var i=n("3729"),r=n("1a8c"),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function c(t){if(!r(t))return!1;var e=i(t);return e==a||e==s||e==o||e==l}t.exports=c},9587:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return d})),n.d(e,"e",(function(){return f})),n.d(e,"d",(function(){return m}));n("d81d");var i=n("ec20"),r=(n("823b"),n("8da2")),o=n("b0fb"),a=n("078d"),s=!1,l=function(t){var e=t||{},n=e.lat,i=void 0===n?null:n,r=e.lon,o=void 0===r?null:r,a=e.lng,s=void 0===a?null:a;return{lat:i,lon:o,lng:s}},c=function(t){var e=t||{},n=e.lat,i=void 0===n?null:n,r=e.lon,o=void 0===r?null:r,a=e.lng,s=void 0===a?null:a,l=!1,c=!1;return t instanceof Array&&(i=t[0],o=t[1],l=!0),i||o?(!o&&s&&(o=s,c=!0),{lat:i,lon:o,isarray:l,islng:c}):t},h=function(t,e){var n=c(t),r=n.lat,o=n.lon,a=n.isarray;n.islng;if(!i["a"](o,r))return t;var s=l(t),h=e(o,r);return a&&(s[0]=h.lat,s[1]=h.lon),s.lat=h.lat,s.lon=h.lon,s.lng=h.lon,s},u=function(t,e){var n=e?i["c"]:i["d"];return t.map((function(t){return h(t,n)}))},d=function(t,e){var n=e?i["c"]:i["d"];return h(t,n)},p=function(){var t=Object(o["h"])(),e=a["b"]();if("cn"==e&&(t=!0),!t){var n=r["b"](),i=n||{},s=i.key;if("display.map.satellite"==s)return!0}return!1},f=function(t){var e=p();return e?t:h(t,i["c"])},m=function(t){return h(t,i["d"])}},9625:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOQAAACoCAYAAADwzUKaAAAAAXNSR0IArs4c6QAAAFBlWElmTU0AKgAAAAgAAgESAAMAAAABAAEAAIdpAAQAAAABAAAAJgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAA5KADAAQAAAABAAAAqAAAAACrDz5tAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZ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qUldHGznnWXBg2bsVkepB4zuyltxx4yvatbax+vMT6ZJLYnlWDKlOCgRyT0hW6t0pZeT1PIae0skpdOSgCvJoV9CxS7e2cf2gCw6sWHq+Vjf82WiowJeq8LzdhlL82Q/DE89ydVe9VHnLsPQRyA9Csv467N6aaRgeoXn4ZVrLKlyYixk3qNoe3FYx5S1euNAT7DFkVbim7CTTWooZN8W73wtVfj5WWsWUqOV1YP4Q0oRpzeRSUjwPiZ967Goas0wOWJvYtOEHXl06RWs4/EW+rBZ8fkHjpClL24gqgyUCEgGJgERAIiARkAhIBCQCEgGJgERAIiARkAhIBCQCEgGJgERAIiARkAhIBCQCEgGJgERAIiARkAhIBCQCEgGJgESA/g/vBoztXuoZyAAAAABJRU5ErkJggg=="},9638:function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},9649:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var i=n("5530"),r=(n("a15b"),n("d81d"),n("7a1d")),o={MAP_DEFAULT:"display.map.default",MAP_GLOBAL:"display.map.global",MAP_SATELLITE:"display.map.satellite",MAP_NAUTICAL:"display.map.nautical",MAP_CHINANAUTICAL:"display.map.chinaNautical",MAP_UKHO:"display.map.ukho",MAP_SDK_NAUTICAL:"display.map.sdk.nautical",MAP_WEATHER:"display.map.weather"},a=function(){var t=r["i"](),e=t?"&usertoken=".concat(t):"",a="&_v=5.3.491",s=["https://ttse.hifleet.com/hifleetapi/getS101Chart.do?z={z}&x={x}&y={y}"+e,a].join(""),l=["https://ttse.hifleet.com/hifleetapi/getNauticalChart.do?z={z}&x={x}&y={y}"+e,a].join(""),c=["https://ttse.hifleet.com/hifleetapi/getOpenStreetMap.do?z={z}&x={x}&y={y}"+e,a].join(""),h="/wmts_weather/darklandmap/tile/{z}/{x}/{y}?",u=r["g"](h),d=[{id:0,key:o.MAP_DEFAULT,url:c,i18n:{en:"",cn:""},maxZoom:18,default:!0,thumb:n("af9f"),oosThumb:"https://static.hifleet.com/gallery/alpha/image/small/global2.png",auth:""},{id:1,key:o.MAP_GLOBAL,url:"https://tile.hifleet.com/wmts/google-street-zh/osm_grid/{z}/{x}/{y}.png",options:{en:"https://tile.hifleet.com/wmts/google-street-en/osm_grid/{z}/{x}/{y}.png",cn:"https://tile.hifleet.com/wmts/google-street-zh/osm_grid/{z}/{x}/{y}.png"},i18n:{en:"Global Map",cn:"地图"},maxZoom:18,default:!0,thumb:n("af9f"),oosThumb:"https://static.hifleet.com/gallery/alpha/image/small/global2.png",auth:"geomap_satemap"},{id:2,key:o.MAP_SATELLITE,url:"https://tile.hifleet.com/wmts/google-sat-zh/osm_grid/{z}/{x}/{y}.png",options:{en:"https://tile.hifleet.com/wmts/google-sat-en/osm_grid/{z}/{x}/{y}.png",cn:"https://tile.hifleet.com/wmts/google-sat-zh/osm_grid/{z}/{x}/{y}.png"},i18n:{en:"Satellite Map",cn:"卫星图"},maxZoom:18,thumb:n("2fff"),oosThumb:"https://static.hifleet.com/gallery/alpha/image/small/satellite2.png",auth:"geomap_satemap"},{id:3,key:o.MAP_NAUTICAL,url:l,i18n:{en:"Nautical Map",cn:"全球海图"},options:{en:l+"&i18n=en",cn:l+"&i18n=cn"},maxZoom:18,thumb:n("3f95"),oosThumb:"https://static.hifleet.com/gallery/alpha/image/small/nautical2.png",auth:""},{id:4,key:o.MAP_CHINANAUTICAL,url:s,i18n:{en:"China Nautical Map",cn:"中国海图"},maxZoom:18,thumb:n("029b"),oosThumb:"https://static.hifleet.com/gallery/alpha/image/small/china2.png",auth:"chinese_chart"},{id:6,key:o.MAP_WEATHER,url:u,i18n:{en:"Sea&Land",cn:"海陆图"},maxZoom:18,thumb:n("d074"),oosThumb:"https://static.hifleet.com/gallery/alpha/image/small/sealand.png",auth:"chinese_chart"},{id:5,key:o.MAP_UKHO,url:"https://www.hifleet.com/ukhomap/ukhoMapWms?",i18n:{en:"AVCS Online",cn:"AVCS Online"},maxZoom:18,thumb:n("6d65"),oosThumb:"https://static.hifleet.com/gallery/alpha/image/small/AVCS.png"}];return d.map((function(t){return Object(i["a"])(Object(i["a"])({},t),{},{thumb:t.oosThumb})}))}},9671:function(t,e,n){"use strict";var i=Function.prototype.call,r=Object.prototype.hasOwnProperty,o=n("0f7c");t.exports=o.call(i,r)},"971e":function(t,e,n){t.exports="https://sdk.hifleet.com/sdkdist/img/merchant.5fbfdc61.png"},9734:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAABUCAYAAADu10VkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAP9GlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhv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3MHdhFLDLZB2q0DwhFAu9NQK22XLrtHY6voGD4Gu0+6VjoqDNxOfPLbj8+lkd2PK1uB3SKNkP34JudhZTSA91y8FyWcci+T6ZQs2AL5x+B78E8HoJrage8i2wg8JrMozYI9Is32zdVBx77c4hd8JPXAapmOyYKtl7r2oDAmOgk22AA7HtnHC6lqdBZsvJCBY+0Svnd3+t9vX+KzyFbD48IB4fnBtkq6KKw3Cj3VuB6q17K9XHcheAYz9+tR+VPCuM2WJ+wxZuC3JthDUjfWhK5dmWk0T9kHZxuqZ+7H+8tBoVPiDDBW+Kq3d5SwC1qTU4iwoGv7IKRD2ooXRwhuvPY/bryVFmN1c01U6UtZh1XDplH4Eb9qY3csjJVOpo48qB7sq3X/B1tQXbCi6oIVVResqLpgRdUFK6p/ARrR4YpBv5L6AAAAAElFTkSuQmCC"},9861:function(t,e,n){"use strict";n("5352")},"986a":function(t,e,n){"use strict";var i=n("ebb5"),r=n("a258").findLast,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findLast",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},9934:function(t,e,n){var i=n("6fcd"),r=n("41c3"),o=n("30c9");function a(t){return o(t)?i(t,!0):r(t)}t.exports=a},9959:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAABUCAYAAADu10VkAAAACXBIWXMAAAsTAAALEwEAmpwYAAANNmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmR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rwuXqzCbHHPw9jDenp3Mqmk1Z0+TVV+jdFskkY2SH3cditNKlr7wuJEUIw2MNNrk2tZWP9Lvsre+O7lM3LIld3XzgCLg9c2pSbXfCHb4P8oPUOLKj5+ddCiuv7RBfWLUz0L9rAIx8SCKs+/d5NzJZcUvGXPZySy77r1atU6t2qBWNVTPfYarv0r3Brqt5t3rwI7OA4QgvP5QGK3ZU5o47EerbLZ3ZV7cS70yBmKydMe9pU0rhPHKPX0Dc0cr/VAZSIj7dmCCn6Lu+IUtBohUaTQeojr6T6XpOa5snHQoztLnNkrgkcB1iKlmoA1s+nrp7gsgjL6zVQgQSfD1X+HqPwM9Md2rVJQatS/+lqGPN2DtKQCi5NGXjBkYL+pljZcf9+7TRP3RDjEYw7lDS6w9sKpcJoyNK7fsQM4yPvozsto/oL56YRd2i4ARGB9+jtEzd4B/DRMsPR7G618vu/PY1d4eWGvMgg4xkRo2275WfW1WYasE4ZX70vSTj6z9a+rpq/kihsnECr1S89pLsS+23ej+iGbf4/QX/0hceeRfhaBc0+q/3tQ6pzbr2BXY9N1yGwLQbLQ29s+PhMkZYwDnwTXzyTcJGMinYg+ZQv8gSAKJgjfktw0JxLPzTTUanonhvyOOvj0H6avC+EDLalljy8MT48cuGxhcPCz5yHMuGT2z4kN1R6+aMna0Y5Wi+adSMybXkZauAk0rq8+fGZNvrHsNVRiY8y9PJn1/84wBcPbACu+OXnnegO5q0ueLsQu5sn2TIE3i51kjq//7Jmh5orF1PdPOs7+c5K3s7bugGWNZ47WbJP9R8SsgOgIgM//V2aPMEOtVZoj1KjPEepUZYr3KDLFeZYZYr/I/kMMMXSoPId4AAAAASUVORK5CYII="},"99af":function(t,e,n){"use strict";var i=n("23e7"),r=n("d039"),o=n("e8b5"),a=n("861d"),s=n("7b0b"),l=n("07fa"),c=n("3511"),h=n("8418"),u=n("65f0"),d=n("1dde"),p=n("b622"),f=n("2d00"),m=p("isConcatSpreadable"),g=f>=51||!r((function(){var t=[];return t[m]=!1,t.concat()[0]!==t})),y=function(t){if(!a(t))return!1;var e=t[m];return void 0!==e?!!e:o(t)},_=!g||!d("concat");i({target:"Array",proto:!0,arity:1,forced:_},{concat:function(t){var e,n,i,r,o,a=s(this),d=u(a,0),p=0;for(e=-1,i=arguments.length;e2?arguments[2]:void 0)}))},"9aff":function(t,e,n){var i=n("9638"),r=n("30c9"),o=n("c098"),a=n("1a8c");function s(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?r(n)&&o(e,n.length):"string"==s&&e in n)&&i(n[e],t)}t.exports=s},"9bdd":function(t,e,n){"use strict";var i=n("825a"),r=n("2a62");t.exports=function(t,e,n,o){try{return o?e(i(n)[0],n[1]):e(n)}catch(a){r(t,"throw",a)}}},"9bf2":function(t,e,n){"use strict";var i=n("83ab"),r=n("0cfb"),o=n("aed9"),a=n("825a"),s=n("a04b"),l=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",p="writable";e.f=i?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var i=h(t,e);i&&i[p]&&(t[e]=n.value,n={configurable:d in n?n[d]:i[d],enumerable:u in n?n[u]:i[u],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),r)try{return c(t,e,n)}catch(i){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9e69":function(t,e,n){var i=n("2b3e"),r=i.Symbol;t.exports=r},"9e6a":function(t,e,n){"use strict";var i=n("d233"),r=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:i.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},l=function(t,e){return t&&"string"===typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c="utf8=%26%2310003%3B",h="utf8=%E2%9C%93",u=function(t,e){var n,u={__proto__:null},d=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,f=d.split(e.delimiter,p),m=-1,g=e.charset;if(e.charsetSentinel)for(n=0;n-1&&(_=o(_)?[_]:_),r.call(u,y)?u[y]=i.combine(u[y],_):u[y]=_}return u},d=function(t,e,n,i){for(var r=i?e:l(e,n),o=t.length-1;o>=0;--o){var a,s=t[o];if("[]"===s&&n.parseArrays)a=[].concat(r);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,h=parseInt(c,10);n.parseArrays||""!==c?!isNaN(h)&&s!==c&&String(h)===c&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(a=[],a[h]=r):"__proto__"!==c&&(a[c]=r):a={0:r}}r=a}return r},p=function(t,e,n,i){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(o),c=l?o.slice(0,l.index):o,h=[];if(c){if(!n.plainObjects&&r.call(Object.prototype,c)&&!n.allowPrototypes)return;h.push(c)}var u=0;while(n.depth>0&&null!==(l=s.exec(o))&&u1?arguments[1]:void 0,M=void 0!==L,k=c(w);if(k&&!h(k)){_=l(w,k),v=_.next,w=[];while(!(y=r(v,_)).done)w.push(y.value)}for(M&&x>2&&(L=i(L,arguments[2])),n=s(w),f=new(d(b))(n),m=u(f),e=0;n>e;e++)g=M?L(w[e],e):w[e],f[e]=m?p(g):+g;return f}},a0a9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TinyQueue=void 0;class i{constructor(t=[],e=r){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}_down(t){const{data:e,compare:n}=this,i=this.length>>1,r=e[t];while(t=0)break;e[t]=e[i],t=i}e[t]=r}_up(t){const{data:e,compare:n}=this,i=e[t];while(t>0){const r=t-1>>1,o=e[r];if(n(i,o)>=0)break;e[t]=o,t=r}e[t]=i}push(t){this.data.push(t),this._up(this.length++)}pop(){if(0===this.length)return;const t=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}}e.TinyQueue=i;const r=(t,e)=>te?1:0},a11b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.Iso10126={pad:function(e,n){var i=4*n,r=i-e.sigBytes%i;e.concat(t.lib.WordArray.random(r-1)).concat(t.lib.WordArray.create([r<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126}))},a15b:function(t,e,n){"use strict";var i=n("23e7"),r=n("e330"),o=n("44ad"),a=n("fc6a"),s=n("a640"),l=r([].join),c=o!==Object,h=c||!s("join",",");i({target:"Array",proto:!0,forced:h},{join:function(t){return l(a(this),void 0===t?",":t)}})},a258:function(t,e,n){"use strict";var i=n("0366"),r=n("44ad"),o=n("7b0b"),a=n("07fa"),s=function(t){var e=1===t;return function(n,s,l){var c,h,u=o(n),d=r(u),p=a(d),f=i(s,l);while(p-- >0)if(c=d[p],h=f(c,p,u),h)switch(t){case 0:return c;case 1:return p}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},a2be:function(t,e,n){var i=n("d612"),r=n("4284"),o=n("c584"),a=1,s=2;function l(t,e,n,l,c,h){var u=n&a,d=t.length,p=e.length;if(d!=p&&!(u&&p>d))return!1;var f=h.get(t),m=h.get(e);if(f&&m)return f==e&&m==t;var g=-1,y=!0,_=n&s?new i:void 0;h.set(t,e),h.set(e,t);while(++g>>5]>>>31-r%32&1}for(var o=this._subKeys=[],c=0;c<16;c++){var h=o[c]=[],u=l[c];for(i=0;i<24;i++)h[i/6|0]|=n[(s[i]-1+u)%28]<<31-i%6,h[4+(i/6|0)]|=n[28+(s[i+24]-1+u)%28]<<31-i%6;h[0]=h[0]<<1|h[0]>>>31;for(i=1;i<7;i++)h[i]=h[i]>>>4*(i-1)+3;h[7]=h[7]<<5|h[7]>>>27}var d=this._invSubKeys=[];for(i=0;i<16;i++)d[i]=o[15-i]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],d.call(this,4,252645135),d.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),d.call(this,1,1431655765);for(var i=0;i<16;i++){for(var r=n[i],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^r[l])&h[l])>>>0];this._lBlock=a,this._rBlock=o^s}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,d.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<192.");var n=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(i.create(n)),this._des2=u.createEncryptor(i.create(r)),this._des3=u.createEncryptor(i.create(o))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=r._createHelper(f)}(),t.TripleDES}))},a434:function(t,e,n){"use strict";var i=n("23e7"),r=n("7b0b"),o=n("23cb"),a=n("5926"),s=n("07fa"),l=n("3a34"),c=n("3511"),h=n("65f0"),u=n("8418"),d=n("083a"),p=n("1dde"),f=p("splice"),m=Math.max,g=Math.min;i({target:"Array",proto:!0,forced:!f},{splice:function(t,e){var n,i,p,f,y,_,v=r(this),b=s(v),w=o(t,b),x=arguments.length;for(0===x?n=i=0:1===x?(n=0,i=b-w):(n=x-2,i=g(m(a(e),0),b-w)),c(b+n-i),p=h(v,i),f=0;fb-i+n;f--)d(v,f-1)}else if(n>i)for(f=b-i;f>w;f--)y=f+i-1,_=f+n-1,y in v?v[_]=v[y]:d(v,_);for(f=0;f>>2]|=r<<24-o%4*8,t.sigBytes+=r},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923}))},a8ce:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Utf16=r.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>1]|=t.charCodeAt(r)<<16-r%2*16;return i.create(n,2*e)}};function o(t){return t<<8&4278255360|t>>>8&16711935}r.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r>>2]>>>16-r%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>1]|=o(t.charCodeAt(r)<<16-r%2*16);return i.create(n,2*e)}}}(),t.enc.Utf16}))},a975:function(t,e,n){"use strict";var i=n("ebb5"),r=n("b727").every,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("every",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},a994:function(t,e,n){var i=n("7d1f"),r=n("32f4"),o=n("ec69");function a(t){return i(t,o,r)}t.exports=a},a9e3:function(t,e,n){"use strict";var i=n("23e7"),r=n("c430"),o=n("83ab"),a=n("da84"),s=n("428f"),l=n("e330"),c=n("94ca"),h=n("1a2d"),u=n("7156"),d=n("3a9b"),p=n("d9b5"),f=n("c04e"),m=n("d039"),g=n("241c").f,y=n("06cf").f,_=n("9bf2").f,v=n("408a"),b=n("58a8").trim,w="Number",x=a[w],L=s[w],M=x.prototype,k=a.TypeError,T=l("".slice),A=l("".charCodeAt),E=function(t){var e=f(t,"number");return"bigint"==typeof e?e:S(e)},S=function(t){var e,n,i,r,o,a,s,l,c=f(t,"number");if(p(c))throw new k("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=b(c),e=A(c,0),43===e||45===e){if(n=A(c,2),88===n||120===n)return NaN}else if(48===e){switch(A(c,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(o=T(c,2),a=o.length,s=0;sr)return NaN;return parseInt(o,i)}return+c},P=c(w,!x(" 0o1")||!x("0b1")||x("+0x1")),O=function(t){return d(M,t)&&m((function(){v(t)}))},D=function(t){var e=arguments.length<1?0:x(E(t));return O(this)?u(Object(e),this,D):e};D.prototype=M,P&&!r&&(M.constructor=D),i({global:!0,constructor:!0,wrap:!0,forced:P},{Number:D});var I=function(t,e){for(var n,i=o?g(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),r=0;i.length>r;r++)h(e,n=i[r])&&!h(t,n)&&_(t,n,y(e,n))};r&&L&&I(s[w],L),(P||r)&&I(s[w],x)},aaef:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){ /** @preserve * Counter block mode compatible with Dr Brian Gladman fileenc.c * derived from CryptoJS.mode.CTR * Jan Hruby jhruby.web@gmail.com */ return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function n(t){if(255===(t>>24&255)){var e=t>>16&255,n=t>>8&255,i=255&t;255===e?(e=0,255===n?(n=0,255===i?i=0:++i):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=i}else t+=1<<24;return t}function i(t){return 0===(t[0]=n(t[0]))&&(t[1]=n(t[1])),t}var r=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),i(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l0)t[s]=t[--s];s!==l++&&(t[s]=a)}}else{var c=r(n/2),h=o(i(t,0,c),e),u=o(i(t,c),e),d=h.length,p=u.length,f=0,m=0;while(f3}))}},af5b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.BlockCipher,r=e.algo;const o=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var l={pbox:[],sbox:[]};function c(t,e){let n=e>>24&255,i=e>>16&255,r=e>>8&255,o=255&e,a=t.sbox[0][n]+t.sbox[1][i];return a^=t.sbox[2][r],a+=t.sbox[3][o],a}function h(t,e,n){let i,r=e,a=n;for(let s=0;s1;--s)r^=t.pbox[s],a=c(t,r)^a,i=r,r=a,a=i;return i=r,r=a,a=i,a^=t.pbox[1],r^=t.pbox[0],{left:r,right:a}}function d(t,e,n){for(let o=0;o<4;o++){t.sbox[o]=[];for(let e=0;e<256;e++)t.sbox[o][e]=s[o][e]}let i=0;for(let s=0;s=n&&(i=0);let r=0,l=0,c=0;for(let a=0;a"],n=["
"];return t.map((function(t,i){0==i?(e.push("
"+t[0]+"
"),n.push("
"+t[1]+"
")):(e.push("
"+t[0]+"
"),n.push("
"+t[1]+"
"))})),e.push("
"),n.push(""),["
",e.join(""),n.join(""),"
"].join("")},v=function(t){var e=[];return e.push("
"),t.forEach((function(t,n){var i=[];0!=n&&i.push("border-left:1px solid #eee;"),i.push("padding:0px 4px;");var r=i.join("");e.push("
")),e.push(t),e.push("
")})),e.push("
"),e.join("")},b=function(t){return 40075016.686*Math.abs(Math.cos(t.getCenter().lat*Math.PI/180))/Math.pow(2,t.getZoom()+8)},w=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},b1e5:function(t,e,n){var i=n("a994"),r=1,o=Object.prototype,a=o.hasOwnProperty;function s(t,e,n,o,s,l){var c=n&r,h=i(t),u=h.length,d=i(e),p=d.length;if(u!=p&&!c)return!1;var f=u;while(f--){var m=h[f];if(!(c?m in e:a.call(e,m)))return!1}var g=l.get(t),y=l.get(e);if(g&&y)return g==e&&y==t;var _=!0;l.set(t,e),l.set(e,t);var v=c;while(++f-1&&t%1==0&&t<=n}t.exports=i},b279:function(t,n,i){"use strict";(function(t){i.d(n,"k",(function(){return l})),i.d(n,"d",(function(){return c})),i.d(n,"c",(function(){return u})),i.d(n,"f",(function(){return p})),i.d(n,"e",(function(){return m})),i.d(n,"h",(function(){return _})),i.d(n,"n",(function(){return x})),i.d(n,"b",(function(){return E})),i.d(n,"g",(function(){return S})),i.d(n,"a",(function(){return O})),i.d(n,"j",(function(){return D})),i.d(n,"m",(function(){return I})),i.d(n,"i",(function(){return j})),i.d(n,"l",(function(){return C}));i("53ca"),i("99af"),i("4de4"),i("e260"),i("a15b"),i("d81d"),i("14d9"),i("fb6a"),i("4ec9"),i("b680"),i("b64b"),i("d3b7"),i("4d63"),i("c607"),i("ac1f"),i("2c3e"),i("00b4"),i("25f0"),i("3ca3"),i("466d"),i("5319"),i("841c"),i("ddb0"),i("2b3d"),i("9861"),i("88a7"),i("271a"),i("5494"),i("c1df"),i("501e"),i("823b"),i("63ea"),i("c443");var r="°",o="′",a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"°",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"′",i=Math.abs(t),r=Math.floor(i),o=60*(i-r),a=Math.floor(o),s=Math.floor(60*(o-a));return r+e+d(a,2)+n+d(s,2)};function s(t){return(t%360+540)%360-180}var l=function(t){return s(t)},c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" ",l=1*t.lat,c=0;t&&t.hasOwnProperty("lng")?c=1*t.lng:t&&t.hasOwnProperty("lon")&&(c=1*t.lon),c=s(1*c);var h=a(l,e,n),u=l>=0?"N":"S",d=a(c,e,n),p=c>=0?"E":"W";return[h+i+u,d+i+p]},h=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,i=Math.abs(t),r=parseInt(i),o=60*(i-r),a=o.toFixed(n);return r+e+a},u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3,o=1*t.lat,a=t.lng||t.lon;a=s(1*a);var l=h(o,e,i),c=o>=0?"N":"S",u=h(a,e,i),d=a>=0?"E":"W";return[l+n+c,u+n+d]};function d(t,e){return(Array(e).join("0")+t).slice(-e)}var p=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;try{var i=Math.round(t);return i"),t.map((function(t,e){var n=f(t[0],a),i=f(t[1],a);0==e&&l&&l.length>0?g.push("")):g.push(""),n&&n.length>0?g.push("")):g.push(""),g.push(n),g.push(""),g.push("")),g.push(i),g.push(""),g.push("")})),g.push(""),g.join("")},y=function(t,n,i){try{var r=new RegExp("(^|&)"+n+"=([^&]*)(&|$)","i"),o=t.substr(1).match(r);if(null!=o)return decodeURI(o[2])}catch(e){console.error(e)}return i},_=function(t,n,i){try{var r=i||window.location.href,o=new URL(r);return y(o.search,t,n)}catch(e){console.error(e)}return n},v=function(t){return 180*t/Math.PI},b=function(t,e){var n,i,r;n=2<=0&&(o=0),i>=0&&o<0&&(o=180),{blat:a,tlat:r,llon:i,rlon:o}},L=function(t){return t*Math.PI/180},M=function(t,e){var n,i,r;return n=2<0?r:i)(e)}},b47d:function(t,e,n){},b4c0:function(t,e,n){var i=n("cb5a");function r(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}t.exports=r},b4f3:function(t,n,i){"use strict";var r=i("5530"),o=(i("d81d"),i("14d9"),i("c3bd")),a=i("e6af"),s=i("7a1d"),l=i("1860"),c="/position/positions/get/token",h=function(t){var e=Object(a["b"])(c);return Object(o["c"])(e,t)},u=function(t,n){var i=t.map((function(t){var i=t||{},r=(i.an,i.buildyear,i.callsign,i.co),o=i.destination,a=(i.dn,i.draught),l=void 0===a?"-":a,c=(i.dwt,i.eta),h=(i.flag,i.fn,i.h),u=(i.imonumber,i.l),d=i.la,p=i.lo,f=(i.loaded,i.m),m=i.n,g=(i.rot,i.sp),y=(i.src,i.status,i.ti),_=i.type,v=i.w,b=n||{},w=b.labelType,x=void 0===w?"shipname":w,L=b.i18n,M=void 0===L?"cn":L,k="shipname";try{k=x.toLowerCase()}catch(e){k="shipname"}var T=m;"mmsi"==k&&(T=f);var A=[];"cn"==M?(A.push(["更新于:",y]),A.push(["船名:",T]),A.push(["MMSI:",f]),A.push(["类型:",_]),A.push(["航迹向:",r]),A.push(["航首向:",h]),A.push(["航速:",g+"节"]),A.push(["目的港:",o]),A.push(["ETA:",c]),A.push(["吃水:",l+"米"])):(A.push(["Updated:",y]),A.push(["Name:",T]),A.push(["MMSI:",f]),A.push(["Type:",_]),A.push(["Course:",r]),A.push(["Heading:",h]),A.push(["Speed:",g+"kt"]),A.push(["Destination:",o]),A.push(["ETA:",c]),A.push(["Draft:",l+"m"]));var E=s["e"](A);return{mmsi:f,lat:d,lon:p,course:r,heading:h,label:T,length:u,width:v,speed:g,html:E}}));return i},d=function(t){var e=t||{},n=e.latlng,i=e.type,o=void 0===i?"rectangle":i;return Object(r["a"])(Object(r["a"])({},n),{},{drawnas:o})},p=function(t,e,n){var i=t.getShipApp();return{drawShipByMmsi:function(t){var e=s["i"](),i={mmsis:t.mmsis||"",usertoken:e};h(i).then((function(e){if(e){var i=e||{},r=i.list,o=void 0===r?[]:r,a=i.code,s=i.message;if(a)return void console.log(s||"request error");var c=u(o,t);n.drawShip({list:c,_zindex:l["b"]})}})).catch((function(t){console.log(t)}))},setSelectedItem:function(t){var e=d(t);i.setSelectedEls(e)},setSeletedItem:function(t){var e=d(t);i.setSelectedEls(e)},clearSelectedItem:function(){i.setSelectedEls()},clearSeletedItem:function(){i.setSelectedEls()},setSelectedItems:function(t){var e=t||{},n=e.list,r=void 0===n?[]:n,o=r.map((function(t){return d(t)}));i.setSelectedElsByArray(o)},setSeletedItems:function(t){var e=t||{},n=e.list,r=void 0===n?[]:n,o=r.map((function(t){return d(t)}));i.setSelectedElsByArray(o)}}},f={create:p},m=(i("99af"),i("a15b"),i("d3b7"),i("159b"),"/position/trajectory/nocompressed/token"),g=function(t){var e=Object(a["b"])(m);return Object(o["a"])(e,t)},y=function(t){var e=t.map((function(t){var e=t||{},n=(e.accumulatetime,e.co),i=(e.dis,e.displayzoom,e.isstoppoint,e.la),r=e.lo,o=e.m,a=e.n,l=e.sp,c=(e.src,e.starttime,e.stoptime,e.ti),h=[c,l+"kt"].join(" "),u=[];u.push(["Updated:",c]),u.push(["Name:",a]),u.push(["MMSI:",o]),u.push(["Course:",n]),u.push(["Speed:",l+"kt"]);var d=s["e"](u);return{lat:i,lon:r,label:h,speed:l,html:d}})),n=[{latlngs:e}];return n},_=function(t){return t.map((function(t){var e=t||{},n=e.accumulatetime,i=e.la,r=e.lo,o=e.starttime,a=e.stoptime;return{accumulatetime:n,position:"POINT(".concat(r," ").concat(i,")"),starttime:o,stoptime:a}}))},v=function(t){var n=t||{},i=n.ships,r=i||{},o=r.offers,a=o||{},s=a.ship,l=void 0===s?[]:s,c=[],h=[];return l.forEach((function(t){var n=t||{},i=n.isstoppoint,r=!1;try{r=1*i==1}catch(e){}r?c.push(t):h.push(t)})),h=y(h),c=_(c),{trajectoryList:h,stopRecordList:c}},b=function(t,e,n){var i=t.getMap(),o=t.getShipApp();return{drawTrajectoryBy:function(e){var a=s["i"](),l=t.getBBox(),c=i.getZoom(),h=Object(r["a"])(Object(r["a"])({},e),{},{usertoken:a,bbox:l,zoom:c});g(h).then((function(t){if(t){var e=t||{},i=e.code,r=e.message;if(i)return void console.log(r||"request error");var a=v(t),s=a||{},l=s.trajectoryList,c=void 0===l?[]:l,h=s.stopRecordList,u=void 0===h?[]:h,d={showLabel:!0,showArrow:!0,showPoint:!0,showLine:!0,showShipStopRecord:!0,list:c};n.drawTrajectory(d);var p={stoprecord:u};o.setShipStopRecord(p)}}))}}},w={create:b},x=(i("b0c0"),i("bc3a")),L=i.n(x),M=(i("b680"),i("25f0"),i("b279")),k=i("b0fb"),T=(i("823b"),i("ef1d")),A=i("c1df"),E=i.n(A),S=function(t){return"[object Array]"===Object.prototype.toString.call(t)},P=function(t){return t&&!S(t)?[t]:t},O=function(t){try{var n=.5399568*t;return n=n.toFixed(2),n}catch(e){}return"-"},D=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm";try{var i=E()(t).format(n);if(T["_$hfTimeZoneFormatter"]){var r=T["_$hfTimeZoneFormatter"](i);return r}return i}catch(e){}return t},I=function(t){return"undefined"==typeof t},R=function(t){return t.map((function(t){var n=t||{},i=(n._circle7,n._circle10,n._enname),o=n._lat,a=n._level,s=n._lon,l=n._movedirection,c=n._movespeed,h=n._name,u=n._pressure,d=n._src,p=n._strong,f=n._updatetime,m=n._windspeed,g=(n._xuhao,{lat:1*o,lon:1*s,lng:1*s}),y=Object(M["c"])(g),_=[];c=O(c),_.push(["更新时间:",D(f)]),_.push(["名称:",h]),!I(i)&&_.push(["英文:",i]),!I(u)&&_.push(["气压:",u+" 百帕"]),!I(a)&&_.push(["风力:",a+" 级"]),!I(m)&&_.push(["风速:",m+" 米/秒"]),!I(c)&&_.push(["移动速度:",c+" 节"]),!I(l)&&_.push(["移动方向:",l]),_.push(["纬度:",y[0]]),_.push(["经度:",y[1]]),!I(d)&&_.push(["来源:",d]),!I(p)&&_.push(["类型:",p]);var v=Object(k["k"])(_);_=[],_.push(["Updated:",D(f)]),!I(h)&&_.push(["CN:",h]),!I(i)&&_.push(["EN:",i]),!I(u)&&_.push(["Pressure:",u+" hPa"]),!I(a)&&_.push(["Wind:",a]),!I(m)&&_.push(["Wind Speed:",m+" m/s"]),!I(c)&&_.push(["Move Speed:",c+" kn"]),!I(l)&&_.push(["Move direction:",l]),_.push(["Lat:",y[0]]),_.push(["Lon:",y[1]]),!I(d)&&_.push(["Src:",d]),!I(p)&&_.push(["Type:",p]);var b=Object(k["k"])(_),w={cn:v,en:b},x="";try{var L=E()(f).format("YYYY-MM-DD HH:mm");T["_$hfTimeZoneFormatter"]&&(x=T["_$hfTimeZoneFormatter"](L),-1==x.indexOf("UTC")&&(x=E()(f).format("MM-DD HH:mm")))}catch(e){}var A={cn:[h,x].join(" "),en:[i,x].join(" ")};return Object(r["a"])(Object(r["a"])(Object(r["a"])({},t),g),{},{html:w,name:A,_type:"typhoon"})}))},j=function(t){return t&&t.hasOwnProperty("__text")?t.__text:t},C=function(t){var e=[];for(var n in t){var i=t[n],r=i||{},o=r.typhoon,a=o||{},s=a.position,l=void 0===s?[]:s;if(l=P(l),l&&l.map){var c=R(l);e.push({latlngs:c})}}return e},N=function(t,e,n){return t.map((function(t){var i=t.forelat,o=t.forelon,a=t.forepressure,s=(t.forespeed,t.forecasttime),l=t.forespeedmps,c=t.forelevel,h={lat:1*i,lon:1*o,lng:1*o},u=Object(M["c"])(h),d=u[0],p=u[1],f=j(a)||"-",m=[];m.push(["来源:",e]),m.push(["时间:",D(s)]),m.push(["气压:","-"!=f?f+" 百帕":f]),!I(l)&&m.push(["风速:",l+" 米/秒"]),!I(c)&&m.push(["风级:",c+" 级"]),m.push(["纬度:",d]),m.push(["经度:",p]);var g=Object(k["k"])(m),y=[];y.push(["Source:",e]),y.push(["Time:",D(s)]),y.push(["Press:","-"!=f?f+" hPa":f]),!I(l)&&y.push(["Wind:",l+" m/s"]),!I(c)&&y.push(["Scale:",c]),y.push(["Lat:",d]),y.push(["Lon:",p]);var _=Object(k["k"])(y),v={cn:g,en:_},b=0==n;if(b){m=[],e&&m.push(["来源:",e]),m.push(["纬度:",d]),m.push(["经度:",p]);var w=Object(k["k"])(m);y=[],e&&y.push(["Source:",e]),y.push(["Lat:",d]),y.push(["Lon:",p]);var x=Object(k["k"])(y);v={cn:w,en:x}}var L="typhoon";return b&&(L=""),Object(r["a"])(Object(r["a"])(Object(r["a"])({},t),h),{},{strlat:u[0],strlon:u[1],country:e,xuhao:n,html:v,_type:L})}))},z=function(t,e){var n=e||{},i=n||{},r=i.xuhao,o=i.country,a=[];for(var s in t){var l=t[s],c=l||{},h=c.list,u=h||{},d=u.forecast,p=void 0===d?[]:d;p=P(p),p.forEach((function(t){var e=t.country,n=t.positions,i=t.xuhao,s=n||{},l=s.forecastposition,c=!0;if(l=P(l),l&&l.map&&(r&&o&&(e==o&&r==i||(c=!1)),c)){var h=N(l,e,i);a.push({latlngs:h})}}))}return a},G="/typhoon/getcurrenttyphoonlist/token",B="/typhoon/gettyphoonposition/token",Z="/typhoon/gettyphoonforecast/token",U=function(t){var e=t||{},n=e.circle7,i=e.circle10,r=e.lat,o=e.level,a=e.lon,s=e.movedirection,l=e.movespeed,c=e.name,h=e.pressure,u=e.src,d=e.strong,p=e.updatetime,f=e.windspeed,m=e.xuhao;return{_circle7:n,_circle10:i,_lat:r,_level:o,_lon:a,_movedirection:s,_movespeed:l,_name:c,_pressure:h,_src:u,_strong:d,_updatetime:p,_windspeed:f,_xuhao:m}},Y=function(t){var e=t||{},n=e.country,i=e.forecastPosition,r=e.xuhao;return{country:n,positions:{forecastposition:i},xuhao:r}},W=function(t,e,n){var i=t.getShipApp(),r=function(t,e){var n=Object(a["b"])(B),r=t.map((function(t){return Object(o["a"])(n,{usertoken:e,xuhao:t})}));L.a.all(r).then(L.a.spread((function(){for(var e,n=arguments,r={},o=0;o=4096)e+=12,n/=4096;while(n>=2)e+=1,n/=2;return e},y=function(t,e,n){var i=-1,r=n;while(++i<6)r+=e*t[i],t[i]=r%1e7,r=u(r/1e7)},_=function(t,e){var n=6,i=0;while(--n>=0)i+=t[n],t[n]=u(i/e),i=i%e*1e7},v=function(t){var e=6,n="";while(--e>=0)if(""!==n||0===e||0!==t[e]){var i=h(t[e]);n=""===n?i:n+d("0",7-i.length)+i}return n},b=l((function(){return"0.000"!==f(8e-5,3)||"1"!==f(.9,0)||"1.25"!==f(1.255,2)||"1000000000000000128"!==f(0xde0b6b3a7640080,0)}))||!l((function(){f({})}));i({target:"Number",proto:!0,forced:b},{toFixed:function(t){var e,n,i,r,s=a(this),l=o(t),u=[0,0,0,0,0,0],f="",b="0";if(l<0||l>20)throw new c("Incorrect fraction digits");if(s!==s)return"NaN";if(s<=-1e21||s>=1e21)return h(s);if(s<0&&(f="-",s=-s),s>1e-21)if(e=g(s*m(2,69,1))-69,n=e<0?s*m(2,-e,1):s/m(2,e,1),n*=4503599627370496,e=52-e,e>0){y(u,0,n),i=l;while(i>=7)y(u,1e7,0),i-=7;y(u,m(10,i,1),0),i=e-1;while(i>=23)_(u,1<<23),i-=23;_(u,1<0?(r=b.length,b=f+(r<=l?"0."+d("0",l-r)+b:p(b,0,r-l)+"."+p(b,r-l))):b=f+b,b}})},b6b7:function(t,e,n){"use strict";var i=n("ebb5"),r=n("4840"),o=i.aTypedArrayConstructor,a=i.getTypedArrayConstructor;t.exports=function(t){return o(r(t,a(t)))}},b6d6:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAABUCAYAAADu10VkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAP9GlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY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ADBdE+qRRx5+Yf68eVujsVg88P3ef3PGoBhDjhBQUl4YP387XZxpbUZLdTVad+1C24EDcP/8J4TJboR+EiR91NdVfXbu3G/sxPmpRPDQnmk6Vo3hcOIKxJS2i3va7cIHS83omtDk46tWfj+RSHyGiPDxopQCEUEmkwja2nqni8uuxH0/AIQCYwxFRUV1K1csfYrBxI9+vPN+KZXwfxMYpq27xhLdDU+HQj2tOO0mAQKL2La7vHxZxeS7vrQ5Pz8/cR7k0p5nwMdW5hltQ3meh8LCQcdXrFz+pFIB2/mTn39LSiW8/wgtrV34aAbUURKQYHm5uefKyh7bNnXqlBfCUCaCIIBt21fcVsb7Yym4wvo1q1euAHG8+stXZ3tuaKi3lIWQAIDl5+d3Pfbooy9NmXLXFgCJ/kbf3w0MAFzXw+DBg+NPbXhyBfc6w9+89ZdZbe2deQSgqKiofcmiRS9PvOOOrUQUv9ovYa56485JOhg69Nr46vkLV989+a4/a7oB27LwwNy5/zlx4sRtIGq8GqfOi2W/7clQWbBMlQXLVFmwTJUFy1RZsEyVBctUWbBMlQXLVFmwTJUFy1RZsEz1v9kBidJxL3l6AAAAAElFTkSuQmCC"},b727:function(t,e,n){"use strict";var i=n("0366"),r=n("e330"),o=n("44ad"),a=n("7b0b"),s=n("07fa"),l=n("65f0"),c=r([].push),h=function(t){var e=1===t,n=2===t,r=3===t,h=4===t,u=6===t,d=7===t,p=5===t||u;return function(f,m,g,y){for(var _,v,b=a(f),w=o(b),x=s(w),L=i(m,g),M=0,k=y||l,T=e?k(f,x):n||d?k(f,0):void 0;x>M;M++)if((p||M in w)&&(_=w[M],v=L(_,M,b),t))if(e)T[M]=v;else if(v)switch(t){case 3:return!0;case 5:return _;case 6:return M;case 2:c(T,_)}else switch(t){case 4:return!1;case 7:c(T,_)}return u?-1:r||h?h:T}};t.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}},b760:function(t,e,n){var i=n("872a"),r=n("9638");function o(t,e,n){(void 0!==n&&!r(t[e],n)||void 0===n&&!(e in t))&&i(t,e,n)}t.exports=o},b86b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"),n("d6e6"))})(0,(function(t){return function(){var e=t,n=e.x64,i=n.Word,r=n.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new r.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),t.SHA384}))},b86c:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},b980:function(t,e,n){"use strict";var i=n("d039"),r=n("5c6c");t.exports=!i((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},badf:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADOElEQVRYR82WTWgTQRTHf7ObbJJNBUH8AL1UhKKiVkT8wEo9KBREUKwHBaUieqmIRxHEggiC4OdN0Cropa2Xil6EilZp0YMiKqJgwWJFRaQ2m49tdmSa1E5jNtlEsQ3ksDvz/u837715bwVT/BNT7J+/ApDULIHssCA5WO1BqgaQRBa5mO+UYwunap2qDZNEG02MHgWQxdsUI/WgmihUDJCmZrHA2wCo/96cU3kTeArGA4vEi0pAAgOkiG8xkG3A2jIO+iXybIRkZxCQQABp4scE8rQuKKBX5qKgKvmJhPUFDi9bOIfLQZQFyGBLTWQA5DmJ0eORnaXXgIn5w8NrNBCngHgerDuMs60UREmANHaXgB15gfYwTquAhHr2K8IUM+oE2XsCaseqA7EnQuKWH4QvwCjx3V6uuFSQH1kkNuoiqge4eK/UuzDGUsHIa33dxR6SMC8XCa8hTKq3GIQvQAa7D1gDfAsTqhMMfy8UUFGIIgcF6feFay7RBonxMP++z8JZFxggQ3wFyOfKwEMejZI8X66Yiq1nsNuBfblUGEsijLwp3Fc0AhliR0DknYqVFokxmEp/o9hbPejO2x20cK6UBFB5TTE6x0QcALFHXa9RvOPKKEroS2Ge/WZBhnh9luxMZWdiXASWATeyeNeiiPf67PgdAb23+51Ub7l+s0C/HX46+uzQAGILXMTHUmHO4tXGSA3kcjqxXxcMcpCiAOOOcyf4MwUmImmR7A9SB+OpLJaCwqE1vYpw/HRTfg0ViNaIEh7mqig/307uhMRc7BaJ/Boh2VGYmhR2kwF3q2pEyihNbKdAjAlL+BDBWag7SRNfLpBjs18vzokoThpiqy2cZ4E7oSZyCWhVzwI+g7crTOqRevYbRpObmIITm2Mk7vsVb9lx7GLflrBdE7huQKeLN6KP4xCmKZG7gf3jeyW0RXBOlro5ZQGUsfoaMpFXJczXxF7mO5x6pVp1veb4kwmHQjh3yl3bQAC5OojPdZEngGZgdjFhCYMGoiuEPCNwhso5z6c2yLbJe9LEmg1Ei4Sm/EqHQF4Ik3xcqVrgCBQKT9ln+USei8+C/xaBSh1VfQ3/laNpC/ALUSBDMOLb5sgAAAAASUVORK5CYII="},bb2f:function(t,e,n){"use strict";var i=n("d039");t.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bbc0:function(t,e,n){var i=n("6044"),r="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function s(t){var e=this.__data__;if(i){var n=e[t];return n===r?void 0:n}return a.call(e,t)?e[t]:void 0}t.exports=s},bc3a:function(t,e,n){t.exports=n("cee4")},bcbf:function(t,e,n){"use strict";var i=n("f5df");t.exports=function(t){var e=i(t);return"BigInt64Array"===e||"BigUint64Array"===e}},bcc9:function(t,n,i){"use strict";var r=i("5530"),o=(i("4de4"),i("d81d"),i("14d9"),i("d3b7"),i("159b"),i("1860")),a=i("9649"),s=i("66bf"),l=i("6ab7"),c=i("9587"),h={HF_CLICK_ON_MAP:"hf.click.on.map"};window.___hf_sdk=!0;var u=[0,0,0,0,0,0,0,0,0,0],d=function(){var t=[],e=u.filter((function(t){return 0!=t})),n={};return e.forEach((function(e){var i=e||{},o=i.list,a=void 0===o?[]:o;a.forEach((function(e){var i=e||{},o=i.mmsi;if(void 0!=o)if(void 0==n[o])n[o]=t.length,t.push(Object(r["a"])({},e));else{var a=n[o],s=t[a];t[a]=Object(r["a"])(Object(r["a"])({},e),s)}}))})),{list:t}},p=function(t){var e=t||{},n=e.list,i=void 0===n?[]:n,a=e._zindex,s=void 0===a?o["a"]:a;u[s]={list:i.map((function(t){return Object(r["a"])({},t)}))};var l=d();return l},f=function(t,n){var i=t,o=t.getShipApp();o.setChinaMapTransform(!0);var u=t.getMap();u.attributionControl.addAttribution('Licensed by ©
hiFleet.com'),u.addLayer(o),o.stageToSdk(),o.setDrawShipsOptions({drawShipsOnZoomLevel:0,showLabelOnZoomLevel:0});var d="5.3.491";t.mapChange({key:a["a"].MAP_GLOBAL,is_sdk:!0});var f="hf.click.on.map",m="kai.event.click.vessel";return u.on(m,(function(t){var e=t.originalEvent[m]||{},n=Object(r["a"])(Object(r["a"])({},t),{},{item:e});u.fireEvent(f,n)})),console.log("com.hifleet.version:"+d),{version:d,EVENT:h,getBBox:function(){return t.getBBox()},getZXY:function(){return Object(s["c"])(u)},setLanguageToEN:function(){t.setLanguageToEN()},setLanguageToCN:function(){t.setLanguageToCN()},setSeaMapMode:function(){o.setChinaMapTransform(!1)},setGlobalMapMode:function(){o.setChinaMapTransform(!0)},getLatLngOnMap:function(t){var e=o.getChinaMapTransform();return e?c["e"](t):t},getMap:function(){return u},drawIconMarker:function(t){o.setPointInfoMarkers(t)},drawShip:function(t){var e=p(t);o.setShips(e)},drawTrajectory:function(t){var e=t||{},n=e.showLabel,i=void 0!==n&&n,a=e.showArrow,s=void 0!==a&&a,l=e.showPoint,c=void 0!==l&&l,h=e.showLine,u=void 0===h||h,d=e.showShipStopRecord,p=void 0!==d&&d,f=e.style,m=void 0===f?{}:f;o.setTrajectoryOptions({showLabel:i,showArrow:s,showPoint:c,showLine:u,showShipStopRecord:p});var g=Object(r["a"])({trajectoryLowSpeedLineColor:"#7bed9f",trajectoryLineColor:"blue",anchorLineColor:"blue"},m);o.setTrajectoryStyle(g),o.setTrajectory(t)},getMeasureDistanceTool:function(t){return i.getRuler(t)},getMeasureAreaTool:function(){return i.getAddArea()},getPointMarkerTool:function(t){return i.getAddMarker(t)},drawPointMarker:function(t){i.updateMarkerGroup(t)},getLineMarkerTool:function(t){return i.getAddLineMarker(t)},drawLineMarker:function(t){i.updateLineMarkerGroup(t)},getAreaMarkerTool:function(t){return i.getAddAreaMarker(t)},drawAreaMarker:function(t){if(t&&t.hasOwnProperty("list")&&t.list.map){var n=t.list.map((function(t){try{t.hasOwnProperty("latlngs")&&(t.labelCenter=l["a"](t.latlngs))}catch(e){console.error(e)}return t}));t.list=n}i.updateAreaMarkerGroup(t)}}};n["a"]={capsulate:f}},be8e:function(t,e,n){"use strict";var i=n("fc1b"),r=1.1920928955078125e-7,o=34028234663852886e22,a=11754943508222875e-54;t.exports=Math.fround||function(t){return i(t,r,o,a)}},bf19:function(t,e,n){"use strict";var i=n("23e7"),r=n("c65b");i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}})},c04e:function(t,e,n){"use strict";var i=n("c65b"),r=n("861d"),o=n("d9b5"),a=n("dc4a"),s=n("485a"),l=n("b622"),c=TypeError,h=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,l=a(t,h);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!r(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},c05f:function(t,e,n){var i=n("7b97"),r=n("1310");function o(t,e,n,a,s){return t===e||(null==t||null==e||!r(t)&&!r(e)?t!==t&&e!==e:i(t,e,n,a,o,s))}t.exports=o},c098:function(t,e){var n=9007199254740991,i=/^(?:0|[1-9]\d*)$/;function r(t,e){var r=typeof t;return e=null==e?n:e,!!e&&("number"==r||"symbol"!=r&&i.test(t))&&t>-1&&t%1==0&&t>>8^255&r^99,o[n]=r,a[r]=n;var m=t[n],g=t[m],y=t[g],_=257*t[r]^16843008*r;s[n]=_<<24|_>>>8,l[n]=_<<16|_>>>16,c[n]=_<<8|_>>>24,h[n]=_;_=16843009*y^65537*g^257*m^16843008*n;u[r]=_<<24|_>>>8,d[r]=_<<16|_>>>16,p[r]=_<<8|_>>>24,f[r]=_,n?(n=m^t[t[t[y^m]]],i^=t[t[i]]):n=i=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=i.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,i=this._nRounds=n+6,r=4*(i+1),a=this._keySchedule=[],s=0;s6&&s%n==4&&(h=o[h>>>24]<<24|o[h>>>16&255]<<16|o[h>>>8&255]<<8|o[255&h]):(h=h<<8|h>>>24,h=o[h>>>24]<<24|o[h>>>16&255]<<16|o[h>>>8&255]<<8|o[255&h],h^=m[s/n|0]<<24),a[s]=a[s-n]^h);for(var l=this._invKeySchedule=[],c=0;c>>24]]^d[o[h>>>16&255]]^p[o[h>>>8&255]]^f[o[255&h]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,l,c,h,o)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,u,d,p,f,a);n=t[e+1];t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,i,r,o,a,s){for(var l=this._nRounds,c=t[e]^n[0],h=t[e+1]^n[1],u=t[e+2]^n[2],d=t[e+3]^n[3],p=4,f=1;f>>24]^r[h>>>16&255]^o[u>>>8&255]^a[255&d]^n[p++],g=i[h>>>24]^r[u>>>16&255]^o[d>>>8&255]^a[255&c]^n[p++],y=i[u>>>24]^r[d>>>16&255]^o[c>>>8&255]^a[255&h]^n[p++],_=i[d>>>24]^r[c>>>16&255]^o[h>>>8&255]^a[255&u]^n[p++];c=m,h=g,u=y,d=_}m=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++],g=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^n[p++],y=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^n[p++],_=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^n[p++];t[e]=m,t[e+1]=g,t[e+2]=y,t[e+3]=_},keySize:8});e.AES=i._createHelper(g)}(),t.AES}))},c1ac:function(t,e,n){"use strict";var i=n("ebb5"),r=n("b727").filter,o=n("1448"),a=i.aTypedArray,s=i.exportTypedArrayMethod;s("filter",(function(t){var e=r(a(this),t,arguments.length>1?arguments[1]:void 0);return o(this,e)}))},c1bc:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Base64url={stringify:function(t,e){void 0===e&&(e=!0);var n=t.words,i=t.sigBytes,r=e?this._safe_map:this._map;t.clamp();for(var o=[],a=0;a>>2]>>>24-a%4*8&255,l=n[a+1>>>2]>>>24-(a+1)%4*8&255,c=n[a+2>>>2]>>>24-(a+2)%4*8&255,h=s<<16|l<<8|c,u=0;u<4&&a+.75*u>>6*(3-u)&63));var d=r.charAt(64);if(d)while(o.length%4)o.push(d);return o.join("")},parse:function(t,e){void 0===e&&(e=!0);var n=t.length,i=e?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a>>6-a%4*2,c=s|l;r[o>>>2]|=c<<24-o%4*8,o++}return i.create(r,o)}}(),t.enc.Base64url}))},c1c9:function(t,e,n){var i=n("a454"),r=n("f3c1"),o=r(i);t.exports=o},c1df:function(t,n,i){(function(t){var n;//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com (function(e,n){t.exports=n()})(0,(function(){"use strict";var i,r;function o(){return i.apply(null,arguments)}function a(t){i=t}function s(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function l(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function h(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(c(t,e))return!1;return!0}function u(t){return void 0===t}function d(t){return"number"===typeof t||"[object Number]"===Object.prototype.toString.call(t)}function p(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function f(t,e){var n,i=[],r=t.length;for(n=0;n>>0;for(e=0;e0)for(n=0;n=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var z=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,G=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},Z={};function U(t,e,n,i){var r=i;"string"===typeof i&&(r=function(){return this[i]()}),t&&(Z[t]=r),e&&(Z[e[0]]=function(){return N(r.apply(this,arguments),e[1],e[2])}),n&&(Z[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function Y(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function W(t){var e,n,i=t.match(z);for(e=0,n=i.length;e=0&&G.test(t))t=t.replace(G,i),G.lastIndex=0,n-=1;return t}var Q={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function H(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(z).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var J="Invalid date";function X(){return this._invalidDate}var K="%d",q=/\d{1,2}/;function $(t){return this._ordinal.replace("%d",t)}var tt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function et(t,e,n,i){var r=this._relativeTime[n];return O(r)?r(t,e,n,i):r.replace(/%d/i,t)}function nt(t,e){var n=this._relativeTime[t>0?"future":"past"];return O(n)?n(e):n.replace(/%s/i,e)}var it={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function rt(t){return"string"===typeof t?it[t]||it[t.toLowerCase()]:void 0}function ot(t){var e,n,i={};for(n in t)c(t,n)&&(e=rt(n),e&&(i[e]=t[n]));return i}var at={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function st(t){var e,n=[];for(e in t)c(t,e)&&n.push({unit:e,priority:at[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}var lt,ct=/\d/,ht=/\d\d/,ut=/\d{3}/,dt=/\d{4}/,pt=/[+-]?\d{6}/,ft=/\d\d?/,mt=/\d\d\d\d?/,gt=/\d\d\d\d\d\d?/,yt=/\d{1,3}/,_t=/\d{1,4}/,vt=/[+-]?\d{1,6}/,bt=/\d+/,wt=/[+-]?\d+/,xt=/Z|[+-]\d\d:?\d\d/gi,Lt=/Z|[+-]\d\d(?::?\d\d)?/gi,Mt=/[+-]?\d+(\.\d{1,3})?/,kt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Tt=/^[1-9]\d?/,At=/^([1-9]\d|\d)/;function Et(t,e,n){lt[t]=O(e)?e:function(t,i){return t&&n?n:e}}function St(t,e){return c(lt,t)?lt[t](e._strict,e._locale):new RegExp(Pt(t))}function Pt(t){return Ot(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r})))}function Ot(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Dt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function It(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=Dt(e)),n}lt={};var Rt={};function jt(t,e){var n,i,r=e;for("string"===typeof t&&(t=[t]),d(e)&&(r=function(t,n){n[e]=It(t)}),i=t.length,n=0;n68?1900:2e3)};var Jt,Xt=qt("FullYear",!0);function Kt(){return zt(this.year())}function qt(t,e){return function(n){return null!=n?(te(this,t,n),o.updateOffset(this,e),this):$t(this,t)}}function $t(t,e){if(!t.isValid())return NaN;var n=t._d,i=t._isUTC;switch(e){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function te(t,e,n){var i,r,o,a,s;if(t.isValid()&&!isNaN(n)){switch(i=t._d,r=t._isUTC,e){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}o=n,a=t.month(),s=t.date(),s=29!==s||1!==a||zt(o)?s:28,r?i.setUTCFullYear(o,a,s):i.setFullYear(o,a,s)}}function ee(t){return t=rt(t),O(this[t])?this[t]():this}function ne(t,e){if("object"===typeof t){t=ot(t);var n,i=st(t),r=i.length;for(n=0;n=0?(s=new Date(t+400,e,n,i,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,r,o,a),s}function we(t){var e,n;return t<100&&t>=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function xe(t,e,n){var i=7+e-n,r=(7+we(t,0,i).getUTCDay()-e)%7;return-r+i-1}function Le(t,e,n,i,r){var o,a,s=(7+n-i)%7,l=xe(t,i,r),c=1+7*(e-1)+s+l;return c<=0?(o=t-1,a=Ht(o)+c):c>Ht(t)?(o=t+1,a=c-Ht(t)):(o=t,a=c),{year:o,dayOfYear:a}}function Me(t,e,n){var i,r,o=xe(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?(r=t.year()-1,i=a+ke(r,e,n)):a>ke(t.year(),e,n)?(i=a-ke(t.year(),e,n),r=t.year()+1):(r=t.year(),i=a),{week:i,year:r}}function ke(t,e,n){var i=xe(t,e,n),r=xe(t+1,e,n);return(Ht(t)-i+r)/7}function Te(t){return Me(t,this._week.dow,this._week.doy).week}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),Et("w",ft,Tt),Et("ww",ft,ht),Et("W",ft,Tt),Et("WW",ft,ht),Ct(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=It(t)}));var Ae={dow:0,doy:6};function Ee(){return this._week.dow}function Se(){return this._week.doy}function Pe(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Oe(t){var e=Me(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function De(t,e){return"string"!==typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"===typeof t?t:null):parseInt(t,10)}function Ie(t,e){return"string"===typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Re(t,e){return t.slice(e,7).concat(t.slice(0,e))}U("d",0,"do","day"),U("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),U("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),U("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),Et("d",ft),Et("e",ft),Et("E",ft),Et("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Et("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Et("dddd",(function(t,e){return e.weekdaysRegex(t)})),Ct(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:_(n).invalidWeekday=t})),Ct(["d","e","E"],(function(t,e,n,i){e[i]=It(t)}));var je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ce="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ne="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ze=kt,Ge=kt,Be=kt;function Ze(t,e){var n=s(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Re(n,this._week.dow):t?n[t.day()]:n}function Ue(t){return!0===t?Re(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Ye(t){return!0===t?Re(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function We(t,e,n){var i,r,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=g([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?(r=Jt.call(this._weekdaysParse,a),-1!==r?r:null):"ddd"===e?(r=Jt.call(this._shortWeekdaysParse,a),-1!==r?r:null):(r=Jt.call(this._minWeekdaysParse,a),-1!==r?r:null):"dddd"===e?(r=Jt.call(this._weekdaysParse,a),-1!==r?r:(r=Jt.call(this._shortWeekdaysParse,a),-1!==r?r:(r=Jt.call(this._minWeekdaysParse,a),-1!==r?r:null))):"ddd"===e?(r=Jt.call(this._shortWeekdaysParse,a),-1!==r?r:(r=Jt.call(this._weekdaysParse,a),-1!==r?r:(r=Jt.call(this._minWeekdaysParse,a),-1!==r?r:null))):(r=Jt.call(this._minWeekdaysParse,a),-1!==r?r:(r=Jt.call(this._weekdaysParse,a),-1!==r?r:(r=Jt.call(this._shortWeekdaysParse,a),-1!==r?r:null)))}function Fe(t,e,n){var i,r,o;if(this._weekdaysParseExact)return We.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=g([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function Ve(t){if(!this.isValid())return null!=t?this:NaN;var e=$t(this,"Day");return null!=t?(t=De(t,this.localeData()),this.add(t-e,"d")):e}function Qe(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function He(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ie(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Je(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||qe.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=ze),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xe(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||qe.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ge),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ke(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||qe.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Be),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function qe(){function t(t,e){return e.length-t.length}var e,n,i,r,o,a=[],s=[],l=[],c=[];for(e=0;e<7;e++)n=g([2e3,1]).day(e),i=Ot(this.weekdaysMin(n,"")),r=Ot(this.weekdaysShort(n,"")),o=Ot(this.weekdays(n,"")),a.push(i),s.push(r),l.push(o),c.push(i),c.push(r),c.push(o);a.sort(t),s.sort(t),l.sort(t),c.sort(t),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $e(){return this.hours()%12||12}function tn(){return this.hours()||24}function en(t,e){U(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function nn(t,e){return e._meridiemParse}function rn(t){return"p"===(t+"").toLowerCase().charAt(0)}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,$e),U("k",["kk",2],0,tn),U("hmm",0,0,(function(){return""+$e.apply(this)+N(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+$e.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),en("a",!0),en("A",!1),Et("a",nn),Et("A",nn),Et("H",ft,At),Et("h",ft,Tt),Et("k",ft,Tt),Et("HH",ft,ht),Et("hh",ft,ht),Et("kk",ft,ht),Et("hmm",mt),Et("hmmss",gt),Et("Hmm",mt),Et("Hmmss",gt),jt(["H","HH"],Ut),jt(["k","kk"],(function(t,e,n){var i=It(t);e[Ut]=24===i?0:i})),jt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),jt(["h","hh"],(function(t,e,n){e[Ut]=It(t),_(n).bigHour=!0})),jt("hmm",(function(t,e,n){var i=t.length-2;e[Ut]=It(t.substr(0,i)),e[Yt]=It(t.substr(i)),_(n).bigHour=!0})),jt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[Ut]=It(t.substr(0,i)),e[Yt]=It(t.substr(i,2)),e[Wt]=It(t.substr(r)),_(n).bigHour=!0})),jt("Hmm",(function(t,e,n){var i=t.length-2;e[Ut]=It(t.substr(0,i)),e[Yt]=It(t.substr(i))})),jt("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[Ut]=It(t.substr(0,i)),e[Yt]=It(t.substr(i,2)),e[Wt]=It(t.substr(r))}));var on=/[ap]\.?m?\.?/i,an=qt("Hours",!0);function sn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var ln,cn={calendar:j,longDateFormat:Q,invalidDate:J,ordinal:K,dayOfMonthOrdinalParse:q,relativeTime:tt,months:oe,monthsShort:ae,week:Ae,weekdays:je,weekdaysMin:Ne,weekdaysShort:Ce,meridiemParse:on},hn={},un={};function dn(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n0){if(i=gn(r.slice(0,e).join("-")),i)return i;if(n&&n.length>=e&&dn(r,n)>=e-1)break;e--}o++}return ln}function mn(t){return!(!t||!t.match("^[^/\\\\]*$"))}function gn(i){var r=null;if(void 0===hn[i]&&"undefined"!==typeof t&&t&&t.exports&&mn(i))try{r=ln._abbr,n,function(){var t=new Error("Cannot find module 'undefined'");throw t.code="MODULE_NOT_FOUND",t}(),yn(r)}catch(e){hn[i]=null}return hn[i]}function yn(t,e){var n;return t&&(n=u(e)?bn(t):_n(t,e),n?ln=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ln._abbr}function _n(t,e){if(null!==e){var n,i=cn;if(e.abbr=t,null!=hn[t])P("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=hn[t]._config;else if(null!=e.parentLocale)if(null!=hn[e.parentLocale])i=hn[e.parentLocale]._config;else{if(n=gn(e.parentLocale),null==n)return un[e.parentLocale]||(un[e.parentLocale]=[]),un[e.parentLocale].push({name:t,config:e}),null;i=n._config}return hn[t]=new R(I(i,e)),un[t]&&un[t].forEach((function(t){_n(t.name,t.config)})),yn(t),hn[t]}return delete hn[t],null}function vn(t,e){if(null!=e){var n,i,r=cn;null!=hn[t]&&null!=hn[t].parentLocale?hn[t].set(I(hn[t]._config,e)):(i=gn(t),null!=i&&(r=i._config),e=I(r,e),null==i&&(e.abbr=t),n=new R(e),n.parentLocale=hn[t],hn[t]=n),yn(t)}else null!=hn[t]&&(null!=hn[t].parentLocale?(hn[t]=hn[t].parentLocale,t===yn()&&yn(t)):null!=hn[t]&&delete hn[t]);return hn[t]}function bn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ln;if(!s(t)){if(e=gn(t),e)return e;t=[t]}return fn(t)}function wn(){return E(hn)}function xn(t){var e,n=t._a;return n&&-2===_(t).overflow&&(e=n[Bt]<0||n[Bt]>11?Bt:n[Zt]<1||n[Zt]>re(n[Gt],n[Bt])?Zt:n[Ut]<0||n[Ut]>24||24===n[Ut]&&(0!==n[Yt]||0!==n[Wt]||0!==n[Ft])?Ut:n[Yt]<0||n[Yt]>59?Yt:n[Wt]<0||n[Wt]>59?Wt:n[Ft]<0||n[Ft]>999?Ft:-1,_(t)._overflowDayOfYear&&(eZt)&&(e=Zt),_(t)._overflowWeeks&&-1===e&&(e=Vt),_(t)._overflowWeekday&&-1===e&&(e=Qt),_(t).overflow=e),t}var Ln=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],An=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((-?\d+)/i,Sn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Pn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function On(t){var e,n,i,r,o,a,s=t._i,l=Ln.exec(s)||Mn.exec(s),c=Tn.length,h=An.length;if(l){for(_(t).iso=!0,e=0,n=c;eHt(o)||0===t._dayOfYear)&&(_(t)._overflowDayOfYear=!0),n=we(o,0,t._dayOfYear),t._a[Bt]=n.getUTCMonth(),t._a[Zt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=i[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Ut]&&0===t._a[Yt]&&0===t._a[Wt]&&0===t._a[Ft]&&(t._nextDay=!0,t._a[Ut]=0),t._d=(t._useUTC?we:be).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Ut]=24),t._w&&"undefined"!==typeof t._w.d&&t._w.d!==r&&(_(t).weekdayMismatch=!0)}}function Un(t){var e,n,i,r,o,a,s,l,c;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(o=1,a=4,n=Gn(e.GG,t._a[Gt],Me(Kn(),1,4).year),i=Gn(e.W,1),r=Gn(e.E,1),(r<1||r>7)&&(l=!0)):(o=t._locale._week.dow,a=t._locale._week.doy,c=Me(Kn(),o,a),n=Gn(e.gg,t._a[Gt],c.year),i=Gn(e.w,c.week),null!=e.d?(r=e.d,(r<0||r>6)&&(l=!0)):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o),i<1||i>ke(n,o,a)?_(t)._overflowWeeks=!0:null!=l?_(t)._overflowWeekday=!0:(s=Le(n,i,r,o,a),t._a[Gt]=s.year,t._dayOfYear=s.dayOfYear)}function Yn(t){if(t._f!==o.ISO_8601)if(t._f!==o.RFC_2822){t._a=[],_(t).empty=!0;var e,n,i,r,a,s,l,c=""+t._i,h=c.length,u=0;for(i=V(t._f,t._locale).match(z)||[],l=i.length,e=0;e0&&_(t).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),u+=n.length),Z[r]?(n?_(t).empty=!1:_(t).unusedTokens.push(r),Nt(r,n,t)):t._strict&&!n&&_(t).unusedTokens.push(r);_(t).charsLeftOver=h-u,c.length>0&&_(t).unusedInput.push(c),t._a[Ut]<=12&&!0===_(t).bigHour&&t._a[Ut]>0&&(_(t).bigHour=void 0),_(t).parsedDateParts=t._a.slice(0),_(t).meridiem=t._meridiem,t._a[Ut]=Wn(t._locale,t._a[Ut],t._meridiem),s=_(t).era,null!==s&&(t._a[Gt]=t._locale.erasConvertYear(s,t._a[Gt])),Zn(t),xn(t)}else Nn(t);else On(t)}function Wn(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function Fn(t){var e,n,i,r,o,a,s=!1,l=t._f.length;if(0===l)return _(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis?this:t:b()}));function ti(t,e){var n,i;if(1===e.length&&s(e[0])&&(e=e[0]),!e.length)return Kn();for(n=e[0],i=1;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Mi(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t,e={};return L(e,this),e=Hn(e),e._a?(t=e._isUTC?g(e._a):Kn(e._a),this._isDSTShifted=this.isValid()&&ui(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ki(){return!!this.isValid()&&!this._isUTC}function Ti(){return!!this.isValid()&&this._isUTC}function Ai(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}o.updateOffset=function(){};var Ei=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Si=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pi(t,e){var n,i,r,o=t,a=null;return ci(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:d(t)||!isNaN(+t)?(o={},e?o[e]=+t:o.milliseconds=+t):(a=Ei.exec(t))?(n="-"===a[1]?-1:1,o={y:0,d:It(a[Zt])*n,h:It(a[Ut])*n,m:It(a[Yt])*n,s:It(a[Wt])*n,ms:It(hi(1e3*a[Ft]))*n}):(a=Si.exec(t))?(n="-"===a[1]?-1:1,o={y:Oi(a[2],n),M:Oi(a[3],n),w:Oi(a[4],n),d:Oi(a[5],n),h:Oi(a[6],n),m:Oi(a[7],n),s:Oi(a[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(r=Ii(Kn(o.from),Kn(o.to)),o={},o.ms=r.milliseconds,o.M=r.months),i=new li(o),ci(t)&&c(t,"_locale")&&(i._locale=t._locale),ci(t)&&c(t,"_isValid")&&(i._isValid=t._isValid),i}function Oi(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Di(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ii(t,e){var n;return t.isValid()&&e.isValid()?(e=mi(e,t),t.isBefore(e)?n=Di(t,e):(n=Di(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ri(t,e){return function(n,i){var r,o;return null===i||isNaN(+i)||(P(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),r=Pi(n,i),ji(this,r,t),this}}function ji(t,e,n,i){var r=e._milliseconds,a=hi(e._days),s=hi(e._months);t.isValid()&&(i=null==i||i,s&&fe(t,$t(t,"Month")+s*n),a&&te(t,"Date",$t(t,"Date")+a*n),r&&t._d.setTime(t._d.valueOf()+r*n),i&&o.updateOffset(t,a||s))}Pi.fn=li.prototype,Pi.invalid=si;var Ci=Ri(1,"add"),Ni=Ri(-1,"subtract");function zi(t){return"string"===typeof t||t instanceof String}function Gi(t){return k(t)||p(t)||zi(t)||d(t)||Zi(t)||Bi(t)||null===t||void 0===t}function Bi(t){var e,n,i=l(t)&&!h(t),r=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=o.length;for(e=0;en.valueOf():n.valueOf()9999?F(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(n,"Z")):F(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function nr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),t="["+r+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=o+'[")]',this.format(t+e+n+i)}function ir(t){t||(t=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var e=F(this,t);return this.localeData().postformat(e)}function rr(t,e){return this.isValid()&&(k(t)&&t.isValid()||Kn(t).isValid())?Pi({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function or(t){return this.from(Kn(),t)}function ar(t,e){return this.isValid()&&(k(t)&&t.isValid()||Kn(t).isValid())?Pi({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function sr(t){return this.to(Kn(),t)}function lr(t){var e;return void 0===t?this._locale._abbr:(e=bn(t),null!=e&&(this._locale=e),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var cr=A("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function hr(){return this._locale}var ur=1e3,dr=60*ur,pr=60*dr,fr=3506328*pr;function mr(t,e){return(t%e+e)%e}function gr(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-fr:new Date(t,e,n).valueOf()}function yr(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-fr:Date.UTC(t,e,n)}function _r(t){var e,n;if(t=rt(t),void 0===t||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?yr:gr,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=mr(e+(this._isUTC?0:this.utcOffset()*dr),pr);break;case"minute":e=this._d.valueOf(),e-=mr(e,dr);break;case"second":e=this._d.valueOf(),e-=mr(e,ur);break}return this._d.setTime(e),o.updateOffset(this,!0),this}function vr(t){var e,n;if(t=rt(t),void 0===t||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?yr:gr,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=pr-mr(e+(this._isUTC?0:this.utcOffset()*dr),pr)-1;break;case"minute":e=this._d.valueOf(),e+=dr-mr(e,dr)-1;break;case"second":e=this._d.valueOf(),e+=ur-mr(e,ur)-1;break}return this._d.setTime(e),o.updateOffset(this,!0),this}function br(){return this._d.valueOf()-6e4*(this._offset||0)}function wr(){return Math.floor(this.valueOf()/1e3)}function xr(){return new Date(this.valueOf())}function Lr(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Mr(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function kr(){return this.isValid()?this.toISOString():null}function Tr(){return v(this)}function Ar(){return m({},_(this))}function Er(){return _(this).overflow}function Sr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Pr(t,e){var n,i,r,a=this._eras||bn("en")._eras;for(n=0,i=a.length;n=0)return l[i]}function Dr(t,e){var n=t.since<=t.until?1:-1;return void 0===e?o(t.since).year():o(t.since).year()+(e-t.offset)*n}function Ir(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;to&&(e=o),$r.call(this,t,e,n,i,r))}function $r(t,e,n,i,r){var o=Le(t,e,n,i,r),a=we(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function to(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),Et("N",Br),Et("NN",Br),Et("NNN",Br),Et("NNNN",Zr),Et("NNNNN",Ur),jt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?_(n).era=r:_(n).invalidEra=t})),Et("y",bt),Et("yy",bt),Et("yyy",bt),Et("yyyy",bt),Et("yo",Yr),jt(["y","yy","yyy","yyyy"],Gt),jt(["yo"],(function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Gt]=n._locale.eraYearOrdinalParse(t,r):e[Gt]=parseInt(t,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Fr("gggg","weekYear"),Fr("ggggg","weekYear"),Fr("GGGG","isoWeekYear"),Fr("GGGGG","isoWeekYear"),Et("G",wt),Et("g",wt),Et("GG",ft,ht),Et("gg",ft,ht),Et("GGGG",_t,dt),Et("gggg",_t,dt),Et("GGGGG",vt,pt),Et("ggggg",vt,pt),Ct(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=It(t)})),Ct(["gg","GG"],(function(t,e,n,i){e[i]=o.parseTwoDigitYear(t)})),U("Q",0,"Qo","quarter"),Et("Q",ct),jt("Q",(function(t,e){e[Bt]=3*(It(t)-1)})),U("D",["DD",2],"Do","date"),Et("D",ft,Tt),Et("DD",ft,ht),Et("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),jt(["D","DD"],Zt),jt("Do",(function(t,e){e[Zt]=It(t.match(ft)[0])}));var eo=qt("Date",!0);function no(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}U("DDD",["DDDD",3],"DDDo","dayOfYear"),Et("DDD",yt),Et("DDDD",ut),jt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=It(t)})),U("m",["mm",2],0,"minute"),Et("m",ft,At),Et("mm",ft,ht),jt(["m","mm"],Yt);var io=qt("Minutes",!1);U("s",["ss",2],0,"second"),Et("s",ft,At),Et("ss",ft,ht),jt(["s","ss"],Wt);var ro,oo,ao=qt("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Et("S",yt,ct),Et("SS",yt,ht),Et("SSS",yt,ut),ro="SSSS";ro.length<=9;ro+="S")Et(ro,bt);function so(t,e){e[Ft]=It(1e3*("0."+t))}for(ro="S";ro.length<=9;ro+="S")jt(ro,so);function lo(){return this._isUTC?"UTC":""}function co(){return this._isUTC?"Coordinated Universal Time":""}oo=qt("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var ho=M.prototype;function uo(t){return Kn(1e3*t)}function po(){return Kn.apply(null,arguments).parseZone()}function fo(t){return t}ho.add=Ci,ho.calendar=Wi,ho.clone=Fi,ho.diff=qi,ho.endOf=vr,ho.format=ir,ho.from=rr,ho.fromNow=or,ho.to=ar,ho.toNow=sr,ho.get=ee,ho.invalidAt=Er,ho.isAfter=Vi,ho.isBefore=Qi,ho.isBetween=Hi,ho.isSame=Ji,ho.isSameOrAfter=Xi,ho.isSameOrBefore=Ki,ho.isValid=Tr,ho.lang=cr,ho.locale=lr,ho.localeData=hr,ho.max=$n,ho.min=qn,ho.parsingFlags=Ar,ho.set=ne,ho.startOf=_r,ho.subtract=Ni,ho.toArray=Lr,ho.toObject=Mr,ho.toDate=xr,ho.toISOString=er,ho.inspect=nr,"undefined"!==typeof Symbol&&null!=Symbol.for&&(ho[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ho.toJSON=kr,ho.toString=tr,ho.unix=wr,ho.valueOf=br,ho.creationData=Sr,ho.eraName=Ir,ho.eraNarrow=Rr,ho.eraAbbr=jr,ho.eraYear=Cr,ho.year=Xt,ho.isLeapYear=Kt,ho.weekYear=Vr,ho.isoWeekYear=Qr,ho.quarter=ho.quarters=to,ho.month=me,ho.daysInMonth=ge,ho.week=ho.weeks=Pe,ho.isoWeek=ho.isoWeeks=Oe,ho.weeksInYear=Xr,ho.weeksInWeekYear=Kr,ho.isoWeeksInYear=Hr,ho.isoWeeksInISOWeekYear=Jr,ho.date=eo,ho.day=ho.days=Ve,ho.weekday=Qe,ho.isoWeekday=He,ho.dayOfYear=no,ho.hour=ho.hours=an,ho.minute=ho.minutes=io,ho.second=ho.seconds=ao,ho.millisecond=ho.milliseconds=oo,ho.utcOffset=yi,ho.utc=vi,ho.local=bi,ho.parseZone=wi,ho.hasAlignedHourOffset=xi,ho.isDST=Li,ho.isLocal=ki,ho.isUtcOffset=Ti,ho.isUtc=Ai,ho.isUTC=Ai,ho.zoneAbbr=lo,ho.zoneName=co,ho.dates=A("dates accessor is deprecated. Use date instead.",eo),ho.months=A("months accessor is deprecated. Use month instead",me),ho.years=A("years accessor is deprecated. Use year instead",Xt),ho.zone=A("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",_i),ho.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Mi);var mo=R.prototype;function go(t,e,n,i){var r=bn(),o=g().set(i,e);return r[n](o,t)}function yo(t,e,n){if(d(t)&&(e=t,t=void 0),t=t||"",null!=e)return go(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=go(t,i,n,"month");return r}function _o(t,e,n,i){"boolean"===typeof t?(d(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,d(e)&&(n=e,e=void 0),e=e||"");var r,o=bn(),a=t?o._week.dow:0,s=[];if(null!=n)return go(e,(n+a)%7,i,"day");for(r=0;r<7;r++)s[r]=go(e,(r+a)%7,i,"day");return s}function vo(t,e){return yo(t,e,"months")}function bo(t,e){return yo(t,e,"monthsShort")}function wo(t,e,n){return _o(t,e,n,"weekdays")}function xo(t,e,n){return _o(t,e,n,"weekdaysShort")}function Lo(t,e,n){return _o(t,e,n,"weekdaysMin")}mo.calendar=C,mo.longDateFormat=H,mo.invalidDate=X,mo.ordinal=$,mo.preparse=fo,mo.postformat=fo,mo.relativeTime=et,mo.pastFuture=nt,mo.set=D,mo.eras=Pr,mo.erasParse=Or,mo.erasConvertYear=Dr,mo.erasAbbrRegex=zr,mo.erasNameRegex=Nr,mo.erasNarrowRegex=Gr,mo.months=he,mo.monthsShort=ue,mo.monthsParse=pe,mo.monthsRegex=_e,mo.monthsShortRegex=ye,mo.week=Te,mo.firstDayOfYear=Se,mo.firstDayOfWeek=Ee,mo.weekdays=Ze,mo.weekdaysMin=Ye,mo.weekdaysShort=Ue,mo.weekdaysParse=Fe,mo.weekdaysRegex=Je,mo.weekdaysShortRegex=Xe,mo.weekdaysMinRegex=Ke,mo.isPM=rn,mo.meridiem=sn,yn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===It(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),o.lang=A("moment.lang is deprecated. Use moment.locale instead.",yn),o.langData=A("moment.langData is deprecated. Use moment.localeData instead.",bn);var Mo=Math.abs;function ko(){var t=this._data;return this._milliseconds=Mo(this._milliseconds),this._days=Mo(this._days),this._months=Mo(this._months),t.milliseconds=Mo(t.milliseconds),t.seconds=Mo(t.seconds),t.minutes=Mo(t.minutes),t.hours=Mo(t.hours),t.months=Mo(t.months),t.years=Mo(t.years),this}function To(t,e,n,i){var r=Pi(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function Ao(t,e){return To(this,t,e,1)}function Eo(t,e){return To(this,t,e,-1)}function So(t){return t<0?Math.floor(t):Math.ceil(t)}function Po(){var t,e,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*So(Do(s)+a),a=0,s=0),l.milliseconds=o%1e3,t=Dt(o/1e3),l.seconds=t%60,e=Dt(t/60),l.minutes=e%60,n=Dt(e/60),l.hours=n%24,a+=Dt(n/24),r=Dt(Oo(a)),s+=r,a-=So(Do(r)),i=Dt(s/12),s%=12,l.days=a,l.months=s,l.years=i,this}function Oo(t){return 4800*t/146097}function Do(t){return 146097*t/4800}function Io(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if(t=rt(t),"month"===t||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Oo(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Do(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function Ro(t){return function(){return this.as(t)}}var jo=Ro("ms"),Co=Ro("s"),No=Ro("m"),zo=Ro("h"),Go=Ro("d"),Bo=Ro("w"),Zo=Ro("M"),Uo=Ro("Q"),Yo=Ro("y"),Wo=jo;function Fo(){return Pi(this)}function Vo(t){return t=rt(t),this.isValid()?this[t+"s"]():NaN}function Qo(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ho=Qo("milliseconds"),Jo=Qo("seconds"),Xo=Qo("minutes"),Ko=Qo("hours"),qo=Qo("days"),$o=Qo("months"),ta=Qo("years");function ea(){return Dt(this.days()/7)}var na=Math.round,ia={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ra(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function oa(t,e,n,i){var r=Pi(t).abs(),o=na(r.as("s")),a=na(r.as("m")),s=na(r.as("h")),l=na(r.as("d")),c=na(r.as("M")),h=na(r.as("w")),u=na(r.as("y")),d=o<=n.ss&&["s",o]||o0,d[4]=i,ra.apply(null,d)}function aa(t){return void 0===t?na:"function"===typeof t&&(na=t,!0)}function sa(t,e){return void 0!==ia[t]&&(void 0===e?ia[t]:(ia[t]=e,"s"===t&&(ia.ss=e-1),!0))}function la(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=ia;return"object"===typeof t&&(e=t,t=!1),"boolean"===typeof t&&(r=t),"object"===typeof e&&(o=Object.assign({},ia,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),n=this.localeData(),i=oa(this,!r,o,n),r&&(i=n.pastFuture(+this,i)),n.postformat(i)}var ca=Math.abs;function ha(t){return(t>0)-(t<0)||+t}function ua(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,o,a,s,l=ca(this._milliseconds)/1e3,c=ca(this._days),h=ca(this._months),u=this.asSeconds();return u?(t=Dt(l/60),e=Dt(t/60),l%=60,t%=60,n=Dt(h/12),h%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=u<0?"-":"",o=ha(this._months)!==ha(u)?"-":"",a=ha(this._days)!==ha(u)?"-":"",s=ha(this._milliseconds)!==ha(u)?"-":"",r+"P"+(n?o+n+"Y":"")+(h?o+h+"M":"")+(c?a+c+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+i+"S":"")):"P0D"}var da=li.prototype;return da.isValid=ai,da.abs=ko,da.add=Ao,da.subtract=Eo,da.as=Io,da.asMilliseconds=jo,da.asSeconds=Co,da.asMinutes=No,da.asHours=zo,da.asDays=Go,da.asWeeks=Bo,da.asMonths=Zo,da.asQuarters=Uo,da.asYears=Yo,da.valueOf=Wo,da._bubble=Po,da.clone=Fo,da.get=Vo,da.milliseconds=Ho,da.seconds=Jo,da.minutes=Xo,da.hours=Ko,da.days=qo,da.weeks=ea,da.months=$o,da.years=ta,da.humanize=la,da.toISOString=ua,da.toString=ua,da.toJSON=ua,da.locale=lr,da.localeData=hr,da.toIsoString=A("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ua),da.lang=cr,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Et("x",wt),Et("X",Mt),jt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),jt("x",(function(t,e,n){n._d=new Date(It(t))})), //! moment.js o.version="2.30.1",a(Kn),o.fn=ho,o.min=ei,o.max=ni,o.now=ii,o.utc=g,o.unix=uo,o.months=vo,o.isDate=p,o.locale=yn,o.invalid=b,o.duration=Pi,o.isMoment=k,o.weekdays=wo,o.parseZone=po,o.localeData=bn,o.isDuration=ci,o.monthsShort=bo,o.weekdaysMin=Lo,o.defineLocale=_n,o.updateLocale=vn,o.locales=wn,o.weekdaysShort=xo,o.normalizeUnits=rt,o.relativeTimeRounding=aa,o.relativeTimeThreshold=sa,o.calendarFormat=Yi,o.prototype=ho,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}))}).call(this,i("62e4")(t))},c1f7:function(t,e,n){var i=n("64af");function r(t){return t*(Math.PI/180)}function o(t){return t*(180/Math.PI)}t.exports.heading=function(t,e){var n=Math.sin(Math.PI*(t[0]-e[0])/180)*Math.cos(Math.PI*e[1]/180),i=Math.cos(Math.PI*t[1]/180)*Math.sin(Math.PI*e[1]/180)-Math.sin(Math.PI*t[1]/180)*Math.cos(Math.PI*e[1]/180)*Math.cos(Math.PI*(t[0]-e[0])/180);return 180*Math.atan2(n,i)/Math.PI},t.exports.distance=function(t,e){var n=Math.sin(Math.PI*(e[0]-t[0])/360),r=Math.sin(Math.PI*(e[1]-t[1])/360),o=r*r+n*n*Math.cos(Math.PI*t[1]/180)*Math.cos(Math.PI*e[1]/180);return 2*i.RADIUS*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))},t.exports.radial=function(t,e,n,a){var s,l=r(e),c=n/i.RADIUS,h=r(t[0]),u=r(t[1]),d=Math.asin(Math.sin(u)*Math.cos(c)+Math.cos(u)*Math.sin(c)*Math.cos(l)),p=Math.atan2(Math.sin(l)*Math.sin(c)*Math.cos(u),Math.cos(c)-Math.sin(u)*Math.sin(d));return s=a?(h-p+Math.PI)%(2*Math.PI)-Math.PI:h-p+Math.PI-Math.PI,[o(s),o(d)]}},c1f9:function(t,e,n){"use strict";var i=n("23e7"),r=n("2266"),o=n("8418");i({target:"Object",stat:!0},{fromEntries:function(t){var e={};return r(t,(function(t,n){o(e,t,n)}),{AS_ENTRIES:!0}),e}})},c2ed:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAB6ElEQVRYR82XMU/bUBSFz2GmMz8AVpLBBiQquiDapZXon6BSJzuiWyVAYiuKPVUqf6KV2qVFLEUgtfgNMWv7AzK3c06VREHY2PVNDDJefe5937332e88ouGHDa+PqQBaLtzAQJuc45bEBVALowLEPqm+BjrBHE9TLzqzFmYCWHbBDoUdgJ4tsZyI4ysvPq7S/xdgOQm2Cby1L5xfTk7A4ZUffyoDKQVouU4AKaqqwPSeDFOvGxdpCwHarvNc0mdTcqOI5Iue1/2Sl98CaF+GqyJ+GPNOJaOw1luJft4MugXQSoJk9plX8cilfuyXAox3Oz9UpanzXtSrm19HpgP3W/0EO9uFa4B2Ej4V8LVOddZYAs96fvRtqL8GaCWdd4B2rUnq6XiU+t03GYC2C88lrNdLbIsmcdHzosf5DvwCtGhLUVfF36nfXcoCuPAPhPm6qU3xxN/Uix49MICk0+wImt+El8E+yD3TDOuKpIN0Jd7P74ENCN/r5jbFE08mrunh/IqH5I0fRkOI+z2QKo7jURdGPpAfTbOcUiToZd4fFlqyO/WDE8gSX1hqSu/SF5b5wcxnWNTNsT/U+9ktmhzF13kfWGrJykba2MUkDzR2TdwitV54NRMvCJ1M3I5lj5quZpZEs2oaB/gHgOnbIUA0mMAAAAAASUVORK5CYII="},c345:function(t,e,n){"use strict";var i=n("c532"),r=["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"];t.exports=function(t){var e,n,o,a={};return t?(i.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=i.trim(t.substr(0,o)).toLowerCase(),n=i.trim(t.substr(o+1)),e){if(a[e]&&r.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c3b6:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.StreamCipher,r=e.algo,o=r.RC4=i.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,i=this._S=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var a=r%n,s=e[a>>>2]>>>24-a%4*8&255;o=(o+i[r]+s)%256;var l=i[r];i[r]=i[o],i[o]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,i=0,r=0;r<4;r++){e=(e+1)%256,n=(n+t[e])%256;var o=t[e];t[e]=t[n],t[n]=o,i|=t[(t[e]+t[n])%256]<<24-8*r}return this._i=e,this._j=n,i}e.RC4=i._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});e.RC4Drop=i._createHelper(s)}(),t.RC4}))},c3bd:function(t,e,n){"use strict";n.d(e,"a",(function(){return m})),n.d(e,"c",(function(){return g})),n.d(e,"b",(function(){return y}));n("d3b7"),n("e6cf");var i=n("bc3a"),r=n.n(i),o=n("7a1d"),a=r.a.create({baseURL:"/",timeout:15e3}),s=function(t){return Promise.reject(t)};r.a.interceptors.request.use((function(t){var e=Object(o["i"])();return e&&(t.headers["X-User-Token"]=e,t&&t.params&&!t.params.usertoken&&(t.params.usertoken=e)),t}),(function(t){return Promise.reject(t)})),a.interceptors.response.use((function(t){return t.data}),s);var l=n("4328"),c=n.n(l),h={},u=r.a.CancelToken,d=function(t){var e=h[t];"function"==typeof e&&(e(),delete h[t])};function p(t){var e=t.url;return d(e),t.cancelToken=new u((function(t){h[e]=t})),a(t)}function f(t){return new Promise((function(e,n){a(t).then((function(t){e(t)})).catch((function(t){s(t),n(t)}))}))}function m(t,e){return f({url:t,method:"get",params:e})}function g(t,e){return p({url:t,method:"post",data:c.a.stringify(e)})}function y(t,e){return p({url:t,methods:"get",params:e})}},c3c2:function(t,e,n){"use strict";n("99af"),n("d81d"),n("14d9"),n("fb6a"),n("a9e3"),n("b680"),n("cca6"),n("d3b7"),n("ac1f"),n("00b4"),n("25f0"),n("8a79"),n("159b");var i=n("823b"),r=n("ef1d");r["DomUtil"].setTransform||(r["DomUtil"].setTransform=function(t,e,n){var i=e||new r["Point"](0,0);t.style[r["DomUtil"].TRANSFORM]=(r["Browser"].ie3d?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}),r["CanvasLayer"]=(r["Layer"]?r["Layer"]:r["Class"]).extend({initialize:function(t){this._map=null,this._canvas=null,this._frame=null,this._delegate=null,r["setOptions"](this,t)},delegate:function(t){return this._delegate=t,this},needRedraw:function(){return this._frame||(this._frame=r["Util"].requestAnimFrame(this.drawLayer,this)),this},_onLayerDidResize:function(t){this._canvas.width=t.newSize.x,this._canvas.height=t.newSize.y},_onLayerDidMove:function(){var t=this._map.containerPointToLayerPoint([0,0]);r["DomUtil"].setPosition(this._canvas,t),this.drawLayer()},getEvents:function(){var t={resize:this._onLayerDidResize,moveend:this._onLayerDidMove};return this._map.options.zoomAnimation&&r["Browser"].any3d&&(t.zoomanim=this._animateZoom),t},onAdd:function(t){this._map=t,this._canvas=r["DomUtil"].create("canvas","leaflet-layer"),this.tiles={};var e=this._map.getSize();this._canvas.width=e.x,this._canvas.height=e.y,i["a"].log("n2517 canvaslayer size",e);var n=this._map.options.zoomAnimation&&r["Browser"].any3d;r["DomUtil"].addClass(this._canvas,"leaflet-zoom-"+(n?"animated":"hide")),this.options.pane.appendChild(this._canvas);var o=this;setTimeout((function(){o._onLayerDidMove()}),0),this._updateZIndex()},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},_updateZIndex:function(){if(this._map&&this._canvas){var t=this._canvas;t&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(i["a"].log("n2481 canvasLayer _updateZIndex",this.options.zIndex),t.style.zIndex=this.options.zIndex)}},onRemove:function(t){var e=this._delegate||this;e.onLayerWillUnmount&&e.onLayerWillUnmount(),this.options.pane.removeChild(this._canvas),t.off(this.getEvents(),this),this._canvas=null},addTo:function(t){return t.addLayer(this),this},drawLayer:function(){var t=this._map.getSize(),e=this._map.getBounds(),n=this._map.getZoom(),i=this._map.options.crs.project(this._map.getCenter()),r=this._map.options.crs.project(this._map.containerPointToLatLng(this._map.getSize())),o=this._delegate||this;o.onDrawLayer&&o.onDrawLayer({layer:this,canvas:this._canvas,bounds:e,size:t,zoom:n,center:i,corner:r}),this._frame=null},_setTransform:function(t,e,n){var i=e||new r["Point"](0,0);t.style[r["DomUtil"].TRANSFORM]=(r["Browser"].ie3d?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=r["Layer"]?this._map._latLngToNewLayerPoint(this._map.getBounds().getNorthWest(),t.zoom,t.center):this._map._getCenterOffset(t.center)._multiplyBy(-e).subtract(this._map._getMapPanePos());r["DomUtil"].setTransform(this._canvas,n,e)}}),r["canvasLayer"]=function(t){return new r["CanvasLayer"](t)},r["Control"].Velocity=r["Control"].extend({options:{position:"bottomleft",emptyString:"Unavailable",angleConvention:"bearingCCW",showCardinal:!1,speedUnit:"m/s",directionString:"Direction",speedString:"Speed",onAdd:null,onRemove:null},onAdd:function(t){return this._container=r["DomUtil"].create("div","leaflet-control-velocity"),r["DomEvent"].disableClickPropagation(this._container),t.on("mousemove",this._onMouseMove,this),this._container.innerHTML=this.options.emptyString,this.options.leafletVelocity.options.onAdd&&this.options.leafletVelocity.options.onAdd(),this._container},onRemove:function(t){t.off("mousemove",this._onMouseMove,this),this.options.leafletVelocity.options.onRemove&&this.options.leafletVelocity.options.onRemove()},vectorToSpeed:function(t,e,n){var i=Math.sqrt(Math.pow(t,2)+Math.pow(e,2));return"k/h"===n?this.meterSec2kilometerHour(i):"kt"===n?this.meterSec2Knots(i):"mph"===n?this.meterSec2milesHour(i):i},vectorToDegrees:function(t,e,n){n.endsWith("CCW")&&(e=e>0?e=-e:Math.abs(e));var i=Math.sqrt(Math.pow(t,2)+Math.pow(e,2)),r=Math.atan2(t/i,e/i),o=180*r/Math.PI+180;return"bearingCW"!==n&&"meteoCCW"!==n||(o+=180,o>=360&&(o-=360)),o},degreesToCardinalDirection:function(t){var e="";return t>=0&&t<11.25||t>=348.75?e="N":t>=11.25&&t<33.75?e="NNW":t>=33.75&&t<56.25?e="NW":t>=56.25&&t<78.75?e="WNW":t>=78.25&&t<101.25?e="W":t>=101.25&&t<123.75?e="WSW":t>=123.75&&t<146.25?e="SW":t>=146.25&&t<168.75?e="SSW":t>=168.75&&t<191.25?e="S":t>=191.25&&t<213.75?e="SSE":t>=213.75&&t<236.25?e="SE":t>=236.25&&t<258.75?e="ESE":t>=258.75&&t<281.25?e="E":t>=281.25&&t<303.75?e="ENE":t>=303.75&&t<326.25?e="NE":t>=326.25&&t<348.75&&(e="NNE"),e},meterSec2Knots:function(t){return t/.514},meterSec2kilometerHour:function(t){return 3.6*t},meterSec2milesHour:function(t){return 2.23694*t},_onMouseMove:function(t){var e=this,n=this.options.leafletVelocity._map.containerPointToLatLng(r["point"](t.containerPoint.x,t.containerPoint.y)),i=this.options.leafletVelocity._windy.interpolatePoint(n.lng,n.lat),o="";if(i&&!isNaN(i[0])&&!isNaN(i[1])&&i[2]){var a=e.vectorToDegrees(i[0],i[1],this.options.angleConvention),s=this.options.showCardinal?" (".concat(e.degreesToCardinalDirection(a),") "):"";o=" ".concat(this.options.velocityType," ").concat(this.options.directionString,": ").concat(a.toFixed(2),"°").concat(s,", ").concat(this.options.velocityType," ").concat(this.options.speedString,": ").concat(e.vectorToSpeed(i[0],i[1],this.options.speedUnit).toFixed(2)," ").concat(this.options.speedUnit)}else o=this.options.emptyString;e._container.innerHTML=o}}),r["Map"].mergeOptions({positionControl:!1}),r["Map"].addInitHook((function(){this.options.positionControl&&(this.positionControl=new r["Control"].MousePosition,this.addControl(this.positionControl))})),r["control"].velocity=function(t){return new r["Control"].Velocity(t)},r["VelocityLayer"]=(r["Layer"]?r["Layer"]:r["Class"]).extend({options:{displayValues:!1,displayOptions:{velocityType:"Velocity",position:"bottomleft",emptyString:"No velocity data"},maxVelocity:10,colorScale:null,data:null},_map:null,_canvasLayer:null,_windy:null,_context:null,_timer:0,_mouseControl:null,initialize:function(t){r["setOptions"](this,t)},onAdd:function(t){this._paneName=this.options.paneName||"overlayPane";var e=t._panes.overlayPane;t.getPane&&(e=t.getPane(this._paneName),e||(e=t.createPane(this._paneName)));var n={pane:e};void 0!==this.options.zIndex&&null!==this.options.zIndex&&(n.zIndex=this.options.zIndex),this._canvasLayer=r["canvasLayer"](n).delegate(this),this._canvasLayer.addTo(t),this._map=t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},_updateZIndex:function(){if(this._canvasLayer){var t=this._canvasLayer;t&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(i["a"].log("n2481 VelocityLayer _updateZIndex",this.options.zIndex),t.setZIndex(this.options.zIndex))}},onRemove:function(t){this._destroyWind()},setData:function(t){this.options.data=t,this._windy&&(this._windy.setData(t),this._clearAndRestart()),this.fire("load")},setOpacity:function(t){this._canvasLayer.setOpacity(t)},setOptions:function(t){this.options=Object.assign(this.options,t),t.hasOwnProperty("displayOptions")&&(this.options.displayOptions=Object.assign(this.options.displayOptions,t.displayOptions),this._initMouseHandler(!0)),t.hasOwnProperty("data")&&(this.options.data=t.data),this._windy&&(this._windy.setOptions(t),t.hasOwnProperty("data")&&this._windy.setData(t.data),this._clearAndRestart()),this.fire("load")},onDrawLayer:function(t,e){var n=this;this._windy?this.options.data&&(this._timer&&clearTimeout(n._timer),this._timer=setTimeout((function(){n._startWindy()}),750)):this._initWindy(this)},_startWindy:function(){var t=this._map.getBounds(),e=this._map.getSize();this._windy.start([[0,0],[e.x,e.y]],e.x,e.y,[[t._southWest.lng,t._southWest.lat],[t._northEast.lng,t._northEast.lat]])},_initWindy:function(t){var e=Object.assign({canvas:t._canvasLayer._canvas,map:this._map},t.options);this._windy=new a(e),this._context=this._canvasLayer._canvas.getContext("2d"),this._canvasLayer._canvas.classList.add("velocity-overlay"),this.onDrawLayer(),this._map.on("dragstart",t._windy.stop),this._map.on("dragend",t._clearAndRestart,t),this._map.on("zoomstart",t._windy.stop),this._map.on("zoomend",t._clearAndRestart,t),this._map.on("resize",t._clearWind,t),this._initMouseHandler(!1)},_initMouseHandler:function(t){if(t&&(this._map.removeControl(this._mouseControl),this._mouseControl=!1),!this._mouseControl&&this.options.displayValues){var e=this.options.displayOptions||{};e["leafletVelocity"]=this,this._mouseControl=r["control"].velocity(e).addTo(this._map)}},_clearAndRestart:function(){this._context&&this._context.clearRect(0,0,3e3,3e3),this._windy&&this._startWindy()},_clearWind:function(){this._windy&&this._windy.stop(),this._context&&this._context.clearRect(0,0,3e3,3e3)},_destroyWind:function(){this._timer&&clearTimeout(this._timer),this._windy&&this._windy.stop(),this._context&&this._context.clearRect(0,0,3e3,3e3),this._mouseControl&&this._map.removeControl(this._mouseControl),this._mouseControl=null,this._windy=null,this._map.removeLayer(this._canvasLayer)}}),r["velocityLayer"]=function(t){return new r["VelocityLayer"](t)};var o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return 0==t?0:t||e},a=function(t){var e,n,a,s,l,c,h,u,d,p,f=t.n3296TailTimes||1,m=t.minVelocity||0,g=t.maxVelocity||10,y=(t.velocityScale||.005)*(Math.pow(window.devicePixelRatio,1/3)||1),_=t.particleAge||90,v=t.lineWidth||1,b=t.particleMultiplier||1/300,w=Math.pow(window.devicePixelRatio,1/3)||1.6,x=o(t.velocityScaleBaseLinePercent,10),L=t.frameRate||15,M=1e3/L,k=t.opacity||.97,T=["rgb(36,104, 180)","rgb(60,157, 194)","rgb(128,205,193 )","rgb(151,218,168 )","rgb(198,231,181)","rgb(238,247,217)","rgb(255,238,159)","rgb(252,217,125)","rgb(255,182,100)","rgb(252,150,75)","rgb(250,112,52)","rgb(245,64,32)","rgb(237,45,28)","rgb(220,24,32)","rgb(180,0,35)"],A=t.colorScale||T,E=[NaN,NaN,null],S=t.data,P=function(t){S=t},O=t.kdrawType||"",D=t.kdrawWaveLength||2,I=function(t){t.hasOwnProperty("n3296TailTimes")&&(f=t.n3296TailTimes||1),t.hasOwnProperty("minVelocity")&&(m=t.minVelocity),t.hasOwnProperty("maxVelocity")&&(g=t.maxVelocity),t.hasOwnProperty("velocityScale")&&(y=(t.velocityScale||.005)*(Math.pow(window.devicePixelRatio,1/3)||1)),t.hasOwnProperty("velocityScaleBaseLinePercent")&&(x=o(t.velocityScaleBaseLinePercent,10)),t.hasOwnProperty("particleAge")&&(_=t.particleAge),t.hasOwnProperty("lineWidth")&&(v=t.lineWidth),t.hasOwnProperty("particleMultiplier")&&(b=t.particleMultiplier),t.hasOwnProperty("opacity")&&(k=+t.opacity),t.hasOwnProperty("frameRate")&&(L=t.frameRate),t.hasOwnProperty("kdrawType")&&(O=t.kdrawType||""),t.hasOwnProperty("kdrawWaveLength")&&(D=t.kdrawWaveLength||2),M=1e3/L},R=function(t,e,n,i,r,o){var a=1-t,s=1-e,l=a*s,c=t*s,h=a*e,u=t*e,d=n[0]*l+i[0]*c+r[0]*h+o[0]*u,p=n[1]*l+i[1]*c+r[1]*h+o[1]*u;return[d,p,Math.sqrt(d*d+p*p)]},j=function(t,e){var n=t.data,i=e.data;return{header:t.header,data:function(t){return[n[t],i[t]]},interpolate:R}},C=function(t){var e=null,n=null;return t.forEach((function(t){switch(t.header.parameterCategory+","+t.header.parameterNumber){case"1,2":case"2,2":e=t;break;case"1,3":case"2,3":n=t;break;default:t}})),j(e,n)},N=function(t,i){var r=!0;if(t.length<2&&(r=!1),r){e=C(t);var o=e.header;if(o.hasOwnProperty("gridDefinitionTemplate")&&0!=o.gridDefinitionTemplate&&(r=!1),r||console.log("Windy Error: Only data with Latitude_Longitude coordinates is supported"),r=!0,s=o.lo1,l=o.la1,c=o.dx,h=o.dy,u=o.nx,d=o.ny,o.hasOwnProperty("scanMode")){var p=o.scanMode.toString(2);p=("0"+p).slice(-8);var f=p.split("").map(Number).map(Boolean);f[0]&&(c=-c),f[1]&&(h=-h),f[2]&&(r=!1),f[3]&&(r=!1),f[4]&&(r=!1),f[5]&&(r=!1),f[6]&&(r=!1),f[7]&&(r=!1),r||console.log("Windy Error: Data with scanMode: "+o.scanMode+" is not supported.")}a=new Date(o.refTime),a.setHours(a.getHours()+o.forecastTime),n=[];for(var m=0,g=Math.floor(u*c)>=360,y=0;y1e3)return void setTimeout(t,25);W(l,e,r)}()},K=function(e,n){function i(t,e){return A.indexFor=function(n){return Math.max(0,Math.min(A.length-1,Math.round((n-t)/(e-t)*(A.length-1))))},A}var r=i(m,g),o=r.map((function(){return[]})),a=Math.round(e.width*e.height*b);Z()&&(a*=w);for(var s="rgba(0, 0, 0, ".concat(k,")"),l=[],c=0;c_&&(n.randomize(t).age=0);var e=t.x,i=t.y,a=n(e,i),s=a[2];if(null===s)t.age=_;else{var l=e+a[0]*f,c=i+a[1]*f;null!==n(l,c)[2]?(t.xt=l,t.yt=c,o[r.indexFor(s)].push(t)):(t.x=l,t.y=c)}t.age+=1}))}var u=t.canvas.getContext("2d");function d(){var t="lighter";u.globalCompositeOperation="destination-in",u.fillRect(e.x,e.y,e.width,e.height),u.globalCompositeOperation=t,u.globalAlpha=0===k?0:.9*k,o.forEach((function(t,e){t.length>0&&(u.beginPath(),u.strokeStyle=r[e],t.forEach((function(t){u.moveTo(t.x,t.y),u.lineTo(t.xt,t.yt),t.x=t.xt,t.y=t.yt})),u.stroke())}))}function y(t,e,n,i,r){function o(t,e,n,i){var r=(t+n)/2,o=(e+i)/2;return[r,o]}function a(t,e,n,i){var r=(i-e)/(n-t);return-1/r}function s(t,e,n,i){var r=t+i/Math.sqrt(1+Math.pow(n,2)),o=e+n*(r-t),a=t-i/Math.sqrt(1+Math.pow(n,2)),s=e+n*(a-t);return[[r,o],[a,s]]}var l=o(t,e,n,i),c=a(t,e,n,i),h=s(l[0],l[1],c,r);return h}function x(){var t="lighter";u.globalCompositeOperation="destination-in",u.fillRect(e.x,e.y,e.width,e.height),u.globalCompositeOperation=t,u.globalAlpha=0===k?0:.9*k,o.forEach((function(t,e){t.length>0&&t.forEach((function(t){u.beginPath(),u.strokeStyle=r[e],u.fillStyle=r[e];var n=t.x,i=t.y,o=t.xt,a=t.yt,s=y(n,i,o,a,D),l=s[0][0],c=s[0][1],h=s[1][0],d=s[1][1];u.moveTo(l,c),u.lineTo(h,d),t.x=t.xt,t.y=t.yt,u.stroke()}))}))}u.lineWidth=v,u.fillStyle=s,u.globalAlpha=.6;var L=Date.now();(function t(){p=requestAnimationFrame(t);var e=Date.now(),n=e-L;n>M&&(L=e-n%M,h(),O&&"WAVE"===O.toUpperCase()?x():d())})()},q=function(t,e,n,i){var r={south:V(i[0][1]),north:V(i[1][1]),east:V(i[1][0]),west:V(i[0][0]),width:e,height:n};$(),N(S,(function(i){X(i,F(t,e,n),r,(function(t,e){tt.field=e,K(t,e)}))}))},$=function(){tt.field&&tt.field.release(),p&&cancelAnimationFrame(p)},tt={params:t,start:q,stop:$,createField:W,interpolatePoint:z,setData:P,setOptions:I};return tt};window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})},c401:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e,n){return i.forEach(n,(function(n){t=n(t,e)})),t}},c430:function(t,e,n){"use strict";t.exports=!1},c443:function(t,e,n){"use strict";n("99af"),n("4de4"),n("a15b"),n("d81d"),n("14d9"),n("b680"),n("d3b7"),n("ac1f"),n("00b4"),n("5319"),n("159b"),n("501e"),n("823b")},c448:function(t,n,i){"use strict";i.d(n,"k",(function(){return s})),i.d(n,"a",(function(){return l})),i.d(n,"r",(function(){return h})),i.d(n,"f",(function(){return u})),i.d(n,"i",(function(){return d})),i.d(n,"g",(function(){return p})),i.d(n,"h",(function(){return g})),i.d(n,"l",(function(){return b})),i.d(n,"j",(function(){return w})),i.d(n,"q",(function(){return x})),i.d(n,"d",(function(){return L})),i.d(n,"s",(function(){return M})),i.d(n,"o",(function(){return T})),i.d(n,"c",(function(){return S})),i.d(n,"b",(function(){return O})),i.d(n,"n",(function(){return D})),i.d(n,"e",(function(){return I})),i.d(n,"m",(function(){return R})),i.d(n,"p",(function(){return j}));i("5530");var r=i("53ca"),o=(i("4de4"),i("e260"),i("a15b"),i("d81d"),i("14d9"),i("fb6a"),i("4ec9"),i("a9e3"),i("b680"),i("d3b7"),i("ac1f"),i("00b4"),i("25f0"),i("3ca3"),i("ddb0"),i("ef1d")),a=(i("823b"),i("633b")),s=function(){return!(o["LANG"]&&"en-US"==o["LANG"])},l=function(t){var n=new Map;function i(t){if("object"!==Object(r["a"])(t)||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(n.has(t))return n.get(t);var e=Array.isArray(t)?[]:{};for(var o in n.set(t,e),t)e[o]=i(t[o]);return e}try{return i(t)}catch(e){console.error(e)}return{}},c=function(t){var e=Math.floor(t/360),n=Math.floor((t%360+540)/360),i=e+n;return 0==i||1==i?0:i<0?-1*i:-1*(i-1)},h=function(t){return(t%360+540)%360-180};var u=function(t,e,n){for(var i=h(parseFloat(e)),r=t.getBounds(),o=r.getEast(),a=r.getWest(),s=c(o),l=c(a),u=[],d=l;d>=s;d--){var p=i-360*d;u.push(p)}return 1==u.length||(u=u.filter((function(t){return t>=a&&t<=o}))),u},d=function(t,e){for(var n=t.map((function(t){return t instanceof Array?t[1]:t.lng})),i=1/0,r=0;ri&&(i=h.length,r=h,o=n)}return r.length,{broker_lon:o,e180arr:r}},g=function(t,e){for(var n,i=m(t,e),r=i.e180arr,o=i.broker_lon,a=[],s=0;sMath.min(r[0],o[0])&&t[0]<=Math.max(r[0],o[0])&&t[1]<=Math.max(r[1],o[1])&&r[0]!=o[0]&&(i=(t[0]-r[0])*(o[1]-r[1])/(o[0]-r[0])+r[1],(r[1]==o[1]||t[1]<=i)&&a++),r=o;return a%2!=0}function w(t){return[156543.03390625,78271.516953125,39135.7584765625,19567.87923828125,9783.939619140625,4891.9698095703125,2445.9849047851562,1222.9924523925781,611.4962261962891,305.74811309814453,152.87405654907226,76.43702827453613,38.218514137268066,19.109257068634033,9.554628534317017,4.777314267158508,2.388657133579254,1.194328566789627,.5971642833948135,.29858214173896974,.14929107086948487,.07464553543474244][t]}function x(t,e,n,i){var r,o,a,s,l,c=Number(e.length),h=Number(e.width),u=w(t.getZoom()),d=Math.floor(c/u),p=Math.floor(h/u),f=0,m=0,g=parseFloat(e.offseta/u),_=parseFloat(e.offsetb/u),v=parseFloat(e.offsetc/u),x=parseFloat(e.offsetd/u),L={},M={},k={},T={};return d>24?(0!=g&&0!=_&&(f=-(g-(g+_)/2)),0!=v&&0!=x&&(m=-(v-(v+x)/2)),L.x=i.x+p/2+m,L.y=i.y+d/2+f,M.x=i.x+p/2+m,M.y=i.y-d/2+f,k.x=i.x-p/2+m,k.y=i.y-d/2+f,T.x=i.x-p/2+m,T.y=i.y+d/2+f,r=y(i,L,e.rotation),o=y(i,M,e.rotation),a=y(i,k,e.rotation),s=y(i,T,e.rotation),l=[r,o,a,s],b(n,l)):e.speed>.5?(d=20,p=12,L.x=i.x+p/2,L.y=i.y+d/2,M.x=i.x,M.y=i.y-d/2,k.x=i.x-p/2,k.y=i.y+d/2,r=y(i,L,e.rotation),o=y(i,M,e.rotation),a=y(i,k,e.rotation),l=[r,o,a],b(n,l)):(d=10,p=10,L.x=i.x+p/2,L.y=i.y+d/2,M.x=i.x+p/2,M.y=i.y-d/2,k.x=i.x-p/2,k.y=i.y-d/2,T.x=i.x-p/2,T.y=i.y+d/2,r=y(i,L,90),o=y(i,M,90),a=y(i,k,90),s=y(i,T,90),l=[r,o,a,s],b(n,l))}function L(t){for(var e=new Array,n=!1,i=!1,r=0;r0&&u<90&&d>0&&d<90&&(h=!1)}(c>260||h)&&(o[1]>0?i?i=!1:n=!0:n?n=!1:i=!0)}}return e}function M(t,e){return(Array(e).join("0")+t).slice(-e)}var k=function(){var t={0:6.744140625,1:6.744140625,2:6.744140625,3:6.744140625,4:6.744140625,5:6.744140625,6:6.744140625,7:6.744140625,8:6.744140625,9:6.744140625,A:7.828125,B:7.4765625,C:7.810546875,D:7.875,E:6.8203125,F:6.6328125,G:8.173828125,H:8.560546875,I:3.263671875,J:6.62109375,K:7.529296875,L:6.462890625,M:10.4765625,N:8.560546875,O:8.255859375,P:7.5703125,Q:8.255859375,R:7.39453125,S:7.125,T:7.16015625,U:7.78125,V:7.640625,W:10.646484375,X:7.5234375,Y:7.20703125,Z:7.189453125,a:6.52734375,b:6.73828125,c:6.28125,d:6.767578125,e:6.36328125,f:4.171875,g:6.73828125,h:6.609375,i:2.91796875,j:2.87109375,k:6.08203125,l:2.91796875,m:10.5234375,n:6.626953125,o:6.84375,p:6.73828125,q:6.8203125,r:4.06640625,s:6.193359375,t:3.92578125,u:6.615234375,v:5.8125,w:9.017578125,x:5.953125,y:5.677734375,z:5.953125," ":2.9765625,"°":4.482421875,"′":2.09765625,"/":4.951171875,"-":3.31640625,":":2.90625,".":3.1640625};return a["a"]()?t:{0:7.62890625,1:7.62890625,2:7.62890625,3:7.62890625,4:7.62890625,5:7.62890625,6:7.62890625,7:7.62890625,8:7.62890625,9:7.62890625,A:8.203125,B:8.2265625,C:8.37890625,D:9.24609375,E:7.587890625,F:6.896484375,G:9.3046875,H:9.017578125,I:5.05078125,J:5.455078125,K:8.314453125,L:6.6796875,M:10.11328125,N:8.9765625,O:9.4453125,P:7.236328125,Q:9.4453125,R:8.34375,S:8.203125,T:7.39453125,U:8.783203125,V:8.203125,W:11.865234375,X:8.220703125,Y:7.3828125,Z:8.220703125,a:7.20703125,b:7.4765625,c:6.251953125,d:7.4765625,e:7.1484375,f:4.21875,g:7.4765625,h:7.59375,i:3.29296875,j:4.130859375,k:7.1015625,l:3.29296875,m:11.671875,n:7.59375,o:7.283203125,p:7.4765625,q:7.4765625,r:5.12109375,s:6.251953125,t:4.728515625,u:7.59375,v:7.1015625,w:9.8203125,x:7.1015625,y:7.1015625,z:6.3046875," ":4.21875,"°":6.50390625,"′":4.3359375,"/":5.44921875,"-":5.44921875,":":5.44921875,".":4.365234375}},T=function(t,e,n){for(var i=k(),r=t.length,o=0,a=0;a128?o+=2*n:o+=7}return o};function A(t){var e=Math.abs(t),n=Math.floor(e),i=60*(e-n),r=Math.floor(i),o=Math.floor(60*(i-r));return n+"°"+M(r,2)+"′"+M(o,2)}function E(t){return h(t)}function S(t){var e=1*t.lat,n=t.lng||t.lon;0!=t.lng&&0!=t.lon||(n=0),n=E(1*n);var i=A(e),r=e>=0?"N":"S",o=A(n),a=n>=0?"E":"W";return[i+" "+r,o+" "+a]}function P(t){var e=Math.abs(t),n=Math.floor(e),i=60*(e-n),r=i.toFixed(3),o=r;return r<10&&(o="0"+r),n+"°"+o+"′"}function O(t){var e=1*t.lat,n=t.lng||t.lon;0!=t.lng&&0!=t.lon||(n=0),n=E(1*n);var i=P(e),r=e>=0?"N":"S",o=P(n),a=n>=0?"E":"W";return[i+" "+r,o+" "+a]}var D=function(t){return"[object String]"===Object.prototype.toString.call(t)},I=function(t,e,n){var i=t.wrapLatLng(e),r=t.wrapLatLng(n);return t.distance(i,r)},R=function(t){return"object"==Object(r["a"])(t)&&t.constructor==Object},j=function(t){var e=/^[0-9]+.?[0-9]*$/;return e.test(t)?t:"*********"}},c513:function(t,e,n){"use strict";var i=n("23e7"),r=n("1a2d"),o=n("d9b5"),a=n("0d51"),s=n("5692"),l=n("0b43"),c=s("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!l},{keyFor:function(t){if(!o(t))throw new TypeError(a(t)+" is not a symbol");if(r(c,t))return c[t]}})},c532:function(t,e,n){"use strict";var i=n("1d2b"),r=Object.prototype.toString;function o(t){return"[object Array]"===r.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function l(t){return"[object ArrayBuffer]"===r.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function h(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function u(t){return"string"===typeof t}function d(t){return"number"===typeof t}function p(t){return null!==t&&"object"===typeof t}function f(t){return"[object Date]"===r.call(t)}function m(t){return"[object File]"===r.call(t)}function g(t){return"[object Blob]"===r.call(t)}function y(t){return"[object Function]"===r.call(t)}function _(t){return p(t)&&y(t.pipe)}function v(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function b(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function w(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function x(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var n=0,i=t.length;nc)r(i,n=e[c++])&&(~a(h,n)||l(h,n));return h}},ca91:function(t,e,n){"use strict";var i=n("ebb5"),r=n("d58f").left,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("reduce",(function(t){var e=arguments.length;return r(o(this),t,e,e>1?arguments[1]:void 0)}))},caad:function(t,e,n){"use strict";var i=n("23e7"),r=n("4d64").includes,o=n("d039"),a=n("44d2"),s=o((function(){return!Array(1).includes()}));i({target:"Array",proto:!0,forced:s},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},cb29:function(t,e,n){"use strict";var i=n("23e7"),r=n("81d5"),o=n("44d2");i({target:"Array",proto:!0},{fill:r}),o("fill")},cb2d:function(t,e,n){"use strict";var i=n("1626"),r=n("9bf2"),o=n("13d2"),a=n("6374");t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:e;if(i(n)&&o(n,c,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(h){}l?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},cb5a:function(t,e,n){var i=n("9638");function r(t,e){var n=t.length;while(n--)if(i(t[n][0],e))return n;return-1}t.exports=r},cc12:function(t,e,n){"use strict";var i=n("da84"),r=n("861d"),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cc98:function(t,e,n){"use strict";var i=n("23e7"),r=n("c430"),o=n("4738").CONSTRUCTOR,a=n("d256"),s=n("d066"),l=n("1626"),c=n("cb2d"),h=a&&a.prototype;if(i({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&l(a)){var u=s("Promise").prototype["catch"];h["catch"]!==u&&c(h,"catch",u,{unsafe:!0})}},cca6:function(t,e,n){"use strict";var i=n("23e7"),r=n("60da");i({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},cd26:function(t,e,n){"use strict";var i=n("ebb5"),r=i.aTypedArray,o=i.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){var t,e=this,n=r(e).length,i=a(n/2),o=0;while(o4294967295||l(e)!==e)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,c=!0;if("length"in t&&a){var h=a(t,"length");h&&!h.configurable&&(i=!1),h&&!h.writable&&(c=!1)}return(i||c||!n)&&(o?r(t,"length",e,!0,!0):r(t,"length",e)),t}},d012:function(t,e,n){"use strict";t.exports={}},d02c:function(t,e,n){var i=n("5e2e"),r=n("79bc"),o=n("7b83"),a=200;function s(t,e){var n=this.__data__;if(n instanceof i){var s=n.__data__;if(!r||s.length1?arguments[1]:void 0)}))},d1e7:function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},d233:function(t,n,i){"use strict";var r=i("b313"),o=Object.prototype.hasOwnProperty,a=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),l=function(t){while(t.length>1){var e=t.pop(),n=e.obj[e.prop];if(a(n)){for(var i=[],r=0;r=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===r.RFC1738&&(40===h||41===h)?l+=a.charAt(c):h<128?l+=s[h]:h<2048?l+=s[192|h>>6]+s[128|63&h]:h<55296||h>=57344?l+=s[224|h>>12]+s[128|h>>6&63]+s[128|63&h]:(c+=1,h=65536+((1023&h)<<10|1023&a.charCodeAt(c)),l+=s[240|h>>18]+s[128|h>>12&63]+s[128|h>>6&63]+s[128|63&h])}return l},f=function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],i=0;i=s||c<0)throw new o("Incorrect index");for(var h=new e(s),u=0;u=0:p>f;f+=m)f in d&&(h=n(h,d[f],f,u));return h}};t.exports={left:c(!1),right:c(!0)}},d5d6:function(t,e,n){"use strict";var i=n("ebb5"),r=n("b727").forEach,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("forEach",(function(t){r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},d612:function(t,e,n){var i=n("7b83"),r=n("7ed2"),o=n("dc0f");function a(t){var e=-1,n=null==t?0:t.length;this.__data__=new i;while(++e>>1|K<<31)^(X>>>8|K<<24)^X>>>7,$=(K>>>1|X<<31)^(K>>>8|X<<24)^(K>>>7|X<<25),tt=h[F-2],et=tt.high,nt=tt.low,it=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,rt=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=h[F-7],at=ot.high,st=ot.low,lt=h[F-16],ct=lt.high,ht=lt.low;V=$+st,Q=q+at+(V>>>0<$>>>0?1:0),V+=rt,Q=Q+it+(V>>>0>>0?1:0),V+=ht,Q=Q+ct+(V>>>0>>0?1:0),H.high=Q,H.low=V}var ut=N&G^~N&Z,dt=z&B^~z&U,pt=S&O^S&I^O&I,ft=P&D^P&R^D&R,mt=(S>>>28|P<<4)^(S<<30|P>>>2)^(S<<25|P>>>7),gt=(P>>>28|S<<4)^(P<<30|S>>>2)^(P<<25|S>>>7),yt=(N>>>14|z<<18)^(N>>>18|z<<14)^(N<<23|z>>>9),_t=(z>>>14|N<<18)^(z>>>18|N<<14)^(z<<23|N>>>9),vt=c[F],bt=vt.high,wt=vt.low,xt=W+_t,Lt=Y+yt+(xt>>>0>>0?1:0),Mt=(xt=xt+dt,Lt=Lt+ut+(xt>>>0
>>0?1:0),xt=xt+wt,Lt=Lt+bt+(xt>>>0>>0?1:0),xt=xt+V,Lt=Lt+Q+(xt>>>0>>0?1:0),gt+ft),kt=mt+pt+(Mt>>>0>>0?1:0);Y=Z,W=U,Z=G,U=B,G=N,B=z,z=C+xt|0,N=j+Lt+(z>>>0>>0?1:0)|0,j=I,C=R,I=O,R=D,O=S,D=P,P=xt+Mt|0,S=Lt+kt+(P>>>0>>0?1:0)|0}f=i.low=f+P,i.high=p+S+(f>>>0

>>0?1:0),g=r.low=g+D,r.high=m+O+(g>>>0>>0?1:0),_=o.low=_+R,o.high=y+I+(_>>>0>>0?1:0),b=a.low=b+C,a.high=v+j+(b>>>0>>0?1:0),x=s.low=x+z,s.high=w+N+(x>>>0>>0?1:0),M=l.low=M+B,l.high=L+G+(M>>>0>>0?1:0),T=u.low=T+U,u.high=k+Z+(T>>>0>>0?1:0),E=d.low=E+W,d.high=A+Y+(E>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(i+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process();var r=this._hash.toX32();return r},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=i._createHelper(u),e.HmacSHA512=i._createHmacHelper(u)}(),t.SHA512}))},d784:function(t,e,n){"use strict";n("ac1f");var i=n("c65b"),r=n("cb2d"),o=n("9263"),a=n("d039"),s=n("b622"),l=n("9112"),c=s("species"),h=RegExp.prototype;t.exports=function(t,e,n,u){var d=s(t),p=!a((function(){var e={};return e[d]=function(){return 7},7!==""[t](e)})),f=p&&!a((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=!0,null},n[d](""),!e}));if(!p||!f||n){var m=/./[d],g=e(d,""[t],(function(t,e,n,r,a){var s=e.exec;return s===o||s===h.exec?p&&!a?{done:!0,value:i(m,e,n,r)}:{done:!0,value:i(t,n,e,r)}:{done:!1}}));r(String.prototype,t,g[0]),r(h,d,g[1])}u&&l(h[d],"sham",!0)}},d81d:function(t,e,n){"use strict";var i=n("23e7"),r=n("b727").map,o=n("1dde"),a=o("map");i({target:"Array",proto:!0,forced:!a},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},d86b:function(t,e,n){"use strict";var i=n("d039");t.exports=i((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d998:function(t,e,n){"use strict";var i=n("342f");t.exports=/MSIE|Trident/.test(i)},d9b5:function(t,e,n){"use strict";var i=n("d066"),r=n("1626"),o=n("3a9b"),a=n("fdbf"),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,s(t))}},d9e2:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("2ba4"),a=n("e5cb"),s="WebAssembly",l=r[s],c=7!==new Error("e",{cause:7}).cause,h=function(t,e){var n={};n[t]=a(t,e,c),i({global:!0,constructor:!0,arity:1,forced:c},n)},u=function(t,e){if(l&&l[t]){var n={};n[t]=a(s+"."+t,e,c),i({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};h("Error",(function(t){return function(e){return o(t,this,arguments)}})),h("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),h("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),h("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),h("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),h("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),h("URIError",(function(t){return function(e){return o(t,this,arguments)}})),u("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),u("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),u("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},d9f5:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("c65b"),a=n("e330"),s=n("c430"),l=n("83ab"),c=n("04f8"),h=n("d039"),u=n("1a2d"),d=n("3a9b"),p=n("825a"),f=n("fc6a"),m=n("a04b"),g=n("577e"),y=n("5c6c"),_=n("7c73"),v=n("df75"),b=n("241c"),w=n("057f"),x=n("7418"),L=n("06cf"),M=n("9bf2"),k=n("37e8"),T=n("d1e7"),A=n("cb2d"),E=n("edd0"),S=n("5692"),P=n("f772"),O=n("d012"),D=n("90e3"),I=n("b622"),R=n("e538"),j=n("e065"),C=n("57b9"),N=n("d44e"),z=n("69f3"),G=n("b727").forEach,B=P("hidden"),Z="Symbol",U="prototype",Y=z.set,W=z.getterFor(Z),F=Object[U],V=r.Symbol,Q=V&&V[U],H=r.RangeError,J=r.TypeError,X=r.QObject,K=L.f,q=M.f,$=w.f,tt=T.f,et=a([].push),nt=S("symbols"),it=S("op-symbols"),rt=S("wks"),ot=!X||!X[U]||!X[U].findChild,at=function(t,e,n){var i=K(F,e);i&&delete F[e],q(t,e,n),i&&t!==F&&q(F,e,i)},st=l&&h((function(){return 7!==_(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?at:q,lt=function(t,e){var n=nt[t]=_(Q);return Y(n,{type:Z,tag:t,description:e}),l||(n.description=e),n},ct=function(t,e,n){t===F&&ct(it,e,n),p(t);var i=m(e);return p(n),u(nt,i)?(n.enumerable?(u(t,B)&&t[B][i]&&(t[B][i]=!1),n=_(n,{enumerable:y(0,!1)})):(u(t,B)||q(t,B,y(1,_(null))),t[B][i]=!0),st(t,i,n)):q(t,i,n)},ht=function(t,e){p(t);var n=f(e),i=v(n).concat(mt(n));return G(i,(function(e){l&&!o(dt,n,e)||ct(t,e,n[e])})),t},ut=function(t,e){return void 0===e?_(t):ht(_(t),e)},dt=function(t){var e=m(t),n=o(tt,this,e);return!(this===F&&u(nt,e)&&!u(it,e))&&(!(n||!u(this,e)||!u(nt,e)||u(this,B)&&this[B][e])||n)},pt=function(t,e){var n=f(t),i=m(e);if(n!==F||!u(nt,i)||u(it,i)){var r=K(n,i);return!r||!u(nt,i)||u(n,B)&&n[B][i]||(r.enumerable=!0),r}},ft=function(t){var e=$(f(t)),n=[];return G(e,(function(t){u(nt,t)||u(O,t)||et(n,t)})),n},mt=function(t){var e=t===F,n=$(e?it:f(t)),i=[];return G(n,(function(t){!u(nt,t)||e&&!u(F,t)||et(i,nt[t])})),i};c||(V=function(){if(d(Q,this))throw new J("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=D(t),n=function(t){var i=void 0===this?r:this;i===F&&o(n,it,t),u(i,B)&&u(i[B],e)&&(i[B][e]=!1);var a=y(1,t);try{st(i,e,a)}catch(s){if(!(s instanceof H))throw s;at(i,e,a)}};return l&&ot&&st(F,e,{configurable:!0,set:n}),lt(e,t)},Q=V[U],A(Q,"toString",(function(){return W(this).tag})),A(V,"withoutSetter",(function(t){return lt(D(t),t)})),T.f=dt,M.f=ct,k.f=ht,L.f=pt,b.f=w.f=ft,x.f=mt,R.f=function(t){return lt(I(t),t)},l&&(E(Q,"description",{configurable:!0,get:function(){return W(this).description}}),s||A(F,"propertyIsEnumerable",dt,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:V}),G(v(rt),(function(t){j(t)})),i({target:Z,stat:!0,forced:!c},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),i({target:"Object",stat:!0,forced:!c,sham:!l},{create:ut,defineProperty:ct,defineProperties:ht,getOwnPropertyDescriptor:pt}),i({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ft}),C(),N(V,Z),O[B]=!0},da03:function(t,e,n){var i=n("2b3e"),r=i["__core-js_shared__"];t.exports=r},da84:function(t,e,n){"use strict";(function(e){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dad3:function(t){t.exports=JSON.parse('{"agence_s":{"key":"agence_s","w":32,"h":34,"sx":-4,"sy":-4},"border_s":{"key":"border_s","w":32,"h":34,"sx":-44,"sy":-4},"cargo_s":{"key":"cargo_s","w":32,"h":34,"sx":-84,"sy":-4},"charterer_s":{"key":"charterer_s","w":32,"h":32,"sx":-204,"sy":-4},"checkout_s":{"key":"checkout_s","w":32,"h":34,"sx":-4,"sy":-46},"civilian_authority_s":{"key":"civilian_authority_s","w":32,"h":32,"sx":-204,"sy":-44},"commune_s":{"key":"commune_s","w":32,"h":34,"sx":-44,"sy":-46},"consultants_surveryors_s":{"key":"consultants_surveryors_s","w":32,"h":32,"sx":-204,"sy":-84},"custom_s":{"key":"custom_s","w":32,"h":34,"sx":-84,"sy":-46},"emergency_repair_s":{"key":"emergency_repair_s","w":32,"h":32,"sx":-204,"sy":-124},"engine_builder_s":{"key":"engine_builder_s","w":32,"h":32,"sx":-4,"sy":-172},"equipment_agency_s":{"key":"equipment_agency_s","w":32,"h":32,"sx":-44,"sy":-172},"f_w_supplier_s":{"key":"f_w_supplier_s","w":32,"h":32,"sx":-84,"sy":-172},"food_s":{"key":"food_s","w":32,"h":34,"sx":-124,"sy":-4},"hydraulic_service_s":{"key":"hydraulic_service_s","w":32,"h":32,"sx":-124,"sy":-172},"help_s":{"key":"help_s","w":32,"h":34,"sx":-124,"sy":-46},"inspect_s":{"key":"inspect_s","w":32,"h":32,"sx":-164,"sy":-172},"instrument_correction_and_survey_s":{"key":"instrument_correction_and_survey_s","w":32,"h":32,"sx":-204,"sy":-172},"insurance_s":{"key":"insurance_s","w":32,"h":34,"sx":-4,"sy":-88},"l_o_supplier_s":{"key":"l_o_supplier_s","w":32,"h":32,"sx":-244,"sy":-4},"labor_s":{"key":"labor_s","w":32,"h":34,"sx":-44,"sy":-88},"labor_service_s":{"key":"labor_service_s","w":32,"h":32,"sx":-244,"sy":-44},"lawyer_s":{"key":"lawyer_s","w":32,"h":32,"sx":-244,"sy":-84},"leading_s":{"key":"leading_s","w":32,"h":34,"sx":-84,"sy":-88},"loan_s":{"key":"loan_s","w":32,"h":32,"sx":-244,"sy":-124},"logistics_s":{"key":"logistics_s","w":32,"h":32,"sx":-244,"sy":-164},"lsaffe_survey_s":{"key":"lsaffe_survey_s","w":32,"h":32,"sx":-4,"sy":-212},"marine_company_internet_s":{"key":"marine_company_internet_s","w":32,"h":32,"sx":-44,"sy":-212},"marine_equipment_s":{"key":"marine_equipment_s","w":32,"h":32,"sx":-84,"sy":-212},"maritime_organisation_s":{"key":"maritime_organisation_s","w":32,"h":32,"sx":-124,"sy":-212},"maritime_s":{"key":"maritime_s","w":32,"h":34,"sx":-124,"sy":-88},"me_remote_controlelectrical_and_automation_s":{"key":"me_remote_controlelectrical_and_automation_s","w":32,"h":32,"sx":-164,"sy":-212},"modify_s":{"key":"modify_s","w":32,"h":34,"sx":-164,"sy":-4},"officer_s":{"key":"officer_s","w":32,"h":34,"sx":-164,"sy":-46},"oil_s":{"key":"oil_s","w":32,"h":34,"sx":-164,"sy":-88},"paint_supplier_s":{"key":"paint_supplier_s","w":32,"h":32,"sx":-204,"sy":-212},"port_agent_s":{"key":"port_agent_s","w":32,"h":32,"sx":-244,"sy":-212},"port_facility_security_s":{"key":"port_facility_security_s","w":32,"h":32,"sx":-284,"sy":-4},"port_operator_s":{"key":"port_operator_s","w":32,"h":32,"sx":-284,"sy":-44},"port_operator_ss":{"key":"port_operator_ss","w":32,"h":32,"sx":-284,"sy":-84},"port_repairer_s":{"key":"port_repairer_s","w":32,"h":32,"sx":-284,"sy":-124},"protection_and_indemnity_s":{"key":"protection_and_indemnity_s","w":32,"h":32,"sx":-284,"sy":-164},"provision_supplier_s":{"key":"provision_supplier_s","w":32,"h":32,"sx":-284,"sy":-204},"pull_s":{"key":"pull_s","w":32,"h":34,"sx":-4,"sy":-130},"receive_s":{"key":"receive_s","w":32,"h":34,"sx":-44,"sy":-130},"recycle_shipyard_s":{"key":"recycle_shipyard_s","w":32,"h":32,"sx":-4,"sy":-252},"seafarer_service_s":{"key":"seafarer_service_s","w":32,"h":32,"sx":-44,"sy":-252},"ship_breakers_s":{"key":"ship_breakers_s","w":32,"h":32,"sx":-84,"sy":-252},"ship_broker_s":{"key":"ship_broker_s","w":32,"h":32,"sx":-124,"sy":-252},"ship_building_s":{"key":"ship_building_s","w":32,"h":32,"sx":-164,"sy":-252},"ship_chandler_s":{"key":"ship_chandler_s","w":32,"h":32,"sx":-204,"sy":-252},"ship_manager_s":{"key":"ship_manager_s","w":32,"h":32,"sx":-244,"sy":-252},"ship_owner_s":{"key":"ship_owner_s","w":32,"h":32,"sx":-284,"sy":-252},"ship_repair_s":{"key":"ship_repair_s","w":32,"h":32,"sx":-324,"sy":-4},"stevedore_s":{"key":"stevedore_s","w":32,"h":32,"sx":-324,"sy":-44},"tc_overhaul_s":{"key":"tc_overhaul_s","w":32,"h":32,"sx":-324,"sy":-84},"traffic_s":{"key":"traffic_s","w":32,"h":34,"sx":-84,"sy":-130},"training_s":{"key":"training_s","w":32,"h":32,"sx":-324,"sy":-124},"underwater_survey_s":{"key":"underwater_survey_s","w":32,"h":32,"sx":-324,"sy":-164},"universities_s":{"key":"universities_s","w":32,"h":34,"sx":-124,"sy":-130},"uradio_survey__s":{"key":"uradio_survey__s","w":32,"h":32,"sx":-324,"sy":-204},"wadingproject_s":{"key":"wadingproject_s","w":32,"h":34,"sx":-164,"sy":-130}}')},db9e:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAABUCAYAAADu10VkAAAACXBIWXMAAC4jAAAuIwF4pT92AAAKsmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAA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SwC1qTU4iwoGv7IKRD2ooXRwhuvPY/bryVFmN1c01U6UtZh1XDplH4Eb9qY3csjJVOpo48qB7sq3X/B1tQXbCi6oIVVResqLpgRdUFK6p/ARrR4YpBv5L6AAAAAElFTkSuQmCC"},dbb4:function(t,e,n){"use strict";var i=n("23e7"),r=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),l=n("8418");i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(t){var e,n,i=a(t),r=s.f,c=o(i),h={},u=0;while(c.length>u)n=r(i,e=c[u++]),void 0!==n&&l(h,e,n);return h}})},dbe5:function(t,e,n){"use strict";var i=n("da84"),r=n("d039"),o=n("2d00"),a=n("6069"),s=n("6c59"),l=n("605d"),c=i.structuredClone;t.exports=!!c&&!r((function(){if(s&&o>92||l&&o>94||a&&o>97)return!1;var t=new ArrayBuffer(8),e=c(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength}))},dc0f:function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},dc4a:function(t,e,n){"use strict";var i=n("59ed"),r=n("7234");t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},dc57:function(t,n){var i=Function.prototype,r=i.toString;function o(t){if(null!=t){try{return r.call(t)}catch(e){}try{return t+""}catch(e){}}return""}t.exports=o},dc99:function(t,e,n){"use strict";t.exports=RangeError},dca8:function(t,e,n){"use strict";var i=n("23e7"),r=n("bb2f"),o=n("d039"),a=n("861d"),s=n("f183").onFreeze,l=Object.freeze,c=o((function(){l(1)}));i({target:"Object",stat:!0,forced:c,sham:!r},{freeze:function(t){return l&&a(t)?l(s(t)):t}})},dcbe:function(t,e,n){var i=n("30c9"),r=n("1310");function o(t){return r(t)&&i(t)}t.exports=o},dcc3:function(t,e,n){"use strict";var i=n("ae93").IteratorPrototype,r=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),l=function(){return this};t.exports=function(t,e,n,c){var h=e+" Iterator";return t.prototype=r(i,{next:o(+!c,n)}),a(t,h,!1,!0),s[h]=l,t}},ddb0:function(t,e,n){"use strict";var i=n("da84"),r=n("fdbc"),o=n("785a"),a=n("e260"),s=n("9112"),l=n("d44e"),c=n("b622"),h=c("iterator"),u=a.values,d=function(t,e){if(t){if(t[h]!==u)try{s(t,h,u)}catch(i){t[h]=u}if(l(t,e,!0),r[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(i){t[n]=a[n]}}};for(var p in r)d(i[p]&&i[p].prototype,p);d(o,"DOMTokenList")},df2f:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=n.Hasher,o=e.algo,a=[],s=o.SHA1=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else{var h=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=h<<1|h>>>31}var u=(i<<5|i>>>27)+l+a[c];u+=c<20?1518500249+(r&o|~r&s):c<40?1859775393+(r^o^s):c<60?(r&o|r&s|o&s)-1894007588:(r^o^s)-899497514,l=s,s=o,o=r<<30|r>>>2,r=i,i=u}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(i+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s)}(),t.SHA1}))},df75:function(t,e,n){"use strict";var i=n("ca84"),r=n("7839");t.exports=Object.keys||function(t){return i(t,r)}},df7e:function(t,e,n){"use strict";var i=n("07fa");t.exports=function(t,e){for(var n=i(t),r=new e(n),o=0;o2?n:i(e),a=new t(o);while(o>r)a[r]=e[r++];return a}},e01a:function(t,e,n){"use strict";var i=n("23e7"),r=n("83ab"),o=n("da84"),a=n("e330"),s=n("1a2d"),l=n("1626"),c=n("3a9b"),h=n("577e"),u=n("edd0"),d=n("e893"),p=o.Symbol,f=p&&p.prototype;if(r&&l(p)&&(!("description"in f)||void 0!==p().description)){var m={},g=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:h(arguments[0]),e=c(f,this)?new p(t):void 0===t?p():p(t);return""===t&&(m[e]=!0),e};d(g,p),g.prototype=f,f.constructor=g;var y="Symbol(description detection)"===String(p("description detection")),_=a(f.valueOf),v=a(f.toString),b=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),x=a("".slice);u(f,"description",{configurable:!0,get:function(){var t=_(this);if(s(m,t))return"";var e=v(t),n=y?x(e,7,-1):w(e,b,"$1");return""===n?void 0:n}}),i({global:!0,constructor:!0,forced:!0},{Symbol:g})}},e065:function(t,e,n){"use strict";var i=n("428f"),r=n("1a2d"),o=n("e538"),a=n("9bf2").f;t.exports=function(t){var e=i.Symbol||(i.Symbol={});r(e,t)||a(e,t,{value:o.f(t)})}},e163:function(t,e,n){"use strict";var i=n("1a2d"),r=n("1626"),o=n("7b0b"),a=n("f772"),s=n("e177"),l=a("IE_PROTO"),c=Object,h=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=o(t);if(i(e,l))return e[l];var n=e.constructor;return r(n)&&e instanceof n?n.prototype:e instanceof c?h:null}},e177:function(t,e,n){"use strict";var i=n("d039");t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e24b:function(t,e,n){var i=n("49f4"),r=n("1efc"),o=n("bbc0"),a=n("7a48"),s=n("2524");function l(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e=e.length)return t.target=void 0,c(void 0,!0);switch(t.kind){case"keys":return c(n,!1);case"values":return c(e[n],!1)}return c([n,e[n]],!1)}),"values");var m=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!h&&u&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(g){}},e267:function(t,e,n){"use strict";var i=n("e330"),r=n("e8b5"),o=n("1626"),a=n("c6b6"),s=n("577e"),l=i([].push);t.exports=function(t){if(o(t))return t;if(r(t)){for(var e=t.length,n=[],i=0;i1&&(s=l(s,o(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:c},e5cb:function(t,e,n){"use strict";var i=n("d066"),r=n("1a2d"),o=n("9112"),a=n("3a9b"),s=n("d2bb"),l=n("e893"),c=n("aeb0"),h=n("7156"),u=n("e391"),d=n("ab36"),p=n("6f19"),f=n("83ab"),m=n("c430");t.exports=function(t,e,n,g){var y="stackTraceLimit",_=g?2:1,v=t.split("."),b=v[v.length-1],w=i.apply(null,v);if(w){var x=w.prototype;if(!m&&r(x,"cause")&&delete x.cause,!n)return w;var L=i("Error"),M=e((function(t,e){var n=u(g?e:t,void 0),i=g?new w(t):new w;return void 0!==n&&o(i,"message",n),p(i,M,i.stack,2),this&&a(x,this)&&h(i,this,M),arguments.length>_&&d(i,arguments[_]),i}));if(M.prototype=x,"Error"!==b?s?s(M,L):l(M,L,{name:!0}):f&&y in w&&(c(M,w,y),c(M,w,"prepareStackTrace")),l(M,w),!m)try{x.name!==b&&o(x,"name",b),x.constructor=M}catch(k){}return M}}},e61b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.x64,s=a.Word,l=n.algo,c=[],h=[],u=[];(function(){for(var t=1,e=0,n=0;n<24;n++){c[t+5*e]=(n+1)*(n+2)/2%64;var i=e%5,r=(2*t+3*e)%5;t=i,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)h[t+5*e]=e+(2*t+3*e)%5*5;for(var o=1,a=0;a<24;a++){for(var l=0,d=0,p=0;p<7;p++){if(1&o){var f=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=n[r];s.high^=a,s.low^=o}for(var l=0;l<24;l++){for(var p=0;p<5;p++){for(var f=0,m=0,g=0;g<5;g++){s=n[p+5*g];f^=s.high,m^=s.low}var y=d[p];y.high=f,y.low=m}for(p=0;p<5;p++){var _=d[(p+4)%5],v=d[(p+1)%5],b=v.high,w=v.low;for(f=_.high^(b<<1|w>>>31),m=_.low^(w<<1|b>>>31),g=0;g<5;g++){s=n[p+5*g];s.high^=f,s.low^=m}}for(var x=1;x<25;x++){s=n[x];var L=s.high,M=s.low,k=c[x];k<32?(f=L<>>32-k,m=M<>>32-k):(f=M<>>64-k,m=L<>>64-k);var T=d[h[x]];T.high=f,T.low=m}var A=d[0],E=n[0];A.high=E.high,A.low=E.low;for(p=0;p<5;p++)for(g=0;g<5;g++){x=p+5*g,s=n[x];var S=d[x],P=d[(p+1)%5+5*g],O=d[(p+2)%5+5*g];s.high=S.high^~P.high&O.high,s.low=S.low^~P.low&O.low}s=n[0];var D=u[l];s.high^=D.high,s.low^=D.low}},_doFinalize:function(){var t=this._data,n=t.words,i=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],h=0;h>>24)|4278255360&(d<<24|d>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(d)}return new r.init(c,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});n.SHA3=o._createHelper(p),n.HmacSHA3=o._createHmacHelper(p)}(Math),t.SHA3}))},e667:function(t,e,n){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6af:function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"e",(function(){return r})),n.d(e,"f",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"h",(function(){return d})),n.d(e,"i",(function(){return p})),n.d(e,"c",(function(){return f}));n("a15b"),n("fb6a");var i=function(){var t="tile1.hifleet.com;tile2.hifleet.com;tile3.hifleet.com;tile4.hifleet.com;tile5.hifleet.com;tile6.hifleet.com;tile7.hifleet.com;tile8.hifleet.com;tile9.hifleet.com;tile10.hifleet.com";if(window&&window._hf_tile_url_hosts&&(t=window._hf_tile_url_hosts),t){var e=t.split(";");if(e.length>0)return e}return[]},r=function(){return window&&window._hf_tile_url_hosts_protocol?window._hf_tile_url_hosts_protocol:"https"},o=function(){var t="mt1.hifleet.com;mt2.hifleet.com;mt3.hifleet.com;mt4.hifleet.com;mt5.hifleet.com";if(window&&window._hf_url_hosts&&(t=window._hf_url_hosts),t){var e=t.split(";");if(e.length>0)return e}return[]},a=function(){return window&&window._hf_url_host_protocol?window._hf_tile_url_protocol:"https"},s=function(t,e,n,i){var r=t,o=r.split("/");if(t&&-1!=t.indexOf("http")){var a=o.slice(3);r="/"+a.join("/")}return r},l=function(t,e,n,i){var r=t,o=r.split("/"),a=n[i];if("/"==a){var l=s(t,e,n,i);return l}return t&&-1!=t.indexOf("http")?(o[0]=e+":",o[2]=a,r=o.join("/")):r=e+"://"+a+r,r},c=function(){return window&&window._hf_api_host?window._hf_api_host:"api.hifleet.com"},h=function(){return window&&window._hf_api_host_protocol?window._hf_api_host_protocol:"https"},u=function(t){var e=c(),n=h();return n+"://"+e+t},d=function(){var t="w1.hifleet.com;w2.hifleet.com;w3.hifleet.com;w4.hifleet.com;w5.hifleet.com;w6.hifleet.com;w7.hifleet.com;w8.hifleet.com;w9.hifleet.com;w10.hifleet.com";if(window&&window._hf_w10_url_hosts&&(t=window._hf_w10_url_hosts),t){var e=t.split(";");if(e.length>0)return e}return[]},p=function(){return window&&window._hf_w10_url_hosts_protocol?window._hf_w10_url_hosts_protocol:"https"},f=function(t){var e="https://static.hifleet.com/gallery/alpha"+t;return window&&window._hf_oos_url&&(e=window._hf_oos_url+t),e}},e6cf:function(t,e,n){"use strict";n("5e7e"),n("14e5"),n("cc98"),n("3529"),n("f22b"),n("7149")},e76a:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABW0lEQVRYR+2VIU8DMRiG3za7A8IPIFdICDNbZyYRIBBgcExikPAHwGGQ8AfAYdAoFCQIDJaZbiBmyC33Ay659LgrGRnJxLFrO8ZC0srL9/V5vvfypQQzPmTGfEwkEHzwvcEA/Yq4tR1kIgEm+csAHPqi+ecCLOHHoDj/Auc4CefFhY2EVQKrMQ9SD28AFofQOPO8pYi0Y1MJK4FA1i8JyOEoTEFd9f3O0dQFgrSxSZR6KgJRlTff57ptEwnjBJjk9wC2f4A8hL7YmZrAsqwfKJDrcQBF0TJZS/0EHrcqbCN6BbBWMmEv9EVVNwVtgSDlZ0ThVOtig7XUEmBJrQZKO1rwYVHoC627tYqYbNwAat9EQHctSwVWEr6bU9yZwL9rsyyvRgvd3rjeUoEg5c9EYd1GAEDpWpYKFIGZ5Krou+5/H+11Ai4Bl4BLwCXgEvifCVg+zYVtVgn8psAn20iSITmrQkcAAAAASUVORK5CYII="},e893:function(t,e,n){"use strict";var i=n("1a2d"),r=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e,n){for(var s=r(e),l=a.f,c=o.f,h=0;h1?arguments[1]:void 0)}))},e95a:function(t,e,n){"use strict";var i=n("b622"),r=n("3f8c"),o=i("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},e9c4:function(t,e,n){"use strict";var i=n("23e7"),r=n("d066"),o=n("2ba4"),a=n("c65b"),s=n("e330"),l=n("d039"),c=n("1626"),h=n("d9b5"),u=n("f36a"),d=n("e267"),p=n("04f8"),f=String,m=r("JSON","stringify"),g=s(/./.exec),y=s("".charAt),_=s("".charCodeAt),v=s("".replace),b=s(1..toString),w=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,L=/^[\uDC00-\uDFFF]$/,M=!p||l((function(){var t=r("Symbol")("stringify detection");return"[null]"!==m([t])||"{}"!==m({a:t})||"{}"!==m(Object(t))})),k=l((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),T=function(t,e){var n=u(arguments),i=d(e);if(c(i)||void 0!==t&&!h(t))return n[1]=function(t,e){if(c(i)&&(e=a(i,this,f(t),e)),!h(e))return e},o(m,null,n)},A=function(t,e,n){var i=y(n,e-1),r=y(n,e+1);return g(x,t)&&!g(L,r)||g(L,t)&&!g(x,i)?"\\u"+b(_(t,0),16):t};m&&i({target:"JSON",stat:!0,arity:3,forced:M||k},{stringify:function(t,e,n){var i=u(arguments),r=o(M?T:m,null,i);return k&&"string"==typeof r?v(r,w,A):r}})},e9fe:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC"},ea52:function(t,e,n){!function(t,e){e(n("ef1d"),n("25a5"))}(0,(function(t,e){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var n={_map:null,_canvas:null,_context:null,_markers:[],_markersTree:new(e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e),_positionsTree:new e,_icons:{},addTo:function(t){return t.addLayer(this),this},getBounds:function(){var e=new t.LatLngBounds;return this._markers.forEach((function(t){e.extend(t.getLatLng())})),e},redraw:function(){this._redraw(!0)},clear:function(){this._positionsTree=new e,this._markersTree=new e,this._markers=[],this._redraw(!0)},addMarker:function(t){var e=this._addMarker(t),n=e.markerBox;t=e.positionBox,e=e.isVisible;n&&e&&this._markersTree.insert(n),t&&this._positionsTree.insert(t)},addMarkers:function(t){var e=this,n=[],i=[];t.forEach((function(t){var r=e._addMarker(t),o=r.markerBox;t=r.positionBox,r=r.isVisible;o&&r&&n.push(o),t&&i.push(t)})),this._markersTree.load(n),this._positionsTree.load(i)},removeMarker:function(t){var e=t.getLatLng(),n=this._map.getBounds().contains(e);t={minX:e.lng,minY:e.lat,maxX:e.lng,maxY:e.lat,marker:t};this._positionsTree.remove(t,(function(t,e){return t.marker._leaflet_id===e.marker._leaflet_id})),n&&this._redraw(!0)},removeMarkers:function(t){var e=this,n=!1;t.forEach((function(t){var i=t.getLatLng(),r=e._map.getBounds().contains(i);t={minX:i.lng,minY:i.lat,maxX:i.lng,maxY:i.lat,marker:t};e._positionsTree.remove(t,(function(t,e){return t.marker._leaflet_id===e.marker._leaflet_id})),r&&(n=!0)})),n&&this._redraw(!0)},initialize:function(e){t.Util.setOptions(this,e)},onAdd:function(t){this._map=t,this._initCanvas(),this.getPane().appendChild(this._canvas),t.on("moveend",this._reset,this),t.on("resize",this._reset,this),t.on("click",this._fire,this),t.on("mousemove",this._fire,this),t._zoomAnimated&&t.on("zoomanim",this._animateZoom,this)},onRemove:function(t){this.getPane().removeChild(this._canvas),t.off("click",this._fire,this),t.off("mousemove",this._fire,this),t.off("moveend",this._reset,this),t.off("resize",this._reset,this),t._zoomAnimated&&t.off("zoomanim",this._animateZoom,this)},setOptions:function(e){return t.Util.setOptions(this,e),this.redraw()},_initCanvas:function(){var e=this._map.getSize(),n=e.x,i=e.y;e=this._map.options.zoomAnimation&&t.Browser.any3d;this._canvas=t.DomUtil.create("canvas","leaflet-markers-canvas-layer leaflet-layer"),this._canvas.width=n,this._canvas.height=i,this._context=this._canvas.getContext("2d"),t.DomUtil.addClass(this._canvas,"leaflet-zoom-"+(e?"animated":"hide"))},_addMarker:function(e){if("markerPane"!==e.options.pane||!e.options.icon)return console.error("This is not a marker",e),{markerBox:null,positionBox:null,isVisible:null};e._map=this._map,t.Util.stamp(e);var n=e.getLatLng(),i=this._map.getBounds().contains(n),r=this._map.latLngToContainerPoint(n),o=r.x,a=r.y,s=e.options.icon.options;r=s.iconSize,s=s.iconAnchor,s={minX:o-s[0],minY:a-s[1],maxX:o+r[0]-s[0],maxY:a+r[1]-s[1],marker:e},n={minX:n.lng,minY:n.lat,maxX:n.lng,maxY:n.lat,marker:e};return i&&this._drawMarker(e,{x:o,y:a}),this._markers.push(e),{markerBox:s,positionBox:n,isVisible:i}},_drawMarker:function(t,e){var n=this,i=e.x,r=e.y,o=t.options.icon.options.iconUrl;t.image?this._drawImage(t,{x:i,y:r}):this._icons[o]?(t.image=this._icons[o].image,this._icons[o].isLoaded?this._drawImage(t,{x:i,y:r}):this._icons[o].elements.push({marker:t,x:i,y:r})):((e=new Image).src=o,t.image=e,this._icons[o]={image:e,isLoaded:!1,elements:[{marker:t,x:i,y:r}]},e.onload=function(){n._icons[o].isLoaded=!0,n._icons[o].elements.forEach((function(t){var e=t.marker,i=t.x;t=t.y;n._drawImage(e,{x:i,y:t})}))})},_drawImage:function(t,e){var n=e.x,i=e.y,r=t.options.icon.options,o=r.rotationAngle;e=r.iconAnchor,r=r.iconSize,o=o||0;this._context.save(),this._context.translate(n,i),this._context.rotate(o*Math.PI/180),this._context.drawImage(t.image,-e[0],-e[1],r[0],r[1]),this._context.restore()},_redraw:function(t){var e,n=this;t&&this._context.clearRect(0,0,this._canvas.width,this._canvas.height),this._map&&this._positionsTree&&(t={minX:(t=this._map.getBounds()).getWest(),minY:t.getSouth(),maxX:t.getEast(),maxY:t.getNorth()},e=[],this._positionsTree.search(t).forEach((function(t){var i=t.marker,r=i.getLatLng(),o=n._map.latLngToContainerPoint(r),a=o.x;t=o.y,r=i.options.icon.options,o=r.iconSize,r=r.iconAnchor,r={minX:a-r[0],minY:t-r[1],maxX:a+o[0]-r[0],maxY:t+o[1]-r[1],marker:i};e.push(r),n._drawMarker(i,{x:a,y:t})})),this._markersTree.clear(),this._markersTree.load(e))},_reset:function(){var e=this._map.containerPointToLayerPoint([0,0]);t.DomUtil.setPosition(this._canvas,e);var n=this._map.getSize();e=n.x,n=n.y;this._canvas.width=e,this._canvas.height=n,this._redraw()},_fire:function(t){var e,n;this._markersTree&&(e=(n=t.containerPoint).x,n=n.y,(n=this._markersTree.search({minX:e,minY:n,maxX:e,maxY:n}))&&n.length?(this._map._container.style.cursor="pointer",n=n[0].marker,"click"===t.type&&n.listens("click")&&n.fire("click"),"mousemove"===t.type&&(this._mouseOverMarker&&this._mouseOverMarker!==n&&this._mouseOverMarker.listens("mouseout")&&this._mouseOverMarker.fire("mouseout"),this._mouseOverMarker&&this._mouseOverMarker===n||(this._mouseOverMarker=n).listens("mouseover")&&n.fire("mouseover"))):(this._map._container.style.cursor="","mousemove"===t.type&&this._mouseOverMarker&&(this._mouseOverMarker.listens("mouseout")&&this._mouseOverMarker.fire("mouseout"),delete this._mouseOverMarker)))},_animateZoom:function(e){var n=this._map.getZoomScale(e.zoom);e=this._map._latLngBoundsToNewLayerBounds(this._map.getBounds(),e.zoom,e.center).min;t.DomUtil.setTransform(this._canvas,e,n)}};t.MarkersCanvas=t.Layer.extend(n)}))},eac5:function(t,e){var n=Object.prototype;function i(t){var e=t&&t.constructor,i="function"==typeof e&&e.prototype||n;return t===i}t.exports=i},eac50:function(t,e,n){"use strict";var i=n("861d"),r=Math.floor;t.exports=Number.isInteger||function(t){return!i(t)&&isFinite(t)&&r(t)===t}},ebb5:function(t,e,n){"use strict";var i,r,o,a=n("4b11"),s=n("83ab"),l=n("da84"),c=n("1626"),h=n("861d"),u=n("1a2d"),d=n("f5df"),p=n("0d51"),f=n("9112"),m=n("cb2d"),g=n("edd0"),y=n("3a9b"),_=n("e163"),v=n("d2bb"),b=n("b622"),w=n("90e3"),x=n("69f3"),L=x.enforce,M=x.get,k=l.Int8Array,T=k&&k.prototype,A=l.Uint8ClampedArray,E=A&&A.prototype,S=k&&_(k),P=T&&_(T),O=Object.prototype,D=l.TypeError,I=b("toStringTag"),R=w("TYPED_ARRAY_TAG"),j="TypedArrayConstructor",C=a&&!!v&&"Opera"!==d(l.opera),N=!1,z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},G={BigInt64Array:8,BigUint64Array:8},B=function(t){if(!h(t))return!1;var e=d(t);return"DataView"===e||u(z,e)||u(G,e)},Z=function(t){var e=_(t);if(h(e)){var n=M(e);return n&&u(n,j)?n[j]:Z(e)}},U=function(t){if(!h(t))return!1;var e=d(t);return u(z,e)||u(G,e)},Y=function(t){if(U(t))return t;throw new D("Target is not a typed array")},W=function(t){if(c(t)&&(!v||y(S,t)))return t;throw new D(p(t)+" is not a typed array constructor")},F=function(t,e,n,i){if(s){if(n)for(var r in z){var o=l[r];if(o&&u(o.prototype,t))try{delete o.prototype[t]}catch(a){try{o.prototype[t]=e}catch(c){}}}P[t]&&!n||m(P,t,n?e:C&&T[t]||e,i)}},V=function(t,e,n){var i,r;if(s){if(v){if(n)for(i in z)if(r=l[i],r&&u(r,t))try{delete r[t]}catch(o){}if(S[t]&&!n)return;try{return m(S,t,n?e:C&&S[t]||e)}catch(o){}}for(i in z)r=l[i],!r||r[t]&&!n||m(r,t,e)}};for(i in z)r=l[i],o=r&&r.prototype,o?L(o)[j]=r:C=!1;for(i in G)r=l[i],o=r&&r.prototype,o&&(L(o)[j]=r);if((!C||!c(S)||S===Function.prototype)&&(S=function(){throw new D("Incorrect invocation")},C))for(i in z)l[i]&&v(l[i],S);if((!C||!P||P===O)&&(P=S.prototype,C))for(i in z)l[i]&&v(l[i].prototype,P);if(C&&_(E)!==P&&v(E,P),s&&!u(P,I))for(i in N=!0,g(P,I,{configurable:!0,get:function(){return h(this)?this[R]:void 0}}),z)l[i]&&f(l[i],R,i);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:C,TYPED_ARRAY_TAG:N&&R,aTypedArray:Y,aTypedArrayConstructor:W,exportTypedArrayMethod:F,exportTypedArrayStaticMethod:V,getTypedArrayConstructor:Z,isView:B,isTypedArray:U,TypedArray:S,TypedArrayPrototype:P}},ebef:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzl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jOfj9Zxl57Nwkkcfc6qHITxEgr0keykxSpUarP2GCMYjQBt/d2PREuZiBx/Uz5w6RduIV4V+GnBMrNyoas0SjNeIAonGM0vcKca9XLy1O0gMsWRGRKyZDUydGANyiVU23hw3DFuZP0sJUmqkxEayw5ocBbL+tWDUKB//CjAArCZjJRud/UcAAAAASUVORK5CYII="},ec20:function(t,n,i){"use strict";i.d(n,"d",(function(){return s})),i.d(n,"a",(function(){return l})),i.d(n,"b",(function(){return c})),i.d(n,"c",(function(){return d}));i("a9e3");var r=Number(3.141592653589793),o=Number(6378245),a=Number(.006693421622965943);function s(t,n){try{if(t=Number(t),n=Number(n),!l(t,n))return{lon:t,lat:n};var i=Number(u(t-105,n-35)),s=Number(h(t-105,n-35)),c=Number(n/180*r),d=Number(Math.sin(c));d=1-a*d*d;var p=Number(Math.sqrt(d));i=180*i/(o*(1-a)/(d*p)*r),s=180*s/(o/p*Math.cos(c)*r);var f=Number(n-i),m=Number(t-s);return{lon:m,lat:f}}catch(e){console.log(e)}}function l(t,e){return t>=101&&t<=124.5&&e>=17.8&&e<=54.2&&(!(t>=119.8&&t<=122.2&&e>=21.7&&e<=25.5)&&(!(t>=113.90222&&t<=114.40194&&e>=22.15917&&e<=22.45417)&&(!(t>=113.538056&&t<=113.641667&&e>=22.15917&&e<=22.218611)&&!(t<108&&e<21.5))))}var c=function(t){var e=t||{},n=e.lng,i=e.lat;return l(n,i)};function h(t,e){var n;return n=300+t+2*e+.1*t*t+.1*t*e+.1*Math.sqrt(Math.abs(t)),n+=2*(20*Math.sin(6*t*r)+20*Math.sin(2*t*r))/3,n+=2*(20*Math.sin(t*r)+40*Math.sin(t/3*r))/3,n+=2*(150*Math.sin(t/12*r)+300*Math.sin(t/30*r))/3,Number(n)}function u(t,e){var n;return n=2*t-100+3*e+.2*e*e+.1*t*e+.2*Math.sqrt(Math.abs(t)),n+=2*(20*Math.sin(6*t*r)+20*Math.sin(2*t*r))/3,n+=2*(20*Math.sin(e*r)+40*Math.sin(e/3*r))/3,n+=2*(160*Math.sin(e/12*r)+320*Math.sin(e*r/30))/3,Number(n)}function d(t,n){try{if(t=Number(t),n=Number(n),!l(t,n))return{lon:t,lat:n};var i=Number(u(t-105,n-35)),s=Number(h(t-105,n-35)),c=Number(n/180*r),d=Number(Math.sin(c));d=1-a*d*d;var p=Number(Math.sqrt(d));i=180*i/(o*(1-a)/(d*p)*r),s=180*s/(o/p*Math.cos(c)*r);var f=Number(n+i),m=Number(t+s);return{lon:m,lat:f}}catch(e){console.log(e)}}},ec69:function(t,e,n){var i=n("6fcd"),r=n("03dd"),o=n("30c9");function a(t){return o(t)?i(t):r(t)}t.exports=a},ec8c:function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},ed5e:function(t,e,n){var i=n("64af");function r(t){var e=0;if(t&&t.length>0){e+=Math.abs(o(t[0]));for(var n=1;n2){for(var n,r,o=0;o0?Math.floor(t):Math.ceil(t)};function C(t,e,n){return t instanceof R?t:_(t)?new R(t[0],t[1]):void 0===t||null===t?t:"object"===typeof t&&"x"in t&&"y"in t?new R(t.x,t.y):new R(t,e,n)}function N(t,e){if(t)for(var n=e?[t,e]:t,i=0,r=n.length;i=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=z(t);var e=this.min,n=this.max,i=t.min,r=t.max,o=r.x>=e.x&&i.x<=n.x,a=r.y>=e.y&&i.y<=n.y;return o&&a},overlaps:function(t){t=z(t);var e=this.min,n=this.max,i=t.min,r=t.max,o=r.x>e.x&&i.xe.y&&i.y=i.lat&&n.lat<=r.lat&&e.lng>=i.lng&&n.lng<=r.lng},intersects:function(t){t=B(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>=e.lat&&i.lat<=n.lat,a=r.lng>=e.lng&&i.lng<=n.lng;return o&&a},overlaps:function(t){t=B(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>e.lat&&i.late.lng&&i.lng1,Et=function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",h,n),window.removeEventListener("testPassiveEventSupport",h,n)}catch(e){}return t}(),St=function(){return!!document.createElement("canvas").getContext}(),Pt=!(!document.createElementNS||!K("svg").createSVGRect),Ot=!Pt&&function(){try{var t=document.createElement("div");t.innerHTML='';var n=t.firstChild;return n.style.behavior="url(#default#VML)",n&&"object"===typeof n.adj}catch(e){return!1}}();function Dt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var It={ie:tt,ielt9:et,edge:nt,webkit:it,android:rt,android23:ot,androidStock:st,opera:lt,chrome:ct,gecko:ht,safari:ut,phantom:dt,opera12:pt,win:ft,ie3d:mt,webkit3d:gt,gecko3d:yt,any3d:_t,mobile:vt,mobileWebkit:bt,mobileWebkit3d:wt,msPointer:xt,pointer:Lt,touch:Mt,mobileOpera:kt,mobileGecko:Tt,retina:At,passiveEvents:Et,canvas:St,svg:Pt,vml:Ot},Rt=xt?"MSPointerDown":"pointerdown",jt=xt?"MSPointerMove":"pointermove",Ct=xt?"MSPointerUp":"pointerup",Nt=xt?"MSPointerCancel":"pointercancel",zt={},Gt=!1;function Bt(t,e,n,i){return"touchstart"===e?Ut(t,n,i):"touchmove"===e?Qt(t,n,i):"touchend"===e&&Ht(t,n,i),this}function Zt(t,e,n){var i=t["_leaflet_"+e+n];return"touchstart"===e?t.removeEventListener(Rt,i,!1):"touchmove"===e?t.removeEventListener(jt,i,!1):"touchend"===e&&(t.removeEventListener(Ct,i,!1),t.removeEventListener(Nt,i,!1)),this}function Ut(t,e,n){var i=o((function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&We(t),Vt(t,e)}));t["_leaflet_touchstart"+n]=i,t.addEventListener(Rt,i,!1),Gt||(document.addEventListener(Rt,Yt,!0),document.addEventListener(jt,Wt,!0),document.addEventListener(Ct,Ft,!0),document.addEventListener(Nt,Ft,!0),Gt=!0)}function Yt(t){zt[t.pointerId]=t}function Wt(t){zt[t.pointerId]&&(zt[t.pointerId]=t)}function Ft(t){delete zt[t.pointerId]}function Vt(t,e){for(var n in t.touches=[],zt)t.touches.push(zt[n]);t.changedTouches=[t],e(t)}function Qt(t,e,n){var i=function(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||Vt(t,e)};t["_leaflet_touchmove"+n]=i,t.addEventListener(jt,i,!1)}function Ht(t,e,n){var i=function(t){Vt(t,e)};t["_leaflet_touchend"+n]=i,t.addEventListener(Ct,i,!1),t.addEventListener(Nt,i,!1)}var Jt=xt?"MSPointerDown":Lt?"pointerdown":"touchstart",Xt=xt?"MSPointerUp":Lt?"pointerup":"touchend",Kt="_leaflet_";function qt(t,e,n){var i,r,o=!1,a=250;function s(t){if(Lt){if(!t.isPrimary)return;if("mouse"===t.pointerType)return}else if(t.touches.length>1)return;var e=Date.now(),n=e-(i||e);r=t.touches?t.touches[0]:t,o=n>0&&n<=a,i=e}function l(t){if(o&&!r.cancelBubble){if(Lt){if("mouse"===t.pointerType)return;var n,a,s={};for(a in r)n=r[a],s[a]=n&&n.bind?n.bind(r):n;r=s}r.type="dblclick",r.button=0,e(r),i=null}}return t[Kt+Jt+n]=s,t[Kt+Xt+n]=l,t[Kt+"dblclick"+n]=e,t.addEventListener(Jt,s,!!Et&&{passive:!1}),t.addEventListener(Xt,l,!!Et&&{passive:!1}),t.addEventListener("dblclick",e,!1),this}function $t(t,e){var n=t[Kt+Jt+e],i=t[Kt+Xt+e],r=t[Kt+"dblclick"+e];return t.removeEventListener(Jt,n,!!Et&&{passive:!1}),t.removeEventListener(Xt,i,!!Et&&{passive:!1}),t.removeEventListener("dblclick",r,!1),this}var te,ee,ne,ie,re,oe=xe(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ae=xe(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),se="webkitTransition"===ae||"OTransition"===ae?ae+"End":"transitionend";function le(t){return"string"===typeof t?document.getElementById(t):t}function ce(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function he(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function ue(t){var e=t.parentNode;e&&e.removeChild(t)}function de(t){while(t.firstChild)t.removeChild(t.firstChild)}function pe(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function fe(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function me(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=ve(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function ge(t,e){if(void 0!==t.classList)for(var n=p(e),i=0,r=n.length;ithis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,B(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var n=C(e.paddingTopLeft||e.padding||[0,0]),i=C(e.paddingBottomRight||e.padding||[0,0]),r=this.getCenter(),o=this.project(r),a=this.project(t),s=this.getPixelBounds(),l=s.getSize().divideBy(2),c=z([s.min.add(n),s.max.subtract(i)]);if(!c.contains(a)){this._enforcingBounds=!0;var h=o.subtract(a),u=C(a.x+h.x,a.y+h.y);(a.xc.max.x)&&(u.x=o.x-h.x,h.x>0?u.x+=l.x-n.x:u.x-=l.x-i.x),(a.yc.max.y)&&(u.y=o.y-h.y,h.y>0?u.y+=l.y-n.y:u.y-=l.y-i.y),this.panTo(this.unproject(u),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),r=e.divideBy(2).round(),a=n.divideBy(2).round(),s=r.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,n=t.coords.longitude,i=new Z(e,n),r=i.toBounds(2*t.coords.accuracy),o=this._locateOptions;if(o.setView){var a=this.getBoundsZoom(r);this.setView(i,o.maxZoom?Math.min(a,o.maxZoom):a)}var s={latlng:i,bounds:r,timestamp:t.timestamp};for(var l in t.coords)"number"===typeof t.coords[l]&&(s[l]=t.coords[l]);this.fire("locationfound",s)},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ue(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ue(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i=he("div",n,e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),n=this.unproject(t.getTopRight());return new G(e,n)},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=B(t),n=C(n||[0,0]);var i=this.getZoom()||0,r=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(n),c=z(this.project(s,i),this.project(a,i)).getSize(),h=_t?this.options.zoomSnap:1,u=l.x/c.x,d=l.y/c.y,p=e?Math.max(u,d):Math.min(u,d);return i=this.getScaleZoom(p,i),h&&(i=Math.round(i/(h/100))*(h/100),i=e?Math.ceil(i/h)*h:Math.floor(i/h)*h),Math.max(r,Math.min(o,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new R(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new N(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"===typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(U(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(C(t),e)},layerPointToLatLng:function(t){var e=C(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(U(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(U(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(B(t))},distance:function(t,e){return this.options.crs.distance(U(t),U(e))},containerPointToLayerPoint:function(t){return C(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return C(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(C(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(U(t)))},mouseEventToContainerPoint:function(t){return Ve(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=le(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Re(e,"scroll",this._onScroll,this),this._containerId=s(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&_t,ge(t,"leaflet-container"+(Mt?" leaflet-touch":"")+(At?" leaflet-retina":"")+(et?" leaflet-oldie":"")+(ut?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ce(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Me(this._mapPane,new R(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ge(t.markerPane,"leaflet-zoom-hide"),ge(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){Me(this._mapPane,new R(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var i=this._zoom!==e;this._moveStart(i,!1)._move(t,e)._moveEnd(i),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n){void 0===e&&(e=this._zoom);var i=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Me(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[s(this._container)]=this;var e=t?Ce:Re;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),_t&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=A((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){var n,i=[],r="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,a=!1;while(o){if(n=this._targets[s(o)],n&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(e,!0)){if(r&&!qe(o,t))break;if(i.push(n),r)break}if(o===this._container)break;o=o.parentNode}return i.length||a||r||!qe(o,t)||(i=[this]),i},_handleDOMEvent:function(t){if(this._loaded&&!Ke(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||Se(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var r=i({},t);r.type="preclick",this._fireDOMEvent(r,r.type,n)}if(!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,e)),n.length)){var o=n[0];"contextmenu"===e&&o.listens(e,!0)&&We(t);var a={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var s=o.getLatLng&&(!o._radius||o._radius<=10);a.containerPoint=s?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),a.layerPoint=this.containerPointToLayerPoint(a.containerPoint),a.latlng=s?o.getLatLng():this.layerPointToLatLng(a.layerPoint)}for(var l=0;l0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=_t?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ye(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n))&&(this.panBy(n,e),!0)},_createAnimProxy:function(){var t=this._proxy=he("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=oe,n=this._proxy.style[e];Le(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ue(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Le(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),r=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(r))&&(A((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),!0)},_animateZoom:function(t,e,n,i){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,ge(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:i}),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ye(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),A((function(){this._moveEnd(!0)}),this))}});function nn(t,e){return new en(t,e)}var rn=P.extend({options:{position:"topright"},initialize:function(t){f(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return ge(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ue(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),on=function(t){return new rn(t)};en.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=he("div",e+"control-container",this._container);function i(i,r){var o=e+i+" "+e+r;t[i+r]=he("div",o,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ue(this._controlCorners[t]);ue(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var an=rn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(s(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?(e=document.createElement("input"),e.type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+s(this),i),this._layerControlInputs.push(e),e.layerId=s(t.layer),Re(e,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+t.name;var o=document.createElement("div");n.appendChild(o),o.appendChild(e),o.appendChild(r);var a=t.overlay?this._overlaysList:this._baseLayersList;return a.appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,i=[],r=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||r.push(e);for(o=0;o=0;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&ie.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),sn=function(t,e,n){return new an(t,e,n)},ln=rn.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=he("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,r){var o=he("a",n,i);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),Ye(o),Re(o,"click",Fe),Re(o,"click",r,this),Re(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";ye(this._zoomInButton,e),ye(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&ge(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&ge(this._zoomInButton,e)}});en.mergeOptions({zoomControl:!0}),en.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new ln,this.addControl(this.zoomControl))}));var cn=function(t){return new ln(t)},hn=rn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=he("div",e),i=this.options;return this._addScales(i,e+"-line",n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=he("div",e,n)),t.imperial&&(this._iScale=he("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,r=3.2808399*t;r>5280?(e=r/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(r),this._updateScale(this._iScale,i+" ft",i/r))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,e*n}}),un=function(t){return new hn(t)},dn=rn.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(t){f(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=he("div","leaflet-control-attribution"),Ye(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}}});en.mergeOptions({attributionControl:!0}),en.addInitHook((function(){this.options.attributionControl&&(new dn).addTo(this)}));var pn=function(t){return new dn(t)};rn.Layers=an,rn.Zoom=ln,rn.Scale=hn,rn.Attribution=dn,on.layers=sn,on.zoom=cn,on.scale=un,on.attribution=pn;var fn=P.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});fn.addTo=function(t,e){return t.addHandler(e,this),this};var mn,gn={Events:D},yn=Mt?"touchstart mousedown":"mousedown",_n={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},vn={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},bn=I.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){f(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Re(this._dragStartTarget,yn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(bn._dragging===this&&this.finishDrag(),Ce(this._dragStartTarget,yn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!me(this._element,"leaflet-zoom-anim")&&!(bn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches)&&(bn._dragging=this,this._preventOutline&&Se(this._element),Ae(),te(),!this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Oe(this._element);this._startPoint=new R(e.clientX,e.clientY),this._parentScale=De(n),Re(document,vn[t.type],this._onMove,this),Re(document,_n[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new R(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)l&&(o=a,l=s);l>n&&(e[o]=1,kn(t,e,n,i,o),kn(t,e,n,o,r))}function Tn(t,e){for(var n=[t[0]],i=1,r=0,o=t.length;ie&&(n.push(t[i]),r=i);return re.max.x&&(n|=2),t.ye.max.y&&(n|=8),n}function Pn(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function On(t,e,n,i){var r,o=e.x,a=e.y,s=n.x-o,l=n.y-a,c=s*s+l*l;return c>0&&(r=((t.x-o)*s+(t.y-a)*l)/c,r>1?(o=n.x,a=n.y):r>0&&(o+=s*r,a+=l*r)),s=t.x-o,l=t.y-a,i?s*s+l*l:new R(o,a)}function Dn(t){return!_(t[0])||"object"!==typeof t[0][0]&&"undefined"!==typeof t[0][0]}function In(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Dn(t)}var Rn={simplify:wn,pointToSegmentDistance:xn,closestPointOnSegment:Ln,clipSegment:An,_getEdgeIntersection:En,_getBitCode:Sn,_sqClosestPointOnSegment:On,isFlat:Dn,_flat:In};function jn(t,e,n){var i,r,o,a,s,l,c,h,u,d=[1,4,2,8];for(r=0,c=t.length;r1e-7;l++)e=o*Math.sin(s),e=Math.pow((1-e)/(1+e),o/2),c=Math.PI/2-2*Math.atan(a*e)-s,s+=c;return new Z(s*n,t.x*n/i)}},Gn={LonLat:Nn,Mercator:zn,SphericalMercator:V},Bn=i({},W,{code:"EPSG:3395",projection:zn,transformation:function(){var t=.5/(Math.PI*zn.R);return H(t,.5,-t,.5)}()}),Zn=i({},W,{code:"EPSG:4326",projection:Nn,transformation:H(1/180,1,-1/180,.5)}),Un=i({},Y,{projection:Nn,transformation:H(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});Y.Earth=W,Y.EPSG3395=Bn,Y.EPSG3857=J,Y.EPSG900913=X,Y.EPSG4326=Zn,Y.Simple=Un;var Yn=I.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[s(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[s(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",(function(){e.off(n,this)}),this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});en.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=s(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=s(t);return this._layers[e]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&s(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){t=t?_(t)?t:[t]:[];for(var e=0,n=t.length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()e)return a=(i-e)/n,this._map.layerPointToLatLng([o.x-a*(o.x-r.x),o.y-a*(o.y-r.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=U(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new G,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Dn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=Dn(t),i=0,r=t.length;i=2&&e[0]instanceof Z&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){oi.prototype._setLatLngs.call(this,t),Dn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Dn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new R(e,e);if(t=new N(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,r=0,o=this._rings.length;rt.y!==i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(c=!c);return c||oi.prototype._containsPoint.call(this,t,!0)}});function li(t,e){return new si(t,e)}var ci=Vn.extend({initialize:function(t,e){f(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,r=_(t)?t:t.features;if(r){for(e=0,n=r.length;e0?i:[e.src]}else{_(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style["objectFit"]="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted;for(var a=0;ar?(e.height=r+"px",ge(t,o)):ye(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();Me(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(ce(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,r=new R(this._containerLeft,-n-this._containerBottom);r._add(ke(this._container));var o=t.layerPointToContainerPoint(r),a=C(this.options.autoPanPadding),s=C(this.options.autoPanPaddingTopLeft||a),l=C(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),h=0,u=0;o.x+i+l.x>c.x&&(h=o.x+i-c.x+l.x),o.x-h-s.x<0&&(h=o.x-s.x),o.y+n+l.y>c.y&&(u=o.y+n-c.y+l.y),o.y-u-s.y<0&&(u=o.y-s.y),(h||u)&&t.fire("autopanstart").panBy([h,u])}},_onCloseButtonClick:function(t){this._close(),Fe(t)},_getAnchor:function(){return C(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Si=function(t,e){return new Ei(t,e)};en.mergeOptions({closePopupOnClick:!0}),en.include({openPopup:function(t,e,n){return t instanceof Ei||(t=new Ei(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Yn.include({bindPopup:function(t,e){return t instanceof Ei?(f(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new Ei(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(Fe(t),e instanceof ti?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Pi=Ai.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Ai.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){Ai.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Ai.prototype.getEvents.call(this);return Mt&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=he("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,i=this._map,r=this._container,o=i.latLngToContainerPoint(i.getCenter()),a=i.layerPointToContainerPoint(t),s=this.options.direction,l=r.offsetWidth,c=r.offsetHeight,h=C(this.options.offset),u=this._getAnchor();"top"===s?(e=l/2,n=c):"bottom"===s?(e=l/2,n=0):"center"===s?(e=l/2,n=c/2):"right"===s?(e=0,n=c/2):"left"===s?(e=l,n=c/2):a.xthis.options.maxZoom||ni&&this._retainParent(r,o,a,i))},_retainChildren:function(t,e,n,i){for(var r=2*t;r<2*t+2;r++)for(var o=2*e;o<2*e+2;o++){var a=new R(r,o);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1this.options.maxZoom||void 0!==this.options.minZoom&&r1)this._setView(t,n);else{for(var u=r.min.y;u<=r.max.y;u++)for(var d=r.min.x;d<=r.max.x;d++){var p=new R(d,u);if(p.z=this._tileZoom,this._isValidTile(p)){var f=this._tiles[this._tileCoordsToKey(p)];f?f.current=!0:a.push(p)}}if(a.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;dn.max.x)||!e.wrapLat&&(t.yn.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return B(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),r=i.add(n),o=e.unproject(i,t.z),a=e.unproject(r,t.z);return[o,a]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new G(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new R(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(ue(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ge(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=h,t.onmousemove=h,et&&this.options.opacity<1&&be(t,this.options.opacity),rt&&!ot&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),i=this._tileCoordsToKey(t),r=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(r),this.createTile.length<2&&A(o(this._tileReady,this,t,null,r)),Me(r,n),this._tiles[i]={el:r,coords:t,current:!0},e.appendChild(r),this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var i=this._tileCoordsToKey(t);n=this._tiles[i],n&&(n.loaded=+new Date,this._map._fadeAnimated?(be(n.el,0),E(this._fadeFrame),this._fadeFrame=A(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(ge(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),et||!this._map._fadeAnimated?A(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new R(this._wrapX?c(t.x,this._wrapX):t.x,this._wrapY?c(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new N(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function ji(t){return new Ri(t)}var Ci=Ri.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,e=f(this,e),e.detectRetina&&At&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"===typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),rt||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Re(n,"load",o(this._tileOnLoad,this,e,n)),Re(n,"error",o(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:At?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e["y"]=n),e["-y"]=n}return y(this._url,i(e,this.options))},_tileOnLoad:function(t,e){et?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,n=this.options.zoomReverse,i=this.options.zoomOffset;return n&&(t=e-t),t+i},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=h,e.onerror=h,e.complete||(e.src=b,ue(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return st||e.el.setAttribute("src",b),Ri.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==b))return Ri.prototype._tileReady.call(this,t,e,n)}});function Ni(t,e){return new Ci(t,e)}var zi=Ci.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var r in e)r in this.options||(n[r]=e[r]);e=f(this,e);var o=e.detectRetina&&At?2:1,a=this.getTileSize();n.width=a.x*o,n.height=a.y*o,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Ci.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=z(n.project(e[0]),n.project(e[1])),r=i.min,o=i.max,a=(this._wmsVersion>=1.3&&this._crs===Zn?[r.y,r.x,o.y,o.x]:[r.x,r.y,o.x,o.y]).join(","),s=Ci.prototype.getTileUrl.call(this,t);return s+m(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});function Gi(t,e){return new zi(t,e)}Ci.WMS=zi,Ni.wms=Gi;var Bi=Yn.extend({options:{padding:.1,tolerance:0},initialize:function(t){f(this,t),s(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&ge(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=ke(this._container),r=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),a=this._map.project(t,e),s=a.subtract(o),l=r.multiplyBy(-n).add(i).add(r).subtract(s);_t?Le(this._container,l,n):Me(this._container,l)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new N(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Zi=Bi.extend({getEvents:function(){var t=Bi.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Bi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Re(t,"mousemove",this._onMouseMove,this),Re(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Re(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,ue(this._container),Ce(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;for(var e in this._redrawBounds=null,this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Bi.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=At?2:1;Me(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",At&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Bi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[s(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,i=e.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,delete t._order,delete this._layers[s(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"===typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),r=[];for(n=0;n')}}catch(e){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),Wi={_initContainer:function(){this._container=he("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Bi.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Yi("shape");ge(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Yi("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[s(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ue(e),t.removeInteractiveTarget(e),delete this._layers[s(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,r=t._container;r.stroked=!!i.stroke,r.filled=!!i.fill,i.stroke?(e||(e=t._stroke=Yi("stroke")),r.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=_(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(r.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=Yi("fill")),r.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(r.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){pe(t._container)},_bringToBack:function(t){fe(t._container)}},Fi=Ot?Yi:K,Vi=Bi.extend({getEvents:function(){var t=Bi.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=Fi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Fi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ue(this._container),Ce(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){Bi.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),Me(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Fi("path");t.options.className&&ge(e,t.options.className),t.options.interactive&&ge(e,"leaflet-interactive"),this._updateStyle(t),this._layers[s(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ue(t._path),t.removeInteractiveTarget(t._path),delete this._layers[s(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,q(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i=Math.max(Math.round(t._radiusY),1)||n,r="a"+n+","+i+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){pe(t._path)},_bringToBack:function(t){fe(t._path)}});function Qi(t){return Pt||Ot?new Vi(t):null}Ot&&Vi.include(Wi),en.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Ui(t)||Qi(t)}});var Hi=si.extend({initialize:function(t,e){si.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=B(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Ji(t,e){return new Hi(t,e)}Vi.create=Fi,Vi.pointsToPath=q,ci.geometryToLayer=hi,ci.coordsToLatLng=di,ci.coordsToLatLngs=pi,ci.latLngToCoords=fi,ci.latLngsToCoords=mi,ci.getFeature=gi,ci.asFeature=yi,en.mergeOptions({boxZoom:!0});var Xi=fn.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Re(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ce(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ue(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),te(),Ae(),this._startPoint=this._map.mouseEventToContainerPoint(t),Re(document,{contextmenu:Fe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=he("div","leaflet-zoom-box",this._container),ge(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new N(this._point,this._startPoint),n=e.getSize();Me(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(ue(this._box),ye(this._container,"leaflet-crosshair")),ee(),Ee(),Ce(document,{contextmenu:Fe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new G(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});en.addInitHook("addHandler","boxZoom",Xi),en.mergeOptions({doubleClickZoom:!0});var Ki=fn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta,r=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(r):e.setZoomAround(t.containerPoint,r)}});en.addInitHook("addHandler","doubleClickZoom",Ki),en.mergeOptions({dragging:!0,inertia:!ot,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var qi=fn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new bn(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ge(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ye(this._map._container,"leaflet-grab"),ye(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=B(this._map.options.maxBounds);this._offsetLimit=z(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){while(this._positions.length>1&&t-this._times[0]>50)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,r=(i-e+n)%t+e-n,o=(i+e+n)%t-e-n,a=Math.abs(r+n)0?o:-o))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});en.addInitHook("addHandler","scrollWheelZoom",tr),en.mergeOptions({tap:!0,tapTolerance:15});var er=fn.extend({addHooks:function(){Re(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ce(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(We(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new R(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&ge(n,"leaflet-active"),this._holdTimeout=setTimeout(o((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))}),this),1e3),this._simulateEvent("mousedown",e),Re(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),Ce(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],n=e.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&ye(n,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new R(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var n=document.createEvent("MouseEvents");n._simulated=!0,e.target._simulatedClick=!0,n.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}});!Mt||Lt&&!ut||en.addInitHook("addHandler","tap",er),en.mergeOptions({touchZoom:Mt&&!ot,bounceAtZoomLimits:!0});var nr=fn.extend({addHooks:function(){ge(this._map._container,"leaflet-touch-zoom"),Re(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ye(this._map._container,"leaflet-touch-zoom"),Ce(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Re(document,"touchmove",this._onTouchMove,this),Re(document,"touchend",this._onTouchEnd,this),We(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]),r=n.distanceTo(i)/this._startDist;if(this._zoom=e.getScaleZoom(r,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&r>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===r)return}else{var a=n._add(i)._divideBy(2)._subtract(this._centerPoint);if(1===r&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var s=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=A(s,this,!0),We(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),Ce(document,"touchmove",this._onTouchMove,this),Ce(document,"touchend",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});en.addInitHook("addHandler","touchZoom",nr),en.BoxZoom=Xi,en.DoubleClickZoom=Ki,en.Drag=qi,en.Keyboard=$i,en.ScrollWheelZoom=tr,en.Tap=er,en.TouchZoom=nr,t.version=n,t.Control=rn,t.control=on,t.Browser=It,t.Evented=I,t.Mixin=gn,t.Util=S,t.Class=P,t.Handler=fn,t.extend=i,t.bind=o,t.stamp=s,t.setOptions=f,t.DomEvent=$e,t.DomUtil=Ie,t.PosAnimation=tn,t.Draggable=bn,t.LineUtil=Rn,t.PolyUtil=Cn,t.Point=R,t.point=C,t.Bounds=N,t.bounds=z,t.Transformation=Q,t.transformation=H,t.Projection=Gn,t.LatLng=Z,t.latLng=U,t.LatLngBounds=G,t.latLngBounds=B,t.CRS=Y,t.GeoJSON=ci,t.geoJSON=vi,t.geoJson=bi,t.Layer=Yn,t.LayerGroup=Wn,t.layerGroup=Fn,t.FeatureGroup=Vn,t.featureGroup=Qn,t.ImageOverlay=wi,t.imageOverlay=xi,t.VideoOverlay=Li,t.videoOverlay=Mi,t.SVGOverlay=ki,t.svgOverlay=Ti,t.DivOverlay=Ai,t.Popup=Ei,t.popup=Si,t.Tooltip=Pi,t.tooltip=Oi,t.Icon=Hn,t.icon=Jn,t.DivIcon=Di,t.divIcon=Ii,t.Marker=qn,t.marker=$n,t.TileLayer=Ci,t.tileLayer=Ni,t.GridLayer=Ri,t.gridLayer=ji,t.SVG=Vi,t.svg=Qi,t.Renderer=Bi,t.Canvas=Zi,t.canvas=Ui,t.Path=ti,t.CircleMarker=ei,t.circleMarker=ni,t.Circle=ii,t.circle=ri,t.Polyline=oi,t.polyline=ai,t.Polygon=si,t.polygon=li,t.Rectangle=Hi,t.rectangle=Ji,t.Map=en,t.map=nn;var ir=window.L;t.noConflict=function(){return window.L=ir,this},window.L=t}))},efb6:function(t,e,n){var i=n("5e2e");function r(){this.__data__=new i,this.size=0}t.exports=r},efec:function(t,e,n){"use strict";var i=n("1a2d"),r=n("cb2d"),o=n("51eb"),a=n("b622"),s=a("toPrimitive"),l=Date.prototype;i(l,s)||r(l,s,o)},f069:function(t,e,n){"use strict";var i=n("59ed"),r=TypeError,o=function(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw new r("Bad Promise constructor");e=t,n=i})),this.resolve=i(e),this.reject=i(n)};t.exports.f=function(t){return new o(t)}},f082:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAchJREFUeNqsVT1PAkEQnQViiCF6FaE8S6LFVcQSOgoKYm88Ozv5Ayp/wIi/4KAyNKKxF6gokcTEEkqMBSRSoKLrvPvw7gh4cnGTyd7NvH33dnZmj+ifhwgC7ClC4+nYfr28HsuH0IRMpvLUVz+t90HUnLaYdLBsTSRAoAGy81dpmk1shMoFqyuyyccYSUmW4Rk+xMIovMh8EG3PXAee4UNsVXXl/U0hnyOuOsfgQwyYPylkoIJTLbwRJb8cra4g+BADxsYGqjOONoScCFuVokhzFIs/KhEDBtjAmkPS79c82yyVpByNpGw2fVsHxj4g7TfC5klC+PPW7bqkqmr5Gg1TObBYs4xMny8TkwAD2zYMyzTN8rFiTxnpDk/UcxBXuXdSCmneQadD1G4T5fNEwyFRvU7U6xFVKkQKQwfcKKkUJTO79HJ3iw7S0nFRe5rS1Fcmk0Pd+jqUYIswz2GYecTIZi3VHJ/ksv4yQr+yjepxYS0AGIsx9/v+fILc67NzirXgMHsfzCiB+QJearq+0G+XUdks7HW5QhtVqwvdDkeMrcVJPTtNCNqZhbtU+bSdq60lnJuFpwM2JeRFPWar8T15899/APoWYABPCllw04uLJQAAAABJRU5ErkJggg=="},f183:function(t,e,n){"use strict";var i=n("23e7"),r=n("e330"),o=n("d012"),a=n("861d"),s=n("1a2d"),l=n("9bf2").f,c=n("241c"),h=n("057f"),u=n("4fad"),d=n("90e3"),p=n("bb2f"),f=!1,m=d("meta"),g=0,y=function(t){l(t,m,{value:{objectID:"O"+g++,weakData:{}}})},_=function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,m)){if(!u(t))return"F";if(!e)return"E";y(t)}return t[m].objectID},v=function(t,e){if(!s(t,m)){if(!u(t))return!0;if(!e)return!1;y(t)}return t[m].weakData},b=function(t){return p&&f&&u(t)&&!s(t,m)&&y(t),t},w=function(){x.enable=function(){},f=!0;var t=c.f,e=r([].splice),n={};n[m]=1,t(n).length&&(c.f=function(n){for(var i=t(n),r=0,o=i.length;r1)for(var n=1;n0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}t.exports=o},f495:function(t,e,n){"use strict";var i=n("c04e"),r=TypeError;t.exports=function(t){var e=i(t,"number");if("number"==typeof e)throw new r("Can't convert number to bigint");return BigInt(e)}},f4e2:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAACXBIWXMAAAsSAAALEgHS3X78AAAApklEQVQ4jWP8z8DgwADB2MAChv//H2CIMzIqMDAwJODQ84AFamABAwPDBSwKNuDQKIDDIQYgc1ignAsM///jci0m+P//AlZDGRkPgCgmog0iAYwaSn0ASqcK4CQCiVHKACMjKEkxMP7//39oeH/oGEqjiGJgaADnY1LyPm5DR/M+jQyFFdIGsEBGAwVYUwUklidgUQ8v+bEZBgMf8Ihj03eAgYHhAQAxnSv3UtZ4ZQAAAABJRU5ErkJggg=="},f4ea:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[i-1]=o[i-1]+1|0;for(var s=0;s-1}t.exports=r},fc1b:function(t,e,n){"use strict";var i=n("f748"),r=Math.abs,o=2220446049250313e-31,a=1/o,s=function(t){return t+a-a};t.exports=function(t,e,n,a){var l=+t,c=r(l),h=i(l);if(cn||d!==d?h*(1/0):h*d}},fc6a:function(t,e,n){"use strict";var i=n("44ad"),r=n("1d80");t.exports=function(t){return i(r(t))}},fce3:function(t,e,n){"use strict";var i=n("d039"),r=n("da84"),o=r.RegExp;t.exports=i((function(){var t=o(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))},fdbc:function(t,e,n){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,n){"use strict";var i=n("04f8");t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})}));