chunk-8743374a.bcf4376f.js 135 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8743374a"],{"2a29":function(t,e,n){"use strict";n("3818")},3818:function(t,e,n){},"3a39":function(t,e,n){"use strict";n.d(e,"a",(function(){return it}));var i=n("e300"),o=n("4334"),r=n("0b2d"),a=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.delta_=i.delta?i.delta:1,n.duration_=void 0!==i.duration?i.duration:250,n}return a(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==r["a"].DBLCLICK){var n=t.originalEvent,i=t.map,a=t.coordinate,s=n.shiftKey?-this.delta_:this.delta_,l=i.getView();Object(o["c"])(l,s,a,this.duration_),n.preventDefault(),e=!0}return!e},e}(o["a"]),l=s,c=n("4105"),u=n("57cb"),h=n("06f8"),p=n("ca42"),d=n("a568"),_=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),f=function(t){function e(e){var n=t.call(this,{stopDown:u["a"]})||this,i=e||{};n.kinetic_=i.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1;var o=i.condition?i.condition:Object(h["a"])(h["j"],h["k"]);return n.condition_=i.onFocusOnly?Object(h["a"])(h["f"],o):o,n.noKinetic_=!1,n}return _(e,t),e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,n=Object(c["a"])(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var i=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],o=t.map,r=o.getView();Object(d["h"])(i,r.getResolution()),Object(d["g"])(i,r.getRotation()),r.adjustCenterInternal(i)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=e.length,t.originalEvent.preventDefault()},e.prototype.handleUpEvent=function(t){var e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var i=this.kinetic_.getDistance(),o=this.kinetic_.getAngle(),r=n.getCenterInternal(),a=e.getPixelFromCoordinateInternal(r),s=e.getCoordinateFromPixelInternal([a[0]-i*Math.cos(o),a[1]-i*Math.sin(o)]);n.animateInternal({center:n.getConstrainedCenter(s),duration:500,easing:p["b"]})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var e=t.map,n=e.getView();return this.lastCentroid=null,n.getAnimating()&&n.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(c["b"]),g=f,y=n("8cc5"),v=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),m=function(t){function e(e){var n=this,i=e||{};return n=t.call(this,{stopDown:u["a"]})||this,n.condition_=i.condition?i.condition:h["c"],n.lastAngle_=void 0,n.duration_=void 0!==i.duration?i.duration:250,n}return v(e,t),e.prototype.handleDragEvent=function(t){if(Object(h["h"])(t)){var e=t.map,n=e.getView();if(n.getConstraints().rotation!==y["c"]){var i=e.getSize(),o=t.pixel,r=Math.atan2(i[1]/2-o[1],o[0]-i[0]/2);if(void 0!==this.lastAngle_){var a=r-this.lastAngle_;n.adjustRotationInternal(-a)}this.lastAngle_=r}}},e.prototype.handleUpEvent=function(t){if(!Object(h["h"])(t))return!0;var e=t.map,n=e.getView();return n.endInteraction(this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!Object(h["h"])(t))return!1;if(Object(h["g"])(t)&&this.condition_(t)){var e=t.map;return e.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1},e}(c["b"]),b=m,O=n("cef7"),E=n("da5c"),T=n("5bc3"),C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),w=function(t){function e(e){var n=t.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.style.pointerEvents="auto",n.element_.className="ol-box "+e,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return C(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,n="px",i=this.element_.style;i.left=Math.min(t[0],e[0])+n,i.top=Math.min(t[1],e[1])+n,i.width=Math.abs(e[0]-t[0])+n,i.height=Math.abs(e[1]-t[1])+n},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]],i=n.map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new T["a"]([i])},e.prototype.getGeometry=function(){return this.geometry_},e}(E["a"]),R=w,j=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),x={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},P=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.coordinate=n,o.mapBrowserEvent=i,o}return j(e,t),e}(O["a"]),A=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var i=e||{};return n.box_=new R(i.className||"ol-dragbox"),n.minArea_=void 0!==i.minArea?i.minArea:64,i.onBoxEnd&&(n.onBoxEnd=i.onBoxEnd),n.startPixel_=null,n.condition_=i.condition?i.condition:h["g"],n.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:n.defaultBoxEndCondition,n}return j(e,t),e.prototype.defaultBoxEndCondition=function(t,e,n){var i=n[0]-e[0],o=n[1]-e[1];return i*i+o*o>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new P(x.BOXDRAG,t.coordinate,t))},e.prototype.handleUpEvent=function(t){this.box_.setMap(null);var e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new P(e?x.BOXEND:x.BOXCANCEL,t.coordinate,t)),!1},e.prototype.handleDownEvent=function(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new P(x.BOXSTART,t.coordinate,t)),!0)},e.prototype.onBoxEnd=function(t){},e}(c["b"]),I=A,S=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),L=function(t){function e(e){var n=this,i=e||{},o=i.condition?i.condition:h["l"];return n=t.call(this,{condition:o,className:i.className||"ol-dragzoom",minArea:i.minArea})||this,n.duration_=void 0!==i.duration?i.duration:200,n.out_=void 0!==i.out&&i.out,n}return S(e,t),e.prototype.onBoxEnd=function(t){var e=this.getMap(),n=e.getView(),i=this.getGeometry();if(this.out_){var o=n.rotatedExtentForGeometry(i),r=n.getResolutionForExtentInternal(o),a=n.getResolution()/r;i=i.clone(),i.scale(a*a)}n.fitInternal(i,{duration:this.duration_,easing:p["b"]})},e}(I),M=L,D=n("01d4"),F={LEFT:37,UP:38,RIGHT:39,DOWN:40},N=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),z=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.defaultCondition_=function(t){return Object(h["j"])(t)&&Object(h["n"])(t)},n.condition_=void 0!==i.condition?i.condition:n.defaultCondition_,n.duration_=void 0!==i.duration?i.duration:100,n.pixelDelta_=void 0!==i.pixelDelta?i.pixelDelta:128,n}return N(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==D["a"].KEYDOWN){var n=t.originalEvent,i=n.keyCode;if(this.condition_(t)&&(i==F.DOWN||i==F.LEFT||i==F.RIGHT||i==F.UP)){var r=t.map,a=r.getView(),s=a.getResolution()*this.pixelDelta_,l=0,c=0;i==F.DOWN?c=-s:i==F.LEFT?l=-s:i==F.RIGHT?l=s:c=s;var u=[l,c];Object(d["g"])(u,a.getRotation()),Object(o["b"])(a,u,this.duration_),n.preventDefault(),e=!0}}return!e},e}(o["a"]),G=z,k=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),K=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.condition_=i.condition?i.condition:h["n"],n.delta_=i.delta?i.delta:1,n.duration_=void 0!==i.duration?i.duration:100,n}return k(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==D["a"].KEYDOWN||t.type==D["a"].KEYPRESS){var n=t.originalEvent,i=n.charCode;if(this.condition_(t)&&(i=="+".charCodeAt(0)||i=="-".charCodeAt(0))){var r=t.map,a=i=="+".charCodeAt(0)?this.delta_:-this.delta_,s=r.getView();Object(o["c"])(s,a,void 0,this.duration_),n.preventDefault(),e=!0}}return!e},e}(o["a"]),Z=K,V=function(){function t(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return t.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},t.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},t.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;var n=e-3;while(n>0&&this.points_[n+2]>t)n-=3;var i=this.points_[e+2]-this.points_[n+2];if(i<1e3/60)return!1;var o=this.points_[e]-this.points_[n],r=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(r,o),this.initialVelocity_=Math.sqrt(o*o+r*r)/i,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}(),W=V,X=n("617d"),U=n("7fc9"),Y=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),H={TRACKPAD:"trackpad",WHEEL:"wheel"},B=function(t){function e(e){var n=this,i=e||{};n=t.call(this,i)||this,n.totalDelta_=0,n.lastDelta_=0,n.maxDelta_=void 0!==i.maxDelta?i.maxDelta:1,n.duration_=void 0!==i.duration?i.duration:250,n.timeout_=void 0!==i.timeout?i.timeout:80,n.useAnchor_=void 0===i.useAnchor||i.useAnchor,n.constrainResolution_=void 0!==i.constrainResolution&&i.constrainResolution;var o=i.condition?i.condition:h["d"];return n.condition_=i.onFocusOnly?Object(h["a"])(h["f"],o):o,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return Y(e,t),e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap().getView();t.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=t.type;if(e!==D["a"].WHEEL)return!0;var n,i=t.map,o=t.originalEvent;if(o.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==D["a"].WHEEL&&(n=o.deltaY,X["b"]&&o.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=X["a"]),o.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)),0===n)return!1;this.lastDelta_=n;var r=Date.now();void 0===this.startTime_&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?H.TRACKPAD:H.WHEEL);var a=i.getView();if(this.mode_===H.TRACKPAD&&!a.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(a.getAnimating()&&a.cancelAnimations(),a.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),a.adjustZoom(-n/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=r,!1;this.totalDelta_+=n;var s=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),s),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var n=-Object(U["a"])(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),Object(o["c"])(e,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(o["a"]),q=B,Q=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),J=function(t){function e(e){var n=this,i=e||{},o=i;return o.stopDown||(o.stopDown=u["a"]),n=t.call(this,o)||this,n.anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==i.threshold?i.threshold:.3,n.duration_=void 0!==i.duration?i.duration:250,n}return Q(e,t),e.prototype.handleDragEvent=function(t){var e=0,n=this.targetPointers[0],i=this.targetPointers[1],o=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){var r=o-this.lastAngle_;this.rotationDelta_+=r,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=r}this.lastAngle_=o;var a=t.map,s=a.getView();if(s.getConstraints().rotation!==y["c"]){var l=a.getViewport().getBoundingClientRect(),u=Object(c["a"])(this.targetPointers);u[0]-=l.left,u[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(u),this.rotating_&&(a.render(),s.adjustRotationInternal(e,this.anchor_))}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map,n=e.getView();return n.endInteraction(this.duration_),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(c["b"]),$=J,tt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),et=function(t){function e(e){var n=this,i=e||{},o=i;return o.stopDown||(o.stopDown=u["a"]),n=t.call(this,o)||this,n.anchor_=null,n.duration_=void 0!==i.duration?i.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return tt(e,t),e.prototype.handleDragEvent=function(t){var e=1,n=this.targetPointers[0],i=this.targetPointers[1],o=n.clientX-i.clientX,r=n.clientY-i.clientY,a=Math.sqrt(o*o+r*r);void 0!==this.lastDistance_&&(e=this.lastDistance_/a),this.lastDistance_=a;var s=t.map,l=s.getView();1!=e&&(this.lastScaleDelta_=e);var u=s.getViewport().getBoundingClientRect(),h=Object(c["a"])(this.targetPointers);h[0]-=u.left,h[1]-=u.top,this.anchor_=s.getCoordinateFromPixelInternal(h),s.render(),l.adjustResolutionInternal(e,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map,n=e.getView(),i=this.lastScaleDelta_>1?1:-1;return n.endInteraction(this.duration_,i),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(c["b"]),nt=et;function it(t){var e=t||{},n=new i["a"],o=new W(-.005,.05,100),r=void 0===e.altShiftDragRotate||e.altShiftDragRotate;r&&n.push(new b);var a=void 0===e.doubleClickZoom||e.doubleClickZoom;a&&n.push(new l({delta:e.zoomDelta,duration:e.zoomDuration}));var s=void 0===e.dragPan||e.dragPan;s&&n.push(new g({onFocusOnly:e.onFocusOnly,kinetic:o}));var c=void 0===e.pinchRotate||e.pinchRotate;c&&n.push(new $);var u=void 0===e.pinchZoom||e.pinchZoom;u&&n.push(new nt({duration:e.zoomDuration}));var h=void 0===e.keyboard||e.keyboard;h&&(n.push(new G),n.push(new Z({delta:e.zoomDelta,duration:e.zoomDuration})));var p=void 0===e.mouseWheelZoom||e.mouseWheelZoom;p&&n.push(new q({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration}));var d=void 0===e.shiftDragZoom||e.shiftDragZoom;return d&&n.push(new M({duration:e.zoomDuration})),n}},"8cc5":function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n("7fc9");function o(t){return void 0!==t?0:void 0}function r(t){return void 0!==t?t:void 0}function a(t){var e=2*Math.PI/t;return function(t,n){return n?t:void 0!==t?(t=Math.floor(t/e+.5)*e,t):void 0}}function s(t){var e=t||Object(i["j"])(5);return function(t,n){return n?t:void 0!==t?Math.abs(t)<=e?0:t:void 0}}},a0be:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"map"}})},o=[],r=(n("d3b7"),n("d81d"),n("da5c")),a=n("57cb"),s=n("1300"),l=n("a896"),c=n("0af5"),u=n("3c22"),h=n("1af9"),p=n("a568"),d=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_=function(t){function e(e){var n=t.call(this)||this;return n.map_=e,n}return d(e,t),e.prototype.dispatchRenderEvent=function(t,e){Object(s["b"])()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,n=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;Object(l["b"])(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Object(l["d"])(i,n)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,o,r,a,s){var l,u=e.viewState;function d(t,e,n,i){return o.call(r,e,t?n:null,i)}var _=u.projection,f=Object(p["k"])(t.slice(),_),g=[[0,0]];if(_.canWrapX()&&i){var y=_.getExtent(),v=Object(c["D"])(y);g.push([-v,0],[v,0])}for(var m=e.layerStatesArray,b=m.length,O=[],E=[],T=0;T<g.length;T++)for(var C=b-1;C>=0;--C){var w=m[C],R=w.layer;if(R.hasRenderer()&&Object(h["b"])(w,u)&&a.call(s,R)){var j=R.getRenderer(),x=R.getSource();if(j&&x){var P=x.getWrapX()?f:t,A=d.bind(null,w.managed);E[0]=P[0]+g[T][0],E[1]=P[1]+g[T][1],l=j.forEachFeatureAtCoordinate(E,e,n,A,O)}if(l)return l}}if(0!==O.length){var I=1/O.length;return O.forEach((function(t,e){return t.distanceSq+=e*I})),O.sort((function(t,e){return t.distanceSq-e.distanceSq})),O.some((function(t){return l=t.callback(t.feature,t.layer,t.geometry)})),l}},e.prototype.forEachLayerAtPixel=function(t,e,n,i,o){return Object(s["b"])()},e.prototype.hasFeatureAtCoordinate=function(t,e,n,i,o,r){var s=this.forEachFeatureAtCoordinate(t,e,n,i,a["b"],this,o,r);return void 0!==s},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){Object(s["b"])()},e.prototype.scheduleExpireIconCache=function(t){u["a"].canExpireCache()&&t.postRenderFunctions.push(f)},e}(r["a"]);function f(t,e){u["a"].expire()}var g=_,y=n("7b4f"),v=n("3333"),m=n("070d"),b=n("6d83"),O=n("cd7e"),E=n("ddea"),T=n("1e8d"),C=n("0999"),w=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),R=function(t){function e(e){var n=t.call(this,e)||this;n.fontChangeListenerKey_=Object(T["a"])(E["a"],y["a"].PROPERTYCHANGE,e.redrawText.bind(e)),n.element_=document.createElement("div");var i=n.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",n.element_.className=O["d"]+" ol-layers";var o=e.getViewport();return o.insertBefore(n.element_,o.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return w(e,t),e.prototype.dispatchRenderEvent=function(t,e){var n=this.getMap();if(n.hasListener(t)){var i=new v["a"](t,void 0,e);n.dispatchEvent(i)}},e.prototype.disposeInternal=function(){Object(T["c"])(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),t.prototype.disposeInternal.call(this)},e.prototype.renderFrame=function(t){if(t){this.calculateMatrices2D(t),this.dispatchRenderEvent(m["a"].PRECOMPOSE,t);var e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),n=t.viewState;this.children_.length=0;for(var i=[],o=null,r=0,a=e.length;r<a;++r){var s=e[r];if(t.layerIndex=r,Object(h["b"])(s,n)&&(s.sourceState==b["a"].READY||s.sourceState==b["a"].UNDEFINED)){var l=s.layer,c=l.render(t,o);c&&(c!==o&&(this.children_.push(c),o=c),"getDeclutter"in l&&i.push(l))}}for(r=i.length-1;r>=0;--r)i[r].renderDeclutter(t);Object(C["d"])(this.element_,this.children_),this.dispatchRenderEvent(m["a"].POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},e.prototype.forEachLayerAtPixel=function(t,e,n,i,o){for(var r=e.viewState,a=e.layerStatesArray,s=a.length,l=s-1;l>=0;--l){var c=a[l],u=c.layer;if(u.hasRenderer()&&Object(h["b"])(c,r)&&o(u)){var p=u.getRenderer(),d=p.getDataAtPixel(t,e,n);if(d){var _=i(u,d);if(_)return _}}}},e}(g),j=R,x=n("e269"),P=n("e300"),A=n("183a"),I=n("01d4"),S=n("5564"),L=n("92fa"),M=n("38f3"),D=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),F={LAYERS:"layers"},N=function(t){function e(e){var n=this,i=e||{},o=Object(M["a"])({},i);delete o.layers;var r=i.layers;return n=t.call(this,o)||this,n.on,n.once,n.un,n.layersListenerKeys_=[],n.listenerKeys_={},n.addChangeListener(F.LAYERS,n.handleLayersChanged_),r?Array.isArray(r)?r=new P["a"](r.slice(),{unique:!0}):Object(L["a"])("function"===typeof r.getArray,43):r=new P["a"](void 0,{unique:!0}),n.setLayers(r),n}return D(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(T["c"]),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push(Object(T["a"])(t,A["a"].ADD,this.handleLayersAdd_,this),Object(T["a"])(t,A["a"].REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(T["c"]);Object(M["b"])(this.listenerKeys_);for(var n=t.getArray(),i=0,o=n.length;i<o;i++){var r=n[i];this.listenerKeys_[Object(s["c"])(r)]=[Object(T["a"])(r,y["a"].PROPERTYCHANGE,this.handleLayerChange_,this),Object(T["a"])(r,I["a"].CHANGE,this.handleLayerChange_,this)]}this.changed()},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.listenerKeys_[Object(s["c"])(e)]=[Object(T["a"])(e,y["a"].PROPERTYCHANGE,this.handleLayerChange_,this),Object(T["a"])(e,I["a"].CHANGE,this.handleLayerChange_,this)],this.changed()},e.prototype.handleLayersRemove_=function(t){var e=t.element,n=Object(s["c"])(e);this.listenerKeys_[n].forEach(T["c"]),delete this.listenerKeys_[n],this.changed()},e.prototype.getLayers=function(){return this.get(F.LAYERS)},e.prototype.setLayers=function(t){this.set(F.LAYERS,t)},e.prototype.getLayersArray=function(t){var e=void 0!==t?t:[];return this.getLayers().forEach((function(t){t.getLayersArray(e)})),e},e.prototype.getLayerStatesArray=function(t){var e=void 0!==t?t:[],n=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));var i=this.getLayerState(),o=i.zIndex;t||void 0!==i.zIndex||(o=0);for(var r=n,a=e.length;r<a;r++){var s=e[r];s.opacity*=i.opacity,s.visible=s.visible&&i.visible,s.maxResolution=Math.min(s.maxResolution,i.maxResolution),s.minResolution=Math.max(s.minResolution,i.minResolution),s.minZoom=Math.max(s.minZoom,i.minZoom),s.maxZoom=Math.min(s.maxZoom,i.maxZoom),void 0!==i.extent&&(void 0!==s.extent?s.extent=Object(c["A"])(s.extent,i.extent):s.extent=i.extent),void 0===s.zIndex&&(s.zIndex=o)}return e},e.prototype.getSourceState=function(){return b["a"].READY},e}(S["a"]),z=N,G=n("509b"),k=n("0b2d"),K={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},Z=n("0ec0"),V=n("617d"),W=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),X=function(t){function e(e,n){var i=t.call(this,e)||this;i.map_=e,i.clickTimeoutId_,i.emulateClicks_=!1,i.dragging_=!1,i.dragListenerKeys_=[],i.moveTolerance_=void 0===n?1:n,i.down_=null;var o=i.map_.getViewport();return i.activePointers_=0,i.trackedTouches_={},i.element_=o,i.pointerdownListenerKey_=Object(T["a"])(o,K.POINTERDOWN,i.handlePointerDown_,i),i.originalPointerMoveEvent_,i.relayedListenerKey_=Object(T["a"])(o,K.POINTERMOVE,i.relayEvent_,i),i.boundHandleTouchMove_=i.handleTouchMove_.bind(i),i.element_.addEventListener(I["a"].TOUCHMOVE,i.boundHandleTouchMove_,!!V["e"]&&{passive:!1}),i}return W(e,t),e.prototype.emulateClick_=function(t){var e=new G["a"](k["a"].CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new G["a"](k["a"].DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new G["a"](k["a"].SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t;e.type==k["a"].POINTERUP||e.type==k["a"].POINTERCANCEL?delete this.trackedTouches_[e.pointerId]:e.type==k["a"].POINTERDOWN&&(this.trackedTouches_[e.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new G["a"](k["a"].POINTERUP,this.map_,t);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_&&(this.dragListenerKeys_.forEach(T["c"]),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},e.prototype.isMouseActionButton_=function(t){return 0===t.button},e.prototype.handlePointerDown_=function(t){this.emulateClicks_=0===this.activePointers_,this.updateActivePointers_(t);var e=new G["a"](k["a"].POINTERDOWN,this.map_,t);for(var n in this.dispatchEvent(e),this.down_={},t){var i=t[n];this.down_[n]="function"===typeof i?a["c"]:i}if(0===this.dragListenerKeys_.length){var o=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Object(T["a"])(o,k["a"].POINTERMOVE,this.handlePointerMove_,this),Object(T["a"])(o,k["a"].POINTERUP,this.handlePointerUp_,this),Object(T["a"])(this.element_,k["a"].POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==o&&this.dragListenerKeys_.push(Object(T["a"])(this.element_.getRootNode(),k["a"].POINTERUP,this.handlePointerUp_,this))}},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.dragging_=!0;var e=new G["a"](k["a"].POINTERDRAG,this.map_,t,this.dragging_);this.dispatchEvent(e)}},e.prototype.relayEvent_=function(t){this.originalPointerMoveEvent_=t;var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new G["a"](t.type,this.map_,t,e))},e.prototype.handleTouchMove_=function(t){var e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"===typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()},e.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(T["c"])(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(I["a"].TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Object(T["c"])(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(T["c"]),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(Z["a"]),U=X,Y=n("7238"),H={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend"},B={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},q=1/0,Q=function(){function t(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return t.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Object(M["b"])(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var i=this.keyFunction_(n);return delete this.queuedElements_[i],n},t.prototype.enqueue=function(t){Object(L["a"])(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=q&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},t.prototype.getCount=function(){return this.elements_.length},t.prototype.getLeftChildIndex_=function(t){return 2*t+1},t.prototype.getRightChildIndex_=function(t){return 2*t+2},t.prototype.getParentIndex_=function(t){return t-1>>1},t.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},t.prototype.isEmpty=function(){return 0===this.elements_.length},t.prototype.isKeyQueued=function(t){return t in this.queuedElements_},t.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},t.prototype.siftUp_=function(t){var e=this.elements_,n=this.priorities_,i=e.length,o=e[t],r=n[t],a=t;while(t<i>>1){var s=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),c=l<i&&n[l]<n[s]?l:s;e[t]=e[c],n[t]=n[c],t=c}e[t]=o,n[t]=r,this.siftDown_(a,t)},t.prototype.siftDown_=function(t,e){var n=this.elements_,i=this.priorities_,o=n[e],r=i[e];while(e>t){var a=this.getParentIndex_(e);if(!(i[a]>r))break;n[e]=n[a],i[e]=i[a],e=a}n[e]=o,i[e]=r},t.prototype.reprioritize=function(){var t,e,n,i=this.priorityFunction_,o=this.elements_,r=this.priorities_,a=0,s=o.length;for(e=0;e<s;++e)t=o[e],n=i(t),n==q?delete this.queuedElements_[this.keyFunction_(t)]:(r[a]=n,o[a++]=t);o.length=a,r.length=a,this.heapify_()},t}(),J=Q,$={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4},tt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),et=function(t){function e(e,n){var i=t.call(this,(function(t){return e.apply(null,t)}),(function(t){return t[0].getKey()}))||this;return i.boundHandleTileChange_=i.handleTileChange.bind(i),i.tileChangeCallback_=n,i.tilesLoading_=0,i.tilesLoadingKeys_={},i}return tt(e,t),e.prototype.enqueue=function(e){var n=t.prototype.enqueue.call(this,e);if(n){var i=e[0];i.addEventListener(I["a"].CHANGE,this.boundHandleTileChange_)}return n},e.prototype.getTilesLoading=function(){return this.tilesLoading_},e.prototype.handleTileChange=function(t){var e=t.target,n=e.getState();if(n===$.LOADED||n===$.ERROR||n===$.EMPTY){e.removeEventListener(I["a"].CHANGE,this.boundHandleTileChange_);var i=e.getKey();i in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[i],--this.tilesLoading_),this.tileChangeCallback_()}},e.prototype.loadMoreTiles=function(t,e){var n,i,o,r=0;while(this.tilesLoading_<t&&r<e&&this.getCount()>0)i=this.dequeue()[0],o=i.getKey(),n=i.getState(),n!==$.IDLE||o in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[o]=!0,++this.tilesLoading_,++r,i.load())},e}(J),nt=et;function it(t,e,n,i,o){if(!t||!(n in t.wantedTiles))return q;if(!t.wantedTiles[n][e.getKey()])return q;var r=t.viewState.center,a=i[0]-r[0],s=i[1]-r[1];return 65536*Math.log(o)+Math.sqrt(a*a+s*s)/o}var ot=n("f623"),rt=n("fced"),at=n("496f"),st={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},lt=42,ct=256,ut=n("256f"),ht=n("7fc9");function pt(t,e,n){return function(i,o,r,a,s){if(i){var l=e?0:r[0]*o,c=e?0:r[1]*o,u=s?s[0]:0,h=s?s[1]:0,p=t[0]+l/2+u,d=t[2]-l/2+u,_=t[1]+c/2+h,f=t[3]-c/2+h;p>d&&(p=(d+p)/2,d=p),_>f&&(_=(f+_)/2,f=_);var g=Object(ht["a"])(i[0],p,d),y=Object(ht["a"])(i[1],_,f),v=30*o;return a&&n&&(g+=-v*Math.log(1+Math.max(0,p-i[0])/v)+v*Math.log(1+Math.max(0,i[0]-d)/v),y+=-v*Math.log(1+Math.max(0,_-i[1])/v)+v*Math.log(1+Math.max(0,i[1]-f)/v)),[g,y]}}}function dt(t){return t}var _t=n("9f5e");function ft(t,e,n,i){var o=Object(c["D"])(e)/n[0],r=Object(c["z"])(e)/n[1];return i?Math.min(t,Math.max(o,r)):Math.min(t,Math.min(o,r))}function gt(t,e,n){var i=Math.min(t,e),o=50;return i*=Math.log(1+o*Math.max(0,t/e-1))/o+1,n&&(i=Math.max(i,n),i/=Math.log(1+o*Math.max(0,n/t-1))/o+1),Object(ht["a"])(i,n/2,2*e)}function yt(t,e,n,i){return function(o,r,a,s){if(void 0!==o){var l=t[0],c=t[t.length-1],u=n?ft(l,n,a,i):l;if(s){var h=void 0===e||e;return h?gt(o,u,c):Object(ht["a"])(o,c,u)}var p=Math.min(u,o),d=Math.floor(Object(_t["h"])(t,p,r));return t[d]>u&&d<t.length-1?t[d+1]:t[d]}}}function vt(t,e,n,i,o,r){return function(a,s,l,c){if(void 0!==a){var u=o?ft(e,o,l,r):e,h=void 0!==n?n:0;if(c){var p=void 0===i||i;return p?gt(a,u,h):Object(ht["a"])(a,h,u)}var d=1e-9,_=Math.ceil(Math.log(e/u)/Math.log(t)-d),f=-s*(.5-d)+.5,g=Math.min(u,a),y=Math.floor(Math.log(e/g)/Math.log(t)+f),v=Math.max(_,y),m=e/Math.pow(t,v);return Object(ht["a"])(m,h,u)}}}function mt(t,e,n,i,o){return function(r,a,s,l){if(void 0!==r){var c=i?ft(t,i,s,o):t,u=void 0===n||n;return u&&l?gt(r,c,e):Object(ht["a"])(r,e,c)}}}var bt=n("8cc5"),Ot=n("ca42"),Et=n("5bc3"),Tt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ct=0,wt=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var i=Object(M["a"])({},e);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=Object(ut["b"])(i.projection,"EPSG:3857"),n.viewportSize_=[100,100],n.targetCenter_=null,n.targetResolution_,n.targetRotation_,n.nextCenter_=null,n.nextResolution_,n.nextRotation_,n.cancelAnchor_=void 0,i.center&&(i.center=Object(ut["d"])(i.center,n.projection_)),i.extent&&(i.extent=Object(ut["e"])(i.extent,n.projection_)),n.applyOptions_(i),n}return Tt(e,t),e.prototype.applyOptions_=function(t){var e={},n=xt(t);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=n.minZoom;var i=jt(t),o=n.constraint,r=Pt(t);this.constraints_={center:i,resolution:o,rotation:r},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom),this.setProperties(e),this.options_=t},Object.defineProperty(e.prototype,"padding",{get:function(){return this.padding_},set:function(t){var e=this.padding_;this.padding_=t;var n=this.getCenter();if(n){var i=t||[0,0,0,0];e=e||[0,0,0,0];var o=this.getResolution(),r=o/2*(i[3]-e[3]+e[1]-i[1]),a=o/2*(i[0]-e[0]+e[2]-i[2]);this.setCenterInternal([n[0]+r,n[1]-a])}},enumerable:!1,configurable:!0}),e.prototype.getUpdatedOptions_=function(t){var e=Object(M["a"])({},this.options_);return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object(M["a"])({},e,t)},e.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var e=new Array(arguments.length),n=0;n<e.length;++n){var i=arguments[n];i.center&&(i=Object(M["a"])({},i),i.center=Object(ut["d"])(i.center,this.getProjection())),i.anchor&&(i=Object(M["a"])({},i),i.anchor=Object(ut["d"])(i.anchor,this.getProjection())),e[n]=i}this.animateInternal.apply(this,e)},e.prototype.animateInternal=function(t){var e,n=arguments.length;n>1&&"function"===typeof arguments[n-1]&&(e=arguments[n-1],--n);for(var i=0;i<n&&!this.isDef();++i){var o=arguments[i];o.center&&this.setCenterInternal(o.center),void 0!==o.zoom?this.setZoom(o.zoom):o.resolution&&this.setResolution(o.resolution),void 0!==o.rotation&&this.setRotation(o.rotation)}if(i!==n){for(var r=Date.now(),a=this.targetCenter_.slice(),s=this.targetResolution_,l=this.targetRotation_,c=[];i<n;++i){var u=arguments[i],h={start:r,complete:!1,anchor:u.anchor,duration:void 0!==u.duration?u.duration:1e3,easing:u.easing||Ot["c"],callback:e};if(u.center&&(h.sourceCenter=a,h.targetCenter=u.center.slice(),a=h.targetCenter),void 0!==u.zoom?(h.sourceResolution=s,h.targetResolution=this.getResolutionForZoom(u.zoom),s=h.targetResolution):u.resolution&&(h.sourceResolution=s,h.targetResolution=u.resolution,s=h.targetResolution),void 0!==u.rotation){h.sourceRotation=l;var p=Object(ht["e"])(u.rotation-l+Math.PI,2*Math.PI)-Math.PI;h.targetRotation=l+p,l=h.targetRotation}At(h)?h.complete=!0:r+=h.duration,c.push(h)}this.animations_.push(c),this.setHint(at["a"].ANIMATING,1),this.updateAnimations_()}else e&&Rt(e,!0)},e.prototype.getAnimating=function(){return this.hints_[at["a"].ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[at["a"].INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint(at["a"].ANIMATING,-this.hints_[at["a"].ANIMATING]);for(var e=0,n=this.animations_.length;e<n;++e){var i=this.animations_[e];if(i[0].callback&&Rt(i[0].callback,!1),!t)for(var o=0,r=i.length;o<r;++o){var a=i[o];if(!a.complete){t=a.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN},e.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,n=this.animations_.length-1;n>=0;--n){for(var i=this.animations_[n],o=!0,r=0,a=i.length;r<a;++r){var s=i[r];if(!s.complete){var l=t-s.start,c=s.duration>0?l/s.duration:1;c>=1?(s.complete=!0,c=1):o=!1;var u=s.easing(c);if(s.sourceCenter){var h=s.sourceCenter[0],p=s.sourceCenter[1],d=s.targetCenter[0],_=s.targetCenter[1];this.nextCenter_=s.targetCenter;var f=h+u*(d-h),g=p+u*(_-p);this.targetCenter_=[f,g]}if(s.sourceResolution&&s.targetResolution){var y=1===u?s.targetResolution:s.sourceResolution+u*(s.targetResolution-s.sourceResolution);if(s.anchor){var v=this.getViewportSize_(this.getRotation()),m=this.constraints_.resolution(y,0,v,!0);this.targetCenter_=this.calculateCenterZoom(m,s.anchor)}this.nextResolution_=s.targetResolution,this.targetResolution_=y,this.applyTargetState_(!0)}if(void 0!==s.sourceRotation&&void 0!==s.targetRotation){var b=1===u?Object(ht["e"])(s.targetRotation+Math.PI,2*Math.PI)-Math.PI:s.sourceRotation+u*(s.targetRotation-s.sourceRotation);if(s.anchor){var O=this.constraints_.rotation(b,!0);this.targetCenter_=this.calculateCenterRotate(O,s.anchor)}this.nextRotation_=s.targetRotation,this.targetRotation_=b}if(this.applyTargetState_(!0),e=!0,!s.complete)break}}if(o){this.animations_[n]=null,this.setHint(at["a"].ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var E=i[0].callback;E&&Rt(E,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,e){var n,i=this.getCenterInternal();return void 0!==i&&(n=[i[0]-e[0],i[1]-e[1]],Object(p["g"])(n,t-this.getRotation()),Object(p["a"])(n,e)),n},e.prototype.calculateCenterZoom=function(t,e){var n,i=this.getCenterInternal(),o=this.getResolution();if(void 0!==i&&void 0!==o){var r=e[0]-t*(e[0]-i[0])/o,a=e[1]-t*(e[1]-i[1])/o;n=[r,a]}return n},e.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var n=e[0],i=e[1];return[Math.abs(n*Math.cos(t))+Math.abs(i*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(i*Math.cos(t))]}return e},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?Object(ut["l"])(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(st.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.options_.constrainResolution},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=this.calculateExtentInternal(t);return Object(ut["m"])(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSizeMinusPadding_(),n=this.getCenterInternal();Object(L["a"])(n,1);var i=this.getResolution();Object(L["a"])(void 0!==i,2);var o=this.getRotation();return Object(L["a"])(void 0!==o,3),Object(c["y"])(n,i,o,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(st.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal(Object(ut["e"])(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var n=e||this.getViewportSizeMinusPadding_(),i=Object(c["D"])(t)/n[0],o=Object(c["z"])(t)/n[1];return Math.max(i,o)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,o=Math.log(n/i)/Math.log(e);return function(t){var i=n/Math.pow(e,t*o);return i}},e.prototype.getRotation=function(){return this.get(st.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,o=Math.log(n/i)/e;return function(t){var i=Math.log(n/t)/e/o;return i}},e.prototype.getViewportSizeMinusPadding_=function(t){var e=this.getViewportSize_(t),n=this.padding_;return n&&(e=[e[0]-n[1]-n[3],e[1]-n[0]-n[2]]),e},e.prototype.getState=function(){var t=this.getProjection(),e=this.getResolution(),n=this.getRotation(),i=this.getCenterInternal(),o=this.padding_;if(o){var r=this.getViewportSizeMinusPadding_();i=It(i,this.getViewportSize_(),[r[0]/2+o[3],r[1]/2+o[0]],e,n)}return{center:i.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,n,i=this.minZoom_||0;if(this.resolutions_){var o=Object(_t["h"])(this.resolutions_,t,1);i=o,e=this.resolutions_[o],n=o==this.resolutions_.length-1?2:e/this.resolutions_[o+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=Object(ht["a"])(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,Object(ht["a"])(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var n;if(Object(L["a"])(Array.isArray(t)||"function"===typeof t.getSimplifiedGeometry,24),Array.isArray(t)){Object(L["a"])(!Object(c["G"])(t),25);var i=Object(ut["e"])(t,this.getProjection());n=Object(Et["c"])(i)}else if(t.getType()===ot["a"].CIRCLE){i=Object(ut["e"])(t.getExtent(),this.getProjection());n=Object(Et["c"])(i),n.rotate(this.getRotation(),Object(c["w"])(i))}else{var o=Object(ut["k"])();n=o?t.clone().transform(o,this.getProjection()):t}this.fitInternal(n,e)},e.prototype.rotatedExtentForGeometry=function(t){for(var e=this.getRotation(),n=Math.cos(e),i=Math.sin(-e),o=t.getFlatCoordinates(),r=t.getStride(),a=1/0,s=1/0,l=-1/0,c=-1/0,u=0,h=o.length;u<h;u+=r){var p=o[u]*n-o[u+1]*i,d=o[u]*i+o[u+1]*n;a=Math.min(a,p),s=Math.min(s,d),l=Math.max(l,p),c=Math.max(c,d)}return[a,s,l,c]},e.prototype.fitInternal=function(t,e){var n=e||{},i=n.size;i||(i=this.getViewportSizeMinusPadding_());var o,r=void 0!==n.padding?n.padding:[0,0,0,0],s=void 0!==n.nearest&&n.nearest;o=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;var l=this.rotatedExtentForGeometry(t),u=this.getResolutionForExtentInternal(l,[i[0]-r[1]-r[3],i[1]-r[0]-r[2]]);u=isNaN(u)?o:Math.max(u,o),u=this.getConstrainedResolution(u,s?0:1);var h=this.getRotation(),p=Math.sin(h),d=Math.cos(h),_=Object(c["w"])(l);_[0]+=(r[1]-r[3])/2*u,_[1]+=(r[0]-r[2])/2*u;var f=_[0]*d-_[1]*p,g=_[1]*d+_[0]*p,y=this.getConstrainedCenter([f,g],u),v=n.callback?n.callback:a["c"];void 0!==n.duration?this.animateInternal({resolution:u,center:y,duration:n.duration,easing:n.easing},v):(this.targetResolution_=u,this.targetCenter_=y,this.applyTargetState_(!1,!0),Rt(v,!0))},e.prototype.centerOn=function(t,e,n){this.centerOnInternal(Object(ut["d"])(t,this.getProjection()),e,n)},e.prototype.centerOnInternal=function(t,e,n){this.setCenterInternal(It(t,e,n,this.getResolution(),this.getRotation()))},e.prototype.calculateCenterShift=function(t,e,n,i){var o,r=this.padding_;if(r&&t){var a=this.getViewportSizeMinusPadding_(-n),s=It(t,i,[a[0]/2+r[3],a[1]/2+r[0]],e,n);o=[t[0]-s[0],t[1]-s[1]]}return o},e.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},e.prototype.adjustCenter=function(t){var e=Object(ut["l"])(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustCenterInternal=function(t){var e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustResolution=function(t,e){var n=e&&Object(ut["d"])(e,this.getProjection());this.adjustResolutionInternal(t,n)},e.prototype.adjustResolutionInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),i=this.getViewportSize_(this.getRotation()),o=this.constraints_.resolution(this.targetResolution_*t,0,i,n);e&&(this.targetCenter_=this.calculateCenterZoom(o,e)),this.targetResolution_*=t,this.applyTargetState_()},e.prototype.adjustZoom=function(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)},e.prototype.adjustRotation=function(t,e){e&&(e=Object(ut["d"])(e,this.getProjection())),this.adjustRotationInternal(t,e)},e.prototype.adjustRotationInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),i=this.constraints_.rotation(this.targetRotation_+t,n);e&&(this.targetCenter_=this.calculateCenterRotate(i,e)),this.targetRotation_+=t,this.applyTargetState_()},e.prototype.setCenter=function(t){this.setCenterInternal(Object(ut["d"])(t,this.getProjection()))},e.prototype.setCenterInternal=function(t){this.targetCenter_=t,this.applyTargetState_()},e.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.targetResolution_=t,this.applyTargetState_()},e.prototype.setRotation=function(t){this.targetRotation_=t,this.applyTargetState_()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e.prototype.applyTargetState_=function(t,e){var n=this.getAnimating()||this.getInteracting()||e,i=this.constraints_.rotation(this.targetRotation_,n),o=this.getViewportSize_(i),r=this.constraints_.resolution(this.targetResolution_,0,o,n),a=this.constraints_.center(this.targetCenter_,r,o,n,this.calculateCenterShift(this.targetCenter_,r,i,o));this.get(st.ROTATION)!==i&&this.set(st.ROTATION,i),this.get(st.RESOLUTION)!==r&&this.set(st.RESOLUTION,r),this.get(st.CENTER)&&Object(p["e"])(this.get(st.CENTER),a)||this.set(st.CENTER,a),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0},e.prototype.resolveConstraints=function(t,e,n){var i=void 0!==t?t:200,o=e||0,r=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(r),s=this.constraints_.resolution(this.targetResolution_,o,a),l=this.constraints_.center(this.targetCenter_,s,a,!1,this.calculateCenterShift(this.targetCenter_,s,r,a));if(0===i&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=r,this.targetCenter_=l,void this.applyTargetState_();var c=n||(0===i?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===r&&this.getCenterInternal()&&Object(p["e"])(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:r,center:l,resolution:s,duration:i,easing:Ot["b"],anchor:c}))},e.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(at["a"].INTERACTING,1)},e.prototype.endInteraction=function(t,e,n){var i=n&&Object(ut["d"])(n,this.getProjection());this.endInteractionInternal(t,e,i)},e.prototype.endInteractionInternal=function(t,e,n){this.setHint(at["a"].INTERACTING,-1),this.resolveConstraints(t,e,n)},e.prototype.getConstrainedCenter=function(t,e){var n=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),n)},e.prototype.getConstrainedZoom=function(t,e){var n=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(n,e))},e.prototype.getConstrainedResolution=function(t,e){var n=e||0,i=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,n,i)},e}(x["a"]);function Rt(t,e){setTimeout((function(){t(e)}),0)}function jt(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return pt(t.extent,t.constrainOnlyCenter,e)}var n=Object(ut["b"])(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&n.isGlobal()){var i=n.getExtent().slice();return i[0]=-1/0,i[2]=1/0,pt(i,!1,!1)}return dt}function xt(t){var e,n,i,o=28,r=2,a=void 0!==t.minZoom?t.minZoom:Ct,s=void 0!==t.maxZoom?t.maxZoom:o,l=void 0!==t.zoomFactor?t.zoomFactor:r,u=void 0!==t.multiWorld&&t.multiWorld,h=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,p=void 0!==t.showFullExtent&&t.showFullExtent,d=Object(ut["b"])(t.projection,"EPSG:3857"),_=d.getExtent(),f=t.constrainOnlyCenter,g=t.extent;if(u||g||!d.isGlobal()||(f=!1,g=_),void 0!==t.resolutions){var y=t.resolutions;n=y[a],i=void 0!==y[s]?y[s]:y[y.length-1],e=t.constrainResolution?yt(y,h,!f&&g,p):mt(n,i,h,!f&&g,p)}else{var v=_?Math.max(Object(c["D"])(_),Object(c["z"])(_)):360*ut["a"][rt["b"].DEGREES]/d.getMetersPerUnit(),m=v/ct/Math.pow(r,Ct),b=m/Math.pow(r,o-Ct);n=t.maxResolution,void 0!==n?a=0:n=m/Math.pow(l,a),i=t.minResolution,void 0===i&&(i=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(l,s):m/Math.pow(l,s):b),s=a+Math.floor(Math.log(n/i)/Math.log(l)),i=n/Math.pow(l,s-a),e=t.constrainResolution?vt(l,n,i,h,!f&&g,p):mt(n,i,h,!f&&g,p)}return{constraint:e,maxResolution:n,minResolution:i,minZoom:a,zoomFactor:l}}function Pt(t){var e=void 0===t.enableRotation||t.enableRotation;if(e){var n=t.constrainRotation;return void 0===n||!0===n?Object(bt["b"])():!1===n?bt["d"]:"number"===typeof n?Object(bt["a"])(n):bt["d"]}return bt["c"]}function At(t){return!(t.sourceCenter&&t.targetCenter&&!Object(p["e"])(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}function It(t,e,n,i,o){var r=Math.cos(-o),a=Math.sin(-o),s=t[0]*r-t[1]*a,l=t[1]*r+t[0]*a;s+=(e[0]/2-n[0])*i,l+=(n[1]-e[1]/2)*i,a=-a;var c=s*r-l*a,u=l*r+s*a;return[c,u]}var St=wt,Lt=n("345d"),Mt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Dt=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var i=Ft(e);n.boundHandleBrowserEvent_=n.handleBrowserEvent.bind(n),n.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,n.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:V["a"],n.postRenderTimeoutHandle_,n.animationDelayKey_,n.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(n),n.coordinateToPixelTransform_=Object(l["c"])(),n.pixelToCoordinateTransform_=Object(l["c"])(),n.frameIndex_=0,n.frameState_=null,n.previousExtent_=null,n.viewPropertyListenerKey_=null,n.viewChangeListenerKey_=null,n.layerGroupPropertyListenerKeys_=null,n.viewport_=document.createElement("div"),n.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),n.viewport_.style.position="relative",n.viewport_.style.overflow="hidden",n.viewport_.style.width="100%",n.viewport_.style.height="100%",n.overlayContainer_=document.createElement("div"),n.overlayContainer_.style.position="absolute",n.overlayContainer_.style.zIndex="0",n.overlayContainer_.style.width="100%",n.overlayContainer_.style.height="100%",n.overlayContainer_.style.pointerEvents="none",n.overlayContainer_.className="ol-overlaycontainer",n.viewport_.appendChild(n.overlayContainer_),n.overlayContainerStopEvent_=document.createElement("div"),n.overlayContainerStopEvent_.style.position="absolute",n.overlayContainerStopEvent_.style.zIndex="0",n.overlayContainerStopEvent_.style.width="100%",n.overlayContainerStopEvent_.style.height="100%",n.overlayContainerStopEvent_.style.pointerEvents="none",n.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",n.viewport_.appendChild(n.overlayContainerStopEvent_),n.mapBrowserEventHandler_=null,n.moveTolerance_=e.moveTolerance,n.keyboardEventTarget_=i.keyboardEventTarget,n.keyHandlerKeys_=null,n.controls=i.controls||new P["a"],n.interactions=i.interactions||new P["a"],n.overlays_=i.overlays,n.overlayIdIndex_={},n.renderer_=null,n.handleResize_,n.postRenderFunctions_=[],n.tileQueue_=new nt(n.getTilePriority.bind(n),n.handleTileChange_.bind(n)),n.addChangeListener(B.LAYERGROUP,n.handleLayerGroupChanged_),n.addChangeListener(B.VIEW,n.handleViewChanged_),n.addChangeListener(B.SIZE,n.handleSizeChanged_),n.addChangeListener(B.TARGET,n.handleTargetChanged_),n.setProperties(i.values);var o=n;return!e.view||e.view instanceof St||e.view.then((function(t){o.setView(new St(t))})),n.controls.addEventListener(A["a"].ADD,function(t){t.element.setMap(this)}.bind(n)),n.controls.addEventListener(A["a"].REMOVE,function(t){t.element.setMap(null)}.bind(n)),n.interactions.addEventListener(A["a"].ADD,function(t){t.element.setMap(this)}.bind(n)),n.interactions.addEventListener(A["a"].REMOVE,function(t){t.element.setMap(null)}.bind(n)),n.overlays_.addEventListener(A["a"].ADD,function(t){this.addOverlayInternal_(t.element)}.bind(n)),n.overlays_.addEventListener(A["a"].REMOVE,function(t){var e=t.element,n=e.getId();void 0!==n&&delete this.overlayIdIndex_[n.toString()],t.element.setMap(null)}.bind(n)),n.controls.forEach(function(t){t.setMap(this)}.bind(n)),n.interactions.forEach(function(t){t.setMap(this)}.bind(n)),n.overlays_.forEach(n.addOverlayInternal_.bind(n)),n}return Mt(e,t),e.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},e.prototype.addControl=function(t){this.getControls().push(t)},e.prototype.addInteraction=function(t){this.getInteractions().push(t)},e.prototype.addLayer=function(t){var e=this.getLayerGroup().getLayers();e.push(t)},e.prototype.addOverlay=function(t){this.getOverlays().push(t)},e.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},e.prototype.disposeInternal=function(){this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,n){if(this.frameState_){var i=this.getCoordinateFromPixelInternal(t);n=void 0!==n?n:{};var o=void 0!==n.hitTolerance?n.hitTolerance:0,r=void 0!==n.layerFilter?n.layerFilter:a["b"],s=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(i,this.frameState_,o,s,e,null,r,null)}},e.prototype.getFeaturesAtPixel=function(t,e){var n=[];return this.forEachFeatureAtPixel(t,(function(t){n.push(t)}),e),n},e.prototype.forEachLayerAtPixel=function(t,e,n){if(this.frameState_){var i=n||{},o=void 0!==i.hitTolerance?i.hitTolerance:0,r=i.layerFilter||a["b"];return this.renderer_.forEachLayerAtPixel(t,this.frameState_,o,e,r)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_)return!1;var n=this.getCoordinateFromPixelInternal(t);e=void 0!==e?e:{};var i=void 0!==e.layerFilter?e.layerFilter:a["b"],o=void 0!==e.hitTolerance?e.hitTolerance:0,r=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,o,r,i,null)},e.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},e.prototype.getEventCoordinateInternal=function(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))},e.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),n="changedTouches"in t?t.changedTouches[0]:t;return[n.clientX-e.left,n.clientY-e.top]},e.prototype.getTarget=function(){return this.get(B.TARGET)},e.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"===typeof t?document.getElementById(t):t:null},e.prototype.getCoordinateFromPixel=function(t){return Object(ut["l"])(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},e.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?Object(l["a"])(e.pixelToCoordinateTransform,t.slice()):null},e.prototype.getControls=function(){return this.controls},e.prototype.getOverlays=function(){return this.overlays_},e.prototype.getOverlayById=function(t){var e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getInteractions=function(){return this.interactions},e.prototype.getLayerGroup=function(){return this.get(B.LAYERGROUP)},e.prototype.setLayers=function(t){var e=this.getLayerGroup();if(t instanceof P["a"])e.setLayers(t);else{var n=e.getLayers();n.clear(),n.extend(t)}},e.prototype.getLayers=function(){var t=this.getLayerGroup().getLayers();return t},e.prototype.getLoading=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var i=t[e].layer,o=i.getSource();if(o&&o.loading)return!0}return!1},e.prototype.getPixelFromCoordinate=function(t){var e=Object(ut["d"])(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)},e.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?Object(l["a"])(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(B.SIZE)},e.prototype.getView=function(){return this.get(B.VIEW)},e.prototype.getViewport=function(){return this.viewport_},e.prototype.getOverlayContainer=function(){return this.overlayContainer_},e.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},e.prototype.getOwnerDocument=function(){var t=this.getTargetElement();return t?t.ownerDocument:document},e.prototype.getTilePriority=function(t,e,n,i){return it(this.frameState_,t,e,n,i)},e.prototype.handleBrowserEvent=function(t,e){var n=e||t.type,i=new G["a"](n,this,t);this.handleMapBrowserEvent(i)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){var e=t.originalEvent,n=e.type;if(n===K.POINTERDOWN||n===I["a"].WHEEL||n===I["a"].KEYDOWN){var i=this.getOwnerDocument(),o=this.viewport_.getRootNode?this.viewport_.getRootNode():i,r=e.target;if(this.overlayContainerStopEvent_.contains(r)||!(o===i?i.documentElement:o).contains(r))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t))for(var a=this.getInteractions().getArray().slice(),s=a.length-1;s>=0;s--){var l=a[s];if(l.getMap()===this&&l.getActive()&&this.getTargetElement()){var c=l.handleEvent(t);if(!c||t.propagationStopped)break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var n=this.maxTilesLoading_,i=n;if(t){var o=t.viewHints;if(o[at["a"].ANIMATING]||o[at["a"].INTERACTING]){var r=Date.now()-t.time>8;n=r?0:8,i=r?0:2}}e.getTilesLoading()<n&&(e.reprioritize(),e.loadMoreTiles(n,i))}!t||!this.hasListener(m["a"].RENDERCOMPLETE)||t.animate||this.tileQueue_.getTilesLoading()||this.getLoading()||this.renderer_.dispatchRenderEvent(m["a"].RENDERCOMPLETE,t);for(var a=this.postRenderFunctions_,s=0,l=a.length;s<l;++s)a[s](this,t);a.length=0},e.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},e.prototype.handleTargetChanged_=function(){var t;if(this.getTarget()&&(t=this.getTargetElement()),this.mapBrowserEventHandler_){for(var e=0,n=this.keyHandlerKeys_.length;e<n;++e)Object(T["c"])(this.keyHandlerKeys_[e]);this.keyHandlerKeys_=null,this.viewport_.removeEventListener(I["a"].CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(I["a"].WHEEL,this.boundHandleBrowserEvent_),void 0!==this.handleResize_&&(removeEventListener(I["a"].RESIZE,this.handleResize_,!1),this.handleResize_=void 0),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,Object(C["c"])(this.viewport_)}if(t){for(var i in t.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new U(this,this.moveTolerance_),k["a"])this.mapBrowserEventHandler_.addEventListener(k["a"][i],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(I["a"].CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(I["a"].WHEEL,this.boundHandleBrowserEvent_,!!V["e"]&&{passive:!1});var o=this.keyboardEventTarget_?this.keyboardEventTarget_:t;this.keyHandlerKeys_=[Object(T["a"])(o,I["a"].KEYDOWN,this.handleBrowserEvent,this),Object(T["a"])(o,I["a"].KEYPRESS,this.handleBrowserEvent,this)],this.handleResize_||(this.handleResize_=this.updateSize.bind(this),window.addEventListener(I["a"].RESIZE,this.handleResize_,!1))}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},e.prototype.handleTileChange_=function(){this.render()},e.prototype.handleViewPropertyChanged_=function(){this.render()},e.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Object(T["c"])(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Object(T["c"])(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=Object(T["a"])(t,y["a"].PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Object(T["a"])(t,I["a"].CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(T["c"]),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.layerGroupPropertyListenerKeys_=[Object(T["a"])(t,y["a"].PROPERTYCHANGE,this.render,this),Object(T["a"])(t,I["a"].CHANGE,this.render,this)]),this.render()},e.prototype.isRendered=function(){return!!this.frameState_},e.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},e.prototype.redrawText=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var i=t[e].layer;i.hasRenderer()&&i.getRenderer().handleFontsChanged()}},e.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},e.prototype.removeControl=function(t){return this.getControls().remove(t)},e.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},e.prototype.removeLayer=function(t){var e=this.getLayerGroup().getLayers();return e.remove(t)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e=this,n=this.getSize(),i=this.getView(),o=this.frameState_,r=null;if(void 0!==n&&Object(Lt["a"])(n)&&i&&i.isDef()){var a=i.getHints(this.frameState_?this.frameState_.viewHints:void 0),s=i.getState();if(r={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:Object(c["y"])(s.center,s.resolution,s.rotation,n),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:n,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:s,viewHints:a,wantedTiles:{}},s.nextCenter&&s.nextResolution){var l=isNaN(s.nextRotation)?s.rotation:s.nextRotation;r.nextExtent=Object(c["y"])(s.nextCenter,s.nextResolution,l,n)}}if(this.frameState_=r,this.renderer_.renderFrame(r),r){if(r.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,r.postRenderFunctions),o){var u=!this.previousExtent_||!Object(c["G"])(this.previousExtent_)&&!Object(c["o"])(r.extent,this.previousExtent_);u&&(this.dispatchEvent(new Y["a"](H.MOVESTART,this,o)),this.previousExtent_=Object(c["l"])(this.previousExtent_))}var h=this.previousExtent_&&!r.viewHints[at["a"].ANIMATING]&&!r.viewHints[at["a"].INTERACTING]&&!Object(c["o"])(r.extent,this.previousExtent_);h&&(this.dispatchEvent(new Y["a"](H.MOVEEND,this,r)),Object(c["d"])(r.extent,this.previousExtent_))}this.dispatchEvent(new Y["a"](H.POSTRENDER,this,r)),this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){e.postRenderTimeoutHandle_=void 0,e.handlePostRender()}),0))},e.prototype.setLayerGroup=function(t){this.set(B.LAYERGROUP,t)},e.prototype.setSize=function(t){this.set(B.SIZE,t)},e.prototype.setTarget=function(t){this.set(B.TARGET,t)},e.prototype.setView=function(t){if(!t||t instanceof St)this.set(B.VIEW,t);else{this.set(B.VIEW,new St);var e=this;t.then((function(t){e.setView(new St(t))}))}},e.prototype.updateSize=function(){var t=this.getTargetElement(),e=void 0;if(t){var n=getComputedStyle(t),i=t.offsetWidth-parseFloat(n["borderLeftWidth"])-parseFloat(n["paddingLeft"])-parseFloat(n["paddingRight"])-parseFloat(n["borderRightWidth"]),o=t.offsetHeight-parseFloat(n["borderTopWidth"])-parseFloat(n["paddingTop"])-parseFloat(n["paddingBottom"])-parseFloat(n["borderBottomWidth"]);isNaN(i)||isNaN(o)||(e=[i,o],!Object(Lt["a"])(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0."))}this.setSize(e),this.updateViewportSize_()},e.prototype.updateViewportSize_=function(){var t=this.getView();if(t){var e=void 0,n=getComputedStyle(this.viewport_);n.width&&n.height&&(e=[parseInt(n.width,10),parseInt(n.height,10)]),t.setViewportSize(e)}},e}(x["a"]);function Ft(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"===typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var n,i,o,r={},a=t.layers&&"function"===typeof t.layers.getLayers?t.layers:new z({layers:t.layers});return r[B.LAYERGROUP]=a,r[B.TARGET]=t.target,r[B.VIEW]=t.view instanceof St?t.view:new St,void 0!==t.controls&&(Array.isArray(t.controls)?n=new P["a"](t.controls.slice()):(Object(L["a"])("function"===typeof t.controls.getArray,47),n=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?i=new P["a"](t.interactions.slice()):(Object(L["a"])("function"===typeof t.interactions.getArray,48),i=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?o=new P["a"](t.overlays.slice()):(Object(L["a"])("function"===typeof t.overlays.getArray,49),o=t.overlays):o=new P["a"],{controls:n,interactions:i,keyboardEventTarget:e,overlays:o,values:r}}var Nt=Dt,zt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Gt=function(t){function e(e){var n=t.call(this)||this,i=e.element;return!i||e.target||i.style.pointerEvents||(i.style.pointerEvents="auto"),n.element=i||null,n.target_=null,n.map_=null,n.listenerKeys=[],e.render&&(n.render=e.render),e.target&&n.setTarget(e.target),n}return zt(e,t),e.prototype.disposeInternal=function(){Object(C["c"])(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&Object(C["c"])(this.element);for(var e=0,n=this.listenerKeys.length;e<n;++e)Object(T["c"])(this.listenerKeys[e]);if(this.listenerKeys.length=0,this.map_=t,this.map_){var i=this.target_?this.target_:t.getOverlayContainerStopEvent();i.appendChild(this.element),this.render!==a["c"]&&this.listenerKeys.push(Object(T["a"])(t,H.POSTRENDER,this.render,this)),t.render()}},e.prototype.render=function(t){},e.prototype.setTarget=function(t){this.target_="string"===typeof t?document.getElementById(t):t},e}(x["a"]),kt=Gt,Kt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Zt=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this,n.ulElement_=document.createElement("ul"),n.collapsed_=void 0===i.collapsed||i.collapsed,n.userCollapsed_=n.collapsed_,n.overrideCollapsible_=void 0!==i.collapsible,n.collapsible_=void 0===i.collapsible||i.collapsible,n.collapsible_||(n.collapsed_=!1);var o=void 0!==i.className?i.className:"ol-attribution",r=void 0!==i.tipLabel?i.tipLabel:"Attributions",a=void 0!==i.expandClassName?i.expandClassName:o+"-expand",s=void 0!==i.collapseLabel?i.collapseLabel:"›",l=void 0!==i.collapseClassName?i.collapseClassName:o+"-collpase";"string"===typeof s?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=s,n.collapseLabel_.className=l):n.collapseLabel_=s;var c=void 0!==i.label?i.label:"i";"string"===typeof c?(n.label_=document.createElement("span"),n.label_.textContent=c,n.label_.className=a):n.label_=c;var u=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_;n.toggleButton_=document.createElement("button"),n.toggleButton_.setAttribute("type","button"),n.toggleButton_.setAttribute("aria-expanded",String(!n.collapsed_)),n.toggleButton_.title=r,n.toggleButton_.appendChild(u),n.toggleButton_.addEventListener(I["a"].CLICK,n.handleClick_.bind(n),!1);var h=o+" "+O["d"]+" "+O["b"]+(n.collapsed_&&n.collapsible_?" "+O["a"]:"")+(n.collapsible_?"":" ol-uncollapsible"),p=n.element;return p.className=h,p.appendChild(n.toggleButton_),p.appendChild(n.ulElement_),n.renderedAttributions_=[],n.renderedVisible_=!0,n}return Kt(e,t),e.prototype.collectSourceAttributions_=function(t){for(var e={},n=[],i=!0,o=t.layerStatesArray,r=0,a=o.length;r<a;++r){var s=o[r];if(Object(h["b"])(s,t.viewState)){var l=s.layer.getSource();if(l){var c=l.getAttributions();if(c){var u=c(t);if(u)if(i=i&&!1!==l.getAttributionsCollapsible(),Array.isArray(u))for(var p=0,d=u.length;p<d;++p)u[p]in e||(n.push(u[p]),e[u[p]]=!0);else u in e||(n.push(u),e[u]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(i),n},e.prototype.updateElement_=function(t){if(t){var e=this.collectSourceAttributions_(t),n=e.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!Object(_t["b"])(e,this.renderedAttributions_)){Object(C["b"])(this.ulElement_);for(var i=0,o=e.length;i<o;++i){var r=document.createElement("li");r.innerHTML=e[i],this.ulElement_.appendChild(r)}this.renderedAttributions_=e}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_},e.prototype.handleToggle_=function(){this.element.classList.toggle(O["a"]),this.collapsed_?Object(C["e"])(this.collapseLabel_,this.label_):Object(C["e"])(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.render=function(t){this.updateElement_(t.frameState)},e}(kt),Vt=Zt,Wt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Xt=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this;var o=void 0!==i.className?i.className:"ol-rotate",r=void 0!==i.label?i.label:"⇧",a=void 0!==i.compassClassName?i.compassClassName:"ol-compass";n.label_=null,"string"===typeof r?(n.label_=document.createElement("span"),n.label_.className=a,n.label_.textContent=r):(n.label_=r,n.label_.classList.add(a));var s=i.tipLabel?i.tipLabel:"Reset rotation",l=document.createElement("button");l.className=o+"-reset",l.setAttribute("type","button"),l.title=s,l.appendChild(n.label_),l.addEventListener(I["a"].CLICK,n.handleClick_.bind(n),!1);var c=o+" "+O["d"]+" "+O["b"],u=n.element;return u.className=c,u.appendChild(l),n.callResetNorth_=i.resetNorth?i.resetNorth:void 0,n.duration_=void 0!==i.duration?i.duration:250,n.autoHide_=void 0===i.autoHide||i.autoHide,n.rotation_=void 0,n.autoHide_&&n.element.classList.add(O["c"]),n}return Wt(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},e.prototype.resetNorth_=function(){var t=this.getMap(),e=t.getView();if(e){var n=e.getRotation();void 0!==n&&(this.duration_>0&&n%(2*Math.PI)!==0?e.animate({rotation:0,duration:this.duration_,easing:Ot["b"]}):e.setRotation(0))}},e.prototype.render=function(t){var e=t.frameState;if(e){var n=e.viewState.rotation;if(n!=this.rotation_){var i="rotate("+n+"rad)";if(this.autoHide_){var o=this.element.classList.contains(O["c"]);o||0!==n?o&&0!==n&&this.element.classList.remove(O["c"]):this.element.classList.add(O["c"])}this.label_.style.transform=i}this.rotation_=n}},e}(kt),Ut=Xt,Yt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ht=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),target:i.target})||this;var o=void 0!==i.className?i.className:"ol-zoom",r=void 0!==i.delta?i.delta:1,a=void 0!==i.zoomInClassName?i.zoomInClassName:o+"-in",s=void 0!==i.zoomOutClassName?i.zoomOutClassName:o+"-out",l=void 0!==i.zoomInLabel?i.zoomInLabel:"+",c=void 0!==i.zoomOutLabel?i.zoomOutLabel:"–",u=void 0!==i.zoomInTipLabel?i.zoomInTipLabel:"Zoom in",h=void 0!==i.zoomOutTipLabel?i.zoomOutTipLabel:"Zoom out",p=document.createElement("button");p.className=a,p.setAttribute("type","button"),p.title=u,p.appendChild("string"===typeof l?document.createTextNode(l):l),p.addEventListener(I["a"].CLICK,n.handleClick_.bind(n,r),!1);var d=document.createElement("button");d.className=s,d.setAttribute("type","button"),d.title=h,d.appendChild("string"===typeof c?document.createTextNode(c):c),d.addEventListener(I["a"].CLICK,n.handleClick_.bind(n,-r),!1);var _=o+" "+O["d"]+" "+O["b"],f=n.element;return f.className=_,f.appendChild(p),f.appendChild(d),n.duration_=void 0!==i.duration?i.duration:250,n}return Yt(e,t),e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap(),n=e.getView();if(n){var i=n.getZoom();if(void 0!==i){var o=n.getConstrainedZoom(i+t);this.duration_>0?(n.getAnimating()&&n.cancelAnimations(),n.animate({zoom:o,duration:this.duration_,easing:Ot["b"]})):n.setZoom(o)}}},e}(kt),Bt=Ht;function qt(t){var e=t||{},n=new P["a"],i=void 0===e.zoom||e.zoom;i&&n.push(new Bt(e.zoomOptions));var o=void 0===e.rotate||e.rotate;o&&n.push(new Ut(e.rotateOptions));var r=void 0===e.attribution||e.attribution;return r&&n.push(new Vt(e.attributionOptions)),n}var Qt=n("3a39"),Jt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),$t=function(t){function e(e){var n=this;return e=Object(M["a"])({},e),e.controls||(e.controls=qt()),e.interactions||(e.interactions=Object(Qt["a"])({onFocusOnly:!0})),n=t.call(this,e)||this,n}return Jt(e,t),e.prototype.createRenderer=function(){return new j(this)},e}(Nt),te=$t,ee={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"},ne=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ie=function(t){function e(e){var n=this,i=e||{},o=Object(M["a"])({},i);return delete o.preload,delete o.useInterimTilesOnError,n=t.call(this,o)||this,n.on,n.once,n.un,n.setPreload(void 0!==i.preload?i.preload:0),n.setUseInterimTilesOnError(void 0===i.useInterimTilesOnError||i.useInterimTilesOnError),n}return ne(e,t),e.prototype.getPreload=function(){return this.get(ee.PRELOAD)},e.prototype.setPreload=function(t){this.set(ee.PRELOAD,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(ee.USE_INTERIM_TILES_ON_ERROR)},e.prototype.setUseInterimTilesOnError=function(t){this.set(ee.USE_INTERIM_TILES_ON_ERROR,t)},e}(h["a"]),oe=ie,re=n("137e"),ae=function(){function t(t,e,n,i){this.minX=t,this.maxX=e,this.minY=n,this.maxY=i}return t.prototype.contains=function(t){return this.containsXY(t[1],t[2])},t.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},t.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},t.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},t.prototype.extend=function(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function se(t,e,n,i,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=n,o.maxY=i,o):new ae(t,e,n,i)}var le=ae,ce=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ue=function(t){function e(e){var n=t.call(this,e)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=Object(c["j"])(),n.tmpTileRange_=new le(0,0,0,0),n}return ce(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),n=t.getState(),i=e.getUseInterimTilesOnError();return n==$.LOADED||n==$.EMPTY||n==$.ERROR&&!i},e.prototype.getTile=function(t,e,n,i){var o=i.pixelRatio,r=i.viewState.projection,a=this.getLayer(),s=a.getSource(),l=s.getTile(t,e,n,o,r);return l.getState()==$.ERROR&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):l.setState($.LOADED)),this.isDrawableTile(l)||(l=l.getInterimTile()),l},e.prototype.loadedTileCallback=function(e,n,i){return!!this.isDrawableTile(i)&&t.prototype.loadedTileCallback.call(this,e,n,i)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var n=t.layerStatesArray[t.layerIndex],i=t.viewState,o=i.projection,r=i.resolution,a=i.center,u=i.rotation,h=t.pixelRatio,p=this.getLayer(),d=p.getSource(),_=d.getRevision(),f=d.getTileGridForProjection(o),g=f.getZForResolution(r,d.zDirection),y=f.getResolution(g),v=t.extent,m=n.extent&&Object(ut["e"])(n.extent,o);m&&(v=Object(c["A"])(v,Object(ut["e"])(n.extent,o)));var b=d.getTilePixelRatio(h),E=Math.round(t.size[0]*b),T=Math.round(t.size[1]*b);if(u){var C=Math.round(Math.sqrt(E*E+T*T));E=C,T=C}var w=y*E/2/b,R=y*T/2/b,j=[a[0]-w,a[1]-R,a[0]+w,a[1]+R],x=f.getTileRangeForExtentAndZ(v,g),P={};P[g]={};var A=this.createLoadedTileFinder(d,o,P),I=this.tmpExtent,S=this.tmpTileRange_;this.newTiles_=!1;for(var L=x.minX;L<=x.maxX;++L)for(var D=x.minY;D<=x.maxY;++D){var F=this.getTile(g,L,D,t);if(this.isDrawableTile(F)){var N=Object(s["c"])(this);if(F.getState()==$.LOADED){P[g][F.tileCoord.toString()]=F;var z=F.inTransition(N);this.newTiles_||!z&&-1!==this.renderedTiles.indexOf(F)||(this.newTiles_=!0)}if(1===F.getAlpha(N,t.time))continue}var G=f.getTileCoordChildTileRange(F.tileCoord,S,I),k=!1;G&&(k=A(g+1,G)),k||f.forEachTileCoordParentTileRange(F.tileCoord,A,S,I)}var K=y/r;Object(l["b"])(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/b,1/b,u,-E/2,-T/2);var Z=Object(l["g"])(this.pixelTransform);this.useContainer(e,Z,n.opacity);var V=this.context,W=V.canvas;Object(l["d"])(this.inversePixelTransform,this.pixelTransform),Object(l["b"])(this.tempTransform,E/2,T/2,K,K,0,-E/2,-T/2),W.width!=E||W.height!=T?(W.width=E,W.height=T):this.containerReused||V.clearRect(0,0,E,T),m&&this.clipUnrotated(V,t,m),Object(M["a"])(V,d.getContextOptions()),this.preRender(V,t),this.renderedTiles.length=0;var X,U,Y,H=Object.keys(P).map(Number);H.sort(_t["i"]),1!==n.opacity||this.containerReused&&!d.getOpaque(t.viewState.projection)?(X=[],U=[]):H=H.reverse();for(var B=H.length-1;B>=0;--B){var q=H[B],Q=d.getTilePixelSize(q,h,o),J=f.getResolution(q),tt=J/y,et=Q[0]*tt*K,nt=Q[1]*tt*K,it=f.getTileCoordForCoordAndZ(Object(c["B"])(j),q),ot=f.getTileCoordExtent(it),rt=Object(l["a"])(this.tempTransform,[b*(ot[0]-j[0])/y,b*(j[3]-ot[3])/y]),at=b*d.getGutterForProjection(o),st=P[q];for(var lt in st){F=st[lt];var ct=F.tileCoord,ht=it[1]-ct[1],pt=Math.round(rt[0]-(ht-1)*et),dt=it[2]-ct[2],ft=Math.round(rt[1]-(dt-1)*nt),gt=(L=Math.round(rt[0]-ht*et),D=Math.round(rt[1]-dt*nt),pt-L),yt=ft-D,vt=g===q;z=vt&&1!==F.getAlpha(Object(s["c"])(this),t.time);if(!z)if(X){V.save(),Y=[L,D,L+gt,D,L+gt,D+yt,L,D+yt];for(var mt=0,bt=X.length;mt<bt;++mt)if(g!==q&&q<U[mt]){var Ot=X[mt];V.beginPath(),V.moveTo(Y[0],Y[1]),V.lineTo(Y[2],Y[3]),V.lineTo(Y[4],Y[5]),V.lineTo(Y[6],Y[7]),V.moveTo(Ot[6],Ot[7]),V.lineTo(Ot[4],Ot[5]),V.lineTo(Ot[2],Ot[3]),V.lineTo(Ot[0],Ot[1]),V.clip()}X.push(Y),U.push(q)}else V.clearRect(L,D,gt,yt);this.drawTileImage(F,t,L,D,gt,yt,at,vt),X&&!z?(V.restore(),this.renderedTiles.unshift(F)):this.renderedTiles.push(F),this.updateUsedTiles(t.usedTiles,d,F)}}this.renderedRevision=_,this.renderedResolution=y,this.extentChanged=!this.renderedExtent_||!Object(c["o"])(this.renderedExtent_,j),this.renderedExtent_=j,this.renderedPixelRatio=h,this.renderedProjection=o,this.manageTilePyramid(t,d,f,h,o,v,g,p.getPreload()),this.scheduleExpireCache(t,d),this.postRender(V,t),n.extent&&V.restore(),Z!==W.style.transform&&(W.style.transform=Z);var Et=Object(O["e"])(n.opacity),Tt=this.container;return Et!==Tt.style.opacity&&(Tt.style.opacity=Et),this.container},e.prototype.drawTileImage=function(t,e,n,i,o,r,a,l){var c=this.getTileImage(t);if(c){var u=Object(s["c"])(this),h=l?t.getAlpha(u,e.time):1,p=h!==this.context.globalAlpha;p&&(this.context.save(),this.context.globalAlpha=h),this.context.drawImage(c,a,a,c.width-2*a,c.height-2*a,n,i,o,r),p&&this.context.restore(),1!==h?e.animate=!0:l&&t.endTransition(u)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getTileImage=function(t){return t.getImage()},e.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var n=function(t,e,n){var i=Object(s["c"])(t);i in n.usedTiles&&t.expireCache(n.viewState.projection,n.usedTiles[i])}.bind(null,e);t.postRenderFunctions.push(n)}},e.prototype.updateUsedTiles=function(t,e,n){var i=Object(s["c"])(e);i in t||(t[i]={}),t[i][n.getKey()]=!0},e.prototype.manageTilePyramid=function(t,e,n,i,o,r,a,l,c){var u=Object(s["c"])(e);u in t.wantedTiles||(t.wantedTiles[u]={});var h,p,d,_,f,g,y=t.wantedTiles[u],v=t.tileQueue,m=n.getMinZoom(),b=0;for(g=m;g<=a;++g)for(p=n.getTileRangeForExtentAndZ(r,g,p),d=n.getResolution(g),_=p.minX;_<=p.maxX;++_)for(f=p.minY;f<=p.maxY;++f)a-g<=l?(++b,h=e.getTile(g,_,f,i,o),h.getState()==$.IDLE&&(y[h.getKey()]=!0,v.isKeyQueued(h.getKey())||v.enqueue([h,u,n.getTileCoordCenter(h.tileCoord),d])),void 0!==c&&c(h)):e.useTile(g,_,f,o);e.updateCacheSize(b,o)},e}(re["a"]);ue.prototype.getLayer;var he=ue,pe=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),de=function(t){function e(e){return t.call(this,e)||this}return pe(e,t),e.prototype.createRenderer=function(){return new he(this)},e}(oe),_e=de,fe=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ge=function(t){function e(e,n,i){var o=t.call(this)||this,r=i||{};return o.tileCoord=e,o.state=n,o.interimTile=null,o.key="",o.transition_=void 0===r.transition?250:r.transition,o.transitionStarts_={},o}return fe(e,t),e.prototype.changed=function(){this.dispatchEvent(I["a"].CHANGE)},e.prototype.release=function(){},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==$.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==$.LOADED){t.interimTile=null;break}t.getState()==$.LOADING?e=t:t.getState()==$.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){if(this.state!==$.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){Object(s["b"])()},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;var i=e-n+1e3/60;return i>=this.transition_?1:Object(Ot["a"])(i/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(Z["a"]),ye=ge,ve=n("6611"),me=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),be=function(t){function e(e,n,i,o,r,a){var s=t.call(this,e,n,a)||this;return s.crossOrigin_=o,s.src_=i,s.key=i,s.image_=new Image,null!==o&&(s.image_.crossOrigin=o),s.unlisten_=null,s.tileLoadFunction_=r,s}return me(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=$.LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){this.state=$.ERROR,this.unlistenImage_(),this.image_=Oe(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=$.LOADED:this.state=$.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==$.ERROR&&(this.state=$.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==$.IDLE&&(this.state=$.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(ve["a"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(ye);function Oe(){var t=Object(C["a"])(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}var Ee,Te=be,Ce=.5,we=!0,Re=10,je=.25,xe=function(){function t(t,e,n,i,o,r){this.sourceProj_=t,this.targetProj_=e;var a={},s=Object(ut["i"])(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return a[e]||(a[e]=s(t)),a[e]},this.maxSourceExtent_=i,this.errorThresholdSquared_=o*o,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&Object(c["D"])(i)==Object(c["D"])(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(c["D"])(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(c["D"])(this.targetProj_.getExtent()):null;var l=Object(c["B"])(n),u=Object(c["C"])(n),h=Object(c["v"])(n),p=Object(c["u"])(n),d=this.transformInv_(l),_=this.transformInv_(u),f=this.transformInv_(h),g=this.transformInv_(p),y=Re+(r?Math.max(0,Math.ceil(Object(ht["d"])(Object(c["t"])(n)/(r*r*256*256)))):0);if(this.addQuad_(l,u,h,p,d,_,f,g,y),this.wrapsXInSource_){var v=1/0;this.triangles_.forEach((function(t,e,n){v=Math.min(v,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-v>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-v>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-v>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-v>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]),i=Math.max(e[0][0],e[1][0],e[2][0]);i-n<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}a={}}return t.prototype.addTriangle_=function(t,e,n,i,o,r){this.triangles_.push({source:[i,o,r],target:[t,e,n]})},t.prototype.addQuad_=function(t,e,n,i,o,r,a,s,l){var u=Object(c["b"])([o,r,a,s]),h=this.sourceWorldWidth_?Object(c["D"])(u)/this.sourceWorldWidth_:null,p=this.sourceWorldWidth_,d=this.sourceProj_.canWrapX()&&h>.5&&h<1,_=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var f=Object(c["b"])([t,e,n,i]),g=Object(c["D"])(f)/this.targetWorldWidth_;_=g>je||_}!d&&this.sourceProj_.isGlobal()&&h&&(_=h>je||_)}if(!(!_&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3]))||Object(c["E"])(u,this.maxSourceExtent_)){var y=0;if(!_&&(!isFinite(o[0])||!isFinite(o[1])||!isFinite(r[0])||!isFinite(r[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(s[0])||!isFinite(s[1])))if(l>0)_=!0;else if(y=(isFinite(o[0])&&isFinite(o[1])?0:8)+(isFinite(r[0])&&isFinite(r[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(s[0])&&isFinite(s[1])?0:1),1!=y&&2!=y&&4!=y&&8!=y)return;if(l>0){if(!_){var v=[(t[0]+n[0])/2,(t[1]+n[1])/2],m=this.transformInv_(v),b=void 0;if(d){var O=(Object(ht["e"])(o[0],p)+Object(ht["e"])(a[0],p))/2;b=O-Object(ht["e"])(m[0],p)}else b=(o[0]+a[0])/2-m[0];var E=(o[1]+a[1])/2-m[1],T=b*b+E*E;_=T>this.errorThresholdSquared_}if(_){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var C=[(e[0]+n[0])/2,(e[1]+n[1])/2],w=this.transformInv_(C),R=[(i[0]+t[0])/2,(i[1]+t[1])/2],j=this.transformInv_(R);this.addQuad_(t,e,C,R,o,r,w,j,l-1),this.addQuad_(R,C,n,i,j,w,a,s,l-1)}else{var x=[(t[0]+e[0])/2,(t[1]+e[1])/2],P=this.transformInv_(x),A=[(n[0]+i[0])/2,(n[1]+i[1])/2],I=this.transformInv_(A);this.addQuad_(t,x,A,i,o,P,I,s,l-1),this.addQuad_(x,e,n,A,P,r,a,I,l-1)}return}}if(d){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&y)&&this.addTriangle_(t,n,i,o,a,s),0==(14&y)&&this.addTriangle_(t,n,e,o,a,r),y&&(0==(13&y)&&this.addTriangle_(e,i,t,r,s,o),0==(7&y)&&this.addTriangle_(e,i,n,r,s,a))}},t.prototype.calculateSourceExtent=function(){var t=Object(c["j"])();return this.triangles_.forEach((function(e,n,i){var o=e.source;Object(c["q"])(t,o[0]),Object(c["q"])(t,o[1]),Object(c["q"])(t,o[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}(),Pe=xe,Ae={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1};function Ie(t,e,n,i,o){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(i,o),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,i)+1,Math.max(n,o)),t.restore()}function Se(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function Le(){if(void 0===Ee){var t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",Ie(t,4,5,4,0),Ie(t,4,5,0,5);var e=t.getImageData(0,0,3,3).data;Ee=Se(e,0)||Se(e,4)||Se(e,8)}return Ee}function Me(t,e,n,i){var o=Object(ut["o"])(n,e,t),r=Object(ut["h"])(e,i,n),a=e.getMetersPerUnit();void 0!==a&&(r*=a);var s=t.getMetersPerUnit();void 0!==s&&(r/=s);var l=t.getExtent();if(!l||Object(c["f"])(l,o)){var u=Object(ut["h"])(t,r,o)/r;isFinite(u)&&u>0&&(r/=u)}return r}function De(t,e,n,i){var o=Object(c["w"])(n),r=Me(t,e,o,i);return(!isFinite(r)||r<=0)&&Object(c["s"])(n,(function(n){return r=Me(t,e,n,i),isFinite(r)&&r>0})),r}function Fe(t,e,n,i,o,r,a,s,l,u,h,p){var d=Object(C["a"])(Math.round(n*t),Math.round(n*e));if(Object(M["a"])(d,p),0===l.length)return d.canvas;function _(t){return Math.round(t*n)/n}d.scale(n,n),d.globalCompositeOperation="lighter";var f=Object(c["j"])();l.forEach((function(t,e,n){Object(c["p"])(f,t.extent)}));var g=Object(c["D"])(f),y=Object(c["z"])(f),v=Object(C["a"])(Math.round(n*g/i),Math.round(n*y/i));Object(M["a"])(v,p);var m=n/i;l.forEach((function(t,e,n){var i=t.extent[0]-f[0],o=-(t.extent[3]-f[3]),r=Object(c["D"])(t.extent),a=Object(c["z"])(t.extent);t.image.width>0&&t.image.height>0&&v.drawImage(t.image,u,u,t.image.width-2*u,t.image.height-2*u,i*m,o*m,r*m,a*m)}));var b=Object(c["B"])(a);return s.getTriangles().forEach((function(t,e,o){var a=t.source,s=t.target,l=a[0][0],c=a[0][1],u=a[1][0],h=a[1][1],g=a[2][0],y=a[2][1],m=_((s[0][0]-b[0])/r),O=_(-(s[0][1]-b[1])/r),E=_((s[1][0]-b[0])/r),T=_(-(s[1][1]-b[1])/r),C=_((s[2][0]-b[0])/r),w=_(-(s[2][1]-b[1])/r),R=l,j=c;l=0,c=0,u-=R,h-=j,g-=R,y-=j;var x=[[u,h,0,0,E-m],[g,y,0,0,C-m],[0,0,u,h,T-O],[0,0,g,y,w-O]],P=Object(ht["f"])(x);if(P){if(d.save(),d.beginPath(),Le()||p===Ae){d.moveTo(E,T);for(var A=4,I=m-E,S=O-T,L=0;L<A;L++)d.lineTo(E+_((L+1)*I/A),T+_(L*S/(A-1))),L!=A-1&&d.lineTo(E+_((L+1)*I/A),T+_((L+1)*S/(A-1)));d.lineTo(C,w)}else d.moveTo(E,T),d.lineTo(m,O),d.lineTo(C,w);d.clip(),d.transform(P[0],P[2],P[1],P[3],m,O),d.translate(f[0]-R,f[3]-j),d.scale(i/n,-i/n),d.drawImage(v.canvas,0,0),d.restore()}})),h&&(d.save(),d.globalCompositeOperation="source-over",d.strokeStyle="black",d.lineWidth=1,s.getTriangles().forEach((function(t,e,n){var i=t.target,o=(i[0][0]-b[0])/r,a=-(i[0][1]-b[1])/r,s=(i[1][0]-b[0])/r,l=-(i[1][1]-b[1])/r,c=(i[2][0]-b[0])/r,u=-(i[2][1]-b[1])/r;d.beginPath(),d.moveTo(s,l),d.lineTo(o,a),d.lineTo(c,u),d.closePath(),d.stroke()})),d.restore()),d.canvas}var Ne=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ze=function(t){function e(e,n,i,o,r,a,s,l,u,h,p,d){var _=t.call(this,r,$.IDLE)||this;_.renderEdges_=void 0!==p&&p,_.contextOptions_=d,_.pixelRatio_=s,_.gutter_=l,_.canvas_=null,_.sourceTileGrid_=n,_.targetTileGrid_=o,_.wrappedTileCoord_=a||r,_.sourceTiles_=[],_.sourcesListenerKeys_=null,_.sourceZ_=0;var f=o.getTileCoordExtent(_.wrappedTileCoord_),g=_.targetTileGrid_.getExtent(),y=_.sourceTileGrid_.getExtent(),v=g?Object(c["A"])(f,g):f;if(0===Object(c["t"])(v))return _.state=$.EMPTY,_;var m=e.getExtent();m&&(y=y?Object(c["A"])(y,m):m);var b=o.getResolution(_.wrappedTileCoord_[0]),O=De(e,i,v,b);if(!isFinite(O)||O<=0)return _.state=$.EMPTY,_;var E=void 0!==h?h:Ce;if(_.triangulation_=new Pe(e,i,v,y,O*E,b),0===_.triangulation_.getTriangles().length)return _.state=$.EMPTY,_;_.sourceZ_=n.getZForResolution(O);var T=_.triangulation_.calculateSourceExtent();if(y&&(e.canWrapX()?(T[1]=Object(ht["a"])(T[1],y[1],y[3]),T[3]=Object(ht["a"])(T[3],y[1],y[3])):T=Object(c["A"])(T,y)),Object(c["t"])(T)){for(var C=n.getTileRangeForExtentAndZ(T,_.sourceZ_),w=C.minX;w<=C.maxX;w++)for(var R=C.minY;R<=C.maxY;R++){var j=u(_.sourceZ_,w,R,s);j&&_.sourceTiles_.push(j)}0===_.sourceTiles_.length&&(_.state=$.EMPTY)}else _.state=$.EMPTY;return _}return Ne(e,t),e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,n,i){e&&e.getState()==$.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=$.ERROR;else{var e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),i="number"===typeof n?n:n[0],o="number"===typeof n?n:n[1],r=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),s=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Fe(i,o,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),r,s,this.triangulation_,t,this.gutter_,this.renderEdges_,this.contextOptions_),this.state=$.LOADED}this.changed()},e.prototype.load=function(){if(this.state==$.IDLE){this.state=$.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,n,i){var o=e.getState();if(o==$.IDLE||o==$.LOADING){t++;var r=Object(T["a"])(e,I["a"].CHANGE,(function(n){var i=e.getState();i!=$.LOADED&&i!=$.ERROR&&i!=$.EMPTY||(Object(T["c"])(r),t--,0===t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(r)}}.bind(this)),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t,e,n){var i=t.getState();i==$.IDLE&&t.load()}))}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(T["c"]),this.sourcesListenerKeys_=null},e}(ye),Ge=ze,ke=function(){function t(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return t.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},t.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},t.prototype.forEach=function(t){var e=this.oldest_;while(e)t(e.value_,e.key_,this),e=e.newer},t.prototype.get=function(t,e){var n=this.entries_[t];return Object(L["a"])(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},t.prototype.remove=function(t){var e=this.entries_[t];return Object(L["a"])(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.key_;return e},t.prototype.getValues=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.value_;return e},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},t.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},t.prototype.set=function(t,e){Object(L["a"])(!(t in this.entries_),16);var n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_},t.prototype.setSize=function(t){this.highWaterMark=t},t}(),Ke=ke;function Ze(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function Ve(t,e,n){return t+"/"+e+"/"+n}function We(t){return Ve(t[0],t[1],t[2])}function Xe(t){return t.split("/").map(Number)}function Ue(t){return(t[1]<<t[0])+t[2]}function Ye(t,e){var n=t[0],i=t[1],o=t[2];if(e.getMinZoom()>n||n>e.getMaxZoom())return!1;var r=e.getFullTileRange(n);return!r||r.containsXY(i,o)}var He=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Be=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return He(e,t),e.prototype.expireCache=function(t){while(this.canExpireCache()){var e=this.peekLast();if(e.getKey()in t)break;this.pop().release()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=this.peekFirstKey(),e=Xe(t),n=e[0];this.forEach(function(t){t.tileCoord[0]!==n&&(this.remove(We(t.tileCoord)),t.release())}.bind(this))}},e}(Ke),qe=Be,Qe={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},Je=n("cef7"),$e=n("ff80"),tn=n("3820"),en=[0,0,0],nn=function(){function t(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Object(L["a"])(Object(_t["g"])(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(var n=0,i=this.resolutions_.length-1;n<i;++n)if(e){if(this.resolutions_[n]/this.resolutions_[n+1]!==e){e=void 0;break}}else e=this.resolutions_[n]/this.resolutions_[n+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,Object(L["a"])(this.origins_.length==this.resolutions_.length,20));var o=t.extent;void 0===o||this.origin_||this.origins_||(this.origin_=Object(c["B"])(o)),Object(L["a"])(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,Object(L["a"])(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:ct,Object(L["a"])(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==o?o:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map((function(t,e){var n=new le(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(o){var i=this.getTileRangeForExtentAndZ(o,e);n.minX=Math.max(i.minX,n.minX),n.maxX=Math.min(i.maxX,n.maxX),n.minY=Math.max(i.minY,n.minY),n.maxY=Math.min(i.maxY,n.maxY)}return n}),this):o&&this.calculateTileRanges_(o)}return t.prototype.forEachTileCoord=function(t,e,n){for(var i=this.getTileRangeForExtentAndZ(t,e),o=i.minX,r=i.maxX;o<=r;++o)for(var a=i.minY,s=i.maxY;a<=s;++a)n([e,o,a])},t.prototype.forEachTileCoordParentTileRange=function(t,e,n,i){var o,r,a,s=null,l=t[0]-1;2===this.zoomFactor_?(r=t[1],a=t[2]):s=this.getTileCoordExtent(t,i);while(l>=this.minZoom){if(2===this.zoomFactor_?(r=Math.floor(r/2),a=Math.floor(a/2),o=se(r,r,a,a,n)):o=this.getTileRangeForExtentAndZ(s,l,n),e(l,o))return!0;--l}return!1},t.prototype.getExtent=function(){return this.extent_},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.getMinZoom=function(){return this.minZoom},t.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},t.prototype.getResolution=function(t){return this.resolutions_[t]},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getTileCoordChildTileRange=function(t,e,n){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var i=2*t[1],o=2*t[2];return se(i,i+1,o,o+1,e)}var r=this.getTileCoordExtent(t,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(r,t[0]+1,e)}return null},t.prototype.getTileRangeForTileCoordAndZ=function(t,e,n){if(e>this.maxZoom||e<this.minZoom)return null;var i=t[0],o=t[1],r=t[2];if(e===i)return se(o,r,o,r,n);if(this.zoomFactor_){var a=Math.pow(this.zoomFactor_,e-i),s=Math.floor(o*a),l=Math.floor(r*a);if(e<i)return se(s,s,l,l,n);var c=Math.floor(a*(o+1))-1,u=Math.floor(a*(r+1))-1;return se(s,c,l,u,n)}var h=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(h,e,n)},t.prototype.getTileRangeExtent=function(t,e,n){var i=this.getOrigin(t),o=this.getResolution(t),r=Object(Lt["c"])(this.getTileSize(t),this.tmpSize_),a=i[0]+e.minX*r[0]*o,s=i[0]+(e.maxX+1)*r[0]*o,l=i[1]+e.minY*r[1]*o,u=i[1]+(e.maxY+1)*r[1]*o;return Object(c["k"])(a,l,s,u,n)},t.prototype.getTileRangeForExtentAndZ=function(t,e,n){var i=en;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,i);var o=i[1],r=i[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,i),se(o,i[1],r,i[2],n)},t.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),n=this.getResolution(t[0]),i=Object(Lt["c"])(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*i[0]*n,e[1]-(t[2]+.5)*i[1]*n]},t.prototype.getTileCoordExtent=function(t,e){var n=this.getOrigin(t[0]),i=this.getResolution(t[0]),o=Object(Lt["c"])(this.getTileSize(t[0]),this.tmpSize_),r=n[0]+t[1]*o[0]*i,a=n[1]-(t[2]+1)*o[1]*i,s=r+o[0]*i,l=a+o[1]*i;return Object(c["k"])(r,a,s,l,e)},t.prototype.getTileCoordForCoordAndResolution=function(t,e,n){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,n)},t.prototype.getTileCoordForXYAndResolution_=function(t,e,n,i,o){var r=this.getZForResolution(n),a=n/this.getResolution(r),s=this.getOrigin(r),l=Object(Lt["c"])(this.getTileSize(r),this.tmpSize_),c=i?.5:0,u=i?.5:0,h=Math.floor((t-s[0])/n+c),p=Math.floor((s[1]-e)/n+u),d=a*h/l[0],_=a*p/l[1];return i?(d=Math.ceil(d)-1,_=Math.ceil(_)-1):(d=Math.floor(d),_=Math.floor(_)),Ze(r,d,_,o)},t.prototype.getTileCoordForXYAndZ_=function(t,e,n,i,o){var r=this.getOrigin(n),a=this.getResolution(n),s=Object(Lt["c"])(this.getTileSize(n),this.tmpSize_),l=i?.5:0,c=i?.5:0,u=Math.floor((t-r[0])/a+l),h=Math.floor((r[1]-e)/a+c),p=u/s[0],d=h/s[1];return i?(p=Math.ceil(p)-1,d=Math.ceil(d)-1):(p=Math.floor(p),d=Math.floor(d)),Ze(n,p,d,o)},t.prototype.getTileCoordForCoordAndZ=function(t,e,n){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,n)},t.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},t.prototype.getTileSize=function(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]},t.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null},t.prototype.getZForResolution=function(t,e){var n=Object(_t["h"])(this.resolutions_,t,e||0);return Object(ht["a"])(n,this.minZoom,this.maxZoom)},t.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,n=new Array(e),i=this.minZoom;i<e;++i)n[i]=this.getTileRangeForExtentAndZ(t,i);this.fullTileRanges_=n},t}(),on=nn;function rn(t){var e=t.getDefaultTileGrid();return e||(e=cn(t),t.setDefaultTileGrid(e)),e}function an(t,e,n){var i=e[0],o=t.getTileCoordCenter(e),r=un(n);if(Object(c["f"])(r,o))return e;var a=Object(c["D"])(r),s=Math.ceil((r[0]-o[0])/a);return o[0]+=a*s,t.getTileCoordForCoordAndZ(o,i)}function sn(t,e,n,i){var o=void 0!==i?i:tn["a"].TOP_LEFT,r=ln(t,e,n);return new on({extent:t,origin:Object(c["x"])(t,o),resolutions:r,tileSize:n})}function ln(t,e,n,i){for(var o=void 0!==e?e:lt,r=Object(c["z"])(t),a=Object(c["D"])(t),s=Object(Lt["c"])(void 0!==n?n:ct),l=i>0?i:Math.max(a/s[0],r/s[1]),u=o+1,h=new Array(u),p=0;p<u;++p)h[p]=l/Math.pow(2,p);return h}function cn(t,e,n,i){var o=un(t);return sn(o,e,n,i)}function un(t){t=Object(ut["g"])(t);var e=t.getExtent();if(!e){var n=180*ut["a"][rt["b"].DEGREES]/t.getMetersPerUnit();e=Object(c["k"])(-n,-n,n,n)}return e}var hn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),pn=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX})||this;n.on,n.once,n.un,n.opaque_=void 0!==e.opaque&&e.opaque,n.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,n.tileGrid=void 0!==e.tileGrid?e.tileGrid:null;var i=[256,256],o=e.tileGrid;return o&&Object(Lt["c"])(o.getTileSize(o.getMinZoom()),i),n.tileCache=new qe(e.cacheSize||0),n.tmpSize=[0,0],n.key_=e.key||"",n.tileOptions={transition:e.transition},n.zDirection=e.zDirection?e.zDirection:0,n}return hn(e,t),e.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},e.prototype.expireCache=function(t,e){var n=this.getTileCacheForProjection(t);n&&n.expireCache(e)},e.prototype.forEachLoadedTile=function(t,e,n,i){var o=this.getTileCacheForProjection(t);if(!o)return!1;for(var r,a,s,l=!0,c=n.minX;c<=n.maxX;++c)for(var u=n.minY;u<=n.maxY;++u)a=Ve(e,c,u),s=!1,o.containsKey(a)&&(r=o.get(a),s=r.getState()===$.LOADED,s&&(s=!1!==i(r))),s||(l=!1);return l},e.prototype.getGutterForProjection=function(t){return 0},e.prototype.getKey=function(){return this.key_},e.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},e.prototype.getOpaque=function(t){return this.opaque_},e.prototype.getResolutions=function(){return this.tileGrid.getResolutions()},e.prototype.getTile=function(t,e,n,i,o){return Object(s["b"])()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:rn(t)},e.prototype.getTileCacheForProjection=function(t){return Object(L["a"])(Object(ut["c"])(this.getProjection(),t),68),this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,n){var i=this.getTileGridForProjection(n),o=this.getTilePixelRatio(e),r=Object(Lt["c"])(i.getTileSize(t),this.tmpSize);return 1==o?r:Object(Lt["b"])(r,o,this.tmpSize)},e.prototype.getTileCoordForTileUrlFunction=function(t,e){var n=void 0!==e?e:this.getProjection(),i=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(t=an(i,t,n)),Ye(t,i)?t:null},e.prototype.clear=function(){this.tileCache.clear()},e.prototype.refresh=function(){this.clear(),t.prototype.refresh.call(this)},e.prototype.updateCacheSize=function(t,e){var n=this.getTileCacheForProjection(e);t>n.highWaterMark&&(n.highWaterMark=t)},e.prototype.useTile=function(t,e,n,i){},e}($e["a"]),dn=function(t){function e(e,n){var i=t.call(this,e)||this;return i.tile=n,i}return hn(e,t),e}(Je["a"]),_n=pn;function fn(t,e){var n=/\{z\}/g,i=/\{x\}/g,o=/\{y\}/g,r=/\{-y\}/g;return function(a,s,l){return a?t.replace(n,a[0].toString()).replace(i,a[1].toString()).replace(o,a[2].toString()).replace(r,(function(){var t=a[0],n=e.getFullTileRange(t);Object(L["a"])(n,55);var i=n.getHeight()-a[2]-1;return i.toString()})):void 0}}function gn(t,e){for(var n=t.length,i=new Array(n),o=0;o<n;++o)i[o]=fn(t[o],e);return yn(i)}function yn(t){return 1===t.length?t[0]:function(e,n,i){if(e){var o=Ue(e),r=Object(ht["e"])(o,t.length);return t[r](e,n,i)}}}function vn(t){var e=[],n=/\{([a-z])-([a-z])\}/.exec(t);if(n){var i=n[1].charCodeAt(0),o=n[2].charCodeAt(0),r=void 0;for(r=i;r<=o;++r)e.push(t.replace(n[0],String.fromCharCode(r)));return e}if(n=/\{(\d+)-(\d+)\}/.exec(t),n){for(var a=parseInt(n[2],10),s=parseInt(n[1],10);s<=a;s++)e.push(t.replace(n[0],s.toString()));return e}return e.push(t),e}var mn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),bn=function(t){function e(n){var i=t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,opaque:n.opaque,projection:n.projection,state:n.state,tileGrid:n.tileGrid,tilePixelRatio:n.tilePixelRatio,wrapX:n.wrapX,transition:n.transition,key:n.key,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this;return i.generateTileUrlFunction_=i.tileUrlFunction===e.prototype.tileUrlFunction,i.tileLoadFunction=n.tileLoadFunction,n.tileUrlFunction&&(i.tileUrlFunction=n.tileUrlFunction),i.urls=null,n.urls?i.setUrls(n.urls):n.url&&i.setUrl(n.url),i.tileLoadingKeys_={},i}return mn(e,t),e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,n=t.target,i=Object(s["c"])(n),o=n.getState();o==$.LOADING?(this.tileLoadingKeys_[i]=!0,e=Qe.TILELOADSTART):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],e=o==$.ERROR?Qe.TILELOADERROR:o==$.LOADED?Qe.TILELOADEND:void 0),void 0!=e&&this.dispatchEvent(new dn(e,n))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),"undefined"!==typeof e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=vn(t);this.urls=e,this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(gn(t,this.tileGrid),e):this.setKey(e)},e.prototype.tileUrlFunction=function(t,e,n){},e.prototype.useTile=function(t,e,n){var i=Ve(t,e,n);this.tileCache.containsKey(i)&&this.tileCache.get(i)},e}(_n),On=bn,En=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Tn=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Cn,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this;return n.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,n.tileClass=void 0!==e.tileClass?e.tileClass:Te,n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,n.contextOptions_=!1===e.imageSmoothing?Ae:void 0,n.renderReprojectionEdges_=!1,n}return En(e,t),e.prototype.canExpireCache=function(){if(!we)return t.prototype.canExpireCache.call(this);if(this.tileCache.canExpireCache())return!0;for(var e in this.tileCacheForProjection)if(this.tileCacheForProjection[e].canExpireCache())return!0;return!1},e.prototype.expireCache=function(e,n){if(we){var i=this.getTileCacheForProjection(e);for(var o in this.tileCache.expireCache(this.tileCache==i?n:{}),this.tileCacheForProjection){var r=this.tileCacheForProjection[o];r.expireCache(r==i?n:{})}}else t.prototype.expireCache.call(this,e,n)},e.prototype.getContextOptions=function(){return this.contextOptions_},e.prototype.getGutterForProjection=function(t){return we&&this.getProjection()&&t&&!Object(ut["c"])(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getKey=function(){return t.prototype.getKey.call(this)+(this.contextOptions_?"\n"+JSON.stringify(this.contextOptions_):"")},e.prototype.getOpaque=function(e){return!(we&&this.getProjection()&&e&&!Object(ut["c"])(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(e){if(!we)return t.prototype.getTileGridForProjection.call(this,e);var n=this.getProjection();if(!this.tileGrid||n&&!Object(ut["c"])(n,e)){var i=Object(s["c"])(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=rn(e)),this.tileGridForProjection[i]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(e){if(!we)return t.prototype.getTileCacheForProjection.call(this,e);var n=this.getProjection();if(!n||Object(ut["c"])(n,e))return this.tileCache;var i=Object(s["c"])(e);return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new qe(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]},e.prototype.createTile_=function(t,e,n,i,o,r){var a=[t,e,n],s=this.getTileCoordForTileUrlFunction(a,o),l=s?this.tileUrlFunction(s,i,o):void 0,c=new this.tileClass(a,void 0!==l?$.IDLE:$.EMPTY,void 0!==l?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return c.key=r,c.addEventListener(I["a"].CHANGE,this.handleTileChange.bind(this)),c},e.prototype.getTile=function(t,e,n,i,o){var r=this.getProjection();if(we&&r&&o&&!Object(ut["c"])(r,o)){var a=this.getTileCacheForProjection(o),s=[t,e,n],l=void 0,c=We(s);a.containsKey(c)&&(l=a.get(c));var u=this.getKey();if(l&&l.key==u)return l;var h=this.getTileGridForProjection(r),p=this.getTileGridForProjection(o),d=this.getTileCoordForTileUrlFunction(s,o),_=new Ge(r,h,o,p,s,d,this.getTilePixelRatio(i),this.getGutter(),function(t,e,n,i){return this.getTileInternal(t,e,n,i,r)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.contextOptions_);return _.key=u,l?(_.interimTile=l,_.refreshInterimChain(),a.replace(c,_)):a.set(c,_),_}return this.getTileInternal(t,e,n,i,r||o)},e.prototype.getTileInternal=function(t,e,n,i,o){var r=null,a=Ve(t,e,n),s=this.getKey();if(this.tileCache.containsKey(a)){if(r=this.tileCache.get(a),r.key!=s){var l=r;r=this.createTile_(t,e,n,i,o,s),l.getState()==$.IDLE?r.interimTile=l.interimTile:r.interimTile=l,r.refreshInterimChain(),this.tileCache.replace(a,r)}}else r=this.createTile_(t,e,n,i,o,s),this.tileCache.set(a,r);return r},e.prototype.setRenderReprojectionEdges=function(t){if(we&&this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,e){if(we){var n=Object(ut["g"])(t);if(n){var i=Object(s["c"])(n);i in this.tileGridForProjection||(this.tileGridForProjection[i]=e)}}},e}(On);function Cn(t,e){t.getImage().src=e}var wn=Tn,Rn={KVP:"KVP",REST:"REST"};function jn(t,e){var n=[];Object.keys(e).forEach((function(t){null!==e[t]&&void 0!==e[t]&&n.push(t+"="+encodeURIComponent(e[t]))}));var i=n.join("&");return t=t.replace(/[?&]$/,""),t=-1===t.indexOf("?")?t+"?":t+"&",t+i}var xn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Pn=function(t){function e(e){var n=t.call(this,{extent:e.extent,origin:e.origin,origins:e.origins,resolutions:e.resolutions,tileSize:e.tileSize,tileSizes:e.tileSizes,sizes:e.sizes})||this;return n.matrixIds_=e.matrixIds,n}return xn(e,t),e.prototype.getMatrixId=function(t){return this.matrixIds_[t]},e.prototype.getMatrixIds=function(){return this.matrixIds_},e}(on),An=Pn;var In=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Sn=function(t){function e(e){var n=this,i=void 0!==e.requestEncoding?e.requestEncoding:Rn.KVP,o=e.tileGrid,r=e.urls;return void 0===r&&void 0!==e.url&&(r=vn(e.url)),n=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,imageSmoothing:e.imageSmoothing,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:o,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,urls:r,wrapX:void 0!==e.wrapX&&e.wrapX,transition:e.transition,zDirection:e.zDirection})||this,n.version_=void 0!==e.version?e.version:"1.0.0",n.format_=void 0!==e.format?e.format:"image/jpeg",n.dimensions_=void 0!==e.dimensions?e.dimensions:{},n.layer_=e.layer,n.matrixSet_=e.matrixSet,n.style_=e.style,n.requestEncoding_=i,n.setKey(n.getKeyForDimensions_()),r&&r.length>0&&(n.tileUrlFunction=yn(r.map(n.createFromWMTSTemplate.bind(n)))),n}return In(e,t),e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.setTileUrlFunction(yn(t.map(this.createFromWMTSTemplate.bind(this))),e)},e.prototype.getDimensions=function(){return this.dimensions_},e.prototype.getFormat=function(){return this.format_},e.prototype.getLayer=function(){return this.layer_},e.prototype.getMatrixSet=function(){return this.matrixSet_},e.prototype.getRequestEncoding=function(){return this.requestEncoding_},e.prototype.getStyle=function(){return this.style_},e.prototype.getVersion=function(){return this.version_},e.prototype.getKeyForDimensions_=function(){var t=0,e=[];for(var n in this.dimensions_)e[t++]=n+"-"+this.dimensions_[n];return e.join("/")},e.prototype.updateDimensions=function(t){Object(M["a"])(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e.prototype.createFromWMTSTemplate=function(t){var e=this.requestEncoding_,n={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};e==Rn.KVP&&Object(M["a"])(n,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t=e==Rn.KVP?jn(t,n):t.replace(/\{(\w+?)\}/g,(function(t,e){return e.toLowerCase()in n?n[e.toLowerCase()]:t}));var i=this.tileGrid,o=this.dimensions_;return function(n,r,a){if(n){var s={TileMatrix:i.getMatrixId(n[0]),TileCol:n[1],TileRow:n[2]};Object(M["a"])(s,o);var l=t;return l=e==Rn.KVP?jn(l,s):l.replace(/\{(\w+?)\}/g,(function(t,e){return s[e]})),l}}},e}(wn),Ln=Sn;n("f26b");var Mn={data:function(){return{TDT_Mercator:{vector_layer:{id:"vec_w",layer_id:"vec"},vector_layer_annotation:{id:"cva_w",layer_id:"cva"},raster_layer:{id:"img_w",layer_id:"img"},raster_layer_annotation:{id:"cia_w",layer_id:"cia"},topography_layer:{id:"ter_w",layer_id:"ter"},topography_layer_annotation:{id:"cta_w",layer_id:"cta"},national_boundary:{id:"ibo_w",layer_id:"ibo"}},TDT_lnglat:{vector_layer:{id:"vec_c",layer_id:"vec"},vector_layer_annotation:{id:"cva_c",layer_id:"cva"},raster_layer:{id:"img_c",layer_id:"img"},raster_layer_annotation:{id:"cia_c",layer_id:"cia"},topography_layer:{id:"ter_c",layer_id:"ter"},topography_layer_annotation:{id:"cta_c",layer_id:"cta"},national_boundary:{id:"ibo_c",layer_id:"ibo"}},TDT_layer_common_config:{SERVICE:"WMTS",REQUEST:"GetTile",VERSION:"1.0.0",STYLE:"default",TILEMATRIXSET:"w",TILEMATRIX:"{z}",TILEROW:"{y}",TILECOL:"{x}",FORMAT:"tiles"},tdt_url:"http://t{0-7}.tianditu.gov.cn",tdt_tk:"e90d56e5a09d1767899ad45846b0cefd",TDT_Mercator_common_config:"&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&STYLE=default&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=tiles",TDT_lnglat_common_config:"&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&STYLE=default&TILEMATRIXSET=c&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=tiles",source:null,layer:null,lon:0,lat:0}},props:{param:{type:Object,default:null}},components:{},mounted:function(){var t,e,n=this;null!=this.param?(t=null!=this.param.lon&&null!=this.param.lat?Object(ut["o"])([this.param.lon,this.param.lat],"EPSG:4326","EPSG:3857"):Object(ut["o"])([systemConfig.mapDefault.center.lon,systemConfig.mapDefault.center.lat],"EPSG:4326","EPSG:3857"),e=null!=this.param.zoom?this.param.zoom:systemConfig.mapDefault.zoom):(t=Object(ut["o"])([systemConfig.mapDefault.center.lon,systemConfig.mapDefault.center.lat],"EPSG:4326","EPSG:3857"),e=systemConfig.mapDefault.zoom);var i=new St({center:t,zoom:e,constrainResolution:!0});n.initMap(i)},methods:{initMap:function(t){var e=this;return new Promise((function(n,i){var o=new te({target:"map",logo:!1,controls:qt({attribution:!1,zoom:!1,rotate:!1}),view:t});globalVariable.map=o,o.addLayer(e.createLayer("img","w")),o.addLayer(e.createLayer("cia","w")),n()}))},createLayer:function(t,e){for(var n=Object(ut["g"])("EPSG:3857"),i=n.getExtent(),o=Object(c["D"])(i)/256,r=new Array(18),a=new Array(18),s=1;s<19;++s)r[s]=o/Math.pow(2,s),a[s]=s;var l=this.tdt_url+"/"+t+"_"+e+"/wmts?tk="+this.tdt_tk,u=new _e({source:new Ln({url:l,layer:t,matrixSet:e,format:"tiles",style:"default",projection:n,tileGrid:new An({origin:Object(c["B"])(i),resolutions:r,matrixIds:a}),wrapX:!0})});return u}},computed:{},watch:{}},Dn=Mn,Fn=(n("2a29"),n("2877")),Nn=Object(Fn["a"])(Dn,i,o,!1,null,"50b980b5",null);e["default"]=Nn.exports},f26b:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII="}}]);