ry-vue-map 0.6.2 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
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}},"0532":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.r(e),r.d(e,"all",(function(){return s})),r.d(e,"altKeyOnly",(function(){return l})),r.d(e,"altShiftKeysOnly",(function(){return u})),r.d(e,"focus",(function(){return c})),r.d(e,"focusWithTabindex",(function(){return h})),r.d(e,"always",(function(){return f})),r.d(e,"click",(function(){return p})),r.d(e,"mouseActionButton",(function(){return d})),r.d(e,"never",(function(){return g})),r.d(e,"pointerMove",(function(){return y})),r.d(e,"singleClick",(function(){return v})),r.d(e,"doubleClick",(function(){return m})),r.d(e,"noModifierKeys",(function(){return _})),r.d(e,"platformModifierKeyOnly",(function(){return b})),r.d(e,"shiftKeyOnly",(function(){return x})),r.d(e,"targetNotEditable",(function(){return w})),r.d(e,"mouseOnly",(function(){return O})),r.d(e,"touchOnly",(function(){return E})),r.d(e,"penOnly",(function(){return S})),r.d(e,"primaryAction",(function(){return C}));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){return t.type==n["a"].CLICK},d=function(t){var e=t.originalEvent;return 0==e.button&&!(o["g"]&&o["d"]&&e.ctrlKey)},g=i["a"],y=function(t){return"pointermove"==t.type},v=function(t){return t.type==n["a"].SINGLECLICK},m=function(t){return t.type==n["a"].DBLCLICK},_=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},b=function(t){var e=t.originalEvent;return!e.altKey&&(o["d"]?e.metaKey:e.ctrlKey)&&!e.shiftKey},x=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},w=function(t){var e=t.originalEvent,r=e.target.tagName;return"INPUT"!==r&&"SELECT"!==r&&"TEXTAREA"!==r&&!e.target.isContentEditable},O=function(t){var e=t.originalEvent;return Object(a["a"])(void 0!==e,56),"mouse"==e.pointerType},E=function(t){var e=t.originalEvent;return Object(a["a"])(void 0!==e,56),"touch"===e.pointerType},S=function(t){var e=t.originalEvent;return Object(a["a"])(void 0!==e,56),"pen"===e.pointerType},C=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 C})),r.d(e,"extendRings",(function(){return T})),r.d(e,"extendXY",(function(){return P})),r.d(e,"forEachCorner",(function(){return j})),r.d(e,"getArea",(function(){return M})),r.d(e,"getBottomLeft",(function(){return R})),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 k})),r.d(e,"getForViewAndSize",(function(){return F})),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 B})),r.d(e,"getSize",(function(){return U})),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 Z})),r.d(e,"intersectsSegment",(function(){return K})),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 C(o,t,e,r,n)}function b(t,e){var r=y(e);return T(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 C(t,e,r,n,i){for(;r<n;r+=i)P(t,e[r],e[r+1]);return t}function T(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(R(t)),r||(r=e(A(t)),r||(r=e(X(t)),r||(r=e(V(t)),r||!1)))}function M(t){var e=0;return Y(t)||(e=W(t)*G(t)),e}function R(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=R(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 k(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 F(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 M(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 B(t){return W(t)+G(t)}function U(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 Z(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 K(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(T=0,P=y.length;T<P;T+=3)a.overflow||g.push(y[T+2]/this.resolution),p.push(y[T],y[T+1]);if(0===p.length)return;d=2;break;default:}k=this.appendFlatPointCoordinates(p,d);if(k===h)return;if(g&&(k-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,k,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,k,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 C=t.getEndss();S=[];for(var T=0,P=C.length;T<P;++T)S.push(C[T][0])}this.beginGeometry(t,e);for(var j=a.textAlign,M=0,R=void 0,A=0,L=S.length;A<L;++A){if(void 0==j){var I=c(a.maxAngle,p,M,S[A],d);M=I[0],R=I[1]}else R=S[A];for(var T=M;T<R;T+=d)l.push(p[T],p[T+1]);var k=l.length;M=S[A],this.drawChars_(h,k),h=k}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 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 f.default}}),Object.defineProperty(e,"HelpTooltip",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"LCircle",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"LCluster",{enumerable:!0,get:function(){return C.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,"LKML",{enumerable:!0,get:function(){return V.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,"LPopupNew",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"LRectangle",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"LWMS",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"LWMTS",{enumerable:!0,get:function(){return X.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 k.default}}),Object.defineProperty(e,"OfflineMap",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(e,"PolygonModel",{enumerable:!0,get:function(){return _.PolygonModel}}),Object.defineProperty(e,"PolygonModelNew",{enumerable:!0,get:function(){return _.PolygonModelNew}}),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,"VectorMap",{enumerable:!0,get:function(){return z.default}}),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,"createPolygonBoundaryNew",{enumerable:!0,get:function(){return _.createPolygonBoundaryNew}}),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,"exportToTxt",{enumerable:!0,get:function(){return _.exportToTxt}}),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,"formatLengthNew",{enumerable:!0,get:function(){return _.formatLengthNew}}),Object.defineProperty(e,"generateGuid",{enumerable:!0,get:function(){return _.generateGuid}}),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 F.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=Y(r("c12a")),d=Y(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")),C=n(r("5388")),T=n(r("304e")),P=r("5897"),j=n(r("e63e")),M=n(r("7cec")),R=Y(r("beb7")),A=n(r("40f1")),L=n(r("690f")),I=n(r("6e27")),k=n(r("6ee6")),F=n(r("b486")),D=n(r("7554")),G=n(r("de47")),N=n(r("beb2")),z=n(r("e318")),B=n(r("ed05")),U=n(r("be99")),V=n(r("9e25")),X=n(r("59ea")),W=n(r("42c0"));function H(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(H=function(t){return t?r:e})(t)}function Y(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};if(e=H(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],C=S.layer;if(C.hasRenderer()&&Object(u["b"])(S,f)&&a.call(l,C)){var T=C.getRenderer(),P=C.getSource();if(T&&P){var j=P.getWrapX()?g:t,M=p.bind(null,S.managed);w[0]=j[0]+y[O][0],w[1]=j[1]+y[O][1],h=T.forEachFeatureAtCoordinate(w,e,r,M,x)}if(h)return h}}if(0!==x.length){var R=1/x.length;return x.forEach((function(t,e){return t.distanceSq+=e*R})),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},"1ab5":function(t,e,r){"use strict";r.r(e),r.d(e,"getDefaultFillStyle",(function(){return Ct})),r.d(e,"getDefaultImageStyle",(function(){return jt})),r.d(e,"getDefaultStrokeStyle",(function(){return At})),r.d(e,"getDefaultTextStyle",(function(){return It})),r.d(e,"getDefaultStyle",(function(){return Ft})),r.d(e,"getDefaultStyleArray",(function(){return Nt})),r.d(e,"readFlatCoordinates",(function(){return qt}));var n=r("4cdf"),i=r("83a6"),o=r("d352"),a=r("521b"),s=r("6cbf"),l=r("82b0"),u=r("d202"),c=r("869f"),h=r("7a09"),f=r("47e4"),p=r("9a44"),d=r("88da"),g=r("f403"),y=r("5bc33"),v=r("8682"),m=r("6c77"),_=r("8295"),b=r("b7df"),x=r("1300"),w=r("9f5e"),O="http://www.w3.org/2001/XMLSchema-instance";function E(t,e){return W().createElementNS(t,e)}function S(t,e){return C(t,e,[]).join("")}function C(t,e,r){if(t.nodeType==Node.CDATA_SECTION_NODE||t.nodeType==Node.TEXT_NODE)e?r.push(String(t.nodeValue).replace(/(\r\n|\r|\n)/g,"")):r.push(t.nodeValue);else{var n=void 0;for(n=t.firstChild;n;n=n.nextSibling)C(n,e,r)}return r}function T(t){return"documentElement"in t}function P(t){return(new DOMParser).parseFromString(t,"application/xml")}function j(t,e){return function(r,n){var i=t.call(void 0!==e?e:this,r,n);if(void 0!==i){var o=n[n.length-1];Object(w["c"])(o,i)}}}function M(t,e){return function(r,n){var i=t.call(void 0!==e?e:this,r,n);if(void 0!==i){var o=n[n.length-1];o.push(i)}}}function R(t,e){return function(r,n){var i=t.call(void 0!==e?e:this,r,n);void 0!==i&&(n[n.length-1]=i)}}function A(t,e,r){return function(n,i){var o=t.call(void 0!==r?r:this,n,i);if(void 0!==o){var a=i[i.length-1],s=void 0!==e?e:n.localName;a[s]=o}}}function L(t,e){return function(r,n,i){t.call(void 0!==e?e:this,r,n,i);var o=i[i.length-1],a=o.node;a.appendChild(r)}}function I(t,e){var r=t;return function(t,n,i){var o=n[n.length-1],a=o.node,s=r;void 0===s&&(s=i);var l=void 0!==e?e:a.namespaceURI;return E(l,s)}}var k=I();function F(t,e){for(var r=e.length,n=new Array(r),i=0;i<r;++i)n[i]=t[e[i]];return n}function D(t,e,r){var n,i,o=void 0!==r?r:{};for(n=0,i=t.length;n<i;++n)o[t[n]]=e;return o}function G(t,e,r,n){var i;for(i=e.firstElementChild;i;i=i.nextElementSibling){var o=t[i.namespaceURI];if(void 0!==o){var a=o[i.localName];void 0!==a&&a.call(n,i,r)}}}function N(t,e,r,n,i){return n.push(t),G(e,r,n,i),n.pop()}function z(t,e,r,n,i,o){for(var a,s,l=(void 0!==i?i:r).length,u=0;u<l;++u)a=r[u],void 0!==a&&(s=e.call(void 0!==o?o:this,a,n,void 0!==i?i[u]:void 0),void 0!==s&&t[s.namespaceURI][s.localName].call(o,s,a,n))}function B(t,e,r,n,i,o,a){return i.push(t),z(e,r,n,i,o,a),i.pop()}var U=void 0;function V(){return void 0===U&&"undefined"!==typeof XMLSerializer&&(U=new XMLSerializer),U}var X=void 0;function W(){return void 0===X&&"undefined"!==typeof document&&(X=document.implementation.createDocument("","",null)),X}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)}}(),Y=function(t){function e(){var e=t.call(this)||this;return e.xmlSerializer_=V(),e}return H(e,t),e.prototype.getType=function(){return"xml"},e.prototype.readFeature=function(t,e){if(t){if("string"===typeof t){var r=P(t);return this.readFeatureFromDocument(r,e)}return T(t)?this.readFeatureFromDocument(t,e):this.readFeatureFromNode(t,e)}return null},e.prototype.readFeatureFromDocument=function(t,e){var r=this.readFeaturesFromDocument(t,e);return r.length>0?r[0]:null},e.prototype.readFeatureFromNode=function(t,e){return null},e.prototype.readFeatures=function(t,e){if(t){if("string"===typeof t){var r=P(t);return this.readFeaturesFromDocument(r,e)}return T(t)?this.readFeaturesFromDocument(t,e):this.readFeaturesFromNode(t,e)}return[]},e.prototype.readFeaturesFromDocument=function(t,e){for(var r=[],n=t.firstChild;n;n=n.nextSibling)n.nodeType==Node.ELEMENT_NODE&&Object(w["c"])(r,this.readFeaturesFromNode(n,e));return r},e.prototype.readFeaturesFromNode=function(t,e){return Object(x["b"])()},e.prototype.readGeometry=function(t,e){if(t){if("string"===typeof t){var r=P(t);return this.readGeometryFromDocument(r,e)}return T(t)?this.readGeometryFromDocument(t,e):this.readGeometryFromNode(t,e)}return null},e.prototype.readGeometryFromDocument=function(t,e){return null},e.prototype.readGeometryFromNode=function(t,e){return null},e.prototype.readProjection=function(t){if(t){if("string"===typeof t){var e=P(t);return this.readProjectionFromDocument(e)}return T(t)?this.readProjectionFromDocument(t):this.readProjectionFromNode(t)}return null},e.prototype.readProjectionFromDocument=function(t){return this.dataProjection},e.prototype.readProjectionFromNode=function(t){return this.dataProjection},e.prototype.writeFeature=function(t,e){var r=this.writeFeatureNode(t,e);return this.xmlSerializer_.serializeToString(r)},e.prototype.writeFeatureNode=function(t,e){return null},e.prototype.writeFeatures=function(t,e){var r=this.writeFeaturesNode(t,e);return this.xmlSerializer_.serializeToString(r)},e.prototype.writeFeaturesNode=function(t,e){return null},e.prototype.writeGeometry=function(t,e){var r=this.writeGeometryNode(t,e);return this.xmlSerializer_.serializeToString(r)},e.prototype.writeGeometryNode=function(t,e){return null},e}(b["a"]),q=Y,Z=r("5c38"),K=r("92fa"),J=r("256f");r("b0c1");function $(t){var e=S(t,!1);return Q(e)}function Q(t){var e=/^\s*(true|1)|(false|0)\s*$/.exec(t);return e?void 0!==e[1]||!1:void 0}function tt(t){var e=S(t,!1);return et(e)}function et(t){var e=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t);return e?parseFloat(e[1]):void 0}function rt(t){return S(t,!1).trim()}function nt(t,e){at(t,e?"1":"0")}function it(t,e){t.appendChild(W().createCDATASection(e))}function ot(t,e){var r=e.toPrecision();t.appendChild(W().createTextNode(r))}function at(t,e){t.appendChild(W().createTextNode(e))}var st,lt,ut,ct,ht,ft,pt=r("7fc9"),dt=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)}}(),gt=["http://www.google.com/kml/ext/2.2"],yt=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],vt="http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd",mt={fraction:l["a"].FRACTION,pixels:l["a"].PIXELS,insetPixels:l["a"].PIXELS},_t=D(yt,{ExtendedData:Ie,Region:ke,MultiGeometry:A(Ee,"geometry"),LineString:A(xe,"geometry"),LinearRing:A(we,"geometry"),Point:A(Se,"geometry"),Polygon:A(Te,"geometry"),Style:A(je),StyleMap:Ge,address:A(rt),description:A(rt),name:A(rt),open:A($),phoneNumber:A(rt),styleUrl:A(Kt),visibility:A($)},D(gt,{MultiTrack:A(pe,"geometry"),Track:A(ge,"geometry")})),bt=D(yt,{ExtendedData:Ie,Region:ke,Link:Ke,address:A(rt),description:A(rt),name:A(rt),open:A($),phoneNumber:A(rt),visibility:A($)}),xt=D(yt,{href:A(Zt)}),wt=D(yt,{LatLonAltBox:Ve,Lod:We}),Ot=D(yt,["Document","Placemark"]),Et=D(yt,{Document:L(ar),Placemark:L(kr)}),St=null;function Ct(){return St}var Tt,Pt=null;function jt(){return Pt}var Mt,Rt=null;function At(){return Rt}var Lt=null;function It(){return Lt}var kt=null;function Ft(){return kt}var Dt,Gt=null;function Nt(){return Gt}function zt(t){return 32/Math.min(t[0],t[1])}function Bt(){st=[255,255,255,1],St=new i["default"]({color:st}),lt=[20,2],ut=l["a"].PIXELS,ct=l["a"].PIXELS,ht=[64,64],ft="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png",Pt=new s["a"]({anchor:lt,anchorOrigin:u["a"].BOTTOM_LEFT,anchorXUnits:ut,anchorYUnits:ct,crossOrigin:"anonymous",rotation:0,scale:zt(ht),size:ht,src:ft}),Tt="NO_IMAGE",Rt=new v["default"]({color:st,width:1}),Mt=new v["default"]({color:[51,51,51,1],width:2}),Lt=new _["a"]({font:"bold 16px Helvetica",fill:St,stroke:Mt,scale:.8}),kt=new m["default"]({fill:St,image:Pt,text:Lt,stroke:Rt,zIndex:0}),Gt=[kt]}function Ut(t){return t}var Vt=function(t){function e(e){var r=t.call(this)||this,n=e||{};return Gt||Bt(),r.dataProjection=Object(J["get"])("EPSG:4326"),r.defaultStyle_=n.defaultStyle?n.defaultStyle:Gt,r.extractStyles_=void 0===n.extractStyles||n.extractStyles,r.writeStyles_=void 0===n.writeStyles||n.writeStyles,r.sharedStyles_={},r.showPointNames_=void 0===n.showPointNames||n.showPointNames,r.crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:"anonymous",r.iconUrlFunction_=n.iconUrlFunction?n.iconUrlFunction:Ut,r.supportedMediaTypes=["application/vnd.google-earth.kml+xml"],r}return dt(e,t),e.prototype.readDocumentOrFolder_=function(t,e){var r=D(yt,{Document:j(this.readDocumentOrFolder_,this),Folder:j(this.readDocumentOrFolder_,this),Placemark:M(this.readPlacemark_,this),Style:this.readSharedStyle_.bind(this),StyleMap:this.readSharedStyleMap_.bind(this)}),n=N([],r,t,e,this);return n||void 0},e.prototype.readPlacemark_=function(t,e){var r=N({geometry:null},_t,t,e,this);if(r){var i=new n["default"],o=t.getAttribute("id");null!==o&&i.setId(o);var a=e[0],s=r["geometry"];if(s&&Object(b["b"])(s,!1,a),i.setGeometry(s),delete r["geometry"],this.extractStyles_){var l=r["Style"],u=r["styleUrl"],c=Wt(l,u,this.defaultStyle_,this.sharedStyles_,this.showPointNames_);i.setStyle(c)}return delete r["Style"],i.setProperties(r,!0),i}},e.prototype.readSharedStyle_=function(t,e){var r=t.getAttribute("id");if(null!==r){var n=je.call(this,t,e);if(n){var i=void 0,o=t.baseURI;if(o&&"about:blank"!=o||(o=window.location.href),o){var a=new URL("#"+r,o);i=a.href}else i="#"+r;this.sharedStyles_[i]=n}}},e.prototype.readSharedStyleMap_=function(t,e){var r=t.getAttribute("id");if(null!==r){var n=te.call(this,t,e);if(n){var i,o=t.baseURI;if(o&&"about:blank"!=o||(o=window.location.href),o){var a=new URL("#"+r,o);i=a.href}else i="#"+r;this.sharedStyles_[i]=n}}},e.prototype.readFeatureFromNode=function(t,e){if(!Object(w["f"])(yt,t.namespaceURI))return null;var r=this.readPlacemark_(t,[this.getReadOptions(t,e)]);return r||null},e.prototype.readFeaturesFromNode=function(t,e){if(!Object(w["f"])(yt,t.namespaceURI))return[];var r,n=t.localName;if("Document"==n||"Folder"==n)return r=this.readDocumentOrFolder_(t,[this.getReadOptions(t,e)]),r||[];if("Placemark"==n){var i=this.readPlacemark_(t,[this.getReadOptions(t,e)]);return i?[i]:[]}if("kml"==n){r=[];for(var o=t.firstElementChild;o;o=o.nextElementSibling){var a=this.readFeaturesFromNode(o,e);a&&Object(w["c"])(r,a)}return r}return[]},e.prototype.readName=function(t){if(t){if("string"===typeof t){var e=P(t);return this.readNameFromDocument(e)}return T(t)?this.readNameFromDocument(t):this.readNameFromNode(t)}},e.prototype.readNameFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE){var r=this.readNameFromNode(e);if(r)return r}},e.prototype.readNameFromNode=function(t){for(var e=t.firstElementChild;e;e=e.nextElementSibling)if(Object(w["f"])(yt,e.namespaceURI)&&"name"==e.localName)return rt(e);for(e=t.firstElementChild;e;e=e.nextElementSibling){var r=e.localName;if(Object(w["f"])(yt,e.namespaceURI)&&("Document"==r||"Folder"==r||"Placemark"==r||"kml"==r)){var n=this.readNameFromNode(e);if(n)return n}}},e.prototype.readNetworkLinks=function(t){var e=[];if("string"===typeof t){var r=P(t);Object(w["c"])(e,this.readNetworkLinksFromDocument(r))}else T(t)?Object(w["c"])(e,this.readNetworkLinksFromDocument(t)):Object(w["c"])(e,this.readNetworkLinksFromNode(t));return e},e.prototype.readNetworkLinksFromDocument=function(t){for(var e=[],r=t.firstChild;r;r=r.nextSibling)r.nodeType==Node.ELEMENT_NODE&&Object(w["c"])(e,this.readNetworkLinksFromNode(r));return e},e.prototype.readNetworkLinksFromNode=function(t){for(var e=[],r=t.firstElementChild;r;r=r.nextElementSibling)if(Object(w["f"])(yt,r.namespaceURI)&&"NetworkLink"==r.localName){var n=N({},bt,r,[]);e.push(n)}for(r=t.firstElementChild;r;r=r.nextElementSibling){var i=r.localName;!Object(w["f"])(yt,r.namespaceURI)||"Document"!=i&&"Folder"!=i&&"kml"!=i||Object(w["c"])(e,this.readNetworkLinksFromNode(r))}return e},e.prototype.readRegion=function(t){var e=[];if("string"===typeof t){var r=P(t);Object(w["c"])(e,this.readRegionFromDocument(r))}else T(t)?Object(w["c"])(e,this.readRegionFromDocument(t)):Object(w["c"])(e,this.readRegionFromNode(t));return e},e.prototype.readRegionFromDocument=function(t){for(var e=[],r=t.firstChild;r;r=r.nextSibling)r.nodeType==Node.ELEMENT_NODE&&Object(w["c"])(e,this.readRegionFromNode(r));return e},e.prototype.readRegionFromNode=function(t){for(var e=[],r=t.firstElementChild;r;r=r.nextElementSibling)if(Object(w["f"])(yt,r.namespaceURI)&&"Region"==r.localName){var n=N({},wt,r,[]);e.push(n)}for(r=t.firstElementChild;r;r=r.nextElementSibling){var i=r.localName;!Object(w["f"])(yt,r.namespaceURI)||"Document"!=i&&"Folder"!=i&&"kml"!=i||Object(w["c"])(e,this.readRegionFromNode(r))}return e},e.prototype.writeFeaturesNode=function(t,e){e=this.adaptOptions(e);var r=E(yt[4],"kml"),n="http://www.w3.org/2000/xmlns/";r.setAttributeNS(n,"xmlns:gx",gt[0]),r.setAttributeNS(n,"xmlns:xsi",O),r.setAttributeNS(O,"xsi:schemaLocation",vt);var i={node:r},o={};t.length>1?o["Document"]=t:1==t.length&&(o["Placemark"]=t[0]);var a=Ot[r.namespaceURI],s=F(o,a);return B(i,Et,k,s,[e],a,this),r},e}(q);function Xt(t,e){var r=[0,0],n="start",i=t.getImage();if(i){var o=i.getSize();if(o&&2==o.length){var a=i.getScaleArray(),s=i.getAnchor();r[0]=a[0]*(o[0]-s[0]),r[1]=a[1]*(o[1]/2-s[1]),n="left"}}var l=t.getText();l?(l=l.clone(),l.setFont(l.getFont()||Lt.getFont()),l.setScale(l.getScale()||Lt.getScale()),l.setFill(l.getFill()||Lt.getFill()),l.setStroke(l.getStroke()||Mt)):l=Lt.clone(),l.setText(e),l.setOffsetX(r[0]),l.setOffsetY(r[1]),l.setTextAlign(n);var u=new m["default"]({image:i,text:l});return u}function Wt(t,e,r,n,i){return function(a,s){var l=i,u="",c=[];if(l){var h=a.getGeometry();if(h)if(h instanceof o["a"])c=h.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Point"===e||"MultiPoint"===e})),l=c.length>0;else{var f=h.getType();l="Point"===f||"MultiPoint"===f}}l&&(u=a.get("name"),l=l&&!!u,l&&u.search(/&[^&]+;/)>-1&&(Dt||(Dt=document.createElement("textarea")),Dt.innerHTML=u,u=Dt.value));var p=r;if(t?p=t:e&&(p=Ht(e,r,n)),l){var d=Xt(p[0],u);if(c.length>0){d.setGeometry(new o["a"](c));var g=new m["default"]({geometry:p[0].getGeometry(),image:null,fill:p[0].getFill(),stroke:p[0].getStroke(),text:null});return[d,g].concat(p.slice(1))}return d}return p}}function Ht(t,e,r){return Array.isArray(t)?t:"string"===typeof t?Ht(r[t],e,r):e}function Yt(t){var e=S(t,!1),r=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(e);if(r){var n=r[1];return[parseInt(n.substr(6,2),16),parseInt(n.substr(4,2),16),parseInt(n.substr(2,2),16),parseInt(n.substr(0,2),16)/255]}}function qt(t){var e=S(t,!1),r=[];e=e.replace(/\s*,\s*/g,",");var n,i=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?),([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|,|$)(?:([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|$))?\s*/i;while(n=i.exec(e)){var o=parseFloat(n[1]),a=parseFloat(n[2]),s=n[3]?parseFloat(n[3]):0;r.push(o,a,s),e=e.substr(n[0].length)}if(""===e)return r}function Zt(t){var e=S(t,!1).trim(),r=t.baseURI;if(r&&"about:blank"!=r||(r=window.location.href),r){var n=new URL(e,r);return n.href}return e}function Kt(t){var e=S(t,!1).trim().replace(/^(?!.*#)/,"#"),r=t.baseURI;if(r&&"about:blank"!=r||(r=window.location.href),r){var n=new URL(e,r);return n.href}return e}function Jt(t){var e,r=t.getAttribute("xunits"),n=t.getAttribute("yunits");return e="insetPixels"!==r?"insetPixels"!==n?u["a"].BOTTOM_LEFT:u["a"].TOP_LEFT:"insetPixels"!==n?u["a"].BOTTOM_RIGHT:u["a"].TOP_RIGHT,{x:parseFloat(t.getAttribute("x")),xunits:mt[r],y:parseFloat(t.getAttribute("y")),yunits:mt[n],origin:e}}function $t(t){return tt(t)}var Qt=D(yt,{Pair:De});function te(t,e){return N(void 0,Qt,t,e,this)}var ee=D(yt,{Icon:A(ve),color:A(Yt),heading:A(tt),hotSpot:A(Jt),scale:A($t)});function re(t,e){var r=N({},ee,t,e);if(r){var n,i,o,a,l=e[e.length-1],h="Icon"in r?r["Icon"]:{},f=!("Icon"in r)||Object.keys(h).length>0,p=h["href"];p?n=p:f&&(n=ft);var d,g=u["a"].BOTTOM_LEFT,y=r["hotSpot"];y?(i=[y.x,y.y],o=y.xunits,a=y.yunits,g=y.origin):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(n)&&(/pushpin/.test(n)?(i=lt,o=ut,a=ct):/arrow-reverse/.test(n)?(i=[54,42],o=ut,a=ct):/paddle/.test(n)&&(i=[32,1],o=ut,a=ct));var v,m=h["x"],_=h["y"];void 0!==m&&void 0!==_&&(d=[m,_]);var b,x=h["w"],w=h["h"];void 0!==x&&void 0!==w&&(v=[x,w]);var O=r["heading"];void 0!==O&&(b=Object(pt["m"])(O));var E=r["scale"],S=r["color"];if(f){n==ft&&(v=ht);var C=new s["a"]({anchor:i,anchorOrigin:g,anchorXUnits:o,anchorYUnits:a,crossOrigin:this.crossOrigin_,offset:d,offsetOrigin:u["a"].BOTTOM_LEFT,rotation:b,scale:E,size:v,src:this.iconUrlFunction_(n),color:S}),T=C.getScaleArray()[0],P=C.getSize();if(null===P){var j=C.getImageState();if(j===c["a"].IDLE||j===c["a"].LOADING){var M=function(){var t=C.getImageState();if(t!==c["a"].IDLE&&t!==c["a"].LOADING){var e=C.getSize();if(e&&2==e.length){var r=zt(e);C.setScale(T*r)}C.unlistenImageChange(M)}};C.listenImageChange(M),j===c["a"].IDLE&&C.load()}}else if(2==P.length){var R=zt(P);C.setScale(T*R)}l["imageStyle"]=C}else l["imageStyle"]=Tt}}var ne=D(yt,{color:A(Yt),scale:A($t)});function ie(t,e){var r=N({},ne,t,e);if(r){var n=e[e.length-1],o=new _["a"]({fill:new i["default"]({color:"color"in r?r["color"]:st}),scale:r["scale"]});n["textStyle"]=o}}var oe=D(yt,{color:A(Yt),width:A(tt)});function ae(t,e){var r=N({},oe,t,e);if(r){var n=e[e.length-1],i=new v["default"]({color:"color"in r?r["color"]:st,width:"width"in r?r["width"]:1});n["strokeStyle"]=i}}var se=D(yt,{color:A(Yt),fill:A($),outline:A($)});function le(t,e){var r=N({},se,t,e);if(r){var n=e[e.length-1],o=new i["default"]({color:"color"in r?r["color"]:st});n["fillStyle"]=o;var a=r["fill"];void 0!==a&&(n["fill"]=a);var s=r["outline"];void 0!==s&&(n["outline"]=s)}}var ue=D(yt,{coordinates:R(qt)});function ce(t,e){return N(null,ue,t,e)}function he(t,e){var r=e[e.length-1],n=r.coordinates,i=S(t,!1),o=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i,a=o.exec(i);if(a){var s=parseFloat(a[1]),l=parseFloat(a[2]),u=parseFloat(a[3]);n.push([s,l,u])}else n.push([])}var fe=D(gt,{Track:M(ge)});function pe(t,e){var r=N([],fe,t,e);if(r)return new f["a"](r)}var de=D(yt,{when:Je},D(gt,{coord:he}));function ge(t,e){var r=N({coordinates:[],whens:[]},de,t,e);if(r){for(var n=[],i=r.coordinates,o=r.whens,s=0,l=Math.min(i.length,o.length);s<l;++s)3==i[s].length&&n.push(i[s][0],i[s][1],i[s][2],o[s]);return new h["default"](n,a["a"].XYZM)}}var ye=D(yt,{href:A(Zt)},D(gt,{x:A(tt),y:A(tt),w:A(tt),h:A(tt)}));function ve(t,e){var r=N({},ye,t,e);return r||null}var me=D(yt,{coordinates:R(qt)});function _e(t,e){return N(null,me,t,e)}var be=D(yt,{extrude:A($),tessellate:A($),altitudeMode:A(rt)});function xe(t,e){var r=N({},be,t,e),n=_e(t,e);if(n){var i=new h["default"](n,a["a"].XYZ);return i.setProperties(r,!0),i}}function we(t,e){var r=N({},be,t,e),n=_e(t,e);if(n){var i=new y["default"](n,a["a"].XYZ,[n.length]);return i.setProperties(r,!0),i}}var Oe=D(yt,{LineString:M(xe),LinearRing:M(we),MultiGeometry:M(Ee),Point:M(Se),Polygon:M(Te)});function Ee(t,e){var r,n=N([],Oe,t,e);if(!n)return null;if(0===n.length)return new o["a"](n);for(var i,a=!0,s=n[0].getType(),l=1,u=n.length;l<u;++l)if(i=n[l],i.getType()!=s){a=!1;break}if(a){var c=void 0,h=void 0;if("Point"==s){var g=n[0];c=g.getLayout(),h=g.getFlatCoordinates();for(l=1,u=n.length;l<u;++l)i=n[l],Object(w["c"])(h,i.getFlatCoordinates());r=new p["default"](h,c),Me(r,n)}else"LineString"==s?(r=new f["a"](n),Me(r,n)):"Polygon"==s?(r=new d["a"](n),Me(r,n)):"GeometryCollection"==s?r=new o["a"](n):Object(K["a"])(!1,37)}else r=new o["a"](n);return r}function Se(t,e){var r=N({},be,t,e),n=_e(t,e);if(n){var i=new g["default"](n,a["a"].XYZ);return i.setProperties(r,!0),i}}var Ce=D(yt,{innerBoundaryIs:Ye,outerBoundaryIs:Ze});function Te(t,e){var r=N({},be,t,e),n=N([null],Ce,t,e);if(n&&n[0]){for(var i=n[0],o=[i.length],s=1,l=n.length;s<l;++s)Object(w["c"])(i,n[s]),o.push(i.length);var u=new y["default"](i,a["a"].XYZ,o);return u.setProperties(r,!0),u}}var Pe=D(yt,{IconStyle:re,LabelStyle:ie,LineStyle:ae,PolyStyle:le});function je(t,e){var r=N({},Pe,t,e,this);if(!r)return null;var n,i="fillStyle"in r?r["fillStyle"]:St,a=r["fill"];void 0===a||a||(i=null),"imageStyle"in r?r["imageStyle"]!=Tt&&(n=r["imageStyle"]):n=Pt;var s="textStyle"in r?r["textStyle"]:Lt,l="strokeStyle"in r?r["strokeStyle"]:Rt,u=r["outline"];return void 0===u||u?[new m["default"]({fill:i,image:n,stroke:l,text:s,zIndex:void 0})]:[new m["default"]({geometry:function(t){var e=t.getGeometry(),r=e.getType();if("GeometryCollection"===r){var n=e;return new o["a"](n.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Polygon"!==e&&"MultiPolygon"!==e})))}if("Polygon"!==r&&"MultiPolygon"!==r)return e},fill:i,image:n,stroke:l,text:s,zIndex:void 0}),new m["default"]({geometry:function(t){var e=t.getGeometry(),r=e.getType();if("GeometryCollection"===r){var n=e;return new o["a"](n.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Polygon"===e||"MultiPolygon"===e})))}if("Polygon"===r||"MultiPolygon"===r)return e},fill:i,stroke:null,zIndex:void 0})]}function Me(t,e){var r,n,i,o=e.length,a=new Array(e.length),s=new Array(e.length),l=new Array(e.length);r=!1,n=!1,i=!1;for(var u=0;u<o;++u){var c=e[u];a[u]=c.get("extrude"),s[u]=c.get("tessellate"),l[u]=c.get("altitudeMode"),r=r||void 0!==a[u],n=n||void 0!==s[u],i=i||l[u]}r&&t.set("extrude",a),n&&t.set("tessellate",s),i&&t.set("altitudeMode",l)}var Re=D(yt,{displayName:A(rt),value:A(rt)});function Ae(t,e){var r=t.getAttribute("name");G(Re,t,e);var n=e[e.length-1];r&&n.displayName?n[r]={value:n.value,displayName:n.displayName,toString:function(){return n.value}}:null!==r?n[r]=n.value:null!==n.displayName&&(n[n.displayName]=n.value),delete n["value"]}var Le=D(yt,{Data:Ae,SchemaData:ze});function Ie(t,e){G(Le,t,e)}function ke(t,e){G(wt,t,e)}var Fe=D(yt,{Style:A(je),key:A(rt),styleUrl:A(Kt)});function De(t,e){var r=N({},Fe,t,e,this);if(r){var n=r["key"];if(n&&"normal"==n){var i=r["styleUrl"];i&&(e[e.length-1]=i);var o=r["Style"];o&&(e[e.length-1]=o)}}}function Ge(t,e){var r=te.call(this,t,e);if(r){var n=e[e.length-1];Array.isArray(r)?n["Style"]=r:"string"===typeof r?n["styleUrl"]=r:Object(K["a"])(!1,38)}}var Ne=D(yt,{SimpleData:Be});function ze(t,e){G(Ne,t,e)}function Be(t,e){var r=t.getAttribute("name");if(null!==r){var n=rt(t),i=e[e.length-1];i[r]=n}}var Ue=D(yt,{altitudeMode:A(rt),minAltitude:A(tt),maxAltitude:A(tt),north:A(tt),south:A(tt),east:A(tt),west:A(tt)});function Ve(t,e){var r=N({},Ue,t,e);if(r){var n=e[e.length-1],i=[parseFloat(r["west"]),parseFloat(r["south"]),parseFloat(r["east"]),parseFloat(r["north"])];n["extent"]=i,n["altitudeMode"]=r["altitudeMode"],n["minAltitude"]=parseFloat(r["minAltitude"]),n["maxAltitude"]=parseFloat(r["maxAltitude"])}}var Xe=D(yt,{minLodPixels:A(tt),maxLodPixels:A(tt),minFadeExtent:A(tt),maxFadeExtent:A(tt)});function We(t,e){var r=N({},Xe,t,e);if(r){var n=e[e.length-1];n["minLodPixels"]=parseFloat(r["minLodPixels"]),n["maxLodPixels"]=parseFloat(r["maxLodPixels"]),n["minFadeExtent"]=parseFloat(r["minFadeExtent"]),n["maxFadeExtent"]=parseFloat(r["maxFadeExtent"])}}var He=D(yt,{LinearRing:M(ce)});function Ye(t,e){var r=N([],He,t,e);if(r.length>0){var n=e[e.length-1];n.push.apply(n,r)}}var qe=D(yt,{LinearRing:R(ce)});function Ze(t,e){var r=N(void 0,qe,t,e);if(r){var n=e[e.length-1];n[0]=r}}function Ke(t,e){G(xt,t,e)}function Je(t,e){var r=e[e.length-1],n=r.whens,i=S(t,!1),o=Date.parse(i);n.push(isNaN(o)?0:o)}function $e(t,e){for(var r=Object(Z["a"])(e),n=4==r.length?r[3]:1,i=[255*n,r[2],r[1],r[0]],o=0;o<4;++o){var a=Math.floor(i[o]).toString(16);i[o]=1==a.length?"0"+a:a}at(t,i.join(""))}function Qe(t,e,r){var n,i=r[r.length-1],o=i["layout"],s=i["stride"];o==a["a"].XY||o==a["a"].XYM?n=2:o==a["a"].XYZ||o==a["a"].XYZM?n=3:Object(K["a"])(!1,34);var l=e.length,u="";if(l>0){u+=e[0];for(var c=1;c<n;++c)u+=","+e[c];for(var h=s;h<l;h+=s){u+=" "+e[h];for(c=1;c<n;++c)u+=","+e[h+c]}}at(t,u)}var tr=D(yt,{Data:L(er),value:L(nr),displayName:L(rr)});function er(t,e,r){t.setAttribute("name",e.name);var n={node:t},i=e.value;"object"==typeof i?(null!==i&&i.displayName&&B(n,tr,k,[i.displayName],r,["displayName"]),null!==i&&i.value&&B(n,tr,k,[i.value],r,["value"])):B(n,tr,k,[i],r,["value"])}function rr(t,e){it(t,e)}function nr(t,e){at(t,e)}var ir=D(yt,{Placemark:L(kr)}),or=function(t,e,r){var n=e[e.length-1].node;return E(n.namespaceURI,"Placemark")};function ar(t,e,r){var n={node:t};B(n,ir,or,e,r,void 0,this)}var sr=I("Data");function lr(t,e,r){for(var n={node:t},i=e.names,o=e.values,a=i.length,s=0;s<a;s++)B(n,tr,sr,[{name:i[s],value:o[s]}],r)}var ur=D(yt,["href"],D(gt,["x","y","w","h"])),cr=D(yt,{href:L(at)},D(gt,{x:L(ot),y:L(ot),w:L(ot),h:L(ot)})),hr=function(t,e,r){return E(gt[0],"gx:"+r)};function fr(t,e,r){var n={node:t},i=r[r.length-1].node,o=ur[i.namespaceURI],a=F(e,o);B(n,cr,k,a,r,o),o=ur[gt[0]],a=F(e,o),B(n,cr,hr,a,r,o)}var pr=D(yt,["scale","heading","Icon","color","hotSpot"]),dr=D(yt,{Icon:L(fr),color:L($e),heading:L(ot),hotSpot:L(Kr),scale:L(Hr)});function gr(t,e,r){var n={node:t},i={},o=e.getSrc(),a=e.getSize(),s=e.getImageSize(),u={href:o};if(a){u["w"]=a[0],u["h"]=a[1];var c=e.getAnchor(),h=e.getOrigin();if(h&&s&&0!==h[0]&&h[1]!==a[1]&&(u["x"]=h[0],u["y"]=s[1]-(h[1]+a[1])),c&&(c[0]!==a[0]/2||c[1]!==a[1]/2)){var f={x:c[0],xunits:l["a"].PIXELS,y:a[1]-c[1],yunits:l["a"].PIXELS};i["hotSpot"]=f}}i["Icon"]=u;var p=e.getScaleArray()[0],d=a;if(null===d&&(d=ht),2==d.length){var g=zt(d);p/=g}1!==p&&(i["scale"]=p);var y=e.getRotation();0!==y&&(i["heading"]=y);var v=e.getColor();v&&(i["color"]=v);var m=r[r.length-1].node,_=pr[m.namespaceURI],b=F(i,_);B(n,dr,k,b,r,_)}var yr=D(yt,["color","scale"]),vr=D(yt,{color:L($e),scale:L(Hr)});function mr(t,e,r){var n={node:t},i={},o=e.getFill();o&&(i["color"]=o.getColor());var a=e.getScale();a&&1!==a&&(i["scale"]=a);var s=r[r.length-1].node,l=yr[s.namespaceURI],u=F(i,l);B(n,vr,k,u,r,l)}var _r=D(yt,["color","width"]),br=D(yt,{color:L($e),width:L(ot)});function xr(t,e,r){var n={node:t},i={color:e.getColor(),width:Number(e.getWidth())||1},o=r[r.length-1].node,a=_r[o.namespaceURI],s=F(i,a);B(n,br,k,s,r,a)}var wr={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},Or=function(t,e,r){if(t){var n=e[e.length-1].node;return E(n.namespaceURI,wr[t.getType()])}},Er=I("Point"),Sr=I("LineString"),Cr=I("LinearRing"),Tr=I("Polygon"),Pr=D(yt,{LineString:L(Gr),Point:L(Gr),Polygon:L(Vr),GeometryCollection:L(jr)});function jr(t,e,r){var n,i={node:t},o=e.getType(),a=[];"GeometryCollection"===o?(e.getGeometriesArrayRecursive().forEach((function(t){var e=t.getType();"MultiPoint"===e?a=a.concat(t.getPoints()):"MultiLineString"===e?a=a.concat(t.getLineStrings()):"MultiPolygon"===e?a=a.concat(t.getPolygons()):"Point"===e||"LineString"===e||"Polygon"===e?a.push(t):Object(K["a"])(!1,39)})),n=Or):"MultiPoint"===o?(a=e.getPoints(),n=Er):"MultiLineString"===o?(a=e.getLineStrings(),n=Sr):"MultiPolygon"===o?(a=e.getPolygons(),n=Tr):Object(K["a"])(!1,39),B(i,Pr,n,a,r)}var Mr=D(yt,{LinearRing:L(Gr)});function Rr(t,e,r){var n={node:t};B(n,Mr,Cr,[e],r)}var Ar=D(yt,{ExtendedData:L(lr),MultiGeometry:L(jr),LineString:L(Gr),LinearRing:L(Gr),Point:L(Gr),Polygon:L(Vr),Style:L(Zr),address:L(at),description:L(at),name:L(at),open:L(nt),phoneNumber:L(at),styleUrl:L(at),visibility:L(nt)}),Lr=D(yt,["name","open","visibility","address","phoneNumber","description","styleUrl","Style"]),Ir=I("ExtendedData");function kr(t,e,r){var n={node:t};e.getId()&&t.setAttribute("id",e.getId());var i=e.getProperties(),o={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};o[e.getGeometryName()]=1;var a=Object.keys(i||{}).sort().filter((function(t){return!o[t]})),s=e.getStyleFunction();if(s){var l=s(e,0);if(l){var u=Array.isArray(l)?l:[l],c=u;if(e.getGeometry()&&(c=u.filter((function(t){var r=t.getGeometryFunction()(e);if(r){var n=r.getType();return"GeometryCollection"===n?r.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Point"===e||"MultiPoint"===e})).length:"Point"===n||"MultiPoint"===n}}))),this.writeStyles_){var h=u,f=u;e.getGeometry()&&(h=u.filter((function(t){var r=t.getGeometryFunction()(e);if(r){var n=r.getType();return"GeometryCollection"===n?r.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"LineString"===e||"MultiLineString"===e})).length:"LineString"===n||"MultiLineString"===n}})),f=u.filter((function(t){var r=t.getGeometryFunction()(e);if(r){var n=r.getType();return"GeometryCollection"===n?r.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Polygon"===e||"MultiPolygon"===e})).length:"Polygon"===n||"MultiPolygon"===n}}))),i["Style"]={pointStyles:c,lineStyles:h,polyStyles:f}}if(c.length&&void 0===i["name"]){var p=c[0].getText();p&&(i["name"]=p.getText())}}}var d=r[r.length-1].node,g=Lr[d.namespaceURI],y=F(i,g);if(B(n,Ar,k,y,r,g),a.length>0){var v=F(i,a),m={names:a,values:v};B(n,Ar,Ir,[m],r)}var _=r[0],x=e.getGeometry();x&&(x=Object(b["b"])(x,!0,_)),B(n,Ar,Or,[x],r)}var Fr=D(yt,["extrude","tessellate","altitudeMode","coordinates"]),Dr=D(yt,{extrude:L(nt),tessellate:L(nt),altitudeMode:L(at),coordinates:L(Qe)});function Gr(t,e,r){var n=e.getFlatCoordinates(),i={node:t};i["layout"]=e.getLayout(),i["stride"]=e.getStride();var o=e.getProperties();o.coordinates=n;var a=r[r.length-1].node,s=Fr[a.namespaceURI],l=F(o,s);B(i,Dr,k,l,r,s)}var Nr=D(yt,["color","fill","outline"]),zr=D(yt,{outerBoundaryIs:L(Rr),innerBoundaryIs:L(Rr)}),Br=I("innerBoundaryIs"),Ur=I("outerBoundaryIs");function Vr(t,e,r){var n=e.getLinearRings(),i=n.shift(),o={node:t};B(o,zr,Br,n,r),B(o,zr,Ur,[i],r)}var Xr=D(yt,{color:L($e),fill:L(nt),outline:L(nt)});function Wr(t,e,r){var n={node:t},i=e.getFill(),o=e.getStroke(),a={color:i?i.getColor():void 0,fill:!!i&&void 0,outline:!!o&&void 0},s=r[r.length-1].node,l=Nr[s.namespaceURI],u=F(a,l);B(n,Xr,k,u,r,l)}function Hr(t,e){ot(t,Math.round(1e6*e)/1e6)}var Yr=D(yt,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),qr=D(yt,{IconStyle:L(gr),LabelStyle:L(mr),LineStyle:L(xr),PolyStyle:L(Wr)});function Zr(t,e,r){var n={node:t},i={};if(e.pointStyles.length){var o=e.pointStyles[0].getText();o&&(i["LabelStyle"]=o);var a=e.pointStyles[0].getImage();a&&"function"===typeof a.getSrc&&(i["IconStyle"]=a)}if(e.lineStyles.length){var s=e.lineStyles[0].getStroke();s&&(i["LineStyle"]=s)}if(e.polyStyles.length){s=e.polyStyles[0].getStroke();s&&!i["LineStyle"]&&(i["LineStyle"]=s),i["PolyStyle"]=e.polyStyles[0]}var l=r[r.length-1].node,u=Yr[l.namespaceURI],c=F(i,u);B(n,qr,k,c,r,u)}function Kr(t,e){t.setAttribute("x",String(e.x)),t.setAttribute("y",String(e.y)),t.setAttribute("xunits",e.xunits),t.setAttribute("yunits",e.yunits)}e["default"]=Vt},"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},"1bc7":function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var n="1.3.0"},"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 F})),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,C=r("e637"),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)}}(),P=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],j={ENTERFULLSCREEN:"enterfullscreen",LEAVEFULLSCREEN:"leavefullscreen"},M=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 T(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(R(e))if(A(e))k(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(C["a"].TARGET,this.boundHandleMapTargetChange_),t.prototype.setMap.call(this,e),this.handleMapTargetChange_(),e&&e.addChangeListener(C["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();R(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 R(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 k(t){t.exitFullscreen?t.exitFullscreen():t["msExitFullscreen"]?t["msExitFullscreen"]():t["webkitExitFullscreen"]&&t["webkitExitFullscreen"]()}var F=M,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",B="coordinateFormat",U=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="&#160;";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(B)},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(B,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=U,X=r("1856"),W=r("7b4f"),H=r("0710"),Y=r("fe37"),q=r("a2c7"),Z=r("4384"),K=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===C["a"].VIEW){var e=t.oldValue;e&&this.unbindView_(e);var r=this.getMap().getView();this.bindView_(r)}else this.ovmap_.isRendered()||t.key!==C["a"].TARGET&&t.key!==C["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(Z["a"].ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_()},e.prototype.unbindView_=function(t){t.removeChangeListener(Z["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(K["equals"])(i,this.viewExtent_)){this.viewExtent_=i;var o=e.getSize(),a=e.getView(),s=a.calculateExtentInternal(o),l=e.getPixelFromCoordinateInternal(Object(K["getTopLeft"])(i)),u=e.getPixelFromCoordinateInternal(Object(K["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(K["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(K["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},2241:function(t,e,r){"use strict";r("dd49")},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["default"]})),r.d(e,"disableCoordinateWarning",(function(){return I})),r.d(e,"cloneTransform",(function(){return k})),r.d(e,"identityTransform",(function(){return F})),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 B})),r.d(e,"addEquivalentTransforms",(function(){return U})),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 Z})),r.d(e,"getTransformFromProjections",(function(){return K})),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["default"]),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["default"]),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 C={};function T(){C={}}function P(t,e,r){var n=t.getCode(),i=e.getCode();n in C||(C[n]={}),C[n][i]=r}function j(t,e){var r;return t in C&&e in C[t]&&(r=C[t][e]),r}var M=r("0af5"),R=r("a568"),A=r("790a"),L=!0;function I(t){var e=void 0===t||t;L=!e}function k(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 F(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,k)}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=K(t,N("EPSG:4326"));if(u===F&&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 B(t){G(t),t.forEach((function(e){t.forEach((function(t){e!==t&&P(e,t,k)}))}))}function U(t,e,r,n){t.forEach((function(t){e.forEach((function(e){P(t,e,r),P(e,t,n)}))}))}function V(){O(),T()}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 Z(t,e){if(t===e)return!0;var r=t.getUnits()===e.getUnits();if(t.getCode()===e.getCode())return r;var n=K(t,e);return n===k&&r}function K(t,e){var r=t.getCode(),n=e.getCode(),i=j(r,n);return i||(i=F),i}function J(t,e){var r=N(t),n=N(e);return K(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(M["applyTransform"])(t,i,void 0,n)}function tt(t,e,r){var n=K(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(R["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(M["getWidth"])(s);n=n.slice(0),a=Object(R["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(M["getWidth"])(e.getExtent())),i}}function pt(){B(p),B(x),U(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]),C=Object(l["a"])(e,i,O,S);if(!isFinite(C)||C<=0)return _.state=a["a"].EMPTY,_;var T=void 0!==y?y:n["b"];if(_.triangulation_=new s["a"](e,i,O,w,C*T,S),0===_.triangulation_.getTriangles().length)return _.state=a["a"].EMPTY,_;_.sourceZ_=r.getZForResolution(C);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_),M=j.minX;M<=j.maxX;M++)for(var R=j.minY;R<=j.maxY;R++){var A=g(_.sourceZ_,M,R,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 C=w*b,T="#"+("000000"+C.toString(16)).slice(-6),P=0,j=S.length;P<j;++P){var M=S[P],R=M.getGeometryFunction()(O);if(R&&Object(l["intersects"])(h,R.getExtent())){var A=M.clone(),L=A.getFill();L&&L.setColor(T);var I=A.getStroke();I&&(I.setColor(T),I.setLineDash(null)),A.setText(void 0);var k=M.getImage();if(k&&0!==k.getOpacity()){var F=k.getImageSize();if(!F)continue;var D=Object(s["a"])(F[0],F[1],void 0,{alpha:!1}),G=D.canvas;D.fillStyle=T,D.fillRect(0,0,G.width,G.height),A.setImage(new o["a"]({img:G,imgSize:F,anchor:k.getAnchor(),anchorXUnits:i["a"].PIXELS,anchorYUnits:i["a"].PIXELS,offset:k.getOrigin(),opacity:1,size:k.getSize(),scale:k.getScale(),rotation:k.getRotation(),rotateWithView:k.getRotateWithView()}))}var N=A.getZIndex()||0,z=x[N];z||(z={},x[N]=z,z["Polygon"]=[],z["Circle"]=[],z["LineString"]=[],z["Point"]=[]),z[R.getType().replace("Multi","")].push(R,A)}}}}}for(var B=Object.keys(x).map(Number).sort(u["i"]),U=(w=0,B.length);w<U;++w){z=x[B[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,C=!0;if(a.extent){var T=Object(h["fromUserExtent"])(a.extent,p.projection);C=Object(c["intersects"])(T,t.extent),S=C&&!Object(c["containsExtent"])(T,t.extent),S&&this.clipUnrotated(O,t,T)}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 M=P.width*j[0],R=P.height*j[3];if(this.getLayer().getSource().getInterpolate()||Object(u["a"])(O,s["a"]),this.preRender(O,t),C&&M>=.5&&R>=.5){var A=j[4],L=j[5],I=a.opacity,k=void 0;1!==I&&(k=O.globalAlpha,O.globalAlpha=I),O.drawImage(P,0,0,+P.width,+P.height,A,L,M,R),1!==I&&(O.globalAlpha=k)}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(),zIndex:this.zIndex}),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 T})),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 R})),r.d(e,"Draw",(function(){return ht["default"]})),r.d(e,"Extent",(function(){return Tt})),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["altShiftKeysOnly"],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["mouseOnly"])(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["mouseOnly"])(t))return!0;var e=t.map,r=e.getView();return r.endInteraction(this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!Object(f["mouseOnly"])(t))return!1;if(Object(f["mouseActionButton"])(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"]),C=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["mouseActionButton"],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"]),T=C,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)}}(),M=function(t){function e(e){var r=this,n=e||{},i=n.condition?n.condition:f["shiftKeyOnly"];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}(T),R=M,A=r("01d4"),L={LEFT:37,UP:38,RIGHT:39,DOWN:40},I=r("a568"),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)}}(),F=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.defaultCondition_=function(t){return Object(f["noModifierKeys"])(t)&&Object(f["targetNotEditable"])(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 k(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=F,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["targetNotEditable"],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,B=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}(),U=B,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["always"];return r.condition_=n.onFocusOnly?Object(f["all"])(f["focusWithTabindex"],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,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)}}(),K=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 Z(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=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)}}(),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["shiftKeyOnly"],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["mouseOnly"])(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["mouseOnly"])(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["mouseOnly"])(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["always"],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=Ct(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 Ct(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 Tt=xt,Pt=r("183a"),jt=r("4a7d"),Mt=r("a43f"),Rt=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,kt=1,Ft=[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["primaryAction"],i.defaultDeleteCondition_=function(t){return Object(f["altKeyOnly"])(t)&&Object(f["singleClick"])(t)},i.deleteCondition_=e.deleteCondition?e.deleteCondition:i.defaultDeleteCondition_,i.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:f["always"],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(Mt["a"].ADDFEATURE,i.handleSourceAdd_.bind(i)),i.source_.addEventListener(Mt["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:kt,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(Bt);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!==kt)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 Ut(a,t,s)-Ut(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(Rt["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,Ft),s),h=e.getView().getResolution()*this.pixelTolerance_,f=Object(et["toUserExtent"])(Object(yt["buffer"])(c,h,Ft),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===kt)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 C=n[E].segment;if(!(Object(I["f"])(d[0],C[0])&&Object(I["f"])(d[1],C[1])||Object(I["f"])(d[0],C[1])&&Object(I["f"])(d[1],C[0])))break;var T=Object(At["c"])(n[E].geometry);T in O||(O[T]=!0,m[Object(At["c"])(C)]=!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(Rt["b"])(i.depth,r))&&i.index>e&&(i.index+=n)}))},e}(c["b"]);function Bt(t,e){return t.index-e.index}function Ut(t,e,r){var n=e.geometry;if("Circle"===n.getType()){var i=n;if(e.index===kt){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===kt){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"},Zt=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"]),Kt={},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["singleClick"],r.addCondition_=o.addCondition?o.addCondition:f["never"],r.removeCondition_=o.removeCondition?o.removeCondition:f["never"],r.toggleCondition_=o.toggleCondition?o.toggleCondition:f["shiftKeyOnly"],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(Rt["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 Kt||(Kt[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(Kt[o]),delete Kt[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(Rt["f"])(a.getArray(),t)?(r||n)&&Object(Rt["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 Zt(qt.SELECT,l,s,t)),!0},e}(i["a"]);function $t(){var t=Object(vt["createEditingStyle"])();return Object(Rt["c"])(t["Polygon"],t["LineString"]),Object(Rt["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_,Mt["a"].ADDFEATURE,this.handleFeatureAdd_,this),Object(rt["a"])(this.source_,Mt["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(Rt["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["always"],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(Rt["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 U(-.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 R({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 C=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]-C[0])/h),v=b(-(a[0][1]-C[1])/h),w=b((a[1][0]-C[0])/h),O=b(-(a[1][1]-C[1])/h),S=b((a[2][0]-C[0])/h),T=b(-(a[2][1]-C[1])/h),P=s,j=l;s=0,l=0,c-=P,f-=j,d-=P,g-=j;var M=[[c,f,0,0,w-y],[d,g,0,0,S-y],[0,0,c,f,O-v],[0,0,d,g,T-v]],R=Object(u["i"])(M);if(R){if(_.save(),_.beginPath(),p()||!m){_.moveTo(w,O);for(var A=4,L=y-w,I=v-O,k=0;k<A;k++)_.lineTo(w+b((k+1)*L/A),O+b(k*I/(A-1))),k!=A-1&&_.lineTo(w+b((k+1)*L/A),O+b((k+1)*I/(A-1)));_.lineTo(S,T)}else _.moveTo(w,O),_.lineTo(y,v),_.lineTo(S,T);_.clip(),_.transform(R[0],R[2],R[1],R[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]-C[0])/h,o=-(n[0][1]-C[1])/h,a=(n[1][0]-C[0])/h,s=-(n[1][1]-C[1])/h,l=(n[2][0]-C[0])/h,u=-(n[2][1]-C[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"}},{key:"setClassName",value:function(t){this.ele.className=t}}]),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},"42c0":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("6792")),l=function(){function t(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};(0,i.default)(this,t),this.options={},this.map=null,this.imageWMS=null,this.tileLayer=null,this.zIndex=1,this.isShow=!0,this.id=e.id,this.url=e.url,this.name=e.name,this.options=n,this.params=r,this.map=e.map,this.init()}return(0,o.default)(t,[{key:"init",value:function(){this.createTileLayer(),this.map.addLayer(this.tileLayer)}},{key:"createImageWMS",value:function(){return new s.default(Object.assign({crossOrigin:"anonymous",ratio:1,url:this.url,params:Object.assign({FORMAT:"image/png",VERSION:"1.1.1",exceptions:"application/vnd.ogc.se_inimage",LAYERS:this.name},this.params)},this.options))}},{key:"createTileLayer",value:function(){var t=this.createImageWMS();return this.imageWMS=t,this.tileLayer=new a.default({source:t,zIndex:this.zIndex}),this.tileLayer}},{key:"removeLayer",value:function(){this.map.removeLayer(this.tileLayer),this.tileLayer=null,this.imageWMS=null}},{key:"show",value:function(){this.isShow||(this.map.addLayer(this.tileLayer),this.isShow=!0)}},{key:"hide",value:function(){this.isShow&&(this.map.removeLayer(this.tileLayer),this.isShow=!1)}},{key:"setZIndex",value:function(t){this.zIndex=t,this.tileLayer.setZIndex(t)}},{key:"ZIndex",get:function(){return this.zIndex}},{key:"Id",get:function(){return this.id},set:function(t){this.id=t}}]),t}();e.default=l},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"}},4409:function(t,e,r){},"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},"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},"4bf3":function(t,e,r){"use strict";r("624a")},"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}))},"59ea":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("d510")),l=n(r("6ed8")),u=function(){function t(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};(0,i.default)(this,t),this.map=null,this.wmts=null,this.wmtsTileGrid=null,this.tileLayer=null,this.zIndex=1,this.isShow=!0,this.id=e.id,this.url=e.url,this.params=r,this.name=e.name,this.map=e.map,this.init()}return(0,o.default)(t,[{key:"init",value:function(){this.createTileLayer(),this.map.addLayer(this.tileLayer)}},{key:"createWMTSTileGrid",value:function(t){return new l.default({tileSize:t.tileSize,extent:t.extent,origin:t.origin,resolutions:t.resolutions,matrixIds:t.TILEMATRIX})}},{key:"createWMTS",value:function(){var t=this.params;return this.wmtsTileGrid=this.createWMTSTileGrid(t),this.wmts=new s.default({url:this.url,layer:this.name,matrixSet:t.TILEMATRIXSET,format:t.FORMAT,tileGrid:this.wmtsTileGrid,style:t.STYLE,wrapX:!0}),this.wmts}},{key:"createTileLayer",value:function(){var t=this.createWMTS();return this.wmts=t,this.tileLayer=new a.default({source:t,zIndex:this.zIndex}),this.tileLayer}},{key:"removeLayer",value:function(){this.map.removeLayer(this.tileLayer),this.tileLayer=null,this.wmts=null}},{key:"show",value:function(){this.isShow||(this.map.addLayer(this.tileLayer),this.isShow=!0)}},{key:"hide",value:function(){this.isShow&&(this.map.removeLayer(this.tileLayer),this.isShow=!1)}},{key:"setZIndex",value:function(t){this.zIndex=t,this.tileLayer.setZIndex(t)}},{key:"getZIndex",get:function(){return this.zIndex}},{key:"Id",get:function(){return this.id},set:function(t){this.id=t}}]),t}();e.default=u},"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 C})),r.d(e,"makeRegular",(function(){return T}));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 C(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 T(f,a,t.getRadius(),r),f}function T(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=d,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"),p="http://t7.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}";function d(t){return t=new l.default({crossOrigin:"anonymous",url:t}),new s.default({source:t,zIndex:-10})}var g=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}(),y=((e.TMapOptions=g)._key="c636b403da40eb5eefd964e9ab1b23bf",(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}))),v=(e.ViewOptions=y,function(){function t(){(0,i.default)(this,t)}return(0,o.default)(t,null,[{key:"tmapNormal",get:function(){return d("https://t{1-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=".concat(g.getKey))}},{key:"tmapSatellite",get:function(){return d("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(g.getKey))}},{key:"tmapAnnotation",get:function(){return d("https://t{1-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=".concat(g.getKey))}},{key:"tmapNormal_uniApp",get:function(){return new s.default({source:new l.default({url:"http://t7.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=".concat(g.getKey)}),zIndex:-10})}},{key:"tmapSatellite_uniApp",get:function(){return new s.default({source:new l.default({url:"".concat(p,"&tk=").concat(g.getKey)}),zIndex:-10})}},{key:"tmapAnnotation_uniApp",get:function(){return new s.default({source:new l.default({url:"http://t7.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=".concat(g.getKey)}),zIndex:-10})}},{key:"gmapNormal",get:function(){return d("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 d("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 d("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:"TMapLayerArr_uniApp",get:function(){return[[this.tmapNormal_uniApp,this.tmapAnnotation_uniApp],[this.tmapSatellite_uniApp],[this.tmapSatellite_uniApp,this.tmapAnnotation_uniApp]]}},{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:15,minZoom:1,maxZoom:28,center:[0,0]})}}]),t}());(e.default=v)._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}()},"624a":function(t,e,r){},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=r("06f8"),l=function(){function t(e,r){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];(0,i.default)(this,t),this.insertVertexCondition=n,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(){if(this.insertVertexCondition)return this._modify=new a.Modify({source:this._vectorLayer.getSource(),deleteCondition:s.never,insertVertexCondition:s.never,style:function(t){return null}}),void this._map.addInteraction(this._modify);this._modify=new a.Modify({source:this._vectorLayer.getSource(),deleteCondition:s.never,insertVertexCondition:s.never,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=l},"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},6792:function(t,e,r){"use strict";r.r(e);var n=r("01d4"),i=r("2c15"),o=r("6611"),a=r("1bc7"),s=r("c721"),l=r("92fa"),u=r("38f3"),c=r("3c81"),h=r("7fc9"),f=r("b0c1"),p=r("0af5"),d=r("256f"),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=4,v=[101,101],m=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,interpolate:o,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:i["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 g(e,t),e.prototype.getFeatureInfoUrl=function(t,e,r,n){if(void 0!==this.url_){var i=Object(d["get"])(r),o=this.getProjection();o&&o!==i&&(e=Object(c["b"])(o,i,t,e),t=Object(d["transform"])(t,i,o));var s=Object(p["getForViewAndSize"])(t,e,0,v),l={SERVICE:"WMS",VERSION:a["a"],REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_["LAYERS"]};Object(u["a"])(l,this.params_,n);var f=Object(h["d"])((t[0]-s[0])/e,y),g=Object(h["d"])((s[3]-t[1])/e,y);return l[this.v13_?"I":"X"]=f,l[this.v13_?"J":"Y"]=g,this.getRequestUrl_(s,v,1,o||i,l)}},e.prototype.getLegendUrl=function(t,e){if(void 0!==this.url_){var r={SERVICE:"WMS",VERSION:a["a"],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,l=28e-5;r["SCALE"]=t*o/l}return Object(u["a"])(r,e),Object(s["a"])(this.url_,r)}},e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,e,r,i){if(void 0===this.url_)return null;e=this.findNearestResolution(e),1==r||this.hidpi_&&void 0!==this.serverType_||(r=1);var s=e/r,l=Object(p["getCenter"])(t),c=Object(h["a"])(Object(p["getWidth"])(t)/s,y),f=Object(h["a"])(Object(p["getHeight"])(t)/s,y),d=Object(p["getForViewAndSize"])(l,s,0,[c,f]),g=Object(h["a"])(this.ratio_*Object(p["getWidth"])(t)/s,y),v=Object(h["a"])(this.ratio_*Object(p["getHeight"])(t)/s,y),m=Object(p["getForViewAndSize"])(l,s,0,[g,v]),_=this.image_;if(_&&this.renderedRevision_==this.getRevision()&&_.getResolution()==e&&_.getPixelRatio()==r&&Object(p["containsExtent"])(_.getExtent(),d))return _;var b={SERVICE:"WMS",VERSION:a["a"],REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Object(u["a"])(b,this.params_),this.imageSize_[0]=Object(h["h"])(Object(p["getWidth"])(m)/s,y),this.imageSize_[1]=Object(h["h"])(Object(p["getHeight"])(m)/s,y);var x=this.getRequestUrl_(m,this.imageSize_,r,i,b);return this.image_=new o["a"](m,e,r,x,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(n["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(l["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(l["a"])(!1,8);break}i["WIDTH"]=e[0],i["HEIGHT"]=e[1];var a,u=n.getAxisOrientation();return a=this.v13_&&"ne"==u.substr(0,2)?[t[1],t[0],t[3],t[2]]:t,i["BBOX"]=a.join(","),Object(s["a"])(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(u["a"])(this.params_,t),this.updateV13_(),this.image_=null,this.changed()},e.prototype.updateV13_=function(){var t=this.params_["VERSION"]||a["a"];this.v13_=Object(f["a"])(t,"1.3")>=0},e}(i["a"]);e["default"]=m},"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=r("d202"),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["a"].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["a"].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["a"].TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=o["a"].TOP_RIGHT&&this.anchorOrigin_!=o["a"].BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=o["a"].BOTTOM_LEFT&&this.anchorOrigin_!=o["a"].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["a"].TOP_LEFT){var e=this.getSize(),r=this.iconImage_.getSize();if(!e||!r)return null;t=t.slice(),this.offsetOrigin_!=o["a"].TOP_RIGHT&&this.offsetOrigin_!=o["a"].BOTTOM_RIGHT||(t[0]=r[0]-e[0]-t[0]),this.offsetOrigin_!=o["a"].BOTTOM_LEFT&&this.offsetOrigin_!=o["a"].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=C();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 C(){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 T=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=[T],j=function(t){(0,l.default)(r,t);var e=S(r);function r(t,n,i){return(0,a.default)(this,r),(n=e.call(this,t,n))._isTruePolygon=!1,n._checkPoint=null,n._checkPointArea=null,n._currentPoint=null,n._pointStyle=null,n._isHideAreaAndKM=!1,n._isHideAreaAndKM=t.isHideAreaAndKM||!1,i?i.point?i.currentPoint?i&&i.currentPoint&&i.point?(n._currentPoint=i.currentPoint,n._pointStyle=i.point):i&&i.point?n._pointStyle=i.point:i&&i.currentPoint&&(n._currentPoint=i.currentPoint):n._currentPoint={radius:4,fill:"#FF8100",stroke:"#FF8100",strokeWidth:0}:n._pointStyle={radius:4,fill:"#33cc33",stroke:"#33cc33",strokeWidth:0}:(n._currentPoint={radius:4,fill:"#FF8100",stroke:"#FF8100",strokeWidth:0},n._pointStyle={radius:4,fill:"#33cc33",stroke:"#33cc33",strokeWidth:0}),n.createPolygon(),n}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())),t._checkPointArea||t._isHideAreaAndKM?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&&!t._isHideAreaAndKM&&(n=0,i.forEachSegment((function(t,e){t=new x.default([t,e]),e=(0,v.formatLength)(t),P.length-1<n&&P.push(T.clone()),t=new _.default(t.getCoordinateAt(.5)),P[n].setGeometry(t),P[n].getText().setText(e),l.push(P[n]),n++}))),e=t._currentPoint.fill||"#FF8100";return l.push(new h.Style({geometry:new b.default(a),image:new h.Circle({radius:t._currentPoint.radius||4,fill:new h.Fill({color:e}),stroke:new h.Stroke({color:t._currentPoint.stroke||"#FF8100",width:t._currentPoint.strokeWidth||0})})})),a&&a.length&&(o=1<a.length?a.length-2:a.length-1,a[a.length-2],l.push(new h.Style({geometry:new _.default(a[o]),image:new h.Circle({radius:t._pointStyle.radius||4,fill:new h.Fill({color:t._pointStyle.fill||"#33cc33"}),stroke:new h.Stroke({color:t._pointStyle.stroke||"#33cc33",width:t._pointStyle.strokeWidth||0})})}))),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),M=function(){function t(e,r){var n=this,i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],o=3<arguments.length?arguments[3]:void 0;(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._insertVertexCondition=!1,this._style=null,this._isHideAreaAndKM=!1,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._isHideAreaAndKM=i,this._insertVertexCondition=r.insertVertexCondition||!1,this._style=o,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,isHideAreaAndKM:this._isHideAreaAndKM},this._map,this._style),this._modify=new O.default(this._polygonNew,this._map,this._insertVertexCondition)}},{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();return 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),!!this.pointArr.length}},{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:"getAreaMu",value:function(){return this._polygonNew.getAreaMu(!(0<arguments.length&&void 0!==arguments[0])||arguments[0])}},{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._style),this._modify=new O.default(this._polygonNew,this._map,this._insertVertexCondition)}},{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=M},"6ed8":function(t,e,r){"use strict";r.r(e),r.d(e,"createFromCapabilitiesMatrixSet",(function(){return l}));var n=r("78db"),i=r("9f5e"),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,{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}return a(e,t),e.prototype.getMatrixId=function(t){return this.matrixIds_[t]},e.prototype.getMatrixIds=function(){return this.matrixIds_},e}(n["default"]);function l(t,e,r){var n=[],a=[],l=[],u=[],c=[],h=void 0!==r?r:[],f="SupportedCRS",p="TileMatrix",d="Identifier",g="ScaleDenominator",y="TopLeftCorner",v="TileWidth",m="TileHeight",_=t[f],b=Object(o["get"])(_),x=b.getMetersPerUnit(),w="ne"==b.getAxisOrientation().substr(0,2);return t[p].sort((function(t,e){return e[g]-t[g]})),t[p].forEach((function(e){var r;if(r=!(h.length>0)||Object(i["d"])(h,(function(r){return e[d]==r[p]||-1===e[d].indexOf(":")&&t[d]+":"+e[d]===r[p]})),r){a.push(e[d]);var o=28e-5*e[g]/x,s=e[v],f=e[m];w?l.push([e[y][1],e[y][0]]):l.push(e[y]),n.push(o),u.push(s==f?s:[s,f]),c.push([e["MatrixWidth"],e["MatrixHeight"]])}})),new s({extent:e,origins:l,resolutions:n,matrixIds:a,tileSizes:u,sizes:c})}e["default"]=s},"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 Be})),r.d(e,"Image",(function(){return Ue["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 nr["default"]})),r.d(e,"OSM",(function(){return sr})),r.d(e,"Raster",(function(){return lr["a"]})),r.d(e,"Source",(function(){return ur["a"]})),r.d(e,"Stamen",(function(){return gr})),r.d(e,"Tile",(function(){return g["b"]})),r.d(e,"TileArcGISRest",(function(){return mr})),r.d(e,"TileDebug",(function(){return xr})),r.d(e,"TileImage",(function(){return ye["default"]})),r.d(e,"TileJSON",(function(){return wr["a"]})),r.d(e,"TileWMS",(function(){return Pr})),r.d(e,"UrlTile",(function(){return jr["a"]})),r.d(e,"UTFGrid",(function(){return Fr})),r.d(e,"Vector",(function(){return Dr["default"]})),r.d(e,"VectorTile",(function(){return Gr["a"]})),r.d(e,"WMTS",(function(){return Nr["default"]})),r.d(e,"XYZ",(function(){return a["default"]})),r.d(e,"Zoomify",(function(){return Ce})),r.d(e,"sourcesFromTileGrid",(function(){return zr}));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 C=new Map;function T(t,e){Array.isArray(t)||(t=[t]),t.forEach(t=>C.set(t,e))}async function P(t){const e=C.get(t.Compression);if(!e)throw new Error("Unknown compression method identifier: "+t.Compression);const r=await e();return new r(t)}T([void 0,1],()=>r.e(5).then(r.bind(null,"9a7b")).then(t=>t.default)),T(5,()=>r.e(3).then(r.bind(null,"852f")).then(t=>t.default)),T(6,()=>{throw new Error("old style JPEG compression is not supported.")}),T(7,()=>r.e(2).then(r.bind(null,"2624")).then(t=>t.default)),T([8,32946],()=>Promise.all([r.e(0),r.e(9)]).then(r.bind(null,"fa61")).then(t=>t.default)),T(32773,()=>r.e(4).then(r.bind(null,"45bf")).then(t=>t.default)),T(34887,()=>Promise.all([r.e(0),r.e(7)]).then(r.bind(null,"6372")).then(t=>t.default)),T(50001,()=>r.e(6).then(r.bind(null,"ee5b")).then(t=>t.default));const j="undefined"!==typeof navigator&&navigator.hardwareConcurrency||2;class M{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 R=M,A=r("e504"),L=r("94df"),I=r.n(L),k=r("5edf"),F=r.n(k),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 B(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 U(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 Z(t,e,r){return(1-r)*t+r*e}function K(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=Z(Z(d,g,h),Z(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 K(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=Z(Z(s,g,f),Z(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=B(p);break;case D["j"].YCbCr:g=U(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=F()(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 Ct 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 Tt=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 Mt(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 Rt(t,{headers:e={},maxRanges:r=0,allowFullFile:n=!1,...i}={}){const o=new Ct(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 Tt["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?Rt(t,r):At(t,r):Mt(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 kt(t){return new It(t)}r("2d75");const Ft=Object(mt["f"])(D["e"]),Dt=Object(mt["f"])(D["i"]),Gt={};Object(mt["c"])(Gt,Ft),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 Bt(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 Ut(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=Ut(n,e,r,u);else{const t=n.readOffset(u),o=zt(e)*r;if(n.covers(t,o))i=Ut(n,e,r,t);else{const n=await this.getSlice(t,o);i=Ut(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=Bt(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===Ut(n,D["h"].ASCII,e.length,t)){const e=Ut(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=Ut(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 Zt(t,e){return Ht.fromSource(kt(t),e)}async function Kt(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 R),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?Zt(t.blob):t.overviews?Kt(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 C=[x.getTileWidth(),x.getTileHeight()];v[E]=C;var T=S[0]/Math.abs(S[1]);m[E]=[C[0],C[1]/T]}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 M=_.map((function(t){return t*j}));P="Resolution mismatch for source ".concat(h,", got [").concat(M,"] but expected [").concat(a,"]");he(a.slice(c,a.length),M,.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 C=new S["default"]({extent:e,minZoom:c,origin:r,resolutions:a,tileSizes:n});this.tileGrid=C,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 C=isNaN(E);(!C&&w!==E||C&&!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 C(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 T=Object(xe["b"])(O.map(C)),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:T,transition:n.transition})||this,r.zDirection=n.zDirection;var j=b.getTileCoordForCoordAndResolution(Object(i["getCenter"])(b.getExtent()),y[y.length-1]),M=T(j,1,null),R=new Image;return R.addEventListener("error",function(){E=f,this.changed()}.bind(r)),R.src=M,r}return we(e,t),e}(ye["default"]),Ce=Se,Te=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"},Me={};Me[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"]}},Me[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"]}},Me[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"]}},Me["none"]={none:{supports:[],formats:[],qualities:[]}};var Re=/^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=Me[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 ke(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 Fe(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(Te["f"])(["jpg","png","gif"],t)})).reduce((function(t,e){return void 0===t&&Object(Te["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]=ke,De[je.VERSION3]=Fe;(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(Re.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?Me["none"]["none"]:Me[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(Te["f"])(n.formats,e.format)?e.format:void 0!==n.preferredFormat?n.preferredFormat:"jpg",supports:n.supports,quality:e.quality&&Object(Te["f"])(n.qualities,e.quality)?e.quality:Object(Te["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),C=void 0!=b&&Array.isArray(b)&&(Object(Te["f"])(b,"regionByPx")||Object(Te["f"])(b,"regionByPct"))&&(Object(Te["f"])(b,"sizeByWh")||Object(Te["f"])(b,"sizeByH")||Object(Te["f"])(b,"sizeByW")||Object(Te["f"])(b,"sizeByPct"));if(_.sort((function(t,e){return e-t})),E||C)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 T=f;T>=0;T--)_.push(Math.pow(2,T))}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(T=0;T<l.length;T++){var M=p/l[T][0];_.length>0&&_[_.length-1]==M?j.push(T):(_.push(M),f++)}if(j.length>0)for(T=0;T<j.length;T++)l.splice(j[T]-T,1)}else _.push(1),l.push([p,d]),f=0;var R=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(C||E){var x=u*c*y,w=g*h*y,S=c*y,T=h*y,P=c,j=h;if(x+S>p&&(S=p-x),w+T>d&&(T=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&&T==d)n="full";else if(!C||Object(Te["f"])(b,"regionByPx"))n=x+","+w+","+S+","+T;else if(Object(Te["f"])(b,"regionByPct")){var M=Ne(x/p*100),R=Ne(w/d*100),A=Ne(S/p*100),L=Ne(T/d*100);n="pct:"+M+","+R+","+A+","+L}s!=je.VERSION3||C&&!Object(Te["f"])(b,"sizeByWh")?!C||Object(Te["f"])(b,"sizeByW")?i=P+",":Object(Te["f"])(b,"sizeByH")?i=","+j:Object(Te["f"])(b,"sizeByWh")?i=P+","+j:Object(Te["f"])(b,"sizeByPct")&&(i="pct:"+Ne(100/y)):i=P+","+j}else if(n="full",O){var I=l[o][0],k=l[o][1];i=s==je.VERSION3?I==p&&k==d?"max":I+","+k: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:R,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:A,transition:n.transition})||this,r.zDirection=n.zDirection,r}return Ge(e,t),e}(ye["default"]),Be=ze,Ue=r("2c15"),Ve=r("6611"),Xe=r("c721"),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:Ue["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),Object(Xe["a"])(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}(Ue["a"]),Ye=He,qe=r("ed9b"),Ze=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=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 Ze(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}(Ue["a"]),Je=Ke,$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:Ue["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),Object(Xe["a"])(t,u)},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e}(Ue["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=r("6792"),ir=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)}}(),or='&#169; <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.',ar=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:[or];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 ir(e,t),e}(a["default"]),sr=ar,lr=r("bd02"),ur=r("ff80"),cr=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)}}(),hr=['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>.',or],fr={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}},pr={terrain:{minZoom:0,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:0,maxZoom:18}},dr=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=pr[i],a=fr[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:hr,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 cr(e,t),e}(a["default"]),gr=dr,yr=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)}}(),vr=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 yr(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 Object(Xe["a"])(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"]),mr=vr,_r=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)}}(),br=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 _r(e,t),e}(a["default"]),xr=br,wr=r("6cf3"),Or=r("1bc7"),Er=r("3c81"),Sr=r("b0c1"),Cr=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)}}(),Tr=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 Cr(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(Er["b"])(a,o,t,h),f=Object($t["transformExtent"])(f,o,a),t=Object($t["transform"])(t,o,a));var g={SERVICE:"WMS",VERSION:Or["a"],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:Or["a"],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),Object(Xe["a"])(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 Object(Xe["a"])(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"]||Or["a"];this.v13_=Object(Sr["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:Or["a"],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"]),Pr=Tr,jr=r("54b9"),Mr=r("5e31"),Rr=r("1e8d"),Ar=r("e4e0"),Lr=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)}}(),Ir=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 Lr(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(Rr["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(Ar["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}(Mr["a"]),kr=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(Ar["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 Lr(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 Ir(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"]),Fr=kr,Dr=r("5831"),Gr=r("78db2"),Nr=r("d510");function zr(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 T}));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)}}(),C=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:T,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"]=C;function T(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 C(t,e,r){t[r]=e,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function T(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 M(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=T(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)+T(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),C(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),C(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),C(this.buf,-1&t,this.pos),C(this.buf,Math.floor(t*a),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),C(this.buf,-1&t,this.pos),C(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=M(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("278c"))),a=n(r("970b")),s=n(r("5bc3")),l=n(r("5831")),u=n(r("5bc33")),c=n(r("7a09")),h=n(r("304e")),f=y(r("b12f")),p=n(r("6ee6")),d=r("13e2");function g(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(g=function(t){return t?r:e})(t)}function y(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};if(e=g(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 v=function(){function t(e,r,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:5;(0,a.default)(this,t),this.darwType=e,this.callback=r,this.map=n,this.zIndex=i,this.isSetPosition=!1,this.sketch=null,this.measureTooltip=null,this.helpTooltip=null,this.geometry=null,this.source=new l.default,this.vector=null,this.vector=f.getVector(this.source,this.zIndex),this._init()}return(0,s.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=f.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 p.default,this.measureTooltip.setOffset([0,-30]),this.map.addOverlay(this.measureTooltip.getMarker()),this.helpTooltip=new h.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,t.id&&t.sketch&&t.sketch.setId(t.id);var r=e.coordinate;t.sketch.getGeometry().on("change",(function(e){e=e.target,e instanceof u.default?r=e.getInteriorPoint().getCoordinates():e instanceof c.default&&(r=e.getLastCoordinate()),t.measureTooltip.getDom().innerHTML=f._arr[t.darwType](e),t.measureTooltip.setPosition(r)}))}))}},{key:"_drawBinDrawend",value:function(){var t=this;this.draw.once("drawend",(function(e){t.geometry=e.feature.getGeometry(),t.map.removeInteraction(t.draw),t.measureTooltip.getDom().appendChild(f.createSpan(t)),t.map.un("pointermove",t.pointerMoveHandler),t.map.removeOverlay(t.helpTooltip.getMarker()),t.helpTooltip=null,t.sketch=null,t.callback({id:t.id,type:0})}))}},{key:"Id",get:function(){return this.id},set:function(t){this.id=t}},{key:"_clear",value:function(){this.map.removeLayer(this.vector),this.map.removeOverlay(this.measureTooltip.getMarker()),this.measureTooltip=null,this.vector=null,this.source=null,this.callback({id:this.id,type:1})}},{key:"getDraw",value:function(){return this.vector}},{key:"getGeometry",value:function(){return this.vector?this.geometry:null}},{key:"getCoordinates",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=this.getGeometry().getCoordinates();return t?d.GPS.convertCoordinatesWGS84(e):e}},{key:"getCenterPoint",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=this.getCoordinates(t);return e.length?(e=(0,f.getCenterPoint)(e),t?[(t=d.GPS.gcj_decrypt(e[0],e[1])).lon,t.lat]:e):[]}},{key:"getGeoJson",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=this.getCoordinates(t);if(!e.length)return null;t=this.getCenterPoint(t),t=(0,o.default)(t,2);var r=t[0];t=t[1];return(0,f.createGeoJson)(e,{ruleId:"",centerlon:r,centerlat:t})}},{key:"getExtent",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=this.getGeometry();return e?t?d.GPS.convertBBoxWGS84(e.getExtent()):e.getExtent():[]}},{key:"formatLengthNew",value:function(){var t=this.getGeometry();return t?(0,f.formatLengthNew)(t):0}},{key:"getAreaMu",value:function(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],e=this.getGeometry();return e?(0,f.formatArea)(e,t):"".concat(0)}},{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,this.geometry=null)}}]),t}();e.default=v},"7dc7":function(t,e,r){"use strict";r("b2dd")},"7ec2":function(t,e,r){var n=r("7037")["default"];function i(){"use strict";
2
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 C(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(T([])));_&&_!==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 C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(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=T,C.prototype={constructor:C,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:T(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},"834d":function(t,e,r){"use strict";r.r(e),r.d(e,"toContext",(function(){return l})),r.d(e,"getVectorContext",(function(){return u})),r.d(e,"getRenderPixel",(function(){return c}));var n=r("c946"),i=r("617d"),o=r("a896"),a=r("30d1"),s=r("256f");function l(t,e){var r=t.canvas,a=e||{},s=a.pixelRatio||i["a"],l=a.size;l&&(r.width=l[0]*s,r.height=l[1]*s,r.style.width=l[0]+"px",r.style.height=l[1]+"px");var u=[0,0,r.width,r.height],c=Object(o["i"])(Object(o["c"])(),s,s);return new n["a"](t,s,u,c,0)}function u(t){if(!(t.context instanceof CanvasRenderingContext2D))throw new Error("Only works for render events from Canvas 2D layers");var e,r=t.inversePixelTransform[0],i=t.frameState,l=Object(o["f"])(t.inversePixelTransform.slice(),i.coordinateToPixelTransform),u=Object(a["b"])(i.viewState.resolution,r),c=Object(s["getUserProjection"])();return c&&(e=Object(s["getTransformFromProjections"])(c,i.viewState.projection)),new n["a"](t.context,r,i.extent,l,i.viewState.rotation,u,e)}function c(t,e){return Object(o["a"])(t.inversePixelTransform,e.slice(0))}},"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},"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}}},"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
3
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
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}},9809:function(t,e,r){},"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}},"9e25":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("3e6b")),s=n(r("5831")),l=n(r("1ab5")),u=r("15e0"),c=function(){function t(e,r){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];(0,i.default)(this,t),this.layer=null,this.source=null,this.isShowKML=!0,this._kml=null,this._extractStyles=!0,this._url=null,this._width=1,this._fillColor="#000",this._stroke="#000",this.zIndex=e.zIndex||1,this.id=e.id,this.map=r,this.isShowKML=e.isShowKML||!0,this._extractStyles=n,this._url=e.url,this._width=e.width||1,this._fillColor=e.fillColor||"#000",this._stroke=e.stroke||"#000",this.init()}return(0,o.default)(t,[{key:"init",value:function(){this._kml=this.createKML(),this.source=new s.default({url:this._url,format:this._kml});var t=new a.default({style:this.getStyle(),source:this.source,zIndex:this.zIndex});this.layer=t,this.map.addLayer(this.layer)}},{key:"createKML",value:function(){return new l.default({extractStyles:this._extractStyles,crossOrigin:"anonymous"})}},{key:"removeKML",value:function(){this.map.removeLayer(this.layer)}},{key:"getLayer",value:function(){return this.layer}},{key:"show",value:function(){this.isShowKML||(this.map.addLayer(this.layer),this.isShowKML=!0)}},{key:"hide",value:function(){this.isShowKML&&(this.map.removeLayer(this.layer),this.isShowKML=!1)}},{key:"getStyle",value:function(){return new u.Style({fill:new u.Fill({color:this._fillColor}),stroke:new u.Stroke({color:this._stroke,width:this._width})})}},{key:"setUrl",value:function(t){this.source&&(this.removeKML(),this._url=t,this.init())}},{key:"getUrl",value:function(){return this._url}},{key:"Id",get:function(){return this.id}},{key:"Vector",get:function(){return this.layer}},{key:"setZIndex",value:function(t){this.layer.setZIndex(t)}},{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])}}]),t}();e.default=c},"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"}},a218:function(t,e,r){},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 M})),r.d(e,"createResolutionConstraint",(function(){return R})),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"),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)}}(),T=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 C(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=R(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=M(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 M(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 R(t){var e,r,n,o=28,a=2,u=void 0!==t.minZoom?t.minZoom:T,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,T),C=S/Math.pow(a,o-T);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):C),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("d352"),o=r("b7df"),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(){return t.call(this)||this}return s(e,t),e.prototype.getType=function(){return"json"},e.prototype.readFeature=function(t,e){return this.readFeatureFromObject(u(t),this.getReadOptions(t,e))},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(u(t),this.getReadOptions(t,e))},e.prototype.readFeatureFromObject=function(t,e){return Object(a["b"])()},e.prototype.readFeaturesFromObject=function(t,e){return Object(a["b"])()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(u(t),this.getReadOptions(t,e))},e.prototype.readGeometryFromObject=function(t,e){return Object(a["b"])()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(u(t))},e.prototype.readProjectionFromObject=function(t){return Object(a["b"])()},e.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},e.prototype.writeFeatureObject=function(t,e){return Object(a["b"])()},e.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},e.prototype.writeFeaturesObject=function(t,e){return Object(a["b"])()},e.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},e.prototype.writeGeometryObject=function(t,e){return Object(a["b"])()},e}(o["a"]);function u(t){if("string"===typeof t){var e=JSON.parse(t);return e||null}return null!==t?t:null}var c=l,h=r("7a09"),f=r("47e4"),p=r("9a44"),d=r("88da"),g=r("f403"),y=r("5bc33"),v=r("92fa"),m=r("38f3"),_=r("256f"),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||{};return r=t.call(this)||this,r.dataProjection=Object(_["get"])(n.dataProjection?n.dataProjection:"EPSG:4326"),n.featureProjection&&(r.defaultFeatureProjection=Object(_["get"])(n.featureProjection)),r.geometryName_=n.geometryName,r.extractGeometryName_=n.extractGeometryName,r.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],r}return b(e,t),e.prototype.readFeatureFromObject=function(t,e){var r=null;r="Feature"===t["type"]?t:{type:"Feature",geometry:t,properties:null};var i=w(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 w(t,e)},e.prototype.readProjectionFromObject=function(t){var e,r=t["crs"];return r?"name"==r["type"]?e=Object(_["get"])(r["properties"]["name"]):"EPSG"===r["type"]?e=Object(_["get"])("EPSG:"+r["properties"]["code"]):Object(v["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=M(o,e),delete i[t.getGeometryName()]),Object(m["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 M(t,this.adaptOptions(e))},e}(c);function w(t,e){if(!t)return null;var r;switch(t["type"]){case"Point":r=E(t);break;case"LineString":r=S(t);break;case"Polygon":r=j(t);break;case"MultiPoint":r=T(t);break;case"MultiLineString":r=C(t);break;case"MultiPolygon":r=P(t);break;case"GeometryCollection":r=O(t);break;default:throw new Error("Unsupported GeoJSON type: "+t["type"])}return Object(o["b"])(r,!1,e)}function O(t,e){var r=t["geometries"].map((function(t){return w(t,e)}));return new i["a"](r)}function E(t){return new g["default"](t["coordinates"])}function S(t){return new h["default"](t["coordinates"])}function C(t){return new f["a"](t["coordinates"])}function T(t){return new p["default"](t["coordinates"])}function P(t){return new d["a"](t["coordinates"])}function j(t){return new y["default"](t["coordinates"])}function M(t,e){t=Object(o["b"])(t,!0,e);var r,n=t.getType();switch(n){case"Point":r=F(t,e);break;case"LineString":r=A(t,e);break;case"Polygon":r=D(t,e);break;case"MultiPoint":r=I(t,e);break;case"MultiLineString":r=L(t,e);break;case"MultiPolygon":r=k(t,e);break;case"GeometryCollection":r=R(t,e);break;case"Circle":r={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+n)}return r}function R(t,e){var r=t.getGeometriesArray().map((function(t){var r=Object(m["a"])({},e);return delete r.featureProjection,M(t,r)}));return{type:"GeometryCollection",geometries:r}}function A(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}function L(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}function I(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}function k(t,e){var r;return e&&(r=e.rightHanded),{type:"MultiPolygon",coordinates:t.getCoordinates(r)}}function F(t,e){return{type:"Point",coordinates:t.getCoordinates()}}function D(t,e){var r;return e&&(r=e.rightHanded),{type:"Polygon",coordinates:t.getCoordinates(r)}}e["default"]=x},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"),C=r("57cb"),T=r("06f8"),P=r("6c77"),j=r("256f"),M=r("a568"),R=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 R(e,t),e}(c["a"]),k=function(t){function e(e){var r=this,n=e;n.stopDown||(n.stopDown=C["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:C["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(M["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:F(),updateWhileInteracting:!0}),r.geometryName_=e.geometryName,r.condition_=e.condition?e.condition:T["noModifierKeys"],r.freehandCondition_,e.freehand?r.freehandCondition_=T["always"]:r.freehandCondition_=e.freehandCondition?e.freehandCondition:T["shiftKeyOnly"],r.addChangeListener(d["a"].ACTIVE,r.updateState_),r}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_!==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 F(){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(M["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"]=k},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.PolygonModelNew=e.PolygonModel=void 0,e.addInteraction=T,e.addInteraction1=P,e.caculateLL=$,e.calculateCenter=b,e.colorArr=void 0,e.createFill=V,e.createGPSPoints=D,e.createGeoJson=M,e.createPolygonBoundary=K,e.createPolygonBoundaryNew=J,e.createPolygonGeojson=L,e.createPolylinePoints=G,e.createRectangle=z,e.createSpan=S,e.exportToTxt=tt,e.fitNew=N,e.flyTo=Y,e.formatArea=O,e.formatLength=x,e.formatLengthNew=w,e.generateGuid=Q,e.getCenterPoint=F,e.getColorStyle=B,e.getCoordinates=j,e.getGeoJSON=_,e.getLayer=W,e.getLayerNew=H,e.getLngAndLatMaxMin=R,e.getVector=C,e.polygonStyle=X,e.rayCasting=A,e.zoomIn=I,e.zoomOut=k,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 _(){return new d.default({featureProjection:0<arguments.length&&void 0!==arguments[0]?arguments[0]:"EPSG:4326"})}function b(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 x(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 w(t){try{var e=(0,a.getLength)(t,{projection:"EPSG:4326"});return Math.round(e/1e3*100)/100}catch(t){return 0}}function O(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];try{var r=(0,a.getArea)(t,{projection:"EPSG:4326"})/666.67*100;return e?"".concat(Math.floor(r)/100,"亩"):Math.floor(r)/100}catch(t){return e?"".concat(0,"亩"):0}}var E=new Array;function S(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 C(t){return new s.default({source:t,zIndex:1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,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 T(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 P(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 j(t){for(var e=new Array,r=0;r<t.length;r+=2)e.push([t[r],t[r+1]]);return[e]}function M(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:R(t),geometry:{type:r,coordinates:t}}}function R(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 A(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 L(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 I(t){t=t.getView(),t.animate({zoom:t.getZoom()+1,duration:200})}function k(t){t=t.getView(),t.animate({zoom:t.getZoom()-1,duration:200})}function F(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 D(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 G(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=D(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 N(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 z(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 B(t,e){return e=e[t.get("code")],e||"#62e4c7"}(e._arr=E).LineString=x,E.Polygon=O;var U=["#62e4c7","#44cfbb","#28baaf","#13aba6","#0e9b95"];function V(t){return new u.default({color:B.apply(this,[t,U])})}function X(t){return new l.default({stroke:new c.default({color:1<arguments.length&&void 0!==arguments[1]?arguments[1]:"transparent",width:1}),fill:V.apply(this,[t])})}function W(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 H(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 Y(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=U;var q=(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})),Z=(e.PolygonModel=q,(0,i.default)((function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{geo:Object,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.lineDash=e.lineDash,this.strokeWidth=e.strokeWidth,this.geo=e.geo})));function K(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:new q,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 J(t){var e=new l.default({fill:new u.default({color:t.fillColor}),stroke:new c.default({color:t.stroke,width:t.strokeWidth,lineDash:t.lineDash})}),r=new p.default({features:(new d.default).readFeatures(t.geo)});return new s.default({source:r,style:function(r){return t.id&&r.setId(t.id),e}})}function $(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}function Q(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=Math.floor(16*Math.random());return("x"===t?e:3&e|8).toString(16)}))}function tt(t,e){var r=document.createElement("a");r.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(e)),r.setAttribute("download",t+".txt"),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)}e.PolygonModelNew=Z},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}},b2dd:function(t,e,r){},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=n(r("f5dd")),c=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._projection=null,this.zIndex=9,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._projection=e.projection||null,this.zIndex=e.zIndex||9,this._createImageLayer()}return(0,o.default)(t,[{key:"_createImageLayer",value:function(){var t=this._imageExtent,e=(this.type&&(t=this._imageExtentGCJ02),"EPSG:4326");this._projection instanceof Object&&(e=new u.default(Object.assign({},this._projection))),e=new a.default({source:new s.default({url:this._url,projection:e,imageExtent:t}),zIndex:this.zIndex});this._imageLayer=e,this._id&&e.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=c},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){
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}},9809:function(t,e,r){},"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}},"9e25":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("3e6b")),l=n(r("5831")),u=n(r("1ab5")),c=r("15e0"),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,r){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];(0,o.default)(this,t),this.layer=null,this.source=null,this.isShowKML=!0,this._kml=null,this._extractStyles=!0,this._url=null,this._width=1,this._fillColor="#000",this._stroke="#000",this.feature=null,this.extent=new Array,this.zIndex=e.zIndex||1,this.id=e.id,this.map=r,this.isShowKML=e.isShowKML||!0,this._extractStyles=n,this._url=e.url,this._width=e.width||1,this._fillColor=e.fillColor||"#000",this._stroke=e.stroke||"#000"}return(0,a.default)(t,[{key:"init",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:100;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._kml=this.createKML(),this.source=new l.default({url:this._url,format:this._kml}),r=new s.default({style:this.getStyle(),source:this.source,zIndex:this.zIndex}),this.layer=r,this.map.addLayer(this.layer),e.next=7,new Promise((function(e){setTimeout((function(){var t=n.source.getFeatures();t.length&&(n.feature=t[0]),n.source&&(n.extent=n.source.getExtent()),e()}),t)}));case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e,this)})))}},{key:"createKML",value:function(){return new u.default({extractStyles:this._extractStyles,crossOrigin:"anonymous"})}},{key:"removeKML",value:function(){this.map.removeLayer(this.layer)}},{key:"getLayer",value:function(){return this.layer}},{key:"show",value:function(){this.isShowKML||(this.map.addLayer(this.layer),this.isShowKML=!0)}},{key:"hide",value:function(){this.isShowKML&&(this.map.removeLayer(this.layer),this.isShowKML=!1)}},{key:"getStyle",value:function(){return new c.Style({fill:new c.Fill({color:this._fillColor}),stroke:new c.Stroke({color:this._stroke,width:this._width})})}},{key:"setUrl",value:function(t){this.source&&(this.removeKML(),this._url=t,this.init())}},{key:"getUrl",value:function(){return this._url}},{key:"Id",get:function(){return this.id}},{key:"Vector",get:function(){return this.layer}},{key:"setZIndex",value:function(t){this.layer.setZIndex(t)}},{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:"setId",value:function(t){this.feature&&this.feature.setId(t)}},{key:"getExtent",value:function(){return this.extent}}]),t}();e.default=f},"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"}},a218:function(t,e,r){},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 M})),r.d(e,"createResolutionConstraint",(function(){return R})),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"),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)}}(),T=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 C(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=R(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=M(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 M(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 R(t){var e,r,n,o=28,a=2,u=void 0!==t.minZoom?t.minZoom:T,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,T),C=S/Math.pow(a,o-T);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):C),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("d352"),o=r("b7df"),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(){return t.call(this)||this}return s(e,t),e.prototype.getType=function(){return"json"},e.prototype.readFeature=function(t,e){return this.readFeatureFromObject(u(t),this.getReadOptions(t,e))},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(u(t),this.getReadOptions(t,e))},e.prototype.readFeatureFromObject=function(t,e){return Object(a["b"])()},e.prototype.readFeaturesFromObject=function(t,e){return Object(a["b"])()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(u(t),this.getReadOptions(t,e))},e.prototype.readGeometryFromObject=function(t,e){return Object(a["b"])()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(u(t))},e.prototype.readProjectionFromObject=function(t){return Object(a["b"])()},e.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},e.prototype.writeFeatureObject=function(t,e){return Object(a["b"])()},e.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},e.prototype.writeFeaturesObject=function(t,e){return Object(a["b"])()},e.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},e.prototype.writeGeometryObject=function(t,e){return Object(a["b"])()},e}(o["a"]);function u(t){if("string"===typeof t){var e=JSON.parse(t);return e||null}return null!==t?t:null}var c=l,h=r("7a09"),f=r("47e4"),p=r("9a44"),d=r("88da"),g=r("f403"),y=r("5bc33"),v=r("92fa"),m=r("38f3"),_=r("256f"),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||{};return r=t.call(this)||this,r.dataProjection=Object(_["get"])(n.dataProjection?n.dataProjection:"EPSG:4326"),n.featureProjection&&(r.defaultFeatureProjection=Object(_["get"])(n.featureProjection)),r.geometryName_=n.geometryName,r.extractGeometryName_=n.extractGeometryName,r.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],r}return b(e,t),e.prototype.readFeatureFromObject=function(t,e){var r=null;r="Feature"===t["type"]?t:{type:"Feature",geometry:t,properties:null};var i=w(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 w(t,e)},e.prototype.readProjectionFromObject=function(t){var e,r=t["crs"];return r?"name"==r["type"]?e=Object(_["get"])(r["properties"]["name"]):"EPSG"===r["type"]?e=Object(_["get"])("EPSG:"+r["properties"]["code"]):Object(v["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=M(o,e),delete i[t.getGeometryName()]),Object(m["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 M(t,this.adaptOptions(e))},e}(c);function w(t,e){if(!t)return null;var r;switch(t["type"]){case"Point":r=E(t);break;case"LineString":r=S(t);break;case"Polygon":r=j(t);break;case"MultiPoint":r=T(t);break;case"MultiLineString":r=C(t);break;case"MultiPolygon":r=P(t);break;case"GeometryCollection":r=O(t);break;default:throw new Error("Unsupported GeoJSON type: "+t["type"])}return Object(o["b"])(r,!1,e)}function O(t,e){var r=t["geometries"].map((function(t){return w(t,e)}));return new i["a"](r)}function E(t){return new g["default"](t["coordinates"])}function S(t){return new h["default"](t["coordinates"])}function C(t){return new f["a"](t["coordinates"])}function T(t){return new p["default"](t["coordinates"])}function P(t){return new d["a"](t["coordinates"])}function j(t){return new y["default"](t["coordinates"])}function M(t,e){t=Object(o["b"])(t,!0,e);var r,n=t.getType();switch(n){case"Point":r=F(t,e);break;case"LineString":r=A(t,e);break;case"Polygon":r=D(t,e);break;case"MultiPoint":r=I(t,e);break;case"MultiLineString":r=L(t,e);break;case"MultiPolygon":r=k(t,e);break;case"GeometryCollection":r=R(t,e);break;case"Circle":r={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+n)}return r}function R(t,e){var r=t.getGeometriesArray().map((function(t){var r=Object(m["a"])({},e);return delete r.featureProjection,M(t,r)}));return{type:"GeometryCollection",geometries:r}}function A(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}function L(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}function I(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}function k(t,e){var r;return e&&(r=e.rightHanded),{type:"MultiPolygon",coordinates:t.getCoordinates(r)}}function F(t,e){return{type:"Point",coordinates:t.getCoordinates()}}function D(t,e){var r;return e&&(r=e.rightHanded),{type:"Polygon",coordinates:t.getCoordinates(r)}}e["default"]=x},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"),C=r("57cb"),T=r("06f8"),P=r("6c77"),j=r("256f"),M=r("a568"),R=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 R(e,t),e}(c["a"]),k=function(t){function e(e){var r=this,n=e;n.stopDown||(n.stopDown=C["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:C["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(M["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:F(),updateWhileInteracting:!0}),r.geometryName_=e.geometryName,r.condition_=e.condition?e.condition:T["noModifierKeys"],r.freehandCondition_,e.freehand?r.freehandCondition_=T["always"]:r.freehandCondition_=e.freehandCondition?e.freehandCondition:T["shiftKeyOnly"],r.addChangeListener(d["a"].ACTIVE,r.updateState_),r}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_!==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 F(){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(M["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"]=k},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.PolygonModelNew=e.PolygonModel=void 0,e.addInteraction=T,e.addInteraction1=P,e.caculateLL=$,e.calculateCenter=b,e.colorArr=void 0,e.createFill=V,e.createGPSPoints=D,e.createGeoJson=M,e.createPolygonBoundary=K,e.createPolygonBoundaryNew=J,e.createPolygonGeojson=L,e.createPolylinePoints=G,e.createRectangle=z,e.createSpan=S,e.exportToTxt=tt,e.fitNew=N,e.flyTo=Y,e.formatArea=O,e.formatLength=x,e.formatLengthNew=w,e.generateGuid=Q,e.getCenterPoint=F,e.getColorStyle=B,e.getCoordinates=j,e.getGeoJSON=_,e.getLayer=W,e.getLayerNew=H,e.getLngAndLatMaxMin=R,e.getVector=C,e.polygonStyle=X,e.rayCasting=A,e.zoomIn=I,e.zoomOut=k,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 _(){return new d.default({featureProjection:0<arguments.length&&void 0!==arguments[0]?arguments[0]:"EPSG:4326"})}function b(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 x(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 w(t){try{var e=(0,a.getLength)(t,{projection:"EPSG:4326"});return Math.round(e/1e3*100)/100}catch(t){return 0}}function O(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];try{var r=(0,a.getArea)(t,{projection:"EPSG:4326"})/666.67*100;return e?"".concat(Math.floor(r)/100,"亩"):Math.floor(r)/100}catch(t){return e?"".concat(0,"亩"):0}}var E=new Array;function S(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 C(t){return new s.default({source:t,zIndex:1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,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 T(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 P(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 j(t){for(var e=new Array,r=0;r<t.length;r+=2)e.push([t[r],t[r+1]]);return[e]}function M(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:R(t),geometry:{type:r,coordinates:t}}}function R(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 A(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 L(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 I(t){t=t.getView(),t.animate({zoom:t.getZoom()+1,duration:200})}function k(t){t=t.getView(),t.animate({zoom:t.getZoom()-1,duration:200})}function F(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 D(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 G(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=D(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 N(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 z(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 B(t,e){return e=e[t.get("code")],e||"#62e4c7"}(e._arr=E).LineString=x,E.Polygon=O;var U=["#62e4c7","#44cfbb","#28baaf","#13aba6","#0e9b95"];function V(t){return new u.default({color:B.apply(this,[t,U])})}function X(t){return new l.default({stroke:new c.default({color:1<arguments.length&&void 0!==arguments[1]?arguments[1]:"transparent",width:1}),fill:V.apply(this,[t])})}function W(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 H(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 Y(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=U;var q=(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})),Z=(e.PolygonModel=q,(0,i.default)((function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{geo:Object,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.lineDash=e.lineDash,this.strokeWidth=e.strokeWidth,this.geo=e.geo})));function K(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:new q,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 J(t){var e=new l.default({fill:new u.default({color:t.fillColor}),stroke:new c.default({color:t.stroke,width:t.strokeWidth,lineDash:t.lineDash})}),r=new p.default({features:(new d.default).readFeatures(t.geo)});return new s.default({source:r,style:function(r){return t.id&&r.setId(t.id),e}})}function $(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}function Q(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=Math.floor(16*Math.random());return("x"===t?e:3&e|8).toString(16)}))}function tt(t,e){var r=document.createElement("a");r.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(e)),r.setAttribute("download",t+".txt"),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)}e.PolygonModelNew=Z},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}},b2dd:function(t,e,r){},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=n(r("f5dd")),c=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._projection=null,this.zIndex=9,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._projection=e.projection||null,this.zIndex=e.zIndex||9,this._createImageLayer()}return(0,o.default)(t,[{key:"_createImageLayer",value:function(){var t=this._imageExtent,e=(this.type&&(t=this._imageExtentGCJ02),"EPSG:4326");this._projection instanceof Object&&(e=new u.default(Object.assign({},this._projection))),e=new a.default({source:new s.default({url:this._url,projection:e,imageExtent:t}),zIndex:this.zIndex});this._imageLayer=e,this._id&&e.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=c},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
5
  /*!
6
6
  * The buffer module from node.js, for the browser.
7
7
  *
@@ -10,4 +10,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=
10
10
  */
11
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 K(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 K(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 k(this,e,r);case"latin1":case"binary":return F(this,e,r);case"base64":return R(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 C(t,e,r,n){return tt(K(e,t.length-r),t,r,n)}function T(t,e,r,n){return tt(J(e),t,r,n)}function P(t,e,r,n){return T(t,e,r,n)}function j(t,e,r,n){return tt(Q(e),t,r,n)}function M(t,e,r,n){return tt($(e,t.length-r),t,r,n)}function R(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 C(this,t,e,r);case"ascii":return T(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 M(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 k(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 F(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+=Z(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 B(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 U(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):B(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):B(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):U(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):U(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):B(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):B(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):U(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):U(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:K(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 Z(t){return t<16?"0"+t.toString(16):t.toString(16)}function K(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 C=[(e[0]+r[0])/2,(e[1]+r[1])/2],T=this.transformInv_(C),P=[(i[0]+t[0])/2,(i[1]+t[1])/2],j=this.transformInv_(P);this.addQuad_(t,e,C,P,a,l,T,j,h-1),this.addQuad_(P,C,r,i,j,T,u,c,h-1)}else{var M=[(t[0]+e[0])/2,(t[1]+e[1])/2],R=this.transformInv_(M),A=[(r[0]+i[0])/2,(r[1]+i[1])/2],L=this.transformInv_(A);this.addQuad_(t,M,A,i,a,R,L,c,h-1),this.addQuad_(M,e,r,A,R,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),C=Math.round(Object(h["getWidth"])(O)/E*y),T=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*C/2/S,M=w*T/2/S,R=[a[0]-j,a[1]-M,a[0]+j,a[1]+M],A=b.getTileRangeForExtentAndZ(O,x),L={};L[x]={};var I=this.createLoadedTileFinder(m,i,L),k=this.tmpExtent,F=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 B=Object(p["c"])(this);if(z.getState()==s["a"].LOADED){L[x][z.tileCoord.toString()]=z;var U=z.inTransition(B);U&&1!==r.opacity&&(z.endTransition(B),U=!1),this.newTiles_||!U&&-1!==this.renderedTiles.indexOf(z)||(this.newTiles_=!0)}if(1===z.getAlpha(B,t.time))continue}var V=b.getTileCoordChildTileRange(z.tileCoord,F,k),X=!1;V&&(X=I(x+1,V)),X||b.forEachTileCoordParentTileRange(z.tileCoord,I,F,k)}var W=w/o*y/S;Object(u["b"])(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/y,1/y,g,-C/2,-T/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,C/2,T/2,W,W,0,-C/2,-T/2),q.width!=C||q.height!=T?(q.width=C,q.height=T):this.containerReused||Y.clearRect(0,0,C,T),P&&this.clipUnrotated(Y,t,P),m.getInterpolate()||Object(c["a"])(Y,l["a"]),this.preRender(Y,t),this.renderedTiles.length=0;var Z,K,J,$=Object.keys(L).map(Number);$.sort(d["i"]),1!==r.opacity||this.containerReused&&!m.getOpaque(t.viewState.projection)?(Z=[],K=[]):$=$.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"])(R),tt),st=b.getTileCoordExtent(at),lt=Object(u["a"])(this.tempTransform,[S*(st[0]-R[0])/w,S*(R[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=(U=_t&&1!==z.getAlpha(Object(p["c"])(this),t.time),!1);if(!U)if(Z){J=[G,N,G+vt,N,G+vt,N+mt,G,N+mt];for(var xt=0,wt=Z.length;xt<wt;++xt)if(x!==tt&&tt<K[xt]){var Ot=Z[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())}Z.push(J),K.push(tt)}else Y.clearRect(G,N,vt,mt);this.drawTileImage(z,t,G,N,vt,mt,ut,_t),Z&&!U?(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_,R),this.renderedExtent_=R,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(k){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(k){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"]),C={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"},T={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:T.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_===T.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=R(this.layers_[n],t);if(!i)return;r[n]=i}var o={};this.dispatchEvent(new P(C.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(C.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 M=null;function R(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(M){var l=M.canvas;l.width!==n||l.height!==i?M=Object(g["a"])(n,i):M.clearRect(0,0,n,i)}else M=Object(g["a"])(n,i);return M.drawImage(o,0,0,n,i),M.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)},be99: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("480c")),u=n(r("2ef1")),c=n(r("a2c7")),h=n(r("8682")),f=r("b12f"),p=r("834d"),d=n(r("6c77")),g=n(r("83a6")),y=n(r("a2e1")),v=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())}))},m=function(){function t(e){(0,o.default)(this,t),this.mapOptians=e,this._ele=null,this._map=null,this._lastLayres=[],this._view=null,this._slicingZoom=13}return(0,a.default)(t,[{key:"onLoad",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return v(this,void 0,void 0,i.default.mark((function r(){var n,o=this;return i.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this._ele=t,n=this.initLayers(e),r.next=4,new Promise((function(e,r){o._lastLayres=n;var i=new s.default(Object.assign({target:t},Object.assign(Object.assign({},o.mapOptians),{layers:n})));(o._map=i)?e({map:i,layers:n}):r(null)}));case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r,this)})))}},{key:"setView",value:function(t,e){t=new c.default({center:t,zoom:18,minZoom:1,maxZoom:18,projection:"EPSG:4326",extent:[e[0]-.4,e[1]-.4,e[2]+.4,e[3]+.4]}),this._view=t,this._map.setView(t)}},{key:"getView",value:function(){return this._view}},{key:"getLayers",get:function(){return this._lastLayres}},{key:"initLayers",value:function(){var t=this,e=[];return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(r){r=t.initLayer(r),e.push(r)})),e}},{key:"initLayer",value:function(t){return new l.default({source:new u.default({url:t}),zIndex:-10})}},{key:"removeLayers",value:function(){var t=this;this._lastLayres.forEach((function(e){t._map.removeLayer(e)}))}},{key:"createGeojson",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:new f.PolygonModel;return(0,f.createPolygonBoundary)(t,e)}},{key:"initMapMaskEvent",value:function(t,e){var r=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{width:1,lineDash:[1,2,3,4,5,6],color:"#00adfd"},i=this.getGeoJSON().readFeatures(e)[0].getGeometry(),o=this.getStyle(n),a=this._map.getView();t.forEach((function(t){t.on("prerender",(function(t){var e;a.getZoom()<=r._slicingZoom&&(e=t.context,t=(0,p.getVectorContext)(t),e.save(),t.setStyle(o),t.drawGeometry(i),e.stroke(),e.clip())})),t.on("postrender",(function(t){a.getZoom()<=r._slicingZoom&&t.context.restore()}))}))}},{key:"getStyle",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{width:1,lineDash:[1,2,3,4,5,6],color:"#00adfd"},e=new g.default({color:[0,0,0,0]});t=new h.default({color:t.color,width:t.width,lineDash:t.lineDash});return new d.default({fill:e,stroke:t})}},{key:"olMap",get:function(){return this._map}},{key:"ele",get:function(){return this._ele}},{key:"SlicingZoom",set:function(t){this._slicingZoom=t}},{key:"getGeoJSON",value:function(){return new y.default({featureProjection:0<arguments.length&&void 0!==arguments[0]?arguments[0]:"EPSG:4326"})}}]),t}();e.default=m},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=r("3a39"),f=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())}))},p=(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){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1];(0,s.default)(this,t),this.mapOptians=e,this.isApp=r,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,this.isApp?c.default.TMapLayerArr_uniApp: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 f(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:"onLoad_uniApp",value:function(t){return f(this,void 0,void 0,a.default.mark((function e(){var r=this;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._ele=t,e.next=3,new Promise((function(e,n){var i=new u.default(Object.assign({target:t,interactions:(0,h.defaults)({pinchRotate:!1})},r.mapOptians));i?e({map:i,layres:r.mapOptians.layers}):n(null)}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,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}},{key:"setIsApp",set:function(t){this.isApp=t}}]),t}());e.default=p},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}},c721:function(t,e,r){"use strict";function n(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}r.d(e,"a",(function(){return n}))},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["all"])(o["noModifierKeys"],o["primaryAction"]);return r.condition_=n.onFocusOnly?Object(o["all"])(o["focusWithTabindex"],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},d202:function(t,e,r){"use strict";e["a"]={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},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 C})),r.d(e,"convertLength",(function(){return T})),r.d(e,"convertArea",(function(){return P})),r.d(e,"isNumber",(function(){return j})),r.d(e,"isObject",(function(){return M})),r.d(e,"validateBBox",(function(){return R})),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 C(t){var e=t%360;return e*Math.PI/180}function T(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 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(!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")}},d352:function(t,e,r){"use strict";var n=r("01d4"),i=r("8f37"),o=r("0af5"),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;return r.geometries_=e||null,r.changeEventsKeys_=[],r.listenGeometriesChange_(),r}return s(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],n["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(o["closestSquaredDistanceXY"])(this.getExtent(),t,e))return n;for(var i=this.geometries_,a=0,s=i.length;a<s;++a)n=i[a].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(o["createOrUpdateEmpty"])(t);for(var e=this.geometries_,r=0,n=e.length;r<n;++r)Object(o["extend"])(t,e[r].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_,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(o["getCenter"])(this.getExtent()));for(var i=this.geometries_,a=0,s=i.length;a<s;++a)i[a].scale(t,e,n);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_,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}(i["a"]);function u(t){for(var e=[],r=0,n=t.length;r<n;++r)e.push(t[r].clone());return e}e["a"]=l},d510:function(t,e,r){"use strict";r.r(e),r.d(e,"optionsFromCapabilities",(function(){return p}));var n=r("91b1"),i=r("c721"),o=r("38f3"),a=r("0af5"),s=r("6ed8"),l=r("9cff"),u=r("256f"),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=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(l["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(l["b"])(a.map(r.createFromWMTSTemplate.bind(r)))),r}return h(e,t),e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.setTileUrlFunction(Object(l["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(o["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(o["a"])(r,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t="KVP"==e?Object(i["a"])(t,r):t.replace(/\{(\w+?)\}/g,(function(t,e){return e.toLowerCase()in r?r[e.toLowerCase()]:t}));var n=this.tileGrid,a=this.dimensions_;return function(r,s,l){if(r){var u={TileMatrix:n.getMatrixId(r[0]),TileCol:r[1],TileRow:r[2]};Object(o["a"])(u,a);var c=t;return c="KVP"==e?Object(i["a"])(c,u):c.replace(/\{(\w+?)\}/g,(function(t,e){return u[e]})),c}}},e}(n["default"]);function p(t,e){var r=t["Contents"]["Layer"],n=Object(c["d"])(r,(function(t,r,n){return t["Identifier"]==e["layer"]}));if(null===n)return null;var i,o=t["Contents"]["TileMatrixSet"];i=n["TileMatrixSetLink"].length>1?"projection"in e?Object(c["e"])(n["TileMatrixSetLink"],(function(t,r,n){var i=Object(c["d"])(o,(function(e){return e["Identifier"]==t["TileMatrixSet"]})),a=i["SupportedCRS"],s=Object(u["get"])(a),l=Object(u["get"])(e["projection"]);return s&&l?Object(u["equivalent"])(s,l):a==e["projection"]})):Object(c["e"])(n["TileMatrixSetLink"],(function(t,r,n){return t["TileMatrixSet"]==e["matrixSet"]})):0,i<0&&(i=0);var l=n["TileMatrixSetLink"][i]["TileMatrixSet"],h=n["TileMatrixSetLink"][i]["TileMatrixSetLimits"],f=n["Format"][0];"format"in e&&(f=e["format"]),i=Object(c["e"])(n["Style"],(function(t,r,n){return"style"in e?t["Title"]==e["style"]:t["isDefault"]})),i<0&&(i=0);var p=n["Style"][i]["Identifier"],d={};"Dimension"in n&&n["Dimension"].forEach((function(t,e,r){var n=t["Identifier"],i=t["Default"];void 0===i&&(i=t["Value"][0]),d[n]=i}));var g,y=t["Contents"]["TileMatrixSet"],v=Object(c["d"])(y,(function(t,e,r){return t["Identifier"]==l})),m=v["SupportedCRS"];if(m&&(g=Object(u["get"])(m)),"projection"in e){var _=Object(u["get"])(e["projection"]);_&&(g&&!Object(u["equivalent"])(_,g)||(g=_))}var b=!1,x="ne"==g.getAxisOrientation().substr(0,2),w=v.TileMatrix[0],O={MinTileCol:0,MinTileRow:0,MaxTileCol:w.MatrixWidth-1,MaxTileRow:w.MatrixHeight-1};if(h){O=h[h.length-1];var E=Object(c["d"])(v.TileMatrix,(function(t){return t.Identifier===O.TileMatrix||v.Identifier+":"+t.Identifier===O.TileMatrix}));E&&(w=E)}var S=28e-5*w.ScaleDenominator/g.getMetersPerUnit(),C=x?[w.TopLeftCorner[1],w.TopLeftCorner[0]]:w.TopLeftCorner,T=w.TileWidth*S,P=w.TileHeight*S,j=v["BoundingBox"];j&&x&&(j=[j[1],j[0],j[3],j[2]]);var M=[C[0]+T*O.MinTileCol,C[1]-P*(1+O.MaxTileRow),C[0]+T*(1+O.MaxTileCol),C[1]-P*O.MinTileRow];if(void 0!==j&&!Object(a["containsExtent"])(j,M)){var R=n["WGS84BoundingBox"],A=Object(u["get"])("EPSG:4326").getExtent();if(M=j,R)b=R[0]===A[0]&&R[2]===A[2];else{var L=Object(u["transformExtent"])(j,v["SupportedCRS"],"EPSG:4326");b=L[0]-1e-10<=A[0]&&L[2]+1e-10>=A[2]}}var I=Object(s["createFromCapabilitiesMatrixSet"])(v,M,h),k=[],F=e["requestEncoding"];if(F=void 0!==F?F:"","OperationsMetadata"in t&&"GetTile"in t["OperationsMetadata"])for(var D=t["OperationsMetadata"]["GetTile"]["DCP"]["HTTP"]["Get"],G=0,N=D.length;G<N;++G)if(D[G]["Constraint"]){var z=Object(c["d"])(D[G]["Constraint"],(function(t){return"GetEncoding"==t["name"]})),B=z["AllowedValues"]["Value"];if(""===F&&(F=B[0]),"KVP"!==F)break;Object(c["f"])(B,"KVP")&&k.push(D[G]["href"])}else D[G]["href"]&&(F="KVP",k.push(D[G]["href"]));return 0===k.length&&(F="REST",n["ResourceURL"].forEach((function(t){"tile"===t["resourceType"]&&(f=t["format"],k.push(t["template"]))}))),{urls:k,layer:e["layer"],matrixSet:l,format:f,projection:g,requestEncoding:F,tileGrid:I,style:p,dimensions:d,wrapX:b,crossOrigin:e["crossOrigin"]}}e["default"]=f},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(),C=[E.slice()],T=v.getExtent();if(r.getWrapX()&&v.canWrapX()&&!Object(u["containsExtent"])(T,t.extent)){var P=Object(u["getWidth"])(T),j=Math.max(Object(u["getWidth"])(E)/2,P);E[0]=T[0]-j,E[2]=T[2]+j,Object(g["l"])(O,v);var M=Object(u["wrapX"])(C[0],v);M[0]<T[0]&&M[2]<T[2]?C.push([M[0]+P,M[1],M[2]+P,M[3]]):M[0]>T[0]&&M[2]>T[2]&&C.push([M[0]-P,M[1],M[2]-P,M[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 R,A=new n["a"](Object(h["c"])(m,_),E,m,_);this.getLayer().getDeclutter()&&(R=new n["a"](Object(h["c"])(m,_),E,m,_));var L,I=Object(p["getUserProjection"])();if(I){for(var k=0,F=C.length;k<F;++k){var D=C[k],G=Object(p["toUserExtent"])(D,v);r.loadFeatures(G,Object(p["toUserResolution"])(m,v),I)}L=Object(p["getTransformFromProjections"])(I,v)}else for(k=0,F=C.length;k<F;++k)r.loadFeatures(C[k],m,v);var N=Object(h["b"])(m,_),z=!0,B=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,R);z=z&&!i}}.bind(this),U=Object(p["toUserExtent"])(E,v),V=r.getFeaturesInExtent(U);w&&V.sort(w);for(k=0,F=V.length;k<F;++k)B(V[k]);this.renderedFeatures_=V,this.ready=z;var X=A.finish(),W=new o["a"](E,m,_,r.getOverlaps(),X,e.getRenderBuffer());return R&&(this.declutterExecutorGroup=new o["a"](E,m,_,r.getOverlaps(),R.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},dd49:function(t,e,r){},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 C})),r.d(e,"p",(function(){return M})),r.d(e,"o",(function(){return R})),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={},C=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))))}}}(),T=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 M(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 R(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=T(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.zIndex=1,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||1,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:"formatLengthNew",value:function(){var t=this.getGeometry();return t?(0,l.formatLengthNew)(t):0}},{key:"getAreaMu",value:function(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],e=this.getGeometry();return e?(0,l.formatArea)(e,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},e318: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("448a")),a=n(r("970b")),s=n(r("5bc3")),l=n(r("5eee")),u=n(r("5c9f")),c=r("b12f"),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(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{isAnalysisBBOX:!1,isAnalysisCenter:!1,isDrag:!1,isFistData:!1};(0,a.default)(this,t),this._ele=null,this._map=null,this._layersMap=new Map,this._view=null,this.modelArr=[],this.isAnalysisBBOX=!1,this.isAnalysisCenter=!1,this._callback=null,this._layerArr=[],this._isDrag=!1,this._isFistData=!1,this.isAnalysisBBOX=e.isAnalysisBBOX,this.isAnalysisCenter=e.isAnalysisCenter,this._callback=e.callback,this._isDrag=e.isDrag,this._isFistData=e.isFistData}return(0,s.default)(t,[{key:"onLoad",value:function(t){return h(this,void 0,void 0,i.default.mark((function e(){var r=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._ele=t,e.next=3,new Promise((function(e,n){var i=new l.default(Object.assign({target:t,controls:r._isDrag?null:u.default.Defaults,interactions:r._isDrag?null:u.default.InteractionsDeft}));r._map=i,r._view=u.default.getVectorLayerView,r._map.setView(r._view),i?e(i):n(null)}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"getLayerMap",get:function(){return this._layersMap}},{key:"getLayers",get:function(){return this._layerArr}},{key:"initLayers",value:function(t){var e=this,r=(this.removeLayers(),this.modelArr=t,[]);t.forEach((function(t){var n=t.geo,i=e.analysisBBOX(n);e.createPolygon(t),r=[].concat((0,o.default)(r),(0,o.default)(i)),e._callback&&!e._isFistData&&e._callback(Object.assign(Object.assign({bbox:i,center:e.analysisCenter(n)},e.analysisProperties(n)),{id:t.id}))})),this.fit(r)}},{key:"createPolygon",value:function(t){var e=(0,c.createPolygonBoundaryNew)(t);this._layerArr.push(e),this._map.addLayer(e),t.id&&(t.id.toString(),t="string"==typeof t.id?t.id:t.id.toString(),this._layersMap.set(t,e))}},{key:"fit",value:function(t){this._view.fit(t,{padding:[10,10,10,10],nearest:!1})}},{key:"removeLayers",value:function(){var t=this;this._layerArr.forEach((function(e){t._map.removeLayer(e)})),this._layersMap.clear(),this._layerArr=[]}},{key:"setPolygonColor",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:["rgba(255, 255, 255, 0.3)","rgba(00, 131, 241, 1)"];this._layersMap.has(t)&&((t=this._layersMap.get(t).getStyle()).getFill().setColor(e[0]),t.getStroke().setColor(e[1]))}},{key:"olMap",get:function(){return this._map}},{key:"ele",get:function(){return this._ele}},{key:"analysisGeoJson",value:function(t){if(!t)return null;var e=t.geometry?t.geometry.coordinates:null,r=t.bbox||null;return{properties:t.properties||null,bbox:r,coordinates:e}}},{key:"analysisBBOX",value:function(t){t=this.analysisGeoJson(t);var e=t.bbox;t=t.coordinates;return this.isAnalysisBBOX?e:this.getbbox(t)}},{key:"analysisCenter",value:function(t){t=this.analysisGeoJson(t);var e=t.properties;t=t.coordinates;return this.isAnalysisCenter?e?[e.lon||0,e.lat||0]:null:this.getCenterPoint(t)}},{key:"analysisProperties",value:function(t){return t=this.analysisGeoJson(t).properties,t?{code:t.code||null,level:t.level||0,name:t.name||null,parent_code:t.parent_code||null}:null}},{key:"getbbox",value:function(t){return t=(0,c.getLngAndLatMaxMin)(t),[t[2],t[3],t[0],t[1]]}},{key:"getCenterPoint",value:function(t){return(0,c.getCenterPoint)(t)}},{key:"resetSize",value:function(){this._map&&this.initLayers(this.modelArr)}}]),t}();e.default=f},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
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:C,isFinite:T,isNaN:P}=Number,{iterator:j,species:M,toStringTag:R,for:A}=Symbol,L=Object,{create:I,defineProperty:k,freeze:F,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),B=Array,U=B.isArray,V=B.prototype,X=p(V.join),W=p(V.push),H=p(V.toLocaleString),Y=V[j],q=p(Y),Z=Math.trunc,K=ArrayBuffer,J=K.isView,$=K.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,R),xt=Uint16Array,wt=(...t)=>g(it,xt,t),Ot=Uint32Array,Et=Float32Array,St=b([][j]()),Ct=p(St.next),Tt=p(function*(){}().next),Pt=b(St),jt=DataView.prototype,Mt=p(jt.getUint16),Rt=p(jt.setUint16),At=TypeError,Lt=RangeError,It=WeakSet,kt=It.prototype,Ft=p(kt.add),Dt=p(kt.has),Gt=WeakMap,Nt=Gt.prototype,zt=p(Nt.get),Bt=p(Nt.has),Ut=p(Nt.set),Vt=new Gt,Xt=I(null,{next:{value:function(){const t=zt(Vt,this);return Ct(t)}},[j]:{value:function(){return this}}});function Wt(t){if(t[j]===Y)return t;const e=I(Xt);return Ut(Vt,e,q(t)),e}const Ht=new Gt,Yt=I(Pt,{next:{value:function(){const t=zt(Ht,this);return Tt(t)},writable:!0,configurable:!0}});for(const Fe of w(St))"next"!==Fe&&k(Yt,Fe,_(St,Fe));function qt(t){const e=I(Yt);return Ut(Ht,e,t),e}function Zt(t){return null!==t&&"object"===typeof t||"function"===typeof t}function Kt(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(!U(t))return!1;if(t[j]===Y)return!0;const e=t[j]();return"Array Iterator"===e[R]}function re(t){if(!Jt(t))return!1;if(t[j]===at)return!0;const e=t[j]();return"Array Iterator"===e[R]}function ne(t){if("string"!==typeof t)return!1;const e=+t;return t===e+""&&(!!T(e)&&e===Z(e))}const ie=A("__Float16Array__");function oe(t){if(!Kt(t))return!1;const e=b(t);if(!Kt(e))return!1;const r=e.constructor;if(void 0===r)return!1;if(!Zt(r))throw At(i);return x(r,ie)}const ae=new K(4),se=new Et(ae),le=new Ot(ae),ue=new Ot(512),ce=new Ot(512);for(let Fe=0;Fe<256;++Fe){const t=Fe-127;t<-27?(ue[Fe]=0,ue[256|Fe]=32768,ce[Fe]=24,ce[256|Fe]=24):t<-14?(ue[Fe]=1024>>-t-14,ue[256|Fe]=1024>>-t-14|32768,ce[Fe]=-t-1,ce[256|Fe]=-t-1):t<=15?(ue[Fe]=t+15<<10,ue[256|Fe]=t+15<<10|32768,ce[Fe]=13,ce[256|Fe]=13):t<128?(ue[Fe]=31744,ue[256|Fe]=64512,ce[Fe]=24,ce[256|Fe]=24):(ue[Fe]=31744,ue[256|Fe]=64512,ce[Fe]=13,ce[256|Fe]=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 Fe=1;Fe<1024;++Fe){let t=Fe<<13,e=0;while(0===(8388608&t))t<<=1,e-=8388608;t&=-8388609,e+=947912704,fe[Fe]=t|e}for(let Fe=1024;Fe<2048;++Fe)fe[Fe]=939524096+(Fe-1024<<13);for(let Fe=1;Fe<31;++Fe)pe[Fe]=Fe<<23;pe[31]=1199570944,pe[32]=2147483648;for(let Fe=33;Fe<63;++Fe)pe[Fe]=2147483648+(Fe-32<<23);pe[63]=3347054592;for(let Fe=1;Fe<64;++Fe)32!==Fe&&(de[Fe]=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:Z(e)}function ve(t){const e=ye(t);return e<0?0:e<C?e:C}function me(t,r){if(!Zt(t))throw At(e);const n=t.constructor;if(void 0===n)return r;if(!Zt(n))throw At(i);const o=n[M];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 Bt(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=Ce(t);n=_t(e)}else n=_t(t);if(n<e)throw At(a)}if($t(t))throw At(u)}function Ce(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(Me,[r,t.byteOffset,t.length],t.constructor);return zt(we,n)}function Te(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 Fe of w(ot)){if(Fe===R)continue;const t=_(ot,Fe);z(t,"get")&&"function"===typeof t.get&&Ft(Pe,t.get)}const je=F({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 Me{constructor(t,e,r){let n;if(Oe(t))n=y(xt,[Ce(t)],new.target);else if(Zt(t)&&!Qt(t)){let e,r;if(Jt(t)){e=t,r=_t(t);const i=vt(t),o=te(i)?K:me(i,K);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 Ut(we,i,n),i}static from(t,...e){const r=this;if(!x(r,ie))throw At(n);if(r===Me){if(Oe(t)&&0===e.length){const e=Ce(t),r=new xt(vt(e),mt(e),_t(e));return new Me(vt(gt(r)))}if(0===e.length)return new Me(vt(wt(t,he)));const r=e[0],n=e[1];return new Me(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===Me){const e=new Me(r),n=Ce(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=Ce(this);return st(t)}values(){Ee(this);const t=Ce(this);return qt(function*(){for(const e of lt(t))yield ge(e)}())}entries(){Ee(this);const t=Ce(this);return qt(function*(){for(const[e,r]of ut(t))yield[e,ge(r)]}())}at(t){Ee(this);const e=Ce(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=Ce(this),n=_t(r),i=e[0],o=me(r,Me);if(o===Me){const e=new Me(n),o=Ce(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=Ce(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,Me),s=new a(o);return Se(s),s}reduce(t,...e){Ee(this);const r=Ce(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=Ce(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=Ce(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=Ce(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=Ce(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=Ce(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=Ce(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=Ce(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=Ce(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=Ce(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(Ce(this),Ce(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=Ce(this);return ht(t),this}fill(t,...e){Ee(this);const r=Ce(this);return ft(r,he(t),...Wt(e)),this}copyWithin(t,e,...r){Ee(this);const n=Ce(this);return pt(n,t,e,...Wt(r)),this}sort(t){Ee(this);const e=Ce(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=Ce(this),n=me(r,Me);if(n===Me){const n=new xt(vt(r),mt(r),_t(r));return new Me(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=Ce(this),n=me(r,Me),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=Ce(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=Ce(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=Ce(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=Ce(this),r=Te(e);return X(r,t)}toLocaleString(...t){Ee(this);const e=Ce(this),r=Te(e);return H(r,...Wt(t))}get[R](){if(Oe(this))return"Float16Array"}}k(Me,"BYTES_PER_ELEMENT",{value:xe}),k(Me,ie,{}),E(Me,nt);const Re=Me.prototype;function Ae(t){return Jt(t)||Oe(t)}function Le(t,e,...r){return ge(Mt(t,e,...Wt(r)))}function Ie(t,e,r,...n){return Rt(t,e,he(r),...Wt(n))}function ke(t){const e=+t;if(!T(e)||0===e)return e;const r=he(e);return ge(r)}k(Re,"BYTES_PER_ELEMENT",{value:xe}),k(Re,j,{value:Re.values,writable:!0,configurable:!0}),E(Re,ot),t.Float16Array=Me,t.getFloat16=Le,t.hfround=ke,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,e){var r=document.createElement("i");r.style.fontSize="30px",r.className=e,e=document.createElement("div");return f(e),p(e,t),e.appendChild(r),{element:e,icon_i:r}}var g=function(t){(0,a.default)(r,t);var e=c(r);function r(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"el-icon--zhunxin1",o=(t=((0,i.default)(this,r),d(t,n)),n=t.element,t=t.icon_i,e.call(this,{element:n,target:null}));return o._ele=n,o._icon_i=t,o}return(0,o.default)(r,[{key:"show",value:function(){this._ele.style.display="block"}},{key:"hide",value:function(){this._ele.style.display="none"}},{key:"ele",get:function(){return this._ele}},{key:"setIconName",value:function(){this._icon_i.className=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"el-icon--zhunxin1"}},{key:"setIconColor",value:function(t){this._icon_i.style.fontSize="30px"}}]),r}(u.Control);e.default=g},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=_,C=o+s*l(h,i,f);while(e<r-n&&_+m<C)b();x=0===m?0:(C-_)/m;var T,P=Object(u["e"])(y,d,x),j=Object(u["e"])(v,g,x);if(p){var M=[w,O,P,j];Object(c["a"])(M,0,4,2,p,M,M),T=M[0]>M[2]}else T=w>P;var R,A=Math.PI,L=[],I=E+n===e;if(e=E,m=0,_=S,d=t[e],g=t[e+1],I){b(),R=Math.atan2(g-v,d-y),T&&(R+=R>0?-A:A);var k=(P+w)/2,F=(j+O)/2;return L[0]=[k,F,(C-o)/2,R,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(T&&(N+=N>0?-A:A),void 0!==R){var z=N-R;if(z+=z>A?-2*A:z<-A?2*A:0,Math.abs(z)>a)return null}R=N;for(var B=D,U=0;D<G;++D){var V=T?G-D-1:D,X=s*l(h,i[V],f);if(e+n<r&&_+m<o+U+X/2)break;U+=X}if(D!==B){var W=T?i.substring(G-B,G-D):i.substring(B,D);x=0===m?0:(o+U/2-_)/m;k=Object(u["e"])(y,d,x),F=Object(u["e"])(v,g,x);L.push([k,F,U/2,N,W]),o+=U}}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,C=[],T=(S+2)*f[0],P=(_+g)*f[1],j={width:T<0?Math.floor(T):Math.ceil(T),height:P<0?Math.floor(P):Math.ceil(P),contextInstructions:C};if(1==f[0]&&1==f[1]||C.push("scale",f),n){C.push("strokeStyle",s.strokeStyle),C.push("lineWidth",g),C.push("lineCap",s.lineCap),C.push("lineJoin",s.lineJoin),C.push("miterLimit",s.miterLimit);var M=o["h"]?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;M.prototype.setLineDash&&(C.push("setLineDash",[s.lineDash]),C.push("lineDashOffset",s.lineDashOffset))}r&&C.push("fillStyle",u.fillStyle),C.push("textBaseline","middle"),C.push("textAlign","center");for(var R,A=.5-d,L=d*S+A*g,I=[],k=[],F=0,D=0,G=0,N=0,z=0,B=y.length;z<B;z+=2){var U=y[z];if("\n"!==U){var V=y[z+1]||c.font;V!==R&&(n&&I.push("font",V),r&&k.push("font",V),R=V),F=Math.max(F,O[G]);var X=[U,L+A*b[G]+d*(b[G]-E[N]),.5*(g+F)+D];L+=b[G],n&&I.push("strokeText",X),r&&k.push("fillText",X),++G}else D+=F,F=0,L=d*S+A*g,++N}return Array.prototype.push.apply(C,I),Array.prototype.push.apply(C,k),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,C=i+c>t?t-c:i,T=o+h>e?e-h:o,P=b[3]+C*p[0]+b[1],j=b[0]+T*p[1]+b[2],M=E-b[3],R=S-b[0];return(x||0!==f)&&(g[0]=M,m[0]=M,g[1]=R,y[1]=R,y[0]=M+P,v[0]=y[0],v[1]=R+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(M,M+P),Math.min(R,R+j),Math.max(M,M+P),Math.max(R,R+j),d),_&&(E=Math.round(E),S=Math.round(S)),{drawImageX:E,drawImageY:S,drawImageW:C,drawImageH:T,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,C,T,P,j,M,R,A,L,I,k=0,F=o.length,D=0,G=0,N=0,z=null,B=null,U=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(k<F){var Y=o[k],q=Y[0];switch(q){case n["c"].BEGIN_GEOMETRY:R=Y[1],I=Y[3],R.getGeometry()?void 0===g||Object(s["intersects"])(g,I.getExtent())?++k:k=Y[2]+1:k=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),++k;break;case n["c"].CIRCLE:D=Y[1];var Z=v[D],K=v[D+1],J=v[D+2],$=v[D+3],Q=J-Z,tt=$-K,et=Math.sqrt(Q*Q+tt*tt);t.moveTo(Z+et,K),t.arc(Z,K,et,0,2*Math.PI,!0),++k;break;case n["c"].CLOSE_PATH:t.closePath(),++k;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=R,k in U||(U[k]=[]);var ot=U[k];it?it(v,D,m,2,ot):(ot[0]=v[D],ot[1]=v[D+1],ot.length=2),nt(ot,W),++k;break;case n["c"].DRAW_IMAGE:D=Y[1],m=Y[2],C=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(!C&&Y.length>=20){T=Y[19],P=Y[20],j=Y[21],M=Y[22];var yt=this.drawLabelWithPointPlacement_(T,P,j,M);C=yt.label,Y[3]=C;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=C.height,Y[6]=at,pt=C.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_(C.width,C.height,v[D],v[D+1],pt,at,b,x,lt,ut,ht,ft,u,bt,xt||wt,R),St=[t,e,C,Et,st,xt?z:null,wt?B:null];if(y){if("none"===dt)continue;if("obstacle"===dt){y.insert(Et.declutterBox);continue}var Ct=void 0,Tt=void 0;if(gt){var Pt=m-D;if(!gt[Pt]){gt[Pt]=St;continue}if(Ct=gt[Pt],delete gt[Pt],Tt=_(Ct),y.collides(Tt))continue}if(y.collides(Et.declutterBox))continue;Ct&&(y.insert(Tt),this.replayImageOrLabel_.apply(this,Ct)),y.insert(Et.declutterBox)}this.replayImageOrLabel_.apply(this,St)}++k;break;case n["c"].DRAW_CHARS:var jt=Y[1],Mt=Y[2],Rt=Y[3],At=Y[4];M=Y[5];var Lt=Y[6],It=Y[7],kt=Y[8];j=Y[9];var Ft=Y[10];T=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],Bt=void 0;Nt in this.widths_?Bt=this.widths_[Nt]:(Bt={},this.widths_[Nt]=Bt);var Ut=Object(p["a"])(v,jt,Mt,2),Vt=Math.abs(zt[0])*Object(l["p"])(Nt,T,Bt);if(At||Vt<=Ut){var Xt=this.textStates[P].textAlign,Wt=(Ut-Vt)*i["a"][Xt],Ht=h(v,jt,Mt,2,T,Wt,Lt,Math.abs(zt[0]),l["p"],Nt,Bt,X?0:this.viewRotation_);t:if(Ht){var Yt=[],qt=void 0,Zt=void 0,Kt=void 0,Jt=void 0,$t=void 0;if(j)for(qt=0,Zt=Ht.length;qt<Zt;++qt){$t=Ht[qt],Kt=$t[4],Jt=this.createLabel(Kt,P,"",j),b=$t[2]+(zt[0]<0?-Ft:Ft),x=Rt*Jt.height+2*(.5-Rt)*Ft*zt[1]/zt[0]-kt;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,R);if(y&&y.collides(Et.declutterBox))break t;Yt.push([t,e,Jt,Et,1,null,null])}if(M)for(qt=0,Zt=Ht.length;qt<Zt;++qt){$t=Ht[qt],Kt=$t[4],Jt=this.createLabel(Kt,P,M,""),b=$t[2],x=Rt*Jt.height-kt;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,R);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])}}++k;break;case n["c"].END_GEOMETRY:if(void 0!==d){R=Y[1];var ee=d(R,I);if(ee)return ee}++k;break;case n["c"].FILL:H?G++:this.fill_(t),++k;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);++k;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],++k;break;case n["c"].SET_STROKE_STYLE:B=Y,N&&(t.stroke(),N=0),this.setStrokeStyle_(t,Y),++k;break;case n["c"].STROKE:H?N++:t.stroke(),++k;break;default:++k;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"),C=r("38f3"),T=["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=M(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=T.length-1;m>=0;--m)if(d=T[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(C["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||T;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 M(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},e8ba:function(t,e,r){"use strict";r("9809")},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}},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},ed05: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={width:160,height:74,padding:"2px 0 7px 14px",border:"0.3px solid #FF744C",backgroundColor:"rgba(60,30,20,0.3)"},p={color:"#FF744C",fontSize:32},d={color:"#fff",fontSize:16,marginLeft:"rgba(60,30,20,0.3)"},g={backgroundColor:" #FF744C",left:0,top:16.6,width:1.66,height:44.8},y={color:"#fff",fontSize:16},v={popupStyle:f,spanStyle:p,labelStyle:d,asideStyle:g,areaStyle:y},m=function(t){(0,a.default)(r,t);var e=c(r);function r(){var t,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:v;return(0,i.default)(this,r),(t=e.call(this))._label=null,t._span=null,t._area=null,t._popupStyles=n.popupStyle,t._labelStyles=n.labelStyle,t._spanStyles=n.spanStyle,t._asideStyle=n.asideStyle,t._areaStyle=n.areaStyle,t.init(),t}return(0,o.default)(r,[{key:"init",value:function(){this.setDivStyle(),this.ele.appendChild(this.createAside());var t=this.createSection();this._span=this.createSpan(),this._label=this.ceateLabel(),this._area=this.createArea(),t.appendChild(this._span),t.appendChild(this._label),this.ele.appendChild(t),this.ele.appendChild(this._area)}},{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,this.ele.style.borderRadius="2.36px",this.ele.style.border=t.border}},{key:"ceateLabel",value:function(){var t=this._labelStyles,e=document.createElement("label");return e.style.display="inline-block",e.style.color=t.color||"#fff",e.style.fontSize="".concat(t.fontSize,"px"),e.style.marginLeft="8px",e}},{key:"setHTMLElementStyle",value:function(){}},{key:"createSpan",value:function(){var t=this._spanStyles,e=document.createElement("span");return e.style.display="inline-block",e.style.color=t.color||"#fff",e.style.fontSize="".concat(t.fontSize,"px"),e}},{key:"createSection",value:function(){var t=document.createElement("section");return t.style.display="flex",t.style.alignItems="center",t}},{key:"createArea",value:function(){var t=this._areaStyle,e=document.createElement("section");return e.style.fontSize="".concat(t.fontSize,"px"),e.style.color=t.color||"#fff",e}},{key:"createAside",value:function(){var t=this._asideStyle,e=document.createElement("aside");return e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px"),e.style.backgroundColor=t.backgroundColor,e.style.position="absolute",e.style.top="".concat(t.top,"px"),e.style.left="".concat(t.left,"px"),e}},{key:"setData",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{unit:"台"};this._span&&(this._span.innerHTML=t.total),this._label&&(this._label.innerHTML=t.unit),this._area&&(this._area.innerHTML=t.areaName)}}]),r}(u.LOverlay);e.default=m},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";r.r(e);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["default"]=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},f7d8:function(t,e,r){"use strict";r("4409")},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 P})),r.d(e,"Group",(function(){return j["b"]})),r.d(e,"Heatmap",(function(){return Vt})),r.d(e,"Image",(function(){return Xt["default"]})),r.d(e,"Layer",(function(){return Wt["a"]})),r.d(e,"MapboxVector",(function(){return Da})),r.d(e,"Tile",(function(){return Xe["default"]})),r.d(e,"Vector",(function(){return p["default"]})),r.d(e,"VectorImage",(function(){return Za})),r.d(e,"VectorTile",(function(){return Fe})),r.d(e,"WebGLPoints",(function(){return tl})),r.d(e,"WebGLTile",(function(){return ol}));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("834d");function x(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 w(t,e,r,n,i){var o=Object(_["get"])("EPSG:4326");return x((function(n){return[t,e+(r-e)*n]}),Object(_["getTransform"])(o,n),i)}function O(t,e,r,n,i){var o=Object(_["get"])("EPSG:4326");return x((function(n){return[e+(r-e)*n,t]}),Object(_["getTransform"])(o,n),i)}var 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)}}(),S=new c["default"]({color:"rgba(0,0,0,0.2)"}),C=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001],T=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:S,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:C,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 E(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=Object(b["getVectorContext"])(t),v=u;v<=c;++v){var m=this.meridians_.length+this.parallels_.length,_=void 0,x=void 0,w=void 0,O=void 0;if(this.meridiansLabels_)for(x=0,w=this.meridiansLabels_.length;x<w;++x){var E=this.meridians_[x];if(e||0!==v){var S=E.clone();S.translate(v*p,0),S.rotate(-e,o),O=this.getMeridianPoint_(S,a,x),O.rotate(e,o)}else O=this.getMeridianPoint_(E,i,x);_=this.featurePool_[m++],_.setGeometry(O),_.set("graticule_label",this.meridiansLabels_[x].text),y.drawFeature(_,this.lonLabelStyle_(_))}if(this.parallelsLabels_&&(v===u&&h||v===c&&!h))for(x=0,w=this.parallels_.length;x<w;++x){E=this.parallels_[x];if(e||0!==v){S=E.clone();S.translate(v*p,0),S.rotate(-e,o),O=this.getParallelPoint_(S,a,x),O.rotate(e,o)}else O=this.getParallelPoint_(E,i,x);_=this.featurePool_[m++],_.setGeometry(O),_.set("graticule_label",this.parallelsLabels_[x].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=w(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=O(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"]),P=T,j=r("9c78"),M=r("ae50"),R=r("a43f"),A=r("496f"),L=r("617d"),I=34962,k=34963,F=35040,D=35044,G=35048,N=5121,z=5123,B=5125,U=5126,V=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function X(t,e){for(var r=Object(y["a"])({preserveDrawingBuffer:!0,antialias:!L["f"]},e),n=V.length,i=0;i<n;++i)try{var o=t.getContext(V[i],r);if(o)return o}catch(a){}return null}var W=r("92fa"),H={STATIC_DRAW:D,STREAM_DRAW:F,DYNAMIC_DRAW:G},Y=function(){function t(t,e){this.array=null,this.type=t,Object(W["a"])(t===I||t===k,62),this.usage=void 0!==e?e:H.STATIC_DRAW}return t.prototype.ofSize=function(t){this.array=new(q(this.type))(t)},t.prototype.fromArray=function(t){var e=q(this.type);this.array=e.from?e.from(t):new e(t)},t.prototype.fromArrayBuffer=function(t){this.array=new(q(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 q(t){switch(t){case I:return Float32Array;case k:return Uint32Array;default:return Float32Array}}var Z=Y,K=r("df4c"),J=r("faf4"),$=r("3333"),Q={LOST:"webglcontextlost",RESTORED:"webglcontextrestored"},tt=r("da5c"),et=r("1300"),rt="\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",nt="\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",it=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||rt),e.compileShader(r);var n=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(n,t.fragmentShader||nt),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(et["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}(),ot=it,at=r("a896");function st(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function lt(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 ut=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)}}(),ct={PROJECTION_MATRIX:"u_projectionMatrix",OFFSET_SCALE_MATRIX:"u_offsetScaleMatrix",OFFSET_ROTATION_MATRIX:"u_offsetRotateMatrix",TIME:"u_time",ZOOM:"u_zoom",RESOLUTION:"u_resolution"},ht={UNSIGNED_BYTE:N,UNSIGNED_SHORT:z,UNSIGNED_INT:B,FLOAT:U},ft={};function pt(t){return"shared/"+t}var dt=0;function gt(){var t="unique/"+dt;return dt+=1,t}function yt(t){var e=ft[t];if(!e){var r=document.createElement("canvas");r.style.position="absolute",r.style.left="0",e={users:0,canvas:r},ft[t]=e}return e.users+=1,e.canvas}function vt(t){var e=ft[t];if(e&&(e.users-=1,!(e.users>0))){var r=e.canvas,n=X(r),i=n.getExtension("WEBGL_lose_context");i&&i.loseContext(),delete ft[t]}}var mt=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?pt(n.canvasCacheKey):gt(),r.canvas_=yt(r.canvasCacheKey_),r.gl_=X(r.canvas_),r.bufferCache_={},r.extensionCache_={},r.currentProgram_=null,r.canvas_.addEventListener(Q.LOST,r.boundHandleWebGLContextLost_),r.canvas_.addEventListener(Q.RESTORED,r.boundHandleWebGLContextRestored_),r.offsetRotateMatrix_=Object(at["c"])(),r.offsetScaleMatrix_=Object(at["c"])(),r.tmpMat4_=st(),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 ot({webGlContext:i,scaleRatio:t.scaleRatio,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms})})):[new ot({webGlContext:i})],r.shaderCompileErrors_=null,r.startTime_=Date.now(),r}return ut(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_===pt(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(et["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(et["c"])(t),n=this.bufferCache_[r];n&&!e.isContextLost()&&e.deleteBuffer(n.webGlBuffer),delete this.bufferCache_[r]},e.prototype.disposeInternal=function(){this.canvas_.removeEventListener(Q.LOST,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(Q.RESTORED,this.boundHandleWebGLContextRestored_),vt(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(at["g"])(this.offsetScaleMatrix_);Object(at["i"])(n,2/e[0],2/e[1]);var i=Object(at["g"])(this.offsetRotateMatrix_);0!==r&&Object(at["h"])(i,-r),this.setUniformMatrixValue(ct.OFFSET_SCALE_MATRIX,lt(this.tmpMat4_,n)),this.setUniformMatrixValue(ct.OFFSET_ROTATION_MATRIX,lt(this.tmpMat4_,i)),this.setUniformFloatValue(ct.TIME,.001*(Date.now()-this.startTime_)),this.setUniformFloatValue(ct.ZOOM,t.viewState.zoom),this.setUniformFloatValue(ct.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,lt(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(at["g"])(e),Object(at["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=_t(t),r=0,n=0;n<t.length;n++){var i=t[n];this.enableAttributeArray_(i.name,i.size,i.type||U,e,r),r+=i.size*bt(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}(tt["a"]);function _t(t){for(var e=0,r=0;r<t.length;r++){var n=t[r];e+=n.size*bt(n.type)}return e}function bt(t){switch(t){case ht.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case ht.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case ht.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT;case ht.FLOAT:default:return Float32Array.BYTES_PER_ELEMENT}}var xt=mt,wt=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)}}(),Ot={GENERATE_BUFFERS:"GENERATE_BUFFERS"},Et=function(t){function e(e,r){var n=t.call(this,e)||this,i=r||{};return n.inversePixelTransform_=Object(at["c"])(),n.pixelContext_=null,n.postProcesses_=i.postProcesses,n.uniforms_=i.uniforms,n.helper,e.addChangeListener(K["a"].MAP,n.removeHelper.bind(n)),n.dispatchPreComposeEvent=n.dispatchPreComposeEvent.bind(n),n.dispatchPostComposeEvent=n.dispatchPostComposeEvent.bind(n),n}return wt(e,t),e.prototype.dispatchPreComposeEvent=function(t,e){var r=this.getLayer();if(r.hasListener(i["a"].PRECOMPOSE)){var n=new $["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 $["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 xt({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(at["b"])(this.inversePixelTransform_,0,0,r.pixelRatio,-r.pixelRatio,0,0,-r.size[1]);var i=new $["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(at["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(at["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}(J["a"]);function St(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 Ct(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 Tt=Et,Pt=r("9f5e"),jt=new Uint8Array(4),Mt=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(Pt["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 jt[0]=0,jt[1]=0,jt[2]=0,jt[3]=0,jt;this.readAll();var r=Math.floor(t)+(this.size_[1]-Math.floor(e)-1)*this.size_[0];return jt[0]=this.data_[4*r],jt[1]=this.data_[4*r+1],jt[2]=this.data_[4*r+2],jt[3]=this.data_[4*r+3],jt},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}(),Rt=Mt,At=r("7fd1"),Lt=r("1e8d"),It=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)}}(),kt=function(t){function e(e,r){var n=this,i=r.uniforms||{},o=Object(at["c"])();i[ct.PROJECTION_MATRIX]=o,n=t.call(this,e,{uniforms:i,postProcesses:r.postProcesses})||this,n.ready=!1,n.sourceRevision_=-1,n.verticesBuffer_=new Z(I,G),n.hitVerticesBuffer_=new Z(I,G),n.indicesBuffer_=new Z(k,G),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:ht.FLOAT}})):[];n.attributes=[{name:"a_position",size:2,type:ht.FLOAT},{name:"a_index",size:1,type:ht.FLOAT}].concat(a),n.hitDetectionAttributes=[{name:"a_position",size:2,type:ht.FLOAT},{name:"a_index",size:1,type:ht.FLOAT},{name:"a_hitColor",size:4,type:ht.FLOAT},{name:"a_featureUid",size:1,type:ht.FLOAT}].concat(a),n.customAttributes=r.attributes?r.attributes:[],n.previousExtent_=Object(g["createEmpty"])(),n.currentTransform_=o,n.renderTransform_=Object(at["c"])(),n.invertRenderTransform_=Object(at["c"])(),n.renderInstructions_=new Float32Array(0),n.hitRenderInstructions_=new Float32Array(0),n.hitRenderTarget_,n.generateBuffersRun_=0,n.worker_=Object(At["a"])(),n.worker_.addEventListener("message",function(t){var e=t.data;if(e.type===Ot.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(at["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(Lt["a"])(s,R["a"].ADDFEATURE,n.handleSourceFeatureAdded_,n),Object(Lt["a"])(s,R["a"].CHANGEFEATURE,n.handleSourceFeatureChanged_,n),Object(Lt["a"])(s,R["a"].REMOVEFEATURE,n.handleSourceFeatureDelete_,n),Object(Lt["a"])(s,R["a"].CLEAR,n.handleSourceFeatureClear_,n)],s.forEachFeature(function(t){this.featureCache_[Object(et["c"])(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()},this.featureCount_++}.bind(n)),n}return It(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 Rt(this.helper))},e.prototype.handleSourceFeatureAdded_=function(t){var e=t.feature;this.featureCache_[Object(et["c"])(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()},this.featureCount_++},e.prototype.handleSourceFeatureChanged_=function(t){var e=t.feature;this.featureCache_[Object(et["c"])(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()}},e.prototype.handleSourceFeatureDelete_=function(t){var e=t.feature;delete this.featureCache_[Object(et["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(at["l"])(this.currentTransform_,h*l,0),Object(at["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[A["a"].ANIMATING]&&!t.viewHints[A["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 M["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(at["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(at["a"])(e,s),a=St(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:Ot.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:Ot.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(W["a"])(this.hitDetectionEnabled_,66),this.hitRenderInstructions_){var o=Object(at["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=Ct(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(at["l"])(this.currentTransform_,i*n,0),Object(at["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(Lt["c"])(t)})),this.sourceListenKeys_=null,t.prototype.disposeInternal.call(this)},e}(Tt),Ft=kt,Dt=r("0999"),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)}}(),Nt={BLUR:"blur",GRADIENT:"gradient",RADIUS:"radius"},zt=["#00f","#0ff","#0f0","#ff0","#f00"],Bt=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(Nt.GRADIENT,r.handleGradientChanged_),r.setGradient(n.gradient?n.gradient:zt),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 Gt(e,t),e.prototype.getBlur=function(){return this.get(Nt.BLUR)},e.prototype.getGradient=function(){return this.get(Nt.GRADIENT)},e.prototype.getRadius=function(){return this.get(Nt.RADIUS)},e.prototype.handleGradientChanged_=function(){this.gradient_=Ut(this.getGradient())},e.prototype.setBlur=function(t){this.set(Nt.BLUR,t)},e.prototype.setGradient=function(t){this.set(Nt.GRADIENT,t)},e.prototype.setRadius=function(t){this.set(Nt.RADIUS,t)},e.prototype.createRenderer=function(){return new Ft(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(Nt.RADIUS)+this.get(Nt.BLUR))}.bind(this),u_blurSlope:function(){return this.get(Nt.RADIUS)/Math.max(1,this.get(Nt.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}(M["a"]);function Ut(t){for(var e=1,r=256,n=Object(Dt["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 Vt=Bt,Xt=r("c810"),Wt=r("1af9"),Ht=r("cef7"),Yt=r("01d4"),qt=r("b7df"),Zt=r("47e4"),Kt=r("9a44"),Jt=r("88da"),$t=r("7915"),Qt=r.n($t),te=r("5bc33"),ee=r("f5dd"),re=r("0a9d"),ne=r("4d98"),ie=r("b1a2"),oe=r("9159"),ae=r("bef8"),se=Object(at["c"])(),le=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(re["a"])(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_},t.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var t=Object(oe["a"])(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=Object(re["b"])(this.flatCoordinates_,0,this.ends_,2,t)}return this.flatInteriorPoints_},t.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=Object(ie["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(ie["a"])(t,e,o,2,.5);Object(Pt["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(at["b"])(se,r[0],r[3],n,-n,0,0,0),Object(ae["c"])(this.flatCoordinates_,0,this.flatCoordinates_.length,2,se,this.flatCoordinates_)}},t.prototype.getEnds=function(){return this.ends_},t}();le.prototype.getEndss=le.prototype.getEnds,le.prototype.getFlatCoordinates=le.prototype.getOrientedFlatCoordinates;var ue=le,ce=r("fced"),he=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)}}(),fe=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.dataProjection=new ee["default"]({code:"",units:ce["b"].TILE_PIXELS}),r.featureClass_=n.featureClass?n.featureClass:ue,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 he(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(W["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=ve(i,h.length);if(this.featureClass_===ue)n=new this.featureClass_(f,c,h,a,o),n.transform(r.dataProjection);else{var p=void 0;if("Polygon"==f){var d=Object(ne["a"])(c,h);p=d.length>1?new Jt["a"](c,s["a"].XY,d):new te["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 Kt["default"](c,s["a"].XY):"MultiLineString"===f?new Zt["a"](c,s["a"].XY,h):null;var g=this.featureClass_;n=new g,this.geometryName_&&n.setGeometryName(this.geometryName_);var y=Object(qt["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 Qt.a(t),a=o.readFields(pe,{}),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=ye(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}(qt["a"]);function pe(t,e,r){if(3===t){var n={keys:[],values:[],features:[]},i=r.readVarint()+r.pos;r.readFields(de,n,i),n.length=n.features.length,n.length&&(e[n.name]=n)}}function de(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 ge(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 ye(t,e,r){t.pos=e.features[r];var n=t.readVarint()+t.pos,i={layer:e,type:0,properties:{}};return t.readFields(ge,i,n),i}function ve(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 me,_e=fe,be=r("dbba"),xe=r("e8b8"),we=r("b9ec"),Oe=r("acc1"),Ee={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"},Se=r("399c"),Ce=r("30d1"),Te=r("345d"),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)}}(),je={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},Me={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},Re=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(at["c"])(),r}return Pe(e,t),e.prototype.prepareTile=function(t,e,r){var n,i=t.getState();return i!==Oe["a"].LOADED&&i!==Oe["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[A["a"].ANIMATING]||h[A["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()!==Ee.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()===Ee.VECTOR?Object(et["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(et["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()!=Oe["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 be["a"](0,b,a,e),O=u?new be["a"](0,_,a,e):void 0,E=Object(Ce["b"])(a,e),S=function(t){var e,r=t.getStyleFunction()||n.getStyleFunction();if(r&&(e=r(t,a)),e){var i=this.renderFeature(t,E,e,w,O);s.dirty=s.dirty||i}},C=h.getFeatures();o&&o!==s.renderedRenderOrder&&C.sort(o);for(var T=0,P=C.length;T<P;++T){var j=C[T];x&&!Object(g["intersects"])(x,j.getGeometry().getExtent())||S.call(v,j)}var M=w.finish(),R=n.getRenderMode()!==Ee.VECTOR&&u&&1===p.length?null:_,A=new xe["a"](R,a,e,l.getOverlaps(),M,n.getRenderBuffer());if(t.executorGroups[d].push(A),O){var L=new xe["a"](null,a,e,l.getOverlaps(),O.finish(),n.getRenderBuffer());t.declutterExecutorGroups[d].push(L)}},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(et["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(et["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(et["c"])(i),a=i.getSource(),s=this.renderedProjection,l=s.getExtent(),u=this.renderedResolution,c=a.getTileGridForProjection(s),h=Object(at["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()===Oe["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())}),[]),w=n.hitDetectionImageData[o];if(!w&&!this.animatingOrInteracting_){var O=Object(Te["d"])(c.getTileSize(c.getZForResolution(u,a.zDirection))),E=this.renderedRotation_,S=[this.getRenderTransform(c.getTileCoordCenter(n.wrappedTileCoord),u,0,Se["a"],O[0]*Se["a"],O[1]*Se["a"],0)];w=Object(Se["b"])(O,S,x,i.getStyleFunction(),c.getTileCoordExtent(n.wrappedTileCoord),n.getReplayState(i).renderedResolution,E),n.hitDetectionImageData[o]=w}e(Object(Se["c"])(b,x,w))}}.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[A["a"].ANIMATING]||n[A["a"].INTERACTING]),o=this.renderedTiles,a=0,s=o.length;a<s;++a){var l=o[a],u=l.declutterExecutorGroups[Object(et["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(at["f"])(Object(at["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[A["a"].ANIMATING]||n[A["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(et["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,C=w[0].getClipCoords(O);if(C){for(var T=0,P=v.length;T<P;++T)if(d!==E&&E<m[T]){var j=v[T];Object(g["intersects"])([C[0],C[3],C[4],C[7]],[j[0],j[3],j[4],j[7]])&&(S||(s.save(),S=!0),s.beginPath(),s.moveTo(C[0],C[1]),s.lineTo(C[2],C[3]),s.lineTo(C[4],C[5]),s.lineTo(C[6],C[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(C),m.push(E)}for(var M=0,R=w.length;M<R;++M){var L=w[M];L.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(Ce["d"])(n,t,r[a],e,this.boundHandleStyleImageChange_,void 0,i)||o;else o=Object(Ce["d"])(n,t,r,e,this.boundHandleStyleImageChange_,void 0,i);return o},e.prototype.tileImageNeedsRender_=function(t){var e=this.getLayer();if(e.getRenderMode()===Ee.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(et["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(at["g"])(this.tmpTransform_);Object(at["i"])(_,m,m),y.setTransform.apply(y,_)}var b=f.getTileCoordExtent(a,this.tmpExtent),x=d/g,w=Object(at["g"])(this.tmpTransform_);Object(at["i"])(w,x,-x),Object(at["l"])(w,-b[0],-b[3]);for(var O=0,E=o.length;O<E;++O){var S=o[O];S.execute(y,m,w,0,!0,je[r.getRenderMode()])}n.renderedTileResolution=t.wantedResolution},e}(we["a"]),Ae=Re,Le=r("a194"),Ie=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===Ee.IMAGE&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),n.renderMode=void 0);var o=n.renderMode||Ee.HYBRID;return Object(W["a"])(o==Ee.HYBRID||o==Ee.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 Ie(e,t),e.prototype.createRenderer=function(){return new Ae(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(Le["a"].PRELOAD)},e.prototype.getUseInterimTilesOnError=function(){return this.get(Le["a"].USE_INTERIM_TILES_ON_ERROR)},e.prototype.setPreload=function(t){this.set(Le["a"].PRELOAD,t)},e.prototype.setUseInterimTilesOnError=function(t){this.set(Le["a"].USE_INTERIM_TILES_ON_ERROR,t)},e}(M["a"]),Fe=ke,De=r("78db2"),Ge=r("ce2c"),Ne=r("6cbf"),ze=r("ddea"),Be=r("a2e1"),Ue=(r("5eee"),r("78db")),Ve=r("6cf3"),Xe=r("480c"),We=(r("a2c7"),r("089b"),{}),He={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 Ye(t){return t=Math.round(t),t<0?0:t>255?255:t}function qe(t){return t<0?0:t>1?1:t}function Ze(t){return"%"===t[t.length-1]?Ye(parseFloat(t)/100*255):Ye(parseInt(t))}function Ke(t){return"%"===t[t.length-1]?qe(parseFloat(t)/100):qe(parseFloat(t))}function Je(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 $e(t){var e=t.replace(/ /g,"").toLowerCase();if(e in He)return He[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=Ke(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=Ke(a.pop());case"hsl":if(3!==a.length)return null;var l=(parseFloat(a[0])%360+360)%360/360,u=Ke(a[1]),c=Ke(a[2]),h=c<=.5?c*(u+1):c+u-c*u,f=2*c-h;return[Ye(255*Je(f,h,l+1/3)),Ye(255*Je(f,h,l)),Ye(255*Je(f,h,l-1/3)),s];default:return null}}return null}try{me=We.parseCSSColor=$e}catch(al){}var Qe=function(t,e,r,n){void 0===n&&(n=1),this.r=t,this.g=e,this.b=r,this.a=n};function tr(t){return"object"===typeof t?["literal",t]:t}function er(t,e){var r=t.stops;if(!r)return rr(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],fr(t[1])]:[t[0],tr(t[1])]})),n?ir(t,e,r):o?lr(t,e,r):sr(t,e,r)}function rr(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,tr(t.default)];return"array"===e.type&&n.splice(1,0,e.value,e.length||null),n}function nr(t){switch(t.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function ir(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=hr({},e);if("exponential"===u){for(var c=[nr(t),["linear"],["zoom"]],h=0,f=o;h<f.length;h+=1){var p=f[h],d=sr(n[p],e,i[p]);cr(c,p,d,!1)}return c}for(var g=["step",["zoom"]],y=0,v=o;y<v.length;y+=1){var m=v[y],_=sr(n[m],e,i[m]);cr(g,m,_,!0)}return ur(g),g}function or(t,e){return void 0!==t?t:void 0!==e?e:void 0}function ar(t,e){var r=tr(or(t.default,e.default));return void 0===r&&"resolvedImage"===e.type?"":r}function sr(t,e,r){var n=hr(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(ar(t,e)),o}if("categorical"===n){for(var u=["match",i],c=0,h=r;c<h.length;c+=1){var f=h[c];cr(u,f[0],f[1],!1)}return u.push(ar(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];cr(p,y[0],y[1],!0)}return ur(p),void 0===t.default?p:["case",["==",["typeof",i],"number"],p,tr(t.default)]}if("exponential"===n){for(var v=void 0!==t.base?t.base:1,m=[nr(t),1===v?["linear"]:["exponential",v],["number",i]],_=0,b=r;_<b.length;_+=1){var x=b[_];cr(m,x[0],x[1],!1)}return void 0===t.default?m:["case",["==",["typeof",i],"number"],m,tr(t.default)]}throw new Error("Unknown property function type "+n)}function lr(t,e,r,n){void 0===n&&(n=["zoom"]);var i,o=hr(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=[nr(t),1===s?["linear"]:["exponential",s],n]}for(var l=0,u=r;l<u.length;l+=1){var c=u[l];cr(i,c[0],c[1],a)}return ur(i),i}function ur(t){"step"===t[0]&&3===t.length&&(t.push(0),t.push(t[3]))}function cr(t,e,r,n){t.length>3&&e===t[t.length-2]||(n&&2===t.length||t.push(e),t.push(r))}function hr(t,e){return t.type?t.type:e.expression.interpolated?"exponential":"interval"}function fr(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}Qe.parse=function(t){if(t){if(t instanceof Qe)return t;if("string"===typeof t){var e=me(t);if(e)return new Qe(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},Qe.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+")"},Qe.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]},Qe.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]},Qe.prototype.toArray01PremultipliedAlpha=function(){var t=this,e=t.r,r=t.g,n=t.b,i=t.a;return[e,r,n,i]},Qe.black=new Qe(0,0,0,1),Qe.white=new Qe(1,1,1,1),Qe.transparent=new Qe(0,0,0,0),Qe.red=new Qe(1,0,0,1),Qe.blue=new Qe(0,0,1,1);var pr=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),dr=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}};dr.prototype.concat=function(t){return new dr(this,t)},dr.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.")},dr.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};var gr={kind:"null"},yr={kind:"number"},vr={kind:"string"},mr={kind:"boolean"},_r={kind:"color"},br={kind:"object"},xr={kind:"value"},wr={kind:"error"},Or={kind:"collator"},Er={kind:"formatted"},Sr={kind:"resolvedImage"};function Cr(t,e){return{kind:"array",itemType:t,N:e}}function Tr(t){if("array"===t.kind){var e=Tr(t.itemType);return"number"===typeof t.N?"array<"+e+", "+t.N+">":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var Pr=[gr,yr,vr,mr,_r,Er,br,Cr(xr),Sr];function jr(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!jr(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=Pr;r<n.length;r+=1){var i=n[r];if(!jr(i,e))return null}}return"Expected "+Tr(t)+" but found "+Tr(e)+" instead."}function Mr(t,e){return e.some((function(e){return e.kind===t.kind}))}function Rr(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 Ar=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"})};Ar.prototype.compare=function(t,e){return this.collator.compare(t,e)},Ar.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Lr=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},Ir=function(t){this.sections=t};Ir.fromString=function(t){return new Ir([new Lr(t,null,null,null,null)])},Ir.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}))},Ir.factory=function(t){return t instanceof Ir?t:Ir.fromString(t)},Ir.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(t){return t.text})).join("")},Ir.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 Fr(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 Dr(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 Qe)return!0;if(t instanceof Ar)return!0;if(t instanceof Ir)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(!Dr(n))return!1}return!0}if("object"===typeof t){for(var i in t)if(!Dr(t[i]))return!1;return!0}return!1}function Gr(t){if(null===t)return gr;if("string"===typeof t)return vr;if("boolean"===typeof t)return mr;if("number"===typeof t)return yr;if(t instanceof Qe)return _r;if(t instanceof Ar)return Or;if(t instanceof Ir)return Er;if(t instanceof kr)return Sr;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n<i.length;n+=1){var o=i[n],a=Gr(o);if(e){if(e===a)continue;e=xr;break}e=a}return Cr(e||xr,r)}return br}function Nr(t){var e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof Qe||t instanceof Ir||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 zr=function(t,e){this.type=t,this.value=e};zr.parse=function(t,e){if(2!==t.length)return e.error("'literal' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(!Dr(t[1]))return e.error("invalid value");var r=t[1],n=Gr(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 zr(n,r)},zr.prototype.evaluate=function(){return this.value},zr.prototype.eachChild=function(){},zr.prototype.outputDefined=function(){return!0},zr.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Qe?["rgba"].concat(this.value.toArray()):this.value instanceof Ir?this.value.serialize():this.value};var Br=function(t){this.name="ExpressionEvaluationError",this.message=t};Br.prototype.toJSON=function(){return this.message};var Ur={string:vr,number:yr,boolean:mr,object:br},Vr=function(t,e){this.type=t,this.args=e};Vr.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 Ur)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=Ur[s],n++}else o=xr;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=Ur[i];for(var l=[];n<t.length;n++){var u=e.parse(t[n],n,xr);if(!u)return null;l.push(u)}return new Vr(r,l)},Vr.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var r=this.args[e].evaluate(t),n=jr(this.type,Gr(r));if(!n)return r;if(e===this.args.length-1)throw new Br("Expected value to be of type "+Tr(this.type)+", but found "+Tr(Gr(r))+" instead.")}return null},Vr.prototype.eachChild=function(t){this.args.forEach(t)},Vr.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},Vr.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 Xr=function(t){this.type=Er,this.sections=t};Xr.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,yr),!s))return null;var l=null;if(a["text-font"]&&(l=e.parse(a["text-font"],1,Cr(vr)),!l))return null;var u=null;if(a["text-color"]&&(u=e.parse(a["text-color"],1,_r),!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,xr);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 Xr(n)},Xr.prototype.evaluate=function(t){var e=function(e){var r=e.content.evaluate(t);return Gr(r)===Sr?new Lr("",r,null,null,null):new Lr(Nr(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 Ir(this.sections.map(e))},Xr.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)}},Xr.prototype.outputDefined=function(){return!1},Xr.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 Wr=function(t){this.type=Sr,this.input=t};Wr.parse=function(t,e){if(2!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,vr);return r?new Wr(r):e.error("No image name provided.")},Wr.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},Wr.prototype.eachChild=function(t){t(this.input)},Wr.prototype.outputDefined=function(){return!1},Wr.prototype.serialize=function(){return["image",this.input.serialize()]};var Hr={"to-boolean":mr,"to-color":_r,"to-number":yr,"to-string":vr},Yr=function(t,e){this.type=t,this.args=e};Yr.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=Hr[r],i=[],o=1;o<t.length;o++){var a=e.parse(t[o],o,xr);if(!a)return null;i.push(a)}return new Yr(n,i)},Yr.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 Qe)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.":Fr(e[0],e[1],e[2],e[3]),!r))return new Qe(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?Ir.fromString(Nr(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?kr.fromString(Nr(this.args[0].evaluate(t))):Nr(this.args[0].evaluate(t))},Yr.prototype.eachChild=function(t){this.args.forEach(t)},Yr.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},Yr.prototype.serialize=function(){if("formatted"===this.type.kind)return new Xr([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Wr(this.args[0]).serialize();var t=["to-"+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var qr=["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?qr[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]=Qe.parse(t)),e};var Kr=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};function Jr(t){return Array.isArray(t)?"("+t.map(Tr).join(", ")+")":"("+Tr(t.type)+"...)"}Kr.prototype.evaluate=function(t){return this._evaluate(t,this.args)},Kr.prototype.eachChild=function(t){this.args.forEach(t)},Kr.prototype.outputDefined=function(){return!1},Kr.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},Kr.parse=function(t,e){var r,n=t[0],i=Kr.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 jn(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 Kr(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 Jr(e)})).join(" | "),S=[],C=1;C<t.length;C++){var T=e.parse(t[C],1+S.length);if(!T)return null;S.push(Tr(T.type))}e.error("Expected arguments of type "+E+", but found ("+S.join(", ")+") instead.")}return null},Kr.register=function(t,e){for(var r in Kr.definitions=e,e)t[r]=Kr};var $r=function(t,e,r){this.type=Or,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};$r.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,mr);if(!n)return null;var i=e.parse(void 0!==r["diacritic-sensitive"]&&r["diacritic-sensitive"],1,mr);if(!i)return null;var o=null;return r["locale"]&&(o=e.parse(r["locale"],1,vr),!o)?null:new $r(n,i,o)},$r.prototype.evaluate=function(t){return new Ar(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},$r.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},$r.prototype.outputDefined=function(){return!1},$r.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 Qr=8192;function tn(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 en(t){return(180+t)/360}function rn(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function nn(t,e){return!(t[0]<=e[0])&&(!(t[2]>=e[2])&&(!(t[1]<=e[1])&&!(t[3]>=e[3])))}function on(t,e){var r=en(t[0]),n=rn(t[1]),i=Math.pow(2,e.z);return[Math.round(r*i*Qr),Math.round(n*i*Qr)]}function an(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 sn(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 ln(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(an(t,o[a],o[a+1]))return!1;sn(t,o[a],o[a+1])&&(r=!r)}return r}function un(t,e){for(var r=0;r<e.length;r++)if(ln(t,e[r]))return!0;return!1}function cn(t,e){return t[0]*e[1]-t[1]*e[0]}function hn(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 fn(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!==cn(o,i)&&!(!hn(t,e,r,n)||!hn(r,n,t,e))}function pn(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(fn(t,e,o[a],o[a+1]))return!0;return!1}function dn(t,e){for(var r=0;r<t.length;++r)if(!ln(t[r],e))return!1;for(var n=0;n<t.length-1;++n)if(pn(t[n],t[n+1],e))return!1;return!0}function gn(t,e){for(var r=0;r<e.length;r++)if(dn(t,e[r]))return!0;return!1}function yn(t,e,r){for(var n=[],i=0;i<t.length;i++){for(var o=[],a=0;a<t[i].length;a++){var s=on(t[i][a],r);tn(e,s),o.push(s)}n.push(o)}return n}function vn(t,e,r){for(var n=[],i=0;i<t.length;i++){var o=yn(t[i],e,r);n.push(o)}return n}function mn(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}tn(e,t)}function _n(t){t[0]=t[1]=1/0,t[2]=t[3]=-1/0}function bn(t,e,r,n){var i=Math.pow(2,n.z)*Qr,o=[n.x*Qr,n.y*Qr],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]];mn(p,e,r,i),a.push(p)}return a}function xn(t,e,r,n){var i=Math.pow(2,n.z)*Qr,o=[n.x*Qr,n.y*Qr],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]];tn(e,d),c.push(d)}a.push(c)}if(e[2]-e[0]<=i/2){_n(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];mn(b,e,r,i)}}return a}function wn(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=yn(e.coordinates,n,i),a=bn(t.geometry(),r,n,i);if(!nn(r,n))return!1;for(var s=0,l=a;s<l.length;s+=1){var u=l[s];if(!ln(u,o))return!1}}if("MultiPolygon"===e.type){var c=vn(e.coordinates,n,i),h=bn(t.geometry(),r,n,i);if(!nn(r,n))return!1;for(var f=0,p=h;f<p.length;f+=1){var d=p[f];if(!un(d,c))return!1}}return!0}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=yn(e.coordinates,n,i),a=xn(t.geometry(),r,n,i);if(!nn(r,n))return!1;for(var s=0,l=a;s<l.length;s+=1){var u=l[s];if(!dn(u,o))return!1}}if("MultiPolygon"===e.type){var c=vn(e.coordinates,n,i),h=xn(t.geometry(),r,n,i);if(!nn(r,n))return!1;for(var f=0,p=h;f<p.length;f+=1){var d=p[f];if(!gn(d,c))return!1}}return!0}var En=function(t,e){this.type=mr,this.geojson=t,this.geometries=e};function Sn(t){if(t instanceof Kr){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 En)return!1;var e=!0;return t.eachChild((function(t){e&&!Sn(t)&&(e=!1)})),e}function Cn(t){if(t instanceof Kr&&"feature-state"===t.name)return!1;var e=!0;return t.eachChild((function(t){e&&!Cn(t)&&(e=!1)})),e}function Tn(t,e){if(t instanceof Kr&&e.indexOf(t.name)>=0)return!1;var r=!0;return t.eachChild((function(t){r&&!Tn(t,e)&&(r=!1)})),r}En.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(Dr(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 En(r,r.features[n].geometry)}else if("Feature"===r.type){var o=r.geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new En(r,r.geometry)}else if("Polygon"===r.type||"MultiPolygon"===r.type)return new En(r,r)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")},En.prototype.evaluate=function(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return wn(t,this.geometries);if("LineString"===t.geometryType())return On(t,this.geometries)}return!1},En.prototype.eachChild=function(){},En.prototype.outputDefined=function(){return!0},En.prototype.serialize=function(){return["within",this.geojson]};var Pn=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};Pn.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 Pn(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)},Pn.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},Pn.prototype.eachChild=function(){},Pn.prototype.outputDefined=function(){return!1},Pn.prototype.serialize=function(){return["var",this.name]};var jn=function(t,e,r,n,i){void 0===e&&(e=[]),void 0===n&&(n=new dr),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 Pn)return Mn(t.boundExpression);if(t instanceof Kr&&"error"===t.name)return!1;if(t instanceof $r)return!1;if(t instanceof En)return!1;var e=t instanceof Yr||t instanceof Vr,r=!0;return t.eachChild((function(t){r=e?r&&Mn(t):r&&t instanceof zr})),!!r&&(Sn(t)&&Tn(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"]))}function Rn(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}jn.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)},jn.prototype._parse=function(t,e){function r(t,e,r){return"assert"===r?new Vr(e,[t]):"coerce"===r?new Yr(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 zr)&&"resolvedImage"!==o.type.kind&&Mn(o)){var l=new Zr;try{o=new zr(o.type,o.evaluate(l))}catch(al){return this.error(al.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.")},jn.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 jn(this.registry,n,e||null,i,this.errors)},jn.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 pr(n,t))},jn.prototype.checkSubtype=function(t,e){var r=jr(t,e);return r&&this.error(r),r};var An=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)}};An.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,yr);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 An(i,r,n)},An.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=Rn(e,n);return r[o].evaluate(t)},An.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)}},An.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},An.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 Ln=In;function In(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 Fn(t,e,r){return new Qe(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 Dn(t,e,r){return t.map((function(t,n){return kn(t,e[n],r)}))}In.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},In.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},In.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},In.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},In.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var Gn=Object.freeze({__proto__:null,number:kn,color:Fn,array:Dn}),Nn=.95047,zn=1,Bn=1.08883,Un=4/29,Vn=6/29,Xn=3*Vn*Vn,Wn=Vn*Vn*Vn,Hn=Math.PI/180,Yn=180/Math.PI;function qn(t){return t>Wn?Math.pow(t,1/3):t/Xn+Un}function Zn(t){return t>Vn?t*t*t:Xn*(t-Un)}function Kn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Jn(t){return t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function $n(t){var e=Jn(t.r),r=Jn(t.g),n=Jn(t.b),i=qn((.4124564*e+.3575761*r+.1804375*n)/Nn),o=qn((.2126729*e+.7151522*r+.072175*n)/zn),a=qn((.0193339*e+.119192*r+.9503041*n)/Bn);return{l:116*o-16,a:500*(i-o),b:200*(o-a),alpha:t.a}}function Qn(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=zn*Zn(e),r=Nn*Zn(r),n=Bn*Zn(n),new Qe(Kn(3.2404542*r-1.5371385*e-.4985314*n),Kn(-.969266*r+1.8760108*e+.041556*n),Kn(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function ti(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 ei(t){var e=$n(t),r=e.l,n=e.a,i=e.b,o=Math.atan2(i,n)*Yn;return{h:o<0?o+360:o,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}}function ri(t){var e=t.h*Hn,r=t.c,n=t.l;return Qn({l:n,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})}function ni(t,e,r){var n=e-t;return t+r*(n>180||n<-180?n-360*Math.round(n/360):n)}function ii(t,e,r){return{h:ni(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 oi={forward:$n,reverse:Qn,interpolate:ti},ai={forward:ei,reverse:ri,interpolate:ii},si=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 li(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)}si.interpolationFactor=function(t,e,r,n){var i=0;if("exponential"===t.name)i=li(e,t.base,r,n);else if("linear"===t.name)i=li(e,1,r,n);else if("cubic-bezier"===t.name){var o=t.controlPoints,a=new Ln(o[0],o[1],o[2],o[3]);i=a.solve(li(e,1,r,n))}return i},si.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,yr),!i)return null;var l=[],u=null;"interpolate-hcl"===r||"interpolate-lab"===r?u=_r: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 si(u,r,n,i,l):e.error("Type "+Tr(u)+" is not interpolatable.")},si.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=Rn(e,n),a=e[o],s=e[o+1],l=si.interpolationFactor(this.interpolation,n,a,s),u=r[o].evaluate(t),c=r[o+1].evaluate(t);return"interpolate"===this.operator?Gn[this.type.kind.toLowerCase()](u,c,l):"interpolate-hcl"===this.operator?ai.reverse(ai.interpolate(ai.forward(u),ai.forward(c),l)):oi.reverse(oi.interpolate(oi.forward(u),oi.forward(c),l))},si.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)}},si.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},si.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 ui=function(t,e){this.type=t,this.args=e};ui.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 jr(n,t.type)}));return new ui(u?xr:r,i)},ui.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},ui.prototype.eachChild=function(t){this.args.forEach(t)},ui.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ui.prototype.serialize=function(){var t=["coalesce"];return this.eachChild((function(e){t.push(e.serialize())})),t};var ci=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};ci.prototype.evaluate=function(t){return this.result.evaluate(t)},ci.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)},ci.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 ci(r,a):null},ci.prototype.outputDefined=function(){return this.result.outputDefined()},ci.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 hi=function(t,e,r){this.type=t,this.index=e,this.input=r};hi.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,yr),n=e.parse(t[2],2,Cr(e.expectedType||xr));if(!r||!n)return null;var i=n.type;return new hi(i.itemType,r,n)},hi.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]},hi.prototype.eachChild=function(t){t(this.index),t(this.input)},hi.prototype.outputDefined=function(){return!1},hi.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var fi=function(t,e){this.type=mr,this.needle=t,this.haystack=e};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,xr),n=e.parse(t[2],2,xr);return r&&n?Mr(r.type,[mr,vr,yr,gr,xr])?new fi(r,n):e.error("Expected first argument to be of type boolean, string, number or null, but found "+Tr(r.type)+" instead"):null},fi.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(null==r)return!1;if(!Rr(e,["boolean","string","number","null"]))throw new Br("Expected first argument to be of type boolean, string, number or null, but found "+Tr(Gr(e))+" instead.");if(!Rr(r,["string","array"]))throw new Br("Expected second argument to be of type array or string, but found "+Tr(Gr(r))+" instead.");return r.indexOf(e)>=0},fi.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},fi.prototype.outputDefined=function(){return!0},fi.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var pi=function(t,e,r){this.type=yr,this.needle=t,this.haystack=e,this.fromIndex=r};pi.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,xr),n=e.parse(t[2],2,xr);if(!r||!n)return null;if(!Mr(r.type,[mr,vr,yr,gr,xr]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+Tr(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,yr);return i?new pi(r,n,i):null}return new pi(r,n)},pi.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Rr(e,["boolean","string","number","null"]))throw new Br("Expected first argument to be of type boolean, string, number or null, but found "+Tr(Gr(e))+" instead.");if(!Rr(r,["string","array"]))throw new Br("Expected second argument to be of type array or string, but found "+Tr(Gr(r))+" instead.");if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},pi.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},pi.prototype.outputDefined=function(){return!1},pi.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 di=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};di.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,Gr(f)))return null}else r=Gr(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,xr);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 di(r,n,d,i,o,g):null},di.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=Gr(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise;return r.evaluate(t)},di.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},di.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},di.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 gi=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};gi.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,mr);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 gi(r,n,s):null},gi.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)},gi.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)},gi.prototype.outputDefined=function(){return this.branches.every((function(t){t[0];var e=t[1];return e.outputDefined()}))&&this.otherwise.outputDefined()},gi.prototype.serialize=function(){var t=["case"];return this.eachChild((function(e){t.push(e.serialize())})),t};var yi=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};function vi(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 mi(t,e,r){return e===r}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,n){return 0===n.compare(e,r)}function Si(t,e,r,n){return!Ei(t,e,r,n)}function Ci(t,e,r,n){return n.compare(e,r)<0}function Ti(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 Mi(t,e,r){var n="=="!==t&&"!="!==t;return function(){function i(t,e,r){this.type=mr,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,xr);if(!o)return null;if(!vi(r,o.type))return e.concat(1).error('"'+r+"\" comparisons are not supported for type '"+Tr(o.type)+"'.");var a=e.parse(t[2],2,xr);if(!a)return null;if(!vi(r,a.type))return e.concat(2).error('"'+r+"\" comparisons are not supported for type '"+Tr(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot compare types '"+Tr(o.type)+"' and '"+Tr(a.type)+"'.");n&&("value"===o.type.kind&&"value"!==a.type.kind?o=new Vr(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new Vr(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,Or),!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=Gr(o),l=Gr(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=Gr(o),c=Gr(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}()}yi.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,xr),n=e.parse(t[2],2,yr);if(!r||!n)return null;if(!Mr(r.type,[Cr(xr),vr,xr]))return e.error("Expected first argument to be of type array or string, but found "+Tr(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,yr);return i?new yi(r.type,r,n,i):null}return new yi(r.type,r,n)},yi.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Rr(e,["string","array"]))throw new Br("Expected first argument to be of type array or string, but found "+Tr(Gr(e))+" instead.");if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},yi.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},yi.prototype.outputDefined=function(){return!1},yi.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 Ri=Mi("==",mi,Ei),Ai=Mi("!=",_i,Si),Li=Mi("<",bi,Ci),Ii=Mi(">",xi,Ti),ki=Mi("<=",wi,Pi),Fi=Mi(">=",Oi,ji),Di=function(t,e,r,n,i){this.type=vr,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};Di.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,yr);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,vr),!i))return null;var o=null;if(n["currency"]&&(o=e.parse(n["currency"],1,vr),!o))return null;var a=null;if(n["min-fraction-digits"]&&(a=e.parse(n["min-fraction-digits"],1,yr),!a))return null;var s=null;return n["max-fraction-digits"]&&(s=e.parse(n["max-fraction-digits"],1,yr),!s)?null:new Di(r,i,o,a,s)},Di.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))},Di.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)},Di.prototype.outputDefined=function(){return!1},Di.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 Gi=function(t){this.type=yr,this.input=t};Gi.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 "+Tr(r.type)+" instead."):new Gi(r):null},Gi.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 "+Tr(Gr(e))+" instead.")},Gi.prototype.eachChild=function(t){t(this.input)},Gi.prototype.outputDefined=function(){return!1},Gi.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var Ni={"==":Ri,"!=":Ai,">":Ii,"<":Li,">=":Fi,"<=":ki,array:Vr,at:hi,boolean:Vr,case:gi,coalesce:ui,collator:$r,format:Xr,image:Wr,in:fi,"index-of":pi,interpolate:si,"interpolate-hcl":si,"interpolate-lab":si,length:Gi,let:ci,literal:zr,match:di,number:Vr,"number-format":Di,object:Vr,slice:yi,step:An,string:Vr,"to-boolean":Yr,"to-color":Yr,"to-number":Yr,"to-string":Yr,var:Pn,within:En};function zi(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=Fr(r,n,i,a);if(s)throw new Br(s);return new Qe(r/255*a,n/255*a,i/255*a,a)}function Bi(t,e){return t in e}function Ui(t,e){var r=e[t];return"undefined"===typeof r?null:r}function Vi(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 Xi(t){return{type:t}}function Wi(t){return{result:"success",value:t}}function Hi(t){return{result:"error",value:t}}function Yi(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function qi(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Zi(t){return!!t.expression&&t.expression.interpolated}function Ki(t){return"object"===typeof t&&null!==t&&!Array.isArray(t)}Kr.register(Ni,{error:[wr,[vr],function(t,e){var r=e[0];throw new Br(r.evaluate(t))}],typeof:[vr,[xr],function(t,e){var r=e[0];return Tr(Gr(r.evaluate(t)))}],"to-rgba":[Cr(yr,4),[_r],function(t,e){var r=e[0];return r.evaluate(t).toArray()}],rgb:[_r,[yr,yr,yr],zi],rgba:[_r,[yr,yr,yr,yr],zi],has:{type:mr,overloads:[[[vr],function(t,e){var r=e[0];return Bi(r.evaluate(t),t.properties())}],[[vr,br],function(t,e){var r=e[0],n=e[1];return Bi(r.evaluate(t),n.evaluate(t))}]]},get:{type:xr,overloads:[[[vr],function(t,e){var r=e[0];return Ui(r.evaluate(t),t.properties())}],[[vr,br],function(t,e){var r=e[0],n=e[1];return Ui(r.evaluate(t),n.evaluate(t))}]]},"feature-state":[xr,[vr],function(t,e){var r=e[0];return Ui(r.evaluate(t),t.featureState||{})}],properties:[br,[],function(t){return t.properties()}],"geometry-type":[vr,[],function(t){return t.geometryType()}],id:[xr,[],function(t){return t.id()}],zoom:[yr,[],function(t){return t.globals.zoom}],pitch:[yr,[],function(t){return t.globals.pitch||0}],"distance-from-center":[yr,[],function(t){return t.distanceFromCenter()}],"heatmap-density":[yr,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[yr,[],function(t){return t.globals.lineProgress||0}],"sky-radial-progress":[yr,[],function(t){return t.globals.skyRadialProgress||0}],accumulated:[xr,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[yr,Xi(yr),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}],"*":[yr,Xi(yr),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:yr,overloads:[[[yr,yr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)-n.evaluate(t)}],[[yr],function(t,e){var r=e[0];return-r.evaluate(t)}]]},"/":[yr,[yr,yr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)/n.evaluate(t)}],"%":[yr,[yr,yr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)%n.evaluate(t)}],ln2:[yr,[],function(){return Math.LN2}],pi:[yr,[],function(){return Math.PI}],e:[yr,[],function(){return Math.E}],"^":[yr,[yr,yr],function(t,e){var r=e[0],n=e[1];return Math.pow(r.evaluate(t),n.evaluate(t))}],sqrt:[yr,[yr],function(t,e){var r=e[0];return Math.sqrt(r.evaluate(t))}],log10:[yr,[yr],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN10}],ln:[yr,[yr],function(t,e){var r=e[0];return Math.log(r.evaluate(t))}],log2:[yr,[yr],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN2}],sin:[yr,[yr],function(t,e){var r=e[0];return Math.sin(r.evaluate(t))}],cos:[yr,[yr],function(t,e){var r=e[0];return Math.cos(r.evaluate(t))}],tan:[yr,[yr],function(t,e){var r=e[0];return Math.tan(r.evaluate(t))}],asin:[yr,[yr],function(t,e){var r=e[0];return Math.asin(r.evaluate(t))}],acos:[yr,[yr],function(t,e){var r=e[0];return Math.acos(r.evaluate(t))}],atan:[yr,[yr],function(t,e){var r=e[0];return Math.atan(r.evaluate(t))}],min:[yr,Xi(yr),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[yr,Xi(yr),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[yr,[yr],function(t,e){var r=e[0];return Math.abs(r.evaluate(t))}],round:[yr,[yr],function(t,e){var r=e[0],n=r.evaluate(t);return n<0?-Math.round(-n):Math.round(n)}],floor:[yr,[yr],function(t,e){var r=e[0];return Math.floor(r.evaluate(t))}],ceil:[yr,[yr],function(t,e){var r=e[0];return Math.ceil(r.evaluate(t))}],"filter-==":[mr,[vr,xr],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],"filter-id-==":[mr,[xr],function(t,e){var r=e[0];return t.id()===r.value}],"filter-type-==":[mr,[vr],function(t,e){var r=e[0];return t.geometryType()===r.value}],"filter-<":[mr,[vr,xr],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-<":[mr,[xr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n<i}],"filter->":[mr,[vr,xr],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->":[mr,[xr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n>i}],"filter-<=":[mr,[vr,xr],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-<=":[mr,[xr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n<=i}],"filter->=":[mr,[vr,xr],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->=":[mr,[xr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n>=i}],"filter-has":[mr,[xr],function(t,e){var r=e[0];return r.value in t.properties()}],"filter-has-id":[mr,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[mr,[Cr(vr)],function(t,e){var r=e[0];return r.value.indexOf(t.geometryType())>=0}],"filter-id-in":[mr,[Cr(xr)],function(t,e){var r=e[0];return r.value.indexOf(t.id())>=0}],"filter-in-small":[mr,[vr,Cr(xr)],function(t,e){var r=e[0],n=e[1];return n.value.indexOf(t.properties()[r.value])>=0}],"filter-in-large":[mr,[vr,Cr(xr)],function(t,e){var r=e[0],n=e[1];return Vi(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:mr,overloads:[[[mr,mr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)&&n.evaluate(t)}],[Xi(mr),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:mr,overloads:[[[mr,mr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)||n.evaluate(t)}],[Xi(mr),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}]]},"!":[mr,[mr],function(t,e){var r=e[0];return!r.evaluate(t)}],"is-supported-script":[mr,[vr],function(t,e){var r=e[0],n=t.globals&&t.globals.isSupportedScript;return!n||n(r.evaluate(t))}],upcase:[vr,[vr],function(t,e){var r=e[0];return r.evaluate(t).toUpperCase()}],downcase:[vr,[vr],function(t,e){var r=e[0];return r.evaluate(t).toLowerCase()}],concat:[vr,Xi(xr),function(t,e){return e.map((function(e){return Nr(e.evaluate(t))})).join("")}],"resolved-locale":[vr,[Or],function(t,e){var r=e[0];return r.evaluate(t).resolvedLocale()}]});var Ji=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new Zr,this._defaultValue=e?oo(e):null,this._enumValues=e&&"enum"===e.type?e.values:null};function $i(t){return Array.isArray(t)&&t.length>0&&"string"===typeof t[0]&&t[0]in Ni}function Qi(t,e){var r=new jn(Ni,[],e?io(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return n?Wi(new Ji(n,e)):Hi(r.errors)}Ji.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)},Ji.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(al){return this._warningHistory[al.message]||(this._warningHistory[al.message]=!0,"undefined"!==typeof console&&console.warn(al.message)),this._defaultValue}};var to=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Cn(e.expression)};to.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,o)},to.prototype.evaluate=function(t,e,r,n,i,o){return this._styleExpression.evaluate(t,e,r,n,i,o)};var eo=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 ro(t,e){if(t=Qi(t,e),"error"===t.result)return t;var r=t.value.expression,n=Sn(r);if(!n&&!Yi(e))return Hi([new pr("","data expressions not supported")]);var i=Tn(r,["zoom","pitch","distance-from-center"]);if(!i&&!qi(e))return Hi([new pr("","zoom expressions not supported")]);var o=no(r);if(!o&&!i)return Hi([new pr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof pr)return Hi([o]);if(o instanceof si&&!Zi(e))return Hi([new pr("",'"interpolate" expressions cannot be used with this property')]);if(!o)return Wi(new to(n?"constant":"source",t.value));var a=o instanceof si?o.interpolation:void 0;return Wi(new eo(n?"camera":"composite",t.value,o.labels,a))}function no(t){var e=null;if(t instanceof ci)e=no(t.result);else if(t instanceof ui)for(var r=0,n=t.args;r<n.length;r+=1){var i=n[r];if(e=no(i),e)break}else(t instanceof An||t instanceof si)&&t.input instanceof Kr&&"zoom"===t.input.name&&(e=t);return e instanceof pr||t.eachChild((function(t){var r=no(t);r instanceof pr?e=r:!e&&r?e=new pr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&r&&e!==r&&(e=new pr("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),e}function io(t){var e={color:_r,string:vr,number:yr,enum:vr,boolean:mr,formatted:Er,resolvedImage:Sr};return"array"===t.type?Cr(e[t.value]||xr,t.length):e[t.type]}function oo(t){return"color"===t.type&&(Ki(t.default)||Array.isArray(t.default))?new Qe(0,0,0,0):"color"===t.type?Qe.parse(t.default)||null:void 0===t.default?null:t.default}function ao(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function so(t){if(Array.isArray(t))return t.map(so);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=so(t[r]);return e}return ao(t)}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)},eo.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?si.interpolationFactor(this.interpolationType,t,e,r):0};var lo={$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 uo(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(!uo(n)&&"boolean"!==typeof n)return!1}return!0;default:return!0}}function co(t,e){if(void 0===e&&(e="fill"),null===t||void 0===t)return{filter:function(){return!0},needGeometry:!1,needFeature:!1};uo(t)||(t=xo(t));var r=t,n=!0;try{n=ho(r)}catch(al){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=lo["filter_"+e],o=Qi(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=Qi(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=!Sn(u.value.expression)}a=a;var c=bo(n);return{filter:a,dynamicFilter:s||void 0,needGeometry:c,needFeature:!!l}}function ho(t){if(!go(t))return t;var e=so(t);return po(e),e=fo(e),e}function fo(t){if(!Array.isArray(t))return t;var e=mo(t);return!0===e?e:e.map((function(t){return fo(t)}))}function po(t){var e=!1,r=[];if("case"===t[0]){for(var n=1;n<t.length-1;n+=2)e=e||go(t[n]),r.push(t[n+1]);r.push(t[t.length-1])}else if("match"===t[0]){e=e||go(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||go(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++)po(t[a])}function go(t){if(!Array.isArray(t))return!1;if(yo(t[0]))return!0;for(var e=1;e<t.length;e++){var r=t[e];if(go(r))return!0}return!1}function yo(t){return"pitch"===t||"distance-from-center"===t}var vo=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function mo(t){if(vo.has(t[0]))for(var e=1;e<t.length;e++){var r=t[e];if(go(r))return!0}return t}function _o(t,e){return t<e?-1:t>e?1:0}function bo(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(var e=1;e<t.length;e++)if(bo(t[e]))return!0;return!1}function xo(t){if(!t)return!0;var e=t[0];if(t.length<=1)return"any"!==e;var r="=="===e?wo(t[1],t[2],"=="):"!="===e?Co(wo(t[1],t[2],"==")):"<"===e||">"===e||"<="===e||">="===e?wo(t[1],t[2],e):"any"===e?Oo(t.slice(1)):"all"===e?["all"].concat(t.slice(1).map(xo)):"none"===e?["all"].concat(t.slice(1).map(xo).map(Co)):"in"===e?Eo(t[1],t.slice(2)):"!in"===e?Co(Eo(t[1],t.slice(2))):"has"===e?So(t[1]):"!has"===e?Co(So(t[1])):"within"!==e||t;return r}function wo(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 Oo(t){return["any"].concat(t.map(xo))}function Eo(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(_o)]]:["filter-in-small",t,["literal",e]]}}function So(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Co(t){return["!",t]}var To=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Po(t,e){var r={};for(var n in t)"ref"!==n&&(r[n]=t[n]);return To.forEach((function(t){t in e&&(r[t]=e[t])})),r}function jo(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]=Po(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},Ro=" ",Ao=/(italic|oblique)$/i,Lo={},Io=function(t,e,r){var n=Lo[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()):Ao.test(p)&&(p=p.replace(Ao,""),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(Ro).replace("Klokantech Noto Sans","Noto Sans");-1!==y.indexOf(Ro)&&(y='"'+y+'"'),l.push(y)}n=Lo[t]=[s,a,l]}return n[0]+Ro+n[1]+Ro+e+"px"+(r?"/"+r:"")+Ro+n[2]},ko="https://api.mapbox.com";function Fo(t){var e="mapbox://";return 0!==t.indexOf(e)?"":t.slice(e.length)}function Do(t,e,r){var n=Fo(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 Go(t,e){var r=Fo(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 No(t,e,r,n){var i=new URL(t,n),o=Fo(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 zo(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 Uo(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 Vo(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 Xo={};function Wo(t,e,r){if(void 0===r&&(r={}),e in Xo)return Xo[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 Xo[e],t.ok?t.json():Promise.reject(new Error("Error fetching source "+e))})).catch((function(t){return delete Xo[e],Promise.reject(new Error("Error fetching source "+e))}));return Xo[e]=i,i}function Ho(t,e){if("string"!==typeof t)return Promise.resolve(t);if(!t.trim().startsWith("{"))return t=Go(t,e.accessToken),Wo("Style",t,e);try{var r=JSON.parse(t);return Promise.resolve(r)}catch(n){return Promise.reject(n)}}var Yo={};function qo(t,e,r){void 0===r&&(r={});var n=[e,JSON.stringify(t)].toString(),i=Yo[n];if(!i||r.transformRequest){var o=t.url;if(o&&!t.tiles){var a=No(o,r.accessToken,r.accessTokenParam||"access_token",e||location.href);i=o.startsWith("mapbox://")?Promise.resolve(Object.assign({},t,{url:void 0,tiles:a})):Wo("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=No(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 No(t,r.accessToken,r.accessTokenParam||"access_token",e||location.href)}))}),i=Promise.resolve(Object.assign({},t));Yo[n]=i}return i}var Zo,Ko=Array(256).join(" ");function Jo(t,e){if(e>=.05){for(var r="",n=t.split("\n"),i=Ko.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 $o(){return Zo||(Zo=Uo(1,1).getContext("2d")),Zo}function Qo(t,e){return $o().measureText(t).width+(t.length-1)*e}var ta={};function ea(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(ea(i[a],e,r,n));return o.join("\n")}var l=r+","+e+","+t+","+n,u=ta[l];if(!u){var c=t.split(" ");if(c.length>1){var h=$o();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;Qo(_,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(Qo(w,n)<.35*p){var O=b>0?Qo(g[b-1],n):1/0,E=b<x-1?Qo(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,C=g.length-1;S<C;++S){var T=g[S],P=g[S+1];if(Qo(T,n)>.7*p&&Qo(P,n)<.6*p){var j=T.split(" "),M=j.pop();Qo(M,n)<.2*p&&(g[S]=j.join(" "),g[S+1]=M+" "+P),C-=1}}u=g.join("\n")}else u=t;u=Jo(u,n),ta[l]=u}return u}var ra,na=/font-family: ?([^;]*);/,ia=/("|')/g;function oa(t){if(!ra){ra={};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(na);ra[u[1].replace(ia,"")]=!0}}}catch(al){}}}return t in ra}var aa={};function sa(t){var e=t.toString();if(e in aa)return aa[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=Io(o,1);Object(ze["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(!oa(h)&&100!==ze["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 aa[e]=t,t}var la,ua,ca={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},ha={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]},fa=function(t,e){var r=ro(t,e);if("error"===r.result)throw new Error(r.value.map((function(t){return t.key+": "+t.message})).join(", "));return r.value},pa={},da={zoom:0};function ga(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]||pa)[r],c=lo[e+"_"+t.type][r];void 0===u&&(u=c.default);var h=$i(u);if(!h&&Ki(u)&&(u=er(u,c),h=!0),h){var f=fa(u,c);l[r]=f.evaluate.bind(f)}else"color"==c.type&&(u=Qe.parse(u)),l[r]=function(){return u}}return da.zoom=n,l[r](da,i,a)}function ya(t,e,r,n){var i=ga(t,"layout","icon-allow-overlap",e,r,n);if(!i)return"declutter";var o=ga(t,"layout","icon-ignore-placement",e,r,n);return o?"none":"obstacle"}function va(t,e,r,n,i){return i||console.warn("No filterCache provided to evaluateFilter()"),t in i||(i[t]=co(e).filter),da.zoom=n,i[t](da,r)}var ma=!1;function _a(t,e){if(t){if(!ma&&(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 ba=/\{[^{}}]*\}/g;function xa(t,e){return t.replace(ba,(function(t){return e[t.slice(1,-1)]||""}))}var wa=!1;function Oa(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=jo(e.layers),v={},m=[],_={},b={},x={},w={},O=0,E=y.length;O<E;++O){var S=y[O],C=S.id;if("string"==typeof r&&S.source==r||-1!==r.indexOf(C)){var T=S["source-layer"];if(g){if(S.source!==g)throw new Error('Layer "'+C+'" 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 M=v[T];M||(M=[],v[T]=M),M.push({layer:S,index:O}),m.push(C)}}var R=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=Vo(r,n));for(var g,y=ca[e.getGeometry().getType()],m={properties:o,type:y},O=t.get("mapbox-featurestate")[e.getId()],E=-1,S=0,C=p.length;S<C;++S){var T=p[S],P=T.layer,j=P.id,M=P.layout||pa,I=P.paint||pa;if(!("none"===M.visibility||"minzoom"in P&&d<P.minzoom||"maxzoom"in P&&d>=P.maxzoom)){var k=P.filter;if(!k||va(j,k,m,d,w)){g=P;var F=void 0,D=void 0,G=void 0,N=void 0,z=void 0,B=void 0,U=T.index;if(3==y&&("fill"==P.type||"fill-extrusion"==P.type))if(D=ga(P,"paint",P.type+"-opacity",d,m,x,O),P.type+"-pattern"in I){var V=ga(P,"paint",P.type+"-pattern",d,m,x,O);if(V){var X="string"===typeof V?xa(V,o):V.toString();if(l&&i&&i[X]){++E,B=L[E],B&&B.getFill()&&!B.getStroke()&&!B.getText()||(B=new h["default"]({fill:new a["default"]}),L[E]=B),G=B.getFill(),B.setZIndex(U);var W=X+"."+D,H=b[W];if(!H){var Y=i[X],q=Uo(Y.width,Y.height),Z=q.getContext("2d");Z.globalAlpha=D,Z.drawImage(l,Y.x,Y.y,Y.width,Y.height,0,0,Y.width,Y.height),H=Z.createPattern(q,"repeat"),b[W]=H}G.setColor(H)}}}else F=_a(ga(P,"paint",P.type+"-color",d,m,x,O),D),P.type+"-outline-color"in I&&(z=_a(ga(P,"paint",P.type+"-outline-color",d,m,x,O),D)),z||(z=F),(F||z)&&(++E,B=L[E],(!B||F&&!B.getFill()||!F&&B.getFill()||z&&!B.getStroke()||!z&&B.getStroke()||B.getText())&&(B=new h["default"]({fill:F?new a["default"]:void 0,stroke:z?new c["default"]:void 0}),L[E]=B),F&&(G=B.getFill(),G.setColor(F)),z&&(N=B.getStroke(),N.setColor(z),N.setWidth(.5)),B.setZIndex(U));if(1!=y&&"line"==P.type){F=!("line-pattern"in I)&&"line-color"in I?_a(ga(P,"paint","line-color",d,m,x,O),ga(P,"paint","line-opacity",d,m,x,O)):void 0;var K=ga(P,"paint","line-width",d,m,x,O);F&&K>0&&(++E,B=L[E],B&&B.getStroke()&&!B.getFill()&&!B.getText()||(B=new h["default"]({stroke:new c["default"]}),L[E]=B),N=B.getStroke(),N.setLineCap(ga(P,"layout","line-cap",d,m,x,O)),N.setLineJoin(ga(P,"layout","line-join",d,m,x,O)),N.setMiterLimit(ga(P,"layout","line-miter-limit",d,m,x,O)),N.setColor(F),N.setWidth(K),N.setLineDash(I["line-dasharray"]?ga(P,"paint","line-dasharray",d,m,x,O).map((function(t){return t*K})):null),B.setZIndex(U))}var J=!1,$=null,Q=0,tt=void 0,et=void 0,rt=void 0;if((1==y||2==y)&&"icon-image"in M){var nt=ga(P,"layout","icon-image",d,m,x,O);if(nt){tt="string"===typeof nt?xa(nt,o):nt.toString();var it=void 0;if(l&&i&&i[tt]){var ot=ga(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();ua||(la=[NaN,NaN],ua=new ue("Point",la,[],{},null)),it=ua,la[0]=ut[0],la[1]=ut[1];var ct=ga(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=ga(P,"layout","icon-size",d,m,x,O),Et=void 0!==I["icon-color"]?ga(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 Ct=i[tt],Tt=ya(P,d,m,x);et=new Ne["a"]({color:Et?[255*Et.r,255*Et.g,255*Et.b,Et.a]:void 0,img:l,imgSize:u,size:[Ct.width,Ct.height],offset:[Ct.x,Ct.y],rotateWithView:"map"===ot,scale:Ot/Ct.pixelRatio,displacement:"icon-offset"in M?ga(P,"layout","icon-offset",d,m,x,O).map((function(t){return-t*Ct.pixelRatio})):void 0,declutterMode:Tt}),_[St]=et}}et&&(++E,B=L[E],B&&B.getImage()&&!B.getFill()&&!B.getStroke()||(B=new h["default"],L[E]=B),B.setGeometry(it),et.setRotation(Q+zo(ga(P,"layout","icon-rotate",d,m,x,O))),et.setOpacity(ga(P,"paint","icon-opacity",d,m,x,O)),et.setAnchor(ha[ga(P,"layout","icon-anchor",d,m,x,O)]),B.setImage(et),$=B.getText(),B.setText(void 0),B.setZIndex(U),J=!0,rt=!1)}else rt=!0}}}if(1==y&&"circle"===P.type){++E,B=L[E],B&&B.getImage()&&!B.getFill()&&!B.getStroke()||(B=new h["default"],L[E]=B);var Pt="circle-radius"in I?ga(P,"paint","circle-radius",d,m,x,O):5,jt=_a(ga(P,"paint","circle-stroke-color",d,m,x,O),ga(P,"paint","circle-stroke-opacity",d,m,x,O)),Mt=_a(ga(P,"paint","circle-color",d,m,x,O),ga(P,"paint","circle-opacity",d,m,x,O)),Rt=ga(P,"paint","circle-stroke-width",d,m,x,O),At=Pt+"."+jt+"."+Mt+"."+Rt;et=_[At],et||(et=new Ge["default"]({radius:Pt,stroke:jt&&Rt>0?new c["default"]({width:Rt,color:jt}):void 0,fill:Mt?new a["default"]({color:Mt}):void 0,declutterMode:"none"}),_[At]=et),B.setImage(et),$=B.getText(),B.setText(void 0),B.setGeometry(void 0),B.setZIndex(U),J=!0}var Lt=void 0,It=void 0,kt=void 0,Ft=void 0,Dt=void 0,Gt=void 0;if("text-field"in M){Ft=Math.round(ga(P,"layout","text-size",d,m,x,O));var Nt=ga(P,"layout","text-font",d,m,x,O);kt=ga(P,"layout","text-line-height",d,m,x,O),It=Io(s?s(Nt):Nt,Ft,kt),It.includes("sans-serif")||(It+=",sans-serif"),Dt=ga(P,"layout","text-letter-spacing",d,m,x,O),Gt=ga(P,"layout","text-max-width",d,m,x,O);var zt=ga(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=Io(s?s(n):n,Ft*(e.scale||1),kt),o=e.text;if("\n"===o)return t.push("\n",""),t;if(2!=y){o=ea(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(Jo(o,Dt),i)}),[]):xa(zt,o).trim(),D=ga(P,"paint","text-opacity",d,m,x,O)}if(Lt&&D&&!rt){J||(++E,B=L[E],B&&B.getText()&&!B.getFill()&&!B.getStroke()||(B=new h["default"],L[E]=B),B.setImage(void 0),B.setGeometry(void 0)),B.getText()||B.setText($||new f["a"]({padding:[2,2,2,2]})),$=B.getText();var Bt=M["text-transform"];"uppercase"==Bt?Lt=Array.isArray(Lt)?Lt.map((function(t,e){return e%2?t:t.toUpperCase()})):Lt.toUpperCase():"lowercase"==Bt&&(Lt=Array.isArray(Lt)?Lt.map((function(t,e){return e%2?t:t.toLowerCase()})):Lt.toLowerCase());var Ut=Array.isArray(Lt)?Lt:2==y?Jo(Lt,Dt):ea(Lt,It,Gt,Dt);$.setText(Ut),$.setFont(It),$.setRotation(zo(ga(P,"layout","text-rotate",d,m,x,O)));var Vt=ga(P,"layout","text-anchor",d,m,x,O),Xt=J||1==y?"point":ga(P,"layout","symbol-placement",d,m,x,O);$.setPlacement(Xt),$.setOverflow("point"===Xt);var Wt=ga(P,"paint","text-halo-width",d,m,x,O),Ht=ga(P,"layout","text-offset",d,m,x,O),Yt=ga(P,"paint","text-translate",d,m,x,O),qt=0,Zt=0;if("point"==Xt){var Kt="center";-1!==Vt.indexOf("left")?(Kt="left",Zt=Wt):-1!==Vt.indexOf("right")&&(Kt="right",Zt=-Wt),$.setTextAlign(Kt);var Jt=ga(P,"layout","text-rotation-alignment",d,m,x,O);$.setRotateWithView("map"==Jt)}else $.setMaxAngle(zo(ga(P,"layout","text-max-angle",d,m,x,O))*Lt.length/Ut.length),$.setTextAlign(),$.setRotateWithView(!1);var $t="middle";0==Vt.indexOf("bottom")?($t="bottom",qt=-Wt-.5*(kt-1)*Ft):0==Vt.indexOf("top")&&($t="top",qt=Wt+.5*(kt-1)*Ft),$.setTextBaseline($t),$.setOffsetX(Ht[0]*Ft+Zt+Yt[0]),$.setOffsetY(Ht[1]*Ft+qt+Yt[1]),A.setColor(_a(ga(P,"paint","text-color",d,m,x,O),D)),$.setFill(A);var Qt=_a(ga(P,"paint","text-halo-color",d,m,x,O),D);if(Qt){R.setColor(Qt),Wt*=2;var te=.5*Ft;R.setWidth(Wt<=te?Wt:te),$.setStroke(R)}else $.setStroke(void 0);var ee=ga(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),B.setZIndex(U)}}}}return E>-1?(L.length=E+1,wa&&("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 Ea(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 Sa(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:Go(o,s.accessToken),s=Ea(o,s)),new Promise((function(n,l){Ho(e,s).then((function(e){if(8!=e.version)return l(new Error("glStyle version 8 required."));if(!(t instanceof p["default"]||t instanceof Fe))return l(new Error("Can only apply to VectorLayer or VectorTileLayer"));var u,c,h,f,d=t instanceof Fe?"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 Fe)return Ra(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()===De["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=La(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=Oa(t,e,r,i,c,h,sa),t.getStyle()?g().then(n).catch(l):l(new Error("Nothing to show for source ["+a+"]")))}if(e.sprite){var v=new URL(Do(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){Wo("Sprite",b,s).then(t).catch((function(r){b=v.origin+v.pathname+".json"+v.search,Wo("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 Ta(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=ga(r,"paint","background-color",u,Ca,n),c&&(c.style.background=Qe.parse(s).toString())),void 0!==a["background-opacity"]&&(l=ga(r,"paint","background-opacity",u,Ca,n),c&&(c.style.opacity=l)),"none"!=o.visibility)return _a(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 Pa(t,e){e.layers.some((function(e){if("background"===e.type)return Ta(t,e),!0}))}function ja(t,e,r){return void 0===r&&(r={}),"object"===typeof e?(Pa(t,e),Promise.resolve()):Ho(e,r).then((function(e){Pa(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 Ra(t,e,r){return new Promise((function(n,i){qo(t,e,r).then((function(t){var e=new Ve["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 _e,tileGrid:new Ue["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 De["a"](l))})).catch(i)}))}var Aa=new Be["default"];function La(t,e,r){var n=t.data,i={};if("string"==typeof n){var o=No(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=Aa.readFeatures(n,{featureProjection:Object(_["getUserProjection"])()||"EPSG:3857"});var s=new d["default"](Object.assign({attributions:t.attribution,format:Aa},i));return s.set("mapbox-source",t),s}var Ia=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,Yt["a"].ERROR)||this;return r.error=e,r}return Ia(e,t),e}(Ht["a"]),Fa=function(t){function e(e){var r=this,n=!("declutter"in e)||e.declutter,i=new De["a"]({state:"loading",format:new _e});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 Sa(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()&&ja(r,e.styleUrl,{accessToken:r.accessToken}),r}return Ia(e,t),e}(Fe),Da=Fa,Ga=r("39cf"),Na=r("da2f"),za=r("ed9b"),Ba=r("869f"),Ua=r("25a5"),Va=r.n(Ua),Xa=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)}}(),Wa=function(t){function e(e){var r=t.call(this,e)||this;return r.vectorRenderer_=new Na["a"](e),r.layerImageRatio_=e.getImageRatio(),r.coordinateToVectorPixelTransform_=Object(at["c"])(),r.renderedPixelToCoordinateTransform_=null,r}return Xa(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(at["a"])(this.coordinateToVectorPixelTransform_,Object(at["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[A["a"].ANIMATING]&&!i[A["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 Va.a(9),extent:a,size:[s,l],viewState:Object(y["a"])({},t.viewState,{rotation:0}),layerStatesArray:[h],layerIndex:0}),p=!0,d=new za["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(Yt["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(at["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}(Ga["a"]),Ha=Wa,Ya=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)}}(),qa=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 Ya(e,t),e.prototype.getImageRatio=function(){return this.imageRatio_},e.prototype.createRenderer=function(){return new Ha(this)},e}(M["a"]),Za=qa,Ka=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}(),Ja=Ka,$a=r("5116"),Qa=r("dc07"),ts=r("e134"),es=r("0ec0"),rs=r("7f98"),ns=r("2efc"),is=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 os(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 as(t,e,r,n){os(t,e,n),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,r)}function ss(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;os(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 ls=null;function us(){var t=document.createElement("canvas");t.width=1,t.height=1,ls=t.getContext("2d")}var cs=function(t){function e(e){var r=t.call(this)||this;r.tile,r.textures=[],r.handleTileChange_=r.handleTileChange_.bind(r),r.renderSize_=Object(Te["d"])(e.grid.getTileSize(e.tile.tileCoord[0])),r.gutter_=e.gutter||0,r.bandCount=NaN,r.helper_=e.helper;var n=new Z(I,D);return n.fromArray([0,1,1,1,1,0,0,0]),r.helper_.flushBufferData(n),r.coords=n,r.setTile(e.tile),r}return is(e,t),e.prototype.setTile=function(t){if(t!==this.tile)if(this.tile&&this.tile.removeEventListener(Yt["a"].CHANGE,this.handleTileChange_),this.tile=t,this.textures.length=0,this.loaded=t.getState()===Oe["a"].LOADED,this.loaded)this.uploadTile_();else{if(t instanceof rs["a"]){var e=t.getImage();e instanceof Image&&!e.crossOrigin&&(e.crossOrigin="anonymous")}t.addEventListener(Yt["a"].CHANGE,this.handleTileChange_)}},e.prototype.uploadTile_=function(){var t=this.helper_,e=t.getGL(),r=this.tile;if(r instanceof rs["a"]||r instanceof ns["a"]){var n=e.createTexture();return this.textures.push(n),this.bandCount=4,void as(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 ss(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;ss(t,n,E,o,g,r.interpolate)}},e.prototype.handleTileChange_=function(){this.tile.getState()===Oe["a"].LOADED&&(this.loaded=!0,this.uploadTile_(),this.dispatchEvent(Yt["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(Yt["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 ts["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)}ls||us(),ls.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{ls.drawImage(m,O,E,1,1,0,0,1,1),v=ls.getImageData(0,0,1,1).data}catch(S){return ls=null,null}return v},e}(es["a"]),hs=cs,fs=r("2c30"),ps=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)}}(),ds={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"},gs={TEXTURE_COORD:"a_textureCoord"},ys=[{name:gs.TEXTURE_COORD,size:2,type:ht.FLOAT}],vs={};function ms(t){return 2*(1-1/(t+1))-1}function _s(t,e,r){r in t||(t[r]=[]),t[r].push(e)}function bs(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 xs(t,e){return"".concat(t.getKey(),",").concat(Object(fs["d"])(e))}var ws=function(t){function e(e,r){var n=t.call(this,e,{uniforms:r.uniforms})||this;n.renderComplete=!1,n.tileTransform_=Object(at["c"])(),n.tempMat4_=st(),n.tempTileRange_=new Qa["b"](0,0,0,0),n.tempTileCoord_=Object(fs["a"])(0,0,0),n.tempSize_=[0,0],n.program_,n.vertexShader_=r.vertexShader,n.fragmentShader_=r.fragmentShader,n.indices_=new Z(k,D),n.indices_.fromArray([0,1,3,1,2,3]);var i=void 0!==r.cacheSize?r.cacheSize:512;return n.tileTextureCache_=new $a["a"](i),n.paletteTextures_=r.paletteTextures||[],n.frameState_=null,n}return ps(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==Oe["a"].LOADED||r==Oe["a"].EMPTY||r==Oe["a"].ERROR&&!n},e.prototype.prepareFrameInternal=function(t){var e=this.getLayer(),r=e.getRenderSource();return!!r&&(!Object(g["isEmpty"])(bs(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(et["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(fs["a"])(p,y,v,this.tempTileCoord_),_=xs(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 hs({tile:x,grid:s,helper:this.helper,gutter:l}),h.set(_,b);_s(n,b,p);var O=x.getKey();c[O]=!0,x.getState()===Oe["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=bs(t,t.extent),l=o.getZForResolution(r.resolution,i.zDirection),u={};if(t.nextExtent){var c=o.getZForResolution(r.nextResolution,i.zDirection),h=bs(t,t.nextExtent);this.enqueueTiles(t,h,c,u)}this.enqueueTiles(t,s,l,u);for(var f={},p=Object(et["c"])(this),d=t.time,y=!1,v=u[l],m=0,_=v.length;m<_;++m){var b=v[m],x=b.tile,w=x.tileCoord;if(b.loaded){var O=x.getAlpha(p,d);if(1===O){x.endTransition(p);continue}y=!0;var E=Object(fs["d"])(w);f[E]=O}this.renderComplete=!1;var S=this.findAltTiles_(o,w,l+1,u);if(!S)for(var C=o.getMinZoom(),T=l-1;T>=C;--T){var P=this.findAltTiles_(o,w,T,u);if(P)break}}this.helper.useProgram(this.program_),this.helper.prepareDraw(t,!y);for(var j=Object.keys(u).map(Number).sort(Pt["i"]),M=r.center[0],R=r.center[1],A=0,L=j.length;A<L;++A){var I=j[A],k=o.getResolution(I),F=Object(Te["d"])(o.getTileSize(I),this.tempSize_),D=o.getOrigin(I),G=F[0]+2*a,N=F[1]+2*a,z=G/N,B=(M-D[0])/(F[0]*k),U=(D[1]-R)/(F[1]*k),V=r.resolution/k,X=ms(I),W=u[I];for(m=0,_=W.length;m<_;++m){b=W[m];if(b.loaded){x=b.tile,w=x.tileCoord,E=Object(fs["d"])(w);var H=w[1],Y=w[2];Object(at["g"])(this.tileTransform_),Object(at["i"])(this.tileTransform_,2/(t.size[0]*V/G),-2/(t.size[1]*V/G)),Object(at["h"])(this.tileTransform_,r.rotation),Object(at["i"])(this.tileTransform_,1,1/z),Object(at["l"])(this.tileTransform_,(F[0]*(H-B)-a)/G,(F[1]*(Y-U)-a)/N),this.helper.setUniformMatrixValue(ds.TILE_TRANSFORM,lt(this.tempMat4_,this.tileTransform_)),this.helper.bindBuffer(b.coords),this.helper.bindBuffer(this.indices_),this.helper.enableAttributes(ys);var q=0;while(q<b.textures.length){var Z="TEXTURE"+q,K="".concat(ds.TILE_TEXTURE_ARRAY,"[").concat(q,"]");e.activeTexture(e[Z]),e.bindTexture(e.TEXTURE_2D,b.textures[q]),e.uniform1i(this.helper.getUniformLocation(K),q),++q}for(var J=0;J<this.paletteTextures_.length;++J){var $=this.paletteTextures_[J];e.activeTexture(e["TEXTURE"+q]);var Q=$.getTexture(e);e.bindTexture(e.TEXTURE_2D,Q),e.uniform1i(this.helper.getUniformLocation($.name),q),++q}O=E in f?f[E]:1;O<1&&(t.animate=!0),this.helper.setUniformFloatValue(ds.TRANSITION_ALPHA,O),this.helper.setUniformFloatValue(ds.DEPTH,X),this.helper.setUniformFloatValue(ds.TEXTURE_PIXEL_WIDTH,G),this.helper.setUniformFloatValue(ds.TEXTURE_PIXEL_HEIGHT,N),this.helper.setUniformFloatValue(ds.TEXTURE_RESOLUTION,k),this.helper.setUniformFloatValue(ds.TEXTURE_ORIGIN_X,D[0]+H*F[0]*k-a*k),this.helper.setUniformFloatValue(ds.TEXTURE_ORIGIN_Y,D[1]-Y*F[1]*k+a*k);var tt=s;a>0&&(tt=o.getTileCoordExtent(w),Object(g["getIntersection"])(tt,s,tt)),this.helper.setUniformFloatVec4(ds.RENDER_EXTENT,tt),this.helper.setUniformFloatValue(ds.RESOLUTION,r.resolution),this.helper.setUniformFloatValue(ds.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 it=function(t,e){i.expireCache(e.viewState.projection,vs)};return t.postRenderFunctions.push(it),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(at["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=xs(l,d);if(f.containsKey(y)){var v=f.get(y);if(v.loaded){var m=u.getOrigin(p),b=Object(Te["d"])(u.getTileSize(p)),x=u.getResolution(p),w=(i[0]-m[0])/x-d[1]*b[0],O=(m[1]-i[1])/x-d[2]*b[1];return v.getPixelData(w,O)}}}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=xs(s,[r,l,u]),h=!1;if(a.containsKey(c)){var f=a.get(c);f.loaded&&(_s(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}(Tt),Os=ws,Es=r("5c38"),Ss={NUMBER:1,STRING:2,COLOR:4,BOOLEAN:8,NUMBER_ARRAY:16,ANY:31,NONE:0},Cs={};function Ts(t){if("number"===typeof t)return Ss.NUMBER;if("boolean"===typeof t)return Ss.BOOLEAN;if("string"===typeof t)return Object(Es["d"])(t)?Ss.COLOR|Ss.STRING:Ss.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?Ss.COLOR|Ss.NUMBER_ARRAY:Ss.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 Ps(t){return Object(v["f"])(t)%1===0}function js(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(js).join(", "),")")}function Rs(t){var e=Object(Es["a"])(t).slice();return e.length<4&&e.push(1),Ms(e.map((function(t,e){return e<3?t/255:t})))}function As(t,e){return void 0===t.stringLiteralsMap[e]&&(t.stringLiteralsMap[e]=Object.keys(t.stringLiteralsMap).length),t.stringLiteralsMap[e]}function Ls(t,e){return js(As(t,e))}function Is(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=Ts(e);if((i&Ss.NUMBER)>0)return js(e);if((i&Ss.BOOLEAN)>0)return e.toString();if((i&Ss.STRING)>0&&(void 0===r||r==Ss.STRING))return Ls(t,e.toString());if((i&Ss.COLOR)>0&&(void 0===r||r==Ss.COLOR))return Rs(e);if((i&Ss.NUMBER_ARRAY)>0)return Ms(e);throw new Error("Unexpected expression ".concat(e," (expected type ").concat(r,")"))}function ks(t){if(!(Ts(t)&Ss.NUMBER))throw new Error("A numeric value was expected, got ".concat(JSON.stringify(t)," instead"))}function Fs(t){for(var e=0;e<t.length;e++)ks(t[e])}function Ds(t){if(!(Ts(t)&Ss.STRING))throw new Error("A string value was expected, got ".concat(JSON.stringify(t)," instead"))}function Gs(t){if(!(Ts(t)&Ss.BOOLEAN))throw new Error("A boolean value was expected, got ".concat(JSON.stringify(t)," instead"))}function Ns(t,e){if(t.length!==e)throw new Error("Exactly ".concat(e," arguments were expected, got ").concat(t.length," instead"))}function zs(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 Us(t){if(t.length%2!==0)throw new Error("An even amount of arguments was expected, got ".concat(t," instead"))}function Vs(t){if(t.length%2===0)throw new Error("An odd amount of arguments was expected, got ".concat(t," instead"))}function Xs(t,e){if(!Ps(e))throw new Error("Could not infer only one type from the following expression: ".concat(JSON.stringify(t)))}function Ws(t){return"u_var_"+t}Cs["get"]={getReturnType:function(t){return Ss.ANY},toGlsl:function(t,e){Ns(e,1),Ds(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 Ss.ANY},toGlsl:function(t,e){Ns(e,1),Ds(e[0]);var r=e[0].toString();return-1===t.variables.indexOf(r)&&t.variables.push(r),Ws(r)}};var Hs="u_paletteTextures";Cs["palette"]={getReturnType:function(t){return Ss.COLOR},toGlsl:function(t,e){Ns(e,2),ks(e[0]);var r=Is(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(Es["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(Hs,"[").concat(t.paletteTextures.length,"]"),f=new Ja(h,o);return t.paletteTextures.push(f),"texture2D(".concat(h,", vec2((").concat(r," + 0.5) / ").concat(i,".0, 0.5))")}};var Ys="getBandValue";function qs(t){return{getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(e,r){Ns(r,2);for(var n=Ss.ANY,i=0;i<r.length;i++)n&=Ts(r[i]);if(n===Ss.NONE)throw new Error("All arguments should be of compatible type, got ".concat(JSON.stringify(r)," instead"));return n&=~Ss.COLOR,"(".concat(Is(e,r[0],n)," ").concat(t," ").concat(Is(e,r[1],n),")")}}}function Zs(t){return{getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(e,r){zs(r,2);for(var n=0;n<r.length;n++)Gs(r[n]);var i="";return i=r.map((function(t){return Is(e,t)})).join(" ".concat(t," ")),i="(".concat(i,")"),i}}}Cs["band"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){zs(e,1),Bs(e,3);var r=e[0];if(!(Ys 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(ds.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[Ys]="\n float getBandValue(float band, float xOffset, float yOffset) {\n float dx = xOffset / ".concat(ds.TEXTURE_PIXEL_WIDTH,";\n float dy = yOffset / ").concat(ds.TEXTURE_PIXEL_HEIGHT,";\n ").concat(n,"\n }\n ")}var u=Is(t,r),c=Is(t,e[1]||0),h=Is(t,e[2]||0);return"".concat(Ys,"(").concat(u,", ").concat(c,", ").concat(h,")")}},Cs["time"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,0),"u_time"}},Cs["zoom"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,0),"u_zoom"}},Cs["resolution"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,0),"u_resolution"}},Cs["*"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,2),Fs(e),"(".concat(Is(t,e[0])," * ").concat(Is(t,e[1]),")")}},Cs["/"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,2),Fs(e),"(".concat(Is(t,e[0])," / ").concat(Is(t,e[1]),")")}},Cs["+"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,2),Fs(e),"(".concat(Is(t,e[0])," + ").concat(Is(t,e[1]),")")}},Cs["-"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,2),Fs(e),"(".concat(Is(t,e[0])," - ").concat(Is(t,e[1]),")")}},Cs["clamp"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){Ns(e,3),Fs(e);var r=Is(t,e[1]),n=Is(t,e[2]);return"clamp(".concat(Is(t,e[0]),", ").concat(r,", ").concat(n,")")}},Cs["%"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,2),Fs(e),"mod(".concat(Is(t,e[0]),", ").concat(Is(t,e[1]),")")}},Cs["^"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,2),Fs(e),"pow(".concat(Is(t,e[0]),", ").concat(Is(t,e[1]),")")}},Cs["abs"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,1),Fs(e),"abs(".concat(Is(t,e[0]),")")}},Cs["floor"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,1),Fs(e),"floor(".concat(Is(t,e[0]),")")}},Cs["round"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,1),Fs(e),"floor(".concat(Is(t,e[0])," + 0.5)")}},Cs["ceil"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,1),Fs(e),"ceil(".concat(Is(t,e[0]),")")}},Cs["sin"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,1),Fs(e),"sin(".concat(Is(t,e[0]),")")}},Cs["cos"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,1),Fs(e),"cos(".concat(Is(t,e[0]),")")}},Cs["atan"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return zs(e,1),Bs(e,2),Fs(e),2===e.length?"atan(".concat(Is(t,e[0]),", ").concat(Is(t,e[1]),")"):"atan(".concat(Is(t,e[0]),")")}},Cs[">"]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Ns(e,2),Fs(e),"(".concat(Is(t,e[0])," > ").concat(Is(t,e[1]),")")}},Cs[">="]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Ns(e,2),Fs(e),"(".concat(Is(t,e[0])," >= ").concat(Is(t,e[1]),")")}},Cs["<"]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Ns(e,2),Fs(e),"(".concat(Is(t,e[0])," < ").concat(Is(t,e[1]),")")}},Cs["<="]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Ns(e,2),Fs(e),"(".concat(Is(t,e[0])," <= ").concat(Is(t,e[1]),")")}},Cs["=="]=qs("=="),Cs["!="]=qs("!="),Cs["!"]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Ns(e,1),Gs(e[0]),"(!".concat(Is(t,e[0]),")")}},Cs["all"]=Zs("&&"),Cs["any"]=Zs("||"),Cs["between"]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){Ns(e,3),Fs(e);var r=Is(t,e[1]),n=Is(t,e[2]),i=Is(t,e[0]);return"(".concat(i," >= ").concat(r," && ").concat(i," <= ").concat(n,")")}},Cs["array"]={getReturnType:function(t){return Ss.NUMBER_ARRAY},toGlsl:function(t,e){zs(e,2),Bs(e,4),Fs(e);var r=e.map((function(e){return Is(t,e,Ss.NUMBER)}));return"vec".concat(e.length,"(").concat(r.join(", "),")")}},Cs["color"]={getReturnType:function(t){return Ss.COLOR},toGlsl:function(t,e){zs(e,3),Bs(e,4),Fs(e);var r=e;3===e.length&&r.push(1);var n=e.map((function(e,r){return Is(t,e,Ss.NUMBER)+(r<3?" / 255.0":"")}));return"vec".concat(e.length,"(").concat(n.join(", "),")")}},Cs["interpolate"]={getReturnType:function(t){for(var e=Ss.COLOR|Ss.NUMBER,r=3;r<t.length;r+=2)e&=Ts(t[r]);return e},toGlsl:function(t,e,r){Us(e),zs(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:Ss.ANY,a=Cs["interpolate"].getReturnType(e)&o;Xs(e,a);for(var s=Is(t,e[1]),l=js(n),u="",c=2;c<e.length-2;c+=2){var h=Is(t,e[c]),f=u||Is(t,e[c+1],a),p=Is(t,e[c+2]),d=Is(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=Ss.ANY,r=2;r<t.length;r+=2)e&=Ts(t[r]);return e&=Ts(t[t.length-1]),e},toGlsl:function(t,e,r){Us(e),zs(e,4);var n=void 0!==r?r:Ss.ANY,i=Cs["match"].getReturnType(e)&n;Xs(e,i);for(var o=Is(t,e[0]),a=Is(t,e[e.length-1],i),s=null,l=e.length-3;l>=1;l-=2){var u=Is(t,e[l]),c=Is(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=Ss.ANY,r=1;r<t.length;r+=2)e&=Ts(t[r]);return e&=Ts(t[t.length-1]),e},toGlsl:function(t,e,r){Vs(e),zs(e,3);var n=void 0!==r?r:Ss.ANY,i=Cs["case"].getReturnType(e)&n;Xs(e,i);for(var o=0;o<e.length-1;o+=2)Gs(e[o]);var a=Is(t,e[e.length-1],i),s=null;for(o=e.length-3;o>=0;o-=2){var l=Is(t,e[o]),u=Is(t,e[o+1],i);s="(".concat(l," ? ").concat(u," : ").concat(s||a,")")}return s}};var Ks=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 Js(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=Is(l,r,Ss.NUMBER_ARRAY|Ss.NUMBER),c=Is(l,o,Ss.NUMBER_ARRAY),h=Is(l,i,Ss.NUMBER_ARRAY),f=Is(l,s,Ss.NUMBER),p={inFragmentShader:!0,variables:l.variables,attributes:[],stringLiteralsMap:l.stringLiteralsMap,functions:{}},d=Is(p,n,Ss.COLOR),g=Is(p,a,Ss.NUMBER),y="1.0",v="vec2(".concat(Is(p,r,Ss.NUMBER_ARRAY|Ss.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 Ks).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=Is(p,t.filter,Ss.BOOLEAN);b.setFragmentDiscardExpression("!".concat(x))}var w={};if(p.variables.forEach((function(e){var r=Ws(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=As(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=As(l,n)),void 0!==n?n:-9999999}}})),uniforms:w}}var $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)}}(),Qs=function(t){function e(e){var r=this,n=Object(y["a"])({},e);return r=t.call(this,n)||this,r.parseResult_=Js(e.style),r.styleVariables_=e.style.variables||{},r.hitDetectionDisabled_=!!e.disableHitDetection,r}return $s(e,t),e.prototype.createRenderer=function(){return new Ft(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}(Wt["a"]),tl=Qs,el=r("2300"),rl=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 nl(t,e){var r="\n attribute vec2 ".concat(gs.TEXTURE_COORD,";\n uniform mat4 ").concat(ds.TILE_TRANSFORM,";\n uniform float ").concat(ds.TEXTURE_PIXEL_WIDTH,";\n uniform float ").concat(ds.TEXTURE_PIXEL_HEIGHT,";\n uniform float ").concat(ds.TEXTURE_RESOLUTION,";\n uniform float ").concat(ds.TEXTURE_ORIGIN_X,";\n uniform float ").concat(ds.TEXTURE_ORIGIN_Y,";\n uniform float ").concat(ds.DEPTH,";\n\n varying vec2 v_textureCoord;\n varying vec2 v_mapCoord;\n\n void main() {\n v_textureCoord = ").concat(gs.TEXTURE_COORD,";\n v_mapCoord = vec2(\n ").concat(ds.TEXTURE_ORIGIN_X," + ").concat(ds.TEXTURE_RESOLUTION," * ").concat(ds.TEXTURE_PIXEL_WIDTH," * v_textureCoord[0],\n ").concat(ds.TEXTURE_ORIGIN_Y," - ").concat(ds.TEXTURE_RESOLUTION," * ").concat(ds.TEXTURE_PIXEL_HEIGHT," * v_textureCoord[1]\n );\n gl_Position = ").concat(ds.TILE_TRANSFORM," * vec4(").concat(gs.TEXTURE_COORD,", ").concat(ds.DEPTH,", 1.0);\n }\n "),n={inFragmentShader:!0,variables:[],attributes:[],stringLiteralsMap:{},functions:{},bandCount:e},i=[];if(void 0!==t.color){var o=Is(n,t.color,Ss.COLOR);i.push("color = ".concat(o,";"))}if(void 0!==t.contrast){var a=Is(n,t.contrast,Ss.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=Is(n,t.exposure,Ss.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=Is(n,t.saturation,Ss.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=Is(n,t.gamma,Ss.NUMBER);i.push("color.rgb = pow(color.rgb, vec3(1.0 / ".concat(u,"));"))}if(void 0!==t.brightness){var c=Is(n,t.brightness,Ss.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=Ws(r);h[i]=function(){var e=t.variables[r];return"string"===typeof e&&(e=As(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(ds.TILE_TEXTURE_ARRAY,"[").concat(y,"];")),n.paletteTextures&&g.push("uniform sampler2D ".concat(Hs,"[").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(ds.RENDER_EXTENT,";\n uniform float ").concat(ds.TRANSITION_ALPHA,";\n uniform float ").concat(ds.TEXTURE_PIXEL_WIDTH,";\n uniform float ").concat(ds.TEXTURE_PIXEL_HEIGHT,";\n uniform float ").concat(ds.RESOLUTION,";\n uniform float ").concat(ds.ZOOM,";\n\n ").concat(g.join("\n"),"\n\n ").concat(v.join("\n"),"\n\n void main() {\n if (\n v_mapCoord[0] < ").concat(ds.RENDER_EXTENT,"[0] ||\n v_mapCoord[1] < ").concat(ds.RENDER_EXTENT,"[1] ||\n v_mapCoord[0] > ").concat(ds.RENDER_EXTENT,"[2] ||\n v_mapCoord[1] > ").concat(ds.RENDER_EXTENT,"[3]\n ) {\n discard;\n }\n\n vec4 color = texture2D(").concat(ds.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(ds.TRANSITION_ALPHA,";\n }");return{vertexShader:r,fragmentShader:m,uniforms:h,paletteTextures:n.paletteTextures}}var il=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(K["a"].SOURCE,r.handleSourceUpdate_),r}return rl(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=nl(this.style_,this.getSourceBandCount_());return new Os(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=nl(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}(el["a"]);il.prototype.dispose;var ol=il},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)},drawPolygonEvent:function(e){return t.drawPolygonEvent(e)},drawLineEvent:function(e){return t.drawLineEvent(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._t("marker",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("5eee")),l=r("13e2"),u=r("3a39");class c{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 l["AM"],this.type=2,this.lPolygonNewArr=new Array,this.polygonGeojsonMap=new s["default"],this.drawPolygonArr=new Set,this.drawLineArr=new Set,this._lRectangle=null,this.layers=null,this.drawZIndex=1}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 l["LMap"]({controls:l["MapConfig"].Defaults,interactions:Object(u["defaults"])({pinchRotate:!1})})),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,l["MapConfig"].View=n,this.map.setView(l["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 l["LMap"]({controls:l["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,l["MapConfig"].View=r,this.map.setView(l["MapConfig"].View),e&&e(this.map,i)};n()},100)}initBingMapNew(t,e,r){this.lmap||(this.lmap=new l["LMap"]({controls:l["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,l["MapConfig"].View=r,this.map.setView(l["MapConfig"].View),e&&e(this.map,i)};n()},100)}async initVectorMap(t){const{el:e,isAnalysisBBOX:r,isAnalysisCenter:n,callback:i,delaytime:o,isDrag:a}=t,s=new l["VectorMap"]({isAnalysisBBOX:r,isAnalysisCenter:n,isDrag:a,callback:t=>{i&&i(t)}});return new Promise(t=>{setTimeout(async()=>{const r=await s.onLoad(e);t({map:r,vmap:s})},o||100)})}async initStaticMap(t,e){return await new Promise((r,n)=>{setTimeout(i=>{const o=new s["default"]({target:t,view:e.view,layers:[e.layer]});this.map=o,this.layers=[e.layer],o?r(o):n(null)},30)})}getVectorLayerView(){return l["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){l["MapConfig"].TMapLayerArr[t].forEach((t,e)=>{this.map.removeLayer(t)})}addLayers(t){l["MapConfig"].TMapLayerArr[t].forEach((t,e)=>{this.map.addLayer(t)})}onCreatePolygon(t,e=!1){this.polygonGeojson&&this.map.removeLayer(this.polygonGeojson),this._lPolygon&&this.clearlPolygon();return this._lPolygon=new l["LPolygon"](this.map,{strokeColor:"rgba(255,201,14, 1)",fillColor:"rgba(255,201,14, 0.4)"},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(l["createGeoJson"])(this._lPolygon.getCoordinates(),{ruleId:"",centerlon:t,centerlat:e});return r}return null}getGeoJsonNew(t){if(this.polygonGeojson){const t=this.polygonGeojson,e=Object(l["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(t){if(this.map){let e=new l["LDraw"]("LineString",t||(()=>{}),this.map,this.drawZIndex);return this.drawLineArr.add(e),e}return null}onCreateArea(t){if(this.map){let e=new l["LDraw"]("Polygon",t||(()=>{}),this.map,this.drawZIndex);return this.drawPolygonArr.add(e),e}return null}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 l["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(l["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(l["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 l["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(l["fitNew"])(this.map,t)}createMarker(t,e=15,r=15){return new l["LMarker"](t,e,r)}removeMarker(t){this.map.removeOverlay(t.getMarker())}lModifyEventArr(){this.lModifyEventArr.length=0,this.polygonGeojsonArr.forEach((t,e)=>{const r=new l["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 l["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 s=0;s<e.length;s+=2){const{lon:t,lat:r}=l["GPS"].gcj_encrypt(e[s],e[s+1]);i.push(t),i.push(r)}t.bbox=i;const o=r.coordinates,a=new Array;for(let s=0;s<o.length;s++){a.push(o[s]);for(let t=0;t<o[s].length;t++){const e=o[s][t],{lon:r,lat:n}=l["GPS"].gcj_encrypt(e[0],e[1]);a[s][t]=[r,n]}}if(r.coordinates=a,n&&n.center){const[e,r]=n.center,[i,o]=l["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 s=0;s<e.length;s+=2){const{lon:t,lat:r}=l["GPS"].gcj_decrypt(e[s],e[s+1]);i.push(t),i.push(r)}t.bbox=i;const o=r.coordinates,a=new Array;for(let s=0;s<o.length;s++){a.push(o[s]);for(let t=0;t<o[s].length;t++){const e=o[s][t],{lon:r,lat:n}=l["GPS"].gcj_decrypt(e[0],e[1]);a[s][t]=[r,n]}}if(r.coordinates=a,n&&n.center){const[e,r]=n.center,[i,o]=l["GPS"].gcj_decrypt(e,r);t.properties.center=[i,o]}return t}gcj_encrypt(t,e){return l["GPS"].gcj_encrypt(t,e)}gcj_decrypt(t,e){return l["GPS"].gcj_decrypt(t,e)}formatArea(){return this._lPolygon&&this._lPolygon.getGeometry()?Object(l["formatArea"])(this._lPolygon.getGeometry()):0}formatLength(){return this._lPolygon&&this._lPolygon.getGeometry()?Object(l["formatLength"])(this._lPolygon.getGeometry()):0}createPolylinePointList(t,e=!1,r=!0,n=null,i=0){let o=new Array;const a=Object(l["createPolylinePoints"])(t,e);o=Object(l["addPolylinePoint"])(a,this.map);const s=Object(l["createGPSPoints"])(t,e,this.am);if(null!=s){let t=this.am.getLngLats();i&&(t=this.am.getLngLatGCJ02()),Object(l["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 l["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 l["AM"]}createPolygonBoundary(t,e){const r=Object(l["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(l["createPolylinePoints"])(t,!1);n=Object(l["addPolylinePointNew"])(i,this.map,e);const o=Object(l["createGPSPoints"])(t,!1,this.am);if(null!=o&&r.isFit){let t=this.am.getLngLats();e.type&&(t=this.am.getLngLatGCJ02()),Object(l["fitNew"])(this.map,[[t[0],t[1]],[t[2],t[3]]])}return n}createLPolygonNew(t,e){this.lPolygonNewArr.push(new l["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(l["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 l["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[]}getRectangleDataNew(){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}}async initOfflineMap(t,e){const{el:r,urls:n,callback:i}=e;this.lmap=new l["OfflineMap"],setTimeout(async t=>{const{map:e,layers:o}=await this.lmap.onLoad(r,n);this.map=e,this.layers=o,i({map:e,lMap:this.lmap})},50)}set DrawZIndex(t){this.drawZIndex=t}get DrawZIndex(){return this.drawZIndex}}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class f{constructor(){h(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.bindContextmenu={type:Boolean,default:!1},this.binddblClick={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 p{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 d{constructor(){h(this,"isHideAreaAndKM",{type:Boolean,default:!1}),h(this,"switchMapPosTop",{type:Number,default:50}),h(this,"switchMapPosLeftOrRight",{type:Number,default:20}),h(this,"isSwitchMapRight",{type:Boolean,default:!0}),h(this,"switchMapHeight",{type:Number,default:40}),h(this,"isShowRangingTool",{type:Boolean,default:!0}),h(this,"isShowDrawTool",{type:Boolean,default:!1}),h(this,"isRight",{type:Boolean,default:!0}),h(this,"isCrossHair",{type:Boolean,default:!1}),h(this,"initModifyPolygon",{type:[String,Object],default:()=>null}),h(this,"hideAdd",{type:Boolean,default:!1}),h(this,"hidePoint",{type:Boolean,default:!1}),h(this,"hideCancel",{type:Boolean,default:!1}),h(this,"hideDelete",{type:Boolean,default:!1}),h(this,"hideSave",{type:Boolean,default:!1}),h(this,"hideLine",{type:Boolean,default:!1}),h(this,"hideArea",{type:Boolean,default:!1}),h(this,"isSwitchMap",{type:Boolean,default:!0}),h(this,"gpsType",{type:Number,default:0}),h(this,"drawZIndex",{type:Number,default:1})}}var g=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.onCreateLine()}}}),t.hideArea?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--mianji",on:{click:function(e){return e.stopPropagation(),t.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.onCreateLine()}}}),t.hideArea?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--mianji",on:{click:function(e){return e.stopPropagation(),t.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)},y=[],v=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},m=[],_=(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 l["CrossHair"](()=>{this.$emit("click",this.getCenter())}),this.map.addControl(this.crossHair)},removeControl(){this.map&&this.crossHair&&(this.map.removeControl(this.crossHair),this.crossHair=null)}}}),b=_;function x(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 w=x(b,v,m,!1,null,null,null),O=w.exports,E={name:"RyMapTool",components:{RyCrossHair:O},props:{lMap:{type:Object,default:()=>null},...new d},watch:{initModifyPolygon(t){this.initModifyPolygon=t,this._initPolygon()},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.isHideAreaAndKM),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(l["fitNew"])(this.lMap.map,[t])},onCreatePolygon(){this.lMap&&(this.drawPolygon=this.lMap.onCreatePolygon(()=>{},this.isHideAreaAndKM),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}=l["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}=l["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()},onCreateLine(){let t=this.lMap.onCreateLine(({id:e,type:r})=>{this.$emit("drawLineEvent",{draw:t,id:e,type:r})});t.Id=Object(l["generateGuid"])()},onCreateArea(){let t=this.lMap.onCreateArea(({id:e,type:r})=>{this.$emit("drawPolygonEvent",{draw:t,id:e,type:r})});t.Id=Object(l["generateGuid"])()},selectGPSAll(t){this.lMap.removeDrawArr(),this.drawPolygon&&this.drawPolygon.selectGPS(t,!0)}}},S=E,C=(r("4bf3"),x(S,g,y,!1,null,"0be147fb",null)),T=C.exports,P=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()},j=[];class M{constructor(){h(this,"switchMapDefaultTypeOrLayer",{type:Array,default:()=>null}),h(this,"height",{type:Number,default:40}),h(this,"isSwitchMapRight",{type:Boolean,default:!0}),h(this,"bottomRight",{type:Boolean,default:!0}),h(this,"isDisabled",{type:Boolean,default:!1}),h(this,"mapTypeAndLayer",{type:Array,default:()=>null}),h(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:"高德地图"}]}),h(this,"mapStyle",{type:Array,default:()=>["地图","卫星","卫星组合"]})}}var R={name:"SwitchMap",props:{...new M},data(){return{isExpand:!0,mapTypeActive:1,mapStyleActive:2,isTop:!0,mapTypeCopy:[],mapStyleCopy:[]}},watch:{switchMapDefaultTypeOrLayer(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)},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(this.switchMapDefaultTypeOrLayer),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}))},_switchMapDefaultTypeOrLayer(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)}}},A=R,L=(r("f7d8"),x(A,P,j,!1,null,"10ed49d6",null)),I=L.exports,k={name:"RyMap",components:{RyMapTool:T,SwitchMap:I},props:{...new f,...new p,...new d},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._bingMapEvent()},bindContextmenu(t){this._bindContextmenu()},binddblClick(t){this._binddblClick()},bindMapMoveend(t){this._bingMapMoveend()},m(t){this.m=t}},data(){return{lMap:new c,drawPolygon:null,mapClick:null,map:null,moveend:null,lastX:0,lastY:0,lastMapType:0,isFirstLoad:!1,contextmenu:null,dblClick:null}},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}=l["GPS"].gcj_decrypt(n[0],n[1]);this.lMap.setCenter([t,e])}else{const{lon:t,lat:e}=l["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){this.lMap.DrawZIndex=this.drawZIndex,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(r){}this._bingMapEvent(),this._bingMapMoveend(),this._bindContextmenu(),this._binddblClick(),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)},_bindContextmenu(){this.bindContextmenu?this._contextmenu():this._contextmenu(!0)},_binddblClick(){this.binddblClick?this._dblClick():this._dblClick(!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(l["fitNew"])(this.map,[t])},drawSuccess(t){this.$emit("drawSuccess",t)},drawError(t){this.$emit("drawError",t)},drawPolygonEvent(t){this.$emit("drawPolygonEvent",t)},drawLineEvent(t){this.$emit("drawLineEvent",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);this.$emit("mapClick2",e);const r=e.getId();if(void 0===r)return;this.$emit("mapClick",r)}}),t?(this.map.un("singleclick",this.mapClick),this.mapClick=null):this.map.on("singleclick",this.mapClick)},_getLayersId(t,e="dblclick"){if(t.dragging)return;const r=this.map.getEventPixel(t.originalEvent),n=this.map.hasFeatureAtPixel(r);if(n){const r=this.map.forEachFeatureAtPixel(t.pixel,t=>t),n=r.getId();if(void 0===n)return;this.$emit(e,n)}t.preventDefault()},_contextmenu(t){this.contextmenu||(this.contextmenu=t=>{this._getLayersId(t,"contextmenuClick")}),t?(this.map.un("contextmenu",this.contextmenu),this.contextmenu=null):this.map.on("contextmenu",this.contextmenu)},_dblClick(t){this.dblClick||(this.dblClick=t=>{this._getLayersId(t,"doubleClickEvent")}),t?(this.map.un("dblclick",this.dblClick),this.dblClick=null):this.map.on("dblclick",this.dblClick)},_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(l["caculateLL"])(this.lastY,this.lastX,r,e),this.$emit("mapMoveend",{m:n,oversteSetValue:n>=this.m,x:e,y:r,e:t}),void(n>=this.m&&(this.lastX=e,this.lastY=r));this.$emit("mapMoveend",{m:n,oversteSetValue:!1,x:e,y:r,e:t})},t?this.map.un("moveend",this.moveend):this.map.on("moveend",this.moveend)},loadDrawPolygonEvent(t){this.$emit("loadDrawPolygonEvent",t)}}},F=k,D=(r("fd93"),x(F,o,a,!1,null,"92718596",null)),G=D.exports;G.install=t=>{t.install(G.name,G)};var N=G;O.install=t=>{t.install(O.name,O)};var z=O;T.install=t=>{t.install(T.name,T)};var B=T,U=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},V=[];class X{constructor(){h(this,"map",{type:Object,default:()=>null}),h(this,"gpsType",{type:Number,default:0})}}class W extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"isShow",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isCheckPointHide",{type:Boolean,default:!1}),h(this,"polygonColor",{type:Array,default:()=>[]}),h(this,"text",{type:String,default:null}),h(this,"isFit",{type:Boolean,default:!0})}}var H={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:r,bbox:n}=this._serializeGeoJson();this.model.coordinates=e,this.bbox=n,this.bboxGCJ02=this.convertBBoxGCJ02(n),t=r}else this.bbox=Object(l["getLngAndLatMaxMin"])(this.model.coordinates),this.bboxGCJ02=this.convertBBoxGCJ02(this.bbox);this.polygon=new l["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(l["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(l["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(l["getCenterPoint"])(r.coordinates)}},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["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(l["getLngAndLatMaxMin"])(this.model.coordinates)},createCheckPoint(t,e){const r=new l["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)}}},Y=H,q=x(Y,U,V,!1,null,null,null),Z=q.exports;Z.install=t=>{t.install(Z.name,Z)};var K=Z,J=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},$=[];class Q extends X{constructor(...t){super(...t),h(this,"modelArr",{type:Array,default:()=>[]}),h(this,"insert",{type:Object,default:()=>null}),h(this,"inserts",{type:Array,default:()=>[]}),h(this,"isShowAll",{type:Boolean,default:!0}),h(this,"isShowPolygon",{type:Object,default:()=>null}),h(this,"isShowPolygons",{type:Array,default:()=>[]}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isCheckPointHideAll",{type:Boolean,default:!1}),h(this,"isCheckPointHide",{type:Object,default:()=>null}),h(this,"isCheckPointHides",{type:Array,default:()=>[]}),h(this,"polygonColor",{type:Object,default:()=>null}),h(this,"polygonColors",{type:Array,default:()=>[]}),h(this,"text",{type:Object,default:()=>null}),h(this,"isFit",{type:Boolean,default:!0}),h(this,"remove",{type:[String,Number,Object],default:()=>null}),h(this,"removes",{type:Array,default:()=>[]}),h(this,"ranges",{type:Array,default:()=>[]}),h(this,"range",{type:[String,Number,Object],default:()=>null}),h(this,"restFit",{type:Boolean,default:!1}),h(this,"correct",{type:Number,default:0})}}var tt={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 l["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(l["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(l["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(l["getCenterPoint"])(n.coordinates)}},getBBOX(){if(!this.model.geo)return Object(l["getLngAndLatMaxMin"])(this.model.coordinates)},createCheckPoint(t,e){const r=new l["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(l["fitNew"])(this.map,e)},_range(t){if(this.bboxMap.has(t)&&1!=this.gpsType){const e=this.bboxMap.get(t);Object(l["fitNew"])(this.map,[e])}else if(this.bboxMapGCJ02.has(t)&&1==this.gpsType){const e=this.bboxMapGCJ02.get(t);Object(l["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(l["getCenterPoint"])(t.coordinates)),this.setBBOXArr(t.id,n.length?n:Object(l["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(l["fitNew"])(this.map,t):this.setFitFist(t[0]))},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e}}},et=tt,rt=x(et,J,$,!1,null,null,null),nt=rt.exports;nt.install=t=>{t.install(nt.name,nt)};var it=nt,ot=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},at=[];const st={fillColor:"rgba(184, 233, 134, 0.56)",stroke:"rgba(23, 168, 162, 0.56)",width:3,text:"块"};var lt={name:"RyClusters",props:{modelArr:{type:Array,default:()=>[]},clusterPolygonModel:{type:Object,default:()=>st},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},distance:{type:Number,default:30}},data(){return{checkPointArr:new Map,currentArr:Array(),fpModelArr:[],featurePolygon:null,multiPolygonMap:new Map,scan:new l["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.featurePolygon=new l["FeaturePolygon"](this.gpsType),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 l["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 l["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(l["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 l["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.distance);this.map.addLayer(r)},selectGPSAll(t){this.polygonSet.forEach(e=>{e.selectGPS(t)}),this.featurePolygon&&this.featurePolygon.selectGPSAll(t)}}},ut=lt,ct=x(ut,ot,at,!1,null,"148ba5e7",null),ht=ct.exports;ht.install=t=>{t.install(ht.name,ht)};var ft=ht,pt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},dt=[];var gt={name:"RyClustersMarker",props:{modelArr:{type:Array,default:()=>[]},text:{type:String,default:()=>"台"},map:{type:Object,default:()=>null},gpsType:{type:Number,default:0},distance:{type:Number,default:200},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 l["FeaturePolygon"](this.gpsType),scan:new l["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 l["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 l["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.distance);this.map.addLayer(r)},selectGPSAll(t){this.featurePolygon&&this.featurePolygon.selectGPSAll(t)}}},yt=gt,vt=x(yt,pt,dt,!1,null,"64b08b64",null),mt=vt.exports;mt.install=t=>{t.install(mt.name,mt)};var _t=mt,bt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},xt=[];class wt extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"isShow",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isFit",{type:Boolean,default:!0}),h(this,"isStandardGeo",{type:Boolean,default:!1})}}var Ot={name:"RyPolygonGeo",props:{...new wt},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.isStandardGeo?this.initNew():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.isStandardGeo?this.initNew():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(l["getLngAndLatMaxMin"])(this.model.coordinates),this.bboxGCJ02=this.convertBBoxGCJ02(this.bbox);this.polygon=Object(l["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})},initNew(){if(this.lastType=this.gpsType,this.model&&this.model.geo){if(this.model.geo){const{bbox:t}=this.model.geo;this.bbox=t,this.bboxGCJ02=this.convertBBoxGCJ02(t)}this.polygon=Object(l["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(l["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(l["getCenterPoint"])(r.coordinates)}},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["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(l["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}}},Et=Ot,St=x(Et,bt,xt,!1,null,null,null),Ct=St.exports;Ct.install=t=>{t.install(Ct.name,Ct)};var Tt=Ct,Pt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"vector-map"},[t._t("polygon",null,{mapDto:{map:t.map,lMap:t.lMap}})],2)},jt=[],Mt={name:"RyVectorMap",props:{isAnalysisBBOX:{type:Boolean,default:!0},isAnalysisCenter:{type:Boolean,default:!0},modelArr:{type:Array,default:()=>[]},delayTime:{type:Number,default:()=>50},bindMapClick:{type:Boolean,default:!1},isDrag:{type:Boolean,default:!0}},data(){return{lMap:new c,drawPolygon:null,mapClick:null,map:null,vmap:null,lastX:0,lastY:0,moveend:null,polygonMap:null}},watch:{modelArr(t){this.initLayers(t)},bindMapClick(t){this.bindMapClick!==t&&(this.bindMapClick=t,this._bingMapEvent())},polygonColor(t){t&&this.setPolygonColor(t.id,t.colorArr)}},mounted(){},methods:{async loadMap(t){const{map:e,vmap:r}=await this.lMap.initVectorMap({el:t,isAnalysisBBOX:this.isAnalysisBBOX,isAnalysisCenter:this.isAnalysisCenter,delayTime:this.delayTime,isDrag:this.isDrag,callback:t=>this.$emit("initLayersEvent",t)});this.map=e,this.vmap=r,this.polygonMap=r.getLayerMap,this._bingMapEvent(),this.$emit("load",{map:e,vmap:r}),this.modelArr.length&&this.initLayers(val)},initLayers(t){this.vmap&&this.vmap.initLayers(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.getProperties(),n=this.map.getView(),[i,o]=n.getCenter(),a=e.getId();r&&this.$emit("mapClick",{...r,id:a||null,currentX:i,currentY:o})}}),t?(this.map.un("click",this.mapClick),this.mapClick=null):this.map.on("click",this.mapClick)},_bingMapEvent(){this.bindMapClick?this._mapClickOnce():this._mapClickOnce(!0)},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)}}},Rt=Mt,At=(r("2241"),x(Rt,Pt,jt,!1,null,"007eb38f",null)),Lt=At.exports;Lt.install=t=>{t.install(Lt.name,Lt)};var It=Lt,kt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[t.isShowPlayback?r("div",{staticClass:"el-slider-box"},[r("el-row",{attrs:{type:"flex",justify:"center"}},[r("el-col",{attrs:{span:1}},[t.index&&t.isStop?r("button",{staticClass:"button-stop",on:{click:function(e){return e.stopPropagation(),t.onStopTrajectory()}}}):r("button",{staticClass:"button-paly",on:{click:function(e){return e.stopPropagation(),t.onPlayTrajectory()}}})]),r("el-col",{staticStyle:{"margin-left":"30px"},attrs:{xs:13,sm:19,md:19,lg:19,xl:23}},[r("el-slider",{attrs:{marks:t.marks,"show-tooltip":"",step:1,min:0,max:t.cacheArr.length-1,"format-tooltip":t.formatTooltip},on:{change:t.sliderChange},model:{value:t.index,callback:function(e){t.index=e},expression:"index"}})],1)],1),r("el-row",{attrs:{type:"flex",justify:"end"}},[r("el-col",[r("section",{staticClass:"control-panel"},[r("span",[t._v("播放倍速:")]),r("span",{class:{active:t.selectActive[0]},on:{click:function(e){return e.stopPropagation(),t.onPlaySpeed(0,200)}}},[t._v("0.5x")]),r("span",{class:{active:t.selectActive[1]},on:{click:function(e){return e.stopPropagation(),t.onPlaySpeed(1,100)}}},[t._v("正常")]),r("span",{class:{active:t.selectActive[2]},on:{click:function(e){return e.stopPropagation(),t.onPlaySpeed(2,50)}}},[t._v("1.5x")]),r("span",{class:{active:t.selectActive[3]},on:{click:function(e){return e.stopPropagation(),t.onPlaySpeed(3,5)}}},[t._v("2.0x")])])])],1)],1):t._e()])},Ft=[];const Dt={color:"red",width:2,zIndex:1};class Gt extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"linenIsert",{type:Object,default:()=>null}),h(this,"isLineFit",{type:Boolean,default:!0}),h(this,"isShowPlayback",{type:Boolean,default:!1}),h(this,"lineAppend",{type:Array,default:()=>[]}),h(this,"startMarkerDto",{type:Object,default:()=>null}),h(this,"endMarkerDto",{type:Object,default:()=>null}),h(this,"moveMarkerDto",{type:Object,default:()=>null}),h(this,"clearLiens",{type:Boolean,default:!1}),h(this,"endMarkerPoint",{type:Array,default:()=>[]}),h(this,"lineDto",{type:Object,default:()=>Dt}),h(this,"isShowAll",{type:Boolean,default:!0})}}var Nt={name:"RyLines",props:{...new Gt},data(){return{lines:null,checkPoint:null,bbox:[],bboxGCJ02:[],lastType:-1,lastLinesDto:null,moveMarker:null,endMarker:null,startMarker:null,pineArr:[],lastLineX:0,lastLineY:0,lastLineX2:0,lastLineY2:0,cacheArr:new Array,cacheModelArr:new Map,cacheColors:new Map,cacheLenArr:new Array,cacheLines:new Array,cacheLineMaps:new Map,cacheScales:new Array,isFist:!0,lastColor:null,len:0,am:new l["AM"],index:0,intervalId:null,selectActive:[!1,!0,!1,!1],marks:{},marks2:{},isPlayback:!1,isStop:!1,playSpeed:100}},watch:{model(t){this.init(),t&&this.insertCache(t.pointArr)},linenIsert(t){this.map&&t&&(this.insertCache(t),this._insertLineAndMarker(t))},gpsType(t){this.selectGPSAll(t)},clearLiens(t){t&&this.clearLine()},lineAppend(t){t.length>0&&this.map&&(this.appendCoordinate(t),this.setMarkerPoint(this.endMarker,t))},isShowPlayback(t){if(!t)return this.endPlaybackLines(),this.index=0,void this.resetPyalPanel();delete this.marks2[this.len],this.marks=this.marks2},isShowAll(t){if(!t)return this.hideAll(),void this.hideMarker();this.showAll(),this.showMarker()}},created(){this.init()},methods:{init(){this.map&&(this.clearLine(),(this.model||this.linenIsert)&&(this.lastType=this.gpsType,this.model&&(this.insertCache(this.model),this._insertLineAndMarker(this.model)),this.linenIsert&&(this.insertCache(this.linenIsert),this._insertLineAndMarker(this.linenIsert))))},insertCache(t){if(t){const{playbackColor:e,pointArr:r}=t;if(!r)return;const n=r.length;if(!r.length)return;this.len+=n,this.cacheArr.push(...t.pointArr),this.cacheColors.set(this.len,e),this.cacheLenArr.push(n),this.marks2[this.len]="",this.cacheScales.push(this.len),this.cacheModelArr.set(this.len,t)}},_insertLineAndMarker(t){const e=t.pointArr;if(this.isLineFit&&this.calculateLineBBOX(e),this.initMarker(e[0]),!t.isAppend){this._insertPoint(t,[this.lastLineX,this.lastLineY]);const r=this.createPolyline(t),n=e.length-1;this.setMarkerPoint(this.endMarker,e[n]);const{x:i,y:o}=this.restLastData(e);return this.lastLineX=i,this.lastLineY=o,void this.pineArr.push(r)}e.forEach(t=>{this.appendCoordinate(t)});const r=e.length-1;this.setMarkerPoint(this.endMarker,e[r]),this.restLastData(e)},_insertLineAndMarker2(t){this._insertPoint(t,[this.lastLineX2,this.lastLineY2]);const e=t.pointArr,r=this.createPolyline(t),{x:n,y:i}=this.restLastData(e);this.lastLineX2=n,this.lastLineY2=i,this.cacheLines.push(r)},async calculateLineBBOX(t){return await new Promise(e=>{t.forEach(t=>{this.am.getLngAndLatMaxMin({X:t[0],Y:t[1]})});let r=[];r=this.gpsType?this.am.getLngLatGCJ02():this.am.getLngLats(),Object(l["fitNew"])(this.map,[[r[0],r[1]],[r[2],r[3]]]),e()})},initMarker(t){(this.startMarkerDto||this.endMarkerDto)&&(this.startMarker||this.endMarker||(this.startMarker=this.createStartMarker(this.startMarkerDto,t),this.endMarker=this.createStartMarker(this.endMarkerDto)))},setMarkerPoint(t,e){t&&e.length>1&&t.setPosition(e,this.gpsType)},restLastData(t){if(t.length>0){const[e,r]=t[t.length-1];return{x:e,y:r}}},_insertPoint(t,e){const[r,n]=e;r>0&&n>0&&t&&t.pointArr.unshift(e)},createPolyline(t={color:"rgb(0,0,255)",width:2,pointArr:[],zIndex:1}){return new l["Polyline"]({...t,type:this.gpsType},this.map)},createStartMarker({offset:t,url:e,width:r,height:n},i=[]){const o=new l["LMarker"](e,r,n);return o.setOffset(t),i.length&&o.setPosition(i,this.gpsType),this.map.addOverlay(o.getMarker()),o},getLngLatGCJ02(t){const e=[];return t.forEach(t=>{const{lon:r,lat:n}=l["GPS"].gcj_encrypt(t[0],t[1]);e.push([r,n])}),e},removeLines(){this.pineArr.forEach(t=>{t.removePolyline()}),this.pineArr=[]},showAll(){this.pineArr.forEach(t=>{t.show()})},hideAll(){this.pineArr.forEach(t=>{t.hide()})},showMarker(){this.endMarker&&this.endMarker.show(),this.startMarker&&this.startMarker.show(),this.moveMarker&&this.moveMarker.show()},hideMarker(){this.endMarker&&this.endMarker.hide(),this.startMarker&&this.startMarker.hide(),this.moveMarker&&this.moveMarker.hide()},removeLineMarker(){this.map&&(this.endMarker&&this.map.removeOverlay(this.endMarker.getMarker()),this.startMarker&&this.map.removeOverlay(this.startMarker.getMarker()),this.moveMarker&&this.map.removeOverlay(this.moveMarker.getMarker()),this.moveMarker=null,this.endMarker=null,this.startMarker=null)},clearLine(){this.resetPyalPanel(),this.removeLines(),this.removeLineMarker(),this.cacheArr=[],this.lastColor=null,this.lastLineX=0,this.lastLineY=0,this.am=null,this.am=new l["AM"],this.marks={},this.marks2={},this._clearInterval(),this.clearCacheLines()},_clearInterval(){this.intervalId&&clearInterval(this.intervalId)},clearCacheLines(){this.endPlaybackLines(),this.cacheLenArr=[],this.cacheArr=[],this.cacheColors.clear(),this.cacheModelArr.clear(),this.len=0,this.cacheScales=[],this.index=0},endPlaybackLines(){this._clearInterval(),this.cacheLines.forEach(t=>{t.removePolyline()}),this.moveMarker&&this.map.removeOverlay(this.moveMarker.getMarker()),this.isPlayback=!1,this.isStop=!1,this.cacheLines=[],this.cacheLineMaps.clear(),this.moveMarker=null,this.lastLineX2=0,this.lastLineY2=0},stopPlaybackLines(t){this.isPlayback=!1,this.isStop=!1,t?this._clearInterval():this.trackPlayback()},createTrackLineAndMarker(t=0,e=0){const r=t,{playbackColor:n,width:i,zIndex:o}=this.cacheModelArr.get(r),a=this.createPolyline({color:n,isAppend:!1,width:i,pointArr:[],zIndex:o},this.gpsType);this.lastColor=n,this.cacheLines.push(a),this.moveMarkerDto&&!this.moveMarker&&(this.moveMarker=this.createStartMarker(this.moveMarkerDto,this.cacheArr[e]))},trackPlayback(){this.cacheLines.length||this.createTrackLineAndMarker(this.cacheScales[0],0),this.intervalId=setInterval(t=>{if(this.index>=this.len-1||!this.isPlayback){const t=this.cacheLines[this.cacheLines.length-1],e=this.cacheArr[this.index];return this.setMarkerPoint(this.moveMarker,e),t.appendCoordinate(e,this.gpsType),this.$emit("trackPlayEvent",{index:this.index,points:e}),this._clearInterval(),this.index=0,this.isStop=!1,void this.$emit("trackPlayEvent",{index:this.index,points:this.cacheArr[0]})}const e=this.getKey(this.index);if(this.cacheColors.has(e)&&!this.cacheLineMaps.has(e)&&!this.cacheLineMaps.has(e)){this.createTrackLineAndMarker(e,this.index);const t=this.cacheLines[this.cacheLines.length-1];this.cacheLineMaps.set(e,t);const r=this.index-1==-1?0:this.index-1;t.appendCoordinate(this.cacheArr[r],this.gpsType)}const r=this.cacheLines[this.cacheLines.length-1],n=this.cacheArr[this.index];this.setMarkerPoint(this.moveMarker,n),r.appendCoordinate(n,this.gpsType),this.$emit("trackPlayEvent",{index:this.index,points:n}),this.index+=1},this.playSpeed)},appendCoordinate(t=[]){if(!t.length)return;this.pineArr.length||this._insertLineAndMarker({...this.lineDto,pointArr:[t],isAppend:!1});const e=this.pineArr[this.pineArr.length-1];e.appendCoordinate(t,this.gpsType)},formatTooltip(t){return t/100},getKeys(t){const e=[];for(let r=0;r<this.cacheScales.length;r++){if(!(t>=this.cacheScales[r])){e.push(this.cacheScales[r]);break}e.push(this.cacheScales[r])}return e},getKey(t){for(let e=0;e<this.cacheScales.length;e++){const r=this.cacheScales[e];if(t<=r)return r}return 0},createLineModels(t,e,r){const n=[],i=[...e];if(t.length<=1){const e=t[0],{width:o,zIndex:a}=this.cacheModelArr.get(e);return n.push({isAppend:!1,color:this.cacheColors.get(e),width:o,zIndex:a,pointArr:i.splice(0,r+1)}),n}for(let o=0;o<t.length;o++){const e=t[o],{width:r,zIndex:a}=this.cacheModelArr.get(e),s=i.splice(0,this.cacheLenArr[o]);if(s.length){const t={color:this.cacheColors.get(e),width:r,zIndex:a,pointArr:s};n.push(t)}}return n},sliderChange(t){if(this.endPlaybackLines(),0===t)return void this.$emit("trackPlayEvent",{index:t,points:this.cacheArr[0]});const e=this.cacheArr.slice(0,t+1),r=this.createLineModels(this.getKeys(t),e,t);r.forEach(t=>this._insertLineAndMarker2(t,!1)),e.length&&this.$emit("trackPlayEvent",{index:t,points:e[e.length-1]}),this.moveMarkerDto&&!this.moveMarker&&e.length&&(this.moveMarker=this.createStartMarker(this.moveMarkerDto,e[e.length-1]))},onPlayTrajectory(){this.isStop||0==this.index&&this.endPlaybackLines(),this.isPlayback=!0,this.isStop=!0,this.trackPlayback()},onStopTrajectory(){this.isStop=!1,this._clearInterval()},onPlaySpeed(t,e){this.selectActive=this.selectActive.map(t=>!1),this.selectActive[t]=!0,this.playSpeed=e,this.isStop=!1,this._clearInterval()},resetPyalPanel(){this.selectActive=[!1,!0,!1,!1,!1],this.playSpeed=100},selectGPSAll(t){this.pineArr.forEach(e=>{e.selectGPS(t)}),this.endPlaybackLines(),this.index=0,this.startMarker&&this.startMarker.selectGPS(t),this.endMarker&&this.endMarker.selectGPS(t),this.moveMarker&&this.moveMarker.selectGPS(t)}}},zt=Nt,Bt=(r("7dc7"),x(zt,kt,Ft,!1,null,"c1f258de",null)),Ut=Bt.exports;Ut.install=t=>{t.install(Ut.name,Ut)};var Vt=Ut,Xt=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,isHideAreaAndKM:t.isHideAreaAndKM},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._t("marker",null,{mapDto:{map:t.map,lMap:t.lMap}})]:t._e()],2)},Wt=[];class Ht{constructor(){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.initModifyPolygon={type:[String,Object],default:()=>null}}}class Yt{constructor(t){this.zoom={type:Number,default:10},this.maxZoom={type:Number,default:28},this.minZoom={type:Number,default:1},this.center={type:Array,default:()=>[2575,1450]},this.bbox={type:Array,default:()=>[]},this.url={type:String,default:()=>null},this.imageSize={type:Array,default:()=>[0,0,7247,3562]},this.imageExtent={type:Array,default:()=>[500,400,5e3,2700]}}}var qt=r("c810"),Zt=r("e7df"),Kt=r("a2c7"),Jt=r("f5dd"),$t={name:"RyStaticMap",components:{RyMapTool:T},props:{...new Ht,...new Yt,...new d},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())},url(t){this.map&&(this.selectLayer(),this.setCenter())}},data(){return{lMap:new c,drawPolygon:null,mapClick:null,map:null,moveend:null,lastX:0,lastY:0,layer:null}},methods:{getImageLayer(){return new qt["default"]({source:new Zt["default"]({crossOrigin:"anonymous",imageSize:this.imageSize,imageExtent:this.imageExtent,url:this.url})})},getProjection(){return new Jt["default"]({code:3875,extent:this.imageExtent,units:"m"})},getView(){return new Kt["default"]({projection:"EPSG:3857",center:this.center,Projection:this.getProjection(),zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom})},async loadMap(t){this.layer=this.getImageLayer();const e=await this.lMap.initStaticMap(t,{view:this.getView(),layer:this.layer});this.map=e,this.$emit("load",{map:e,mapServices:this.lMap,ryMapTool:this.$refs.mapTool})},_bingMapEvent(){this.bindMapClick?this._mapClickOnce():this._mapClickOnce(!0)},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(l["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)},removeLayer(){this.map&&this.layer&&this.map.removeLayer(this.layer)},selectLayer(){this.removeLayer(),this.map&&(this.layer=this.getImageLayer(),this.map.addLayer(this.layer),this.$emit("selectMapEvent"))},loadDrawPolygonEvent(t){this.$emit("loadDrawPolygonEvent",t)}}},Qt=$t,te=(r("e8ba"),x(Qt,Xt,Wt,!1,null,"8a78c586",null)),ee=te.exports;ee.install=t=>{t.install(ee.name,ee)};var re=ee,ne=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._t("marker",null,{mapDto:{map:t.map,lMap:t.lMap}})]:t._e()],2)},ie=[];class oe{constructor(){h(this,"isShowSwitchMap",{type:Boolean,default:!0}),h(this,"urls",{type:Array,default:()=>[]}),h(this,"boundaryModel",{type:Object,default:()=>null}),h(this,"slicingZoom",{type:Number,default:13}),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:"卫星组合"}]}]}}}var ae={name:"RyOfflineMap",components:{RyMapTool:T},props:{...new oe,...new p,...new d},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},boundaryModel(t){this.map}},data(){return{lMap:new c,drawPolygon:null,mapClick:null,map:null,moveend:null,lastX:0,lastY:0,lastMapType:0,isFirstLoad:!1}},methods:{_setMaxZoom(t,e){this.setMaxZoom(18)},async loadMap(t){this.lMap.initOfflineMap(100,{el:t,urls:this.urls,callback:({map:t,lMap:e})=>{e.setView(this.center,this.bbox);const r=e.getView();r.fit(this.bbox,[50,50,50,50]),r.setMaxZoom(this.minZoom),r.setMaxZoom(this.maxZoom),this.map=t;const{geo:n,width:i,color:o,lineDash:a}=this.boundaryModel;e.SlicingZoom=this.slicingZoom,e.initMapMaskEvent(t.getLayers(),n,{width:i,color:o,lineDash:a}),this._bingMapEvent(),this._bingMapMoveend(),this.$emit("load",{map:t,mapServices:this.lMap,ryMapTool:this.$refs.mapTool})}})},_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(l["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(l["caculateLL"])(this.lastY,this.lastX,r,e),this.$emit("mapMoveend",{m:n,oversteSetValue:n>=this.m,x:e,y:r,e:t}),void(n>=this.m&&(this.lastX=e,this.lastY=r));this.$emit("mapMoveend",{m:n,oversteSetValue:!1,x:e,y:r,e:t})},t?this.map.un("moveend",this.moveend):this.map.on("moveend",this.moveend)},loadDrawPolygonEvent(t){this.$emit("loadDrawPolygonEvent",t)}}},se=ae,le=(r("fbd6"),x(se,ne,ie,!1,null,"44c7c94c",null)),ue=le.exports;ue.install=t=>{t.install(RyMap.name,ue)};var ce=ue,he=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},fe=[];class pe extends X{constructor(...t){super(...t),h(this,"modelArr",{type:Array,default:()=>[]}),h(this,"insert",{type:Object,default:()=>null}),h(this,"inserts",{type:Array,default:()=>[]}),h(this,"isShowAll",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isFit",{type:Boolean,default:!0}),h(this,"setColor",{type:Object,default:()=>null})}}var de={name:"RyKMLs",props:{...new pe},data(){return{bbox:[],bboxMap:new Map,bboxGCJ02:[],bboxMapGCJ02:new Map,kmlMap:new Map,isCreate:!0,lastType:-1,urls:new Map,gcj02Urls:new Map,lastColor:null,lastId:0}},watch:{modelArr(t){this._remove(),t.length&&(this.modelArr=t,this.init(t))},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))},insert(t){this._insert(t),this.isFit&&setTimeout(()=>{this.setFit()},50)},inserts(t){this._inserts(t)},clear(t){t&&this._remove()},isShowAll(t){t?this.showAll():this.hideAll()},setColor(t){t&&this._setColor(t)}},created(){this.lastType=this.gpsType,this.modelArr.length?this.init(this.modelArr):this.inserts.length&&this.init(this.inserts)},methods:{init(t){t&&t.length&&(t.forEach(t=>{this._insert(t)}),this.isFit&&setTimeout(()=>{this.setFit()},50))},_inserts(t){this.lastType=this.gpsType,t.forEach(t=>{this._insert(t,!1)}),this.isFit&&setTimeout(()=>{this.setFit()},50)},_insert(t){const{id:e,url:r,bbox:n,isShow:i,stroke:o,fillColor:a,zIndex:s,width:u,extractStyles:c,gcj02Url:h}=t;if(!this.kmlMap.has(e)){const t=new l["LKML"]({id:e,url:1==this.gpsType?h:r,bbox:n,isShow:i,stroke:o,fillColor:a,zIndex:s,width:u},this.map,c);this.kmlMap.set(e,t),this.urls.set(e,r),h&&this.gcj02Urls.set(e,h)}this.setBBOXArr(t.id,n)},_setZoom(){const t=this.map.getView().getZoom();this.map.getView().setZoom(t+1e-5),this.map.getView().setZoom(t-1e-4)},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)}},setUrl(t,e){this.kmlMap.has(t)&&this.kmlMap.get(t).setUrl(e)},setFit(){this.bbox.length&&this.map&&(this.bbox.length>1?Object(l["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(l["fitNew"])(this.map,[e,r])},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},_remove(){this.kmlMap.forEach(t=>{t.removeKML(),t=null}),this.kmlMap.clear(),this.bboxMap.clear(),this.bbox=[],this.bboxGCJ02=[],this.bboxMapGCJ02.clear(),this.urls.clear(),this.gcj02Urls.clear(),this.lastColor=null,this.lastId=0},selectGPSAll(t){const e=1==t?this.gcj02Urls:this.urls;e.forEach((t,e)=>{this.setUrl(e,t)})},_setColor(t){const{color:e,id:r}=t;if(this.kmlMap.has(r)){const t=this.kmlMap.get(r);t.setPolygonColor([e,e])}this._setZoom()},setCenter(t){if(this.bboxMapGCJ02.has(t)){const e=1==this.gpsType?this.bboxMapGCJ02.get(t):this.bboxMap.get(t);this.setFitFist(e)}},showAll(){this.kmlMap.forEach(t=>t.show()),this.restFit&&this._restFit()},hideAll(){this.kmlMap.forEach(t=>t.hide())}}},ge=de,ye=x(ge,he,fe,!1,null,null,null),ve=ye.exports;ve.install=t=>{t.install(ve.name,ve)};var me=ve,_e=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},be=[];class xe extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"isShow",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isFit",{type:Boolean,default:!0})}}var we={name:"RyKML",props:{...new xe},data(){return{bbox:[],bboxGCJ02:[],kml:null,lastType:-1,url:null,gcj02Url:null}},watch:{model(t){this._remove(),t&&(this.model=t,this.init(t))},clear(t){t&&this._remove()},isShow(t){t?this.showAll():this.hideAll()},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.lastType=this.gpsType,this.model&&this.init(this.model)},methods:{init(t){this._insert(t),this.isFit&&setTimeout(()=>{this.setFit()},50)},_insert(t){const{id:e,url:r,bbox:n,is:i,stroke:o,fillColor:a,zIndex:s,width:u,extractStyles:c,gcj02Url:h}=t,f=new l["LKML"]({id:e,url:1==this.gpsType?h:r,bbox:n,is:i,stroke:o,fillColor:a,zIndex:s,width:u},this.map,c);this.kml=f,this.url=r,this.gcj02Url=h,this.setBBOXArr(n)},setBBOXArr(t){this.bbox=t;const e=this.convertBBoxGCJ02(t);this.bboxGCJ02=e},setUrl(t){this.kml&&this.kml.setUrl(t)},setFit(){this.bbox.length&&this.map&&this.setFitFist(1==this.gpsType?this.bboxGCJ02:this.bbox)},setFitFist(t){const e=[t[0],t[3],t[2],t[1]],r=[t[2],t[1],t[0],t[3]];Object(l["fitNew"])(this.map,[e,r])},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},_remove(){this.kml&&(this.kml.removeKML(),this.bbox=[],this.bboxGCJ02=[],this.url=null,this.gcj02Url=null)},selectGPSAll(t){const e=1==t?this.gcj02Url:this.url;this.setUrl(e)},show(){this.kml&&(this.kml.show(),this.isFit&&setTimeout(()=>{this.setFit()},50))},hide(){this.kml&&this.kml.hide()}}},Oe=we,Ee=x(Oe,_e,be,!1,null,null,null),Se=Ee.exports;Se.install=t=>{t.install(Se.name,Se)};var Ce=Se,Te=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},Pe=[];class je extends X{constructor(...t){super(...t),h(this,"modelArr",{type:Array,default:()=>[]}),h(this,"insert",{type:Object,default:()=>null}),h(this,"inserts",{type:Array,default:()=>[]}),h(this,"isShowAll",{type:Boolean,default:!0}),h(this,"isShow",{type:Object,default:()=>null}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isFit",{type:Boolean,default:!0})}}var Me={name:"RyStaticLayers",props:{...new je},data(){return{bbox:[],bboxMap:new Map,bboxGCJ02:[],bboxMapGCJ02:new Map,staticMap:new Map,isCreate:!0,lastType:-1}},watch:{modelArr(t){this._remove(),t.length&&(this.modelArr=t,this.init(t))},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))},insert(t){this.insert=t,this._insert(t),this.isFit&&setTimeout(()=>{this.setFit()},50)},inserts(t){this.inserts=t,this._inserts(t)},clear(t){t&&this._remove()},isShowAll(t){t?this.showAll():this.hideAll()},isShow(t){t&&this._isShow(t)}},created(){this.lastType=this.gpsType,this.init(this.modelArr)},methods:{init(t){t&&t.length&&(t.forEach(t=>{this._insert(t)}),this.isFit&&setTimeout(()=>{this.setFit()},50))},_inserts(t){this.lastType=this.gpsType,t.forEach(t=>{this._insert(t,!1)}),this.isFit&&setTimeout(()=>{this.setFit()},50)},_insert(t){const{id:e,url:r,bbox:n,zIndex:i,projection:o}=t;if(!this.staticMap.has(e)){const t=new l["staticImage"]({id:e,url:r,imageExtent:n,zIndex:i,type:this.gpsType,projection:o},this.map);this.staticMap.set(e,t)}this.setBBOXArr(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 r=this.convertBBoxGCJ02(e);this.bboxGCJ02.push(r),this.bboxMapGCJ02.set(t,r)}},setFit(){this.bbox.length&&this.map&&(this.bbox.length>1?Object(l["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(l["fitNew"])(this.map,[e,r])},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},_remove(){this.staticMap.forEach(t=>{t.removeImageLayer(),t=null}),this.staticMap.clear(),this.bboxMap.clear(),this.bbox=[],this.bboxGCJ02=[],this.bboxMapGCJ02.clear()},selectGPSAll(t){this.staticMap.forEach(e=>{e.selectGPS(t)})},showAll(){this.staticMap.forEach(t=>t.show()),this.restFit&&this._restFit()},hideAll(){this.staticMap.forEach(t=>t.hide())},_isShow(t){const e=t.id;if(this.staticMap.has(e)){const r=this.staticMap.get(e);if(t.show)return void r.show();r.hide()}}}},Re=Me,Ae=x(Re,Te,Pe,!1,null,null,null),Le=Ae.exports;Le.install=t=>{t.install(Le.name,Le)};var Ie=Le,ke=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},Fe=[];class De extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"isShow",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isFit",{type:Boolean,default:!0})}}var Ge={name:"RyStaticLayer",props:{...new De},data(){return{bbox:[],bboxGCJ02:[],staticImg:null,lastType:-1}},watch:{model(t){this._remove(),t&&this.init(t)},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))},clear(t){t&&this._remove()},isShow(t){this._isShow(t)}},created(){this.lastType=this.gpsType,this.init(this.model)},methods:{init(t){t&&(this._insert(t),this.isFit&&setTimeout(()=>{this.setFit()},50))},_insert(t){const{id:e,url:r,bbox:n,zIndex:i,projection:o}=t;let a="EPSG:4326";o instanceof Object&&(a=o);const s=new l["staticImage"]({id:e,url:r,imageExtent:n,zIndex:i,type:this.gpsType,projection:a},this.map);this.staticImg=s,this.setBBOXArr(n)},setBBOXArr(t){this.bbox.push(t);const e=this.convertBBoxGCJ02(t);this.bboxGCJ02.push(e)},setFit(){this.bbox.length&&this.map&&(this.bbox.length>1?Object(l["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(l["fitNew"])(this.map,[e,r])},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},_remove(){this.staticImg&&this.staticImg.removeImageLayer(),this.staticImg=null,this.bbox=[],this.bboxGCJ02=[]},selectGPSAll(t){this.staticImg&&this.staticImg.selectGPS(t)},_isShow(t){if(this.staticImg){const e=this.staticImg;if(t)return void e.show();e.hide()}}}},Ne=Ge,ze=x(Ne,ke,Fe,!1,null,null,null),Be=ze.exports;Be.install=t=>{t.install(Be.name,Be)};var Ue=Be,Ve=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},Xe=[];class We extends X{constructor(...t){super(...t),h(this,"modelArr",{type:Array,default:()=>[]}),h(this,"insert",{type:Object,default:()=>null}),h(this,"inserts",{type:Array,default:()=>[]}),h(this,"isShowAll",{type:Boolean,default:!0}),h(this,"isShow",{type:Object,default:()=>null}),h(this,"clear",{type:Boolean,default:!1})}}var He={name:"RyWMSs",props:{...new We},data(){return{wmsMap:new Map,isCreate:!0}},watch:{modelArr(t){this._remove()},insert(t){this._insert(t)},inserts(t){this._inserts(t)},clear(t){t&&this._remove()},isShowAll(t){t?this.showAll():this.hideAll()},isShow(t){t&&this._isShow(t)}},created(){this.modelArr.length?this.init(this.modelArr):this.inserts.length&&this.init(this.inserts)},methods:{init(t){t&&t.length&&t.forEach(t=>{this._insert(t)})},_inserts(t){t.forEach(t=>{this._insert(t,!1)})},_insert(t){if(!this.wmsMap.has(t.id)){const e=new l["LWMS"]({map:this.map,...t});this.wmsMap.set(t.id,e)}},_remove(){this.wmsMap.forEach(t=>t.removeLayer())},showAll(){this.wmsMap.forEach(t=>t.show())},hideAll(){this.wmsMap.forEach(t=>t.hide())},_isShow(t){const e=t.id;if(this.wmsMap.has(e)){const r=this.wmsMap.get(e);if(t.isShow)return void r.show();r.hide()}}}},Ye=He,qe=x(Ye,Ve,Xe,!1,null,null,null),Ze=qe.exports;Ze.install=t=>{t.install(Ze.name,Ze)};var Ke=Ze,Je=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},$e=[];class Qe extends X{constructor(...t){super(...t),h(this,"modelArr",{type:Array,default:()=>[]}),h(this,"insert",{type:Object,default:()=>null}),h(this,"inserts",{type:Array,default:()=>[]}),h(this,"isShowAll",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isShow",{type:Object,default:()=>null})}}var tr={name:"RyWMTSs",props:{...new Qe},data(){return{wmtsMap:new Map,isCreate:!0}},watch:{modelArr(t){this._remove()},insert(t){this._insert(t)},inserts(t){this._inserts(t)},clear(t){t&&this._remove()},isShowAll(t){t?this.showAll():this.hideAll()},isShow(t){t&&this._isShow(t)}},created(){this.modelArr.length?this.init(this.modelArr):this.inserts.length&&this.init(this.inserts)},methods:{init(t){t&&t.length&&t.forEach(t=>{this._insert(t)})},_inserts(t){t.forEach(t=>{this._insert(t,!1)})},_insert(t){if(!this.wmtsMap.has(t.id)){console.log(t);const e=new l["LWMTS"](t.opt,t.params);this.wmtsMap.set(t.id,e)}},_remove(){this.wmtsMap.forEach(t=>t.removeLayer())},showAll(){this.wmtsMap.forEach(t=>t.show())},hideAll(){this.wmtsMap.forEach(t=>t.hide())},_isShow(t){const e=t.id;if(this.wmtsMap.has(e)){const r=this.wmtsMap.get(e);if(t.isShow)return void r.show();r.hide()}}}},er=tr,rr=x(er,Je,$e,!1,null,null,null),nr=rr.exports;nr.install=t=>{t.install(nr.name,nr)};var ir=nr;const or=[N,z,B,K,it,ft,Tt,_t,It,Vt,re,ce,me,Ce,Ie,Ue,Ke,ir],ar=(t,e)=>{or.forEach(e=>{t.component(e.name,e)})};"undefined"!==typeof window&&window.Vue&&ar(window.Vue);var sr={install:ar};e["default"]=sr},fbd6:function(t,e,r){"use strict";r("a218")},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}))},fd93:function(t,e,r){"use strict";r("0532")},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"),C=r("a2c7"),T=r("496f"),P=r("a896"),j=r("92fa"),M=r("0af5"),R=r("256f"),A=r("1300"),L=r("345d"),I=r("0999"),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)}}();function F(t){t instanceof s["a"]?t.setMapInternal(null):t instanceof l["b"]&&t.getLayers().forEach(F)}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 C["default"]||e.view.then((function(t){a.setView(new C["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 k(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(R["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(R["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[T["a"].ANIMATING]||i[T["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){F(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(M["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(M["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(M["isEmpty"])(this.previousExtent_)&&!Object(M["equals"])(o.extent,this.previousExtent_);u&&(this.dispatchEvent(new b["a"](x["a"].MOVESTART,this,i)),this.previousExtent_=Object(M["createOrUpdateEmpty"])(this.previousExtent_))}var c=this.previousExtent_&&!o.viewHints[T["a"].ANIMATING]&&!o.viewHints[T["a"].INTERACTING]&&!Object(M["equals"])(o.extent,this.previousExtent_);c&&(this.dispatchEvent(new b["a"](x["a"].MOVEEND,this,o)),Object(M["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 C["default"])this.set(w["a"].VIEW,t);else{this.set(w["a"].VIEW,new C["default"]);var e=this;t.then((function(t){e.setView(new C["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 C["default"]?t.view:new C["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}})}));
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:C,isFinite:T,isNaN:P}=Number,{iterator:j,species:M,toStringTag:R,for:A}=Symbol,L=Object,{create:I,defineProperty:k,freeze:F,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),B=Array,U=B.isArray,V=B.prototype,X=p(V.join),W=p(V.push),H=p(V.toLocaleString),Y=V[j],q=p(Y),Z=Math.trunc,K=ArrayBuffer,J=K.isView,$=K.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,R),xt=Uint16Array,wt=(...t)=>g(it,xt,t),Ot=Uint32Array,Et=Float32Array,St=b([][j]()),Ct=p(St.next),Tt=p(function*(){}().next),Pt=b(St),jt=DataView.prototype,Mt=p(jt.getUint16),Rt=p(jt.setUint16),At=TypeError,Lt=RangeError,It=WeakSet,kt=It.prototype,Ft=p(kt.add),Dt=p(kt.has),Gt=WeakMap,Nt=Gt.prototype,zt=p(Nt.get),Bt=p(Nt.has),Ut=p(Nt.set),Vt=new Gt,Xt=I(null,{next:{value:function(){const t=zt(Vt,this);return Ct(t)}},[j]:{value:function(){return this}}});function Wt(t){if(t[j]===Y)return t;const e=I(Xt);return Ut(Vt,e,q(t)),e}const Ht=new Gt,Yt=I(Pt,{next:{value:function(){const t=zt(Ht,this);return Tt(t)},writable:!0,configurable:!0}});for(const Fe of w(St))"next"!==Fe&&k(Yt,Fe,_(St,Fe));function qt(t){const e=I(Yt);return Ut(Ht,e,t),e}function Zt(t){return null!==t&&"object"===typeof t||"function"===typeof t}function Kt(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(!U(t))return!1;if(t[j]===Y)return!0;const e=t[j]();return"Array Iterator"===e[R]}function re(t){if(!Jt(t))return!1;if(t[j]===at)return!0;const e=t[j]();return"Array Iterator"===e[R]}function ne(t){if("string"!==typeof t)return!1;const e=+t;return t===e+""&&(!!T(e)&&e===Z(e))}const ie=A("__Float16Array__");function oe(t){if(!Kt(t))return!1;const e=b(t);if(!Kt(e))return!1;const r=e.constructor;if(void 0===r)return!1;if(!Zt(r))throw At(i);return x(r,ie)}const ae=new K(4),se=new Et(ae),le=new Ot(ae),ue=new Ot(512),ce=new Ot(512);for(let Fe=0;Fe<256;++Fe){const t=Fe-127;t<-27?(ue[Fe]=0,ue[256|Fe]=32768,ce[Fe]=24,ce[256|Fe]=24):t<-14?(ue[Fe]=1024>>-t-14,ue[256|Fe]=1024>>-t-14|32768,ce[Fe]=-t-1,ce[256|Fe]=-t-1):t<=15?(ue[Fe]=t+15<<10,ue[256|Fe]=t+15<<10|32768,ce[Fe]=13,ce[256|Fe]=13):t<128?(ue[Fe]=31744,ue[256|Fe]=64512,ce[Fe]=24,ce[256|Fe]=24):(ue[Fe]=31744,ue[256|Fe]=64512,ce[Fe]=13,ce[256|Fe]=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 Fe=1;Fe<1024;++Fe){let t=Fe<<13,e=0;while(0===(8388608&t))t<<=1,e-=8388608;t&=-8388609,e+=947912704,fe[Fe]=t|e}for(let Fe=1024;Fe<2048;++Fe)fe[Fe]=939524096+(Fe-1024<<13);for(let Fe=1;Fe<31;++Fe)pe[Fe]=Fe<<23;pe[31]=1199570944,pe[32]=2147483648;for(let Fe=33;Fe<63;++Fe)pe[Fe]=2147483648+(Fe-32<<23);pe[63]=3347054592;for(let Fe=1;Fe<64;++Fe)32!==Fe&&(de[Fe]=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:Z(e)}function ve(t){const e=ye(t);return e<0?0:e<C?e:C}function me(t,r){if(!Zt(t))throw At(e);const n=t.constructor;if(void 0===n)return r;if(!Zt(n))throw At(i);const o=n[M];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 Bt(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=Ce(t);n=_t(e)}else n=_t(t);if(n<e)throw At(a)}if($t(t))throw At(u)}function Ce(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(Me,[r,t.byteOffset,t.length],t.constructor);return zt(we,n)}function Te(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 Fe of w(ot)){if(Fe===R)continue;const t=_(ot,Fe);z(t,"get")&&"function"===typeof t.get&&Ft(Pe,t.get)}const je=F({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 Me{constructor(t,e,r){let n;if(Oe(t))n=y(xt,[Ce(t)],new.target);else if(Zt(t)&&!Qt(t)){let e,r;if(Jt(t)){e=t,r=_t(t);const i=vt(t),o=te(i)?K:me(i,K);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 Ut(we,i,n),i}static from(t,...e){const r=this;if(!x(r,ie))throw At(n);if(r===Me){if(Oe(t)&&0===e.length){const e=Ce(t),r=new xt(vt(e),mt(e),_t(e));return new Me(vt(gt(r)))}if(0===e.length)return new Me(vt(wt(t,he)));const r=e[0],n=e[1];return new Me(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===Me){const e=new Me(r),n=Ce(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=Ce(this);return st(t)}values(){Ee(this);const t=Ce(this);return qt(function*(){for(const e of lt(t))yield ge(e)}())}entries(){Ee(this);const t=Ce(this);return qt(function*(){for(const[e,r]of ut(t))yield[e,ge(r)]}())}at(t){Ee(this);const e=Ce(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=Ce(this),n=_t(r),i=e[0],o=me(r,Me);if(o===Me){const e=new Me(n),o=Ce(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=Ce(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,Me),s=new a(o);return Se(s),s}reduce(t,...e){Ee(this);const r=Ce(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=Ce(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=Ce(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=Ce(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=Ce(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=Ce(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=Ce(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=Ce(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=Ce(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=Ce(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(Ce(this),Ce(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=Ce(this);return ht(t),this}fill(t,...e){Ee(this);const r=Ce(this);return ft(r,he(t),...Wt(e)),this}copyWithin(t,e,...r){Ee(this);const n=Ce(this);return pt(n,t,e,...Wt(r)),this}sort(t){Ee(this);const e=Ce(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=Ce(this),n=me(r,Me);if(n===Me){const n=new xt(vt(r),mt(r),_t(r));return new Me(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=Ce(this),n=me(r,Me),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=Ce(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=Ce(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=Ce(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=Ce(this),r=Te(e);return X(r,t)}toLocaleString(...t){Ee(this);const e=Ce(this),r=Te(e);return H(r,...Wt(t))}get[R](){if(Oe(this))return"Float16Array"}}k(Me,"BYTES_PER_ELEMENT",{value:xe}),k(Me,ie,{}),E(Me,nt);const Re=Me.prototype;function Ae(t){return Jt(t)||Oe(t)}function Le(t,e,...r){return ge(Mt(t,e,...Wt(r)))}function Ie(t,e,r,...n){return Rt(t,e,he(r),...Wt(n))}function ke(t){const e=+t;if(!T(e)||0===e)return e;const r=he(e);return ge(r)}k(Re,"BYTES_PER_ELEMENT",{value:xe}),k(Re,j,{value:Re.values,writable:!0,configurable:!0}),E(Re,ot),t.Float16Array=Me,t.getFloat16=Le,t.hfround=ke,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,e){var r=document.createElement("i");r.style.fontSize="30px",r.className=e,e=document.createElement("div");return f(e),p(e,t),e.appendChild(r),{element:e,icon_i:r}}var g=function(t){(0,a.default)(r,t);var e=c(r);function r(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"el-icon--zhunxin1",o=(t=((0,i.default)(this,r),d(t,n)),n=t.element,t=t.icon_i,e.call(this,{element:n,target:null}));return o._ele=n,o._icon_i=t,o}return(0,o.default)(r,[{key:"show",value:function(){this._ele.style.display="block"}},{key:"hide",value:function(){this._ele.style.display="none"}},{key:"ele",get:function(){return this._ele}},{key:"setIconName",value:function(){this._icon_i.className=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"el-icon--zhunxin1"}},{key:"setIconColor",value:function(t){this._icon_i.style.fontSize="30px"}}]),r}(u.Control);e.default=g},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=_,C=o+s*l(h,i,f);while(e<r-n&&_+m<C)b();x=0===m?0:(C-_)/m;var T,P=Object(u["e"])(y,d,x),j=Object(u["e"])(v,g,x);if(p){var M=[w,O,P,j];Object(c["a"])(M,0,4,2,p,M,M),T=M[0]>M[2]}else T=w>P;var R,A=Math.PI,L=[],I=E+n===e;if(e=E,m=0,_=S,d=t[e],g=t[e+1],I){b(),R=Math.atan2(g-v,d-y),T&&(R+=R>0?-A:A);var k=(P+w)/2,F=(j+O)/2;return L[0]=[k,F,(C-o)/2,R,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(T&&(N+=N>0?-A:A),void 0!==R){var z=N-R;if(z+=z>A?-2*A:z<-A?2*A:0,Math.abs(z)>a)return null}R=N;for(var B=D,U=0;D<G;++D){var V=T?G-D-1:D,X=s*l(h,i[V],f);if(e+n<r&&_+m<o+U+X/2)break;U+=X}if(D!==B){var W=T?i.substring(G-B,G-D):i.substring(B,D);x=0===m?0:(o+U/2-_)/m;k=Object(u["e"])(y,d,x),F=Object(u["e"])(v,g,x);L.push([k,F,U/2,N,W]),o+=U}}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,C=[],T=(S+2)*f[0],P=(_+g)*f[1],j={width:T<0?Math.floor(T):Math.ceil(T),height:P<0?Math.floor(P):Math.ceil(P),contextInstructions:C};if(1==f[0]&&1==f[1]||C.push("scale",f),n){C.push("strokeStyle",s.strokeStyle),C.push("lineWidth",g),C.push("lineCap",s.lineCap),C.push("lineJoin",s.lineJoin),C.push("miterLimit",s.miterLimit);var M=o["h"]?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;M.prototype.setLineDash&&(C.push("setLineDash",[s.lineDash]),C.push("lineDashOffset",s.lineDashOffset))}r&&C.push("fillStyle",u.fillStyle),C.push("textBaseline","middle"),C.push("textAlign","center");for(var R,A=.5-d,L=d*S+A*g,I=[],k=[],F=0,D=0,G=0,N=0,z=0,B=y.length;z<B;z+=2){var U=y[z];if("\n"!==U){var V=y[z+1]||c.font;V!==R&&(n&&I.push("font",V),r&&k.push("font",V),R=V),F=Math.max(F,O[G]);var X=[U,L+A*b[G]+d*(b[G]-E[N]),.5*(g+F)+D];L+=b[G],n&&I.push("strokeText",X),r&&k.push("fillText",X),++G}else D+=F,F=0,L=d*S+A*g,++N}return Array.prototype.push.apply(C,I),Array.prototype.push.apply(C,k),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,C=i+c>t?t-c:i,T=o+h>e?e-h:o,P=b[3]+C*p[0]+b[1],j=b[0]+T*p[1]+b[2],M=E-b[3],R=S-b[0];return(x||0!==f)&&(g[0]=M,m[0]=M,g[1]=R,y[1]=R,y[0]=M+P,v[0]=y[0],v[1]=R+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(M,M+P),Math.min(R,R+j),Math.max(M,M+P),Math.max(R,R+j),d),_&&(E=Math.round(E),S=Math.round(S)),{drawImageX:E,drawImageY:S,drawImageW:C,drawImageH:T,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,C,T,P,j,M,R,A,L,I,k=0,F=o.length,D=0,G=0,N=0,z=null,B=null,U=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(k<F){var Y=o[k],q=Y[0];switch(q){case n["c"].BEGIN_GEOMETRY:R=Y[1],I=Y[3],R.getGeometry()?void 0===g||Object(s["intersects"])(g,I.getExtent())?++k:k=Y[2]+1:k=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),++k;break;case n["c"].CIRCLE:D=Y[1];var Z=v[D],K=v[D+1],J=v[D+2],$=v[D+3],Q=J-Z,tt=$-K,et=Math.sqrt(Q*Q+tt*tt);t.moveTo(Z+et,K),t.arc(Z,K,et,0,2*Math.PI,!0),++k;break;case n["c"].CLOSE_PATH:t.closePath(),++k;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=R,k in U||(U[k]=[]);var ot=U[k];it?it(v,D,m,2,ot):(ot[0]=v[D],ot[1]=v[D+1],ot.length=2),nt(ot,W),++k;break;case n["c"].DRAW_IMAGE:D=Y[1],m=Y[2],C=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(!C&&Y.length>=20){T=Y[19],P=Y[20],j=Y[21],M=Y[22];var yt=this.drawLabelWithPointPlacement_(T,P,j,M);C=yt.label,Y[3]=C;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=C.height,Y[6]=at,pt=C.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_(C.width,C.height,v[D],v[D+1],pt,at,b,x,lt,ut,ht,ft,u,bt,xt||wt,R),St=[t,e,C,Et,st,xt?z:null,wt?B:null];if(y){if("none"===dt)continue;if("obstacle"===dt){y.insert(Et.declutterBox);continue}var Ct=void 0,Tt=void 0;if(gt){var Pt=m-D;if(!gt[Pt]){gt[Pt]=St;continue}if(Ct=gt[Pt],delete gt[Pt],Tt=_(Ct),y.collides(Tt))continue}if(y.collides(Et.declutterBox))continue;Ct&&(y.insert(Tt),this.replayImageOrLabel_.apply(this,Ct)),y.insert(Et.declutterBox)}this.replayImageOrLabel_.apply(this,St)}++k;break;case n["c"].DRAW_CHARS:var jt=Y[1],Mt=Y[2],Rt=Y[3],At=Y[4];M=Y[5];var Lt=Y[6],It=Y[7],kt=Y[8];j=Y[9];var Ft=Y[10];T=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],Bt=void 0;Nt in this.widths_?Bt=this.widths_[Nt]:(Bt={},this.widths_[Nt]=Bt);var Ut=Object(p["a"])(v,jt,Mt,2),Vt=Math.abs(zt[0])*Object(l["p"])(Nt,T,Bt);if(At||Vt<=Ut){var Xt=this.textStates[P].textAlign,Wt=(Ut-Vt)*i["a"][Xt],Ht=h(v,jt,Mt,2,T,Wt,Lt,Math.abs(zt[0]),l["p"],Nt,Bt,X?0:this.viewRotation_);t:if(Ht){var Yt=[],qt=void 0,Zt=void 0,Kt=void 0,Jt=void 0,$t=void 0;if(j)for(qt=0,Zt=Ht.length;qt<Zt;++qt){$t=Ht[qt],Kt=$t[4],Jt=this.createLabel(Kt,P,"",j),b=$t[2]+(zt[0]<0?-Ft:Ft),x=Rt*Jt.height+2*(.5-Rt)*Ft*zt[1]/zt[0]-kt;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,R);if(y&&y.collides(Et.declutterBox))break t;Yt.push([t,e,Jt,Et,1,null,null])}if(M)for(qt=0,Zt=Ht.length;qt<Zt;++qt){$t=Ht[qt],Kt=$t[4],Jt=this.createLabel(Kt,P,M,""),b=$t[2],x=Rt*Jt.height-kt;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,R);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])}}++k;break;case n["c"].END_GEOMETRY:if(void 0!==d){R=Y[1];var ee=d(R,I);if(ee)return ee}++k;break;case n["c"].FILL:H?G++:this.fill_(t),++k;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);++k;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],++k;break;case n["c"].SET_STROKE_STYLE:B=Y,N&&(t.stroke(),N=0),this.setStrokeStyle_(t,Y),++k;break;case n["c"].STROKE:H?N++:t.stroke(),++k;break;default:++k;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"),C=r("38f3"),T=["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=M(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=T.length-1;m>=0;--m)if(d=T[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(C["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||T;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 M(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},e8ba:function(t,e,r){"use strict";r("9809")},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}},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},ed05: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={width:160,height:74,padding:"2px 0 7px 14px",border:"0.3px solid #FF744C",backgroundColor:"rgba(60,30,20,0.3)"},p={color:"#FF744C",fontSize:32},d={color:"#fff",fontSize:16,marginLeft:"rgba(60,30,20,0.3)"},g={backgroundColor:" #FF744C",left:0,top:16.6,width:1.66,height:44.8},y={color:"#fff",fontSize:16},v={popupStyle:f,spanStyle:p,labelStyle:d,asideStyle:g,areaStyle:y},m=function(t){(0,a.default)(r,t);var e=c(r);function r(){var t,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:v;return(0,i.default)(this,r),(t=e.call(this))._label=null,t._span=null,t._area=null,t._popupStyles=n.popupStyle,t._labelStyles=n.labelStyle,t._spanStyles=n.spanStyle,t._asideStyle=n.asideStyle,t._areaStyle=n.areaStyle,t.init(),t}return(0,o.default)(r,[{key:"init",value:function(){this.setDivStyle(),this.ele.appendChild(this.createAside());var t=this.createSection();this._span=this.createSpan(),this._label=this.ceateLabel(),this._area=this.createArea(),t.appendChild(this._span),t.appendChild(this._label),this.ele.appendChild(t),this.ele.appendChild(this._area)}},{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,this.ele.style.borderRadius="2.36px",this.ele.style.border=t.border}},{key:"ceateLabel",value:function(){var t=this._labelStyles,e=document.createElement("label");return e.style.display="inline-block",e.style.color=t.color||"#fff",e.style.fontSize="".concat(t.fontSize,"px"),e.style.marginLeft="8px",e}},{key:"setHTMLElementStyle",value:function(){}},{key:"createSpan",value:function(){var t=this._spanStyles,e=document.createElement("span");return e.style.display="inline-block",e.style.color=t.color||"#fff",e.style.fontSize="".concat(t.fontSize,"px"),e}},{key:"createSection",value:function(){var t=document.createElement("section");return t.style.display="flex",t.style.alignItems="center",t}},{key:"createArea",value:function(){var t=this._areaStyle,e=document.createElement("section");return e.style.fontSize="".concat(t.fontSize,"px"),e.style.color=t.color||"#fff",e}},{key:"createAside",value:function(){var t=this._asideStyle,e=document.createElement("aside");return e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px"),e.style.backgroundColor=t.backgroundColor,e.style.position="absolute",e.style.top="".concat(t.top,"px"),e.style.left="".concat(t.left,"px"),e}},{key:"setData",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{unit:"台"};this._span&&(this._span.innerHTML=t.total),this._label&&(this._label.innerHTML=t.unit),this._area&&(this._area.innerHTML=t.areaName)}}]),r}(u.LOverlay);e.default=m},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";r.r(e);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["default"]=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},f7d8:function(t,e,r){"use strict";r("4409")},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 P})),r.d(e,"Group",(function(){return j["b"]})),r.d(e,"Heatmap",(function(){return Vt})),r.d(e,"Image",(function(){return Xt["default"]})),r.d(e,"Layer",(function(){return Wt["a"]})),r.d(e,"MapboxVector",(function(){return Da})),r.d(e,"Tile",(function(){return Xe["default"]})),r.d(e,"Vector",(function(){return p["default"]})),r.d(e,"VectorImage",(function(){return Za})),r.d(e,"VectorTile",(function(){return Fe})),r.d(e,"WebGLPoints",(function(){return tl})),r.d(e,"WebGLTile",(function(){return ol}));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("834d");function x(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 w(t,e,r,n,i){var o=Object(_["get"])("EPSG:4326");return x((function(n){return[t,e+(r-e)*n]}),Object(_["getTransform"])(o,n),i)}function O(t,e,r,n,i){var o=Object(_["get"])("EPSG:4326");return x((function(n){return[e+(r-e)*n,t]}),Object(_["getTransform"])(o,n),i)}var 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)}}(),S=new c["default"]({color:"rgba(0,0,0,0.2)"}),C=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001],T=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:S,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:C,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 E(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=Object(b["getVectorContext"])(t),v=u;v<=c;++v){var m=this.meridians_.length+this.parallels_.length,_=void 0,x=void 0,w=void 0,O=void 0;if(this.meridiansLabels_)for(x=0,w=this.meridiansLabels_.length;x<w;++x){var E=this.meridians_[x];if(e||0!==v){var S=E.clone();S.translate(v*p,0),S.rotate(-e,o),O=this.getMeridianPoint_(S,a,x),O.rotate(e,o)}else O=this.getMeridianPoint_(E,i,x);_=this.featurePool_[m++],_.setGeometry(O),_.set("graticule_label",this.meridiansLabels_[x].text),y.drawFeature(_,this.lonLabelStyle_(_))}if(this.parallelsLabels_&&(v===u&&h||v===c&&!h))for(x=0,w=this.parallels_.length;x<w;++x){E=this.parallels_[x];if(e||0!==v){S=E.clone();S.translate(v*p,0),S.rotate(-e,o),O=this.getParallelPoint_(S,a,x),O.rotate(e,o)}else O=this.getParallelPoint_(E,i,x);_=this.featurePool_[m++],_.setGeometry(O),_.set("graticule_label",this.parallelsLabels_[x].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=w(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=O(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"]),P=T,j=r("9c78"),M=r("ae50"),R=r("a43f"),A=r("496f"),L=r("617d"),I=34962,k=34963,F=35040,D=35044,G=35048,N=5121,z=5123,B=5125,U=5126,V=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function X(t,e){for(var r=Object(y["a"])({preserveDrawingBuffer:!0,antialias:!L["f"]},e),n=V.length,i=0;i<n;++i)try{var o=t.getContext(V[i],r);if(o)return o}catch(a){}return null}var W=r("92fa"),H={STATIC_DRAW:D,STREAM_DRAW:F,DYNAMIC_DRAW:G},Y=function(){function t(t,e){this.array=null,this.type=t,Object(W["a"])(t===I||t===k,62),this.usage=void 0!==e?e:H.STATIC_DRAW}return t.prototype.ofSize=function(t){this.array=new(q(this.type))(t)},t.prototype.fromArray=function(t){var e=q(this.type);this.array=e.from?e.from(t):new e(t)},t.prototype.fromArrayBuffer=function(t){this.array=new(q(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 q(t){switch(t){case I:return Float32Array;case k:return Uint32Array;default:return Float32Array}}var Z=Y,K=r("df4c"),J=r("faf4"),$=r("3333"),Q={LOST:"webglcontextlost",RESTORED:"webglcontextrestored"},tt=r("da5c"),et=r("1300"),rt="\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",nt="\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",it=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||rt),e.compileShader(r);var n=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(n,t.fragmentShader||nt),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(et["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}(),ot=it,at=r("a896");function st(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function lt(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 ut=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)}}(),ct={PROJECTION_MATRIX:"u_projectionMatrix",OFFSET_SCALE_MATRIX:"u_offsetScaleMatrix",OFFSET_ROTATION_MATRIX:"u_offsetRotateMatrix",TIME:"u_time",ZOOM:"u_zoom",RESOLUTION:"u_resolution"},ht={UNSIGNED_BYTE:N,UNSIGNED_SHORT:z,UNSIGNED_INT:B,FLOAT:U},ft={};function pt(t){return"shared/"+t}var dt=0;function gt(){var t="unique/"+dt;return dt+=1,t}function yt(t){var e=ft[t];if(!e){var r=document.createElement("canvas");r.style.position="absolute",r.style.left="0",e={users:0,canvas:r},ft[t]=e}return e.users+=1,e.canvas}function vt(t){var e=ft[t];if(e&&(e.users-=1,!(e.users>0))){var r=e.canvas,n=X(r),i=n.getExtension("WEBGL_lose_context");i&&i.loseContext(),delete ft[t]}}var mt=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?pt(n.canvasCacheKey):gt(),r.canvas_=yt(r.canvasCacheKey_),r.gl_=X(r.canvas_),r.bufferCache_={},r.extensionCache_={},r.currentProgram_=null,r.canvas_.addEventListener(Q.LOST,r.boundHandleWebGLContextLost_),r.canvas_.addEventListener(Q.RESTORED,r.boundHandleWebGLContextRestored_),r.offsetRotateMatrix_=Object(at["c"])(),r.offsetScaleMatrix_=Object(at["c"])(),r.tmpMat4_=st(),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 ot({webGlContext:i,scaleRatio:t.scaleRatio,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms})})):[new ot({webGlContext:i})],r.shaderCompileErrors_=null,r.startTime_=Date.now(),r}return ut(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_===pt(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(et["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(et["c"])(t),n=this.bufferCache_[r];n&&!e.isContextLost()&&e.deleteBuffer(n.webGlBuffer),delete this.bufferCache_[r]},e.prototype.disposeInternal=function(){this.canvas_.removeEventListener(Q.LOST,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(Q.RESTORED,this.boundHandleWebGLContextRestored_),vt(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(at["g"])(this.offsetScaleMatrix_);Object(at["i"])(n,2/e[0],2/e[1]);var i=Object(at["g"])(this.offsetRotateMatrix_);0!==r&&Object(at["h"])(i,-r),this.setUniformMatrixValue(ct.OFFSET_SCALE_MATRIX,lt(this.tmpMat4_,n)),this.setUniformMatrixValue(ct.OFFSET_ROTATION_MATRIX,lt(this.tmpMat4_,i)),this.setUniformFloatValue(ct.TIME,.001*(Date.now()-this.startTime_)),this.setUniformFloatValue(ct.ZOOM,t.viewState.zoom),this.setUniformFloatValue(ct.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,lt(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(at["g"])(e),Object(at["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=_t(t),r=0,n=0;n<t.length;n++){var i=t[n];this.enableAttributeArray_(i.name,i.size,i.type||U,e,r),r+=i.size*bt(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}(tt["a"]);function _t(t){for(var e=0,r=0;r<t.length;r++){var n=t[r];e+=n.size*bt(n.type)}return e}function bt(t){switch(t){case ht.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case ht.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case ht.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT;case ht.FLOAT:default:return Float32Array.BYTES_PER_ELEMENT}}var xt=mt,wt=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)}}(),Ot={GENERATE_BUFFERS:"GENERATE_BUFFERS"},Et=function(t){function e(e,r){var n=t.call(this,e)||this,i=r||{};return n.inversePixelTransform_=Object(at["c"])(),n.pixelContext_=null,n.postProcesses_=i.postProcesses,n.uniforms_=i.uniforms,n.helper,e.addChangeListener(K["a"].MAP,n.removeHelper.bind(n)),n.dispatchPreComposeEvent=n.dispatchPreComposeEvent.bind(n),n.dispatchPostComposeEvent=n.dispatchPostComposeEvent.bind(n),n}return wt(e,t),e.prototype.dispatchPreComposeEvent=function(t,e){var r=this.getLayer();if(r.hasListener(i["a"].PRECOMPOSE)){var n=new $["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 $["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 xt({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(at["b"])(this.inversePixelTransform_,0,0,r.pixelRatio,-r.pixelRatio,0,0,-r.size[1]);var i=new $["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(at["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(at["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}(J["a"]);function St(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 Ct(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 Tt=Et,Pt=r("9f5e"),jt=new Uint8Array(4),Mt=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(Pt["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 jt[0]=0,jt[1]=0,jt[2]=0,jt[3]=0,jt;this.readAll();var r=Math.floor(t)+(this.size_[1]-Math.floor(e)-1)*this.size_[0];return jt[0]=this.data_[4*r],jt[1]=this.data_[4*r+1],jt[2]=this.data_[4*r+2],jt[3]=this.data_[4*r+3],jt},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}(),Rt=Mt,At=r("7fd1"),Lt=r("1e8d"),It=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)}}(),kt=function(t){function e(e,r){var n=this,i=r.uniforms||{},o=Object(at["c"])();i[ct.PROJECTION_MATRIX]=o,n=t.call(this,e,{uniforms:i,postProcesses:r.postProcesses})||this,n.ready=!1,n.sourceRevision_=-1,n.verticesBuffer_=new Z(I,G),n.hitVerticesBuffer_=new Z(I,G),n.indicesBuffer_=new Z(k,G),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:ht.FLOAT}})):[];n.attributes=[{name:"a_position",size:2,type:ht.FLOAT},{name:"a_index",size:1,type:ht.FLOAT}].concat(a),n.hitDetectionAttributes=[{name:"a_position",size:2,type:ht.FLOAT},{name:"a_index",size:1,type:ht.FLOAT},{name:"a_hitColor",size:4,type:ht.FLOAT},{name:"a_featureUid",size:1,type:ht.FLOAT}].concat(a),n.customAttributes=r.attributes?r.attributes:[],n.previousExtent_=Object(g["createEmpty"])(),n.currentTransform_=o,n.renderTransform_=Object(at["c"])(),n.invertRenderTransform_=Object(at["c"])(),n.renderInstructions_=new Float32Array(0),n.hitRenderInstructions_=new Float32Array(0),n.hitRenderTarget_,n.generateBuffersRun_=0,n.worker_=Object(At["a"])(),n.worker_.addEventListener("message",function(t){var e=t.data;if(e.type===Ot.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(at["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(Lt["a"])(s,R["a"].ADDFEATURE,n.handleSourceFeatureAdded_,n),Object(Lt["a"])(s,R["a"].CHANGEFEATURE,n.handleSourceFeatureChanged_,n),Object(Lt["a"])(s,R["a"].REMOVEFEATURE,n.handleSourceFeatureDelete_,n),Object(Lt["a"])(s,R["a"].CLEAR,n.handleSourceFeatureClear_,n)],s.forEachFeature(function(t){this.featureCache_[Object(et["c"])(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()},this.featureCount_++}.bind(n)),n}return It(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 Rt(this.helper))},e.prototype.handleSourceFeatureAdded_=function(t){var e=t.feature;this.featureCache_[Object(et["c"])(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()},this.featureCount_++},e.prototype.handleSourceFeatureChanged_=function(t){var e=t.feature;this.featureCache_[Object(et["c"])(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()}},e.prototype.handleSourceFeatureDelete_=function(t){var e=t.feature;delete this.featureCache_[Object(et["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(at["l"])(this.currentTransform_,h*l,0),Object(at["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[A["a"].ANIMATING]&&!t.viewHints[A["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 M["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(at["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(at["a"])(e,s),a=St(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:Ot.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:Ot.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(W["a"])(this.hitDetectionEnabled_,66),this.hitRenderInstructions_){var o=Object(at["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=Ct(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(at["l"])(this.currentTransform_,i*n,0),Object(at["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(Lt["c"])(t)})),this.sourceListenKeys_=null,t.prototype.disposeInternal.call(this)},e}(Tt),Ft=kt,Dt=r("0999"),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)}}(),Nt={BLUR:"blur",GRADIENT:"gradient",RADIUS:"radius"},zt=["#00f","#0ff","#0f0","#ff0","#f00"],Bt=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(Nt.GRADIENT,r.handleGradientChanged_),r.setGradient(n.gradient?n.gradient:zt),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 Gt(e,t),e.prototype.getBlur=function(){return this.get(Nt.BLUR)},e.prototype.getGradient=function(){return this.get(Nt.GRADIENT)},e.prototype.getRadius=function(){return this.get(Nt.RADIUS)},e.prototype.handleGradientChanged_=function(){this.gradient_=Ut(this.getGradient())},e.prototype.setBlur=function(t){this.set(Nt.BLUR,t)},e.prototype.setGradient=function(t){this.set(Nt.GRADIENT,t)},e.prototype.setRadius=function(t){this.set(Nt.RADIUS,t)},e.prototype.createRenderer=function(){return new Ft(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(Nt.RADIUS)+this.get(Nt.BLUR))}.bind(this),u_blurSlope:function(){return this.get(Nt.RADIUS)/Math.max(1,this.get(Nt.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}(M["a"]);function Ut(t){for(var e=1,r=256,n=Object(Dt["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 Vt=Bt,Xt=r("c810"),Wt=r("1af9"),Ht=r("cef7"),Yt=r("01d4"),qt=r("b7df"),Zt=r("47e4"),Kt=r("9a44"),Jt=r("88da"),$t=r("7915"),Qt=r.n($t),te=r("5bc33"),ee=r("f5dd"),re=r("0a9d"),ne=r("4d98"),ie=r("b1a2"),oe=r("9159"),ae=r("bef8"),se=Object(at["c"])(),le=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(re["a"])(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_},t.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var t=Object(oe["a"])(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=Object(re["b"])(this.flatCoordinates_,0,this.ends_,2,t)}return this.flatInteriorPoints_},t.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=Object(ie["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(ie["a"])(t,e,o,2,.5);Object(Pt["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(at["b"])(se,r[0],r[3],n,-n,0,0,0),Object(ae["c"])(this.flatCoordinates_,0,this.flatCoordinates_.length,2,se,this.flatCoordinates_)}},t.prototype.getEnds=function(){return this.ends_},t}();le.prototype.getEndss=le.prototype.getEnds,le.prototype.getFlatCoordinates=le.prototype.getOrientedFlatCoordinates;var ue=le,ce=r("fced"),he=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)}}(),fe=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.dataProjection=new ee["default"]({code:"",units:ce["b"].TILE_PIXELS}),r.featureClass_=n.featureClass?n.featureClass:ue,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 he(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(W["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=ve(i,h.length);if(this.featureClass_===ue)n=new this.featureClass_(f,c,h,a,o),n.transform(r.dataProjection);else{var p=void 0;if("Polygon"==f){var d=Object(ne["a"])(c,h);p=d.length>1?new Jt["a"](c,s["a"].XY,d):new te["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 Kt["default"](c,s["a"].XY):"MultiLineString"===f?new Zt["a"](c,s["a"].XY,h):null;var g=this.featureClass_;n=new g,this.geometryName_&&n.setGeometryName(this.geometryName_);var y=Object(qt["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 Qt.a(t),a=o.readFields(pe,{}),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=ye(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}(qt["a"]);function pe(t,e,r){if(3===t){var n={keys:[],values:[],features:[]},i=r.readVarint()+r.pos;r.readFields(de,n,i),n.length=n.features.length,n.length&&(e[n.name]=n)}}function de(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 ge(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 ye(t,e,r){t.pos=e.features[r];var n=t.readVarint()+t.pos,i={layer:e,type:0,properties:{}};return t.readFields(ge,i,n),i}function ve(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 me,_e=fe,be=r("dbba"),xe=r("e8b8"),we=r("b9ec"),Oe=r("acc1"),Ee={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"},Se=r("399c"),Ce=r("30d1"),Te=r("345d"),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)}}(),je={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},Me={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},Re=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(at["c"])(),r}return Pe(e,t),e.prototype.prepareTile=function(t,e,r){var n,i=t.getState();return i!==Oe["a"].LOADED&&i!==Oe["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[A["a"].ANIMATING]||h[A["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()!==Ee.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()===Ee.VECTOR?Object(et["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(et["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()!=Oe["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 be["a"](0,b,a,e),O=u?new be["a"](0,_,a,e):void 0,E=Object(Ce["b"])(a,e),S=function(t){var e,r=t.getStyleFunction()||n.getStyleFunction();if(r&&(e=r(t,a)),e){var i=this.renderFeature(t,E,e,w,O);s.dirty=s.dirty||i}},C=h.getFeatures();o&&o!==s.renderedRenderOrder&&C.sort(o);for(var T=0,P=C.length;T<P;++T){var j=C[T];x&&!Object(g["intersects"])(x,j.getGeometry().getExtent())||S.call(v,j)}var M=w.finish(),R=n.getRenderMode()!==Ee.VECTOR&&u&&1===p.length?null:_,A=new xe["a"](R,a,e,l.getOverlaps(),M,n.getRenderBuffer());if(t.executorGroups[d].push(A),O){var L=new xe["a"](null,a,e,l.getOverlaps(),O.finish(),n.getRenderBuffer());t.declutterExecutorGroups[d].push(L)}},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(et["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(et["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(et["c"])(i),a=i.getSource(),s=this.renderedProjection,l=s.getExtent(),u=this.renderedResolution,c=a.getTileGridForProjection(s),h=Object(at["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()===Oe["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())}),[]),w=n.hitDetectionImageData[o];if(!w&&!this.animatingOrInteracting_){var O=Object(Te["d"])(c.getTileSize(c.getZForResolution(u,a.zDirection))),E=this.renderedRotation_,S=[this.getRenderTransform(c.getTileCoordCenter(n.wrappedTileCoord),u,0,Se["a"],O[0]*Se["a"],O[1]*Se["a"],0)];w=Object(Se["b"])(O,S,x,i.getStyleFunction(),c.getTileCoordExtent(n.wrappedTileCoord),n.getReplayState(i).renderedResolution,E),n.hitDetectionImageData[o]=w}e(Object(Se["c"])(b,x,w))}}.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[A["a"].ANIMATING]||n[A["a"].INTERACTING]),o=this.renderedTiles,a=0,s=o.length;a<s;++a){var l=o[a],u=l.declutterExecutorGroups[Object(et["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(at["f"])(Object(at["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[A["a"].ANIMATING]||n[A["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(et["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,C=w[0].getClipCoords(O);if(C){for(var T=0,P=v.length;T<P;++T)if(d!==E&&E<m[T]){var j=v[T];Object(g["intersects"])([C[0],C[3],C[4],C[7]],[j[0],j[3],j[4],j[7]])&&(S||(s.save(),S=!0),s.beginPath(),s.moveTo(C[0],C[1]),s.lineTo(C[2],C[3]),s.lineTo(C[4],C[5]),s.lineTo(C[6],C[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(C),m.push(E)}for(var M=0,R=w.length;M<R;++M){var L=w[M];L.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(Ce["d"])(n,t,r[a],e,this.boundHandleStyleImageChange_,void 0,i)||o;else o=Object(Ce["d"])(n,t,r,e,this.boundHandleStyleImageChange_,void 0,i);return o},e.prototype.tileImageNeedsRender_=function(t){var e=this.getLayer();if(e.getRenderMode()===Ee.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(et["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(at["g"])(this.tmpTransform_);Object(at["i"])(_,m,m),y.setTransform.apply(y,_)}var b=f.getTileCoordExtent(a,this.tmpExtent),x=d/g,w=Object(at["g"])(this.tmpTransform_);Object(at["i"])(w,x,-x),Object(at["l"])(w,-b[0],-b[3]);for(var O=0,E=o.length;O<E;++O){var S=o[O];S.execute(y,m,w,0,!0,je[r.getRenderMode()])}n.renderedTileResolution=t.wantedResolution},e}(we["a"]),Ae=Re,Le=r("a194"),Ie=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===Ee.IMAGE&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),n.renderMode=void 0);var o=n.renderMode||Ee.HYBRID;return Object(W["a"])(o==Ee.HYBRID||o==Ee.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 Ie(e,t),e.prototype.createRenderer=function(){return new Ae(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(Le["a"].PRELOAD)},e.prototype.getUseInterimTilesOnError=function(){return this.get(Le["a"].USE_INTERIM_TILES_ON_ERROR)},e.prototype.setPreload=function(t){this.set(Le["a"].PRELOAD,t)},e.prototype.setUseInterimTilesOnError=function(t){this.set(Le["a"].USE_INTERIM_TILES_ON_ERROR,t)},e}(M["a"]),Fe=ke,De=r("78db2"),Ge=r("ce2c"),Ne=r("6cbf"),ze=r("ddea"),Be=r("a2e1"),Ue=(r("5eee"),r("78db")),Ve=r("6cf3"),Xe=r("480c"),We=(r("a2c7"),r("089b"),{}),He={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 Ye(t){return t=Math.round(t),t<0?0:t>255?255:t}function qe(t){return t<0?0:t>1?1:t}function Ze(t){return"%"===t[t.length-1]?Ye(parseFloat(t)/100*255):Ye(parseInt(t))}function Ke(t){return"%"===t[t.length-1]?qe(parseFloat(t)/100):qe(parseFloat(t))}function Je(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 $e(t){var e=t.replace(/ /g,"").toLowerCase();if(e in He)return He[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=Ke(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=Ke(a.pop());case"hsl":if(3!==a.length)return null;var l=(parseFloat(a[0])%360+360)%360/360,u=Ke(a[1]),c=Ke(a[2]),h=c<=.5?c*(u+1):c+u-c*u,f=2*c-h;return[Ye(255*Je(f,h,l+1/3)),Ye(255*Je(f,h,l)),Ye(255*Je(f,h,l-1/3)),s];default:return null}}return null}try{me=We.parseCSSColor=$e}catch(al){}var Qe=function(t,e,r,n){void 0===n&&(n=1),this.r=t,this.g=e,this.b=r,this.a=n};function tr(t){return"object"===typeof t?["literal",t]:t}function er(t,e){var r=t.stops;if(!r)return rr(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],fr(t[1])]:[t[0],tr(t[1])]})),n?ir(t,e,r):o?lr(t,e,r):sr(t,e,r)}function rr(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,tr(t.default)];return"array"===e.type&&n.splice(1,0,e.value,e.length||null),n}function nr(t){switch(t.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function ir(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=hr({},e);if("exponential"===u){for(var c=[nr(t),["linear"],["zoom"]],h=0,f=o;h<f.length;h+=1){var p=f[h],d=sr(n[p],e,i[p]);cr(c,p,d,!1)}return c}for(var g=["step",["zoom"]],y=0,v=o;y<v.length;y+=1){var m=v[y],_=sr(n[m],e,i[m]);cr(g,m,_,!0)}return ur(g),g}function or(t,e){return void 0!==t?t:void 0!==e?e:void 0}function ar(t,e){var r=tr(or(t.default,e.default));return void 0===r&&"resolvedImage"===e.type?"":r}function sr(t,e,r){var n=hr(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(ar(t,e)),o}if("categorical"===n){for(var u=["match",i],c=0,h=r;c<h.length;c+=1){var f=h[c];cr(u,f[0],f[1],!1)}return u.push(ar(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];cr(p,y[0],y[1],!0)}return ur(p),void 0===t.default?p:["case",["==",["typeof",i],"number"],p,tr(t.default)]}if("exponential"===n){for(var v=void 0!==t.base?t.base:1,m=[nr(t),1===v?["linear"]:["exponential",v],["number",i]],_=0,b=r;_<b.length;_+=1){var x=b[_];cr(m,x[0],x[1],!1)}return void 0===t.default?m:["case",["==",["typeof",i],"number"],m,tr(t.default)]}throw new Error("Unknown property function type "+n)}function lr(t,e,r,n){void 0===n&&(n=["zoom"]);var i,o=hr(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=[nr(t),1===s?["linear"]:["exponential",s],n]}for(var l=0,u=r;l<u.length;l+=1){var c=u[l];cr(i,c[0],c[1],a)}return ur(i),i}function ur(t){"step"===t[0]&&3===t.length&&(t.push(0),t.push(t[3]))}function cr(t,e,r,n){t.length>3&&e===t[t.length-2]||(n&&2===t.length||t.push(e),t.push(r))}function hr(t,e){return t.type?t.type:e.expression.interpolated?"exponential":"interval"}function fr(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}Qe.parse=function(t){if(t){if(t instanceof Qe)return t;if("string"===typeof t){var e=me(t);if(e)return new Qe(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},Qe.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+")"},Qe.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]},Qe.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]},Qe.prototype.toArray01PremultipliedAlpha=function(){var t=this,e=t.r,r=t.g,n=t.b,i=t.a;return[e,r,n,i]},Qe.black=new Qe(0,0,0,1),Qe.white=new Qe(1,1,1,1),Qe.transparent=new Qe(0,0,0,0),Qe.red=new Qe(1,0,0,1),Qe.blue=new Qe(0,0,1,1);var pr=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),dr=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}};dr.prototype.concat=function(t){return new dr(this,t)},dr.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.")},dr.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};var gr={kind:"null"},yr={kind:"number"},vr={kind:"string"},mr={kind:"boolean"},_r={kind:"color"},br={kind:"object"},xr={kind:"value"},wr={kind:"error"},Or={kind:"collator"},Er={kind:"formatted"},Sr={kind:"resolvedImage"};function Cr(t,e){return{kind:"array",itemType:t,N:e}}function Tr(t){if("array"===t.kind){var e=Tr(t.itemType);return"number"===typeof t.N?"array<"+e+", "+t.N+">":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var Pr=[gr,yr,vr,mr,_r,Er,br,Cr(xr),Sr];function jr(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!jr(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=Pr;r<n.length;r+=1){var i=n[r];if(!jr(i,e))return null}}return"Expected "+Tr(t)+" but found "+Tr(e)+" instead."}function Mr(t,e){return e.some((function(e){return e.kind===t.kind}))}function Rr(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 Ar=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"})};Ar.prototype.compare=function(t,e){return this.collator.compare(t,e)},Ar.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Lr=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},Ir=function(t){this.sections=t};Ir.fromString=function(t){return new Ir([new Lr(t,null,null,null,null)])},Ir.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}))},Ir.factory=function(t){return t instanceof Ir?t:Ir.fromString(t)},Ir.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(t){return t.text})).join("")},Ir.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 Fr(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 Dr(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 Qe)return!0;if(t instanceof Ar)return!0;if(t instanceof Ir)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(!Dr(n))return!1}return!0}if("object"===typeof t){for(var i in t)if(!Dr(t[i]))return!1;return!0}return!1}function Gr(t){if(null===t)return gr;if("string"===typeof t)return vr;if("boolean"===typeof t)return mr;if("number"===typeof t)return yr;if(t instanceof Qe)return _r;if(t instanceof Ar)return Or;if(t instanceof Ir)return Er;if(t instanceof kr)return Sr;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n<i.length;n+=1){var o=i[n],a=Gr(o);if(e){if(e===a)continue;e=xr;break}e=a}return Cr(e||xr,r)}return br}function Nr(t){var e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof Qe||t instanceof Ir||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 zr=function(t,e){this.type=t,this.value=e};zr.parse=function(t,e){if(2!==t.length)return e.error("'literal' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(!Dr(t[1]))return e.error("invalid value");var r=t[1],n=Gr(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 zr(n,r)},zr.prototype.evaluate=function(){return this.value},zr.prototype.eachChild=function(){},zr.prototype.outputDefined=function(){return!0},zr.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Qe?["rgba"].concat(this.value.toArray()):this.value instanceof Ir?this.value.serialize():this.value};var Br=function(t){this.name="ExpressionEvaluationError",this.message=t};Br.prototype.toJSON=function(){return this.message};var Ur={string:vr,number:yr,boolean:mr,object:br},Vr=function(t,e){this.type=t,this.args=e};Vr.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 Ur)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=Ur[s],n++}else o=xr;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=Ur[i];for(var l=[];n<t.length;n++){var u=e.parse(t[n],n,xr);if(!u)return null;l.push(u)}return new Vr(r,l)},Vr.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var r=this.args[e].evaluate(t),n=jr(this.type,Gr(r));if(!n)return r;if(e===this.args.length-1)throw new Br("Expected value to be of type "+Tr(this.type)+", but found "+Tr(Gr(r))+" instead.")}return null},Vr.prototype.eachChild=function(t){this.args.forEach(t)},Vr.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},Vr.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 Xr=function(t){this.type=Er,this.sections=t};Xr.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,yr),!s))return null;var l=null;if(a["text-font"]&&(l=e.parse(a["text-font"],1,Cr(vr)),!l))return null;var u=null;if(a["text-color"]&&(u=e.parse(a["text-color"],1,_r),!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,xr);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 Xr(n)},Xr.prototype.evaluate=function(t){var e=function(e){var r=e.content.evaluate(t);return Gr(r)===Sr?new Lr("",r,null,null,null):new Lr(Nr(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 Ir(this.sections.map(e))},Xr.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)}},Xr.prototype.outputDefined=function(){return!1},Xr.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 Wr=function(t){this.type=Sr,this.input=t};Wr.parse=function(t,e){if(2!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,vr);return r?new Wr(r):e.error("No image name provided.")},Wr.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},Wr.prototype.eachChild=function(t){t(this.input)},Wr.prototype.outputDefined=function(){return!1},Wr.prototype.serialize=function(){return["image",this.input.serialize()]};var Hr={"to-boolean":mr,"to-color":_r,"to-number":yr,"to-string":vr},Yr=function(t,e){this.type=t,this.args=e};Yr.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=Hr[r],i=[],o=1;o<t.length;o++){var a=e.parse(t[o],o,xr);if(!a)return null;i.push(a)}return new Yr(n,i)},Yr.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 Qe)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.":Fr(e[0],e[1],e[2],e[3]),!r))return new Qe(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?Ir.fromString(Nr(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?kr.fromString(Nr(this.args[0].evaluate(t))):Nr(this.args[0].evaluate(t))},Yr.prototype.eachChild=function(t){this.args.forEach(t)},Yr.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},Yr.prototype.serialize=function(){if("formatted"===this.type.kind)return new Xr([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Wr(this.args[0]).serialize();var t=["to-"+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var qr=["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?qr[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]=Qe.parse(t)),e};var Kr=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};function Jr(t){return Array.isArray(t)?"("+t.map(Tr).join(", ")+")":"("+Tr(t.type)+"...)"}Kr.prototype.evaluate=function(t){return this._evaluate(t,this.args)},Kr.prototype.eachChild=function(t){this.args.forEach(t)},Kr.prototype.outputDefined=function(){return!1},Kr.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},Kr.parse=function(t,e){var r,n=t[0],i=Kr.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 jn(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 Kr(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 Jr(e)})).join(" | "),S=[],C=1;C<t.length;C++){var T=e.parse(t[C],1+S.length);if(!T)return null;S.push(Tr(T.type))}e.error("Expected arguments of type "+E+", but found ("+S.join(", ")+") instead.")}return null},Kr.register=function(t,e){for(var r in Kr.definitions=e,e)t[r]=Kr};var $r=function(t,e,r){this.type=Or,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};$r.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,mr);if(!n)return null;var i=e.parse(void 0!==r["diacritic-sensitive"]&&r["diacritic-sensitive"],1,mr);if(!i)return null;var o=null;return r["locale"]&&(o=e.parse(r["locale"],1,vr),!o)?null:new $r(n,i,o)},$r.prototype.evaluate=function(t){return new Ar(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},$r.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},$r.prototype.outputDefined=function(){return!1},$r.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 Qr=8192;function tn(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 en(t){return(180+t)/360}function rn(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function nn(t,e){return!(t[0]<=e[0])&&(!(t[2]>=e[2])&&(!(t[1]<=e[1])&&!(t[3]>=e[3])))}function on(t,e){var r=en(t[0]),n=rn(t[1]),i=Math.pow(2,e.z);return[Math.round(r*i*Qr),Math.round(n*i*Qr)]}function an(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 sn(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 ln(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(an(t,o[a],o[a+1]))return!1;sn(t,o[a],o[a+1])&&(r=!r)}return r}function un(t,e){for(var r=0;r<e.length;r++)if(ln(t,e[r]))return!0;return!1}function cn(t,e){return t[0]*e[1]-t[1]*e[0]}function hn(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 fn(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!==cn(o,i)&&!(!hn(t,e,r,n)||!hn(r,n,t,e))}function pn(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(fn(t,e,o[a],o[a+1]))return!0;return!1}function dn(t,e){for(var r=0;r<t.length;++r)if(!ln(t[r],e))return!1;for(var n=0;n<t.length-1;++n)if(pn(t[n],t[n+1],e))return!1;return!0}function gn(t,e){for(var r=0;r<e.length;r++)if(dn(t,e[r]))return!0;return!1}function yn(t,e,r){for(var n=[],i=0;i<t.length;i++){for(var o=[],a=0;a<t[i].length;a++){var s=on(t[i][a],r);tn(e,s),o.push(s)}n.push(o)}return n}function vn(t,e,r){for(var n=[],i=0;i<t.length;i++){var o=yn(t[i],e,r);n.push(o)}return n}function mn(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}tn(e,t)}function _n(t){t[0]=t[1]=1/0,t[2]=t[3]=-1/0}function bn(t,e,r,n){var i=Math.pow(2,n.z)*Qr,o=[n.x*Qr,n.y*Qr],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]];mn(p,e,r,i),a.push(p)}return a}function xn(t,e,r,n){var i=Math.pow(2,n.z)*Qr,o=[n.x*Qr,n.y*Qr],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]];tn(e,d),c.push(d)}a.push(c)}if(e[2]-e[0]<=i/2){_n(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];mn(b,e,r,i)}}return a}function wn(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=yn(e.coordinates,n,i),a=bn(t.geometry(),r,n,i);if(!nn(r,n))return!1;for(var s=0,l=a;s<l.length;s+=1){var u=l[s];if(!ln(u,o))return!1}}if("MultiPolygon"===e.type){var c=vn(e.coordinates,n,i),h=bn(t.geometry(),r,n,i);if(!nn(r,n))return!1;for(var f=0,p=h;f<p.length;f+=1){var d=p[f];if(!un(d,c))return!1}}return!0}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=yn(e.coordinates,n,i),a=xn(t.geometry(),r,n,i);if(!nn(r,n))return!1;for(var s=0,l=a;s<l.length;s+=1){var u=l[s];if(!dn(u,o))return!1}}if("MultiPolygon"===e.type){var c=vn(e.coordinates,n,i),h=xn(t.geometry(),r,n,i);if(!nn(r,n))return!1;for(var f=0,p=h;f<p.length;f+=1){var d=p[f];if(!gn(d,c))return!1}}return!0}var En=function(t,e){this.type=mr,this.geojson=t,this.geometries=e};function Sn(t){if(t instanceof Kr){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 En)return!1;var e=!0;return t.eachChild((function(t){e&&!Sn(t)&&(e=!1)})),e}function Cn(t){if(t instanceof Kr&&"feature-state"===t.name)return!1;var e=!0;return t.eachChild((function(t){e&&!Cn(t)&&(e=!1)})),e}function Tn(t,e){if(t instanceof Kr&&e.indexOf(t.name)>=0)return!1;var r=!0;return t.eachChild((function(t){r&&!Tn(t,e)&&(r=!1)})),r}En.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(Dr(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 En(r,r.features[n].geometry)}else if("Feature"===r.type){var o=r.geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new En(r,r.geometry)}else if("Polygon"===r.type||"MultiPolygon"===r.type)return new En(r,r)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")},En.prototype.evaluate=function(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return wn(t,this.geometries);if("LineString"===t.geometryType())return On(t,this.geometries)}return!1},En.prototype.eachChild=function(){},En.prototype.outputDefined=function(){return!0},En.prototype.serialize=function(){return["within",this.geojson]};var Pn=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};Pn.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 Pn(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)},Pn.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},Pn.prototype.eachChild=function(){},Pn.prototype.outputDefined=function(){return!1},Pn.prototype.serialize=function(){return["var",this.name]};var jn=function(t,e,r,n,i){void 0===e&&(e=[]),void 0===n&&(n=new dr),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 Pn)return Mn(t.boundExpression);if(t instanceof Kr&&"error"===t.name)return!1;if(t instanceof $r)return!1;if(t instanceof En)return!1;var e=t instanceof Yr||t instanceof Vr,r=!0;return t.eachChild((function(t){r=e?r&&Mn(t):r&&t instanceof zr})),!!r&&(Sn(t)&&Tn(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"]))}function Rn(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}jn.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)},jn.prototype._parse=function(t,e){function r(t,e,r){return"assert"===r?new Vr(e,[t]):"coerce"===r?new Yr(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 zr)&&"resolvedImage"!==o.type.kind&&Mn(o)){var l=new Zr;try{o=new zr(o.type,o.evaluate(l))}catch(al){return this.error(al.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.")},jn.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 jn(this.registry,n,e||null,i,this.errors)},jn.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 pr(n,t))},jn.prototype.checkSubtype=function(t,e){var r=jr(t,e);return r&&this.error(r),r};var An=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)}};An.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,yr);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 An(i,r,n)},An.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=Rn(e,n);return r[o].evaluate(t)},An.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)}},An.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},An.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 Ln=In;function In(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 Fn(t,e,r){return new Qe(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 Dn(t,e,r){return t.map((function(t,n){return kn(t,e[n],r)}))}In.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},In.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},In.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},In.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},In.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var Gn=Object.freeze({__proto__:null,number:kn,color:Fn,array:Dn}),Nn=.95047,zn=1,Bn=1.08883,Un=4/29,Vn=6/29,Xn=3*Vn*Vn,Wn=Vn*Vn*Vn,Hn=Math.PI/180,Yn=180/Math.PI;function qn(t){return t>Wn?Math.pow(t,1/3):t/Xn+Un}function Zn(t){return t>Vn?t*t*t:Xn*(t-Un)}function Kn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Jn(t){return t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function $n(t){var e=Jn(t.r),r=Jn(t.g),n=Jn(t.b),i=qn((.4124564*e+.3575761*r+.1804375*n)/Nn),o=qn((.2126729*e+.7151522*r+.072175*n)/zn),a=qn((.0193339*e+.119192*r+.9503041*n)/Bn);return{l:116*o-16,a:500*(i-o),b:200*(o-a),alpha:t.a}}function Qn(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=zn*Zn(e),r=Nn*Zn(r),n=Bn*Zn(n),new Qe(Kn(3.2404542*r-1.5371385*e-.4985314*n),Kn(-.969266*r+1.8760108*e+.041556*n),Kn(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function ti(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 ei(t){var e=$n(t),r=e.l,n=e.a,i=e.b,o=Math.atan2(i,n)*Yn;return{h:o<0?o+360:o,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}}function ri(t){var e=t.h*Hn,r=t.c,n=t.l;return Qn({l:n,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})}function ni(t,e,r){var n=e-t;return t+r*(n>180||n<-180?n-360*Math.round(n/360):n)}function ii(t,e,r){return{h:ni(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 oi={forward:$n,reverse:Qn,interpolate:ti},ai={forward:ei,reverse:ri,interpolate:ii},si=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 li(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)}si.interpolationFactor=function(t,e,r,n){var i=0;if("exponential"===t.name)i=li(e,t.base,r,n);else if("linear"===t.name)i=li(e,1,r,n);else if("cubic-bezier"===t.name){var o=t.controlPoints,a=new Ln(o[0],o[1],o[2],o[3]);i=a.solve(li(e,1,r,n))}return i},si.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,yr),!i)return null;var l=[],u=null;"interpolate-hcl"===r||"interpolate-lab"===r?u=_r: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 si(u,r,n,i,l):e.error("Type "+Tr(u)+" is not interpolatable.")},si.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=Rn(e,n),a=e[o],s=e[o+1],l=si.interpolationFactor(this.interpolation,n,a,s),u=r[o].evaluate(t),c=r[o+1].evaluate(t);return"interpolate"===this.operator?Gn[this.type.kind.toLowerCase()](u,c,l):"interpolate-hcl"===this.operator?ai.reverse(ai.interpolate(ai.forward(u),ai.forward(c),l)):oi.reverse(oi.interpolate(oi.forward(u),oi.forward(c),l))},si.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)}},si.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},si.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 ui=function(t,e){this.type=t,this.args=e};ui.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 jr(n,t.type)}));return new ui(u?xr:r,i)},ui.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},ui.prototype.eachChild=function(t){this.args.forEach(t)},ui.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ui.prototype.serialize=function(){var t=["coalesce"];return this.eachChild((function(e){t.push(e.serialize())})),t};var ci=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};ci.prototype.evaluate=function(t){return this.result.evaluate(t)},ci.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)},ci.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 ci(r,a):null},ci.prototype.outputDefined=function(){return this.result.outputDefined()},ci.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 hi=function(t,e,r){this.type=t,this.index=e,this.input=r};hi.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,yr),n=e.parse(t[2],2,Cr(e.expectedType||xr));if(!r||!n)return null;var i=n.type;return new hi(i.itemType,r,n)},hi.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]},hi.prototype.eachChild=function(t){t(this.index),t(this.input)},hi.prototype.outputDefined=function(){return!1},hi.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var fi=function(t,e){this.type=mr,this.needle=t,this.haystack=e};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,xr),n=e.parse(t[2],2,xr);return r&&n?Mr(r.type,[mr,vr,yr,gr,xr])?new fi(r,n):e.error("Expected first argument to be of type boolean, string, number or null, but found "+Tr(r.type)+" instead"):null},fi.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(null==r)return!1;if(!Rr(e,["boolean","string","number","null"]))throw new Br("Expected first argument to be of type boolean, string, number or null, but found "+Tr(Gr(e))+" instead.");if(!Rr(r,["string","array"]))throw new Br("Expected second argument to be of type array or string, but found "+Tr(Gr(r))+" instead.");return r.indexOf(e)>=0},fi.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},fi.prototype.outputDefined=function(){return!0},fi.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var pi=function(t,e,r){this.type=yr,this.needle=t,this.haystack=e,this.fromIndex=r};pi.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,xr),n=e.parse(t[2],2,xr);if(!r||!n)return null;if(!Mr(r.type,[mr,vr,yr,gr,xr]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+Tr(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,yr);return i?new pi(r,n,i):null}return new pi(r,n)},pi.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Rr(e,["boolean","string","number","null"]))throw new Br("Expected first argument to be of type boolean, string, number or null, but found "+Tr(Gr(e))+" instead.");if(!Rr(r,["string","array"]))throw new Br("Expected second argument to be of type array or string, but found "+Tr(Gr(r))+" instead.");if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},pi.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},pi.prototype.outputDefined=function(){return!1},pi.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 di=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};di.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,Gr(f)))return null}else r=Gr(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,xr);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 di(r,n,d,i,o,g):null},di.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=Gr(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise;return r.evaluate(t)},di.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},di.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},di.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 gi=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};gi.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,mr);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 gi(r,n,s):null},gi.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)},gi.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)},gi.prototype.outputDefined=function(){return this.branches.every((function(t){t[0];var e=t[1];return e.outputDefined()}))&&this.otherwise.outputDefined()},gi.prototype.serialize=function(){var t=["case"];return this.eachChild((function(e){t.push(e.serialize())})),t};var yi=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};function vi(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 mi(t,e,r){return e===r}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,n){return 0===n.compare(e,r)}function Si(t,e,r,n){return!Ei(t,e,r,n)}function Ci(t,e,r,n){return n.compare(e,r)<0}function Ti(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 Mi(t,e,r){var n="=="!==t&&"!="!==t;return function(){function i(t,e,r){this.type=mr,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,xr);if(!o)return null;if(!vi(r,o.type))return e.concat(1).error('"'+r+"\" comparisons are not supported for type '"+Tr(o.type)+"'.");var a=e.parse(t[2],2,xr);if(!a)return null;if(!vi(r,a.type))return e.concat(2).error('"'+r+"\" comparisons are not supported for type '"+Tr(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot compare types '"+Tr(o.type)+"' and '"+Tr(a.type)+"'.");n&&("value"===o.type.kind&&"value"!==a.type.kind?o=new Vr(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new Vr(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,Or),!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=Gr(o),l=Gr(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=Gr(o),c=Gr(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}()}yi.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,xr),n=e.parse(t[2],2,yr);if(!r||!n)return null;if(!Mr(r.type,[Cr(xr),vr,xr]))return e.error("Expected first argument to be of type array or string, but found "+Tr(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,yr);return i?new yi(r.type,r,n,i):null}return new yi(r.type,r,n)},yi.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Rr(e,["string","array"]))throw new Br("Expected first argument to be of type array or string, but found "+Tr(Gr(e))+" instead.");if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},yi.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},yi.prototype.outputDefined=function(){return!1},yi.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 Ri=Mi("==",mi,Ei),Ai=Mi("!=",_i,Si),Li=Mi("<",bi,Ci),Ii=Mi(">",xi,Ti),ki=Mi("<=",wi,Pi),Fi=Mi(">=",Oi,ji),Di=function(t,e,r,n,i){this.type=vr,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};Di.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,yr);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,vr),!i))return null;var o=null;if(n["currency"]&&(o=e.parse(n["currency"],1,vr),!o))return null;var a=null;if(n["min-fraction-digits"]&&(a=e.parse(n["min-fraction-digits"],1,yr),!a))return null;var s=null;return n["max-fraction-digits"]&&(s=e.parse(n["max-fraction-digits"],1,yr),!s)?null:new Di(r,i,o,a,s)},Di.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))},Di.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)},Di.prototype.outputDefined=function(){return!1},Di.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 Gi=function(t){this.type=yr,this.input=t};Gi.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 "+Tr(r.type)+" instead."):new Gi(r):null},Gi.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 "+Tr(Gr(e))+" instead.")},Gi.prototype.eachChild=function(t){t(this.input)},Gi.prototype.outputDefined=function(){return!1},Gi.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var Ni={"==":Ri,"!=":Ai,">":Ii,"<":Li,">=":Fi,"<=":ki,array:Vr,at:hi,boolean:Vr,case:gi,coalesce:ui,collator:$r,format:Xr,image:Wr,in:fi,"index-of":pi,interpolate:si,"interpolate-hcl":si,"interpolate-lab":si,length:Gi,let:ci,literal:zr,match:di,number:Vr,"number-format":Di,object:Vr,slice:yi,step:An,string:Vr,"to-boolean":Yr,"to-color":Yr,"to-number":Yr,"to-string":Yr,var:Pn,within:En};function zi(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=Fr(r,n,i,a);if(s)throw new Br(s);return new Qe(r/255*a,n/255*a,i/255*a,a)}function Bi(t,e){return t in e}function Ui(t,e){var r=e[t];return"undefined"===typeof r?null:r}function Vi(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 Xi(t){return{type:t}}function Wi(t){return{result:"success",value:t}}function Hi(t){return{result:"error",value:t}}function Yi(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function qi(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Zi(t){return!!t.expression&&t.expression.interpolated}function Ki(t){return"object"===typeof t&&null!==t&&!Array.isArray(t)}Kr.register(Ni,{error:[wr,[vr],function(t,e){var r=e[0];throw new Br(r.evaluate(t))}],typeof:[vr,[xr],function(t,e){var r=e[0];return Tr(Gr(r.evaluate(t)))}],"to-rgba":[Cr(yr,4),[_r],function(t,e){var r=e[0];return r.evaluate(t).toArray()}],rgb:[_r,[yr,yr,yr],zi],rgba:[_r,[yr,yr,yr,yr],zi],has:{type:mr,overloads:[[[vr],function(t,e){var r=e[0];return Bi(r.evaluate(t),t.properties())}],[[vr,br],function(t,e){var r=e[0],n=e[1];return Bi(r.evaluate(t),n.evaluate(t))}]]},get:{type:xr,overloads:[[[vr],function(t,e){var r=e[0];return Ui(r.evaluate(t),t.properties())}],[[vr,br],function(t,e){var r=e[0],n=e[1];return Ui(r.evaluate(t),n.evaluate(t))}]]},"feature-state":[xr,[vr],function(t,e){var r=e[0];return Ui(r.evaluate(t),t.featureState||{})}],properties:[br,[],function(t){return t.properties()}],"geometry-type":[vr,[],function(t){return t.geometryType()}],id:[xr,[],function(t){return t.id()}],zoom:[yr,[],function(t){return t.globals.zoom}],pitch:[yr,[],function(t){return t.globals.pitch||0}],"distance-from-center":[yr,[],function(t){return t.distanceFromCenter()}],"heatmap-density":[yr,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[yr,[],function(t){return t.globals.lineProgress||0}],"sky-radial-progress":[yr,[],function(t){return t.globals.skyRadialProgress||0}],accumulated:[xr,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[yr,Xi(yr),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}],"*":[yr,Xi(yr),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:yr,overloads:[[[yr,yr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)-n.evaluate(t)}],[[yr],function(t,e){var r=e[0];return-r.evaluate(t)}]]},"/":[yr,[yr,yr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)/n.evaluate(t)}],"%":[yr,[yr,yr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)%n.evaluate(t)}],ln2:[yr,[],function(){return Math.LN2}],pi:[yr,[],function(){return Math.PI}],e:[yr,[],function(){return Math.E}],"^":[yr,[yr,yr],function(t,e){var r=e[0],n=e[1];return Math.pow(r.evaluate(t),n.evaluate(t))}],sqrt:[yr,[yr],function(t,e){var r=e[0];return Math.sqrt(r.evaluate(t))}],log10:[yr,[yr],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN10}],ln:[yr,[yr],function(t,e){var r=e[0];return Math.log(r.evaluate(t))}],log2:[yr,[yr],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN2}],sin:[yr,[yr],function(t,e){var r=e[0];return Math.sin(r.evaluate(t))}],cos:[yr,[yr],function(t,e){var r=e[0];return Math.cos(r.evaluate(t))}],tan:[yr,[yr],function(t,e){var r=e[0];return Math.tan(r.evaluate(t))}],asin:[yr,[yr],function(t,e){var r=e[0];return Math.asin(r.evaluate(t))}],acos:[yr,[yr],function(t,e){var r=e[0];return Math.acos(r.evaluate(t))}],atan:[yr,[yr],function(t,e){var r=e[0];return Math.atan(r.evaluate(t))}],min:[yr,Xi(yr),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[yr,Xi(yr),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[yr,[yr],function(t,e){var r=e[0];return Math.abs(r.evaluate(t))}],round:[yr,[yr],function(t,e){var r=e[0],n=r.evaluate(t);return n<0?-Math.round(-n):Math.round(n)}],floor:[yr,[yr],function(t,e){var r=e[0];return Math.floor(r.evaluate(t))}],ceil:[yr,[yr],function(t,e){var r=e[0];return Math.ceil(r.evaluate(t))}],"filter-==":[mr,[vr,xr],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],"filter-id-==":[mr,[xr],function(t,e){var r=e[0];return t.id()===r.value}],"filter-type-==":[mr,[vr],function(t,e){var r=e[0];return t.geometryType()===r.value}],"filter-<":[mr,[vr,xr],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-<":[mr,[xr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n<i}],"filter->":[mr,[vr,xr],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->":[mr,[xr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n>i}],"filter-<=":[mr,[vr,xr],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-<=":[mr,[xr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n<=i}],"filter->=":[mr,[vr,xr],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->=":[mr,[xr],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n>=i}],"filter-has":[mr,[xr],function(t,e){var r=e[0];return r.value in t.properties()}],"filter-has-id":[mr,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[mr,[Cr(vr)],function(t,e){var r=e[0];return r.value.indexOf(t.geometryType())>=0}],"filter-id-in":[mr,[Cr(xr)],function(t,e){var r=e[0];return r.value.indexOf(t.id())>=0}],"filter-in-small":[mr,[vr,Cr(xr)],function(t,e){var r=e[0],n=e[1];return n.value.indexOf(t.properties()[r.value])>=0}],"filter-in-large":[mr,[vr,Cr(xr)],function(t,e){var r=e[0],n=e[1];return Vi(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:mr,overloads:[[[mr,mr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)&&n.evaluate(t)}],[Xi(mr),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:mr,overloads:[[[mr,mr],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)||n.evaluate(t)}],[Xi(mr),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}]]},"!":[mr,[mr],function(t,e){var r=e[0];return!r.evaluate(t)}],"is-supported-script":[mr,[vr],function(t,e){var r=e[0],n=t.globals&&t.globals.isSupportedScript;return!n||n(r.evaluate(t))}],upcase:[vr,[vr],function(t,e){var r=e[0];return r.evaluate(t).toUpperCase()}],downcase:[vr,[vr],function(t,e){var r=e[0];return r.evaluate(t).toLowerCase()}],concat:[vr,Xi(xr),function(t,e){return e.map((function(e){return Nr(e.evaluate(t))})).join("")}],"resolved-locale":[vr,[Or],function(t,e){var r=e[0];return r.evaluate(t).resolvedLocale()}]});var Ji=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new Zr,this._defaultValue=e?oo(e):null,this._enumValues=e&&"enum"===e.type?e.values:null};function $i(t){return Array.isArray(t)&&t.length>0&&"string"===typeof t[0]&&t[0]in Ni}function Qi(t,e){var r=new jn(Ni,[],e?io(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return n?Wi(new Ji(n,e)):Hi(r.errors)}Ji.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)},Ji.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(al){return this._warningHistory[al.message]||(this._warningHistory[al.message]=!0,"undefined"!==typeof console&&console.warn(al.message)),this._defaultValue}};var to=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Cn(e.expression)};to.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,o)},to.prototype.evaluate=function(t,e,r,n,i,o){return this._styleExpression.evaluate(t,e,r,n,i,o)};var eo=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 ro(t,e){if(t=Qi(t,e),"error"===t.result)return t;var r=t.value.expression,n=Sn(r);if(!n&&!Yi(e))return Hi([new pr("","data expressions not supported")]);var i=Tn(r,["zoom","pitch","distance-from-center"]);if(!i&&!qi(e))return Hi([new pr("","zoom expressions not supported")]);var o=no(r);if(!o&&!i)return Hi([new pr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof pr)return Hi([o]);if(o instanceof si&&!Zi(e))return Hi([new pr("",'"interpolate" expressions cannot be used with this property')]);if(!o)return Wi(new to(n?"constant":"source",t.value));var a=o instanceof si?o.interpolation:void 0;return Wi(new eo(n?"camera":"composite",t.value,o.labels,a))}function no(t){var e=null;if(t instanceof ci)e=no(t.result);else if(t instanceof ui)for(var r=0,n=t.args;r<n.length;r+=1){var i=n[r];if(e=no(i),e)break}else(t instanceof An||t instanceof si)&&t.input instanceof Kr&&"zoom"===t.input.name&&(e=t);return e instanceof pr||t.eachChild((function(t){var r=no(t);r instanceof pr?e=r:!e&&r?e=new pr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&r&&e!==r&&(e=new pr("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),e}function io(t){var e={color:_r,string:vr,number:yr,enum:vr,boolean:mr,formatted:Er,resolvedImage:Sr};return"array"===t.type?Cr(e[t.value]||xr,t.length):e[t.type]}function oo(t){return"color"===t.type&&(Ki(t.default)||Array.isArray(t.default))?new Qe(0,0,0,0):"color"===t.type?Qe.parse(t.default)||null:void 0===t.default?null:t.default}function ao(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function so(t){if(Array.isArray(t))return t.map(so);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=so(t[r]);return e}return ao(t)}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)},eo.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?si.interpolationFactor(this.interpolationType,t,e,r):0};var lo={$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 uo(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(!uo(n)&&"boolean"!==typeof n)return!1}return!0;default:return!0}}function co(t,e){if(void 0===e&&(e="fill"),null===t||void 0===t)return{filter:function(){return!0},needGeometry:!1,needFeature:!1};uo(t)||(t=xo(t));var r=t,n=!0;try{n=ho(r)}catch(al){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=lo["filter_"+e],o=Qi(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=Qi(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=!Sn(u.value.expression)}a=a;var c=bo(n);return{filter:a,dynamicFilter:s||void 0,needGeometry:c,needFeature:!!l}}function ho(t){if(!go(t))return t;var e=so(t);return po(e),e=fo(e),e}function fo(t){if(!Array.isArray(t))return t;var e=mo(t);return!0===e?e:e.map((function(t){return fo(t)}))}function po(t){var e=!1,r=[];if("case"===t[0]){for(var n=1;n<t.length-1;n+=2)e=e||go(t[n]),r.push(t[n+1]);r.push(t[t.length-1])}else if("match"===t[0]){e=e||go(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||go(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++)po(t[a])}function go(t){if(!Array.isArray(t))return!1;if(yo(t[0]))return!0;for(var e=1;e<t.length;e++){var r=t[e];if(go(r))return!0}return!1}function yo(t){return"pitch"===t||"distance-from-center"===t}var vo=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function mo(t){if(vo.has(t[0]))for(var e=1;e<t.length;e++){var r=t[e];if(go(r))return!0}return t}function _o(t,e){return t<e?-1:t>e?1:0}function bo(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(var e=1;e<t.length;e++)if(bo(t[e]))return!0;return!1}function xo(t){if(!t)return!0;var e=t[0];if(t.length<=1)return"any"!==e;var r="=="===e?wo(t[1],t[2],"=="):"!="===e?Co(wo(t[1],t[2],"==")):"<"===e||">"===e||"<="===e||">="===e?wo(t[1],t[2],e):"any"===e?Oo(t.slice(1)):"all"===e?["all"].concat(t.slice(1).map(xo)):"none"===e?["all"].concat(t.slice(1).map(xo).map(Co)):"in"===e?Eo(t[1],t.slice(2)):"!in"===e?Co(Eo(t[1],t.slice(2))):"has"===e?So(t[1]):"!has"===e?Co(So(t[1])):"within"!==e||t;return r}function wo(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 Oo(t){return["any"].concat(t.map(xo))}function Eo(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(_o)]]:["filter-in-small",t,["literal",e]]}}function So(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Co(t){return["!",t]}var To=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Po(t,e){var r={};for(var n in t)"ref"!==n&&(r[n]=t[n]);return To.forEach((function(t){t in e&&(r[t]=e[t])})),r}function jo(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]=Po(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},Ro=" ",Ao=/(italic|oblique)$/i,Lo={},Io=function(t,e,r){var n=Lo[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()):Ao.test(p)&&(p=p.replace(Ao,""),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(Ro).replace("Klokantech Noto Sans","Noto Sans");-1!==y.indexOf(Ro)&&(y='"'+y+'"'),l.push(y)}n=Lo[t]=[s,a,l]}return n[0]+Ro+n[1]+Ro+e+"px"+(r?"/"+r:"")+Ro+n[2]},ko="https://api.mapbox.com";function Fo(t){var e="mapbox://";return 0!==t.indexOf(e)?"":t.slice(e.length)}function Do(t,e,r){var n=Fo(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 Go(t,e){var r=Fo(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 No(t,e,r,n){var i=new URL(t,n),o=Fo(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 zo(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 Uo(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 Vo(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 Xo={};function Wo(t,e,r){if(void 0===r&&(r={}),e in Xo)return Xo[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 Xo[e],t.ok?t.json():Promise.reject(new Error("Error fetching source "+e))})).catch((function(t){return delete Xo[e],Promise.reject(new Error("Error fetching source "+e))}));return Xo[e]=i,i}function Ho(t,e){if("string"!==typeof t)return Promise.resolve(t);if(!t.trim().startsWith("{"))return t=Go(t,e.accessToken),Wo("Style",t,e);try{var r=JSON.parse(t);return Promise.resolve(r)}catch(n){return Promise.reject(n)}}var Yo={};function qo(t,e,r){void 0===r&&(r={});var n=[e,JSON.stringify(t)].toString(),i=Yo[n];if(!i||r.transformRequest){var o=t.url;if(o&&!t.tiles){var a=No(o,r.accessToken,r.accessTokenParam||"access_token",e||location.href);i=o.startsWith("mapbox://")?Promise.resolve(Object.assign({},t,{url:void 0,tiles:a})):Wo("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=No(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 No(t,r.accessToken,r.accessTokenParam||"access_token",e||location.href)}))}),i=Promise.resolve(Object.assign({},t));Yo[n]=i}return i}var Zo,Ko=Array(256).join(" ");function Jo(t,e){if(e>=.05){for(var r="",n=t.split("\n"),i=Ko.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 $o(){return Zo||(Zo=Uo(1,1).getContext("2d")),Zo}function Qo(t,e){return $o().measureText(t).width+(t.length-1)*e}var ta={};function ea(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(ea(i[a],e,r,n));return o.join("\n")}var l=r+","+e+","+t+","+n,u=ta[l];if(!u){var c=t.split(" ");if(c.length>1){var h=$o();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;Qo(_,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(Qo(w,n)<.35*p){var O=b>0?Qo(g[b-1],n):1/0,E=b<x-1?Qo(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,C=g.length-1;S<C;++S){var T=g[S],P=g[S+1];if(Qo(T,n)>.7*p&&Qo(P,n)<.6*p){var j=T.split(" "),M=j.pop();Qo(M,n)<.2*p&&(g[S]=j.join(" "),g[S+1]=M+" "+P),C-=1}}u=g.join("\n")}else u=t;u=Jo(u,n),ta[l]=u}return u}var ra,na=/font-family: ?([^;]*);/,ia=/("|')/g;function oa(t){if(!ra){ra={};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(na);ra[u[1].replace(ia,"")]=!0}}}catch(al){}}}return t in ra}var aa={};function sa(t){var e=t.toString();if(e in aa)return aa[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=Io(o,1);Object(ze["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(!oa(h)&&100!==ze["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 aa[e]=t,t}var la,ua,ca={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},ha={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]},fa=function(t,e){var r=ro(t,e);if("error"===r.result)throw new Error(r.value.map((function(t){return t.key+": "+t.message})).join(", "));return r.value},pa={},da={zoom:0};function ga(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]||pa)[r],c=lo[e+"_"+t.type][r];void 0===u&&(u=c.default);var h=$i(u);if(!h&&Ki(u)&&(u=er(u,c),h=!0),h){var f=fa(u,c);l[r]=f.evaluate.bind(f)}else"color"==c.type&&(u=Qe.parse(u)),l[r]=function(){return u}}return da.zoom=n,l[r](da,i,a)}function ya(t,e,r,n){var i=ga(t,"layout","icon-allow-overlap",e,r,n);if(!i)return"declutter";var o=ga(t,"layout","icon-ignore-placement",e,r,n);return o?"none":"obstacle"}function va(t,e,r,n,i){return i||console.warn("No filterCache provided to evaluateFilter()"),t in i||(i[t]=co(e).filter),da.zoom=n,i[t](da,r)}var ma=!1;function _a(t,e){if(t){if(!ma&&(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 ba=/\{[^{}}]*\}/g;function xa(t,e){return t.replace(ba,(function(t){return e[t.slice(1,-1)]||""}))}var wa=!1;function Oa(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=jo(e.layers),v={},m=[],_={},b={},x={},w={},O=0,E=y.length;O<E;++O){var S=y[O],C=S.id;if("string"==typeof r&&S.source==r||-1!==r.indexOf(C)){var T=S["source-layer"];if(g){if(S.source!==g)throw new Error('Layer "'+C+'" 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 M=v[T];M||(M=[],v[T]=M),M.push({layer:S,index:O}),m.push(C)}}var R=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=Vo(r,n));for(var g,y=ca[e.getGeometry().getType()],m={properties:o,type:y},O=t.get("mapbox-featurestate")[e.getId()],E=-1,S=0,C=p.length;S<C;++S){var T=p[S],P=T.layer,j=P.id,M=P.layout||pa,I=P.paint||pa;if(!("none"===M.visibility||"minzoom"in P&&d<P.minzoom||"maxzoom"in P&&d>=P.maxzoom)){var k=P.filter;if(!k||va(j,k,m,d,w)){g=P;var F=void 0,D=void 0,G=void 0,N=void 0,z=void 0,B=void 0,U=T.index;if(3==y&&("fill"==P.type||"fill-extrusion"==P.type))if(D=ga(P,"paint",P.type+"-opacity",d,m,x,O),P.type+"-pattern"in I){var V=ga(P,"paint",P.type+"-pattern",d,m,x,O);if(V){var X="string"===typeof V?xa(V,o):V.toString();if(l&&i&&i[X]){++E,B=L[E],B&&B.getFill()&&!B.getStroke()&&!B.getText()||(B=new h["default"]({fill:new a["default"]}),L[E]=B),G=B.getFill(),B.setZIndex(U);var W=X+"."+D,H=b[W];if(!H){var Y=i[X],q=Uo(Y.width,Y.height),Z=q.getContext("2d");Z.globalAlpha=D,Z.drawImage(l,Y.x,Y.y,Y.width,Y.height,0,0,Y.width,Y.height),H=Z.createPattern(q,"repeat"),b[W]=H}G.setColor(H)}}}else F=_a(ga(P,"paint",P.type+"-color",d,m,x,O),D),P.type+"-outline-color"in I&&(z=_a(ga(P,"paint",P.type+"-outline-color",d,m,x,O),D)),z||(z=F),(F||z)&&(++E,B=L[E],(!B||F&&!B.getFill()||!F&&B.getFill()||z&&!B.getStroke()||!z&&B.getStroke()||B.getText())&&(B=new h["default"]({fill:F?new a["default"]:void 0,stroke:z?new c["default"]:void 0}),L[E]=B),F&&(G=B.getFill(),G.setColor(F)),z&&(N=B.getStroke(),N.setColor(z),N.setWidth(.5)),B.setZIndex(U));if(1!=y&&"line"==P.type){F=!("line-pattern"in I)&&"line-color"in I?_a(ga(P,"paint","line-color",d,m,x,O),ga(P,"paint","line-opacity",d,m,x,O)):void 0;var K=ga(P,"paint","line-width",d,m,x,O);F&&K>0&&(++E,B=L[E],B&&B.getStroke()&&!B.getFill()&&!B.getText()||(B=new h["default"]({stroke:new c["default"]}),L[E]=B),N=B.getStroke(),N.setLineCap(ga(P,"layout","line-cap",d,m,x,O)),N.setLineJoin(ga(P,"layout","line-join",d,m,x,O)),N.setMiterLimit(ga(P,"layout","line-miter-limit",d,m,x,O)),N.setColor(F),N.setWidth(K),N.setLineDash(I["line-dasharray"]?ga(P,"paint","line-dasharray",d,m,x,O).map((function(t){return t*K})):null),B.setZIndex(U))}var J=!1,$=null,Q=0,tt=void 0,et=void 0,rt=void 0;if((1==y||2==y)&&"icon-image"in M){var nt=ga(P,"layout","icon-image",d,m,x,O);if(nt){tt="string"===typeof nt?xa(nt,o):nt.toString();var it=void 0;if(l&&i&&i[tt]){var ot=ga(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();ua||(la=[NaN,NaN],ua=new ue("Point",la,[],{},null)),it=ua,la[0]=ut[0],la[1]=ut[1];var ct=ga(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=ga(P,"layout","icon-size",d,m,x,O),Et=void 0!==I["icon-color"]?ga(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 Ct=i[tt],Tt=ya(P,d,m,x);et=new Ne["a"]({color:Et?[255*Et.r,255*Et.g,255*Et.b,Et.a]:void 0,img:l,imgSize:u,size:[Ct.width,Ct.height],offset:[Ct.x,Ct.y],rotateWithView:"map"===ot,scale:Ot/Ct.pixelRatio,displacement:"icon-offset"in M?ga(P,"layout","icon-offset",d,m,x,O).map((function(t){return-t*Ct.pixelRatio})):void 0,declutterMode:Tt}),_[St]=et}}et&&(++E,B=L[E],B&&B.getImage()&&!B.getFill()&&!B.getStroke()||(B=new h["default"],L[E]=B),B.setGeometry(it),et.setRotation(Q+zo(ga(P,"layout","icon-rotate",d,m,x,O))),et.setOpacity(ga(P,"paint","icon-opacity",d,m,x,O)),et.setAnchor(ha[ga(P,"layout","icon-anchor",d,m,x,O)]),B.setImage(et),$=B.getText(),B.setText(void 0),B.setZIndex(U),J=!0,rt=!1)}else rt=!0}}}if(1==y&&"circle"===P.type){++E,B=L[E],B&&B.getImage()&&!B.getFill()&&!B.getStroke()||(B=new h["default"],L[E]=B);var Pt="circle-radius"in I?ga(P,"paint","circle-radius",d,m,x,O):5,jt=_a(ga(P,"paint","circle-stroke-color",d,m,x,O),ga(P,"paint","circle-stroke-opacity",d,m,x,O)),Mt=_a(ga(P,"paint","circle-color",d,m,x,O),ga(P,"paint","circle-opacity",d,m,x,O)),Rt=ga(P,"paint","circle-stroke-width",d,m,x,O),At=Pt+"."+jt+"."+Mt+"."+Rt;et=_[At],et||(et=new Ge["default"]({radius:Pt,stroke:jt&&Rt>0?new c["default"]({width:Rt,color:jt}):void 0,fill:Mt?new a["default"]({color:Mt}):void 0,declutterMode:"none"}),_[At]=et),B.setImage(et),$=B.getText(),B.setText(void 0),B.setGeometry(void 0),B.setZIndex(U),J=!0}var Lt=void 0,It=void 0,kt=void 0,Ft=void 0,Dt=void 0,Gt=void 0;if("text-field"in M){Ft=Math.round(ga(P,"layout","text-size",d,m,x,O));var Nt=ga(P,"layout","text-font",d,m,x,O);kt=ga(P,"layout","text-line-height",d,m,x,O),It=Io(s?s(Nt):Nt,Ft,kt),It.includes("sans-serif")||(It+=",sans-serif"),Dt=ga(P,"layout","text-letter-spacing",d,m,x,O),Gt=ga(P,"layout","text-max-width",d,m,x,O);var zt=ga(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=Io(s?s(n):n,Ft*(e.scale||1),kt),o=e.text;if("\n"===o)return t.push("\n",""),t;if(2!=y){o=ea(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(Jo(o,Dt),i)}),[]):xa(zt,o).trim(),D=ga(P,"paint","text-opacity",d,m,x,O)}if(Lt&&D&&!rt){J||(++E,B=L[E],B&&B.getText()&&!B.getFill()&&!B.getStroke()||(B=new h["default"],L[E]=B),B.setImage(void 0),B.setGeometry(void 0)),B.getText()||B.setText($||new f["a"]({padding:[2,2,2,2]})),$=B.getText();var Bt=M["text-transform"];"uppercase"==Bt?Lt=Array.isArray(Lt)?Lt.map((function(t,e){return e%2?t:t.toUpperCase()})):Lt.toUpperCase():"lowercase"==Bt&&(Lt=Array.isArray(Lt)?Lt.map((function(t,e){return e%2?t:t.toLowerCase()})):Lt.toLowerCase());var Ut=Array.isArray(Lt)?Lt:2==y?Jo(Lt,Dt):ea(Lt,It,Gt,Dt);$.setText(Ut),$.setFont(It),$.setRotation(zo(ga(P,"layout","text-rotate",d,m,x,O)));var Vt=ga(P,"layout","text-anchor",d,m,x,O),Xt=J||1==y?"point":ga(P,"layout","symbol-placement",d,m,x,O);$.setPlacement(Xt),$.setOverflow("point"===Xt);var Wt=ga(P,"paint","text-halo-width",d,m,x,O),Ht=ga(P,"layout","text-offset",d,m,x,O),Yt=ga(P,"paint","text-translate",d,m,x,O),qt=0,Zt=0;if("point"==Xt){var Kt="center";-1!==Vt.indexOf("left")?(Kt="left",Zt=Wt):-1!==Vt.indexOf("right")&&(Kt="right",Zt=-Wt),$.setTextAlign(Kt);var Jt=ga(P,"layout","text-rotation-alignment",d,m,x,O);$.setRotateWithView("map"==Jt)}else $.setMaxAngle(zo(ga(P,"layout","text-max-angle",d,m,x,O))*Lt.length/Ut.length),$.setTextAlign(),$.setRotateWithView(!1);var $t="middle";0==Vt.indexOf("bottom")?($t="bottom",qt=-Wt-.5*(kt-1)*Ft):0==Vt.indexOf("top")&&($t="top",qt=Wt+.5*(kt-1)*Ft),$.setTextBaseline($t),$.setOffsetX(Ht[0]*Ft+Zt+Yt[0]),$.setOffsetY(Ht[1]*Ft+qt+Yt[1]),A.setColor(_a(ga(P,"paint","text-color",d,m,x,O),D)),$.setFill(A);var Qt=_a(ga(P,"paint","text-halo-color",d,m,x,O),D);if(Qt){R.setColor(Qt),Wt*=2;var te=.5*Ft;R.setWidth(Wt<=te?Wt:te),$.setStroke(R)}else $.setStroke(void 0);var ee=ga(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),B.setZIndex(U)}}}}return E>-1?(L.length=E+1,wa&&("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 Ea(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 Sa(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:Go(o,s.accessToken),s=Ea(o,s)),new Promise((function(n,l){Ho(e,s).then((function(e){if(8!=e.version)return l(new Error("glStyle version 8 required."));if(!(t instanceof p["default"]||t instanceof Fe))return l(new Error("Can only apply to VectorLayer or VectorTileLayer"));var u,c,h,f,d=t instanceof Fe?"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 Fe)return Ra(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()===De["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=La(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=Oa(t,e,r,i,c,h,sa),t.getStyle()?g().then(n).catch(l):l(new Error("Nothing to show for source ["+a+"]")))}if(e.sprite){var v=new URL(Do(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){Wo("Sprite",b,s).then(t).catch((function(r){b=v.origin+v.pathname+".json"+v.search,Wo("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 Ta(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=ga(r,"paint","background-color",u,Ca,n),c&&(c.style.background=Qe.parse(s).toString())),void 0!==a["background-opacity"]&&(l=ga(r,"paint","background-opacity",u,Ca,n),c&&(c.style.opacity=l)),"none"!=o.visibility)return _a(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 Pa(t,e){e.layers.some((function(e){if("background"===e.type)return Ta(t,e),!0}))}function ja(t,e,r){return void 0===r&&(r={}),"object"===typeof e?(Pa(t,e),Promise.resolve()):Ho(e,r).then((function(e){Pa(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 Ra(t,e,r){return new Promise((function(n,i){qo(t,e,r).then((function(t){var e=new Ve["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 _e,tileGrid:new Ue["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 De["a"](l))})).catch(i)}))}var Aa=new Be["default"];function La(t,e,r){var n=t.data,i={};if("string"==typeof n){var o=No(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=Aa.readFeatures(n,{featureProjection:Object(_["getUserProjection"])()||"EPSG:3857"});var s=new d["default"](Object.assign({attributions:t.attribution,format:Aa},i));return s.set("mapbox-source",t),s}var Ia=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,Yt["a"].ERROR)||this;return r.error=e,r}return Ia(e,t),e}(Ht["a"]),Fa=function(t){function e(e){var r=this,n=!("declutter"in e)||e.declutter,i=new De["a"]({state:"loading",format:new _e});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 Sa(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()&&ja(r,e.styleUrl,{accessToken:r.accessToken}),r}return Ia(e,t),e}(Fe),Da=Fa,Ga=r("39cf"),Na=r("da2f"),za=r("ed9b"),Ba=r("869f"),Ua=r("25a5"),Va=r.n(Ua),Xa=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)}}(),Wa=function(t){function e(e){var r=t.call(this,e)||this;return r.vectorRenderer_=new Na["a"](e),r.layerImageRatio_=e.getImageRatio(),r.coordinateToVectorPixelTransform_=Object(at["c"])(),r.renderedPixelToCoordinateTransform_=null,r}return Xa(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(at["a"])(this.coordinateToVectorPixelTransform_,Object(at["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[A["a"].ANIMATING]&&!i[A["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 Va.a(9),extent:a,size:[s,l],viewState:Object(y["a"])({},t.viewState,{rotation:0}),layerStatesArray:[h],layerIndex:0}),p=!0,d=new za["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(Yt["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(at["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}(Ga["a"]),Ha=Wa,Ya=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)}}(),qa=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 Ya(e,t),e.prototype.getImageRatio=function(){return this.imageRatio_},e.prototype.createRenderer=function(){return new Ha(this)},e}(M["a"]),Za=qa,Ka=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}(),Ja=Ka,$a=r("5116"),Qa=r("dc07"),ts=r("e134"),es=r("0ec0"),rs=r("7f98"),ns=r("2efc"),is=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 os(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 as(t,e,r,n){os(t,e,n),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,r)}function ss(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;os(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 ls=null;function us(){var t=document.createElement("canvas");t.width=1,t.height=1,ls=t.getContext("2d")}var cs=function(t){function e(e){var r=t.call(this)||this;r.tile,r.textures=[],r.handleTileChange_=r.handleTileChange_.bind(r),r.renderSize_=Object(Te["d"])(e.grid.getTileSize(e.tile.tileCoord[0])),r.gutter_=e.gutter||0,r.bandCount=NaN,r.helper_=e.helper;var n=new Z(I,D);return n.fromArray([0,1,1,1,1,0,0,0]),r.helper_.flushBufferData(n),r.coords=n,r.setTile(e.tile),r}return is(e,t),e.prototype.setTile=function(t){if(t!==this.tile)if(this.tile&&this.tile.removeEventListener(Yt["a"].CHANGE,this.handleTileChange_),this.tile=t,this.textures.length=0,this.loaded=t.getState()===Oe["a"].LOADED,this.loaded)this.uploadTile_();else{if(t instanceof rs["a"]){var e=t.getImage();e instanceof Image&&!e.crossOrigin&&(e.crossOrigin="anonymous")}t.addEventListener(Yt["a"].CHANGE,this.handleTileChange_)}},e.prototype.uploadTile_=function(){var t=this.helper_,e=t.getGL(),r=this.tile;if(r instanceof rs["a"]||r instanceof ns["a"]){var n=e.createTexture();return this.textures.push(n),this.bandCount=4,void as(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 ss(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;ss(t,n,E,o,g,r.interpolate)}},e.prototype.handleTileChange_=function(){this.tile.getState()===Oe["a"].LOADED&&(this.loaded=!0,this.uploadTile_(),this.dispatchEvent(Yt["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(Yt["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 ts["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)}ls||us(),ls.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{ls.drawImage(m,O,E,1,1,0,0,1,1),v=ls.getImageData(0,0,1,1).data}catch(S){return ls=null,null}return v},e}(es["a"]),hs=cs,fs=r("2c30"),ps=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)}}(),ds={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"},gs={TEXTURE_COORD:"a_textureCoord"},ys=[{name:gs.TEXTURE_COORD,size:2,type:ht.FLOAT}],vs={};function ms(t){return 2*(1-1/(t+1))-1}function _s(t,e,r){r in t||(t[r]=[]),t[r].push(e)}function bs(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 xs(t,e){return"".concat(t.getKey(),",").concat(Object(fs["d"])(e))}var ws=function(t){function e(e,r){var n=t.call(this,e,{uniforms:r.uniforms})||this;n.renderComplete=!1,n.tileTransform_=Object(at["c"])(),n.tempMat4_=st(),n.tempTileRange_=new Qa["b"](0,0,0,0),n.tempTileCoord_=Object(fs["a"])(0,0,0),n.tempSize_=[0,0],n.program_,n.vertexShader_=r.vertexShader,n.fragmentShader_=r.fragmentShader,n.indices_=new Z(k,D),n.indices_.fromArray([0,1,3,1,2,3]);var i=void 0!==r.cacheSize?r.cacheSize:512;return n.tileTextureCache_=new $a["a"](i),n.paletteTextures_=r.paletteTextures||[],n.frameState_=null,n}return ps(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==Oe["a"].LOADED||r==Oe["a"].EMPTY||r==Oe["a"].ERROR&&!n},e.prototype.prepareFrameInternal=function(t){var e=this.getLayer(),r=e.getRenderSource();return!!r&&(!Object(g["isEmpty"])(bs(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(et["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(fs["a"])(p,y,v,this.tempTileCoord_),_=xs(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 hs({tile:x,grid:s,helper:this.helper,gutter:l}),h.set(_,b);_s(n,b,p);var O=x.getKey();c[O]=!0,x.getState()===Oe["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=bs(t,t.extent),l=o.getZForResolution(r.resolution,i.zDirection),u={};if(t.nextExtent){var c=o.getZForResolution(r.nextResolution,i.zDirection),h=bs(t,t.nextExtent);this.enqueueTiles(t,h,c,u)}this.enqueueTiles(t,s,l,u);for(var f={},p=Object(et["c"])(this),d=t.time,y=!1,v=u[l],m=0,_=v.length;m<_;++m){var b=v[m],x=b.tile,w=x.tileCoord;if(b.loaded){var O=x.getAlpha(p,d);if(1===O){x.endTransition(p);continue}y=!0;var E=Object(fs["d"])(w);f[E]=O}this.renderComplete=!1;var S=this.findAltTiles_(o,w,l+1,u);if(!S)for(var C=o.getMinZoom(),T=l-1;T>=C;--T){var P=this.findAltTiles_(o,w,T,u);if(P)break}}this.helper.useProgram(this.program_),this.helper.prepareDraw(t,!y);for(var j=Object.keys(u).map(Number).sort(Pt["i"]),M=r.center[0],R=r.center[1],A=0,L=j.length;A<L;++A){var I=j[A],k=o.getResolution(I),F=Object(Te["d"])(o.getTileSize(I),this.tempSize_),D=o.getOrigin(I),G=F[0]+2*a,N=F[1]+2*a,z=G/N,B=(M-D[0])/(F[0]*k),U=(D[1]-R)/(F[1]*k),V=r.resolution/k,X=ms(I),W=u[I];for(m=0,_=W.length;m<_;++m){b=W[m];if(b.loaded){x=b.tile,w=x.tileCoord,E=Object(fs["d"])(w);var H=w[1],Y=w[2];Object(at["g"])(this.tileTransform_),Object(at["i"])(this.tileTransform_,2/(t.size[0]*V/G),-2/(t.size[1]*V/G)),Object(at["h"])(this.tileTransform_,r.rotation),Object(at["i"])(this.tileTransform_,1,1/z),Object(at["l"])(this.tileTransform_,(F[0]*(H-B)-a)/G,(F[1]*(Y-U)-a)/N),this.helper.setUniformMatrixValue(ds.TILE_TRANSFORM,lt(this.tempMat4_,this.tileTransform_)),this.helper.bindBuffer(b.coords),this.helper.bindBuffer(this.indices_),this.helper.enableAttributes(ys);var q=0;while(q<b.textures.length){var Z="TEXTURE"+q,K="".concat(ds.TILE_TEXTURE_ARRAY,"[").concat(q,"]");e.activeTexture(e[Z]),e.bindTexture(e.TEXTURE_2D,b.textures[q]),e.uniform1i(this.helper.getUniformLocation(K),q),++q}for(var J=0;J<this.paletteTextures_.length;++J){var $=this.paletteTextures_[J];e.activeTexture(e["TEXTURE"+q]);var Q=$.getTexture(e);e.bindTexture(e.TEXTURE_2D,Q),e.uniform1i(this.helper.getUniformLocation($.name),q),++q}O=E in f?f[E]:1;O<1&&(t.animate=!0),this.helper.setUniformFloatValue(ds.TRANSITION_ALPHA,O),this.helper.setUniformFloatValue(ds.DEPTH,X),this.helper.setUniformFloatValue(ds.TEXTURE_PIXEL_WIDTH,G),this.helper.setUniformFloatValue(ds.TEXTURE_PIXEL_HEIGHT,N),this.helper.setUniformFloatValue(ds.TEXTURE_RESOLUTION,k),this.helper.setUniformFloatValue(ds.TEXTURE_ORIGIN_X,D[0]+H*F[0]*k-a*k),this.helper.setUniformFloatValue(ds.TEXTURE_ORIGIN_Y,D[1]-Y*F[1]*k+a*k);var tt=s;a>0&&(tt=o.getTileCoordExtent(w),Object(g["getIntersection"])(tt,s,tt)),this.helper.setUniformFloatVec4(ds.RENDER_EXTENT,tt),this.helper.setUniformFloatValue(ds.RESOLUTION,r.resolution),this.helper.setUniformFloatValue(ds.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 it=function(t,e){i.expireCache(e.viewState.projection,vs)};return t.postRenderFunctions.push(it),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(at["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=xs(l,d);if(f.containsKey(y)){var v=f.get(y);if(v.loaded){var m=u.getOrigin(p),b=Object(Te["d"])(u.getTileSize(p)),x=u.getResolution(p),w=(i[0]-m[0])/x-d[1]*b[0],O=(m[1]-i[1])/x-d[2]*b[1];return v.getPixelData(w,O)}}}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=xs(s,[r,l,u]),h=!1;if(a.containsKey(c)){var f=a.get(c);f.loaded&&(_s(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}(Tt),Os=ws,Es=r("5c38"),Ss={NUMBER:1,STRING:2,COLOR:4,BOOLEAN:8,NUMBER_ARRAY:16,ANY:31,NONE:0},Cs={};function Ts(t){if("number"===typeof t)return Ss.NUMBER;if("boolean"===typeof t)return Ss.BOOLEAN;if("string"===typeof t)return Object(Es["d"])(t)?Ss.COLOR|Ss.STRING:Ss.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?Ss.COLOR|Ss.NUMBER_ARRAY:Ss.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 Ps(t){return Object(v["f"])(t)%1===0}function js(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(js).join(", "),")")}function Rs(t){var e=Object(Es["a"])(t).slice();return e.length<4&&e.push(1),Ms(e.map((function(t,e){return e<3?t/255:t})))}function As(t,e){return void 0===t.stringLiteralsMap[e]&&(t.stringLiteralsMap[e]=Object.keys(t.stringLiteralsMap).length),t.stringLiteralsMap[e]}function Ls(t,e){return js(As(t,e))}function Is(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=Ts(e);if((i&Ss.NUMBER)>0)return js(e);if((i&Ss.BOOLEAN)>0)return e.toString();if((i&Ss.STRING)>0&&(void 0===r||r==Ss.STRING))return Ls(t,e.toString());if((i&Ss.COLOR)>0&&(void 0===r||r==Ss.COLOR))return Rs(e);if((i&Ss.NUMBER_ARRAY)>0)return Ms(e);throw new Error("Unexpected expression ".concat(e," (expected type ").concat(r,")"))}function ks(t){if(!(Ts(t)&Ss.NUMBER))throw new Error("A numeric value was expected, got ".concat(JSON.stringify(t)," instead"))}function Fs(t){for(var e=0;e<t.length;e++)ks(t[e])}function Ds(t){if(!(Ts(t)&Ss.STRING))throw new Error("A string value was expected, got ".concat(JSON.stringify(t)," instead"))}function Gs(t){if(!(Ts(t)&Ss.BOOLEAN))throw new Error("A boolean value was expected, got ".concat(JSON.stringify(t)," instead"))}function Ns(t,e){if(t.length!==e)throw new Error("Exactly ".concat(e," arguments were expected, got ").concat(t.length," instead"))}function zs(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 Us(t){if(t.length%2!==0)throw new Error("An even amount of arguments was expected, got ".concat(t," instead"))}function Vs(t){if(t.length%2===0)throw new Error("An odd amount of arguments was expected, got ".concat(t," instead"))}function Xs(t,e){if(!Ps(e))throw new Error("Could not infer only one type from the following expression: ".concat(JSON.stringify(t)))}function Ws(t){return"u_var_"+t}Cs["get"]={getReturnType:function(t){return Ss.ANY},toGlsl:function(t,e){Ns(e,1),Ds(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 Ss.ANY},toGlsl:function(t,e){Ns(e,1),Ds(e[0]);var r=e[0].toString();return-1===t.variables.indexOf(r)&&t.variables.push(r),Ws(r)}};var Hs="u_paletteTextures";Cs["palette"]={getReturnType:function(t){return Ss.COLOR},toGlsl:function(t,e){Ns(e,2),ks(e[0]);var r=Is(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(Es["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(Hs,"[").concat(t.paletteTextures.length,"]"),f=new Ja(h,o);return t.paletteTextures.push(f),"texture2D(".concat(h,", vec2((").concat(r," + 0.5) / ").concat(i,".0, 0.5))")}};var Ys="getBandValue";function qs(t){return{getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(e,r){Ns(r,2);for(var n=Ss.ANY,i=0;i<r.length;i++)n&=Ts(r[i]);if(n===Ss.NONE)throw new Error("All arguments should be of compatible type, got ".concat(JSON.stringify(r)," instead"));return n&=~Ss.COLOR,"(".concat(Is(e,r[0],n)," ").concat(t," ").concat(Is(e,r[1],n),")")}}}function Zs(t){return{getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(e,r){zs(r,2);for(var n=0;n<r.length;n++)Gs(r[n]);var i="";return i=r.map((function(t){return Is(e,t)})).join(" ".concat(t," ")),i="(".concat(i,")"),i}}}Cs["band"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){zs(e,1),Bs(e,3);var r=e[0];if(!(Ys 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(ds.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[Ys]="\n float getBandValue(float band, float xOffset, float yOffset) {\n float dx = xOffset / ".concat(ds.TEXTURE_PIXEL_WIDTH,";\n float dy = yOffset / ").concat(ds.TEXTURE_PIXEL_HEIGHT,";\n ").concat(n,"\n }\n ")}var u=Is(t,r),c=Is(t,e[1]||0),h=Is(t,e[2]||0);return"".concat(Ys,"(").concat(u,", ").concat(c,", ").concat(h,")")}},Cs["time"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,0),"u_time"}},Cs["zoom"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,0),"u_zoom"}},Cs["resolution"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,0),"u_resolution"}},Cs["*"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,2),Fs(e),"(".concat(Is(t,e[0])," * ").concat(Is(t,e[1]),")")}},Cs["/"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,2),Fs(e),"(".concat(Is(t,e[0])," / ").concat(Is(t,e[1]),")")}},Cs["+"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,2),Fs(e),"(".concat(Is(t,e[0])," + ").concat(Is(t,e[1]),")")}},Cs["-"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,2),Fs(e),"(".concat(Is(t,e[0])," - ").concat(Is(t,e[1]),")")}},Cs["clamp"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){Ns(e,3),Fs(e);var r=Is(t,e[1]),n=Is(t,e[2]);return"clamp(".concat(Is(t,e[0]),", ").concat(r,", ").concat(n,")")}},Cs["%"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,2),Fs(e),"mod(".concat(Is(t,e[0]),", ").concat(Is(t,e[1]),")")}},Cs["^"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,2),Fs(e),"pow(".concat(Is(t,e[0]),", ").concat(Is(t,e[1]),")")}},Cs["abs"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,1),Fs(e),"abs(".concat(Is(t,e[0]),")")}},Cs["floor"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,1),Fs(e),"floor(".concat(Is(t,e[0]),")")}},Cs["round"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,1),Fs(e),"floor(".concat(Is(t,e[0])," + 0.5)")}},Cs["ceil"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,1),Fs(e),"ceil(".concat(Is(t,e[0]),")")}},Cs["sin"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,1),Fs(e),"sin(".concat(Is(t,e[0]),")")}},Cs["cos"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return Ns(e,1),Fs(e),"cos(".concat(Is(t,e[0]),")")}},Cs["atan"]={getReturnType:function(t){return Ss.NUMBER},toGlsl:function(t,e){return zs(e,1),Bs(e,2),Fs(e),2===e.length?"atan(".concat(Is(t,e[0]),", ").concat(Is(t,e[1]),")"):"atan(".concat(Is(t,e[0]),")")}},Cs[">"]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Ns(e,2),Fs(e),"(".concat(Is(t,e[0])," > ").concat(Is(t,e[1]),")")}},Cs[">="]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Ns(e,2),Fs(e),"(".concat(Is(t,e[0])," >= ").concat(Is(t,e[1]),")")}},Cs["<"]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Ns(e,2),Fs(e),"(".concat(Is(t,e[0])," < ").concat(Is(t,e[1]),")")}},Cs["<="]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Ns(e,2),Fs(e),"(".concat(Is(t,e[0])," <= ").concat(Is(t,e[1]),")")}},Cs["=="]=qs("=="),Cs["!="]=qs("!="),Cs["!"]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){return Ns(e,1),Gs(e[0]),"(!".concat(Is(t,e[0]),")")}},Cs["all"]=Zs("&&"),Cs["any"]=Zs("||"),Cs["between"]={getReturnType:function(t){return Ss.BOOLEAN},toGlsl:function(t,e){Ns(e,3),Fs(e);var r=Is(t,e[1]),n=Is(t,e[2]),i=Is(t,e[0]);return"(".concat(i," >= ").concat(r," && ").concat(i," <= ").concat(n,")")}},Cs["array"]={getReturnType:function(t){return Ss.NUMBER_ARRAY},toGlsl:function(t,e){zs(e,2),Bs(e,4),Fs(e);var r=e.map((function(e){return Is(t,e,Ss.NUMBER)}));return"vec".concat(e.length,"(").concat(r.join(", "),")")}},Cs["color"]={getReturnType:function(t){return Ss.COLOR},toGlsl:function(t,e){zs(e,3),Bs(e,4),Fs(e);var r=e;3===e.length&&r.push(1);var n=e.map((function(e,r){return Is(t,e,Ss.NUMBER)+(r<3?" / 255.0":"")}));return"vec".concat(e.length,"(").concat(n.join(", "),")")}},Cs["interpolate"]={getReturnType:function(t){for(var e=Ss.COLOR|Ss.NUMBER,r=3;r<t.length;r+=2)e&=Ts(t[r]);return e},toGlsl:function(t,e,r){Us(e),zs(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:Ss.ANY,a=Cs["interpolate"].getReturnType(e)&o;Xs(e,a);for(var s=Is(t,e[1]),l=js(n),u="",c=2;c<e.length-2;c+=2){var h=Is(t,e[c]),f=u||Is(t,e[c+1],a),p=Is(t,e[c+2]),d=Is(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=Ss.ANY,r=2;r<t.length;r+=2)e&=Ts(t[r]);return e&=Ts(t[t.length-1]),e},toGlsl:function(t,e,r){Us(e),zs(e,4);var n=void 0!==r?r:Ss.ANY,i=Cs["match"].getReturnType(e)&n;Xs(e,i);for(var o=Is(t,e[0]),a=Is(t,e[e.length-1],i),s=null,l=e.length-3;l>=1;l-=2){var u=Is(t,e[l]),c=Is(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=Ss.ANY,r=1;r<t.length;r+=2)e&=Ts(t[r]);return e&=Ts(t[t.length-1]),e},toGlsl:function(t,e,r){Vs(e),zs(e,3);var n=void 0!==r?r:Ss.ANY,i=Cs["case"].getReturnType(e)&n;Xs(e,i);for(var o=0;o<e.length-1;o+=2)Gs(e[o]);var a=Is(t,e[e.length-1],i),s=null;for(o=e.length-3;o>=0;o-=2){var l=Is(t,e[o]),u=Is(t,e[o+1],i);s="(".concat(l," ? ").concat(u," : ").concat(s||a,")")}return s}};var Ks=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 Js(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=Is(l,r,Ss.NUMBER_ARRAY|Ss.NUMBER),c=Is(l,o,Ss.NUMBER_ARRAY),h=Is(l,i,Ss.NUMBER_ARRAY),f=Is(l,s,Ss.NUMBER),p={inFragmentShader:!0,variables:l.variables,attributes:[],stringLiteralsMap:l.stringLiteralsMap,functions:{}},d=Is(p,n,Ss.COLOR),g=Is(p,a,Ss.NUMBER),y="1.0",v="vec2(".concat(Is(p,r,Ss.NUMBER_ARRAY|Ss.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 Ks).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=Is(p,t.filter,Ss.BOOLEAN);b.setFragmentDiscardExpression("!".concat(x))}var w={};if(p.variables.forEach((function(e){var r=Ws(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=As(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=As(l,n)),void 0!==n?n:-9999999}}})),uniforms:w}}var $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)}}(),Qs=function(t){function e(e){var r=this,n=Object(y["a"])({},e);return r=t.call(this,n)||this,r.parseResult_=Js(e.style),r.styleVariables_=e.style.variables||{},r.hitDetectionDisabled_=!!e.disableHitDetection,r}return $s(e,t),e.prototype.createRenderer=function(){return new Ft(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}(Wt["a"]),tl=Qs,el=r("2300"),rl=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 nl(t,e){var r="\n attribute vec2 ".concat(gs.TEXTURE_COORD,";\n uniform mat4 ").concat(ds.TILE_TRANSFORM,";\n uniform float ").concat(ds.TEXTURE_PIXEL_WIDTH,";\n uniform float ").concat(ds.TEXTURE_PIXEL_HEIGHT,";\n uniform float ").concat(ds.TEXTURE_RESOLUTION,";\n uniform float ").concat(ds.TEXTURE_ORIGIN_X,";\n uniform float ").concat(ds.TEXTURE_ORIGIN_Y,";\n uniform float ").concat(ds.DEPTH,";\n\n varying vec2 v_textureCoord;\n varying vec2 v_mapCoord;\n\n void main() {\n v_textureCoord = ").concat(gs.TEXTURE_COORD,";\n v_mapCoord = vec2(\n ").concat(ds.TEXTURE_ORIGIN_X," + ").concat(ds.TEXTURE_RESOLUTION," * ").concat(ds.TEXTURE_PIXEL_WIDTH," * v_textureCoord[0],\n ").concat(ds.TEXTURE_ORIGIN_Y," - ").concat(ds.TEXTURE_RESOLUTION," * ").concat(ds.TEXTURE_PIXEL_HEIGHT," * v_textureCoord[1]\n );\n gl_Position = ").concat(ds.TILE_TRANSFORM," * vec4(").concat(gs.TEXTURE_COORD,", ").concat(ds.DEPTH,", 1.0);\n }\n "),n={inFragmentShader:!0,variables:[],attributes:[],stringLiteralsMap:{},functions:{},bandCount:e},i=[];if(void 0!==t.color){var o=Is(n,t.color,Ss.COLOR);i.push("color = ".concat(o,";"))}if(void 0!==t.contrast){var a=Is(n,t.contrast,Ss.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=Is(n,t.exposure,Ss.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=Is(n,t.saturation,Ss.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=Is(n,t.gamma,Ss.NUMBER);i.push("color.rgb = pow(color.rgb, vec3(1.0 / ".concat(u,"));"))}if(void 0!==t.brightness){var c=Is(n,t.brightness,Ss.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=Ws(r);h[i]=function(){var e=t.variables[r];return"string"===typeof e&&(e=As(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(ds.TILE_TEXTURE_ARRAY,"[").concat(y,"];")),n.paletteTextures&&g.push("uniform sampler2D ".concat(Hs,"[").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(ds.RENDER_EXTENT,";\n uniform float ").concat(ds.TRANSITION_ALPHA,";\n uniform float ").concat(ds.TEXTURE_PIXEL_WIDTH,";\n uniform float ").concat(ds.TEXTURE_PIXEL_HEIGHT,";\n uniform float ").concat(ds.RESOLUTION,";\n uniform float ").concat(ds.ZOOM,";\n\n ").concat(g.join("\n"),"\n\n ").concat(v.join("\n"),"\n\n void main() {\n if (\n v_mapCoord[0] < ").concat(ds.RENDER_EXTENT,"[0] ||\n v_mapCoord[1] < ").concat(ds.RENDER_EXTENT,"[1] ||\n v_mapCoord[0] > ").concat(ds.RENDER_EXTENT,"[2] ||\n v_mapCoord[1] > ").concat(ds.RENDER_EXTENT,"[3]\n ) {\n discard;\n }\n\n vec4 color = texture2D(").concat(ds.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(ds.TRANSITION_ALPHA,";\n }");return{vertexShader:r,fragmentShader:m,uniforms:h,paletteTextures:n.paletteTextures}}var il=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(K["a"].SOURCE,r.handleSourceUpdate_),r}return rl(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=nl(this.style_,this.getSourceBandCount_());return new Os(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=nl(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}(el["a"]);il.prototype.dispose;var ol=il},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)},drawPolygonEvent:function(e){return t.drawPolygonEvent(e)},drawLineEvent:function(e){return t.drawLineEvent(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._t("marker",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("5eee")),l=r("13e2"),u=r("3a39");class c{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 l["AM"],this.type=2,this.lPolygonNewArr=new Array,this.polygonGeojsonMap=new s["default"],this.drawPolygonArr=new Set,this.drawLineArr=new Set,this._lRectangle=null,this.layers=null,this.drawZIndex=1}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 l["LMap"]({controls:l["MapConfig"].Defaults,interactions:Object(u["defaults"])({pinchRotate:!1})})),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,l["MapConfig"].View=n,this.map.setView(l["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 l["LMap"]({controls:l["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,l["MapConfig"].View=r,this.map.setView(l["MapConfig"].View),e&&e(this.map,i)};n()},100)}initBingMapNew(t,e,r){this.lmap||(this.lmap=new l["LMap"]({controls:l["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,l["MapConfig"].View=r,this.map.setView(l["MapConfig"].View),e&&e(this.map,i)};n()},100)}async initVectorMap(t){const{el:e,isAnalysisBBOX:r,isAnalysisCenter:n,callback:i,delaytime:o,isDrag:a}=t,s=new l["VectorMap"]({isAnalysisBBOX:r,isAnalysisCenter:n,isDrag:a,callback:t=>{i&&i(t)}});return new Promise(t=>{setTimeout(async()=>{const r=await s.onLoad(e);t({map:r,vmap:s})},o||100)})}async initStaticMap(t,e){return await new Promise((r,n)=>{setTimeout(i=>{const o=new s["default"]({target:t,view:e.view,layers:[e.layer]});this.map=o,this.layers=[e.layer],o?r(o):n(null)},30)})}getVectorLayerView(){return l["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){l["MapConfig"].TMapLayerArr[t].forEach((t,e)=>{this.map.removeLayer(t)})}addLayers(t){l["MapConfig"].TMapLayerArr[t].forEach((t,e)=>{this.map.addLayer(t)})}onCreatePolygon(t,e=!1){this.polygonGeojson&&this.map.removeLayer(this.polygonGeojson),this._lPolygon&&this.clearlPolygon();return this._lPolygon=new l["LPolygon"](this.map,{strokeColor:"rgba(255,201,14, 1)",fillColor:"rgba(255,201,14, 0.4)"},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(l["createGeoJson"])(this._lPolygon.getCoordinates(),{ruleId:"",centerlon:t,centerlat:e});return r}return null}getGeoJsonNew(t){if(this.polygonGeojson){const t=this.polygonGeojson,e=Object(l["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(t){if(this.map){let e=new l["LDraw"]("LineString",t||(()=>{}),this.map,this.drawZIndex);return this.drawLineArr.add(e),e}return null}onCreateArea(t){if(this.map){let e=new l["LDraw"]("Polygon",t||(()=>{}),this.map,this.drawZIndex);return this.drawPolygonArr.add(e),e}return null}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 l["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(l["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(l["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 l["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(l["fitNew"])(this.map,t)}createMarker(t,e=15,r=15){return new l["LMarker"](t,e,r)}removeMarker(t){this.map.removeOverlay(t.getMarker())}lModifyEventArr(){this.lModifyEventArr.length=0,this.polygonGeojsonArr.forEach((t,e)=>{const r=new l["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 l["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 s=0;s<e.length;s+=2){const{lon:t,lat:r}=l["GPS"].gcj_encrypt(e[s],e[s+1]);i.push(t),i.push(r)}t.bbox=i;const o=r.coordinates,a=new Array;for(let s=0;s<o.length;s++){a.push(o[s]);for(let t=0;t<o[s].length;t++){const e=o[s][t],{lon:r,lat:n}=l["GPS"].gcj_encrypt(e[0],e[1]);a[s][t]=[r,n]}}if(r.coordinates=a,n&&n.center){const[e,r]=n.center,[i,o]=l["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 s=0;s<e.length;s+=2){const{lon:t,lat:r}=l["GPS"].gcj_decrypt(e[s],e[s+1]);i.push(t),i.push(r)}t.bbox=i;const o=r.coordinates,a=new Array;for(let s=0;s<o.length;s++){a.push(o[s]);for(let t=0;t<o[s].length;t++){const e=o[s][t],{lon:r,lat:n}=l["GPS"].gcj_decrypt(e[0],e[1]);a[s][t]=[r,n]}}if(r.coordinates=a,n&&n.center){const[e,r]=n.center,[i,o]=l["GPS"].gcj_decrypt(e,r);t.properties.center=[i,o]}return t}gcj_encrypt(t,e){return l["GPS"].gcj_encrypt(t,e)}gcj_decrypt(t,e){return l["GPS"].gcj_decrypt(t,e)}formatArea(){return this._lPolygon&&this._lPolygon.getGeometry()?Object(l["formatArea"])(this._lPolygon.getGeometry()):0}formatLength(){return this._lPolygon&&this._lPolygon.getGeometry()?Object(l["formatLength"])(this._lPolygon.getGeometry()):0}createPolylinePointList(t,e=!1,r=!0,n=null,i=0){let o=new Array;const a=Object(l["createPolylinePoints"])(t,e);o=Object(l["addPolylinePoint"])(a,this.map);const s=Object(l["createGPSPoints"])(t,e,this.am);if(null!=s){let t=this.am.getLngLats();i&&(t=this.am.getLngLatGCJ02()),Object(l["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 l["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 l["AM"]}createPolygonBoundary(t,e){const r=Object(l["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(l["createPolylinePoints"])(t,!1);n=Object(l["addPolylinePointNew"])(i,this.map,e);const o=Object(l["createGPSPoints"])(t,!1,this.am);if(null!=o&&r.isFit){let t=this.am.getLngLats();e.type&&(t=this.am.getLngLatGCJ02()),Object(l["fitNew"])(this.map,[[t[0],t[1]],[t[2],t[3]]])}return n}createLPolygonNew(t,e){this.lPolygonNewArr.push(new l["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(l["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 l["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[]}getRectangleDataNew(){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}}async initOfflineMap(t,e){const{el:r,urls:n,callback:i}=e;this.lmap=new l["OfflineMap"],setTimeout(async t=>{const{map:e,layers:o}=await this.lmap.onLoad(r,n);this.map=e,this.layers=o,i({map:e,lMap:this.lmap})},50)}set DrawZIndex(t){this.drawZIndex=t}get DrawZIndex(){return this.drawZIndex}}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class f{constructor(){h(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.bindContextmenu={type:Boolean,default:!1},this.binddblClick={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 p{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 d{constructor(){h(this,"isHideAreaAndKM",{type:Boolean,default:!1}),h(this,"switchMapPosTop",{type:Number,default:50}),h(this,"switchMapPosLeftOrRight",{type:Number,default:20}),h(this,"isSwitchMapRight",{type:Boolean,default:!0}),h(this,"switchMapHeight",{type:Number,default:40}),h(this,"isShowRangingTool",{type:Boolean,default:!0}),h(this,"isShowDrawTool",{type:Boolean,default:!1}),h(this,"isRight",{type:Boolean,default:!0}),h(this,"isCrossHair",{type:Boolean,default:!1}),h(this,"initModifyPolygon",{type:[String,Object],default:()=>null}),h(this,"hideAdd",{type:Boolean,default:!1}),h(this,"hidePoint",{type:Boolean,default:!1}),h(this,"hideCancel",{type:Boolean,default:!1}),h(this,"hideDelete",{type:Boolean,default:!1}),h(this,"hideSave",{type:Boolean,default:!1}),h(this,"hideLine",{type:Boolean,default:!1}),h(this,"hideArea",{type:Boolean,default:!1}),h(this,"isSwitchMap",{type:Boolean,default:!0}),h(this,"gpsType",{type:Number,default:0}),h(this,"drawZIndex",{type:Number,default:1})}}var g=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.onCreateLine()}}}),t.hideArea?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--mianji",on:{click:function(e){return e.stopPropagation(),t.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.onCreateLine()}}}),t.hideArea?t._e():r("el-button",{staticClass:"ele-text-primary el-icon--mianji",on:{click:function(e){return e.stopPropagation(),t.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)},y=[],v=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},m=[],_=(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 l["CrossHair"](()=>{this.$emit("click",this.getCenter())}),this.map.addControl(this.crossHair)},removeControl(){this.map&&this.crossHair&&(this.map.removeControl(this.crossHair),this.crossHair=null)}}}),b=_;function x(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 w=x(b,v,m,!1,null,null,null),O=w.exports,E={name:"RyMapTool",components:{RyCrossHair:O},props:{lMap:{type:Object,default:()=>null},...new d},watch:{initModifyPolygon(t){this.initModifyPolygon=t,this._initPolygon()},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.isHideAreaAndKM),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(l["fitNew"])(this.lMap.map,[t])},onCreatePolygon(){this.lMap&&(this.drawPolygon=this.lMap.onCreatePolygon(()=>{},this.isHideAreaAndKM),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}=l["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}=l["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()},onCreateLine(){let t=this.lMap.onCreateLine(({id:e,type:r})=>{this.$emit("drawLineEvent",{draw:t,id:e,type:r})});t.Id=Object(l["generateGuid"])()},onCreateArea(){let t=this.lMap.onCreateArea(({id:e,type:r})=>{this.$emit("drawPolygonEvent",{draw:t,id:e,type:r})});t.Id=Object(l["generateGuid"])()},selectGPSAll(t){this.lMap.removeDrawArr(),this.drawPolygon&&this.drawPolygon.selectGPS(t,!0)}}},S=E,C=(r("4bf3"),x(S,g,y,!1,null,"0be147fb",null)),T=C.exports,P=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()},j=[];class M{constructor(){h(this,"switchMapDefaultTypeOrLayer",{type:Array,default:()=>null}),h(this,"height",{type:Number,default:40}),h(this,"isSwitchMapRight",{type:Boolean,default:!0}),h(this,"bottomRight",{type:Boolean,default:!0}),h(this,"isDisabled",{type:Boolean,default:!1}),h(this,"mapTypeAndLayer",{type:Array,default:()=>null}),h(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:"高德地图"}]}),h(this,"mapStyle",{type:Array,default:()=>["地图","卫星","卫星组合"]})}}var R={name:"SwitchMap",props:{...new M},data(){return{isExpand:!0,mapTypeActive:1,mapStyleActive:2,isTop:!0,mapTypeCopy:[],mapStyleCopy:[]}},watch:{switchMapDefaultTypeOrLayer(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)},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(this.switchMapDefaultTypeOrLayer),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}))},_switchMapDefaultTypeOrLayer(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)}}},A=R,L=(r("f7d8"),x(A,P,j,!1,null,"10ed49d6",null)),I=L.exports,k={name:"RyMap",components:{RyMapTool:T,SwitchMap:I},props:{...new f,...new p,...new d},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._bingMapEvent()},bindContextmenu(t){this._bindContextmenu()},binddblClick(t){this._binddblClick()},bindMapMoveend(t){this._bingMapMoveend()},m(t){this.m=t}},data(){return{lMap:new c,drawPolygon:null,mapClick:null,map:null,moveend:null,lastX:0,lastY:0,lastMapType:0,isFirstLoad:!1,contextmenu:null,dblClick:null}},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}=l["GPS"].gcj_decrypt(n[0],n[1]);this.lMap.setCenter([t,e])}else{const{lon:t,lat:e}=l["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){this.lMap.DrawZIndex=this.drawZIndex,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(r){}this._bingMapEvent(),this._bingMapMoveend(),this._bindContextmenu(),this._binddblClick(),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)},_bindContextmenu(){this.bindContextmenu?this._contextmenu():this._contextmenu(!0)},_binddblClick(){this.binddblClick?this._dblClick():this._dblClick(!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(l["fitNew"])(this.map,[t])},drawSuccess(t){this.$emit("drawSuccess",t)},drawError(t){this.$emit("drawError",t)},drawPolygonEvent(t){this.$emit("drawPolygonEvent",t)},drawLineEvent(t){this.$emit("drawLineEvent",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);this.$emit("mapClick2",e);const r=e.getId();if(void 0===r)return;this.$emit("mapClick",r)}}),t?(this.map.un("singleclick",this.mapClick),this.mapClick=null):this.map.on("singleclick",this.mapClick)},_getLayersId(t,e="dblclick"){if(t.dragging)return;const r=this.map.getEventPixel(t.originalEvent),n=this.map.hasFeatureAtPixel(r);if(n){const r=this.map.forEachFeatureAtPixel(t.pixel,t=>t),n=r.getId();if(void 0===n)return;this.$emit(e,n)}t.preventDefault()},_contextmenu(t){this.contextmenu||(this.contextmenu=t=>{this._getLayersId(t,"contextmenuClick")}),t?(this.map.un("contextmenu",this.contextmenu),this.contextmenu=null):this.map.on("contextmenu",this.contextmenu)},_dblClick(t){this.dblClick||(this.dblClick=t=>{this._getLayersId(t,"doubleClickEvent")}),t?(this.map.un("dblclick",this.dblClick),this.dblClick=null):this.map.on("dblclick",this.dblClick)},_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(l["caculateLL"])(this.lastY,this.lastX,r,e),this.$emit("mapMoveend",{m:n,oversteSetValue:n>=this.m,x:e,y:r,e:t}),void(n>=this.m&&(this.lastX=e,this.lastY=r));this.$emit("mapMoveend",{m:n,oversteSetValue:!1,x:e,y:r,e:t})},t?this.map.un("moveend",this.moveend):this.map.on("moveend",this.moveend)},loadDrawPolygonEvent(t){this.$emit("loadDrawPolygonEvent",t)}}},F=k,D=(r("fd93"),x(F,o,a,!1,null,"92718596",null)),G=D.exports;G.install=t=>{t.install(G.name,G)};var N=G;O.install=t=>{t.install(O.name,O)};var z=O;T.install=t=>{t.install(T.name,T)};var B=T,U=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},V=[];class X{constructor(){h(this,"map",{type:Object,default:()=>null}),h(this,"gpsType",{type:Number,default:0})}}class W extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"isShow",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isCheckPointHide",{type:Boolean,default:!1}),h(this,"polygonColor",{type:Array,default:()=>[]}),h(this,"text",{type:String,default:null}),h(this,"isFit",{type:Boolean,default:!0})}}var H={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:r,bbox:n}=this._serializeGeoJson();this.model.coordinates=e,this.bbox=n,this.bboxGCJ02=this.convertBBoxGCJ02(n),t=r}else this.bbox=Object(l["getLngAndLatMaxMin"])(this.model.coordinates),this.bboxGCJ02=this.convertBBoxGCJ02(this.bbox);this.polygon=new l["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(l["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(l["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(l["getCenterPoint"])(r.coordinates)}},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["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(l["getLngAndLatMaxMin"])(this.model.coordinates)},createCheckPoint(t,e){const r=new l["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)}}},Y=H,q=x(Y,U,V,!1,null,null,null),Z=q.exports;Z.install=t=>{t.install(Z.name,Z)};var K=Z,J=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},$=[];class Q extends X{constructor(...t){super(...t),h(this,"modelArr",{type:Array,default:()=>[]}),h(this,"insert",{type:Object,default:()=>null}),h(this,"inserts",{type:Array,default:()=>[]}),h(this,"isShowAll",{type:Boolean,default:!0}),h(this,"isShowPolygon",{type:Object,default:()=>null}),h(this,"isShowPolygons",{type:Array,default:()=>[]}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isCheckPointHideAll",{type:Boolean,default:!1}),h(this,"isCheckPointHide",{type:Object,default:()=>null}),h(this,"isCheckPointHides",{type:Array,default:()=>[]}),h(this,"polygonColor",{type:Object,default:()=>null}),h(this,"polygonColors",{type:Array,default:()=>[]}),h(this,"text",{type:Object,default:()=>null}),h(this,"isFit",{type:Boolean,default:!0}),h(this,"remove",{type:[String,Number,Object],default:()=>null}),h(this,"removes",{type:Array,default:()=>[]}),h(this,"ranges",{type:Array,default:()=>[]}),h(this,"range",{type:[String,Number,Object],default:()=>null}),h(this,"restFit",{type:Boolean,default:!1}),h(this,"correct",{type:Number,default:0})}}var tt={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 l["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(l["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(l["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(l["getCenterPoint"])(n.coordinates)}},getBBOX(){if(!this.model.geo)return Object(l["getLngAndLatMaxMin"])(this.model.coordinates)},createCheckPoint(t,e){const r=new l["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(l["fitNew"])(this.map,e)},_range(t){if(this.bboxMap.has(t)&&1!=this.gpsType){const e=this.bboxMap.get(t);Object(l["fitNew"])(this.map,[e])}else if(this.bboxMapGCJ02.has(t)&&1==this.gpsType){const e=this.bboxMapGCJ02.get(t);Object(l["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(l["getCenterPoint"])(t.coordinates)),this.setBBOXArr(t.id,n.length?n:Object(l["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(l["fitNew"])(this.map,t):this.setFitFist(t[0]))},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e}}},et=tt,rt=x(et,J,$,!1,null,null,null),nt=rt.exports;nt.install=t=>{t.install(nt.name,nt)};var it=nt,ot=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},at=[];const st={fillColor:"rgba(184, 233, 134, 0.56)",stroke:"rgba(23, 168, 162, 0.56)",width:3,text:"块"};var lt={name:"RyClusters",props:{modelArr:{type:Array,default:()=>[]},clusterPolygonModel:{type:Object,default:()=>st},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},distance:{type:Number,default:30}},data(){return{checkPointArr:new Map,currentArr:Array(),fpModelArr:[],featurePolygon:null,multiPolygonMap:new Map,scan:new l["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.featurePolygon=new l["FeaturePolygon"](this.gpsType),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 l["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 l["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(l["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 l["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.distance);this.map.addLayer(r)},selectGPSAll(t){this.polygonSet.forEach(e=>{e.selectGPS(t)}),this.featurePolygon&&this.featurePolygon.selectGPSAll(t)}}},ut=lt,ct=x(ut,ot,at,!1,null,"148ba5e7",null),ht=ct.exports;ht.install=t=>{t.install(ht.name,ht)};var ft=ht,pt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},dt=[];var gt={name:"RyClustersMarker",props:{modelArr:{type:Array,default:()=>[]},text:{type:String,default:()=>"台"},map:{type:Object,default:()=>null},gpsType:{type:Number,default:0},distance:{type:Number,default:200},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 l["FeaturePolygon"](this.gpsType),scan:new l["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 l["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 l["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.distance);this.map.addLayer(r)},selectGPSAll(t){this.featurePolygon&&this.featurePolygon.selectGPSAll(t)}}},yt=gt,vt=x(yt,pt,dt,!1,null,"64b08b64",null),mt=vt.exports;mt.install=t=>{t.install(mt.name,mt)};var _t=mt,bt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},xt=[];class wt extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"isShow",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isFit",{type:Boolean,default:!0}),h(this,"isStandardGeo",{type:Boolean,default:!1})}}var Ot={name:"RyPolygonGeo",props:{...new wt},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.isStandardGeo?this.initNew():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.isStandardGeo?this.initNew():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(l["getLngAndLatMaxMin"])(this.model.coordinates),this.bboxGCJ02=this.convertBBoxGCJ02(this.bbox);this.polygon=Object(l["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})},initNew(){if(this.lastType=this.gpsType,this.model&&this.model.geo){if(this.model.geo){const{bbox:t}=this.model.geo;this.bbox=t,this.bboxGCJ02=this.convertBBoxGCJ02(t)}this.polygon=Object(l["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(l["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(l["getCenterPoint"])(r.coordinates)}},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["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(l["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}}},Et=Ot,St=x(Et,bt,xt,!1,null,null,null),Ct=St.exports;Ct.install=t=>{t.install(Ct.name,Ct)};var Tt=Ct,Pt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"vector-map"},[t._t("polygon",null,{mapDto:{map:t.map,lMap:t.lMap}})],2)},jt=[],Mt={name:"RyVectorMap",props:{isAnalysisBBOX:{type:Boolean,default:!0},isAnalysisCenter:{type:Boolean,default:!0},modelArr:{type:Array,default:()=>[]},delayTime:{type:Number,default:()=>50},bindMapClick:{type:Boolean,default:!1},isDrag:{type:Boolean,default:!0}},data(){return{lMap:new c,drawPolygon:null,mapClick:null,map:null,vmap:null,lastX:0,lastY:0,moveend:null,polygonMap:null}},watch:{modelArr(t){this.initLayers(t)},bindMapClick(t){this.bindMapClick!==t&&(this.bindMapClick=t,this._bingMapEvent())},polygonColor(t){t&&this.setPolygonColor(t.id,t.colorArr)}},mounted(){},methods:{async loadMap(t){const{map:e,vmap:r}=await this.lMap.initVectorMap({el:t,isAnalysisBBOX:this.isAnalysisBBOX,isAnalysisCenter:this.isAnalysisCenter,delayTime:this.delayTime,isDrag:this.isDrag,callback:t=>this.$emit("initLayersEvent",t)});this.map=e,this.vmap=r,this.polygonMap=r.getLayerMap,this._bingMapEvent(),this.$emit("load",{map:e,vmap:r}),this.modelArr.length&&this.initLayers(val)},initLayers(t){this.vmap&&this.vmap.initLayers(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.getProperties(),n=this.map.getView(),[i,o]=n.getCenter(),a=e.getId();r&&this.$emit("mapClick",{...r,id:a||null,currentX:i,currentY:o})}}),t?(this.map.un("click",this.mapClick),this.mapClick=null):this.map.on("click",this.mapClick)},_bingMapEvent(){this.bindMapClick?this._mapClickOnce():this._mapClickOnce(!0)},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)}}},Rt=Mt,At=(r("2241"),x(Rt,Pt,jt,!1,null,"007eb38f",null)),Lt=At.exports;Lt.install=t=>{t.install(Lt.name,Lt)};var It=Lt,kt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[t.isShowPlayback?r("div",{staticClass:"el-slider-box"},[r("el-row",{attrs:{type:"flex",justify:"center"}},[r("el-col",{attrs:{span:1}},[t.index&&t.isStop?r("button",{staticClass:"button-stop",on:{click:function(e){return e.stopPropagation(),t.onStopTrajectory()}}}):r("button",{staticClass:"button-paly",on:{click:function(e){return e.stopPropagation(),t.onPlayTrajectory()}}})]),r("el-col",{staticStyle:{"margin-left":"30px"},attrs:{xs:13,sm:19,md:19,lg:19,xl:23}},[r("el-slider",{attrs:{marks:t.marks,"show-tooltip":"",step:1,min:0,max:t.cacheArr.length-1,"format-tooltip":t.formatTooltip},on:{change:t.sliderChange},model:{value:t.index,callback:function(e){t.index=e},expression:"index"}})],1)],1),r("el-row",{attrs:{type:"flex",justify:"end"}},[r("el-col",[r("section",{staticClass:"control-panel"},[r("span",[t._v("播放倍速:")]),r("span",{class:{active:t.selectActive[0]},on:{click:function(e){return e.stopPropagation(),t.onPlaySpeed(0,200)}}},[t._v("0.5x")]),r("span",{class:{active:t.selectActive[1]},on:{click:function(e){return e.stopPropagation(),t.onPlaySpeed(1,100)}}},[t._v("正常")]),r("span",{class:{active:t.selectActive[2]},on:{click:function(e){return e.stopPropagation(),t.onPlaySpeed(2,50)}}},[t._v("1.5x")]),r("span",{class:{active:t.selectActive[3]},on:{click:function(e){return e.stopPropagation(),t.onPlaySpeed(3,5)}}},[t._v("2.0x")])])])],1)],1):t._e()])},Ft=[];const Dt={color:"red",width:2,zIndex:1};class Gt extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"linenIsert",{type:Object,default:()=>null}),h(this,"isLineFit",{type:Boolean,default:!0}),h(this,"isShowPlayback",{type:Boolean,default:!1}),h(this,"lineAppend",{type:Array,default:()=>[]}),h(this,"startMarkerDto",{type:Object,default:()=>null}),h(this,"endMarkerDto",{type:Object,default:()=>null}),h(this,"moveMarkerDto",{type:Object,default:()=>null}),h(this,"clearLiens",{type:Boolean,default:!1}),h(this,"endMarkerPoint",{type:Array,default:()=>[]}),h(this,"lineDto",{type:Object,default:()=>Dt}),h(this,"isShowAll",{type:Boolean,default:!0})}}var Nt={name:"RyLines",props:{...new Gt},data(){return{lines:null,checkPoint:null,bbox:[],bboxGCJ02:[],lastType:-1,lastLinesDto:null,moveMarker:null,endMarker:null,startMarker:null,pineArr:[],lastLineX:0,lastLineY:0,lastLineX2:0,lastLineY2:0,cacheArr:new Array,cacheModelArr:new Map,cacheColors:new Map,cacheLenArr:new Array,cacheLines:new Array,cacheLineMaps:new Map,cacheScales:new Array,isFist:!0,lastColor:null,len:0,am:new l["AM"],index:0,intervalId:null,selectActive:[!1,!0,!1,!1],marks:{},marks2:{},isPlayback:!1,isStop:!1,playSpeed:100}},watch:{model(t){this.init(),t&&this.insertCache(t.pointArr)},linenIsert(t){this.map&&t&&(this.insertCache(t),this._insertLineAndMarker(t))},gpsType(t){this.selectGPSAll(t)},clearLiens(t){t&&this.clearLine()},lineAppend(t){t.length>0&&this.map&&(this.appendCoordinate(t),this.setMarkerPoint(this.endMarker,t))},isShowPlayback(t){if(!t)return this.endPlaybackLines(),this.index=0,void this.resetPyalPanel();delete this.marks2[this.len],this.marks=this.marks2},isShowAll(t){if(!t)return this.hideAll(),void this.hideMarker();this.showAll(),this.showMarker()}},created(){this.init()},methods:{init(){this.map&&(this.clearLine(),(this.model||this.linenIsert)&&(this.lastType=this.gpsType,this.model&&(this.insertCache(this.model),this._insertLineAndMarker(this.model)),this.linenIsert&&(this.insertCache(this.linenIsert),this._insertLineAndMarker(this.linenIsert))))},insertCache(t){if(t){const{playbackColor:e,pointArr:r}=t;if(!r)return;const n=r.length;if(!r.length)return;this.len+=n,this.cacheArr.push(...t.pointArr),this.cacheColors.set(this.len,e),this.cacheLenArr.push(n),this.marks2[this.len]="",this.cacheScales.push(this.len),this.cacheModelArr.set(this.len,t)}},_insertLineAndMarker(t){const e=t.pointArr;if(this.isLineFit&&this.calculateLineBBOX(e),this.initMarker(e[0]),!t.isAppend){this._insertPoint(t,[this.lastLineX,this.lastLineY]);const r=this.createPolyline(t),n=e.length-1;this.setMarkerPoint(this.endMarker,e[n]);const{x:i,y:o}=this.restLastData(e);return this.lastLineX=i,this.lastLineY=o,void this.pineArr.push(r)}e.forEach(t=>{this.appendCoordinate(t)});const r=e.length-1;this.setMarkerPoint(this.endMarker,e[r]),this.restLastData(e)},_insertLineAndMarker2(t){this._insertPoint(t,[this.lastLineX2,this.lastLineY2]);const e=t.pointArr,r=this.createPolyline(t),{x:n,y:i}=this.restLastData(e);this.lastLineX2=n,this.lastLineY2=i,this.cacheLines.push(r)},async calculateLineBBOX(t){return await new Promise(e=>{t.forEach(t=>{this.am.getLngAndLatMaxMin({X:t[0],Y:t[1]})});let r=[];r=this.gpsType?this.am.getLngLatGCJ02():this.am.getLngLats(),Object(l["fitNew"])(this.map,[[r[0],r[1]],[r[2],r[3]]]),e()})},initMarker(t){(this.startMarkerDto||this.endMarkerDto)&&(this.startMarker||this.endMarker||(this.startMarker=this.createStartMarker(this.startMarkerDto,t),this.endMarker=this.createStartMarker(this.endMarkerDto)))},setMarkerPoint(t,e){t&&e.length>1&&t.setPosition(e,this.gpsType)},restLastData(t){if(t.length>0){const[e,r]=t[t.length-1];return{x:e,y:r}}},_insertPoint(t,e){const[r,n]=e;r>0&&n>0&&t&&t.pointArr.unshift(e)},createPolyline(t={color:"rgb(0,0,255)",width:2,pointArr:[],zIndex:1}){return new l["Polyline"]({...t,type:this.gpsType},this.map)},createStartMarker({offset:t,url:e,width:r,height:n},i=[]){const o=new l["LMarker"](e,r,n);return o.setOffset(t),i.length&&o.setPosition(i,this.gpsType),this.map.addOverlay(o.getMarker()),o},getLngLatGCJ02(t){const e=[];return t.forEach(t=>{const{lon:r,lat:n}=l["GPS"].gcj_encrypt(t[0],t[1]);e.push([r,n])}),e},removeLines(){this.pineArr.forEach(t=>{t.removePolyline()}),this.pineArr=[]},showAll(){this.pineArr.forEach(t=>{t.show()})},hideAll(){this.pineArr.forEach(t=>{t.hide()})},showMarker(){this.endMarker&&this.endMarker.show(),this.startMarker&&this.startMarker.show(),this.moveMarker&&this.moveMarker.show()},hideMarker(){this.endMarker&&this.endMarker.hide(),this.startMarker&&this.startMarker.hide(),this.moveMarker&&this.moveMarker.hide()},removeLineMarker(){this.map&&(this.endMarker&&this.map.removeOverlay(this.endMarker.getMarker()),this.startMarker&&this.map.removeOverlay(this.startMarker.getMarker()),this.moveMarker&&this.map.removeOverlay(this.moveMarker.getMarker()),this.moveMarker=null,this.endMarker=null,this.startMarker=null)},clearLine(){this.resetPyalPanel(),this.removeLines(),this.removeLineMarker(),this.cacheArr=[],this.lastColor=null,this.lastLineX=0,this.lastLineY=0,this.am=null,this.am=new l["AM"],this.marks={},this.marks2={},this._clearInterval(),this.clearCacheLines()},_clearInterval(){this.intervalId&&clearInterval(this.intervalId)},clearCacheLines(){this.endPlaybackLines(),this.cacheLenArr=[],this.cacheArr=[],this.cacheColors.clear(),this.cacheModelArr.clear(),this.len=0,this.cacheScales=[],this.index=0},endPlaybackLines(){this._clearInterval(),this.cacheLines.forEach(t=>{t.removePolyline()}),this.moveMarker&&this.map.removeOverlay(this.moveMarker.getMarker()),this.isPlayback=!1,this.isStop=!1,this.cacheLines=[],this.cacheLineMaps.clear(),this.moveMarker=null,this.lastLineX2=0,this.lastLineY2=0},stopPlaybackLines(t){this.isPlayback=!1,this.isStop=!1,t?this._clearInterval():this.trackPlayback()},createTrackLineAndMarker(t=0,e=0){const r=t,{playbackColor:n,width:i,zIndex:o}=this.cacheModelArr.get(r),a=this.createPolyline({color:n,isAppend:!1,width:i,pointArr:[],zIndex:o},this.gpsType);this.lastColor=n,this.cacheLines.push(a),this.moveMarkerDto&&!this.moveMarker&&(this.moveMarker=this.createStartMarker(this.moveMarkerDto,this.cacheArr[e]))},trackPlayback(){this.cacheLines.length||this.createTrackLineAndMarker(this.cacheScales[0],0),this.intervalId=setInterval(t=>{if(this.index>=this.len-1||!this.isPlayback){const t=this.cacheLines[this.cacheLines.length-1],e=this.cacheArr[this.index];return this.setMarkerPoint(this.moveMarker,e),t.appendCoordinate(e,this.gpsType),this.$emit("trackPlayEvent",{index:this.index,points:e}),this._clearInterval(),this.index=0,this.isStop=!1,void this.$emit("trackPlayEvent",{index:this.index,points:this.cacheArr[0]})}const e=this.getKey(this.index);if(this.cacheColors.has(e)&&!this.cacheLineMaps.has(e)&&!this.cacheLineMaps.has(e)){this.createTrackLineAndMarker(e,this.index);const t=this.cacheLines[this.cacheLines.length-1];this.cacheLineMaps.set(e,t);const r=this.index-1==-1?0:this.index-1;t.appendCoordinate(this.cacheArr[r],this.gpsType)}const r=this.cacheLines[this.cacheLines.length-1],n=this.cacheArr[this.index];this.setMarkerPoint(this.moveMarker,n),r.appendCoordinate(n,this.gpsType),this.$emit("trackPlayEvent",{index:this.index,points:n}),this.index+=1},this.playSpeed)},appendCoordinate(t=[]){if(!t.length)return;this.pineArr.length||this._insertLineAndMarker({...this.lineDto,pointArr:[t],isAppend:!1});const e=this.pineArr[this.pineArr.length-1];e.appendCoordinate(t,this.gpsType)},formatTooltip(t){return t/100},getKeys(t){const e=[];for(let r=0;r<this.cacheScales.length;r++){if(!(t>=this.cacheScales[r])){e.push(this.cacheScales[r]);break}e.push(this.cacheScales[r])}return e},getKey(t){for(let e=0;e<this.cacheScales.length;e++){const r=this.cacheScales[e];if(t<=r)return r}return 0},createLineModels(t,e,r){const n=[],i=[...e];if(t.length<=1){const e=t[0],{width:o,zIndex:a}=this.cacheModelArr.get(e);return n.push({isAppend:!1,color:this.cacheColors.get(e),width:o,zIndex:a,pointArr:i.splice(0,r+1)}),n}for(let o=0;o<t.length;o++){const e=t[o],{width:r,zIndex:a}=this.cacheModelArr.get(e),s=i.splice(0,this.cacheLenArr[o]);if(s.length){const t={color:this.cacheColors.get(e),width:r,zIndex:a,pointArr:s};n.push(t)}}return n},sliderChange(t){if(this.endPlaybackLines(),0===t)return void this.$emit("trackPlayEvent",{index:t,points:this.cacheArr[0]});const e=this.cacheArr.slice(0,t+1),r=this.createLineModels(this.getKeys(t),e,t);r.forEach(t=>this._insertLineAndMarker2(t,!1)),e.length&&this.$emit("trackPlayEvent",{index:t,points:e[e.length-1]}),this.moveMarkerDto&&!this.moveMarker&&e.length&&(this.moveMarker=this.createStartMarker(this.moveMarkerDto,e[e.length-1]))},onPlayTrajectory(){this.isStop||0==this.index&&this.endPlaybackLines(),this.isPlayback=!0,this.isStop=!0,this.trackPlayback()},onStopTrajectory(){this.isStop=!1,this._clearInterval()},onPlaySpeed(t,e){this.selectActive=this.selectActive.map(t=>!1),this.selectActive[t]=!0,this.playSpeed=e,this.isStop=!1,this._clearInterval()},resetPyalPanel(){this.selectActive=[!1,!0,!1,!1,!1],this.playSpeed=100},selectGPSAll(t){this.pineArr.forEach(e=>{e.selectGPS(t)}),this.endPlaybackLines(),this.index=0,this.startMarker&&this.startMarker.selectGPS(t),this.endMarker&&this.endMarker.selectGPS(t),this.moveMarker&&this.moveMarker.selectGPS(t)}}},zt=Nt,Bt=(r("7dc7"),x(zt,kt,Ft,!1,null,"c1f258de",null)),Ut=Bt.exports;Ut.install=t=>{t.install(Ut.name,Ut)};var Vt=Ut,Xt=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,isHideAreaAndKM:t.isHideAreaAndKM},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._t("marker",null,{mapDto:{map:t.map,lMap:t.lMap}})]:t._e()],2)},Wt=[];class Ht{constructor(){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.initModifyPolygon={type:[String,Object],default:()=>null}}}class Yt{constructor(t){this.zoom={type:Number,default:10},this.maxZoom={type:Number,default:28},this.minZoom={type:Number,default:1},this.center={type:Array,default:()=>[2575,1450]},this.bbox={type:Array,default:()=>[]},this.url={type:String,default:()=>null},this.imageSize={type:Array,default:()=>[0,0,7247,3562]},this.imageExtent={type:Array,default:()=>[500,400,5e3,2700]}}}var qt=r("c810"),Zt=r("e7df"),Kt=r("a2c7"),Jt=r("f5dd"),$t={name:"RyStaticMap",components:{RyMapTool:T},props:{...new Ht,...new Yt,...new d},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())},url(t){this.map&&(this.selectLayer(),this.setCenter())}},data(){return{lMap:new c,drawPolygon:null,mapClick:null,map:null,moveend:null,lastX:0,lastY:0,layer:null}},methods:{getImageLayer(){return new qt["default"]({source:new Zt["default"]({crossOrigin:"anonymous",imageSize:this.imageSize,imageExtent:this.imageExtent,url:this.url})})},getProjection(){return new Jt["default"]({code:3875,extent:this.imageExtent,units:"m"})},getView(){return new Kt["default"]({projection:"EPSG:3857",center:this.center,Projection:this.getProjection(),zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom})},async loadMap(t){this.layer=this.getImageLayer();const e=await this.lMap.initStaticMap(t,{view:this.getView(),layer:this.layer});this.map=e,this.$emit("load",{map:e,mapServices:this.lMap,ryMapTool:this.$refs.mapTool})},_bingMapEvent(){this.bindMapClick?this._mapClickOnce():this._mapClickOnce(!0)},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(l["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)},removeLayer(){this.map&&this.layer&&this.map.removeLayer(this.layer)},selectLayer(){this.removeLayer(),this.map&&(this.layer=this.getImageLayer(),this.map.addLayer(this.layer),this.$emit("selectMapEvent"))},loadDrawPolygonEvent(t){this.$emit("loadDrawPolygonEvent",t)}}},Qt=$t,te=(r("e8ba"),x(Qt,Xt,Wt,!1,null,"8a78c586",null)),ee=te.exports;ee.install=t=>{t.install(ee.name,ee)};var re=ee,ne=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._t("marker",null,{mapDto:{map:t.map,lMap:t.lMap}})]:t._e()],2)},ie=[];class oe{constructor(){h(this,"isShowSwitchMap",{type:Boolean,default:!0}),h(this,"urls",{type:Array,default:()=>[]}),h(this,"boundaryModel",{type:Object,default:()=>null}),h(this,"slicingZoom",{type:Number,default:13}),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:"卫星组合"}]}]}}}var ae={name:"RyOfflineMap",components:{RyMapTool:T},props:{...new oe,...new p,...new d},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},boundaryModel(t){this.map}},data(){return{lMap:new c,drawPolygon:null,mapClick:null,map:null,moveend:null,lastX:0,lastY:0,lastMapType:0,isFirstLoad:!1}},methods:{_setMaxZoom(t,e){this.setMaxZoom(18)},async loadMap(t){this.lMap.initOfflineMap(100,{el:t,urls:this.urls,callback:({map:t,lMap:e})=>{e.setView(this.center,this.bbox);const r=e.getView();r.fit(this.bbox,[50,50,50,50]),r.setMaxZoom(this.minZoom),r.setMaxZoom(this.maxZoom),this.map=t;const{geo:n,width:i,color:o,lineDash:a}=this.boundaryModel;e.SlicingZoom=this.slicingZoom,e.initMapMaskEvent(t.getLayers(),n,{width:i,color:o,lineDash:a}),this._bingMapEvent(),this._bingMapMoveend(),this.$emit("load",{map:t,mapServices:this.lMap,ryMapTool:this.$refs.mapTool})}})},_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(l["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(l["caculateLL"])(this.lastY,this.lastX,r,e),this.$emit("mapMoveend",{m:n,oversteSetValue:n>=this.m,x:e,y:r,e:t}),void(n>=this.m&&(this.lastX=e,this.lastY=r));this.$emit("mapMoveend",{m:n,oversteSetValue:!1,x:e,y:r,e:t})},t?this.map.un("moveend",this.moveend):this.map.on("moveend",this.moveend)},loadDrawPolygonEvent(t){this.$emit("loadDrawPolygonEvent",t)}}},se=ae,le=(r("fbd6"),x(se,ne,ie,!1,null,"44c7c94c",null)),ue=le.exports;ue.install=t=>{t.install(RyMap.name,ue)};var ce=ue,he=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},fe=[];class pe extends X{constructor(...t){super(...t),h(this,"modelArr",{type:Array,default:()=>[]}),h(this,"insert",{type:Object,default:()=>null}),h(this,"inserts",{type:Array,default:()=>[]}),h(this,"isShowAll",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isFit",{type:Boolean,default:!0}),h(this,"setColor",{type:Object,default:()=>null}),h(this,"time",{type:Number,default:100})}}var de={name:"RyKMLs",props:{...new pe},data(){return{bbox:[],bboxMap:new Map,bboxGCJ02:[],bboxMapGCJ02:new Map,kmlMap:new Map,isCreate:!0,lastType:-1,urls:new Map,gcj02Urls:new Map,lastColor:null,lastId:0}},watch:{modelArr(t){this._remove(),t.length&&(this.modelArr=t,this.init(t))},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))},insert(t){this._insert(t),this.isFit&&setTimeout(()=>{this.setFit()},50)},inserts(t){this._inserts(t)},clear(t){t&&this._remove()},isShowAll(t){t?this.showAll():this.hideAll()},setColor(t){t&&this._setColor(t)}},async created(){this.lastType=this.gpsType,this.modelArr.length?await this.init(this.modelArr):this.inserts.length&&await this.init(this.inserts)},methods:{async init(t){if(t&&t.length){for(let e=0;e<t.length;e++)await this._insert(t[e]);this.setFit()}},_inserts(t){this.lastType=this.gpsType,t.forEach(t=>{this._insert(t,!1)}),this.isFit&&setTimeout(()=>{this.setFit()},50)},async _insert(t){const{id:e,url:r,bbox:n,isShow:i,stroke:o,fillColor:a,zIndex:s,width:u,extractStyles:c,gcj02Url:h}=t;if(!this.kmlMap.has(e)){const f=new l["LKML"]({id:e,url:1==this.gpsType?h:r,bbox:n,isShow:i,stroke:o,fillColor:a,zIndex:s,width:u},this.map,c);await f.init(this.time),e&&f.setId(e),this.kmlMap.set(e,f),this.urls.set(e,r),h&&this.gcj02Urls.set(e,h),this.setBBOXArr(t.id,f.getExtent())}},_setZoom(){const t=this.map.getView().getZoom();this.map.getView().setZoom(t+1e-5),this.map.getView().setZoom(t-1e-4)},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)}},setUrl(t,e){this.kmlMap.has(t)&&this.kmlMap.get(t).setUrl(e)},setFit(){this.bbox.length&&this.map&&(this.bbox.length>1?Object(l["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(l["fitNew"])(this.map,[e,r])},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},_remove(){this.kmlMap.forEach(t=>{t.removeKML(),t=null}),this.kmlMap.clear(),this.bboxMap.clear(),this.bbox=[],this.bboxGCJ02=[],this.bboxMapGCJ02.clear(),this.urls.clear(),this.gcj02Urls.clear(),this.lastColor=null,this.lastId=0},selectGPSAll(t){const e=1==t?this.gcj02Urls:this.urls;e.forEach((t,e)=>{this.setUrl(e,t)})},_setColor(t){const{color:e,id:r}=t;if(this.kmlMap.has(r)){const t=this.kmlMap.get(r);t.setPolygonColor([e,e])}this._setZoom()},setCenter(t){if(this.bboxMapGCJ02.has(t)){const e=1==this.gpsType?this.bboxMapGCJ02.get(t):this.bboxMap.get(t);this.setFitFist(e)}},showAll(){this.kmlMap.forEach(t=>t.show()),this.restFit&&this._restFit()},hideAll(){this.kmlMap.forEach(t=>t.hide())}}},ge=de,ye=x(ge,he,fe,!1,null,null,null),ve=ye.exports;ve.install=t=>{t.install(ve.name,ve)};var me=ve,_e=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},be=[];class xe extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"isShow",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isFit",{type:Boolean,default:!0}),h(this,"time",{type:Number,default:100})}}var we={name:"RyKML",props:{...new xe},data(){return{bbox:[],bboxGCJ02:[],kml:null,lastType:-1,url:null,gcj02Url:null}},watch:{model(t){this._remove(),t&&(this.model=t,this.init(t))},clear(t){t&&this._remove()},isShow(t){t?this.showAll():this.hideAll()},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.lastType=this.gpsType,this.model&&this.init(this.model)},methods:{async init(t){await this._insert(t),this.isFit&&setTimeout(()=>{this.setFit()},50)},async _insert(t){const{id:e,url:r,bbox:n,is:i,stroke:o,fillColor:a,zIndex:s,width:u,extractStyles:c,gcj02Url:h}=t,f=new l["LKML"]({id:e,url:1==this.gpsType?h:r,bbox:n,is:i,stroke:o,fillColor:a,zIndex:s,width:u},this.map,c);this.kml=f,this.url=r,this.gcj02Url=h,await f.init(this.time),e&&f.setId(e),this.setBBOXArr(f.getExtent())},setBBOXArr(t){this.bbox=t;const e=this.convertBBoxGCJ02(t);this.bboxGCJ02=e},setUrl(t){this.kml&&this.kml.setUrl(t)},setFit(){this.bbox.length&&this.map&&this.setFitFist(1==this.gpsType?this.bboxGCJ02:this.bbox)},setFitFist(t){const e=[t[0],t[3],t[2],t[1]],r=[t[2],t[1],t[0],t[3]];Object(l["fitNew"])(this.map,[e,r])},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},_remove(){this.kml&&(this.kml.removeKML(),this.bbox=[],this.bboxGCJ02=[],this.url=null,this.gcj02Url=null)},selectGPSAll(t){const e=1==t?this.gcj02Url:this.url;this.setUrl(e)},show(){this.kml&&(this.kml.show(),this.isFit&&setTimeout(()=>{this.setFit()},50))},hide(){this.kml&&this.kml.hide()}}},Oe=we,Ee=x(Oe,_e,be,!1,null,null,null),Se=Ee.exports;Se.install=t=>{t.install(Se.name,Se)};var Ce=Se,Te=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},Pe=[];class je extends X{constructor(...t){super(...t),h(this,"modelArr",{type:Array,default:()=>[]}),h(this,"insert",{type:Object,default:()=>null}),h(this,"inserts",{type:Array,default:()=>[]}),h(this,"isShowAll",{type:Boolean,default:!0}),h(this,"isShow",{type:Object,default:()=>null}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isFit",{type:Boolean,default:!0})}}var Me={name:"RyStaticLayers",props:{...new je},data(){return{bbox:[],bboxMap:new Map,bboxGCJ02:[],bboxMapGCJ02:new Map,staticMap:new Map,isCreate:!0,lastType:-1}},watch:{modelArr(t){this._remove(),t.length&&(this.modelArr=t,this.init(t))},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))},insert(t){this.insert=t,this._insert(t),this.isFit&&setTimeout(()=>{this.setFit()},50)},inserts(t){this.inserts=t,this._inserts(t)},clear(t){t&&this._remove()},isShowAll(t){t?this.showAll():this.hideAll()},isShow(t){t&&this._isShow(t)}},created(){this.lastType=this.gpsType,this.init(this.modelArr)},methods:{init(t){t&&t.length&&(t.forEach(t=>{this._insert(t)}),this.isFit&&setTimeout(()=>{this.setFit()},50))},_inserts(t){this.lastType=this.gpsType,t.forEach(t=>{this._insert(t,!1)}),this.isFit&&setTimeout(()=>{this.setFit()},50)},_insert(t){const{id:e,url:r,bbox:n,zIndex:i,projection:o}=t;if(!this.staticMap.has(e)){const t=new l["staticImage"]({id:e,url:r,imageExtent:n,zIndex:i,type:this.gpsType,projection:o},this.map);this.staticMap.set(e,t)}this.setBBOXArr(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 r=this.convertBBoxGCJ02(e);this.bboxGCJ02.push(r),this.bboxMapGCJ02.set(t,r)}},setFit(){this.bbox.length&&this.map&&(this.bbox.length>1?Object(l["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(l["fitNew"])(this.map,[e,r])},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},_remove(){this.staticMap.forEach(t=>{t.removeImageLayer(),t=null}),this.staticMap.clear(),this.bboxMap.clear(),this.bbox=[],this.bboxGCJ02=[],this.bboxMapGCJ02.clear()},selectGPSAll(t){this.staticMap.forEach(e=>{e.selectGPS(t)})},showAll(){this.staticMap.forEach(t=>t.show()),this.restFit&&this._restFit()},hideAll(){this.staticMap.forEach(t=>t.hide())},_isShow(t){const e=t.id;if(this.staticMap.has(e)){const r=this.staticMap.get(e);if(t.show)return void r.show();r.hide()}}}},Re=Me,Ae=x(Re,Te,Pe,!1,null,null,null),Le=Ae.exports;Le.install=t=>{t.install(Le.name,Le)};var Ie=Le,ke=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},Fe=[];class De extends X{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"isShow",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isFit",{type:Boolean,default:!0})}}var Ge={name:"RyStaticLayer",props:{...new De},data(){return{bbox:[],bboxGCJ02:[],staticImg:null,lastType:-1}},watch:{model(t){this._remove(),t&&this.init(t)},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))},clear(t){t&&this._remove()},isShow(t){this._isShow(t)}},created(){this.lastType=this.gpsType,this.init(this.model)},methods:{init(t){t&&(this._insert(t),this.isFit&&setTimeout(()=>{this.setFit()},50))},_insert(t){const{id:e,url:r,bbox:n,zIndex:i,projection:o}=t;let a="EPSG:4326";o instanceof Object&&(a=o);const s=new l["staticImage"]({id:e,url:r,imageExtent:n,zIndex:i,type:this.gpsType,projection:a},this.map);this.staticImg=s,this.setBBOXArr(n)},setBBOXArr(t){this.bbox.push(t);const e=this.convertBBoxGCJ02(t);this.bboxGCJ02.push(e)},setFit(){this.bbox.length&&this.map&&(this.bbox.length>1?Object(l["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(l["fitNew"])(this.map,[e,r])},convertBBoxGCJ02(t){const e=[],{lat:r,lon:n}=l["GPS"].gcj_encrypt(t[0],t[1]),{lon:i,lat:o}=l["GPS"].gcj_encrypt(t[2],t[3]);return e.push(n),e.push(r),e.push(i),e.push(o),e},_remove(){this.staticImg&&this.staticImg.removeImageLayer(),this.staticImg=null,this.bbox=[],this.bboxGCJ02=[]},selectGPSAll(t){this.staticImg&&this.staticImg.selectGPS(t)},_isShow(t){if(this.staticImg){const e=this.staticImg;if(t)return void e.show();e.hide()}}}},Ne=Ge,ze=x(Ne,ke,Fe,!1,null,null,null),Be=ze.exports;Be.install=t=>{t.install(Be.name,Be)};var Ue=Be,Ve=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},Xe=[];class We extends X{constructor(...t){super(...t),h(this,"modelArr",{type:Array,default:()=>[]}),h(this,"insert",{type:Object,default:()=>null}),h(this,"inserts",{type:Array,default:()=>[]}),h(this,"isShowAll",{type:Boolean,default:!0}),h(this,"isShow",{type:Object,default:()=>null}),h(this,"clear",{type:Boolean,default:!1})}}var He={name:"RyWMSs",props:{...new We},data(){return{wmsMap:new Map,isCreate:!0}},watch:{modelArr(t){this._remove()},insert(t){this._insert(t)},inserts(t){this._inserts(t)},clear(t){t&&this._remove()},isShowAll(t){t?this.showAll():this.hideAll()},isShow(t){t&&this._isShow(t)}},created(){this.modelArr.length?this.init(this.modelArr):this.inserts.length&&this.init(this.inserts)},methods:{init(t){t&&t.length&&t.forEach(t=>{this._insert(t)})},_inserts(t){t.forEach(t=>{this._insert(t,!1)})},_insert(t){if(!this.wmsMap.has(t.id)){const e=new l["LWMS"]({map:this.map,...t});this.wmsMap.set(t.id,e)}},_remove(){this.wmsMap.forEach(t=>t.removeLayer())},showAll(){this.wmsMap.forEach(t=>t.show())},hideAll(){this.wmsMap.forEach(t=>t.hide())},_isShow(t){const e=t.id;if(this.wmsMap.has(e)){const r=this.wmsMap.get(e);if(t.isShow)return void r.show();r.hide()}}}},Ye=He,qe=x(Ye,Ve,Xe,!1,null,null,null),Ze=qe.exports;Ze.install=t=>{t.install(Ze.name,Ze)};var Ke=Ze,Je=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div")},$e=[];class Qe extends X{constructor(...t){super(...t),h(this,"modelArr",{type:Array,default:()=>[]}),h(this,"insert",{type:Object,default:()=>null}),h(this,"inserts",{type:Array,default:()=>[]}),h(this,"isShowAll",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isShow",{type:Object,default:()=>null})}}var tr={name:"RyWMTSs",props:{...new Qe},data(){return{wmtsMap:new Map,isCreate:!0}},watch:{modelArr(t){this._remove()},insert(t){this._insert(t)},inserts(t){this._inserts(t)},clear(t){t&&this._remove()},isShowAll(t){t?this.showAll():this.hideAll()},isShow(t){t&&this._isShow(t)}},created(){this.modelArr.length?this.init(this.modelArr):this.inserts.length&&this.init(this.inserts)},methods:{init(t){t&&t.length&&t.forEach(t=>{this._insert(t)})},_inserts(t){t.forEach(t=>{this._insert(t,!1)})},_insert(t){if(!this.wmtsMap.has(t.id)){console.log(t);const e=new l["LWMTS"](t.opt,t.params);this.wmtsMap.set(t.id,e)}},_remove(){this.wmtsMap.forEach(t=>t.removeLayer())},showAll(){this.wmtsMap.forEach(t=>t.show())},hideAll(){this.wmtsMap.forEach(t=>t.hide())},_isShow(t){const e=t.id;if(this.wmtsMap.has(e)){const r=this.wmtsMap.get(e);if(t.isShow)return void r.show();r.hide()}}}},er=tr,rr=x(er,Je,$e,!1,null,null,null),nr=rr.exports;nr.install=t=>{t.install(nr.name,nr)};var ir=nr;const or=[N,z,B,K,it,ft,Tt,_t,It,Vt,re,ce,me,Ce,Ie,Ue,Ke,ir],ar=(t,e)=>{or.forEach(e=>{t.component(e.name,e)})};"undefined"!==typeof window&&window.Vue&&ar(window.Vue);var sr={install:ar};e["default"]=sr},fbd6:function(t,e,r){"use strict";r("a218")},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}))},fd93:function(t,e,r){"use strict";r("0532")},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"),C=r("a2c7"),T=r("496f"),P=r("a896"),j=r("92fa"),M=r("0af5"),R=r("256f"),A=r("1300"),L=r("345d"),I=r("0999"),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)}}();function F(t){t instanceof s["a"]?t.setMapInternal(null):t instanceof l["b"]&&t.getLayers().forEach(F)}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 C["default"]||e.view.then((function(t){a.setView(new C["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 k(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(R["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(R["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[T["a"].ANIMATING]||i[T["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){F(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(M["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(M["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(M["isEmpty"])(this.previousExtent_)&&!Object(M["equals"])(o.extent,this.previousExtent_);u&&(this.dispatchEvent(new b["a"](x["a"].MOVESTART,this,i)),this.previousExtent_=Object(M["createOrUpdateEmpty"])(this.previousExtent_))}var c=this.previousExtent_&&!o.viewHints[T["a"].ANIMATING]&&!o.viewHints[T["a"].INTERACTING]&&!Object(M["equals"])(o.extent,this.previousExtent_);c&&(this.dispatchEvent(new b["a"](x["a"].MOVEEND,this,o)),Object(M["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 C["default"])this.set(w["a"].VIEW,t);else{this.set(w["a"].VIEW,new C["default"]);var e=this;t.then((function(t){e.setView(new C["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 C["default"]?t.view:new C["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}})}));