PageSourceSearch

https://www.immobilien-service.biz/wp-content/plugins/immonex-kickstart/assets/js/118.89e9f747.js

js immobilien-service.biz collected 2026-10-08 05:09:51 UTC 329,629 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunk_immonex_kickstart||=[]).push([[118],{6712(){},3506(t,e,i){var n=i(3925),s=String,r=TypeError;t.exports=function(t){if(n(t))return t;throw new r("Can't set "+s(t)+" as a prototype")}},5002(t){t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1}
1,InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},6193(t,e,i){var n=i(9504),s=Error,r=n("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(o);t.exports=function(t,e){if(l&&"string"==typeof t&&!s.prepareStackTrace)for(;e--;)t=r(t,a,"");return t}},3167(t,e,i){var n=i(4901),s=i(34),r=i(2967);t.exports=function(t,e,i){var o,a;return r&&n(o=e.constructor)&&o!==i&&s(a=o.prototype)&&a!==i.prototype&&r(t,a),t}},3925(t,e,i){var n=i(34);t.exports=function(t){return n(t)||null===t}},2603(t,e,i){var n=i(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},2967(t,e,i){var n=i(6706),s=i(34),r=i(7750),o=i(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=n(Object.prototype,"__proto__","set"))(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return r(i),o(n),s(i)?(e?t(i,n):i.__proto__=n,i):i}}():void 0)},4979(t,e,i){var n=i(6518),s=i(4576),r=i(7751),o=i(6980),a=i(4913).f,l=i(9297),h=i(679),c=i(3167),u=i(2603),d=i(5002),g=i(6193),f=i(3724),_=i(6395),p="DOMException",m=r("Error"),y=r(p),v=function(){h(this,x);var t=arguments.length,e=u(t<1?void 0:arguments[0]),i=u(t<2?void 0:arguments[1],"Error"),n=new y(e,i),s=new m(e);return s.name=p,a(n,"stack",o(1,g(s.stack,1))),c(n,this,v),n},x=v.prototype=y.prototype,E="stack"in new m(p),S="stack"in new y(1,2),w=y&&f&&Object.getOwnPropertyDescriptor(s,p),C=!(!w||w.writable&&w.configurable),A=E&&!C&&!S;n({global:!0,constructor:!0,forced:_||A},{DOMException:A?v:y});var R=r(p),I=R.prototype;if(I.constructor!==R)for(var T in _||a(I,"constructor",o(1,R)),d)if(l(d,T)){var M=d[T],b=M.s;l(R,b)||a(R,b,o(6,M.c))}},71(t,e,i){var n=i(2135),s=i(4120),r=i(1685);const o="length";class a extends r.Ay{constructor(t,e,i){super(t),this.element=e,this.index=i}}class l extends s.A{constructor(t,e){if(super(),this.on,this.once,this.un,e=e||{},this.unique_=!!e.unique,this.array_=t??[],this.unique_)for(let t=1,e=this.array_.length;t<e;++t)this.assertUnique_(this.array_[t],t);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(t){for(let e=0,i=t.length;e<i;++e)this.push(t[e]);return this}forEach(t){const e=this.array_;for(let i=0,n=e.length;i<n;++i)t(e[i],i,e)}getArray(){return this.array_}item(t){return this.array_[t]}getLength(){return this.get(o)}insertAt(t,e){if(t<0||t>this.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new a(n.A.ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const e=this.array_;for(let i=0,n=e.length;i<n;++i)if(e[i]===t)return this.removeAt(i)}removeAt(t){if(t<0||t>=this.getLength())return;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new a(n.A.REMOVE,e,t)),e}setAt(t,e){if(t>=this.getLength())return void this.insertAt(t,e);if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);const i=this.array_[t];this.array_[t]=e,this.dispatchEvent(new a(n.A.REMOVE,i,t)),this.dispatchEvent(new a(n.A.ADD,e,t))}updateLength_(){this.set(o,this.array_.length)}assertUnique_(t,e){const i=this.array_;for(let n=0,s=i.length;n<s;++n)if(i[n]===t&&n!==e)throw new Error("Duplicate item added to a unique collection")}}const h=l;i.d(e,["A",0,h])},2135(t,e,i){i.d(e,["A",0,{ADD:"add",REMOVE:"remove"}])},25(t,e,i){i.d(e,["A",0,class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}])},6717(t,e,i){var n=i(4120),s=i(588),r=i(9438),o=i(6837);class a extends n.A{constructor(t){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),t)if("function"==typeof t.getSimplifiedGeometry){const e=t;this.setGeometry(e)}else{const e=t;this.setProperties(e)}}clone(){const t=new a,e=this.geometryName_;t.setGeometryName(e);const i=this.getPropertiesInternal();if(i){const n=this.getGeometry();for(const s in i)s===e&&n?t.set(s,n.clone()):t.set(s,i[s],!0)}const n=this.getStyle();return n&&t.setStyle(n),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&((0,r.JH)(this.geometryChangeKey_),this.geometryChangeKey_=null);const t=this.getGeometry();t&&(this.geometryChangeKey_=(0,r.KT)(t,o.A.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?function(t){if("function"==typeof t)return t;let e;return Array.isArray(t)?e=t:((0,s.v)("function"==typeof t.getZIndex,"Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),e=[t]),function(){return e}}(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){t!==this.geometryName_&&(this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_())}}const l=a;i.d(e,["A",0,l])},3938(t,e,i){i.d(e,{RA:()=>l,f6:()=>a}),i(6141);var n=i(9438),s=i(6837),r=i(9332),o=(i(4238),i(7771));function a(t,e,i){const r=t;let a=!0,l=!1,h=!1;const c=[(0,n.Jz)(r,s.A.LOAD,function(){h=!0,l||e()})];return r.src&&o.DT?(l=!0,r.decode().then(function(){a&&e()}).catch(function(t){a&&(h?e():i())}
1)):c.push((0,n.Jz)(r,s.A.ERROR,i)),function(){a=!1,c.forEach(n.JH)}}function l(t,e){return e&&(t.src=e),t.src&&o.DT?new Promise((e,i)=>t.decode().then(()=>e(t)).catch(n=>t.complete&&t.width?e(t):i(n))):function(t){return new Promise((e,i)=>{function n(){r(),e(t)}function s(){r(),i(new Error("Image load error"))}function r(){t.removeEventListener("load",n),t.removeEventListener("error",s)}t.addEventListener("load",n),t.addEventListener("error",s)})}(t)}r.A},6141(t,e,i){i.d(e,["A",0,{IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}])},190(t,e,i){var n=i(3938),s=i(8143),r=i(1078),o=i(8711),a=i(7771);class l extends s.A{constructor(t,e,i,n,s,r){super(t,e,r),this.crossOrigin_=n?.crossOrigin,this.referrerPolicy_=n?.referrerPolicy,this.src_=i,this.key=i,this.image_,a.Wl?this.image_=new OffscreenCanvas(1,1):(this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_),void 0!==this.referrerPolicy_&&(this.image_.referrerPolicy=this.referrerPolicy_)),this.unlisten_=null,this.tileLoadFunction_=s}getImage(){return this.image_}setImage(t){this.image_=t,this.state=r.A.LOADED,this.unlistenImage_(),this.changed()}getCrossOrigin(){return this.crossOrigin_}getReferrerPolicy(){return this.referrerPolicy_}handleImageError_(){this.state=r.A.ERROR,this.unlistenImage_(),this.image_=function(){const t=(0,o.Y)(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}(),this.changed()}handleImageLoad_(){if(a.Wl)this.state=r.A.LOADED;else{const t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=r.A.LOADED:this.state=r.A.EMPTY}this.unlistenImage_(),this.changed()}load(){this.state==r.A.ERROR&&(this.state=r.A.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_),void 0!==this.referrerPolicy_&&(this.image_.referrerPolicy=this.referrerPolicy_)),this.state==r.A.IDLE&&(this.state=r.A.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,n.f6)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}disposeInternal(){this.unlistenImage_(),this.image_=null,super.disposeInternal()}}const h=l;i.d(e,["A",0,h])},4750(t,e,i){i.d(e,{A:()=>dt});var n=i(71),s=i(2135),r=i(1685);class o extends r.Ay{constructor(t,e,i){super(t),this.map=e,this.frameState=void 0!==i?i:null}}const a=o,l=class extends a{constructor(t,e,i,n,s,r){super(t,e,s),this.originalEvent=i,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==n&&n,this.activePointers=r}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(t){this.pixel_=t}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(t){this.coordinate_=t}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}};var h=i(3445),c=i(9438),u=i(6837),d=i(9332),g=i(7771);const f="pointerdown";class _ extends d.A{constructor(t,e){super(t),this.map_=t,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===e?1:e,this.down_=null;const i=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=i,this.pointerdownListenerKey_=(0,c.KT)(i,f,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,c.KT)(i,"pointermove",this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(u.A.TOUCHMOVE,this.boundHandleTouchMove_,!!g.FT&&{passive:!1})}emulateClick_(t){let e=new l(h.A.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new l(h.A.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(()=>{this.clickTimeoutId_=void 0;const e=new l(h.A.SINGLECLICK,this.map_,t);this.dispatchEvent(e)},250)}updateActivePointers_(t){const e=t,i=e.pointerId;if(e.type==h.A.POINTERUP||e.type==h.A.POINTERCANCEL){delete this.trackedTouches_[i];for(const t in this.trackedTouches_)if(this.trackedTouches_[t].target!==e.target){delete this.trackedTouches_[t];break}}else e.type!=h.A.POINTERDOWN&&e.type!=h.A.POINTERMOVE||(this.trackedTouches_[i]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new l(h.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(c.JH),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return 0===t.button}handlePointerDown_(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);const e=new l(h.A.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);
1if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),0===this.dragListenerKeys_.length){const t=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,c.KT)(t,h.A.POINTERMOVE,this.handlePointerMove_,this),(0,c.KT)(t,h.A.POINTERUP,this.handlePointerUp_,this),(0,c.KT)(this.element_,h.A.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push((0,c.KT)(this.element_.getRootNode(),h.A.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new l(h.A.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new l(h.A.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"==typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,c.JH)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(u.A.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,c.JH)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(c.JH),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const p=_;var m=i(2585);const y="layergroup",v="size",x="target",E="view";var S=i(4120),w=i(8450),C=i(1078),A=i(588),R=i(3530);const I=1/0,T=class{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,R.I)(this.queuedElements_)}dequeue(){const t=this.elements_,e=this.priorities_,i=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));const n=this.keyFunction_(i);return delete this.queuedElements_[n],i}enqueue(t){(0,A.v)(!(this.keyFunction_(t)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const e=this.priorityFunction_(t);return e!=I&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(t){return 2*t+1}getRightChildIndex_(t){return 2*t+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return 0===this.elements_.length}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,i=this.priorities_,n=e.length,s=e[t],r=i[t],o=t;for(;t<n>>1;){const s=this.getLeftChildIndex_(t),r=this.getRightChildIndex_(t),o=r<n&&i[r]<i[s]?r:s;e[t]=e[o],i[t]=i[o],t=o}e[t]=s,i[t]=r,this.siftDown_(o,t)}siftDown_(t,e){const i=this.elements_,n=this.priorities_,s=i[e],r=n[e];for(;e>t;){const t=this.getParentIndex_(e);if(!(n[t]>r))break;i[e]=i[t],n[e]=n[t],e=t}i[e]=s,n[e]=r}reprioritize(){const t=this.priorityFunction_,e=this.elements_,i=this.priorities_;let n=0;const s=e.length;let r,o,a;for(o=0;o<s;++o)r=e[o],a=t(r),a==I?delete this.queuedElements_[this.keyFunction_(r)]:(i[n]=a,e[n++]=r);e.length=n,i.length=n,this.heapify_()}},M=class extends T{constructor(t,e){super(e=>t.apply(null,e),t=>t[0].getKey()),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=e,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(t){const e=super.enqueue(t);return e&&t[0].addEventListener(u.A.CHANGE,this.boundHandleTileChange_),e}getTilesLoading(){return this.tilesLoading_}handleTileChange(t){const e=t.target,i=e.getState();if(i===C.A.LOADED||i===C.A.ERROR||i===C.A.EMPTY){i!==C.A.ERROR&&e.removeEventListener(u.A.CHANGE,this.boundHandleTileChange_);const t=e.getKey();t in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[t],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(t,e){let i=0;for(;this.tilesLoading_<t&&i<e&&this.getCount()>0;){const t=this.dequeue()[0],e=t.getKey();t.getState()!==C.A.IDLE||e in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[e]=!0,++this.tilesLoading_,++i,t.load())}}};var b=i(1765),P=i(2703),O=i(6514),L=i(4422),D=i(6916),F=i(8711),k=i(915),N=i(4238),G=i(2001),z=i(4087),W=i(8620);const K="addlayer",Y="removelayer";class X extends r.Ay{constructor(t,e){super(t),this.layer=e}}const B="layers";class V extends W.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let i=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(B,this.handleLayersChanged_),i?Array.isArray(i)?i=new n.A(i.slice(),{unique:!0}):(0,A.v)("function"==typeof i.getArray,"Expected `layers` to be an array or a `Collection`"):i=new n.A(void 0,{unique:!0}),this.setLayers(i)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(c.JH),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push((0,c.KT)(t,s.A.ADD,this.handleLayersAdd_,this),(0,c.KT)(t,s.A.REMOVE,this.handleLayersRemove_,this));for(const t in this.listenerKeys_)this.listenerKeys_[t].forEach(c.JH);(0,R.I)(this.listenerKeys_);const e=t.getArray();for(let t=0,i=e.length;t<i;t++){const i=e[t];this.registerLayerListeners_(i),this.dispatchEvent(new X(K,i))}this.changed()}registerLayerListeners_(t){const e=[(0,c.KT)(t,w.A.PROPERTYCHANGE,this.handleLayerChange_,this),(0,c.KT)(t,u.A.CHANGE,this.handleLayerChange_,this)];t instanceof V&&e.push((0,c.KT)(t,K,this.handleLayerGroupAdd_,this),(0,c.KT)(t,Y,this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,z.v6)(t)]=e}handleLayerGroupAdd_(t){this.dispatchEvent(new X(K,t.layer))}handleLayerGroupRemove_(t){this.dispatchEvent(new X(Y,t.layer))}handleLayersAdd_(t){const e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new X(K,e)),this.changed()}handleLayersRemove_(t){const e=t.element,i=(0,z.v6)(e);
1this.listenerKeys_[i].forEach(c.JH),delete this.listenerKeys_[i],this.dispatchEvent(new X(Y,e)),this.changed()}getLayers(){return this.get(B)}setLayers(t){const e=this.getLayers();if(e){const t=e.getArray();for(let e=0,i=t.length;e<i;++e)this.dispatchEvent(new X(Y,t[e]))}this.set(B,t)}getLayersArray(t){return t=void 0!==t?t:[],this.getLayers().forEach(function(e){e.getLayersArray(t)}),t}getLayerStatesArray(t){const e=void 0!==t?t:[],i=e.length;this.getLayers().forEach(function(t){t.getLayerStatesArray(e)});const n=this.getLayerState();let s=n.zIndex;t||void 0!==n.zIndex||(s=0);for(let t=i,r=e.length;t<r;t++){const i=e[t];i.opacity*=n.opacity,i.visible=i.visible&&n.visible,i.maxResolution=Math.min(i.maxResolution,n.maxResolution),i.minResolution=Math.max(i.minResolution,n.minResolution),i.minZoom=Math.max(i.minZoom,n.minZoom),i.maxZoom=Math.min(i.maxZoom,n.maxZoom),void 0!==n.extent&&(void 0!==i.extent?i.extent=(0,k._N)(i.extent,n.extent):i.extent=n.extent),void 0===i.zIndex&&(i.zIndex=s)}return e}getSourceState(){return"ready"}}const Z=V;var j=i(764),H=i(6173),q=i(3984),U=i(5176),$=i(7600),J=i(9960),Q=i(8774),tt=i(9703),et=i(25),it=i(6933),nt=i(2241);class st extends et.A{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){(0,z.b0)()}calculateMatrices2D(t){const e=t.viewState,i=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;(0,tt.Zz)(i,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),(0,tt.T9)(n,i)}forEachFeatureAtCoordinate(t,e,i,n,s,r,o,a){let l;const h=e.viewState;function c(t,e,i,n){return s.call(r,e,t?i:null,n)}const u=h.projection,d=(0,it.Li)(t.slice(),u),g=[[0,0]];if(u.canWrapX()&&n){const t=u.getExtent(),e=(0,k.RG)(t);g.push([-e,0],[e,0])}const f=e.layerStatesArray,_=f.length,p=[],m=[];for(let n=0;n<g.length;n++)for(let s=_-1;s>=0;--s){const r=f[s],u=r.layer;if(u.hasRenderer()&&(0,j.l)(r,h)&&o.call(a,u)){const s=u.getRenderer(),o=u.getSource();if(s&&o){const a=o.getWrapX()?d:t,h=c.bind(null,r.managed);m[0]=a[0]+g[n][0],m[1]=a[1]+g[n][1],l=s.forEachFeatureAtCoordinate(m,e,i,h,p)}if(l)return l}}if(0===p.length)return;const y=1/p.length;return p.forEach((t,e)=>t.distanceSq+=e*y),p.sort((t,e)=>t.distanceSq-e.distanceSq),p.some(t=>l=t.callback(t.feature,t.layer,t.geometry)),l}hasFeatureAtCoordinate(t,e,i,n,s,r){return void 0!==this.forEachFeatureAtCoordinate(t,e,i,n,N.rT,this,s,r)}getMap(){return this.map_}renderFrame(t){(0,z.b0)()}scheduleExpireIconCache(t){nt.ue.canExpireCache()&&t.postRenderFunctions.push(rt)}}function rt(t,e){nt.ue.expire()}const ot=st,at=class extends ot{constructor(t){super(t),this.fontChangeListenerKey_=(0,c.KT)(Q.yY,w.A.PROPERTYCHANGE,t.redrawText,t),this.element_=g.Wl?(0,F.mH)():document.createElement("div");const e=this.element_.style;e.position="absolute",e.width="100%",e.height="100%",e.zIndex="0",this.element_.className=U.XI+" ol-layers";const i=t.getViewport();i&&i.insertBefore(this.element_,i.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(t,e){const i=this.getMap();if(i.hasListener(t)){const n=new J.A(t,void 0,e);i.dispatchEvent(n)}}disposeInternal(){(0,c.JH)(this.fontChangeListenerKey_),this.element_.remove(),super.disposeInternal()}renderFrame(t){if(!t)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(t),this.dispatchRenderEvent(q.A.PRECOMPOSE,t);const e=t.layerStatesArray.sort((t,e)=>t.zIndex-e.zIndex);e.some(t=>t.layer instanceof $.A&&t.layer.getDeclutter())&&(t.declutter={});const i=t.viewState;this.children_.length=0;const n=this.getMap().getTargetElement();let s;(0,F.rB)(n)&&(s=n.getContext("2d"),s.setTransform(1,0,0,1,0,0),s.clearRect(0,0,n.width,n.height));const r=[];let o=s?n:null;for(let n=0,s=e.length;n<s;++n){const s=e[n];t.layerIndex=n;const a=s.layer,l=a.getSourceState();if(!(0,j.l)(s,i)||"ready"!=l&&"undefined"!=l){a.unrender();continue}const h=a.render(t,o);h&&(h!==o&&(this.children_.push(h),o=h),r.push(s))}this.declutter(t,r),(0,F.WM)(this.element_,this.children_);for(const t of s?this.children_:[]){const e=t.firstElementChild||t,i=t.style.backgroundColor;if(i&&(!(0,F.rB)(e)||e.width>0)&&(s.fillStyle=i,s.fillRect(0,0,s.canvas.width,s.canvas.height)),!(0,F.rB)(e)||0===e.width)continue;s.save();const n=t.style.opacity||e.style.opacity;s.globalAlpha=""===n?1:Number(n);const r=e.style.transform;if(r)s.transform(...(0,tt.sH)(r));else{const t=parseFloat(e.style.width)/e.width,i=parseFloat(e.style.height)/e.height;s.transform(t,0,0,i,0,0)}
1s.drawImage(e,0,0),s.restore()}this.dispatchRenderEvent(q.A.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}declutter(t,e){if(t.declutter){for(let i=e.length-1;i>=0;--i){const n=e[i],s=n.layer;s.getDeclutter()&&s.renderDeclutter(t,n)}e.forEach(e=>e.layer.renderDeferred(t))}}};var lt=i(6782);function ht(t){t instanceof j.A?t.setMapInternal(null):t instanceof Z&&t.getLayers().forEach(ht)}function ct(t,e){if(t instanceof j.A)t.setMapInternal(e);else if(t instanceof Z){const i=t.getLayers().getArray();for(let t=0,n=i.length;t<n;++t)ct(i[t],e)}}class ut extends S.A{constructor(t){super(),t=t||{},this.on,this.once,this.un;const e=function(t){let e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const i={},s=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new Z({layers:t.layers});let r,o,a;return i[y]=s,i[x]=t.target,i[E]=t.view instanceof b.Ay?t.view:new b.Ay,void 0!==t.controls&&(Array.isArray(t.controls)?r=new n.A(t.controls.slice()):((0,A.v)("function"==typeof t.controls.getArray,"Expected `controls` to be an array or an `ol/Collection.js`"),r=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?o=new n.A(t.interactions.slice()):((0,A.v)("function"==typeof t.interactions.getArray,"Expected `interactions` to be an array or an `ol/Collection.js`"),o=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?a=new n.A(t.overlays.slice()):((0,A.v)("function"==typeof t.overlays.getArray,"Expected `overlays` to be an array or an `ol/Collection.js`"),a=t.overlays):a=new n.A,{controls:r,interactions:o,keyboardEventTarget:e,overlays:a,values:i}}(t);this.renderComplete_=!1,this.loaded_=!0,this.boundHandleBrowserEvent_=this.handleBrowserEvent.bind(this),this.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,this.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:g.cr,this.postRenderTimeoutHandle_,this.animationDelayKey_,this.animationDelay_=this.animationDelay_.bind(this),this.coordinateToPixelTransform_=(0,tt.vt)(),this.pixelToCoordinateTransform_=(0,tt.vt)(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,g.Wl||(this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.style.position="absolute",this.overlayContainer_.style.zIndex="0",this.overlayContainer_.style.width="100%",this.overlayContainer_.style.height="100%",this.overlayContainer_.style.pointerEvents="none",this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.style.position="absolute",this.overlayContainerStopEvent_.style.zIndex="0",this.overlayContainerStopEvent_.style.width="100%",this.overlayContainerStopEvent_.style.height="100%",this.overlayContainerStopEvent_.style.pointerEvents="none",this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",this.viewport_.appendChild(this.overlayContainerStopEvent_)),this.mapBrowserEventHandler_=null,this.moveTolerance_=t.moveTolerance,this.keyboardEventTarget_=e.keyboardEventTarget,this.targetChangeHandlerKeys_=null,this.targetElement_=null,g.Wl||(this.resizeObserver_=new ResizeObserver(()=>this.updateSize())),this.controls=e.controls||(g.Wl?new n.A:(0,D.N)()),this.interactions=e.interactions||(g.Wl?new n.A:(0,G.N)({onFocusOnly:!0})),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new M(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(y,this.handleLayerGroupChanged_),this.addChangeListener(E,this.handleViewChanged_),this.addChangeListener(v,this.handleSizeChanged_),this.addChangeListener(x,this.handleTargetChanged_),this.setProperties(e.values);const i=this;!t.view||t.view instanceof b.Ay||t.view.then(function(t){i.setVie
vendor: 4,143 bytes, line 1
1w(new b.Ay(t))}),this.controls.addEventListener(s.A.ADD,t=>{t.element.setMap(this)}),this.controls.addEventListener(s.A.REMOVE,t=>{t.element.setMap(null)}),this.interactions.addEventListener(s.A.ADD,t=>{t.element.setMap(this)}),this.interactions.addEventListener(s.A.REMOVE,t=>{t.element.setMap(null)}),this.overlays_.addEventListener(s.A.ADD,t=>{this.addOverlayInternal_(t.element)}),this.overlays_.addEventListener(s.A.REMOVE,t=>{const e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)}),this.controls.forEach(t=>{t.setMap(this)}),this.interactions.forEach(t=>{t.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){ct(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_?.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,i){if(!this.frameState_||!this.renderer_)return;const n=this.getCoordinateFromPixelInternal(t),s=void 0!==(i=void 0!==i?i:{}).hitTolerance?i.hitTolerance:0,r=void 0!==i.layerFilter?i.layerFilter:N.rT,o=!1!==i.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,s,o,e,null,r,null)}getFeaturesAtPixel(t,e){const i=[];return this.forEachFeatureAtPixel(t,function(t){i.push(t)},e),i}getAllLayers(){const t=[];return function e(i){i.forEach(function(i){i instanceof Z?e(i.getLayers()):t.push(i)})}(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;const i=this.getCoordinateFromPixelInternal(t),n=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:N.rT,s=void 0!==e.hitTolerance?e.hitTolerance:0,r=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,s,r,n,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const e=this.viewport_.getBoundingClientRect(),i=this.getSize(),n=e.width/i[0],s=e.height/i[1],r="changedTouches"in t?t.changedTouches[0]:t;return[(r.clientX-e.left)/n,(r.clientY-e.top)/s]}getTarget(){return this.get(x)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return(0,H.te)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const e=this.frameState_;return e?(0,tt.Bb)(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(y)}setLayers(t){const e=this.getLayerGroup();if(t instanceof n.A)return void e.setLayers(t);const i=e.getLayers();i.clear(),i.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,i=t.length;e<i;++e){const i=t[e];if(!i.visible)continue;const n=i.layer.getRenderer();if(n&&!n.ready)return!0;const s=i.layer.getSource();if(s&&s.loading)return!0}return!1}getPixelFromCoordinate(t){const e=(0,H.Ad)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)}getPixelFromCoordinateInternal(t){const e=this.frameState_;return e?(0,tt.Bb)(e.coordinateToPixelTransform,t.slice(0,2)):null}getPixelRatio(){return this.pixelRatio_}setPixelRatio(t){this.pixelRatio_!==t&&(this.pixelRatio_=t,this.render())}getRenderer(){return this.renderer_}getSize(){return this.get(v)}getView(){return this.get(E)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){const t=this.getTargetElement();return t?t.ownerDocument:document}
1getTilePriority(t,e,i,n){return function(t,e,i,n,s){if(!t||!(i in t.wantedTiles))return I;if(!t.wantedTiles[i][e.getKey()])return I;const r=t.viewState.center,o=n[0]-r[0],a=n[1]-r[1];return 65536*Math.log(s)+Math.sqrt(o*o+a*a)/s}(this.frameState_,t,e,i,n)}handleBrowserEvent(t,e){e=e||t.type;const i=new l(e,this,t);this.handleMapBrowserEvent(i)}handleMapBrowserEvent(t){if(!this.frameState_)return;const e=t.originalEvent,i=e.type;if(i===f||i===u.A.WHEEL||i===u.A.KEYDOWN){const t=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():t,n=e.target,s=i instanceof ShadowRoot?i.host===n?i.host.ownerDocument:i:i===t?t.documentElement:i;if(this.overlayContainerStopEvent_.contains(n)||!s.contains(n))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t)){const e=this.getInteractions().getArray().slice();for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.getMap()===this&&n.getActive()&&this.getTargetElement()&&(!n.handleEvent(t)||t.propagationStopped))break}}}handlePostRender(){const t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let i=this.maxTilesLoading_,n=i;const s=t?t.viewHints:void 0,r=!!s&&(s[P.A.ANIMATING]||s[P.A.INTERACTING]);if(r){const e=Date.now()-t.time>8;i=e?0:8,n=e?0:2}e.getTilesLoading()<i&&(r&&e.reprioritize(),e.loadMoreTiles(i,n))}t&&this.renderer_&&!t.animate&&(this.renderComplete_?(this.hasListener(q.A.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(q.A.RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new a(m.A.LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new a(m.A.LOADSTART,this,t))));const i=this.postRenderFunctions_;if(t)for(let e=0,n=i.length;e<n;++e)i[e](this,t);i.length=0}handleSizeChanged_(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()}handleTargetChanged_(){if(this.mapBrowserEventHandler_){for(let t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)(0,c.JH)(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(u.A.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(u.A.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,this.viewport_.remove()}if(this.targetElement_&&!(0,F.rB)(this.targetElement_)){this.resizeObserver_?.unobserve(this.targetElement_);const t=this.targetElement_.getRootNode();t instanceof ShadowRoot&&this.resizeObserver_.unobserve(t.host),this.setSize(void 0)}const t=this.getTarget(),e="string"==typeof t?document.getElementById(t):t;if(this.targetElement_=e,e){if((0,F.rB)(e)||e.appendChild(this.viewport_),this.renderer_||(this.renderer_=new at(this)),!(0,F.rB)(e)){this.mapBrowserEventHandler_=new p(this,this.moveTolerance_);for(const t in h.A)this.mapBrowserEventHandler_.addEventListener(h.A[t],this.handleMapBrowserEvent.bind(this));let t;if(this.viewport_.addEventListener(u.A.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(u.A.WHEEL,this.boundHandleBrowserEvent_,!!g.FT&&{passive:!1}),this.keyboardEventTarget_)t=this.keyboardEventTarget_;else{const i=e.getRootNode();t=i instanceof ShadowRoot?i.host:e}if(this.targetChangeHandlerKeys_=[(0,c.KT)(t,u.A.KEYDOWN,this.handleBrowserEvent,this),(0,c.KT)(t,u.A.KEYPRESS,this.handleBrowserEvent,this)],!(0,F.rB)(e)){const t=e.getRootNode();t instanceof ShadowRoot&&this.resizeObserver_.observe(t.host),this.resizeObserver_?.observe(e)}}this.updateSize()}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)}handleTileChange_(){this.render()}handleViewPropertyChanged_(){this.render()}handleViewChanged_(){this.viewPropertyListenerKey_&&((0,c.JH)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,c.JH)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);const t=this.getView();t&&(this.updateViewportSize_(this.getSize()),this.viewPropertyListenerKey_=(0,c.KT)(t,w.A.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,c.KT)(t,u.A.CHANGE,this.handleViewPropertyChanged_,this),t.resolve
1Constraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(c.JH),this.layerGroupPropertyListenerKeys_=null);const t=this.getLayerGroup();t&&(this.handleLayerAdd_(new X("addlayer",t)),this.layerGroupPropertyListenerKeys_=[(0,c.KT)(t,w.A.PROPERTYCHANGE,this.render,this),(0,c.KT)(t,u.A.CHANGE,this.render,this),(0,c.KT)(t,"addlayer",this.handleLayerAdd_,this),(0,c.KT)(t,"removelayer",this.handleLayerRemove_,this)]),this.render()}isRendered(){return!!this.frameState_}animationDelay_(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}renderSync(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()}redrawText(){if(!this.frameState_)return;const t=this.frameState_.layerStatesArray;for(let e=0,i=t.length;e<i;++e){const i=t[e].layer;i.hasRenderer()&&i.getRenderer().handleFontsChanged()}}render(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}removeControl(t){return this.getControls().remove(t)}removeInteraction(t){return this.getInteractions().remove(t)}removeLayer(t){return this.getLayerGroup().getLayers().remove(t)}handleLayerRemove_(t){ht(t.layer)}removeOverlay(t){return this.getOverlays().remove(t)}renderFrame_(t){const e=this.getSize(),i=this.getView(),n=this.frameState_;let s=null;if(void 0!==e&&(0,lt.Ie)(e)&&i&&i.isDef()){const n=i.getHints(this.frameState_?this.frameState_.viewHints:void 0),r=i.getState();if(s={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutter:null,extent:(0,k.Bg)(r.center,r.resolution,r.rotation,e),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:e,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:r,viewHints:n,wantedTiles:{},mapId:(0,z.v6)(this),renderTargets:{}},r.nextCenter&&r.nextResolution){const t=isNaN(r.nextRotation)?r.rotation:r.nextRotation;s.nextExtent=(0,k.Bg)(r.nextCenter,r.nextResolution,t,e)}}this.frameState_=s,this.renderer_.renderFrame(s),s&&(s.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,s.postRenderFunctions),n&&(!this.previousExtent_||!(0,k.Im)(this.previousExtent_)&&!(0,k.aI)(s.extent,this.previousExtent_))&&(this.dispatchEvent(new a(m.A.MOVESTART,this,n)),this.previousExtent_=(0,k.aZ)(this.previousExtent_)),this.previousExtent_&&!s.viewHints[P.A.ANIMATING]&&!s.viewHints[P.A.INTERACTING]&&!(0,k.aI)(s.extent,this.previousExtent_)&&(this.dispatchEvent(new a(m.A.MOVEEND,this,s)),(0,k.o8)(s.extent,this.previousExtent_))),this.dispatchEvent(new a(m.A.POSTRENDER,this,s)),this.renderComplete_=(this.hasListener(m.A.LOADSTART)||this.hasListener(m.A.LOADEND)||this.hasListener(q.A.RENDERCOMPLETE))&&!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady(),this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout(()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new X("removelayer",e)),this.set(y,t)}setSize(t){this.set(v,t)}setTarget(t){this.set(x,t)}setView(t){if(!t||t instanceof b.Ay)return void this.set(E,t);this.set(E,new b.Ay);const e=this;t.then(function(t){e.setView(new b.Ay(t))})}updateSize(){const t=this.getTargetElement();let e;if(t){let i,n;if((0,F.rB)(t)){const e=t.getContext("2d").getTransform();i=t.width/e.a,n=t.height/e.d}else{const e=getComputedStyle(t);i=t.offsetWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)-parseFloat(e.borderRightWidth),n=t.offsetHeight-parseFloat(e.borderTopWidth)-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)-parseFloat(e.borderBottomWidth)}isNaN(i)||isNaN(n)||(e=[Math.max(0,i),Math.max(0,n)],!(0,lt.Ie)(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&(0,L.R8)("No map visible because the map container's width or height are 0."))}const i=this.getSize();!e||i&&(0,O.aI)(e,i)||(this.updateViewportSize_(e),this.setSize(e))}updateViewportSize_(t){const e=this.getView();e&&e.setViewportSize(t)}
1}const dt=ut},3445(t,e,i){var n=i(6837);const s={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"};i.d(e,["A",0,s])},2585(t,e,i){i.d(e,["A",0,{POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}])},4120(t,e,i){var n=i(8450),s=i(1854),r=i(1685),o=i(3530),a=i(4087);class l extends r.Ay{constructor(t,e,i){super(t),this.key=e,this.oldValue=i}}class h extends s.A{constructor(t){super(),this.on,this.once,this.un,(0,a.v6)(this),this.values_=null,void 0!==t&&this.setProperties(t)}get(t){let e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(t,e){let i;i=`change:${t}`,this.hasListener(i)&&this.dispatchEvent(new l(i,t,e)),i=n.A.PROPERTYCHANGE,this.hasListener(i)&&this.dispatchEvent(new l(i,t,e))}addChangeListener(t,e){this.addEventListener(`change:${t}`,e)}removeChangeListener(t,e){this.removeEventListener(`change:${t}`,e)}set(t,e,i){const n=this.values_||(this.values_={});if(i)n[t]=e;else{const i=n[t];n[t]=e,i!==e&&this.notify(t,i)}}setProperties(t,e){for(const i in t)this.set(i,t[i],e)}applyProperties(t){t.values_&&Object.assign(this.values_||(this.values_={}),t.values_)}unset(t,e){if(this.values_&&t in this.values_){const i=this.values_[t];delete this.values_[t],(0,o.p)(this.values_)&&(this.values_=null),e||this.notify(t,i)}}}const c=h;i.d(e,["A",0,c])},8450(t,e,i){i.d(e,["A",0,{PROPERTYCHANGE:"propertychange"}])},1854(t,e,i){var n=i(9438),s=i(6837),r=i(9332);class o extends r.A{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(s.A.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const i=t.length,s=new Array(i);for(let r=0;r<i;++r)s[r]=(0,n.KT)(this,t[r],e);return s}return(0,n.KT)(this,t,e)}onceInternal(t,e){let i;if(Array.isArray(t)){const s=t.length;i=new Array(s);for(let r=0;r<s;++r)i[r]=(0,n.Jz)(this,t[r],e)}else i=(0,n.Jz)(this,t,e);return e.ol_key=i,i}unInternal(t,e){const i=e.ol_key;if(i)!function(t){if(Array.isArray(t))for(let e=0,i=t.length;e<i;++e)(0,n.JH)(t[e]);else(0,n.JH)(t)}(i);else if(Array.isArray(t))for(let i=0,n=t.length;i<n;++i)this.removeEventListener(t[i],e);else this.removeEventListener(t,e)}}o.prototype.on,o.prototype.once,o.prototype.un;const a=o;i.d(e,["A",0,a])},1795(t,e,i){var n=i(2585),s=i(4120),r=i(5176),o=i(8711),a=i(9438),l=i(915);const h="element",c="map",u="offset",d="position",g="positioning";class f extends s.A{constructor(t){super(),this.on,this.once,this.un,this.options=t,this.id=t.id,this.insertFirst=void 0===t.insertFirst||t.insertFirst,this.stopEvent=void 0===t.stopEvent||t.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==t.className?t.className:"ol-overlay-container "+r.Q5,this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.autoPan=!0===t.autoPan?{}:t.autoPan||void 0,this.rendered={transform_:"",visible:!0},this.mapPostrenderListenerKey=null,this.addChangeListener(h,this.handleElementChanged),this.addChangeListener(c,this.handleMapChanged),this.addChangeListener(u,this.handleOffsetChanged),this.addChangeListener(d,this.handlePositionChanged),this.addChangeListener(g,this.handlePositioningChanged),void 0!==t.element&&this.setElement(t.element),this.setOffset(void 0!==t.offset?t.offset:[0,0]),this.setPositioning(t.positioning||"top-left"),void 0!==t.position&&this.setPosition(t.position)}getElement(){return this.get(h)}getId(){return this.id}getMap(){return this.get(c)||null}getOffset(){return this.get(u)}getPosition(){return this.get(d)}getPositioning(){return this.get(g)}handleElementChanged(){(0,o.gS)(this.element);const t=this.getElement();t&&this.element.appendChild(t)}handleMapChanged(){this.mapPostrenderListenerKey&&(this.element?.remove(),(0,a.JH)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);const t=this.getMap();if(t){this.mapPostrenderListenerKey=(0,a.KT)(t,n.A.POSTRENDER,this.render,this),this.updatePixelPosition();const e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element),this.performAutoPan()}}render(){this.updatePixelPosition()}handleOffsetChanged(){this.updatePixelPosition()}handlePositionChanged(){this.updatePixelPosition(),this.performAutoPan()}handlePositioningChanged(){this.updatePixelPosition()}setElement(t){this.set(h,t)}setMap(t){this.set(c,t)}setOffset(t){this.set(u,t)}setPosition(t){this.set(d,t)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(t){const e=this.getMap();if(!e||!e.getTargetElement()||!this.get(d))return;const i=this.getRect(e.getTargetElement(),e.getSize()),n=this.getElement(),s=this.getRect(n,[(0,o.Gq)(n),(0,o.DK)(n)]),r=void 0===(t=t||{}).margin?20:t.margin;if(!(0,l.ms)(i,s)){const n=s[0]-i[0],o=i[2]-s[2],a=s[1]-i[1],l=i[3]-s[3],h=[0,0];if(n<0?h[0]=n-r:o<0&&(h[0]=Math.abs(o)+r),a<0?h[1]=a-r:l<0&&(h[1]=Math.abs(l)+r),0!==h[0]||0!==h[1]){const i=e.getView().getCenterInternal(),n=e.getPixelFromCo
1ordinateInternal(i);if(!n)return;const s=[n[0]+h[0],n[1]+h[1]],r=t.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(s),duration:r.duration,easing:r.easing})}}}getRect(t,e){const i=t.getBoundingClientRect(),n=i.left+window.pageXOffset,s=i.top+window.pageYOffset;return[n,s,n+e[0],s+e[1]]}setPositioning(t){this.set(g,t)}setVisible(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)}updatePixelPosition(){const t=this.getMap(),e=this.getPosition();if(!t||!t.isRendered()||!e)return void this.setVisible(!1);const i=t.getPixelFromCoordinate(e),n=t.getSize();this.updateRenderedPosition(i,n)}updateRenderedPosition(t,e){const i=this.element.style,n=this.getOffset(),s=this.getPositioning();this.setVisible(!0);let r="0%",o="0%";"bottom-right"==s||"center-right"==s||"top-right"==s?r="-100%":"bottom-center"!=s&&"center-center"!=s&&"top-center"!=s||(r="-50%"),"bottom-left"==s||"bottom-center"==s||"bottom-right"==s?o="-100%":"center-left"!=s&&"center-center"!=s&&"center-right"!=s||(o="-50%");const a=`translate(${r}, ${o}) translate(${t[0]+n[0]}px, ${t[1]+n[1]}px)`;this.rendered.transform_!=a&&(this.rendered.transform_=a,i.transform=a)}getOptions(){return this.options}}const _=f;i.d(e,["A",0,_])},8143(t,e,i){var n=i(1078),s=i(3474),r=i(6837),o=i(9332),a=i(4087);class l extends o.A{constructor(t,e,i){super(),i=i||{},this.tileCoord=t,this.state=e,this.key="",this.transition_=void 0===i.transition?250:i.transition,this.transitionStarts_={},this.interpolate=!!i.interpolate}changed(){this.dispatchEvent(r.A.CHANGE)}release(){this.setState(n.A.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(this.state!==n.A.EMPTY){if(this.state!==n.A.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()}}load(){(0,a.b0)()}getAlpha(t,e){if(!this.transition_)return 1;let i=this.transitionStarts_[t];if(i){if(-1===i)return 1}else i=e,this.transitionStarts_[t]=i;const n=e-i+1e3/60;return n>=this.transition_?1:(0,s.a6)(n/this.transition_)}inTransition(t){return!!this.transition_&&-1!==this.transitionStarts_[t]}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}disposeInternal(){this.release(),super.disposeInternal()}}const h=l;i.d(e,["A",0,h])}
1,1110(t,e,i){i.d(e,{N:()=>s});class n{constructor(t,e,i,n){this.minX=t,this.maxX=e,this.minY=i,this.maxY=n}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(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)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}}function s(t,e,i,s,r){return void 0!==r?(r.minX=t,r.maxX=e,r.minY=i,r.maxY=s,r):new n(t,e,i,s)}const r=n;i.d(e,["A",0,r])},1078(t,e,i){i.d(e,["A",0,{IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}])},1765(t,e,i){i.d(e,{Ay:()=>A});var n=i(4120),s=i(2703);const r={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var o=i(6514),a=i(588),l=i(1597);function h(t,e,i){return function(n,s,r,o,a){if(!n)return;if(!s&&!e)return n;const h=e?0:r[0]*s,c=e?0:r[1]*s,u=a?a[0]:0,d=a?a[1]:0;let g=t[0]+h/2+u,f=t[2]-h/2+u,_=t[1]+c/2+d,p=t[3]-c/2+d;g>f&&(g=(f+g)/2,f=g),_>p&&(_=(p+_)/2,p=_);let m=(0,l.qE)(n[0],g,f),y=(0,l.qE)(n[1],_,p);if(o&&i&&s){const t=30*s;m+=-t*Math.log(1+Math.max(0,g-n[0])/t)+t*Math.log(1+Math.max(0,n[0]-f)/t),y+=-t*Math.log(1+Math.max(0,_-n[1])/t)+t*Math.log(1+Math.max(0,n[1]-p)/t)}return[m,y]}}function c(t){return t}var u=i(6933),d=i(3474),g=i(915),f=i(4238),_=i(5296),p=i(6173);function m(t,e,i,n){const s=(0,g.RG)(e)/i[0],r=(0,g.Oq)(e)/i[1];return n?Math.min(t,Math.max(s,r)):Math.min(t,Math.min(s,r))}function y(t,e,i){let n=Math.min(t,e);return n*=Math.log(1+50*Math.max(0,t/e-1))/50+1,i&&(n=Math.max(n,i),n/=Math.log(1+50*Math.max(0,i/t-1))/50+1),(0,l.qE)(n,i/2,2*e)}function v(t,e,i,n,s){return i=void 0===i||i,function(r,o,a,h){if(void 0!==r){const o=n?m(t,n,a,s):t;return i&&h?y(r,o,e):(0,l.qE)(r,e,o)}}}var x=i(4498);class E extends n.A{constructor(t){super(),this.on,this.once,this.un,t=Object.assign({},t),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=(0,p.Av)(t.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,t.projection&&(0,p.RJ)(),t.center&&(t.center=(0,p.Ad)(t.center,this.projection_)),t.extent&&(t.extent=(0,p.SD)(t.extent,this.projection_)),this.applyOptions_(t)}applyOptions_(t){const e=Object.assign({},t);for(const t in r)delete e[t];this.setProperties(e,!0);const i=function(t){let e,i,n;let s=void 0!==t.minZoom?t.minZoom:0,r=void 0!==t.maxZoom?t.maxZoom:28;const a=void 0!==t.zoomFactor?t.zoomFactor:2,h=void 0!==t.multiWorld&&t.multiWorld,c=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,u=void 0!==t.showFullExtent&&t.showFullExtent,d=(0,p.Av)(t.projection,"EPSG:3857"),f=d.getExtent();let _=t.constrainOnlyCenter,x=t.extent;if(h||x||!d.isGlobal()||(_=!1,x=f),void 0!==t.resolutions){const a=t.resolutions;i=a[s],n=void 0!==a[r]?a[r]:a[a.length-1],e=t.constrainResolution?function(t,e,i,n){return e=void 0===e||e,function(s,r,a,h){if(void 0!==s){const c=t[0],u=t[t.length-1],d=i?m(c,i,a,n):c;if(h)return e?y(s,d,u):(0,l.qE)(s,u,d);const g=Math.min(d,s),f=Math.floor((0,o.FT)(t,g,r));return t[f]>d&&f<t.length-1?t[f+1]:t[f]}}}(a,c,!_&&x,u):v(i,n,c,!_&&x,u)}else{const o=(f?Math.max((0,g.RG)(f),(0,g.Oq)(f)):360*p.Ig.degrees/d.getMetersPerUnit())/256/Math.pow(2,0),h=o/Math.pow(2,28);i=t.maxResolution,void 0!==i?s=0:i=o/Math.pow(a,s),n=t.minResolution,void 0===n&&(n=void 0!==t.maxZoom?void 0!==t.maxResolution?i/Math.pow(a,r):o/Math.pow(a,r):h),r=s+Math.floor(Math.log(i/n)/Math.log(a)),n=i/Math.pow(a,r-s),e=t.constrainResolution?function(t,e,i,n,s,r){return n=void 0===n||n,i=void 0!==i?i:0,function(o,a,h,c){if(void 0!==o){const u=s?m(e,s,h,r):e;if(c)return n?y(o,u,i):(0,l.qE)(o,i,u);const d=1e-9,g=Math.ceil(Math.log(e/u)/Math.log(t)-d),f=-a*(.5-d)+.5,_=Math.min(u,o),p=Math.floor(Math.log(e/_)/Math.log(t)+f),v=Math.max(g,p),x=e/Math.pow(t,v);return(0,l.qE)(x,i,u)}}}(a,i,n,c,!_&&x,u):v(i,n,c,!_&&x,u)}return{constraint:e,maxResolution:i,minResolution:n,minZoom:s,zoomFactor:a}}(t);this.maxResolution_=i.maxResolution,this.minResolution_=i.minResolution,this.zoomFactor_=i.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=i.minZoom;const n=function(t){if(void 0!==t.extent){const e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return h(t.extent,t.constrainOnlyCenter,e)}const e=(0,p.Av)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&e.isGlobal()){const t=e.getExtent().slice();return t[0]=-1/0,t[2]=1/0,h(t,!1,!1)}return c}(t),s=i.constraint,a=function(t){if(void 0===t.enableRotation||t.enableRotation){const e=t.constrainRotation;return void 0===e||!0===e?(0,x.cq)():!1===e?x.dv:"number"==typeof e?(0,x.a$)(e):x.dv}return x.b8}(t);this.constraints_={center:n,resolution:s,rotation:a},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom)}get padding(){return this.padding_}set padding(t){let e=this.padding_;this.padding_=t;const i=this.getCenterInternal();if(i){const n=t||[0,0,0,0];e=e||[0,0,0,0];const s=this.getResolution(),r=s/2*(n[3]-e[3]+e[1]-n[1]),o=s/2*(n[0]-e[0]+e[2]-n[2]);this.setCenterInternal([i[0]+r,i[1]-o])}}getUpdatedOptions_(t){const 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.assign({},e,t)}animate(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);const e=new Array(arguments.length);for(let t=0;t<e.length;++t){let i=arguments[t];i.center&&(i=Object.assign({},i),i.center=(0,p.Ad)(i.center,this.getProjection())),i.anchor&&(i=Object.assign({},i),i.anchor=(0,p.Ad)(i.anchor,this.getProjection())),e[t]=i}this.animateInternal.apply(this,e)}animateInternal(t){let e,i=arguments.length;i>1&&"function"==typeof arguments[i-1]&&(e=arguments[i-1],--i);let n=0;for(;n<i&&!this.isDef();++n){const t=arguments[n];t.center&&this.setCenterInternal(t.center),void 0!==t.zoom?this.setZoom(t.zoom):t.resolution&&this.setResolution(t.resolution),void 0!==t.rotation&&this.setRotation(t.rotation)}if(n===i)return void(e&&S(e,!0));let r=Date.now(),o=this.targetCenter_.slice(),a=this.targetResolution_,h=this.targetRotation_;const c=[];for(;n<i;++n){const t=arguments[n],i={start:r,complete:!1,anchor:t.anchor,duration:void 0!==t.duration?t.duration:1e3,easing:t.easing||d.T9,callback:e};if(t.center&&(i.sourceCenter=o,i.targetCenter=t.center.slice(),o=i.targetCenter),void 0!==t.zoom?(i.sourceResolution=a,i.targetResolution=this.getResolutionForZoom(t.zoom),a=i.targetResolution):t.resolution&&(i.sourceResolution=a,i.targetResolution=t.resolution,a=i.targetResolution),void 0!==t.rotation){i.sourceRotation=h;const e=(0,l.xP)(t.rotation-h+Math.PI,2*Math.PI)-Math.PI;i.targetRotation=h+e,h=i.targetRotation}w(i)?i.complete=!0:r+=i.duration,c.push(i)}this.animations_.push(c),this.setHint(s.A.ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[s.A.ANIMATING]>0}getInteracting(){return this.hints_[s.A.INTERACTING]>0}cancelAnimations(){let t;this.setHint(s.A.ANIMATING,-this.hints_[s.A.ANIMATING]);for(let e=0,i=this.animations_.length;e<i;++e){const i=this.animations_[e];
vendor: 11,039 bytes, line 1
1if(i[0].callback&&S(i[0].callback,!1),!t)for(let e=0,n=i.length;e<n;++e){const n=i[e];if(!n.complete){t=n.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}updateAnimations_(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!this.getAnimating())return;const t=Date.now();let e=!1;for(let i=this.animations_.length-1;i>=0;--i){const n=this.animations_[i];let r=!0;for(let i=0,s=n.length;i<s;++i){const s=n[i];if(s.complete)continue;const o=t-s.start;let a=s.duration>0?o/s.duration:1;a>=1?(s.complete=!0,a=1):r=!1;const h=s.easing(a);if(s.sourceCenter){const t=s.sourceCenter[0],e=s.sourceCenter[1],i=s.targetCenter[0],n=s.targetCenter[1];this.nextCenter_=s.targetCenter;const r=t+h*(i-t),o=e+h*(n-e);this.targetCenter_=[r,o]}if(s.sourceResolution&&s.targetResolution){const t=1===h?s.targetResolution:s.sourceResolution+h*(s.targetResolution-s.sourceResolution);if(s.anchor){const e=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(t,0,e,!0);this.targetCenter_=this.calculateCenterZoom(i,s.anchor)}this.nextResolution_=s.targetResolution,this.targetResolution_=t,this.applyTargetState_(!0)}if(void 0!==s.sourceRotation&&void 0!==s.targetRotation){const t=1===h?(0,l.xP)(s.targetRotation+Math.PI,2*Math.PI)-Math.PI:s.sourceRotation+h*(s.targetRotation-s.sourceRotation);if(s.anchor){const e=this.constraints_.rotation(t,!0);this.targetCenter_=this.calculateCenterRotate(e,s.anchor)}this.nextRotation_=s.targetRotation,this.targetRotation_=t}if(this.applyTargetState_(!0),e=!0,!s.complete)break}if(r){this.animations_[i]=null,this.setHint(s.A.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const t=n[0].callback;t&&S(t,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let i;const n=this.getCenterInternal();return void 0!==n&&(i=[n[0]-e[0],n[1]-e[1]],(0,u.e$)(i,t-this.getRotation()),(0,u.WQ)(i,e)),i}calculateCenterZoom(t,e){let i;const n=this.getCenterInternal(),s=this.getResolution();return void 0!==n&&void 0!==s&&(i=[e[0]-t*(e[0]-n[0])/s,e[1]-t*(e[1]-n[1])/s]),i}getViewportSize_(t){const e=this.viewportSize_;if(t){const i=e[0],n=e[1];return[Math.abs(i*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(n*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t?(0,p.te)(t,this.getProjection()):t}getCenterInternal(){return this.get(r.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const e=this.calculateExtentInternal(t);return(0,p.JR)(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();(0,a.v)(e,"The view center is not defined");const i=this.getResolution();(0,a.v)(void 0!==i,"The view resolution is not defined");const n=this.getRotation();return(0,a.v)(void 0!==n,"The view rotation is not defined"),(0,g.Bg)(e,i,n,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(r.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal((0,p.SD)(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const i=(0,g.RG)(t)/e[0],n=(0,g.Oq)(t)/e[1];return Math.max(i,n)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,n=Math.log(e/i)/Math.log(t);return function(i){return e/Math.pow(t,i*n)}}getRotation(){return this.get(r.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,s=Math.log(i/n)/e;return function(t){return Math.log(i/t)/e/s}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const i=this.padding_;return i&&(e=[e[0]-i[1]-i[3],e[1]-i[0]-i[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),i=this.getRotation();let n=this.getCenterInternal();const s=this.padding_;if(s){const t=this.getViewportSizeMinusPadding_();n=C(n,this.getViewportSize_(),[t[0]/2+s[3],t[1]/2+s[0]],e,i)}return{center:n.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e,i,n=this.minZoom_||0;if(this.resolutions_){const s=(0,o.FT)(this.resolutions_,t,1);n=s,e=this.resolutions_[s],i=s==this.resolutions_.length-1?2:e/this.resolutions_[s+1]}else e=this.maxResolution_,i=this.zoomFactor_;return n+Math.log(e/t)/Math.log(i)}getResolutionForZoom(t){if(this.resolutions_?.length){if(1===this.resolutions_.length)return this.resolutions_[0];const e=(0,l.qE)(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,(0,l.qE)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let i;if((0,a.v)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,"Invalid extent or geometry provided as `geometry`"),Array.isArray(t)){(0,a.v)(!(0,g.Im)(t),"Cannot fit empty extent provided as `geometry`");const e=(0,p.SD)(t,this.getProjection());i=(0,_.VY)(e)}else if("Circle"===t.getType()){const e=(0,p.SD)(t.getExtent(),this.getProjection());i=(0,_.VY)(e),i.rotate(this.getRotation(),(0,g.q1)(e))}else{const e=(0,p.Tf)();i=e?t.clone().transform(e,this.getProjection()):t}this.fitInternal(i,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),i=Math.cos(e),n=Math.sin(-e),s=t.getFlatCoordinates(),r=t.getStride();let o=1/0,a=1/0,l=-1/0,h=-1/0;for(let t=0,e=s.length;t<e;t+=r){const e=s[t]*i-s[t+1]*n,r=s[t]*n+s[t+1]*i;o=Math.min(o,e),a=Math.min(a,r),l=Math.max(l,e),h=Math.max(h,r)}return[o,a,l,h]}fitInternal(t,e){let i=(e=e||{}).size;i||(i=this.getViewportSizeMinusPadding_());const n=void 0!==e.padding?e.padding:[0,0,0,0],s=void 0!==e.nearest&&e.nearest;let r;r=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.getResolutionForZoom(e.maxZoom):0;const o=this.rotatedExtentForGeometry(t);let a=this.getResolutionForExtentInternal(o,[i[0]-n[1]-n[3],i[1]-n[0]-n[2]]);a=isNaN(a)?r:Math.max(a,r),a=this.getConstrainedResolution(a,s?0:1);const l=this.getRotation(),h=Math.sin(l),c=Math.cos(l),u=(0,g.q1)(o);u[0]+=(n[1]-n[3])/2*a,u[1]+=(n[0]-n[2])/2*a;const d=u[0]*c-u[1]*h,_=u[1]*c+u[0]*h,p=this.getConstrainedCenter([d,_],a),m=e.callback?e.callback:f.tV;void 0!==e.duration?this.animateInternal({resolution:a,center:p,duration:e.duration,easing:e.easing},m):(this.targetResolution_=a,this.targetCenter_=p,this.applyTargetState_(!1,!0),S(m,!0))}centerOn(t,e,i){this.centerOnInternal((0,p.Ad)(t,this.getProjection()),e,i)}centerOnInternal(t,e,i){this.setCenterInternal(C(t,e,i,this.getResolution(),this.getRotation()))}calculateCenterShift(t,e,i,n){let s;const r=this.padding_;if(r&&t){const o=this.getViewportSizeMinusPadding_(-i),a=C(t,n,[o[0]/2+r[3],o[1]/2+r[0]],e,i);s=[t[0]-a[0],t[1]-a[1]]}return s}isDef(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}adjustCenter(t){const e=(0,p.te)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])}adjustCenterInternal(t){const e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])}adjustResolution(t,e){e=e&&(0,p.Ad)(e,this.getProjection()),this.adjustResolutionInternal(t,e)}adjustResolutionInternal(t,e){const i=this.getAnimating()||this.getInteracting(),n=this.getViewportSize_(this.getRotation()),s=this.constraints_.resolution(this.targetResolution_*t,0,n,i);e&&(this.targetCenter_=this.calculateCenterZoom(s,e)),this.targetResolution_*=t,this.applyTargetState_()}adjustZoom(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)}adjustRotation(t,e){e&&(e=(0,p.Ad)(e,this.getProjection())),this.adjustRotationInternal(t,e)}adjustRotationInternal(t,e){const i=this.getAnimating()||this.getInteracting(),n=this.constraints_.rotation(this.targetRotation_+t,i);e&&(this.targetCenter_=this.calculateCenterRotate(n,e)),this.targetRotation_+=t,this.applyTargetState_()}setCenter(t){this.setCenterInternal(t?(0,p.Ad)(t,this.getProjection()):t)}setCenterInternal(t){this.targetCenter_=t,this.applyTargetState_()}setHint(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]}setResolution(t){this.targetResolution_=t,this.applyTargetState_()}setRotation(t){this.targetRotation_=t,this.applyTargetState_()}setZoom(t){this.setResolution(this.getResolutionForZoom(t))}applyTargetState_(t,e){const i=this.getAnimating()||this.getInteracting()||e,n=this.constraints_.rotation(this.targetRotation_,i),s=this.getViewportSize_(n),o=this.constraints_.resolution(this.targetResolution_,0,s,i),a=this.constraints_.center(this.targetCenter_,o,s,i,this.calculateCenterShift(this.targetCenter_,o,n,s));this.get(r.ROTATION)!==n&&this.set(r.ROTATION,n),this.get(r.RESOLUTION)!==o&&(this.set(r.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),a&&this.get(r.CENTER)&&(0,u.aI)(this.get(r.CENTER),a)||this.set(r.CENTER,a),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(t,e,i){t=void 0!==t?t:200;const n=e||0,s=this.constraints_.rotation(this.targetRotation_),r=this.getViewportSize_(s),o=this.constraints_.resolution(this.targetResolution_,n,r),a=this.constraints_.center(this.targetCenter_,o,r,!1,this.calculateCenterShift(this.targetCenter_,o,s,r));if(0===t&&!this.cancelAnchor_)return this.targetResolution_=o,this.targetRotation_=s,this.targetCenter_=a,void this.applyTargetState_();i=i||(0===t?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,this.getResolution()===o&&this.getRotation()===s&&this.getCenterInternal()&&(0,u.aI)(this.getCenterInternal(),a)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:s,center:a,resolution:o,duration:t,easing:d.vT,anchor:i}))}beginInteraction(){this.resolveConstraints(0),this.setHint(s.A.INTERACTING,1)}
1endInteraction(t,e,i){i=i&&(0,p.Ad)(i,this.getProjection()),this.endInteractionInternal(t,e,i)}endInteractionInternal(t,e,i){this.getInteracting()&&(this.setHint(s.A.INTERACTING,-1),this.resolveConstraints(t,e,i))}getConstrainedCenter(t,e){const i=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),i)}getConstrainedZoom(t,e){const i=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(i,e))}getConstrainedResolution(t,e){e=e||0;const i=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,e,i)}}function S(t,e){setTimeout(function(){t(e)},0)}function w(t){return!(t.sourceCenter&&t.targetCenter&&!(0,u.aI)(t.sourceCenter,t.targetCenter))&&t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation}function C(t,e,i,n,s){const r=Math.cos(-s);let o=Math.sin(-s),a=t[0]*r-t[1]*o,l=t[1]*r+t[0]*o;return a+=(e[0]/2-i[0])*n,l+=(i[1]-e[1]/2)*n,o=-o,[a*r-l*o,l*r+a*o]}const A=E},2703(t,e,i){i.d(e,["A",0,{ANIMATING:0,INT
vendor: 13,016 bytes, line 1
1ERACTING:1}])},6514(t,e,i){function n(t,e,i){let n,r;i=i||s;let o=0,a=t.length,l=!1;for(;o<a;)n=o+(a-o>>1),r=+i(t[n],e),r<0?o=n+1:(a=n,l=!r);return l?o:~o}function s(t,e){return t>e?1:t<e?-1:0}function r(t,e){return t<e?1:t>e?-1:0}function o(t,e,i){if(t[0]<=e)return 0;const n=t.length;if(e<=t[n-1])return n-1;if("function"==typeof i){for(let s=1;s<n;++s){const n=t[s];if(n===e)return s;if(n<e)return i(e,t[s-1],n)>0?s-1:s}return n-1}if(i>0){for(let i=1;i<n;++i)if(t[i]<e)return i-1;return n-1}if(i<0){for(let i=1;i<n;++i)if(t[i]<=e)return i;return n-1}for(let i=1;i<n;++i){if(t[i]==e)return i;if(t[i]<e)return t[i-1]-e<e-t[i]?i-1:i}return n-1}function a(t,e,i){for(;e<i;){const n=t[e];t[e]=t[i],t[i]=n,++e,--i}}function l(t,e){const i=Array.isArray(e)?e:[e],n=i.length;for(let e=0;e<n;e++)t[t.length]=i[e]}function h(t,e){const i=t.length;if(i!==e.length)return!1;for(let n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}function c(t,e,i){const n=e||s;return t.every(function(e,s){if(0===s)return!0;const r=n(t[s-1],e);return!(r>0||i&&0===r)})}i.d(e,{El:()=>n,FT:()=>o,V_:()=>s,WC:()=>c,X$:()=>l,aI:()=>h,gI:()=>a,rG:()=>r})},588(t,e,i){function n(t,e){if(!t)throw new Error(e)}i.d(e,{v:()=>n})},9352(t,e,i){i.d(e,{_j:()=>A,cD:()=>w,dI:()=>R,eE:()=>S,fu:()=>m,oJ:()=>f,sH:()=>C});var n=i(8711),s=i(1597);const r=[NaN,NaN,NaN,0];let o;const a=/^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,l=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,h=/^rgba?\(\s*(\d+%)\s*,\s*(\d+%)\s*,\s*(\d+%)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,c=/^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i;function u(t,e){return t.endsWith("%")?Number(t.substring(0,t.length-1))/e:Number(t)}function d(t){throw new Error('failed to parse "'+t+'" as color')}function g(t){if(t.toLowerCase().startsWith("rgb")){const e=t.match(l)||t.match(a)||t.match(h);if(e){const t=e[4],i=100/255;return[(0,s.qE)(u(e[1],i)+.5|0,0,255),(0,s.qE)(u(e[2],i)+.5|0,0,255),(0,s.qE)(u(e[3],i)+.5|0,0,255),void 0!==t?(0,s.qE)(u(t,100),0,1):1]}d(t)}if(t.startsWith("#")){if(c.test(t)){const e=t.substring(1),i=e.length<=4?1:2,n=[0,0,0,255];for(let t=0,s=e.length;t<s;t+=i){let s=parseInt(e.substring(t,t+i),16);1===i&&(s+=s<<4),n[t/i]=s}return n[3]=n[3]/255,n}d(t)}const e=(o||(o=(0,n.Y)(1,1,void 0,{willReadFrequently:!0,desynchronized:!0})),o);e.fillStyle="#abcdef";let i=e.fillStyle;e.fillStyle=t,e.fillStyle===i&&(e.fillStyle="#fedcba",i=e.fillStyle,e.fillStyle=t,e.fillStyle===i&&d(t));const r=e.fillStyle;if(r.startsWith("#")||r.startsWith("rgba"))return g(r);e.clearRect(0,0,1,1),e.fillRect(0,0,1,1);const f=Array.from(e.getImageData(0,0,1,1).data);return f[3]=(0,s.Mg)(f[3]/255,3),f}function f(t){return"string"==typeof t?t:R(t)}const _={};let p=0;function m(t){if(4===t.length)return t;const e=t.slice();return e[3]=1,e}function y(t){return t>.0031308?269.025*Math.pow(t,1/2.4)-14.025:3294.6*t}function v(t){return t>.2068965?Math.pow(t,3):108/841*(t-4/29)}function x(t){return t>10.314724?Math.pow((t+14.025)/269.025,2.4):t/3294.6}function E(t){return t>.0088564?Math.pow(t,1/3):t/(108/841)+4/29}function S(t){const e=x(t[0]),i=x(t[1]),n=x(t[2]),s=E(.222488403*e+.716873169*i+.06060791*n),r=500*(E(.452247074*e+.399439023*i+.148375274*n)-s),o=200*(s-E(.016863605*e+.117638439*i+.865350722*n)),a=Math.atan2(o,r)*(180/Math.PI);return[116*s-16,Math.sqrt(r*r+o*o),a<0?a+360:a,t[3]]}function w(t){const e=(t[0]+16)/116,i=t[1],n=t[2]*Math.PI/180,r=v(e),o=v(e+i/500*Math.cos(n)),a=v(e-i/200*Math.sin(n)),l=y(3.021973625*o-1.617392459*r-.404875592*a),h=y(-.943766287*o+1.916279586*r+.027607165*a),c=y(.069407491*o-.22898585*r+1.159737864*a);return[(0,s.qE)(l+.5|0,0,255),(0,s.qE)(h+.5|0,0,255),(0,s.qE)(c+.5|0,0,255),t[3]]}function C(t){if("none"===t)return r;if(_.hasOwnProperty(t))return _[t];if(p>=1024){let t=0;for(const e in _)3&t++||(delete _[e],--p)}const e=g(t);4!==e.length&&d(t);for(const i of e)isNaN(i)&&d(t);return _[t]=e,++p,e}function A(t){return Array.isArray(t)?t:C(t)}function R(t){let e=t[0];e!=(0|e)&&(e=e+.5|0);let i=t[1];i!=(0|i)&&(i=i+.5|0);let n=t[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+e+","+i+","+n+","+(void 0===t[3]?1:Math.round(1e3*t[3])/1e3)+")"}i.d(e,["qV",0,r])},7295(t,e,i){i.d(e,{F:()=>l});var n=i(6141),s=i(9352),r=i(8711),o=i(7907),a=i(2241);function l(t){return t?Array.isArray(t)?(0,s.dI)(t):"object"==typeof t&&"src"in t?function(t){if(!t.offset||!t.size)return a.ue.getPattern(t.src,t.color);const e=t.src+":"+t.offset,i=a.ue.getPattern(e,t.color);if(i)return i;const s=a.ue.get(t.src,null);if(s.getImageState()!==n.A.LOADED)return null;const l=(0,r.Y)(t.size[0],t.size[1]);return l.drawImage(s.getImage(1),t.offset[0],t.offset[1],t.size[0],t.size[1],0,0,t.size[0],t.size[1]),(0,o.J)(l.canvas,e,void 0,n.A.LOADED,t.color,!0),a.ue.getPattern(e,t.color)}(t):t:null}},4422(t,e,i){i.d(e,{R8:()=>r});const n=2;let s=1;function r(...t){s>n||console.warn(...t)}},972(t,e,i){var n=i(2585),s=i(4120),r=i(9438),o=i(4238);class a extends s.A{constructor(t){super();const e=t.element;!e||t.target||e.style.pointerEvents||(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){this.element?.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&this.element?.remove();for(let t=0,e=this.listenerKeys.length;t<e;++t)(0,r.JH)(this.listenerKeys[t]);if(this.listenerKeys.length=0,this.map_=t,t){const e=this.target_??t.getOverlayContainerStopEvent();this.element&&e.appendChild(this.element),this.render!==o.tV&&this.listenerKeys.push((0,r.KT)(t,n.A.POSTRENDER,this.render,this)),t.render()}}render(t){}setTarget(t){this.target_="string"==typeof t?document.getElementById(t):t}}const l=a;i.d(e,["A",0,l])},6916(t,e,i){i.d(e,{N:()=>m});var n=i(71),s=i(6514),r=i(5176),o=i(8711),a=i(6837),l=i(4238),h=i(972);class c extends h.A{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===t.collapsed||t.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==t.collapsible,this.collapsible_=void 0===t.collapsible||t.collapsible,this.collapsible_||(this.collapsed_=!1),this.attributions_=t.attributions;const e=void 0!==t.className?t.className:"ol-attribution",i=void 0!==t.tipLabel?t.tipLabel:"Attributions",n=void 0!==t.expandClassName?t.expandClassName:e+"-expand",s=void 0!==t.collapseLabel?t.collapseLabel:"›",o=void 0!==t.collapseClassName?t.collapseClassName:e+"-collapse";"string"==typeof s?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=s,this.collapseLabel_.className=o):this.collapseLabel_=s;const l=void 0!==t.label?t.label:"i";"string"==typeof l?(this.label_=document.createElement("span"),this.label_.textContent=l,this.label_.className=n):this.label_=l;const h=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement("button"),this.toggleButton_.setAttribute("type","button"),this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_)),this.toggleButton_.title=i,this.toggleButton_.appendChild(h),this.toggleButton_.addEventListener(a.A.CLICK,this.handleClick_.bind(this),!1);const c=e+" "+r.XI+" "+r.$N+(this.collapsed_&&this.collapsible_?" "+r.nT:"")+(this.collapsible_?"":" ol-uncollapsible"),u=this.element;u.className=c,u.appendChild(this.toggleButton_),u.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(t){const e=this.getMap().getAllLayers(),i=new Set(e.flatMap(e=>e.getAttributions(t)));if(void 0!==this.attributions_&&(Array.isArray(this.attributions_)?this.attributions_.forEach(t=>i.add(t)):i.add(this.attributions_)),!this.overrideCollapsible_){const t=!e.some(t=>!1===t.getSource()?.getAttributionsCollapsible());this.setCollapsible(t)}return Array.from(i)}async updateElement_(t){if(!t)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const e=await Promise.all(this.collectSourceAttributions_(t).map(t=>(0,l.hq)(()=>t))),i=e.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!(0,s.aI)(e,this.renderedAttributions_)){(0,o.gS)(this.ulElement_);for(let t=0,i=e.length;t<i;++t){const i=document.createElement("li");i.innerHTML=e[t],this.ulElement_.appendChild(i)}this.renderedAttributions_=e}}handleClick_(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(r.nT),this.collapsed_?(0,o.fo)(this.collapseLabel_,this.label_):(0,o.fo)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))}getCollapsible(){return this.collapsible_}setCollapsible(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())}setCollapsed(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()}getCollapsed(){return this.collapsed_}render(t){this.updateElement_(t.frameState)}}const u=c;var d=i(3474);class g extends h.A{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target});const e=void 0!==t.className?t.className:"ol-rotate",i=void 0!==t.label?t.label:"⇧",n=void 0!==t.compassClassName?t.compassClassName:"ol-compass";this.label_=null,"string"==typeof i?(this.label_=document.createElement("span"),this.label_.className=n,this.label_.textContent=i):(this.label_=i,this.label_.classList.add(n));const s=t.tipLabel?t.tipLabel:"Reset rotation",o=document.createElement("button");o.className=e+"-reset",o.setAttribute("type","button"),o.title=s,o.appendChild(this.label_),o.addEventListener(a.A.CLICK,this.handleClick_.bind(this),!1);const l=e+" "+r.XI+" "+r.$N,h=this.element;h.className=l,h.appendChild(o),this.callResetNorth_=t.resetNorth?t.resetNorth:void 0,this.duration_=void 0!==t.duration?t.duration:250,this.autoHide_=void 0===t.autoHide||t.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(r.Si)}handleClick_(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const t=this.getMap().getView();if(!t)return;const e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:d.vT}):t.setRotation(0))}render(t){const e=t.frameState;if(!e)return;const i=e.viewState.rotation;if(i!=this.rotation_){const t="rotate("+i+"rad)";if(this.autoHide_){const t=this.element.classList.contains(r.Si);t||0!==i?t&&0!==i&&this.element.classList.remove(r.Si):this.element.classList.add(r.Si)}this.label_.style.transform=t}this.rotation_=i}}const f=g;class _ extends h.A{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const e=void 0!==t.className?t.className:"ol-zoom",i=void 0!==t.delta?t.delta:1,n=void 0!==t.zoomInClassName?t.zoomInClassName:e+"-in",s=void 0!==t.zoomOutClassName?t.zoomOutClassName:e+"-out",o=void 0!==t.zoomInLabel?t.zoomInLabel:"+",l=void 0!==t.zoomOutLabel?t.zoomOutLabel:"–",h=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",c=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",u=document.createElement("button");u.className=n,u.setAttribute("type","button"),u.title=h,u.appendChild("string"==typeof o?document.createTextNode(o):o),u.addEventListener(a.A.CLICK,this.handleClick_.bind(this,i),!1);const d=document.createElement("button");d.className=s,d.setAttribute("type","button"),d.title=c,d.appendChild("string"==typeof l?document.createTextNode(l):l),d.addEventListener(a.A.CLICK,this.handleClick_.bind(this,-i),!1);const g=e+" "+r.XI+" "+r.$N,f=this.element;f.className=g,f.appendChild(u),f.appendChild(d),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const e=this.getMap().getView();if(!e)return;const i=e.getZoom();if(void 0!==i){const n=e.getConstrainedZoom(i+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:n,duration:this.duration_,easing:d.vT})):e.setZoom(n)}}}const p=_;function m(t){t=t||{};const e=new n.A;return(void 0===t.zoom||t.zoom)&&e.push(new p(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&e.push(new f(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&e.push(new u(t.attributionOptions)),e}},6933(t,e,i){i.d(e,{Li:()=>h,WQ:()=>r,aI:()=>o,e$:()=>a,hs:()=>l,s5:()=>c});var n=i(915),s=i(1597);function r(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function o(t,e){let i=!0;for(let n=t.length-1;n>=0;--n)if(t[n]!=e[n]){i=!1;break}return i}function a(t,e){const i=Math.cos(e),n=Math.sin(e),s=t[0]*i-t[1]*n,r=t[1]*i+t[0]*n;return t[0]=s,t[1]=r,t}function l(t,e){return t[0]*=e,t[1]*=e,t}function h(t,e){if(e.canWrapX()){const i=(0,n.RG)(e.getExtent()),s=function(t,e,
1i){const s=e.getExtent();let r=0;return e.canWrapX()&&(t[0]<s[0]||t[0]>s[2])&&(i=i||(0,n.RG)(s),r=Math.floor((t[0]-s[0])/i)),r}(t,e,i);s&&(t[0]-=s*i)}return t}function c(t,e,i){const n=Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])),r=[(e[0]-t[0])/n,(e[1]-t[1])/n],o=[-r[1],r[0]],a=Math.sqrt((i[0]-t[0])*(i[0]-t[0])+(i[1]-t[1])*(i[1]-t[1])),l=[(i[0]-t[0])/a,(i[1]-t[1])/a];let h=0===n||0===a?0:Math.acos((0,s.qE)(l[0]*r[0]+l[1]*r[1],-1,1));return h=Math.max(h,1e-5),l[0]*o[0]+l[1]*o[1]>0?h:2*Math.PI-h}},5176(t,e,i){const n=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-z0-9]+?)\\s*$"].join(""),"i"),s=["style","variant","weight","size","lineHeight","family"],r={normal:400,bold:700};i.d(e,["$N",0,"ol-control","K5",0,function(t){const e=t.match(n);if(!e)return null;const i={lineHeight:"normal",size:"1.2em",style:"normal",weight:"400",variant:"normal"};for(let t=0,n=s.length;t<n;++t){const n=e[t+1];void 0!==n&&(i[s[t]]="string"==typeof n?n.trim():n)}return isNaN(Number(i.weight))&&i.weight in r&&(i.weight=r[i.weight]),i.families=i.family.split(/,\s?/).map(t=>t.trim().replace(/^['"]|['"]$/g,"")),i},"NM",0,r,"Q5",0,"ol-selectable","Si",0,"ol-hidden","XI",0,"ol-unselectable","nT",0,"ol-collapsed"])},8711(t,e,i){i.d(e,{DK:()=>h,Gq:()=>l,WM:()=>d,Y:()=>s,Yg:()=>a,fo:()=>c,gS:()=>u,lr:()=>o,mH:()=>g,rB:()=>f});var n=i(7771);function s(t,e,i,s){let r;return r=i&&i.length?i.shift():n.Wl?new class extends OffscreenCanvas{style={}}(t??300,e??150):document.createElement("canvas"),t&&(r.width=t),e&&(r.height=e),r.getContext("2d",s)}let r;function o(){return r||(r=s(1,1)),r}function a(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function l(t){let e=t.offsetWidth;const i=getComputedStyle(t);return e+=parseInt(i.marginLeft,10)+parseInt(i.marginRight,10),e}function h(t){let e=t.offsetHeight;const i=getComputedStyle(t);return e+=parseInt(i.marginTop,10)+parseInt(i.marginBottom,10),e}function c(t,e){const i=e.parentNode;i&&i.replaceChild(t,e)}function u(t){for(;t.lastChild;)t.lastChild.remove()}function d(t,e){const i=t.childNodes;for(let n=0;;++n){const s=i[n],r=e[n];if(!s&&!r)break;s!==r&&(s?r?t.insertBefore(r,s):(t.removeChild(s),--n):t.appendChild(r))}}function g(){return new Proxy({childNodes:[],appendChild:function(t){return this.childNodes.push(t),t},remove:function(){},removeChild:function(t){const e=this.childNodes.indexOf(t);if(-1===e)throw new Error("Node to remove was not found");return this.childNodes.splice(e,1),t},insertBefore:function(t,e){const i=this.childNodes.indexOf(e);if(-1===i)throw new Error("Reference node not found");return this.childNodes.splice(i,0,t),t},style:{}},{get:(t,e,i)=>"firstElementChild"===e?t.childNodes.length>0?t.childNodes[0]:null:Reflect.get(t,e,i)})}function f(t){return"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas}},3474(t,e,i){function n(t){return Math.pow(t,3)}function s(t){return 1-n(1-t)}function r(t){return 3*t*t-2*t*t*t}function o(t){return t}i.d(e,{T9:()=>r,a6:()=>n,sn:()=>o,vT:()=>s})},9438(t,e,i){i.d(e,{JH:()=>o,Jz:()=>r,KT:()=>s});var n=i(3530);function s(t,e,i,n,s){if(s){const s=i;i=function(r){return t.removeEventListener(e,i),s.call(n??this,r)}}else n&&n!==t&&(i=i.bind(n));const r={target:t,type:e,listener:i};return t.addEventListener(e,i),r}function r(t,e,i,n){return s(t,e,i,n,!0)}function o(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,n.I)(t))}},1685(t,e,i){i.d(e,["Ay",0,class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}])},6837(t,e,i){i.d(e,["A",0,{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"}])},9332(t,e,i){var n=i(25),s=i(4238),r=i(3530),o=i(1685);class a extends n.A{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;const i=this.listeners_||(this.listeners_={}),n=i[t]||(i[t]=[]);n.includes(e)||n.push(e)}
vendor: 11,941 bytes, line 1
1dispatchEvent(t){const e="string"==typeof t,i=e?t:t.type,n=this.listeners_&&this.listeners_[i];if(!n)return;const r=e?new o.Ay(t):t;r.target||(r.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});let h;i in a||(a[i]=0,l[i]=0),++a[i];for(let t=0,e=n.length;t<e;++t)if(h="handleEvent"in n[t]?n[t].handleEvent(r):n[t].call(this,r),!1===h||r.propagationStopped){h=!1;break}if(0===--a[i]){let t=l[i];for(delete l[i];t--;)this.removeEventListener(i,s.tV);delete a[i]}return h}disposeInternal(){this.listeners_&&(0,r.I)(this.listeners_)}getListeners(t){return this.listeners_&&this.listeners_[t]||void 0}hasListener(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)}removeEventListener(t,e){if(!this.listeners_)return;const i=this.listeners_[t];if(!i)return;const n=i.indexOf(e);-1!==n&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[n]=s.tV,++this.pendingRemovals_[t]):(i.splice(n,1),0===i.length&&delete this.listeners_[t]))}}const l=a;i.d(e,["A",0,l])},8704(t,e,i){i.d(e,{Q7:()=>r});var n=i(4238),s=i(7771);function r(t){const e=arguments;return function(t){let i=!0;for(let n=0,s=e.length;n<s&&(i=i&&e[n](t),i);++n);return i}}const o=n.rT;i.d(e,["A4",0,function(t){const e=t.originalEvent;return"pointerId"in e&&"mouse"==e.pointerType},"GB",0,function(t){const e=t.originalEvent;return s.ew?e.metaKey:e.ctrlKey},"Gk",0,o,"IO",0,function(t){const e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},"Kg",0,function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},"TS",0,function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},"at",0,function(t){const e=t.originalEvent;return"pointerId"in e&&0==e.button&&!(s.j&&s.ew&&e.ctrlKey)},"eL",0,function(t){const e=t.map.getTargetElement(),i=e.getRootNode();return!(i instanceof ShadowRoot?i.host:e).hasAttribute("tabindex")||function(t){const e=t.map.getTargetElement(),i=e.getRootNode(),n=t.map.getOwnerDocument().activeElement;return i instanceof ShadowRoot?i.host.contains(n):e.contains(n)}(t)},"fs",0,function(t){const e=t.originalEvent;return"pointerId"in e&&e.isPrimary&&0===e.button},"k5",0,function(t){const e=t.originalEvent;return!e.altKey&&(s.ew?e.metaKey:e.ctrlKey)&&!e.shiftKey},"tE",0,function(t){const e=t.originalEvent,i=e.target.tagName;return"INPUT"!==i&&"SELECT"!==i&&"TEXTAREA"!==i&&!e.target.isContentEditable}])},915(t,e,i){i.d(e,{$C:()=>v,$u:()=>G,Bg:()=>T,HY:()=>k,Im:()=>N,Ld:()=>a,Li:()=>K,Mx:()=>z,N:()=>g,NW:()=>W,Oq:()=>b,Py:()=>L,QJ:()=>Y,R:()=>C,R8:()=>x,RG:()=>F,Rj:()=>c,S5:()=>d,Tr:()=>s,UG:()=>w,Vy:()=>p,WU:()=>D,X$:()=>y,Ym:()=>l,Yw:()=>M,_$:()=>X,_N:()=>P,aI:()=>m,aZ:()=>f,dP:()=>_,k_:()=>A,ms:()=>h,o8:()=>o,q1:()=>R,qF:()=>I,r:()=>r,sB:()=>S,vz:()=>u,wB:()=>O});var n=i(1580);function s(t){const e=[1/0,1/0,-1/0,-1/0];for(let i=0,n=t.length;i<n;++i)v(e,t[i]);return e}function r(t,e,i){return i?(i[0]=t[0]-e,i[1]=t[1]-e,i[2]=t[2]+e,i[3]=t[3]+e,i):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function o(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function a(t,e,i){let n,s;return n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,s=i<t[1]?t[1]-i:t[3]<i?i-t[3]:0,n*n+s*s}function l(t,e){return c(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 c(t,e,i){return t[0]<=e&&e<=t[2]&&t[1]<=i&&i<=t[3]}function u(t,e){const i=t[0],s=t[1],r=t[2],o=t[3],a=e[0],l=e[1];let h=n.A.UNKNOWN;return a<i?h|=n.A.LEFT:a>r&&(h|=n.A.RIGHT),l<s?h|=n.A.BELOW:l>o&&(h|=n.A.ABOVE),h===n.A.UNKNOWN&&(h=n.A.INTERSECTING),h}function d(){return[1/0,1/0,-1/0,-1/0]}function g(t,e,i,n,s){return s?(s[0]=t,s[1]=e,s[2]=i,s[3]=n,s):[t,e,i,n]}function f(t){return g(1/0,1/0,-1/0,-1/0,t)}function _(t,e){const i=t[0],n=t[1];return g(i,n,i,n,e)}function p(t,e,i,n,s){return x(f(s),t,e,i,n)}function m(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function y(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 v(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function x(t,e,i,n,s){for(;i<n;i+=s)E(t,e[i],e[i+1]);return t}function E(t,e,i){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],i)}function S(t,e){let i;return i=e(C(t)),i||(i=e(A(t)),i||(i=e(D(t)),i||(i=e(L(t)),i||!1)))}function w(t){let e=0;return N(t)||(e=F(t)*b(t)),e}function C(t){return[t[0],t[1]]}function A(t){return[t[2],t[1]]}function R(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function I(t,e){let i;if("bottom-left"===e)i=C(t);else if("bottom-right"===e)i=A(t);else if("top-left"===e)i=L(t);else{if("top-right"!==e)throw new Error("Invalid corner");i=D(t)}return i}function T(t,e,i,n,s){const[r,o,a,l,h,c,u,d]=M(t,e,i,n);return g(Math.min(r,a,h,u),Math.min(o,l,c,d),Math.max(r,a,h,u),Math.max(o,l,c,d),s)}function M(t,e,i,n){const s=e*n[0]/2,r=e*n[1]/2,o=Math.cos(i),a=Math.sin(i),l=s*o,h=s*a,c=r*o,u=r*a,d=t[0],g=t[1];return[d-l+u,g-h-c,d-l-u,g-h+c,d+l-u,g+h+c,d+l+u,g+h-c,d-l+u,g-h-c]}function b(t){return t[3]-t[1]}function P(t,e,i){const n=i||[1/0,1/0,-1/0,-1/0];return k(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]):f(n),n}function O(t,e){if(!k(t,e))return[t.slice()];if(h(e,t))return[];const[i,n,s,r]=t,o=Math.max(i,e[0]),a=Math.max(n,e[1]),l=Math.min(s,e[2]),c=Math.min(r,e[3]),u=[];return o>i&&u.push([i,n,o,r]),l<s&&u.push([l,n,s,r]),a>n&&u.push([o,n,l,a]),c<r&&u.push([o,c,l,r]),u}function L(t){return[t[0],t[3]]}function D(t){return[t[2],t[3]]}function F(t){return t[2]-t[0]}function k(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function N(t){return t[2]<t[0]||t[3]<t[1]}function G(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,i){let s=!1;const r=u(t,e),o=u(t,i);if(r===n.A.INTERSECTING||o===n.A.INTERSECTING)s=!0;else{const a=t[0],l=t[1],h=t[2],c=t[3],u=e[0],d=e[1],g=i[0],f=i[1],_=(f-d)/(g-u);let p,m;o&n.A.ABOVE&&!(r&n.A.ABOVE)&&(p=g-(f-c)/_,s=p>=a&&p<=h),s||!(o&n.A.RIGHT)||r&n.A.RIGHT||(m=f-(g-h)*_,s=m>=l&&m<=c),s||!(o&n.A.BELOW)||r&n.A.BELOW||(p=g-(f-l)/_,s=p>=a&&p<=h),s||!(o&n.A.LEFT)||r&n.A.LEFT||(m=f-(g-a)*_,s=m>=l&&m<=c)}return s}function W(t,e,i,n){if(N(t))return f(i);let s=[];if(n>1){const e=t[2]-t[0],i=t[3]-t[1];for(let r=0;r<n;++r)s.push(t[0]+e*r/n,t[1],t[2],t[1]+i*r/n,t[2]-e*r/n,t[3],t[0],t[3]-i*r/n)}else s=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(s,s,2);const r=[],o=[];for(let t=0,e=s.length;t<e;t+=2)r.push(s[t]),o.push(s[t+1]);return function(t,e,i){return g(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),i)}(r,o,i)}function K(t,e){const i=e.getExtent(),n=R(t);if(e.canWrapX()&&(n[0]<i[0]||n[0]>=i[2])){const e=F(i),s=Math.floor((n[0]-i[0])/e)*e;t[0]-=s,t[2]-=s}return t}function Y(t,e,i){if(e.canWrapX()){const n=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[n[0],t[1],n[2],t[3]]];K(t,e);const s=F(n);if(F(t)>s&&!i)return[[n[0],t[1],n[2],t[3]]];if(t[0]<n[0])return[[t[0]+s,t[1],n[2],t[3]],[n[0],t[1],t[2],t[3]]];if(t[2]>n[2])return[[t[0],t[1],n[2],t[3]],[n[0],t[1],t[2]-s,t[3]]]}return[t]}function X(t,e){let i=[t];for(let t=0,n=e.length;t<n&&i.length>0;++t){const n=[];for(let s=0,r=i.length;s<r;++s)n.push(...O(i[s],e[t]));i=n}return i}},1580(t,e,i){i.d(e,["A",0,{UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}])},4238(t,e,i){i.d(e,{B4:()=>a,W8:()=>r,hq:()=>l,rT:()=>s,tV:()=>o});var n=i(6514);function s(){return!0}function r(){return!1}function o(){}function a(t){let e,i,s;return function(){const r=Array.prototype.slice.call(arguments);return i&&this===s&&(0,n.aI)(r,i)||(s=this,i=r,e=t.apply(this,arguments)),e}}function l(t){return function(){let e;try{e=t()}catch(t){return Promise.reject(t)}return e instanceof Promise?e:Promise.resolve(e)}()}},4294(t,e,i){var n=i(915),s=i(1597),r=i(4774),o=i(2497);class a extends r.Ay{constructor(t,e){super(),this.setCoordinates(t,e)}clone(){const t=new a(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,i,n){const r=this.flatCoordinates,o=(0,s.hG)(t,e,r[0],r[1]);if(o<n){const t=this.stride;for(let e=0;e<t;++e)i[e]=r[e];return i.length=t,o}return n}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(t){return(0,n.dP)(this.flatCoordinates,t)}getType(){return"Point"}intersectsExtent(t){return(0,n.Rj)(t,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,o._n)(this.flatCoordinates,0,t,this.stride),this.changed()}}const l=a;i.d(e,["A",0,l])},5296(t,e,i){i.d(e,{Ay:()=>S,VY:()=>w});var n=i(6514),s=i(915),r=i(4774);function o(t,e,i,n){let s=0;const r=t[i-n],o=t[i-n+1];let a=0,l=0;for(;e<i;e+=n){const i=t[e]-r,n=t[e+1]-o;s+=l*i-a*n,a=i,l=n}return s/2}var a=i(1597);function l(t,e,i,n,s,r,o){const l=t[e],h=t[e+1],c=t[i]-l,u=t[i+1]-h;let d;if(0===c&&0===u)d=e;else{const g=((s-l)*c+(r-h)*u)/(c*c+u*u);if(g>1)d=i;else{if(g>0){for(let s=0;s<n;++s)o[s]=(0,a.Cc)(t[e+s],t[i+s],g);return void(o.length=n)}d=e}}for(let e=0;e<n;++e)o[e]=t[d+e];o.length=n}function h(t,e,i,n,s){let r=t[e],o=t[e+1];for(e+=n;e<i;e+=n){const i=t[e],n=t[e+1],l=(0,a.hG)(r,o,i,n);l>s&&(s=l),r=i,o=n}return s}function c(t,e,i,n,s,r,o,h,c,u,d){if(e==i)return u;let g,f;if(0===s){if(f=(0,a.hG)(o,h,t[e],t[e+1]),f<u){for(g=0;g<n;++g)c[g]=t[e+g];return c.length=n,f}return u}d=d||[NaN,NaN];let _=e+n;for(;_<i;)if(l(t,_-n,_,n,o,h,d),f=(0,a.hG)(o,h,d[0],d[1]),f<u){for(u=f,g=0;g<n;++g)c[g]=d[g];c.length=n,_+=n}else _+=n*Math.max((Math.sqrt(f)-Math.sqrt(u))/s|0,1);if(r&&(l(t,i-n,e,n,o,h,d),f=(0,a.hG)(o,h,d[0],d[1]),f<u)){for(u=f,g=0;g<n;++g)c[g]=d[g];c.length=n}return u}var u=i(2497),d=i(6361),g=i(3386),f=i(3671);class _ extends r.Ay{constructor(t,e){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?this.setCoordinates(t,e):this.setFlatCoordinates(e,t)}clone(){return new _(this.flatCoordinates.slice(),this.layout)}closestPointXY(t,e,i,n){return n<(0,s.Ld)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(h(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),c(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,i,n))}getArea(){return o(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,d.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(t){const e=[];return e.length=(0,f.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new _(e,"XY")}getType(){return"LinearRing"}intersectsExtent(t){return(0,g.gp)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,u.z2)(this.flatCoordinates,0,t,this.stride),this.changed()}}const p=_;var m=i(4294),y=i(2845),v=i(2616),x=i(3402);class E extends r.Ay{constructor(t,e,i){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==e&&i?(this.setFlatCoordinates(e,t),this.ends_=i):this.setCoordinates(t,e)}appendLinearRing(t){this.flatCoordinates?(0,n.X$)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new E(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,i,n){return n<(0,s.Ld)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(function(t,e,
1i,n,s){for(let r=0,o=i.length;r<o;++r){const o=i[r];s=h(t,e,o,n,s),e=o}return s}(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),function(t,e,i,n,s,r,o,a,l,h,u){u=u||[NaN,NaN];for(let d=0,g=i.length;d<g;++d){const g=i[d];h=c(t,e,g,n,s,r,o,a,l,h,u),e=g}return h}(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,i,n))}containsXY(t,e){return(0,y.zb)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)}getArea(){return function(t,e,i,n){let s=0;for(let r=0,a=i.length;r<a;++r){const a=i[r];s+=o(t,e,a,n),e=a}return s}(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,x.ug)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,(0,d.cD)(e,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const t=(0,s.q1)(this.getExtent());this.flatInteriorPoint_=(0,v.J)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new m.A(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(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)}getLinearRings(){const t=this.layout,e=this.flatCoordinates,i=this.ends_,n=[];let s=0;for(let r=0,o=i.length;r<o;++r){const o=i[r],a=new p(e.slice(s,o),t);n.push(a),s=o}return n}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;(0,x.PA)(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,x.ug)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],i=[];return e.length=(0,f.Hg)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,i),new E(e,"XY",i)}getType(){return"Polygon"}intersectsExtent(t){return(0,g.HT)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const i=(0,u.KG)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()}}const S=E;function w(t){if((0,s.Im)(t))throw new Error("Cannot create polygon from empty extent");const e=t[0],i=t[1],n=t[2],r=t[3],o=[e,i,e,r,n,r,n,i,e,i];return new E(o,"XY",[o.length])}},4774(t,e,i){i.d(e,{Ay:()=>p,v7:()=>_});var n=i(915),s=i(4087),r=i(4120),o=i(4238),a=i(6173),l=i(9703),h=i(7622);const c=(0,l.vt)(),u=[NaN,NaN];class d extends r.A{constructor(){super(),this.extent_=(0,n.S5)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,o.B4)((t,e,i)=>{if(!i)return this.getSimplifiedGeometry(e);const n=this.clone();return n.applyTransform(i),n.getSimplifiedGeometry(e)})}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return(0,s.b0)()}closestPointXY(t,e,i,n){return(0,s.b0)()}containsXY(t,e){return 0===this.closestPointXY(t,e,u,Number.MIN_VALUE)}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return(0,s.b0)()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&(0,n.aZ)(t),this.extentRevision_=this.getRevision()}return(0,n.$u)(this.extent_,t)}rotate(t,e){(0,s.b0)()}scale(t,e,i){(0,s.b0)()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return(0,s.b0)()}getType(){return(0,s.b0)()}applyTransform(t){(0,s.b0)()}intersectsExtent(t){return(0,s.b0)()}translate(t,e){(0,s.b0)()}transform(t,e){const i=(0,a.Jt)(t),s="tile-pixels"==i.getUnits()?function(t,s,r){const o=i.getExtent(),u=i.getWorldExtent(),d=(0,n.Oq)(u)/(0,n.Oq)(o);(0,l.Zz)(c,u[0],u[3],d,-d,0,0,0);const g=(0,h.Rc)(t,0,t.length,r,c,s),f=(0,a.RG)(i,e);return f?f(g,g,r):g}:(0,a.RG)(i,e);return this.applyTransform(s),this}}const g=d;function f(t){let e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function _(t,e,i){const n=t.getFlatCoordinates();if(!n)return null;const s=t.getStride();return(0,h.Rc)(n,0,n.length,s,e,i)}const p=class extends g{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(t){return(0,n.Vy)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return(0,s.b0)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getSimplifiedGeometryInternal(t){return this}getStride(){return this.stride}setFlatCoordinates(t,e){this.stride=f(t),this.layout=t,this.flatCoordinates=e}setCoordinates(t,e){(0,s.b0)()}setLayout(t,e,i){let n;if(t)n=f(t);else{for(let t=0;t<i;++t){if(0===e.length)return this.layout="XY",void(this.stride=2);e=e[0]}n=e.length,t=function(t){let e;return 2==t?e="XY":3==t?e="XYZ":4==t&&(e="XYZM"),e}(n)}this.layout=t,this.stride=n}applyTransform(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith("XYZ")?3:2,this.stride),this.changed())}rotate(t,e){const i=this.getFlatCoordinates();if(i){const n=this.getStride();(0,h.e$)(i,0,i.length,n,t,e,i),this.changed()}}scale(t,e,i){void 0===e&&(e=t),i||(i=(0,n.q1)(this.getExtent()));const s=this.getFlatCoordinates();if(s){const n=this.getStride();(0,h.hs)(s,0,s.length,n,t,e,i,s),this.changed()}}translate(t,e){const i=this.getFlatCoordinates();if(i){const n=this.getStride();(0,h.Tl)(i,0,i.length,n,t,e,i),this.changed()}}}},2845(t,e,i){i.d(e,{a_:()=>r,t7:()=>s,zb:()=>o});var n=i(915);function s(t,e,i,s,o){return!(0,n.sB)(o,function(n){return!r(t,e,i,s,n[0],n[1])})}function r(t,e,i,n,s,r){let o=0,a=t[i-n],l=t[i-n+1];for(;e<i;e+=n){const i=t[e],n=t[e+1];l<=r?n>r&&(i-a)*(r-l)-(s-a)*(n-l)>0&&o++:n<=r&&(i-a)*(r-l)-(s-a)*(n-l)<0&&o--,a=i,l=n}return 0!==o}function o(t,e,i,n,s,o){if(0===i.length)return!1;if(!r(t,e,i[0],n,s,o))return!1;for(let e=1,a=i.length;e<a;++e)if(r(t,i[e-1],i[e],n,s,o))return!1;return!0}},2497(t,e,i){function n(t,e,i,n){for(let n=0,s=i.length;n<s;++n)t[e++]=i[n];return e}function s(t,e,i,n){for(let s=0,r=i.length;s<r;++s){const r=i[s];for(let i=0;i<n;++i)t[e++]=r[i]}return e}function r(t,e,i,n,r){r=r||[];let o=0;for(let a=0,l=i.length;a<l;++a){const l=s(t,e,i[a],n);r[o++]=l,e=l}return r.length=o,r}i.d(e,{KG:()=>r,_n:()=>n,z2:()=>s})},6361(t,e,i){function n(t,e,i,n,s){s=void 0!==s?s:[];let r=0;for(let o=e;o<i;o+=n)s[r++]=t.slice(o,o+n);return s.length=r,s}function s(t,e,i,s,r){r=void 0!==r?r:[];let o=0;for(let a=0,l=i.length;a<l;++a){const l=i[a];r[o++]=n(t,e,l,s,r[o]),e=l}return r.length=o,r}function r(t,e,i,n,r){r=void 0!==r?r:[];let o=0;for(let a=0,l=i.length;a<l;++a){const l=i[a];r[o++]=1===l.length&&l[0]===e?[]:s(t,e,l,n,r[o]),e=l[l.length-1]}return r.length=o,r}i.d(e,{Dz:()=>r,cD:()=>s,n2:()=>n})},2616(t,e,i){i.d(e,{J:()=>r,p:()=>o});var n=i(6514),s=i(2845);function r(t,e,i,r,o,a,l){let h,c,u,d,g,f,_;const p=o[a+1],m=[];for(let n=0,s=i.length;n<s;++n){const s=i[n];for(d=t[s-r],f=t[s-r+1],h=e;h<s;h+=r)g=t[h],_=t[h+1],(p<=f&&_<=p||f<=p&&p<=_)&&(u=(p-f)/(_-f)*(g-d)+d,m.push(u)),d=g,f=_}let y=NaN,v=-1/0;for(m.sort(n.V_),d=m[0],h=1,c=m.length;h<c;++h){g=m[h];const n=Math.abs(g-d);n>v&&(u=(d+g)/2,(0,s.zb)(t,e,i,r,u,p)&&(y=u,v=n)),d=g}return isNaN(y)&&(y=o[a]),l?(l.push(y,p,v),l):[y,p,v]}function o(t,e,i,n,s){let o=[];for(let a=0,l=i.length;a<l;++a){const l=i[a];o=r(t,e,l,n,s,2*a,o),e=l[l.length-1]}return o}},3386(t,e,i){i.d(e,{gp:()=>r,sj:()=>o,HT:()=>a});var n=i(915),s=i(2845);function r(t,e,i,s,r,o){return o=o??(0,n.R8)((0,n.S5)(),t,e,i,s),!!(0,n.HY)(r,o)&&(o[0]>=r[0]&&o[2]<=r[2]||o[1]>
vendor: 9,383 bytes, line 1
1=r[1]&&o[3]<=r[3]||function(t,e,i,n,s){let r;for(e+=n;e<i;e+=n)if(r=s(t.slice(e-n,e),t.slice(e,e+n)),r)return r;return!1}(t,e,i,s,function(t,e){return(0,n.Mx)(r,t,e)}))}function o(t,e,i,n,o){return!!(r(t,e,i,n,o)||(0,s.a_)(t,e,i,n,o[0],o[1])||(0,s.a_)(t,e,i,n,o[0],o[3])||(0,s.a_)(t,e,i,n,o[2],o[1])||(0,s.a_)(t,e,i,n,o[2],o[3]))}function a(t,e,i,n,a){if(!o(t,e,i[0],n,a))return!1;if(1===i.length)return!0;for(let e=1,o=i.length;e<o;++e)if((0,s.t7)(t,i[e-1],i[e],n,a)&&!r(t,i[e-1],i[e],n,a))return!1;return!0}},3402(t,e,i){function n(t,e,i,n){for(;e<i-n;){for(let s=0;s<n;++s){const r=t[e+s];t[e+s]=t[i-n+s],t[i-n+s]=r}e+=n,i-=n}}function s(t,e,i,n){let s=0,r=t[i-n],o=t[i-n+1];for(;e<i;e+=n){const i=t[e],n=t[e+1];s+=(i-r)*(n+o),r=i,o=n}return 0===s?void 0:s>0}function r(t,e,i,n,r){r=void 0!==r&&r;for(let o=0,a=i.length;o<a;++o){const a=i[o],l=s(t,e,a,n);if(0===o){if(r&&l||!r&&!l)return!1}else if(r&&!l||!r&&l)return!1;e=a}return!0}function o(t,e,i,r,o){o=void 0!==o&&o;for(let a=0,l=i.length;a<l;++a){const l=i[a],h=s(t,e,l,r);(0===a?o&&h||!o&&!h:o&&!h||!o&&h)&&n(t,e,l,r),e=l}return e}function a(t,e){const i=[];let n,r=0,o=0;for(let a=0,l=e.length;a<l;++a){const l=e[a],h=s(t,r,l,2);if(void 0===n&&(n=h),h===n)i.push(e.slice(o,a+1));else{if(0===i.length)continue;i[i.length-1].push(e[o])}o=a+1,r=l}return i}i.d(e,{yJ:()=>a,PA:()=>r,ug:()=>o})},3671(t,e,i){i.d(e,{AL:()=>r,Hg:()=>l,P4:()=>s,n$:()=>o});var n=i(1597);function s(t,e,i,s,r,o,a){const l=(i-e)/s;if(l<3){for(;e<i;e+=s)o[a++]=t[e],o[a++]=t[e+1];return a}const h=new Array(l);h[0]=1,h[l-1]=1;const c=[e,i-s];let u=0;for(;c.length>0;){const i=c.pop(),o=c.pop();let a=0;const l=t[o],d=t[o+1],g=t[i],f=t[i+1];for(let e=o+s;e<i;e+=s){const i=t[e],s=t[e+1],r=(0,n.Q1)(i,s,l,d,g,f);r>a&&(u=e,a=r)}a>r&&(h[(u-e)/s]=1,o+s<u&&c.push(o,u),u+s<i&&c.push(u,i))}for(let i=0;i<l;++i)h[i]&&(o[a++]=t[e+i*s],o[a++]=t[e+i*s+1]);return a}function r(t,e,i,n,r,o,a,l){for(let h=0,c=i.length;h<c;++h){const c=i[h];a=s(t,e,c,n,r,o,a),l.push(a),e=c}return a}function o(t,e){return e*Math.round(t/e)}function a(t,e,i,n,s,r,a){if(e==i)return a;let l,h,c=o(t[e],s),u=o(t[e+1],s);e+=n,r[a++]=c,r[a++]=u;do{if(l=o(t[e],s),h=o(t[e+1],s),(e+=n)==i)return r[a++]=l,r[a++]=h,a}while(l==c&&h==u);for(;e<i;){const i=o(t[e],s),d=o(t[e+1],s);if(e+=n,i==l&&d==h)continue;const g=l-c,f=h-u,_=i-c,p=d-u;g*p==f*_&&(g<0&&_<g||g==_||g>0&&_>g)&&(f<0&&p<f||f==p||f>0&&p>f)?(l=i,h=d):(r[a++]=l,r[a++]=h,c=l,u=h,l=i,h=d)}return r[a++]=l,r[a++]=h,a}function l(t,e,i,n,s,r,o,l){for(let h=0,c=i.length;h<c;++h){const c=i[h];o=a(t,e,c,n,s,r,o),l.push(o),e=c}return o}},7622(t,e,i){function n(t,e,i,n,s,r,o){r=r||[],o=o||2;let a=0;for(let l=e;l<i;l+=n){const e=t[l],i=t[l+1];r[a++]=s[0]*e+s[2]*i+s[4],r[a++]=s[1]*e+s[3]*i+s[5];for(let e=2;e<o;e++)r[a++]=t[l+e]}return r&&r.length!=a&&(r.length=a),r}function s(t,e,i,n,s,r,o){o=o||[];const a=Math.cos(s),l=Math.sin(s),h=r[0],c=r[1];let u=0;for(let s=e;s<i;s+=n){const e=t[s]-h,i=t[s+1]-c;o[u++]=h+e*a-i*l,o[u++]=c+e*l+i*a;for(let e=s+2;e<s+n;++e)o[u++]=t[e]}return o&&o.length!=u&&(o.length=u),o}function r(t,e,i,n,s,r,o,a){a=a||[];const l=o[0],h=o[1];let c=0;for(let o=e;o<i;o+=n){const e=t[o]-l,i=t[o+1]-h;a[c++]=l+s*e,a[c++]=h+r*i;for(let e=o+2;e<o+n;++e)a[c++]=t[e]}return a&&a.length!=c&&(a.length=c),a}function o(t,e,i,n,s,r,o){o=o||[];let a=0;for(let l=e;l<i;l+=n){o[a++]=t[l]+s,o[a++]=t[l+1]+r;for(let e=l+2;e<l+n;++e)o[a++]=t[e]}return o&&o.length!=a&&(o.length=a),o}i.d(e,{Rc:()=>n,Tl:()=>o,e$:()=>s,hs:()=>r})},7771(t,e,i){const n="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",s=(n.includes("safari")&&!n.includes("chrom")&&(n.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(n)),n.includes("webkit")&&!n.includes("edge")),r=n.includes("macintosh"),o="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,a="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,l="undefined"!=typeof Image&&Image.prototype.decode,h="function"==typeof createImageBitmap,c=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return t}();i.d(e,["DT",0,l,"FT",0,c,"Wl",0,a,"XM",0,h,"cr",0,o,"ew",0,r,"j",0,s])},6739(t,e,i){i.d(e,{Ay:()=>h,e4:()=>a,D2:()=>l});var n=i(4120),s=i(3474);const r="active";class o extends n.A{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(r)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(r,t)}setMap(t){this.map_=t}}function a(t,e,i){const n=t.getCenterInternal();if(n){const r=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:void 0!==i?i:250,easing:s.sn,center:t.getConstrainedCenter(r)})}}function l(t,e,i,n){const r=t.getZoom();if(void 0===r)return;const o=t.getConstrainedZoom(r+e),a=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:a,anchor:i,duration:void 0!==n?n:250,easing:s.vT})}const h=o},8751(t,e,i){var n=i(9438),s=i(6837),r=i(8704),o=i(1597),a=i(6739);class l extends a.Ay{constructor(t){super(t=t||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==t.maxDelta?t.maxDelta:1,this.duration_=void 0!==t.duration?t.duration:250,this.timeout_=void 0!==t.timeout?t.timeout:80,this.useAnchor_=void 0===t.useAnchor||t.useAnchor,this.constrainResolution_=void 0!==t.constrainResolution&&t.constrainResolution;const e=t.condition?t.condition:r.Gk;this.condition_=t.onFocusOnly?(0,r.Q7)(r.eL,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300,this.ctrlKeyPressed_=!1,this.ctrlKeyListenerKeys_=[]}setMap(t){if(this.ctrlKeyListenerKeys_.forEach(n.JH),this.ctrlKeyListenerKeys_.length=0,this.ctrlKeyPressed_=!1,super.setMap(t),t){const e=t.getOwnerDocument();this.ctrlKeyListenerKeys_.push((0,n.KT)(e,"keydown",t=>{"Control"===t.key&&(this.ctrlKeyPressed_=!0)}),(0,n.KT)(e,"keyup",t=>{"Control"===t.key&&(this.ctrlKeyPressed_=!1)}))}}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();if(!t)return;const e=t.getView(),i=this.lastDelta_?this.lastDelta_>0?1:-1:0;e.endInteraction(this.constrainResolution_||e.getConstrainResolution()?100:void 0,i,this.lastAnchor_?t.getCoordinateFromPixel(this.lastAnchor_):null)}handleEvent(t){if(!this.condition_(t))return!0;if(t.type!==s.A.WHEEL)return!0;const e=t.map,i=t.originalEvent;i.preventDefault();const n=i.ctrlKey&&!this.ctrlKeyPressed_;i.ctrlKey||(this.ctrlKeyPressed_=!1),this.useAnchor_&&(this.lastAnchor_=t.pixel);let r=i.deltaY;switch(i.deltaMode){case WheelEvent.DOM_DELTA_LINE:r*=40;break;case WheelEvent.DOM_DELTA_PAGE:r*=300}if(0===r)return!1;this.lastDelta_=r;const o=Date.now();void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");const a=e.getView();if("trackpad"===this.mode_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(a.getAnimating()&&a.cancelAnimations(),a.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),n&&(r*=3),a.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_?e.getCoordinateFromPixel(this.lastAnchor_):null),this.startTime_=o,!1;this.totalDelta_+=r;const l=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,e),l),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let i=-(0,o.qE)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),(0,a.D2)(e,i,this.lastAnchor_?t.getCoordinateFromPixel(this.lastAnchor_):null,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}}const h=l;i.d(e,["A",0,h])},2001(t,e,i){i.d(e,{N:()=>z});var n=i(71);const s=class{constructor(t,e,i){this.decay_=t,this.minVelocity_=e,this.delay_=i,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;let i=e-3;for(;i>0&&this.points_[i+2]>t;)i-=3;const n=this.points_[e+2]-this.points_[i+2];if(n<1e3/60)return!1;const s=this.points_[e]-this.points_[i],r=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(r,s),this.initialVelocity_=Math.sqrt(s*s+r*r)/n,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}};var r=i(3445),o=i(6739);class a extends o.Ay{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:250}handleEvent(t){let e=!1;if(t.type==r.A.DBLCLICK){const i=t.originalEvent,n=t.map,s=t.coordinate,r=i.shiftKey?-this.delta_:this.delta_,a=n.getView();(0,o.D2)(a,r,s,this.duration_),i.preventDefault(),e=!0}return!e}}const l=a;
1var h=i(6933),c=i(3474),u=i(8704),d=i(4238);class g extends o.Ay{constructor(t){super(t=t||{}),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==r.A.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==r.A.POINTERUP){const e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==r.A.POINTERDOWN){const i=this.handleDownEvent(t);this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==r.A.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}}function f(t){const e=t.length;let i=0,n=0;for(let s=0;s<e;s++)i+=t[s].clientX,n+=t[s].clientY;return{clientX:i/e,clientY:n/e}}const _=g,p=class extends _{constructor(t){super({stopDown:d.W8}),t=t||{},this.kinetic_=t.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const e=t.condition?t.condition:(0,u.Q7)(u.TS,u.fs);this.condition_=t.onFocusOnly?(0,u.Q7)(u.eL,e):e,this.noKinetic_=!1}handleDragEvent(t){const e=t.map;this.panning_||(this.panning_=!0,e.getView().beginInteraction());const i=this.targetPointers,n=e.getEventPixel(f(i));if(i.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){const e=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],i=t.map.getView();(0,h.hs)(e,i.getResolution()),(0,h.e$)(e,i.getRotation()),i.adjustCenterInternal(e)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=i.length,t.originalEvent.preventDefault()}handleUpEvent(t){const e=t.map,i=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const t=this.kinetic_.getDistance(),n=this.kinetic_.getAngle(),s=i.getCenterInternal(),r=e.getPixelFromCoordinateInternal(s),o=e.getCoordinateFromPixelInternal([r[0]-t*Math.cos(n),r[1]-t*Math.sin(n)]);i.animateInternal({center:i.getConstrainedCenter(o),duration:500,easing:c.vT})}return this.panning_&&(this.panning_=!1,i.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(t){if(this.targetPointers.length>0&&this.condition_(t)){const e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}};var m=i(4498);const y=class extends _{constructor(t){t=t||{},super({stopDown:d.W8}),this.condition_=t.condition?t.condition:u.IO,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!(0,u.A4)(t))return;const e=t.map,i=e.getView();if(i.getConstraints().rotation===m.b8)return;const n=e.getSize(),s=t.pixel,r=Math.atan2(n[1]/2-s[1],s[0]-n[0]/2);if(void 0!==this.lastAngle_){const t=r-this.lastAngle_;i.adjustRotationInternal(-t)}this.lastAngle_=r}handleUpEvent(t){return!(0,u.A4)(t)||(t.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(t){return!!(0,u.A4)(t)&&(!(!(0,u.at)(t)||!this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))}};var v=i(1685),x=i(25),E=i(5296);class S extends x.A{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const t=this.startPixel_,e=this.endPixel_,i="px",n=this.element_.style;n.left=Math.min(t[0],e[0])+i,n.top=Math.min(t[1],e[1])+i,n.width=Math.abs(e[0]-t[0])+i,n.height=Math.abs(e[1]-t[1])+i}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){if(!this.map_)return;const t=this.startPixel_,e=this.endPixel_,i=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new E.Ay([i])}getGeometry(){return this.geometry_}}const w=S,C="boxcancel";class A extends v.Ay{constructor(t,e,i){super(t),this.coordinate=e,this.mapBrowserEvent=i}}const R=class extends _{constructor(t){super(),this.on,this.once,this.un,t=t??{},this.box_=new w(t.className||"ol-dragbox"),this.minArea_=t.minArea??
164,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition??u.at,this.boxEndCondition_=t.boxEndCondition??this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,i){const n=i[0]-e[0],s=i[1]-e[1];return n*n+s*s>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.startPixel_&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new A("boxdrag",t.coordinate,t)))}handleUpEvent(t){if(!this.startPixel_)return!1;const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new A(e?"boxend":C,t.coordinate,t)),this.box_.setMap(null),this.startPixel_=null,!1}handleDownEvent(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new A("boxstart",t.coordinate,t)),!0)}onBoxEnd(t){}setActive(t){t||(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new A(C,this.startPixel_,null)),this.startPixel_=null)),super.setActive(t)}setMap(t){this.getMap()&&(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new A(C,this.startPixel_,null)),this.startPixel_=null)),super.setMap(t)}},I=class extends R{constructor(t){super({condition:(t=t||{}).condition?t.condition:u.Kg,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=void 0!==t.duration?t.duration:200,this.out_=void 0!==t.out&&t.out}onBoxEnd(t){const e=this.getMap().getView();let i=this.getGeometry();if(this.out_){const t=e.rotatedExtentForGeometry(i),n=e.getResolutionForExtentInternal(t),s=e.getResolution()/n;i=i.clone(),i.scale(s*s)}e.fitInternal(i,{duration:this.duration_,easing:c.vT})}};var T=i(6837);const M="ArrowLeft",b="ArrowRight",P="ArrowDown";class O extends o.Ay{constructor(t){super(),t=t||{},this.defaultCondition_=function(t){return(0,u.TS)(t)&&(0,u.tE)(t)},this.condition_=void 0!==t.condition?t.condition:this.defaultCondition_,this.duration_=void 0!==t.duration?t.duration:100,this.pixelDelta_=void 0!==t.pixelDelta?t.pixelDelta:128}handleEvent(t){let e=!1;if(t.type==T.A.KEYDOWN){const i=t.originalEvent,n=i.key;if(this.condition_(t)&&(n==P||n==M||n==b||"ArrowUp"==n)){const s=t.map.getView(),r=s.getResolution()*this.pixelDelta_;let a=0,l=0;n==P?l=-r:n==M?a=-r:n==b?a=r:l=r;const c=[a,l];(0,h.e$)(c,s.getRotation()),(0,o.e4)(s,c,this.duration_),i.preventDefault(),e=!0}}return!e}}const L=O;class D extends o.Ay{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(t){return!(0,u.GB)(t)&&(0,u.tE)(t)},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:100}handleEvent(t){let e=!1;if(t.type==T.A.KEYDOWN||t.type==T.A.KEYPRESS){const i=t.originalEvent,n=i.key;if(this.condition_(t)&&("+"===n||"-"===n)){const s=t.map,r="+"===n?this.delta_:-this.delta_,a=s.getView();(0,o.D2)(a,r,void 0,this.duration_),i.preventDefault(),e=!0}}return!e}}const F=D;var k=i(8751);const N=class extends _{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=d.W8),super(e),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==t.threshold?t.threshold:.3,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){let e=0;const i=this.targetPointers[0],n=this.targetPointers[1],s=Math.atan2(n.clientY-i.clientY,n.clientX-i.clientX);if(void 0!==this.lastAngle_){const t=s-this.lastAngle_;this.rotationDelta_+=t,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=t}this.lastAngle_=s;const r=t.map,o=r.getView();o.getConstraints().rotation!==m.b8&&(this.anchor_=r.getCoordinateFromPixelInternal(r.getEventPixel(f(this.targetPointers))),this.rotating_&&(r.render(),o.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){return!(this.targetPointers.length<2)||(t.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(t){if(this.targetPointers.length>=2){const 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}},G=class extends _{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=d.W8),super(e),this.anchor_=null,this.duration_=void 0!==t.duration?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let e=1;const i=this.targetPointers[0],n=this.targetPointers[1],s=i.clientX-n.clientX,r=i.clientY-n.clientY,o=Math.sqrt(s*s+r*r);void 0!==this.lastDistance_&&(e=this.lastDistance_/o),this.lastDistance_=o;const a=t.map,l=a.getView();1!=e&&(this.lastScaleDelta_=e),this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(f(this.targetPointers))),a.render(),l.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const e=t.map.getView(),i=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,i),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}};function z(t){t=t||{};const e=new n.A,i=new s(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&e.push(new y),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&e.push(new l({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&e.push(new p({onFocusOnly:t.onF
1ocusOnly,kinetic:i})),(void 0===t.pinchRotate||t.pinchRotate)&&e.push(new N),(void 0===t.pinchZoom||t.pinchZoom)&&e.push(new G({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(e.push(new L),e.push(new F({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&e.push(new k.A({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&e.push(new I({duration:t.zoomDuration})),e}},8620(t,e,i){var n=i(4120),s=i(588),r=i(1597),o=i(4087),a=i(5332);class l extends n.A{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);"object"==typeof t.properties&&(delete e.properties,Object.assign(e,t.properties)),e[a.A.OPACITY]=void 0!==t.opacity?t.opacity:1,(0,s.v)("number"==typeof e[a.A.OPACITY],"Layer opacity must be a number"),e[a.A.VISIBLE]=void 0===t.visible||t.visible,e[a.A.Z_INDEX]=t.zIndex,e[a.A.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,e[a.A.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,e[a.A.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,e[a.A.MAX_ZOOM]=void 0!==t.maxZoom?t.maxZoom:1/0,this.className_=void 0!==e.className?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:void 0===t||t},i=this.getZIndex();return e.opacity=(0,r.qE)(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==i||e.managed?i: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}getLayersArray(t){return(0,o.b0)()}getLayerStatesArray(t){return(0,o.b0)()}getExtent(){return this.get(a.A.EXTENT)}getMaxResolution(){return this.get(a.A.MAX_RESOLUTION)}getMinResolution(){return this.get(a.A.MIN_RESOLUTION)}getMinZoom(){return this.get(a.A.MIN_ZOOM)}getMaxZoom(){return this.get(a.A.MAX_ZOOM)}getOpacity(){return this.get(a.A.OPACITY)}getSourceState(){return(0,o.b0)()}getVisible(){return this.get(a.A.VISIBLE)}getZIndex(){return this.get(a.A.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(a.A.EXTENT,t)}setMaxResolution(t){this.set(a.A.MAX_RESOLUTION,t)}setMinResolution(t){this.set(a.A.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(a.A.MAX_ZOOM,t)}setMinZoom(t){this.set(a.A.MIN_ZOOM,t)}setOpacity(t){(0,s.v)("number"==typeof t,"Layer opacity must be a number"),this.set(a.A.OPACITY,t)}setVisible(t){this.set(a.A.VISIBLE,t)}setZIndex(t){this.set(a.A.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const h=l;i.d(e,["A",0,h])},7600(t,e,i){i.d(e,{A:()=>fe});var n=i(2375),s=i(9352),r=i(6514),o=i(6782);let a=0;const l=1<<a++,h=1<<a++,c=1<<a++,u=1<<a++,d=1<<a++,g=1<<a++,f=Math.pow(2,6)-1,_={[l]:"boolean",[h]:"number",[c]:"string",[u]:"color",[d]:"number[]",[g]:"size"},p=Object.keys(_).map(Number).sort(r.V_);function m(t){const e=[];for(const i of p)y(t,i)&&e.push(_[i]);return 0===e.length?"untyped":e.length<3?e.join(" or "):e.slice(0,-1).join(", ")+", or "+e[e.length-1]}function y(t,e){return(t&e)===e}function v(t,e){return!!(t&e)}function x(t,e){return t===e}class E{constructor(t,e){if(!function(t){return t in _}(t))throw new Error(`literal expressions must have a specific type, got ${m(t)}`);this.type=t,this.value=e}}class S{constructor(t,e,...i){this.type=t,this.operator=e,this.args=i}}function w(t){return{variables:new Map,properties:new Map,featureId:!1,geometryType:!1,mCoordinate:!1,mapState:!1,inputVariables:t}}function C(t,e,i){switch(typeof t){case"boolean":if(x(e,c))return new E(c,t?"true":"false");if(!y(e,l))throw new Error(`got a boolean, but expected ${m(e)}`);return new E(l,t);case"number":if(x(e,g))return new E(g,(0,o.xq)(t));if(x(e,l))return new E(l,!!t);if(x(e,c))return new E(c,t.toString());if(!y(e,h))throw new Error(`got a number, but expected ${m(e)}`);return new E(h,t);case"string":if(x(e,u))return new E(u,(0,s.sH)(t));if(x(e,l))return new E(l,!!t);if(!y(e,c))throw new Error(`got a string, but expected ${m(e)}`);return new E(c,t)}if(!Array.isArray(t))throw new Error("expression must be an array or a primitive value");if(0===t.length)throw new Error("empty expression");
vendor: 8,099 bytes, line 1
1if("string"==typeof t[0])return function(t,e,i){const n=t[0],s=yt[n];if(!s)throw new Error(`unknown operator: ${n}`);return s(t,e,i)}(t,e,i);for(const e of t)if("number"!=typeof e)throw new Error("expected an array of numbers");if(x(e,g)){if(2!==t.length)throw new Error(`expected an array of two values for a size, got ${t.length}`);return new E(g,t)}if(x(e,u)){if(3===t.length)return new E(u,[...t,1]);if(4===t.length)return new E(u,t);throw new Error(`expected an array of 3 or 4 values for a color, got ${t.length}`)}if(!y(e,d))throw new Error(`got an array of numbers, but expected ${m(e)}`);return new E(d,t)}const A="get",R="var",I="concat",T="geometry-type",M="line-metric",b="any",P="all",O="!",L="resolution",D="zoom",F="time",k="==",N="!=",G=">",z=">=",W="<",K="<=",Y="*",X="/",B="+",V="-",Z="clamp",j="%",H="^",q="abs",U="floor",$="ceil",J="round",Q="sin",tt="cos",et="atan",it="sqrt",nt="match",st="between",rt="interpolate",ot="coalesce",at="case",lt="in",ht="number",ct="string",ut="array",dt="color",gt="id",ft="band",_t="palette",pt="to-string",mt="has",yt={[A]:It(St(1,1/0),vt),[R]:function(t,e,i){const n=t[1];if("string"!=typeof n)throw new Error("expected a string argument for var operation");let s=e;const r=i.inputVariables?.[n];if(void 0!==r){const t=C(r,f,i);if(!(t instanceof E))throw new Error(`style variables should only be literal values (no expressions!), variable name: ${n}`);let o=t.type;if("string"==typeof r&&v(s,u)&&!v(s,c)?o=u:Array.isArray(r)&&2===r.length&&v(s,g)&&!v(s,d)&&(o=g),s&=o,0===s)throw new Error(`the type expected from the var operator (${m(e)}) did not have any overlap with the type of the corresponding style variables (${m(o)}), variable name: ${n}`)}if(i.variables.has(n)){const t=i.variables.get(n);if(s&=t,0===s)throw new Error(`a new type expected from the var operator (${m(e)}) did not have any overlap with the previous type expected for it (${m(t)}), variable name: ${n}`)}return i.variables.set(n,s),new S(s,"var",new E(c,n))},[mt]:It(St(1,1/0),vt),[gt]:It(function(t,e,i){i.featureId=!0},Et),[I]:It(St(2,1/0),Ct(c)),[T]:It(function(t,e,i){i.geometryType=!0},Et),[M]:It(function(t,e,i){i.mCoordinate=!0},Et),[L]:It(xt,Et),[D]:It(xt,Et),[F]:It(xt,Et),[b]:It(St(2,1/0),Ct(l)),[P]:It(St(2,1/0),Ct(l)),[O]:It(St(1,1),Ct(l)),[k]:It(St(2,2),At()),[N]:It(St(2,2),At()),[G]:It(St(2,2),Ct(h)),[z]:It(St(2,2),Ct(h)),[W]:It(St(2,2),Ct(h)),[K]:It(St(2,2),Ct(h)),[Y]:It(St(2,1/0),wt),[ot]:It(St(2,1/0),wt),[X]:It(St(2,2),Ct(h)),[B]:It(St(2,1/0),Ct(h)),[V]:It(St(2,2),Ct(h)),[Z]:It(St(3,3),Ct(h)),[j]:It(St(2,2),Ct(h)),[H]:It(St(2,2),Ct(h)),[q]:It(St(1,1),Ct(h)),[U]:It(St(1,1),Ct(h)),[$]:It(St(1,1),Ct(h)),[J]:It(St(1,1),Ct(h)),[Q]:It(St(1,1),Ct(h)),[tt]:It(St(1,1),Ct(h)),[et]:It(St(1,2),Ct(h)),[it]:It(St(1,1),Ct(h)),[nt]:It(St(4,1/0),Rt,function(t,e,i){const n=t.length-1,s=C(t[t.length-1],e,i);let r=c|h|l;const o=new Array(n-2);for(let e=0;e<n-2;e+=2){try{r&=C(t[e+2],r,i).type}catch(t){throw new Error(`failed to parse argument ${e+1} of match expression: ${t.message}`)}if(0===r)throw new Error("no common type was found among the arguments of match expression")}for(let e=0;e<n-2;e+=2){try{const n=C(t[e+2],r,i);o[e]=n}catch(t){throw new Error(`failed to parse argument ${e+1} of match expression: ${t.message}`)}try{const n=C(t[e+3],s.type,i);o[e+1]=n}catch(t){throw new Error(`failed to parse argument ${e+2} of match expression: ${t.message}`)}}return[C(t[1],r,i),...o,s]}),[st]:It(St(3,3),Ct(h)),[rt]:It(St(6,1/0),Rt,function(t,e,i){const n=t[1];let s;switch(n[0]){case"linear":s=1;break;case"exponential":const t=n[1];if("number"!=typeof t||t<=0)throw new Error(`expected a number base for exponential interpolation, got ${JSON.stringify(t)} instead`);s=t;break;default:throw new Error(`invalid interpolation type: ${JSON.stringify(n)}`)}const r=new E(h,s);let o;try{o=C(t[2],h,i)}catch(t){throw new Error(`failed to parse argument 1 in interpolate expression: ${t.message}`)}const a=new Array(t.length-3);for(let n=0;n<a.length;n+=2){try{const e=C(t[n+3],h,i);a[n]=e}catch(t){throw new Error(`failed to parse argument ${n+2} for interpolate expression: ${t.message}`)}try{const s=C(t[n+4],e,i);a[n+1]=s}catch(t){throw new Error(`failed to parse argument ${n+3} for interpolate expression: ${t.message}`)}}return[r,o,...a]}),[at]:It(St(3,1/0),function(t,e,i){const n=t[0],s=t.length-1;if(s%2==0)throw new Error(`expected an odd number of arguments for ${n}, got ${s} instead`)},function(t,e,i){const n=C(t[t.length-1],e,i),s=new Array(t.length-1);for(let e=0;e<s.length-1;e+=2){try{const n=C(t[e+1],l,i);s[e]=n}catch(t){throw new Error(`failed to parse argument ${e} of case expression: ${t.message}`)}try{const r=C(t[e+2],n.type,i);s[e+1]=r}catch(t){throw new Error(`failed to parse argument ${e+1} of case expression: ${t.message}`)}}return s[s.length-1]=n,s}),[lt]:It(St(2,2),function(t,e,i){let n,s=t[2];if(!Array.isArray(s))throw new Error('the second argument for the "in" operator must be an array');if("literal"===s[0]){if(s=s[1],!Array.isArray(s))throw new Error('failed to parse "in" expression: the literal operator must be followed by an array')}else if("string"==typeof s[0])throw new Error('for the "in" operator, a string array should be wrapped in a "literal" operator to disambiguate from expressions');n="string"==typeof s[0]?c:h;const r=new Array(s.length);for(let t=0;t<r.length;t++)try{const e=C(s[t],n,i);r[t]=e}catch(e){throw new Error(`failed to parse haystack item ${t} for "in" expression: ${e.message}`)}return[C(t[1],n,i),...r]}),[ht]:It(St(1,1/0),Ct(f)),[ct]:It(St(1,1/0),Ct(f)),[ut]:It(St(1,1/0),Ct(h)),[dt]:It(St(1,4),Ct(h)),[ft]:It(St(1,3),Ct(h)),[_t]:It(St(2,2),function(t,e,i){let n;try{n=C(t[1],h,i)}catch(t){throw new Error(`failed to parse first argument in palette expression: ${t.message}`)}const s=t[2];if(!Array.isArray(s))throw new Error("the second argument of palette must be an array");const r=new Array(s.length);for(let t=0;t<r.length;t++){let e;try{e=C(s[t],u,i)}catch(e){throw new Error(`failed to parse color at index ${t} in palette expression: ${e.message}`)}if(!(e instanceof E))throw new Error(`the palette color at index ${t} must be a literal value`);r[t]=e}return[n,...r]}),[pt]:It(St(1,1),Ct(l|h|c|u))};function vt(t,e,i){const n=t.length-1,s=new Array(n);for(let r=0;r<n;++r){const n=t[r+1];switch(typeof n){case"number":s[r]=new E(h,n);break;case"string":s[r]=new E(c,n);break;default:throw new Error(`expected a string key or numeric array index for a get operation, got ${n}`)}0===r&&i.properties.set(String(n),e)}return s}function xt(t,e,i){i.mapState=!0}function Et(t,e,i){const n=t[0];if(1!==t.length)throw new Error(`expected no arguments for ${n} operation`);return[]}function St(t,e){return function(i,n,s){const r=i[0],o=i.length-1;if(t===e){if(o!==t)throw new Error(`expected ${t} argument${1===t?"":"s"} for ${r}, got ${o}`)}else if(o<t||o>e)throw new Error(`expected ${e===1/0?`${t} or more`:`${t} to ${e}`} arguments for ${r}, got ${o}`)}}function wt(t,e,i){const n=t.length-1,s=new Array(n);for(let r=0;r<n;++r){const n=C(t[r+1],e,i);s[r]=n}return s}function Ct(t){return function(e,i,n){const s=e.length-1,r=new Array(s);for(let i=0;i<s;++i){const s=C(e[i+1],t,n);r[i]=s}return r}}function At(){return function(t,e,i){const n=t[0],s=t.length-1,r=new Array(s);let o=f;for(let e=0;e<s;++e)o&=C(t[e+1],o,i).type;if(0===o)throw new Error(`no common type was found among the arguments of ${n}`);for(let e=0;e<s;++e){const n=C(t[e+1],o,i);r[e]=n}return r}}function Rt(t,e,i){const n=t[0],s=t.length-1;if(s%2==1)throw new Error(`expected an even number of arguments for operation ${n}, got ${s} instead`)}function It(...t){return function(e,i,n){const s=e[0];let r;for(let s=0;s<t.length;s++){const o=t[s](e,i,n);if(s==t.length-1){if(!o)throw new Error("expected last argument validator to return the parsed args");r=o}}return new S(i,s,...r)}}function Tt(t){if(!t)return"";const e=t.getType();switch(e){case"Point":case"LineString":case"Polygon":return e;case"MultiPoint":case"MultiLineString":case"MultiPolygon":return e.substring(5);case"Circle":return"Polygon";
1case"GeometryCollection":return Tt(t.getGeometries()[0]);default:return""}}function Mt(t,e,i){return bt(C(t,e,i),i)}function bt(t,e){if(t instanceof E){if(t.type===u&&"string"==typeof t.value){const e=(0,s.sH)(t.value);return function(){return e}}return function(){return t.value}}const i=t.operator;switch(i){case ht:case ct:case ot:return function(t,e){const i=t.operator,n=t.args.length,s=new Array(n);for(let i=0;i<n;++i)s[i]=bt(t.args[i],e);switch(i){case ot:return t=>{for(let e=0;e<n;++e){const i=s[e](t);if(null!=i)return i}throw new Error("Expected one of the values to be non-null")};case ht:case ct:return t=>{for(let e=0;e<n;++e){const n=s[e](t);if(typeof n===i)return n}throw new Error(`Expected one of the values to be a ${i}`)};default:throw new Error(`Unsupported assertion operator ${i}`)}}(t,e);case A:case R:case mt:return function(t){const e=t.args[0].value;switch(t.operator){case A:return i=>{const n=t.args;let s=i.properties[e];for(let t=1,e=n.length;t<e;++t)s=s[n[t].value];return s};case R:return t=>t.variables[e];case mt:return i=>{const n=t.args;if(!(e in i.properties))return!1;let s=i.properties[e];for(let t=1,e=n.length;t<e;++t){const e=n[t].value;if(!s||!Object.hasOwn(s,e))return!1;s=s[e]}return!0};default:throw new Error(`Unsupported accessor operator ${t.operator}`)}}(t);case"id":return t=>t.featureId;case T:return t=>t.geometryType;case I:{const i=t.args.map(t=>bt(t,e));return t=>"".concat(...i.map(e=>e(t).toString()))}case L:return t=>t.resolution;case b:case P:case st:case lt:case"!":return function(t,e){const i=t.operator,n=t.args.length,s=new Array(n);for(let i=0;i<n;++i)s[i]=bt(t.args[i],e);switch(i){case b:return t=>{for(let e=0;e<n;++e)if(s[e](t))return!0;return!1};case P:return t=>{for(let e=0;e<n;++e)if(!s[e](t))return!1;return!0};case st:return t=>{const e=s[0](t),i=s[1](t),n=s[2](t);return e>=i&&e<=n};case lt:return t=>{const e=s[0](t);for(let i=1;i<n;++i)if(e===s[i](t))return!0;return!1};case"!":return t=>!s[0](t);default:throw new Error(`Unsupported logical operator ${i}`)}}(t,e);case k:case N:case"<":case K:case">":case z:return function(t,e){const i=t.operator,n=bt(t.args[0],e),s=bt(t.args[1],e);switch(i){case k:return t=>n(t)===s(t);case N:return t=>n(t)!==s(t);case"<":return t=>n(t)<s(t);case K:return t=>n(t)<=s(t);case">":return t=>n(t)>s(t);case z:return t=>n(t)>=s(t);default:throw new Error(`Unsupported comparison operator ${i}`)}}(t,e);case"*":case"/":case"+":case"-":case Z:case"%":case"^":case q:case U:case $:case J:case Q:case tt:case et:case it:return function(t,e){const i=t.operator,n=t.args.length,s=new Array(n);for(let i=0;i<n;++i)s[i]=bt(t.args[i],e);switch(i){case"*":return t=>{let e=1;for(let i=0;i<n;++i)e*=s[i](t);return e};case"/":return t=>s[0](t)/s[1](t);case"+":return t=>{let e=0;for(let i=0;i<n;++i)e+=s[i](t);return e};case"-":return t=>s[0](t)-s[1](t);case Z:return t=>{const e=s[0](t),i=s[1](t);if(e<i)return i;const n=s[2](t);return e>n?n:e};case"%":return t=>s[0](t)%s[1](t);case"^":return t=>Math.pow(s[0](t),s[1](t));case q:return t=>Math.abs(s[0](t));case U:return t=>Math.floor(s[0](t));case $:return t=>Math.ceil(s[0](t));case J:return t=>Math.round(s[0](t));case Q:return t=>Math.sin(s[0](t));case tt:return t=>Math.cos(s[0](t));case et:return 2===n?t=>Math.atan2(s[0](t),s[1](t)):t=>Math.atan(s[0](t));case it:return t=>Math.sqrt(s[0](t));default:throw new Error(`Unsupported numeric operator ${i}`)}}(t,e);case at:return function(t,e){const i=t.args.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=bt(t.args[s],e);return t=>{for(let e=0;e<i-1;e+=2)if(n[e](t))return n[e+1](t);return n[i-1](t)}}(t,e);case nt:return function(t,e){const i=t.args.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=bt(t.args[s],e);return t=>{const e=n[0](t);for(let s=1;s<i-1;s+=2)if(e===n[s](t))return n[s+1](t);return n[i-1](t)}}(t,e);case rt:return function(t,e){const i=t.args.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=bt(t.args[s],e);return t=>{const e=n[0](t),r=n[1](t);let o,a;for(let l=2;l<i;l+=2){const i=n[l](t);let h=n[l+1](t);const c=Array.isArray(h);if(c&&(h=(0,s.fu)(h)),i>=r)return 2===l?h:c?Ot(e,r,o,a,i,h):Pt(e,r,o,a,i,h);o=i,a=h}return a}}(t,e);case pt:return function(t,e){const i=t.operator,n=t.args.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=bt(t.args[i],e);if(i===pt)return e=>{const i=r[0](e);return t.args[0].type===u?(0,s.dI)(i):i.toString()};throw new Error(`Unsupported convert operator ${i}`)}(t,e);default:throw new Error(`Unsupported operator ${i}`)}}function Pt(t,e,i,n,s,r){const o=s-i;if(0===o)return n;const a=e-i;return n+(1===t?a/o:(Math.pow(t,a)-1)/(Math.pow(t,o)-1))*(r-n)}function Ot(t,e,i,n,r,o){if(0===r-i)return n;const a=(0,s.eE)(n),l=(0,s.eE)(o);let h=l[2]-a[2];h>180?h-=360:h<-180&&(h+=360);const c=[Pt(t,e,i,a[0],r,l[0]),Pt(t,e,i,a[1],r,l[1]),a[2]+Pt(t,e,i,0,r,h),Pt(t,e,i,n[3],r,o[3])];return(0,s.cD)(c)}var Lt=i(3530),Dt=i(7733),Ft=i(1247),kt=i(9700),Nt=i(6936),Gt=i(953),zt=i(9276),Wt=i(1426);function Kt(t){return!0}function Yt(t,e){e=e??w();const i=t.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=Xt(t[s],e);const s={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""},r=new Array(i);return function(t,o){if(s.properties=t.getPropertiesInternal(),s.resolution=o,e.featureId){const e=t.getId();s.featureId=void 0!==e?e:null}e.geometryType&&(s.geometryType=Tt(t.getGeometry()));let a=0;for(let t=0;t<i;++t){const e=n[t](s);e&&(r[a]=e,a+=1)}return r.length=a,r}}function Xt(t,e){const i=Bt(t,"",e),n=Vt(t,"",e),s=function(t,e){const i="text-",n=Ht(t,i+"value",e);if(!n)return null;
1const s=Bt(t,i,e),r=Bt(t,i+"background-",e),o=Vt(t,i,e),a=Vt(t,i+"background-",e),l=Ht(t,i+"font",e),h=jt(t,i+"max-angle",e),c=jt(t,i+"offset-x",e),u=jt(t,i+"offset-y",e),d=qt(t,i+"overflow",e),g=Ht(t,i+"placement",e),f=jt(t,i+"repeat",e),_=te(t,i+"scale",e),p=qt(t,i+"rotate-with-view",e),m=jt(t,i+"rotation",e),y=Ht(t,i+"align",e),v=Ht(t,i+"justify",e),x=Ht(t,i+"baseline",e),E=qt(t,i+"keep-upright",e),S=$t(t,i+"padding",e),w=re(t,i+"declutter-mode"),C=new Wt.A({declutterMode:w});return function(t){if(C.setText(n(t)),s&&C.setFill(s(t)),r&&C.setBackgroundFill(r(t)),o&&C.setStroke(o(t)),a&&C.setBackgroundStroke(a(t)),l&&C.setFont(l(t)),h&&C.setMaxAngle(h(t)),c&&C.setOffsetX(c(t)),u&&C.setOffsetY(u(t)),d&&C.setOverflow(d(t)),g){const e=g(t);if("point"!==e&&"line"!==e)throw new Error("Expected point or line for text-placement");C.setPlacement(e)}if(f&&C.setRepeat(f(t)),_&&C.setScale(_(t)),p&&C.setRotateWithView(p(t)),m&&C.setRotation(m(t)),y){const e=y(t);if("left"!==e&&"center"!==e&&"right"!==e&&"end"!==e&&"start"!==e)throw new Error("Expected left, right, center, start, or end for text-align");C.setTextAlign(e)}if(v){const e=v(t);if("left"!==e&&"right"!==e&&"center"!==e)throw new Error("Expected left, right, or center for text-justify");C.setJustify(e)}if(x){const e=x(t);if("bottom"!==e&&"top"!==e&&"middle"!==e&&"alphabetic"!==e&&"hanging"!==e)throw new Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");C.setTextBaseline(e)}return S&&C.setPadding(S(t)),E&&C.setKeepUpright(E(t)),C}}(t,e),r=function(t,e){return"icon-src"in t?function(t,e){const i="icon-",n=i+"src",s=ae(t[n],n),r=Jt(t,i+"anchor",e),o=te(t,i+"scale",e),a=jt(t,i+"opacity",e),l=Jt(t,i+"displacement",e),h=jt(t,i+"rotation",e),c=qt(t,i+"rotate-with-view",e),u=ne(t,i+"anchor-origin"),d=se(t,i+"anchor-x-units"),g=se(t,i+"anchor-y-units"),f=Zt(t,i+"color");let _,p=null;void 0!==f&&(Array.isArray(f)&&f.length>0&&"string"==typeof f[0]?p=Ut(t,i+"color",e):_=he(f,i+"color"));const m=function(t,e){const i=t[e];if(void 0!==i){if("string"!=typeof i)throw new Error(`Expected a string for ${e}`);return i}}(t,i+"cross-origin"),y=function(t,e){const i=t[e];if(void 0!==i)return oe(i,e)}(t,i+"offset"),v=ne(t,i+"offset-origin"),x=ee(t,i+"width"),E={src:s,anchorOrigin:u,anchorXUnits:d,anchorYUnits:g,crossOrigin:m,offset:y,offsetOrigin:v,height:ee(t,i+"height"),width:x,size:ie(t,i+"size"),declutterMode:re(t,i+"declutter-mode")};let S=null;return function(t){if(S)p&&S.setColor(p(t));else{const e=p?p(t):_;S=new kt.A(void 0!==e?Object.assign({},E,{color:e}):Object.assign({},E))}return a&&S.setOpacity(a(t)),l&&S.setDisplacement(l(t)),h&&S.setRotation(h(t)),c&&S.setRotateWithView(c(t)),o&&S.setScale(o(t)),r&&S.setAnchor(r(t)),S}}(t,e):"shape-points"in t?function(t,e){const i="shape-",n=i+"points",s=i+"radius",r=le(t[n],n);if(!(s in t))throw new Error(`Expected a number for ${s}`);const o=jt(t,s,e),a="number"==typeof t[s]?t[s]:5,l=i+"radius2",h=jt(t,l,e),c="number"==typeof t[l]?t[l]:void 0,u=Bt(t,i,e),d=Vt(t,i,e),g=te(t,i+"scale",e),f=Jt(t,i+"displacement",e),_=jt(t,i+"rotation",e),p=qt(t,i+"rotate-with-view",e),m=ee(t,i+"angle"),y=re(t,i+"declutter-mode"),v=new Nt.A({points:r,radius:a,radius2:c,angle:m,declutterMode:y});return function(t){return o&&v.setRadius(o(t)),h&&v.setRadius2(h(t)),u&&v.setFill(u(t)),d&&v.setStroke(d(t)),f&&v.setDisplacement(f(t)),_&&v.setRotation(_(t)),p&&v.setRotateWithView(p(t)),g&&v.setScale(g(t)),v}}(t,e):"circle-radius"in t?function(t,e){const i="circle-",n=Bt(t,i,e),s=Vt(t,i,e),r=jt(t,i+"radius",e),o=te(t,i+"scale",e),a=Jt(t,i+"displacement",e),l=jt(t,i+"rotation",e),h=qt(t,i+"rotate-with-view",e),c=re(t,i+"declutter-mode"),u=new Dt.A({radius:5,declutterMode:c});return function(t){return r&&u.setRadius(r(t)),n&&u.setFill(n(t)),s&&u.setStroke(s(t)),a&&u.setDisplacement(a(t)),l&&u.setRotation(l(t)),h&&u.setRotateWithView(h(t)),o&&u.setScale(o(t)),u}}(t,e):null}(t,e),o=jt(t,"z-index",e);if(!(i||n||s||r||(0,Lt.p)(t)))throw new Error("No fill, stroke, point, or text symbolizer properties in style: "+JSON.stringify(t));const a=new zt.Ay;return function(t){let e=!0;if(i){const n=i(t);
vendor: 8,023 bytes, line 1
1n&&(e=!1),a.setFill(n)}if(n){const i=n(t);i&&(e=!1),a.setStroke(i)}if(s){const i=s(t);i&&(e=!1),a.setText(i)}if(r){const i=r(t);i&&(e=!1),a.setImage(i)}return o&&a.setZIndex(o(t)),e?null:a}}function Bt(t,e,i){let n;if(e+"fill-pattern-src"in t)n=function(t,e,i){const n=Ht(t,e+"pattern-src",i),s=Qt(t,e+"pattern-offset",i),r=Qt(t,e+"pattern-size",i),o=Ut(t,e+"color",i);return function(t){return{src:n(t),offset:s&&s(t),size:r&&r(t),color:o&&o(t)}}}(t,e+"fill-",i);else{if("none"===t[e+"fill-color"])return t=>null;n=Ut(t,e+"fill-color",i)}if(!n)return null;const r=new Ft.A;return function(t){const e=n(t);return e===s.qV?null:(r.setColor(e),r)}}function Vt(t,e,i){const n=jt(t,e+"stroke-width",i),r=Ut(t,e+"stroke-color",i);if(!n&&!r)return null;const o=Ht(t,e+"stroke-line-cap",i),a=Ht(t,e+"stroke-line-join",i),l=$t(t,e+"stroke-line-dash",i),h=jt(t,e+"stroke-line-dash-offset",i),c=jt(t,e+"stroke-miter-limit",i),u=jt(t,e+"stroke-offset",i),d=new Gt.A;return function(t){if(r){const e=r(t);if(e===s.qV)return null;d.setColor(e)}if(n&&d.setWidth(n(t)),o){const e=o(t);if("butt"!==e&&"round"!==e&&"square"!==e)throw new Error("Expected butt, round, or square line cap");d.setLineCap(e)}if(a){const e=a(t);if("bevel"!==e&&"round"!==e&&"miter"!==e)throw new Error("Expected bevel, round, or miter line join");d.setLineJoin(e)}return l&&d.setLineDash(l(t)),h&&d.setLineDashOffset(h(t)),c&&d.setMiterLimit(c(t)),u&&d.setOffset(u(t)),d}}function Zt(t,e){if(!(e in t))return;const i=t[e];return void 0===i?void 0:i}function jt(t,e,i){const n=Zt(t,e);if(void 0===n)return;const s=Mt(n,h,i);return function(t){return le(s(t),e)}}function Ht(t,e,i){const n=Zt(t,e);if(void 0===n)return null;const s=Mt(n,c,i);return function(t){return ae(s(t),e)}}function qt(t,e,i){const n=Zt(t,e);if(void 0===n)return null;const s=Mt(n,l,i);return function(t){const i=s(t);if("boolean"!=typeof i)throw new Error(`Expected a boolean for ${e}`);return i}}function Ut(t,e,i){const n=Zt(t,e);if(void 0===n)return null;const s=Mt(n,u,i);return function(t){return he(s(t),e)}}function $t(t,e,i){const n=Zt(t,e);if(void 0===n)return null;if(Array.isArray(n)&&(0===n.length||"string"!=typeof n[0])){const t=n.map((t,n)=>{if("number"==typeof t)return()=>t;const s=Mt(t,h,i);return function(t){return le(s(t),`${e}[${n}]`)}});return function(e){const i=new Array(t.length);for(let n=0;n<t.length;++n)i[n]=t[n](e);return i}}const s=Mt(n,d,i);return function(t){return oe(s(t),e)}}function Jt(t,e,i){const n=Zt(t,e);if(void 0===n)return null;const s=Mt(n,d,i);return function(t){const i=oe(s(t),e);if(2!==i.length)throw new Error(`Expected two numbers for ${e}`);return i}}function Qt(t,e,i){const n=Zt(t,e);if(void 0===n)return null;const s=Mt(n,d,i);return function(t){return ce(s(t),e)}}function te(t,e,i){const n=Zt(t,e);if(void 0===n)return null;const s=Mt(n,d|h,i);return function(t){return i=s(t),n=e,"number"==typeof i?i:ce(i,n);var i,n}}function ee(t,e){const i=t[e];if(void 0!==i){if("number"!=typeof i)throw new Error(`Expected a number for ${e}`);return i}}function ie(t,e){const i=t[e];if(void 0!==i){if("number"==typeof i)return(0,o.xq)(i);if(!Array.isArray(i))throw new Error(`Expected a number or size array for ${e}`);if(2!==i.length||"number"!=typeof i[0]||"number"!=typeof i[1])throw new Error(`Expected a number or size array for ${e}`);return i}}function ne(t,e){const i=t[e];if(void 0!==i){if("bottom-left"!==i&&"bottom-right"!==i&&"top-left"!==i&&"top-right"!==i)throw new Error(`Expected bottom-left, bottom-right, top-left, or top-right for ${e}`);return i}}function se(t,e){const i=t[e];if(void 0!==i){if("pixels"!==i&&"fraction"!==i)throw new Error(`Expected pixels or fraction for ${e}`);return i}}function re(t,e){const i=t[e];if(void 0!==i){if("string"!=typeof i)throw new Error(`Expected a string for ${e}`);if("declutter"!==i&&"obstacle"!==i&&"none"!==i)throw new Error(`Expected declutter, obstacle, or none for ${e}`);return i}}function oe(t,e){if(!Array.isArray(t))throw new Error(`Expected an array for ${e}`);const i=t.length;for(let n=0;n<i;++n)if("number"!=typeof t[n])throw new Error(`Expected an array of numbers for ${e}`);return t}function ae(t,e){if("string"!=typeof t)throw new Error(`Expected a string for ${e}`);return t}function le(t,e){if("number"!=typeof t)throw new Error(`Expected a number for ${e}`);return t}function he(t,e){if("string"==typeof t)return t;const i=oe(t,e),n=i.length;if(n<3||n>4)throw new Error(`Expected a color with 3 or 4 values for ${e}`);return i}function ce(t,e){const i=oe(t,e);if(2!==i.length)throw new Error(`Expected an array of two numbers for ${e}`);return i}var ue=i(764);const de="renderOrder";class ge extends ue.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=t.declutter?String(t.declutter):void 0,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(de)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t,e){const i=this.getDeclutter();i in t.declutter==0&&(t.declutter[i]=new n.A(9)),this.getRenderer().renderDeclutter(t,e)}setRenderOrder(t){this.set(de,t)}setStyle(t){this.style_=void 0===t?zt.d1:t;const e=function(t){if(void 0===t)return zt.d1;if(!t)return null;if("function"==typeof t)return t;if(t instanceof zt.Ay)return t;if(Array.isArray(t)&&0===t.length)return[];if(Array.isArray(t)&&t[0]instanceof zt.Ay){const e=t.length,i=new Array(e);for(let n=0;n<e;++n){const e=t[n];if(!(e instanceof zt.Ay))throw new Error("Expected a list of style instances");i[n]=e}return i}return function(t,e){if(e=e??w(),!Array.isArray(t))return Yt([t],e);const i=t.length;if("style"in t[0]){const n=new Array(i);for(let e=0;e<i;++e){const i=t[e];if(!("style"in i))throw new Error("Expected a list of rules with a style property");n[e]=i}return function(t,e){const i=function(t,e){const i=t.length,n=new Array(i);for(let s=0;s<i;++s){const i=t[s],r="filter"in i?Mt(i.filter,l,e):Kt;let o;if(Array.isArray(i.style)){const t=i.style.length;o=new Array(t);for(let n=0;n<t;++n)o[n]=Xt(i.style[n],e)}else o=[Xt(i.style,e)];n[s]={filter:r,styles:o}}return function(e){const s=[];let r=!1;for(let o=0;o<i;++o)if((0,n[o].filter)(e)&&(!t[o].else||!r)){r=!0;for(const t of n[o].styles){const i=t(e);i&&s.push(i)}}return s}}(t,e=e??w()),n={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""};return function(t,s){if(n.properties=t.getPropertiesInternal(),n.resolution=s,e.featureId){const e=t.getId();n.featureId=void 0!==e?e:null}return e.geometryType&&(n.geometryType=Tt(t.getGeometry())),i(n)}}(n,e)}return Yt(t,e)}(t)}(t);this.styleFunction_=null===t?void 0:(0,zt.mC)(e),this.changed()}setDeclutter(t){this.declutter_=t?String(t):void 0,this.changed()}}const fe=ge},764(t,e,i){i.d(e,{l:()=>d});var n=i(1765),s=i(588),r=i(9438),o=i(6837),a=i(915),l=i(3984),h=i(8620),c=i(5332);class u extends h.A{constructor(t){const e=Object.assign({},t);delete e.source,super(e),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,t.render&&(this.render=t.render),t.map&&this.setMap(t.map),this.addChangeListener(c.A.SOURCE,this.handleSourcePropertyChange_);const i=t.source?t.source:null;this.setSource(i)}getLayersArray(t){return(t=t||[]).push(this),t}getLayerStatesArray(t){return(t=t||[]).push(this.getLayerState()),t}getSource(){return this.get(c.A.SOURCE)||null}
1getRenderSource(){return this.getSource()}getSourceState(){const t=this.getSource();return t?t.getState():"undefined"}handleSourceChange_(){this.changed(),this.sourceReady_||"ready"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,r.JH)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const t=this.getSource();t&&(this.sourceChangeKey_=(0,r.KT)(t,o.A.CHANGE,this.handleSourceChange_,this),"ready"===t.getState()&&(this.sourceReady_=!0,setTimeout(()=>{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null}isVisible(t){let e;const i=this.getMapInternal();let s;if(!t&&i&&(t=i.getView()),e=t instanceof n.Ay?{viewState:t.getState(),extent:t.calculateExtent()}:t,!e.layerStatesArray&&i&&(e.layerStatesArray=i.getLayerGroup().getLayerStatesArray()),e.layerStatesArray){if(s=e.layerStatesArray.find(t=>t.layer===this),!s)return!1}else s=this.getLayerState();const r=this.getExtent();return d(s,e.viewState)&&(!r||(0,a.HY)(r,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];const e=this.getSource()?.getAttributions();if(!e)return[];let i=e(t instanceof n.Ay?t.getViewStateAndExtent():t);return Array.isArray(i)||(i=[i]),i}render(t,e){const i=this.getRenderer();return i.prepareFrame(t)?(this.rendered=!0,i.renderFrame(t,e)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(t,e){}renderDeferred(t){const e=this.getRenderer();e&&e.renderDeferred(t)}setMapInternal(t){t||this.unrender(),this.set(c.A.MAP,t)}getMapInternal(){return this.get(c.A.MAP)}setMap(t){this.mapPrecomposeKey_&&((0,r.JH)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,r.JH)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,r.KT)(t,l.A.PRECOMPOSE,this.handlePrecompose_,this),this.mapRenderKey_=(0,r.KT)(this,o.A.CHANGE,t.render,t),this.changed())}handlePrecompose_(t){const e=t.frameState.layerStatesArray,i=this.getLayerState(!1);(0,s.v)(!e.some(t=>t.layer===i.layer),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),e.push(i)}setSource(t){this.set(c.A.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}clearRenderer(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_)}disposeInternal(){this.clearRenderer(),this.setSource(null),super.disposeInternal()}}function d(t,e){if(!t.visible)return!1;const i=e.resolution;if(i<t.minResolution||i>=t.maxResolution)return!1;const n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}const g=u;i.d(e,["A",0,g])},5332(t,e,i){i.d(e,["A",0,{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"}])},7852(t,e,i){i.d(e,{A:()=>D});var n=i(8143),s=i(1078);function r(t){return t instanceof Image||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageBitmap?t:null}const o=new Error("disposed"),a=[256,256];class l extends n.A{constructor(t){const e=s.A.IDLE;super(t.tileCoord,e,{transition:t.transition,interpolate:t.interpolate}),this.loader_=t.loader,this.data_=null,this.error_=null,this.size_=t.size||null,this.controller_=t.controller||null}getSize(){if(this.size_)return this.size_;const t=r(this.data_);return t?[t.width,t.height]:a}getData(){return this.data_}getError(){return this.error_}load(){if(this.state!==s.A.IDLE&&this.state!==s.A.ERROR)return;this.state=s.A.LOADING,this.changed();const t=this;this.loader_().then(function(e){t.data_=e,t.state=s.A.LOADED,t.changed()}).catch(function(e){t.error_=e,t.state=s.A.ERROR,t.changed()})}disposeInternal(){this.controller_&&(this.controller_.abort(o),this.controller_=null),super.disposeInternal()}}const h=l;var c=i(190),u=i(1110),d=i(6514),g=i(915),f=i(6173),_=i(2214),p=i(6782),m=i(25),y=i(588);const v=class{constructor(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}deleteOldest(){const t=this.pop();
vendor: 4,845 bytes, line 1
1t instanceof m.A&&t.dispose()}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.deleteOldest()}clear(){for(;this.oldest_;)this.deleteOldest()}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let e=this.oldest_;for(;e;)t(e.value_,e.key_,this),e=e.newer}get(t,e){const i=this.entries_[t];return(0,y.v)(void 0!==i,"Tried to get a value for a key that does not exist in the cache"),i===this.newest_||(i===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(i.newer.older=i.older,i.older.newer=i.newer),i.newer=null,i.older=this.newest_,this.newest_.newer=i,this.newest_=i),i.value_}remove(t){const e=this.entries_[t];return(0,y.v)(void 0!==e,"Tried to get a value for a key that does not exist in the cache"),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_}getCount(){return this.count_}getKeys(){const t=new Array(this.count_);let e,i=0;for(e=this.newest_;e;e=e.older)t[i++]=e.key_;return t}getValues(){const t=new Array(this.count_);let e,i=0;for(e=this.newest_;e;e=e.older)t[i++]=e.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){return this.entries_[t]?.value_}pop(){const 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_}replace(t,e){this.get(t),this.entries_[t].value_=e}set(t,e){(0,y.v)(!(t in this.entries_),"Tried to set a value for a key that is used already");const i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_}setSize(t){this.highWaterMark=t}};var x=i(186),E=i(9703),S=i(4087),w=i(1623);function C(t,e,i){if(!(i in t))return t[i]=new Set([e]),!0;const n=t[i],s=n.has(e);return s||n.add(e),!s}function A(t,e,i){const n=t[i];return!!n&&n.delete(e)}function R(t,e){const i=t.layerStatesArray[t.layerIndex];i.extent&&(e=(0,g._N)(e,(0,f.SD)(i.extent,t.viewState.projection)));const n=i.layer.getRenderSource();if(!n.getWrapX()){const i=n.getTileGridForProjection(t.viewState.projection).getExtent();i&&(e=(0,g._N)(e,i))}return e}class I extends w.A{constructor(t,e){super(t),e=e||{},this.extentChanged=!0,this.renderComplete=!1,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedTiles=[],this.renderedSourceRevision_,this.tempExtent=(0,g.S5)(),this.tempTileRange_=new u.A(0,0,0,0),this.tempTileCoord_=(0,x.N)(0,0,0);const i=void 0!==e.cacheSize?e.cacheSize:512;this.tileCache_=new v(i),this.sourceTileCache_=null,this.layerExtent=null,this.maxStaleKeys=.5*i}getTileCache(){return this.tileCache_}getSourceTileCache(){return this.sourceTileCache_||(this.sourceTileCache_=new v(512)),this.sourceTileCache_}getOrCreateTile(t,e,i,n){const s=this.tileCache_,r=this.getLayer().getSource(),o=(0,x.et)(r,r.getKey(),t,e,i);let a;if(s.containsKey(o))a=s.get(o);else{const l=n.viewState.projection,h=r.getProjection();if(a=r.getTile(t,e,i,n.pixelRatio,l,!h||(0,f.tI)(h,l)?void 0:this.getSourceTileCache()),!a)return null;s.set(o,a)}return a}getTile(t,e,i,n){return this.getOrCreateTile(t,e,i,n)||null}getData(t){const e=this.frameState;if(!e)return null;const i=this.getLayer(),n=(0,E.Bb)(e.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!(0,g.Ym)(o,n))return null;const a=e.viewState,l=i.getRenderSource(),u=l.getTileGridForProjection(a.projection),d=l.getTilePixelRatio(e.pixelRatio);for(let t=u.getZForResolution(a.resolution);t>=u.getMinZoom();--t){const i=u.getTileCoordForCoordAndZ(n,t),o=this.getTile(t,i[1],i[2],e);if(!o||o.getState()!==s.A.LOADED)continue;const g=u.getOrigin(t),f=(0,p.xq)(u.getTileSize(t)),m=u.getResolution(t);let y;if(o instanceof c.A||o instanceof _.A)y=o.getImage();else{if(!(o instanceof h))continue;if(y=r(o.getData()),!y)continue}const v=Math.floor(d*((n[0]-g[0])/m-i[1]*f[0])),x=Math.floor(d*((g[1]-n[1])/m-i[2]*f[1])),E=Math.round(d*l.getGutterForProjection(a.projection));return this.getImageData(y,v+E,x+E)}return null}prepareFrame(t){this.renderedProjection?t.viewState.projection!==this.renderedProjection&&(this.tileCache_.clear(),this.renderedProjection=t.viewState.projection):this.renderedProjection=t.viewState.projection;const e=this.getLayer().getSource();if(!e)return!1;const i=e.getRevision();return this.renderedSourceRevision_?this.renderedSourceRevision_!==i&&(this.renderedSourceRevision_=i,this.renderedSourceKey_===e.getKey()&&(this.tileCache_.clear(),this.sourceTileCache_?.clear())):this.renderedSourceRevision_=i,!0}
1enqueueTilesForNextExtent(){return!0}enqueueTiles(t,e,i,n,r){const o=t.viewState,a=this.getLayer(),l=a.getRenderSource(),h=l.getTileGridForProjection(o.projection),c=(0,S.v6)(l);c in t.wantedTiles||(t.wantedTiles[c]={});const u=t.wantedTiles[c],d=a.getMapInternal(),f=Math.max(i-r,h.getMinZoom(),h.getZForResolution(Math.min(a.getMaxResolution(),d?d.getView().getResolutionForZoom(Math.max(a.getMinZoom(),0)):h.getResolution(0)),l.zDirection)),_=o.rotation,p=_?(0,g.Yw)(o.center,o.resolution,_,t.size):void 0;for(let r=i;r>=f;--r){const i=h.getTileRangeForExtentAndZ(e,r,this.tempTileRange_),o=h.getResolution(r);for(let e=i.minX;e<=i.maxX;++e)for(let a=i.minY;a<=i.maxY;++a){if(_&&!h.tileCoordIntersectsViewport([r,e,a],p))continue;const i=this.getTile(r,e,a,t);if(!i)continue;if(!C(n,i,r))continue;const l=i.getKey();if(u[l]=!0,i.getState()===s.A.IDLE&&!t.tileQueue.isKeyQueued(l)){const n=(0,x.N)(r,e,a,this.tempTileCoord_);t.tileQueue.enqueue([i,c,h.getTileCoordCenter(n),o])}}}}findStaleTile_(t,e){const i=this.tileCache_,n=t[0],r=t[1],o=t[2],a=this.getStaleKeys();for(let t=0;t<a.length;++t){const l=(0,x.et)(this.getLayer().getSource(),a[t],n,r,o);if(i.containsKey(l)){const t=i.peek(l);if(t.getState()===s.A.LOADED)return t.endTransition((0,S.v6)(this)),C(e,t,n),!0}}return!1}findAltTiles_(t,e,i,n){const r=t.getTileRangeForTileCoordAndZ(e,i,this.tempTileRange_);if(!r)return!1;let o=!0;const a=this.tileCache_,l=this.getLayer().getRenderSource(),h=l.getKey();for(let t=r.minX;t<=r.maxX;++t)for(let e=r.minY;e<=r.maxY;++e){const r=(0,x.et)(l,h,i,t,e);let c=!1;if(a.containsKey(r)){const t=a.peek(r);t.getState()===s.A.LOADED&&(C(n,t,i),c=!0)}c||(o=!1)}return o}renderFrame(t,e){this.renderComplete=!0;const i=t.layerStatesArray[t.layerIndex],n=t.viewState,r=n.projection,o=n.resolution,a=n.center,l=t.pixelRatio,h=this.getLayer(),c=h.getSource(),u=c.getTileGridForProjection(r),_=u.getZForResolution(o,c.zDirection),p=u.getResolution(_);this.updateStaleKeys(c.getKey());let m=t.extent;const y=c.getTilePixelRatio(l);this.prepareContainer(t,e);const v=this.context.canvas.width,x=this.context.canvas.height;this.layerExtent=i.extent?(0,f.SD)(i.extent,r):null,this.layerExtent&&(m=(0,g._N)(m,this.layerExtent));const w=p*v/2/y,C=p*x/2/y,I=[a[0]-w,a[1]-C,a[0]+w,a[1]+C],T={};this.renderedTiles.length=0;const M=h.getPreload();if(t.nextExtent&&this.enqueueTilesForNextExtent()){const e=u.getZForResolution(n.nextResolution,c.zDirection),i=R(t,t.nextExtent);this.enqueueTiles(t,i,e,T,M)}const b=R(t,m);if(this.enqueueTiles(t,b,_,T,0),M>0&&setTimeout(()=>{this.enqueueTiles(t,b,_-1,T,M-1)},0),!(_ in T))return this.container;const P=(0,S.v6)(this),O=t.time;for(const e of T[_]){const i=e.getState();if(i===s.A.EMPTY)continue;const n=e.tileCoord;if(i===s.A.LOADED&&1===e.getAlpha(P,O)){e.endTransition(P);continue}if(i!==s.A.ERROR&&(this.renderComplete=!1),this.findStaleTile_(n,T)){A(T,e,_),t.animate=!0;continue}if(this.findAltTiles_(u,n,_+1,T))continue;const r=u.getMinZoom();for(let t=_-1;t>=r&&!this.findAltTiles_(u,n,t,T);--t);}const L=p/o*l/y,D=this.getRenderContext(t);(0,E.Zz)(this.tempTransform,v/2,x/2,L,L,0,-v/2,-x/2),this.layerExtent&&this.clipUnrotated(D,t,this.layerExtent),c.getInterpolate()||(D.imageSmoothingEnabled=!1),this.preRender(D,t);const F=Object.keys(T).map(Number);F.sort(d.V_);const k=[],N=[],G=[];for(let e=F.length-1;e>=0;--e){const i=F[e],n=c.getTilePixelSize(i,l,r),o=u.getResolution(i)/p,a=n[0]*o*L,h=n[1]*o*L,d=u.getTileCoordForCoordAndZ((0,g.Py)(I),i),f=u.getTileCoordExtent(d),m=(0,E.Bb)(this.tempTransform,[y*(f[0]-I[0])/p,y*(I[3]-f[3])/p]),v=y*c.getGutterForProjection(r);for(const e of T[i]){if(e.getState()!==s.A.LOADED)continue;const n=e.tileCoord,r=d[1]-n[1],o=Math.round(m[0]-(r-1)*a),l=d[2]-n[2],u=Math.round(m[1]-(l-1)*h),f=Math.round(m[0]-r*a),p=Math.round(m[1]-l*h),y=o-f,x=u-p,E=i===_;if(E&&e.inTransition(P)){G.push({tile:e,x:f,y:p,w:y,h:x,gutter:v}),this.renderedTiles.unshift(e),this.updateUsedTiles(t.usedTiles,c,e);continue}const S=[f,p,f+y,p+x],w=[];for(let t=0,e=k.length;t<e;++t)i<N[t]&&(0,g.HY)(S,k[t])&&w.push(k[t]);let C;w.length>0&&(C=(0,g._$)(S,w)),k.push(S),N.push(i),this.drawTile(e,t,f,p,y,x,v,E,C),this.renderedTiles.unshift(e),this.updateUsedTiles(t.usedTiles,c,e)}}for(let e=0,i=G.length;e<i;++e){const{tile:i,x:n,y:s,w:r,h:o,gutter:a}=G[e];this.drawTile(i,t,n,s,r,o,a,!0,void 0)}if(this.renderedResolution=p,this.extentChanged=!this.renderedExtent_||!(0,g.aI)(this.renderedExtent_,I),this.renderedExtent_=I,this.renderedPixelRatio=l,this.postRender(this.context,t),this.layerExtent&&D.restore(
1),D.imageSmoothingEnabled=!0,this.renderComplete){const e=(t,e)=>{const i=(0,S.v6)(c),n=e.wantedTiles[i],s=n?Object.keys(n).length:0;this.updateCacheSize(s),this.tileCache_.expireCache(),this.sourceTileCache_?.expireCache()};t.postRenderFunctions.push(e)}return this.container}updateCacheSize(t){this.tileCache_.highWaterMark=Math.max(this.tileCache_.highWaterMark,2*t)}drawTile(t,e,i,n,s,o,a,l,c){let u;if(t instanceof h){if(u=r(t.getData()),!u)throw new Error("Rendering array data is not yet supported")}else u=this.getTileImage(t);if(!u)return;const d=this.getRenderContext(e),g=(0,S.v6)(this),f=e.layerStatesArray[e.layerIndex],_=f.opacity*(l?t.getAlpha(g,e.time):1),p=_!==d.globalAlpha;p&&(d.save(),d.globalAlpha=_);const m=u.width-2*a,y=u.height-2*a;if(c){const t=m/s,e=y/o;for(let s=0,r=c.length;s<r;++s){const r=c[s],o=r[0],l=r[1],h=r[2]-r[0],g=r[3]-r[1];d.drawImage(u,a+(o-i)*t,a+(l-n)*e,h*t,g*e,o,l,h,g)}}else d.drawImage(u,a,a,m,y,i,n,s,o);p&&d.restore(),_!==f.opacity?e.animate=!0:l&&t.endTransition(g)}getImage(){const t=this.context;return t?t.canvas:null}getTileImage(t){return t.getImage()}updateUsedTiles(t,e,i){const n=(0,S.v6)(e);n in t||(t[n]={}),t[n][i.getKey()]=!0}}const T=I;var M=i(764);const b="preload",P="useInterimTilesOnError";class O extends M.A{constructor(t){t=t||{};const e=Object.assign({},t),i=t.cacheSize;delete t.cacheSize,delete e.preload,delete e.useInterimTilesOnError,super(e),this.on,this.once,this.un,this.cacheSize_=i,this.setPreload(void 0!==t.preload?t.preload:0),this.setUseInterimTilesOnError(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}getCacheSize(){return this.cacheSize_}getPreload(){return this.get(b)}setPreload(t){this.set(b,t)}getUseInterimTilesOnError(){return this.get(P)}setUseInterimTilesOnError(t){this.set(P,t)}getData(t){return super.getData(t)}}const L=O,D=class extends L{constructor(t){super(t)}createRenderer(){return new T(this,{cacheSize:this.getCacheSize()})}}},243(t,e,i){i.d(e,{A:()=>Ct});var n=i(2703),s=i(6514),r=i(6933),o=i(8711),a=i(915),l=i(6173),h=i(3984),c=i(7295),u=i(1580),d=i(6361);const g=class{drawCustom(t,e,i,n,s){}drawGeometry(t){}setStyle(t){}drawCircle(t,e,i){}drawFeature(t,e,i){}drawGeometryCollection(t,e,i){}drawLineString(t,e,i){}drawMultiLineString(t,e,i){}drawMultiPoint(t,e,i){}drawMultiPolygon(t,e,i){}drawPoint(t,e,i){}drawPolygon(t,e,i){}drawText(t,e,i){}setFillStrokeStyle(t,e){}setImageStyle(t,e){}setTextStyle(t,e){}};var f=i(8774);const _={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},p=[_.FILL],m=[_.STROKE],y=[_.BEGIN_PATH],v=[_.CLOSE_PATH],x=_,E=class extends g{constructor(t,e,i,n){super(),this.tolerance=t,this.maxExtent=e,this.pixelRatio=n,this.maxLineWidth=0,this.resolution=i,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.tmpCoordinate_=[],this.hitDetectionInstructions=[],this.state={}}applyPixelRatio(t){const e=this.pixelRatio;return 1==e?t:t.map(function(t){return t*e})}appendFlatPointCoordinates(t,e){const i=this.getBufferedMaxExtent(),n=this.tmpCoordinate_,s=this.coordinates;let r=s.length;for(let o=0,l=t.length;o<l;o+=e)n[0]=t[o],n[1]=t[o+1],(0,a.Ym)(i,n)&&(s[r++]=n[0],s[r++]=n[1]);return r}appendFlatLineCoordinates(t,e,i,n,s,r){const o=this.coordinates;let l=o.length;const h=this.getBufferedMaxExtent();r&&(e+=n);let c=t[e],d=t[e+1];const g=this.tmpCoordinate_;let f,_,p,m=!0;for(f=e+n;f<i;f+=n)g[0]=t[f],g[1]=t[f+1],p=(0,a.vz)(h,g),p!==_?(m&&(o[l++]=c,o[l++]=d,m=!1),o[l++]=g[0],o[l++]=g[1]):p===u.A.INTERSECTING?(o[l++]=g[0],o[l++]=g[1],m=!1):m=!0,c=g[0],d=g[1],_=p;return(s&&m||f===e+n)&&(o[l++]=c,o[l++]=d),l}drawCustomCoordinates_(t,e,i,n,s){for(let r=0,o=i.length;r<o;++r){const o=i[r],a=this.appendFlatLineCoordinates(t,e,o,n,!1,!1);s.push(a),e=o}return e}drawCustom(t,e,i,n,s){this.beginGeometry(t,e,s);const r=t.getType(),o=t.getStride(),a=this.coordinates.length;let l,h,c,u,g;switch(r){case"MultiPolygon":l=t.getOrientedFlatCoordinates(),u=[];const e=t.getEndss();g=0;for(let t=0,i=e.length;t<i;++t){const i=[];g=this.drawCustomCoordinates_(l,g,e[t],o,i),u.push(i)}this.instructions.push([x.CUSTOM,a,u,t,i,d.Dz,s]),this.hitDetectionInstructions.push([x.CUSTOM,a,u,t,n||i,d.Dz,s]);break;case"Polygon":case"MultiLineString":c=[],l="Polygon"==r?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),g=this.drawCustomCoordinates_(l,0,t.getEnds(),o,c),this.instructions.push([x.CUSTOM,a,c,t,i,d.cD,s]),this.hitDetectionInstructions.push([x.CUSTOM,a,c,t,n||i,d.cD,s]);break;
1case"LineString":case"Circle":l=t.getFlatCoordinates(),h=this.appendFlatLineCoordinates(l,0,l.length,o,!1,!1),this.instructions.push([x.CUSTOM,a,h,t,i,d.n2,s]),this.hitDetectionInstructions.push([x.CUSTOM,a,h,t,n||i,d.n2,s]);break;case"MultiPoint":l=t.getFlatCoordinates(),h=this.appendFlatPointCoordinates(l,o),h>a&&(this.instructions.push([x.CUSTOM,a,h,t,i,d.n2,s]),this.hitDetectionInstructions.push([x.CUSTOM,a,h,t,n||i,d.n2,s]));break;case"Point":l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),h=this.coordinates.length,this.instructions.push([x.CUSTOM,a,h,t,i,void 0,s]),this.hitDetectionInstructions.push([x.CUSTOM,a,h,t,n||i,void 0,s])}this.endGeometry(e)}beginGeometry(t,e,i){this.beginGeometryInstruction1_=[x.BEGIN_GEOMETRY,e,0,t,i],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[x.BEGIN_GEOMETRY,e,0,t,i],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;let e;t.reverse();const i=t.length;let n,r,o=-1;for(e=0;e<i;++e)n=t[e],r=n[0],r==x.END_GEOMETRY?o=e:r==x.BEGIN_GEOMETRY&&(n[2]=e,(0,s.gI)(this.hitDetectionInstructions,o,e),o=-1)}fillStyleToState(t,e={}){if(t){const i=t.getColor();e.fillPatternScale=i&&"object"==typeof i&&"src"in i?this.pixelRatio:1,e.fillStyle=(0,c.F)(i||"#000")??void 0}else e.fillStyle=void 0;return e}strokeStyleToState(t,e={}){if(t){const i=t.getColor();e.strokeStyle=(0,c.F)(i||"#000");const n=t.getLineCap();e.lineCap=void 0!==n?n:"round";const s=t.getLineDash();e.lineDash=s?s.slice():f.Oq;const r=t.getLineDashOffset();e.lineDashOffset=r||0;const o=t.getLineJoin();e.lineJoin=void 0!==o?o:"round";const a=t.getWidth();e.lineWidth=void 0!==a?a:1;const l=t.getMiterLimit();e.miterLimit=void 0!==l?l:10;const h=t.getOffset();e.strokeOffset=h??0,e.lineWidth>this.maxLineWidth&&(this.maxLineWidth=e.lineWidth,this.bufferedMaxExtent_=null)}else e.strokeStyle=void 0,e.lineCap=void 0,e.lineDash=null,e.lineDashOffset=void 0,e.lineJoin=void 0,e.lineWidth=void 0,e.miterLimit=void 0,e.strokeOffset=void 0;return e}setFillStrokeStyle(t,e){const i=this.state;this.fillStyleToState(t,i),this.strokeStyleToState(e,i)}createFill(t){const e=t.fillStyle,i=[x.SET_FILL_STYLE,e];return"string"!=typeof e&&i.push(t.fillPatternScale),i}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[x.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,t.lineDash?this.applyPixelRatio(t.lineDash):null,t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const i=t.fillStyle;(void 0!==i&&"string"!=typeof i||t.currentFillStyle!=i)&&(this.instructions.push(e.call(this,t)),t.currentFillStyle=i)}updateStrokeStyle(t,e){const i=t.strokeStyle,n=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,l=t.lineWidth,h=t.miterLimit,c=t.strokeOffset;(t.currentStrokeStyle!=i||t.currentLineCap!=n||r!=t.currentLineDash&&!(0,s.aI)(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=l||t.currentMiterLimit!=h||t.currentStrokeOffset!=c)&&(e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=l,t.currentMiterLimit=h,t.currentStrokeOffset=c)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[x.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,a.o8)(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;(0,a.r)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}};var S=i(3671);const w=class extends E{constructor(t,e,i,n){super(t,e,i,n)}drawFlatCoordinatess_(t,e,i,n,s){const r=this.state,o=void 0!==r.fillStyle,a=void 0!==r.strokeStyle,l=i.length;this.instructions.push(y),this.hitDetectionInstructions.push(y);for(let r=0;r<l;++r){const o=i[r],l=this.coordinates.length,h=this.appendFlatLineCoordinates(t,e,o,n,!0,!a);this.instructions.push([x.MOVE_TO_LINE_TO,l,h,s*this.pixelRatio,!0]),this.hitDetectionInstructions.push([x.MOVE_TO_LINE_TO,l,h,s,!0]),a&&(this.instructions.push(v),this.hitDetectionInstructions.push(v)),e=o}return o&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),a&&(this.instructions.push(m),this.hitDetectionInstructions.push(m)),e}drawCircle(t,e,i){const n=this.state,s=n.fillStyle,r=n.strokeStyle,o=n.strokeOffset;if(void 0===s&&void 0===r)return;if(this.handleStrokeOffset_(()=>this.drawCircle(t,e,i)))return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,i),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([x.SET_FILL_STYLE,"#000"]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([x.SET_STROKE_STYLE,"#000",n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,f.Oq,0]);const a=t.getFlatCoordinates(),l=t.getStride(),h=this.coordinates.length;this.appendFlatLineCoordinates(a,0,a.length,l,!1,!1);const c=[x.CIRCLE,h,o];this.instructions.push(y,c),this.hitDetectionInstructions.push(y,c),void 0!==n.fillStyle&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),void 0!==n.strokeStyle&&(this.instructions.push(m),this.hitDetectionInstructions.push(m)),this.endGeometry(e)}drawPolygon(t,e,i){const n=this.state,s=n.fillStyle,r=n.strokeStyle,o=n.strokeOffset;if(void 0===s&&void 0===r)return;if(this.handleStrokeOffset_(()=>this.drawPolygon(t,e,i)))return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,i),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([x.SET_FILL_STYLE,"#000"]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([x.SET_STROKE_STYLE,"#000",n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,f.Oq,0]);const a=t.getEnds(),l=t.getOrientedFlatCoordinates(),h=t.getStride();this.drawFlatCoordinatess_(l,0,a,h,o),this.endGeometry(e)}drawMultiPolygon(t,e,i){const n=this.state,s=n.fillStyle,r=n.strokeStyle,o=n.strokeOffset;if(void 0===s&&void 0===r)return;if(this.handleStrokeOffset_(()=>this.drawMultiPolygon(t,e,i)))return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,i),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([x.SET_FILL_STYLE,"#000"]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([x.SET_STROKE_STYLE,"#000",n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,f.Oq,0]);const a=t.getEndss(),l=t.getOrientedFlatCoordinates(),h=t.getStride();let c=0;for(let t=0,e=a.length;t<e;++t)c=this.drawFlatCoordinatess_(l,c,a[t],h,o);this.endGeometry(e)}finish(){this.reverseHitDetectionInstructions(),this.state=null;const t=this.tolerance;if(0!==t){const e=this.coordinates;for(let i=0,n=e.length;i<n;++i)e[i]=(0,S.n$)(e[i],t)}return super.finish()}setFillStrokeStyles_(){const t=this.state;this.updateFillStyle(t,this.createFill),this.updateStrokeStyle(t,this.applyStroke)}handleStrokeOffset_(t){const e=this.state,i=e.fillStyle,n=e.strokeStyle,s=e.strokeOffset;return Math.abs(s)>0&&void 0!==i&&void 0!==n&&(e.strokeStyle=void 0,e.strokeOffset=0,t(),e.fillStyle=void 0,e.strokeStyle=n,e.strokeOffset=s,t(),e.fillStyle=i,!0)}};let C=0,A=1;function R(t,e,i,n,s,r,o,a){const l=o-s,h=a-r;let c=0,u=1;if(0===l){if(s<t||s>i)return!1}else{let e=(t-s)/l,n=(i-s)/l;if(e>n){const t=e;e=n,n=t}if(e>c&&(c=e),n<u&&(u=n),c>u)return!1}if(0===h){if(r<e||r>n)return!1}else{let t=(e-r)/h,i=(n-r)/h;if(t>i){const e=t;t=i,i=e}if(t>c&&(c=t),i<u&&(u=i),c>u)return!1}return C=c,A=u,!0}var I=i(1597);function T(t,e,i,n,s){const r=[];let o=i,a=0,l=e.slice(i,2);for(;a<t&&o+s<n;){const[i,n]=l.slice(-2),h=e[o+s],c=e[o+s+1],u=Math.sqrt((h-i)*(h-i)+(c-n)*(c-n));if(a+=u,a>=t){const e=(t-a+u)/u,d=(0,I.Cc)(i,h,e),g=(0,I.Cc)(n,c,e);l.push(d,g),r.push(l),l=[d,g],a==t&&(o+=s),a=0}else if(a<t)l.push(e[o+s],e[o+s+1]),o+=s;else{const t=u-a,e=(0,I.Cc)(i,h,t/u),d=(0,I.Cc)(n,c,t/u);l.push(e,d),r.push(l),l=[e,d],a=0,o+=s}}return a>0&&r.push(l),r}function M(t,e,i,n,s){let r,o,a,l,h,c,u,d,g,f,_=i,p=i,m=0,y=0,v=i;for(o=i;o<n;o+=s){const i=e[o],n=e[o+1];void 0!==h&&(g=i-h,f=n-c,l=Math.sqrt(g*g+f*f),void 0!==u&&(y+=a,r=Math.acos((u*g+d*f)/(a*l)),r>t&&(y>m&&(m=y,_=v,p=o),y=0,v=o-s)),a=l,u=g,d=f),h=i,c=n}return y+=l,y>m?[v,o]:[_,p]}var b=i(4087);const P={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1}
vendor: 10,366 bytes, line 1
1,O={Circle:w,Default:E,Image:class extends E{constructor(t,e,i,n){super(t,e,i,n),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e,i){if(!this.image_||this.maxExtent&&!(0,a.Ym)(this.maxExtent,t.getFlatCoordinates()))return;this.beginGeometry(t,e,i);const n=t.getFlatCoordinates(),s=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(n,s);this.instructions.push([x.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([x.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e,i){if(!this.image_)return;this.beginGeometry(t,e,i);const n=t.getFlatCoordinates(),s=[];for(let e=0,i=n.length;e<i;e+=t.getStride())this.maxExtent&&!(0,a.Ym)(this.maxExtent,n.slice(e,e+2))||s.push(n[e],n[e+1]);const r=this.coordinates.length,o=this.appendFlatPointCoordinates(s,2);this.instructions.push([x.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([x.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}finish(){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,super.finish()}setImageStyle(t,e){const i=t.getAnchor(),n=t.getSize(),s=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=n[1],this.opacity_=t.getOpacity(),this.originX_=s[0],this.originY_=s[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=n[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}},LineString:class extends E{constructor(t,e,i,n){super(t,e,i,n)}drawFlatCoordinates_(t,e,i,n,s){const r=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,i,n,!1,!1);return this.instructions.push([x.MOVE_TO_LINE_TO,r,o,s*this.pixelRatio]),this.hitDetectionInstructions.push([x.MOVE_TO_LINE_TO,r,o,s]),i}drawLineString(t,e,i){const n=this.state,s=n.strokeStyle,r=n.lineWidth,o=n.strokeOffset;if(void 0===s||void 0===r)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e,i),this.hitDetectionInstructions.push([x.SET_STROKE_STYLE,"#000",n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,f.Oq,0],y);const a=t.getFlatCoordinates(),l=t.getStride();this.drawFlatCoordinates_(a,0,a.length,l,o),this.hitDetectionInstructions.push(m),this.endGeometry(e)}drawMultiLineString(t,e,i){const n=this.state,s=n.strokeStyle,r=n.lineWidth,o=n.strokeOffset;if(void 0===s||void 0===r)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e,i),this.hitDetectionInstructions.push([x.SET_STROKE_STYLE,"#000",n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,f.Oq,0],y);const a=t.getEnds(),l=t.getFlatCoordinates(),h=t.getStride();let c=0;for(let t=0,e=a.length;t<e;++t)c=this.drawFlatCoordinates_(l,c,a[t],h,o);this.hitDetectionInstructions.push(m),this.endGeometry(e)}finish(){const t=this.state;return null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(m),this.reverseHitDetectionInstructions(),this.state=null,super.finish()}applyStroke(t){null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(m),t.lastStroke=this.coordinates.length),t.lastStroke=0,super.applyStroke(t),this.instructions.push(y)}},Polygon:w,Text:class extends E{constructor(t,e,i,n){super(t,e,i,n),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textKeepUpright_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates["#000"]={fillStyle:"#000"},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterMode_=void 0,this.declutterImageWithText_=void 0}finish(){const t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e,i){const n=this.textFillState_,s=this.textStrokeState_,r=this.textState_;if(""===this.text_||!r||!n&&!s)return;const o=this.coordinates;let l=o.length;const h=t.getType();let c=null,u=t.getStride();if("line"!==r.placement||"LineString"!=h&&"MultiLineString"!=h&&"Polygon"!=h&&"MultiPolygon"!=h){let n=r.overflow?null:[];switch(h){case"Point":case"MultiPoint":c=t.getFlatCoordinates();break;case"LineString":c=t.getFlatMidpoint();break;case"Circle":c=t.getCenter();break;case"MultiLineString":c=t.getFlatMidpoints(),u=2;break;case"Polygon":c=t.getFlatInteriorPoint(),r.overflow||n.push(c[2]/this.resolution),u=3;break;case"MultiPolygon":const e=t.getFlatInteriorPoints();c=[];for(let t=0,i=e.length;t<i;t+=3)r.overflow||n.push(e[t+2]/this.resolution),c.push(e[t],e[t+1]);if(0===c.length)return;u=2}const s=this.appendFlatPointCoordinates(c,u);if(s===l)return;if(n&&(s-l)/2!==c.length/u){let t=l/2;n=n.filter((e,i)=>{const n=o[2*(t+i)]===c[i*u]&&o[2*(t+i)+1]===c[i*u+1];return n||--t,n})}this.saveTextStates_();const a=r.backgroundFill?this.createFill(this.fillStyleToState(r.backgroundFill)):null,d=r.backgroundStroke?this.createStroke(this.strokeStyleToState(r.backgroundStroke)):null;this.beginGeometry(t,e,i);let g=r.padding;if(g!=f.Tq&&(r.scale[0]<0||r.scale[1]<0)){let t=r.padding[0],e=r.padding[1],i=r.padding[2],n=r.padding[3];r.scale[0]<0&&(e=-e,n=-n),r.scale[1]<0&&(t=-t,i=-i),g=[t,e,i,n]}const _=this.pixelRatio;this.instructions.push([x.DRAW_IMAGE,l,s,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterMode_,this.declutterImageWithText_,g==f.Tq?f.Tq:g.map(function(t){return t*_}),a,d,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]);const p=1/_,m=a?a.slice(0):null;m&&(m[1]="#000"),this.hitDetectionInstructions.push([x.DRAW_IMAGE,l,s,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[p,p],NaN,this.declutterMode_,this.declutterImageWithText_,g,m,d,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?"#000":this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]),this.endGeometry(e)}else{const n=t.getExtent();if(!(0,a.HY)(this.maxExtent,n))return;let s;if(c=t.getFlatCoordinates(),"LineString"==h)s=[c.length];else if("MultiLineString"==h)s=t.getEnds();else if("Polygon"==h)s=t.getEnds().slice(0,1);else if("MultiPolygon"==h){const e=t.getEndss();s=[];for(let t=0,i=e.length;t<i;++t)s.push(e[t][0])}if(("LineString"==h||"MultiLineString"==h)&&!(0,a.ms)(this.getBufferedMaxExtent(),n)){const t=function(t,e,i,n){const s=n[0],r=n[1],o=n[2],a=n[3],l=[],h=[];let c,u,d=!1,g=0;for(let n=0,f=e.length;n<f;++n){const f=e[n];let _=t[g],p=t[g+1],m=!1;for(let e=g+i;e<f;e+=i){const i=t[e],n=t[e+1];if(R(s,r,o,a,_,p,i,n)){const t=i-_,e=n-p,s=_+C*t,r=p+C*e,o=_+A*t,a=p+A*e;d&&m&&s===c&&r===u?l.push(o,a):(d&&h.push(l.length),l.push(s,r,o,a),d=!0),c=o,u=a,m=!0}_=i,p=n}g=f}return d&&h.push(l.length),{flatCoordinates:l,ends:h}}(c,s,u,this.getBufferedMaxExtent());if(c=t.flatCoordinates,s=t.ends,u=2,0===s.length)return}this.beginGeometry(t,e,i);const d=r.repeat,g=d?void 0:r.textAlign;let f=0;for(let t=0,e=s.length;t<e;++t){let e;e=d?T(d*this.resolution,c,f,s[t],u):[c.slice(f,s[t])];for(let i=0,n=e.length;i<n;++i){const n=e[i];let a=0,h=n.length;if(null==g){const t=M(r.maxAngle,n,0,n.length,2);a=t[0],h=t[1]}for(let t=a;t<h;t+=u)o.push(n[t],n[t+1]);const c=o.length;f=s[t],this.drawChars_(l,c),l=c}}this.endGeometry(e)}}saveTextStates_(){const t=this.textStrokeState_,e=this.textState_,i=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}));const s=this.textKey_;s in this.textStates||(this.textStates[s]={font:e.font,textAlign:e.textAlign||"center",justify:e.justify,textBaseline:e.textBaseline||"middle",scale:e.scale});const r=this.fillKey_;i&&(r in this.fillStates||(this.fillStates[r]={fillStyle:i.fillStyle}))}drawChars_(t,e){const i=this.textStrokeState_,n=this.textState_,s=this.strokeKey_,r=this.textKey_,o=this.fillKey_;this.saveTextStates_();const a=this.pixelRatio,l=P[n.textBaseline],h=this.textOffsetX_*a,c=this.textOffsetY_*a,u=this.text_,d=i?i.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([x.DRAW_CHARS,t,e,l,n.overflow,o,n.maxAngle,a,c,s,d*a,u,r,1,this.declutterMode_,this.textKeepUpright_,h]),this.hitDetectionInstructions.push([x.DRAW_CHARS,t,e,l,n.overflow,o?"#000":o,n.maxAngle,a,c,s,d*a,u,r,1/a,this.declutterMode_,this.textKeepUpright_,h])}setTextStyle(t,e){let i,n,s;
1if(t){const e=t.getFill();e?(n=this.textFillState_,n||(n={},this.textFillState_=n),n.fillStyle=(0,c.F)(e.getColor()||"#000")):(n=null,this.textFillState_=n);const r=t.getStroke();if(r){s=this.textStrokeState_,s||(s={},this.textStrokeState_=s);const t=r.getLineDash(),e=r.getLineDashOffset(),i=r.getWidth(),n=r.getMiterLimit();s.lineCap=r.getLineCap()||"round",s.lineDash=t?t.slice():f.Oq,s.lineDashOffset=void 0===e?0:e,s.lineJoin=r.getLineJoin()||"round",s.lineWidth=void 0===i?1:i,s.miterLimit=void 0===n?10:n,s.strokeStyle=(0,c.F)(r.getColor()||"#000")}else s=null,this.textStrokeState_=s;i=this.textState_;const o=t.getFont()||f.ZV;(0,f.fZ)(o);const a=t.getScaleArray();i.overflow=t.getOverflow(),i.font=o,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.repeat=t.getRepeat(),i.justify=t.getJustify(),i.textBaseline=t.getTextBaseline()||"middle",i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||f.Tq,i.scale=void 0===a?[1,1]:a;const l=t.getOffsetX(),h=t.getOffsetY(),u=t.getRotateWithView(),d=t.getKeepUpright(),g=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===l?0:l,this.textOffsetY_=void 0===h?0:h,this.textRotateWithView_=void 0!==u&&u,this.textKeepUpright_=void 0===d||d,this.textRotation_=void 0===g?0:g,this.strokeKey_=s?("string"==typeof s.strokeStyle?s.strokeStyle:(0,b.v6)(s.strokeStyle))+s.lineCap+s.lineDashOffset+"|"+s.lineWidth+s.lineJoin+s.miterLimit+"["+s.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.repeat||"?")+(i.justify||"?")+(i.textBaseline||"?"),this.fillKey_=n&&n.fillStyle?"string"==typeof n.fillStyle?n.fillStyle:"|"+(0,b.v6)(n.fillStyle):""}else this.text_="";this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}}},L=class{constructor(t,e,i,n){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=n,this.resolution_=i,this.buildersByZIndex_={}}finish(){const t={};for(const e in this.buildersByZIndex_){t[e]=t[e]||{};const i=this.buildersByZIndex_[e];for(const n in i){const s=i[n].finish();t[e][n]=s}}return t}getBuilder(t,e){const i=void 0!==t?t.toString():"0";let n=this.buildersByZIndex_[i];void 0===n&&(n={},this.buildersByZIndex_[i]=n);let s=n[e];return void 0===s&&(s=new(0,O[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[e]=s),s}};var D=i(7622),F=i(3530),k=i(9703);function N(t,e,i,n){let s=t[e],r=t[e+1],o=0;for(let a=e+n;a<i;a+=n){const e=t[a],i=t[a+1];o+=Math.sqrt((e-s)*(e-s)+(i-r)*(i-r)),s=e,r=i}return o}function G(t,e,i,n,s,r,o,a){o=o??[],a=a??n;const l=t[e+n],h=t[e+n+1],c=t[i-2*n],u=t[i-2*n+1];let d,g,f,_,p,m,y,v,x=0;for(let E=e;E<i;E+=n){f=d,_=g,p=void 0,m=void 0,E+n<i&&(p=t[E+n],m=t[E+n+1]),r&&E===e&&(f=c,_=u),r&&E===i-n&&(p=l,m=h),d=t[E],g=t[E+1],[y,v]=z(d,g,f,_,p,m,s),o[x++]=y,o[x++]=v;for(let e=2;e<a;e++)o[x++]=t[E+e]}return o.length!=x&&(o.length=x),o}function z(t,e,i,n,s,o,a){let l,h;void 0!==i&&void 0!==n?(l=t-i,h=e-n):void 0!==s&&void 0!==o?(l=s-t,h=o-e):(l=1,h=0);const c=Math.hypot(l,h),u=l/c,d=h/c;if(l=-d,h=u,void 0===i||void 0===n)return[t+l*a,e+h*a];if(void 0===s||void 0===o)return[t+l*a,e+h*a];const g=(0,r.s5)([t,e],[i,n],[s,o]);if(Math.cos(g)>.998)return[t+u*a,e+d*a];const f=Math.cos(g/2),_=Math.sin(g/2);return[t+1/_*(_*l+f*h)*a,e+1/_*(-f*l+_*h)*a]}function W(t,e,i=!1){for(let n=0,s=t.length-2;n<s;n+=e)for(let s=i&&0===n?t.length-3*e:t.length-2*e;s>n+e;s-=e){const i=t[n],r=t[n+1],o=t[n+e],a=t[n+e+1],l=t[s],h=t[s+1],c=t[s+e],u=t[s+e+1],d=(u-h)*(o-i)-(c-l)*(a-r);if(0===d)continue;const g=((c-l)*(r-h)-(u-h)*(i-l))/d,f=((o-i)*(r-h)-(a-r)*(i-l))/d;if(g>0&&g<1&&f>0&&f<1){const l=i+g*(o-i),h=r+g*(a-r);t[n+e]=l,t[n+e+1]=h,t.splice(n+2*e,s-n-e);break}}return t}let K;function Y(t,e,i,n,s,r,o,a,l,h,c,u,d=!0){let g=t[e],f=t[e+1],_=0,p=0,m=0,y=0;function v(){_=g,p=f,g=t[e+=n],f=t[e+1],y+=m,m=Math.sqrt((g-_)*(g-_)+(f-p)*(f-p))}do{v()}while(e<i-n&&y+m<r);let x=0===m?0:(r-y)/m;const E=(0,I.Cc)(_,g,x),S=(0,I.Cc)(p,f,x),w=e-n,C=y,A=r+a*l(h,s,c);for(;e<i-n&&y+m<A;)v();x=0===m?0:(A-y)/m;const R=(0,I.Cc)(_,g,x),T=(0,I.Cc)(p,f,x);let M=!1;if(d)if(u){const t=[E,S,R,T];(0,D.e$)(t,0,4,2,u,t,t),M=t[0]>t[2]}else M=E>R;const b=Math.PI,P=[],O=w+n===e;let L;if(m=0,y=C,g=t[e=w],f=t[e+1],O){v(),L=Math.atan2(f-p,g-_),M&&(L+=L>0?-b:b);const t=(R+E)/2,e=(T+S)/2;return P[0]=[t,e,(A-r)/2,L,s],P}s=s.replace(/\n/g," ");const F=Array.from((K||(K=new Intl.Segmenter(void 0,{granularity:"grapheme"})),K).segment(s),t=>
vendor: 23,542 bytes, line 1
1t.segment);for(let t=0,s=F.length;t<s;){v();let u=Math.atan2(f-p,g-_);if(M&&(u+=u>0?-b:b),void 0!==L){let t=u-L;if(t+=t>b?-2*b:t<-b?2*b:0,Math.abs(t)>o)return null}L=u;const d=t;let E=0;for(;t<s;++t){const o=a*l(h,F[M?s-t-1:t],c);if(e+n<i&&y+m<r+E+o/2)break;E+=o}if(t===d)continue;const S=(M?F.slice(s-t,s-d):F.slice(d,t)).join("");x=0===m?0:(r+E/2-y)/m;const w=(0,I.Cc)(_,g,x),C=(0,I.Cc)(p,f,x);P.push([w,C,E/2,u,S]),r+=E}return P}var X=i(808);const B=(0,a.S5)(),V=[],Z=[],j=[],H=[];function q(t){return t[3].declutterBox}const U=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 $(t,e){return"start"===e?e=U.test(t)?"right":"left":"end"===e&&(e=U.test(t)?"left":"right"),P[e]}function J(t,e,i){return i>0&&t.push("\n",""),t.push(e,""),t}function Q(t,e,i){return i%2==0&&(t+=e),t}const tt=class{constructor(t,e,i,n,s){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignAndScaleFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,k.vt)(),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_={},this.zIndexContext_=s?new X.A:null}getZIndexContext(){return this.zIndexContext_}createLabel(t,e,i,n){const s=t+e+i+n;if(this.labels_[s])return this.labels_[s];const r=n?this.strokeStates[n]:null,o=i?this.fillStates[i]:null,a=this.textStates[e],l=this.pixelRatio,h=[a.scale[0]*l,a.scale[1]*l],c=a.justify?P[a.justify]:$(Array.isArray(t)?t[0]:t,a.textAlign||"center"),u=n&&r.lineWidth?r.lineWidth:0,d=Array.isArray(t)?t:String(t).split("\n").reduce(J,[]),{width:g,height:_,widths:p,heights:m,lineWidths:y}=(0,f.jT)(a,d),v=g+u,x=[],E=(v+2)*h[0],S=(_+u)*h[1],w={width:E<0?Math.floor(E):Math.ceil(E),height:S<0?Math.floor(S):Math.ceil(S),contextInstructions:x};1==h[0]&&1==h[1]||x.push("scale",h),n&&(x.push("strokeStyle",r.strokeStyle),x.push("lineWidth",u),x.push("lineCap",r.lineCap),x.push("lineJoin",r.lineJoin),x.push("miterLimit",r.miterLimit),x.push("setLineDash",[r.lineDash]),x.push("lineDashOffset",r.lineDashOffset)),i&&x.push("fillStyle",o.fillStyle),x.push("textBaseline","middle"),x.push("textAlign","center");const C=.5-c;let A=c*v+C*u;const R=[],I=[];let T,M=0,b=0,O=0,L=0;for(let t=0,e=d.length;t<e;t+=2){const e=d[t];if("\n"===e){b+=M,M=0,A=c*v+C*u,++L;continue}const s=d[t+1]||a.font;s!==T&&(n&&R.push("font",s),i&&I.push("font",s),T=s),M=Math.max(M,m[O]);const r=[e,A+C*p[O]+c*(p[O]-y[L]),.5*(u+M)+b];A+=p[O],n&&R.push("strokeText",r),i&&I.push("fillText",r),++O}return Array.prototype.push.apply(x,R),Array.prototype.push.apply(x,I),this.labels_[s]=w,w}replayTextBackground_(t,e,i,n,s,r,o){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,i),t.lineTo.apply(t,n),t.lineTo.apply(t,s),t.lineTo.apply(t,e),r&&(this.alignAndScaleFill_=r[2],t.fillStyle=r[1],this.fill_(t)),o&&(this.setStrokeStyle_(t,o),t.stroke())}calculateImageOrLabelDimensions_(t,e,i,n,s,r,o,l,h,c,u,d,g,f,_,p){let m=i-(o*=d[0]),y=n-(l*=d[1]);const v=s+h>t?t-h:s,x=r+c>e?e-c:r,E=f[3]+v*d[0]+f[1],S=f[0]+x*d[1]+f[2],w=m-f[3],C=y-f[0];let A;return(_||0!==u)&&(V[0]=w,H[0]=w,V[1]=C,Z[1]=C,Z[0]=w+E,j[0]=Z[0],j[1]=C+S,H[1]=j[1]),0!==u?(A=(0,k.Zz)((0,k.vt)(),i,n,1,1,u,-i,-n),(0,k.Bb)(A,V),(0,k.Bb)(A,Z),(0,k.Bb)(A,j),(0,k.Bb)(A,H),(0,a.N)(Math.min(V[0],Z[0],j[0],H[0]),Math.min(V[1],Z[1],j[1],H[1]),Math.max(V[0],Z[0],j[0],H[0]),Math.max(V[1],Z[1],j[1],H[1]),B)):(0,a.N)(Math.min(w,w+E),Math.min(C,C+S),Math.max(w,w+E),Math.max(C,C+S),B),g&&(m=Math.round(m),y=Math.round(y)),{drawImageX:m,drawImageY:y,drawImageW:v,drawImageH:x,originX:h,originY:c,declutterBox:{minX:B[0],minY:B[1],maxX:B[2],maxY:B[3],value:p},canvasTransform:A,scale:d}}replayImageOrLabel_(t,e,i,n,s,r,o){const a=!(!r&&!o),l=n.declutterBox,h=o?o[2]*n.scale[0]/2:0;return l.minX-h<=e[0]&&l.maxX+h>=0&&l.minY-h<=e[1]&&l.maxY+h>=0&&(a&&this.replayTextBackground_(t,V,Z,j,H,r,o),(0,f.Jw)(t,n.canvasTransform,s,i,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0}fill_(t){const e=this.alignAndScaleFill_;if(e){const i=(0,k.Bb)(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;t.save(),t.translate(i[0]%n,i[1]%n),1!==e&&t.scale(e,e)}t.fill(),e&&t.restore()}setStrokeStyle_(t,e){t.strokeStyle=e[1],e[1]&&(t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.lineDashOffset=e[7],t.setLineDash(e[6]))}drawLabelWithPointPlacement_(t,e,i,n){const s=this.textStates[e],r=this.createLabel(t,e,n,i),o=this.strokeStates[i],a=this.pixelRatio,l=$(Array.isArray(t)?t[0]:t,s.textAlign||"center"),h=P[s.textBaseline||"middle"],c=o&&o.lineWidth?o.lineWidth:0;return{label:r,anchorX:l*(r.width/a-2*s.scale[0])+2*(.5-l)*c,anchorY:h*r.height/a+2*(.5-h)*c}}execute_(t,e,i,n,r,o,l,h){const c=this.zIndexContext_;let u;this.pixelCoordinates_&&(0,s.aI)(i,this.renderedTransform_)?u=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),u=(0,D.Rc)(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),(0,k.k3)(this.renderedTransform_,i));let d=0;const g=n.length;let _,p=0;const m=[];let y,v,E,S,w,C,A,R,I,T,M,b,P,O=0,L=0;const F=this.coordinateCache_,z=this.viewRotation_,K=Math.round(1e12*Math.atan2(-i[1],i[0]))/1e12,X={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:z},B=this.instructions!=n||this.overlaps?0:200;let V,Z,j,H;for(;d<g;){const i=n[d];switch(i[0]){case x.BEGIN_GEOMETRY:V=i[1],H=i[3],V.getGeometry()?void 0===l||(0,a.HY)(l,H.getExtent())?++d:d=i[2]+1:d=i[2],c&&(c.zIndex=i[4]);break;case x.BEGIN_PATH:O>B&&(this.fill_(t),O=0),L>B&&(t.stroke(),L=0),O||L||(t.beginPath(),w=NaN,C=NaN),++d;break;case x.CIRCLE:p=i[1],E=i[2]??0;const n=u[p],s=u[p+1],g=u[p+2]-E-n,D=u[p+3]-E-s,k=Math.sqrt(g*g+D*D);t.moveTo(n+k,s),t.arc(n,s,k,0,2*Math.PI,!0),++d;break;case x.CLOSE_PATH:t.closePath(),++d;break;case x.CUSTOM:p=i[1],_=i[2];const U=i[3],J=i[4],tt=i[5];X.geometry=U,X.feature=V,d in F||(F[d]=[]);const et=F[d];tt?tt(u,p,_,2,et):(et[0]=u[p],et[1]=u[p+1],et.length=2),c&&(c.zIndex=i[6]),J(et,X),++d;break;case x.DRAW_IMAGE:p=i[1],_=i[2],I=i[3],y=i[4],v=i[5];let it=i[6];const nt=i[7],st=i[8],rt=i[9],ot=i[10];let at=i[11];const lt=i[12];let ht=i[13];S=i[14]||"declutter";const ct=i[15];if(!I&&i.length>=20){T=i[19],M=i[20],b=i[21],P=i[22];const t=this.drawLabelWithPointPlacement_(T,M,b,P);I=t.label,i[3]=I;const e=i[23];y=(t.anchorX-e)*this.pixelRatio,i[4]=y;const n=i[24];v=(t.anchorY-n)*this.pixelRatio,i[5]=v,it=I.height,i[6]=it,ht=I.width,i[13]=ht}let ut,dt,gt,ft;i.length>25&&(ut=i[25]),i.length>17?(dt=i[16],gt=i[17],ft=i[18]):(dt=f.Tq,gt=null,ft=null),ot&&K?at+=z:ot||K||(at-=z);let _t=0;for(;p<_;p+=2){if(ut&&ut[_t++]<ht/this.pixelRatio)continue;const i=this.calculateImageOrLabelDimensions_(I.width,I.height,u[p],u[p+1],ht,it,y,v,st,rt,at,lt,r,dt,!!gt||!!ft,V),n=[t,e,I,i,nt,gt,ft];if(h){let t,e,s,r,o;if(ct){const i=_-p;if(!ct[i]){ct[i]={args:n,declutterMode:S};continue}const r=ct[i];t=r.args,e=r.declutterMode,delete ct[i],s=q(t)}if(!t||"declutter"===e&&h.collides(s)||(r=!0),"declutter"===S&&h.collides(i.declutterBox)||(o=!0),"declutter"===e&&"declutter"===S){const t=r&&o;r=t,o=t}r&&("none"!==e&&h.insert(s),this.replayImageOrLabel_.apply(this,t)),o&&("none"!==S&&h.insert(i.declutterBox),this.replayImageOrLabel_.apply(this,n))}else this.replayImageOrLabel_.apply(this,n)}++d;break;case x.DRAW_CHARS:const pt=i[1],mt=i[2],yt=i[3],vt=i[4];P=i[5];const xt=i[6],Et=i[7],St=i[8];b=i[9];const wt=i[10];T=i[11],Array.isArray(T)&&(T=T.reduce(Q,"")),M=i[12];const Ct=[i[13],i[13]];S=i[14]||"declutter";const At=i[15],Rt=i[16],It=this.textStates[M],Tt=It.font,Mt=[It.scale[0]*Et,It.scale[1]*Et];let bt;Tt in this.widths_?bt=this.widths_[Tt]:(bt={},this.widths_[Tt]=bt);const Pt=N(u,pt,mt,2),Ot=Math.abs(Mt[0])*(0,f.TA)(Tt,T,bt);if(vt||Ot<=Pt){const i=Y(u,pt,mt,2,T,(Pt-Ot)*$(T,this.textStates[M].textAlign),xt,Math.abs(Mt[0]),f.TA,Tt,bt,K?0:this.viewRotation_,At);t:if(i){const n=[];let s,r,o,a,l;if(b)for(s=0,r=i.length;s<r;++s){l=i[s],o=l[4],a=this.createLabel(o,M,"",b),y=l[2]+(Mt[0]<0?-wt:wt)-Rt,v=yt*a.height+2*(.5-yt)*wt*Mt[1]/Mt[0]-St;const r=this.calculateImageOrLabelDimensions_(a.width,a.height,l[0],l[1],a.width,a.height,y,v,0,0,l[3],Ct,!1,f.Tq,!1,V);if(h&&"declutter"===S&&h.collides(r.declutterBox))break t;n.push([t,e,a,r,1,null,null])}if(P)for(s=0,r=i.length;s<r;++s){l=i[s],o=l[4],a=this.createLabel(o,M,P,""),y=l[2]-Rt,v=yt*a.height-St;const r=this.calculateImageOrLabelDimensions_(a.width,a.height,l[0],l[1],a.width,a.height,y,v,0,0,l[3],Ct,!1,f.Tq,!1,V);if(h&&"declutter"===S&&h.collides(r.declutterBox))break t;n.push([t,e,a,r,1,null,null])}h&&"none"!==S&&h.load(n.map(q));for(let t=0,e=n.length;t<e;++t)this.replayImageOrLabel_.apply(this,n[t])}}++d;break;case x.END_GEOMETRY:if(void 0!==o){V=i[1];const t=o(V,H,S);if(t)return t}++d;break;case x.FILL:B?O++:this.fill_(t),++d;break;case x.MOVE_TO_LINE_TO:let Lt,Dt,Ft;if(p=i[1],_=i[2],E=i[3],E){const t=(i[4]??!1)||Math.abs(u[p]-u[_-2])<1e-6&&Math.abs(u[p+1]-u[_-1])<1e-6;G(u,p,_,2,E,t,m),W(m,2,t),Lt=m,Dt=0,Ft=Lt.length}else Lt=u,Dt=p,Ft=_;Z=Lt[Dt],j=Lt[Dt+1],t.moveTo(Z,j),w=Z+.5|0,C=j+.5|0;for(let e=Dt+2;e<Ft;e+=2)Z=Lt[e],j=Lt[e+1],A=Z+.5|0,R=j+.5|0,e!=Ft-2&&A===w&&R===C||(t.lineTo(Z,j),w=A,C=R);++d;break;case x.SET_FILL_STYLE:this.alignAndScaleFill_=i[2],O?(this.fill_(t),O=0,L&&(t.stroke(),L=0)):L&&i[1]&&(t.stroke(),L=0),t.fillStyle=i[1],++d;break;case x.SET_STROKE_STYLE:O&&i[1]&&(this.fill_(t),O=0),L&&(t.stroke(),L=0),this.setStrokeStyle_(t,i),++d;break;case x.STROKE:B?L++:t.stroke(),++d;break;default:++d}}O&&this.fill_(t),L&&t.stroke()}execute(t,e,i,n,s,r){this.viewRotation_=n,this.execute_(t,e,i,this.instructions,s,void 0,void 0,r)}executeHitDetection(t,e,i,n,s){return this.viewRotation_=i,this.execute_(t,[t.canvas.width,t.canvas.height],e,this.hitDetectionInstructions,!0,n,s)}},et=["Polygon","Circle","LineString","Image","Text","Default"],it=["Image","Text"],nt=et.filter(t=>!it.includes(t));let st=!1,rt=!1;const ot={},at=class{constructor(t,e,i,n,s,r,o){this.maxExtent_=t,this.overlaps_=n,this.pixelRatio_=i,this.resolution_=e,this.renderBuffer_=r,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,k.vt)(),this.renderedContext_=null,this.deferredZIndexContexts_={},this.createExecutors_(s,o)}clip(t,e){const i=this.getClipCoords(e);t.beginPath(),t.moveTo(i[0],i[1]),t.lineTo(i[2],i[3]),t.lineTo(i[4],i[5]),t.lineTo(i[6],i[7]),t.clip()}createExecutors_(t,e){for(const i in t){let n=this.executorsByZIndex_[i];void 0===n&&(n={},this.executorsByZIndex_[i]=n);const s=t[i];for(const t in s){const i=s[t];n[t]=new tt(this.resolution_,this.pixelRatio_,this.overlaps_,i,e)}}}hasExecutors(t){for(const e in this.executorsByZIndex_){const i=this.executorsByZIndex_[e];for(let e=0,n=t.length;e<n;++e)if(t[e]in i)return!0}return!1}forEachFeatureAtCoordinate(t,e,i,n,r,l){!1===rt&&function(){let t=0;const e=e=>{const i=(0,o.Y)(1,1,null,{willReadFrequently:e});let n=0;const s=performance.now();for(;performance.now()-s<50;++n)i.fillStyle=`rgba(255,0,${n%256},1)`,i.fillRect(0,0,1,1),i.getImageData(0,0,1,1);return t=n>t?n:t,n},i={[e(!0)]:!0,[e(!1)]:!1,[e(void 0)]:void 0};st=i[t],rt=!0}();const h=2*(n=Math.round(n))+1,c=(0,k.Zz)(this.hitDetectionTransform_,n+.5,n+.5,1/e,-1/e,-i,-t[0],-t[1]),u=!this.hitDetectionContext_;u&&(this.hitDetectionContext_=(0,o.Y)(h,h,null,{willReadFrequently:st}));const d=this.hitDetectionContext_;let g;d.canvas.width!==h||d.canvas.height!==h?(d.canvas.width=h,d.canvas.height=h):u||d.clearRect(0,0,h,h),void 0!==this.renderBuffer_&&(g=(0,a.S5)(),(0,a.$C)(g,t),(0,a.r)(g,e*(this.renderBuffer_+n),g));const f=function(t){if(void 0!==ot[t])return ot[t];const e=2*t+1,i=t*t,n=new Array(i+1);for(let s=0;s<=t;++s)for(let r=0;r<=t;++r){const o=s*s+r*r;if(o>i)break;let a=n[o];a||(a=[],n[o]=a),a.push(4*((t+s)*e+(t+r))+3),s>0&&a.push(4*((t-s)*e+(t+r))+3),r>0&&(a.push(4*((t+s)*e+(t-r))+3),s>0&&a.push(4*((t-s)*e+(t-r))+3))}const s=[];for(let t=0,e=n.length;t<e;++t)n[t]&&s.push(...n[t]);return ot[t]=s,s}(n);let _;function p(t,e,i){const s=d.getImageData(0,0,h,h).data;for(let o=0,a=f.length;o<a;o++)if(s[f[o]]>0){if(!l||"none"===i||"Image"!==_&&"Text"!==_||l.includes(t)){const i=(f[o]-3)/4,s=n-i%h,a=n-(i/h|0),l=r(t,e,s*s+a*a);if(l)return l}d.clearRect(0,0,h,h);break}}const m=Object.keys(this.executorsByZIndex_).map(Number);let y,v,x,E,S;for(m.sort(s.V_),y=m.length-1;y>=0;--y){const t=m[y].toString();for(x=this.executorsByZIndex_[t],v=et.length-1;v>=0;--v)if(_=et[v],E=x[_],void 0!==E&&(S=E.executeHitDetection(d,c,i,p,g),S))return S}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const i=e[0],n=e[1],s=e[2],r=e[3],o=[i,n,i,r,s,r,s,n];return(0,D.Rc)(o,0,8,2,t,o),o}isEmpty(){return(0,F.p)(this.executorsByZIndex_)}execute(t,e,i,n,r,o,a){const l=Object.keys(this.executorsByZIndex_).map(Number);l.sort(a?s.rG:s.V_),o=o||et;const h=et.length;for(let s=0,c=l.length;s<c;++s){const c=l[s].toString(),u=this.executorsByZIndex_[c];for(let c=0,d=o.length;c<d;++c){const d=o[c],g=u[d];if(void 0!==g){const o=null===a?void 0:g.getZIndexContext(),c=o?o.getContext():t,u=this.maxExtent_&&"Image"!==d&&"Text"!==d;if(u&&(c.save(),this.clip(c,i)),o&&"Text"!==d&&"Image"!==d?o.pushFunction(t=>g.execute(t,e,i,n,r,a)):g.execute(c,e,i,n,r,a),u&&c.restore(),o){o.offset();const t=l[s]*h+et.indexOf(d);this.deferredZIndexContexts_[t]||(this.deferredZIndexContexts_[t]=[]),this.deferredZIndexContexts_[t].push(o)}}}}this.renderedContext_=t}getDeferredZIndexContexts(){return this.deferredZIndexContexts_}getRenderedContext(){return this.renderedContext_}renderDeferred(){const t=this.deferredZIndexContexts_,e=Object.keys(t).map(Number).sort(s.V_);for(let i=0,n=e.length;i<n;++i)t[e[i]].forEach(t=>{t.draw(this.renderedContext_),t.clear()}),t[e[i]].length=0}};var lt=i(9700),ht=i(4774);const ct=class extends g{constructor(t,e,i,n,s,r,o){super(),this.context_=t,this.pixelRatio_=e,this.extent_=i,this.transform_=n,this.transformRotation_=n?(0,I.Mg)(Math.atan2(n[1],n[0]),10):0,this.viewRotation_=s,this.squaredTolerance_=r,this.userTransform_=o,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=[0,0],this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=[0,0],this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=(0,k.vt)()}drawImages_(t,e,i,n){if(!this.image_)return;const s=(0,D.Rc)(t,e,i,n,this.transform_,this.pixelCoordinates_),r=this.context_,o=this.tmpLocalTransform_,a=r.globalAlpha;1!=this.imageOpacity_&&(r.globalAlpha=a*this.imageOpacity_);let l=this.imageRotation_;0===this.transformRotation_&&(l-=this.viewRotation_),this.imageRotateWithView_&&(l+=this.viewRotation_);for(let t=0,e=s.length;t<e;t+=2){const e=s[t]-this.imageAnchorX_,i=s[t+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_[0]||1!=this.imageScale_[1]){const t=e+this.imageAnchorX_,n=i+this.imageAnchorY_;(0,k.Zz)(o,t,n,1,1,l,-t,-n),r.save(),r.transform.apply(r,o),r.translate(t,n),r.scale(this.imageScale_[0],this.imageScale_[1]),r.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),r.restore()}else r.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,e,i,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(r.globalAlpha=a)}drawText_(t,e,i,n){if(!this.textState_||""===this.text_)return;this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);const s=(0,D.Rc)(t,e,i,n,this.transform_,this.pixelCoordinates_),r=this.context_;let o=this.textRotation_;for(0===this.transformRotation_&&(o-=this.viewRotation_),this.textRotateWithView_&&(o+=this.viewRotation_);e<i;e+=n){const t=s[e]+this.textOffsetX_,i=s[e+1]+this.textOffsetY_;0!==o||1!=this.textScale_[0]||1!=this.textScale_[1]?(r.save(),r.translate(t-this.textOffsetX_,i-this.textOffsetY_),r.rotate(o),r.translate(this.textOffsetX_,this.textOffsetY_),r.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&r.strokeText(this.text_,0,0),this.textFillState_&&r.fillText(this.text_,0,0),r.restore()):(this.textStrokeState_&&r.strokeText(this.text_,t,i),this.textFillState_&&r.fillText(this.text_,t,i))}}moveToLineTo_(t,e,i,n,s,r){const o=this.context_;let a=(0,D.Rc)(t,e,i,n,this.transform_,this.pixelCoordinates_);if(Math.abs(r)>0){const t=a.length,e=s||Math.abs(a[0]-a[t-2])<1e-6&&Math.abs(a[1]-a[t-1])<1e-6;a=G(a,0,t,2,r,e,a),W(a,2,e)}o.moveTo(a[0],a[1]);let l=a.length;s&&(l-=2);for(let t=2;t<l;t+=2)o.lineTo(a[t],a[t+1]);return s&&o.closePath(),i}drawRings_(t,e,i,n,s){for(let r=0,o=i.length;r<o;++r)e=this.moveToLineTo_(t,e,i[r],n,!0,s);return e}drawCircle(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,a.HY)(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=(0,ht.v7)(t,this.transform_,this.pixelCoordinates_),i=e[2]-e[0],n=e[3]-e[1],s=Math.sqrt(i*i+n*n),r=this.context_;r.beginPath(),r.arc(e[0],e[1],s,0,2*Math.PI),this.fillState_&&r.fill(),this.strokeState_&&r.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}}setStyle(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())}setTransform(t){this.transform_=t}drawGeometry(t){switch(t.getType()){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)}}drawFeature(t,e){const i=e.getGeometryFunction()(t);i&&(this.setStyle(e),this.drawGeometry(i))}drawGeometryCollection(t){const e=t.getGeometriesArray();for(let t=0,i=e.length;t<i;++t)this.drawGeometry(e[t])}drawPoint(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)}drawMultiPoint(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)}drawLineString(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,a.HY)(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,i=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(i,0,i.length,t.getStride(),!1,this.strokeState_.strokeOffset),e.stroke()}if(""!==this.text_){const e=t.getFlatMidpoint();this.drawText_(e,0,2,2)}}}drawMultiLineString(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getExtent();if((0,a.HY)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,i=t.getFlatCoordinates();let n=0;const s=t.getEnds(),r=t.getStride();e.beginPath();for(let t=0,e=s.length;t<e;++t)n=this.moveToLineTo_(i,n,s[t],r,!1,this.strokeState_.strokeOffset);e.stroke()}if(""!==this.text_){const e=t.getFlatMidpoints();this.drawText_(e,0,e.length,2)}}}drawPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,a.HY)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride(),this.strokeState_?.strokeOffset),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){const e=t.getFlatInteriorPoint();this.drawText_(e,0,2,2)}}}drawMultiPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,a.HY)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=this.context_,i=t.getOrientedFlatCoordinates();let n=0;const s=t.getEndss(),r=t.getStride();e.beginPath();for(let t=0,e=s.length;t<e;++t){const e=s[t];n=this.drawRings_(i,n,e,r,this.strokeState_?.strokeOffset)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){const e=t.getFlatInteriorPoints();this.drawText_(e,0,e.length,2)}}}setContextFillState_(t){const e=this.context_,i=this.contextFillState_;i?i.fillStyle!=t.fillStyle&&(i.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})}setContextStrokeState_(t){const e=this.context_,i=this.contextStrokeState_;i?(i.lineCap!=t.lineCap&&(i.lineCap=t.lineCap,e.lineCap=t.lineCap),(0,s.aI)(i.lineDash,t.lineDash)||e.setLineDash(i.lineDash=t.lineDash),i.lineDashOffset!=t.lineDashOffset&&(i.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset),i.lineJoin!=t.lineJoin&&(i.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),i.lineWidth!=t.lineWidth&&(i.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),i.miterLimit!=t.miterLimit&&(i.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),i.strokeStyle!=t.strokeStyle&&(i.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash(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})}setContextTextState_(t){const e=this.context_,i=this.contextTextState_,n=t.textAlign?t.textAlign:"center";i?(i.font!=t.font&&(i.font=t.font,e.font=t.font),i.textAlign!=n&&(i.textAlign=n,e.textAlign=n),i.textBaseline!=t.textBaseline&&(i.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})}setFillStrokeStyle(t,e){if(t){const e=t.getColor();this.fillState_={fillStyle:(0,c.F)(e||"#000")}}else this.fillState_=null;if(e){const t=e.getColor(),i=e.getLineCap(),n=e.getLineDash(),s=e.getLineDashOffset(),r=e.getLineJoin(),o=e.getWidth(),a=e.getMiterLimit(),l=n||f.Oq,h=e.getOffset();
1this.strokeState_={lineCap:void 0!==i?i:"round",lineDash:1===this.pixelRatio_?l:l.map(t=>t*this.pixelRatio_),lineDashOffset:(s||0)*this.pixelRatio_,lineJoin:void 0!==r?r:"round",lineWidth:(void 0!==o?o:1)*this.pixelRatio_,miterLimit:void 0!==a?a:10,strokeStyle:(0,c.F)(t||"#000"),strokeOffset:(h??0)*this.pixelRatio_}}else this.strokeState_=null}setImageStyle(t){let e;if(!t||!(e=t.getSize()))return void(this.image_=null);const i=t.getPixelRatio(this.pixelRatio_),n=t.getAnchor(),s=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*i,this.imageAnchorY_=n[1]*i,this.imageHeight_=e[1]*i,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=s[0],this.imageOriginY_=s[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const r=t.getScaleArray();this.imageScale_=[r[0]*this.pixelRatio_/i,r[1]*this.pixelRatio_/i],this.imageWidth_=e[0]*i}setTextStyle(t){if(t){const e=t.getFill();if(e){const t=e.getColor();this.textFillState_={fillStyle:(0,c.F)(t||"#000")}}else this.textFillState_=null;const i=t.getStroke();if(i){const t=i.getColor(),e=i.getLineCap(),n=i.getLineDash(),s=i.getLineDashOffset(),r=i.getLineJoin(),o=i.getWidth(),a=i.getMiterLimit();this.textStrokeState_={lineCap:void 0!==e?e:"round",lineDash:n||f.Oq,lineDashOffset:s||0,lineJoin:void 0!==r?r:"round",lineWidth:void 0!==o?o:1,miterLimit:void 0!==a?a:10,strokeStyle:(0,c.F)(t||"#000")}}else this.textStrokeState_=null;const n=t.getFont(),s=t.getOffsetX(),r=t.getOffsetY(),o=t.getRotateWithView(),a=t.getRotation(),l=t.getScaleArray(),h=t.getText(),u=t.getTextAlign(),d=t.getTextBaseline();this.textState_={font:void 0!==n?n:f.ZV,textAlign:void 0!==u?u:"center",textBaseline:void 0!==d?d:"middle"},this.text_=void 0!==h?Array.isArray(h)?h.reduce((t,e,i)=>t+(i%2?" ":e),""):h:"",this.textOffsetX_=void 0!==s?this.pixelRatio_*s:0,this.textOffsetY_=void 0!==r?this.pixelRatio_*r:0,this.textRotateWithView_=void 0!==o&&o,this.textRotation_=void 0!==a?a:0,this.textScale_=[this.pixelRatio_*l[0],this.pixelRatio_*l[1]]}else this.text_=""}},ut=.5;var dt=i(6141);const gt={Point:function(t,e,i,n,s,r){const o=i.getImage(),a=i.getText(),l=a&&a.getText(),h=r&&o&&l?{}:void 0;if(o){if(o.getImageState()!=dt.A.LOADED)return;const r=t.getBuilder(i.getZIndex(),"Image");r.setImageStyle(o,h),r.drawPoint(e,n,s)}if(l){const r=t.getBuilder(i.getZIndex(),"Text");r.setTextStyle(a,h),r.drawText(e,n,s)}},LineString:function(t,e,i,n,s){const r=i.getStroke();if(r){const o=t.getBuilder(i.getZIndex(),"LineString");o.setFillStrokeStyle(null,r),o.drawLineString(e,n,s)}const o=i.getText();if(o&&o.getText()){const r=t.getBuilder(i.getZIndex(),"Text");r.setTextStyle(o),r.drawText(e,n,s)}},Polygon:function(t,e,i,n,s){const r=i.getFill(),o=i.getStroke();if(r||o){const a=t.getBuilder(i.getZIndex(),"Polygon");a.setFillStrokeStyle(r,o),a.drawPolygon(e,n,s)}const a=i.getText();if(a&&a.getText()){const r=t.getBuilder(i.getZIndex(),"Text");r.setTextStyle(a),r.drawText(e,n,s)}},MultiPoint:function(t,e,i,n,s,r){const o=i.getImage(),a=o&&0!==o.getOpacity(),l=i.getText(),h=l&&l.getText(),c=r&&a&&h?{}:void 0;if(a){if(o.getImageState()!=dt.A.LOADED)return;const r=t.getBuilder(i.getZIndex(),"Image");r.setImageStyle(o,c),r.drawMultiPoint(e,n,s)}if(h){const r=t.getBuilder(i.getZIndex(),"Text");r.setTextStyle(l,c),r.drawText(e,n,s)}},MultiLineString:function(t,e,i,n,s){const r=i.getStroke();if(r){const o=t.getBuilder(i.getZIndex(),"LineString");o.setFillStrokeStyle(null,r),o.drawMultiLineString(e,n,s)}const o=i.getText();if(o&&o.getText()){const r=t.getBuilder(i.getZIndex(),"Text");r.setTextStyle(o),r.drawText(e,n,s)}},MultiPolygon:function(t,e,i,n,s){const r=i.getFill(),o=i.getStroke();if(o||r){const a=t.getBuilder(i.getZIndex(),"Polygon");a.setFillStrokeStyle(r,o),a.drawMultiPolygon(e,n,s)}const a=i.getText();if(a&&a.getText()){const r=t.getBuilder(i.getZIndex(),"Text");r.setTextStyle(a),r.drawText(e,n,s)}},GeometryCollection:function(t,e,i,n,s,r){const o=e.getGeometriesArray();let a,l;for(a=0,l=o.length;a<l;++a)(0,gt[o[a].getType()])(t,o[a],i,n,s,r)},Circle:function(t,e,i,n,s){const r=i.getFill(),o=i.getStroke();if(r||o){const a=t.getBuilder(i.getZIndex(),"Circle");a.setFillStrokeStyle(r,o),a.drawCircle(e,n,s)}const a=i.getText();if(a&&a.getText()){const r=t.getBuilder(i.getZIndex(),"Text");r.setTextStyle(a),r.drawText(e,n,s)}}};function ft(t,e){return parseInt((0,b.v6)(t),10)-parseInt((0,b.v6)(e),10)}function _t(t,e){const i=pt(t,e);return i*i}function pt(t,e){return.5*t/e}function mt(t,e,i,n,s,r,o,a){const l=[],h=i.getImage();if(h){let t=!0;const e=h.getImageState();e==dt.A.LOADED||e==dt.A.ERROR?t=!1:e==dt.A.IDLE&&h.load(),t&&l.push(h.ready())}const c=i.getFill();c&&c.loading()&&l.push(c.ready());const u=l.length>0;return u&&Promise.all(l).then(()=>
1s(null)),function(t,e,i,n,s,r,o){const a=i.getGeometryFunction()(e);if(!a)return;const l=a.simplifyTransformed(n,s);i.getRenderer()?yt(t,l,i,e,o):(0,gt[l.getType()])(t,l,i,e,o,r)}(t,e,i,n,r,o,a),u}function yt(t,e,i,n,s){if("GeometryCollection"==e.getType()){const r=e.getGeometries();for(let e=0,o=r.length;e<o;++e)yt(t,r[e],i,n,s);return}t.getBuilder(i.getZIndex(),"Default").drawCustom(e,n,i.getRenderer(),i.getHitDetectionRenderer(),s)}var vt=i(1623);class xt extends vt.A{constructor(t){super(t),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.animatingOrInteracting_,this.hitDetectionImageData_=null,this.clipExtent_=null,this.extendX_=!1,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=(0,a.S5)(),this.wrappedRenderedExtent_=(0,a.S5)(),this.renderedRotation_,this.renderedCenter_=null,this.renderedProjection_=null,this.renderedPixelRatio_=1,this.renderedRenderOrder_=null,this.renderedFrameDeclutter_,this.replayGroup_=null,this.replayGroupChanged=!0,this.clipping=!0,this.targetContext_=null,this.opacity_=1}renderWorlds(t,e,i){const s=e.extent,r=e.viewState,o=r.center,l=r.resolution,h=r.projection,c=r.rotation,u=h.getExtent(),d=this.getLayer().getSource(),g=this.getLayer().getDeclutter(),f=e.pixelRatio,_=e.viewHints,p=!(_[n.A.ANIMATING]||_[n.A.INTERACTING]),m=this.context,y=Math.round((0,a.RG)(s)/l*f),v=Math.round((0,a.Oq)(s)/l*f),x=d.getWrapX()&&h.canWrapX(),E=x?(0,a.RG)(u):null,S=x?Math.ceil((s[2]-u[2])/E)+(this.extendX_?2:1):1;let w=x?Math.floor((s[0]-u[0])/E)-(this.extendX_?1:0):0;do{let n=this.getRenderTransform(o,l,0,f,y,v,w*E);e.declutter&&(n=n.slice(0)),t.execute(m,[m.canvas.width,m.canvas.height],n,c,p,void 0===i?et:i?it:nt,i?g&&e.declutter[g]:void 0)}while(++w<S)}setDrawContext_(){1!==this.opacity_&&(this.targetContext_=this.context,this.context=(0,o.Y)(this.context.canvas.width,this.context.canvas.height,vt.B))}resetDrawContext_(){if(1!==this.opacity_&&this.targetContext_){const t=this.targetContext_.globalAlpha;this.targetContext_.globalAlpha=this.opacity_,this.targetContext_.drawImage(this.context.canvas,0,0),this.targetContext_.globalAlpha=t,(0,o.Yg)(this.context),vt.B.push(this.context.canvas),this.context=this.targetContext_,this.targetContext_=null}}renderDeclutter(t){this.replayGroup_&&this.getLayer().getDeclutter()&&this.renderWorlds(this.replayGroup_,t,!0)}renderDeferredInternal(t){this.replayGroup_&&(this.clipExtent_&&this.clipUnrotated(this.context,t,this.clipExtent_),this.replayGroup_.renderDeferred(),this.clipExtent_&&(this.context.restore(),this.clipExtent_=null),this.resetDrawContext_())}renderFrame(t,e){const i=t.layerStatesArray[t.layerIndex];this.opacity_=i.opacity;const n=t.viewState;this.prepareContainer(t,e);const s=this.context,r=this.replayGroup_;let o=r&&!r.isEmpty();if(!o&&!this.getLayer().hasListener(h.A.PRERENDER)&&!this.getLayer().hasListener(h.A.POSTRENDER))return this.container;this.setDrawContext_(),this.preRender(s,t);const c=n.projection;this.clipExtent_=null;let u=!1;if(o&&i.extent&&this.clipping){const e=(0,l.SD)(i.extent,c);o=(0,a.HY)(e,t.extent),o&&!(0,a.ms)(e,t.extent)&&(t.declutter?this.clipExtent_=e:(this.clipUnrotated(s,t,e),u=!0))}return o&&this.renderWorlds(r,t,!this.getLayer().getDeclutter()&&void 0),u&&s.restore(),this.postRender(s,t),this.renderedRotation_!==n.rotation&&(this.renderedRotation_=n.rotation,this.hitDetectionImageData_=null),t.declutter||this.resetDrawContext_(),this.container}getFeatures(t){return new Promise(e=>{if(this.frameState&&!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const t=this.frameState.size.slice(),e=this.renderedCenter_,i=this.renderedResolution_,n=this.renderedRotation_,r=this.renderedProjection_,h=this.wrappedRenderedExtent_,c=this.getLayer(),u=[],d=.5*t[0],g=.5*t[1];u.push(this.getRenderTransform(e,i,n,.5,d,g,0).slice());const f=c.getSource(),_=r.getExtent();if(f.getWrapX()&&r.canWrapX()&&!(0,a.ms)(_,h)){let t=h[0];const s=(0,a.RG)(_);let r,o=0;for(;t<_[0];)--o,r=s*o,u.push(this.getRenderTransform(e,i,n,.5,d,g,r).slice()),t+=s;for(o=0,t=h[2];t>_[2];)++o,r=s*o,u.push(this.getRenderTransform(e,i,n,.5,d,g,r).slice()),t-=s}const p=(0,l.Tf)();
1this.hitDetectionImageData_=function(t,e,i,n,r,h,c,u,d){const g=d?(0,l.JR)(r,d):r,f=t[0]*ut,_=t[1]*ut,p=(0,o.Y)(f,_);p.imageSmoothingEnabled=!1;const m=p.canvas,y=new ct(p,ut,r,null,c,u,d?(0,l.FO)((0,l.Tf)(),d):null),v=i.length,x=Math.floor(16777215/v),E={};for(let t=1;t<=v;++t){const e=i[t-1],s=e.getStyleFunction()||n;if(!s)continue;let r=s(e,h);if(!r)continue;Array.isArray(r)||(r=[r]);const l=(t*x).toString(16).padStart(7,"#00000");for(let t=0,i=r.length;t<i;++t){const i=r[t],n=i.getGeometryFunction()(e);if(!n||!(0,a.HY)(g,n.getExtent()))continue;const s=i.clone(),h=s.getFill();h&&h.setColor(l);const c=s.getStroke();c&&(c.setColor(l),c.setLineDash(null)),s.setText(void 0);const u=i.getImage();if(u){const t=u.getImageSize();if(!t)continue;const e=(0,o.Y)(t[0],t[1],void 0,{alpha:!1}),i=e.canvas;e.fillStyle=l,e.fillRect(0,0,i.width,i.height),s.setImage(new lt.A({img:i,anchor:u.getAnchor(),anchorXUnits:"pixels",anchorYUnits:"pixels",offset:u.getOrigin(),opacity:1,size:u.getSize(),scale:u.getScale(),rotation:u.getRotation(),rotateWithView:u.getRotateWithView()}))}const d=s.getZIndex()||0;let f=E[d];f||(f={},E[d]=f,f.Polygon=[],f.Circle=[],f.LineString=[],f.Point=[]);const _=n.getType();if("GeometryCollection"===_){const t=n.getGeometriesArrayRecursive();for(let e=0,i=t.length;e<i;++e){const i=t[e];f[i.getType().replace("Multi","")].push(i,s)}}else f[_.replace("Multi","")].push(n,s)}}const S=Object.keys(E).map(Number).sort(s.V_);for(let t=0,i=S.length;t<i;++t){const i=E[S[t]];for(const t in i){const n=i[t];for(let t=0,i=n.length;t<i;t+=2){y.setStyle(n[t+1]);for(let i=0,s=e.length;i<s;++i)y.setTransform(e[i]),y.drawGeometry(n[t])}}}return p.getImageData(0,0,m.width,m.height)}(t,u,this.renderedFeatures_,c.getStyleFunction(),h,i,n,_t(i,this.renderedPixelRatio_),p?r:null)}e(function(t,e,i){const n=[];if(i){const s=Math.floor(Math.round(t[0])*ut),r=Math.floor(Math.round(t[1])*ut),o=4*((0,I.qE)(s,0,i.width-1)+(0,I.qE)(r,0,i.height-1)*i.width),a=i.data[o],l=i.data[o+1],h=i.data[o+2]+256*(l+256*a),c=Math.floor(16777215/e.length);h&&h%c===0&&n.push(e[h/c-1])}return n}(t,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(t,e,i,n,s){if(!this.replayGroup_)return;const r=e.viewState.resolution,o=e.viewState.rotation,a=this.getLayer(),l={},h=this.getLayer().getDeclutter();return this.replayGroup_.forEachFeatureAtCoordinate(t,r,o,i,function(t,e,i){const r=(0,b.v6)(t),o=l[r];if(o){if(!0!==o&&i<o.distanceSq){if(0===i)return l[r]=!0,s.splice(s.lastIndexOf(o),1),n(t,a,e);o.geometry=e,o.distanceSq=i}}else{if(0===i)return l[r]=!0,n(t,a,e);s.push(l[r]={feature:t,layer:a,geometry:e,distanceSq:i,callback:n})}},h?e.declutter?.[h]?.all().map(t=>t.value):null)}handleFontsChanged(){const t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){const e=this.getLayer(),i=e.getSource();if(!i)return!1;const o=t.viewHints[n.A.ANIMATING],h=t.viewHints[n.A.INTERACTING],c=e.getUpdateWhileAnimating(),u=e.getUpdateWhileInteracting();if(this.ready&&!c&&o||!u&&h)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const d=t.extent,g=t.viewState,f=g.projection,_=g.resolution,p=t.pixelRatio,m=e.getRevision(),y=e.getRenderBuffer();let v=e.getRenderOrder();void 0===v&&(v=ft);const x=g.center.slice(),E=(0,a.r)(d,y*_),S=E.slice(),w=[E.slice()],C=f.getExtent(),A=i.getWrapX()&&f.canWrapX();if(this.extendX_=!1,A){const t=i.getExtent();t&&!(0,a.Im)(t)&&(this.extendX_=t[0]<C[0]||t[2]>C[2])}if(A&&(!(0,a.ms)(C,t.extent)||this.extendX_)){const t=(0,a.RG)(C),e=Math.max((0,a.RG)(E)/2,t);let i=C[0],n=C[2];this.extendX_&&(i-=t,n+=t),E[0]=i-e,E[2]=n+e,(0,r.Li)(x,f);const s=(0,a.Li)(w[0],f);s[0]<C[0]&&s[2]<C[2]?w.push([s[0]+t,s[1],s[2]+t,s[3]]):s[0]>C[0]&&s[2]>C[2]&&w.push([s[0]-t,s[1],s[2]-t,s[3]])}if(this.ready&&this.renderedResolution_==_&&this.renderedPixelRatio_===p&&this.renderedRevision_==m&&this.renderedRenderOrder_==v&&this.renderedFrameDeclutter_===!!t.declutter&&(0,a.ms)(this.wrappedRenderedExtent_,E))return(0,s.aI)(this.renderedExtent_,S)||(this.hitDetectionImageData_=null,this.renderedExtent_=S),this.renderedCenter_=x,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const R=new L(pt(_,p),E,_,p),I=(0,l.Tf)();let T;if(I){for(let t=0,e=w.length;t<e;++t){const e=w[t],n=(0,l.JR)(e,f);i.loadFeatures(n,(0,l.vN)(_,f),I)}T=(0,l.FO)(I,f)}else for(let t=0,e=w.length;t<e;++t)i.loadFeatures(w[t],_,f);const M=_t(_,p);let b=!0;const P=(t,i)=>{let n;const s=t.getStyleFunction()||e.getStyleFunction();if(s&&(n=s(t,_)),n){const e=this.renderFeature(t,M,n,R,T,this.getLayer().getDeclutter(),i);b=b&&!e}},O=(0,l.JR)(E,f),D=i.getFeaturesInExtent(O);v&&D.sort(v);for(let t=0,e=D.length;t<e;++t)P(D[t],t);this.renderedFeatures_=D,this.ready=b;
vendor: 6,430 bytes, line 1
1const F=R.finish(),k=new at(E,_,p,i.getOverlaps(),F,e.getRenderBuffer(),!!t.declutter);return this.renderedResolution_=_,this.renderedRevision_=m,this.renderedRenderOrder_=v,this.renderedFrameDeclutter_=!!t.declutter,this.renderedExtent_=S,this.wrappedRenderedExtent_=E,this.renderedCenter_=x,this.renderedProjection_=f,this.renderedPixelRatio_=p,this.replayGroup_=k,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0}renderFeature(t,e,i,n,s,r,o){if(!i)return!1;let a=!1;if(Array.isArray(i))for(let l=0,h=i.length;l<h;++l)a=mt(n,t,i[l],e,this.boundHandleStyleImageChange_,s,r,o)||a;else a=mt(n,t,i,e,this.boundHandleStyleImageChange_,s,r,o);return a}}const Et=xt;var St=i(7600);class wt extends St.A{constructor(t){super(t)}createRenderer(){return new Et(this)}}const Ct=wt},1597(t,e,i){function n(t,e,i){return Math.min(Math.max(t,e),i)}function s(t,e,i,n,s,o){const a=s-i,l=o-n;if(0!==a||0!==l){const r=((t-i)*a+(e-n)*l)/(a*a+l*l);r>1?(i=s,n=o):r>0&&(i+=a*r,n+=l*r)}return r(t,e,i,n)}function r(t,e,i,n){const s=i-t,r=n-e;return s*s+r*r}function o(t){const e=t.length;for(let i=0;i<e;i++){let n=i,s=Math.abs(t[i][i]);for(let r=i+1;r<e;r++){const e=Math.abs(t[r][i]);e>s&&(s=e,n=r)}if(0===s)return null;const r=t[n];t[n]=t[i],t[i]=r;for(let n=i+1;n<e;n++){const s=-t[n][i]/t[i][i];for(let r=i;r<e+1;r++)i==r?t[n][r]=0:t[n][r]+=s*t[i][r]}}const i=new Array(e);for(let n=e-1;n>=0;n--){i[n]=t[n][e]/t[n][n];for(let s=n-1;s>=0;s--)t[s][e]-=t[s][n]*i[n]}return i}function a(t){return 180*t/Math.PI}function l(t){return t*Math.PI/180}function h(t,e){const i=t%e;return i*e<0?i+e:i}function c(t,e,i){return t+i*(e-t)}function u(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}function d(t,e){return Math.floor(u(t,e))}function g(t,e){return Math.ceil(u(t,e))}function f(t,e,i){if(t>=e&&t<i)return t;const n=i-e;return((t-e)%n+n)%n+e}i.d(e,{Cc:()=>c,KU:()=>o,LV:()=>f,Mg:()=>u,Q1:()=>s,RI:()=>d,eh:()=>l,hG:()=>r,mk:()=>g,qE:()=>n,xP:()=>h,xW:()=>a})},3530(t,e,i){function n(t){for(const e in t)delete t[e]}function s(t){let e;for(e in t)return!1;return!e}i.d(e,{I:()=>n,p:()=>s})},6173(t,e,i){i.d(e,{Ig:()=>o,Av:()=>st,HU:()=>rt,RJ:()=>J,tI:()=>lt,Rb:()=>ot,Ad:()=>pt,SD:()=>yt,Jt:()=>et,hO:()=>it,RG:()=>ut,FO:()=>ht,Tf:()=>ft,WP:()=>at,te:()=>_t,JR:()=>mt,vN:()=>vt,pd:()=>dt});var n=i(4422),s=i(6933),r=(i(915),i(1597));const o={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937},a=class{constructor(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}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||o[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}},l=6378137,h=Math.PI*l,c=[-h,-h,h,h],u=[-180,-85,180,85],d=l*Math.log(Math.tan(Math.PI/2));class g extends a{constructor(t){super({code:t,units:"m",extent:c,global:!0,worldExtent:u,getPointResolution:function(t,e){return t/Math.cosh(e[1]/l)}})}}const f=[new g("EPSG:3857"),new g("EPSG:102100"),new g("EPSG:102113"),new g("EPSG:900913"),new g("http://www.opengis.net/def/crs/EPSG/0/3857"),new g("http://www.opengis.net/gml/srs/epsg.xml#3857")];const _=[-180,-90,180,90],p=6378137*Math.PI/180;class m extends a{constructor(t,e){super({code:t,units:"degrees",extent:_,axisOrientation:e,global:!0,metersPerUnit:p,worldExtent:_})}}const y=[new m("CRS:84"),new m("EPSG:4326","neu"),new m("urn:ogc:def:crs:OGC:1.3:CRS84"),new m("urn:ogc:def:crs:OGC:2:84"),new m("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new m("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new m("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let v={},x={};function E(t,e,i){const n=t.getCode(),s=e.getCode();n in x||(x[n]={}),x[n][s]=i}function S(t,e){return t in x&&e in x[t]?x[t][e]:null}const w=.9996,C=.00669438,A=C*C,R=A*C,I=C/(1-C),T=Math.sqrt(1-C),M=(1-T)/(1+T),b=M*M,P=b*M,O=P*M,L=O*M,D=.9983242984503243,F=15*A/256+45*R/1024,k=35*R/3072,N=1.5*M-27/32*P+269/512*L,G=21/16*b-55/32*O,z=151/96*P-417/128*L,W=1097/512*O,K=6378137;function Y(t,e,i){const n=t-5e5,s=(i.north?e:e-1e7)/w/(K*D),o=s+N*Math.sin(2*s)+G*Math.sin(4*s)+z*Math.sin(6*s)+W*Math.sin(8*s),a=Math.sin(o),l=a*a,h=Math.cos(o),c=a/h,u=c*c,d=u*u,g=1-C*l,f=Math.sqrt(1-C*l),_=I*h**2,p=_*_,m=n/(K/f*w),y=m*m,v=y*m,x=v*m,E=x*m,S=o-c/((1-C)/g)*(y/2-x/24*(5+3*u+10*_-4*p-9*I))+E*m/720*(61+90*u+298*_+45*d-252*I-3*p);let A=(m-v/6*(1+2*u+_)+E/120*(5-2*_+28*u-3*p+8*I+24*d))/h;return A=(0,r.LV)(A+(0,r.eh)(B(i.number)),-Math.PI,Math.PI),[(0,r.xW)(A),(0,r.xW)(S)]}function X(t,e,i){t=(0,r.LV)(t,-180,180),e<-80?e=-80:e>84&&(e=84);const n=(0,r.eh)(e),s=Math.sin(n),o=Math.cos(n),a=s/o,l=a*a,h=l*l,c=(0,r.eh)(t),u=B(i.number),d=(0,r.eh)(u),g=K/Math.sqrt(1-C*s**2),f=I*o**2,_=o*(0,r.LV)(c-d,-Math.PI,Math.PI),p=_*_,m=p*_,y=m*_,v=y*_,x=v*_,E=K*(D*n-.002514607064228144*Math.sin(2*n)+F*Math.sin(4*n)-k*Math.sin(6*n)),S=w*g*(_+m/6*(1-l+f)+v/120*(5-18*l+h+72*f-58*I))+5e5;let A=w*(E+g*a*(p/2+y/24*(5-l+9*f+4*f**2)+x/720*(61-58*l+h+600*f-330*I)));return i.north||(A+=1e7),[S,A]}function B(t){return 6*(t-1)-180+3}const V=[/^EPSG:(\d+)$/,/^urn:ogc:def:crs:EPSG::(\d+)$/,/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/];function Z(t){let e=0;for(const i of V){const n=t.match(i);if(n){e=parseInt(n[1]);break}}if(!e)return null;let i=0,n=!1;return e>32700&&e<32761?i=e-32700:e>32600&&e<32661&&(n=!0,i=e-32600),i?{number:i,north:n}:null}function j(t,e){return function(i,n,s,r){const o=i.length;s=s>1?s:2,r=r??s,n||(n=s>2?i.slice():new Array(o));for(let s=0;s<o;s+=r){const r=i[s],o=i[s+1],a=t(r,o,e);n[s]=a[0],n[s+1]=a[1]}return n}}
1function H(t,e,i){i=i||6371008.8;const n=(0,r.eh)(t[1]),s=(0,r.eh)(e[1]),o=(s-n)/2,a=(0,r.eh)(e[0]-t[0])/2,l=Math.sin(o)*Math.sin(o)+Math.sin(a)*Math.sin(a)*Math.cos(n)*Math.cos(s);return 2*i*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}const q=[function(t){const e=Z(t.getCode());return e?{forward:j(X,e),inverse:j(Y,e)}:null}],U=[function(t){return Z(t)?new a({code:t,units:"m"}):null}];let $=!0;function J(t){$=!(void 0===t||t)}function Q(t,e){if(void 0!==e)for(let i=0,n=t.length;i<n;++i)e[i]=t[i];else e=t.slice();return e}function tt(t){!function(t,e){v[t]=e}(t.getCode(),t),E(t,t,Q)}function et(t){if("string"!=typeof t)return t;const e=v[i=t]||v[i.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null;var i;if(e)return e;for(const e of U){const i=e(t);if(i)return i}return null}function it(t,e,i,n){let s;const r=(t=et(t)).getPointResolutionFunc();if(r){if(s=r(e,i),n&&n!==t.getUnits()){const e=t.getMetersPerUnit();e&&(s=s*e/o[n])}}else{const r=t.getUnits();if("degrees"==r&&!n||"degrees"==n)s=e;else{const a=ht(t,et("EPSG:4326"));if(a||"degrees"===r){let t=[i[0]-e/2,i[1],i[0]+e/2,i[1],i[0],i[1]-e/2,i[0],i[1]+e/2];t=a(t,t,2),s=(H(t.slice(0,2),t.slice(2,4))+H(t.slice(4,6),t.slice(6,8)))/2}else s=e*t.getMetersPerUnit();const l=n?o[n]:t.getMetersPerUnit();void 0!==l&&(s/=l)}}return s}function nt(t){!function(t){t.forEach(tt)}(t),t.forEach(function(e){t.forEach(function(t){e!==t&&E(e,t,Q)})})}function st(t,e){return t?"string"==typeof t?et(t):t:et(e)}function rt(t){return function(e,i,n,s){const r=e.length;n=void 0!==n?n:2,s=s??n,i=void 0!==i?i:new Array(r);for(let o=0;o<r;o+=s){const r=t(e.slice(o,o+n)),a=r.length;for(let t=0,n=s;t<n;++t)i[o+t]=t>=a?e[o+t]:r[t]}return i}}function ot(t,e){return J(),dt(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function at(t,e){const i=dt(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),n=i[0];return(n<-180||n>180)&&(i[0]=(0,r.xP)(n+180,360)-180),i}function lt(t,e){if(t===e)return!0;const i=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||ht(t,e)===Q)&&i}function ht(t,e){const i=t.getCode(),n=e.getCode();let s=S(i,n);if(s)return s;let r=null,o=null;for(const i of q)r||(r=i(t)),o||(o=i(e));if(!r&&!o)return null;const a="EPSG:4326";if(o)if(r)s=ct(r.inverse,o.forward);else{const t=S(i,a);t&&(s=ct(t,o.forward))}else{const t=S(a,n);t&&(s=ct(r.inverse,t))}return s&&(tt(t),tt(e),E(t,e,s)),s}function ct(t,e){return function(i,n,s,r){return n=t(i,n,s,r),e(n,n,s,r)}}function ut(t,e){return ht(et(t),et(e))}function dt(t,e,i){const n=ut(e,i);if(!n){const t=et(e).getCode(),n=et(i).getCode();throw new Error(`No transform available between ${t} and ${n}`)}return n(t,void 0,t.length)}let gt=null;function ft(){return gt}function _t(t,e){return t}function pt(t,e){return $&&!(0,s.aI)(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&($=!1,(0,n.R8)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t}function mt(t,e){return t}function yt(t,e){return t}function vt(t,e){return t}var xt,Et,St;nt(f),nt(y),xt=f,Et=function(t,e,i,n){const s=t.length;i=i>1?i:2,n=n??i,void 0===e&&(e=i>2?t.slice():new Array(s));for(let i=0;i<s;i+=n){e[i]=h*t[i]/180;let n=l*Math.log(Math.tan(Math.PI*(+t[i+1]+90)/360));n>d?n=d:n<-d&&(n=-d),e[i+1]=n}return e},St=function(t,e,i,n){const s=t.length;i=i>1?i:2,n=n??i,void 0===e&&(e=i>2?t.slice():new Array(s));for(let i=0;i<s;i+=n)e[i]=180*t[i]/h,e[i+1]=360*Math.atan(Math.exp(t[i+1]/l))/Math.PI-90;return e},y.forEach(function(t){xt.forEach(function(e){E(t,e,Et),E(e,t,St)})})},9960(t,e,i){var n=i(1685);class s extends n.Ay{constructor(t,e,i,n){super(t),this.inversePixelTransform=e,this.frameState=i,this.context=n}}const r=s;i.d(e,["A",0,r])},3984(t,e,i){i.d(e,["A",0,{PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}])},8774(t,e,i){i.d(e,{Jw:()=>x,TA:()=>y,jT:()=>v});var n=i(4120),s=i(5176),r=i(8711),o=i(7771),a=i(3530);const l=new n.A;let h,c=null;const u={},d=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong"]);function g(t,e,i){return`${t} ${e} 16px "${i}"`}const f=function(){const t=100;let e,i;async function n(t){await i.ready;const e=(0,s.K5)(t),n=e.families[0].toLowerCase(),r=e.weight,o=[];
1return i.forEach(t=>{const i=t.family.replace(/^['"]|['"]$/g,"").toLowerCase(),a=s.NM[t.weight]||t.weight;i===n&&t.style===e.style&&a==r&&o.push(t)}),0!==o.length&&(await Promise.all(o.map(t=>t.load().then(()=>!0,()=>!1)))).some(t=>t)}async function r(){await i.ready;let s=!0;const o=l.getProperties(),h=Object.keys(o).filter(e=>o[e]<t);for(let e=h.length-1;e>=0;--e){const i=h[e];let r=o[i];r<t&&(await n(i)?((0,a.I)(u),l.set(i,t)):(r+=10,l.set(i,r,!0),r<t&&(s=!1)))}e=void 0,s||(e=setTimeout(r,100))}return async function(t){i||(i=o.Wl?self.fonts:document.fonts);const n=(0,s.K5)(t);if(!n)return;const a=n.families;let h=!1;for(const t of a){if(d.has(t))continue;const e=g(n.style,n.weight,t);void 0===l.get(e)&&(l.set(e,0,!0),h=!0)}h&&(clearTimeout(e),e=setTimeout(r,100))}}(),_=function(){let t;return function(e){let i=u[e];if(null==i){if(o.Wl){const t=(0,s.K5)(e),n=p(e,"Žg");i=(isNaN(Number(t.lineHeight))?1.2:Number(t.lineHeight))*(n.actualBoundingBoxAscent+n.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),i=t.offsetHeight,document.body.removeChild(t);u[e]=i}return i}}();function p(t,e){return c||(c=(0,r.Y)(1,1)),t!=h&&(c.font=t,h=c.font),c.measureText(e)}function m(t,e){return p(t,e).width}function y(t,e,i){if(e in i)return i[e];const n=e.split("\n").reduce((e,i)=>Math.max(e,m(t,i)),0);return i[e]=n,n}function v(t,e){const i=[],n=[],s=[];let r=0,o=0,a=0,l=0;for(let h=0,c=e.length;h<=c;h+=2){const u=e[h];if("\n"===u||h===c){r=Math.max(r,o),s.push(o),o=0,a+=l,l=0;continue}const d=e[h+1]||t.font,g=m(d,u);i.push(g),o+=g;const f=_(d);n.push(f),l=Math.max(l,f)}return{width:r,height:a,widths:i,heights:n,lineWidths:s}}function x(t,e,i,n,s,r,o,a,l,h,c){t.save(),1!==i&&(void 0===t.globalAlpha?t.globalAlpha=t=>t.globalAlpha*=i:t.globalAlpha*=i),e&&t.transform.apply(t,e),n.contextInstructions?(t.translate(l,h),t.scale(c[0],c[1]),function(t,e){const i=t.contextInstructions;for(let t=0,n=i.length;t<n;t+=2)Array.isArray(i[t+1])?e[i[t]].apply(e,i[t+1]):e[i[t]]=i[t+1]}(n,t)):c[0]<0||c[1]<0?(t.translate(l,h),t.scale(c[0],c[1]),t.drawImage(n,s,r,o,a,0,0,o,a)):t.drawImage(n,s,r,o,a,l,h,o*c[0],a*c[1]),t.restore()}i.d(e,["Oq",0,[],"Tq",0,[0,0,0,0],"ZV",0,"10px sans-serif","fZ",0,f,"yY",0,l])},808(t,e,i){var n=i(8711);i.d(e,["A",0,class{constructor(){this.instructions_=[],this.zIndex=0,this.offset_=0,this.pendingMethod_,this.context_=new Proxy((0,n.lr)(),{get:(t,e)=>{if("function"==typeof t[e])return this.pendingMethod_=e,this.pushMethodArgs_},set:(t,e,i)=>(this.push_(e,i),!0)})}push_(...t){const e=this.instructions_,i=this.zIndex+this.offset_;e[i]||(e[i]=[]),e[i].push(...t)}pushMethodArgs_=(...t)=>{this.push_(this.pendingMethod_,t)};pushFunction(t){this.push_(t)}getContext(){return this.context_}draw(t){this.instructions_.forEach(e=>{for(let i=0,n=e.length;i<n;++i){const n=e[i];if("function"==typeof n){n(t);continue}const s=e[++i];"function"==typeof t[n]?t[n](...s):t[n]="function"==typeof s?s(t):s}})}clear(){this.instructions_.length=0,this.zIndex=0,this.offset_=0}offset(){this.offset_=this.instructions_.length,this.zIndex=0}}])},1623(t,e,i){i.d(e,{B:()=>y,A:()=>x});var n=i(6514),s=i(9352),r=i(8711),o=i(915),a=i(7771),l=i(9960),h=i(3984),c=i(808),u=i(9703),d=i(6141),g=i(1854),f=i(6837),_=i(4087);class p extends g.A{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.staleKeys_=new Array,this.maxStaleKeys=5,this.renderedSourceKey_}getStaleKeys(){return this.staleKeys_}prependStaleKey(t){this.staleKeys_.unshift(t),this.staleKeys_.length>this.maxStaleKeys&&(this.staleKeys_.length=this.maxStaleKeys)}updateStaleKeys(t){this.renderedSourceKey_?this.renderedSourceKey_!==t&&(this.prependStaleKey(this.renderedSourceKey_),this.renderedSourceKey_=t):this.renderedSourceKey_=t}getFeatures(t){return(0,_.b0)()}getData(t){return null}prepareFrame(t){return(0,_.b0)()}renderFrame(t,e){return(0,_.b0)()}forEachFeatureAtCoordinate(t,e,i,n,s){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const e=t.target;e.getState()!==d.A.LOADED&&e.getState()!==d.A.ERROR||this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=d.A.LOADED&&e!=d.A.ERROR&&t.addEventListener(f.A.CHANGE,this.boundHandleImageChange_),e==d.A.IDLE&&(t.load(),e=t.getState()),e==d.A.LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()}renderDeferred(t){}disposeInternal(){delete this.layer_,super.disposeInternal()}}const m=p,y=[];let v=null;const x=class extends m{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=(0,u.vt)(),this.pixelTransform=(0,u.vt)(),this.inversePixelTransform=(0,u.vt)(),this.context=null,this.deferredContext_=null,this.containerReused=!1,this.frameState=null}
1getImageData(t,e,i){let n;v||(v=(0,r.Y)(1,1,void 0,{willReadFrequently:!0})),v.clearRect(0,0,1,1);try{v.drawImage(t,e,i,1,1,0,0,1,1),n=v.getImageData(0,0,1,1).data}catch{return v=null,null}return n}getBackground(t){let e=this.getLayer().getBackground();return"function"==typeof e&&(e=e(t.viewState.resolution)),e||void 0}useContainer(t,e,i,o,l){if((0,r.rB)(t)&&0===this.pixelTransform[1]&&0===this.pixelTransform[2]&&0===this.pixelTransform[4]&&0===this.pixelTransform[5]&&t.width===o&&t.height===l){const e=t,n=e.getContext("2d");if(n)return this.container=t,this.context=n,this.containerReused=!0,void(i&&(n.fillStyle=i,n.fillRect(0,0,e.width,e.height)))}const h=this.getLayer().getClassName();let c,d;if(t&&t.className===h&&(!i||t&&t.style.backgroundColor&&(0,n.aI)((0,s._j)(t.style.backgroundColor),(0,s._j)(i)))){const e=t.firstElementChild;(0,r.rB)(e)&&(d=e.getContext("2d"))}if(d&&(0,u.tI)(d.canvas.style.transform,e)?(this.container=t,this.context=d,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){c=a.Wl?(0,r.mH)():document.createElement("div"),c.className=h;let t=c.style;t.position="absolute",t.width="100%",t.height="100%",d=(0,r.Y)();const e=d.canvas;c.appendChild(e),t=e.style,t.position="absolute",t.left="0",t.transformOrigin="top left",this.container=c,this.context=d}this.containerReused||!i||this.container.style.backgroundColor||(this.container.style.backgroundColor=i)}clipUnrotated(t,e,i){const n=(0,o.Py)(i),s=(0,o.WU)(i),r=(0,o.k_)(i),a=(0,o.R)(i);(0,u.Bb)(e.coordinateToPixelTransform,n),(0,u.Bb)(e.coordinateToPixelTransform,s),(0,u.Bb)(e.coordinateToPixelTransform,r),(0,u.Bb)(e.coordinateToPixelTransform,a);const l=this.inversePixelTransform;(0,u.Bb)(l,n),(0,u.Bb)(l,s),(0,u.Bb)(l,r),(0,u.Bb)(l,a),t.save(),t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])
1),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()}prepareContainer(t,e){const i=t.extent,n=t.viewState.resolution,s=t.viewState.rotation,r=t.pixelRatio,a=Math.round((0,o.RG)(i)/n*r),l=Math.round((0,o.Oq)(i)/n*r);(0,u.Zz)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/r,1/r,s,-a/2,-l/2),(0,u.T9)(this.inversePixelTransform,this.pixelTransform);const h=(0,u.dI)(this.pixelTransform),c=this.getBackground(t);if(this.useContainer(e,h,c,a,l),!this.containerReused){const t=this.context.canvas;t.width!=a||t.height!=l?(t.width=a,t.height=l):this.context.clearRect(0,0,a,l),h!==t.style.transform&&(t.style.transform=h)}}dispatchRenderEvent_(t,e,i){const n=this.getLayer();if(n.hasListener(t)){const s=new l.A(t,this.inversePixelTransform,i,e);n.dispatchEvent(s)}}preRender(t,e){this.frameState=e,e.declutter||this.dispatchRenderEvent_(h.A.PRERENDER,t,e)}postRender(t,e){e.declutter||this.dispatchRenderEvent_(h.A.POSTRENDER,t,e)}renderDeferredInternal(t){}getRenderContext(t){return t.declutter&&!this.deferredContext_&&(this.deferredContext_=new c.A),t.declutter?this.deferredContext_.getContext():this.context}renderDeferred(t){t.declutter&&(this.dispatchRenderEvent_(h.A.PRERENDER,this.context,t),t.declutter&&this.deferredContext_&&(this.deferredContext_.draw(this.context),this.deferredContext_.clear()),this.renderDeferredInternal(t),this.dispatchRenderEvent_(h.A.POSTRENDER,this.context,t))}getRenderTransform(t,e,i,n,s,r,o){const a=s/2,l=r/2,h=n/e,c=-h,d=-t[0]+o,g=-t[1];return(0,u.Zz)(this.tempTransform,a,l,h,c,-i,d,g)}disposeInternal(){delete this.frameState,super.disposeInternal()}}},2214(t,e,i){i.d(e,{A:()=>v});var n=i(8143),s=i(1078),r=i(8711),o=i(9438),a=i(6837),l=i(915),h=i(1597),c=i(6173);let u;const d=[];function g(t,e,i,n,s){t.beginPath(),t.moveTo(0,0),t.lineTo(e,i),t.lineTo(n,s),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,n)+1,Math.max(i,s)),t.restore()}function f(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function _(t,e,i,n){const s=(0,c.pd)(i,e,t);let r=(0,c.hO)(e,n,i);const o=e.getMetersPerUnit();void 0!==o&&(r*=o);const a=t.getMetersPerUnit();void 0!==a&&(r/=a);const h=t.getExtent();if(!h||(0,l.Ym)(h,s)){const e=(0,c.hO)(t,r,s)/r;isFinite(e)&&e>0&&(r/=e)}return r}var p=i(9703);const m=class{constructor(t,e,i,n,s,r,o){this.sourceProj_=t,this.targetProj_=e;let a={};const h=o?(0,c.HU)(t=>(0,p.Bb)(o,(0,c.pd)(t,this.targetProj_,this.sourceProj_))):(0,c.RG)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){const e=t[0]+"/"+t[1];return a[e]||(a[e]=h(t)),a[e]},this.maxSourceExtent_=n,this.errorThresholdSquared_=s*s,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!n&&!!this.sourceProj_.getExtent()&&(0,l.RG)(n)>=(0,l.RG)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,l.RG)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,l.RG)(this.targetProj_.getExtent()):null;const u=(0,l.Py)(i),d=(0,l.WU)(i),g=(0,l.k_)(i),f=(0,l.R)(i),_=this.transformInv_(u),m=this.transformInv_(d),y=this.transformInv_(g),v=this.transformInv_(f),x=10+(r?Math.max(0,Math.ceil(Math.log2((0,l.UG)(i)/(r*r*256*256)))):0);if(this.addQuad_(u,d,g,f,_,m,y,v,x),this.wrapsXInSource_){let t=1/0;this.triangles_.forEach(function(e,i,n){t=Math.min(t,e.source[0][0],e.source[1][0],e.source[2][0])}),this.triangles_.forEach(e=>{if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-t>this.sourceWorldWidth_/2){const i=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];i[0][0]-t>this.sourceWorldWidth_/2&&(i[0][0]-=this.sourceWorldWidth_),i[1][0]-t>this.sourceWorldWidth_/2&&(i[1][0]-=this.sourceWorldWidth_),i[2][0]-t>this.sourceWorldWidth_/2&&(i[2][0]-=this.sourceWorldWidth_);const n=Math.min(i[0][0],i[1][0],i[2][0]);Math.max(i[0][0],i[1][0],i[2][0])-n<this.sourceWorldWidth_/2&&(e.source=i)}})}a={}}addTriangle_(t,e,i,n,s,r){this.triangles_.push({source:[n,s,r],target:[t,e,i]})}addQuad_(t,e,i,n,s,r,o,a,c){const u=(0,l.Tr)([s,r,o,a]),d=this.sourceWorldWidth_?(0,l.RG)(u)/this.sourceWorldWidth_:null,g=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&d>.5&&d<1;let _=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const s=(0,l.Tr)([t,e,i,n]);_=(0,l.RG)(s)/this.targetWorldWidth_>.25||_}!f&&this.sourceProj_.isGlobal()&&d&&(_=d>.25||_)}if(!_&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!(0,l.HY)(u,this.maxSourceExtent_))return;let p=0;if(!(_||isFinite(s[0])&&isFinite(s[1])&&isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])))if(c>0)_=!0;else if(p=(isFinite(s[0])&&isFinite(s[1])?0:8)+(isFinite(r[0])&&isFinite(r[1])?0:4)+(isFinite(o[0])&&isFinite(o[1])?0:2)+(isFinite(a[0])&&isFinite(a[1])?0:1),1!=p&&2!=p&&4!=p&&8!=p
1)return;if(c>0){if(!_){const e=[(t[0]+i[0])/2,(t[1]+i[1])/2],n=this.transformInv_(e);let r;r=f?((0,h.xP)(s[0],g)+(0,h.xP)(o[0],g))/2-(0,h.xP)(n[0],g):(s[0]+o[0])/2-n[0];const a=(s[1]+o[1])/2-n[1];_=r*r+a*a>this.errorThresholdSquared_}if(_){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){const l=[(e[0]+i[0])/2,(e[1]+i[1])/2],h=this.transformInv_(l),u=[(n[0]+t[0])/2,(n[1]+t[1])/2],d=this.transformInv_(u);this.addQuad_(t,e,l,u,s,r,h,d,c-1),this.addQuad_(u,l,i,n,d,h,o,a,c-1)}else{const l=[(t[0]+e[0])/2,(t[1]+e[1])/2],h=this.transformInv_(l),u=[(i[0]+n[0])/2,(i[1]+n[1])/2],d=this.transformInv_(u);this.addQuad_(t,l,u,n,s,h,d,a,c-1),this.addQuad_(l,e,i,u,h,r,o,d,c-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}11&p||this.addTriangle_(t,i,n,s,o,a),14&p||this.addTriangle_(t,i,e,s,o,r),p&&(13&p||this.addTriangle_(e,n,t,r,a,s),7&p||this.addTriangle_(e,n,i,r,a,o))}calculateSourceExtent(){const t=(0,l.S5)();return this.triangles_.forEach(function(e,i,n){const s=e.source;(0,l.$C)(t,s[0]),(0,l.$C)(t,s[1]),(0,l.$C)(t,s[2])}),t}getTriangles(){return this.triangles_}};class y extends n.A{constructor(t,e,i,n,r,o,a,c,u,d,g,f){super(r,s.A.IDLE,f),this.renderEdges_=void 0!==g&&g,this.pixelRatio_=a,this.gutter_=c,this.canvas_=null,this.sourceTileGrid_=e,this.targetTileGrid_=n,this.wrappedTileCoord_=o||r,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0,this.clipExtent_=t.canWrapX()?t.getExtent():void 0;const p=n.getTileCoordExtent(this.wrappedTileCoord_),y=this.targetTileGrid_.getExtent();let v=this.sourceTileGrid_.getExtent();const x=y?(0,l._N)(p,y):p;if(0===(0,l.UG)(x))return void(this.state=s.A.EMPTY);const E=t.getExtent();E&&(v=v?(0,l._N)(v,E):E);const S=n.getResolution(this.wrappedTileCoord_[0]),w=function(t,e,i,n){const s=(0,l.q1)(i);let r=_(t,e,s,n);return(!isFinite(r)||r<=0)&&(0,l.sB)(i,function(i){return r=_(t,e,i,n),isFinite(r)&&r>0}),r}(t,i,x,S);if(!isFinite(w)||w<=0)return void(this.state=s.A.EMPTY);const C=void 0!==d?d:.5;if(this.triangulation_=new m(t,i,x,v,w*C,S),0===this.triangulation_.getTriangles().length)return void(this.state=s.A.EMPTY);this.sourceZ_=e.getZForResolution(w);let A=this.triangulation_.calculateSourceExtent();if(v&&(t.canWrapX()?(A[1]=(0,h.qE)(A[1],v[1],v[3]),A[3]=(0,h.qE)(A[3],v[1],v[3])):A=(0,l._N)(A,v)),(0,l.UG)(A)){let i=0,n=0;t.canWrapX()&&(i=(0,l.RG)(E),n=Math.floor((A[0]-E[0])/i)),(0,l.QJ)(A.slice(),t,!0).forEac
1h(t=>{const s=e.getTileRangeForExtentAndZ(t,this.sourceZ_);for(let t=s.minX;t<=s.maxX;t++)for(let e=s.minY;e<=s.maxY;e++){const s=n*i;this.sourceTiles_.push({getTile:()=>u(this.sourceZ_,t,e,a),offset:s})}++n}),0===this.sourceTiles_.length&&(this.state=s.A.EMPTY)}else this.state=s.A.EMPTY}getImage(){return this.canvas_}reproject_(){const t=[];if(this.sourceTiles_.forEach(e=>{const i=e.tile;if(i&&i.getState()==s.A.LOADED){const n=this.sourceTileGrid_.getTileCoordExtent(i.tileCoord);n[0]+=e.offset,n[2]+=e.offset;const s=this.clipExtent_?.slice();s&&(s[0]+=e.offset,s[2]+=e.offset),t.push({extent:n,clipExtent:s,image:i.getImage()})}}),this.sourceTiles_.length=0,0===t.length)this.state=s.A.ERROR;else{const e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),n="number"==typeof i?i:i[0],o="number"==typeof i?i:i[1],a=this.targetTileGrid_.getResolution(e),c=this.sourceTileGrid_.getResolution(this.sourceZ_),_=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(t,e,i,n,s,o,a,c,_,p,m,y,v,x){const E=(0,r.Y)(Math.round(i*t),Math.round(i*e),d);if(y||(E.imageSmoothingEnabled=!1),0===_.length)return E.canvas;function S(t){return Math.round(t*i)/i}E.scale(i,i),E.globalCompositeOperation="lighter";const w=(0,l.S5)();let C;_.forEach(function(t,e,i){(0,l.X$)(w,t.extent)});const A=i/n,R=(y?1:1+Math.pow(2,-24))/A;if(!v||1!==_.length||0!==p){if(C=(0,r.Y)(Math.round((0,l.RG)(w)*A),Math.round((0,l.Oq)(w)*A),d),y||(C.imageSmoothingEnabled=!1),s&&x){const t=(s[0]-w[0])*A,e=-(s[3]-w[3])*A,i=(0,l.RG)(s)*A,n=(0,l.Oq)(s)*A;C.rect(t,e,i,n),C.clip()}_.forEach(function(t,e,i){if(t.image.width>0&&t.image.height>0){if(t.clipExtent){C.save();const e=(t.clipExtent[0]-w[0])*A,i=-(t.clipExtent[3]-w[3])*A,n=(0,l.RG)(t.clipExtent)*A,s=(0,l.Oq)(t.clipExtent)*A;C.rect(y?e:Math.round(e),y?i:Math.round(i),y?n:Math.round(e+n)-Math.round(e),y?s:Math.round(i+s)-Math.round(i)),C.clip()}const e=(t.extent[0]-w[0])*A,i=-(t.extent[3]-w[3])*A,n=(0,l.RG)(t.extent)*A,s=(0,l.Oq)(t.extent)*A;C.drawImage(t.image,p,p,t.image.width-2*p,t.image.height-2*p,y?e:Math.round(e),y?i:Math.round(i),y?n:Math.round(e+n)-Math.round(e),y?s:Math.round(i+s)-Math.round(i)),t.clipExtent&&C.restore()}})}const I=(0,l.Py)(a);
vendor: 1,280 bytes, line 1
1return c.getTriangles().forEach(function(t,e,i){const n=t.source,s=t.target;let a=n[0][0],c=n[0][1],p=n[1][0],m=n[1][1],v=n[2][0],x=n[2][1];const A=S((s[0][0]-I[0])/o),T=S(-(s[0][1]-I[1])/o),M=S((s[1][0]-I[0])/o),b=S(-(s[1][1]-I[1])/o),P=S((s[2][0]-I[0])/o),O=S(-(s[2][1]-I[1])/o),L=a,D=c;a=0,c=0,p-=L,m-=D,v-=L,x-=D;const F=[[p,m,0,0,M-A],[v,x,0,0,P-A],[0,0,p,m,b-T],[0,0,v,x,O-T]],k=(0,h.KU)(F);if(!k)return;if(E.save(),E.beginPath(),function(){if(void 0===u){const t=(0,r.Y)(6,6,d);t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",g(t,4,5,4,0),g(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;u=f(e,0)||f(e,4)||f(e,8),(0,r.Yg)(t),d.push(t.canvas)}return u}()||!y){E.moveTo(M,b);const t=4,e=A-M,i=T-b;for(let n=0;n<t;n++)E.lineTo(M+S((n+1)*e/t),b+S(n*i/(t-1))),n!=t-1&&E.lineTo(M+S((n+1)*e/t),b+S((n+1)*i/(t-1)));E.lineTo(P,O)}else E.moveTo(M,b),E.lineTo(A,T),E.lineTo(P,O);let N;if(E.clip(),E.transform(k[0],k[2],k[1],k[3],A,T),E.translate(w[0]-L,w[3]-D),C)N=C.canvas,E.scale(R,-R);else{const t=_[0],e=t.extent;N=t.image,E.scale((0,l.RG)(e)/N.width,-(0,l.Oq)(e)/N.height)}E.drawImage(N,0,0),E.restore()}),C&&((0,r.Yg)(C),d.push(C.canvas)),m&&(E.save(),E.globalCompositeOperation="source-over",E.strokeStyle="black",E.lineWidth=1,c.getTriangles().forEac
1h(function(t,e,i){const n=t.target,s=(n[0][0]-I[0])/o,r=-(n[0][1]-I[1])/o,a=(n[1][0]-I[0])/o,l=-(n[1][1]-I[1])/o,h=(n[2][0]-I[0])/o,c=-(n[2][1]-I[1])/o;E.beginPath(),E.moveTo(a,l),E.lineTo(s,r),E.lineTo(h,c),E.closePath(),E.stroke()}),E.restore()),E.canvas}(n,o,this.pixelRatio_,c,this.sourceTileGrid_.getExtent(),a,_,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=s.A.LOADED}this.changed()}load(){for(const t of this.sourceTiles_)t.tile=t.getTile();if(this.state==s.A.IDLE){this.state=s.A.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(({tile:e})=>{const i=e.getState();if(i==s.A.IDLE||i==s.A.LOADING){t++;const i=(0,o.KT)(e,a.A.CHANGE,n=>{const r=e.getState();r!=s.A.LOADED&&r!=s.A.ERROR&&r!=s.A.EMPTY||((0,o.JH)(i),t--,0===t&&(this.unlistenSources_(),this.reproject_()))});this.sourcesListenerKeys_.push(i)}}),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function({tile:t},e,i){t.getState()==s.A.IDLE&&t.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(o.JH),this.sourcesListenerKeys_=null}release(){this.canvas_&&((0,r.Yg)(this.canvas_.getContext("2d")),d.push(this.canvas_),this.canvas_=null),this.sourceTiles_.length=0,super.release()}}const v=y},4498(t,e,i){i.d(e,{a$:()=>o,b8:()=>s,cq:()=>a,dv:()=>r});var n=i(1597);function s(t){if(void 0!==t)return 0}function r(t){if(void 0!==t)return t}function o(t){const e=2*Math.PI/t;return function(t,i){return i?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function a(t){const e=void 0===t?(0,n.eh)(5):t;return function(t,i){return i||void 0===t?t:Math.abs(t)<=e?0:t}}},6782(t,e,i){function n(t){return t[0]>0&&t[1]>0}function s(t,e,i){return void 0===i&&(i=[0,0]),i[0]=t[0]*e+.5|0,i[1]=t[1]*e+.5|0,i}function r(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}i.d(e,{Ie:()=>n,hs:()=>s,xq:()=>r})},7896(t,e,i){var n=i(702);class s extends n.A{constructor(t){let e;e=void 0!==(t=t||{}).attributions?t.attributions:['&#169; <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.'];const i=void 0!==t.url?t.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:e,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:void 0!==t.crossOrigin?t.crossOrigin:"anonymous",referrerPolicy:t.referrerPolicy||"origin-when-cross-origin",interpolate:t.interpolate,maxZoom:void 0!==t.maxZoom?t.maxZoom:19,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:i,wrapX:t.wrapX,zDirection:t.zDirection})}}const r=s;i.d(e,["A",0,r])},6444(t,e,i){var n=i(4120),s=i(6173);class r extends n.A{constructor(t){super(),this.projection=(0,s.Jt)(t.projection),this.attributions_=o(t.attributions),this.attributionsCollapsible_=t.attributionsCollapsible??!0,this.loading=!1,this.state_=void 0!==t.state?t.state:"ready",this.wrapX_=void 0!==t.wrapX&&t.wrapX,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;const e=this;this.viewPromise_=new Promise(function(t,i){e.viewResolver=t,e.viewRejector=i})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(t){return null}getView(){return this.viewPromise_}ready(){const t=this.getState();return"ready"===t?Promise.resolve():"error"===t?Promise.reject(new Error("Source failed to load")):new Promise((t,e)=>{const i=()=>{const n=this.getState();"ready"===n?(this.un("change",i),t()):"error"===n&&(this.un("change",i),e(new Error("Source failed to load")))};this.on("change",i)})}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=o(t),this.changed()}setState(t){this.state_=t,this.changed()}}function o(t){return t?"function"==typeof t?t:(Array.isArray(t)||(t=[t]),e=>t):null}const a=r;i.d(e,["A",0,a])},6304(t,e,i){i.d(e,{A:()=>I});var n=i(190),s=i(1078),r=i(6837),o=i(7771),a=i(6173),l=i(2214),h=i(186),c=i(6148),u=i(4087),d=i(1597);const g=/\{z\}/g,f=/\{x\}/g,_=/\{y\}/g,p=/\{-y\}/g;function m(t,e){return function(i,n,s){if(!i)return;let r;const o=i[0];if(e){const t=e.getFullTileRange(o);t&&(r=t.getHeight()-1)}
1return function(t,e,i,n,s){return t.replace(g,e.toString()).replace(f,i.toString()).replace(_,n.toString()).replace(p,function(){if(void 0===s)throw new Error("If the URL template has a {-y} placeholder, the grid extent must be known");return(s-n).toString()})}(t,o,i[1],i[2],r)}}var y=i(1685),v=i(6782),x=i(6444);class E extends x.A{constructor(t){super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX,interpolate:t.interpolate}),this.on,this.once,this.un,this.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null;this.tileGrid&&(0,v.xq)(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),[256,256]),this.tmpSize=[0,0],this.key_=t.key||(0,u.v6)(this),this.tileOptions={transition:t.transition,interpolate:t.interpolate},this.zDirection=t.zDirection?t.zDirection:0}getGutterForProjection(t){return 0}getKey(){return this.key_}setKey(t){this.key_!==t&&(this.key_=t,this.changed())}getResolutions(t){const e=t?this.getTileGridForProjection(t):this.tileGrid;return e?e.getResolutions():null}getTile(t,e,i,n,s,r){return(0,u.b0)()}getTileGrid(){return this.tileGrid}getTileGridForProjection(t){return this.tileGrid?this.tileGrid:(0,c.pr)(t)}getTilePixelRatio(t){return this.tilePixelRatio_}getTilePixelSize(t,e,i){const n=this.getTileGridForProjection(i),s=this.getTilePixelRatio(e),r=(0,v.xq)(n.getTileSize(t),this.tmpSize);return 1==s?r:(0,v.hs)(r,s,this.tmpSize)}getTileCoordForTileUrlFunction(t,e){const i=void 0!==e?e:this.getProjection(),n=void 0!==e?this.getTileGridForProjection(i):this.tileGrid||this.getTileGridForProjection(i);return this.getWrapX()&&i.isGlobal()&&(t=(0,c.Li)(n,t,i)),(0,h.N5)(t,n)?t:null}clear(){}refresh(){this.clear(),super.refresh()}}class S extends y.Ay{constructor(t,e){super(t),this.tile=e}}const w=E;class C extends w{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition,interpolate:t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===C.prototype.tileUrlFunction,this.tileLoadFunction=t.tileLoadFunction,t.tileUrlFunction&&(this.tileUrlFunction=t.tileUrlFunction),this.urls=null,t.urls?this.setUrls(t.urls):t.url&&this.setUrl(t.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(t){const e=t.target,i=(0,u.v6)(e),n=e.getState();let r;n==s.A.LOADING?(this.tileLoadingKeys_[i]=!0,r="tileloadstart"):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],r=n==s.A.ERROR?"tileloaderror":n==s.A.LOADED?"tileloadend":void 0),null!=r&&this.dispatchEvent(new S(r,e))}setTileLoadFunction(t){this.tileLoadFunction=t,this.changed()}setTileUrlFunction(t,e){this.tileUrlFunction=t,void 0!==e?this.setKey(e):this.changed()}setUrl(t){const e=function(t){const e=[];let i=/\{([a-z])-([a-z])\}/.exec(t);if(i){const n=i[1].charCodeAt(0),s=i[2].charCodeAt(0);let r;for(r=n;r<=s;++r)e.push(t.replace(i[0],String.fromCharCode(r)));return e}if(i=/\{(\d+)-(\d+)\}/.exec(t),i){const n=parseInt(i[2],10);for(let s=parseInt(i[1],10);s<=n;s++)e.push(t.replace(i[0],s.toString()));return e}return e.push(t),e}(t);this.urls=e,this.setUrls(e)}setUrls(t){this.urls=t;const e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function(t,e){const i=t.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=m(t[s],e);return function(t){return 1===t.length?t[0]:function(e,i,n){if(!e)return;const s=(0,h.tW)(e),r=(0,d.xP)(s,t.length);return t[r](e,i,n)}}(n)}(t,this.tileGrid),e):this.setKey(e)}tileUrlFunction(t,e,i){}}const A=C;function R(t,e){if(o.Wl){const i=t.getCrossOrigin();let n="same-origin",s="same-origin";"anonymous"===i||""===i?(n="cors",s="omit"):"use-credentials"===i&&(n="cors",s="include");const r={mode:n,credentials:s,referrerPolicy:t.getReferrerPolicy()};return void fetch(e,r).then(t=>{if(!t.ok)throw new Error(`HTTP ${t.status}`);return t.blob()}).then(t=>createImageBitmap(t)).then(e=>{const i=t.getImage();i.width=e.width,i.height=e.height,i.getContext("2d").drawImage(e,0,0),e.close?.(),i.dispatchEvent(new Event("load"))}).catch(()=>{t.getImage().dispatchEvent(new Event("error"))})}t.getImage().src=e}const I=class extends A{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:R,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,interpolate:void 0===t.interpolate||t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.referrerPolicy=t.referrerPolicy,this.tileClass=void 0!==t.tileClass?t.tileClass:n.A,this.tileGridForProjection={},this.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(t){return this.getProjection()&&t&&!(0,a.tI)(this.getProjection(),t)?0:this.getGutter()}getGutter(){return 0}getKey(){let t=super.getKey();return this.getInterpolate()||(t+=":disable-interpolation"),t}getTileGridForProjection(t){const e=this.getProjection();
1if(this.tileGrid&&(!e||(0,a.tI)(e,t)))return this.tileGrid;const i=(0,u.v6)(t);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=(0,c.pr)(t)),this.tileGridForProjection[i]}createTile_(t,e,i,n,o,a){const l=[t,e,i],h=this.getTileCoordForTileUrlFunction(l,o),c=h?this.tileUrlFunction(h,n,o):void 0,u=new this.tileClass(l,void 0!==c?s.A.IDLE:s.A.EMPTY,void 0!==c?c:"",{crossOrigin:this.crossOrigin,referrerPolicy:this.referrerPolicy},this.tileLoadFunction,this.tileOptions);return u.key=a,u.addEventListener(r.A.CHANGE,this.handleTileChange.bind(this)),u}getTile(t,e,i,n,s,r){const o=this.getProjection();if(!o||!s||(0,a.tI)(o,s))return this.getTileInternal(t,e,i,n,o||s);const h=[t,e,i],c=this.getKey(),u=this.getTileGridForProjection(o),d=this.getTileGridForProjection(s),g=this.getTileCoordForTileUrlFunction(h,s),f=new l.A(o,u,s,d,h,g,this.getTilePixelRatio(n),this.getGutter(),(t,e,i,n)=>this.getTileInternal(t,e,i,n,o,r),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return f.key=c,f}getTileInternal(t,e,i,n,s,r){const o=this.getKey(),a=(0,h.et)(this,o,t,e,i);if(r&&r.containsKey(a))return r.get(a);const l=this.createTile_(t,e,i,n,s,o);return r?.set(a,l),l}
1setRenderReprojectionEdges(t){this.renderReprojectionEdges_!=t&&(this.renderReprojectionEdges_=t,this.changed())}setTileGridForProjection(t,e){const i=(0,a.Jt)(t);if(i){const t=(0,u.v6)(i);t in this.tileGridForProjection||(this.tileGridForProjection[t]=e)}}}},2412(t,e,i){i.d(e,{A:()=>F});var n=i(71),s=i(2135),r=i(8450),o=i(6514),a=i(588),l=i(9438),h=i(1685),c=i(6837),u=i(915);function d(t,e){return function(i,n,s,r,o){!function(t,e,i,n,s,r,o){const a=new XMLHttpRequest;a.open("GET","function"==typeof t?t(i,n,s):t,!0),"arraybuffer"==e.getType()&&(a.responseType="arraybuffer"),a.withCredentials=false,a.onload=function(t){if(!a.status||a.status>=200&&a.status<300){const t=e.getType();try{let n;"text"==t||"json"==t?n=a.responseText:"xml"==t?n=a.responseXML||a.responseText:"arraybuffer"==t&&(n=a.response),n?r(e.readFeatures(n,{extent:i,featureProjection:s}),e.readProjection(n)):o()}catch{o()}}else o()},a.onerror=o,a.send()}(t,e,i,n,s,(t,e)=>{this.addFeatures(t),void 0!==r&&r(t)},()=>{this.changed(),void 0!==o&&o()})}}var g=i(4238),f=i(6173);function _(t,e){return[[-1/0,-1/0,1/0,1/0]]}var p=i(3530),m=i(2616),y=i(1597);function v(t,e,i,n,s,r,a){let l,h;const c=(i-e)/n;if(1===c)l=e;else if(2===c)l=e,h=s;else if(0!==c){let r=t[e],a=t[e+1],c=0;const u=[0];for(let s=e+n;s<i;s+=n){const e=t[s],i=t[s+1];c+=Math.sqrt((e-r)*(e-r)+(i-a)*(i-a)),u.push(c),r=e,a=i}const d=s*c,g=(0,o.El)(u,d);g<0?(h=(d-u[-g-2])/(u[-g-1]-u[-g-2]),l=e+(-g-2)*n):l=e+g*n}a=a>1?a:2,r=r||new Array(a);for(let e=0;e<a;++e)r[e]=void 0===l?NaN:void 0===h?t[l+e]:(0,y.Cc)(t[l+e],t[l+n+e],h);return r}var x=i(3402),E=i(3671),S=i(7622),w=i(9703);const C=(0,w.vt)();class A{constructor(t,e,i,n,s,r){this.styleFunction,this.extent_,this.id_=r,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=i||null,this.properties_=s,this.squaredTolerance_,this.stride_=n,this.simplifiedGeometry_}get(t){return this.properties_[t]}getExtent(){return this.extent_||(this.extent_="Point"===this.type_?(0,u.dP)(this.flatCoordinates_):(0,u.Vy)(this.flatCoordinates_,0,this.flatCoordinates_.length,this.stride_)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const t=(0,u.q1)(this.getExtent());this.flatInteriorPoints_=(0,m.J)(this.flatCoordinates_,0,this.ends_,this.stride_,t,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const t=(0,x.yJ)(this.flatCoordinates_,this.ends_),e=function(t,e,i,n){const s=[];let r=(0,u.S5)();for(let o=0,a=i.length;o<a;++o){const a=i[o];r=(0,u.Vy)(t,e,a[0],n),s.push((r[0]+r[2])/2,(r[1]+r[3])/2),e=a[a.length-1]}return s}(this.flatCoordinates_,0,t,this.stride_);this.flatInteriorPoints_=(0,m.p)(this.flatCoordinates_,0,t,this.stride_,e)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=v(this.flatCoordinates_,0,this.flatCoordinates_.length,this.stride_,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const t=this.flatCoordinates_;let e=0;const i=this.ends_;for(let n=0,s=i.length;n<s;++n){const s=i[n],r=v(t,e,s,this.stride_,.5);(0,o.X$)(this.flatMidpoints_,r),e=s}}return this.flatMidpoints_}getId(){return this.id_}getOrientedFlatCoordinates(){return this.flatCoordinates_}getGeometry(){return this}getSimplifiedGeometry(t){return this}simplifyTransformed(t,e){return this}getProperties(){return this.properties_}getPropertiesInternal(){return this.properties_}getStride(){return this.stride_}getStyleFunction(){return this.styleFunction}getType(){return this.type_}transform(t){const e=(t=(0,f.Jt)(t)).getExtent(),i=t.getWorldExtent();if(e&&i){const t=(0,u.Oq)(i)/(0,u.Oq)(e);(0,w.Zz)(C,i[0],i[3],t,-t,0,0,0),(0,S.Rc)(this.flatCoordinates_,0,this.flatCoordinates_.length,this.stride_,C,this.flatCoordinates_)}}applyTransform(t){t(this.flatCoordinates_,this.flatCoordinates_,this.stride_)}clone(){return new A(this.type_,this.flatCoordinates_.slice(),this.ends_?.slice(),this.stride_,Object.assign({},this.properties_),this.id_)}getEnds(){return this.ends_}enableSimplifyTransformed(){return this.simplifyTransformed=(0,g.B4)((t,e)=>{if(t===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),e&&this.simplifiedGeometry_.applyTransform(e);const i=this.simplifiedGeometry_.getFlatCoordinates();let n;switch(this.type_){case"LineString":i.length=(0,E.P4)(i,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,t,i,0),n=[i.length];break;case"MultiLineString":n=[],i.length=(0,E.AL)(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,t,i,0,n);break;case"Polygon":n=[],i.length=(0,E.Hg)(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(t),i,0,n)}
1return n&&(this.simplifiedGeometry_=new A(this.type_,i,n,this.stride_,this.properties_,this.id_)),this.squaredTolerance_=t,this.simplifiedGeometry_}),this}}A.prototype.getFlatCoordinates=A.prototype.getOrientedFlatCoordinates;const R=A;var I=i(2375),T=i(4087);const M=class{constructor(t){this.rbush_=new I.A(t),this.items_={}}insert(t,e){const i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[(0,T.v6)(e)]=i}load(t,e){const i=new Array(e.length);for(let n=0,s=e.length;n<s;n++){const s=t[n],r=e[n],o={minX:s[0],minY:s[1],maxX:s[2],maxY:s[3],value:r};i[n]=o,this.items_[(0,T.v6)(r)]=o}this.rbush_.load(i)}remove(t){const e=(0,T.v6)(t),i=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(i)}update(t,e){const i=this.items_[(0,T.v6)(e)],n=[i.minX,i.minY,i.maxX,i.maxY];(0,u.aI)(n,t)||(this.remove(e),this.insert(t,e))}getAll(){return this.rbush_.all().map(function(t){return t.value})}getInExtent(t){const e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map(function(t){return t.value})}forEach(t){return this.forEach_(this.getAll(),t)}forEachInExtent(t,e){return this.forEach_(this.getInExtent(t),e)}forEach_(t,e){let i;for(let n=0,s=t.length;n<s;n++)if(i=e(t[n]),i)return i;return i}isEmpty(){return(0,p.p)(this.items_)}clear(){this.rbush_.clear(),this.items_={}}getExtent(t){const e=this.rbush_.toJSON();return(0,u.N)(e.minX,e.minY,e.maxX,e.maxY,t)}concat(t){this.rbush_.load(t.rbush_.all());for(const e in t.items_)this.items_[e]=t.items_[e]}};var b=i(6444);const P="addfeature",O="removefeature";class L extends h.Ay{constructor(t,e,i){super(t),this.feature=e,this.features=i}}class D extends b.A{constructor(t){super({attributions:(t=t||{}).attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.on,this.once,this.un,this.loader_=g.tV,this.format_=t.format||null,this.overlaps_=void 0===t.overlaps||t.overlaps,this.url_=t.url,void 0!==t.loader?this.loader_=t.loader:void 0!==this.url_&&((0,a.v)(this.format_,"`format` must be set when `url` is set"),this.loader_=d(this.url_,this.format_)),this.strategy_=void 0!==t.strategy?t.strategy:_;const e=void 0===t.useSpatialIndex||t.useSpatialIndex;let i,s;this.featuresRtree_=e?new M:null,this.loadedExtentsRtree_=new M,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(t.features)?s=t.features:t.features&&(i=t.features,s=i.getArray()),e||void 0!==i||(i=new n.A(s)),void 0!==s&&this.addFeaturesInternal(s),void 0!==i&&this.bindFeaturesCollection_(i)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=(0,T.v6)(t);if(!this.addToIndex_(e,t))return void(this.featuresCollection_&&this.featuresCollection_.remove(t));this.setupChangeEvents_(e,t);const i=t.getGeometry();if(i){const e=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(e,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new L(P,t))}setupChangeEvents_(t,e){e instanceof R||(this.featureChangeKeys_[t]=[(0,l.KT)(e,c.A.CHANGE,this.handleFeatureChange_,this),(0,l.KT)(e,r.A.PROPERTYCHANGE,this.handleFeatureChange_,this)])}addToIndex_(t,e){let i=!0;if(void 0!==e.getId()){const t=String(e.getId());if(t in this.idIndex_)if(e instanceof R){const n=this.idIndex_[t];n instanceof R?Array.isArray(n)?n.push(e):this.idIndex_[t]=[n,e]:i=!1}else i=!1;else this.idIndex_[t]=e}return i&&((0,a.v)(!(t in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[t]=e),i}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){const e=[],i=[],n=[];for(let e=0,n=t.length;e<n;e++){const n=t[e],s=(0,T.v6)(n);this.addToIndex_(s,n)&&i.push(n)}for(let t=0,s=i.length;t<s;t++){const s=i[t],r=(0,T.v6)(s);this.setupChangeEvents_(r,s);const o=s.getGeometry();if(o){const t=o.getExtent();e.push(t),n.push(s)}else this.nullGeometryFeatures_[r]=s}if(this.featuresRtree_&&this.featuresRtree_.load(e,n),this.hasListener(P))for(let t=0,e=i.length;t<e;t++)this.dispatchEvent(new L(P,i[t]))}bindFeaturesCollection_(t){let e=!1;this.addEventListener(P,function(i){e||(e=!0,t.push(i.feature),e=!1)}),this.addEventListener(O,function(i){e||(e=!0,t.remove(i.feature),e=!1)}),t.addEventListener(s.A.ADD,t=>{e||(e=!0,this.addFeature(t.element),e=!1)}),t.addEventListener(s.A.REMOVE,t=>
vendor: 4,537 bytes, line 1
1{e||(e=!0,this.removeFeature(t.element),e=!1)}),this.featuresCollection_=t}clear(t){if(t){for(const t in this.featureChangeKeys_)this.featureChangeKeys_[t].forEach(l.JH);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){this.featuresRtree_.forEach(t=>{this.removeFeatureInternal(t)});for(const t in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[t])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new L("clear");this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){const i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,function(i){const n=i.getGeometry();if(n instanceof R||n.intersectsCoordinate(t))return e(i)})}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,function(i){const n=i.getGeometry();if(n instanceof R||n.intersectsExtent(t)){const t=e(i);if(t)return t}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),(0,p.p)(this.nullGeometryFeatures_)||(0,o.X$)(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,function(t){e.push(t)}),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);const i=(0,u.QJ)(t,e);return[].concat(...i.map(t=>this.featuresRtree_.getInExtent(t)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const i=t[0],n=t[1];let s=null;const r=[NaN,NaN];let o=1/0;const a=[-1/0,-1/0,1/0,1/0];return e=e||g.rT,this.featuresRtree_.forEachInExtent(a,function(t){if(e(t)){const e=t.getGeometry(),l=o;if(o=e instanceof R?0:e.closestPointXY(i,n,r,o),o<l){s=t;const e=Math.sqrt(o);a[0]=i-e,a[1]=n-e,a[2]=i+e,a[3]=n+e}}}),s}getExtent(t){return this.featuresRtree_?.getExtent(t)??null}getFeatureById(t){const e=this.idIndex_[t.toString()];return void 0!==e?e:null}getFeatureByUid(t){const e=this.uidIndex_[t];return void 0!==e?e:null}getFormat(){return this.format_}getOverlaps(){return this.overlaps_}getUrl(){return this.url_}handleFeatureChange_(t){const e=t.target,i=(0,T.v6)(e),n=e.getGeometry();if(n){const t=n.getExtent();i in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[i],this.featuresRtree_&&this.featuresRtree_.insert(t,e)):this.featuresRtree_&&this.featuresRtree_.update(t,e)}else i in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[i]=e);const s=e.getId();if(void 0!==s){const t=s.toString();this.idIndex_[t]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[t]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[i]=e;this.changed(),this.dispatchEvent(new L("changefeature",e))}hasFeature(t){const e=t.getId();if(void 0!==e){const i=this.idIndex_[String(e)];return Array.isArray(i)?i.includes(t):i===t}return(0,T.v6)(t)in this.uidIndex_}isEmpty(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&(0,p.p)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()}loadFeatures(t,e,i){const n=this.loadedExtentsRtree_,s=this.strategy_(t,e,i);for(let t=0,r=s.length;t<r;++t){const r=s[t];if(!n.forEachInExtent(r,function(t){return(0,u.ms)(t.extent,r)})){this.loading=Number(this.loading)+1,this.dispatchEvent(new L("featuresloadstart"));const t=t=>{this.loading=Number(this.loading)-1,this.dispatchEvent(new L("featuresloadend",void 0,t))},s=()=>{this.changed(),this.loading=Number(this.loading)-1,this.dispatchEvent(new L("featuresloaderror"))};let o=!1;const a=this.loader_.call(this,r,e,i,e=>o||t(e),()=>o||s());a instanceof Promise?(o=!0,a.then(e=>{this.addFeatures(e),t(e)}).catch(s)):this.loader_.length<4&&(this.loading=!1),n.insert(r,{extent:r.slice()})}}}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_,i=[];e.forEachInExtent(t,function(t){i.push(t)}
1),i.forEach(i=>{e.remove(i);const n=(0,u.wB)(i.extent,t);for(const t of n)e.insert(t,{extent:t})})}removeFeatures(t){let e=!1;for(let i=0,n=t.length;i<n;++i)e=this.removeFeatureInternal(t[i])||e;e&&this.changed()}removeFeature(t){t&&this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){const e=(0,T.v6)(t);if(!(e in this.uidIndex_))return!1;e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t);const i=this.featureChangeKeys_[e];i?.forEach(l.JH),delete this.featureChangeKeys_[e];const n=t.getId();if(void 0!==n){const e=n.toString(),i=this.idIndex_[e];i===t?delete this.idIndex_[e]:Array.isArray(i)&&(i.splice(i.indexOf(t),1),1===i.length&&(this.idIndex_[e]=i[0]))}return delete this.uidIndex_[e],this.hasListener(O)&&this.dispatchEvent(new L(O,t)),!0}removeFromIdIndex_(t){for(const e in this.idIndex_)if(this.idIndex_[e]===t){delete this.idIndex_[e];break}}setLoader(t){this.loader_=t}setUrl(t){(0,a.v)(this.format_,"`format` must be set when `url` is set"),this.url_=t,this.setLoader(d(t,this.format_))}setOverlaps(t){this.overlaps_=t,this.changed()}}const F=D},702(t,e,i){var n=i(6148),s=i(6304);class r extends s.A{constructor(t){const e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",i=void 0!==t.tileGrid?t.tileGrid:(0,n.EN)({extent:(0,n.kZ)(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,interpolate:t.interpolate,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:i,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=void 0!==t.gutter?t.gutter:0}getGutter(){return this.gutter_}}const o=r;i.d(e,["A",0,o])},7733(t,e,i){var n=i(6936);class s extends n.A{constructor(t){super({points:1/0,fill:(t=t||{radius:5}).fill,radius:t.radius,stroke:t.stroke,scale:void 0!==t.scale?t.scale:1,rotation:void 0!==t.rotation?t.rotation:0,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode})}clone(){const t=this.getScale(),e=new s({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 e.setOpacity(this.getOpacity()),e}}const r=s;i.d(e,["A",0,r])},1247(t,e,i){var n=i(6141),s=i(9352),r=i(4087),o=i(7907);class a{constructor(t){t=t||{},this.patternImage_=null,this.color_=null,void 0!==t.color&&this.setColor(t.color)}clone(){const t=this.getColor();return new a({color:Array.isArray(t)?t.slice():t||void 0})}getColor(){return this.color_}setColor(t){if(null!==t&&"object"==typeof t&&"src"in t){const e=(0,o.J)(null,t.src,{crossOrigin:"anonymous"},void 0,t.offset?null:t.color?t.color:null,!(t.offset&&t.size));e.ready().then(()=>{this.patternImage_=null}),e.getImageState()===n.A.IDLE&&e.load(),e.getImageState()===n.A.LOADING&&(this.patternImage_=e)}this.color_=t}getKey(){const t=this.getColor();return t?t instanceof CanvasPattern||t instanceof CanvasGradient?(0,r.v6)(t):"object"==typeof t&&"src"in t?t.src+":"+t.offset:(0,s._j)(t).toString():""}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}}const l=a;i.d(e,["A",0,l])},9700(t,e,i){var n=i(6141),s=i(588),r=i(9352),o=i(6837),a=i(4087),l=i(7907),h=i(940);function c(t,e,i,n){return void 0!==i&&void 0!==n?[i/t,n/e]:void 0!==i?i/t:void 0!==n?n/e:1}class u extends h.A{constructor(t){const e=void 0!==(t=t||{}).opacity?t.opacity:1,i=void 0!==t.rotation?t.rotation:0,o=void 0!==t.scale?t.scale:1,h=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:e,rotation:i,scale:o,displacement:void 0!==t.displacement?t.dis
1placement:[0,0],rotateWithView:h,declutterMode:t.declutterMode}),this.anchor_=void 0!==t.anchor?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.crossOrigin_=void 0!==t.crossOrigin?t.crossOrigin:null,this.referrerPolicy_=t.referrerPolicy;const u=void 0!==t.img?t.img:null;let d,g=t.src;if((0,s.v)(!(void 0!==g&&u),"`image` and `src` cannot be provided at the same time"),void 0!==g&&0!==g.length||!u||(g=u.src||(0,a.v6)(u)),(0,s.v)(void 0!==g&&g.length>0,"A defined and non-empty `src` or `image` must be provided"),(0,s.v)(!((void 0!==t.width||void 0!==t.height)&&void 0!==t.scale),"`width` or `height` cannot be provided together with `scale`"),void 0!==t.src?d=n.A.IDLE:void 0!==u&&(d="complete"in u?u.complete?u.src?n.A.LOADED:n.A.IDLE:n.A.LOADING:n.A.LOADED),this.color_=void 0!==t.color?(0,r._j)(t.color):null,this.iconImage_=(0,l.J)(u,g,{crossOrigin:this.crossOrigin_,referrerPolicy:this.referrerPolicy_},d,this.color_),this.offset_=void 0!==t.offset?t.offset:[0,0],this.offsetOrigin_=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==t.size?t.size:null,this.initialOptions_,void 0!==t.width||void 0!==t.height){let e,i;if(t.size)[e,i]=t.size;else{const n=this.getImage(1);if(n.width&&n.height)e=n.width,i=n.height;else if(n instanceof HTMLImageElement){this.initialOptions_=t;const e=()=>{if(this.unlistenImageChange(e),!this.initialOptions_)return;const i=this.iconImage_.getSize();this.setScale(c(i[0],i[1],t.width,t.height))};return void this.listenImageChange(e)}}void 0!==e&&this.setScale(c(e,i,t.width,t.height))}}clone(){let t,e,i;return this.initialOptions_?(e=this.initialOptions_.width,i=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new u({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_,referrerPolicy:this.referrerPolicy_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:i,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;const e=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!e)return null;t=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(t[0]*=e[0]),"fraction"==this.anchorYUnits_&&(t[1]*=e[1])}if("top-left"!=this.anchorOrigin_){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),"top-right"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[0]=-t[0]+e[0]),"bottom-left"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),i=this.getScaleArray();return[t[0]-e[0]/i[0],t[1]+e[1]/i[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}setColor(t){const e=t?(0,r._j)(t):null;if(this.color_===e||this.color_&&e&&this.color_.length===e.length&&this.color_.every((t,i)=>t===e[i]))return;this.color_=e;const i=this.getSrc(),s=void 0!==i?null:this.getHitDetectionImage(),o=void 0!==i?n.A.IDLE:this.iconImage_.getImageState();this.iconImage_=(0,l.J)(s,i,{crossOrigin:this.crossOrigin_,referrerPolicy:this.referrerPolicy_},o,this.color_)}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if("top-left"!=this.offsetOrigin_){const e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),"top-right"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[0]=i[0]-e[0]-t[0]),"bottom-left"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}setSrc(t){this.iconImage_=(0,l.J)(null,t,{crossOrigin:this.crossOrigin_,referrerPolicy:this.referrerPolicy_},n.A.IDLE,this.color_)}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();return this.size_?this.size_[0]*t[0]:this.iconImage_.getImageState()==n.A.LOADED?this.iconImage_.getSize()[0]*t[0]:void 0}getHeight(){const t=this.getScaleArray();return this.size_?this.size_[1]*t[1]:this.iconImage_.getImageState()==n.A.LOADED?this.iconImage_.getSize()[1]*t[1]:void 0}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(o.A.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(o.A.CHANGE,t)}ready(){return this.iconImage_.ready()}}const d=u;i.d(e,["A",0,d])},7907(t,e,i){i.d(e,{J:()=>d});var n=i(3938),s=i(6141),r=i(9352),o=i(8711),a=i(6837),l=i(9332),h=i(2241);let c=null;class u extends l.A{constructor(t,e,i,n,r){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=i?.crossOrigin,this.referrerPolicy_=i?.referrerPolicy,this.canvas_={},this.color_=r,this.imageState_=void 0===n?s.A.IDLE:n,this.size_=t&&t.width&&t.height?[t.width,t.height]:null,this.src_=e,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_),void 0!==this.referrerPolicy_&&(this.image_.referrerPolicy=this.referrerPolicy_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===s.A.LOADED){c||(c=(0,o.Y)(1,1,void 0,{willReadFrequently:!0}
1)),c.drawImage(this.image_,0,0);try{c.getImageData(0,0,1,1),this.tainted_=!1}catch{c=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(a.A.CHANGE)}handleImageError_(){this.imageState_=s.A.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=s.A.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}setImage(t){this.image_=t}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const t=this.size_[0],e=this.size_[1],i=(0,o.Y)(t,e);i.fillRect(0,0,t,e),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===s.A.IDLE){this.image_||this.initializeImage_(),this.imageState_=s.A.LOADING;try{void 0!==this.src_&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&(0,n.RA)(this.image_,this.src_).then(t=>{this.image_=t,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==s.A.LOADED)return;const e=this.image_,i=(0,o.Y)(Math.ceil(e.width*t),Math.ceil(e.height*t)),n=i.canvas;i.scale(t,t),i.drawImage(e,0,0),i.globalCompositeOperation="multiply",i.fillStyle=(0,r.oJ)(this.color_),i.fillRect(0,0,n.width/t,n.height/t),i.globalCompositeOperation="destination-in",i.drawImage(e,0,0),this.canvas_[t]=n}ready(){return this.ready_||(this.ready_=new Promise(t=>{if(this.imageState_===s.A.LOADED||this.imageState_===s.A.ERROR)t();else{const e=()=>{this.imageState_!==s.A.LOADED&&this.imageState_!==s.A.ERROR||(this.removeEventListener(a.A.CHANGE,e),t())};this.addEventListener(a.A.CHANGE,e)}})),this.ready_}}function d(t,e,i,n,s,r){let o=void 0===e?void 0:h.ue.get(e,s);return o||(o=new u(t,t&&"src"in t?t.src||void 0:e,i,n,s),h.ue.set(e,s,o,r)),r&&o&&!h.ue.getPattern(e,s)&&h.ue.set(e,s,o,r),o}const g=u;i.d(e,["A",0,g])},2241(t,e,i){var n=i(6141),s=i(9352),r=i(8711);function o(t,e){return t+":"+(e?(0,s._j)(e):"null")}const a=new class{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=1024}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const i=this.cache_[e];3&t++||i.hasListener()||(delete this.cache_[e],delete this.patternCache_[e],--this.cacheSize_)}}}get(t,e){const i=o(t,e);return i in this.cache_?this.cache_[i]:null}getPattern(t,e){const i=o(t,e);return i in this.patternCache_?this.patternCache_[i]:null}set(t,e,i,s){const a=o(t,e),l=a in this.cache_;this.cache_[a]=i,s&&(i.getImageState()===n.A.IDLE&&i.load(),i.getImageState()===n.A.LOADING?i.ready().then(()=>{this.patternCache_[a]=(0,r.lr)().createPattern(i.getImage(1),"repeat")}):this.patternCache_[a]=(0,r.lr)().createPattern(i.getImage(1),"repeat")),l||++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}};i.d(e,["ue",0,a])},940(t,e,i){var n=i(6782),s=i(4087);class r{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,n.xq)(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new r({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return(0,s.b0)()}getImage(t){return(0,s.b0)()}getHitDetectionImage(){return(0,s.b0)()}getPixelRatio(t){return 1}getImageState(){return(0,s.b0)()}getImageSize(){return(0,s.b0)()}getOrigin(){return(0,s.b0)()}getSize(){return(0,s.b0)()}setDisplacement(t){this.displacement_=t}setOpacity(t){this.opacity_=t}setRotateWithView(t){this.rotateWithView_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,n.xq)(t)}listenImageChange(t){(0,s.b0)()}load(){(0,s.b0)()}unlistenImageChange(t){(0,s.b0)()}ready(){return Promise.resolve()}}const o=r;i.d(e,["A",0,o])},6936(t,e,i){var n=i(6141),s=i(9352),r=i(7295),o=i(8711),a=i(7907),l=i(2241),h=i(940);class c extends h.A{constructor(t){super({opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.dis
vendor: 6,107 bytes, line 1
1placement:[0,0],declutterMode:t.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius=t.radius,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?n.A.LOADING:n.A.LOADED,this.imageState_===n.A.LOADING&&this.ready().then(()=>this.imageState_=n.A.LOADED),this.render()}clone(){const t=this.getScale(),e=new c({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 e.setOpacity(this.getOpacity()),e}getAnchor(){const t=this.size_,e=this.getDisplacement(),i=this.getScaleArray();return[t[0]/2-e[0]/i[0],t[1]/2+e[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(t){this.fill_=t,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(t){const e=this.fill_?.getKey(),i=`${t},${this.angle_},${this.radius},${this.radius2_},${this.points_},${e}`+Object.values(this.renderOptions_).join(",");let s=l.ue.get(i,null)?.getImage(1);if(!s){const e=this.renderOptions_,r=Math.ceil(e.size*t),h=(0,o.Y)(r,r);this.draw_(e,h,t),s=h.canvas;const c=new a.A(s,void 0,null,n.A.LOADED,null);l.ue.set(i,null,c),createImageBitmap(s).then(t=>{c.setImage(t)})}return s}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}setRadius(t){this.radius!==t&&(this.radius=t,this.render())}getRadius2(){return this.radius2_}setRadius2(t){this.radius2_!==t&&(this.radius2_=t,this.render())}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,i){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;let n=this.radius,s=void 0===this.radius2_?n:this.radius2_;if(n<s){const t=n;n=s,s=t}const r=void 0===this.radius2_?this.points_:2*this.points_,o=2*Math.PI/r,a=s*Math.sin(o),l=n-Math.sqrt(s*s-a*a),h=Math.sqrt(a*a+l*l),c=h/a;if("miter"===t&&c<=i)return c*e;const u=e/2/c,d=e/2*(l/h),g=Math.sqrt((n+u)*(n+u)+d*d)-n;if(void 0===this.radius2_||"bevel"===t)return 2*g;const f=n*Math.sin(o),_=s-Math.sqrt(n*n-f*f),p=Math.sqrt(f*f+_*_)/f;if(p<=i){const t=p*e/2-s-n;return 2*Math.max(g,t)}return 2*g}createRenderOptions(){let t,e="round",i="round",n=0,s=null,o=0,a=0;this.stroke_&&(t=(0,r.F)(this.stroke_.getColor()??"#000"),a=this.stroke_.getWidth()??1,s=this.stroke_.getLineDash(),o=this.stroke_.getLineDashOffset()??0,i=this.stroke_.getLineJoin()??"round",e=this.stroke_.getLineCap()??"round",n=this.stroke_.getMiterLimit()??10);const l=this.calculateLineJoinSize_(i,a,n),h=Math.max(this.radius,this.radius2_||0);return{strokeStyle:t,strokeWidth:a,size:Math.ceil(2*h+l),lineCap:e,lineDash:s,lineDashOffset:o,lineJoin:i,miterLimit:n}}render(){this.renderOptions_=this.createRenderOptions();const t=this.renderOptions_.size;this.hitDetectionCanvas_=null,this.size_=[t,t]}draw_(t,e,i){if(e.scale(i,i),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){let t=this.fill_.getColor();null===t&&(t="#000"),e.fillStyle=(0,r.F)(t),e.fill()}t.strokeStyle&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}createHitDetectionCanvas_(t){let e;if(this.fill_){let i=this.fill_.getColor(),n=0;"string"==typeof i&&(i=(0,s._j)(i)),null===i?n=1:Array.isArray(i)&&(n=4===i.length?i[3]:1),0===n&&(e=(0,o.Y)(t.size,t.size),this.drawHitDetectionCanvas_(t,e))}return e?e.canvas:this.getImage(1)}createPath_(t){let e=this.points_;const i=this.radius;if(e===1/0)t.arc(0,0,i,0,2*Math.PI);else{const n=void 0===this.radius2_?i:this.radius2_;void 0!==this.radius2_&&(e*=2);const s=this.angle_-Math.PI/2,r=2*Math.PI/e;for(let o=0;o<e;o++){const e=s+o*r,a=o%2==0?i:n;t.lineTo(a*Math.cos(e),a*Math.sin(e))}t.closePath()}}drawHitDetectionCanvas_(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle="#000",e.fill(),t.strokeStyle&&(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())}ready(){return this.fill_?this.fill_.ready():Promise.resolve()}}const u=c;i.d(e,["A",0,u])},953(t,e,i){class n{constructor(t){t=t||{},this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.offset_=t.offset,this.width_=t.width}clone(){const t=this.getColor();return new n({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),offset:this.getOffset(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getOffset(){return this.offset_}getWidth(){return this.width_}setColor(t){this.color_=t}setLineCap(t){this.lineCap_=t}setLineDash(t){this.lineDash_=t}setLineDashOffset(t){this.lineDashOffset_=t}setLineJoin(t){this.lineJoin_=t}setMiterLimit(t){this.miterLimit_=t}setOffset(t){this.offset_=t}setWidth(t){this.width_=t}}const s=n;i.d(e,["A",0,s])}
1,9276(t,e,i){i.d(e,{d1:()=>c,mC:()=>l});var n=i(588),s=i(7733),r=i(1247),o=i(953);class a{constructor(t){t=t||{},this.geometry_=null,this.geometryFunction_=u,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.hitDetectionRenderer_=void 0!==t.hitDetectionRenderer?t.hitDetectionRenderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}clone(){let t=this.getGeometry();return t&&"object"==typeof t&&(t=t.clone()),new a({geometry:t??void 0,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer()??void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(t){this.renderer_=t}setHitDetectionRenderer(t){this.hitDetectionRenderer_=t}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(t){this.fill_=t}getImage(){return this.image_}setImage(t){this.image_=t}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t}getText(){return this.text_}setText(t){this.text_=t}getZIndex(){return this.zIndex_}setGeometry(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_=u,this.geometry_=t}setZIndex(t){this.zIndex_=t}}function l(t){let e;if("function"==typeof t)e=t;else{let i;Array.isArray(t)?i=t:((0,n.v)("function"==typeof t.getZIndex,"Expected an `Style` or an array of `Style`"),i=[t]),e=function(){return i}}return e}let h=null;function c(t,e){if(!h){const t=new r.A({color:"rgba(255,255,255,0.4)"}),e=new o.A({color:"#3399CC",width:1.25});h=[new a({image:new s.A({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]}return h}function u(t){return t.getGeometry()}const d=a;i.d(e,["Ay",0,d])},1426(t,e,i){var n=i(6782),s=i(1247);class r{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.keepUpright_=t.keepUpright,this.scale_=t.scale,this.scaleArray_=(0,n.xq)(void 0!==t.scale?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.repeat_=t.repeat,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new s.A({color:"#333"}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:"point",this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new r({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),keepUpright:this.getKeepUpright(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()instanceof s.A?this.getFill().clone():this.getFill(),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,declutterMode:this.getDeclutterMode()})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getKeepUpright(){return this.keepUpright_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}
1getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}getDeclutterMode(){return this.declutterMode_}setOverflow(t){this.overflow_=t}setFont(t){this.font_=t}setMaxAngle(t){this.maxAngle_=t}setOffsetX(t){this.offsetX_=t}setOffsetY(t){this.offsetY_=t}setPlacement(t){this.placement_=t}setRepeat(t){this.repeat_=t}setRotateWithView(t){this.rotateWithView_=t}setKeepUpright(t){this.keepUpright_=t}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,n.xq)(void 0!==t?t:1)}setStroke(t){this.stroke_=t}setText(t){this.text_=t}setTextAlign(t){this.textAlign_=t}setJustify(t){this.justify_=t}setTextBaseline(t){this.textBaseline_=t}setBackgroundFill(t){this.backgroundFill_=t}setBackgroundStroke(t){this.backgroundStroke_=t}setPadding(t){this.padding_=t}}const o=r;i.d(e,["A",0,o])},186(t,e,i){i.d(e,{N:()=>s,N5:()=>a,et:()=>r,tW:()=>o});var n=i(4087);function s(t,e,i,n){return void 0!==n?(n[0]=t,n[1]=e,n[2]=i,n):[t,e,i]}function r(t,e,i,s,r){return`${(0,n.v6)(t)},${e},${function(t,e,i){return t+"/"+e+"/"+i}(i,s,r)}`}function o(t){return e=t[0],(t[1]<<e)+t[2];var e}function a(t,e){const i=t[0],n=t[1],s=t[2];if(e.getMinZoom()>i||i>e.getMaxZoom())return!1;const r=e.getFullTileRange(i);return!r||r.containsXY(n,s)}},6148(t,e,i){i.d(e,{EN:()=>p,kZ:()=>y,pr:()=>f,Li:()=>_});var n=i(915),s=i(6173),r=i(6782),o=i(1110),a=i(6514),l=i(588),h=i(3386),c=i(1597),u=i(186);const d=[0,0,0],g=class{constructor(t){let e=t.minZoom;const i=t.resolutions;let s;if(void 0===e&&i&&(e=i.findIndex(t=>void 0!==t)),this.minZoom=void 0!==e?e:0,this.resolutions_=i,(0,l.v)((0,a.WC)(this.resolutions_,(t,e)=>e-t,!0),"`resolutions` must be sorted in descending order"),!t.origins)for(let t=0,e=this.resolutions_.length-1;t<e;++t)if(s){if(this.resolutions_[t]/this.resolutions_[t+1]!==s){s=void 0;break}}else s=this.resolutions_[t]/this.resolutions_[t+1];this.zoomFactor_=s,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,(0,l.v)(this.origins_.length==this.resolutions_.length,"Number of `origins` and `resolutions` must be equal"));const r=t.extent;void 0===r||this.origin_||this.origins_||(this.origin_=(0,n.Py)(r)),(0,l.v)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,"Either `origin` or `origins` must be configured, never both"),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,(0,l.v)(this.tileSizes_.length==this.resolutions_.length,"Number of `tileSizes` and `resolutions` must be equal")),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:256,(0,l.v)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,"Either `tileSize` or `tileSizes` must be configured, never both"),this.extent_=void 0!==r?r:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.tileRanges?this.fullTileRanges_=t.tileRanges:void 0!==t.sizes?this.fullTileRanges_=t.sizes.map((t,e)=>{const i=new o.A(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(r){const t=this.getTileRangeForExtentAndZ(r,e);i.minX=Math.max(t.minX,i.minX),i.maxX=Math.min(t.maxX,i.maxX),i.minY=Math.max(t.minY,i.minY),i.maxY=Math.min(t.maxY,i.maxY)}return i}):r&&this.calculateTileRanges_(r)}forEachTileCoord(t,e,i){const n=this.getTileRangeForExtentAndZ(t,e);for(let t=n.minX,s=n.maxX;t<=s;++t)for(let s=n.minY,r=n.maxY;s<=r;++s)i([e,t,s])}forEachTileCoordParentTileRange(t,e,i,n){let s,r,a,l=null,h=t[0]-1;for(2===this.zoomFactor_?(r=t[1],a=t[2]):l=this.getTileCoordExtent(t,n);h>=this.minZoom;){if(void 0!==r&&void 0!==a?(r=Math.floor(r/2),a=Math.floor(a/2),s=(0,o.N)(r,r,a,a,i)):s=this.getTileRangeForExtentAndZ(l,h,i),e(h,s))return!0;--h}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getOrigins(){return this.origins_}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,e,i){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){const i=2*t[1],n=2*t[2];return(0,o.N)(i,i+1,n,n+1,e)}const n=this.getTileCoordExtent(t,i||this.tmpExtent_);return this.getTileRangeForExtentAndZ(n,t[0]+1,e)}return null}getTileRangeForTileCoordAndZ(t,e,i){if(e>this.maxZoom||e<this.minZoom)return null;const n=t[0],s=t[1],r=t[2];if(e===n)return(0,o.N)(s,r,s,r,i);if(this.zoomFactor_){const t=Math.pow(this.zoomFactor_,e-n),a=Math.floor(s*t),l=Math.floor(r*t);
1if(e<n)return(0,o.N)(a,a,l,l,i);const h=Math.floor(t*(s+1))-1,c=Math.floor(t*(r+1))-1;return(0,o.N)(a,h,l,c,i)}const a=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(a,e,i)}getTileRangeForExtentAndZ(t,e,i){this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,d);const n=d[1],s=d[2];this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,d);const r=d[1],a=d[2];return(0,o.N)(n,r,s,a,i)}getTileCoordCenter(t){const e=this.getOrigin(t[0]),i=this.getResolution(t[0]),n=(0,r.xq)(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*n[0]*i,e[1]-(t[2]+.5)*n[1]*i]}getTileCoordExtent(t,e){const i=this.getOrigin(t[0]),s=this.getResolution(t[0]),o=(0,r.xq)(this.getTileSize(t[0]),this.tmpSize_),a=i[0]+t[1]*o[0]*s,l=i[1]-(t[2]+1)*o[1]*s,h=a+o[0]*s,c=l+o[1]*s;return(0,n.N)(a,l,h,c,e)}getTileCoordForCoordAndResolution(t,e,i){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,i)}getTileCoordForXYAndResolution_(t,e,i,n,s){const o=this.getZForResolution(i),a=i/this.getResolution(o),l=this.getOrigin(o),h=(0,r.xq)(this.getTileSize(o),this.tmpSize_);let d=a*(t-l[0])/i/h[0],g=a*(l[1]-e)/i/h[1];return n?(d=(0,c.mk)(d,5)-1,g=(0,c.mk)(g,5)-1):(d=(0,c.RI)(d,5),g=(0,c.RI)(g,5)),(0,u.N)(o,d,g,s)}getTileCoordForXYAndZ_(t,e,i,n,s){const o=this.getOrigin(i),a=this.getResolution(i),l=(0,r.xq)(this.getTileSize(i),this.tmpSize_);let h=(t-o[0])/a/l[0],d=(o[1]-e)/a/l[1];return n?(h=(0,c.mk)(h,5)-1,d=(0,c.mk)(d,5)-1):(h=(0,c.RI)(h,5),d=(0,c.RI)(d,5)),(0,u.N)(i,h,d,s)}getTileCoordForCoordAndZ(t,e,i){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,i)}getTileCoordResolution(t){return this.resolutions_[t[0]]}getTileSize(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]}getFullTileRange(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null}getZForResolution(t,e){const i=(0,a.FT)(this.resolutions_,t,e||0);return(0,c.qE)(i,this.minZoom,this.maxZoom)}tileCoordIntersectsViewport(t,e){return(0,h.sj)(e,0,e.length,2,this.getTileCoordExtent(t))}calculateTileRanges_(t){const e=this.resolutions_.length,i=new Array(e);for(let n=this.minZoom;n<e;++n)i[n]=this.getTileRangeForExtentAndZ(t,n);this.fullTileRanges_=i}};function f(t){let e=t.getDefaultTileGrid();return e||(e=function(t){return function(t,e,i,s){s=void 0!==s?s:"top-left";const r=m(t,e,i);return new g({extent:t,origin:(0,n.qF)(t,s),resolutions:r,tileSize:i})}(y(t),void 0,void 0,void 0)}(t),t.setDefaultTileGrid(e)),e}function _(t,e,i){const s=e[0],r=t.getTileCoordCenter(e),o=y(i);if(!(0,n.Ym)(o,r)){const e=(0,n.RG)(o),i=Math.ceil((o[0]-r[0])/e);return r[0]+=e*i,t.getTileCoordForCoordAndZ(r,s)}return e}function p(t){const e=t||{},i=e.extent||(0,s.Jt)("EPSG:3857").getExtent(),n={extent:i,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:m(i,e.maxZoom,e.tileSize,e.maxResolution)};return new g(n)}function m(t,e,i,s){e=void 0!==e?e:42,i=(0,r.xq)(void 0!==i?i:256);const o=(0,n.Oq)(t),a=(0,n.RG)(t);s=s>0?s:Math.max(a/i[0],o/i[1]);const l=e+1,h=new Array(l);for(let t=0;t<l;++t)h[t]=s/Math.pow(2,t);return h}function y(t){let e=(t=(0,s.Jt)(t)).getExtent();if(!e){const i=180*s.Ig.degrees/t.getMetersPerUnit();e=(0,n.N)(-i,-i,i,i)}return e}},9703(t,e,i){i.d(e,{Bb:()=>a,T9:()=>h,Zz:()=>l,dI:()=>u,k3:()=>o,sH:()=>d,tI:()=>g,vt:()=>r});var n=i(588);const s=[1,0,0,1,0,0];function r(){return s.slice(0)}function o(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 a(t,e){const i=e[0],n=e[1];return e[0]=t[0]*i+t[2]*n+t[4],e[1]=t[1]*i+t[3]*n+t[5],e}function l(t,e,i,n,s,r,o,a){const l=Math.sin(r),h=Math.cos(r);return t[0]=n*h,t[1]=s*l,t[2]=-n*l,t[3]=s*h,t[4]=o*n*h-a*n*l+e,t[5]=o*s*l+a*s*h+i,t}function h(t,e){const i=(s=e)[0]*s[3]-s[1]*s[2];var s;(0,n.v)(0!==i,"Transformation matrix cannot be inverted");const r=e[0],o=e[1],a=e[2],l=e[3],h=e[4],c=e[5];return t[0]=l/i,t[1]=-o/i,t[2]=-a/i,t[3]=r/i,t[4]=(a*c-l*h)/i,t[5]=-(r*c-o*h)/i,t}new Array(6);const c=[1e5,1e5,1e5,1e5,2,2];function u(t){return"matrix("+t.join(", ")+")"}function d(t){return t.substring(7,t.length-1).split(",").map(parseFloat)}function g(t,e){const i=d(t),n=d(e);for(let t=0;t<6;++t)if(0!==Math.round((i[t]-n[t])*c[t]))return!1;return!0}},4087(t,e,i){function n(){throw new Error("Unimplemented abstract method.")}i.d(e,{b0:()=>n,v6:()=>r});let s=0;function r(t){return t.ol_uid||(t.ol_uid=String(++s))}},2375(t,e,i){function n(t,e,i=0,o=t.length-1,a=r){for(;o>i;){if(o-i>600){const s=o-i+1,r=e-i+1,l=Math.log(s),h=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*h*(s-h)/s)*(r-s/2<0?-1:1);n(t,e,Math.max(i,Math.floor(e-r*h/s+c)),Math.min(o,Math.floor(e+(s-r)*h/s+c)),a)}const r=t[e];let l=i,h=o;for(s(t,i,e),a(t[o],r)>0&&s(t,i,o);l<h;){for(s(t,l,h),l++,h--;a(t[l],r)<0;)l++;for(;a(t[h],r)>0;)h--}0===a(t[i],r)?s(t,i,h):(h++,s(t,h,o)),h<=e&&(i=h+1),e<=h&&(o=h-1)}}function s(t,e,i){const n=t[e];t[e]=t[i],t[i]=n}function r(t,e){return t<e?-1:t>e?1:0}i.d(e,{A:()=>
vendor: 4,081 bytes, line 1
1o});class o{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data;const i=[];if(!y(t,e))return i;const n=this.toBBox,s=[];for(;e;){for(let r=0;r<e.children.length;r++){const o=e.children[r],a=e.leaf?n(o):o;y(t,a)&&(e.leaf?i.push(o):m(t,a)?this._all(o,i):s.push(o))}e=s.pop()}return i}collides(t){let e=this.data;if(!y(t,e))return!1;const i=[];for(;e;){for(let n=0;n<e.children.length;n++){const s=e.children[n],r=e.leaf?this.toBBox(s):s;if(y(t,r)){if(e.leaf||m(t,r))return!0;i.push(s)}}e=i.pop()}return!1}load(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(let e=0;e<t.length;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===e.height)this._splitRoot(this.data,e);else{if(this.data.height<e.height){const t=this.data;this.data=e,e=t}this._insert(e,this.data.height-e.height-1,!0)}else this.data=e;return this}insert(t){return t&&this._insert(t,this.data.height-1),this}clear(){return this.data=v([]),this}remove(t,e){if(!t)return this;let i=this.data;const n=this.toBBox(t),s=[],r=[];let o,l,h;for(;i||s.length;){if(i||(i=s.pop(),l=s[s.length-1],o=r.pop(),h=!0),i.leaf){const n=a(t,i.children,e);if(-1!==n)return i.children.splice(n,1),s.push(i),this._condense(s),this}h||i.leaf||!m(i,n)?l?(o++,i=l.children[o],h=!1):i=null:(s.push(i),r.push(o),o=0,l=i,i=i.children[0])}return this}toBBox(t){return t}compareMinX(t,e){return t.minX-e.minX}compareMinY(t,e){return t.minY-e.minY}toJSON(){return this.data}fromJSON(t){return this.data=t,this}_all(t,e){const i=[];for(;t;)t.leaf?e.push(...t.children):i.push(...t.children),t=i.pop();return e}_build(t,e,i,n){const s=i-e+1;let r,o=this._maxEntries;if(s<=o)return r=v(t.slice(e,i+1)),l(r,this.toBBox),r;n||(n=Math.ceil(Math.log(s)/Math.log(o)),o=Math.ceil(s/Math.pow(o,n-1))),r=v([]),r.leaf=!1,r.height=n;const a=Math.ceil(s/o),h=a*Math.ceil(Math.sqrt(o));x(t,e,i,h,this.compareMinX);for(let s=e;s<=i;s+=h){const e=Math.min(s+h-1,i);x(t,s,e,a,this.compareMinY);for(let i=s;i<=e;i+=a){const s=Math.min(i+a-1,e);r.children.push(this._build(t,i,s,n-1))}}return l(r,this.toBBox),r}_chooseSubtree(t,e,i,n){for(;n.push(e),!e.leaf&&n.length-1!==i;){let i,n=1/0,s=1/0;for(let r=0;r<e.children.length;r++){const o=e.children[r],a=g(o),l=_(t,o)-a;l<s?(s=l,n=a<n?a:n,i=o):l===s&&a<n&&(n=a,i=o)}e=i||e.children[0]}return e}_insert(t,e,i){const n=i?t:this.toBBox(t),s=[],r=this._chooseSubtree(n,this.data,e,s);for(r.children.push(t),c(r,n);e>=0&&s[e].children.length>this._maxEntries;)this._split(s,e),e--;this._adjustParentBBoxes(n,s,e)}_split(t,e){const i=t[e],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);const r=this._chooseSplitIndex(i,s,n),o=v(i.children.splice(r,i.children.length-r));o.height=i.height,o.leaf=i.leaf,l(i,this.toBBox),l(o,this.toBBox),e?t[e-1].children.push(o):this._splitRoot(i,o)}_splitRoot(t,e){this.data=v([t,e]),this.data.height=t.height+1,this.data.leaf=!1,l(this.data,this.toBBox)}_chooseSplitIndex(t,e,i){let n,s=1/0,r=1/0;for(let o=e;o<=i-e;o++){const e=h(t,0,o,this.toBBox),a=h(t,o,i,this.toBBox),l=p(e,a),c=g(e)+g(a);l<s?(s=l,n=o,r=c<r?c:r):l===s&&c<r&&(r=c,n=o)}return n||i-e}_chooseSplitAxis(t,e,i){const n=t.leaf?this.compareMinX:u,s=t.leaf?this.compareMinY:d;this._allDistMargin(t,e,i,n)<this._allDistMargin(t,e,i,s)&&t.children.sort(n)}_allDistMargin(t,e,i,n){t.children.sort(n);const s=this.toBBox,r=h(t,0,e,s),o=h(t,i-e,i,s);let a=f(r)+f(o);for(let n=e;n<i-e;n++){const e=t.children[n];c(r,t.leaf?s(e):e),a+=f(r)}for(let n=i-e-1;n>=e;n--){const e=t.children[n];c(o,t.leaf?s(e):e),a+=f(o)}return a}_adjustParentBBoxes(t,e,i){for(let n=i;n>=0;n--)c(e[n],t)}_condense(t){for(let e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children,e.splice(e.indexOf(t[i]),1)):this.clear():l(t[i],this.toBBox)}}function a(t,e,i){if(!i)return e.indexOf(t);for(let n=0;n<e.length;n++)if(i(t,e[n]))return n;return-1}function l(t,e){h(t,0,t.children.length,e,t)}
vendor: 1,186 bytes, line 1
1function h(t,e,i,n,s){s||(s=v(null)),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r=e;r<i;r++){const e=t.children[r];c(s,t.leaf?n(e):e)}return s}function c(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 u(t,e){return t.minX-e.minX}function d(t,e){return t.minY-e.minY}function g(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function f(t){return t.maxX-t.minX+(t.maxY-t.minY)}function _(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function p(t,e){const i=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,s-i)*Math.max(0,r-n)}function m(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function y(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function v(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function x(t,e,i,s,r){const o=[e,i];for(;o.length;){if((i=o.pop())-(e=o.pop())<=s)continue;const a=e+Math.ceil((i-e)/s/2)*s;n(t,a,e,i,r),o.push(e,a,a,i)}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.