1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fa0760ee"],{"0d3b":function(t,e,i){var r=i("d039"),n=i("b622"),o=i("c430"),s=n("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,i="";return t.pathname="c%20d",e.forEach((function(t,r){e["delete"]("b"),i+=r+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host}))},"25a5":function(t,e,i){!function(e,i){t.exports=i()}(0,(function(){"use strict";function t(t,r,n,o,s){!function t(i,r,n,o,s){for(;o>n;){if(o-n>600){var a=o-n+1,h=r-n+1,l=Math.log(a),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(a-c)/a)*(h-a/2<0?-1:1),f=Math.max(n,Math.floor(r-h*c/a+u)),d=Math.min(o,Math.floor(r+(a-h)*c/a+u));t(i,r,f,d,s)}var p=i[r],g=n,_=o;for(e(i,n,r),s(i[o],p)>0&&e(i,n,o);g<_;){for(e(i,g,_),g++,_--;s(i[g],p)<0;)g++;for(;s(i[_],p)>0;)_--}0===s(i[n],p)?e(i,n,_):e(i,++_,o),_<=r&&(n=_+1),r<=_&&(o=_-1)}}(t,r,n||0,o||t.length-1,s||i)}function e(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}function i(t,e){return t<e?-1:t>e?1:0}var r=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 n(t,e,i){if(!i)return e.indexOf(t);for(var r=0;r<e.length;r++)if(i(t,e[r]))return r;return-1}function o(t,e){s(t,0,t.children.length,e,t)}function s(t,e,i,r,n){n||(n=p(null)),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(var o=e;o<i;o++){var s=t.children[o];a(n,t.leaf?r(s):s)}return n}function a(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function h(t,e){return t.minX-e.minX}function l(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function u(t){return t.maxX-t.minX+(t.maxY-t.minY)}function f(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function d(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function p(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,i,r,n,o){for(var s=[i,r];s.length;)if(!((r=s.pop())-(i=s.pop())<=n)){var a=i+Math.ceil((r-i)/n/2)*n;t(e,a,i,r,o),s.push(i,a,a,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(t){var e=this.data,i=[];if(!d(t,e))return i;for(var r=this.toBBox,n=[];e;){for(var o=0;o<e.children.length;o++){var s=e.children[o],a=e.leaf?r(s):s;d(t,a)&&(e.leaf?i.push(s):f(t,a)?this._all(s,i):n.push(s))}e=n.pop()}return i},r.prototype.collides=function(t){var e=this.data;if(!d(t,e))return!1;for(var i=[];e;){for(var r=0;r<e.children.length;r++){var n=e.children[r],o=e.leaf?this.toBBox(n):n;if(d(t,o)){if(e.leaf||f(t,o))return!0;i.push(n)}}e=i.pop()}return!1},r.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var i=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===i.height)this._splitRoot(this.data,i);else{if(this.data.height<i.height){var r=this.data;this.data=i,i=r}this._insert(i,this.data.height-i.height-1,!0)}else this.data=i;return this},r.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},r.prototype.clear=function(){return this.data=p([]),this},r.prototype.remove=function(t,e){if(!t)return this;for(var i,r,o,s=this.data,a=this.toBBox(t),h=[],l=[];s||h.length;){if(s||(s=h.pop(),r=h[h.length-1],i=l.pop(),o=!0),s.leaf){var c=n(t,s.children,e);if(-1!==c)return s.children.splice(c,1),h.push(s),this._condense(h),this}o||s.leaf||!f(s,a)?r?(i++,s=r.children[i],o=!1):s=null:(h.push(s),l.push(i),i=0,r=s,s=s.children[0])}return this},r.prototype.toBBox=function(t){return t},r.prototype.compareMinX=function(t,e){return t.minX-e.minX},r.prototype.compareMinY=function(t,e){return t.minY-e.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(t){return this.data=t,this},r.prototype._all=function(t,e){for(var i=[];t;)t.leaf?e.push.apply(e,t.children):i.push.apply(i,t.children),t=i.pop();return e},r.prototype._build=function(t,e,i,r){var n,s=i-e+1,a=this._maxEntries;if(s<=a)return o(n=p(t.slice(e,i+1)),this.toBBox),n;r||(r=Math.ceil(Math.log(s)/Math.log(a)),a=Math.ceil(s/Math.pow(a,r-1))),(n=p([])).leaf=!1,n.height=r;var h=Math.ceil(s/a),l=h*Math.ceil(Math.sqrt(a));g(t,e,i,l,this.compareMinX);for(var c=e;c<=i;c+=l){var u=Math.min(c+l-1,i);g(t,c,u,h,this.compareMinY);for(var f=c;f<=u;f+=h){var d=Math.min(f+h-1,u);n.children.push(this._build(t,f,d,r-1))}}return o(n,this.toBBox),n},r.prototype._chooseSubtree=function(t,e,i,r){for(;r.push(e),!e.leaf&&r.length-1!==i;){for(var n=1/0,o=1/0,s=void 0,a=0;a<e.children.length;a++){var h=e.children[a],l=c(h),u=(f=t,d=h,(Math.max(d.maxX,f.maxX)-Math.min(d.minX,f.minX))*(Math.max(d.maxY,f.maxY)-Math.min(d.minY,f.minY))-l);u<o?(o=u,n=l<n?l:n,s=h):u===o&&l<n&&(n=l,s=h)}e=s||e.children[0]}var f,d;return e},r.prototype._insert=function(t,e,i){var r=i?t:this.toBBox(t),n=[],o=this._chooseSubtree(r,this.data,e,n);for(o.children.push(t),a(o,r);e>=0&&n[e].children.length>this._maxEntries;)this._split(n,e),e--;this._adjustParentBBoxes(r,n,e)},r.prototype._split=function(t,e){var i=t[e],r=i.children.length,n=this._minEntries;this._chooseSplitAxis(i,n,r);var s=this._chooseSplitIndex(i,n,r),a=p(i.children.splice(s,i.children.length-s));a.height=i.height,a.leaf=i.leaf,o(i,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},r.prototype._splitRoot=function(t,e){this.data=p([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(t,e,i){for(var r,n,o,a,h,l,u,f=1/0,d=1/0,p=e;p<=i-e;p++){var g=s(t,0,p,this.toBBox),_=s(t,p,i,this.toBBox),y=(n=g,o=_,a=void 0,h=void 0,l=void 0,u=void 0,a=Math.max(n.minX,o.minX),h=Math.max(n.minY,o.minY),l=Math.min(n.maxX,o.maxX),u=Math.min(n.maxY,o.maxY),Math.max(0,l-a)*Math.max(0,u-h)),v=c(g)+c(_);y<f?(f=y,r=p,d=v<d?v:d):y===f&&v<d&&(d=v,r=p)}return r||i-e},r.prototype._chooseSplitAxis=function(t,e,i){var r=t.leaf?this.compareMinX:h,n=t.leaf?this.compareMinY:l;this._allDistMargin(t,e,i,r)<this._allDistMargin(t,e,i,n)&&t.children.sort(r)},r.prototype._allDistMargin=function(t,e,i,r){t.children.sort(r);for(var n=this.toBBox,o=s(t,0,e,n),h=s(t,i-e,i,n),l=u(o)+u(h),c=e;c<i-e;c++){var f=t.children[c];a(o,t.leaf?n(f):f),l+=u(o)}for(var d=i-e-1;d>=e;d--){var p=t.children[d];a(h,t.leaf?n(p):p),l+=u(h)}return l},r.prototype._adjustParentBBoxes=function(t,e,i){for(var r=i;r>=0;r--)a(e[r],t)},r.prototype._condense=function(t){for(var e=t.length-1,i=void 0;e>=0;e--)0===t[e].children.length?e>0?(i=t[e-1].children).splice(i.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},r}))},"2b3d":function(t,e,i){"use strict";i("3ca3");var r,n=i("23e7"),o=i("83ab"),s=i("0d3b"),a=i("da84"),h=i("0366"),l=i("e330"),c=i("37e8"),u=i("6eeb"),f=i("19aa"),d=i("1a2d"),p=i("60da"),g=i("4df4"),_=i("4dae"),y=i("6547").codeAt,v=i("5fb2"),m=i("577e"),x=i("d44e"),O=i("9861"),b=i("69f3"),S=b.set,C=b.getterFor("URL"),w=O.URLSearchParams,E=O.getState,T=a.URL,I=a.TypeError,R=a.parseInt,L=Math.floor,F=Math.pow,k=l("".charAt),P=l(/./.exec),j=l([].join),D=l(1..toString),A=l([].pop),M=l([].push),G=l("".replace),N=l([].shift),B=l("".split),Y=l("".slice),U=l("".toLowerCase),W=l([].unshift),X="Invalid authority",V="Invalid scheme",H="Invalid host",q="Invalid port",J=/[a-z]/i,z=/[\d+-.a-z]/i,K=/\d/,Z=/^0x/i,Q=/^[0-7]+$/,$=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,it=/[\0\t\n\r #/:<>?@[\\\]^|]/,rt=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,nt=/[\t\n\r]/g,ot=function(t){var e,i,r,n,o,s,a,h=B(t,".");if(h.length&&""==h[h.length-1]&&h.length--,e=h.length,e>4)return t;for(i=[],r=0;r<e;r++){if(n=h[r],""==n)return t;if(o=10,n.length>1&&"0"==k(n,0)&&(o=P(Z,n)?16:8,n=Y(n,8==o?1:2)),""===n)s=0;else{if(!P(10==o?$:8==o?Q:tt,n))return t;s=R(n,o)}M(i,s)}for(r=0;r<e;r++)if(s=i[r],r==e-1){if(s>=F(256,5-e))return null}else if(s>255)return null;for(a=A(i),r=0;r<i.length;r++)a+=i[r]*F(256,3-r);return a},st=function(t){var e,i,r,n,o,s,a,h=[0,0,0,0,0,0,0,0],l=0,c=null,u=0,f=function(){return k(t,u)};if(":"==f()){if(":"!=k(t,1))return;u+=2,l++,c=l}while(f()){if(8==l)return;if(":"!=f()){e=i=0;while(i<4&&P(tt,f()))e=16*e+R(f(),16),u++,i++;if("."==f()){if(0==i)return;if(u-=i,l>6)return;r=0;while(f()){if(n=null,r>0){if(!("."==f()&&r<4))return;u++}if(!P(K,f()))return;while(P(K,f())){if(o=R(f(),10),null===n)n=o;else{if(0==n)return;n=10*n+o}if(n>255)return;u++}h[l]=256*h[l]+n,r++,2!=r&&4!=r||l++}if(4!=r)return;break}if(":"==f()){if(u++,!f())return}else if(f())return;h[l++]=e}else{if(null!==c)return;u++,l++,c=l}}if(null!==c){s=l-c,l=7;while(0!=l&&s>0)a=h[l],h[l--]=h[c+s-1],h[c+--s]=a}else if(8!=l)return;return h},at=function(t){for(var e=null,i=1,r=null,n=0,o=0;o<8;o++)0!==t[o]?(n>i&&(e=r,i=n),r=null,n=0):(null===r&&(r=o),++n);return n>i&&(e=r,i=n),e},ht=function(t){var e,i,r,n;if("number"==typeof t){for(e=[],i=0;i<4;i++)W(e,t%256),t=L(t/256);return j(e,".")}if("object"==typeof t){for(e="",r=at(t),i=0;i<8;i++)n&&0===t[i]||(n&&(n=!1),r===i?(e+=i?":":"::",n=!0):(e+=D(t[i],16),i<7&&(e+=":")));return"["+e+"]"}return t},lt={},ct=p({},lt,{" ":1,'"':1,"<":1,">":1,"`":1}),ut=p({},ct,{"#":1,"?":1,"{":1,"}":1}),ft=p({},ut,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),dt=function(t,e){var i=y(t,0);return i>32&&i<127&&!d(e,t)?t:encodeURIComponent(t)},pt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},gt=function(t,e){var i;return 2==t.length&&P(J,k(t,0))&&(":"==(i=k(t,1))||!e&&"|"==i)},_t=function(t){var e;return t.length>1&>(Y(t,0,2))&&(2==t.length||"/"===(e=k(t,2))||"\\"===e||"?"===e||"#"===e)},yt=function(t){return"."===t||"%2e"===U(t)},vt=function(t){return t=U(t),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},mt={},xt={},Ot={},bt={},St={},Ct={},wt={},Et={},Tt={},It={},Rt={},Lt={},Ft={},kt={},Pt={},jt={},Dt={},At={},Mt={},Gt={},Nt={},Bt=function(t,e,i){var r,n,o,s=m(t);if(e){if(n=this.parse(s),n)throw I(n);this.searchParams=null}else{if(void 0!==i&&(r=new Bt(i,!0)),n=this.parse(s,null,r),n)throw I(n);o=E(new w),o.bindURL(this),this.searchParams=o}};Bt.prototype={type:"URL",parse:function(t,e,i){var n,o,s,a,h=this,l=e||mt,c=0,u="",f=!1,p=!1,y=!1;t=m(t),e||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,t=G(t,rt,"")),t=G(t,nt,""),n=g(t);while(c<=n.length){switch(o=n[c],l){case mt:if(!o||!P(J,o)){if(e)return V;l=Ot;continue}u+=U(o),l=xt;break;case xt:if(o&&(P(z,o)||"+"==o||"-"==o||"."==o))u+=U(o);else{if(":"!=o){if(e)return V;u="",l=Ot,c=0;continue}if(e&&(h.isSpecial()!=d(pt,u)||"file"==u&&(h.includesCredentials()||null!==h.port)||"file"==h.scheme&&!h.host))return;if(h.scheme=u,e)return void(h.isSpecial()&&pt[h.scheme]==h.port&&(h.port=null));u="","file"==h.scheme?l=kt:h.isSpecial()&&i&&i.scheme==h.scheme?l=bt:h.isSpecial()?l=Et:"/"==n[c+1]?(l=St,c++):(h.cannotBeABaseURL=!0,M(h.path,""),l=Mt)}break;case Ot:if(!i||i.cannotBeABaseURL&&"#"!=o)return V;if(i.cannotBeABaseURL&&"#"==o){h.scheme=i.scheme,h.path=_(i.path),h.query=i.query,h.fragment="",h.cannotBeABaseURL=!0,l=Nt;break}l="file"==i.scheme?kt:Ct;continue;case bt:if("/"!=o||"/"!=n[c+1]){l=Ct;continue}l=Tt,c++;break;case St:if("/"==o){l=It;break}l=At;continue;case Ct:if(h.scheme=i.scheme,o==r)h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=_(i.path),h.query=i.query;else if("/"==o||"\\"==o&&h.isSpecial())l=wt;else if("?"==o)h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=_(i.path),h.query="",l=Gt;else{if("#"!=o){h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=_(i.path),h.path.length--,l=At;continue}h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=_(i.path),h.query=i.query,h.fragment="",l=Nt}break;case wt:if(!h.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,l=At;continue}l=It}else l=Tt;break;case Et:if(l=Tt,"/"!=o||"/"!=k(u,c+1))continue;c++;break;case Tt:if("/"!=o&&"\\"!=o){l=It;continue}break;case It:if("@"==o){f&&(u="%40"+u),f=!0,s=g(u);for(var v=0;v<s.length;v++){var x=s[v];if(":"!=x||y){var O=dt(x,ft);y?h.password+=O:h.username+=O}else y=!0}u=""}else if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&h.isSpecial()){if(f&&""==u)return X;c-=g(u).length+1,u="",l=Rt}else u+=o;break;case Rt:case Lt:if(e&&"file"==h.scheme){l=jt;continue}if(":"!=o||p){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&h.isSpecial()){if(h.isSpecial()&&""==u)return H;if(e&&""==u&&(h.includesCredentials()||null!==h.port))return;if(a=h.parseHost(u),a)return a;if(u="",l=Dt,e)return;continue}"["==o?p=!0:"]"==o&&(p=!1),u+=o}else{if(""==u)return H;if(a=h.parseHost(u),a)return a;if(u="",l=Ft,e==Lt)return}break;case Ft:if(!P(K,o)){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&h.isSpecial()||e){if(""!=u){var b=R(u,10);if(b>65535)return q;h.port=h.isSpecial()&&b===pt[h.scheme]?null:b,u=""}if(e)return;l=Dt;continue}return q}u+=o;break;case kt:if(h.scheme="file","/"==o||"\\"==o)l=Pt;else{if(!i||"file"!=i.scheme){l=At;continue}if(o==r)h.host=i.host,h.path=_(i.path),h.query=i.query;else if("?"==o)h.host=i.host,h.path=_(i.path),h.query="",l=Gt;else{if("#"!=o){_t(j(_(n,c),""))||(h.host=i.host,h.path=_(i.path),h.shortenPath()),l=At;continue}h.host=i.host,h.path=_(i.path),h.query=i.query,h.fragment="",l=Nt}}break;case Pt:if("/"==o||"\\"==o){l=jt;break}i&&"file"==i.scheme&&!_t(j(_(n,c),""))&&(gt(i.path[0],!0)?M(h.path,i.path[0]):h.host=i.host),l=At;continue;case jt:if(o==r||"/"==o||"\\"==o||"?"==o||"#"==o){if(!e&>(u))l=At;else if(""==u){if(h.host="",e)return;l=Dt}else{if(a=h.parseHost(u),a)return a;if("localhost"==h.host&&(h.host=""),e)return;u="",l=Dt}continue}u+=o;break;case Dt:if(h.isSpecial()){if(l=At,"/"!=o&&"\\"!=o)continue}else if(e||"?"!=o)if(e||"#"!=o){if(o!=r&&(l=At,"/"!=o))continue}else h.fragment="",l=Nt;else h.query="",l=Gt;break;case At:if(o==r||"/"==o||"\\"==o&&h.isSpecial()||!e&&("?"==o||"#"==o)){if(vt(u)?(h.shortenPath(),"/"==o||"\\"==o&&h.isSpecial()||M(h.path,"")):yt(u)?"/"==o||"\\"==o&&h.isSpecial()||M(h.path,""):("file"==h.scheme&&!h.path.length&>(u)&&(h.host&&(h.host=""),u=k(u,0)+":"),M(h.path,u)),u="","file"==h.scheme&&(o==r||"?"==o||"#"==o))while(h.path.length>1&&""===h.path[0])N(h.path);"?"==o?(h.query="",l=Gt):"#"==o&&(h.fragment="",l=Nt)}else u+=dt(o,ut);break;case Mt:"?"==o?(h.query="",l=Gt):"#"==o?(h.fragment="",l=Nt):o!=r&&(h.path[0]+=dt(o,lt));break;case Gt:e||"#"!=o?o!=r&&("'"==o&&h.isSpecial()?h.query+="%27":h.query+="#"==o?"%23":dt(o,lt)):(h.fragment="",l=Nt);break;case Nt:o!=r&&(h.fragment+=dt(o,ct));break}c++}},parseHost:function(t){var e,i,r;if("["==k(t,0)){if("]"!=k(t,t.length-1))return H;if(e=st(Y(t,1,-1)),!e)return H;this.host=e}else if(this.isSpecial()){if(t=v(t),P(et,t))return H;if(e=ot(t),null===e)return H;this.host=e}else{if(P(it,t))return H;for(e="",i=g(t),r=0;r<i.length;r++)e+=dt(i[r],lt);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return d(pt,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&>(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,i=t.username,r=t.password,n=t.host,o=t.port,s=t.path,a=t.query,h=t.fragment,l=e+":";return null!==n?(l+="//",t.includesCredentials()&&(l+=i+(r?":"+r:"")+"@"),l+=ht(n),null!==o&&(l+=":"+o)):"file"==e&&(l+="//"),l+=t.cannotBeABaseURL?s[0]:s.length?"/"+j(s,"/"):"",null!==a&&(l+="?"+a),null!==h&&(l+="#"+h),l},setHref:function(t){var e=this.parse(t);if(e)throw I(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new Yt(t.path[0]).origin}catch(i){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+ht(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(m(t)+":",mt)},getUsername:function(){return this.username},setUsername:function(t){var e=g(m(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var i=0;i<e.length;i++)this.username+=dt(e[i],ft)}},getPassword:function(){return this.password},setPassword:function(t){var e=g(m(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var i=0;i<e.length;i++)this.password+=dt(e[i],ft)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?ht(t):ht(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Rt)},getHostname:function(){var t=this.host;return null===t?"":ht(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Lt)},getPort:function(){var t=this.port;return null===t?"":m(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(t=m(t),""==t?this.port=null:this.parse(t,Ft))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+j(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Dt))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){t=m(t),""==t?this.query=null:("?"==k(t,0)&&(t=Y(t,1)),this.query="",this.parse(t,Gt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){t=m(t),""!=t?("#"==k(t,0)&&(t=Y(t,1)),this.fragment="",this.parse(t,Nt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Yt=function(t){var e=f(this,Ut),i=arguments.length>1?arguments[1]:void 0,r=S(e,new Bt(t,!1,i));o||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},Ut=Yt.prototype,Wt=function(t,e){return{get:function(){return C(this)[t]()},set:e&&function(t){return C(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&c(Ut,{href:Wt("serialize","setHref"),origin:Wt("getOrigin"),protocol:Wt("getProtocol","setProtocol"),username:Wt("getUsername","setUsername"),password:Wt("getPassword","setPassword"),host:Wt("getHost","setHost"),hostname:Wt("getHostname","setHostname"),port:Wt("getPort","setPort"),pathname:Wt("getPathname","setPathname"),search:Wt("getSearch","setSearch"),searchParams:Wt("getSearchParams"),hash:Wt("getHash","setHash")}),u(Ut,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),u(Ut,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),T){var Xt=T.createObjectURL,Vt=T.revokeObjectURL;Xt&&u(Yt,"createObjectURL",h(Xt,T)),Vt&&u(Yt,"revokeObjectURL",h(Vt,T))}x(Yt,"URL"),n({global:!0,forced:!s,sham:!o},{URL:Yt})},"2ce2":function(t,e,i){"use strict";var r=i("e300"),n=i("183a"),o=i("cef7"),s=i("f623"),a=i("4334"),h=i("57cb"),l=i("38f3"),c=i("6c77"),u=i("9f5e"),f=i("1300"),d=i("06f8"),p=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),g={SELECT:"select"},_=function(t){function e(e,i,r,n){var o=t.call(this,e)||this;return o.selected=i,o.deselected=r,o.mapBrowserEvent=n,o}return p(e,t),e}(o["a"]),y={},v=function(t){function e(e){var i=t.call(this)||this;i.on,i.once,i.un;var n,o=e||{};if(i.boundAddFeature_=i.addFeature_.bind(i),i.boundRemoveFeature_=i.removeFeature_.bind(i),i.condition_=o.condition?o.condition:d["m"],i.addCondition_=o.addCondition?o.addCondition:d["i"],i.removeCondition_=o.removeCondition?o.removeCondition:d["i"],i.toggleCondition_=o.toggleCondition?o.toggleCondition:d["l"],i.multi_=!!o.multi&&o.multi,i.filter_=o.filter?o.filter:h["b"],i.hitTolerance_=o.hitTolerance?o.hitTolerance:0,i.style_=void 0!==o.style?o.style:m(),i.features_=o.features||new r["a"],o.layers)if("function"===typeof o.layers)n=o.layers;else{var s=o.layers;n=function(t){return Object(u["f"])(s,t)}}else n=h["b"];return i.layerFilter_=n,i.featureLayerAssociation_={},i}return p(e,t),e.prototype.addFeatureLayerAssociation_=function(t,e){this.featureLayerAssociation_[Object(f["c"])(t)]=e},e.prototype.getFeatures=function(){return this.features_},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.getLayer=function(t){return this.featureLayerAssociation_[Object(f["c"])(t)]},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(e){var i=this.getMap();i&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),t.prototype.setMap.call(this,e),e?(this.features_.addEventListener(n["a"].ADD,this.boundAddFeature_),this.features_.addEventListener(n["a"].REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(n["a"].ADD,this.boundAddFeature_),this.features_.removeEventListener(n["a"].REMOVE,this.boundRemoveFeature_))},e.prototype.addFeature_=function(t){var e=t.element;this.style_&&this.applySelectedStyle_(e)},e.prototype.removeFeature_=function(t){var e=t.element;this.style_&&this.restorePreviousStyle_(e)},e.prototype.getStyle=function(){return this.style_},e.prototype.applySelectedStyle_=function(t){var e=Object(f["c"])(t);e in y||(y[e]=t.getStyle()),t.setStyle(this.style_)},e.prototype.restorePreviousStyle_=function(t){for(var i=this.getMap().getInteractions().getArray(),r=i.length-1;r>=0;--r){var n=i[r];if(n!==this&&n instanceof e&&n.getStyle()&&-1!==n.getFeatures().getArray().lastIndexOf(t))return void t.setStyle(n.getStyle())}var o=Object(f["c"])(t);t.setStyle(y[o]),delete y[o]},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[Object(f["c"])(t)]},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=this.addCondition_(t),i=this.removeCondition_(t),r=this.toggleCondition_(t),n=!e&&!i&&!r,o=t.map,s=this.getFeatures(),a=[],h=[];if(n){Object(l["b"])(this.featureLayerAssociation_),o.forEachFeatureAtPixel(t.pixel,function(t,e){if(this.filter_(t,e))return h.push(t),this.addFeatureLayerAssociation_(t,e),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var c=s.getLength()-1;c>=0;--c){var f=s.item(c),d=h.indexOf(f);d>-1?h.splice(d,1):(s.remove(f),a.push(f))}0!==h.length&&s.extend(h)}else{o.forEachFeatureAtPixel(t.pixel,function(t,n){if(this.filter_(t,n))return!e&&!r||Object(u["f"])(s.getArray(),t)?(i||r)&&Object(u["f"])(s.getArray(),t)&&(a.push(t),this.removeFeatureLayerAssociation_(t)):(h.push(t),this.addFeatureLayerAssociation_(t,n)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var p=a.length-1;p>=0;--p)s.remove(a[p]);s.extend(h)}return(h.length>0||a.length>0)&&this.dispatchEvent(new _(g.SELECT,h,a,t)),!0},e}(a["a"]);function m(){var t=Object(c["b"])();return Object(u["c"])(t[s["a"].POLYGON],t[s["a"].LINE_STRING]),Object(u["c"])(t[s["a"].GEOMETRY_COLLECTION],t[s["a"].LINE_STRING]),function(e){return e.getGeometry()?t[e.getGeometry().getType()]:null}}e["a"]=v},"3e6b":function(t,e,i){"use strict";var r=i("1af9"),n=i("25a5"),o=i.n(n),s=i("38f3"),a=i("6c77"),h=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l={RENDER_ORDER:"renderOrder"},c=function(t){function e(e){var i=this,r=e||{},n=Object(s["a"])({},r);return delete n.style,delete n.renderBuffer,delete n.updateWhileAnimating,delete n.updateWhileInteracting,i=t.call(this,n)||this,i.declutter_=void 0!==r.declutter&&r.declutter,i.renderBuffer_=void 0!==r.renderBuffer?r.renderBuffer:100,i.style_=null,i.styleFunction_=void 0,i.setStyle(r.style),i.updateWhileAnimating_=void 0!==r.updateWhileAnimating&&r.updateWhileAnimating,i.updateWhileInteracting_=void 0!==r.updateWhileInteracting&&r.updateWhileInteracting,i}return h(e,t),e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(l.RENDER_ORDER)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.renderDeclutter=function(t){t.declutterTree||(t.declutterTree=new o.a(9)),this.getRenderer().renderDeclutter(t)},e.prototype.setRenderOrder=function(t){this.set(l.RENDER_ORDER,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:a["a"],this.styleFunction_=null===t?void 0:Object(a["d"])(this.style_),this.changed()},e}(r["a"]),u=c,f={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},d=[f.FILL],p=[f.STROKE],g=[f.BEGIN_PATH],_=[f.CLOSE_PATH],y=f,v=i("f623"),m=i("045d"),x=function(){function t(){}return t.prototype.drawCustom=function(t,e,i,r){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}(),O=x,b=i("e98d"),S=i("0af5"),C=i("ddea"),w=i("9f5e"),E=i("bb6c"),T=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),I=function(t){function e(e,i,r,n){var o=t.call(this)||this;return o.tolerance=e,o.maxExtent=i,o.pixelRatio=n,o.maxLineWidth=0,o.resolution=r,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return T(e,t),e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))},e.prototype.appendFlatPointCoordinates=function(t,e){for(var i=this.getBufferedMaxExtent(),r=this.tmpCoordinate_,n=this.coordinates,o=n.length,s=0,a=t.length;s<a;s+=e)r[0]=t[s],r[1]=t[s+1],Object(S["f"])(i,r)&&(n[o++]=r[0],n[o++]=r[1]);return o},e.prototype.appendFlatLineCoordinates=function(t,e,i,r,n,o){var s=this.coordinates,a=s.length,h=this.getBufferedMaxExtent();o&&(e+=r);var l,c,u,f=t[e],d=t[e+1],p=this.tmpCoordinate_,g=!0;for(l=e+r;l<i;l+=r)p[0]=t[l],p[1]=t[l+1],u=Object(S["i"])(h,p),u!==c?(g&&(s[a++]=f,s[a++]=d,g=!1),s[a++]=p[0],s[a++]=p[1]):u===m["a"].INTERSECTING?(s[a++]=p[0],s[a++]=p[1],g=!1):g=!0,f=p[0],d=p[1],c=u;return(n&&g||l===e+r)&&(s[a++]=f,s[a++]=d),a},e.prototype.drawCustomCoordinates_=function(t,e,i,r,n){for(var o=0,s=i.length;o<s;++o){var a=i[o],h=this.appendFlatLineCoordinates(t,e,a,r,!1,!1);n.push(h),e=a}return e},e.prototype.drawCustom=function(t,e,i,r){this.beginGeometry(t,e);var n,o,s,a,h,l=t.getType(),c=t.getStride(),u=this.coordinates.length;switch(l){case v["a"].MULTI_POLYGON:n=t.getOrientedFlatCoordinates(),a=[];var f=t.getEndss();h=0;for(var d=0,p=f.length;d<p;++d){var g=[];h=this.drawCustomCoordinates_(n,h,f[d],c,g),a.push(g)}this.instructions.push([y.CUSTOM,u,a,t,i,E["c"]]),this.hitDetectionInstructions.push([y.CUSTOM,u,a,t,r||i,E["c"]]);break;case v["a"].POLYGON:case v["a"].MULTI_LINE_STRING:s=[],n=l==v["a"].POLYGON?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),h=this.drawCustomCoordinates_(n,0,t.getEnds(),c,s),this.instructions.push([y.CUSTOM,u,s,t,i,E["b"]]),this.hitDetectionInstructions.push([y.CUSTOM,u,s,t,r||i,E["b"]]);break;case v["a"].LINE_STRING:case v["a"].CIRCLE:n=t.getFlatCoordinates(),o=this.appendFlatLineCoordinates(n,0,n.length,c,!1,!1),this.instructions.push([y.CUSTOM,u,o,t,i,E["a"]]),this.hitDetectionInstructions.push([y.CUSTOM,u,o,t,r||i,E["a"]]);break;case v["a"].MULTI_POINT:n=t.getFlatCoordinates(),o=this.appendFlatPointCoordinates(n,c),o>u&&(this.instructions.push([y.CUSTOM,u,o,t,i,E["a"]]),this.hitDetectionInstructions.push([y.CUSTOM,u,o,t,r||i,E["a"]]));break;case v["a"].POINT:n=t.getFlatCoordinates(),this.coordinates.push(n[0],n[1]),o=this.coordinates.length,this.instructions.push([y.CUSTOM,u,o,t,i]),this.hitDetectionInstructions.push([y.CUSTOM,u,o,t,r||i]);break;default:}this.endGeometry(e)},e.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[y.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[y.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var i,r,n=e.length,o=-1;for(t=0;t<n;++t)i=e[t],r=i[0],r==y.END_GEOMETRY?o=t:r==y.BEGIN_GEOMETRY&&(i[2]=t,Object(w["j"])(this.hitDetectionInstructions,o,t),o=-1)},e.prototype.setFillStrokeStyle=function(t,e){var i=this.state;if(t){var r=t.getColor();i.fillStyle=Object(b["a"])(r||C["b"])}else i.fillStyle=void 0;if(e){var n=e.getColor();i.strokeStyle=Object(b["a"])(n||C["k"]);var o=e.getLineCap();i.lineCap=void 0!==o?o:C["d"];var s=e.getLineDash();i.lineDash=s?s.slice():C["e"];var a=e.getLineDashOffset();i.lineDashOffset=a||C["f"];var h=e.getLineJoin();i.lineJoin=void 0!==h?h:C["g"];var l=e.getWidth();i.lineWidth=void 0!==l?l:C["h"];var c=e.getMiterLimit();i.miterLimit=void 0!==c?c:C["i"],i.lineWidth>this.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,i=[y.SET_FILL_STYLE,e];return"string"!==typeof e&&i.push(!0),i},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[y.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e){var i=t.fillStyle;"string"===typeof i&&t.currentFillStyle==i||(void 0!==i&&this.instructions.push(e.call(this,t)),t.currentFillStyle=i)},e.prototype.updateStrokeStyle=function(t,e){var i=t.strokeStyle,r=t.lineCap,n=t.lineDash,o=t.lineDashOffset,s=t.lineJoin,a=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=r||n!=t.currentLineDash&&!Object(w["b"])(t.currentLineDash,n)||t.currentLineDashOffset!=o||t.currentLineJoin!=s||t.currentLineWidth!=a||t.currentMiterLimit!=h)&&(void 0!==i&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=r,t.currentLineDash=n,t.currentLineDashOffset=o,t.currentLineJoin=s,t.currentLineWidth=a,t.currentMiterLimit=h)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[y.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(S["d"])(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Object(S["c"])(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(O),R=I,L=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),F=function(t){function e(e,i,r,n){var o=t.call(this,e,i,r,n)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterImageWithText_=void 0,o}return L(e,t),e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),r=t.getStride(),n=this.coordinates.length,o=this.appendFlatPointCoordinates(i,r);this.instructions.push([y.DRAW_IMAGE,n,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([y.DRAW_IMAGE,n,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),r=t.getStride(),n=this.coordinates.length,o=this.appendFlatPointCoordinates(i,r);this.instructions.push([y.DRAW_IMAGE,n,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([y.DRAW_IMAGE,n,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,e){var i=t.getAnchor(),r=t.getSize(),n=t.getHitDetectionImage(),o=t.getImage(this.pixelRatio),s=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=n,this.image_=o,this.height_=r[1],this.opacity_=t.getOpacity(),this.originX_=s[0]*this.imagePixelRatio_,this.originY_=s[1]*this.imagePixelRatio_,this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=r[0],this.declutterImageWithText_=e},e}(R),k=F,P=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),j=function(t){function e(e,i,r,n){return t.call(this,e,i,r,n)||this}return P(e,t),e.prototype.drawFlatCoordinates_=function(t,e,i,r){var n=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,i,r,!1,!1),s=[y.MOVE_TO_LINE_TO,n,o];return this.instructions.push(s),this.hitDetectionInstructions.push(s),i},e.prototype.drawLineString=function(t,e){var i=this.state,r=i.strokeStyle,n=i.lineWidth;if(void 0!==r&&void 0!==n){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([y.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,C["e"],C["f"]],g);var o=t.getFlatCoordinates(),s=t.getStride();this.drawFlatCoordinates_(o,0,o.length,s),this.hitDetectionInstructions.push(p),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var i=this.state,r=i.strokeStyle,n=i.lineWidth;if(void 0!==r&&void 0!==n){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([y.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],g);for(var o=t.getEnds(),s=t.getFlatCoordinates(),a=t.getStride(),h=0,l=0,c=o.length;l<c;++l)h=this.drawFlatCoordinates_(s,h,o[l],a);this.hitDetectionInstructions.push(p),this.endGeometry(e)}},e.prototype.finish=function(){var e=this.state;return void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(p),this.reverseHitDetectionInstructions(),this.state=null,t.prototype.finish.call(this)},e.prototype.applyStroke=function(e){void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(p),e.lastStroke=this.coordinates.length),e.lastStroke=0,t.prototype.applyStroke.call(this,e),this.instructions.push(g)},e}(R),D=j,A=i("1c48"),M=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),G=function(t){function e(e,i,r,n){return t.call(this,e,i,r,n)||this}return M(e,t),e.prototype.drawFlatCoordinatess_=function(t,e,i,r){var n=this.state,o=void 0!==n.fillStyle,s=void 0!==n.strokeStyle,a=i.length;this.instructions.push(g),this.hitDetectionInstructions.push(g);for(var h=0;h<a;++h){var l=i[h],c=this.coordinates.length,u=this.appendFlatLineCoordinates(t,e,l,r,!0,!s),f=[y.MOVE_TO_LINE_TO,c,u];this.instructions.push(f),this.hitDetectionInstructions.push(f),s&&(this.instructions.push(_),this.hitDetectionInstructions.push(_)),e=l}return o&&(this.instructions.push(d),this.hitDetectionInstructions.push(d)),s&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),e},e.prototype.drawCircle=function(t,e){var i=this.state,r=i.fillStyle,n=i.strokeStyle;if(void 0!==r||void 0!==n){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([y.SET_FILL_STYLE,C["b"]]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([y.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);var o=t.getFlatCoordinates(),s=t.getStride(),a=this.coordinates.length;this.appendFlatLineCoordinates(o,0,o.length,s,!1,!1);var h=[y.CIRCLE,a];this.instructions.push(g,h),this.hitDetectionInstructions.push(g,h),void 0!==i.fillStyle&&(this.instructions.push(d),this.hitDetectionInstructions.push(d)),void 0!==i.strokeStyle&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),this.endGeometry(e)}},e.prototype.drawPolygon=function(t,e){var i=this.state,r=i.fillStyle,n=i.strokeStyle;if(void 0!==r||void 0!==n){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([y.SET_FILL_STYLE,C["b"]]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([y.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);var o=t.getEnds(),s=t.getOrientedFlatCoordinates(),a=t.getStride();this.drawFlatCoordinatess_(s,0,o,a),this.endGeometry(e)}},e.prototype.drawMultiPolygon=function(t,e){var i=this.state,r=i.fillStyle,n=i.strokeStyle;if(void 0!==r||void 0!==n){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([y.SET_FILL_STYLE,C["b"]]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([y.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);for(var o=t.getEndss(),s=t.getOrientedFlatCoordinates(),a=t.getStride(),h=0,l=0,c=o.length;l<c;++l)h=this.drawFlatCoordinatess_(s,h,o[l],a);this.endGeometry(e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var e=this.tolerance;if(0!==e)for(var i=this.coordinates,r=0,n=i.length;r<n;++r)i[r]=Object(A["e"])(i[r],e);return t.prototype.finish.call(this)},e.prototype.setFillStrokeStyles_=function(){var t=this.state,e=t.fillStyle;void 0!==e&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)},e}(R),N=G,B={POINT:"point",LINE:"line"},Y=i("1300");function U(t,e,i,r,n){var o,s,a,h,l,c,u,f,d,p,g=i,_=i,y=0,v=0,m=i;for(s=i;s<r;s+=n){var x=e[s],O=e[s+1];void 0!==l&&(d=x-l,p=O-c,h=Math.sqrt(d*d+p*p),void 0!==u&&(v+=a,o=Math.acos((u*d+f*p)/(a*h)),o>t&&(v>y&&(y=v,g=m,_=s),v=0,m=s-n)),a=h,u=d,f=p),l=x,c=O}return v+=h,v>y?[m,s]:[g,_]}var W=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),X={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},V=function(t){function e(e,i,r,n){var o=t.call(this,e,i,r,n)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return W(e,t),e.prototype.finish=function(){var e=t.prototype.finish.call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e},e.prototype.drawText=function(t,e){var i=this.textFillState_,r=this.textStrokeState_,n=this.textState_;if(""!==this.text_&&n&&(i||r)){var o=this.coordinates,s=o.length,a=t.getType(),h=null,l=t.getStride();if(n.placement!==B.LINE||a!=v["a"].LINE_STRING&&a!=v["a"].MULTI_LINE_STRING&&a!=v["a"].POLYGON&&a!=v["a"].MULTI_POLYGON){var c=n.overflow?null:[];switch(a){case v["a"].POINT:case v["a"].MULTI_POINT:h=t.getFlatCoordinates();break;case v["a"].LINE_STRING:h=t.getFlatMidpoint();break;case v["a"].CIRCLE:h=t.getCenter();break;case v["a"].MULTI_LINE_STRING:h=t.getFlatMidpoints(),l=2;break;case v["a"].POLYGON:h=t.getFlatInteriorPoint(),n.overflow||c.push(h[2]/this.resolution),l=3;break;case v["a"].MULTI_POLYGON:var u=t.getFlatInteriorPoints();h=[];for(E=0,T=u.length;E<T;E+=3)n.overflow||c.push(u[E+2]/this.resolution),h.push(u[E],u[E+1]);if(0===h.length)return;l=2;break;default:}j=this.appendFlatPointCoordinates(h,l);if(j===s)return;if(c&&(j-s)/2!==h.length/l){var f=s/2;c=c.filter((function(t,e){var i=o[2*(f+e)]===h[e*l]&&o[2*(f+e)+1]===h[e*l+1];return i||--f,i}))}this.saveTextStates_(),(n.backgroundFill||n.backgroundStroke)&&(this.setFillStrokeStyle(n.backgroundFill,n.backgroundStroke),n.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),n.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);var d=n.padding;if(d!=C["j"]&&(n.scale[0]<0||n.scale[1]<0)){var p=n.padding[0],g=n.padding[1],_=n.padding[2],m=n.padding[3];n.scale[0]<0&&(g=-g,m=-m),n.scale[1]<0&&(p=-p,_=-_),d=[p,g,_,m]}var x=this.pixelRatio;this.instructions.push([y.DRAW_IMAGE,s,j,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterImageWithText_,d==C["j"]?C["j"]:d.map((function(t){return t*x})),!!n.backgroundFill,!!n.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,c]);var O=1/x;this.hitDetectionInstructions.push([y.DRAW_IMAGE,s,j,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[O,O],NaN,this.declutterImageWithText_,d,!!n.backgroundFill,!!n.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,c]),this.endGeometry(e)}else{if(!Object(S["E"])(this.getBufferedMaxExtent(),t.getExtent()))return;var b=void 0;if(h=t.getFlatCoordinates(),a==v["a"].LINE_STRING)b=[h.length];else if(a==v["a"].MULTI_LINE_STRING)b=t.getEnds();else if(a==v["a"].POLYGON)b=t.getEnds().slice(0,1);else if(a==v["a"].MULTI_POLYGON){var w=t.getEndss();b=[];for(var E=0,T=w.length;E<T;++E)b.push(w[E][0])}this.beginGeometry(t,e);for(var I=n.textAlign,R=0,L=void 0,F=0,k=b.length;F<k;++F){if(void 0==I){var P=U(n.maxAngle,h,R,b[F],l);R=P[0],L=P[1]}else L=b[F];for(var E=R;E<L;E+=l)o.push(h[E],h[E+1]);var j=o.length;R=b[F],this.drawChars_(s,j),s=j}this.endGeometry(e)}}},e.prototype.saveTextStates_=function(){var t=this.textStrokeState_,e=this.textState_,i=this.textFillState_,r=this.strokeKey_;t&&(r in this.strokeStates||(this.strokeStates[r]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));var n=this.textKey_;n in this.textStates||(this.textStates[n]={font:e.font,textAlign:e.textAlign||C["l"],textBaseline:e.textBaseline||C["m"],scale:e.scale});var o=this.fillKey_;i&&(o in this.fillStates||(this.fillStates[o]={fillStyle:i.fillStyle}))},e.prototype.drawChars_=function(t,e){var i=this.textStrokeState_,r=this.textState_,n=this.strokeKey_,o=this.textKey_,s=this.fillKey_;this.saveTextStates_();var a=this.pixelRatio,h=X[r.textBaseline],l=this.textOffsetY_*a,c=this.text_,u=i?i.lineWidth*Math.abs(r.scale[0])/2:0;this.instructions.push([y.DRAW_CHARS,t,e,h,r.overflow,s,r.maxAngle,a,l,n,u*a,c,o,1]),this.hitDetectionInstructions.push([y.DRAW_CHARS,t,e,h,r.overflow,s,r.maxAngle,1,l,n,u,c,o,1/a])},e.prototype.setTextStyle=function(t,e){var i,r,n;if(t){var o=t.getFill();o?(r=this.textFillState_,r||(r={},this.textFillState_=r),r.fillStyle=Object(b["a"])(o.getColor()||C["b"])):(r=null,this.textFillState_=r);var s=t.getStroke();if(s){n=this.textStrokeState_,n||(n={},this.textStrokeState_=n);var a=s.getLineDash(),h=s.getLineDashOffset(),l=s.getWidth(),c=s.getMiterLimit();n.lineCap=s.getLineCap()||C["d"],n.lineDash=a?a.slice():C["e"],n.lineDashOffset=void 0===h?C["f"]:h,n.lineJoin=s.getLineJoin()||C["g"],n.lineWidth=void 0===l?C["h"]:l,n.miterLimit=void 0===c?C["i"]:c,n.strokeStyle=Object(b["a"])(s.getColor()||C["k"])}else n=null,this.textStrokeState_=n;i=this.textState_;var u=t.getFont()||C["c"];Object(C["r"])(u);var f=t.getScaleArray();i.overflow=t.getOverflow(),i.font=u,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.textBaseline=t.getTextBaseline()||C["m"],i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||C["j"],i.scale=void 0===f?[1,1]:f;var d=t.getOffsetX(),p=t.getOffsetY(),g=t.getRotateWithView(),_=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===d?0:d,this.textOffsetY_=void 0===p?0:p,this.textRotateWithView_=void 0!==g&&g,this.textRotation_=void 0===_?0:_,this.strokeKey_=n?("string"==typeof n.strokeStyle?n.strokeStyle:Object(Y["c"])(n.strokeStyle))+n.lineCap+n.lineDashOffset+"|"+n.lineWidth+n.lineJoin+n.miterLimit+"["+n.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.textBaseline||"?"),this.fillKey_=r?"string"==typeof r.fillStyle?r.fillStyle:"|"+Object(Y["c"])(r.fillStyle):""}else this.text_="";this.declutterImageWithText_=e},e}(R),H=V,q={Circle:N,Default:R,Image:k,LineString:D,Polygon:N,Text:H},J=function(){function t(t,e,i,r){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=r,this.resolution_=i,this.buildersByZIndex_={}}return t.prototype.finish=function(){var t={};for(var e in this.buildersByZIndex_){t[e]=t[e]||{};var i=this.buildersByZIndex_[e];for(var r in i){var n=i[r].finish();t[e][r]=n}}return t},t.prototype.getBuilder=function(t,e){var i=void 0!==t?t.toString():"0",r=this.buildersByZIndex_[i];void 0===r&&(r={},this.buildersByZIndex_[i]=r);var n=r[e];if(void 0===n){var o=q[e];n=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),r[e]=n}return n},t}(),z=J,K=i("137e"),Z={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"},Q=i("617d"),$=i("a896"),tt=i("7fc9"),et=i("bef8");function it(t,e,i,r,n,o,s,a,h,l,c,u){var f=t[e],d=t[e+1],p=0,g=0,_=0,y=0;function v(){p=f,g=d,e+=r,f=t[e],d=t[e+1],y+=_,_=Math.sqrt((f-p)*(f-p)+(d-g)*(d-g))}do{v()}while(e<i-r&&y+_<o);var m=0===_?0:(o-y)/_,x=Object(tt["c"])(p,f,m),O=Object(tt["c"])(g,d,m),b=e-r,S=y,C=o+a*h(l,n,c);while(e<i-r&&y+_<C)v();m=0===_?0:(C-y)/_;var w,E=Object(tt["c"])(p,f,m),T=Object(tt["c"])(g,d,m);if(u){var I=[x,O,E,T];Object(et["a"])(I,0,4,2,u,I,I),w=I[0]>I[2]}else w=x>E;var R,L=Math.PI,F=[],k=b+r===e;if(e=b,_=0,y=S,f=t[e],d=t[e+1],k){v(),R=Math.atan2(d-g,f-p),w&&(R+=R>0?-L:L);var P=(E+x)/2,j=(T+O)/2;return F[0]=[P,j,(C-o)/2,R,n],F}for(var D=0,A=n.length;D<A;){v();var M=Math.atan2(d-g,f-p);if(w&&(M+=M>0?-L:L),void 0!==R){var G=M-R;if(G+=G>L?-2*L:G<-L?2*L:0,Math.abs(G)>s)return null}R=M;for(var N=D,B=0;D<A;++D){var Y=w?A-D-1:D,U=a*h(l,n[Y],c);if(e+r<i&&y+_<o+B+U/2)break;B+=U}if(D!==N){var W=w?n.substring(A-N,A-D):n.substring(N,D);m=0===_?0:(o+B/2-y)/_;P=Object(tt["c"])(p,f,m),j=Object(tt["c"])(g,d,m);F.push([P,j,B/2,M,W]),o+=B}}return F}var rt=i("5938"),nt=Object(S["j"])(),ot=[],st=[],at=[],ht=[];function lt(t){return t[3].declutterBox}var ct=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function ut(t,e){return"start"!==e&&"end"!==e||ct.test(t)||(e="start"===e?"left":"right"),X[e]}var ft=function(){function t(t,e,i,r){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=Object($["c"])(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={}}return t.prototype.createLabel=function(t,e,i,r){var n=t+e+i+r;if(this.labels_[n])return this.labels_[n];var o=r?this.strokeStates[r]:null,s=i?this.fillStates[i]:null,a=this.textStates[e],h=this.pixelRatio,l=[a.scale[0]*h,a.scale[1]*h],c=ut(t,a.textAlign||C["l"]),u=r&&o.lineWidth?o.lineWidth:0,f=t.split("\n"),d=f.length,p=[],g=Object(C["q"])(a.font,f,p),_=Object(C["p"])(a.font),y=_*d,v=g+u,m=[],x=(v+2)*l[0],O=(y+u)*l[1],b={width:x<0?Math.floor(x):Math.ceil(x),height:O<0?Math.floor(O):Math.ceil(O),contextInstructions:m};if(1==l[0]&&1==l[1]||m.push("scale",l),m.push("font",a.font),r){m.push("strokeStyle",o.strokeStyle),m.push("lineWidth",u),m.push("lineCap",o.lineCap),m.push("lineJoin",o.lineJoin),m.push("miterLimit",o.miterLimit);var S=Q["g"]?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;S.prototype.setLineDash&&(m.push("setLineDash",[o.lineDash]),m.push("lineDashOffset",o.lineDashOffset))}i&&m.push("fillStyle",s.fillStyle),m.push("textBaseline","middle"),m.push("textAlign","center");var w,E=.5-c,T=c*v+E*u;if(r)for(w=0;w<d;++w)m.push("strokeText",[f[w],T+E*p[w],.5*(u+_)+w*_]);if(i)for(w=0;w<d;++w)m.push("fillText",[f[w],T+E*p[w],.5*(u+_)+w*_]);return this.labels_[n]=b,b},t.prototype.replayTextBackground_=function(t,e,i,r,n,o,s){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,i),t.lineTo.apply(t,r),t.lineTo.apply(t,n),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),s&&(this.setStrokeStyle_(t,s),t.stroke())},t.prototype.calculateImageOrLabelDimensions_=function(t,e,i,r,n,o,s,a,h,l,c,u,f,d,p,g){s*=u[0],a*=u[1];var _,y=i-s,v=r-a,m=n+h>t?t-h:n,x=o+l>e?e-l:o,O=d[3]+m*u[0]+d[1],b=d[0]+x*u[1]+d[2],C=y-d[3],w=v-d[0];return(p||0!==c)&&(ot[0]=C,ht[0]=C,ot[1]=w,st[1]=w,st[0]=C+O,at[0]=st[0],at[1]=w+b,ht[1]=at[1]),0!==c?(_=Object($["b"])(Object($["c"])(),i,r,1,1,c,-i,-r),Object($["a"])(_,ot),Object($["a"])(_,st),Object($["a"])(_,at),Object($["a"])(_,ht),Object(S["k"])(Math.min(ot[0],st[0],at[0],ht[0]),Math.min(ot[1],st[1],at[1],ht[1]),Math.max(ot[0],st[0],at[0],ht[0]),Math.max(ot[1],st[1],at[1],ht[1]),nt)):Object(S["k"])(Math.min(C,C+O),Math.min(w,w+b),Math.max(C,C+O),Math.max(w,w+b),nt),f&&(y=Math.round(y),v=Math.round(v)),{drawImageX:y,drawImageY:v,drawImageW:m,drawImageH:x,originX:h,originY:l,declutterBox:{minX:nt[0],minY:nt[1],maxX:nt[2],maxY:nt[3],value:g},canvasTransform:_,scale:u}},t.prototype.replayImageOrLabel_=function(t,e,i,r,n,o,s){var a=!(!o&&!s),h=r.declutterBox,l=t.canvas,c=s?s[2]*r.scale[0]/2:0,u=h.minX-c<=l.width/e&&h.maxX+c>=0&&h.minY-c<=l.height/e&&h.maxY+c>=0;return u&&(a&&this.replayTextBackground_(t,ot,st,at,ht,o,s),Object(C["n"])(t,r.canvasTransform,n,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0},t.prototype.fill_=function(t){if(this.alignFill_){var e=Object($["a"])(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(e[0]%i,e[1]%i),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},t.prototype.setStrokeStyle_=function(t,e){t["strokeStyle"]=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},t.prototype.drawLabelWithPointPlacement_=function(t,e,i,r){var n=this.textStates[e],o=this.createLabel(t,e,r,i),s=this.strokeStates[i],a=this.pixelRatio,h=ut(t,n.textAlign||C["l"]),l=X[n.textBaseline||C["m"]],c=s&&s.lineWidth?s.lineWidth:0,u=o.width/a-2*n.scale[0],f=h*u+2*(.5-h)*c,d=l*o.height/a+2*(.5-l)*c;return{label:o,anchorX:f,anchorY:d}},t.prototype.execute_=function(t,e,i,r,n,o,s,a){var h;this.pixelCoordinates_&&Object(w["b"])(i,this.renderedTransform_)?h=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),h=Object(et["c"])(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),Object($["f"])(this.renderedTransform_,i));var l,c,u,f,d,p,g,_,v,m,x,O,b,E,T,I,R=0,L=r.length,F=0,k=0,P=0,j=null,D=null,A=this.coordinateCache_,M=this.viewRotation_,G=Math.round(1e12*Math.atan2(-i[1],i[0]))/1e12,N={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:M},B=this.instructions!=r||this.overlaps?0:200;while(R<L){var Y=r[R],U=Y[0];switch(U){case y.BEGIN_GEOMETRY:b=Y[1],I=Y[3],b.getGeometry()?void 0===s||Object(S["E"])(s,I.getExtent())?++R:R=Y[2]+1:R=Y[2];break;case y.BEGIN_PATH:k>B&&(this.fill_(t),k=0),P>B&&(t.stroke(),P=0),k||P||(t.beginPath(),f=NaN,d=NaN),++R;break;case y.CIRCLE:F=Y[1];var W=h[F],V=h[F+1],H=h[F+2],q=h[F+3],J=H-W,z=q-V,K=Math.sqrt(J*J+z*z);t.moveTo(W+K,V),t.arc(W,V,K,0,2*Math.PI,!0),++R;break;case y.CLOSE_PATH:t.closePath(),++R;break;case y.CUSTOM:F=Y[1],l=Y[2];var Z=Y[3],Q=Y[4],tt=6==Y.length?Y[5]:void 0;N.geometry=Z,N.feature=b,R in A||(A[R]=[]);var nt=A[R];tt?tt(h,F,l,2,nt):(nt[0]=h[F],nt[1]=h[F+1],nt.length=2),Q(nt,N),++R;break;case y.DRAW_IMAGE:F=Y[1],l=Y[2],_=Y[3],c=Y[4],u=Y[5];var ot=Y[6],st=Y[7],at=Y[8],ht=Y[9],ct=Y[10],ut=Y[11],ft=Y[12],dt=Y[13],pt=Y[14];if(!_&&Y.length>=19){v=Y[18],m=Y[19],x=Y[20],O=Y[21];var gt=this.drawLabelWithPointPlacement_(v,m,x,O);_=gt.label,Y[3]=_;var _t=Y[22];c=(gt.anchorX-_t)*this.pixelRatio,Y[4]=c;var yt=Y[23];u=(gt.anchorY-yt)*this.pixelRatio,Y[5]=u,ot=_.height,Y[6]=ot,dt=_.width,Y[13]=dt}var vt=void 0;Y.length>24&&(vt=Y[24]);var mt=void 0,xt=void 0,Ot=void 0;Y.length>16?(mt=Y[15],xt=Y[16],Ot=Y[17]):(mt=C["j"],xt=!1,Ot=!1),ct&&G?ut+=M:ct||G||(ut-=M);for(var bt=0;F<l;F+=2)if(!(vt&&vt[bt++]<dt/this.pixelRatio)){var St=this.calculateImageOrLabelDimensions_(_.width,_.height,h[F],h[F+1],dt,ot,c,u,at,ht,ut,ft,n,mt,xt||Ot,b),Ct=[t,e,_,St,st,xt?j:null,Ot?D:null],wt=void 0,Et=void 0;if(a&&pt){var Tt=l-F;if(!pt[Tt]){pt[Tt]=Ct;continue}if(wt=pt[Tt],delete pt[Tt],Et=lt(wt),a.collides(Et))continue}a&&a.collides(St.declutterBox)||(wt&&(a&&a.insert(Et),this.replayImageOrLabel_.apply(this,wt)),a&&a.insert(St.declutterBox),this.replayImageOrLabel_.apply(this,Ct))}++R;break;case y.DRAW_CHARS:var It=Y[1],Rt=Y[2],Lt=Y[3],Ft=Y[4];O=Y[5];var kt=Y[6],Pt=Y[7],jt=Y[8];x=Y[9];var Dt=Y[10];v=Y[11],m=Y[12];var At=[Y[13],Y[13]],Mt=this.textStates[m],Gt=Mt.font,Nt=[Mt.scale[0]*Pt,Mt.scale[1]*Pt],Bt=void 0;Gt in this.widths_?Bt=this.widths_[Gt]:(Bt={},this.widths_[Gt]=Bt);var Yt=Object(rt["a"])(h,It,Rt,2),Ut=Math.abs(Nt[0])*Object(C["o"])(Gt,v,Bt);if(Ft||Ut<=Yt){var Wt=this.textStates[m].textAlign,Xt=(Yt-Ut)*X[Wt],Vt=it(h,It,Rt,2,v,Xt,kt,Math.abs(Nt[0]),C["o"],Gt,Bt,G?0:this.viewRotation_);t:if(Vt){var Ht=[],qt=void 0,Jt=void 0,zt=void 0,Kt=void 0,Zt=void 0;if(x)for(qt=0,Jt=Vt.length;qt<Jt;++qt){Zt=Vt[qt],zt=Zt[4],Kt=this.createLabel(zt,m,"",x),c=Zt[2]+(Nt[0]<0?-Dt:Dt),u=Lt*Kt.height+2*(.5-Lt)*Dt*Nt[1]/Nt[0]-jt;St=this.calculateImageOrLabelDimensions_(Kt.width,Kt.height,Zt[0],Zt[1],Kt.width,Kt.height,c,u,0,0,Zt[3],At,!1,C["j"],!1,b);if(a&&a.collides(St.declutterBox))break t;Ht.push([t,e,Kt,St,1,null,null])}if(O)for(qt=0,Jt=Vt.length;qt<Jt;++qt){Zt=Vt[qt],zt=Zt[4],Kt=this.createLabel(zt,m,O,""),c=Zt[2],u=Lt*Kt.height-jt;St=this.calculateImageOrLabelDimensions_(Kt.width,Kt.height,Zt[0],Zt[1],Kt.width,Kt.height,c,u,0,0,Zt[3],At,!1,C["j"],!1,b);if(a&&a.collides(St.declutterBox))break t;Ht.push([t,e,Kt,St,1,null,null])}a&&a.load(Ht.map(lt));for(var Qt=0,$t=Ht.length;Qt<$t;++Qt)this.replayImageOrLabel_.apply(this,Ht[Qt])}}++R;break;case y.END_GEOMETRY:if(void 0!==o){b=Y[1];var te=o(b,I);if(te)return te}++R;break;case y.FILL:B?k++:this.fill_(t),++R;break;case y.MOVE_TO_LINE_TO:for(F=Y[1],l=Y[2],E=h[F],T=h[F+1],p=E+.5|0,g=T+.5|0,p===f&&g===d||(t.moveTo(E,T),f=p,d=g),F+=2;F<l;F+=2)E=h[F],T=h[F+1],p=E+.5|0,g=T+.5|0,F!=l-2&&p===f&&g===d||(t.lineTo(E,T),f=p,d=g);++R;break;case y.SET_FILL_STYLE:j=Y,this.alignFill_=Y[2],k&&(this.fill_(t),k=0,P&&(t.stroke(),P=0)),t.fillStyle=Y[1],++R;break;case y.SET_STROKE_STYLE:D=Y,P&&(t.stroke(),P=0),this.setStrokeStyle_(t,Y),++R;break;case y.STROKE:B?P++:t.stroke(),++R;break;default:++R;break}}k&&this.fill_(t),P&&t.stroke()},t.prototype.execute=function(t,e,i,r,n,o){this.viewRotation_=r,this.execute_(t,e,i,this.instructions,n,void 0,void 0,o)},t.prototype.executeHitDetection=function(t,e,i,r,n){return this.viewRotation_=i,this.execute_(t,1,e,this.hitDetectionInstructions,!0,r,n)},t}(),dt=ft,pt=i("0999"),gt=[Z.POLYGON,Z.CIRCLE,Z.LINE_STRING,Z.IMAGE,Z.TEXT,Z.DEFAULT],_t=function(){function t(t,e,i,r,n,o){this.maxExtent_=t,this.overlaps_=r,this.pixelRatio_=i,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Object($["c"])(),this.createExecutors_(n)}return t.prototype.clip=function(t,e){var i=this.getClipCoords(e);t.beginPath(),t.moveTo(i[0],i[1]),t.lineTo(i[2],i[3]),t.lineTo(i[4],i[5]),t.lineTo(i[6],i[7]),t.clip()},t.prototype.createExecutors_=function(t){for(var e in t){var i=this.executorsByZIndex_[e];void 0===i&&(i={},this.executorsByZIndex_[e]=i);var r=t[e];for(var n in r){var o=r[n];i[n]=new dt(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},t.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var i=this.executorsByZIndex_[e],r=0,n=t.length;r<n;++r)if(t[r]in i)return!0;return!1},t.prototype.forEachFeatureAtCoordinate=function(t,e,i,r,n,o){r=Math.round(r);var s=2*r+1,a=Object($["b"])(this.hitDetectionTransform_,r+.5,r+.5,1/e,-1/e,-i,-t[0],-t[1]),h=!this.hitDetectionContext_;h&&(this.hitDetectionContext_=Object(pt["a"])(s,s));var l,c=this.hitDetectionContext_;c.canvas.width!==s||c.canvas.height!==s?(c.canvas.width=s,c.canvas.height=s):h||c.clearRect(0,0,s,s),void 0!==this.renderBuffer_&&(l=Object(S["j"])(),Object(S["q"])(l,t),Object(S["c"])(l,e*(this.renderBuffer_+r),l));var u,f=vt(r);function d(t,e){for(var i=c.getImageData(0,0,s,s).data,a=0,h=f.length;a<h;a++)if(i[f[a]]>0){if(!o||u!==Z.IMAGE&&u!==Z.TEXT||-1!==o.indexOf(t)){var l=(f[a]-3)/4,d=r-l%s,p=r-(l/s|0),g=n(t,e,d*d+p*p);if(g)return g}c.clearRect(0,0,s,s);break}}var p,g,_,y,v,m=Object.keys(this.executorsByZIndex_).map(Number);for(m.sort(w["i"]),p=m.length-1;p>=0;--p){var x=m[p].toString();for(_=this.executorsByZIndex_[x],g=gt.length-1;g>=0;--g)if(u=gt[g],y=_[u],void 0!==y&&(v=y.executeHitDetection(c,a,i,d,l),v))return v}},t.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var i=e[0],r=e[1],n=e[2],o=e[3],s=[i,r,i,o,n,o,n,r];return Object(et["c"])(s,0,8,2,t,s),s},t.prototype.isEmpty=function(){return Object(s["d"])(this.executorsByZIndex_)},t.prototype.execute=function(t,e,i,r,n,o,s){var a=Object.keys(this.executorsByZIndex_).map(Number);a.sort(w["i"]),this.maxExtent_&&(t.save(),this.clip(t,i));var h,l,c,u,f,d,p=o||gt;for(s&&a.reverse(),h=0,l=a.length;h<l;++h){var g=a[h].toString();for(f=this.executorsByZIndex_[g],c=0,u=p.length;c<u;++c){var _=p[c];d=f[_],void 0!==d&&d.execute(t,e,i,r,n,s)}}this.maxExtent_&&t.restore()},t}(),yt={};function vt(t){if(void 0!==yt[t])return yt[t];for(var e=2*t+1,i=t*t,r=new Array(i+1),n=0;n<=t;++n)for(var o=0;o<=t;++o){var s=n*n+o*o;if(s>i)break;var a=r[s];a||(a=[],r[s]=a),a.push(4*((t+n)*e+(t+o))+3),n>0&&a.push(4*((t-n)*e+(t+o))+3),o>0&&(a.push(4*((t+n)*e+(t-o))+3),n>0&&a.push(4*((t-n)*e+(t-o))+3))}for(var h=[],l=(n=0,r.length);n<l;++n)r[n]&&h.push.apply(h,r[n]);return yt[t]=h,h}var mt=_t,xt=i("496f"),Ot=i("9abc"),bt=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),St=function(t){function e(e,i,r,n,o,s,a){var h=t.call(this)||this;return h.context_=e,h.pixelRatio_=i,h.extent_=r,h.transform_=n,h.viewRotation_=o,h.squaredTolerance_=s,h.userTransform_=a,h.contextFillState_=null,h.contextStrokeState_=null,h.contextTextState_=null,h.fillState_=null,h.strokeState_=null,h.image_=null,h.imageAnchorX_=0,h.imageAnchorY_=0,h.imageHeight_=0,h.imageOpacity_=0,h.imageOriginX_=0,h.imageOriginY_=0,h.imageRotateWithView_=!1,h.imageRotation_=0,h.imageScale_=[0,0],h.imageWidth_=0,h.text_="",h.textOffsetX_=0,h.textOffsetY_=0,h.textRotateWithView_=!1,h.textRotation_=0,h.textScale_=[0,0],h.textFillState_=null,h.textStrokeState_=null,h.textState_=null,h.pixelCoordinates_=[],h.tmpLocalTransform_=Object($["c"])(),h}return bt(e,t),e.prototype.drawImages_=function(t,e,i,r){if(this.image_){var n=Object(et["c"])(t,e,i,r,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.tmpLocalTransform_,a=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=a*this.imageOpacity_);var h=this.imageRotation_;this.imageRotateWithView_&&(h+=this.viewRotation_);for(var l=0,c=n.length;l<c;l+=2){var u=n[l]-this.imageAnchorX_,f=n[l+1]-this.imageAnchorY_;if(0!==h||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var d=u+this.imageAnchorX_,p=f+this.imageAnchorY_;Object($["b"])(s,d,p,1,1,h,-d,-p),o.setTransform.apply(o,s),o.translate(d,p),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.setTransform(1,0,0,1,0,0)}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,u,f,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=a)}},e.prototype.drawText_=function(t,e,i,r){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var n=Object(et["c"])(t,e,i,r,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.textRotation_;for(this.textRotateWithView_&&(s+=this.viewRotation_);e<i;e+=r){var a=n[e]+this.textOffsetX_,h=n[e+1]+this.textOffsetY_;if(0!==s||1!=this.textScale_[0]||1!=this.textScale_[1]){var l=Object($["b"])(this.tmpLocalTransform_,a,h,1,1,s,-a,-h);o.setTransform.apply(o,l),o.translate(a,h),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&o.strokeText(this.text_,a,h),this.textFillState_&&o.fillText(this.text_,a,h)}}},e.prototype.moveToLineTo_=function(t,e,i,r,n){var o=this.context_,s=Object(et["c"])(t,e,i,r,this.transform_,this.pixelCoordinates_);o.moveTo(s[0],s[1]);var a=s.length;n&&(a-=2);for(var h=2;h<a;h+=2)o.lineTo(s[h],s[h+1]);return n&&o.closePath(),i},e.prototype.drawRings_=function(t,e,i,r){for(var n=0,o=i.length;n<o;++n)e=this.moveToLineTo_(t,e,i[n],r,!0);return e},e.prototype.drawCircle=function(t){if(Object(S["E"])(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=Object(Ot["b"])(t,this.transform_,this.pixelCoordinates_),i=e[2]-e[0],r=e[3]-e[1],n=Math.sqrt(i*i+r*r),o=this.context_;o.beginPath(),o.arc(e[0],e[1],n,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.setTransform=function(t){this.transform_=t},e.prototype.drawGeometry=function(t){var e=t.getType();switch(e){case v["a"].POINT:this.drawPoint(t);break;case v["a"].LINE_STRING:this.drawLineString(t);break;case v["a"].POLYGON:this.drawPolygon(t);break;case v["a"].MULTI_POINT:this.drawMultiPoint(t);break;case v["a"].MULTI_LINE_STRING:this.drawMultiLineString(t);break;case v["a"].MULTI_POLYGON:this.drawMultiPolygon(t);break;case v["a"].GEOMETRY_COLLECTION:this.drawGeometryCollection(t);break;case v["a"].CIRCLE:this.drawCircle(t);break;default:}},e.prototype.drawFeature=function(t,e){var i=e.getGeometryFunction()(t);i&&Object(S["E"])(this.extent_,i.getExtent())&&(this.setStyle(e),this.drawGeometry(i))},e.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),i=0,r=e.length;i<r;++i)this.drawGeometry(e[i])},e.prototype.drawPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)},e.prototype.drawMultiPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)},e.prototype.drawLineString=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(S["E"])(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,i=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(i,0,i.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var r=t.getFlatMidpoint();this.drawText_(r,0,2,2)}}},e.prototype.drawMultiLineString=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getExtent();if(Object(S["E"])(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var i=this.context_,r=t.getFlatCoordinates(),n=0,o=t.getEnds(),s=t.getStride();i.beginPath();for(var a=0,h=o.length;a<h;++a)n=this.moveToLineTo_(r,n,o[a],s,!1);i.stroke()}if(""!==this.text_){var l=t.getFlatMidpoints();this.drawText_(l,0,l.length,2)}}},e.prototype.drawPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(S["E"])(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var i=t.getFlatInteriorPoint();this.drawText_(i,0,2,2)}}},e.prototype.drawMultiPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(S["E"])(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,i=t.getOrientedFlatCoordinates(),r=0,n=t.getEndss(),o=t.getStride();e.beginPath();for(var s=0,a=n.length;s<a;++s){var h=n[s];r=this.drawRings_(i,r,h,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var l=t.getFlatInteriorPoints();this.drawText_(l,0,l.length,2)}}},e.prototype.setContextFillState_=function(t){var e=this.context_,i=this.contextFillState_;i?i.fillStyle!=t.fillStyle&&(i.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},e.prototype.setContextStrokeState_=function(t){var e=this.context_,i=this.contextStrokeState_;i?(i.lineCap!=t.lineCap&&(i.lineCap=t.lineCap,e.lineCap=t.lineCap),e.setLineDash&&(Object(w["b"])(i.lineDash,t.lineDash)||e.setLineDash(i.lineDash=t.lineDash),i.lineDashOffset!=t.lineDashOffset&&(i.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset)),i.lineJoin!=t.lineJoin&&(i.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),i.lineWidth!=t.lineWidth&&(i.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),i.miterLimit!=t.miterLimit&&(i.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),i.strokeStyle!=t.strokeStyle&&(i.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},e.prototype.setContextTextState_=function(t){var e=this.context_,i=this.contextTextState_,r=t.textAlign?t.textAlign:C["l"];i?(i.font!=t.font&&(i.font=t.font,e.font=t.font),i.textAlign!=r&&(i.textAlign=r,e.textAlign=r),i.textBaseline!=t.textBaseline&&(i.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=r,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:r,textBaseline:t.textBaseline})},e.prototype.setFillStrokeStyle=function(t,e){var i=this;if(t){var r=t.getColor();this.fillState_={fillStyle:Object(b["a"])(r||C["b"])}}else this.fillState_=null;if(e){var n=e.getColor(),o=e.getLineCap(),s=e.getLineDash(),a=e.getLineDashOffset(),h=e.getLineJoin(),l=e.getWidth(),c=e.getMiterLimit(),u=s||C["e"];this.strokeState_={lineCap:void 0!==o?o:C["d"],lineDash:1===this.pixelRatio_?u:u.map((function(t){return t*i.pixelRatio_})),lineDashOffset:(a||C["f"])*this.pixelRatio_,lineJoin:void 0!==h?h:C["g"],lineWidth:(void 0!==l?l:C["h"])*this.pixelRatio_,miterLimit:void 0!==c?c:C["i"],strokeStyle:Object(b["a"])(n||C["k"])}}else this.strokeState_=null},e.prototype.setImageStyle=function(t){var e;if(t&&(e=t.getSize())){var i=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=i[0]*this.pixelRatio_,this.imageAnchorY_=i[1]*this.pixelRatio_,this.imageHeight_=e[1]*this.pixelRatio_,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScaleArray(),this.imageWidth_=e[0]*this.pixelRatio_}else this.image_=null},e.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var i=e.getColor();this.textFillState_={fillStyle:Object(b["a"])(i||C["b"])}}else this.textFillState_=null;var r=t.getStroke();if(r){var n=r.getColor(),o=r.getLineCap(),s=r.getLineDash(),a=r.getLineDashOffset(),h=r.getLineJoin(),l=r.getWidth(),c=r.getMiterLimit();this.textStrokeState_={lineCap:void 0!==o?o:C["d"],lineDash:s||C["e"],lineDashOffset:a||C["f"],lineJoin:void 0!==h?h:C["g"],lineWidth:void 0!==l?l:C["h"],miterLimit:void 0!==c?c:C["i"],strokeStyle:Object(b["a"])(n||C["k"])}}else this.textStrokeState_=null;var u=t.getFont(),f=t.getOffsetX(),d=t.getOffsetY(),p=t.getRotateWithView(),g=t.getRotation(),_=t.getScaleArray(),y=t.getText(),v=t.getTextAlign(),m=t.getTextBaseline();this.textState_={font:void 0!==u?u:C["c"],textAlign:void 0!==v?v:C["l"],textBaseline:void 0!==m?m:C["m"]},this.text_=void 0!==y?y:"",this.textOffsetX_=void 0!==f?this.pixelRatio_*f:0,this.textOffsetY_=void 0!==d?this.pixelRatio_*d:0,this.textRotateWithView_=void 0!==p&&p,this.textRotation_=void 0!==g?g:0,this.textScale_=[this.pixelRatio_*_[0],this.pixelRatio_*_[1]]}else this.text_=""},e}(O),Ct=St,wt=i("82b0"),Et=i("6cbf"),Tt=.5;function It(t,e,i,r,n,o,s){var a=t[0]*Tt,h=t[1]*Tt,l=Object(pt["a"])(a,h);l.imageSmoothingEnabled=!1;for(var c=l.canvas,u=new Ct(l,Tt,n,null,s),f=i.length,d=Math.floor(16777215/f),p={},g=1;g<=f;++g){var _=i[g-1],y=_.getStyleFunction()||r;if(r){var m=y(_,o);if(m){Array.isArray(m)||(m=[m]);for(var x=g*d,O="#"+("000000"+x.toString(16)).slice(-6),b=0,C=m.length;b<C;++b){var E=m[b],T=E.getGeometryFunction()(_);if(T&&Object(S["E"])(n,T.getExtent())){var I=E.clone(),R=I.getFill();R&&R.setColor(O);var L=I.getStroke();L&&(L.setColor(O),L.setLineDash(null)),I.setText(void 0);var F=E.getImage();if(F&&0!==F.getOpacity()){var k=F.getImageSize();if(!k)continue;var P=Object(pt["a"])(k[0],k[1],void 0,{alpha:!1}),j=P.canvas;P.fillStyle=O,P.fillRect(0,0,j.width,j.height),I.setImage(new Et["a"]({img:j,imgSize:k,anchor:F.getAnchor(),anchorXUnits:wt["a"].PIXELS,anchorYUnits:wt["a"].PIXELS,offset:F.getOrigin(),opacity:1,size:F.getSize(),scale:F.getScale(),rotation:F.getRotation(),rotateWithView:F.getRotateWithView()}))}var D=I.getZIndex()||0,A=p[D];A||(A={},p[D]=A,A[v["a"].POLYGON]=[],A[v["a"].CIRCLE]=[],A[v["a"].LINE_STRING]=[],A[v["a"].POINT]=[]),A[T.getType().replace("Multi","")].push(T,I)}}}}}for(var M=Object.keys(p).map(Number).sort(w["i"]),G=(g=0,M.length);g<G;++g){A=p[M[g]];for(var N in A){var B=A[N];for(b=0,C=B.length;b<C;b+=2){u.setStyle(B[b+1]);for(var Y=0,U=e.length;Y<U;++Y)u.setTransform(e[Y]),u.drawGeometry(B[b])}}}return l.getImageData(0,0,c.width,c.height)}function Rt(t,e,i){var r=[];if(i){var n=Math.floor(Math.round(t[0])*Tt),o=Math.floor(Math.round(t[1])*Tt),s=4*(Object(tt["a"])(n,0,i.width-1)+Object(tt["a"])(o,0,i.height-1)*i.width),a=i.data[s],h=i.data[s+1],l=i.data[s+2],c=l+256*(h+256*a),u=Math.floor(16777215/e.length);c&&c%u===0&&r.push(e[c/u-1])}return r}var Lt=i("cd7e"),Ft=i("869f"),kt=.5,Pt={Point:Vt,LineString:Ut,Polygon:qt,MultiPoint:Ht,MultiLineString:Wt,MultiPolygon:Xt,GeometryCollection:Yt,Circle:Mt};function jt(t,e){return parseInt(Object(Y["c"])(t),10)-parseInt(Object(Y["c"])(e),10)}function Dt(t,e){var i=At(t,e);return i*i}function At(t,e){return kt*t/e}function Mt(t,e,i,r,n){var o=i.getFill(),s=i.getStroke();if(o||s){var a=t.getBuilder(i.getZIndex(),Z.CIRCLE);a.setFillStrokeStyle(o,s),a.drawCircle(e,r)}var h=i.getText();if(h&&h.getText()){var l=(n||t).getBuilder(i.getZIndex(),Z.TEXT);l.setTextStyle(h),l.drawText(e,r)}}function Gt(t,e,i,r,n,o,s){var a=!1,h=i.getImage();if(h){var l=h.getImageState();l==Ft["a"].LOADED||l==Ft["a"].ERROR?h.unlistenImageChange(n):(l==Ft["a"].IDLE&&h.load(),l=h.getImageState(),h.listenImageChange(n),a=!0)}return Nt(t,e,i,r,o,s),a}function Nt(t,e,i,r,n,o){var s=i.getGeometryFunction()(e);if(s){var a=s.simplifyTransformed(r,n),h=i.getRenderer();if(h)Bt(t,a,i,e);else{var l=Pt[a.getType()];l(t,a,i,e,o)}}}function Bt(t,e,i,r){if(e.getType()!=v["a"].GEOMETRY_COLLECTION){var n=t.getBuilder(i.getZIndex(),Z.DEFAULT);n.drawCustom(e,r,i.getRenderer(),i.getHitDetectionRenderer())}else for(var o=e.getGeometries(),s=0,a=o.length;s<a;++s)Bt(t,o[s],i,r)}function Yt(t,e,i,r,n){var o,s,a=e.getGeometriesArray();for(o=0,s=a.length;o<s;++o){var h=Pt[a[o].getType()];h(t,a[o],i,r,n)}}function Ut(t,e,i,r,n){var o=i.getStroke();if(o){var s=t.getBuilder(i.getZIndex(),Z.LINE_STRING);s.setFillStrokeStyle(null,o),s.drawLineString(e,r)}var a=i.getText();if(a&&a.getText()){var h=(n||t).getBuilder(i.getZIndex(),Z.TEXT);h.setTextStyle(a),h.drawText(e,r)}}function Wt(t,e,i,r,n){var o=i.getStroke();if(o){var s=t.getBuilder(i.getZIndex(),Z.LINE_STRING);s.setFillStrokeStyle(null,o),s.drawMultiLineString(e,r)}var a=i.getText();if(a&&a.getText()){var h=(n||t).getBuilder(i.getZIndex(),Z.TEXT);h.setTextStyle(a),h.drawText(e,r)}}function Xt(t,e,i,r,n){var o=i.getFill(),s=i.getStroke();if(s||o){var a=t.getBuilder(i.getZIndex(),Z.POLYGON);a.setFillStrokeStyle(o,s),a.drawMultiPolygon(e,r)}var h=i.getText();if(h&&h.getText()){var l=(n||t).getBuilder(i.getZIndex(),Z.TEXT);l.setTextStyle(h),l.drawText(e,r)}}function Vt(t,e,i,r,n){var o,s=i.getImage(),a=i.getText();if(n&&(t=n,o=s&&a&&a.getText()?{}:void 0),s){if(s.getImageState()!=Ft["a"].LOADED)return;var h=t.getBuilder(i.getZIndex(),Z.IMAGE);h.setImageStyle(s,o),h.drawPoint(e,r)}if(a&&a.getText()){var l=t.getBuilder(i.getZIndex(),Z.TEXT);l.setTextStyle(a,o),l.drawText(e,r)}}function Ht(t,e,i,r,n){var o,s=i.getImage(),a=i.getText();if(n&&(t=n,o=s&&a&&a.getText()?{}:void 0),s){if(s.getImageState()!=Ft["a"].LOADED)return;var h=t.getBuilder(i.getZIndex(),Z.IMAGE);h.setImageStyle(s,o),h.drawMultiPoint(e,r)}if(a&&a.getText()){var l=(n||t).getBuilder(i.getZIndex(),Z.TEXT);l.setTextStyle(a,o),l.drawText(e,r)}}function qt(t,e,i,r,n){var o=i.getFill(),s=i.getStroke();if(o||s){var a=t.getBuilder(i.getZIndex(),Z.POLYGON);a.setFillStrokeStyle(o,s),a.drawPolygon(e,r)}var h=i.getText();if(h&&h.getText()){var l=(n||t).getBuilder(i.getZIndex(),Z.TEXT);l.setTextStyle(h),l.drawText(e,r)}}var Jt=i("256f"),zt=i("a568"),Kt=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Zt=function(t){function e(e){var i=t.call(this,e)||this;return i.boundHandleStyleImageChange_=i.handleStyleImageChange_.bind(i),i.animatingOrInteracting_,i.dirty_=!1,i.hitDetectionImageData_=null,i.renderedFeatures_=null,i.renderedRevision_=-1,i.renderedResolution_=NaN,i.renderedExtent_=Object(S["j"])(),i.wrappedRenderedExtent_=Object(S["j"])(),i.renderedRotation_,i.renderedCenter_=null,i.renderedProjection_=null,i.renderedRenderOrder_=null,i.replayGroup_=null,i.replayGroupChanged=!0,i.declutterExecutorGroup=null,i.clipping=!0,i}return Kt(e,t),e.prototype.useContainer=function(e,i,r){r<1&&(e=null),t.prototype.useContainer.call(this,e,i,r)},e.prototype.renderWorlds=function(t,e,i){var r=e.extent,n=e.viewState,o=n.center,s=n.resolution,a=n.projection,h=n.rotation,l=a.getExtent(),c=this.getLayer().getSource(),u=e.pixelRatio,f=e.viewHints,d=!(f[xt["a"].ANIMATING]||f[xt["a"].INTERACTING]),p=this.context,g=Math.round(e.size[0]*u),_=Math.round(e.size[1]*u),y=c.getWrapX()&&a.canWrapX(),v=y?Object(S["D"])(l):null,m=y?Math.ceil((r[2]-l[2])/v)+1:1,x=y?Math.floor((r[0]-l[0])/v):0;do{var O=this.getRenderTransform(o,s,h,u,g,_,x*v);t.execute(p,1,O,h,d,void 0,i)}while(++x<m)},e.prototype.renderDeclutter=function(t){this.declutterExecutorGroup&&this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree)},e.prototype.renderFrame=function(t,e){var i=t.pixelRatio,r=t.layerStatesArray[t.layerIndex];Object($["e"])(this.pixelTransform,1/i,1/i),Object($["d"])(this.inversePixelTransform,this.pixelTransform);var n=Object($["g"])(this.pixelTransform);this.useContainer(e,n,r.opacity);var o=this.context,s=o.canvas,a=this.replayGroup_,h=this.declutterExecutorGroup;if((!a||a.isEmpty())&&(!h||h.isEmpty()))return null;var l=Math.round(t.size[0]*i),c=Math.round(t.size[1]*i);s.width!=l||s.height!=c?(s.width=l,s.height=c,s.style.transform!==n&&(s.style.transform=n)):this.containerReused||o.clearRect(0,0,l,c),this.preRender(o,t);var u=t.viewState,f=u.projection,d=!1,p=!0;if(r.extent&&this.clipping){var g=Object(Jt["e"])(r.extent,f);p=Object(S["E"])(g,t.extent),d=p&&!Object(S["g"])(g,t.extent),d&&this.clipUnrotated(o,t,g)}p&&this.renderWorlds(a,t),d&&o.restore(),this.postRender(o,t);var _=Object(Lt["e"])(r.opacity),y=this.container;return _!==y.style.opacity&&(y.style.opacity=_),this.renderedRotation_!==u.rotation&&(this.renderedRotation_=u.rotation,this.hitDetectionImageData_=null),this.container},e.prototype.getFeatures=function(t){return new Promise(function(e){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var i=[this.context.canvas.width,this.context.canvas.height];Object($["a"])(this.pixelTransform,i);var r=this.renderedCenter_,n=this.renderedResolution_,o=this.renderedRotation_,s=this.renderedProjection_,a=this.wrappedRenderedExtent_,h=this.getLayer(),l=[],c=i[0]*Tt,u=i[1]*Tt;l.push(this.getRenderTransform(r,n,o,Tt,c,u,0).slice());var f=h.getSource(),d=s.getExtent();if(f.getWrapX()&&s.canWrapX()&&!Object(S["g"])(d,a)){var p=a[0],g=Object(S["D"])(d),_=0,y=void 0;while(p<d[0])--_,y=g*_,l.push(this.getRenderTransform(r,n,o,Tt,c,u,y).slice()),p+=g;_=0,p=a[2];while(p>d[2])++_,y=g*_,l.push(this.getRenderTransform(r,n,o,Tt,c,u,y).slice()),p-=g}this.hitDetectionImageData_=It(i,l,this.renderedFeatures_,h.getStyleFunction(),a,n,o)}e(Rt(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,r,n){var o=this;if(this.replayGroup_){var s,a=e.viewState.resolution,h=e.viewState.rotation,l=this.getLayer(),c={},u=function(t,e,i){var o=Object(Y["c"])(t),s=c[o];if(s){if(!0!==s&&i<s.distanceSq){if(0===i)return c[o]=!0,n.splice(n.lastIndexOf(s),1),r(t,l,e);s.geometry=e,s.distanceSq=i}}else{if(0===i)return c[o]=!0,r(t,l,e);n.push(c[o]={feature:t,layer:l,geometry:e,distanceSq:i,callback:r})}},f=[this.replayGroup_];return this.declutterExecutorGroup&&f.push(this.declutterExecutorGroup),f.some((function(r){return s=r.forEachFeatureAtCoordinate(t,a,h,i,u,r===o.declutterExecutorGroup?e.declutterTree.all().map((function(t){return t.value})):null)})),s}},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t){var e=this.getLayer(),i=e.getSource();if(!i)return!1;var r=t.viewHints[xt["a"].ANIMATING],n=t.viewHints[xt["a"].INTERACTING],o=e.getUpdateWhileAnimating(),s=e.getUpdateWhileInteracting();if(!this.dirty_&&!o&&r||!s&&n)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var a=t.extent,h=t.viewState,l=h.projection,c=h.resolution,u=t.pixelRatio,f=e.getRevision(),d=e.getRenderBuffer(),p=e.getRenderOrder();void 0===p&&(p=jt);var g=h.center.slice(),_=Object(S["c"])(a,d*c),y=_.slice(),v=[_.slice()],m=l.getExtent();if(i.getWrapX()&&l.canWrapX()&&!Object(S["g"])(m,t.extent)){var x=Object(S["D"])(m),O=Math.max(Object(S["D"])(_)/2,x);_[0]=m[0]-O,_[2]=m[2]+O,Object(zt["k"])(g,l);var b=Object(S["I"])(v[0],l);b[0]<m[0]&&b[2]<m[2]?v.push([b[0]+x,b[1],b[2]+x,b[3]]):b[0]>m[0]&&b[2]>m[2]&&v.push([b[0]-x,b[1],b[2]-x,b[3]])}if(!this.dirty_&&this.renderedResolution_==c&&this.renderedRevision_==f&&this.renderedRenderOrder_==p&&Object(S["g"])(this.wrappedRenderedExtent_,_))return Object(w["b"])(this.renderedExtent_,y)||(this.hitDetectionImageData_=null,this.renderedExtent_=y),this.renderedCenter_=g,this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var C,E=new z(At(c,u),_,c,u);this.getLayer().getDeclutter()&&(C=new z(At(c,u),_,c,u));var T,I=Object(Jt["k"])();if(I){for(var R=0,L=v.length;R<L;++R){var F=v[R],k=Object(Jt["m"])(F,l);i.loadFeatures(k,Object(Jt["n"])(c,l),I)}T=Object(Jt["j"])(I,l)}else for(R=0,L=v.length;R<L;++R)i.loadFeatures(v[R],c,l);var P=Dt(c,u),j=function(t){var i,r=t.getStyleFunction()||e.getStyleFunction();if(r&&(i=r(t,c)),i){var n=this.renderFeature(t,P,i,E,T,C);this.dirty_=this.dirty_||n}}.bind(this),D=Object(Jt["m"])(_,l),A=i.getFeaturesInExtent(D);p&&A.sort(p);for(R=0,L=A.length;R<L;++R)j(A[R]);this.renderedFeatures_=A;var M=E.finish(),G=new mt(_,c,u,i.getOverlaps(),M,e.getRenderBuffer());return C&&(this.declutterExecutorGroup=new mt(_,c,u,i.getOverlaps(),C.finish(),e.getRenderBuffer())),this.renderedResolution_=c,this.renderedRevision_=f,this.renderedRenderOrder_=p,this.renderedExtent_=y,this.wrappedRenderedExtent_=_,this.renderedCenter_=g,this.renderedProjection_=l,this.replayGroup_=G,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,e,i,r,n,o){if(!i)return!1;var s=!1;if(Array.isArray(i))for(var a=0,h=i.length;a<h;++a)s=Gt(r,t,i[a],e,this.boundHandleStyleImageChange_,n,o)||s;else s=Gt(r,t,i,e,this.boundHandleStyleImageChange_,n,o);return s},e}(K["a"]),Qt=Zt,$t=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),te=function(t){function e(e){return t.call(this,e)||this}return $t(e,t),e.prototype.createRenderer=function(){return new Qt(this)},e}(u);e["a"]=te},"42e5":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAADRUlEQVRYR92XPWgUURDH/7MXFAlaxbuLuc0lCgYi2Cjxs9BC0ynq7UrU1qRQIwjaqYl2CoJfhdpY+IG3p6JdtDCF32gjKETQ5LJ3ZvdylSKi5HZkLzFcyL7dd3spgq+d/8z8dt7MPJYwzw7NMx78X0DRjLlaYWpjQsKtNDFyDvFQIaV+CFv5qisUfWivwMTvYwTaCaBJkDjP4EeoW3ihsCv2pRq4qoDimfwhZuc0gKWSScaJlH4r1XRVUi/fQ9F72T5SFBem6sOO01/Ym+yTcZSqUNzIaQxOywQUaQikW1rCCIoRCNSYzq5xSHkXFEjGrrCzdkxPvvfTBgLFMuY1MLplEgZqCNftlNoTGiieHmtnmvgYmKgKAXHdKktv/CS+Wp9gEo2cZ6AXCxa8KIf582cTAZd81gEY6Ctoan8ooJiRewnwBpEzs7O9oCefVtqj6ew2IuWJ+Dvpla0lNoYCihqmSZjcwh7ntq2pB7wMMcO8BWC/l42BXEFT1VBAMcNkH8etlqYOetnjhrmFgWciX1tThcPkO2Uxw3wNYJ3nlxLOF1LqCS9bNGOeI8ZxAdAbW1PXh62Q26BHvJ2pGGHa/E1vGqq0L0vn20rEzwFuECS9bGtqbyigaNrsJsI1YYMyP6ZS6ajV1TriauJ3h1s4ErkIoh3iQUBPQVevhwKa2tJvASg+2+EXgK9T9uUAFvloHYWdDr9tLbOpL4Nx2CeJvIlwxU6pghaYDBMIFE9n25kUt0r18pk9lT+JnQ5LTwq3tBSQKwqYGilO9pnKygCBFXLFsfRIKyjiVkk0OUFQRXCpw9ZbhoOEUkDlCTJGzzDoZFBALzuBz1pa8ykZX2mg2IBVjx8TA2DeJBN4WkP0AovrOu3O+E8ZP2mg8tXdz62HwwMAlsgEB/AdCnXaexLuxpc6VQGVoTLmQTCEi21GVkK3nVJvSJFMiaoGKkMZps+TMp3e94kQQYYCmoJyX/MtgsCDtqZuraYy/7ShgSahcuOzH1Eq2lpC9r9tFnNNQA0PcisjJZ7x2pci1FbcnfgcpjquT01Ak00+2gWmO2UA4n12qvluWJg5AXKDuD8DCtGIpTffrAVmzoBqhaj0r/nK5hJmXlboL689DDQwD4NiAAAAAElFTkSuQmCC"},"4a7d":function(t,e,i){"use strict";var r=i("25a5"),n=i.n(r),o=i("0af5"),s=i("1300"),a=i("38f3"),h=function(){function t(t){this.rbush_=new n.a(t),this.items_={}}return t.prototype.insert=function(t,e){var i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[Object(s["c"])(e)]=i},t.prototype.load=function(t,e){for(var i=new Array(e.length),r=0,n=e.length;r<n;r++){var o=t[r],a=e[r],h={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:a};i[r]=h,this.items_[Object(s["c"])(a)]=h}this.rbush_.load(i)},t.prototype.remove=function(t){var e=Object(s["c"])(t),i=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(i)},t.prototype.update=function(t,e){var i=this.items_[Object(s["c"])(e)],r=[i.minX,i.minY,i.maxX,i.maxY];Object(o["o"])(r,t)||(this.remove(e),this.insert(t,e))},t.prototype.getAll=function(){var t=this.rbush_.all();return t.map((function(t){return t.value}))},t.prototype.getInExtent=function(t){var e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]},i=this.rbush_.search(e);return i.map((function(t){return t.value}))},t.prototype.forEach=function(t){return this.forEach_(this.getAll(),t)},t.prototype.forEachInExtent=function(t,e){return this.forEach_(this.getInExtent(t),e)},t.prototype.forEach_=function(t,e){for(var i,r=0,n=t.length;r<n;r++)if(i=e(t[r]),i)return i;return i},t.prototype.isEmpty=function(){return Object(a["d"])(this.items_)},t.prototype.clear=function(){this.rbush_.clear(),this.items_={}},t.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return Object(o["k"])(e.minX,e.minY,e.maxX,e.maxY,t)},t.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]},t}();e["a"]=h},"4cdf":function(t,e,i){"use strict";var r=i("e269"),n=i("01d4"),o=i("92fa"),s=i("1e8d"),a=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),h=function(t){function e(e){var i=t.call(this)||this;if(i.on,i.once,i.un,i.id_=void 0,i.geometryName_="geometry",i.style_=null,i.styleFunction_=void 0,i.geometryChangeKey_=null,i.addChangeListener(i.geometryName_,i.handleGeometryChanged_),e)if("function"===typeof e.getSimplifiedGeometry){var r=e;i.setGeometry(r)}else{var n=e;i.setProperties(n)}return i}return a(e,t),e.prototype.clone=function(){var t=new e(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());var i=this.getGeometry();i&&t.setGeometry(i.clone());var r=this.getStyle();return r&&t.setStyle(r),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Object(s["c"])(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=Object(s["a"])(t,n["a"].CHANGE,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?l(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(r["a"]);function l(t){if("function"===typeof t)return t;var e;if(Array.isArray(t))e=t;else{Object(o["a"])("function"===typeof t.getZIndex,41);var i=t;e=[i]}return function(){return e}}e["a"]=h},"4df4":function(t,e,i){"use strict";var r=i("da84"),n=i("0366"),o=i("c65b"),s=i("7b0b"),a=i("9bdd"),h=i("e95a"),l=i("68ee"),c=i("07fa"),u=i("8418"),f=i("9a1f"),d=i("35a1"),p=r.Array;t.exports=function(t){var e=s(t),i=l(this),r=arguments.length,g=r>1?arguments[1]:void 0,_=void 0!==g;_&&(g=n(g,r>2?arguments[2]:void 0));var y,v,m,x,O,b,S=d(e),C=0;if(!S||this==p&&h(S))for(y=c(e),v=i?new this(y):p(y);y>C;C++)b=_?g(e[C],C):e[C],u(v,C,b);else for(x=f(e,S),O=x.next,v=i?new this:[];!(m=o(O,x)).done;C++)b=_?a(x,g,[m.value,C],!0):m.value,u(v,C,b);return v.length=C,v}},5178:function(t,e,i){"use strict";i.r(e);var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"draw_container"},[i("ul",[i("li",{staticClass:"modify",on:{click:t.controlModify}},[i("p",{staticClass:"bg",class:{active:t.modifyActive},attrs:{title:"编辑"}})]),t.markList[0].class==t.param.type?i("li",{staticClass:"Point",on:{click:function(e){return t.markEvent(t.markList[0])}}},[i("p",{staticClass:"bg",class:{active:t.markList[0].active},attrs:{title:"点"}})]):t._e(),t.markList[1].class==t.param.type?i("li",{staticClass:"LineString",on:{click:function(e){return t.markEvent(t.markList[1])}}},[i("p",{staticClass:"bg",class:{active:t.markList[1].active},attrs:{title:"线"}})]):t._e(),t.markList[2].class==t.param.type?i("li",{staticClass:"Polygon",on:{click:function(e){return t.markEvent(t.markList[2])}}},[i("p",{staticClass:"bg",class:{active:t.markList[2].active},attrs:{title:"面"}})]):t._e(),i("li",{staticClass:"clear",on:{click:t.deleteFeature}},[i("p",{staticClass:"bg",attrs:{title:"清空"}})])])])},n=[],o=(i("d81d"),i("d3b7"),i("159b"),i("e9c4"),i("3ca3"),i("ddb0"),i("2b3d"),i("9861"),i("5831")),s=i("3e6b"),a=i("f403"),h=i("7a09"),l=i("5bc3"),c=i("4cdf"),u=i("6c77"),f=i("6cbf"),d=i("8682"),p=i("83a6"),g=i("c807"),_=i("ac29"),y=i("b2fc"),v=i("2ce2"),m=i("06f8"),x=i("52f6"),O=i.n(x),b=i("42e5"),S=i.n(b),C={props:{param:{type:Object,default:null}},data:function(){return{markList:[{name:"点",class:"Point",active:!1,show:!0},{name:"线",class:"LineString",active:!1,show:!0},{name:"面",class:"Polygon",active:!1,show:!0}],snap:null,draw:null,selectClick:null,selected:[],modifyActive:!1}},created:function(){window.showCoordinates=this.show,window.clear=this.beforeClose,window.getCoordinates=this.getCoordinate},mounted:function(){var t=this;this.style={Point:[new u["c"]({image:new f["a"]({scale:1,anchor:[.5,1],crossOrigin:"anonymous",src:O.a})})],LineString:[new u["c"]({stroke:new d["a"]({color:[255,255,255,1],width:5})}),new u["c"]({stroke:new d["a"]({color:"#ffcc33",width:3})})],Polygon:[new u["c"]({stroke:new d["a"]({color:[255,255,255,1],width:5})}),new u["c"]({stroke:new d["a"]({color:"#ffcc33",width:3})}),new u["c"]({fill:new p["a"]({color:"rgba(255, 255, 255, 0.2)"})})]},this.selected_style={Point:[new u["c"]({image:new f["a"]({scale:1,anchor:[.5,1],crossOrigin:"anonymous",src:S.a})})],LineString:[new u["c"]({stroke:new d["a"]({color:[255,255,255,1],width:5})}),new u["c"]({stroke:new d["a"]({color:[0,153,255,1],width:3})})],Polygon:[new u["c"]({stroke:new d["a"]({color:[255,255,255,1],width:5})}),new u["c"]({stroke:new d["a"]({color:[0,153,255,1],width:3})}),new u["c"]({fill:new p["a"]({color:[255,255,255,.5]})})]},this.source=new o["a"]({projection:"EPSG:4326"}),this.layer=new s["a"]({source:this.source,style:function(e){var i=e.getGeometry().getType();return t.style[i]}}),window.tedt=setInterval((function(){void 0!=globalVariable.map&&(globalVariable.map.addLayer(t.layer),clearInterval(tedt))}),1e3)},methods:{markEvent:function(t){t.active=!t.active,this.markList=this.markList.map((function(e){return t.class!=e.class&&(e.active=!1),e})),this.modifyActive=!1,this.cancelDraw(),this.cancelSnap(),this.cancelModify(),this.cancelSelect(),t.active?(this.bindDraw(t.class),this.bindSnap()):this.openSelect()},controlModify:function(){this.modifyActive=!this.modifyActive,this.modifyActive?(this.cancelDraw(),this.markList=this.markList.map((function(t){return t.active=!1,t})),this.cancelSnap(),this.cancelSelect(),this.bindModify()):(this.cancelModify(),this.openSelect())},bindModify:function(){this.modify=new g["a"]({source:this.source}),globalVariable.map.addInteraction(this.modify)},cancelModify:function(){this.modify&&globalVariable.map.removeInteraction(this.modify)},bindDraw:function(t){var e=this;this.draw=new _["a"]({source:this.source,type:t}),this.draw.on("drawend",(function(t){"1"==e.param.type&&e.clearAllFeature()})),globalVariable.map.addInteraction(this.draw)},cancelDraw:function(){this.draw&&globalVariable.map.removeInteraction(this.draw)},bindSnap:function(){this.snap=new y["a"]({source:this.source}),globalVariable.map.addInteraction(this.snap)},cancelSnap:function(){this.snap&&globalVariable.map.removeInteraction(this.snap)},bindSelect:function(){var t=this;this.selectClick=new v["a"]({condition:m["e"],style:function(e){var i=e.getGeometry().getType();return t.selected_style[i]}}),this.selectClick.on("select",(function(e){t.selected=e.target.getFeatures().getArray()}))},openSelect:function(){globalVariable.map.addInteraction(this.selectClick)},cancelSelect:function(){this.selectClick&&globalVariable.map.removeInteraction(this.selectClick)},deleteFeature:function(){if(this.selected.length>0){for(var t=0;t<this.selected.length;t++){var e=this.selected[t];this.source.removeFeature(e)}return this.selected=[],void this.selectClick.getFeatures().clear()}this.clearAllFeature()},clearAllFeature:function(){var t=this;this.source&&this.source.getFeatures().forEach((function(e){t.source.removeFeature(e)}))},download:function(){var t={type:"FeatureCollection",features:[]};this.source.getFeatures().forEach((function(e){t.features.push({type:"Feature",properties:{},geometry:{type:e.getGeometry().getType(),coordinates:e.getGeometry().transform("EPSG:3857","EPSG:4326").getCoordinates()}})}));var e=document.createElement("a"),i=new Blob([JSON.stringify(t)]);e.download="geojson.json",e.href=URL.createObjectURL(i),e.click(),URL.revokeObjectURL(i)},beforeClose:function(){this.cancelDraw(),this.cancelSnap(),this.cancelSelect(),this.cancelModify(),this.clearAllFeature(),this.markList=this.markList.map((function(t){return t.active=!1,t})),this.modifyActive=!1},show:function(t,e){switch(t){case 1:this.setPoint(e);break;case 2:this.setMultiPoint(e);break;case 3:this.setPolyline(e);break;case 4:this.setMultiPolyline(e);break;case 5:this.setPolygon(e);break;case 6:this.setMultiPolygon(e);break;default:break}},setPoint:function(t){var e=new a["a"](t).transform("EPSG:4326","EPSG:3857");return this.source.addFeature(new c["a"]({geometry:e})),e},setMultiPoint:function(t){var e=this;t.forEach((function(t){e.setPoint(t)}))},setPolyline:function(t){var e=new h["a"](t).transform("EPSG:4326","EPSG:3857");return this.source.addFeature(new c["a"]({geometry:e})),e},setMultiPolyline:function(t){var e=this;t.forEach((function(t){e.setPolyline(t)}))},setPolygon:function(t){var e=new l["a"](t).transform("EPSG:4326","EPSG:3857");return this.source.addFeature(new c["a"]({geometry:e})),e},setMultiPolygon:function(t){var e=this;t.forEach((function(t){e.setPolygon(t)}))},getCoordinate:function(){for(var t={Point:[],LineString:[],Polygon:[]},e=this.source.getFeatures(),i=0;i<e.length;i++){var r=e[i],n=r.getGeometry().getType();t[n].push(r.getGeometry().clone().transform("EPSG:3857","EPSG:4326").getCoordinates())}return t}}},w=C,E=(i("e901"),i("2877")),T=Object(E["a"])(w,r,n,!1,null,null,null);e["default"]=T.exports},"52f6":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAADVUlEQVRYR92XOYgUQRSG/1ezCCIYaaSCB7g6M67gbveOR6CBmmmk4JG6Bl4gaCBOXyMGLghegZoYeIBGmqmBBh6707uC63R7gAeokRsJsiA79aTGFUbpmq7p2WCxsuH973/fvKp6RRNm2KIZxoP/C6joDfVI6uomwQtVp1nSF8GTb2teaSxr59vuULEysoxZHmVgO4EWJBVm8FcC7hKJs7Vy3/t24NoCKlTCA8xwCZhvUoSBb0Two7J1yUSvNMZAeX/YIxKuqXGzjln6sdvvmeQaAeX9kR1EfNvEUKdhpp2x23cnzSMVaFUw2ishR9KMTOICou+V0zvaSpsKVAjCywAGTAoaaK5EjrU/M1Dh9Is8JuuRQSFzSVeuEJ1YE+sSWnYo7SCr6y0IhyHk00YBKdZLxnndOGjMKoIXly0/G1AQPiNgrTaZsaXmWg+b40U/3MyEB9rDDTyPHWtdJqBCUP0MUGMK/7uI+EatbO9NihUr1evMtCe5KH+JHHtRRqCQtYkSm2qe9TgRyAs3ssAjXW7kWNqj0vIMFYJwCEB/kjEzBmPXOp4Uy/vhGSIc0wANR45VytShoh+eZ8IhTfJ4jrBhrGy9bY73VMLuOuMJgHmJW824UHOtw5mA8kF1gEBqDunWvbqcPPLGW/tJCVZ4zxfnRNc5ANv0h5r3x459JRPQqmCoVyJXBSC0BoQJZnxQcSIsZcbsFn9ACtTtV05JO61NJvUFAAdbFGkndDFyLN0RaPikA3lDeYhGl+a0UzlB+wOybkdeSTuljYCUKF8JzxBrb40RJxMG43LyrWw2SO2QEvdUhpfUWaguJd4cA6LxHEl7rNz/MU1rBKRMCn41AFE5zTAxzlyJXNsxyTUG6hl8Oac+8fM+gPUmxk2ap7nZs7aOHVv9wyTPGEiZrTw1WhJSKqi5JuYAvkshtr4+2asmvtFqC2hq6/aBSDvY/qrKPBC59lUjkilR20AqL+VJ+T1PUp4IHWQmoEanglC95hs1xo8jx9rUTmf+aDMDTUF9SxgF45FjGX23JQF3BLTCG16eE+Kv174uZfcbr/9dlu40tjpr4p+8gh/uAuFm4zdjd+Ratzrx7BhIFVcfAyD6FDv2tU5gpqVDnQL8mz8tHZpOqBkH9AsVyBQ0cFFfzgAAAABJRU5ErkJggg=="},5831:function(t,e,i){"use strict";var r=i("e300"),n=i("183a"),o=i("cef7"),s=i("01d4"),a=i("7b4f"),h=i("4a7d"),l=i("ff80"),c=i("6d83"),u=i("a43f"),f=i("57cb");i("256f");function d(t,e){return[[-1/0,-1/0,1/0,1/0]]}var p=i("92fa"),g=i("0af5"),_=i("9f5e"),y=i("1300"),v=i("38f3"),m=i("1e8d"),x={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"},O=!1;function b(t,e,i,r,n,o,s){var a=new XMLHttpRequest;a.open("GET","function"===typeof t?t(i,r,n):t,!0),e.getType()==x.ARRAY_BUFFER&&(a.responseType="arraybuffer"),a.withCredentials=O,a.onload=function(t){if(!a.status||a.status>=200&&a.status<300){var r=e.getType(),h=void 0;r==x.JSON||r==x.TEXT?h=a.responseText:r==x.XML?(h=a.responseXML,h||(h=(new DOMParser).parseFromString(a.responseText,"application/xml"))):r==x.ARRAY_BUFFER&&(h=a.response),h?o(e.readFeatures(h,{extent:i,featureProjection:n}),e.readProjection(h)):s()}else s()},a.onerror=s,a.send()}function S(t,e){return function(i,r,n,o,s){var a=this;b(t,e,i,r,n,(function(t,e){a.addFeatures(t),void 0!==o&&o(t)}),s||f["c"])}}var C=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),w=function(t){function e(e,i,r){var n=t.call(this,e)||this;return n.feature=i,n.features=r,n}return C(e,t),e}(o["a"]),E=function(t){function e(e){var i=this,n=e||{};i=t.call(this,{attributions:n.attributions,projection:void 0,state:c["a"].READY,wrapX:void 0===n.wrapX||n.wrapX})||this,i.on,i.once,i.un,i.loader_=f["c"],i.format_=n.format,i.overlaps_=void 0===n.overlaps||n.overlaps,i.url_=n.url,void 0!==n.loader?i.loader_=n.loader:void 0!==i.url_&&(Object(p["a"])(i.format_,7),i.loader_=S(i.url_,i.format_)),i.strategy_=void 0!==n.strategy?n.strategy:d;var o,s,a=void 0===n.useSpatialIndex||n.useSpatialIndex;return i.featuresRtree_=a?new h["a"]:null,i.loadedExtentsRtree_=new h["a"],i.loadingExtentsCount_=0,i.nullGeometryFeatures_={},i.idIndex_={},i.uidIndex_={},i.featureChangeKeys_={},i.featuresCollection_=null,Array.isArray(n.features)?s=n.features:n.features&&(o=n.features,s=o.getArray()),a||void 0!==o||(o=new r["a"](s)),void 0!==s&&i.addFeaturesInternal(s),void 0!==o&&i.bindFeaturesCollection_(o),i}return C(e,t),e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=Object(y["c"])(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var i=t.getGeometry();if(i){var r=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(r,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new w(u["a"].ADDFEATURE,t))}else this.featuresCollection_&&this.featuresCollection_.remove(t)},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[Object(m["a"])(e,s["a"].CHANGE,this.handleFeatureChange_,this),Object(m["a"])(e,a["a"].PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var i=!0,r=e.getId();return void 0!==r&&(r.toString()in this.idIndex_?i=!1:this.idIndex_[r.toString()]=e),i&&(Object(p["a"])(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),i},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],i=[],r=[],n=0,o=t.length;n<o;n++){var s=t[n],a=Object(y["c"])(s);this.addToIndex_(a,s)&&i.push(s)}n=0;for(var h=i.length;n<h;n++){s=i[n],a=Object(y["c"])(s);this.setupChangeEvents_(a,s);var l=s.getGeometry();if(l){var c=l.getExtent();e.push(c),r.push(s)}else this.nullGeometryFeatures_[a]=s}this.featuresRtree_&&this.featuresRtree_.load(e,r);n=0;for(var f=i.length;n<f;n++)this.dispatchEvent(new w(u["a"].ADDFEATURE,i[n]))},e.prototype.bindFeaturesCollection_=function(t){var e=!1;this.addEventListener(u["a"].ADDFEATURE,(function(i){e||(e=!0,t.push(i.feature),e=!1)})),this.addEventListener(u["a"].REMOVEFEATURE,(function(i){e||(e=!0,t.remove(i.feature),e=!1)})),t.addEventListener(n["a"].ADD,function(t){e||(e=!0,this.addFeature(t.element),e=!1)}.bind(this)),t.addEventListener(n["a"].REMOVE,function(t){e||(e=!0,this.removeFeature(t.element),e=!1)}.bind(this)),this.featuresCollection_=t},e.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_){var i=this.featureChangeKeys_[e];i.forEach(m["c"])}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_)for(var r in this.featuresRtree_.forEach(this.removeFeatureInternal.bind(this)),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[r]);this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var n=new w(u["a"].CLEAR);this.dispatchEvent(n),this.changed()},e.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},e.prototype.forEachFeatureAtCoordinateDirect=function(t,e){var i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,(function(i){var r=i.getGeometry();return r.intersectsCoordinate(t)?e(i):void 0}))},e.prototype.forEachFeatureInExtent=function(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},e.prototype.forEachFeatureIntersectingExtent=function(t,e){return this.forEachFeatureInExtent(t,(function(i){var r=i.getGeometry();if(r.intersectsExtent(t)){var n=e(i);if(n)return n}}))},e.prototype.getFeaturesCollection=function(){return this.featuresCollection_},e.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),Object(v["d"])(this.nullGeometryFeatures_)||Object(_["c"])(t,Object(v["c"])(this.nullGeometryFeatures_))),t},e.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e},e.prototype.getFeaturesInExtent=function(t){return this.featuresRtree_?this.featuresRtree_.getInExtent(t):this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},e.prototype.getClosestFeatureToCoordinate=function(t,e){var i=t[0],r=t[1],n=null,o=[NaN,NaN],s=1/0,a=[-1/0,-1/0,1/0,1/0],h=e||f["b"];return this.featuresRtree_.forEachInExtent(a,(function(t){if(h(t)){var e=t.getGeometry(),l=s;if(s=e.closestPointXY(i,r,o,s),s<l){n=t;var c=Math.sqrt(s);a[0]=i-c,a[1]=r-c,a[2]=i+c,a[3]=r+c}}})),n},e.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},e.prototype.getFeatureById=function(t){var e=this.idIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getFeatureByUid=function(t){var e=this.uidIndex_[t];return void 0!==e?e:null},e.prototype.getFormat=function(){return this.format_},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.getUrl=function(){return this.url_},e.prototype.handleFeatureChange_=function(t){var e=t.target,i=Object(y["c"])(e),r=e.getGeometry();if(r){var n=r.getExtent();i in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[i],this.featuresRtree_&&this.featuresRtree_.insert(n,e)):this.featuresRtree_&&this.featuresRtree_.update(n,e)}else i in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[i]=e);var o=e.getId();if(void 0!==o){var s=o.toString();this.idIndex_[s]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[s]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[i]=e;this.changed(),this.dispatchEvent(new w(u["a"].CHANGEFEATURE,e))},e.prototype.hasFeature=function(t){var e=t.getId();return void 0!==e?e in this.idIndex_:Object(y["c"])(t)in this.uidIndex_},e.prototype.isEmpty=function(){return this.featuresRtree_.isEmpty()&&Object(v["d"])(this.nullGeometryFeatures_)},e.prototype.loadFeatures=function(t,e,i){for(var r=this.loadedExtentsRtree_,n=this.strategy_(t,e,i),o=function(t,o){var a=n[t],h=r.forEachInExtent(a,(function(t){return Object(g["g"])(t.extent,a)}));h||(++s.loadingExtentsCount_,s.dispatchEvent(new w(u["a"].FEATURESLOADSTART)),s.loader_.call(s,a,e,i,function(t){--this.loadingExtentsCount_,this.dispatchEvent(new w(u["a"].FEATURESLOADEND,void 0,t))}.bind(s),function(){--this.loadingExtentsCount_,this.dispatchEvent(new w(u["a"].FEATURESLOADERROR))}.bind(s)),r.insert(a,{extent:a.slice()}))},s=this,a=0,h=n.length;a<h;++a)o(a,h);this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),t.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var e,i=this.loadedExtentsRtree_;i.forEachInExtent(t,(function(i){if(Object(g["o"])(i.extent,t))return e=i,!0})),e&&i.remove(e)},e.prototype.removeFeature=function(t){var e=Object(y["c"])(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t),this.changed()},e.prototype.removeFeatureInternal=function(t){var e=Object(y["c"])(t);this.featureChangeKeys_[e].forEach(m["c"]),delete this.featureChangeKeys_[e];var i=t.getId();void 0!==i&&delete this.idIndex_[i.toString()],delete this.uidIndex_[e],this.dispatchEvent(new w(u["a"].REMOVEFEATURE,t))},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){Object(p["a"])(this.format_,7),this.url_=t,this.setLoader(S(t,this.format_))},e}(l["a"]);e["a"]=E},5938:function(t,e,i){"use strict";function r(t,e,i,r){for(var n=t[e],o=t[e+1],s=0,a=e+r;a<i;a+=r){var h=t[a],l=t[a+1];s+=Math.sqrt((h-n)*(h-n)+(l-o)*(l-o)),n=h,o=l}return s}i.d(e,"a",(function(){return r}))},"5fb2":function(t,e,i){"use strict";var r=i("da84"),n=i("e330"),o=2147483647,s=36,a=1,h=26,l=38,c=700,u=72,f=128,d="-",p=/[^\0-\u007E]/,g=/[.\u3002\uFF0E\uFF61]/g,_="Overflow: input needs wider integers to process",y=s-a,v=r.RangeError,m=n(g.exec),x=Math.floor,O=String.fromCharCode,b=n("".charCodeAt),S=n([].join),C=n([].push),w=n("".replace),E=n("".split),T=n("".toLowerCase),I=function(t){var e=[],i=0,r=t.length;while(i<r){var n=b(t,i++);if(n>=55296&&n<=56319&&i<r){var o=b(t,i++);56320==(64512&o)?C(e,((1023&n)<<10)+(1023&o)+65536):(C(e,n),i--)}else C(e,n)}return e},R=function(t){return t+22+75*(t<26)},L=function(t,e,i){var r=0;t=i?x(t/c):t>>1,t+=x(t/e);while(t>y*h>>1)t=x(t/y),r+=s;return x(r+(y+1)*t/(t+l))},F=function(t){var e=[];t=I(t);var i,r,n=t.length,l=f,c=0,p=u;for(i=0;i<t.length;i++)r=t[i],r<128&&C(e,O(r));var g=e.length,y=g;g&&C(e,d);while(y<n){var m=o;for(i=0;i<t.length;i++)r=t[i],r>=l&&r<m&&(m=r);var b=y+1;if(m-l>x((o-c)/b))throw v(_);for(c+=(m-l)*b,l=m,i=0;i<t.length;i++){if(r=t[i],r<l&&++c>o)throw v(_);if(r==l){var w=c,E=s;while(1){var T=E<=p?a:E>=p+h?h:E-p;if(w<T)break;var F=w-T,k=s-T;C(e,O(R(T+F%k))),w=x(F/k),E+=s}C(e,O(R(w))),p=L(c,b,y==g),c=0,y++}}c++,l++}return S(e,"")};t.exports=function(t){var e,i,r=[],n=E(w(T(t),g,"."),".");for(e=0;e<n.length;e++)i=n[e],C(r,m(p,i)?"xn--"+F(i):i);return S(r,".")}},"6c77":function(t,e,i){"use strict";i.d(e,"d",(function(){return x})),i.d(e,"a",(function(){return b})),i.d(e,"b",(function(){return S}));var r=i("869f"),n=i("ab35"),o=i("5c38"),s=i("e98d"),a=i("0999"),h=i("ddea"),l=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),c=function(t){function e(e){var i=this,r=void 0!==e.rotateWithView&&e.rotateWithView;return i=t.call(this,{opacity:1,rotateWithView:r,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0]})||this,i.canvas_=void 0,i.hitDetectionCanvas_=null,i.fill_=void 0!==e.fill?e.fill:null,i.origin_=[0,0],i.points_=e.points,i.radius_=void 0!==e.radius?e.radius:e.radius1,i.radius2_=e.radius2,i.angle_=void 0!==e.angle?e.angle:0,i.stroke_=void 0!==e.stroke?e.stroke:null,i.anchor_=null,i.size_=null,i.renderOptions_=null,i.render(),i}return l(e,t),e.prototype.clone=function(){var t=this.getScale(),i=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice()});return i.setOpacity(this.getOpacity()),i},e.prototype.getAnchor=function(){return this.anchor_},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var e=this.canvas_[t];if(!e){var i=this.renderOptions_,r=Object(a["a"])(i.size*t,i.size*t);this.draw_(i,r,t),e=r.canvas,this.canvas_[t]=e}return e},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return r["a"].LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.calculateLineJoinSize_=function(t,e,i){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;var r=this.radius_,n=void 0===this.radius2_?r:this.radius2_;if(r<n){var o=r;r=n,n=o}var s=void 0===this.radius2_?this.points_:2*this.points_,a=2*Math.PI/s,h=n*Math.sin(a),l=Math.sqrt(n*n-h*h),c=r-l,u=Math.sqrt(h*h+c*c),f=u/h;if("miter"===t&&f<=i)return f*e;var d=e/2/f,p=e/2*(c/u),g=Math.sqrt((r+d)*(r+d)+p*p),_=g-r;if(void 0===this.radius2_||"bevel"===t)return 2*_;var y=r*Math.sin(a),v=Math.sqrt(r*r-y*y),m=n-v,x=Math.sqrt(y*y+m*m),O=x/y;if(O<=i){var b=O*e/2-n-r;return 2*Math.max(_,b)}return 2*_},e.prototype.createRenderOptions=function(){var t,e=h["g"],i=0,r=null,n=0,o=0;this.stroke_&&(t=this.stroke_.getColor(),null===t&&(t=h["k"]),t=Object(s["a"])(t),o=this.stroke_.getWidth(),void 0===o&&(o=h["h"]),r=this.stroke_.getLineDash(),n=this.stroke_.getLineDashOffset(),e=this.stroke_.getLineJoin(),void 0===e&&(e=h["g"]),i=this.stroke_.getMiterLimit(),void 0===i&&(i=h["i"]));var a=this.calculateLineJoinSize_(e,o,i),l=Math.max(this.radius_,this.radius2_||0),c=Math.ceil(2*l+a);return{strokeStyle:t,strokeWidth:o,size:c,lineDash:r,lineDashOffset:n,lineJoin:e,miterLimit:i}},e.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var t=this.renderOptions_.size,e=this.getDisplacement();this.canvas_={},this.anchor_=[t/2-e[0],t/2+e[1]],this.size_=[t,t]},e.prototype.draw_=function(t,e,i){if(e.scale(i,i),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){var r=this.fill_.getColor();null===r&&(r=h["b"]),e.fillStyle=Object(s["a"])(r),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,e.setLineDash&&t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e.prototype.createHitDetectionCanvas_=function(t){if(this.fill_){var e=this.fill_.getColor(),i=0;if("string"===typeof e&&(e=Object(o["a"])(e)),null===e?i=1:Array.isArray(e)&&(i=4===e.length?e[3]:1),0===i){var r=Object(a["a"])(t.size,t.size);this.hitDetectionCanvas_=r.canvas,this.drawHitDetectionCanvas_(t,r)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},e.prototype.createPath_=function(t){var e=this.points_,i=this.radius_;if(e===1/0)t.arc(0,0,i,0,2*Math.PI);else{var r=void 0===this.radius2_?i:this.radius2_;void 0!==this.radius2_&&(e*=2);for(var n=this.angle_-Math.PI/2,o=2*Math.PI/e,s=0;s<e;s++){var a=n+s*o,h=s%2===0?i:r;t.lineTo(h*Math.cos(a),h*Math.sin(a))}t.closePath()}},e.prototype.drawHitDetectionCanvas_=function(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=h["b"],e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e}(n["a"]),u=c,f=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),d=function(t){function e(e){var i=this,r=e||{};return i=t.call(this,{points:1/0,fill:r.fill,radius:r.radius,stroke:r.stroke,scale:void 0!==r.scale?r.scale:1,rotation:void 0!==r.rotation?r.rotation:0,rotateWithView:void 0!==r.rotateWithView&&r.rotateWithView,displacement:void 0!==r.displacement?r.displacement:[0,0]})||this,i}return f(e,t),e.prototype.clone=function(){var t=this.getScale(),i=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()});return i.setOpacity(this.getOpacity()),i},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(u),p=d,g=i("83a6"),_=i("f623"),y=i("8682"),v=i("92fa"),m=function(){function t(t){var e=t||{};this.geometry_=null,this.geometryFunction_=C,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.hitDetectionRenderer_=void 0!==e.hitDetectionRenderer?e.hitDetectionRenderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}return t.prototype.clone=function(){var e=this.getGeometry();return e&&"object"===typeof e&&(e=e.clone()),new t({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.setRenderer=function(t){this.renderer_=t},t.prototype.setHitDetectionRenderer=function(t){this.hitDetectionRenderer_=t},t.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},t.prototype.getGeometry=function(){return this.geometry_},t.prototype.getGeometryFunction=function(){return this.geometryFunction_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(t){this.fill_=t},t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(t){this.image_=t},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.getText=function(){return this.text_},t.prototype.setText=function(t){this.text_=t},t.prototype.getZIndex=function(){return this.zIndex_},t.prototype.setGeometry=function(t){"function"===typeof t?this.geometryFunction_=t:"string"===typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=C,this.geometry_=t},t.prototype.setZIndex=function(t){this.zIndex_=t},t}();function x(t){var e;if("function"===typeof t)e=t;else{var i;if(Array.isArray(t))i=t;else{Object(v["a"])("function"===typeof t.getZIndex,41);var r=t;i=[r]}e=function(){return i}}return e}var O=null;function b(t,e){if(!O){var i=new g["a"]({color:"rgba(255,255,255,0.4)"}),r=new y["a"]({color:"#3399CC",width:1.25});O=[new m({image:new p({fill:i,stroke:r,radius:5}),fill:i,stroke:r})]}return O}function S(){var t={},e=[255,255,255,1],i=[0,153,255,1],r=3;return t[_["a"].POLYGON]=[new m({fill:new g["a"]({color:[255,255,255,.5]})})],t[_["a"].MULTI_POLYGON]=t[_["a"].POLYGON],t[_["a"].LINE_STRING]=[new m({stroke:new y["a"]({color:e,width:r+2})}),new m({stroke:new y["a"]({color:i,width:r})})],t[_["a"].MULTI_LINE_STRING]=t[_["a"].LINE_STRING],t[_["a"].CIRCLE]=t[_["a"].POLYGON].concat(t[_["a"].LINE_STRING]),t[_["a"].POINT]=[new m({image:new p({radius:2*r,fill:new g["a"]({color:i}),stroke:new y["a"]({color:e,width:r/2})}),zIndex:1/0})],t[_["a"].MULTI_POINT]=t[_["a"].POINT],t[_["a"].GEOMETRY_COLLECTION]=t[_["a"].POLYGON].concat(t[_["a"].LINE_STRING],t[_["a"].POINT]),t}function C(t){return t.getGeometry()}e["c"]=m},"6cbf":function(t,e,i){"use strict";var r=i("01d4"),n=i("82b0"),o={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},s=i("869f"),a=i("ab35"),h=i("5c38"),l=i("92fa"),c=i("0ec0"),u=i("0999"),f=i("3c22"),d=i("6611"),p=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),g=null,_=function(t){function e(e,i,r,n,o,s){var a=t.call(this)||this;return a.hitDetectionImage_=null,a.image_=e||new Image,null!==n&&(a.image_.crossOrigin=n),a.canvas_={},a.color_=s,a.unlisten_=null,a.imageState_=o,a.size_=r,a.src_=i,a.tainted_,a}return p(e,t),e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===s["a"].LOADED){g||(g=Object(u["a"])(1,1)),g.drawImage(this.image_,0,0);try{g.getImageData(0,0,1,1),this.tainted_=!1}catch(t){g=null,this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(r["a"].CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=s["a"].ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=s["a"].LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_},e.prototype.getPixelRatio=function(t){return this.replaceColor_(t),this.canvas_[t]?t:1},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var t=this.size_[0],e=this.size_[1],i=Object(u["a"])(t,e);i.fillRect(0,0,t,e),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==s["a"].IDLE){this.imageState_=s["a"].LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=Object(d["a"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(t){if(this.color_&&!this.canvas_[t]&&this.imageState_===s["a"].LOADED){var e=document.createElement("canvas");this.canvas_[t]=e,e.width=Math.ceil(this.image_.width*t),e.height=Math.ceil(this.image_.height*t);var i=e.getContext("2d");if(i.scale(t,t),i.drawImage(this.image_,0,0),i.globalCompositeOperation="multiply","multiply"===i.globalCompositeOperation||this.isTainted_())i.fillStyle=Object(h["b"])(this.color_),i.fillRect(0,0,e.width/t,e.height/t),i.globalCompositeOperation="destination-in",i.drawImage(this.image_,0,0);else{for(var r=i.getImageData(0,0,e.width,e.height),n=r.data,o=this.color_[0]/255,a=this.color_[1]/255,l=this.color_[2]/255,c=this.color_[3],u=0,f=n.length;u<f;u+=4)n[u]*=o,n[u+1]*=a,n[u+2]*=l,n[u+3]*=c;i.putImageData(r,0,0)}}},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(c["a"]);function y(t,e,i,r,n,o){var s=f["a"].get(e,r,o);return s||(s=new _(t,e,i,r,n,o),f["a"].set(e,r,o,s)),s}var v=i("1300"),m=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),x=function(t){function e(e){var i=this,r=e||{},a=void 0!==r.opacity?r.opacity:1,c=void 0!==r.rotation?r.rotation:0,u=void 0!==r.scale?r.scale:1,f=void 0!==r.rotateWithView&&r.rotateWithView;i=t.call(this,{opacity:a,rotation:c,scale:u,displacement:void 0!==r.displacement?r.displacement:[0,0],rotateWithView:f})||this,i.anchor_=void 0!==r.anchor?r.anchor:[.5,.5],i.normalizedAnchor_=null,i.anchorOrigin_=void 0!==r.anchorOrigin?r.anchorOrigin:o.TOP_LEFT,i.anchorXUnits_=void 0!==r.anchorXUnits?r.anchorXUnits:n["a"].FRACTION,i.anchorYUnits_=void 0!==r.anchorYUnits?r.anchorYUnits:n["a"].FRACTION,i.crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null;var d=void 0!==r.img?r.img:null,p=void 0!==r.imgSize?r.imgSize:null,g=r.src;Object(l["a"])(!(void 0!==g&&d),4),Object(l["a"])(!d||d&&p,5),void 0!==g&&0!==g.length||!d||(g=d.src||Object(v["c"])(d)),Object(l["a"])(void 0!==g&&g.length>0,6);var _=void 0!==r.src?s["a"].IDLE:s["a"].LOADED;return i.color_=void 0!==r.color?Object(h["a"])(r.color):null,i.iconImage_=y(d,g,p,i.crossOrigin_,_,i.color_),i.offset_=void 0!==r.offset?r.offset:[0,0],i.offsetOrigin_=void 0!==r.offsetOrigin?r.offsetOrigin:o.TOP_LEFT,i.origin_=null,i.size_=void 0!==r.size?r.size:null,i}return m(e,t),e.prototype.clone=function(){var t=this.getScale();return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},e.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var t=this.anchor_,e=this.getSize();if(this.anchorXUnits_==n["a"].FRACTION||this.anchorYUnits_==n["a"].FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==n["a"].FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==n["a"].FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=o.TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=o.TOP_RIGHT&&this.anchorOrigin_!=o.BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=o.BOTTOM_LEFT&&this.anchorOrigin_!=o.BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}var i=this.getDisplacement();return t[0]-=i[0],t[1]+=i[1],this.normalizedAnchor_=t,this.normalizedAnchor_},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=o.TOP_LEFT){var e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),this.offsetOrigin_!=o.TOP_RIGHT&&this.offsetOrigin_!=o.BOTTOM_RIGHT||(t[0]=i[0]-e[0]-t[0]),this.offsetOrigin_!=o.BOTTOM_LEFT&&this.offsetOrigin_!=o.BOTTOM_RIGHT||(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(r["a"].CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(r["a"].CHANGE,t)},e}(a["a"]);e["a"]=x},7574:function(t,e,i){},"7a09":function(t,e,i){"use strict";var r=i("521b"),n=i("f623"),o=i("9abc"),s=i("9769"),a=i("0af5"),h=i("abb7"),l=i("1c48"),c=i("9f5e"),u=i("fd4d"),f=i("bb6c"),d=i("b1a2"),p=i("c560"),g=i("5938"),_=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),y=function(t){function e(e,i){var r=t.call(this)||this;return r.flatMidpoint_=null,r.flatMidpointRevision_=-1,r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===i||Array.isArray(e[0])?r.setCoordinates(e,i):r.setFlatCoordinates(i,e),r}return _(e,t),e.prototype.appendCoordinate=function(t){this.flatCoordinates?Object(c["c"])(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,i,r){return r<Object(a["e"])(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(s["e"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(s["d"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,i,r))},e.prototype.forEachSegment=function(t){return Object(u["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,e){if(this.layout!=r["a"].XYM&&this.layout!=r["a"].XYZM)return null;var i=void 0!==e&&e;return Object(d["b"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,i)},e.prototype.getCoordinates=function(){return Object(f["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,e){return Object(d["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)},e.prototype.getLength=function(){return Object(g["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},e.prototype.getSimplifiedGeometryInternal=function(t){var i=[];return i.length=Object(l["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,i,0),new e(i,r["a"].XY)},e.prototype.getType=function(){return n["a"].LINE_STRING},e.prototype.intersectsExtent=function(t){return Object(p["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(h["b"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(o["a"]);e["a"]=y},"82b0":function(t,e,i){"use strict";e["a"]={FRACTION:"fraction",PIXELS:"pixels"}},"83a6":function(t,e,i){"use strict";var r=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0})},t.prototype.getColor=function(){return this.color_},t.prototype.setColor=function(t){this.color_=t},t}();e["a"]=r},8682:function(t,e,i){"use strict";var r=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},t.prototype.getColor=function(){return this.color_},t.prototype.getLineCap=function(){return this.lineCap_},t.prototype.getLineDash=function(){return this.lineDash_},t.prototype.getLineDashOffset=function(){return this.lineDashOffset_},t.prototype.getLineJoin=function(){return this.lineJoin_},t.prototype.getMiterLimit=function(){return this.miterLimit_},t.prototype.getWidth=function(){return this.width_},t.prototype.setColor=function(t){this.color_=t},t.prototype.setLineCap=function(t){this.lineCap_=t},t.prototype.setLineDash=function(t){this.lineDash_=t},t.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},t.prototype.setLineJoin=function(t){this.lineJoin_=t},t.prototype.setMiterLimit=function(t){this.miterLimit_=t},t.prototype.setWidth=function(t){this.width_=t},t}();e["a"]=r},9861:function(t,e,i){"use strict";i("e260");var r=i("23e7"),n=i("da84"),o=i("d066"),s=i("c65b"),a=i("e330"),h=i("0d3b"),l=i("6eeb"),c=i("e2cc"),u=i("d44e"),f=i("9ed3"),d=i("69f3"),p=i("19aa"),g=i("1626"),_=i("1a2d"),y=i("0366"),v=i("f5df"),m=i("825a"),x=i("861d"),O=i("577e"),b=i("7c73"),S=i("5c6c"),C=i("9a1f"),w=i("35a1"),E=i("b622"),T=i("addb"),I=E("iterator"),R="URLSearchParams",L=R+"Iterator",F=d.set,k=d.getterFor(R),P=d.getterFor(L),j=o("fetch"),D=o("Request"),A=o("Headers"),M=D&&D.prototype,G=A&&A.prototype,N=n.RegExp,B=n.TypeError,Y=n.decodeURIComponent,U=n.encodeURIComponent,W=a("".charAt),X=a([].join),V=a([].push),H=a("".replace),q=a([].shift),J=a([].splice),z=a("".split),K=a("".slice),Z=/\+/g,Q=Array(4),$=function(t){return Q[t-1]||(Q[t-1]=N("((?:%[\\da-f]{2}){"+t+"})","gi"))},tt=function(t){try{return Y(t)}catch(e){return t}},et=function(t){var e=H(t,Z," "),i=4;try{return Y(e)}catch(r){while(i)e=H(e,$(i--),tt);return e}},it=/[!'()~]|%20/g,rt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},nt=function(t){return rt[t]},ot=function(t){return H(U(t),it,nt)},st=function(t,e){if(t<e)throw B("Not enough arguments")},at=f((function(t,e){F(this,{type:L,iterator:C(k(t).entries),kind:e})}),"Iterator",(function(){var t=P(this),e=t.kind,i=t.iterator.next(),r=i.value;return i.done||(i.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),i}),!0),ht=function(t){this.entries=[],this.url=null,void 0!==t&&(x(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===W(t,0)?K(t,1):t:O(t)))};ht.prototype={type:R,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,i,r,n,o,a,h,l=w(t);if(l){e=C(t,l),i=e.next;while(!(r=s(i,e)).done){if(n=C(m(r.value)),o=n.next,(a=s(o,n)).done||(h=s(o,n)).done||!s(o,n).done)throw B("Expected sequence with length 2");V(this.entries,{key:O(a.value),value:O(h.value)})}}else for(var c in t)_(t,c)&&V(this.entries,{key:c,value:O(t[c])})},parseQuery:function(t){if(t){var e,i,r=z(t,"&"),n=0;while(n<r.length)e=r[n++],e.length&&(i=z(e,"="),V(this.entries,{key:et(q(i)),value:et(X(i,"="))}))}},serialize:function(){var t,e=this.entries,i=[],r=0;while(r<e.length)t=e[r++],V(i,ot(t.key)+"="+ot(t.value));return X(i,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var lt=function(){p(this,ct);var t=arguments.length>0?arguments[0]:void 0;F(this,new ht(t))},ct=lt.prototype;if(c(ct,{append:function(t,e){st(arguments.length,2);var i=k(this);V(i.entries,{key:O(t),value:O(e)}),i.updateURL()},delete:function(t){st(arguments.length,1);var e=k(this),i=e.entries,r=O(t),n=0;while(n<i.length)i[n].key===r?J(i,n,1):n++;e.updateURL()},get:function(t){st(arguments.length,1);for(var e=k(this).entries,i=O(t),r=0;r<e.length;r++)if(e[r].key===i)return e[r].value;return null},getAll:function(t){st(arguments.length,1);for(var e=k(this).entries,i=O(t),r=[],n=0;n<e.length;n++)e[n].key===i&&V(r,e[n].value);return r},has:function(t){st(arguments.length,1);var e=k(this).entries,i=O(t),r=0;while(r<e.length)if(e[r++].key===i)return!0;return!1},set:function(t,e){st(arguments.length,1);for(var i,r=k(this),n=r.entries,o=!1,s=O(t),a=O(e),h=0;h<n.length;h++)i=n[h],i.key===s&&(o?J(n,h--,1):(o=!0,i.value=a));o||V(n,{key:s,value:a}),r.updateURL()},sort:function(){var t=k(this);T(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){var e,i=k(this).entries,r=y(t,arguments.length>1?arguments[1]:void 0),n=0;while(n<i.length)e=i[n++],r(e.value,e.key,this)},keys:function(){return new at(this,"keys")},values:function(){return new at(this,"values")},entries:function(){return new at(this,"entries")}},{enumerable:!0}),l(ct,I,ct.entries,{name:"entries"}),l(ct,"toString",(function(){return k(this).serialize()}),{enumerable:!0}),u(lt,R),r({global:!0,forced:!h},{URLSearchParams:lt}),!h&&g(A)){var ut=a(G.has),ft=a(G.set),dt=function(t){if(x(t)){var e,i=t.body;if(v(i)===R)return e=t.headers?new A(t.headers):new A,ut(e,"content-type")||ft(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),b(t,{body:S(0,O(i)),headers:S(0,e)})}return t};if(g(j)&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return j(t,arguments.length>1?dt(arguments[1]):{})}}),g(D)){var pt=function(t){return p(this,M),new D(t,arguments.length>1?dt(arguments[1]):{})};M.constructor=pt,pt.prototype=M,r({global:!0,forced:!0},{Request:pt})}}t.exports={URLSearchParams:lt,getState:k}},"9bdd":function(t,e,i){var r=i("825a"),n=i("2a62");t.exports=function(t,e,i,o){try{return o?e(r(i)[0],i[1]):e(i)}catch(s){n(t,"throw",s)}}},a43f:function(t,e,i){"use strict";e["a"]={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},ab35:function(t,e,i){"use strict";var r=i("1300"),n=i("345d"),o=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=Object(n["c"])(t.scale),this.displacement_=t.displacement}return t.prototype.clone=function(){var e=this.getScale();return new t({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getDisplacement=function(){return this.displacement_},t.prototype.getAnchor=function(){return Object(r["b"])()},t.prototype.getImage=function(t){return Object(r["b"])()},t.prototype.getHitDetectionImage=function(){return Object(r["b"])()},t.prototype.getPixelRatio=function(t){return 1},t.prototype.getImageState=function(){return Object(r["b"])()},t.prototype.getImageSize=function(){return Object(r["b"])()},t.prototype.getOrigin=function(){return Object(r["b"])()},t.prototype.getSize=function(){return Object(r["b"])()},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=Object(n["c"])(t)},t.prototype.listenImageChange=function(t){Object(r["b"])()},t.prototype.load=function(){Object(r["b"])()},t.prototype.unlistenImageChange=function(t){Object(r["b"])()},t}();e["a"]=o},ac29:function(t,e,i){"use strict";var r=i("f623"),n=i("9abc"),o=i("0af5"),s=i("abb7"),a=i("bef8"),h=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l=function(t){function e(e,i,r){var n=t.call(this)||this;if(void 0!==r&&void 0===i)n.setFlatCoordinates(r,e);else{var o=i||0;n.setCenterAndRadius(e,o,r)}return n}return h(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,i,r){var n=this.flatCoordinates,o=t-n[0],s=e-n[1],a=o*o+s*s;if(a<r){if(0===a)for(var h=0;h<this.stride;++h)i[h]=n[h];else{var l=this.getRadius()/Math.sqrt(a);i[0]=n[0]+l*o,i[1]=n[1]+l*s;for(h=2;h<this.stride;++h)i[h]=n[h]}return i.length=this.stride,a}return r},e.prototype.containsXY=function(t,e){var i=this.flatCoordinates,r=t-i[0],n=e-i[1];return r*r+n*n<=this.getRadiusSquared_()},e.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.computeExtent=function(t){var e=this.flatCoordinates,i=e[this.stride]-e[0];return Object(o["k"])(e[0]-i,e[1]-i,e[0]+i,e[1]+i,t)},e.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},e.prototype.getRadiusSquared_=function(){var t=this.flatCoordinates[this.stride]-this.flatCoordinates[0],e=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return t*t+e*e},e.prototype.getType=function(){return r["a"].CIRCLE},e.prototype.intersectsExtent=function(t){var e=this.getExtent();if(Object(o["E"])(t,e)){var i=this.getCenter();return t[0]<=i[0]&&t[2]>=i[0]||(t[1]<=i[1]&&t[3]>=i[1]||Object(o["s"])(t,this.intersectsCoordinate.bind(this)))}return!1},e.prototype.setCenter=function(t){var e=this.stride,i=this.flatCoordinates[e]-this.flatCoordinates[0],r=t.slice();r[e]=r[0]+i;for(var n=1;n<e;++n)r[e+n]=t[n];this.setFlatCoordinates(this.layout,r),this.changed()},e.prototype.setCenterAndRadius=function(t,e,i){this.setLayout(i,t,0),this.flatCoordinates||(this.flatCoordinates=[]);var r=this.flatCoordinates,n=Object(s["a"])(r,0,t,this.stride);r[n++]=r[0]+e;for(var o=1,a=this.stride;o<a;++o)r[n++]=r[o];r.length=n,this.changed()},e.prototype.getCoordinates=function(){return null},e.prototype.setCoordinates=function(t,e){},e.prototype.setRadius=function(t){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+t,this.changed()},e.prototype.rotate=function(t,e){var i=this.getCenter(),r=this.getStride();this.setCenter(Object(a["a"])(i,0,i.length,r,t,e,i)),this.changed()},e.prototype.translate=function(t,e){var i=this.getCenter(),r=this.getStride();this.setCenter(Object(a["d"])(i,0,i.length,r,t,e,i)),this.changed()},e}(n["a"]);l.prototype.transform;var c=l,u=i("cef7"),f=i("01d4"),d=i("4cdf"),p=i("bf62"),g=i("7a09"),_=i("509b"),y=i("0b2d"),v=i("521b"),m=i("9769"),x=i("1c48"),O=i("9f5e"),b=i("bb6c"),S=i("b1a2"),C=i("c560"),w=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),E=function(t){function e(e,i,r){var n=t.call(this)||this;if(n.ends_=[],n.maxDelta_=-1,n.maxDeltaRevision_=-1,Array.isArray(e[0]))n.setCoordinates(e,i);else if(void 0!==i&&r)n.setFlatCoordinates(i,e),n.ends_=r;else{for(var o=n.getLayout(),s=e,a=[],h=[],l=0,c=s.length;l<c;++l){var u=s[l];0===l&&(o=u.getLayout()),Object(O["c"])(a,u.getFlatCoordinates()),h.push(a.length)}n.setFlatCoordinates(o,a),n.ends_=h}return n}return w(e,t),e.prototype.appendLineString=function(t){this.flatCoordinates?Object(O["c"])(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,i,r){return r<Object(o["e"])(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(m["a"])(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(m["b"])(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,i,r))},e.prototype.getCoordinateAtM=function(t,e,i){if(this.layout!=v["a"].XYM&&this.layout!=v["a"].XYZM||0===this.flatCoordinates.length)return null;var r=void 0!==e&&e,n=void 0!==i&&i;return Object(S["c"])(this.flatCoordinates,0,this.ends_,this.stride,t,r,n)},e.prototype.getCoordinates=function(){return Object(b["b"])(this.flatCoordinates,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getLineString=function(t){return t<0||this.ends_.length<=t?null:new g["a"](this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLineStrings=function(){for(var t=this.flatCoordinates,e=this.ends_,i=this.layout,r=[],n=0,o=0,s=e.length;o<s;++o){var a=e[o],h=new g["a"](t.slice(n,a),i);r.push(h),n=a}return r},e.prototype.getFlatMidpoints=function(){for(var t=[],e=this.flatCoordinates,i=0,r=this.ends_,n=this.stride,o=0,s=r.length;o<s;++o){var a=r[o],h=Object(S["a"])(e,i,a,n,.5);Object(O["c"])(t,h),i=a}return t},e.prototype.getSimplifiedGeometryInternal=function(t){var i=[],r=[];return i.length=Object(x["b"])(this.flatCoordinates,0,this.ends_,this.stride,t,i,0,r),new e(i,v["a"].XY,r)},e.prototype.getType=function(){return r["a"].MULTI_LINE_STRING},e.prototype.intersectsExtent=function(t){return Object(C["b"])(this.flatCoordinates,0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var i=Object(s["c"])(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()},e}(n["a"]),T=E,I=i("f403"),R=i("7fc9"),L=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),F=function(t){function e(e,i){var r=t.call(this)||this;return i&&!Array.isArray(e[0])?r.setFlatCoordinates(i,e):r.setCoordinates(e,i),r}return L(e,t),e.prototype.appendPoint=function(t){this.flatCoordinates?Object(O["c"])(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,i,r){if(r<Object(o["e"])(this.getExtent(),t,e))return r;for(var n=this.flatCoordinates,s=this.stride,a=0,h=n.length;a<h;a+=s){var l=Object(R["g"])(t,e,n[a],n[a+1]);if(l<r){r=l;for(var c=0;c<s;++c)i[c]=n[a+c];i.length=s}}return r},e.prototype.getCoordinates=function(){return Object(b["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getPoint=function(t){var e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new I["a"](this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)},e.prototype.getPoints=function(){for(var t=this.flatCoordinates,e=this.layout,i=this.stride,r=[],n=0,o=t.length;n<o;n+=i){var s=new I["a"](t.slice(n,n+i),e);r.push(s)}return r},e.prototype.getType=function(){return r["a"].MULTI_POINT},e.prototype.intersectsExtent=function(t){for(var e=this.flatCoordinates,i=this.stride,r=0,n=e.length;r<n;r+=i){var s=e[r],a=e[r+1];if(Object(o["h"])(t,s,a))return!0}return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(s["b"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(n["a"]),k=F,P=i("5bc3"),j=i("0a9d"),D=i("4d98"),A=i("b589");function M(t,e,i,r){for(var n=[],s=Object(o["j"])(),a=0,h=i.length;a<h;++a){var l=i[a];s=Object(o["n"])(t,e,l[0],r),n.push((s[0]+s[2])/2,(s[1]+s[3])/2),e=l[l.length-1]}return n}var G=i("25f1"),N=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),B=function(t){function e(e,i,r){var n=t.call(this)||this;if(n.endss_=[],n.flatInteriorPointsRevision_=-1,n.flatInteriorPoints_=null,n.maxDelta_=-1,n.maxDeltaRevision_=-1,n.orientedRevision_=-1,n.orientedFlatCoordinates_=null,!r&&!Array.isArray(e[0])){for(var o=n.getLayout(),s=e,a=[],h=[],l=0,c=s.length;l<c;++l){var u=s[l];0===l&&(o=u.getLayout());for(var f=a.length,d=u.getEnds(),p=0,g=d.length;p<g;++p)d[p]+=f;Object(O["c"])(a,u.getFlatCoordinates()),h.push(d)}i=o,e=a,r=h}return void 0!==i&&r?(n.setFlatCoordinates(i,e),n.endss_=r):n.setCoordinates(e,i),n}return N(e,t),e.prototype.appendPolygon=function(t){var e;if(this.flatCoordinates){var i=this.flatCoordinates.length;Object(O["c"])(this.flatCoordinates,t.getFlatCoordinates()),e=t.getEnds().slice();for(var r=0,n=e.length;r<n;++r)e[r]+=i}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()},e.prototype.clone=function(){for(var t=this.endss_.length,i=new Array(t),r=0;r<t;++r)i[r]=this.endss_[r].slice();var n=new e(this.flatCoordinates.slice(),this.layout,i);return n.applyProperties(this),n},e.prototype.closestPointXY=function(t,e,i,r){return r<Object(o["e"])(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(m["f"])(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(m["c"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,i,r))},e.prototype.containsXY=function(t,e){return Object(G["d"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)},e.prototype.getArea=function(){return Object(A["c"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),Object(D["d"])(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,Object(b["c"])(e,0,this.endss_,this.stride)},e.prototype.getEndss=function(){return this.endss_},e.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var t=M(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=Object(j["b"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},e.prototype.getInteriorPoints=function(){return new k(this.getFlatInteriorPoints().slice(),v["a"].XYM)},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;Object(D["b"])(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Object(D["d"])(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var i=[],r=[];return i.length=Object(x["d"])(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),i,0,r),new e(i,v["a"].XY,r)},e.prototype.getPolygon=function(t){if(t<0||this.endss_.length<=t)return null;var e;if(0===t)e=0;else{var i=this.endss_[t-1];e=i[i.length-1]}var r=this.endss_[t].slice(),n=r[r.length-1];if(0!==e)for(var o=0,s=r.length;o<s;++o)r[o]-=e;return new P["a"](this.flatCoordinates.slice(e,n),this.layout,r)},e.prototype.getPolygons=function(){for(var t=this.layout,e=this.flatCoordinates,i=this.endss_,r=[],n=0,o=0,s=i.length;o<s;++o){var a=i[o].slice(),h=a[a.length-1];if(0!==n)for(var l=0,c=a.length;l<c;++l)a[l]-=n;var u=new P["a"](e.slice(n,h),t,a);r.push(u),n=h}return r},e.prototype.getType=function(){return r["a"].MULTI_POLYGON},e.prototype.intersectsExtent=function(t){return Object(C["d"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);var i=Object(s["d"])(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===i.length)this.flatCoordinates.length=0;else{var r=i[i.length-1];this.flatCoordinates.length=0===r.length?0:r[r.length-1]}this.changed()},e}(n["a"]),Y=B,U=i("4105"),W=i("3e6b"),X=i("5831"),V=i("57cb"),H=i("06f8"),q=i("6c77"),J=i("256f"),z=i("a568"),K=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Z={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",CIRCLE:"Circle"},Q={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"},$=function(t){function e(e,i){var r=t.call(this,e)||this;return r.feature=i,r}return K(e,t),e}(u["a"]),tt=function(t){function e(e){var i=this,r=e;r.stopDown||(r.stopDown=V["a"]),i=t.call(this,r)||this,i.on,i.once,i.un,i.shouldHandle_=!1,i.downPx_=null,i.downTimeout_,i.lastDragTime_,i.pointerType_,i.freehand_=!1,i.source_=e.source?e.source:null,i.features_=e.features?e.features:null,i.snapTolerance_=e.snapTolerance?e.snapTolerance:12,i.type_=e.type,i.mode_=it(i.type_),i.stopClick_=!!e.stopClick,i.minPoints_=e.minPoints?e.minPoints:i.mode_===Z.POLYGON?3:2,i.maxPoints_=i.mode_===Z.CIRCLE?2:e.maxPoints?e.maxPoints:1/0,i.finishCondition_=e.finishCondition?e.finishCondition:V["b"];var n=e.geometryFunction;if(!n){var o,s=i.mode_;if(s===Z.CIRCLE)n=function(t,e,i){var r=e||new c([NaN,NaN]),n=Object(J["d"])(t[0],i),o=Object(z["i"])(n,Object(J["d"])(t[t.length-1],i));r.setCenterAndRadius(n,Math.sqrt(o));var s=Object(J["k"])();return s&&r.transform(i,s),r};else s===Z.POINT?o=I["a"]:s===Z.LINE_STRING?o=g["a"]:s===Z.POLYGON&&(o=P["a"]),n=function(t,e,i){return e?s===Z.POLYGON?t[0].length?e.setCoordinates([t[0].concat([t[0][0]])]):e.setCoordinates([]):e.setCoordinates(t):e=new o(t),e}}return i.geometryFunction_=n,i.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,i.finishCoordinate_=null,i.sketchFeature_=null,i.sketchPoint_=null,i.sketchCoords_=null,i.sketchLine_=null,i.sketchLineCoords_=null,i.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,i.overlay_=new W["a"]({source:new X["a"]({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:et(),updateWhileInteracting:!0}),i.geometryName_=e.geometryName,i.condition_=e.condition?e.condition:H["j"],i.freehandCondition_,e.freehand?i.freehandCondition_=H["d"]:i.freehandCondition_=e.freehandCondition?e.freehandCondition:H["l"],i.addChangeListener(p["a"].ACTIVE,i.updateState_),i}return K(e,t),e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),this.updateState_()},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleEvent=function(e){e.originalEvent.type===f["a"].CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!==Z.POINT&&this.freehandCondition_(e);var i=e.type===y["a"].POINTERMOVE,r=!0;if(!this.freehand_&&this.lastDragTime_&&e.type===y["a"].POINTERDRAG){var n=Date.now();n-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,i=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&e.type===y["a"].POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),r=!1):this.freehand_&&e.type===y["a"].POINTERDOWN?r=!1:i&&this.getPointerCount()<2?(r=e.type===y["a"].POINTERMOVE,r&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===y["a"].POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e)):e.type===y["a"].DBLCLICK&&(r=!1),t.prototype.handleEvent.call(this,e)&&r},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t.coordinate),!0):this.condition_(t)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new _["a"](y["a"].POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)},e.prototype.handleUpEvent=function(t){var e=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t),this.shouldHandle_){var i=!this.finishCoordinate_;i&&this.startDrawing_(t.coordinate),!i&&this.freehand_?this.finishDrawing():this.freehand_||i&&this.mode_!==Z.POINT||(this.atFinish_(t.pixel)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t.coordinate)),e=!1}else this.freehand_&&this.abortDrawing();return!e&&this.stopClick_&&t.preventDefault(),e},e.prototype.handlePointerMove_=function(t){if(this.pointerType_=t.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var e=this.downPx_,i=t.pixel,r=e[0]-i[0],n=e[1]-i[1],o=r*r+n*n;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(t.coordinate):this.createOrUpdateSketchPoint_(t.coordinate.slice())},e.prototype.atFinish_=function(t){var e=!1;if(this.sketchFeature_){var i=!1,r=[this.finishCoordinate_],n=this.mode_;if(n===Z.POINT)e=!0;else if(n===Z.CIRCLE)e=2===this.sketchCoords_.length;else if(n===Z.LINE_STRING)i=this.sketchCoords_.length>this.minPoints_;else if(n===Z.POLYGON){var o=this.sketchCoords_;i=o[0].length>this.minPoints_,r=[o[0][0],o[0][o[0].length-2]]}if(i)for(var s=this.getMap(),a=0,h=r.length;a<h;a++){var l=r[a],c=s.getPixelFromCoordinate(l),u=t[0]-c[0],f=t[1]-c[1],d=this.freehand_?1:this.snapTolerance_;if(e=Math.sqrt(u*u+f*f)<=d,e){this.finishCoordinate_=l;break}}}return e},e.prototype.createOrUpdateSketchPoint_=function(t){if(this.sketchPoint_){var e=this.sketchPoint_.getGeometry();e.setCoordinates(t)}else this.sketchPoint_=new d["a"](new I["a"](t)),this.updateSketchFeatures_()},e.prototype.createOrUpdateCustomSketchLine_=function(t){this.sketchLine_||(this.sketchLine_=new d["a"]);var e=t.getLinearRing(0),i=this.sketchLine_.getGeometry();i?(i.setFlatCoordinates(e.getLayout(),e.getFlatCoordinates()),i.changed()):(i=new g["a"](e.getFlatCoordinates(),e.getLayout()),this.sketchLine_.setGeometry(i))},e.prototype.startDrawing_=function(t){var e=this.getMap().getView().getProjection();this.finishCoordinate_=t,this.mode_===Z.POINT?this.sketchCoords_=t.slice():this.mode_===Z.POLYGON?(this.sketchCoords_=[[t.slice(),t.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[t.slice(),t.slice()],this.sketchLineCoords_&&(this.sketchLine_=new d["a"](new g["a"](this.sketchLineCoords_)));var i=this.geometryFunction_(this.sketchCoords_,void 0,e);this.sketchFeature_=new d["a"],this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(i),this.updateSketchFeatures_(),this.dispatchEvent(new $(Q.DRAWSTART,this.sketchFeature_))},e.prototype.modifyDrawing_=function(t){var e,i,n=this.getMap(),o=this.sketchFeature_.getGeometry(),s=n.getView().getProjection();if(this.mode_===Z.POINT?i=this.sketchCoords_:this.mode_===Z.POLYGON?(e=this.sketchCoords_[0],i=e[e.length-1],this.atFinish_(n.getPixelFromCoordinate(t))&&(t=this.finishCoordinate_.slice())):(e=this.sketchCoords_,i=e[e.length-1]),i[0]=t[0],i[1]=t[1],this.geometryFunction_(this.sketchCoords_,o,s),this.sketchPoint_){var a=this.sketchPoint_.getGeometry();a.setCoordinates(t)}if(o.getType()===r["a"].POLYGON&&this.mode_!==Z.POLYGON)this.createOrUpdateCustomSketchLine_(o);else if(this.sketchLineCoords_){var h=this.sketchLine_.getGeometry();h.setCoordinates(this.sketchLineCoords_)}this.updateSketchFeatures_()},e.prototype.addToDrawing_=function(t){var e,i,r=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),o=this.mode_;o===Z.LINE_STRING||o===Z.CIRCLE?(this.finishCoordinate_=t.slice(),i=this.sketchCoords_,i.length>=this.maxPoints_&&(this.freehand_?i.pop():e=!0),i.push(t.slice()),this.geometryFunction_(i,r,n)):o===Z.POLYGON&&(i=this.sketchCoords_[0],i.length>=this.maxPoints_&&(this.freehand_?i.pop():e=!0),i.push(t.slice()),e&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,r,n)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),e&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t,e=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),n=this.mode_;if(n===Z.LINE_STRING||n===Z.CIRCLE){if(t=this.sketchCoords_,t.splice(-2,1),t.length>=2){this.finishCoordinate_=t[t.length-2].slice();var o=this.finishCoordinate_.slice();t[t.length-1]=o,this.createOrUpdateSketchPoint_(o)}this.geometryFunction_(t,e,i),e.getType()===r["a"].POLYGON&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(e)}else if(n===Z.POLYGON){t=this.sketchCoords_[0],t.splice(-2,1);var s=this.sketchLine_.getGeometry();if(t.length>=2){o=t[t.length-2].slice();t[t.length-1]=o,this.createOrUpdateSketchPoint_(o)}s.setCoordinates(t),this.geometryFunction_(this.sketchCoords_,e,i)}1===t.length&&this.abortDrawing(),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var e=this.sketchCoords_,i=t.getGeometry(),n=this.getMap().getView().getProjection();this.mode_===Z.LINE_STRING?(e.pop(),this.geometryFunction_(e,i,n)):this.mode_===Z.POLYGON&&(e[0].pop(),this.geometryFunction_(e,i,n),e=i.getCoordinates()),this.type_===r["a"].MULTI_POINT?t.setGeometry(new k([e])):this.type_===r["a"].MULTI_LINE_STRING?t.setGeometry(new T([e])):this.type_===r["a"].MULTI_POLYGON&&t.setGeometry(new Y([e])),this.dispatchEvent(new $(Q.DRAWEND,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),t},e.prototype.abortDrawing=function(){var t=this.abortDrawing_();t&&this.dispatchEvent(new $(Q.DRAWABORT,t))},e.prototype.appendCoordinates=function(t){var e,i=this.mode_,r=!this.sketchFeature_;if(r&&this.startDrawing_(t[0]),i===Z.LINE_STRING||i===Z.CIRCLE)e=this.sketchCoords_;else{if(i!==Z.POLYGON)return;e=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}r&&e.shift(),e.pop();for(var n=0;n<t.length;n++)this.addToDrawing_(t[n]);var o=t[t.length-1];this.addToDrawing_(o),this.modifyDrawing_(o)},e.prototype.extend=function(t){var e=t.getGeometry(),i=e;this.sketchFeature_=t,this.sketchCoords_=i.getCoordinates();var r=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=r.slice(),this.sketchCoords_.push(r.slice()),this.sketchPoint_=new d["a"](new I["a"](r)),this.updateSketchFeatures_(),this.dispatchEvent(new $(Q.DRAWSTART,this.sketchFeature_))},e.prototype.updateSketchFeatures_=function(){var t=[];this.sketchFeature_&&t.push(this.sketchFeature_),this.sketchLine_&&t.push(this.sketchLine_),this.sketchPoint_&&t.push(this.sketchPoint_);var e=this.overlay_.getSource();e.clear(!0),e.addFeatures(t)},e.prototype.updateState_=function(){var t=this.getMap(),e=this.getActive();t&&e||this.abortDrawing(),this.overlay_.setMap(e?t:null)},e}(U["b"]);function et(){var t=Object(q["b"])();return function(e,i){return t[e.getGeometry().getType()]}}function it(t){switch(t){case r["a"].POINT:case r["a"].MULTI_POINT:return Z.POINT;case r["a"].LINE_STRING:case r["a"].MULTI_LINE_STRING:return Z.LINE_STRING;case r["a"].POLYGON:case r["a"].MULTI_POLYGON:return Z.POLYGON;case r["a"].CIRCLE:return Z.CIRCLE;default:throw new Error("Invalid type: "+t)}}e["a"]=tt},addb:function(t,e,i){var r=i("4dae"),n=Math.floor,o=function(t,e){var i=t.length,h=n(i/2);return i<8?s(t,e):a(t,o(r(t,0,h),e),o(r(t,h),e),e)},s=function(t,e){var i,r,n=t.length,o=1;while(o<n){r=o,i=t[o];while(r&&e(t[r-1],i)>0)t[r]=t[--r];r!==o++&&(t[r]=i)}return t},a=function(t,e,i,r){var n=e.length,o=i.length,s=0,a=0;while(s<n||a<o)t[s+a]=s<n&&a<o?r(e[s],i[a])<=0?e[s++]:i[a++]:s<n?e[s++]:i[a++];return t};t.exports=o},b1a2:function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return a}));var r=i("9f5e"),n=i("7fc9");function o(t,e,i,o,s,a,h){var l,c,u=(i-e)/o;if(1===u)l=e;else if(2===u)l=e,c=s;else if(0!==u){for(var f=t[e],d=t[e+1],p=0,g=[0],_=e+o;_<i;_+=o){var y=t[_],v=t[_+1];p+=Math.sqrt((y-f)*(y-f)+(v-d)*(v-d)),g.push(p),f=y,d=v}var m=s*p,x=Object(r["a"])(g,m);x<0?(c=(m-g[-x-2])/(g[-x-1]-g[-x-2]),l=e+(-x-2)*o):l=e+x*o}var O=h>1?h:2,b=a||new Array(O);for(_=0;_<O;++_)b[_]=void 0===l?NaN:void 0===c?t[l+_]:Object(n["c"])(t[l+_],t[l+o+_],c);return b}function s(t,e,i,r,o,s){if(i==e)return null;var a;if(o<t[e+r-1])return s?(a=t.slice(e,e+r),a[r-1]=o,a):null;if(t[i-1]<o)return s?(a=t.slice(i-r,i),a[r-1]=o,a):null;if(o==t[e+r-1])return t.slice(e,e+r);var h=e/r,l=i/r;while(h<l){var c=h+l>>1;o<t[(c+1)*r-1]?l=c:h=c+1}var u=t[h*r-1];if(o==u)return t.slice((h-1)*r,(h-1)*r+r);var f=t[(h+1)*r-1],d=(o-u)/(f-u);a=[];for(var p=0;p<r-1;++p)a.push(Object(n["c"])(t[(h-1)*r+p],t[h*r+p],d));return a.push(o),a}function a(t,e,i,r,n,o,a){if(a)return s(t,e,i[i.length-1],r,n,o);var h;if(n<t[r-1])return o?(h=t.slice(0,r),h[r-1]=n,h):null;if(t[t.length-1]<n)return o?(h=t.slice(t.length-r),h[r-1]=n,h):null;for(var l=0,c=i.length;l<c;++l){var u=i[l];if(e!=u){if(n<t[e+r-1])return null;if(n<=t[u-1])return s(t,e,u,r,n,!1);e=u}}return null}},b2fc:function(t,e,i){"use strict";var r=i("183a"),n=i("01d4"),o=i("f623"),s=i("4105"),a=i("4a7d"),h=i("a43f"),l=i("57cb"),c=i("0af5"),u=i("a568"),f=i("5bc3"),d=i("256f"),p=i("1300"),g=i("38f3"),_=i("1e8d"),y=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();function v(t){return t.feature?t.feature:t.element?t.element:void 0}var m=[],x=function(t){function e(e){var i=this,r=e||{},n=r;return n.handleDownEvent||(n.handleDownEvent=l["b"]),n.stopDown||(n.stopDown=l["a"]),i=t.call(this,n)||this,i.source_=r.source?r.source:null,i.vertex_=void 0===r.vertex||r.vertex,i.edge_=void 0===r.edge||r.edge,i.features_=r.features?r.features:null,i.featuresListenerKeys_=[],i.featureChangeListenerKeys_={},i.indexedFeaturesExtents_={},i.pendingFeatures_={},i.pixelTolerance_=void 0!==r.pixelTolerance?r.pixelTolerance:10,i.rBush_=new a["a"],i.SEGMENT_WRITERS_={Point:i.writePointGeometry_.bind(i),LineString:i.writeLineStringGeometry_.bind(i),LinearRing:i.writeLineStringGeometry_.bind(i),Polygon:i.writePolygonGeometry_.bind(i),MultiPoint:i.writeMultiPointGeometry_.bind(i),MultiLineString:i.writeMultiLineStringGeometry_.bind(i),MultiPolygon:i.writeMultiPolygonGeometry_.bind(i),GeometryCollection:i.writeGeometryCollectionGeometry_.bind(i),Circle:i.writeCircleGeometry_.bind(i)},i}return y(e,t),e.prototype.addFeature=function(t,e){var i=void 0===e||e,r=Object(p["c"])(t),o=t.getGeometry();if(o){var s=this.SEGMENT_WRITERS_[o.getType()];s&&(this.indexedFeaturesExtents_[r]=o.getExtent(Object(c["j"])()),s(t,o))}i&&(this.featureChangeListenerKeys_[r]=Object(_["a"])(t,n["a"].CHANGE,this.handleFeatureChange_,this))},e.prototype.forEachFeatureAdd_=function(t){this.addFeature(t)},e.prototype.forEachFeatureRemove_=function(t){this.removeFeature(t)},e.prototype.getFeatures_=function(){var t;return this.features_?t=this.features_:this.source_&&(t=this.source_.getFeatures()),t},e.prototype.handleEvent=function(e){var i=this.snapTo(e.pixel,e.coordinate,e.map);return i.snapped&&(e.coordinate=i.vertex.slice(0,2),e.pixel=i.vertexPixel),t.prototype.handleEvent.call(this,e)},e.prototype.handleFeatureAdd_=function(t){var e=v(t);this.addFeature(e)},e.prototype.handleFeatureRemove_=function(t){var e=v(t);this.removeFeature(e)},e.prototype.handleFeatureChange_=function(t){var e=t.target;if(this.handlingDownUpSequence){var i=Object(p["c"])(e);i in this.pendingFeatures_||(this.pendingFeatures_[i]=e)}else this.updateFeature_(e)},e.prototype.handleUpEvent=function(t){var e=Object(g["c"])(this.pendingFeatures_);return e.length&&(e.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},e.prototype.removeFeature=function(t,e){var i=void 0===e||e,r=Object(p["c"])(t),n=this.indexedFeaturesExtents_[r];if(n){var o=this.rBush_,s=[];o.forEachInExtent(n,(function(e){t===e.feature&&s.push(e)}));for(var a=s.length-1;a>=0;--a)o.remove(s[a])}i&&(Object(_["c"])(this.featureChangeListenerKeys_[r]),delete this.featureChangeListenerKeys_[r])},e.prototype.setMap=function(e){var i=this.getMap(),n=this.featuresListenerKeys_,o=this.getFeatures_();i&&(n.forEach(_["c"]),n.length=0,o.forEach(this.forEachFeatureRemove_.bind(this))),t.prototype.setMap.call(this,e),e&&(this.features_?n.push(Object(_["a"])(this.features_,r["a"].ADD,this.handleFeatureAdd_,this),Object(_["a"])(this.features_,r["a"].REMOVE,this.handleFeatureRemove_,this)):this.source_&&n.push(Object(_["a"])(this.source_,h["a"].ADDFEATURE,this.handleFeatureAdd_,this),Object(_["a"])(this.source_,h["a"].REMOVEFEATURE,this.handleFeatureRemove_,this)),o.forEach(this.forEachFeatureAdd_.bind(this)))},e.prototype.snapTo=function(t,e,i){var r=i.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),n=i.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_]),s=Object(c["b"])([r,n]),a=this.rBush_.getInExtent(s);this.vertex_&&!this.edge_&&(a=a.filter((function(t){return t.feature.getGeometry().getType()!==o["a"].CIRCLE})));var h=!1,l=null,f=null;if(0===a.length)return{snapped:h,vertex:l,vertexPixel:f};for(var p,g=i.getView().getProjection(),_=Object(d["d"])(e,g),y=1/0,v=0;v<a.length;++v){var x=a[v];m[0]=Object(d["d"])(x.segment[0],g),m[1]=Object(d["d"])(x.segment[1],g);var O=Object(u["j"])(_,m);O<y&&(p=x,y=O)}var b=p.segment;if(this.vertex_&&!this.edge_){var S=i.getPixelFromCoordinate(b[0]),C=i.getPixelFromCoordinate(b[1]),w=Object(u["i"])(t,S),E=Object(u["i"])(t,C),T=Math.sqrt(Math.min(w,E));T<=this.pixelTolerance_&&(h=!0,l=w>E?b[1]:b[0],f=i.getPixelFromCoordinate(l))}else if(this.edge_){var I=p.feature.getGeometry().getType()===o["a"].CIRCLE;if(I){var R=p.feature.getGeometry(),L=Object(d["k"])();L&&(R=R.clone().transform(L,g)),l=Object(d["l"])(Object(u["b"])(_,R),g)}else m[0]=Object(d["d"])(b[0],g),m[1]=Object(d["d"])(b[1],g),l=Object(d["l"])(Object(u["c"])(_,m),g);if(f=i.getPixelFromCoordinate(l),Object(u["d"])(t,f)<=this.pixelTolerance_&&(h=!0,this.vertex_&&!I)){S=i.getPixelFromCoordinate(b[0]),C=i.getPixelFromCoordinate(b[1]),w=Object(u["i"])(f,S),E=Object(u["i"])(f,C),T=Math.sqrt(Math.min(w,E));T<=this.pixelTolerance_&&(l=w>E?b[1]:b[0],f=i.getPixelFromCoordinate(l))}}return h&&(f=[Math.round(f[0]),Math.round(f[1])]),{snapped:h,vertex:l,vertexPixel:f}},e.prototype.updateFeature_=function(t){this.removeFeature(t,!1),this.addFeature(t,!1)},e.prototype.writeCircleGeometry_=function(t,e){var i=this.getMap().getView().getProjection(),r=e,n=Object(d["k"])();n&&(r=r.clone().transform(n,i));var o=Object(f["b"])(r);n&&o.transform(i,n);for(var s=o.getCoordinates()[0],a=0,h=s.length-1;a<h;++a){var l=s.slice(a,a+2),u={feature:t,segment:l};this.rBush_.insert(Object(c["b"])(l),u)}},e.prototype.writeGeometryCollectionGeometry_=function(t,e){for(var i=e.getGeometriesArray(),r=0;r<i.length;++r){var n=this.SEGMENT_WRITERS_[i[r].getType()];n&&n(t,i[r])}},e.prototype.writeLineStringGeometry_=function(t,e){for(var i=e.getCoordinates(),r=0,n=i.length-1;r<n;++r){var o=i.slice(r,r+2),s={feature:t,segment:o};this.rBush_.insert(Object(c["b"])(o),s)}},e.prototype.writeMultiLineStringGeometry_=function(t,e){for(var i=e.getCoordinates(),r=0,n=i.length;r<n;++r)for(var o=i[r],s=0,a=o.length-1;s<a;++s){var h=o.slice(s,s+2),l={feature:t,segment:h};this.rBush_.insert(Object(c["b"])(h),l)}},e.prototype.writeMultiPointGeometry_=function(t,e){for(var i=e.getCoordinates(),r=0,n=i.length;r<n;++r){var o=i[r],s={feature:t,segment:[o,o]};this.rBush_.insert(e.getExtent(),s)}},e.prototype.writeMultiPolygonGeometry_=function(t,e){for(var i=e.getCoordinates(),r=0,n=i.length;r<n;++r)for(var o=i[r],s=0,a=o.length;s<a;++s)for(var h=o[s],l=0,u=h.length-1;l<u;++l){var f=h.slice(l,l+2),d={feature:t,segment:f};this.rBush_.insert(Object(c["b"])(f),d)}},e.prototype.writePointGeometry_=function(t,e){var i=e.getCoordinates(),r={feature:t,segment:[i,i]};this.rBush_.insert(e.getExtent(),r)},e.prototype.writePolygonGeometry_=function(t,e){for(var i=e.getCoordinates(),r=0,n=i.length;r<n;++r)for(var o=i[r],s=0,a=o.length-1;s<a;++s){var h=o.slice(s,s+2),l={feature:t,segment:h};this.rBush_.insert(Object(c["b"])(h),l)}},e}(s["b"]);e["a"]=x},c807:function(t,e,i){"use strict";var r=i("e300"),n=i("183a"),o=i("cef7"),s=i("01d4"),a=i("4cdf"),h=i("f623"),l=i("0b2d"),c=i("f403"),u=i("4105"),f=i("4a7d"),d=i("a43f"),p=i("3e6b"),g=i("5831"),_=i("06f8"),y=i("0af5"),v=i("a568"),m=i("6c77"),x=i("9f5e"),O=i("5bc3"),b=i("256f"),S=i("1300"),C=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),w=0,E=1,T=[0,0,0,0],I=[],R={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"},L=function(t){function e(e,i,r){var n=t.call(this,e)||this;return n.features=i,n.mapBrowserEvent=r,n}return C(e,t),e}(o["a"]),F=function(t){function e(e){var i,o=t.call(this,e)||this;if(o.on,o.once,o.un,o.boundHandleFeatureChange_=o.handleFeatureChange_.bind(o),o.condition_=e.condition?e.condition:_["k"],o.defaultDeleteCondition_=function(t){return Object(_["b"])(t)&&Object(_["m"])(t)},o.deleteCondition_=e.deleteCondition?e.deleteCondition:o.defaultDeleteCondition_,o.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:_["d"],o.vertexFeature_=null,o.vertexSegments_=null,o.lastPixel_=[0,0],o.ignoreNextSingleClick_=!1,o.featuresBeingModified_=null,o.rBush_=new f["a"],o.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,o.snappedToVertex_=!1,o.changingFeature_=!1,o.dragSegments_=[],o.overlay_=new p["a"]({source:new g["a"]({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:D(),updateWhileAnimating:!0,updateWhileInteracting:!0}),o.SEGMENT_WRITERS_={Point:o.writePointGeometry_.bind(o),LineString:o.writeLineStringGeometry_.bind(o),LinearRing:o.writeLineStringGeometry_.bind(o),Polygon:o.writePolygonGeometry_.bind(o),MultiPoint:o.writeMultiPointGeometry_.bind(o),MultiLineString:o.writeMultiLineStringGeometry_.bind(o),MultiPolygon:o.writeMultiPolygonGeometry_.bind(o),Circle:o.writeCircleGeometry_.bind(o),GeometryCollection:o.writeGeometryCollectionGeometry_.bind(o)},o.source_=null,o.hitDetection_=null,e.features?i=e.features:e.source&&(o.source_=e.source,i=new r["a"](o.source_.getFeatures()),o.source_.addEventListener(d["a"].ADDFEATURE,o.handleSourceAdd_.bind(o)),o.source_.addEventListener(d["a"].REMOVEFEATURE,o.handleSourceRemove_.bind(o))),!i)throw new Error("The modify interaction requires features, a source or a layer");return e.hitDetection&&(o.hitDetection_=e.hitDetection),o.features_=i,o.features_.forEach(o.addFeature_.bind(o)),o.features_.addEventListener(n["a"].ADD,o.handleFeatureAdd_.bind(o)),o.features_.addEventListener(n["a"].REMOVE,o.handleFeatureRemove_.bind(o)),o.lastPointerEvent_=null,o.delta_=[0,0],o.snapToPointer_=void 0===e.snapToPointer?!o.hitDetection_:e.snapToPointer,o}return C(e,t),e.prototype.addFeature_=function(t){var e=t.getGeometry();if(e){var i=this.SEGMENT_WRITERS_[e.getType()];i&&i(t,e)}var r=this.getMap();r&&r.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,r),t.addEventListener(s["a"].CHANGE,this.boundHandleFeatureChange_)},e.prototype.willModifyFeatures_=function(t,e){if(!this.featuresBeingModified_){this.featuresBeingModified_=new r["a"];for(var i=this.featuresBeingModified_.getArray(),n=0,o=e.length;n<o;++n)for(var s=e[n],a=0,h=s.length;a<h;++a){var l=s[a].feature;l&&-1===i.indexOf(l)&&this.featuresBeingModified_.push(l)}0===this.featuresBeingModified_.getLength()?this.featuresBeingModified_=null:this.dispatchEvent(new L(R.MODIFYSTART,this.featuresBeingModified_,t))}},e.prototype.removeFeature_=function(t){this.removeFeatureSegmentData_(t),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.removeEventListener(s["a"].CHANGE,this.boundHandleFeatureChange_)},e.prototype.removeFeatureSegmentData_=function(t){var e=this.rBush_,i=[];e.forEach((function(e){t===e.feature&&i.push(e)}));for(var r=i.length-1;r>=0;--r){for(var n=i[r],o=this.dragSegments_.length-1;o>=0;--o)this.dragSegments_[o][0]===n&&this.dragSegments_.splice(o,1);e.remove(n)}},e.prototype.setActive=function(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.prototype.setActive.call(this,e)},e.prototype.setMap=function(e){this.overlay_.setMap(e),t.prototype.setMap.call(this,e)},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleSourceAdd_=function(t){t.feature&&this.features_.push(t.feature)},e.prototype.handleSourceRemove_=function(t){t.feature&&this.features_.remove(t.feature)},e.prototype.handleFeatureAdd_=function(t){this.addFeature_(t.element)},e.prototype.handleFeatureChange_=function(t){if(!this.changingFeature_){var e=t.target;this.removeFeature_(e),this.addFeature_(e)}},e.prototype.handleFeatureRemove_=function(t){var e=t.element;this.removeFeature_(e)},e.prototype.writePointGeometry_=function(t,e){var i=e.getCoordinates(),r={feature:t,geometry:e,segment:[i,i]};this.rBush_.insert(e.getExtent(),r)},e.prototype.writeMultiPointGeometry_=function(t,e){for(var i=e.getCoordinates(),r=0,n=i.length;r<n;++r){var o=i[r],s={feature:t,geometry:e,depth:[r],index:r,segment:[o,o]};this.rBush_.insert(e.getExtent(),s)}},e.prototype.writeLineStringGeometry_=function(t,e){for(var i=e.getCoordinates(),r=0,n=i.length-1;r<n;++r){var o=i.slice(r,r+2),s={feature:t,geometry:e,index:r,segment:o};this.rBush_.insert(Object(y["b"])(o),s)}},e.prototype.writeMultiLineStringGeometry_=function(t,e){for(var i=e.getCoordinates(),r=0,n=i.length;r<n;++r)for(var o=i[r],s=0,a=o.length-1;s<a;++s){var h=o.slice(s,s+2),l={feature:t,geometry:e,depth:[r],index:s,segment:h};this.rBush_.insert(Object(y["b"])(h),l)}},e.prototype.writePolygonGeometry_=function(t,e){for(var i=e.getCoordinates(),r=0,n=i.length;r<n;++r)for(var o=i[r],s=0,a=o.length-1;s<a;++s){var h=o.slice(s,s+2),l={feature:t,geometry:e,depth:[r],index:s,segment:h};this.rBush_.insert(Object(y["b"])(h),l)}},e.prototype.writeMultiPolygonGeometry_=function(t,e){for(var i=e.getCoordinates(),r=0,n=i.length;r<n;++r)for(var o=i[r],s=0,a=o.length;s<a;++s)for(var h=o[s],l=0,c=h.length-1;l<c;++l){var u=h.slice(l,l+2),f={feature:t,geometry:e,depth:[s,r],index:l,segment:u};this.rBush_.insert(Object(y["b"])(u),f)}},e.prototype.writeCircleGeometry_=function(t,e){var i=e.getCenter(),r={feature:t,geometry:e,index:w,segment:[i,i]},n={feature:t,geometry:e,index:E,segment:[i,i]},o=[r,n];r.featureSegments=o,n.featureSegments=o,this.rBush_.insert(Object(y["m"])(i),r);var s=e,a=Object(b["k"])();if(a&&this.getMap()){var h=this.getMap().getView().getProjection();s=s.clone().transform(a,h),s=Object(O["b"])(s).transform(h,a)}this.rBush_.insert(s.getExtent(),n)},e.prototype.writeGeometryCollectionGeometry_=function(t,e){for(var i=e.getGeometriesArray(),r=0;r<i.length;++r){var n=i[r],o=this.SEGMENT_WRITERS_[n.getType()];o(t,n)}},e.prototype.createOrUpdateVertexFeature_=function(t,e,i){var r=this.vertexFeature_;if(r){var n=r.getGeometry();n.setCoordinates(t)}else r=new a["a"](new c["a"](t)),this.vertexFeature_=r,this.overlay_.getSource().addFeature(r);return r.set("features",e),r.set("geometries",i),r},e.prototype.handleEvent=function(e){return!e.originalEvent||(this.lastPointerEvent_=e,e.map.getView().getInteracting()||e.type!=l["a"].POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),this.vertexFeature_&&this.deleteCondition_(e)&&(i=!(e.type!=l["a"].SINGLECLICK||!this.ignoreNextSingleClick_)||this.removePoint()),e.type==l["a"].SINGLECLICK&&(this.ignoreNextSingleClick_=!1),t.prototype.handleEvent.call(this,e)&&!i);var i},e.prototype.handleDragEvent=function(t){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(t,this.dragSegments_);for(var e=[t.coordinate[0]+this.delta_[0],t.coordinate[1]+this.delta_[1]],i=[],r=[],n=0,o=this.dragSegments_.length;n<o;++n){var s=this.dragSegments_[n],a=s[0],l=a.feature;-1===i.indexOf(l)&&i.push(l);var c=a.geometry;-1===r.indexOf(c)&&r.push(c);var u=a.depth,f=void 0,d=a.segment,p=s[1];while(e.length<c.getStride())e.push(d[p][e.length]);switch(c.getType()){case h["a"].POINT:f=e,d[0]=e,d[1]=e;break;case h["a"].MULTI_POINT:f=c.getCoordinates(),f[a.index]=e,d[0]=e,d[1]=e;break;case h["a"].LINE_STRING:f=c.getCoordinates(),f[a.index+p]=e,d[p]=e;break;case h["a"].MULTI_LINE_STRING:f=c.getCoordinates(),f[u[0]][a.index+p]=e,d[p]=e;break;case h["a"].POLYGON:f=c.getCoordinates(),f[u[0]][a.index+p]=e,d[p]=e;break;case h["a"].MULTI_POLYGON:f=c.getCoordinates(),f[u[1]][u[0]][a.index+p]=e,d[p]=e;break;case h["a"].CIRCLE:if(d[0]=e,d[1]=e,a.index===w)this.changingFeature_=!0,c.setCenter(e),this.changingFeature_=!1;else{this.changingFeature_=!0;var g=t.map.getView().getProjection(),_=Object(v["d"])(Object(b["d"])(c.getCenter(),g),Object(b["d"])(e,g)),y=Object(b["k"])();if(y){var m=c.clone().transform(y,g);m.setRadius(_),_=m.transform(g,y).getRadius()}c.setRadius(_),this.changingFeature_=!1}break;default:}f&&this.setGeometryCoordinates_(c,f)}this.createOrUpdateVertexFeature_(e,i,r)},e.prototype.handleDownEvent=function(t){if(!this.condition_(t))return!1;var e=t.coordinate;this.handlePointerAtPixel_(t.pixel,t.map,e),this.dragSegments_.length=0,this.featuresBeingModified_=null;var i=this.vertexFeature_;if(i){var r=t.map.getView().getProjection(),n=[],o=i.getGeometry().getCoordinates(),s=Object(y["b"])([o]),a=this.rBush_.getInExtent(s),l={};a.sort(k);for(var c=0,u=a.length;c<u;++c){var f=a[c],d=f.segment,p=Object(S["c"])(f.geometry),g=f.depth;if(g&&(p+="-"+g.join("-")),l[p]||(l[p]=new Array(2)),f.geometry.getType()!==h["a"].CIRCLE||f.index!==E)if(!Object(v["e"])(d[0],o)||l[p][0])if(!Object(v["e"])(d[1],o)||l[p][1])Object(S["c"])(d)in this.vertexSegments_&&!l[p][0]&&!l[p][1]&&this.insertVertexCondition_(t)&&n.push(f);else{if((f.geometry.getType()===h["a"].LINE_STRING||f.geometry.getType()===h["a"].MULTI_LINE_STRING)&&l[p][0]&&0===l[p][0].index)continue;this.dragSegments_.push([f,1]),l[p][1]=f}else this.dragSegments_.push([f,0]),l[p][0]=f;else{var _=j(e,f,r);Object(v["e"])(_,o)&&!l[p][0]&&(this.dragSegments_.push([f,0]),l[p][0]=f)}}n.length&&this.willModifyFeatures_(t,[n]);for(var m=n.length-1;m>=0;--m)this.insertVertex_(n[m],o)}return!!this.vertexFeature_},e.prototype.handleUpEvent=function(t){for(var e=this.dragSegments_.length-1;e>=0;--e){var i=this.dragSegments_[e][0],r=i.geometry;if(r.getType()===h["a"].CIRCLE){var n=r.getCenter(),o=i.featureSegments[0],s=i.featureSegments[1];o.segment[0]=n,o.segment[1]=n,s.segment[0]=n,s.segment[1]=n,this.rBush_.update(Object(y["m"])(n),o);var a=r,l=Object(b["k"])();if(l){var c=t.map.getView().getProjection();a=a.clone().transform(l,c),a=Object(O["b"])(a).transform(c,l)}this.rBush_.update(a.getExtent(),s)}else this.rBush_.update(Object(y["b"])(i.segment),i)}return this.featuresBeingModified_&&(this.dispatchEvent(new L(R.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null),!1},e.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map,t.coordinate)},e.prototype.handlePointerAtPixel_=function(t,e,i){var r,n,o=this,s=i||e.getCoordinateFromPixel(t),a=e.getView().getProjection(),l=function(t,e){return P(s,t,a)-P(s,e,a)};if(this.hitDetection_){var c="object"===typeof this.hitDetection_?function(t){return t===o.hitDetection_}:void 0;e.forEachFeatureAtPixel(t,(function(t,e,i){if(i=i||t.getGeometry(),i.getType()===h["a"].POINT&&Object(x["f"])(o.features_.getArray(),t)){n=i;var s=i.getFlatCoordinates().slice(0,2);r=[{feature:t,geometry:i,segment:[s,s]}]}return!0}),{layerFilter:c})}if(!r){var u=Object(b["e"])(Object(y["m"])(s,T),a),f=e.getView().getResolution()*this.pixelTolerance_,d=Object(b["m"])(Object(y["c"])(u,f,T),a);r=this.rBush_.getInExtent(d)}if(r&&r.length>0){var p=r.sort(l)[0],g=p.segment,_=j(s,p,a),m=e.getPixelFromCoordinate(_),O=Object(v["d"])(t,m);if(n||O<=this.pixelTolerance_){var C={};if(C[Object(S["c"])(g)]=!0,this.snapToPointer_||(this.delta_[0]=_[0]-s[0],this.delta_[1]=_[1]-s[1]),p.geometry.getType()===h["a"].CIRCLE&&p.index===E)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(_,[p.feature],[p.geometry]);else{var w=e.getPixelFromCoordinate(g[0]),I=e.getPixelFromCoordinate(g[1]),R=Object(v["i"])(m,w),L=Object(v["i"])(m,I);O=Math.sqrt(Math.min(R,L)),this.snappedToVertex_=O<=this.pixelTolerance_,this.snappedToVertex_&&(_=R>L?g[1]:g[0]),this.createOrUpdateVertexFeature_(_,[p.feature],[p.geometry]);var F={};F[Object(S["c"])(p.geometry)]=!0;for(var k=1,D=r.length;k<D;++k){var A=r[k].segment;if(!(Object(v["e"])(g[0],A[0])&&Object(v["e"])(g[1],A[1])||Object(v["e"])(g[0],A[1])&&Object(v["e"])(g[1],A[0])))break;var M=Object(S["c"])(r[k].geometry);M in F||(F[M]=!0,C[Object(S["c"])(A)]=!0)}}return void(this.vertexSegments_=C)}}this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)},e.prototype.insertVertex_=function(t,e){var i,r=t.segment,n=t.feature,o=t.geometry,s=t.depth,a=t.index;while(e.length<o.getStride())e.push(0);switch(o.getType()){case h["a"].MULTI_LINE_STRING:i=o.getCoordinates(),i[s[0]].splice(a+1,0,e);break;case h["a"].POLYGON:i=o.getCoordinates(),i[s[0]].splice(a+1,0,e);break;case h["a"].MULTI_POLYGON:i=o.getCoordinates(),i[s[1]][s[0]].splice(a+1,0,e);break;case h["a"].LINE_STRING:i=o.getCoordinates(),i.splice(a+1,0,e);break;default:return}this.setGeometryCoordinates_(o,i);var l=this.rBush_;l.remove(t),this.updateSegmentIndices_(o,a,s,1);var c={segment:[r[0],e],feature:n,geometry:o,depth:s,index:a};l.insert(Object(y["b"])(c.segment),c),this.dragSegments_.push([c,1]);var u={segment:[e,r[1]],feature:n,geometry:o,depth:s,index:a+1};l.insert(Object(y["b"])(u.segment),u),this.dragSegments_.push([u,0]),this.ignoreNextSingleClick_=!0},e.prototype.removePoint=function(){if(this.lastPointerEvent_&&this.lastPointerEvent_.type!=l["a"].POINTERDRAG){var t=this.lastPointerEvent_;this.willModifyFeatures_(t,this.dragSegments_);var e=this.removeVertex_();return this.dispatchEvent(new L(R.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null,e}return!1},e.prototype.removeVertex_=function(){var t,e,i,r,n,o,s,a,l,c,u,f=this.dragSegments_,d={},p=!1;for(n=f.length-1;n>=0;--n)i=f[n],c=i[0],u=Object(S["c"])(c.feature),c.depth&&(u+="-"+c.depth.join("-")),u in d||(d[u]={}),0===i[1]?(d[u].right=c,d[u].index=c.index):1==i[1]&&(d[u].left=c,d[u].index=c.index+1);for(u in d){switch(l=d[u].right,s=d[u].left,o=d[u].index,a=o-1,c=void 0!==s?s:l,a<0&&(a=0),r=c.geometry,e=r.getCoordinates(),t=e,p=!1,r.getType()){case h["a"].MULTI_LINE_STRING:e[c.depth[0]].length>2&&(e[c.depth[0]].splice(o,1),p=!0);break;case h["a"].LINE_STRING:e.length>2&&(e.splice(o,1),p=!0);break;case h["a"].MULTI_POLYGON:t=t[c.depth[1]];case h["a"].POLYGON:t=t[c.depth[0]],t.length>4&&(o==t.length-1&&(o=0),t.splice(o,1),p=!0,0===o&&(t.pop(),t.push(t[0]),a=t.length-1));break;default:}if(p){this.setGeometryCoordinates_(r,e);var g=[];if(void 0!==s&&(this.rBush_.remove(s),g.push(s.segment[0])),void 0!==l&&(this.rBush_.remove(l),g.push(l.segment[1])),void 0!==s&&void 0!==l){var _={depth:c.depth,feature:c.feature,geometry:c.geometry,index:a,segment:g};this.rBush_.insert(Object(y["b"])(_.segment),_)}this.updateSegmentIndices_(r,o,c.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),f.length=0}}return p},e.prototype.setGeometryCoordinates_=function(t,e){this.changingFeature_=!0,t.setCoordinates(e),this.changingFeature_=!1},e.prototype.updateSegmentIndices_=function(t,e,i,r){this.rBush_.forEachInExtent(t.getExtent(),(function(n){n.geometry===t&&(void 0===i||void 0===n.depth||Object(x["b"])(n.depth,i))&&n.index>e&&(n.index+=r)}))},e}(u["b"]);function k(t,e){return t.index-e.index}function P(t,e,i){var r=e.geometry;if(r.getType()===h["a"].CIRCLE){var n=r;if(e.index===E){var o=Object(b["k"])();o&&(n=n.clone().transform(o,i));var s=Object(v["i"])(n.getCenter(),Object(b["d"])(t,i)),a=Math.sqrt(s)-n.getRadius();return a*a}}var l=Object(b["d"])(t,i);return I[0]=Object(b["d"])(e.segment[0],i),I[1]=Object(b["d"])(e.segment[1],i),Object(v["j"])(l,I)}function j(t,e,i){var r=e.geometry;if(r.getType()===h["a"].CIRCLE&&e.index===E){var n=r,o=Object(b["k"])();return o&&(n=n.clone().transform(o,i)),Object(b["l"])(n.getClosestPoint(Object(b["d"])(t,i)),i)}var s=Object(b["d"])(t,i);return I[0]=Object(b["d"])(e.segment[0],i),I[1]=Object(b["d"])(e.segment[1],i),Object(b["l"])(Object(v["c"])(s,I),i)}function D(){var t=Object(m["b"])();return function(e,i){return t[h["a"].POINT]}}e["a"]=F},e901:function(t,e,i){"use strict";i("7574")},e98d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var r=i("5c38");function n(t){return Array.isArray(t)?Object(r["c"])(t):t}},e9c4:function(t,e,i){var r=i("23e7"),n=i("da84"),o=i("d066"),s=i("2ba4"),a=i("e330"),h=i("d039"),l=n.Array,c=o("JSON","stringify"),u=a(/./.exec),f=a("".charAt),d=a("".charCodeAt),p=a("".replace),g=a(1..toString),_=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,v=/^[\uDC00-\uDFFF]$/,m=function(t,e,i){var r=f(i,e-1),n=f(i,e+1);return u(y,t)&&!u(v,n)||u(v,t)&&!u(y,r)?"\\u"+g(d(t,0),16):t},x=h((function(){return'"\\udf06\\ud834"'!==c("\udf06\ud834")||'"\\udead"'!==c("\udead")}));c&&r({target:"JSON",stat:!0,forced:x},{stringify:function(t,e,i){for(var r=0,n=arguments.length,o=l(n);r<n;r++)o[r]=arguments[r];var a=s(c,null,o);return"string"==typeof a?p(a,_,m):a}})}}]);
|