ry-vue-map 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.MD +1 -1
- package/lib/ryui.common.js +38444 -73751
- package/lib/ryui.common.js.gz +0 -0
- package/lib/ryui.css +1 -1
- package/lib/ryui.umd.js +38444 -73751
- package/lib/ryui.umd.js.gz +0 -0
- package/lib/ryui.umd.min.js +6 -13
- package/lib/ryui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/src/components/maps/ryClustersMarker/src/index.vue +1 -1
- package/src/components/maps/ryMap/src/index.vue +3 -2
- package/src/utils/lMapServices.js +2 -3
- package/src/views/map/index.vue +11 -3
- package/lib/ryui.common.0.js +0 -6852
- package/lib/ryui.common.0.js.gz +0 -0
- package/lib/ryui.common.2.js +0 -1034
- package/lib/ryui.common.2.js.gz +0 -0
- package/lib/ryui.common.3.js +0 -268
- package/lib/ryui.common.4.js +0 -163
- package/lib/ryui.common.5.js +0 -144
- package/lib/ryui.common.6.js +0 -177
- package/lib/ryui.common.7.js +0 -2373
- package/lib/ryui.common.7.js.gz +0 -0
- package/lib/ryui.common.8.js +0 -47
- package/lib/ryui.common.8.js.gz +0 -0
- package/lib/ryui.common.9.js +0 -23
- package/lib/ryui.umd.0.js +0 -6852
- package/lib/ryui.umd.0.js.gz +0 -0
- package/lib/ryui.umd.2.js +0 -1034
- package/lib/ryui.umd.2.js.gz +0 -0
- package/lib/ryui.umd.3.js +0 -268
- package/lib/ryui.umd.4.js +0 -163
- package/lib/ryui.umd.5.js +0 -144
- package/lib/ryui.umd.6.js +0 -177
- package/lib/ryui.umd.7.js +0 -2373
- package/lib/ryui.umd.7.js.gz +0 -0
- package/lib/ryui.umd.8.js +0 -47
- package/lib/ryui.umd.8.js.gz +0 -0
- package/lib/ryui.umd.9.js +0 -23
- package/lib/ryui.umd.min.0.js +0 -3
- package/lib/ryui.umd.min.0.js.gz +0 -0
- package/lib/ryui.umd.min.2.js +0 -1
- package/lib/ryui.umd.min.2.js.gz +0 -0
- package/lib/ryui.umd.min.3.js +0 -1
- package/lib/ryui.umd.min.4.js +0 -1
- package/lib/ryui.umd.min.5.js +0 -1
- package/lib/ryui.umd.min.6.js +0 -1
- package/lib/ryui.umd.min.7.js +0 -2
- package/lib/ryui.umd.min.7.js.gz +0 -0
- package/lib/ryui.umd.min.8.js +0 -1
- package/lib/ryui.umd.min.8.js.gz +0 -0
- package/lib/ryui.umd.min.9.js +0 -1
package/lib/ryui.umd.min.js
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["ryui"]=e():t["ryui"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){function e(e){for(var r,i,o=e[0],a=e[1],s=0,l=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(n,i)&&n[i]&&l.push(n[i][0]),n[i]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r]);u&&u(e);while(l.length)l.shift()()}var r={},n={1:0};function i(t){return o.p+"ryui.umd.min."+({}[t]||t)+".js"}function o(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.e=function(t){var e=[],r=n[t];if(0!==r)if(r)e.push(r[2]);else{var a=new Promise((function(e,i){r=n[t]=[e,i]}));e.push(r[2]=a);var s,l=document.createElement("script");l.charset="utf-8",l.timeout=120,o.nc&&l.setAttribute("nonce",o.nc),l.src=i(t);var u=new Error;s=function(e){l.onerror=l.onload=null,clearTimeout(c);var r=n[t];if(0!==r){if(r){var i=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;u.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",u.name="ChunkLoadError",u.type=i,u.request=o,r[1](u)}n[t]=void 0}};var c=setTimeout((function(){s({type:"timeout",target:l})}),12e4);l.onerror=l.onload=s,document.head.appendChild(l)}return Promise.all(e)},o.m=t,o.c=r,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o.oe=function(t){throw console.error(t),t};var a=("undefined"!==typeof self?self:this)["webpackJsonpryui"]=("undefined"!==typeof self?self:this)["webpackJsonpryui"]||[],s=a.push.bind(a);a.push=e,a=a.slice();for(var l=0;l<a.length;l++)e(a[l]);var u=s;return o(o.s="fb15")}({0:function(t,e){},"01d4":function(t,e,r){"use strict";e["a"]={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},"0414":function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i}));var n=42,i=256},"045d":function(t,e,r){"use strict";e["a"]={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},"0602":function(t,e,r){},"0676":function(t,e){function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"06f8":function(t,e,r){"use strict";r.d(e,"a",(function(){return s})),r.d(e,"b",(function(){return l})),r.d(e,"c",(function(){return u})),r.d(e,"e",(function(){return h})),r.d(e,"d",(function(){return f})),r.d(e,"f",(function(){return p})),r.d(e,"h",(function(){return d})),r.d(e,"l",(function(){return g})),r.d(e,"i",(function(){return y})),r.d(e,"k",(function(){return v})),r.d(e,"m",(function(){return m})),r.d(e,"g",(function(){return _})),r.d(e,"j",(function(){return b}));var n=r("0b2d"),i=r("57cb"),o=r("617d"),a=r("92fa");function s(t){var e=arguments;return function(t){for(var r=!0,n=0,i=e.length;n<i;++n)if(r=r&&e[n](t),!r)break;return r}}var l=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},u=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},c=function(t){var e=t.map.getTargetElement(),r=t.map.getOwnerDocument().activeElement;return e.contains(r)},h=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||c(t)},f=i["b"],p=function(t){var e=t.originalEvent;return 0==e.button&&!(o["g"]&&o["d"]&&e.ctrlKey)},d=i["a"],g=function(t){return t.type==n["a"].SINGLECLICK},y=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},v=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},m=function(t){var e=t.originalEvent,r=e.target.tagName;return"INPUT"!==r&&"SELECT"!==r&&"TEXTAREA"!==r&&!e.target.isContentEditable},_=function(t){var e=t.originalEvent;return Object(a["a"])(void 0!==e,56),"mouse"==e.pointerType},b=function(t){var e=t.originalEvent;return Object(a["a"])(void 0!==e,56),e.isPrimary&&0===e.button}},"070d":function(t,e,r){"use strict";e["a"]={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},"0710":function(t,e,r){"use strict";r.r(e);var n=r("e269"),i=r("592d"),o=r("cd7e"),a=r("0af5"),s=r("1e8d"),l=r("0999"),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},h=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un,r.options=e,r.id=e.id,r.insertFirst=void 0===e.insertFirst||e.insertFirst,r.stopEvent=void 0===e.stopEvent||e.stopEvent,r.element=document.createElement("div"),r.element.className=void 0!==e.className?e.className:"ol-overlay-container "+o["d"],r.element.style.position="absolute",r.element.style.pointerEvents="auto";var n=e.autoPan;return n&&"object"!==typeof n&&(n={animation:e.autoPanAnimation,margin:e.autoPanMargin}),r.autoPan=n||!1,r.rendered={transform_:"",visible:!0},r.mapPostrenderListenerKey=null,r.addChangeListener(c.ELEMENT,r.handleElementChanged),r.addChangeListener(c.MAP,r.handleMapChanged),r.addChangeListener(c.OFFSET,r.handleOffsetChanged),r.addChangeListener(c.POSITION,r.handlePositionChanged),r.addChangeListener(c.POSITIONING,r.handlePositioningChanged),void 0!==e.element&&r.setElement(e.element),r.setOffset(void 0!==e.offset?e.offset:[0,0]),r.setPositioning(e.positioning||"top-left"),void 0!==e.position&&r.setPosition(e.position),r}return u(e,t),e.prototype.getElement=function(){return this.get(c.ELEMENT)},e.prototype.getId=function(){return this.id},e.prototype.getMap=function(){return this.get(c.MAP)||null},e.prototype.getOffset=function(){return this.get(c.OFFSET)},e.prototype.getPosition=function(){return this.get(c.POSITION)},e.prototype.getPositioning=function(){return this.get(c.POSITIONING)},e.prototype.handleElementChanged=function(){Object(l["e"])(this.element);var t=this.getElement();t&&this.element.appendChild(t)},e.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(l["f"])(this.element),Object(s["c"])(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=Object(s["a"])(t,i["a"].POSTRENDER,this.render,this),this.updatePixelPosition();var e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element),this.performAutoPan()}},e.prototype.render=function(){this.updatePixelPosition()},e.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},e.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.performAutoPan()},e.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},e.prototype.setElement=function(t){this.set(c.ELEMENT,t)},e.prototype.setMap=function(t){this.set(c.MAP,t)},e.prototype.setOffset=function(t){this.set(c.OFFSET,t)},e.prototype.setPosition=function(t){this.set(c.POSITION,t)},e.prototype.performAutoPan=function(){this.autoPan&&this.panIntoView(this.autoPan)},e.prototype.panIntoView=function(t){var e=this.getMap();if(e&&e.getTargetElement()&&this.get(c.POSITION)){var r=this.getRect(e.getTargetElement(),e.getSize()),n=this.getElement(),i=this.getRect(n,[Object(l["c"])(n),Object(l["b"])(n)]),o=t||{},s=void 0===o.margin?20:o.margin;if(!Object(a["containsExtent"])(r,i)){var u=i[0]-r[0],h=r[2]-i[2],f=i[1]-r[1],p=r[3]-i[3],d=[0,0];if(u<0?d[0]=u-s:h<0&&(d[0]=Math.abs(h)+s),f<0?d[1]=f-s:p<0&&(d[1]=Math.abs(p)+s),0!==d[0]||0!==d[1]){var g=e.getView().getCenterInternal(),y=e.getPixelFromCoordinateInternal(g);if(!y)return;var v=[y[0]+d[0],y[1]+d[1]],m=o.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(v),duration:m.duration,easing:m.easing})}}}},e.prototype.getRect=function(t,e){var r=t.getBoundingClientRect(),n=r.left+window.pageXOffset,i=r.top+window.pageYOffset;return[n,i,n+e[0],i+e[1]]},e.prototype.setPositioning=function(t){this.set(c.POSITIONING,t)},e.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},e.prototype.updatePixelPosition=function(){var t=this.getMap(),e=this.getPosition();if(t&&t.isRendered()&&e){var r=t.getPixelFromCoordinate(e),n=t.getSize();this.updateRenderedPosition(r,n)}else this.setVisible(!1)},e.prototype.updateRenderedPosition=function(t,e){var r=this.element.style,n=this.getOffset(),i=this.getPositioning();this.setVisible(!0);var o=Math.round(t[0]+n[0])+"px",a=Math.round(t[1]+n[1])+"px",s="0%",l="0%";"bottom-right"==i||"center-right"==i||"top-right"==i?s="-100%":"bottom-center"!=i&&"center-center"!=i&&"top-center"!=i||(s="-50%"),"bottom-left"==i||"bottom-center"==i||"bottom-right"==i?l="-100%":"center-left"!=i&&"center-center"!=i&&"center-right"!=i||(l="-50%");var u="translate(".concat(s,", ").concat(l,") translate(").concat(o,", ").concat(a,")");this.rendered.transform_!=u&&(this.rendered.transform_=u,r.transform=u,r.msTransform=u)},e.prototype.getOptions=function(){return this.options},e}(n["a"]);e["default"]=h},"089b":function(t,e,r){"use strict";r.d(e,"c",(function(){return u})),r.d(e,"d",(function(){return c})),r.d(e,"a",(function(){return f})),r.d(e,"b",(function(){return g}));var n=r("78db"),i=r("fced"),o=r("0414"),a=r("256f"),s=r("0af5"),l=r("345d");function u(t){var e=t.getDefaultTileGrid();return e||(e=d(t),t.setDefaultTileGrid(e)),e}function c(t,e,r){var n=e[0],i=t.getTileCoordCenter(e),o=g(r);if(Object(s["containsCoordinate"])(o,i))return e;var a=Object(s["getWidth"])(o),l=Math.ceil((o[0]-i[0])/a);return i[0]+=a*l,t.getTileCoordForCoordAndZ(i,n)}function h(t,e,r,i){var o=void 0!==i?i:"top-left",a=p(t,e,r);return new n["default"]({extent:t,origin:Object(s["getCorner"])(t,o),resolutions:a,tileSize:r})}function f(t){var e=t||{},r=e.extent||Object(a["get"])("EPSG:3857").getExtent(),i={extent:r,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:p(r,e.maxZoom,e.tileSize,e.maxResolution)};return new n["default"](i)}function p(t,e,r,n){for(var i=void 0!==e?e:o["a"],a=Object(s["getHeight"])(t),u=Object(s["getWidth"])(t),c=Object(l["d"])(void 0!==r?r:o["b"]),h=n>0?n:Math.max(u/c[0],a/c[1]),f=i+1,p=new Array(f),d=0;d<f;++d)p[d]=h/Math.pow(2,d);return p}function d(t,e,r,n){var i=g(t);return h(i,e,r,n)}function g(t){t=Object(a["get"])(t);var e=t.getExtent();if(!e){var r=180*a["METERS_PER_UNIT"][i["b"].DEGREES]/t.getMetersPerUnit();e=Object(s["createOrUpdate"])(-r,-r,r,r)}return e}},"0999":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"d",(function(){return o})),r.d(e,"c",(function(){return a})),r.d(e,"b",(function(){return s})),r.d(e,"h",(function(){return l})),r.d(e,"f",(function(){return u})),r.d(e,"e",(function(){return c})),r.d(e,"g",(function(){return h}));var n=r("617d");function i(t,e,r,i){var o;return o=r&&r.length?r.shift():n["h"]?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",i)}function o(t){var e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function a(t){var e=t.offsetWidth,r=getComputedStyle(t);return e+=parseInt(r.marginLeft,10)+parseInt(r.marginRight,10),e}function s(t){var e=t.offsetHeight,r=getComputedStyle(t);return e+=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10),e}function l(t,e){var r=e.parentNode;r&&r.replaceChild(t,e)}function u(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function c(t){while(t.lastChild)t.removeChild(t.lastChild)}function h(t,e){for(var r=t.childNodes,n=0;1;++n){var i=r[n],o=e[n];if(!i&&!o)break;i!==o&&(i?o?t.insertBefore(o,i):(t.removeChild(i),--n):t.appendChild(o))}}},"0a9d":function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a}));var n=r("25f1"),i=r("9f5e");function o(t,e,r,o,a,s,l){for(var u,c,h,f,p,d,g,y=a[s+1],v=[],m=0,_=r.length;m<_;++m){var b=r[m];for(f=t[b-o],d=t[b-o+1],u=e;u<b;u+=o)p=t[u],g=t[u+1],(y<=d&&g<=y||d<=y&&y<=g)&&(h=(y-d)/(g-d)*(p-f)+f,v.push(h)),f=p,d=g}var x=NaN,w=-1/0;for(v.sort(i["i"]),f=v[0],u=1,c=v.length;u<c;++u){p=v[u];var O=Math.abs(p-f);O>w&&(h=(f+p)/2,Object(n["c"])(t,e,r,o,h,y)&&(x=h,w=O)),f=p}return isNaN(x)&&(x=a[s]),l?(l.push(x,y,w),l):[x,y,w]}function a(t,e,r,n,i){for(var a=[],s=0,l=r.length;s<l;++s){var u=r[s];a=o(t,e,u,n,i,2*s,a),e=u[u.length-1]}return a}},"0af5":function(t,e,r){"use strict";r.r(e),r.d(e,"boundingExtent",(function(){return o})),r.d(e,"buffer",(function(){return s})),r.d(e,"clone",(function(){return l})),r.d(e,"closestSquaredDistanceXY",(function(){return u})),r.d(e,"containsCoordinate",(function(){return c})),r.d(e,"containsExtent",(function(){return h})),r.d(e,"containsXY",(function(){return f})),r.d(e,"coordinateRelationship",(function(){return p})),r.d(e,"createEmpty",(function(){return d})),r.d(e,"createOrUpdate",(function(){return g})),r.d(e,"createOrUpdateEmpty",(function(){return y})),r.d(e,"createOrUpdateFromCoordinate",(function(){return v})),r.d(e,"createOrUpdateFromCoordinates",(function(){return m})),r.d(e,"createOrUpdateFromFlatCoordinates",(function(){return _})),r.d(e,"createOrUpdateFromRings",(function(){return b})),r.d(e,"equals",(function(){return x})),r.d(e,"approximatelyEquals",(function(){return w})),r.d(e,"extend",(function(){return O})),r.d(e,"extendCoordinate",(function(){return E})),r.d(e,"extendCoordinates",(function(){return S})),r.d(e,"extendFlatCoordinates",(function(){return T})),r.d(e,"extendRings",(function(){return C})),r.d(e,"extendXY",(function(){return P})),r.d(e,"forEachCorner",(function(){return j})),r.d(e,"getArea",(function(){return R})),r.d(e,"getBottomLeft",(function(){return M})),r.d(e,"getBottomRight",(function(){return A})),r.d(e,"getCenter",(function(){return L})),r.d(e,"getCorner",(function(){return I})),r.d(e,"getEnlargedArea",(function(){return F})),r.d(e,"getForViewAndSize",(function(){return k})),r.d(e,"getRotatedViewport",(function(){return D})),r.d(e,"getHeight",(function(){return G})),r.d(e,"getIntersectionArea",(function(){return N})),r.d(e,"getIntersection",(function(){return z})),r.d(e,"getMargin",(function(){return U})),r.d(e,"getSize",(function(){return B})),r.d(e,"getTopLeft",(function(){return V})),r.d(e,"getTopRight",(function(){return X})),r.d(e,"getWidth",(function(){return W})),r.d(e,"intersects",(function(){return H})),r.d(e,"isEmpty",(function(){return Y})),r.d(e,"returnOrUpdate",(function(){return q})),r.d(e,"scaleFromCenter",(function(){return K})),r.d(e,"intersectsSegment",(function(){return Z})),r.d(e,"applyTransform",(function(){return J})),r.d(e,"wrapX",(function(){return $})),r.d(e,"wrapAndSliceX",(function(){return Q}));var n=r("045d"),i=r("92fa");function o(t){for(var e=d(),r=0,n=t.length;r<n;++r)E(e,t[r]);return e}function a(t,e,r){var n=Math.min.apply(null,t),i=Math.min.apply(null,e),o=Math.max.apply(null,t),a=Math.max.apply(null,e);return g(n,i,o,a,r)}function s(t,e,r){return r?(r[0]=t[0]-e,r[1]=t[1]-e,r[2]=t[2]+e,r[3]=t[3]+e,r):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function l(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function u(t,e,r){var n,i;return n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,i=r<t[1]?t[1]-r:t[3]<r?r-t[3]:0,n*n+i*i}function c(t,e){return f(t,e[0],e[1])}function h(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function f(t,e,r){return t[0]<=e&&e<=t[2]&&t[1]<=r&&r<=t[3]}function p(t,e){var r=t[0],i=t[1],o=t[2],a=t[3],s=e[0],l=e[1],u=n["a"].UNKNOWN;return s<r?u|=n["a"].LEFT:s>o&&(u|=n["a"].RIGHT),l<i?u|=n["a"].BELOW:l>a&&(u|=n["a"].ABOVE),u===n["a"].UNKNOWN&&(u=n["a"].INTERSECTING),u}function d(){return[1/0,1/0,-1/0,-1/0]}function g(t,e,r,n,i){return i?(i[0]=t,i[1]=e,i[2]=r,i[3]=n,i):[t,e,r,n]}function y(t){return g(1/0,1/0,-1/0,-1/0,t)}function v(t,e){var r=t[0],n=t[1];return g(r,n,r,n,e)}function m(t,e){var r=y(e);return S(r,t)}function _(t,e,r,n,i){var o=y(i);return T(o,t,e,r,n)}function b(t,e){var r=y(e);return C(r,t)}function x(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function w(t,e,r){return Math.abs(t[0]-e[0])<r&&Math.abs(t[2]-e[2])<r&&Math.abs(t[1]-e[1])<r&&Math.abs(t[3]-e[3])<r}function O(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function E(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function S(t,e){for(var r=0,n=e.length;r<n;++r)E(t,e[r]);return t}function T(t,e,r,n,i){for(;r<n;r+=i)P(t,e[r],e[r+1]);return t}function C(t,e){for(var r=0,n=e.length;r<n;++r)S(t,e[r]);return t}function P(t,e,r){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],r),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],r)}function j(t,e){var r;return r=e(M(t)),r||(r=e(A(t)),r||(r=e(X(t)),r||(r=e(V(t)),r||!1)))}function R(t){var e=0;return Y(t)||(e=W(t)*G(t)),e}function M(t){return[t[0],t[1]]}function A(t){return[t[2],t[1]]}function L(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function I(t,e){var r;return"bottom-left"===e?r=M(t):"bottom-right"===e?r=A(t):"top-left"===e?r=V(t):"top-right"===e?r=X(t):Object(i["a"])(!1,13),r}function F(t,e){var r=Math.min(t[0],e[0]),n=Math.min(t[1],e[1]),i=Math.max(t[2],e[2]),o=Math.max(t[3],e[3]);return(i-r)*(o-n)}function k(t,e,r,n,i){var o=D(t,e,r,n),a=o[0],s=o[1],l=o[2],u=o[3],c=o[4],h=o[5],f=o[6],p=o[7];return g(Math.min(a,l,c,f),Math.min(s,u,h,p),Math.max(a,l,c,f),Math.max(s,u,h,p),i)}function D(t,e,r,n){var i=e*n[0]/2,o=e*n[1]/2,a=Math.cos(r),s=Math.sin(r),l=i*a,u=i*s,c=o*a,h=o*s,f=t[0],p=t[1];return[f-l+h,p-u-c,f-l-h,p-u+c,f+l-h,p+u+c,f+l+h,p+u-c,f-l+h,p-u-c]}function G(t){return t[3]-t[1]}function N(t,e){var r=z(t,e);return R(r)}function z(t,e,r){var n=r||d();return H(t,e)?(t[0]>e[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]<e[2]?n[2]=t[2]:n[2]=e[2],t[3]<e[3]?n[3]=t[3]:n[3]=e[3]):y(n),n}function U(t){return W(t)+G(t)}function B(t){return[t[2]-t[0],t[3]-t[1]]}function V(t){return[t[0],t[3]]}function X(t){return[t[2],t[3]]}function W(t){return t[2]-t[0]}function H(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function Y(t){return t[2]<t[0]||t[3]<t[1]}function q(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function K(t,e){var r=(t[2]-t[0])/2*(e-1),n=(t[3]-t[1])/2*(e-1);t[0]-=r,t[2]+=r,t[1]-=n,t[3]+=n}function Z(t,e,r){var i=!1,o=p(t,e),a=p(t,r);if(o===n["a"].INTERSECTING||a===n["a"].INTERSECTING)i=!0;else{var s=t[0],l=t[1],u=t[2],c=t[3],h=e[0],f=e[1],d=r[0],g=r[1],y=(g-f)/(d-h),v=void 0,m=void 0;a&n["a"].ABOVE&&!(o&n["a"].ABOVE)&&(v=d-(g-c)/y,i=v>=s&&v<=u),i||!(a&n["a"].RIGHT)||o&n["a"].RIGHT||(m=g-(d-u)*y,i=m>=l&&m<=c),i||!(a&n["a"].BELOW)||o&n["a"].BELOW||(v=d-(g-l)/y,i=v>=s&&v<=u),i||!(a&n["a"].LEFT)||o&n["a"].LEFT||(m=g-(d-s)*y,i=m>=l&&m<=c)}return i}function J(t,e,r,n){var i=[];if(n>1)for(var o=t[2]-t[0],s=t[3]-t[1],l=0;l<n;++l)i.push(t[0]+o*l/n,t[1],t[2],t[1]+s*l/n,t[2]-o*l/n,t[3],t[0],t[3]-s*l/n);else i=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(i,i,2);for(var u=[],c=[],h=(l=0,i.length);l<h;l+=2)u.push(i[l]),c.push(i[l+1]);return a(u,c,r)}function $(t,e){var r=e.getExtent(),n=L(t);if(e.canWrapX()&&(n[0]<r[0]||n[0]>=r[2])){var i=W(r),o=Math.floor((n[0]-r[0])/i),a=o*i;t[0]-=a,t[2]-=a}return t}function Q(t,e){if(e.canWrapX()){var r=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[r[0],t[1],r[2],t[3]]];$(t,e);var n=W(r);if(W(t)>n)return[[r[0],t[1],r[2],t[3]]];if(t[0]<r[0])return[[t[0]+n,t[1],r[2],t[3]],[r[0],t[1],t[2],t[3]]];if(t[2]>r[2])return[[t[0],t[1],r[2],t[3]],[r[0],t[1],t[2]-n,t[3]]]}return[t]}},"0b0e":function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i}));var n={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},i={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0}},"0b2d":function(t,e,r){"use strict";var n=r("01d4");e["a"]={SINGLECLICK:"singleclick",CLICK:n["a"].CLICK,DBLCLICK:n["a"].DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},"0e69":function(t,e,r){"use strict";r.d(e,"a",(function(){return f}));var n=r("dd32"),i=r("6573"),o=r("29f6"),a=r("e98d"),s=r("ddea"),l=r("1300"),u=r("0af5");function c(t,e,r,n,i){var o,a,s,l,u,c,h,f,p,d,g=r,y=r,v=0,m=0,_=r;for(a=r;a<n;a+=i){var b=e[a],x=e[a+1];void 0!==u&&(p=b-u,d=x-c,l=Math.sqrt(p*p+d*d),void 0!==h&&(m+=s,o=Math.acos((h*p+f*d)/(s*l)),o>t&&(m>v&&(v=m,g=_,y=a),m=0,_=a-i)),s=l,h=p,f=d),u=b,c=x}return m+=l,m>v?[_,a]:[g,y]}var h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},p=function(t){function e(e,r,n,i){var o=t.call(this,e,r,n,i)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return h(e,t),e.prototype.finish=function(){var e=t.prototype.finish.call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e},e.prototype.drawText=function(t,e){var r=this.textFillState_,n=this.textStrokeState_,a=this.textState_;if(""!==this.text_&&a&&(r||n)){var l=this.coordinates,h=l.length,f=t.getType(),p=null,d=t.getStride();if(a.placement!==o["a"].LINE||"LineString"!=f&&"MultiLineString"!=f&&"Polygon"!=f&&"MultiPolygon"!=f){var g=a.overflow?null:[];switch(f){case"Point":case"MultiPoint":p=t.getFlatCoordinates();break;case"LineString":p=t.getFlatMidpoint();break;case"Circle":p=t.getCenter();break;case"MultiLineString":p=t.getFlatMidpoints(),d=2;break;case"Polygon":p=t.getFlatInteriorPoint(),a.overflow||g.push(p[2]/this.resolution),d=3;break;case"MultiPolygon":var y=t.getFlatInteriorPoints();p=[];for(C=0,P=y.length;C<P;C+=3)a.overflow||g.push(y[C+2]/this.resolution),p.push(y[C],y[C+1]);if(0===p.length)return;d=2;break;default:}F=this.appendFlatPointCoordinates(p,d);if(F===h)return;if(g&&(F-h)/2!==p.length/d){var v=h/2;g=g.filter((function(t,e){var r=l[2*(v+e)]===p[e*d]&&l[2*(v+e)+1]===p[e*d+1];return r||--v,r}))}this.saveTextStates_(),(a.backgroundFill||a.backgroundStroke)&&(this.setFillStrokeStyle(a.backgroundFill,a.backgroundStroke),a.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),a.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);var m=a.padding;if(m!=s["j"]&&(a.scale[0]<0||a.scale[1]<0)){var _=a.padding[0],b=a.padding[1],x=a.padding[2],w=a.padding[3];a.scale[0]<0&&(b=-b,w=-w),a.scale[1]<0&&(_=-_,x=-x),m=[_,b,x,w]}var O=this.pixelRatio;this.instructions.push([i["c"].DRAW_IMAGE,h,F,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,m==s["j"]?s["j"]:m.map((function(t){return t*O})),!!a.backgroundFill,!!a.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,g]);var E=1/O;this.hitDetectionInstructions.push([i["c"].DRAW_IMAGE,h,F,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[E,E],NaN,void 0,this.declutterImageWithText_,m,!!a.backgroundFill,!!a.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,g]),this.endGeometry(e)}else{if(!Object(u["intersects"])(this.getBufferedMaxExtent(),t.getExtent()))return;var S=void 0;if(p=t.getFlatCoordinates(),"LineString"==f)S=[p.length];else if("MultiLineString"==f)S=t.getEnds();else if("Polygon"==f)S=t.getEnds().slice(0,1);else if("MultiPolygon"==f){var T=t.getEndss();S=[];for(var C=0,P=T.length;C<P;++C)S.push(T[C][0])}this.beginGeometry(t,e);for(var j=a.textAlign,R=0,M=void 0,A=0,L=S.length;A<L;++A){if(void 0==j){var I=c(a.maxAngle,p,R,S[A],d);R=I[0],M=I[1]}else M=S[A];for(var C=R;C<M;C+=d)l.push(p[C],p[C+1]);var F=l.length;R=S[A],this.drawChars_(h,F),h=F}this.endGeometry(e)}}},e.prototype.saveTextStates_=function(){var t=this.textStrokeState_,e=this.textState_,r=this.textFillState_,n=this.strokeKey_;t&&(n in this.strokeStates||(this.strokeStates[n]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));var i=this.textKey_;i in this.textStates||(this.textStates[i]={font:e.font,textAlign:e.textAlign||s["l"],justify:e.justify,textBaseline:e.textBaseline||s["m"],scale:e.scale});var o=this.fillKey_;r&&(o in this.fillStates||(this.fillStates[o]={fillStyle:r.fillStyle}))},e.prototype.drawChars_=function(t,e){var r=this.textStrokeState_,n=this.textState_,o=this.strokeKey_,a=this.textKey_,s=this.fillKey_;this.saveTextStates_();var l=this.pixelRatio,u=f[n.textBaseline],c=this.textOffsetY_*l,h=this.text_,p=r?r.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([i["c"].DRAW_CHARS,t,e,u,n.overflow,s,n.maxAngle,l,c,o,p*l,h,a,1]),this.hitDetectionInstructions.push([i["c"].DRAW_CHARS,t,e,u,n.overflow,s,n.maxAngle,1,c,o,p,h,a,1/l])},e.prototype.setTextStyle=function(t,e){var r,n,i;if(t){var o=t.getFill();o?(n=this.textFillState_,n||(n={},this.textFillState_=n),n.fillStyle=Object(a["a"])(o.getColor()||s["b"])):(n=null,this.textFillState_=n);var u=t.getStroke();if(u){i=this.textStrokeState_,i||(i={},this.textStrokeState_=i);var c=u.getLineDash(),h=u.getLineDashOffset(),f=u.getWidth(),p=u.getMiterLimit();i.lineCap=u.getLineCap()||s["d"],i.lineDash=c?c.slice():s["e"],i.lineDashOffset=void 0===h?s["f"]:h,i.lineJoin=u.getLineJoin()||s["g"],i.lineWidth=void 0===f?s["h"]:f,i.miterLimit=void 0===p?s["i"]:p,i.strokeStyle=Object(a["a"])(u.getColor()||s["k"])}else i=null,this.textStrokeState_=i;r=this.textState_;var d=t.getFont()||s["c"];Object(s["q"])(d);var g=t.getScaleArray();r.overflow=t.getOverflow(),r.font=d,r.maxAngle=t.getMaxAngle(),r.placement=t.getPlacement(),r.textAlign=t.getTextAlign(),r.justify=t.getJustify(),r.textBaseline=t.getTextBaseline()||s["m"],r.backgroundFill=t.getBackgroundFill(),r.backgroundStroke=t.getBackgroundStroke(),r.padding=t.getPadding()||s["j"],r.scale=void 0===g?[1,1]:g;var y=t.getOffsetX(),v=t.getOffsetY(),m=t.getRotateWithView(),_=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===y?0:y,this.textOffsetY_=void 0===v?0:v,this.textRotateWithView_=void 0!==m&&m,this.textRotation_=void 0===_?0:_,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:Object(l["c"])(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=r.font+r.scale+(r.textAlign||"?")+(r.justify||"?")+(r.textBaseline||"?"),this.fillKey_=n?"string"==typeof n.fillStyle?n.fillStyle:"|"+Object(l["c"])(n.fillStyle):""}else this.text_="";this.declutterImageWithText_=e},e}(n["a"]);e["b"]=p},"0ec0":function(t,e,r){"use strict";var n=r("da5c"),i=r("cef7"),o=r("57cb"),a=r("38f3"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(e){var r=t.call(this)||this;return r.eventTarget_=e,r.pendingRemovals_=null,r.dispatching_=null,r.listeners_=null,r}return s(e,t),e.prototype.addEventListener=function(t,e){if(t&&e){var r=this.listeners_||(this.listeners_={}),n=r[t]||(r[t]=[]);-1===n.indexOf(e)&&n.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"===typeof t,r=e?t:t.type,n=this.listeners_&&this.listeners_[r];if(n){var a=e?new i["a"](t):t;a.target||(a.target=this.eventTarget_||this);var s,l=this.dispatching_||(this.dispatching_={}),u=this.pendingRemovals_||(this.pendingRemovals_={});r in l||(l[r]=0,u[r]=0),++l[r];for(var c=0,h=n.length;c<h;++c)if(s="handleEvent"in n[c]?n[c].handleEvent(a):n[c].call(this,a),!1===s||a.propagationStopped){s=!1;break}if(0===--l[r]){var f=u[r];delete u[r];while(f--)this.removeEventListener(r,o["c"]);delete l[r]}return s}},e.prototype.disposeInternal=function(){this.listeners_&&Object(a["b"])(this.listeners_)},e.prototype.getListeners=function(t){return this.listeners_&&this.listeners_[t]||void 0},e.prototype.hasListener=function(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)},e.prototype.removeEventListener=function(t,e){var r=this.listeners_&&this.listeners_[t];if(r){var n=r.indexOf(e);-1!==n&&(this.pendingRemovals_&&t in this.pendingRemovals_?(r[n]=o["c"],++this.pendingRemovals_[t]):(r.splice(n,1),0===r.length&&delete this.listeners_[t]))}},e}(n["a"]);e["a"]=l},1:function(t,e){},1038:function(t,e,r){"use strict";r.r(e);var n=r("d30b");function i(t){if(Array.isArray(t))return t;if("Feature"===t.type){if(null!==t.geometry)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}var o=r("370b");function a(t){if(!t)throw new Error("geojson is required");var e=[];return Object(o["flattenEach"])(t,(function(t){s(t,e)})),Object(n["featureCollection"])(e)}function s(t,e){var r=[],n=t.geometry;if(null!==n){switch(n.type){case"Polygon":r=i(n);break;case"LineString":r=[i(n)]}r.forEach((function(r){var n=l(r,t.properties);n.forEach((function(t){t.id=e.length,e.push(t)}))}))}}function l(t,e){var r=[];return t.reduce((function(t,i){var o=Object(n["lineString"])([t,i],e);return o.bbox=u(t,i),r.push(o),i})),r}function u(t,e){var r=t[0],n=t[1],i=e[0],o=e[1],a=r<i?r:i,s=n<o?n:o,l=r>i?r:i,u=n>o?n:o;return[a,s,l,u]}var c=a,h=r("6991"),f=r.n(h);function p(t,e){var r={},a=[];if("LineString"===t.type&&(t=Object(n["feature"])(t)),"LineString"===e.type&&(e=Object(n["feature"])(e)),"Feature"===t.type&&"Feature"===e.type&&null!==t.geometry&&null!==e.geometry&&"LineString"===t.geometry.type&&"LineString"===e.geometry.type&&2===t.geometry.coordinates.length&&2===e.geometry.coordinates.length){var s=d(t,e);return s&&a.push(s),Object(n["featureCollection"])(a)}var l=f()();return l.load(c(e)),Object(o["featureEach"])(c(t),(function(t){Object(o["featureEach"])(l.search(t),(function(e){var n=d(t,e);if(n){var o=i(n).join(",");r[o]||(r[o]=!0,a.push(n))}}))})),Object(n["featureCollection"])(a)}function d(t,e){var r=i(t),o=i(e);if(2!==r.length)throw new Error("<intersects> line1 must only contain 2 coordinates");if(2!==o.length)throw new Error("<intersects> line2 must only contain 2 coordinates");var a=r[0][0],s=r[0][1],l=r[1][0],u=r[1][1],c=o[0][0],h=o[0][1],f=o[1][0],p=o[1][1],d=(p-h)*(l-a)-(f-c)*(u-s),g=(f-c)*(s-h)-(p-h)*(a-c),y=(l-a)*(s-h)-(u-s)*(a-c);if(0===d)return null;var v=g/d,m=y/d;if(v>=0&&v<=1&&m>=0&&m<=1){var _=a+v*(l-a),b=s+v*(u-s);return Object(n["point"])([_,b])}return null}e["default"]=p},"11b0":function(t,e){function r(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},1300:function(t,e,r){"use strict";function n(){return function(){throw new Error("Unimplemented abstract method.")}()}r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return a}));var i=0;function o(t){return t.ol_uid||(t.ol_uid=String(++i))}var a="6.15.1"},"137e":function(t,e,r){"use strict";r.d(e,"a",(function(){return f}));var n=r("faf4"),i=r("3333"),o=r("070d"),a=r("a896"),s=r("5c38"),l=r("0af5"),u=r("0999"),c=r("9f5e"),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=[],p=null;function d(){var t=document.createElement("canvas");t.width=1,t.height=1,p=t.getContext("2d")}var g=function(t){function e(e){var r=t.call(this,e)||this;return r.container=null,r.renderedResolution,r.tempTransform=Object(a["c"])(),r.pixelTransform=Object(a["c"])(),r.inversePixelTransform=Object(a["c"])(),r.context=null,r.containerReused=!1,r.pixelContext_=null,r.frameState=null,r}return h(e,t),e.prototype.getImageData=function(t,e,r){var n;p||d(),p.clearRect(0,0,1,1);try{p.drawImage(t,e,r,1,1,0,0,1,1),n=p.getImageData(0,0,1,1).data}catch(i){return p=null,null}return n},e.prototype.getBackground=function(t){var e=this.getLayer(),r=e.getBackground();return"function"===typeof r&&(r=r(t.viewState.resolution)),r||void 0},e.prototype.useContainer=function(t,e,r){var n,i,o=this.getLayer().getClassName();if(t&&t.className===o&&(!r||t&&t.style.backgroundColor&&Object(c["b"])(Object(s["a"])(t.style.backgroundColor),Object(s["a"])(r)))){var a=t.firstElementChild;a instanceof HTMLCanvasElement&&(i=a.getContext("2d"))}if(i&&i.canvas.style.transform===e?(this.container=t,this.context=i,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){n=document.createElement("div"),n.className=o;var l=n.style;l.position="absolute",l.width="100%",l.height="100%",i=Object(u["a"])();a=i.canvas;n.appendChild(a),l=a.style,l.position="absolute",l.left="0",l.transformOrigin="top left",this.container=n,this.context=i}this.containerReused||!r||this.container.style.backgroundColor||(this.container.style.backgroundColor=r)},e.prototype.clipUnrotated=function(t,e,r){var n=Object(l["getTopLeft"])(r),i=Object(l["getTopRight"])(r),o=Object(l["getBottomRight"])(r),s=Object(l["getBottomLeft"])(r);Object(a["a"])(e.coordinateToPixelTransform,n),Object(a["a"])(e.coordinateToPixelTransform,i),Object(a["a"])(e.coordinateToPixelTransform,o),Object(a["a"])(e.coordinateToPixelTransform,s);var u=this.inversePixelTransform;Object(a["a"])(u,n),Object(a["a"])(u,i),Object(a["a"])(u,o),Object(a["a"])(u,s),t.save(),t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,e,r){var n=this.getLayer();if(n.hasListener(t)){var o=new i["a"](t,this.inversePixelTransform,r,e);n.dispatchEvent(o)}},e.prototype.preRender=function(t,e){this.frameState=e,this.dispatchRenderEvent_(o["a"].PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(o["a"].POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,r,n,i,o,s){var l=i/2,u=o/2,c=n/e,h=-c,f=-t[0]+s,p=-t[1];return Object(a["b"])(this.tempTransform,l,u,c,h,-r,f,p)},e.prototype.getDataAtPixel=function(t,e,r){var n=Object(a["a"])(this.inversePixelTransform,t.slice()),i=this.context,o=this.getLayer(),s=o.getExtent();if(s){var u=Object(a["a"])(e.pixelToCoordinateTransform,t.slice());if(!Object(l["containsCoordinate"])(s,u))return null}var c,h=Math.round(n[0]),f=Math.round(n[1]),p=this.pixelContext_;if(!p){var d=document.createElement("canvas");d.width=1,d.height=1,p=d.getContext("2d"),this.pixelContext_=p}p.clearRect(0,0,1,1);try{p.drawImage(i.canvas,h,f,1,1,0,0,1,1),c=p.getImageData(0,0,1,1).data}catch(g){return"SecurityError"===g.name?(this.pixelContext_=null,new Uint8Array):c}return 0===c[3]?null:c},e.prototype.disposeInternal=function(){delete this.frameState,t.prototype.disposeInternal.call(this)},e}(n["a"]);e["b"]=g},"13e2":function(t,e,r){"use strict";var n=r("4ea4"),i=r("7037"),o=(Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AM",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"BDLayers",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"BingLayers",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"BingMapsServiceNew",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"BingMapsServices",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"CheckPoint",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Circular",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"CrossHair",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"DraftingEvent",{enumerable:!0,get:function(){return u.DraftingEvent}}),Object.defineProperty(e,"FeaturePolygon",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"FeaturePolygonModel",{enumerable:!0,get:function(){return M.FeaturePolygonModel}}),Object.defineProperty(e,"GPS",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"GrahamScan",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"HelpTooltip",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"LCircle",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"LCluster",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"LClusterMarker",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"LDraw",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"LMap",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"LMarker",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"LMarkerFont",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"LMessage",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"LModifyEvent",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"LOverlay",{enumerable:!0,get:function(){return w.LOverlay}}),Object.defineProperty(e,"LPolygon",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"LPolygonNew",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"LPopup",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"LRectangle",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"LabelMes",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"MapConfig",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MapLayersEnum",{enumerable:!0,get:function(){return p.MapLayersEnum}}),Object.defineProperty(e,"MapTypeEnum",{enumerable:!0,get:function(){return p.MapTypeEnum}}),Object.defineProperty(e,"MeasureTooltip",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"PolygonModel",{enumerable:!0,get:function(){return _.PolygonModel}}),Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return O.Polyline}}),Object.defineProperty(e,"SvgModel",{enumerable:!0,get:function(){return c.SvgModel}}),Object.defineProperty(e,"TMapOptions",{enumerable:!0,get:function(){return d.TMapOptions}}),Object.defineProperty(e,"ViewOptions",{enumerable:!0,get:function(){return d.ViewOptions}}),Object.defineProperty(e,"addInteraction",{enumerable:!0,get:function(){return _.addInteraction}}),Object.defineProperty(e,"addInteraction1",{enumerable:!0,get:function(){return _.addInteraction1}}),Object.defineProperty(e,"addPolylinePoint",{enumerable:!0,get:function(){return O.addPolylinePoint}}),Object.defineProperty(e,"addPolylinePointNew",{enumerable:!0,get:function(){return O.addPolylinePointNew}}),Object.defineProperty(e,"caculateLL",{enumerable:!0,get:function(){return _.caculateLL}}),Object.defineProperty(e,"calculateCenter",{enumerable:!0,get:function(){return _.calculateCenter}}),Object.defineProperty(e,"createFill",{enumerable:!0,get:function(){return _.createFill}}),Object.defineProperty(e,"createGPSPoints",{enumerable:!0,get:function(){return _.createGPSPoints}}),Object.defineProperty(e,"createGeoJson",{enumerable:!0,get:function(){return _.createGeoJson}}),Object.defineProperty(e,"createPolygonBoundary",{enumerable:!0,get:function(){return _.createPolygonBoundary}}),Object.defineProperty(e,"createPolygonGeojson",{enumerable:!0,get:function(){return _.createPolygonGeojson}}),Object.defineProperty(e,"createPolylinePoints",{enumerable:!0,get:function(){return _.createPolylinePoints}}),Object.defineProperty(e,"createRectangle",{enumerable:!0,get:function(){return _.createRectangle}}),Object.defineProperty(e,"createSpan",{enumerable:!0,get:function(){return _.createSpan}}),Object.defineProperty(e,"fitNew",{enumerable:!0,get:function(){return _.fitNew}}),Object.defineProperty(e,"flyTo",{enumerable:!0,get:function(){return _.flyTo}}),Object.defineProperty(e,"formatArea",{enumerable:!0,get:function(){return _.formatArea}}),Object.defineProperty(e,"formatLength",{enumerable:!0,get:function(){return _.formatLength}}),Object.defineProperty(e,"geo2svg",{enumerable:!0,get:function(){return c.geo2svg}}),Object.defineProperty(e,"getCenterPoint",{enumerable:!0,get:function(){return _.getCenterPoint}}),Object.defineProperty(e,"getColorStyle",{enumerable:!0,get:function(){return _.getColorStyle}}),Object.defineProperty(e,"getCoordinates",{enumerable:!0,get:function(){return _.getCoordinates}}),Object.defineProperty(e,"getDeepColorNew",{enumerable:!0,get:function(){return O.getDeepColorNew}}),Object.defineProperty(e,"getLayer",{enumerable:!0,get:function(){return _.getLayer}}),Object.defineProperty(e,"getLayerNew",{enumerable:!0,get:function(){return _.getLayerNew}}),Object.defineProperty(e,"getLngAndLatMaxMin",{enumerable:!0,get:function(){return _.getLngAndLatMaxMin}}),Object.defineProperty(e,"getVector",{enumerable:!0,get:function(){return _.getVector}}),Object.defineProperty(e,"isTruePolygon",{enumerable:!0,get:function(){return P.isTruePolygon}}),Object.defineProperty(e,"pathToLines",{enumerable:!0,get:function(){return P.pathToLines}}),Object.defineProperty(e,"polygonStyle",{enumerable:!0,get:function(){return _.polygonStyle}}),Object.defineProperty(e,"rayCasting",{enumerable:!0,get:function(){return _.rayCasting}}),Object.defineProperty(e,"staticImage",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"zoomIn",{enumerable:!0,get:function(){return _.zoomIn}}),Object.defineProperty(e,"zoomOut",{enumerable:!0,get:function(){return _.zoomOut}}),n(r("74bf"))),a=n(r("960f")),s=n(r("29d2")),l=n(r("6f26")),u=r("1674"),c=r("1809"),h=n(r("bab7")),f=n(r("5c6f")),p=U(r("c12a")),d=U(r("5c9f")),g=n(r("6923")),y=n(r("2606")),v=n(r("9b10")),m=n(r("8343")),_=r("b12f"),b=n(r("2fc1")),x=n(r("6582")),w=r("9a94"),O=r("14fe"),E=n(r("3a22")),S=n(r("3d4d")),T=n(r("5388")),C=n(r("304e")),P=r("5897"),j=n(r("e63e")),R=n(r("7cec")),M=U(r("beb7")),A=n(r("40f1")),L=n(r("690f")),I=n(r("6e27")),F=n(r("6ee6")),k=n(r("b486")),D=n(r("7554")),G=n(r("de47")),N=n(r("beb2"));function z(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(z=function(t){return t?r:e})(t)}function U(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};if(e=z(e),e&&e.has(t))return e.get(t);var r,n,o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&((n=a?Object.getOwnPropertyDescriptor(t,r):null)&&(n.get||n.set)?Object.defineProperty(o,r,n):o[r]=t[r]);return o.default=t,e&&e.set(t,o),o}},"14fe":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.Polyline=void 0,e.addPolylinePoint=d,e.addPolylinePointNew=g,e.getDeepColorNew=p,n(r("970b"))),o=n(r("5bc3")),a=r("15e0"),s=n(r("5831")),l=n(r("3e6b")),u=n(r("4cdf")),c=n(r("7a09")),h=r("13e2"),f=function(){function t(e,r){(0,i.default)(this,t),this._map=r,this._layer=null,this._source=null,this._lineFeature=null,this._color=null,this._pointArr=[],this._lineString=null,this.type=0,this.isShow=!0,this._layer=null,this._source=null,this._lineFeature=null,this._color=e.color,this._polylineWidth=e.width,this._pointArr=e.pointArr,this._zIndex=e.zIndex,this._id=e.id,this._lineString=null,this.type=e.type||0,this._createPolyline()}return(0,o.default)(t,[{key:"_createPolyline",value:function(){this._source=new s.default,this._layer=new l.default({source:this._source,zIndex:this._zIndex,style:new a.Style({stroke:new a.Stroke({color:this._color,width:this._polylineWidth})})});var t=this._pointArr;this.type&&(t=h.GPS.convertLineGCJ02(this._pointArr)),t=new c.default(t);this._lineString=t,this._lineFeature=new u.default(t),this._id&&this._lineFeature.setId(this._id),this._layer.getSource().addFeatures([this._lineFeature]),this._map.addLayer(this._layer)}},{key:"show",value:function(){this.isShow||(this._map.addLayer(this._layer),this.isShow=!0)}},{key:"hide",value:function(){this.isShow&&(this._map.removeLayer(this._layer),this.isShow=!1)}},{key:"setCoordinates",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;this._pointArr=t,this.type=e,this._lineString.setCoordinates(this.isConvertLineGCJ02())}},{key:"setPolylineColor",value:function(t){this._layer.getStyle().getStroke().setColor(t)}},{key:"getLayer",value:function(){return this._layer}},{key:"setZIndex",value:function(t){this._layer.setZIndex(t)}},{key:"setPolylineWidth",value:function(t){this._layer.getStyle().getStroke().setWidth(t)}},{key:"getPolylineColor",value:function(){return this._layer.getStyle().getStroke().getColor()}},{key:"getPolylineWidth",value:function(){return this._layer.getStyle().getStroke().getWidth()}},{key:"removePolyline",value:function(){this._map.removeLayer(this._layer),this._lineFeature&&(this._source.removeFeature(this._lineFeature),this._lineFeature=null,this._source=null,this._layer=null,this._lineString=null)}},{key:"appendCoordinate",value:function(t){var e,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;if(this._pointArr.push(t),this.type=r)return e=(r=h.GPS.gcj_encrypt(t[0],t[1])).lon,r=r.lat,void this._lineString.appendCoordinate([e,r]);this._lineString.appendCoordinate(t)}},{key:"getLength",get:function(){return this._lineString.getCoordinates().length}},{key:"isConvertLineGCJ02",value:function(){return this.type?h.GPS.convertLineGCJ02(this._pointArr):this._pointArr}},{key:"selectGPS",value:function(){this.setCoordinates(this._pointArr,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0)}}]),t}();function p(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:["blue","Lime"];return t?e[1]:e[0]}function d(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:["blue","Lime"],i=null,o=[],a=t.gpsPoints,s=t.isNJOpt;t=-1;if(1<a.length){var l,u=[];-1===t?(u.push(a[t=0]),u.push(a[1]),l=p(s[1],n),t=1):(u.push(a[t]),l=p(s[t+1],n));for(var c=t+1;c<a.length;c++){var h=p(s[c],n);h===l?u.push(a[c]):(i=new f({color:l,width:2,pointArr:u,zIndex:s[c]?10:1,id:r},e),o.push(i),(u=[]).push(a[c-1]),u.push(a[c]),l=h)}0<u.length&&(i=new f({color:l,width:2,pointArr:u,zIndex:s[0]?10:1,id:r},e),o.push(i)),t=a.length-1}return o}function g(t,e,r){var n=null,i=[],o=t.gpsPoints,a=t.isNJOpt;t=-1;if(1<o.length){var s,l=[];-1===t?(l.push(o[t=0]),l.push(o[1]),s=p(a[1],r.colors),t=1):(l.push(o[t]),s=p(a[t+1],r.colors));for(var u=t+1;u<o.length;u++){var c=p(a[u],r.colors);c===s?l.push(o[u]):(n=new f({color:s,width:r.width,pointArr:l,zIndex:r.zIndex,id:r.id,type:r.type},e),i.push(n),(l=[]).push(o[u-1]),l.push(o[u]),s=c)}0<l.length&&(n=new f({color:s,width:r.width,pointArr:l,zIndex:r.zIndex,id:r.id,type:r.type},e),i.push(n)),t=o.length-1}return i}e.Polyline=f},"15e0":function(t,e,r){"use strict";r.r(e);var n=r("ce2c");r.d(e,"Circle",(function(){return n["default"]}));var i=r("83a6");r.d(e,"Fill",(function(){return i["default"]}));var o=r("6cbf");r.d(e,"Icon",(function(){return o["a"]}));var a=r("ab77");r.d(e,"IconImage",(function(){return a["a"]}));var s=r("ab35");r.d(e,"Image",(function(){return s["a"]}));var l=r("35d8");r.d(e,"RegularShape",(function(){return l["a"]}));var u=r("8682");r.d(e,"Stroke",(function(){return u["default"]}));var c=r("6c77");r.d(e,"Style",(function(){return c["default"]}));var h=r("8295");r.d(e,"Text",(function(){return h["a"]}))},1674:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.DraftingEvent=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("cb76")),s=function(){function t(e,r){(0,i.default)(this,t),this._map=e,this._callBack=r,this._position=[],this._overlayArr=new Array,this._overlay=null,this._dragPan=null,this._moveFun=null,this._poinFun=null}return(0,o.default)(t,[{key:"serMarkerArr",value:function(t,e){var r=this;r._overlayArr[e]=t,r._overlay=r._overlayArr[e]._overlay,this._map.getInteractions().forEach((function(t){t instanceof a.default&&(r._dragPan=t)})),r._dragPan.setActive(!1)}},{key:"binDraftingEvent",value:function(){var t=this;t._moveFun=function(e){return t._overlay&&!0===t._overlay.get("dragging")&&(t._overlay.setPosition(e.coordinate),t._position=e.coordinate,t._callBack&&t._callBack.call(this,t._position)),!1},t._poinFun=function(){return t._overlay&&!0===t._overlay.get("dragging")&&(t._dragPan.setActive(!0),t._overlay.set("dragging",!1)),!1},t._map.on("pointermove",t._moveFun),t._map.on("pointerup",t._poinFun)}},{key:"removDraftingEvent",value:function(){"function"==typeof this._moveFun&&"function"==typeof this._poinFun&&(this._map.un("pointermove",this._moveFun),this._map.un("pointerup",this._poinFun))}}]),t}();e.DraftingEvent=s},1809:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.geo2svg=e.SvgModel=void 0,n(r("5bc3"))),o=n(r("970b")),a=(0,i.default)((function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[60,60],r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[0,0,0,0],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"#17A8A2",i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:.5,a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"#17A8A2",s=5<arguments.length&&void 0!==arguments[5]?arguments[5]:1,l=6<arguments.length&&void 0!==arguments[6]?arguments[6]:"#fff",u=7<arguments.length&&void 0!==arguments[7]?arguments[7]:3,c=8<arguments.length&&void 0!==arguments[8]?arguments[8]:"string",h=9<arguments.length&&void 0!==arguments[9]?arguments[9]:5;(0,o.default)(this,t),this.size=e,this.padding=r,this.fill=n,this.fillOpacity=i,this.stroke=a,this.strokeWidth=s,this.background=l,this.precision=u,this.output=c,this.radius=h})),s=(e.SvgModel=a,function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var r=e,n=[],i=!0,o=(e=!1,void 0);try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!r||n.length!==r);i=!0);}catch(t){e=!0,o=t}finally{try{!i&&s.return&&s.return()}finally{if(e)throw o}}return n}throw new TypeError("Invalid attempt to destructure non-iterable instance")}),l={};function u(t){var e=[1/0,1/0,-1/0,-1/0];return t.forEach((function(t){t=s(t,2);var r=t[0];t=t[1];r<e[0]&&(e[0]=r),r>e[2]&&(e[2]=r),t<e[1]&&(e[1]=t),t>e[3]&&(e[3]=t)})),e}function c(t){switch(t.type){case"Point":return[t.coordinates];case"MultiPoint":case"LineString":return t.coordinates;case"MultiLineString":case"Polygon":var e=t.coordinates;return e.reduce((function(t,e){return t.concat(e)}),e[0]);case"MultiPolygon":return e=t.coordinates,e=e.reduce((function(t,e){return t.concat(e)}),e[0]),e.reduce((function(t,e){return t.concat(e)}),e[0]);case"GeometryCollection":return e=t.geometries.map((function(t){return c(t)})),e.reduce((function(t,e){return t.concat(e)}),e[0]);case"Feature":return c(t.geometry);case"FeatureCollection":return e=t.features.map((function(t){return c(t)})),e.reduce((function(t,e){return t.concat(e)}),e[0])}}function h(t,e,r,n,i,o,a,l){var u=l[3],c=(l=l[0],e=s(e,2),e[0]);e=e[1],u=(t[0]-a[0])/i+u,t=e-(t[1]-a[1])/i+l;return n<r?t-=(e-(o[3]-o[1])/i)/2:u+=(c-(o[2]-o[0])/i)/2,[u,t]}l.style=function(t,e){var r=e.fill,n=e.fillOpacity,i=e.stroke;e=e.strokeWidth,t=[t.split("/>")[0]];return t.push('fill="'+r+'"'),t.push('fill-opacity="'+n+'"'),t.push('stroke="'+i+'"'),t.push('stroke-width="'+e+'"'),t.join(" ")+" />"},l.createCircle=function(t,e){t=s(t,2);var r=t[0],n=(t=t[1],e.radius),i=e.precision;r='<circle cx="'+r.toFixed(i)+'" cy="'+t.toFixed(i)+'" r="'+n.toFixed(i)+'" />';return l.style(r,e)},l.createPath=function(t,e){var r=e.precision;t=t.map((function(t,e){return(0===e?"M":"L")+t[0].toFixed(r)+" "+t[1].toFixed(r)})).join(" ");return l.style('<path d="'+t+'" />',e)},l.parseSVG=function(t){for(var e=document.createElementNS("http://www.w3.org/1999/xhtml","div"),r=(e.innerHTML=t,document.createDocumentFragment());e.firstChild;)r.appendChild(e.firstChild);return r};var f={convertBasicGeometry:function(t,e,r){switch(e){case"Point":return l.createCircle(t[0],r);case"LineString":case"Polygon":return l.createPath(t,r)}},getCommonOpt:function(t,e){var r=s(e.size,2),n=r[0],i=(r=r[1],e=s(e.padding,4),e[0]),o=e[1],a=e[2];n=n-e[3]-o,e=r-i-a,o=u(c(t)),r=(o[2]-o[0])/n,i=(o[3]-o[1])/e;return{xRes:r,yRes:i,res:i<r?r:i,extent:o,origin:[o[0],o[1]],geometrySize:[n,e]}},convertPoint:function(t,e,r){var n=r.xRes,i=r.yRes,o=r.res,a=r.extent,s=r.origin;r=r.geometrySize,t=h(t.coordinates,r,n,i,o,a,s,e.padding);return l.createCircle(t,e)},convertMultiPoint:function(t,e,r){var n=r.xRes,i=r.yRes,o=r.res,a=r.extent,s=r.origin,u=r.geometrySize;return t.coordinates.map((function(t){return h(t,u,n,i,o,a,s,e.padding)})).map((function(t){return l.createCircle(t,e)})).join("")},convertLineString:function(t,e,r){var n=r.xRes,i=r.yRes,o=r.res,a=r.extent,s=r.origin,u=r.geometrySize;r=(Array.isArray(t)?t:t.coordinates).map((function(t){return h(t,u,n,i,o,a,s,e.padding)})),t={};return Object.assign(t,e),t.fillOpacity=0,l.createPath(r,t)},convertMultiLineString:function(t,e,r){return t.coordinates.map((function(t){return f.convertLineString(t,e,r)})).join("")},convertPolygon:function(t,e,r){var n=r.xRes,i=r.yRes,o=r.res,a=r.extent,s=r.origin,u=r.geometrySize,c=(r=Array.isArray(t)?t:t.coordinates,{});return Object.assign(c,e),c.fill=e.background,c.fillOpacity=1,r.map((function(r,f){return r=r.map((function(t){return h(t,u,n,i,o,a,s,e.padding)})),0==f||Array.isArray(t)?l.createPath(r,e):l.createPath(r,c)})).join("")},convertMultiPolygon:function(t,e,r){return t.coordinates.map((function(t,n){return f.convertPolygon(t,e,r)})).join("")},convertGeometryCollection:function(t,e,r){return t.geometries.map((function(t){var n="convert"+t.type;return f[n](t,e,r)})).join("")},convertFeature:function(t,e,r){t=t.geometry;var n="convert"+t.type;return f[n](t,e,r)},convertFeatureCollection:function(t,e,r){return t.features.map((function(t){return f.convertFeature(t,e,r)})).join("")}},p=function(t,e){var r=t.type,n="convert"+r;if(!f[n])throw new Error("The type of input object is not supported.");var i=f.getCommonOpt(t,e),o='<svg xmlns="http://www.w3.org/2000/svg" style="background:'+e.background+'" width="'+e.size[0]+'" height="'+e.size[1]+'" >';n=f[n],r=o=o+(n="Point"===r||"GeometryCollection"===r&&1===t.geometries.length&&"Point"===t.geometries[0].type||"FeatureCollection"===r&&1===t.features.length&&"Point"===t.features[0].geometry.type?function(t,e,r){r.xRes,r.yRes,r.res,r.extent,r.origin;r=r.geometrySize;var n=s(e.padding,4),i=n[0];n[1],n[2],n=[n[3]+r[0]/2,i+r[1]/2];return l.createCircle(n,e)}:n)(t,e,i)+"</svg>";return"element"==e.output?l.parseSVG(o):r};e.geo2svg=p},"183a":function(t,e,r){"use strict";e["a"]={ADD:"add",REMOVE:"remove"}},1856:function(t,e,r){"use strict";var n=r("da5c"),i=r("57cb"),o=r("1300"),a=r("a896"),s=r("0af5"),l=r("3c22"),u=r("1af9"),c=r("a568"),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(t){function e(e){var r=t.call(this)||this;return r.map_=e,r}return h(e,t),e.prototype.dispatchRenderEvent=function(t,e){Object(o["b"])()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,r=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;Object(a["b"])(r,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Object(a["d"])(n,r)},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i,o,a,l){var h,f=e.viewState;function p(t,e,r,n){return i.call(o,e,t?r:null,n)}var d=f.projection,g=Object(c["l"])(t.slice(),d),y=[[0,0]];if(d.canWrapX()&&n){var v=d.getExtent(),m=Object(s["getWidth"])(v);y.push([-m,0],[m,0])}for(var _=e.layerStatesArray,b=_.length,x=[],w=[],O=0;O<y.length;O++)for(var E=b-1;E>=0;--E){var S=_[E],T=S.layer;if(T.hasRenderer()&&Object(u["b"])(S,f)&&a.call(l,T)){var C=T.getRenderer(),P=T.getSource();if(C&&P){var j=P.getWrapX()?g:t,R=p.bind(null,S.managed);w[0]=j[0]+y[O][0],w[1]=j[1]+y[O][1],h=C.forEachFeatureAtCoordinate(w,e,r,R,x)}if(h)return h}}if(0!==x.length){var M=1/x.length;return x.forEach((function(t,e){return t.distanceSq+=e*M})),x.sort((function(t,e){return t.distanceSq-e.distanceSq})),x.some((function(t){return h=t.callback(t.feature,t.layer,t.geometry)})),h}},e.prototype.forEachLayerAtPixel=function(t,e,r,n,i){return Object(o["b"])()},e.prototype.hasFeatureAtCoordinate=function(t,e,r,n,o,a){var s=this.forEachFeatureAtCoordinate(t,e,r,n,i["b"],this,o,a);return void 0!==s},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){Object(o["b"])()},e.prototype.scheduleExpireIconCache=function(t){l["a"].canExpireCache()&&t.postRenderFunctions.push(p)},e}(n["a"]);function p(t,e){l["a"].expire()}var d=f,g=r("7b4f"),y=r("3333"),v=r("070d"),m=r("cd7e"),_=r("ddea"),b=r("1e8d"),x=r("0999"),w=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),O=function(t){function e(e){var r=t.call(this,e)||this;r.fontChangeListenerKey_=Object(b["a"])(_["a"],g["a"].PROPERTYCHANGE,e.redrawText.bind(e)),r.element_=document.createElement("div");var n=r.element_.style;n.position="absolute",n.width="100%",n.height="100%",n.zIndex="0",r.element_.className=m["e"]+" ol-layers";var i=e.getViewport();return i.insertBefore(r.element_,i.firstChild||null),r.children_=[],r.renderedVisible_=!0,r}return w(e,t),e.prototype.dispatchRenderEvent=function(t,e){var r=this.getMap();if(r.hasListener(t)){var n=new y["a"](t,void 0,e);r.dispatchEvent(n)}},e.prototype.disposeInternal=function(){Object(b["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(v["a"].PRECOMPOSE,t);var e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),r=t.viewState;this.children_.length=0;for(var n=[],i=null,o=0,a=e.length;o<a;++o){var s=e[o];t.layerIndex=o;var l=s.layer,c=l.getSourceState();if(!Object(u["b"])(s,r)||"ready"!=c&&"undefined"!=c)l.unrender();else{var h=l.render(t,i);h&&(h!==i&&(this.children_.push(h),i=h),"getDeclutter"in l&&n.push(l))}}for(o=n.length-1;o>=0;--o)n[o].renderDeclutter(t);Object(x["g"])(this.element_,this.children_),this.dispatchRenderEvent(v["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,r,n,i){for(var o=e.viewState,a=e.layerStatesArray,s=a.length,l=s-1;l>=0;--l){var c=a[l],h=c.layer;if(h.hasRenderer()&&Object(u["b"])(c,o)&&i(h)){var f=h.getRenderer(),p=f.getDataAtPixel(t,e,r);if(p){var d=n(h,p);if(d)return d}}}},e}(d);e["a"]=O},"1af9":function(t,e,r){"use strict";r.d(e,"b",(function(){return f}));var n=r("5564"),i=r("01d4"),o=r("df4c"),a=r("070d"),s=r("92fa"),l=r("38f3"),u=r("1e8d"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(t){function e(e){var r=this,n=Object(l["a"])({},e);delete n.source,r=t.call(this,n)||this,r.on,r.once,r.un,r.mapPrecomposeKey_=null,r.mapRenderKey_=null,r.sourceChangeKey_=null,r.renderer_=null,r.rendered=!1,e.render&&(r.render=e.render),e.map&&r.setMap(e.map),r.addChangeListener(o["a"].SOURCE,r.handleSourcePropertyChange_);var i=e.source?e.source:null;return r.setSource(i),r}return c(e,t),e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){return this.get(o["a"].SOURCE)||null},e.prototype.getRenderSource=function(){return this.getSource()},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():"undefined"},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(u["c"])(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=Object(u["a"])(t,i["a"].CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_?this.renderer_.getFeatures(t):new Promise((function(t){return t([])}))},e.prototype.getData=function(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null},e.prototype.render=function(t,e){var r=this.getRenderer();if(r.prepareFrame(t))return this.rendered=!0,r.renderFrame(t,e)},e.prototype.unrender=function(){this.rendered=!1},e.prototype.setMapInternal=function(t){t||this.unrender(),this.set(o["a"].MAP,t)},e.prototype.getMapInternal=function(){return this.get(o["a"].MAP)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Object(u["c"])(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Object(u["c"])(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Object(u["a"])(t,a["a"].PRECOMPOSE,(function(t){var e=t,r=e.frameState.layerStatesArray,n=this.getLayerState(!1);Object(s["a"])(!r.some((function(t){return t.layer===n.layer})),67),r.push(n)}),this),this.mapRenderKey_=Object(u["a"])(this,i["a"].CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(o["a"].SOURCE,t)},e.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},e.prototype.hasRenderer=function(){return!!this.renderer_},e.prototype.createRenderer=function(){return null},e.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),t.prototype.disposeInternal.call(this)},e}(n["a"]);function f(t,e){if(!t.visible)return!1;var r=e.resolution;if(r<t.minResolution||r>=t.maxResolution)return!1;var n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}e["a"]=h},"1c48":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return o})),r.d(e,"e",(function(){return a})),r.d(e,"c",(function(){return l})),r.d(e,"d",(function(){return u}));var n=r("7fc9");function i(t,e,r,i,o,a,s){var l=(r-e)/i;if(l<3){for(;e<r;e+=i)a[s++]=t[e],a[s++]=t[e+1];return s}var u=new Array(l);u[0]=1,u[l-1]=1;var c=[e,r-i],h=0;while(c.length>0){for(var f=c.pop(),p=c.pop(),d=0,g=t[p],y=t[p+1],v=t[f],m=t[f+1],_=p+i;_<f;_+=i){var b=t[_],x=t[_+1],w=Object(n["k"])(b,x,g,y,v,m);w>d&&(h=_,d=w)}d>o&&(u[(h-e)/i]=1,p+i<h&&c.push(p,h),h+i<f&&c.push(h,f))}for(_=0;_<l;++_)u[_]&&(a[s++]=t[e+_*i],a[s++]=t[e+_*i+1]);return s}function o(t,e,r,n,o,a,s,l){for(var u=0,c=r.length;u<c;++u){var h=r[u];s=i(t,e,h,n,o,a,s),l.push(s),e=h}return s}function a(t,e){return e*Math.round(t/e)}function s(t,e,r,n,i,o,s){if(e==r)return s;var l,u,c=a(t[e],i),h=a(t[e+1],i);e+=n,o[s++]=c,o[s++]=h;do{if(l=a(t[e],i),u=a(t[e+1],i),e+=n,e==r)return o[s++]=l,o[s++]=u,s}while(l==c&&u==h);while(e<r){var f=a(t[e],i),p=a(t[e+1],i);if(e+=n,f!=l||p!=u){var d=l-c,g=u-h,y=f-c,v=p-h;d*v==g*y&&(d<0&&y<d||d==y||d>0&&y>d)&&(g<0&&v<g||g==v||g>0&&v>g)?(l=f,u=p):(o[s++]=l,o[s++]=u,c=l,h=u,l=f,u=p)}}return o[s++]=l,o[s++]=u,s}function l(t,e,r,n,i,o,a,l){for(var u=0,c=r.length;u<c;++u){var h=r[u];a=s(t,e,h,n,i,o,a),l.push(a),e=h}return a}function u(t,e,r,n,i,o,a,s){for(var u=0,c=r.length;u<c;++u){var h=r[u],f=[];a=l(t,e,h,n,i,o,a,f),s.push(f),e=h[h.length-1]}return a}},"1e8d":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return o})),r.d(e,"c",(function(){return a}));var n=r("38f3");function i(t,e,r,n,i){if(n&&n!==t&&(r=r.bind(n)),i){var o=r;r=function(){t.removeEventListener(e,r),o.apply(this,arguments)}}var a={target:t,type:e,listener:r};return t.addEventListener(e,r),a}function o(t,e,r,n){return i(t,e,r,n,!0)}function a(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),Object(n["b"])(t))}},"1fb5":function(t,e,r){"use strict";e.byteLength=c,e.toByteArray=f,e.fromByteArray=g;for(var n=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function c(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function h(t,e,r){return 3*(e+r)/4-r}function f(t){var e,r,n=u(t),a=n[0],s=n[1],l=new o(h(t,a,s)),c=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,l[c++]=255&e),1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function p(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function d(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(p(n));return i.join("")}function g(t){for(var e,r=t.length,i=r%3,o=[],a=16383,s=0,l=r-i;s<l;s+=a)o.push(d(t,s,s+a>l?l:s+a));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2:function(t,e){},"21bc":function(t,e,r){"use strict";r.r(e),r.d(e,"Attribution",(function(){return v})),r.d(e,"Control",(function(){return c})),r.d(e,"FullScreen",(function(){return k})),r.d(e,"MousePosition",(function(){return V})),r.d(e,"OverviewMap",(function(){return nt})),r.d(e,"Rotate",(function(){return w})),r.d(e,"ScaleLine",(function(){return ft})),r.d(e,"Zoom",(function(){return S})),r.d(e,"ZoomSlider",(function(){return mt})),r.d(e,"ZoomToExtent",(function(){return xt})),r.d(e,"defaults",(function(){return wt}));var n=r("e269"),i=r("592d"),o=r("57cb"),a=r("1e8d"),s=r("0999"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(e){var r=t.call(this)||this,n=e.element;return!n||e.target||n.style.pointerEvents||(n.style.pointerEvents="auto"),r.element=n||null,r.target_=null,r.map_=null,r.listenerKeys=[],e.render&&(r.render=e.render),e.target&&r.setTarget(e.target),r}return l(e,t),e.prototype.disposeInternal=function(){Object(s["f"])(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&Object(s["f"])(this.element);for(var e=0,r=this.listenerKeys.length;e<r;++e)Object(a["c"])(this.listenerKeys[e]);if(this.listenerKeys.length=0,this.map_=t,t){var n=this.target_?this.target_:t.getOverlayContainerStopEvent();n.appendChild(this.element),this.render!==o["c"]&&this.listenerKeys.push(Object(a["a"])(t,i["a"].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}(n["a"]),c=u,h=r("01d4"),f=r("cd7e"),p=r("9f5e"),d=r("1af9"),g=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),y=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this,r.ulElement_=document.createElement("ul"),r.collapsed_=void 0===n.collapsed||n.collapsed,r.userCollapsed_=r.collapsed_,r.overrideCollapsible_=void 0!==n.collapsible,r.collapsible_=void 0===n.collapsible||n.collapsible,r.collapsible_||(r.collapsed_=!1);var i=void 0!==n.className?n.className:"ol-attribution",o=void 0!==n.tipLabel?n.tipLabel:"Attributions",a=void 0!==n.expandClassName?n.expandClassName:i+"-expand",s=void 0!==n.collapseLabel?n.collapseLabel:"›",l=void 0!==n.collapseClassName?n.collapseClassName:i+"-collapse";"string"===typeof s?(r.collapseLabel_=document.createElement("span"),r.collapseLabel_.textContent=s,r.collapseLabel_.className=l):r.collapseLabel_=s;var u=void 0!==n.label?n.label:"i";"string"===typeof u?(r.label_=document.createElement("span"),r.label_.textContent=u,r.label_.className=a):r.label_=u;var c=r.collapsible_&&!r.collapsed_?r.collapseLabel_:r.label_;r.toggleButton_=document.createElement("button"),r.toggleButton_.setAttribute("type","button"),r.toggleButton_.setAttribute("aria-expanded",String(!r.collapsed_)),r.toggleButton_.title=o,r.toggleButton_.appendChild(c),r.toggleButton_.addEventListener(h["a"].CLICK,r.handleClick_.bind(r),!1);var p=i+" "+f["e"]+" "+f["b"]+(r.collapsed_&&r.collapsible_?" "+f["a"]:"")+(r.collapsible_?"":" ol-uncollapsible"),d=r.element;return d.className=p,d.appendChild(r.toggleButton_),d.appendChild(r.ulElement_),r.renderedAttributions_=[],r.renderedVisible_=!0,r}return g(e,t),e.prototype.collectSourceAttributions_=function(t){for(var e={},r=[],n=!0,i=t.layerStatesArray,o=0,a=i.length;o<a;++o){var s=i[o];if(Object(d["b"])(s,t.viewState)){var l=s.layer.getSource();if(l){var u=l.getAttributions();if(u){var c=u(t);if(c)if(n=n&&!1!==l.getAttributionsCollapsible(),Array.isArray(c))for(var h=0,f=c.length;h<f;++h)c[h]in e||(r.push(c[h]),e[c[h]]=!0);else c in e||(r.push(c),e[c]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(n),r},e.prototype.updateElement_=function(t){if(t){var e=this.collectSourceAttributions_(t),r=e.length>0;if(this.renderedVisible_!=r&&(this.element.style.display=r?"":"none",this.renderedVisible_=r),!Object(p["b"])(e,this.renderedAttributions_)){Object(s["e"])(this.ulElement_);for(var n=0,i=e.length;n<i;++n){var o=document.createElement("li");o.innerHTML=e[n],this.ulElement_.appendChild(o)}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(f["a"]),this.collapsed_?Object(s["h"])(this.collapseLabel_,this.label_):Object(s["h"])(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}(c),v=y,m=r("e300"),_=r("ca42"),b=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),x=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this;var i=void 0!==n.className?n.className:"ol-rotate",o=void 0!==n.label?n.label:"⇧",a=void 0!==n.compassClassName?n.compassClassName:"ol-compass";r.label_=null,"string"===typeof o?(r.label_=document.createElement("span"),r.label_.className=a,r.label_.textContent=o):(r.label_=o,r.label_.classList.add(a));var s=n.tipLabel?n.tipLabel:"Reset rotation",l=document.createElement("button");l.className=i+"-reset",l.setAttribute("type","button"),l.title=s,l.appendChild(r.label_),l.addEventListener(h["a"].CLICK,r.handleClick_.bind(r),!1);var u=i+" "+f["e"]+" "+f["b"],c=r.element;return c.className=u,c.appendChild(l),r.callResetNorth_=n.resetNorth?n.resetNorth:void 0,r.duration_=void 0!==n.duration?n.duration:250,r.autoHide_=void 0===n.autoHide||n.autoHide,r.rotation_=void 0,r.autoHide_&&r.element.classList.add(f["c"]),r}return b(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 r=e.getRotation();void 0!==r&&(this.duration_>0&&r%(2*Math.PI)!==0?e.animate({rotation:0,duration:this.duration_,easing:_["b"]}):e.setRotation(0))}},e.prototype.render=function(t){var e=t.frameState;if(e){var r=e.viewState.rotation;if(r!=this.rotation_){var n="rotate("+r+"rad)";if(this.autoHide_){var i=this.element.classList.contains(f["c"]);i||0!==r?i&&0!==r&&this.element.classList.remove(f["c"]):this.element.classList.add(f["c"])}this.label_.style.transform=n}this.rotation_=r}},e}(c),w=x,O=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),E=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),target:n.target})||this;var i=void 0!==n.className?n.className:"ol-zoom",o=void 0!==n.delta?n.delta:1,a=void 0!==n.zoomInClassName?n.zoomInClassName:i+"-in",s=void 0!==n.zoomOutClassName?n.zoomOutClassName:i+"-out",l=void 0!==n.zoomInLabel?n.zoomInLabel:"+",u=void 0!==n.zoomOutLabel?n.zoomOutLabel:"–",c=void 0!==n.zoomInTipLabel?n.zoomInTipLabel:"Zoom in",p=void 0!==n.zoomOutTipLabel?n.zoomOutTipLabel:"Zoom out",d=document.createElement("button");d.className=a,d.setAttribute("type","button"),d.title=c,d.appendChild("string"===typeof l?document.createTextNode(l):l),d.addEventListener(h["a"].CLICK,r.handleClick_.bind(r,o),!1);var g=document.createElement("button");g.className=s,g.setAttribute("type","button"),g.title=p,g.appendChild("string"===typeof u?document.createTextNode(u):u),g.addEventListener(h["a"].CLICK,r.handleClick_.bind(r,-o),!1);var y=i+" "+f["e"]+" "+f["b"],v=r.element;return v.className=y,v.appendChild(d),v.appendChild(g),r.duration_=void 0!==n.duration?n.duration:250,r}return O(e,t),e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap(),r=e.getView();if(r){var n=r.getZoom();if(void 0!==n){var i=r.getConstrainedZoom(n+t);this.duration_>0?(r.getAnimating()&&r.cancelAnimations(),r.animate({zoom:i,duration:this.duration_,easing:_["b"]})):r.setZoom(i)}}},e}(c),S=E,T=r("e637"),C=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),P=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],j={ENTERFULLSCREEN:"enterfullscreen",LEAVEFULLSCREEN:"leavefullscreen"},R=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),target:n.target})||this,r.on,r.once,r.un,r.keys_=void 0!==n.keys&&n.keys,r.source_=n.source,r.isInFullscreen_=!1,r.boundHandleMapTargetChange_=r.handleMapTargetChange_.bind(r),r.cssClassName_=void 0!==n.className?n.className:"ol-full-screen",r.documentListeners_=[],r.activeClassName_=void 0!==n.activeClassName?n.activeClassName.split(" "):[r.cssClassName_+"-true"],r.inactiveClassName_=void 0!==n.inactiveClassName?n.inactiveClassName.split(" "):[r.cssClassName_+"-false"];var i=void 0!==n.label?n.label:"⤢";r.labelNode_="string"===typeof i?document.createTextNode(i):i;var o=void 0!==n.labelActive?n.labelActive:"×";r.labelActiveNode_="string"===typeof o?document.createTextNode(o):o;var a=n.tipLabel?n.tipLabel:"Toggle full-screen";return r.button_=document.createElement("button"),r.button_.title=a,r.button_.setAttribute("type","button"),r.button_.appendChild(r.labelNode_),r.button_.addEventListener(h["a"].CLICK,r.handleClick_.bind(r),!1),r.setClassName_(r.button_,r.isInFullscreen_),r.element.className="".concat(r.cssClassName_," ").concat(f["e"]," ").concat(f["b"]),r.element.appendChild(r.button_),r}return C(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleFullScreen_()},e.prototype.handleFullScreen_=function(){var t=this.getMap();if(t){var e=t.getOwnerDocument();if(M(e))if(A(e))F(e);else{var r=void 0;r=this.source_?"string"===typeof this.source_?e.getElementById(this.source_):this.source_:t.getTargetElement(),this.keys_?I(r):L(r)}}},e.prototype.handleFullScreenChange_=function(){var t=this.getMap();if(t){var e=this.isInFullscreen_;this.isInFullscreen_=A(t.getOwnerDocument()),e!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?(Object(s["h"])(this.labelActiveNode_,this.labelNode_),this.dispatchEvent(j.ENTERFULLSCREEN)):(Object(s["h"])(this.labelNode_,this.labelActiveNode_),this.dispatchEvent(j.LEAVEFULLSCREEN)),t.updateSize())}},e.prototype.setClassName_=function(t,e){var r,n,i,o;e?((r=t.classList).remove.apply(r,this.inactiveClassName_),(n=t.classList).add.apply(n,this.activeClassName_)):((i=t.classList).remove.apply(i,this.activeClassName_),(o=t.classList).add.apply(o,this.inactiveClassName_))},e.prototype.setMap=function(e){var r=this.getMap();r&&r.removeChangeListener(T["a"].TARGET,this.boundHandleMapTargetChange_),t.prototype.setMap.call(this,e),this.handleMapTargetChange_(),e&&e.addChangeListener(T["a"].TARGET,this.boundHandleMapTargetChange_)},e.prototype.handleMapTargetChange_=function(){for(var t=this.documentListeners_,e=0,r=t.length;e<r;++e)Object(a["c"])(t[e]);t.length=0;var n=this.getMap();if(n){var i=n.getOwnerDocument();M(i)?this.element.classList.remove(f["f"]):this.element.classList.add(f["f"]);for(e=0,r=P.length;e<r;++e)t.push(Object(a["a"])(i,P[e],this.handleFullScreenChange_,this));this.handleFullScreenChange_()}},e}(c);function M(t){var e=t.body;return!!(e["webkitRequestFullscreen"]||e["msRequestFullscreen"]&&t["msFullscreenEnabled"]||e.requestFullscreen&&t.fullscreenEnabled)}function A(t){return!!(t["webkitIsFullScreen"]||t["msFullscreenElement"]||t.fullscreenElement)}function L(t){t.requestFullscreen?t.requestFullscreen():t["msRequestFullscreen"]?t["msRequestFullscreen"]():t["webkitRequestFullscreen"]&&t["webkitRequestFullscreen"]()}function I(t){t["webkitRequestFullscreen"]?t["webkitRequestFullscreen"]():L(t)}function F(t){t.exitFullscreen?t.exitFullscreen():t["msExitFullscreen"]?t["msExitFullscreen"]():t["webkitExitFullscreen"]&&t["webkitExitFullscreen"]()}var k=R,D=r("d079"),G=r("256f"),N=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),z="projection",U="coordinateFormat",B=function(t){function e(e){var r=this,n=e||{},i=document.createElement("div");i.className=void 0!==n.className?n.className:"ol-mouse-position",r=t.call(this,{element:i,render:n.render,target:n.target})||this,r.on,r.once,r.un,r.addChangeListener(z,r.handleProjectionChanged_),n.coordinateFormat&&r.setCoordinateFormat(n.coordinateFormat),n.projection&&r.setProjection(n.projection);var o=!0,a=" ";return"undefinedHTML"in n?(void 0!==n.undefinedHTML&&(a=n.undefinedHTML),o=!!a):"placeholder"in n&&(!1===n.placeholder?o=!1:a=String(n.placeholder)),r.placeholder_=a,r.renderOnMouseOut_=o,r.renderedHTML_=i.innerHTML,r.mapProjection_=null,r.transform_=null,r}return N(e,t),e.prototype.handleProjectionChanged_=function(){this.transform_=null},e.prototype.getCoordinateFormat=function(){return this.get(U)},e.prototype.getProjection=function(){return this.get(z)},e.prototype.handleMouseMove=function(t){var e=this.getMap();this.updateHTML_(e.getEventPixel(t))},e.prototype.handleMouseOut=function(t){this.updateHTML_(null)},e.prototype.setMap=function(e){if(t.prototype.setMap.call(this,e),e){var r=e.getViewport();this.listenerKeys.push(Object(a["a"])(r,D["a"].POINTERMOVE,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(Object(a["a"])(r,D["a"].POINTEROUT,this.handleMouseOut,this)),this.updateHTML_(null)}},e.prototype.setCoordinateFormat=function(t){this.set(U,t)},e.prototype.setProjection=function(t){this.set(z,Object(G["get"])(t))},e.prototype.updateHTML_=function(t){var e=this.placeholder_;if(t&&this.mapProjection_){if(!this.transform_){var r=this.getProjection();this.transform_=r?Object(G["getTransformFromProjections"])(this.mapProjection_,r):G["identityTransform"]}var n=this.getMap(),i=n.getCoordinateFromPixelInternal(t);if(i){var o=Object(G["getUserProjection"])();o&&(this.transform_=Object(G["getTransformFromProjections"])(this.mapProjection_,o)),this.transform_(i,i);var a=this.getCoordinateFormat();e=a?a(i):i.toString()}}this.renderedHTML_&&e===this.renderedHTML_||(this.element.innerHTML=e,this.renderedHTML_=e)},e.prototype.render=function(t){var e=t.frameState;e?this.mapProjection_!=e.viewState.projection&&(this.mapProjection_=e.viewState.projection,this.transform_=null):this.mapProjection_=null},e}(c),V=B,X=r("1856"),W=r("7b4f"),H=r("0710"),Y=r("fe37"),q=r("a2c7"),K=r("4384"),Z=r("0af5"),J=r("5bc33"),$=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Q=.75,tt=.1,et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $(e,t),e.prototype.createRenderer=function(){return new X["a"](this)},e}(Y["a"]),rt=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this,r.boundHandleRotationChanged_=r.handleRotationChanged_.bind(r),r.collapsed_=void 0===n.collapsed||n.collapsed,r.collapsible_=void 0===n.collapsible||n.collapsible,r.collapsible_||(r.collapsed_=!1),r.rotateWithView_=void 0!==n.rotateWithView&&n.rotateWithView,r.viewExtent_=void 0;var i=void 0!==n.className?n.className:"ol-overviewmap",o=void 0!==n.tipLabel?n.tipLabel:"Overview map",a=void 0!==n.collapseLabel?n.collapseLabel:"‹";"string"===typeof a?(r.collapseLabel_=document.createElement("span"),r.collapseLabel_.textContent=a):r.collapseLabel_=a;var s=void 0!==n.label?n.label:"›";"string"===typeof s?(r.label_=document.createElement("span"),r.label_.textContent=s):r.label_=s;var l=r.collapsible_&&!r.collapsed_?r.collapseLabel_:r.label_,u=document.createElement("button");u.setAttribute("type","button"),u.title=o,u.appendChild(l),u.addEventListener(h["a"].CLICK,r.handleClick_.bind(r),!1),r.ovmapDiv_=document.createElement("div"),r.ovmapDiv_.className="ol-overviewmap-map",r.view_=n.view,r.ovmap_=new et({view:n.view});var c=r.ovmap_;n.layers&&n.layers.forEach((function(t){c.addLayer(t)}));var p=document.createElement("div");p.className="ol-overviewmap-box",p.style.boxSizing="border-box",r.boxOverlay_=new H["default"]({position:[0,0],positioning:"center-center",element:p}),r.ovmap_.addOverlay(r.boxOverlay_);var d=i+" "+f["e"]+" "+f["b"]+(r.collapsed_&&r.collapsible_?" "+f["a"]:"")+(r.collapsible_?"":" ol-uncollapsible"),g=r.element;g.className=d,g.appendChild(r.ovmapDiv_),g.appendChild(u);var y=r,v=r.boxOverlay_,m=r.boxOverlay_.getElement(),_=function(t){return{clientX:t.clientX,clientY:t.clientY}},b=function(t){var e=_(t),r=c.getEventCoordinateInternal(e);v.setPosition(r)},x=function(t){var e=c.getEventCoordinateInternal(t);y.getMap().getView().setCenterInternal(e),window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",x)};return m.addEventListener("mousedown",(function(){window.addEventListener("mousemove",b),window.addEventListener("mouseup",x)})),r}return $(e,t),e.prototype.setMap=function(e){var r=this.getMap();if(e!==r){if(r){var n=r.getView();n&&this.unbindView_(n),this.ovmap_.setTarget(null)}if(t.prototype.setMap.call(this,e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(Object(a["a"])(e,W["a"].PROPERTYCHANGE,this.handleMapPropertyChange_,this));var i=e.getView();i&&(this.bindView_(i),i.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}},e.prototype.handleMapPropertyChange_=function(t){if(t.key===T["a"].VIEW){var e=t.oldValue;e&&this.unbindView_(e);var r=this.getMap().getView();this.bindView_(r)}else this.ovmap_.isRendered()||t.key!==T["a"].TARGET&&t.key!==T["a"].SIZE||this.ovmap_.updateSize()},e.prototype.bindView_=function(t){if(!this.view_){var e=new q["default"]({projection:t.getProjection()});this.ovmap_.setView(e)}t.addChangeListener(K["a"].ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_()},e.prototype.unbindView_=function(t){t.removeChangeListener(K["a"].ROTATION,this.boundHandleRotationChanged_)},e.prototype.handleRotationChanged_=function(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())},e.prototype.validateExtent_=function(){var t=this.getMap(),e=this.ovmap_;if(t.isRendered()&&e.isRendered()){var r=t.getSize(),n=t.getView(),i=n.calculateExtentInternal(r);if(!this.viewExtent_||!Object(Z["equals"])(i,this.viewExtent_)){this.viewExtent_=i;var o=e.getSize(),a=e.getView(),s=a.calculateExtentInternal(o),l=e.getPixelFromCoordinateInternal(Object(Z["getTopLeft"])(i)),u=e.getPixelFromCoordinateInternal(Object(Z["getBottomRight"])(i)),c=Math.abs(l[0]-u[0]),h=Math.abs(l[1]-u[1]),f=o[0],p=o[1];c<f*tt||h<p*tt||c>f*Q||h>p*Q?this.resetExtent_():Object(Z["containsExtent"])(s,i)||this.recenter_()}}},e.prototype.resetExtent_=function(){if(0!==Q&&0!==tt){var t=this.getMap(),e=this.ovmap_,r=t.getSize(),n=t.getView(),i=n.calculateExtentInternal(r),o=e.getView(),a=Math.log(Q/tt)/Math.LN2,s=1/(Math.pow(2,a/2)*tt);Object(Z["scaleFromCenter"])(i,s),o.fitInternal(Object(J["fromExtent"])(i))}},e.prototype.recenter_=function(){var t=this.getMap(),e=this.ovmap_,r=t.getView(),n=e.getView();n.setCenterInternal(r.getCenterInternal())},e.prototype.updateBox_=function(){var t=this.getMap(),e=this.ovmap_;if(t.isRendered()&&e.isRendered()){var r=t.getSize(),n=t.getView(),i=e.getView(),o=this.rotateWithView_?0:-n.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),l=n.getCenterInternal(),u=n.getResolution(),c=i.getResolution(),h=r[0]*u/c,f=r[1]*u/c;if(a.setPosition(l),s){s.style.width=h+"px",s.style.height=f+"px";var p="rotate("+o+"rad)";s.style.transform=p}}},e.prototype.updateBoxAfterOvmapIsRendered_=function(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=Object(a["b"])(this.ovmap_,i["a"].POSTRENDER,(function(t){delete this.ovmapPostrenderKey_,this.updateBox_()}),this))},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle(f["a"]),this.collapsed_?Object(s["h"])(this.collapseLabel_,this.label_):Object(s["h"])(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var t=this.ovmap_;if(!this.collapsed_){if(t.isRendered())return this.viewExtent_=void 0,void t.render();t.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.setRotateWithView=function(t){this.rotateWithView_!==t&&(this.rotateWithView_=t,0!==this.getMap().getView().getRotation()&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))},e.prototype.getOverviewMap=function(){return this.ovmap_},e.prototype.render=function(t){this.validateExtent_(),this.updateBox_()},e}(c),nt=rt,it=r("fced"),ot=r("92fa"),at=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),st="units",lt={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},ut=[1,2,5],ct=25.4/.28,ht=function(t){function e(e){var r=this,n=e||{},i=void 0!==n.className?n.className:n.bar?"ol-scale-bar":"ol-scale-line";return r=t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this,r.on,r.once,r.un,r.innerElement_=document.createElement("div"),r.innerElement_.className=i+"-inner",r.element.className=i+" "+f["e"],r.element.appendChild(r.innerElement_),r.viewState_=null,r.minWidth_=void 0!==n.minWidth?n.minWidth:64,r.maxWidth_=n.maxWidth,r.renderedVisible_=!1,r.renderedWidth_=void 0,r.renderedHTML_="",r.addChangeListener(st,r.handleUnitsChanged_),r.setUnits(n.units||lt.METRIC),r.scaleBar_=n.bar||!1,r.scaleBarSteps_=n.steps||4,r.scaleBarText_=n.text||!1,r.dpi_=n.dpi||void 0,r}return at(e,t),e.prototype.getUnits=function(){return this.get(st)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set(st,t)},e.prototype.setDpi=function(t){this.dpi_=t},e.prototype.updateElement_=function(){var t=this.viewState_;if(t){var e=t.center,r=t.projection,n=this.getUnits(),i=n==lt.DEGREES?it["b"].DEGREES:it["b"].METERS,o=Object(G["getPointResolution"])(r,t.resolution,e,i),a=this.minWidth_*(this.dpi_||ct)/ct,s=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||ct)/ct:void 0,l=a*o,u="";if(n==lt.DEGREES){var c=G["METERS_PER_UNIT"][it["b"].DEGREES];l*=c,l<c/60?(u="″",o*=3600):l<c?(u="′",o*=60):u="°"}else n==lt.IMPERIAL?l<.9144?(u="in",o/=.0254):l<1609.344?(u="ft",o/=.3048):(u="mi",o/=1609.344):n==lt.NAUTICAL?(o/=1852,u="NM"):n==lt.METRIC?l<.001?(u="μm",o*=1e6):l<1?(u="mm",o*=1e3):l<1e3?u="m":(u="km",o/=1e3):n==lt.US?l<.9144?(u="in",o*=39.37):l<1609.344?(u="ft",o/=.30480061):(u="mi",o/=1609.3472):Object(ot["a"])(!1,33);var h,f,p,d,g,y,v,m=3*Math.floor(Math.log(a*o)/Math.log(10));while(1){p=Math.floor(m/3);var _=Math.pow(10,p);if(h=ut[(m%3+3)%3]*_,f=Math.round(h/o),isNaN(f))return this.element.style.display="none",void(this.renderedVisible_=!1);if(void 0!==s&&f>=s){h=d,f=g,p=y;break}if(f>=a)break;d=h,g=f,y=p,++m}v=this.scaleBar_?this.createScaleBar(f,h,u):h.toFixed(p<0?-p:0)+" "+u,this.renderedHTML_!=v&&(this.innerElement_.innerHTML=v,this.renderedHTML_=v),this.renderedWidth_!=f&&(this.innerElement_.style.width=f+"px",this.renderedWidth_=f),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.createScaleBar=function(t,e,r){for(var n,i="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),o=[],a=t/this.scaleBarSteps_,s="ol-scale-singlebar-odd",l=0;l<this.scaleBarSteps_;l++)0===l&&o.push(this.createMarker("absolute",l)),o.push('<div><div class="ol-scale-singlebar '+s+'" style="width: '+a+'px;"></div>'+this.createMarker("relative",l)+(l%2===0||2===this.scaleBarSteps_?this.createStepText(l,t,!1,e,r):"")+"</div>"),l===this.scaleBarSteps_-1&&o.push(this.createStepText(l+1,t,!0,e,r)),s="ol-scale-singlebar-odd"===s?"ol-scale-singlebar-even":"ol-scale-singlebar-odd";n=this.scaleBarText_?'<div class="ol-scale-text" style="width: '+t+'px;">'+i+"</div>":"";var u='<div style="display: flex;">'+n+o.join("")+"</div>";return u},e.prototype.createMarker=function(t,e){var r="absolute"===t?3:-10;return'<div class="ol-scale-step-marker" style="position: '+t+";top: "+r+'px;"></div>'},e.prototype.createStepText=function(t,e,r,n,i){var o=0===t?0:Math.round(n/this.scaleBarSteps_*t*100)/100,a=o+(0===t?"":" "+i),s=0===t?-3:e/this.scaleBarSteps_*-1,l=0===t?0:e/this.scaleBarSteps_*2;return'<div class="ol-scale-step-text" style="margin-left: '+s+"px;text-align: "+(0===t?"left":"center")+"; min-width: "+l+"px;left: "+(r?e+"px":"unset")+';">'+a+"</div>"},e.prototype.getScaleForResolution=function(){var t=Object(G["getPointResolution"])(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,it["b"].METERS),e=this.dpi_||ct,r=1e3/25.4;return parseFloat(t.toString())*r*e},e.prototype.render=function(t){var e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()},e}(c),ft=ht,pt=r("7fc9"),dt=r("cef7"),gt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),yt={VERTICAL:0,HORIZONTAL:1},vt=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),render:n.render})||this,r.dragListenerKeys_=[],r.currentResolution_=void 0,r.direction_=yt.VERTICAL,r.dragging_,r.heightLimit_=0,r.widthLimit_=0,r.startX_,r.startY_,r.thumbSize_=null,r.sliderInitialized_=!1,r.duration_=void 0!==n.duration?n.duration:200;var i=void 0!==n.className?n.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=i+"-thumb "+f["e"];var a=r.element;return a.className=i+" "+f["e"]+" "+f["b"],a.appendChild(o),a.addEventListener(D["a"].POINTERDOWN,r.handleDraggerStart_.bind(r),!1),a.addEventListener(D["a"].POINTERMOVE,r.handleDraggerDrag_.bind(r),!1),a.addEventListener(D["a"].POINTERUP,r.handleDraggerEnd_.bind(r),!1),a.addEventListener(h["a"].CLICK,r.handleContainerClick_.bind(r),!1),o.addEventListener(h["a"].CLICK,dt["b"],!1),r}return gt(e,t),e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),e&&e.render()},e.prototype.initSlider_=function(){var t=this.element,e=t.offsetWidth,r=t.offsetHeight;if(0===e&&0===r)return this.sliderInitialized_=!1;var n=getComputedStyle(t);e-=parseFloat(n["paddingRight"])+parseFloat(n["paddingLeft"]),r-=parseFloat(n["paddingTop"])+parseFloat(n["paddingBottom"]);var i=t.firstElementChild,o=getComputedStyle(i),a=i.offsetWidth+parseFloat(o["marginRight"])+parseFloat(o["marginLeft"]),s=i.offsetHeight+parseFloat(o["marginTop"])+parseFloat(o["marginBottom"]);return this.thumbSize_=[a,s],e>r?(this.direction_=yt.HORIZONTAL,this.widthLimit_=e-a):(this.direction_=yt.VERTICAL,this.heightLimit_=r-s),this.sliderInitialized_=!0},e.prototype.handleContainerClick_=function(t){var e=this.getMap().getView(),r=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),n=this.getResolutionForPosition_(r),i=e.getConstrainedZoom(e.getZoomForResolution(n));e.animateInternal({zoom:i,duration:this.duration_,easing:_["b"]})},e.prototype.handleDraggerStart_=function(t){if(!this.dragging_&&t.target===this.element.firstElementChild){var e=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(e.style.left),this.startY_=t.clientY-parseFloat(e.style.top),this.dragging_=!0,0===this.dragListenerKeys_.length){var r=this.handleDraggerDrag_,n=this.handleDraggerEnd_,i=this.getMap().getOwnerDocument();this.dragListenerKeys_.push(Object(a["a"])(i,D["a"].POINTERMOVE,r,this),Object(a["a"])(i,D["a"].POINTERUP,n,this))}}},e.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var e=t.clientX-this.startX_,r=t.clientY-this.startY_,n=this.getRelativePosition_(e,r);this.currentResolution_=this.getResolutionForPosition_(n),this.getMap().getView().setResolution(this.currentResolution_)}},e.prototype.handleDraggerEnd_=function(t){if(this.dragging_){var e=this.getMap().getView();e.endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(a["c"]),this.dragListenerKeys_.length=0}},e.prototype.setThumbPosition_=function(t){var e=this.getPositionForResolution_(t),r=this.element.firstElementChild;this.direction_==yt.HORIZONTAL?r.style.left=this.widthLimit_*e+"px":r.style.top=this.heightLimit_*e+"px"},e.prototype.getRelativePosition_=function(t,e){var r;return r=this.direction_===yt.HORIZONTAL?t/this.widthLimit_:e/this.heightLimit_,Object(pt["b"])(r,0,1)},e.prototype.getResolutionForPosition_=function(t){var e=this.getMap().getView().getResolutionForValueFunction();return e(1-t)},e.prototype.getPositionForResolution_=function(t){var e=this.getMap().getView().getValueForResolutionFunction();return Object(pt["b"])(1-e(t),0,1)},e.prototype.render=function(t){if(t.frameState&&(this.sliderInitialized_||this.initSlider_())){var e=t.frameState.viewState.resolution;this.currentResolution_=e,this.setThumbPosition_(e)}},e}(c),mt=vt,_t=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),bt=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),target:n.target})||this,r.extent=n.extent?n.extent:null;var i=void 0!==n.className?n.className:"ol-zoom-extent",o=void 0!==n.label?n.label:"E",a=void 0!==n.tipLabel?n.tipLabel:"Fit to extent",s=document.createElement("button");s.setAttribute("type","button"),s.title=a,s.appendChild("string"===typeof o?document.createTextNode(o):o),s.addEventListener(h["a"].CLICK,r.handleClick_.bind(r),!1);var l=i+" "+f["e"]+" "+f["b"],u=r.element;return u.className=l,u.appendChild(s),r}return _t(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},e.prototype.handleZoomToExtent=function(){var t=this.getMap(),e=t.getView(),r=this.extent?this.extent:e.getProjection().getExtent();e.fitInternal(Object(J["fromExtent"])(r))},e}(c),xt=bt;function wt(t){var e=t||{},r=new m["a"],n=void 0===e.zoom||e.zoom;n&&r.push(new S(e.zoomOptions));var i=void 0===e.rotate||e.rotate;i&&r.push(new w(e.rotateOptions));var o=void 0===e.attribution||e.attribution;return o&&r.push(new v(e.attributionOptions)),r}},2236:function(t,e,r){var n=r("5a43");function i(t){if(Array.isArray(t))return n(t)}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},2300:function(t,e,r){"use strict";var n=r("1af9"),i=r("a194"),o=r("38f3"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){function e(e){var r=this,n=e||{},i=Object(o["a"])({},n);return delete i.preload,delete i.useInterimTilesOnError,r=t.call(this,i)||this,r.on,r.once,r.un,r.setPreload(void 0!==n.preload?n.preload:0),r.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),r}return a(e,t),e.prototype.getPreload=function(){return this.get(i["a"].PRELOAD)},e.prototype.setPreload=function(t){this.set(i["a"].PRELOAD,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(i["a"].USE_INTERIM_TILES_ON_ERROR)},e.prototype.setUseInterimTilesOnError=function(t){this.set(i["a"].USE_INTERIM_TILES_ON_ERROR,t)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(n["a"]);e["a"]=s},2335:function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},"256f":function(t,e,r){"use strict";r.r(e),r.d(e,"METERS_PER_UNIT",(function(){return i["a"]})),r.d(e,"Projection",(function(){return n["a"]})),r.d(e,"disableCoordinateWarning",(function(){return I})),r.d(e,"cloneTransform",(function(){return F})),r.d(e,"identityTransform",(function(){return k})),r.d(e,"addProjection",(function(){return D})),r.d(e,"addProjections",(function(){return G})),r.d(e,"get",(function(){return N})),r.d(e,"getPointResolution",(function(){return z})),r.d(e,"addEquivalentProjections",(function(){return U})),r.d(e,"addEquivalentTransforms",(function(){return B})),r.d(e,"clearAllProjections",(function(){return V})),r.d(e,"createProjection",(function(){return X})),r.d(e,"createTransformFromCoordinateTransform",(function(){return W})),r.d(e,"addCoordinateTransforms",(function(){return H})),r.d(e,"fromLonLat",(function(){return Y})),r.d(e,"toLonLat",(function(){return q})),r.d(e,"equivalent",(function(){return K})),r.d(e,"getTransformFromProjections",(function(){return Z})),r.d(e,"getTransform",(function(){return J})),r.d(e,"transform",(function(){return $})),r.d(e,"transformExtent",(function(){return Q})),r.d(e,"transformWithProjections",(function(){return tt})),r.d(e,"setUserProjection",(function(){return rt})),r.d(e,"clearUserProjection",(function(){return nt})),r.d(e,"getUserProjection",(function(){return it})),r.d(e,"useGeographic",(function(){return ot})),r.d(e,"toUserCoordinate",(function(){return at})),r.d(e,"fromUserCoordinate",(function(){return st})),r.d(e,"toUserExtent",(function(){return lt})),r.d(e,"fromUserExtent",(function(){return ut})),r.d(e,"toUserResolution",(function(){return ct})),r.d(e,"fromUserResolution",(function(){return ht})),r.d(e,"createSafeCoordinateTransform",(function(){return ft})),r.d(e,"addCommon",(function(){return pt}));var n=r("f5dd"),i=r("fced"),o=r("7fc9"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=6378137,l=Math.PI*s,u=[-l,-l,l,l],c=[-180,-85,180,85],h=s*Math.log(Math.tan(Math.PI/2)),f=function(t){function e(e){return t.call(this,{code:e,units:i["b"].METERS,extent:u,global:!0,worldExtent:c,getPointResolution:function(t,e){return t/Object(o["c"])(e[1]/s)}})||this}return a(e,t),e}(n["a"]),p=[new f("EPSG:3857"),new f("EPSG:102100"),new f("EPSG:102113"),new f("EPSG:900913"),new f("http://www.opengis.net/def/crs/EPSG/0/3857"),new f("http://www.opengis.net/gml/srs/epsg.xml#3857")];function d(t,e,r){var n=t.length,i=r>1?r:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(n));for(var a=0;a<n;a+=i){o[a]=l*t[a]/180;var u=s*Math.log(Math.tan(Math.PI*(+t[a+1]+90)/360));u>h?u=h:u<-h&&(u=-h),o[a+1]=u}return o}function g(t,e,r){var n=t.length,i=r>1?r:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(n));for(var a=0;a<n;a+=i)o[a]=180*t[a]/l,o[a+1]=360*Math.atan(Math.exp(t[a+1]/s))/Math.PI-90;return o}var y=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),v=6378137,m=[-180,-90,180,90],_=Math.PI*v/180,b=function(t){function e(e,r){return t.call(this,{code:e,units:i["b"].DEGREES,extent:m,axisOrientation:r,global:!0,metersPerUnit:_,worldExtent:m})||this}return y(e,t),e}(n["a"]),x=[new b("CRS:84"),new b("EPSG:4326","neu"),new b("urn:ogc:def:crs:OGC:1.3:CRS84"),new b("urn:ogc:def:crs:OGC:2:84"),new b("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new b("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new b("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],w={};function O(){w={}}function E(t){return w[t]||w[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function S(t,e){w[t]=e}r("38f3");var T={};function C(){T={}}function P(t,e,r){var n=t.getCode(),i=e.getCode();n in T||(T[n]={}),T[n][i]=r}function j(t,e){var r;return t in T&&e in T[t]&&(r=T[t][e]),r}var R=r("0af5"),M=r("a568"),A=r("790a"),L=!0;function I(t){var e=void 0===t||t;L=!e}function F(t,e,r){var n;if(void 0!==e){for(var i=0,o=t.length;i<o;++i)e[i]=t[i];n=e}else n=t.slice();return n}function k(t,e,r){if(void 0!==e&&t!==e){for(var n=0,i=t.length;n<i;++n)e[n]=t[n];t=e}return t}function D(t){S(t.getCode(),t),P(t,t,F)}function G(t){t.forEach(D)}function N(t){return"string"===typeof t?E(t):t||null}function z(t,e,r,n){var o;t=N(t);var a=t.getPointResolutionFunc();if(a){if(o=a(e,r),n&&n!==t.getUnits()){var s=t.getMetersPerUnit();s&&(o=o*s/i["a"][n])}}else{var l=t.getUnits();if(l==i["b"].DEGREES&&!n||n==i["b"].DEGREES)o=e;else{var u=Z(t,N("EPSG:4326"));if(u===k&&l!==i["b"].DEGREES)o=e*t.getMetersPerUnit();else{var c=[r[0]-e/2,r[1],r[0]+e/2,r[1],r[0],r[1]-e/2,r[0],r[1]+e/2];c=u(c,c,2);var h=Object(A["getDistance"])(c.slice(0,2),c.slice(2,4)),f=Object(A["getDistance"])(c.slice(4,6),c.slice(6,8));o=(h+f)/2}s=n?i["a"][n]:t.getMetersPerUnit();void 0!==s&&(o/=s)}}return o}function U(t){G(t),t.forEach((function(e){t.forEach((function(t){e!==t&&P(e,t,F)}))}))}function B(t,e,r,n){t.forEach((function(t){e.forEach((function(e){P(t,e,r),P(e,t,n)}))}))}function V(){O(),C()}function X(t,e){return t?"string"===typeof t?N(t):t:N(e)}function W(t){return function(e,r,n){for(var i=e.length,o=void 0!==n?n:2,a=void 0!==r?r:new Array(i),s=0;s<i;s+=o)for(var l=t(e.slice(s,s+o)),u=l.length,c=0,h=o;c<h;++c)a[s+c]=c>=u?e[s+c]:l[c];return a}}function H(t,e,r,n){var i=N(t),o=N(e);P(i,o,W(r)),P(o,i,W(n))}function Y(t,e){return I(),$(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function q(t,e){var r=$(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),n=r[0];return(n<-180||n>180)&&(r[0]=Object(o["g"])(n+180,360)-180),r}function K(t,e){if(t===e)return!0;var r=t.getUnits()===e.getUnits();if(t.getCode()===e.getCode())return r;var n=Z(t,e);return n===F&&r}function Z(t,e){var r=t.getCode(),n=e.getCode(),i=j(r,n);return i||(i=k),i}function J(t,e){var r=N(t),n=N(e);return Z(r,n)}function $(t,e,r){var n=J(e,r);return n(t,void 0,t.length)}function Q(t,e,r,n){var i=J(e,r);return Object(R["applyTransform"])(t,i,void 0,n)}function tt(t,e,r){var n=Z(e,r);return n(t)}var et=null;function rt(t){et=N(t)}function nt(){et=null}function it(){return et}function ot(){rt("EPSG:4326")}function at(t,e){return et?$(t,e,et):t}function st(t,e){return et?$(t,et,e):(L&&!Object(M["f"])(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(L=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function lt(t,e){return et?Q(t,e,et):t}function ut(t,e){return et?Q(t,et,e):t}function ct(t,e){if(!et)return t;var r=N(e).getUnits(),n=et.getUnits();return r&&n?t*i["a"][r]/i["a"][n]:t}function ht(t,e){if(!et)return t;var r=N(e).getUnits(),n=et.getUnits();return r&&n?t*i["a"][n]/i["a"][r]:t}function ft(t,e,r){return function(n){var i,a;if(t.canWrapX()){var s=t.getExtent(),l=Object(R["getWidth"])(s);n=n.slice(0),a=Object(M["g"])(n,t,l),a&&(n[0]=n[0]-a*l),n[0]=Object(o["b"])(n[0],s[0],s[2]),n[1]=Object(o["b"])(n[1],s[1],s[3]),i=r(n)}else i=r(n);return a&&e.canWrapX()&&(i[0]+=a*Object(R["getWidth"])(e.getExtent())),i}}function pt(){U(p),U(x),B(x,p,d,g)}pt()},"25a5":function(t,e,r){!function(e,r){t.exports=r()}(0,(function(){"use strict";function t(t,n,i,o,a){!function t(r,n,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=n-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1),f=Math.max(i,Math.floor(n-l*c/s+h)),p=Math.min(o,Math.floor(n+(s-l)*c/s+h));t(r,n,f,p,a)}var d=r[n],g=i,y=o;for(e(r,i,n),a(r[o],d)>0&&e(r,i,o);g<y;){for(e(r,g,y),g++,y--;a(r[g],d)<0;)g++;for(;a(r[y],d)>0;)y--}0===a(r[i],d)?e(r,i,y):e(r,++y,o),y<=n&&(i=y+1),n<=y&&(o=y-1)}}(t,n,i||0,o||t.length-1,a||r)}function e(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function r(t,e){return t<e?-1:t>e?1:0}var n=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(t,e,r){if(!r)return e.indexOf(t);for(var n=0;n<e.length;n++)if(r(t,e[n]))return n;return-1}function o(t,e){a(t,0,t.children.length,e,t)}function a(t,e,r,n,i){i||(i=d(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=e;o<r;o++){var a=t.children[o];s(i,t.leaf?n(a):a)}return i}function s(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function l(t,e){return t.minX-e.minX}function u(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function f(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function p(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function d(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,r,n,i,o){for(var a=[r,n];a.length;)if(!((n=a.pop())-(r=a.pop())<=i)){var s=r+Math.ceil((n-r)/i/2)*i;t(e,s,r,n,o),a.push(r,s,s,n)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(t){var e=this.data,r=[];if(!p(t,e))return r;for(var n=this.toBBox,i=[];e;){for(var o=0;o<e.children.length;o++){var a=e.children[o],s=e.leaf?n(a):a;p(t,s)&&(e.leaf?r.push(a):f(t,s)?this._all(a,r):i.push(a))}e=i.pop()}return r},n.prototype.collides=function(t){var e=this.data;if(!p(t,e))return!1;for(var r=[];e;){for(var n=0;n<e.children.length;n++){var i=e.children[n],o=e.leaf?this.toBBox(i):i;if(p(t,o)){if(e.leaf||f(t,o))return!0;r.push(i)}}e=r.pop()}return!1},n.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var r=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var n=this.data;this.data=r,r=n}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},n.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},n.prototype.clear=function(){return this.data=d([]),this},n.prototype.remove=function(t,e){if(!t)return this;for(var r,n,o,a=this.data,s=this.toBBox(t),l=[],u=[];a||l.length;){if(a||(a=l.pop(),n=l[l.length-1],r=u.pop(),o=!0),a.leaf){var c=i(t,a.children,e);if(-1!==c)return a.children.splice(c,1),l.push(a),this._condense(l),this}o||a.leaf||!f(a,s)?n?(r++,a=n.children[r],o=!1):a=null:(l.push(a),u.push(r),r=0,n=a,a=a.children[0])}return this},n.prototype.toBBox=function(t){return t},n.prototype.compareMinX=function(t,e){return t.minX-e.minX},n.prototype.compareMinY=function(t,e){return t.minY-e.minY},n.prototype.toJSON=function(){return this.data},n.prototype.fromJSON=function(t){return this.data=t,this},n.prototype._all=function(t,e){for(var r=[];t;)t.leaf?e.push.apply(e,t.children):r.push.apply(r,t.children),t=r.pop();return e},n.prototype._build=function(t,e,r,n){var i,a=r-e+1,s=this._maxEntries;if(a<=s)return o(i=d(t.slice(e,r+1)),this.toBBox),i;n||(n=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,n-1))),(i=d([])).leaf=!1,i.height=n;var l=Math.ceil(a/s),u=l*Math.ceil(Math.sqrt(s));g(t,e,r,u,this.compareMinX);for(var c=e;c<=r;c+=u){var h=Math.min(c+u-1,r);g(t,c,h,l,this.compareMinY);for(var f=c;f<=h;f+=l){var p=Math.min(f+l-1,h);i.children.push(this._build(t,f,p,n-1))}}return o(i,this.toBBox),i},n.prototype._chooseSubtree=function(t,e,r,n){for(;n.push(e),!e.leaf&&n.length-1!==r;){for(var i=1/0,o=1/0,a=void 0,s=0;s<e.children.length;s++){var l=e.children[s],u=c(l),h=(f=t,p=l,(Math.max(p.maxX,f.maxX)-Math.min(p.minX,f.minX))*(Math.max(p.maxY,f.maxY)-Math.min(p.minY,f.minY))-u);h<o?(o=h,i=u<i?u:i,a=l):h===o&&u<i&&(i=u,a=l)}e=a||e.children[0]}var f,p;return e},n.prototype._insert=function(t,e,r){var n=r?t:this.toBBox(t),i=[],o=this._chooseSubtree(n,this.data,e,i);for(o.children.push(t),s(o,n);e>=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(n,i,e)},n.prototype._split=function(t,e){var r=t[e],n=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,n);var a=this._chooseSplitIndex(r,i,n),s=d(r.children.splice(a,r.children.length-a));s.height=r.height,s.leaf=r.leaf,o(r,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(r,s)},n.prototype._splitRoot=function(t,e){this.data=d([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(t,e,r){for(var n,i,o,s,l,u,h,f=1/0,p=1/0,d=e;d<=r-e;d++){var g=a(t,0,d,this.toBBox),y=a(t,d,r,this.toBBox),v=(i=g,o=y,s=void 0,l=void 0,u=void 0,h=void 0,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),u=Math.min(i.maxX,o.maxX),h=Math.min(i.maxY,o.maxY),Math.max(0,u-s)*Math.max(0,h-l)),m=c(g)+c(y);v<f?(f=v,n=d,p=m<p?m:p):v===f&&m<p&&(p=m,n=d)}return n||r-e},n.prototype._chooseSplitAxis=function(t,e,r){var n=t.leaf?this.compareMinX:l,i=t.leaf?this.compareMinY:u;this._allDistMargin(t,e,r,n)<this._allDistMargin(t,e,r,i)&&t.children.sort(n)},n.prototype._allDistMargin=function(t,e,r,n){t.children.sort(n);for(var i=this.toBBox,o=a(t,0,e,i),l=a(t,r-e,r,i),u=h(o)+h(l),c=e;c<r-e;c++){var f=t.children[c];s(o,t.leaf?i(f):f),u+=h(o)}for(var p=r-e-1;p>=e;p--){var d=t.children[p];s(l,t.leaf?i(d):d),u+=h(l)}return u},n.prototype._adjustParentBBoxes=function(t,e,r){for(var n=r;n>=0;n--)s(e[n],t)},n.prototype._condense=function(t){for(var e=t.length-1,r=void 0;e>=0;e--)0===t[e].children.length?e>0?(r=t[e-1].children).splice(r.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},n}))},"25f1":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return o})),r.d(e,"c",(function(){return a})),r.d(e,"d",(function(){return s}));var n=r("0af5");function i(t,e,r,i,a){var s=Object(n["forEachCorner"])(a,(function(n){return!o(t,e,r,i,n[0],n[1])}));return!s}function o(t,e,r,n,i,o){for(var a=0,s=t[r-n],l=t[r-n+1];e<r;e+=n){var u=t[e],c=t[e+1];l<=o?c>o&&(u-s)*(o-l)-(i-s)*(c-l)>0&&a++:c<=o&&(u-s)*(o-l)-(i-s)*(c-l)<0&&a--,s=u,l=c}return 0!==a}function a(t,e,r,n,i,a){if(0===r.length)return!1;if(!o(t,e,r[0],n,i,a))return!1;for(var s=1,l=r.length;s<l;++s)if(o(t,r[s-1],r[s],n,i,a))return!1;return!0}function s(t,e,r,n,i,o){if(0===r.length)return!1;for(var s=0,l=r.length;s<l;++s){var u=r[s];if(a(t,e,u,n,i,o))return!0;e=u[u.length-1]}return!1}},2606:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("480c")),s=n(r("78db")),l=n(r("91b1")),u=r("256f"),c=((0,u.get)("EPSG:3857"),function(){function t(){(0,i.default)(this,t),this._layers=[],this._init()}return(0,o.default)(t,[{key:"_tileGrid",value:function(){for(var t=[],e=0;e<19;e++)t[e]=Math.pow(2,18-e);return new s.default({origin:[0,0],resolutions:t})}},{key:"_bdVecMap",value:function(){var t=new l.default({projection:"EPSG:3857",tileGrid:this._tileGrid(),tileUrlFunction:function(t,e,r){if(!t)return"";var n=t[0],i=t[1];t=-t[2];return"http://online3.map.bdimg.com/onlinelabel/?qt=tile&x="+(i=i<0?"M"+-i:i)+"&y="+(t=t<0?"M"+-t:t)+"&z="+n+"&styles=pl&udt=20151021&scaler=1&p=1"}});return new a.default({source:t,zIndex:-10})}},{key:"_bdImageMap",value:function(){var t=new l.default({tileGrid:this._tileGrid(),projection:"EPSG:3857",tileUrlFunction:function(t,e,r){if(!t)return"";var n=t[0],i=t[1];t=-t[2];return"http://shangetu1.map.bdimg.com/it/u=x="+(i=i<0?"M"+-i:i)+";y="+(t=t<0?"M"+-t:t)+";z="+n+";v=009;type=sate&fm=46"},crossOrigin:"anonymous"});return new a.default({source:t,zIndex:-10})}},{key:"_bdImageLabelMap",value:function(){var t=new l.default({tileGrid:this._tileGrid(),projection:"EPSG:3857",tileUrlFunction:function(t,e,r){if(!t)return"";var n=t[0],i=t[1];t=-t[2];return"http://online1.map.bdimg.com/tile/?qt=tile&x="+(i=i<0?"M"+-i:i)+"&y="+(t=t<0?"M"+-t:t)+"&z="+n+"&styles=sl&v=020"},crossOrigin:"anonymous"});return new a.default({source:t,zIndex:-10})}},{key:"_init",value:function(){this._layers.push([this._bdVecMap()]);var t=this._bdImageMap();this._layers.push([t]),this._layers.push([t,this._bdImageLabelMap()])}},{key:"layers",get:function(){return this._layers}}]),t}());e.default=c},"278c":function(t,e,r){var n=r("c135"),i=r("9b42"),o=r("6613"),a=r("c240");function s(t,e){return n(t)||i(t,e)||o(t,e)||a()}t.exports=s,t.exports.__esModule=!0,t.exports["default"]=t.exports},"29d2":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("a34a"))),o=n(r("970b")),a=n(r("5bc3")),s=n(r("5eee")),l=n(r("a226")),u=n(r("480c")),c=r("21bc"),h=function(t,e,r,n){return new(r=r||Promise)((function(i,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))},f=function(){function t(e){(0,o.default)(this,t),this._ele=null,this._mapOptians=null,this._styles=["Aerial"],this._mapOptians=e}return(0,a.default)(t,[{key:"onLoad",value:function(t){return h(this,void 0,void 0,i.default.mark((function e(){var r,n=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._ele=t,r=this._init(),e.next=4,new Promise((function(e,i){var o=new s.default(Object.assign({target:t,layers:r},n._mapOptians));if(o)return o.addControl(new c.ScaleLine),void e(o);i(null)}));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"_init",value:function(){for(var t=[],e=0;e<this._styles.length;++e)t.push(new u.default({visible:!0,preload:1/0,source:new l.default({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:this._styles[e],culture:"zh-cn"})}));return t}}]),t}();e.default=f},"29f6":function(t,e,r){"use strict";e["a"]={POINT:"point",LINE:"line"}},"2c15":function(t,e,r){"use strict";r.d(e,"b",(function(){return O}));var n=r("cef7"),i=r("869f"),o=r("a504"),a=r("01d4"),s=r("8778"),l=r("b739"),u=r("3c81"),c=r("0af5"),h=r("1e8d"),f=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=function(t){function e(e,r,n,a,s,h,f){var p=this,d=e.getExtent(),g=r.getExtent(),y=g?Object(c["getIntersection"])(n,g):n,v=Object(c["getCenter"])(y),m=Object(u["b"])(e,r,v,a),_=o["b"],b=new l["a"](e,r,y,d,m*_,a),x=b.calculateSourceExtent(),w=h(x,m,s),O=w?i["a"].IDLE:i["a"].EMPTY,E=w?w.getPixelRatio():1;return p=t.call(this,n,a,E,O)||this,p.targetProj_=r,p.maxSourceExtent_=d,p.triangulation_=b,p.targetResolution_=a,p.targetExtent_=n,p.sourceImage_=w,p.sourcePixelRatio_=E,p.interpolate_=f,p.canvas_=null,p.sourceListenerKey_=null,p}return f(e,t),e.prototype.disposeInternal=function(){this.state==i["a"].LOADING&&this.unlistenSource_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.getProjection=function(){return this.targetProj_},e.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==i["a"].LOADED){var e=Object(c["getWidth"])(this.targetExtent_)/this.targetResolution_,r=Object(c["getHeight"])(this.targetExtent_)/this.targetResolution_;this.canvas_=Object(u["d"])(e,r,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=t,this.changed()},e.prototype.load=function(){if(this.state==i["a"].IDLE){this.state=i["a"].LOADING,this.changed();var t=this.sourceImage_.getState();t==i["a"].LOADED||t==i["a"].ERROR?this.reproject_():(this.sourceListenerKey_=Object(h["a"])(this.sourceImage_,a["a"].CHANGE,(function(t){var e=this.sourceImage_.getState();e!=i["a"].LOADED&&e!=i["a"].ERROR||(this.unlistenSource_(),this.reproject_())}),this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){Object(h["c"])(this.sourceListenerKey_),this.sourceListenerKey_=null},e}(s["a"]),d=p,g=r("ff80"),y=r("1300"),v=r("256f"),m=r("9f5e"),_=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),b={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"},x=function(t){function e(e,r){var n=t.call(this,e)||this;return n.image=r,n}return _(e,t),e}(n["a"]),w=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(n=e.interpolate),r=t.call(this,{attributions:e.attributions,projection:e.projection,state:e.state,interpolate:n})||this,r.on,r.once,r.un,r.resolutions_=void 0!==e.resolutions?e.resolutions:null,r.reprojectedImage_=null,r.reprojectedRevision_=0,r}return _(e,t),e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var e=Object(m["h"])(this.resolutions_,t,0);t=this.resolutions_[e]}return t},e.prototype.getImage=function(t,e,r,n){var i=this.getProjection();if(o["a"]&&i&&n&&!Object(v["equivalent"])(i,n)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Object(v["equivalent"])(this.reprojectedImage_.getProjection(),n)&&this.reprojectedImage_.getResolution()==e&&Object(c["equals"])(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new d(i,n,t,e,r,function(t,e,r){return this.getImageInternal(t,e,r,i)}.bind(this),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return i&&(n=i),this.getImageInternal(t,e,r,n)},e.prototype.getImageInternal=function(t,e,r,n){return Object(y["b"])()},e.prototype.handleImageChange=function(t){var e,r=t.target;switch(r.getState()){case i["a"].LOADING:this.loading=!0,e=b.IMAGELOADSTART;break;case i["a"].LOADED:this.loading=!1,e=b.IMAGELOADEND;break;case i["a"].ERROR:this.loading=!1,e=b.IMAGELOADERROR;break;default:return}this.hasListener(e)&&this.dispatchEvent(new x(e,r))},e}(g["a"]);function O(t,e){t.getImage().src=e}e["a"]=w},"2c30":function(t,e,r){"use strict";function n(t,e,r,n){return void 0!==n?(n[0]=t,n[1]=e,n[2]=r,n):[t,e,r]}function i(t,e,r){return t+"/"+e+"/"+r}function o(t){return i(t[0],t[1],t[2])}function a(t){var e=t.substring(t.lastIndexOf("/")+1,t.length).split(",").map(Number),r=e[0],n=e[1],o=e[2];return i(r,n,o)}function s(t){return t.split("/").map(Number)}function l(t){return(t[1]<<t[0])+t[2]}function u(t,e){var r=t[0],n=t[1],i=t[2];if(e.getMinZoom()>r||r>e.getMaxZoom())return!1;var o=e.getFullTileRange(r);return!o||o.containsXY(n,i)}r.d(e,"a",(function(){return n})),r.d(e,"e",(function(){return i})),r.d(e,"d",(function(){return o})),r.d(e,"c",(function(){return a})),r.d(e,"b",(function(){return s})),r.d(e,"f",(function(){return l})),r.d(e,"g",(function(){return u}))},"2d75":function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return c}));var n=r(0),i=r.n(n),o=r("b39d");function a(t){return new Promise((e,r)=>{i.a.close(t,t=>{t?r(t):e()})})}function s(t,e,r){return new Promise((n,o)=>{i.a.open(t,e,r,(t,e)=>{t?o(t):n(e)})})}function l(...t){return new Promise((e,r)=>{i.a.read(...t,(t,n,i)=>{t?r(t):e({bytesRead:n,buffer:i})})})}class u extends o["a"]{constructor(t){super(),this.path=t,this.openRequest=s(t,"r")}async fetchSlice(e){const r=await this.openRequest,{buffer:n}=await l(r,t.alloc(e.length),0,e.length,e.offset);return n.buffer}async close(){const t=await this.openRequest;await a(t)}}function c(t){return new u(t)}}).call(this,r("b639").Buffer)},"2ef1":function(t,e,r){"use strict";r.r(e);var n=r("91b1"),i=r("089b"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e){var r=this,n=e||{},o=void 0===n.imageSmoothing||n.imageSmoothing;void 0!==n.interpolate&&(o=n.interpolate);var a=void 0!==n.projection?n.projection:"EPSG:3857",s=void 0!==n.tileGrid?n.tileGrid:Object(i["a"])({extent:Object(i["b"])(a),maxResolution:n.maxResolution,maxZoom:n.maxZoom,minZoom:n.minZoom,tileSize:n.tileSize});return r=t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:o,opaque:n.opaque,projection:a,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:s,tileLoadFunction:n.tileLoadFunction,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this,r.gutter_=void 0!==n.gutter?n.gutter:0,r}return o(e,t),e.prototype.getGutter=function(){return this.gutter_},e}(n["default"]);e["default"]=a},"2efc":function(t,e,r){"use strict";var n=r("a504"),i=r("01d4"),o=r("5e31"),a=r("acc1"),s=r("b739"),l=r("3c81"),u=r("7fc9"),c=r("0af5"),h=r("1e8d"),f=r("0999"),p=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),d=function(t){function e(e,r,i,o,h,f,p,d,g,y,v,m){var _=t.call(this,h,a["a"].IDLE,{interpolate:!!m})||this;_.renderEdges_=void 0!==v&&v,_.pixelRatio_=p,_.gutter_=d,_.canvas_=null,_.sourceTileGrid_=r,_.targetTileGrid_=o,_.wrappedTileCoord_=f||h,_.sourceTiles_=[],_.sourcesListenerKeys_=null,_.sourceZ_=0;var b=o.getTileCoordExtent(_.wrappedTileCoord_),x=_.targetTileGrid_.getExtent(),w=_.sourceTileGrid_.getExtent(),O=x?Object(c["getIntersection"])(b,x):b;if(0===Object(c["getArea"])(O))return _.state=a["a"].EMPTY,_;var E=e.getExtent();E&&(w=w?Object(c["getIntersection"])(w,E):E);var S=o.getResolution(_.wrappedTileCoord_[0]),T=Object(l["a"])(e,i,O,S);if(!isFinite(T)||T<=0)return _.state=a["a"].EMPTY,_;var C=void 0!==y?y:n["b"];if(_.triangulation_=new s["a"](e,i,O,w,T*C,S),0===_.triangulation_.getTriangles().length)return _.state=a["a"].EMPTY,_;_.sourceZ_=r.getZForResolution(T);var P=_.triangulation_.calculateSourceExtent();if(w&&(e.canWrapX()?(P[1]=Object(u["b"])(P[1],w[1],w[3]),P[3]=Object(u["b"])(P[3],w[1],w[3])):P=Object(c["getIntersection"])(P,w)),Object(c["getArea"])(P)){for(var j=r.getTileRangeForExtentAndZ(P,_.sourceZ_),R=j.minX;R<=j.maxX;R++)for(var M=j.minY;M<=j.maxY;M++){var A=g(_.sourceZ_,R,M,p);A&&_.sourceTiles_.push(A)}0===_.sourceTiles_.length&&(_.state=a["a"].EMPTY)}else _.state=a["a"].EMPTY;return _}return p(e,t),e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,r,n){e&&e.getState()==a["a"].LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=a["a"].ERROR;else{var e=this.wrappedTileCoord_[0],r=this.targetTileGrid_.getTileSize(e),n="number"===typeof r?r:r[0],i="number"===typeof r?r:r[1],o=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),u=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Object(l["d"])(n,i,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),o,u,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=a["a"].LOADED}this.changed()},e.prototype.load=function(){if(this.state==a["a"].IDLE){this.state=a["a"].LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,r,n){var o=e.getState();if(o==a["a"].IDLE||o==a["a"].LOADING){t++;var s=Object(h["a"])(e,i["a"].CHANGE,(function(r){var n=e.getState();n!=a["a"].LOADED&&n!=a["a"].ERROR&&n!=a["a"].EMPTY||(Object(h["c"])(s),t--,0===t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(s)}}.bind(this)),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t,e,r){var n=t.getState();n==a["a"].IDLE&&t.load()}))}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(h["c"]),this.sourcesListenerKeys_=null},e.prototype.release=function(){this.canvas_&&(Object(f["d"])(this.canvas_.getContext("2d")),l["c"].push(this.canvas_),this.canvas_=null),t.prototype.release.call(this)},e}(o["a"]);e["a"]=d},"2fc1":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(t){var n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:16,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:16;return(0,i.default)(this,r),(n=e.call(this)).imgSrc=t,n.width=o,n.height=a,n.ele.style.position="relative",n.ele.style.cursor="pointer",n.ele.style.width="".concat(n.width,"px"),n.ele.style.height="".concat(n.height,"px"),n.ele.style.backgroundPosition="center center",n.ele.style.backgroundRepeat="no-repeat",n.ele.style.backgroundImage="url(".concat(n.imgSrc,")"),n.ele.style.backgroundSize="100% 100%",n}return(0,o.default)(r,[{key:"setHTMLElementStyle",value:function(){}},{key:"setImgSrc",value:function(t){this.ele.style.backgroundImage="url(".concat(t,")")}}]),r}(u.LOverlay);e.default=f},3:function(t,e){},3005:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return i}));class n{get ok(){return this.status>=200&&this.status<=299}get status(){throw new Error("not implemented")}getHeader(t){throw new Error("not implemented")}async getData(){throw new Error("not implemented")}}class i{constructor(t){this.url=t}async request({headers:t,credentials:e,signal:r}={}){throw new Error("request is not implemented")}}},"304e":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(){return(0,i.default)(this,r),e.call(this)}return(0,o.default)(r,[{key:"setHTMLElementStyle",value:function(){this.ele.style.position="relative",this.ele.style.background="rgba(0, 0, 0, 0.8)",this.ele.style.borderRadius="4px",this.ele.style.color="#fff",this.ele.style.padding="4px 8px",this.ele.style.opacity="0.7",this.ele.style.whiteSpace="nowrap"}}]),r}(u.LOverlay);e.default=f},"30d1":function(t,e,r){"use strict";r.d(e,"a",(function(){return s})),r.d(e,"b",(function(){return l})),r.d(e,"c",(function(){return u})),r.d(e,"d",(function(){return h}));var n=r("869f"),i=r("1300"),o=.5,a={Point:m,LineString:g,Polygon:b,MultiPoint:_,MultiLineString:y,MultiPolygon:v,GeometryCollection:d,Circle:c};function s(t,e){return parseInt(Object(i["c"])(t),10)-parseInt(Object(i["c"])(e),10)}function l(t,e){var r=u(t,e);return r*r}function u(t,e){return o*t/e}function c(t,e,r,n,i){var o=r.getFill(),a=r.getStroke();if(o||a){var s=t.getBuilder(r.getZIndex(),"Circle");s.setFillStrokeStyle(o,a),s.drawCircle(e,n)}var l=r.getText();if(l&&l.getText()){var u=(i||t).getBuilder(r.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,n)}}function h(t,e,r,i,o,a,s){var l=!1,u=r.getImage();if(u){var c=u.getImageState();c==n["a"].LOADED||c==n["a"].ERROR?u.unlistenImageChange(o):(c==n["a"].IDLE&&u.load(),u.listenImageChange(o),l=!0)}return f(t,e,r,i,a,s),l}function f(t,e,r,n,i,o){var s=r.getGeometryFunction()(e);if(s){var l=s.simplifyTransformed(n,i),u=r.getRenderer();if(u)p(t,l,r,e);else{var c=a[l.getType()];c(t,l,r,e,o)}}}function p(t,e,r,n){if("GeometryCollection"!=e.getType()){var i=t.getBuilder(r.getZIndex(),"Default");i.drawCustom(e,n,r.getRenderer(),r.getHitDetectionRenderer())}else for(var o=e.getGeometries(),a=0,s=o.length;a<s;++a)p(t,o[a],r,n)}function d(t,e,r,n,i){var o,s,l=e.getGeometriesArray();for(o=0,s=l.length;o<s;++o){var u=a[l[o].getType()];u(t,l[o],r,n,i)}}function g(t,e,r,n,i){var o=r.getStroke();if(o){var a=t.getBuilder(r.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawLineString(e,n)}var s=r.getText();if(s&&s.getText()){var l=(i||t).getBuilder(r.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,n)}}function y(t,e,r,n,i){var o=r.getStroke();if(o){var a=t.getBuilder(r.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawMultiLineString(e,n)}var s=r.getText();if(s&&s.getText()){var l=(i||t).getBuilder(r.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,n)}}function v(t,e,r,n,i){var o=r.getFill(),a=r.getStroke();if(a||o){var s=t.getBuilder(r.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawMultiPolygon(e,n)}var l=r.getText();if(l&&l.getText()){var u=(i||t).getBuilder(r.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,n)}}function m(t,e,r,i,o){var a,s=r.getImage(),l=r.getText();if(s){if(s.getImageState()!=n["a"].LOADED)return;var u=t;if(o){var c=s.getDeclutterMode();if("none"!==c)if(u=o,"obstacle"===c){var h=t.getBuilder(r.getZIndex(),"Image");h.setImageStyle(s,a),h.drawPoint(e,i)}else l&&l.getText()&&(a={})}var f=u.getBuilder(r.getZIndex(),"Image");f.setImageStyle(s,a),f.drawPoint(e,i)}if(l&&l.getText()){var p=t;o&&(p=o);var d=p.getBuilder(r.getZIndex(),"Text");d.setTextStyle(l,a),d.drawText(e,i)}}function _(t,e,r,i,o){var a,s=r.getImage(),l=r.getText();if(s){if(s.getImageState()!=n["a"].LOADED)return;var u=t;if(o){var c=s.getDeclutterMode();if("none"!==c)if(u=o,"obstacle"===c){var h=t.getBuilder(r.getZIndex(),"Image");h.setImageStyle(s,a),h.drawMultiPoint(e,i)}else l&&l.getText()&&(a={})}var f=u.getBuilder(r.getZIndex(),"Image");f.setImageStyle(s,a),f.drawMultiPoint(e,i)}if(l&&l.getText()){var p=t;o&&(p=o);var d=p.getBuilder(r.getZIndex(),"Text");d.setTextStyle(l,a),d.drawText(e,i)}}function b(t,e,r,n,i){var o=r.getFill(),a=r.getStroke();if(o||a){var s=t.getBuilder(r.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawPolygon(e,n)}var l=r.getText();if(l&&l.getText()){var u=(i||t).getBuilder(r.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,n)}}},3333:function(t,e,r){"use strict";var n=r("cef7"),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.inversePixelTransform=r,o.frameState=n,o.context=i,o}return i(e,t),e}(n["a"]);e["a"]=o},"345d":function(t,e,r){"use strict";function n(t,e,r){return void 0===r&&(r=[0,0]),r[0]=t[0]+2*e,r[1]=t[1]+2*e,r}function i(t){return t[0]>0&&t[1]>0}function o(t,e,r){return void 0===r&&(r=[0,0]),r[0]=t[0]*e+.5|0,r[1]=t[1]*e+.5|0,r}function a(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"d",(function(){return a}))},"35a7":function(t,e,r){"use strict";var n=r("0ec0"),i=r("01d4"),o=r("1e8d"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){function e(){var e=t.call(this)||this;return e.on=e.onInternal,e.once=e.onceInternal,e.un=e.unInternal,e.revision_=0,e}return a(e,t),e.prototype.changed=function(){++this.revision_,this.dispatchEvent(i["a"].CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,e){if(Array.isArray(t)){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=Object(o["a"])(this,t[i],e);return n}return Object(o["a"])(this,t,e)},e.prototype.onceInternal=function(t,e){var r;if(Array.isArray(t)){var n=t.length;r=new Array(n);for(var i=0;i<n;++i)r[i]=Object(o["b"])(this,t[i],e)}else r=Object(o["b"])(this,t,e);return e.ol_key=r,r},e.prototype.unInternal=function(t,e){var r=e.ol_key;if(r)l(r);else if(Array.isArray(t))for(var n=0,i=t.length;n<i;++n)this.removeEventListener(t[n],e);else this.removeEventListener(t,e)},e}(n["a"]);function l(t){if(Array.isArray(t))for(var e=0,r=t.length;e<r;++e)Object(o["c"])(t[e]);else Object(o["c"])(t)}s.prototype.on,s.prototype.once,s.prototype.un,e["a"]=s},"35d8":function(t,e,r){"use strict";var n=r("869f"),i=r("ab35"),o=r("5c38"),a=r("e98d"),s=r("0999"),l=r("ddea"),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(t){function e(e){var r=this,n=void 0!==e.rotateWithView&&e.rotateWithView;return r=t.call(this,{opacity:1,rotateWithView:n,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode})||this,r.canvas_=void 0,r.hitDetectionCanvas_=null,r.fill_=void 0!==e.fill?e.fill:null,r.origin_=[0,0],r.points_=e.points,r.radius_=void 0!==e.radius?e.radius:e.radius1,r.radius2_=e.radius2,r.angle_=void 0!==e.angle?e.angle:0,r.stroke_=void 0!==e.stroke?e.stroke:null,r.size_=null,r.renderOptions_=null,r.render(),r}return u(e,t),e.prototype.clone=function(){var t=this.getScale(),r=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return r.setOpacity(this.getOpacity()),r},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var e=this.getDisplacement();return[t[0]/2-e[0],t[1]/2+e[1]]},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.setFill=function(t){this.fill_=t,this.render()},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var e=this.canvas_[t];if(!e){var r=this.renderOptions_,n=Object(s["a"])(r.size*t,r.size*t);this.draw_(r,n,t),e=n.canvas,this.canvas_[t]=e}return e},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return n["a"].LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.setStroke=function(t){this.stroke_=t,this.render()},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.calculateLineJoinSize_=function(t,e,r){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;var n=this.radius_,i=void 0===this.radius2_?n:this.radius2_;if(n<i){var o=n;n=i,i=o}var a=void 0===this.radius2_?this.points_:2*this.points_,s=2*Math.PI/a,l=i*Math.sin(s),u=Math.sqrt(i*i-l*l),c=n-u,h=Math.sqrt(l*l+c*c),f=h/l;if("miter"===t&&f<=r)return f*e;var p=e/2/f,d=e/2*(c/h),g=Math.sqrt((n+p)*(n+p)+d*d),y=g-n;if(void 0===this.radius2_||"bevel"===t)return 2*y;var v=n*Math.sin(s),m=Math.sqrt(n*n-v*v),_=i-m,b=Math.sqrt(v*v+_*_),x=b/v;if(x<=r){var w=x*e/2-i-n;return 2*Math.max(y,w)}return 2*y},e.prototype.createRenderOptions=function(){var t,e=l["g"],r=0,n=null,i=0,o=0;this.stroke_&&(t=this.stroke_.getColor(),null===t&&(t=l["k"]),t=Object(a["a"])(t),o=this.stroke_.getWidth(),void 0===o&&(o=l["h"]),n=this.stroke_.getLineDash(),i=this.stroke_.getLineDashOffset(),e=this.stroke_.getLineJoin(),void 0===e&&(e=l["g"]),r=this.stroke_.getMiterLimit(),void 0===r&&(r=l["i"]));var s=this.calculateLineJoinSize_(e,o,r),u=Math.max(this.radius_,this.radius2_||0),c=Math.ceil(2*u+s);return{strokeStyle:t,strokeWidth:o,size:c,lineDash:n,lineDashOffset:i,lineJoin:e,miterLimit:r}},e.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var t=this.renderOptions_.size;this.canvas_={},this.size_=[t,t]},e.prototype.draw_=function(t,e,r){if(e.scale(r,r),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){var n=this.fill_.getColor();null===n&&(n=l["b"]),e.fillStyle=Object(a["a"])(n),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,e.setLineDash&&t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e.prototype.createHitDetectionCanvas_=function(t){if(this.fill_){var e=this.fill_.getColor(),r=0;if("string"===typeof e&&(e=Object(o["a"])(e)),null===e?r=1:Array.isArray(e)&&(r=4===e.length?e[3]:1),0===r){var n=Object(s["a"])(t.size,t.size);this.hitDetectionCanvas_=n.canvas,this.drawHitDetectionCanvas_(t,n)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},e.prototype.createPath_=function(t){var e=this.points_,r=this.radius_;if(e===1/0)t.arc(0,0,r,0,2*Math.PI);else{var n=void 0===this.radius2_?r:this.radius2_;void 0!==this.radius2_&&(e*=2);for(var i=this.angle_-Math.PI/2,o=2*Math.PI/e,a=0;a<e;a++){var s=i+a*o,l=a%2===0?r:n;t.lineTo(l*Math.cos(s),l*Math.sin(s))}t.closePath()}},e.prototype.drawHitDetectionCanvas_=function(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=l["b"],e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e}(i["a"]);e["a"]=c},"36c6":function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"370b":function(t,e,r){"use strict";r.r(e),r.d(e,"coordAll",(function(){return c})),r.d(e,"coordEach",(function(){return i})),r.d(e,"coordReduce",(function(){return o})),r.d(e,"featureEach",(function(){return l})),r.d(e,"featureReduce",(function(){return u})),r.d(e,"findPoint",(function(){return b})),r.d(e,"findSegment",(function(){return _})),r.d(e,"flattenEach",(function(){return p})),r.d(e,"flattenReduce",(function(){return d})),r.d(e,"geomEach",(function(){return h})),r.d(e,"geomReduce",(function(){return f})),r.d(e,"lineEach",(function(){return v})),r.d(e,"lineReduce",(function(){return m})),r.d(e,"propEach",(function(){return a})),r.d(e,"propReduce",(function(){return s})),r.d(e,"segmentEach",(function(){return g})),r.d(e,"segmentReduce",(function(){return y}));var n=r("d30b");function i(t,e,r){if(null!==t)for(var n,o,a,s,l,u,c,h,f=0,p=0,d=t.type,g="FeatureCollection"===d,y="Feature"===d,v=g?t.features.length:1,m=0;m<v;m++){c=g?t.features[m].geometry:y?t.geometry:t,h=!!c&&"GeometryCollection"===c.type,l=h?c.geometries.length:1;for(var _=0;_<l;_++){var b=0,x=0;if(s=h?c.geometries[_]:c,null!==s){u=s.coordinates;var w=s.type;switch(f=!r||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===e(u,p,m,b,x))return!1;p++,b++;break;case"LineString":case"MultiPoint":for(n=0;n<u.length;n++){if(!1===e(u[n],p,m,b,x))return!1;p++,"MultiPoint"===w&&b++}"LineString"===w&&b++;break;case"Polygon":case"MultiLineString":for(n=0;n<u.length;n++){for(o=0;o<u[n].length-f;o++){if(!1===e(u[n][o],p,m,b,x))return!1;p++}"MultiLineString"===w&&b++,"Polygon"===w&&x++}"Polygon"===w&&b++;break;case"MultiPolygon":for(n=0;n<u.length;n++){for(x=0,o=0;o<u[n].length;o++){for(a=0;a<u[n][o].length-f;a++){if(!1===e(u[n][o][a],p,m,b,x))return!1;p++}x++}b++}break;case"GeometryCollection":for(n=0;n<s.geometries.length;n++)if(!1===i(s.geometries[n],e,r))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(t,e,r,n){var o=r;return i(t,(function(t,n,i,a,s){o=0===n&&void 0===r?t:e(o,t,n,i,a,s)}),n),o}function a(t,e){var r;switch(t.type){case"FeatureCollection":for(r=0;r<t.features.length;r++)if(!1===e(t.features[r].properties,r))break;break;case"Feature":e(t.properties,0);break}}function s(t,e,r){var n=r;return a(t,(function(t,i){n=0===i&&void 0===r?t:e(n,t,i)})),n}function l(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var r=0;r<t.features.length;r++)if(!1===e(t.features[r],r))break}function u(t,e,r){var n=r;return l(t,(function(t,i){n=0===i&&void 0===r?t:e(n,t,i)})),n}function c(t){var e=[];return i(t,(function(t){e.push(t)})),e}function h(t,e){var r,n,i,o,a,s,l,u,c,h,f=0,p="FeatureCollection"===t.type,d="Feature"===t.type,g=p?t.features.length:1;for(r=0;r<g;r++){for(s=p?t.features[r].geometry:d?t.geometry:t,u=p?t.features[r].properties:d?t.properties:{},c=p?t.features[r].bbox:d?t.bbox:void 0,h=p?t.features[r].id:d?t.id:void 0,l=!!s&&"GeometryCollection"===s.type,a=l?s.geometries.length:1,i=0;i<a;i++)if(o=l?s.geometries[i]:s,null!==o)switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(o,f,u,c,h))return!1;break;case"GeometryCollection":for(n=0;n<o.geometries.length;n++)if(!1===e(o.geometries[n],f,u,c,h))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,f,u,c,h))return!1;f++}}function f(t,e,r){var n=r;return h(t,(function(t,i,o,a,s){n=0===i&&void 0===r?t:e(n,t,i,o,a,s)})),n}function p(t,e){h(t,(function(t,r,i,o,a){var s,l=null===t?null:t.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return!1!==e(Object(n["feature"])(t,i,{bbox:o,id:a}),r,0)&&void 0}switch(l){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon";break}for(var u=0;u<t.coordinates.length;u++){var c=t.coordinates[u],h={type:s,coordinates:c};if(!1===e(Object(n["feature"])(h,i),r,u))return!1}}))}function d(t,e,r){var n=r;return p(t,(function(t,i,o){n=0===i&&0===o&&void 0===r?t:e(n,t,i,o)})),n}function g(t,e){p(t,(function(t,r,o){var a=0;if(t.geometry){var s=t.geometry.type;if("Point"!==s&&"MultiPoint"!==s){var l,u=0,c=0,h=0;return!1!==i(t,(function(i,s,f,p,d){if(void 0===l||r>u||p>c||d>h)return l=i,u=r,c=p,h=d,void(a=0);var g=Object(n["lineString"])([l,i],t.properties);if(!1===e(g,r,o,d,a))return!1;a++,l=i}))&&void 0}}}))}function y(t,e,r){var n=r,i=!1;return g(t,(function(t,o,a,s,l){n=!1===i&&void 0===r?t:e(n,t,o,a,s,l),i=!0})),n}function v(t,e){if(!t)throw new Error("geojson is required");p(t,(function(t,r,i){if(null!==t.geometry){var o=t.geometry.type,a=t.geometry.coordinates;switch(o){case"LineString":if(!1===e(t,r,i,0,0))return!1;break;case"Polygon":for(var s=0;s<a.length;s++)if(!1===e(Object(n["lineString"])(a[s],t.properties),r,i,s))return!1;break}}}))}function m(t,e,r){var n=r;return v(t,(function(t,i,o,a){n=0===i&&void 0===r?t:e(n,t,i,o,a)})),n}function _(t,e){if(e=e||{},!Object(n["isObject"])(e))throw new Error("options is invalid");var r,i=e.featureIndex||0,o=e.multiFeatureIndex||0,a=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case"Feature":l=l||t.properties,r=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=t;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var u=r.coordinates;switch(r.type){case"Point":case"MultiPoint":return null;case"LineString":return s<0&&(s=u.length+s-1),Object(n["lineString"])([u[s],u[s+1]],l,e);case"Polygon":return a<0&&(a=u.length+a),s<0&&(s=u[a].length+s-1),Object(n["lineString"])([u[a][s],u[a][s+1]],l,e);case"MultiLineString":return o<0&&(o=u.length+o),s<0&&(s=u[o].length+s-1),Object(n["lineString"])([u[o][s],u[o][s+1]],l,e);case"MultiPolygon":return o<0&&(o=u.length+o),a<0&&(a=u[o].length+a),s<0&&(s=u[o][a].length-s-1),Object(n["lineString"])([u[o][a][s],u[o][a][s+1]],l,e)}throw new Error("geojson is invalid")}function b(t,e){if(e=e||{},!Object(n["isObject"])(e))throw new Error("options is invalid");var r,i=e.featureIndex||0,o=e.multiFeatureIndex||0,a=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case"Feature":l=l||t.properties,r=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=t;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var u=r.coordinates;switch(r.type){case"Point":return Object(n["point"])(u,l,e);case"MultiPoint":return o<0&&(o=u.length+o),Object(n["point"])(u[o],l,e);case"LineString":return s<0&&(s=u.length+s),Object(n["point"])(u[s],l,e);case"Polygon":return a<0&&(a=u.length+a),s<0&&(s=u[a].length+s),Object(n["point"])(u[a][s],l,e);case"MultiLineString":return o<0&&(o=u.length+o),s<0&&(s=u[o].length+s),Object(n["point"])(u[o][s],l,e);case"MultiPolygon":return o<0&&(o=u.length+o),a<0&&(a=u[o].length+a),s<0&&(s=u[o][a].length-s),Object(n["point"])(u[o][a][s],l,e)}throw new Error("geojson is invalid")}},"38f3":function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"d",(function(){return a}));var n="function"===typeof Object.assign?Object.assign:function(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),n=1,i=arguments.length;n<i;++n){var o=arguments[n];if(void 0!==o&&null!==o)for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])}return r};function i(t){for(var e in t)delete t[e]}var o="function"===typeof Object.values?Object.values:function(t){var e=[];for(var r in t)e.push(t[r]);return e};function a(t){var e;for(e in t)return!1;return!e}},"399c":function(t,e,r){"use strict";r.d(e,"a",(function(){return c})),r.d(e,"b",(function(){return h})),r.d(e,"c",(function(){return f}));var n=r("c946"),i=r("82b0"),o=r("6cbf"),a=r("7fc9"),s=r("0999"),l=r("0af5"),u=r("9f5e"),c=.5;function h(t,e,r,a,h,f,p){var d=t[0]*c,g=t[1]*c,y=Object(s["a"])(d,g);y.imageSmoothingEnabled=!1;for(var v=y.canvas,m=new n["a"](y,c,h,null,p),_=r.length,b=Math.floor(16777215/_),x={},w=1;w<=_;++w){var O=r[w-1],E=O.getStyleFunction()||a;if(a){var S=E(O,f);if(S){Array.isArray(S)||(S=[S]);for(var T=w*b,C="#"+("000000"+T.toString(16)).slice(-6),P=0,j=S.length;P<j;++P){var R=S[P],M=R.getGeometryFunction()(O);if(M&&Object(l["intersects"])(h,M.getExtent())){var A=R.clone(),L=A.getFill();L&&L.setColor(C);var I=A.getStroke();I&&(I.setColor(C),I.setLineDash(null)),A.setText(void 0);var F=R.getImage();if(F&&0!==F.getOpacity()){var k=F.getImageSize();if(!k)continue;var D=Object(s["a"])(k[0],k[1],void 0,{alpha:!1}),G=D.canvas;D.fillStyle=C,D.fillRect(0,0,G.width,G.height),A.setImage(new o["a"]({img:G,imgSize:k,anchor:F.getAnchor(),anchorXUnits:i["a"].PIXELS,anchorYUnits:i["a"].PIXELS,offset:F.getOrigin(),opacity:1,size:F.getSize(),scale:F.getScale(),rotation:F.getRotation(),rotateWithView:F.getRotateWithView()}))}var N=A.getZIndex()||0,z=x[N];z||(z={},x[N]=z,z["Polygon"]=[],z["Circle"]=[],z["LineString"]=[],z["Point"]=[]),z[M.getType().replace("Multi","")].push(M,A)}}}}}for(var U=Object.keys(x).map(Number).sort(u["i"]),B=(w=0,U.length);w<B;++w){z=x[U[w]];for(var V in z){var X=z[V];for(P=0,j=X.length;P<j;P+=2){m.setStyle(X[P+1]);for(var W=0,H=e.length;W<H;++W)m.setTransform(e[W]),m.drawGeometry(X[P])}}}return y.getImageData(0,0,v.width,v.height)}function f(t,e,r){var n=[];if(r){var i=Math.floor(Math.round(t[0])*c),o=Math.floor(Math.round(t[1])*c),s=4*(Object(a["b"])(i,0,r.width-1)+Object(a["b"])(o,0,r.height-1)*r.width),l=r.data[s],u=r.data[s+1],h=r.data[s+2],f=h+256*(u+256*l),p=Math.floor(16777215/e.length);f&&f%p===0&&n.push(e[f/p-1])}return n}},"39cf":function(t,e,r){"use strict";var n=r("137e"),i=r("869f"),o=r("496f"),a=r("a504"),s=r("0b0e"),l=r("a896"),u=r("38f3"),c=r("0af5"),h=r("256f"),f=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=function(t){function e(e){var r=t.call(this,e)||this;return r.image_=null,r}return f(e,t),e.prototype.getImage=function(){return this.image_?this.image_.getImage():null},e.prototype.prepareFrame=function(t){var e=t.layerStatesArray[t.layerIndex],r=t.pixelRatio,n=t.viewState,s=n.resolution,l=this.getLayer().getSource(),u=t.viewHints,f=t.extent;if(void 0!==e.extent&&(f=Object(c["getIntersection"])(f,Object(h["fromUserExtent"])(e.extent,n.projection))),!u[o["a"].ANIMATING]&&!u[o["a"].INTERACTING]&&!Object(c["isEmpty"])(f))if(l){var p=n.projection;if(!a["a"]){var d=l.getProjection();d&&(p=d)}var g=l.getImage(f,s,r,p);g&&(this.loadImage(g)?this.image_=g:g.getState()===i["a"].EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_},e.prototype.getData=function(t){var e=this.frameState;if(!e)return null;var r=this.getLayer(),n=Object(l["a"])(e.pixelToCoordinateTransform,t.slice()),i=r.getExtent();if(i&&!Object(c["containsCoordinate"])(i,n))return null;var o=this.image_.getExtent(),a=this.image_.getImage(),s=Object(c["getWidth"])(o),u=Math.floor(a.width*((n[0]-o[0])/s));if(u<0||u>=a.width)return null;var h=Object(c["getHeight"])(o),f=Math.floor(a.height*((o[3]-n[1])/h));return f<0||f>=a.height?null:this.getImageData(a,u,f)},e.prototype.renderFrame=function(t,e){var r=this.image_,n=r.getExtent(),i=r.getResolution(),o=r.getPixelRatio(),a=t.layerStatesArray[t.layerIndex],f=t.pixelRatio,p=t.viewState,d=p.center,g=p.resolution,y=f*i/(g*o),v=t.extent,m=p.resolution,_=p.rotation,b=Math.round(Object(c["getWidth"])(v)/m*f),x=Math.round(Object(c["getHeight"])(v)/m*f);Object(l["b"])(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/f,1/f,_,-b/2,-x/2),Object(l["d"])(this.inversePixelTransform,this.pixelTransform);var w=Object(l["k"])(this.pixelTransform);this.useContainer(e,w,this.getBackground(t));var O=this.context,E=O.canvas;E.width!=b||E.height!=x?(E.width=b,E.height=x):this.containerReused||O.clearRect(0,0,b,x);var S=!1,T=!0;if(a.extent){var C=Object(h["fromUserExtent"])(a.extent,p.projection);T=Object(c["intersects"])(C,t.extent),S=T&&!Object(c["containsExtent"])(C,t.extent),S&&this.clipUnrotated(O,t,C)}var P=r.getImage(),j=Object(l["b"])(this.tempTransform,b/2,x/2,y,y,0,o*(n[0]-d[0])/i,o*(d[1]-n[3])/i);this.renderedResolution=i*f/o;var R=P.width*j[0],M=P.height*j[3];if(this.getLayer().getSource().getInterpolate()||Object(u["a"])(O,s["a"]),this.preRender(O,t),T&&R>=.5&&M>=.5){var A=j[4],L=j[5],I=a.opacity,F=void 0;1!==I&&(F=O.globalAlpha,O.globalAlpha=I),O.drawImage(P,0,0,+P.width,+P.height,A,L,R,M),1!==I&&(O.globalAlpha=F)}return this.postRender(O,t),S&&O.restore(),Object(u["a"])(O,s["b"]),w!==E.style.transform&&(E.style.transform=w),this.container},e}(n["b"]);e["a"]=p},"3a22":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=n(r("3e6b")),c=n(r("6c77")),h=n(r("83a6")),f=n(r("8682")),p=n(r("5831")),d=n(r("4cdf")),g=n(r("5bc33")),y=n(r("e1f2"));function v(t){var e=m();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var _=function(t){(0,a.default)(r,t);var e=v(r);function r(t,n){return(0,i.default)(this,r),(t=e.call(this,t,n)).createPolygon(),t}return(0,o.default)(r,[{key:"createPolygon",value:function(){this.layer=new u.default({source:new p.default,style:this.getStyle()}),this.polygon=new g.default(this.isConvertCoordinatesGCJ02()),this.polygonFeature=new d.default(this.polygon),this.id&&this.polygonFeature.setId(this.id),this.layer.getSource().addFeature(this.polygonFeature),this.isHidePolygon||this.map.addLayer(this.layer)}},{key:"getStyle",value:function(){return new c.default({fill:new h.default({color:this.fillColor}),stroke:new f.default({color:this.stroke,width:this.width,lineDash:this.lineDash})})}},{key:"removePolygon",value:function(){this.map.removeLayer(this.layer),this.lineFeature&&(this.source.removeFeature(this.polygonFeature),this.polygonFeature=null,this.source=null,this.layer=null,this.polygon=null)}}]),r}(y.default);e.default=_},"3a39":function(t,e,r){"use strict";r.r(e),r.d(e,"DoubleClickZoom",(function(){return l})),r.d(e,"DragAndDrop",(function(){return st})),r.d(e,"DragBox",(function(){return C})),r.d(e,"DragPan",(function(){return u["default"]})),r.d(e,"DragRotate",(function(){return y})),r.d(e,"DragRotateAndZoom",(function(){return ct})),r.d(e,"DragZoom",(function(){return M})),r.d(e,"Draw",(function(){return ht["default"]})),r.d(e,"Extent",(function(){return Ct})),r.d(e,"Interaction",(function(){return i["a"]})),r.d(e,"KeyboardPan",(function(){return D})),r.d(e,"KeyboardZoom",(function(){return z})),r.d(e,"Modify",(function(){return Wt})),r.d(e,"MouseWheelZoom",(function(){return q})),r.d(e,"PinchRotate",(function(){return J})),r.d(e,"PinchZoom",(function(){return tt})),r.d(e,"Pointer",(function(){return c["b"]})),r.d(e,"Select",(function(){return Qt})),r.d(e,"Snap",(function(){return ie})),r.d(e,"Translate",(function(){return ce})),r.d(e,"defaults",(function(){return he}));var n=r("e300"),i=r("4334"),o=r("0b2d"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.delta_=n.delta?n.delta:1,r.duration_=void 0!==n.duration?n.duration:250,r}return a(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==o["a"].DBLCLICK){var r=t.originalEvent,n=t.map,a=t.coordinate,s=r.shiftKey?-this.delta_:this.delta_,l=n.getView();Object(i["c"])(l,s,a,this.duration_),r.preventDefault(),e=!0}return!e},e}(i["a"]),l=s,u=r("cb76"),c=r("4105"),h=r("57cb"),f=r("06f8"),p=r("8cc5"),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(t){function e(e){var r=this,n=e||{};return r=t.call(this,{stopDown:h["a"]})||this,r.condition_=n.condition?n.condition:f["c"],r.lastAngle_=void 0,r.duration_=void 0!==n.duration?n.duration:250,r}return d(e,t),e.prototype.handleDragEvent=function(t){if(Object(f["g"])(t)){var e=t.map,r=e.getView();if(r.getConstraints().rotation!==p["c"]){var n=e.getSize(),i=t.pixel,o=Math.atan2(n[1]/2-i[1],i[0]-n[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;r.adjustRotationInternal(-a)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){if(!Object(f["g"])(t))return!0;var e=t.map,r=e.getView();return r.endInteraction(this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!Object(f["g"])(t))return!1;if(Object(f["f"])(t)&&this.condition_(t)){var e=t.map;return e.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1},e}(c["b"]),y=g,v=r("cef7"),m=r("da5c"),_=r("5bc33"),b=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),x=function(t){function e(e){var r=t.call(this)||this;return r.geometry_=null,r.element_=document.createElement("div"),r.element_.style.position="absolute",r.element_.style.pointerEvents="auto",r.element_.className="ol-box "+e,r.map_=null,r.startPixel_=null,r.endPixel_=null,r}return b(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,r="px",n=this.element_.style;n.left=Math.min(t[0],e[0])+r,n.top=Math.min(t[1],e[1])+r,n.width=Math.abs(e[0]-t[0])+r,n.height=Math.abs(e[1]-t[1])+r},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_,r=[t,[t[0],e[1]],e,[e[0],t[1]]],n=r.map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new _["default"]([n])},e.prototype.getGeometry=function(){return this.geometry_},e}(m["a"]),w=x,O=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),E={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},S=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.coordinate=r,i.mapBrowserEvent=n,i}return O(e,t),e}(v["a"]),T=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n=e||{};return r.box_=new w(n.className||"ol-dragbox"),r.minArea_=void 0!==n.minArea?n.minArea:64,n.onBoxEnd&&(r.onBoxEnd=n.onBoxEnd),r.startPixel_=null,r.condition_=n.condition?n.condition:f["f"],r.boxEndCondition_=n.boxEndCondition?n.boxEndCondition:r.defaultBoxEndCondition,r}return O(e,t),e.prototype.defaultBoxEndCondition=function(t,e,r){var n=r[0]-e[0],i=r[1]-e[1];return n*n+i*i>=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 S(E.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 S(e?E.BOXEND:E.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 S(E.BOXSTART,t.coordinate,t)),!0)},e.prototype.onBoxEnd=function(t){},e}(c["b"]),C=T,P=r("ca42"),j=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),R=function(t){function e(e){var r=this,n=e||{},i=n.condition?n.condition:f["k"];return r=t.call(this,{condition:i,className:n.className||"ol-dragzoom",minArea:n.minArea})||this,r.duration_=void 0!==n.duration?n.duration:200,r.out_=void 0!==n.out&&n.out,r}return j(e,t),e.prototype.onBoxEnd=function(t){var e=this.getMap(),r=e.getView(),n=this.getGeometry();if(this.out_){var i=r.rotatedExtentForGeometry(n),o=r.getResolutionForExtentInternal(i),a=r.getResolution()/o;n=n.clone(),n.scale(a*a)}r.fitInternal(n,{duration:this.duration_,easing:P["b"]})},e}(C),M=R,A=r("01d4"),L={LEFT:37,UP:38,RIGHT:39,DOWN:40},I=r("a568"),F=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),k=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.defaultCondition_=function(t){return Object(f["i"])(t)&&Object(f["m"])(t)},r.condition_=void 0!==n.condition?n.condition:r.defaultCondition_,r.duration_=void 0!==n.duration?n.duration:100,r.pixelDelta_=void 0!==n.pixelDelta?n.pixelDelta:128,r}return F(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==A["a"].KEYDOWN){var r=t.originalEvent,n=r.keyCode;if(this.condition_(t)&&(n==L.DOWN||n==L.LEFT||n==L.RIGHT||n==L.UP)){var o=t.map,a=o.getView(),s=a.getResolution()*this.pixelDelta_,l=0,u=0;n==L.DOWN?u=-s:n==L.LEFT?l=-s:n==L.RIGHT?l=s:u=s;var c=[l,u];Object(I["h"])(c,a.getRotation()),Object(i["b"])(a,c,this.duration_),r.preventDefault(),e=!0}}return!e},e}(i["a"]),D=k,G=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),N=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.condition_=n.condition?n.condition:f["m"],r.delta_=n.delta?n.delta:1,r.duration_=void 0!==n.duration?n.duration:100,r}return G(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==A["a"].KEYDOWN||t.type==A["a"].KEYPRESS){var r=t.originalEvent,n=r.charCode;if(this.condition_(t)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){var o=t.map,a=n=="+".charCodeAt(0)?this.delta_:-this.delta_,s=o.getView();Object(i["c"])(s,a,void 0,this.duration_),r.preventDefault(),e=!0}}return!e},e}(i["a"]),z=N,U=function(){function t(t,e,r){this.decay_=t,this.minVelocity_=e,this.delay_=r,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 r=e-3;while(r>0&&this.points_[r+2]>t)r-=3;var n=this.points_[e+2]-this.points_[r+2];if(n<1e3/60)return!1;var i=this.points_[e]-this.points_[r],o=this.points_[e+1]-this.points_[r+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/n,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}(),B=U,V=r("617d"),X=r("7fc9"),W=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),H={TRACKPAD:"trackpad",WHEEL:"wheel"},Y=function(t){function e(e){var r=this,n=e||{};r=t.call(this,n)||this,r.totalDelta_=0,r.lastDelta_=0,r.maxDelta_=void 0!==n.maxDelta?n.maxDelta:1,r.duration_=void 0!==n.duration?n.duration:250,r.timeout_=void 0!==n.timeout?n.timeout:80,r.useAnchor_=void 0===n.useAnchor||n.useAnchor,r.constrainResolution_=void 0!==n.constrainResolution&&n.constrainResolution;var i=n.condition?n.condition:f["d"];return r.condition_=n.onFocusOnly?Object(f["a"])(f["e"],i):i,r.lastAnchor_=null,r.startTime_=void 0,r.timeoutId_,r.mode_=void 0,r.trackpadEventGap_=400,r.trackpadTimeoutId_,r.deltaPerZoom_=300,r}return W(e,t),e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap();if(t){var e=t.getView();e.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!==A["a"].WHEEL)return!0;var r,n=t.map,i=t.originalEvent;if(i.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==A["a"].WHEEL&&(r=i.deltaY,V["b"]&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=V["a"]),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),0===r)return!1;this.lastDelta_=r;var o=Date.now();void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?H.TRACKPAD:H.WHEEL);var a=n.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(-r/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=o,!1;this.totalDelta_+=r;var s=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),s),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var r=-Object(X["b"])(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(r=r?r>0?1:-1:0),Object(i["c"])(e,r,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}(i["a"]),q=Y,K=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Z=function(t){function e(e){var r=this,n=e||{},i=n;return i.stopDown||(i.stopDown=h["a"]),r=t.call(this,i)||this,r.anchor_=null,r.lastAngle_=void 0,r.rotating_=!1,r.rotationDelta_=0,r.threshold_=void 0!==n.threshold?n.threshold:.3,r.duration_=void 0!==n.duration?n.duration:250,r}return K(e,t),e.prototype.handleDragEvent=function(t){var e=0,r=this.targetPointers[0],n=this.targetPointers[1],i=Math.atan2(n.clientY-r.clientY,n.clientX-r.clientX);if(void 0!==this.lastAngle_){var o=i-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=i;var a=t.map,s=a.getView();if(s.getConstraints().rotation!==p["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,r=e.getView();return r.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=Z,$=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Q=function(t){function e(e){var r=this,n=e||{},i=n;return i.stopDown||(i.stopDown=h["a"]),r=t.call(this,i)||this,r.anchor_=null,r.duration_=void 0!==n.duration?n.duration:400,r.lastDistance_=void 0,r.lastScaleDelta_=1,r}return $(e,t),e.prototype.handleDragEvent=function(t){var e=1,r=this.targetPointers[0],n=this.targetPointers[1],i=r.clientX-n.clientX,o=r.clientY-n.clientY,a=Math.sqrt(i*i+o*o);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,r=e.getView(),n=this.lastScaleDelta_>1?1:-1;return r.endInteraction(this.duration_,n),!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"]),tt=Q,et=r("256f"),rt=r("1e8d"),nt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),it={ADD_FEATURES:"addfeatures"},ot=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.features=n,o.file=r,o.projection=i,o}return nt(e,t),e}(v["a"]),at=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{handleEvent:h["b"]})||this,r.on,r.once,r.un,r.readAsBuffer_=!1,r.formats_=[];for(var i=n.formatConstructors?n.formatConstructors:[],o=0,a=i.length;o<a;++o){var s=i[o];"function"===typeof s&&(s=new s),r.formats_.push(s),r.readAsBuffer_=r.readAsBuffer_||"arraybuffer"===s.getType()}return r.projection_=n.projection?Object(et["get"])(n.projection):null,r.dropListenKeys_=null,r.source_=n.source||null,r.target=n.target?n.target:null,r}return nt(e,t),e.prototype.handleResult_=function(t,e){var r,n=e.target.result,i=this.getMap(),o=this.projection_;if(!o){var a=i.getView();o=a.getProjection()}for(var s=this.formats_,l=0,u=s.length;l<u;++l){var c=s[l],h=n;this.readAsBuffer_&&"arraybuffer"!==c.getType()&&(void 0===r&&(r=(new TextDecoder).decode(n)),h=r);var f=this.tryReadFeatures_(c,h,{featureProjection:o});if(f&&f.length>0){this.source_&&(this.source_.clear(),this.source_.addFeatures(f)),this.dispatchEvent(new ot(it.ADD_FEATURES,t,f,o));break}}},e.prototype.registerListeners_=function(){var t=this.getMap();if(t){var e=this.target?this.target:t.getViewport();this.dropListenKeys_=[Object(rt["a"])(e,A["a"].DROP,this.handleDrop,this),Object(rt["a"])(e,A["a"].DRAGENTER,this.handleStop,this),Object(rt["a"])(e,A["a"].DRAGOVER,this.handleStop,this),Object(rt["a"])(e,A["a"].DROP,this.handleStop,this)]}},e.prototype.setActive=function(e){!this.getActive()&&e&&this.registerListeners_(),this.getActive()&&!e&&this.unregisterListeners_(),t.prototype.setActive.call(this,e)},e.prototype.setMap=function(e){this.unregisterListeners_(),t.prototype.setMap.call(this,e),this.getActive()&&this.registerListeners_()},e.prototype.tryReadFeatures_=function(t,e,r){try{return t.readFeatures(e,r)}catch(n){return null}},e.prototype.unregisterListeners_=function(){this.dropListenKeys_&&(this.dropListenKeys_.forEach(rt["c"]),this.dropListenKeys_=null)},e.prototype.handleDrop=function(t){for(var e=t.dataTransfer.files,r=0,n=e.length;r<n;++r){var i=e.item(r),o=new FileReader;o.addEventListener(A["a"].LOAD,this.handleResult_.bind(this,i)),this.readAsBuffer_?o.readAsArrayBuffer(i):o.readAsText(i)}},e.prototype.handleStop=function(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"},e}(i["a"]),st=at,lt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ut=function(t){function e(e){var r=this,n=e||{};return r=t.call(this,n)||this,r.condition_=n.condition?n.condition:f["k"],r.lastAngle_=void 0,r.lastMagnitude_=void 0,r.lastScaleDelta_=0,r.duration_=void 0!==n.duration?n.duration:400,r}return lt(e,t),e.prototype.handleDragEvent=function(t){if(Object(f["g"])(t)){var e=t.map,r=e.getSize(),n=t.pixel,i=n[0]-r[0]/2,o=r[1]/2-n[1],a=Math.atan2(o,i),s=Math.sqrt(i*i+o*o),l=e.getView();if(void 0!==this.lastAngle_){var u=this.lastAngle_-a;l.adjustRotationInternal(u)}this.lastAngle_=a,void 0!==this.lastMagnitude_&&l.adjustResolutionInternal(this.lastMagnitude_/s),void 0!==this.lastMagnitude_&&(this.lastScaleDelta_=this.lastMagnitude_/s),this.lastMagnitude_=s}},e.prototype.handleUpEvent=function(t){if(!Object(f["g"])(t))return!0;var e=t.map,r=e.getView(),n=this.lastScaleDelta_>1?1:-1;return r.endInteraction(this.duration_,n),this.lastScaleDelta_=0,!1},e.prototype.handleDownEvent=function(t){return!!Object(f["g"])(t)&&(!!this.condition_(t)&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0))},e}(c["b"]),ct=ut,ht=r("ac29"),ft=r("4cdf"),pt=r("f403"),dt=r("3e6b"),gt=r("5831"),yt=r("0af5"),vt=r("6c77"),mt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),_t={EXTENTCHANGED:"extentchanged"},bt=function(t){function e(e){var r=t.call(this,_t.EXTENTCHANGED)||this;return r.extent=e,r}return mt(e,t),e}(v["a"]),xt=function(t){function e(e){var r=this,n=e||{};return r=t.call(this,n)||this,r.on,r.once,r.un,r.condition_=n.condition?n.condition:f["d"],r.extent_=null,r.pointerHandler_=null,r.pixelTolerance_=void 0!==n.pixelTolerance?n.pixelTolerance:10,r.snappedToVertex_=!1,r.extentFeature_=null,r.vertexFeature_=null,e||(e={}),r.extentOverlay_=new dt["default"]({source:new gt["default"]({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.boxStyle?e.boxStyle:wt(),updateWhileAnimating:!0,updateWhileInteracting:!0}),r.vertexOverlay_=new dt["default"]({source:new gt["default"]({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.pointerStyle?e.pointerStyle:Ot(),updateWhileAnimating:!0,updateWhileInteracting:!0}),e.extent&&r.setExtent(e.extent),r}return mt(e,t),e.prototype.snapToVertex_=function(t,e){var r=e.getCoordinateFromPixelInternal(t),n=function(t,e){return Object(I["k"])(r,t)-Object(I["k"])(r,e)},i=this.getExtentInternal();if(i){var o=Tt(i);o.sort(n);var a=o[0],s=Object(I["c"])(r,a),l=e.getPixelFromCoordinateInternal(s);if(Object(I["e"])(t,l)<=this.pixelTolerance_){var u=e.getPixelFromCoordinateInternal(a[0]),c=e.getPixelFromCoordinateInternal(a[1]),h=Object(I["j"])(l,u),f=Object(I["j"])(l,c),p=Math.sqrt(Math.min(h,f));return this.snappedToVertex_=p<=this.pixelTolerance_,this.snappedToVertex_&&(s=h>f?a[1]:a[0]),s}}return null},e.prototype.handlePointerMove_=function(t){var e=t.pixel,r=t.map,n=this.snapToVertex_(e,r);n||(n=r.getCoordinateFromPixelInternal(e)),this.createOrUpdatePointerFeature_(n)},e.prototype.createOrUpdateExtentFeature_=function(t){var e=this.extentFeature_;return e?t?e.setGeometry(Object(_["fromExtent"])(t)):e.setGeometry(void 0):(e=t?new ft["default"](Object(_["fromExtent"])(t)):new ft["default"]({}),this.extentFeature_=e,this.extentOverlay_.getSource().addFeature(e)),e},e.prototype.createOrUpdatePointerFeature_=function(t){var e=this.vertexFeature_;if(e){var r=e.getGeometry();r.setCoordinates(t)}else e=new ft["default"](new pt["default"](t)),this.vertexFeature_=e,this.vertexOverlay_.getSource().addFeature(e);return e},e.prototype.handleEvent=function(e){return!e.originalEvent||!this.condition_(e)||(e.type!=o["a"].POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),t.prototype.handleEvent.call(this,e),!1)},e.prototype.handleDownEvent=function(t){var e=t.pixel,r=t.map,n=this.getExtentInternal(),i=this.snapToVertex_(e,r),o=function(t){var e=null,r=null;return t[0]==n[0]?e=n[2]:t[0]==n[2]&&(e=n[0]),t[1]==n[1]?r=n[3]:t[1]==n[3]&&(r=n[1]),null!==e&&null!==r?[e,r]:null};if(i&&n){var a=i[0]==n[0]||i[0]==n[2]?i[0]:null,s=i[1]==n[1]||i[1]==n[3]?i[1]:null;null!==a&&null!==s?this.pointerHandler_=Et(o(i)):null!==a?this.pointerHandler_=St(o([a,n[1]]),o([a,n[3]])):null!==s&&(this.pointerHandler_=St(o([n[0],s]),o([n[2],s])))}else i=r.getCoordinateFromPixelInternal(e),this.setExtent([i[0],i[1],i[0],i[1]]),this.pointerHandler_=Et(i);return!0},e.prototype.handleDragEvent=function(t){if(this.pointerHandler_){var e=t.coordinate;this.setExtent(this.pointerHandler_(e)),this.createOrUpdatePointerFeature_(e)}},e.prototype.handleUpEvent=function(t){this.pointerHandler_=null;var e=this.getExtentInternal();return e&&0!==Object(yt["getArea"])(e)||this.setExtent(null),!1},e.prototype.setMap=function(e){this.extentOverlay_.setMap(e),this.vertexOverlay_.setMap(e),t.prototype.setMap.call(this,e)},e.prototype.getExtent=function(){return Object(et["toUserExtent"])(this.getExtentInternal(),this.getMap().getView().getProjection())},e.prototype.getExtentInternal=function(){return this.extent_},e.prototype.setExtent=function(t){this.extent_=t||null,this.createOrUpdateExtentFeature_(t),this.dispatchEvent(new bt(this.extent_))},e}(c["b"]);function wt(){var t=Object(vt["createEditingStyle"])();return function(e,r){return t["Polygon"]}}function Ot(){var t=Object(vt["createEditingStyle"])();return function(e,r){return t["Point"]}}function Et(t){return function(e){return Object(yt["boundingExtent"])([t,e])}}function St(t,e){return t[0]==e[0]?function(r){return Object(yt["boundingExtent"])([t,[r[0],e[1]]])}:t[1]==e[1]?function(r){return Object(yt["boundingExtent"])([t,[e[0],r[1]]])}:null}function Tt(t){return[[[t[0],t[1]],[t[0],t[3]]],[[t[0],t[3]],[t[2],t[3]]],[[t[2],t[3]],[t[2],t[1]]],[[t[2],t[1]],[t[0],t[1]]]]}var Ct=xt,Pt=r("183a"),jt=r("4a7d"),Rt=r("a43f"),Mt=r("9f5e"),At=r("1300"),Lt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),It=0,Ft=1,kt=[0,0,0,0],Dt=[],Gt={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"},Nt=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.features=r,i.mapBrowserEvent=n,i}return Lt(e,t),e}(v["a"]),zt=function(t){function e(e){var r,i=t.call(this,e)||this;if(i.on,i.once,i.un,i.boundHandleFeatureChange_=i.handleFeatureChange_.bind(i),i.condition_=e.condition?e.condition:f["j"],i.defaultDeleteCondition_=function(t){return Object(f["b"])(t)&&Object(f["l"])(t)},i.deleteCondition_=e.deleteCondition?e.deleteCondition:i.defaultDeleteCondition_,i.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:f["d"],i.vertexFeature_=null,i.vertexSegments_=null,i.lastPixel_=[0,0],i.ignoreNextSingleClick_=!1,i.featuresBeingModified_=null,i.rBush_=new jt["a"],i.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,i.snappedToVertex_=!1,i.changingFeature_=!1,i.dragSegments_=[],i.overlay_=new dt["default"]({source:new gt["default"]({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:Xt(),updateWhileAnimating:!0,updateWhileInteracting:!0}),i.SEGMENT_WRITERS_={Point:i.writePointGeometry_.bind(i),LineString:i.writeLineStringGeometry_.bind(i),LinearRing:i.writeLineStringGeometry_.bind(i),Polygon:i.writePolygonGeometry_.bind(i),MultiPoint:i.writeMultiPointGeometry_.bind(i),MultiLineString:i.writeMultiLineStringGeometry_.bind(i),MultiPolygon:i.writeMultiPolygonGeometry_.bind(i),Circle:i.writeCircleGeometry_.bind(i),GeometryCollection:i.writeGeometryCollectionGeometry_.bind(i)},i.source_=null,i.hitDetection_=null,e.features?r=e.features:e.source&&(i.source_=e.source,r=new n["a"](i.source_.getFeatures()),i.source_.addEventListener(Rt["a"].ADDFEATURE,i.handleSourceAdd_.bind(i)),i.source_.addEventListener(Rt["a"].REMOVEFEATURE,i.handleSourceRemove_.bind(i))),!r)throw new Error("The modify interaction requires features, a source or a layer");return e.hitDetection&&(i.hitDetection_=e.hitDetection),i.features_=r,i.features_.forEach(i.addFeature_.bind(i)),i.features_.addEventListener(Pt["a"].ADD,i.handleFeatureAdd_.bind(i)),i.features_.addEventListener(Pt["a"].REMOVE,i.handleFeatureRemove_.bind(i)),i.lastPointerEvent_=null,i.delta_=[0,0],i.snapToPointer_=void 0===e.snapToPointer?!i.hitDetection_:e.snapToPointer,i}return Lt(e,t),e.prototype.addFeature_=function(t){var e=t.getGeometry();if(e){var r=this.SEGMENT_WRITERS_[e.getType()];r&&r(t,e)}var n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,n),t.addEventListener(A["a"].CHANGE,this.boundHandleFeatureChange_)},e.prototype.willModifyFeatures_=function(t,e){if(!this.featuresBeingModified_){this.featuresBeingModified_=new n["a"];for(var r=this.featuresBeingModified_.getArray(),i=0,o=e.length;i<o;++i)for(var a=e[i],s=0,l=a.length;s<l;++s){var u=a[s].feature;u&&-1===r.indexOf(u)&&this.featuresBeingModified_.push(u)}0===this.featuresBeingModified_.getLength()?this.featuresBeingModified_=null:this.dispatchEvent(new Nt(Gt.MODIFYSTART,this.featuresBeingModified_,t))}},e.prototype.removeFeature_=function(t){this.removeFeatureSegmentData_(t),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.removeEventListener(A["a"].CHANGE,this.boundHandleFeatureChange_)},e.prototype.removeFeatureSegmentData_=function(t){var e=this.rBush_,r=[];e.forEach((function(e){t===e.feature&&r.push(e)}));for(var n=r.length-1;n>=0;--n){for(var i=r[n],o=this.dragSegments_.length-1;o>=0;--o)this.dragSegments_[o][0]===i&&this.dragSegments_.splice(o,1);e.remove(i)}},e.prototype.setActive=function(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.prototype.setActive.call(this,e)},e.prototype.setMap=function(e){this.overlay_.setMap(e),t.prototype.setMap.call(this,e)},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleSourceAdd_=function(t){t.feature&&this.features_.push(t.feature)},e.prototype.handleSourceRemove_=function(t){t.feature&&this.features_.remove(t.feature)},e.prototype.handleFeatureAdd_=function(t){this.addFeature_(t.element)},e.prototype.handleFeatureChange_=function(t){if(!this.changingFeature_){var e=t.target;this.removeFeature_(e),this.addFeature_(e)}},e.prototype.handleFeatureRemove_=function(t){var e=t.element;this.removeFeature_(e)},e.prototype.writePointGeometry_=function(t,e){var r=e.getCoordinates(),n={feature:t,geometry:e,segment:[r,r]};this.rBush_.insert(e.getExtent(),n)},e.prototype.writeMultiPointGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n){var o=r[n],a={feature:t,geometry:e,depth:[n],index:n,segment:[o,o]};this.rBush_.insert(e.getExtent(),a)}},e.prototype.writeLineStringGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length-1;n<i;++n){var o=r.slice(n,n+2),a={feature:t,geometry:e,index:n,segment:o};this.rBush_.insert(Object(yt["boundingExtent"])(o),a)}},e.prototype.writeMultiLineStringGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),u={feature:t,geometry:e,depth:[n],index:a,segment:l};this.rBush_.insert(Object(yt["boundingExtent"])(l),u)}},e.prototype.writePolygonGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),u={feature:t,geometry:e,depth:[n],index:a,segment:l};this.rBush_.insert(Object(yt["boundingExtent"])(l),u)}},e.prototype.writeMultiPolygonGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length;a<s;++a)for(var l=o[a],u=0,c=l.length-1;u<c;++u){var h=l.slice(u,u+2),f={feature:t,geometry:e,depth:[a,n],index:u,segment:h};this.rBush_.insert(Object(yt["boundingExtent"])(h),f)}},e.prototype.writeCircleGeometry_=function(t,e){var r=e.getCenter(),n={feature:t,geometry:e,index:It,segment:[r,r]},i={feature:t,geometry:e,index:Ft,segment:[r,r]},o=[n,i];n.featureSegments=o,i.featureSegments=o,this.rBush_.insert(Object(yt["createOrUpdateFromCoordinate"])(r),n);var a=e,s=Object(et["getUserProjection"])();if(s&&this.getMap()){var l=this.getMap().getView().getProjection();a=a.clone().transform(s,l),a=Object(_["fromCircle"])(a).transform(l,s)}this.rBush_.insert(a.getExtent(),i)},e.prototype.writeGeometryCollectionGeometry_=function(t,e){for(var r=e.getGeometriesArray(),n=0;n<r.length;++n){var i=r[n],o=this.SEGMENT_WRITERS_[i.getType()];o(t,i)}},e.prototype.createOrUpdateVertexFeature_=function(t,e,r){var n=this.vertexFeature_;if(n){var i=n.getGeometry();i.setCoordinates(t)}else n=new ft["default"](new pt["default"](t)),this.vertexFeature_=n,this.overlay_.getSource().addFeature(n);return n.set("features",e),n.set("geometries",r),n},e.prototype.handleEvent=function(e){return!e.originalEvent||(this.lastPointerEvent_=e,e.map.getView().getInteracting()||e.type!=o["a"].POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),this.vertexFeature_&&this.deleteCondition_(e)&&(r=!(e.type!=o["a"].SINGLECLICK||!this.ignoreNextSingleClick_)||this.removePoint()),e.type==o["a"].SINGLECLICK&&(this.ignoreNextSingleClick_=!1),t.prototype.handleEvent.call(this,e)&&!r);var r},e.prototype.handleDragEvent=function(t){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(t,this.dragSegments_);for(var e=[t.coordinate[0]+this.delta_[0],t.coordinate[1]+this.delta_[1]],r=[],n=[],i=0,o=this.dragSegments_.length;i<o;++i){var a=this.dragSegments_[i],s=a[0],l=s.feature;-1===r.indexOf(l)&&r.push(l);var u=s.geometry;-1===n.indexOf(u)&&n.push(u);var c=s.depth,h=void 0,f=s.segment,p=a[1];while(e.length<u.getStride())e.push(f[p][e.length]);switch(u.getType()){case"Point":h=e,f[0]=e,f[1]=e;break;case"MultiPoint":h=u.getCoordinates(),h[s.index]=e,f[0]=e,f[1]=e;break;case"LineString":h=u.getCoordinates(),h[s.index+p]=e,f[p]=e;break;case"MultiLineString":h=u.getCoordinates(),h[c[0]][s.index+p]=e,f[p]=e;break;case"Polygon":h=u.getCoordinates(),h[c[0]][s.index+p]=e,f[p]=e;break;case"MultiPolygon":h=u.getCoordinates(),h[c[1]][c[0]][s.index+p]=e,f[p]=e;break;case"Circle":if(f[0]=e,f[1]=e,s.index===It)this.changingFeature_=!0,u.setCenter(e),this.changingFeature_=!1;else{this.changingFeature_=!0;var d=t.map.getView().getProjection(),g=Object(I["e"])(Object(et["fromUserCoordinate"])(u.getCenter(),d),Object(et["fromUserCoordinate"])(e,d)),y=Object(et["getUserProjection"])();if(y){var v=u.clone().transform(y,d);v.setRadius(g),g=v.transform(d,y).getRadius()}u.setRadius(g),this.changingFeature_=!1}break;default:}h&&this.setGeometryCoordinates_(u,h)}this.createOrUpdateVertexFeature_(e,r,n)},e.prototype.handleDownEvent=function(t){if(!this.condition_(t))return!1;var e=t.coordinate;this.handlePointerAtPixel_(t.pixel,t.map,e),this.dragSegments_.length=0,this.featuresBeingModified_=null;var r=this.vertexFeature_;if(r){var n=t.map.getView().getProjection(),i=[],o=r.getGeometry().getCoordinates(),a=Object(yt["boundingExtent"])([o]),s=this.rBush_.getInExtent(a),l={};s.sort(Ut);for(var u=0,c=s.length;u<c;++u){var h=s[u],f=h.segment,p=Object(At["c"])(h.geometry),d=h.depth;if(d&&(p+="-"+d.join("-")),l[p]||(l[p]=new Array(2)),"Circle"!==h.geometry.getType()||h.index!==Ft)if(!Object(I["f"])(f[0],o)||l[p][0])if(!Object(I["f"])(f[1],o)||l[p][1])Object(At["c"])(f)in this.vertexSegments_&&!l[p][0]&&!l[p][1]&&this.insertVertexCondition_(t)&&i.push(h);else{if(l[p][0]&&0===l[p][0].index){var g=h.geometry.getCoordinates();switch(h.geometry.getType()){case"LineString":case"MultiLineString":continue;case"MultiPolygon":g=g[d[1]];case"Polygon":if(h.index!==g[d[0]].length-2)continue;break;default:}}this.dragSegments_.push([h,1]),l[p][1]=h}else this.dragSegments_.push([h,0]),l[p][0]=h;else{var y=Vt(e,h,n);Object(I["f"])(y,o)&&!l[p][0]&&(this.dragSegments_.push([h,0]),l[p][0]=h)}}i.length&&this.willModifyFeatures_(t,[i]);for(var v=i.length-1;v>=0;--v)this.insertVertex_(i[v],o)}return!!this.vertexFeature_},e.prototype.handleUpEvent=function(t){for(var e=this.dragSegments_.length-1;e>=0;--e){var r=this.dragSegments_[e][0],n=r.geometry;if("Circle"===n.getType()){var i=n.getCenter(),o=r.featureSegments[0],a=r.featureSegments[1];o.segment[0]=i,o.segment[1]=i,a.segment[0]=i,a.segment[1]=i,this.rBush_.update(Object(yt["createOrUpdateFromCoordinate"])(i),o);var s=n,l=Object(et["getUserProjection"])();if(l){var u=t.map.getView().getProjection();s=s.clone().transform(l,u),s=Object(_["fromCircle"])(s).transform(u,l)}this.rBush_.update(s.getExtent(),a)}else this.rBush_.update(Object(yt["boundingExtent"])(r.segment),r)}return this.featuresBeingModified_&&(this.dispatchEvent(new Nt(Gt.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null),!1},e.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map,t.coordinate)},e.prototype.handlePointerAtPixel_=function(t,e,r){var n,i,o=this,a=r||e.getCoordinateFromPixel(t),s=e.getView().getProjection(),l=function(t,e){return Bt(a,t,s)-Bt(a,e,s)};if(this.hitDetection_){var u="object"===typeof this.hitDetection_?function(t){return t===o.hitDetection_}:void 0;e.forEachFeatureAtPixel(t,(function(t,e,r){if(r=r||t.getGeometry(),"Point"===r.getType()&&Object(Mt["f"])(o.features_.getArray(),t)){i=r;var a=r.getFlatCoordinates().slice(0,2);n=[{feature:t,geometry:r,segment:[a,a]}]}return!0}),{layerFilter:u})}if(!n){var c=Object(et["fromUserExtent"])(Object(yt["createOrUpdateFromCoordinate"])(a,kt),s),h=e.getView().getResolution()*this.pixelTolerance_,f=Object(et["toUserExtent"])(Object(yt["buffer"])(c,h,kt),s);n=this.rBush_.getInExtent(f)}if(n&&n.length>0){var p=n.sort(l)[0],d=p.segment,g=Vt(a,p,s),y=e.getPixelFromCoordinate(g),v=Object(I["e"])(t,y);if(i||v<=this.pixelTolerance_){var m={};if(m[Object(At["c"])(d)]=!0,this.snapToPointer_||(this.delta_[0]=g[0]-a[0],this.delta_[1]=g[1]-a[1]),"Circle"===p.geometry.getType()&&p.index===Ft)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(g,[p.feature],[p.geometry]);else{var _=e.getPixelFromCoordinate(d[0]),b=e.getPixelFromCoordinate(d[1]),x=Object(I["j"])(y,_),w=Object(I["j"])(y,b);v=Math.sqrt(Math.min(x,w)),this.snappedToVertex_=v<=this.pixelTolerance_,this.snappedToVertex_&&(g=x>w?d[1]:d[0]),this.createOrUpdateVertexFeature_(g,[p.feature],[p.geometry]);var O={};O[Object(At["c"])(p.geometry)]=!0;for(var E=1,S=n.length;E<S;++E){var T=n[E].segment;if(!(Object(I["f"])(d[0],T[0])&&Object(I["f"])(d[1],T[1])||Object(I["f"])(d[0],T[1])&&Object(I["f"])(d[1],T[0])))break;var C=Object(At["c"])(n[E].geometry);C in O||(O[C]=!0,m[Object(At["c"])(T)]=!0)}}return void(this.vertexSegments_=m)}}this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)},e.prototype.insertVertex_=function(t,e){var r,n=t.segment,i=t.feature,o=t.geometry,a=t.depth,s=t.index;while(e.length<o.getStride())e.push(0);switch(o.getType()){case"MultiLineString":r=o.getCoordinates(),r[a[0]].splice(s+1,0,e);break;case"Polygon":r=o.getCoordinates(),r[a[0]].splice(s+1,0,e);break;case"MultiPolygon":r=o.getCoordinates(),r[a[1]][a[0]].splice(s+1,0,e);break;case"LineString":r=o.getCoordinates(),r.splice(s+1,0,e);break;default:return}this.setGeometryCoordinates_(o,r);var l=this.rBush_;l.remove(t),this.updateSegmentIndices_(o,s,a,1);var u={segment:[n[0],e],feature:i,geometry:o,depth:a,index:s};l.insert(Object(yt["boundingExtent"])(u.segment),u),this.dragSegments_.push([u,1]);var c={segment:[e,n[1]],feature:i,geometry:o,depth:a,index:s+1};l.insert(Object(yt["boundingExtent"])(c.segment),c),this.dragSegments_.push([c,0]),this.ignoreNextSingleClick_=!0},e.prototype.removePoint=function(){if(this.lastPointerEvent_&&this.lastPointerEvent_.type!=o["a"].POINTERDRAG){var t=this.lastPointerEvent_;this.willModifyFeatures_(t,this.dragSegments_);var e=this.removeVertex_();return this.featuresBeingModified_&&this.dispatchEvent(new Nt(Gt.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null,e}return!1},e.prototype.removeVertex_=function(){var t,e,r,n,i,o,a,s,l,u,c,h=this.dragSegments_,f={},p=!1;for(i=h.length-1;i>=0;--i)r=h[i],u=r[0],c=Object(At["c"])(u.feature),u.depth&&(c+="-"+u.depth.join("-")),c in f||(f[c]={}),0===r[1]?(f[c].right=u,f[c].index=u.index):1==r[1]&&(f[c].left=u,f[c].index=u.index+1);for(c in f){switch(l=f[c].right,a=f[c].left,o=f[c].index,s=o-1,u=void 0!==a?a:l,s<0&&(s=0),n=u.geometry,e=n.getCoordinates(),t=e,p=!1,n.getType()){case"MultiLineString":e[u.depth[0]].length>2&&(e[u.depth[0]].splice(o,1),p=!0);break;case"LineString":e.length>2&&(e.splice(o,1),p=!0);break;case"MultiPolygon":t=t[u.depth[1]];case"Polygon":t=t[u.depth[0]],t.length>4&&(o==t.length-1&&(o=0),t.splice(o,1),p=!0,0===o&&(t.pop(),t.push(t[0]),s=t.length-1));break;default:}if(p){this.setGeometryCoordinates_(n,e);var d=[];if(void 0!==a&&(this.rBush_.remove(a),d.push(a.segment[0])),void 0!==l&&(this.rBush_.remove(l),d.push(l.segment[1])),void 0!==a&&void 0!==l){var g={depth:u.depth,feature:u.feature,geometry:u.geometry,index:s,segment:d};this.rBush_.insert(Object(yt["boundingExtent"])(g.segment),g)}this.updateSegmentIndices_(n,o,u.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),h.length=0}}return p},e.prototype.setGeometryCoordinates_=function(t,e){this.changingFeature_=!0,t.setCoordinates(e),this.changingFeature_=!1},e.prototype.updateSegmentIndices_=function(t,e,r,n){this.rBush_.forEachInExtent(t.getExtent(),(function(i){i.geometry===t&&(void 0===r||void 0===i.depth||Object(Mt["b"])(i.depth,r))&&i.index>e&&(i.index+=n)}))},e}(c["b"]);function Ut(t,e){return t.index-e.index}function Bt(t,e,r){var n=e.geometry;if("Circle"===n.getType()){var i=n;if(e.index===Ft){var o=Object(et["getUserProjection"])();o&&(i=i.clone().transform(o,r));var a=Object(I["j"])(i.getCenter(),Object(et["fromUserCoordinate"])(t,r)),s=Math.sqrt(a)-i.getRadius();return s*s}}var l=Object(et["fromUserCoordinate"])(t,r);return Dt[0]=Object(et["fromUserCoordinate"])(e.segment[0],r),Dt[1]=Object(et["fromUserCoordinate"])(e.segment[1],r),Object(I["k"])(l,Dt)}function Vt(t,e,r){var n=e.geometry;if("Circle"===n.getType()&&e.index===Ft){var i=n,o=Object(et["getUserProjection"])();return o&&(i=i.clone().transform(o,r)),Object(et["toUserCoordinate"])(i.getClosestPoint(Object(et["fromUserCoordinate"])(t,r)),r)}var a=Object(et["fromUserCoordinate"])(t,r);return Dt[0]=Object(et["fromUserCoordinate"])(e.segment[0],r),Dt[1]=Object(et["fromUserCoordinate"])(e.segment[1],r),Object(et["toUserCoordinate"])(Object(I["c"])(a,Dt),r)}function Xt(){var t=Object(vt["createEditingStyle"])();return function(e,r){return t["Point"]}}var Wt=zt,Ht=r("38f3"),Yt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),qt={SELECT:"select"},Kt=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.selected=r,o.deselected=n,o.mapBrowserEvent=i,o}return Yt(e,t),e}(v["a"]),Zt={},Jt=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var i,o=e||{};if(r.boundAddFeature_=r.addFeature_.bind(r),r.boundRemoveFeature_=r.removeFeature_.bind(r),r.condition_=o.condition?o.condition:f["l"],r.addCondition_=o.addCondition?o.addCondition:f["h"],r.removeCondition_=o.removeCondition?o.removeCondition:f["h"],r.toggleCondition_=o.toggleCondition?o.toggleCondition:f["k"],r.multi_=!!o.multi&&o.multi,r.filter_=o.filter?o.filter:h["b"],r.hitTolerance_=o.hitTolerance?o.hitTolerance:0,r.style_=void 0!==o.style?o.style:$t(),r.features_=o.features||new n["a"],o.layers)if("function"===typeof o.layers)i=o.layers;else{var a=o.layers;i=function(t){return Object(Mt["f"])(a,t)}}else i=h["b"];return r.layerFilter_=i,r.featureLayerAssociation_={},r}return Yt(e,t),e.prototype.addFeatureLayerAssociation_=function(t,e){this.featureLayerAssociation_[Object(At["c"])(t)]=e},e.prototype.getFeatures=function(){return this.features_},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.getLayer=function(t){return this.featureLayerAssociation_[Object(At["c"])(t)]},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(e){var r=this.getMap();r&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),t.prototype.setMap.call(this,e),e?(this.features_.addEventListener(Pt["a"].ADD,this.boundAddFeature_),this.features_.addEventListener(Pt["a"].REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(Pt["a"].ADD,this.boundAddFeature_),this.features_.removeEventListener(Pt["a"].REMOVE,this.boundRemoveFeature_))},e.prototype.addFeature_=function(t){var e=t.element;if(this.style_&&this.applySelectedStyle_(e),!this.getLayer(e)){var r=this.getMap().getAllLayers().find((function(t){if(t instanceof dt["default"]&&t.getSource()&&t.getSource().hasFeature(e))return t}));r&&this.addFeatureLayerAssociation_(e,r)}},e.prototype.removeFeature_=function(t){var e=t.element;this.style_&&this.restorePreviousStyle_(e)},e.prototype.getStyle=function(){return this.style_},e.prototype.applySelectedStyle_=function(t){var e=Object(At["c"])(t);e in Zt||(Zt[e]=t.getStyle()),t.setStyle(this.style_)},e.prototype.restorePreviousStyle_=function(t){for(var r=this.getMap().getInteractions().getArray(),n=r.length-1;n>=0;--n){var i=r[n];if(i!==this&&i instanceof e&&i.getStyle()&&-1!==i.getFeatures().getArray().lastIndexOf(t))return void t.setStyle(i.getStyle())}var o=Object(At["c"])(t);t.setStyle(Zt[o]),delete Zt[o]},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[Object(At["c"])(t)]},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=this.addCondition_(t),r=this.removeCondition_(t),n=this.toggleCondition_(t),i=!e&&!r&&!n,o=t.map,a=this.getFeatures(),s=[],l=[];if(i){Object(Ht["b"])(this.featureLayerAssociation_),o.forEachFeatureAtPixel(t.pixel,function(t,e){if(this.filter_(t,e))return this.addFeatureLayerAssociation_(t,e),l.push(t),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var u=a.getLength()-1;u>=0;--u){var c=a.item(u),h=l.indexOf(c);h>-1?l.splice(h,1):(a.remove(c),s.push(c))}0!==l.length&&a.extend(l)}else{o.forEachFeatureAtPixel(t.pixel,function(t,i){if(this.filter_(t,i))return!e&&!n||Object(Mt["f"])(a.getArray(),t)?(r||n)&&Object(Mt["f"])(a.getArray(),t)&&(s.push(t),this.removeFeatureLayerAssociation_(t)):(this.addFeatureLayerAssociation_(t,i),l.push(t)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var f=s.length-1;f>=0;--f)a.remove(s[f]);a.extend(l)}return(l.length>0||s.length>0)&&this.dispatchEvent(new Kt(qt.SELECT,l,s,t)),!0},e}(i["a"]);function $t(){var t=Object(vt["createEditingStyle"])();return Object(Mt["c"])(t["Polygon"],t["LineString"]),Object(Mt["c"])(t["GeometryCollection"],t["LineString"]),function(e){return e.getGeometry()?t[e.getGeometry().getType()]:null}}var Qt=Jt,te=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function ee(t){return t.feature?t.feature:t.element?t.element:void 0}var re=[],ne=function(t){function e(e){var r=this,n=e||{},i=n;return i.handleDownEvent||(i.handleDownEvent=h["b"]),i.stopDown||(i.stopDown=h["a"]),r=t.call(this,i)||this,r.source_=n.source?n.source:null,r.vertex_=void 0===n.vertex||n.vertex,r.edge_=void 0===n.edge||n.edge,r.features_=n.features?n.features:null,r.featuresListenerKeys_=[],r.featureChangeListenerKeys_={},r.indexedFeaturesExtents_={},r.pendingFeatures_={},r.pixelTolerance_=void 0!==n.pixelTolerance?n.pixelTolerance:10,r.rBush_=new jt["a"],r.GEOMETRY_SEGMENTERS_={Point:r.segmentPointGeometry_.bind(r),LineString:r.segmentLineStringGeometry_.bind(r),LinearRing:r.segmentLineStringGeometry_.bind(r),Polygon:r.segmentPolygonGeometry_.bind(r),MultiPoint:r.segmentMultiPointGeometry_.bind(r),MultiLineString:r.segmentMultiLineStringGeometry_.bind(r),MultiPolygon:r.segmentMultiPolygonGeometry_.bind(r),GeometryCollection:r.segmentGeometryCollectionGeometry_.bind(r),Circle:r.segmentCircleGeometry_.bind(r)},r}return te(e,t),e.prototype.addFeature=function(t,e){var r=void 0===e||e,n=Object(At["c"])(t),i=t.getGeometry();if(i){var o=this.GEOMETRY_SEGMENTERS_[i.getType()];if(o){this.indexedFeaturesExtents_[n]=i.getExtent(Object(yt["createEmpty"])());var a=[];if(o(a,i),1===a.length)this.rBush_.insert(Object(yt["boundingExtent"])(a[0]),{feature:t,segment:a[0]});else if(a.length>1){var s=a.map((function(t){return Object(yt["boundingExtent"])(t)})),l=a.map((function(e){return{feature:t,segment:e}}));this.rBush_.load(s,l)}}}r&&(this.featureChangeListenerKeys_[n]=Object(rt["a"])(t,A["a"].CHANGE,this.handleFeatureChange_,this))},e.prototype.forEachFeatureAdd_=function(t){this.addFeature(t)},e.prototype.forEachFeatureRemove_=function(t){this.removeFeature(t)},e.prototype.getFeatures_=function(){var t;return this.features_?t=this.features_:this.source_&&(t=this.source_.getFeatures()),t},e.prototype.handleEvent=function(e){var r=this.snapTo(e.pixel,e.coordinate,e.map);return r&&(e.coordinate=r.vertex.slice(0,2),e.pixel=r.vertexPixel),t.prototype.handleEvent.call(this,e)},e.prototype.handleFeatureAdd_=function(t){var e=ee(t);this.addFeature(e)},e.prototype.handleFeatureRemove_=function(t){var e=ee(t);this.removeFeature(e)},e.prototype.handleFeatureChange_=function(t){var e=t.target;if(this.handlingDownUpSequence){var r=Object(At["c"])(e);r in this.pendingFeatures_||(this.pendingFeatures_[r]=e)}else this.updateFeature_(e)},e.prototype.handleUpEvent=function(t){var e=Object(Ht["c"])(this.pendingFeatures_);return e.length&&(e.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},e.prototype.removeFeature=function(t,e){var r=void 0===e||e,n=Object(At["c"])(t),i=this.indexedFeaturesExtents_[n];if(i){var o=this.rBush_,a=[];o.forEachInExtent(i,(function(e){t===e.feature&&a.push(e)}));for(var s=a.length-1;s>=0;--s)o.remove(a[s])}r&&(Object(rt["c"])(this.featureChangeListenerKeys_[n]),delete this.featureChangeListenerKeys_[n])},e.prototype.setMap=function(e){var r=this.getMap(),n=this.featuresListenerKeys_,i=this.getFeatures_();r&&(n.forEach(rt["c"]),n.length=0,i.forEach(this.forEachFeatureRemove_.bind(this))),t.prototype.setMap.call(this,e),e&&(this.features_?n.push(Object(rt["a"])(this.features_,Pt["a"].ADD,this.handleFeatureAdd_,this),Object(rt["a"])(this.features_,Pt["a"].REMOVE,this.handleFeatureRemove_,this)):this.source_&&n.push(Object(rt["a"])(this.source_,Rt["a"].ADDFEATURE,this.handleFeatureAdd_,this),Object(rt["a"])(this.source_,Rt["a"].REMOVEFEATURE,this.handleFeatureRemove_,this)),i.forEach(this.forEachFeatureAdd_.bind(this)))},e.prototype.snapTo=function(t,e,r){var n=r.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),i=r.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_]),o=Object(yt["boundingExtent"])([n,i]),a=this.rBush_.getInExtent(o),s=a.length;if(0===s)return null;var l,u=r.getView().getProjection(),c=Object(et["fromUserCoordinate"])(e,u),h=1/0,f=this.pixelTolerance_*this.pixelTolerance_,p=function(){if(l){var e=r.getPixelFromCoordinate(l),n=Object(I["j"])(t,e);if(n<=f)return{vertex:l,vertexPixel:[Math.round(e[0]),Math.round(e[1])]}}return null};if(this.vertex_){for(var d=0;d<s;++d){var g=a[d];"Circle"!==g.feature.getGeometry().getType()&&g.segment.forEach((function(t){var e=Object(et["fromUserCoordinate"])(t,u),r=Object(I["j"])(c,e);r<h&&(l=t,h=r)}))}var y=p();if(y)return y}if(this.edge_){for(d=0;d<s;++d){var v=null;g=a[d];if("Circle"===g.feature.getGeometry().getType()){var m=g.feature.getGeometry(),_=Object(et["getUserProjection"])();_&&(m=m.clone().transform(_,u)),v=Object(et["toUserCoordinate"])(Object(I["b"])(c,m),u)}else{var b=g.segment,x=b[0],w=b[1];w&&(re[0]=Object(et["fromUserCoordinate"])(x,u),re[1]=Object(et["fromUserCoordinate"])(w,u),v=Object(I["c"])(c,re))}if(v){var O=Object(I["j"])(c,v);O<h&&(l=v,h=O)}}y=p();if(y)return y}return null},e.prototype.updateFeature_=function(t){this.removeFeature(t,!1),this.addFeature(t,!1)},e.prototype.segmentCircleGeometry_=function(t,e){var r=this.getMap().getView().getProjection(),n=e,i=Object(et["getUserProjection"])();i&&(n=n.clone().transform(i,r));var o=Object(_["fromCircle"])(n);i&&o.transform(r,i);for(var a=o.getCoordinates()[0],s=0,l=a.length-1;s<l;++s)t.push(a.slice(s,s+2))},e.prototype.segmentGeometryCollectionGeometry_=function(t,e){for(var r=e.getGeometriesArray(),n=0;n<r.length;++n){var i=this.GEOMETRY_SEGMENTERS_[r[n].getType()];i&&i(t,r[n])}},e.prototype.segmentLineStringGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length-1;n<i;++n)t.push(r.slice(n,n+2))},e.prototype.segmentMultiLineStringGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length-1;a<s;++a)t.push(o.slice(a,a+2))},e.prototype.segmentMultiPointGeometry_=function(t,e){e.getCoordinates().forEach((function(e){t.push([e])}))},e.prototype.segmentMultiPolygonGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length;a<s;++a)for(var l=o[a],u=0,c=l.length-1;u<c;++u)t.push(l.slice(u,u+2))},e.prototype.segmentPointGeometry_=function(t,e){t.push([e.getCoordinates()])},e.prototype.segmentPolygonGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length-1;a<s;++a)t.push(o.slice(a,a+2))},e}(c["b"]),ie=ne,oe=r("bf62"),ae=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),se={TRANSLATESTART:"translatestart",TRANSLATING:"translating",TRANSLATEEND:"translateend"},le=function(t){function e(e,r,n,i,o){var a=t.call(this,e)||this;return a.features=r,a.coordinate=n,a.startCoordinate=i,a.mapBrowserEvent=o,a}return ae(e,t),e}(v["a"]),ue=function(t){function e(e){var r,n=this,i=e||{};if(n=t.call(this,i)||this,n.on,n.once,n.un,n.lastCoordinate_=null,n.startCoordinate_=null,n.features_=void 0!==i.features?i.features:null,i.layers&&!n.features_)if("function"===typeof i.layers)r=i.layers;else{var o=i.layers;r=function(t){return Object(Mt["f"])(o,t)}}else r=h["b"];return n.layerFilter_=r,n.filter_=i.filter&&!n.features_?i.filter:h["b"],n.hitTolerance_=i.hitTolerance?i.hitTolerance:0,n.condition_=i.condition?i.condition:f["d"],n.lastFeature_=null,n.addChangeListener(oe["a"].ACTIVE,n.handleActiveChanged_),n}return ae(e,t),e.prototype.handleDownEvent=function(t){if(!t.originalEvent||!this.condition_(t))return!1;if(this.lastFeature_=this.featuresAtPixel_(t.pixel,t.map),!this.lastCoordinate_&&this.lastFeature_){this.startCoordinate_=t.coordinate,this.lastCoordinate_=t.coordinate,this.handleMoveEvent(t);var e=this.features_||new n["a"]([this.lastFeature_]);return this.dispatchEvent(new le(se.TRANSLATESTART,e,t.coordinate,this.startCoordinate_,t)),!0}return!1},e.prototype.handleUpEvent=function(t){if(this.lastCoordinate_){this.lastCoordinate_=null,this.handleMoveEvent(t);var e=this.features_||new n["a"]([this.lastFeature_]);return this.dispatchEvent(new le(se.TRANSLATEEND,e,t.coordinate,this.startCoordinate_,t)),this.startCoordinate_=null,!0}return!1},e.prototype.handleDragEvent=function(t){if(this.lastCoordinate_){var e=t.coordinate,r=e[0]-this.lastCoordinate_[0],i=e[1]-this.lastCoordinate_[1],o=this.features_||new n["a"]([this.lastFeature_]);o.forEach((function(t){var e=t.getGeometry();e.translate(r,i),t.setGeometry(e)})),this.lastCoordinate_=e,this.dispatchEvent(new le(se.TRANSLATING,o,e,this.startCoordinate_,t))}},e.prototype.handleMoveEvent=function(t){var e=t.map.getViewport();this.featuresAtPixel_(t.pixel,t.map)?(e.classList.remove(this.lastCoordinate_?"ol-grab":"ol-grabbing"),e.classList.add(this.lastCoordinate_?"ol-grabbing":"ol-grab")):e.classList.remove("ol-grab","ol-grabbing")},e.prototype.featuresAtPixel_=function(t,e){return e.forEachFeatureAtPixel(t,function(t,e){if(this.filter_(t,e)&&(!this.features_||Object(Mt["f"])(this.features_.getArray(),t)))return t}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_})},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(e){var r=this.getMap();t.prototype.setMap.call(this,e),this.updateState_(r)},e.prototype.handleActiveChanged_=function(){this.updateState_(null)},e.prototype.updateState_=function(t){var e=this.getMap(),r=this.getActive();if((!e||!r)&&(e=e||t,e)){var n=e.getViewport();n.classList.remove("ol-grab","ol-grabbing")}},e}(c["b"]),ce=ue;function he(t){var e=t||{},r=new n["a"],i=new B(-.005,.05,100),o=void 0===e.altShiftDragRotate||e.altShiftDragRotate;o&&r.push(new y);var a=void 0===e.doubleClickZoom||e.doubleClickZoom;a&&r.push(new l({delta:e.zoomDelta,duration:e.zoomDuration}));var s=void 0===e.dragPan||e.dragPan;s&&r.push(new u["default"]({onFocusOnly:e.onFocusOnly,kinetic:i}));var c=void 0===e.pinchRotate||e.pinchRotate;c&&r.push(new J);var h=void 0===e.pinchZoom||e.pinchZoom;h&&r.push(new tt({duration:e.zoomDuration}));var f=void 0===e.keyboard||e.keyboard;f&&(r.push(new D),r.push(new z({delta:e.zoomDelta,duration:e.zoomDuration})));var p=void 0===e.mouseWheelZoom||e.mouseWheelZoom;p&&r.push(new q({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration}));var d=void 0===e.shiftDragZoom||e.shiftDragZoom;return d&&r.push(new M({duration:e.zoomDuration})),r}},"3c22":function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r("5c38"),i=function(){function t(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return t.prototype.clear=function(){this.cache_={},this.cacheSize_=0},t.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},t.prototype.expire=function(){if(this.canExpireCache()){var t=0;for(var e in this.cache_){var r=this.cache_[e];0!==(3&t++)||r.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,r){var n=o(t,e,r);return n in this.cache_?this.cache_[n]:null},t.prototype.set=function(t,e,r,n){var i=o(t,e,r);this.cache_[i]=n,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}();function o(t,e,r){var i=r?Object(n["b"])(r):"null";return e+":"+t+":"+i}var a=new i},"3c81":function(t,e,r){"use strict";r.d(e,"c",(function(){return c})),r.d(e,"b",(function(){return d})),r.d(e,"a",(function(){return g})),r.d(e,"d",(function(){return y}));var n,i=r("0b0e"),o=r("38f3"),a=r("0af5"),s=r("0999"),l=r("256f"),u=r("7fc9"),c=[];function h(t,e,r,n,i){t.beginPath(),t.moveTo(0,0),t.lineTo(e,r),t.lineTo(n,i),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,n)+1,Math.max(r,i)),t.restore()}function f(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function p(){if(void 0===n){var t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",h(t,4,5,4,0),h(t,4,5,0,5);var e=t.getImageData(0,0,3,3).data;n=f(e,0)||f(e,4)||f(e,8)}return n}function d(t,e,r,n){var i=Object(l["transform"])(r,e,t),o=Object(l["getPointResolution"])(e,n,r),s=e.getMetersPerUnit();void 0!==s&&(o*=s);var u=t.getMetersPerUnit();void 0!==u&&(o/=u);var c=t.getExtent();if(!c||Object(a["containsCoordinate"])(c,i)){var h=Object(l["getPointResolution"])(t,o,i)/o;isFinite(h)&&h>0&&(o/=h)}return o}function g(t,e,r,n){var i=Object(a["getCenter"])(r),o=d(t,e,i,n);return(!isFinite(o)||o<=0)&&Object(a["forEachCorner"])(r,(function(r){return o=d(t,e,r,n),isFinite(o)&&o>0})),o}function y(t,e,r,n,l,h,f,d,g,y,v,m){var _=Object(s["a"])(Math.round(r*t),Math.round(r*e),c);if(m||Object(o["a"])(_,i["a"]),0===g.length)return _.canvas;function b(t){return Math.round(t*r)/r}_.scale(r,r),_.globalCompositeOperation="lighter";var x=Object(a["createEmpty"])();g.forEach((function(t,e,r){Object(a["extend"])(x,t.extent)}));var w=Object(a["getWidth"])(x),O=Object(a["getHeight"])(x),E=Object(s["a"])(Math.round(r*w/n),Math.round(r*O/n));m||Object(o["a"])(E,i["a"]);var S=r/n;g.forEach((function(t,e,r){var n=t.extent[0]-x[0],i=-(t.extent[3]-x[3]),o=Object(a["getWidth"])(t.extent),s=Object(a["getHeight"])(t.extent);t.image.width>0&&t.image.height>0&&E.drawImage(t.image,y,y,t.image.width-2*y,t.image.height-2*y,n*S,i*S,o*S,s*S)}));var T=Object(a["getTopLeft"])(f);return d.getTriangles().forEach((function(t,e,i){var o=t.source,a=t.target,s=o[0][0],l=o[0][1],c=o[1][0],f=o[1][1],d=o[2][0],g=o[2][1],y=b((a[0][0]-T[0])/h),v=b(-(a[0][1]-T[1])/h),w=b((a[1][0]-T[0])/h),O=b(-(a[1][1]-T[1])/h),S=b((a[2][0]-T[0])/h),C=b(-(a[2][1]-T[1])/h),P=s,j=l;s=0,l=0,c-=P,f-=j,d-=P,g-=j;var R=[[c,f,0,0,w-y],[d,g,0,0,S-y],[0,0,c,f,O-v],[0,0,d,g,C-v]],M=Object(u["i"])(R);if(M){if(_.save(),_.beginPath(),p()||!m){_.moveTo(w,O);for(var A=4,L=y-w,I=v-O,F=0;F<A;F++)_.lineTo(w+b((F+1)*L/A),O+b(F*I/(A-1))),F!=A-1&&_.lineTo(w+b((F+1)*L/A),O+b((F+1)*I/(A-1)));_.lineTo(S,C)}else _.moveTo(w,O),_.lineTo(y,v),_.lineTo(S,C);_.clip(),_.transform(M[0],M[2],M[1],M[3],y,v),_.translate(x[0]-P,x[3]-j),_.scale(n/r,-n/r),_.drawImage(E.canvas,0,0),_.restore()}})),v&&(_.save(),_.globalCompositeOperation="source-over",_.strokeStyle="black",_.lineWidth=1,d.getTriangles().forEach((function(t,e,r){var n=t.target,i=(n[0][0]-T[0])/h,o=-(n[0][1]-T[1])/h,a=(n[1][0]-T[0])/h,s=-(n[1][1]-T[1])/h,l=(n[2][0]-T[0])/h,u=-(n[2][1]-T[1])/h;_.beginPath(),_.moveTo(a,s),_.lineTo(i,o),_.lineTo(l,u),_.closePath(),_.stroke()})),_.restore()),_.canvas}},"3c96":function(t,e){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"3d4d":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(){var t;return(0,i.default)(this,r),(t=e.call(this)).ele.style.position="relative",t.ele.style.width="5px",t.ele.style.height="5px",t.ele.style.borderRadius="50%",t.ele.style.backgroundColor="#33cc33",t}return(0,o.default)(r,[{key:"setHTMLElementStyle",value:function(){}}]),r}(u.LOverlay);e.default=f},"3e6b":function(t,e,r){"use strict";r.r(e);var n=r("ae50"),i=r("da2f"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.createRenderer=function(){return new i["a"](this)},e}(n["a"]);e["default"]=a},"3e8f":function(t,e){},"40f1":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(t){var n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:16,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:16,s=3<arguments.length&&void 0!==arguments[3]?arguments[3]:16,l=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"#237804";return(0,i.default)(this,r),(n=e.call(this)).iconFontName=t,n.width=o,n.height=a,n.fontSize=s,n.color=l,n.ele.style.position="relative",n.ele.style.cursor="pointer",n.ele.style.width="".concat(n.width,"px"),n.ele.style.height="".concat(n.height,"px"),n.ele.style.lineHeight="".concat(n.height,"px"),n.ele.style.backgroundPosition="center center",n.ele.style.backgroundRepeat="no-repeat",n.ele.style.fontSize="".concat(n.fontSize,"px"),n.ele.style.color=l,n.ele.style.textAlign=" center",n.ele.style.overflow="hidden",n.ele.className=n.iconFontName,n}return(0,o.default)(r,[{key:"setHTMLElementStyle",value:function(){}},{key:"setColor",value:function(){this.ele.style.color=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"#D46B08"}}]),r}(u.LOverlay);e.default=f},4105:function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r("4334"),i=r("0b2d"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e){var r=this,n=e||{};return r=t.call(this,n)||this,n.handleDownEvent&&(r.handleDownEvent=n.handleDownEvent),n.handleDragEvent&&(r.handleDragEvent=n.handleDragEvent),n.handleMoveEvent&&(r.handleMoveEvent=n.handleMoveEvent),n.handleUpEvent&&(r.handleUpEvent=n.handleUpEvent),n.stopDown&&(r.stopDown=n.stopDown),r.handlingDownUpSequence=!1,r.targetPointers=[],r}return o(e,t),e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==i["a"].POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==i["a"].POINTERUP){var r=this.handleUpEvent(t);this.handlingDownUpSequence=r&&this.targetPointers.length>0}}else if(t.type==i["a"].POINTERDOWN){var n=this.handleDownEvent(t);this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==i["a"].POINTERMOVE&&this.handleMoveEvent(t);return!e},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){t.activePointers&&(this.targetPointers=t.activePointers)},e}(n["a"]);function s(t){for(var e=t.length,r=0,n=0,i=0;i<e;i++)r+=t[i].clientX,n+=t[i].clientY;return[r/e,n/e]}e["b"]=a},4334:function(t,e,r){"use strict";r.d(e,"b",(function(){return l})),r.d(e,"c",(function(){return u}));var n=r("e269"),i=r("bf62"),o=r("ca42"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){function e(e){var r=t.call(this)||this;return r.on,r.once,r.un,e&&e.handleEvent&&(r.handleEvent=e.handleEvent),r.map_=null,r.setActive(!0),r}return a(e,t),e.prototype.getActive=function(){return this.get(i["a"].ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(i["a"].ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(n["a"]);function l(t,e,r){var n=t.getCenterInternal();if(n){var i=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:void 0!==r?r:250,easing:o["d"],center:t.getConstrainedCenter(i)})}}function u(t,e,r,n){var i=t.getZoom();if(void 0!==i){var a=t.getConstrainedZoom(i+e),s=t.getResolutionForZoom(a);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:s,anchor:r,duration:void 0!==n?n:250,easing:o["b"]})}}e["a"]=s},4384:function(t,e,r){"use strict";e["a"]={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"}},"448a":function(t,e,r){var n=r("2236"),i=r("11b0"),o=r("6613"),a=r("0676");function s(t){return n(t)||i(t)||o(t)||a()}t.exports=s,t.exports.__esModule=!0,t.exports["default"]=t.exports},"47e4":function(t,e,r){"use strict";var n=r("521b"),i=r("7a09"),o=r("9abc"),a=r("9769"),s=r("0af5"),l=r("abb7"),u=r("1c48"),c=r("9f5e"),h=r("bb6c"),f=r("b1a2"),p=r("c560"),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(t){function e(e,r,n){var i=t.call(this)||this;if(i.ends_=[],i.maxDelta_=-1,i.maxDeltaRevision_=-1,Array.isArray(e[0]))i.setCoordinates(e,r);else if(void 0!==r&&n)i.setFlatCoordinates(r,e),i.ends_=n;else{for(var o=i.getLayout(),a=e,s=[],l=[],u=0,h=a.length;u<h;++u){var f=a[u];0===u&&(o=f.getLayout()),Object(c["c"])(s,f.getFlatCoordinates()),l.push(s.length)}i.setFlatCoordinates(o,s),i.ends_=l}return i}return d(e,t),e.prototype.appendLineString=function(t){this.flatCoordinates?Object(c["c"])(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){return n<Object(s["closestSquaredDistanceXY"])(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(a["a"])(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(a["b"])(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,r,n))},e.prototype.getCoordinateAtM=function(t,e,r){if(this.layout!=n["a"].XYM&&this.layout!=n["a"].XYZM||0===this.flatCoordinates.length)return null;var i=void 0!==e&&e,o=void 0!==r&&r;return Object(f["c"])(this.flatCoordinates,0,this.ends_,this.stride,t,i,o)},e.prototype.getCoordinates=function(){return Object(h["b"])(this.flatCoordinates,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getLineString=function(t){return t<0||this.ends_.length<=t?null:new i["default"](this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLineStrings=function(){for(var t=this.flatCoordinates,e=this.ends_,r=this.layout,n=[],o=0,a=0,s=e.length;a<s;++a){var l=e[a],u=new i["default"](t.slice(o,l),r);n.push(u),o=l}return n},e.prototype.getFlatMidpoints=function(){for(var t=[],e=this.flatCoordinates,r=0,n=this.ends_,i=this.stride,o=0,a=n.length;o<a;++o){var s=n[o],l=Object(f["a"])(e,r,s,i,.5);Object(c["c"])(t,l),r=s}return t},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[],i=[];return r.length=Object(u["b"])(this.flatCoordinates,0,this.ends_,this.stride,t,r,0,i),new e(r,n["a"].XY,i)},e.prototype.getType=function(){return"MultiLineString"},e.prototype.intersectsExtent=function(t){return Object(p["b"])(this.flatCoordinates,0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var r=Object(l["c"])(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===r.length?0:r[r.length-1],this.changed()},e}(o["a"]);e["a"]=g},"480c":function(t,e,r){"use strict";r.r(e);var n=r("2300"),i=r("b9ec"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.createRenderer=function(){return new i["a"](this)},e}(n["a"]);e["default"]=a},4822:function(t,e,r){},"496f":function(t,e,r){"use strict";e["a"]={ANIMATING:0,INTERACTING:1}},"4a4b":function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e,n)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"4a7d":function(t,e,r){"use strict";var n=r("25a5"),i=r.n(n),o=r("0af5"),a=r("1300"),s=r("38f3"),l=function(){function t(t){this.rbush_=new i.a(t),this.items_={}}return t.prototype.insert=function(t,e){var r={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(r),this.items_[Object(a["c"])(e)]=r},t.prototype.load=function(t,e){for(var r=new Array(e.length),n=0,i=e.length;n<i;n++){var o=t[n],s=e[n],l={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:s};r[n]=l,this.items_[Object(a["c"])(s)]=l}this.rbush_.load(r)},t.prototype.remove=function(t){var e=Object(a["c"])(t),r=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(r)},t.prototype.update=function(t,e){var r=this.items_[Object(a["c"])(e)],n=[r.minX,r.minY,r.maxX,r.maxY];Object(o["equals"])(n,t)||(this.remove(e),this.insert(t,e))},t.prototype.getAll=function(){var t=this.rbush_.all();return t.map((function(t){return t.value}))},t.prototype.getInExtent=function(t){var e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]},r=this.rbush_.search(e);return r.map((function(t){return t.value}))},t.prototype.forEach=function(t){return this.forEach_(this.getAll(),t)},t.prototype.forEachInExtent=function(t,e){return this.forEach_(this.getInExtent(t),e)},t.prototype.forEach_=function(t,e){for(var r,n=0,i=t.length;n<i;n++)if(r=e(t[n]),r)return r;return r},t.prototype.isEmpty=function(){return Object(s["d"])(this.items_)},t.prototype.clear=function(){this.rbush_.clear(),this.items_={}},t.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return Object(o["createOrUpdate"])(e.minX,e.minY,e.maxX,e.maxY,t)},t.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]},t}();e["a"]=l},"4cdf":function(t,e,r){"use strict";r.r(e),r.d(e,"createStyleFunction",(function(){return u}));var n=r("e269"),i=r("01d4"),o=r("92fa"),a=r("1e8d"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(e){var r=t.call(this)||this;if(r.on,r.once,r.un,r.id_=void 0,r.geometryName_="geometry",r.style_=null,r.styleFunction_=void 0,r.geometryChangeKey_=null,r.addChangeListener(r.geometryName_,r.handleGeometryChanged_),e)if("function"===typeof e.getSimplifiedGeometry){var n=e;r.setGeometry(n)}else{var i=e;r.setProperties(i)}return r}return s(e,t),e.prototype.clone=function(){var t=new e(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());var r=this.getGeometry();r&&t.setGeometry(r.clone());var n=this.getStyle();return n&&t.setStyle(n),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Object(a["c"])(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=Object(a["a"])(t,i["a"].CHANGE,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?u(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(n["a"]);function u(t){if("function"===typeof t)return t;var e;if(Array.isArray(t))e=t;else{Object(o["a"])("function"===typeof t.getZIndex,41);var r=t;e=[r]}return function(){return e}}e["default"]=l},"4d98":function(t,e,r){"use strict";function n(t,e,r,n){while(e<r-n){for(var i=0;i<n;++i){var o=t[e+i];t[e+i]=t[r-n+i],t[r-n+i]=o}e+=n,r-=n}}function i(t,e,r,n){for(var i=0,o=t[r-n],a=t[r-n+1];e<r;e+=n){var s=t[e],l=t[e+1];i+=(s-o)*(l+a),o=s,a=l}return 0===i?void 0:i>0}function o(t,e,r,n,o){for(var a=void 0!==o&&o,s=0,l=r.length;s<l;++s){var u=r[s],c=i(t,e,u,n);if(0===s){if(a&&c||!a&&!c)return!1}else if(a&&!c||!a&&c)return!1;e=u}return!0}function a(t,e,r,n,i){for(var a=0,s=r.length;a<s;++a){var l=r[a];if(!o(t,e,l,n,i))return!1;l.length&&(e=l[l.length-1])}return!0}function s(t,e,r,o,a){for(var s=void 0!==a&&a,l=0,u=r.length;l<u;++l){var c=r[l],h=i(t,e,c,o),f=0===l?s&&h||!s&&!h:s&&!h||!s&&h;f&&n(t,e,c,o),e=c}return e}function l(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o)e=s(t,e,r[o],n,i);return e}function u(t,e){for(var r=[],n=0,o=0,a=0,s=e.length;a<s;++a){var l=e[a];if(i(t,n,l,2)){if(0===r.length)continue;r[r.length-1].push(e[o])}else r.push(e.slice(o,a+1));o=a+1,n=l}return r}r.d(e,"b",(function(){return o})),r.d(e,"c",(function(){return a})),r.d(e,"d",(function(){return s})),r.d(e,"e",(function(){return l})),r.d(e,"a",(function(){return u}))},"4ea4":function(t,e){function r(t){return t&&t.__esModule?t:{default:t}}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"509b":function(t,e,r){"use strict";var n=r("7238"),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r,o)||this;return s.originalEvent=n,s.pixel_=null,s.coordinate_=null,s.dragging=void 0!==i&&i,s.activePointers=a,s}return i(e,t),Object.defineProperty(e.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(t){this.pixel_=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(t){this.coordinate_=t},enumerable:!1,configurable:!0}),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){t.prototype.stopPropagation.call(this),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()},e}(n["a"]);e["a"]=o},5116:function(t,e,r){"use strict";var n=r("92fa"),i=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.expireCache=function(t){while(this.canExpireCache())this.pop()},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 r=this.entries_[t];return Object(n["a"])(void 0!==r,15),r===this.newest_||(r===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(r.newer.older=r.older,r.older.newer=r.newer),r.newer=null,r.older=this.newest_,this.newest_.newer=r,this.newest_=r),r.value_},t.prototype.remove=function(t){var e=this.entries_[t];return Object(n["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_),r=0;for(t=this.newest_;t;t=t.older)e[r++]=t.key_;return e},t.prototype.getValues=function(){var t,e=new Array(this.count_),r=0;for(t=this.newest_;t;t=t.older)e[r++]=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.peek=function(t){if(this.containsKey(t))return this.entries_[t].value_},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(n["a"])(!(t in this.entries_),16);var r={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=r:this.oldest_=r,this.newest_=r,this.entries_[t]=r,++this.count_},t.prototype.setSize=function(t){this.highWaterMark=t},t}();e["a"]=i},"521b":function(t,e,r){"use strict";e["a"]={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},5388:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("448a"))),o=n(r("970b")),a=n(r("5bc3")),s=r("15e0"),l=n(r("3e6b")),u=n(r("55bd")),c=r("0af5"),h=function(){function t(e,r){var n=this;(0,o.default)(this,t),this.callback=e,this.maxFeatureCount=0,this.vector=null,this.vectorSource=null,this.currentResolution=0,this.textFill=null,this.aggregationCallback=null,this.removeAggregationCallback=null,this.clearfeatureMap=new Map,this.featureMap=new Map,this.styleFunction=null,this.color=null,this.offsetX=0,this.offsetY=0,this.fontSize=null,this._fontFamily="Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif",this.text=r.text,this.textFill=null,this.aggregationCallback=r.aggregationCallback,this.removeAggregationCallback=r.removeAggregationCallback,this.fontSize="".concat(r.fontSize,"px")||!1,this.offsetX=r.offsetX||0,this.offsetY=r.offsetY||0,this.color=r.color||"#fff",this._init(),this.styleFunction=function(t,e){var r=t.get("features").length;return e!=n.currentResolution&&(n.calculateClusterInfo(e,r),n.currentResolution=e),1<r?new s.Style({text:new s.Text({text:"".concat(r.toString()).concat(n.text),fill:n.textFill,offsetX:0,offsetY:0,font:"".concat(n.fontSize," ").concat(n._fontFamily)})}):(t.get("features")[0],null)}}return(0,a.default)(t,[{key:"_init",value:function(){this.textFill=new s.Fill({color:this.color})}},{key:"calculateClusterInfo",value:function(t,e){this.maxFeatureCount=0;for(var r=this.vector.getSource().getFeatures(),n=r.length-1;0<=n;--n){for(var o=r[n].get("features"),a=(0,c.createEmpty)(),s=void 0,l=[],u=(s=0,o.length);s<u;++s)this.callback&&(l.push(o[s]),this.callback(o[s],t,1==o.length)),(0,c.extend)(a,o[s].getGeometry().getExtent());this.aggregationCallback&&(1<o.length?this.aggregationCallback((0,i.default)(l)):this.removeAggregationCallback&&this.removeAggregationCallback(l[0])),l=[],this.maxFeatureCount=Math.max(this.maxFeatureCount,u)}}},{key:"getVectorLayer",value:function(t){return this.vector=new l.default({zIndex:999,source:new u.default({distance:1<arguments.length&&void 0!==arguments[1]?arguments[1]:30,source:t}),style:this.styleFunction}),this.vector}}]),t}();e.default=h},"54b9":function(t,e,r){"use strict";var n=r("f8b5"),i=r("d0fc"),o=r("acc1"),a=r("9cff"),s=r("2c30"),l=r("1300"),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(t){function e(r){var n=t.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,opaque:r.opaque,projection:r.projection,state:r.state,tileGrid:r.tileGrid,tilePixelRatio:r.tilePixelRatio,wrapX:r.wrapX,transition:r.transition,interpolate:r.interpolate,key:r.key,attributionsCollapsible:r.attributionsCollapsible,zDirection:r.zDirection})||this;return n.generateTileUrlFunction_=n.tileUrlFunction===e.prototype.tileUrlFunction,n.tileLoadFunction=r.tileLoadFunction,r.tileUrlFunction&&(n.tileUrlFunction=r.tileUrlFunction),n.urls=null,r.urls?n.setUrls(r.urls):r.url&&n.setUrl(r.url),n.tileLoadingKeys_={},n}return u(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,r=t.target,a=Object(l["c"])(r),s=r.getState();s==o["a"].LOADING?(this.tileLoadingKeys_[a]=!0,e=n["a"].TILELOADSTART):a in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[a],e=s==o["a"].ERROR?n["a"].TILELOADERROR:s==o["a"].LOADED?n["a"].TILELOADEND:void 0),void 0!=e&&this.dispatchEvent(new i["a"](e,r))},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=Object(a["c"])(t);this.urls=e,this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(Object(a["a"])(t,this.tileGrid),e):this.setKey(e)},e.prototype.tileUrlFunction=function(t,e,r){},e.prototype.useTile=function(t,e,r){var n=Object(s["e"])(t,e,r);this.tileCache.containsKey(n)&&this.tileCache.get(n)},e}(i["b"]);e["a"]=c},5564:function(t,e,r){"use strict";var n=r("e269"),i=r("df4c"),o=r("1300"),a=r("92fa"),s=r("38f3"),l=r("7fc9"),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un,r.background_=e.background;var n=Object(s["a"])({},e);return"object"===typeof e.properties&&(delete n.properties,Object(s["a"])(n,e.properties)),n[i["a"].OPACITY]=void 0!==e.opacity?e.opacity:1,Object(a["a"])("number"===typeof n[i["a"].OPACITY],64),n[i["a"].VISIBLE]=void 0===e.visible||e.visible,n[i["a"].Z_INDEX]=e.zIndex,n[i["a"].MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,n[i["a"].MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,n[i["a"].MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,n[i["a"].MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,r.className_=void 0!==n.className?n.className:"ol-layer",delete n.className,r.setProperties(n),r.state_=null,r}return u(e,t),e.prototype.getBackground=function(){return this.background_},e.prototype.getClassName=function(){return this.className_},e.prototype.getLayerState=function(t){var e=this.state_||{layer:this,managed:void 0===t||t},r=this.getZIndex();return e.opacity=Object(l["b"])(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==r||e.managed?r:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e},e.prototype.getLayersArray=function(t){return Object(o["b"])()},e.prototype.getLayerStatesArray=function(t){return Object(o["b"])()},e.prototype.getExtent=function(){return this.get(i["a"].EXTENT)},e.prototype.getMaxResolution=function(){return this.get(i["a"].MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(i["a"].MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(i["a"].MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(i["a"].MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(i["a"].OPACITY)},e.prototype.getSourceState=function(){return Object(o["b"])()},e.prototype.getVisible=function(){return this.get(i["a"].VISIBLE)},e.prototype.getZIndex=function(){return this.get(i["a"].Z_INDEX)},e.prototype.setBackground=function(t){this.background_=t,this.changed()},e.prototype.setExtent=function(t){this.set(i["a"].EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(i["a"].MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(i["a"].MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(i["a"].MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(i["a"].MIN_ZOOM,t)},e.prototype.setOpacity=function(t){Object(a["a"])("number"===typeof t,64),this.set(i["a"].OPACITY,t)},e.prototype.setVisible=function(t){this.set(i["a"].VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(i["a"].Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),t.prototype.disposeInternal.call(this)},e}(n["a"]);e["a"]=c},5568:function(t,e,r){"use strict";r.r(e);var n=r("370b");function i(t){var e=[1/0,1/0,-1/0,-1/0];return Object(n["coordEach"])(t,(function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])})),e}i["default"]=i,e["default"]=i},"55bd":function(t,e,r){"use strict";r.r(e);var n=r("01d4"),i=r("4cdf"),o=r("f403"),a=r("5831"),s=r("a568"),l=r("92fa"),u=r("0af5"),c=r("1300"),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(t){function e(e){var r=t.call(this,{attributions:e.attributions,wrapX:e.wrapX})||this;return r.resolution=void 0,r.distance=void 0!==e.distance?e.distance:20,r.minDistance=e.minDistance||0,r.interpolationRatio=0,r.features=[],r.geometryFunction=e.geometryFunction||function(t){var e=t.getGeometry();return Object(l["a"])("Point"==e.getType(),10),e},r.createCustomCluster_=e.createCluster,r.source=null,r.boundRefresh_=r.refresh.bind(r),r.updateDistance(r.distance,r.minDistance),r.setSource(e.source||null),r}return h(e,t),e.prototype.clear=function(e){this.features.length=0,t.prototype.clear.call(this,e)},e.prototype.getDistance=function(){return this.distance},e.prototype.getSource=function(){return this.source},e.prototype.loadFeatures=function(t,e,r){this.source.loadFeatures(t,e,r),e!==this.resolution&&(this.resolution=e,this.refresh())},e.prototype.setDistance=function(t){this.updateDistance(t,this.minDistance)},e.prototype.setMinDistance=function(t){this.updateDistance(this.distance,t)},e.prototype.getMinDistance=function(){return this.minDistance},e.prototype.setSource=function(t){this.source&&this.source.removeEventListener(n["a"].CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(n["a"].CHANGE,this.boundRefresh_),this.refresh()},e.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},e.prototype.updateDistance=function(t,e){var r=0===t?0:Math.min(e,t)/t,n=t!==this.distance||this.interpolationRatio!==r;this.distance=t,this.minDistance=e,this.interpolationRatio=r,n&&this.refresh()},e.prototype.cluster=function(){if(void 0!==this.resolution&&this.source)for(var t=Object(u["createEmpty"])(),e=this.distance*this.resolution,r=this.source.getFeatures(),n={},i=0,o=r.length;i<o;i++){var a=r[i];if(!(Object(c["c"])(a)in n)){var s=this.geometryFunction(a);if(s){var l=s.getCoordinates();Object(u["createOrUpdateFromCoordinate"])(l,t),Object(u["buffer"])(t,e,t);var h=this.source.getFeaturesInExtent(t).filter((function(t){var e=Object(c["c"])(t);return!(e in n)&&(n[e]=!0,!0)}));this.features.push(this.createCluster(h,t))}}}},e.prototype.createCluster=function(t,e){for(var r=[0,0],n=t.length-1;n>=0;--n){var a=this.geometryFunction(t[n]);a?Object(s["a"])(r,a.getCoordinates()):t.splice(n,1)}Object(s["i"])(r,1/t.length);var l=Object(u["getCenter"])(e),c=this.interpolationRatio,h=new o["default"]([r[0]*(1-c)+l[0]*c,r[1]*(1-c)+l[1]*c]);return this.createCustomCluster_?this.createCustomCluster_(h,t):new i["default"]({geometry:h,features:t})},e}(a["default"]);e["default"]=f},"57cb":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"a",(function(){return o})),r.d(e,"c",(function(){return a})),r.d(e,"d",(function(){return s})),r.d(e,"e",(function(){return l}));var n=r("9f5e");function i(){return!0}function o(){return!1}function a(){}function s(t){var e,r,i,o=!1;return function(){var a=Array.prototype.slice.call(arguments);return o&&this===i&&Object(n["b"])(a,r)||(o=!0,i=this,r=a,e=t.apply(this,arguments)),e}}function l(t){function e(){var e;try{e=t()}catch(r){return Promise.reject(r)}return e instanceof Promise?e:Promise.resolve(e)}return e()}},"57cc":function(t,e,r){"use strict";r.d(e,"b",(function(){return f}));var n=r("01d4"),i=r("92fa"),o=r("38f3"),a=1/0,s=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(o["b"])(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,r=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var n=this.keyFunction_(r);return delete this.queuedElements_[n],r},t.prototype.enqueue=function(t){Object(i["a"])(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=a&&(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_,r=this.priorities_,n=e.length,i=e[t],o=r[t],a=t;while(t<n>>1){var s=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),u=l<n&&r[l]<r[s]?l:s;e[t]=e[u],r[t]=r[u],t=u}e[t]=i,r[t]=o,this.siftDown_(a,t)},t.prototype.siftDown_=function(t,e){var r=this.elements_,n=this.priorities_,i=r[e],o=n[e];while(e>t){var a=this.getParentIndex_(e);if(!(n[a]>o))break;r[e]=r[a],n[e]=n[a],e=a}r[e]=i,n[e]=o},t.prototype.reprioritize=function(){var t,e,r,n=this.priorityFunction_,i=this.elements_,o=this.priorities_,s=0,l=i.length;for(e=0;e<l;++e)t=i[e],r=n(t),r==a?delete this.queuedElements_[this.keyFunction_(t)]:(o[s]=r,i[s++]=t);i.length=s,o.length=s,this.heapify_()},t}(),l=s,u=r("acc1"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(t){function e(e,r){var n=t.call(this,(function(t){return e.apply(null,t)}),(function(t){return t[0].getKey()}))||this;return n.boundHandleTileChange_=n.handleTileChange.bind(n),n.tileChangeCallback_=r,n.tilesLoading_=0,n.tilesLoadingKeys_={},n}return c(e,t),e.prototype.enqueue=function(e){var r=t.prototype.enqueue.call(this,e);if(r){var i=e[0];i.addEventListener(n["a"].CHANGE,this.boundHandleTileChange_)}return r},e.prototype.getTilesLoading=function(){return this.tilesLoading_},e.prototype.handleTileChange=function(t){var e=t.target,r=e.getState();if(r===u["a"].LOADED||r===u["a"].ERROR||r===u["a"].EMPTY){e.removeEventListener(n["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 r,n,i,o=0;while(this.tilesLoading_<t&&o<e&&this.getCount()>0)n=this.dequeue()[0],i=n.getKey(),r=n.getState(),r!==u["a"].IDLE||i in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[i]=!0,++this.tilesLoading_,++o,n.load())},e}(l);e["a"]=h;function f(t,e,r,n,i){if(!t||!(r in t.wantedTiles))return a;if(!t.wantedTiles[r][e.getKey()])return a;var o=t.viewState.center,s=n[0]-o[0],l=n[1]-o[1];return 65536*Math.log(i)+Math.sqrt(s*s+l*l)/i}},5831:function(t,e,r){"use strict";r.r(e),r.d(e,"VectorSourceEvent",(function(){return x}));var n=r("e300"),i=r("183a"),o=r("cef7"),a=r("01d4"),s=r("7b4f"),l=r("4a7d"),u=r("ff80"),c=r("a43f"),h=r("57cb");r("256f");function f(t,e){return[[-1/0,-1/0,1/0,1/0]]}var p=r("92fa"),d=r("0af5"),g=r("9f5e"),y=r("1300"),v=r("38f3"),m=r("1e8d"),_=r("6d8f"),b=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),x=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.feature=r,i.features=n,i}return b(e,t),e}(o["a"]),w=function(t){function e(e){var r=this,i=e||{};r=t.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===i.wrapX||i.wrapX})||this,r.on,r.once,r.un,r.loader_=h["c"],r.format_=i.format,r.overlaps_=void 0===i.overlaps||i.overlaps,r.url_=i.url,void 0!==i.loader?r.loader_=i.loader:void 0!==r.url_&&(Object(p["a"])(r.format_,7),r.loader_=Object(_["b"])(r.url_,r.format_)),r.strategy_=void 0!==i.strategy?i.strategy:f;var o,a,s=void 0===i.useSpatialIndex||i.useSpatialIndex;return r.featuresRtree_=s?new l["a"]:null,r.loadedExtentsRtree_=new l["a"],r.loadingExtentsCount_=0,r.nullGeometryFeatures_={},r.idIndex_={},r.uidIndex_={},r.featureChangeKeys_={},r.featuresCollection_=null,Array.isArray(i.features)?a=i.features:i.features&&(o=i.features,a=o.getArray()),s||void 0!==o||(o=new n["a"](a)),void 0!==a&&r.addFeaturesInternal(a),void 0!==o&&r.bindFeaturesCollection_(o),r}return b(e,t),e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=Object(y["c"])(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var r=t.getGeometry();if(r){var n=r.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(n,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new x(c["a"].ADDFEATURE,t))}else this.featuresCollection_&&this.featuresCollection_.remove(t)},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[Object(m["a"])(e,a["a"].CHANGE,this.handleFeatureChange_,this),Object(m["a"])(e,s["a"].PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var r=!0,n=e.getId();return void 0!==n&&(n.toString()in this.idIndex_?r=!1:this.idIndex_[n.toString()]=e),r&&(Object(p["a"])(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),r},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],r=[],n=[],i=0,o=t.length;i<o;i++){var a=t[i],s=Object(y["c"])(a);this.addToIndex_(s,a)&&r.push(a)}i=0;for(var l=r.length;i<l;i++){a=r[i],s=Object(y["c"])(a);this.setupChangeEvents_(s,a);var u=a.getGeometry();if(u){var h=u.getExtent();e.push(h),n.push(a)}else this.nullGeometryFeatures_[s]=a}if(this.featuresRtree_&&this.featuresRtree_.load(e,n),this.hasListener(c["a"].ADDFEATURE)){i=0;for(var f=r.length;i<f;i++)this.dispatchEvent(new x(c["a"].ADDFEATURE,r[i]))}},e.prototype.bindFeaturesCollection_=function(t){var e=!1;this.addEventListener(c["a"].ADDFEATURE,(function(r){e||(e=!0,t.push(r.feature),e=!1)})),this.addEventListener(c["a"].REMOVEFEATURE,(function(r){e||(e=!0,t.remove(r.feature),e=!1)})),t.addEventListener(i["a"].ADD,function(t){e||(e=!0,this.addFeature(t.element),e=!1)}.bind(this)),t.addEventListener(i["a"].REMOVE,function(t){e||(e=!0,this.removeFeature(t.element),e=!1)}.bind(this)),this.featuresCollection_=t},e.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_){var r=this.featureChangeKeys_[e];r.forEach(m["c"])}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var n=function(t){this.removeFeatureInternal(t)}.bind(this);for(var i in this.featuresRtree_.forEach(n),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[i])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var o=new x(c["a"].CLEAR);this.dispatchEvent(o),this.changed()},e.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},e.prototype.forEachFeatureAtCoordinateDirect=function(t,e){var r=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(r,(function(r){var n=r.getGeometry();return n.intersectsCoordinate(t)?e(r):void 0}))},e.prototype.forEachFeatureInExtent=function(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},e.prototype.forEachFeatureIntersectingExtent=function(t,e){return this.forEachFeatureInExtent(t,(function(r){var n=r.getGeometry();if(n.intersectsExtent(t)){var i=e(r);if(i)return i}}))},e.prototype.getFeaturesCollection=function(){return this.featuresCollection_},e.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),Object(v["d"])(this.nullGeometryFeatures_)||Object(g["c"])(t,Object(v["c"])(this.nullGeometryFeatures_))),t},e.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e},e.prototype.getFeaturesInExtent=function(t,e){var r=this;if(this.featuresRtree_){var n=e&&e.canWrapX()&&this.getWrapX();if(!n)return this.featuresRtree_.getInExtent(t);var i=Object(d["wrapAndSliceX"])(t,e);return[].concat.apply([],i.map((function(t){return r.featuresRtree_.getInExtent(t)})))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},e.prototype.getClosestFeatureToCoordinate=function(t,e){var r=t[0],n=t[1],i=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],l=e||h["b"];return this.featuresRtree_.forEachInExtent(s,(function(t){if(l(t)){var e=t.getGeometry(),u=a;if(a=e.closestPointXY(r,n,o,a),a<u){i=t;var c=Math.sqrt(a);s[0]=r-c,s[1]=n-c,s[2]=r+c,s[3]=n+c}}})),i},e.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},e.prototype.getFeatureById=function(t){var e=this.idIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getFeatureByUid=function(t){var e=this.uidIndex_[t];return void 0!==e?e:null},e.prototype.getFormat=function(){return this.format_},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.getUrl=function(){return this.url_},e.prototype.handleFeatureChange_=function(t){var e=t.target,r=Object(y["c"])(e),n=e.getGeometry();if(n){var i=n.getExtent();r in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[r],this.featuresRtree_&&this.featuresRtree_.insert(i,e)):this.featuresRtree_&&this.featuresRtree_.update(i,e)}else r in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[r]=e);var o=e.getId();if(void 0!==o){var a=o.toString();this.idIndex_[a]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[a]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[r]=e;this.changed(),this.dispatchEvent(new x(c["a"].CHANGEFEATURE,e))},e.prototype.hasFeature=function(t){var e=t.getId();return void 0!==e?e in this.idIndex_:Object(y["c"])(t)in this.uidIndex_},e.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&Object(v["d"])(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()},e.prototype.loadFeatures=function(t,e,r){for(var n=this.loadedExtentsRtree_,i=this.strategy_(t,e,r),o=function(t,o){var s=i[t],l=n.forEachInExtent(s,(function(t){return Object(d["containsExtent"])(t.extent,s)}));l||(++a.loadingExtentsCount_,a.dispatchEvent(new x(c["a"].FEATURESLOADSTART)),a.loader_.call(a,s,e,r,function(t){--this.loadingExtentsCount_,this.dispatchEvent(new x(c["a"].FEATURESLOADEND,void 0,t))}.bind(a),function(){--this.loadingExtentsCount_,this.dispatchEvent(new x(c["a"].FEATURESLOADERROR))}.bind(a)),n.insert(s,{extent:s.slice()}))},a=this,s=0,l=i.length;s<l;++s)o(s,l);this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),t.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var e,r=this.loadedExtentsRtree_;r.forEachInExtent(t,(function(r){if(Object(d["equals"])(r.extent,t))return e=r,!0})),e&&r.remove(e)},e.prototype.removeFeature=function(t){if(t){var e=Object(y["c"])(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t);var r=this.removeFeatureInternal(t);r&&this.changed()}},e.prototype.removeFeatureInternal=function(t){var e=Object(y["c"])(t),r=this.featureChangeKeys_[e];if(r){r.forEach(m["c"]),delete this.featureChangeKeys_[e];var n=t.getId();return void 0!==n&&delete this.idIndex_[n.toString()],delete this.uidIndex_[e],this.dispatchEvent(new x(c["a"].REMOVEFEATURE,t)),t}},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var r in this.idIndex_)if(this.idIndex_[r]===t){delete this.idIndex_[r],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){Object(p["a"])(this.format_,7),this.url_=t,this.setLoader(Object(_["b"])(t,this.format_))},e}(u["a"]);e["default"]=w},5897:function(t,e,r){"use strict";var n=r("4ea4"),i=r("7037"),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.isTruePolygon=h,e.pathToLines=c,n(r("7037"))),a=u(r("d30b")),s=n(r("1038"));function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(l=function(t){return t?r:e})(t)}function u(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};if(e=l(e),e&&e.has(t))return e.get(t);var r,n,o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&((n=a?Object.getOwnPropertyDescriptor(t,r):null)&&(n.get||n.set)?Object.defineProperty(o,r,n):o[r]=t[r]);return o.default=t,e&&e.set(t,o),o}function c(t){var e=[];return t.forEach((function(r,n){var i;if(n==t.length-1)return i=a.lineString([t[n],t[0]]),void e.push(i);i=a.lineString([t[n],t[n+1]]),e.push(i)})),e}function h(t){if(!Array.isArray(t)||t.length<3)return!1;if(!t.every((function(t){return Array.isArray(t)&&2==t.length})))return!1;var e=c(t),r=!0;return function(){for(var t=e.length-1;0<=t;t--){var n=function(t){var n=e[t],i=0==t?e.length-1:t-1,o=t==e.length-1?0:t+1,a=(t=e[i],e[o]);if(!f(n,t)||!f(n,a))return r=!1,{v:void 0};e.filter((function(t,e){return e!==i&&e!==o})).forEach((function(t){f(n,t)&&(r=!1)}))}(t);if("object"===(0,o.default)(n))return n.v}}(),r}function f(t,e){return 0<(0,s.default)(t,e).features.length}var p={pathToLines:c,isTruePolygon:h};e.default=p},"592d":function(t,e,r){"use strict";e["a"]={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},5938:function(t,e,r){"use strict";function n(t,e,r,n){for(var i=t[e],o=t[e+1],a=0,s=e+n;s<r;s+=n){var l=t[s],u=t[s+1];a+=Math.sqrt((l-i)*(l-i)+(u-o)*(u-o)),i=l,o=u}return a}r.d(e,"a",(function(){return n}))},"5a43":function(t,e){function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"5bc0":function(t,e,r){},"5bc3":function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"5bc33":function(t,e,r){"use strict";r.r(e),r.d(e,"circular",(function(){return E})),r.d(e,"fromExtent",(function(){return S})),r.d(e,"fromCircle",(function(){return T})),r.d(e,"makeRegular",(function(){return C}));var n=r("521b"),i=r("9abc"),o=r("9769"),a=r("0af5"),s=r("abb7"),l=r("1c48"),u=r("bb6c"),c=r("b589"),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(t){function e(e,r){var n=t.call(this)||this;return n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===r||Array.isArray(e[0])?n.setCoordinates(e,r):n.setFlatCoordinates(r,e),n}return h(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,r,n){return n<Object(a["closestSquaredDistanceXY"])(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(o["e"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(o["d"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.getArea=function(){return Object(c["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return Object(u["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[];return r.length=Object(l["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r,0),new e(r,n["a"].XY)},e.prototype.getType=function(){return"LinearRing"},e.prototype.intersectsExtent=function(t){return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(s["b"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(i["a"]),p=f,d=r("f403"),g=r("9f5e"),y=r("0a9d"),v=r("c560"),m=r("4d98"),_=r("25f1"),b=r("7fc9"),x=r("790a"),w=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),O=function(t){function e(e,r,n){var i=t.call(this)||this;return i.ends_=[],i.flatInteriorPointRevision_=-1,i.flatInteriorPoint_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,void 0!==r&&n?(i.setFlatCoordinates(r,e),i.ends_=n):i.setCoordinates(e,r),i}return w(e,t),e.prototype.appendLinearRing=function(t){this.flatCoordinates?Object(g["c"])(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){return n<Object(a["closestSquaredDistanceXY"])(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(o["a"])(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(o["b"])(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.containsXY=function(t,e){return Object(_["c"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return Object(c["b"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),Object(m["d"])(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,Object(u["b"])(e,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=Object(a["getCenter"])(this.getExtent());this.flatInteriorPoint_=Object(y["a"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new d["default"](this.getFlatInteriorPoint(),n["a"].XYM)},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new p(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLinearRings=function(){for(var t=this.layout,e=this.flatCoordinates,r=this.ends_,n=[],i=0,o=0,a=r.length;o<a;++o){var s=r[o],l=new p(e.slice(i,s),t);n.push(l),i=s}return n},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;Object(m["b"])(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Object(m["d"])(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[],i=[];return r.length=Object(l["c"])(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),r,0,i),new e(r,n["a"].XY,i)},e.prototype.getType=function(){return"Polygon"},e.prototype.intersectsExtent=function(t){return Object(v["d"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var r=Object(s["c"])(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===r.length?0:r[r.length-1],this.changed()},e}(i["a"]);e["default"]=O;function E(t,e,r,i){for(var o=r||32,a=[],s=0;s<o;++s)Object(g["c"])(a,Object(x["offset"])(t,e,2*Math.PI*s/o,i));return a.push(a[0],a[1]),new O(a,n["a"].XY,[a.length])}function S(t){var e=t[0],r=t[1],i=t[2],o=t[3],a=[e,r,e,o,i,o,i,r,e,r];return new O(a,n["a"].XY,[a.length])}function T(t,e,r){for(var n=e||32,i=t.getStride(),o=t.getLayout(),a=t.getCenter(),s=i*(n+1),l=new Array(s),u=0;u<s;u+=i){l[u]=0,l[u+1]=0;for(var c=2;c<i;c++)l[u+c]=a[c]}var h=[l.length],f=new O(l,o,h);return C(f,a,t.getRadius(),r),f}function C(t,e,r,n){for(var i=t.getFlatCoordinates(),o=t.getStride(),a=i.length/o-1,s=n||0,l=0;l<=a;++l){var u=l*o,c=s+2*Object(b["g"])(l,a)*Math.PI/a;i[u]=e[0]+r*Math.cos(c),i[u+1]=e[1]+r*Math.sin(c)}t.changed()}},"5c38":function(t,e,r){"use strict";r.d(e,"b",(function(){return s})),r.d(e,"c",(function(){return u})),r.d(e,"a",(function(){return c})),r.d(e,"e",(function(){return p})),r.d(e,"d",(function(){return d}));var n=r("92fa"),i=r("7fc9"),o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,a=/^([a-z]*)$|^hsla?\(.*\)$/i;function s(t){return"string"===typeof t?t:p(t)}function l(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var r=getComputedStyle(e).color;return document.body.removeChild(e),r}return""}var u=function(){var t=1024,e={},r=0;return function(n){var i;if(e.hasOwnProperty(n))i=e[n];else{if(r>=t){var o=0;for(var a in e)0===(3&o++)&&(delete e[a],--r)}i=h(n),e[n]=i,++r}return i}}();function c(t){return Array.isArray(t)?t:u(t)}function h(t){var e,r,i,s,u;if(a.exec(t)&&(t=l(t)),o.exec(t)){var c=t.length-1,h=void 0;h=c<=4?1:2;var p=4===c||8===c;e=parseInt(t.substr(1+0*h,h),16),r=parseInt(t.substr(1+1*h,h),16),i=parseInt(t.substr(1+2*h,h),16),s=p?parseInt(t.substr(1+3*h,h),16):255,1==h&&(e=(e<<4)+e,r=(r<<4)+r,i=(i<<4)+i,p&&(s=(s<<4)+s)),u=[e,r,i,s/255]}else 0==t.indexOf("rgba(")?(u=t.slice(5,-1).split(",").map(Number),f(u)):0==t.indexOf("rgb(")?(u=t.slice(4,-1).split(",").map(Number),u.push(1),f(u)):Object(n["a"])(!1,14);return u}function f(t){return t[0]=Object(i["b"])(t[0]+.5|0,0,255),t[1]=Object(i["b"])(t[1]+.5|0,0,255),t[2]=Object(i["b"])(t[2]+.5|0,0,255),t[3]=Object(i["b"])(t[3],0,1),t}function p(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var r=t[1];r!=(0|r)&&(r=r+.5|0);var n=t[2];n!=(0|n)&&(n=n+.5|0);var i=void 0===t[3]?1:Math.round(100*t[3])/100;return"rgba("+e+","+r+","+n+","+i+")"}function d(t){return a.test(t)&&(t=l(t)),o.test(t)||0===t.indexOf("rgba(")||0===t.indexOf("rgb(")}},"5c6f":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=0,s=1,l=-1,u=function(){function t(){(0,i.default)(this,t),this.points=[]}return(0,o.default)(t,[{key:"clear",value:function(){this.points=[]}},{key:"getPoints",value:function(){return this.points}},{key:"setPoints",value:function(t){this.points=t.slice()}},{key:"addPoint",value:function(t){this.points.push(t)}},{key:"getHull",value:function(){var t=this,e=this.preparePivotPoint(),r=Array.from(this.points,(function(t,e){return e})),n=Array.from(this.points,(function(r){return t.getAngle(e,r)})),i=Array.from(this.points,(function(r){return t.euclideanDistanceSquared(e,r)}));r.sort((function(t,e){var r=n[t],o=n[e];return r===o?i[t]-i[e]:r-o}));for(var o=1;o<r.length-1;o++)n[r[o]]===n[r[o+1]]&&(r[o]=l);for(var a=[],s=0;s<r.length;s++){var u=r[s],c=this.points[u];if(u!==l)if(a.length<3)a.push(c);else{for(;0<this.checkOrientation(a[a.length-2],a[a.length-1],c);)a.pop();a.push(c)}}return a.length<3?[]:a}},{key:"checkOrientation",value:function(t,e,r){return(e[s]-t[s])*(r[a]-e[a])-(r[s]-e[s])*(e[a]-t[a])}},{key:"getAngle",value:function(t,e){return Math.atan2(e[s]-t[s],e[a]-t[a])}},{key:"euclideanDistanceSquared",value:function(t,e){var r=e[a]-t[a];e=e[s]-t[s];return r*r+e*e}},{key:"preparePivotPoint",value:function(){for(var t=this.points[0],e=1;e<this.points.length;e++){var r=this.points[e];(r[s]<t[s]||r[s]===t[s]&&r[a]<t[a])&&(t=r)}return t}}]),t}();e.default=u},"5c9f":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.ViewOptions=e.TMapOptions=void 0,e.addXYZLayer=p,e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("a2c7")),s=n(r("480c")),l=n(r("2ef1")),u=n(r("9b10")),c=n(r("2606")),h=r("21bc"),f=r("3a39");function p(t){return t=new l.default({crossOrigin:"anonymous",url:t}),new s.default({source:t,zIndex:-10})}var d=function(){function t(){(0,i.default)(this,t)}return(0,o.default)(t,null,[{key:"setKey",set:function(e){t._key=e}},{key:"getKey",get:function(){return t._key}}]),t}(),g=((e.TMapOptions=d)._key="7d52266420039b71e62f306a4dc31b84",(0,o.default)((function t(e){(0,i.default)(this,t),this.projection=null,this.center=[],this.projection=(e=e||{}).projection||"EPSG:4326",this.center=e.center||[120.17550675,30.189238500000002],this.zoom=e.zoom||10,this.minZoom=e.minZoom||1,this.maxZoom=e.maxZoom||18}))),y=(e.ViewOptions=g,function(){function t(){(0,i.default)(this,t)}return(0,o.default)(t,null,[{key:"tmapNormal",get:function(){return p("https://t{1-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=".concat(d.getKey))}},{key:"tmapSatellite",get:function(){return p("https://t{1-7}.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=".concat(d.getKey))}},{key:"tmapAnnotation",get:function(){return p("https://t{1-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=".concat(d.getKey))}},{key:"gmapNormal",get:function(){return p("http://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}")}},{key:"gmapSatellite",get:function(){return p("https://wprd0{1-4}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scl=1&style=6")}},{key:"gmapAnnotation",get:function(){return p("https://wprd0{1-4}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scl=1&style=8")}},{key:"TMapLayerArr",get:function(){return[[this.tmapNormal,this.tmapAnnotation],[this.tmapSatellite],[this.tmapSatellite,this.tmapAnnotation]]}},{key:"GMapLayerArr",get:function(){return[[this.gmapNormal],[this.gmapSatellite],[this.gmapSatellite,this.gmapAnnotation]]}},{key:"BDMapLayerArr",get:function(){return(new c.default).layers}},{key:"BingLayers",get:function(){return(new u.default).layers}},{key:"_setView",value:function(e){t._view=new a.default(e)}},{key:"View",get:function(){return t._view},set:function(e){t._setView(e)}},{key:"Defaults",get:function(){return(0,h.defaults)({attribution:!1,rotate:!1,zoom:!1})}},{key:"ScaleLine",get:function(){return new h.ScaleLine}},{key:"InteractionsDeft",get:function(){return(0,f.defaults)({altShiftDragRotate:!1,keyboard:!1,mouseWheelZoom:!1,doubleClickZoom:!1,pinchZoom:!1,shiftDragZoom:!1,dragPan:!1})}},{key:"getVectorLayerView",get:function(){return new a.default({zoom:1,minZoom:1,maxZoom:28,center:[0,0]})}}]),t}());(e.default=y)._view=null},"5e31":function(t,e,r){"use strict";var n=r("0ec0"),i=r("01d4"),o=r("acc1"),a=r("1300"),s=r("ca42"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(e,r,n){var i=t.call(this)||this,o=n||{};return i.tileCoord=e,i.state=r,i.interimTile=null,i.key="",i.transition_=void 0===o.transition?250:o.transition,i.transitionStarts_={},i.interpolate=!!o.interpolate,i}return l(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()==o["a"].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()==o["a"].LOADED){t.interimTile=null;break}t.getState()==o["a"].LOADING?e=t:t.getState()==o["a"].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!==o["a"].ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){Object(a["b"])()},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var r=this.transitionStarts_[t];if(r){if(-1===r)return 1}else r=e,this.transitionStarts_[t]=r;var n=e-r+1e3/60;return n>=this.transition_?1:Object(s["a"])(n/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}(n["a"]);e["a"]=u},"5edf":function(t,e,r){const n=r("ebea");function i(t,e,r){const i=[],o=r&&r.debug||!1,a=!r||"boolean"!==typeof r.nested||r.nested;let s,l=r&&r.startIndex||0;while(s=n(t,e,{debug:o,startIndex:l}))l=a?s.start+1+e.length:s.end,i.push(s);return o&&console.log("findTagsByName found",i.length,"tags"),i}t.exports=i,t.exports.default=i},"5eee":function(t,e,r){"use strict";r.r(e);var n=r("1856"),i=r("fe37"),o=r("38f3"),a=r("21bc"),s=r("3a39"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(e){return e=Object(o["a"])({},e),e.controls||(e.controls=Object(a["defaults"])()),e.interactions||(e.interactions=Object(s["defaults"])({onFocusOnly:!0})),t.call(this,e)||this}return l(e,t),e.prototype.createRenderer=function(){return new n["a"](this)},e}(i["a"]);e["default"]=u},"617d":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"f",(function(){return a})),r.d(e,"g",(function(){return s})),r.d(e,"d",(function(){return l})),r.d(e,"a",(function(){return u})),r.d(e,"h",(function(){return c})),r.d(e,"c",(function(){return h})),r.d(e,"e",(function(){return f}));var n="undefined"!==typeof navigator&&"undefined"!==typeof navigator.userAgent?navigator.userAgent.toLowerCase():"",i=-1!==n.indexOf("firefox"),o=-1!==n.indexOf("safari")&&-1==n.indexOf("chrom"),a=o&&!!(n.indexOf("version/15.4")>=0||n.match(/cpu (os|iphone os) 15_4 like mac os x/)),s=-1!==n.indexOf("webkit")&&-1==n.indexOf("edge"),l=-1!==n.indexOf("macintosh"),u="undefined"!==typeof devicePixelRatio?devicePixelRatio:1,c="undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,h="undefined"!==typeof Image&&Image.prototype.decode,f=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(r){}return t}()},6573:function(t,e,r){"use strict";r.d(e,"d",(function(){return i})),r.d(e,"e",(function(){return o})),r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return s}));var n={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},i=[n.FILL],o=[n.STROKE],a=[n.BEGIN_PATH],s=[n.CLOSE_PATH];e["c"]=n},6582:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=r("3a39"),s=function(){function t(e,r){(0,i.default)(this,t),this._select=null,this._modify=null,this._snap=null,this._vector=e.Vector,this._vectorLayer=e.Vector,this._select=null,this._modify=null,this._snap=null,this._map=r,this._createModify(),this._createSnap()}return(0,o.default)(t,[{key:"_createSelect",value:function(){}},{key:"_createModify",value:function(){this._modify=new a.Modify({source:this._vectorLayer.getSource(),style:function(t){return null}}),this._map.addInteraction(this._modify)}},{key:"_createSnap",value:function(){this._snap=new a.Snap({source:this._vectorLayer.getSource()}),this._map.addInteraction(this._snap)}},{key:"remove",value:function(){this._map.removeInteraction(this._modify),this._map.removeInteraction(this._snap)}}]),t}();e.default=s},"658e":function(t,e){function r(t,e,r){const n=new RegExp(e),i=n.exec(t.slice(r));return i?r+i.index+i[0].length-1:-1}t.exports=r,t.exports.default=r},6611:function(t,e,r){"use strict";r.d(e,"b",(function(){return h}));var n=r("01d4"),i=r("8778"),o=r("869f"),a=r("617d"),s=r("0af5"),l=r("1e8d"),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(t){function e(e,r,n,i,a,s){var l=t.call(this,e,r,n,o["a"].IDLE)||this;return l.src_=i,l.image_=new Image,null!==a&&(l.image_.crossOrigin=a),l.unlisten_=null,l.state=o["a"].IDLE,l.imageLoadFunction_=s,l}return u(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=o["a"].ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Object(s["getHeight"])(this.extent)/this.image_.height),this.state=o["a"].LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=o["a"].IDLE&&this.state!=o["a"].ERROR||(this.state=o["a"].LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=h(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t,this.resolution=Object(s["getHeight"])(this.extent)/this.image_.height},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(i["a"]);function h(t,e,r){var i=t,o=!0,s=!1,u=!1,c=[Object(l["b"])(i,n["a"].LOAD,(function(){u=!0,s||e()}))];return i.src&&a["c"]?(s=!0,i.decode().then((function(){o&&e()})).catch((function(t){o&&(u?e():r())}))):c.push(Object(l["b"])(i,n["a"].ERROR,r)),function(){o=!1,c.forEach(l["c"])}}e["a"]=c},6613:function(t,e,r){var n=r("5a43");function i(t,e){if(t){if("string"===typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},"690f":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(t){var n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:180,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:135;return(0,i.default)(this,r),(n=e.call(this)).width=o,n.height=a,n.data=[],n.data=t,n.ele.style.position="relative",n.ele.style.width="".concat(n.width,"px"),n.ele.style.height="".concat(n.height,"px"),n.ele.style.backgroundColor="rgba(0,0,0,0.4)",n.ele.style.padding="20px",n.ele.style.borderRadius="4px",n.ele.style.boxSizing="border-box",n._createUl(),n}return(0,o.default)(r,[{key:"setHTMLElementStyle",value:function(){}},{key:"_createUl",value:function(){var t=document.createElement("ul");t.style.listStyle="none",this.data.forEach((function(e,r){var n=document.createElement("li"),i=(r=(n.style.fontSize="18px",0!==r&&(n.style.marginTop="10px"),document.createElement("label")),document.createElement("span"));r.innerText=e.label,i.innerText=e.value,i.style.color="#fff",i.style.marginLeft="5px",r.style.color="#fff",n.appendChild(r),n.appendChild(i),t.appendChild(n)})),this.ele.appendChild(t)}}]),r}(u.LOverlay);e.default=f},6923:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("4cdf")),s=r("15e0"),l=n(r("5831")),u=n(r("3e6b")),c=n(r("f403")),h=function(){function t(e,r){(0,i.default)(this,t),this.map=r,this._layer=null,this._source=null,this._lineFeature=null,this._map=null,this._style=null,this._radius=0,this.coordinates=[],this.features=new Array,this.isShow=!0,this._fillColor=e.fillColor,this._stroke=e.stroke,this._zIndex=e.zIndex||5,this._id=e.id,this._map=r,this._radius=e.radius||10,this.coordinates=e.coordinates||[],r=this._createFeature(),this._createCircle(this._createVectorSource(r))}return(0,o.default)(t,[{key:"_createCircle",value:function(t){this._layer=new u.default({source:t}),this._map.addLayer(this._layer)}},{key:"_createVectorSource",value:function(t){return this._source=new l.default({features:t}),this._source}},{key:"_createFeature",value:function(){var t=this;return this.coordinates.forEach((function(e){e=new a.default({geometry:new c.default(e)}),e.setStyle(t.getStyle()),t.features.push(e)})),this.features}},{key:"getStyle",value:function(){return new s.Style({image:new s.Circle({fill:new s.Fill({color:this._fillColor}),radius:this._radius})})}},{key:"remove",value:function(){this._map.removeLayer(this._layer),this._source=null,this._layer=null,this.features=[],this.coordinates=[]}},{key:"show",value:function(){this.isShow||(this._map.addLayer(this._layer),this.isShow=!0)}},{key:"hide",value:function(){this.isShow&&(this._map.removeLayer(this._layer),this.isShow=!1)}}]),t}();e.default=h},"698b":function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return f}));var n=r(1),i=r.n(n),o=r(2),a=r.n(o),s=r(3),l=r.n(s),u=r("3005"),c=r("ae75");class h extends u["b"]{constructor(t,e){super(),this.response=t,this.dataPromise=e}get status(){return this.response.statusCode}getHeader(t){return this.response.headers[t]}async getData(){const t=await this.dataPromise;return t}}class f extends u["a"]{constructor(t){super(t),this.parsedUrl=l.a.parse(this.url),this.httpApi="http:"===this.parsedUrl.protocol?i.a:a.a}constructRequest(e,r){return new Promise((n,i)=>{const o=this.httpApi.get({...this.parsedUrl,headers:e},e=>{const r=new Promise(r=>{const n=[];e.on("data",t=>{n.push(t)}),e.on("end",()=>{const e=t.concat(n).buffer;r(e)}),e.on("error",i)});n(new h(e,r))});o.on("error",i),r&&(r.aborted&&o.destroy(new c["a"]("Request aborted")),r.addEventListener("abort",()=>o.destroy(new c["a"]("Request aborted"))))})}async request({headers:t,signal:e}={}){const r=await this.constructRequest(t,e);return r}}}).call(this,r("b639").Buffer)},6991:function(t,e,r){var n=r("25a5"),i=r("d30b"),o=r("370b"),a=r("5568").default,s=o.featureEach,l=(o.coordEach,i.polygon,i.featureCollection);function u(t){var e=new n(t);return e.insert=function(t){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:a(t),n.prototype.insert.call(this,t)},e.load=function(t){var e=[];return Array.isArray(t)?t.forEach((function(t){if("Feature"!==t.type)throw new Error("invalid features");t.bbox=t.bbox?t.bbox:a(t),e.push(t)})):s(t,(function(t){if("Feature"!==t.type)throw new Error("invalid features");t.bbox=t.bbox?t.bbox:a(t),e.push(t)})),n.prototype.load.call(this,e)},e.remove=function(t,e){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:a(t),n.prototype.remove.call(this,t,e)},e.clear=function(){return n.prototype.clear.call(this)},e.search=function(t){var e=n.prototype.search.call(this,this.toBBox(t));return l(e)},e.collides=function(t){return n.prototype.collides.call(this,this.toBBox(t))},e.all=function(){var t=n.prototype.all.call(this);return l(t)},e.toJSON=function(){return n.prototype.toJSON.call(this)},e.fromJSON=function(t){return n.prototype.fromJSON.call(this,t)},e.toBBox=function(t){var e;if(t.bbox)e=t.bbox;else if(Array.isArray(t)&&4===t.length)e=t;else if(Array.isArray(t)&&6===t.length)e=[t[0],t[1],t[3],t[4]];else if("Feature"===t.type)e=a(t);else{if("FeatureCollection"!==t.type)throw new Error("invalid geojson");e=a(t)}return{minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}},e}t.exports=u,t.exports.default=u},"6b58":function(t,e,r){var n=r("7037")["default"],i=r("3c96");function o(t,e){if(e&&("object"===n(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},"6c77":function(t,e,r){"use strict";r.r(e),r.d(e,"toFunction",(function(){return l})),r.d(e,"createDefaultStyle",(function(){return c})),r.d(e,"createEditingStyle",(function(){return h}));var n=r("ce2c"),i=r("83a6"),o=r("8682"),a=r("92fa"),s=function(){function t(t){var e=t||{};this.geometry_=null,this.geometryFunction_=f,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.hitDetectionRenderer_=void 0!==e.hitDetectionRenderer?e.hitDetectionRenderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}return t.prototype.clone=function(){var e=this.getGeometry();return e&&"object"===typeof e&&(e=e.clone()),new t({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.setRenderer=function(t){this.renderer_=t},t.prototype.setHitDetectionRenderer=function(t){this.hitDetectionRenderer_=t},t.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},t.prototype.getGeometry=function(){return this.geometry_},t.prototype.getGeometryFunction=function(){return this.geometryFunction_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(t){this.fill_=t},t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(t){this.image_=t},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.getText=function(){return this.text_},t.prototype.setText=function(t){this.text_=t},t.prototype.getZIndex=function(){return this.zIndex_},t.prototype.setGeometry=function(t){"function"===typeof t?this.geometryFunction_=t:"string"===typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=f,this.geometry_=t},t.prototype.setZIndex=function(t){this.zIndex_=t},t}();function l(t){var e;if("function"===typeof t)e=t;else{var r;if(Array.isArray(t))r=t;else{Object(a["a"])("function"===typeof t.getZIndex,41);var n=t;r=[n]}e=function(){return r}}return e}var u=null;function c(t,e){if(!u){var r=new i["default"]({color:"rgba(255,255,255,0.4)"}),a=new o["default"]({color:"#3399CC",width:1.25});u=[new s({image:new n["default"]({fill:r,stroke:a,radius:5}),fill:r,stroke:a})]}return u}function h(){var t={},e=[255,255,255,1],r=[0,153,255,1],a=3;return t["Polygon"]=[new s({fill:new i["default"]({color:[255,255,255,.5]})})],t["MultiPolygon"]=t["Polygon"],t["LineString"]=[new s({stroke:new o["default"]({color:e,width:a+2})}),new s({stroke:new o["default"]({color:r,width:a})})],t["MultiLineString"]=t["LineString"],t["Circle"]=t["Polygon"].concat(t["LineString"]),t["Point"]=[new s({image:new n["default"]({radius:2*a,fill:new i["default"]({color:r}),stroke:new o["default"]({color:e,width:a/2})}),zIndex:1/0})],t["MultiPoint"]=t["Point"],t["GeometryCollection"]=t["Polygon"].concat(t["LineString"],t["Point"]),t}function f(t){return t.getGeometry()}e["default"]=s},"6cbf":function(t,e,r){"use strict";var n=r("01d4"),i=r("82b0"),o={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},a=r("869f"),s=r("ab35"),l=r("5c38"),u=r("92fa"),c=r("ab77"),h=r("1300"),f=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=function(t){function e(e){var r=this,n=e||{},s=void 0!==n.opacity?n.opacity:1,f=void 0!==n.rotation?n.rotation:0,p=void 0!==n.scale?n.scale:1,d=void 0!==n.rotateWithView&&n.rotateWithView;r=t.call(this,{opacity:s,rotation:f,scale:p,displacement:void 0!==n.displacement?n.displacement:[0,0],rotateWithView:d,declutterMode:n.declutterMode})||this,r.anchor_=void 0!==n.anchor?n.anchor:[.5,.5],r.normalizedAnchor_=null,r.anchorOrigin_=void 0!==n.anchorOrigin?n.anchorOrigin:o.TOP_LEFT,r.anchorXUnits_=void 0!==n.anchorXUnits?n.anchorXUnits:i["a"].FRACTION,r.anchorYUnits_=void 0!==n.anchorYUnits?n.anchorYUnits:i["a"].FRACTION,r.crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null;var g=void 0!==n.img?n.img:null;r.imgSize_=n.imgSize;var y=n.src;Object(u["a"])(!(void 0!==y&&g),4),Object(u["a"])(!g||g&&r.imgSize_,5),void 0!==y&&0!==y.length||!g||(y=g.src||Object(h["c"])(g)),Object(u["a"])(void 0!==y&&y.length>0,6);var v=void 0!==n.src?a["a"].IDLE:a["a"].LOADED;return r.color_=void 0!==n.color?Object(l["a"])(n.color):null,r.iconImage_=Object(c["b"])(g,y,void 0!==r.imgSize_?r.imgSize_:null,r.crossOrigin_,v,r.color_),r.offset_=void 0!==n.offset?n.offset:[0,0],r.offsetOrigin_=void 0!==n.offsetOrigin?n.offsetOrigin:o.TOP_LEFT,r.origin_=null,r.size_=void 0!==n.size?n.size:null,r}return f(e,t),e.prototype.clone=function(){var t=this.getScale();return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},e.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var e=this.getSize();if(this.anchorXUnits_==i["a"].FRACTION||this.anchorYUnits_==i["a"].FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==i["a"].FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==i["a"].FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=o.TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=o.TOP_RIGHT&&this.anchorOrigin_!=o.BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=o.BOTTOM_LEFT&&this.anchorOrigin_!=o.BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}var r=this.getDisplacement();return[t[0]-r[0],t[1]+r[1]]},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=o.TOP_LEFT){var e=this.getSize(),r=this.iconImage_.getSize();if(!e||!r)return null;t=t.slice(),this.offsetOrigin_!=o.TOP_RIGHT&&this.offsetOrigin_!=o.BOTTOM_RIGHT||(t[0]=r[0]-e[0]-t[0]),this.offsetOrigin_!=o.BOTTOM_LEFT&&this.offsetOrigin_!=o.BOTTOM_RIGHT||(t[1]=r[1]-e[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(n["a"].CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(n["a"].CHANGE,t)},e}(s["a"]);e["a"]=p},"6cf3":function(t,e,r){"use strict";var n=r("91b1"),i=r("0af5"),o=r("92fa"),a=r("9cff"),s=r("089b"),l=r("256f"),u=r("e4e0"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;if(void 0!==e.interpolate&&(n=e.interpolate),r=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:n,projection:Object(l["get"])("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:e.zDirection})||this,r.tileJSON_=null,r.tileSize_=e.tileSize,e.url)if(e.jsonp)Object(u["a"])(e.url,r.handleTileJSONResponse.bind(r),r.handleTileJSONError.bind(r));else{var i=new XMLHttpRequest;i.addEventListener("load",r.onXHRLoad_.bind(r)),i.addEventListener("error",r.onXHRError_.bind(r)),i.open("GET",e.url),i.send()}else e.tileJSON?r.handleTileJSONResponse(e.tileJSON):Object(o["a"])(!1,51);return r}return c(e,t),e.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var r=void 0;try{r=JSON.parse(e.responseText)}catch(n){return void this.handleTileJSONError()}this.handleTileJSONResponse(r)}else this.handleTileJSONError()},e.prototype.onXHRError_=function(t){this.handleTileJSONError()},e.prototype.getTileJSON=function(){return this.tileJSON_},e.prototype.handleTileJSONResponse=function(t){var e,r=Object(l["get"])("EPSG:4326"),n=this.getProjection();if(void 0!==t["bounds"]){var o=Object(l["getTransformFromProjections"])(r,n);e=Object(i["applyTransform"])(t["bounds"],o)}var u=Object(s["b"])(n),c=t["minzoom"]||0,h=t["maxzoom"]||22,f=Object(s["a"])({extent:u,maxZoom:h,minZoom:c,tileSize:this.tileSize_});if(this.tileGrid=f,this.tileUrlFunction=Object(a["a"])(t["tiles"],f),void 0!==t["attribution"]&&!this.getAttributions()){var p=void 0!==e?e:u;this.setAttributions((function(e){return Object(i["intersects"])(p,e.extent)?[t["attribution"]]:null}))}this.tileJSON_=t,this.setState("ready")},e.prototype.handleTileJSONError=function(){this.setState("error")},e}(n["default"]);e["a"]=h},"6d8f":function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a}));var n=r("57cb"),i=!1;function o(t,e,r,n,o,a,s){var l=new XMLHttpRequest;l.open("GET","function"===typeof t?t(r,n,o):t,!0),"arraybuffer"==e.getType()&&(l.responseType="arraybuffer"),l.withCredentials=i,l.onload=function(t){if(!l.status||l.status>=200&&l.status<300){var n=e.getType(),i=void 0;"json"==n||"text"==n?i=l.responseText:"xml"==n?(i=l.responseXML,i||(i=(new DOMParser).parseFromString(l.responseText,"application/xml"))):"arraybuffer"==n&&(i=l.response),i?a(e.readFeatures(i,{extent:r,featureProjection:o}),e.readProjection(i)):s()}else s()},l.onerror=s,l.send()}function a(t,e){return function(r,i,a,s,l){var u=this;o(t,e,r,i,a,(function(t,e){u.addFeatures(t),void 0!==s&&s(t)}),l||n["c"])}}},"6e27":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("278c"))),o=n(r("448a")),a=n(r("970b")),s=n(r("5bc3")),l=n(r("ed6d")),u=n(r("6b58")),c=n(r("36c6")),h=r("15e0"),f=n(r("4cdf")),p=n(r("5831")),d=n(r("3e6b")),g=n(r("5bc33")),y=n(r("6f26")),v=r("b12f"),m=r("5897"),_=n(r("f403")),b=n(r("9a44")),x=n(r("7a09")),w=n(r("e1f2")),O=n(r("6582")),E=r("13e2");function S(t){var e=T();return function(){var r,n=(0,c.default)(t);return r=e?(r=(0,c.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,u.default)(this,r)}}function T(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var C=new h.Style({text:new h.Text({fill:new h.Fill({color:"rgba(255, 255, 255, 1)"}),padding:[2,2,2,2],textBaseline:"bottom",offsetY:-20})}),P=[C],j=function(t){(0,l.default)(r,t);var e=S(r);function r(t,n){return(0,a.default)(this,r),(t=e.call(this,t,n))._isTruePolygon=!1,t._checkPoint=null,t._checkPointArea=null,t.createPolygon(),t}return(0,s.default)(r,[{key:"createPolygon",value:function(){var t=this;this.layer=new d.default({source:new p.default,style:function(e,r){var n,i=e.getGeometry(),o=(i=new x.default(i.getCoordinates()[0]),t.id&&e.setId(t.id),(0,v.calculateCenter)(e.getGeometry())),a=o.coordinates,s=(o=o.center,(0,m.isTruePolygon)(a)),l=(t._isTruePolygon=s,[t.getStyle(s)]);e="".concat((0,v.formatArea)(e.getGeometry()));return t._checkPointArea?(t._checkPointArea.setText(e),t._checkPointArea.setPosition(o)):t._checkPointArea=t.createCheckPoint(e,o),!s&&a&&(!t._checkPoint&&2<a.length?t._checkPoint=t.createCheckPoint("多边形不合法",o):t._checkPoint&&(t._checkPoint.setPosition(o),t._checkPoint.show()),t._checkPointArea&&t._checkPointArea.hide()),s&&t._checkPoint&&t._checkPoint.hide(),s&&t._checkPointArea&&t._checkPointArea.show(),r&&i&&(n=0,i.forEachSegment((function(t,e){t=new x.default([t,e]),e=(0,v.formatLength)(t),P.length-1<n&&P.push(C.clone()),t=new _.default(t.getCoordinateAt(.5)),P[n].setGeometry(t),P[n].getText().setText(e),l.push(P[n]),n++}))),l.push(new h.Style({geometry:new b.default(a),image:new h.Circle({radius:4,fill:new h.Fill({color:"#FF8100"})})})),a&&a.length&&(e=1<a.length?a.length-2:a.length-1,a[a.length-2],l.push(new h.Style({geometry:new _.default(a[e]),image:new h.Circle({radius:4,fill:new h.Fill({color:"#33cc33"})})}))),l}}),this.polygon=new g.default(this.isConvertCoordinatesGCJ02()),this.polygonFeature=new f.default(this.polygon),this.id&&this.polygonFeature.setId(this.id),this.layer.getSource().addFeature(this.polygonFeature),this.map.addLayer(this.layer)}},{key:"getStyle",value:function(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];return new h.Style({fill:new h.Fill({color:t?this.fillColor:"rgba(255,0,0, 0.5)"}),stroke:new h.Stroke({color:t?this.stroke:"rgba(255,0,0, 0.5)",width:this.width}),image:new h.Circle({radius:7,fill:new h.Fill({color:"#ffcc33"})})})}},{key:"removeMarker",value:function(){this._checkPoint&&this.map.removeOverlay(this._checkPoint.getMarker()),this._checkPointArea&&this.map.removeOverlay(this._checkPointArea.getMarker()),this._checkPoint=null,this._checkPointArea=null}},{key:"removePolygon",value:function(){this.map.removeLayer(this.layer),this.polygonFeature=null,this.source=null,this.layer=null,this.polygon=null}},{key:"IsTruePolygon",get:function(){return this._isTruePolygon}},{key:"createCheckPoint",value:function(t,e){return t=new y.default(" ".concat(t),12,"#fff"),t.setOffset([0,-5]),t.setPosition(e),this.map.addOverlay(t.getMarker()),t}}]),r}(w.default),R=function(){function t(e,r){var n=this;(0,a.default)(this,t),this._modify=null,this._callback=null,this.pointArr=new Array,this._pointArr=new Array,this._polygonNew=null,this._isSkipCurrentDraw=!1,this.x=0,this.y=0,this.type=0,this._map=e,this._modify=null,this._callback=r.callback,this._strokeColor=r.strokeColor||"rgba(255,201,14, 0.4)",this._fillColor=r.fillColor||"rgba(255,201,14, 1)",this.pointArr=new Array,this._pointArr=new Array,this._polygonNew=null,this._isSkipCurrentDraw=!1,this.type=r.type||0,this.singleclick=function(t){var e;n._isSkipCurrentDraw?n._isSkipCurrentDraw=!1:(t=t.coordinate,n.type&&(t=[(e=E.GPS.gcj_decrypt(t[0],t[1])).lon,e.lat]),n.pointArr.push(t),n._polygonNew?n._polygonNew&&(e=n.pointArr,n._polygonNew.setCoordinates([e],n.type)):n._createPolygon())},this._bingMapEvent()}return(0,s.default)(t,[{key:"_createPolygon",value:function(){var t=new Array;this.pointArr.forEach((function(e){t.push(e)})),t.push(this.pointArr[0]),this._polygonNew=new j({fillColor:this._fillColor,stroke:this._strokeColor,coordinates:[t],type:this.type},this._map),this._modify=new O.default(this._polygonNew,this._map)}},{key:"skipCurrentDraw",value:function(){this._isSkipCurrentDraw=!0}},{key:"remove",value:function(){this._map.un("singleclick",this.singleclick),this._modify&&(this._modify.remove(),this._modify=null),this._polygonNew&&(this._polygonNew.removePolygon(),this._polygonNew.removeMarker(),this._polygonNew=null),this.x=0,this.y=0,this.pointArr=[],this._pointArr=[],this._isSkipCurrentDraw=!1}},{key:"removeLastPoint",value:function(){var t=this.getCoordinates();this.x=0,this.y=0,t.length?(this._pointArr=(0,o.default)(t[0]),this._pointArr.splice(this._pointArr.length-1,1),this.pointArr=this._pointArr):this.pointArr.length&&(this._pointArr=(0,o.default)(this.pointArr)),this._pointArr.splice(this._pointArr.length-1,1),this._pointArr.length||(this._polygonNew.removeMarker(),this.pointArr=[],this._pointArr=[]),this._polygonNew.setCoordinates([this._pointArr],this.type)}},{key:"getCoordinates",value:function(){return this._polygonNew?this._polygonNew.getCoordinates():[]}},{key:"getGeoJson",value:function(){return this._polygonNew.getGeoJson()}},{key:"getGeometry",value:function(){return this._polygonNew?this._polygonNew.getGeometry():null}},{key:"isPolygon",value:function(){return this._polygonNew.isPolygon()}},{key:"getCenterPoint",value:function(){return this._polygonNew.getCenterPoint()}},{key:"setCoordinates",value:function(t){var e=(0,i.default)(t,2),r=e[0];e=e[1];this.x==r&&this.y==e||(this.x=r,this.y=e,this.pointArr.push(t),this._polygonNew?this._polygonNew&&this._polygonNew.setCoordinates([this.pointArr],this.type):this._createPolygon())}},{key:"initCoordinates",value:function(t){if(t&&t[0]){var e=t[0],r=e[e.length-1];if(e[0][0]==r[0]&&e[0][1]==r[1])for(var n=1;n<e.length;n++)this.pointArr.push(e[n-1])}this._polygonNew=new j({fillColor:"rgba(0,0,0, 0.5)",stroke:"rgba(255,255,0, 1)",coordinates:t,type:this.type},this._map),this._modify=new O.default(this._polygonNew,this._map)}},{key:"finishDrawing",value:function(){}},{key:"_bingMapEvent",value:function(){this._map.on("singleclick",this.singleclick)}},{key:"isTruePolygon",get:function(){return this._polygonNew.IsTruePolygon}},{key:"setType",set:function(t){this.type=t}},{key:"selectGPS",value:function(){this._polygonNew&&this._polygonNew.selectGPS(0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,!(1<arguments.length&&void 0!==arguments[1])||arguments[1])}}]),t}();e.default=R},"6ee6":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(){return(0,i.default)(this,r),e.call(this)}return(0,o.default)(r,[{key:"setHTMLElementStyle",value:function(){this.ele.style.position="relative",this.ele.style.background="rgb(23, 168, 162)",this.ele.style.borderRadius="4px",this.ele.style.color="#fff",this.ele.style.padding="4px 30px 4px 8px",this.ele.style.whiteSpace="nowrap"}}]),r}(u.LOverlay);e.default=f},"6f26":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(t){var n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:12,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"#fff";return(0,i.default)(this,r),(n=e.call(this)).ele.style.fontSize="".concat(o,"px"),n.ele.innerText=t,n.ele.style.position="relative",n.ele.style.width="260px",n.ele.style.height="15px",n.ele.style.backgroundColor="transparent",n.ele.style.cursor="pointer",n.ele.style.lineHeight="60px",n.ele.style.textAlign="center",n.ele.style.color=a,n}return(0,o.default)(r,[{key:"setHTMLElementStyle",value:function(){}}]),r}(u.LOverlay);e.default=f},7037:function(t,e){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},7238:function(t,e,r){"use strict";var n=r("cef7"),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.map=r,i.frameState=void 0!==n?n:null,i}return i(e,t),e}(n["a"]);e["a"]=o},"74bf":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=r("13e2"),s=function(){function t(){(0,i.default)(this,t),this.xMax=0,this.xMin=400,this.yMax=0,this.yMin=400}return(0,o.default)(t,[{key:"getLngAndLatMaxMin",value:function(t){t.X>this.xMax&&(this.xMax=t.X),t.Y>this.yMax&&(this.yMax=t.Y),t.X<this.xMin&&(this.xMin=t.X),t.Y<this.yMin&&(this.yMin=t.Y)}},{key:"getLngLats",value:function(){var t=[];return t.push([this.xMax],[this.yMax]),t.push([this.xMin],[this.yMin]),t}},{key:"getLngLatGCJ02",value:function(){var t=[],e=a.GPS.gcj_encrypt(this.xMax,this.yMax),r=e.lon,n=(e=e.lat,a.GPS.gcj_encrypt(this.xMin,this.yMin)),i=n.lon;n=n.lat;return t.push([r],[e]),t.push([i],[n]),t}}]),t}();e.default=s},7554:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(t){var n;return(0,i.default)(this,r),(n=e.call(this)).ele.style.width="".concat(t.width,"px"),n.ele.style.height="".concat(t.height,"px"),n.ele.style.backgroundColor="".concat(t.backgroundColor),n.ele.style.lineHeight="".concat(t.height,"px"),n.ele.style.fontSize="12px",n.ele.style.color="".concat(t.color),n.ele.style.borderRadius="8px 14px 14px 0px",n.ele.style.padding="0px 10px",n.ele.style.whiteSpace="nowrap",n.ele.style.cursor="pointer",n.ele.style.marginLeft="0",n.ele.style.marginRight="0",n.setText(t.text),n}return(0,o.default)(r,[{key:"setHTMLElementStyle",value:function(){}},{key:"init",value:function(){}}]),r}(u.LOverlay);e.default=f},7660:function(t,e,r){"use strict";r.r(e),r.d(e,"BingMaps",(function(){return o["default"]})),r.d(e,"CartoDB",(function(){return c})),r.d(e,"Cluster",(function(){return h["default"]})),r.d(e,"DataTile",(function(){return E})),r.d(e,"GeoTIFF",(function(){return ge})),r.d(e,"IIIF",(function(){return Ue})),r.d(e,"Image",(function(){return Be["a"]})),r.d(e,"ImageArcGISRest",(function(){return Ye})),r.d(e,"ImageCanvas",(function(){return Je})),r.d(e,"ImageMapGuide",(function(){return er})),r.d(e,"ImageStatic",(function(){return rr["default"]})),r.d(e,"ImageWMS",(function(){return cr})),r.d(e,"OSM",(function(){return dr})),r.d(e,"Raster",(function(){return gr["a"]})),r.d(e,"Source",(function(){return yr["a"]})),r.d(e,"Stamen",(function(){return wr})),r.d(e,"Tile",(function(){return g["b"]})),r.d(e,"TileArcGISRest",(function(){return Sr})),r.d(e,"TileDebug",(function(){return Pr})),r.d(e,"TileImage",(function(){return ye["default"]})),r.d(e,"TileJSON",(function(){return jr["a"]})),r.d(e,"TileWMS",(function(){return Ar})),r.d(e,"UrlTile",(function(){return Lr["a"]})),r.d(e,"UTFGrid",(function(){return zr})),r.d(e,"Vector",(function(){return Ur["default"]})),r.d(e,"VectorTile",(function(){return Br["a"]})),r.d(e,"WMTS",(function(){return Hr})),r.d(e,"XYZ",(function(){return a["default"]})),r.d(e,"Zoomify",(function(){return Te})),r.d(e,"sourcesFromTileGrid",(function(){return Yr}));var n=r("5116"),i=r("0af5"),o=r("a226"),a=r("2ef1"),s=r("38f3"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(e){var r=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,maxZoom:void 0!==e.maxZoom?e.maxZoom:18,minZoom:e.minZoom,projection:e.projection,transition:e.transition,wrapX:e.wrapX,zDirection:e.zDirection})||this;return r.account_=e.account,r.mapId_=e.map||"",r.config_=e.config||{},r.templateCache_={},r.initializeMap_(),r}return l(e,t),e.prototype.getConfig=function(){return this.config_},e.prototype.updateConfig=function(t){Object(s["a"])(this.config_,t),this.initializeMap_()},e.prototype.setConfig=function(t){this.config_=t||{},this.initializeMap_()},e.prototype.initializeMap_=function(){var t=JSON.stringify(this.config_);if(this.templateCache_[t])this.applyTemplate_(this.templateCache_[t]);else{var e="https://"+this.account_+".carto.com/api/v1/map";this.mapId_&&(e+="/named/"+this.mapId_);var r=new XMLHttpRequest;r.addEventListener("load",this.handleInitResponse_.bind(this,t)),r.addEventListener("error",this.handleInitError_.bind(this)),r.open("POST",e),r.setRequestHeader("Content-type","application/json"),r.send(JSON.stringify(this.config_))}},e.prototype.handleInitResponse_=function(t,e){var r=e.target;if(!r.status||r.status>=200&&r.status<300){var n=void 0;try{n=JSON.parse(r.responseText)}catch(i){return void this.setState("error")}this.applyTemplate_(n),this.templateCache_[t]=n,this.setState("ready")}else this.setState("error")},e.prototype.handleInitError_=function(t){this.setState("error")},e.prototype.applyTemplate_=function(t){var e="https://"+t.cdn_url.https+"/"+this.account_+"/api/v1/map/"+t.layergroupid+"/{z}/{x}/{y}.png";this.setUrl(e)},e}(a["default"]),c=u,h=r("55bd"),f=r("e134"),p=r("01d4"),d=r("f8b5"),g=r("d0fc"),y=r("acc1"),v=r("089b"),m=r("2c30"),_=r("1300"),b=r("57cb"),x=r("345d"),w=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),O=function(t){function e(e){var r=this,n=void 0===e.projection?"EPSG:3857":e.projection,i=e.tileGrid;if(void 0===i&&n&&(i=Object(v["a"])({extent:Object(v["b"])(n),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize})),r=t.call(this,{cacheSize:.1,attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:n,tileGrid:i,opaque:e.opaque,state:e.state,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate})||this,r.gutter_=void 0!==e.gutter?e.gutter:0,r.tileSize_=e.tileSize?Object(x["d"])(e.tileSize):null,!r.tileSize_&&e.tilePixelRatio&&i){var o=Object(x["d"])(i.getTileSize(0));r.tileSize_=[o[0]*e.tilePixelRatio,o[1]*e.tilePixelRatio]}return r.tileSizes_=null,r.tileLoadingKeys_={},r.loader_=e.loader,r.handleTileChange_=r.handleTileChange_.bind(r),r.bandCount=void 0===e.bandCount?4:e.bandCount,r}return w(e,t),e.prototype.setTileSizes=function(t){this.tileSizes_=t},e.prototype.getTileSize=function(t){if(this.tileSizes_)return this.tileSizes_[t];if(this.tileSize_)return this.tileSize_;var e=this.getTileGrid();return e?Object(x["d"])(e.getTileSize(t)):[256,256]},e.prototype.getGutterForProjection=function(t){return this.gutter_},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.getTile=function(t,e,r,n,i){var o=this.getTileSize(t),a=Object(m["e"])(t,e,r);if(this.tileCache.containsKey(a))return this.tileCache.get(a);var l=this.loader_;function u(){return Object(b["e"])((function(){return l(t,e,r)}))}var c=Object(s["a"])({tileCoord:[t,e,r],loader:u,size:o},this.tileOptions),h=new f["a"](c);return h.key=this.getKey(),h.addEventListener(p["a"].CHANGE,this.handleTileChange_),this.tileCache.set(a,h),h},e.prototype.handleTileChange_=function(t){var e,r=t.target,n=Object(_["c"])(r),i=r.getState();i==y["a"].LOADING?(this.tileLoadingKeys_[n]=!0,e=d["a"].TILELOADSTART):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],e=i==y["a"].ERROR?d["a"].TILELOADERROR:i==y["a"].LOADED?d["a"].TILELOADEND:void 0),e&&this.dispatchEvent(new g["a"](e,r))},e}(g["b"]),E=O,S=r("78db");const T=new Map;function C(t,e){Array.isArray(t)||(t=[t]),t.forEach(t=>T.set(t,e))}async function P(t){const e=T.get(t.Compression);if(!e)throw new Error("Unknown compression method identifier: "+t.Compression);const r=await e();return new r(t)}C([void 0,1],()=>r.e(5).then(r.bind(null,"9a7b")).then(t=>t.default)),C(5,()=>r.e(3).then(r.bind(null,"852f")).then(t=>t.default)),C(6,()=>{throw new Error("old style JPEG compression is not supported.")}),C(7,()=>r.e(2).then(r.bind(null,"2624")).then(t=>t.default)),C([8,32946],()=>Promise.all([r.e(0),r.e(9)]).then(r.bind(null,"fa61")).then(t=>t.default)),C(32773,()=>r.e(4).then(r.bind(null,"45bf")).then(t=>t.default)),C(34887,()=>Promise.all([r.e(0),r.e(7)]).then(r.bind(null,"6372")).then(t=>t.default)),C(50001,()=>r.e(6).then(r.bind(null,"ee5b")).then(t=>t.default));const j="undefined"!==typeof navigator&&navigator.hardwareConcurrency||2;class R{constructor(t=j,e){this.workers=null,this._awaitingDecoder=null,this.size=t,this.messageId=0,t&&(this._awaitingDecoder=e?Promise.resolve(e):new Promise(t=>{r.e(8).then(r.bind(null,"b244")).then(e=>{t(e.create)})}),this._awaitingDecoder.then(e=>{this._awaitingDecoder=null,this.workers=[];for(let r=0;r<t;r++)this.workers.push({worker:e(),idle:!0})}))}async decode(t,e){return this._awaitingDecoder&&await this._awaitingDecoder,0===this.size?P(t).then(r=>r.decode(t,e)):new Promise(r=>{const n=this.workers.find(t=>t.idle)||this.workers[Math.floor(Math.random()*this.size)];n.idle=!1;const i=this.messageId++,o=t=>{t.data.id===i&&(n.idle=!0,r(t.data.decoded),n.worker.removeEventListener("message",o))};n.worker.addEventListener("message",o),n.worker.postMessage({fileDirectory:t,buffer:e,id:i},[e])})}destroy(){this.workers&&(this.workers.forEach(t=>{t.worker.terminate()}),this.workers=null)}}var M=R,A=r("e504"),L=r("94df"),I=r.n(L),F=r("5edf"),k=r.n(F),D=r("aba6");function G(t,e){const{width:r,height:n}=t,i=new Uint8Array(r*n*3);let o;for(let a=0,s=0;a<t.length;++a,s+=3)o=256-t[a]/e*256,i[s]=o,i[s+1]=o,i[s+2]=o;return i}function N(t,e){const{width:r,height:n}=t,i=new Uint8Array(r*n*3);let o;for(let a=0,s=0;a<t.length;++a,s+=3)o=t[a]/e*256,i[s]=o,i[s+1]=o,i[s+2]=o;return i}function z(t,e){const{width:r,height:n}=t,i=new Uint8Array(r*n*3),o=e.length/3,a=e.length/3*2;for(let s=0,l=0;s<t.length;++s,l+=3){const r=t[s];i[l]=e[r]/65536*256,i[l+1]=e[r+o]/65536*256,i[l+2]=e[r+a]/65536*256}return i}function U(t){const{width:e,height:r}=t,n=new Uint8Array(e*r*3);for(let i=0,o=0;i<t.length;i+=4,o+=3){const e=t[i],r=t[i+1],a=t[i+2],s=t[i+3];n[o]=(255-e)/256*255*((255-s)/256),n[o+1]=(255-r)/256*255*((255-s)/256),n[o+2]=(255-a)/256*255*((255-s)/256)}return n}function B(t){const{width:e,height:r}=t,n=new Uint8ClampedArray(e*r*3);for(let i=0,o=0;i<t.length;i+=3,o+=3){const e=t[i],r=t[i+1],a=t[i+2];n[o]=e+1.402*(a-128),n[o+1]=e-.34414*(r-128)-.71414*(a-128),n[o+2]=e+1.772*(r-128)}return n}const V=.95047,X=1,W=1.08883;function H(t){const{width:e,height:r}=t,n=new Uint8Array(e*r*3);for(let i=0,o=0;i<t.length;i+=3,o+=3){const e=t[i+0],r=t[i+1]<<24>>24,a=t[i+2]<<24>>24;let s,l,u,c=(e+16)/116,h=r/500+c,f=c-a/200;h=V*(h*h*h>.008856?h*h*h:(h-16/116)/7.787),c=X*(c*c*c>.008856?c*c*c:(c-16/116)/7.787),f=W*(f*f*f>.008856?f*f*f:(f-16/116)/7.787),s=3.2406*h+-1.5372*c+-.4986*f,l=-.9689*h+1.8758*c+.0415*f,u=.0557*h+-.204*c+1.057*f,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,u=u>.0031308?1.055*u**(1/2.4)-.055:12.92*u,n[o]=255*Math.max(0,Math.min(1,s)),n[o+1]=255*Math.max(0,Math.min(1,l)),n[o+2]=255*Math.max(0,Math.min(1,u))}return n}function Y(t,e,r,n=1){return new(Object.getPrototypeOf(t).constructor)(e*r*n)}function q(t,e,r,n,i){const o=e/n,a=r/i;return t.map(t=>{const s=Y(t,n,i);for(let l=0;l<i;++l){const i=Math.min(Math.round(a*l),r-1);for(let r=0;r<n;++r){const a=Math.min(Math.round(o*r),e-1),u=t[i*e+a];s[l*n+r]=u}}return s})}function K(t,e,r){return(1-r)*t+r*e}function Z(t,e,r,n,i){const o=e/n,a=r/i;return t.map(t=>{const s=Y(t,n,i);for(let l=0;l<i;++l){const i=a*l,u=Math.floor(i),c=Math.min(Math.ceil(i),r-1);for(let r=0;r<n;++r){const a=o*r,h=a%1,f=Math.floor(a),p=Math.min(Math.ceil(a),e-1),d=t[u*e+f],g=t[u*e+p],y=t[c*e+f],v=t[c*e+p],m=K(K(d,g,h),K(y,v,h),i%1);s[l*n+r]=m}}return s})}function J(t,e,r,n,i,o="nearest"){switch(o.toLowerCase()){case"nearest":return q(t,e,r,n,i);case"bilinear":case"linear":return Z(t,e,r,n,i);default:throw new Error(`Unsupported resampling method: '${o}'`)}}function $(t,e,r,n,i,o){const a=e/n,s=r/i,l=Y(t,n,i,o);for(let u=0;u<i;++u){const i=Math.min(Math.round(s*u),r-1);for(let r=0;r<n;++r){const s=Math.min(Math.round(a*r),e-1);for(let a=0;a<o;++a){const c=t[i*e*o+s*o+a];l[u*n*o+r*o+a]=c}}}return l}function Q(t,e,r,n,i,o){const a=e/n,s=r/i,l=Y(t,n,i,o);for(let u=0;u<i;++u){const i=s*u,c=Math.floor(i),h=Math.min(Math.ceil(i),r-1);for(let r=0;r<n;++r){const s=a*r,f=s%1,p=Math.floor(s),d=Math.min(Math.ceil(s),e-1);for(let a=0;a<o;++a){const s=t[c*e*o+p*o+a],g=t[c*e*o+d*o+a],y=t[h*e*o+p*o+a],v=t[h*e*o+d*o+a],m=K(K(s,g,f),K(y,v,f),i%1);l[u*n*o+r*o+a]=m}}}return l}function tt(t,e,r,n,i,o,a="nearest"){switch(a.toLowerCase()){case"nearest":return $(t,e,r,n,i,o);case"bilinear":case"linear":return Q(t,e,r,n,i,o);default:throw new Error(`Unsupported resampling method: '${a}'`)}}function et(t,e,r){let n=0;for(let i=e;i<r;++i)n+=t[i];return n}function rt(t,e,r){switch(t){case 1:if(e<=8)return new Uint8Array(r);if(e<=16)return new Uint16Array(r);if(e<=32)return new Uint32Array(r);break;case 2:if(8===e)return new Int8Array(r);if(16===e)return new Int16Array(r);if(32===e)return new Int32Array(r);break;case 3:switch(e){case 16:case 32:return new Float32Array(r);case 64:return new Float64Array(r);default:break}break;default:break}throw Error("Unsupported data format/bitsPerSample")}function nt(t,e){return(1!==t&&2!==t||!(e<=32)||e%8!==0)&&(3!==t||16!==e&&32!==e&&64!==e)}function it(t,e,r,n,i,o,a){const s=new DataView(t),l=2===r?a*o:a*o*n,u=2===r?1:n,c=rt(e,i,l),h=parseInt("1".repeat(i),2);if(1===e){let t;t=1===r?n*i:i;let e=o*t;0!==(7&e)&&(e=e+7&-8);for(let r=0;r<a;++r){const t=r*e;for(let e=0;e<o;++e){const n=t+e*u*i;for(let t=0;t<u;++t){const a=n+t*i,l=(r*o+e)*u+t,f=Math.floor(a/8),p=a%8;if(p+i<=8)c[l]=s.getUint8(f)>>8-i-p&h;else if(p+i<=16)c[l]=s.getUint16(f)>>16-i-p&h;else if(p+i<=24){const t=s.getUint16(f)<<8|s.getUint8(f+2);c[l]=t>>24-i-p&h}else c[l]=s.getUint32(f)>>32-i-p&h}}}}return c.buffer}class ot{constructor(t,e,r,n,i,o){this.fileDirectory=t,this.geoKeys=e,this.dataView=r,this.littleEndian=n,this.tiles=i?{}:null,this.isTiled=!t.StripOffsets;const a=t.PlanarConfiguration;if(this.planarConfiguration="undefined"===typeof a?1:a,1!==this.planarConfiguration&&2!==this.planarConfiguration)throw new Error("Invalid planar configuration.");this.source=o}getFileDirectory(){return this.fileDirectory}getGeoKeys(){return this.geoKeys}getWidth(){return this.fileDirectory.ImageWidth}getHeight(){return this.fileDirectory.ImageLength}getSamplesPerPixel(){return"undefined"!==typeof this.fileDirectory.SamplesPerPixel?this.fileDirectory.SamplesPerPixel:1}getTileWidth(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}getTileHeight(){return this.isTiled?this.fileDirectory.TileLength:"undefined"!==typeof this.fileDirectory.RowsPerStrip?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}getBlockWidth(){return this.getTileWidth()}getBlockHeight(t){return this.isTiled||(t+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-t*this.getTileHeight()}getBytesPerPixel(){let t=0;for(let e=0;e<this.fileDirectory.BitsPerSample.length;++e)t+=this.getSampleByteSize(e);return t}getSampleByteSize(t){if(t>=this.fileDirectory.BitsPerSample.length)throw new RangeError(`Sample index ${t} is out of range.`);return Math.ceil(this.fileDirectory.BitsPerSample[t]/8)}getReaderForSample(t){const e=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1,r=this.fileDirectory.BitsPerSample[t];switch(e){case 1:if(r<=8)return DataView.prototype.getUint8;if(r<=16)return DataView.prototype.getUint16;if(r<=32)return DataView.prototype.getUint32;break;case 2:if(r<=8)return DataView.prototype.getInt8;if(r<=16)return DataView.prototype.getInt16;if(r<=32)return DataView.prototype.getInt32;break;case 3:switch(r){case 16:return function(t,e){return Object(A["getFloat16"])(this,t,e)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64;default:break}break;default:break}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(t=0){return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1}getBitsPerSample(t=0){return this.fileDirectory.BitsPerSample[t]}getArrayForSample(t,e){const r=this.getSampleFormat(t),n=this.getBitsPerSample(t);return rt(r,n,e)}async getTileOrStrip(t,e,r,n,i){const o=Math.ceil(this.getWidth()/this.getTileWidth()),a=Math.ceil(this.getHeight()/this.getTileHeight());let s;const{tiles:l}=this;let u,c;1===this.planarConfiguration?s=e*o+t:2===this.planarConfiguration&&(s=r*o*a+e*o+t),this.isTiled?(u=this.fileDirectory.TileOffsets[s],c=this.fileDirectory.TileByteCounts[s]):(u=this.fileDirectory.StripOffsets[s],c=this.fileDirectory.StripByteCounts[s]);const h=(await this.source.fetch([{offset:u,length:c}],i))[0];let f;return null!==l&&l[s]?f=l[s]:(f=(async()=>{let t=await n.decode(this.fileDirectory,h);const r=this.getSampleFormat(),i=this.getBitsPerSample();return nt(r,i)&&(t=it(t,r,this.planarConfiguration,this.getSamplesPerPixel(),i,this.getTileWidth(),this.getBlockHeight(e))),t})(),null!==l&&(l[s]=f)),{x:t,y:e,sample:r,data:await f}}async _readRaster(t,e,r,n,i,o,a,s,l){const u=this.getTileWidth(),c=this.getTileHeight(),h=this.getWidth(),f=this.getHeight(),p=Math.max(Math.floor(t[0]/u),0),d=Math.min(Math.ceil(t[2]/u),Math.ceil(h/u)),g=Math.max(Math.floor(t[1]/c),0),y=Math.min(Math.ceil(t[3]/c),Math.ceil(f/c)),v=t[2]-t[0];let m=this.getBytesPerPixel();const _=[],b=[];for(let O=0;O<e.length;++O)1===this.planarConfiguration?_.push(et(this.fileDirectory.BitsPerSample,0,e[O])/8):_.push(0),b.push(this.getReaderForSample(e[O]));const x=[],{littleEndian:w}=this;for(let O=g;O<y;++O)for(let o=p;o<d;++o)for(let a=0;a<e.length;++a){const s=a,p=e[a];2===this.planarConfiguration&&(m=this.getSampleByteSize(a));const d=this.getTileOrStrip(o,O,p,i,l);x.push(d),d.then(i=>{const o=i.data,a=new DataView(o),l=this.getBlockHeight(i.y),p=i.y*c,d=i.x*u,g=p+l,y=(i.x+1)*u,x=b[s],O=Math.min(l,l-(g-t[3]),f-p),E=Math.min(u,u-(y-t[2]),h-d);for(let c=Math.max(0,t[1]-p);c<O;++c)for(let i=Math.max(0,t[0]-d);i<E;++i){const o=(c*u+i)*m,l=x.call(a,o+_[s],w);let h;n?(h=(c+p-t[1])*v*e.length+(i+d-t[0])*e.length+s,r[h]=l):(h=(c+p-t[1])*v+i+d-t[0],r[s][h]=l)}})}if(await Promise.all(x),o&&t[2]-t[0]!==o||a&&t[3]-t[1]!==a){let i;return i=n?tt(r,t[2]-t[0],t[3]-t[1],o,a,e.length,s):J(r,t[2]-t[0],t[3]-t[1],o,a,s),i.width=o,i.height=a,i}return r.width=o||t[2]-t[0],r.height=a||t[3]-t[1],r}async readRasters({window:t,samples:e=[],interleave:r,pool:n=null,width:i,height:o,resampleMethod:a,fillValue:s,signal:l}={}){const u=t||[0,0,this.getWidth(),this.getHeight()];if(u[0]>u[2]||u[1]>u[3])throw new Error("Invalid subsets");const c=u[2]-u[0],h=u[3]-u[1],f=c*h,p=this.getSamplesPerPixel();if(e&&e.length){for(let v=0;v<e.length;++v)if(e[v]>=p)return Promise.reject(new RangeError(`Invalid sample index '${e[v]}'.`))}else for(let v=0;v<p;++v)e.push(v);let d;if(r){const t=this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,r=Math.max.apply(null,this.fileDirectory.BitsPerSample);d=rt(t,r,f*e.length),s&&d.fill(s)}else{d=[];for(let t=0;t<e.length;++t){const r=this.getArrayForSample(e[t],f);Array.isArray(s)&&t<s.length?r.fill(s[t]):s&&!Array.isArray(s)&&r.fill(s),d.push(r)}}const g=n||await P(this.fileDirectory),y=await this._readRaster(u,e,d,r,g,i,o,a,l);return y}async readRGB({window:t,interleave:e=!0,pool:r=null,width:n,height:i,resampleMethod:o,enableAlpha:a=!1,signal:s}={}){const l=t||[0,0,this.getWidth(),this.getHeight()];if(l[0]>l[2]||l[1]>l[3])throw new Error("Invalid subsets");const u=this.fileDirectory.PhotometricInterpretation;if(u===D["j"].RGB){let l=[0,1,2];if(this.fileDirectory.ExtraSamples!==D["a"].Unspecified&&a){l=[];for(let t=0;t<this.fileDirectory.BitsPerSample.length;t+=1)l.push(t)}return this.readRasters({window:t,interleave:e,samples:l,pool:r,width:n,height:i,resampleMethod:o,signal:s})}let c;switch(u){case D["j"].WhiteIsZero:case D["j"].BlackIsZero:case D["j"].Palette:c=[0];break;case D["j"].CMYK:c=[0,1,2,3];break;case D["j"].YCbCr:case D["j"].CIELab:c=[0,1,2];break;default:throw new Error("Invalid or unsupported photometric interpretation.")}const h={window:l,interleave:!0,samples:c,pool:r,width:n,height:i,resampleMethod:o,signal:s},{fileDirectory:f}=this,p=await this.readRasters(h),d=2**this.fileDirectory.BitsPerSample[0];let g;switch(u){case D["j"].WhiteIsZero:g=G(p,d);break;case D["j"].BlackIsZero:g=N(p,d);break;case D["j"].Palette:g=z(p,f.ColorMap);break;case D["j"].CMYK:g=U(p);break;case D["j"].YCbCr:g=B(p);break;case D["j"].CIELab:g=H(p);break;default:throw new Error("Unsupported photometric interpretation.")}if(!e){const t=new Uint8Array(g.length/3),e=new Uint8Array(g.length/3),r=new Uint8Array(g.length/3);for(let n=0,i=0;n<g.length;n+=3,++i)t[i]=g[n],e[i]=g[n+1],r[i]=g[n+2];g=[t,e,r]}return g.width=p.width,g.height=p.height,g}getTiePoints(){if(!this.fileDirectory.ModelTiepoint)return[];const t=[];for(let e=0;e<this.fileDirectory.ModelTiepoint.length;e+=6)t.push({i:this.fileDirectory.ModelTiepoint[e],j:this.fileDirectory.ModelTiepoint[e+1],k:this.fileDirectory.ModelTiepoint[e+2],x:this.fileDirectory.ModelTiepoint[e+3],y:this.fileDirectory.ModelTiepoint[e+4],z:this.fileDirectory.ModelTiepoint[e+5]});return t}getGDALMetadata(t=null){const e={};if(!this.fileDirectory.GDAL_METADATA)return null;const r=this.fileDirectory.GDAL_METADATA;let n=k()(r,"Item");n=null===t?n.filter(t=>void 0===I()(t,"sample")):n.filter(e=>Number(I()(e,"sample"))===t);for(let i=0;i<n.length;++i){const t=n[i];e[I()(t,"name")]=t.inner}return e}getGDALNoData(){if(!this.fileDirectory.GDAL_NODATA)return null;const t=this.fileDirectory.GDAL_NODATA;return Number(t.substring(0,t.length-1))}getOrigin(){const t=this.fileDirectory.ModelTiepoint,e=this.fileDirectory.ModelTransformation;if(t&&6===t.length)return[t[3],t[4],t[5]];if(e)return[e[3],e[7],e[11]];throw new Error("The image does not have an affine transformation.")}getResolution(t=null){const e=this.fileDirectory.ModelPixelScale,r=this.fileDirectory.ModelTransformation;if(e)return[e[0],-e[1],e[2]];if(r)return[r[0],r[5],r[10]];if(t){const[e,r,n]=t.getResolution();return[e*t.getWidth()/this.getWidth(),r*t.getHeight()/this.getHeight(),n*t.getWidth()/this.getWidth()]}throw new Error("The image does not have an affine transformation.")}pixelIsArea(){return 1===this.geoKeys.GTRasterTypeGeoKey}getBoundingBox(){const t=this.getOrigin(),e=this.getResolution(),r=t[0],n=t[1],i=r+e[0]*this.getWidth(),o=n+e[1]*this.getHeight();return[Math.min(r,i),Math.min(n,o),Math.max(r,i),Math.max(n,o)]}}var at=ot;class st{constructor(t){this._dataView=new DataView(t)}get buffer(){return this._dataView.buffer}getUint64(t,e){const r=this.getUint32(t,e),n=this.getUint32(t+4,e);let i;if(e){if(i=r+2**32*n,!Number.isSafeInteger(i))throw new Error(i+" exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return i}if(i=2**32*r+n,!Number.isSafeInteger(i))throw new Error(i+" exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return i}getInt64(t,e){let r=0;const n=(128&this._dataView.getUint8(t+(e?7:0)))>0;let i=!0;for(let o=0;o<8;o++){let a=this._dataView.getUint8(t+(e?o:7-o));n&&(i?0!==a&&(a=255&~(a-1),i=!1):a=255&~a),r+=a*256**o}return n&&(r=-r),r}getUint8(t,e){return this._dataView.getUint8(t,e)}getInt8(t,e){return this._dataView.getInt8(t,e)}getUint16(t,e){return this._dataView.getUint16(t,e)}getInt16(t,e){return this._dataView.getInt16(t,e)}getUint32(t,e){return this._dataView.getUint32(t,e)}getInt32(t,e){return this._dataView.getInt32(t,e)}getFloat16(t,e){return Object(A["getFloat16"])(this._dataView,t,e)}getFloat32(t,e){return this._dataView.getFloat32(t,e)}getFloat64(t,e){return this._dataView.getFloat64(t,e)}}class lt{constructor(t,e,r,n){this._dataView=new DataView(t),this._sliceOffset=e,this._littleEndian=r,this._bigTiff=n}get sliceOffset(){return this._sliceOffset}get sliceTop(){return this._sliceOffset+this.buffer.byteLength}get littleEndian(){return this._littleEndian}get bigTiff(){return this._bigTiff}get buffer(){return this._dataView.buffer}covers(t,e){return this.sliceOffset<=t&&this.sliceTop>=t+e}readUint8(t){return this._dataView.getUint8(t-this._sliceOffset,this._littleEndian)}readInt8(t){return this._dataView.getInt8(t-this._sliceOffset,this._littleEndian)}readUint16(t){return this._dataView.getUint16(t-this._sliceOffset,this._littleEndian)}readInt16(t){return this._dataView.getInt16(t-this._sliceOffset,this._littleEndian)}readUint32(t){return this._dataView.getUint32(t-this._sliceOffset,this._littleEndian)}readInt32(t){return this._dataView.getInt32(t-this._sliceOffset,this._littleEndian)}readFloat32(t){return this._dataView.getFloat32(t-this._sliceOffset,this._littleEndian)}readFloat64(t){return this._dataView.getFloat64(t-this._sliceOffset,this._littleEndian)}readUint64(t){const e=this.readUint32(t),r=this.readUint32(t+4);let n;if(this._littleEndian){if(n=e+2**32*r,!Number.isSafeInteger(n))throw new Error(n+" exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return n}if(n=2**32*e+r,!Number.isSafeInteger(n))throw new Error(n+" exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return n}readInt64(t){let e=0;const r=(128&this._dataView.getUint8(t+(this._littleEndian?7:0)))>0;let n=!0;for(let i=0;i<8;i++){let o=this._dataView.getUint8(t+(this._littleEndian?i:7-i));r&&(n?0!==o&&(o=255&~(o-1),n=!1):o=255&~o),e+=o*256**i}return r&&(e=-e),e}readOffset(t){return this._bigTiff?this.readUint64(t):this.readUint32(t)}}const ut="\r\n\r\n";function ct(t){if("undefined"!==typeof Object.fromEntries)return Object.fromEntries(t);const e={};for(const[r,n]of t)e[r.toLowerCase()]=n;return e}function ht(t){const e=t.split("\r\n").map(t=>{const e=t.split(":").map(t=>t.trim());return e[0]=e[0].toLowerCase(),e});return ct(e)}function ft(t){const[e,...r]=t.split(";").map(t=>t.trim()),n=r.map(t=>t.split("="));return{type:e,params:ct(n)}}function pt(t){let e,r,n;return t&&([,e,r,n]=t.match(/bytes (\d+)-(\d+)\/(\d+)/),e=parseInt(e,10),r=parseInt(r,10),n=parseInt(n,10)),{start:e,end:r,total:n}}function dt(t,e){let r=null;const n=new TextDecoder("ascii"),i=[],o="--"+e,a=o+"--";for(let s=0;s<10;++s){const e=n.decode(new Uint8Array(t,s,o.length));e===o&&(r=s)}if(null===r)throw new Error("Could not find initial boundary");while(r<t.byteLength){const e=n.decode(new Uint8Array(t,r,Math.min(o.length+1024,t.byteLength-r)));if(0===e.length||e.startsWith(a))break;if(!e.startsWith(o))throw new Error("Part does not start with boundary");const s=e.substr(o.length+2);if(0===s.length)break;const l=s.indexOf(ut),u=ht(s.substr(0,l)),{start:c,end:h,total:f}=pt(u["content-range"]),p=r+o.length+l+ut.length,d=parseInt(h,10)+1-parseInt(c,10);i.push({headers:u,data:t.slice(p,p+d),offset:c,length:d,fileSize:f}),r=p+d+4}return i}var gt=r("b39d"),yt=r("efee"),vt=r.n(yt),mt=r("ae75");class _t{constructor(t,e,r=null){this.offset=t,this.length=e,this.data=r}get top(){return this.offset+this.length}}class bt{constructor(t,e,r){this.offset=t,this.length=e,this.blockIds=r}}class xt extends gt["a"]{constructor(t,{blockSize:e=65536,cacheSize:r=100}={}){super(),this.source=t,this.blockSize=e,this.blockCache=new vt.a({max:r}),this.blockRequests=new Map,this.blockIdsToFetch=new Set}get fileSize(){return this.source.fileSize}async fetch(t,e){const r=new Map,n=new Map,i=new Set;for(const{offset:l,length:u}of t){let t=l+u;const{fileSize:e}=this;null!==e&&(t=Math.min(t,e));const o=Math.floor(l/this.blockSize)*this.blockSize;for(let a=o;a<t;a+=this.blockSize){const t=Math.floor(a/this.blockSize);this.blockCache.has(t)?r.set(t,this.blockCache.get(t)):this.blockRequests.has(t)?n.set(t,this.blockRequests.get(t)):(this.blockIdsToFetch.has(t)||this.blockIdsToFetch.add(t),i.add(t))}}await Object(mt["h"])(),this.fetchBlocks(e);for(const l of i){const t=this.blockRequests.get(l),e=this.blockCache.get(l);if(t)n.set(l,t);else{if(!e)throw new Error(`Block ${l} is not in the block requests`);r.set(l,e)}}let o=await Promise.allSettled(Array.from(n.values()));if(o.some(t=>"rejected"===t.status)){const t=new Set;for(const[r,i]of Object(mt["i"])(n.keys(),o)){const{rejected:n,reason:o}=i;n&&"AbortError"===o.name&&o.signal!==e&&(this.blockIdsToFetch.add(r),t.add(r))}if(this.blockIdsToFetch.length>0){this.fetchBlocks(e);for(const e of t){const t=this.blockRequests.get(e);if(!t)throw new Error(`Block ${e} is not in the block requests`);n.set(e,t)}o=await Promise.allSettled(Array.from(n.values()))}}if(o.some(t=>"rejected"===t.status)){if(e&&e.aborted)throw new mt["a"]("Request was aborted");throw new mt["b"](o.filter(t=>"rejected"===t.status).map(t=>t.reason),"Request failed")}const a=o.map(t=>t.value),s=new Map(Object(mt["i"])(Array.from(n.keys()),a));for(const[l,u]of r)s.set(l,u);return this.readSliceData(t,s)}fetchBlocks(t){if(this.blockIdsToFetch.size>0){const e=this.groupBlocks(this.blockIdsToFetch),r=this.source.fetch(e,t);for(let n=0;n<e.length;++n){const i=e[n];for(const e of i.blockIds){const i=(async()=>{try{const t=(await r)[n],i=e*this.blockSize,o=i-t.offset,a=Math.min(o+this.blockSize,t.data.byteLength),s=t.data.slice(o,a),l=new _t(i,s.byteLength,s);return this.blockCache.set(e,l),l}catch(i){throw"AbortError"===i.name&&(i.signal=t),i}finally{this.blockRequests.delete(e)}})();this.blockRequests.set(e,i)}}this.blockIdsToFetch.clear()}}groupBlocks(t){const e=Array.from(t).sort((t,e)=>t-e);if(0===e.length)return[];let r=[],n=null;const i=[];for(const o of e)null===n||n+1===o?(r.push(o),n=o):(i.push(new bt(r[0]*this.blockSize,r.length*this.blockSize,r)),r=[o],n=o);return i.push(new bt(r[0]*this.blockSize,r.length*this.blockSize,r)),i}readSliceData(t,e){return t.map(t=>{const r=t.offset+t.length,n=Math.floor(t.offset/this.blockSize),i=Math.floor((t.offset+t.length)/this.blockSize),o=new ArrayBuffer(t.length),a=new Uint8Array(o);for(let s=n;s<=i;++s){const n=e.get(s),i=n.offset-t.offset,o=n.top-r;let l,u=0,c=0;i<0?u=-i:i>0&&(c=i),l=o<0?n.length-u:r-n.offset-u;const h=new Uint8Array(n.data,u,l);a.set(h,c)}return o})}}var wt=r("3005");class Ot extends wt["b"]{constructor(t){super(),this.response=t}get status(){return this.response.status}getHeader(t){return this.response.headers.get(t)}async getData(){const t=this.response.arrayBuffer?await this.response.arrayBuffer():(await this.response.buffer()).buffer;return t}}class Et extends wt["a"]{constructor(t,e){super(t),this.credentials=e}async request({headers:t,credentials:e,signal:r}={}){const n=await fetch(this.url,{headers:t,credentials:e,signal:r});return new Ot(n)}}class St extends wt["b"]{constructor(t,e){super(),this.xhr=t,this.data=e}get status(){return this.xhr.status}getHeader(t){return this.xhr.getResponseHeader(t)}async getData(){return this.data}}class Tt extends wt["a"]{constructRequest(t,e){return new Promise((r,n)=>{const i=new XMLHttpRequest;i.open("GET",this.url),i.responseType="arraybuffer";for(const[e,o]of Object.entries(t))i.setRequestHeader(e,o);i.onload=()=>{const t=i.response;r(new St(i,t))},i.onerror=n,i.onabort=()=>n(new mt["a"]("Request aborted")),i.send(),e&&(e.aborted&&i.abort(),e.addEventListener("abort",()=>i.abort()))})}async request({headers:t,signal:e}={}){const r=await this.constructRequest(t,e);return r}}var Ct=r("698b");class Pt extends gt["a"]{constructor(t,e,r,n){super(),this.client=t,this.headers=e,this.maxRanges=r,this.allowFullFile=n,this._fileSize=null}async fetch(t,e){return this.maxRanges>=t.length?this.fetchSlices(t,e):(this.maxRanges>0&&t.length,Promise.all(t.map(t=>this.fetchSlice(t,e))))}async fetchSlices(t,e){const r=await this.client.request({headers:{...this.headers,Range:"bytes="+t.map(({offset:t,length:e})=>`${t}-${t+e}`).join(",")},signal:e});if(r.ok){if(206===r.status){const{type:n,params:i}=ft(r.getHeader("content-type"));if("multipart/byteranges"===n){const t=dt(await r.getData(),i.boundary);return this._fileSize=t[0].fileSize||null,t}const o=await r.getData(),{start:a,end:s,total:l}=pt(r.getHeader("content-range"));this._fileSize=l||null;const u=[{data:o,offset:a,length:s-a}];if(t.length>1){const r=await Promise.all(t.slice(1).map(t=>this.fetchSlice(t,e)));return u.concat(r)}return u}{if(!this.allowFullFile)throw new Error("Server responded with full file");const t=await r.getData();return this._fileSize=t.byteLength,[{data:t,offset:0,length:t.byteLength}]}}throw new Error("Error fetching data.")}async fetchSlice(t,e){const{offset:r,length:n}=t,i=await this.client.request({headers:{...this.headers,Range:`bytes=${r}-${r+n}`},signal:e});if(i.ok){if(206===i.status){const t=await i.getData(),{total:e}=pt(i.getHeader("content-range"));return this._fileSize=e||null,{data:t,offset:r,length:n}}{if(!this.allowFullFile)throw new Error("Server responded with full file");const t=await i.getData();return this._fileSize=t.byteLength,{data:t,offset:0,length:t.byteLength}}}throw new Error("Error fetching data.")}get fileSize(){return this._fileSize}}function jt(t,{blockSize:e,cacheSize:r}){return null===e?t:new xt(t,e,r)}function Rt(t,{headers:e={},credentials:r,maxRanges:n=0,allowFullFile:i=!1,...o}={}){const a=new Et(t,r),s=new Pt(a,e,n,i);return jt(s,o)}function Mt(t,{headers:e={},maxRanges:r=0,allowFullFile:n=!1,...i}={}){const o=new Tt(t),a=new Pt(o,e,r,n);return jt(a,i)}function At(t,{headers:e={},maxRanges:r=0,allowFullFile:n=!1,...i}={}){const o=new Ct["a"](t),a=new Pt(o,e,r,n);return jt(a,i)}function Lt(t,{forceXHR:e=!1,...r}={}){return"function"!==typeof fetch||e?"undefined"!==typeof XMLHttpRequest?Mt(t,r):At(t,r):Rt(t,r)}gt["a"];class It extends gt["a"]{constructor(t){super(),this.file=t}async fetchSlice(t,e){return new Promise((r,n)=>{const i=this.file.slice(t.offset,t.offset+t.length),o=new FileReader;o.onload=t=>r(t.target.result),o.onerror=n,o.onabort=n,o.readAsArrayBuffer(i),e&&e.addEventListener("abort",()=>o.abort())})}}function Ft(t){return new It(t)}r("2d75");const kt=Object(mt["f"])(D["e"]),Dt=Object(mt["f"])(D["i"]),Gt={};Object(mt["c"])(Gt,kt),Object(mt["c"])(Gt,Dt);Object(mt["f"])(D["g"]);const Nt={nextZero:(t,e)=>{let r=e;while(0!==t[r])r++;return r},readUshort:(t,e)=>t[e]<<8|t[e+1],readShort:(t,e)=>{const r=Nt.ui8;return r[0]=t[e+1],r[1]=t[e+0],Nt.i16[0]},readInt:(t,e)=>{const r=Nt.ui8;return r[0]=t[e+3],r[1]=t[e+2],r[2]=t[e+1],r[3]=t[e+0],Nt.i32[0]},readUint:(t,e)=>{const r=Nt.ui8;return r[0]=t[e+3],r[1]=t[e+2],r[2]=t[e+1],r[3]=t[e+0],Nt.ui32[0]},readASCII:(t,e,r)=>r.map(r=>String.fromCharCode(t[e+r])).join(""),readFloat:(t,e)=>{const r=Nt.ui8;return Object(mt["g"])(4,n=>{r[n]=t[e+3-n]}),Nt.fl32[0]},readDouble:(t,e)=>{const r=Nt.ui8;return Object(mt["g"])(8,n=>{r[n]=t[e+7-n]}),Nt.fl64[0]},writeUshort:(t,e,r)=>{t[e]=r>>8&255,t[e+1]=255&r},writeUint:(t,e,r)=>{t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=r>>0&255},writeASCII:(t,e,r)=>{Object(mt["g"])(r.length,n=>{t[e+n]=r.charCodeAt(n)})},ui8:new Uint8Array(8)};Nt.fl64=new Float64Array(Nt.ui8.buffer),Nt.writeDouble=(t,e,r)=>{Nt.fl64[0]=r,Object(mt["g"])(8,r=>{t[e+r]=Nt.ui8[7-r]})};function zt(t){switch(t){case D["h"].BYTE:case D["h"].ASCII:case D["h"].SBYTE:case D["h"].UNDEFINED:return 1;case D["h"].SHORT:case D["h"].SSHORT:return 2;case D["h"].LONG:case D["h"].SLONG:case D["h"].FLOAT:case D["h"].IFD:return 4;case D["h"].RATIONAL:case D["h"].SRATIONAL:case D["h"].DOUBLE:case D["h"].LONG8:case D["h"].SLONG8:case D["h"].IFD8:return 8;default:throw new RangeError("Invalid field type: "+t)}}function Ut(t){const e=t.GeoKeyDirectory;if(!e)return null;const r={};for(let n=4;n<=4*e[3];n+=4){const i=D["i"][e[n]],o=e[n+1]?D["e"][e[n+1]]:null,a=e[n+2],s=e[n+3];let l=null;if(o){if(l=t[o],"undefined"===typeof l||null===l)throw new Error(`Could not get value of geoKey '${i}'.`);"string"===typeof l?l=l.substring(s,s+a-1):l.subarray&&(l=l.subarray(s,s+a),1===a&&(l=l[0]))}else l=s;r[i]=l}return r}function Bt(t,e,r,n){let i=null,o=null;const a=zt(e);switch(e){case D["h"].BYTE:case D["h"].ASCII:case D["h"].UNDEFINED:i=new Uint8Array(r),o=t.readUint8;break;case D["h"].SBYTE:i=new Int8Array(r),o=t.readInt8;break;case D["h"].SHORT:i=new Uint16Array(r),o=t.readUint16;break;case D["h"].SSHORT:i=new Int16Array(r),o=t.readInt16;break;case D["h"].LONG:case D["h"].IFD:i=new Uint32Array(r),o=t.readUint32;break;case D["h"].SLONG:i=new Int32Array(r),o=t.readInt32;break;case D["h"].LONG8:case D["h"].IFD8:i=new Array(r),o=t.readUint64;break;case D["h"].SLONG8:i=new Array(r),o=t.readInt64;break;case D["h"].RATIONAL:i=new Uint32Array(2*r),o=t.readUint32;break;case D["h"].SRATIONAL:i=new Int32Array(2*r),o=t.readInt32;break;case D["h"].FLOAT:i=new Float32Array(r),o=t.readFloat32;break;case D["h"].DOUBLE:i=new Float64Array(r),o=t.readFloat64;break;default:throw new RangeError("Invalid field type: "+e)}if(e!==D["h"].RATIONAL&&e!==D["h"].SRATIONAL)for(let s=0;s<r;++s)i[s]=o.call(t,n+s*a);else for(let s=0;s<r;s+=2)i[s]=o.call(t,n+s*a),i[s+1]=o.call(t,n+(s*a+4));return e===D["h"].ASCII?new TextDecoder("utf-8").decode(i):i}class Vt{constructor(t,e,r){this.fileDirectory=t,this.geoKeyDirectory=e,this.nextIFDByteOffset=r}}class Xt extends Error{constructor(t){super("No image at index "+t),this.index=t}}class Wt{async readRasters(t={}){const{window:e,width:r,height:n}=t;let{resX:i,resY:o,bbox:a}=t;const s=await this.getImage();let l=s;const u=await this.getImageCount(),c=s.getBoundingBox();if(e&&a)throw new Error('Both "bbox" and "window" passed.');if(r||n){if(e){const[t,r]=s.getOrigin(),[n,i]=s.getResolution();a=[t+e[0]*n,r+e[1]*i,t+e[2]*n,r+e[3]*i]}const t=a||c;if(r){if(i)throw new Error("Both width and resX passed");i=(t[2]-t[0])/r}if(n){if(o)throw new Error("Both width and resY passed");o=(t[3]-t[1])/n}}if(i||o){const t=[];for(let e=0;e<u;++e){const r=await this.getImage(e),{SubfileType:n,NewSubfileType:i}=r.fileDirectory;(0===e||2===n||1&i)&&t.push(r)}t.sort((t,e)=>t.getWidth()-e.getWidth());for(let e=0;e<t.length;++e){const r=t[e],n=(c[2]-c[0])/r.getWidth(),a=(c[3]-c[1])/r.getHeight();if(l=r,i&&i>n||o&&o>a)break}}let h=e;if(a){const[t,e]=s.getOrigin(),[r,n]=l.getResolution(s);h=[Math.round((a[0]-t)/r),Math.round((a[1]-e)/n),Math.round((a[2]-t)/r),Math.round((a[3]-e)/n)],h=[Math.min(h[0],h[2]),Math.min(h[1],h[3]),Math.max(h[0],h[2]),Math.max(h[1],h[3])]}return l.readRasters({...t,window:h})}}class Ht extends Wt{constructor(t,e,r,n,i={}){super(),this.source=t,this.littleEndian=e,this.bigTiff=r,this.firstIFDOffset=n,this.cache=i.cache||!1,this.ifdRequests=[],this.ghostValues=null}async getSlice(t,e){const r=this.bigTiff?4048:1024;return new lt((await this.source.fetch([{offset:t,length:"undefined"!==typeof e?e:r}]))[0],t,this.littleEndian,this.bigTiff)}async parseFileDirectoryAt(t){const e=this.bigTiff?20:12,r=this.bigTiff?8:2;let n=await this.getSlice(t);const i=this.bigTiff?n.readUint64(t):n.readUint16(t),o=i*e+(this.bigTiff?16:6);n.covers(t,o)||(n=await this.getSlice(t,o));const a={};let s=t+(this.bigTiff?8:2);for(let c=0;c<i;s+=e,++c){const t=n.readUint16(s),e=n.readUint16(s+2),r=this.bigTiff?n.readUint64(s+4):n.readUint32(s+4);let i,o;const l=zt(e),u=s+(this.bigTiff?12:8);if(l*r<=(this.bigTiff?8:4))i=Bt(n,e,r,u);else{const t=n.readOffset(u),o=zt(e)*r;if(n.covers(t,o))i=Bt(n,e,r,t);else{const n=await this.getSlice(t,o);i=Bt(n,e,r,t)}}o=1===r&&-1===D["d"].indexOf(t)&&e!==D["h"].RATIONAL&&e!==D["h"].SRATIONAL?i[0]:i,a[D["e"][t]]=o}const l=Ut(a),u=n.readOffset(t+r+e*i);return new Vt(a,l,u)}async requestIFD(t){if(this.ifdRequests[t])return this.ifdRequests[t];if(0===t)return this.ifdRequests[t]=this.parseFileDirectoryAt(this.firstIFDOffset),this.ifdRequests[t];if(!this.ifdRequests[t-1])try{this.ifdRequests[t-1]=this.requestIFD(t-1)}catch(e){if(e instanceof Xt)throw new Xt(t);throw e}return this.ifdRequests[t]=(async()=>{const e=await this.ifdRequests[t-1];if(0===e.nextIFDByteOffset)throw new Xt(t);return this.parseFileDirectoryAt(e.nextIFDByteOffset)})(),this.ifdRequests[t]}async getImage(t=0){const e=await this.requestIFD(t);return new at(e.fileDirectory,e.geoKeyDirectory,this.dataView,this.littleEndian,this.cache,this.source)}async getImageCount(){let t=0,e=!0;while(e)try{await this.requestIFD(t),++t}catch(r){if(!(r instanceof Xt))throw r;e=!1}return t}async getGhostValues(){const t=this.bigTiff?16:8;if(this.ghostValues)return this.ghostValues;const e="GDAL_STRUCTURAL_METADATA_SIZE=",r=e.length+100;let n=await this.getSlice(t,r);if(e===Bt(n,D["h"].ASCII,e.length,t)){const e=Bt(n,D["h"].ASCII,r,t),i=e.split("\n")[0],o=Number(i.split("=")[1].split(" ")[0])+i.length;o>r&&(n=await this.getSlice(t,o));const a=Bt(n,D["h"].ASCII,o,t);this.ghostValues={},a.split("\n").filter(t=>t.length>0).map(t=>t.split("=")).forEach(([t,e])=>{this.ghostValues[t]=e})}return this.ghostValues}static async fromSource(t,e,r){const n=(await t.fetch([{offset:0,length:1024}],r))[0],i=new st(n),o=i.getUint16(0,0);let a;if(18761===o)a=!0;else{if(19789!==o)throw new TypeError("Invalid byte order value.");a=!1}const s=i.getUint16(2,a);let l;if(42===s)l=!1;else{if(43!==s)throw new TypeError("Invalid magic number.");{l=!0;const t=i.getUint16(4,a);if(8!==t)throw new Error("Unsupported offset byte-size.")}}const u=l?i.getUint64(8,a):i.getUint32(4,a);return new Ht(t,a,l,u,e)}close(){return"function"===typeof this.source.close&&this.source.close()}}class Yt extends Wt{constructor(t,e){super(),this.mainFile=t,this.overviewFiles=e,this.imageFiles=[t].concat(e),this.fileDirectoriesPerFile=null,this.fileDirectoriesPerFileParsing=null,this.imageCount=null}async parseFileDirectoriesPerFile(){const t=[this.mainFile.parseFileDirectoryAt(this.mainFile.firstIFDOffset)].concat(this.overviewFiles.map(t=>t.parseFileDirectoryAt(t.firstIFDOffset)));return this.fileDirectoriesPerFile=await Promise.all(t),this.fileDirectoriesPerFile}async getImage(t=0){await this.getImageCount(),await this.parseFileDirectoriesPerFile();let e=0,r=0;for(let n=0;n<this.imageFiles.length;n++){const i=this.imageFiles[n];for(let o=0;o<this.imageCounts[n];o++){if(t===e){const t=await i.requestIFD(r);return new at(t.fileDirectory,t.geoKeyDirectory,i.dataView,i.littleEndian,i.cache,i.source)}e++,r++}r=0}throw new RangeError("Invalid image index")}async getImageCount(){if(null!==this.imageCount)return this.imageCount;const t=[this.mainFile.getImageCount()].concat(this.overviewFiles.map(t=>t.getImageCount()));return this.imageCounts=await Promise.all(t),this.imageCount=this.imageCounts.reduce((t,e)=>t+e,0),this.imageCount}}async function qt(t,e={},r){return Ht.fromSource(Lt(t,e),r)}async function Kt(t,e){return Ht.fromSource(Ft(t),e)}async function Zt(t,e=[],r={},n){const i=await Ht.fromSource(Lt(t,r),n),o=await Promise.all(e.map(t=>Ht.fromSource(Lt(t,r))));return new Yt(i,o)}var Jt,$t=r("256f"),Qt=r("7fc9"),te=r("fced"),ee=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),re="STATISTICS_MAXIMUM",ne="STATISTICS_MINIMUM";function ie(){return Jt||(Jt=new M),Jt}function oe(t){try{return t.getBoundingBox()}catch(r){var e=t.fileDirectory;return[0,0,e.ImageWidth,e.ImageLength]}}function ae(t){try{return t.getOrigin().slice(0,2)}catch(e){return[0,t.fileDirectory.ImageLength]}}function se(t,e){try{return t.getResolution(e)}catch(r){return[e.fileDirectory.ImageWidth/t.fileDirectory.ImageWidth,e.fileDirectory.ImageHeight/t.fileDirectory.ImageHeight]}}function le(t){var e=t.geoKeys;if(!e)return null;if(e.ProjectedCSTypeGeoKey){var r="EPSG:"+e.ProjectedCSTypeGeoKey,n=Object($t["get"])(r);if(!n){var i=Object(te["c"])(e.ProjLinearUnitsGeoKey);i&&(n=new $t["Projection"]({code:r,units:i}))}return n}if(e.GeographicTypeGeoKey){r="EPSG:"+e.GeographicTypeGeoKey,n=Object($t["get"])(r);if(!n){i=Object(te["c"])(e.GeogAngularUnitsGeoKey);i&&(n=new $t["Projection"]({code:r,units:i}))}return n}return null}function ue(t){return t.getImageCount().then((function(e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t.getImage(n);return Promise.all(r)}))}function ce(t,e){var r;return r=t.blob?Kt(t.blob):t.overviews?Zt(t.url,t.overviews,e):qt(t.url,e),r.then(ue)}function he(t,e,r,n,i){if(Array.isArray(t)){var o=t.length;if(!Array.isArray(e)||o!=e.length){var a=new Error(n);throw i(a),a}for(var s=0;s<o;++s)he(t[s],e[s],r,n,i)}else if(e=e,Math.abs(t-e)>r*t)throw new Error(n)}function fe(t){return t instanceof Int8Array?-128:t instanceof Int16Array?-32768:t instanceof Int32Array?-2147483648:t instanceof Float32Array?12e-39:0}function pe(t){return t instanceof Int8Array?127:t instanceof Uint8Array||t instanceof Uint8ClampedArray?255:t instanceof Int16Array?32767:t instanceof Uint16Array?65535:t instanceof Int32Array?2147483647:t instanceof Uint32Array?4294967295:t instanceof Float32Array?34e37:255}var de=function(t){function e(e){var r=t.call(this,{state:"loading",tileGrid:null,projection:null,opaque:e.opaque,transition:e.transition,interpolate:!1!==e.interpolate,wrapX:e.wrapX})||this;r.sourceInfo_=e.sources;var n=r.sourceInfo_.length;r.sourceOptions_=e.sourceOptions,r.sourceImagery_=new Array(n),r.resolutionFactors_=new Array(n),r.samplesPerPixel_,r.nodataValues_,r.metadata_,r.normalize_=!1!==e.normalize,r.addAlpha_=!1,r.error_=null,r.readMethod_=e.convertToRGB?"readRGB":"readRasters",r.setKey(r.sourceInfo_.map((function(t){return t.url})).join(","));for(var i=r,o=new Array(n),a=0;a<n;++a)o[a]=ce(r.sourceInfo_[a],r.sourceOptions_);return Promise.all(o).then((function(t){i.configure_(t)})).catch((function(t){console.error(t),i.error_=t,i.setState("error")})),r}return ee(e,t),e.prototype.getError=function(){return this.error_},e.prototype.configure_=function(t){for(var e,r,n,o,a,s=new Array(t.length),l=new Array(t.length),u=new Array(t.length),c=0,h=t.length,f=function(h){var f=t[h],d=f.length,g=void 0,y=void 0,v=new Array(d),m=new Array(d),_=new Array(d);l[h]=new Array(d),u[h]=new Array(d);for(var b=0;b<d;++b){var x=f[b],w=x.getGDALNoData();u[h][b]=x.getGDALMetadata(0),l[h][b]=w;var O=p.sourceInfo_[h].bands;s[h]=O?O.length:x.getSamplesPerPixel();var E=d-(b+1);g||(g=oe(x)),y||(y=ae(x));var S=se(x,f[0]);_[E]=S[0];var T=[x.getTileWidth(),x.getTileHeight()];v[E]=T;var C=S[0]/Math.abs(S[1]);m[E]=[T[0],T[1]/C]}if(e?Object(i["getIntersection"])(e,g,e):e=g,r){var P="Origin mismatch for source ".concat(h,", got [").concat(y,"] but expected [").concat(r,"]");he(r,y,0,P,p.viewRejector)}else r=y;if(a){a.length-c>_.length&&(c=a.length-_.length);var j=a[a.length-1]/_[_.length-1];p.resolutionFactors_[h]=j;var R=_.map((function(t){return t*j}));P="Resolution mismatch for source ".concat(h,", got [").concat(R,"] but expected [").concat(a,"]");he(a.slice(c,a.length),R,.02,P,p.viewRejector)}else a=_,p.resolutionFactors_[h]=1;n?he(n.slice(c,n.length),m,.01,"Tile size mismatch for source ".concat(h),p.viewRejector):n=m,o?he(o.slice(c,o.length),v,0,"Tile size mismatch for source ".concat(h),p.viewRejector):o=v,p.sourceImagery_[h]=f.reverse()},p=this,d=0;d<h;++d)f(d);for(var g=0,y=this.sourceImagery_.length;g<y;++g){var v=this.sourceImagery_[g];while(v.length<a.length)v.unshift(void 0)}if(!this.getProjection()){var m=t[0];for(g=m.length-1;g>=0;--g){var _=m[g],b=le(_);if(b){this.projection=b;break}}}this.samplesPerPixel_=s,this.nodataValues_=l,this.metadata_=u;t:for(d=0;d<h;++d){if(void 0!==this.sourceInfo_[d].nodata){this.addAlpha_=!0;break}var x=l[d],w=this.sourceInfo_[d].bands;if(w){for(g=0;g<w.length;++g)if(null!==x[w[g]-1]){this.addAlpha_=!0;break t}}else for(var O=0;O<x.length;++O)if(null!==x[O]){this.addAlpha_=!0;break t}}var E=this.addAlpha_?1:0;this.bandCount=s.reduce((function(t,e){return t+=e,t}),0)+E;var T=new S["default"]({extent:e,minZoom:c,origin:r,resolutions:a,tileSizes:n});this.tileGrid=T,this.setTileSizes(o),this.setLoader(this.loadTile_.bind(this)),this.setState("ready"),this.viewResolver({projection:this.projection,resolutions:a,center:Object($t["toUserCoordinate"])(Object(i["getCenter"])(e),this.projection),extent:Object($t["toUserExtent"])(e,this.projection),zoom:0})},e.prototype.loadTile_=function(t,e,r){for(var n=this.getTileSize(t),i=this.sourceImagery_.length,o=new Array(i),a=this.addAlpha_,s=this.bandCount,l=this.samplesPerPixel_,u=this.nodataValues_,c=this.sourceInfo_,h=function(i){var a=c[i],s=f.resolutionFactors_[i],l=[Math.round(e*(n[0]*s)),Math.round(r*(n[1]*s)),Math.round((e+1)*(n[0]*s)),Math.round((r+1)*(n[1]*s))],h=f.sourceImagery_[i][t],p=void 0;a.bands&&(p=a.bands.map((function(t){return t-1})));var d=void 0;d="nodata"in a&&null!==a.nodata?a.nodata:p?p.map((function(t){return u[i][t]})):u[i],o[i]=h[f.readMethod_]({window:l,width:n[0],height:n[1],samples:p,fillValue:d,pool:ie(),interleave:!1})},f=this,p=0;p<i;++p)h(p);var d=n[0]*n[1],g=d*s,y=this.normalize_,v=this.metadata_;return Promise.all(o).then((function(t){var e;e=y?new Uint8Array(g):new Float32Array(g);for(var r=0,n=0;n<d;++n){for(var o=a,s=0;s<i;++s){var h=c[s],f=h.min,p=h.max,m=void 0,_=void 0;if(y){var b=v[s][0];void 0===f&&(f=b&&ne in b?parseFloat(b[ne]):fe(t[s][0])),void 0===p&&(p=b&&re in b?parseFloat(b[re]):pe(t[s][0])),m=255/(p-f),_=-f*m}for(var x=0;x<l[s];++x){var w=t[s][x][n],O=void 0;if(O=y?Object(Qt["b"])(m*w+_,0,255):w,a){var E=h.nodata;if(void 0===E){var S=void 0;S=h.bands?h.bands[x]-1:x,E=u[s][S]}var T=isNaN(E);(!T&&w!==E||T&&!isNaN(w))&&(o=!1,e[r]=O)}else e[r]=O;r++}}a&&(o||(e[r]=255),r++)}return e})).catch((function(t){throw console.error(t),t}))},e}(E);de.prototype.getView;var ge=de,ye=r("91b1"),ve=r("0414"),me=r("7f98"),_e=r("92fa"),be=r("0999"),xe=r("9cff"),we=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Oe={DEFAULT:"default",TRUNCATED:"truncated"},Ee=function(t){function e(e,r,n,i,o,a,s){var l=t.call(this,r,n,i,o,a,s)||this;return l.zoomifyImage_=null,l.tileSize_=e,l}return we(e,t),e.prototype.getImage=function(){if(this.zoomifyImage_)return this.zoomifyImage_;var e=t.prototype.getImage.call(this);if(this.state==y["a"].LOADED){var r=this.tileSize_;if(e.width==r[0]&&e.height==r[1])return this.zoomifyImage_=e,e;var n=Object(be["a"])(r[0],r[1]);return n.drawImage(e,0,0),this.zoomifyImage_=n.canvas,n.canvas}return e},e}(me["a"]),Se=function(t){function e(e){var r=this,n=e,o=void 0===n.imageSmoothing||n.imageSmoothing;void 0!==n.interpolate&&(o=n.interpolate);var a=n.size,s=void 0!==n.tierSizeCalculation?n.tierSizeCalculation:Oe.DEFAULT,l=n.tilePixelRatio||1,u=a[0],c=a[1],h=[],f=n.tileSize||ve["b"],p=f*l;switch(s){case Oe.DEFAULT:while(u>p||c>p)h.push([Math.ceil(u/p),Math.ceil(c/p)]),p+=p;break;case Oe.TRUNCATED:var d=u,g=c;while(d>p||g>p)h.push([Math.ceil(d/p),Math.ceil(g/p)]),d>>=1,g>>=1;break;default:Object(_e["a"])(!1,53);break}h.push([1,1]),h.reverse();for(var y=[l],v=[0],m=1,_=h.length;m<_;m++)y.push(l<<m),v.push(h[m-1][0]*h[m-1][1]+v[m-1]);y.reverse();var b=new S["default"]({tileSize:f,extent:n.extent||[0,-c,u,0],resolutions:y}),w=n.url;w&&-1==w.indexOf("{TileGroup}")&&-1==w.indexOf("{tileIndex}")&&(w+="{TileGroup}/{z}-{x}-{y}.jpg");var O=Object(xe["c"])(w),E=f*l;function T(t){return function(e,r,n){if(e){var i=e[0],o=e[1],a=e[2],s=o+a*h[i][0],l=(s+v[i])/E|0,u={z:i,x:o,y:a,tileIndex:s,TileGroup:"TileGroup"+l};return t.replace(/\{(\w+?)\}/g,(function(t,e){return u[e]}))}}}var C=Object(xe["b"])(O.map(T)),P=Ee.bind(null,Object(x["d"])(f*l));r=t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:o,projection:n.projection,tilePixelRatio:l,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileClass:P,tileGrid:b,tileUrlFunction:C,transition:n.transition})||this,r.zDirection=n.zDirection;var j=b.getTileCoordForCoordAndResolution(Object(i["getCenter"])(b.getExtent()),y[y.length-1]),R=C(j,1,null),M=new Image;return M.addEventListener("error",function(){E=f,this.changed()}.bind(r)),M.src=R,r}return we(e,t),e}(ye["default"]),Te=Se,Ce=r("9f5e"),Pe=function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},je={VERSION1:"version1",VERSION2:"version2",VERSION3:"version3"},Re={};Re[je.VERSION1]={level0:{supports:[],formats:[],qualities:["native"]},level1:{supports:["regionByPx","sizeByW","sizeByH","sizeByPct"],formats:["jpg"],qualities:["native"]},level2:{supports:["regionByPx","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByWh"],formats:["jpg","png"],qualities:["native","color","grey","bitonal"]}},Re[je.VERSION2]={level0:{supports:[],formats:["jpg"],qualities:["default"]},level1:{supports:["regionByPx","sizeByW","sizeByH","sizeByPct"],formats:["jpg"],qualities:["default"]},level2:{supports:["regionByPx","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByDistortedWh","sizeByWh"],formats:["jpg","png"],qualities:["default","bitonal"]}},Re[je.VERSION3]={level0:{supports:[],formats:["jpg"],qualities:["default"]},level1:{supports:["regionByPx","regionSquare","sizeByW","sizeByH","sizeByWh"],formats:["jpg"],qualities:["default"]},level2:{supports:["regionByPx","regionSquare","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByWh"],formats:["jpg","png"],qualities:["default"]}},Re["none"]={none:{supports:[],formats:[],qualities:[]}};var Me=/^https?:\/\/library\.stanford\.edu\/iiif\/image-api\/(?:1\.1\/)?compliance\.html#level[0-2]$/,Ae=/^https?:\/\/iiif\.io\/api\/image\/2\/level[0-2](?:\.json)?$/,Le=/(^https?:\/\/iiif\.io\/api\/image\/3\/level[0-2](?:\.json)?$)|(^level[0-2]$)/;function Ie(t){var e=t.getComplianceLevelSupportedFeatures();return void 0===e&&(e=Re[je.VERSION1]["level0"]),{url:void 0===t.imageInfo["@id"]?void 0:t.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),supports:e.supports,formats:Pe(Pe([],e.formats,!0),[void 0===t.imageInfo.formats?[]:t.imageInfo.formats],!1),qualities:Pe(Pe([],e.qualities,!0),[void 0===t.imageInfo.qualities?[]:t.imageInfo.qualities],!1),resolutions:t.imageInfo.scale_factors,tileSize:void 0!==t.imageInfo.tile_width?void 0!==t.imageInfo.tile_height?[t.imageInfo.tile_width,t.imageInfo.tile_height]:[t.imageInfo.tile_width,t.imageInfo.tile_width]:void 0!=t.imageInfo.tile_height?[t.imageInfo.tile_height,t.imageInfo.tile_height]:void 0}}function Fe(t){var e=t.getComplianceLevelSupportedFeatures(),r=Array.isArray(t.imageInfo.profile)&&t.imageInfo.profile.length>1,n=r&&t.imageInfo.profile[1].supports?t.imageInfo.profile[1].supports:[],i=r&&t.imageInfo.profile[1].formats?t.imageInfo.profile[1].formats:[],o=r&&t.imageInfo.profile[1].qualities?t.imageInfo.profile[1].qualities:[];return{url:t.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:void 0===t.imageInfo.sizes?void 0:t.imageInfo.sizes.map((function(t){return[t.width,t.height]})),tileSize:void 0===t.imageInfo.tiles?void 0:[t.imageInfo.tiles.map((function(t){return t.width}))[0],t.imageInfo.tiles.map((function(t){return void 0===t.height?t.width:t.height}))[0]],resolutions:void 0===t.imageInfo.tiles?void 0:t.imageInfo.tiles.map((function(t){return t.scaleFactors}))[0],supports:Pe(Pe([],e.supports,!0),n,!0),formats:Pe(Pe([],e.formats,!0),i,!0),qualities:Pe(Pe([],e.qualities,!0),o,!0)}}function ke(t){var e=t.getComplianceLevelSupportedFeatures(),r=void 0===t.imageInfo.extraFormats?e.formats:Pe(Pe([],e.formats,!0),t.imageInfo.extraFormats,!0),n=void 0!==t.imageInfo.preferredFormats&&Array.isArray(t.imageInfo.preferredFormats)&&t.imageInfo.preferredFormats.length>0?t.imageInfo.preferredFormats.filter((function(t){return Object(Ce["f"])(["jpg","png","gif"],t)})).reduce((function(t,e){return void 0===t&&Object(Ce["f"])(r,e)?e:t}),void 0):void 0;return{url:t.imageInfo["id"],sizes:void 0===t.imageInfo.sizes?void 0:t.imageInfo.sizes.map((function(t){return[t.width,t.height]})),tileSize:void 0===t.imageInfo.tiles?void 0:[t.imageInfo.tiles.map((function(t){return t.width}))[0],t.imageInfo.tiles.map((function(t){return t.height}))[0]],resolutions:void 0===t.imageInfo.tiles?void 0:t.imageInfo.tiles.map((function(t){return t.scaleFactors}))[0],supports:void 0===t.imageInfo.extraFeatures?e.supports:Pe(Pe([],e.supports,!0),t.imageInfo.extraFeatures,!0),formats:r,qualities:void 0===t.imageInfo.extraQualities?e.qualities:Pe(Pe([],e.qualities,!0),t.imageInfo.extraQualities,!0),preferredFormat:n}}var De={};De[je.VERSION1]=Ie,De[je.VERSION2]=Fe,De[je.VERSION3]=ke;(function(){function t(t){this.setImageInfo(t)}t.prototype.setImageInfo=function(t){this.imageInfo="string"==typeof t?JSON.parse(t):t},t.prototype.getImageApiVersion=function(){if(void 0!==this.imageInfo){var t=this.imageInfo["@context"]||"ol-no-context";"string"==typeof t&&(t=[t]);for(var e=0;e<t.length;e++)switch(t[e]){case"http://library.stanford.edu/iiif/image-api/1.1/context.json":case"http://iiif.io/api/image/1/context.json":return je.VERSION1;case"http://iiif.io/api/image/2/context.json":return je.VERSION2;case"http://iiif.io/api/image/3/context.json":return je.VERSION3;case"ol-no-context":if(this.getComplianceLevelEntryFromProfile(je.VERSION1)&&this.imageInfo.identifier)return je.VERSION1;break;default:}Object(_e["a"])(!1,61)}},t.prototype.getComplianceLevelEntryFromProfile=function(t){if(void 0!==this.imageInfo&&void 0!==this.imageInfo.profile)switch(void 0===t&&(t=this.getImageApiVersion()),t){case je.VERSION1:if(Me.test(this.imageInfo.profile))return this.imageInfo.profile;break;case je.VERSION3:if(Le.test(this.imageInfo.profile))return this.imageInfo.profile;break;case je.VERSION2:if("string"===typeof this.imageInfo.profile&&Ae.test(this.imageInfo.profile))return this.imageInfo.profile;if(Array.isArray(this.imageInfo.profile)&&this.imageInfo.profile.length>0&&"string"===typeof this.imageInfo.profile[0]&&Ae.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0];break;default:}},t.prototype.getComplianceLevelFromProfile=function(t){var e=this.getComplianceLevelEntryFromProfile(t);if(void 0!==e){var r=e.match(/level[0-2](?:\.json)?$/g);return Array.isArray(r)?r[0].replace(".json",""):void 0}},t.prototype.getComplianceLevelSupportedFeatures=function(){if(void 0!==this.imageInfo){var t=this.getImageApiVersion(),e=this.getComplianceLevelFromProfile(t);return void 0===e?Re["none"]["none"]:Re[t][e]}},t.prototype.getTileSourceOptions=function(t){var e=t||{},r=this.getImageApiVersion();if(void 0!==r){var n=void 0===r?void 0:De[r](this);if(void 0!==n)return{url:n.url,version:r,size:[this.imageInfo.width,this.imageInfo.height],sizes:n.sizes,format:void 0!==e.format&&Object(Ce["f"])(n.formats,e.format)?e.format:void 0!==n.preferredFormat?n.preferredFormat:"jpg",supports:n.supports,quality:e.quality&&Object(Ce["f"])(n.qualities,e.quality)?e.quality:Object(Ce["f"])(n.qualities,"native")?"native":"default",resolutions:Array.isArray(n.resolutions)?n.resolutions.sort((function(t,e){return e-t})):void 0,tileSize:n.tileSize}}}})();var Ge=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function Ne(t){return t.toLocaleString("en",{maximumFractionDigits:10})}var ze=function(t){function e(e){var r=this,n=e||{},o=void 0===n.imageSmoothing||n.imageSmoothing;void 0!==n.interpolate&&(o=n.interpolate);var a=n.url||"";a+=a.lastIndexOf("/")===a.length-1||""===a?"":"/";var s=n.version||je.VERSION2,l=n.sizes||[],u=n.size;Object(_e["a"])(void 0!=u&&Array.isArray(u)&&2==u.length&&!isNaN(u[0])&&u[0]>0&&!isNaN(u[1])&&u[1]>0,60);var c,h,f,p=u[0],d=u[1],g=n.tileSize,y=n.tilePixelRatio||1,v=n.format||"jpg",m=n.quality||(n.version==je.VERSION1?"native":"default"),_=n.resolutions||[],b=n.supports||[],w=n.extent||[0,-d,p,0],O=void 0!=l&&Array.isArray(l)&&l.length>0,E=void 0!==g&&("number"===typeof g&&Number.isInteger(g)&&g>0||Array.isArray(g)&&g.length>0),T=void 0!=b&&Array.isArray(b)&&(Object(Ce["f"])(b,"regionByPx")||Object(Ce["f"])(b,"regionByPct"))&&(Object(Ce["f"])(b,"sizeByWh")||Object(Ce["f"])(b,"sizeByH")||Object(Ce["f"])(b,"sizeByW")||Object(Ce["f"])(b,"sizeByPct"));if(_.sort((function(t,e){return e-t})),E||T)if(void 0!=g&&("number"===typeof g&&Number.isInteger(g)&&g>0?(c=g,h=g):Array.isArray(g)&&g.length>0&&((1==g.length||void 0==g[1]&&Number.isInteger(g[0]))&&(c=g[0],h=g[0]),2==g.length&&(Number.isInteger(g[0])&&Number.isInteger(g[1])?(c=g[0],h=g[1]):void 0==g[0]&&Number.isInteger(g[1])&&(c=g[1],h=g[1])))),void 0!==c&&void 0!==h||(c=ve["b"],h=ve["b"]),0==_.length){f=Math.max(Math.ceil(Math.log(p/c)/Math.LN2),Math.ceil(Math.log(d/h)/Math.LN2));for(var C=f;C>=0;C--)_.push(Math.pow(2,C))}else{var P=Math.max.apply(Math,_);f=Math.round(Math.log(P)/Math.LN2)}else if(c=p,h=d,_=[],O){l.sort((function(t,e){return t[0]-e[0]})),f=-1;var j=[];for(C=0;C<l.length;C++){var R=p/l[C][0];_.length>0&&_[_.length-1]==R?j.push(C):(_.push(R),f++)}if(j.length>0)for(C=0;C<j.length;C++)l.splice(j[C]-C,1)}else _.push(1),l.push([p,d]),f=0;var M=new S["default"]({tileSize:[c,h],extent:w,origin:Object(i["getTopLeft"])(w),resolutions:_}),A=function(t,e,r){var n,i,o=t[0];if(!(o>f)){var u=t[1],g=t[2],y=_[o];if(!(void 0===u||void 0===g||void 0===y||u<0||Math.ceil(p/y/c)<=u||g<0||Math.ceil(d/y/h)<=g)){if(T||E){var x=u*c*y,w=g*h*y,S=c*y,C=h*y,P=c,j=h;if(x+S>p&&(S=p-x),w+C>d&&(C=d-w),x+c*y>p&&(P=Math.floor((p-x+y-1)/y)),w+h*y>d&&(j=Math.floor((d-w+y-1)/y)),0==x&&S==p&&0==w&&C==d)n="full";else if(!T||Object(Ce["f"])(b,"regionByPx"))n=x+","+w+","+S+","+C;else if(Object(Ce["f"])(b,"regionByPct")){var R=Ne(x/p*100),M=Ne(w/d*100),A=Ne(S/p*100),L=Ne(C/d*100);n="pct:"+R+","+M+","+A+","+L}s!=je.VERSION3||T&&!Object(Ce["f"])(b,"sizeByWh")?!T||Object(Ce["f"])(b,"sizeByW")?i=P+",":Object(Ce["f"])(b,"sizeByH")?i=","+j:Object(Ce["f"])(b,"sizeByWh")?i=P+","+j:Object(Ce["f"])(b,"sizeByPct")&&(i="pct:"+Ne(100/y)):i=P+","+j}else if(n="full",O){var I=l[o][0],F=l[o][1];i=s==je.VERSION3?I==p&&F==d?"max":I+","+F:I==p?"full":I+","}else i=s==je.VERSION3?"max":"full";return a+n+"/"+i+"/0/"+m+"."+v}}},L=Ee.bind(null,Object(x["d"])(g||256).map((function(t){return t*y})));return r=t.call(this,{attributions:n.attributions,attributionsCollapsible:n.attributionsCollapsible,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:o,projection:n.projection,reprojectionErrorThreshold:n.reprojectionErrorThreshold,state:n.state,tileClass:L,tileGrid:M,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:A,transition:n.transition})||this,r.zDirection=n.zDirection,r}return Ge(e,t),e}(ye["default"]),Ue=ze,Be=r("2c15"),Ve=r("6611");function Xe(t,e){var r=[];Object.keys(e).forEach((function(t){null!==e[t]&&void 0!==e[t]&&r.push(t+"="+encodeURIComponent(e[t]))}));var n=r.join("&");return t=t.replace(/[?&]$/,""),t=-1===t.indexOf("?")?t+"?":t+"&",t+n}var We=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),He=function(t){function e(e){var r=this,n=e||{},i=void 0===n.imageSmoothing||n.imageSmoothing;return void 0!==n.interpolate&&(i=n.interpolate),r=t.call(this,{attributions:n.attributions,interpolate:i,projection:n.projection,resolutions:n.resolutions})||this,r.crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null,r.hidpi_=void 0===n.hidpi||n.hidpi,r.url_=n.url,r.imageLoadFunction_=void 0!==n.imageLoadFunction?n.imageLoadFunction:Be["b"],r.params_=n.params||{},r.image_=null,r.imageSize_=[0,0],r.renderedRevision_=0,r.ratio_=void 0!==n.ratio?n.ratio:1.5,r}return We(e,t),e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,e,r,n){if(void 0===this.url_)return null;e=this.findNearestResolution(e),r=this.hidpi_?r:1;var o=this.image_;if(o&&this.renderedRevision_==this.getRevision()&&o.getResolution()==e&&o.getPixelRatio()==r&&Object(i["containsExtent"])(o.getExtent(),t))return o;var a={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};Object(s["a"])(a,this.params_),t=t.slice();var l=(t[0]+t[2])/2,u=(t[1]+t[3])/2;if(1!=this.ratio_){var c=this.ratio_*Object(i["getWidth"])(t)/2,h=this.ratio_*Object(i["getHeight"])(t)/2;t[0]=l-c,t[1]=u-h,t[2]=l+c,t[3]=u+h}var f=e/r,d=Math.ceil(Object(i["getWidth"])(t)/f),g=Math.ceil(Object(i["getHeight"])(t)/f);t[0]=l-f*d/2,t[2]=l+f*d/2,t[1]=u-f*g/2,t[3]=u+f*g/2,this.imageSize_[0]=d,this.imageSize_[1]=g;var y=this.getRequestUrl_(t,this.imageSize_,r,n,a);return this.image_=new Ve["a"](t,e,r,y,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(p["a"].CHANGE,this.handleImageChange.bind(this)),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,e,r,n,i){var o=n.getCode().split(/:(?=\d+$)/).pop();i["SIZE"]=e[0]+","+e[1],i["BBOX"]=t.join(","),i["BBOXSR"]=o,i["IMAGESR"]=o,i["DPI"]=Math.round(90*r);var a=this.url_,s=a.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");return s==a&&Object(_e["a"])(!1,50),Xe(s,i)},e.prototype.getUrl=function(){return this.url_},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},e.prototype.updateParams=function(t){Object(s["a"])(this.params_,t),this.image_=null,this.changed()},e}(Be["a"]),Ye=He,qe=r("ed9b"),Ke=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ze=function(t){function e(e){var r=this,n=e||{},i=void 0===n.imageSmoothing||n.imageSmoothing;return void 0!==n.interpolate&&(i=n.interpolate),r=t.call(this,{attributions:n.attributions,interpolate:i,projection:n.projection,resolutions:n.resolutions,state:n.state})||this,r.canvasFunction_=n.canvasFunction,r.canvas_=null,r.renderedRevision_=0,r.ratio_=void 0!==n.ratio?n.ratio:1.5,r}return Ke(e,t),e.prototype.getImageInternal=function(t,e,r,n){e=this.findNearestResolution(e);var o=this.canvas_;if(o&&this.renderedRevision_==this.getRevision()&&o.getResolution()==e&&o.getPixelRatio()==r&&Object(i["containsExtent"])(o.getExtent(),t))return o;t=t.slice(),Object(i["scaleFromCenter"])(t,this.ratio_);var a=Object(i["getWidth"])(t)/e,s=Object(i["getHeight"])(t)/e,l=[a*r,s*r],u=this.canvasFunction_.call(this,t,e,r,l,n);return u&&(o=new qe["a"](t,e,r,u)),this.canvas_=o,this.renderedRevision_=this.getRevision(),o},e}(Be["a"]),Je=Ze,$e=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Qe=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(n=e.interpolate),r=t.call(this,{interpolate:n,projection:e.projection,resolutions:e.resolutions})||this,r.crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null,r.displayDpi_=void 0!==e.displayDpi?e.displayDpi:96,r.params_=e.params||{},r.url_=e.url,r.imageLoadFunction_=void 0!==e.imageLoadFunction?e.imageLoadFunction:Be["b"],r.hidpi_=void 0===e.hidpi||e.hidpi,r.metersPerUnit_=void 0!==e.metersPerUnit?e.metersPerUnit:1,r.ratio_=void 0!==e.ratio?e.ratio:1,r.useOverlay_=void 0!==e.useOverlay&&e.useOverlay,r.image_=null,r.renderedRevision_=0,r}return $e(e,t),e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,e,r,n){e=this.findNearestResolution(e),r=this.hidpi_?r:1;var o=this.image_;if(o&&this.renderedRevision_==this.getRevision()&&o.getResolution()==e&&o.getPixelRatio()==r&&Object(i["containsExtent"])(o.getExtent(),t))return o;1!=this.ratio_&&(t=t.slice(),Object(i["scaleFromCenter"])(t,this.ratio_));var a=Object(i["getWidth"])(t)/e,s=Object(i["getHeight"])(t)/e,l=[a*r,s*r];if(void 0!==this.url_){var u=this.getUrl(this.url_,this.params_,t,l,n);o=new Ve["a"](t,e,r,u,this.crossOrigin_,this.imageLoadFunction_),o.addEventListener(p["a"].CHANGE,this.handleImageChange.bind(this))}else o=null;return this.image_=o,this.renderedRevision_=this.getRevision(),o},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.updateParams=function(t){Object(s["a"])(this.params_,t),this.changed()},e.prototype.getUrl=function(t,e,r,n,o){var a=tr(r,n,this.metersPerUnit_,this.displayDpi_),l=Object(i["getCenter"])(r),u={OPERATION:this.useOverlay_?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol/source/ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.displayDpi_,SETDISPLAYWIDTH:Math.round(n[0]),SETDISPLAYHEIGHT:Math.round(n[1]),SETVIEWSCALE:a,SETVIEWCENTERX:l[0],SETVIEWCENTERY:l[1]};return Object(s["a"])(u,e),Xe(t,u)},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e}(Be["a"]);function tr(t,e,r,n){var o=Object(i["getWidth"])(t),a=Object(i["getHeight"])(t),s=e[0],l=e[1],u=.0254/n;return l*o>s*a?o*r/(s*u):a*r/(l*u)}var er=Qe,rr=r("e7df"),nr="1.3.0",ir=r("3c81"),or=r("b0c1"),ar=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),sr=4,lr=[101,101],ur=function(t){function e(e){var r=this,n=e||{},i=void 0===n.imageSmoothing||n.imageSmoothing;return void 0!==n.interpolate&&(i=n.interpolate),r=t.call(this,{attributions:n.attributions,interpolate:i,projection:n.projection,resolutions:n.resolutions})||this,r.crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null,r.url_=n.url,r.imageLoadFunction_=void 0!==n.imageLoadFunction?n.imageLoadFunction:Be["b"],r.params_=n.params||{},r.v13_=!0,r.updateV13_(),r.serverType_=n.serverType,r.hidpi_=void 0===n.hidpi||n.hidpi,r.image_=null,r.imageSize_=[0,0],r.renderedRevision_=0,r.ratio_=void 0!==n.ratio?n.ratio:1.5,r}return ar(e,t),e.prototype.getFeatureInfoUrl=function(t,e,r,n){if(void 0!==this.url_){var o=Object($t["get"])(r),a=this.getProjection();a&&a!==o&&(e=Object(ir["b"])(a,o,t,e),t=Object($t["transform"])(t,o,a));var l=Object(i["getForViewAndSize"])(t,e,0,lr),u={SERVICE:"WMS",VERSION:nr,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_["LAYERS"]};Object(s["a"])(u,this.params_,n);var c=Object(Qt["d"])((t[0]-l[0])/e,sr),h=Object(Qt["d"])((l[3]-t[1])/e,sr);return u[this.v13_?"I":"X"]=c,u[this.v13_?"J":"Y"]=h,this.getRequestUrl_(l,lr,1,a||o,u)}},e.prototype.getLegendUrl=function(t,e){if(void 0!==this.url_){var r={SERVICE:"WMS",VERSION:nr,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===e||void 0===e["LAYER"]){var n=this.params_.LAYERS,i=!Array.isArray(n)||1===n.length;if(!i)return;r["LAYER"]=n}if(void 0!==t){var o=this.getProjection()?this.getProjection().getMetersPerUnit():1,a=28e-5;r["SCALE"]=t*o/a}return Object(s["a"])(r,e),Xe(this.url_,r)}},e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,e,r,n){if(void 0===this.url_)return null;e=this.findNearestResolution(e),1==r||this.hidpi_&&void 0!==this.serverType_||(r=1);var o=e/r,a=Object(i["getCenter"])(t),l=Object(Qt["a"])(Object(i["getWidth"])(t)/o,sr),u=Object(Qt["a"])(Object(i["getHeight"])(t)/o,sr),c=Object(i["getForViewAndSize"])(a,o,0,[l,u]),h=Object(Qt["a"])(this.ratio_*Object(i["getWidth"])(t)/o,sr),f=Object(Qt["a"])(this.ratio_*Object(i["getHeight"])(t)/o,sr),d=Object(i["getForViewAndSize"])(a,o,0,[h,f]),g=this.image_;if(g&&this.renderedRevision_==this.getRevision()&&g.getResolution()==e&&g.getPixelRatio()==r&&Object(i["containsExtent"])(g.getExtent(),c))return g;var y={SERVICE:"WMS",VERSION:nr,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Object(s["a"])(y,this.params_),this.imageSize_[0]=Object(Qt["h"])(Object(i["getWidth"])(d)/o,sr),this.imageSize_[1]=Object(Qt["h"])(Object(i["getHeight"])(d)/o,sr);var v=this.getRequestUrl_(d,this.imageSize_,r,n,y);return this.image_=new Ve["a"](d,e,r,v,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(p["a"].CHANGE,this.handleImageChange.bind(this)),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,e,r,n,i){if(Object(_e["a"])(void 0!==this.url_,9),i[this.v13_?"CRS":"SRS"]=n.getCode(),"STYLES"in this.params_||(i["STYLES"]=""),1!=r)switch(this.serverType_){case"geoserver":var o=90*r+.5|0;"FORMAT_OPTIONS"in i?i["FORMAT_OPTIONS"]+=";dpi:"+o:i["FORMAT_OPTIONS"]="dpi:"+o;break;case"mapserver":i["MAP_RESOLUTION"]=90*r;break;case"carmentaserver":case"qgis":i["DPI"]=90*r;break;default:Object(_e["a"])(!1,8);break}i["WIDTH"]=e[0],i["HEIGHT"]=e[1];var a,s=n.getAxisOrientation();return a=this.v13_&&"ne"==s.substr(0,2)?[t[1],t[0],t[3],t[2]]:t,i["BBOX"]=a.join(","),Xe(this.url_,i)},e.prototype.getUrl=function(){return this.url_},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},e.prototype.updateParams=function(t){Object(s["a"])(this.params_,t),this.updateV13_(),this.image_=null,this.changed()},e.prototype.updateV13_=function(){var t=this.params_["VERSION"]||nr;this.v13_=Object(or["a"])(t,"1.3")>=0},e}(Be["a"]),cr=ur,hr=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),fr='© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.',pr=function(t){function e(e){var r,n=e||{},i=void 0===n.imageSmoothing||n.imageSmoothing;void 0!==n.interpolate&&(i=n.interpolate),r=void 0!==n.attributions?n.attributions:[fr];var o=void 0!==n.crossOrigin?n.crossOrigin:"anonymous",a=void 0!==n.url?n.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return t.call(this,{attributions:r,attributionsCollapsible:!1,cacheSize:n.cacheSize,crossOrigin:o,interpolate:i,maxZoom:void 0!==n.maxZoom?n.maxZoom:19,opaque:void 0===n.opaque||n.opaque,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileLoadFunction:n.tileLoadFunction,transition:n.transition,url:a,wrapX:n.wrapX,zDirection:n.zDirection})||this}return hr(e,t),e}(a["default"]),dr=pr,gr=r("bd02"),yr=r("ff80"),vr=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),mr=['Map tiles by <a href="https://stamen.com/" target="_blank">Stamen Design</a>, under <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>.',fr],_r={terrain:{extension:"jpg",opaque:!0},"terrain-background":{extension:"jpg",opaque:!0},"terrain-labels":{extension:"png",opaque:!1},"terrain-lines":{extension:"png",opaque:!1},"toner-background":{extension:"png",opaque:!0},toner:{extension:"png",opaque:!0},"toner-hybrid":{extension:"png",opaque:!1},"toner-labels":{extension:"png",opaque:!1},"toner-lines":{extension:"png",opaque:!1},"toner-lite":{extension:"png",opaque:!0},watercolor:{extension:"jpg",opaque:!0}},br={terrain:{minZoom:0,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:0,maxZoom:18}},xr=function(t){function e(e){var r=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(r=e.interpolate);var n=e.layer.indexOf("-"),i=-1==n?e.layer:e.layer.slice(0,n),o=br[i],a=_r[e.layer],s=void 0!==e.url?e.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+e.layer+"/{z}/{x}/{y}."+a.extension;return t.call(this,{attributions:mr,cacheSize:e.cacheSize,crossOrigin:"anonymous",interpolate:r,maxZoom:void 0!=e.maxZoom?e.maxZoom:o.maxZoom,minZoom:void 0!=e.minZoom?e.minZoom:o.minZoom,opaque:a.opaque,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:s,wrapX:e.wrapX,zDirection:e.zDirection})||this}return vr(e,t),e}(a["default"]),wr=xr,Or=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Er=function(t){function e(e){var r=this,n=e||{},o=void 0===n.imageSmoothing||n.imageSmoothing;return void 0!==n.interpolate&&(o=n.interpolate),r=t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:o,projection:n.projection,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:n.tileGrid,tileLoadFunction:n.tileLoadFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,zDirection:n.zDirection})||this,r.params_=n.params||{},r.hidpi_=void 0===n.hidpi||n.hidpi,r.tmpExtent_=Object(i["createEmpty"])(),r.setKey(r.getKeyForParams_()),r}return Or(e,t),e.prototype.getKeyForParams_=function(){var t=0,e=[];for(var r in this.params_)e[t++]=r+"-"+this.params_[r];return e.join("/")},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,e,r,n,i,o){var a=this.urls;if(a){var s,l=i.getCode().split(/:(?=\d+$)/).pop();if(o["SIZE"]=e[0]+","+e[1],o["BBOX"]=r.join(","),o["BBOXSR"]=l,o["IMAGESR"]=l,o["DPI"]=Math.round(o["DPI"]?o["DPI"]*n:90*n),1==a.length)s=a[0];else{var u=Object(Qt["g"])(Object(m["f"])(t),a.length);s=a[u]}var c=s.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");return Xe(c,o)}},e.prototype.getTilePixelRatio=function(t){return this.hidpi_?t:1},e.prototype.updateParams=function(t){Object(s["a"])(this.params_,t),this.setKey(this.getKeyForParams_())},e.prototype.tileUrlFunction=function(t,e,r){var n=this.getTileGrid();if(n||(n=this.getTileGridForProjection(r)),!(n.getResolutions().length<=t[0])){1==e||this.hidpi_||(e=1);var i=n.getTileCoordExtent(t,this.tmpExtent_),o=Object(x["d"])(n.getTileSize(t[0]),this.tmpSize);1!=e&&(o=Object(x["c"])(o,e,this.tmpSize));var a={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};return Object(s["a"])(a,this.params_),this.getRequestUrl_(t,o,i,e,r,a)}},e}(ye["default"]),Sr=Er,Tr=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Cr=function(t){function e(e){var r=this,n=e||{};return r=t.call(this,{opaque:!1,projection:n.projection,tileGrid:n.tileGrid,wrapX:void 0===n.wrapX||n.wrapX,zDirection:n.zDirection,url:n.template||"z:{z} x:{x} y:{y}",tileLoadFunction:function(t,e){var n=t.getTileCoord()[0],i=Object(x["d"])(r.tileGrid.getTileSize(n)),o=Object(be["a"])(i[0],i[1]);o.strokeStyle="grey",o.strokeRect(.5,.5,i[0]+.5,i[1]+.5),o.fillStyle="grey",o.strokeStyle="white",o.textAlign="center",o.textBaseline="middle",o.font="24px sans-serif",o.lineWidth=4,o.strokeText(e,i[0]/2,i[1]/2,i[0]),o.fillText(e,i[0]/2,i[1]/2,i[0]),t.setImage(o.canvas)}})||this,r}return Tr(e,t),e}(a["default"]),Pr=Cr,jr=r("6cf3"),Rr=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Mr=function(t){function e(e){var r=this,n=e||{},o=void 0===n.imageSmoothing||n.imageSmoothing;void 0!==n.interpolate&&(o=n.interpolate);var a=n.params||{},s=!("TRANSPARENT"in a)||a["TRANSPARENT"];return r=t.call(this,{attributions:n.attributions,attributionsCollapsible:n.attributionsCollapsible,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:o,opaque:!s,projection:n.projection,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileClass:n.tileClass,tileGrid:n.tileGrid,tileLoadFunction:n.tileLoadFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,zDirection:n.zDirection})||this,r.gutter_=void 0!==n.gutter?n.gutter:0,r.params_=a,r.v13_=!0,r.serverType_=n.serverType,r.hidpi_=void 0===n.hidpi||n.hidpi,r.tmpExtent_=Object(i["createEmpty"])(),r.updateV13_(),r.setKey(r.getKeyForParams_()),r}return Rr(e,t),e.prototype.getFeatureInfoUrl=function(t,e,r,n){var o=Object($t["get"])(r),a=this.getProjection(),l=this.getTileGrid();l||(l=this.getTileGridForProjection(o));var u=l.getZForResolution(e,this.zDirection),c=l.getTileCoordForCoordAndZ(t,u);if(!(l.getResolutions().length<=c[0])){var h=l.getResolution(c[0]),f=l.getTileCoordExtent(c,this.tmpExtent_),p=Object(x["d"])(l.getTileSize(c[0]),this.tmpSize),d=this.gutter_;0!==d&&(p=Object(x["a"])(p,d,this.tmpSize),f=Object(i["buffer"])(f,h*d,f)),a&&a!==o&&(h=Object(ir["b"])(a,o,t,h),f=Object($t["transformExtent"])(f,o,a),t=Object($t["transform"])(t,o,a));var g={SERVICE:"WMS",VERSION:nr,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_["LAYERS"]};Object(s["a"])(g,this.params_,n);var y=Math.floor((t[0]-f[0])/h),v=Math.floor((f[3]-t[1])/h);return g[this.v13_?"I":"X"]=y,g[this.v13_?"J":"Y"]=v,this.getRequestUrl_(c,p,f,1,a||o,g)}},e.prototype.getLegendUrl=function(t,e){if(void 0!==this.urls[0]){var r={SERVICE:"WMS",VERSION:nr,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===e||void 0===e["LAYER"]){var n=this.params_.LAYERS,i=!Array.isArray(n)||1===n.length;if(!i)return;r["LAYER"]=n}if(void 0!==t){var o=this.getProjection()?this.getProjection().getMetersPerUnit():1,a=28e-5;r["SCALE"]=t*o/a}return Object(s["a"])(r,e),Xe(this.urls[0],r)}},e.prototype.getGutter=function(){return this.gutter_},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,e,r,n,i,o){var a=this.urls;if(a){if(o["WIDTH"]=e[0],o["HEIGHT"]=e[1],o[this.v13_?"CRS":"SRS"]=i.getCode(),"STYLES"in this.params_||(o["STYLES"]=""),1!=n)switch(this.serverType_){case"geoserver":var s=90*n+.5|0;"FORMAT_OPTIONS"in o?o["FORMAT_OPTIONS"]+=";dpi:"+s:o["FORMAT_OPTIONS"]="dpi:"+s;break;case"mapserver":o["MAP_RESOLUTION"]=90*n;break;case"carmentaserver":case"qgis":o["DPI"]=90*n;break;default:Object(_e["a"])(!1,52);break}var l,u=i.getAxisOrientation(),c=r;if(this.v13_&&"ne"==u.substr(0,2)){var h=void 0;h=r[0],c[0]=r[1],c[1]=h,h=r[2],c[2]=r[3],c[3]=h}if(o["BBOX"]=c.join(","),1==a.length)l=a[0];else{var f=Object(Qt["g"])(Object(m["f"])(t),a.length);l=a[f]}return Xe(l,o)}},e.prototype.getTilePixelRatio=function(t){return this.hidpi_&&void 0!==this.serverType_?t:1},e.prototype.getKeyForParams_=function(){var t=0,e=[];for(var r in this.params_)e[t++]=r+"-"+this.params_[r];return e.join("/")},e.prototype.updateParams=function(t){Object(s["a"])(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},e.prototype.updateV13_=function(){var t=this.params_["VERSION"]||nr;this.v13_=Object(or["a"])(t,"1.3")>=0},e.prototype.tileUrlFunction=function(t,e,r){var n=this.getTileGrid();if(n||(n=this.getTileGridForProjection(r)),!(n.getResolutions().length<=t[0])){1==e||this.hidpi_&&void 0!==this.serverType_||(e=1);var o=n.getResolution(t[0]),a=n.getTileCoordExtent(t,this.tmpExtent_),l=Object(x["d"])(n.getTileSize(t[0]),this.tmpSize),u=this.gutter_;0!==u&&(l=Object(x["a"])(l,u,this.tmpSize),a=Object(i["buffer"])(a,o*u,a)),1!=e&&(l=Object(x["c"])(l,e,this.tmpSize));var c={SERVICE:"WMS",VERSION:nr,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return Object(s["a"])(c,this.params_),this.getRequestUrl_(t,l,a,e,r,c)}},e}(ye["default"]),Ar=Mr,Lr=r("54b9"),Ir=r("5e31"),Fr=r("1e8d"),kr=r("e4e0"),Dr=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Gr=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r)||this;return s.src_=n,s.extent_=i,s.preemptive_=o,s.grid_=null,s.keys_=null,s.data_=null,s.jsonp_=a,s}return Dr(e,t),e.prototype.getImage=function(){return null},e.prototype.getData=function(t){if(!this.grid_||!this.keys_)return null;var e=(t[0]-this.extent_[0])/(this.extent_[2]-this.extent_[0]),r=(t[1]-this.extent_[1])/(this.extent_[3]-this.extent_[1]),n=this.grid_[Math.floor((1-r)*this.grid_.length)];if("string"!==typeof n)return null;var i=n.charCodeAt(Math.floor(e*n.length));i>=93&&i--,i>=35&&i--,i-=32;var o=null;if(i in this.keys_){var a=this.keys_[i];o=this.data_&&a in this.data_?this.data_[a]:a}return o},e.prototype.forDataAtCoordinate=function(t,e,r){this.state==y["a"].EMPTY&&!0===r?(this.state=y["a"].IDLE,Object(Fr["b"])(this,p["a"].CHANGE,(function(r){e(this.getData(t))}),this),this.loadInternal_()):!0===r?setTimeout(function(){e(this.getData(t))}.bind(this),0):e(this.getData(t))},e.prototype.getKey=function(){return this.src_},e.prototype.handleError_=function(){this.state=y["a"].ERROR,this.changed()},e.prototype.handleLoad_=function(t){this.grid_=t["grid"],this.keys_=t["keys"],this.data_=t["data"],this.state=y["a"].LOADED,this.changed()},e.prototype.loadInternal_=function(){if(this.state==y["a"].IDLE)if(this.state=y["a"].LOADING,this.jsonp_)Object(kr["a"])(this.src_,this.handleLoad_.bind(this),this.handleError_.bind(this));else{var t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",this.src_),t.send()}},e.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var r=void 0;try{r=JSON.parse(e.responseText)}catch(n){return void this.handleError_()}this.handleLoad_(r)}else this.handleError_()},e.prototype.onXHRError_=function(t){this.handleError_()},e.prototype.load=function(){this.preemptive_?this.loadInternal_():this.setState(y["a"].EMPTY)},e}(Ir["a"]),Nr=function(t){function e(e){var r=t.call(this,{projection:Object($t["get"])("EPSG:3857"),state:"loading",zDirection:e.zDirection})||this;if(r.preemptive_=void 0===e.preemptive||e.preemptive,r.tileUrlFunction_=xe["d"],r.template_=void 0,r.jsonp_=e.jsonp||!1,e.url)if(r.jsonp_)Object(kr["a"])(e.url,r.handleTileJSONResponse.bind(r),r.handleTileJSONError.bind(r));else{var n=new XMLHttpRequest;n.addEventListener("load",r.onXHRLoad_.bind(r)),n.addEventListener("error",r.onXHRError_.bind(r)),n.open("GET",e.url),n.send()}else e.tileJSON?r.handleTileJSONResponse(e.tileJSON):Object(_e["a"])(!1,51);return r}return Dr(e,t),e.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var r=void 0;try{r=JSON.parse(e.responseText)}catch(n){return void this.handleTileJSONError()}this.handleTileJSONResponse(r)}else this.handleTileJSONError()},e.prototype.onXHRError_=function(t){this.handleTileJSONError()},e.prototype.getTemplate=function(){return this.template_},e.prototype.forDataAtCoordinateAndResolution=function(t,e,r,n){if(this.tileGrid){var i=this.tileGrid.getZForResolution(e,this.zDirection),o=this.tileGrid.getTileCoordForCoordAndZ(t,i),a=this.getTile(o[0],o[1],o[2],1,this.getProjection());a.forDataAtCoordinate(t,r,n)}else!0===n?setTimeout((function(){r(null)}),0):r(null)},e.prototype.handleTileJSONError=function(){this.setState("error")},e.prototype.handleTileJSONResponse=function(t){var e,r=Object($t["get"])("EPSG:4326"),n=this.getProjection();if(void 0!==t["bounds"]){var o=Object($t["getTransformFromProjections"])(r,n);e=Object(i["applyTransform"])(t["bounds"],o)}var a=Object(v["b"])(n),s=t["minzoom"]||0,l=t["maxzoom"]||22,u=Object(v["a"])({extent:a,maxZoom:l,minZoom:s});this.tileGrid=u,this.template_=t["template"];var c=t["grids"];if(c){if(this.tileUrlFunction_=Object(xe["a"])(c,u),void 0!==t["attribution"]){var h=void 0!==e?e:a;this.setAttributions((function(e){return Object(i["intersects"])(h,e.extent)?[t["attribution"]]:null}))}this.setState("ready")}else this.setState("error")},e.prototype.getTile=function(t,e,r,n,i){var o=Object(m["e"])(t,e,r);if(this.tileCache.containsKey(o))return this.tileCache.get(o);var a=[t,e,r],s=this.getTileCoordForTileUrlFunction(a,i),l=this.tileUrlFunction_(s,n,i),u=new Gr(a,void 0!==l?y["a"].IDLE:y["a"].EMPTY,void 0!==l?l:"",this.tileGrid.getTileCoordExtent(a),this.preemptive_,this.jsonp_);return this.tileCache.set(o,u),u},e.prototype.useTile=function(t,e,r){var n=Object(m["e"])(t,e,r);this.tileCache.containsKey(n)&&this.tileCache.get(n)},e}(g["b"]),zr=Nr,Ur=r("5831"),Br=r("78db2"),Vr=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();(function(t){function e(e){var r=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 r.matrixIds_=e.matrixIds,r}Vr(e,t),e.prototype.getMatrixId=function(t){return this.matrixIds_[t]},e.prototype.getMatrixIds=function(){return this.matrixIds_}})(S["default"]);var Xr=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Wr=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(n=e.interpolate);var i=void 0!==e.requestEncoding?e.requestEncoding:"KVP",o=e.tileGrid,a=e.urls;return void 0===a&&void 0!==e.url&&(a=Object(xe["c"])(e.url)),r=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:n,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:o,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,urls:a,wrapX:void 0!==e.wrapX&&e.wrapX,transition:e.transition,zDirection:e.zDirection})||this,r.version_=void 0!==e.version?e.version:"1.0.0",r.format_=void 0!==e.format?e.format:"image/jpeg",r.dimensions_=void 0!==e.dimensions?e.dimensions:{},r.layer_=e.layer,r.matrixSet_=e.matrixSet,r.style_=e.style,r.requestEncoding_=i,r.setKey(r.getKeyForDimensions_()),a&&a.length>0&&(r.tileUrlFunction=Object(xe["b"])(a.map(r.createFromWMTSTemplate.bind(r)))),r}return Xr(e,t),e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.setTileUrlFunction(Object(xe["b"])(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 r in this.dimensions_)e[t++]=r+"-"+this.dimensions_[r];return e.join("/")},e.prototype.updateDimensions=function(t){Object(s["a"])(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e.prototype.createFromWMTSTemplate=function(t){var e=this.requestEncoding_,r={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};"KVP"==e&&Object(s["a"])(r,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t="KVP"==e?Xe(t,r):t.replace(/\{(\w+?)\}/g,(function(t,e){return e.toLowerCase()in r?r[e.toLowerCase()]:t}));var n=this.tileGrid,i=this.dimensions_;return function(r,o,a){if(r){var l={TileMatrix:n.getMatrixId(r[0]),TileCol:r[1],TileRow:r[2]};Object(s["a"])(l,i);var u=t;return u="KVP"==e?Xe(u,l):u.replace(/\{(\w+?)\}/g,(function(t,e){return l[e]})),u}}},e}(ye["default"]),Hr=Wr;function Yr(t,e){var r=new n["a"](32),o=t.getExtent();return function(n,a){r.expireCache(),o&&(n=Object(i["getIntersection"])(o,n));var s=t.getZForResolution(a),l=[];return t.forEachTileCoord(n,s,(function(t){var n=t.toString();if(!r.containsKey(n)){var i=e(t);r.set(n,i)}l.push(r.get(n))})),l}}},"78db":function(t,e,r){"use strict";r.r(e);var n=r("dc07"),i=r("0414"),o=r("92fa"),a=r("7fc9"),s=r("0af5"),l=r("2c30"),u=r("c560"),c=r("9f5e"),h=r("345d"),f=[0,0,0],p=5,d=function(){function t(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Object(o["a"])(Object(c["g"])(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(var r=0,a=this.resolutions_.length-1;r<a;++r)if(e){if(this.resolutions_[r]/this.resolutions_[r+1]!==e){e=void 0;break}}else e=this.resolutions_[r]/this.resolutions_[r+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(o["a"])(this.origins_.length==this.resolutions_.length,20));var l=t.extent;void 0===l||this.origin_||this.origins_||(this.origin_=Object(s["getTopLeft"])(l)),Object(o["a"])(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,Object(o["a"])(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:i["b"],Object(o["a"])(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==l?l: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 r=new n["b"](Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(l){var i=this.getTileRangeForExtentAndZ(l,e);r.minX=Math.max(i.minX,r.minX),r.maxX=Math.min(i.maxX,r.maxX),r.minY=Math.max(i.minY,r.minY),r.maxY=Math.min(i.maxY,r.maxY)}return r}),this):l&&this.calculateTileRanges_(l)}return t.prototype.forEachTileCoord=function(t,e,r){for(var n=this.getTileRangeForExtentAndZ(t,e),i=n.minX,o=n.maxX;i<=o;++i)for(var a=n.minY,s=n.maxY;a<=s;++a)r([e,i,a])},t.prototype.forEachTileCoordParentTileRange=function(t,e,r,i){var o,a,s,l=null,u=t[0]-1;2===this.zoomFactor_?(a=t[1],s=t[2]):l=this.getTileCoordExtent(t,i);while(u>=this.minZoom){if(2===this.zoomFactor_?(a=Math.floor(a/2),s=Math.floor(s/2),o=Object(n["a"])(a,a,s,s,r)):o=this.getTileRangeForExtentAndZ(l,u,r),e(u,o))return!0;--u}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,r){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var i=2*t[1],o=2*t[2];return Object(n["a"])(i,i+1,o,o+1,e)}var a=this.getTileCoordExtent(t,r||this.tmpExtent_);return this.getTileRangeForExtentAndZ(a,t[0]+1,e)}return null},t.prototype.getTileRangeForTileCoordAndZ=function(t,e,r){if(e>this.maxZoom||e<this.minZoom)return null;var i=t[0],o=t[1],a=t[2];if(e===i)return Object(n["a"])(o,a,o,a,r);if(this.zoomFactor_){var s=Math.pow(this.zoomFactor_,e-i),l=Math.floor(o*s),u=Math.floor(a*s);if(e<i)return Object(n["a"])(l,l,u,u,r);var c=Math.floor(s*(o+1))-1,h=Math.floor(s*(a+1))-1;return Object(n["a"])(l,c,u,h,r)}var f=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(f,e,r)},t.prototype.getTileRangeExtent=function(t,e,r){var n=this.getOrigin(t),i=this.getResolution(t),o=Object(h["d"])(this.getTileSize(t),this.tmpSize_),a=n[0]+e.minX*o[0]*i,l=n[0]+(e.maxX+1)*o[0]*i,u=n[1]+e.minY*o[1]*i,c=n[1]+(e.maxY+1)*o[1]*i;return Object(s["createOrUpdate"])(a,u,l,c,r)},t.prototype.getTileRangeForExtentAndZ=function(t,e,r){var i=f;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,i);var o=i[1],a=i[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,i),Object(n["a"])(o,i[1],a,i[2],r)},t.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),r=this.getResolution(t[0]),n=Object(h["d"])(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*n[0]*r,e[1]-(t[2]+.5)*n[1]*r]},t.prototype.getTileCoordExtent=function(t,e){var r=this.getOrigin(t[0]),n=this.getResolution(t[0]),i=Object(h["d"])(this.getTileSize(t[0]),this.tmpSize_),o=r[0]+t[1]*i[0]*n,a=r[1]-(t[2]+1)*i[1]*n,l=o+i[0]*n,u=a+i[1]*n;return Object(s["createOrUpdate"])(o,a,l,u,e)},t.prototype.getTileCoordForCoordAndResolution=function(t,e,r){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,r)},t.prototype.getTileCoordForXYAndResolution_=function(t,e,r,n,i){var o=this.getZForResolution(r),s=r/this.getResolution(o),u=this.getOrigin(o),c=Object(h["d"])(this.getTileSize(o),this.tmpSize_),f=s*(t-u[0])/r/c[0],d=s*(u[1]-e)/r/c[1];return n?(f=Object(a["a"])(f,p)-1,d=Object(a["a"])(d,p)-1):(f=Object(a["d"])(f,p),d=Object(a["d"])(d,p)),Object(l["a"])(o,f,d,i)},t.prototype.getTileCoordForXYAndZ_=function(t,e,r,n,i){var o=this.getOrigin(r),s=this.getResolution(r),u=Object(h["d"])(this.getTileSize(r),this.tmpSize_),c=(t-o[0])/s/u[0],f=(o[1]-e)/s/u[1];return n?(c=Object(a["a"])(c,p)-1,f=Object(a["a"])(f,p)-1):(c=Object(a["d"])(c,p),f=Object(a["d"])(f,p)),Object(l["a"])(r,c,f,i)},t.prototype.getTileCoordForCoordAndZ=function(t,e,r){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,r)},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 r=Object(c["h"])(this.resolutions_,t,e||0);return Object(a["b"])(r,this.minZoom,this.maxZoom)},t.prototype.tileCoordIntersectsViewport=function(t,e){return Object(u["c"])(e,0,e.length,2,this.getTileCoordExtent(t))},t.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,r=new Array(e),n=this.minZoom;n<e;++n)r[n]=this.getTileRangeForExtentAndZ(t,n);this.fullTileRanges_=r},t}();e["default"]=d},"78db2":function(t,e,r){"use strict";r.d(e,"b",(function(){return C}));var n=r("01d4"),i=r("5e31"),o=r("acc1"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r,a)||this;return s.extent=null,s.format_=i,s.features_=null,s.loader_,s.projection=null,s.resolution,s.tileLoadFunction_=o,s.url_=n,s.key=n,s}return a(e,t),e.prototype.getFormat=function(){return this.format_},e.prototype.getFeatures=function(){return this.features_},e.prototype.load=function(){this.state==o["a"].IDLE&&(this.setState(o["a"].LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))},e.prototype.onLoad=function(t,e){this.setFeatures(t)},e.prototype.onError=function(){this.setState(o["a"].ERROR)},e.prototype.setFeatures=function(t){this.features_=t,this.setState(o["a"].LOADED)},e.prototype.setLoader=function(t){this.loader_=t},e}(i["a"]),l=s,u=r("8d87"),c=r("78db"),h=r("54b9"),f=r("0999"),p=r("1300"),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=[],y=function(t){function e(e,r,n,i){var o=t.call(this,e,r,{transition:0})||this;return o.context_={},o.executorGroups={},o.declutterExecutorGroups={},o.loadingSourceTiles=0,o.hitDetectionImageData={},o.replayState_={},o.sourceTiles=[],o.errorTileKeys={},o.wantedResolution,o.getSourceTiles=i.bind(void 0,o),o.wrappedTileCoord=n,o}return d(e,t),e.prototype.getContext=function(t){var e=Object(p["c"])(t);return e in this.context_||(this.context_[e]=Object(f["a"])(1,1,g)),this.context_[e]},e.prototype.hasContext=function(t){return Object(p["c"])(t)in this.context_},e.prototype.getImage=function(t){return this.hasContext(t)?this.getContext(t).canvas:null},e.prototype.getReplayState=function(t){var e=Object(p["c"])(t);return e in this.replayState_||(this.replayState_[e]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[e]},e.prototype.load=function(){this.getSourceTiles()},e.prototype.release=function(){for(var e in this.context_){var r=this.context_[e];Object(f["d"])(r),g.push(r.canvas),delete this.context_[e]}t.prototype.release.call(this)},e}(i["a"]),v=y,m=r("0414"),_=r("0af5"),b=r("089b"),x=r("2c30"),w=r("38f3"),O=r("6d8f"),E=r("345d"),S=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),T=function(t){function e(e){var r=this,n=e.projection||"EPSG:3857",i=e.extent||Object(b["b"])(n),o=e.tileGrid||Object(b["a"])({extent:i,maxResolution:e.maxResolution,maxZoom:void 0!==e.maxZoom?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});return r=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,opaque:!1,projection:n,state:e.state,tileGrid:o,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:C,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:void 0===e.zDirection?1:e.zDirection})||this,r.format_=e.format?e.format:null,r.sourceTileCache=new u["a"](r.tileCache.highWaterMark),r.overlaps_=void 0==e.overlaps||e.overlaps,r.tileClass=e.tileClass?e.tileClass:l,r.tileGrids_={},r}return S(e,t),e.prototype.getFeaturesInExtent=function(t){var e=[],r=this.tileCache;if(0===r.getCount())return e;var n=Object(x["b"])(r.peekFirstKey())[0],i=this.tileGrid;return r.forEach((function(r){if(r.tileCoord[0]===n&&r.getState()===o["a"].LOADED)for(var a=r.getSourceTiles(),s=0,l=a.length;s<l;++s){var u=a[s],c=u.tileCoord;if(Object(_["intersects"])(t,i.getTileCoordExtent(c))){var h=u.getFeatures();if(h)for(var f=0,p=h.length;f<p;++f){var d=h[f],g=d.getGeometry();Object(_["intersects"])(t,g.getExtent())&&e.push(d)}}}})),e},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.clear=function(){this.tileCache.clear(),this.sourceTileCache.clear()},e.prototype.expireCache=function(e,r){var n=this.getTileCacheForProjection(e),i=Object.keys(r).reduce((function(t,e){var r=Object(x["c"])(e),i=n.peek(r);if(i)for(var o=i.sourceTiles,a=0,s=o.length;a<s;++a)t[o[a].getKey()]=!0;return t}),{});t.prototype.expireCache.call(this,e,r),this.sourceTileCache.expireCache(i)},e.prototype.getSourceTiles=function(t,e,r){var i=this;if(r.getState()===o["a"].IDLE){r.setState(o["a"].LOADING);var a=r.wrappedTileCoord,s=this.getTileGridForProjection(e),l=s.getTileCoordExtent(a),u=a[0],c=s.getResolution(u);Object(_["buffer"])(l,-c,l);var h=this.tileGrid,f=h.getExtent();f&&Object(_["getIntersection"])(l,f,l);var p=h.getZForResolution(c,this.zDirection);h.forEachTileCoord(l,p,(function(a){var s=i.tileUrlFunction(a,t,e),l=i.sourceTileCache.containsKey(s)?i.sourceTileCache.get(s):new i.tileClass(a,s?o["a"].IDLE:o["a"].EMPTY,s,i.format_,i.tileLoadFunction);r.sourceTiles.push(l);var u=l.getState();if(u<o["a"].LOADED){var c=function(t){i.handleTileChange(t);var e=l.getState();if(e===o["a"].LOADED||e===o["a"].ERROR){var a=l.getKey();a in r.errorTileKeys?l.getState()===o["a"].LOADED&&delete r.errorTileKeys[a]:r.loadingSourceTiles--,e===o["a"].ERROR?r.errorTileKeys[a]=!0:l.removeEventListener(n["a"].CHANGE,c),0===r.loadingSourceTiles&&r.setState(Object(w["d"])(r.errorTileKeys)?o["a"].LOADED:o["a"].ERROR)}};l.addEventListener(n["a"].CHANGE,c),r.loadingSourceTiles++}u===o["a"].IDLE&&(l.extent=h.getTileCoordExtent(a),l.projection=e,l.resolution=h.getResolution(a[0]),i.sourceTileCache.set(s,l),l.load())})),r.loadingSourceTiles||r.setState(r.sourceTiles.some((function(t){return t.getState()===o["a"].ERROR}))?o["a"].ERROR:o["a"].LOADED)}return r.sourceTiles},e.prototype.getTile=function(t,e,r,n,i){var a,s=Object(x["e"])(t,e,r),l=this.getKey();if(this.tileCache.containsKey(s)&&(a=this.tileCache.get(s),a.key===l))return a;var u=[t,e,r],c=this.getTileCoordForTileUrlFunction(u,i),h=this.getTileGrid().getExtent(),f=this.getTileGridForProjection(i);if(c&&h){var p=f.getTileCoordExtent(c);Object(_["buffer"])(p,-f.getResolution(t),p),Object(_["intersects"])(h,p)||(c=null)}var d=!0;if(null!==c){var g=this.tileGrid,y=f.getResolution(t),m=g.getZForResolution(y,1),b=f.getTileCoordExtent(c);Object(_["buffer"])(b,-y,b),g.forEachTileCoord(b,m,function(t){d=d&&!this.tileUrlFunction(t,n,i)}.bind(this))}var w=new v(u,d?o["a"].EMPTY:o["a"].IDLE,c,this.getSourceTiles.bind(this,n,i));return w.key=l,a?(w.interimTile=a,w.refreshInterimChain(),this.tileCache.replace(s,w)):this.tileCache.set(s,w),w},e.prototype.getTileGridForProjection=function(t){var e=t.getCode(),r=this.tileGrids_[e];if(!r){for(var n=this.tileGrid,i=n.getResolutions().slice(),o=i.map((function(t,e){return n.getOrigin(e)})),a=i.map((function(t,e){return n.getTileSize(e)})),s=m["a"]+1,l=i.length;l<s;++l)i.push(i[l-1]/2),o.push(o[l-1]),a.push(a[l-1]);r=new c["default"]({extent:n.getExtent(),origins:o,resolutions:i,tileSizes:a}),this.tileGrids_[e]=r}return r},e.prototype.getTilePixelRatio=function(t){return t},e.prototype.getTilePixelSize=function(t,e,r){var n=this.getTileGridForProjection(r),i=Object(E["d"])(n.getTileSize(t),this.tmpSize);return[Math.round(i[0]*e),Math.round(i[1]*e)]},e.prototype.updateCacheSize=function(e,r){t.prototype.updateCacheSize.call(this,2*e,r),this.sourceTileCache.highWaterMark=this.getTileCacheForProjection(r).highWaterMark},e}(h["a"]);e["a"]=T;function C(t,e){t.setLoader((function(r,n,i){Object(O["a"])(e,t.getFormat(),r,n,i,t.onLoad.bind(t),t.onError.bind(t))}))}},"790a":function(t,e,r){"use strict";r.r(e),r.d(e,"DEFAULT_RADIUS",(function(){return i})),r.d(e,"getDistance",(function(){return o})),r.d(e,"getLength",(function(){return s})),r.d(e,"getArea",(function(){return u})),r.d(e,"offset",(function(){return c}));var n=r("7fc9"),i=6371008.8;function o(t,e,r){var o=r||i,a=Object(n["m"])(t[1]),s=Object(n["m"])(e[1]),l=(s-a)/2,u=Object(n["m"])(e[0]-t[0])/2,c=Math.sin(l)*Math.sin(l)+Math.sin(u)*Math.sin(u)*Math.cos(a)*Math.cos(s);return 2*o*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}function a(t,e){for(var r=0,n=0,i=t.length;n<i-1;++n)r+=o(t[n],t[n+1],e);return r}function s(t,e){var r=e||{},n=r.radius||i,o=r.projection||"EPSG:3857",l=t.getType();"GeometryCollection"!==l&&(t=t.clone().transform(o,"EPSG:4326"));var u,c,h,f,p,d,g=0;switch(l){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":u=t.getCoordinates(),g=a(u,n);break;case"MultiLineString":case"Polygon":for(u=t.getCoordinates(),h=0,f=u.length;h<f;++h)g+=a(u[h],n);break;case"MultiPolygon":for(u=t.getCoordinates(),h=0,f=u.length;h<f;++h)for(c=u[h],p=0,d=c.length;p<d;++p)g+=a(c[p],n);break;case"GeometryCollection":var y=t.getGeometries();for(h=0,f=y.length;h<f;++h)g+=s(y[h],e);break;default:throw new Error("Unsupported geometry type: "+l)}return g}function l(t,e){for(var r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1];r+=Object(n["m"])(l-o)*(2+Math.sin(Object(n["m"])(a))+Math.sin(Object(n["m"])(u))),o=l,a=u}return r*e*e/2}function u(t,e){var r=e||{},n=r.radius||i,o=r.projection||"EPSG:3857",a=t.getType();"GeometryCollection"!==a&&(t=t.clone().transform(o,"EPSG:4326"));var s,c,h,f,p,d,g=0;switch(a){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"LinearRing":break;case"Polygon":for(s=t.getCoordinates(),g=Math.abs(l(s[0],n)),h=1,f=s.length;h<f;++h)g-=Math.abs(l(s[h],n));break;case"MultiPolygon":for(s=t.getCoordinates(),h=0,f=s.length;h<f;++h)for(c=s[h],g+=Math.abs(l(c[0],n)),p=1,d=c.length;p<d;++p)g-=Math.abs(l(c[p],n));break;case"GeometryCollection":var y=t.getGeometries();for(h=0,f=y.length;h<f;++h)g+=u(y[h],e);break;default:throw new Error("Unsupported geometry type: "+a)}return g}function c(t,e,r,o){var a=o||i,s=Object(n["m"])(t[1]),l=Object(n["m"])(t[0]),u=e/a,c=Math.asin(Math.sin(s)*Math.cos(u)+Math.cos(s)*Math.sin(u)*Math.cos(r)),h=l+Math.atan2(Math.sin(r)*Math.sin(u)*Math.cos(s),Math.cos(u)-Math.sin(s)*Math.sin(c));return[Object(n["l"])(h),Object(n["l"])(c)]}},7915:function(t,e,r){"use strict";t.exports=i;var n=r("9152");function i(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}i.Varint=0,i.Fixed64=1,i.Bytes=2,i.Fixed32=5;var o=4294967296,a=1/o,s=12,l="undefined"===typeof TextDecoder?null:new TextDecoder("utf8");function u(t,e,r){var n,i,o=r.buf;if(i=o[r.pos++],n=(112&i)>>4,i<128)return h(t,n,e);if(i=o[r.pos++],n|=(127&i)<<3,i<128)return h(t,n,e);if(i=o[r.pos++],n|=(127&i)<<10,i<128)return h(t,n,e);if(i=o[r.pos++],n|=(127&i)<<17,i<128)return h(t,n,e);if(i=o[r.pos++],n|=(127&i)<<24,i<128)return h(t,n,e);if(i=o[r.pos++],n|=(1&i)<<31,i<128)return h(t,n,e);throw new Error("Expected varint not more than 10 bytes")}function c(t){return t.type===i.Bytes?t.readVarint()+t.pos:t.pos+1}function h(t,e,r){return r?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function f(t,e){var r,n;if(t>=0?(r=t%4294967296|0,n=t/4294967296|0):(r=~(-t%4294967296),n=~(-t/4294967296),4294967295^r?r=r+1|0:(r=0,n=n+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),p(r,n,e),d(n,e)}function p(t,e,r){r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos]=127&t}function d(t,e){var r=(7&t)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}function g(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=t;i--)r.buf[i+n]=r.buf[i]}function y(t,e){for(var r=0;r<t.length;r++)e.writeVarint(t[r])}function v(t,e){for(var r=0;r<t.length;r++)e.writeSVarint(t[r])}function m(t,e){for(var r=0;r<t.length;r++)e.writeFloat(t[r])}function _(t,e){for(var r=0;r<t.length;r++)e.writeDouble(t[r])}function b(t,e){for(var r=0;r<t.length;r++)e.writeBoolean(t[r])}function x(t,e){for(var r=0;r<t.length;r++)e.writeFixed32(t[r])}function w(t,e){for(var r=0;r<t.length;r++)e.writeSFixed32(t[r])}function O(t,e){for(var r=0;r<t.length;r++)e.writeFixed64(t[r])}function E(t,e){for(var r=0;r<t.length;r++)e.writeSFixed64(t[r])}function S(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function T(t,e,r){t[r]=e,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function C(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function P(t,e,r){var n="",i=e;while(i<r){var o,a,s,l=t[i],u=null,c=l>239?4:l>223?3:l>191?2:1;if(i+c>r)break;1===c?l<128&&(u=l):2===c?(o=t[i+1],128===(192&o)&&(u=(31&l)<<6|63&o,u<=127&&(u=null))):3===c?(o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a,(u<=2047||u>=55296&&u<=57343)&&(u=null))):4===c&&(o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s,(u<=65535||u>=1114112)&&(u=null))),null===u?(u=65533,c=1):u>65535&&(u-=65536,n+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),n+=String.fromCharCode(u),i+=c}return n}function j(t,e,r){return l.decode(t.subarray(e,r))}function R(t,e,r){for(var n,i,o=0;o<e.length;o++){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){n>56319||o+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296<<10|n-56320|65536,i=null}else i&&(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=63&n|128)}return r}i.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){r=r||this.length;while(this.pos<r){var n=this.readVarint(),i=n>>3,o=this.pos;this.type=7&n,t(i,e,this),this.pos===o&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=S(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=C(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=S(this.buf,this.pos)+S(this.buf,this.pos+4)*o;return this.pos+=8,t},readSFixed64:function(){var t=S(this.buf,this.pos)+C(this.buf,this.pos+4)*o;return this.pos+=8,t},readFloat:function(){var t=n.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=n.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return r=n[this.pos++],e=127&r,r<128?e:(r=n[this.pos++],e|=(127&r)<<7,r<128?e:(r=n[this.pos++],e|=(127&r)<<14,r<128?e:(r=n[this.pos++],e|=(127&r)<<21,r<128?e:(r=n[this.pos],e|=(15&r)<<28,u(e,t,this)))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2===1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=s&&l?j(this.buf,e,t):P(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==i.Bytes)return t.push(this.readVarint(e));var r=c(this);t=t||[];while(this.pos<r)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==i.Bytes)return t.push(this.readSVarint());var e=c(this);t=t||[];while(this.pos<e)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==i.Bytes)return t.push(this.readBoolean());var e=c(this);t=t||[];while(this.pos<e)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==i.Bytes)return t.push(this.readFloat());var e=c(this);t=t||[];while(this.pos<e)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==i.Bytes)return t.push(this.readDouble());var e=c(this);t=t||[];while(this.pos<e)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==i.Bytes)return t.push(this.readFixed32());var e=c(this);t=t||[];while(this.pos<e)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==i.Bytes)return t.push(this.readSFixed32());var e=c(this);t=t||[];while(this.pos<e)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==i.Bytes)return t.push(this.readFixed64());var e=c(this);t=t||[];while(this.pos<e)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==i.Bytes)return t.push(this.readSFixed64());var e=c(this);t=t||[];while(this.pos<e)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===i.Varint)while(this.buf[this.pos++]>127);else if(e===i.Bytes)this.pos=this.readVarint()+this.pos;else if(e===i.Fixed32)this.pos+=4;else{if(e!==i.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){var e=this.length||16;while(e<this.pos+t)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),T(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),T(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),T(this.buf,-1&t,this.pos),T(this.buf,Math.floor(t*a),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),T(this.buf,-1&t,this.pos),T(this.buf,Math.floor(t*a),this.pos+4),this.pos+=8},writeVarint:function(t){t=+t||0,t>268435455||t<0?f(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=R(this.buf,t,this.pos);var r=this.pos-e;r>=128&&g(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),n.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),n.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r<e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n>=128&&g(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,i.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,y,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,v,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,b,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,m,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,_,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,x,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,w,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,O,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,E,e)},writeBytesField:function(t,e){this.writeTag(t,i.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,i.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,i.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,i.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}},"7a09":function(t,e,r){"use strict";r.r(e);var n=r("521b"),i=r("9abc"),o=r("9769"),a=r("0af5"),s=r("abb7"),l=r("1c48"),u=r("9f5e"),c=r("fd4d"),h=r("bb6c"),f=r("b1a2"),p=r("c560"),d=r("5938"),g=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),y=function(t){function e(e,r){var n=t.call(this)||this;return n.flatMidpoint_=null,n.flatMidpointRevision_=-1,n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===r||Array.isArray(e[0])?n.setCoordinates(e,r):n.setFlatCoordinates(r,e),n}return g(e,t),e.prototype.appendCoordinate=function(t){this.flatCoordinates?Object(u["c"])(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){return n<Object(a["closestSquaredDistanceXY"])(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(o["e"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(o["d"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,r,n))},e.prototype.forEachSegment=function(t){return Object(c["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,e){if(this.layout!=n["a"].XYM&&this.layout!=n["a"].XYZM)return null;var r=void 0!==e&&e;return Object(f["b"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r)},e.prototype.getCoordinates=function(){return Object(h["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,e){return Object(f["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)},e.prototype.getLength=function(){return Object(d["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[];return r.length=Object(l["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r,0),new e(r,n["a"].XY)},e.prototype.getType=function(){return"LineString"},e.prototype.intersectsExtent=function(t){return Object(p["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(s["b"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(i["a"]);e["default"]=y},"7b4f":function(t,e,r){"use strict";e["a"]={PROPERTYCHANGE:"propertychange"}},"7cec":function(t,e,r){"use strict";var n=r("4ea4"),i=r("7037"),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),a=n(r("5bc3")),s=n(r("5831")),l=n(r("5bc33")),u=n(r("7a09")),c=n(r("304e")),h=d(r("b12f")),f=n(r("6ee6"));function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(p=function(t){return t?r:e})(t)}function d(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};if(e=p(e),e&&e.has(t))return e.get(t);var r,n,o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&((n=a?Object.getOwnPropertyDescriptor(t,r):null)&&(n.get||n.set)?Object.defineProperty(o,r,n):o[r]=t[r]);return o.default=t,e&&e.set(t,o),o}var g=function(){function t(e,r,n,i,a){(0,o.default)(this,t),this.darwType=e,this.callback=r,this.map=n,this.strokeColor=i,this.fillColor=a,this.isSetPosition=!1,this.sketch=null,this.measureTooltip=null,this.helpTooltip=null,this.source=new s.default,this.vector=h.getVector(this.source),this.source=new s.default,this.vector=h.getVector(this.source),this._init()}return(0,a.default)(t,[{key:"_init",value:function(){this._addInteraction()}},{key:"_addInteraction",value:function(){var t=this;this.pointerMoveHandler=function(e){var r;e.dragging||(r="点击绘制图形",t.sketch&&(r="单击继续绘制,双击结束测量"),t.helpTooltip.getDom().innerHTML=r,t.helpTooltip.setPosition(e.coordinate))},this.map.addLayer(this.vector),this.map.on("pointermove",this.pointerMoveHandler),this.draw=h.addInteraction(this.darwType,this.source,this.fillColor,this.strokeColor),this.map.addInteraction(this.draw),this._createMarker(),this._drawBinDrawstart(),this._drawBinDrawend()}},{key:"_createMarker",value:function(){this.measureTooltip=new f.default,this.measureTooltip.setOffset([0,-30]),this.map.addOverlay(this.measureTooltip.getMarker()),this.helpTooltip=new c.default,this.helpTooltip.setOffset([10,-60]),this.map.addOverlay(this.helpTooltip.getMarker())}},{key:"_drawBinDrawstart",value:function(){var t=this;this.draw.once("drawstart",(function(e){t.sketch=e.feature;var r=e.coordinate;t.sketch.getGeometry().on("change",(function(e){e=e.target,e instanceof l.default?r=e.getInteriorPoint().getCoordinates():e instanceof u.default&&(r=e.getLastCoordinate()),t.measureTooltip.getDom().innerHTML=h._arr[t.darwType](e),t.measureTooltip.setPosition(r)}))}))}},{key:"_drawBinDrawend",value:function(){var t=this;this.draw.once("drawend",(function(e){t.map.removeInteraction(t.draw),t.measureTooltip.getDom().appendChild(h.createSpan(t)),t.map.un("pointermove",t.pointerMoveHandler),t.map.removeOverlay(t.helpTooltip.getMarker()),t.helpTooltip=null,t.sketch=null,t.callback(e)}))}},{key:"_clear",value:function(){this.map.removeLayer(this.vector),this.map.removeOverlay(this.measureTooltip.getMarker()),this.measureTooltip=null,this.vector=null,this.source=null}},{key:"getDraw",value:function(){return this.vector}},{key:"clear",value:function(){this.draw&&(this.helpTooltip&&(this.map.removeOverlay(this.helpTooltip.getMarker()),this.helpTooltip=null),this.helpTooltip=null,this.sketch=null,this.map.removeInteraction(this.draw),this.map.un("pointermove",this.pointerMoveHandler),this.map.removeLayer(this.vector),this.measureTooltip&&this.map.removeOverlay(this.measureTooltip.getMarker()),this.measureTooltip=null,this.vector=null,this.source=null)}}]),t}();e.default=g},"7ec2":function(t,e,r){var n=r("7037")["default"];function i(){"use strict";
|
|
2
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e={},r=Object.prototype,o=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(j){c=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof d?e:d,o=Object.create(i.prototype),a=new T(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return P()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=f(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(j){return{type:"throw",arg:j}}}e.wrap=h;var p={};function d(){}function g(){}function y(){}var v={};c(v,s,(function(){return this}));var m=Object.getPrototypeOf,_=m&&m(m(C([])));_&&_!==r&&o.call(_,s)&&(v=_);var b=y.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(i,a,s,l){var u=f(t[i],t,a);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==n(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r("throw",t,s,l)}))}l(u.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function O(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function C(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:P}}function P(){return{value:void 0,done:!0}}return g.prototype=y,c(b,"constructor",y),c(y,"constructor",g),g.displayName=c(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},x(w.prototype),c(w.prototype,l,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new w(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),c(b,u,"Generator"),c(b,s,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=C,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},"7f98":function(t,e,r){"use strict";var n=r("5e31"),i=r("acc1"),o=r("0999"),a=r("6611"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r,a)||this;return s.crossOrigin_=i,s.src_=n,s.key=n,s.image_=new Image,null!==i&&(s.image_.crossOrigin=i),s.unlisten_=null,s.tileLoadFunction_=o,s}return s(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=i["a"].LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){this.state=i["a"].ERROR,this.unlistenImage_(),this.image_=u(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=i["a"].LOADED:this.state=i["a"].EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==i["a"].ERROR&&(this.state=i["a"].IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==i["a"].IDLE&&(this.state=i["a"].LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(a["b"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(n["a"]);function u(){var t=Object(o["a"])(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}e["a"]=l},"7fc9":function(t,e,r){"use strict";function n(t,e,r){return Math.min(Math.max(t,e),r)}r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"f",(function(){return o})),r.d(e,"k",(function(){return a})),r.d(e,"j",(function(){return s})),r.d(e,"i",(function(){return l})),r.d(e,"l",(function(){return u})),r.d(e,"m",(function(){return c})),r.d(e,"g",(function(){return h})),r.d(e,"e",(function(){return f})),r.d(e,"h",(function(){return d})),r.d(e,"d",(function(){return g})),r.d(e,"a",(function(){return y}));var i=function(){var t;return t="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2},t}(),o=function(){var t;return t="log2"in Math?Math.log2:function(t){return Math.log(t)*Math.LOG2E},t}();function a(t,e,r,n,i,o){var a=i-r,l=o-n;if(0!==a||0!==l){var u=((t-r)*a+(e-n)*l)/(a*a+l*l);u>1?(r=i,n=o):u>0&&(r+=a*u,n+=l*u)}return s(t,e,r,n)}function s(t,e,r,n){var i=r-t,o=n-e;return i*i+o*o}function l(t){for(var e=t.length,r=0;r<e;r++){for(var n=r,i=Math.abs(t[r][r]),o=r+1;o<e;o++){var a=Math.abs(t[o][r]);a>i&&(i=a,n=o)}if(0===i)return null;var s=t[n];t[n]=t[r],t[r]=s;for(var l=r+1;l<e;l++)for(var u=-t[l][r]/t[r][r],c=r;c<e+1;c++)r==c?t[l][c]=0:t[l][c]+=u*t[r][c]}for(var h=new Array(e),f=e-1;f>=0;f--){h[f]=t[f][e]/t[f][f];for(var p=f-1;p>=0;p--)t[p][e]-=t[p][f]*h[f]}return h}function u(t){return 180*t/Math.PI}function c(t){return t*Math.PI/180}function h(t,e){var r=t%e;return r*e<0?r+e:r}function f(t,e,r){return t+r*(e-t)}function p(t,e){var r=Math.pow(10,e);return Math.round(t*r)/r}function d(t,e){return Math.round(p(t,e))}function g(t,e){return Math.floor(p(t,e))}function y(t,e){return Math.ceil(p(t,e))}},"7fd1":function(t,e,r){"use strict";(function(t){function n(){var e='const e="function"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const t=Object(e);for(let e=1,n=arguments.length;e<n;++e){const n=arguments[e];if(null!=n)for(const e in n)n.hasOwnProperty(e)&&(t[e]=n[e])}return t},n="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"";n.indexOf("firefox");-1!==n.indexOf("safari")&&-1==n.indexOf("chrom")&&(n.indexOf("version/15.4")>=0||n.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==n.indexOf("webkit")&&n.indexOf("edge"),n.indexOf("macintosh"),"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&(self,WorkerGlobalScope),function(){let e=!1;try{const n=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,n),window.removeEventListener("_",null,n)}catch(e){}}(),new Array(6);const t="GENERATE_BUFFERS",o=[],r={vertexPosition:0,indexPosition:0};function i(e,n,t,o,r){e[n+0]=t,e[n+1]=o,e[n+2]=r}function s(e,n,t,s,f,c){const l=3+f,a=e[n+0],u=e[n+1],d=o;d.length=f;for(let t=0;t<d.length;t++)d[t]=e[n+2+t];let g=c?c.vertexPosition:0,x=c?c.indexPosition:0;const h=g/l;return i(t,g,a,u,0),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,1),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,2),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,3),d.length&&t.set(d,g+3),g+=l,s[x++]=h,s[x++]=h+1,s[x++]=h+3,s[x++]=h+1,s[x++]=h+2,s[x++]=h+3,r.vertexPosition=g,r.indexPosition=x,r}const f=self;f.onmessage=n=>{const o=n.data;if(o.type===t){const n=3,t=2,r=o.customAttributesCount,i=t+r,c=new Float32Array(o.renderInstructions),l=c.length/i,a=4*l*(r+n),u=new Uint32Array(6*l),d=new Float32Array(a);let g;for(let e=0;e<c.length;e+=i)g=s(c,e,d,u,r,g);const x=e({vertexBuffer:d.buffer,indexBuffer:u.buffer,renderInstructions:c.buffer},o);f.postMessage(x,[d.buffer,u.buffer,c.buffer])}};';return new Worker("undefined"===typeof Blob?"data:application/javascript;base64,"+t.from(e,"binary").toString("base64"):URL.createObjectURL(new Blob([e],{type:"application/javascript"})))}r.d(e,"a",(function(){return n}))}).call(this,r("b639").Buffer)},"800c":function(t,e,r){"use strict";function n(t){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,t&&"function"===typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}function i(t,e,r){var n=e===t.head?new s(r,null,e,t):new s(r,e,e.next,t);return null===n.next&&(t.tail=n),null===n.prev&&(t.head=n),t.length++,n}function o(t,e){t.tail=new s(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function a(t,e){t.head=new s(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function s(t,e,r,n){if(!(this instanceof s))return new s(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e},n.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},n.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},n.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)o(this,arguments[t]);return this.length},n.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)a(this,arguments[t]);return this.length},n.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},n.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},n.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;null!==r;n++)t.call(e,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;null!==r;n--)t.call(e,r.value,n,this),r=r.prev},n.prototype.get=function(t){for(var e=0,r=this.head;null!==r&&e<t;e++)r=r.next;if(e===t&&null!==r)return r.value},n.prototype.getReverse=function(t){for(var e=0,r=this.tail;null!==r&&e<t;e++)r=r.prev;if(e===t&&null!==r)return r.value},n.prototype.map=function(t,e){e=e||this;for(var r=new n,i=this.head;null!==i;)r.push(t.call(e,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(t,e){e=e||this;for(var r=new n,i=this.tail;null!==i;)r.push(t.call(e,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=t(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=t(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},n.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},n.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,o=this.head;null!==o&&i<t;i++)o=o.next;for(;null!==o&&i<e;i++,o=o.next)r.push(o.value);return r},n.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,o=this.tail;null!==o&&i>e;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,o=this.head;null!==o&&n<t;n++)o=o.next;var a=[];for(n=0;o&&n<e;n++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(n=0;n<r.length;n++)o=i(this,o,r[n]);return a},n.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};try{r("b75d")(n)}catch(l){}},8295:function(t,e,r){"use strict";var n=r("83a6"),i=r("29f6"),o=r("345d"),a="#333",s=function(){function t(t){var e=t||{};this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.scaleArray_=Object(o["d"])(void 0!==e.scale?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.justify_=e.justify,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new n["default"]({color:a}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:i["a"].POINT,this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding}return t.prototype.clone=function(){var e=this.getScale();return new t({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},t.prototype.getOverflow=function(){return this.overflow_},t.prototype.getFont=function(){return this.font_},t.prototype.getMaxAngle=function(){return this.maxAngle_},t.prototype.getPlacement=function(){return this.placement_},t.prototype.getOffsetX=function(){return this.offsetX_},t.prototype.getOffsetY=function(){return this.offsetY_},t.prototype.getFill=function(){return this.fill_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.getText=function(){return this.text_},t.prototype.getTextAlign=function(){return this.textAlign_},t.prototype.getJustify=function(){return this.justify_},t.prototype.getTextBaseline=function(){return this.textBaseline_},t.prototype.getBackgroundFill=function(){return this.backgroundFill_},t.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},t.prototype.getPadding=function(){return this.padding_},t.prototype.setOverflow=function(t){this.overflow_=t},t.prototype.setFont=function(t){this.font_=t},t.prototype.setMaxAngle=function(t){this.maxAngle_=t},t.prototype.setOffsetX=function(t){this.offsetX_=t},t.prototype.setOffsetY=function(t){this.offsetY_=t},t.prototype.setPlacement=function(t){this.placement_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setFill=function(t){this.fill_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=Object(o["d"])(void 0!==t?t:1)},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.setText=function(t){this.text_=t},t.prototype.setTextAlign=function(t){this.textAlign_=t},t.prototype.setJustify=function(t){this.justify_=t},t.prototype.setTextBaseline=function(t){this.textBaseline_=t},t.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},t.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},t.prototype.setPadding=function(t){this.padding_=t},t}();e["a"]=s},"82b0":function(t,e,r){"use strict";e["a"]={FRACTION:"fraction",PIXELS:"pixels"}},8343:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=r("15e0"),s=r("3a39"),l=r("ac29"),u=r("7660"),c=r("fa2b"),h=r("b12f"),f=function(){function t(e,r,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"rgba(255,201,14, 1)",a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"rgba(255,201,14, 0.4)";(0,i.default)(this,t),this._map=r,this._source=null,this._vector=null,this._modify=null,this._snap=null,this._draw=null,this._callback=n,this._strokeColor=o,this._fillColor=a,this._darwType=e,this._createVectorSource(),this._createVectorLayer(),this._createDraw(),this._addLayer(),this._addInteraction(),this._drawBinDrawend()}return(0,o.default)(t,[{key:"_createVectorSource",value:function(){this._source=new u.Vector}},{key:"_createVectorLayer",value:function(){this._vector=new c.Vector({source:this._source,style:new a.Style({fill:new a.Fill({color:this._fillColor}),stroke:new a.Stroke({color:this._strokeColor,width:1}),image:new a.Circle({radius:7,fill:new a.Fill({color:"#ffcc33"})})})})}},{key:"_createModify",value:function(){this._modify=new s.Modify({source:this._source})}},{key:"_createSnap",value:function(){this._snap=new s.Snap({source:this._source})}},{key:"_createDraw",value:function(){this._draw=new s.Draw({source:this._source,type:this._darwType,geometryFunction:(0,l.createBox)(),style:new a.Style({fill:new a.Fill({color:this._fillColor}),stroke:new a.Stroke({color:this._strokeColor,width:1}),image:new a.Circle({radius:7,fill:new a.Fill({color:"#ffcc33"})})})})}},{key:"_addLayer",value:function(){this._map.addLayer(this._vector)}},{key:"_addInteraction",value:function(){this._map.addInteraction(this._draw)}},{key:"_drawBinDrawend",value:function(){var t=this;this._draw.once("drawend",(function(e){t._map.removeInteraction(t._draw),t._callback&&t._callback(e)}),this)}},{key:"remove",value:function(){this._map.removeInteraction(this._draw),this._map.removeLayer(this._vector),this._modify=null,this._draw=null,this._vector=null}},{key:"removeLastPoint",value:function(){this._draw.removeLastPoint()}},{key:"getCoordinates",value:function(){return this._vector.getSource().getFeatures()[0].getGeometry().getCoordinates()}},{key:"getExtent",value:function(){return this._vector.getSource().getFeatures()[0].getGeometry().getExtent()}},{key:"getCenterPoint",value:function(){return(0,h.getCenterPoint)(this.getCoordinates())}},{key:"getGeometry",value:function(){return this._vector&&this._vector.getSource().getFeatures()[0]?this._vector.getSource().getFeatures()[0].getGeometry():null}}]),t}();e.default=f},"835b":function(t,e,r){"use strict";var n=r("1300"),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(t){function e(e){var r=this,i="latest"===n["a"]?n["a"]:"v"+n["a"].split("-")[0],o="Assertion failed. See https://openlayers.org/en/"+i+"/doc/errors/#"+e+" for details.";return r=t.call(this,o)||this,r.code=e,r.name="AssertionError",r.message=o,r}return i(e,t),e}(Error);e["a"]=o},"83a6":function(t,e,r){"use strict";r.r(e);var n=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0})},t.prototype.getColor=function(){return this.color_},t.prototype.setColor=function(t){this.color_=t},t}();e["default"]=n},8682:function(t,e,r){"use strict";r.r(e);var n=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},t.prototype.getColor=function(){return this.color_},t.prototype.getLineCap=function(){return this.lineCap_},t.prototype.getLineDash=function(){return this.lineDash_},t.prototype.getLineDashOffset=function(){return this.lineDashOffset_},t.prototype.getLineJoin=function(){return this.lineJoin_},t.prototype.getMiterLimit=function(){return this.miterLimit_},t.prototype.getWidth=function(){return this.width_},t.prototype.setColor=function(t){this.color_=t},t.prototype.setLineCap=function(t){this.lineCap_=t},t.prototype.setLineDash=function(t){this.lineDash_=t},t.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},t.prototype.setLineJoin=function(t){this.lineJoin_=t},t.prototype.setMiterLimit=function(t){this.miterLimit_=t},t.prototype.setWidth=function(t){this.width_=t},t}();e["default"]=n},"869f":function(t,e,r){"use strict";e["a"]={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},8778:function(t,e,r){"use strict";var n=r("0ec0"),i=r("01d4"),o=r("1300"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){function e(e,r,n,i){var o=t.call(this)||this;return o.extent=e,o.pixelRatio_=n,o.resolution=r,o.state=i,o}return a(e,t),e.prototype.changed=function(){this.dispatchEvent(i["a"].CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return Object(o["b"])()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){Object(o["b"])()},e}(n["a"]);e["a"]=s},"88da":function(t,e,r){"use strict";var n=r("521b"),i=r("9a44"),o=r("5bc33"),a=r("9abc"),s=r("9769"),l=r("0af5"),u=r("abb7"),c=r("9f5e"),h=r("0a9d"),f=r("bb6c"),p=r("c560"),d=r("4d98"),g=r("b589"),y=r("9159"),v=r("25f1"),m=r("1c48"),_=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),b=function(t){function e(e,r,n){var i=t.call(this)||this;if(i.endss_=[],i.flatInteriorPointsRevision_=-1,i.flatInteriorPoints_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,!n&&!Array.isArray(e[0])){for(var o=i.getLayout(),a=e,s=[],l=[],u=0,h=a.length;u<h;++u){var f=a[u];0===u&&(o=f.getLayout());for(var p=s.length,d=f.getEnds(),g=0,y=d.length;g<y;++g)d[g]+=p;Object(c["c"])(s,f.getFlatCoordinates()),l.push(d)}r=o,e=s,n=l}return void 0!==r&&n?(i.setFlatCoordinates(r,e),i.endss_=n):i.setCoordinates(e,r),i}return _(e,t),e.prototype.appendPolygon=function(t){var e;if(this.flatCoordinates){var r=this.flatCoordinates.length;Object(c["c"])(this.flatCoordinates,t.getFlatCoordinates()),e=t.getEnds().slice();for(var n=0,i=e.length;n<i;++n)e[n]+=r}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()},e.prototype.clone=function(){for(var t=this.endss_.length,r=new Array(t),n=0;n<t;++n)r[n]=this.endss_[n].slice();var i=new e(this.flatCoordinates.slice(),this.layout,r);return i.applyProperties(this),i},e.prototype.closestPointXY=function(t,e,r,n){return n<Object(l["closestSquaredDistanceXY"])(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(s["f"])(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(s["c"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.containsXY=function(t,e){return Object(v["d"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)},e.prototype.getArea=function(){return Object(g["c"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),Object(d["e"])(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,Object(f["c"])(e,0,this.endss_,this.stride)},e.prototype.getEndss=function(){return this.endss_},e.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var t=Object(y["a"])(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=Object(h["b"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},e.prototype.getInteriorPoints=function(){return new i["default"](this.getFlatInteriorPoints().slice(),n["a"].XYM)},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;Object(d["c"])(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Object(d["e"])(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[],i=[];return r.length=Object(m["d"])(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),r,0,i),new e(r,n["a"].XY,i)},e.prototype.getPolygon=function(t){if(t<0||this.endss_.length<=t)return null;var e;if(0===t)e=0;else{var r=this.endss_[t-1];e=r[r.length-1]}var n=this.endss_[t].slice(),i=n[n.length-1];if(0!==e)for(var a=0,s=n.length;a<s;++a)n[a]-=e;return new o["default"](this.flatCoordinates.slice(e,i),this.layout,n)},e.prototype.getPolygons=function(){for(var t=this.layout,e=this.flatCoordinates,r=this.endss_,n=[],i=0,a=0,s=r.length;a<s;++a){var l=r[a].slice(),u=l[l.length-1];if(0!==i)for(var c=0,h=l.length;c<h;++c)l[c]-=i;var f=new o["default"](e.slice(i,u),t,l);n.push(f),i=u}return n},e.prototype.getType=function(){return"MultiPolygon"},e.prototype.intersectsExtent=function(t){return Object(p["e"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);var r=Object(u["d"])(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===r.length)this.flatCoordinates.length=0;else{var n=r[r.length-1];this.flatCoordinates.length=0===n.length?0:n[n.length-1]}this.changed()},e}(a["a"]);e["a"]=b},"8af4":function(t,e,r){"use strict";r("4822")},"8cc5":function(t,e,r){"use strict";r.d(e,"c",(function(){return i})),r.d(e,"d",(function(){return o})),r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return s}));var n=r("7fc9");function i(t){return void 0!==t?0:void 0}function o(t){return void 0!==t?t:void 0}function a(t){var e=2*Math.PI/t;return function(t,r){return r?t:void 0!==t?(t=Math.floor(t/e+.5)*e,t):void 0}}function s(t){var e=t||Object(n["m"])(5);return function(t,r){return r?t:void 0!==t?Math.abs(t)<=e?0:t:void 0}}},"8d17":function(t,e,r){"use strict";r("e653")},"8d87":function(t,e,r){"use strict";var n=r("5116"),i=r("2c30"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(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=Object(i["b"])(t),r=e[0];this.forEach(function(t){t.tileCoord[0]!==r&&(this.remove(Object(i["d"])(t.tileCoord)),t.release())}.bind(this))}},e}(n["a"]);e["a"]=a},"8f37":function(t,e,r){"use strict";var n=r("e269"),i=r("fced"),o=r("1300"),a=r("a896"),s=r("0af5"),l=r("256f"),u=r("57cb"),c=r("bef8"),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=Object(a["c"])(),p=function(t){function e(){var e=t.call(this)||this;return e.extent_=Object(s["createEmpty"])(),e.extentRevision_=-1,e.simplifiedGeometryMaxMinSquaredTolerance=0,e.simplifiedGeometryRevision=0,e.simplifyTransformedInternal=Object(u["d"])((function(t,e,r){if(!r)return this.getSimplifiedGeometry(e);var n=this.clone();return n.applyTransform(r),n.getSimplifiedGeometry(e)})),e}return h(e,t),e.prototype.simplifyTransformed=function(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)},e.prototype.clone=function(){return Object(o["b"])()},e.prototype.closestPointXY=function(t,e,r,n){return Object(o["b"])()},e.prototype.containsXY=function(t,e){var r=this.getClosestPoint([t,e]);return r[0]===t&&r[1]===e},e.prototype.getClosestPoint=function(t,e){var r=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],r,1/0),r},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return Object(o["b"])()},e.prototype.getExtent=function(t){if(this.extentRevision_!=this.getRevision()){var e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&Object(s["createOrUpdateEmpty"])(e),this.extentRevision_=this.getRevision()}return Object(s["returnOrUpdate"])(this.extent_,t)},e.prototype.rotate=function(t,e){Object(o["b"])()},e.prototype.scale=function(t,e,r){Object(o["b"])()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return Object(o["b"])()},e.prototype.getType=function(){return Object(o["b"])()},e.prototype.applyTransform=function(t){Object(o["b"])()},e.prototype.intersectsExtent=function(t){return Object(o["b"])()},e.prototype.translate=function(t,e){Object(o["b"])()},e.prototype.transform=function(t,e){var r=Object(l["get"])(t),n=r.getUnits()==i["b"].TILE_PIXELS?function(t,n,i){var o=r.getExtent(),u=r.getWorldExtent(),h=Object(s["getHeight"])(u)/Object(s["getHeight"])(o);return Object(a["b"])(f,u[0],u[3],h,-h,0,0,0),Object(c["c"])(t,0,t.length,i,f,n),Object(l["getTransform"])(r,e)(t,n,i)}:Object(l["getTransform"])(r,e);return this.applyTransform(n),this},e}(n["a"]);e["a"]=p},9152:function(t,e){
|
|
3
|
-
|
|
4
|
-
e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,u=l>>1,c=-7,h=r?i-1:0,f=r?-1:1,p=t[e+h];for(h+=f,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=u}return(p?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+h>=1?f/l:f*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[r+p]=255&a,p+=d,a/=256,u-=8);t[r+p-d]|=128*g}},9159:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r("0af5");function i(t,e,r,i){for(var o=[],a=Object(n["createEmpty"])(),s=0,l=r.length;s<l;++s){var u=r[s];a=Object(n["createOrUpdateFromFlatCoordinates"])(t,e,u[0],i),o.push((a[0]+a[2])/2,(a[1]+a[3])/2),e=u[u.length-1]}return o}},"91b1":function(t,e,r){"use strict";r.r(e);var n=r("01d4"),i=r("7f98"),o=r("2efc"),a=r("8d87"),s=r("acc1"),l=r("54b9"),u=r("a504"),c=r("256f"),h=r("2c30"),f=r("089b"),p=r("1300"),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(n=e.interpolate),r=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:y,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:n,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this,r.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,r.tileClass=void 0!==e.tileClass?e.tileClass:i["a"],r.tileCacheForProjection={},r.tileGridForProjection={},r.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,r.renderReprojectionEdges_=!1,r}return d(e,t),e.prototype.canExpireCache=function(){if(!u["a"])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,r){if(u["a"]){var n=this.getTileCacheForProjection(e);for(var i in this.tileCache.expireCache(this.tileCache==n?r:{}),this.tileCacheForProjection){var o=this.tileCacheForProjection[i];o.expireCache(o==n?r:{})}}else t.prototype.expireCache.call(this,e,r)},e.prototype.getGutterForProjection=function(t){return u["a"]&&this.getProjection()&&t&&!Object(c["equivalent"])(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getKey=function(){var e=t.prototype.getKey.call(this);return this.getInterpolate()||(e+=":disable-interpolation"),e},e.prototype.getOpaque=function(e){return!(u["a"]&&this.getProjection()&&e&&!Object(c["equivalent"])(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(e){if(!u["a"])return t.prototype.getTileGridForProjection.call(this,e);var r=this.getProjection();if(!this.tileGrid||r&&!Object(c["equivalent"])(r,e)){var n=Object(p["c"])(e);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=Object(f["c"])(e)),this.tileGridForProjection[n]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(e){if(!u["a"])return t.prototype.getTileCacheForProjection.call(this,e);var r=this.getProjection();if(!r||Object(c["equivalent"])(r,e))return this.tileCache;var n=Object(p["c"])(e);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new a["a"](this.tileCache.highWaterMark)),this.tileCacheForProjection[n]},e.prototype.createTile_=function(t,e,r,i,o,a){var l=[t,e,r],u=this.getTileCoordForTileUrlFunction(l,o),c=u?this.tileUrlFunction(u,i,o):void 0,h=new this.tileClass(l,void 0!==c?s["a"].IDLE:s["a"].EMPTY,void 0!==c?c:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return h.key=a,h.addEventListener(n["a"].CHANGE,this.handleTileChange.bind(this)),h},e.prototype.getTile=function(t,e,r,n,i){var a=this.getProjection();if(u["a"]&&a&&i&&!Object(c["equivalent"])(a,i)){var s=this.getTileCacheForProjection(i),l=[t,e,r],f=void 0,p=Object(h["d"])(l);s.containsKey(p)&&(f=s.get(p));var d=this.getKey();if(f&&f.key==d)return f;var g=this.getTileGridForProjection(a),y=this.getTileGridForProjection(i),v=this.getTileCoordForTileUrlFunction(l,i),m=new o["a"](a,g,i,y,l,v,this.getTilePixelRatio(n),this.getGutter(),function(t,e,r,n){return this.getTileInternal(t,e,r,n,a)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return m.key=d,f?(m.interimTile=f,m.refreshInterimChain(),s.replace(p,m)):s.set(p,m),m}return this.getTileInternal(t,e,r,n,a||i)},e.prototype.getTileInternal=function(t,e,r,n,i){var o=null,a=Object(h["e"])(t,e,r),l=this.getKey();if(this.tileCache.containsKey(a)){if(o=this.tileCache.get(a),o.key!=l){var u=o;o=this.createTile_(t,e,r,n,i,l),u.getState()==s["a"].IDLE?o.interimTile=u.interimTile:o.interimTile=u,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(t,e,r,n,i,l),this.tileCache.set(a,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(u["a"]&&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(u["a"]){var r=Object(c["get"])(t);if(r){var n=Object(p["c"])(r);n in this.tileGridForProjection||(this.tileGridForProjection[n]=e)}}},e}(l["a"]);function y(t,e){t.getImage().src=e}e["default"]=g},"92fa":function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r("835b");function i(t,e){if(!t)throw new n["a"](e)}},"94df":function(t,e){function r(t,e,r){const n=r&&r.debug||!1;n&&console.log("getting "+e+" in "+t);const i="object"===typeof t?t.outer:t,o=e+'\\="([^"]*)"';n&&console.log("pattern:",o);const a=new RegExp(o),s=a.exec(i);if(n&&console.log("match:",s),s)return s[1]}t.exports=r,t.exports.default=r},"960f":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("a34a"))),o=n(r("970b")),a=n(r("5bc3")),s=n(r("5eee")),l=n(r("a226")),u=n(r("480c")),c=r("21bc"),h=function(t,e,r,n){return new(r=r||Promise)((function(i,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))},f=function(){function t(e){(0,o.default)(this,t),this._ele=null,this._mapOptians=null,this._styles=["Aerial","AerialWithLabelsOnDemand"],this._mapOptians=e}return(0,a.default)(t,[{key:"onLoad",value:function(t){return h(this,void 0,void 0,i.default.mark((function e(){var r,n=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._ele=t,r=this._init(),e.next=4,new Promise((function(e,i){var o=new s.default(Object.assign({target:t,layers:r},n._mapOptians));if(o)return o.addControl(new c.ScaleLine),void e(o);i(null)}));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"_init",value:function(){for(var t=[],e=0;e<this._styles.length;++e)t.push(new u.default({visible:!0,preload:1/0,source:new l.default({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:this._styles[e],culture:"zh-cn"})}));return t}}]),t}();e.default=f},"970b":function(t,e){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},9769:function(t,e,r){"use strict";r.d(e,"e",(function(){return o})),r.d(e,"a",(function(){return a})),r.d(e,"f",(function(){return s})),r.d(e,"d",(function(){return l})),r.d(e,"b",(function(){return u})),r.d(e,"c",(function(){return c}));var n=r("7fc9");function i(t,e,r,i,o,a,s){var l,u=t[e],c=t[e+1],h=t[r]-u,f=t[r+1]-c;if(0===h&&0===f)l=e;else{var p=((o-u)*h+(a-c)*f)/(h*h+f*f);if(p>1)l=r;else{if(p>0){for(var d=0;d<i;++d)s[d]=Object(n["e"])(t[e+d],t[r+d],p);return void(s.length=i)}l=e}}for(d=0;d<i;++d)s[d]=t[l+d];s.length=i}function o(t,e,r,i,o){var a=t[e],s=t[e+1];for(e+=i;e<r;e+=i){var l=t[e],u=t[e+1],c=Object(n["j"])(a,s,l,u);c>o&&(o=c),a=l,s=u}return o}function a(t,e,r,n,i){for(var a=0,s=r.length;a<s;++a){var l=r[a];i=o(t,e,l,n,i),e=l}return i}function s(t,e,r,n,i){for(var o=0,s=r.length;o<s;++o){var l=r[o];i=a(t,e,l,n,i),e=l[l.length-1]}return i}function l(t,e,r,o,a,s,l,u,c,h,f){if(e==r)return h;var p,d;if(0===a){if(d=Object(n["j"])(l,u,t[e],t[e+1]),d<h){for(p=0;p<o;++p)c[p]=t[e+p];return c.length=o,d}return h}var g=f||[NaN,NaN],y=e+o;while(y<r)if(i(t,y-o,y,o,l,u,g),d=Object(n["j"])(l,u,g[0],g[1]),d<h){for(h=d,p=0;p<o;++p)c[p]=g[p];c.length=o,y+=o}else y+=o*Math.max((Math.sqrt(d)-Math.sqrt(h))/a|0,1);if(s&&(i(t,r-o,e,o,l,u,g),d=Object(n["j"])(l,u,g[0],g[1]),d<h)){for(h=d,p=0;p<o;++p)c[p]=g[p];c.length=o}return h}function u(t,e,r,n,i,o,a,s,u,c,h){for(var f=h||[NaN,NaN],p=0,d=r.length;p<d;++p){var g=r[p];c=l(t,e,g,n,i,o,a,s,u,c,f),e=g}return c}function c(t,e,r,n,i,o,a,s,l,c,h){for(var f=h||[NaN,NaN],p=0,d=r.length;p<d;++p){var g=r[p];c=u(t,e,g,n,i,o,a,s,l,c,f),e=g[g.length-1]}return c}},"9a44":function(t,e,r){"use strict";r.r(e);var n=r("f403"),i=r("9abc"),o=r("0af5"),a=r("abb7"),s=r("9f5e"),l=r("bb6c"),u=r("7fc9"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(t){function e(e,r){var n=t.call(this)||this;return r&&!Array.isArray(e[0])?n.setFlatCoordinates(r,e):n.setCoordinates(e,r),n}return c(e,t),e.prototype.appendPoint=function(t){this.flatCoordinates?Object(s["c"])(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){if(n<Object(o["closestSquaredDistanceXY"])(this.getExtent(),t,e))return n;for(var i=this.flatCoordinates,a=this.stride,s=0,l=i.length;s<l;s+=a){var c=Object(u["j"])(t,e,i[s],i[s+1]);if(c<n){n=c;for(var h=0;h<a;++h)r[h]=i[s+h];r.length=a}}return n},e.prototype.getCoordinates=function(){return Object(l["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getPoint=function(t){var e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new n["default"](this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)},e.prototype.getPoints=function(){for(var t=this.flatCoordinates,e=this.layout,r=this.stride,i=[],o=0,a=t.length;o<a;o+=r){var s=new n["default"](t.slice(o,o+r),e);i.push(s)}return i},e.prototype.getType=function(){return"MultiPoint"},e.prototype.intersectsExtent=function(t){for(var e=this.flatCoordinates,r=this.stride,n=0,i=e.length;n<i;n+=r){var a=e[n],s=e[n+1];if(Object(o["containsXY"])(t,a,s))return!0}return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(a["b"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(i["a"]);e["default"]=h},"9a94":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.LOverlay=void 0,n(r("278c"))),o=n(r("970b")),a=n(r("5bc3")),s=n(r("0710")),l=n(r("bab7")),u=function(){function t(){(0,o.default)(this,t),this.ele=document.createElement("div"),this._lastType=0,this.x=0,this.y=0,this._overlay=new s.default({positioning:"center-center",element:this.ele,stopEvent:!1}),this.setHTMLElementStyle()}return(0,a.default)(t,[{key:"setId",value:function(t){this.ele.id=t}},{key:"setIndex",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:10;try{this.ele.parentNode.style.zIndex=t}catch(t){}}},{key:"setAttribute",value:function(t){t=JSON.stringify(t),this.ele.setAttribute("data-op",t)}},{key:"setOffset",value:function(t){t=(0,i.default)(t,2);var e=t[0];t=t[1];this._overlay.setOffset([e,t])}},{key:"getAttribute",value:function(){var t=null==(t=this.ele.dataset.op)?void 0:t.toString();return JSON.parse(t)}},{key:"setPosition",value:function(t){t=(0,i.default)(t,2);var e,r=t[0],n=(t=t[1],1<arguments.length&&void 0!==arguments[1]?arguments[1]:0),o=2<arguments.length&&void 0!==arguments[2]&&arguments[2];return this.x=r,this.y=t,n&&!o?(e=(n=l.default.gcj_encrypt(r,t)).lon,n=n.lat,void this._overlay.setPosition([e,n])):o?(n=(e=l.default.gcj_decrypt(this.x,this.y)).lon,o=e.lat,void this._overlay.setPosition([n,o])):void this._overlay.setPosition([r,t])}},{key:"getPosition",value:function(){var t;return 0<arguments.length&&void 0!==arguments[0]&&arguments[0]?[(t=l.default.gcj_decrypt(this.x,this.y)).lon,t.lat]:[this.x,this.y]}},{key:"getMarker",value:function(){return this._overlay}},{key:"setText",value:function(t){this.ele.innerText=t}},{key:"setHtml",value:function(t){this.ele.innerHTML=t}},{key:"getId",value:function(){return this.ele.id}},{key:"binEvent",value:function(t,e){this._fun=e,this.ele.addEventListener(t,this._fun,!1)}},{key:"hover",value:function(t,e){t&&this.ele.addEventListener("mouseover",t,!1),e&&this.ele.addEventListener("mouseout",e,!1)}},{key:"getDom",value:function(){return this.ele}},{key:"show",value:function(){this.ele.style.display="block"}},{key:"hide",value:function(){this.ele.style.display="none"}},{key:"startDrag",value:function(t){var e=this;e.ele.style.cursor="move",t.binDraftingEvent(),e._func=function(){t.serMarkerArr(e,this.id),e._overlay.set("dragging",!0)},e.binEvent("mousedown",e._func)}},{key:"stopDrag",value:function(t){this.ele.style.cursor="default",this.ele.removeEventListener("mousedown",this._func),t.removDraftingEvent()}},{key:"removEvent",value:function(t){this._fun&&this.ele.removeEventListener(t,this._fun)}},{key:"selectGPS",value:function(){var t,e;if(0<arguments.length&&void 0!==arguments[0]&&arguments[0])return t=(e=l.default.gcj_encrypt(this.x,this.y)).lon,e=e.lat,void this._overlay.setPosition([t,e]);this._overlay.setPosition([this.x,this.y])}}]),t}();e.LOverlay=u},"9abc":function(t,e,r){"use strict";r.d(e,"b",(function(){return h})),r.d(e,"c",(function(){return f}));var n=r("8f37"),i=r("521b"),o=r("1300"),a=r("0af5"),s=r("bef8"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(){var e=t.call(this)||this;return e.layout=i["a"].XY,e.stride=2,e.flatCoordinates=null,e}return l(e,t),e.prototype.computeExtent=function(t){return Object(a["createOrUpdateFromFlatCoordinates"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return Object(o["b"])()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=this.getSimplifiedGeometryInternal(t),r=e.getFlatCoordinates();return r.length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},e.prototype.getSimplifiedGeometryInternal=function(t){return this},e.prototype.getStride=function(){return this.stride},e.prototype.setFlatCoordinates=function(t,e){this.stride=h(t),this.layout=t,this.flatCoordinates=e},e.prototype.setCoordinates=function(t,e){Object(o["b"])()},e.prototype.setLayout=function(t,e,r){var n;if(t)n=h(t);else{for(var o=0;o<r;++o){if(0===e.length)return this.layout=i["a"].XY,void(this.stride=2);e=e[0]}n=e.length,t=c(n)}this.layout=t,this.stride=n},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,e){var r=this.getFlatCoordinates();if(r){var n=this.getStride();Object(s["a"])(r,0,r.length,n,t,e,r),this.changed()}},e.prototype.scale=function(t,e,r){var n=e;void 0===n&&(n=t);var i=r;i||(i=Object(a["getCenter"])(this.getExtent()));var o=this.getFlatCoordinates();if(o){var l=this.getStride();Object(s["b"])(o,0,o.length,l,t,n,i,o),this.changed()}},e.prototype.translate=function(t,e){var r=this.getFlatCoordinates();if(r){var n=this.getStride();Object(s["d"])(r,0,r.length,n,t,e,r),this.changed()}},e}(n["a"]);function c(t){var e;return 2==t?e=i["a"].XY:3==t?e=i["a"].XYZ:4==t&&(e=i["a"].XYZM),e}function h(t){var e;return t==i["a"].XY?e=2:t==i["a"].XYZ||t==i["a"].XYM?e=3:t==i["a"].XYZM&&(e=4),e}function f(t,e,r){var n=t.getFlatCoordinates();if(n){var i=t.getStride();return Object(s["c"])(n,0,n.length,i,e,r)}return null}e["a"]=u},"9b10":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("a226")),s=n(r("480c")),l=function(){function t(){(0,i.default)(this,t),this._layers=[],this._init()}return(0,o.default)(t,[{key:"_getRoad",value:function(){return new s.default({visible:!0,preload:1/0,zIndex:-10,source:new a.default({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:"Road",culture:"zh-cn"})})}},{key:"_Aerial",value:function(){return new s.default({visible:!0,preload:1/0,zIndex:-10,source:new a.default({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:"Aerial",culture:"zh-cn"})})}},{key:"_AerialWithLabelsOnDemand",value:function(){return new s.default({visible:!0,preload:1/0,zIndex:-10,source:new a.default({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:"AerialWithLabelsOnDemand",culture:"zh-cn"})})}},{key:"_init",value:function(){this._layers.push([this._getRoad()]);var t=this._Aerial();this._layers.push([t]),this._layers.push([t,this._AerialWithLabelsOnDemand()])}},{key:"layers",get:function(){return this._layers}}]),t}();e.default=l},"9b42":function(t,e){function r(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done);a=!0)if(o.push(n.value),e&&o.length===e)break}catch(l){s=!0,i=l}finally{try{a||null==r["return"]||r["return"]()}finally{if(s)throw i}}return o}}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"9c78":function(t,e,r){"use strict";r.d(e,"a",(function(){return g}));var n=r("5564"),i=r("e300"),o=r("183a"),a=r("cef7"),s=r("01d4"),l=r("7b4f"),u=r("92fa"),c=r("38f3"),h=r("0af5"),f=r("1300"),p=r("1e8d"),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(t){function e(e,r){var n=t.call(this,e)||this;return n.layer=r,n}return d(e,t),e}(a["a"]),y={LAYERS:"layers"},v=function(t){function e(e){var r=this,n=e||{},o=Object(c["a"])({},n);delete o.layers;var a=n.layers;return r=t.call(this,o)||this,r.on,r.once,r.un,r.layersListenerKeys_=[],r.listenerKeys_={},r.addChangeListener(y.LAYERS,r.handleLayersChanged_),a?Array.isArray(a)?a=new i["a"](a.slice(),{unique:!0}):Object(u["a"])("function"===typeof a.getArray,43):a=new i["a"](void 0,{unique:!0}),r.setLayers(a),r}return d(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(p["c"]),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push(Object(p["a"])(t,o["a"].ADD,this.handleLayersAdd_,this),Object(p["a"])(t,o["a"].REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(p["c"]);Object(c["b"])(this.listenerKeys_);for(var r=t.getArray(),n=0,i=r.length;n<i;n++){var a=r[n];this.registerLayerListeners_(a),this.dispatchEvent(new g("addlayer",a))}this.changed()},e.prototype.registerLayerListeners_=function(t){var r=[Object(p["a"])(t,l["a"].PROPERTYCHANGE,this.handleLayerChange_,this),Object(p["a"])(t,s["a"].CHANGE,this.handleLayerChange_,this)];t instanceof e&&r.push(Object(p["a"])(t,"addlayer",this.handleLayerGroupAdd_,this),Object(p["a"])(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[Object(f["c"])(t)]=r},e.prototype.handleLayerGroupAdd_=function(t){this.dispatchEvent(new g("addlayer",t.layer))},e.prototype.handleLayerGroupRemove_=function(t){this.dispatchEvent(new g("removelayer",t.layer))},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new g("addlayer",e)),this.changed()},e.prototype.handleLayersRemove_=function(t){var e=t.element,r=Object(f["c"])(e);this.listenerKeys_[r].forEach(p["c"]),delete this.listenerKeys_[r],this.dispatchEvent(new g("removelayer",e)),this.changed()},e.prototype.getLayers=function(){return this.get(y.LAYERS)},e.prototype.setLayers=function(t){var e=this.getLayers();if(e)for(var r=e.getArray(),n=0,i=r.length;n<i;++n)this.dispatchEvent(new g("removelayer",r[n]));this.set(y.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:[],r=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));var n=this.getLayerState(),i=n.zIndex;t||void 0!==n.zIndex||(i=0);for(var o=r,a=e.length;o<a;o++){var s=e[o];s.opacity*=n.opacity,s.visible=s.visible&&n.visible,s.maxResolution=Math.min(s.maxResolution,n.maxResolution),s.minResolution=Math.max(s.minResolution,n.minResolution),s.minZoom=Math.max(s.minZoom,n.minZoom),s.maxZoom=Math.min(s.maxZoom,n.maxZoom),void 0!==n.extent&&(void 0!==s.extent?s.extent=Object(h["getIntersection"])(s.extent,n.extent):s.extent=n.extent),void 0===s.zIndex&&(s.zIndex=i)}return e},e.prototype.getSourceState=function(){return"ready"},e}(n["a"]);e["b"]=v},"9cff":function(t,e,r){"use strict";r.d(e,"a",(function(){return s})),r.d(e,"b",(function(){return l})),r.d(e,"d",(function(){return u})),r.d(e,"c",(function(){return c}));var n=r("92fa"),i=r("7fc9"),o=r("2c30");function a(t,e){var r=/\{z\}/g,i=/\{x\}/g,o=/\{y\}/g,a=/\{-y\}/g;return function(s,l,u){return s?t.replace(r,s[0].toString()).replace(i,s[1].toString()).replace(o,s[2].toString()).replace(a,(function(){var t=s[0],r=e.getFullTileRange(t);Object(n["a"])(r,55);var i=r.getHeight()-s[2]-1;return i.toString()})):void 0}}function s(t,e){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=a(t[i],e);return l(n)}function l(t){return 1===t.length?t[0]:function(e,r,n){if(e){var a=Object(o["f"])(e),s=Object(i["g"])(a,t.length);return t[s](e,r,n)}}}function u(t,e,r){}function c(t){var e=[],r=/\{([a-z])-([a-z])\}/.exec(t);if(r){var n=r[1].charCodeAt(0),i=r[2].charCodeAt(0),o=void 0;for(o=n;o<=i;++o)e.push(t.replace(r[0],String.fromCharCode(o)));return e}if(r=/\{(\d+)-(\d+)\}/.exec(t),r){for(var a=parseInt(r[2],10),s=parseInt(r[1],10);s<=a;s++)e.push(t.replace(r[0],s.toString()));return e}return e.push(t),e}},"9f5e":function(t,e,r){"use strict";function n(t,e,r){var n,o,a=r||i,s=0,l=t.length,u=!1;while(s<l)n=s+(l-s>>1),o=+a(t[n],e),o<0?s=n+1:(l=n,u=!o);return u?s:~s}function i(t,e){return t>e?1:t<e?-1:0}function o(t,e){return t.indexOf(e)>=0}function a(t,e,r){var n=t.length;if(t[0]<=e)return 0;if(e<=t[n-1])return n-1;var i=void 0;if(r>0){for(i=1;i<n;++i)if(t[i]<e)return i-1}else if(r<0){for(i=1;i<n;++i)if(t[i]<=e)return i}else for(i=1;i<n;++i){if(t[i]==e)return i;if(t[i]<e)return"function"===typeof r?r(e,t[i-1],t[i])>0?i-1:i:t[i-1]-e<e-t[i]?i-1:i}return n-1}function s(t,e,r){while(e<r){var n=t[e];t[e]=t[r],t[r]=n,++e,--r}}function l(t,e){for(var r=Array.isArray(e)?e:[e],n=r.length,i=0;i<n;i++)t[t.length]=r[i]}function u(t,e){for(var r,n=t.length>>>0,i=0;i<n;i++)if(r=t[i],e(r,i,t))return r;return null}function c(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function h(t,e){var r,n=!t.every((function(n,i){return r=i,!e(n,i,t)}));return n?r:-1}function f(t,e,r){var n=e||i;return t.every((function(e,i){if(0===i)return!0;var o=n(t[i-1],e);return!(o>0||r&&0===o)}))}r.d(e,"a",(function(){return n})),r.d(e,"i",(function(){return i})),r.d(e,"f",(function(){return o})),r.d(e,"h",(function(){return a})),r.d(e,"j",(function(){return s})),r.d(e,"c",(function(){return l})),r.d(e,"d",(function(){return u})),r.d(e,"b",(function(){return c})),r.d(e,"e",(function(){return h})),r.d(e,"g",(function(){return f}))},a194:function(t,e,r){"use strict";e["a"]={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"}},a226:function(t,e,r){"use strict";r.r(e),r.d(e,"quadKey",(function(){return h}));var n=r("91b1"),i=r("0af5"),o=r("9cff"),a=r("2c30"),s=r("089b"),l=r("256f"),u=r("e4e0"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function h(t){var e,r,n=t[0],i=new Array(n),o=1<<n-1;for(e=0;e<n;++e)r=48,t[1]&o&&(r+=1),t[2]&o&&(r+=2),i[e]=String.fromCharCode(r),o>>=1;return i.join("")}var f='<a class="ol-attribution-bing-tos" href="https://www.microsoft.com/maps/product/terms.html" target="_blank">Terms of Use</a>',p=function(t){function e(e){var r=this,n=void 0!==e.hidpi&&e.hidpi,i=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(i=e.interpolate),r=t.call(this,{cacheSize:e.cacheSize,crossOrigin:"anonymous",interpolate:i,opaque:!0,projection:Object(l["get"])("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,tilePixelRatio:n?2:1,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:e.zDirection})||this,r.hidpi_=n,r.culture_=void 0!==e.culture?e.culture:"en-us",r.maxZoom_=void 0!==e.maxZoom?e.maxZoom:-1,r.apiKey_=e.key,r.imagerySet_=e.imagerySet;var o="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+r.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+r.apiKey_+"&c="+r.culture_;return Object(u["a"])(o,r.handleImageryMetadataResponse.bind(r),void 0,"jsonp"),r}return c(e,t),e.prototype.getApiKey=function(){return this.apiKey_},e.prototype.getImagerySet=function(){return this.imagerySet_},e.prototype.handleImageryMetadataResponse=function(t){if(200==t.statusCode&&"OK"==t.statusDescription&&"ValidCredentials"==t.authenticationResultCode&&1==t.resourceSets.length&&1==t.resourceSets[0].resources.length){var e=t.resourceSets[0].resources[0],r=-1==this.maxZoom_?e.zoomMax:this.maxZoom_,n=this.getProjection(),u=Object(s["b"])(n),c=this.hidpi_?2:1,p=e.imageWidth==e.imageHeight?e.imageWidth/c:[e.imageWidth/c,e.imageHeight/c],d=Object(s["a"])({extent:u,minZoom:e.zoomMin,maxZoom:r,tileSize:p});this.tileGrid=d;var g=this.culture_,y=this.hidpi_;if(this.tileUrlFunction=Object(o["b"])(e.imageUrlSubdomains.map((function(t){var r=[0,0,0],n=e.imageUrl.replace("{subdomain}",t).replace("{culture}",g);return function(t,e,i){if(t){Object(a["a"])(t[0],t[1],t[2],r);var o=n;return y&&(o+="&dpi=d1&device=mobile"),o.replace("{quadkey}",h(r))}}}))),e.imageryProviders){var v=Object(l["getTransformFromProjections"])(Object(l["get"])("EPSG:4326"),this.getProjection());this.setAttributions(function(t){var r=[],n=t.viewState,o=this.getTileGrid(),a=o.getZForResolution(n.resolution,this.zDirection),s=o.getTileCoordForCoordAndZ(n.center,a),l=s[0];return e.imageryProviders.map((function(e){for(var n=!1,o=e.coverageAreas,a=0,s=o.length;a<s;++a){var u=o[a];if(l>=u.zoomMin&&l<=u.zoomMax){var c=u.bbox,h=[c[1],c[0],c[3],c[2]],f=Object(i["applyTransform"])(h,v);if(Object(i["intersects"])(f,t.extent)){n=!0;break}}}n&&r.push(e.attribution)})),r.push(f),r}.bind(this))}this.setState("ready")}else this.setState("error")},e}(n["default"]);e["default"]=p},a2c7:function(t,e,r){"use strict";r.r(e),r.d(e,"createCenterConstraint",(function(){return R})),r.d(e,"createResolutionConstraint",(function(){return M})),r.d(e,"createRotationConstraint",(function(){return A})),r.d(e,"isNoopAnimation",(function(){return L}));var n=r("e269"),i=r("fced"),o=r("496f"),a=r("4384"),s=r("0414"),l=r("256f"),u=r("57cb"),c=r("a568"),h=r("92fa"),f=r("38f3"),p=r("7fc9");function d(t,e,r){return function(n,i,o,a,s){if(n){if(!i&&!e)return n;var l=e?0:o[0]*i,u=e?0:o[1]*i,c=s?s[0]:0,h=s?s[1]:0,f=t[0]+l/2+c,d=t[2]-l/2+c,g=t[1]+u/2+h,y=t[3]-u/2+h;f>d&&(f=(d+f)/2,d=f),g>y&&(g=(y+g)/2,y=g);var v=Object(p["b"])(n[0],f,d),m=Object(p["b"])(n[1],g,y);if(a&&r&&i){var _=30*i;v+=-_*Math.log(1+Math.max(0,f-n[0])/_)+_*Math.log(1+Math.max(0,n[0]-d)/_),m+=-_*Math.log(1+Math.max(0,g-n[1])/_)+_*Math.log(1+Math.max(0,n[1]-y)/_)}return[v,m]}}}function g(t){return t}var y=r("0af5"),v=r("9f5e");function m(t,e,r,n){var i=Object(y["getWidth"])(e)/r[0],o=Object(y["getHeight"])(e)/r[1];return n?Math.min(t,Math.max(i,o)):Math.min(t,Math.min(i,o))}function _(t,e,r){var n=Math.min(t,e),i=50;return n*=Math.log(1+i*Math.max(0,t/e-1))/i+1,r&&(n=Math.max(n,r),n/=Math.log(1+i*Math.max(0,r/t-1))/i+1),Object(p["b"])(n,r/2,2*e)}function b(t,e,r,n){return function(i,o,a,s){if(void 0!==i){var l=t[0],u=t[t.length-1],c=r?m(l,r,a,n):l;if(s){var h=void 0===e||e;return h?_(i,c,u):Object(p["b"])(i,u,c)}var f=Math.min(c,i),d=Math.floor(Object(v["h"])(t,f,o));return t[d]>c&&d<t.length-1?t[d+1]:t[d]}}}function x(t,e,r,n,i,o){return function(a,s,l,u){if(void 0!==a){var c=i?m(e,i,l,o):e,h=void 0!==r?r:0;if(u){var f=void 0===n||n;return f?_(a,c,h):Object(p["b"])(a,h,c)}var d=1e-9,g=Math.ceil(Math.log(e/c)/Math.log(t)-d),y=-s*(.5-d)+.5,v=Math.min(c,a),b=Math.floor(Math.log(e/v)/Math.log(t)+y),x=Math.max(g,b),w=e/Math.pow(t,x);return Object(p["b"])(w,h,c)}}}function w(t,e,r,n,i){return function(o,a,s,l){if(void 0!==o){var u=n?m(t,n,s,i):t,c=void 0===r||r;return c&&l?_(o,u,e):Object(p["b"])(o,e,u)}}}var O=r("8cc5"),E=r("ca42"),S=r("5bc33"),T=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),C=0,P=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n=Object(f["a"])({},e);return r.hints_=[0,0],r.animations_=[],r.updateAnimationKey_,r.projection_=Object(l["createProjection"])(n.projection,"EPSG:3857"),r.viewportSize_=[100,100],r.targetCenter_=null,r.targetResolution_,r.targetRotation_,r.nextCenter_=null,r.nextResolution_,r.nextRotation_,r.cancelAnchor_=void 0,n.projection&&Object(l["disableCoordinateWarning"])(),n.center&&(n.center=Object(l["fromUserCoordinate"])(n.center,r.projection_)),n.extent&&(n.extent=Object(l["fromUserExtent"])(n.extent,r.projection_)),r.applyOptions_(n),r}return T(e,t),e.prototype.applyOptions_=function(t){var e=Object(f["a"])({},t);for(var r in a["a"])delete e[r];this.setProperties(e,!0);var n=M(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=R(t),o=n.constraint,s=A(t);this.constraints_={center:i,resolution:o,rotation:s},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)},Object.defineProperty(e.prototype,"padding",{get:function(){return this.padding_},set:function(t){var e=this.padding_;this.padding_=t;var r=this.getCenter();if(r){var n=t||[0,0,0,0];e=e||[0,0,0,0];var i=this.getResolution(),o=i/2*(n[3]-e[3]+e[1]-n[1]),a=i/2*(n[0]-e[0]+e[2]-n[2]);this.setCenterInternal([r[0]+o,r[1]-a])}},enumerable:!1,configurable:!0}),e.prototype.getUpdatedOptions_=function(t){var e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object(f["a"])({},e,t)},e.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var e=new Array(arguments.length),r=0;r<e.length;++r){var n=arguments[r];n.center&&(n=Object(f["a"])({},n),n.center=Object(l["fromUserCoordinate"])(n.center,this.getProjection())),n.anchor&&(n=Object(f["a"])({},n),n.anchor=Object(l["fromUserCoordinate"])(n.anchor,this.getProjection())),e[r]=n}this.animateInternal.apply(this,e)},e.prototype.animateInternal=function(t){var e,r=arguments.length;r>1&&"function"===typeof arguments[r-1]&&(e=arguments[r-1],--r);for(var n=0;n<r&&!this.isDef();++n){var i=arguments[n];i.center&&this.setCenterInternal(i.center),void 0!==i.zoom?this.setZoom(i.zoom):i.resolution&&this.setResolution(i.resolution),void 0!==i.rotation&&this.setRotation(i.rotation)}if(n!==r){for(var a=Date.now(),s=this.targetCenter_.slice(),l=this.targetResolution_,u=this.targetRotation_,c=[];n<r;++n){var h=arguments[n],f={start:a,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||E["c"],callback:e};if(h.center&&(f.sourceCenter=s,f.targetCenter=h.center.slice(),s=f.targetCenter),void 0!==h.zoom?(f.sourceResolution=l,f.targetResolution=this.getResolutionForZoom(h.zoom),l=f.targetResolution):h.resolution&&(f.sourceResolution=l,f.targetResolution=h.resolution,l=f.targetResolution),void 0!==h.rotation){f.sourceRotation=u;var d=Object(p["g"])(h.rotation-u+Math.PI,2*Math.PI)-Math.PI;f.targetRotation=u+d,u=f.targetRotation}L(f)?f.complete=!0:a+=f.duration,c.push(f)}this.animations_.push(c),this.setHint(o["a"].ANIMATING,1),this.updateAnimations_()}else e&&j(e,!0)},e.prototype.getAnimating=function(){return this.hints_[o["a"].ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[o["a"].INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint(o["a"].ANIMATING,-this.hints_[o["a"].ANIMATING]);for(var e=0,r=this.animations_.length;e<r;++e){var n=this.animations_[e];if(n[0].callback&&j(n[0].callback,!1),!t)for(var i=0,a=n.length;i<a;++i){var s=n[i];if(!s.complete){t=s.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,r=this.animations_.length-1;r>=0;--r){for(var n=this.animations_[r],i=!0,a=0,s=n.length;a<s;++a){var l=n[a];if(!l.complete){var u=t-l.start,c=l.duration>0?u/l.duration:1;c>=1?(l.complete=!0,c=1):i=!1;var h=l.easing(c);if(l.sourceCenter){var f=l.sourceCenter[0],d=l.sourceCenter[1],g=l.targetCenter[0],y=l.targetCenter[1];this.nextCenter_=l.targetCenter;var v=f+h*(g-f),m=d+h*(y-d);this.targetCenter_=[v,m]}if(l.sourceResolution&&l.targetResolution){var _=1===h?l.targetResolution:l.sourceResolution+h*(l.targetResolution-l.sourceResolution);if(l.anchor){var b=this.getViewportSize_(this.getRotation()),x=this.constraints_.resolution(_,0,b,!0);this.targetCenter_=this.calculateCenterZoom(x,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=_,this.applyTargetState_(!0)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var w=1===h?Object(p["g"])(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+h*(l.targetRotation-l.sourceRotation);if(l.anchor){var O=this.constraints_.rotation(w,!0);this.targetCenter_=this.calculateCenterRotate(O,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=w}if(this.applyTargetState_(!0),e=!0,!l.complete)break}}if(i){this.animations_[r]=null,this.setHint(o["a"].ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var E=n[0].callback;E&&j(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 r,n=this.getCenterInternal();return void 0!==n&&(r=[n[0]-e[0],n[1]-e[1]],Object(c["h"])(r,t-this.getRotation()),Object(c["a"])(r,e)),r},e.prototype.calculateCenterZoom=function(t,e){var r,n=this.getCenterInternal(),i=this.getResolution();if(void 0!==n&&void 0!==i){var o=e[0]-t*(e[0]-n[0])/i,a=e[1]-t*(e[1]-n[1])/i;r=[o,a]}return r},e.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var r=e[0],n=e[1];return[Math.abs(r*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(r*Math.sin(t))+Math.abs(n*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(l["toUserCoordinate"])(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(a["a"].CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("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(l["toUserExtent"])(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSizeMinusPadding_(),r=this.getCenterInternal();Object(h["a"])(r,1);var n=this.getResolution();Object(h["a"])(void 0!==n,2);var i=this.getRotation();return Object(h["a"])(void 0!==i,3),Object(y["getForViewAndSize"])(r,n,i,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(a["a"].RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal(Object(l["fromUserExtent"])(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var r=e||this.getViewportSizeMinusPadding_(),n=Object(y["getWidth"])(t)/r[0],i=Object(y["getHeight"])(t)/r[1];return Math.max(n,i)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,r=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(r/n)/Math.log(e);return function(t){var n=r/Math.pow(e,t*i);return n}},e.prototype.getRotation=function(){return this.get(a["a"].ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),r=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(r/n)/e;return function(t){var n=Math.log(r/t)/e/i;return n}},e.prototype.getViewportSizeMinusPadding_=function(t){var e=this.getViewportSize_(t),r=this.padding_;return r&&(e=[e[0]-r[1]-r[3],e[1]-r[0]-r[2]]),e},e.prototype.getState=function(){var t=this.getProjection(),e=this.getResolution(),r=this.getRotation(),n=this.getCenterInternal(),i=this.padding_;if(i){var o=this.getViewportSizeMinusPadding_();n=I(n,this.getViewportSize_(),[o[0]/2+i[3],o[1]/2+i[0]],e,r)}return{center:n.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:r,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,r,n=this.minZoom_||0;if(this.resolutions_){var i=Object(v["h"])(this.resolutions_,t,1);n=i,e=this.resolutions_[i],r=i==this.resolutions_.length-1?2:e/this.resolutions_[i+1]}else e=this.maxResolution_,r=this.zoomFactor_;return n+Math.log(e/t)/Math.log(r)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=Object(p["b"])(Math.floor(t),0,this.resolutions_.length-2),r=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(r,Object(p["b"])(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var r;if(Object(h["a"])(Array.isArray(t)||"function"===typeof t.getSimplifiedGeometry,24),Array.isArray(t)){Object(h["a"])(!Object(y["isEmpty"])(t),25);var n=Object(l["fromUserExtent"])(t,this.getProjection());r=Object(S["fromExtent"])(n)}else if("Circle"===t.getType()){n=Object(l["fromUserExtent"])(t.getExtent(),this.getProjection());r=Object(S["fromExtent"])(n),r.rotate(this.getRotation(),Object(y["getCenter"])(n))}else{var i=Object(l["getUserProjection"])();r=i?t.clone().transform(i,this.getProjection()):t}this.fitInternal(r,e)},e.prototype.rotatedExtentForGeometry=function(t){for(var e=this.getRotation(),r=Math.cos(e),n=Math.sin(-e),i=t.getFlatCoordinates(),o=t.getStride(),a=1/0,s=1/0,l=-1/0,u=-1/0,c=0,h=i.length;c<h;c+=o){var f=i[c]*r-i[c+1]*n,p=i[c]*n+i[c+1]*r;a=Math.min(a,f),s=Math.min(s,p),l=Math.max(l,f),u=Math.max(u,p)}return[a,s,l,u]},e.prototype.fitInternal=function(t,e){var r=e||{},n=r.size;n||(n=this.getViewportSizeMinusPadding_());var i,o=void 0!==r.padding?r.padding:[0,0,0,0],a=void 0!==r.nearest&&r.nearest;i=void 0!==r.minResolution?r.minResolution:void 0!==r.maxZoom?this.getResolutionForZoom(r.maxZoom):0;var s=this.rotatedExtentForGeometry(t),l=this.getResolutionForExtentInternal(s,[n[0]-o[1]-o[3],n[1]-o[0]-o[2]]);l=isNaN(l)?i:Math.max(l,i),l=this.getConstrainedResolution(l,a?0:1);var c=this.getRotation(),h=Math.sin(c),f=Math.cos(c),p=Object(y["getCenter"])(s);p[0]+=(o[1]-o[3])/2*l,p[1]+=(o[0]-o[2])/2*l;var d=p[0]*f-p[1]*h,g=p[1]*f+p[0]*h,v=this.getConstrainedCenter([d,g],l),m=r.callback?r.callback:u["c"];void 0!==r.duration?this.animateInternal({resolution:l,center:v,duration:r.duration,easing:r.easing},m):(this.targetResolution_=l,this.targetCenter_=v,this.applyTargetState_(!1,!0),j(m,!0))},e.prototype.centerOn=function(t,e,r){this.centerOnInternal(Object(l["fromUserCoordinate"])(t,this.getProjection()),e,r)},e.prototype.centerOnInternal=function(t,e,r){this.setCenterInternal(I(t,e,r,this.getResolution(),this.getRotation()))},e.prototype.calculateCenterShift=function(t,e,r,n){var i,o=this.padding_;if(o&&t){var a=this.getViewportSizeMinusPadding_(-r),s=I(t,n,[a[0]/2+o[3],a[1]/2+o[0]],e,r);i=[t[0]-s[0],t[1]-s[1]]}return i},e.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},e.prototype.adjustCenter=function(t){var e=Object(l["toUserCoordinate"])(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 r=e&&Object(l["fromUserCoordinate"])(e,this.getProjection());this.adjustResolutionInternal(t,r)},e.prototype.adjustResolutionInternal=function(t,e){var r=this.getAnimating()||this.getInteracting(),n=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*t,0,n,r);e&&(this.targetCenter_=this.calculateCenterZoom(i,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(l["fromUserCoordinate"])(e,this.getProjection())),this.adjustRotationInternal(t,e)},e.prototype.adjustRotationInternal=function(t,e){var r=this.getAnimating()||this.getInteracting(),n=this.constraints_.rotation(this.targetRotation_+t,r);e&&(this.targetCenter_=this.calculateCenterRotate(n,e)),this.targetRotation_+=t,this.applyTargetState_()},e.prototype.setCenter=function(t){this.setCenterInternal(t?Object(l["fromUserCoordinate"])(t,this.getProjection()):t)},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 r=this.getAnimating()||this.getInteracting()||e,n=this.constraints_.rotation(this.targetRotation_,r),i=this.getViewportSize_(n),o=this.constraints_.resolution(this.targetResolution_,0,i,r),s=this.constraints_.center(this.targetCenter_,o,i,r,this.calculateCenterShift(this.targetCenter_,o,n,i));this.get(a["a"].ROTATION)!==n&&this.set(a["a"].ROTATION,n),this.get(a["a"].RESOLUTION)!==o&&(this.set(a["a"].RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),s&&this.get(a["a"].CENTER)&&Object(c["f"])(this.get(a["a"].CENTER),s)||this.set(a["a"].CENTER,s),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0},e.prototype.resolveConstraints=function(t,e,r){var n=void 0!==t?t:200,i=e||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(o),s=this.constraints_.resolution(this.targetResolution_,i,a),l=this.constraints_.center(this.targetCenter_,s,a,!1,this.calculateCenterShift(this.targetCenter_,s,o,a));if(0===n&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=l,void this.applyTargetState_();var u=r||(0===n?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&Object(c["f"])(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:l,resolution:s,duration:n,easing:E["b"],anchor:u}))},e.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(o["a"].INTERACTING,1)},e.prototype.endInteraction=function(t,e,r){var n=r&&Object(l["fromUserCoordinate"])(r,this.getProjection());this.endInteractionInternal(t,e,n)},e.prototype.endInteractionInternal=function(t,e,r){this.setHint(o["a"].INTERACTING,-1),this.resolveConstraints(t,e,r)},e.prototype.getConstrainedCenter=function(t,e){var r=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),r)},e.prototype.getConstrainedZoom=function(t,e){var r=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(r,e))},e.prototype.getConstrainedResolution=function(t,e){var r=e||0,n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,r,n)},e}(n["a"]);function j(t,e){setTimeout((function(){t(e)}),0)}function R(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return d(t.extent,t.constrainOnlyCenter,e)}var r=Object(l["createProjection"])(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&r.isGlobal()){var n=r.getExtent().slice();return n[0]=-1/0,n[2]=1/0,d(n,!1,!1)}return g}function M(t){var e,r,n,o=28,a=2,u=void 0!==t.minZoom?t.minZoom:C,c=void 0!==t.maxZoom?t.maxZoom:o,h=void 0!==t.zoomFactor?t.zoomFactor:a,f=void 0!==t.multiWorld&&t.multiWorld,p=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,d=void 0!==t.showFullExtent&&t.showFullExtent,g=Object(l["createProjection"])(t.projection,"EPSG:3857"),v=g.getExtent(),m=t.constrainOnlyCenter,_=t.extent;if(f||_||!g.isGlobal()||(m=!1,_=v),void 0!==t.resolutions){var O=t.resolutions;r=O[u],n=void 0!==O[c]?O[c]:O[O.length-1],e=t.constrainResolution?b(O,p,!m&&_,d):w(r,n,p,!m&&_,d)}else{var E=v?Math.max(Object(y["getWidth"])(v),Object(y["getHeight"])(v)):360*l["METERS_PER_UNIT"][i["b"].DEGREES]/g.getMetersPerUnit(),S=E/s["b"]/Math.pow(a,C),T=S/Math.pow(a,o-C);r=t.maxResolution,void 0!==r?u=0:r=S/Math.pow(h,u),n=t.minResolution,void 0===n&&(n=void 0!==t.maxZoom?void 0!==t.maxResolution?r/Math.pow(h,c):S/Math.pow(h,c):T),c=u+Math.floor(Math.log(r/n)/Math.log(h)),n=r/Math.pow(h,c-u),e=t.constrainResolution?x(h,r,n,p,!m&&_,d):w(r,n,p,!m&&_,d)}return{constraint:e,maxResolution:r,minResolution:n,minZoom:u,zoomFactor:h}}function A(t){var e=void 0===t.enableRotation||t.enableRotation;if(e){var r=t.constrainRotation;return void 0===r||!0===r?Object(O["b"])():!1===r?O["d"]:"number"===typeof r?Object(O["a"])(r):O["d"]}return O["c"]}function L(t){return!(t.sourceCenter&&t.targetCenter&&!Object(c["f"])(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}function I(t,e,r,n,i){var o=Math.cos(-i),a=Math.sin(-i),s=t[0]*o-t[1]*a,l=t[1]*o+t[0]*a;s+=(e[0]/2-r[0])*n,l+=(r[1]-e[1]/2)*n,a=-a;var u=s*o-l*a,c=l*o+s*a;return[u,c]}e["default"]=P},a2e1:function(t,e,r){"use strict";r.r(e);var n=r("4cdf"),i=r("01d4"),o=r("8f37"),a=r("0af5"),s=r("1e8d"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(e){var r=t.call(this)||this;return r.geometries_=e||null,r.changeEventsKeys_=[],r.listenGeometriesChange_(),r}return l(e,t),e.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(s["c"]),this.changeEventsKeys_.length=0},e.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t<e;++t)this.changeEventsKeys_.push(Object(s["a"])(this.geometries_[t],i["a"].CHANGE,this.changed,this))},e.prototype.clone=function(){var t=new e(null);return t.setGeometries(this.geometries_),t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){if(n<Object(a["closestSquaredDistanceXY"])(this.getExtent(),t,e))return n;for(var i=this.geometries_,o=0,s=i.length;o<s;++o)n=i[o].closestPointXY(t,e,r,n);return n},e.prototype.containsXY=function(t,e){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)if(r[n].containsXY(t,e))return!0;return!1},e.prototype.computeExtent=function(t){Object(a["createOrUpdateEmpty"])(t);for(var e=this.geometries_,r=0,n=e.length;r<n;++r)Object(a["extend"])(t,e[r].getExtent());return t},e.prototype.getGeometries=function(){return c(this.geometries_)},e.prototype.getGeometriesArray=function(){return this.geometries_},e.prototype.getGeometriesArrayRecursive=function(){for(var t=[],e=this.geometries_,r=0,n=e.length;r<n;++r)e[r].getType()===this.getType()?t=t.concat(e[r].getGeometriesArrayRecursive()):t.push(e[r]);return t},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var r=[],n=this.geometries_,i=!1,o=0,a=n.length;o<a;++o){var s=n[o],l=s.getSimplifiedGeometry(t);r.push(l),l!==s&&(i=!0)}if(i){var u=new e(null);return u.setGeometriesArray(r),u}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this},e.prototype.getType=function(){return"GeometryCollection"},e.prototype.intersectsExtent=function(t){for(var e=this.geometries_,r=0,n=e.length;r<n;++r)if(e[r].intersectsExtent(t))return!0;return!1},e.prototype.isEmpty=function(){return 0===this.geometries_.length},e.prototype.rotate=function(t,e){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)r[n].rotate(t,e);this.changed()},e.prototype.scale=function(t,e,r){var n=r;n||(n=Object(a["getCenter"])(this.getExtent()));for(var i=this.geometries_,o=0,s=i.length;o<s;++o)i[o].scale(t,e,n);this.changed()},e.prototype.setGeometries=function(t){this.setGeometriesArray(c(t))},e.prototype.setGeometriesArray=function(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()},e.prototype.applyTransform=function(t){for(var e=this.geometries_,r=0,n=e.length;r<n;++r)e[r].applyTransform(t);this.changed()},e.prototype.translate=function(t,e){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)r[n].translate(t,e);this.changed()},e.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),t.prototype.disposeInternal.call(this)},e}(o["a"]);function c(t){for(var e=[],r=0,n=t.length;r<n;++r)e.push(t[r].clone());return e}var h=u,f=r("b7df"),p=r("1300"),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(t){function e(){return t.call(this)||this}return d(e,t),e.prototype.getType=function(){return"json"},e.prototype.readFeature=function(t,e){return this.readFeatureFromObject(y(t),this.getReadOptions(t,e))},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(y(t),this.getReadOptions(t,e))},e.prototype.readFeatureFromObject=function(t,e){return Object(p["b"])()},e.prototype.readFeaturesFromObject=function(t,e){return Object(p["b"])()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(y(t),this.getReadOptions(t,e))},e.prototype.readGeometryFromObject=function(t,e){return Object(p["b"])()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(y(t))},e.prototype.readProjectionFromObject=function(t){return Object(p["b"])()},e.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},e.prototype.writeFeatureObject=function(t,e){return Object(p["b"])()},e.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},e.prototype.writeFeaturesObject=function(t,e){return Object(p["b"])()},e.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},e.prototype.writeGeometryObject=function(t,e){return Object(p["b"])()},e}(f["a"]);function y(t){if("string"===typeof t){var e=JSON.parse(t);return e||null}return null!==t?t:null}var v=g,m=r("7a09"),_=r("47e4"),b=r("9a44"),x=r("88da"),w=r("f403"),O=r("5bc33"),E=r("92fa"),S=r("38f3"),T=r("256f"),C=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),P=function(t){function e(e){var r=this,n=e||{};return r=t.call(this)||this,r.dataProjection=Object(T["get"])(n.dataProjection?n.dataProjection:"EPSG:4326"),n.featureProjection&&(r.defaultFeatureProjection=Object(T["get"])(n.featureProjection)),r.geometryName_=n.geometryName,r.extractGeometryName_=n.extractGeometryName,r.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],r}return C(e,t),e.prototype.readFeatureFromObject=function(t,e){var r=null;r="Feature"===t["type"]?t:{type:"Feature",geometry:t,properties:null};var i=j(r["geometry"],e),o=new n["default"];return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in r!==void 0&&o.setGeometryName(r["geometry_name"]),o.setGeometry(i),"id"in r&&o.setId(r["id"]),r["properties"]&&o.setProperties(r["properties"],!0),o},e.prototype.readFeaturesFromObject=function(t,e){var r=t,n=null;if("FeatureCollection"===r["type"]){var i=t;n=[];for(var o=i["features"],a=0,s=o.length;a<s;++a)n.push(this.readFeatureFromObject(o[a],e))}else n=[this.readFeatureFromObject(t,e)];return n},e.prototype.readGeometryFromObject=function(t,e){return j(t,e)},e.prototype.readProjectionFromObject=function(t){var e,r=t["crs"];return r?"name"==r["type"]?e=Object(T["get"])(r["properties"]["name"]):"EPSG"===r["type"]?e=Object(T["get"])("EPSG:"+r["properties"]["code"]):Object(E["a"])(!1,36):e=this.dataProjection,e},e.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var r={type:"Feature",geometry:null,properties:null},n=t.getId();if(void 0!==n&&(r.id=n),!t.hasProperties())return r;var i=t.getProperties(),o=t.getGeometry();return o&&(r.geometry=D(o,e),delete i[t.getGeometryName()]),Object(S["d"])(i)||(r.properties=i),r},e.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var r=[],n=0,i=t.length;n<i;++n)r.push(this.writeFeatureObject(t[n],e));return{type:"FeatureCollection",features:r}},e.prototype.writeGeometryObject=function(t,e){return D(t,this.adaptOptions(e))},e}(v);function j(t,e){if(!t)return null;var r;switch(t["type"]){case"Point":r=M(t);break;case"LineString":r=A(t);break;case"Polygon":r=k(t);break;case"MultiPoint":r=I(t);break;case"MultiLineString":r=L(t);break;case"MultiPolygon":r=F(t);break;case"GeometryCollection":r=R(t);break;default:throw new Error("Unsupported GeoJSON type: "+t["type"])}return Object(f["b"])(r,!1,e)}function R(t,e){var r=t["geometries"].map((function(t){return j(t,e)}));return new h(r)}function M(t){return new w["default"](t["coordinates"])}function A(t){return new m["default"](t["coordinates"])}function L(t){return new _["a"](t["coordinates"])}function I(t){return new b["default"](t["coordinates"])}function F(t){return new x["a"](t["coordinates"])}function k(t){return new O["default"](t["coordinates"])}function D(t,e){t=Object(f["b"])(t,!0,e);var r,n=t.getType();switch(n){case"Point":r=V(t,e);break;case"LineString":r=N(t,e);break;case"Polygon":r=X(t,e);break;case"MultiPoint":r=U(t,e);break;case"MultiLineString":r=z(t,e);break;case"MultiPolygon":r=B(t,e);break;case"GeometryCollection":r=G(t,e);break;case"Circle":r={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+n)}return r}function G(t,e){var r=t.getGeometriesArray().map((function(t){var r=Object(S["a"])({},e);return delete r.featureProjection,D(t,r)}));return{type:"GeometryCollection",geometries:r}}function N(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}function z(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}function U(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}function B(t,e){var r;return e&&(r=e.rightHanded),{type:"MultiPolygon",coordinates:t.getCoordinates(r)}}function V(t,e){return{type:"Point",coordinates:t.getCoordinates()}}function X(t,e){var r;return e&&(r=e.rightHanded),{type:"Polygon",coordinates:t.getCoordinates(r)}}e["default"]=P},a34a:function(t,e,r){var n=r("7ec2")();t.exports=n;try{regeneratorRuntime=n}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},a43f:function(t,e,r){"use strict";e["a"]={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},a504:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return i}));var n=.5,i=!0},a568:function(t,e,r){"use strict";r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return s})),r.d(e,"c",(function(){return l})),r.d(e,"d",(function(){return u})),r.d(e,"f",(function(){return c})),r.d(e,"h",(function(){return h})),r.d(e,"i",(function(){return f})),r.d(e,"j",(function(){return p})),r.d(e,"e",(function(){return d})),r.d(e,"k",(function(){return g})),r.d(e,"l",(function(){return y})),r.d(e,"g",(function(){return v}));var n=r("0af5"),i=r("7fc9"),o=r("b0c1");function a(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function s(t,e){var r=e.getRadius(),n=e.getCenter(),i=n[0],o=n[1],a=t[0],s=t[1],l=a-i,u=s-o;0===l&&0===u&&(l=1);var c=Math.sqrt(l*l+u*u),h=i+r*l/c,f=o+r*u/c;return[h,f]}function l(t,e){var r,n,i=t[0],o=t[1],a=e[0],s=e[1],l=a[0],u=a[1],c=s[0],h=s[1],f=c-l,p=h-u,d=0===f&&0===p?0:(f*(i-l)+p*(o-u))/(f*f+p*p||0);return d<=0?(r=l,n=u):d>=1?(r=c,n=h):(r=l+d*f,n=u+d*p),[r,n]}function u(t,e,r){var n=Object(i["g"])(e+180,360)-180,a=Math.abs(3600*n),s=r||0,l=Math.pow(10,s),u=Math.floor(a/3600),c=Math.floor((a-3600*u)/60),h=a-3600*u-60*c;return h=Math.ceil(h*l)/l,h>=60&&(h=0,c+=1),c>=60&&(c=0,u+=1),u+"° "+Object(o["b"])(c,2)+"′ "+Object(o["b"])(h,2,s)+"″"+(0==n?"":" "+t.charAt(n<0?1:0))}function c(t,e){for(var r=!0,n=t.length-1;n>=0;--n)if(t[n]!=e[n]){r=!1;break}return r}function h(t,e){var r=Math.cos(e),n=Math.sin(e),i=t[0]*r-t[1]*n,o=t[1]*r+t[0]*n;return t[0]=i,t[1]=o,t}function f(t,e){return t[0]*=e,t[1]*=e,t}function p(t,e){var r=t[0]-e[0],n=t[1]-e[1];return r*r+n*n}function d(t,e){return Math.sqrt(p(t,e))}function g(t,e){return p(t,l(t,e))}function y(t,e){if(e.canWrapX()){var r=Object(n["getWidth"])(e.getExtent()),i=v(t,e,r);i&&(t[0]-=i*r)}return t}function v(t,e,r){var i=e.getExtent(),o=0;if(e.canWrapX()&&(t[0]<i[0]||t[0]>i[2])){var a=r||Object(n["getWidth"])(i);o=Math.floor((t[0]-i[0])/a)}return o}},a896:function(t,e,r){"use strict";r.d(e,"c",(function(){return s})),r.d(e,"g",(function(){return l})),r.d(e,"f",(function(){return u})),r.d(e,"j",(function(){return h})),r.d(e,"a",(function(){return f})),r.d(e,"h",(function(){return p})),r.d(e,"i",(function(){return d})),r.d(e,"e",(function(){return g})),r.d(e,"l",(function(){return y})),r.d(e,"b",(function(){return v})),r.d(e,"d",(function(){return m})),r.d(e,"k",(function(){return b}));var n,i=r("617d"),o=r("92fa"),a=new Array(6);function s(){return[1,0,0,1,0,0]}function l(t){return c(t,1,0,0,1,0,0)}function u(t,e){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=e[0],u=e[1],c=e[2],h=e[3],f=e[4],p=e[5];return t[0]=r*l+i*u,t[1]=n*l+o*u,t[2]=r*c+i*h,t[3]=n*c+o*h,t[4]=r*f+i*p+a,t[5]=n*f+o*p+s,t}function c(t,e,r,n,i,o,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=o,t[5]=a,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function f(t,e){var r=e[0],n=e[1];return e[0]=t[0]*r+t[2]*n+t[4],e[1]=t[1]*r+t[3]*n+t[5],e}function p(t,e){var r=Math.cos(e),n=Math.sin(e);return u(t,c(a,r,n,-n,r,0,0))}function d(t,e,r){return u(t,c(a,e,0,0,r,0,0))}function g(t,e,r){return c(t,e,0,0,r,0,0)}function y(t,e,r){return u(t,c(a,1,0,0,1,e,r))}function v(t,e,r,n,i,o,a,s){var l=Math.sin(o),u=Math.cos(o);return t[0]=n*u,t[1]=i*l,t[2]=-n*l,t[3]=i*u,t[4]=a*n*u-s*n*l+e,t[5]=a*i*l+s*i*u+r,t}function m(t,e){var r=_(e);Object(o["a"])(0!==r,32);var n=e[0],i=e[1],a=e[2],s=e[3],l=e[4],u=e[5];return t[0]=s/r,t[1]=-i/r,t[2]=-a/r,t[3]=n/r,t[4]=(a*u-s*l)/r,t[5]=-(n*u-i*l)/r,t}function _(t){return t[0]*t[3]-t[1]*t[2]}function b(t){var e="matrix("+t.join(", ")+")";if(i["h"])return e;var r=n||(n=document.createElement("div"));return r.style.transform=e,r.style.transform}},ab35:function(t,e,r){"use strict";var n=r("1300"),i=r("345d"),o=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=Object(i["d"])(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}return t.prototype.clone=function(){var e=this.getScale();return new t({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getDisplacement=function(){return this.displacement_},t.prototype.getDeclutterMode=function(){return this.declutterMode_},t.prototype.getAnchor=function(){return Object(n["b"])()},t.prototype.getImage=function(t){return Object(n["b"])()},t.prototype.getHitDetectionImage=function(){return Object(n["b"])()},t.prototype.getPixelRatio=function(t){return 1},t.prototype.getImageState=function(){return Object(n["b"])()},t.prototype.getImageSize=function(){return Object(n["b"])()},t.prototype.getOrigin=function(){return Object(n["b"])()},t.prototype.getSize=function(){return Object(n["b"])()},t.prototype.setDisplacement=function(t){this.displacement_=t},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=Object(i["d"])(t)},t.prototype.listenImageChange=function(t){Object(n["b"])()},t.prototype.load=function(){Object(n["b"])()},t.prototype.unlistenImageChange=function(t){Object(n["b"])()},t}();e["a"]=o},ab77:function(t,e,r){"use strict";r.d(e,"b",(function(){return p}));var n=r("0ec0"),i=r("01d4"),o=r("869f"),a=r("5c38"),s=r("0999"),l=r("3c22"),u=r("6611"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=null,f=function(t){function e(e,r,n,i,o,a){var s=t.call(this)||this;return s.hitDetectionImage_=null,s.image_=e||new Image,null!==i&&(s.image_.crossOrigin=i),s.canvas_={},s.color_=a,s.unlisten_=null,s.imageState_=o,s.size_=n,s.src_=r,s.tainted_,s}return c(e,t),e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===o["a"].LOADED){h||(h=Object(s["a"])(1,1)),h.drawImage(this.image_,0,0);try{h.getImageData(0,0,1,1),this.tainted_=!1}catch(t){h=null,this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(i["a"].CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=o["a"].ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=o["a"].LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_},e.prototype.getPixelRatio=function(t){return this.replaceColor_(t),this.canvas_[t]?t:1},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var t=this.size_[0],e=this.size_[1],r=Object(s["a"])(t,e);r.fillRect(0,0,t,e),this.hitDetectionImage_=r.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==o["a"].IDLE){this.imageState_=o["a"].LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=Object(u["b"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(t){if(this.color_&&!this.canvas_[t]&&this.imageState_===o["a"].LOADED){var e=document.createElement("canvas");this.canvas_[t]=e,e.width=Math.ceil(this.image_.width*t),e.height=Math.ceil(this.image_.height*t);var r=e.getContext("2d");if(r.scale(t,t),r.drawImage(this.image_,0,0),r.globalCompositeOperation="multiply","multiply"===r.globalCompositeOperation||this.isTainted_())r.fillStyle=Object(a["b"])(this.color_),r.fillRect(0,0,e.width/t,e.height/t),r.globalCompositeOperation="destination-in",r.drawImage(this.image_,0,0);else{for(var n=r.getImageData(0,0,e.width,e.height),i=n.data,s=this.color_[0]/255,l=this.color_[1]/255,u=this.color_[2]/255,c=this.color_[3],h=0,f=i.length;h<f;h+=4)i[h]*=s,i[h+1]*=l,i[h+2]*=u,i[h+3]*=c;r.putImageData(n,0,0)}}},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(n["a"]);function p(t,e,r,n,i,o){var a=l["a"].get(e,n,o);return a||(a=new f(t,e,r,n,i,o),l["a"].set(e,n,o,a)),a}e["a"]=f},aba6:function(t,e,r){"use strict";r.d(e,"e",(function(){return n})),r.d(e,"f",(function(){return o})),r.d(e,"d",(function(){return a})),r.d(e,"g",(function(){return s})),r.d(e,"h",(function(){return l})),r.d(e,"j",(function(){return u})),r.d(e,"a",(function(){return c})),r.d(e,"c",(function(){return h})),r.d(e,"b",(function(){return f})),r.d(e,"i",(function(){return p}));const n={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},i={};for(const g in n)n.hasOwnProperty(g)&&(i[n[g]]=parseInt(g,10));const o={256:"SHORT",257:"SHORT",258:"SHORT",259:"SHORT",262:"SHORT",273:"LONG",274:"SHORT",277:"SHORT",278:"LONG",279:"LONG",282:"RATIONAL",283:"RATIONAL",284:"SHORT",286:"SHORT",287:"RATIONAL",296:"SHORT",297:"SHORT",305:"ASCII",306:"ASCII",338:"SHORT",339:"SHORT",513:"LONG",514:"LONG",1024:"SHORT",1025:"SHORT",2048:"SHORT",2049:"ASCII",3072:"SHORT",3073:"ASCII",33550:"DOUBLE",33922:"DOUBLE",34665:"LONG",34735:"SHORT",34737:"ASCII",42113:"ASCII"},a=[i.BitsPerSample,i.ExtraSamples,i.SampleFormat,i.StripByteCounts,i.StripOffsets,i.StripRowCounts,i.TileByteCounts,i.TileOffsets,i.SubIFDs],s={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},l={};for(const g in s)s.hasOwnProperty(g)&&(l[s[g]]=parseInt(g,10));const u={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},c={Unspecified:0,Assocalpha:1,Unassalpha:2},h={Version:0,AddCompression:1},f={None:0,Deflate:1},p={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"},d={};for(const g in p)p.hasOwnProperty(g)&&(d[p[g]]=parseInt(g,10))},abb7:function(t,e,r){"use strict";function n(t,e,r,n){for(var i=0,o=r.length;i<o;++i)t[e++]=r[i];return e}function i(t,e,r,n){for(var i=0,o=r.length;i<o;++i)for(var a=r[i],s=0;s<n;++s)t[e++]=a[s];return e}function o(t,e,r,n,o){for(var a=o||[],s=0,l=0,u=r.length;l<u;++l){var c=i(t,e,r[l],n);a[s++]=c,e=c}return a.length=s,a}function a(t,e,r,n,i){for(var a=i||[],s=0,l=0,u=r.length;l<u;++l){var c=o(t,e,r[l],n,a[s]);a[s++]=c,e=c[c.length-1]}return a.length=s,a}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"d",(function(){return a}))},ac29:function(t,e,r){"use strict";r.r(e),r.d(e,"DrawEvent",(function(){return I})),r.d(e,"createRegularPolygon",(function(){return D})),r.d(e,"createBox",(function(){return G}));var n=r("9abc"),i=r("0af5"),o=r("abb7"),a=r("bef8"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(e,r,n){var i=t.call(this)||this;if(void 0!==n&&void 0===r)i.setFlatCoordinates(n,e);else{var o=r||0;i.setCenterAndRadius(e,o,n)}return i}return s(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){var i=this.flatCoordinates,o=t-i[0],a=e-i[1],s=o*o+a*a;if(s<n){if(0===s)for(var l=0;l<this.stride;++l)r[l]=i[l];else{var u=this.getRadius()/Math.sqrt(s);r[0]=i[0]+u*o,r[1]=i[1]+u*a;for(l=2;l<this.stride;++l)r[l]=i[l]}return r.length=this.stride,s}return n},e.prototype.containsXY=function(t,e){var r=this.flatCoordinates,n=t-r[0],i=e-r[1];return n*n+i*i<=this.getRadiusSquared_()},e.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.computeExtent=function(t){var e=this.flatCoordinates,r=e[this.stride]-e[0];return Object(i["createOrUpdate"])(e[0]-r,e[1]-r,e[0]+r,e[1]+r,t)},e.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},e.prototype.getRadiusSquared_=function(){var t=this.flatCoordinates[this.stride]-this.flatCoordinates[0],e=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return t*t+e*e},e.prototype.getType=function(){return"Circle"},e.prototype.intersectsExtent=function(t){var e=this.getExtent();if(Object(i["intersects"])(t,e)){var r=this.getCenter();return t[0]<=r[0]&&t[2]>=r[0]||(t[1]<=r[1]&&t[3]>=r[1]||Object(i["forEachCorner"])(t,this.intersectsCoordinate.bind(this)))}return!1},e.prototype.setCenter=function(t){var e=this.stride,r=this.flatCoordinates[e]-this.flatCoordinates[0],n=t.slice();n[e]=n[0]+r;for(var i=1;i<e;++i)n[e+i]=t[i];this.setFlatCoordinates(this.layout,n),this.changed()},e.prototype.setCenterAndRadius=function(t,e,r){this.setLayout(r,t,0),this.flatCoordinates||(this.flatCoordinates=[]);var n=this.flatCoordinates,i=Object(o["a"])(n,0,t,this.stride);n[i++]=n[0]+e;for(var a=1,s=this.stride;a<s;++a)n[i++]=n[a];n.length=i,this.changed()},e.prototype.getCoordinates=function(){return null},e.prototype.setCoordinates=function(t,e){},e.prototype.setRadius=function(t){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+t,this.changed()},e.prototype.rotate=function(t,e){var r=this.getCenter(),n=this.getStride();this.setCenter(Object(a["a"])(r,0,r.length,n,t,e,r)),this.changed()},e.prototype.translate=function(t,e){var r=this.getCenter(),n=this.getStride();this.setCenter(Object(a["d"])(r,0,r.length,n,t,e,r)),this.changed()},e}(n["a"]);l.prototype.transform;var u=l,c=r("cef7"),h=r("01d4"),f=r("4cdf"),p=r("521b"),d=r("bf62"),g=r("7a09"),y=r("509b"),v=r("0b2d"),m=r("47e4"),_=r("9a44"),b=r("88da"),x=r("f403"),w=r("4105"),O=r("5bc33"),E=r("3e6b"),S=r("5831"),T=r("57cb"),C=r("06f8"),P=r("6c77"),j=r("256f"),R=r("a568"),M=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),A={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",CIRCLE:"Circle"},L={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"},I=function(t){function e(e,r){var n=t.call(this,e)||this;return n.feature=r,n}return M(e,t),e}(c["a"]),F=function(t){function e(e){var r=this,n=e;n.stopDown||(n.stopDown=T["a"]),r=t.call(this,n)||this,r.on,r.once,r.un,r.shouldHandle_=!1,r.downPx_=null,r.downTimeout_,r.lastDragTime_,r.pointerType_,r.freehand_=!1,r.source_=e.source?e.source:null,r.features_=e.features?e.features:null,r.snapTolerance_=e.snapTolerance?e.snapTolerance:12,r.type_=e.type,r.mode_=N(r.type_),r.stopClick_=!!e.stopClick,r.minPoints_=e.minPoints?e.minPoints:r.mode_===A.POLYGON?3:2,r.maxPoints_=r.mode_===A.CIRCLE?2:e.maxPoints?e.maxPoints:1/0,r.finishCondition_=e.finishCondition?e.finishCondition:T["b"],r.geometryLayout_=e.geometryLayout?e.geometryLayout:p["a"].XY;var i=e.geometryFunction;if(!i){var o,a=r.mode_;if(a===A.CIRCLE)i=function(t,e,r){var n=e||new u([NaN,NaN]),i=Object(j["fromUserCoordinate"])(t[0],r),o=Object(R["j"])(i,Object(j["fromUserCoordinate"])(t[t.length-1],r));n.setCenterAndRadius(i,Math.sqrt(o),this.geometryLayout_);var a=Object(j["getUserProjection"])();return a&&n.transform(r,a),n};else a===A.POINT?o=x["default"]:a===A.LINE_STRING?o=g["default"]:a===A.POLYGON&&(o=O["default"]),i=function(t,e,r){return e?a===A.POLYGON?t[0].length?e.setCoordinates([t[0].concat([t[0][0]])],this.geometryLayout_):e.setCoordinates([],this.geometryLayout_):e.setCoordinates(t,this.geometryLayout_):e=new o(t,this.geometryLayout_),e}}return r.geometryFunction_=i,r.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,r.finishCoordinate_=null,r.sketchFeature_=null,r.sketchPoint_=null,r.sketchCoords_=null,r.sketchLine_=null,r.sketchLineCoords_=null,r.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,r.overlay_=new E["default"]({source:new S["default"]({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:k(),updateWhileInteracting:!0}),r.geometryName_=e.geometryName,r.condition_=e.condition?e.condition:C["i"],r.freehandCondition_,e.freehand?r.freehandCondition_=C["d"]:r.freehandCondition_=e.freehandCondition?e.freehandCondition:C["k"],r.addChangeListener(d["a"].ACTIVE,r.updateState_),r}return M(e,t),e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),this.updateState_()},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleEvent=function(e){e.originalEvent.type===h["a"].CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!==A.POINT&&this.freehandCondition_(e);var r=e.type===v["a"].POINTERMOVE,n=!0;if(!this.freehand_&&this.lastDragTime_&&e.type===v["a"].POINTERDRAG){var i=Date.now();i-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,r=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&e.type===v["a"].POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),n=!1):this.freehand_&&e.type===v["a"].POINTERDOWN?n=!1:r&&this.getPointerCount()<2?(n=e.type===v["a"].POINTERMOVE,n&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===v["a"].POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e)):e.type===v["a"].DBLCLICK&&(n=!1),t.prototype.handleEvent.call(this,e)&&n},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t.coordinate),!0):this.condition_(t)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new y["a"](v["a"].POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)},e.prototype.handleUpEvent=function(t){var e=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t),this.shouldHandle_){var r=!this.finishCoordinate_;r&&this.startDrawing_(t.coordinate),!r&&this.freehand_?this.finishDrawing():this.freehand_||r&&this.mode_!==A.POINT||(this.atFinish_(t.pixel)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t.coordinate)),e=!1}else this.freehand_&&this.abortDrawing();return!e&&this.stopClick_&&t.preventDefault(),e},e.prototype.handlePointerMove_=function(t){if(this.pointerType_=t.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var e=this.downPx_,r=t.pixel,n=e[0]-r[0],i=e[1]-r[1],o=n*n+i*i;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(t.coordinate):this.createOrUpdateSketchPoint_(t.coordinate.slice())},e.prototype.atFinish_=function(t){var e=!1;if(this.sketchFeature_){var r=!1,n=[this.finishCoordinate_],i=this.mode_;if(i===A.POINT)e=!0;else if(i===A.CIRCLE)e=2===this.sketchCoords_.length;else if(i===A.LINE_STRING)r=this.sketchCoords_.length>this.minPoints_;else if(i===A.POLYGON){var o=this.sketchCoords_;r=o[0].length>this.minPoints_,n=[o[0][0],o[0][o[0].length-2]]}if(r)for(var a=this.getMap(),s=0,l=n.length;s<l;s++){var u=n[s],c=a.getPixelFromCoordinate(u),h=t[0]-c[0],f=t[1]-c[1],p=this.freehand_?1:this.snapTolerance_;if(e=Math.sqrt(h*h+f*f)<=p,e){this.finishCoordinate_=u;break}}}return e},e.prototype.createOrUpdateSketchPoint_=function(t){if(this.sketchPoint_){var e=this.sketchPoint_.getGeometry();e.setCoordinates(t)}else this.sketchPoint_=new f["default"](new x["default"](t)),this.updateSketchFeatures_()},e.prototype.createOrUpdateCustomSketchLine_=function(t){this.sketchLine_||(this.sketchLine_=new f["default"]);var e=t.getLinearRing(0),r=this.sketchLine_.getGeometry();r?(r.setFlatCoordinates(e.getLayout(),e.getFlatCoordinates()),r.changed()):(r=new g["default"](e.getFlatCoordinates(),e.getLayout()),this.sketchLine_.setGeometry(r))},e.prototype.startDrawing_=function(t){var e=this.getMap().getView().getProjection(),r=Object(n["b"])(this.geometryLayout_);while(t.length<r)t.push(0);this.finishCoordinate_=t,this.mode_===A.POINT?this.sketchCoords_=t.slice():this.mode_===A.POLYGON?(this.sketchCoords_=[[t.slice(),t.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[t.slice(),t.slice()],this.sketchLineCoords_&&(this.sketchLine_=new f["default"](new g["default"](this.sketchLineCoords_)));var i=this.geometryFunction_(this.sketchCoords_,void 0,e);this.sketchFeature_=new f["default"],this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(i),this.updateSketchFeatures_(),this.dispatchEvent(new I(L.DRAWSTART,this.sketchFeature_))},e.prototype.modifyDrawing_=function(t){var e,r,i=this.getMap(),o=this.sketchFeature_.getGeometry(),a=i.getView().getProjection(),s=Object(n["b"])(this.geometryLayout_);while(t.length<s)t.push(0);if(this.mode_===A.POINT?r=this.sketchCoords_:this.mode_===A.POLYGON?(e=this.sketchCoords_[0],r=e[e.length-1],this.atFinish_(i.getPixelFromCoordinate(t))&&(t=this.finishCoordinate_.slice())):(e=this.sketchCoords_,r=e[e.length-1]),r[0]=t[0],r[1]=t[1],this.geometryFunction_(this.sketchCoords_,o,a),this.sketchPoint_){var l=this.sketchPoint_.getGeometry();l.setCoordinates(t)}if("Polygon"===o.getType()&&this.mode_!==A.POLYGON)this.createOrUpdateCustomSketchLine_(o);else if(this.sketchLineCoords_){var u=this.sketchLine_.getGeometry();u.setCoordinates(this.sketchLineCoords_)}this.updateSketchFeatures_()},e.prototype.addToDrawing_=function(t){var e,r,n=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),o=this.mode_;o===A.LINE_STRING||o===A.CIRCLE?(this.finishCoordinate_=t.slice(),r=this.sketchCoords_,r.length>=this.maxPoints_&&(this.freehand_?r.pop():e=!0),r.push(t.slice()),this.geometryFunction_(r,n,i)):o===A.POLYGON&&(r=this.sketchCoords_[0],r.length>=this.maxPoints_&&(this.freehand_?r.pop():e=!0),r.push(t.slice()),e&&(this.finishCoordinate_=r[0]),this.geometryFunction_(this.sketchCoords_,n,i)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),e&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t,e=this.sketchFeature_.getGeometry(),r=this.getMap().getView().getProjection(),n=this.mode_;if(n===A.LINE_STRING||n===A.CIRCLE){if(t=this.sketchCoords_,t.splice(-2,1),t.length>=2){this.finishCoordinate_=t[t.length-2].slice();var i=this.finishCoordinate_.slice();t[t.length-1]=i,this.createOrUpdateSketchPoint_(i)}this.geometryFunction_(t,e,r),"Polygon"===e.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(e)}else if(n===A.POLYGON){t=this.sketchCoords_[0],t.splice(-2,1);var o=this.sketchLine_.getGeometry();if(t.length>=2){i=t[t.length-2].slice();t[t.length-1]=i,this.createOrUpdateSketchPoint_(i)}o.setCoordinates(t),this.geometryFunction_(this.sketchCoords_,e,r)}1===t.length&&this.abortDrawing(),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var e=this.sketchCoords_,r=t.getGeometry(),n=this.getMap().getView().getProjection();this.mode_===A.LINE_STRING?(e.pop(),this.geometryFunction_(e,r,n)):this.mode_===A.POLYGON&&(e[0].pop(),this.geometryFunction_(e,r,n),e=r.getCoordinates()),"MultiPoint"===this.type_?t.setGeometry(new _["default"]([e])):"MultiLineString"===this.type_?t.setGeometry(new m["a"]([e])):"MultiPolygon"===this.type_&&t.setGeometry(new b["a"]([e])),this.dispatchEvent(new I(L.DRAWEND,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),t},e.prototype.abortDrawing=function(){var t=this.abortDrawing_();t&&this.dispatchEvent(new I(L.DRAWABORT,t))},e.prototype.appendCoordinates=function(t){var e,r=this.mode_,n=!this.sketchFeature_;if(n&&this.startDrawing_(t[0]),r===A.LINE_STRING||r===A.CIRCLE)e=this.sketchCoords_;else{if(r!==A.POLYGON)return;e=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}n&&e.shift(),e.pop();for(var i=0;i<t.length;i++)this.addToDrawing_(t[i]);var o=t[t.length-1];this.addToDrawing_(o),this.modifyDrawing_(o)},e.prototype.extend=function(t){var e=t.getGeometry(),r=e;this.sketchFeature_=t,this.sketchCoords_=r.getCoordinates();var n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.sketchPoint_=new f["default"](new x["default"](n)),this.updateSketchFeatures_(),this.dispatchEvent(new I(L.DRAWSTART,this.sketchFeature_))},e.prototype.updateSketchFeatures_=function(){var t=[];this.sketchFeature_&&t.push(this.sketchFeature_),this.sketchLine_&&t.push(this.sketchLine_),this.sketchPoint_&&t.push(this.sketchPoint_);var e=this.overlay_.getSource();e.clear(!0),e.addFeatures(t)},e.prototype.updateState_=function(){var t=this.getMap(),e=this.getActive();t&&e||this.abortDrawing(),this.overlay_.setMap(e?t:null)},e}(w["b"]);function k(){var t=Object(P["createEditingStyle"])();return function(e,r){return t[e.getGeometry().getType()]}}function D(t,e){return function(r,n,i){var o=Object(j["fromUserCoordinate"])(r[0],i),a=Object(j["fromUserCoordinate"])(r[r.length-1],i),s=Math.sqrt(Object(R["j"])(o,a)),l=n||Object(O["fromCircle"])(new u(o),t),c=e;if(!e&&0!==e){var h=a[0]-o[0],f=a[1]-o[1];c=Math.atan2(f,h)}Object(O["makeRegular"])(l,o,s,c);var p=Object(j["getUserProjection"])();return p&&l.transform(i,p),l}}function G(){return function(t,e,r){var n=Object(i["boundingExtent"])([t[0],t[t.length-1]].map((function(t){return Object(j["fromUserCoordinate"])(t,r)}))),o=[[Object(i["getBottomLeft"])(n),Object(i["getBottomRight"])(n),Object(i["getTopRight"])(n),Object(i["getTopLeft"])(n),Object(i["getBottomLeft"])(n)]],a=e;a?a.setCoordinates(o):a=new O["default"](o);var s=Object(j["getUserProjection"])();return s&&a.transform(r,s),a}}function N(t){switch(t){case"Point":case"MultiPoint":return A.POINT;case"LineString":case"MultiLineString":return A.LINE_STRING;case"Polygon":case"MultiPolygon":return A.POLYGON;case"Circle":return A.CIRCLE;default:throw new Error("Invalid type: "+t)}}e["default"]=F},acc1:function(t,e,r){"use strict";e["a"]={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},ae50:function(t,e,r){"use strict";var n=r("1af9"),i=r("25a5"),o=r.n(i),a=r("38f3"),s=r("6c77"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u={RENDER_ORDER:"renderOrder"},c=function(t){function e(e){var r=this,n=e||{},i=Object(a["a"])({},n);return delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,r=t.call(this,i)||this,r.declutter_=void 0!==n.declutter&&n.declutter,r.renderBuffer_=void 0!==n.renderBuffer?n.renderBuffer:100,r.style_=null,r.styleFunction_=void 0,r.setStyle(n.style),r.updateWhileAnimating_=void 0!==n.updateWhileAnimating&&n.updateWhileAnimating,r.updateWhileInteracting_=void 0!==n.updateWhileInteracting&&n.updateWhileInteracting,r}return l(e,t),e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(u.RENDER_ORDER)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.renderDeclutter=function(t){t.declutterTree||(t.declutterTree=new o.a(9)),this.getRenderer().renderDeclutter(t)},e.prototype.setRenderOrder=function(t){this.set(u.RENDER_ORDER,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:s["createDefaultStyle"],this.styleFunction_=null===t?void 0:Object(s["toFunction"])(this.style_),this.changed()},e}(n["a"]);e["a"]=c},ae75:function(t,e,r){"use strict";function n(t,e){for(const r in e)e.hasOwnProperty(r)&&(t[r]=e[r])}function i(t,e){if(t.length<e.length)return!1;const r=t.substr(t.length-e.length);return r===e}function o(t,e){const{length:r}=t;for(let n=0;n<r;n++)e(t[n],n)}function a(t){const e={};for(const r in t)if(t.hasOwnProperty(r)){const n=t[r];e[n]=r}return e}function s(t,e){const r=[];for(let n=0;n<t;n++)r.push(e(n));return r}async function l(t){return new Promise(e=>setTimeout(e,t))}function u(t,e){const r=Array.isArray(t)?t:Array.from(t),n=Array.isArray(e)?e:Array.from(e);return r.map((t,e)=>[t,n[e]])}r.d(e,"c",(function(){return n})),r.d(e,"d",(function(){return i})),r.d(e,"e",(function(){return o})),r.d(e,"f",(function(){return a})),r.d(e,"g",(function(){return s})),r.d(e,"h",(function(){return l})),r.d(e,"i",(function(){return u})),r.d(e,"a",(function(){return c})),r.d(e,"b",(function(){return f}));class c extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,c),this.name="AbortError"}}class h extends Error{constructor(t,e){super(e),this.errors=t,this.message=e,this.name="AggregateError"}}const f=h},b0c1:function(t,e,r){"use strict";function n(t,e,r){var n=void 0!==r?t.toFixed(r):""+t,i=n.indexOf(".");return i=-1===i?n.length:i,i>e?n:new Array(1+e-i).join("0")+n}function i(t,e){for(var r=(""+t).split("."),n=(""+e).split("."),i=0;i<Math.max(r.length,n.length);i++){var o=parseInt(r[i]||"0",10),a=parseInt(n[i]||"0",10);if(o>a)return 1;if(a>o)return-1}return 0}r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return i}))},b12f:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e._arr=e.PolygonModel=void 0,e.addInteraction=S,e.addInteraction1=T,e.caculateLL=q,e.calculateCenter=_,e.colorArr=void 0,e.createFill=U,e.createGPSPoints=F,e.createGeoJson=P,e.createPolygonBoundary=Y,e.createPolygonGeojson=M,e.createPolylinePoints=k,e.createRectangle=G,e.createSpan=O,e.fitNew=D,e.flyTo=W,e.formatArea=x,e.formatLength=b,e.getCenterPoint=I,e.getColorStyle=N,e.getCoordinates=C,e.getLayer=V,e.getLayerNew=X,e.getLngAndLatMaxMin=j,e.getVector=E,e.polygonStyle=B,e.rayCasting=R,e.zoomIn=A,e.zoomOut=L,n(r("5bc3"))),o=n(r("970b")),a=r("790a"),s=n(r("3e6b")),l=n(r("6c77")),u=n(r("83a6")),c=n(r("8682")),h=n(r("ce2c")),f=n(r("ac29")),p=n(r("5831")),d=n(r("a2e1")),g=n(r("5bc33")),y=n(r("4cdf")),v=n(r("bab7")),m=r("0af5");function _(t){var e,r,n,i,o,a,s=t.getType();if("Polygon"===s?(i=n=r=0,(o=t.getCoordinates()[0].slice(1)).forEach((function(t){r+=t[0],n+=t[1],i++})),e=[r/i,n/i]):"LineString"===s?(e=t.getCoordinateAt(.5),o=t.getCoordinates()):e=(0,m.getCenter)(t.getExtent()),s=o?(a=o.map((function(t){var r=t[0]-e[0];t=t[1]-e[1];return r*r+t*t})),Math.sqrt(Math.max.apply(Math,a))/3):Math.max((0,m.getWidth)(t.getExtent()),(0,m.getHeight)(t.getExtent()))/3,3<=o.length){for(var l=[0,0],u=[],c=0;c<o.length;c++){var h=o[c];h[0]!=l[0]&&h[1]!=l[1]&&u.push(h),l=h}o=u}return{center:e,coordinates:o,minRadius:s,sqDistances:a}}function b(t){try{var e,r=(0,a.getLength)(t,{projection:"EPSG:4326"});return 100<r?Math.round(r/1e3*100)/100+" km":0==(e=Math.round(100*r)/100)?"":e+" m"}catch(t){return""}}function x(t){try{var e=(0,a.getArea)(t,{projection:"EPSG:4326"})/666.67*100;return"".concat(Math.floor(e)/100,"亩")}catch(t){return"".concat(0,"亩")}}var w=new Array;function O(t){var e=document.createElement("sapn");return e.innerHTML=" X ",e.style.position="absolute",e.style.width="14px",e.style.height="14px",e.style.right="4px",e.style.top="4px",e.style.cursor="pointer",e.style.backgroundColor="#fff",e.style.color="red",e.style.lineHeight="14px",e.style.textAlign="center",e.addEventListener("click",(function(e){t._clear(),e.stopPropagation()}),!1),e}function E(t){return new s.default({source:t,style:new l.default({fill:new u.default({color:"rgba(255, 255, 255, 0.4)"}),stroke:new c.default({color:"#ffcc33",width:2}),image:new h.default({radius:7,fill:new u.default({color:"#ffcc33"})})})})}function S(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"rgba(255, 255, 255, 0.4)",n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"rgba(255, 204, 51, 0.5)";return new f.default({source:e,type:t,style:new l.default({fill:new u.default({color:r}),stroke:new c.default({color:n,lineDash:[10,10],width:2}),image:new h.default({radius:5,stroke:new c.default({color:"rgba(255, 255, 255, 1)"}),fill:new u.default({color:"rgba(200, 200, 200, 0.6)"})})})})}function T(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"rgba(184, 233, 134, 0.56)",n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"rgba(23, 168, 162, 0.56)";return new f.default({source:e,type:t,style:new l.default({fill:new u.default({color:r}),stroke:new c.default({color:n,lineDash:[10,10],width:2})})})}function C(t){for(var e=new Array,r=0;r<t.length;r+=2)e.push([t[r],t[r+1]]);return[e]}function P(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"Polygon";return{type:"Feature",properties:e,bbox:j(t),geometry:{type:r,coordinates:t}}}function j(t){for(var e=0,r=400,n=0,i=400,o=0;o<t.length;o++)for(var a=0;a<t[o].length;a++)t[o][a][0]>e&&(e=t[o][a][0]),t[o][a][1]>n&&(n=t[o][a][1]),t[o][a][0]<r&&(r=t[o][a][0]),t[o][a][1]<i&&(i=t[o][a][1]);return[e,n,400===r?0:r,400===i?0:i]}function R(t,e){for(var r=t.x,n=t.y,i=!1,o=0,a=e.length,s=a-1;o<a;s=o,o++){var l=e[o].X,u=e[o].Y,c=e[s].X,h=e[s].Y;if(l===r&&u===n||c===r&&h===n)return!0;if(u<n&&n<=h||n<=u&&h<n){if(c=l+(n-u)*(c-l)/(h-u),c===r)return!0;r<c&&(i=!i)}}return!!i}function M(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"rgba(41, 212, 178, 0.4)",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"rgba(23, 168, 162, 1)",n=3<arguments.length?arguments[3]:void 0,i=4<arguments.length&&void 0!==arguments[4]&&arguments[4],o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:[],a={Polygon:new l.default({fill:new u.default({color:e}),stroke:new c.default({color:r,width:2,lineDash:o}),image:new h.default({radius:7,fill:new u.default({color:"#ffcc33"})})})};e=new p.default({features:(new d.default).readFeatures(t)});return new s.default({source:e,style:function(t){return i&&t.setId(n),a[t.getGeometry().getType()]}})}function A(t){t=t.getView(),t.animate({zoom:t.getZoom()+1,duration:200})}function L(t){t=t.getView(),t.animate({zoom:t.getZoom()-1,duration:200})}function I(t){for(var e=0,r=0,n=0;n<t.length;n++)for(var i=0;i<t[n].length;i++)e+=parseFloat(t[n][i][0]),r+=parseFloat(t[n][i][1]);return[e/=t[0].length,r/=t[0].length]}function F(t){for(var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=[],i=0;i<t.length;i++){var o=t[i],a=o.X,s=o.Y;null!=a&&""!=a&&0!=a&&null!=s&&""!=s&&0!=s&&(null!=r&&r.getLngAndLatMaxMin(o),e?(o=v.default.gcj_encrypt(a,s),n.push([o.lon,o.lat])):n.push([a,s]))}return n}function k(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n={gpsPoints:[],optRtDephts:[],isNJOpt:[],IsInFence:[],IsOverSpeed:[]};n.gpsPoints=F(t,e);for(var i,o,a=0;a<t.length;a++)t[a].OptRtDepth&&n.optRtDephts.push(t[a].OptRtDepth),(1==t[a].isNJOpt||0==t[a].isNJOpt)&&n.isNJOpt.push(t[a].isNJOpt),(1==t[a].IsInFence||0==t[a].IsInFence)&&n.isNJOpt.push(t[a].IsInFence),(1==t[a].IsOverSpeed||0==t[a].IsOverSpeed)&&n.isNJOpt.push(t[a].IsOverSpeed),r&&0<parseInt(t[a].PId)&&(i=parseFloat(t[a].X),o=parseFloat(t[a].Y),i&&o&&r.call(this,t[a].PId,[i,o]));return n}function D(t,e,r){var n=e.length;if(!(n<=0)){for(var i=(r=r||{}).way,o=(void 0===i&&(i=1),r.padding||[50,50,50,50]),s=180,l=-180,u=180,c=-180,h=0,f=0,p=0;p<n;p++){var d=e[p][0],g=e[p][1];h+=d,f+=g,l<d&&(l=d),d<s&&(s=d),c<g&&(c=g),g<u&&(u=g)}var y=t.getView();switch(i){case 1:y.fit([s,u,l,c],{padding:o});break;case 2:var v=[h/n,f/n],m=(0,a.getDistance)([s,u],[l,c]);m=18-Math.floor(m/3e3);y.setCenter(v),y.setZoom(m)}}}function G(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"transparent",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"transparent",n=null,i=null,o=t.pointmaxs;t=t.pointmins,e=new l.default({stroke:new c.default({width:1,color:e}),fill:new u.default({color:r})}),i=i||new s.default({source:new p.default,style:e}),n=n||new g.default([[o,[t[0],o[1]],t,[o[0],t[1]],o]]),r=new y.default(n);return i.getSource().addFeature(r),i}function N(t,e){return e=e[t.get("code")],e||"#62e4c7"}(e._arr=w).LineString=b,w.Polygon=x;var z=["#62e4c7","#44cfbb","#28baaf","#13aba6","#0e9b95"];function U(t){return new u.default({color:N.apply(this,[t,z])})}function B(t){return new l.default({stroke:new c.default({color:1<arguments.length&&void 0!==arguments[1]?arguments[1]:"transparent",width:1}),fill:U.apply(this,[t])})}function V(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"#62e4c7",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"transparent",n={Polygon:new l.default({fill:new u.default({color:e}),stroke:new c.default({color:r,width:2})})};return new s.default({source:new p.default({features:(new d.default).readFeatures(t)}),style:function(t){return n[t.getGeometry().getType()]}})}function X(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"red",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"transparent",n={Polygon:new l.default({fill:new u.default({color:e}),stroke:new c.default({color:r,width:2})})};return new s.default({source:new p.default({features:(new d.default).readFeatures(t)}),style:function(t){return n[t.getGeometry().getType()]},zIndex:99})}function W(t,e){function r(t){--a,s||0!==a&&t||(s=!0,l&&l(t))}var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{done:null,duration:3e3,parts:2,called:!1},i=n.duration,o=e.getZoom(),a=n.parts,s=n.called,l=n.done;e.animate({center:t,duration:i},r),e.animate({zoom:o-1,duration:i/2},{zoom:o,duration:i/2},r)}e.colorArr=z;var H=(0,i.default)((function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{id:"",fillColor:"rgba(41, 212, 178, 0.4)",stroke:"rgba(23, 168, 162, 1)",strokeWidth:2,isSetId:!1,lineDash:new Array};(0,o.default)(this,t),this.lineDash=[],this.fillColor=e.fillColor,this.stroke=e.stroke,this.id=e.id,this.isSetId=e.isSetId,this.lineDash=e.lineDash,this.strokeWidth=e.strokeWidth}));function Y(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:new H,r=new l.default({fill:new u.default({color:e.fillColor}),stroke:new c.default({color:e.stroke,width:e.strokeWidth,lineDash:e.lineDash})});t=new p.default({features:(new d.default).readFeatures(t)});return new s.default({source:t,style:function(t){return e.isSetId&&t.setId(e.id),r}})}function q(t,e,r,n){return t=t*Math.PI/180,r=r*Math.PI/180,e=e*Math.PI/180-n*Math.PI/180,n=2*Math.asin(Math.sqrt(Math.pow(Math.sin((t-r)/2),2)+Math.cos(t)*Math.cos(r)*Math.pow(Math.sin(e/2),2))),n*=6378.137,Math.round(1e4*n)/10}e.PolygonModel=H},b1a2:function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return s}));var n=r("9f5e"),i=r("7fc9");function o(t,e,r,o,a,s,l){var u,c,h=(r-e)/o;if(1===h)u=e;else if(2===h)u=e,c=a;else if(0!==h){for(var f=t[e],p=t[e+1],d=0,g=[0],y=e+o;y<r;y+=o){var v=t[y],m=t[y+1];d+=Math.sqrt((v-f)*(v-f)+(m-p)*(m-p)),g.push(d),f=v,p=m}var _=a*d,b=Object(n["a"])(g,_);b<0?(c=(_-g[-b-2])/(g[-b-1]-g[-b-2]),u=e+(-b-2)*o):u=e+b*o}var x=l>1?l:2,w=s||new Array(x);for(y=0;y<x;++y)w[y]=void 0===u?NaN:void 0===c?t[u+y]:Object(i["e"])(t[u+y],t[u+o+y],c);return w}function a(t,e,r,n,o,a){if(r==e)return null;var s;if(o<t[e+n-1])return a?(s=t.slice(e,e+n),s[n-1]=o,s):null;if(t[r-1]<o)return a?(s=t.slice(r-n,r),s[n-1]=o,s):null;if(o==t[e+n-1])return t.slice(e,e+n);var l=e/n,u=r/n;while(l<u){var c=l+u>>1;o<t[(c+1)*n-1]?u=c:l=c+1}var h=t[l*n-1];if(o==h)return t.slice((l-1)*n,(l-1)*n+n);var f=t[(l+1)*n-1],p=(o-h)/(f-h);s=[];for(var d=0;d<n-1;++d)s.push(Object(i["e"])(t[(l-1)*n+d],t[l*n+d],p));return s.push(o),s}function s(t,e,r,n,i,o,s){if(s)return a(t,e,r[r.length-1],n,i,o);var l;if(i<t[n-1])return o?(l=t.slice(0,n),l[n-1]=i,l):null;if(t[t.length-1]<i)return o?(l=t.slice(t.length-n),l[n-1]=i,l):null;for(var u=0,c=r.length;u<c;++u){var h=r[u];if(e!=h){if(i<t[e+n-1])return null;if(i<=t[h-1])return a(t,e,h,n,i,!1);e=h}}return null}},b39d:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));class n{async fetch(t,e){return Promise.all(t.map(t=>this.fetchSlice(t,e)))}async fetchSlice(t){throw new Error(`fetching of slice ${t} not possible, not implemented`)}get fileSize(){return null}async close(){}}},b486:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("c810")),s=n(r("e7df")),l=r("13e2"),u=function(){function t(e,r){(0,i.default)(this,t),this._map=r,this._imageExtent=[],this._imageLayer=null,this.isShowPolygon=!0,this.type=0,this._imageExtentGCJ02=[],this._imageExtent=e.imageExtent,this._imageExtentGCJ02=l.GPS.convertBBoxGCJ02(e.imageExtent),this._url=e.url,this._id=e.id,this.type=e.type||0,this._createImageLayer()}return(0,o.default)(t,[{key:"_createImageLayer",value:function(){var t=this._imageExtent;this.type&&(t=this._imageExtentGCJ02),t=new a.default({source:new s.default({url:this._url,projection:"EPSG:4326",imageExtent:t}),zIndex:9});this._imageLayer=t,this._id&&t.set("id",this._id),this._map.addLayer(this._imageLayer)}},{key:"removeImageLayer",value:function(){this._map.removeLayer(this._imageLayer),this._imageLayer=null}},{key:"Id",get:function(){return this._id}},{key:"bingEvent",value:function(){}},{key:"clear",value:function(){}},{key:"show",value:function(){this.isShowPolygon||(this._map.addLayer(this._imageLayer),this.isShowPolygon=!0)}},{key:"hide",value:function(){this.isShowPolygon&&(this._map.removeLayer(this._imageLayer),this.isShowPolygon=!1)}},{key:"setExtent",value:function(t){this.type=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,this._imageLayer.setExtent(this.isConvertLineGCJ02())}},{key:"setZIndex",value:function(t){this._imageLayer.setZIndex(t)}},{key:"selectGPS",value:function(){this.type=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,this.removeImageLayer(),this._createImageLayer()}},{key:"isConvertLineGCJ02",value:function(){return this.type?this._imageExtentGCJ02:this._imageExtent}},{key:"setType",set:function(t){this.type=t}}]),t}();e.default=u},b589:function(t,e,r){"use strict";function n(t,e,r,n){for(var i=0,o=t[r-n],a=t[r-n+1];e<r;e+=n){var s=t[e],l=t[e+1];i+=a*s-o*l,o=s,a=l}return i/2}function i(t,e,r,i){for(var o=0,a=0,s=r.length;a<s;++a){var l=r[a];o+=n(t,e,l,i),e=l}return o}function o(t,e,r,n){for(var o=0,a=0,s=r.length;a<s;++a){var l=r[a];o+=i(t,e,l,n),e=l[l.length-1]}return o}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o}))},b639:function(t,e,r){"use strict";(function(t){
|
|
5
|
-
|
|
6
|
-
* The buffer module from node.js, for the browser.
|
|
7
|
-
*
|
|
8
|
-
* @author Feross Aboukhadijeh <http://feross.org>
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
var n=r("1fb5"),i=r("9152"),o=r("2335");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,r);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return p(this,t)}return c(this,t,e,r)}function c(t,e,r,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?y(t,e,r,n):"string"===typeof e?d(t,e,r):v(t,e)}function h(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e,r,n){return h(e),e<=0?l(t,e):void 0!==r?"string"===typeof n?l(t,e).fill(r,n):l(t,e).fill(r):l(t,e)}function p(t,e){if(h(e),t=l(t,e<0?0:0|m(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function d(t,e,r){if("string"===typeof r&&""!==r||(r="utf8"),!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|b(e,r);t=l(t,n);var i=t.write(e,r);return i!==n&&(t=t.slice(0,i)),t}function g(t,e){var r=e.length<0?0:0|m(e.length);t=l(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function y(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=g(t,e),t}function v(t,e){if(u.isBuffer(e)){var r=0|m(e.length);return t=l(t,r),0===t.length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?l(t,0):g(t,e);if("Buffer"===e.type&&o(e.data))return g(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function _(t){return+t!=t&&(t=0),u.alloc(+t)}function b(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(t).length;default:if(n)return Z(t).length;e=(""+e).toLowerCase(),n=!0}}function x(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return D(this,e,r);case"utf8":case"utf-8":return A(this,e,r);case"ascii":return F(this,e,r);case"latin1":case"binary":return k(this,e,r);case"base64":return M(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function w(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function O(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:E(t,e,r,n,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):E(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function E(t,e,r,n,i){var o,a=1,s=t.length,l=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=r;o<s;o++)if(u(t,o)===u(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){for(var h=!0,f=0;f<l;f++)if(u(t,o+f)!==u(e,f)){h=!1;break}if(h)return o}return-1}function S(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function T(t,e,r,n){return tt(Z(e,t.length-r),t,r,n)}function C(t,e,r,n){return tt(J(e),t,r,n)}function P(t,e,r,n){return C(t,e,r,n)}function j(t,e,r,n){return tt(Q(e),t,r,n)}function R(t,e,r,n){return tt($(e,t.length-r),t,r,n)}function M(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function A(t,e,r){r=Math.min(t.length,r);var n=[],i=e;while(i<r){var o,a,s,l,u=t[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=r)switch(h){case 1:u<128&&(c=u);break;case 2:o=t[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return I(n)}e.Buffer=u,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return c(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return f(null,t,e,r)},u.allocUnsafe=function(t){return p(null,t)},u.allocUnsafeSlow=function(t){return p(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},u.byteLength=b,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)w(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)w(this,e,e+3),w(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)w(this,e,e+7),w(this,e+1,e+6),w(this,e+2,e+5),w(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):x.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,a=r-e,s=Math.min(o,a),l=this.slice(n,i),c=t.slice(e,r),h=0;h<s;++h)if(l[h]!==c[h]){o=l[h],a=c[h];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return O(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return O(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"===typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return S(this,t,e,r);case"utf8":case"utf-8":return T(this,t,e,r);case"ascii":return C(this,t,e,r);case"latin1":case"binary":return P(this,t,e,r);case"base64":return j(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function I(t){var e=t.length;if(e<=L)return String.fromCharCode.apply(String,t);var r="",n=0;while(n<e)r+=String.fromCharCode.apply(String,t.slice(n,n+=L));return r}function F(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function k(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function D(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=K(t[o]);return i}function G(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function N(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function U(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function B(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function V(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function X(t,e,r,n,o){return o||V(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function W(t,e,r,n,o){return o||V(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);var n=this[t],i=1,o=0;while(++o<e&&(i*=256))n+=this[t+o]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);var n=this[t+--e],i=1;while(e>0&&(i*=256))n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||N(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||N(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||N(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);var n=this[t],i=1,o=0;while(++o<e&&(i*=256))n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);var n=e,i=1,o=this[t+--n];while(n>0&&(i*=256))o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||N(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||N(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||N(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||N(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||N(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||N(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;z(this,t,e,r,i,0)}var o=1,a=0;this[e]=255&t;while(++a<r&&(o*=256))this[e+a]=t/o&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;z(this,t,e,r,i,0)}var o=r-1,a=1;this[e+o]=255&t;while(--o>=0&&(a*=256))this[e+o]=t/a&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);z(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;this[e]=255&t;while(++o<r&&(a*=256))t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);z(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return X(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return X(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return W(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return W(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},u.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=u.isBuffer(t)?t:Z(new u(t,n).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var H=/[^+\/0-9A-Za-z-_]/g;function Y(t){if(t=q(t).replace(H,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function q(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function K(t){return t<16?"0"+t.toString(16):t.toString(16)}function Z(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function J(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function $(t,e){for(var r,n,i,o=[],a=0;a<t.length;++a){if((e-=2)<0)break;r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n)}return o}function Q(t){return n.toByteArray(Y(t))}function tt(t,e,r,n){for(var i=0;i<n;++i){if(i+r>=e.length||i>=t.length)break;e[i+r]=t[i]}return i}function et(t){return t!==t}}).call(this,r("c8ba"))},b739:function(t,e,r){"use strict";var n=r("0af5"),i=r("256f"),o=r("7fc9"),a=10,s=.25,l=function(){function t(t,e,r,s,l,u){this.sourceProj_=t,this.targetProj_=e;var c={},h=Object(i["getTransform"])(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return c[e]||(c[e]=h(t)),c[e]},this.maxSourceExtent_=s,this.errorThresholdSquared_=l*l,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!s&&!!this.sourceProj_.getExtent()&&Object(n["getWidth"])(s)==Object(n["getWidth"])(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(n["getWidth"])(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(n["getWidth"])(this.targetProj_.getExtent()):null;var f=Object(n["getTopLeft"])(r),p=Object(n["getTopRight"])(r),d=Object(n["getBottomRight"])(r),g=Object(n["getBottomLeft"])(r),y=this.transformInv_(f),v=this.transformInv_(p),m=this.transformInv_(d),_=this.transformInv_(g),b=a+(u?Math.max(0,Math.ceil(Object(o["f"])(Object(n["getArea"])(r)/(u*u*256*256)))):0);if(this.addQuad_(f,p,d,g,y,v,m,_,b),this.wrapsXInSource_){var x=1/0;this.triangles_.forEach((function(t,e,r){x=Math.min(x,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])-x>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]-x>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-x>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-x>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var r=Math.min(e[0][0],e[1][0],e[2][0]),n=Math.max(e[0][0],e[1][0],e[2][0]);n-r<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}c={}}return t.prototype.addTriangle_=function(t,e,r,n,i,o){this.triangles_.push({source:[n,i,o],target:[t,e,r]})},t.prototype.addQuad_=function(t,e,r,i,a,l,u,c,h){var f=Object(n["boundingExtent"])([a,l,u,c]),p=this.sourceWorldWidth_?Object(n["getWidth"])(f)/this.sourceWorldWidth_:null,d=this.sourceWorldWidth_,g=this.sourceProj_.canWrapX()&&p>.5&&p<1,y=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var v=Object(n["boundingExtent"])([t,e,r,i]),m=Object(n["getWidth"])(v)/this.targetWorldWidth_;y=m>s||y}!g&&this.sourceProj_.isGlobal()&&p&&(y=p>s||y)}if(!(!y&&this.maxSourceExtent_&&isFinite(f[0])&&isFinite(f[1])&&isFinite(f[2])&&isFinite(f[3]))||Object(n["intersects"])(f,this.maxSourceExtent_)){var _=0;if(!y&&(!isFinite(a[0])||!isFinite(a[1])||!isFinite(l[0])||!isFinite(l[1])||!isFinite(u[0])||!isFinite(u[1])||!isFinite(c[0])||!isFinite(c[1])))if(h>0)y=!0;else if(_=(isFinite(a[0])&&isFinite(a[1])?0:8)+(isFinite(l[0])&&isFinite(l[1])?0:4)+(isFinite(u[0])&&isFinite(u[1])?0:2)+(isFinite(c[0])&&isFinite(c[1])?0:1),1!=_&&2!=_&&4!=_&&8!=_)return;if(h>0){if(!y){var b=[(t[0]+r[0])/2,(t[1]+r[1])/2],x=this.transformInv_(b),w=void 0;if(g){var O=(Object(o["g"])(a[0],d)+Object(o["g"])(u[0],d))/2;w=O-Object(o["g"])(x[0],d)}else w=(a[0]+u[0])/2-x[0];var E=(a[1]+u[1])/2-x[1],S=w*w+E*E;y=S>this.errorThresholdSquared_}if(y){if(Math.abs(t[0]-r[0])<=Math.abs(t[1]-r[1])){var T=[(e[0]+r[0])/2,(e[1]+r[1])/2],C=this.transformInv_(T),P=[(i[0]+t[0])/2,(i[1]+t[1])/2],j=this.transformInv_(P);this.addQuad_(t,e,T,P,a,l,C,j,h-1),this.addQuad_(P,T,r,i,j,C,u,c,h-1)}else{var R=[(t[0]+e[0])/2,(t[1]+e[1])/2],M=this.transformInv_(R),A=[(r[0]+i[0])/2,(r[1]+i[1])/2],L=this.transformInv_(A);this.addQuad_(t,R,A,i,a,M,L,c,h-1),this.addQuad_(R,e,r,A,M,l,u,L,h-1)}return}}if(g){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&_)&&this.addTriangle_(t,r,i,a,u,c),0==(14&_)&&this.addTriangle_(t,r,e,a,u,l),_&&(0==(13&_)&&this.addTriangle_(e,i,t,l,c,a),0==(7&_)&&this.addTriangle_(e,i,r,l,c,u))}},t.prototype.calculateSourceExtent=function(){var t=Object(n["createEmpty"])();return this.triangles_.forEach((function(e,r,i){var o=e.source;Object(n["extendCoordinate"])(t,o[0]),Object(n["extendCoordinate"])(t,o[1]),Object(n["extendCoordinate"])(t,o[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}();e["a"]=l},b75d:function(t,e,r){"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},b7df:function(t,e,r){"use strict";r.d(e,"b",(function(){return l}));var n=r("fced"),i=r("1300"),o=r("38f3"),a=r("256f"),s=function(){function t(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}return t.prototype.getReadOptions=function(t,e){var r;if(e){var i=e.dataProjection?Object(a["get"])(e.dataProjection):this.readProjection(t);e.extent&&i&&i.getUnits()===n["b"].TILE_PIXELS&&(i=Object(a["get"])(i),i.setWorldExtent(e.extent)),r={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(r)},t.prototype.adaptOptions=function(t){return Object(o["a"])({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},t.prototype.getType=function(){return Object(i["b"])()},t.prototype.readFeature=function(t,e){return Object(i["b"])()},t.prototype.readFeatures=function(t,e){return Object(i["b"])()},t.prototype.readGeometry=function(t,e){return Object(i["b"])()},t.prototype.readProjection=function(t){return Object(i["b"])()},t.prototype.writeFeature=function(t,e){return Object(i["b"])()},t.prototype.writeFeatures=function(t,e){return Object(i["b"])()},t.prototype.writeGeometry=function(t,e){return Object(i["b"])()},t}();function l(t,e,r){var n,i=r?Object(a["get"])(r.featureProjection):null,o=r?Object(a["get"])(r.dataProjection):null;if(n=i&&o&&!Object(a["equivalent"])(i,o)?(e?t.clone():t).transform(e?i:o,e?o:i):t,e&&r&&void 0!==r.decimals){var s=Math.pow(10,r.decimals),l=function(t){for(var e=0,r=t.length;e<r;++e)t[e]=Math.round(t[e]*s)/s;return t};n===t&&(n=t.clone()),n.applyTransform(l)}return n}e["a"]=s},b9ec:function(t,e,r){"use strict";var n=r("137e"),i=r("7f98"),o=r("2efc"),a=r("dc07"),s=r("acc1"),l=r("0b0e"),u=r("a896"),c=r("38f3"),h=r("0af5"),f=r("256f"),p=r("1300"),d=r("9f5e"),g=r("345d"),y=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),v=function(t){function e(e){var r=t.call(this,e)||this;return r.extentChanged=!0,r.renderedExtent_=null,r.renderedPixelRatio,r.renderedProjection=null,r.renderedRevision,r.renderedTiles=[],r.newTiles_=!1,r.tmpExtent=Object(h["createEmpty"])(),r.tmpTileRange_=new a["b"](0,0,0,0),r}return y(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),r=t.getState(),n=e.getUseInterimTilesOnError();return r==s["a"].LOADED||r==s["a"].EMPTY||r==s["a"].ERROR&&!n},e.prototype.getTile=function(t,e,r,n){var i=n.pixelRatio,o=n.viewState.projection,a=this.getLayer(),l=a.getSource(),u=l.getTile(t,e,r,i,o);return u.getState()==s["a"].ERROR&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):u.setState(s["a"].LOADED)),this.isDrawableTile(u)||(u=u.getInterimTile()),u},e.prototype.getData=function(t){var e=this.frameState;if(!e)return null;var r=this.getLayer(),n=Object(u["a"])(e.pixelToCoordinateTransform,t.slice()),a=r.getExtent();if(a&&!Object(h["containsCoordinate"])(a,n))return null;for(var l=e.pixelRatio,c=e.viewState.projection,f=e.viewState,p=r.getRenderSource(),d=p.getTileGridForProjection(f.projection),y=p.getTilePixelRatio(e.pixelRatio),v=d.getZForResolution(f.resolution);v>=d.getMinZoom();--v){var m=d.getTileCoordForCoordAndZ(n,v),_=p.getTile(v,m[1],m[2],l,c);if(!(_ instanceof i["a"]||_ instanceof o["a"]))return null;if(_.getState()===s["a"].LOADED){var b=d.getOrigin(v),x=Object(g["d"])(d.getTileSize(v)),w=d.getResolution(v),O=Math.floor(y*((n[0]-b[0])/w-m[1]*x[0])),E=Math.floor(y*((b[1]-n[1])/w-m[2]*x[1])),S=Math.round(y*p.getGutterForProjection(f.projection));return this.getImageData(_.getImage(),O+S,E+S)}}return null},e.prototype.loadedTileCallback=function(e,r,n){return!!this.isDrawableTile(n)&&t.prototype.loadedTileCallback.call(this,e,r,n)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var r=t.layerStatesArray[t.layerIndex],n=t.viewState,i=n.projection,o=n.resolution,a=n.center,g=n.rotation,y=t.pixelRatio,v=this.getLayer(),m=v.getSource(),_=m.getRevision(),b=m.getTileGridForProjection(i),x=b.getZForResolution(o,m.zDirection),w=b.getResolution(x),O=t.extent,E=t.viewState.resolution,S=m.getTilePixelRatio(y),T=Math.round(Object(h["getWidth"])(O)/E*y),C=Math.round(Object(h["getHeight"])(O)/E*y),P=r.extent&&Object(f["fromUserExtent"])(r.extent,i);P&&(O=Object(h["getIntersection"])(O,Object(f["fromUserExtent"])(r.extent,i)));var j=w*T/2/S,R=w*C/2/S,M=[a[0]-j,a[1]-R,a[0]+j,a[1]+R],A=b.getTileRangeForExtentAndZ(O,x),L={};L[x]={};var I=this.createLoadedTileFinder(m,i,L),F=this.tmpExtent,k=this.tmpTileRange_;this.newTiles_=!1;for(var D=g?Object(h["getRotatedViewport"])(n.center,E,g,t.size):void 0,G=A.minX;G<=A.maxX;++G)for(var N=A.minY;N<=A.maxY;++N)if(!g||b.tileCoordIntersectsViewport([x,G,N],D)){var z=this.getTile(x,G,N,t);if(this.isDrawableTile(z)){var U=Object(p["c"])(this);if(z.getState()==s["a"].LOADED){L[x][z.tileCoord.toString()]=z;var B=z.inTransition(U);B&&1!==r.opacity&&(z.endTransition(U),B=!1),this.newTiles_||!B&&-1!==this.renderedTiles.indexOf(z)||(this.newTiles_=!0)}if(1===z.getAlpha(U,t.time))continue}var V=b.getTileCoordChildTileRange(z.tileCoord,k,F),X=!1;V&&(X=I(x+1,V)),X||b.forEachTileCoordParentTileRange(z.tileCoord,I,k,F)}var W=w/o*y/S;Object(u["b"])(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/y,1/y,g,-T/2,-C/2);var H=Object(u["k"])(this.pixelTransform);this.useContainer(e,H,this.getBackground(t));var Y=this.context,q=Y.canvas;Object(u["d"])(this.inversePixelTransform,this.pixelTransform),Object(u["b"])(this.tempTransform,T/2,C/2,W,W,0,-T/2,-C/2),q.width!=T||q.height!=C?(q.width=T,q.height=C):this.containerReused||Y.clearRect(0,0,T,C),P&&this.clipUnrotated(Y,t,P),m.getInterpolate()||Object(c["a"])(Y,l["a"]),this.preRender(Y,t),this.renderedTiles.length=0;var K,Z,J,$=Object.keys(L).map(Number);$.sort(d["i"]),1!==r.opacity||this.containerReused&&!m.getOpaque(t.viewState.projection)?(K=[],Z=[]):$=$.reverse();for(var Q=$.length-1;Q>=0;--Q){var tt=$[Q],et=m.getTilePixelSize(tt,y,i),rt=b.getResolution(tt),nt=rt/w,it=et[0]*nt*W,ot=et[1]*nt*W,at=b.getTileCoordForCoordAndZ(Object(h["getTopLeft"])(M),tt),st=b.getTileCoordExtent(at),lt=Object(u["a"])(this.tempTransform,[S*(st[0]-M[0])/w,S*(M[3]-st[3])/w]),ut=S*m.getGutterForProjection(i),ct=L[tt];for(var ht in ct){z=ct[ht];var ft=z.tileCoord,pt=at[1]-ft[1],dt=Math.round(lt[0]-(pt-1)*it),gt=at[2]-ft[2],yt=Math.round(lt[1]-(gt-1)*ot),vt=(G=Math.round(lt[0]-pt*it),N=Math.round(lt[1]-gt*ot),dt-G),mt=yt-N,_t=x===tt,bt=(B=_t&&1!==z.getAlpha(Object(p["c"])(this),t.time),!1);if(!B)if(K){J=[G,N,G+vt,N,G+vt,N+mt,G,N+mt];for(var xt=0,wt=K.length;xt<wt;++xt)if(x!==tt&&tt<Z[xt]){var Ot=K[xt];Object(h["intersects"])([G,N,G+vt,N+mt],[Ot[0],Ot[3],Ot[4],Ot[7]])&&(bt||(Y.save(),bt=!0),Y.beginPath(),Y.moveTo(J[0],J[1]),Y.lineTo(J[2],J[3]),Y.lineTo(J[4],J[5]),Y.lineTo(J[6],J[7]),Y.moveTo(Ot[6],Ot[7]),Y.lineTo(Ot[4],Ot[5]),Y.lineTo(Ot[2],Ot[3]),Y.lineTo(Ot[0],Ot[1]),Y.clip())}K.push(J),Z.push(tt)}else Y.clearRect(G,N,vt,mt);this.drawTileImage(z,t,G,N,vt,mt,ut,_t),K&&!B?(bt&&Y.restore(),this.renderedTiles.unshift(z)):this.renderedTiles.push(z),this.updateUsedTiles(t.usedTiles,m,z)}}return this.renderedRevision=_,this.renderedResolution=w,this.extentChanged=!this.renderedExtent_||!Object(h["equals"])(this.renderedExtent_,M),this.renderedExtent_=M,this.renderedPixelRatio=y,this.renderedProjection=i,this.manageTilePyramid(t,m,b,y,i,O,x,v.getPreload()),this.scheduleExpireCache(t,m),this.postRender(Y,t),r.extent&&Y.restore(),Object(c["a"])(Y,l["b"]),H!==q.style.transform&&(q.style.transform=H),this.container},e.prototype.drawTileImage=function(t,e,r,n,i,o,a,s){var l=this.getTileImage(t);if(l){var u=Object(p["c"])(this),c=e.layerStatesArray[e.layerIndex],h=c.opacity*(s?t.getAlpha(u,e.time):1),f=h!==this.context.globalAlpha;f&&(this.context.save(),this.context.globalAlpha=h),this.context.drawImage(l,a,a,l.width-2*a,l.height-2*a,r,n,i,o),f&&this.context.restore(),h!==c.opacity?e.animate=!0:s&&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 r=function(t,e,r){var n=Object(p["c"])(t);n in r.usedTiles&&t.expireCache(r.viewState.projection,r.usedTiles[n])}.bind(null,e);t.postRenderFunctions.push(r)}},e.prototype.updateUsedTiles=function(t,e,r){var n=Object(p["c"])(e);n in t||(t[n]={}),t[n][r.getKey()]=!0},e.prototype.manageTilePyramid=function(t,e,r,n,i,o,a,l,u){var c=Object(p["c"])(e);c in t.wantedTiles||(t.wantedTiles[c]={});var f,d,g,y,v,m,_=t.wantedTiles[c],b=t.tileQueue,x=r.getMinZoom(),w=t.viewState.rotation,O=w?Object(h["getRotatedViewport"])(t.viewState.center,t.viewState.resolution,w,t.size):void 0,E=0;for(m=x;m<=a;++m)for(d=r.getTileRangeForExtentAndZ(o,m,d),g=r.getResolution(m),y=d.minX;y<=d.maxX;++y)for(v=d.minY;v<=d.maxY;++v)w&&!r.tileCoordIntersectsViewport([m,y,v],O)||(a-m<=l?(++E,f=e.getTile(m,y,v,n,i),f.getState()==s["a"].IDLE&&(_[f.getKey()]=!0,b.isKeyQueued(f.getKey())||b.enqueue([f,c,r.getTileCoordCenter(f.tileCoord),g])),void 0!==u&&u(f)):e.useTile(m,y,v,i));e.updateCacheSize(E,i)},e}(n["b"]);e["a"]=v},bab7:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("13e2");function i(t,e){var r,n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))||e&&t&&"number"==typeof t.length)return n&&(t=n),r=0,{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function o(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(r="Object"===r&&t.constructor?t.constructor.name:r)||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var s={PI:3.141592653589793,x_pi:52.35987755982988,delta:function(t,e){var r=6378245,n=.006693421622965943,i=this.transformLat(e-105,t-35),o=(e=this.transformLon(e-105,t-35),t=t/180*this.PI,1-n*(o=Math.sin(t))*o),a=Math.sqrt(o);return{lat:180*i/(r*(1-n)/(o*a)*this.PI),lon:180*e/(r/a*Math.cos(t)*this.PI)}},gcj_encrypt:function(t,e){if(this.outOfChina(e,t))return{lon:t,lat:e};var r=this.delta(e,t);return{lon:t+r.lon,lat:e+r.lat}},gcj_decrypt:function(t,e){if(this.outOfChina(e,t))return{lon:t,lat:e};var r=this.delta(e,t);return{lon:t-r.lon,lat:e-r.lat}},gcj_decrypt_exact:function(t,e){for(var r=e-.01,n=t-.01,i=e+.01,o=t+.01,a=0;;){var s=(r+i)/2,l=(n+o)/2,u=this.gcj_encrypt(s,l),c=u.lat-e;u=u.lon-t;if(Math.abs(c)<1e-9&&Math.abs(u)<1e-9)break;if(0<c?i=s:r=s,0<u?o=l:n=l,1e4<++a)break}return{lat:s,lon:l}},bd_encrypt:function(t,e){var r=Math.sqrt(t*t+e*e)+2e-5*Math.sin(e*this.x_pi);e=Math.atan2(e,t)+3e-6*Math.cos(t*this.x_pi);return{lat:r*Math.cos(e)+.0065,lon:r*Math.sin(e)+.006}},bd_decrypt:function(t,e){e-=.0065,t-=.006;var r=Math.sqrt(e*e+t*t)-2e-5*Math.sin(t*this.x_pi);t=Math.atan2(t,e)-3e-6*Math.cos(e*this.x_pi),e=r*Math.cos(t);return{lat:r*Math.sin(t),lon:e}},distance:function(t,e,r,n){return e=Math.cos(t*Math.PI/180)*Math.cos(r*Math.PI/180)*Math.cos((e-n)*Math.PI/180)+Math.sin(t*Math.PI/180)*Math.sin(r*Math.PI/180),(e=1<e?1:e)<-1&&(e=-1),6371e3*Math.acos(e)},outOfChina:function(t,e){return e<72.004||137.8347<e||t<.8293||55.8271<t},transformLat:function(t,e){var r=2*t-100+3*e+.2*e*e+.1*t*e+.2*Math.sqrt(Math.abs(t));return(r+=2*(20*Math.sin(6*t*this.PI)+20*Math.sin(2*t*this.PI))/3)+2*(20*Math.sin(e*this.PI)+40*Math.sin(e/3*this.PI))/3+2*(160*Math.sin(e/12*this.PI)+320*Math.sin(e*this.PI/30))/3},transformLon:function(t,e){return e=300+t+2*e+.1*t*t+.1*t*e+.1*Math.sqrt(Math.abs(t)),(e+=2*(20*Math.sin(6*t*this.PI)+20*Math.sin(2*t*this.PI))/3)+2*(20*Math.sin(t*this.PI)+40*Math.sin(t/3*this.PI))/3+2*(150*Math.sin(t/12*this.PI)+300*Math.sin(t/30*this.PI))/3},gauss:function(t,e){var r,n,i,o=.0174532925199433,a=1/298.3,s=6*(i=t/6)+3;return s*=o,t*=o,e*=o,o=2*a-a*a,a=6378245/Math.sqrt(1-o*Math.sin(e)*Math.sin(e)),r=Math.tan(e)*Math.tan(e),n=.006738525414683491*Math.cos(e)*Math.cos(e),s=a*((t=(t-s)*Math.cos(e))+(1-r+n)*t*t*t/6+(5-18*r+r*r+14*n-58*r*n)*t*t*t*t*t/120),o=6378245*(.9983245386485315*e-.0025142464643137575*Math.sin(2*e)+2638289149946452e-21*Math.sin(4*e)-35*o*o*o/3072*Math.sin(6*e))+a*Math.tan(e)*(t*t/2+(5-r+9*n+4*n*n)*t*t*t*t/24+(61-58*r+r*r+270*n-330*r*n)*t*t*t*t*t*t/720),{xval:s+=1e6*(1+i)+5e5,yval:o}},wgsToBd:function(t,e){return e=this.gcj_encrypt(parseFloat(e.toString()),parseFloat(t.toString())),this.bd_encrypt(e.lon,e.lat)},bdToWgs:function(t,e){return e=this.bd_decrypt(e,t),this.gcj_decrypt(e.lat,e.lon)},convertGCJ02:function(t){var e=new Array,r=new Array,n=t.geometry.coordinates,o=t.bbox,a=t.properties,s=new Array;if(o)for(var l=0;l<2;l++){var u=this.gcj_encrypt(o[l+1],o[l+l]);e.push(u.lon,u.lat)}var c,h,f=i(n);try{for(f.s();!(c=f.n()).done;){var p,d=i(c.value);try{for(d.s();!(p=d.n()).done;){var g=p.value,y=this.gcj_encrypt(g[0],g[1]),v=y.lat,m=y.lon;r.push([m,v])}}catch(t){d.e(t)}finally{d.f()}}}catch(t){f.e(t)}finally{f.f()}return a&&a.center&&a.center.length&&(h=(n=this.gcj_encrypt(a.center[0],a.center[1])).lat,n=n.lon,s.push(n),s.push(h),a.center.properties=s),t.bbox=e,t.geometry.coordinates=[r],t},convertWGS84:function(t){var e=new Array,r=new Array,n=new Array,o=t.geometry.coordinates,a=t.bbox,s=t.properties;if(a)for(var l=0;l<2;l++){var u=this.gcj_decrypt(a[l+1],a[l+l]);e.push(u.lon,u.lat)}var c,h,f=i(o);try{for(f.s();!(c=f.n()).done;){var p,d=i(c.value);try{for(d.s();!(p=d.n()).done;){var g=p.value,y=this.gcj_decrypt(g[0],g[1]),v=y.lat,m=y.lon;r.push([m,v])}}catch(t){d.e(t)}finally{d.f()}}}catch(t){f.e(t)}finally{f.f()}return s&&s.center&&s.center.length&&(h=(o=this.gcj_decrypt(s.center[0],s.center[1])).lat,o=o.lon,n.push(o),n.push(h),s.center.properties=n),t.bbox=e,t.geometry.coordinates=[r],t},convertCoordinatesGCJ02:function(t){var e,r=[],o=i(t);try{for(o.s();!(e=o.n()).done;){var a,s=i(e.value);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=n.GPS.gcj_encrypt(l[0],l[1]),c=u.lat,h=u.lon;r.push([h,c])}}catch(t){s.e(t)}finally{s.f()}}}catch(t){o.e(t)}finally{o.f()}return[r]},convertCoordinatesWGS84:function(t){var e,r=[],o=i(t);try{for(o.s();!(e=o.n()).done;){var a,s=i(e.value);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=n.GPS.gcj_decrypt(l[0],l[1]),c=u.lat,h=u.lon;r.push([h,c])}}catch(t){s.e(t)}finally{s.f()}}}catch(t){o.e(t)}finally{o.f()}return[r]},convertBBoxWGS84:function(t){var e=[],r=n.GPS.gcj_decrypt(t[0],t[1]),i=r.lat,o=(r=r.lon,t=n.GPS.gcj_decrypt(t[2],t[3]),t.lon);t=t.lat;return e.push(r),e.push(i),e.push(o),e.push(t),e},convertBBoxGCJ02:function(t){var e=[],r=n.GPS.gcj_encrypt(t[0],t[1]),i=r.lat,o=(r=r.lon,t=n.GPS.gcj_encrypt(t[2],t[3]),t.lon);t=t.lat;return e.push(r),e.push(i),e.push(o),e.push(t),e},convertLineGCJ02:function(t){var e,r=[],o=i(t);try{for(o.s();!(e=o.n()).done;){var a=e.value,s=n.GPS.gcj_encrypt(a[0],a[1]),l=s.lat,u=s.lon;r.push([u,l])}}catch(t){o.e(t)}finally{o.f()}return r},convertLineWGS84:function(t){var e,r=[],o=i(t);try{for(o.s();!(e=o.n()).done;){var a=e.value,s=n.GPS.gcj_decrypt(a[0],a[1]),l=s.lat,u=s.lon;r.push([u,l])}}catch(t){o.e(t)}finally{o.f()}return r}};e.default=s},bb6c:function(t,e,r){"use strict";function n(t,e,r,n,i){for(var o=void 0!==i?i:[],a=0,s=e;s<r;s+=n)o[a++]=t.slice(s,s+n);return o.length=a,o}function i(t,e,r,i,o){for(var a=void 0!==o?o:[],s=0,l=0,u=r.length;l<u;++l){var c=r[l];a[s++]=n(t,e,c,i,a[s]),e=c}return a.length=s,a}function o(t,e,r,n,o){for(var a=void 0!==o?o:[],s=0,l=0,u=r.length;l<u;++l){var c=r[l];a[s++]=i(t,e,c,n,a[s]),e=c[c.length-1]}return a.length=s,a}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o}))},bd02:function(t,e,r){"use strict";(function(t){var n,i=r("da5c"),o=r("cef7"),a=r("01d4"),s=r("ed9b"),l=r("c810"),u=r("2c15"),c=r("ff80"),h=r("480c"),f=r("57cc"),p=r("d0fc"),d=r("38f3"),g=r("0999"),y=r("a896"),v=r("0af5"),m=r("1300"),_=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),b=!0;try{new ImageData(10,10)}catch(F){b=!1}function x(t,e,r){if(b)return new ImageData(t,e,r);n||(n=document.createElement("canvas").getContext("2d"));var i=n.createImageData(e,r);return i.data.set(t),i}function w(t){var e=!0;try{new ImageData(10,10)}catch(F){e=!1}function r(t,r,n){return e?new ImageData(t,r,n):{data:t,width:r,height:n}}return function(e){var n=e["buffers"],i=e["meta"],o=e["imageOps"],a=e["width"],s=e["height"],l=n.length,u=n[0].byteLength;if(o){for(var c=new Array(l),h=0;h<l;++h)c[h]=r(new Uint8ClampedArray(n[h]),a,s);var f=t(c,i).data;return f.buffer}var p=new Uint8ClampedArray(u),d=new Array(l),g=new Array(l);for(h=0;h<l;++h)d[h]=new Uint8ClampedArray(n[h]),g[h]=[0,0,0,0];for(var y=0;y<u;y+=4){for(var v=0;v<l;++v){var m=d[v];g[v][0]=m[y],g[v][1]=m[y+1],g[v][2]=m[y+2],g[v][3]=m[y+3]}var _=t(g,i);p[y]=_[0],p[y+1]=_[1],p[y+2]=_[2],p[y+3]=_[3]}return p.buffer}}function O(e,r){var n=Object.keys(e.lib||{}).map((function(t){return"var "+t+" = "+e.lib[t].toString()+";"})),i=n.concat(["var __minion__ = ("+w.toString()+")(",e.operation.toString(),");",'self.addEventListener("message", function(event) {'," var buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),o=new Worker("undefined"===typeof Blob?"data:text/javascript;base64,"+t.from(i.join("\n"),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return o.addEventListener("message",r),o}function E(t,e){var r=w(t.operation),n=!1;return{postMessage:function(t){setTimeout((function(){n||e({data:{buffer:r(t),meta:t["meta"]}})}),0)},terminate:function(){n=!0}}}var S=function(t){function e(e){var r,n=t.call(this)||this;n._imageOps=!!e.imageOps,r=0===e.threads?0:n._imageOps?1:e.threads||1;var i=new Array(r);if(r)for(var o=0;o<r;++o)i[o]=O(e,n._onWorkerMessage.bind(n,o));else i[0]=E(e,n._onWorkerMessage.bind(n,0));return n._workers=i,n._queue=[],n._maxQueueLength=e.queue||1/0,n._running=0,n._dataLookup={},n._job=null,n}return _(e,t),e.prototype.process=function(t,e,r){this._enqueue({inputs:t,meta:e,callback:r}),this._dispatch()},e.prototype._enqueue=function(t){this._queue.push(t);while(this._queue.length>this._maxQueueLength)this._queue.shift().callback(null,null)},e.prototype._dispatch=function(){if(!this._running&&0!==this._queue.length){var t=this._queue.shift();this._job=t;var e=t.inputs[0].width,r=t.inputs[0].height,n=t.inputs.map((function(t){return t.data.buffer})),i=this._workers.length;if(this._running=i,1!==i)for(var o=t.inputs[0].data.length,a=4*Math.ceil(o/4/i),s=0;s<i;++s){for(var l=s*a,u=[],c=0,h=n.length;c<h;++c)u.push(n[c].slice(l,l+a));this._workers[s].postMessage({buffers:u,meta:t.meta,imageOps:this._imageOps,width:e,height:r},u)}else this._workers[0].postMessage({buffers:n,meta:t.meta,imageOps:this._imageOps,width:e,height:r},n)}},e.prototype._onWorkerMessage=function(t,e){this.disposed||(this._dataLookup[t]=e.data,--this._running,0===this._running&&this._resolveJob())},e.prototype._resolveJob=function(){var t,e,r=this._job,n=this._workers.length;if(1===n)t=new Uint8ClampedArray(this._dataLookup[0]["buffer"]),e=this._dataLookup[0]["meta"];else{var i=r.inputs[0].data.length;t=new Uint8ClampedArray(i),e=new Array(n);for(var o=4*Math.ceil(i/4/n),a=0;a<n;++a){var s=this._dataLookup[a]["buffer"],l=a*o;t.set(new Uint8ClampedArray(s),l),e[a]=this._dataLookup[a]["meta"]}}this._job=null,this._dataLookup={},r.callback(null,x(t,r.inputs[0].width,r.inputs[0].height),e),this._dispatch()},e.prototype.disposeInternal=function(){for(var t=0;t<this._workers.length;++t)this._workers[t].terminate();this._workers.length=0},e}(i["a"]),T={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"},C={PIXEL:"pixel",IMAGE:"image"},P=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.extent=r.extent,i.resolution=r.viewState.resolution/r.pixelRatio,i.data=n,i}return _(e,t),e}(o["a"]),j=function(t){function e(e){var r=t.call(this,{projection:null})||this;r.on,r.once,r.un,r.processor_=null,r.operationType_=void 0!==e.operationType?e.operationType:C.PIXEL,r.threads_=void 0!==e.threads?e.threads:1,r.layers_=L(e.sources);for(var n=r.changed.bind(r),i=0,o=r.layers_.length;i<o;++i)r.layers_[i].addEventListener(a["a"].CHANGE,n);return r.tileQueue_=new f["a"]((function(){return 1}),r.changed.bind(r)),r.requestedFrameState_,r.renderedImageCanvas_=null,r.renderedRevision_,r.frameState_={animate:!1,coordinateToPixelTransform:Object(y["c"])(),declutterTree:null,extent:null,index:0,layerIndex:0,layerStatesArray:A(r.layers_),pixelRatio:1,pixelToCoordinateTransform:Object(y["c"])(),postRenderFunctions:[],size:[0,0],tileQueue:r.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Object(m["c"])(r),renderTargets:{}},r.setAttributions((function(t){for(var r=[],n=0,i=e.sources.length;n<i;++n){var o=e.sources[n],a=o instanceof c["a"]?o:o.getSource(),s=a.getAttributions();if("function"===typeof s){var l=s(t);r.push.apply(r,l)}}return 0!==r.length?r:null})),void 0!==e.operation&&r.setOperation(e.operation,e.lib),r}return _(e,t),e.prototype.setOperation=function(t,e){this.processor_&&this.processor_.dispose(),this.processor_=new S({operation:t,imageOps:this.operationType_===C.IMAGE,queue:1,lib:e,threads:this.threads_}),this.changed()},e.prototype.updateFrameState_=function(t,e,r){var n=Object(d["a"])({},this.frameState_);n.viewState=Object(d["a"])({},n.viewState);var i=Object(v["getCenter"])(t);n.extent=t.slice(),n.size[0]=Math.round(Object(v["getWidth"])(t)/e),n.size[1]=Math.round(Object(v["getHeight"])(t)/e),n.time=Date.now();var o=n.viewState;return o.center=i,o.projection=r,o.resolution=e,n},e.prototype.allSourcesReady_=function(){for(var t,e=!0,r=0,n=this.layers_.length;r<n;++r)if(t=this.layers_[r].getSource(),"ready"!==t.getState()){e=!1;break}return e},e.prototype.getImage=function(t,e,r,n){if(!this.allSourcesReady_())return null;var i=this.updateFrameState_(t,e,n);if(this.requestedFrameState_=i,this.renderedImageCanvas_){var o=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();e===o&&Object(v["equals"])(t,a)||(this.renderedImageCanvas_=null)}return this.renderedImageCanvas_&&this.getRevision()===this.renderedRevision_||this.processSources_(),i.tileQueue.loadMoreTiles(16,16),i.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_},e.prototype.processSources_=function(){for(var t=this.requestedFrameState_,e=this.layers_.length,r=new Array(e),n=0;n<e;++n){t.layerIndex=n;var i=M(this.layers_[n],t);if(!i)return;r[n]=i}var o={};this.dispatchEvent(new P(T.BEFOREOPERATIONS,t,o)),this.processor_.process(r,o,this.onWorkerComplete_.bind(this,t))},e.prototype.onWorkerComplete_=function(t,e,r,n){if(!e&&r){var i=t.extent,o=t.viewState.resolution;if(o===this.requestedFrameState_.viewState.resolution&&Object(v["equals"])(i,this.requestedFrameState_.extent)){var a;if(this.renderedImageCanvas_)a=this.renderedImageCanvas_.getImage().getContext("2d");else{var l=Math.round(Object(v["getWidth"])(i)/o),u=Math.round(Object(v["getHeight"])(i)/o);a=Object(g["a"])(l,u),this.renderedImageCanvas_=new s["a"](i,o,1,a.canvas)}a.putImageData(r,0,0),this.changed(),this.renderedRevision_=this.getRevision(),this.dispatchEvent(new P(T.AFTEROPERATIONS,t,n)),t.animate&&requestAnimationFrame(this.changed.bind(this))}}},e.prototype.disposeInternal=function(){this.processor_&&this.processor_.dispose(),t.prototype.disposeInternal.call(this)},e}(u["a"]);j.prototype.dispose;var R=null;function M(t,e){var r=t.getRenderer();if(!r)throw new Error("Unsupported layer type: "+t);if(!r.prepareFrame(e))return null;var n=e.size[0],i=e.size[1];if(0===n||0===i)return null;var o,a=r.renderFrame(e,null);if(a instanceof HTMLCanvasElement)o=a;else{if(a&&(o=a.firstElementChild),!(o instanceof HTMLCanvasElement))throw new Error("Unsupported rendered element: "+o);if(o.width===n&&o.height===i){var s=o.getContext("2d");return s.getImageData(0,0,n,i)}}if(R){var l=R.canvas;l.width!==n||l.height!==i?R=Object(g["a"])(n,i):R.clearRect(0,0,n,i)}else R=Object(g["a"])(n,i);return R.drawImage(o,0,0,n,i),R.getImageData(0,0,n,i)}function A(t){return t.map((function(t){return t.getLayerState()}))}function L(t){for(var e=t.length,r=new Array(e),n=0;n<e;++n)r[n]=I(t[n]);return r}function I(t){var e;return t instanceof c["a"]?t instanceof p["b"]?e=new h["default"]({source:t}):t instanceof u["a"]&&(e=new l["default"]({source:t})):e=t,e}e["a"]=j}).call(this,r("b639").Buffer)},beb2:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("448a"))),o=n(r("970b")),a=n(r("5bc3")),s=r("15e0"),l=n(r("3e6b")),u=n(r("55bd")),c=r("0af5"),h=function(){function t(e,r){var n=this;(0,o.default)(this,t),this.callback=e,this.maxFeatureCount=0,this.vector=null,this.vectorSource=null,this.currentResolution=0,this.textFill=null,this.aggregationCallback=null,this.removeAggregationCallback=null,this.clearfeatureMap=new Map,this.featureMap=new Map,this.styleFunction=null,this.src=null,this.color=null,this.offsetX=0,this.offsetY=0,this.fontSize=null,this._fontFamily="Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif",this.text=r.text,this.textFill=null,this.aggregationCallback=r.aggregationCallback,this.removeAggregationCallback=r.removeAggregationCallback,this.src=r.src||null,this.fontSize="".concat(r.fontSize,"px")||!1,this.offsetX=r.offsetX||0,this.offsetY=r.offsetY||0,this.color=r.color||"#fff",this._init(),this.styleFunction=function(t,e){var r=t.get("features").length;return e!=n.currentResolution&&(n.calculateClusterInfo(e,r),n.currentResolution=e),1<r?new s.Style({text:new s.Text({text:"".concat(r.toString()).concat(n.text),fill:n.textFill,offsetX:n.offsetX,offsetY:n.offsetY,font:"".concat(n.fontSize," ").concat(n._fontFamily)}),image:new s.Icon({src:n.src,crossOrigin:"anonymous"})}):(t.get("features")[0],null)}}return(0,a.default)(t,[{key:"_init",value:function(){this.textFill=new s.Fill({color:this.color})}},{key:"calculateClusterInfo",value:function(t,e){this.maxFeatureCount=0;for(var r=this.vector.getSource().getFeatures(),n=r.length-1;0<=n;--n){for(var o=r[n].get("features"),a=(0,c.createEmpty)(),s=void 0,l=[],u=(s=0,o.length);s<u;++s)this.callback&&(l.push(o[s]),this.callback(o[s],t,1==o.length)),(0,c.extend)(a,o[s].getGeometry().getExtent());this.aggregationCallback&&(1<o.length?this.aggregationCallback((0,i.default)(l)):this.removeAggregationCallback&&this.removeAggregationCallback(l[0])),l=[],this.maxFeatureCount=Math.max(this.maxFeatureCount,u)}}},{key:"getVectorLayer",value:function(t){return this.vector=new l.default({zIndex:999,source:new u.default({distance:1<arguments.length&&void 0!==arguments[1]?arguments[1]:30,source:t}),style:this.styleFunction}),this.vector}}]),t}();e.default=h},beb7:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FeaturePolygonModel=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("4cdf")),s=n(r("5831")),l=n(r("f403")),u=n(r("bab7")),c=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;(0,i.default)(this,t),this.gpsType=e,this._features=[],this._coordinates=[],this._coordinatesGCJ02C=[]}return(0,o.default)(t,[{key:"createPolygon",value:function(t,e){var r=t[0],n=(t=t[1],this._coordinates.push([r,t]),u.default.gcj_encrypt(r,t)),i=n.lon;n=n.lat,this._coordinatesGCJ02C.push([i,n]),i=this.gpsType?[i,n]:[r,t],n=new a.default(new l.default(i));e&&n.setId(e),this._features.push(n)}},{key:"getVectorSource",value:function(t){var e=this;return t.forEach((function(t){e.createPolygon(t.coordinates,t.id)})),new s.default({features:this._features})}},{key:"selectGPSAll",value:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;this.gpsType=e,this._features.forEach((function(r,n){n=(e?t._coordinatesGCJ02C:t._coordinates)[n],r.setGeometry(new l.default(n))}))}}]),t}(),h=(e.default=c,(0,o.default)((function t(e,r){(0,i.default)(this,t),this.coordinates=e,this.id=r})));e.FeaturePolygonModel=h},bef8:function(t,e,r){"use strict";function n(t,e,r,n,i,o){for(var a=o||[],s=0,l=e;l<r;l+=n){var u=t[l],c=t[l+1];a[s++]=i[0]*u+i[2]*c+i[4],a[s++]=i[1]*u+i[3]*c+i[5]}return o&&a.length!=s&&(a.length=s),a}function i(t,e,r,n,i,o,a){for(var s=a||[],l=Math.cos(i),u=Math.sin(i),c=o[0],h=o[1],f=0,p=e;p<r;p+=n){var d=t[p]-c,g=t[p+1]-h;s[f++]=c+d*l-g*u,s[f++]=h+d*u+g*l;for(var y=p+2;y<p+n;++y)s[f++]=t[y]}return a&&s.length!=f&&(s.length=f),s}function o(t,e,r,n,i,o,a,s){for(var l=s||[],u=a[0],c=a[1],h=0,f=e;f<r;f+=n){var p=t[f]-u,d=t[f+1]-c;l[h++]=u+i*p,l[h++]=c+o*d;for(var g=f+2;g<f+n;++g)l[h++]=t[g]}return s&&l.length!=h&&(l.length=h),l}function a(t,e,r,n,i,o,a){for(var s=a||[],l=0,u=e;u<r;u+=n){s[l++]=t[u]+i,s[l++]=t[u+1]+o;for(var c=u+2;c<u+n;++c)s[l++]=t[c]}return a&&s.length!=l&&(s.length=l),s}r.d(e,"c",(function(){return n})),r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return o})),r.d(e,"d",(function(){return a}))},bf62:function(t,e,r){"use strict";e["a"]={ACTIVE:"active"}},c12a:function(t,e,r){"use strict";var n,i,o=r("4ea4"),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.MapTypeEnum=e.MapLayersEnum=void 0,o(r("a34a"))),s=o(r("970b")),l=o(r("5bc3")),u=o(r("5eee")),c=o(r("5c9f")),h=function(t,e,r,n){return new(r=r||Promise)((function(i,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))},f=(function(t){t[t.TMap=0]="TMap",t[t.GDMap=1]="GDMap",t[t.BINGMap=2]="BINGMap",t[t.BDMap=3]="BDMap",t[t.ARGMap=4]="ARGMap"}((e.MapTypeEnum=n)||(e.MapTypeEnum=n={})),function(t){t[t.VectorLayer=0]="VectorLayer",t[t.SatelliteLayer=1]="SatelliteLayer",t[t.LlendLayer=2]="LlendLayer"}((e.MapLayersEnum=i)||(e.MapLayersEnum=i={})),function(){function t(e){(0,s.default)(this,t),this.mapOptians=e,this._ele=null,this._map=null,this._layresMap=new Map,this._lastLayres=[],this._layeTypeLength=0,this._initMapLayers()}return(0,l.default)(t,[{key:"_initMapLayers",value:function(){this._layresMap.clear(),this._layresMap.set(n.TMap,c.default.TMapLayerArr),this._layresMap.set(n.GDMap,c.default.GMapLayerArr),this._layresMap.set(n.BINGMap,c.default.BingLayers),this._layresMap.set(n.BDMap,c.default.BDMapLayerArr)}},{key:"getMapTypeLength",get:function(){return this._layresMap.size}},{key:"getLayeTypeLength",get:function(){return this._layeTypeLength}},{key:"onLoad",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:2;return h(this,void 0,void 0,a.default.mark((function n(){var i=this;return a.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this._ele=t,n.next=3,new Promise((function(n,o){var a=i.getMapLayres(e,r),s=(i._lastLayres=a,new u.default(Object.assign({target:t},Object.assign(Object.assign({},i.mapOptians),{layers:a}))));(i._map=s)?n({map:s,layers:a}):o(null)}));case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),n,this)})))}},{key:"getMapLayres",value:function(t,e){return this._layresMap.has(t)?(t=this._layresMap.get(t),this._layeTypeLength=t.length,t[e]):[]}},{key:"selectLayers",value:function(t,e){return this.removeLayers(),this._layresMap.has(t)?(t=this.getMapLayres(t,e),this._lastLayres=t,this.setLayers(t),t):[]}},{key:"getLayers",get:function(){return this._lastLayres}},{key:"setLayers",value:function(t){var e=this;t.forEach((function(t){e.olMap.addLayer(t)}))}},{key:"removeLayers",value:function(){var t=this;this._lastLayres.forEach((function(e){t._map.removeLayer(e)}))}},{key:"olMap",get:function(){return this._map}},{key:"layresMap",get:function(){return this._layresMap}},{key:"ele",get:function(){return this._ele}}]),t}());e.default=f},c135:function(t,e){function r(t){if(Array.isArray(t))return t}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},c240:function(t,e){function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},c560:function(t,e,r){"use strict";r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return s})),r.d(e,"c",(function(){return l})),r.d(e,"d",(function(){return u})),r.d(e,"e",(function(){return c}));var n=r("0af5"),i=r("fd4d"),o=r("25f1");function a(t,e,r,o,a){var s=Object(n["extendFlatCoordinates"])(Object(n["createEmpty"])(),t,e,r,o);return!!Object(n["intersects"])(a,s)&&(!!Object(n["containsExtent"])(a,s)||(s[0]>=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||Object(i["a"])(t,e,r,o,(function(t,e){return Object(n["intersectsSegment"])(a,t,e)})))))}function s(t,e,r,n,i){for(var o=0,s=r.length;o<s;++o){if(a(t,e,r[o],n,i))return!0;e=r[o]}return!1}function l(t,e,r,n,i){return!!a(t,e,r,n,i)||(!!Object(o["b"])(t,e,r,n,i[0],i[1])||(!!Object(o["b"])(t,e,r,n,i[0],i[3])||(!!Object(o["b"])(t,e,r,n,i[2],i[1])||!!Object(o["b"])(t,e,r,n,i[2],i[3]))))}function u(t,e,r,n,i){if(!l(t,e,r[0],n,i))return!1;if(1===r.length)return!0;for(var s=1,u=r.length;s<u;++s)if(Object(o["a"])(t,r[s-1],r[s],n,i)&&!a(t,r[s-1],r[s],n,i))return!1;return!0}function c(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o){var s=r[o];if(u(t,e,s,n,i))return!0;e=s[s.length-1]}return!1}},c810:function(t,e,r){"use strict";r.r(e);var n=r("1af9"),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(t){function e(e){var r=e||{};return t.call(this,r)||this}return i(e,t),e}(n["a"]),a=o,s=r("39cf"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(e){return t.call(this,e)||this}return l(e,t),e.prototype.createRenderer=function(){return new s["a"](this)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(a);e["default"]=u},c8ba:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},c946:function(t,e,r){"use strict";var n=r("f78c"),i=r("e98d"),o=r("a896"),a=r("ddea"),s=r("9f5e"),l=r("0af5"),u=r("bef8"),c=r("9abc"),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(t){function e(e,r,n,i,a,s,l){var u=t.call(this)||this;return u.context_=e,u.pixelRatio_=r,u.extent_=n,u.transform_=i,u.viewRotation_=a,u.squaredTolerance_=s,u.userTransform_=l,u.contextFillState_=null,u.contextStrokeState_=null,u.contextTextState_=null,u.fillState_=null,u.strokeState_=null,u.image_=null,u.imageAnchorX_=0,u.imageAnchorY_=0,u.imageHeight_=0,u.imageOpacity_=0,u.imageOriginX_=0,u.imageOriginY_=0,u.imageRotateWithView_=!1,u.imageRotation_=0,u.imageScale_=[0,0],u.imageWidth_=0,u.text_="",u.textOffsetX_=0,u.textOffsetY_=0,u.textRotateWithView_=!1,u.textRotation_=0,u.textScale_=[0,0],u.textFillState_=null,u.textStrokeState_=null,u.textState_=null,u.pixelCoordinates_=[],u.tmpLocalTransform_=Object(o["c"])(),u}return h(e,t),e.prototype.drawImages_=function(t,e,r,n){if(this.image_){var i=Object(u["c"])(t,e,r,n,this.transform_,this.pixelCoordinates_),a=this.context_,s=this.tmpLocalTransform_,l=a.globalAlpha;1!=this.imageOpacity_&&(a.globalAlpha=l*this.imageOpacity_);var c=this.imageRotation_;this.imageRotateWithView_&&(c+=this.viewRotation_);for(var h=0,f=i.length;h<f;h+=2){var p=i[h]-this.imageAnchorX_,d=i[h+1]-this.imageAnchorY_;if(0!==c||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var g=p+this.imageAnchorX_,y=d+this.imageAnchorY_;Object(o["b"])(s,g,y,1,1,c,-g,-y),a.setTransform.apply(a,s),a.translate(g,y),a.scale(this.imageScale_[0],this.imageScale_[1]),a.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),a.setTransform(1,0,0,1,0,0)}else a.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,p,d,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(a.globalAlpha=l)}},e.prototype.drawText_=function(t,e,r,n){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var i=Object(u["c"])(t,e,r,n,this.transform_,this.pixelCoordinates_),a=this.context_,s=this.textRotation_;for(this.textRotateWithView_&&(s+=this.viewRotation_);e<r;e+=n){var l=i[e]+this.textOffsetX_,c=i[e+1]+this.textOffsetY_;if(0!==s||1!=this.textScale_[0]||1!=this.textScale_[1]){var h=Object(o["b"])(this.tmpLocalTransform_,l,c,1,1,s,-l,-c);a.setTransform.apply(a,h),a.translate(l,c),a.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&a.strokeText(this.text_,0,0),this.textFillState_&&a.fillText(this.text_,0,0),a.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&a.strokeText(this.text_,l,c),this.textFillState_&&a.fillText(this.text_,l,c)}}},e.prototype.moveToLineTo_=function(t,e,r,n,i){var o=this.context_,a=Object(u["c"])(t,e,r,n,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;i&&(s-=2);for(var l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return i&&o.closePath(),r},e.prototype.drawRings_=function(t,e,r,n){for(var i=0,o=r.length;i<o;++i)e=this.moveToLineTo_(t,e,r[i],n,!0);return e},e.prototype.drawCircle=function(t){if(Object(l["intersects"])(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=Object(c["c"])(t,this.transform_,this.pixelCoordinates_),r=e[2]-e[0],n=e[3]-e[1],i=Math.sqrt(r*r+n*n),o=this.context_;o.beginPath(),o.arc(e[0],e[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.setTransform=function(t){this.transform_=t},e.prototype.drawGeometry=function(t){var e=t.getType();switch(e){case"Point":this.drawPoint(t);break;case"LineString":this.drawLineString(t);break;case"Polygon":this.drawPolygon(t);break;case"MultiPoint":this.drawMultiPoint(t);break;case"MultiLineString":this.drawMultiLineString(t);break;case"MultiPolygon":this.drawMultiPolygon(t);break;case"GeometryCollection":this.drawGeometryCollection(t);break;case"Circle":this.drawCircle(t);break;default:}},e.prototype.drawFeature=function(t,e){var r=e.getGeometryFunction()(t);r&&Object(l["intersects"])(this.extent_,r.getExtent())&&(this.setStyle(e),this.drawGeometry(r))},e.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),r=0,n=e.length;r<n;++r)this.drawGeometry(e[r])},e.prototype.drawPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),r=t.getStride();this.image_&&this.drawImages_(e,0,e.length,r),""!==this.text_&&this.drawText_(e,0,e.length,r)},e.prototype.drawMultiPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),r=t.getStride();this.image_&&this.drawImages_(e,0,e.length,r),""!==this.text_&&this.drawText_(e,0,e.length,r)},e.prototype.drawLineString=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(l["intersects"])(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,r=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(r,0,r.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var n=t.getFlatMidpoint();this.drawText_(n,0,2,2)}}},e.prototype.drawMultiLineString=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getExtent();if(Object(l["intersects"])(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var r=this.context_,n=t.getFlatCoordinates(),i=0,o=t.getEnds(),a=t.getStride();r.beginPath();for(var s=0,u=o.length;s<u;++s)i=this.moveToLineTo_(n,i,o[s],a,!1);r.stroke()}if(""!==this.text_){var c=t.getFlatMidpoints();this.drawText_(c,0,c.length,2)}}},e.prototype.drawPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(l["intersects"])(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var r=t.getFlatInteriorPoint();this.drawText_(r,0,2,2)}}},e.prototype.drawMultiPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(l["intersects"])(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,r=t.getOrientedFlatCoordinates(),n=0,i=t.getEndss(),o=t.getStride();e.beginPath();for(var a=0,s=i.length;a<s;++a){var u=i[a];n=this.drawRings_(r,n,u,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var c=t.getFlatInteriorPoints();this.drawText_(c,0,c.length,2)}}},e.prototype.setContextFillState_=function(t){var e=this.context_,r=this.contextFillState_;r?r.fillStyle!=t.fillStyle&&(r.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},e.prototype.setContextStrokeState_=function(t){var e=this.context_,r=this.contextStrokeState_;r?(r.lineCap!=t.lineCap&&(r.lineCap=t.lineCap,e.lineCap=t.lineCap),e.setLineDash&&(Object(s["b"])(r.lineDash,t.lineDash)||e.setLineDash(r.lineDash=t.lineDash),r.lineDashOffset!=t.lineDashOffset&&(r.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset)),r.lineJoin!=t.lineJoin&&(r.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),r.lineWidth!=t.lineWidth&&(r.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),r.miterLimit!=t.miterLimit&&(r.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),r.strokeStyle!=t.strokeStyle&&(r.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},e.prototype.setContextTextState_=function(t){var e=this.context_,r=this.contextTextState_,n=t.textAlign?t.textAlign:a["l"];r?(r.font!=t.font&&(r.font=t.font,e.font=t.font),r.textAlign!=n&&(r.textAlign=n,e.textAlign=n),r.textBaseline!=t.textBaseline&&(r.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=n,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:n,textBaseline:t.textBaseline})},e.prototype.setFillStrokeStyle=function(t,e){var r=this;if(t){var n=t.getColor();this.fillState_={fillStyle:Object(i["a"])(n||a["b"])}}else this.fillState_=null;if(e){var o=e.getColor(),s=e.getLineCap(),l=e.getLineDash(),u=e.getLineDashOffset(),c=e.getLineJoin(),h=e.getWidth(),f=e.getMiterLimit(),p=l||a["e"];this.strokeState_={lineCap:void 0!==s?s:a["d"],lineDash:1===this.pixelRatio_?p:p.map((function(t){return t*r.pixelRatio_})),lineDashOffset:(u||a["f"])*this.pixelRatio_,lineJoin:void 0!==c?c:a["g"],lineWidth:(void 0!==h?h:a["h"])*this.pixelRatio_,miterLimit:void 0!==f?f:a["i"],strokeStyle:Object(i["a"])(o||a["k"])}}else this.strokeState_=null},e.prototype.setImageStyle=function(t){var e;if(t&&(e=t.getSize())){var r=t.getAnchor(),n=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=r[0]*this.pixelRatio_,this.imageAnchorY_=r[1]*this.pixelRatio_,this.imageHeight_=e[1]*this.pixelRatio_,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=n[0],this.imageOriginY_=n[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScaleArray(),this.imageWidth_=e[0]*this.pixelRatio_}else this.image_=null},e.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var r=e.getColor();this.textFillState_={fillStyle:Object(i["a"])(r||a["b"])}}else this.textFillState_=null;var n=t.getStroke();if(n){var o=n.getColor(),s=n.getLineCap(),l=n.getLineDash(),u=n.getLineDashOffset(),c=n.getLineJoin(),h=n.getWidth(),f=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==s?s:a["d"],lineDash:l||a["e"],lineDashOffset:u||a["f"],lineJoin:void 0!==c?c:a["g"],lineWidth:void 0!==h?h:a["h"],miterLimit:void 0!==f?f:a["i"],strokeStyle:Object(i["a"])(o||a["k"])}}else this.textStrokeState_=null;var p=t.getFont(),d=t.getOffsetX(),g=t.getOffsetY(),y=t.getRotateWithView(),v=t.getRotation(),m=t.getScaleArray(),_=t.getText(),b=t.getTextAlign(),x=t.getTextBaseline();this.textState_={font:void 0!==p?p:a["c"],textAlign:void 0!==b?b:a["l"],textBaseline:void 0!==x?x:a["m"]},this.text_=void 0!==_?Array.isArray(_)?_.reduce((function(t,e,r){return t+(r%2?" ":e)}),""):_:"",this.textOffsetX_=void 0!==d?this.pixelRatio_*d:0,this.textOffsetY_=void 0!==g?this.pixelRatio_*g:0,this.textRotateWithView_=void 0!==y&&y,this.textRotation_=void 0!==v?v:0,this.textScale_=[this.pixelRatio_*m[0],this.pixelRatio_*m[1]]}else this.text_=""},e}(n["a"]);e["a"]=f},ca42:function(t,e,r){"use strict";function n(t){return Math.pow(t,3)}function i(t){return 1-n(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"d",(function(){return a}))},cb76:function(t,e,r){"use strict";r.r(e);var n=r("4105"),i=r("57cb"),o=r("06f8"),a=r("ca42"),s=r("a568"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(e){var r=t.call(this,{stopDown:i["a"]})||this,n=e||{};r.kinetic_=n.kinetic,r.lastCentroid=null,r.lastPointersCount_,r.panning_=!1;var a=n.condition?n.condition:Object(o["a"])(o["i"],o["j"]);return r.condition_=n.onFocusOnly?Object(o["a"])(o["e"],a):a,r.noKinetic_=!1,r}return l(e,t),e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,r=Object(n["a"])(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(r[0],r[1]),this.lastCentroid){var i=[this.lastCentroid[0]-r[0],r[1]-this.lastCentroid[1]],o=t.map,a=o.getView();Object(s["i"])(i,a.getResolution()),Object(s["h"])(i,a.getRotation()),a.adjustCenterInternal(i)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=r,this.lastPointersCount_=e.length,t.originalEvent.preventDefault()},e.prototype.handleUpEvent=function(t){var e=t.map,r=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var n=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),o=r.getCenterInternal(),s=e.getPixelFromCoordinateInternal(o),l=e.getCoordinateFromPixelInternal([s[0]-n*Math.cos(i),s[1]-n*Math.sin(i)]);r.animateInternal({center:r.getConstrainedCenter(l),duration:500,easing:a["b"]})}return this.panning_&&(this.panning_=!1,r.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,r=e.getView();return this.lastCentroid=null,r.getAnimating()&&r.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(n["b"]);e["default"]=u},cd7e:function(t,e,r){"use strict";r.d(e,"c",(function(){return n})),r.d(e,"d",(function(){return i})),r.d(e,"e",(function(){return o})),r.d(e,"f",(function(){return a})),r.d(e,"b",(function(){return s})),r.d(e,"a",(function(){return l})),r.d(e,"g",(function(){return h}));var n="ol-hidden",i="ol-selectable",o="ol-unselectable",a="ol-unsupported",s="ol-control",l="ol-collapsed",u=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),c=["style","variant","weight","size","lineHeight","family"],h=function(t){var e=t.match(u);if(!e)return null;for(var r={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},n=0,i=c.length;n<i;++n){var o=e[n+1];void 0!==o&&(r[c[n]]=o)}return r.families=r.family.split(/,\s?/),r}},ce2c:function(t,e,r){"use strict";r.r(e);var n=r("35d8"),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(t){function e(e){var r=e||{};return t.call(this,{points:1/0,fill:r.fill,radius:r.radius,stroke:r.stroke,scale:void 0!==r.scale?r.scale:1,rotation:void 0!==r.rotation?r.rotation:0,rotateWithView:void 0!==r.rotateWithView&&r.rotateWithView,displacement:void 0!==r.displacement?r.displacement:[0,0],declutterMode:r.declutterMode})||this}return i(e,t),e.prototype.clone=function(){var t=this.getScale(),r=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return r.setOpacity(this.getOpacity()),r},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(n["a"]);e["default"]=o},cef7:function(t,e,r){"use strict";r.d(e,"b",(function(){return i}));var n=function(){function t(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}return t.prototype.preventDefault=function(){this.defaultPrevented=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}();function i(t){t.stopPropagation()}e["a"]=n},d079:function(t,e,r){"use strict";e["a"]={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},d0fc:function(t,e,r){"use strict";r.d(e,"a",(function(){return g}));var n=r("cef7"),i=r("ff80"),o=r("8d87"),a=r("acc1"),s=r("1300"),l=r("92fa"),u=r("256f"),c=r("2c30"),h=r("089b"),f=r("345d"),p=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),d=function(t){function e(e){var r=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX,interpolate:e.interpolate})||this;r.on,r.once,r.un,r.opaque_=void 0!==e.opaque&&e.opaque,r.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,r.tileGrid=void 0!==e.tileGrid?e.tileGrid:null;var n=[256,256];return r.tileGrid&&Object(f["d"])(r.tileGrid.getTileSize(r.tileGrid.getMinZoom()),n),r.tileCache=new o["a"](e.cacheSize||0),r.tmpSize=[0,0],r.key_=e.key||"",r.tileOptions={transition:e.transition,interpolate:e.interpolate},r.zDirection=e.zDirection?e.zDirection:0,r}return p(e,t),e.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},e.prototype.expireCache=function(t,e){var r=this.getTileCacheForProjection(t);r&&r.expireCache(e)},e.prototype.forEachLoadedTile=function(t,e,r,n){var i=this.getTileCacheForProjection(t);if(!i)return!1;for(var o,s,l,u=!0,h=r.minX;h<=r.maxX;++h)for(var f=r.minY;f<=r.maxY;++f)s=Object(c["e"])(e,h,f),l=!1,i.containsKey(s)&&(o=i.get(s),l=o.getState()===a["a"].LOADED,l&&(l=!1!==n(o))),l||(u=!1);return u},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?this.tileGrid.getResolutions():null},e.prototype.getTile=function(t,e,r,n,i){return Object(s["b"])()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:Object(h["c"])(t)},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();return Object(l["a"])(null===e||Object(u["equivalent"])(e,t),68),this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,r){var n=this.getTileGridForProjection(r),i=this.getTilePixelRatio(e),o=Object(f["d"])(n.getTileSize(t),this.tmpSize);return 1==i?o:Object(f["c"])(o,i,this.tmpSize)},e.prototype.getTileCoordForTileUrlFunction=function(t,e){var r=void 0!==e?e:this.getProjection(),n=this.getTileGridForProjection(r);return this.getWrapX()&&r.isGlobal()&&(t=Object(h["d"])(n,t,r)),Object(c["g"])(t,n)?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 r=this.getTileCacheForProjection(e);t>r.highWaterMark&&(r.highWaterMark=t)},e.prototype.useTile=function(t,e,r,n){},e}(i["a"]),g=function(t){function e(e,r){var n=t.call(this,e)||this;return n.tile=r,n}return p(e,t),e}(n["a"]);e["b"]=d},d30b:function(t,e,r){"use strict";r.r(e),r.d(e,"earthRadius",(function(){return n})),r.d(e,"factors",(function(){return i})),r.d(e,"unitsFactors",(function(){return o})),r.d(e,"areaFactors",(function(){return a})),r.d(e,"feature",(function(){return s})),r.d(e,"geometry",(function(){return l})),r.d(e,"point",(function(){return u})),r.d(e,"points",(function(){return c})),r.d(e,"polygon",(function(){return h})),r.d(e,"polygons",(function(){return f})),r.d(e,"lineString",(function(){return p})),r.d(e,"lineStrings",(function(){return d})),r.d(e,"featureCollection",(function(){return g})),r.d(e,"multiLineString",(function(){return y})),r.d(e,"multiPoint",(function(){return v})),r.d(e,"multiPolygon",(function(){return m})),r.d(e,"geometryCollection",(function(){return _})),r.d(e,"round",(function(){return b})),r.d(e,"radiansToLength",(function(){return x})),r.d(e,"lengthToRadians",(function(){return w})),r.d(e,"lengthToDegrees",(function(){return O})),r.d(e,"bearingToAzimuth",(function(){return E})),r.d(e,"radiansToDegrees",(function(){return S})),r.d(e,"degreesToRadians",(function(){return T})),r.d(e,"convertLength",(function(){return C})),r.d(e,"convertArea",(function(){return P})),r.d(e,"isNumber",(function(){return j})),r.d(e,"isObject",(function(){return R})),r.d(e,"validateBBox",(function(){return M})),r.d(e,"validateId",(function(){return A}));var n=6371008.8,i={centimeters:100*n,centimetres:100*n,degrees:n/111325,feet:3.28084*n,inches:39.37*n,kilometers:n/1e3,kilometres:n/1e3,meters:n,metres:n,miles:n/1609.344,millimeters:1e3*n,millimetres:1e3*n,nauticalmiles:n/1852,radians:1,yards:1.0936*n},o={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/n,yards:1.0936133},a={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function s(t,e,r){void 0===r&&(r={});var n={type:"Feature"};return(0===r.id||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function l(t,e,r){switch(void 0===r&&(r={}),t){case"Point":return u(e).geometry;case"LineString":return p(e).geometry;case"Polygon":return h(e).geometry;case"MultiPoint":return v(e).geometry;case"MultiLineString":return y(e).geometry;case"MultiPolygon":return m(e).geometry;default:throw new Error(t+" is invalid")}}function u(t,e,r){if(void 0===r&&(r={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!j(t[0])||!j(t[1]))throw new Error("coordinates must contain numbers");var n={type:"Point",coordinates:t};return s(n,e,r)}function c(t,e,r){return void 0===r&&(r={}),g(t.map((function(t){return u(t,e)})),r)}function h(t,e,r){void 0===r&&(r={});for(var n=0,i=t;n<i.length;n++){var o=i[n];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<o[o.length-1].length;a++)if(o[o.length-1][a]!==o[0][a])throw new Error("First and last Position are not equivalent.")}var l={type:"Polygon",coordinates:t};return s(l,e,r)}function f(t,e,r){return void 0===r&&(r={}),g(t.map((function(t){return h(t,e)})),r)}function p(t,e,r){if(void 0===r&&(r={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");var n={type:"LineString",coordinates:t};return s(n,e,r)}function d(t,e,r){return void 0===r&&(r={}),g(t.map((function(t){return p(t,e)})),r)}function g(t,e){void 0===e&&(e={});var r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}function y(t,e,r){void 0===r&&(r={});var n={type:"MultiLineString",coordinates:t};return s(n,e,r)}function v(t,e,r){void 0===r&&(r={});var n={type:"MultiPoint",coordinates:t};return s(n,e,r)}function m(t,e,r){void 0===r&&(r={});var n={type:"MultiPolygon",coordinates:t};return s(n,e,r)}function _(t,e,r){void 0===r&&(r={});var n={type:"GeometryCollection",geometries:t};return s(n,e,r)}function b(t,e){if(void 0===e&&(e=0),e&&!(e>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,e||0);return Math.round(t*r)/r}function x(t,e){void 0===e&&(e="kilometers");var r=i[e];if(!r)throw new Error(e+" units is invalid");return t*r}function w(t,e){void 0===e&&(e="kilometers");var r=i[e];if(!r)throw new Error(e+" units is invalid");return t/r}function O(t,e){return S(w(t,e))}function E(t){var e=t%360;return e<0&&(e+=360),e}function S(t){var e=t%(2*Math.PI);return 180*e/Math.PI}function T(t){var e=t%360;return e*Math.PI/180}function C(t,e,r){if(void 0===e&&(e="kilometers"),void 0===r&&(r="kilometers"),!(t>=0))throw new Error("length must be a positive number");return x(w(t,e),r)}function P(t,e,r){if(void 0===e&&(e="meters"),void 0===r&&(r="kilometers"),!(t>=0))throw new Error("area must be a positive number");var n=a[e];if(!n)throw new Error("invalid original units");var i=a[r];if(!i)throw new Error("invalid final units");return t/n*i}function j(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function R(t){return!!t&&t.constructor===Object}function M(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!j(t))throw new Error("bbox must only contain numbers")}))}function A(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}},da2f:function(t,e,r){"use strict";var n=r("dbba"),i=r("137e"),o=r("e8b8"),a=r("496f"),s=r("399c"),l=r("a896"),u=r("0af5"),c=r("0999"),h=r("30d1"),f=r("9f5e"),p=r("256f"),d=r("1300"),g=r("a568"),y=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),v=function(t){function e(e){var r=t.call(this,e)||this;return r.boundHandleStyleImageChange_=r.handleStyleImageChange_.bind(r),r.animatingOrInteracting_,r.hitDetectionImageData_=null,r.renderedFeatures_=null,r.renderedRevision_=-1,r.renderedResolution_=NaN,r.renderedExtent_=Object(u["createEmpty"])(),r.wrappedRenderedExtent_=Object(u["createEmpty"])(),r.renderedRotation_,r.renderedCenter_=null,r.renderedProjection_=null,r.renderedRenderOrder_=null,r.replayGroup_=null,r.replayGroupChanged=!0,r.declutterExecutorGroup=null,r.clipping=!0,r.compositionContext_=null,r.opacity_=1,r}return y(e,t),e.prototype.renderWorlds=function(t,e,r){var n=e.extent,i=e.viewState,o=i.center,s=i.resolution,l=i.projection,c=i.rotation,h=l.getExtent(),f=this.getLayer().getSource(),p=e.pixelRatio,d=e.viewHints,g=!(d[a["a"].ANIMATING]||d[a["a"].INTERACTING]),y=this.compositionContext_,v=Math.round(e.size[0]*p),m=Math.round(e.size[1]*p),_=f.getWrapX()&&l.canWrapX(),b=_?Object(u["getWidth"])(h):null,x=_?Math.ceil((n[2]-h[2])/b)+1:1,w=_?Math.floor((n[0]-h[0])/b):0;do{var O=this.getRenderTransform(o,s,c,p,v,m,w*b);t.execute(y,1,O,c,g,void 0,r)}while(++w<x)},e.prototype.setupCompositionContext_=function(){if(1!==this.opacity_){var t=Object(c["a"])(this.context.canvas.width,this.context.canvas.height,i["a"]);this.compositionContext_=t}else this.compositionContext_=this.context},e.prototype.releaseCompositionContext_=function(){if(1!==this.opacity_){var t=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=t,Object(c["d"])(this.compositionContext_),i["a"].push(this.compositionContext_.canvas),this.compositionContext_=null}},e.prototype.renderDeclutter=function(t){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree),this.releaseCompositionContext_())},e.prototype.renderFrame=function(t,e){var r=t.pixelRatio,n=t.layerStatesArray[t.layerIndex];Object(l["e"])(this.pixelTransform,1/r,1/r),Object(l["d"])(this.inversePixelTransform,this.pixelTransform);var i=Object(l["k"])(this.pixelTransform);this.useContainer(e,i,this.getBackground(t));var o=this.context,a=o.canvas,s=this.replayGroup_,c=this.declutterExecutorGroup;if((!s||s.isEmpty())&&(!c||c.isEmpty()))return null;var h=Math.round(t.size[0]*r),f=Math.round(t.size[1]*r);a.width!=h||a.height!=f?(a.width=h,a.height=f,a.style.transform!==i&&(a.style.transform=i)):this.containerReused||o.clearRect(0,0,h,f),this.preRender(o,t);var d=t.viewState,g=d.projection;this.opacity_=n.opacity,this.setupCompositionContext_();var y=!1,v=!0;if(n.extent&&this.clipping){var m=Object(p["fromUserExtent"])(n.extent,g);v=Object(u["intersects"])(m,t.extent),y=v&&!Object(u["containsExtent"])(m,t.extent),y&&this.clipUnrotated(this.compositionContext_,t,m)}return v&&this.renderWorlds(s,t),y&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(o,t),this.renderedRotation_!==d.rotation&&(this.renderedRotation_=d.rotation,this.hitDetectionImageData_=null),this.container},e.prototype.getFeatures=function(t){return new Promise(function(e){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var r=[this.context.canvas.width,this.context.canvas.height];Object(l["a"])(this.pixelTransform,r);var n=this.renderedCenter_,i=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,c=this.wrappedRenderedExtent_,h=this.getLayer(),f=[],p=r[0]*s["a"],d=r[1]*s["a"];f.push(this.getRenderTransform(n,i,o,s["a"],p,d,0).slice());var g=h.getSource(),y=a.getExtent();if(g.getWrapX()&&a.canWrapX()&&!Object(u["containsExtent"])(y,c)){var v=c[0],m=Object(u["getWidth"])(y),_=0,b=void 0;while(v<y[0])--_,b=m*_,f.push(this.getRenderTransform(n,i,o,s["a"],p,d,b).slice()),v+=m;_=0,v=c[2];while(v>y[2])++_,b=m*_,f.push(this.getRenderTransform(n,i,o,s["a"],p,d,b).slice()),v-=m}this.hitDetectionImageData_=Object(s["b"])(r,f,this.renderedFeatures_,h.getStyleFunction(),c,i,o)}e(Object(s["c"])(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){var o=this;if(this.replayGroup_){var a,s=e.viewState.resolution,l=e.viewState.rotation,u=this.getLayer(),c={},h=function(t,e,r){var o=Object(d["c"])(t),a=c[o];if(a){if(!0!==a&&r<a.distanceSq){if(0===r)return c[o]=!0,i.splice(i.lastIndexOf(a),1),n(t,u,e);a.geometry=e,a.distanceSq=r}}else{if(0===r)return c[o]=!0,n(t,u,e);i.push(c[o]={feature:t,layer:u,geometry:e,distanceSq:r,callback:n})}},f=[this.replayGroup_];return this.declutterExecutorGroup&&f.push(this.declutterExecutorGroup),f.some((function(n){return a=n.forEachFeatureAtCoordinate(t,s,l,r,h,n===o.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map((function(t){return t.value})):null)})),a}},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t){var e=this.getLayer(),r=e.getSource();if(!r)return!1;var i=t.viewHints[a["a"].ANIMATING],s=t.viewHints[a["a"].INTERACTING],l=e.getUpdateWhileAnimating(),c=e.getUpdateWhileInteracting();if(this.ready&&!l&&i||!c&&s)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var d=t.extent,y=t.viewState,v=y.projection,m=y.resolution,_=t.pixelRatio,b=e.getRevision(),x=e.getRenderBuffer(),w=e.getRenderOrder();void 0===w&&(w=h["a"]);var O=y.center.slice(),E=Object(u["buffer"])(d,x*m),S=E.slice(),T=[E.slice()],C=v.getExtent();if(r.getWrapX()&&v.canWrapX()&&!Object(u["containsExtent"])(C,t.extent)){var P=Object(u["getWidth"])(C),j=Math.max(Object(u["getWidth"])(E)/2,P);E[0]=C[0]-j,E[2]=C[2]+j,Object(g["l"])(O,v);var R=Object(u["wrapX"])(T[0],v);R[0]<C[0]&&R[2]<C[2]?T.push([R[0]+P,R[1],R[2]+P,R[3]]):R[0]>C[0]&&R[2]>C[2]&&T.push([R[0]-P,R[1],R[2]-P,R[3]])}if(this.ready&&this.renderedResolution_==m&&this.renderedRevision_==b&&this.renderedRenderOrder_==w&&Object(u["containsExtent"])(this.wrappedRenderedExtent_,E))return Object(f["b"])(this.renderedExtent_,S)||(this.hitDetectionImageData_=null,this.renderedExtent_=S),this.renderedCenter_=O,this.replayGroupChanged=!1,!0;this.replayGroup_=null;var M,A=new n["a"](Object(h["c"])(m,_),E,m,_);this.getLayer().getDeclutter()&&(M=new n["a"](Object(h["c"])(m,_),E,m,_));var L,I=Object(p["getUserProjection"])();if(I){for(var F=0,k=T.length;F<k;++F){var D=T[F],G=Object(p["toUserExtent"])(D,v);r.loadFeatures(G,Object(p["toUserResolution"])(m,v),I)}L=Object(p["getTransformFromProjections"])(I,v)}else for(F=0,k=T.length;F<k;++F)r.loadFeatures(T[F],m,v);var N=Object(h["b"])(m,_),z=!0,U=function(t){var r,n=t.getStyleFunction()||e.getStyleFunction();if(n&&(r=n(t,m)),r){var i=this.renderFeature(t,N,r,A,L,M);z=z&&!i}}.bind(this),B=Object(p["toUserExtent"])(E,v),V=r.getFeaturesInExtent(B);w&&V.sort(w);for(F=0,k=V.length;F<k;++F)U(V[F]);this.renderedFeatures_=V,this.ready=z;var X=A.finish(),W=new o["a"](E,m,_,r.getOverlaps(),X,e.getRenderBuffer());return M&&(this.declutterExecutorGroup=new o["a"](E,m,_,r.getOverlaps(),M.finish(),e.getRenderBuffer())),this.renderedResolution_=m,this.renderedRevision_=b,this.renderedRenderOrder_=w,this.renderedExtent_=S,this.wrappedRenderedExtent_=E,this.renderedCenter_=O,this.renderedProjection_=v,this.replayGroup_=W,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,e,r,n,i,o){if(!r)return!1;var a=!1;if(Array.isArray(r))for(var s=0,l=r.length;s<l;++s)a=Object(h["d"])(n,t,r[s],e,this.boundHandleStyleImageChange_,i,o)||a;else a=Object(h["d"])(n,t,r,e,this.boundHandleStyleImageChange_,i,o);return a},e}(i["b"]);e["a"]=v},da5c:function(t,e,r){"use strict";var n=function(){function t(){this.disposed=!1}return t.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){},t}();e["a"]=n},dbba:function(t,e,r){"use strict";var n=r("dd32"),i=r("6573"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e,r,n,i){var o=t.call(this,e,r,n,i)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterMode_=void 0,o.declutterImageWithText_=void 0,o}return o(e,t),e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var r=t.getFlatCoordinates(),n=t.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(r,n);this.instructions.push([i["c"].DRAW_IMAGE,o,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([i["c"].DRAW_IMAGE,o,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var r=t.getFlatCoordinates(),n=t.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(r,n);this.instructions.push([i["c"].DRAW_IMAGE,o,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([i["c"].DRAW_IMAGE,o,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,e){var r=t.getAnchor(),n=t.getSize(),i=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=r[0],this.anchorY_=r[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=n[1],this.opacity_=t.getOpacity(),this.originX_=i[0],this.originY_=i[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=n[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e},e}(n["a"]),s=a,l=r("ddea"),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(t){function e(e,r,n,i){return t.call(this,e,r,n,i)||this}return u(e,t),e.prototype.drawFlatCoordinates_=function(t,e,r,n){var o=this.coordinates.length,a=this.appendFlatLineCoordinates(t,e,r,n,!1,!1),s=[i["c"].MOVE_TO_LINE_TO,o,a];return this.instructions.push(s),this.hitDetectionInstructions.push(s),r},e.prototype.drawLineString=function(t,e){var r=this.state,n=r.strokeStyle,o=r.lineWidth;if(void 0!==n&&void 0!==o){this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([i["c"].SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,l["e"],l["f"]],i["a"]);var a=t.getFlatCoordinates(),s=t.getStride();this.drawFlatCoordinates_(a,0,a.length,s),this.hitDetectionInstructions.push(i["e"]),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var r=this.state,n=r.strokeStyle,o=r.lineWidth;if(void 0!==n&&void 0!==o){this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([i["c"].SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset],i["a"]);for(var a=t.getEnds(),s=t.getFlatCoordinates(),l=t.getStride(),u=0,c=0,h=a.length;c<h;++c)u=this.drawFlatCoordinates_(s,u,a[c],l);this.hitDetectionInstructions.push(i["e"]),this.endGeometry(e)}},e.prototype.finish=function(){var e=this.state;return void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(i["e"]),this.reverseHitDetectionInstructions(),this.state=null,t.prototype.finish.call(this)},e.prototype.applyStroke=function(e){void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(i["e"]),e.lastStroke=this.coordinates.length),e.lastStroke=0,t.prototype.applyStroke.call(this,e),this.instructions.push(i["a"])},e}(n["a"]),h=c,f=r("1c48"),p=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),d=function(t){function e(e,r,n,i){return t.call(this,e,r,n,i)||this}return p(e,t),e.prototype.drawFlatCoordinatess_=function(t,e,r,n){var o=this.state,a=void 0!==o.fillStyle,s=void 0!==o.strokeStyle,l=r.length;this.instructions.push(i["a"]),this.hitDetectionInstructions.push(i["a"]);for(var u=0;u<l;++u){var c=r[u],h=this.coordinates.length,f=this.appendFlatLineCoordinates(t,e,c,n,!0,!s),p=[i["c"].MOVE_TO_LINE_TO,h,f];this.instructions.push(p),this.hitDetectionInstructions.push(p),s&&(this.instructions.push(i["b"]),this.hitDetectionInstructions.push(i["b"])),e=c}return a&&(this.instructions.push(i["d"]),this.hitDetectionInstructions.push(i["d"])),s&&(this.instructions.push(i["e"]),this.hitDetectionInstructions.push(i["e"])),e},e.prototype.drawCircle=function(t,e){var r=this.state,n=r.fillStyle,o=r.strokeStyle;if(void 0!==n||void 0!==o){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([i["c"].SET_FILL_STYLE,l["b"]]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([i["c"].SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);var a=t.getFlatCoordinates(),s=t.getStride(),u=this.coordinates.length;this.appendFlatLineCoordinates(a,0,a.length,s,!1,!1);var c=[i["c"].CIRCLE,u];this.instructions.push(i["a"],c),this.hitDetectionInstructions.push(i["a"],c),void 0!==r.fillStyle&&(this.instructions.push(i["d"]),this.hitDetectionInstructions.push(i["d"])),void 0!==r.strokeStyle&&(this.instructions.push(i["e"]),this.hitDetectionInstructions.push(i["e"])),this.endGeometry(e)}},e.prototype.drawPolygon=function(t,e){var r=this.state,n=r.fillStyle,o=r.strokeStyle;if(void 0!==n||void 0!==o){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([i["c"].SET_FILL_STYLE,l["b"]]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([i["c"].SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);var a=t.getEnds(),s=t.getOrientedFlatCoordinates(),u=t.getStride();this.drawFlatCoordinatess_(s,0,a,u),this.endGeometry(e)}},e.prototype.drawMultiPolygon=function(t,e){var r=this.state,n=r.fillStyle,o=r.strokeStyle;if(void 0!==n||void 0!==o){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([i["c"].SET_FILL_STYLE,l["b"]]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([i["c"].SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);for(var a=t.getEndss(),s=t.getOrientedFlatCoordinates(),u=t.getStride(),c=0,h=0,f=a.length;h<f;++h)c=this.drawFlatCoordinatess_(s,c,a[h],u);this.endGeometry(e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var e=this.tolerance;if(0!==e)for(var r=this.coordinates,n=0,i=r.length;n<i;++n)r[n]=Object(f["e"])(r[n],e);return t.prototype.finish.call(this)},e.prototype.setFillStrokeStyles_=function(){var t=this.state,e=t.fillStyle;void 0!==e&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)},e}(n["a"]),g=d,y=r("0e69"),v={Circle:g,Default:n["a"],Image:s,LineString:h,Polygon:g,Text:y["b"]},m=function(){function t(t,e,r,n){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=n,this.resolution_=r,this.buildersByZIndex_={}}return t.prototype.finish=function(){var t={};for(var e in this.buildersByZIndex_){t[e]=t[e]||{};var r=this.buildersByZIndex_[e];for(var n in r){var i=r[n].finish();t[e][n]=i}}return t},t.prototype.getBuilder=function(t,e){var r=void 0!==t?t.toString():"0",n=this.buildersByZIndex_[r];void 0===n&&(n={},this.buildersByZIndex_[r]=n);var i=n[e];if(void 0===i){var o=v[e];i=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[e]=i}return i},t}();e["a"]=m},dc07:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=function(){function t(t,e,r,n){this.minX=t,this.maxX=e,this.minY=r,this.maxY=n}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 i(t,e,r,i,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=r,o.maxY=i,o):new n(t,e,r,i)}e["b"]=n},dd32:function(t,e,r){"use strict";var n=r("6573"),i=r("045d"),o=r("f78c"),a=r("e98d"),s=r("0af5"),l=r("ddea"),u=r("9f5e"),c=r("bb6c"),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(t){function e(e,r,n,i){var o=t.call(this)||this;return o.tolerance=e,o.maxExtent=r,o.pixelRatio=i,o.maxLineWidth=0,o.resolution=n,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return h(e,t),e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))},e.prototype.appendFlatPointCoordinates=function(t,e){for(var r=this.getBufferedMaxExtent(),n=this.tmpCoordinate_,i=this.coordinates,o=i.length,a=0,l=t.length;a<l;a+=e)n[0]=t[a],n[1]=t[a+1],Object(s["containsCoordinate"])(r,n)&&(i[o++]=n[0],i[o++]=n[1]);return o},e.prototype.appendFlatLineCoordinates=function(t,e,r,n,o,a){var l=this.coordinates,u=l.length,c=this.getBufferedMaxExtent();a&&(e+=n);var h,f,p,d=t[e],g=t[e+1],y=this.tmpCoordinate_,v=!0;for(h=e+n;h<r;h+=n)y[0]=t[h],y[1]=t[h+1],p=Object(s["coordinateRelationship"])(c,y),p!==f?(v&&(l[u++]=d,l[u++]=g,v=!1),l[u++]=y[0],l[u++]=y[1]):p===i["a"].INTERSECTING?(l[u++]=y[0],l[u++]=y[1],v=!1):v=!0,d=y[0],g=y[1],f=p;return(o&&v||h===e+n)&&(l[u++]=d,l[u++]=g),u},e.prototype.drawCustomCoordinates_=function(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o){var s=r[o],l=this.appendFlatLineCoordinates(t,e,s,n,!1,!1);i.push(l),e=s}return e},e.prototype.drawCustom=function(t,e,r,i){this.beginGeometry(t,e);var o,a,s,l,u,h=t.getType(),f=t.getStride(),p=this.coordinates.length;switch(h){case"MultiPolygon":o=t.getOrientedFlatCoordinates(),l=[];var d=t.getEndss();u=0;for(var g=0,y=d.length;g<y;++g){var v=[];u=this.drawCustomCoordinates_(o,u,d[g],f,v),l.push(v)}this.instructions.push([n["c"].CUSTOM,p,l,t,r,c["c"]]),this.hitDetectionInstructions.push([n["c"].CUSTOM,p,l,t,i||r,c["c"]]);break;case"Polygon":case"MultiLineString":s=[],o="Polygon"==h?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),u=this.drawCustomCoordinates_(o,0,t.getEnds(),f,s),this.instructions.push([n["c"].CUSTOM,p,s,t,r,c["b"]]),this.hitDetectionInstructions.push([n["c"].CUSTOM,p,s,t,i||r,c["b"]]);break;case"LineString":case"Circle":o=t.getFlatCoordinates(),a=this.appendFlatLineCoordinates(o,0,o.length,f,!1,!1),this.instructions.push([n["c"].CUSTOM,p,a,t,r,c["a"]]),this.hitDetectionInstructions.push([n["c"].CUSTOM,p,a,t,i||r,c["a"]]);break;case"MultiPoint":o=t.getFlatCoordinates(),a=this.appendFlatPointCoordinates(o,f),a>p&&(this.instructions.push([n["c"].CUSTOM,p,a,t,r,c["a"]]),this.hitDetectionInstructions.push([n["c"].CUSTOM,p,a,t,i||r,c["a"]]));break;case"Point":o=t.getFlatCoordinates(),this.coordinates.push(o[0],o[1]),a=this.coordinates.length,this.instructions.push([n["c"].CUSTOM,p,a,t,r]),this.hitDetectionInstructions.push([n["c"].CUSTOM,p,a,t,i||r]);break;default:}this.endGeometry(e)},e.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[n["c"].BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[n["c"].BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var r,i,o=e.length,a=-1;for(t=0;t<o;++t)r=e[t],i=r[0],i==n["c"].END_GEOMETRY?a=t:i==n["c"].BEGIN_GEOMETRY&&(r[2]=t,Object(u["j"])(this.hitDetectionInstructions,a,t),a=-1)},e.prototype.setFillStrokeStyle=function(t,e){var r=this.state;if(t){var n=t.getColor();r.fillStyle=Object(a["a"])(n||l["b"])}else r.fillStyle=void 0;if(e){var i=e.getColor();r.strokeStyle=Object(a["a"])(i||l["k"]);var o=e.getLineCap();r.lineCap=void 0!==o?o:l["d"];var s=e.getLineDash();r.lineDash=s?s.slice():l["e"];var u=e.getLineDashOffset();r.lineDashOffset=u||l["f"];var c=e.getLineJoin();r.lineJoin=void 0!==c?c:l["g"];var h=e.getWidth();r.lineWidth=void 0!==h?h:l["h"];var f=e.getMiterLimit();r.miterLimit=void 0!==f?f:l["i"],r.lineWidth>this.maxLineWidth&&(this.maxLineWidth=r.lineWidth,this.bufferedMaxExtent_=null)}else r.strokeStyle=void 0,r.lineCap=void 0,r.lineDash=null,r.lineDashOffset=void 0,r.lineJoin=void 0,r.lineWidth=void 0,r.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,r=[n["c"].SET_FILL_STYLE,e];return"string"!==typeof e&&r.push(!0),r},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[n["c"].SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e){var r=t.fillStyle;"string"===typeof r&&t.currentFillStyle==r||(void 0!==r&&this.instructions.push(e.call(this,t)),t.currentFillStyle=r)},e.prototype.updateStrokeStyle=function(t,e){var r=t.strokeStyle,n=t.lineCap,i=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=r||t.currentLineCap!=n||i!=t.currentLineDash&&!Object(u["b"])(t.currentLineDash,i)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=s||t.currentMiterLimit!=l)&&(void 0!==r&&e.call(this,t),t.currentStrokeStyle=r,t.currentLineCap=n,t.currentLineDash=i,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=s,t.currentMiterLimit=l)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[n["c"].END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(s["clone"])(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Object(s["buffer"])(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(o["a"]);e["a"]=f},ddea:function(t,e,r){"use strict";r.d(e,"c",(function(){return u})),r.d(e,"b",(function(){return c})),r.d(e,"d",(function(){return h})),r.d(e,"e",(function(){return f})),r.d(e,"f",(function(){return p})),r.d(e,"g",(function(){return d})),r.d(e,"i",(function(){return g})),r.d(e,"k",(function(){return y})),r.d(e,"l",(function(){return v})),r.d(e,"m",(function(){return m})),r.d(e,"j",(function(){return _})),r.d(e,"h",(function(){return b})),r.d(e,"a",(function(){return x})),r.d(e,"q",(function(){return T})),r.d(e,"p",(function(){return R})),r.d(e,"o",(function(){return M})),r.d(e,"n",(function(){return A}));var n=r("e269"),i=r("0ec0"),o=r("617d"),a=r("38f3"),s=r("0999"),l=r("cd7e"),u="10px sans-serif",c="#000",h="round",f=[],p=0,d="round",g=10,y="#000",v="center",m="middle",_=[0,0,0,0],b=1,x=new n["a"],w=new i["a"];w.setSize=function(){console.warn("labelCache is deprecated.")};var O,E=null,S={},T=function(){var t,e,r=100,n="32px ",i=["monospace","serif"],o=i.length,s="wmytzilWMYTZIL@#/&?$%10";function u(t,r,a){for(var l=!0,u=0;u<o;++u){var c=i[u];if(e=j(t+" "+r+" "+n+c,s),a!=c){var h=j(t+" "+r+" "+n+a+","+c,s);l=l&&h!=e}}return!!l}function c(){for(var e=!0,n=x.getKeys(),i=0,o=n.length;i<o;++i){var s=n[i];x.get(s)<r&&(u.apply(this,s.split("\n"))?(Object(a["b"])(S),E=null,O=void 0,x.set(s,r)):(x.set(s,x.get(s)+1,!0),e=!1))}e&&(clearInterval(t),t=void 0)}return function(e){var n=Object(l["g"])(e);if(n)for(var i=n.families,o=0,a=i.length;o<a;++o){var s=i[o],h=n.style+"\n"+n.weight+"\n"+s;void 0===x.get(h)&&(x.set(h,r,!0),u(n.style,n.weight,s)||(x.set(h,0,!0),void 0===t&&(t=setInterval(c,32))))}}}(),C=function(){var t;return function(e){var r=S[e];if(void 0==r){if(o["h"]){var n=Object(l["g"])(e),i=P(e,"Žg"),a=isNaN(Number(n.lineHeight))?1.2:Number(n.lineHeight);r=a*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else t||(t=document.createElement("div"),t.innerHTML="M",t.style.minHeight="0",t.style.maxHeight="none",t.style.height="auto",t.style.padding="0",t.style.border="none",t.style.position="absolute",t.style.display="block",t.style.left="-99999px"),t.style.font=e,document.body.appendChild(t),r=t.offsetHeight,document.body.removeChild(t);S[e]=r}return r}}();function P(t,e){return E||(E=Object(s["a"])(1,1)),t!=O&&(E.font=t,O=E.font),E.measureText(e)}function j(t,e){return P(t,e).width}function R(t,e,r){if(e in r)return r[e];var n=e.split("\n").reduce((function(e,r){return Math.max(e,j(t,r))}),0);return r[e]=n,n}function M(t,e){for(var r=[],n=[],i=[],o=0,a=0,s=0,l=0,u=0,c=e.length;u<=c;u+=2){var h=e[u];if("\n"!==h&&u!==c){var f=e[u+1]||t.font,p=j(f,h);r.push(p),a+=p;var d=C(f);n.push(d),l=Math.max(l,d)}else o=Math.max(o,a),i.push(a),a=0,s+=l}return{width:o,height:s,widths:r,heights:n,lineWidths:i}}function A(t,e,r,n,i,o,a,s,l,u,c){t.save(),1!==r&&(t.globalAlpha*=r),e&&t.setTransform.apply(t,e),n.contextInstructions?(t.translate(l,u),t.scale(c[0],c[1]),L(n,t)):c[0]<0||c[1]<0?(t.translate(l,u),t.scale(c[0],c[1]),t.drawImage(n,i,o,a,s,0,0,a,s)):t.drawImage(n,i,o,a,s,l,u,a*c[0],s*c[1]),t.restore()}function L(t,e){for(var r=t.contextInstructions,n=0,i=r.length;n<i;n+=2)Array.isArray(r[n+1])?e[r[n]].apply(e,r[n+1]):e[r[n]]=r[n+1]}},ddec:function(t,e){function r(t,e){const r=new RegExp(e,"g"),n=t.match(r);return n?n.length:0}t.exports=r,t.exports.default=r},de47:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(t,n){var o;return(0,i.default)(this,r),(o=e.call(this))._datas=[],o._popupStyles=n.popupStyles||{},o._labelStyles=n.labelStyles||{},o._spanStyles=n.spanStyles||{},o._closeClassName=n.closeClassName||"",o._closeStyles=n.closeStyles||{},o._datas=t.datas||[],o._closeCallback=t.closeCallback,o.init(),o}return(0,o.default)(r,[{key:"init",value:function(){this.setDivStyle(),this.loadRows(),this.ele.appendChild(this.createAside()),this.ele.appendChild(this.createCloseElement())}},{key:"setDivStyle",value:function(){var t=this._popupStyles;this.ele.style.width="".concat(t.width,"px"),this.ele.style.height="".concat(t.height,"px"),this.ele.style.backgroundColor=t.backgroundColor,this.ele.style.position="relative",this.ele.style.boxSizing="border-box",this.ele.style.padding=t.padding}},{key:"loadRows",value:function(){var t=this;this._datas.forEach((function(e,r){t.ele.appendChild(t.createRow(e,0!=r?5:0))}))}},{key:"setHeight",value:function(t){this.ele.style.height="".concat(t,"px")}},{key:"createRow",value:function(t,e){var r=document.createElement("section");return r.style.marginTop="".concat(e,"px"),r.appendChild(this.ceateLabel(t.label||"")),r.appendChild(this.createSpan(t.value||"")),r}},{key:"ceateLabel",value:function(t){var e=this._labelStyles,r=document.createElement("label");r.style.display="inline-block",r.style.minWidth="".concat(e.minWidth,"px")||!1,r.style.color=e.color||"#fff",r.style.textAlign=e.textAlign||"left",e=e.fontSize?"".concat(e.fontSize,"px"):null;return r.style.fontSize=e||"12px",r.innerHTML=t,r}},{key:"setHTMLElementStyle",value:function(){}},{key:"createSpan",value:function(t){var e=this._spanStyles,r=document.createElement("span");r.style.display="inline-block",r.style.color=e.color||"#fff",r.style.textAlign=e.textAlign||"left",e=e.fontSize?"".concat(e.fontSize,"px"):null;return r.style.fontSize=e||"12px",r.innerHTML=t,r}},{key:"createAside",value:function(){var t=this._popupStyles,e=document.createElement("aside");return e.style.border="20px solid transparent",e.style.borderTop="20px solid ".concat(t.backgroundColor),e.style.position="absolute",e.style.bottom="-40px",e.style.left="50%",e.style.marginLeft="-20px",e}},{key:"createCloseElement",value:function(){var t=this._closeStyles,e=t.fontSize?"".concat(t.fontSize,"px"):null,r=t.top?"".concat(t.top,"px"):null,n=t.right?"".concat(t.right,"px"):null,i=document.createElement("aside");return i.className=this._closeClassName,i.style.width=e||"18px",i.style.height=e||"18px",i.style.fontSize=e||"18px",i.style.position="absolute",i.style.top=r||"8px",i.style.right=n||"8px",i.style.color=t.color||"#fff",i.style.cursor="pointer",this.bingClickEvent(i,this._closeCallback),i}},{key:"bingClickEvent",value:function(t,e){var r=this;t.addEventListener("click",(function(t){e&&e(r.getId()),t.stopPropagation()}),!1)}},{key:"setDatas",value:function(t,e){var r=this;this._datas=t,this._datas.forEach((function(t){r.ele.appendChild(r.createRow(t,e))}))}}]),r}(u.LOverlay);e.default=f},df4c:function(t,e,r){"use strict";e["a"]={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},e134:function(t,e,r){"use strict";var n=r("5e31"),i=r("acc1"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e){var r=this,n=i["a"].IDLE;return r=t.call(this,e.tileCoord,n,{transition:e.transition,interpolate:e.interpolate})||this,r.loader_=e.loader,r.data_=null,r.error_=null,r.size_=e.size||[256,256],r}return o(e,t),e.prototype.getSize=function(){return this.size_},e.prototype.getData=function(){return this.data_},e.prototype.getError=function(){return this.error_},e.prototype.load=function(){if(this.state===i["a"].IDLE||this.state===i["a"].ERROR){this.state=i["a"].LOADING,this.changed();var t=this;this.loader_().then((function(e){t.data_=e,t.state=i["a"].LOADED,t.changed()})).catch((function(e){t.error_=e,t.state=i["a"].ERROR,t.changed()}))}},e}(n["a"]);e["a"]=a},e1f2:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("278c"))),o=n(r("970b")),a=n(r("5bc3")),s=r("5897"),l=r("b12f"),u=r("13e2"),c=function(){function t(e,r){(0,o.default)(this,t),this.layer=null,this.source=null,this.lineFeature=null,this.coordinates=[],this.polygon=null,this.polygonFeature=null,this.lineDash=[],this.ids=[],this.isShowPolygon=!0,this.type=0,this.fillColor=e.fillColor,this.stroke=e.stroke,this.width=e.width||2,this.coordinates=e.coordinates,this.zIndex=e.zIndex||0,this.id=e.id,this.map=r,this.lineDash=e.lineDash||[],this.ids=e.ids,this.isHidePolygon=e.isHidePolygon||!1,e&&e.type&&(this.type=e.type)}return(0,a.default)(t,[{key:"getLayer",value:function(){return this.layer}},{key:"setPolygonColor",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["rgba(255, 255, 255, 0.3)","rgba(00, 131, 241, 1)"],e=this.layer.getStyle();e.getFill().setColor(t[0]),e.getStroke().setColor(t[1])}},{key:"show",value:function(){this.isShowPolygon||(this.map.addLayer(this.layer),this.isShowPolygon=!0)}},{key:"hide",value:function(){this.isShowPolygon&&(this.map.removeLayer(this.layer),this.isShowPolygon=!1)}},{key:"Id",get:function(){return this.id}},{key:"ShowState",get:function(){return this.isShowPolygon}},{key:"Ids",get:function(){return this.ids}},{key:"Vector",get:function(){return this.layer}},{key:"getGeometry",value:function(){return this.Vector&&this.polygonFeature?this.polygonFeature.getGeometry():null}},{key:"getAreaMu",value:function(){var t=this.getGeometry();return t?(0,l.formatArea)(t):"".concat(0)}},{key:"isPolygon",value:function(){var t=this.getGeometry();if(!t)return!1;try{var e=(0,l.calculateCenter)(t),r=e.coordinates;return e.center,(0,s.isTruePolygon)(r)}catch(t){return!1}}},{key:"getGeoJson",value:function(){var t=this.getCoordinates();if(!t.length)return null;var e=this.getCenterPoint(),r=(e=(0,i.default)(e,2),e[0]);e=e[1];return(0,l.createGeoJson)(t,{ruleId:"",centerlon:r,centerlat:e})}},{key:"getCenterPoint",value:function(){var t=this.getCoordinates();if(!t.length)return[];var e;t=(0,l.getCenterPoint)(t);return this.type?[(e=u.GPS.gcj_decrypt(t[0],t[1])).lon,e.lat]:t}},{key:"getExtent",value:function(){var t=this.getGeometry();return t?this.type?u.GPS.convertBBoxWGS84(t.getExtent()):t.getExtent():[]}},{key:"getCoordinates",value:function(){var t=this.getGeometry(),e=this.deleteDuplicateData(t.getCoordinates());return this.type?u.GPS.convertCoordinatesWGS84(e):t?e:[]}},{key:"setCoordinates",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],n=(this.coordinates=this.deleteDuplicateData(t),this.type=e,new Array);this.coordinates[0].length?(this.coordinates[0].forEach((function(t){n.push(t)})),r&&n.push(this.coordinates[0][0]),t=[n],e?this.polygon.setCoordinates(u.GPS.convertCoordinatesGCJ02(t)):this.polygon.setCoordinates(t)):this.polygon.setCoordinates([])}},{key:"selectGPS",value:function(){this.setCoordinates(this.coordinates,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,!(1<arguments.length&&void 0!==arguments[1])||arguments[1])}},{key:"isConvertCoordinatesGCJ02",value:function(){return this.type?u.GPS.convertCoordinatesGCJ02(this.coordinates):this.coordinates}},{key:"setZIndex",value:function(t){this.layer.setZIndex(t)}},{key:"setType",set:function(t){this.type=t}},{key:"deleteDuplicateData",value:function(t){t=t[0];var e=new Array,r=[0,0];return t.forEach((function(t){t[0]!=r[0]&&t[1]!=r[1]&&e.push(t),r=t})),[e]}}]),t}();e.default=c},e269:function(t,e,r){"use strict";var n=r("cef7"),i=r("7b4f"),o=r("35a7"),a=r("38f3"),s=r("1300"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.key=r,i.oldValue=n,i}return l(e,t),e}(n["a"]),c=function(t){function e(e){var r=t.call(this)||this;return r.on,r.once,r.un,Object(s["c"])(r),r.values_=null,void 0!==e&&r.setProperties(e),r}return l(e,t),e.prototype.get=function(t){var e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},e.prototype.getProperties=function(){return this.values_&&Object(a["a"])({},this.values_)||{}},e.prototype.hasProperties=function(){return!!this.values_},e.prototype.notify=function(t,e){var r;r="change:".concat(t),this.hasListener(r)&&this.dispatchEvent(new u(r,t,e)),r=i["a"].PROPERTYCHANGE,this.hasListener(r)&&this.dispatchEvent(new u(r,t,e))},e.prototype.addChangeListener=function(t,e){this.addEventListener("change:".concat(t),e)},e.prototype.removeChangeListener=function(t,e){this.removeEventListener("change:".concat(t),e)},e.prototype.set=function(t,e,r){var n=this.values_||(this.values_={});if(r)n[t]=e;else{var i=n[t];n[t]=e,i!==e&&this.notify(t,i)}},e.prototype.setProperties=function(t,e){for(var r in t)this.set(r,t[r],e)},e.prototype.applyProperties=function(t){t.values_&&Object(a["a"])(this.values_||(this.values_={}),t.values_)},e.prototype.unset=function(t,e){if(this.values_&&t in this.values_){var r=this.values_[t];delete this.values_[t],Object(a["d"])(this.values_)&&(this.values_=null),e||this.notify(t,r)}},e}(o["a"]);e["a"]=c},e300:function(t,e,r){"use strict";var n=r("835b"),i=r("e269"),o=r("183a"),a=r("cef7"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l={LENGTH:"length"},u=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.element=r,i.index=n,i}return s(e,t),e}(a["a"]),c=function(t){function e(e,r){var n=t.call(this)||this;n.on,n.once,n.un;var i=r||{};if(n.unique_=!!i.unique,n.array_=e||[],n.unique_)for(var o=0,a=n.array_.length;o<a;++o)n.assertUnique_(n.array_[o],o);return n.updateLength_(),n}return s(e,t),e.prototype.clear=function(){while(this.getLength()>0)this.pop()},e.prototype.extend=function(t){for(var e=0,r=t.length;e<r;++e)this.push(t[e]);return this},e.prototype.forEach=function(t){for(var e=this.array_,r=0,n=e.length;r<n;++r)t(e[r],r,e)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(l.LENGTH)},e.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new u(o["a"].ADD,e,t))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},e.prototype.remove=function(t){for(var e=this.array_,r=0,n=e.length;r<n;++r)if(e[r]===t)return this.removeAt(r)},e.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new u(o["a"].REMOVE,e,t)),e},e.prototype.setAt=function(t,e){var r=this.getLength();if(t<r){this.unique_&&this.assertUnique_(e,t);var n=this.array_[t];this.array_[t]=e,this.dispatchEvent(new u(o["a"].REMOVE,n,t)),this.dispatchEvent(new u(o["a"].ADD,e,t))}else{for(var i=r;i<t;++i)this.insertAt(i,void 0);this.insertAt(t,e)}},e.prototype.updateLength_=function(){this.set(l.LENGTH,this.array_.length)},e.prototype.assertUnique_=function(t,e){for(var r=0,i=this.array_.length;r<i;++r)if(this.array_[r]===t&&r!==e)throw new n["a"](58)},e}(i["a"]);e["a"]=c},e4e0:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return o}));var n=r("1300"),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function o(t,e,r,i){var o=document.createElement("script"),a="olc_"+Object(n["c"])(e);function s(){delete window[a],o.parentNode.removeChild(o)}o.async=!0,o.src=t+(-1==t.indexOf("?")?"?":"&")+(i||"callback")+"="+a;var l=setTimeout((function(){s(),r&&r()}),1e4);window[a]=function(t){clearTimeout(l),s(),e(t)},document.head.appendChild(o)}(function(t){function e(e){var r=this,n="Unexpected response status: "+e.status;return r=t.call(this,n)||this,r.name="ResponseError",r.response=e,r}i(e,t)})(Error),function(t){function e(e){var r=t.call(this,"Failed to issue request")||this;return r.name="ClientError",r.client=e,r}i(e,t)}(Error)}).call(this,r("c8ba"))},e504:function(t,e){
|
|
12
|
-
/*! @petamoriken/float16 v3.6.6 | MIT License - https://github.com/petamoriken/float16 */
|
|
13
|
-
(function(t){"use strict";const e="This is not an object",r="This is not a Float16Array object",n="This constructor is not a subclass of Float16Array",i="The constructor property value is not an object",o="Species constructor didn't return TypedArray object",a="Derived constructor created TypedArray object which was too small length",s="Attempting to access detached ArrayBuffer",l="Cannot convert undefined or null to object",u="Cannot mix BigInt and other types, use explicit conversions",c="@@iterator property is not callable",h="Reduce of empty array with no initial value",f="Offset is out of bounds";function p(t){return(e,...r)=>g(t,e,r)}function d(t,e){return p(_(t,e).get)}const{apply:g,construct:y,defineProperty:v,get:m,getOwnPropertyDescriptor:_,getPrototypeOf:b,has:x,ownKeys:w,set:O,setPrototypeOf:E}=Reflect,S=Proxy,{MAX_SAFE_INTEGER:T,isFinite:C,isNaN:P}=Number,{iterator:j,species:R,toStringTag:M,for:A}=Symbol,L=Object,{create:I,defineProperty:F,freeze:k,is:D}=L,G=L.prototype,N=G.__lookupGetter__?p(G.__lookupGetter__):(t,e)=>{if(null==t)throw At(l);let r=L(t);do{const t=_(r,e);if(void 0!==t)return z(t,"get")?t.get:void 0}while(null!==(r=b(r)))},z=L.hasOwn||p(G.hasOwnProperty),U=Array,B=U.isArray,V=U.prototype,X=p(V.join),W=p(V.push),H=p(V.toLocaleString),Y=V[j],q=p(Y),K=Math.trunc,Z=ArrayBuffer,J=Z.isView,$=Z.prototype,Q=p($.slice),tt=d($,"byteLength"),et="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:null,rt=et&&d(et.prototype,"byteLength"),nt=b(Uint8Array),it=nt.from,ot=nt.prototype,at=ot[j],st=p(ot.keys),lt=p(ot.values),ut=p(ot.entries),ct=p(ot.set),ht=p(ot.reverse),ft=p(ot.fill),pt=p(ot.copyWithin),dt=p(ot.sort),gt=p(ot.slice),yt=p(ot.subarray),vt=d(ot,"buffer"),mt=d(ot,"byteOffset"),_t=d(ot,"length"),bt=d(ot,M),xt=Uint16Array,wt=(...t)=>g(it,xt,t),Ot=Uint32Array,Et=Float32Array,St=b([][j]()),Tt=p(St.next),Ct=p(function*(){}().next),Pt=b(St),jt=DataView.prototype,Rt=p(jt.getUint16),Mt=p(jt.setUint16),At=TypeError,Lt=RangeError,It=WeakSet,Ft=It.prototype,kt=p(Ft.add),Dt=p(Ft.has),Gt=WeakMap,Nt=Gt.prototype,zt=p(Nt.get),Ut=p(Nt.has),Bt=p(Nt.set),Vt=new Gt,Xt=I(null,{next:{value:function(){const t=zt(Vt,this);return Tt(t)}},[j]:{value:function(){return this}}});function Wt(t){if(t[j]===Y)return t;const e=I(Xt);return Bt(Vt,e,q(t)),e}const Ht=new Gt,Yt=I(Pt,{next:{value:function(){const t=zt(Ht,this);return Ct(t)},writable:!0,configurable:!0}});for(const ke of w(St))"next"!==ke&&F(Yt,ke,_(St,ke));function qt(t){const e=I(Yt);return Bt(Ht,e,t),e}function Kt(t){return null!==t&&"object"===typeof t||"function"===typeof t}function Zt(t){return null!==t&&"object"===typeof t}function Jt(t){return void 0!==bt(t)}function $t(t){const e=bt(t);return"BigInt64Array"===e||"BigUint64Array"===e}function Qt(t){try{return tt(t),!0}catch(e){return!1}}function te(t){if(null===et)return!1;try{return rt(t),!0}catch(e){return!1}}function ee(t){if(!B(t))return!1;if(t[j]===Y)return!0;const e=t[j]();return"Array Iterator"===e[M]}function re(t){if(!Jt(t))return!1;if(t[j]===at)return!0;const e=t[j]();return"Array Iterator"===e[M]}function ne(t){if("string"!==typeof t)return!1;const e=+t;return t===e+""&&(!!C(e)&&e===K(e))}const ie=A("__Float16Array__");function oe(t){if(!Zt(t))return!1;const e=b(t);if(!Zt(e))return!1;const r=e.constructor;if(void 0===r)return!1;if(!Kt(r))throw At(i);return x(r,ie)}const ae=new Z(4),se=new Et(ae),le=new Ot(ae),ue=new Ot(512),ce=new Ot(512);for(let ke=0;ke<256;++ke){const t=ke-127;t<-27?(ue[ke]=0,ue[256|ke]=32768,ce[ke]=24,ce[256|ke]=24):t<-14?(ue[ke]=1024>>-t-14,ue[256|ke]=1024>>-t-14|32768,ce[ke]=-t-1,ce[256|ke]=-t-1):t<=15?(ue[ke]=t+15<<10,ue[256|ke]=t+15<<10|32768,ce[ke]=13,ce[256|ke]=13):t<128?(ue[ke]=31744,ue[256|ke]=64512,ce[ke]=24,ce[256|ke]=24):(ue[ke]=31744,ue[256|ke]=64512,ce[ke]=13,ce[256|ke]=13)}function he(t){se[0]=t;const e=le[0],r=e>>23&511;return ue[r]+((8388607&e)>>ce[r])}const fe=new Ot(2048),pe=new Ot(64),de=new Ot(64);for(let ke=1;ke<1024;++ke){let t=ke<<13,e=0;while(0===(8388608&t))t<<=1,e-=8388608;t&=-8388609,e+=947912704,fe[ke]=t|e}for(let ke=1024;ke<2048;++ke)fe[ke]=939524096+(ke-1024<<13);for(let ke=1;ke<31;++ke)pe[ke]=ke<<23;pe[31]=1199570944,pe[32]=2147483648;for(let ke=33;ke<63;++ke)pe[ke]=2147483648+(ke-32<<23);pe[63]=3347054592;for(let ke=1;ke<64;++ke)32!==ke&&(de[ke]=1024);function ge(t){const e=t>>10;return le[0]=fe[de[e]+(1023&t)]+pe[e],se[0]}function ye(t){const e=+t;return P(e)||0===e?0:K(e)}function ve(t){const e=ye(t);return e<0?0:e<T?e:T}function me(t,r){if(!Kt(t))throw At(e);const n=t.constructor;if(void 0===n)return r;if(!Kt(n))throw At(i);const o=n[R];return null==o?r:o}function _e(t){if(te(t))return!1;try{return Q(t,0,0),!1}catch(e){}return!0}function be(t,e){const r=P(t),n=P(e);if(r&&n)return 0;if(r)return 1;if(n)return-1;if(t<e)return-1;if(t>e)return 1;if(0===t&&0===e){const r=D(t,0),n=D(e,0);if(!r&&n)return-1;if(r&&!n)return 1}return 0}const xe=2,we=new Gt;function Oe(t){return Ut(we,t)||!J(t)&&oe(t)}function Ee(t){if(!Oe(t))throw At(r)}function Se(t,e){const r=Oe(t),n=Jt(t);if(!r&&!n)throw At(o);if("number"===typeof e){let n;if(r){const e=Te(t);n=_t(e)}else n=_t(t);if(n<e)throw At(a)}if($t(t))throw At(u)}function Te(t){const e=zt(we,t);if(void 0!==e){const t=vt(e);if(_e(t))throw At(s);return e}const r=t.buffer;if(_e(r))throw At(s);const n=y(Re,[r,t.byteOffset,t.length],t.constructor);return zt(we,n)}function Ce(t){const e=_t(t),r=[];for(let n=0;n<e;++n)r[n]=ge(t[n]);return r}const Pe=new It;for(const ke of w(ot)){if(ke===M)continue;const t=_(ot,ke);z(t,"get")&&"function"===typeof t.get&&kt(Pe,t.get)}const je=k({get(t,e,r){return ne(e)&&z(t,e)?ge(m(t,e)):Dt(Pe,N(t,e))?m(t,e):m(t,e,r)},set(t,e,r,n){return ne(e)&&z(t,e)?O(t,e,he(r)):O(t,e,r,n)},getOwnPropertyDescriptor(t,e){if(ne(e)&&z(t,e)){const r=_(t,e);return r.value=ge(r.value),r}return _(t,e)},defineProperty(t,e,r){return ne(e)&&z(t,e)&&z(r,"value")?(r.value=he(r.value),v(t,e,r)):v(t,e,r)}});class Re{constructor(t,e,r){let n;if(Oe(t))n=y(xt,[Te(t)],new.target);else if(Kt(t)&&!Qt(t)){let e,r;if(Jt(t)){e=t,r=_t(t);const i=vt(t),o=te(i)?Z:me(i,Z);if(_e(i))throw At(s);if($t(t))throw At(u);const a=new o(r*xe);n=y(xt,[a],new.target)}else{const i=t[j];if(null!=i&&"function"!==typeof i)throw At(c);null!=i?ee(t)?(e=t,r=t.length):(e=[...t],r=e.length):(e=t,r=ve(e.length)),n=y(xt,[r],new.target)}for(let t=0;t<r;++t)n[t]=he(e[t])}else n=y(xt,arguments,new.target);const i=new S(n,je);return Bt(we,i,n),i}static from(t,...e){const r=this;if(!x(r,ie))throw At(n);if(r===Re){if(Oe(t)&&0===e.length){const e=Te(t),r=new xt(vt(e),mt(e),_t(e));return new Re(vt(gt(r)))}if(0===e.length)return new Re(vt(wt(t,he)));const r=e[0],n=e[1];return new Re(vt(wt(t,(function(t,...e){return he(g(r,this,[t,...Wt(e)]))}),n)))}let i,o;const a=t[j];if(null!=a&&"function"!==typeof a)throw At(c);if(null!=a)ee(t)?(i=t,o=t.length):re(t)?(i=t,o=_t(t)):(i=[...t],o=i.length);else{if(null==t)throw At(l);i=L(t),o=ve(i.length)}const s=new r(o);if(0===e.length)for(let n=0;n<o;++n)s[n]=i[n];else{const t=e[0],r=e[1];for(let e=0;e<o;++e)s[e]=g(t,r,[i[e],e])}return s}static of(...t){const e=this;if(!x(e,ie))throw At(n);const r=t.length;if(e===Re){const e=new Re(r),n=Te(e);for(let i=0;i<r;++i)n[i]=he(t[i]);return e}const i=new e(r);for(let n=0;n<r;++n)i[n]=t[n];return i}keys(){Ee(this);const t=Te(this);return st(t)}values(){Ee(this);const t=Te(this);return qt(function*(){for(const e of lt(t))yield ge(e)}())}entries(){Ee(this);const t=Te(this);return qt(function*(){for(const[e,r]of ut(t))yield[e,ge(r)]}())}at(t){Ee(this);const e=Te(this),r=_t(e),n=ye(t),i=n>=0?n:r+n;if(!(i<0||i>=r))return ge(e[i])}map(t,...e){Ee(this);const r=Te(this),n=_t(r),i=e[0],o=me(r,Re);if(o===Re){const e=new Re(n),o=Te(e);for(let a=0;a<n;++a){const e=ge(r[a]);o[a]=he(g(t,i,[e,a,this]))}return e}const a=new o(n);Se(a,n);for(let s=0;s<n;++s){const e=ge(r[s]);a[s]=g(t,i,[e,s,this])}return a}filter(t,...e){Ee(this);const r=Te(this),n=_t(r),i=e[0],o=[];for(let l=0;l<n;++l){const e=ge(r[l]);g(t,i,[e,l,this])&&W(o,e)}const a=me(r,Re),s=new a(o);return Se(s),s}reduce(t,...e){Ee(this);const r=Te(this),n=_t(r);if(0===n&&0===e.length)throw At(h);let i,o;0===e.length?(i=ge(r[0]),o=1):(i=e[0],o=0);for(let a=o;a<n;++a)i=t(i,ge(r[a]),a,this);return i}reduceRight(t,...e){Ee(this);const r=Te(this),n=_t(r);if(0===n&&0===e.length)throw At(h);let i,o;0===e.length?(i=ge(r[n-1]),o=n-2):(i=e[0],o=n-1);for(let a=o;a>=0;--a)i=t(i,ge(r[a]),a,this);return i}forEach(t,...e){Ee(this);const r=Te(this),n=_t(r),i=e[0];for(let o=0;o<n;++o)g(t,i,[ge(r[o]),o,this])}find(t,...e){Ee(this);const r=Te(this),n=_t(r),i=e[0];for(let o=0;o<n;++o){const e=ge(r[o]);if(g(t,i,[e,o,this]))return e}}findIndex(t,...e){Ee(this);const r=Te(this),n=_t(r),i=e[0];for(let o=0;o<n;++o){const e=ge(r[o]);if(g(t,i,[e,o,this]))return o}return-1}findLast(t,...e){Ee(this);const r=Te(this),n=_t(r),i=e[0];for(let o=n-1;o>=0;--o){const e=ge(r[o]);if(g(t,i,[e,o,this]))return e}}findLastIndex(t,...e){Ee(this);const r=Te(this),n=_t(r),i=e[0];for(let o=n-1;o>=0;--o){const e=ge(r[o]);if(g(t,i,[e,o,this]))return o}return-1}every(t,...e){Ee(this);const r=Te(this),n=_t(r),i=e[0];for(let o=0;o<n;++o)if(!g(t,i,[ge(r[o]),o,this]))return!1;return!0}some(t,...e){Ee(this);const r=Te(this),n=_t(r),i=e[0];for(let o=0;o<n;++o)if(g(t,i,[ge(r[o]),o,this]))return!0;return!1}set(t,...e){Ee(this);const r=Te(this),n=ye(e[0]);if(n<0)throw Lt(f);if(null==t)throw At(l);if($t(t))throw At(u);if(Oe(t))return ct(Te(this),Te(t),n);if(Jt(t)){const e=vt(t);if(_e(e))throw At(s)}const i=_t(r),o=L(t),a=ve(o.length);if(n===1/0||a+n>i)throw Lt(f);for(let s=0;s<a;++s)r[s+n]=he(o[s])}reverse(){Ee(this);const t=Te(this);return ht(t),this}fill(t,...e){Ee(this);const r=Te(this);return ft(r,he(t),...Wt(e)),this}copyWithin(t,e,...r){Ee(this);const n=Te(this);return pt(n,t,e,...Wt(r)),this}sort(t){Ee(this);const e=Te(this),r=void 0!==t?t:be;return dt(e,(t,e)=>r(ge(t),ge(e))),this}slice(t,e){Ee(this);const r=Te(this),n=me(r,Re);if(n===Re){const n=new xt(vt(r),mt(r),_t(r));return new Re(vt(gt(n,t,e)))}const i=_t(r),o=ye(t),a=void 0===e?i:ye(e);let l,u;l=o===-1/0?0:o<0?i+o>0?i+o:0:i<o?i:o,u=a===-1/0?0:a<0?i+a>0?i+a:0:i<a?i:a;const c=u-l>0?u-l:0,h=new n(c);if(Se(h,c),0===c)return h;const f=vt(r);if(_e(f))throw At(s);let p=0;while(l<u)h[p]=ge(r[l]),++l,++p;return h}subarray(t,e){Ee(this);const r=Te(this),n=me(r,Re),i=new xt(vt(r),mt(r),_t(r)),o=yt(i,t,e),a=new n(vt(o),mt(o),_t(o));return Se(a),a}indexOf(t,...e){Ee(this);const r=Te(this),n=_t(r);let i=ye(e[0]);if(i===1/0)return-1;i<0&&(i+=n,i<0&&(i=0));for(let o=i;o<n;++o)if(z(r,o)&&ge(r[o])===t)return o;return-1}lastIndexOf(t,...e){Ee(this);const r=Te(this),n=_t(r);let i=e.length>=1?ye(e[0]):n-1;if(i===-1/0)return-1;i>=0?i=i<n-1?i:n-1:i+=n;for(let o=i;o>=0;--o)if(z(r,o)&&ge(r[o])===t)return o;return-1}includes(t,...e){Ee(this);const r=Te(this),n=_t(r);let i=ye(e[0]);if(i===1/0)return!1;i<0&&(i+=n,i<0&&(i=0));const o=P(t);for(let a=i;a<n;++a){const e=ge(r[a]);if(o&&P(e))return!0;if(e===t)return!0}return!1}join(t){Ee(this);const e=Te(this),r=Ce(e);return X(r,t)}toLocaleString(...t){Ee(this);const e=Te(this),r=Ce(e);return H(r,...Wt(t))}get[M](){if(Oe(this))return"Float16Array"}}F(Re,"BYTES_PER_ELEMENT",{value:xe}),F(Re,ie,{}),E(Re,nt);const Me=Re.prototype;function Ae(t){return Jt(t)||Oe(t)}function Le(t,e,...r){return ge(Rt(t,e,...Wt(r)))}function Ie(t,e,r,...n){return Mt(t,e,he(r),...Wt(n))}function Fe(t){const e=+t;if(!C(e)||0===e)return e;const r=he(e);return ge(r)}F(Me,"BYTES_PER_ELEMENT",{value:xe}),F(Me,j,{value:Me.values,writable:!0,configurable:!0}),E(Me,ot),t.Float16Array=Re,t.getFloat16=Le,t.hfround=Fe,t.isFloat16Array=Oe,t.isTypedArray=Ae,t.setFloat16=Ie,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})({})},e637:function(t,e,r){"use strict";e["a"]={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"}},e63e:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("21bc");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function f(t){t.style.height="30px",t.style.width="30px",t.style.left="50%",t.style.top="50%",t.style.color="red",t.style.position="absolute",t.style.marginTop="-15px",t.style.marginLeft="-15px",t.style.cursor="pointer"}function p(t,e){t.addEventListener("click",(function(t){e&&e(),t.stopPropagation()}),!1)}function d(t){var e=document.createElement("i"),r=(e.style.fontSize="30px",e.className="el-icon--zhunxin1",document.createElement("div"));return f(r),p(r,t),r.appendChild(e),r}var g=function(t){(0,a.default)(r,t);var e=c(r);function r(t){(0,i.default)(this,r);var n=d(t);t=e.call(this,{element:d(t),target:null});return t._ele=n,t}return(0,o.default)(r,[{key:"show",value:function(){this._ele.style.display="block"}},{key:"hide",value:function(){this._ele.style.display="none"}}]),r}(u.Control);e.default=g},e653:function(t,e,r){},e7df:function(t,e,r){"use strict";r.r(e);var n=r("01d4"),i=r("2c15"),o=r("869f"),a=r("6611"),s=r("0b0e"),l=r("38f3"),u=r("0999"),c=r("0af5"),h=r("256f"),f=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=function(t){function e(e){var r=this,o=void 0!==e.crossOrigin?e.crossOrigin:null,s=void 0!==e.imageLoadFunction?e.imageLoadFunction:i["b"],l=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(l=e.interpolate),r=t.call(this,{attributions:e.attributions,interpolate:l,projection:Object(h["get"])(e.projection)})||this,r.url_=e.url,r.imageExtent_=e.imageExtent,r.image_=new a["a"](r.imageExtent_,void 0,1,r.url_,o,s),r.imageSize_=e.imageSize?e.imageSize:null,r.image_.addEventListener(n["a"].CHANGE,r.handleImageChange.bind(r)),r}return f(e,t),e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,e,r,n){return Object(c["intersects"])(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(e){if(this.image_.getState()==o["a"].LOADED){var r=this.image_.getExtent(),n=this.image_.getImage(),i=void 0,a=void 0;this.imageSize_?(i=this.imageSize_[0],a=this.imageSize_[1]):(i=n.width,a=n.height);var h=Object(c["getWidth"])(r),f=Object(c["getHeight"])(r),p=h/i,d=f/a,g=i,y=a;if(p>d?g=Math.round(h/d):y=Math.round(f/p),g!==i||y!==a){var v=Object(u["a"])(g,y);this.getInterpolate()||Object(l["a"])(v,s["a"]);var m=v.canvas;v.drawImage(n,0,0,i,a,0,0,m.width,m.height),this.image_.setImage(m)}}t.prototype.handleImageChange.call(this,e)},e}(i["a"]);e["default"]=p},e8b8:function(t,e,r){"use strict";var n=r("6573"),i=r("0e69"),o=r("617d"),a=r("a896"),s=r("0af5"),l=r("ddea"),u=r("7fc9"),c=r("bef8");function h(t,e,r,n,i,o,a,s,l,h,f,p){var d=t[e],g=t[e+1],y=0,v=0,m=0,_=0;function b(){y=d,v=g,e+=n,d=t[e],g=t[e+1],_+=m,m=Math.sqrt((d-y)*(d-y)+(g-v)*(g-v))}do{b()}while(e<r-n&&_+m<o);var x=0===m?0:(o-_)/m,w=Object(u["e"])(y,d,x),O=Object(u["e"])(v,g,x),E=e-n,S=_,T=o+s*l(h,i,f);while(e<r-n&&_+m<T)b();x=0===m?0:(T-_)/m;var C,P=Object(u["e"])(y,d,x),j=Object(u["e"])(v,g,x);if(p){var R=[w,O,P,j];Object(c["a"])(R,0,4,2,p,R,R),C=R[0]>R[2]}else C=w>P;var M,A=Math.PI,L=[],I=E+n===e;if(e=E,m=0,_=S,d=t[e],g=t[e+1],I){b(),M=Math.atan2(g-v,d-y),C&&(M+=M>0?-A:A);var F=(P+w)/2,k=(j+O)/2;return L[0]=[F,k,(T-o)/2,M,i],L}i=i.replace(/\n/g," ");for(var D=0,G=i.length;D<G;){b();var N=Math.atan2(g-v,d-y);if(C&&(N+=N>0?-A:A),void 0!==M){var z=N-M;if(z+=z>A?-2*A:z<-A?2*A:0,Math.abs(z)>a)return null}M=N;for(var U=D,B=0;D<G;++D){var V=C?G-D-1:D,X=s*l(h,i[V],f);if(e+n<r&&_+m<o+B+X/2)break;B+=X}if(D!==U){var W=C?i.substring(G-U,G-D):i.substring(U,D);x=0===m?0:(o+B/2-_)/m;F=Object(u["e"])(y,d,x),k=Object(u["e"])(v,g,x);L.push([F,k,B/2,N,W]),o+=B}}return L}var f=r("9f5e"),p=r("5938"),d=Object(s["createEmpty"])(),g=[],y=[],v=[],m=[];function _(t){return t[3].declutterBox}var b=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function x(t,e){return"start"!==e&&"end"!==e||b.test(t)||(e="start"===e?"left":"right"),i["a"][e]}function w(t,e,r){return r>0&&t.push("\n",""),t.push(e,""),t}var O=function(){function t(t,e,r,n){this.overlaps=r,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=Object(a["c"])(),this.hitDetectionInstructions=n.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=n.fillStates||{},this.strokeStates=n.strokeStates||{},this.textStates=n.textStates||{},this.widths_={},this.labels_={}}return t.prototype.createLabel=function(t,e,r,n){var a=t+e+r+n;if(this.labels_[a])return this.labels_[a];var s=n?this.strokeStates[n]:null,u=r?this.fillStates[r]:null,c=this.textStates[e],h=this.pixelRatio,f=[c.scale[0]*h,c.scale[1]*h],p=Array.isArray(t),d=c.justify?i["a"][c.justify]:x(Array.isArray(t)?t[0]:t,c.textAlign||l["l"]),g=n&&s.lineWidth?s.lineWidth:0,y=p?t:t.split("\n").reduce(w,[]),v=Object(l["o"])(c,y),m=v.width,_=v.height,b=v.widths,O=v.heights,E=v.lineWidths,S=m+g,T=[],C=(S+2)*f[0],P=(_+g)*f[1],j={width:C<0?Math.floor(C):Math.ceil(C),height:P<0?Math.floor(P):Math.ceil(P),contextInstructions:T};if(1==f[0]&&1==f[1]||T.push("scale",f),n){T.push("strokeStyle",s.strokeStyle),T.push("lineWidth",g),T.push("lineCap",s.lineCap),T.push("lineJoin",s.lineJoin),T.push("miterLimit",s.miterLimit);var R=o["h"]?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;R.prototype.setLineDash&&(T.push("setLineDash",[s.lineDash]),T.push("lineDashOffset",s.lineDashOffset))}r&&T.push("fillStyle",u.fillStyle),T.push("textBaseline","middle"),T.push("textAlign","center");for(var M,A=.5-d,L=d*S+A*g,I=[],F=[],k=0,D=0,G=0,N=0,z=0,U=y.length;z<U;z+=2){var B=y[z];if("\n"!==B){var V=y[z+1]||c.font;V!==M&&(n&&I.push("font",V),r&&F.push("font",V),M=V),k=Math.max(k,O[G]);var X=[B,L+A*b[G]+d*(b[G]-E[N]),.5*(g+k)+D];L+=b[G],n&&I.push("strokeText",X),r&&F.push("fillText",X),++G}else D+=k,k=0,L=d*S+A*g,++N}return Array.prototype.push.apply(T,I),Array.prototype.push.apply(T,F),this.labels_[a]=j,j},t.prototype.replayTextBackground_=function(t,e,r,n,i,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,r),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())},t.prototype.calculateImageOrLabelDimensions_=function(t,e,r,n,i,o,l,u,c,h,f,p,_,b,x,w){l*=p[0],u*=p[1];var O,E=r-l,S=n-u,T=i+c>t?t-c:i,C=o+h>e?e-h:o,P=b[3]+T*p[0]+b[1],j=b[0]+C*p[1]+b[2],R=E-b[3],M=S-b[0];return(x||0!==f)&&(g[0]=R,m[0]=R,g[1]=M,y[1]=M,y[0]=R+P,v[0]=y[0],v[1]=M+j,m[1]=v[1]),0!==f?(O=Object(a["b"])(Object(a["c"])(),r,n,1,1,f,-r,-n),Object(a["a"])(O,g),Object(a["a"])(O,y),Object(a["a"])(O,v),Object(a["a"])(O,m),Object(s["createOrUpdate"])(Math.min(g[0],y[0],v[0],m[0]),Math.min(g[1],y[1],v[1],m[1]),Math.max(g[0],y[0],v[0],m[0]),Math.max(g[1],y[1],v[1],m[1]),d)):Object(s["createOrUpdate"])(Math.min(R,R+P),Math.min(M,M+j),Math.max(R,R+P),Math.max(M,M+j),d),_&&(E=Math.round(E),S=Math.round(S)),{drawImageX:E,drawImageY:S,drawImageW:T,drawImageH:C,originX:c,originY:h,declutterBox:{minX:d[0],minY:d[1],maxX:d[2],maxY:d[3],value:w},canvasTransform:O,scale:p}},t.prototype.replayImageOrLabel_=function(t,e,r,n,i,o,a){var s=!(!o&&!a),u=n.declutterBox,c=t.canvas,h=a?a[2]*n.scale[0]/2:0,f=u.minX-h<=c.width/e&&u.maxX+h>=0&&u.minY-h<=c.height/e&&u.maxY+h>=0;return f&&(s&&this.replayTextBackground_(t,g,y,v,m,o,a),Object(l["n"])(t,n.canvasTransform,i,r,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0},t.prototype.fill_=function(t){if(this.alignFill_){var e=Object(a["a"])(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;t.save(),t.translate(e[0]%r,e[1]%r),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},t.prototype.setStrokeStyle_=function(t,e){t["strokeStyle"]=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},t.prototype.drawLabelWithPointPlacement_=function(t,e,r,n){var o=this.textStates[e],a=this.createLabel(t,e,n,r),s=this.strokeStates[r],u=this.pixelRatio,c=x(Array.isArray(t)?t[0]:t,o.textAlign||l["l"]),h=i["a"][o.textBaseline||l["m"]],f=s&&s.lineWidth?s.lineWidth:0,p=a.width/u-2*o.scale[0],d=c*p+2*(.5-c)*f,g=h*a.height/u+2*(.5-h)*f;return{label:a,anchorX:d,anchorY:g}},t.prototype.execute_=function(t,e,r,o,u,d,g,y){var v;this.pixelCoordinates_&&Object(f["b"])(r,this.renderedTransform_)?v=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),v=Object(c["c"])(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),Object(a["j"])(this.renderedTransform_,r));var m,b,x,w,O,E,S,T,C,P,j,R,M,A,L,I,F=0,k=o.length,D=0,G=0,N=0,z=null,U=null,B=this.coordinateCache_,V=this.viewRotation_,X=Math.round(1e12*Math.atan2(-r[1],r[0]))/1e12,W={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:V},H=this.instructions!=o||this.overlaps?0:200;while(F<k){var Y=o[F],q=Y[0];switch(q){case n["c"].BEGIN_GEOMETRY:M=Y[1],I=Y[3],M.getGeometry()?void 0===g||Object(s["intersects"])(g,I.getExtent())?++F:F=Y[2]+1:F=Y[2];break;case n["c"].BEGIN_PATH:G>H&&(this.fill_(t),G=0),N>H&&(t.stroke(),N=0),G||N||(t.beginPath(),w=NaN,O=NaN),++F;break;case n["c"].CIRCLE:D=Y[1];var K=v[D],Z=v[D+1],J=v[D+2],$=v[D+3],Q=J-K,tt=$-Z,et=Math.sqrt(Q*Q+tt*tt);t.moveTo(K+et,Z),t.arc(K,Z,et,0,2*Math.PI,!0),++F;break;case n["c"].CLOSE_PATH:t.closePath(),++F;break;case n["c"].CUSTOM:D=Y[1],m=Y[2];var rt=Y[3],nt=Y[4],it=6==Y.length?Y[5]:void 0;W.geometry=rt,W.feature=M,F in B||(B[F]=[]);var ot=B[F];it?it(v,D,m,2,ot):(ot[0]=v[D],ot[1]=v[D+1],ot.length=2),nt(ot,W),++F;break;case n["c"].DRAW_IMAGE:D=Y[1],m=Y[2],T=Y[3],b=Y[4],x=Y[5];var at=Y[6],st=Y[7],lt=Y[8],ut=Y[9],ct=Y[10],ht=Y[11],ft=Y[12],pt=Y[13],dt=Y[14],gt=Y[15];if(!T&&Y.length>=20){C=Y[19],P=Y[20],j=Y[21],R=Y[22];var yt=this.drawLabelWithPointPlacement_(C,P,j,R);T=yt.label,Y[3]=T;var vt=Y[23];b=(yt.anchorX-vt)*this.pixelRatio,Y[4]=b;var mt=Y[24];x=(yt.anchorY-mt)*this.pixelRatio,Y[5]=x,at=T.height,Y[6]=at,pt=T.width,Y[13]=pt}var _t=void 0;Y.length>25&&(_t=Y[25]);var bt=void 0,xt=void 0,wt=void 0;Y.length>17?(bt=Y[16],xt=Y[17],wt=Y[18]):(bt=l["j"],xt=!1,wt=!1),ct&&X?ht+=V:ct||X||(ht-=V);for(var Ot=0;D<m;D+=2)if(!(_t&&_t[Ot++]<pt/this.pixelRatio)){var Et=this.calculateImageOrLabelDimensions_(T.width,T.height,v[D],v[D+1],pt,at,b,x,lt,ut,ht,ft,u,bt,xt||wt,M),St=[t,e,T,Et,st,xt?z:null,wt?U:null];if(y){if("none"===dt)continue;if("obstacle"===dt){y.insert(Et.declutterBox);continue}var Tt=void 0,Ct=void 0;if(gt){var Pt=m-D;if(!gt[Pt]){gt[Pt]=St;continue}if(Tt=gt[Pt],delete gt[Pt],Ct=_(Tt),y.collides(Ct))continue}if(y.collides(Et.declutterBox))continue;Tt&&(y.insert(Ct),this.replayImageOrLabel_.apply(this,Tt)),y.insert(Et.declutterBox)}this.replayImageOrLabel_.apply(this,St)}++F;break;case n["c"].DRAW_CHARS:var jt=Y[1],Rt=Y[2],Mt=Y[3],At=Y[4];R=Y[5];var Lt=Y[6],It=Y[7],Ft=Y[8];j=Y[9];var kt=Y[10];C=Y[11],P=Y[12];var Dt=[Y[13],Y[13]],Gt=this.textStates[P],Nt=Gt.font,zt=[Gt.scale[0]*It,Gt.scale[1]*It],Ut=void 0;Nt in this.widths_?Ut=this.widths_[Nt]:(Ut={},this.widths_[Nt]=Ut);var Bt=Object(p["a"])(v,jt,Rt,2),Vt=Math.abs(zt[0])*Object(l["p"])(Nt,C,Ut);if(At||Vt<=Bt){var Xt=this.textStates[P].textAlign,Wt=(Bt-Vt)*i["a"][Xt],Ht=h(v,jt,Rt,2,C,Wt,Lt,Math.abs(zt[0]),l["p"],Nt,Ut,X?0:this.viewRotation_);t:if(Ht){var Yt=[],qt=void 0,Kt=void 0,Zt=void 0,Jt=void 0,$t=void 0;if(j)for(qt=0,Kt=Ht.length;qt<Kt;++qt){$t=Ht[qt],Zt=$t[4],Jt=this.createLabel(Zt,P,"",j),b=$t[2]+(zt[0]<0?-kt:kt),x=Mt*Jt.height+2*(.5-Mt)*kt*zt[1]/zt[0]-Ft;Et=this.calculateImageOrLabelDimensions_(Jt.width,Jt.height,$t[0],$t[1],Jt.width,Jt.height,b,x,0,0,$t[3],Dt,!1,l["j"],!1,M);if(y&&y.collides(Et.declutterBox))break t;Yt.push([t,e,Jt,Et,1,null,null])}if(R)for(qt=0,Kt=Ht.length;qt<Kt;++qt){$t=Ht[qt],Zt=$t[4],Jt=this.createLabel(Zt,P,R,""),b=$t[2],x=Mt*Jt.height-Ft;Et=this.calculateImageOrLabelDimensions_(Jt.width,Jt.height,$t[0],$t[1],Jt.width,Jt.height,b,x,0,0,$t[3],Dt,!1,l["j"],!1,M);if(y&&y.collides(Et.declutterBox))break t;Yt.push([t,e,Jt,Et,1,null,null])}y&&y.load(Yt.map(_));for(var Qt=0,te=Yt.length;Qt<te;++Qt)this.replayImageOrLabel_.apply(this,Yt[Qt])}}++F;break;case n["c"].END_GEOMETRY:if(void 0!==d){M=Y[1];var ee=d(M,I);if(ee)return ee}++F;break;case n["c"].FILL:H?G++:this.fill_(t),++F;break;case n["c"].MOVE_TO_LINE_TO:for(D=Y[1],m=Y[2],A=v[D],L=v[D+1],E=A+.5|0,S=L+.5|0,E===w&&S===O||(t.moveTo(A,L),w=E,O=S),D+=2;D<m;D+=2)A=v[D],L=v[D+1],E=A+.5|0,S=L+.5|0,D!=m-2&&E===w&&S===O||(t.lineTo(A,L),w=E,O=S);++F;break;case n["c"].SET_FILL_STYLE:z=Y,this.alignFill_=Y[2],G&&(this.fill_(t),G=0,N&&(t.stroke(),N=0)),t.fillStyle=Y[1],++F;break;case n["c"].SET_STROKE_STYLE:U=Y,N&&(t.stroke(),N=0),this.setStrokeStyle_(t,Y),++F;break;case n["c"].STROKE:H?N++:t.stroke(),++F;break;default:++F;break}}G&&this.fill_(t),N&&t.stroke()},t.prototype.execute=function(t,e,r,n,i,o){this.viewRotation_=n,this.execute_(t,e,r,this.instructions,i,void 0,void 0,o)},t.prototype.executeHitDetection=function(t,e,r,n,i){return this.viewRotation_=r,this.execute_(t,1,e,this.hitDetectionInstructions,!0,n,i)},t}(),E=O,S=r("0999"),T=r("38f3"),C=["Polygon","Circle","LineString","Image","Text","Default"],P=function(){function t(t,e,r,n,i,o){this.maxExtent_=t,this.overlaps_=n,this.pixelRatio_=r,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Object(a["c"])(),this.createExecutors_(i)}return t.prototype.clip=function(t,e){var r=this.getClipCoords(e);t.beginPath(),t.moveTo(r[0],r[1]),t.lineTo(r[2],r[3]),t.lineTo(r[4],r[5]),t.lineTo(r[6],r[7]),t.clip()},t.prototype.createExecutors_=function(t){for(var e in t){var r=this.executorsByZIndex_[e];void 0===r&&(r={},this.executorsByZIndex_[e]=r);var n=t[e];for(var i in n){var o=n[i];r[i]=new E(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},t.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var r=this.executorsByZIndex_[e],n=0,i=t.length;n<i;++n)if(t[n]in r)return!0;return!1},t.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i,o){n=Math.round(n);var l=2*n+1,u=Object(a["b"])(this.hitDetectionTransform_,n+.5,n+.5,1/e,-1/e,-r,-t[0],-t[1]),c=!this.hitDetectionContext_;c&&(this.hitDetectionContext_=Object(S["a"])(l,l));var h,p=this.hitDetectionContext_;p.canvas.width!==l||p.canvas.height!==l?(p.canvas.width=l,p.canvas.height=l):c||p.clearRect(0,0,l,l),void 0!==this.renderBuffer_&&(h=Object(s["createEmpty"])(),Object(s["extendCoordinate"])(h,t),Object(s["buffer"])(h,e*(this.renderBuffer_+n),h));var d,g=R(n);function y(t,e){for(var r=p.getImageData(0,0,l,l).data,a=0,s=g.length;a<s;a++)if(r[g[a]]>0){if(!o||"Image"!==d&&"Text"!==d||-1!==o.indexOf(t)){var u=(g[a]-3)/4,c=n-u%l,h=n-(u/l|0),f=i(t,e,c*c+h*h);if(f)return f}p.clearRect(0,0,l,l);break}}var v,m,_,b,x,w=Object.keys(this.executorsByZIndex_).map(Number);for(w.sort(f["i"]),v=w.length-1;v>=0;--v){var O=w[v].toString();for(_=this.executorsByZIndex_[O],m=C.length-1;m>=0;--m)if(d=C[m],b=_[d],void 0!==b&&(x=b.executeHitDetection(p,u,r,y,h),x))return x}},t.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var r=e[0],n=e[1],i=e[2],o=e[3],a=[r,n,r,o,i,o,i,n];return Object(c["c"])(a,0,8,2,t,a),a},t.prototype.isEmpty=function(){return Object(T["d"])(this.executorsByZIndex_)},t.prototype.execute=function(t,e,r,n,i,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(f["i"]),this.maxExtent_&&(t.save(),this.clip(t,r));var l,u,c,h,p,d,g=o||C;for(a&&s.reverse(),l=0,u=s.length;l<u;++l){var y=s[l].toString();for(p=this.executorsByZIndex_[y],c=0,h=g.length;c<h;++c){var v=g[c];d=p[v],void 0!==d&&d.execute(t,e,r,n,i,a)}}this.maxExtent_&&t.restore()},t}(),j={};function R(t){if(void 0!==j[t])return j[t];for(var e=2*t+1,r=t*t,n=new Array(r+1),i=0;i<=t;++i)for(var o=0;o<=t;++o){var a=i*i+o*o;if(a>r)break;var s=n[a];s||(s=[],n[a]=s),s.push(4*((t+i)*e+(t+o))+3),i>0&&s.push(4*((t-i)*e+(t+o))+3),o>0&&(s.push(4*((t+i)*e+(t-o))+3),i>0&&s.push(4*((t-i)*e+(t-o))+3))}for(var l=[],u=(i=0,n.length);i<u;++i)n[i]&&l.push.apply(l,n[i]);return j[t]=l,l}e["a"]=P},e98d:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r("5c38");function i(t){return Array.isArray(t)?Object(n["e"])(t):t}},e9df:function(t,e,r){"use strict";r("0602")},ebea:function(t,e,r){const n=r("f460"),i=r("658e"),o=r("ddec");function a(t,e,r){const a=r&&r.debug||!1,s=!(r&&!1===typeof r.nested),l=r&&r.startIndex||0;a&&console.log("[xml-utils] starting findTagByName with",e," and ",r);const u=n(t,`<${e}[ >/]`,l);if(a&&console.log("[xml-utils] start:",u),-1===u)return;const c=t.slice(u+e.length);let h=i(c,"^[^<]*[ /]>",0);const f=-1!==h&&"/"===c[h-1];if(a&&console.log("[xml-utils] selfClosing:",f),!1===f)if(s){let t=0,r=1,n=0;while(-1!==(h=i(c,"[ /]"+e+">",t))){const i=c.substring(t,h+1);if(r+=o(i,"<"+e),n+=o(i,"/"+e+">"),n>=r)break;t=h}}else h=i(c,"[ /]"+e+">",0);const p=u+e.length+h+1;if(a&&console.log("[xml-utils] end:",p),-1===p)return;const d=t.slice(u,p);let g;return g=f?null:d.slice(d.indexOf(">")+1,d.lastIndexOf("<")),{inner:g,outer:d,start:u,end:p}}t.exports=a,t.exports.default=a},ed6d:function(t,e,r){var n=r("4a4b");function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},ed9b:function(t,e,r){"use strict";var n=r("8778"),i=r("869f"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e,r,n,o,a){var s=this,l=void 0!==a?i["a"].IDLE:i["a"].LOADED;return s=t.call(this,e,r,n,l)||this,s.loader_=void 0!==a?a:null,s.canvas_=o,s.error_=null,s}return o(e,t),e.prototype.getError=function(){return this.error_},e.prototype.handleLoad_=function(t){t?(this.error_=t,this.state=i["a"].ERROR):this.state=i["a"].LOADED,this.changed()},e.prototype.load=function(){this.state==i["a"].IDLE&&(this.state=i["a"].LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))},e.prototype.getImage=function(){return this.canvas_},e}(n["a"]);e["a"]=a},efee:function(t,e,r){"use strict";const n=r("800c"),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),c=Symbol("noDisposeOnSet"),h=Symbol("lruList"),f=Symbol("cache"),p=Symbol("updateAgeOnGet"),d=()=>1;class g{constructor(t){if("number"===typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!==typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;const e=t.length||d;if(this[a]="function"!==typeof e?d:e,this[s]=t.stale||!1,t.maxAge&&"number"!==typeof t.maxAge)throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0,this[u]=t.dispose,this[c]=t.noDisposeOnSet||!1,this[p]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!==typeof t||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||1/0,m(this)}get max(){return this[i]}set allowStale(t){this[s]=!!t}get allowStale(){return this[s]}set maxAge(t){if("number"!==typeof t)throw new TypeError("maxAge must be a non-negative number");this[l]=t,m(this)}get maxAge(){return this[l]}set lengthCalculator(t){"function"!==typeof t&&(t=d),t!==this[a]&&(this[a]=t,this[o]=0,this[h].forEach(t=>{t.length=this[a](t.value,t.key),this[o]+=t.length})),m(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[h].length}rforEach(t,e){e=e||this;for(let r=this[h].tail;null!==r;){const n=r.prev;x(this,t,r,e),r=n}}forEach(t,e){e=e||this;for(let r=this[h].head;null!==r;){const n=r.next;x(this,t,r,e),r=n}}keys(){return this[h].toArray().map(t=>t.key)}values(){return this[h].toArray().map(t=>t.value)}reset(){this[u]&&this[h]&&this[h].length&&this[h].forEach(t=>this[u](t.key,t.value)),this[f]=new Map,this[h]=new n,this[o]=0}dump(){return this[h].map(t=>!v(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[h]}set(t,e,r){if(r=r||this[l],r&&"number"!==typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,s=this[a](e,t);if(this[f].has(t)){if(s>this[i])return _(this,this[f].get(t)),!1;const a=this[f].get(t),l=a.value;return this[u]&&(this[c]||this[u](t,l.value)),l.now=n,l.maxAge=r,l.value=e,this[o]+=s-l.length,l.length=s,this.get(t),m(this),!0}const p=new b(t,e,s,n,r);return p.length>this[i]?(this[u]&&this[u](t,e),!1):(this[o]+=p.length,this[h].unshift(p),this[f].set(t,this[h].head),m(this),!0)}has(t){if(!this[f].has(t))return!1;const e=this[f].get(t).value;return!v(this,e)}get(t){return y(this,t,!0)}peek(t){return y(this,t,!1)}pop(){const t=this[h].tail;return t?(_(this,t),t.value):null}del(t){_(this,this[f].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const n=t[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const t=i-e;t>0&&this.set(n.k,n.v,t)}}}prune(){this[f].forEach((t,e)=>y(this,e,!1))}}const y=(t,e,r)=>{const n=t[f].get(e);if(n){const e=n.value;if(v(t,e)){if(_(t,n),!t[s])return}else r&&(t[p]&&(n.value.now=Date.now()),t[h].unshiftNode(n));return e.value}},v=(t,e)=>{if(!e||!e.maxAge&&!t[l])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[l]&&r>t[l]},m=t=>{if(t[o]>t[i])for(let e=t[h].tail;t[o]>t[i]&&null!==e;){const r=e.prev;_(t,e),e=r}},_=(t,e)=>{if(e){const r=e.value;t[u]&&t[u](r.key,r.value),t[o]-=r.length,t[f].delete(r.key),t[h].removeNode(e)}};class b{constructor(t,e,r,n,i){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=i||0}}const x=(t,e,r,n)=>{let i=r.value;v(t,i)&&(_(t,r),t[s]||(i=void 0)),i&&e.call(n,i.value,i.key,t)};t.exports=g},f403:function(t,e,r){"use strict";r.r(e);var n=r("9abc"),i=r("0af5"),o=r("abb7"),a=r("7fc9"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(e,r){var n=t.call(this)||this;return n.setCoordinates(e,r),n}return s(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){var i=this.flatCoordinates,o=Object(a["j"])(t,e,i[0],i[1]);if(o<n){for(var s=this.stride,l=0;l<s;++l)r[l]=i[l];return r.length=s,o}return n},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return Object(i["createOrUpdateFromCoordinate"])(this.flatCoordinates,t)},e.prototype.getType=function(){return"Point"},e.prototype.intersectsExtent=function(t){return Object(i["containsXY"])(t,this.flatCoordinates[0],this.flatCoordinates[1])},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(o["a"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(n["a"]);e["default"]=l},f460:function(t,e){function r(t,e,r){const n=new RegExp(e),i=n.exec(t.slice(r));return i?r+i.index:-1}t.exports=r,t.exports.default=r},f5dd:function(t,e,r){"use strict";var n=r("fced"),i=function(){function t(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}return t.prototype.canWrapX=function(){return this.canWrapX_},t.prototype.getCode=function(){return this.code_},t.prototype.getExtent=function(){return this.extent_},t.prototype.getUnits=function(){return this.units_},t.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||n["a"][this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}();e["a"]=i},f78c:function(t,e,r){"use strict";var n=function(){function t(){}return t.prototype.drawCustom=function(t,e,r,n){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}();e["a"]=n},f8b5:function(t,e,r){"use strict";e["a"]={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"}},fa2b:function(t,e,r){"use strict";r.r(e),r.d(e,"Graticule",(function(){return A})),r.d(e,"Group",(function(){return L["b"]})),r.d(e,"Heatmap",(function(){return Wt})),r.d(e,"Image",(function(){return Ht["default"]})),r.d(e,"Layer",(function(){return Yt["a"]})),r.d(e,"MapboxVector",(function(){return Ga})),r.d(e,"Tile",(function(){return We["default"]})),r.d(e,"Vector",(function(){return p["default"]})),r.d(e,"VectorImage",(function(){return Za})),r.d(e,"VectorTile",(function(){return De})),r.d(e,"WebGLPoints",(function(){return el})),r.d(e,"WebGLTile",(function(){return al}));var n=r("e300"),i=r("070d"),o=r("4cdf"),a=r("83a6"),s=r("521b"),l=r("7a09"),u=r("f403"),c=r("8682"),h=r("6c77"),f=r("8295"),p=r("3e6b"),d=r("5831"),g=r("0af5"),y=r("38f3"),v=r("7fc9"),m=r("a568"),_=r("256f"),b=r("c946"),x=r("617d"),w=r("a896"),O=r("30d1");function E(t){if(!(t.context instanceof CanvasRenderingContext2D))throw new Error("Only works for render events from Canvas 2D layers");var e,r=t.inversePixelTransform[0],n=t.frameState,i=Object(w["f"])(t.inversePixelTransform.slice(),n.coordinateToPixelTransform),o=Object(O["b"])(n.viewState.resolution,r),a=Object(_["getUserProjection"])();return a&&(e=Object(_["getTransformFromProjections"])(a,n.viewState.projection)),new b["a"](t.context,r,n.extent,i,n.viewState.rotation,o,e)}function S(t,e,r){var n,i,o,a,s,l,u=[],c=t(0),h=t(1),f=e(c),p=e(h),d=[h,c],g=[p,f],y=[1,0],m={},_=1e5;while(--_>0&&y.length>0)o=y.pop(),c=d.pop(),f=g.pop(),l=o.toString(),l in m||(u.push(f[0],f[1]),m[l]=!0),a=y.pop(),h=d.pop(),p=g.pop(),s=(o+a)/2,n=t(s),i=e(n),Object(v["k"])(i[0],i[1],f[0],f[1],p[0],p[1])<r?(u.push(p[0],p[1]),l=a.toString(),m[l]=!0):(y.push(a,s,s,o),g.push(p,i,i,f),d.push(h,n,n,c));return u}function T(t,e,r,n,i){var o=Object(_["get"])("EPSG:4326");return S((function(n){return[t,e+(r-e)*n]}),Object(_["getTransform"])(o,n),i)}function C(t,e,r,n,i){var o=Object(_["get"])("EPSG:4326");return S((function(n){return[e+(r-e)*n,t]}),Object(_["getTransform"])(o,n),i)}var P=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),j=new c["default"]({color:"rgba(0,0,0,0.2)"}),R=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001],M=function(t){function e(e){var r=this,o=e||{},s=Object(y["a"])({updateWhileAnimating:!0,updateWhileInteracting:!0,renderBuffer:0},o);return delete s.maxLines,delete s.strokeStyle,delete s.targetSize,delete s.showLabels,delete s.lonLabelFormatter,delete s.latLabelFormatter,delete s.lonLabelPosition,delete s.latLabelPosition,delete s.lonLabelStyle,delete s.latLabelStyle,delete s.intervals,r=t.call(this,s)||this,r.projection_=null,r.maxLat_=1/0,r.maxLon_=1/0,r.minLat_=-1/0,r.minLon_=-1/0,r.maxX_=1/0,r.maxY_=1/0,r.minX_=-1/0,r.minY_=-1/0,r.targetSize_=void 0!==o.targetSize?o.targetSize:100,r.maxLines_=void 0!==o.maxLines?o.maxLines:100,r.meridians_=[],r.parallels_=[],r.strokeStyle_=void 0!==o.strokeStyle?o.strokeStyle:j,r.fromLonLatTransform_=void 0,r.toLonLatTransform_=void 0,r.projectionCenterLonLat_=null,r.bottomLeft_=null,r.bottomRight_=null,r.topLeft_=null,r.topRight_=null,r.meridiansLabels_=null,r.parallelsLabels_=null,o.showLabels&&(r.lonLabelFormatter_=void 0==o.lonLabelFormatter?m["d"].bind(r,"EW"):o.lonLabelFormatter,r.latLabelFormatter_=void 0==o.latLabelFormatter?m["d"].bind(r,"NS"):o.latLabelFormatter,r.lonLabelPosition_=void 0==o.lonLabelPosition?0:o.lonLabelPosition,r.latLabelPosition_=void 0==o.latLabelPosition?1:o.latLabelPosition,r.lonLabelStyleBase_=new h["default"]({text:void 0!==o.lonLabelStyle?o.lonLabelStyle.clone():new f["a"]({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new a["default"]({color:"rgba(0,0,0,1)"}),stroke:new c["default"]({color:"rgba(255,255,255,1)",width:3})})}),r.lonLabelStyle_=function(t){var e=t.get("graticule_label");return this.lonLabelStyleBase_.getText().setText(e),this.lonLabelStyleBase_}.bind(r),r.latLabelStyleBase_=new h["default"]({text:void 0!==o.latLabelStyle?o.latLabelStyle.clone():new f["a"]({font:"12px Calibri,sans-serif",textAlign:"right",fill:new a["default"]({color:"rgba(0,0,0,1)"}),stroke:new c["default"]({color:"rgba(255,255,255,1)",width:3})})}),r.latLabelStyle_=function(t){var e=t.get("graticule_label");return this.latLabelStyleBase_.getText().setText(e),this.latLabelStyleBase_}.bind(r),r.meridiansLabels_=[],r.parallelsLabels_=[],r.addEventListener(i["a"].POSTRENDER,r.drawLabels_.bind(r))),r.intervals_=void 0!==o.intervals?o.intervals:R,r.setSource(new d["default"]({loader:r.loaderFunction.bind(r),strategy:r.strategyFunction.bind(r),features:new n["a"],overlaps:!1,useSpatialIndex:!1,wrapX:o.wrapX})),r.featurePool_=[],r.lineStyle_=new h["default"]({stroke:r.strokeStyle_}),r.loadedExtent_=null,r.renderedExtent_=null,r.renderedResolution_=null,r.setRenderOrder(null),r}return P(e,t),e.prototype.strategyFunction=function(t,e){var r=t.slice();return this.projection_&&this.getSource().getWrapX()&&Object(g["wrapX"])(r,this.projection_),this.loadedExtent_&&(Object(g["approximatelyEquals"])(this.loadedExtent_,r,e)?r=this.loadedExtent_.slice():this.getSource().removeLoadedExtent(this.loadedExtent_)),[r]},e.prototype.loaderFunction=function(t,e,r){this.loadedExtent_=t;var n=this.getSource(),i=this.getExtent()||[-1/0,-1/0,1/0,1/0],a=Object(g["getIntersection"])(i,t);if((!this.renderedExtent_||!Object(g["equals"])(this.renderedExtent_,a)||this.renderedResolution_!==e)&&(this.renderedExtent_=a,this.renderedResolution_=e,!Object(g["isEmpty"])(a))){var s=Object(g["getCenter"])(a),l=e*e/4,u=!this.projection_||!Object(_["equivalent"])(this.projection_,r);u&&this.updateProjectionInfo_(r),this.createGraticule_(a,s,e,l);var c,h=this.meridians_.length+this.parallels_.length;this.meridiansLabels_&&(h+=this.meridians_.length),this.parallelsLabels_&&(h+=this.parallels_.length);while(h>this.featurePool_.length)c=new o["default"],this.featurePool_.push(c);var f=n.getFeaturesCollection();f.clear();var p,d,y=0;for(p=0,d=this.meridians_.length;p<d;++p)c=this.featurePool_[y++],c.setGeometry(this.meridians_[p]),c.setStyle(this.lineStyle_),f.push(c);for(p=0,d=this.parallels_.length;p<d;++p)c=this.featurePool_[y++],c.setGeometry(this.parallels_[p]),c.setStyle(this.lineStyle_),f.push(c)}},e.prototype.addMeridian_=function(t,e,r,n,i,o){var a=this.getMeridian_(t,e,r,n,o);if(Object(g["intersects"])(a.getExtent(),i)){if(this.meridiansLabels_){var s=this.lonLabelFormatter_(t);o in this.meridiansLabels_?this.meridiansLabels_[o].text=s:this.meridiansLabels_[o]={geom:new u["default"]([]),text:s}}this.meridians_[o++]=a}return o},e.prototype.addParallel_=function(t,e,r,n,i,o){var a=this.getParallel_(t,e,r,n,o);if(Object(g["intersects"])(a.getExtent(),i)){if(this.parallelsLabels_){var s=this.latLabelFormatter_(t);o in this.parallelsLabels_?this.parallelsLabels_[o].text=s:this.parallelsLabels_[o]={geom:new u["default"]([]),text:s}}this.parallels_[o++]=a}return o},e.prototype.drawLabels_=function(t){var e=t.frameState.viewState.rotation,r=t.frameState.viewState.resolution,n=t.frameState.size,i=t.frameState.extent,o=Object(g["getCenter"])(i),a=i;if(e){var s=n[0]*r,l=n[1]*r;a=[o[0]-s/2,o[1]-l/2,o[0]+s/2,o[1]+l/2]}var u=0,c=0,h=this.latLabelPosition_<.5,f=this.projection_.getExtent(),p=Object(g["getWidth"])(f);if(this.getSource().getWrapX()&&this.projection_.canWrapX()&&!Object(g["containsExtent"])(f,i)){u=Math.floor((i[0]-f[0])/p),c=Math.ceil((i[2]-f[2])/p);var d=Math.abs(e)>Math.PI/2;h=h!==d}for(var y=E(t),v=u;v<=c;++v){var m=this.meridians_.length+this.parallels_.length,_=void 0,b=void 0,x=void 0,w=void 0;if(this.meridiansLabels_)for(b=0,x=this.meridiansLabels_.length;b<x;++b){var O=this.meridians_[b];if(e||0!==v){var S=O.clone();S.translate(v*p,0),S.rotate(-e,o),w=this.getMeridianPoint_(S,a,b),w.rotate(e,o)}else w=this.getMeridianPoint_(O,i,b);_=this.featurePool_[m++],_.setGeometry(w),_.set("graticule_label",this.meridiansLabels_[b].text),y.drawFeature(_,this.lonLabelStyle_(_))}if(this.parallelsLabels_&&(v===u&&h||v===c&&!h))for(b=0,x=this.parallels_.length;b<x;++b){O=this.parallels_[b];if(e||0!==v){S=O.clone();S.translate(v*p,0),S.rotate(-e,o),w=this.getParallelPoint_(S,a,b),w.rotate(e,o)}else w=this.getParallelPoint_(O,i,b);_=this.featurePool_[m++],_.setGeometry(w),_.set("graticule_label",this.parallelsLabels_[b].text),y.drawFeature(_,this.latLabelStyle_(_))}}},e.prototype.createGraticule_=function(t,e,r,n){var i=this.getInterval_(r);if(-1==i)return this.meridians_.length=0,this.parallels_.length=0,this.meridiansLabels_&&(this.meridiansLabels_.length=0),void(this.parallelsLabels_&&(this.parallelsLabels_.length=0));var o=!1,a=this.projection_.getExtent(),s=Object(g["getWidth"])(a);this.getSource().getWrapX()&&this.projection_.canWrapX()&&!Object(g["containsExtent"])(a,t)&&(Object(g["getWidth"])(t)>=s?(t[0]=a[0],t[2]=a[2]):o=!0);var l=[Object(v["b"])(e[0],this.minX_,this.maxX_),Object(v["b"])(e[1],this.minY_,this.maxY_)],u=this.toLonLatTransform_(l);isNaN(u[1])&&(u[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);var c,h,f,p,d=Object(v["b"])(u[0],this.minLon_,this.maxLon_),y=Object(v["b"])(u[1],this.minLat_,this.maxLat_),m=this.maxLines_,_=t;o||(_=[Object(v["b"])(t[0],this.minX_,this.maxX_),Object(v["b"])(t[1],this.minY_,this.maxY_),Object(v["b"])(t[2],this.minX_,this.maxX_),Object(v["b"])(t[3],this.minY_,this.maxY_)]);var b=Object(g["applyTransform"])(_,this.toLonLatTransform_,void 0,8),x=b[3],w=b[2],O=b[1],E=b[0];if(o||(Object(g["containsCoordinate"])(_,this.bottomLeft_)&&(E=this.minLon_,O=this.minLat_),Object(g["containsCoordinate"])(_,this.bottomRight_)&&(w=this.maxLon_,O=this.minLat_),Object(g["containsCoordinate"])(_,this.topLeft_)&&(E=this.minLon_,x=this.maxLat_),Object(g["containsCoordinate"])(_,this.topRight_)&&(w=this.maxLon_,x=this.maxLat_),x=Object(v["b"])(x,y,this.maxLat_),w=Object(v["b"])(w,d,this.maxLon_),O=Object(v["b"])(O,this.minLat_,y),E=Object(v["b"])(E,this.minLon_,d)),d=Math.floor(d/i)*i,p=Object(v["b"])(d,this.minLon_,this.maxLon_),h=this.addMeridian_(p,O,x,n,t,0),c=0,o)while((p-=i)>=E&&c++<m)h=this.addMeridian_(p,O,x,n,t,h);else while(p!=this.minLon_&&c++<m)p=Math.max(p-i,this.minLon_),h=this.addMeridian_(p,O,x,n,t,h);if(p=Object(v["b"])(d,this.minLon_,this.maxLon_),c=0,o)while((p+=i)<=w&&c++<m)h=this.addMeridian_(p,O,x,n,t,h);else while(p!=this.maxLon_&&c++<m)p=Math.min(p+i,this.maxLon_),h=this.addMeridian_(p,O,x,n,t,h);this.meridians_.length=h,this.meridiansLabels_&&(this.meridiansLabels_.length=h),y=Math.floor(y/i)*i,f=Object(v["b"])(y,this.minLat_,this.maxLat_),h=this.addParallel_(f,E,w,n,t,0),c=0;while(f!=this.minLat_&&c++<m)f=Math.max(f-i,this.minLat_),h=this.addParallel_(f,E,w,n,t,h);f=Object(v["b"])(y,this.minLat_,this.maxLat_),c=0;while(f!=this.maxLat_&&c++<m)f=Math.min(f+i,this.maxLat_),h=this.addParallel_(f,E,w,n,t,h);this.parallels_.length=h,this.parallelsLabels_&&(this.parallelsLabels_.length=h)},e.prototype.getInterval_=function(t){for(var e=this.projectionCenterLonLat_[0],r=this.projectionCenterLonLat_[1],n=-1,i=Math.pow(this.targetSize_*t,2),o=[],a=[],s=0,l=this.intervals_.length;s<l;++s){var u=Object(v["b"])(this.intervals_[s]/2,0,90),c=Object(v["b"])(r,-90+u,90-u);o[0]=e-u,o[1]=c-u,a[0]=e+u,a[1]=c+u,this.fromLonLatTransform_(o,o),this.fromLonLatTransform_(a,a);var h=Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2);if(h<=i)break;n=this.intervals_[s]}return n},e.prototype.getMeridian_=function(t,e,r,n,i){var o=T(t,e,r,this.projection_,n),a=this.meridians_[i];return a?(a.setFlatCoordinates(s["a"].XY,o),a.changed()):(a=new l["default"](o,s["a"].XY),this.meridians_[i]=a),a},e.prototype.getMeridianPoint_=function(t,e,r){var n=t.getFlatCoordinates(),i=1,o=n.length-1;n[i]>n[o]&&(i=o,o=1);var a=Math.max(e[1],n[i]),s=Math.min(e[3],n[o]),l=Object(v["b"])(e[1]+Math.abs(e[1]-e[3])*this.lonLabelPosition_,a,s),u=n[i-1]+(n[o-1]-n[i-1])*(l-n[i])/(n[o]-n[i]),c=[u,l],h=this.meridiansLabels_[r].geom;return h.setCoordinates(c),h},e.prototype.getMeridians=function(){return this.meridians_},e.prototype.getParallel_=function(t,e,r,n,i){var o=C(t,e,r,this.projection_,n),a=this.parallels_[i];return a?(a.setFlatCoordinates(s["a"].XY,o),a.changed()):a=new l["default"](o,s["a"].XY),a},e.prototype.getParallelPoint_=function(t,e,r){var n=t.getFlatCoordinates(),i=0,o=n.length-2;n[i]>n[o]&&(i=o,o=0);var a=Math.max(e[0],n[i]),s=Math.min(e[2],n[o]),l=Object(v["b"])(e[0]+Math.abs(e[0]-e[2])*this.latLabelPosition_,a,s),u=n[i+1]+(n[o+1]-n[i+1])*(l-n[i])/(n[o]-n[i]),c=[l,u],h=this.parallelsLabels_[r].geom;return h.setCoordinates(c),h},e.prototype.getParallels=function(){return this.parallels_},e.prototype.updateProjectionInfo_=function(t){var e=Object(_["get"])("EPSG:4326"),r=t.getWorldExtent();this.maxLat_=r[3],this.maxLon_=r[2],this.minLat_=r[1],this.minLon_=r[0];var n=Object(_["getTransform"])(t,e);if(this.minLon_<this.maxLon_)this.toLonLatTransform_=n;else{var i=this.minLon_+this.maxLon_/2;this.maxLon_+=360,this.toLonLatTransform_=function(t,e,r){for(var o=r||2,a=n(t,e,o),s=0,l=a.length;s<l;s+=o)a[s]<i&&(a[s]+=360);return a}}this.fromLonLatTransform_=Object(_["getTransform"])(e,t);var o=Object(g["applyTransform"])([this.minLon_,this.minLat_,this.maxLon_,this.maxLat_],this.fromLonLatTransform_,void 0,8);this.minX_=o[0],this.maxX_=o[2],this.minY_=o[1],this.maxY_=o[3],this.bottomLeft_=this.fromLonLatTransform_([this.minLon_,this.minLat_]),this.bottomRight_=this.fromLonLatTransform_([this.maxLon_,this.minLat_]),this.topLeft_=this.fromLonLatTransform_([this.minLon_,this.maxLat_]),this.topRight_=this.fromLonLatTransform_([this.maxLon_,this.maxLat_]),this.projectionCenterLonLat_=this.toLonLatTransform_(Object(g["getCenter"])(t.getExtent())),isNaN(this.projectionCenterLonLat_[1])&&(this.projectionCenterLonLat_[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=t},e}(p["default"]),A=M,L=r("9c78"),I=r("ae50"),F=r("a43f"),k=r("496f"),D=34962,G=34963,N=35040,z=35044,U=35048,B=5121,V=5123,X=5125,W=5126,H=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Y(t,e){for(var r=Object(y["a"])({preserveDrawingBuffer:!0,antialias:!x["f"]},e),n=H.length,i=0;i<n;++i)try{var o=t.getContext(H[i],r);if(o)return o}catch(a){}return null}var q=r("92fa"),K={STATIC_DRAW:z,STREAM_DRAW:N,DYNAMIC_DRAW:U},Z=function(){function t(t,e){this.array=null,this.type=t,Object(q["a"])(t===D||t===G,62),this.usage=void 0!==e?e:K.STATIC_DRAW}return t.prototype.ofSize=function(t){this.array=new(J(this.type))(t)},t.prototype.fromArray=function(t){var e=J(this.type);this.array=e.from?e.from(t):new e(t)},t.prototype.fromArrayBuffer=function(t){this.array=new(J(this.type))(t)},t.prototype.getType=function(){return this.type},t.prototype.getArray=function(){return this.array},t.prototype.getUsage=function(){return this.usage},t.prototype.getSize=function(){return this.array?this.array.length:0},t}();function J(t){switch(t){case D:return Float32Array;case G:return Uint32Array;default:return Float32Array}}var $=Z,Q=r("df4c"),tt=r("faf4"),et=r("3333"),rt={LOST:"webglcontextlost",RESTORED:"webglcontextrestored"},nt=r("da5c"),it=r("1300"),ot="\n precision mediump float;\n \n attribute vec2 a_position;\n varying vec2 v_texCoord;\n varying vec2 v_screenCoord;\n \n uniform vec2 u_screenSize;\n \n void main() {\n v_texCoord = a_position * 0.5 + 0.5;\n v_screenCoord = v_texCoord * u_screenSize;\n gl_Position = vec4(a_position, 0.0, 1.0);\n }\n",at="\n precision mediump float;\n \n uniform sampler2D u_image;\n uniform float u_opacity;\n \n varying vec2 v_texCoord;\n \n void main() {\n gl_FragColor = texture2D(u_image, v_texCoord) * u_opacity;\n }\n",st=function(){function t(t){this.gl_=t.webGlContext;var e=this.gl_;this.scaleRatio_=t.scaleRatio||1,this.renderTargetTexture_=e.createTexture(),this.renderTargetTextureSize_=null,this.frameBuffer_=e.createFramebuffer();var r=e.createShader(e.VERTEX_SHADER);e.shaderSource(r,t.vertexShader||ot),e.compileShader(r);var n=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(n,t.fragmentShader||at),e.compileShader(n),this.renderTargetProgram_=e.createProgram(),e.attachShader(this.renderTargetProgram_,r),e.attachShader(this.renderTargetProgram_,n),e.linkProgram(this.renderTargetProgram_),this.renderTargetVerticesBuffer_=e.createBuffer();var i=[-1,-1,1,-1,-1,1,1,-1,1,1,-1,1];e.bindBuffer(e.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),e.bufferData(e.ARRAY_BUFFER,new Float32Array(i),e.STATIC_DRAW),this.renderTargetAttribLocation_=e.getAttribLocation(this.renderTargetProgram_,"a_position"),this.renderTargetUniformLocation_=e.getUniformLocation(this.renderTargetProgram_,"u_screenSize"),this.renderTargetOpacityLocation_=e.getUniformLocation(this.renderTargetProgram_,"u_opacity"),this.renderTargetTextureLocation_=e.getUniformLocation(this.renderTargetProgram_,"u_image"),this.uniforms_=[],t.uniforms&&Object.keys(t.uniforms).forEach(function(r){this.uniforms_.push({value:t.uniforms[r],location:e.getUniformLocation(this.renderTargetProgram_,r)})}.bind(this))}return t.prototype.getGL=function(){return this.gl_},t.prototype.init=function(t){var e=this.getGL(),r=[e.drawingBufferWidth*this.scaleRatio_,e.drawingBufferHeight*this.scaleRatio_];if(e.bindFramebuffer(e.FRAMEBUFFER,this.getFrameBuffer()),e.viewport(0,0,r[0],r[1]),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==r[0]||this.renderTargetTextureSize_[1]!==r[1]){this.renderTargetTextureSize_=r;var n=0,i=e.RGBA,o=0,a=e.RGBA,s=e.UNSIGNED_BYTE,l=null;e.bindTexture(e.TEXTURE_2D,this.renderTargetTexture_),e.texImage2D(e.TEXTURE_2D,n,i,r[0],r[1],o,a,s,l),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.renderTargetTexture_,0)}},t.prototype.apply=function(t,e,r,n){var i=this.getGL(),o=t.size;if(i.bindFramebuffer(i.FRAMEBUFFER,e?e.getFrameBuffer():null),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,this.renderTargetTexture_),!e){var a=Object(it["c"])(i.canvas);if(!t.renderTargets[a]){var s=i.getContextAttributes();s&&s.preserveDrawingBuffer&&(i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT)),t.renderTargets[a]=!0}}i.enable(i.BLEND),i.blendFunc(i.ONE,i.ONE_MINUS_SRC_ALPHA),i.viewport(0,0,i.drawingBufferWidth,i.drawingBufferHeight),i.bindBuffer(i.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),i.useProgram(this.renderTargetProgram_),i.enableVertexAttribArray(this.renderTargetAttribLocation_),i.vertexAttribPointer(this.renderTargetAttribLocation_,2,i.FLOAT,!1,0,0),i.uniform2f(this.renderTargetUniformLocation_,o[0],o[1]),i.uniform1i(this.renderTargetTextureLocation_,0);var l=t.layerStatesArray[t.layerIndex].opacity;i.uniform1f(this.renderTargetOpacityLocation_,l),this.applyUniforms(t),r&&r(i,t),i.drawArrays(i.TRIANGLES,0,6),n&&n(i,t)},t.prototype.getFrameBuffer=function(){return this.frameBuffer_},t.prototype.applyUniforms=function(t){var e,r=this.getGL(),n=1;this.uniforms_.forEach((function(i){if(e="function"===typeof i.value?i.value(t):i.value,e instanceof HTMLCanvasElement||e instanceof ImageData)i.texture||(i.texture=r.createTexture()),r.activeTexture(r["TEXTURE".concat(n)]),r.bindTexture(r.TEXTURE_2D,i.texture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),e instanceof ImageData?r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,e.width,e.height,0,r.UNSIGNED_BYTE,new Uint8Array(e.data)):r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,e),r.uniform1i(i.location,n++);else if(Array.isArray(e))switch(e.length){case 2:return void r.uniform2f(i.location,e[0],e[1]);case 3:return void r.uniform3f(i.location,e[0],e[1],e[2]);case 4:return void r.uniform4f(i.location,e[0],e[1],e[2],e[3]);default:return}else"number"===typeof e&&r.uniform1f(i.location,e)}))},t}(),lt=st;function ut(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function ct(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}var ht=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ft={PROJECTION_MATRIX:"u_projectionMatrix",OFFSET_SCALE_MATRIX:"u_offsetScaleMatrix",OFFSET_ROTATION_MATRIX:"u_offsetRotateMatrix",TIME:"u_time",ZOOM:"u_zoom",RESOLUTION:"u_resolution"},pt={UNSIGNED_BYTE:B,UNSIGNED_SHORT:V,UNSIGNED_INT:X,FLOAT:W},dt={};function gt(t){return"shared/"+t}var yt=0;function vt(){var t="unique/"+yt;return yt+=1,t}function mt(t){var e=dt[t];if(!e){var r=document.createElement("canvas");r.style.position="absolute",r.style.left="0",e={users:0,canvas:r},dt[t]=e}return e.users+=1,e.canvas}function _t(t){var e=dt[t];if(e&&(e.users-=1,!(e.users>0))){var r=e.canvas,n=Y(r),i=n.getExtension("WEBGL_lose_context");i&&i.loseContext(),delete dt[t]}}var bt=function(t){function e(e){var r=t.call(this)||this,n=e||{};r.boundHandleWebGLContextLost_=r.handleWebGLContextLost.bind(r),r.boundHandleWebGLContextRestored_=r.handleWebGLContextRestored.bind(r),r.canvasCacheKey_=n.canvasCacheKey?gt(n.canvasCacheKey):vt(),r.canvas_=mt(r.canvasCacheKey_),r.gl_=Y(r.canvas_),r.bufferCache_={},r.extensionCache_={},r.currentProgram_=null,r.canvas_.addEventListener(rt.LOST,r.boundHandleWebGLContextLost_),r.canvas_.addEventListener(rt.RESTORED,r.boundHandleWebGLContextRestored_),r.offsetRotateMatrix_=Object(w["c"])(),r.offsetScaleMatrix_=Object(w["c"])(),r.tmpMat4_=ut(),r.uniformLocations_={},r.attribLocations_={},r.uniforms_=[],n.uniforms&&r.setUniforms(n.uniforms);var i=r.getGL();return r.postProcessPasses_=n.postProcesses?n.postProcesses.map((function(t){return new lt({webGlContext:i,scaleRatio:t.scaleRatio,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms})})):[new lt({webGlContext:i})],r.shaderCompileErrors_=null,r.startTime_=Date.now(),r}return ht(e,t),e.prototype.setUniforms=function(t){for(var e in this.uniforms_=[],t)this.uniforms_.push({name:e,value:t[e]});this.uniformLocations_={}},e.prototype.canvasCacheKeyMatches=function(t){return this.canvasCacheKey_===gt(t)},e.prototype.getExtension=function(t){if(t in this.extensionCache_)return this.extensionCache_[t];var e=this.gl_.getExtension(t);return this.extensionCache_[t]=e,e},e.prototype.bindBuffer=function(t){var e=this.getGL(),r=Object(it["c"])(t),n=this.bufferCache_[r];if(!n){var i=e.createBuffer();n={buffer:t,webGlBuffer:i},this.bufferCache_[r]=n}e.bindBuffer(t.getType(),n.webGlBuffer)},e.prototype.flushBufferData=function(t){var e=this.getGL();this.bindBuffer(t),e.bufferData(t.getType(),t.getArray(),t.getUsage())},e.prototype.deleteBuffer=function(t){var e=this.getGL(),r=Object(it["c"])(t),n=this.bufferCache_[r];n&&!e.isContextLost()&&e.deleteBuffer(n.webGlBuffer),delete this.bufferCache_[r]},e.prototype.disposeInternal=function(){this.canvas_.removeEventListener(rt.LOST,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(rt.RESTORED,this.boundHandleWebGLContextRestored_),_t(this.canvasCacheKey_),delete this.gl_,delete this.canvas_},e.prototype.prepareDraw=function(t,e){var r=this.getGL(),n=this.getCanvas(),i=t.size,o=t.pixelRatio;n.width=i[0]*o,n.height=i[1]*o,n.style.width=i[0]+"px",n.style.height=i[1]+"px",r.useProgram(this.currentProgram_);for(var a=this.postProcessPasses_.length-1;a>=0;a--)this.postProcessPasses_[a].init(t);r.bindTexture(r.TEXTURE_2D,null),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),r.enable(r.BLEND),r.blendFunc(r.ONE,e?r.ZERO:r.ONE_MINUS_SRC_ALPHA),r.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.prepareDrawToRenderTarget=function(t,e,r){var n=this.getGL(),i=e.getSize();n.bindFramebuffer(n.FRAMEBUFFER,e.getFramebuffer()),n.viewport(0,0,i[0],i[1]),n.bindTexture(n.TEXTURE_2D,e.getTexture()),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.enable(n.BLEND),n.blendFunc(n.ONE,r?n.ZERO:n.ONE_MINUS_SRC_ALPHA),n.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.drawElements=function(t,e){var r=this.getGL();this.getExtension("OES_element_index_uint");var n=r.UNSIGNED_INT,i=4,o=e-t,a=t*i;r.drawElements(r.TRIANGLES,o,n,a)},e.prototype.finalizeDraw=function(t,e,r){for(var n=0,i=this.postProcessPasses_.length;n<i;n++)n===i-1?this.postProcessPasses_[n].apply(t,null,e,r):this.postProcessPasses_[n].apply(t,this.postProcessPasses_[n+1])},e.prototype.getCanvas=function(){return this.canvas_},e.prototype.getGL=function(){return this.gl_},e.prototype.applyFrameState=function(t){var e=t.size,r=t.viewState.rotation,n=Object(w["g"])(this.offsetScaleMatrix_);Object(w["i"])(n,2/e[0],2/e[1]);var i=Object(w["g"])(this.offsetRotateMatrix_);0!==r&&Object(w["h"])(i,-r),this.setUniformMatrixValue(ft.OFFSET_SCALE_MATRIX,ct(this.tmpMat4_,n)),this.setUniformMatrixValue(ft.OFFSET_ROTATION_MATRIX,ct(this.tmpMat4_,i)),this.setUniformFloatValue(ft.TIME,.001*(Date.now()-this.startTime_)),this.setUniformFloatValue(ft.ZOOM,t.viewState.zoom),this.setUniformFloatValue(ft.RESOLUTION,t.viewState.resolution)},e.prototype.applyUniforms=function(t){var e,r=this.getGL(),n=0;this.uniforms_.forEach(function(i){if(e="function"===typeof i.value?i.value(t):i.value,e instanceof HTMLCanvasElement||e instanceof HTMLImageElement||e instanceof ImageData){i.texture||(i.prevValue=void 0,i.texture=r.createTexture()),r.activeTexture(r["TEXTURE".concat(n)]),r.bindTexture(r.TEXTURE_2D,i.texture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE);var o=!(e instanceof HTMLImageElement)||e.complete;o&&i.prevValue!==e&&(i.prevValue=e,r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,e)),r.uniform1i(this.getUniformLocation(i.name),n++)}else if(Array.isArray(e)&&6===e.length)this.setUniformMatrixValue(i.name,ct(this.tmpMat4_,e));else if(Array.isArray(e)&&e.length<=4)switch(e.length){case 2:return void r.uniform2f(this.getUniformLocation(i.name),e[0],e[1]);case 3:return void r.uniform3f(this.getUniformLocation(i.name),e[0],e[1],e[2]);case 4:return void r.uniform4f(this.getUniformLocation(i.name),e[0],e[1],e[2],e[3]);default:return}else"number"===typeof e&&r.uniform1f(this.getUniformLocation(i.name),e)}.bind(this))},e.prototype.useProgram=function(t){if(t==this.currentProgram_)return!1;var e=this.getGL();return e.useProgram(t),this.currentProgram_=t,this.uniformLocations_={},this.attribLocations_={},!0},e.prototype.compileShader=function(t,e){var r=this.getGL(),n=r.createShader(e);return r.shaderSource(n,t),r.compileShader(n),n},e.prototype.getProgram=function(t,e){var r=this.getGL(),n=this.compileShader(t,r.FRAGMENT_SHADER),i=this.compileShader(e,r.VERTEX_SHADER),o=r.createProgram();if(r.attachShader(o,n),r.attachShader(o,i),r.linkProgram(o),!r.getShaderParameter(n,r.COMPILE_STATUS)){var a="Fragment shader compliation failed: ".concat(r.getShaderInfoLog(n));throw new Error(a)}if(r.deleteShader(n),!r.getShaderParameter(i,r.COMPILE_STATUS)){a="Vertex shader compilation failed: ".concat(r.getShaderInfoLog(i));throw new Error(a)}if(r.deleteShader(i),!r.getProgramParameter(o,r.LINK_STATUS)){a="GL program linking failed: ".concat(r.getShaderInfoLog(i));throw new Error(a)}return o},e.prototype.getUniformLocation=function(t){return void 0===this.uniformLocations_[t]&&(this.uniformLocations_[t]=this.getGL().getUniformLocation(this.currentProgram_,t)),this.uniformLocations_[t]},e.prototype.getAttributeLocation=function(t){return void 0===this.attribLocations_[t]&&(this.attribLocations_[t]=this.getGL().getAttribLocation(this.currentProgram_,t)),this.attribLocations_[t]},e.prototype.makeProjectionTransform=function(t,e){var r=t.size,n=t.viewState.rotation,i=t.viewState.resolution,o=t.viewState.center;return Object(w["g"])(e),Object(w["b"])(e,0,0,2/(i*r[0]),2/(i*r[1]),-n,-o[0],-o[1]),e},e.prototype.setUniformFloatValue=function(t,e){this.getGL().uniform1f(this.getUniformLocation(t),e)},e.prototype.setUniformFloatVec4=function(t,e){this.getGL().uniform4fv(this.getUniformLocation(t),e)},e.prototype.setUniformMatrixValue=function(t,e){this.getGL().uniformMatrix4fv(this.getUniformLocation(t),!1,e)},e.prototype.enableAttributeArray_=function(t,e,r,n,i){var o=this.getAttributeLocation(t);o<0||(this.getGL().enableVertexAttribArray(o),this.getGL().vertexAttribPointer(o,e,r,!1,n,i))},e.prototype.enableAttributes=function(t){for(var e=xt(t),r=0,n=0;n<t.length;n++){var i=t[n];this.enableAttributeArray_(i.name,i.size,i.type||W,e,r),r+=i.size*wt(i.type)}},e.prototype.handleWebGLContextLost=function(){Object(y["b"])(this.bufferCache_),this.currentProgram_=null},e.prototype.handleWebGLContextRestored=function(){},e.prototype.createTexture=function(t,e,r){var n=this.getGL(),i=r||n.createTexture(),o=0,a=n.RGBA,s=0,l=n.RGBA,u=n.UNSIGNED_BYTE;return n.bindTexture(n.TEXTURE_2D,i),e?n.texImage2D(n.TEXTURE_2D,o,a,l,u,e):n.texImage2D(n.TEXTURE_2D,o,a,t[0],t[1],s,l,u,null),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),i},e}(nt["a"]);function xt(t){for(var e=0,r=0;r<t.length;r++){var n=t[r];e+=n.size*wt(n.type)}return e}function wt(t){switch(t){case pt.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case pt.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case pt.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT;case pt.FLOAT:default:return Float32Array.BYTES_PER_ELEMENT}}var Ot=bt,Et=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),St={GENERATE_BUFFERS:"GENERATE_BUFFERS"},Tt=function(t){function e(e,r){var n=t.call(this,e)||this,i=r||{};return n.inversePixelTransform_=Object(w["c"])(),n.pixelContext_=null,n.postProcesses_=i.postProcesses,n.uniforms_=i.uniforms,n.helper,e.addChangeListener(Q["a"].MAP,n.removeHelper.bind(n)),n.dispatchPreComposeEvent=n.dispatchPreComposeEvent.bind(n),n.dispatchPostComposeEvent=n.dispatchPostComposeEvent.bind(n),n}return Et(e,t),e.prototype.dispatchPreComposeEvent=function(t,e){var r=this.getLayer();if(r.hasListener(i["a"].PRECOMPOSE)){var n=new et["a"](i["a"].PRECOMPOSE,void 0,e,t);r.dispatchEvent(n)}},e.prototype.dispatchPostComposeEvent=function(t,e){var r=this.getLayer();if(r.hasListener(i["a"].POSTCOMPOSE)){var n=new et["a"](i["a"].POSTCOMPOSE,void 0,e,t);r.dispatchEvent(n)}},e.prototype.reset=function(t){this.uniforms_=t.uniforms,this.helper&&this.helper.setUniforms(this.uniforms_)},e.prototype.removeHelper=function(){this.helper&&(this.helper.dispose(),delete this.helper)},e.prototype.prepareFrame=function(t){if(this.getLayer().getRenderSource()){for(var r=!0,n=-1,i=void 0,o=0,a=t.layerStatesArray.length;o<a;o++){var s=t.layerStatesArray[o].layer,l=s.getRenderer();if(l instanceof e){var u=s.getClassName();if((r||u!==i)&&(n+=1,r=!1),i=u,l===this)break}else r=!0}var c="map/"+t.mapId+"/group/"+n;this.helper&&this.helper.canvasCacheKeyMatches(c)||(this.removeHelper(),this.helper=new Ot({postProcesses:this.postProcesses_,uniforms:this.uniforms_,canvasCacheKey:c}),i&&(this.helper.getCanvas().className=i),this.afterHelperCreated())}return this.prepareFrameInternal(t)},e.prototype.afterHelperCreated=function(){},e.prototype.prepareFrameInternal=function(t){return!0},e.prototype.disposeInternal=function(){this.removeHelper(),t.prototype.disposeInternal.call(this)},e.prototype.dispatchRenderEvent_=function(t,e,r){var n=this.getLayer();if(n.hasListener(t)){Object(w["b"])(this.inversePixelTransform_,0,0,r.pixelRatio,-r.pixelRatio,0,0,-r.size[1]);var i=new et["a"](t,this.inversePixelTransform_,r,e);n.dispatchEvent(i)}},e.prototype.preRender=function(t,e){this.dispatchRenderEvent_(i["a"].PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(i["a"].POSTRENDER,t,e)},e.prototype.getDataAtPixel=function(t,e,r){var n=Object(w["a"])([e.pixelRatio,0,0,e.pixelRatio,0,0],t.slice()),i=this.helper.getGL();if(!i)return null;var o=this.getLayer(),a=o.getExtent();if(a){var s=Object(w["a"])(e.pixelToCoordinateTransform,t.slice());if(!Object(g["containsCoordinate"])(a,s))return null}var l=i.getContextAttributes();if(!l||!l.preserveDrawingBuffer)return new Uint8Array;var u,c=Math.round(n[0]),h=Math.round(n[1]),f=this.pixelContext_;if(!f){var p=document.createElement("canvas");p.width=1,p.height=1,f=p.getContext("2d"),this.pixelContext_=f}f.clearRect(0,0,1,1);try{f.drawImage(i.canvas,c,h,1,1,0,0,1,1),u=f.getImageData(0,0,1,1).data}catch(d){return u}return 0===u[3]?null:u},e}(tt["a"]);function Ct(t,e){var r=e||[],n=256,i=n-1;return r[0]=Math.floor(t/n/n/n)/i,r[1]=Math.floor(t/n/n)%n/i,r[2]=Math.floor(t/n)%n/i,r[3]=t%n/i,r}function Pt(t){var e=0,r=256,n=r-1;return e+=Math.round(t[0]*r*r*r*n),e+=Math.round(t[1]*r*r*n),e+=Math.round(t[2]*r*n),e+=Math.round(t[3]*n),e}var jt=Tt,Rt=r("9f5e"),Mt=new Uint8Array(4),At=function(){function t(t,e){this.helper_=t;var r=t.getGL();this.texture_=r.createTexture(),this.framebuffer_=r.createFramebuffer(),this.size_=e||[1,1],this.data_=new Uint8Array(0),this.dataCacheDirty_=!0,this.updateSize_()}return t.prototype.setSize=function(t){Object(Rt["b"])(t,this.size_)||(this.size_[0]=t[0],this.size_[1]=t[1],this.updateSize_())},t.prototype.getSize=function(){return this.size_},t.prototype.clearCachedData=function(){this.dataCacheDirty_=!0},t.prototype.readAll=function(){if(this.dataCacheDirty_){var t=this.size_,e=this.helper_.getGL();e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer_),e.readPixels(0,0,t[0],t[1],e.RGBA,e.UNSIGNED_BYTE,this.data_),this.dataCacheDirty_=!1}return this.data_},t.prototype.readPixel=function(t,e){if(t<0||e<0||t>this.size_[0]||e>=this.size_[1])return Mt[0]=0,Mt[1]=0,Mt[2]=0,Mt[3]=0,Mt;this.readAll();var r=Math.floor(t)+(this.size_[1]-Math.floor(e)-1)*this.size_[0];return Mt[0]=this.data_[4*r],Mt[1]=this.data_[4*r+1],Mt[2]=this.data_[4*r+2],Mt[3]=this.data_[4*r+3],Mt},t.prototype.getTexture=function(){return this.texture_},t.prototype.getFramebuffer=function(){return this.framebuffer_},t.prototype.updateSize_=function(){var t=this.size_,e=this.helper_.getGL();this.texture_=this.helper_.createTexture(t,null,this.texture_),e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer_),e.viewport(0,0,t[0],t[1]),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.texture_,0),this.data_=new Uint8Array(t[0]*t[1]*4)},t}(),Lt=At,It=r("7fd1"),Ft=r("1e8d"),kt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Dt=function(t){function e(e,r){var n=this,i=r.uniforms||{},o=Object(w["c"])();i[ft.PROJECTION_MATRIX]=o,n=t.call(this,e,{uniforms:i,postProcesses:r.postProcesses})||this,n.ready=!1,n.sourceRevision_=-1,n.verticesBuffer_=new $(D,U),n.hitVerticesBuffer_=new $(D,U),n.indicesBuffer_=new $(G,U),n.vertexShader_=r.vertexShader,n.fragmentShader_=r.fragmentShader,n.program_,n.hitDetectionEnabled_=!(!r.hitFragmentShader||!r.hitVertexShader),n.hitVertexShader_=r.hitVertexShader,n.hitFragmentShader_=r.hitFragmentShader,n.hitProgram_;var a=r.attributes?r.attributes.map((function(t){return{name:"a_"+t.name,size:1,type:pt.FLOAT}})):[];n.attributes=[{name:"a_position",size:2,type:pt.FLOAT},{name:"a_index",size:1,type:pt.FLOAT}].concat(a),n.hitDetectionAttributes=[{name:"a_position",size:2,type:pt.FLOAT},{name:"a_index",size:1,type:pt.FLOAT},{name:"a_hitColor",size:4,type:pt.FLOAT},{name:"a_featureUid",size:1,type:pt.FLOAT}].concat(a),n.customAttributes=r.attributes?r.attributes:[],n.previousExtent_=Object(g["createEmpty"])(),n.currentTransform_=o,n.renderTransform_=Object(w["c"])(),n.invertRenderTransform_=Object(w["c"])(),n.renderInstructions_=new Float32Array(0),n.hitRenderInstructions_=new Float32Array(0),n.hitRenderTarget_,n.generateBuffersRun_=0,n.worker_=Object(It["a"])(),n.worker_.addEventListener("message",function(t){var e=t.data;if(e.type===St.GENERATE_BUFFERS){var r=e.projectionTransform;e.hitDetection?(this.hitVerticesBuffer_.fromArrayBuffer(e.vertexBuffer),this.helper.flushBufferData(this.hitVerticesBuffer_)):(this.verticesBuffer_.fromArrayBuffer(e.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_)),this.indicesBuffer_.fromArrayBuffer(e.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=r,Object(w["d"])(this.invertRenderTransform_,this.renderTransform_),e.hitDetection?this.hitRenderInstructions_=new Float32Array(t.data.renderInstructions):(this.renderInstructions_=new Float32Array(t.data.renderInstructions),e.generateBuffersRun===this.generateBuffersRun_&&(this.ready=!0)),this.getLayer().changed()}}.bind(n)),n.featureCache_={},n.featureCount_=0;var s=n.getLayer().getSource();return n.sourceListenKeys_=[Object(Ft["a"])(s,F["a"].ADDFEATURE,n.handleSourceFeatureAdded_,n),Object(Ft["a"])(s,F["a"].CHANGEFEATURE,n.handleSourceFeatureChanged_,n),Object(Ft["a"])(s,F["a"].REMOVEFEATURE,n.handleSourceFeatureDelete_,n),Object(Ft["a"])(s,F["a"].CLEAR,n.handleSourceFeatureClear_,n)],s.forEachFeature(function(t){this.featureCache_[Object(it["c"])(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()},this.featureCount_++}.bind(n)),n}return kt(e,t),e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.hitDetectionEnabled_&&(this.hitProgram_=this.helper.getProgram(this.hitFragmentShader_,this.hitVertexShader_),this.hitRenderTarget_=new Lt(this.helper))},e.prototype.handleSourceFeatureAdded_=function(t){var e=t.feature;this.featureCache_[Object(it["c"])(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()},this.featureCount_++},e.prototype.handleSourceFeatureChanged_=function(t){var e=t.feature;this.featureCache_[Object(it["c"])(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()}},e.prototype.handleSourceFeatureDelete_=function(t){var e=t.feature;delete this.featureCache_[Object(it["c"])(e)],this.featureCount_--},e.prototype.handleSourceFeatureClear_=function(){this.featureCache_={},this.featureCount_=0},e.prototype.renderFrame=function(t){var e=this.helper.getGL();this.preRender(e,t);var r=t.viewState.projection,n=this.getLayer(),i=n.getSource(),o=i.getWrapX()&&r.canWrapX(),a=r.getExtent(),s=t.extent,l=o?Object(g["getWidth"])(a):null,u=o?Math.ceil((s[2]-a[2])/l)+1:1,c=o?Math.floor((s[0]-a[0])/l):0,h=c,f=this.indicesBuffer_.getSize();do{this.helper.makeProjectionTransform(t,this.currentTransform_),Object(w["l"])(this.currentTransform_,h*l,0),Object(w["f"])(this.currentTransform_,this.invertRenderTransform_),this.helper.applyUniforms(t),this.helper.drawElements(0,f)}while(++h<u);this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);var p=this.helper.getCanvas();return this.hitDetectionEnabled_&&(this.renderHitDetection(t,c,u,l),this.hitRenderTarget_.clearCachedData()),this.postRender(e,t),p},e.prototype.prepareFrameInternal=function(t){var e=this.getLayer(),r=e.getSource(),n=t.viewState,i=!t.viewHints[k["a"].ANIMATING]&&!t.viewHints[k["a"].INTERACTING],o=!Object(g["equals"])(this.previousExtent_,t.extent),a=this.sourceRevision_<r.getRevision();if(a&&(this.sourceRevision_=r.getRevision()),i&&(o||a)){var s=n.projection,l=n.resolution,u=e instanceof I["a"]?e.getRenderBuffer():0,c=Object(g["buffer"])(t.extent,u*l);r.loadFeatures(c,l,s),this.rebuildBuffers_(t),this.previousExtent_=t.extent.slice()}return this.helper.useProgram(this.program_),this.helper.prepareDraw(t),this.helper.bindBuffer(this.verticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.attributes),!0},e.prototype.rebuildBuffers_=function(t){var e=Object(w["c"])();this.helper.makeProjectionTransform(t,e);var r,n,i=(2+this.customAttributes.length)*this.featureCount_;if(this.renderInstructions_&&this.renderInstructions_.length===i||(this.renderInstructions_=new Float32Array(i)),this.hitDetectionEnabled_){var o=(7+this.customAttributes.length)*this.featureCount_;this.hitRenderInstructions_&&this.hitRenderInstructions_.length===o||(this.hitRenderInstructions_=new Float32Array(o))}var a,s=[],l=[],u=0,c=0;for(var h in this.featureCache_)if(r=this.featureCache_[h],n=r.geometry,n&&"Point"===n.getType()){s[0]=n.getFlatCoordinates()[0],s[1]=n.getFlatCoordinates()[1],Object(w["a"])(e,s),a=Ct(c+6,l),this.renderInstructions_[u++]=s[0],this.renderInstructions_[u++]=s[1],this.hitDetectionEnabled_&&(this.hitRenderInstructions_[c++]=s[0],this.hitRenderInstructions_[c++]=s[1],this.hitRenderInstructions_[c++]=a[0],this.hitRenderInstructions_[c++]=a[1],this.hitRenderInstructions_[c++]=a[2],this.hitRenderInstructions_[c++]=a[3],this.hitRenderInstructions_[c++]=Number(h));for(var f=void 0,p=0;p<this.customAttributes.length;p++)f=this.customAttributes[p].callback(r.feature,r.properties),this.renderInstructions_[u++]=f,this.hitDetectionEnabled_&&(this.hitRenderInstructions_[c++]=f)}var d={type:St.GENERATE_BUFFERS,renderInstructions:this.renderInstructions_.buffer,customAttributesCount:this.customAttributes.length};if(d["projectionTransform"]=e,d["generateBuffersRun"]=++this.generateBuffersRun_,this.ready=!1,this.worker_.postMessage(d,[this.renderInstructions_.buffer]),this.renderInstructions_=null,this.hitDetectionEnabled_){var g={type:St.GENERATE_BUFFERS,renderInstructions:this.hitRenderInstructions_.buffer,customAttributesCount:5+this.customAttributes.length};g["projectionTransform"]=e,g["hitDetection"]=!0,this.worker_.postMessage(g,[this.hitRenderInstructions_.buffer]),this.hitRenderInstructions_=null}},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){if(Object(q["a"])(this.hitDetectionEnabled_,66),this.hitRenderInstructions_){var o=Object(w["a"])(e.coordinateToPixelTransform,t.slice()),a=this.hitRenderTarget_.readPixel(o[0]/2,o[1]/2),s=[a[0]/255,a[1]/255,a[2]/255,a[3]/255],l=Pt(s),u=this.hitRenderInstructions_[l],c=Math.floor(u).toString(),h=this.getLayer().getSource(),f=h.getFeatureByUid(c);return f?n(f,this.getLayer(),null):void 0}},e.prototype.renderHitDetection=function(t,e,r,n){if(this.hitVerticesBuffer_.getSize()){var i=e;this.hitRenderTarget_.setSize([Math.floor(t.size[0]/2),Math.floor(t.size[1]/2)]),this.helper.useProgram(this.hitProgram_),this.helper.prepareDrawToRenderTarget(t,this.hitRenderTarget_,!0),this.helper.bindBuffer(this.hitVerticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.hitDetectionAttributes);do{this.helper.makeProjectionTransform(t,this.currentTransform_),Object(w["l"])(this.currentTransform_,i*n,0),Object(w["f"])(this.currentTransform_,this.invertRenderTransform_),this.helper.applyUniforms(t);var o=this.indicesBuffer_.getSize();this.helper.drawElements(0,o)}while(++i<r)}},e.prototype.disposeInternal=function(){this.worker_.terminate(),this.layer_=null,this.sourceListenKeys_.forEach((function(t){Object(Ft["c"])(t)})),this.sourceListenKeys_=null,t.prototype.disposeInternal.call(this)},e}(jt),Gt=Dt,Nt=r("0999"),zt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ut={BLUR:"blur",GRADIENT:"gradient",RADIUS:"radius"},Bt=["#00f","#0ff","#0f0","#ff0","#f00"],Vt=function(t){function e(e){var r=this,n=e||{},i=Object(y["a"])({},n);delete i.gradient,delete i.radius,delete i.blur,delete i.weight,r=t.call(this,i)||this,r.gradient_=null,r.addChangeListener(Ut.GRADIENT,r.handleGradientChanged_),r.setGradient(n.gradient?n.gradient:Bt),r.setBlur(void 0!==n.blur?n.blur:15),r.setRadius(void 0!==n.radius?n.radius:8);var o=n.weight?n.weight:"weight";return r.weightFunction_="string"===typeof o?function(t){return t.get(o)}:o,r.setRenderOrder(null),r}return zt(e,t),e.prototype.getBlur=function(){return this.get(Ut.BLUR)},e.prototype.getGradient=function(){return this.get(Ut.GRADIENT)},e.prototype.getRadius=function(){return this.get(Ut.RADIUS)},e.prototype.handleGradientChanged_=function(){this.gradient_=Xt(this.getGradient())},e.prototype.setBlur=function(t){this.set(Ut.BLUR,t)},e.prototype.setGradient=function(t){this.set(Ut.GRADIENT,t)},e.prototype.setRadius=function(t){this.set(Ut.RADIUS,t)},e.prototype.createRenderer=function(){return new Gt(this,{className:this.getClassName(),attributes:[{name:"weight",callback:function(t){var e=this.weightFunction_(t);return void 0!==e?Object(v["b"])(e,0,1):1}.bind(this)}],vertexShader:"\n precision mediump float;\n uniform mat4 u_projectionMatrix;\n uniform mat4 u_offsetScaleMatrix;\n uniform float u_size;\n attribute vec2 a_position;\n attribute float a_index;\n attribute float a_weight;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n\n void main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix;\n float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n v_texCoord = vec2(u, v);\n v_weight = a_weight;\n }",fragmentShader:"\n precision mediump float;\n uniform float u_blurSlope;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n\n void main(void) {\n vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n float alpha = smoothstep(0.0, 1.0, value) * v_weight;\n gl_FragColor = vec4(alpha, alpha, alpha, alpha);\n }",hitVertexShader:"\n precision mediump float;\n uniform mat4 u_projectionMatrix;\n uniform mat4 u_offsetScaleMatrix;\n uniform float u_size;\n attribute vec2 a_position;\n attribute float a_index;\n attribute float a_weight;\n attribute vec4 a_hitColor;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n varying vec4 v_hitColor;\n\n void main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix;\n float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n v_texCoord = vec2(u, v);\n v_hitColor = a_hitColor;\n v_weight = a_weight;\n }",hitFragmentShader:"\n precision mediump float;\n uniform float u_blurSlope;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n varying vec4 v_hitColor;\n\n void main(void) {\n vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n float alpha = smoothstep(0.0, 1.0, value) * v_weight;\n if (alpha < 0.05) {\n discard;\n }\n\n gl_FragColor = v_hitColor;\n }",uniforms:{u_size:function(){return 2*(this.get(Ut.RADIUS)+this.get(Ut.BLUR))}.bind(this),u_blurSlope:function(){return this.get(Ut.RADIUS)/Math.max(1,this.get(Ut.BLUR))}.bind(this)},postProcesses:[{fragmentShader:"\n precision mediump float;\n\n uniform sampler2D u_image;\n uniform sampler2D u_gradientTexture;\n uniform float u_opacity;\n\n varying vec2 v_texCoord;\n\n void main() {\n vec4 color = texture2D(u_image, v_texCoord);\n gl_FragColor.a = color.a * u_opacity;\n gl_FragColor.rgb = texture2D(u_gradientTexture, vec2(0.5, color.a)).rgb;\n gl_FragColor.rgb *= gl_FragColor.a;\n }",uniforms:{u_gradientTexture:function(){return this.gradient_}.bind(this),u_opacity:function(){return this.getOpacity()}.bind(this)}}]})},e.prototype.renderDeclutter=function(){},e}(I["a"]);function Xt(t){for(var e=1,r=256,n=Object(Nt["a"])(e,r),i=n.createLinearGradient(0,0,e,r),o=1/(t.length-1),a=0,s=t.length;a<s;++a)i.addColorStop(a*o,t[a]);return n.fillStyle=i,n.fillRect(0,0,e,r),n.canvas}var Wt=Vt,Ht=r("c810"),Yt=r("1af9"),qt=r("cef7"),Kt=r("01d4"),Zt=r("b7df"),Jt=r("47e4"),$t=r("9a44"),Qt=r("88da"),te=r("7915"),ee=r.n(te),re=r("5bc33"),ne=r("f5dd"),ie=r("0a9d"),oe=r("4d98"),ae=r("b1a2"),se=r("9159"),le=r("bef8"),ue=Object(w["c"])(),ce=function(){function t(t,e,r,n,i){this.styleFunction,this.extent_,this.id_=i,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=r,this.properties_=n}return t.prototype.get=function(t){return this.properties_[t]},t.prototype.getExtent=function(){return this.extent_||(this.extent_="Point"===this.type_?Object(g["createOrUpdateFromCoordinate"])(this.flatCoordinates_):Object(g["createOrUpdateFromFlatCoordinates"])(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},t.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var t=Object(g["getCenter"])(this.getExtent());this.flatInteriorPoints_=Object(ie["a"])(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_},t.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var t=Object(se["a"])(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=Object(ie["b"])(this.flatCoordinates_,0,this.ends_,2,t)}return this.flatInteriorPoints_},t.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=Object(ae["a"])(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},t.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var t=this.flatCoordinates_,e=0,r=this.ends_,n=0,i=r.length;n<i;++n){var o=r[n],a=Object(ae["a"])(t,e,o,2,.5);Object(Rt["c"])(this.flatMidpoints_,a),e=o}}return this.flatMidpoints_},t.prototype.getId=function(){return this.id_},t.prototype.getOrientedFlatCoordinates=function(){return this.flatCoordinates_},t.prototype.getGeometry=function(){return this},t.prototype.getSimplifiedGeometry=function(t){return this},t.prototype.simplifyTransformed=function(t,e){return this},t.prototype.getProperties=function(){return this.properties_},t.prototype.getStride=function(){return 2},t.prototype.getStyleFunction=function(){return this.styleFunction},t.prototype.getType=function(){return this.type_},t.prototype.transform=function(t){t=Object(_["get"])(t);var e=t.getExtent(),r=t.getWorldExtent();if(e&&r){var n=Object(g["getHeight"])(r)/Object(g["getHeight"])(e);Object(w["b"])(ue,r[0],r[3],n,-n,0,0,0),Object(le["c"])(this.flatCoordinates_,0,this.flatCoordinates_.length,2,ue,this.flatCoordinates_)}},t.prototype.getEnds=function(){return this.ends_},t}();ce.prototype.getEndss=ce.prototype.getEnds,ce.prototype.getFlatCoordinates=ce.prototype.getOrientedFlatCoordinates;var he=ce,fe=r("fced"),pe=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),de=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.dataProjection=new ne["a"]({code:"",units:fe["b"].TILE_PIXELS}),r.featureClass_=n.featureClass?n.featureClass:he,r.geometryName_=n.geometryName,r.layerName_=n.layerName?n.layerName:"layer",r.layers_=n.layers?n.layers:null,r.idProperty_=n.idProperty,r.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"],r}return pe(e,t),e.prototype.readRawGeometry_=function(t,e,r,n){t.pos=e.geometry;var i=t.readVarint()+t.pos,o=1,a=0,s=0,l=0,u=0,c=0;while(t.pos<i){if(!a){var h=t.readVarint();o=7&h,a=h>>3}a--,1===o||2===o?(s+=t.readSVarint(),l+=t.readSVarint(),1===o&&u>c&&(n.push(u),c=u),r.push(s,l),u+=2):7===o?u>c&&(r.push(r[c],r[c+1]),u+=2):Object(q["a"])(!1,59)}u>c&&(n.push(u),c=u)},e.prototype.createFeature_=function(t,e,r){var n,i=e.type;if(0===i)return null;var o,a=e.properties;this.idProperty_?(o=a[this.idProperty_],delete a[this.idProperty_]):o=e.id,a[this.layerName_]=e.layer.name;var c=[],h=[];this.readRawGeometry_(t,e,c,h);var f=_e(i,h.length);if(this.featureClass_===he)n=new this.featureClass_(f,c,h,a,o),n.transform(r.dataProjection);else{var p=void 0;if("Polygon"==f){var d=Object(oe["a"])(c,h);p=d.length>1?new Qt["a"](c,s["a"].XY,d):new re["default"](c,s["a"].XY,h)}else p="Point"===f?new u["default"](c,s["a"].XY):"LineString"===f?new l["default"](c,s["a"].XY):"MultiPoint"===f?new $t["default"](c,s["a"].XY):"MultiLineString"===f?new Jt["a"](c,s["a"].XY,h):null;var g=this.featureClass_;n=new g,this.geometryName_&&n.setGeometryName(this.geometryName_);var y=Object(Zt["b"])(p,!1,r);n.setGeometry(y),void 0!==o&&n.setId(o),n.setProperties(a,!0)}return n},e.prototype.getType=function(){return"arraybuffer"},e.prototype.readFeatures=function(t,e){var r=this.layers_,n=this.adaptOptions(e),i=Object(_["get"])(n.dataProjection);i.setWorldExtent(n.extent),n.dataProjection=i;var o=new ee.a(t),a=o.readFields(ge,{}),s=[];for(var l in a)if(!r||-1!=r.indexOf(l)){var u=a[l],c=u?[0,0,u.extent,u.extent]:null;i.setExtent(c);for(var h=0,f=u.length;h<f;++h){var p=me(o,u,h),d=this.createFeature_(o,p,n);null!==d&&s.push(d)}}return s},e.prototype.readProjection=function(t){return this.dataProjection},e.prototype.setLayers=function(t){this.layers_=t},e}(Zt["a"]);function ge(t,e,r){if(3===t){var n={keys:[],values:[],features:[]},i=r.readVarint()+r.pos;r.readFields(ye,n,i),n.length=n.features.length,n.length&&(e[n.name]=n)}}function ye(t,e,r){if(15===t)e.version=r.readVarint();else if(1===t)e.name=r.readString();else if(5===t)e.extent=r.readVarint();else if(2===t)e.features.push(r.pos);else if(3===t)e.keys.push(r.readString());else if(4===t){var n=null,i=r.readVarint()+r.pos;while(r.pos<i)t=r.readVarint()>>3,n=1===t?r.readString():2===t?r.readFloat():3===t?r.readDouble():4===t?r.readVarint64():5===t?r.readVarint():6===t?r.readSVarint():7===t?r.readBoolean():null;e.values.push(n)}}function ve(t,e,r){if(1==t)e.id=r.readVarint();else if(2==t){var n=r.readVarint()+r.pos;while(r.pos<n){var i=e.layer.keys[r.readVarint()],o=e.layer.values[r.readVarint()];e.properties[i]=o}}else 3==t?e.type=r.readVarint():4==t&&(e.geometry=r.pos)}function me(t,e,r){t.pos=e.features[r];var n=t.readVarint()+t.pos,i={layer:e,type:0,properties:{}};return t.readFields(ve,i,n),i}function _e(t,e){var r;return 1===t?r=1===e?"Point":"MultiPoint":2===t?r=1===e?"LineString":"MultiLineString":3===t&&(r="Polygon"),r}var be,xe=de,we=r("dbba"),Oe=r("e8b8"),Ee=r("b9ec"),Se=r("acc1"),Te={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"},Ce=r("399c"),Pe=r("345d"),je=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Re={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},Me={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},Ae=function(t){function e(e){var r=t.call(this,e)||this;return r.boundHandleStyleImageChange_=r.handleStyleImageChange_.bind(r),r.renderedLayerRevision_,r.renderedPixelToCoordinateTransform_=null,r.renderedRotation_,r.tmpTransform_=Object(w["c"])(),r}return je(e,t),e.prototype.prepareTile=function(t,e,r){var n,i=t.getState();return i!==Se["a"].LOADED&&i!==Se["a"].ERROR||(this.updateExecutorGroup_(t,e,r),this.tileImageNeedsRender_(t)&&(n=!0)),n},e.prototype.getTile=function(e,r,n,i){var o=i.pixelRatio,a=i.viewState,s=a.resolution,l=a.projection,u=this.getLayer(),c=u.getSource().getTile(e,r,n,o,l),h=i.viewHints,f=!(h[k["a"].ANIMATING]||h[k["a"].INTERACTING]);!f&&c.wantedResolution||(c.wantedResolution=s);var p=this.prepareTile(c,o,l);return p&&(f||Date.now()-i.time<8)&&u.getRenderMode()!==Te.VECTOR&&this.renderTileImage_(c,i),t.prototype.getTile.call(this,e,r,n,i)},e.prototype.isDrawableTile=function(e){var r=this.getLayer();return t.prototype.isDrawableTile.call(this,e)&&(r.getRenderMode()===Te.VECTOR?Object(it["c"])(r)in e.executorGroups:e.hasContext(r))},e.prototype.getTileImage=function(t){return t.getImage(this.getLayer())},e.prototype.prepareFrame=function(e){var r=this.getLayer().getRevision();return this.renderedLayerRevision_!==r&&(this.renderedLayerRevision_=r,this.renderedTiles.length=0),t.prototype.prepareFrame.call(this,e)},e.prototype.updateExecutorGroup_=function(t,e,r){var n=this.getLayer(),i=n.getRevision(),o=n.getRenderOrder()||null,a=t.wantedResolution,s=t.getReplayState(n);if(s.dirty||s.renderedResolution!==a||s.renderedRevision!=i||s.renderedRenderOrder!=o){var l=n.getSource(),u=n.getDeclutter(),c=l.getTileGrid(),h=l.getTileGridForProjection(r),f=h.getTileCoordExtent(t.wrappedTileCoord),p=l.getSourceTiles(e,r,t),d=Object(it["c"])(n);delete t.hitDetectionImageData[d],t.executorGroups[d]=[],u&&(t.declutterExecutorGroups[d]=[]),s.dirty=!1;for(var y=function(r,i){var h=p[r];if(h.getState()!=Se["a"].LOADED)return"continue";var y=h.tileCoord,m=c.getTileCoordExtent(y),_=Object(g["getIntersection"])(f,m),b=Object(g["buffer"])(_,n.getRenderBuffer()*a,v.tmpExtent),x=Object(g["equals"])(m,_)?null:b,w=new we["a"](0,b,a,e),E=u?new we["a"](0,_,a,e):void 0,S=Object(O["b"])(a,e),T=function(t){var e,r=t.getStyleFunction()||n.getStyleFunction();if(r&&(e=r(t,a)),e){var i=this.renderFeature(t,S,e,w,E);s.dirty=s.dirty||i}},C=h.getFeatures();o&&o!==s.renderedRenderOrder&&C.sort(o);for(var P=0,j=C.length;P<j;++P){var R=C[P];x&&!Object(g["intersects"])(x,R.getGeometry().getExtent())||T.call(v,R)}var M=w.finish(),A=n.getRenderMode()!==Te.VECTOR&&u&&1===p.length?null:_,L=new Oe["a"](A,a,e,l.getOverlaps(),M,n.getRenderBuffer());if(t.executorGroups[d].push(L),E){var I=new Oe["a"](null,a,e,l.getOverlaps(),E.finish(),n.getRenderBuffer());t.declutterExecutorGroups[d].push(I)}},v=this,m=0,_=p.length;m<_;++m)y(m,_);s.renderedRevision=i,s.renderedRenderOrder=o,s.renderedResolution=a}},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){var o=e.viewState.resolution,a=e.viewState.rotation;r=void 0==r?0:r;var s=this.getLayer(),l=s.getSource(),u=l.getTileGridForProjection(e.viewState.projection),c=Object(g["boundingExtent"])([t]);Object(g["buffer"])(c,o*r,c);for(var h,f={},p=function(t,e,r){var o=t.getId();void 0===o&&(o=Object(it["c"])(t));var a=f[o];if(a){if(!0!==a&&r<a.distanceSq){if(0===r)return f[o]=!0,i.splice(i.lastIndexOf(a),1),n(t,s,e);a.geometry=e,a.distanceSq=r}}else{if(0===r)return f[o]=!0,n(t,s,e);i.push(f[o]={feature:t,layer:s,geometry:e,distanceSq:r,callback:n})}},d=this.renderedTiles,y=function(n,i){var l=d[n],f=u.getTileCoordExtent(l.wrappedTileCoord);if(!Object(g["intersects"])(f,c))return"continue";var y=Object(it["c"])(s),v=[l.executorGroups[y]],m=l.declutterExecutorGroups[y];m&&v.push(m),v.some((function(n){for(var i=n===m?e.declutterTree.all().map((function(t){return t.value})):null,s=0,l=n.length;s<l;++s){var u=n[s];if(h=u.forEachFeatureAtCoordinate(t,o,a,r,p,i),h)return!0}}))},v=0,m=d.length;!h&&v<m;++v)y(v,m);return h},e.prototype.getFeatures=function(t){return new Promise(function(e,r){for(var n,i=this.getLayer(),o=Object(it["c"])(i),a=i.getSource(),s=this.renderedProjection,l=s.getExtent(),u=this.renderedResolution,c=a.getTileGridForProjection(s),h=Object(w["a"])(this.renderedPixelToCoordinateTransform_,t.slice()),f=c.getTileCoordForCoordAndResolution(h,u),p=0,d=this.renderedTiles.length;p<d;++p)if(f.toString()===this.renderedTiles[p].tileCoord.toString()){if(n=this.renderedTiles[p],n.getState()===Se["a"].LOADED){var y=c.getTileCoordExtent(n.tileCoord);a.getWrapX()&&s.canWrapX()&&!Object(g["containsExtent"])(l,y)&&Object(m["l"])(h,s);break}n=void 0}if(!n||n.loadingSourceTiles>0)e([]);else{var v=c.getTileCoordExtent(n.wrappedTileCoord),_=Object(g["getTopLeft"])(v),b=[(h[0]-_[0])/u,(_[1]-h[1])/u],x=n.getSourceTiles().reduce((function(t,e){return t.concat(e.getFeatures())}),[]),O=n.hitDetectionImageData[o];if(!O&&!this.animatingOrInteracting_){var E=Object(Pe["d"])(c.getTileSize(c.getZForResolution(u,a.zDirection))),S=this.renderedRotation_,T=[this.getRenderTransform(c.getTileCoordCenter(n.wrappedTileCoord),u,0,Ce["a"],E[0]*Ce["a"],E[1]*Ce["a"],0)];O=Object(Ce["b"])(E,T,x,i.getStyleFunction(),c.getTileCoordExtent(n.wrappedTileCoord),n.getReplayState(i).renderedResolution,S),n.hitDetectionImageData[o]=O}e(Object(Ce["c"])(b,x,O))}}.bind(this))},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&void 0!==this.renderedLayerRevision_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.renderDeclutter=function(t){var e=this.context,r=e.globalAlpha;e.globalAlpha=this.getLayer().getOpacity();for(var n=t.viewHints,i=!(n[k["a"].ANIMATING]||n[k["a"].INTERACTING]),o=this.renderedTiles,a=0,s=o.length;a<s;++a){var l=o[a],u=l.declutterExecutorGroups[Object(it["c"])(this.getLayer())];if(u)for(var c=u.length-1;c>=0;--c)u[c].execute(this.context,1,this.getTileRenderTransform(l,t),t.viewState.rotation,i,void 0,t.declutterTree)}e.globalAlpha=r},e.prototype.getTileRenderTransform=function(t,e){var r=e.pixelRatio,n=e.viewState,i=n.center,o=n.resolution,a=n.rotation,s=e.size,l=Math.round(s[0]*r),u=Math.round(s[1]*r),c=this.getLayer().getSource(),h=c.getTileGridForProjection(e.viewState.projection),f=t.tileCoord,p=h.getTileCoordExtent(t.wrappedTileCoord),d=h.getTileCoordExtent(f,this.tmpExtent)[0]-p[0],g=Object(w["f"])(Object(w["i"])(this.inversePixelTransform.slice(),1/r,1/r),this.getRenderTransform(i,o,a,r,l,u,d));return g},e.prototype.renderFrame=function(e,r){var n=e.viewHints,i=!(n[k["a"].ANIMATING]||n[k["a"].INTERACTING]);t.prototype.renderFrame.call(this,e,r),this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice(),this.renderedRotation_=e.viewState.rotation;var o=this.getLayer(),a=o.getRenderMode(),s=this.context,l=s.globalAlpha;s.globalAlpha=o.getOpacity();for(var u=Me[a],c=e.viewState,h=c.rotation,f=o.getSource(),p=f.getTileGridForProjection(c.projection),d=p.getZForResolution(c.resolution,f.zDirection),y=this.renderedTiles,v=[],m=[],_=!0,b=y.length-1;b>=0;--b){var x=y[b];_=_&&!x.getReplayState(o).dirty;var w=x.executorGroups[Object(it["c"])(o)].filter((function(t){return t.hasExecutors(u)}));if(0!==w.length){var O=this.getTileRenderTransform(x,e),E=x.tileCoord[0],S=!1,T=w[0].getClipCoords(O);if(T){for(var C=0,P=v.length;C<P;++C)if(d!==E&&E<m[C]){var j=v[C];Object(g["intersects"])([T[0],T[3],T[4],T[7]],[j[0],j[3],j[4],j[7]])&&(S||(s.save(),S=!0),s.beginPath(),s.moveTo(T[0],T[1]),s.lineTo(T[2],T[3]),s.lineTo(T[4],T[5]),s.lineTo(T[6],T[7]),s.moveTo(j[6],j[7]),s.lineTo(j[4],j[5]),s.lineTo(j[2],j[3]),s.lineTo(j[0],j[1]),s.clip())}v.push(T),m.push(E)}for(var R=0,M=w.length;R<M;++R){var A=w[R];A.execute(s,1,O,h,i,u)}S&&s.restore()}}return s.globalAlpha=l,this.ready=_,this.container},e.prototype.renderFeature=function(t,e,r,n,i){if(!r)return!1;var o=!1;if(Array.isArray(r))for(var a=0,s=r.length;a<s;++a)o=Object(O["d"])(n,t,r[a],e,this.boundHandleStyleImageChange_,void 0,i)||o;else o=Object(O["d"])(n,t,r,e,this.boundHandleStyleImageChange_,void 0,i);return o},e.prototype.tileImageNeedsRender_=function(t){var e=this.getLayer();if(e.getRenderMode()===Te.VECTOR)return!1;var r=t.getReplayState(e),n=e.getRevision(),i=t.wantedResolution;return r.renderedTileResolution!==i||r.renderedTileRevision!==n},e.prototype.renderTileImage_=function(t,e){var r=this.getLayer(),n=t.getReplayState(r),i=r.getRevision(),o=t.executorGroups[Object(it["c"])(r)];n.renderedTileRevision=i;var a=t.wrappedTileCoord,s=a[0],l=r.getSource(),u=e.pixelRatio,c=e.viewState,h=c.projection,f=l.getTileGridForProjection(h),p=f.getResolution(t.tileCoord[0]),d=e.pixelRatio/t.wantedResolution*p,g=f.getResolution(s),y=t.getContext(r);u=Math.round(Math.max(u,d/u));var v=l.getTilePixelSize(s,u,h);y.canvas.width=v[0],y.canvas.height=v[1];var m=u/d;if(1!==m){var _=Object(w["g"])(this.tmpTransform_);Object(w["i"])(_,m,m),y.setTransform.apply(y,_)}var b=f.getTileCoordExtent(a,this.tmpExtent),x=d/g,O=Object(w["g"])(this.tmpTransform_);Object(w["i"])(O,x,-x),Object(w["l"])(O,-b[0],-b[3]);for(var E=0,S=o.length;E<S;++E){var T=o[E];T.execute(y,m,O,0,!0,Re[r.getRenderMode()])}n.renderedTileResolution=t.wantedResolution},e}(Ee["a"]),Le=Ae,Ie=r("a194"),Fe=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ke=function(t){function e(e){var r=this,n=e||{},i=Object(y["a"])({},n);delete i.preload,delete i.useInterimTilesOnError,r=t.call(this,i)||this,r.on,r.once,r.un,n.renderMode===Te.IMAGE&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),n.renderMode=void 0);var o=n.renderMode||Te.HYBRID;return Object(q["a"])(o==Te.HYBRID||o==Te.VECTOR,28),r.renderMode_=o,r.setPreload(n.preload?n.preload:0),r.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),r.getBackground,r.setBackground,r}return Fe(e,t),e.prototype.createRenderer=function(){return new Le(this)},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderMode=function(){return this.renderMode_},e.prototype.getPreload=function(){return this.get(Ie["a"].PRELOAD)},e.prototype.getUseInterimTilesOnError=function(){return this.get(Ie["a"].USE_INTERIM_TILES_ON_ERROR)},e.prototype.setPreload=function(t){this.set(Ie["a"].PRELOAD,t)},e.prototype.setUseInterimTilesOnError=function(t){this.set(Ie["a"].USE_INTERIM_TILES_ON_ERROR,t)},e}(I["a"]),De=ke,Ge=r("78db2"),Ne=r("ce2c"),ze=r("6cbf"),Ue=r("ddea"),Be=r("a2e1"),Ve=(r("5eee"),r("78db")),Xe=r("6cf3"),We=r("480c"),He=(r("a2c7"),r("089b"),{}),Ye={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function qe(t){return t=Math.round(t),t<0?0:t>255?255:t}function Ke(t){return t<0?0:t>1?1:t}function Ze(t){return"%"===t[t.length-1]?qe(parseFloat(t)/100*255):qe(parseInt(t))}function Je(t){return"%"===t[t.length-1]?Ke(parseFloat(t)/100):Ke(parseFloat(t))}function $e(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function Qe(t){var e=t.replace(/ /g,"").toLowerCase();if(e in Ye)return Ye[e].slice();if("#"===e[0]){if(4===e.length){var r=parseInt(e.substr(1),16);return r>=0&&r<=4095?[(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,1]:null}if(7===e.length){r=parseInt(e.substr(1),16);return r>=0&&r<=16777215?[(16711680&r)>>16,(65280&r)>>8,255&r,1]:null}return null}var n=e.indexOf("("),i=e.indexOf(")");if(-1!==n&&i+1===e.length){var o=e.substr(0,n),a=e.substr(n+1,i-(n+1)).split(","),s=1;switch(o){case"rgba":if(4!==a.length)return null;s=Je(a.pop());case"rgb":return 3!==a.length?null:[Ze(a[0]),Ze(a[1]),Ze(a[2]),s];case"hsla":if(4!==a.length)return null;s=Je(a.pop());case"hsl":if(3!==a.length)return null;var l=(parseFloat(a[0])%360+360)%360/360,u=Je(a[1]),c=Je(a[2]),h=c<=.5?c*(u+1):c+u-c*u,f=2*c-h;return[qe(255*$e(f,h,l+1/3)),qe(255*$e(f,h,l)),qe(255*$e(f,h,l-1/3)),s];default:return null}}return null}try{be=He.parseCSSColor=Qe}catch(sl){}var tr=function(t,e,r,n){void 0===n&&(n=1),this.r=t,this.g=e,this.b=r,this.a=n};function er(t){return"object"===typeof t?["literal",t]:t}function rr(t,e){var r=t.stops;if(!r)return nr(t,e);var n=r&&"object"===typeof r[0][0],i=n||void 0!==t.property,o=n||!i;return r=r.map((function(t){return!i&&e.tokens&&"string"===typeof t[1]?[t[0],pr(t[1])]:[t[0],er(t[1])]})),n?or(t,e,r):o?ur(t,e,r):lr(t,e,r)}function nr(t,e){var r=["get",t.property];if(void 0===t.default)return"string"===e.type?["string",r]:r;if("enum"===e.type)return["match",r,Object.keys(e.values),r,t.default];var n=["color"===e.type?"to-color":e.type,r,er(t.default)];return"array"===e.type&&n.splice(1,0,e.value,e.length||null),n}function ir(t){switch(t.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function or(t,e,r){for(var n={},i={},o=[],a=0;a<r.length;a++){var s=r[a],l=s[0].zoom;void 0===n[l]&&(n[l]={zoom:l,type:t.type,property:t.property,default:t.default},i[l]=[],o.push(l)),i[l].push([s[0].value,s[1]])}var u=fr({},e);if("exponential"===u){for(var c=[ir(t),["linear"],["zoom"]],h=0,f=o;h<f.length;h+=1){var p=f[h],d=lr(n[p],e,i[p]);hr(c,p,d,!1)}return c}for(var g=["step",["zoom"]],y=0,v=o;y<v.length;y+=1){var m=v[y],_=lr(n[m],e,i[m]);hr(g,m,_,!0)}return cr(g),g}function ar(t,e){return void 0!==t?t:void 0!==e?e:void 0}function sr(t,e){var r=er(ar(t.default,e.default));return void 0===r&&"resolvedImage"===e.type?"":r}function lr(t,e,r){var n=fr(t,e),i=["get",t.property];if("categorical"===n&&"boolean"===typeof r[0][0]){for(var o=["case"],a=0,s=r;a<s.length;a+=1){var l=s[a];o.push(["==",i,l[0]],l[1])}return o.push(sr(t,e)),o}if("categorical"===n){for(var u=["match",i],c=0,h=r;c<h.length;c+=1){var f=h[c];hr(u,f[0],f[1],!1)}return u.push(sr(t,e)),u}if("interval"===n){for(var p=["step",["number",i]],d=0,g=r;d<g.length;d+=1){var y=g[d];hr(p,y[0],y[1],!0)}return cr(p),void 0===t.default?p:["case",["==",["typeof",i],"number"],p,er(t.default)]}if("exponential"===n){for(var v=void 0!==t.base?t.base:1,m=[ir(t),1===v?["linear"]:["exponential",v],["number",i]],_=0,b=r;_<b.length;_+=1){var x=b[_];hr(m,x[0],x[1],!1)}return void 0===t.default?m:["case",["==",["typeof",i],"number"],m,er(t.default)]}throw new Error("Unknown property function type "+n)}function ur(t,e,r,n){void 0===n&&(n=["zoom"]);var i,o=fr(t,e),a=!1;if("interval"===o)i=["step",n],a=!0;else{if("exponential"!==o)throw new Error('Unknown zoom function type "'+o+'"');var s=void 0!==t.base?t.base:1;i=[ir(t),1===s?["linear"]:["exponential",s],n]}for(var l=0,u=r;l<u.length;l+=1){var c=u[l];hr(i,c[0],c[1],a)}return cr(i),i}function cr(t){"step"===t[0]&&3===t.length&&(t.push(0),t.push(t[3]))}function hr(t,e,r,n){t.length>3&&e===t[t.length-2]||(n&&2===t.length||t.push(e),t.push(r))}function fr(t,e){return t.type?t.type:e.expression.interpolated?"exponential":"interval"}function pr(t){for(var e=["concat"],r=/{([^{}]+)}/g,n=0,i=r.exec(t);null!==i;i=r.exec(t)){var o=t.slice(n,r.lastIndex-i[0].length);n=r.lastIndex,o.length>0&&e.push(o),e.push(["get",i[1]])}if(1===e.length)return t;if(n<t.length)e.push(t.slice(n));else if(2===e.length)return["to-string",e[1]];return e}tr.parse=function(t){if(t){if(t instanceof tr)return t;if("string"===typeof t){var e=be(t);if(e)return new tr(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},tr.prototype.toString=function(){var t=this.toArray(),e=t[0],r=t[1],n=t[2],i=t[3];return"rgba("+Math.round(e)+","+Math.round(r)+","+Math.round(n)+","+i+")"},tr.prototype.toArray=function(){var t=this,e=t.r,r=t.g,n=t.b,i=t.a;return 0===i?[0,0,0,0]:[255*e/i,255*r/i,255*n/i,i]},tr.prototype.toArray01=function(){var t=this,e=t.r,r=t.g,n=t.b,i=t.a;return 0===i?[0,0,0,0]:[e/i,r/i,n/i,i]},tr.prototype.toArray01PremultipliedAlpha=function(){var t=this,e=t.r,r=t.g,n=t.b,i=t.a;return[e,r,n,i]},tr.black=new tr(0,0,0,1),tr.white=new tr(1,1,1,1),tr.transparent=new tr(0,0,0,0),tr.red=new tr(1,0,0,1),tr.blue=new tr(0,0,1,1);var dr=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),gr=function(t,e){void 0===e&&(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r<n.length;r+=1){var i=n[r],o=i[0],a=i[1];this.bindings[o]=a}};gr.prototype.concat=function(t){return new gr(this,t)},gr.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+" not found in scope.")},gr.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};var yr={kind:"null"},vr={kind:"number"},mr={kind:"string"},_r={kind:"boolean"},br={kind:"color"},xr={kind:"object"},wr={kind:"value"},Or={kind:"error"},Er={kind:"collator"},Sr={kind:"formatted"},Tr={kind:"resolvedImage"};function Cr(t,e){return{kind:"array",itemType:t,N:e}}function Pr(t){if("array"===t.kind){var e=Pr(t.itemType);return"number"===typeof t.N?"array<"+e+", "+t.N+">":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var jr=[yr,vr,mr,_r,br,Sr,xr,Cr(wr),Tr];function Rr(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!Rr(t.itemType,e.itemType))&&("number"!==typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var r=0,n=jr;r<n.length;r+=1){var i=n[r];if(!Rr(i,e))return null}}return"Expected "+Pr(t)+" but found "+Pr(e)+" instead."}function Mr(t,e){return e.some((function(e){return e.kind===t.kind}))}function Ar(t,e){return e.some((function(e){return"null"===e?null===t:"array"===e?Array.isArray(t):"object"===e?t&&!Array.isArray(t)&&"object"===typeof t:e===typeof t}))}var Lr=function(t,e,r){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Lr.prototype.compare=function(t,e){return this.collator.compare(t,e)},Lr.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Ir=function(t,e,r,n,i){this.text=t.normalize?t.normalize():t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i},Fr=function(t){this.sections=t};Fr.fromString=function(t){return new Fr([new Ir(t,null,null,null,null)])},Fr.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&&0!==t.image.name.length}))},Fr.factory=function(t){return t instanceof Fr?t:Fr.fromString(t)},Fr.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(t){return t.text})).join("")},Fr.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e<r.length;e+=1){var n=r[e];if(n.image)t.push(["image",n.image.name]);else{t.push(n.text);var i={};n.fontStack&&(i["text-font"]=["literal",n.fontStack.split(",")]),n.scale&&(i["font-scale"]=n.scale),n.textColor&&(i["text-color"]=["rgba"].concat(n.textColor.toArray())),t.push(i)}}return t};var kr=function(t){this.name=t.name,this.available=t.available};function Dr(t,e,r,n){if(!("number"===typeof t&&t>=0&&t<=255&&"number"===typeof e&&e>=0&&e<=255&&"number"===typeof r&&r>=0&&r<=255)){var i="number"===typeof n?[t,e,r,n]:[t,e,r];return"Invalid rgba value ["+i.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return"undefined"===typeof n||"number"===typeof n&&n>=0&&n<=1?null:"Invalid rgba value ["+[t,e,r,n].join(", ")+"]: 'a' must be between 0 and 1."}function Gr(t){if(null===t)return!0;if("string"===typeof t)return!0;if("boolean"===typeof t)return!0;if("number"===typeof t)return!0;if(t instanceof tr)return!0;if(t instanceof Lr)return!0;if(t instanceof Fr)return!0;if(t instanceof kr)return!0;if(Array.isArray(t)){for(var e=0,r=t;e<r.length;e+=1){var n=r[e];if(!Gr(n))return!1}return!0}if("object"===typeof t){for(var i in t)if(!Gr(t[i]))return!1;return!0}return!1}function Nr(t){if(null===t)return yr;if("string"===typeof t)return mr;if("boolean"===typeof t)return _r;if("number"===typeof t)return vr;if(t instanceof tr)return br;if(t instanceof Lr)return Er;if(t instanceof Fr)return Sr;if(t instanceof kr)return Tr;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n<i.length;n+=1){var o=i[n],a=Nr(o);if(e){if(e===a)continue;e=wr;break}e=a}return Cr(e||wr,r)}return xr}function zr(t){var e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof tr||t instanceof Fr||t instanceof kr?t.toString():JSON.stringify(t)}kr.prototype.toString=function(){return this.name},kr.fromString=function(t){return t?new kr({name:t,available:!1}):null},kr.prototype.serialize=function(){return["image",this.name]};var Ur=function(t,e){this.type=t,this.value=e};Ur.parse=function(t,e){if(2!==t.length)return e.error("'literal' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(!Gr(t[1]))return e.error("invalid value");var r=t[1],n=Nr(r),i=e.expectedType;return"array"!==n.kind||0!==n.N||!i||"array"!==i.kind||"number"===typeof i.N&&0!==i.N||(n=i),new Ur(n,r)},Ur.prototype.evaluate=function(){return this.value},Ur.prototype.eachChild=function(){},Ur.prototype.outputDefined=function(){return!0},Ur.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof tr?["rgba"].concat(this.value.toArray()):this.value instanceof Fr?this.value.serialize():this.value};var Br=function(t){this.name="ExpressionEvaluationError",this.message=t};Br.prototype.toJSON=function(){return this.message};var Vr={string:mr,number:vr,boolean:_r,object:xr},Xr=function(t,e){this.type=t,this.args=e};Xr.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r,n=1,i=t[0];if("array"===i){var o,a;if(t.length>2){var s=t[1];if("string"!==typeof s||!(s in Vr)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=Vr[s],n++}else o=wr;if(t.length>3){if(null!==t[2]&&("number"!==typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],n++}r=Cr(o,a)}else r=Vr[i];for(var l=[];n<t.length;n++){var u=e.parse(t[n],n,wr);if(!u)return null;l.push(u)}return new Xr(r,l)},Xr.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var r=this.args[e].evaluate(t),n=Rr(this.type,Nr(r));if(!n)return r;if(e===this.args.length-1)throw new Br("Expected value to be of type "+Pr(this.type)+", but found "+Pr(Nr(r))+" instead.")}return null},Xr.prototype.eachChild=function(t){this.args.forEach(t)},Xr.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},Xr.prototype.serialize=function(){var t=this.type,e=[t.kind];if("array"===t.kind){var r=t.itemType;if("string"===r.kind||"number"===r.kind||"boolean"===r.kind){e.push(r.kind);var n=t.N;("number"===typeof n||this.args.length>1)&&e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var Wr=function(t){this.type=Sr,this.sections=t};Wr.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[1];if(!Array.isArray(r)&&"object"===typeof r)return e.error("First argument must be an image or text section.");for(var n=[],i=!1,o=1;o<=t.length-1;++o){var a=t[o];if(i&&"object"===typeof a&&!Array.isArray(a)){i=!1;var s=null;if(a["font-scale"]&&(s=e.parse(a["font-scale"],1,vr),!s))return null;var l=null;if(a["text-font"]&&(l=e.parse(a["text-font"],1,Cr(mr)),!l))return null;var u=null;if(a["text-color"]&&(u=e.parse(a["text-color"],1,br),!u))return null;var c=n[n.length-1];c.scale=s,c.font=l,c.textColor=u}else{var h=e.parse(t[o],1,wr);if(!h)return null;var f=h.type.kind;if("string"!==f&&"value"!==f&&"null"!==f&&"resolvedImage"!==f)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,n.push({content:h,scale:null,font:null,textColor:null})}}return new Wr(n)},Wr.prototype.evaluate=function(t){var e=function(e){var r=e.content.evaluate(t);return Nr(r)===Tr?new Ir("",r,null,null,null):new Ir(zr(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)};return new Fr(this.sections.map(e))},Wr.prototype.eachChild=function(t){for(var e=0,r=this.sections;e<r.length;e+=1){var n=r[e];t(n.content),n.scale&&t(n.scale),n.font&&t(n.font),n.textColor&&t(n.textColor)}},Wr.prototype.outputDefined=function(){return!1},Wr.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e<r.length;e+=1){var n=r[e];t.push(n.content.serialize());var i={};n.scale&&(i["font-scale"]=n.scale.serialize()),n.font&&(i["text-font"]=n.font.serialize()),n.textColor&&(i["text-color"]=n.textColor.serialize()),t.push(i)}return t};var Hr=function(t){this.type=Tr,this.input=t};Hr.parse=function(t,e){if(2!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,mr);return r?new Hr(r):e.error("No image name provided.")},Hr.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=kr.fromString(e);return r&&t.availableImages&&(r.available=t.availableImages.indexOf(e)>-1),r},Hr.prototype.eachChild=function(t){t(this.input)},Hr.prototype.outputDefined=function(){return!1},Hr.prototype.serialize=function(){return["image",this.input.serialize()]};var Yr={"to-boolean":_r,"to-color":br,"to-number":vr,"to-string":mr},qr=function(t,e){this.type=t,this.args=e};qr.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[0];if(("to-boolean"===r||"to-string"===r)&&2!==t.length)return e.error("Expected one argument.");for(var n=Yr[r],i=[],o=1;o<t.length;o++){var a=e.parse(t[o],o,wr);if(!a)return null;i.push(a)}return new qr(n,i)},qr.prototype.evaluate=function(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){for(var e,r,n=0,i=this.args;n<i.length;n+=1){var o=i[n];if(e=o.evaluate(t),r=null,e instanceof tr)return e;if("string"===typeof e){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&&(r=e.length<3||e.length>4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":Dr(e[0],e[1],e[2],e[3]),!r))return new tr(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new Br(r||"Could not parse color from value '"+("string"===typeof e?e:String(JSON.stringify(e)))+"'")}if("number"===this.type.kind){for(var s=null,l=0,u=this.args;l<u.length;l+=1){var c=u[l];if(s=c.evaluate(t),null===s)return 0;var h=Number(s);if(!isNaN(h))return h}throw new Br("Could not convert "+JSON.stringify(s)+" to number.")}return"formatted"===this.type.kind?Fr.fromString(zr(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?kr.fromString(zr(this.args[0].evaluate(t))):zr(this.args[0].evaluate(t))},qr.prototype.eachChild=function(t){this.args.forEach(t)},qr.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},qr.prototype.serialize=function(){if("formatted"===this.type.kind)return new Wr([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Hr(this.args[0]).serialize();var t=["to-"+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var Kr=["Unknown","Point","LineString","Polygon"],Zr=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null};Zr.prototype.id=function(){return this.feature&&"id"in this.feature&&this.feature.id?this.feature.id:null},Zr.prototype.geometryType=function(){return this.feature?"number"===typeof this.feature.type?Kr[this.feature.type]:this.feature.type:null},Zr.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},Zr.prototype.canonicalID=function(){return this.canonical},Zr.prototype.properties=function(){return this.feature&&this.feature.properties||{}},Zr.prototype.distanceFromCenter=function(){if(this.featureTileCoord&&this.featureDistanceData){var t=this.featureDistanceData.center,e=this.featureDistanceData.scale,r=this.featureTileCoord,n=r.x,i=r.y,o=n*e-t[0],a=i*e-t[1],s=this.featureDistanceData.bearing[0],l=this.featureDistanceData.bearing[1],u=s*o+l*a;return u}return 0},Zr.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=tr.parse(t)),e};var Jr=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};function $r(t){return Array.isArray(t)?"("+t.map(Pr).join(", ")+")":"("+Pr(t.type)+"...)"}Jr.prototype.evaluate=function(t){return this._evaluate(t,this.args)},Jr.prototype.eachChild=function(t){this.args.forEach(t)},Jr.prototype.outputDefined=function(){return!1},Jr.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},Jr.parse=function(t,e){var r,n=t[0],i=Jr.definitions[n];if(!i)return e.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0);for(var o=Array.isArray(i)?i[0]:i.type,a=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=a.filter((function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1})),l=null,u=0,c=s;u<c.length;u+=1){var h=c[u],f=h[0],p=h[1];l=new Rn(e.registry,e.path,null,e.scope);for(var d=[],g=!1,y=1;y<t.length;y++){var v=t[y],m=Array.isArray(f)?f[y-1]:f.type,_=l.parse(v,1+d.length,m);if(!_){g=!0;break}d.push(_)}if(!g)if(Array.isArray(f)&&f.length!==d.length)l.error("Expected "+f.length+" arguments, but found "+d.length+" instead.");else{for(var b=0;b<d.length;b++){var x=Array.isArray(f)?f[b]:f.type,w=d[b];l.concat(b+1).checkSubtype(x,w.type)}if(0===l.errors.length)return new Jr(n,o,p,d)}}if(1===s.length)(r=e.errors).push.apply(r,l.errors);else{for(var O=s.length?s:a,E=O.map((function(t){var e=t[0];return $r(e)})).join(" | "),S=[],T=1;T<t.length;T++){var C=e.parse(t[T],1+S.length);if(!C)return null;S.push(Pr(C.type))}e.error("Expected arguments of type "+E+", but found ("+S.join(", ")+") instead.")}return null},Jr.register=function(t,e){for(var r in Jr.definitions=e,e)t[r]=Jr};var Qr=function(t,e,r){this.type=Er,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};Qr.parse=function(t,e){if(2!==t.length)return e.error("Expected one argument.");var r=t[1];if("object"!==typeof r||Array.isArray(r))return e.error("Collator options argument must be an object.");var n=e.parse(void 0!==r["case-sensitive"]&&r["case-sensitive"],1,_r);if(!n)return null;var i=e.parse(void 0!==r["diacritic-sensitive"]&&r["diacritic-sensitive"],1,_r);if(!i)return null;var o=null;return r["locale"]&&(o=e.parse(r["locale"],1,mr),!o)?null:new Qr(n,i,o)},Qr.prototype.evaluate=function(t){return new Lr(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},Qr.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},Qr.prototype.outputDefined=function(){return!1},Qr.prototype.serialize=function(){var t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t["locale"]=this.locale.serialize()),["collator",t]};var tn=8192;function en(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function rn(t){return(180+t)/360}function nn(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function on(t,e){return!(t[0]<=e[0])&&(!(t[2]>=e[2])&&(!(t[1]<=e[1])&&!(t[3]>=e[3])))}function an(t,e){var r=rn(t[0]),n=nn(t[1]),i=Math.pow(2,e.z);return[Math.round(r*i*tn),Math.round(n*i*tn)]}function sn(t,e,r){var n=t[0]-e[0],i=t[1]-e[1],o=t[0]-r[0],a=t[1]-r[1];return n*a-o*i===0&&n*o<=0&&i*a<=0}function ln(t,e,r){return e[1]>t[1]!==r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function un(t,e){for(var r=!1,n=0,i=e.length;n<i;n++)for(var o=e[n],a=0,s=o.length;a<s-1;a++){if(sn(t,o[a],o[a+1]))return!1;ln(t,o[a],o[a+1])&&(r=!r)}return r}function cn(t,e){for(var r=0;r<e.length;r++)if(un(t,e[r]))return!0;return!1}function hn(t,e){return t[0]*e[1]-t[1]*e[0]}function fn(t,e,r,n){var i=t[0]-r[0],o=t[1]-r[1],a=e[0]-r[0],s=e[1]-r[1],l=n[0]-r[0],u=n[1]-r[1],c=i*u-l*o,h=a*u-l*s;return c>0&&h<0||c<0&&h>0}function pn(t,e,r,n){var i=[e[0]-t[0],e[1]-t[1]],o=[n[0]-r[0],n[1]-r[1]];return 0!==hn(o,i)&&!(!fn(t,e,r,n)||!fn(r,n,t,e))}function dn(t,e,r){for(var n=0,i=r;n<i.length;n+=1)for(var o=i[n],a=0;a<o.length-1;++a)if(pn(t,e,o[a],o[a+1]))return!0;return!1}function gn(t,e){for(var r=0;r<t.length;++r)if(!un(t[r],e))return!1;for(var n=0;n<t.length-1;++n)if(dn(t[n],t[n+1],e))return!1;return!0}function yn(t,e){for(var r=0;r<e.length;r++)if(gn(t,e[r]))return!0;return!1}function vn(t,e,r){for(var n=[],i=0;i<t.length;i++){for(var o=[],a=0;a<t[i].length;a++){var s=an(t[i][a],r);en(e,s),o.push(s)}n.push(o)}return n}function mn(t,e,r){for(var n=[],i=0;i<t.length;i++){var o=vn(t[i],e,r);n.push(o)}return n}function _n(t,e,r,n){if(t[0]<r[0]||t[0]>r[2]){var i=.5*n,o=t[0]-r[0]>i?-n:r[0]-t[0]>i?n:0;0===o&&(o=t[0]-r[2]>i?-n:r[2]-t[0]>i?n:0),t[0]+=o}en(e,t)}function bn(t){t[0]=t[1]=1/0,t[2]=t[3]=-1/0}function xn(t,e,r,n){var i=Math.pow(2,n.z)*tn,o=[n.x*tn,n.y*tn],a=[];if(!t)return a;for(var s=0,l=t;s<l.length;s+=1)for(var u=l[s],c=0,h=u;c<h.length;c+=1){var f=h[c],p=[f.x+o[0],f.y+o[1]];_n(p,e,r,i),a.push(p)}return a}function wn(t,e,r,n){var i=Math.pow(2,n.z)*tn,o=[n.x*tn,n.y*tn],a=[];if(!t)return a;for(var s=0,l=t;s<l.length;s+=1){for(var u=l[s],c=[],h=0,f=u;h<f.length;h+=1){var p=f[h],d=[p.x+o[0],p.y+o[1]];en(e,d),c.push(d)}a.push(c)}if(e[2]-e[0]<=i/2){bn(e);for(var g=0,y=a;g<y.length;g+=1)for(var v=y[g],m=0,_=v;m<_.length;m+=1){var b=_[m];_n(b,e,r,i)}}return a}function On(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(!i)return!1;if("Polygon"===e.type){var o=vn(e.coordinates,n,i),a=xn(t.geometry(),r,n,i);if(!on(r,n))return!1;for(var s=0,l=a;s<l.length;s+=1){var u=l[s];if(!un(u,o))return!1}}if("MultiPolygon"===e.type){var c=mn(e.coordinates,n,i),h=xn(t.geometry(),r,n,i);if(!on(r,n))return!1;for(var f=0,p=h;f<p.length;f+=1){var d=p[f];if(!cn(d,c))return!1}}return!0}function En(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(!i)return!1;if("Polygon"===e.type){var o=vn(e.coordinates,n,i),a=wn(t.geometry(),r,n,i);if(!on(r,n))return!1;for(var s=0,l=a;s<l.length;s+=1){var u=l[s];if(!gn(u,o))return!1}}if("MultiPolygon"===e.type){var c=mn(e.coordinates,n,i),h=wn(t.geometry(),r,n,i);if(!on(r,n))return!1;for(var f=0,p=h;f<p.length;f+=1){var d=p[f];if(!yn(d,c))return!1}}return!0}var Sn=function(t,e){this.type=_r,this.geojson=t,this.geometries=e};function Tn(t){if(t instanceof Jr){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof Sn)return!1;var e=!0;return t.eachChild((function(t){e&&!Tn(t)&&(e=!1)})),e}function Cn(t){if(t instanceof Jr&&"feature-state"===t.name)return!1;var e=!0;return t.eachChild((function(t){e&&!Cn(t)&&(e=!1)})),e}function Pn(t,e){if(t instanceof Jr&&e.indexOf(t.name)>=0)return!1;var r=!0;return t.eachChild((function(t){r&&!Pn(t,e)&&(r=!1)})),r}Sn.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(Gr(t[1])){var r=t[1];if("FeatureCollection"===r.type)for(var n=0;n<r.features.length;++n){var i=r.features[n].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new Sn(r,r.features[n].geometry)}else if("Feature"===r.type){var o=r.geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new Sn(r,r.geometry)}else if("Polygon"===r.type||"MultiPolygon"===r.type)return new Sn(r,r)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")},Sn.prototype.evaluate=function(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return On(t,this.geometries);if("LineString"===t.geometryType())return En(t,this.geometries)}return!1},Sn.prototype.eachChild=function(){},Sn.prototype.outputDefined=function(){return!0},Sn.prototype.serialize=function(){return["within",this.geojson]};var jn=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};jn.parse=function(t,e){if(2!==t.length||"string"!==typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");var r=t[1];return e.scope.has(r)?new jn(r,e.scope.get(r)):e.error('Unknown variable "'+r+'". Make sure "'+r+'" has been bound in an enclosing "let" expression before using it.',1)},jn.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},jn.prototype.eachChild=function(){},jn.prototype.outputDefined=function(){return!1},jn.prototype.serialize=function(){return["var",this.name]};var Rn=function(t,e,r,n,i){void 0===e&&(e=[]),void 0===n&&(n=new gr),void 0===i&&(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return"["+t+"]"})).join(""),this.scope=n,this.errors=i,this.expectedType=r};function Mn(t){if(t instanceof jn)return Mn(t.boundExpression);if(t instanceof Jr&&"error"===t.name)return!1;if(t instanceof Qr)return!1;if(t instanceof Sn)return!1;var e=t instanceof qr||t instanceof Xr,r=!0;return t.eachChild((function(t){r=e?r&&Mn(t):r&&t instanceof Ur})),!!r&&(Tn(t)&&Pn(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"]))}function An(t,e){var r,n,i=t.length-1,o=0,a=i,s=0;while(o<=a)if(s=Math.floor((o+a)/2),r=t[s],n=t[s+1],r<=e){if(s===i||e<n)return s;o=s+1}else{if(!(r>e))throw new Br("Input is not a number.");a=s-1}return 0}Rn.prototype.parse=function(t,e,r,n,i){return void 0===i&&(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},Rn.prototype._parse=function(t,e){function r(t,e,r){return"assert"===r?new Xr(e,[t]):"coerce"===r?new qr(e,[t]):t}if(null!==t&&"string"!==typeof t&&"boolean"!==typeof t&&"number"!==typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var n=t[0];if("string"!==typeof n)return this.error("Expression name must be a string, but found "+typeof n+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var i=this.registry[n];if(i){var o=i.parse(t,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=r(o,a,e.typeAnnotation||"coerce");else o=r(o,a,e.typeAnnotation||"assert")}if(!(o instanceof Ur)&&"resolvedImage"!==o.type.kind&&Mn(o)){var l=new Zr;try{o=new Ur(o.type,o.evaluate(l))}catch(sl){return this.error(sl.message),null}}return o}return this.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0)}return"undefined"===typeof t?this.error("'undefined' value invalid. Use null instead."):"object"===typeof t?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof t+" instead.")},Rn.prototype.concat=function(t,e,r){var n="number"===typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new Rn(this.registry,n,e||null,i,this.errors)},Rn.prototype.error=function(t){var e=[],r=arguments.length-1;while(r-- >0)e[r]=arguments[r+1];var n=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new dr(n,t))},Rn.prototype.checkSubtype=function(t,e){var r=Rr(t,e);return r&&this.error(r),r};var Ln=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n<i.length;n+=1){var o=i[n],a=o[0],s=o[1];this.labels.push(a),this.outputs.push(s)}};Ln.parse=function(t,e){if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!==0)return e.error("Expected an even number of arguments.");var r=e.parse(t[1],1,vr);if(!r)return null;var n=[],i=null;e.expectedType&&"value"!==e.expectedType.kind&&(i=e.expectedType);for(var o=1;o<t.length;o+=2){var a=1===o?-1/0:t[o],s=t[o+1],l=o,u=o+1;if("number"!==typeof a)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(n.length&&n[n.length-1][0]>=a)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var c=e.parse(s,u,i);if(!c)return null;i=i||c.type,n.push([a,c])}return new Ln(i,r,n)},Ln.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;if(n>=e[i-1])return r[i-1].evaluate(t);var o=An(e,n);return r[o].evaluate(t)},Ln.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1){var n=r[e];t(n)}},Ln.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},Ln.prototype.serialize=function(){for(var t=["step",this.input.serialize()],e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var In=Fn;function Fn(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}function kn(t,e,r){return t*(1-r)+e*r}function Dn(t,e,r){return new tr(kn(t.r,e.r,r),kn(t.g,e.g,r),kn(t.b,e.b,r),kn(t.a,e.a,r))}function Gn(t,e,r){return t.map((function(t,n){return kn(t,e[n],r)}))}Fn.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},Fn.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},Fn.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},Fn.prototype.solveCurveX=function(t,e){var r,n,i,o,a;for("undefined"===typeof e&&(e=1e-6),i=t,a=0;a<8;a++){if(o=this.sampleCurveX(i)-t,Math.abs(o)<e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=o/s}if(r=0,n=1,i=t,i<r)return r;if(i>n)return n;while(r<n){if(o=this.sampleCurveX(i),Math.abs(o-t)<e)return i;t>o?r=i:n=i,i=.5*(n-r)+r}return i},Fn.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var Nn=Object.freeze({__proto__:null,number:kn,color:Dn,array:Gn}),zn=.95047,Un=1,Bn=1.08883,Vn=4/29,Xn=6/29,Wn=3*Xn*Xn,Hn=Xn*Xn*Xn,Yn=Math.PI/180,qn=180/Math.PI;function Kn(t){return t>Hn?Math.pow(t,1/3):t/Wn+Vn}function Zn(t){return t>Xn?t*t*t:Wn*(t-Vn)}function Jn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function $n(t){return t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Qn(t){var e=$n(t.r),r=$n(t.g),n=$n(t.b),i=Kn((.4124564*e+.3575761*r+.1804375*n)/zn),o=Kn((.2126729*e+.7151522*r+.072175*n)/Un),a=Kn((.0193339*e+.119192*r+.9503041*n)/Bn);return{l:116*o-16,a:500*(i-o),b:200*(o-a),alpha:t.a}}function ti(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=Un*Zn(e),r=zn*Zn(r),n=Bn*Zn(n),new tr(Jn(3.2404542*r-1.5371385*e-.4985314*n),Jn(-.969266*r+1.8760108*e+.041556*n),Jn(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function ei(t,e,r){return{l:kn(t.l,e.l,r),a:kn(t.a,e.a,r),b:kn(t.b,e.b,r),alpha:kn(t.alpha,e.alpha,r)}}function ri(t){var e=Qn(t),r=e.l,n=e.a,i=e.b,o=Math.atan2(i,n)*qn;return{h:o<0?o+360:o,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}}function ni(t){var e=t.h*Yn,r=t.c,n=t.l;return ti({l:n,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})}function ii(t,e,r){var n=e-t;return t+r*(n>180||n<-180?n-360*Math.round(n/360):n)}function oi(t,e,r){return{h:ii(t.h,e.h,r),c:kn(t.c,e.c,r),l:kn(t.l,e.l,r),alpha:kn(t.alpha,e.alpha,r)}}var ai={forward:Qn,reverse:ti,interpolate:ei},si={forward:ri,reverse:ni,interpolate:oi},li=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var o=0,a=i;o<a.length;o+=1){var s=a[o],l=s[0],u=s[1];this.labels.push(l),this.outputs.push(u)}};function ui(t,e,r,n){var i=n-r,o=t-r;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}li.interpolationFactor=function(t,e,r,n){var i=0;if("exponential"===t.name)i=ui(e,t.base,r,n);else if("linear"===t.name)i=ui(e,1,r,n);else if("cubic-bezier"===t.name){var o=t.controlPoints,a=new In(o[0],o[1],o[2],o[3]);i=a.solve(ui(e,1,r,n))}return i},li.parse=function(t,e){var r=t[0],n=t[1],i=t[2],o=t.slice(3);if(!Array.isArray(n)||0===n.length)return e.error("Expected an interpolation type expression.",1);if("linear"===n[0])n={name:"linear"};else if("exponential"===n[0]){var a=n[1];if("number"!==typeof a)return e.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:a}}else{if("cubic-bezier"!==n[0])return e.error("Unknown interpolation type "+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some((function(t){return"number"!==typeof t||t<0||t>1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!==0)return e.error("Expected an even number of arguments.");if(i=e.parse(i,2,vr),!i)return null;var l=[],u=null;"interpolate-hcl"===r||"interpolate-lab"===r?u=br:e.expectedType&&"value"!==e.expectedType.kind&&(u=e.expectedType);for(var c=0;c<o.length;c+=2){var h=o[c],f=o[c+1],p=c+3,d=c+4;if("number"!==typeof h)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',p);if(l.length&&l[l.length-1][0]>=h)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',p);var g=e.parse(f,d,u);if(!g)return null;u=u||g.type,l.push([h,g])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"===typeof u.N?new li(u,r,n,i,l):e.error("Type "+Pr(u)+" is not interpolatable.")},li.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;if(n>=e[i-1])return r[i-1].evaluate(t);var o=An(e,n),a=e[o],s=e[o+1],l=li.interpolationFactor(this.interpolation,n,a,s),u=r[o].evaluate(t),c=r[o+1].evaluate(t);return"interpolate"===this.operator?Nn[this.type.kind.toLowerCase()](u,c,l):"interpolate-hcl"===this.operator?si.reverse(si.interpolate(si.forward(u),si.forward(c),l)):ai.reverse(ai.interpolate(ai.forward(u),ai.forward(c),l))},li.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1){var n=r[e];t(n)}},li.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},li.prototype.serialize=function(){var t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r<this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};var ci=function(t,e){this.type=t,this.args=e};ci.parse=function(t,e){if(t.length<2)return e.error("Expectected at least one argument.");var r=null,n=e.expectedType;n&&"value"!==n.kind&&(r=n);for(var i=[],o=0,a=t.slice(1);o<a.length;o+=1){var s=a[o],l=e.parse(s,1+i.length,r,void 0,{typeAnnotation:"omit"});if(!l)return null;r=r||l.type,i.push(l)}var u=n&&i.some((function(t){return Rr(n,t.type)}));return new ci(u?wr:r,i)},ci.prototype.evaluate=function(t){for(var e,r=null,n=0,i=0,o=this.args;i<o.length;i+=1){var a=o[i];if(n++,r=a.evaluate(t),r&&r instanceof kr&&!r.available&&(e||(e=r),r=null,n===this.args.length))return e;if(null!==r)break}return r},ci.prototype.eachChild=function(t){this.args.forEach(t)},ci.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ci.prototype.serialize=function(){var t=["coalesce"];return this.eachChild((function(e){t.push(e.serialize())})),t};var hi=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};hi.prototype.evaluate=function(t){return this.result.evaluate(t)},hi.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e<r.length;e+=1){var n=r[e];t(n[1])}t(this.result)},hi.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found "+(t.length-1)+" instead.");for(var r=[],n=1;n<t.length-1;n+=2){var i=t[n];if("string"!==typeof i)return e.error("Expected string, but found "+typeof i+" instead.",n);if(/[^a-zA-Z0-9_]/.test(i))return e.error("Variable names must contain only alphanumeric characters or '_'.",n);var o=e.parse(t[n+1],n+1);if(!o)return null;r.push([i,o])}var a=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return a?new hi(r,a):null},hi.prototype.outputDefined=function(){return this.result.outputDefined()},hi.prototype.serialize=function(){for(var t=["let"],e=0,r=this.bindings;e<r.length;e+=1){var n=r[e],i=n[0],o=n[1];t.push(i,o.serialize())}return t.push(this.result.serialize()),t};var fi=function(t,e,r){this.type=t,this.index=e,this.input=r};fi.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,vr),n=e.parse(t[2],2,Cr(e.expectedType||wr));if(!r||!n)return null;var i=n.type;return new fi(i.itemType,r,n)},fi.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e<0)throw new Br("Array index out of bounds: "+e+" < 0.");if(e>=r.length)throw new Br("Array index out of bounds: "+e+" > "+(r.length-1)+".");if(e!==Math.floor(e))throw new Br("Array index must be an integer, but found "+e+" instead.");return r[e]},fi.prototype.eachChild=function(t){t(this.index),t(this.input)},fi.prototype.outputDefined=function(){return!1},fi.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var pi=function(t,e){this.type=_r,this.needle=t,this.haystack=e};pi.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,wr),n=e.parse(t[2],2,wr);return r&&n?Mr(r.type,[_r,mr,vr,yr,wr])?new pi(r,n):e.error("Expected first argument to be of type boolean, string, number or null, but found "+Pr(r.type)+" instead"):null},pi.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(null==r)return!1;if(!Ar(e,["boolean","string","number","null"]))throw new Br("Expected first argument to be of type boolean, string, number or null, but found "+Pr(Nr(e))+" instead.");if(!Ar(r,["string","array"]))throw new Br("Expected second argument to be of type array or string, but found "+Pr(Nr(r))+" instead.");return r.indexOf(e)>=0},pi.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},pi.prototype.outputDefined=function(){return!0},pi.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var di=function(t,e,r){this.type=vr,this.needle=t,this.haystack=e,this.fromIndex=r};di.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,wr),n=e.parse(t[2],2,wr);if(!r||!n)return null;if(!Mr(r.type,[_r,mr,vr,yr,wr]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+Pr(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,vr);return i?new di(r,n,i):null}return new di(r,n)},di.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Ar(e,["boolean","string","number","null"]))throw new Br("Expected first argument to be of type boolean, string, number or null, but found "+Pr(Nr(e))+" instead.");if(!Ar(r,["string","array"]))throw new Br("Expected second argument to be of type array or string, but found "+Pr(Nr(r))+" instead.");if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},di.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},di.prototype.outputDefined=function(){return!1},di.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var gi=function(t,e,r,n,i,o){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=o};gi.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!==1)return e.error("Expected an even number of arguments.");var r,n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);for(var i={},o=[],a=2;a<t.length-1;a+=2){var s=t[a],l=t[a+1];Array.isArray(s)||(s=[s]);var u=e.concat(a);if(0===s.length)return u.error("Expected at least one branch label.");for(var c=0,h=s;c<h.length;c+=1){var f=h[c];if("number"!==typeof f&&"string"!==typeof f)return u.error("Branch labels must be numbers or strings.");if("number"===typeof f&&Math.abs(f)>Number.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"===typeof f&&Math.floor(f)!==f)return u.error("Numeric branch labels must be integer values.");if(r){if(u.checkSubtype(r,Nr(f)))return null}else r=Nr(f);if("undefined"!==typeof i[String(f)])return u.error("Branch labels must be unique.");i[String(f)]=o.length}var p=e.parse(l,a,n);if(!p)return null;n=n||p.type,o.push(p)}var d=e.parse(t[1],1,wr);if(!d)return null;var g=e.parse(t[t.length-1],t.length-1,n);return g?"value"!==d.type.kind&&e.concat(1).checkSubtype(r,d.type)?null:new gi(r,n,d,i,o,g):null},gi.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=Nr(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise;return r.evaluate(t)},gi.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},gi.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},gi.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],r=Object.keys(this.cases).sort(),n=[],i={},o=0,a=r;o<a.length;o+=1){var s=a[o],l=i[this.cases[s]];void 0===l?(i[this.cases[s]]=n.length,n.push([this.cases[s],[s]])):n[l][1].push(s)}for(var u=function(e){return"number"===t.inputType.kind?Number(e):e},c=0,h=n;c<h.length;c+=1){var f=h[c],p=(l=f[0],f[1]);1===p.length?e.push(u(p[0])):e.push(p.map(u)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var yi=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};yi.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found only "+(t.length-1)+".");if(t.length%2!==0)return e.error("Expected an odd number of arguments.");var r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var n=[],i=1;i<t.length-1;i+=2){var o=e.parse(t[i],i,_r);if(!o)return null;var a=e.parse(t[i+1],i+1,r);if(!a)return null;n.push([o,a]),r=r||a.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new yi(r,n,s):null},yi.prototype.evaluate=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var n=r[e],i=n[0],o=n[1];if(i.evaluate(t))return o.evaluate(t)}return this.otherwise.evaluate(t)},yi.prototype.eachChild=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var n=r[e],i=n[0],o=n[1];t(i),t(o)}t(this.otherwise)},yi.prototype.outputDefined=function(){return this.branches.every((function(t){t[0];var e=t[1];return e.outputDefined()}))&&this.otherwise.outputDefined()},yi.prototype.serialize=function(){var t=["case"];return this.eachChild((function(e){t.push(e.serialize())})),t};var vi=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};function mi(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function _i(t,e,r){return e===r}function bi(t,e,r){return e!==r}function xi(t,e,r){return e<r}function wi(t,e,r){return e>r}function Oi(t,e,r){return e<=r}function Ei(t,e,r){return e>=r}function Si(t,e,r,n){return 0===n.compare(e,r)}function Ti(t,e,r,n){return!Si(t,e,r,n)}function Ci(t,e,r,n){return n.compare(e,r)<0}function Pi(t,e,r,n){return n.compare(e,r)>0}function ji(t,e,r,n){return n.compare(e,r)<=0}function Ri(t,e,r,n){return n.compare(e,r)>=0}function Mi(t,e,r){var n="=="!==t&&"!="!==t;return function(){function i(t,e,r){this.type=_r,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}return i.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");var r=t[0],o=e.parse(t[1],1,wr);if(!o)return null;if(!mi(r,o.type))return e.concat(1).error('"'+r+"\" comparisons are not supported for type '"+Pr(o.type)+"'.");var a=e.parse(t[2],2,wr);if(!a)return null;if(!mi(r,a.type))return e.concat(2).error('"'+r+"\" comparisons are not supported for type '"+Pr(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot compare types '"+Pr(o.type)+"' and '"+Pr(a.type)+"'.");n&&("value"===o.type.kind&&"value"!==a.type.kind?o=new Xr(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new Xr(o.type,[a])));var s=null;if(4===t.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot use collator to compare non-string types.");if(s=e.parse(t[3],3,Er),!s)return null}return new i(o,a,s)},i.prototype.evaluate=function(i){var o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(n&&this.hasUntypedArgument){var s=Nr(o),l=Nr(a);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new Br('Expected arguments for "'+t+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&&!n&&this.hasUntypedArgument){var u=Nr(o),c=Nr(a);if("string"!==u.kind||"string"!==c.kind)return e(i,o,a)}return this.collator?r(i,o,a,this.collator.evaluate(i)):e(i,o,a)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}vi.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,wr),n=e.parse(t[2],2,vr);if(!r||!n)return null;if(!Mr(r.type,[Cr(wr),mr,wr]))return e.error("Expected first argument to be of type array or string, but found "+Pr(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,vr);return i?new vi(r.type,r,n,i):null}return new vi(r.type,r,n)},vi.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Ar(e,["string","array"]))throw new Br("Expected first argument to be of type array or string, but found "+Pr(Nr(e))+" instead.");if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},vi.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},vi.prototype.outputDefined=function(){return!1},vi.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var Ai=Mi("==",_i,Si),Li=Mi("!=",bi,Ti),Ii=Mi("<",xi,Ci),Fi=Mi(">",wi,Pi),ki=Mi("<=",Oi,ji),Di=Mi(">=",Ei,Ri),Gi=function(t,e,r,n,i){this.type=mr,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};Gi.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,vr);if(!r)return null;var n=t[2];if("object"!==typeof n||Array.isArray(n))return e.error("NumberFormat options argument must be an object.");var i=null;if(n["locale"]&&(i=e.parse(n["locale"],1,mr),!i))return null;var o=null;if(n["currency"]&&(o=e.parse(n["currency"],1,mr),!o))return null;var a=null;if(n["min-fraction-digits"]&&(a=e.parse(n["min-fraction-digits"],1,vr),!a))return null;var s=null;return n["max-fraction-digits"]&&(s=e.parse(n["max-fraction-digits"],1,vr),!s)?null:new Gi(r,i,o,a,s)},Gi.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},Gi.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},Gi.prototype.outputDefined=function(){return!1},Gi.prototype.serialize=function(){var t={};return this.locale&&(t["locale"]=this.locale.serialize()),this.currency&&(t["currency"]=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};var Ni=function(t){this.type=vr,this.input=t};Ni.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?e.error("Expected argument of type string or array, but found "+Pr(r.type)+" instead."):new Ni(r):null},Ni.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"===typeof e)return e.length;if(Array.isArray(e))return e.length;throw new Br("Expected value to be of type string or array, but found "+Pr(Nr(e))+" instead.")},Ni.prototype.eachChild=function(t){t(this.input)},Ni.prototype.outputDefined=function(){return!1},Ni.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var zi={"==":Ai,"!=":Li,">":Fi,"<":Ii,">=":Di,"<=":ki,array:Xr,at:fi,boolean:Xr,case:yi,coalesce:ci,collator:Qr,format:Wr,image:Hr,in:pi,"index-of":di,interpolate:li,"interpolate-hcl":li,"interpolate-lab":li,length:Ni,let:hi,literal:Ur,match:gi,number:Xr,"number-format":Gi,object:Xr,slice:vi,step:Ln,string:Xr,"to-boolean":qr,"to-color":qr,"to-number":qr,"to-string":qr,var:jn,within:Sn};function Ui(t,e){var r=e[0],n=e[1],i=e[2],o=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var a=o?o.evaluate(t):1,s=Dr(r,n,i,a);if(s)throw new Br(s);return new tr(r/255*a,n/255*a,i/255*a,a)}function Bi(t,e){return t in e}function Vi(t,e){var r=e[t];return"undefined"===typeof r?null:r}function Xi(t,e,r,n){while(r<=n){var i=r+n>>1;if(e[i]===t)return!0;e[i]>t?n=i-1:r=i+1}return!1}function Wi(t){return{type:t}}function Hi(t){return{result:"success",value:t}}function Yi(t){return{result:"error",value:t}}function qi(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function Ki(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Zi(t){return!!t.expression&&t.expression.interpolated}function Ji(t){return"object"===typeof t&&null!==t&&!Array.isArray(t)}Jr.register(zi,{error:[Or,[mr],function(t,e){var r=e[0];throw new Br(r.evaluate(t))}],typeof:[mr,[wr],function(t,e){var r=e[0];return Pr(Nr(r.evaluate(t)))}],"to-rgba":[Cr(vr,4),[br],function(t,e){var r=e[0];return r.evaluate(t).toArray()}],rgb:[br,[vr,vr,vr],Ui],rgba:[br,[vr,vr,vr,vr],Ui],has:{type:_r,overloads:[[[mr],function(t,e){var r=e[0];return Bi(r.evaluate(t),t.properties())}],[[mr,xr],function(t,e){var r=e[0],n=e[1];return Bi(r.evaluate(t),n.evaluate(t))}]]},get:{type:wr,overloads:[[[mr],function(t,e){var r=e[0];return Vi(r.evaluate(t),t.properties())}],[[mr,xr],function(t,e){var r=e[0],n=e[1];return Vi(r.evaluate(t),n.evaluate(t))}]]},"feature-state":[wr,[mr],function(t,e){var r=e[0];return Vi(r.evaluate(t),t.featureState||{})}],properties:[xr,[],function(t){return t.properties()}],"geometry-type":[mr,[],function(t){return t.geometryType()}],id:[wr,[],function(t){return t.id()}],zoom:[vr,[],function(t){return t.globals.zoom}],pitch:[vr,[],function(t){return t.globals.pitch||0}],"distance-from-center":[vr,[],function(t){return t.distanceFromCenter()}],"heatmap-density":[vr,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[vr,[],function(t){return t.globals.lineProgress||0}],"sky-radial-progress":[vr,[],function(t){return t.globals.skyRadialProgress||0}],accumulated:[wr,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[vr,Wi(vr),function(t,e){for(var r=0,n=0,i=e;n<i.length;n+=1){var o=i[n];r+=o.evaluate(t)}return r}],"*":[vr,Wi(vr),function(t,e){for(var r=1,n=0,i=e;n<i.length;n+=1){var o=i[n];r*=o.evaluate(t)}return r}],"-":{type:vr,overloads:[[[vr,vr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)-n.evaluate(t)}],[[vr],function(t,e){var r=e[0];return-r.evaluate(t)}]]},"/":[vr,[vr,vr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)/n.evaluate(t)}],"%":[vr,[vr,vr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)%n.evaluate(t)}],ln2:[vr,[],function(){return Math.LN2}],pi:[vr,[],function(){return Math.PI}],e:[vr,[],function(){return Math.E}],"^":[vr,[vr,vr],function(t,e){var r=e[0],n=e[1];return Math.pow(r.evaluate(t),n.evaluate(t))}],sqrt:[vr,[vr],function(t,e){var r=e[0];return Math.sqrt(r.evaluate(t))}],log10:[vr,[vr],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN10}],ln:[vr,[vr],function(t,e){var r=e[0];return Math.log(r.evaluate(t))}],log2:[vr,[vr],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN2}],sin:[vr,[vr],function(t,e){var r=e[0];return Math.sin(r.evaluate(t))}],cos:[vr,[vr],function(t,e){var r=e[0];return Math.cos(r.evaluate(t))}],tan:[vr,[vr],function(t,e){var r=e[0];return Math.tan(r.evaluate(t))}],asin:[vr,[vr],function(t,e){var r=e[0];return Math.asin(r.evaluate(t))}],acos:[vr,[vr],function(t,e){var r=e[0];return Math.acos(r.evaluate(t))}],atan:[vr,[vr],function(t,e){var r=e[0];return Math.atan(r.evaluate(t))}],min:[vr,Wi(vr),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[vr,Wi(vr),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[vr,[vr],function(t,e){var r=e[0];return Math.abs(r.evaluate(t))}],round:[vr,[vr],function(t,e){var r=e[0],n=r.evaluate(t);return n<0?-Math.round(-n):Math.round(n)}],floor:[vr,[vr],function(t,e){var r=e[0];return Math.floor(r.evaluate(t))}],ceil:[vr,[vr],function(t,e){var r=e[0];return Math.ceil(r.evaluate(t))}],"filter-==":[_r,[mr,wr],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],"filter-id-==":[_r,[wr],function(t,e){var r=e[0];return t.id()===r.value}],"filter-type-==":[_r,[mr],function(t,e){var r=e[0];return t.geometryType()===r.value}],"filter-<":[_r,[mr,wr],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i===typeof o&&i<o}],"filter-id-<":[_r,[wr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n<i}],"filter->":[_r,[mr,wr],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i===typeof o&&i>o}],"filter-id->":[_r,[wr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n>i}],"filter-<=":[_r,[mr,wr],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i===typeof o&&i<=o}],"filter-id-<=":[_r,[wr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n<=i}],"filter->=":[_r,[mr,wr],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],o=n.value;return typeof i===typeof o&&i>=o}],"filter-id->=":[_r,[wr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n>=i}],"filter-has":[_r,[wr],function(t,e){var r=e[0];return r.value in t.properties()}],"filter-has-id":[_r,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[_r,[Cr(mr)],function(t,e){var r=e[0];return r.value.indexOf(t.geometryType())>=0}],"filter-id-in":[_r,[Cr(wr)],function(t,e){var r=e[0];return r.value.indexOf(t.id())>=0}],"filter-in-small":[_r,[mr,Cr(wr)],function(t,e){var r=e[0],n=e[1];return n.value.indexOf(t.properties()[r.value])>=0}],"filter-in-large":[_r,[mr,Cr(wr)],function(t,e){var r=e[0],n=e[1];return Xi(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:_r,overloads:[[[_r,_r],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)&&n.evaluate(t)}],[Wi(_r),function(t,e){for(var r=0,n=e;r<n.length;r+=1){var i=n[r];if(!i.evaluate(t))return!1}return!0}]]},any:{type:_r,overloads:[[[_r,_r],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)||n.evaluate(t)}],[Wi(_r),function(t,e){for(var r=0,n=e;r<n.length;r+=1){var i=n[r];if(i.evaluate(t))return!0}return!1}]]},"!":[_r,[_r],function(t,e){var r=e[0];return!r.evaluate(t)}],"is-supported-script":[_r,[mr],function(t,e){var r=e[0],n=t.globals&&t.globals.isSupportedScript;return!n||n(r.evaluate(t))}],upcase:[mr,[mr],function(t,e){var r=e[0];return r.evaluate(t).toUpperCase()}],downcase:[mr,[mr],function(t,e){var r=e[0];return r.evaluate(t).toLowerCase()}],concat:[mr,Wi(wr),function(t,e){return e.map((function(e){return zr(e.evaluate(t))})).join("")}],"resolved-locale":[mr,[Er],function(t,e){var r=e[0];return r.evaluate(t).resolvedLocale()}]});var $i=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new Zr,this._defaultValue=e?ao(e):null,this._enumValues=e&&"enum"===e.type?e.values:null};function Qi(t){return Array.isArray(t)&&t.length>0&&"string"===typeof t[0]&&t[0]in zi}function to(t,e){var r=new Rn(zi,[],e?oo(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return n?Hi(new $i(n,e)):Yi(r.errors)}$i.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o,a,s){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null,this.expression.evaluate(this._evaluator)},$i.prototype.evaluate=function(t,e,r,n,i,o,a,s){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null;try{var l=this.expression.evaluate(this._evaluator);if(null===l||void 0===l||"number"===typeof l&&l!==l)return this._defaultValue;if(this._enumValues&&!(l in this._enumValues))throw new Br("Expected value to be one of "+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", ")+", but found "+JSON.stringify(l)+" instead.");return l}catch(sl){return this._warningHistory[sl.message]||(this._warningHistory[sl.message]=!0,"undefined"!==typeof console&&console.warn(sl.message)),this._defaultValue}};var eo=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Cn(e.expression)};eo.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,o)},eo.prototype.evaluate=function(t,e,r,n,i,o){return this._styleExpression.evaluate(t,e,r,n,i,o)};var ro=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent="camera"!==t&&!Cn(e.expression),this.interpolationType=n};function no(t,e){if(t=to(t,e),"error"===t.result)return t;var r=t.value.expression,n=Tn(r);if(!n&&!qi(e))return Yi([new dr("","data expressions not supported")]);var i=Pn(r,["zoom","pitch","distance-from-center"]);if(!i&&!Ki(e))return Yi([new dr("","zoom expressions not supported")]);var o=io(r);if(!o&&!i)return Yi([new dr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof dr)return Yi([o]);if(o instanceof li&&!Zi(e))return Yi([new dr("",'"interpolate" expressions cannot be used with this property')]);if(!o)return Hi(new eo(n?"constant":"source",t.value));var a=o instanceof li?o.interpolation:void 0;return Hi(new ro(n?"camera":"composite",t.value,o.labels,a))}function io(t){var e=null;if(t instanceof hi)e=io(t.result);else if(t instanceof ci)for(var r=0,n=t.args;r<n.length;r+=1){var i=n[r];if(e=io(i),e)break}else(t instanceof Ln||t instanceof li)&&t.input instanceof Jr&&"zoom"===t.input.name&&(e=t);return e instanceof dr||t.eachChild((function(t){var r=io(t);r instanceof dr?e=r:!e&&r?e=new dr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&r&&e!==r&&(e=new dr("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),e}function oo(t){var e={color:br,string:mr,number:vr,enum:mr,boolean:_r,formatted:Sr,resolvedImage:Tr};return"array"===t.type?Cr(e[t.value]||wr,t.length):e[t.type]}function ao(t){return"color"===t.type&&(Ji(t.default)||Array.isArray(t.default))?new tr(0,0,0,0):"color"===t.type?tr.parse(t.default)||null:void 0===t.default?null:t.default}function so(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function lo(t){if(Array.isArray(t))return t.map(lo);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=lo(t[r]);return e}return so(t)}ro.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,o)},ro.prototype.evaluate=function(t,e,r,n,i,o){return this._styleExpression.evaluate(t,e,r,n,i,o)},ro.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?li.interpolationFactor(this.interpolationType,t,e,r):0};var uo={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},fog:{type:"fog"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},projection:{type:"projection"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{},sky:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_symbol:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature","pitch","distance-from-center"]}},filter_fill:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_line:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_circle:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},"filter_fill-extrusion":{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_heatmap:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Camera"},pitch:{group:"Camera"},"distance-from-center":{group:"Camera"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"sky-radial-progress":{group:"sky"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"high-color":{type:"color","property-type":"data-constant",default:"#245cdf",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"space-color":{type:"color","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,.2,7,.1],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"star-intensity":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],5,.35,6,0],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},projection:{name:{type:"enum",values:{albers:{},equalEarth:{},equirectangular:{},lambertConformalConic:{},mercator:{},naturalEarth:{},winkelTripel:{},globe:{}},default:"mercator",required:!0},center:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-180,-90],maximum:[180,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-90,-90],maximum:[90,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["source"]}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{type:"array",value:"number",length:2,default:[0,0],minimum:[0,0],maximum:[1,1],transition:!1,requires:[{source:"geojson",has:{lineMetrics:!0}}],"property-type":"constant"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};function co(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!==typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,r=t.slice(1);e<r.length;e+=1){var n=r[e];if(!co(n)&&"boolean"!==typeof n)return!1}return!0;default:return!0}}function ho(t,e){if(void 0===e&&(e="fill"),null===t||void 0===t)return{filter:function(){return!0},needGeometry:!1,needFeature:!1};co(t)||(t=wo(t));var r=t,n=!0;try{n=fo(r)}catch(sl){console.warn("Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n"+JSON.stringify(r,null,2)+"\n ")}var i=uo["filter_"+e],o=to(n,i),a=null;if("error"===o.result)throw new Error(o.value.map((function(t){return t.key+": "+t.message})).join(", "));a=function(t,e,r){return o.value.evaluate(t,e,{},r)};var s=null,l=null;if(n!==r){var u=to(r,i);if("error"===u.result)throw new Error(u.value.map((function(t){return t.key+": "+t.message})).join(", "));s=function(t,e,r,n,i){return u.value.evaluate(t,e,{},r,void 0,void 0,n,i)},l=!Tn(u.value.expression)}a=a;var c=xo(n);return{filter:a,dynamicFilter:s||void 0,needGeometry:c,needFeature:!!l}}function fo(t){if(!yo(t))return t;var e=lo(t);return go(e),e=po(e),e}function po(t){if(!Array.isArray(t))return t;var e=_o(t);return!0===e?e:e.map((function(t){return po(t)}))}function go(t){var e=!1,r=[];if("case"===t[0]){for(var n=1;n<t.length-1;n+=2)e=e||yo(t[n]),r.push(t[n+1]);r.push(t[t.length-1])}else if("match"===t[0]){e=e||yo(t[1]);for(var i=2;i<t.length-1;i+=2)r.push(t[i+1]);r.push(t[t.length-1])}else if("step"===t[0]){e=e||yo(t[1]);for(var o=1;o<t.length-1;o+=2)r.push(t[o+1])}e&&(t.length=0,t.push.apply(t,["any"].concat(r)));for(var a=1;a<t.length;a++)go(t[a])}function yo(t){if(!Array.isArray(t))return!1;if(vo(t[0]))return!0;for(var e=1;e<t.length;e++){var r=t[e];if(yo(r))return!0}return!1}function vo(t){return"pitch"===t||"distance-from-center"===t}var mo=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function _o(t){if(mo.has(t[0]))for(var e=1;e<t.length;e++){var r=t[e];if(yo(r))return!0}return t}function bo(t,e){return t<e?-1:t>e?1:0}function xo(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(var e=1;e<t.length;e++)if(xo(t[e]))return!0;return!1}function wo(t){if(!t)return!0;var e=t[0];if(t.length<=1)return"any"!==e;var r="=="===e?Oo(t[1],t[2],"=="):"!="===e?Co(Oo(t[1],t[2],"==")):"<"===e||">"===e||"<="===e||">="===e?Oo(t[1],t[2],e):"any"===e?Eo(t.slice(1)):"all"===e?["all"].concat(t.slice(1).map(wo)):"none"===e?["all"].concat(t.slice(1).map(wo).map(Co)):"in"===e?So(t[1],t.slice(2)):"!in"===e?Co(So(t[1],t.slice(2))):"has"===e?To(t[1]):"!has"===e?Co(To(t[1])):"within"!==e||t;return r}function Oo(t,e,r){switch(t){case"$type":return["filter-type-"+r,e];case"$id":return["filter-id-"+r,e];default:return["filter-"+r,t,e]}}function Eo(t){return["any"].concat(t.map(wo))}function So(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((function(t){return typeof t!==typeof e[0]}))?["filter-in-large",t,["literal",e.sort(bo)]]:["filter-in-small",t,["literal",e]]}}function To(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Co(t){return["!",t]}var Po=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function jo(t,e){var r={};for(var n in t)"ref"!==n&&(r[n]=t[n]);return Po.forEach((function(t){t in e&&(r[t]=e[t])})),r}function Ro(t){t=t.slice();for(var e=Object.create(null),r=0;r<t.length;r++)e[t[r].id]=t[r];for(var n=0;n<t.length;n++)"ref"in t[n]&&(t[n]=jo(t[n],e[t[n].ref]));return t}var Mo={thin:100,hairline:100,"ultra-light":100,"extra-light":100,light:200,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,heavy:800,black:800,"extra-bold":800,"ultra-black":900,"extra-black":900,"ultra-bold":900,"heavy-black":900,fat:900,poster:900},Ao=" ",Lo=/(italic|oblique)$/i,Io={},Fo=function(t,e,r){var n=Io[t];if(!n){Array.isArray(t)||(t=[t]);for(var i,o,a=400,s="normal",l=[],u=0,c=t.length;u<c;++u){var h=t[u],f=h.split(" "),p=f[f.length-1].toLowerCase();for(var d in"normal"==p||"italic"==p||"oblique"==p?(s=o?s:p,f.pop(),p=f[f.length-1].toLowerCase()):Lo.test(p)&&(p=p.replace(Lo,""),s=o?s:f[f.length-1].replace(p,"")),Mo){var g=f.length>1?f[f.length-2].toLowerCase():"";if(p==d||p==d.replace("-","")||g+"-"+p==d){a=i?a:Mo[d],f.pop(),g&&d.startsWith(g)&&f.pop();break}}i||"number"!=typeof p||(a=p);var y=f.join(Ao).replace("Klokantech Noto Sans","Noto Sans");-1!==y.indexOf(Ao)&&(y='"'+y+'"'),l.push(y)}n=Io[t]=[s,a,l]}return n[0]+Ao+n[1]+Ao+e+"px"+(r?"/"+r:"")+Ao+n[2]},ko="https://api.mapbox.com";function Do(t){var e="mapbox://";return 0!==t.indexOf(e)?"":t.slice(e.length)}function Go(t,e,r){var n=Do(t);if(!n)return decodeURI(new URL(t,r).href);var i="sprites/";if(0!==n.indexOf(i))throw new Error("unexpected sprites url: "+t);var o=n.slice(i.length);return ko+"/styles/v1/"+o+"/sprite?access_token="+e}function No(t,e){var r=Do(t);if(!r)return decodeURI(new URL(t,location.href).href);var n="styles/";if(0!==r.indexOf(n))throw new Error("unexpected style url: "+t);var i=r.slice(n.length);return ko+"/styles/v1/"+i+"?&access_token="+e}function zo(t,e,r,n){var i=new URL(t,n),o=Do(t);return o?"https://{a-d}.tiles.mapbox.com/v4/"+o+"/{z}/{x}/{y}.vector.pbf?access_token="+e:e?(i.searchParams.set(r,e),decodeURI(i.href)):decodeURI(i.href)}function Uo(t){return t*Math.PI/180}var Bo=function(){for(var t=[],e=78271.51696402048;t.length<=24;e/=2)t.push(e);return t}();function Vo(t,e){if("undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"undefined"!==typeof OffscreenCanvas)return new OffscreenCanvas(t,e);var r=document.createElement("canvas");return r.width=t,r.height=e,r}function Xo(t,e){for(var r=0,n=e.length;r<n;++r){var i=e[r];if(i<t&&r+1<n){var o=e[r]/e[r+1];return r+Math.log(e[r]/t)/Math.log(o)}}return n-1}var Wo={};function Ho(t,e,r){if(void 0===r&&(r={}),e in Wo)return Wo[e];var n=r.transformRequest&&r.transformRequest(e,t)||new Request(e);n.headers.get("Accept")||n.headers.set("Accept","application/json");var i=fetch(n).then((function(t){return delete Wo[e],t.ok?t.json():Promise.reject(new Error("Error fetching source "+e))})).catch((function(t){return delete Wo[e],Promise.reject(new Error("Error fetching source "+e))}));return Wo[e]=i,i}function Yo(t,e){if("string"!==typeof t)return Promise.resolve(t);if(!t.trim().startsWith("{"))return t=No(t,e.accessToken),Ho("Style",t,e);try{var r=JSON.parse(t);return Promise.resolve(r)}catch(n){return Promise.reject(n)}}var qo={};function Ko(t,e,r){void 0===r&&(r={});var n=[e,JSON.stringify(t)].toString(),i=qo[n];if(!i||r.transformRequest){var o=t.url;if(o&&!t.tiles){var a=zo(o,r.accessToken,r.accessTokenParam||"access_token",e||location.href);i=o.startsWith("mapbox://")?Promise.resolve(Object.assign({},t,{url:void 0,tiles:a})):Ho("Source",a,r).then((function(t){for(var e=0,n=t.tiles.length;e<n;++e){var i=t.tiles[e];if(r.transformRequest){var o=r.transformRequest(a,"Source");o&&(a=o.url)}var s=zo(i,r.accessToken,r.accessTokenParam||"access_token",a);if(r.transformRequest){var l=r.transformRequest(s,"Tiles");l instanceof Request&&(s=decodeURI(l.url))}t.tiles[e]=s}return Promise.resolve(t)}))}else t=Object.assign({},t,{tiles:t.tiles.map((function(t){return zo(t,r.accessToken,r.accessTokenParam||"access_token",e||location.href)}))}),i=Promise.resolve(Object.assign({},t));qo[n]=i}return i}var Zo,Jo=Array(256).join(" ");function $o(t,e){if(e>=.05){for(var r="",n=t.split("\n"),i=Jo.slice(0,Math.round(e/.1)),o=0,a=n.length;o<a;++o)o>0&&(r+="\n"),r+=n[o].split("").join(i);return r}return t}function Qo(){return Zo||(Zo=Vo(1,1).getContext("2d")),Zo}function ta(t,e){return Qo().measureText(t).width+(t.length-1)*e}var ea={};function ra(t,e,r,n){if(-1!==t.indexOf("\n")){for(var i=t.split("\n"),o=[],a=0,s=i.length;a<s;++a)o.push(ra(i[a],e,r,n));return o.join("\n")}var l=r+","+e+","+t+","+n,u=ea[l];if(!u){var c=t.split(" ");if(c.length>1){var h=Qo();h.font=e;for(var f=h.measureText("M").width,p=f*r,d="",g=[],y=0,v=c.length;y<v;++y){var m=c[y],_=d+(d?" ":"")+m;ta(_,n)<=p?d=_:(d&&g.push(d),d=m)}d&&g.push(d);for(var b=0,x=g.length;b<x&&x>1;++b){var w=g[b];if(ta(w,n)<.35*p){var O=b>0?ta(g[b-1],n):1/0,E=b<x-1?ta(g[b+1],n):1/0;g.splice(b,1),x-=1,O<E?(g[b-1]+=" "+w,b-=1):g[b]=w+" "+g[b]}}for(var S=0,T=g.length-1;S<T;++S){var C=g[S],P=g[S+1];if(ta(C,n)>.7*p&&ta(P,n)<.6*p){var j=C.split(" "),R=j.pop();ta(R,n)<.2*p&&(g[S]=j.join(" "),g[S+1]=R+" "+P),T-=1}}u=g.join("\n")}else u=t;u=$o(u,n),ea[l]=u}return u}var na,ia=/font-family: ?([^;]*);/,oa=/("|')/g;function aa(t){if(!na){na={};for(var e=document.styleSheets,r=0,n=e.length;r<n;++r){var i=e[r];try{var o=i.rules||i.cssRules;if(o)for(var a=0,s=o.length;a<s;++a){var l=o[a];if(5==l.type){var u=l.cssText.match(ia);na[u[1].replace(oa,"")]=!0}}}catch(sl){}}}return t in na}var sa={};function la(t){var e=t.toString();if(e in sa)return sa[e];for(var r=[],n=0,i=t.length;n<i;++n){t[n]=t[n].replace("Arial Unicode MS","Arial");var o=t[n],a=Fo(o,1);Object(Ue["q"])(a);var s=a.split(" ");r.push([s.slice(3).join(" ").replace(/"/g,""),s[1],s[0]])}for(var l=0,u=r.length;l<u;++l){var c=r[l],h=c[0];if(!aa(h)&&100!==Ue["a"].get(c[2]+"\n"+c[1]+" \n"+h)){var f="https://fonts.googleapis.com/css?family="+h.replace(/ /g,"+")+":"+c[1]+c[2];if(!document.querySelector('link[href="'+f+'"]')){var p=document.createElement("link");p.href=f,p.rel="stylesheet",document.head.appendChild(p)}}}return sa[e]=t,t}var ua,ca,ha={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},fa={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},pa=function(t,e){var r=no(t,e);if("error"===r.result)throw new Error(r.value.map((function(t){return t.key+": "+t.message})).join(", "));return r.value},da={},ga={zoom:0};function ya(t,e,r,n,i,o,a){var s=t.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[s]||(o[s]={});var l=o[s];if(!l[r]){var u=(t[e]||da)[r],c=uo[e+"_"+t.type][r];void 0===u&&(u=c.default);var h=Qi(u);if(!h&&Ji(u)&&(u=rr(u,c),h=!0),h){var f=pa(u,c);l[r]=f.evaluate.bind(f)}else"color"==c.type&&(u=tr.parse(u)),l[r]=function(){return u}}return ga.zoom=n,l[r](ga,i,a)}function va(t,e,r,n){var i=ya(t,"layout","icon-allow-overlap",e,r,n);if(!i)return"declutter";var o=ya(t,"layout","icon-ignore-placement",e,r,n);return o?"none":"obstacle"}function ma(t,e,r,n,i){return i||console.warn("No filterCache provided to evaluateFilter()"),t in i||(i[t]=ho(e).filter),ga.zoom=n,i[t](ga,r)}var _a=!1;function ba(t,e){if(t){if(!_a&&(0===t.a||0===e))return;var r=t.a;return e=void 0===e?1:e,0===r?"transparent":"rgba("+Math.round(255*t.r/r)+","+Math.round(255*t.g/r)+","+Math.round(255*t.b/r)+","+r*e+")"}return t}var xa=/\{[^{}}]*\}/g;function wa(t,e){return t.replace(xa,(function(t){return e[t.slice(1,-1)]||""}))}var Oa=!1;function Ea(t,e,r,n,i,o,s){if(void 0===n&&(n=Bo),void 0===i&&(i=void 0),void 0===o&&(o=void 0),void 0===s&&(s=void 0),"string"==typeof e&&(e=JSON.parse(e)),8!=e.version)throw new Error("glStyle version 8 required.");var l,u;if(o)if("undefined"!==typeof Image){var p=new Image;p.crossOrigin="anonymous",p.onload=function(){l=p,u=[p.width,p.height],t.changed(),p.onload=null},p.src=o}else if("undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){var d=self;d.postMessage({action:"loadImage",src:o}),d.addEventListener("message",(function(t){"imageLoaded"===t.data.action&&t.data.src===o&&(l=t.data.image,u=[l.width,l.height])}))}for(var g,y=Ro(e.layers),v={},m=[],_={},b={},x={},w={},O=0,E=y.length;O<E;++O){var S=y[O],T=S.id;if("string"==typeof r&&S.source==r||-1!==r.indexOf(T)){var C=S["source-layer"];if(g){if(S.source!==g)throw new Error('Layer "'+T+'" does not use source "'+g)}else{g=S.source;var P=e.sources[g];if(!P)throw new Error('Source "'+g+'" is not defined');var j=P.type;if("vector"!==j&&"geojson"!==j)throw new Error('Source "'+g+'" is not of type "vector" or "geojson", but "'+j+'"')}var R=v[C];R||(R=[],v[C]=R),R.push({layer:S,index:O}),m.push(T)}}var M=new c["default"],A=new a["default"],L=[],I=function(e,r){var o=e.getProperties(),p=v[o.layer];if(p){var d=n.indexOf(r);-1==d&&(d=Xo(r,n));for(var g,y=ha[e.getGeometry().getType()],m={properties:o,type:y},O=t.get("mapbox-featurestate")[e.getId()],E=-1,S=0,T=p.length;S<T;++S){var C=p[S],P=C.layer,j=P.id,R=P.layout||da,I=P.paint||da;if(!("none"===R.visibility||"minzoom"in P&&d<P.minzoom||"maxzoom"in P&&d>=P.maxzoom)){var F=P.filter;if(!F||ma(j,F,m,d,w)){g=P;var k=void 0,D=void 0,G=void 0,N=void 0,z=void 0,U=void 0,B=C.index;if(3==y&&("fill"==P.type||"fill-extrusion"==P.type))if(D=ya(P,"paint",P.type+"-opacity",d,m,x,O),P.type+"-pattern"in I){var V=ya(P,"paint",P.type+"-pattern",d,m,x,O);if(V){var X="string"===typeof V?wa(V,o):V.toString();if(l&&i&&i[X]){++E,U=L[E],U&&U.getFill()&&!U.getStroke()&&!U.getText()||(U=new h["default"]({fill:new a["default"]}),L[E]=U),G=U.getFill(),U.setZIndex(B);var W=X+"."+D,H=b[W];if(!H){var Y=i[X],q=Vo(Y.width,Y.height),K=q.getContext("2d");K.globalAlpha=D,K.drawImage(l,Y.x,Y.y,Y.width,Y.height,0,0,Y.width,Y.height),H=K.createPattern(q,"repeat"),b[W]=H}G.setColor(H)}}}else k=ba(ya(P,"paint",P.type+"-color",d,m,x,O),D),P.type+"-outline-color"in I&&(z=ba(ya(P,"paint",P.type+"-outline-color",d,m,x,O),D)),z||(z=k),(k||z)&&(++E,U=L[E],(!U||k&&!U.getFill()||!k&&U.getFill()||z&&!U.getStroke()||!z&&U.getStroke()||U.getText())&&(U=new h["default"]({fill:k?new a["default"]:void 0,stroke:z?new c["default"]:void 0}),L[E]=U),k&&(G=U.getFill(),G.setColor(k)),z&&(N=U.getStroke(),N.setColor(z),N.setWidth(.5)),U.setZIndex(B));if(1!=y&&"line"==P.type){k=!("line-pattern"in I)&&"line-color"in I?ba(ya(P,"paint","line-color",d,m,x,O),ya(P,"paint","line-opacity",d,m,x,O)):void 0;var Z=ya(P,"paint","line-width",d,m,x,O);k&&Z>0&&(++E,U=L[E],U&&U.getStroke()&&!U.getFill()&&!U.getText()||(U=new h["default"]({stroke:new c["default"]}),L[E]=U),N=U.getStroke(),N.setLineCap(ya(P,"layout","line-cap",d,m,x,O)),N.setLineJoin(ya(P,"layout","line-join",d,m,x,O)),N.setMiterLimit(ya(P,"layout","line-miter-limit",d,m,x,O)),N.setColor(k),N.setWidth(Z),N.setLineDash(I["line-dasharray"]?ya(P,"paint","line-dasharray",d,m,x,O).map((function(t){return t*Z})):null),U.setZIndex(B))}var J=!1,$=null,Q=0,tt=void 0,et=void 0,rt=void 0;if((1==y||2==y)&&"icon-image"in R){var nt=ya(P,"layout","icon-image",d,m,x,O);if(nt){tt="string"===typeof nt?wa(nt,o):nt.toString();var it=void 0;if(l&&i&&i[tt]){var ot=ya(P,"layout","icon-rotation-alignment",d,m,x,O);if(2==y){var at=e.getGeometry();if(at.getFlatMidpoint||at.getFlatMidpoints){var st=at.getExtent(),lt=Math.sqrt(Math.max(Math.pow((st[2]-st[0])/r,2),Math.pow((st[3]-st[1])/r,2)));if(lt>150){var ut="MultiLineString"===at.getType()?at.getFlatMidpoints():at.getFlatMidpoint();ca||(ua=[NaN,NaN],ca=new he("Point",ua,[],{},null)),it=ca,ua[0]=ut[0],ua[1]=ut[1];var ct=ya(P,"layout","symbol-placement",d,m,x,O);if("line"===ct&&"map"===ot)for(var ht=at.getStride(),ft=at.getFlatCoordinates(),pt=0,dt=ft.length-ht;pt<dt;pt+=ht){var gt=ft[pt],yt=ft[pt+1],vt=ft[pt+ht],mt=ft[pt+ht+1],_t=Math.min(gt,vt),bt=Math.min(yt,mt),xt=Math.max(gt,vt),wt=Math.max(yt,mt);if(ut[0]>=_t&&ut[0]<=xt&&ut[1]>=bt&&ut[1]<=wt){Q=Math.atan2(yt-mt,vt-gt);break}}}}}if(2!==y||it){var Ot=ya(P,"layout","icon-size",d,m,x,O),Et=void 0!==I["icon-color"]?ya(P,"paint","icon-color",d,m,x,O):null;if(!Et||0!==Et.a){var St=tt+"."+Ot;if(null!==Et&&(St+="."+Et),et=_[St],!et){var Tt=i[tt],Ct=va(P,d,m,x);et=new ze["a"]({color:Et?[255*Et.r,255*Et.g,255*Et.b,Et.a]:void 0,img:l,imgSize:u,size:[Tt.width,Tt.height],offset:[Tt.x,Tt.y],rotateWithView:"map"===ot,scale:Ot/Tt.pixelRatio,displacement:"icon-offset"in R?ya(P,"layout","icon-offset",d,m,x,O).map((function(t){return-t*Tt.pixelRatio})):void 0,declutterMode:Ct}),_[St]=et}}et&&(++E,U=L[E],U&&U.getImage()&&!U.getFill()&&!U.getStroke()||(U=new h["default"],L[E]=U),U.setGeometry(it),et.setRotation(Q+Uo(ya(P,"layout","icon-rotate",d,m,x,O))),et.setOpacity(ya(P,"paint","icon-opacity",d,m,x,O)),et.setAnchor(fa[ya(P,"layout","icon-anchor",d,m,x,O)]),U.setImage(et),$=U.getText(),U.setText(void 0),U.setZIndex(B),J=!0,rt=!1)}else rt=!0}}}if(1==y&&"circle"===P.type){++E,U=L[E],U&&U.getImage()&&!U.getFill()&&!U.getStroke()||(U=new h["default"],L[E]=U);var Pt="circle-radius"in I?ya(P,"paint","circle-radius",d,m,x,O):5,jt=ba(ya(P,"paint","circle-stroke-color",d,m,x,O),ya(P,"paint","circle-stroke-opacity",d,m,x,O)),Rt=ba(ya(P,"paint","circle-color",d,m,x,O),ya(P,"paint","circle-opacity",d,m,x,O)),Mt=ya(P,"paint","circle-stroke-width",d,m,x,O),At=Pt+"."+jt+"."+Rt+"."+Mt;et=_[At],et||(et=new Ne["default"]({radius:Pt,stroke:jt&&Mt>0?new c["default"]({width:Mt,color:jt}):void 0,fill:Rt?new a["default"]({color:Rt}):void 0,declutterMode:"none"}),_[At]=et),U.setImage(et),$=U.getText(),U.setText(void 0),U.setGeometry(void 0),U.setZIndex(B),J=!0}var Lt=void 0,It=void 0,Ft=void 0,kt=void 0,Dt=void 0,Gt=void 0;if("text-field"in R){kt=Math.round(ya(P,"layout","text-size",d,m,x,O));var Nt=ya(P,"layout","text-font",d,m,x,O);Ft=ya(P,"layout","text-line-height",d,m,x,O),It=Fo(s?s(Nt):Nt,kt,Ft),It.includes("sans-serif")||(It+=",sans-serif"),Dt=ya(P,"layout","text-letter-spacing",d,m,x,O),Gt=ya(P,"layout","text-max-width",d,m,x,O);var zt=ya(P,"layout","text-field",d,m,x,O);Lt="object"===typeof zt&&zt.sections?1===zt.sections.length?zt.toString():zt.sections.reduce((function(t,e,r){var n=e.fontStack?e.fontStack.split(","):Nt,i=Fo(s?s(n):n,kt*(e.scale||1),Ft),o=e.text;if("\n"===o)return t.push("\n",""),t;if(2!=y){o=ra(o,i,Gt,Dt).split("\n");for(var a=0,l=o.length;a<l;++a)a>0&&t.push("\n",""),t.push(o[a],i);return t}t.push($o(o,Dt),i)}),[]):wa(zt,o).trim(),D=ya(P,"paint","text-opacity",d,m,x,O)}if(Lt&&D&&!rt){J||(++E,U=L[E],U&&U.getText()&&!U.getFill()&&!U.getStroke()||(U=new h["default"],L[E]=U),U.setImage(void 0),U.setGeometry(void 0)),U.getText()||U.setText($||new f["a"]({padding:[2,2,2,2]})),$=U.getText();var Ut=R["text-transform"];"uppercase"==Ut?Lt=Array.isArray(Lt)?Lt.map((function(t,e){return e%2?t:t.toUpperCase()})):Lt.toUpperCase():"lowercase"==Ut&&(Lt=Array.isArray(Lt)?Lt.map((function(t,e){return e%2?t:t.toLowerCase()})):Lt.toLowerCase());var Bt=Array.isArray(Lt)?Lt:2==y?$o(Lt,Dt):ra(Lt,It,Gt,Dt);$.setText(Bt),$.setFont(It),$.setRotation(Uo(ya(P,"layout","text-rotate",d,m,x,O)));var Vt=ya(P,"layout","text-anchor",d,m,x,O),Xt=J||1==y?"point":ya(P,"layout","symbol-placement",d,m,x,O);$.setPlacement(Xt),$.setOverflow("point"===Xt);var Wt=ya(P,"paint","text-halo-width",d,m,x,O),Ht=ya(P,"layout","text-offset",d,m,x,O),Yt=ya(P,"paint","text-translate",d,m,x,O),qt=0,Kt=0;if("point"==Xt){var Zt="center";-1!==Vt.indexOf("left")?(Zt="left",Kt=Wt):-1!==Vt.indexOf("right")&&(Zt="right",Kt=-Wt),$.setTextAlign(Zt);var Jt=ya(P,"layout","text-rotation-alignment",d,m,x,O);$.setRotateWithView("map"==Jt)}else $.setMaxAngle(Uo(ya(P,"layout","text-max-angle",d,m,x,O))*Lt.length/Bt.length),$.setTextAlign(),$.setRotateWithView(!1);var $t="middle";0==Vt.indexOf("bottom")?($t="bottom",qt=-Wt-.5*(Ft-1)*kt):0==Vt.indexOf("top")&&($t="top",qt=Wt+.5*(Ft-1)*kt),$.setTextBaseline($t),$.setOffsetX(Ht[0]*kt+Kt+Yt[0]),$.setOffsetY(Ht[1]*kt+qt+Yt[1]),A.setColor(ba(ya(P,"paint","text-color",d,m,x,O),D)),$.setFill(A);var Qt=ba(ya(P,"paint","text-halo-color",d,m,x,O),D);if(Qt){M.setColor(Qt),Wt*=2;var te=.5*kt;M.setWidth(Wt<=te?Wt:te),$.setStroke(M)}else $.setStroke(void 0);var ee=ya(P,"layout","text-padding",d,m,x,O),re=$.getPadding();ee!==re[0]&&(re[0]=ee,re[1]=ee,re[2]=ee,re[3]=ee),U.setZIndex(B)}}}}return E>-1?(L.length=E+1,Oa&&("function"===typeof e.set?e.set("mapbox-layer",g):e.getProperties()["mapbox-layer"]=g),L):void 0}};return t.setStyle(I),t.set("mapbox-source",g),t.set("mapbox-layers",m),t.set("mapbox-featurestate",{}),I}function Sa(t,e){if(!e.accessToken){e=Object.assign({},e);var r=new URL(t).searchParams;r.forEach((function(t,r){e.accessToken=t,e.accessTokenParam=r}))}return e}function Ta(t,e,r,n,i){var o,a,s;return void 0===r&&(r=""),void 0===n&&(n={}),void 0===i&&(i=void 0),"string"===typeof n?(o=n,s={}):(o=n.styleUrl,s=n),i||(i=s.resolutions),o||"string"!==typeof e||e.trim().startsWith("{")||(o=e),o&&(o=o.startsWith("data:")?location.href:No(o,s.accessToken),s=Sa(o,s)),new Promise((function(n,l){Yo(e,s).then((function(e){if(8!=e.version)return l(new Error("glStyle version 8 required."));if(!(t instanceof p["default"]||t instanceof De))return l(new Error("Can only apply to VectorLayer or VectorTileLayer"));var u,c,h,f,d=t instanceof De?"vector":"geojson";if(r?a=Array.isArray(r)?e.layers.find((function(t){return t.id===r[0]})).source:r:(a=Object.keys(e.sources).find((function(t){return e.sources[t].type===d})),r=a),!a)return l(new Error("No "+d+" source found in the glStyle."));function g(){if(t instanceof De)return Aa(e.sources[a],o,s).then((function(e){var r=t.getSource();if(r?e!==r&&(r.setTileUrlFunction(e.getTileUrlFunction()),r.format_||(r.format_=e.format_),r.getAttributions()||r.setAttributions(e.getAttributions()),r.getTileLoadFunction()===Ge["b"]&&r.setTileLoadFunction(e.getTileLoadFunction()),Object(_["equivalent"])(r.getProjection(),e.getProjection())&&(r.tileGrid=e.getTileGrid())):t.setSource(e),!isFinite(t.getMaxResolution())&&!isFinite(t.getMinZoom())){var n=t.getSource().getTileGrid();t.setMaxResolution(n.getResolution(n.getMinZoom()))}}));var r=e.sources[a],n=t.getSource();n&&n.get("mapbox-source")===r||(n=Ia(r,o,s));var i=t.getSource();return i?n!==i&&(i.getAttributions()||i.setAttributions(n.getAttributions()),i.format_||(i.format_=n.getFormat()),i.url_=n.getUrl()):t.setSource(n),Promise.resolve()}function y(){f||e.sprite&&!c?f?(t.setStyle(f),g().then(n).catch(l)):l(new Error("Something went wrong trying to apply style.")):(f=Ea(t,e,r,i,c,h,la),t.getStyle()?g().then(n).catch(l):l(new Error("Nothing to show for source ["+a+"]")))}if(e.sprite){var v=new URL(Go(e.sprite,s.accessToken,o||location.href));u=window.devicePixelRatio>=1.5?.5:1;var m=.5==u?"@2x":"",b=v.origin+v.pathname+m+".json"+v.search;new Promise((function(t,e){Ho("Sprite",b,s).then(t).catch((function(r){b=v.origin+v.pathname+".json"+v.search,Ho("Sprite",b,s).then(t).catch(e)}))})).then((function(t){if(void 0===t&&l(new Error("No sprites found.")),c=t,h=v.origin+v.pathname+m+".png"+v.search,s.transformRequest){var e=s.transformRequest(h,"SpriteImage");e instanceof Request&&(h=encodeURI(e.url))}y()})).catch((function(t){l(new Error("Sprites cannot be loaded: "+b+": "+t.message))}))}else y()})).catch(l)}))}var Ca={};function Pa(t,e){var r={id:e.id,type:e.type},n={};function i(i){var o=e.layout||{},a=e.paint||{};r["paint"]=a;var s,l,u="function"===typeof t.getSource?t.getSource().getTileGrid().getZForResolution(i):t.getView().getZoom(),c="function"===typeof t.getTargetElement?t.getTargetElement():void 0;if(void 0!==a["background-color"]&&(s=ya(r,"paint","background-color",u,Ca,n),c&&(c.style.background=tr.parse(s).toString())),void 0!==a["background-opacity"]&&(l=ya(r,"paint","background-opacity",u,Ca,n),c&&(c.style.opacity=l)),"none"!=o.visibility)return ba(s,l);c&&(c.style.backgroundColor="",c.style.opacity="")}if("function"===typeof t.getTargetElement)t.getTargetElement()&&i(),t.on(["change:resolution","change:target"],i);else{if("function"!==typeof t.setBackground)throw new Error("Unable to apply background.");t.setBackground(i)}}function ja(t,e){e.layers.some((function(e){if("background"===e.type)return Pa(t,e),!0}))}function Ra(t,e,r){return void 0===r&&(r={}),"object"===typeof e?(ja(t,e),Promise.resolve()):Yo(e,r).then((function(e){ja(t,e)}))}function Ma(t){var e=t.bounds;if(e){var r=Object(_["fromLonLat"])([e[0],e[1]]),n=Object(_["fromLonLat"])([e[2],e[3]]);return[r[0],r[1],n[0],n[1]]}}function Aa(t,e,r){return new Promise((function(n,i){Ko(t,e,r).then((function(t){var e=new Xe["a"]({tileJSON:t}),r=e.getTileJSON(),i=e.getTileGrid(),o=Ma(r),a=r.minzoom||0,s=r.maxzoom||22,l={attributions:e.getAttributions(),format:new xe,tileGrid:new Ve["default"]({origin:i.getOrigin(0),extent:o||i.getExtent(),minZoom:a,resolutions:Bo.slice(0,s+1),tileSize:512})};Array.isArray(r.tiles)?l.urls=r.tiles:l.url=r.tiles,t.olSourceOptions&&Object.assign(l,t.olSourceOptions),n(new Ge["a"](l))})).catch(i)}))}var La=new Be["default"];function Ia(t,e,r){var n=t.data,i={};if("string"==typeof n){var o=zo(n,r.accessToken,r.accessTokenParam||"access_token",e||location.href);if(r.transformRequest){var a=r.transformRequest(o,"GeoJSON");a instanceof Request&&(o=encodeURI(a.url))}i.url=o}else i.features=La.readFeatures(n,{featureProjection:Object(_["getUserProjection"])()||"EPSG:3857"});var s=new d["default"](Object.assign({attributions:t.attribution,format:La},i));return s.set("mapbox-source",t),s}var Fa=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ka=function(t){function e(e){var r=t.call(this,Kt["a"].ERROR)||this;return r.error=e,r}return Fa(e,t),e}(qt["a"]),Da=function(t){function e(e){var r=this,n=!("declutter"in e)||e.declutter,i=new Ge["a"]({state:"loading",format:new xe});r=t.call(this,{source:i,background:e.background,declutter:n,className:e.className,opacity:e.opacity,visible:e.visible,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution,minZoom:e.minZoom,maxZoom:e.maxZoom,renderOrder:e.renderOrder,renderBuffer:e.renderBuffer,renderMode:e.renderMode,map:e.map,updateWhileAnimating:e.updateWhileAnimating,updateWhileInteracting:e.updateWhileInteracting,preload:e.preload,useInterimTilesOnError:e.useInterimTilesOnError,properties:e.properties})||this,e.accessToken&&(r.accessToken=e.accessToken);var o=e.styleUrl;return Ta(r,o,e.layers||e.source,{accessToken:r.accessToken}).then((function(){i.setState("ready")})).catch((function(t){r.dispatchEvent(new ka(t));var e=r.getSource();e.setState("error")})),void 0===r.getBackground()&&Ra(r,e.styleUrl,{accessToken:r.accessToken}),r}return Fa(e,t),e}(De),Ga=Da,Na=r("39cf"),za=r("da2f"),Ua=r("ed9b"),Ba=r("869f"),Va=r("25a5"),Xa=r.n(Va),Wa=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ha=function(t){function e(e){var r=t.call(this,e)||this;return r.vectorRenderer_=new za["a"](e),r.layerImageRatio_=e.getImageRatio(),r.coordinateToVectorPixelTransform_=Object(w["c"])(),r.renderedPixelToCoordinateTransform_=null,r}return Wa(e,t),e.prototype.disposeInternal=function(){this.vectorRenderer_.dispose(),t.prototype.disposeInternal.call(this)},e.prototype.getFeatures=function(t){if(!this.vectorRenderer_)return new Promise((function(t){return t([])}));var e=Object(w["a"])(this.coordinateToVectorPixelTransform_,Object(w["a"])(this.renderedPixelToCoordinateTransform_,t.slice()));return this.vectorRenderer_.getFeatures(e)},e.prototype.handleFontsChanged=function(){this.vectorRenderer_.handleFontsChanged()},e.prototype.prepareFrame=function(t){var e=t.pixelRatio,r=t.viewState,n=r.resolution,i=t.viewHints,o=this.vectorRenderer_,a=t.extent;1!==this.layerImageRatio_&&(a=a.slice(0),Object(g["scaleFromCenter"])(a,this.layerImageRatio_));var s=Object(g["getWidth"])(a)/n,l=Object(g["getHeight"])(a)/n;if(!i[k["a"].ANIMATING]&&!i[k["a"].INTERACTING]&&!Object(g["isEmpty"])(a)){o.useContainer(null,null);var u=o.context,c=t.layerStatesArray[t.layerIndex];u.globalAlpha=c.opacity;var h=Object(y["a"])({},c,{opacity:1}),f=Object(y["a"])({},t,{declutterTree:new Xa.a(9),extent:a,size:[s,l],viewState:Object(y["a"])({},t.viewState,{rotation:0}),layerStatesArray:[h],layerIndex:0}),p=!0,d=new Ua["a"](a,n,e,u.canvas,(function(t){o.prepareFrame(f)&&o.replayGroupChanged&&(o.clipping=!1,o.renderFrame(f,null)&&(o.renderDeclutter(f),p=!1),t())}));d.addEventListener(Kt["a"].CHANGE,function(){if(d.getState()===Ba["a"].LOADED){this.image_=p?null:d;var t=d.getResolution(),n=d.getPixelRatio(),i=t*e/n;this.renderedResolution=i,this.coordinateToVectorPixelTransform_=Object(w["b"])(this.coordinateToVectorPixelTransform_,s/2,l/2,1/i,-1/i,0,-r.center[0],-r.center[1])}}.bind(this)),d.load()}return this.image_&&(this.renderedPixelToCoordinateTransform_=t.pixelToCoordinateTransform.slice()),!!this.image_},e.prototype.preRender=function(){},e.prototype.postRender=function(){},e.prototype.renderDeclutter=function(){},e.prototype.forEachFeatureAtCoordinate=function(e,r,n,i,o){return this.vectorRenderer_?this.vectorRenderer_.forEachFeatureAtCoordinate(e,r,n,i,o):t.prototype.forEachFeatureAtCoordinate.call(this,e,r,n,i,o)},e}(Na["a"]),Ya=Ha,qa=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ka=function(t){function e(e){var r=this,n=e||{},i=Object(y["a"])({},n);return delete i.imageRatio,r=t.call(this,i)||this,r.imageRatio_=void 0!==n.imageRatio?n.imageRatio:1,r}return qa(e,t),e.prototype.getImageRatio=function(){return this.imageRatio_},e.prototype.createRenderer=function(){return new Ya(this)},e}(I["a"]),Za=Ka,Ja=function(){function t(t,e){this.name=t,this.data=e,this.texture_=null}return t.prototype.getTexture=function(t){if(!this.texture_){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.data.length/4,1,0,t.RGBA,t.UNSIGNED_BYTE,this.data),this.texture_=e}return this.texture_},t}(),$a=Ja,Qa=r("5116"),ts=r("dc07"),es=r("e134"),rs=r("0ec0"),ns=r("7f98"),is=r("2efc"),os=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function as(t,e,r){var n=r?t.LINEAR:t.NEAREST;t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,n)}function ss(t,e,r,n){as(t,e,n),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,r)}function ls(t,e,r,n,i,o){var a,s,l=t.getGL();if(r instanceof Float32Array){a=l.FLOAT,t.getExtension("OES_texture_float");var u=t.getExtension("OES_texture_float_linear");s=null!==u}else a=l.UNSIGNED_BYTE,s=!0;as(l,e,o&&s);var c,h=r.byteLength/n[1],f=1;switch(h%8===0?f=8:h%4===0?f=4:h%2===0&&(f=2),i){case 1:c=l.LUMINANCE;break;case 2:c=l.LUMINANCE_ALPHA;break;case 3:c=l.RGB;break;case 4:c=l.RGBA;break;default:throw new Error("Unsupported number of bands: ".concat(i))}var p=l.getParameter(l.UNPACK_ALIGNMENT);l.pixelStorei(l.UNPACK_ALIGNMENT,f),l.texImage2D(l.TEXTURE_2D,0,c,n[0],n[1],0,c,a,r),l.pixelStorei(l.UNPACK_ALIGNMENT,p)}var us=null;function cs(){var t=document.createElement("canvas");t.width=1,t.height=1,us=t.getContext("2d")}var hs=function(t){function e(e){var r=t.call(this)||this;r.tile,r.textures=[],r.handleTileChange_=r.handleTileChange_.bind(r),r.renderSize_=Object(Pe["d"])(e.grid.getTileSize(e.tile.tileCoord[0])),r.gutter_=e.gutter||0,r.bandCount=NaN,r.helper_=e.helper;var n=new $(D,z);return n.fromArray([0,1,1,1,1,0,0,0]),r.helper_.flushBufferData(n),r.coords=n,r.setTile(e.tile),r}return os(e,t),e.prototype.setTile=function(t){if(t!==this.tile)if(this.tile&&this.tile.removeEventListener(Kt["a"].CHANGE,this.handleTileChange_),this.tile=t,this.textures.length=0,this.loaded=t.getState()===Se["a"].LOADED,this.loaded)this.uploadTile_();else{if(t instanceof ns["a"]){var e=t.getImage();e instanceof Image&&!e.crossOrigin&&(e.crossOrigin="anonymous")}t.addEventListener(Kt["a"].CHANGE,this.handleTileChange_)}},e.prototype.uploadTile_=function(){var t=this.helper_,e=t.getGL(),r=this.tile;if(r instanceof ns["a"]||r instanceof is["a"]){var n=e.createTexture();return this.textures.push(n),this.bandCount=4,void ss(e,n,r.getImage(),r.interpolate)}var i=r.getSize(),o=[i[0]+2*this.gutter_,i[1]+2*this.gutter_],a=r.getData(),s=a instanceof Float32Array,l=o[0]*o[1],u=s?Float32Array:Uint8Array,c=u.BYTES_PER_ELEMENT,h=a.byteLength/o[1];this.bandCount=Math.floor(h/c/o[0]);var f=Math.ceil(this.bandCount/4);if(1===f){n=e.createTexture();return this.textures.push(n),void ls(t,n,a,o,this.bandCount,r.interpolate)}for(var p=new Array(f),d=0;d<f;++d){n=e.createTexture();this.textures.push(n);var g=d<f-1?4:this.bandCount%4;p[d]=new u(l*g)}for(var y=0,v=0,m=o[0]*this.bandCount,_=0;_<o[1];++_){for(var b=0;b<m;++b){var x=a[v+b],w=Math.floor(y/this.bandCount),O=b%this.bandCount,E=(d=Math.floor(O/4),p[d]),S=(g=E.length/l,O%4);E[w*g+S]=x,++y}v+=h/c}for(d=0;d<f;++d){n=this.textures[d],E=p[d],g=E.length/l;ls(t,n,E,o,g,r.interpolate)}},e.prototype.handleTileChange_=function(){this.tile.getState()===Se["a"].LOADED&&(this.loaded=!0,this.uploadTile_(),this.dispatchEvent(Kt["a"].CHANGE))},e.prototype.disposeInternal=function(){var t=this.helper_.getGL();this.helper_.deleteBuffer(this.coords);for(var e=0;e<this.textures.length;++e)t.deleteTexture(this.textures[e]);this.tile.removeEventListener(Kt["a"].CHANGE,this.handleTileChange_)},e.prototype.getPixelData=function(t,e){if(!this.loaded)return null;var r=this.renderSize_[0],n=this.renderSize_[1],i=this.gutter_;if(this.tile instanceof es["a"]){var o=this.tile.getSize(),a=o[0],s=o[1],l=a+2*i,u=s+2*i,c=i+Math.floor(a*(t/r)),h=i+Math.floor(s*(e/n)),f=this.tile.getData();if(f instanceof DataView){var p=f.byteLength/(l*u),d=p*(h*l+c),g=f.buffer.slice(d,d+p);return new DataView(g)}var y=this.bandCount*(h*l+c);return f.slice(y,y+this.bandCount)}us||cs(),us.clearRect(0,0,1,1);var v,m=this.tile.getImage(),_=m.width,b=m.height,x=_-2*i,w=b-2*i,O=i+Math.floor(x*(t/r)),E=i+Math.floor(w*(e/n));try{us.drawImage(m,O,E,1,1,0,0,1,1),v=us.getImageData(0,0,1,1).data}catch(S){return us=null,null}return v},e}(rs["a"]),fs=hs,ps=r("2c30"),ds=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),gs={TILE_TEXTURE_ARRAY:"u_tileTextures",TILE_TRANSFORM:"u_tileTransform",TRANSITION_ALPHA:"u_transitionAlpha",DEPTH:"u_depth",TEXTURE_PIXEL_WIDTH:"u_texturePixelWidth",TEXTURE_PIXEL_HEIGHT:"u_texturePixelHeight",TEXTURE_RESOLUTION:"u_textureResolution",TEXTURE_ORIGIN_X:"u_textureOriginX",TEXTURE_ORIGIN_Y:"u_textureOriginY",RENDER_EXTENT:"u_renderExtent",RESOLUTION:"u_resolution",ZOOM:"u_zoom"},ys={TEXTURE_COORD:"a_textureCoord"},vs=[{name:ys.TEXTURE_COORD,size:2,type:pt.FLOAT}],ms={};function _s(t){return 2*(1-1/(t+1))-1}function bs(t,e,r){r in t||(t[r]=[]),t[r].push(e)}function xs(t,e){var r=t.layerStatesArray[t.layerIndex];r.extent&&(e=Object(g["getIntersection"])(e,Object(_["fromUserExtent"])(r.extent,t.viewState.projection)));var n=r.layer.getRenderSource();if(!n.getWrapX()){var i=n.getTileGridForProjection(t.viewState.projection).getExtent();i&&(e=Object(g["getIntersection"])(e,i))}return e}function ws(t,e){return"".concat(t.getKey(),",").concat(Object(ps["d"])(e))}var Os=function(t){function e(e,r){var n=t.call(this,e,{uniforms:r.uniforms})||this;n.renderComplete=!1,n.tileTransform_=Object(w["c"])(),n.tempMat4_=ut(),n.tempTileRange_=new ts["b"](0,0,0,0),n.tempTileCoord_=Object(ps["a"])(0,0,0),n.tempSize_=[0,0],n.program_,n.vertexShader_=r.vertexShader,n.fragmentShader_=r.fragmentShader,n.indices_=new $(G,z),n.indices_.fromArray([0,1,3,1,2,3]);var i=void 0!==r.cacheSize?r.cacheSize:512;return n.tileTextureCache_=new Qa["a"](i),n.paletteTextures_=r.paletteTextures||[],n.frameState_=null,n}return ds(e,t),e.prototype.reset=function(e){t.prototype.reset.call(this,{uniforms:e.uniforms}),this.vertexShader_=e.vertexShader,this.fragmentShader_=e.fragmentShader,this.paletteTextures_=e.paletteTextures||[],this.helper&&(this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_))},e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.helper.flushBufferData(this.indices_)},e.prototype.isDrawableTile_=function(t){var e=this.getLayer(),r=t.getState(),n=e.getUseInterimTilesOnError();return r==Se["a"].LOADED||r==Se["a"].EMPTY||r==Se["a"].ERROR&&!n},e.prototype.prepareFrameInternal=function(t){var e=this.getLayer(),r=e.getRenderSource();return!!r&&(!Object(g["isEmpty"])(xs(t,t.extent))&&"ready"===r.getState())},e.prototype.enqueueTiles=function(t,e,r,n){var i=t.viewState,o=this.getLayer(),a=o.getRenderSource(),s=a.getTileGridForProjection(i.projection),l=a.getGutterForProjection(i.projection),u=Object(it["c"])(a);u in t.wantedTiles||(t.wantedTiles[u]={});for(var c=t.wantedTiles[u],h=this.tileTextureCache_,f=Math.max(r-o.getPreload(),s.getMinZoom(),o.getMinZoom()),p=r;p>=f;--p)for(var d=s.getTileRangeForExtentAndZ(e,p,this.tempTileRange_),g=s.getResolution(p),y=d.minX;y<=d.maxX;++y)for(var v=d.minY;v<=d.maxY;++v){var m=Object(ps["a"])(p,y,v,this.tempTileCoord_),_=ws(a,m),b=void 0,x=void 0;if(h.containsKey(_)&&(b=h.get(_),x=b.tile),!b||b.tile.key!==a.getKey())if(x=a.getTile(p,y,v,t.pixelRatio,i.projection),b)if(this.isDrawableTile_(x))b.setTile(x);else{var w=x.getInterimTile();b.setTile(w)}else b=new fs({tile:x,grid:s,helper:this.helper,gutter:l}),h.set(_,b);bs(n,b,p);var O=x.getKey();c[O]=!0,x.getState()===Se["a"].IDLE&&(t.tileQueue.isKeyQueued(O)||t.tileQueue.enqueue([x,u,s.getTileCoordCenter(m),g]))}},e.prototype.renderFrame=function(t){this.frameState_=t,this.renderComplete=!0;var e=this.helper.getGL();this.preRender(e,t);var r=t.viewState,n=this.getLayer(),i=n.getRenderSource(),o=i.getTileGridForProjection(r.projection),a=i.getGutterForProjection(r.projection),s=xs(t,t.extent),l=o.getZForResolution(r.resolution,i.zDirection),u={};if(t.nextExtent){var c=o.getZForResolution(r.nextResolution,i.zDirection),h=xs(t,t.nextExtent);this.enqueueTiles(t,h,c,u)}this.enqueueTiles(t,s,l,u);for(var f={},p=Object(it["c"])(this),d=t.time,y=!1,v=u[l],m=0,_=v.length;m<_;++m){var b=v[m],x=b.tile,O=x.tileCoord;if(b.loaded){var E=x.getAlpha(p,d);if(1===E){x.endTransition(p);continue}y=!0;var S=Object(ps["d"])(O);f[S]=E}this.renderComplete=!1;var T=this.findAltTiles_(o,O,l+1,u);if(!T)for(var C=o.getMinZoom(),P=l-1;P>=C;--P){var j=this.findAltTiles_(o,O,P,u);if(j)break}}this.helper.useProgram(this.program_),this.helper.prepareDraw(t,!y);for(var R=Object.keys(u).map(Number).sort(Rt["i"]),M=r.center[0],A=r.center[1],L=0,I=R.length;L<I;++L){var F=R[L],k=o.getResolution(F),D=Object(Pe["d"])(o.getTileSize(F),this.tempSize_),G=o.getOrigin(F),N=D[0]+2*a,z=D[1]+2*a,U=N/z,B=(M-G[0])/(D[0]*k),V=(G[1]-A)/(D[1]*k),X=r.resolution/k,W=_s(F),H=u[F];for(m=0,_=H.length;m<_;++m){b=H[m];if(b.loaded){x=b.tile,O=x.tileCoord,S=Object(ps["d"])(O);var Y=O[1],q=O[2];Object(w["g"])(this.tileTransform_),Object(w["i"])(this.tileTransform_,2/(t.size[0]*X/N),-2/(t.size[1]*X/N)),Object(w["h"])(this.tileTransform_,r.rotation),Object(w["i"])(this.tileTransform_,1,1/U),Object(w["l"])(this.tileTransform_,(D[0]*(Y-B)-a)/N,(D[1]*(q-V)-a)/z),this.helper.setUniformMatrixValue(gs.TILE_TRANSFORM,ct(this.tempMat4_,this.tileTransform_)),this.helper.bindBuffer(b.coords),this.helper.bindBuffer(this.indices_),this.helper.enableAttributes(vs);var K=0;while(K<b.textures.length){var Z="TEXTURE"+K,J="".concat(gs.TILE_TEXTURE_ARRAY,"[").concat(K,"]");e.activeTexture(e[Z]),e.bindTexture(e.TEXTURE_2D,b.textures[K]),e.uniform1i(this.helper.getUniformLocation(J),K),++K}for(var $=0;$<this.paletteTextures_.length;++$){var Q=this.paletteTextures_[$];e.activeTexture(e["TEXTURE"+K]);var tt=Q.getTexture(e);e.bindTexture(e.TEXTURE_2D,tt),e.uniform1i(this.helper.getUniformLocation(Q.name),K),++K}E=S in f?f[S]:1;E<1&&(t.animate=!0),this.helper.setUniformFloatValue(gs.TRANSITION_ALPHA,E),this.helper.setUniformFloatValue(gs.DEPTH,W),this.helper.setUniformFloatValue(gs.TEXTURE_PIXEL_WIDTH,N),this.helper.setUniformFloatValue(gs.TEXTURE_PIXEL_HEIGHT,z),this.helper.setUniformFloatValue(gs.TEXTURE_RESOLUTION,k),this.helper.setUniformFloatValue(gs.TEXTURE_ORIGIN_X,G[0]+Y*D[0]*k-a*k),this.helper.setUniformFloatValue(gs.TEXTURE_ORIGIN_Y,G[1]-q*D[1]*k+a*k);var et=s;a>0&&(et=o.getTileCoordExtent(O),Object(g["getIntersection"])(et,s,et)),this.helper.setUniformFloatVec4(gs.RENDER_EXTENT,et),this.helper.setUniformFloatValue(gs.RESOLUTION,r.resolution),this.helper.setUniformFloatValue(gs.ZOOM,r.zoom),this.helper.drawElements(0,this.indices_.getSize())}}}this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);var rt=this.helper.getCanvas(),nt=this.tileTextureCache_;while(nt.canExpireCache()){b=nt.pop();b.dispose()}var ot=function(t,e){i.expireCache(e.viewState.projection,ms)};return t.postRenderFunctions.push(ot),this.postRender(e,t),rt},e.prototype.getData=function(t){var e=this.helper.getGL();if(!e)return null;var r=this.frameState_;if(!r)return null;var n=this.getLayer(),i=Object(w["a"])(r.pixelToCoordinateTransform,t.slice()),o=r.viewState,a=n.getExtent();if(a&&!Object(g["containsCoordinate"])(Object(_["fromUserExtent"])(a,o.projection),i))return null;var s,l,u,c=n.getSources(Object(g["boundingExtent"])([i]),o.resolution);for(s=c.length-1;s>=0;--s)if(l=c[s],"ready"===l.getState()){if(u=l.getTileGridForProjection(o.projection),l.getWrapX())break;var h=u.getExtent();if(!h||Object(g["containsCoordinate"])(h,i))break}if(s<0)return null;for(var f=this.tileTextureCache_,p=u.getZForResolution(o.resolution);p>=u.getMinZoom();--p){var d=u.getTileCoordForCoordAndZ(i,p),y=ws(l,d);if(f.containsKey(y)){var v=f.get(y);if(v.loaded){var m=u.getOrigin(p),b=Object(Pe["d"])(u.getTileSize(p)),x=u.getResolution(p),O=(i[0]-m[0])/x-d[1]*b[0],E=(m[1]-i[1])/x-d[2]*b[1];return v.getPixelData(O,E)}}}return null},e.prototype.findAltTiles_=function(t,e,r,n){var i=t.getTileRangeForTileCoordAndZ(e,r,this.tempTileRange_);if(!i)return!1;for(var o=!0,a=this.tileTextureCache_,s=this.getLayer().getRenderSource(),l=i.minX;l<=i.maxX;++l)for(var u=i.minY;u<=i.maxY;++u){var c=ws(s,[r,l,u]),h=!1;if(a.containsKey(c)){var f=a.get(c);f.loaded&&(bs(n,f,r),h=!0)}h||(o=!1)}return o},e.prototype.removeHelper=function(){if(this.helper){var e=this.tileTextureCache_;e.forEach((function(t){return t.dispose()})),e.clear()}t.prototype.removeHelper.call(this)},e.prototype.disposeInternal=function(){var e=this.helper;if(e){var r=e.getGL();r.deleteProgram(this.program_),delete this.program_,e.deleteBuffer(this.indices_)}t.prototype.disposeInternal.call(this),delete this.indices_,delete this.tileTextureCache_,delete this.frameState_},e}(jt),Es=Os,Ss=r("5c38"),Ts={NUMBER:1,STRING:2,COLOR:4,BOOLEAN:8,NUMBER_ARRAY:16,ANY:31,NONE:0},Cs={};function Ps(t){if("number"===typeof t)return Ts.NUMBER;if("boolean"===typeof t)return Ts.BOOLEAN;if("string"===typeof t)return Object(Ss["d"])(t)?Ts.COLOR|Ts.STRING:Ts.STRING;if(!Array.isArray(t))throw new Error("Unhandled value type: ".concat(JSON.stringify(t)));var e=t,r=e.every((function(t){return"number"===typeof t}));if(r)return 3===e.length||4===e.length?Ts.COLOR|Ts.NUMBER_ARRAY:Ts.NUMBER_ARRAY;if("string"!==typeof e[0])throw new Error("Expected an expression operator but received: ".concat(JSON.stringify(e)));var n=Cs[e[0]];if(void 0===n)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.getReturnType(e.slice(1))}function js(t){return Object(v["f"])(t)%1===0}function Rs(t){var e=t.toString();return-1===e.indexOf(".")?e+".0":e}function Ms(t){if(t.length<2||t.length>4)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return"vec".concat(t.length,"(").concat(t.map(Rs).join(", "),")")}function As(t){var e=Object(Ss["a"])(t).slice();return e.length<4&&e.push(1),Ms(e.map((function(t,e){return e<3?t/255:t})))}function Ls(t,e){return void 0===t.stringLiteralsMap[e]&&(t.stringLiteralsMap[e]=Object.keys(t.stringLiteralsMap).length),t.stringLiteralsMap[e]}function Is(t,e){return Rs(Ls(t,e))}function Fs(t,e,r){if(Array.isArray(e)&&"string"===typeof e[0]){var n=Cs[e[0]];if(void 0===n)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.toGlsl(t,e.slice(1),r)}var i=Ps(e);if((i&Ts.NUMBER)>0)return Rs(e);if((i&Ts.BOOLEAN)>0)return e.toString();if((i&Ts.STRING)>0&&(void 0===r||r==Ts.STRING))return Is(t,e.toString());if((i&Ts.COLOR)>0&&(void 0===r||r==Ts.COLOR))return As(e);if((i&Ts.NUMBER_ARRAY)>0)return Ms(e);throw new Error("Unexpected expression ".concat(e," (expected type ").concat(r,")"))}function ks(t){if(!(Ps(t)&Ts.NUMBER))throw new Error("A numeric value was expected, got ".concat(JSON.stringify(t)," instead"))}function Ds(t){for(var e=0;e<t.length;e++)ks(t[e])}function Gs(t){if(!(Ps(t)&Ts.STRING))throw new Error("A string value was expected, got ".concat(JSON.stringify(t)," instead"))}function Ns(t){if(!(Ps(t)&Ts.BOOLEAN))throw new Error("A boolean value was expected, got ".concat(JSON.stringify(t)," instead"))}function zs(t,e){if(t.length!==e)throw new Error("Exactly ".concat(e," arguments were expected, got ").concat(t.length," instead"))}function Us(t,e){if(t.length<e)throw new Error("At least ".concat(e," arguments were expected, got ").concat(t.length," instead"))}function Bs(t,e){if(t.length>e)throw new Error("At most ".concat(e," arguments were expected, got ").concat(t.length," instead"))}function Vs(t){if(t.length%2!==0)throw new Error("An even amount of arguments was expected, got ".concat(t," instead"))}function Xs(t){if(t.length%2===0)throw new Error("An odd amount of arguments was expected, got ".concat(t," instead"))}function Ws(t,e){if(!js(e))throw new Error("Could not infer only one type from the following expression: ".concat(JSON.stringify(t)))}function Hs(t){return"u_var_"+t}Cs["get"]={getReturnType:function(t){return Ts.ANY},toGlsl:function(t,e){zs(e,1),Gs(e[0]);var r=e[0].toString();-1===t.attributes.indexOf(r)&&t.attributes.push(r);var n=t.inFragmentShader?"v_":"a_";return n+r}},Cs["var"]={getReturnType:function(t){return Ts.ANY},toGlsl:function(t,e){zs(e,1),Gs(e[0]);var r=e[0].toString();return-1===t.variables.indexOf(r)&&t.variables.push(r),Hs(r)}};var Ys="u_paletteTextures";Cs["palette"]={getReturnType:function(t){return Ts.COLOR},toGlsl:function(t,e){zs(e,2),ks(e[0]);var r=Fs(t,e[0]),n=e[1];if(!Array.isArray(n))throw new Error("The second argument of palette must be an array");for(var i=n.length,o=new Uint8Array(4*i),a=0;a<i;a++){var s=n[a],l=void 0;if("string"===typeof s)l=Object(Ss["c"])(s);else{if(!Array.isArray(s))throw new Error("The second argument of palette must be an array of strings or colors");var u=s.length;if(4===u)l=s;else{if(3!==u)throw new Error("Expected palette color to have 3 or 4 values, got ".concat(u));l=[s[0],s[1],s[2],1]}}var c=4*a;o[c]=l[0],o[c+1]=l[1],o[c+2]=l[2],o[c+3]=255*l[3]}t.paletteTextures||(t.paletteTextures=[]);var h="".concat(Ys,"[").concat(t.paletteTextures.length,"]"),f=new $a(h,o);return t.paletteTextures.push(f),"texture2D(".concat(h,", vec2((").concat(r," + 0.5) / ").concat(i,".0, 0.5))")}};var qs="getBandValue";function Ks(t){return{getReturnType:function(t){return Ts.BOOLEAN},toGlsl:function(e,r){zs(r,2);for(var n=Ts.ANY,i=0;i<r.length;i++)n&=Ps(r[i]);if(n===Ts.NONE)throw new Error("All arguments should be of compatible type, got ".concat(JSON.stringify(r)," instead"));return n&=~Ts.COLOR,"(".concat(Fs(e,r[0],n)," ").concat(t," ").concat(Fs(e,r[1],n),")")}}}function Zs(t){return{getReturnType:function(t){return Ts.BOOLEAN},toGlsl:function(e,r){Us(r,2);for(var n=0;n<r.length;n++)Ns(r[n]);var i="";return i=r.map((function(t){return Fs(e,t)})).join(" ".concat(t," ")),i="(".concat(i,")"),i}}}Cs["band"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){Us(e,1),Bs(e,3);var r=e[0];if(!(qs in t.functions)){for(var n="",i=t.bandCount||1,o=0;o<i;o++){var a=Math.floor(o/4),s=o%4;s===i-1&&1===s&&(s=3);var l="".concat(gs.TILE_TEXTURE_ARRAY,"[").concat(a,"]");n+="\n if (band == ".concat(o+1,".0) {\n return texture2D(").concat(l,", v_textureCoord + vec2(dx, dy))[").concat(s,"];\n }\n ")}t.functions[qs]="\n float getBandValue(float band, float xOffset, float yOffset) {\n float dx = xOffset / ".concat(gs.TEXTURE_PIXEL_WIDTH,";\n float dy = yOffset / ").concat(gs.TEXTURE_PIXEL_HEIGHT,";\n ").concat(n,"\n }\n ")}var u=Fs(t,r),c=Fs(t,e[1]||0),h=Fs(t,e[2]||0);return"".concat(qs,"(").concat(u,", ").concat(c,", ").concat(h,")")}},Cs["time"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){return zs(e,0),"u_time"}},Cs["zoom"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){return zs(e,0),"u_zoom"}},Cs["resolution"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){return zs(e,0),"u_resolution"}},Cs["*"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){return zs(e,2),Ds(e),"(".concat(Fs(t,e[0])," * ").concat(Fs(t,e[1]),")")}},Cs["/"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){return zs(e,2),Ds(e),"(".concat(Fs(t,e[0])," / ").concat(Fs(t,e[1]),")")}},Cs["+"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){return zs(e,2),Ds(e),"(".concat(Fs(t,e[0])," + ").concat(Fs(t,e[1]),")")}},Cs["-"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){return zs(e,2),Ds(e),"(".concat(Fs(t,e[0])," - ").concat(Fs(t,e[1]),")")}},Cs["clamp"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){zs(e,3),Ds(e);var r=Fs(t,e[1]),n=Fs(t,e[2]);return"clamp(".concat(Fs(t,e[0]),", ").concat(r,", ").concat(n,")")}},Cs["%"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){return zs(e,2),Ds(e),"mod(".concat(Fs(t,e[0]),", ").concat(Fs(t,e[1]),")")}},Cs["^"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){return zs(e,2),Ds(e),"pow(".concat(Fs(t,e[0]),", ").concat(Fs(t,e[1]),")")}},Cs["abs"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){return zs(e,1),Ds(e),"abs(".concat(Fs(t,e[0]),")")}},Cs["floor"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){return zs(e,1),Ds(e),"floor(".concat(Fs(t,e[0]),")")}},Cs["round"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){return zs(e,1),Ds(e),"floor(".concat(Fs(t,e[0])," + 0.5)")}},Cs["ceil"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){return zs(e,1),Ds(e),"ceil(".concat(Fs(t,e[0]),")")}},Cs["sin"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){return zs(e,1),Ds(e),"sin(".concat(Fs(t,e[0]),")")}},Cs["cos"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){return zs(e,1),Ds(e),"cos(".concat(Fs(t,e[0]),")")}},Cs["atan"]={getReturnType:function(t){return Ts.NUMBER},toGlsl:function(t,e){return Us(e,1),Bs(e,2),Ds(e),2===e.length?"atan(".concat(Fs(t,e[0]),", ").concat(Fs(t,e[1]),")"):"atan(".concat(Fs(t,e[0]),")")}},Cs[">"]={getReturnType:function(t){return Ts.BOOLEAN},toGlsl:function(t,e){return zs(e,2),Ds(e),"(".concat(Fs(t,e[0])," > ").concat(Fs(t,e[1]),")")}},Cs[">="]={getReturnType:function(t){return Ts.BOOLEAN},toGlsl:function(t,e){return zs(e,2),Ds(e),"(".concat(Fs(t,e[0])," >= ").concat(Fs(t,e[1]),")")}},Cs["<"]={getReturnType:function(t){return Ts.BOOLEAN},toGlsl:function(t,e){return zs(e,2),Ds(e),"(".concat(Fs(t,e[0])," < ").concat(Fs(t,e[1]),")")}},Cs["<="]={getReturnType:function(t){return Ts.BOOLEAN},toGlsl:function(t,e){return zs(e,2),Ds(e),"(".concat(Fs(t,e[0])," <= ").concat(Fs(t,e[1]),")")}},Cs["=="]=Ks("=="),Cs["!="]=Ks("!="),Cs["!"]={getReturnType:function(t){return Ts.BOOLEAN},toGlsl:function(t,e){return zs(e,1),Ns(e[0]),"(!".concat(Fs(t,e[0]),")")}},Cs["all"]=Zs("&&"),Cs["any"]=Zs("||"),Cs["between"]={getReturnType:function(t){return Ts.BOOLEAN},toGlsl:function(t,e){zs(e,3),Ds(e);var r=Fs(t,e[1]),n=Fs(t,e[2]),i=Fs(t,e[0]);return"(".concat(i," >= ").concat(r," && ").concat(i," <= ").concat(n,")")}},Cs["array"]={getReturnType:function(t){return Ts.NUMBER_ARRAY},toGlsl:function(t,e){Us(e,2),Bs(e,4),Ds(e);var r=e.map((function(e){return Fs(t,e,Ts.NUMBER)}));return"vec".concat(e.length,"(").concat(r.join(", "),")")}},Cs["color"]={getReturnType:function(t){return Ts.COLOR},toGlsl:function(t,e){Us(e,3),Bs(e,4),Ds(e);var r=e;3===e.length&&r.push(1);var n=e.map((function(e,r){return Fs(t,e,Ts.NUMBER)+(r<3?" / 255.0":"")}));return"vec".concat(e.length,"(").concat(n.join(", "),")")}},Cs["interpolate"]={getReturnType:function(t){for(var e=Ts.COLOR|Ts.NUMBER,r=3;r<t.length;r+=2)e&=Ps(t[r]);return e},toGlsl:function(t,e,r){Vs(e),Us(e,6);var n,i=e[0];switch(i[0]){case"linear":n=1;break;case"exponential":n=i[1];break;default:n=null}if(!n)throw new Error('Invalid interpolation type for "interpolate" operator, received: '.concat(JSON.stringify(i)));var o=void 0!==r?r:Ts.ANY,a=Cs["interpolate"].getReturnType(e)&o;Ws(e,a);for(var s=Fs(t,e[1]),l=Rs(n),u="",c=2;c<e.length-2;c+=2){var h=Fs(t,e[c]),f=u||Fs(t,e[c+1],a),p=Fs(t,e[c+2]),d=Fs(t,e[c+3],a);u="mix(".concat(f,", ").concat(d,", pow(clamp((").concat(s," - ").concat(h,") / (").concat(p," - ").concat(h,"), 0.0, 1.0), ").concat(l,"))")}return u}},Cs["match"]={getReturnType:function(t){for(var e=Ts.ANY,r=2;r<t.length;r+=2)e&=Ps(t[r]);return e&=Ps(t[t.length-1]),e},toGlsl:function(t,e,r){Vs(e),Us(e,4);var n=void 0!==r?r:Ts.ANY,i=Cs["match"].getReturnType(e)&n;Ws(e,i);for(var o=Fs(t,e[0]),a=Fs(t,e[e.length-1],i),s=null,l=e.length-3;l>=1;l-=2){var u=Fs(t,e[l]),c=Fs(t,e[l+1],i);s="(".concat(o," == ").concat(u," ? ").concat(c," : ").concat(s||a,")")}return s}},Cs["case"]={getReturnType:function(t){for(var e=Ts.ANY,r=1;r<t.length;r+=2)e&=Ps(t[r]);return e&=Ps(t[t.length-1]),e},toGlsl:function(t,e,r){Xs(e),Us(e,3);var n=void 0!==r?r:Ts.ANY,i=Cs["case"].getReturnType(e)&n;Ws(e,i);for(var o=0;o<e.length-1;o+=2)Ns(e[o]);var a=Fs(t,e[e.length-1],i),s=null;for(o=e.length-3;o>=0;o-=2){var l=Fs(t,e[o]),u=Fs(t,e[o+1],i);s="(".concat(l," ? ").concat(u," : ").concat(s||a,")")}return s}};var Js=function(){function t(){this.uniforms=[],this.attributes=[],this.varyings=[],this.sizeExpression="vec2(1.0)",this.rotationExpression="0.0",this.offsetExpression="vec2(0.0)",this.colorExpression="vec4(1.0)",this.texCoordExpression="vec4(0.0, 0.0, 1.0, 1.0)",this.discardExpression="false",this.rotateWithView=!1}return t.prototype.addUniform=function(t){return this.uniforms.push(t),this},t.prototype.addAttribute=function(t){return this.attributes.push(t),this},t.prototype.addVarying=function(t,e,r){return this.varyings.push({name:t,type:e,expression:r}),this},t.prototype.setSizeExpression=function(t){return this.sizeExpression=t,this},t.prototype.setRotationExpression=function(t){return this.rotationExpression=t,this},t.prototype.setSymbolOffsetExpression=function(t){return this.offsetExpression=t,this},t.prototype.setColorExpression=function(t){return this.colorExpression=t,this},t.prototype.setTextureCoordinateExpression=function(t){return this.texCoordExpression=t,this},t.prototype.setFragmentDiscardExpression=function(t){return this.discardExpression=t,this},t.prototype.setSymbolRotateWithView=function(t){return this.rotateWithView=t,this},t.prototype.getSizeExpression=function(){return this.sizeExpression},t.prototype.getOffsetExpression=function(){return this.offsetExpression},t.prototype.getColorExpression=function(){return this.colorExpression},t.prototype.getTextureCoordinateExpression=function(){return this.texCoordExpression},t.prototype.getFragmentDiscardExpression=function(){return this.discardExpression},t.prototype.getSymbolVertexShader=function(t){var e=this.rotateWithView?"u_offsetScaleMatrix * u_offsetRotateMatrix":"u_offsetScaleMatrix",r=this.attributes,n=this.varyings;return t&&(r=r.concat("vec4 a_hitColor"),n=n.concat({name:"v_hitColor",type:"vec4",expression:"a_hitColor"})),"precision mediump float;\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\nuniform float u_time;\nuniform float u_zoom;\nuniform float u_resolution;\n".concat(this.uniforms.map((function(t){return"uniform "+t+";"})).join("\n"),"\nattribute vec2 a_position;\nattribute float a_index;\n").concat(r.map((function(t){return"attribute "+t+";"})).join("\n"),"\nvarying vec2 v_texCoord;\nvarying vec2 v_quadCoord;\n").concat(n.map((function(t){return"varying "+t.type+" "+t.name+";"})).join("\n"),"\nvoid main(void) {\n mat4 offsetMatrix = ").concat(e,";\n vec2 halfSize = ").concat(this.sizeExpression," * 0.5;\n vec2 offset = ").concat(this.offsetExpression,";\n float angle = ").concat(this.rotationExpression,";\n float offsetX;\n float offsetY;\n if (a_index == 0.0) {\n offsetX = (offset.x - halfSize.x) * cos(angle) + (offset.y - halfSize.y) * sin(angle);\n offsetY = (offset.y - halfSize.y) * cos(angle) - (offset.x - halfSize.x) * sin(angle);\n } else if (a_index == 1.0) {\n offsetX = (offset.x + halfSize.x) * cos(angle) + (offset.y - halfSize.y) * sin(angle);\n offsetY = (offset.y - halfSize.y) * cos(angle) - (offset.x + halfSize.x) * sin(angle);\n } else if (a_index == 2.0) {\n offsetX = (offset.x + halfSize.x) * cos(angle) + (offset.y + halfSize.y) * sin(angle);\n offsetY = (offset.y + halfSize.y) * cos(angle) - (offset.x + halfSize.x) * sin(angle);\n } else {\n offsetX = (offset.x - halfSize.x) * cos(angle) + (offset.y + halfSize.y) * sin(angle);\n offsetY = (offset.y + halfSize.y) * cos(angle) - (offset.x - halfSize.x) * sin(angle);\n }\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n vec4 texCoord = ").concat(this.texCoordExpression,";\n float u = a_index == 0.0 || a_index == 3.0 ? texCoord.s : texCoord.p;\n float v = a_index == 2.0 || a_index == 3.0 ? texCoord.t : texCoord.q;\n v_texCoord = vec2(u, v);\n u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n v = a_index == 2.0 || a_index == 3.0 ? 0.0 : 1.0;\n v_quadCoord = vec2(u, v);\n").concat(n.map((function(t){return" "+t.name+" = "+t.expression+";"})).join("\n"),"\n}")},t.prototype.getSymbolFragmentShader=function(t){var e=t?" if (gl_FragColor.a < 0.1) { discard; } gl_FragColor = v_hitColor;":"",r=this.varyings;return t&&(r=r.concat({name:"v_hitColor",type:"vec4",expression:"a_hitColor"})),"precision mediump float;\nuniform float u_time;\nuniform float u_zoom;\nuniform float u_resolution;\n".concat(this.uniforms.map((function(t){return"uniform "+t+";"})).join("\n"),"\nvarying vec2 v_texCoord;\nvarying vec2 v_quadCoord;\n").concat(r.map((function(t){return"varying "+t.type+" "+t.name+";"})).join("\n"),"\nvoid main(void) {\n if (").concat(this.discardExpression,") { discard; }\n gl_FragColor = ").concat(this.colorExpression,";\n gl_FragColor.rgb *= gl_FragColor.a;\n").concat(e,"\n}")},t}();function $s(t){var e=t.symbol,r=void 0!==e.size?e.size:1,n=e.color||"white",i=e.textureCoord||[0,0,1,1],o=e.offset||[0,0],a=void 0!==e.opacity?e.opacity:1,s=void 0!==e.rotation?e.rotation:0,l={inFragmentShader:!1,variables:[],attributes:[],stringLiteralsMap:{},functions:{}},u=Fs(l,r,Ts.NUMBER_ARRAY|Ts.NUMBER),c=Fs(l,o,Ts.NUMBER_ARRAY),h=Fs(l,i,Ts.NUMBER_ARRAY),f=Fs(l,s,Ts.NUMBER),p={inFragmentShader:!0,variables:l.variables,attributes:[],stringLiteralsMap:l.stringLiteralsMap,functions:{}},d=Fs(p,n,Ts.COLOR),g=Fs(p,a,Ts.NUMBER),y="1.0",v="vec2(".concat(Fs(p,r,Ts.NUMBER_ARRAY|Ts.NUMBER),").x");switch(e.symbolType){case"square":break;case"image":break;case"circle":y="(1.0-smoothstep(1.-4./".concat(v,",1.,dot(v_quadCoord-.5,v_quadCoord-.5)*4.))");break;case"triangle":var m="(v_quadCoord*2.-1.)",_="(atan(".concat(m,".x,").concat(m,".y))");y="(1.0-smoothstep(.5-3./".concat(v,",.5,cos(floor(.5+").concat(_,"/2.094395102)*2.094395102-").concat(_,")*length(").concat(m,")))");break;default:throw new Error("Unexpected symbol type: "+e.symbolType)}var b=(new Js).setSizeExpression("vec2(".concat(u,")")).setRotationExpression(f).setSymbolOffsetExpression(c).setTextureCoordinateExpression(h).setSymbolRotateWithView(!!e.rotateWithView).setColorExpression("vec4(".concat(d,".rgb, ").concat(d,".a * ").concat(g," * ").concat(y,")"));if(t.filter){var x=Fs(p,t.filter,Ts.BOOLEAN);b.setFragmentDiscardExpression("!".concat(x))}var w={};if(p.variables.forEach((function(e){var r=Hs(e);b.addUniform("float ".concat(r)),w[r]=function(){if(!t.variables||void 0===t.variables[e])throw new Error("The following variable is missing from the style: ".concat(e));var r=t.variables[e];return"string"===typeof r&&(r=Ls(l,r)),void 0!==r?r:-9999999}})),"image"===e.symbolType&&e.src){var O=new Image;O.crossOrigin=void 0===e.crossOrigin?"anonymous":e.crossOrigin,O.src=e.src,b.addUniform("sampler2D u_texture").setColorExpression(b.getColorExpression()+" * texture2D(u_texture, v_texCoord)"),w["u_texture"]=O}return p.attributes.forEach((function(t){-1===l.attributes.indexOf(t)&&l.attributes.push(t),b.addVarying("v_".concat(t),"float","a_".concat(t))})),l.attributes.forEach((function(t){b.addAttribute("float a_".concat(t))})),{builder:b,attributes:l.attributes.map((function(t){return{name:t,callback:function(e,r){var n=r[t];return"string"===typeof n&&(n=Ls(l,n)),void 0!==n?n:-9999999}}})),uniforms:w}}var Qs=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),tl=function(t){function e(e){var r=this,n=Object(y["a"])({},e);return r=t.call(this,n)||this,r.parseResult_=$s(e.style),r.styleVariables_=e.style.variables||{},r.hitDetectionDisabled_=!!e.disableHitDetection,r}return Qs(e,t),e.prototype.createRenderer=function(){return new Gt(this,{vertexShader:this.parseResult_.builder.getSymbolVertexShader(),fragmentShader:this.parseResult_.builder.getSymbolFragmentShader(),hitVertexShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolVertexShader(!0),hitFragmentShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolFragmentShader(!0),uniforms:this.parseResult_.uniforms,attributes:this.parseResult_.attributes})},e.prototype.updateStyleVariables=function(t){Object(y["a"])(this.styleVariables_,t),this.changed()},e}(Yt["a"]),el=tl,rl=r("2300"),nl=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function il(t,e){var r="\n attribute vec2 ".concat(ys.TEXTURE_COORD,";\n uniform mat4 ").concat(gs.TILE_TRANSFORM,";\n uniform float ").concat(gs.TEXTURE_PIXEL_WIDTH,";\n uniform float ").concat(gs.TEXTURE_PIXEL_HEIGHT,";\n uniform float ").concat(gs.TEXTURE_RESOLUTION,";\n uniform float ").concat(gs.TEXTURE_ORIGIN_X,";\n uniform float ").concat(gs.TEXTURE_ORIGIN_Y,";\n uniform float ").concat(gs.DEPTH,";\n\n varying vec2 v_textureCoord;\n varying vec2 v_mapCoord;\n\n void main() {\n v_textureCoord = ").concat(ys.TEXTURE_COORD,";\n v_mapCoord = vec2(\n ").concat(gs.TEXTURE_ORIGIN_X," + ").concat(gs.TEXTURE_RESOLUTION," * ").concat(gs.TEXTURE_PIXEL_WIDTH," * v_textureCoord[0],\n ").concat(gs.TEXTURE_ORIGIN_Y," - ").concat(gs.TEXTURE_RESOLUTION," * ").concat(gs.TEXTURE_PIXEL_HEIGHT," * v_textureCoord[1]\n );\n gl_Position = ").concat(gs.TILE_TRANSFORM," * vec4(").concat(ys.TEXTURE_COORD,", ").concat(gs.DEPTH,", 1.0);\n }\n "),n={inFragmentShader:!0,variables:[],attributes:[],stringLiteralsMap:{},functions:{},bandCount:e},i=[];if(void 0!==t.color){var o=Fs(n,t.color,Ts.COLOR);i.push("color = ".concat(o,";"))}if(void 0!==t.contrast){var a=Fs(n,t.contrast,Ts.NUMBER);i.push("color.rgb = clamp((".concat(a," + 1.0) * color.rgb - (").concat(a," / 2.0), vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}if(void 0!==t.exposure){var s=Fs(n,t.exposure,Ts.NUMBER);i.push("color.rgb = clamp((".concat(s," + 1.0) * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}if(void 0!==t.saturation){var l=Fs(n,t.saturation,Ts.NUMBER);i.push("\n float saturation = ".concat(l," + 1.0;\n float sr = (1.0 - saturation) * 0.2126;\n float sg = (1.0 - saturation) * 0.7152;\n float sb = (1.0 - saturation) * 0.0722;\n mat3 saturationMatrix = mat3(\n sr + saturation, sr, sr,\n sg, sg + saturation, sg,\n sb, sb, sb + saturation\n );\n color.rgb = clamp(saturationMatrix * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));\n "))}if(void 0!==t.gamma){var u=Fs(n,t.gamma,Ts.NUMBER);i.push("color.rgb = pow(color.rgb, vec3(1.0 / ".concat(u,"));"))}if(void 0!==t.brightness){var c=Fs(n,t.brightness,Ts.NUMBER);i.push("color.rgb = clamp(color.rgb + ".concat(c,", vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}var h={},f=n.variables.length;if(f>1&&!t.variables)throw new Error("Missing variables in style (expected ".concat(n.variables,")"));for(var p=function(e){var r=n.variables[e];if(!(r in t.variables))throw new Error("Missing '".concat(r,"' in style variables"));var i=Hs(r);h[i]=function(){var e=t.variables[r];return"string"===typeof e&&(e=Ls(n,e)),void 0!==e?e:-9999999}},d=0;d<f;++d)p(d);var g=Object.keys(h).map((function(t){return"uniform float ".concat(t,";")})),y=Math.ceil(e/4);g.push("uniform sampler2D ".concat(gs.TILE_TEXTURE_ARRAY,"[").concat(y,"];")),n.paletteTextures&&g.push("uniform sampler2D ".concat(Ys,"[").concat(n.paletteTextures.length,"];"));var v=Object.keys(n.functions).map((function(t){return n.functions[t]})),m="\n #ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n #else\n precision mediump float;\n #endif\n\n varying vec2 v_textureCoord;\n varying vec2 v_mapCoord;\n uniform vec4 ".concat(gs.RENDER_EXTENT,";\n uniform float ").concat(gs.TRANSITION_ALPHA,";\n uniform float ").concat(gs.TEXTURE_PIXEL_WIDTH,";\n uniform float ").concat(gs.TEXTURE_PIXEL_HEIGHT,";\n uniform float ").concat(gs.RESOLUTION,";\n uniform float ").concat(gs.ZOOM,";\n\n ").concat(g.join("\n"),"\n\n ").concat(v.join("\n"),"\n\n void main() {\n if (\n v_mapCoord[0] < ").concat(gs.RENDER_EXTENT,"[0] ||\n v_mapCoord[1] < ").concat(gs.RENDER_EXTENT,"[1] ||\n v_mapCoord[0] > ").concat(gs.RENDER_EXTENT,"[2] ||\n v_mapCoord[1] > ").concat(gs.RENDER_EXTENT,"[3]\n ) {\n discard;\n }\n\n vec4 color = texture2D(").concat(gs.TILE_TEXTURE_ARRAY,"[0], v_textureCoord);\n\n ").concat(i.join("\n"),"\n\n if (color.a == 0.0) {\n discard;\n }\n\n gl_FragColor = color;\n gl_FragColor.rgb *= gl_FragColor.a;\n gl_FragColor *= ").concat(gs.TRANSITION_ALPHA,";\n }");return{vertexShader:r,fragmentShader:m,uniforms:h,paletteTextures:n.paletteTextures}}var ol=function(t){function e(e){var r=this,n=e?Object(y["a"])({},e):{},i=n.style||{};delete n.style;var o=n.cacheSize;return delete n.cacheSize,r=t.call(this,n)||this,r.sources_=n.sources,r.renderedSource_=null,r.renderedResolution_=NaN,r.style_=i,r.cacheSize_=o,r.styleVariables_=r.style_.variables||{},r.addChangeListener(Q["a"].SOURCE,r.handleSourceUpdate_),r}return nl(e,t),e.prototype.getSources=function(t,e){var r=this.getSource();return this.sources_?"function"===typeof this.sources_?this.sources_(t,e):this.sources_:r?[r]:[]},e.prototype.getRenderSource=function(){return this.renderedSource_||this.getSource()},e.prototype.getSourceState=function(){var t=this.getRenderSource();return t?t.getState():"undefined"},e.prototype.handleSourceUpdate_=function(){this.getSource()&&this.setStyle(this.style_)},e.prototype.getSourceBandCount_=function(){var t=Number.MAX_SAFE_INTEGER,e=this.getSources([-t,-t,t,t],t);return e&&e.length&&"bandCount"in e[0]?e[0].bandCount:4},e.prototype.createRenderer=function(){var t=il(this.style_,this.getSourceBandCount_());return new Es(this,{vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,cacheSize:this.cacheSize_,paletteTextures:t.paletteTextures})},e.prototype.renderSources=function(t,e){for(var r,n=this.getRenderer(),i=0,o=e.length;i<o;++i)this.renderedSource_=e[i],n.prepareFrame(t)&&(r=n.renderFrame(t));return r},e.prototype.render=function(t,e){var r=this;this.rendered=!0;for(var n=t.viewState,i=this.getSources(t.extent,n.resolution),o=!0,a=function(t,e){var n=i[t],a=n.getState();if("loading"==a){var s=function(){"ready"==n.getState()&&(n.removeEventListener("change",s),r.changed())};n.addEventListener("change",s)}o=o&&"ready"==a},s=0,l=i.length;s<l;++s)a(s,l);var u=this.renderSources(t,i);if(this.getRenderer().renderComplete&&o)return this.renderedResolution_=n.resolution,u;if(this.renderedResolution_>.5*n.resolution){var c=this.getSources(t.extent,this.renderedResolution_).filter((function(t){return!i.includes(t)}));if(c.length>0)return this.renderSources(t,c)}return u},e.prototype.setStyle=function(t){this.styleVariables_=t.variables||{},this.style_=t;var e=il(this.style_,this.getSourceBandCount_()),r=this.getRenderer();r.reset({vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms,paletteTextures:e.paletteTextures}),this.changed()},e.prototype.updateStyleVariables=function(t){Object(y["a"])(this.styleVariables_,t),this.changed()},e}(rl["a"]);ol.prototype.dispose;var al=ol},faf4:function(t,e,r){"use strict";var n=r("01d4"),i=r("869f"),o=r("35a7"),a=r("1300"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(e){var r=t.call(this)||this;return r.ready=!0,r.boundHandleImageChange_=r.handleImageChange_.bind(r),r.layer_=e,r.declutterExecutorGroup=null,r}return s(e,t),e.prototype.getFeatures=function(t){return Object(a["b"])()},e.prototype.getData=function(t){return null},e.prototype.prepareFrame=function(t){return Object(a["b"])()},e.prototype.renderFrame=function(t,e){return Object(a["b"])()},e.prototype.loadedTileCallback=function(t,e,r){t[e]||(t[e]={}),t[e][r.tileCoord.toString()]=r},e.prototype.createLoadedTileFinder=function(t,e,r){return function(n,i){var o=this.loadedTileCallback.bind(this,r,n);return t.forEachLoadedTile(e,n,i,o)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){},e.prototype.getDataAtPixel=function(t,e,r){return null},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){var e=t.target;e.getState()===i["a"].LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=i["a"].LOADED&&e!=i["a"].ERROR&&t.addEventListener(n["a"].CHANGE,this.boundHandleImageChange_),e==i["a"].IDLE&&(t.load(),e=t.getState()),e==i["a"].LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()},e.prototype.disposeInternal=function(){delete this.layer_,t.prototype.disposeInternal.call(this)},e}(o["a"]);e["a"]=l},fb15:function(t,e,r){"use strict";if(r.r(e),"undefined"!==typeof window){var n=window.document.currentScript,i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"map-box"},[r("div",{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"map-style"}),t.lMap.map&&t.isRyMapTool?r("RyMapTool",{staticClass:"ry-map-tool",class:{left:!t.isRight,right:t.isRight},attrs:{lMap:t.lMap,isShowRangingTool:t.isShowRangingTool,initModifyPolygon:t.initModifyPolygon,isShowDrawTool:t.isShowDrawTool,isRight:t.isRight,isCrossHair:t.isCrossHair,hideAdd:t.hideAdd,hidePoint:t.hidePoint,hideCancel:t.hideCancel,hideDelete:t.hideDelete,hideSave:t.hideSave,hideLine:t.hideLine,hideArea:t.hideArea,isSwitchMap:t.isSwitchMap,isSwitchMapRight:t.isSwitchMapRight,gpsType:t.lastMapType},on:{crossHairClick:function(e){return t.crossHairClick(e)},loadDrawPolygonEvent:function(e){return t.loadDrawPolygonEvent(e)},success:function(e){return t.drawSuccess(e)},error:function(e){return t.drawError(e)}}},[[t._t("maptool")]],2):t._e(),t.map?[t._t("polygon",null,{mapDto:{map:t.map,lMap:t.lMap}})]:t._e(),t.isSwitchMapTool&&t.isShowSwitchMap?r("SwitchMap",{staticClass:"move-box",style:{top:t.switchMapPosTop+"px",right:t.isSwitchMapRight?t.switchMapPosLeftOrRight+"px":"none",left:t.isSwitchMapRight?"none":t.switchMapPosLeftOrRight+"px"},attrs:{height:t.switchMapHeight,switchMapDefaultTypeOrLayer:t.switchMapDefaultTypeOrLayer,mapTypeAndLayer:t.mapTypeAndLayer,"bottom-right":t.isSwitchMapRight,isDisabled:t.isDisabledSwitchMapTabEvent},on:{changeSwitchMap:t.changeSwitchMap}}):t._e()],2)},a=[],s=(r("5bc0"),r("13e2"));class l{constructor(){this.map=null,this._lPolygon=null,this._measureTooltip=null,this.currentLayer=[!1,!1,!0],this.polygonGeojsonArr=[],this.polygonGeojson=null,this.lModifyEventArr=[],this.lmap=null,this.lMEvent=null,this.am=new s["AM"],this.type=2,this.lPolygonNewArr=new Array,this.polygonGeojsonMap=new Map,this.drawPolygonArr=new Set,this.drawLineArr=new Set,this._lRectangle=null,this.layers=null}init(t){const{el:e,type:r,callback:n,viewOptions:i,layerType:o,mapType:a}=t;this.initMap({el:e,callback:n,viewOptions:i,type:r,layerType:o})}initMap({el:t,callback:e,type:r,viewOptions:n,layerType:i}){this.lmap||(this.lmap=new s["LMap"]({controls:s["MapConfig"].Defaults})),setTimeout(()=>{const o=async()=>{this.map&&(this.map=null);const{map:o,layers:a}=await this.lmap.onLoad(t,r,i);this.map=o,this.layers=a,s["MapConfig"].View=n,this.map.setView(s["MapConfig"].View),e&&e(this.map,a)};o()},100)}get getMapTypeLength(){return this.lmap.getMapTypeLength}get getLayeTypeLength(){return this.lmap.getLayeTypeLength}selectMapLayer(t,e){return this.lmap?this.lmap.selectLayers(t,e):0}initBingMap(t,e,r){this.lmap||(this.lmap=new s["LMap"]({controls:s["MapConfig"].Defaults})),setTimeout(()=>{const n=async()=>{this.map&&(this.map=null);const{map:n,layers:i}=await this.lmap.onLoad(t,2,2);this.map=n,this.layers=i,s["MapConfig"].View=r,this.map.setView(s["MapConfig"].View),e&&e(this.map,i)};n()},100)}initBingMapNew(t,e,r){this.lmap||(this.lmap=new s["LMap"]({controls:s["MapConfig"].Defaults})),setTimeout(()=>{const n=async()=>{this.map&&(this.map=null);const{map:n,layers:i}=await this.lmap.onLoad(t,0,2);this.map=n,this.layers=i,s["MapConfig"].View=r,this.map.setView(s["MapConfig"].View),e&&e(this.map,i)};n()},100)}initVectorMap(t,e,r){this.lmap||(this.map&&(this.map=null),this.lmap=new s["LMap"]({controls:s["MapConfig"].Defaults,interactions:s["MapConfig"].InteractionsDeft})),setTimeout(()=>{const r=async()=>{this.map&&(this.map=null);const{map:r,layers:n}=await this.lmap.onLoad(t);this.map=r,this.layers=n,this.map.setView(s["MapConfig"].getVectorLayerView),e&&e(this.map)};r()},100)}getVectorLayerView(){return s["MapConfig"].getVectorLayerView}onSetLayers(t){this.type=t,this.currentLayer=this.currentLayer.map(t=>!1),this.currentLayer[t]=!0,this.removeLayers(t),this.addLayers(t)}removeLayers(t){s["MapConfig"].TMapLayerArr[t].forEach((t,e)=>{this.map.removeLayer(t)})}addLayers(t){s["MapConfig"].TMapLayerArr[t].forEach((t,e)=>{this.map.addLayer(t)})}onCreatePolygon(t,e){this.polygonGeojson&&this.map.removeLayer(this.polygonGeojson),this._lPolygon&&this.clearlPolygon();return this._lPolygon=new s["LPolygon"](this.map,{strokeColor:"rgba(255,201,14, 1)",fillColor:"rgba(255,201,14, 0.4)",type:e}),this._lPolygon}skipCurrentDraw(){this._lPolygon&&this._lPolygon.skipCurrentDraw()}onCancel(){this._lPolygon&&this._lPolygon.removeLastPoint()}onDelete(t){this._lPolygon&&(this._lPolygon.remove(),this._lPolygon=null,this._removeMeasureTooltip(),t&&t())}getGeoJson(){if(this._lPolygon){const[t,e]=this._lPolygon.getCenterPoint(),r=Object(s["createGeoJson"])(this._lPolygon.getCoordinates(),{ruleId:"",centerlon:t,centerlat:e});return r}return null}getGeoJsonNew(t){if(this.polygonGeojson){const t=this.polygonGeojson,e=Object(s["createGeoJson"])(t.getSource().getFeatures()[0].getGeometry().getCoordinates(),{ruleId:"",centerlon:0,centerlat:0});return e}return null}getPolygonGeoJson(){return this._lPolygon?this._lPolygon.getGeoJson():null}onCreateLine(){if(this.map){let t=new s["LDraw"]("LineString",t=>{},this.map);this.drawLineArr.add(t)}}onCreateArea(){this.map&&this.drawPolygonArr.add(new s["LDraw"]("Polygon",t=>{},this.map))}removeDrawArr(){this.drawLineArr.forEach(t=>{if(t)try{t.clear()}catch(e){}}),this.drawLineArr.clear(),this.drawPolygonArr.forEach(t=>{if(t)try{t.clear()}catch(e){}}),this.drawPolygonArr.clear()}clearlPolygon(){this.map&&this._lPolygon&&(this._lPolygon.remove(),this._lPolygon=null)}_createMeasureTooltip(){const t=new s["MeasureTooltip"];return t.setOffset([0,-30]),this._measureTooltip=t,t}_removeMeasureTooltip(){this.map&&this._measureTooltip&&this.map.removeOverlay(this._measureTooltip.getMarker())}createPolygonGeojson(t,e="rgba(255, 255, 255, 0.3)",r="rgba(00, 131, 241, 1)",n,i=!1,o=[]){if(this.map){const a=Object(s["createPolygonGeojson"])(t,e,r,n,i,o);this.polygonGeojsonArr.push(a),this.polygonGeojson=null,this.map.addLayer(a)}}createPolygonGeojsonNew(t,e="rgba(255, 255, 255, 0.3)",r="rgba(00, 131, 241, 1)",n,i=!1){if(this.polygonGeojson&&(this.polygonGeojson=null),this.map){const o=Object(s["createPolygonGeojson"])(t,e,r,n,i);this.polygonGeojson=o,this.map.addLayer(o)}}removePolygonGeojsons(){if(!this.polygonGeojsonArr.length)return;let t=null;while(t=this.polygonGeojsonArr.shift())this.map.removeLayer(t),t=null}removePolygonGeojsonNew(){this.polygonGeojson&&(this.map.removeLayer(this.polygonGeojson),this.polygonGeojson=null)}clear(){this.map&&(this.am&&(this.am=null,this.am=new s["AM"]),this.removeOverlays(),this.removeLModifyEventArr(),this.removePolygonGeojsons(),this.clearlPolygon(),this.removeLModifyEvent(),this.removePolygonGeojsonNew(),this.removeMapsLayers())}clearNew(){this.removeOverlays(),this.removeLModifyEventArr(),this.removePolygonGeojsons(),this.clearlPolygon(),this.removeLModifyEvent(),this.removePolygonGeojsonNew()}getMap(){return this.map}setCenter([t,e],r){if(!this.map)return;const n=this.map.getView();n.setCenter([t,e]),r>0&&n.setZoom(r)}setZoom(t){if(!this.map)return;const e=this.map.getView();e.setZoom(t)}setMaxZoom(t){if(!this.map)return;const e=this.map.getView();e.setMaxZoom(t)}setMinZoom(){if(!this.map)return;const t=this.map.getView();t.setMinZoom(zoom)}get getZoom(){if(!this.map)return 0;const t=this.map.getView();return t.getZoom()}getCenter(){if(!this.map)return;const t=this.map.getView();let[e,r]=t.getCenter();return[e,r]}fit(t){Object(s["fitNew"])(this.map,t)}createMarker(t,e=15,r=15){return new s["LMarker"](t,e,r)}removeMarker(t){this.map.removeOverlay(t.getMarker())}lModifyEventArr(){this.lModifyEventArr.length=0,this.polygonGeojsonArr.forEach((t,e)=>{const r=new s["LModifyEvent"](t,this.map);r.setActive(),this.lModifyEventArr.push(r)})}removeLModifyEventArr(){if(!this.lModifyEventArr.length)return;let t=null;while(t=this.lModifyEventArr.shift())t.setActive(!1),t.remove(),t=null}lModifyEvent(){if(this.map&&this.polygonGeojson){const t=new s["LModifyEvent"](this.polygonGeojson,this.map);t.setActive(),this.lMEvent=t}}removeLModifyEvent(){this.lMEvent&&(this.lMEvent.setActive(!1),this.lMEvent.remove())}convertWGS84GeoJSONgcj_encrypt(t){const{bbox:e,geometry:r,properties:n}=t,i=[];for(let l=0;l<e.length;l+=2){const{lon:t,lat:r}=s["GPS"].gcj_encrypt(e[l],e[l+1]);i.push(t),i.push(r)}t.bbox=i;const o=r.coordinates,a=new Array;for(let l=0;l<o.length;l++){a.push(o[l]);for(let t=0;t<o[l].length;t++){const e=o[l][t],{lon:r,lat:n}=s["GPS"].gcj_encrypt(e[0],e[1]);a[l][t]=[r,n]}}if(r.coordinates=a,n&&n.center){const[e,r]=n.center,[i,o]=s["GPS"].gcj_encrypt(e,r);t.properties.center=[i,o]}return t}gcj_encryptConvertWGS84GeoJSON(t){const{bbox:e,geometry:r,properties:n}=t,i=[];for(let l=0;l<e.length;l+=2){const{lon:t,lat:r}=s["GPS"].gcj_decrypt(e[l],e[l+1]);i.push(t),i.push(r)}t.bbox=i;const o=r.coordinates,a=new Array;for(let l=0;l<o.length;l++){a.push(o[l]);for(let t=0;t<o[l].length;t++){const e=o[l][t],{lon:r,lat:n}=s["GPS"].gcj_decrypt(e[0],e[1]);a[l][t]=[r,n]}}if(r.coordinates=a,n&&n.center){const[e,r]=n.center,[i,o]=s["GPS"].gcj_decrypt(e,r);t.properties.center=[i,o]}return t}gcj_encrypt(t,e){return s["GPS"].gcj_encrypt(t,e)}gcj_decrypt(t,e){return s["GPS"].gcj_decrypt(t,e)}formatArea(){return this._lPolygon&&this._lPolygon.getGeometry()?Object(s["formatArea"])(this._lPolygon.getGeometry()):0}formatLength(){return this._lPolygon&&this._lPolygon.getGeometry()?Object(s["formatLength"])(this._lPolygon.getGeometry()):0}createPolylinePointList(t,e=!1,r=!0,n=null,i=0){let o=new Array;const a=Object(s["createPolylinePoints"])(t,e);o=Object(s["addPolylinePoint"])(a,this.map);const l=Object(s["createGPSPoints"])(t,e,this.am);if(null!=l){let t=this.am.getLngLats();i&&(t=this.am.getLngLatGCJ02()),Object(s["fitNew"])(this.map,[[t[0],t[1]],[t[2],t[3]]])}return o}async setAreaCenterPoint(){let t="3301";if(window.localStorage.getItem("user")){const e=JSON.parse(window.localStorage.getItem("user"));t=e["areaCode"]}const{data:e}=await getAreaCenter(t),{areaCode:r,areaName:n,centerLongitude:i,centerLatitude:o}=e;window.localStorage.setItem("createPointData",JSON.stringify(e))}async getAreaCenterPoint(t=!1){return obj}removeAreaCenterPoint(){window.localStorage.removeItem("createPointData")}polygonStyle(){return s["polygonStyle"]}removeMapsLayers(){const t=this.map.getLayers().getArray();for(let e=t.length;0<=e;e--)this.map.removeLayer(t[e])}removeOverlays(){if(!this.map)return;const t=this.map.getOverlays().getArray();for(let e=t.length;0<=e;e--)this.map.removeOverlay(t[e])}resetAM(){this.am=null,this.am=new s["AM"]}createPolygonBoundary(t,e){const r=Object(s["createPolygonBoundary"])(t,e);this.polygonGeojsonArr.push(r),this.map.addLayer(r)}createPolylinePointListNew(t,e,r={isGCJ02Point:!1,isFit:!1}){let n=new Array;const i=Object(s["createPolylinePoints"])(t,!1);n=Object(s["addPolylinePointNew"])(i,this.map,e);const o=Object(s["createGPSPoints"])(t,!1,this.am);if(null!=o&&r.isFit){let t=this.am.getLngLats();e.type&&(t=this.am.getLngLatGCJ02()),Object(s["fitNew"])(this.map,[[t[0],t[1]],[t[2],t[3]]])}return n}createLPolygonNew(t,e){this.lPolygonNewArr.push(new s["LPolygonNew"](t,e))}setPolygonColor(t,e=["rgba(255,201,14, 0.4)","rgba(255,201,14, 1)"]){this.lPolygonNewArr.forEach(r=>{r.Id!=t||r.setPolygonColor(e)})}setPolygonColorAll(t=["rgba(184, 233, 134, 0.56)","rgba(23, 168, 162, 0.56)"]){this.lPolygonNewArr.forEach(e=>{e.setPolygonColor(t)})}removePolygonNew(){this.lPolygonNewArr.forEach(t=>{t.removePolygon(),t=null}),this.lPolygonNewArr=[]}caculateLL(t,e,r,n){return Object(s["caculateLL"])(t,e,r,n)}get LPolygonNewArr(){return this.lPolygonNewArr}get isTruePolygon(){return!!this._lPolygon&&this._lPolygon.isTruePolygon}onCreateRectangle(t){this._lRectangle&&this.clearRectangle();return this._lRectangle=new s["LRectangle"]("Circle",this.map,t=>{}),this._lRectangle}getRectangleData(){if(!this._lRectangle)return[];const t=this._lRectangle.getCoordinates(),e=t[0];if(e.length){const t=[];return t.push([e[0][0],e[1][1]]),t.push([e[1][0],e[2][1]]),t}return[]}clearRectangle(){if(this.map&&this._lRectangle){this._lRectangle.getCoordinates();this._lRectangle.remove(),this._lRectangle=null}}}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class c{constructor(){u(this,"isShowSwitchMap",{type:Boolean,default:!0}),this.mapType={type:Number,default:0},this.layerType={type:Number,default:2},this.isSwitchMapTool={type:Boolean,default:!0},this.isRyMapTool={type:Boolean,default:!1},this.isRight={type:Boolean,default:!1},this.bindMapClick={type:Boolean,default:!1},this.bindMapMoveend={type:Boolean,default:!1},this.isDisabledSwitchMapTabEvent={type:Boolean,default:!1},this.initModifyPolygon={type:[String,Object],default:()=>null},this.m={type:Number,default:()=>3e3},this.switchMapDefaultTypeOrLayer={type:Array,default:()=>null},this.mapTypeAndLayer={type:Array,default:()=>[{id:0,icon:"el-icon--tianditu",activeIcon:"el-icon--tianditu-copy",name:"天地图",layer:[{id:0,name:"地图"},{id:1,name:"卫星"},{id:2,name:"卫星组合"}]},{id:1,icon:"el-icon--gaode",activeIcon:"el-icon--gaode-copy",name:"高德地图",layer:[{id:0,name:"地图"},{id:1,name:"卫星"},{id:2,name:"卫星组合"}]},{id:2,icon:"el-icon--Bing",activeIcon:"el-icon--Bing-copy",name:"Bing地图",layer:[{id:1,name:"卫星"},{id:2,name:"卫星组合"}]}]}}}class h{constructor(t){this.zoom={type:Number,default:10},this.maxZoom={type:Number,default:18},this.minZoom={type:Number,default:1},this.center={type:Array,default:()=>[116.40769,39.89945]},this.projection={type:String,default:"EPSG:4326"},this.bbox={type:Array,default:()=>[]}}}class f{constructor(){u(this,"switchMapPosTop",{type:Number,default:50}),u(this,"switchMapPosLeftOrRight",{type:Number,default:20}),u(this,"isSwitchMapRight",{type:Boolean,default:!0}),u(this,"switchMapHeight",{type:Number,default:40}),u(this,"isShowRangingTool",{type:Boolean,default:!0}),u(this,"isShowDrawTool",{type:Boolean,default:!1}),u(this,"isRight",{type:Boolean,default:!0}),u(this,"isCrossHair",{type:Boolean,default:!1}),u(this,"initModifyPolygon",{type:[String,Object],default:()=>null}),u(this,"hideAdd",{type:Boolean,default:!1}),u(this,"hidePoint",{type:Boolean,default:!1}),u(this,"hideCancel",{type:Boolean,default:!1}),u(this,"hideDelete",{type:Boolean,default:!1}),u(this,"hideSave",{type:Boolean,default:!1}),u(this,"hideLine",{type:Boolean,default:!1}),u(this,"hideArea",{type:Boolean,default:!1}),u(this,"isSwitchMap",{type:Boolean,default:!0}),u(this,"gpsType",{type:Number,default:0})}}var p=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"draw-tool-box"},[t.isRight?[t.isShowRangingTool?r("aside",{staticClass:"map-control",staticStyle:{"margin-right":"60px"}},[t.hideLine?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--changdu",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateLine()}}}),t.hideArea?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--mianji",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateArea()}}})],1):t._e(),t.isShowDrawTool?r("aside",{staticClass:"map-button-box"},[t.hideAdd?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--add",on:{click:function(e){return e.stopPropagation(),t.onCreatePolygon()}}}),t.hidePoint?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--dadian",on:{click:function(e){return e.stopPropagation(),t.onPointEvent()}}}),t.hideCancel?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--back",on:{click:function(e){return e.stopPropagation(),t.lMap.onCancel()}}}),t.hideDelete?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--ashbin",on:{click:function(e){return e.stopPropagation(),t.onDelete()}}}),t.hideSave?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--duihao",on:{click:function(e){return e.stopPropagation(),t.onSave()}}}),t._t("default")],2):t._e()]:[t.isShowDrawTool?r("aside",{staticClass:"map-button-box"},[t.hideAdd?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--add",on:{click:function(e){return e.stopPropagation(),t.onCreatePolygon()}}}),t.hidePoint?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--dadian",on:{click:function(e){return e.stopPropagation(),t.onPointEvent()}}}),t.hideCancel?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--back",on:{click:function(e){return e.stopPropagation(),t.lMap.onCancel()}}}),t.hideDelete?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--ashbin",on:{click:function(e){return e.stopPropagation(),t.onDelete()}}}),t.hideSave?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--duihao",on:{click:function(e){return e.stopPropagation(),t.onSave()}}}),t._t("default")],2):t._e(),t.isShowRangingTool?r("aside",{staticClass:"map-control",staticStyle:{"margin-left":"60px"}},[t.hideLine?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--changdu",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateLine()}}}),t.hideArea?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--mianji",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateArea()}}})],1):t._e()],t.lMap?r("ry-cross-hair",{attrs:{isHide:t.isCrossHair,map:t.lMap.map},on:{click:function(e){return t.onClick(e)}}}):t._e()],2)},d=[],g=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},y=[],v=(r("3e8f"),{name:"RyCrossHair",props:{map:{type:Object,default:()=>null},isHide:{type:Boolean,default:!1}},created(){this.isHide&&!this.crossHair&&this.createCrossHair()},watch:{isHide(t){!t||this.crossHair?this.removeControl():this.createCrossHair()}},data(){return{crossHair:null}},methods:{getCenter(){if(!this.map)return;const t=this.map.getView();let[e,r]=t.getCenter();return[e,r]},createCrossHair(){this.crossHair=new s["CrossHair"](()=>{this.$emit("click",this.getCenter())}),this.map.addControl(this.crossHair)},removeControl(){this.map&&this.crossHair&&(this.map.removeControl(this.crossHair),this.crossHair=null)}}}),m=v;function _(t,e,r,n,i,o,a,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}var b=_(m,g,y,!1,null,null,null),x=b.exports,w={name:"RyMapTool",components:{RyCrossHair:x},props:{lMap:{type:Object,default:()=>null},...new f},watch:{initModifyPolygon(t){this.initModifyPolygon=t,this._init()},isShowRangingTool(t){this.isShowRangingTool=t},isShowDrawTool(t){this.isShowDrawTool=t,this.isCrossHair=t},isRight(t){this.isShowDrawTool=t},isCrossHair(t){this.isCrossHair=t},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.drawPolygon&&(this.drawPolygon.type=t),this.selectGPSAll(this.gpsType))}},data(){return{drawPolygon:null,isEdit:!0,lastType:-1}},created(){this._initPolygon()},methods:{_initPolygon(){if(!this.lMap||!this.initModifyPolygon||!this.isShowDrawTool)return;const{coordinates:t,bbox:e}=this._serializeGeoJson();if(this.onDelete(),this.drawPolygon=this.lMap.onCreatePolygon(()=>{}),this.lastType=this.gpsType,this.drawPolygon.type=this.gpsType,this.drawPolygon.initCoordinates(t),this.isEdit=!0,this.$emit("loadDrawPolygonEvent",this),e){const t=[e[0],e[3],e[2],e[1]],r=[e[2],e[1],e[0],e[3]];this.lMap.fit([t,r])}},_serializeGeoJson(){let t=null;if(this.initModifyPolygon instanceof Object)t=this.initModifyPolygon;else{if("string"!==typeof this.initModifyPolygon)return t;t=JSON.parse(this.initModifyPolygon)}const{geometry:e,bbox:r}=t;return{coordinates:e.coordinates,bbox:r}},setFit(t){t&&t.length&&this.lMap&&Object(s["fitNew"])(this.lMap.map,[t])},onCreatePolygon(){this.lMap&&(this.drawPolygon=this.lMap.onCreatePolygon(()=>{}),this.lastType=this.gpsType,this.drawPolygon.type=this.gpsType,this.$emit("loadDrawPolygonEvent",this))},onDelete(){this.lMap&&this.drawPolygon&&(this.lMap.onDelete(),this.drawPolygon=null)},onPointEvent(){if(this.drawPolygon){const t=this.lMap.getCenter();if(this.x==t[0]&&this.y==t[1])return;this.x=t[0],this.y=t[1];let e=t;if(this.gpsType){let{lon:r,lat:n}=s["GPS"].gcj_decrypt(t[0],t[1]);e=[r,n]}return this.drawPolygon.setCoordinates(e,this.gpsType),void this.$emit("crossHairClick",{pointArr:t,delete:this.onDelete})}this.$message.error("请绘制地块后在进行操作!")},onSave(){const t=this.lMap.getPolygonGeoJson();t?this.lMap.isTruePolygon?t&&this.$emit("success",{geoJson:t,delete:this.onDelete}):this.error(t,1):this.error(t)},error(t,e=0){this.$emit("error",{geoJson:t,delete:this.onDelete,type:e})},onClick(t){if(this.drawPolygon){const t=this.lMap.getCenter();if(this.x==t[0]&&this.y==t[1])return;this.x=t[0],this.y=t[1];let e=t;if(this.gpsType){let{lon:r,lat:n}=s["GPS"].gcj_decrypt(t[0],t[1]);e=[r,n]}return this.drawPolygon.setCoordinates(e,this.gpsType),void this.$emit("crossHairClick",{pointArr:t,delete:this.onDelete})}this.$message.error("请绘制地块后在进行操作!")},getGeoJson(){if(this.lMap)return this.lMap.getPolygonGeoJson()},onCancel(){this.lMap&&this.lMap.onCancel()},selectGPSAll(t){this.lMap.removeDrawArr(),this.drawPolygon&&this.drawPolygon.selectGPS(t,!0)}}},O=w,E=(r("8af4"),_(O,p,d,!1,null,"0eda959b",null)),S=E.exports,T=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.mapTypeAndLayer&&t.mapTypeAndLayer.length>0?r("div",{staticClass:"switch-map"},[r("div",{staticClass:"top",style:{height:t.height+"px"}},[t.isDisabled?r("p",{staticStyle:{width:"10px"}}):[r("p",{class:t.bottomRight?t.isExpand?"el-icon-arrow-left":"el-icon-arrow-right":t.isExpand?"el-icon-arrow-right":"el-icon-arrow-left",on:{click:t.changeExpand}})],r("ul",t._l(t.mapTypeCopy,(function(e,n){return r("li",{key:n,class:{color:!!t.isExpand||t.mapTypeActive===e.id},on:{click:function(r){return t.mapTypeClick(e)}}},[r("i",{class:t.isExpand||t.mapTypeActive===e.id?e.activeIcon:e.icon}),t._v(" "+t._s(e.name)+" ")])})),0)],2),r("ul",{class:{bottom:!0,marginLeft:t.bottomRight}},t._l(t.mapStyleCopy,(function(e,n){return r("li",{key:n,class:{color:!!t.isTop||t.mapStyleActive===e.id},style:{height:t.height+"px",lineHeight:t.height+"px"}},[r("span",{on:{click:function(r){return t.mapStyleClick(e)}}},[t._v(" "+t._s(e.name)+" ")]),r("i",{directives:[{name:"show",rawName:"v-show",value:0===n,expression:"index===0"}],class:t.isTop?"el-icon-arrow-down":"el-icon-arrow-up",on:{click:t.changeDirectionArrow}})])})),0)]):t._e()},C=[];class P{constructor(){u(this,"switchMapDefaultTypeOrLayer",{type:Array,default:()=>null}),u(this,"height",{type:Number,default:40}),u(this,"isSwitchMapRight",{type:Boolean,default:!0}),u(this,"bottomRight",{type:Boolean,default:!0}),u(this,"isDisabled",{type:Boolean,default:!1}),u(this,"mapTypeAndLayer",{type:Array,default:()=>null}),u(this,"mapType",{type:Array,default:()=>[{icon:"el-icon--tianditu",activeIcon:"el-icon--tianditu-copy",name:"天地图"},{icon:"el-icon--gaode",activeIcon:"el-icon--gaode-copy",name:"高德地图"}]}),u(this,"mapStyle",{type:Array,default:()=>["地图","卫星","卫星组合"]})}}var j={name:"SwitchMap",props:{...new P},data(){return{isExpand:!0,mapTypeActive:1,mapStyleActive:2,isTop:!0,mapTypeCopy:[],mapStyleCopy:[]}},watch:{switchMapDefaultTypeOrLayer:{handler(t){if(!t)return;const e=this.formatToJudge(t);if(!e)return;const r=this.mapStyleActive,n=e||0===e?t[0]:1,i=e||1===e?r:2;setTimeout(()=>{this.$emit("changeSwitchMap",{mapType:n,layerType:i})},100)},immediate:!0},mapTypeAndLayer:{handler(t){Array.isArray(t)&&t[1]&&t.forEach((t,e)=>{1!==e||this.switchMapDefaultTypeOrLayer||(this.mapStyleCopy=[t.layer[2]],this.mapTypeCopy=[t])})},immediate:!0}},created(){},mounted(){this.switchMapDefaultTypeOrLayer||setTimeout(()=>{this.$emit("changeSwitchMap",{mapType:1,layerType:2})},100)},methods:{formatToJudge(t){var e;const r=[1,2],n=Array.isArray(t),i=r.includes(t.length),o=t[0]>=0&&t[0]<=this.mapTypeAndLayer.length-1,a=t[1]>=0&&t[1]<=(null===(e=this.mapTypeAndLayer[t[0]])||void 0===e?void 0:e.layer.length)-1;if(!n||!i)return!1;if(!o||!a){var s,l;const t=this.mapTypeActive,e=this.mapStyleActive;return this.mapTypeCopy=[this.mapTypeAndLayer[t]],this.mapStyleCopy=[null===(s=this.mapTypeAndLayer[t])||void 0===s?void 0:s.layer[e]],this.mapStyleActive=null===(l=this.mapStyleCopy[0])||void 0===l?void 0:l.id,!1}return o&&!a?(this.mapTypeActive=t[0],this.mapTypeCopy=[this.mapTypeAndLayer[t[0]]],0):a&&!o?(this.mapStyleCopy=[null===(u=this.mapTypeAndLayer[t[0]])||void 0===u?void 0:u.layer[t[1]]],this.mapStyleActive=this.mapStyleCopy[0].id,1):!(!o||!a)&&(this.mapTypeActive=t[0],this.mapTypeCopy=[this.mapTypeAndLayer[t[0]]],this.mapStyleCopy=[null===(c=this.mapTypeAndLayer[t[0]])||void 0===c?void 0:c.layer[t[1]]],this.mapStyleActive=null===(h=this.mapStyleCopy[0])||void 0===h?void 0:h.id,!0);var u,c,h},changeExpand(){if(!this.isDisabled){if(this.isExpand=!this.isExpand,this.isExpand)return this.mapTypeCopy=this.mapTypeAndLayer.filter((t,e)=>this.mapTypeActive===e),void(this.isTop||(this.isTop=!0,this.mapStyleCopy=this.mapTypeAndLayer[this.mapTypeActive].layer.filter(t=>this.mapStyleActive===t.id)));this.mapTypeCopy=[...this.mapTypeAndLayer]}},changeDirectionArrow(){this.isTop=!this.isTop;const t=this.mapTypeActive,e=this.mapTypeAndLayer[t].layer;this.isTop?this.mapStyleCopy=e.filter(e=>t===e.id):this.mapStyleCopy=[...e]},mapTypeClick({id:t}){if(this.mapTypeActive===t||this.isExpand)return;const e=this.mapTypeAndLayer[t].layer;this.mapTypeActive=t,this.mapStyleActive=e[e.length-1].id,this.isTop?this.mapStyleCopy=e.filter(t=>this.mapStyleActive===t.id):this.mapStyleCopy=e,this.$emit("changeSwitchMap",{mapType:this.mapTypeActive,layerType:this.mapStyleActive,cisDisabled:!1})},mapStyleClick({id:t}){this.mapStyleActive===t||this.isTop||(this.mapStyleActive=t,this.$emit("changeSwitchMap",{mapType:this.mapTypeActive,layerType:this.mapStyleActive}))}}},R=j,M=(r("8d17"),_(R,T,C,!1,null,"272b1fcc",null)),A=M.exports,L={name:"RyMap",components:{RyMapTool:S,SwitchMap:A},props:{...new c,...new h,...new f},created(){},watch:{center(t){this.setCenter(t)},bbox(t){this.setFit(t)},maxZoom(t){this.lMap.setMaxZoom(t)},zoom(t){this.lMap.setZoom(t)},minZoom(t){this.lMap.setMinZoom(t)},bindMapClick(t){this.bindMapClick!==t&&(this.bindMapClick=t,this._bingMapEvent())},bindMapMoveend(t){this.bindMapMoveend!==t&&(this.bindMapMoveend=t,this._bingMapMoveend())},m(t){this.m=t}},data(){return{lMap:new l,drawPolygon:null,mapClick:null,map:null,moveend:null,lastX:0,lastY:0,lastMapType:0,isFirstLoad:!1}},methods:{changeSwitchMap({mapType:t,layerType:e}){this.lMap.selectMapLayer(t,e),this._setMaxZoom(t,e);let r=t;if(t>1&&(r=0),this.lastMapType==r)return;this.lastMapType=r;const n=this.lMap.getCenter();if(n&&n.length)if(0==r){const{lon:t,lat:e}=s["GPS"].gcj_decrypt(n[0],n[1]);this.lMap.setCenter([t,e])}else{const{lon:t,lat:e}=s["GPS"].gcj_encrypt(n[0],n[1]);this.lMap.setCenter([t,e])}this.$emit("changeSwitchMap",{mapType:r,layerType:e,type:t})},_setMaxZoom(t,e){2==t||0==e?this.setMaxZoom(28):this.setMaxZoom(18)},loadMap(t,e){this.lMap.init({el:t,type:this.mapType,layerType:this.layerType,viewOptions:this.getViewOptions(),callback:t=>{this.map=t,this.bbox.length>0&&this.setFit(this.bbox);try{const[t,e]=this.lMap.getCenter();this.lastX=t,this.lastY=e}catch(e){}this._bingMapEvent(),this._bingMapMoveend(),this.$emit("load",{map:t,mapServices:this.lMap,ryMapTool:this.$refs.mapTool}),this.isShowSwitchMap||(this.lastMapType=this.mapType>2?0:this.mapType)}})},_bingMapEvent(){this.bindMapClick?this._mapClickOnce():this._mapClickOnce(!0)},_bingMapMoveend(){this.bindMapMoveend?this._mapMoveend():this._mapMoveend(!0)},getViewOptions(){return{projection:this.projection,center:this.center,zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom}},setMaxZoom(t){this.lMap.setMaxZoom(t)},setMinZoom(t){this.lMap.setMinZoom(t)},setZoom(t){this.lMap.setZoom(t)},crossHairClick(t){this.$emit("crossHairClick",t)},setCenter(t){this.lMap.setCenter(t,15)},setFit(t){t.length&&this.map&&Object(s["fitNew"])(this.map,[t])},drawSuccess(t){this.$emit("drawSuccess",t)},drawError(t){this.$emit("drawError",t)},_mapClickOnce(t=!1){this.mapClick||(this.mapClick=t=>{if(t.dragging)return;const e=this.map.getEventPixel(t.originalEvent),r=this.map.hasFeatureAtPixel(e);if(r){const e=this.map.forEachFeatureAtPixel(t.pixel,t=>t),r=e.getId();if(void 0===r)return;this.$emit("mapClick",r)}}),t?(this.map.un("click",this.mapClick),this.mapClick=null):this.map.on("click",this.mapClick)},_mapMoveend(t=!1){this.moveend=t=>{const[e,r]=this.lMap.getCenter();let n=0;if(this.lastX!==e&&this.lastY!==r)return n=Object(s["caculateLL"])(this.lastY,this.lastX,r,e),this.$emit("mapMoveend",{m:n,oversteSetValue:n>=this.m,x:e,y:r}),void(n>=this.m&&(this.lastX=e,this.lastY=r));this.$emit("mapMoveend",{m:n,oversteSetValue:!1,x:e,y:r})},t?this.map.un("moveend",this.moveend):this.map.on("moveend",this.moveend)},loadDrawPolygonEvent(t){this.$emit("loadDrawPolygonEvent",t)}}},I=L,F=(r("e9df"),_(I,o,a,!1,null,"1fb579be",null)),k=F.exports;k.install=t=>{t.install(k.name,k)};var D=k;x.install=t=>{t.install(x.name,x)};var G=x;S.install=t=>{t.install(S.name,S)};var N=S,z=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},U=[];class B{constructor(){u(this,"map",{type:Object,default:()=>null}),u(this,"gpsType",{type:Number,default:0})}}class V extends B{constructor(...t){super(...t),u(this,"model",{type:Object,default:()=>null}),u(this,"isShow",{type:Boolean,default:!0}),u(this,"clear",{type:Boolean,default:!1}),u(this,"isCheckPointHide",{type:Boolean,default:!1}),u(this,"polygonColor",{type:Array,default:()=>[]}),u(this,"text",{type:String,default:null}),u(this,"isFit",{type:Boolean,default:!0})}}var X={name:"RyPolygon",props:{...new V},data(){return{polygon:null,checkPoint:null,bbox:[],bboxGCJ02:[],lastType:-1}},watch:{isShow(t){this.polygon&&(t?this.show():this.hide())},clear(t){t&&this.remove()},model(t){this.remove(),this.model=t,this.init()},isCheckPointHide(t){t?this.hideCheckPoint():this.showCheckPoint()},polygonColor(t){t.length&&this.setPolygonColor(t)},isFit(t){this.isFit=t,t&&this.setFit()},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.init()},methods:{init(){if(this.lastType=this.gpsType,!this.model||!this.model.geo&&!this.model.coordinates)return;let t=[];if(this.model.geo){const{coordinates:e,center:r,bbox:n}=this._serializeGeoJson();this.model.coordinates=e,this.bbox=n,this.bboxGCJ02=this.convertBBoxGCJ02(n),t=r}else this.bbox=Object(s["getLngAndLatMaxMin"])(this.model.coordinates),this.bboxGCJ02=this.convertBBoxGCJ02(this.bbox);this.polygon=new s["LPolygonNew"]({...this.model,type:this.gpsType},this.map),this.isFit&&this.setFit(1==this.gpsType?this.bboxGCJ02:this.bbox),this.model.text&&(this.checkPoint||(this.checkPoint=this.createCheckPoint(this.model.text,t.length?t:Object(s["getCenterPoint"])(this.model.coordinates))),this.isCheckPointHide&&this.hideCheckPoint()),this.polygon.isShowPolygon=!0,this.isShow?this.show():this.hide(),this.clear&&this.remove(),this.$emit("onLoad",{polygon:this.polygon,checkPoint:this.checkPoint})},setFit(t){if(!t.length||!this.map)return;const e=[t[0],t[3],t[2],t[1]],r=[t[2],t[1],t[0],t[3]];Object(s["fitNew"])(this.map,[e,r])},_serializeGeoJson(){let t=null;if(this.model.geo instanceof Object)t=this.model.geo;else{if("string"!==typeof this.model.geo)return t;t=JSON.parse(this.model.geo)}const{bbox:e,geometry:r,properties:n}=t;let i=[];return n&&n.center&&(i=n.center),{bbox:e,coordinates:r.coordinates,center:i.length?i:Object(s["getCenterPoint"])(r.coordinates)}},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=s["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=s["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},getBBOX(){if(!this.model.geo)return Object(s["getLngAndLatMaxMin"])(this.model.coordinates)},createCheckPoint(t,e){const r=new s["CheckPoint"](t,12,"#fff");return r.setOffset([0,-5]),r.setPosition(e,this.gpsType),this.map.addOverlay(r.getMarker()),r},show(){this.polygon.show()},hide(){this.polygon.hide()},remove(){this.polygon&&(this.polygon.removePolygon(),this.polygon=null),this.checkPoint&&(this.map.removeOverlay(this.checkPoint.getMarker()),this.checkPoint=null),this.bbox=[],this.bboxGCJ02=[]},setPolygonColor(t){if(this.polygon){this.polygon.setPolygonColor(t);const e=this.map.getView().getZoom();this.map.getView().setZoom(e+1e-5),this.map.getView().setZoom(e-1e-4)}},getId(){return this.polygon._id},showCheckPoint(){this.checkPoint&&this.checkPoint.show()},hideCheckPoint(){this.checkPoint&&this.checkPoint.hide()},setText(t){this.checkPoint&&this.checkPoint.setText(t)},selectGPSAll(t){this.checkPoint&&this.checkPoint.selectGPS(t),this.polygon&&this.polygon.selectGPS(t)}}},W=X,H=_(W,z,U,!1,null,null,null),Y=H.exports;Y.install=t=>{t.install(Y.name,Y)};var q=Y,K=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},Z=[];class J extends B{constructor(...t){super(...t),u(this,"modelArr",{type:Array,default:()=>[]}),u(this,"insert",{type:Object,default:()=>null}),u(this,"inserts",{type:Array,default:()=>[]}),u(this,"isShowAll",{type:Boolean,default:!0}),u(this,"isShowPolygon",{type:Object,default:()=>null}),u(this,"isShowPolygons",{type:Array,default:()=>[]}),u(this,"clear",{type:Boolean,default:!1}),u(this,"isCheckPointHideAll",{type:Boolean,default:!1}),u(this,"isCheckPointHide",{type:Object,default:()=>null}),u(this,"isCheckPointHides",{type:Array,default:()=>[]}),u(this,"polygonColor",{type:Object,default:()=>null}),u(this,"polygonColors",{type:Array,default:()=>[]}),u(this,"text",{type:Object,default:()=>null}),u(this,"isFit",{type:Boolean,default:!0}),u(this,"remove",{type:[String,Number,Object],default:()=>null}),u(this,"removes",{type:Array,default:()=>[]}),u(this,"ranges",{type:Array,default:()=>[]}),u(this,"range",{type:[String,Number,Object],default:()=>null}),u(this,"restFit",{type:Boolean,default:!1})}}var $={name:"RyPolygons",props:{...new J},data(){return{bbox:[],bboxMap:new Map,bboxGCJ02:[],bboxMapGCJ02:new Map,polygonMap:new Map,checkPointMap:new Map,isCreate:!0,lastType:-1}},watch:{modelArr(t){this._remove(),t.length&&(this.modelArr=t,this.init())},isShowAll(t){t?this.showAll():this.hideAll()},isShowPolygon(t){this.isShowPolygon=t,t&&this._isShowPolygon(t)},isShowPolygons(t){this.isShowPolygons=t,(t||t.length)&&this._isShowPolygons(t)},clear(t){t&&this._remove()},isCheckPointHideAll(t){t?this.hideCheckPointAll():this.showCheckPointAll()},isCheckPointHide(t){this.isCheckPointHide=t,t&&this._isCheckPointHide(t)},isCheckPointHides(t){this.isCheckPointHides=t,(t||t.length)&&this._isCheckPointHides(t)},polygonColor(t){t&&this.setPolygonColor(t.id,t.colorArr)},polygonColors(t){t&&this.setPolygonColors(t)},isFit(t){this.isFit=t,t&&this.setFit()},remove(t){this.remove=t,this.removePolygonAndCheckPoint(t)},removes(t){this.removes=t,this.removePolygonsAndCheckPoints(t)},ranges(t){this.ranges=t,this._ranges(t)},range(t){this.range=t,this._range(t)},insert(t){this.insert=t,this._insert(t)},inserts(t){this.inserts=t,this._inserts(t)},restFit(t){this.restFit=t},text(t){t&&t.id&&t.text&&this.setText(t.id,t.text)},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.init()},methods:{init(){(this.modelArr||this.modelArr.length)&&(this.modelArr.forEach(t=>{this._insert(t)}),this.polygonColor&&this.setPolygonColor(this.polygonColor),this.setPolygonColors(this.polygonColors),this.removePolygonAndCheckPoint(this.remove),this.removePolygonsAndCheckPoints(this.removes),this._ranges(this.ranges),this._range(this.range),this._insert(this.insert),this._inserts(this.inserts),this.isFit&&this.setFit(),this.isShowAll||this.hideAll(),this.isCheckPointHideAll&&this.hideCheckPointAll(),this.isShowPolygon&&this._isShowPolygon(this.isShowPolygon),this._isShowPolygons(this.isShowPolygons),this.isCheckPointHide&&this._isCheckPointHide(this.isCheckPointHide),this._isCheckPointHides(this.isCheckPointHides),this._onLoad())},initPolygon(t){if(!this.polygonMap.has(t.id)){const e=new s["LPolygonNew"]({...t,type:this.gpsType},this.map);e.isShowPolygon=!0,this.polygonMap.set(t.id,e)}},selectGPSAll(t){this.polygonMap.forEach(e=>{e.selectGPS(t)}),this.checkPointMap.forEach(e=>{e.selectGPS(t)})},initCheckPoint(t,e){if(!this.checkPointMap.has(t.id)&&t.text){const r=this.createCheckPoint(t.text,e);this.checkPointMap.set(t.id,r)}},setBBOXArr(t,e){if(this.bboxMap.has(t)||(this.bbox.push(e),this.bboxMap.set(t,e)),!this.bboxMapGCJ02.has(t)){const r=this.convertBBoxGCJ02(e);this.bboxGCJ02.push(r),this.bboxMapGCJ02.set(t,r)}},setFit(){this.bbox.length&&this.map&&(this.bbox.length>1?Object(s["fitNew"])(this.map,1==this.gpsType?this.bboxGCJ02:this.bbox):this.setFitFist(1==this.gpsType?this.bboxGCJ02[0]:this.bbox[0]))},setFitFist(t){const e=[t[0],t[3],t[2],t[1]],r=[t[2],t[1],t[0],t[3]];Object(s["fitNew"])(this.map,[e,r])},_serializeGeoJson(t){let e=null;try{t instanceof Object?e=t:"string"===typeof t&&(e=JSON.parse(t))}catch(a){return null}const{bbox:r,geometry:n,properties:i}=e;let o=[];return i&&i.center&&(o=i.center),{bbox:r,coordinates:n.coordinates,center:o.length?o:Object(s["getCenterPoint"])(n.coordinates)}},getBBOX(){if(!this.model.geo)return Object(s["getLngAndLatMaxMin"])(this.model.coordinates)},createCheckPoint(t,e){const r=new s["CheckPoint"](t,12,"#fff");return r.setOffset([0,-5]),r.setPosition(e,this.gpsType),this.map.addOverlay(r.getMarker()),r},showAll(){this.polygonMap.forEach(t=>t.show()),this.restFit&&this._restFit()},hideAll(){this.polygonMap.forEach(t=>t.hide())},_remove(){this.checkPointMap.forEach(t=>{this.map.removeOverlay(t.getMarker()),t=null}),this.polygonMap.forEach(t=>{t.removePolygon(),t=null}),this.checkPointMap.clear(),this.polygonMap.clear(),this.bboxMap.clear(),this.bbox=[],this.bboxGCJ02=[],this.bboxMapGCJ02.clear()},setPolygonColor(t,e,r=!0){if(this.polygonMap.has(t)){const n=this.polygonMap.get(t);n.setPolygonColor(e),r&&this._setZoom()}},_setZoom(){const t=this.map.getView().getZoom();this.map.getView().setZoom(t+1e-5),this.map.getView().setZoom(t-1e-4)},setPolygonColors(t){t.forEach(t=>{this.setPolygonColor(t.id,t.colorArr,!1)}),t.length&&this._setZoom()},showCheckPointAll(){this.map&&this.checkPointMap.forEach(t=>t.show())},_isShowPolygon(t){const e=t.id;if(this.polygonMap.has(e)){const r=this.polygonMap.get(e);if(t.isShow)return void r.show();r.hide()}},_isShowPolygons(t){t.forEach(t=>{this._isShowPolygon(t)}),this.restFit&&this._restFit()},hideCheckPointAll(){this.checkPointMap.forEach(t=>t.hide())},_isCheckPointHide(t){const e=t.id;if(this.checkPointMap.has(e)){const r=this.checkPointMap.get(e);if(t.isShow)return void r.show();r.hide()}},_isCheckPointHides(t){t.forEach(t=>{this._isCheckPointHide(t)})},setText(t,e){if(this.checkPointMap.has(t)){const r=this.checkPointMap.get(t);r.setText(e)}},restBBOXArr(){this.bbox=[],this.bboxGCJ02=[],this.bboxMap.forEach(t=>{this.bbox.push(t)}),this.bboxMapGCJ02.forEach(t=>{this.bboxGCJ02.push(t)})},removePolygonsAndCheckPoints(t){t.forEach((t,e)=>{this.removePolygonAndCheckPoint(t)}),t.length&&this.restBBOXArr()},removePolygonAndCheckPoint(t,e=!0){if(this.checkPointMap.has(t)){const r=this.checkPointMap.get(t);this.map.removeOverlay(r.getMarker()),this.checkPointMap.delete(t),e&&this.restBBOXArr()}if(this.polygonMap.has(t)){const e=this.polygonMap.get(t);e.removePolygon(),this.polygonMap.delete(t)}this.bboxMap.has(t)&&this.bboxMap.delete(t),this.bboxMapGCJ02.has(t)&&this.bboxMapGCJ02.delete(t)},_ranges(t){const e=[];t.forEach(t=>{if(this.bboxMap.has(t)&&1!=this.gpsType){const r=this.bboxMap.get(t);e.push(r)}else if(this.bboxMapGCJ02.has(t)&&1==this.gpsType){const r=this.bboxMapGCJ02.get(t);e.push(r)}}),e.length&&Object(s["fitNew"])(this.map,e)},_range(t){if(this.bboxMap.has(t)&&1!=this.gpsType){const e=this.bboxMap.get(t);Object(s["fitNew"])(this.map,[e])}else if(this.bboxMapGCJ02.has(t)&&1==this.gpsType){const e=this.bboxMapGCJ02.get(t);Object(s["fitNew"])(this.map,[e])}},_insert(t,e){if(!t)return;let r=[],n=[];if(!t.coordinates){const{coordinates:e,center:n,bbox:i}=this._serializeGeoJson(t.geo);t.coordinates=e,r=n}this.initPolygon(t),this.initCheckPoint(t,r.length?r:Object(s["getCenterPoint"])(t.coordinates)),this.setBBOXArr(t.id,n.length?n:Object(s["getLngAndLatMaxMin"])(t.coordinates)),e&&this._onLoad()},_inserts(t){this.lastType=this.gpsType,t.forEach(t=>{this._insert(t,!1)}),t.length&&this._onLoad()},_onLoad(){this.$emit("onLoad",{polygonMap:this.polygonMap,checkPointMap:this.checkPointMap,bboxMap:this.bboxMap,bboxMapGCJ02:this.bboxMapGCJ02})},_restFit(){let t=[];1!=this.gpsType?this.bboxMap.forEach((e,r)=>{-1===this.isShowPolygons.findIndex(t=>t.id==r)&&t.push(this.bboxMap.get(r))}):1==this.gpsType&&this.bboxMapGCJ02.forEach((e,r)=>{-1===this.isShowPolygons.findIndex(t=>t.id==r)&&t.push(this.bboxMapGCJ02.get(r))}),t.length&&(t.length>1?Object(s["fitNew"])(this.map,t):this.setFitFist(t[0]))},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=s["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=s["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e}}},Q=$,tt=_(Q,K,Z,!1,null,null,null),et=tt.exports;et.install=t=>{t.install(et.name,et)};var rt=et,nt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},it=[];const ot={fillColor:"rgba(184, 233, 134, 0.56)",stroke:"rgba(23, 168, 162, 0.56)",width:3,text:"快"};var at={name:"RyClusters",props:{modelArr:{type:Array,default:()=>[]},clusterPolygonModel:{type:Object,default:()=>ot},map:{type:Object,default:()=>null},gpsType:{type:Number,default:0},color:{type:String,default:"#fff"},fontSize:{type:Number,default:14},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0}},data(){return{checkPointArr:new Map,currentArr:Array(),fpModelArr:[],featurePolygon:new s["FeaturePolygon"](this.gpsType),multiPolygonMap:new Map,scan:new s["GrahamScan"],polygonSet:new Set}},beforeDestroy(){this.clear()},watch:{modelArr(t){this.map&&(this.clear(),this.init())},gpsType(t){this.gpsType=t,this.selectGPSAll(t)}},created(){this.clear(),this.init()},methods:{mergeGeoJson(t){let e=[],r=new Set;t.forEach(t=>{if(t){const n=t.getId();if(this.multiPolygonMap.has(n)){const t=this.multiPolygonMap.get(n);r.add(n),t.forEach(t=>{e.push(t)})}}}),this.scan.setPoints(e),this.scan.getHull(),r.forEach(t=>{this.removeAggregation(t)});const n={...this.clusterPolygonModel,coordinates:[this.scan.getHull()],ids:r};this.polygonSet.add(new s["LPolygonNew"]({...n,gpsType:this.gpsType},this.map))},removeAggregation(t){let e=[];0!==this.polygonSet.size&&(this.polygonSet.forEach(r=>{r.Ids.has(t)&&(r.removePolygon(),e.push(r))}),e.forEach(t=>{this.polygonSet.has(t)&&this.polygonSet.delete(t)}))},removePolygonNew(){this.lPolygonNewArr.forEach(t=>{t.removePolygon(),t=null}),this.lPolygonNewArr.length=0},clear(){},createFeaturePolygonModel(t,e){return new s["FeaturePolygonModel"](e,t)},async init(){this.initPolygon(),this.initCluster()},_serializeGeoJson(t){let e=null;try{t instanceof Object?e=t:"string"===typeof t&&(e=JSON.parse(t))}catch(a){return null}const{bbox:r,geometry:n,properties:i}=e;let o=[];return i&&i.center&&(o=i.center),{bbox:r,coordinates:n.coordinates,center:o.length?o:Object(s["getCenterPoint"])(n.coordinates)}},initPolygon(){this.modelArr.forEach(t=>{t.geo;const{coordinates:e,center:r,bbox:n}=this._serializeGeoJson(t.geo),i=this.createFeaturePolygonModel(t.id,r);this.fpModelArr.push(i)})},initCluster(){const t=new s["LCluster"]((t,e,r)=>{const n=t.getId();if(r)return this.$emit("callback",{id:n,isShow:!0}),void(this.multiPolygonMap.has(n)&&this.multiPolygonMap.delete(n));if(!this.multiPolygonMap.has(n)){var i;const t=null===(i=this.modelArr.find(t=>t.id==n))||void 0===i?void 0:i.geo;if(t){const{coordinates:e}=this._serializeGeoJson(t);this.multiPolygonMap.set(n,e[0])}}this.$emit("callback",{id:n,isShow:!1})},{text:this.clusterPolygonModel.text,offsetX:this.offsetX,offsetY:this.offsetY,fontSize:this.fontSize,color:this.fontColor,aggregationCallback:t=>{this.mergeGeoJson(t)},removeAggregationCallback:t=>{const e=t.getId();e&&this.removeAggregation(e)}}),e=this.featurePolygon.getVectorSource(this.fpModelArr),r=t.getVectorLayer(e);this.map.addLayer(r)},selectGPSAll(t){this.polygonSet.forEach(e=>{e.selectGPS(t)}),this.featurePolygon&&this.featurePolygon.selectGPSAll(t)}}},st=at,lt=_(st,nt,it,!1,null,"289feb05",null),ut=lt.exports;ut.install=t=>{t.install(ut.name,ut)};var ct=ut,ht=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},ft=[];var pt={name:"RyClusters",props:{modelArr:{type:Array,default:()=>[]},text:{type:String,default:()=>"台"},map:{type:Object,default:()=>null},gpsType:{type:Number,default:0},color:{type:String,default:"#fff"},src:{type:String,default:()=>null},fontSize:{type:Number,default:14},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0}},data(){return{fpModelArr:[],featurePolygon:new s["FeaturePolygon"](this.gpsType),scan:new s["GrahamScan"],polygonSet:new Set}},beforeDestroy(){this.clear()},watch:{modelArr(t){this.map&&(this.clear(),this.init())},gpsType(t){this.gpsType=t,this.selectGPSAll(t)}},created(){this.clear(),this.init()},methods:{clear(){},createFeaturePolygonModel(t,e){return new s["FeaturePolygonModel"](e,t)},async init(){this.initFeature(),this.initCluster()},initFeature(){this.modelArr.forEach(t=>{const e=this.createFeaturePolygonModel(t.id,[t.x,t.y]);this.fpModelArr.push(e)})},initCluster(){const t=new s["LClusterMarker"]((t,e,r)=>{const n=t.getId();r?this.$emit("callback",{id:n,isShow:!0}):this.$emit("callback",{id:n,isShow:!1})},{text:this.text,offsetX:this.offsetX,offsetY:this.offsetY,fontSize:this.fontSize,color:this.fontColor,src:this.src,aggregationCallback:t=>{},removeAggregationCallback:t=>{}}),e=this.featurePolygon.getVectorSource(this.fpModelArr),r=t.getVectorLayer(e);this.map.addLayer(r)},selectGPSAll(t){this.featurePolygon&&this.featurePolygon.selectGPSAll(t)}}},dt=pt,gt=_(dt,ht,ft,!1,null,"5c334196",null),yt=gt.exports;yt.install=t=>{t.install(yt.name,yt)};var vt=yt,mt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},_t=[];class bt extends B{constructor(...t){super(...t),u(this,"model",{type:Object,default:()=>null}),u(this,"isShow",{type:Boolean,default:!0}),u(this,"clear",{type:Boolean,default:!1}),u(this,"isFit",{type:Boolean,default:!0})}}var xt={name:"RyPolygonGeo",props:{...new bt},data(){return{polygon:null,bbox:[],bboxGCJ02:[],lastType:-1}},watch:{isShow(t){this.polygon&&(t?this.show():this.hide())},clear(t){t&&this.remove()},model(t){this.remove(),this.model=t,this.init()},isFit(t){this.isFit=t,t&&this.setFit()},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.init()},methods:{init(){if(this.lastType=this.gpsType,!this.model||!this.model.geo)return;let t=[];if(this.model.geo){const{coordinates:e,center:r,bbox:n}=this._serializeGeoJson();this.bbox=n,this.bboxGCJ02=this.convertBBoxGCJ02(n),t=r}else this.bbox=Object(s["getLngAndLatMaxMin"])(this.model.coordinates),this.bboxGCJ02=this.convertBBoxGCJ02(this.bbox);this.polygon=Object(s["createPolygonBoundary"])(this.model.geo,this.model),this.map.addLayer(this.polygon),this.isFit&&this.setFit(1==this.gpsType?this.bboxGCJ02:this.bbox),this.polygon.isShowPolygon=!0,this.isShow?this.show():this.hide(),this.clear&&this.remove(),this.$emit("onLoad",{polygon:this.polygon})},setFit(t){if(!t.length||!this.map)return;const e=[t[0],t[3],t[2],t[1]],r=[t[2],t[1],t[0],t[3]];Object(s["fitNew"])(this.map,[e,r])},_serializeGeoJson(){let t=null;if(this.model.geo instanceof Object)t=this.model.geo;else{if("string"!==typeof this.model.geo)return t;t=JSON.parse(this.model.geo)}const{bbox:e,geometry:r,properties:n}=t;let i=[];return n&&n.center&&(i=n.center),{bbox:e,coordinates:r.coordinates,center:i.length?i:Object(s["getCenterPoint"])(r.coordinates)}},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=s["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=s["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},getBBOX(){if(!this.model.geo)return Object(s["getLngAndLatMaxMin"])(this.model.coordinates)},show(){},hide(){},selectGPSAll(t){},remove(){this.map&&this.polygon&&(this.map.removeLayer(this.polygon),this.polygon=null)},getId(){return this.id}}},wt=xt,Ot=_(wt,mt,_t,!1,null,null,null),Et=Ot.exports;Et.install=t=>{t.install(Et.name,Et)};var St=Et;const Tt=[D,G,N,q,rt,ct,St,vt],Ct=(t,e)=>{Tt.forEach(e=>{t.component(e.name,e)})};"undefined"!==typeof window&&window.Vue&&Ct(window.Vue);var Pt={install:Ct};e["default"]=Pt},fced:function(t,e,r){"use strict";r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return a}));var n={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},i={9001:n.METERS,9002:n.FEET,9003:n.USFEET,9101:n.RADIANS,9102:n.DEGREES};function o(t){return i[t]}var a={};a[n.RADIANS]=6370997/(2*Math.PI),a[n.DEGREES]=2*Math.PI*6370997/360,a[n.FEET]=.3048,a[n.METERS]=1,a[n.USFEET]=1200/3937,e["b"]=n},fd4d:function(t,e,r){"use strict";function n(t,e,r,n,i){var o;for(e+=n;e<r;e+=n)if(o=i(t.slice(e-n,e),t.slice(e,e+n)),o)return o;return!1}r.d(e,"a",(function(){return n}))},fe37:function(t,e,r){"use strict";var n=r("e269"),i=r("e300"),o=r("183a"),a=r("01d4"),s=r("1af9"),l=r("9c78"),u=r("509b"),c=r("0b2d"),h=r("d079"),f=r("0ec0"),p=r("617d"),d=r("57cb"),g=r("38f3"),y=r("1e8d"),v=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),m=function(t){function e(e,r){var n=t.call(this,e)||this;n.map_=e,n.clickTimeoutId_,n.emulateClicks_=!1,n.dragging_=!1,n.dragListenerKeys_=[],n.moveTolerance_=void 0===r?1:r,n.down_=null;var i=n.map_.getViewport();return n.activePointers_=[],n.trackedTouches_={},n.element_=i,n.pointerdownListenerKey_=Object(y["a"])(i,h["a"].POINTERDOWN,n.handlePointerDown_,n),n.originalPointerMoveEvent_,n.relayedListenerKey_=Object(y["a"])(i,h["a"].POINTERMOVE,n.relayMoveEvent_,n),n.boundHandleTouchMove_=n.handleTouchMove_.bind(n),n.element_.addEventListener(a["a"].TOUCHMOVE,n.boundHandleTouchMove_,!!p["e"]&&{passive:!1}),n}return v(e,t),e.prototype.emulateClick_=function(t){var e=new u["a"](c["a"].CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new u["a"](c["a"].DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new u["a"](c["a"].SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t,r=e.pointerId;if(e.type==c["a"].POINTERUP||e.type==c["a"].POINTERCANCEL){for(var n in delete this.trackedTouches_[r],this.trackedTouches_)if(this.trackedTouches_[n].target!==e.target){delete this.trackedTouches_[n];break}}else e.type!=c["a"].POINTERDOWN&&e.type!=c["a"].POINTERMOVE||(this.trackedTouches_[r]=e);this.activePointers_=Object(g["c"])(this.trackedTouches_)},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new u["a"](c["a"].POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(y["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_.length,this.updateActivePointers_(t);var e=new u["a"](c["a"].POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);for(var r in this.dispatchEvent(e),this.down_={},t){var n=t[r];this.down_[r]="function"===typeof n?d["c"]:n}if(0===this.dragListenerKeys_.length){var i=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Object(y["a"])(i,c["a"].POINTERMOVE,this.handlePointerMove_,this),Object(y["a"])(i,c["a"].POINTERUP,this.handlePointerUp_,this),Object(y["a"])(this.element_,c["a"].POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push(Object(y["a"])(this.element_.getRootNode(),c["a"].POINTERUP,this.handlePointerUp_,this))}},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;var e=new u["a"](c["a"].POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}},e.prototype.relayMoveEvent_=function(t){this.originalPointerMoveEvent_=t;var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new u["a"](c["a"].POINTERMOVE,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(y["c"])(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(a["a"].TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Object(y["c"])(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(y["c"]),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(f["a"]),_=m,b=r("7238"),x=r("592d"),w=r("e637"),O=r("7b4f"),E=r("070d"),S=r("57cc"),T=r("a2c7"),C=r("496f"),P=r("a896"),j=r("92fa"),R=r("0af5"),M=r("256f"),A=r("1300"),L=r("345d"),I=r("0999"),F=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function k(t){t instanceof s["a"]?t.setMapInternal(null):t instanceof l["b"]&&t.getLayers().forEach(k)}function D(t,e){if(t instanceof s["a"])t.setMapInternal(e);else if(t instanceof l["b"])for(var r=t.getLayers().getArray(),n=0,i=r.length;n<i;++n)D(r[n],e)}var G=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n=N(e);r.renderComplete_,r.loaded_=!0,r.boundHandleBrowserEvent_=r.handleBrowserEvent.bind(r),r.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,r.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:p["a"],r.postRenderTimeoutHandle_,r.animationDelayKey_,r.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(r),r.coordinateToPixelTransform_=Object(P["c"])(),r.pixelToCoordinateTransform_=Object(P["c"])(),r.frameIndex_=0,r.frameState_=null,r.previousExtent_=null,r.viewPropertyListenerKey_=null,r.viewChangeListenerKey_=null,r.layerGroupPropertyListenerKeys_=null,r.viewport_=document.createElement("div"),r.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),r.viewport_.style.position="relative",r.viewport_.style.overflow="hidden",r.viewport_.style.width="100%",r.viewport_.style.height="100%",r.overlayContainer_=document.createElement("div"),r.overlayContainer_.style.position="absolute",r.overlayContainer_.style.zIndex="0",r.overlayContainer_.style.width="100%",r.overlayContainer_.style.height="100%",r.overlayContainer_.style.pointerEvents="none",r.overlayContainer_.className="ol-overlaycontainer",r.viewport_.appendChild(r.overlayContainer_),r.overlayContainerStopEvent_=document.createElement("div"),r.overlayContainerStopEvent_.style.position="absolute",r.overlayContainerStopEvent_.style.zIndex="0",r.overlayContainerStopEvent_.style.width="100%",r.overlayContainerStopEvent_.style.height="100%",r.overlayContainerStopEvent_.style.pointerEvents="none",r.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",r.viewport_.appendChild(r.overlayContainerStopEvent_),r.mapBrowserEventHandler_=null,r.moveTolerance_=e.moveTolerance,r.keyboardEventTarget_=n.keyboardEventTarget,r.targetChangeHandlerKeys_=null,r.controls=n.controls||new i["a"],r.interactions=n.interactions||new i["a"],r.overlays_=n.overlays,r.overlayIdIndex_={},r.renderer_=null,r.postRenderFunctions_=[],r.tileQueue_=new S["a"](r.getTilePriority.bind(r),r.handleTileChange_.bind(r)),r.addChangeListener(w["a"].LAYERGROUP,r.handleLayerGroupChanged_),r.addChangeListener(w["a"].VIEW,r.handleViewChanged_),r.addChangeListener(w["a"].SIZE,r.handleSizeChanged_),r.addChangeListener(w["a"].TARGET,r.handleTargetChanged_),r.setProperties(n.values);var a=r;return!e.view||e.view instanceof T["default"]||e.view.then((function(t){a.setView(new T["default"](t))})),r.controls.addEventListener(o["a"].ADD,function(t){t.element.setMap(this)}.bind(r)),r.controls.addEventListener(o["a"].REMOVE,function(t){t.element.setMap(null)}.bind(r)),r.interactions.addEventListener(o["a"].ADD,function(t){t.element.setMap(this)}.bind(r)),r.interactions.addEventListener(o["a"].REMOVE,function(t){t.element.setMap(null)}.bind(r)),r.overlays_.addEventListener(o["a"].ADD,function(t){this.addOverlayInternal_(t.element)}.bind(r)),r.overlays_.addEventListener(o["a"].REMOVE,function(t){var e=t.element,r=e.getId();void 0!==r&&delete this.overlayIdIndex_[r.toString()],t.element.setMap(null)}.bind(r)),r.controls.forEach(function(t){t.setMap(this)}.bind(r)),r.interactions.forEach(function(t){t.setMap(this)}.bind(r)),r.overlays_.forEach(r.addOverlayInternal_.bind(r)),r}return F(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.handleLayerAdd_=function(t){D(t.layer,this)},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.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,r){if(this.frameState_&&this.renderer_){var n=this.getCoordinateFromPixelInternal(t);r=void 0!==r?r:{};var i=void 0!==r.hitTolerance?r.hitTolerance:0,o=void 0!==r.layerFilter?r.layerFilter:d["b"],a=!1!==r.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,i,a,e,null,o,null)}},e.prototype.getFeaturesAtPixel=function(t,e){var r=[];return this.forEachFeatureAtPixel(t,(function(t){r.push(t)}),e),r},e.prototype.getAllLayers=function(){var t=[];function e(r){r.forEach((function(r){r instanceof l["b"]?e(r.getLayers()):t.push(r)}))}return e(this.getLayers()),t},e.prototype.forEachLayerAtPixel=function(t,e,r){if(this.frameState_&&this.renderer_){var n=r||{},i=void 0!==n.hitTolerance?n.hitTolerance:0,o=n.layerFilter||d["b"];return this.renderer_.forEachLayerAtPixel(t,this.frameState_,i,e,o)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_||!this.renderer_)return!1;var r=this.getCoordinateFromPixelInternal(t);e=void 0!==e?e:{};var n=void 0!==e.layerFilter?e.layerFilter:d["b"],i=void 0!==e.hitTolerance?e.hitTolerance:0,o=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(r,this.frameState_,i,o,n,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(),r="changedTouches"in t?t.changedTouches[0]:t;return[r.clientX-e.left,r.clientY-e.top]},e.prototype.getTarget=function(){return this.get(w["a"].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(M["toUserCoordinate"])(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},e.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?Object(P["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(w["a"].LAYERGROUP)},e.prototype.setLayers=function(t){var e=this.getLayerGroup();if(t instanceof i["a"])e.setLayers(t);else{var r=e.getLayers();r.clear(),r.extend(t)}},e.prototype.getLayers=function(){var t=this.getLayerGroup().getLayers();return t},e.prototype.getLoadingOrNotReady=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,r=t.length;e<r;++e){var n=t[e];if(n.visible){var i=n.layer.getRenderer();if(i&&!i.ready)return!0;var o=n.layer.getSource();if(o&&o.loading)return!0}}return!1},e.prototype.getPixelFromCoordinate=function(t){var e=Object(M["fromUserCoordinate"])(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)},e.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?Object(P["a"])(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(w["a"].SIZE)},e.prototype.getView=function(){return this.get(w["a"].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,r,n){return Object(S["b"])(this.frameState_,t,e,r,n)},e.prototype.handleBrowserEvent=function(t,e){var r=e||t.type,n=new u["a"](r,this,t);this.handleMapBrowserEvent(n)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){var e=t.originalEvent,r=e.type;if(r===h["a"].POINTERDOWN||r===a["a"].WHEEL||r===a["a"].KEYDOWN){var n=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():n,o=e.target;if(this.overlayContainerStopEvent_.contains(o)||!(i===n?n.documentElement:i).contains(o))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t))for(var s=this.getInteractions().getArray().slice(),l=s.length-1;l>=0;l--){var u=s[l];if(u.getMap()===this&&u.getActive()&&this.getTargetElement()){var c=u.handleEvent(t);if(!c||t.propagationStopped)break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var r=this.maxTilesLoading_,n=r;if(t){var i=t.viewHints;if(i[C["a"].ANIMATING]||i[C["a"].INTERACTING]){var o=Date.now()-t.time>8;r=o?0:8,n=o?0:2}}e.getTilesLoading()<r&&(e.reprioritize(),e.loadMoreTiles(r,n))}t&&this.renderer_&&!t.animate&&(!0===this.renderComplete_?(this.hasListener(E["a"].RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(E["a"].RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new b["a"](x["a"].LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new b["a"](x["a"].LOADSTART,this,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(){if(this.mapBrowserEventHandler_){for(var t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)Object(y["c"])(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(a["a"].CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(a["a"].WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,Object(I["f"])(this.viewport_)}var r=this.getTargetElement();if(r){for(var n in r.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new _(this,this.moveTolerance_),c["a"])this.mapBrowserEventHandler_.addEventListener(c["a"][n],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(a["a"].CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(a["a"].WHEEL,this.boundHandleBrowserEvent_,!!p["e"]&&{passive:!1});var i=this.getOwnerDocument().defaultView,o=this.keyboardEventTarget_?this.keyboardEventTarget_:r;this.targetChangeHandlerKeys_=[Object(y["a"])(o,a["a"].KEYDOWN,this.handleBrowserEvent,this),Object(y["a"])(o,a["a"].KEYPRESS,this.handleBrowserEvent,this),Object(y["a"])(i,a["a"].RESIZE,this.updateSize,this)]}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(y["c"])(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Object(y["c"])(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=Object(y["a"])(t,O["a"].PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Object(y["a"])(t,a["a"].CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(y["c"]),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.handleLayerAdd_(new l["a"]("addlayer",t)),this.layerGroupPropertyListenerKeys_=[Object(y["a"])(t,O["a"].PROPERTYCHANGE,this.render,this),Object(y["a"])(t,a["a"].CHANGE,this.render,this),Object(y["a"])(t,"addlayer",this.handleLayerAdd_,this),Object(y["a"])(t,"removelayer",this.handleLayerRemove_,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,r=t.length;e<r;++e){var n=t[e].layer;n.hasRenderer()&&n.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.handleLayerRemove_=function(t){k(t.layer)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e=this,r=this.getSize(),n=this.getView(),i=this.frameState_,o=null;if(void 0!==r&&Object(L["b"])(r)&&n&&n.isDef()){var a=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),s=n.getState();if(o={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:Object(R["getForViewAndSize"])(s.center,s.resolution,s.rotation,r),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:r,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:s,viewHints:a,wantedTiles:{},mapId:Object(A["c"])(this),renderTargets:{}},s.nextCenter&&s.nextResolution){var l=isNaN(s.nextRotation)?s.rotation:s.nextRotation;o.nextExtent=Object(R["getForViewAndSize"])(s.nextCenter,s.nextResolution,l,r)}}if(this.frameState_=o,this.renderer_.renderFrame(o),o){if(o.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,o.postRenderFunctions),i){var u=!this.previousExtent_||!Object(R["isEmpty"])(this.previousExtent_)&&!Object(R["equals"])(o.extent,this.previousExtent_);u&&(this.dispatchEvent(new b["a"](x["a"].MOVESTART,this,i)),this.previousExtent_=Object(R["createOrUpdateEmpty"])(this.previousExtent_))}var c=this.previousExtent_&&!o.viewHints[C["a"].ANIMATING]&&!o.viewHints[C["a"].INTERACTING]&&!Object(R["equals"])(o.extent,this.previousExtent_);c&&(this.dispatchEvent(new b["a"](x["a"].MOVEEND,this,o)),Object(R["clone"])(o.extent,this.previousExtent_))}this.dispatchEvent(new b["a"](x["a"].POSTRENDER,this,o)),this.renderComplete_=this.hasListener(x["a"].LOADSTART)||this.hasListener(x["a"].LOADEND)||this.hasListener(E["a"].RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){e.postRenderTimeoutHandle_=void 0,e.handlePostRender()}),0))},e.prototype.setLayerGroup=function(t){var e=this.getLayerGroup();e&&this.handleLayerRemove_(new l["a"]("removelayer",e)),this.set(w["a"].LAYERGROUP,t)},e.prototype.setSize=function(t){this.set(w["a"].SIZE,t)},e.prototype.setTarget=function(t){this.set(w["a"].TARGET,t)},e.prototype.setView=function(t){if(!t||t instanceof T["default"])this.set(w["a"].VIEW,t);else{this.set(w["a"].VIEW,new T["default"]);var e=this;t.then((function(t){e.setView(new T["default"](t))}))}},e.prototype.updateSize=function(){var t=this.getTargetElement(),e=void 0;if(t){var r=getComputedStyle(t),n=t.offsetWidth-parseFloat(r["borderLeftWidth"])-parseFloat(r["paddingLeft"])-parseFloat(r["paddingRight"])-parseFloat(r["borderRightWidth"]),i=t.offsetHeight-parseFloat(r["borderTopWidth"])-parseFloat(r["paddingTop"])-parseFloat(r["paddingBottom"])-parseFloat(r["borderBottomWidth"]);isNaN(n)||isNaN(i)||(e=[n,i],!Object(L["b"])(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,r=getComputedStyle(this.viewport_);r.width&&r.height&&(e=[parseInt(r.width,10),parseInt(r.height,10)]),t.setViewportSize(e)}},e}(n["a"]);function N(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"===typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var r,n,o,a={},s=t.layers&&"function"===typeof t.layers.getLayers?t.layers:new l["b"]({layers:t.layers});return a[w["a"].LAYERGROUP]=s,a[w["a"].TARGET]=t.target,a[w["a"].VIEW]=t.view instanceof T["default"]?t.view:new T["default"],void 0!==t.controls&&(Array.isArray(t.controls)?r=new i["a"](t.controls.slice()):(Object(j["a"])("function"===typeof t.controls.getArray,47),r=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?n=new i["a"](t.interactions.slice()):(Object(j["a"])("function"===typeof t.interactions.getArray,48),n=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?o=new i["a"](t.overlays.slice()):(Object(j["a"])("function"===typeof t.overlays.getArray,49),o=t.overlays):o=new i["a"],{controls:r,interactions:n,keyboardEventTarget:e,overlays:o,values:a}}e["a"]=G},ff80:function(t,e,r){"use strict";var n=r("e269"),i=r("1300"),o=r("256f"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){function e(e){var r=t.call(this)||this;r.projection=Object(o["get"])(e.projection),r.attributions_=l(e.attributions),r.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,r.loading=!1,r.state_=void 0!==e.state?e.state:"ready",r.wrapX_=void 0!==e.wrapX&&e.wrapX,r.interpolate_=!!e.interpolate,r.viewResolver=null,r.viewRejector=null;var n=r;return r.viewPromise_=new Promise((function(t,e){n.viewResolver=t,n.viewRejector=e})),r}return a(e,t),e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection},e.prototype.getResolutions=function(){return Object(i["b"])()},e.prototype.getView=function(){return this.viewPromise_},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.getInterpolate=function(){return this.interpolate_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=l(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(n["a"]);function l(t){return t?Array.isArray(t)?function(e){return t}:"function"===typeof t?t:function(e){return[t]}:null}e["a"]=s}})}));
|
|
1
|
+
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["ryui"]=e():t["ryui"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01d4":function(t,e,n){"use strict";e["a"]={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},"0414":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}));var i=42,r=256},"045d":function(t,e,n){"use strict";e["a"]={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},"06f6":function(t,e,n){},"06f8":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return c})),n.d(e,"e",(function(){return h})),n.d(e,"d",(function(){return p})),n.d(e,"f",(function(){return f})),n.d(e,"k",(function(){return d})),n.d(e,"h",(function(){return g})),n.d(e,"j",(function(){return y})),n.d(e,"l",(function(){return _})),n.d(e,"g",(function(){return v})),n.d(e,"i",(function(){return m}));var i=n("0b2d"),r=n("57cb"),o=n("617d"),s=n("92fa");function a(t){var e=arguments;return function(t){for(var n=!0,i=0,r=e.length;i<r;++i)if(n=n&&e[i](t),!n)break;return n}}var l=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},c=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},u=function(t){var e=t.map.getTargetElement(),n=t.map.getOwnerDocument().activeElement;return e.contains(n)},h=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||u(t)},p=r["b"],f=function(t){var e=t.originalEvent;return 0==e.button&&!(o["f"]&&o["d"]&&e.ctrlKey)},d=(r["a"],function(t){return t.type==i["a"].SINGLECLICK}),g=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},y=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},_=function(t){var e=t.originalEvent,n=e.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n&&!e.target.isContentEditable},v=function(t){var e=t.originalEvent;return Object(s["a"])(void 0!==e,56),"mouse"==e.pointerType},m=function(t){var e=t.originalEvent;return Object(s["a"])(void 0!==e,56),e.isPrimary&&0===e.button}},"070d":function(t,e,n){"use strict";e["a"]={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},"089b":function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return g}));var i=n("78db"),r=n("fced"),o=n("0414"),s=n("256f"),a=n("0af5"),l=n("345d");function c(t){var e=t.getDefaultTileGrid();return e||(e=d(t),t.setDefaultTileGrid(e)),e}function u(t,e,n){var i=e[0],r=t.getTileCoordCenter(e),o=g(n);if(Object(a["f"])(o,r))return e;var s=Object(a["E"])(o),l=Math.ceil((o[0]-r[0])/s);return r[0]+=s*l,t.getTileCoordForCoordAndZ(r,i)}function h(t,e,n,r){var o=void 0!==r?r:"top-left",s=f(t,e,n);return new i["a"]({extent:t,origin:Object(a["x"])(t,o),resolutions:s,tileSize:n})}function p(t){var e=t||{},n=e.extent||Object(s["h"])("EPSG:3857").getExtent(),r={extent:n,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:f(n,e.maxZoom,e.tileSize,e.maxResolution)};return new i["a"](r)}function f(t,e,n,i){for(var r=void 0!==e?e:o["a"],s=Object(a["z"])(t),c=Object(a["E"])(t),u=Object(l["c"])(void 0!==n?n:o["b"]),h=i>0?i:Math.max(c/u[0],s/u[1]),p=r+1,f=new Array(p),d=0;d<p;++d)f[d]=h/Math.pow(2,d);return f}function d(t,e,n,i){var r=g(t);return h(r,e,n,i)}function g(t){t=Object(s["h"])(t);var e=t.getExtent();if(!e){var n=180*s["a"][r["b"].DEGREES]/t.getMetersPerUnit();e=Object(a["k"])(-n,-n,n,n)}return e}},"0999":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"h",(function(){return l})),n.d(e,"f",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"g",(function(){return h}));var i=n("617d");function r(t,e,n,r){var o;return o=n&&n.length?n.shift():i["g"]?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",r)}function o(t){var e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function s(t){var e=t.offsetWidth,n=getComputedStyle(t);return e+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),e}function a(t){var e=t.offsetHeight,n=getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),e}function l(t,e){var n=e.parentNode;n&&n.replaceChild(t,e)}function c(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function u(t){while(t.lastChild)t.removeChild(t.lastChild)}function h(t,e){for(var n=t.childNodes,i=0;1;++i){var r=n[i],o=e[i];if(!r&&!o)break;r!==o&&(r?o?t.insertBefore(o,r):(t.removeChild(r),--i):t.appendChild(o))}}},"0a9d":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s}));var i=n("25f1"),r=n("9f5e");function o(t,e,n,o,s,a,l){for(var c,u,h,p,f,d,g,y=s[a+1],_=[],v=0,m=n.length;v<m;++v){var b=n[v];for(p=t[b-o],d=t[b-o+1],c=e;c<b;c+=o)f=t[c],g=t[c+1],(y<=d&&g<=y||d<=y&&y<=g)&&(h=(y-d)/(g-d)*(f-p)+p,_.push(h)),p=f,d=g}var O=NaN,x=-1/0;for(_.sort(r["g"]),p=_[0],c=1,u=_.length;c<u;++c){f=_[c];var w=Math.abs(f-p);w>x&&(h=(p+f)/2,Object(i["c"])(t,e,n,o,h,y)&&(O=h,x=w)),p=f}return isNaN(O)&&(O=s[a]),l?(l.push(O,y,x),l):[O,y,x]}function s(t,e,n,i,r){for(var s=[],a=0,l=n.length;a<l;++a){var c=n[a];s=o(t,e,c,i,r,2*a,s),e=c[c.length-1]}return s}},"0af5":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return c})),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return p})),n.d(e,"i",(function(){return f})),n.d(e,"j",(function(){return d})),n.d(e,"k",(function(){return g})),n.d(e,"l",(function(){return y})),n.d(e,"m",(function(){return _})),n.d(e,"n",(function(){return v})),n.d(e,"o",(function(){return m})),n.d(e,"p",(function(){return b})),n.d(e,"q",(function(){return O})),n.d(e,"r",(function(){return x})),n.d(e,"s",(function(){return C})),n.d(e,"t",(function(){return E})),n.d(e,"u",(function(){return S})),n.d(e,"v",(function(){return P})),n.d(e,"w",(function(){return j})),n.d(e,"x",(function(){return T})),n.d(e,"y",(function(){return M})),n.d(e,"B",(function(){return R})),n.d(e,"z",(function(){return L})),n.d(e,"A",(function(){return A})),n.d(e,"C",(function(){return I})),n.d(e,"D",(function(){return k})),n.d(e,"E",(function(){return F})),n.d(e,"F",(function(){return D})),n.d(e,"H",(function(){return G})),n.d(e,"I",(function(){return N})),n.d(e,"G",(function(){return z})),n.d(e,"a",(function(){return B})),n.d(e,"K",(function(){return X})),n.d(e,"J",(function(){return W}));var i=n("045d"),r=n("92fa");function o(t){for(var e=d(),n=0,i=t.length;n<i;++n)O(e,t[n]);return e}function s(t,e,n){var i=Math.min.apply(null,t),r=Math.min.apply(null,e),o=Math.max.apply(null,t),s=Math.max.apply(null,e);return g(i,r,o,s,n)}function a(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function l(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function c(t,e,n){var i,r;return i=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,r=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0,i*i+r*r}function u(t,e){return p(t,e[0],e[1])}function h(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function p(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function f(t,e){var n=t[0],r=t[1],o=t[2],s=t[3],a=e[0],l=e[1],c=i["a"].UNKNOWN;return a<n?c|=i["a"].LEFT:a>o&&(c|=i["a"].RIGHT),l<r?c|=i["a"].BELOW:l>s&&(c|=i["a"].ABOVE),c===i["a"].UNKNOWN&&(c=i["a"].INTERSECTING),c}function d(){return[1/0,1/0,-1/0,-1/0]}function g(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function y(t){return g(1/0,1/0,-1/0,-1/0,t)}function _(t,e){var n=t[0],i=t[1];return g(n,i,n,i,e)}function v(t,e,n,i,r){var o=y(r);return x(o,t,e,n,i)}function m(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function b(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function O(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function x(t,e,n,i,r){for(;n<i;n+=r)w(t,e[n],e[n+1]);return t}function w(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function C(t,e){var n;return n=e(S(t)),n||(n=e(P(t)),n||(n=e(k(t)),n||(n=e(I(t)),n||!1)))}function E(t){var e=0;return G(t)||(e=F(t)*L(t)),e}function S(t){return[t[0],t[1]]}function P(t){return[t[2],t[1]]}function j(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function T(t,e){var n;return"bottom-left"===e?n=S(t):"bottom-right"===e?n=P(t):"top-left"===e?n=I(t):"top-right"===e?n=k(t):Object(r["a"])(!1,13),n}function M(t,e,n,i,r){var o=R(t,e,n,i),s=o[0],a=o[1],l=o[2],c=o[3],u=o[4],h=o[5],p=o[6],f=o[7];return g(Math.min(s,l,u,p),Math.min(a,c,h,f),Math.max(s,l,u,p),Math.max(a,c,h,f),r)}function R(t,e,n,i){var r=e*i[0]/2,o=e*i[1]/2,s=Math.cos(n),a=Math.sin(n),l=r*s,c=r*a,u=o*s,h=o*a,p=t[0],f=t[1];return[p-l+h,f-c-u,p-l-h,f-c+u,p+l-h,f+c+u,p+l+h,f+c-u,p-l+h,f-c-u]}function L(t){return t[3]-t[1]}function A(t,e,n){var i=n||d();return D(t,e)?(t[0]>e[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]<e[2]?i[2]=t[2]:i[2]=e[2],t[3]<e[3]?i[3]=t[3]:i[3]=e[3]):y(i),i}function I(t){return[t[0],t[3]]}function k(t){return[t[2],t[3]]}function F(t){return t[2]-t[0]}function D(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function G(t){return t[2]<t[0]||t[3]<t[1]}function N(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function z(t,e,n){var r=!1,o=f(t,e),s=f(t,n);if(o===i["a"].INTERSECTING||s===i["a"].INTERSECTING)r=!0;else{var a=t[0],l=t[1],c=t[2],u=t[3],h=e[0],p=e[1],d=n[0],g=n[1],y=(g-p)/(d-h),_=void 0,v=void 0;s&i["a"].ABOVE&&!(o&i["a"].ABOVE)&&(_=d-(g-u)/y,r=_>=a&&_<=c),r||!(s&i["a"].RIGHT)||o&i["a"].RIGHT||(v=g-(d-c)*y,r=v>=l&&v<=u),r||!(s&i["a"].BELOW)||o&i["a"].BELOW||(_=d-(g-l)/y,r=_>=a&&_<=c),r||!(s&i["a"].LEFT)||o&i["a"].LEFT||(v=g-(d-a)*y,r=v>=l&&v<=u)}return r}function B(t,e,n,i){var r=[];if(i>1)for(var o=t[2]-t[0],a=t[3]-t[1],l=0;l<i;++l)r.push(t[0]+o*l/i,t[1],t[2],t[1]+a*l/i,t[2]-o*l/i,t[3],t[0],t[3]-a*l/i);else r=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(r,r,2);for(var c=[],u=[],h=(l=0,r.length);l<h;l+=2)c.push(r[l]),u.push(r[l+1]);return s(c,u,n)}function X(t,e){var n=e.getExtent(),i=j(t);if(e.canWrapX()&&(i[0]<n[0]||i[0]>=n[2])){var r=F(n),o=Math.floor((i[0]-n[0])/r),s=o*r;t[0]-=s,t[2]-=s}return t}function W(t,e){if(e.canWrapX()){var n=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[n[0],t[1],n[2],t[3]]];X(t,e);var i=F(n);if(F(t)>i)return[[n[0],t[1],n[2],t[3]]];if(t[0]<n[0])return[[t[0]+i,t[1],n[2],t[3]],[n[0],t[1],t[2],t[3]]];if(t[2]>n[2])return[[t[0],t[1],n[2],t[3]],[n[0],t[1],t[2]-i,t[3]]]}return[t]}},"0b0e":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}));var i={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},r={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0}},"0b2d":function(t,e,n){"use strict";var i=n("01d4");e["a"]={SINGLECLICK:"singleclick",CLICK:i["a"].CLICK,DBLCLICK:i["a"].DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},"0ec0":function(t,e,n){"use strict";var i=n("da5c"),r=n("cef7"),o=n("57cb"),s=n("38f3"),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)}}(),l=function(t){function e(e){var n=t.call(this)||this;return n.eventTarget_=e,n.pendingRemovals_=null,n.dispatching_=null,n.listeners_=null,n}return a(e,t),e.prototype.addEventListener=function(t,e){if(t&&e){var n=this.listeners_||(this.listeners_={}),i=n[t]||(n[t]=[]);-1===i.indexOf(e)&&i.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"===typeof t,n=e?t:t.type,i=this.listeners_&&this.listeners_[n];if(i){var s=e?new r["a"](t):t;s.target||(s.target=this.eventTarget_||this);var a,l=this.dispatching_||(this.dispatching_={}),c=this.pendingRemovals_||(this.pendingRemovals_={});n in l||(l[n]=0,c[n]=0),++l[n];for(var u=0,h=i.length;u<h;++u)if(a="handleEvent"in i[u]?i[u].handleEvent(s):i[u].call(this,s),!1===a||s.propagationStopped){a=!1;break}if(0===--l[n]){var p=c[n];delete c[n];while(p--)this.removeEventListener(n,o["c"]);delete l[n]}return a}},e.prototype.disposeInternal=function(){this.listeners_&&Object(s["b"])(this.listeners_)},e.prototype.getListeners=function(t){return this.listeners_&&this.listeners_[t]||void 0},e.prototype.hasListener=function(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)},e.prototype.removeEventListener=function(t,e){var n=this.listeners_&&this.listeners_[t];if(n){var i=n.indexOf(e);-1!==i&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[i]=o["c"],++this.pendingRemovals_[t]):(n.splice(i,1),0===n.length&&delete this.listeners_[t]))}},e}(i["a"]);e["a"]=l},1300:function(t,e,n){"use strict";function i(){return function(){throw new Error("Unimplemented abstract method.")}()}n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s}));var r=0;function o(t){return t.ol_uid||(t.ol_uid=String(++r))}var s="6.15.1"},"137e":function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var i=n("01d4"),r=n("869f"),o=n("35a7"),s=n("1300"),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)}}(),l=function(t){function e(e){var n=t.call(this)||this;return n.ready=!0,n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=e,n.declutterExecutorGroup=null,n}return a(e,t),e.prototype.getFeatures=function(t){return Object(s["b"])()},e.prototype.getData=function(t){return null},e.prototype.prepareFrame=function(t){return Object(s["b"])()},e.prototype.renderFrame=function(t,e){return Object(s["b"])()},e.prototype.loadedTileCallback=function(t,e,n){t[e]||(t[e]={}),t[e][n.tileCoord.toString()]=n},e.prototype.createLoadedTileFinder=function(t,e,n){return function(i,r){var o=this.loadedTileCallback.bind(this,n,i);return t.forEachLoadedTile(e,i,r,o)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){},e.prototype.getDataAtPixel=function(t,e,n){return null},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){var e=t.target;e.getState()===r["a"].LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=r["a"].LOADED&&e!=r["a"].ERROR&&t.addEventListener(i["a"].CHANGE,this.boundHandleImageChange_),e==r["a"].IDLE&&(t.load(),e=t.getState()),e==r["a"].LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()},e.prototype.disposeInternal=function(){delete this.layer_,t.prototype.disposeInternal.call(this)},e}(o["a"]),c=l,u=n("3333"),h=n("070d"),p=n("a896"),f=n("5c38"),d=n("0af5"),g=n("0999"),y=n("9f5e"),_=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)}}(),v=[],m=null;function b(){var t=document.createElement("canvas");t.width=1,t.height=1,m=t.getContext("2d")}var O=function(t){function e(e){var n=t.call(this,e)||this;return n.container=null,n.renderedResolution,n.tempTransform=Object(p["c"])(),n.pixelTransform=Object(p["c"])(),n.inversePixelTransform=Object(p["c"])(),n.context=null,n.containerReused=!1,n.pixelContext_=null,n.frameState=null,n}return _(e,t),e.prototype.getImageData=function(t,e,n){var i;m||b(),m.clearRect(0,0,1,1);try{m.drawImage(t,e,n,1,1,0,0,1,1),i=m.getImageData(0,0,1,1).data}catch(r){return m=null,null}return i},e.prototype.getBackground=function(t){var e=this.getLayer(),n=e.getBackground();return"function"===typeof n&&(n=n(t.viewState.resolution)),n||void 0},e.prototype.useContainer=function(t,e,n){var i,r,o=this.getLayer().getClassName();if(t&&t.className===o&&(!n||t&&t.style.backgroundColor&&Object(y["b"])(Object(f["a"])(t.style.backgroundColor),Object(f["a"])(n)))){var s=t.firstElementChild;s instanceof HTMLCanvasElement&&(r=s.getContext("2d"))}if(r&&r.canvas.style.transform===e?(this.container=t,this.context=r,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){i=document.createElement("div"),i.className=o;var a=i.style;a.position="absolute",a.width="100%",a.height="100%",r=Object(g["a"])();s=r.canvas;i.appendChild(s),a=s.style,a.position="absolute",a.left="0",a.transformOrigin="top left",this.container=i,this.context=r}this.containerReused||!n||this.container.style.backgroundColor||(this.container.style.backgroundColor=n)},e.prototype.clipUnrotated=function(t,e,n){var i=Object(d["C"])(n),r=Object(d["D"])(n),o=Object(d["v"])(n),s=Object(d["u"])(n);Object(p["a"])(e.coordinateToPixelTransform,i),Object(p["a"])(e.coordinateToPixelTransform,r),Object(p["a"])(e.coordinateToPixelTransform,o),Object(p["a"])(e.coordinateToPixelTransform,s);var a=this.inversePixelTransform;Object(p["a"])(a,i),Object(p["a"])(a,r),Object(p["a"])(a,o),Object(p["a"])(a,s),t.save(),t.beginPath(),t.moveTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,e,n){var i=this.getLayer();if(i.hasListener(t)){var r=new u["a"](t,this.inversePixelTransform,n,e);i.dispatchEvent(r)}},e.prototype.preRender=function(t,e){this.frameState=e,this.dispatchRenderEvent_(h["a"].PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(h["a"].POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,n,i,r,o,s){var a=r/2,l=o/2,c=i/e,u=-c,h=-t[0]+s,f=-t[1];return Object(p["b"])(this.tempTransform,a,l,c,u,-n,h,f)},e.prototype.getDataAtPixel=function(t,e,n){var i=Object(p["a"])(this.inversePixelTransform,t.slice()),r=this.context,o=this.getLayer(),s=o.getExtent();if(s){var a=Object(p["a"])(e.pixelToCoordinateTransform,t.slice());if(!Object(d["f"])(s,a))return null}var l,c=Math.round(i[0]),u=Math.round(i[1]),h=this.pixelContext_;if(!h){var f=document.createElement("canvas");f.width=1,f.height=1,h=f.getContext("2d"),this.pixelContext_=h}h.clearRect(0,0,1,1);try{h.drawImage(r.canvas,c,u,1,1,0,0,1,1),l=h.getImageData(0,0,1,1).data}catch(g){return"SecurityError"===g.name?(this.pixelContext_=null,new Uint8Array):l}return 0===l[3]?null:l},e.prototype.disposeInternal=function(){delete this.frameState,t.prototype.disposeInternal.call(this)},e}(c);e["b"]=O},"13e2":function(t,e,n){"use strict";var i=n("4ea4"),r=n("7037"),o=(Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AM",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"BDLayers",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"BingLayers",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"BingMapsServiceNew",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"BingMapsServices",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"CheckPoint",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Circular",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"CrossHair",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"DraftingEvent",{enumerable:!0,get:function(){return c.DraftingEvent}}),Object.defineProperty(e,"FeaturePolygon",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"FeaturePolygonModel",{enumerable:!0,get:function(){return R.FeaturePolygonModel}}),Object.defineProperty(e,"GPS",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"GrahamScan",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"HelpTooltip",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"LCircle",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"LCluster",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"LClusterMarker",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"LDraw",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"LMap",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"LMarker",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"LMarkerFont",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"LMessage",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"LModifyEvent",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"LOverlay",{enumerable:!0,get:function(){return x.LOverlay}}),Object.defineProperty(e,"LPolygon",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"LPolygonNew",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"LPopup",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"LRectangle",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"LabelMes",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"MapConfig",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MapLayersEnum",{enumerable:!0,get:function(){return f.MapLayersEnum}}),Object.defineProperty(e,"MapTypeEnum",{enumerable:!0,get:function(){return f.MapTypeEnum}}),Object.defineProperty(e,"MeasureTooltip",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"PolygonModel",{enumerable:!0,get:function(){return m.PolygonModel}}),Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return w.Polyline}}),Object.defineProperty(e,"SvgModel",{enumerable:!0,get:function(){return u.SvgModel}}),Object.defineProperty(e,"TMapOptions",{enumerable:!0,get:function(){return d.TMapOptions}}),Object.defineProperty(e,"ViewOptions",{enumerable:!0,get:function(){return d.ViewOptions}}),Object.defineProperty(e,"addInteraction",{enumerable:!0,get:function(){return m.addInteraction}}),Object.defineProperty(e,"addInteraction1",{enumerable:!0,get:function(){return m.addInteraction1}}),Object.defineProperty(e,"addPolylinePoint",{enumerable:!0,get:function(){return w.addPolylinePoint}}),Object.defineProperty(e,"addPolylinePointNew",{enumerable:!0,get:function(){return w.addPolylinePointNew}}),Object.defineProperty(e,"caculateLL",{enumerable:!0,get:function(){return m.caculateLL}}),Object.defineProperty(e,"calculateCenter",{enumerable:!0,get:function(){return m.calculateCenter}}),Object.defineProperty(e,"createFill",{enumerable:!0,get:function(){return m.createFill}}),Object.defineProperty(e,"createGPSPoints",{enumerable:!0,get:function(){return m.createGPSPoints}}),Object.defineProperty(e,"createGeoJson",{enumerable:!0,get:function(){return m.createGeoJson}}),Object.defineProperty(e,"createPolygonBoundary",{enumerable:!0,get:function(){return m.createPolygonBoundary}}),Object.defineProperty(e,"createPolygonGeojson",{enumerable:!0,get:function(){return m.createPolygonGeojson}}),Object.defineProperty(e,"createPolylinePoints",{enumerable:!0,get:function(){return m.createPolylinePoints}}),Object.defineProperty(e,"createRectangle",{enumerable:!0,get:function(){return m.createRectangle}}),Object.defineProperty(e,"createSpan",{enumerable:!0,get:function(){return m.createSpan}}),Object.defineProperty(e,"fitNew",{enumerable:!0,get:function(){return m.fitNew}}),Object.defineProperty(e,"flyTo",{enumerable:!0,get:function(){return m.flyTo}}),Object.defineProperty(e,"formatArea",{enumerable:!0,get:function(){return m.formatArea}}),Object.defineProperty(e,"formatLength",{enumerable:!0,get:function(){return m.formatLength}}),Object.defineProperty(e,"geo2svg",{enumerable:!0,get:function(){return u.geo2svg}}),Object.defineProperty(e,"getCenterPoint",{enumerable:!0,get:function(){return m.getCenterPoint}}),Object.defineProperty(e,"getColorStyle",{enumerable:!0,get:function(){return m.getColorStyle}}),Object.defineProperty(e,"getCoordinates",{enumerable:!0,get:function(){return m.getCoordinates}}),Object.defineProperty(e,"getDeepColorNew",{enumerable:!0,get:function(){return w.getDeepColorNew}}),Object.defineProperty(e,"getLayer",{enumerable:!0,get:function(){return m.getLayer}}),Object.defineProperty(e,"getLayerNew",{enumerable:!0,get:function(){return m.getLayerNew}}),Object.defineProperty(e,"getLngAndLatMaxMin",{enumerable:!0,get:function(){return m.getLngAndLatMaxMin}}),Object.defineProperty(e,"getVector",{enumerable:!0,get:function(){return m.getVector}}),Object.defineProperty(e,"isTruePolygon",{enumerable:!0,get:function(){return j.isTruePolygon}}),Object.defineProperty(e,"pathToLines",{enumerable:!0,get:function(){return j.pathToLines}}),Object.defineProperty(e,"polygonStyle",{enumerable:!0,get:function(){return m.polygonStyle}}),Object.defineProperty(e,"rayCasting",{enumerable:!0,get:function(){return m.rayCasting}}),Object.defineProperty(e,"staticImage",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"zoomIn",{enumerable:!0,get:function(){return m.zoomIn}}),Object.defineProperty(e,"zoomOut",{enumerable:!0,get:function(){return m.zoomOut}}),i(n("74bf"))),s=i(n("960f")),a=i(n("29d2")),l=i(n("6f26")),c=n("1674"),u=n("1809"),h=i(n("bab7")),p=i(n("5c6f")),f=B(n("c12a")),d=B(n("5c9f")),g=i(n("6923")),y=i(n("2606")),_=i(n("9b10")),v=i(n("8343")),m=n("b12f"),b=i(n("2fc1")),O=i(n("6582")),x=n("9a94"),w=n("14fe"),C=i(n("3a22")),E=i(n("3d4d")),S=i(n("5388")),P=i(n("304e")),j=n("5897"),T=i(n("e63e")),M=i(n("7cec")),R=B(n("beb7")),L=i(n("40f1")),A=i(n("690f")),I=i(n("6e27")),k=i(n("6ee6")),F=i(n("b486")),D=i(n("7554")),G=i(n("de47")),N=i(n("beb2"));function z(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(z=function(t){return t?n:e})(t)}function B(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};if(e=z(e),e&&e.has(t))return e.get(t);var n,i,o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&((i=s?Object.getOwnPropertyDescriptor(t,n):null)&&(i.get||i.set)?Object.defineProperty(o,n,i):o[n]=t[n]);return o.default=t,e&&e.set(t,o),o}},"14fe":function(t,e,n){"use strict";n.r(e),n.d(e,"Polyline",(function(){return u})),n.d(e,"getDeepColorNew",(function(){return h})),n.d(e,"addPolylinePoint",(function(){return p})),n.d(e,"addPolylinePointNew",(function(){return f}));var i=n("6c77"),r=n("8682"),o=n("5831"),s=n("3e6b"),a=n("4cdf"),l=n("7a09"),c=n("13e2");class u{constructor(t,e){this._map=e,this._layer=null,this._source=null,this._lineFeature=null,this._color=null,this._pointArr=[],this._lineString=null,this.type=0,this.isShow=!0,this._layer=null,this._source=null,this._lineFeature=null,this._color=t.color,this._polylineWidth=t.width,this._pointArr=t.pointArr,this._zIndex=t.zIndex,this._id=t.id,this._lineString=null,this.type=t.type||0,this._createPolyline()}_createPolyline(){this._source=new o["a"],this._layer=new s["a"]({source:this._source,zIndex:this._zIndex,style:new i["c"]({stroke:new r["a"]({color:this._color,width:this._polylineWidth})})});let t=this._pointArr;this.type&&(t=c["GPS"].convertLineGCJ02(this._pointArr));const e=new l["a"](t);this._lineString=e,this._lineFeature=new a["a"](e),this._id&&this._lineFeature.setId(this._id),this._layer.getSource().addFeatures([this._lineFeature]),this._map.addLayer(this._layer)}show(){this.isShow||(this._map.addLayer(this._layer),this.isShow=!0)}hide(){this.isShow&&(this._map.removeLayer(this._layer),this.isShow=!1)}setCoordinates(t,e=0){this._pointArr=t,this.type=e,this._lineString.setCoordinates(this.isConvertLineGCJ02())}setPolylineColor(t){const e=this._layer.getStyle(),n=e.getStroke();n.setColor(t)}getLayer(){return this._layer}setZIndex(t){this._layer.setZIndex(t)}setPolylineWidth(t){const e=this._layer.getStyle(),n=e.getStroke();n.setWidth(t)}getPolylineColor(){const t=this._layer.getStyle(),e=t.getStroke();return e.getColor()}getPolylineWidth(){const t=this._layer.getStyle(),e=t.getStroke();return e.getWidth()}removePolyline(){this._map.removeLayer(this._layer),this._lineFeature&&(this._source.removeFeature(this._lineFeature),this._lineFeature=null,this._source=null,this._layer=null,this._lineString=null)}appendCoordinate(t,e=0){if(this._pointArr.push(t),this.type=e,e){const{lon:e,lat:n}=c["GPS"].gcj_encrypt(t[0],t[1]);this._lineString.appendCoordinate([e,n])}else this._lineString.appendCoordinate(t)}get getLength(){return this._lineString.getCoordinates().length}isConvertLineGCJ02(){return this.type?c["GPS"].convertLineGCJ02(this._pointArr):this._pointArr}selectGPS(t=0){this.setCoordinates(this._pointArr,t)}}function h(t,e=["blue","Lime"]){return t?e[1]:e[0]}function p(t,e,n,i=["blue","Lime"]){let r=null;const o=[],s=t.gpsPoints,a=t.isNJOpt;let l=-1;if(s.length>1){let t,c=[];-1===l?(l=0,c.push(s[0]),c.push(s[1]),t=h(a[1],i),l=1):(c.push(s[l]),t=h(a[l+1],i));for(let p=l+1;p<s.length;p++){const l=h(a[p],i);l===t?c.push(s[p]):(r=new u({color:t,width:2,pointArr:c,zIndex:a[p]?10:1,id:n},e),o.push(r),c=[],c.push(s[p-1]),c.push(s[p]),t=l)}c.length>0&&(r=new u({color:t,width:2,pointArr:c,zIndex:a[0]?10:1,id:n},e),o.push(r)),l=s.length-1}return o}function f(t,e,n){let i=null;const r=[],o=t.gpsPoints,s=t.isNJOpt;let a=-1;if(o.length>1){let t,l=[];-1===a?(a=0,l.push(o[0]),l.push(o[1]),t=h(s[1],n.colors),a=1):(l.push(o[a]),t=h(s[a+1],n.colors));for(let c=a+1;c<o.length;c++){const a=h(s[c],n.colors);a===t?l.push(o[c]):(i=new u({color:t,width:n.width,pointArr:l,zIndex:n.zIndex,id:n.id,type:n.type},e),r.push(i),l=[],l.push(o[c-1]),l.push(o[c]),t=a)}l.length>0&&(i=new u({color:t,width:n.width,pointArr:l,zIndex:n.zIndex,id:n.id,type:n.type},e),r.push(i)),a=o.length-1}return r}},1674:function(t,e,n){"use strict";n.r(e),n.d(e,"DraftingEvent",(function(){return r}));var i=n("cb76");class r{constructor(t,e){this._map=t,this._callBack=e,this._position=[],this._overlayArr=new Array,this._overlay=null,this._dragPan=null,this._moveFun=null,this._poinFun=null}serMarkerArr(t,e){const n=this;n._overlayArr[e]=t,n._overlay=n._overlayArr[e]._overlay,this._map.getInteractions().forEach((function(t){t instanceof i["a"]&&(n._dragPan=t)})),n._dragPan.setActive(!1)}binDraftingEvent(){const t=this;t._moveFun=function(e){return t._overlay&&!0===t._overlay.get("dragging")&&(t._overlay.setPosition(e.coordinate),t._position=e.coordinate,t._callBack&&t._callBack.call(this,t._position)),!1},t._poinFun=function(){return t._overlay&&!0===t._overlay.get("dragging")&&(t._dragPan.setActive(!0),t._overlay.set("dragging",!1)),!1},t._map.on("pointermove",t._moveFun),t._map.on("pointerup",t._poinFun)}removDraftingEvent(){"function"===typeof this._moveFun&&"function"===typeof this._poinFun&&(this._map.un("pointermove",this._moveFun),this._map.un("pointerup",this._poinFun))}}},1809:function(t,e,n){"use strict";n.r(e),n.d(e,"SvgModel",(function(){return i})),n.d(e,"geo2svg",(function(){return u}));class i{constructor(t=[60,60],e=[0,0,0,0],n="#17A8A2",i=.5,r="#17A8A2",o=1,s="#fff",a=3,l="string",c=5){this.size=t,this.padding=e,this.fill=n,this.fillOpacity=i,this.stroke=r,this.strokeWidth=o,this.background=s,this.precision=a,this.output=l,this.radius=c}}const r=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),e&&n.length===e)break}catch(l){r=!0,o=l}finally{try{!i&&a["return"]&&a["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o={};function s(t){const e=[1/0,1/0,-1/0,-1/0];return t.forEach((function(t){const n=r(t,2),i=n[0],o=n[1];i<e[0]&&(e[0]=i),i>e[2]&&(e[2]=i),o<e[1]&&(e[1]=o),o>e[3]&&(e[3]=o)})),e}function a(t){switch(t.type){case"Point":return[t.coordinates];case"MultiPoint":case"LineString":return t.coordinates;case"MultiLineString":case"Polygon":{const e=t.coordinates;return e.reduce((function(t,e){return t.concat(e)}),e[0])}case"MultiPolygon":{const e=t.coordinates,n=e.reduce((function(t,e){return t.concat(e)}),e[0]);return n.reduce((function(t,e){return t.concat(e)}),n[0])}case"GeometryCollection":{const e=t.geometries,n=e.map((function(t){return a(t)}));return n.reduce((function(t,e){return t.concat(e)}),n[0])}case"Feature":return a(t.geometry);case"FeatureCollection":{const e=t.features,n=e.map((function(t){return a(t)}));return n.reduce((function(t,e){return t.concat(e)}),n[0])}}}function l(t,e,n,i,o,s,a,l){const c=l[3],u=l[0],h=r(e,2),p=h[0],f=h[1];let d=(t[0]-a[0])/o+c,g=f-(t[1]-a[1])/o+u;if(n>i){const t=(f-(s[3]-s[1])/o)/2;g-=t}else{const t=(p-(s[2]-s[0])/o)/2;d+=t}return[d,g]}o.style=function(t,e){const n=e.fill,i=e.fillOpacity,r=e.stroke,o=e.strokeWidth,s=[t.split("/>")[0]];return s.push('fill="'+n+'"'),s.push('fill-opacity="'+i+'"'),s.push('stroke="'+r+'"'),s.push('stroke-width="'+o+'"'),s.join(" ")+" />"},o.createCircle=function(t,e){const n=r(t,2),i=n[0],s=n[1],a=e.radius,l=e.precision,c='<circle cx="'+i.toFixed(l)+'" cy="'+s.toFixed(l)+'" r="'+a.toFixed(l)+'" />';return o.style(c,e)},o.createPath=function(t,e){const n=e.precision,i=t.map((function(t,e){return(0===e?"M":"L")+t[0].toFixed(n)+" "+t[1].toFixed(n)})).join(" "),r='<path d="'+i+'" />';return o.style(r,e)},o.parseSVG=function(t){const e=document.createElementNS("http://www.w3.org/1999/xhtml","div");e.innerHTML=t;const n=document.createDocumentFragment();while(e.firstChild)n.appendChild(e.firstChild);return n};const c={convertBasicGeometry:function(t,e,n){switch(e){case"Point":return o.createCircle(t[0],n);case"LineString":return o.createPath(t,n);case"Polygon":return o.createPath(t,n)}},getCommonOpt:function(t,e){const n=r(e.size,2),i=n[0],o=n[1],l=r(e.padding,4),c=l[0],u=l[1],h=l[2],p=l[3],f=i-p-u,d=o-c-h,g=s(a(t)),y=(g[2]-g[0])/f,_=(g[3]-g[1])/d,v=y>_?y:_,m={xRes:y,yRes:_,res:v,extent:g,origin:[g[0],g[1]],geometrySize:[f,d]};return m},convertPoint:function(t,e,n){const i=n.xRes,r=n.yRes,s=n.res,a=n.extent,c=n.origin,u=n.geometrySize,h=l(t.coordinates,u,i,r,s,a,c,e.padding);return o.createCircle(h,e)},convertMultiPoint:function(t,e,n){const i=n.xRes,r=n.yRes,s=n.res,a=n.extent,c=n.origin,u=n.geometrySize,h=t.coordinates.map((function(t){return l(t,u,i,r,s,a,c,e.padding)})).map((function(t){return o.createCircle(t,e)})).join("");return h},convertLineString:function(t,e,n){const i=n.xRes,r=n.yRes,s=n.res,a=n.extent,c=n.origin,u=n.geometrySize,h=Array.isArray(t)?t:t.coordinates,p=h.map((function(t){return l(t,u,i,r,s,a,c,e.padding)})),f={};return Object.assign(f,e),f.fillOpacity=0,o.createPath(p,f)},convertMultiLineString:function(t,e,n){return t.coordinates.map((function(t){return c.convertLineString(t,e,n)})).join("")},convertPolygon:function(t,e,n){const i=n.xRes,r=n.yRes,s=n.res,a=n.extent,c=n.origin,u=n.geometrySize,h=Array.isArray(t)?t:t.coordinates,p={};return Object.assign(p,e),p.fill=e.background,p.fillOpacity=1,h.map((function(n,h){const f=n.map((function(t){return l(t,u,i,r,s,a,c,e.padding)}));return 0==h||Array.isArray(t)?o.createPath(f,e):o.createPath(f,p)})).join("")},convertMultiPolygon:function(t,e,n){return t.coordinates.map((function(t,i){return c.convertPolygon(t,e,n)})).join("")},convertGeometryCollection:function(t,e,n){const i=t.geometries;return i.map((function(t){const i="convert"+t.type;return c[i](t,e,n)})).join("")},convertFeature:function(t,e,n){const i=t.geometry,r="convert"+i.type;return c[r](i,e,n)},convertFeatureCollection:function(t,e,n){const i=t.features;return i.map((function(t){return c.convertFeature(t,e,n)})).join("")}},u=function(t,e){const n=t.type,i="convert"+n;if(!c[i])throw new Error("The type of input object is not supported.");const s=c.getCommonOpt(t,e);let a='<svg xmlns="http://www.w3.org/2000/svg" style="background:'+e.background+'" width="'+e.size[0]+'" height="'+e.size[1]+'" >',l=c[i];("Point"===n||"GeometryCollection"===n&&1===t.geometries.length&&"Point"===t.geometries[0].type||"FeatureCollection"===n&&1===t.features.length&&"Point"===t.features[0].geometry.type)&&(l=function(t,e,n){n.xRes,n.yRes,n.res,n.extent,n.origin;const i=n.geometrySize,s=r(e.padding,4),a=s[0],l=(s[1],s[2],s[3]),c=[l+i[0]/2,a+i[1]/2];return o.createCircle(c,e)});const u=l(t,e,s);a+=u,a+="</svg>";let h=a;return"element"==e.output&&(h=o.parseSVG(a)),h}},"183a":function(t,e,n){"use strict";e["a"]={ADD:"add",REMOVE:"remove"}},"1af9":function(t,e,n){"use strict";n.d(e,"b",(function(){return p}));var i=n("5564"),r=n("01d4"),o=n("df4c"),s=n("070d"),a=n("92fa"),l=n("38f3"),c=n("1e8d"),u=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=function(t){function e(e){var n=this,i=Object(l["a"])({},e);delete i.source,n=t.call(this,i)||this,n.on,n.once,n.un,n.mapPrecomposeKey_=null,n.mapRenderKey_=null,n.sourceChangeKey_=null,n.renderer_=null,n.rendered=!1,e.render&&(n.render=e.render),e.map&&n.setMap(e.map),n.addChangeListener(o["a"].SOURCE,n.handleSourcePropertyChange_);var r=e.source?e.source:null;return n.setSource(r),n}return u(e,t),e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){return this.get(o["a"].SOURCE)||null},e.prototype.getRenderSource=function(){return this.getSource()},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():"undefined"},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(c["c"])(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=Object(c["a"])(t,r["a"].CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_?this.renderer_.getFeatures(t):new Promise((function(t){return t([])}))},e.prototype.getData=function(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null},e.prototype.render=function(t,e){var n=this.getRenderer();if(n.prepareFrame(t))return this.rendered=!0,n.renderFrame(t,e)},e.prototype.unrender=function(){this.rendered=!1},e.prototype.setMapInternal=function(t){t||this.unrender(),this.set(o["a"].MAP,t)},e.prototype.getMapInternal=function(){return this.get(o["a"].MAP)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Object(c["c"])(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Object(c["c"])(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Object(c["a"])(t,s["a"].PRECOMPOSE,(function(t){var e=t,n=e.frameState.layerStatesArray,i=this.getLayerState(!1);Object(a["a"])(!n.some((function(t){return t.layer===i.layer})),67),n.push(i)}),this),this.mapRenderKey_=Object(c["a"])(this,r["a"].CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(o["a"].SOURCE,t)},e.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},e.prototype.hasRenderer=function(){return!!this.renderer_},e.prototype.createRenderer=function(){return null},e.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),t.prototype.disposeInternal.call(this)},e}(i["a"]);function p(t,e){if(!t.visible)return!1;var n=e.resolution;if(n<t.minResolution||n>=t.maxResolution)return!1;var i=e.zoom;return i>t.minZoom&&i<=t.maxZoom}e["a"]=h},"1c48":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return c}));var i=n("7fc9");function r(t,e,n,r,o,s,a){var l=(n-e)/r;if(l<3){for(;e<n;e+=r)s[a++]=t[e],s[a++]=t[e+1];return a}var c=new Array(l);c[0]=1,c[l-1]=1;var u=[e,n-r],h=0;while(u.length>0){for(var p=u.pop(),f=u.pop(),d=0,g=t[f],y=t[f+1],_=t[p],v=t[p+1],m=f+r;m<p;m+=r){var b=t[m],O=t[m+1],x=Object(i["j"])(b,O,g,y,_,v);x>d&&(h=m,d=x)}d>o&&(c[(h-e)/r]=1,f+r<h&&u.push(f,h),h+r<p&&u.push(h,p))}for(m=0;m<l;++m)c[m]&&(s[a++]=t[e+m*r],s[a++]=t[e+m*r+1]);return a}function o(t,e,n,i,o,s,a,l){for(var c=0,u=n.length;c<u;++c){var h=n[c];a=r(t,e,h,i,o,s,a),l.push(a),e=h}return a}function s(t,e){return e*Math.round(t/e)}function a(t,e,n,i,r,o,a){if(e==n)return a;var l,c,u=s(t[e],r),h=s(t[e+1],r);e+=i,o[a++]=u,o[a++]=h;do{if(l=s(t[e],r),c=s(t[e+1],r),e+=i,e==n)return o[a++]=l,o[a++]=c,a}while(l==u&&c==h);while(e<n){var p=s(t[e],r),f=s(t[e+1],r);if(e+=i,p!=l||f!=c){var d=l-u,g=c-h,y=p-u,_=f-h;d*_==g*y&&(d<0&&y<d||d==y||d>0&&y>d)&&(g<0&&_<g||g==_||g>0&&_>g)?(l=p,c=f):(o[a++]=l,o[a++]=c,u=l,h=c,l=p,c=f)}}return o[a++]=l,o[a++]=c,a}function l(t,e,n,i,r,o,s,l){for(var c=0,u=n.length;c<u;++c){var h=n[c];s=a(t,e,h,i,r,o,s),l.push(s),e=h}return s}function c(t,e,n,i,r,o,s,a){for(var c=0,u=n.length;c<u;++c){var h=n[c],p=[];s=l(t,e,h,i,r,o,s,p),a.push(p),e=h[h.length-1]}return s}},"1d17":function(t,e,n){"use strict";n("06f6")},"1e8d":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s}));var i=n("38f3");function r(t,e,n,i,r){if(i&&i!==t&&(n=n.bind(i)),r){var o=n;n=function(){t.removeEventListener(e,n),o.apply(this,arguments)}}var s={target:t,type:e,listener:n};return t.addEventListener(e,n),s}function o(t,e,n,i){return r(t,e,n,i,!0)}function s(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),Object(i["b"])(t))}},"21bc":function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var i=n("3900"),r=n("01d4"),o=n("cd7e"),s=n("9f5e"),a=n("1af9"),l=n("0999"),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)}}(),u=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 s=void 0!==i.className?i.className:"ol-attribution",a=void 0!==i.tipLabel?i.tipLabel:"Attributions",l=void 0!==i.expandClassName?i.expandClassName:s+"-expand",c=void 0!==i.collapseLabel?i.collapseLabel:"›",u=void 0!==i.collapseClassName?i.collapseClassName:s+"-collapse";"string"===typeof c?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=c,n.collapseLabel_.className=u):n.collapseLabel_=c;var h=void 0!==i.label?i.label:"i";"string"===typeof h?(n.label_=document.createElement("span"),n.label_.textContent=h,n.label_.className=l):n.label_=h;var p=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=a,n.toggleButton_.appendChild(p),n.toggleButton_.addEventListener(r["a"].CLICK,n.handleClick_.bind(n),!1);var f=s+" "+o["e"]+" "+o["b"]+(n.collapsed_&&n.collapsible_?" "+o["a"]:"")+(n.collapsible_?"":" ol-uncollapsible"),d=n.element;return d.className=f,d.appendChild(n.toggleButton_),d.appendChild(n.ulElement_),n.renderedAttributions_=[],n.renderedVisible_=!0,n}return c(e,t),e.prototype.collectSourceAttributions_=function(t){for(var e={},n=[],i=!0,r=t.layerStatesArray,o=0,s=r.length;o<s;++o){var l=r[o];if(Object(a["b"])(l,t.viewState)){var c=l.layer.getSource();if(c){var u=c.getAttributions();if(u){var h=u(t);if(h)if(i=i&&!1!==c.getAttributionsCollapsible(),Array.isArray(h))for(var p=0,f=h.length;p<f;++p)h[p]in e||(n.push(h[p]),e[h[p]]=!0);else h in e||(n.push(h),e[h]=!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(s["b"])(e,this.renderedAttributions_)){Object(l["e"])(this.ulElement_);for(var i=0,r=e.length;i<r;++i){var o=document.createElement("li");o.innerHTML=e[i],this.ulElement_.appendChild(o)}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(l["h"])(this.collapseLabel_,this.label_):Object(l["h"])(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}(i["a"]),h=u,p=n("e300"),f=n("ca42"),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)}}(),g=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 s=void 0!==i.className?i.className:"ol-rotate",a=void 0!==i.label?i.label:"⇧",l=void 0!==i.compassClassName?i.compassClassName:"ol-compass";n.label_=null,"string"===typeof a?(n.label_=document.createElement("span"),n.label_.className=l,n.label_.textContent=a):(n.label_=a,n.label_.classList.add(l));var c=i.tipLabel?i.tipLabel:"Reset rotation",u=document.createElement("button");u.className=s+"-reset",u.setAttribute("type","button"),u.title=c,u.appendChild(n.label_),u.addEventListener(r["a"].CLICK,n.handleClick_.bind(n),!1);var h=s+" "+o["e"]+" "+o["b"],p=n.element;return p.className=h,p.appendChild(u),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 d(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:f["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 r=this.element.classList.contains(o["c"]);r||0!==n?r&&0!==n&&this.element.classList.remove(o["c"]):this.element.classList.add(o["c"])}this.label_.style.transform=i}this.rotation_=n}},e}(i["a"]),y=g,_=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)}}(),v=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),target:i.target})||this;var s=void 0!==i.className?i.className:"ol-zoom",a=void 0!==i.delta?i.delta:1,l=void 0!==i.zoomInClassName?i.zoomInClassName:s+"-in",c=void 0!==i.zoomOutClassName?i.zoomOutClassName:s+"-out",u=void 0!==i.zoomInLabel?i.zoomInLabel:"+",h=void 0!==i.zoomOutLabel?i.zoomOutLabel:"–",p=void 0!==i.zoomInTipLabel?i.zoomInTipLabel:"Zoom in",f=void 0!==i.zoomOutTipLabel?i.zoomOutTipLabel:"Zoom out",d=document.createElement("button");d.className=l,d.setAttribute("type","button"),d.title=p,d.appendChild("string"===typeof u?document.createTextNode(u):u),d.addEventListener(r["a"].CLICK,n.handleClick_.bind(n,a),!1);var g=document.createElement("button");g.className=c,g.setAttribute("type","button"),g.title=f,g.appendChild("string"===typeof h?document.createTextNode(h):h),g.addEventListener(r["a"].CLICK,n.handleClick_.bind(n,-a),!1);var y=s+" "+o["e"]+" "+o["b"],_=n.element;return _.className=y,_.appendChild(d),_.appendChild(g),n.duration_=void 0!==i.duration?i.duration:250,n}return _(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 r=n.getConstrainedZoom(i+t);this.duration_>0?(n.getAnimating()&&n.cancelAnimations(),n.animate({zoom:r,duration:this.duration_,easing:f["b"]})):n.setZoom(r)}}},e}(i["a"]),m=v;function b(t){var e=t||{},n=new p["a"],i=void 0===e.zoom||e.zoom;i&&n.push(new m(e.zoomOptions));var r=void 0===e.rotate||e.rotate;r&&n.push(new y(e.rotateOptions));var o=void 0===e.attribution||e.attribution;return o&&n.push(new h(e.attributionOptions)),n}},"256f":function(t,e,n){"use strict";n.d(e,"a",(function(){return i["a"]})),n.d(e,"c",(function(){return A})),n.d(e,"h",(function(){return G})),n.d(e,"i",(function(){return N})),n.d(e,"b",(function(){return X})),n.d(e,"d",(function(){return W})),n.d(e,"k",(function(){return Y})),n.d(e,"j",(function(){return V})),n.d(e,"p",(function(){return H})),n.d(e,"q",(function(){return Z})),n.d(e,"l",(function(){return U})),n.d(e,"m",(function(){return J})),n.d(e,"e",(function(){return q})),n.d(e,"n",(function(){return $})),n.d(e,"f",(function(){return Q})),n.d(e,"o",(function(){return tt})),n.d(e,"g",(function(){return et}));var i=n("fced"),r=function(){function t(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}return t.prototype.canWrapX=function(){return this.canWrapX_},t.prototype.getCode=function(){return this.code_},t.prototype.getExtent=function(){return this.extent_},t.prototype.getUnits=function(){return this.units_},t.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||i["a"][this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}(),o=r,s=n("7fc9"),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)}}(),l=6378137,c=Math.PI*l,u=[-c,-c,c,c],h=[-180,-85,180,85],p=l*Math.log(Math.tan(Math.PI/2)),f=function(t){function e(e){return t.call(this,{code:e,units:i["b"].METERS,extent:u,global:!0,worldExtent:h,getPointResolution:function(t,e){return t/Object(s["c"])(e[1]/l)}})||this}return a(e,t),e}(o),d=[new f("EPSG:3857"),new f("EPSG:102100"),new f("EPSG:102113"),new f("EPSG:900913"),new f("http://www.opengis.net/def/crs/EPSG/0/3857"),new f("http://www.opengis.net/gml/srs/epsg.xml#3857")];function g(t,e,n){var i=t.length,r=n>1?n:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(i));for(var s=0;s<i;s+=r){o[s]=c*t[s]/180;var a=l*Math.log(Math.tan(Math.PI*(+t[s+1]+90)/360));a>p?a=p:a<-p&&(a=-p),o[s+1]=a}return o}function y(t,e,n){var i=t.length,r=n>1?n:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(i));for(var s=0;s<i;s+=r)o[s]=180*t[s]/c,o[s+1]=360*Math.atan(Math.exp(t[s+1]/l))/Math.PI-90;return o}var _=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)}}(),v=6378137,m=[-180,-90,180,90],b=Math.PI*v/180,O=function(t){function e(e,n){return t.call(this,{code:e,units:i["b"].DEGREES,extent:m,axisOrientation:n,global:!0,metersPerUnit:b,worldExtent:m})||this}return _(e,t),e}(o),x=[new O("CRS:84"),new O("EPSG:4326","neu"),new O("urn:ogc:def:crs:OGC:1.3:CRS84"),new O("urn:ogc:def:crs:OGC:2:84"),new O("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new O("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new O("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],w={};function C(t){return w[t]||w[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function E(t,e){w[t]=e}n("38f3");var S={};function P(t,e,n){var i=t.getCode(),r=e.getCode();i in S||(S[i]={}),S[i][r]=n}function j(t,e){var n;return t in S&&e in S[t]&&(n=S[t][e]),n}var T=n("0af5"),M=n("a568"),R=n("790a"),L=!0;function A(t){var e=void 0===t||t;L=!e}function I(t,e,n){var i;if(void 0!==e){for(var r=0,o=t.length;r<o;++r)e[r]=t[r];i=e}else i=t.slice();return i}function k(t,e,n){if(void 0!==e&&t!==e){for(var i=0,r=t.length;i<r;++i)e[i]=t[i];t=e}return t}function F(t){E(t.getCode(),t),P(t,t,I)}function D(t){t.forEach(F)}function G(t){return"string"===typeof t?C(t):t||null}function N(t,e,n,r){var o;t=G(t);var s=t.getPointResolutionFunc();if(s){if(o=s(e,n),r&&r!==t.getUnits()){var a=t.getMetersPerUnit();a&&(o=o*a/i["a"][r])}}else{var l=t.getUnits();if(l==i["b"].DEGREES&&!r||r==i["b"].DEGREES)o=e;else{var c=Y(t,G("EPSG:4326"));if(c===k&&l!==i["b"].DEGREES)o=e*t.getMetersPerUnit();else{var u=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];u=c(u,u,2);var h=Object(R["b"])(u.slice(0,2),u.slice(2,4)),p=Object(R["b"])(u.slice(4,6),u.slice(6,8));o=(h+p)/2}a=r?i["a"][r]:t.getMetersPerUnit();void 0!==a&&(o/=a)}}return o}function z(t){D(t),t.forEach((function(e){t.forEach((function(t){e!==t&&P(e,t,I)}))}))}function B(t,e,n,i){t.forEach((function(t){e.forEach((function(e){P(t,e,n),P(e,t,i)}))}))}function X(t,e){return t?"string"===typeof t?G(t):t:G(e)}function W(t,e){if(t===e)return!0;var n=t.getUnits()===e.getUnits();if(t.getCode()===e.getCode())return n;var i=Y(t,e);return i===I&&n}function Y(t,e){var n=t.getCode(),i=e.getCode(),r=j(n,i);return r||(r=k),r}function V(t,e){var n=G(t),i=G(e);return Y(n,i)}function H(t,e,n){var i=V(e,n);return i(t,void 0,t.length)}function Z(t,e,n,i){var r=V(e,n);return Object(T["a"])(t,r,void 0,i)}var K=null;function U(){return K}function J(t,e){return K?H(t,e,K):t}function q(t,e){return K?H(t,K,e):(L&&!Object(M["e"])(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(L=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function $(t,e){return K?Z(t,e,K):t}function Q(t,e){return K?Z(t,K,e):t}function tt(t,e){if(!K)return t;var n=G(e).getUnits(),r=K.getUnits();return n&&r?t*i["a"][n]/i["a"][r]:t}function et(t,e){if(!K)return t;var n=G(e).getUnits(),r=K.getUnits();return n&&r?t*i["a"][r]/i["a"][n]:t}function nt(){z(d),z(x),B(x,d,g,y)}nt()},"25a5":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";function t(t,i,r,o,s){!function t(n,i,r,o,s){for(;o>r;){if(o-r>600){var a=o-r+1,l=i-r+1,c=Math.log(a),u=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*u*(a-u)/a)*(l-a/2<0?-1:1),p=Math.max(r,Math.floor(i-l*u/a+h)),f=Math.min(o,Math.floor(i+(a-l)*u/a+h));t(n,i,p,f,s)}var d=n[i],g=r,y=o;for(e(n,r,i),s(n[o],d)>0&&e(n,r,o);g<y;){for(e(n,g,y),g++,y--;s(n[g],d)<0;)g++;for(;s(n[y],d)>0;)y--}0===s(n[r],d)?e(n,r,y):e(n,++y,o),y<=i&&(r=y+1),i<=y&&(o=y-1)}}(t,i,r||0,o||t.length-1,s||n)}function e(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function n(t,e){return t<e?-1:t>e?1:0}var i=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function r(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i<e.length;i++)if(n(t,e[i]))return i;return-1}function o(t,e){s(t,0,t.children.length,e,t)}function s(t,e,n,i,r){r||(r=d(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var o=e;o<n;o++){var s=t.children[o];a(r,t.leaf?i(s):s)}return r}function a(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function l(t,e){return t.minX-e.minX}function c(t,e){return t.minY-e.minY}function u(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function f(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function d(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,n,i,r,o){for(var s=[n,i];s.length;)if(!((i=s.pop())-(n=s.pop())<=r)){var a=n+Math.ceil((i-n)/r/2)*r;t(e,a,n,i,o),s.push(n,a,a,i)}}return i.prototype.all=function(){return this._all(this.data,[])},i.prototype.search=function(t){var e=this.data,n=[];if(!f(t,e))return n;for(var i=this.toBBox,r=[];e;){for(var o=0;o<e.children.length;o++){var s=e.children[o],a=e.leaf?i(s):s;f(t,a)&&(e.leaf?n.push(s):p(t,a)?this._all(s,n):r.push(s))}e=r.pop()}return n},i.prototype.collides=function(t){var e=this.data;if(!f(t,e))return!1;for(var n=[];e;){for(var i=0;i<e.children.length;i++){var r=e.children[i],o=e.leaf?this.toBBox(r):r;if(f(t,o)){if(e.leaf||p(t,o))return!0;n.push(r)}}e=n.pop()}return!1},i.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var i=this.data;this.data=n,n=i}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},i.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},i.prototype.clear=function(){return this.data=d([]),this},i.prototype.remove=function(t,e){if(!t)return this;for(var n,i,o,s=this.data,a=this.toBBox(t),l=[],c=[];s||l.length;){if(s||(s=l.pop(),i=l[l.length-1],n=c.pop(),o=!0),s.leaf){var u=r(t,s.children,e);if(-1!==u)return s.children.splice(u,1),l.push(s),this._condense(l),this}o||s.leaf||!p(s,a)?i?(n++,s=i.children[n],o=!1):s=null:(l.push(s),c.push(n),n=0,i=s,s=s.children[0])}return this},i.prototype.toBBox=function(t){return t},i.prototype.compareMinX=function(t,e){return t.minX-e.minX},i.prototype.compareMinY=function(t,e){return t.minY-e.minY},i.prototype.toJSON=function(){return this.data},i.prototype.fromJSON=function(t){return this.data=t,this},i.prototype._all=function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},i.prototype._build=function(t,e,n,i){var r,s=n-e+1,a=this._maxEntries;if(s<=a)return o(r=d(t.slice(e,n+1)),this.toBBox),r;i||(i=Math.ceil(Math.log(s)/Math.log(a)),a=Math.ceil(s/Math.pow(a,i-1))),(r=d([])).leaf=!1,r.height=i;var l=Math.ceil(s/a),c=l*Math.ceil(Math.sqrt(a));g(t,e,n,c,this.compareMinX);for(var u=e;u<=n;u+=c){var h=Math.min(u+c-1,n);g(t,u,h,l,this.compareMinY);for(var p=u;p<=h;p+=l){var f=Math.min(p+l-1,h);r.children.push(this._build(t,p,f,i-1))}}return o(r,this.toBBox),r},i.prototype._chooseSubtree=function(t,e,n,i){for(;i.push(e),!e.leaf&&i.length-1!==n;){for(var r=1/0,o=1/0,s=void 0,a=0;a<e.children.length;a++){var l=e.children[a],c=u(l),h=(p=t,f=l,(Math.max(f.maxX,p.maxX)-Math.min(f.minX,p.minX))*(Math.max(f.maxY,p.maxY)-Math.min(f.minY,p.minY))-c);h<o?(o=h,r=c<r?c:r,s=l):h===o&&c<r&&(r=c,s=l)}e=s||e.children[0]}var p,f;return e},i.prototype._insert=function(t,e,n){var i=n?t:this.toBBox(t),r=[],o=this._chooseSubtree(i,this.data,e,r);for(o.children.push(t),a(o,i);e>=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)},i.prototype._split=function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var s=this._chooseSplitIndex(n,r,i),a=d(n.children.splice(s,n.children.length-s));a.height=n.height,a.leaf=n.leaf,o(n,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(n,a)},i.prototype._splitRoot=function(t,e){this.data=d([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},i.prototype._chooseSplitIndex=function(t,e,n){for(var i,r,o,a,l,c,h,p=1/0,f=1/0,d=e;d<=n-e;d++){var g=s(t,0,d,this.toBBox),y=s(t,d,n,this.toBBox),_=(r=g,o=y,a=void 0,l=void 0,c=void 0,h=void 0,a=Math.max(r.minX,o.minX),l=Math.max(r.minY,o.minY),c=Math.min(r.maxX,o.maxX),h=Math.min(r.maxY,o.maxY),Math.max(0,c-a)*Math.max(0,h-l)),v=u(g)+u(y);_<p?(p=_,i=d,f=v<f?v:f):_===p&&v<f&&(f=v,i=d)}return i||n-e},i.prototype._chooseSplitAxis=function(t,e,n){var i=t.leaf?this.compareMinX:l,r=t.leaf?this.compareMinY:c;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,r)&&t.children.sort(i)},i.prototype._allDistMargin=function(t,e,n,i){t.children.sort(i);for(var r=this.toBBox,o=s(t,0,e,r),l=s(t,n-e,n,r),c=h(o)+h(l),u=e;u<n-e;u++){var p=t.children[u];a(o,t.leaf?r(p):p),c+=h(o)}for(var f=n-e-1;f>=e;f--){var d=t.children[f];a(l,t.leaf?r(d):d),c+=h(l)}return c},i.prototype._adjustParentBBoxes=function(t,e,n){for(var i=n;i>=0;i--)a(e[i],t)},i.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},i}))},"25f1":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return a}));var i=n("0af5");function r(t,e,n,r,s){var a=Object(i["s"])(s,(function(i){return!o(t,e,n,r,i[0],i[1])}));return!a}function o(t,e,n,i,r,o){for(var s=0,a=t[n-i],l=t[n-i+1];e<n;e+=i){var c=t[e],u=t[e+1];l<=o?u>o&&(c-a)*(o-l)-(r-a)*(u-l)>0&&s++:u<=o&&(c-a)*(o-l)-(r-a)*(u-l)<0&&s--,a=c,l=u}return 0!==s}function s(t,e,n,i,r,s){if(0===n.length)return!1;if(!o(t,e,n[0],i,r,s))return!1;for(var a=1,l=n.length;a<l;++a)if(o(t,n[a-1],n[a],i,r,s))return!1;return!0}function a(t,e,n,i,r,o){if(0===n.length)return!1;for(var a=0,l=n.length;a<l;++a){var c=n[a];if(s(t,e,c,i,r,o))return!0;e=c[c.length-1]}return!1}},2606:function(t,e,n){"use strict";n.r(e);var i=n("480c"),r=n("78db"),o=n("91b1"),s=n("256f");Object(s["h"])("EPSG:3857");e["default"]=class{constructor(){this._layers=[],this._init()}_tileGrid(){const t=[];for(let e=0;e<19;e++)t[e]=Math.pow(2,18-e);return new r["a"]({origin:[0,0],resolutions:t})}_bdVecMap(){let t=new o["a"]({projection:"EPSG:3857",tileGrid:this._tileGrid(),tileUrlFunction:function(t,e,n){if(!t)return"";let i=t[0],r=t[1],o=-t[2];return r<0&&(r="M"+-r),o<0&&(o="M"+-o),"http://online3.map.bdimg.com/onlinelabel/?qt=tile&x="+r+"&y="+o+"&z="+i+"&styles=pl&udt=20151021&scaler=1&p=1"}});return new i["a"]({source:t,zIndex:-10})}_bdImageMap(){const t=new o["a"]({tileGrid:this._tileGrid(),projection:"EPSG:3857",tileUrlFunction:(t,e,n)=>{if(!t)return"";let i=t[0],r=t[1],o=-t[2];return r<0&&(r="M"+-r),o<0&&(o="M"+-o),"http://shangetu1.map.bdimg.com/it/u=x="+r+";y="+o+";z="+i+";v=009;type=sate&fm=46"},crossOrigin:"anonymous"});return new i["a"]({source:t,zIndex:-10})}_bdImageLabelMap(){const t=new o["a"]({tileGrid:this._tileGrid(),projection:"EPSG:3857",tileUrlFunction:(t,e,n)=>{if(!t)return"";let i=t[0],r=t[1],o=-t[2];return r<0&&(r="M"+-r),o<0&&(o="M"+-o),"http://online1.map.bdimg.com/tile/?qt=tile&x="+r+"&y="+o+"&z="+i+"&styles=sl&v=020"},crossOrigin:"anonymous"});return new i["a"]({source:t,zIndex:-10})}_init(){this._layers.push([this._bdVecMap()]);const t=this._bdImageMap();this._layers.push([t]),this._layers.push([t,this._bdImageLabelMap()])}get layers(){return this._layers}}},"29d2":function(t,e,n){"use strict";n.r(e);var i=n("5eee"),r=n("a226"),o=n("480c"),s=n("9d47"),a=function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{l(i.next(t))}catch(e){o(e)}}function a(t){try{l(i["throw"](t))}catch(e){o(e)}}function l(t){t.done?n(t.value):r(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())}))};e["default"]=class{constructor(t){this._ele=null,this._mapOptians=null,this._styles=["Aerial"],this._mapOptians=t}onLoad(t){return a(this,void 0,void 0,(function*(){this._ele=t;const e=this._init();return yield new Promise((n,r)=>{const o=new i["a"](Object.assign({target:t,layers:e},this._mapOptians));if(o)return o.addControl(new s["a"]),void n(o);r(null)})}))}_init(){const t=[];for(let e=0;e<this._styles.length;++e)t.push(new o["a"]({visible:!0,preload:1/0,source:new r["a"]({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:this._styles[e],culture:"zh-cn"})}));return t}}},"29f6":function(t,e,n){"use strict";e["a"]={POINT:"point",LINE:"line"}},"2c30":function(t,e,n){"use strict";function i(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function r(t,e,n){return t+"/"+e+"/"+n}function o(t){return r(t[0],t[1],t[2])}function s(t){return t.split("/").map(Number)}function a(t){return(t[1]<<t[0])+t[2]}function l(t,e){var n=t[0],i=t[1],r=t[2];if(e.getMinZoom()>n||n>e.getMaxZoom())return!1;var o=e.getFullTileRange(n);return!o||o.containsXY(i,r)}n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return l}))},"2efc":function(t,e,n){"use strict";var i=n("a504"),r=n("01d4"),o=n("5e31"),s=n("acc1"),a=n("b739"),l=n("3c81"),c=n("7fc9"),u=n("0af5"),h=n("1e8d"),p=n("0999"),f=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)}}(),d=function(t){function e(e,n,r,o,h,p,f,d,g,y,_,v){var m=t.call(this,h,s["a"].IDLE,{interpolate:!!v})||this;m.renderEdges_=void 0!==_&&_,m.pixelRatio_=f,m.gutter_=d,m.canvas_=null,m.sourceTileGrid_=n,m.targetTileGrid_=o,m.wrappedTileCoord_=p||h,m.sourceTiles_=[],m.sourcesListenerKeys_=null,m.sourceZ_=0;var b=o.getTileCoordExtent(m.wrappedTileCoord_),O=m.targetTileGrid_.getExtent(),x=m.sourceTileGrid_.getExtent(),w=O?Object(u["A"])(b,O):b;if(0===Object(u["t"])(w))return m.state=s["a"].EMPTY,m;var C=e.getExtent();C&&(x=x?Object(u["A"])(x,C):C);var E=o.getResolution(m.wrappedTileCoord_[0]),S=Object(l["a"])(e,r,w,E);if(!isFinite(S)||S<=0)return m.state=s["a"].EMPTY,m;var P=void 0!==y?y:i["b"];if(m.triangulation_=new a["a"](e,r,w,x,S*P,E),0===m.triangulation_.getTriangles().length)return m.state=s["a"].EMPTY,m;m.sourceZ_=n.getZForResolution(S);var j=m.triangulation_.calculateSourceExtent();if(x&&(e.canWrapX()?(j[1]=Object(c["b"])(j[1],x[1],x[3]),j[3]=Object(c["b"])(j[3],x[1],x[3])):j=Object(u["A"])(j,x)),Object(u["t"])(j)){for(var T=n.getTileRangeForExtentAndZ(j,m.sourceZ_),M=T.minX;M<=T.maxX;M++)for(var R=T.minY;R<=T.maxY;R++){var L=g(m.sourceZ_,M,R,f);L&&m.sourceTiles_.push(L)}0===m.sourceTiles_.length&&(m.state=s["a"].EMPTY)}else m.state=s["a"].EMPTY;return m}return f(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()==s["a"].LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=s["a"].ERROR;else{var e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),i="number"===typeof n?n:n[0],r="number"===typeof n?n:n[1],o=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),c=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Object(l["d"])(i,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,c,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=s["a"].LOADED}this.changed()},e.prototype.load=function(){if(this.state==s["a"].IDLE){this.state=s["a"].LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,n,i){var o=e.getState();if(o==s["a"].IDLE||o==s["a"].LOADING){t++;var a=Object(h["a"])(e,r["a"].CHANGE,(function(n){var i=e.getState();i!=s["a"].LOADED&&i!=s["a"].ERROR&&i!=s["a"].EMPTY||(Object(h["c"])(a),t--,0===t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(a)}}.bind(this)),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t,e,n){var i=t.getState();i==s["a"].IDLE&&t.load()}))}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(h["c"]),this.sourcesListenerKeys_=null},e.prototype.release=function(){this.canvas_&&(Object(p["d"])(this.canvas_.getContext("2d")),l["c"].push(this.canvas_),this.canvas_=null),t.prototype.release.call(this)},e}(o["a"]);e["a"]=d},"2fc1":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));var i=n("9a94");class r extends i["LOverlay"]{constructor(t,e=16,n=16){super(),this.imgSrc=t,this.width=e,this.height=n,this.ele.style.position="relative",this.ele.style.cursor="pointer",this.ele.style.width=this.width+"px",this.ele.style.height=this.height+"px",this.ele.style.backgroundPosition="center center",this.ele.style.backgroundRepeat="no-repeat",this.ele.style.backgroundImage=`url(${this.imgSrc})`,this.ele.style.backgroundSize="100% 100%"}setHTMLElementStyle(){}setImgSrc(t){this.ele.style.backgroundImage=`url(${t})`}}},"304e":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));var i=n("9a94");class r extends i["LOverlay"]{constructor(){super()}setHTMLElementStyle(){this.ele.style.position="relative",this.ele.style.background="rgba(0, 0, 0, 0.8)",this.ele.style.borderRadius="4px",this.ele.style.color="#fff",this.ele.style.padding="4px 8px",this.ele.style.opacity="0.7",this.ele.style.whiteSpace="nowrap"}}},3333:function(t,e,n){"use strict";var i=n("cef7"),r=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)}}(),o=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.inversePixelTransform=n,o.frameState=i,o.context=r,o}return r(e,t),e}(i["a"]);e["a"]=o},"345d":function(t,e,n){"use strict";function i(t){return t[0]>0&&t[1]>0}function r(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function o(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o}))},"35a7":function(t,e,n){"use strict";var i=n("0ec0"),r=n("01d4"),o=n("1e8d"),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)}}(),a=function(t){function e(){var e=t.call(this)||this;return e.on=e.onInternal,e.once=e.onceInternal,e.un=e.unInternal,e.revision_=0,e}return s(e,t),e.prototype.changed=function(){++this.revision_,this.dispatchEvent(r["a"].CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,e){if(Array.isArray(t)){for(var n=t.length,i=new Array(n),r=0;r<n;++r)i[r]=Object(o["a"])(this,t[r],e);return i}return Object(o["a"])(this,t,e)},e.prototype.onceInternal=function(t,e){var n;if(Array.isArray(t)){var i=t.length;n=new Array(i);for(var r=0;r<i;++r)n[r]=Object(o["b"])(this,t[r],e)}else n=Object(o["b"])(this,t,e);return e.ol_key=n,n},e.prototype.unInternal=function(t,e){var n=e.ol_key;if(n)l(n);else if(Array.isArray(t))for(var i=0,r=t.length;i<r;++i)this.removeEventListener(t[i],e);else this.removeEventListener(t,e)},e}(i["a"]);function l(t){if(Array.isArray(t))for(var e=0,n=t.length;e<n;++e)Object(o["c"])(t[e]);else Object(o["c"])(t)}a.prototype.on,a.prototype.once,a.prototype.un,e["a"]=a},"370b":function(t,e,n){"use strict";n.r(e),n.d(e,"coordAll",(function(){return u})),n.d(e,"coordEach",(function(){return r})),n.d(e,"coordReduce",(function(){return o})),n.d(e,"featureEach",(function(){return l})),n.d(e,"featureReduce",(function(){return c})),n.d(e,"findPoint",(function(){return b})),n.d(e,"findSegment",(function(){return m})),n.d(e,"flattenEach",(function(){return f})),n.d(e,"flattenReduce",(function(){return d})),n.d(e,"geomEach",(function(){return h})),n.d(e,"geomReduce",(function(){return p})),n.d(e,"lineEach",(function(){return _})),n.d(e,"lineReduce",(function(){return v})),n.d(e,"propEach",(function(){return s})),n.d(e,"propReduce",(function(){return a})),n.d(e,"segmentEach",(function(){return g})),n.d(e,"segmentReduce",(function(){return y}));var i=n("d30b");function r(t,e,n){if(null!==t)for(var i,o,s,a,l,c,u,h,p=0,f=0,d=t.type,g="FeatureCollection"===d,y="Feature"===d,_=g?t.features.length:1,v=0;v<_;v++){u=g?t.features[v].geometry:y?t.geometry:t,h=!!u&&"GeometryCollection"===u.type,l=h?u.geometries.length:1;for(var m=0;m<l;m++){var b=0,O=0;if(a=h?u.geometries[m]:u,null!==a){c=a.coordinates;var x=a.type;switch(p=!n||"Polygon"!==x&&"MultiPolygon"!==x?0:1,x){case null:break;case"Point":if(!1===e(c,f,v,b,O))return!1;f++,b++;break;case"LineString":case"MultiPoint":for(i=0;i<c.length;i++){if(!1===e(c[i],f,v,b,O))return!1;f++,"MultiPoint"===x&&b++}"LineString"===x&&b++;break;case"Polygon":case"MultiLineString":for(i=0;i<c.length;i++){for(o=0;o<c[i].length-p;o++){if(!1===e(c[i][o],f,v,b,O))return!1;f++}"MultiLineString"===x&&b++,"Polygon"===x&&O++}"Polygon"===x&&b++;break;case"MultiPolygon":for(i=0;i<c.length;i++){for(O=0,o=0;o<c[i].length;o++){for(s=0;s<c[i][o].length-p;s++){if(!1===e(c[i][o][s],f,v,b,O))return!1;f++}O++}b++}break;case"GeometryCollection":for(i=0;i<a.geometries.length;i++)if(!1===r(a.geometries[i],e,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(t,e,n,i){var o=n;return r(t,(function(t,i,r,s,a){o=0===i&&void 0===n?t:e(o,t,i,r,s,a)}),i),o}function s(t,e){var n;switch(t.type){case"FeatureCollection":for(n=0;n<t.features.length;n++)if(!1===e(t.features[n].properties,n))break;break;case"Feature":e(t.properties,0);break}}function a(t,e,n){var i=n;return s(t,(function(t,r){i=0===r&&void 0===n?t:e(i,t,r)})),i}function l(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var n=0;n<t.features.length;n++)if(!1===e(t.features[n],n))break}function c(t,e,n){var i=n;return l(t,(function(t,r){i=0===r&&void 0===n?t:e(i,t,r)})),i}function u(t){var e=[];return r(t,(function(t){e.push(t)})),e}function h(t,e){var n,i,r,o,s,a,l,c,u,h,p=0,f="FeatureCollection"===t.type,d="Feature"===t.type,g=f?t.features.length:1;for(n=0;n<g;n++){for(a=f?t.features[n].geometry:d?t.geometry:t,c=f?t.features[n].properties:d?t.properties:{},u=f?t.features[n].bbox:d?t.bbox:void 0,h=f?t.features[n].id:d?t.id:void 0,l=!!a&&"GeometryCollection"===a.type,s=l?a.geometries.length:1,r=0;r<s;r++)if(o=l?a.geometries[r]:a,null!==o)switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(o,p,c,u,h))return!1;break;case"GeometryCollection":for(i=0;i<o.geometries.length;i++)if(!1===e(o.geometries[i],p,c,u,h))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,p,c,u,h))return!1;p++}}function p(t,e,n){var i=n;return h(t,(function(t,r,o,s,a){i=0===r&&void 0===n?t:e(i,t,r,o,s,a)})),i}function f(t,e){h(t,(function(t,n,r,o,s){var a,l=null===t?null:t.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return!1!==e(Object(i["feature"])(t,r,{bbox:o,id:s}),n,0)&&void 0}switch(l){case"MultiPoint":a="Point";break;case"MultiLineString":a="LineString";break;case"MultiPolygon":a="Polygon";break}for(var c=0;c<t.coordinates.length;c++){var u=t.coordinates[c],h={type:a,coordinates:u};if(!1===e(Object(i["feature"])(h,r),n,c))return!1}}))}function d(t,e,n){var i=n;return f(t,(function(t,r,o){i=0===r&&0===o&&void 0===n?t:e(i,t,r,o)})),i}function g(t,e){f(t,(function(t,n,o){var s=0;if(t.geometry){var a=t.geometry.type;if("Point"!==a&&"MultiPoint"!==a){var l,c=0,u=0,h=0;return!1!==r(t,(function(r,a,p,f,d){if(void 0===l||n>c||f>u||d>h)return l=r,c=n,u=f,h=d,void(s=0);var g=Object(i["lineString"])([l,r],t.properties);if(!1===e(g,n,o,d,s))return!1;s++,l=r}))&&void 0}}}))}function y(t,e,n){var i=n,r=!1;return g(t,(function(t,o,s,a,l){i=!1===r&&void 0===n?t:e(i,t,o,s,a,l),r=!0})),i}function _(t,e){if(!t)throw new Error("geojson is required");f(t,(function(t,n,r){if(null!==t.geometry){var o=t.geometry.type,s=t.geometry.coordinates;switch(o){case"LineString":if(!1===e(t,n,r,0,0))return!1;break;case"Polygon":for(var a=0;a<s.length;a++)if(!1===e(Object(i["lineString"])(s[a],t.properties),n,r,a))return!1;break}}}))}function v(t,e,n){var i=n;return _(t,(function(t,r,o,s){i=0===r&&void 0===n?t:e(i,t,r,o,s)})),i}function m(t,e){if(e=e||{},!Object(i["isObject"])(e))throw new Error("options is invalid");var n,r=e.featureIndex||0,o=e.multiFeatureIndex||0,s=e.geometryIndex||0,a=e.segmentIndex||0,l=e.properties;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),l=l||t.features[r].properties,n=t.features[r].geometry;break;case"Feature":l=l||t.properties,n=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=t;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":case"MultiPoint":return null;case"LineString":return a<0&&(a=c.length+a-1),Object(i["lineString"])([c[a],c[a+1]],l,e);case"Polygon":return s<0&&(s=c.length+s),a<0&&(a=c[s].length+a-1),Object(i["lineString"])([c[s][a],c[s][a+1]],l,e);case"MultiLineString":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a-1),Object(i["lineString"])([c[o][a],c[o][a+1]],l,e);case"MultiPolygon":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s),a<0&&(a=c[o][s].length-a-1),Object(i["lineString"])([c[o][s][a],c[o][s][a+1]],l,e)}throw new Error("geojson is invalid")}function b(t,e){if(e=e||{},!Object(i["isObject"])(e))throw new Error("options is invalid");var n,r=e.featureIndex||0,o=e.multiFeatureIndex||0,s=e.geometryIndex||0,a=e.coordIndex||0,l=e.properties;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),l=l||t.features[r].properties,n=t.features[r].geometry;break;case"Feature":l=l||t.properties,n=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=t;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":return Object(i["point"])(c,l,e);case"MultiPoint":return o<0&&(o=c.length+o),Object(i["point"])(c[o],l,e);case"LineString":return a<0&&(a=c.length+a),Object(i["point"])(c[a],l,e);case"Polygon":return s<0&&(s=c.length+s),a<0&&(a=c[s].length+a),Object(i["point"])(c[s][a],l,e);case"MultiLineString":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),Object(i["point"])(c[o][a],l,e);case"MultiPolygon":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s),a<0&&(a=c[o][s].length-a),Object(i["point"])(c[o][s][a],l,e)}throw new Error("geojson is invalid")}},"38f3":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s}));var i="function"===typeof Object.assign?Object.assign:function(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1,r=arguments.length;i<r;++i){var o=arguments[i];if(void 0!==o&&null!==o)for(var s in o)o.hasOwnProperty(s)&&(n[s]=o[s])}return n};function r(t){for(var e in t)delete t[e]}var o="function"===typeof Object.values?Object.values:function(t){var e=[];for(var n in t)e.push(t[n]);return e};function s(t){var e;for(e in t)return!1;return!e}},3900:function(t,e,n){"use strict";var i=n("e269"),r=n("592d"),o=n("57cb"),s=n("1e8d"),a=n("0999"),l=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)}}(),c=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 l(e,t),e.prototype.disposeInternal=function(){Object(a["f"])(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&Object(a["f"])(this.element);for(var e=0,n=this.listenerKeys.length;e<n;++e)Object(s["c"])(this.listenerKeys[e]);if(this.listenerKeys.length=0,this.map_=t,t){var i=this.target_?this.target_:t.getOverlayContainerStopEvent();i.appendChild(this.element),this.render!==o["c"]&&this.listenerKeys.push(Object(s["a"])(t,r["a"].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}(i["a"]);e["a"]=c},"3a22":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var i=n("3e6b"),r=n("6c77"),o=n("83a6"),s=n("8682"),a=n("5831"),l=n("4cdf"),c=n("5bc3"),u=n("e1f2");class h extends u["a"]{constructor(t,e){super(t,e),this.createPolygon()}createPolygon(){this.layer=new i["a"]({source:new a["a"],style:this.getStyle()}),this.polygon=new c["a"](this.isConvertCoordinatesGCJ02()),this.polygonFeature=new l["a"](this.polygon),this.id&&this.polygonFeature.setId(this.id),this.layer.getSource().addFeature(this.polygonFeature),this.isHidePolygon||this.map.addLayer(this.layer)}getStyle(){return new r["c"]({fill:new o["a"]({color:this.fillColor}),stroke:new s["a"]({color:this.stroke,width:this.width,lineDash:this.lineDash})})}removePolygon(){this.map.removeLayer(this.layer),this.lineFeature&&(this.source.removeFeature(this.polygonFeature),this.polygonFeature=null,this.source=null,this.layer=null,this.polygon=null)}}},"3a39":function(t,e,n){"use strict";n.d(e,"a",(function(){return et}));var i=n("e300"),r=n("4334"),o=n("0b2d"),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)}}(),a=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 s(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==o["a"].DBLCLICK){var n=t.originalEvent,i=t.map,s=t.coordinate,a=n.shiftKey?-this.delta_:this.delta_,l=i.getView();Object(r["c"])(l,a,s,this.duration_),n.preventDefault(),e=!0}return!e},e}(r["a"]),l=a,c=n("cb76"),u=n("4105"),h=n("57cb"),p=n("06f8"),f=n("8cc5"),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)}}(),g=function(t){function e(e){var n=this,i=e||{};return n=t.call(this,{stopDown:h["a"]})||this,n.condition_=i.condition?i.condition:p["c"],n.lastAngle_=void 0,n.duration_=void 0!==i.duration?i.duration:250,n}return d(e,t),e.prototype.handleDragEvent=function(t){if(Object(p["g"])(t)){var e=t.map,n=e.getView();if(n.getConstraints().rotation!==f["c"]){var i=e.getSize(),r=t.pixel,o=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(void 0!==this.lastAngle_){var s=o-this.lastAngle_;n.adjustRotationInternal(-s)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){if(!Object(p["g"])(t))return!0;var e=t.map,n=e.getView();return n.endInteraction(this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!Object(p["g"])(t))return!1;if(Object(p["f"])(t)&&this.condition_(t)){var e=t.map;return e.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1},e}(u["b"]),y=g,_=n("cef7"),v=n("da5c"),m=n("5bc3"),b=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)}}(),O=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 b(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 m["a"]([i])},e.prototype.getGeometry=function(){return this.geometry_},e}(v["a"]),x=O,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)}}(),C={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},E=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.coordinate=n,r.mapBrowserEvent=i,r}return w(e,t),e}(_["a"]),S=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var i=e||{};return n.box_=new x(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:p["f"],n.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:n.defaultBoxEndCondition,n}return w(e,t),e.prototype.defaultBoxEndCondition=function(t,e,n){var i=n[0]-e[0],r=n[1]-e[1];return i*i+r*r>=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 E(C.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 E(e?C.BOXEND:C.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 E(C.BOXSTART,t.coordinate,t)),!0)},e.prototype.onBoxEnd=function(t){},e}(u["b"]),P=S,j=n("ca42"),T=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||{},r=i.condition?i.condition:p["j"];return n=t.call(this,{condition:r,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 T(e,t),e.prototype.onBoxEnd=function(t){var e=this.getMap(),n=e.getView(),i=this.getGeometry();if(this.out_){var r=n.rotatedExtentForGeometry(i),o=n.getResolutionForExtentInternal(r),s=n.getResolution()/o;i=i.clone(),i.scale(s*s)}n.fitInternal(i,{duration:this.duration_,easing:j["b"]})},e}(P),R=M,L=n("01d4"),A={LEFT:37,UP:38,RIGHT:39,DOWN:40},I=n("a568"),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)}}(),F=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.defaultCondition_=function(t){return Object(p["h"])(t)&&Object(p["l"])(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 k(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==L["a"].KEYDOWN){var n=t.originalEvent,i=n.keyCode;if(this.condition_(t)&&(i==A.DOWN||i==A.LEFT||i==A.RIGHT||i==A.UP)){var o=t.map,s=o.getView(),a=s.getResolution()*this.pixelDelta_,l=0,c=0;i==A.DOWN?c=-a:i==A.LEFT?l=-a:i==A.RIGHT?l=a:c=a;var u=[l,c];Object(I["g"])(u,s.getRotation()),Object(r["b"])(s,u,this.duration_),n.preventDefault(),e=!0}}return!e},e}(r["a"]),D=F,G=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)}}(),N=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.condition_=i.condition?i.condition:p["l"],n.delta_=i.delta?i.delta:1,n.duration_=void 0!==i.duration?i.duration:100,n}return G(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==L["a"].KEYDOWN||t.type==L["a"].KEYPRESS){var n=t.originalEvent,i=n.charCode;if(this.condition_(t)&&(i=="+".charCodeAt(0)||i=="-".charCodeAt(0))){var o=t.map,s=i=="+".charCodeAt(0)?this.delta_:-this.delta_,a=o.getView();Object(r["c"])(a,s,void 0,this.duration_),n.preventDefault(),e=!0}}return!e},e}(r["a"]),z=N,B=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 r=this.points_[e]-this.points_[n],o=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/i,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}(),X=B,W=n("617d"),Y=n("7fc9"),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)}}(),H={TRACKPAD:"trackpad",WHEEL:"wheel"},Z=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 r=i.condition?i.condition:p["d"];return n.condition_=i.onFocusOnly?Object(p["a"])(p["e"],r):r,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return V(e,t),e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap();if(t){var e=t.getView();e.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!==L["a"].WHEEL)return!0;var n,i=t.map,r=t.originalEvent;if(r.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==L["a"].WHEEL&&(n=r.deltaY,W["b"]&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=W["a"]),r.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)),0===n)return!1;this.lastDelta_=n;var o=Date.now();void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?H.TRACKPAD:H.WHEEL);var s=i.getView();if(this.mode_===H.TRACKPAD&&!s.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(s.getAnimating()&&s.cancelAnimations(),s.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),s.adjustZoom(-n/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=o,!1;this.totalDelta_+=n;var a=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),a),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var n=-Object(Y["b"])(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),Object(r["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}(r["a"]),K=Z,U=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||{},r=i;return r.stopDown||(r.stopDown=h["a"]),n=t.call(this,r)||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 U(e,t),e.prototype.handleDragEvent=function(t){var e=0,n=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){var o=r-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=r;var s=t.map,a=s.getView();if(a.getConstraints().rotation!==f["c"]){var l=s.getViewport().getBoundingClientRect(),c=Object(u["a"])(this.targetPointers);c[0]-=l.left,c[1]-=l.top,this.anchor_=s.getCoordinateFromPixelInternal(c),this.rotating_&&(s.render(),a.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}(u["b"]),q=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)}}(),Q=function(t){function e(e){var n=this,i=e||{},r=i;return r.stopDown||(r.stopDown=h["a"]),n=t.call(this,r)||this,n.anchor_=null,n.duration_=void 0!==i.duration?i.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return $(e,t),e.prototype.handleDragEvent=function(t){var e=1,n=this.targetPointers[0],i=this.targetPointers[1],r=n.clientX-i.clientX,o=n.clientY-i.clientY,s=Math.sqrt(r*r+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/s),this.lastDistance_=s;var a=t.map,l=a.getView();1!=e&&(this.lastScaleDelta_=e);var c=a.getViewport().getBoundingClientRect(),h=Object(u["a"])(this.targetPointers);h[0]-=c.left,h[1]-=c.top,this.anchor_=a.getCoordinateFromPixelInternal(h),a.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}(u["b"]),tt=Q;function et(t){var e=t||{},n=new i["a"],r=new X(-.005,.05,100),o=void 0===e.altShiftDragRotate||e.altShiftDragRotate;o&&n.push(new y);var s=void 0===e.doubleClickZoom||e.doubleClickZoom;s&&n.push(new l({delta:e.zoomDelta,duration:e.zoomDuration}));var a=void 0===e.dragPan||e.dragPan;a&&n.push(new c["a"]({onFocusOnly:e.onFocusOnly,kinetic:r}));var u=void 0===e.pinchRotate||e.pinchRotate;u&&n.push(new q);var h=void 0===e.pinchZoom||e.pinchZoom;h&&n.push(new tt({duration:e.zoomDuration}));var p=void 0===e.keyboard||e.keyboard;p&&(n.push(new D),n.push(new z({delta:e.zoomDelta,duration:e.zoomDuration})));var f=void 0===e.mouseWheelZoom||e.mouseWheelZoom;f&&n.push(new K({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration}));var d=void 0===e.shiftDragZoom||e.shiftDragZoom;return d&&n.push(new R({duration:e.zoomDuration})),n}},"3c22":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("5c38"),r=function(){function t(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return t.prototype.clear=function(){this.cache_={},this.cacheSize_=0},t.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},t.prototype.expire=function(){if(this.canExpireCache()){var t=0;for(var e in this.cache_){var n=this.cache_[e];0!==(3&t++)||n.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,n){var i=o(t,e,n);return i in this.cache_?this.cache_[i]:null},t.prototype.set=function(t,e,n,i){var r=o(t,e,n);this.cache_[r]=i,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}();function o(t,e,n){var r=n?Object(i["b"])(n):"null";return e+":"+t+":"+r}var s=new r},"3c81":function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return g})),n.d(e,"d",(function(){return y}));var i,r=n("0b0e"),o=n("38f3"),s=n("0af5"),a=n("0999"),l=n("256f"),c=n("7fc9"),u=[];function h(t,e,n,i,r){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(i,r),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,i)+1,Math.max(n,r)),t.restore()}function p(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function f(){if(void 0===i){var t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",h(t,4,5,4,0),h(t,4,5,0,5);var e=t.getImageData(0,0,3,3).data;i=p(e,0)||p(e,4)||p(e,8)}return i}function d(t,e,n,i){var r=Object(l["p"])(n,e,t),o=Object(l["i"])(e,i,n),a=e.getMetersPerUnit();void 0!==a&&(o*=a);var c=t.getMetersPerUnit();void 0!==c&&(o/=c);var u=t.getExtent();if(!u||Object(s["f"])(u,r)){var h=Object(l["i"])(t,o,r)/o;isFinite(h)&&h>0&&(o/=h)}return o}function g(t,e,n,i){var r=Object(s["w"])(n),o=d(t,e,r,i);return(!isFinite(o)||o<=0)&&Object(s["s"])(n,(function(n){return o=d(t,e,n,i),isFinite(o)&&o>0})),o}function y(t,e,n,i,l,h,p,d,g,y,_,v){var m=Object(a["a"])(Math.round(n*t),Math.round(n*e),u);if(v||Object(o["a"])(m,r["a"]),0===g.length)return m.canvas;function b(t){return Math.round(t*n)/n}m.scale(n,n),m.globalCompositeOperation="lighter";var O=Object(s["j"])();g.forEach((function(t,e,n){Object(s["p"])(O,t.extent)}));var x=Object(s["E"])(O),w=Object(s["z"])(O),C=Object(a["a"])(Math.round(n*x/i),Math.round(n*w/i));v||Object(o["a"])(C,r["a"]);var E=n/i;g.forEach((function(t,e,n){var i=t.extent[0]-O[0],r=-(t.extent[3]-O[3]),o=Object(s["E"])(t.extent),a=Object(s["z"])(t.extent);t.image.width>0&&t.image.height>0&&C.drawImage(t.image,y,y,t.image.width-2*y,t.image.height-2*y,i*E,r*E,o*E,a*E)}));var S=Object(s["C"])(p);return d.getTriangles().forEach((function(t,e,r){var o=t.source,s=t.target,a=o[0][0],l=o[0][1],u=o[1][0],p=o[1][1],d=o[2][0],g=o[2][1],y=b((s[0][0]-S[0])/h),_=b(-(s[0][1]-S[1])/h),x=b((s[1][0]-S[0])/h),w=b(-(s[1][1]-S[1])/h),E=b((s[2][0]-S[0])/h),P=b(-(s[2][1]-S[1])/h),j=a,T=l;a=0,l=0,u-=j,p-=T,d-=j,g-=T;var M=[[u,p,0,0,x-y],[d,g,0,0,E-y],[0,0,u,p,w-_],[0,0,d,g,P-_]],R=Object(c["h"])(M);if(R){if(m.save(),m.beginPath(),f()||!v){m.moveTo(x,w);for(var L=4,A=y-x,I=_-w,k=0;k<L;k++)m.lineTo(x+b((k+1)*A/L),w+b(k*I/(L-1))),k!=L-1&&m.lineTo(x+b((k+1)*A/L),w+b((k+1)*I/(L-1)));m.lineTo(E,P)}else m.moveTo(x,w),m.lineTo(y,_),m.lineTo(E,P);m.clip(),m.transform(R[0],R[2],R[1],R[3],y,_),m.translate(O[0]-j,O[3]-T),m.scale(i/n,-i/n),m.drawImage(C.canvas,0,0),m.restore()}})),_&&(m.save(),m.globalCompositeOperation="source-over",m.strokeStyle="black",m.lineWidth=1,d.getTriangles().forEach((function(t,e,n){var i=t.target,r=(i[0][0]-S[0])/h,o=-(i[0][1]-S[1])/h,s=(i[1][0]-S[0])/h,a=-(i[1][1]-S[1])/h,l=(i[2][0]-S[0])/h,c=-(i[2][1]-S[1])/h;m.beginPath(),m.moveTo(s,a),m.lineTo(r,o),m.lineTo(l,c),m.closePath(),m.stroke()})),m.restore()),m.canvas}},"3d4d":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));var i=n("9a94");class r extends i["LOverlay"]{constructor(){super(),this.ele.style.position="relative",this.ele.style.width="5px",this.ele.style.height="5px",this.ele.style.borderRadius="50%",this.ele.style.backgroundColor="#33cc33"}setHTMLElementStyle(){}}},"3e6b":function(t,e,n){"use strict";var i=n("1af9"),r=n("25a5"),o=n.n(r),s=n("38f3"),a=n("6c77"),l=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)}}(),c={RENDER_ORDER:"renderOrder"},u=function(t){function e(e){var n=this,i=e||{},r=Object(s["a"])({},i);return delete r.style,delete r.renderBuffer,delete r.updateWhileAnimating,delete r.updateWhileInteracting,n=t.call(this,r)||this,n.declutter_=void 0!==i.declutter&&i.declutter,n.renderBuffer_=void 0!==i.renderBuffer?i.renderBuffer:100,n.style_=null,n.styleFunction_=void 0,n.setStyle(i.style),n.updateWhileAnimating_=void 0!==i.updateWhileAnimating&&i.updateWhileAnimating,n.updateWhileInteracting_=void 0!==i.updateWhileInteracting&&i.updateWhileInteracting,n}return l(e,t),e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(c.RENDER_ORDER)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.renderDeclutter=function(t){t.declutterTree||(t.declutterTree=new o.a(9)),this.getRenderer().renderDeclutter(t)},e.prototype.setRenderOrder=function(t){this.set(c.RENDER_ORDER,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:a["a"],this.styleFunction_=null===t?void 0:Object(a["d"])(this.style_),this.changed()},e}(i["a"]),h=u,p={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},f=[p.FILL],d=[p.STROKE],g=[p.BEGIN_PATH],y=[p.CLOSE_PATH],_=p,v=n("045d"),m=function(){function t(){}return t.prototype.drawCustom=function(t,e,n,i){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}(),b=m,O=n("e98d"),x=n("0af5"),w=n("ddea"),C=n("9f5e"),E=n("bb6c"),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)}}(),P=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.tolerance=e,o.maxExtent=n,o.pixelRatio=r,o.maxLineWidth=0,o.resolution=i,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return S(e,t),e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))},e.prototype.appendFlatPointCoordinates=function(t,e){for(var n=this.getBufferedMaxExtent(),i=this.tmpCoordinate_,r=this.coordinates,o=r.length,s=0,a=t.length;s<a;s+=e)i[0]=t[s],i[1]=t[s+1],Object(x["f"])(n,i)&&(r[o++]=i[0],r[o++]=i[1]);return o},e.prototype.appendFlatLineCoordinates=function(t,e,n,i,r,o){var s=this.coordinates,a=s.length,l=this.getBufferedMaxExtent();o&&(e+=i);var c,u,h,p=t[e],f=t[e+1],d=this.tmpCoordinate_,g=!0;for(c=e+i;c<n;c+=i)d[0]=t[c],d[1]=t[c+1],h=Object(x["i"])(l,d),h!==u?(g&&(s[a++]=p,s[a++]=f,g=!1),s[a++]=d[0],s[a++]=d[1]):h===v["a"].INTERSECTING?(s[a++]=d[0],s[a++]=d[1],g=!1):g=!0,p=d[0],f=d[1],u=h;return(r&&g||c===e+i)&&(s[a++]=p,s[a++]=f),a},e.prototype.drawCustomCoordinates_=function(t,e,n,i,r){for(var o=0,s=n.length;o<s;++o){var a=n[o],l=this.appendFlatLineCoordinates(t,e,a,i,!1,!1);r.push(l),e=a}return e},e.prototype.drawCustom=function(t,e,n,i){this.beginGeometry(t,e);var r,o,s,a,l,c=t.getType(),u=t.getStride(),h=this.coordinates.length;switch(c){case"MultiPolygon":r=t.getOrientedFlatCoordinates(),a=[];var p=t.getEndss();l=0;for(var f=0,d=p.length;f<d;++f){var g=[];l=this.drawCustomCoordinates_(r,l,p[f],u,g),a.push(g)}this.instructions.push([_.CUSTOM,h,a,t,n,E["c"]]),this.hitDetectionInstructions.push([_.CUSTOM,h,a,t,i||n,E["c"]]);break;case"Polygon":case"MultiLineString":s=[],r="Polygon"==c?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),l=this.drawCustomCoordinates_(r,0,t.getEnds(),u,s),this.instructions.push([_.CUSTOM,h,s,t,n,E["b"]]),this.hitDetectionInstructions.push([_.CUSTOM,h,s,t,i||n,E["b"]]);break;case"LineString":case"Circle":r=t.getFlatCoordinates(),o=this.appendFlatLineCoordinates(r,0,r.length,u,!1,!1),this.instructions.push([_.CUSTOM,h,o,t,n,E["a"]]),this.hitDetectionInstructions.push([_.CUSTOM,h,o,t,i||n,E["a"]]);break;case"MultiPoint":r=t.getFlatCoordinates(),o=this.appendFlatPointCoordinates(r,u),o>h&&(this.instructions.push([_.CUSTOM,h,o,t,n,E["a"]]),this.hitDetectionInstructions.push([_.CUSTOM,h,o,t,i||n,E["a"]]));break;case"Point":r=t.getFlatCoordinates(),this.coordinates.push(r[0],r[1]),o=this.coordinates.length,this.instructions.push([_.CUSTOM,h,o,t,n]),this.hitDetectionInstructions.push([_.CUSTOM,h,o,t,i||n]);break;default:}this.endGeometry(e)},e.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[_.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[_.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var n,i,r=e.length,o=-1;for(t=0;t<r;++t)n=e[t],i=n[0],i==_.END_GEOMETRY?o=t:i==_.BEGIN_GEOMETRY&&(n[2]=t,Object(C["h"])(this.hitDetectionInstructions,o,t),o=-1)},e.prototype.setFillStrokeStyle=function(t,e){var n=this.state;if(t){var i=t.getColor();n.fillStyle=Object(O["a"])(i||w["b"])}else n.fillStyle=void 0;if(e){var r=e.getColor();n.strokeStyle=Object(O["a"])(r||w["k"]);var o=e.getLineCap();n.lineCap=void 0!==o?o:w["d"];var s=e.getLineDash();n.lineDash=s?s.slice():w["e"];var a=e.getLineDashOffset();n.lineDashOffset=a||w["f"];var l=e.getLineJoin();n.lineJoin=void 0!==l?l:w["g"];var c=e.getWidth();n.lineWidth=void 0!==c?c:w["h"];var u=e.getMiterLimit();n.miterLimit=void 0!==u?u:w["i"],n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,n=[_.SET_FILL_STYLE,e];return"string"!==typeof e&&n.push(!0),n},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[_.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e){var n=t.fillStyle;"string"===typeof n&&t.currentFillStyle==n||(void 0!==n&&this.instructions.push(e.call(this,t)),t.currentFillStyle=n)},e.prototype.updateStrokeStyle=function(t,e){var n=t.strokeStyle,i=t.lineCap,r=t.lineDash,o=t.lineDashOffset,s=t.lineJoin,a=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=i||r!=t.currentLineDash&&!Object(C["b"])(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=s||t.currentLineWidth!=a||t.currentMiterLimit!=l)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=s,t.currentLineWidth=a,t.currentMiterLimit=l)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[_.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(x["d"])(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Object(x["c"])(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(b),j=P,T=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,n,i,r){var o=t.call(this,e,n,i,r)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterMode_=void 0,o.declutterImageWithText_=void 0,o}return T(e,t),e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(n,i);this.instructions.push([_.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([_.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(n,i);this.instructions.push([_.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([_.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,e){var n=t.getAnchor(),i=t.getSize(),r=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=r[0],this.originY_=r[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=i[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e},e}(j),R=M,L=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)}}(),A=function(t){function e(e,n,i,r){return t.call(this,e,n,i,r)||this}return L(e,t),e.prototype.drawFlatCoordinates_=function(t,e,n,i){var r=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,n,i,!1,!1),s=[_.MOVE_TO_LINE_TO,r,o];return this.instructions.push(s),this.hitDetectionInstructions.push(s),n},e.prototype.drawLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,w["e"],w["f"]],g);var o=t.getFlatCoordinates(),s=t.getStride();this.drawFlatCoordinates_(o,0,o.length,s),this.hitDetectionInstructions.push(d),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],g);for(var o=t.getEnds(),s=t.getFlatCoordinates(),a=t.getStride(),l=0,c=0,u=o.length;c<u;++c)l=this.drawFlatCoordinates_(s,l,o[c],a);this.hitDetectionInstructions.push(d),this.endGeometry(e)}},e.prototype.finish=function(){var e=this.state;return void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(d),this.reverseHitDetectionInstructions(),this.state=null,t.prototype.finish.call(this)},e.prototype.applyStroke=function(e){void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(d),e.lastStroke=this.coordinates.length),e.lastStroke=0,t.prototype.applyStroke.call(this,e),this.instructions.push(g)},e}(j),I=A,k=n("1c48"),F=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)}}(),D=function(t){function e(e,n,i,r){return t.call(this,e,n,i,r)||this}return F(e,t),e.prototype.drawFlatCoordinatess_=function(t,e,n,i){var r=this.state,o=void 0!==r.fillStyle,s=void 0!==r.strokeStyle,a=n.length;this.instructions.push(g),this.hitDetectionInstructions.push(g);for(var l=0;l<a;++l){var c=n[l],u=this.coordinates.length,h=this.appendFlatLineCoordinates(t,e,c,i,!0,!s),p=[_.MOVE_TO_LINE_TO,u,h];this.instructions.push(p),this.hitDetectionInstructions.push(p),s&&(this.instructions.push(y),this.hitDetectionInstructions.push(y)),e=c}return o&&(this.instructions.push(f),this.hitDetectionInstructions.push(f)),s&&(this.instructions.push(d),this.hitDetectionInstructions.push(d)),e},e.prototype.drawCircle=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0!==i||void 0!==r){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([_.SET_FILL_STYLE,w["b"]]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=t.getFlatCoordinates(),s=t.getStride(),a=this.coordinates.length;this.appendFlatLineCoordinates(o,0,o.length,s,!1,!1);var l=[_.CIRCLE,a];this.instructions.push(g,l),this.hitDetectionInstructions.push(g,l),void 0!==n.fillStyle&&(this.instructions.push(f),this.hitDetectionInstructions.push(f)),void 0!==n.strokeStyle&&(this.instructions.push(d),this.hitDetectionInstructions.push(d)),this.endGeometry(e)}},e.prototype.drawPolygon=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0!==i||void 0!==r){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([_.SET_FILL_STYLE,w["b"]]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=t.getEnds(),s=t.getOrientedFlatCoordinates(),a=t.getStride();this.drawFlatCoordinatess_(s,0,o,a),this.endGeometry(e)}},e.prototype.drawMultiPolygon=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0!==i||void 0!==r){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([_.SET_FILL_STYLE,w["b"]]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);for(var o=t.getEndss(),s=t.getOrientedFlatCoordinates(),a=t.getStride(),l=0,c=0,u=o.length;c<u;++c)l=this.drawFlatCoordinatess_(s,l,o[c],a);this.endGeometry(e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var e=this.tolerance;if(0!==e)for(var n=this.coordinates,i=0,r=n.length;i<r;++i)n[i]=Object(k["e"])(n[i],e);return t.prototype.finish.call(this)},e.prototype.setFillStrokeStyles_=function(){var t=this.state,e=t.fillStyle;void 0!==e&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)},e}(j),G=D,N=n("29f6"),z=n("1300");function B(t,e,n,i,r){var o,s,a,l,c,u,h,p,f,d,g=n,y=n,_=0,v=0,m=n;for(s=n;s<i;s+=r){var b=e[s],O=e[s+1];void 0!==c&&(f=b-c,d=O-u,l=Math.sqrt(f*f+d*d),void 0!==h&&(v+=a,o=Math.acos((h*f+p*d)/(a*l)),o>t&&(v>_&&(_=v,g=m,y=s),v=0,m=s-r)),a=l,h=f,p=d),c=b,u=O}return v+=l,v>_?[m,s]:[g,y]}var X=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={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},Y=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i,r)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return X(e,t),e.prototype.finish=function(){var e=t.prototype.finish.call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e},e.prototype.drawText=function(t,e){var n=this.textFillState_,i=this.textStrokeState_,r=this.textState_;if(""!==this.text_&&r&&(n||i)){var o=this.coordinates,s=o.length,a=t.getType(),l=null,c=t.getStride();if(r.placement!==N["a"].LINE||"LineString"!=a&&"MultiLineString"!=a&&"Polygon"!=a&&"MultiPolygon"!=a){var u=r.overflow?null:[];switch(a){case"Point":case"MultiPoint":l=t.getFlatCoordinates();break;case"LineString":l=t.getFlatMidpoint();break;case"Circle":l=t.getCenter();break;case"MultiLineString":l=t.getFlatMidpoints(),c=2;break;case"Polygon":l=t.getFlatInteriorPoint(),r.overflow||u.push(l[2]/this.resolution),c=3;break;case"MultiPolygon":var h=t.getFlatInteriorPoints();l=[];for(E=0,S=h.length;E<S;E+=3)r.overflow||u.push(h[E+2]/this.resolution),l.push(h[E],h[E+1]);if(0===l.length)return;c=2;break;default:}A=this.appendFlatPointCoordinates(l,c);if(A===s)return;if(u&&(A-s)/2!==l.length/c){var p=s/2;u=u.filter((function(t,e){var n=o[2*(p+e)]===l[e*c]&&o[2*(p+e)+1]===l[e*c+1];return n||--p,n}))}this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);var f=r.padding;if(f!=w["j"]&&(r.scale[0]<0||r.scale[1]<0)){var d=r.padding[0],g=r.padding[1],y=r.padding[2],v=r.padding[3];r.scale[0]<0&&(g=-g,v=-v),r.scale[1]<0&&(d=-d,y=-y),f=[d,g,y,v]}var m=this.pixelRatio;this.instructions.push([_.DRAW_IMAGE,s,A,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,f==w["j"]?w["j"]:f.map((function(t){return t*m})),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,u]);var b=1/m;this.hitDetectionInstructions.push([_.DRAW_IMAGE,s,A,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[b,b],NaN,void 0,this.declutterImageWithText_,f,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,u]),this.endGeometry(e)}else{if(!Object(x["F"])(this.getBufferedMaxExtent(),t.getExtent()))return;var O=void 0;if(l=t.getFlatCoordinates(),"LineString"==a)O=[l.length];else if("MultiLineString"==a)O=t.getEnds();else if("Polygon"==a)O=t.getEnds().slice(0,1);else if("MultiPolygon"==a){var C=t.getEndss();O=[];for(var E=0,S=C.length;E<S;++E)O.push(C[E][0])}this.beginGeometry(t,e);for(var P=r.textAlign,j=0,T=void 0,M=0,R=O.length;M<R;++M){if(void 0==P){var L=B(r.maxAngle,l,j,O[M],c);j=L[0],T=L[1]}else T=O[M];for(var E=j;E<T;E+=c)o.push(l[E],l[E+1]);var A=o.length;j=O[M],this.drawChars_(s,A),s=A}this.endGeometry(e)}}},e.prototype.saveTextStates_=function(){var t=this.textStrokeState_,e=this.textState_,n=this.textFillState_,i=this.strokeKey_;t&&(i in this.strokeStates||(this.strokeStates[i]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));var r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||w["l"],justify:e.justify,textBaseline:e.textBaseline||w["m"],scale:e.scale});var o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))},e.prototype.drawChars_=function(t,e){var n=this.textStrokeState_,i=this.textState_,r=this.strokeKey_,o=this.textKey_,s=this.fillKey_;this.saveTextStates_();var a=this.pixelRatio,l=W[i.textBaseline],c=this.textOffsetY_*a,u=this.text_,h=n?n.lineWidth*Math.abs(i.scale[0])/2:0;this.instructions.push([_.DRAW_CHARS,t,e,l,i.overflow,s,i.maxAngle,a,c,r,h*a,u,o,1]),this.hitDetectionInstructions.push([_.DRAW_CHARS,t,e,l,i.overflow,s,i.maxAngle,1,c,r,h,u,o,1/a])},e.prototype.setTextStyle=function(t,e){var n,i,r;if(t){var o=t.getFill();o?(i=this.textFillState_,i||(i={},this.textFillState_=i),i.fillStyle=Object(O["a"])(o.getColor()||w["b"])):(i=null,this.textFillState_=i);var s=t.getStroke();if(s){r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);var a=s.getLineDash(),l=s.getLineDashOffset(),c=s.getWidth(),u=s.getMiterLimit();r.lineCap=s.getLineCap()||w["d"],r.lineDash=a?a.slice():w["e"],r.lineDashOffset=void 0===l?w["f"]:l,r.lineJoin=s.getLineJoin()||w["g"],r.lineWidth=void 0===c?w["h"]:c,r.miterLimit=void 0===u?w["i"]:u,r.strokeStyle=Object(O["a"])(s.getColor()||w["k"])}else r=null,this.textStrokeState_=r;n=this.textState_;var h=t.getFont()||w["c"];Object(w["q"])(h);var p=t.getScaleArray();n.overflow=t.getOverflow(),n.font=h,n.maxAngle=t.getMaxAngle(),n.placement=t.getPlacement(),n.textAlign=t.getTextAlign(),n.justify=t.getJustify(),n.textBaseline=t.getTextBaseline()||w["m"],n.backgroundFill=t.getBackgroundFill(),n.backgroundStroke=t.getBackgroundStroke(),n.padding=t.getPadding()||w["j"],n.scale=void 0===p?[1,1]:p;var f=t.getOffsetX(),d=t.getOffsetY(),g=t.getRotateWithView(),y=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===f?0:f,this.textOffsetY_=void 0===d?0:d,this.textRotateWithView_=void 0!==g&&g,this.textRotation_=void 0===y?0:y,this.strokeKey_=r?("string"==typeof r.strokeStyle?r.strokeStyle:Object(z["c"])(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.justify||"?")+(n.textBaseline||"?"),this.fillKey_=i?"string"==typeof i.fillStyle?i.fillStyle:"|"+Object(z["c"])(i.fillStyle):""}else this.text_="";this.declutterImageWithText_=e},e}(j),V=Y,H={Circle:G,Default:j,Image:R,LineString:I,Polygon:G,Text:V},Z=function(){function t(t,e,n,i){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=i,this.resolution_=n,this.buildersByZIndex_={}}return t.prototype.finish=function(){var t={};for(var e in this.buildersByZIndex_){t[e]=t[e]||{};var n=this.buildersByZIndex_[e];for(var i in n){var r=n[i].finish();t[e][i]=r}}return t},t.prototype.getBuilder=function(t,e){var n=void 0!==t?t.toString():"0",i=this.buildersByZIndex_[n];void 0===i&&(i={},this.buildersByZIndex_[n]=i);var r=i[e];if(void 0===r){var o=H[e];r=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),i[e]=r}return r},t}(),K=Z,U=n("137e"),J=n("617d"),q=n("a896"),$=n("7fc9"),Q=n("bef8");function tt(t,e,n,i,r,o,s,a,l,c,u,h){var p=t[e],f=t[e+1],d=0,g=0,y=0,_=0;function v(){d=p,g=f,e+=i,p=t[e],f=t[e+1],_+=y,y=Math.sqrt((p-d)*(p-d)+(f-g)*(f-g))}do{v()}while(e<n-i&&_+y<o);var m=0===y?0:(o-_)/y,b=Object($["e"])(d,p,m),O=Object($["e"])(g,f,m),x=e-i,w=_,C=o+a*l(c,r,u);while(e<n-i&&_+y<C)v();m=0===y?0:(C-_)/y;var E,S=Object($["e"])(d,p,m),P=Object($["e"])(g,f,m);if(h){var j=[b,O,S,P];Object(Q["a"])(j,0,4,2,h,j,j),E=j[0]>j[2]}else E=b>S;var T,M=Math.PI,R=[],L=x+i===e;if(e=x,y=0,_=w,p=t[e],f=t[e+1],L){v(),T=Math.atan2(f-g,p-d),E&&(T+=T>0?-M:M);var A=(S+b)/2,I=(P+O)/2;return R[0]=[A,I,(C-o)/2,T,r],R}r=r.replace(/\n/g," ");for(var k=0,F=r.length;k<F;){v();var D=Math.atan2(f-g,p-d);if(E&&(D+=D>0?-M:M),void 0!==T){var G=D-T;if(G+=G>M?-2*M:G<-M?2*M:0,Math.abs(G)>s)return null}T=D;for(var N=k,z=0;k<F;++k){var B=E?F-k-1:k,X=a*l(c,r[B],u);if(e+i<n&&_+y<o+z+X/2)break;z+=X}if(k!==N){var W=E?r.substring(F-N,F-k):r.substring(N,k);m=0===y?0:(o+z/2-_)/y;A=Object($["e"])(d,p,m),I=Object($["e"])(g,f,m);R.push([A,I,z/2,D,W]),o+=z}}return R}var et=n("5938"),nt=Object(x["j"])(),it=[],rt=[],ot=[],st=[];function at(t){return t[3].declutterBox}var lt=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function ct(t,e){return"start"!==e&&"end"!==e||lt.test(t)||(e="start"===e?"left":"right"),W[e]}function ut(t,e,n){return n>0&&t.push("\n",""),t.push(e,""),t}var ht=function(){function t(t,e,n,i){this.overlaps=n,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=Object(q["c"])(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}return t.prototype.createLabel=function(t,e,n,i){var r=t+e+n+i;if(this.labels_[r])return this.labels_[r];var o=i?this.strokeStates[i]:null,s=n?this.fillStates[n]:null,a=this.textStates[e],l=this.pixelRatio,c=[a.scale[0]*l,a.scale[1]*l],u=Array.isArray(t),h=a.justify?W[a.justify]:ct(Array.isArray(t)?t[0]:t,a.textAlign||w["l"]),p=i&&o.lineWidth?o.lineWidth:0,f=u?t:t.split("\n").reduce(ut,[]),d=Object(w["o"])(a,f),g=d.width,y=d.height,_=d.widths,v=d.heights,m=d.lineWidths,b=g+p,O=[],x=(b+2)*c[0],C=(y+p)*c[1],E={width:x<0?Math.floor(x):Math.ceil(x),height:C<0?Math.floor(C):Math.ceil(C),contextInstructions:O};if(1==c[0]&&1==c[1]||O.push("scale",c),i){O.push("strokeStyle",o.strokeStyle),O.push("lineWidth",p),O.push("lineCap",o.lineCap),O.push("lineJoin",o.lineJoin),O.push("miterLimit",o.miterLimit);var S=J["g"]?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;S.prototype.setLineDash&&(O.push("setLineDash",[o.lineDash]),O.push("lineDashOffset",o.lineDashOffset))}n&&O.push("fillStyle",s.fillStyle),O.push("textBaseline","middle"),O.push("textAlign","center");for(var P,j=.5-h,T=h*b+j*p,M=[],R=[],L=0,A=0,I=0,k=0,F=0,D=f.length;F<D;F+=2){var G=f[F];if("\n"!==G){var N=f[F+1]||a.font;N!==P&&(i&&M.push("font",N),n&&R.push("font",N),P=N),L=Math.max(L,v[I]);var z=[G,T+j*_[I]+h*(_[I]-m[k]),.5*(p+L)+A];T+=_[I],i&&M.push("strokeText",z),n&&R.push("fillText",z),++I}else A+=L,L=0,T=h*b+j*p,++k}return Array.prototype.push.apply(O,M),Array.prototype.push.apply(O,R),this.labels_[r]=E,E},t.prototype.replayTextBackground_=function(t,e,n,i,r,o,s){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,r),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),s&&(this.setStrokeStyle_(t,s),t.stroke())},t.prototype.calculateImageOrLabelDimensions_=function(t,e,n,i,r,o,s,a,l,c,u,h,p,f,d,g){s*=h[0],a*=h[1];var y,_=n-s,v=i-a,m=r+l>t?t-l:r,b=o+c>e?e-c:o,O=f[3]+m*h[0]+f[1],w=f[0]+b*h[1]+f[2],C=_-f[3],E=v-f[0];return(d||0!==u)&&(it[0]=C,st[0]=C,it[1]=E,rt[1]=E,rt[0]=C+O,ot[0]=rt[0],ot[1]=E+w,st[1]=ot[1]),0!==u?(y=Object(q["b"])(Object(q["c"])(),n,i,1,1,u,-n,-i),Object(q["a"])(y,it),Object(q["a"])(y,rt),Object(q["a"])(y,ot),Object(q["a"])(y,st),Object(x["k"])(Math.min(it[0],rt[0],ot[0],st[0]),Math.min(it[1],rt[1],ot[1],st[1]),Math.max(it[0],rt[0],ot[0],st[0]),Math.max(it[1],rt[1],ot[1],st[1]),nt)):Object(x["k"])(Math.min(C,C+O),Math.min(E,E+w),Math.max(C,C+O),Math.max(E,E+w),nt),p&&(_=Math.round(_),v=Math.round(v)),{drawImageX:_,drawImageY:v,drawImageW:m,drawImageH:b,originX:l,originY:c,declutterBox:{minX:nt[0],minY:nt[1],maxX:nt[2],maxY:nt[3],value:g},canvasTransform:y,scale:h}},t.prototype.replayImageOrLabel_=function(t,e,n,i,r,o,s){var a=!(!o&&!s),l=i.declutterBox,c=t.canvas,u=s?s[2]*i.scale[0]/2:0,h=l.minX-u<=c.width/e&&l.maxX+u>=0&&l.minY-u<=c.height/e&&l.maxY+u>=0;return h&&(a&&this.replayTextBackground_(t,it,rt,ot,st,o,s),Object(w["n"])(t,i.canvasTransform,r,n,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},t.prototype.fill_=function(t){if(this.alignFill_){var e=Object(q["a"])(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;t.save(),t.translate(e[0]%n,e[1]%n),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},t.prototype.setStrokeStyle_=function(t,e){t["strokeStyle"]=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},t.prototype.drawLabelWithPointPlacement_=function(t,e,n,i){var r=this.textStates[e],o=this.createLabel(t,e,i,n),s=this.strokeStates[n],a=this.pixelRatio,l=ct(Array.isArray(t)?t[0]:t,r.textAlign||w["l"]),c=W[r.textBaseline||w["m"]],u=s&&s.lineWidth?s.lineWidth:0,h=o.width/a-2*r.scale[0],p=l*h+2*(.5-l)*u,f=c*o.height/a+2*(.5-c)*u;return{label:o,anchorX:p,anchorY:f}},t.prototype.execute_=function(t,e,n,i,r,o,s,a){var l;this.pixelCoordinates_&&Object(C["b"])(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=Object(Q["c"])(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),Object(q["f"])(this.renderedTransform_,n));var c,u,h,p,f,d,g,y,v,m,b,O,E,S,P,j,T=0,M=i.length,R=0,L=0,A=0,I=null,k=null,F=this.coordinateCache_,D=this.viewRotation_,G=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,N={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:D},z=this.instructions!=i||this.overlaps?0:200;while(T<M){var B=i[T],X=B[0];switch(X){case _.BEGIN_GEOMETRY:E=B[1],j=B[3],E.getGeometry()?void 0===s||Object(x["F"])(s,j.getExtent())?++T:T=B[2]+1:T=B[2];break;case _.BEGIN_PATH:L>z&&(this.fill_(t),L=0),A>z&&(t.stroke(),A=0),L||A||(t.beginPath(),p=NaN,f=NaN),++T;break;case _.CIRCLE:R=B[1];var Y=l[R],V=l[R+1],H=l[R+2],Z=l[R+3],K=H-Y,U=Z-V,J=Math.sqrt(K*K+U*U);t.moveTo(Y+J,V),t.arc(Y,V,J,0,2*Math.PI,!0),++T;break;case _.CLOSE_PATH:t.closePath(),++T;break;case _.CUSTOM:R=B[1],c=B[2];var $=B[3],nt=B[4],it=6==B.length?B[5]:void 0;N.geometry=$,N.feature=E,T in F||(F[T]=[]);var rt=F[T];it?it(l,R,c,2,rt):(rt[0]=l[R],rt[1]=l[R+1],rt.length=2),nt(rt,N),++T;break;case _.DRAW_IMAGE:R=B[1],c=B[2],y=B[3],u=B[4],h=B[5];var ot=B[6],st=B[7],lt=B[8],ct=B[9],ut=B[10],ht=B[11],pt=B[12],ft=B[13],dt=B[14],gt=B[15];if(!y&&B.length>=20){v=B[19],m=B[20],b=B[21],O=B[22];var yt=this.drawLabelWithPointPlacement_(v,m,b,O);y=yt.label,B[3]=y;var _t=B[23];u=(yt.anchorX-_t)*this.pixelRatio,B[4]=u;var vt=B[24];h=(yt.anchorY-vt)*this.pixelRatio,B[5]=h,ot=y.height,B[6]=ot,ft=y.width,B[13]=ft}var mt=void 0;B.length>25&&(mt=B[25]);var bt=void 0,Ot=void 0,xt=void 0;B.length>17?(bt=B[16],Ot=B[17],xt=B[18]):(bt=w["j"],Ot=!1,xt=!1),ut&&G?ht+=D:ut||G||(ht-=D);for(var wt=0;R<c;R+=2)if(!(mt&&mt[wt++]<ft/this.pixelRatio)){var Ct=this.calculateImageOrLabelDimensions_(y.width,y.height,l[R],l[R+1],ft,ot,u,h,lt,ct,ht,pt,r,bt,Ot||xt,E),Et=[t,e,y,Ct,st,Ot?I:null,xt?k:null];if(a){if("none"===dt)continue;if("obstacle"===dt){a.insert(Ct.declutterBox);continue}var St=void 0,Pt=void 0;if(gt){var jt=c-R;if(!gt[jt]){gt[jt]=Et;continue}if(St=gt[jt],delete gt[jt],Pt=at(St),a.collides(Pt))continue}if(a.collides(Ct.declutterBox))continue;St&&(a.insert(Pt),this.replayImageOrLabel_.apply(this,St)),a.insert(Ct.declutterBox)}this.replayImageOrLabel_.apply(this,Et)}++T;break;case _.DRAW_CHARS:var Tt=B[1],Mt=B[2],Rt=B[3],Lt=B[4];O=B[5];var At=B[6],It=B[7],kt=B[8];b=B[9];var Ft=B[10];v=B[11],m=B[12];var Dt=[B[13],B[13]],Gt=this.textStates[m],Nt=Gt.font,zt=[Gt.scale[0]*It,Gt.scale[1]*It],Bt=void 0;Nt in this.widths_?Bt=this.widths_[Nt]:(Bt={},this.widths_[Nt]=Bt);var Xt=Object(et["a"])(l,Tt,Mt,2),Wt=Math.abs(zt[0])*Object(w["p"])(Nt,v,Bt);if(Lt||Wt<=Xt){var Yt=this.textStates[m].textAlign,Vt=(Xt-Wt)*W[Yt],Ht=tt(l,Tt,Mt,2,v,Vt,At,Math.abs(zt[0]),w["p"],Nt,Bt,G?0:this.viewRotation_);t:if(Ht){var Zt=[],Kt=void 0,Ut=void 0,Jt=void 0,qt=void 0,$t=void 0;if(b)for(Kt=0,Ut=Ht.length;Kt<Ut;++Kt){$t=Ht[Kt],Jt=$t[4],qt=this.createLabel(Jt,m,"",b),u=$t[2]+(zt[0]<0?-Ft:Ft),h=Rt*qt.height+2*(.5-Rt)*Ft*zt[1]/zt[0]-kt;Ct=this.calculateImageOrLabelDimensions_(qt.width,qt.height,$t[0],$t[1],qt.width,qt.height,u,h,0,0,$t[3],Dt,!1,w["j"],!1,E);if(a&&a.collides(Ct.declutterBox))break t;Zt.push([t,e,qt,Ct,1,null,null])}if(O)for(Kt=0,Ut=Ht.length;Kt<Ut;++Kt){$t=Ht[Kt],Jt=$t[4],qt=this.createLabel(Jt,m,O,""),u=$t[2],h=Rt*qt.height-kt;Ct=this.calculateImageOrLabelDimensions_(qt.width,qt.height,$t[0],$t[1],qt.width,qt.height,u,h,0,0,$t[3],Dt,!1,w["j"],!1,E);if(a&&a.collides(Ct.declutterBox))break t;Zt.push([t,e,qt,Ct,1,null,null])}a&&a.load(Zt.map(at));for(var Qt=0,te=Zt.length;Qt<te;++Qt)this.replayImageOrLabel_.apply(this,Zt[Qt])}}++T;break;case _.END_GEOMETRY:if(void 0!==o){E=B[1];var ee=o(E,j);if(ee)return ee}++T;break;case _.FILL:z?L++:this.fill_(t),++T;break;case _.MOVE_TO_LINE_TO:for(R=B[1],c=B[2],S=l[R],P=l[R+1],d=S+.5|0,g=P+.5|0,d===p&&g===f||(t.moveTo(S,P),p=d,f=g),R+=2;R<c;R+=2)S=l[R],P=l[R+1],d=S+.5|0,g=P+.5|0,R!=c-2&&d===p&&g===f||(t.lineTo(S,P),p=d,f=g);++T;break;case _.SET_FILL_STYLE:I=B,this.alignFill_=B[2],L&&(this.fill_(t),L=0,A&&(t.stroke(),A=0)),t.fillStyle=B[1],++T;break;case _.SET_STROKE_STYLE:k=B,A&&(t.stroke(),A=0),this.setStrokeStyle_(t,B),++T;break;case _.STROKE:z?A++:t.stroke(),++T;break;default:++T;break}}L&&this.fill_(t),A&&t.stroke()},t.prototype.execute=function(t,e,n,i,r,o){this.viewRotation_=i,this.execute_(t,e,n,this.instructions,r,void 0,void 0,o)},t.prototype.executeHitDetection=function(t,e,n,i,r){return this.viewRotation_=n,this.execute_(t,1,e,this.hitDetectionInstructions,!0,i,r)},t}(),pt=ht,ft=n("0999"),dt=["Polygon","Circle","LineString","Image","Text","Default"],gt=function(){function t(t,e,n,i,r,o){this.maxExtent_=t,this.overlaps_=i,this.pixelRatio_=n,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Object(q["c"])(),this.createExecutors_(r)}return t.prototype.clip=function(t,e){var n=this.getClipCoords(e);t.beginPath(),t.moveTo(n[0],n[1]),t.lineTo(n[2],n[3]),t.lineTo(n[4],n[5]),t.lineTo(n[6],n[7]),t.clip()},t.prototype.createExecutors_=function(t){for(var e in t){var n=this.executorsByZIndex_[e];void 0===n&&(n={},this.executorsByZIndex_[e]=n);var i=t[e];for(var r in i){var o=i[r];n[r]=new pt(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},t.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var n=this.executorsByZIndex_[e],i=0,r=t.length;i<r;++i)if(t[i]in n)return!0;return!1},t.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r,o){i=Math.round(i);var s=2*i+1,a=Object(q["b"])(this.hitDetectionTransform_,i+.5,i+.5,1/e,-1/e,-n,-t[0],-t[1]),l=!this.hitDetectionContext_;l&&(this.hitDetectionContext_=Object(ft["a"])(s,s));var c,u=this.hitDetectionContext_;u.canvas.width!==s||u.canvas.height!==s?(u.canvas.width=s,u.canvas.height=s):l||u.clearRect(0,0,s,s),void 0!==this.renderBuffer_&&(c=Object(x["j"])(),Object(x["q"])(c,t),Object(x["c"])(c,e*(this.renderBuffer_+i),c));var h,p=_t(i);function f(t,e){for(var n=u.getImageData(0,0,s,s).data,a=0,l=p.length;a<l;a++)if(n[p[a]]>0){if(!o||"Image"!==h&&"Text"!==h||-1!==o.indexOf(t)){var c=(p[a]-3)/4,f=i-c%s,d=i-(c/s|0),g=r(t,e,f*f+d*d);if(g)return g}u.clearRect(0,0,s,s);break}}var d,g,y,_,v,m=Object.keys(this.executorsByZIndex_).map(Number);for(m.sort(C["g"]),d=m.length-1;d>=0;--d){var b=m[d].toString();for(y=this.executorsByZIndex_[b],g=dt.length-1;g>=0;--g)if(h=dt[g],_=y[h],void 0!==_&&(v=_.executeHitDetection(u,a,n,f,c),v))return v}},t.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var n=e[0],i=e[1],r=e[2],o=e[3],s=[n,i,n,o,r,o,r,i];return Object(Q["c"])(s,0,8,2,t,s),s},t.prototype.isEmpty=function(){return Object(s["d"])(this.executorsByZIndex_)},t.prototype.execute=function(t,e,n,i,r,o,s){var a=Object.keys(this.executorsByZIndex_).map(Number);a.sort(C["g"]),this.maxExtent_&&(t.save(),this.clip(t,n));var l,c,u,h,p,f,d=o||dt;for(s&&a.reverse(),l=0,c=a.length;l<c;++l){var g=a[l].toString();for(p=this.executorsByZIndex_[g],u=0,h=d.length;u<h;++u){var y=d[u];f=p[y],void 0!==f&&f.execute(t,e,n,i,r,s)}}this.maxExtent_&&t.restore()},t}(),yt={};function _t(t){if(void 0!==yt[t])return yt[t];for(var e=2*t+1,n=t*t,i=new Array(n+1),r=0;r<=t;++r)for(var o=0;o<=t;++o){var s=r*r+o*o;if(s>n)break;var a=i[s];a||(a=[],i[s]=a),a.push(4*((t+r)*e+(t+o))+3),r>0&&a.push(4*((t-r)*e+(t+o))+3),o>0&&(a.push(4*((t+r)*e+(t-o))+3),r>0&&a.push(4*((t-r)*e+(t-o))+3))}for(var l=[],c=(r=0,i.length);r<c;++r)i[r]&&l.push.apply(l,i[r]);return yt[t]=l,l}var vt=gt,mt=n("496f"),bt=n("9abc"),Ot=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,n,i,r,o,s,a){var l=t.call(this)||this;return l.context_=e,l.pixelRatio_=n,l.extent_=i,l.transform_=r,l.viewRotation_=o,l.squaredTolerance_=s,l.userTransform_=a,l.contextFillState_=null,l.contextStrokeState_=null,l.contextTextState_=null,l.fillState_=null,l.strokeState_=null,l.image_=null,l.imageAnchorX_=0,l.imageAnchorY_=0,l.imageHeight_=0,l.imageOpacity_=0,l.imageOriginX_=0,l.imageOriginY_=0,l.imageRotateWithView_=!1,l.imageRotation_=0,l.imageScale_=[0,0],l.imageWidth_=0,l.text_="",l.textOffsetX_=0,l.textOffsetY_=0,l.textRotateWithView_=!1,l.textRotation_=0,l.textScale_=[0,0],l.textFillState_=null,l.textStrokeState_=null,l.textState_=null,l.pixelCoordinates_=[],l.tmpLocalTransform_=Object(q["c"])(),l}return Ot(e,t),e.prototype.drawImages_=function(t,e,n,i){if(this.image_){var r=Object(Q["c"])(t,e,n,i,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.tmpLocalTransform_,a=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=a*this.imageOpacity_);var l=this.imageRotation_;this.imageRotateWithView_&&(l+=this.viewRotation_);for(var c=0,u=r.length;c<u;c+=2){var h=r[c]-this.imageAnchorX_,p=r[c+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var f=h+this.imageAnchorX_,d=p+this.imageAnchorY_;Object(q["b"])(s,f,d,1,1,l,-f,-d),o.setTransform.apply(o,s),o.translate(f,d),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.setTransform(1,0,0,1,0,0)}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,h,p,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=a)}},e.prototype.drawText_=function(t,e,n,i){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var r=Object(Q["c"])(t,e,n,i,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.textRotation_;for(this.textRotateWithView_&&(s+=this.viewRotation_);e<n;e+=i){var a=r[e]+this.textOffsetX_,l=r[e+1]+this.textOffsetY_;if(0!==s||1!=this.textScale_[0]||1!=this.textScale_[1]){var c=Object(q["b"])(this.tmpLocalTransform_,a,l,1,1,s,-a,-l);o.setTransform.apply(o,c),o.translate(a,l),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&o.strokeText(this.text_,a,l),this.textFillState_&&o.fillText(this.text_,a,l)}}},e.prototype.moveToLineTo_=function(t,e,n,i,r){var o=this.context_,s=Object(Q["c"])(t,e,n,i,this.transform_,this.pixelCoordinates_);o.moveTo(s[0],s[1]);var a=s.length;r&&(a-=2);for(var l=2;l<a;l+=2)o.lineTo(s[l],s[l+1]);return r&&o.closePath(),n},e.prototype.drawRings_=function(t,e,n,i){for(var r=0,o=n.length;r<o;++r)e=this.moveToLineTo_(t,e,n[r],i,!0);return e},e.prototype.drawCircle=function(t){if(Object(x["F"])(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=Object(bt["c"])(t,this.transform_,this.pixelCoordinates_),n=e[2]-e[0],i=e[3]-e[1],r=Math.sqrt(n*n+i*i),o=this.context_;o.beginPath(),o.arc(e[0],e[1],r,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.setTransform=function(t){this.transform_=t},e.prototype.drawGeometry=function(t){var e=t.getType();switch(e){case"Point":this.drawPoint(t);break;case"LineString":this.drawLineString(t);break;case"Polygon":this.drawPolygon(t);break;case"MultiPoint":this.drawMultiPoint(t);break;case"MultiLineString":this.drawMultiLineString(t);break;case"MultiPolygon":this.drawMultiPolygon(t);break;case"GeometryCollection":this.drawGeometryCollection(t);break;case"Circle":this.drawCircle(t);break;default:}},e.prototype.drawFeature=function(t,e){var n=e.getGeometryFunction()(t);n&&Object(x["F"])(this.extent_,n.getExtent())&&(this.setStyle(e),this.drawGeometry(n))},e.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),n=0,i=e.length;n<i;++n)this.drawGeometry(e[n])},e.prototype.drawPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)},e.prototype.drawMultiPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)},e.prototype.drawLineString=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(x["F"])(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,n=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(n,0,n.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var i=t.getFlatMidpoint();this.drawText_(i,0,2,2)}}},e.prototype.drawMultiLineString=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getExtent();if(Object(x["F"])(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var n=this.context_,i=t.getFlatCoordinates(),r=0,o=t.getEnds(),s=t.getStride();n.beginPath();for(var a=0,l=o.length;a<l;++a)r=this.moveToLineTo_(i,r,o[a],s,!1);n.stroke()}if(""!==this.text_){var c=t.getFlatMidpoints();this.drawText_(c,0,c.length,2)}}},e.prototype.drawPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(x["F"])(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var n=t.getFlatInteriorPoint();this.drawText_(n,0,2,2)}}},e.prototype.drawMultiPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(x["F"])(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,n=t.getOrientedFlatCoordinates(),i=0,r=t.getEndss(),o=t.getStride();e.beginPath();for(var s=0,a=r.length;s<a;++s){var l=r[s];i=this.drawRings_(n,i,l,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var c=t.getFlatInteriorPoints();this.drawText_(c,0,c.length,2)}}},e.prototype.setContextFillState_=function(t){var e=this.context_,n=this.contextFillState_;n?n.fillStyle!=t.fillStyle&&(n.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},e.prototype.setContextStrokeState_=function(t){var e=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=t.lineCap&&(n.lineCap=t.lineCap,e.lineCap=t.lineCap),e.setLineDash&&(Object(C["b"])(n.lineDash,t.lineDash)||e.setLineDash(n.lineDash=t.lineDash),n.lineDashOffset!=t.lineDashOffset&&(n.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset)),n.lineJoin!=t.lineJoin&&(n.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),n.lineWidth!=t.lineWidth&&(n.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),n.miterLimit!=t.miterLimit&&(n.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),n.strokeStyle!=t.strokeStyle&&(n.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},e.prototype.setContextTextState_=function(t){var e=this.context_,n=this.contextTextState_,i=t.textAlign?t.textAlign:w["l"];n?(n.font!=t.font&&(n.font=t.font,e.font=t.font),n.textAlign!=i&&(n.textAlign=i,e.textAlign=i),n.textBaseline!=t.textBaseline&&(n.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=i,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:i,textBaseline:t.textBaseline})},e.prototype.setFillStrokeStyle=function(t,e){var n=this;if(t){var i=t.getColor();this.fillState_={fillStyle:Object(O["a"])(i||w["b"])}}else this.fillState_=null;if(e){var r=e.getColor(),o=e.getLineCap(),s=e.getLineDash(),a=e.getLineDashOffset(),l=e.getLineJoin(),c=e.getWidth(),u=e.getMiterLimit(),h=s||w["e"];this.strokeState_={lineCap:void 0!==o?o:w["d"],lineDash:1===this.pixelRatio_?h:h.map((function(t){return t*n.pixelRatio_})),lineDashOffset:(a||w["f"])*this.pixelRatio_,lineJoin:void 0!==l?l:w["g"],lineWidth:(void 0!==c?c:w["h"])*this.pixelRatio_,miterLimit:void 0!==u?u:w["i"],strokeStyle:Object(O["a"])(r||w["k"])}}else this.strokeState_=null},e.prototype.setImageStyle=function(t){var e;if(t&&(e=t.getSize())){var n=t.getAnchor(),i=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*this.pixelRatio_,this.imageAnchorY_=n[1]*this.pixelRatio_,this.imageHeight_=e[1]*this.pixelRatio_,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=i[0],this.imageOriginY_=i[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScaleArray(),this.imageWidth_=e[0]*this.pixelRatio_}else this.image_=null},e.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var n=e.getColor();this.textFillState_={fillStyle:Object(O["a"])(n||w["b"])}}else this.textFillState_=null;var i=t.getStroke();if(i){var r=i.getColor(),o=i.getLineCap(),s=i.getLineDash(),a=i.getLineDashOffset(),l=i.getLineJoin(),c=i.getWidth(),u=i.getMiterLimit();this.textStrokeState_={lineCap:void 0!==o?o:w["d"],lineDash:s||w["e"],lineDashOffset:a||w["f"],lineJoin:void 0!==l?l:w["g"],lineWidth:void 0!==c?c:w["h"],miterLimit:void 0!==u?u:w["i"],strokeStyle:Object(O["a"])(r||w["k"])}}else this.textStrokeState_=null;var h=t.getFont(),p=t.getOffsetX(),f=t.getOffsetY(),d=t.getRotateWithView(),g=t.getRotation(),y=t.getScaleArray(),_=t.getText(),v=t.getTextAlign(),m=t.getTextBaseline();this.textState_={font:void 0!==h?h:w["c"],textAlign:void 0!==v?v:w["l"],textBaseline:void 0!==m?m:w["m"]},this.text_=void 0!==_?Array.isArray(_)?_.reduce((function(t,e,n){return t+(n%2?" ":e)}),""):_:"",this.textOffsetX_=void 0!==p?this.pixelRatio_*p:0,this.textOffsetY_=void 0!==f?this.pixelRatio_*f:0,this.textRotateWithView_=void 0!==d&&d,this.textRotation_=void 0!==g?g:0,this.textScale_=[this.pixelRatio_*y[0],this.pixelRatio_*y[1]]}else this.text_=""},e}(b),wt=xt,Ct=n("82b0"),Et=n("6cbf"),St=.5;function Pt(t,e,n,i,r,o,s){var a=t[0]*St,l=t[1]*St,c=Object(ft["a"])(a,l);c.imageSmoothingEnabled=!1;for(var u=c.canvas,h=new wt(c,St,r,null,s),p=n.length,f=Math.floor(16777215/p),d={},g=1;g<=p;++g){var y=n[g-1],_=y.getStyleFunction()||i;if(i){var v=_(y,o);if(v){Array.isArray(v)||(v=[v]);for(var m=g*f,b="#"+("000000"+m.toString(16)).slice(-6),O=0,w=v.length;O<w;++O){var E=v[O],S=E.getGeometryFunction()(y);if(S&&Object(x["F"])(r,S.getExtent())){var P=E.clone(),j=P.getFill();j&&j.setColor(b);var T=P.getStroke();T&&(T.setColor(b),T.setLineDash(null)),P.setText(void 0);var M=E.getImage();if(M&&0!==M.getOpacity()){var R=M.getImageSize();if(!R)continue;var L=Object(ft["a"])(R[0],R[1],void 0,{alpha:!1}),A=L.canvas;L.fillStyle=b,L.fillRect(0,0,A.width,A.height),P.setImage(new Et["a"]({img:A,imgSize:R,anchor:M.getAnchor(),anchorXUnits:Ct["a"].PIXELS,anchorYUnits:Ct["a"].PIXELS,offset:M.getOrigin(),opacity:1,size:M.getSize(),scale:M.getScale(),rotation:M.getRotation(),rotateWithView:M.getRotateWithView()}))}var I=P.getZIndex()||0,k=d[I];k||(k={},d[I]=k,k["Polygon"]=[],k["Circle"]=[],k["LineString"]=[],k["Point"]=[]),k[S.getType().replace("Multi","")].push(S,P)}}}}}for(var F=Object.keys(d).map(Number).sort(C["g"]),D=(g=0,F.length);g<D;++g){k=d[F[g]];for(var G in k){var N=k[G];for(O=0,w=N.length;O<w;O+=2){h.setStyle(N[O+1]);for(var z=0,B=e.length;z<B;++z)h.setTransform(e[z]),h.drawGeometry(N[O])}}}return c.getImageData(0,0,u.width,u.height)}function jt(t,e,n){var i=[];if(n){var r=Math.floor(Math.round(t[0])*St),o=Math.floor(Math.round(t[1])*St),s=4*(Object($["b"])(r,0,n.width-1)+Object($["b"])(o,0,n.height-1)*n.width),a=n.data[s],l=n.data[s+1],c=n.data[s+2],u=c+256*(l+256*a),h=Math.floor(16777215/e.length);u&&u%h===0&&i.push(e[u/h-1])}return i}var Tt=n("869f"),Mt=.5,Rt={Point:Wt,LineString:zt,Polygon:Vt,MultiPoint:Yt,MultiLineString:Bt,MultiPolygon:Xt,GeometryCollection:Nt,Circle:kt};function Lt(t,e){return parseInt(Object(z["c"])(t),10)-parseInt(Object(z["c"])(e),10)}function At(t,e){var n=It(t,e);return n*n}function It(t,e){return Mt*t/e}function kt(t,e,n,i,r){var o=n.getFill(),s=n.getStroke();if(o||s){var a=t.getBuilder(n.getZIndex(),"Circle");a.setFillStrokeStyle(o,s),a.drawCircle(e,i)}var l=n.getText();if(l&&l.getText()){var c=(r||t).getBuilder(n.getZIndex(),"Text");c.setTextStyle(l),c.drawText(e,i)}}function Ft(t,e,n,i,r,o,s){var a=!1,l=n.getImage();if(l){var c=l.getImageState();c==Tt["a"].LOADED||c==Tt["a"].ERROR?l.unlistenImageChange(r):(c==Tt["a"].IDLE&&l.load(),l.listenImageChange(r),a=!0)}return Dt(t,e,n,i,o,s),a}function Dt(t,e,n,i,r,o){var s=n.getGeometryFunction()(e);if(s){var a=s.simplifyTransformed(i,r),l=n.getRenderer();if(l)Gt(t,a,n,e);else{var c=Rt[a.getType()];c(t,a,n,e,o)}}}function Gt(t,e,n,i){if("GeometryCollection"!=e.getType()){var r=t.getBuilder(n.getZIndex(),"Default");r.drawCustom(e,i,n.getRenderer(),n.getHitDetectionRenderer())}else for(var o=e.getGeometries(),s=0,a=o.length;s<a;++s)Gt(t,o[s],n,i)}function Nt(t,e,n,i,r){var o,s,a=e.getGeometriesArray();for(o=0,s=a.length;o<s;++o){var l=Rt[a[o].getType()];l(t,a[o],n,i,r)}}function zt(t,e,n,i,r){var o=n.getStroke();if(o){var s=t.getBuilder(n.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawLineString(e,i)}var a=n.getText();if(a&&a.getText()){var l=(r||t).getBuilder(n.getZIndex(),"Text");l.setTextStyle(a),l.drawText(e,i)}}function Bt(t,e,n,i,r){var o=n.getStroke();if(o){var s=t.getBuilder(n.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawMultiLineString(e,i)}var a=n.getText();if(a&&a.getText()){var l=(r||t).getBuilder(n.getZIndex(),"Text");l.setTextStyle(a),l.drawText(e,i)}}function Xt(t,e,n,i,r){var o=n.getFill(),s=n.getStroke();if(s||o){var a=t.getBuilder(n.getZIndex(),"Polygon");a.setFillStrokeStyle(o,s),a.drawMultiPolygon(e,i)}var l=n.getText();if(l&&l.getText()){var c=(r||t).getBuilder(n.getZIndex(),"Text");c.setTextStyle(l),c.drawText(e,i)}}function Wt(t,e,n,i,r){var o,s=n.getImage(),a=n.getText();if(s){if(s.getImageState()!=Tt["a"].LOADED)return;var l=t;if(r){var c=s.getDeclutterMode();if("none"!==c)if(l=r,"obstacle"===c){var u=t.getBuilder(n.getZIndex(),"Image");u.setImageStyle(s,o),u.drawPoint(e,i)}else a&&a.getText()&&(o={})}var h=l.getBuilder(n.getZIndex(),"Image");h.setImageStyle(s,o),h.drawPoint(e,i)}if(a&&a.getText()){var p=t;r&&(p=r);var f=p.getBuilder(n.getZIndex(),"Text");f.setTextStyle(a,o),f.drawText(e,i)}}function Yt(t,e,n,i,r){var o,s=n.getImage(),a=n.getText();if(s){if(s.getImageState()!=Tt["a"].LOADED)return;var l=t;if(r){var c=s.getDeclutterMode();if("none"!==c)if(l=r,"obstacle"===c){var u=t.getBuilder(n.getZIndex(),"Image");u.setImageStyle(s,o),u.drawMultiPoint(e,i)}else a&&a.getText()&&(o={})}var h=l.getBuilder(n.getZIndex(),"Image");h.setImageStyle(s,o),h.drawMultiPoint(e,i)}if(a&&a.getText()){var p=t;r&&(p=r);var f=p.getBuilder(n.getZIndex(),"Text");f.setTextStyle(a,o),f.drawText(e,i)}}function Vt(t,e,n,i,r){var o=n.getFill(),s=n.getStroke();if(o||s){var a=t.getBuilder(n.getZIndex(),"Polygon");a.setFillStrokeStyle(o,s),a.drawPolygon(e,i)}var l=n.getText();if(l&&l.getText()){var c=(r||t).getBuilder(n.getZIndex(),"Text");c.setTextStyle(l),c.drawText(e,i)}}var Ht=n("256f"),Zt=n("a568"),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)}}(),Ut=function(t){function e(e){var n=t.call(this,e)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.animatingOrInteracting_,n.hitDetectionImageData_=null,n.renderedFeatures_=null,n.renderedRevision_=-1,n.renderedResolution_=NaN,n.renderedExtent_=Object(x["j"])(),n.wrappedRenderedExtent_=Object(x["j"])(),n.renderedRotation_,n.renderedCenter_=null,n.renderedProjection_=null,n.renderedRenderOrder_=null,n.replayGroup_=null,n.replayGroupChanged=!0,n.declutterExecutorGroup=null,n.clipping=!0,n.compositionContext_=null,n.opacity_=1,n}return Kt(e,t),e.prototype.renderWorlds=function(t,e,n){var i=e.extent,r=e.viewState,o=r.center,s=r.resolution,a=r.projection,l=r.rotation,c=a.getExtent(),u=this.getLayer().getSource(),h=e.pixelRatio,p=e.viewHints,f=!(p[mt["a"].ANIMATING]||p[mt["a"].INTERACTING]),d=this.compositionContext_,g=Math.round(e.size[0]*h),y=Math.round(e.size[1]*h),_=u.getWrapX()&&a.canWrapX(),v=_?Object(x["E"])(c):null,m=_?Math.ceil((i[2]-c[2])/v)+1:1,b=_?Math.floor((i[0]-c[0])/v):0;do{var O=this.getRenderTransform(o,s,l,h,g,y,b*v);t.execute(d,1,O,l,f,void 0,n)}while(++b<m)},e.prototype.setupCompositionContext_=function(){if(1!==this.opacity_){var t=Object(ft["a"])(this.context.canvas.width,this.context.canvas.height,U["a"]);this.compositionContext_=t}else this.compositionContext_=this.context},e.prototype.releaseCompositionContext_=function(){if(1!==this.opacity_){var t=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=t,Object(ft["d"])(this.compositionContext_),U["a"].push(this.compositionContext_.canvas),this.compositionContext_=null}},e.prototype.renderDeclutter=function(t){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree),this.releaseCompositionContext_())},e.prototype.renderFrame=function(t,e){var n=t.pixelRatio,i=t.layerStatesArray[t.layerIndex];Object(q["e"])(this.pixelTransform,1/n,1/n),Object(q["d"])(this.inversePixelTransform,this.pixelTransform);var r=Object(q["g"])(this.pixelTransform);this.useContainer(e,r,this.getBackground(t));var o=this.context,s=o.canvas,a=this.replayGroup_,l=this.declutterExecutorGroup;if((!a||a.isEmpty())&&(!l||l.isEmpty()))return null;var c=Math.round(t.size[0]*n),u=Math.round(t.size[1]*n);s.width!=c||s.height!=u?(s.width=c,s.height=u,s.style.transform!==r&&(s.style.transform=r)):this.containerReused||o.clearRect(0,0,c,u),this.preRender(o,t);var h=t.viewState,p=h.projection;this.opacity_=i.opacity,this.setupCompositionContext_();var f=!1,d=!0;if(i.extent&&this.clipping){var g=Object(Ht["f"])(i.extent,p);d=Object(x["F"])(g,t.extent),f=d&&!Object(x["g"])(g,t.extent),f&&this.clipUnrotated(this.compositionContext_,t,g)}return d&&this.renderWorlds(a,t),f&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(o,t),this.renderedRotation_!==h.rotation&&(this.renderedRotation_=h.rotation,this.hitDetectionImageData_=null),this.container},e.prototype.getFeatures=function(t){return new Promise(function(e){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var n=[this.context.canvas.width,this.context.canvas.height];Object(q["a"])(this.pixelTransform,n);var i=this.renderedCenter_,r=this.renderedResolution_,o=this.renderedRotation_,s=this.renderedProjection_,a=this.wrappedRenderedExtent_,l=this.getLayer(),c=[],u=n[0]*St,h=n[1]*St;c.push(this.getRenderTransform(i,r,o,St,u,h,0).slice());var p=l.getSource(),f=s.getExtent();if(p.getWrapX()&&s.canWrapX()&&!Object(x["g"])(f,a)){var d=a[0],g=Object(x["E"])(f),y=0,_=void 0;while(d<f[0])--y,_=g*y,c.push(this.getRenderTransform(i,r,o,St,u,h,_).slice()),d+=g;y=0,d=a[2];while(d>f[2])++y,_=g*y,c.push(this.getRenderTransform(i,r,o,St,u,h,_).slice()),d-=g}this.hitDetectionImageData_=Pt(n,c,this.renderedFeatures_,l.getStyleFunction(),a,r,o)}e(jt(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){var o=this;if(this.replayGroup_){var s,a=e.viewState.resolution,l=e.viewState.rotation,c=this.getLayer(),u={},h=function(t,e,n){var o=Object(z["c"])(t),s=u[o];if(s){if(!0!==s&&n<s.distanceSq){if(0===n)return u[o]=!0,r.splice(r.lastIndexOf(s),1),i(t,c,e);s.geometry=e,s.distanceSq=n}}else{if(0===n)return u[o]=!0,i(t,c,e);r.push(u[o]={feature:t,layer:c,geometry:e,distanceSq:n,callback:i})}},p=[this.replayGroup_];return this.declutterExecutorGroup&&p.push(this.declutterExecutorGroup),p.some((function(i){return s=i.forEachFeatureAtCoordinate(t,a,l,n,h,i===o.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map((function(t){return t.value})):null)})),s}},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t){var e=this.getLayer(),n=e.getSource();if(!n)return!1;var i=t.viewHints[mt["a"].ANIMATING],r=t.viewHints[mt["a"].INTERACTING],o=e.getUpdateWhileAnimating(),s=e.getUpdateWhileInteracting();if(this.ready&&!o&&i||!s&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var a=t.extent,l=t.viewState,c=l.projection,u=l.resolution,h=t.pixelRatio,p=e.getRevision(),f=e.getRenderBuffer(),d=e.getRenderOrder();void 0===d&&(d=Lt);var g=l.center.slice(),y=Object(x["c"])(a,f*u),_=y.slice(),v=[y.slice()],m=c.getExtent();if(n.getWrapX()&&c.canWrapX()&&!Object(x["g"])(m,t.extent)){var b=Object(x["E"])(m),O=Math.max(Object(x["E"])(y)/2,b);y[0]=m[0]-O,y[2]=m[2]+O,Object(Zt["k"])(g,c);var w=Object(x["K"])(v[0],c);w[0]<m[0]&&w[2]<m[2]?v.push([w[0]+b,w[1],w[2]+b,w[3]]):w[0]>m[0]&&w[2]>m[2]&&v.push([w[0]-b,w[1],w[2]-b,w[3]])}if(this.ready&&this.renderedResolution_==u&&this.renderedRevision_==p&&this.renderedRenderOrder_==d&&Object(x["g"])(this.wrappedRenderedExtent_,y))return Object(C["b"])(this.renderedExtent_,_)||(this.hitDetectionImageData_=null,this.renderedExtent_=_),this.renderedCenter_=g,this.replayGroupChanged=!1,!0;this.replayGroup_=null;var E,S=new K(It(u,h),y,u,h);this.getLayer().getDeclutter()&&(E=new K(It(u,h),y,u,h));var P,j=Object(Ht["l"])();if(j){for(var T=0,M=v.length;T<M;++T){var R=v[T],L=Object(Ht["n"])(R,c);n.loadFeatures(L,Object(Ht["o"])(u,c),j)}P=Object(Ht["k"])(j,c)}else for(T=0,M=v.length;T<M;++T)n.loadFeatures(v[T],u,c);var A=At(u,h),I=!0,k=function(t){var n,i=t.getStyleFunction()||e.getStyleFunction();if(i&&(n=i(t,u)),n){var r=this.renderFeature(t,A,n,S,P,E);I=I&&!r}}.bind(this),F=Object(Ht["n"])(y,c),D=n.getFeaturesInExtent(F);d&&D.sort(d);for(T=0,M=D.length;T<M;++T)k(D[T]);this.renderedFeatures_=D,this.ready=I;var G=S.finish(),N=new vt(y,u,h,n.getOverlaps(),G,e.getRenderBuffer());return E&&(this.declutterExecutorGroup=new vt(y,u,h,n.getOverlaps(),E.finish(),e.getRenderBuffer())),this.renderedResolution_=u,this.renderedRevision_=p,this.renderedRenderOrder_=d,this.renderedExtent_=_,this.wrappedRenderedExtent_=y,this.renderedCenter_=g,this.renderedProjection_=c,this.replayGroup_=N,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,e,n,i,r,o){if(!n)return!1;var s=!1;if(Array.isArray(n))for(var a=0,l=n.length;a<l;++a)s=Ft(i,t,n[a],e,this.boundHandleStyleImageChange_,r,o)||s;else s=Ft(i,t,n,e,this.boundHandleStyleImageChange_,r,o);return s},e}(U["b"]),Jt=Ut,qt=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){return t.call(this,e)||this}return qt(e,t),e.prototype.createRenderer=function(){return new Jt(this)},e}(h);e["a"]=$t},"3e8f":function(t,e){},"40f1":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));var i=n("9a94");class r extends i["LOverlay"]{constructor(t,e=16,n=16,i=16,r="#237804"){super(),this.iconFontName=t,this.width=e,this.height=n,this.fontSize=i,this.color=r,this.ele.style.position="relative",this.ele.style.cursor="pointer",this.ele.style.width=this.width+"px",this.ele.style.height=this.height+"px",this.ele.style.lineHeight=this.height+"px",this.ele.style.backgroundPosition="center center",this.ele.style.backgroundRepeat="no-repeat",this.ele.style.fontSize=this.fontSize+"px",this.ele.style.color=r,this.ele.style.textAlign=" center",this.ele.style.overflow="hidden",this.ele.className=this.iconFontName}setHTMLElementStyle(){}setColor(t="#D46B08"){this.ele.style.color=t}}},4105:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("4334"),r=n("0b2d"),o=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=this,i=e||{};return n=t.call(this,i)||this,i.handleDownEvent&&(n.handleDownEvent=i.handleDownEvent),i.handleDragEvent&&(n.handleDragEvent=i.handleDragEvent),i.handleMoveEvent&&(n.handleMoveEvent=i.handleMoveEvent),i.handleUpEvent&&(n.handleUpEvent=i.handleUpEvent),i.stopDown&&(n.stopDown=i.stopDown),n.handlingDownUpSequence=!1,n.targetPointers=[],n}return o(e,t),e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==r["a"].POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==r["a"].POINTERUP){var n=this.handleUpEvent(t);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(t.type==r["a"].POINTERDOWN){var i=this.handleDownEvent(t);this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==r["a"].POINTERMOVE&&this.handleMoveEvent(t);return!e},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){t.activePointers&&(this.targetPointers=t.activePointers)},e}(i["a"]);function a(t){for(var e=t.length,n=0,i=0,r=0;r<e;r++)n+=t[r].clientX,i+=t[r].clientY;return[n/e,i/e]}e["b"]=s},4334:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return c}));var i=n("e269"),r=n("bf62"),o=n("ca42"),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)}}(),a=function(t){function e(e){var n=t.call(this)||this;return n.on,n.once,n.un,e&&e.handleEvent&&(n.handleEvent=e.handleEvent),n.map_=null,n.setActive(!0),n}return s(e,t),e.prototype.getActive=function(){return this.get(r["a"].ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(r["a"].ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(i["a"]);function l(t,e,n){var i=t.getCenterInternal();if(i){var r=[i[0]+e[0],i[1]+e[1]];t.animateInternal({duration:void 0!==n?n:250,easing:o["d"],center:t.getConstrainedCenter(r)})}}function c(t,e,n,i){var r=t.getZoom();if(void 0!==r){var s=t.getConstrainedZoom(r+e),a=t.getResolutionForZoom(s);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:a,anchor:n,duration:void 0!==i?i:250,easing:o["b"]})}}e["a"]=a},"47e4":function(t,e,n){"use strict";var i=n("521b"),r=n("7a09"),o=n("9abc"),s=n("9769"),a=n("0af5"),l=n("abb7"),c=n("1c48"),u=n("9f5e"),h=n("bb6c"),p=n("b1a2"),f=n("c560"),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)}}(),g=function(t){function e(e,n,i){var r=t.call(this)||this;if(r.ends_=[],r.maxDelta_=-1,r.maxDeltaRevision_=-1,Array.isArray(e[0]))r.setCoordinates(e,n);else if(void 0!==n&&i)r.setFlatCoordinates(n,e),r.ends_=i;else{for(var o=r.getLayout(),s=e,a=[],l=[],c=0,h=s.length;c<h;++c){var p=s[c];0===c&&(o=p.getLayout()),Object(u["c"])(a,p.getFlatCoordinates()),l.push(a.length)}r.setFlatCoordinates(o,a),r.ends_=l}return r}return d(e,t),e.prototype.appendLineString=function(t){this.flatCoordinates?Object(u["c"])(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,i){return i<Object(a["e"])(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(s["a"])(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(s["b"])(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,n,i))},e.prototype.getCoordinateAtM=function(t,e,n){if(this.layout!=i["a"].XYM&&this.layout!=i["a"].XYZM||0===this.flatCoordinates.length)return null;var r=void 0!==e&&e,o=void 0!==n&&n;return Object(p["c"])(this.flatCoordinates,0,this.ends_,this.stride,t,r,o)},e.prototype.getCoordinates=function(){return Object(h["b"])(this.flatCoordinates,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getLineString=function(t){return t<0||this.ends_.length<=t?null:new r["a"](this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLineStrings=function(){for(var t=this.flatCoordinates,e=this.ends_,n=this.layout,i=[],o=0,s=0,a=e.length;s<a;++s){var l=e[s],c=new r["a"](t.slice(o,l),n);i.push(c),o=l}return i},e.prototype.getFlatMidpoints=function(){for(var t=[],e=this.flatCoordinates,n=0,i=this.ends_,r=this.stride,o=0,s=i.length;o<s;++o){var a=i[o],l=Object(p["a"])(e,n,a,r,.5);Object(u["c"])(t,l),n=a}return t},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],r=[];return n.length=Object(c["b"])(this.flatCoordinates,0,this.ends_,this.stride,t,n,0,r),new e(n,i["a"].XY,r)},e.prototype.getType=function(){return"MultiLineString"},e.prototype.intersectsExtent=function(t){return Object(f["b"])(this.flatCoordinates,0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(l["c"])(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},e}(o["a"]);e["a"]=g},"480c":function(t,e,n){"use strict";var i=n("1af9"),r={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"},o=n("38f3"),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)}}(),a=function(t){function e(e){var n=this,i=e||{},r=Object(o["a"])({},i);return delete r.preload,delete r.useInterimTilesOnError,n=t.call(this,r)||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 s(e,t),e.prototype.getPreload=function(){return this.get(r.PRELOAD)},e.prototype.setPreload=function(t){this.set(r.PRELOAD,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(r.USE_INTERIM_TILES_ON_ERROR)},e.prototype.setUseInterimTilesOnError=function(t){this.set(r.USE_INTERIM_TILES_ON_ERROR,t)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(i["a"]),l=a,c=n("137e"),u=n("7f98"),h=n("2efc"),p=n("dc07"),f=n("acc1"),d=n("0b0e"),g=n("a896"),y=n("0af5"),_=n("256f"),v=n("1300"),m=n("9f5e"),b=n("345d"),O=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){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(y["j"])(),n.tmpTileRange_=new p["b"](0,0,0,0),n}return O(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),n=t.getState(),i=e.getUseInterimTilesOnError();return n==f["a"].LOADED||n==f["a"].EMPTY||n==f["a"].ERROR&&!i},e.prototype.getTile=function(t,e,n,i){var r=i.pixelRatio,o=i.viewState.projection,s=this.getLayer(),a=s.getSource(),l=a.getTile(t,e,n,r,o);return l.getState()==f["a"].ERROR&&(s.getUseInterimTilesOnError()?s.getPreload()>0&&(this.newTiles_=!0):l.setState(f["a"].LOADED)),this.isDrawableTile(l)||(l=l.getInterimTile()),l},e.prototype.getData=function(t){var e=this.frameState;if(!e)return null;var n=this.getLayer(),i=Object(g["a"])(e.pixelToCoordinateTransform,t.slice()),r=n.getExtent();if(r&&!Object(y["f"])(r,i))return null;for(var o=e.pixelRatio,s=e.viewState.projection,a=e.viewState,l=n.getRenderSource(),c=l.getTileGridForProjection(a.projection),p=l.getTilePixelRatio(e.pixelRatio),d=c.getZForResolution(a.resolution);d>=c.getMinZoom();--d){var _=c.getTileCoordForCoordAndZ(i,d),v=l.getTile(d,_[1],_[2],o,s);if(!(v instanceof u["a"]||v instanceof h["a"]))return null;if(v.getState()===f["a"].LOADED){var m=c.getOrigin(d),O=Object(b["c"])(c.getTileSize(d)),x=c.getResolution(d),w=Math.floor(p*((i[0]-m[0])/x-_[1]*O[0])),C=Math.floor(p*((m[1]-i[1])/x-_[2]*O[1])),E=Math.round(p*l.getGutterForProjection(a.projection));return this.getImageData(v.getImage(),w+E,C+E)}}return null},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,r=i.projection,s=i.resolution,a=i.center,l=i.rotation,c=t.pixelRatio,u=this.getLayer(),h=u.getSource(),p=h.getRevision(),b=h.getTileGridForProjection(r),O=b.getZForResolution(s,h.zDirection),x=b.getResolution(O),w=t.extent,C=t.viewState.resolution,E=h.getTilePixelRatio(c),S=Math.round(Object(y["E"])(w)/C*c),P=Math.round(Object(y["z"])(w)/C*c),j=n.extent&&Object(_["f"])(n.extent,r);j&&(w=Object(y["A"])(w,Object(_["f"])(n.extent,r)));var T=x*S/2/E,M=x*P/2/E,R=[a[0]-T,a[1]-M,a[0]+T,a[1]+M],L=b.getTileRangeForExtentAndZ(w,O),A={};A[O]={};var I=this.createLoadedTileFinder(h,r,A),k=this.tmpExtent,F=this.tmpTileRange_;this.newTiles_=!1;for(var D=l?Object(y["B"])(i.center,C,l,t.size):void 0,G=L.minX;G<=L.maxX;++G)for(var N=L.minY;N<=L.maxY;++N)if(!l||b.tileCoordIntersectsViewport([O,G,N],D)){var z=this.getTile(O,G,N,t);if(this.isDrawableTile(z)){var B=Object(v["c"])(this);if(z.getState()==f["a"].LOADED){A[O][z.tileCoord.toString()]=z;var X=z.inTransition(B);X&&1!==n.opacity&&(z.endTransition(B),X=!1),this.newTiles_||!X&&-1!==this.renderedTiles.indexOf(z)||(this.newTiles_=!0)}if(1===z.getAlpha(B,t.time))continue}var W=b.getTileCoordChildTileRange(z.tileCoord,F,k),Y=!1;W&&(Y=I(O+1,W)),Y||b.forEachTileCoordParentTileRange(z.tileCoord,I,F,k)}var V=x/s*c/E;Object(g["b"])(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/c,1/c,l,-S/2,-P/2);var H=Object(g["g"])(this.pixelTransform);this.useContainer(e,H,this.getBackground(t));var Z=this.context,K=Z.canvas;Object(g["d"])(this.inversePixelTransform,this.pixelTransform),Object(g["b"])(this.tempTransform,S/2,P/2,V,V,0,-S/2,-P/2),K.width!=S||K.height!=P?(K.width=S,K.height=P):this.containerReused||Z.clearRect(0,0,S,P),j&&this.clipUnrotated(Z,t,j),h.getInterpolate()||Object(o["a"])(Z,d["a"]),this.preRender(Z,t),this.renderedTiles.length=0;var U,J,q,$=Object.keys(A).map(Number);$.sort(m["g"]),1!==n.opacity||this.containerReused&&!h.getOpaque(t.viewState.projection)?(U=[],J=[]):$=$.reverse();for(var Q=$.length-1;Q>=0;--Q){var tt=$[Q],et=h.getTilePixelSize(tt,c,r),nt=b.getResolution(tt),it=nt/x,rt=et[0]*it*V,ot=et[1]*it*V,st=b.getTileCoordForCoordAndZ(Object(y["C"])(R),tt),at=b.getTileCoordExtent(st),lt=Object(g["a"])(this.tempTransform,[E*(at[0]-R[0])/x,E*(R[3]-at[3])/x]),ct=E*h.getGutterForProjection(r),ut=A[tt];for(var ht in ut){z=ut[ht];var pt=z.tileCoord,ft=st[1]-pt[1],dt=Math.round(lt[0]-(ft-1)*rt),gt=st[2]-pt[2],yt=Math.round(lt[1]-(gt-1)*ot),_t=(G=Math.round(lt[0]-ft*rt),N=Math.round(lt[1]-gt*ot),dt-G),vt=yt-N,mt=O===tt,bt=(X=mt&&1!==z.getAlpha(Object(v["c"])(this),t.time),!1);if(!X)if(U){q=[G,N,G+_t,N,G+_t,N+vt,G,N+vt];for(var Ot=0,xt=U.length;Ot<xt;++Ot)if(O!==tt&&tt<J[Ot]){var wt=U[Ot];Object(y["F"])([G,N,G+_t,N+vt],[wt[0],wt[3],wt[4],wt[7]])&&(bt||(Z.save(),bt=!0),Z.beginPath(),Z.moveTo(q[0],q[1]),Z.lineTo(q[2],q[3]),Z.lineTo(q[4],q[5]),Z.lineTo(q[6],q[7]),Z.moveTo(wt[6],wt[7]),Z.lineTo(wt[4],wt[5]),Z.lineTo(wt[2],wt[3]),Z.lineTo(wt[0],wt[1]),Z.clip())}U.push(q),J.push(tt)}else Z.clearRect(G,N,_t,vt);this.drawTileImage(z,t,G,N,_t,vt,ct,mt),U&&!X?(bt&&Z.restore(),this.renderedTiles.unshift(z)):this.renderedTiles.push(z),this.updateUsedTiles(t.usedTiles,h,z)}}return this.renderedRevision=p,this.renderedResolution=x,this.extentChanged=!this.renderedExtent_||!Object(y["o"])(this.renderedExtent_,R),this.renderedExtent_=R,this.renderedPixelRatio=c,this.renderedProjection=r,this.manageTilePyramid(t,h,b,c,r,w,O,u.getPreload()),this.scheduleExpireCache(t,h),this.postRender(Z,t),n.extent&&Z.restore(),Object(o["a"])(Z,d["b"]),H!==K.style.transform&&(K.style.transform=H),this.container},e.prototype.drawTileImage=function(t,e,n,i,r,o,s,a){var l=this.getTileImage(t);if(l){var c=Object(v["c"])(this),u=e.layerStatesArray[e.layerIndex],h=u.opacity*(a?t.getAlpha(c,e.time):1),p=h!==this.context.globalAlpha;p&&(this.context.save(),this.context.globalAlpha=h),this.context.drawImage(l,s,s,l.width-2*s,l.height-2*s,n,i,r,o),p&&this.context.restore(),h!==u.opacity?e.animate=!0:a&&t.endTransition(c)}},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(v["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(v["c"])(e);i in t||(t[i]={}),t[i][n.getKey()]=!0},e.prototype.manageTilePyramid=function(t,e,n,i,r,o,s,a,l){var c=Object(v["c"])(e);c in t.wantedTiles||(t.wantedTiles[c]={});var u,h,p,d,g,_,m=t.wantedTiles[c],b=t.tileQueue,O=n.getMinZoom(),x=t.viewState.rotation,w=x?Object(y["B"])(t.viewState.center,t.viewState.resolution,x,t.size):void 0,C=0;for(_=O;_<=s;++_)for(h=n.getTileRangeForExtentAndZ(o,_,h),p=n.getResolution(_),d=h.minX;d<=h.maxX;++d)for(g=h.minY;g<=h.maxY;++g)x&&!n.tileCoordIntersectsViewport([_,d,g],w)||(s-_<=a?(++C,u=e.getTile(_,d,g,i,r),u.getState()==f["a"].IDLE&&(m[u.getKey()]=!0,b.isKeyQueued(u.getKey())||b.enqueue([u,c,n.getTileCoordCenter(u.tileCoord),p])),void 0!==l&&l(u)):e.useTile(_,d,g,r));e.updateCacheSize(C,r)},e}(c["b"]),w=x,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)}}(),E=function(t){function e(e){return t.call(this,e)||this}return C(e,t),e.prototype.createRenderer=function(){return new w(this)},e}(l);e["a"]=E},4822:function(t,e,n){},"496f":function(t,e,n){"use strict";e["a"]={ANIMATING:0,INTERACTING:1}},"4a7d":function(t,e,n){"use strict";var i=n("25a5"),r=n.n(i),o=n("0af5"),s=n("1300"),a=n("38f3"),l=function(){function t(t){this.rbush_=new r.a(t),this.items_={}}return t.prototype.insert=function(t,e){var n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[Object(s["c"])(e)]=n},t.prototype.load=function(t,e){for(var n=new Array(e.length),i=0,r=e.length;i<r;i++){var o=t[i],a=e[i],l={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:a};n[i]=l,this.items_[Object(s["c"])(a)]=l}this.rbush_.load(n)},t.prototype.remove=function(t){var e=Object(s["c"])(t),n=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(n)},t.prototype.update=function(t,e){var n=this.items_[Object(s["c"])(e)],i=[n.minX,n.minY,n.maxX,n.maxY];Object(o["o"])(i,t)||(this.remove(e),this.insert(t,e))},t.prototype.getAll=function(){var t=this.rbush_.all();return t.map((function(t){return t.value}))},t.prototype.getInExtent=function(t){var e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]},n=this.rbush_.search(e);return n.map((function(t){return t.value}))},t.prototype.forEach=function(t){return this.forEach_(this.getAll(),t)},t.prototype.forEachInExtent=function(t,e){return this.forEach_(this.getInExtent(t),e)},t.prototype.forEach_=function(t,e){for(var n,i=0,r=t.length;i<r;i++)if(n=e(t[i]),n)return n;return n},t.prototype.isEmpty=function(){return Object(a["d"])(this.items_)},t.prototype.clear=function(){this.rbush_.clear(),this.items_={}},t.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return Object(o["k"])(e.minX,e.minY,e.maxX,e.maxY,t)},t.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]},t}();e["a"]=l},"4cdf":function(t,e,n){"use strict";var i=n("e269"),r=n("01d4"),o=n("92fa"),s=n("1e8d"),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)}}(),l=function(t){function e(e){var n=t.call(this)||this;if(n.on,n.once,n.un,n.id_=void 0,n.geometryName_="geometry",n.style_=null,n.styleFunction_=void 0,n.geometryChangeKey_=null,n.addChangeListener(n.geometryName_,n.handleGeometryChanged_),e)if("function"===typeof e.getSimplifiedGeometry){var i=e;n.setGeometry(i)}else{var r=e;n.setProperties(r)}return n}return a(e,t),e.prototype.clone=function(){var t=new e(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());var n=this.getGeometry();n&&t.setGeometry(n.clone());var i=this.getStyle();return i&&t.setStyle(i),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Object(s["c"])(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=Object(s["a"])(t,r["a"].CHANGE,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?c(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(i["a"]);function c(t){if("function"===typeof t)return t;var e;if(Array.isArray(t))e=t;else{Object(o["a"])("function"===typeof t.getZIndex,41);var n=t;e=[n]}return function(){return e}}e["a"]=l},"4d98":function(t,e,n){"use strict";function i(t,e,n,i){while(e<n-i){for(var r=0;r<i;++r){var o=t[e+r];t[e+r]=t[n-i+r],t[n-i+r]=o}e+=i,n-=i}}function r(t,e,n,i){for(var r=0,o=t[n-i],s=t[n-i+1];e<n;e+=i){var a=t[e],l=t[e+1];r+=(a-o)*(l+s),o=a,s=l}return 0===r?void 0:r>0}function o(t,e,n,i,o){for(var s=void 0!==o&&o,a=0,l=n.length;a<l;++a){var c=n[a],u=r(t,e,c,i);if(0===a){if(s&&u||!s&&!u)return!1}else if(s&&!u||!s&&u)return!1;e=c}return!0}function s(t,e,n,i,r){for(var s=0,a=n.length;s<a;++s){var l=n[s];if(!o(t,e,l,i,r))return!1;l.length&&(e=l[l.length-1])}return!0}function a(t,e,n,o,s){for(var a=void 0!==s&&s,l=0,c=n.length;l<c;++l){var u=n[l],h=r(t,e,u,o),p=0===l?a&&h||!a&&!h:a&&!h||!a&&h;p&&i(t,e,u,o),e=u}return e}function l(t,e,n,i,r){for(var o=0,s=n.length;o<s;++o)e=a(t,e,n[o],i,r);return e}n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return l}))},"4ea4":function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"509b":function(t,e,n){"use strict";var i=n("7238"),r=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)}}(),o=function(t){function e(e,n,i,r,o,s){var a=t.call(this,e,n,o)||this;return a.originalEvent=i,a.pixel_=null,a.coordinate_=null,a.dragging=void 0!==r&&r,a.activePointers=s,a}return r(e,t),Object.defineProperty(e.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(t){this.pixel_=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(t){this.coordinate_=t},enumerable:!1,configurable:!0}),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){t.prototype.stopPropagation.call(this),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()},e}(i["a"]);e["a"]=o},"521b":function(t,e,n){"use strict";e["a"]={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},5388:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return c}));var i=n("6c77"),r=n("8295"),o=n("83a6"),s=n("3e6b"),a=n("55bd"),l=n("0af5");class c{constructor(t,e){this.callback=t,this.maxFeatureCount=0,this.vector=null,this.vectorSource=null,this.currentResolution=0,this.textFill=null,this.aggregationCallback=null,this.removeAggregationCallback=null,this.clearfeatureMap=new Map,this.featureMap=new Map,this.styleFunction=null,this.color=null,this.offsetX=0,this.offsetY=0,this.fontSize=null,this._fontFamily="Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif",this.text=e.text,this.textFill=null,this.aggregationCallback=e.aggregationCallback,this.removeAggregationCallback=e.removeAggregationCallback,this.fontSize=e.fontSize+"px"||"12px",this.offsetX=e.offsetX||0,this.offsetY=e.offsetY||0,this.color=e.color||"#fff",this._init(),this.styleFunction=(t,e)=>{const n=t.get("features").length;let o;e!=this.currentResolution&&(this.calculateClusterInfo(e,n),this.currentResolution=e);if(n>1)o=new i["c"]({text:new r["a"]({text:`${n.toString()}${this.text}`,fill:this.textFill,offsetX:0,offsetY:0,font:`${this.fontSize} ${this._fontFamily}`})});else{t.get("features")[0];o=null}return o}}_init(){this.textFill=new o["a"]({color:this.color})}calculateClusterInfo(t,e){this.maxFeatureCount=0;const n=this.vector.getSource().getFeatures();let i;for(let r=n.length-1;r>=0;--r){i=n[r];const e=i.get("features"),o=Object(l["j"])();let s,a,c=[];for(s=0,a=e.length;s<a;++s)this.callback&&(c.push(e[s]),this.callback(e[s],t,1==e.length)),Object(l["p"])(o,e[s].getGeometry().getExtent());this.aggregationCallback&&(e.length>1?this.aggregationCallback([...c]):this.removeAggregationCallback&&this.removeAggregationCallback(c[0])),c=[],this.maxFeatureCount=Math.max(this.maxFeatureCount,a)}}getVectorLayer(t,e=30){return this.vector=new s["a"]({zIndex:999,source:new a["a"]({distance:e,source:t}),style:this.styleFunction}),this.vector}}},5564:function(t,e,n){"use strict";var i=n("e269"),r=n("df4c"),o=n("1300"),s=n("92fa"),a=n("38f3"),l=n("7fc9"),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)}}(),u=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un,n.background_=e.background;var i=Object(a["a"])({},e);return"object"===typeof e.properties&&(delete i.properties,Object(a["a"])(i,e.properties)),i[r["a"].OPACITY]=void 0!==e.opacity?e.opacity:1,Object(s["a"])("number"===typeof i[r["a"].OPACITY],64),i[r["a"].VISIBLE]=void 0===e.visible||e.visible,i[r["a"].Z_INDEX]=e.zIndex,i[r["a"].MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,i[r["a"].MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,i[r["a"].MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,i[r["a"].MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,n.className_=void 0!==i.className?i.className:"ol-layer",delete i.className,n.setProperties(i),n.state_=null,n}return c(e,t),e.prototype.getBackground=function(){return this.background_},e.prototype.getClassName=function(){return this.className_},e.prototype.getLayerState=function(t){var e=this.state_||{layer:this,managed:void 0===t||t},n=this.getZIndex();return e.opacity=Object(l["b"])(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==n||e.managed?n:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e},e.prototype.getLayersArray=function(t){return Object(o["b"])()},e.prototype.getLayerStatesArray=function(t){return Object(o["b"])()},e.prototype.getExtent=function(){return this.get(r["a"].EXTENT)},e.prototype.getMaxResolution=function(){return this.get(r["a"].MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(r["a"].MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(r["a"].MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(r["a"].MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(r["a"].OPACITY)},e.prototype.getSourceState=function(){return Object(o["b"])()},e.prototype.getVisible=function(){return this.get(r["a"].VISIBLE)},e.prototype.getZIndex=function(){return this.get(r["a"].Z_INDEX)},e.prototype.setBackground=function(t){this.background_=t,this.changed()},e.prototype.setExtent=function(t){this.set(r["a"].EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(r["a"].MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(r["a"].MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(r["a"].MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(r["a"].MIN_ZOOM,t)},e.prototype.setOpacity=function(t){Object(s["a"])("number"===typeof t,64),this.set(r["a"].OPACITY,t)},e.prototype.setVisible=function(t){this.set(r["a"].VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(r["a"].Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),t.prototype.disposeInternal.call(this)},e}(i["a"]);e["a"]=u},5568:function(t,e,n){"use strict";n.r(e);var i=n("370b");function r(t){var e=[1/0,1/0,-1/0,-1/0];return Object(i["coordEach"])(t,(function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])})),e}r["default"]=r,e["default"]=r},"55bd":function(t,e,n){"use strict";var i=n("01d4"),r=n("4cdf"),o=n("f403"),s=n("5831"),a=n("a568"),l=n("92fa"),c=n("0af5"),u=n("1300"),h=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)}}(),p=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,wrapX:e.wrapX})||this;return n.resolution=void 0,n.distance=void 0!==e.distance?e.distance:20,n.minDistance=e.minDistance||0,n.interpolationRatio=0,n.features=[],n.geometryFunction=e.geometryFunction||function(t){var e=t.getGeometry();return Object(l["a"])("Point"==e.getType(),10),e},n.createCustomCluster_=e.createCluster,n.source=null,n.boundRefresh_=n.refresh.bind(n),n.updateDistance(n.distance,n.minDistance),n.setSource(e.source||null),n}return h(e,t),e.prototype.clear=function(e){this.features.length=0,t.prototype.clear.call(this,e)},e.prototype.getDistance=function(){return this.distance},e.prototype.getSource=function(){return this.source},e.prototype.loadFeatures=function(t,e,n){this.source.loadFeatures(t,e,n),e!==this.resolution&&(this.resolution=e,this.refresh())},e.prototype.setDistance=function(t){this.updateDistance(t,this.minDistance)},e.prototype.setMinDistance=function(t){this.updateDistance(this.distance,t)},e.prototype.getMinDistance=function(){return this.minDistance},e.prototype.setSource=function(t){this.source&&this.source.removeEventListener(i["a"].CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(i["a"].CHANGE,this.boundRefresh_),this.refresh()},e.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},e.prototype.updateDistance=function(t,e){var n=0===t?0:Math.min(e,t)/t,i=t!==this.distance||this.interpolationRatio!==n;this.distance=t,this.minDistance=e,this.interpolationRatio=n,i&&this.refresh()},e.prototype.cluster=function(){if(void 0!==this.resolution&&this.source)for(var t=Object(c["j"])(),e=this.distance*this.resolution,n=this.source.getFeatures(),i={},r=0,o=n.length;r<o;r++){var s=n[r];if(!(Object(u["c"])(s)in i)){var a=this.geometryFunction(s);if(a){var l=a.getCoordinates();Object(c["m"])(l,t),Object(c["c"])(t,e,t);var h=this.source.getFeaturesInExtent(t).filter((function(t){var e=Object(u["c"])(t);return!(e in i)&&(i[e]=!0,!0)}));this.features.push(this.createCluster(h,t))}}}},e.prototype.createCluster=function(t,e){for(var n=[0,0],i=t.length-1;i>=0;--i){var s=this.geometryFunction(t[i]);s?Object(a["a"])(n,s.getCoordinates()):t.splice(i,1)}Object(a["h"])(n,1/t.length);var l=Object(c["w"])(e),u=this.interpolationRatio,h=new o["a"]([n[0]*(1-u)+l[0]*u,n[1]*(1-u)+l[1]*u]);return this.createCustomCluster_?this.createCustomCluster_(h,t):new r["a"]({geometry:h,features:t})},e}(s["a"]);e["a"]=p},"57cb":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return a}));var i=n("9f5e");function r(){return!0}function o(){return!1}function s(){}function a(t){var e,n,r,o=!1;return function(){var s=Array.prototype.slice.call(arguments);return o&&this===r&&Object(i["b"])(s,n)||(o=!0,r=this,n=s,e=t.apply(this,arguments)),e}}},5831:function(t,e,n){"use strict";var i=n("e300"),r=n("183a"),o=n("cef7"),s=n("01d4"),a=n("7b4f"),l=n("4a7d"),c=n("ff80"),u=n("a43f"),h=n("57cb");n("256f");function p(t,e){return[[-1/0,-1/0,1/0,1/0]]}var f=n("92fa"),d=n("0af5"),g=n("9f5e"),y=n("1300"),_=n("38f3"),v=n("1e8d"),m=!1;function b(t,e,n,i,r,o,s){var a=new XMLHttpRequest;a.open("GET","function"===typeof t?t(n,i,r):t,!0),"arraybuffer"==e.getType()&&(a.responseType="arraybuffer"),a.withCredentials=m,a.onload=function(t){if(!a.status||a.status>=200&&a.status<300){var i=e.getType(),l=void 0;"json"==i||"text"==i?l=a.responseText:"xml"==i?(l=a.responseXML,l||(l=(new DOMParser).parseFromString(a.responseText,"application/xml"))):"arraybuffer"==i&&(l=a.response),l?o(e.readFeatures(l,{extent:n,featureProjection:r}),e.readProjection(l)):s()}else s()},a.onerror=s,a.send()}function O(t,e){return function(n,i,r,o,s){var a=this;b(t,e,n,i,r,(function(t,e){a.addFeatures(t),void 0!==o&&o(t)}),s||h["c"])}}var x=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,n,i){var r=t.call(this,e)||this;return r.feature=n,r.features=i,r}return x(e,t),e}(o["a"]),C=function(t){function e(e){var n=this,r=e||{};n=t.call(this,{attributions:r.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===r.wrapX||r.wrapX})||this,n.on,n.once,n.un,n.loader_=h["c"],n.format_=r.format,n.overlaps_=void 0===r.overlaps||r.overlaps,n.url_=r.url,void 0!==r.loader?n.loader_=r.loader:void 0!==n.url_&&(Object(f["a"])(n.format_,7),n.loader_=O(n.url_,n.format_)),n.strategy_=void 0!==r.strategy?r.strategy:p;var o,s,a=void 0===r.useSpatialIndex||r.useSpatialIndex;return n.featuresRtree_=a?new l["a"]:null,n.loadedExtentsRtree_=new l["a"],n.loadingExtentsCount_=0,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null,Array.isArray(r.features)?s=r.features:r.features&&(o=r.features,s=o.getArray()),a||void 0!==o||(o=new i["a"](s)),void 0!==s&&n.addFeaturesInternal(s),void 0!==o&&n.bindFeaturesCollection_(o),n}return x(e,t),e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=Object(y["c"])(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var n=t.getGeometry();if(n){var i=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(i,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new w(u["a"].ADDFEATURE,t))}else this.featuresCollection_&&this.featuresCollection_.remove(t)},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[Object(v["a"])(e,s["a"].CHANGE,this.handleFeatureChange_,this),Object(v["a"])(e,a["a"].PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var n=!0,i=e.getId();return void 0!==i&&(i.toString()in this.idIndex_?n=!1:this.idIndex_[i.toString()]=e),n&&(Object(f["a"])(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),n},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],n=[],i=[],r=0,o=t.length;r<o;r++){var s=t[r],a=Object(y["c"])(s);this.addToIndex_(a,s)&&n.push(s)}r=0;for(var l=n.length;r<l;r++){s=n[r],a=Object(y["c"])(s);this.setupChangeEvents_(a,s);var c=s.getGeometry();if(c){var h=c.getExtent();e.push(h),i.push(s)}else this.nullGeometryFeatures_[a]=s}if(this.featuresRtree_&&this.featuresRtree_.load(e,i),this.hasListener(u["a"].ADDFEATURE)){r=0;for(var p=n.length;r<p;r++)this.dispatchEvent(new w(u["a"].ADDFEATURE,n[r]))}},e.prototype.bindFeaturesCollection_=function(t){var e=!1;this.addEventListener(u["a"].ADDFEATURE,(function(n){e||(e=!0,t.push(n.feature),e=!1)})),this.addEventListener(u["a"].REMOVEFEATURE,(function(n){e||(e=!0,t.remove(n.feature),e=!1)})),t.addEventListener(r["a"].ADD,function(t){e||(e=!0,this.addFeature(t.element),e=!1)}.bind(this)),t.addEventListener(r["a"].REMOVE,function(t){e||(e=!0,this.removeFeature(t.element),e=!1)}.bind(this)),this.featuresCollection_=t},e.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_){var n=this.featureChangeKeys_[e];n.forEach(v["c"])}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var i=function(t){this.removeFeatureInternal(t)}.bind(this);for(var r in this.featuresRtree_.forEach(i),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[r])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var o=new w(u["a"].CLEAR);this.dispatchEvent(o),this.changed()},e.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},e.prototype.forEachFeatureAtCoordinateDirect=function(t,e){var n=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(n,(function(n){var i=n.getGeometry();return i.intersectsCoordinate(t)?e(n):void 0}))},e.prototype.forEachFeatureInExtent=function(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},e.prototype.forEachFeatureIntersectingExtent=function(t,e){return this.forEachFeatureInExtent(t,(function(n){var i=n.getGeometry();if(i.intersectsExtent(t)){var r=e(n);if(r)return r}}))},e.prototype.getFeaturesCollection=function(){return this.featuresCollection_},e.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),Object(_["d"])(this.nullGeometryFeatures_)||Object(g["c"])(t,Object(_["c"])(this.nullGeometryFeatures_))),t},e.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e},e.prototype.getFeaturesInExtent=function(t,e){var n=this;if(this.featuresRtree_){var i=e&&e.canWrapX()&&this.getWrapX();if(!i)return this.featuresRtree_.getInExtent(t);var r=Object(d["J"])(t,e);return[].concat.apply([],r.map((function(t){return n.featuresRtree_.getInExtent(t)})))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},e.prototype.getClosestFeatureToCoordinate=function(t,e){var n=t[0],i=t[1],r=null,o=[NaN,NaN],s=1/0,a=[-1/0,-1/0,1/0,1/0],l=e||h["b"];return this.featuresRtree_.forEachInExtent(a,(function(t){if(l(t)){var e=t.getGeometry(),c=s;if(s=e.closestPointXY(n,i,o,s),s<c){r=t;var u=Math.sqrt(s);a[0]=n-u,a[1]=i-u,a[2]=n+u,a[3]=i+u}}})),r},e.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},e.prototype.getFeatureById=function(t){var e=this.idIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getFeatureByUid=function(t){var e=this.uidIndex_[t];return void 0!==e?e:null},e.prototype.getFormat=function(){return this.format_},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.getUrl=function(){return this.url_},e.prototype.handleFeatureChange_=function(t){var e=t.target,n=Object(y["c"])(e),i=e.getGeometry();if(i){var r=i.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(r,e)):this.featuresRtree_&&this.featuresRtree_.update(r,e)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[n]=e);var o=e.getId();if(void 0!==o){var s=o.toString();this.idIndex_[s]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[s]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[n]=e;this.changed(),this.dispatchEvent(new w(u["a"].CHANGEFEATURE,e))},e.prototype.hasFeature=function(t){var e=t.getId();return void 0!==e?e in this.idIndex_:Object(y["c"])(t)in this.uidIndex_},e.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&Object(_["d"])(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()},e.prototype.loadFeatures=function(t,e,n){for(var i=this.loadedExtentsRtree_,r=this.strategy_(t,e,n),o=function(t,o){var a=r[t],l=i.forEachInExtent(a,(function(t){return Object(d["g"])(t.extent,a)}));l||(++s.loadingExtentsCount_,s.dispatchEvent(new w(u["a"].FEATURESLOADSTART)),s.loader_.call(s,a,e,n,function(t){--this.loadingExtentsCount_,this.dispatchEvent(new w(u["a"].FEATURESLOADEND,void 0,t))}.bind(s),function(){--this.loadingExtentsCount_,this.dispatchEvent(new w(u["a"].FEATURESLOADERROR))}.bind(s)),i.insert(a,{extent:a.slice()}))},s=this,a=0,l=r.length;a<l;++a)o(a,l);this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),t.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var e,n=this.loadedExtentsRtree_;n.forEachInExtent(t,(function(n){if(Object(d["o"])(n.extent,t))return e=n,!0})),e&&n.remove(e)},e.prototype.removeFeature=function(t){if(t){var e=Object(y["c"])(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t);var n=this.removeFeatureInternal(t);n&&this.changed()}},e.prototype.removeFeatureInternal=function(t){var e=Object(y["c"])(t),n=this.featureChangeKeys_[e];if(n){n.forEach(v["c"]),delete this.featureChangeKeys_[e];var i=t.getId();return void 0!==i&&delete this.idIndex_[i.toString()],delete this.uidIndex_[e],this.dispatchEvent(new w(u["a"].REMOVEFEATURE,t)),t}},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var n in this.idIndex_)if(this.idIndex_[n]===t){delete this.idIndex_[n],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){Object(f["a"])(this.format_,7),this.url_=t,this.setLoader(O(t,this.format_))},e}(c["a"]);e["a"]=C},5897:function(t,e,n){"use strict";n.r(e),n.d(e,"pathToLines",(function(){return y})),n.d(e,"isTruePolygon",(function(){return _}));var i=n("d30b");function r(t){if(Array.isArray(t))return t;if("Feature"===t.type){if(null!==t.geometry)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}var o=n("370b");function s(t){if(!t)throw new Error("geojson is required");var e=[];return Object(o["flattenEach"])(t,(function(t){a(t,e)})),Object(i["featureCollection"])(e)}function a(t,e){var n=[],i=t.geometry;if(null!==i){switch(i.type){case"Polygon":n=r(i);break;case"LineString":n=[r(i)]}n.forEach((function(n){var i=l(n,t.properties);i.forEach((function(t){t.id=e.length,e.push(t)}))}))}}function l(t,e){var n=[];return t.reduce((function(t,r){var o=Object(i["lineString"])([t,r],e);return o.bbox=c(t,r),n.push(o),r})),n}function c(t,e){var n=t[0],i=t[1],r=e[0],o=e[1],s=n<r?n:r,a=i<o?i:o,l=n>r?n:r,c=i>o?i:o;return[s,a,l,c]}var u=s,h=n("6991"),p=n.n(h);function f(t,e){var n={},s=[];if("LineString"===t.type&&(t=Object(i["feature"])(t)),"LineString"===e.type&&(e=Object(i["feature"])(e)),"Feature"===t.type&&"Feature"===e.type&&null!==t.geometry&&null!==e.geometry&&"LineString"===t.geometry.type&&"LineString"===e.geometry.type&&2===t.geometry.coordinates.length&&2===e.geometry.coordinates.length){var a=d(t,e);return a&&s.push(a),Object(i["featureCollection"])(s)}var l=p()();return l.load(u(e)),Object(o["featureEach"])(u(t),(function(t){Object(o["featureEach"])(l.search(t),(function(e){var i=d(t,e);if(i){var o=r(i).join(",");n[o]||(n[o]=!0,s.push(i))}}))})),Object(i["featureCollection"])(s)}function d(t,e){var n=r(t),o=r(e);if(2!==n.length)throw new Error("<intersects> line1 must only contain 2 coordinates");if(2!==o.length)throw new Error("<intersects> line2 must only contain 2 coordinates");var s=n[0][0],a=n[0][1],l=n[1][0],c=n[1][1],u=o[0][0],h=o[0][1],p=o[1][0],f=o[1][1],d=(f-h)*(l-s)-(p-u)*(c-a),g=(p-u)*(a-h)-(f-h)*(s-u),y=(l-s)*(a-h)-(c-a)*(s-u);if(0===d)return null;var _=g/d,v=y/d;if(_>=0&&_<=1&&v>=0&&v<=1){var m=s+_*(l-s),b=a+_*(c-a);return Object(i["point"])([m,b])}return null}var g=f;
|
|
2
|
+
/**
|
|
3
|
+
* geometric 几何工具库
|
|
4
|
+
* @author maybe
|
|
5
|
+
* @license https://gitee.com/null_639_5368
|
|
6
|
+
*/function y(t){const e=[];return t.forEach((n,r)=>{let o;if(r==t.length-1)return o=i["lineString"]([t[r],t[0]]),void e.push(o);o=i["lineString"]([t[r],t[r+1]]),e.push(o)}),e}function _(t){if(!Array.isArray(t)||t.length<3)return!1;if(!t.every(t=>Array.isArray(t)&&2==t.length))return!1;const e=y(t);let n=!0;function i(){for(let t=e.length-1;t>=0;t--){const i=e[t],r=0==t?e.length-1:t-1,o=t==e.length-1?0:t+1,s=e[r],a=e[o];if(!v(i,s)||!v(i,a))return void(n=!1);const l=e.filter((t,e)=>e!==r&&e!==o);l.forEach(t=>{v(i,t)&&(n=!1)})}}return i(),n}function v(t,e){return g(t,e).features.length>0}e["default"]={pathToLines:y,isTruePolygon:_}},"592d":function(t,e,n){"use strict";e["a"]={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},5938:function(t,e,n){"use strict";function i(t,e,n,i){for(var r=t[e],o=t[e+1],s=0,a=e+i;a<n;a+=i){var l=t[a],c=t[a+1];s+=Math.sqrt((l-r)*(l-r)+(c-o)*(c-o)),r=l,o=c}return s}n.d(e,"a",(function(){return i}))},"5bc0":function(t,e,n){},"5bc3":function(t,e,n){"use strict";n.d(e,"c",(function(){return w})),n.d(e,"b",(function(){return C})),n.d(e,"d",(function(){return E}));var i=n("521b"),r=n("9abc"),o=n("9769"),s=n("0af5"),a=n("abb7"),l=n("1c48"),c=n("bb6c"),u=n("b589"),h=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)}}(),p=function(t){function e(e,n){var i=t.call(this)||this;return i.maxDelta_=-1,i.maxDeltaRevision_=-1,void 0===n||Array.isArray(e[0])?i.setCoordinates(e,n):i.setFlatCoordinates(n,e),i}return h(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,n,i){return i<Object(s["e"])(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(o["e"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(o["d"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,n,i))},e.prototype.getArea=function(){return Object(u["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return Object(c["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[];return n.length=Object(l["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,i["a"].XY)},e.prototype.getType=function(){return"LinearRing"},e.prototype.intersectsExtent=function(t){return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(a["b"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(r["a"]),f=p,d=n("f403"),g=n("9f5e"),y=n("0a9d"),_=n("c560"),v=n("4d98"),m=n("25f1"),b=n("7fc9"),O=(n("790a"),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,i){var r=t.call(this)||this;return r.ends_=[],r.flatInteriorPointRevision_=-1,r.flatInteriorPoint_=null,r.maxDelta_=-1,r.maxDeltaRevision_=-1,r.orientedRevision_=-1,r.orientedFlatCoordinates_=null,void 0!==n&&i?(r.setFlatCoordinates(n,e),r.ends_=i):r.setCoordinates(e,n),r}return O(e,t),e.prototype.appendLinearRing=function(t){this.flatCoordinates?Object(g["c"])(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,i){return i<Object(s["e"])(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(o["a"])(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(o["b"])(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,n,i))},e.prototype.containsXY=function(t,e){return Object(m["c"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return Object(u["b"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),Object(v["c"])(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,Object(c["b"])(e,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=Object(s["w"])(this.getExtent());this.flatInteriorPoint_=Object(y["a"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new d["a"](this.getFlatInteriorPoint(),i["a"].XYM)},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new f(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLinearRings=function(){for(var t=this.layout,e=this.flatCoordinates,n=this.ends_,i=[],r=0,o=0,s=n.length;o<s;++o){var a=n[o],l=new f(e.slice(r,a),t);i.push(l),r=a}return i},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;Object(v["a"])(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Object(v["c"])(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],r=[];return n.length=Object(l["c"])(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),n,0,r),new e(n,i["a"].XY,r)},e.prototype.getType=function(){return"Polygon"},e.prototype.intersectsExtent=function(t){return Object(_["d"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(a["c"])(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},e}(r["a"]);e["a"]=x;function w(t){var e=t[0],n=t[1],r=t[2],o=t[3],s=[e,n,e,o,r,o,r,n,e,n];return new x(s,i["a"].XY,[s.length])}function C(t,e,n){for(var i=e||32,r=t.getStride(),o=t.getLayout(),s=t.getCenter(),a=r*(i+1),l=new Array(a),c=0;c<a;c+=r){l[c]=0,l[c+1]=0;for(var u=2;u<r;u++)l[c+u]=s[u]}var h=[l.length],p=new x(l,o,h);return E(p,s,t.getRadius(),n),p}function E(t,e,n,i){for(var r=t.getFlatCoordinates(),o=t.getStride(),s=r.length/o-1,a=i||0,l=0;l<=s;++l){var c=l*o,u=a+2*Object(b["g"])(l,s)*Math.PI/s;r[c]=e[0]+n*Math.cos(u),r[c+1]=e[1]+n*Math.sin(u)}t.changed()}},"5c38":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return u})),n.d(e,"c",(function(){return f}));var i=n("92fa"),r=n("7fc9"),o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,s=/^([a-z]*)$|^hsla?\(.*\)$/i;function a(t){return"string"===typeof t?t:f(t)}function l(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var n=getComputedStyle(e).color;return document.body.removeChild(e),n}return""}var c=function(){var t=1024,e={},n=0;return function(i){var r;if(e.hasOwnProperty(i))r=e[i];else{if(n>=t){var o=0;for(var s in e)0===(3&o++)&&(delete e[s],--n)}r=h(i),e[i]=r,++n}return r}}();function u(t){return Array.isArray(t)?t:c(t)}function h(t){var e,n,r,a,c;if(s.exec(t)&&(t=l(t)),o.exec(t)){var u=t.length-1,h=void 0;h=u<=4?1:2;var f=4===u||8===u;e=parseInt(t.substr(1+0*h,h),16),n=parseInt(t.substr(1+1*h,h),16),r=parseInt(t.substr(1+2*h,h),16),a=f?parseInt(t.substr(1+3*h,h),16):255,1==h&&(e=(e<<4)+e,n=(n<<4)+n,r=(r<<4)+r,f&&(a=(a<<4)+a)),c=[e,n,r,a/255]}else 0==t.indexOf("rgba(")?(c=t.slice(5,-1).split(",").map(Number),p(c)):0==t.indexOf("rgb(")?(c=t.slice(4,-1).split(",").map(Number),c.push(1),p(c)):Object(i["a"])(!1,14);return c}function p(t){return t[0]=Object(r["b"])(t[0]+.5|0,0,255),t[1]=Object(r["b"])(t[1]+.5|0,0,255),t[2]=Object(r["b"])(t[2]+.5|0,0,255),t[3]=Object(r["b"])(t[3],0,1),t}function f(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var n=t[1];n!=(0|n)&&(n=n+.5|0);var i=t[2];i!=(0|i)&&(i=i+.5|0);var r=void 0===t[3]?1:Math.round(100*t[3])/100;return"rgba("+e+","+n+","+i+","+r+")"}},"5c6f":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));const i=0,r=1,o=-1;class s{constructor(){this.points=[]}clear(){this.points=[]}getPoints(){return this.points}setPoints(t){this.points=t.slice()}addPoint(t){this.points.push(t)}getHull(){const t=this.preparePivotPoint();let e=Array.from(this.points,(t,e)=>e);const n=Array.from(this.points,e=>this.getAngle(t,e)),i=Array.from(this.points,e=>this.euclideanDistanceSquared(t,e));e.sort((t,e)=>{const r=n[t],o=n[e];if(r===o){const n=i[t],r=i[e];return n-r}return r-o});for(let s=1;s<e.length-1;s++)n[e[s]]===n[e[s+1]]&&(e[s]=o);const r=[];for(let s=0;s<e.length;s++){const t=e[s],n=this.points[t];if(t!==o)if(r.length<3)r.push(n);else{while(this.checkOrientation(r[r.length-2],r[r.length-1],n)>0)r.pop();r.push(n)}}return r.length<3?[]:r}checkOrientation(t,e,n){return(e[r]-t[r])*(n[i]-e[i])-(n[r]-e[r])*(e[i]-t[i])}getAngle(t,e){return Math.atan2(e[r]-t[r],e[i]-t[i])}euclideanDistanceSquared(t,e){const n=e[i]-t[i],o=e[r]-t[r];return n*n+o*o}preparePivotPoint(){let t=this.points[0],e=0;for(let n=1;n<this.points.length;n++){const o=this.points[n];(o[r]<t[r]||o[r]===t[r]&&o[i]<t[i])&&(t=o,e=n)}return t}}},"5c9f":function(t,e,n){"use strict";n.r(e),n.d(e,"addXYZLayer",(function(){return g})),n.d(e,"TMapOptions",(function(){return y})),n.d(e,"ViewOptions",(function(){return _})),n.d(e,"default",(function(){return v}));var i=n("a2c7"),r=n("480c"),o=n("91b1"),s=n("089b"),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)}}(),l=function(t){function e(e){var n=this,i=e||{},r=void 0===i.imageSmoothing||i.imageSmoothing;void 0!==i.interpolate&&(r=i.interpolate);var o=void 0!==i.projection?i.projection:"EPSG:3857",a=void 0!==i.tileGrid?i.tileGrid:Object(s["a"])({extent:Object(s["b"])(o),maxResolution:i.maxResolution,maxZoom:i.maxZoom,minZoom:i.minZoom,tileSize:i.tileSize});return n=t.call(this,{attributions:i.attributions,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,interpolate:r,opaque:i.opaque,projection:o,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileGrid:a,tileLoadFunction:i.tileLoadFunction,tilePixelRatio:i.tilePixelRatio,tileUrlFunction:i.tileUrlFunction,url:i.url,urls:i.urls,wrapX:void 0===i.wrapX||i.wrapX,transition:i.transition,attributionsCollapsible:i.attributionsCollapsible,zDirection:i.zDirection})||this,n.gutter_=void 0!==i.gutter?i.gutter:0,n}return a(e,t),e.prototype.getGutter=function(){return this.gutter_},e}(o["a"]),c=l,u=n("9b10"),h=n("2606"),p=n("21bc"),f=n("9d47"),d=n("3a39");function g(t){const e=new c({crossOrigin:"anonymous",url:t});return new r["a"]({source:e,zIndex:-10})}class y{static set setKey(t){y._key=t}static get getKey(){return y._key}}y._key="7d52266420039b71e62f306a4dc31b84";class _{constructor(t){this.projection=null,this.center=[],t=t||{},this.projection=t.projection||"EPSG:4326",this.center=t.center||[120.17550675,30.189238500000002],this.zoom=t.zoom||10,this.minZoom=t.minZoom||1,this.maxZoom=t.maxZoom||18}}class v{constructor(){}static get tmapNormal(){return g("https://t{1-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk="+y.getKey)}static get tmapSatellite(){return g("https://t{1-7}.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk="+y.getKey)}static get tmapAnnotation(){return g("https://t{1-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk="+y.getKey)}static get gmapNormal(){return g("http://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}")}static get gmapSatellite(){return g("https://wprd0{1-4}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scl=1&style=6")}static get gmapAnnotation(){return g("https://wprd0{1-4}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scl=1&style=8")}static get TMapLayerArr(){return[[this.tmapNormal,this.tmapAnnotation],[this.tmapSatellite],[this.tmapSatellite,this.tmapAnnotation]]}static get GMapLayerArr(){return[[this.gmapNormal],[this.gmapSatellite],[this.gmapSatellite,this.gmapAnnotation]]}static get BDMapLayerArr(){const t=new h["default"];return t.layers}static get BingLayers(){const t=new u["default"];return t.layers}static _setView(t){v._view=new i["a"](t)}static set View(t){v._setView(t)}static get View(){return v._view}static get Defaults(){return Object(p["a"])({attribution:!1,rotate:!1,zoom:!1})}static get ScaleLine(){return new f["a"]}static get InteractionsDeft(){return Object(d["a"])({altShiftDragRotate:!1,keyboard:!1,mouseWheelZoom:!1,doubleClickZoom:!1,pinchZoom:!1,shiftDragZoom:!1,dragPan:!1})}static get getVectorLayerView(){return new i["a"]({zoom:1,minZoom:1,maxZoom:28,center:[0,0]})}}v._view=null},"5e31":function(t,e,n){"use strict";var i=n("0ec0"),r=n("01d4"),o=n("acc1"),s=n("1300"),a=n("ca42"),l=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)}}(),c=function(t){function e(e,n,i){var r=t.call(this)||this,o=i||{};return r.tileCoord=e,r.state=n,r.interimTile=null,r.key="",r.transition_=void 0===o.transition?250:o.transition,r.transitionStarts_={},r.interpolate=!!o.interpolate,r}return l(e,t),e.prototype.changed=function(){this.dispatchEvent(r["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()==o["a"].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()==o["a"].LOADED){t.interimTile=null;break}t.getState()==o["a"].LOADING?e=t:t.getState()==o["a"].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!==o["a"].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(a["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}(i["a"]);e["a"]=c},"5eee":function(t,e,n){"use strict";var i=n("da5c"),r=n("57cb"),o=n("1300"),s=n("a896"),a=n("0af5"),l=n("3c22"),c=n("1af9"),u=n("a568"),h=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)}}(),p=function(t){function e(e){var n=t.call(this)||this;return n.map_=e,n}return h(e,t),e.prototype.dispatchRenderEvent=function(t,e){Object(o["b"])()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,n=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;Object(s["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(s["d"])(i,n)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r,o,s,l){var h,p=e.viewState;function f(t,e,n,i){return r.call(o,e,t?n:null,i)}var d=p.projection,g=Object(u["k"])(t.slice(),d),y=[[0,0]];if(d.canWrapX()&&i){var _=d.getExtent(),v=Object(a["E"])(_);y.push([-v,0],[v,0])}for(var m=e.layerStatesArray,b=m.length,O=[],x=[],w=0;w<y.length;w++)for(var C=b-1;C>=0;--C){var E=m[C],S=E.layer;if(S.hasRenderer()&&Object(c["b"])(E,p)&&s.call(l,S)){var P=S.getRenderer(),j=S.getSource();if(P&&j){var T=j.getWrapX()?g:t,M=f.bind(null,E.managed);x[0]=T[0]+y[w][0],x[1]=T[1]+y[w][1],h=P.forEachFeatureAtCoordinate(x,e,n,M,O)}if(h)return h}}if(0!==O.length){var R=1/O.length;return O.forEach((function(t,e){return t.distanceSq+=e*R})),O.sort((function(t,e){return t.distanceSq-e.distanceSq})),O.some((function(t){return h=t.callback(t.feature,t.layer,t.geometry)})),h}},e.prototype.forEachLayerAtPixel=function(t,e,n,i,r){return Object(o["b"])()},e.prototype.hasFeatureAtCoordinate=function(t,e,n,i,o,s){var a=this.forEachFeatureAtCoordinate(t,e,n,i,r["b"],this,o,s);return void 0!==a},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){Object(o["b"])()},e.prototype.scheduleExpireIconCache=function(t){l["a"].canExpireCache()&&t.postRenderFunctions.push(f)},e}(i["a"]);function f(t,e){l["a"].expire()}var d=p,g=n("7b4f"),y=n("3333"),_=n("070d"),v=n("cd7e"),m=n("ddea"),b=n("1e8d"),O=n("0999"),x=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,e)||this;n.fontChangeListenerKey_=Object(b["a"])(m["a"],g["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=v["e"]+" ol-layers";var r=e.getViewport();return r.insertBefore(n.element_,r.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return x(e,t),e.prototype.dispatchRenderEvent=function(t,e){var n=this.getMap();if(n.hasListener(t)){var i=new y["a"](t,void 0,e);n.dispatchEvent(i)}},e.prototype.disposeInternal=function(){Object(b["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(_["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=[],r=null,o=0,s=e.length;o<s;++o){var a=e[o];t.layerIndex=o;var l=a.layer,u=l.getSourceState();if(!Object(c["b"])(a,n)||"ready"!=u&&"undefined"!=u)l.unrender();else{var h=l.render(t,r);h&&(h!==r&&(this.children_.push(h),r=h),"getDeclutter"in l&&i.push(l))}}for(o=i.length-1;o>=0;--o)i[o].renderDeclutter(t);Object(O["g"])(this.element_,this.children_),this.dispatchRenderEvent(_["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,r){for(var o=e.viewState,s=e.layerStatesArray,a=s.length,l=a-1;l>=0;--l){var u=s[l],h=u.layer;if(h.hasRenderer()&&Object(c["b"])(u,o)&&r(h)){var p=h.getRenderer(),f=p.getDataAtPixel(t,e,n);if(f){var d=i(h,f);if(d)return d}}}},e}(d),C=w,E=n("e269"),S=n("e300"),P=n("183a"),j=n("01d4"),T=n("5564"),M=n("cef7"),R=n("92fa"),L=n("38f3"),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)}}(),I=function(t){function e(e,n){var i=t.call(this,e)||this;return i.layer=n,i}return A(e,t),e}(M["a"]),k={LAYERS:"layers"},F=function(t){function e(e){var n=this,i=e||{},r=Object(L["a"])({},i);delete r.layers;var o=i.layers;return n=t.call(this,r)||this,n.on,n.once,n.un,n.layersListenerKeys_=[],n.listenerKeys_={},n.addChangeListener(k.LAYERS,n.handleLayersChanged_),o?Array.isArray(o)?o=new S["a"](o.slice(),{unique:!0}):Object(R["a"])("function"===typeof o.getArray,43):o=new S["a"](void 0,{unique:!0}),n.setLayers(o),n}return A(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(b["c"]),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push(Object(b["a"])(t,P["a"].ADD,this.handleLayersAdd_,this),Object(b["a"])(t,P["a"].REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(b["c"]);Object(L["b"])(this.listenerKeys_);for(var n=t.getArray(),i=0,r=n.length;i<r;i++){var o=n[i];this.registerLayerListeners_(o),this.dispatchEvent(new I("addlayer",o))}this.changed()},e.prototype.registerLayerListeners_=function(t){var n=[Object(b["a"])(t,g["a"].PROPERTYCHANGE,this.handleLayerChange_,this),Object(b["a"])(t,j["a"].CHANGE,this.handleLayerChange_,this)];t instanceof e&&n.push(Object(b["a"])(t,"addlayer",this.handleLayerGroupAdd_,this),Object(b["a"])(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[Object(o["c"])(t)]=n},e.prototype.handleLayerGroupAdd_=function(t){this.dispatchEvent(new I("addlayer",t.layer))},e.prototype.handleLayerGroupRemove_=function(t){this.dispatchEvent(new I("removelayer",t.layer))},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new I("addlayer",e)),this.changed()},e.prototype.handleLayersRemove_=function(t){var e=t.element,n=Object(o["c"])(e);this.listenerKeys_[n].forEach(b["c"]),delete this.listenerKeys_[n],this.dispatchEvent(new I("removelayer",e)),this.changed()},e.prototype.getLayers=function(){return this.get(k.LAYERS)},e.prototype.setLayers=function(t){var e=this.getLayers();if(e)for(var n=e.getArray(),i=0,r=n.length;i<r;++i)this.dispatchEvent(new I("removelayer",n[i]));this.set(k.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(),r=i.zIndex;t||void 0!==i.zIndex||(r=0);for(var o=n,s=e.length;o<s;o++){var l=e[o];l.opacity*=i.opacity,l.visible=l.visible&&i.visible,l.maxResolution=Math.min(l.maxResolution,i.maxResolution),l.minResolution=Math.max(l.minResolution,i.minResolution),l.minZoom=Math.max(l.minZoom,i.minZoom),l.maxZoom=Math.min(l.maxZoom,i.maxZoom),void 0!==i.extent&&(void 0!==l.extent?l.extent=Object(a["A"])(l.extent,i.extent):l.extent=i.extent),void 0===l.zIndex&&(l.zIndex=r)}return e},e.prototype.getSourceState=function(){return"ready"},e}(T["a"]),D=F,G=n("509b"),N=n("0b2d"),z={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},B=n("0ec0"),X=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)}}(),Y=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 r=i.map_.getViewport();return i.activePointers_=[],i.trackedTouches_={},i.element_=r,i.pointerdownListenerKey_=Object(b["a"])(r,z.POINTERDOWN,i.handlePointerDown_,i),i.originalPointerMoveEvent_,i.relayedListenerKey_=Object(b["a"])(r,z.POINTERMOVE,i.relayMoveEvent_,i),i.boundHandleTouchMove_=i.handleTouchMove_.bind(i),i.element_.addEventListener(j["a"].TOUCHMOVE,i.boundHandleTouchMove_,!!X["e"]&&{passive:!1}),i}return W(e,t),e.prototype.emulateClick_=function(t){var e=new G["a"](N["a"].CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new G["a"](N["a"].DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new G["a"](N["a"].SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t,n=e.pointerId;if(e.type==N["a"].POINTERUP||e.type==N["a"].POINTERCANCEL){for(var i in delete this.trackedTouches_[n],this.trackedTouches_)if(this.trackedTouches_[i].target!==e.target){delete this.trackedTouches_[i];break}}else e.type!=N["a"].POINTERDOWN&&e.type!=N["a"].POINTERMOVE||(this.trackedTouches_[n]=e);this.activePointers_=Object(L["c"])(this.trackedTouches_)},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new G["a"](N["a"].POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(b["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_.length,this.updateActivePointers_(t);var e=new G["a"](N["a"].POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);for(var n in this.dispatchEvent(e),this.down_={},t){var i=t[n];this.down_[n]="function"===typeof i?r["c"]:i}if(0===this.dragListenerKeys_.length){var o=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Object(b["a"])(o,N["a"].POINTERMOVE,this.handlePointerMove_,this),Object(b["a"])(o,N["a"].POINTERUP,this.handlePointerUp_,this),Object(b["a"])(this.element_,N["a"].POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==o&&this.dragListenerKeys_.push(Object(b["a"])(this.element_.getRootNode(),N["a"].POINTERUP,this.handlePointerUp_,this))}},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;var e=new G["a"](N["a"].POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}},e.prototype.relayMoveEvent_=function(t){this.originalPointerMoveEvent_=t;var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new G["a"](N["a"].POINTERMOVE,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(b["c"])(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(j["a"].TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Object(b["c"])(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(b["c"]),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(B["a"]),V=Y,H=n("7238"),Z=n("592d"),K={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},U=1/0,J=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(L["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(R["a"])(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=U&&(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,r=e[t],o=n[t],s=t;while(t<i>>1){var a=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),c=l<i&&n[l]<n[a]?l:a;e[t]=e[c],n[t]=n[c],t=c}e[t]=r,n[t]=o,this.siftDown_(s,t)},t.prototype.siftDown_=function(t,e){var n=this.elements_,i=this.priorities_,r=n[e],o=i[e];while(e>t){var s=this.getParentIndex_(e);if(!(i[s]>o))break;n[e]=n[s],i[e]=i[s],e=s}n[e]=r,i[e]=o},t.prototype.reprioritize=function(){var t,e,n,i=this.priorityFunction_,r=this.elements_,o=this.priorities_,s=0,a=r.length;for(e=0;e<a;++e)t=r[e],n=i(t),n==U?delete this.queuedElements_[this.keyFunction_(t)]:(o[s]=n,r[s++]=t);r.length=s,o.length=s,this.heapify_()},t}(),q=J,$=n("acc1"),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)}}(),tt=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 Q(e,t),e.prototype.enqueue=function(e){var n=t.prototype.enqueue.call(this,e);if(n){var i=e[0];i.addEventListener(j["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===$["a"].LOADED||n===$["a"].ERROR||n===$["a"].EMPTY){e.removeEventListener(j["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,r,o=0;while(this.tilesLoading_<t&&o<e&&this.getCount()>0)i=this.dequeue()[0],r=i.getKey(),n=i.getState(),n!==$["a"].IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++o,i.load())},e}(q),et=tt;function nt(t,e,n,i,r){if(!t||!(n in t.wantedTiles))return U;if(!t.wantedTiles[n][e.getKey()])return U;var o=t.viewState.center,s=i[0]-o[0],a=i[1]-o[1];return 65536*Math.log(r)+Math.sqrt(s*s+a*a)/r}var it=n("a2c7"),rt=n("496f"),ot=n("256f"),st=n("345d"),at=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 lt(t){t instanceof c["a"]?t.setMapInternal(null):t instanceof D&&t.getLayers().forEach(lt)}function ct(t,e){if(t instanceof c["a"])t.setMapInternal(e);else if(t instanceof D)for(var n=t.getLayers().getArray(),i=0,r=n.length;i<r;++i)ct(n[i],e)}var ut=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var i=ht(e);n.renderComplete_,n.loaded_=!0,n.boundHandleBrowserEvent_=n.handleBrowserEvent.bind(n),n.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,n.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:X["a"],n.postRenderTimeoutHandle_,n.animationDelayKey_,n.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(n),n.coordinateToPixelTransform_=Object(s["c"])(),n.pixelToCoordinateTransform_=Object(s["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.targetChangeHandlerKeys_=null,n.controls=i.controls||new S["a"],n.interactions=i.interactions||new S["a"],n.overlays_=i.overlays,n.overlayIdIndex_={},n.renderer_=null,n.postRenderFunctions_=[],n.tileQueue_=new et(n.getTilePriority.bind(n),n.handleTileChange_.bind(n)),n.addChangeListener(K.LAYERGROUP,n.handleLayerGroupChanged_),n.addChangeListener(K.VIEW,n.handleViewChanged_),n.addChangeListener(K.SIZE,n.handleSizeChanged_),n.addChangeListener(K.TARGET,n.handleTargetChanged_),n.setProperties(i.values);var r=n;return!e.view||e.view instanceof it["a"]||e.view.then((function(t){r.setView(new it["a"](t))})),n.controls.addEventListener(P["a"].ADD,function(t){t.element.setMap(this)}.bind(n)),n.controls.addEventListener(P["a"].REMOVE,function(t){t.element.setMap(null)}.bind(n)),n.interactions.addEventListener(P["a"].ADD,function(t){t.element.setMap(this)}.bind(n)),n.interactions.addEventListener(P["a"].REMOVE,function(t){t.element.setMap(null)}.bind(n)),n.overlays_.addEventListener(P["a"].ADD,function(t){this.addOverlayInternal_(t.element)}.bind(n)),n.overlays_.addEventListener(P["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 at(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.handleLayerAdd_=function(t){ct(t.layer,this)},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.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,n){if(this.frameState_&&this.renderer_){var i=this.getCoordinateFromPixelInternal(t);n=void 0!==n?n:{};var o=void 0!==n.hitTolerance?n.hitTolerance:0,s=void 0!==n.layerFilter?n.layerFilter:r["b"],a=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(i,this.frameState_,o,a,e,null,s,null)}},e.prototype.getFeaturesAtPixel=function(t,e){var n=[];return this.forEachFeatureAtPixel(t,(function(t){n.push(t)}),e),n},e.prototype.getAllLayers=function(){var t=[];function e(n){n.forEach((function(n){n instanceof D?e(n.getLayers()):t.push(n)}))}return e(this.getLayers()),t},e.prototype.forEachLayerAtPixel=function(t,e,n){if(this.frameState_&&this.renderer_){var i=n||{},o=void 0!==i.hitTolerance?i.hitTolerance:0,s=i.layerFilter||r["b"];return this.renderer_.forEachLayerAtPixel(t,this.frameState_,o,e,s)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_||!this.renderer_)return!1;var n=this.getCoordinateFromPixelInternal(t);e=void 0!==e?e:{};var i=void 0!==e.layerFilter?e.layerFilter:r["b"],o=void 0!==e.hitTolerance?e.hitTolerance:0,s=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,o,s,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(K.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(ot["m"])(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},e.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?Object(s["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(K.LAYERGROUP)},e.prototype.setLayers=function(t){var e=this.getLayerGroup();if(t instanceof S["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.getLoadingOrNotReady=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var i=t[e];if(i.visible){var r=i.layer.getRenderer();if(r&&!r.ready)return!0;var o=i.layer.getSource();if(o&&o.loading)return!0}}return!1},e.prototype.getPixelFromCoordinate=function(t){var e=Object(ot["e"])(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)},e.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?Object(s["a"])(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(K.SIZE)},e.prototype.getView=function(){return this.get(K.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 nt(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===z.POINTERDOWN||n===j["a"].WHEEL||n===j["a"].KEYDOWN){var i=this.getOwnerDocument(),r=this.viewport_.getRootNode?this.viewport_.getRootNode():i,o=e.target;if(this.overlayContainerStopEvent_.contains(o)||!(r===i?i.documentElement:r).contains(o))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t))for(var s=this.getInteractions().getArray().slice(),a=s.length-1;a>=0;a--){var l=s[a];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 r=t.viewHints;if(r[rt["a"].ANIMATING]||r[rt["a"].INTERACTING]){var o=Date.now()-t.time>8;n=o?0:8,i=o?0:2}}e.getTilesLoading()<n&&(e.reprioritize(),e.loadMoreTiles(n,i))}t&&this.renderer_&&!t.animate&&(!0===this.renderComplete_?(this.hasListener(_["a"].RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(_["a"].RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new H["a"](Z["a"].LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new H["a"](Z["a"].LOADSTART,this,t))));for(var s=this.postRenderFunctions_,a=0,l=s.length;a<l;++a)s[a](this,t);s.length=0},e.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},e.prototype.handleTargetChanged_=function(){if(this.mapBrowserEventHandler_){for(var t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)Object(b["c"])(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(j["a"].CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(j["a"].WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,Object(O["f"])(this.viewport_)}var n=this.getTargetElement();if(n){for(var i in n.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new V(this,this.moveTolerance_),N["a"])this.mapBrowserEventHandler_.addEventListener(N["a"][i],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(j["a"].CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(j["a"].WHEEL,this.boundHandleBrowserEvent_,!!X["e"]&&{passive:!1});var r=this.getOwnerDocument().defaultView,o=this.keyboardEventTarget_?this.keyboardEventTarget_:n;this.targetChangeHandlerKeys_=[Object(b["a"])(o,j["a"].KEYDOWN,this.handleBrowserEvent,this),Object(b["a"])(o,j["a"].KEYPRESS,this.handleBrowserEvent,this),Object(b["a"])(r,j["a"].RESIZE,this.updateSize,this)]}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(b["c"])(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Object(b["c"])(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=Object(b["a"])(t,g["a"].PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Object(b["a"])(t,j["a"].CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(b["c"]),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.handleLayerAdd_(new I("addlayer",t)),this.layerGroupPropertyListenerKeys_=[Object(b["a"])(t,g["a"].PROPERTYCHANGE,this.render,this),Object(b["a"])(t,j["a"].CHANGE,this.render,this),Object(b["a"])(t,"addlayer",this.handleLayerAdd_,this),Object(b["a"])(t,"removelayer",this.handleLayerRemove_,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.handleLayerRemove_=function(t){lt(t.layer)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e=this,n=this.getSize(),i=this.getView(),r=this.frameState_,s=null;if(void 0!==n&&Object(st["a"])(n)&&i&&i.isDef()){var l=i.getHints(this.frameState_?this.frameState_.viewHints:void 0),c=i.getState();if(s={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:Object(a["y"])(c.center,c.resolution,c.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:c,viewHints:l,wantedTiles:{},mapId:Object(o["c"])(this),renderTargets:{}},c.nextCenter&&c.nextResolution){var u=isNaN(c.nextRotation)?c.rotation:c.nextRotation;s.nextExtent=Object(a["y"])(c.nextCenter,c.nextResolution,u,n)}}if(this.frameState_=s,this.renderer_.renderFrame(s),s){if(s.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,s.postRenderFunctions),r){var h=!this.previousExtent_||!Object(a["H"])(this.previousExtent_)&&!Object(a["o"])(s.extent,this.previousExtent_);h&&(this.dispatchEvent(new H["a"](Z["a"].MOVESTART,this,r)),this.previousExtent_=Object(a["l"])(this.previousExtent_))}var p=this.previousExtent_&&!s.viewHints[rt["a"].ANIMATING]&&!s.viewHints[rt["a"].INTERACTING]&&!Object(a["o"])(s.extent,this.previousExtent_);p&&(this.dispatchEvent(new H["a"](Z["a"].MOVEEND,this,s)),Object(a["d"])(s.extent,this.previousExtent_))}this.dispatchEvent(new H["a"](Z["a"].POSTRENDER,this,s)),this.renderComplete_=this.hasListener(Z["a"].LOADSTART)||this.hasListener(Z["a"].LOADEND)||this.hasListener(_["a"].RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){e.postRenderTimeoutHandle_=void 0,e.handlePostRender()}),0))},e.prototype.setLayerGroup=function(t){var e=this.getLayerGroup();e&&this.handleLayerRemove_(new I("removelayer",e)),this.set(K.LAYERGROUP,t)},e.prototype.setSize=function(t){this.set(K.SIZE,t)},e.prototype.setTarget=function(t){this.set(K.TARGET,t)},e.prototype.setView=function(t){if(!t||t instanceof it["a"])this.set(K.VIEW,t);else{this.set(K.VIEW,new it["a"]);var e=this;t.then((function(t){e.setView(new it["a"](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"]),r=t.offsetHeight-parseFloat(n["borderTopWidth"])-parseFloat(n["paddingTop"])-parseFloat(n["paddingBottom"])-parseFloat(n["borderBottomWidth"]);isNaN(i)||isNaN(r)||(e=[i,r],!Object(st["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}(E["a"]);function ht(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"===typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var n,i,r,o={},s=t.layers&&"function"===typeof t.layers.getLayers?t.layers:new D({layers:t.layers});return o[K.LAYERGROUP]=s,o[K.TARGET]=t.target,o[K.VIEW]=t.view instanceof it["a"]?t.view:new it["a"],void 0!==t.controls&&(Array.isArray(t.controls)?n=new S["a"](t.controls.slice()):(Object(R["a"])("function"===typeof t.controls.getArray,47),n=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?i=new S["a"](t.interactions.slice()):(Object(R["a"])("function"===typeof t.interactions.getArray,48),i=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?r=new S["a"](t.overlays.slice()):(Object(R["a"])("function"===typeof t.overlays.getArray,49),r=t.overlays):r=new S["a"],{controls:n,interactions:i,keyboardEventTarget:e,overlays:r,values:o}}var pt=ut,ft=n("21bc"),dt=n("3a39"),gt=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)}}(),yt=function(t){function e(e){return e=Object(L["a"])({},e),e.controls||(e.controls=Object(ft["a"])()),e.interactions||(e.interactions=Object(dt["a"])({onFocusOnly:!0})),t.call(this,e)||this}return gt(e,t),e.prototype.createRenderer=function(){return new C(this)},e}(pt);e["a"]=yt},"617d":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"f",(function(){return s})),n.d(e,"d",(function(){return a})),n.d(e,"a",(function(){return l})),n.d(e,"g",(function(){return c})),n.d(e,"c",(function(){return u})),n.d(e,"e",(function(){return h}));var i="undefined"!==typeof navigator&&"undefined"!==typeof navigator.userAgent?navigator.userAgent.toLowerCase():"",r=-1!==i.indexOf("firefox"),o=-1!==i.indexOf("safari")&&-1==i.indexOf("chrom"),s=(o&&(i.indexOf("version/15.4")>=0||i.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==i.indexOf("webkit")&&-1==i.indexOf("edge")),a=-1!==i.indexOf("macintosh"),l="undefined"!==typeof devicePixelRatio?devicePixelRatio:1,c="undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,u="undefined"!==typeof Image&&Image.prototype.decode,h=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(n){}return t}()},6582:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var i=n("c807"),r=n("b2fc");class o{constructor(t,e){this._select=null,this._modify=null,this._snap=null,this._vector=t.Vector,this._vectorLayer=t.Vector,this._select=null,this._modify=null,this._snap=null,this._map=e,this._createModify(),this._createSnap()}_createSelect(){}_createModify(){this._modify=new i["a"]({source:this._vectorLayer.getSource(),style:t=>null}),this._map.addInteraction(this._modify)}_createSnap(){this._snap=new r["a"]({source:this._vectorLayer.getSource()}),this._map.addInteraction(this._snap)}remove(){this._map.removeInteraction(this._modify),this._map.removeInteraction(this._snap)}}},6611:function(t,e,n){"use strict";n.d(e,"b",(function(){return h}));var i=n("01d4"),r=n("8778"),o=n("869f"),s=n("617d"),a=n("0af5"),l=n("1e8d"),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)}}(),u=function(t){function e(e,n,i,r,s,a){var l=t.call(this,e,n,i,o["a"].IDLE)||this;return l.src_=r,l.image_=new Image,null!==s&&(l.image_.crossOrigin=s),l.unlisten_=null,l.state=o["a"].IDLE,l.imageLoadFunction_=a,l}return c(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=o["a"].ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Object(a["z"])(this.extent)/this.image_.height),this.state=o["a"].LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=o["a"].IDLE&&this.state!=o["a"].ERROR||(this.state=o["a"].LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=h(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t,this.resolution=Object(a["z"])(this.extent)/this.image_.height},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(r["a"]);function h(t,e,n){var r=t,o=!0,a=!1,c=!1,u=[Object(l["b"])(r,i["a"].LOAD,(function(){c=!0,a||e()}))];return r.src&&s["c"]?(a=!0,r.decode().then((function(){o&&e()})).catch((function(t){o&&(c?e():n())}))):u.push(Object(l["b"])(r,i["a"].ERROR,n)),function(){o=!1,u.forEach(l["c"])}}e["a"]=u},"690f":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));var i=n("9a94");class r extends i["LOverlay"]{constructor(t,e=180,n=135){super(),this.width=e,this.height=n,this.data=[],this.data=t,this.ele.style.position="relative",this.ele.style.width=this.width+"px",this.ele.style.height=this.height+"px",this.ele.style.backgroundColor="rgba(0,0,0,0.4)",this.ele.style.padding="20px",this.ele.style.borderRadius="4px",this.ele.style.boxSizing="border-box",this._createUl()}setHTMLElementStyle(){}_createUl(){const t=document.createElement("ul");t.style.listStyle="none",this.data.forEach((e,n)=>{const i=document.createElement("li");i.style.fontSize="18px",0!==n&&(i.style.marginTop="10px");const r=document.createElement("label"),o=document.createElement("span");r.innerText=e.label,o.innerText=e.value,o.style.color="#fff",o.style.marginLeft="5px",r.style.color="#fff",i.appendChild(r),i.appendChild(o),t.appendChild(i)}),this.ele.appendChild(t)}}},6923:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var i=n("4cdf"),r=n("6c77"),o=n("ce2c"),s=n("83a6"),a=n("5831"),l=n("3e6b"),c=n("f403");class u{constructor(t,e){this.map=e,this._layer=null,this._source=null,this._lineFeature=null,this._map=null,this._style=null,this._radius=0,this.coordinates=[],this.features=new Array,this.isShow=!0,this._fillColor=t.fillColor,this._stroke=t.stroke,this._zIndex=t.zIndex||5,this._id=t.id,this._map=e,this._radius=t.radius||10,this.coordinates=t.coordinates||[];const n=this._createFeature();this._createCircle(this._createVectorSource(n))}_createCircle(t){this._layer=new l["a"]({source:t}),this._map.addLayer(this._layer)}_createVectorSource(t){return this._source=new a["a"]({features:t}),this._source}_createFeature(){return this.coordinates.forEach(t=>{const e=new i["a"]({geometry:new c["a"](t)});e.setStyle(this.getStyle()),this.features.push(e)}),this.features}getStyle(){return new r["c"]({image:new o["a"]({fill:new s["a"]({color:this._fillColor}),radius:this._radius})})}remove(){this._map.removeLayer(this._layer),this._source=null,this._layer=null,this.features=[],this.coordinates=[]}show(){this.isShow||(this._map.addLayer(this._layer),this.isShow=!0)}hide(){this.isShow&&(this._map.removeLayer(this._layer),this.isShow=!1)}}},6991:function(t,e,n){var i=n("25a5"),r=n("d30b"),o=n("370b"),s=n("5568").default,a=o.featureEach,l=(o.coordEach,r.polygon,r.featureCollection);function c(t){var e=new i(t);return e.insert=function(t){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:s(t),i.prototype.insert.call(this,t)},e.load=function(t){var e=[];return Array.isArray(t)?t.forEach((function(t){if("Feature"!==t.type)throw new Error("invalid features");t.bbox=t.bbox?t.bbox:s(t),e.push(t)})):a(t,(function(t){if("Feature"!==t.type)throw new Error("invalid features");t.bbox=t.bbox?t.bbox:s(t),e.push(t)})),i.prototype.load.call(this,e)},e.remove=function(t,e){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:s(t),i.prototype.remove.call(this,t,e)},e.clear=function(){return i.prototype.clear.call(this)},e.search=function(t){var e=i.prototype.search.call(this,this.toBBox(t));return l(e)},e.collides=function(t){return i.prototype.collides.call(this,this.toBBox(t))},e.all=function(){var t=i.prototype.all.call(this);return l(t)},e.toJSON=function(){return i.prototype.toJSON.call(this)},e.fromJSON=function(t){return i.prototype.fromJSON.call(this,t)},e.toBBox=function(t){var e;if(t.bbox)e=t.bbox;else if(Array.isArray(t)&&4===t.length)e=t;else if(Array.isArray(t)&&6===t.length)e=[t[0],t[1],t[3],t[4]];else if("Feature"===t.type)e=s(t);else{if("FeatureCollection"!==t.type)throw new Error("invalid geojson");e=s(t)}return{minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}},e}t.exports=c,t.exports.default=c},"6c77":function(t,e,n){"use strict";n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return h}));var i=n("ce2c"),r=n("83a6"),o=n("8682"),s=n("92fa"),a=function(){function t(t){var e=t||{};this.geometry_=null,this.geometryFunction_=p,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.hitDetectionRenderer_=void 0!==e.hitDetectionRenderer?e.hitDetectionRenderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}return t.prototype.clone=function(){var e=this.getGeometry();return e&&"object"===typeof e&&(e=e.clone()),new t({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.setRenderer=function(t){this.renderer_=t},t.prototype.setHitDetectionRenderer=function(t){this.hitDetectionRenderer_=t},t.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},t.prototype.getGeometry=function(){return this.geometry_},t.prototype.getGeometryFunction=function(){return this.geometryFunction_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(t){this.fill_=t},t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(t){this.image_=t},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.getText=function(){return this.text_},t.prototype.setText=function(t){this.text_=t},t.prototype.getZIndex=function(){return this.zIndex_},t.prototype.setGeometry=function(t){"function"===typeof t?this.geometryFunction_=t:"string"===typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=p,this.geometry_=t},t.prototype.setZIndex=function(t){this.zIndex_=t},t}();function l(t){var e;if("function"===typeof t)e=t;else{var n;if(Array.isArray(t))n=t;else{Object(s["a"])("function"===typeof t.getZIndex,41);var i=t;n=[i]}e=function(){return n}}return e}var c=null;function u(t,e){if(!c){var n=new r["a"]({color:"rgba(255,255,255,0.4)"}),s=new o["a"]({color:"#3399CC",width:1.25});c=[new a({image:new i["a"]({fill:n,stroke:s,radius:5}),fill:n,stroke:s})]}return c}function h(){var t={},e=[255,255,255,1],n=[0,153,255,1],s=3;return t["Polygon"]=[new a({fill:new r["a"]({color:[255,255,255,.5]})})],t["MultiPolygon"]=t["Polygon"],t["LineString"]=[new a({stroke:new o["a"]({color:e,width:s+2})}),new a({stroke:new o["a"]({color:n,width:s})})],t["MultiLineString"]=t["LineString"],t["Circle"]=t["Polygon"].concat(t["LineString"]),t["Point"]=[new a({image:new i["a"]({radius:2*s,fill:new r["a"]({color:n}),stroke:new o["a"]({color:e,width:s/2})}),zIndex:1/0})],t["MultiPoint"]=t["Point"],t["GeometryCollection"]=t["Polygon"].concat(t["LineString"],t["Point"]),t}function p(t){return t.getGeometry()}e["c"]=a},"6cbf":function(t,e,n){"use strict";var i=n("01d4"),r=n("82b0"),o={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},s=n("869f"),a=n("ab35"),l=n("5c38"),c=n("92fa"),u=n("0ec0"),h=n("0999"),p=n("3c22"),f=n("6611"),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)}}(),g=null,y=function(t){function e(e,n,i,r,o,s){var a=t.call(this)||this;return a.hitDetectionImage_=null,a.image_=e||new Image,null!==r&&(a.image_.crossOrigin=r),a.canvas_={},a.color_=s,a.unlisten_=null,a.imageState_=o,a.size_=i,a.src_=n,a.tainted_,a}return d(e,t),e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===s["a"].LOADED){g||(g=Object(h["a"])(1,1)),g.drawImage(this.image_,0,0);try{g.getImageData(0,0,1,1),this.tainted_=!1}catch(t){g=null,this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(i["a"].CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=s["a"].ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=s["a"].LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_},e.prototype.getPixelRatio=function(t){return this.replaceColor_(t),this.canvas_[t]?t:1},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var t=this.size_[0],e=this.size_[1],n=Object(h["a"])(t,e);n.fillRect(0,0,t,e),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==s["a"].IDLE){this.imageState_=s["a"].LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=Object(f["b"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(t){if(this.color_&&!this.canvas_[t]&&this.imageState_===s["a"].LOADED){var e=document.createElement("canvas");this.canvas_[t]=e,e.width=Math.ceil(this.image_.width*t),e.height=Math.ceil(this.image_.height*t);var n=e.getContext("2d");if(n.scale(t,t),n.drawImage(this.image_,0,0),n.globalCompositeOperation="multiply","multiply"===n.globalCompositeOperation||this.isTainted_())n.fillStyle=Object(l["b"])(this.color_),n.fillRect(0,0,e.width/t,e.height/t),n.globalCompositeOperation="destination-in",n.drawImage(this.image_,0,0);else{for(var i=n.getImageData(0,0,e.width,e.height),r=i.data,o=this.color_[0]/255,a=this.color_[1]/255,c=this.color_[2]/255,u=this.color_[3],h=0,p=r.length;h<p;h+=4)r[h]*=o,r[h+1]*=a,r[h+2]*=c,r[h+3]*=u;n.putImageData(i,0,0)}}},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(u["a"]);function _(t,e,n,i,r,o){var s=p["a"].get(e,i,o);return s||(s=new y(t,e,n,i,r,o),p["a"].set(e,i,o,s)),s}var v=n("1300"),m=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)}}(),b=function(t){function e(e){var n=this,i=e||{},a=void 0!==i.opacity?i.opacity:1,u=void 0!==i.rotation?i.rotation:0,h=void 0!==i.scale?i.scale:1,p=void 0!==i.rotateWithView&&i.rotateWithView;n=t.call(this,{opacity:a,rotation:u,scale:h,displacement:void 0!==i.displacement?i.displacement:[0,0],rotateWithView:p,declutterMode:i.declutterMode})||this,n.anchor_=void 0!==i.anchor?i.anchor:[.5,.5],n.normalizedAnchor_=null,n.anchorOrigin_=void 0!==i.anchorOrigin?i.anchorOrigin:o.TOP_LEFT,n.anchorXUnits_=void 0!==i.anchorXUnits?i.anchorXUnits:r["a"].FRACTION,n.anchorYUnits_=void 0!==i.anchorYUnits?i.anchorYUnits:r["a"].FRACTION,n.crossOrigin_=void 0!==i.crossOrigin?i.crossOrigin:null;var f=void 0!==i.img?i.img:null;n.imgSize_=i.imgSize;var d=i.src;Object(c["a"])(!(void 0!==d&&f),4),Object(c["a"])(!f||f&&n.imgSize_,5),void 0!==d&&0!==d.length||!f||(d=f.src||Object(v["c"])(f)),Object(c["a"])(void 0!==d&&d.length>0,6);var g=void 0!==i.src?s["a"].IDLE:s["a"].LOADED;return n.color_=void 0!==i.color?Object(l["a"])(i.color):null,n.iconImage_=_(f,d,void 0!==n.imgSize_?n.imgSize_:null,n.crossOrigin_,g,n.color_),n.offset_=void 0!==i.offset?i.offset:[0,0],n.offsetOrigin_=void 0!==i.offsetOrigin?i.offsetOrigin:o.TOP_LEFT,n.origin_=null,n.size_=void 0!==i.size?i.size:null,n}return m(e,t),e.prototype.clone=function(){var t=this.getScale();return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},e.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var e=this.getSize();if(this.anchorXUnits_==r["a"].FRACTION||this.anchorYUnits_==r["a"].FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==r["a"].FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==r["a"].FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=o.TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=o.TOP_RIGHT&&this.anchorOrigin_!=o.BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=o.BOTTOM_LEFT&&this.anchorOrigin_!=o.BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}var n=this.getDisplacement();return[t[0]-n[0],t[1]+n[1]]},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=o.TOP_LEFT){var e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),this.offsetOrigin_!=o.TOP_RIGHT&&this.offsetOrigin_!=o.BOTTOM_RIGHT||(t[0]=n[0]-e[0]-t[0]),this.offsetOrigin_!=o.BOTTOM_LEFT&&this.offsetOrigin_!=o.BOTTOM_RIGHT||(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(i["a"].CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(i["a"].CHANGE,t)},e}(a["a"]);e["a"]=b},"6e27":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return C}));var i=n("6c77"),r=n("8295"),o=n("83a6"),s=n("ce2c"),a=n("8682"),l=n("4cdf"),c=n("5831"),u=n("3e6b"),h=n("5bc3"),p=n("6f26"),f=n("b12f"),d=n("5897"),g=n("f403"),y=n("9a44"),_=n("7a09"),v=n("e1f2"),m=n("6582"),b=n("13e2");const O=new i["c"]({text:new r["a"]({fill:new o["a"]({color:"rgba(255, 255, 255, 1)"}),padding:[2,2,2,2],textBaseline:"bottom",offsetY:-20})}),x=[O];class w extends v["a"]{constructor(t,e){super(t,e),this._isTruePolygon=!1,this._checkPoint=null,this._checkPointArea=null,this.createPolygon()}createPolygon(){this.layer=new u["a"]({source:new c["a"],style:(t,e)=>{const n=t.getGeometry(),r=new _["a"](n.getCoordinates()[0]);this.id&&t.setId(this.id);const a=Object(f["calculateCenter"])(t.getGeometry()),{coordinates:l,center:c}=a,u=Object(d["isTruePolygon"])(l);this._isTruePolygon=u;const h=[this.getStyle(u)],p=""+Object(f["formatArea"])(t.getGeometry());if(this._checkPointArea?(this._checkPointArea.setText(p),this._checkPointArea.setPosition(c)):this._checkPointArea=this.createCheckPoint(p,c),!u&&l&&(!this._checkPoint&&l.length>2?this._checkPoint=this.createCheckPoint("多边形不合法",c):this._checkPoint&&(this._checkPoint.setPosition(c),this._checkPoint.show()),this._checkPointArea&&this._checkPointArea.hide()),u&&this._checkPoint&&this._checkPoint.hide(),u&&this._checkPointArea&&this._checkPointArea.show(),e&&r){let t=0;r.forEachSegment((e,n)=>{const i=new _["a"]([e,n]),r=Object(f["formatLength"])(i);x.length-1<t&&x.push(O.clone());const o=new g["a"](i.getCoordinateAt(.5));x[t].setGeometry(o),x[t].getText().setText(r),h.push(x[t]),t++})}let v="#FF8100";if(h.push(new i["c"]({geometry:new y["a"](l),image:new s["a"]({radius:4,fill:new o["a"]({color:v})})})),l&&l.length){const t=l.length>1?l.length-2:l.length-1;l[l.length-2];h.push(new i["c"]({geometry:new g["a"](l[t]),image:new s["a"]({radius:4,fill:new o["a"]({color:"#33cc33"})})}))}return h}}),this.polygon=new h["a"](this.isConvertCoordinatesGCJ02()),this.polygonFeature=new l["a"](this.polygon),this.id&&this.polygonFeature.setId(this.id),this.layer.getSource().addFeature(this.polygonFeature),this.map.addLayer(this.layer)}getStyle(t=!0){return new i["c"]({fill:new o["a"]({color:t?this.fillColor:"rgba(255,0,0, 0.5)"}),stroke:new a["a"]({color:t?this.stroke:"rgba(255,0,0, 0.5)",width:this.width}),image:new s["a"]({radius:7,fill:new o["a"]({color:"#ffcc33"})})})}removeMarker(){this._checkPoint&&this.map.removeOverlay(this._checkPoint.getMarker()),this._checkPointArea&&this.map.removeOverlay(this._checkPointArea.getMarker()),this._checkPoint=null,this._checkPointArea=null}removePolygon(){this.map.removeLayer(this.layer),this.polygonFeature=null,this.source=null,this.layer=null,this.polygon=null}get IsTruePolygon(){return this._isTruePolygon}createCheckPoint(t,e){const n=new p["default"](" "+t,12,"#fff");return n.setOffset([0,-5]),n.setPosition(e),this.map.addOverlay(n.getMarker()),n}}class C{constructor(t,e){this._modify=null,this._callback=null,this.pointArr=new Array,this._pointArr=new Array,this._polygonNew=null,this._isSkipCurrentDraw=!1,this.x=0,this.y=0,this.type=0,this._map=t,this._modify=null,this._callback=e.callback,this._strokeColor=e.strokeColor||"rgba(255,201,14, 0.4)",this._fillColor=e.fillColor||"rgba(255,201,14, 1)",this.pointArr=new Array,this._pointArr=new Array,this._polygonNew=null,this._isSkipCurrentDraw=!1,this.type=e.type||0,this.singleclick=t=>{if(this._isSkipCurrentDraw)return void(this._isSkipCurrentDraw=!1);let e=t.coordinate;if(this.type){const{lon:t,lat:n}=b["GPS"].gcj_decrypt(e[0],e[1]);e=[t,n]}if(this.pointArr.push(e),this._polygonNew){if(this._polygonNew){let t=this.pointArr;this._polygonNew.setCoordinates([t],this.type)}}else this._createPolygon()},this._bingMapEvent()}_createPolygon(){const t=new Array;this.pointArr.forEach(e=>{t.push(e)}),t.push(this.pointArr[0]),this._polygonNew=new w({fillColor:this._fillColor,stroke:this._strokeColor,coordinates:[t],type:this.type},this._map),this._modify=new m["default"](this._polygonNew,this._map)}skipCurrentDraw(){this._isSkipCurrentDraw=!0}remove(){this._map.un("singleclick",this.singleclick),this._modify&&(this._modify.remove(),this._modify=null),this._polygonNew&&(this._polygonNew.removePolygon(),this._polygonNew.removeMarker(),this._polygonNew=null),this.x=0,this.y=0,this.pointArr=[],this._pointArr=[],this._isSkipCurrentDraw=!1}removeLastPoint(){const t=this.getCoordinates();this.x=0,this.y=0,t.length?(this._pointArr=[...t[0]],this._pointArr.splice(this._pointArr.length-1,1),this.pointArr=this._pointArr):this.pointArr.length&&(this._pointArr=[...this.pointArr]);this._pointArr.splice(this._pointArr.length-1,1);this._pointArr.length||(this._polygonNew.removeMarker(),this.pointArr=[],this._pointArr=[]),this._polygonNew.setCoordinates([this._pointArr],this.type)}getCoordinates(){return this._polygonNew?this._polygonNew.getCoordinates():[]}getGeoJson(){return this._polygonNew.getGeoJson()}getGeometry(){return this._polygonNew?this._polygonNew.getGeometry():null}isPolygon(){return this._polygonNew.isPolygon()}getCenterPoint(){return this._polygonNew.getCenterPoint()}setCoordinates(t){const[e,n]=t;this.x==e&&this.y==n||(this.x=e,this.y=n,this.pointArr.push(t),this._polygonNew?this._polygonNew&&this._polygonNew.setCoordinates([this.pointArr],this.type):this._createPolygon())}initCoordinates(t){if(t&&t[0]){const e=t[0],n=e[e.length-1];if(e[0][0]==n[0]&&e[0][1]==n[1])for(let t=1;t<e.length;t++)this.pointArr.push(e[t-1])}this._polygonNew=new w({fillColor:"rgba(0,0,0, 0.5)",stroke:"rgba(255,255,0, 1)",coordinates:t,type:this.type},this._map),this._modify=new m["default"](this._polygonNew,this._map)}finishDrawing(){}_bingMapEvent(){this._map.on("singleclick",this.singleclick)}get isTruePolygon(){return this._polygonNew.IsTruePolygon}set setType(t){this.type=t}selectGPS(t=0,e=!0){this._polygonNew&&this._polygonNew.selectGPS(t,e)}}},"6ee6":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));var i=n("9a94");class r extends i["LOverlay"]{constructor(){super()}setHTMLElementStyle(){this.ele.style.position="relative",this.ele.style.background="rgb(23, 168, 162)",this.ele.style.borderRadius="4px",this.ele.style.color="#fff",this.ele.style.padding="4px 30px 4px 8px",this.ele.style.whiteSpace="nowrap"}}},"6f26":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));var i=n("9a94");class r extends i["LOverlay"]{constructor(t,e=12,n="#fff"){super(),this.ele.style.fontSize=e+"px",this.ele.innerText=t,this.ele.style.position="relative",this.ele.style.width="260px",this.ele.style.height="15px",this.ele.style.backgroundColor="transparent",this.ele.style.cursor="pointer",this.ele.style.lineHeight="60px",this.ele.style.textAlign="center",this.ele.style.color=n}setHTMLElementStyle(){}}},7037:function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},7238:function(t,e,n){"use strict";var i=n("cef7"),r=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)}}(),o=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.map=n,r.frameState=void 0!==i?i:null,r}return r(e,t),e}(i["a"]);e["a"]=o},"74bf":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));var i=n("13e2");class r{constructor(){this.xMax=0,this.xMin=400,this.yMax=0,this.yMin=400}getLngAndLatMaxMin(t){t.X>this.xMax&&(this.xMax=t.X),t.Y>this.yMax&&(this.yMax=t.Y),t.X<this.xMin&&(this.xMin=t.X),t.Y<this.yMin&&(this.yMin=t.Y)}getLngLats(t=0){const e=[];return e.push([this.xMax],[this.yMax]),e.push([this.xMin],[this.yMin]),e}getLngLatGCJ02(t=0){const e=[],{lon:n,lat:r}=i["GPS"].gcj_encrypt(this.xMax,this.yMax),{lon:o,lat:s}=i["GPS"].gcj_encrypt(this.xMin,this.yMin);return e.push([n],[r]),e.push([o],[s]),e}}},7554:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));var i=n("9a94");class r extends i["LOverlay"]{constructor(t){super(),this.ele.style.width=t.width+"px",this.ele.style.height=t.height+"px",this.ele.style.backgroundColor=""+t.backgroundColor,this.ele.style.lineHeight=t.height+"px",this.ele.style.fontSize="12px",this.ele.style.color=""+t.color,this.ele.style.borderRadius="8px 14px 14px 0px",this.ele.style.padding="0px 10px",this.ele.style.whiteSpace="nowrap",this.ele.style.cursor="pointer",this.ele.style.marginLeft="0",this.ele.style.marginRight="0",this.setText(t.text)}setHTMLElementStyle(){}init(){}}},"78db":function(t,e,n){"use strict";var i=n("dc07"),r=n("0414"),o=n("92fa"),s=n("7fc9"),a=n("0af5"),l=n("2c30"),c=n("c560"),u=n("9f5e"),h=n("345d"),p=[0,0,0],f=5,d=function(){function t(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Object(o["a"])(Object(u["e"])(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(var n=0,s=this.resolutions_.length-1;n<s;++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(o["a"])(this.origins_.length==this.resolutions_.length,20));var l=t.extent;void 0===l||this.origin_||this.origins_||(this.origin_=Object(a["C"])(l)),Object(o["a"])(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,Object(o["a"])(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:r["b"],Object(o["a"])(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==l?l: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 i["b"](Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(l){var r=this.getTileRangeForExtentAndZ(l,e);n.minX=Math.max(r.minX,n.minX),n.maxX=Math.min(r.maxX,n.maxX),n.minY=Math.max(r.minY,n.minY),n.maxY=Math.min(r.maxY,n.maxY)}return n}),this):l&&this.calculateTileRanges_(l)}return t.prototype.forEachTileCoord=function(t,e,n){for(var i=this.getTileRangeForExtentAndZ(t,e),r=i.minX,o=i.maxX;r<=o;++r)for(var s=i.minY,a=i.maxY;s<=a;++s)n([e,r,s])},t.prototype.forEachTileCoordParentTileRange=function(t,e,n,r){var o,s,a,l=null,c=t[0]-1;2===this.zoomFactor_?(s=t[1],a=t[2]):l=this.getTileCoordExtent(t,r);while(c>=this.minZoom){if(2===this.zoomFactor_?(s=Math.floor(s/2),a=Math.floor(a/2),o=Object(i["a"])(s,s,a,a,n)):o=this.getTileRangeForExtentAndZ(l,c,n),e(c,o))return!0;--c}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 r=2*t[1],o=2*t[2];return Object(i["a"])(r,r+1,o,o+1,e)}var s=this.getTileCoordExtent(t,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(s,t[0]+1,e)}return null},t.prototype.getTileRangeForTileCoordAndZ=function(t,e,n){if(e>this.maxZoom||e<this.minZoom)return null;var r=t[0],o=t[1],s=t[2];if(e===r)return Object(i["a"])(o,s,o,s,n);if(this.zoomFactor_){var a=Math.pow(this.zoomFactor_,e-r),l=Math.floor(o*a),c=Math.floor(s*a);if(e<r)return Object(i["a"])(l,l,c,c,n);var u=Math.floor(a*(o+1))-1,h=Math.floor(a*(s+1))-1;return Object(i["a"])(l,u,c,h,n)}var p=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(p,e,n)},t.prototype.getTileRangeExtent=function(t,e,n){var i=this.getOrigin(t),r=this.getResolution(t),o=Object(h["c"])(this.getTileSize(t),this.tmpSize_),s=i[0]+e.minX*o[0]*r,l=i[0]+(e.maxX+1)*o[0]*r,c=i[1]+e.minY*o[1]*r,u=i[1]+(e.maxY+1)*o[1]*r;return Object(a["k"])(s,c,l,u,n)},t.prototype.getTileRangeForExtentAndZ=function(t,e,n){var r=p;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,r);var o=r[1],s=r[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,r),Object(i["a"])(o,r[1],s,r[2],n)},t.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),n=this.getResolution(t[0]),i=Object(h["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]),r=Object(h["c"])(this.getTileSize(t[0]),this.tmpSize_),o=n[0]+t[1]*r[0]*i,s=n[1]-(t[2]+1)*r[1]*i,l=o+r[0]*i,c=s+r[1]*i;return Object(a["k"])(o,s,l,c,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,r){var o=this.getZForResolution(n),a=n/this.getResolution(o),c=this.getOrigin(o),u=Object(h["c"])(this.getTileSize(o),this.tmpSize_),p=a*(t-c[0])/n/u[0],d=a*(c[1]-e)/n/u[1];return i?(p=Object(s["a"])(p,f)-1,d=Object(s["a"])(d,f)-1):(p=Object(s["d"])(p,f),d=Object(s["d"])(d,f)),Object(l["a"])(o,p,d,r)},t.prototype.getTileCoordForXYAndZ_=function(t,e,n,i,r){var o=this.getOrigin(n),a=this.getResolution(n),c=Object(h["c"])(this.getTileSize(n),this.tmpSize_),u=(t-o[0])/a/c[0],p=(o[1]-e)/a/c[1];return i?(u=Object(s["a"])(u,f)-1,p=Object(s["a"])(p,f)-1):(u=Object(s["d"])(u,f),p=Object(s["d"])(p,f)),Object(l["a"])(n,u,p,r)},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(u["f"])(this.resolutions_,t,e||0);return Object(s["b"])(n,this.minZoom,this.maxZoom)},t.prototype.tileCoordIntersectsViewport=function(t,e){return Object(c["c"])(e,0,e.length,2,this.getTileCoordExtent(t))},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}();e["a"]=d},"790a":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return c})),n.d(e,"d",(function(){return u}));var i=n("7fc9"),r=6371008.8;function o(t,e,n){var o=n||r,s=Object(i["l"])(t[1]),a=Object(i["l"])(e[1]),l=(a-s)/2,c=Object(i["l"])(e[0]-t[0])/2,u=Math.sin(l)*Math.sin(l)+Math.sin(c)*Math.sin(c)*Math.cos(s)*Math.cos(a);return 2*o*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))}function s(t,e){for(var n=0,i=0,r=t.length;i<r-1;++i)n+=o(t[i],t[i+1],e);return n}function a(t,e){var n=e||{},i=n.radius||r,o=n.projection||"EPSG:3857",l=t.getType();"GeometryCollection"!==l&&(t=t.clone().transform(o,"EPSG:4326"));var c,u,h,p,f,d,g=0;switch(l){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":c=t.getCoordinates(),g=s(c,i);break;case"MultiLineString":case"Polygon":for(c=t.getCoordinates(),h=0,p=c.length;h<p;++h)g+=s(c[h],i);break;case"MultiPolygon":for(c=t.getCoordinates(),h=0,p=c.length;h<p;++h)for(u=c[h],f=0,d=u.length;f<d;++f)g+=s(u[f],i);break;case"GeometryCollection":var y=t.getGeometries();for(h=0,p=y.length;h<p;++h)g+=a(y[h],e);break;default:throw new Error("Unsupported geometry type: "+l)}return g}function l(t,e){for(var n=0,r=t.length,o=t[r-1][0],s=t[r-1][1],a=0;a<r;a++){var l=t[a][0],c=t[a][1];n+=Object(i["l"])(l-o)*(2+Math.sin(Object(i["l"])(s))+Math.sin(Object(i["l"])(c))),o=l,s=c}return n*e*e/2}function c(t,e){var n=e||{},i=n.radius||r,o=n.projection||"EPSG:3857",s=t.getType();"GeometryCollection"!==s&&(t=t.clone().transform(o,"EPSG:4326"));var a,u,h,p,f,d,g=0;switch(s){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"LinearRing":break;case"Polygon":for(a=t.getCoordinates(),g=Math.abs(l(a[0],i)),h=1,p=a.length;h<p;++h)g-=Math.abs(l(a[h],i));break;case"MultiPolygon":for(a=t.getCoordinates(),h=0,p=a.length;h<p;++h)for(u=a[h],g+=Math.abs(l(u[0],i)),f=1,d=u.length;f<d;++f)g-=Math.abs(l(u[f],i));break;case"GeometryCollection":var y=t.getGeometries();for(h=0,p=y.length;h<p;++h)g+=c(y[h],e);break;default:throw new Error("Unsupported geometry type: "+s)}return g}function u(t,e,n,o){var s=o||r,a=Object(i["l"])(t[1]),l=Object(i["l"])(t[0]),c=e/s,u=Math.asin(Math.sin(a)*Math.cos(c)+Math.cos(a)*Math.sin(c)*Math.cos(n)),h=l+Math.atan2(Math.sin(n)*Math.sin(c)*Math.cos(a),Math.cos(c)-Math.sin(a)*Math.sin(u));return[Object(i["k"])(h),Object(i["k"])(u)]}},"7a09":function(t,e,n){"use strict";var i=n("521b"),r=n("9abc"),o=n("9769"),s=n("0af5"),a=n("abb7"),l=n("1c48"),c=n("9f5e"),u=n("fd4d"),h=n("bb6c"),p=n("b1a2"),f=n("c560"),d=n("5938"),g=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)}}(),y=function(t){function e(e,n){var i=t.call(this)||this;return i.flatMidpoint_=null,i.flatMidpointRevision_=-1,i.maxDelta_=-1,i.maxDeltaRevision_=-1,void 0===n||Array.isArray(e[0])?i.setCoordinates(e,n):i.setFlatCoordinates(n,e),i}return g(e,t),e.prototype.appendCoordinate=function(t){this.flatCoordinates?Object(c["c"])(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,i){return i<Object(s["e"])(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(o["e"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(o["d"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,n,i))},e.prototype.forEachSegment=function(t){return Object(u["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,e){if(this.layout!=i["a"].XYM&&this.layout!=i["a"].XYZM)return null;var n=void 0!==e&&e;return Object(p["b"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n)},e.prototype.getCoordinates=function(){return Object(h["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,e){return Object(p["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)},e.prototype.getLength=function(){return Object(d["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[];return n.length=Object(l["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,i["a"].XY)},e.prototype.getType=function(){return"LineString"},e.prototype.intersectsExtent=function(t){return Object(f["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(a["b"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(r["a"]);e["a"]=y},"7b4f":function(t,e,n){"use strict";e["a"]={PROPERTYCHANGE:"propertychange"}},"7cec":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return c}));var i=n("5831"),r=n("5bc3"),o=n("7a09"),s=n("304e"),a=n("b12f"),l=n("6ee6");class c{constructor(t,e,n,r,o){this.darwType=t,this.callback=e,this.map=n,this.strokeColor=r,this.fillColor=o,this.isSetPosition=!1,this.sketch=null,this.measureTooltip=null,this.helpTooltip=null,this.source=new i["a"],this.vector=a["getVector"](this.source),this.source=new i["a"],this.vector=a["getVector"](this.source),this._init()}_init(){this._addInteraction()}_addInteraction(){this.pointerMoveHandler=t=>{if(t.dragging)return;let e="点击绘制图形";this.sketch&&(e="单击继续绘制,双击结束测量"),this.helpTooltip.getDom().innerHTML=e,this.helpTooltip.setPosition(t.coordinate)},this.map.addLayer(this.vector),this.map.on("pointermove",this.pointerMoveHandler),this.draw=a["addInteraction"](this.darwType,this.source,this.fillColor,this.strokeColor),this.map.addInteraction(this.draw),this._createMarker(),this._drawBinDrawstart(),this._drawBinDrawend()}_createMarker(){this.measureTooltip=new l["default"],this.measureTooltip.setOffset([0,-30]),this.map.addOverlay(this.measureTooltip.getMarker()),this.helpTooltip=new s["default"],this.helpTooltip.setOffset([10,-60]),this.map.addOverlay(this.helpTooltip.getMarker())}_drawBinDrawstart(){this.draw.once("drawstart",t=>{this.sketch=t.feature;let e=t.coordinate;this.sketch.getGeometry().on("change",t=>{const n=t.target;n instanceof r["a"]?e=n.getInteriorPoint().getCoordinates():n instanceof o["a"]&&(e=n.getLastCoordinate()),this.measureTooltip.getDom().innerHTML=a["_arr"][this.darwType](n),this.measureTooltip.setPosition(e)})})}_drawBinDrawend(){this.draw.once("drawend",t=>{this.map.removeInteraction(this.draw),this.measureTooltip.getDom().appendChild(a["createSpan"](this)),this.map.un("pointermove",this.pointerMoveHandler),this.map.removeOverlay(this.helpTooltip.getMarker()),this.helpTooltip=null,this.sketch=null,this.callback(t)})}_clear(){this.map.removeLayer(this.vector),this.map.removeOverlay(this.measureTooltip.getMarker()),this.measureTooltip=null,this.vector=null,this.source=null}getDraw(){return this.vector}clear(){this.draw&&(this.helpTooltip&&(this.map.removeOverlay(this.helpTooltip.getMarker()),this.helpTooltip=null),this.helpTooltip=null,this.sketch=null,this.map.removeInteraction(this.draw),this.map.un("pointermove",this.pointerMoveHandler),this.map.removeLayer(this.vector),this.measureTooltip&&this.map.removeOverlay(this.measureTooltip.getMarker()),this.measureTooltip=null,this.vector=null,this.source=null)}}},"7f98":function(t,e,n){"use strict";var i=n("5e31"),r=n("acc1"),o=n("0999"),s=n("6611"),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)}}(),l=function(t){function e(e,n,i,r,o,s){var a=t.call(this,e,n,s)||this;return a.crossOrigin_=r,a.src_=i,a.key=i,a.image_=new Image,null!==r&&(a.image_.crossOrigin=r),a.unlisten_=null,a.tileLoadFunction_=o,a}return a(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=r["a"].LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){this.state=r["a"].ERROR,this.unlistenImage_(),this.image_=c(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=r["a"].LOADED:this.state=r["a"].EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==r["a"].ERROR&&(this.state=r["a"].IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==r["a"].IDLE&&(this.state=r["a"].LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(s["b"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(i["a"]);function c(){var t=Object(o["a"])(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}e["a"]=l},"7fc9":function(t,e,n){"use strict";function i(t,e,n){return Math.min(Math.max(t,e),n)}n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"f",(function(){return o})),n.d(e,"j",(function(){return s})),n.d(e,"i",(function(){return a})),n.d(e,"h",(function(){return l})),n.d(e,"k",(function(){return c})),n.d(e,"l",(function(){return u})),n.d(e,"g",(function(){return h})),n.d(e,"e",(function(){return p})),n.d(e,"d",(function(){return d})),n.d(e,"a",(function(){return g}));var r=function(){var t;return t="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2},t}(),o=function(){var t;return t="log2"in Math?Math.log2:function(t){return Math.log(t)*Math.LOG2E},t}();function s(t,e,n,i,r,o){var s=r-n,l=o-i;if(0!==s||0!==l){var c=((t-n)*s+(e-i)*l)/(s*s+l*l);c>1?(n=r,i=o):c>0&&(n+=s*c,i+=l*c)}return a(t,e,n,i)}function a(t,e,n,i){var r=n-t,o=i-e;return r*r+o*o}function l(t){for(var e=t.length,n=0;n<e;n++){for(var i=n,r=Math.abs(t[n][n]),o=n+1;o<e;o++){var s=Math.abs(t[o][n]);s>r&&(r=s,i=o)}if(0===r)return null;var a=t[i];t[i]=t[n],t[n]=a;for(var l=n+1;l<e;l++)for(var c=-t[l][n]/t[n][n],u=n;u<e+1;u++)n==u?t[l][u]=0:t[l][u]+=c*t[n][u]}for(var h=new Array(e),p=e-1;p>=0;p--){h[p]=t[p][e]/t[p][p];for(var f=p-1;f>=0;f--)t[f][e]-=t[f][p]*h[p]}return h}function c(t){return 180*t/Math.PI}function u(t){return t*Math.PI/180}function h(t,e){var n=t%e;return n*e<0?n+e:n}function p(t,e,n){return t+n*(e-t)}function f(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n}function d(t,e){return Math.floor(f(t,e))}function g(t,e){return Math.ceil(f(t,e))}},8295:function(t,e,n){"use strict";var i=n("83a6"),r=n("29f6"),o=n("345d"),s="#333",a=function(){function t(t){var e=t||{};this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.scaleArray_=Object(o["c"])(void 0!==e.scale?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.justify_=e.justify,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new i["a"]({color:s}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:r["a"].POINT,this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding}return t.prototype.clone=function(){var e=this.getScale();return new t({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},t.prototype.getOverflow=function(){return this.overflow_},t.prototype.getFont=function(){return this.font_},t.prototype.getMaxAngle=function(){return this.maxAngle_},t.prototype.getPlacement=function(){return this.placement_},t.prototype.getOffsetX=function(){return this.offsetX_},t.prototype.getOffsetY=function(){return this.offsetY_},t.prototype.getFill=function(){return this.fill_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.getText=function(){return this.text_},t.prototype.getTextAlign=function(){return this.textAlign_},t.prototype.getJustify=function(){return this.justify_},t.prototype.getTextBaseline=function(){return this.textBaseline_},t.prototype.getBackgroundFill=function(){return this.backgroundFill_},t.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},t.prototype.getPadding=function(){return this.padding_},t.prototype.setOverflow=function(t){this.overflow_=t},t.prototype.setFont=function(t){this.font_=t},t.prototype.setMaxAngle=function(t){this.maxAngle_=t},t.prototype.setOffsetX=function(t){this.offsetX_=t},t.prototype.setOffsetY=function(t){this.offsetY_=t},t.prototype.setPlacement=function(t){this.placement_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setFill=function(t){this.fill_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=Object(o["c"])(void 0!==t?t:1)},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.setText=function(t){this.text_=t},t.prototype.setTextAlign=function(t){this.textAlign_=t},t.prototype.setJustify=function(t){this.justify_=t},t.prototype.setTextBaseline=function(t){this.textBaseline_=t},t.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},t.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},t.prototype.setPadding=function(t){this.padding_=t},t}();e["a"]=a},"82b0":function(t,e,n){"use strict";e["a"]={FRACTION:"fraction",PIXELS:"pixels"}},8343:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return f}));var i=n("6c77"),r=n("83a6"),o=n("8682"),s=n("ce2c"),a=n("c807"),l=n("b2fc"),c=n("ac29"),u=n("5831"),h=n("3e6b"),p=n("b12f");class f{constructor(t,e,n,i="rgba(255,201,14, 1)",r="rgba(255,201,14, 0.4)"){this._map=e,this._source=null,this._vector=null,this._modify=null,this._snap=null,this._draw=null,this._callback=n,this._strokeColor=i,this._fillColor=r,this._darwType=t,this._createVectorSource(),this._createVectorLayer(),this._createDraw(),this._addLayer(),this._addInteraction(),this._drawBinDrawend()}_createVectorSource(){this._source=new u["a"]}_createVectorLayer(){this._vector=new h["a"]({source:this._source,style:new i["c"]({fill:new r["a"]({color:this._fillColor}),stroke:new o["a"]({color:this._strokeColor,width:1}),image:new s["a"]({radius:7,fill:new r["a"]({color:"#ffcc33"})})})})}_createModify(){this._modify=new a["a"]({source:this._source})}_createSnap(){this._snap=new l["a"]({source:this._source})}_createDraw(){this._draw=new c["b"]({source:this._source,type:this._darwType,geometryFunction:Object(c["a"])(),style:new i["c"]({fill:new r["a"]({color:this._fillColor}),stroke:new o["a"]({color:this._strokeColor,width:1}),image:new s["a"]({radius:7,fill:new r["a"]({color:"#ffcc33"})})})})}_addLayer(){this._map.addLayer(this._vector)}_addInteraction(){this._map.addInteraction(this._draw)}_drawBinDrawend(){this._draw.once("drawend",t=>{this._map.removeInteraction(this._draw),this._callback&&this._callback(t)},this)}remove(){this._map.removeInteraction(this._draw),this._map.removeLayer(this._vector),this._modify=null,this._draw=null,this._vector=null}removeLastPoint(){this._draw.removeLastPoint()}getCoordinates(){return this._vector.getSource().getFeatures()[0].getGeometry().getCoordinates()}getExtent(){return this._vector.getSource().getFeatures()[0].getGeometry().getExtent()}getCenterPoint(){return Object(p["getCenterPoint"])(this.getCoordinates())}getGeometry(){return this._vector&&this._vector.getSource().getFeatures()[0]?this._vector.getSource().getFeatures()[0].getGeometry():null}}},"835b":function(t,e,n){"use strict";var i=n("1300"),r=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)}}(),o=function(t){function e(e){var n=this,r="latest"===i["a"]?i["a"]:"v"+i["a"].split("-")[0],o="Assertion failed. See https://openlayers.org/en/"+r+"/doc/errors/#"+e+" for details.";return n=t.call(this,o)||this,n.code=e,n.name="AssertionError",n.message=o,n}return r(e,t),e}(Error);e["a"]=o},"83a6":function(t,e,n){"use strict";var i=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0})},t.prototype.getColor=function(){return this.color_},t.prototype.setColor=function(t){this.color_=t},t}();e["a"]=i},8682:function(t,e,n){"use strict";var i=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},t.prototype.getColor=function(){return this.color_},t.prototype.getLineCap=function(){return this.lineCap_},t.prototype.getLineDash=function(){return this.lineDash_},t.prototype.getLineDashOffset=function(){return this.lineDashOffset_},t.prototype.getLineJoin=function(){return this.lineJoin_},t.prototype.getMiterLimit=function(){return this.miterLimit_},t.prototype.getWidth=function(){return this.width_},t.prototype.setColor=function(t){this.color_=t},t.prototype.setLineCap=function(t){this.lineCap_=t},t.prototype.setLineDash=function(t){this.lineDash_=t},t.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},t.prototype.setLineJoin=function(t){this.lineJoin_=t},t.prototype.setMiterLimit=function(t){this.miterLimit_=t},t.prototype.setWidth=function(t){this.width_=t},t}();e["a"]=i},"869f":function(t,e,n){"use strict";e["a"]={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},8778:function(t,e,n){"use strict";var i=n("0ec0"),r=n("01d4"),o=n("1300"),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)}}(),a=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.extent=e,o.pixelRatio_=i,o.resolution=n,o.state=r,o}return s(e,t),e.prototype.changed=function(){this.dispatchEvent(r["a"].CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return Object(o["b"])()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){Object(o["b"])()},e}(i["a"]);e["a"]=a},"88da":function(t,e,n){"use strict";var i=n("521b"),r=n("9a44"),o=n("5bc3"),s=n("9abc"),a=n("9769"),l=n("0af5"),c=n("abb7"),u=n("9f5e"),h=n("0a9d"),p=n("bb6c"),f=n("c560"),d=n("4d98"),g=n("b589");function y(t,e,n,i){for(var r=[],o=Object(l["j"])(),s=0,a=n.length;s<a;++s){var c=n[s];o=Object(l["n"])(t,e,c[0],i),r.push((o[0]+o[2])/2,(o[1]+o[3])/2),e=c[c.length-1]}return r}var _=n("25f1"),v=n("1c48"),m=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)}}(),b=function(t){function e(e,n,i){var r=t.call(this)||this;if(r.endss_=[],r.flatInteriorPointsRevision_=-1,r.flatInteriorPoints_=null,r.maxDelta_=-1,r.maxDeltaRevision_=-1,r.orientedRevision_=-1,r.orientedFlatCoordinates_=null,!i&&!Array.isArray(e[0])){for(var o=r.getLayout(),s=e,a=[],l=[],c=0,h=s.length;c<h;++c){var p=s[c];0===c&&(o=p.getLayout());for(var f=a.length,d=p.getEnds(),g=0,y=d.length;g<y;++g)d[g]+=f;Object(u["c"])(a,p.getFlatCoordinates()),l.push(d)}n=o,e=a,i=l}return void 0!==n&&i?(r.setFlatCoordinates(n,e),r.endss_=i):r.setCoordinates(e,n),r}return m(e,t),e.prototype.appendPolygon=function(t){var e;if(this.flatCoordinates){var n=this.flatCoordinates.length;Object(u["c"])(this.flatCoordinates,t.getFlatCoordinates()),e=t.getEnds().slice();for(var i=0,r=e.length;i<r;++i)e[i]+=n}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()},e.prototype.clone=function(){for(var t=this.endss_.length,n=new Array(t),i=0;i<t;++i)n[i]=this.endss_[i].slice();var r=new e(this.flatCoordinates.slice(),this.layout,n);return r.applyProperties(this),r},e.prototype.closestPointXY=function(t,e,n,i){return i<Object(l["e"])(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(a["f"])(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(a["c"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,n,i))},e.prototype.containsXY=function(t,e){return Object(_["d"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)},e.prototype.getArea=function(){return Object(g["c"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),Object(d["d"])(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,Object(p["c"])(e,0,this.endss_,this.stride)},e.prototype.getEndss=function(){return this.endss_},e.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var t=y(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=Object(h["b"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},e.prototype.getInteriorPoints=function(){return new r["a"](this.getFlatInteriorPoints().slice(),i["a"].XYM)},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;Object(d["b"])(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Object(d["d"])(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],r=[];return n.length=Object(v["d"])(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),n,0,r),new e(n,i["a"].XY,r)},e.prototype.getPolygon=function(t){if(t<0||this.endss_.length<=t)return null;var e;if(0===t)e=0;else{var n=this.endss_[t-1];e=n[n.length-1]}var i=this.endss_[t].slice(),r=i[i.length-1];if(0!==e)for(var s=0,a=i.length;s<a;++s)i[s]-=e;return new o["a"](this.flatCoordinates.slice(e,r),this.layout,i)},e.prototype.getPolygons=function(){for(var t=this.layout,e=this.flatCoordinates,n=this.endss_,i=[],r=0,s=0,a=n.length;s<a;++s){var l=n[s].slice(),c=l[l.length-1];if(0!==r)for(var u=0,h=l.length;u<h;++u)l[u]-=r;var p=new o["a"](e.slice(r,c),t,l);i.push(p),r=c}return i},e.prototype.getType=function(){return"MultiPolygon"},e.prototype.intersectsExtent=function(t){return Object(f["e"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(c["d"])(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{var i=n[n.length-1];this.flatCoordinates.length=0===i.length?0:i[i.length-1]}this.changed()},e}(s["a"]);e["a"]=b},"8af4":function(t,e,n){"use strict";n("4822")},"8cc5":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a}));var i=n("7fc9");function r(t){return void 0!==t?0:void 0}function o(t){return void 0!==t?t:void 0}function s(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 a(t){var e=t||Object(i["l"])(5);return function(t,n){return n?t:void 0!==t?Math.abs(t)<=e?0:t:void 0}}},"8d17":function(t,e,n){"use strict";n("e653")},"8f37":function(t,e,n){"use strict";var i=n("e269"),r=n("fced"),o=n("1300"),s=n("a896"),a=n("0af5"),l=n("256f"),c=n("57cb"),u=n("bef8"),h=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)}}(),p=Object(s["c"])(),f=function(t){function e(){var e=t.call(this)||this;return e.extent_=Object(a["j"])(),e.extentRevision_=-1,e.simplifiedGeometryMaxMinSquaredTolerance=0,e.simplifiedGeometryRevision=0,e.simplifyTransformedInternal=Object(c["d"])((function(t,e,n){if(!n)return this.getSimplifiedGeometry(e);var i=this.clone();return i.applyTransform(n),i.getSimplifiedGeometry(e)})),e}return h(e,t),e.prototype.simplifyTransformed=function(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)},e.prototype.clone=function(){return Object(o["b"])()},e.prototype.closestPointXY=function(t,e,n,i){return Object(o["b"])()},e.prototype.containsXY=function(t,e){var n=this.getClosestPoint([t,e]);return n[0]===t&&n[1]===e},e.prototype.getClosestPoint=function(t,e){var n=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],n,1/0),n},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return Object(o["b"])()},e.prototype.getExtent=function(t){if(this.extentRevision_!=this.getRevision()){var e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&Object(a["l"])(e),this.extentRevision_=this.getRevision()}return Object(a["I"])(this.extent_,t)},e.prototype.rotate=function(t,e){Object(o["b"])()},e.prototype.scale=function(t,e,n){Object(o["b"])()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return Object(o["b"])()},e.prototype.getType=function(){return Object(o["b"])()},e.prototype.applyTransform=function(t){Object(o["b"])()},e.prototype.intersectsExtent=function(t){return Object(o["b"])()},e.prototype.translate=function(t,e){Object(o["b"])()},e.prototype.transform=function(t,e){var n=Object(l["h"])(t),i=n.getUnits()==r["b"].TILE_PIXELS?function(t,i,r){var o=n.getExtent(),c=n.getWorldExtent(),h=Object(a["z"])(c)/Object(a["z"])(o);return Object(s["b"])(p,c[0],c[3],h,-h,0,0,0),Object(u["c"])(t,0,t.length,r,p,i),Object(l["j"])(n,e)(t,i,r)}:Object(l["j"])(n,e);return this.applyTransform(i),this},e}(i["a"]);e["a"]=f},"91b1":function(t,e,n){"use strict";var i=n("01d4"),r=n("7f98"),o=n("2efc"),s=n("92fa"),a=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.expireCache=function(t){while(this.canExpireCache())this.pop()},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(s["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(s["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.peek=function(t){if(this.containsKey(t))return this.entries_[t].value_},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(s["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}(),l=a,c=n("2c30"),u=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=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(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=Object(c["b"])(t),n=e[0];this.forEach(function(t){t.tileCoord[0]!==n&&(this.remove(Object(c["c"])(t.tileCoord)),t.release())}.bind(this))}},e}(l),p=h,f=n("acc1"),d={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},g=n("cef7"),y=n("ff80"),_=n("1300"),v=n("256f"),m=n("089b"),b=n("345d"),O=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){var n=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX,interpolate:e.interpolate})||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];return n.tileGrid&&Object(b["c"])(n.tileGrid.getTileSize(n.tileGrid.getMinZoom()),i),n.tileCache=new p(e.cacheSize||0),n.tmpSize=[0,0],n.key_=e.key||"",n.tileOptions={transition:e.transition,interpolate:e.interpolate},n.zDirection=e.zDirection?e.zDirection:0,n}return O(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 r=this.getTileCacheForProjection(t);if(!r)return!1;for(var o,s,a,l=!0,u=n.minX;u<=n.maxX;++u)for(var h=n.minY;h<=n.maxY;++h)s=Object(c["d"])(e,u,h),a=!1,r.containsKey(s)&&(o=r.get(s),a=o.getState()===f["a"].LOADED,a&&(a=!1!==i(o))),a||(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?this.tileGrid.getResolutions():null},e.prototype.getTile=function(t,e,n,i,r){return Object(_["b"])()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:Object(m["c"])(t)},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();return Object(s["a"])(null===e||Object(v["d"])(e,t),68),this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,n){var i=this.getTileGridForProjection(n),r=this.getTilePixelRatio(e),o=Object(b["c"])(i.getTileSize(t),this.tmpSize);return 1==r?o:Object(b["b"])(o,r,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=Object(m["d"])(i,t,n)),Object(c["f"])(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}(y["a"]),w=function(t){function e(e,n){var i=t.call(this,e)||this;return i.tile=n,i}return O(e,t),e}(g["a"]),C=x,E=n("9cff"),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)}}(),P=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,interpolate:n.interpolate,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 S(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(_["c"])(n),r=n.getState();r==f["a"].LOADING?(this.tileLoadingKeys_[i]=!0,e=d.TILELOADSTART):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],e=r==f["a"].ERROR?d.TILELOADERROR:r==f["a"].LOADED?d.TILELOADEND:void 0),void 0!=e&&this.dispatchEvent(new w(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=Object(E["c"])(t);this.urls=e,this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(Object(E["a"])(t,this.tileGrid),e):this.setKey(e)},e.prototype.tileUrlFunction=function(t,e,n){},e.prototype.useTile=function(t,e,n){var i=Object(c["d"])(t,e,n);this.tileCache.containsKey(i)&&this.tileCache.get(i)},e}(C),j=P,T=n("a504"),M=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=this,i=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(i=e.interpolate),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:L,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:i,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this,n.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,n.tileClass=void 0!==e.tileClass?e.tileClass:r["a"],n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,n.renderReprojectionEdges_=!1,n}return M(e,t),e.prototype.canExpireCache=function(){if(!T["a"])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(T["a"]){var i=this.getTileCacheForProjection(e);for(var r in this.tileCache.expireCache(this.tileCache==i?n:{}),this.tileCacheForProjection){var o=this.tileCacheForProjection[r];o.expireCache(o==i?n:{})}}else t.prototype.expireCache.call(this,e,n)},e.prototype.getGutterForProjection=function(t){return T["a"]&&this.getProjection()&&t&&!Object(v["d"])(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getKey=function(){var e=t.prototype.getKey.call(this);return this.getInterpolate()||(e+=":disable-interpolation"),e},e.prototype.getOpaque=function(e){return!(T["a"]&&this.getProjection()&&e&&!Object(v["d"])(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(e){if(!T["a"])return t.prototype.getTileGridForProjection.call(this,e);var n=this.getProjection();if(!this.tileGrid||n&&!Object(v["d"])(n,e)){var i=Object(_["c"])(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=Object(m["c"])(e)),this.tileGridForProjection[i]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(e){if(!T["a"])return t.prototype.getTileCacheForProjection.call(this,e);var n=this.getProjection();if(!n||Object(v["d"])(n,e))return this.tileCache;var i=Object(_["c"])(e);return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new p(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]},e.prototype.createTile_=function(t,e,n,r,o,s){var a=[t,e,n],l=this.getTileCoordForTileUrlFunction(a,o),c=l?this.tileUrlFunction(l,r,o):void 0,u=new this.tileClass(a,void 0!==c?f["a"].IDLE:f["a"].EMPTY,void 0!==c?c:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=s,u.addEventListener(i["a"].CHANGE,this.handleTileChange.bind(this)),u},e.prototype.getTile=function(t,e,n,i,r){var s=this.getProjection();if(T["a"]&&s&&r&&!Object(v["d"])(s,r)){var a=this.getTileCacheForProjection(r),l=[t,e,n],u=void 0,h=Object(c["c"])(l);a.containsKey(h)&&(u=a.get(h));var p=this.getKey();if(u&&u.key==p)return u;var f=this.getTileGridForProjection(s),d=this.getTileGridForProjection(r),g=this.getTileCoordForTileUrlFunction(l,r),y=new o["a"](s,f,r,d,l,g,this.getTilePixelRatio(i),this.getGutter(),function(t,e,n,i){return this.getTileInternal(t,e,n,i,s)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return y.key=p,u?(y.interimTile=u,y.refreshInterimChain(),a.replace(h,y)):a.set(h,y),y}return this.getTileInternal(t,e,n,i,s||r)},e.prototype.getTileInternal=function(t,e,n,i,r){var o=null,s=Object(c["d"])(t,e,n),a=this.getKey();if(this.tileCache.containsKey(s)){if(o=this.tileCache.get(s),o.key!=a){var l=o;o=this.createTile_(t,e,n,i,r,a),l.getState()==f["a"].IDLE?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(s,o)}}else o=this.createTile_(t,e,n,i,r,a),this.tileCache.set(s,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(T["a"]&&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(T["a"]){var n=Object(v["h"])(t);if(n){var i=Object(_["c"])(n);i in this.tileGridForProjection||(this.tileGridForProjection[i]=e)}}},e}(j);function L(t,e){t.getImage().src=e}e["a"]=R},"92fa":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("835b");function r(t,e){if(!t)throw new i["a"](e)}},"960f":function(t,e,n){"use strict";n.r(e);var i=n("5eee"),r=n("a226"),o=n("480c"),s=n("9d47"),a=function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{l(i.next(t))}catch(e){o(e)}}function a(t){try{l(i["throw"](t))}catch(e){o(e)}}function l(t){t.done?n(t.value):r(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())}))};e["default"]=class{constructor(t){this._ele=null,this._mapOptians=null,this._styles=["Aerial","AerialWithLabelsOnDemand"],this._mapOptians=t}onLoad(t){return a(this,void 0,void 0,(function*(){this._ele=t;const e=this._init();return yield new Promise((n,r)=>{const o=new i["a"](Object.assign({target:t,layers:e},this._mapOptians));if(o)return o.addControl(new s["a"]),void n(o);r(null)})}))}_init(){const t=[];for(let e=0;e<this._styles.length;++e)t.push(new o["a"]({visible:!0,preload:1/0,source:new r["a"]({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:this._styles[e],culture:"zh-cn"})}));return t}}},9769:function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"f",(function(){return a})),n.d(e,"d",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return u}));var i=n("7fc9");function r(t,e,n,r,o,s,a){var l,c=t[e],u=t[e+1],h=t[n]-c,p=t[n+1]-u;if(0===h&&0===p)l=e;else{var f=((o-c)*h+(s-u)*p)/(h*h+p*p);if(f>1)l=n;else{if(f>0){for(var d=0;d<r;++d)a[d]=Object(i["e"])(t[e+d],t[n+d],f);return void(a.length=r)}l=e}}for(d=0;d<r;++d)a[d]=t[l+d];a.length=r}function o(t,e,n,r,o){var s=t[e],a=t[e+1];for(e+=r;e<n;e+=r){var l=t[e],c=t[e+1],u=Object(i["i"])(s,a,l,c);u>o&&(o=u),s=l,a=c}return o}function s(t,e,n,i,r){for(var s=0,a=n.length;s<a;++s){var l=n[s];r=o(t,e,l,i,r),e=l}return r}function a(t,e,n,i,r){for(var o=0,a=n.length;o<a;++o){var l=n[o];r=s(t,e,l,i,r),e=l[l.length-1]}return r}function l(t,e,n,o,s,a,l,c,u,h,p){if(e==n)return h;var f,d;if(0===s){if(d=Object(i["i"])(l,c,t[e],t[e+1]),d<h){for(f=0;f<o;++f)u[f]=t[e+f];return u.length=o,d}return h}var g=p||[NaN,NaN],y=e+o;while(y<n)if(r(t,y-o,y,o,l,c,g),d=Object(i["i"])(l,c,g[0],g[1]),d<h){for(h=d,f=0;f<o;++f)u[f]=g[f];u.length=o,y+=o}else y+=o*Math.max((Math.sqrt(d)-Math.sqrt(h))/s|0,1);if(a&&(r(t,n-o,e,o,l,c,g),d=Object(i["i"])(l,c,g[0],g[1]),d<h)){for(h=d,f=0;f<o;++f)u[f]=g[f];u.length=o}return h}function c(t,e,n,i,r,o,s,a,c,u,h){for(var p=h||[NaN,NaN],f=0,d=n.length;f<d;++f){var g=n[f];u=l(t,e,g,i,r,o,s,a,c,u,p),e=g}return u}function u(t,e,n,i,r,o,s,a,l,u,h){for(var p=h||[NaN,NaN],f=0,d=n.length;f<d;++f){var g=n[f];u=c(t,e,g,i,r,o,s,a,l,u,p),e=g[g.length-1]}return u}},"9a44":function(t,e,n){"use strict";var i=n("f403"),r=n("9abc"),o=n("0af5"),s=n("abb7"),a=n("9f5e"),l=n("bb6c"),c=n("7fc9"),u=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=function(t){function e(e,n){var i=t.call(this)||this;return n&&!Array.isArray(e[0])?i.setFlatCoordinates(n,e):i.setCoordinates(e,n),i}return u(e,t),e.prototype.appendPoint=function(t){this.flatCoordinates?Object(a["c"])(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,i){if(i<Object(o["e"])(this.getExtent(),t,e))return i;for(var r=this.flatCoordinates,s=this.stride,a=0,l=r.length;a<l;a+=s){var u=Object(c["i"])(t,e,r[a],r[a+1]);if(u<i){i=u;for(var h=0;h<s;++h)n[h]=r[a+h];n.length=s}}return i},e.prototype.getCoordinates=function(){return Object(l["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getPoint=function(t){var e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new i["a"](this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)},e.prototype.getPoints=function(){for(var t=this.flatCoordinates,e=this.layout,n=this.stride,r=[],o=0,s=t.length;o<s;o+=n){var a=new i["a"](t.slice(o,o+n),e);r.push(a)}return r},e.prototype.getType=function(){return"MultiPoint"},e.prototype.intersectsExtent=function(t){for(var e=this.flatCoordinates,n=this.stride,i=0,r=e.length;i<r;i+=n){var s=e[i],a=e[i+1];if(Object(o["h"])(t,s,a))return!0}return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(s["b"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(r["a"]);e["a"]=h},"9a94":function(t,e,n){"use strict";n.r(e),n.d(e,"LOverlay",(function(){return d}));var i=n("e269"),r=n("592d"),o=n("cd7e"),s=n("0af5"),a=n("1e8d"),l=n("0999"),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)}}(),u={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},h=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un,n.options=e,n.id=e.id,n.insertFirst=void 0===e.insertFirst||e.insertFirst,n.stopEvent=void 0===e.stopEvent||e.stopEvent,n.element=document.createElement("div"),n.element.className=void 0!==e.className?e.className:"ol-overlay-container "+o["d"],n.element.style.position="absolute",n.element.style.pointerEvents="auto";var i=e.autoPan;return i&&"object"!==typeof i&&(i={animation:e.autoPanAnimation,margin:e.autoPanMargin}),n.autoPan=i||!1,n.rendered={transform_:"",visible:!0},n.mapPostrenderListenerKey=null,n.addChangeListener(u.ELEMENT,n.handleElementChanged),n.addChangeListener(u.MAP,n.handleMapChanged),n.addChangeListener(u.OFFSET,n.handleOffsetChanged),n.addChangeListener(u.POSITION,n.handlePositionChanged),n.addChangeListener(u.POSITIONING,n.handlePositioningChanged),void 0!==e.element&&n.setElement(e.element),n.setOffset(void 0!==e.offset?e.offset:[0,0]),n.setPositioning(e.positioning||"top-left"),void 0!==e.position&&n.setPosition(e.position),n}return c(e,t),e.prototype.getElement=function(){return this.get(u.ELEMENT)},e.prototype.getId=function(){return this.id},e.prototype.getMap=function(){return this.get(u.MAP)||null},e.prototype.getOffset=function(){return this.get(u.OFFSET)},e.prototype.getPosition=function(){return this.get(u.POSITION)},e.prototype.getPositioning=function(){return this.get(u.POSITIONING)},e.prototype.handleElementChanged=function(){Object(l["e"])(this.element);var t=this.getElement();t&&this.element.appendChild(t)},e.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(l["f"])(this.element),Object(a["c"])(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=Object(a["a"])(t,r["a"].POSTRENDER,this.render,this),this.updatePixelPosition();var e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element),this.performAutoPan()}},e.prototype.render=function(){this.updatePixelPosition()},e.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},e.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.performAutoPan()},e.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},e.prototype.setElement=function(t){this.set(u.ELEMENT,t)},e.prototype.setMap=function(t){this.set(u.MAP,t)},e.prototype.setOffset=function(t){this.set(u.OFFSET,t)},e.prototype.setPosition=function(t){this.set(u.POSITION,t)},e.prototype.performAutoPan=function(){this.autoPan&&this.panIntoView(this.autoPan)},e.prototype.panIntoView=function(t){var e=this.getMap();if(e&&e.getTargetElement()&&this.get(u.POSITION)){var n=this.getRect(e.getTargetElement(),e.getSize()),i=this.getElement(),r=this.getRect(i,[Object(l["c"])(i),Object(l["b"])(i)]),o=t||{},a=void 0===o.margin?20:o.margin;if(!Object(s["g"])(n,r)){var c=r[0]-n[0],h=n[2]-r[2],p=r[1]-n[1],f=n[3]-r[3],d=[0,0];if(c<0?d[0]=c-a:h<0&&(d[0]=Math.abs(h)+a),p<0?d[1]=p-a:f<0&&(d[1]=Math.abs(f)+a),0!==d[0]||0!==d[1]){var g=e.getView().getCenterInternal(),y=e.getPixelFromCoordinateInternal(g);if(!y)return;var _=[y[0]+d[0],y[1]+d[1]],v=o.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(_),duration:v.duration,easing:v.easing})}}}},e.prototype.getRect=function(t,e){var n=t.getBoundingClientRect(),i=n.left+window.pageXOffset,r=n.top+window.pageYOffset;return[i,r,i+e[0],r+e[1]]},e.prototype.setPositioning=function(t){this.set(u.POSITIONING,t)},e.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},e.prototype.updatePixelPosition=function(){var t=this.getMap(),e=this.getPosition();if(t&&t.isRendered()&&e){var n=t.getPixelFromCoordinate(e),i=t.getSize();this.updateRenderedPosition(n,i)}else this.setVisible(!1)},e.prototype.updateRenderedPosition=function(t,e){var n=this.element.style,i=this.getOffset(),r=this.getPositioning();this.setVisible(!0);var o=Math.round(t[0]+i[0])+"px",s=Math.round(t[1]+i[1])+"px",a="0%",l="0%";"bottom-right"==r||"center-right"==r||"top-right"==r?a="-100%":"bottom-center"!=r&&"center-center"!=r&&"top-center"!=r||(a="-50%"),"bottom-left"==r||"bottom-center"==r||"bottom-right"==r?l="-100%":"center-left"!=r&&"center-center"!=r&&"center-right"!=r||(l="-50%");var c="translate(".concat(a,", ").concat(l,") translate(").concat(o,", ").concat(s,")");this.rendered.transform_!=c&&(this.rendered.transform_=c,n.transform=c,n.msTransform=c)},e.prototype.getOptions=function(){return this.options},e}(i["a"]),p=h,f=n("bab7");class d{constructor(){this.ele=document.createElement("div"),this._lastType=0,this.x=0,this.y=0,this._overlay=new p({positioning:"center-center",element:this.ele,stopEvent:!1}),this.setHTMLElementStyle()}setId(t){this.ele.id=t}setIndex(t=10){try{const e=this.ele.parentNode;e.style.zIndex=t}catch(e){}}setAttribute(t){const e=JSON.stringify(t);this.ele.setAttribute("data-op",e)}setOffset([t,e]){this._overlay.setOffset([t,e])}getAttribute(){var t;const e=null===(t=this.ele.dataset.op)||void 0===t?void 0:t.toString();return JSON.parse(e)}setPosition([t,e],n=0,i=!1){if(this.x=t,this.y=e,!n||i)if(i){const{lon:t,lat:e}=f["default"].gcj_decrypt(this.x,this.y);this._overlay.setPosition([t,e])}else this._overlay.setPosition([t,e]);else{const{lon:n,lat:i}=f["default"].gcj_encrypt(t,e);this._overlay.setPosition([n,i])}}getPosition(t=0){if(t){const{lon:t,lat:e}=f["default"].gcj_decrypt(this.x,this.y);return[t,e]}return[this.x,this.y]}getMarker(){return this._overlay}setText(t){this.ele.innerText=t}setHtml(t){this.ele.innerHTML=t}getId(){return this.ele.id}binEvent(t,e){this._fun=e,this.ele.addEventListener(t,this._fun,!1)}hover(t,e){t&&this.ele.addEventListener("mouseover",t,!1),e&&this.ele.addEventListener("mouseout",e,!1)}getDom(){return this.ele}show(){this.ele.style.display="block"}hide(){this.ele.style.display="none"}startDrag(t){const e=this;e.ele.style.cursor="move",t.binDraftingEvent(),e._func=function(){t.serMarkerArr(e,this.id),e._overlay.set("dragging",!0)},e.binEvent("mousedown",e._func)}stopDrag(t){this.ele.style.cursor="default",this.ele.removeEventListener("mousedown",this._func),t.removDraftingEvent()}removEvent(t){this._fun&&this.ele.removeEventListener(t,this._fun)}selectGPS(t=0){if(t){const{lon:t,lat:e}=f["default"].gcj_encrypt(this.x,this.y);this._overlay.setPosition([t,e])}else this._overlay.setPosition([this.x,this.y])}}},"9abc":function(t,e,n){"use strict";n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return p}));var i=n("8f37"),r=n("521b"),o=n("1300"),s=n("0af5"),a=n("bef8"),l=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)}}(),c=function(t){function e(){var e=t.call(this)||this;return e.layout=r["a"].XY,e.stride=2,e.flatCoordinates=null,e}return l(e,t),e.prototype.computeExtent=function(t){return Object(s["n"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return Object(o["b"])()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=this.getSimplifiedGeometryInternal(t),n=e.getFlatCoordinates();return n.length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},e.prototype.getSimplifiedGeometryInternal=function(t){return this},e.prototype.getStride=function(){return this.stride},e.prototype.setFlatCoordinates=function(t,e){this.stride=h(t),this.layout=t,this.flatCoordinates=e},e.prototype.setCoordinates=function(t,e){Object(o["b"])()},e.prototype.setLayout=function(t,e,n){var i;if(t)i=h(t);else{for(var o=0;o<n;++o){if(0===e.length)return this.layout=r["a"].XY,void(this.stride=2);e=e[0]}i=e.length,t=u(i)}this.layout=t,this.stride=i},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,e){var n=this.getFlatCoordinates();if(n){var i=this.getStride();Object(a["a"])(n,0,n.length,i,t,e,n),this.changed()}},e.prototype.scale=function(t,e,n){var i=e;void 0===i&&(i=t);var r=n;r||(r=Object(s["w"])(this.getExtent()));var o=this.getFlatCoordinates();if(o){var l=this.getStride();Object(a["b"])(o,0,o.length,l,t,i,r,o),this.changed()}},e.prototype.translate=function(t,e){var n=this.getFlatCoordinates();if(n){var i=this.getStride();Object(a["d"])(n,0,n.length,i,t,e,n),this.changed()}},e}(i["a"]);function u(t){var e;return 2==t?e=r["a"].XY:3==t?e=r["a"].XYZ:4==t&&(e=r["a"].XYZM),e}function h(t){var e;return t==r["a"].XY?e=2:t==r["a"].XYZ||t==r["a"].XYM?e=3:t==r["a"].XYZM&&(e=4),e}function p(t,e,n){var i=t.getFlatCoordinates();if(i){var r=t.getStride();return Object(a["c"])(i,0,i.length,r,e,n)}return null}e["a"]=c},"9b10":function(t,e,n){"use strict";n.r(e);var i=n("a226"),r=n("480c");e["default"]=class{constructor(){this._layers=[],this._init()}_getRoad(){return new r["a"]({visible:!0,preload:1/0,zIndex:-10,source:new i["a"]({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:"Road",culture:"zh-cn"})})}_Aerial(){return new r["a"]({visible:!0,preload:1/0,zIndex:-10,source:new i["a"]({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:"Aerial",culture:"zh-cn"})})}_AerialWithLabelsOnDemand(){return new r["a"]({visible:!0,preload:1/0,zIndex:-10,source:new i["a"]({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:"AerialWithLabelsOnDemand",culture:"zh-cn"})})}_init(){this._layers.push([this._getRoad()]);const t=this._Aerial();this._layers.push([t]),this._layers.push([t,this._AerialWithLabelsOnDemand()])}get layers(){return this._layers}}},"9cff":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return c}));var i=n("92fa"),r=n("7fc9"),o=n("2c30");function s(t,e){var n=/\{z\}/g,r=/\{x\}/g,o=/\{y\}/g,s=/\{-y\}/g;return function(a,l,c){return a?t.replace(n,a[0].toString()).replace(r,a[1].toString()).replace(o,a[2].toString()).replace(s,(function(){var t=a[0],n=e.getFullTileRange(t);Object(i["a"])(n,55);var r=n.getHeight()-a[2]-1;return r.toString()})):void 0}}function a(t,e){for(var n=t.length,i=new Array(n),r=0;r<n;++r)i[r]=s(t[r],e);return l(i)}function l(t){return 1===t.length?t[0]:function(e,n,i){if(e){var s=Object(o["e"])(e),a=Object(r["g"])(s,t.length);return t[a](e,n,i)}}}function c(t){var e=[],n=/\{([a-z])-([a-z])\}/.exec(t);if(n){var i=n[1].charCodeAt(0),r=n[2].charCodeAt(0),o=void 0;for(o=i;o<=r;++o)e.push(t.replace(n[0],String.fromCharCode(o)));return e}if(n=/\{(\d+)-(\d+)\}/.exec(t),n){for(var s=parseInt(n[2],10),a=parseInt(n[1],10);a<=s;a++)e.push(t.replace(n[0],a.toString()));return e}return e.push(t),e}},"9d47":function(t,e,n){"use strict";var i=n("3900"),r=n("fced"),o=n("cd7e"),s=n("256f"),a=n("92fa"),l=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)}}(),c="units",u={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},h=[1,2,5],p=25.4/.28,f=function(t){function e(e){var n=this,i=e||{},r=void 0!==i.className?i.className:i.bar?"ol-scale-bar":"ol-scale-line";return n=t.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this,n.on,n.once,n.un,n.innerElement_=document.createElement("div"),n.innerElement_.className=r+"-inner",n.element.className=r+" "+o["e"],n.element.appendChild(n.innerElement_),n.viewState_=null,n.minWidth_=void 0!==i.minWidth?i.minWidth:64,n.maxWidth_=i.maxWidth,n.renderedVisible_=!1,n.renderedWidth_=void 0,n.renderedHTML_="",n.addChangeListener(c,n.handleUnitsChanged_),n.setUnits(i.units||u.METRIC),n.scaleBar_=i.bar||!1,n.scaleBarSteps_=i.steps||4,n.scaleBarText_=i.text||!1,n.dpi_=i.dpi||void 0,n}return l(e,t),e.prototype.getUnits=function(){return this.get(c)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set(c,t)},e.prototype.setDpi=function(t){this.dpi_=t},e.prototype.updateElement_=function(){var t=this.viewState_;if(t){var e=t.center,n=t.projection,i=this.getUnits(),o=i==u.DEGREES?r["b"].DEGREES:r["b"].METERS,l=Object(s["i"])(n,t.resolution,e,o),c=this.minWidth_*(this.dpi_||p)/p,f=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||p)/p:void 0,d=c*l,g="";if(i==u.DEGREES){var y=s["a"][r["b"].DEGREES];d*=y,d<y/60?(g="″",l*=3600):d<y?(g="′",l*=60):g="°"}else i==u.IMPERIAL?d<.9144?(g="in",l/=.0254):d<1609.344?(g="ft",l/=.3048):(g="mi",l/=1609.344):i==u.NAUTICAL?(l/=1852,g="NM"):i==u.METRIC?d<.001?(g="μm",l*=1e6):d<1?(g="mm",l*=1e3):d<1e3?g="m":(g="km",l/=1e3):i==u.US?d<.9144?(g="in",l*=39.37):d<1609.344?(g="ft",l/=.30480061):(g="mi",l/=1609.3472):Object(a["a"])(!1,33);var _,v,m,b,O,x,w,C=3*Math.floor(Math.log(c*l)/Math.log(10));while(1){m=Math.floor(C/3);var E=Math.pow(10,m);if(_=h[(C%3+3)%3]*E,v=Math.round(_/l),isNaN(v))return this.element.style.display="none",void(this.renderedVisible_=!1);if(void 0!==f&&v>=f){_=b,v=O,m=x;break}if(v>=c)break;b=_,O=v,x=m,++C}w=this.scaleBar_?this.createScaleBar(v,_,g):_.toFixed(m<0?-m:0)+" "+g,this.renderedHTML_!=w&&(this.innerElement_.innerHTML=w,this.renderedHTML_=w),this.renderedWidth_!=v&&(this.innerElement_.style.width=v+"px",this.renderedWidth_=v),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.createScaleBar=function(t,e,n){for(var i,r="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),o=[],s=t/this.scaleBarSteps_,a="ol-scale-singlebar-odd",l=0;l<this.scaleBarSteps_;l++)0===l&&o.push(this.createMarker("absolute",l)),o.push('<div><div class="ol-scale-singlebar '+a+'" style="width: '+s+'px;"></div>'+this.createMarker("relative",l)+(l%2===0||2===this.scaleBarSteps_?this.createStepText(l,t,!1,e,n):"")+"</div>"),l===this.scaleBarSteps_-1&&o.push(this.createStepText(l+1,t,!0,e,n)),a="ol-scale-singlebar-odd"===a?"ol-scale-singlebar-even":"ol-scale-singlebar-odd";i=this.scaleBarText_?'<div class="ol-scale-text" style="width: '+t+'px;">'+r+"</div>":"";var c='<div style="display: flex;">'+i+o.join("")+"</div>";return c},e.prototype.createMarker=function(t,e){var n="absolute"===t?3:-10;return'<div class="ol-scale-step-marker" style="position: '+t+";top: "+n+'px;"></div>'},e.prototype.createStepText=function(t,e,n,i,r){var o=0===t?0:Math.round(i/this.scaleBarSteps_*t*100)/100,s=o+(0===t?"":" "+r),a=0===t?-3:e/this.scaleBarSteps_*-1,l=0===t?0:e/this.scaleBarSteps_*2;return'<div class="ol-scale-step-text" style="margin-left: '+a+"px;text-align: "+(0===t?"left":"center")+"; min-width: "+l+"px;left: "+(n?e+"px":"unset")+';">'+s+"</div>"},e.prototype.getScaleForResolution=function(){var t=Object(s["i"])(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,r["b"].METERS),e=this.dpi_||p,n=1e3/25.4;return parseFloat(t.toString())*n*e},e.prototype.render=function(t){var e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()},e}(i["a"]);e["a"]=f},"9f5e":function(t,e,n){"use strict";function i(t,e,n){var i,o,s=n||r,a=0,l=t.length,c=!1;while(a<l)i=a+(l-a>>1),o=+s(t[i],e),o<0?a=i+1:(l=i,c=!o);return c?a:~a}function r(t,e){return t>e?1:t<e?-1:0}function o(t,e){return t.indexOf(e)>=0}function s(t,e,n){var i=t.length;if(t[0]<=e)return 0;if(e<=t[i-1])return i-1;var r=void 0;if(n>0){for(r=1;r<i;++r)if(t[r]<e)return r-1}else if(n<0){for(r=1;r<i;++r)if(t[r]<=e)return r}else for(r=1;r<i;++r){if(t[r]==e)return r;if(t[r]<e)return"function"===typeof n?n(e,t[r-1],t[r])>0?r-1:r:t[r-1]-e<e-t[r]?r-1:r}return i-1}function a(t,e,n){while(e<n){var i=t[e];t[e]=t[n],t[n]=i,++e,--n}}function l(t,e){for(var n=Array.isArray(e)?e:[e],i=n.length,r=0;r<i;r++)t[t.length]=n[r]}function c(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function u(t,e,n){var i=e||r;return t.every((function(e,r){if(0===r)return!0;var o=i(t[r-1],e);return!(o>0||n&&0===o)}))}n.d(e,"a",(function(){return i})),n.d(e,"g",(function(){return r})),n.d(e,"d",(function(){return o})),n.d(e,"f",(function(){return s})),n.d(e,"h",(function(){return a})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"e",(function(){return u}))},a226:function(t,e,n){"use strict";var i=n("91b1"),r=n("0af5"),o=n("9cff"),s=n("2c30"),a=n("089b"),l=n("256f"),c=n("e4e0"),u=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 h(t){var e,n,i=t[0],r=new Array(i),o=1<<i-1;for(e=0;e<i;++e)n=48,t[1]&o&&(n+=1),t[2]&o&&(n+=2),r[e]=String.fromCharCode(n),o>>=1;return r.join("")}var p='<a class="ol-attribution-bing-tos" href="https://www.microsoft.com/maps/product/terms.html" target="_blank">Terms of Use</a>',f=function(t){function e(e){var n=this,i=void 0!==e.hidpi&&e.hidpi,r=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(r=e.interpolate),n=t.call(this,{cacheSize:e.cacheSize,crossOrigin:"anonymous",interpolate:r,opaque:!0,projection:Object(l["h"])("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,tilePixelRatio:i?2:1,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:e.zDirection})||this,n.hidpi_=i,n.culture_=void 0!==e.culture?e.culture:"en-us",n.maxZoom_=void 0!==e.maxZoom?e.maxZoom:-1,n.apiKey_=e.key,n.imagerySet_=e.imagerySet;var o="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+n.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+n.apiKey_+"&c="+n.culture_;return Object(c["a"])(o,n.handleImageryMetadataResponse.bind(n),void 0,"jsonp"),n}return u(e,t),e.prototype.getApiKey=function(){return this.apiKey_},e.prototype.getImagerySet=function(){return this.imagerySet_},e.prototype.handleImageryMetadataResponse=function(t){if(200==t.statusCode&&"OK"==t.statusDescription&&"ValidCredentials"==t.authenticationResultCode&&1==t.resourceSets.length&&1==t.resourceSets[0].resources.length){var e=t.resourceSets[0].resources[0],n=-1==this.maxZoom_?e.zoomMax:this.maxZoom_,i=this.getProjection(),c=Object(a["b"])(i),u=this.hidpi_?2:1,f=e.imageWidth==e.imageHeight?e.imageWidth/u:[e.imageWidth/u,e.imageHeight/u],d=Object(a["a"])({extent:c,minZoom:e.zoomMin,maxZoom:n,tileSize:f});this.tileGrid=d;var g=this.culture_,y=this.hidpi_;if(this.tileUrlFunction=Object(o["b"])(e.imageUrlSubdomains.map((function(t){var n=[0,0,0],i=e.imageUrl.replace("{subdomain}",t).replace("{culture}",g);return function(t,e,r){if(t){Object(s["a"])(t[0],t[1],t[2],n);var o=i;return y&&(o+="&dpi=d1&device=mobile"),o.replace("{quadkey}",h(n))}}}))),e.imageryProviders){var _=Object(l["k"])(Object(l["h"])("EPSG:4326"),this.getProjection());this.setAttributions(function(t){var n=[],i=t.viewState,o=this.getTileGrid(),s=o.getZForResolution(i.resolution,this.zDirection),a=o.getTileCoordForCoordAndZ(i.center,s),l=a[0];return e.imageryProviders.map((function(e){for(var i=!1,o=e.coverageAreas,s=0,a=o.length;s<a;++s){var c=o[s];if(l>=c.zoomMin&&l<=c.zoomMax){var u=c.bbox,h=[u[1],u[0],u[3],u[2]],p=Object(r["a"])(h,_);if(Object(r["F"])(p,t.extent)){i=!0;break}}}i&&n.push(e.attribution)})),n.push(p),n}.bind(this))}this.setState("ready")}else this.setState("error")},e}(i["a"]);e["a"]=f},a2c7:function(t,e,n){"use strict";var i=n("e269"),r=n("fced"),o=n("496f"),s={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},a=n("0414"),l=n("256f"),c=n("57cb"),u=n("a568"),h=n("92fa"),p=n("38f3"),f=n("7fc9");function d(t,e,n){return function(i,r,o,s,a){if(i){if(!r&&!e)return i;var l=e?0:o[0]*r,c=e?0:o[1]*r,u=a?a[0]:0,h=a?a[1]:0,p=t[0]+l/2+u,d=t[2]-l/2+u,g=t[1]+c/2+h,y=t[3]-c/2+h;p>d&&(p=(d+p)/2,d=p),g>y&&(g=(y+g)/2,y=g);var _=Object(f["b"])(i[0],p,d),v=Object(f["b"])(i[1],g,y);if(s&&n&&r){var m=30*r;_+=-m*Math.log(1+Math.max(0,p-i[0])/m)+m*Math.log(1+Math.max(0,i[0]-d)/m),v+=-m*Math.log(1+Math.max(0,g-i[1])/m)+m*Math.log(1+Math.max(0,i[1]-y)/m)}return[_,v]}}}function g(t){return t}var y=n("0af5"),_=n("9f5e");function v(t,e,n,i){var r=Object(y["E"])(e)/n[0],o=Object(y["z"])(e)/n[1];return i?Math.min(t,Math.max(r,o)):Math.min(t,Math.min(r,o))}function m(t,e,n){var i=Math.min(t,e),r=50;return i*=Math.log(1+r*Math.max(0,t/e-1))/r+1,n&&(i=Math.max(i,n),i/=Math.log(1+r*Math.max(0,n/t-1))/r+1),Object(f["b"])(i,n/2,2*e)}function b(t,e,n,i){return function(r,o,s,a){if(void 0!==r){var l=t[0],c=t[t.length-1],u=n?v(l,n,s,i):l;if(a){var h=void 0===e||e;return h?m(r,u,c):Object(f["b"])(r,c,u)}var p=Math.min(u,r),d=Math.floor(Object(_["f"])(t,p,o));return t[d]>u&&d<t.length-1?t[d+1]:t[d]}}}function O(t,e,n,i,r,o){return function(s,a,l,c){if(void 0!==s){var u=r?v(e,r,l,o):e,h=void 0!==n?n:0;if(c){var p=void 0===i||i;return p?m(s,u,h):Object(f["b"])(s,h,u)}var d=1e-9,g=Math.ceil(Math.log(e/u)/Math.log(t)-d),y=-a*(.5-d)+.5,_=Math.min(u,s),b=Math.floor(Math.log(e/_)/Math.log(t)+y),O=Math.max(g,b),x=e/Math.pow(t,O);return Object(f["b"])(x,h,u)}}}function x(t,e,n,i,r){return function(o,s,a,l){if(void 0!==o){var c=i?v(t,i,a,r):t,u=void 0===n||n;return u&&l?m(o,c,e):Object(f["b"])(o,e,c)}}}var w=n("8cc5"),C=n("ca42"),E=n("5bc3"),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)}}(),P=0,j=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var i=Object(p["a"])({},e);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=Object(l["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.projection&&Object(l["c"])(),i.center&&(i.center=Object(l["e"])(i.center,n.projection_)),i.extent&&(i.extent=Object(l["f"])(i.extent,n.projection_)),n.applyOptions_(i),n}return S(e,t),e.prototype.applyOptions_=function(t){var e=Object(p["a"])({},t);for(var n in s)delete e[n];this.setProperties(e,!0);var i=R(t);this.maxResolution_=i.maxResolution,this.minResolution_=i.minResolution,this.zoomFactor_=i.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=i.minZoom;var r=M(t),o=i.constraint,a=L(t);this.constraints_={center:r,resolution:o,rotation:a},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)},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 r=this.getResolution(),o=r/2*(i[3]-e[3]+e[1]-i[1]),s=r/2*(i[0]-e[0]+e[2]-i[2]);this.setCenterInternal([n[0]+o,n[1]-s])}},enumerable:!1,configurable:!0}),e.prototype.getUpdatedOptions_=function(t){var e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object(p["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(p["a"])({},i),i.center=Object(l["e"])(i.center,this.getProjection())),i.anchor&&(i=Object(p["a"])({},i),i.anchor=Object(l["e"])(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 r=arguments[i];r.center&&this.setCenterInternal(r.center),void 0!==r.zoom?this.setZoom(r.zoom):r.resolution&&this.setResolution(r.resolution),void 0!==r.rotation&&this.setRotation(r.rotation)}if(i!==n){for(var s=Date.now(),a=this.targetCenter_.slice(),l=this.targetResolution_,c=this.targetRotation_,u=[];i<n;++i){var h=arguments[i],p={start:s,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||C["c"],callback:e};if(h.center&&(p.sourceCenter=a,p.targetCenter=h.center.slice(),a=p.targetCenter),void 0!==h.zoom?(p.sourceResolution=l,p.targetResolution=this.getResolutionForZoom(h.zoom),l=p.targetResolution):h.resolution&&(p.sourceResolution=l,p.targetResolution=h.resolution,l=p.targetResolution),void 0!==h.rotation){p.sourceRotation=c;var d=Object(f["g"])(h.rotation-c+Math.PI,2*Math.PI)-Math.PI;p.targetRotation=c+d,c=p.targetRotation}A(p)?p.complete=!0:s+=p.duration,u.push(p)}this.animations_.push(u),this.setHint(o["a"].ANIMATING,1),this.updateAnimations_()}else e&&T(e,!0)},e.prototype.getAnimating=function(){return this.hints_[o["a"].ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[o["a"].INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint(o["a"].ANIMATING,-this.hints_[o["a"].ANIMATING]);for(var e=0,n=this.animations_.length;e<n;++e){var i=this.animations_[e];if(i[0].callback&&T(i[0].callback,!1),!t)for(var r=0,s=i.length;r<s;++r){var a=i[r];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],r=!0,s=0,a=i.length;s<a;++s){var l=i[s];if(!l.complete){var c=t-l.start,u=l.duration>0?c/l.duration:1;u>=1?(l.complete=!0,u=1):r=!1;var h=l.easing(u);if(l.sourceCenter){var p=l.sourceCenter[0],d=l.sourceCenter[1],g=l.targetCenter[0],y=l.targetCenter[1];this.nextCenter_=l.targetCenter;var _=p+h*(g-p),v=d+h*(y-d);this.targetCenter_=[_,v]}if(l.sourceResolution&&l.targetResolution){var m=1===h?l.targetResolution:l.sourceResolution+h*(l.targetResolution-l.sourceResolution);if(l.anchor){var b=this.getViewportSize_(this.getRotation()),O=this.constraints_.resolution(m,0,b,!0);this.targetCenter_=this.calculateCenterZoom(O,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=m,this.applyTargetState_(!0)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var x=1===h?Object(f["g"])(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+h*(l.targetRotation-l.sourceRotation);if(l.anchor){var w=this.constraints_.rotation(x,!0);this.targetCenter_=this.calculateCenterRotate(w,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=x}if(this.applyTargetState_(!0),e=!0,!l.complete)break}}if(r){this.animations_[n]=null,this.setHint(o["a"].ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var C=i[0].callback;C&&T(C,!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(u["g"])(n,t-this.getRotation()),Object(u["a"])(n,e)),n},e.prototype.calculateCenterZoom=function(t,e){var n,i=this.getCenterInternal(),r=this.getResolution();if(void 0!==i&&void 0!==r){var o=e[0]-t*(e[0]-i[0])/r,s=e[1]-t*(e[1]-i[1])/r;n=[o,s]}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(l["m"])(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(s.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("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(l["n"])(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSizeMinusPadding_(),n=this.getCenterInternal();Object(h["a"])(n,1);var i=this.getResolution();Object(h["a"])(void 0!==i,2);var r=this.getRotation();return Object(h["a"])(void 0!==r,3),Object(y["y"])(n,i,r,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(s.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal(Object(l["f"])(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var n=e||this.getViewportSizeMinusPadding_(),i=Object(y["E"])(t)/n[0],r=Object(y["z"])(t)/n[1];return Math.max(i,r)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,r=Math.log(n/i)/Math.log(e);return function(t){var i=n/Math.pow(e,t*r);return i}},e.prototype.getRotation=function(){return this.get(s.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,r=Math.log(n/i)/e;return function(t){var i=Math.log(n/t)/e/r;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(),r=this.padding_;if(r){var o=this.getViewportSizeMinusPadding_();i=I(i,this.getViewportSize_(),[o[0]/2+r[3],o[1]/2+r[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 r=Object(_["f"])(this.resolutions_,t,1);i=r,e=this.resolutions_[r],n=r==this.resolutions_.length-1?2:e/this.resolutions_[r+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(f["b"])(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,Object(f["b"])(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var n;if(Object(h["a"])(Array.isArray(t)||"function"===typeof t.getSimplifiedGeometry,24),Array.isArray(t)){Object(h["a"])(!Object(y["H"])(t),25);var i=Object(l["f"])(t,this.getProjection());n=Object(E["c"])(i)}else if("Circle"===t.getType()){i=Object(l["f"])(t.getExtent(),this.getProjection());n=Object(E["c"])(i),n.rotate(this.getRotation(),Object(y["w"])(i))}else{var r=Object(l["l"])();n=r?t.clone().transform(r,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),r=t.getFlatCoordinates(),o=t.getStride(),s=1/0,a=1/0,l=-1/0,c=-1/0,u=0,h=r.length;u<h;u+=o){var p=r[u]*n-r[u+1]*i,f=r[u]*i+r[u+1]*n;s=Math.min(s,p),a=Math.min(a,f),l=Math.max(l,p),c=Math.max(c,f)}return[s,a,l,c]},e.prototype.fitInternal=function(t,e){var n=e||{},i=n.size;i||(i=this.getViewportSizeMinusPadding_());var r,o=void 0!==n.padding?n.padding:[0,0,0,0],s=void 0!==n.nearest&&n.nearest;r=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;var a=this.rotatedExtentForGeometry(t),l=this.getResolutionForExtentInternal(a,[i[0]-o[1]-o[3],i[1]-o[0]-o[2]]);l=isNaN(l)?r:Math.max(l,r),l=this.getConstrainedResolution(l,s?0:1);var u=this.getRotation(),h=Math.sin(u),p=Math.cos(u),f=Object(y["w"])(a);f[0]+=(o[1]-o[3])/2*l,f[1]+=(o[0]-o[2])/2*l;var d=f[0]*p-f[1]*h,g=f[1]*p+f[0]*h,_=this.getConstrainedCenter([d,g],l),v=n.callback?n.callback:c["c"];void 0!==n.duration?this.animateInternal({resolution:l,center:_,duration:n.duration,easing:n.easing},v):(this.targetResolution_=l,this.targetCenter_=_,this.applyTargetState_(!1,!0),T(v,!0))},e.prototype.centerOn=function(t,e,n){this.centerOnInternal(Object(l["e"])(t,this.getProjection()),e,n)},e.prototype.centerOnInternal=function(t,e,n){this.setCenterInternal(I(t,e,n,this.getResolution(),this.getRotation()))},e.prototype.calculateCenterShift=function(t,e,n,i){var r,o=this.padding_;if(o&&t){var s=this.getViewportSizeMinusPadding_(-n),a=I(t,i,[s[0]/2+o[3],s[1]/2+o[0]],e,n);r=[t[0]-a[0],t[1]-a[1]]}return r},e.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},e.prototype.adjustCenter=function(t){var e=Object(l["m"])(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(l["e"])(e,this.getProjection());this.adjustResolutionInternal(t,n)},e.prototype.adjustResolutionInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),i=this.getViewportSize_(this.getRotation()),r=this.constraints_.resolution(this.targetResolution_*t,0,i,n);e&&(this.targetCenter_=this.calculateCenterZoom(r,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(l["e"])(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(t?Object(l["e"])(t,this.getProjection()):t)},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),r=this.getViewportSize_(i),o=this.constraints_.resolution(this.targetResolution_,0,r,n),a=this.constraints_.center(this.targetCenter_,o,r,n,this.calculateCenterShift(this.targetCenter_,o,i,r));this.get(s.ROTATION)!==i&&this.set(s.ROTATION,i),this.get(s.RESOLUTION)!==o&&(this.set(s.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),a&&this.get(s.CENTER)&&Object(u["e"])(this.get(s.CENTER),a)||this.set(s.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,r=e||0,o=this.constraints_.rotation(this.targetRotation_),s=this.getViewportSize_(o),a=this.constraints_.resolution(this.targetResolution_,r,s),l=this.constraints_.center(this.targetCenter_,a,s,!1,this.calculateCenterShift(this.targetCenter_,a,o,s));if(0===i&&!this.cancelAnchor_)return this.targetResolution_=a,this.targetRotation_=o,this.targetCenter_=l,void this.applyTargetState_();var c=n||(0===i?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===a&&this.getRotation()===o&&this.getCenterInternal()&&Object(u["e"])(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:l,resolution:a,duration:i,easing:C["b"],anchor:c}))},e.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(o["a"].INTERACTING,1)},e.prototype.endInteraction=function(t,e,n){var i=n&&Object(l["e"])(n,this.getProjection());this.endInteractionInternal(t,e,i)},e.prototype.endInteractionInternal=function(t,e,n){this.setHint(o["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}(i["a"]);function T(t,e){setTimeout((function(){t(e)}),0)}function M(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return d(t.extent,t.constrainOnlyCenter,e)}var n=Object(l["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,d(i,!1,!1)}return g}function R(t){var e,n,i,o=28,s=2,c=void 0!==t.minZoom?t.minZoom:P,u=void 0!==t.maxZoom?t.maxZoom:o,h=void 0!==t.zoomFactor?t.zoomFactor:s,p=void 0!==t.multiWorld&&t.multiWorld,f=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,d=void 0!==t.showFullExtent&&t.showFullExtent,g=Object(l["b"])(t.projection,"EPSG:3857"),_=g.getExtent(),v=t.constrainOnlyCenter,m=t.extent;if(p||m||!g.isGlobal()||(v=!1,m=_),void 0!==t.resolutions){var w=t.resolutions;n=w[c],i=void 0!==w[u]?w[u]:w[w.length-1],e=t.constrainResolution?b(w,f,!v&&m,d):x(n,i,f,!v&&m,d)}else{var C=_?Math.max(Object(y["E"])(_),Object(y["z"])(_)):360*l["a"][r["b"].DEGREES]/g.getMetersPerUnit(),E=C/a["b"]/Math.pow(s,P),S=E/Math.pow(s,o-P);n=t.maxResolution,void 0!==n?c=0:n=E/Math.pow(h,c),i=t.minResolution,void 0===i&&(i=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(h,u):E/Math.pow(h,u):S),u=c+Math.floor(Math.log(n/i)/Math.log(h)),i=n/Math.pow(h,u-c),e=t.constrainResolution?O(h,n,i,f,!v&&m,d):x(n,i,f,!v&&m,d)}return{constraint:e,maxResolution:n,minResolution:i,minZoom:c,zoomFactor:h}}function L(t){var e=void 0===t.enableRotation||t.enableRotation;if(e){var n=t.constrainRotation;return void 0===n||!0===n?Object(w["b"])():!1===n?w["d"]:"number"===typeof n?Object(w["a"])(n):w["d"]}return w["c"]}function A(t){return!(t.sourceCenter&&t.targetCenter&&!Object(u["e"])(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}function I(t,e,n,i,r){var o=Math.cos(-r),s=Math.sin(-r),a=t[0]*o-t[1]*s,l=t[1]*o+t[0]*s;a+=(e[0]/2-n[0])*i,l+=(n[1]-e[1]/2)*i,s=-s;var c=a*o-l*s,u=l*o+a*s;return[c,u]}e["a"]=j},a2e1:function(t,e,n){"use strict";var i=n("4cdf"),r=n("01d4"),o=n("8f37"),s=n("0af5"),a=n("1e8d"),l=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)}}(),c=function(t){function e(e){var n=t.call(this)||this;return n.geometries_=e||null,n.changeEventsKeys_=[],n.listenGeometriesChange_(),n}return l(e,t),e.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(a["c"]),this.changeEventsKeys_.length=0},e.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t<e;++t)this.changeEventsKeys_.push(Object(a["a"])(this.geometries_[t],r["a"].CHANGE,this.changed,this))},e.prototype.clone=function(){var t=new e(null);return t.setGeometries(this.geometries_),t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,i){if(i<Object(s["e"])(this.getExtent(),t,e))return i;for(var r=this.geometries_,o=0,a=r.length;o<a;++o)i=r[o].closestPointXY(t,e,n,i);return i},e.prototype.containsXY=function(t,e){for(var n=this.geometries_,i=0,r=n.length;i<r;++i)if(n[i].containsXY(t,e))return!0;return!1},e.prototype.computeExtent=function(t){Object(s["l"])(t);for(var e=this.geometries_,n=0,i=e.length;n<i;++n)Object(s["p"])(t,e[n].getExtent());return t},e.prototype.getGeometries=function(){return u(this.geometries_)},e.prototype.getGeometriesArray=function(){return this.geometries_},e.prototype.getGeometriesArrayRecursive=function(){for(var t=[],e=this.geometries_,n=0,i=e.length;n<i;++n)e[n].getType()===this.getType()?t=t.concat(e[n].getGeometriesArrayRecursive()):t.push(e[n]);return t},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var n=[],i=this.geometries_,r=!1,o=0,s=i.length;o<s;++o){var a=i[o],l=a.getSimplifiedGeometry(t);n.push(l),l!==a&&(r=!0)}if(r){var c=new e(null);return c.setGeometriesArray(n),c}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this},e.prototype.getType=function(){return"GeometryCollection"},e.prototype.intersectsExtent=function(t){for(var e=this.geometries_,n=0,i=e.length;n<i;++n)if(e[n].intersectsExtent(t))return!0;return!1},e.prototype.isEmpty=function(){return 0===this.geometries_.length},e.prototype.rotate=function(t,e){for(var n=this.geometries_,i=0,r=n.length;i<r;++i)n[i].rotate(t,e);this.changed()},e.prototype.scale=function(t,e,n){var i=n;i||(i=Object(s["w"])(this.getExtent()));for(var r=this.geometries_,o=0,a=r.length;o<a;++o)r[o].scale(t,e,i);this.changed()},e.prototype.setGeometries=function(t){this.setGeometriesArray(u(t))},e.prototype.setGeometriesArray=function(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()},e.prototype.applyTransform=function(t){for(var e=this.geometries_,n=0,i=e.length;n<i;++n)e[n].applyTransform(t);this.changed()},e.prototype.translate=function(t,e){for(var n=this.geometries_,i=0,r=n.length;i<r;++i)n[i].translate(t,e);this.changed()},e.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),t.prototype.disposeInternal.call(this)},e}(o["a"]);function u(t){for(var e=[],n=0,i=t.length;n<i;++n)e.push(t[n].clone());return e}var h=c,p=n("fced"),f=n("1300"),d=n("38f3"),g=n("256f"),y=function(){function t(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}return t.prototype.getReadOptions=function(t,e){var n;if(e){var i=e.dataProjection?Object(g["h"])(e.dataProjection):this.readProjection(t);e.extent&&i&&i.getUnits()===p["b"].TILE_PIXELS&&(i=Object(g["h"])(i),i.setWorldExtent(e.extent)),n={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(n)},t.prototype.adaptOptions=function(t){return Object(d["a"])({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},t.prototype.getType=function(){return Object(f["b"])()},t.prototype.readFeature=function(t,e){return Object(f["b"])()},t.prototype.readFeatures=function(t,e){return Object(f["b"])()},t.prototype.readGeometry=function(t,e){return Object(f["b"])()},t.prototype.readProjection=function(t){return Object(f["b"])()},t.prototype.writeFeature=function(t,e){return Object(f["b"])()},t.prototype.writeFeatures=function(t,e){return Object(f["b"])()},t.prototype.writeGeometry=function(t,e){return Object(f["b"])()},t}(),_=y;function v(t,e,n){var i,r=n?Object(g["h"])(n.featureProjection):null,o=n?Object(g["h"])(n.dataProjection):null;if(i=r&&o&&!Object(g["d"])(r,o)?(e?t.clone():t).transform(e?r:o,e?o:r):t,e&&n&&void 0!==n.decimals){var s=Math.pow(10,n.decimals),a=function(t){for(var e=0,n=t.length;e<n;++e)t[e]=Math.round(t[e]*s)/s;return t};i===t&&(i=t.clone()),i.applyTransform(a)}return i}var m=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)}}(),b=function(t){function e(){return t.call(this)||this}return m(e,t),e.prototype.getType=function(){return"json"},e.prototype.readFeature=function(t,e){return this.readFeatureFromObject(O(t),this.getReadOptions(t,e))},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(O(t),this.getReadOptions(t,e))},e.prototype.readFeatureFromObject=function(t,e){return Object(f["b"])()},e.prototype.readFeaturesFromObject=function(t,e){return Object(f["b"])()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(O(t),this.getReadOptions(t,e))},e.prototype.readGeometryFromObject=function(t,e){return Object(f["b"])()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(O(t))},e.prototype.readProjectionFromObject=function(t){return Object(f["b"])()},e.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},e.prototype.writeFeatureObject=function(t,e){return Object(f["b"])()},e.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},e.prototype.writeFeaturesObject=function(t,e){return Object(f["b"])()},e.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},e.prototype.writeGeometryObject=function(t,e){return Object(f["b"])()},e}(_);function O(t){if("string"===typeof t){var e=JSON.parse(t);return e||null}return null!==t?t:null}var x=b,w=n("7a09"),C=n("47e4"),E=n("9a44"),S=n("88da"),P=n("f403"),j=n("5bc3"),T=n("92fa"),M=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=this,i=e||{};return n=t.call(this)||this,n.dataProjection=Object(g["h"])(i.dataProjection?i.dataProjection:"EPSG:4326"),i.featureProjection&&(n.defaultFeatureProjection=Object(g["h"])(i.featureProjection)),n.geometryName_=i.geometryName,n.extractGeometryName_=i.extractGeometryName,n.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],n}return M(e,t),e.prototype.readFeatureFromObject=function(t,e){var n=null;n="Feature"===t["type"]?t:{type:"Feature",geometry:t,properties:null};var r=L(n["geometry"],e),o=new i["a"];return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in n!==void 0&&o.setGeometryName(n["geometry_name"]),o.setGeometry(r),"id"in n&&o.setId(n["id"]),n["properties"]&&o.setProperties(n["properties"],!0),o},e.prototype.readFeaturesFromObject=function(t,e){var n=t,i=null;if("FeatureCollection"===n["type"]){var r=t;i=[];for(var o=r["features"],s=0,a=o.length;s<a;++s)i.push(this.readFeatureFromObject(o[s],e))}else i=[this.readFeatureFromObject(t,e)];return i},e.prototype.readGeometryFromObject=function(t,e){return L(t,e)},e.prototype.readProjectionFromObject=function(t){var e,n=t["crs"];return n?"name"==n["type"]?e=Object(g["h"])(n["properties"]["name"]):"EPSG"===n["type"]?e=Object(g["h"])("EPSG:"+n["properties"]["code"]):Object(T["a"])(!1,36):e=this.dataProjection,e},e.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var n={type:"Feature",geometry:null,properties:null},i=t.getId();if(void 0!==i&&(n.id=i),!t.hasProperties())return n;var r=t.getProperties(),o=t.getGeometry();return o&&(n.geometry=z(o,e),delete r[t.getGeometryName()]),Object(d["d"])(r)||(n.properties=r),n},e.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var n=[],i=0,r=t.length;i<r;++i)n.push(this.writeFeatureObject(t[i],e));return{type:"FeatureCollection",features:n}},e.prototype.writeGeometryObject=function(t,e){return z(t,this.adaptOptions(e))},e}(x);function L(t,e){if(!t)return null;var n;switch(t["type"]){case"Point":n=I(t);break;case"LineString":n=k(t);break;case"Polygon":n=N(t);break;case"MultiPoint":n=D(t);break;case"MultiLineString":n=F(t);break;case"MultiPolygon":n=G(t);break;case"GeometryCollection":n=A(t);break;default:throw new Error("Unsupported GeoJSON type: "+t["type"])}return v(n,!1,e)}function A(t,e){var n=t["geometries"].map((function(t){return L(t,e)}));return new h(n)}function I(t){return new P["a"](t["coordinates"])}function k(t){return new w["a"](t["coordinates"])}function F(t){return new C["a"](t["coordinates"])}function D(t){return new E["a"](t["coordinates"])}function G(t){return new S["a"](t["coordinates"])}function N(t){return new j["a"](t["coordinates"])}function z(t,e){t=v(t,!0,e);var n,i=t.getType();switch(i){case"Point":n=H(t,e);break;case"LineString":n=X(t,e);break;case"Polygon":n=Z(t,e);break;case"MultiPoint":n=Y(t,e);break;case"MultiLineString":n=W(t,e);break;case"MultiPolygon":n=V(t,e);break;case"GeometryCollection":n=B(t,e);break;case"Circle":n={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+i)}return n}function B(t,e){var n=t.getGeometriesArray().map((function(t){var n=Object(d["a"])({},e);return delete n.featureProjection,z(t,n)}));return{type:"GeometryCollection",geometries:n}}function X(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}function W(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}function Y(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}function V(t,e){var n;return e&&(n=e.rightHanded),{type:"MultiPolygon",coordinates:t.getCoordinates(n)}}function H(t,e){return{type:"Point",coordinates:t.getCoordinates()}}function Z(t,e){var n;return e&&(n=e.rightHanded),{type:"Polygon",coordinates:t.getCoordinates(n)}}e["a"]=R},a43f:function(t,e,n){"use strict";e["a"]={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},a504:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r}));var i=.5,r=!0},a568:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"e",(function(){return a})),n.d(e,"g",(function(){return l})),n.d(e,"h",(function(){return c})),n.d(e,"i",(function(){return u})),n.d(e,"d",(function(){return h})),n.d(e,"j",(function(){return p})),n.d(e,"k",(function(){return f})),n.d(e,"f",(function(){return d}));var i=n("0af5");n("7fc9");function r(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function o(t,e){var n=e.getRadius(),i=e.getCenter(),r=i[0],o=i[1],s=t[0],a=t[1],l=s-r,c=a-o;0===l&&0===c&&(l=1);var u=Math.sqrt(l*l+c*c),h=r+n*l/u,p=o+n*c/u;return[h,p]}function s(t,e){var n,i,r=t[0],o=t[1],s=e[0],a=e[1],l=s[0],c=s[1],u=a[0],h=a[1],p=u-l,f=h-c,d=0===p&&0===f?0:(p*(r-l)+f*(o-c))/(p*p+f*f||0);return d<=0?(n=l,i=c):d>=1?(n=u,i=h):(n=l+d*p,i=c+d*f),[n,i]}function a(t,e){for(var n=!0,i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function l(t,e){var n=Math.cos(e),i=Math.sin(e),r=t[0]*n-t[1]*i,o=t[1]*n+t[0]*i;return t[0]=r,t[1]=o,t}function c(t,e){return t[0]*=e,t[1]*=e,t}function u(t,e){var n=t[0]-e[0],i=t[1]-e[1];return n*n+i*i}function h(t,e){return Math.sqrt(u(t,e))}function p(t,e){return u(t,s(t,e))}function f(t,e){if(e.canWrapX()){var n=Object(i["E"])(e.getExtent()),r=d(t,e,n);r&&(t[0]-=r*n)}return t}function d(t,e,n){var r=e.getExtent(),o=0;if(e.canWrapX()&&(t[0]<r[0]||t[0]>r[2])){var s=n||Object(i["E"])(r);o=Math.floor((t[0]-r[0])/s)}return o}},a896:function(t,e,n){"use strict";n.d(e,"c",(function(){return s})),n.d(e,"f",(function(){return l})),n.d(e,"a",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"d",(function(){return p})),n.d(e,"g",(function(){return d}));var i,r=n("617d"),o=n("92fa");new Array(6);function s(){return[1,0,0,1,0,0]}function a(t,e,n,i,r,o,s){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=s,t}function l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function c(t,e){var n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e}function u(t,e,n){return a(t,e,0,0,n,0,0)}function h(t,e,n,i,r,o,s,a){var l=Math.sin(o),c=Math.cos(o);return t[0]=i*c,t[1]=r*l,t[2]=-i*l,t[3]=r*c,t[4]=s*i*c-a*i*l+e,t[5]=s*r*l+a*r*c+n,t}function p(t,e){var n=f(e);Object(o["a"])(0!==n,32);var i=e[0],r=e[1],s=e[2],a=e[3],l=e[4],c=e[5];return t[0]=a/n,t[1]=-r/n,t[2]=-s/n,t[3]=i/n,t[4]=(s*c-a*l)/n,t[5]=-(i*c-r*l)/n,t}function f(t){return t[0]*t[3]-t[1]*t[2]}function d(t){var e="matrix("+t.join(", ")+")";if(r["g"])return e;var n=i||(i=document.createElement("div"));return n.style.transform=e,n.style.transform}},ab35:function(t,e,n){"use strict";var i=n("1300"),r=n("345d"),o=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=Object(r["c"])(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}return t.prototype.clone=function(){var e=this.getScale();return new t({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getDisplacement=function(){return this.displacement_},t.prototype.getDeclutterMode=function(){return this.declutterMode_},t.prototype.getAnchor=function(){return Object(i["b"])()},t.prototype.getImage=function(t){return Object(i["b"])()},t.prototype.getHitDetectionImage=function(){return Object(i["b"])()},t.prototype.getPixelRatio=function(t){return 1},t.prototype.getImageState=function(){return Object(i["b"])()},t.prototype.getImageSize=function(){return Object(i["b"])()},t.prototype.getOrigin=function(){return Object(i["b"])()},t.prototype.getSize=function(){return Object(i["b"])()},t.prototype.setDisplacement=function(t){this.displacement_=t},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=Object(r["c"])(t)},t.prototype.listenImageChange=function(t){Object(i["b"])()},t.prototype.load=function(){Object(i["b"])()},t.prototype.unlistenImageChange=function(t){Object(i["b"])()},t}();e["a"]=o},abb7:function(t,e,n){"use strict";function i(t,e,n,i){for(var r=0,o=n.length;r<o;++r)t[e++]=n[r];return e}function r(t,e,n,i){for(var r=0,o=n.length;r<o;++r)for(var s=n[r],a=0;a<i;++a)t[e++]=s[a];return e}function o(t,e,n,i,o){for(var s=o||[],a=0,l=0,c=n.length;l<c;++l){var u=r(t,e,n[l],i);s[a++]=u,e=u}return s.length=a,s}function s(t,e,n,i,r){for(var s=r||[],a=0,l=0,c=n.length;l<c;++l){var u=o(t,e,n[l],i,s[a]);s[a++]=u,e=u[u.length-1]}return s.length=a,s}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s}))},ac29:function(t,e,n){"use strict";n.d(e,"a",(function(){return D}));var i=n("9abc"),r=n("0af5"),o=n("abb7"),s=n("bef8"),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)}}(),l=function(t){function e(e,n,i){var r=t.call(this)||this;if(void 0!==i&&void 0===n)r.setFlatCoordinates(i,e);else{var o=n||0;r.setCenterAndRadius(e,o,i)}return r}return a(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,i){var r=this.flatCoordinates,o=t-r[0],s=e-r[1],a=o*o+s*s;if(a<i){if(0===a)for(var l=0;l<this.stride;++l)n[l]=r[l];else{var c=this.getRadius()/Math.sqrt(a);n[0]=r[0]+c*o,n[1]=r[1]+c*s;for(l=2;l<this.stride;++l)n[l]=r[l]}return n.length=this.stride,a}return i},e.prototype.containsXY=function(t,e){var n=this.flatCoordinates,i=t-n[0],r=e-n[1];return i*i+r*r<=this.getRadiusSquared_()},e.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.computeExtent=function(t){var e=this.flatCoordinates,n=e[this.stride]-e[0];return Object(r["k"])(e[0]-n,e[1]-n,e[0]+n,e[1]+n,t)},e.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},e.prototype.getRadiusSquared_=function(){var t=this.flatCoordinates[this.stride]-this.flatCoordinates[0],e=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return t*t+e*e},e.prototype.getType=function(){return"Circle"},e.prototype.intersectsExtent=function(t){var e=this.getExtent();if(Object(r["F"])(t,e)){var n=this.getCenter();return t[0]<=n[0]&&t[2]>=n[0]||(t[1]<=n[1]&&t[3]>=n[1]||Object(r["s"])(t,this.intersectsCoordinate.bind(this)))}return!1},e.prototype.setCenter=function(t){var e=this.stride,n=this.flatCoordinates[e]-this.flatCoordinates[0],i=t.slice();i[e]=i[0]+n;for(var r=1;r<e;++r)i[e+r]=t[r];this.setFlatCoordinates(this.layout,i),this.changed()},e.prototype.setCenterAndRadius=function(t,e,n){this.setLayout(n,t,0),this.flatCoordinates||(this.flatCoordinates=[]);var i=this.flatCoordinates,r=Object(o["a"])(i,0,t,this.stride);i[r++]=i[0]+e;for(var s=1,a=this.stride;s<a;++s)i[r++]=i[s];i.length=r,this.changed()},e.prototype.getCoordinates=function(){return null},e.prototype.setCoordinates=function(t,e){},e.prototype.setRadius=function(t){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+t,this.changed()},e.prototype.rotate=function(t,e){var n=this.getCenter(),i=this.getStride();this.setCenter(Object(s["a"])(n,0,n.length,i,t,e,n)),this.changed()},e.prototype.translate=function(t,e){var n=this.getCenter(),i=this.getStride();this.setCenter(Object(s["d"])(n,0,n.length,i,t,e,n)),this.changed()},e}(i["a"]);l.prototype.transform;var c=l,u=n("cef7"),h=n("01d4"),p=n("4cdf"),f=n("521b"),d=n("bf62"),g=n("7a09"),y=n("509b"),_=n("0b2d"),v=n("47e4"),m=n("9a44"),b=n("88da"),O=n("f403"),x=n("4105"),w=n("5bc3"),C=n("3e6b"),E=n("5831"),S=n("57cb"),P=n("06f8"),j=n("6c77"),T=n("256f"),M=n("a568"),R=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={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",CIRCLE:"Circle"},A={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"},I=function(t){function e(e,n){var i=t.call(this,e)||this;return i.feature=n,i}return R(e,t),e}(u["a"]),k=function(t){function e(e){var n=this,i=e;i.stopDown||(i.stopDown=S["a"]),n=t.call(this,i)||this,n.on,n.once,n.un,n.shouldHandle_=!1,n.downPx_=null,n.downTimeout_,n.lastDragTime_,n.pointerType_,n.freehand_=!1,n.source_=e.source?e.source:null,n.features_=e.features?e.features:null,n.snapTolerance_=e.snapTolerance?e.snapTolerance:12,n.type_=e.type,n.mode_=G(n.type_),n.stopClick_=!!e.stopClick,n.minPoints_=e.minPoints?e.minPoints:n.mode_===L.POLYGON?3:2,n.maxPoints_=n.mode_===L.CIRCLE?2:e.maxPoints?e.maxPoints:1/0,n.finishCondition_=e.finishCondition?e.finishCondition:S["b"],n.geometryLayout_=e.geometryLayout?e.geometryLayout:f["a"].XY;var r=e.geometryFunction;if(!r){var o,s=n.mode_;if(s===L.CIRCLE)r=function(t,e,n){var i=e||new c([NaN,NaN]),r=Object(T["e"])(t[0],n),o=Object(M["i"])(r,Object(T["e"])(t[t.length-1],n));i.setCenterAndRadius(r,Math.sqrt(o),this.geometryLayout_);var s=Object(T["l"])();return s&&i.transform(n,s),i};else s===L.POINT?o=O["a"]:s===L.LINE_STRING?o=g["a"]:s===L.POLYGON&&(o=w["a"]),r=function(t,e,n){return e?s===L.POLYGON?t[0].length?e.setCoordinates([t[0].concat([t[0][0]])],this.geometryLayout_):e.setCoordinates([],this.geometryLayout_):e.setCoordinates(t,this.geometryLayout_):e=new o(t,this.geometryLayout_),e}}return n.geometryFunction_=r,n.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,n.finishCoordinate_=null,n.sketchFeature_=null,n.sketchPoint_=null,n.sketchCoords_=null,n.sketchLine_=null,n.sketchLineCoords_=null,n.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,n.overlay_=new C["a"]({source:new E["a"]({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:F(),updateWhileInteracting:!0}),n.geometryName_=e.geometryName,n.condition_=e.condition?e.condition:P["h"],n.freehandCondition_,e.freehand?n.freehandCondition_=P["d"]:n.freehandCondition_=e.freehandCondition?e.freehandCondition:P["j"],n.addChangeListener(d["a"].ACTIVE,n.updateState_),n}return R(e,t),e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),this.updateState_()},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleEvent=function(e){e.originalEvent.type===h["a"].CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!==L.POINT&&this.freehandCondition_(e);var n=e.type===_["a"].POINTERMOVE,i=!0;if(!this.freehand_&&this.lastDragTime_&&e.type===_["a"].POINTERDRAG){var r=Date.now();r-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&e.type===_["a"].POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),i=!1):this.freehand_&&e.type===_["a"].POINTERDOWN?i=!1:n&&this.getPointerCount()<2?(i=e.type===_["a"].POINTERMOVE,i&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===_["a"].POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e)):e.type===_["a"].DBLCLICK&&(i=!1),t.prototype.handleEvent.call(this,e)&&i},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t.coordinate),!0):this.condition_(t)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new y["a"](_["a"].POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)},e.prototype.handleUpEvent=function(t){var e=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t),this.shouldHandle_){var n=!this.finishCoordinate_;n&&this.startDrawing_(t.coordinate),!n&&this.freehand_?this.finishDrawing():this.freehand_||n&&this.mode_!==L.POINT||(this.atFinish_(t.pixel)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t.coordinate)),e=!1}else this.freehand_&&this.abortDrawing();return!e&&this.stopClick_&&t.preventDefault(),e},e.prototype.handlePointerMove_=function(t){if(this.pointerType_=t.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var e=this.downPx_,n=t.pixel,i=e[0]-n[0],r=e[1]-n[1],o=i*i+r*r;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(t.coordinate):this.createOrUpdateSketchPoint_(t.coordinate.slice())},e.prototype.atFinish_=function(t){var e=!1;if(this.sketchFeature_){var n=!1,i=[this.finishCoordinate_],r=this.mode_;if(r===L.POINT)e=!0;else if(r===L.CIRCLE)e=2===this.sketchCoords_.length;else if(r===L.LINE_STRING)n=this.sketchCoords_.length>this.minPoints_;else if(r===L.POLYGON){var o=this.sketchCoords_;n=o[0].length>this.minPoints_,i=[o[0][0],o[0][o[0].length-2]]}if(n)for(var s=this.getMap(),a=0,l=i.length;a<l;a++){var c=i[a],u=s.getPixelFromCoordinate(c),h=t[0]-u[0],p=t[1]-u[1],f=this.freehand_?1:this.snapTolerance_;if(e=Math.sqrt(h*h+p*p)<=f,e){this.finishCoordinate_=c;break}}}return e},e.prototype.createOrUpdateSketchPoint_=function(t){if(this.sketchPoint_){var e=this.sketchPoint_.getGeometry();e.setCoordinates(t)}else this.sketchPoint_=new p["a"](new O["a"](t)),this.updateSketchFeatures_()},e.prototype.createOrUpdateCustomSketchLine_=function(t){this.sketchLine_||(this.sketchLine_=new p["a"]);var e=t.getLinearRing(0),n=this.sketchLine_.getGeometry();n?(n.setFlatCoordinates(e.getLayout(),e.getFlatCoordinates()),n.changed()):(n=new g["a"](e.getFlatCoordinates(),e.getLayout()),this.sketchLine_.setGeometry(n))},e.prototype.startDrawing_=function(t){var e=this.getMap().getView().getProjection(),n=Object(i["b"])(this.geometryLayout_);while(t.length<n)t.push(0);this.finishCoordinate_=t,this.mode_===L.POINT?this.sketchCoords_=t.slice():this.mode_===L.POLYGON?(this.sketchCoords_=[[t.slice(),t.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[t.slice(),t.slice()],this.sketchLineCoords_&&(this.sketchLine_=new p["a"](new g["a"](this.sketchLineCoords_)));var r=this.geometryFunction_(this.sketchCoords_,void 0,e);this.sketchFeature_=new p["a"],this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(r),this.updateSketchFeatures_(),this.dispatchEvent(new I(A.DRAWSTART,this.sketchFeature_))},e.prototype.modifyDrawing_=function(t){var e,n,r=this.getMap(),o=this.sketchFeature_.getGeometry(),s=r.getView().getProjection(),a=Object(i["b"])(this.geometryLayout_);while(t.length<a)t.push(0);if(this.mode_===L.POINT?n=this.sketchCoords_:this.mode_===L.POLYGON?(e=this.sketchCoords_[0],n=e[e.length-1],this.atFinish_(r.getPixelFromCoordinate(t))&&(t=this.finishCoordinate_.slice())):(e=this.sketchCoords_,n=e[e.length-1]),n[0]=t[0],n[1]=t[1],this.geometryFunction_(this.sketchCoords_,o,s),this.sketchPoint_){var l=this.sketchPoint_.getGeometry();l.setCoordinates(t)}if("Polygon"===o.getType()&&this.mode_!==L.POLYGON)this.createOrUpdateCustomSketchLine_(o);else if(this.sketchLineCoords_){var c=this.sketchLine_.getGeometry();c.setCoordinates(this.sketchLineCoords_)}this.updateSketchFeatures_()},e.prototype.addToDrawing_=function(t){var e,n,i=this.sketchFeature_.getGeometry(),r=this.getMap().getView().getProjection(),o=this.mode_;o===L.LINE_STRING||o===L.CIRCLE?(this.finishCoordinate_=t.slice(),n=this.sketchCoords_,n.length>=this.maxPoints_&&(this.freehand_?n.pop():e=!0),n.push(t.slice()),this.geometryFunction_(n,i,r)):o===L.POLYGON&&(n=this.sketchCoords_[0],n.length>=this.maxPoints_&&(this.freehand_?n.pop():e=!0),n.push(t.slice()),e&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,i,r)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),e&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t,e=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),i=this.mode_;if(i===L.LINE_STRING||i===L.CIRCLE){if(t=this.sketchCoords_,t.splice(-2,1),t.length>=2){this.finishCoordinate_=t[t.length-2].slice();var r=this.finishCoordinate_.slice();t[t.length-1]=r,this.createOrUpdateSketchPoint_(r)}this.geometryFunction_(t,e,n),"Polygon"===e.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(e)}else if(i===L.POLYGON){t=this.sketchCoords_[0],t.splice(-2,1);var o=this.sketchLine_.getGeometry();if(t.length>=2){r=t[t.length-2].slice();t[t.length-1]=r,this.createOrUpdateSketchPoint_(r)}o.setCoordinates(t),this.geometryFunction_(this.sketchCoords_,e,n)}1===t.length&&this.abortDrawing(),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var e=this.sketchCoords_,n=t.getGeometry(),i=this.getMap().getView().getProjection();this.mode_===L.LINE_STRING?(e.pop(),this.geometryFunction_(e,n,i)):this.mode_===L.POLYGON&&(e[0].pop(),this.geometryFunction_(e,n,i),e=n.getCoordinates()),"MultiPoint"===this.type_?t.setGeometry(new m["a"]([e])):"MultiLineString"===this.type_?t.setGeometry(new v["a"]([e])):"MultiPolygon"===this.type_&&t.setGeometry(new b["a"]([e])),this.dispatchEvent(new I(A.DRAWEND,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),t},e.prototype.abortDrawing=function(){var t=this.abortDrawing_();t&&this.dispatchEvent(new I(A.DRAWABORT,t))},e.prototype.appendCoordinates=function(t){var e,n=this.mode_,i=!this.sketchFeature_;if(i&&this.startDrawing_(t[0]),n===L.LINE_STRING||n===L.CIRCLE)e=this.sketchCoords_;else{if(n!==L.POLYGON)return;e=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}i&&e.shift(),e.pop();for(var r=0;r<t.length;r++)this.addToDrawing_(t[r]);var o=t[t.length-1];this.addToDrawing_(o),this.modifyDrawing_(o)},e.prototype.extend=function(t){var e=t.getGeometry(),n=e;this.sketchFeature_=t,this.sketchCoords_=n.getCoordinates();var i=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=i.slice(),this.sketchCoords_.push(i.slice()),this.sketchPoint_=new p["a"](new O["a"](i)),this.updateSketchFeatures_(),this.dispatchEvent(new I(A.DRAWSTART,this.sketchFeature_))},e.prototype.updateSketchFeatures_=function(){var t=[];this.sketchFeature_&&t.push(this.sketchFeature_),this.sketchLine_&&t.push(this.sketchLine_),this.sketchPoint_&&t.push(this.sketchPoint_);var e=this.overlay_.getSource();e.clear(!0),e.addFeatures(t)},e.prototype.updateState_=function(){var t=this.getMap(),e=this.getActive();t&&e||this.abortDrawing(),this.overlay_.setMap(e?t:null)},e}(x["b"]);function F(){var t=Object(j["b"])();return function(e,n){return t[e.getGeometry().getType()]}}function D(){return function(t,e,n){var i=Object(r["b"])([t[0],t[t.length-1]].map((function(t){return Object(T["e"])(t,n)}))),o=[[Object(r["u"])(i),Object(r["v"])(i),Object(r["D"])(i),Object(r["C"])(i),Object(r["u"])(i)]],s=e;s?s.setCoordinates(o):s=new w["a"](o);var a=Object(T["l"])();return a&&s.transform(n,a),s}}function G(t){switch(t){case"Point":case"MultiPoint":return L.POINT;case"LineString":case"MultiLineString":return L.LINE_STRING;case"Polygon":case"MultiPolygon":return L.POLYGON;case"Circle":return L.CIRCLE;default:throw new Error("Invalid type: "+t)}}e["b"]=k},acc1:function(t,e,n){"use strict";e["a"]={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},b12f:function(t,e,n){"use strict";n.r(e),n.d(e,"calculateCenter",(function(){return y})),n.d(e,"formatLength",(function(){return _})),n.d(e,"formatArea",(function(){return v})),n.d(e,"_arr",(function(){return m})),n.d(e,"createSpan",(function(){return b})),n.d(e,"getVector",(function(){return O})),n.d(e,"addInteraction",(function(){return x})),n.d(e,"addInteraction1",(function(){return w})),n.d(e,"getCoordinates",(function(){return C})),n.d(e,"createGeoJson",(function(){return E})),n.d(e,"getLngAndLatMaxMin",(function(){return S})),n.d(e,"rayCasting",(function(){return P})),n.d(e,"createPolygonGeojson",(function(){return j})),n.d(e,"zoomIn",(function(){return T})),n.d(e,"zoomOut",(function(){return M})),n.d(e,"getCenterPoint",(function(){return R})),n.d(e,"createGPSPoints",(function(){return L})),n.d(e,"createPolylinePoints",(function(){return A})),n.d(e,"fitNew",(function(){return I})),n.d(e,"createRectangle",(function(){return k})),n.d(e,"getColorStyle",(function(){return F})),n.d(e,"colorArr",(function(){return D})),n.d(e,"createFill",(function(){return G})),n.d(e,"polygonStyle",(function(){return N})),n.d(e,"getLayer",(function(){return z})),n.d(e,"getLayerNew",(function(){return B})),n.d(e,"flyTo",(function(){return X})),n.d(e,"PolygonModel",(function(){return W})),n.d(e,"createPolygonBoundary",(function(){return Y})),n.d(e,"caculateLL",(function(){return V}));var i=n("790a"),r=n("3e6b"),o=n("6c77"),s=n("83a6"),a=n("8682"),l=n("ce2c"),c=n("ac29"),u=n("5831"),h=n("a2e1"),p=n("5bc3"),f=n("4cdf"),d=n("bab7"),g=n("0af5");function y(t){let e,n,i;const r=t.getType();if("Polygon"===r){let i=0,r=0,o=0;n=t.getCoordinates()[0].slice(1),n.forEach((function(t){i+=t[0],r+=t[1],o++})),e=[i/o,r/o]}else"LineString"===r?(e=t.getCoordinateAt(.5),n=t.getCoordinates()):e=Object(g["w"])(t.getExtent());let o;if(n?(o=n.map(t=>{const n=t[0]-e[0],i=t[1]-e[1];return n*n+i*i}),i=Math.sqrt(Math.max.apply(Math,o))/3):i=Math.max(Object(g["E"])(t.getExtent()),Object(g["z"])(t.getExtent()))/3,n.length>=3){let t=[0,0],e=[];for(let i=0;i<n.length;i++){const r=n[i];r[0]!=t[0]&&r[1]!=t[1]&&e.push(r),t=r}n=e}return{center:e,coordinates:n,minRadius:i,sqDistances:o}}function _(t){try{const e=Object(i["c"])(t,{projection:"EPSG:4326"});let n;if(!(e>100)){const t=Math.round(100*e)/100;return 0==t?"":t+" m"}return n=Math.round(e/1e3*100)/100+" km",n}catch(e){return""}}function v(t){try{const e=Object(i["a"])(t,{projection:"EPSG:4326"}),n=e/666.67*100;return Math.floor(n)/100+"亩"}catch(e){return"0亩"}}const m=new Array;function b(t){const e=document.createElement("sapn");return e.innerHTML=" X ",e.style.position="absolute",e.style.width="14px",e.style.height="14px",e.style.right="4px",e.style.top="4px",e.style.cursor="pointer",e.style.backgroundColor="#fff",e.style.color="red",e.style.lineHeight="14px",e.style.textAlign="center",e.addEventListener("click",e=>{t._clear(),e.stopPropagation()},!1),e}function O(t){return new r["a"]({source:t,style:new o["c"]({fill:new s["a"]({color:"rgba(255, 255, 255, 0.4)"}),stroke:new a["a"]({color:"#ffcc33",width:2}),image:new l["a"]({radius:7,fill:new s["a"]({color:"#ffcc33"})})})})}function x(t,e,n="rgba(255, 255, 255, 0.4)",i="rgba(255, 204, 51, 0.5)"){const r=new c["b"]({source:e,type:t,style:new o["c"]({fill:new s["a"]({color:n}),stroke:new a["a"]({color:i,lineDash:[10,10],width:2}),image:new l["a"]({radius:5,stroke:new a["a"]({color:"rgba(255, 255, 255, 1)"}),fill:new s["a"]({color:"rgba(200, 200, 200, 0.6)"})})})});return r}function w(t,e,n="rgba(184, 233, 134, 0.56)",i="rgba(23, 168, 162, 0.56)"){const r=new c["b"]({source:e,type:t,style:new o["c"]({fill:new s["a"]({color:n}),stroke:new a["a"]({color:i,lineDash:[10,10],width:2})})});return r}function C(t){const e=new Array;for(let n=0;n<t.length;n+=2)e.push([t[n],t[n+1]]);return[e]}function E(t,e={},n="Polygon"){return{type:"Feature",properties:e,bbox:S(t),geometry:{type:n,coordinates:t}}}function S(t){let e=0,n=400,i=0,r=400;for(let o=0;o<t.length;o++)for(let s=0;s<t[o].length;s++)t[o][s][0]>e&&(e=t[o][s][0]),t[o][s][1]>i&&(i=t[o][s][1]),t[o][s][0]<n&&(n=t[o][s][0]),t[o][s][1]<r&&(r=t[o][s][1]);return[e,i,400===n?0:n,400===r?0:r]}function P(t,e){const n=t.x,i=t.y;let r=!1;for(let o=0,s=e.length,a=s-1;o<s;a=o,o++){const t=e[o].X,s=e[o].Y,l=e[a].X,c=e[a].Y;if(t===n&&s===i||l===n&&c===i)return!0;if(s<i&&c>=i||s>=i&&c<i){const e=t+(i-s)*(l-t)/(c-s);if(e===n)return!0;e>n&&(r=!r)}}return!!r}function j(t,e="rgba(41, 212, 178, 0.4)",n="rgba(23, 168, 162, 1)",i,c=!1,p=[]){const f={Polygon:new o["c"]({fill:new s["a"]({color:e}),stroke:new a["a"]({color:n,width:2,lineDash:p}),image:new l["a"]({radius:7,fill:new s["a"]({color:"#ffcc33"})})})},d=new u["a"]({features:(new h["a"]).readFeatures(t)});return new r["a"]({source:d,style:t=>(c&&t.setId(i),f[t.getGeometry().getType()])})}function T(t){const e=t.getView();e.animate({zoom:e.getZoom()+1,duration:200})}function M(t){const e=t.getView();e.animate({zoom:e.getZoom()-1,duration:200})}function R(t){let e=0,n=0;for(let i=0;i<t.length;i++)for(let r=0;r<t[i].length;r++)e+=parseFloat(t[i][r][0]),n+=parseFloat(t[i][r][1]);return e/=t[0].length,n/=t[0].length,[e,n]}function L(t,e=!1,n=null){const i=[];for(let r=0;r<t.length;r++){const o=t[r],s=o.X,a=o.Y;if(null!=s&&""!=s&&0!=s&&null!=a&&""!=a&&0!=a)if(null!=n&&n.getLngAndLatMaxMin(o),e){const t=d["default"].gcj_encrypt(s,a);i.push([t.lon,t.lat])}else i.push([s,a])}return i}function A(t,e=!1,n=null){const i={gpsPoints:[],optRtDephts:[],isNJOpt:[],IsInFence:[],IsOverSpeed:[]};i.gpsPoints=L(t,e);for(let r=0;r<t.length;r++)if(t[r].OptRtDepth&&i.optRtDephts.push(t[r].OptRtDepth),(1==t[r].isNJOpt||0==t[r].isNJOpt)&&i.isNJOpt.push(t[r].isNJOpt),(1==t[r].IsInFence||0==t[r].IsInFence)&&i.isNJOpt.push(t[r].IsInFence),(1==t[r].IsOverSpeed||0==t[r].IsOverSpeed)&&i.isNJOpt.push(t[r].IsOverSpeed),n&&parseInt(t[r].PId)>0){const e=parseFloat(t[r].X),i=parseFloat(t[r].Y);e&&i&&n.call(this,t[r].PId,[e,i])}return i}function I(t,e,n){const r=e.length;if(r<=0)return;n=n||{};let o=n.way;void 0===o&&(o=1);const s=n.padding||[50,50,50,50];let a=180,l=-180,c=180,u=-180,h=0,p=0;for(let i=0;i<r;i++){const t=e[i][0],n=e[i][1];h+=t,p+=n,t>l&&(l=t),t<a&&(a=t),n>u&&(u=n),n<c&&(c=n)}const f=t.getView();switch(o){case 1:f.fit([a,c,l,u],{padding:s});break;case 2:{const t=[h/r,p/r],e=Object(i["b"])([a,c],[l,u]),n=18-Math.floor(e/3e3);f.setCenter(t),f.setZoom(n);break}}}function k(t,e="transparent",n="transparent"){let i=null,l=null,c=null;const h=t.pointmaxs,d=t.pointmins,g=new o["c"]({stroke:new a["a"]({width:1,color:e}),fill:new s["a"]({color:n})});return c||(c=new r["a"]({source:new u["a"],style:g})),i||(i=new p["a"]([[h,[d[0],h[1]],d,[h[0],d[1]],h]])),l||(l=new f["a"](i),c.getSource().addFeature(l)),c}function F(t,e){const n=e[t.get("code")];return n||"#62e4c7"}m["LineString"]=_,m["Polygon"]=v;let D=["#62e4c7","#44cfbb","#28baaf","#13aba6","#0e9b95"];function G(t){return new s["a"]({color:F.apply(this,[t,D])})}function N(t,e="transparent"){return new o["c"]({stroke:new a["a"]({color:e,width:1}),fill:G.apply(this,[t])})}function z(t,e="#62e4c7",n="transparent"){const i={Polygon:new o["c"]({fill:new s["a"]({color:e}),stroke:new a["a"]({color:n,width:2})})},l=new r["a"]({source:new u["a"]({features:(new h["a"]).readFeatures(t)}),style:t=>i[t.getGeometry().getType()]});return l}function B(t,e="red",n="transparent"){const i={Polygon:new o["c"]({fill:new s["a"]({color:e}),stroke:new a["a"]({color:n,width:2})})},l=new r["a"]({source:new u["a"]({features:(new h["a"]).readFeatures(t)}),style:t=>i[t.getGeometry().getType()],zIndex:99});return l}function X(t,e,n={done:null,duration:3e3,parts:2,called:!1}){const i=n.duration,r=e.getZoom();let o=n.parts,s=n.called;const a=n.done,l=t=>{--o,s||0!==o&&t||(s=!0,a&&a(t))};e.animate({center:t,duration:i},l),e.animate({zoom:r-1,duration:i/2},{zoom:r,duration:i/2},l)}class W{constructor(t={id:"",fillColor:"rgba(41, 212, 178, 0.4)",stroke:"rgba(23, 168, 162, 1)",strokeWidth:2,isSetId:!1,lineDash:new Array}){this.lineDash=[],this.fillColor=t.fillColor,this.stroke=t.stroke,this.id=t.id,this.isSetId=t.isSetId,this.lineDash=t.lineDash,this.strokeWidth=t.strokeWidth}}function Y(t,e=new W){const n=new o["c"]({fill:new s["a"]({color:e.fillColor}),stroke:new a["a"]({color:e.stroke,width:e.strokeWidth,lineDash:e.lineDash})}),i=new u["a"]({features:(new h["a"]).readFeatures(t)});return new r["a"]({source:i,style:function(t){return e.isSetId&&t.setId(e.id),n}})}function V(t,e,n,i){let r=t*Math.PI/180,o=n*Math.PI/180,s=r-o,a=e*Math.PI/180-i*Math.PI/180,l=2*Math.asin(Math.sqrt(Math.pow(Math.sin(s/2),2)+Math.cos(r)*Math.cos(o)*Math.pow(Math.sin(a/2),2)));return l*=6378.137,l=Math.round(1e4*l)/10,l}},b1a2:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a}));var i=n("9f5e"),r=n("7fc9");function o(t,e,n,o,s,a,l){var c,u,h=(n-e)/o;if(1===h)c=e;else if(2===h)c=e,u=s;else if(0!==h){for(var p=t[e],f=t[e+1],d=0,g=[0],y=e+o;y<n;y+=o){var _=t[y],v=t[y+1];d+=Math.sqrt((_-p)*(_-p)+(v-f)*(v-f)),g.push(d),p=_,f=v}var m=s*d,b=Object(i["a"])(g,m);b<0?(u=(m-g[-b-2])/(g[-b-1]-g[-b-2]),c=e+(-b-2)*o):c=e+b*o}var O=l>1?l:2,x=a||new Array(O);for(y=0;y<O;++y)x[y]=void 0===c?NaN:void 0===u?t[c+y]:Object(r["e"])(t[c+y],t[c+o+y],u);return x}function s(t,e,n,i,o,s){if(n==e)return null;var a;if(o<t[e+i-1])return s?(a=t.slice(e,e+i),a[i-1]=o,a):null;if(t[n-1]<o)return s?(a=t.slice(n-i,n),a[i-1]=o,a):null;if(o==t[e+i-1])return t.slice(e,e+i);var l=e/i,c=n/i;while(l<c){var u=l+c>>1;o<t[(u+1)*i-1]?c=u:l=u+1}var h=t[l*i-1];if(o==h)return t.slice((l-1)*i,(l-1)*i+i);var p=t[(l+1)*i-1],f=(o-h)/(p-h);a=[];for(var d=0;d<i-1;++d)a.push(Object(r["e"])(t[(l-1)*i+d],t[l*i+d],f));return a.push(o),a}function a(t,e,n,i,r,o,a){if(a)return s(t,e,n[n.length-1],i,r,o);var l;if(r<t[i-1])return o?(l=t.slice(0,i),l[i-1]=r,l):null;if(t[t.length-1]<r)return o?(l=t.slice(t.length-i),l[i-1]=r,l):null;for(var c=0,u=n.length;c<u;++c){var h=n[c];if(e!=h){if(r<t[e+i-1])return null;if(r<=t[h-1])return s(t,e,h,i,r,!1);e=h}}return null}},b2fc:function(t,e,n){"use strict";var i=n("183a"),r=n("01d4"),o=n("4105"),s=n("4a7d"),a=n("a43f"),l=n("57cb"),c=n("0af5"),u=n("a568"),h=n("5bc3"),p=n("256f"),f=n("1300"),d=n("38f3"),g=n("1e8d"),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)}}();function _(t){return t.feature?t.feature:t.element?t.element:void 0}var v=[],m=function(t){function e(e){var n=this,i=e||{},r=i;return r.handleDownEvent||(r.handleDownEvent=l["b"]),r.stopDown||(r.stopDown=l["a"]),n=t.call(this,r)||this,n.source_=i.source?i.source:null,n.vertex_=void 0===i.vertex||i.vertex,n.edge_=void 0===i.edge||i.edge,n.features_=i.features?i.features:null,n.featuresListenerKeys_=[],n.featureChangeListenerKeys_={},n.indexedFeaturesExtents_={},n.pendingFeatures_={},n.pixelTolerance_=void 0!==i.pixelTolerance?i.pixelTolerance:10,n.rBush_=new s["a"],n.GEOMETRY_SEGMENTERS_={Point:n.segmentPointGeometry_.bind(n),LineString:n.segmentLineStringGeometry_.bind(n),LinearRing:n.segmentLineStringGeometry_.bind(n),Polygon:n.segmentPolygonGeometry_.bind(n),MultiPoint:n.segmentMultiPointGeometry_.bind(n),MultiLineString:n.segmentMultiLineStringGeometry_.bind(n),MultiPolygon:n.segmentMultiPolygonGeometry_.bind(n),GeometryCollection:n.segmentGeometryCollectionGeometry_.bind(n),Circle:n.segmentCircleGeometry_.bind(n)},n}return y(e,t),e.prototype.addFeature=function(t,e){var n=void 0===e||e,i=Object(f["c"])(t),o=t.getGeometry();if(o){var s=this.GEOMETRY_SEGMENTERS_[o.getType()];if(s){this.indexedFeaturesExtents_[i]=o.getExtent(Object(c["j"])());var a=[];if(s(a,o),1===a.length)this.rBush_.insert(Object(c["b"])(a[0]),{feature:t,segment:a[0]});else if(a.length>1){var l=a.map((function(t){return Object(c["b"])(t)})),u=a.map((function(e){return{feature:t,segment:e}}));this.rBush_.load(l,u)}}}n&&(this.featureChangeListenerKeys_[i]=Object(g["a"])(t,r["a"].CHANGE,this.handleFeatureChange_,this))},e.prototype.forEachFeatureAdd_=function(t){this.addFeature(t)},e.prototype.forEachFeatureRemove_=function(t){this.removeFeature(t)},e.prototype.getFeatures_=function(){var t;return this.features_?t=this.features_:this.source_&&(t=this.source_.getFeatures()),t},e.prototype.handleEvent=function(e){var n=this.snapTo(e.pixel,e.coordinate,e.map);return n&&(e.coordinate=n.vertex.slice(0,2),e.pixel=n.vertexPixel),t.prototype.handleEvent.call(this,e)},e.prototype.handleFeatureAdd_=function(t){var e=_(t);this.addFeature(e)},e.prototype.handleFeatureRemove_=function(t){var e=_(t);this.removeFeature(e)},e.prototype.handleFeatureChange_=function(t){var e=t.target;if(this.handlingDownUpSequence){var n=Object(f["c"])(e);n in this.pendingFeatures_||(this.pendingFeatures_[n]=e)}else this.updateFeature_(e)},e.prototype.handleUpEvent=function(t){var e=Object(d["c"])(this.pendingFeatures_);return e.length&&(e.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},e.prototype.removeFeature=function(t,e){var n=void 0===e||e,i=Object(f["c"])(t),r=this.indexedFeaturesExtents_[i];if(r){var o=this.rBush_,s=[];o.forEachInExtent(r,(function(e){t===e.feature&&s.push(e)}));for(var a=s.length-1;a>=0;--a)o.remove(s[a])}n&&(Object(g["c"])(this.featureChangeListenerKeys_[i]),delete this.featureChangeListenerKeys_[i])},e.prototype.setMap=function(e){var n=this.getMap(),r=this.featuresListenerKeys_,o=this.getFeatures_();n&&(r.forEach(g["c"]),r.length=0,o.forEach(this.forEachFeatureRemove_.bind(this))),t.prototype.setMap.call(this,e),e&&(this.features_?r.push(Object(g["a"])(this.features_,i["a"].ADD,this.handleFeatureAdd_,this),Object(g["a"])(this.features_,i["a"].REMOVE,this.handleFeatureRemove_,this)):this.source_&&r.push(Object(g["a"])(this.source_,a["a"].ADDFEATURE,this.handleFeatureAdd_,this),Object(g["a"])(this.source_,a["a"].REMOVEFEATURE,this.handleFeatureRemove_,this)),o.forEach(this.forEachFeatureAdd_.bind(this)))},e.prototype.snapTo=function(t,e,n){var i=n.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),r=n.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_]),o=Object(c["b"])([i,r]),s=this.rBush_.getInExtent(o),a=s.length;if(0===a)return null;var l,h=n.getView().getProjection(),f=Object(p["e"])(e,h),d=1/0,g=this.pixelTolerance_*this.pixelTolerance_,y=function(){if(l){var e=n.getPixelFromCoordinate(l),i=Object(u["i"])(t,e);if(i<=g)return{vertex:l,vertexPixel:[Math.round(e[0]),Math.round(e[1])]}}return null};if(this.vertex_){for(var _=0;_<a;++_){var m=s[_];"Circle"!==m.feature.getGeometry().getType()&&m.segment.forEach((function(t){var e=Object(p["e"])(t,h),n=Object(u["i"])(f,e);n<d&&(l=t,d=n)}))}var b=y();if(b)return b}if(this.edge_){for(_=0;_<a;++_){var O=null;m=s[_];if("Circle"===m.feature.getGeometry().getType()){var x=m.feature.getGeometry(),w=Object(p["l"])();w&&(x=x.clone().transform(w,h)),O=Object(p["m"])(Object(u["b"])(f,x),h)}else{var C=m.segment,E=C[0],S=C[1];S&&(v[0]=Object(p["e"])(E,h),v[1]=Object(p["e"])(S,h),O=Object(u["c"])(f,v))}if(O){var P=Object(u["i"])(f,O);P<d&&(l=O,d=P)}}b=y();if(b)return b}return null},e.prototype.updateFeature_=function(t){this.removeFeature(t,!1),this.addFeature(t,!1)},e.prototype.segmentCircleGeometry_=function(t,e){var n=this.getMap().getView().getProjection(),i=e,r=Object(p["l"])();r&&(i=i.clone().transform(r,n));var o=Object(h["b"])(i);r&&o.transform(n,r);for(var s=o.getCoordinates()[0],a=0,l=s.length-1;a<l;++a)t.push(s.slice(a,a+2))},e.prototype.segmentGeometryCollectionGeometry_=function(t,e){for(var n=e.getGeometriesArray(),i=0;i<n.length;++i){var r=this.GEOMETRY_SEGMENTERS_[n[i].getType()];r&&r(t,n[i])}},e.prototype.segmentLineStringGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length-1;i<r;++i)t.push(n.slice(i,i+2))},e.prototype.segmentMultiLineStringGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],s=0,a=o.length-1;s<a;++s)t.push(o.slice(s,s+2))},e.prototype.segmentMultiPointGeometry_=function(t,e){e.getCoordinates().forEach((function(e){t.push([e])}))},e.prototype.segmentMultiPolygonGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],s=0,a=o.length;s<a;++s)for(var l=o[s],c=0,u=l.length-1;c<u;++c)t.push(l.slice(c,c+2))},e.prototype.segmentPointGeometry_=function(t,e){t.push([e.getCoordinates()])},e.prototype.segmentPolygonGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],s=0,a=o.length-1;s<a;++s)t.push(o.slice(s,s+2))},e}(o["b"]);e["a"]=m},b486:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return H}));var i=n("1af9"),r=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)}}(),o=function(t){function e(e){var n=e||{};return t.call(this,n)||this}return r(e,t),e}(i["a"]),s=o,a=n("137e"),l=n("869f"),c=n("496f"),u=n("a504"),h=n("0b0e"),p=n("a896"),f=n("38f3"),d=n("0af5"),g=n("256f"),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)}}(),_=function(t){function e(e){var n=t.call(this,e)||this;return n.image_=null,n}return y(e,t),e.prototype.getImage=function(){return this.image_?this.image_.getImage():null},e.prototype.prepareFrame=function(t){var e=t.layerStatesArray[t.layerIndex],n=t.pixelRatio,i=t.viewState,r=i.resolution,o=this.getLayer().getSource(),s=t.viewHints,a=t.extent;if(void 0!==e.extent&&(a=Object(d["A"])(a,Object(g["f"])(e.extent,i.projection))),!s[c["a"].ANIMATING]&&!s[c["a"].INTERACTING]&&!Object(d["H"])(a))if(o){var h=i.projection;if(!u["a"]){var p=o.getProjection();p&&(h=p)}var f=o.getImage(a,r,n,h);f&&(this.loadImage(f)?this.image_=f:f.getState()===l["a"].EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_},e.prototype.getData=function(t){var e=this.frameState;if(!e)return null;var n=this.getLayer(),i=Object(p["a"])(e.pixelToCoordinateTransform,t.slice()),r=n.getExtent();if(r&&!Object(d["f"])(r,i))return null;var o=this.image_.getExtent(),s=this.image_.getImage(),a=Object(d["E"])(o),l=Math.floor(s.width*((i[0]-o[0])/a));if(l<0||l>=s.width)return null;var c=Object(d["z"])(o),u=Math.floor(s.height*((o[3]-i[1])/c));return u<0||u>=s.height?null:this.getImageData(s,l,u)},e.prototype.renderFrame=function(t,e){var n=this.image_,i=n.getExtent(),r=n.getResolution(),o=n.getPixelRatio(),s=t.layerStatesArray[t.layerIndex],a=t.pixelRatio,l=t.viewState,c=l.center,u=l.resolution,y=a*r/(u*o),_=t.extent,v=l.resolution,m=l.rotation,b=Math.round(Object(d["E"])(_)/v*a),O=Math.round(Object(d["z"])(_)/v*a);Object(p["b"])(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/a,1/a,m,-b/2,-O/2),Object(p["d"])(this.inversePixelTransform,this.pixelTransform);var x=Object(p["g"])(this.pixelTransform);this.useContainer(e,x,this.getBackground(t));var w=this.context,C=w.canvas;C.width!=b||C.height!=O?(C.width=b,C.height=O):this.containerReused||w.clearRect(0,0,b,O);var E=!1,S=!0;if(s.extent){var P=Object(g["f"])(s.extent,l.projection);S=Object(d["F"])(P,t.extent),E=S&&!Object(d["g"])(P,t.extent),E&&this.clipUnrotated(w,t,P)}var j=n.getImage(),T=Object(p["b"])(this.tempTransform,b/2,O/2,y,y,0,o*(i[0]-c[0])/r,o*(c[1]-i[3])/r);this.renderedResolution=r*a/o;var M=j.width*T[0],R=j.height*T[3];if(this.getLayer().getSource().getInterpolate()||Object(f["a"])(w,h["a"]),this.preRender(w,t),S&&M>=.5&&R>=.5){var L=T[4],A=T[5],I=s.opacity,k=void 0;1!==I&&(k=w.globalAlpha,w.globalAlpha=I),w.drawImage(j,0,0,+j.width,+j.height,L,A,M,R),1!==I&&(w.globalAlpha=k)}return this.postRender(w,t),E&&w.restore(),Object(f["a"])(w,h["b"]),x!==C.style.transform&&(C.style.transform=x),this.container},e}(a["b"]),v=_,m=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)}}(),b=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.createRenderer=function(){return new v(this)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(s),O=b,x=n("01d4"),w=n("cef7"),C=n("8778"),E=n("b739"),S=n("3c81"),P=n("1e8d"),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)}}(),T=function(t){function e(e,n,i,r,o,s,a){var c=this,h=e.getExtent(),p=n.getExtent(),f=p?Object(d["A"])(i,p):i,g=Object(d["w"])(f),y=Object(S["b"])(e,n,g,r),_=u["b"],v=new E["a"](e,n,f,h,y*_,r),m=v.calculateSourceExtent(),b=s(m,y,o),O=b?l["a"].IDLE:l["a"].EMPTY,x=b?b.getPixelRatio():1;return c=t.call(this,i,r,x,O)||this,c.targetProj_=n,c.maxSourceExtent_=h,c.triangulation_=v,c.targetResolution_=r,c.targetExtent_=i,c.sourceImage_=b,c.sourcePixelRatio_=x,c.interpolate_=a,c.canvas_=null,c.sourceListenerKey_=null,c}return j(e,t),e.prototype.disposeInternal=function(){this.state==l["a"].LOADING&&this.unlistenSource_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.getProjection=function(){return this.targetProj_},e.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==l["a"].LOADED){var e=Object(d["E"])(this.targetExtent_)/this.targetResolution_,n=Object(d["z"])(this.targetExtent_)/this.targetResolution_;this.canvas_=Object(S["d"])(e,n,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=t,this.changed()},e.prototype.load=function(){if(this.state==l["a"].IDLE){this.state=l["a"].LOADING,this.changed();var t=this.sourceImage_.getState();t==l["a"].LOADED||t==l["a"].ERROR?this.reproject_():(this.sourceListenerKey_=Object(P["a"])(this.sourceImage_,x["a"].CHANGE,(function(t){var e=this.sourceImage_.getState();e!=l["a"].LOADED&&e!=l["a"].ERROR||(this.unlistenSource_(),this.reproject_())}),this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){Object(P["c"])(this.sourceListenerKey_),this.sourceListenerKey_=null},e}(C["a"]),M=T,R=n("ff80"),L=n("1300"),A=n("9f5e"),I=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={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"},F=function(t){function e(e,n){var i=t.call(this,e)||this;return i.image=n,i}return I(e,t),e}(w["a"]),D=function(t){function e(e){var n=this,i=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(i=e.interpolate),n=t.call(this,{attributions:e.attributions,projection:e.projection,state:e.state,interpolate:i})||this,n.on,n.once,n.un,n.resolutions_=void 0!==e.resolutions?e.resolutions:null,n.reprojectedImage_=null,n.reprojectedRevision_=0,n}return I(e,t),e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var e=Object(A["f"])(this.resolutions_,t,0);t=this.resolutions_[e]}return t},e.prototype.getImage=function(t,e,n,i){var r=this.getProjection();if(u["a"]&&r&&i&&!Object(g["d"])(r,i)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Object(g["d"])(this.reprojectedImage_.getProjection(),i)&&this.reprojectedImage_.getResolution()==e&&Object(d["o"])(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new M(r,i,t,e,n,function(t,e,n){return this.getImageInternal(t,e,n,r)}.bind(this),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return r&&(i=r),this.getImageInternal(t,e,n,i)},e.prototype.getImageInternal=function(t,e,n,i){return Object(L["b"])()},e.prototype.handleImageChange=function(t){var e,n=t.target;switch(n.getState()){case l["a"].LOADING:this.loading=!0,e=k.IMAGELOADSTART;break;case l["a"].LOADED:this.loading=!1,e=k.IMAGELOADEND;break;case l["a"].ERROR:this.loading=!1,e=k.IMAGELOADERROR;break;default:return}this.hasListener(e)&&this.dispatchEvent(new F(e,n))},e}(R["a"]);function G(t,e){t.getImage().src=e}var N=D,z=n("6611"),B=n("0999"),X=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=this,i=void 0!==e.crossOrigin?e.crossOrigin:null,r=void 0!==e.imageLoadFunction?e.imageLoadFunction:G,o=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(o=e.interpolate),n=t.call(this,{attributions:e.attributions,interpolate:o,projection:Object(g["h"])(e.projection)})||this,n.url_=e.url,n.imageExtent_=e.imageExtent,n.image_=new z["a"](n.imageExtent_,void 0,1,n.url_,i,r),n.imageSize_=e.imageSize?e.imageSize:null,n.image_.addEventListener(x["a"].CHANGE,n.handleImageChange.bind(n)),n}return X(e,t),e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,e,n,i){return Object(d["F"])(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(e){if(this.image_.getState()==l["a"].LOADED){var n=this.image_.getExtent(),i=this.image_.getImage(),r=void 0,o=void 0;this.imageSize_?(r=this.imageSize_[0],o=this.imageSize_[1]):(r=i.width,o=i.height);var s=Object(d["E"])(n),a=Object(d["z"])(n),c=s/r,u=a/o,p=r,g=o;if(c>u?p=Math.round(s/u):g=Math.round(a/c),p!==r||g!==o){var y=Object(B["a"])(p,g);this.getInterpolate()||Object(f["a"])(y,h["a"]);var _=y.canvas;y.drawImage(i,0,0,r,o,0,0,_.width,_.height),this.image_.setImage(_)}}t.prototype.handleImageChange.call(this,e)},e}(N),Y=W,V=n("13e2");class H{constructor(t,e){this._map=e,this._imageExtent=[],this._imageLayer=null,this.isShowPolygon=!0,this.type=0,this._imageExtentGCJ02=[],this._imageExtent=t.imageExtent,this._imageExtentGCJ02=V["GPS"].convertBBoxGCJ02(t.imageExtent),this._url=t.url,this._id=t.id,this.type=t.type||0,this._createImageLayer()}_createImageLayer(){let t=this._imageExtent;this.type&&(t=this._imageExtentGCJ02);const e=new O({source:new Y({url:this._url,projection:"EPSG:4326",imageExtent:t}),zIndex:9});this._imageLayer=e,this._id&&e.set("id",this._id),this._map.addLayer(this._imageLayer)}removeImageLayer(){this._map.removeLayer(this._imageLayer),this._imageLayer=null}get Id(){return this._id}bingEvent(){}clear(){}show(){this.isShowPolygon||(this._map.addLayer(this._imageLayer),this.isShowPolygon=!0)}hide(){this.isShowPolygon&&(this._map.removeLayer(this._imageLayer),this.isShowPolygon=!1)}setExtent(t,e=0){this.type=e,this._imageLayer.setExtent(this.isConvertLineGCJ02())}setZIndex(t){this._imageLayer.setZIndex(t)}selectGPS(t=0){this.type=t,this.removeImageLayer(),this._createImageLayer()}isConvertLineGCJ02(){return this.type?this._imageExtentGCJ02:this._imageExtent}set setType(t){this.type=t}}},b589:function(t,e,n){"use strict";function i(t,e,n,i){for(var r=0,o=t[n-i],s=t[n-i+1];e<n;e+=i){var a=t[e],l=t[e+1];r+=s*a-o*l,o=a,s=l}return r/2}function r(t,e,n,r){for(var o=0,s=0,a=n.length;s<a;++s){var l=n[s];o+=i(t,e,l,r),e=l}return o}function o(t,e,n,i){for(var o=0,s=0,a=n.length;s<a;++s){var l=n[s];o+=r(t,e,l,i),e=l[l.length-1]}return o}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o}))},b739:function(t,e,n){"use strict";var i=n("0af5"),r=n("256f"),o=n("7fc9"),s=10,a=.25,l=function(){function t(t,e,n,a,l,c){this.sourceProj_=t,this.targetProj_=e;var u={},h=Object(r["j"])(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return u[e]||(u[e]=h(t)),u[e]},this.maxSourceExtent_=a,this.errorThresholdSquared_=l*l,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!a&&!!this.sourceProj_.getExtent()&&Object(i["E"])(a)==Object(i["E"])(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(i["E"])(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(i["E"])(this.targetProj_.getExtent()):null;var p=Object(i["C"])(n),f=Object(i["D"])(n),d=Object(i["v"])(n),g=Object(i["u"])(n),y=this.transformInv_(p),_=this.transformInv_(f),v=this.transformInv_(d),m=this.transformInv_(g),b=s+(c?Math.max(0,Math.ceil(Object(o["f"])(Object(i["t"])(n)/(c*c*256*256)))):0);if(this.addQuad_(p,f,d,g,y,_,v,m,b),this.wrapsXInSource_){var O=1/0;this.triangles_.forEach((function(t,e,n){O=Math.min(O,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])-O>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]-O>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-O>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-O>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))}u={}}return t.prototype.addTriangle_=function(t,e,n,i,r,o){this.triangles_.push({source:[i,r,o],target:[t,e,n]})},t.prototype.addQuad_=function(t,e,n,r,s,l,c,u,h){var p=Object(i["b"])([s,l,c,u]),f=this.sourceWorldWidth_?Object(i["E"])(p)/this.sourceWorldWidth_:null,d=this.sourceWorldWidth_,g=this.sourceProj_.canWrapX()&&f>.5&&f<1,y=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var _=Object(i["b"])([t,e,n,r]),v=Object(i["E"])(_)/this.targetWorldWidth_;y=v>a||y}!g&&this.sourceProj_.isGlobal()&&f&&(y=f>a||y)}if(!(!y&&this.maxSourceExtent_&&isFinite(p[0])&&isFinite(p[1])&&isFinite(p[2])&&isFinite(p[3]))||Object(i["F"])(p,this.maxSourceExtent_)){var m=0;if(!y&&(!isFinite(s[0])||!isFinite(s[1])||!isFinite(l[0])||!isFinite(l[1])||!isFinite(c[0])||!isFinite(c[1])||!isFinite(u[0])||!isFinite(u[1])))if(h>0)y=!0;else if(m=(isFinite(s[0])&&isFinite(s[1])?0:8)+(isFinite(l[0])&&isFinite(l[1])?0:4)+(isFinite(c[0])&&isFinite(c[1])?0:2)+(isFinite(u[0])&&isFinite(u[1])?0:1),1!=m&&2!=m&&4!=m&&8!=m)return;if(h>0){if(!y){var b=[(t[0]+n[0])/2,(t[1]+n[1])/2],O=this.transformInv_(b),x=void 0;if(g){var w=(Object(o["g"])(s[0],d)+Object(o["g"])(c[0],d))/2;x=w-Object(o["g"])(O[0],d)}else x=(s[0]+c[0])/2-O[0];var C=(s[1]+c[1])/2-O[1],E=x*x+C*C;y=E>this.errorThresholdSquared_}if(y){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var S=[(e[0]+n[0])/2,(e[1]+n[1])/2],P=this.transformInv_(S),j=[(r[0]+t[0])/2,(r[1]+t[1])/2],T=this.transformInv_(j);this.addQuad_(t,e,S,j,s,l,P,T,h-1),this.addQuad_(j,S,n,r,T,P,c,u,h-1)}else{var M=[(t[0]+e[0])/2,(t[1]+e[1])/2],R=this.transformInv_(M),L=[(n[0]+r[0])/2,(n[1]+r[1])/2],A=this.transformInv_(L);this.addQuad_(t,M,L,r,s,R,A,u,h-1),this.addQuad_(M,e,n,L,R,l,c,A,h-1)}return}}if(g){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&m)&&this.addTriangle_(t,n,r,s,c,u),0==(14&m)&&this.addTriangle_(t,n,e,s,c,l),m&&(0==(13&m)&&this.addTriangle_(e,r,t,l,u,s),0==(7&m)&&this.addTriangle_(e,r,n,l,u,c))}},t.prototype.calculateSourceExtent=function(){var t=Object(i["j"])();return this.triangles_.forEach((function(e,n,r){var o=e.source;Object(i["q"])(t,o[0]),Object(i["q"])(t,o[1]),Object(i["q"])(t,o[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}();e["a"]=l},bab7:function(t,e,n){"use strict";n.r(e);var i=n("13e2");e["default"]={PI:3.141592653589793,x_pi:52.35987755982988,delta:function(t,e){const n=6378245,i=.006693421622965943;let r=this.transformLat(e-105,t-35),o=this.transformLon(e-105,t-35);const s=t/180*this.PI;let a=Math.sin(s);a=1-i*a*a;const l=Math.sqrt(a);return r=180*r/(n*(1-i)/(a*l)*this.PI),o=180*o/(n/l*Math.cos(s)*this.PI),{lat:r,lon:o}},gcj_encrypt:function(t,e){if(this.outOfChina(e,t))return{lon:t,lat:e};const n=this.delta(e,t);return{lon:t+n.lon,lat:e+n.lat}},gcj_decrypt:function(t,e){if(this.outOfChina(e,t))return{lon:t,lat:e};const n=this.delta(e,t);return{lon:t-n.lon,lat:e-n.lat}},gcj_decrypt_exact:function(t,e){const n=.01,i=1e-9;let r,o,s=n,a=n,l=e-s,c=t-a,u=e+s,h=t+a,p=0;const f=1;while(f){r=(l+u)/2,o=(c+h)/2;const n=this.gcj_encrypt(r,o);if(s=n.lat-e,a=n.lon-t,Math.abs(s)<i&&Math.abs(a)<i)break;if(s>0?u=r:l=r,a>0?h=o:c=o,++p>1e4)break}return{lat:r,lon:o}},bd_encrypt:function(t,e){const n=t,i=e,r=Math.sqrt(n*n+i*i)+2e-5*Math.sin(i*this.x_pi),o=Math.atan2(i,n)+3e-6*Math.cos(n*this.x_pi),s=r*Math.cos(o)+.0065,a=r*Math.sin(o)+.006;return{lat:s,lon:a}},bd_decrypt:function(t,e){const n=e-.0065,i=t-.006,r=Math.sqrt(n*n+i*i)-2e-5*Math.sin(i*this.x_pi),o=Math.atan2(i,n)-3e-6*Math.cos(n*this.x_pi),s=r*Math.cos(o),a=r*Math.sin(o);return{lat:a,lon:s}},distance:function(t,e,n,i){const r=6371e3,o=Math.cos(t*Math.PI/180)*Math.cos(n*Math.PI/180)*Math.cos((e-i)*Math.PI/180),s=Math.sin(t*Math.PI/180)*Math.sin(n*Math.PI/180);let a=o+s;a>1&&(a=1),a<-1&&(a=-1);const l=Math.acos(a),c=l*r;return c},outOfChina:function(t,e){return e<72.004||e>137.8347||(t<.8293||t>55.8271)},transformLat:function(t,e){let n=2*t-100+3*e+.2*e*e+.1*t*e+.2*Math.sqrt(Math.abs(t));return n+=2*(20*Math.sin(6*t*this.PI)+20*Math.sin(2*t*this.PI))/3,n+=2*(20*Math.sin(e*this.PI)+40*Math.sin(e/3*this.PI))/3,n+=2*(160*Math.sin(e/12*this.PI)+320*Math.sin(e*this.PI/30))/3,n},transformLon:function(t,e){let n=300+t+2*e+.1*t*t+.1*t*e+.1*Math.sqrt(Math.abs(t));return n+=2*(20*Math.sin(6*t*this.PI)+20*Math.sin(2*t*this.PI))/3,n+=2*(20*Math.sin(t*this.PI)+40*Math.sin(t/3*this.PI))/3,n+=2*(150*Math.sin(t/12*this.PI)+300*Math.sin(t/30*this.PI))/3,n},gauss:function(t,e){let n,i,r,o,s,a,l,c,u,h,p,f,d,g,y,_,v,m,b=0;return m=.0174532925199433,n=6,u=6378245,h=1/298.3,b=t/n,o=b*n+n/2,o*=m,i=t*m,r=e*m,p=2*h-h*h,f=p/(1-p),d=u/Math.sqrt(1-p*Math.sin(r)*Math.sin(r)),g=Math.tan(r)*Math.tan(r),y=f*Math.cos(r)*Math.cos(r),_=(i-o)*Math.cos(r),v=u*((1-p/4-3*p*p/64-5*p*p*p/256)*r-(3*p/8+3*p*p/32+45*p*p*p/1024)*Math.sin(2*r)+(15*p*p/256+45*p*p*p/1024)*Math.sin(4*r)-35*p*p*p/3072*Math.sin(6*r)),l=d*(_+(1-g+y)*_*_*_/6+(5-18*g+g*g+14*y-58*g*y)*_*_*_*_*_/120),c=v+d*Math.tan(r)*(_*_/2+(5-g+9*y+4*y*y)*_*_*_*_/24+(61-58*g+g*g+270*y-330*g*y)*_*_*_*_*_*_/720),s=1e6*(b+1)+5e5,a=0,l+=s,c+=a,{xval:l,yval:c}},wgsToBd:function(t,e){const n=this.gcj_encrypt(parseFloat(e.toString()),parseFloat(t.toString())),i=this.bd_encrypt(n.lon,n.lat);return i},bdToWgs:function(t,e){const n=this.bd_decrypt(e,t),i=this.gcj_decrypt(n.lat,n.lon);return i},convertGCJ02:function(t){const e=new Array,n=new Array,i=t.geometry.coordinates,r=t.bbox,o=t.properties,s=new Array;if(r)for(let a=0;a<2;a++){const t=this.gcj_encrypt(r[a+1],r[a+a]);e.push(t.lon,t.lat)}for(const a of i)for(const t of a){const{lat:e,lon:i}=this.gcj_encrypt(t[0],t[1]);n.push([i,e])}if(o&&o.center&&o.center.length){const{lat:t,lon:e}=this.gcj_encrypt(o.center[0],o.center[1]);s.push(e),s.push(t),o.center.properties=s}return t.bbox=e,t.geometry.coordinates=[n],t},convertWGS84(t){const e=new Array,n=new Array,i=new Array,r=t.geometry.coordinates,o=t.bbox,s=t.properties;if(o)for(let a=0;a<2;a++){const t=this.gcj_decrypt(o[a+1],o[a+a]);e.push(t.lon,t.lat)}for(const a of r)for(const t of a){const{lat:e,lon:i}=this.gcj_decrypt(t[0],t[1]);n.push([i,e])}if(s&&s.center&&s.center.length){const{lat:t,lon:e}=this.gcj_decrypt(s.center[0],s.center[1]);i.push(e),i.push(t),s.center.properties=i}return t.bbox=e,t.geometry.coordinates=[n],t},convertCoordinatesGCJ02(t){const e=[];for(const n of t)for(const t of n){const{lat:n,lon:r}=i["GPS"].gcj_encrypt(t[0],t[1]);e.push([r,n])}return[e]},convertCoordinatesWGS84(t){const e=[];for(const n of t)for(const t of n){const{lat:n,lon:r}=i["GPS"].gcj_decrypt(t[0],t[1]);e.push([r,n])}return[e]},convertBBoxWGS84(t){const e=[],{lat:n,lon:r}=i["GPS"].gcj_decrypt(t[0],t[1]),{lon:o,lat:s}=i["GPS"].gcj_decrypt(t[2],t[3]);return e.push(r),e.push(n),e.push(o),e.push(s),e},convertBBoxGCJ02(t){const e=[],{lat:n,lon:r}=i["GPS"].gcj_encrypt(t[0],t[1]),{lon:o,lat:s}=i["GPS"].gcj_encrypt(t[2],t[3]);return e.push(r),e.push(n),e.push(o),e.push(s),e},convertLineGCJ02(t){const e=[];for(const n of t){const{lat:t,lon:r}=i["GPS"].gcj_encrypt(n[0],n[1]);e.push([r,t])}return e},convertLineWGS84(t){const e=[];for(const n of t){const{lat:t,lon:r}=i["GPS"].gcj_decrypt(n[0],n[1]);e.push([r,t])}return e}}},bb6c:function(t,e,n){"use strict";function i(t,e,n,i,r){for(var o=void 0!==r?r:[],s=0,a=e;a<n;a+=i)o[s++]=t.slice(a,a+i);return o.length=s,o}function r(t,e,n,r,o){for(var s=void 0!==o?o:[],a=0,l=0,c=n.length;l<c;++l){var u=n[l];s[a++]=i(t,e,u,r,s[a]),e=u}return s.length=a,s}function o(t,e,n,i,o){for(var s=void 0!==o?o:[],a=0,l=0,c=n.length;l<c;++l){var u=n[l];s[a++]=r(t,e,u,i,s[a]),e=u[u.length-1]}return s.length=a,s}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o}))},beb2:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var i=n("6c77"),r=n("8295"),o=n("6cbf"),s=n("83a6"),a=n("3e6b"),l=n("55bd"),c=n("0af5");class u{constructor(t,e){this.callback=t,this.maxFeatureCount=0,this.vector=null,this.vectorSource=null,this.currentResolution=0,this.textFill=null,this.aggregationCallback=null,this.removeAggregationCallback=null,this.clearfeatureMap=new Map,this.featureMap=new Map,this.styleFunction=null,this.src=null,this.color=null,this.offsetX=0,this.offsetY=0,this.fontSize=null,this._fontFamily="Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif",this.text=e.text,this.textFill=null,this.aggregationCallback=e.aggregationCallback,this.removeAggregationCallback=e.removeAggregationCallback,this.src=e.src||null,this.fontSize=e.fontSize+"px"||"12px",this.offsetX=e.offsetX||0,this.offsetY=e.offsetY||0,this.color=e.color||"#fff",this._init(),this.styleFunction=(t,e)=>{const n=t.get("features").length;let s;if(e!=this.currentResolution&&(this.calculateClusterInfo(e,n),this.currentResolution=e),n>1)s=new i["c"]({text:new r["a"]({text:`${n.toString()}${this.text}`,fill:this.textFill,offsetX:this.offsetX,offsetY:this.offsetY,font:`${this.fontSize} ${this._fontFamily}`}),image:new o["a"]({src:this.src,crossOrigin:"anonymous"})});else{t.get("features")[0];s=null}return s}}_init(){this.textFill=new s["a"]({color:this.color})}calculateClusterInfo(t,e){this.maxFeatureCount=0;const n=this.vector.getSource().getFeatures();let i;for(let r=n.length-1;r>=0;--r){i=n[r];const e=i.get("features"),o=Object(c["j"])();let s,a,l=[];for(s=0,a=e.length;s<a;++s)this.callback&&(l.push(e[s]),this.callback(e[s],t,1==e.length)),Object(c["p"])(o,e[s].getGeometry().getExtent());this.aggregationCallback&&(e.length>1?this.aggregationCallback([...l]):this.removeAggregationCallback&&this.removeAggregationCallback(l[0])),l=[],this.maxFeatureCount=Math.max(this.maxFeatureCount,a)}}getVectorLayer(t,e=30){return this.vector=new a["a"]({zIndex:999,source:new l["a"]({distance:e,source:t}),style:this.styleFunction}),this.vector}}},beb7:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a})),n.d(e,"FeaturePolygonModel",(function(){return l}));var i=n("4cdf"),r=n("5831"),o=n("f403"),s=n("bab7");class a{constructor(t=0){this.gpsType=t,this._features=[],this._coordinates=[],this._coordinatesGCJ02C=[]}createPolygon(t,e){const n=t[0],r=t[1];this._coordinates.push([n,r]);const{lon:a,lat:l}=s["default"].gcj_encrypt(n,r);this._coordinatesGCJ02C.push([a,l]);const c=this.gpsType?[a,l]:[n,r],u=new i["a"](new o["a"](c));e&&u.setId(e),this._features.push(u)}getVectorSource(t){return t.forEach(t=>{this.createPolygon(t.coordinates,t.id)}),new r["a"]({features:this._features})}selectGPSAll(t=0){this.gpsType=t,this._features.forEach((e,n)=>{const i=t?this._coordinatesGCJ02C[n]:this._coordinates[n];e.setGeometry(new o["a"](i))})}}class l{constructor(t,e){this.coordinates=t,this.id=e}}},bef8:function(t,e,n){"use strict";function i(t,e,n,i,r,o){for(var s=o||[],a=0,l=e;l<n;l+=i){var c=t[l],u=t[l+1];s[a++]=r[0]*c+r[2]*u+r[4],s[a++]=r[1]*c+r[3]*u+r[5]}return o&&s.length!=a&&(s.length=a),s}function r(t,e,n,i,r,o,s){for(var a=s||[],l=Math.cos(r),c=Math.sin(r),u=o[0],h=o[1],p=0,f=e;f<n;f+=i){var d=t[f]-u,g=t[f+1]-h;a[p++]=u+d*l-g*c,a[p++]=h+d*c+g*l;for(var y=f+2;y<f+i;++y)a[p++]=t[y]}return s&&a.length!=p&&(a.length=p),a}function o(t,e,n,i,r,o,s,a){for(var l=a||[],c=s[0],u=s[1],h=0,p=e;p<n;p+=i){var f=t[p]-c,d=t[p+1]-u;l[h++]=c+r*f,l[h++]=u+o*d;for(var g=p+2;g<p+i;++g)l[h++]=t[g]}return a&&l.length!=h&&(l.length=h),l}function s(t,e,n,i,r,o,s){for(var a=s||[],l=0,c=e;c<n;c+=i){a[l++]=t[c]+r,a[l++]=t[c+1]+o;for(var u=c+2;u<c+i;++u)a[l++]=t[u]}return s&&a.length!=l&&(a.length=l),a}n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return s}))},bf62:function(t,e,n){"use strict";e["a"]={ACTIVE:"active"}},c12a:function(t,e,n){"use strict";n.r(e),n.d(e,"MapTypeEnum",(function(){return i})),n.d(e,"MapLayersEnum",(function(){return r}));var i,r,o=n("5eee"),s=n("5c9f"),a=function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{l(i.next(t))}catch(e){o(e)}}function a(t){try{l(i["throw"](t))}catch(e){o(e)}}function l(t){t.done?n(t.value):r(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())}))};(function(t){t[t["TMap"]=0]="TMap",t[t["GDMap"]=1]="GDMap",t[t["BINGMap"]=2]="BINGMap",t[t["BDMap"]=3]="BDMap",t[t["ARGMap"]=4]="ARGMap"})(i||(i={})),function(t){t[t["VectorLayer"]=0]="VectorLayer",t[t["SatelliteLayer"]=1]="SatelliteLayer",t[t["LlendLayer"]=2]="LlendLayer"}(r||(r={})),e["default"]=class{constructor(t){this.mapOptians=t,this._ele=null,this._map=null,this._layresMap=new Map,this._lastLayres=[],this._layeTypeLength=0,this._initMapLayers()}_initMapLayers(){this._layresMap.clear(),this._layresMap.set(i.TMap,s["default"].TMapLayerArr),this._layresMap.set(i.GDMap,s["default"].GMapLayerArr),this._layresMap.set(i.BINGMap,s["default"].BingLayers),this._layresMap.set(i.BDMap,s["default"].BDMapLayerArr)}get getMapTypeLength(){return this._layresMap.size}get getLayeTypeLength(){return this._layeTypeLength}onLoad(t,e=0,n=2){return a(this,void 0,void 0,(function*(){return this._ele=t,yield new Promise((i,r)=>{const s=this.getMapLayres(e,n);this._lastLayres=s;const a=new o["a"](Object.assign({target:t},Object.assign(Object.assign({},this.mapOptians),{layers:s})));this._map=a,console.log(s),a?i({map:a,layers:s}):r(null)})}))}getMapLayres(t,e){if(this._layresMap.has(t)){const n=this._layresMap.get(t);return this._layeTypeLength=n.length,n[e]}return[]}selectLayers(t,e){if(this.removeLayers(),this._layresMap.has(t)){const n=this.getMapLayres(t,e);return this._lastLayres=n,this.setLayers(n),n}return[]}get getLayers(){return this._lastLayres}setLayers(t){t.forEach(t=>{this.olMap.addLayer(t)})}removeLayers(){this._lastLayres.forEach(t=>{this._map.removeLayer(t),t=null})}get olMap(){return this._map}get layresMap(){return this._layresMap}get ele(){return this._ele}}},c560:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return u}));var i=n("0af5"),r=n("fd4d"),o=n("25f1");function s(t,e,n,o,s){var a=Object(i["r"])(Object(i["j"])(),t,e,n,o);return!!Object(i["F"])(s,a)&&(!!Object(i["g"])(s,a)||(a[0]>=s[0]&&a[2]<=s[2]||(a[1]>=s[1]&&a[3]<=s[3]||Object(r["a"])(t,e,n,o,(function(t,e){return Object(i["G"])(s,t,e)})))))}function a(t,e,n,i,r){for(var o=0,a=n.length;o<a;++o){if(s(t,e,n[o],i,r))return!0;e=n[o]}return!1}function l(t,e,n,i,r){return!!s(t,e,n,i,r)||(!!Object(o["b"])(t,e,n,i,r[0],r[1])||(!!Object(o["b"])(t,e,n,i,r[0],r[3])||(!!Object(o["b"])(t,e,n,i,r[2],r[1])||!!Object(o["b"])(t,e,n,i,r[2],r[3]))))}function c(t,e,n,i,r){if(!l(t,e,n[0],i,r))return!1;if(1===n.length)return!0;for(var a=1,c=n.length;a<c;++a)if(Object(o["a"])(t,n[a-1],n[a],i,r)&&!s(t,n[a-1],n[a],i,r))return!1;return!0}function u(t,e,n,i,r){for(var o=0,s=n.length;o<s;++o){var a=n[o];if(c(t,e,a,i,r))return!0;e=a[a.length-1]}return!1}},c807:function(t,e,n){"use strict";var i=n("e300"),r=n("183a"),o=n("cef7"),s=n("01d4"),a=n("4cdf"),l=n("0b2d"),c=n("f403"),u=n("4105"),h=n("4a7d"),p=n("a43f"),f=n("3e6b"),d=n("5831"),g=n("06f8"),y=n("0af5"),_=n("a568"),v=n("6c77"),m=n("9f5e"),b=n("5bc3"),O=n("256f"),x=n("1300"),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)}}(),C=0,E=1,S=[0,0,0,0],P=[],j={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"},T=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.features=n,r.mapBrowserEvent=i,r}return w(e,t),e}(o["a"]),M=function(t){function e(e){var n,o=t.call(this,e)||this;if(o.on,o.once,o.un,o.boundHandleFeatureChange_=o.handleFeatureChange_.bind(o),o.condition_=e.condition?e.condition:g["i"],o.defaultDeleteCondition_=function(t){return Object(g["b"])(t)&&Object(g["k"])(t)},o.deleteCondition_=e.deleteCondition?e.deleteCondition:o.defaultDeleteCondition_,o.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:g["d"],o.vertexFeature_=null,o.vertexSegments_=null,o.lastPixel_=[0,0],o.ignoreNextSingleClick_=!1,o.featuresBeingModified_=null,o.rBush_=new h["a"],o.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,o.snappedToVertex_=!1,o.changingFeature_=!1,o.dragSegments_=[],o.overlay_=new f["a"]({source:new d["a"]({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:I(),updateWhileAnimating:!0,updateWhileInteracting:!0}),o.SEGMENT_WRITERS_={Point:o.writePointGeometry_.bind(o),LineString:o.writeLineStringGeometry_.bind(o),LinearRing:o.writeLineStringGeometry_.bind(o),Polygon:o.writePolygonGeometry_.bind(o),MultiPoint:o.writeMultiPointGeometry_.bind(o),MultiLineString:o.writeMultiLineStringGeometry_.bind(o),MultiPolygon:o.writeMultiPolygonGeometry_.bind(o),Circle:o.writeCircleGeometry_.bind(o),GeometryCollection:o.writeGeometryCollectionGeometry_.bind(o)},o.source_=null,o.hitDetection_=null,e.features?n=e.features:e.source&&(o.source_=e.source,n=new i["a"](o.source_.getFeatures()),o.source_.addEventListener(p["a"].ADDFEATURE,o.handleSourceAdd_.bind(o)),o.source_.addEventListener(p["a"].REMOVEFEATURE,o.handleSourceRemove_.bind(o))),!n)throw new Error("The modify interaction requires features, a source or a layer");return e.hitDetection&&(o.hitDetection_=e.hitDetection),o.features_=n,o.features_.forEach(o.addFeature_.bind(o)),o.features_.addEventListener(r["a"].ADD,o.handleFeatureAdd_.bind(o)),o.features_.addEventListener(r["a"].REMOVE,o.handleFeatureRemove_.bind(o)),o.lastPointerEvent_=null,o.delta_=[0,0],o.snapToPointer_=void 0===e.snapToPointer?!o.hitDetection_:e.snapToPointer,o}return w(e,t),e.prototype.addFeature_=function(t){var e=t.getGeometry();if(e){var n=this.SEGMENT_WRITERS_[e.getType()];n&&n(t,e)}var i=this.getMap();i&&i.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,i),t.addEventListener(s["a"].CHANGE,this.boundHandleFeatureChange_)},e.prototype.willModifyFeatures_=function(t,e){if(!this.featuresBeingModified_){this.featuresBeingModified_=new i["a"];for(var n=this.featuresBeingModified_.getArray(),r=0,o=e.length;r<o;++r)for(var s=e[r],a=0,l=s.length;a<l;++a){var c=s[a].feature;c&&-1===n.indexOf(c)&&this.featuresBeingModified_.push(c)}0===this.featuresBeingModified_.getLength()?this.featuresBeingModified_=null:this.dispatchEvent(new T(j.MODIFYSTART,this.featuresBeingModified_,t))}},e.prototype.removeFeature_=function(t){this.removeFeatureSegmentData_(t),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.removeEventListener(s["a"].CHANGE,this.boundHandleFeatureChange_)},e.prototype.removeFeatureSegmentData_=function(t){var e=this.rBush_,n=[];e.forEach((function(e){t===e.feature&&n.push(e)}));for(var i=n.length-1;i>=0;--i){for(var r=n[i],o=this.dragSegments_.length-1;o>=0;--o)this.dragSegments_[o][0]===r&&this.dragSegments_.splice(o,1);e.remove(r)}},e.prototype.setActive=function(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.prototype.setActive.call(this,e)},e.prototype.setMap=function(e){this.overlay_.setMap(e),t.prototype.setMap.call(this,e)},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleSourceAdd_=function(t){t.feature&&this.features_.push(t.feature)},e.prototype.handleSourceRemove_=function(t){t.feature&&this.features_.remove(t.feature)},e.prototype.handleFeatureAdd_=function(t){this.addFeature_(t.element)},e.prototype.handleFeatureChange_=function(t){if(!this.changingFeature_){var e=t.target;this.removeFeature_(e),this.addFeature_(e)}},e.prototype.handleFeatureRemove_=function(t){var e=t.element;this.removeFeature_(e)},e.prototype.writePointGeometry_=function(t,e){var n=e.getCoordinates(),i={feature:t,geometry:e,segment:[n,n]};this.rBush_.insert(e.getExtent(),i)},e.prototype.writeMultiPointGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i){var o=n[i],s={feature:t,geometry:e,depth:[i],index:i,segment:[o,o]};this.rBush_.insert(e.getExtent(),s)}},e.prototype.writeLineStringGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length-1;i<r;++i){var o=n.slice(i,i+2),s={feature:t,geometry:e,index:i,segment:o};this.rBush_.insert(Object(y["b"])(o),s)}},e.prototype.writeMultiLineStringGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],s=0,a=o.length-1;s<a;++s){var l=o.slice(s,s+2),c={feature:t,geometry:e,depth:[i],index:s,segment:l};this.rBush_.insert(Object(y["b"])(l),c)}},e.prototype.writePolygonGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],s=0,a=o.length-1;s<a;++s){var l=o.slice(s,s+2),c={feature:t,geometry:e,depth:[i],index:s,segment:l};this.rBush_.insert(Object(y["b"])(l),c)}},e.prototype.writeMultiPolygonGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],s=0,a=o.length;s<a;++s)for(var l=o[s],c=0,u=l.length-1;c<u;++c){var h=l.slice(c,c+2),p={feature:t,geometry:e,depth:[s,i],index:c,segment:h};this.rBush_.insert(Object(y["b"])(h),p)}},e.prototype.writeCircleGeometry_=function(t,e){var n=e.getCenter(),i={feature:t,geometry:e,index:C,segment:[n,n]},r={feature:t,geometry:e,index:E,segment:[n,n]},o=[i,r];i.featureSegments=o,r.featureSegments=o,this.rBush_.insert(Object(y["m"])(n),i);var s=e,a=Object(O["l"])();if(a&&this.getMap()){var l=this.getMap().getView().getProjection();s=s.clone().transform(a,l),s=Object(b["b"])(s).transform(l,a)}this.rBush_.insert(s.getExtent(),r)},e.prototype.writeGeometryCollectionGeometry_=function(t,e){for(var n=e.getGeometriesArray(),i=0;i<n.length;++i){var r=n[i],o=this.SEGMENT_WRITERS_[r.getType()];o(t,r)}},e.prototype.createOrUpdateVertexFeature_=function(t,e,n){var i=this.vertexFeature_;if(i){var r=i.getGeometry();r.setCoordinates(t)}else i=new a["a"](new c["a"](t)),this.vertexFeature_=i,this.overlay_.getSource().addFeature(i);return i.set("features",e),i.set("geometries",n),i},e.prototype.handleEvent=function(e){return!e.originalEvent||(this.lastPointerEvent_=e,e.map.getView().getInteracting()||e.type!=l["a"].POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),this.vertexFeature_&&this.deleteCondition_(e)&&(n=!(e.type!=l["a"].SINGLECLICK||!this.ignoreNextSingleClick_)||this.removePoint()),e.type==l["a"].SINGLECLICK&&(this.ignoreNextSingleClick_=!1),t.prototype.handleEvent.call(this,e)&&!n);var n},e.prototype.handleDragEvent=function(t){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(t,this.dragSegments_);for(var e=[t.coordinate[0]+this.delta_[0],t.coordinate[1]+this.delta_[1]],n=[],i=[],r=0,o=this.dragSegments_.length;r<o;++r){var s=this.dragSegments_[r],a=s[0],l=a.feature;-1===n.indexOf(l)&&n.push(l);var c=a.geometry;-1===i.indexOf(c)&&i.push(c);var u=a.depth,h=void 0,p=a.segment,f=s[1];while(e.length<c.getStride())e.push(p[f][e.length]);switch(c.getType()){case"Point":h=e,p[0]=e,p[1]=e;break;case"MultiPoint":h=c.getCoordinates(),h[a.index]=e,p[0]=e,p[1]=e;break;case"LineString":h=c.getCoordinates(),h[a.index+f]=e,p[f]=e;break;case"MultiLineString":h=c.getCoordinates(),h[u[0]][a.index+f]=e,p[f]=e;break;case"Polygon":h=c.getCoordinates(),h[u[0]][a.index+f]=e,p[f]=e;break;case"MultiPolygon":h=c.getCoordinates(),h[u[1]][u[0]][a.index+f]=e,p[f]=e;break;case"Circle":if(p[0]=e,p[1]=e,a.index===C)this.changingFeature_=!0,c.setCenter(e),this.changingFeature_=!1;else{this.changingFeature_=!0;var d=t.map.getView().getProjection(),g=Object(_["d"])(Object(O["e"])(c.getCenter(),d),Object(O["e"])(e,d)),y=Object(O["l"])();if(y){var v=c.clone().transform(y,d);v.setRadius(g),g=v.transform(d,y).getRadius()}c.setRadius(g),this.changingFeature_=!1}break;default:}h&&this.setGeometryCoordinates_(c,h)}this.createOrUpdateVertexFeature_(e,n,i)},e.prototype.handleDownEvent=function(t){if(!this.condition_(t))return!1;var e=t.coordinate;this.handlePointerAtPixel_(t.pixel,t.map,e),this.dragSegments_.length=0,this.featuresBeingModified_=null;var n=this.vertexFeature_;if(n){var i=t.map.getView().getProjection(),r=[],o=n.getGeometry().getCoordinates(),s=Object(y["b"])([o]),a=this.rBush_.getInExtent(s),l={};a.sort(R);for(var c=0,u=a.length;c<u;++c){var h=a[c],p=h.segment,f=Object(x["c"])(h.geometry),d=h.depth;if(d&&(f+="-"+d.join("-")),l[f]||(l[f]=new Array(2)),"Circle"!==h.geometry.getType()||h.index!==E)if(!Object(_["e"])(p[0],o)||l[f][0])if(!Object(_["e"])(p[1],o)||l[f][1])Object(x["c"])(p)in this.vertexSegments_&&!l[f][0]&&!l[f][1]&&this.insertVertexCondition_(t)&&r.push(h);else{if(l[f][0]&&0===l[f][0].index){var g=h.geometry.getCoordinates();switch(h.geometry.getType()){case"LineString":case"MultiLineString":continue;case"MultiPolygon":g=g[d[1]];case"Polygon":if(h.index!==g[d[0]].length-2)continue;break;default:}}this.dragSegments_.push([h,1]),l[f][1]=h}else this.dragSegments_.push([h,0]),l[f][0]=h;else{var v=A(e,h,i);Object(_["e"])(v,o)&&!l[f][0]&&(this.dragSegments_.push([h,0]),l[f][0]=h)}}r.length&&this.willModifyFeatures_(t,[r]);for(var m=r.length-1;m>=0;--m)this.insertVertex_(r[m],o)}return!!this.vertexFeature_},e.prototype.handleUpEvent=function(t){for(var e=this.dragSegments_.length-1;e>=0;--e){var n=this.dragSegments_[e][0],i=n.geometry;if("Circle"===i.getType()){var r=i.getCenter(),o=n.featureSegments[0],s=n.featureSegments[1];o.segment[0]=r,o.segment[1]=r,s.segment[0]=r,s.segment[1]=r,this.rBush_.update(Object(y["m"])(r),o);var a=i,l=Object(O["l"])();if(l){var c=t.map.getView().getProjection();a=a.clone().transform(l,c),a=Object(b["b"])(a).transform(c,l)}this.rBush_.update(a.getExtent(),s)}else this.rBush_.update(Object(y["b"])(n.segment),n)}return this.featuresBeingModified_&&(this.dispatchEvent(new T(j.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null),!1},e.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map,t.coordinate)},e.prototype.handlePointerAtPixel_=function(t,e,n){var i,r,o=this,s=n||e.getCoordinateFromPixel(t),a=e.getView().getProjection(),l=function(t,e){return L(s,t,a)-L(s,e,a)};if(this.hitDetection_){var c="object"===typeof this.hitDetection_?function(t){return t===o.hitDetection_}:void 0;e.forEachFeatureAtPixel(t,(function(t,e,n){if(n=n||t.getGeometry(),"Point"===n.getType()&&Object(m["d"])(o.features_.getArray(),t)){r=n;var s=n.getFlatCoordinates().slice(0,2);i=[{feature:t,geometry:n,segment:[s,s]}]}return!0}),{layerFilter:c})}if(!i){var u=Object(O["f"])(Object(y["m"])(s,S),a),h=e.getView().getResolution()*this.pixelTolerance_,p=Object(O["n"])(Object(y["c"])(u,h,S),a);i=this.rBush_.getInExtent(p)}if(i&&i.length>0){var f=i.sort(l)[0],d=f.segment,g=A(s,f,a),v=e.getPixelFromCoordinate(g),b=Object(_["d"])(t,v);if(r||b<=this.pixelTolerance_){var w={};if(w[Object(x["c"])(d)]=!0,this.snapToPointer_||(this.delta_[0]=g[0]-s[0],this.delta_[1]=g[1]-s[1]),"Circle"===f.geometry.getType()&&f.index===E)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(g,[f.feature],[f.geometry]);else{var C=e.getPixelFromCoordinate(d[0]),P=e.getPixelFromCoordinate(d[1]),j=Object(_["i"])(v,C),T=Object(_["i"])(v,P);b=Math.sqrt(Math.min(j,T)),this.snappedToVertex_=b<=this.pixelTolerance_,this.snappedToVertex_&&(g=j>T?d[1]:d[0]),this.createOrUpdateVertexFeature_(g,[f.feature],[f.geometry]);var M={};M[Object(x["c"])(f.geometry)]=!0;for(var R=1,I=i.length;R<I;++R){var k=i[R].segment;if(!(Object(_["e"])(d[0],k[0])&&Object(_["e"])(d[1],k[1])||Object(_["e"])(d[0],k[1])&&Object(_["e"])(d[1],k[0])))break;var F=Object(x["c"])(i[R].geometry);F in M||(M[F]=!0,w[Object(x["c"])(k)]=!0)}}return void(this.vertexSegments_=w)}}this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)},e.prototype.insertVertex_=function(t,e){var n,i=t.segment,r=t.feature,o=t.geometry,s=t.depth,a=t.index;while(e.length<o.getStride())e.push(0);switch(o.getType()){case"MultiLineString":n=o.getCoordinates(),n[s[0]].splice(a+1,0,e);break;case"Polygon":n=o.getCoordinates(),n[s[0]].splice(a+1,0,e);break;case"MultiPolygon":n=o.getCoordinates(),n[s[1]][s[0]].splice(a+1,0,e);break;case"LineString":n=o.getCoordinates(),n.splice(a+1,0,e);break;default:return}this.setGeometryCoordinates_(o,n);var l=this.rBush_;l.remove(t),this.updateSegmentIndices_(o,a,s,1);var c={segment:[i[0],e],feature:r,geometry:o,depth:s,index:a};l.insert(Object(y["b"])(c.segment),c),this.dragSegments_.push([c,1]);var u={segment:[e,i[1]],feature:r,geometry:o,depth:s,index:a+1};l.insert(Object(y["b"])(u.segment),u),this.dragSegments_.push([u,0]),this.ignoreNextSingleClick_=!0},e.prototype.removePoint=function(){if(this.lastPointerEvent_&&this.lastPointerEvent_.type!=l["a"].POINTERDRAG){var t=this.lastPointerEvent_;this.willModifyFeatures_(t,this.dragSegments_);var e=this.removeVertex_();return this.featuresBeingModified_&&this.dispatchEvent(new T(j.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null,e}return!1},e.prototype.removeVertex_=function(){var t,e,n,i,r,o,s,a,l,c,u,h=this.dragSegments_,p={},f=!1;for(r=h.length-1;r>=0;--r)n=h[r],c=n[0],u=Object(x["c"])(c.feature),c.depth&&(u+="-"+c.depth.join("-")),u in p||(p[u]={}),0===n[1]?(p[u].right=c,p[u].index=c.index):1==n[1]&&(p[u].left=c,p[u].index=c.index+1);for(u in p){switch(l=p[u].right,s=p[u].left,o=p[u].index,a=o-1,c=void 0!==s?s:l,a<0&&(a=0),i=c.geometry,e=i.getCoordinates(),t=e,f=!1,i.getType()){case"MultiLineString":e[c.depth[0]].length>2&&(e[c.depth[0]].splice(o,1),f=!0);break;case"LineString":e.length>2&&(e.splice(o,1),f=!0);break;case"MultiPolygon":t=t[c.depth[1]];case"Polygon":t=t[c.depth[0]],t.length>4&&(o==t.length-1&&(o=0),t.splice(o,1),f=!0,0===o&&(t.pop(),t.push(t[0]),a=t.length-1));break;default:}if(f){this.setGeometryCoordinates_(i,e);var d=[];if(void 0!==s&&(this.rBush_.remove(s),d.push(s.segment[0])),void 0!==l&&(this.rBush_.remove(l),d.push(l.segment[1])),void 0!==s&&void 0!==l){var g={depth:c.depth,feature:c.feature,geometry:c.geometry,index:a,segment:d};this.rBush_.insert(Object(y["b"])(g.segment),g)}this.updateSegmentIndices_(i,o,c.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),h.length=0}}return f},e.prototype.setGeometryCoordinates_=function(t,e){this.changingFeature_=!0,t.setCoordinates(e),this.changingFeature_=!1},e.prototype.updateSegmentIndices_=function(t,e,n,i){this.rBush_.forEachInExtent(t.getExtent(),(function(r){r.geometry===t&&(void 0===n||void 0===r.depth||Object(m["b"])(r.depth,n))&&r.index>e&&(r.index+=i)}))},e}(u["b"]);function R(t,e){return t.index-e.index}function L(t,e,n){var i=e.geometry;if("Circle"===i.getType()){var r=i;if(e.index===E){var o=Object(O["l"])();o&&(r=r.clone().transform(o,n));var s=Object(_["i"])(r.getCenter(),Object(O["e"])(t,n)),a=Math.sqrt(s)-r.getRadius();return a*a}}var l=Object(O["e"])(t,n);return P[0]=Object(O["e"])(e.segment[0],n),P[1]=Object(O["e"])(e.segment[1],n),Object(_["j"])(l,P)}function A(t,e,n){var i=e.geometry;if("Circle"===i.getType()&&e.index===E){var r=i,o=Object(O["l"])();return o&&(r=r.clone().transform(o,n)),Object(O["m"])(r.getClosestPoint(Object(O["e"])(t,n)),n)}var s=Object(O["e"])(t,n);return P[0]=Object(O["e"])(e.segment[0],n),P[1]=Object(O["e"])(e.segment[1],n),Object(O["m"])(Object(_["c"])(s,P),n)}function I(){var t=Object(v["b"])();return function(e,n){return t["Point"]}}e["a"]=M},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},ca42:function(t,e,n){"use strict";function i(t){return Math.pow(t,3)}function r(t){return 1-i(1-t)}function o(t){return 3*t*t-2*t*t*t}function s(t){return t}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s}))},cb76:function(t,e,n){"use strict";var i=n("4105"),r=n("57cb"),o=n("06f8"),s=n("ca42"),a=n("a568"),l=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)}}(),c=function(t){function e(e){var n=t.call(this,{stopDown:r["a"]})||this,i=e||{};n.kinetic_=i.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1;var s=i.condition?i.condition:Object(o["a"])(o["h"],o["i"]);return n.condition_=i.onFocusOnly?Object(o["a"])(o["e"],s):s,n.noKinetic_=!1,n}return l(e,t),e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,n=Object(i["a"])(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var r=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],o=t.map,s=o.getView();Object(a["h"])(r,s.getResolution()),Object(a["g"])(r,s.getRotation()),s.adjustCenterInternal(r)}}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(),r=this.kinetic_.getAngle(),o=n.getCenterInternal(),a=e.getPixelFromCoordinateInternal(o),l=e.getCoordinateFromPixelInternal([a[0]-i*Math.cos(r),a[1]-i*Math.sin(r)]);n.animateInternal({center:n.getConstrainedCenter(l),duration:500,easing:s["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}(i["b"]);e["a"]=c},cd7e:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a})),n.d(e,"f",(function(){return u}));var i="ol-hidden",r="ol-selectable",o="ol-unselectable",s="ol-control",a="ol-collapsed",l=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),c=["style","variant","weight","size","lineHeight","family"],u=function(t){var e=t.match(l);if(!e)return null;for(var n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},i=0,r=c.length;i<r;++i){var o=e[i+1];void 0!==o&&(n[c[i]]=o)}return n.families=n.family.split(/,\s?/),n}},ce2c:function(t,e,n){"use strict";var i=n("869f"),r=n("ab35"),o=n("5c38"),s=n("e98d"),a=n("0999"),l=n("ddea"),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)}}(),u=function(t){function e(e){var n=this,i=void 0!==e.rotateWithView&&e.rotateWithView;return n=t.call(this,{opacity:1,rotateWithView:i,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode})||this,n.canvas_=void 0,n.hitDetectionCanvas_=null,n.fill_=void 0!==e.fill?e.fill:null,n.origin_=[0,0],n.points_=e.points,n.radius_=void 0!==e.radius?e.radius:e.radius1,n.radius2_=e.radius2,n.angle_=void 0!==e.angle?e.angle:0,n.stroke_=void 0!==e.stroke?e.stroke:null,n.size_=null,n.renderOptions_=null,n.render(),n}return c(e,t),e.prototype.clone=function(){var t=this.getScale(),n=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var e=this.getDisplacement();return[t[0]/2-e[0],t[1]/2+e[1]]},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.setFill=function(t){this.fill_=t,this.render()},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var e=this.canvas_[t];if(!e){var n=this.renderOptions_,i=Object(a["a"])(n.size*t,n.size*t);this.draw_(n,i,t),e=i.canvas,this.canvas_[t]=e}return e},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return i["a"].LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.setStroke=function(t){this.stroke_=t,this.render()},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.calculateLineJoinSize_=function(t,e,n){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;var i=this.radius_,r=void 0===this.radius2_?i:this.radius2_;if(i<r){var o=i;i=r,r=o}var s=void 0===this.radius2_?this.points_:2*this.points_,a=2*Math.PI/s,l=r*Math.sin(a),c=Math.sqrt(r*r-l*l),u=i-c,h=Math.sqrt(l*l+u*u),p=h/l;if("miter"===t&&p<=n)return p*e;var f=e/2/p,d=e/2*(u/h),g=Math.sqrt((i+f)*(i+f)+d*d),y=g-i;if(void 0===this.radius2_||"bevel"===t)return 2*y;var _=i*Math.sin(a),v=Math.sqrt(i*i-_*_),m=r-v,b=Math.sqrt(_*_+m*m),O=b/_;if(O<=n){var x=O*e/2-r-i;return 2*Math.max(y,x)}return 2*y},e.prototype.createRenderOptions=function(){var t,e=l["g"],n=0,i=null,r=0,o=0;this.stroke_&&(t=this.stroke_.getColor(),null===t&&(t=l["k"]),t=Object(s["a"])(t),o=this.stroke_.getWidth(),void 0===o&&(o=l["h"]),i=this.stroke_.getLineDash(),r=this.stroke_.getLineDashOffset(),e=this.stroke_.getLineJoin(),void 0===e&&(e=l["g"]),n=this.stroke_.getMiterLimit(),void 0===n&&(n=l["i"]));var a=this.calculateLineJoinSize_(e,o,n),c=Math.max(this.radius_,this.radius2_||0),u=Math.ceil(2*c+a);return{strokeStyle:t,strokeWidth:o,size:u,lineDash:i,lineDashOffset:r,lineJoin:e,miterLimit:n}},e.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var t=this.renderOptions_.size;this.canvas_={},this.size_=[t,t]},e.prototype.draw_=function(t,e,n){if(e.scale(n,n),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){var i=this.fill_.getColor();null===i&&(i=l["b"]),e.fillStyle=Object(s["a"])(i),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,e.setLineDash&&t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e.prototype.createHitDetectionCanvas_=function(t){if(this.fill_){var e=this.fill_.getColor(),n=0;if("string"===typeof e&&(e=Object(o["a"])(e)),null===e?n=1:Array.isArray(e)&&(n=4===e.length?e[3]:1),0===n){var i=Object(a["a"])(t.size,t.size);this.hitDetectionCanvas_=i.canvas,this.drawHitDetectionCanvas_(t,i)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},e.prototype.createPath_=function(t){var e=this.points_,n=this.radius_;if(e===1/0)t.arc(0,0,n,0,2*Math.PI);else{var i=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(e*=2);for(var r=this.angle_-Math.PI/2,o=2*Math.PI/e,s=0;s<e;s++){var a=r+s*o,l=s%2===0?n:i;t.lineTo(l*Math.cos(a),l*Math.sin(a))}t.closePath()}},e.prototype.drawHitDetectionCanvas_=function(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=l["b"],e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e}(r["a"]),h=u,p=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=e||{};return t.call(this,{points:1/0,fill:n.fill,radius:n.radius,stroke:n.stroke,scale:void 0!==n.scale?n.scale:1,rotation:void 0!==n.rotation?n.rotation:0,rotateWithView:void 0!==n.rotateWithView&&n.rotateWithView,displacement:void 0!==n.displacement?n.displacement:[0,0],declutterMode:n.declutterMode})||this}return p(e,t),e.prototype.clone=function(){var t=this.getScale(),n=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(h);e["a"]=f},cef7:function(t,e,n){"use strict";var i=function(){function t(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}return t.prototype.preventDefault=function(){this.defaultPrevented=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}();e["a"]=i},d30b:function(t,e,n){"use strict";n.r(e),n.d(e,"earthRadius",(function(){return i})),n.d(e,"factors",(function(){return r})),n.d(e,"unitsFactors",(function(){return o})),n.d(e,"areaFactors",(function(){return s})),n.d(e,"feature",(function(){return a})),n.d(e,"geometry",(function(){return l})),n.d(e,"point",(function(){return c})),n.d(e,"points",(function(){return u})),n.d(e,"polygon",(function(){return h})),n.d(e,"polygons",(function(){return p})),n.d(e,"lineString",(function(){return f})),n.d(e,"lineStrings",(function(){return d})),n.d(e,"featureCollection",(function(){return g})),n.d(e,"multiLineString",(function(){return y})),n.d(e,"multiPoint",(function(){return _})),n.d(e,"multiPolygon",(function(){return v})),n.d(e,"geometryCollection",(function(){return m})),n.d(e,"round",(function(){return b})),n.d(e,"radiansToLength",(function(){return O})),n.d(e,"lengthToRadians",(function(){return x})),n.d(e,"lengthToDegrees",(function(){return w})),n.d(e,"bearingToAzimuth",(function(){return C})),n.d(e,"radiansToDegrees",(function(){return E})),n.d(e,"degreesToRadians",(function(){return S})),n.d(e,"convertLength",(function(){return P})),n.d(e,"convertArea",(function(){return j})),n.d(e,"isNumber",(function(){return T})),n.d(e,"isObject",(function(){return M})),n.d(e,"validateBBox",(function(){return R})),n.d(e,"validateId",(function(){return L}));var i=6371008.8,r={centimeters:100*i,centimetres:100*i,degrees:i/111325,feet:3.28084*i,inches:39.37*i,kilometers:i/1e3,kilometres:i/1e3,meters:i,metres:i,miles:i/1609.344,millimeters:1e3*i,millimetres:1e3*i,nauticalmiles:i/1852,radians:1,yards:1.0936*i},o={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/i,yards:1.0936133},s={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function a(t,e,n){void 0===n&&(n={});var i={type:"Feature"};return(0===n.id||n.id)&&(i.id=n.id),n.bbox&&(i.bbox=n.bbox),i.properties=e||{},i.geometry=t,i}function l(t,e,n){switch(void 0===n&&(n={}),t){case"Point":return c(e).geometry;case"LineString":return f(e).geometry;case"Polygon":return h(e).geometry;case"MultiPoint":return _(e).geometry;case"MultiLineString":return y(e).geometry;case"MultiPolygon":return v(e).geometry;default:throw new Error(t+" is invalid")}}function c(t,e,n){if(void 0===n&&(n={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!T(t[0])||!T(t[1]))throw new Error("coordinates must contain numbers");var i={type:"Point",coordinates:t};return a(i,e,n)}function u(t,e,n){return void 0===n&&(n={}),g(t.map((function(t){return c(t,e)})),n)}function h(t,e,n){void 0===n&&(n={});for(var i=0,r=t;i<r.length;i++){var o=r[i];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var s=0;s<o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error("First and last Position are not equivalent.")}var l={type:"Polygon",coordinates:t};return a(l,e,n)}function p(t,e,n){return void 0===n&&(n={}),g(t.map((function(t){return h(t,e)})),n)}function f(t,e,n){if(void 0===n&&(n={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");var i={type:"LineString",coordinates:t};return a(i,e,n)}function d(t,e,n){return void 0===n&&(n={}),g(t.map((function(t){return f(t,e)})),n)}function g(t,e){void 0===e&&(e={});var n={type:"FeatureCollection"};return e.id&&(n.id=e.id),e.bbox&&(n.bbox=e.bbox),n.features=t,n}function y(t,e,n){void 0===n&&(n={});var i={type:"MultiLineString",coordinates:t};return a(i,e,n)}function _(t,e,n){void 0===n&&(n={});var i={type:"MultiPoint",coordinates:t};return a(i,e,n)}function v(t,e,n){void 0===n&&(n={});var i={type:"MultiPolygon",coordinates:t};return a(i,e,n)}function m(t,e,n){void 0===n&&(n={});var i={type:"GeometryCollection",geometries:t};return a(i,e,n)}function b(t,e){if(void 0===e&&(e=0),e&&!(e>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,e||0);return Math.round(t*n)/n}function O(t,e){void 0===e&&(e="kilometers");var n=r[e];if(!n)throw new Error(e+" units is invalid");return t*n}function x(t,e){void 0===e&&(e="kilometers");var n=r[e];if(!n)throw new Error(e+" units is invalid");return t/n}function w(t,e){return E(x(t,e))}function C(t){var e=t%360;return e<0&&(e+=360),e}function E(t){var e=t%(2*Math.PI);return 180*e/Math.PI}function S(t){var e=t%360;return e*Math.PI/180}function P(t,e,n){if(void 0===e&&(e="kilometers"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("length must be a positive number");return O(x(t,e),n)}function j(t,e,n){if(void 0===e&&(e="meters"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("area must be a positive number");var i=s[e];if(!i)throw new Error("invalid original units");var r=s[n];if(!r)throw new Error("invalid final units");return t/i*r}function T(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function M(t){return!!t&&t.constructor===Object}function R(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!T(t))throw new Error("bbox must only contain numbers")}))}function L(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}},da5c:function(t,e,n){"use strict";var i=function(){function t(){this.disposed=!1}return t.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){},t}();e["a"]=i},dc07:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=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 r(t,e,n,r,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=n,o.maxY=r,o):new i(t,e,n,r)}e["b"]=i},ddea:function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return u})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return p})),n.d(e,"f",(function(){return f})),n.d(e,"g",(function(){return d})),n.d(e,"i",(function(){return g})),n.d(e,"k",(function(){return y})),n.d(e,"l",(function(){return _})),n.d(e,"m",(function(){return v})),n.d(e,"j",(function(){return m})),n.d(e,"h",(function(){return b})),n.d(e,"a",(function(){return O})),n.d(e,"q",(function(){return S})),n.d(e,"p",(function(){return M})),n.d(e,"o",(function(){return R})),n.d(e,"n",(function(){return L}));var i=n("e269"),r=n("0ec0"),o=n("617d"),s=n("38f3"),a=n("0999"),l=n("cd7e"),c="10px sans-serif",u="#000",h="round",p=[],f=0,d="round",g=10,y="#000",_="center",v="middle",m=[0,0,0,0],b=1,O=new i["a"],x=new r["a"];x.setSize=function(){console.warn("labelCache is deprecated.")};var w,C=null,E={},S=function(){var t,e,n=100,i="32px ",r=["monospace","serif"],o=r.length,a="wmytzilWMYTZIL@#/&?$%10";function c(t,n,s){for(var l=!0,c=0;c<o;++c){var u=r[c];if(e=T(t+" "+n+" "+i+u,a),s!=u){var h=T(t+" "+n+" "+i+s+","+u,a);l=l&&h!=e}}return!!l}function u(){for(var e=!0,i=O.getKeys(),r=0,o=i.length;r<o;++r){var a=i[r];O.get(a)<n&&(c.apply(this,a.split("\n"))?(Object(s["b"])(E),C=null,w=void 0,O.set(a,n)):(O.set(a,O.get(a)+1,!0),e=!1))}e&&(clearInterval(t),t=void 0)}return function(e){var i=Object(l["f"])(e);if(i)for(var r=i.families,o=0,s=r.length;o<s;++o){var a=r[o],h=i.style+"\n"+i.weight+"\n"+a;void 0===O.get(h)&&(O.set(h,n,!0),c(i.style,i.weight,a)||(O.set(h,0,!0),void 0===t&&(t=setInterval(u,32))))}}}(),P=function(){var t;return function(e){var n=E[e];if(void 0==n){if(o["g"]){var i=Object(l["f"])(e),r=j(e,"Žg"),s=isNaN(Number(i.lineHeight))?1.2:Number(i.lineHeight);n=s*(r.actualBoundingBoxAscent+r.actualBoundingBoxDescent)}else t||(t=document.createElement("div"),t.innerHTML="M",t.style.minHeight="0",t.style.maxHeight="none",t.style.height="auto",t.style.padding="0",t.style.border="none",t.style.position="absolute",t.style.display="block",t.style.left="-99999px"),t.style.font=e,document.body.appendChild(t),n=t.offsetHeight,document.body.removeChild(t);E[e]=n}return n}}();function j(t,e){return C||(C=Object(a["a"])(1,1)),t!=w&&(C.font=t,w=C.font),C.measureText(e)}function T(t,e){return j(t,e).width}function M(t,e,n){if(e in n)return n[e];var i=e.split("\n").reduce((function(e,n){return Math.max(e,T(t,n))}),0);return n[e]=i,i}function R(t,e){for(var n=[],i=[],r=[],o=0,s=0,a=0,l=0,c=0,u=e.length;c<=u;c+=2){var h=e[c];if("\n"!==h&&c!==u){var p=e[c+1]||t.font,f=T(p,h);n.push(f),s+=f;var d=P(p);i.push(d),l=Math.max(l,d)}else o=Math.max(o,s),r.push(s),s=0,a+=l}return{width:o,height:a,widths:n,heights:i,lineWidths:r}}function L(t,e,n,i,r,o,s,a,l,c,u){t.save(),1!==n&&(t.globalAlpha*=n),e&&t.setTransform.apply(t,e),i.contextInstructions?(t.translate(l,c),t.scale(u[0],u[1]),A(i,t)):u[0]<0||u[1]<0?(t.translate(l,c),t.scale(u[0],u[1]),t.drawImage(i,r,o,s,a,0,0,s,a)):t.drawImage(i,r,o,s,a,l,c,s*u[0],a*u[1]),t.restore()}function A(t,e){for(var n=t.contextInstructions,i=0,r=n.length;i<r;i+=2)Array.isArray(n[i+1])?e[n[i]].apply(e,n[i+1]):e[n[i]]=n[i+1]}},de47:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));var i=n("9a94");class r extends i["LOverlay"]{constructor(t,e){super(),this._datas=[],this._popupStyles=e.popupStyles||{},this._labelStyles=e.labelStyles||{},this._spanStyles=e.spanStyles||{},this._closeClassName=e.closeClassName||"",this._closeStyles=e.closeStyles||{},this._datas=t.datas||[],this._closeCallback=t.closeCallback,this.init()}init(){this.setDivStyle(),this.loadRows(),this.ele.appendChild(this.createAside()),this.ele.appendChild(this.createCloseElement())}setDivStyle(){const t=this._popupStyles;this.ele.style.width=t.width+"px",this.ele.style.height=t.height+"px",this.ele.style.backgroundColor=t.backgroundColor,this.ele.style.position="relative",this.ele.style.boxSizing="border-box",this.ele.style.padding=t.padding}loadRows(){this._datas.forEach((t,e)=>{this.ele.appendChild(this.createRow(t,0!=e?5:0))})}setHeight(t){this.ele.style.height=t+"px"}createRow(t,e){const n=document.createElement("section");return n.style.marginTop=e+"px",n.appendChild(this.ceateLabel(t.label||"")),n.appendChild(this.createSpan(t.value||"")),n}ceateLabel(t){const e=this._labelStyles,n=document.createElement("label");n.style.display="inline-block",n.style.minWidth=e.minWidth+"px"||"65px",n.style.color=e.color||"#fff",n.style.textAlign=e.textAlign||"left";const i=e.fontSize?e.fontSize+"px":null;return n.style.fontSize=i||"12px",n.innerHTML=t,n}setHTMLElementStyle(){}createSpan(t){const e=this._spanStyles,n=document.createElement("span");n.style.display="inline-block",n.style.color=e.color||"#fff",n.style.textAlign=e.textAlign||"left";const i=e.fontSize?e.fontSize+"px":null;return n.style.fontSize=i||"12px",n.innerHTML=t,n}createAside(){const t=this._popupStyles,e=document.createElement("aside");return e.style.border="20px solid transparent",e.style.borderTop="20px solid "+t.backgroundColor,e.style.position="absolute",e.style.bottom="-40px",e.style.left="50%",e.style.marginLeft="-20px",e}createCloseElement(){const t=this._closeStyles,e=t.fontSize?t.fontSize+"px":null,n=t.top?t.top+"px":null,i=t.right?t.right+"px":null,r=document.createElement("aside");return r.className=this._closeClassName,r.style.width=e||"18px",r.style.height=e||"18px",r.style.fontSize=e||"18px",r.style.position="absolute",r.style.top=n||"8px",r.style.right=i||"8px",r.style.color=t.color||"#fff",r.style.cursor="pointer",this.bingClickEvent(r,this._closeCallback),r}bingClickEvent(t,e){t.addEventListener("click",t=>{e&&e(this.getId()),t.stopPropagation()},!1)}setDatas(t,e){this._datas=t,this._datas.forEach(t=>{this.ele.appendChild(this.createRow(t,e))})}}},df4c:function(t,e,n){"use strict";e["a"]={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},e1f2:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("5897"),r=n("b12f"),o=n("13e2");class s{constructor(t,e){this.layer=null,this.source=null,this.lineFeature=null,this.coordinates=[],this.polygon=null,this.polygonFeature=null,this.lineDash=[],this.ids=[],this.isShowPolygon=!0,this.type=0,this.fillColor=t.fillColor,this.stroke=t.stroke,this.width=t.width||2,this.coordinates=t.coordinates,this.zIndex=t.zIndex||0,this.id=t.id,this.map=e,this.lineDash=t.lineDash||[],this.ids=t.ids,this.isHidePolygon=t.isHidePolygon||!1,t&&t.type&&(this.type=t.type)}getLayer(){return this.layer}setPolygonColor(t=["rgba(255, 255, 255, 0.3)","rgba(00, 131, 241, 1)"]){const e=this.layer.getStyle(),n=e.getFill();n.setColor(t[0]);const i=e.getStroke();i.setColor(t[1])}show(){this.isShowPolygon||(this.map.addLayer(this.layer),this.isShowPolygon=!0)}hide(){this.isShowPolygon&&(this.map.removeLayer(this.layer),this.isShowPolygon=!1)}get Id(){return this.id}get ShowState(){return this.isShowPolygon}get Ids(){return this.ids}get Vector(){return this.layer}getGeometry(){return this.Vector&&this.polygonFeature?this.polygonFeature.getGeometry():null}getAreaMu(){const t=this.getGeometry();return t?Object(r["formatArea"])(t):"0"}isPolygon(){const t=this.getGeometry();if(!t)return!1;try{const{coordinates:e,center:n}=Object(r["calculateCenter"])(t),o=Object(i["isTruePolygon"])(e);return o}catch(e){return!1}}getGeoJson(){const t=this.getCoordinates();if(!t.length)return null;const[e,n]=this.getCenterPoint(),i=Object(r["createGeoJson"])(t,{ruleId:"",centerlon:e,centerlat:n});return i}getCenterPoint(){const t=this.getCoordinates();if(!t.length)return[];let e=Object(r["getCenterPoint"])(t);if(this.type){const{lon:t,lat:n}=o["GPS"].gcj_decrypt(e[0],e[1]);return[t,n]}return e}getExtent(){const t=this.getGeometry();return t?this.type?o["GPS"].convertBBoxWGS84(t.getExtent()):t.getExtent():[]}getCoordinates(){const t=this.getGeometry(),e=this.deleteDuplicateData(t.getCoordinates());return this.type?o["GPS"].convertCoordinatesWGS84(e):t?e:[]}setCoordinates(t,e=0,n=!0){this.coordinates=this.deleteDuplicateData(t),this.type=e;const i=new Array;if(!this.coordinates[0].length)return void this.polygon.setCoordinates([]);this.coordinates[0].forEach(t=>{i.push(t)}),n&&i.push(this.coordinates[0][0]);const r=[i];e?this.polygon.setCoordinates(o["GPS"].convertCoordinatesGCJ02(r)):this.polygon.setCoordinates(r)}selectGPS(t=0,e=!0){this.setCoordinates(this.coordinates,t,e)}isConvertCoordinatesGCJ02(){return this.type?o["GPS"].convertCoordinatesGCJ02(this.coordinates):this.coordinates}setZIndex(t){this.layer.setZIndex(t)}set setType(t){this.type=t}deleteDuplicateData(t){const e=t[0],n=new Array;let i=[0,0];return e.forEach(t=>{t[0]!=i[0]&&t[1]!=i[1]&&n.push(t),i=t}),[n]}}},e269:function(t,e,n){"use strict";var i=n("cef7"),r=n("7b4f"),o=n("35a7"),s=n("38f3"),a=n("1300"),l=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)}}(),c=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.key=n,r.oldValue=i,r}return l(e,t),e}(i["a"]),u=function(t){function e(e){var n=t.call(this)||this;return n.on,n.once,n.un,Object(a["c"])(n),n.values_=null,void 0!==e&&n.setProperties(e),n}return l(e,t),e.prototype.get=function(t){var e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},e.prototype.getProperties=function(){return this.values_&&Object(s["a"])({},this.values_)||{}},e.prototype.hasProperties=function(){return!!this.values_},e.prototype.notify=function(t,e){var n;n="change:".concat(t),this.hasListener(n)&&this.dispatchEvent(new c(n,t,e)),n=r["a"].PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new c(n,t,e))},e.prototype.addChangeListener=function(t,e){this.addEventListener("change:".concat(t),e)},e.prototype.removeChangeListener=function(t,e){this.removeEventListener("change:".concat(t),e)},e.prototype.set=function(t,e,n){var i=this.values_||(this.values_={});if(n)i[t]=e;else{var r=i[t];i[t]=e,r!==e&&this.notify(t,r)}},e.prototype.setProperties=function(t,e){for(var n in t)this.set(n,t[n],e)},e.prototype.applyProperties=function(t){t.values_&&Object(s["a"])(this.values_||(this.values_={}),t.values_)},e.prototype.unset=function(t,e){if(this.values_&&t in this.values_){var n=this.values_[t];delete this.values_[t],Object(s["d"])(this.values_)&&(this.values_=null),e||this.notify(t,n)}},e}(o["a"]);e["a"]=u},e300:function(t,e,n){"use strict";var i=n("835b"),r=n("e269"),o=n("183a"),s=n("cef7"),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)}}(),l={LENGTH:"length"},c=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.element=n,r.index=i,r}return a(e,t),e}(s["a"]),u=function(t){function e(e,n){var i=t.call(this)||this;i.on,i.once,i.un;var r=n||{};if(i.unique_=!!r.unique,i.array_=e||[],i.unique_)for(var o=0,s=i.array_.length;o<s;++o)i.assertUnique_(i.array_[o],o);return i.updateLength_(),i}return a(e,t),e.prototype.clear=function(){while(this.getLength()>0)this.pop()},e.prototype.extend=function(t){for(var e=0,n=t.length;e<n;++e)this.push(t[e]);return this},e.prototype.forEach=function(t){for(var e=this.array_,n=0,i=e.length;n<i;++n)t(e[n],n,e)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(l.LENGTH)},e.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new c(o["a"].ADD,e,t))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},e.prototype.remove=function(t){for(var e=this.array_,n=0,i=e.length;n<i;++n)if(e[n]===t)return this.removeAt(n)},e.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new c(o["a"].REMOVE,e,t)),e},e.prototype.setAt=function(t,e){var n=this.getLength();if(t<n){this.unique_&&this.assertUnique_(e,t);var i=this.array_[t];this.array_[t]=e,this.dispatchEvent(new c(o["a"].REMOVE,i,t)),this.dispatchEvent(new c(o["a"].ADD,e,t))}else{for(var r=n;r<t;++r)this.insertAt(r,void 0);this.insertAt(t,e)}},e.prototype.updateLength_=function(){this.set(l.LENGTH,this.array_.length)},e.prototype.assertUnique_=function(t,e){for(var n=0,r=this.array_.length;n<r;++n)if(this.array_[n]===t&&n!==e)throw new i["a"](58)},e}(r["a"]);e["a"]=u},e4e0:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o}));var i=n("1300"),r=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 o(t,e,n,r){var o=document.createElement("script"),s="olc_"+Object(i["c"])(e);function a(){delete window[s],o.parentNode.removeChild(o)}o.async=!0,o.src=t+(-1==t.indexOf("?")?"?":"&")+(r||"callback")+"="+s;var l=setTimeout((function(){a(),n&&n()}),1e4);window[s]=function(t){clearTimeout(l),a(),e(t)},document.head.appendChild(o)}(function(t){function e(e){var n=this,i="Unexpected response status: "+e.status;return n=t.call(this,i)||this,n.name="ResponseError",n.response=e,n}r(e,t)})(Error),function(t){function e(e){var n=t.call(this,"Failed to issue request")||this;return n.name="ClientError",n.client=e,n}r(e,t)}(Error)}).call(this,n("c8ba"))},e63e:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var i=n("3900");function r(t){t.style.height="30px",t.style.width="30px",t.style.left="50%",t.style.top="50%",t.style.color="red",t.style.position="absolute",t.style.marginTop="-15px",t.style.marginLeft="-15px",t.style.cursor="pointer"}function o(t,e){t.addEventListener("click",t=>{e&&e(),t.stopPropagation()},!1)}function s(t){const e=document.createElement("i");e.style.fontSize="30px",e.className="el-icon--zhunxin1";const n=document.createElement("div");return r(n),o(n,t),n.appendChild(e),n}class a extends i["a"]{constructor(t){const e=s(t);super({element:s(t),target:null}),this._ele=e}show(){this._ele.style.display="block"}hide(){this._ele.style.display="none"}}},e653:function(t,e,n){},e98d:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5c38");function r(t){return Array.isArray(t)?Object(i["c"])(t):t}},f403:function(t,e,n){"use strict";var i=n("9abc"),r=n("0af5"),o=n("abb7"),s=n("7fc9"),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)}}(),l=function(t){function e(e,n){var i=t.call(this)||this;return i.setCoordinates(e,n),i}return a(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,i){var r=this.flatCoordinates,o=Object(s["i"])(t,e,r[0],r[1]);if(o<i){for(var a=this.stride,l=0;l<a;++l)n[l]=r[l];return n.length=a,o}return i},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return Object(r["m"])(this.flatCoordinates,t)},e.prototype.getType=function(){return"Point"},e.prototype.intersectsExtent=function(t){return Object(r["h"])(t,this.flatCoordinates[0],this.flatCoordinates[1])},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(o["a"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(i["a"]);e["a"]=l},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var i=window.document.currentScript,r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"map-box"},[n("div",{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"map-style"}),t.lMap.map&&t.isRyMapTool?n("RyMapTool",{staticClass:"ry-map-tool",class:{left:!t.isRight,right:t.isRight},attrs:{lMap:t.lMap,isShowRangingTool:t.isShowRangingTool,initModifyPolygon:t.initModifyPolygon,isShowDrawTool:t.isShowDrawTool,isRight:t.isRight,isCrossHair:t.isCrossHair,hideAdd:t.hideAdd,hidePoint:t.hidePoint,hideCancel:t.hideCancel,hideDelete:t.hideDelete,hideSave:t.hideSave,hideLine:t.hideLine,hideArea:t.hideArea,isSwitchMap:t.isSwitchMap,isSwitchMapRight:t.isSwitchMapRight,gpsType:t.lastMapType},on:{crossHairClick:function(e){return t.crossHairClick(e)},loadDrawPolygonEvent:function(e){return t.loadDrawPolygonEvent(e)},success:function(e){return t.drawSuccess(e)},error:function(e){return t.drawError(e)}}},[[t._t("maptool")]],2):t._e(),t.map?[t._t("polygon",null,{mapDto:{map:t.map,lMap:t.lMap}})]:t._e(),t.isSwitchMapTool&&t.isShowSwitchMap?n("SwitchMap",{staticClass:"move-box",style:{top:t.switchMapPosTop+"px",right:t.isSwitchMapRight?t.switchMapPosLeftOrRight+"px":"none",left:t.isSwitchMapRight?"none":t.switchMapPosLeftOrRight+"px"},attrs:{height:t.switchMapHeight,switchMapDefaultTypeOrLayer:t.switchMapDefaultTypeOrLayer,mapTypeAndLayer:t.mapTypeAndLayer,"bottom-right":t.isSwitchMapRight,isDisabled:t.isDisabledSwitchMapTabEvent},on:{changeSwitchMap:t.changeSwitchMap}}):t._e()],2)},s=[],a=(n("5bc0"),n("13e2"));class l{constructor(){this.map=null,this._lPolygon=null,this._measureTooltip=null,this.currentLayer=[!1,!1,!0],this.polygonGeojsonArr=[],this.polygonGeojson=null,this.lModifyEventArr=[],this.lmap=null,this.lMEvent=null,this.am=new a["AM"],this.type=2,this.lPolygonNewArr=new Array,this.polygonGeojsonMap=new Map,this.drawPolygonArr=new Set,this.drawLineArr=new Set,this._lRectangle=null,this.layers=null}init(t){const{el:e,type:n,callback:i,viewOptions:r,layerType:o,mapType:s}=t;this.initMap({el:e,callback:i,viewOptions:r,type:n,layerType:o})}initMap({el:t,callback:e,type:n,viewOptions:i,layerType:r}){this.lmap||(this.lmap=new a["LMap"]({controls:a["MapConfig"].Defaults})),setTimeout(()=>{const o=async()=>{this.map&&(this.map=null);const{map:o,layers:s}=await this.lmap.onLoad(t,n,r);this.map=o,this.layers=s,a["MapConfig"].View=i,this.map.setView(a["MapConfig"].View),e&&e(this.map,s)};o()},100)}get getMapTypeLength(){return this.lmap.getMapTypeLength}get getLayeTypeLength(){return this.lmap.getLayeTypeLength}selectMapLayer(t,e){return this.lmap?this.lmap.selectLayers(t,e):0}initBingMap(t,e,n){this.lmap||(this.lmap=new a["LMap"]({controls:a["MapConfig"].Defaults})),setTimeout(()=>{const i=async()=>{this.map&&(this.map=null);const{map:i,layers:r}=await this.lmap.onLoad(t,2,2);this.map=i,this.layers=r,a["MapConfig"].View=n,this.map.setView(a["MapConfig"].View),e&&e(this.map,r)};i()},100)}initBingMapNew(t,e,n){this.lmap||(this.lmap=new a["LMap"]({controls:a["MapConfig"].Defaults})),setTimeout(()=>{const i=async()=>{this.map&&(this.map=null);const{map:i,layers:r}=await this.lmap.onLoad(t,0,2);this.map=i,this.layers=r,a["MapConfig"].View=n,this.map.setView(a["MapConfig"].View),e&&e(this.map,r)};i()},100)}initVectorMap(t,e,n){this.lmap||(this.map&&(this.map=null),this.lmap=new a["LMap"]({controls:a["MapConfig"].Defaults,interactions:a["MapConfig"].InteractionsDeft})),setTimeout(()=>{const n=async()=>{this.map&&(this.map=null);const{map:n,layers:i}=await this.lmap.onLoad(t);this.map=n,this.layers=i,this.map.setView(a["MapConfig"].getVectorLayerView),e&&e(this.map)};n()},100)}getVectorLayerView(){return a["MapConfig"].getVectorLayerView}onSetLayers(t){this.type=t,this.currentLayer=this.currentLayer.map(t=>!1),this.currentLayer[t]=!0,this.removeLayers(t),this.addLayers(t)}removeLayers(t){a["MapConfig"].TMapLayerArr[t].forEach((t,e)=>{this.map.removeLayer(t)})}addLayers(t){a["MapConfig"].TMapLayerArr[t].forEach((t,e)=>{this.map.addLayer(t)})}onCreatePolygon(t,e){this.polygonGeojson&&this.map.removeLayer(this.polygonGeojson),this._lPolygon&&this.clearlPolygon();return this._lPolygon=new a["LPolygon"](this.map,{strokeColor:"rgba(255,201,14, 1)",fillColor:"rgba(255,201,14, 0.4)",type:e}),this._lPolygon}skipCurrentDraw(){this._lPolygon&&this._lPolygon.skipCurrentDraw()}onCancel(){this._lPolygon&&this._lPolygon.removeLastPoint()}onDelete(t){this._lPolygon&&(this._lPolygon.remove(),this._lPolygon=null,this._removeMeasureTooltip(),t&&t())}getGeoJson(){if(this._lPolygon){const[t,e]=this._lPolygon.getCenterPoint(),n=Object(a["createGeoJson"])(this._lPolygon.getCoordinates(),{ruleId:"",centerlon:t,centerlat:e});return n}return null}getGeoJsonNew(t){if(this.polygonGeojson){const t=this.polygonGeojson,e=Object(a["createGeoJson"])(t.getSource().getFeatures()[0].getGeometry().getCoordinates(),{ruleId:"",centerlon:0,centerlat:0});return e}return null}getPolygonGeoJson(){return this._lPolygon?this._lPolygon.getGeoJson():null}onCreateLine(){if(this.map){let t=new a["LDraw"]("LineString",t=>{},this.map);this.drawLineArr.add(t)}}onCreateArea(){this.map&&this.drawPolygonArr.add(new a["LDraw"]("Polygon",t=>{},this.map))}removeDrawArr(){this.drawLineArr.forEach(t=>{if(t)try{t.clear()}catch(e){}}),this.drawLineArr.clear(),this.drawPolygonArr.forEach(t=>{if(t)try{t.clear()}catch(e){}}),this.drawPolygonArr.clear()}clearlPolygon(){this.map&&this._lPolygon&&(this._lPolygon.remove(),this._lPolygon=null)}_createMeasureTooltip(){const t=new a["MeasureTooltip"];return t.setOffset([0,-30]),this._measureTooltip=t,t}_removeMeasureTooltip(){this.map&&this._measureTooltip&&this.map.removeOverlay(this._measureTooltip.getMarker())}createPolygonGeojson(t,e="rgba(255, 255, 255, 0.3)",n="rgba(00, 131, 241, 1)",i,r=!1,o=[]){if(this.map){const s=Object(a["createPolygonGeojson"])(t,e,n,i,r,o);this.polygonGeojsonArr.push(s),this.polygonGeojson=null,this.map.addLayer(s)}}createPolygonGeojsonNew(t,e="rgba(255, 255, 255, 0.3)",n="rgba(00, 131, 241, 1)",i,r=!1){if(this.polygonGeojson&&(this.polygonGeojson=null),this.map){const o=Object(a["createPolygonGeojson"])(t,e,n,i,r);this.polygonGeojson=o,this.map.addLayer(o)}}removePolygonGeojsons(){if(!this.polygonGeojsonArr.length)return;let t=null;while(t=this.polygonGeojsonArr.shift())this.map.removeLayer(t),t=null}removePolygonGeojsonNew(){this.polygonGeojson&&(this.map.removeLayer(this.polygonGeojson),this.polygonGeojson=null)}clear(){this.map&&(this.am&&(this.am=null,this.am=new a["AM"]),this.removeOverlays(),this.removeLModifyEventArr(),this.removePolygonGeojsons(),this.clearlPolygon(),this.removeLModifyEvent(),this.removePolygonGeojsonNew(),this.removeMapsLayers())}clearNew(){this.removeOverlays(),this.removeLModifyEventArr(),this.removePolygonGeojsons(),this.clearlPolygon(),this.removeLModifyEvent(),this.removePolygonGeojsonNew()}getMap(){return this.map}setCenter([t,e],n){if(!this.map)return;const i=this.map.getView();i.setCenter([t,e]),n>0&&i.setZoom(n)}setZoom(t){if(!this.map)return;const e=this.map.getView();e.setZoom(t)}setMaxZoom(t){if(!this.map)return;const e=this.map.getView();e.setMaxZoom(t)}setMinZoom(){if(!this.map)return;const t=this.map.getView();t.setMinZoom(zoom)}get getZoom(){if(!this.map)return 0;const t=this.map.getView();return t.getZoom()}getCenter(){if(!this.map)return;const t=this.map.getView();let[e,n]=t.getCenter();return[e,n]}fit(t){Object(a["fitNew"])(this.map,t)}createMarker(t,e=15,n=15){return new a["LMarker"](t,e,n)}removeMarker(t){this.map.removeOverlay(t.getMarker())}lModifyEventArr(){this.lModifyEventArr.length=0,this.polygonGeojsonArr.forEach((t,e)=>{const n=new a["LModifyEvent"](t,this.map);n.setActive(),this.lModifyEventArr.push(n)})}removeLModifyEventArr(){if(!this.lModifyEventArr.length)return;let t=null;while(t=this.lModifyEventArr.shift())t.setActive(!1),t.remove(),t=null}lModifyEvent(){if(this.map&&this.polygonGeojson){const t=new a["LModifyEvent"](this.polygonGeojson,this.map);t.setActive(),this.lMEvent=t}}removeLModifyEvent(){this.lMEvent&&(this.lMEvent.setActive(!1),this.lMEvent.remove())}convertWGS84GeoJSONgcj_encrypt(t){const{bbox:e,geometry:n,properties:i}=t,r=[];for(let l=0;l<e.length;l+=2){const{lon:t,lat:n}=a["GPS"].gcj_encrypt(e[l],e[l+1]);r.push(t),r.push(n)}t.bbox=r;const o=n.coordinates,s=new Array;for(let l=0;l<o.length;l++){s.push(o[l]);for(let t=0;t<o[l].length;t++){const e=o[l][t],{lon:n,lat:i}=a["GPS"].gcj_encrypt(e[0],e[1]);s[l][t]=[n,i]}}if(n.coordinates=s,i&&i.center){const[e,n]=i.center,[r,o]=a["GPS"].gcj_encrypt(e,n);t.properties.center=[r,o]}return t}gcj_encryptConvertWGS84GeoJSON(t){const{bbox:e,geometry:n,properties:i}=t,r=[];for(let l=0;l<e.length;l+=2){const{lon:t,lat:n}=a["GPS"].gcj_decrypt(e[l],e[l+1]);r.push(t),r.push(n)}t.bbox=r;const o=n.coordinates,s=new Array;for(let l=0;l<o.length;l++){s.push(o[l]);for(let t=0;t<o[l].length;t++){const e=o[l][t],{lon:n,lat:i}=a["GPS"].gcj_decrypt(e[0],e[1]);s[l][t]=[n,i]}}if(n.coordinates=s,i&&i.center){const[e,n]=i.center,[r,o]=a["GPS"].gcj_decrypt(e,n);t.properties.center=[r,o]}return t}gcj_encrypt(t,e){return a["GPS"].gcj_encrypt(t,e)}gcj_decrypt(t,e){return a["GPS"].gcj_decrypt(t,e)}formatArea(){return this._lPolygon&&this._lPolygon.getGeometry()?Object(a["formatArea"])(this._lPolygon.getGeometry()):0}formatLength(){return this._lPolygon&&this._lPolygon.getGeometry()?Object(a["formatLength"])(this._lPolygon.getGeometry()):0}createPolylinePointList(t,e=!1,n=!0,i=null,r=0){let o=new Array;const s=Object(a["createPolylinePoints"])(t,e);o=Object(a["addPolylinePoint"])(s,this.map);const l=Object(a["createGPSPoints"])(t,e,this.am);if(null!=l){let t=this.am.getLngLats();r&&(t=this.am.getLngLatGCJ02()),Object(a["fitNew"])(this.map,[[t[0],t[1]],[t[2],t[3]]])}return o}async setAreaCenterPoint(){let t="3301";if(window.localStorage.getItem("user")){const e=JSON.parse(window.localStorage.getItem("user"));t=e["areaCode"]}const{data:e}=await getAreaCenter(t),{areaCode:n,areaName:i,centerLongitude:r,centerLatitude:o}=e;window.localStorage.setItem("createPointData",JSON.stringify(e))}async getAreaCenterPoint(t=!1){return obj}removeAreaCenterPoint(){window.localStorage.removeItem("createPointData")}polygonStyle(){return a["polygonStyle"]}removeMapsLayers(){const t=this.map.getLayers().getArray();for(let e=t.length;0<=e;e--)this.map.removeLayer(t[e])}removeOverlays(){if(!this.map)return;const t=this.map.getOverlays().getArray();for(let e=t.length;0<=e;e--)this.map.removeOverlay(t[e])}resetAM(){this.am=null,this.am=new a["AM"]}createPolygonBoundary(t,e){const n=Object(a["createPolygonBoundary"])(t,e);this.polygonGeojsonArr.push(n),this.map.addLayer(n)}createPolylinePointListNew(t,e,n={isGCJ02Point:!1,isFit:!1}){let i=new Array;const r=Object(a["createPolylinePoints"])(t,!1);i=Object(a["addPolylinePointNew"])(r,this.map,e);const o=Object(a["createGPSPoints"])(t,!1,this.am);if(null!=o&&n.isFit){let t=this.am.getLngLats();e.type&&(t=this.am.getLngLatGCJ02()),Object(a["fitNew"])(this.map,[[t[0],t[1]],[t[2],t[3]]])}return i}createLPolygonNew(t,e){this.lPolygonNewArr.push(new a["LPolygonNew"](t,e))}setPolygonColor(t,e=["rgba(255,201,14, 0.4)","rgba(255,201,14, 1)"]){this.lPolygonNewArr.forEach(n=>{n.Id!=t||n.setPolygonColor(e)})}setPolygonColorAll(t=["rgba(184, 233, 134, 0.56)","rgba(23, 168, 162, 0.56)"]){this.lPolygonNewArr.forEach(e=>{e.setPolygonColor(t)})}removePolygonNew(){this.lPolygonNewArr.forEach(t=>{t.removePolygon(),t=null}),this.lPolygonNewArr=[]}caculateLL(t,e,n,i){return Object(a["caculateLL"])(t,e,n,i)}get LPolygonNewArr(){return this.lPolygonNewArr}get isTruePolygon(){return!!this._lPolygon&&this._lPolygon.isTruePolygon}onCreateRectangle(t){this._lRectangle&&this.clearRectangle();return this._lRectangle=new a["LRectangle"]("Circle",this.map,t=>{}),this._lRectangle}getRectangleData(){if(!this._lRectangle)return[];const t=this._lRectangle.getCoordinates(),e=t[0];if(e.length){const t=[];return t.push([e[0][0],e[1][1]]),t.push([e[1][0],e[2][1]]),t}return[]}clearRectangle(){if(this.map&&this._lRectangle){this._lRectangle.getCoordinates();this._lRectangle.remove(),this._lRectangle=null}}}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class u{constructor(){c(this,"isShowSwitchMap",{type:Boolean,default:!0}),this.mapType={type:Number,default:0},this.layerType={type:Number,default:2},this.isSwitchMapTool={type:Boolean,default:!0},this.isRyMapTool={type:Boolean,default:!1},this.isRight={type:Boolean,default:!1},this.bindMapClick={type:Boolean,default:!1},this.bindMapMoveend={type:Boolean,default:!1},this.isDisabledSwitchMapTabEvent={type:Boolean,default:!1},this.initModifyPolygon={type:[String,Object],default:()=>null},this.m={type:Number,default:()=>3e3},this.switchMapDefaultTypeOrLayer={type:Array,default:()=>null},this.mapTypeAndLayer={type:Array,default:()=>[{id:0,icon:"el-icon--tianditu",activeIcon:"el-icon--tianditu-copy",name:"天地图",layer:[{id:0,name:"地图"},{id:1,name:"卫星"},{id:2,name:"卫星组合"}]},{id:1,icon:"el-icon--gaode",activeIcon:"el-icon--gaode-copy",name:"高德地图",layer:[{id:0,name:"地图"},{id:1,name:"卫星"},{id:2,name:"卫星组合"}]},{id:2,icon:"el-icon--Bing",activeIcon:"el-icon--Bing-copy",name:"Bing地图",layer:[{id:1,name:"卫星"},{id:2,name:"卫星组合"}]}]}}}class h{constructor(t){this.zoom={type:Number,default:10},this.maxZoom={type:Number,default:18},this.minZoom={type:Number,default:1},this.center={type:Array,default:()=>[116.40769,39.89945]},this.projection={type:String,default:"EPSG:4326"},this.bbox={type:Array,default:()=>[]}}}class p{constructor(){c(this,"switchMapPosTop",{type:Number,default:50}),c(this,"switchMapPosLeftOrRight",{type:Number,default:20}),c(this,"isSwitchMapRight",{type:Boolean,default:!0}),c(this,"switchMapHeight",{type:Number,default:40}),c(this,"isShowRangingTool",{type:Boolean,default:!0}),c(this,"isShowDrawTool",{type:Boolean,default:!1}),c(this,"isRight",{type:Boolean,default:!0}),c(this,"isCrossHair",{type:Boolean,default:!1}),c(this,"initModifyPolygon",{type:[String,Object],default:()=>null}),c(this,"hideAdd",{type:Boolean,default:!1}),c(this,"hidePoint",{type:Boolean,default:!1}),c(this,"hideCancel",{type:Boolean,default:!1}),c(this,"hideDelete",{type:Boolean,default:!1}),c(this,"hideSave",{type:Boolean,default:!1}),c(this,"hideLine",{type:Boolean,default:!1}),c(this,"hideArea",{type:Boolean,default:!1}),c(this,"isSwitchMap",{type:Boolean,default:!0}),c(this,"gpsType",{type:Number,default:0})}}var f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"draw-tool-box"},[t.isRight?[t.isShowRangingTool?n("aside",{staticClass:"map-control",staticStyle:{"margin-right":"60px"}},[t.hideLine?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--changdu",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateLine()}}}),t.hideArea?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--mianji",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateArea()}}})],1):t._e(),t.isShowDrawTool?n("aside",{staticClass:"map-button-box"},[t.hideAdd?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--add",on:{click:function(e){return e.stopPropagation(),t.onCreatePolygon()}}}),t.hidePoint?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--dadian",on:{click:function(e){return e.stopPropagation(),t.onPointEvent()}}}),t.hideCancel?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--back",on:{click:function(e){return e.stopPropagation(),t.lMap.onCancel()}}}),t.hideDelete?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--ashbin",on:{click:function(e){return e.stopPropagation(),t.onDelete()}}}),t.hideSave?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--duihao",on:{click:function(e){return e.stopPropagation(),t.onSave()}}}),t._t("default")],2):t._e()]:[t.isShowDrawTool?n("aside",{staticClass:"map-button-box"},[t.hideAdd?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--add",on:{click:function(e){return e.stopPropagation(),t.onCreatePolygon()}}}),t.hidePoint?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--dadian",on:{click:function(e){return e.stopPropagation(),t.onPointEvent()}}}),t.hideCancel?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--back",on:{click:function(e){return e.stopPropagation(),t.lMap.onCancel()}}}),t.hideDelete?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--ashbin",on:{click:function(e){return e.stopPropagation(),t.onDelete()}}}),t.hideSave?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--duihao",on:{click:function(e){return e.stopPropagation(),t.onSave()}}}),t._t("default")],2):t._e(),t.isShowRangingTool?n("aside",{staticClass:"map-control",staticStyle:{"margin-left":"60px"}},[t.hideLine?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--changdu",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateLine()}}}),t.hideArea?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--mianji",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateArea()}}})],1):t._e()],t.lMap?n("ry-cross-hair",{attrs:{isHide:t.isCrossHair,map:t.lMap.map},on:{click:function(e){return t.onClick(e)}}}):t._e()],2)},d=[],g=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},y=[],_=(n("3e8f"),{name:"RyCrossHair",props:{map:{type:Object,default:()=>null},isHide:{type:Boolean,default:!1}},created(){this.isHide&&!this.crossHair&&this.createCrossHair()},watch:{isHide(t){!t||this.crossHair?this.removeControl():this.createCrossHair()}},data(){return{crossHair:null}},methods:{getCenter(){if(!this.map)return;const t=this.map.getView();let[e,n]=t.getCenter();return[e,n]},createCrossHair(){this.crossHair=new a["CrossHair"](()=>{this.$emit("click",this.getCenter())}),this.map.addControl(this.crossHair)},removeControl(){this.map&&this.crossHair&&(this.map.removeControl(this.crossHair),this.crossHair=null)}}}),v=_;function m(t,e,n,i,r,o,s,a){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}var b=m(v,g,y,!1,null,null,null),O=b.exports,x={name:"RyMapTool",components:{RyCrossHair:O},props:{lMap:{type:Object,default:()=>null},...new p},watch:{initModifyPolygon(t){this.initModifyPolygon=t,this._init()},isShowRangingTool(t){this.isShowRangingTool=t},isShowDrawTool(t){this.isShowDrawTool=t,this.isCrossHair=t},isRight(t){this.isShowDrawTool=t},isCrossHair(t){this.isCrossHair=t},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.drawPolygon&&(this.drawPolygon.type=t),this.selectGPSAll(this.gpsType))}},data(){return{drawPolygon:null,isEdit:!0,lastType:-1}},created(){this._initPolygon()},methods:{_initPolygon(){if(!this.lMap||!this.initModifyPolygon||!this.isShowDrawTool)return;const{coordinates:t,bbox:e}=this._serializeGeoJson();if(this.onDelete(),this.drawPolygon=this.lMap.onCreatePolygon(()=>{}),this.lastType=this.gpsType,this.drawPolygon.type=this.gpsType,this.drawPolygon.initCoordinates(t),this.isEdit=!0,this.$emit("loadDrawPolygonEvent",this),e){const t=[e[0],e[3],e[2],e[1]],n=[e[2],e[1],e[0],e[3]];this.lMap.fit([t,n])}},_serializeGeoJson(){let t=null;if(this.initModifyPolygon instanceof Object)t=this.initModifyPolygon;else{if("string"!==typeof this.initModifyPolygon)return t;t=JSON.parse(this.initModifyPolygon)}const{geometry:e,bbox:n}=t;return{coordinates:e.coordinates,bbox:n}},setFit(t){t&&t.length&&this.lMap&&Object(a["fitNew"])(this.lMap.map,[t])},onCreatePolygon(){this.lMap&&(this.drawPolygon=this.lMap.onCreatePolygon(()=>{}),this.lastType=this.gpsType,this.drawPolygon.type=this.gpsType,this.$emit("loadDrawPolygonEvent",this))},onDelete(){this.lMap&&this.drawPolygon&&(this.lMap.onDelete(),this.drawPolygon=null)},onPointEvent(){if(this.drawPolygon){const t=this.lMap.getCenter();if(this.x==t[0]&&this.y==t[1])return;this.x=t[0],this.y=t[1];let e=t;if(this.gpsType){let{lon:n,lat:i}=a["GPS"].gcj_decrypt(t[0],t[1]);e=[n,i]}return this.drawPolygon.setCoordinates(e,this.gpsType),void this.$emit("crossHairClick",{pointArr:t,delete:this.onDelete})}this.$message.error("请绘制地块后在进行操作!")},onSave(){const t=this.lMap.getPolygonGeoJson();t?this.lMap.isTruePolygon?t&&this.$emit("success",{geoJson:t,delete:this.onDelete}):this.error(t,1):this.error(t)},error(t,e=0){this.$emit("error",{geoJson:t,delete:this.onDelete,type:e})},onClick(t){if(this.drawPolygon){const t=this.lMap.getCenter();if(this.x==t[0]&&this.y==t[1])return;this.x=t[0],this.y=t[1];let e=t;if(this.gpsType){let{lon:n,lat:i}=a["GPS"].gcj_decrypt(t[0],t[1]);e=[n,i]}return this.drawPolygon.setCoordinates(e,this.gpsType),void this.$emit("crossHairClick",{pointArr:t,delete:this.onDelete})}this.$message.error("请绘制地块后在进行操作!")},getGeoJson(){if(this.lMap)return this.lMap.getPolygonGeoJson()},onCancel(){this.lMap&&this.lMap.onCancel()},selectGPSAll(t){this.lMap.removeDrawArr(),this.drawPolygon&&this.drawPolygon.selectGPS(t,!0)}}},w=x,C=(n("8af4"),m(w,f,d,!1,null,"0eda959b",null)),E=C.exports,S=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.mapTypeAndLayer&&t.mapTypeAndLayer.length>0?n("div",{staticClass:"switch-map"},[n("div",{staticClass:"top",style:{height:t.height+"px"}},[t.isDisabled?n("p",{staticStyle:{width:"10px"}}):[n("p",{class:t.bottomRight?t.isExpand?"el-icon-arrow-left":"el-icon-arrow-right":t.isExpand?"el-icon-arrow-right":"el-icon-arrow-left",on:{click:t.changeExpand}})],n("ul",t._l(t.mapTypeCopy,(function(e,i){return n("li",{key:i,class:{color:!!t.isExpand||t.mapTypeActive===e.id},on:{click:function(n){return t.mapTypeClick(e)}}},[n("i",{class:t.isExpand||t.mapTypeActive===e.id?e.activeIcon:e.icon}),t._v(" "+t._s(e.name)+" ")])})),0)],2),n("ul",{class:{bottom:!0,marginLeft:t.bottomRight}},t._l(t.mapStyleCopy,(function(e,i){return n("li",{key:i,class:{color:!!t.isTop||t.mapStyleActive===e.id},style:{height:t.height+"px",lineHeight:t.height+"px"}},[n("span",{on:{click:function(n){return t.mapStyleClick(e)}}},[t._v(" "+t._s(e.name)+" ")]),n("i",{directives:[{name:"show",rawName:"v-show",value:0===i,expression:"index===0"}],class:t.isTop?"el-icon-arrow-down":"el-icon-arrow-up",on:{click:t.changeDirectionArrow}})])})),0)]):t._e()},P=[];class j{constructor(){c(this,"switchMapDefaultTypeOrLayer",{type:Array,default:()=>null}),c(this,"height",{type:Number,default:40}),c(this,"isSwitchMapRight",{type:Boolean,default:!0}),c(this,"bottomRight",{type:Boolean,default:!0}),c(this,"isDisabled",{type:Boolean,default:!1}),c(this,"mapTypeAndLayer",{type:Array,default:()=>null}),c(this,"mapType",{type:Array,default:()=>[{icon:"el-icon--tianditu",activeIcon:"el-icon--tianditu-copy",name:"天地图"},{icon:"el-icon--gaode",activeIcon:"el-icon--gaode-copy",name:"高德地图"}]}),c(this,"mapStyle",{type:Array,default:()=>["地图","卫星","卫星组合"]})}}var T={name:"SwitchMap",props:{...new j},data(){return{isExpand:!0,mapTypeActive:1,mapStyleActive:2,isTop:!0,mapTypeCopy:[],mapStyleCopy:[]}},watch:{switchMapDefaultTypeOrLayer:{handler(t){if(!t)return;const e=this.formatToJudge(t);if(!e)return;const n=this.mapStyleActive,i=e||0===e?t[0]:1,r=e||1===e?n:2;setTimeout(()=>{this.$emit("changeSwitchMap",{mapType:i,layerType:r})},100)},immediate:!0},mapTypeAndLayer:{handler(t){Array.isArray(t)&&t[1]&&t.forEach((t,e)=>{1!==e||this.switchMapDefaultTypeOrLayer||(this.mapStyleCopy=[t.layer[2]],this.mapTypeCopy=[t])})},immediate:!0}},created(){},mounted(){this.switchMapDefaultTypeOrLayer||setTimeout(()=>{this.$emit("changeSwitchMap",{mapType:1,layerType:2})},100)},methods:{formatToJudge(t){var e;const n=[1,2],i=Array.isArray(t),r=n.includes(t.length),o=t[0]>=0&&t[0]<=this.mapTypeAndLayer.length-1,s=t[1]>=0&&t[1]<=(null===(e=this.mapTypeAndLayer[t[0]])||void 0===e?void 0:e.layer.length)-1;if(!i||!r)return!1;if(!o||!s){var a,l;const t=this.mapTypeActive,e=this.mapStyleActive;return this.mapTypeCopy=[this.mapTypeAndLayer[t]],this.mapStyleCopy=[null===(a=this.mapTypeAndLayer[t])||void 0===a?void 0:a.layer[e]],this.mapStyleActive=null===(l=this.mapStyleCopy[0])||void 0===l?void 0:l.id,!1}return o&&!s?(this.mapTypeActive=t[0],this.mapTypeCopy=[this.mapTypeAndLayer[t[0]]],0):s&&!o?(this.mapStyleCopy=[null===(c=this.mapTypeAndLayer[t[0]])||void 0===c?void 0:c.layer[t[1]]],this.mapStyleActive=this.mapStyleCopy[0].id,1):!(!o||!s)&&(this.mapTypeActive=t[0],this.mapTypeCopy=[this.mapTypeAndLayer[t[0]]],this.mapStyleCopy=[null===(u=this.mapTypeAndLayer[t[0]])||void 0===u?void 0:u.layer[t[1]]],this.mapStyleActive=null===(h=this.mapStyleCopy[0])||void 0===h?void 0:h.id,!0);var c,u,h},changeExpand(){if(!this.isDisabled){if(this.isExpand=!this.isExpand,this.isExpand)return this.mapTypeCopy=this.mapTypeAndLayer.filter((t,e)=>this.mapTypeActive===e),void(this.isTop||(this.isTop=!0,this.mapStyleCopy=this.mapTypeAndLayer[this.mapTypeActive].layer.filter(t=>this.mapStyleActive===t.id)));this.mapTypeCopy=[...this.mapTypeAndLayer]}},changeDirectionArrow(){this.isTop=!this.isTop;const t=this.mapTypeActive,e=this.mapTypeAndLayer[t].layer;this.isTop?this.mapStyleCopy=e.filter(e=>t===e.id):this.mapStyleCopy=[...e]},mapTypeClick({id:t}){if(this.mapTypeActive===t||this.isExpand)return;const e=this.mapTypeAndLayer[t].layer;this.mapTypeActive=t,this.mapStyleActive=e[e.length-1].id,this.isTop?this.mapStyleCopy=e.filter(t=>this.mapStyleActive===t.id):this.mapStyleCopy=e,this.$emit("changeSwitchMap",{mapType:this.mapTypeActive,layerType:this.mapStyleActive,cisDisabled:!1})},mapStyleClick({id:t}){this.mapStyleActive===t||this.isTop||(this.mapStyleActive=t,this.$emit("changeSwitchMap",{mapType:this.mapTypeActive,layerType:this.mapStyleActive}))}}},M=T,R=(n("8d17"),m(M,S,P,!1,null,"272b1fcc",null)),L=R.exports,A={name:"RyMap",components:{RyMapTool:E,SwitchMap:L},props:{...new u,...new h,...new p},created(){},watch:{center(t){this.setCenter(t)},bbox(t){this.setFit(t)},maxZoom(t){this.lMap.setMaxZoom(t)},zoom(t){this.lMap.setZoom(t)},minZoom(t){this.lMap.setMinZoom(t)},bindMapClick(t){this.bindMapClick!==t&&(this.bindMapClick=t,this._bingMapEvent())},bindMapMoveend(t){this.bindMapMoveend!==t&&(this.bindMapMoveend=t,this._bingMapMoveend())},m(t){this.m=t}},data(){return{lMap:new l,drawPolygon:null,mapClick:null,map:null,moveend:null,lastX:0,lastY:0,lastMapType:0,isFirstLoad:!1}},methods:{changeSwitchMap({mapType:t,layerType:e}){this.lMap.selectMapLayer(t,e),this._setMaxZoom(t,e);let n=t;if(t>1&&(n=0),this.lastMapType==n)return;this.lastMapType=n;const i=this.lMap.getCenter();if(i&&i.length)if(0==n){const{lon:t,lat:e}=a["GPS"].gcj_decrypt(i[0],i[1]);this.lMap.setCenter([t,e])}else{const{lon:t,lat:e}=a["GPS"].gcj_encrypt(i[0],i[1]);this.lMap.setCenter([t,e])}this.$emit("changeSwitchMap",{mapType:n,layerType:e,type:t})},_setMaxZoom(t,e){2==t||0==e?this.setMaxZoom(28):this.setMaxZoom(18)},loadMap(t){this.lMap.init({el:t,type:this.mapType,layerType:this.layerType,viewOptions:this.getViewOptions(),callback:(t,e)=>{this.map=t,this.bbox.length>0&&this.setFit(this.bbox);try{const[t,e]=this.lMap.getCenter();this.lastX=t,this.lastY=e}catch(n){}this._bingMapEvent(),this._bingMapMoveend(),this.$emit("load",{map:t,mapServices:this.lMap,layers:e,ryMapTool:this.$refs.mapTool}),this.isShowSwitchMap||(this.lastMapType=this.mapType>2?0:this.mapType)}})},_bingMapEvent(){this.bindMapClick?this._mapClickOnce():this._mapClickOnce(!0)},_bingMapMoveend(){this.bindMapMoveend?this._mapMoveend():this._mapMoveend(!0)},getViewOptions(){return{projection:this.projection,center:this.center,zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom}},setMaxZoom(t){this.lMap.setMaxZoom(t)},setMinZoom(t){this.lMap.setMinZoom(t)},setZoom(t){this.lMap.setZoom(t)},crossHairClick(t){this.$emit("crossHairClick",t)},setCenter(t){this.lMap.setCenter(t,15)},setFit(t){t.length&&this.map&&Object(a["fitNew"])(this.map,[t])},drawSuccess(t){this.$emit("drawSuccess",t)},drawError(t){this.$emit("drawError",t)},_mapClickOnce(t=!1){this.mapClick||(this.mapClick=t=>{if(t.dragging)return;const e=this.map.getEventPixel(t.originalEvent),n=this.map.hasFeatureAtPixel(e);if(n){const e=this.map.forEachFeatureAtPixel(t.pixel,t=>t),n=e.getId();if(void 0===n)return;this.$emit("mapClick",n)}}),t?(this.map.un("click",this.mapClick),this.mapClick=null):this.map.on("click",this.mapClick)},_mapMoveend(t=!1){this.moveend=t=>{const[e,n]=this.lMap.getCenter();let i=0;if(this.lastX!==e&&this.lastY!==n)return i=Object(a["caculateLL"])(this.lastY,this.lastX,n,e),this.$emit("mapMoveend",{m:i,oversteSetValue:i>=this.m,x:e,y:n}),void(i>=this.m&&(this.lastX=e,this.lastY=n));this.$emit("mapMoveend",{m:i,oversteSetValue:!1,x:e,y:n})},t?this.map.un("moveend",this.moveend):this.map.on("moveend",this.moveend)},loadDrawPolygonEvent(t){this.$emit("loadDrawPolygonEvent",t)}}},I=A,k=(n("1d17"),m(I,o,s,!1,null,"294ed66e",null)),F=k.exports;F.install=t=>{t.install(F.name,F)};var D=F;O.install=t=>{t.install(O.name,O)};var G=O;E.install=t=>{t.install(E.name,E)};var N=E,z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},B=[];class X{constructor(){c(this,"map",{type:Object,default:()=>null}),c(this,"gpsType",{type:Number,default:0})}}class W extends X{constructor(...t){super(...t),c(this,"model",{type:Object,default:()=>null}),c(this,"isShow",{type:Boolean,default:!0}),c(this,"clear",{type:Boolean,default:!1}),c(this,"isCheckPointHide",{type:Boolean,default:!1}),c(this,"polygonColor",{type:Array,default:()=>[]}),c(this,"text",{type:String,default:null}),c(this,"isFit",{type:Boolean,default:!0})}}var Y={name:"RyPolygon",props:{...new W},data(){return{polygon:null,checkPoint:null,bbox:[],bboxGCJ02:[],lastType:-1}},watch:{isShow(t){this.polygon&&(t?this.show():this.hide())},clear(t){t&&this.remove()},model(t){this.remove(),this.model=t,this.init()},isCheckPointHide(t){t?this.hideCheckPoint():this.showCheckPoint()},polygonColor(t){t.length&&this.setPolygonColor(t)},isFit(t){this.isFit=t,t&&this.setFit()},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.init()},methods:{init(){if(this.lastType=this.gpsType,!this.model||!this.model.geo&&!this.model.coordinates)return;let t=[];if(this.model.geo){const{coordinates:e,center:n,bbox:i}=this._serializeGeoJson();this.model.coordinates=e,this.bbox=i,this.bboxGCJ02=this.convertBBoxGCJ02(i),t=n}else this.bbox=Object(a["getLngAndLatMaxMin"])(this.model.coordinates),this.bboxGCJ02=this.convertBBoxGCJ02(this.bbox);this.polygon=new a["LPolygonNew"]({...this.model,type:this.gpsType},this.map),this.isFit&&this.setFit(1==this.gpsType?this.bboxGCJ02:this.bbox),this.model.text&&(this.checkPoint||(this.checkPoint=this.createCheckPoint(this.model.text,t.length?t:Object(a["getCenterPoint"])(this.model.coordinates))),this.isCheckPointHide&&this.hideCheckPoint()),this.polygon.isShowPolygon=!0,this.isShow?this.show():this.hide(),this.clear&&this.remove(),this.$emit("onLoad",{polygon:this.polygon,checkPoint:this.checkPoint})},setFit(t){if(!t.length||!this.map)return;const e=[t[0],t[3],t[2],t[1]],n=[t[2],t[1],t[0],t[3]];Object(a["fitNew"])(this.map,[e,n])},_serializeGeoJson(){let t=null;if(this.model.geo instanceof Object)t=this.model.geo;else{if("string"!==typeof this.model.geo)return t;t=JSON.parse(this.model.geo)}const{bbox:e,geometry:n,properties:i}=t;let r=[];return i&&i.center&&(r=i.center),{bbox:e,coordinates:n.coordinates,center:r.length?r:Object(a["getCenterPoint"])(n.coordinates)}},convertBBoxGCJ02(t){const e=[],{lat:n,lon:i}=a["GPS"].gcj_encrypt(t[0],t[1]),{lon:r,lat:o}=a["GPS"].gcj_encrypt(t[2],t[3]);return e.push(i),e.push(n),e.push(r),e.push(o),e},getBBOX(){if(!this.model.geo)return Object(a["getLngAndLatMaxMin"])(this.model.coordinates)},createCheckPoint(t,e){const n=new a["CheckPoint"](t,12,"#fff");return n.setOffset([0,-5]),n.setPosition(e,this.gpsType),this.map.addOverlay(n.getMarker()),n},show(){this.polygon.show()},hide(){this.polygon.hide()},remove(){this.polygon&&(this.polygon.removePolygon(),this.polygon=null),this.checkPoint&&(this.map.removeOverlay(this.checkPoint.getMarker()),this.checkPoint=null),this.bbox=[],this.bboxGCJ02=[]},setPolygonColor(t){if(this.polygon){this.polygon.setPolygonColor(t);const e=this.map.getView().getZoom();this.map.getView().setZoom(e+1e-5),this.map.getView().setZoom(e-1e-4)}},getId(){return this.polygon._id},showCheckPoint(){this.checkPoint&&this.checkPoint.show()},hideCheckPoint(){this.checkPoint&&this.checkPoint.hide()},setText(t){this.checkPoint&&this.checkPoint.setText(t)},selectGPSAll(t){this.checkPoint&&this.checkPoint.selectGPS(t),this.polygon&&this.polygon.selectGPS(t)}}},V=Y,H=m(V,z,B,!1,null,null,null),Z=H.exports;Z.install=t=>{t.install(Z.name,Z)};var K=Z,U=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},J=[];class q extends X{constructor(...t){super(...t),c(this,"modelArr",{type:Array,default:()=>[]}),c(this,"insert",{type:Object,default:()=>null}),c(this,"inserts",{type:Array,default:()=>[]}),c(this,"isShowAll",{type:Boolean,default:!0}),c(this,"isShowPolygon",{type:Object,default:()=>null}),c(this,"isShowPolygons",{type:Array,default:()=>[]}),c(this,"clear",{type:Boolean,default:!1}),c(this,"isCheckPointHideAll",{type:Boolean,default:!1}),c(this,"isCheckPointHide",{type:Object,default:()=>null}),c(this,"isCheckPointHides",{type:Array,default:()=>[]}),c(this,"polygonColor",{type:Object,default:()=>null}),c(this,"polygonColors",{type:Array,default:()=>[]}),c(this,"text",{type:Object,default:()=>null}),c(this,"isFit",{type:Boolean,default:!0}),c(this,"remove",{type:[String,Number,Object],default:()=>null}),c(this,"removes",{type:Array,default:()=>[]}),c(this,"ranges",{type:Array,default:()=>[]}),c(this,"range",{type:[String,Number,Object],default:()=>null}),c(this,"restFit",{type:Boolean,default:!1})}}var $={name:"RyPolygons",props:{...new q},data(){return{bbox:[],bboxMap:new Map,bboxGCJ02:[],bboxMapGCJ02:new Map,polygonMap:new Map,checkPointMap:new Map,isCreate:!0,lastType:-1}},watch:{modelArr(t){this._remove(),t.length&&(this.modelArr=t,this.init())},isShowAll(t){t?this.showAll():this.hideAll()},isShowPolygon(t){this.isShowPolygon=t,t&&this._isShowPolygon(t)},isShowPolygons(t){this.isShowPolygons=t,(t||t.length)&&this._isShowPolygons(t)},clear(t){t&&this._remove()},isCheckPointHideAll(t){t?this.hideCheckPointAll():this.showCheckPointAll()},isCheckPointHide(t){this.isCheckPointHide=t,t&&this._isCheckPointHide(t)},isCheckPointHides(t){this.isCheckPointHides=t,(t||t.length)&&this._isCheckPointHides(t)},polygonColor(t){t&&this.setPolygonColor(t.id,t.colorArr)},polygonColors(t){t&&this.setPolygonColors(t)},isFit(t){this.isFit=t,t&&this.setFit()},remove(t){this.remove=t,this.removePolygonAndCheckPoint(t)},removes(t){this.removes=t,this.removePolygonsAndCheckPoints(t)},ranges(t){this.ranges=t,this._ranges(t)},range(t){this.range=t,this._range(t)},insert(t){this.insert=t,this._insert(t)},inserts(t){this.inserts=t,this._inserts(t)},restFit(t){this.restFit=t},text(t){t&&t.id&&t.text&&this.setText(t.id,t.text)},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.init()},methods:{init(){(this.modelArr||this.modelArr.length)&&(this.modelArr.forEach(t=>{this._insert(t)}),this.polygonColor&&this.setPolygonColor(this.polygonColor),this.setPolygonColors(this.polygonColors),this.removePolygonAndCheckPoint(this.remove),this.removePolygonsAndCheckPoints(this.removes),this._ranges(this.ranges),this._range(this.range),this._insert(this.insert),this._inserts(this.inserts),this.isFit&&this.setFit(),this.isShowAll||this.hideAll(),this.isCheckPointHideAll&&this.hideCheckPointAll(),this.isShowPolygon&&this._isShowPolygon(this.isShowPolygon),this._isShowPolygons(this.isShowPolygons),this.isCheckPointHide&&this._isCheckPointHide(this.isCheckPointHide),this._isCheckPointHides(this.isCheckPointHides),this._onLoad())},initPolygon(t){if(!this.polygonMap.has(t.id)){const e=new a["LPolygonNew"]({...t,type:this.gpsType},this.map);e.isShowPolygon=!0,this.polygonMap.set(t.id,e)}},selectGPSAll(t){this.polygonMap.forEach(e=>{e.selectGPS(t)}),this.checkPointMap.forEach(e=>{e.selectGPS(t)})},initCheckPoint(t,e){if(!this.checkPointMap.has(t.id)&&t.text){const n=this.createCheckPoint(t.text,e);this.checkPointMap.set(t.id,n)}},setBBOXArr(t,e){if(this.bboxMap.has(t)||(this.bbox.push(e),this.bboxMap.set(t,e)),!this.bboxMapGCJ02.has(t)){const n=this.convertBBoxGCJ02(e);this.bboxGCJ02.push(n),this.bboxMapGCJ02.set(t,n)}},setFit(){this.bbox.length&&this.map&&(this.bbox.length>1?Object(a["fitNew"])(this.map,1==this.gpsType?this.bboxGCJ02:this.bbox):this.setFitFist(1==this.gpsType?this.bboxGCJ02[0]:this.bbox[0]))},setFitFist(t){const e=[t[0],t[3],t[2],t[1]],n=[t[2],t[1],t[0],t[3]];Object(a["fitNew"])(this.map,[e,n])},_serializeGeoJson(t){let e=null;try{t instanceof Object?e=t:"string"===typeof t&&(e=JSON.parse(t))}catch(s){return null}const{bbox:n,geometry:i,properties:r}=e;let o=[];return r&&r.center&&(o=r.center),{bbox:n,coordinates:i.coordinates,center:o.length?o:Object(a["getCenterPoint"])(i.coordinates)}},getBBOX(){if(!this.model.geo)return Object(a["getLngAndLatMaxMin"])(this.model.coordinates)},createCheckPoint(t,e){const n=new a["CheckPoint"](t,12,"#fff");return n.setOffset([0,-5]),n.setPosition(e,this.gpsType),this.map.addOverlay(n.getMarker()),n},showAll(){this.polygonMap.forEach(t=>t.show()),this.restFit&&this._restFit()},hideAll(){this.polygonMap.forEach(t=>t.hide())},_remove(){this.checkPointMap.forEach(t=>{this.map.removeOverlay(t.getMarker()),t=null}),this.polygonMap.forEach(t=>{t.removePolygon(),t=null}),this.checkPointMap.clear(),this.polygonMap.clear(),this.bboxMap.clear(),this.bbox=[],this.bboxGCJ02=[],this.bboxMapGCJ02.clear()},setPolygonColor(t,e,n=!0){if(this.polygonMap.has(t)){const i=this.polygonMap.get(t);i.setPolygonColor(e),n&&this._setZoom()}},_setZoom(){const t=this.map.getView().getZoom();this.map.getView().setZoom(t+1e-5),this.map.getView().setZoom(t-1e-4)},setPolygonColors(t){t.forEach(t=>{this.setPolygonColor(t.id,t.colorArr,!1)}),t.length&&this._setZoom()},showCheckPointAll(){this.map&&this.checkPointMap.forEach(t=>t.show())},_isShowPolygon(t){const e=t.id;if(this.polygonMap.has(e)){const n=this.polygonMap.get(e);if(t.isShow)return void n.show();n.hide()}},_isShowPolygons(t){t.forEach(t=>{this._isShowPolygon(t)}),this.restFit&&this._restFit()},hideCheckPointAll(){this.checkPointMap.forEach(t=>t.hide())},_isCheckPointHide(t){const e=t.id;if(this.checkPointMap.has(e)){const n=this.checkPointMap.get(e);if(t.isShow)return void n.show();n.hide()}},_isCheckPointHides(t){t.forEach(t=>{this._isCheckPointHide(t)})},setText(t,e){if(this.checkPointMap.has(t)){const n=this.checkPointMap.get(t);n.setText(e)}},restBBOXArr(){this.bbox=[],this.bboxGCJ02=[],this.bboxMap.forEach(t=>{this.bbox.push(t)}),this.bboxMapGCJ02.forEach(t=>{this.bboxGCJ02.push(t)})},removePolygonsAndCheckPoints(t){t.forEach((t,e)=>{this.removePolygonAndCheckPoint(t)}),t.length&&this.restBBOXArr()},removePolygonAndCheckPoint(t,e=!0){if(this.checkPointMap.has(t)){const n=this.checkPointMap.get(t);this.map.removeOverlay(n.getMarker()),this.checkPointMap.delete(t),e&&this.restBBOXArr()}if(this.polygonMap.has(t)){const e=this.polygonMap.get(t);e.removePolygon(),this.polygonMap.delete(t)}this.bboxMap.has(t)&&this.bboxMap.delete(t),this.bboxMapGCJ02.has(t)&&this.bboxMapGCJ02.delete(t)},_ranges(t){const e=[];t.forEach(t=>{if(this.bboxMap.has(t)&&1!=this.gpsType){const n=this.bboxMap.get(t);e.push(n)}else if(this.bboxMapGCJ02.has(t)&&1==this.gpsType){const n=this.bboxMapGCJ02.get(t);e.push(n)}}),e.length&&Object(a["fitNew"])(this.map,e)},_range(t){if(this.bboxMap.has(t)&&1!=this.gpsType){const e=this.bboxMap.get(t);Object(a["fitNew"])(this.map,[e])}else if(this.bboxMapGCJ02.has(t)&&1==this.gpsType){const e=this.bboxMapGCJ02.get(t);Object(a["fitNew"])(this.map,[e])}},_insert(t,e){if(!t)return;let n=[],i=[];if(!t.coordinates){const{coordinates:e,center:i,bbox:r}=this._serializeGeoJson(t.geo);t.coordinates=e,n=i}this.initPolygon(t),this.initCheckPoint(t,n.length?n:Object(a["getCenterPoint"])(t.coordinates)),this.setBBOXArr(t.id,i.length?i:Object(a["getLngAndLatMaxMin"])(t.coordinates)),e&&this._onLoad()},_inserts(t){this.lastType=this.gpsType,t.forEach(t=>{this._insert(t,!1)}),t.length&&this._onLoad()},_onLoad(){this.$emit("onLoad",{polygonMap:this.polygonMap,checkPointMap:this.checkPointMap,bboxMap:this.bboxMap,bboxMapGCJ02:this.bboxMapGCJ02})},_restFit(){let t=[];1!=this.gpsType?this.bboxMap.forEach((e,n)=>{-1===this.isShowPolygons.findIndex(t=>t.id==n)&&t.push(this.bboxMap.get(n))}):1==this.gpsType&&this.bboxMapGCJ02.forEach((e,n)=>{-1===this.isShowPolygons.findIndex(t=>t.id==n)&&t.push(this.bboxMapGCJ02.get(n))}),t.length&&(t.length>1?Object(a["fitNew"])(this.map,t):this.setFitFist(t[0]))},convertBBoxGCJ02(t){const e=[],{lat:n,lon:i}=a["GPS"].gcj_encrypt(t[0],t[1]),{lon:r,lat:o}=a["GPS"].gcj_encrypt(t[2],t[3]);return e.push(i),e.push(n),e.push(r),e.push(o),e}}},Q=$,tt=m(Q,U,J,!1,null,null,null),et=tt.exports;et.install=t=>{t.install(et.name,et)};var nt=et,it=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},rt=[];const ot={fillColor:"rgba(184, 233, 134, 0.56)",stroke:"rgba(23, 168, 162, 0.56)",width:3,text:"快"};var st={name:"RyClusters",props:{modelArr:{type:Array,default:()=>[]},clusterPolygonModel:{type:Object,default:()=>ot},map:{type:Object,default:()=>null},gpsType:{type:Number,default:0},color:{type:String,default:"#fff"},fontSize:{type:Number,default:14},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0}},data(){return{checkPointArr:new Map,currentArr:Array(),fpModelArr:[],featurePolygon:new a["FeaturePolygon"](this.gpsType),multiPolygonMap:new Map,scan:new a["GrahamScan"],polygonSet:new Set}},beforeDestroy(){this.clear()},watch:{modelArr(t){this.map&&(this.clear(),this.init())},gpsType(t){this.gpsType=t,this.selectGPSAll(t)}},created(){this.clear(),this.init()},methods:{mergeGeoJson(t){let e=[],n=new Set;t.forEach(t=>{if(t){const i=t.getId();if(this.multiPolygonMap.has(i)){const t=this.multiPolygonMap.get(i);n.add(i),t.forEach(t=>{e.push(t)})}}}),this.scan.setPoints(e),this.scan.getHull(),n.forEach(t=>{this.removeAggregation(t)});const i={...this.clusterPolygonModel,coordinates:[this.scan.getHull()],ids:n};this.polygonSet.add(new a["LPolygonNew"]({...i,gpsType:this.gpsType},this.map))},removeAggregation(t){let e=[];0!==this.polygonSet.size&&(this.polygonSet.forEach(n=>{n.Ids.has(t)&&(n.removePolygon(),e.push(n))}),e.forEach(t=>{this.polygonSet.has(t)&&this.polygonSet.delete(t)}))},removePolygonNew(){this.lPolygonNewArr.forEach(t=>{t.removePolygon(),t=null}),this.lPolygonNewArr.length=0},clear(){},createFeaturePolygonModel(t,e){return new a["FeaturePolygonModel"](e,t)},async init(){this.initPolygon(),this.initCluster()},_serializeGeoJson(t){let e=null;try{t instanceof Object?e=t:"string"===typeof t&&(e=JSON.parse(t))}catch(s){return null}const{bbox:n,geometry:i,properties:r}=e;let o=[];return r&&r.center&&(o=r.center),{bbox:n,coordinates:i.coordinates,center:o.length?o:Object(a["getCenterPoint"])(i.coordinates)}},initPolygon(){this.modelArr.forEach(t=>{t.geo;const{coordinates:e,center:n,bbox:i}=this._serializeGeoJson(t.geo),r=this.createFeaturePolygonModel(t.id,n);this.fpModelArr.push(r)})},initCluster(){const t=new a["LCluster"]((t,e,n)=>{const i=t.getId();if(n)return this.$emit("callback",{id:i,isShow:!0}),void(this.multiPolygonMap.has(i)&&this.multiPolygonMap.delete(i));if(!this.multiPolygonMap.has(i)){var r;const t=null===(r=this.modelArr.find(t=>t.id==i))||void 0===r?void 0:r.geo;if(t){const{coordinates:e}=this._serializeGeoJson(t);this.multiPolygonMap.set(i,e[0])}}this.$emit("callback",{id:i,isShow:!1})},{text:this.clusterPolygonModel.text,offsetX:this.offsetX,offsetY:this.offsetY,fontSize:this.fontSize,color:this.fontColor,aggregationCallback:t=>{this.mergeGeoJson(t)},removeAggregationCallback:t=>{const e=t.getId();e&&this.removeAggregation(e)}}),e=this.featurePolygon.getVectorSource(this.fpModelArr),n=t.getVectorLayer(e);this.map.addLayer(n)},selectGPSAll(t){this.polygonSet.forEach(e=>{e.selectGPS(t)}),this.featurePolygon&&this.featurePolygon.selectGPSAll(t)}}},at=st,lt=m(at,it,rt,!1,null,"289feb05",null),ct=lt.exports;ct.install=t=>{t.install(ct.name,ct)};var ut=ct,ht=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},pt=[];var ft={name:"RyClusters",props:{modelArr:{type:Array,default:()=>[]},text:{type:String,default:()=>"台"},map:{type:Object,default:()=>null},gpsType:{type:Number,default:0},fontColor:{type:String,default:"#fff"},src:{type:String,default:()=>null},fontSize:{type:Number,default:14},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0}},data(){return{fpModelArr:[],featurePolygon:new a["FeaturePolygon"](this.gpsType),scan:new a["GrahamScan"],polygonSet:new Set}},beforeDestroy(){this.clear()},watch:{modelArr(t){this.map&&(this.clear(),this.init())},gpsType(t){this.gpsType=t,this.selectGPSAll(t)}},created(){this.clear(),this.init()},methods:{clear(){},createFeaturePolygonModel(t,e){return new a["FeaturePolygonModel"](e,t)},async init(){this.initFeature(),this.initCluster()},initFeature(){this.modelArr.forEach(t=>{const e=this.createFeaturePolygonModel(t.id,[t.x,t.y]);this.fpModelArr.push(e)})},initCluster(){const t=new a["LClusterMarker"]((t,e,n)=>{const i=t.getId();n?this.$emit("callback",{id:i,isShow:!0}):this.$emit("callback",{id:i,isShow:!1})},{text:this.text,offsetX:this.offsetX,offsetY:this.offsetY,fontSize:this.fontSize,color:this.fontColor,src:this.src,aggregationCallback:t=>{},removeAggregationCallback:t=>{}}),e=this.featurePolygon.getVectorSource(this.fpModelArr),n=t.getVectorLayer(e);this.map.addLayer(n)},selectGPSAll(t){this.featurePolygon&&this.featurePolygon.selectGPSAll(t)}}},dt=ft,gt=m(dt,ht,pt,!1,null,"5453bb64",null),yt=gt.exports;yt.install=t=>{t.install(yt.name,yt)};var _t=yt,vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},mt=[];class bt extends X{constructor(...t){super(...t),c(this,"model",{type:Object,default:()=>null}),c(this,"isShow",{type:Boolean,default:!0}),c(this,"clear",{type:Boolean,default:!1}),c(this,"isFit",{type:Boolean,default:!0})}}var Ot={name:"RyPolygonGeo",props:{...new bt},data(){return{polygon:null,bbox:[],bboxGCJ02:[],lastType:-1}},watch:{isShow(t){this.polygon&&(t?this.show():this.hide())},clear(t){t&&this.remove()},model(t){this.remove(),this.model=t,this.init()},isFit(t){this.isFit=t,t&&this.setFit()},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.init()},methods:{init(){if(this.lastType=this.gpsType,!this.model||!this.model.geo)return;let t=[];if(this.model.geo){const{coordinates:e,center:n,bbox:i}=this._serializeGeoJson();this.bbox=i,this.bboxGCJ02=this.convertBBoxGCJ02(i),t=n}else this.bbox=Object(a["getLngAndLatMaxMin"])(this.model.coordinates),this.bboxGCJ02=this.convertBBoxGCJ02(this.bbox);this.polygon=Object(a["createPolygonBoundary"])(this.model.geo,this.model),this.map.addLayer(this.polygon),this.isFit&&this.setFit(1==this.gpsType?this.bboxGCJ02:this.bbox),this.polygon.isShowPolygon=!0,this.isShow?this.show():this.hide(),this.clear&&this.remove(),this.$emit("onLoad",{polygon:this.polygon})},setFit(t){if(!t.length||!this.map)return;const e=[t[0],t[3],t[2],t[1]],n=[t[2],t[1],t[0],t[3]];Object(a["fitNew"])(this.map,[e,n])},_serializeGeoJson(){let t=null;if(this.model.geo instanceof Object)t=this.model.geo;else{if("string"!==typeof this.model.geo)return t;t=JSON.parse(this.model.geo)}const{bbox:e,geometry:n,properties:i}=t;let r=[];return i&&i.center&&(r=i.center),{bbox:e,coordinates:n.coordinates,center:r.length?r:Object(a["getCenterPoint"])(n.coordinates)}},convertBBoxGCJ02(t){const e=[],{lat:n,lon:i}=a["GPS"].gcj_encrypt(t[0],t[1]),{lon:r,lat:o}=a["GPS"].gcj_encrypt(t[2],t[3]);return e.push(i),e.push(n),e.push(r),e.push(o),e},getBBOX(){if(!this.model.geo)return Object(a["getLngAndLatMaxMin"])(this.model.coordinates)},show(){},hide(){},selectGPSAll(t){},remove(){this.map&&this.polygon&&(this.map.removeLayer(this.polygon),this.polygon=null)},getId(){return this.id}}},xt=Ot,wt=m(xt,vt,mt,!1,null,null,null),Ct=wt.exports;Ct.install=t=>{t.install(Ct.name,Ct)};var Et=Ct;const St=[D,G,N,K,nt,ut,Et,_t],Pt=(t,e)=>{St.forEach(e=>{t.component(e.name,e)})};"undefined"!==typeof window&&window.Vue&&Pt(window.Vue);var jt={install:Pt};e["default"]=jt},fced:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"};i.METERS,i.FEET,i.USFEET,i.RADIANS,i.DEGREES;var r={};r[i.RADIANS]=6370997/(2*Math.PI),r[i.DEGREES]=2*Math.PI*6370997/360,r[i.FEET]=.3048,r[i.METERS]=1,r[i.USFEET]=1200/3937,e["b"]=i},fd4d:function(t,e,n){"use strict";function i(t,e,n,i,r){var o;for(e+=i;e<n;e+=i)if(o=r(t.slice(e-i,e),t.slice(e,e+i)),o)return o;return!1}n.d(e,"a",(function(){return i}))},ff80:function(t,e,n){"use strict";var i=n("e269"),r=n("1300"),o=n("256f"),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)}}(),a=function(t){function e(e){var n=t.call(this)||this;n.projection=Object(o["h"])(e.projection),n.attributions_=l(e.attributions),n.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,n.loading=!1,n.state_=void 0!==e.state?e.state:"ready",n.wrapX_=void 0!==e.wrapX&&e.wrapX,n.interpolate_=!!e.interpolate,n.viewResolver=null,n.viewRejector=null;var i=n;return n.viewPromise_=new Promise((function(t,e){i.viewResolver=t,i.viewRejector=e})),n}return s(e,t),e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection},e.prototype.getResolutions=function(){return Object(r["b"])()},e.prototype.getView=function(){return this.viewPromise_},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.getInterpolate=function(){return this.interpolate_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=l(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(i["a"]);function l(t){return t?Array.isArray(t)?function(e){return t}:"function"===typeof t?t:function(e){return[t]}:null}e["a"]=a}})}));
|