diff --git a/openlayers-base-packages/assets/ac381067439b.js b/openlayers-base-packages/assets/0402ff328f92.js similarity index 93% rename from openlayers-base-packages/assets/ac381067439b.js rename to openlayers-base-packages/assets/0402ff328f92.js index 427ce9fd3..a58b2d36c 100644 --- a/openlayers-base-packages/assets/ac381067439b.js +++ b/openlayers-base-packages/assets/0402ff328f92.js @@ -1,2 +1,2 @@ -import{a as v,u as f,j as e,r as w,B as d,b as y}from"./49b2c148dcb3.js";import{M as h,N as x,O as k,af as z,ag as j,av as M,aw as m,ai as u}from"./c0d2fbcdd7fa.js";import{T as S,B as b,S as I}from"./fa35e3e86a4c.js";import{B as L,U as T,a as c}from"./7033ed36aa8c.js";import{W as B,b as _}from"./d9e8a3de521c.js";import{F as C,T as p}from"./5091d4253a81.js";import{V as A}from"./cf4cf6ac6d1c.js";import{F as P,S as E}from"./5697241972e7.js";import{F as g}from"./adc90c48e771.js";import"./dda37e0a503c.js";class F extends B{constructor(a){const r=[-380316598427299e-8,880590808284866e-8],n=[4891.96981025128,2445.98490512564,1222.99245256282,611.49622628141,305.748113140705,152.874056570353,76.4370282851763,38.2185141425881,19.1092570712941,9.55462853564703,4.77731426782352,2.38865713391176,1.19432856695588,.59716428347794],l=new Array(n.length);for(let t=0;tDatenquellen`})}}const s="main";class R{mapId=s;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new h({title:"OSM",isBaseLayer:!0,olLayer:new x({source:new k})})]}}}const G={"basemap-switcher-app":{name:"basemap-switcher-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:R,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:z,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/test-utils":{name:"@open-pioneer/test-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-test-utils":{name:"@open-pioneer/map-test-utils",services:{},ui:{references:[]},properties:{}}},O=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:none}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move} -`,q=["en"];function D(o){switch(o){case"en":return j(()=>import("./df50d4ccdbbc.js"),[],import.meta.url).then(a=>a.default)}throw new Error(`Unsupported locale: '${o}'`)}const U=v(O),W=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:D,locales:q,packages:G,styles:U},Symbol.toStringTag,{value:"Module"})),N="basemap-switcher-app",V=f.bind(void 0,N);function $(){const o=V();return e.jsx(g,{height:"100%",direction:"column",overflow:"hidden",children:e.jsx(S,{title:e.jsx(b,{textAlign:"center",py:1,children:e.jsx(I,{size:"md",children:"OpenLayers Base Packages - Basemap Switcher"})}),children:e.jsx(g,{flex:"1",direction:"column",position:"relative",children:e.jsx(M,{mapId:s,children:e.jsxs(m,{position:"top-left",horizontalGap:10,verticalGap:10,children:[e.jsxs(b,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:[e.jsxs(C,{children:[e.jsx(P,{ps:1,children:e.jsx(p,{as:"b",children:o.formatMessage({id:"basemapLabel"})})}),e.jsx(L,{allowSelectingEmptyBasemap:!0,mapId:s})]}),e.jsxs(E,{pt:5,children:[e.jsx(p,{align:"center",children:"Test Controls:"}),e.jsx(K,{mapId:s}),e.jsx(H,{mapId:s}),e.jsx(Y,{mapId:s})]})]}),e.jsx(m,{position:"top-right",horizontalGap:10,verticalGap:10,children:e.jsxs(A,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",children:[e.jsx(p,{as:"b",children:"Description"}),e.jsx(p,{children:"This application can be used to test the basemap switcher. The basemap switcher synchronizes with the state of the shared map model. If the map model is changed (for example, by changing the current basemap), the basemap switcher must update itself accordingly."}),e.jsxs(T,{children:[e.jsx(c,{children:"Adding a new basemap updates the dropdown menu (new option)"}),e.jsx(c,{children:"Changing the current basemap to another basemap updates the selected option"}),e.jsxs(c,{children:["Setting the current basemap to ","'undefined'"," also updates the selection"]})]})]})})]})})})})})}function K(o){const{mapId:a}=o,{map:r}=u(a),n=w.useRef(1),l=()=>{if(!r)return;const i=n.current++,t=new h({title:`New Layer ${i}`,isBaseLayer:!0,olLayer:new x({source:new F({layer:"web_grau"})})});r.layers.addLayer(t),console.log("generated base layer with id",t.id)};return e.jsx(d,{onClick:l,children:"Add base layer"})}function H(o){const{mapId:a}=o,{map:r}=u(a),n=()=>{if(!r)return;const l=r.layers.getAllLayers();if(l.length===0){console.error("There is no base layer");return}const i=Math.floor(Math.random()*l.length),t=l[i];if(!t){console.error("Failed to find a layer");return}console.log("activating base layer",t.id),r.layers.activateBaseLayer(t.id)};return e.jsx(d,{onClick:n,children:"Activate random base layer"})}function Y(o){const{mapId:a}=o,{map:r}=u(a),n=()=>{r&&(console.log("setting active base layer to undefined"),r.layers.activateBaseLayer(void 0))};return e.jsx(d,{onClick:n,children:"Clear base layer"})}const J=y({component:$,appMetadata:W});customElements.define("basemap-switcher-app",J); +import{a as v,u as f,j as e,r as w,B as d,b as y}from"./49b2c148dcb3.js";import{M as h,N as x,O as k,af as z,ag as j,aJ as M,aK as m,ai as u}from"./67c4f96ddb71.js";import{T as S,B as b,S as I}from"./fa35e3e86a4c.js";import{B as L,U as T,a as c}from"./1241ef5f2dc5.js";import{W as B,b as _}from"./fa5b23f988e6.js";import{F as C,T as p}from"./5091d4253a81.js";import{V as A}from"./cf4cf6ac6d1c.js";import{F as P,S as E}from"./5697241972e7.js";import{F as g}from"./adc90c48e771.js";import"./dda37e0a503c.js";class F extends B{constructor(a){const r=[-380316598427299e-8,880590808284866e-8],n=[4891.96981025128,2445.98490512564,1222.99245256282,611.49622628141,305.748113140705,152.874056570353,76.4370282851763,38.2185141425881,19.1092570712941,9.55462853564703,4.77731426782352,2.38865713391176,1.19432856695588,.59716428347794],l=new Array(n.length);for(let t=0;tDatenquellen`})}}const s="main";class R{mapId=s;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new h({title:"OSM",isBaseLayer:!0,olLayer:new x({source:new k})})]}}}const G={"basemap-switcher-app":{name:"basemap-switcher-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:R,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:z,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/test-utils":{name:"@open-pioneer/test-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-test-utils":{name:"@open-pioneer/map-test-utils",services:{},ui:{references:[]},properties:{}}},O=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:none}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move} +`,q=["en"];function D(o){switch(o){case"en":return j(()=>import("./df50d4ccdbbc.js"),[],import.meta.url).then(a=>a.default)}throw new Error(`Unsupported locale: '${o}'`)}const U=v(O),W=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:D,locales:q,packages:G,styles:U},Symbol.toStringTag,{value:"Module"})),K="basemap-switcher-app",N=f.bind(void 0,K);function V(){const o=N();return e.jsx(g,{height:"100%",direction:"column",overflow:"hidden",children:e.jsx(S,{title:e.jsx(b,{textAlign:"center",py:1,children:e.jsx(I,{size:"md",children:"OpenLayers Base Packages - Basemap Switcher"})}),children:e.jsx(g,{flex:"1",direction:"column",position:"relative",children:e.jsx(M,{mapId:s,children:e.jsxs(m,{position:"top-left",horizontalGap:10,verticalGap:10,children:[e.jsxs(b,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:[e.jsxs(C,{children:[e.jsx(P,{ps:1,children:e.jsx(p,{as:"b",children:o.formatMessage({id:"basemapLabel"})})}),e.jsx(L,{allowSelectingEmptyBasemap:!0,mapId:s})]}),e.jsxs(E,{pt:5,children:[e.jsx(p,{align:"center",children:"Test Controls:"}),e.jsx($,{mapId:s}),e.jsx(H,{mapId:s}),e.jsx(J,{mapId:s})]})]}),e.jsx(m,{position:"top-right",horizontalGap:10,verticalGap:10,children:e.jsxs(A,{backgroundColor:"whiteAlpha.900",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",maxWidth:"400px",children:[e.jsx(p,{as:"b",children:"Description"}),e.jsx(p,{children:"This application can be used to test the basemap switcher. The basemap switcher synchronizes with the state of the shared map model. If the map model is changed (for example, by changing the current basemap), the basemap switcher must update itself accordingly."}),e.jsxs(T,{children:[e.jsx(c,{children:"Adding a new basemap updates the dropdown menu (new option)"}),e.jsx(c,{children:"Changing the current basemap to another basemap updates the selected option"}),e.jsxs(c,{children:["Setting the current basemap to ","'undefined'"," also updates the selection"]})]})]})})]})})})})})}function $(o){const{mapId:a}=o,{map:r}=u(a),n=w.useRef(1),l=()=>{if(!r)return;const i=n.current++,t=new h({title:`New Layer ${i}`,isBaseLayer:!0,olLayer:new x({source:new F({layer:"web_grau"})})});r.layers.addLayer(t),console.log("generated base layer with id",t.id)};return e.jsx(d,{onClick:l,children:"Add base layer"})}function H(o){const{mapId:a}=o,{map:r}=u(a),n=()=>{if(!r)return;const l=r.layers.getAllLayers();if(l.length===0){console.error("There is no base layer");return}const i=Math.floor(Math.random()*l.length),t=l[i];if(!t){console.error("Failed to find a layer");return}console.log("activating base layer",t.id),r.layers.activateBaseLayer(t.id)};return e.jsx(d,{onClick:n,children:"Activate random base layer"})}function J(o){const{mapId:a}=o,{map:r}=u(a),n=()=>{r&&(console.log("setting active base layer to undefined"),r.layers.activateBaseLayer(void 0))};return e.jsx(d,{onClick:n,children:"Clear base layer"})}const Y=y({component:V,appMetadata:W});customElements.define("basemap-switcher-app",Y); diff --git a/openlayers-base-packages/assets/cccb52663858.js b/openlayers-base-packages/assets/070a56af8b93.js similarity index 99% rename from openlayers-base-packages/assets/cccb52663858.js rename to openlayers-base-packages/assets/070a56af8b93.js index ef1f92116..b31be7d17 100644 --- a/openlayers-base-packages/assets/cccb52663858.js +++ b/openlayers-base-packages/assets/070a56af8b93.js @@ -1,4 +1,4 @@ -import{aj as zs,u as qe,o as Ke,E as Kt,aJ as Lt,be as Vs,bf as Re,bg as Hs,bh as $s,l as Us,y as Rt,s as Js,bi as X,bj as qs,bk as at,P as li,b4 as Mt,bl as Ks,bm as Zs,bn as Qs,bo as Jt,bp as tr,bq as er,br as jn,bs as ir,bt as nr,bu as Li,bv as sr,bw as rr,bx as or,ac as ar,a8 as Mi,by as lr,b1 as hr,bz as me,bA as cr,bB as ur,bC as dr,bD as fr,bE as mn,bF as Ai,b3 as gr,bG as _r,bH as mr,aa as Oi,bI as pr,bJ as yr,aV as pe,aE as ye,bK as xr,aM as At,I as H,bL as zn,bM as Z,bN as Zt,bO as Qt,bP as xe,bQ as Se,bR as Ce,bS as pn,bT as Sr,bU as Cr,bV as wr,aA as U,bW as Ze,L as Er,c as br,bX as Ir,bY as vr,bZ as Rr,b_ as Ct,b$ as wt,c0 as hi,c1 as kr,aB as ji,c2 as Fr,h as St,c3 as Bt,c4 as we,c5 as Qe,c6 as Vn,ba as Tr,W as Lr,ay as ti,c7 as Mr,e as zi,a as $t,Q as Di,c8 as Ar,b5 as ge,c9 as Or,ca as yn,cb as Dr,ab as Pr,cc as Gr,ae as xn,C as Br,V as je,b as ze,aN as Wr,cd as Sn,ce as Nr,m as Yr,t as Xr,cf as Cn,f as jr,j as ue,aC as zr,cg as Vr,ch as Hr,v as Hn,ci as $n,S as $r,cj as Ur,ck as Jr,cl as wn,cm as qr,B as Kr,Z as Zr,ah as Vi,ai as Hi,b9 as Qr}from"./c0d2fbcdd7fa.js";import{C as $i,D as Un,E as Jn,r as R,G as to,I as eo,J as io,d as qn,f as ke,j as T,h as te,g as Fe,K as no,L as so,M as Ci,N as le,O as dt,e as ro,o as oo,P as ao,Q as lo,R as ho,S as co,T as uo,u as Kn,F as Zn,B as Ui,U as fo}from"./49b2c148dcb3.js";import{c as Qn,B as Pi,T as En,S as bn}from"./fa35e3e86a4c.js";import{F as go,a as _o,b as mo,c as po}from"./37c62c6c4df6.js";import{L as yo,B as xo}from"./7033ed36aa8c.js";import{T as ts}from"./5091d4253a81.js";import{F as es}from"./adc90c48e771.js";import{C as So}from"./f3ffe551a463.js";function Co(s){return"current"in s}var is=()=>typeof window<"u";function wo(){var s;const t=navigator.userAgentData;return(s=t?.platform)!=null?s:navigator.platform}var Eo=s=>is()&&s.test(navigator.vendor),bo=s=>is()&&s.test(wo()),Io=()=>bo(/mac|iphone|ipad|ipod/i),vo=()=>Io()&&Eo(/apple/i);function Ro(s){const{ref:t,elements:e,enabled:i}=s,n=()=>{var r,o;return(o=(r=t.current)==null?void 0:r.ownerDocument)!=null?o:document};$i(n,"pointerdown",r=>{if(!vo()||!i)return;const o=r.target,l=(e??[t]).some(h=>{const c=Co(h)?h.current:h;return c?.contains(o)||c===o});n().activeElement!==o&&l&&(r.preventDefault(),o.focus())})}var ns=s=>s.hasAttribute("tabindex"),ko=s=>ns(s)&&s.tabIndex===-1;function Fo(s){return!!s.getAttribute("disabled")||!!s.getAttribute("aria-disabled")}function ss(s){return s.parentElement&&ss(s.parentElement)?!0:s.hidden}function To(s){const t=s.getAttribute("contenteditable");return t!=="false"&&t!=null}function rs(s){if(!Un(s)||ss(s)||Fo(s))return!1;const{localName:t}=s;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const i={a:()=>s.hasAttribute("href"),audio:()=>s.hasAttribute("controls"),video:()=>s.hasAttribute("controls")};return t in i?i[t]():To(s)?!0:ns(s)}function Lo(s){return s?Un(s)&&rs(s)&&!ko(s):!1}var Mo=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],Ao=Mo.join(),Oo=s=>s.offsetWidth>0&&s.offsetHeight>0;function Do(s){const t=Array.from(s.querySelectorAll(Ao));return t.unshift(s),t.filter(e=>rs(e)&&Oo(e))}function Po(s){const t=s.current;if(!t)return!1;const e=eo(t);return!e||t.contains(e)?!1:!!Lo(e)}function Go(s,t){const{shouldFocus:e,visible:i,focusRef:n}=t,r=e&&!i;Jn(()=>{if(!r||Po(s))return;const o=n?.current||s.current;let a;if(o)return a=requestAnimationFrame(()=>{o.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(a)}},[r,s,n])}var Bo={preventScroll:!0,shouldFocus:!1};function Wo(s,t=Bo){const{focusRef:e,preventScroll:i,shouldFocus:n,visible:r}=t,o=No(s)?s.current:s,a=n&&r,l=R.useRef(a),h=R.useRef(r);to(()=>{!h.current&&r&&(l.current=a),h.current=r},[r,a]);const c=R.useCallback(()=>{if(!(!r||!o||!l.current)&&(l.current=!1,!o.contains(document.activeElement)))if(e?.current)requestAnimationFrame(()=>{var u;(u=e.current)==null||u.focus({preventScroll:i})});else{const u=Do(o);u.length>0&&requestAnimationFrame(()=>{u[0].focus({preventScroll:i})})}},[r,i,o,e]);Jn(()=>{c()},[c]),$i(o,"transitionend",c)}function No(s){return"current"in s}function Yo(s){const{isOpen:t,ref:e}=s,[i,n]=R.useState(t),[r,o]=R.useState(!1);return R.useEffect(()=>{r||(n(t),o(!0))},[t,r,i]),$i(()=>e.current,"animationend",()=>{n(t)}),{present:!(t?!1:!i),onComplete(){var l;const h=io(e.current),c=new h.CustomEvent("animationend",{bubbles:!0});(l=e.current)==null||l.dispatchEvent(c)}}}function Xo(s){const{wasSelected:t,enabled:e,isSelected:i,mode:n="unmount"}=s;return!!(!e||i||n==="keepMounted"&&t)}var[jo,Yt]=qn({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[zo,Te]=qn({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),os=ke(function(t,e){const{getHeaderProps:i}=Yt(),n=Te();return T.jsx(te.header,{...i(t,e),className:Fe("chakra-popover__header",t.className),__css:n.header})});os.displayName="PopoverHeader";function as(s){const t=R.Children.only(s.children),{getTriggerProps:e}=Yt();return R.cloneElement(t,e(t.props,t.ref))}as.displayName="PopoverTrigger";var zt={click:"click",hover:"hover"};function Vo(s={}){const{closeOnBlur:t=!0,closeOnEsc:e=!0,initialFocusRef:i,id:n,returnFocusOnClose:r=!0,autoFocus:o=!0,arrowSize:a,arrowShadowColor:l,trigger:h=zt.click,openDelay:c=200,closeDelay:u=200,isLazy:d,lazyBehavior:f="unmount",computePositionOnMount:g,...p}=s,{isOpen:m,onClose:_,onOpen:x,onToggle:S}=no(s),I=R.useRef(null),E=R.useRef(null),C=R.useRef(null),v=R.useRef(!1),b=R.useRef(!1);m&&(b.current=!0);const[A,G]=R.useState(!1),[j,N]=R.useState(!1),B=R.useId(),q=n??B,[F,L,M,D]=["popover-trigger","popover-content","popover-header","popover-body"].map(P=>`${P}-${q}`),{referenceRef:z,getArrowProps:V,getPopperProps:tt,getArrowInnerProps:w,forceUpdate:De}=so({...p,enabled:m||!!g}),et=Yo({isOpen:m,ref:C});Ro({enabled:m,ref:E}),Go(C,{focusRef:E,visible:m,shouldFocus:r&&h===zt.click}),Wo(C,{focusRef:i,visible:m,shouldFocus:o&&h===zt.click});const _t=Xo({wasSelected:b.current,enabled:d,mode:f,isSelected:et.present}),di=R.useCallback((P={},it=null)=>{const $={...P,style:{...P.style,transformOrigin:Ci.transformOrigin.varRef,[Ci.arrowSize.var]:a?`${a}px`:void 0,[Ci.arrowShadowColor.var]:l},ref:le(C,it),children:_t?P.children:null,id:L,tabIndex:-1,role:"dialog",onKeyDown:dt(P.onKeyDown,lt=>{e&<.key==="Escape"&&_()}),onBlur:dt(P.onBlur,lt=>{const Pt=In(lt),Gt=wi(C.current,Pt),_i=wi(E.current,Pt);m&&t&&(!Gt&&!_i)&&_()}),"aria-labelledby":A?M:void 0,"aria-describedby":j?D:void 0};return h===zt.hover&&($.role="tooltip",$.onMouseEnter=dt(P.onMouseEnter,()=>{v.current=!0}),$.onMouseLeave=dt(P.onMouseLeave,lt=>{lt.nativeEvent.relatedTarget!==null&&(v.current=!1,setTimeout(()=>_(),u))})),$},[_t,L,A,M,j,D,h,e,_,m,t,u,l,a]),fi=R.useCallback((P={},it=null)=>tt({...P,style:{visibility:m?"visible":"hidden",...P.style}},it),[m,tt]),Pe=R.useCallback((P,it=null)=>({...P,ref:le(it,I,z)}),[I,z]),ut=R.useRef(),Xt=R.useRef(),Ge=R.useCallback(P=>{I.current==null&&z(P)},[z]),gi=R.useCallback((P={},it=null)=>{const $={...P,ref:le(E,it,Ge),id:F,"aria-haspopup":"dialog","aria-expanded":m,"aria-controls":L};return h===zt.click&&($.onClick=dt(P.onClick,S)),h===zt.hover&&($.onFocus=dt(P.onFocus,()=>{ut.current===void 0&&x()}),$.onBlur=dt(P.onBlur,lt=>{const Pt=In(lt),Gt=!wi(C.current,Pt);m&&t&&Gt&&_()}),$.onKeyDown=dt(P.onKeyDown,lt=>{lt.key==="Escape"&&_()}),$.onMouseEnter=dt(P.onMouseEnter,()=>{v.current=!0,ut.current=window.setTimeout(()=>x(),c)}),$.onMouseLeave=dt(P.onMouseLeave,()=>{v.current=!1,ut.current&&(clearTimeout(ut.current),ut.current=void 0),Xt.current=window.setTimeout(()=>{v.current===!1&&_()},u)})),$},[F,m,L,h,Ge,S,x,t,_,c,u]);R.useEffect(()=>()=>{ut.current&&clearTimeout(ut.current),Xt.current&&clearTimeout(Xt.current)},[]);const Be=R.useCallback((P={},it=null)=>({...P,id:M,ref:le(it,$=>{G(!!$)})}),[M]),Dt=R.useCallback((P={},it=null)=>({...P,id:D,ref:le(it,$=>{N(!!$)})}),[D]);return{forceUpdate:De,isOpen:m,onAnimationComplete:et.onComplete,onClose:_,getAnchorProps:Pe,getArrowProps:V,getArrowInnerProps:w,getPopoverPositionerProps:fi,getPopoverProps:di,getTriggerProps:gi,getHeaderProps:Be,getBodyProps:Dt}}function wi(s,t){return s===t||s?.contains(t)}function In(s){var t;const e=s.currentTarget.ownerDocument.activeElement;return(t=s.relatedTarget)!=null?t:e}function ls(s){const t=ro("Popover",s),{children:e,...i}=oo(s),n=ao(),r=Vo({...i,direction:n.direction});return T.jsx(jo,{value:r,children:T.jsx(zo,{value:t,children:lo(e,{isOpen:r.isOpen,onClose:r.onClose,forceUpdate:r.forceUpdate})})})}ls.displayName="Popover";var Ei=(s,t)=>t?`${s}.${t}, ${t}`:void 0;function hs(s){var t;const{bg:e,bgColor:i,backgroundColor:n,shadow:r,boxShadow:o,shadowColor:a}=s,{getArrowProps:l,getArrowInnerProps:h}=Yt(),c=Te(),u=(t=e??i)!=null?t:n,d=r??o;return T.jsx(te.div,{...l(),className:"chakra-popover__arrow-positioner",children:T.jsx(te.div,{className:Fe("chakra-popover__arrow",s.className),...h(s),__css:{"--popper-arrow-shadow-color":Ei("colors",a),"--popper-arrow-bg":Ei("colors",u),"--popper-arrow-shadow":Ei("shadows",d),...c.arrow}})})}hs.displayName="PopoverArrow";var cs=ke(function(t,e){const{getBodyProps:i}=Yt(),n=Te();return T.jsx(te.div,{...i(t,e),className:Fe("chakra-popover__body",t.className),__css:n.body})});cs.displayName="PopoverBody";var us=ke(function(t,e){const{onClose:i}=Yt(),n=Te();return T.jsx(ho,{size:"sm",onClick:i,className:Fe("chakra-popover__close-btn",t.className),__css:n.closeButton,ref:e,...t})});us.displayName="PopoverCloseButton";function Ho(s){if(s)return{enter:{...s.enter,visibility:"visible"},exit:{...s.exit,transitionEnd:{visibility:"hidden"}}}}var $o={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},Uo=te(co.section),ds=ke(function(t,e){const{variants:i=$o,...n}=t,{isOpen:r}=Yt();return T.jsx(Uo,{ref:e,variants:Ho(i),initial:!1,animate:r?"enter":"exit",...n})});ds.displayName="PopoverTransition";var fs=ke(function(t,e){const{rootProps:i,motionProps:n,...r}=t,{getPopoverProps:o,getPopoverPositionerProps:a,onAnimationComplete:l}=Yt(),h=Te(),c={position:"relative",display:"flex",flexDirection:"column",...h.content};return T.jsx(te.div,{...a(i),__css:h.popper,className:"chakra-popover__popper",children:T.jsx(ds,{...n,...o(r,e),onAnimationComplete:uo(l,r.onAnimationComplete),className:Fe("chakra-popover__content",t.className),__css:c})})});fs.displayName="PopoverContent";class Ji extends zs{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(typeof t.getSimplifiedGeometry=="function"){const e=t;this.setGeometry(e)}else{const e=t;this.setProperties(e)}}clone(){const t=new Ji(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());const e=this.getGeometry();e&&t.setGeometry(e.clone());const i=this.getStyle();return i&&t.setStyle(i),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_&&(qe(this.geometryChangeKey_),this.geometryChangeKey_=null);const t=this.getGeometry();t&&(this.geometryChangeKey_=Ke(t,Kt.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?Jo(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}function Jo(s){if(typeof s=="function")return s;let t;return Array.isArray(s)?t=s:(Lt(typeof s.getZIndex=="function","Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),t=[s]),function(){return t}}const qo=Ji;class ei extends Vs{constructor(t){super(),this.geometries_=t||null,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(qe),this.changeEventsKeys_.length=0}listenGeometriesChange_(){if(this.geometries_)for(let t=0,e=this.geometries_.length;t1?o:2,r=r||new Array(o);for(let c=0;c>1;ne;){if(i-e>600){var r=i-e+1,o=t-e+1,a=Math.log(r),l=.5*Math.exp(2*a/3),h=.5*Math.sqrt(a*l*(r-l)/r)*(o-r/2<0?-1:1),c=Math.max(e,Math.floor(t-o*l/r+h)),u=Math.min(i,Math.floor(t+(r-o)*l/r+h));ys(s,t,c,u,n)}var d=s[t],f=e,g=i;for(he(s,e,t),n(s[i],d)>0&&he(s,e,i);f0;)g--}n(s[e],d)===0?he(s,e,g):(g++,he(s,g,i)),g<=t&&(e=g+1),t<=g&&(i=g-1)}}function he(s,t,e){var i=s[t];s[t]=s[e],s[e]=i}function Ca(s,t){return st?1:0}let xs=class{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data;const i=[];if(!$e(t,e))return i;const n=this.toBBox,r=[];for(;e;){for(let o=0;o=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(n,r,e)}_split(t,e){const i=t[e],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);const o=this._chooseSplitIndex(i,r,n),a=Ut(i.children.splice(o,i.children.length-o));a.height=i.height,a.leaf=i.leaf,Vt(i,this.toBBox),Vt(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)}_splitRoot(t,e){this.data=Ut([t,e]),this.data.height=t.height+1,this.data.leaf=!1,Vt(this.data,this.toBBox)}_chooseSplitIndex(t,e,i){let n,r=1/0,o=1/0;for(let a=e;a<=i-e;a++){const l=de(t,0,a,this.toBBox),h=de(t,a,i,this.toBBox),c=va(l,h),u=bi(l)+bi(h);c=e;h--){const c=t.children[h];fe(a,t.leaf?r(c):c),l+=He(a)}return l}_adjustParentBBoxes(t,e,i){for(let n=i;n>=0;n--)fe(e[n],t)}_condense(t){for(let e=t.length-1,i;e>=0;e--)t[e].children.length===0?e>0?(i=t[e-1].children,i.splice(i.indexOf(t[e]),1)):this.clear():Vt(t[e],this.toBBox)}};function wa(s,t,e){if(!e)return t.indexOf(s);for(let i=0;i=s.minX&&t.maxY>=s.minY}function Ut(s){return{children:s,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Rn(s,t,e,i,n){const r=[t,e];for(;r.length;){if(e=r.pop(),t=r.pop(),e-t<=i)continue;const o=t+Math.ceil((e-t)/i/2)*i;Sa(s,o,t,e,n),r.push(t,o,o,e)}}class Ki{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=ye(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new Ki({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 X()}getImage(t){return X()}getHitDetectionImage(){return X()}getPixelRatio(t){return 1}getImageState(){return X()}getImageSize(){return X()}getOrigin(){return X()}getSize(){return X()}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_=ye(t)}listenImageChange(t){X()}load(){X()}unlistenImageChange(t){X()}}const Ss=Ki;function gt(s){return Array.isArray(s)?xr(s):s}class Zi extends Ss{constructor(t){const e=t.rotateWithView!==void 0?t.rotateWithView:!1;super({opacity:1,rotateWithView:e,rotation:t.rotation!==void 0?t.rotation:0,scale:t.scale!==void 0?t.scale:1,displacement:t.displacement!==void 0?t.displacement:[0,0],declutterMode:t.declutterMode}),this.canvas_=void 0,this.hitDetectionCanvas_=null,this.fill_=t.fill!==void 0?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius_=t.radius!==void 0?t.radius:t.radius1,this.radius2_=t.radius2,this.angle_=t.angle!==void 0?t.angle:0,this.stroke_=t.stroke!==void 0?t.stroke:null,this.size_=null,this.renderOptions_=null,this.render()}clone(){const t=this.getScale(),e=new Zi({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_;if(!t)return null;const 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.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_}getImage(t){let e=this.canvas_[t];if(!e){const i=this.renderOptions_,n=At(i.size*t,i.size*t);this.draw_(i,n,t),e=n.canvas,this.canvas_[t]=e}return e}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return H.LOADED}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}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(e===0||this.points_===1/0||t!=="bevel"&&t!=="miter")return e;let n=this.radius_,r=this.radius2_===void 0?n:this.radius2_;if(n{this.image_=t,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==H.LOADED)return;const e=this.image_,i=document.createElement("canvas");i.width=Math.ceil(e.width*t),i.height=Math.ceil(e.height*t);const n=i.getContext("2d");n.scale(t,t),n.drawImage(e,0,0),n.globalCompositeOperation="multiply",n.fillStyle=wr(this.color_),n.fillRect(0,0,i.width/t,i.height/t),n.globalCompositeOperation="destination-in",n.drawImage(e,0,0),this.canvas_[t]=i}}function Ta(s,t,e,i,n){let r=t===void 0?void 0:pn.get(t,e,n);return r||(r=new Fa(s,s instanceof HTMLImageElement?s.src||void 0:t,e,i,n),pn.set(t,e,n,r)),r}function Fn(s,t,e,i){return e!==void 0&&i!==void 0?[e/s,i/t]:e!==void 0?e/s:i!==void 0?i/t:1}class sn extends Ss{constructor(t){t=t||{};const e=t.opacity!==void 0?t.opacity:1,i=t.rotation!==void 0?t.rotation:0,n=t.scale!==void 0?t.scale:1,r=t.rotateWithView!==void 0?t.rotateWithView:!1;super({opacity:e,rotation:i,scale:n,displacement:t.displacement!==void 0?t.displacement:[0,0],rotateWithView:r,declutterMode:t.declutterMode}),this.anchor_=t.anchor!==void 0?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=t.anchorOrigin!==void 0?t.anchorOrigin:"top-left",this.anchorXUnits_=t.anchorXUnits!==void 0?t.anchorXUnits:"fraction",this.anchorYUnits_=t.anchorYUnits!==void 0?t.anchorYUnits:"fraction",this.crossOrigin_=t.crossOrigin!==void 0?t.crossOrigin:null;const o=t.img!==void 0?t.img:null;let a=t.src;Lt(!(a!==void 0&&o),"`image` and `src` cannot be provided at the same time"),(a===void 0||a.length===0)&&o&&(a=o.src||U(o)),Lt(a!==void 0&&a.length>0,"A defined and non-empty `src` or `image` must be provided"),Lt(!((t.width!==void 0||t.height!==void 0)&&t.scale!==void 0),"`width` or `height` cannot be provided together with `scale`");let l;if(t.src!==void 0?l=H.IDLE:o!==void 0&&(o instanceof HTMLImageElement?o.complete?l=o.src?H.LOADED:H.IDLE:l=H.LOADING:l=H.LOADED),this.color_=t.color!==void 0?zn(t.color):null,this.iconImage_=Ta(o,a,this.crossOrigin_,l,this.color_),this.offset_=t.offset!==void 0?t.offset:[0,0],this.offsetOrigin_=t.offsetOrigin!==void 0?t.offsetOrigin:"top-left",this.origin_=null,this.size_=t.size!==void 0?t.size:null,t.width!==void 0||t.height!==void 0){let h,c;if(t.size)[h,c]=t.size;else{const u=this.getImage(1);if(u.width&&u.height)h=u.width,c=u.height;else if(u instanceof HTMLImageElement){this.initialOptions_=t;const d=()=>{if(this.unlistenImageChange(d),!this.initialOptions_)return;const f=this.iconImage_.getSize();this.setScale(Fn(f[0],f[1],t.width,t.height))};this.listenImageChange(d);return}}h!==void 0&&this.setScale(Fn(h,c,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 sn({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_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:i,size:this.size_!==null?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 n=this.getSize();if(this.anchorXUnits_=="fraction"||this.anchorYUnits_=="fraction"){if(!n)return null;t=this.anchor_.slice(),this.anchorXUnits_=="fraction"&&(t[0]*=n[0]),this.anchorYUnits_=="fraction"&&(t[1]*=n[1])}if(this.anchorOrigin_!="top-left"){if(!n)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_=="top-right"||this.anchorOrigin_=="bottom-right")&&(t[0]=-t[0]+n[0]),(this.anchorOrigin_=="bottom-left"||this.anchorOrigin_=="bottom-right")&&(t[1]=-t[1]+n[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_}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(this.offsetOrigin_!="top-left"){const e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),(this.offsetOrigin_=="top-right"||this.offsetOrigin_=="bottom-right")&&(t[0]=i[0]-e[0]-t[0]),(this.offsetOrigin_=="bottom-left"||this.offsetOrigin_=="bottom-right")&&(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();if(this.size_)return this.size_[0]*t[0];if(this.iconImage_.getImageState()==H.LOADED)return this.iconImage_.getSize()[0]*t[0]}getHeight(){const t=this.getScaleArray();if(this.size_)return this.size_[1]*t[1];if(this.iconImage_.getImageState()==H.LOADED)return this.iconImage_.getSize()[1]*t[1]}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(Kt.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(Kt.CHANGE,t)}}const ws=sn,La="#333";class rn{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=ye(t.scale!==void 0?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_=t.fill!==void 0?t.fill:new Ee({color:La}),this.maxAngle_=t.maxAngle!==void 0?t.maxAngle:Math.PI/4,this.placement_=t.placement!==void 0?t.placement:"point",this.overflow_=!!t.overflow,this.stroke_=t.stroke!==void 0?t.stroke:null,this.offsetX_=t.offsetX!==void 0?t.offsetX:0,this.offsetY_=t.offsetY!==void 0?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=t.padding===void 0?null:t.padding}clone(){const t=this.getScale();return new rn({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})}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_}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_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}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}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=ye(t!==void 0?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 Ma=rn;let ie=0;const J=1<",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match"},Pa={[y.Number]:W(Y(1,1/0,ht),O),[y.String]:W(Y(1,1/0,ht),ee),[y.Get]:W(Ga,ht),[y.Var]:W(Ba,ht),[y.Resolution]:W(Wa,O),[y.Any]:W(Y(2,1/0,J),J),[y.All]:W(Y(2,1/0,J),J),[y.Not]:W(Y(1,1,J),J),[y.Equal]:W(Y(2,2,ht),J),[y.NotEqual]:W(Y(2,2,ht),J),[y.GreaterThan]:W(Y(2,2,ht),J),[y.GreaterThanOrEqualTo]:W(Y(2,2,ht),J),[y.LessThan]:W(Y(2,2,ht),J),[y.LessThanOrEqualTo]:W(Y(2,2,ht),J),[y.Multiply]:W(Y(2,1/0,O),O),[y.Divide]:W(Y(2,2,O),O),[y.Add]:W(Y(2,1/0,O),O),[y.Subtract]:W(Y(2,2,O),O),[y.Clamp]:W(Y(3,3,O),O),[y.Mod]:W(Y(2,2,O),O),[y.Pow]:W(Y(2,2,O),O),[y.Abs]:W(Y(1,1,O),O),[y.Floor]:W(Y(1,1,O),O),[y.Ceil]:W(Y(1,1,O),O),[y.Round]:W(Y(1,1,O),O),[y.Sin]:W(Y(1,1,O),O),[y.Cos]:W(Y(1,1,O),O),[y.Atan]:W(Y(1,2,O),O),[y.Sqrt]:W(Y(1,1,O),O),[y.Match]:W(Y(4,1/0,ee|O),ht)};function Ga(s,t){if(s.length!==2)throw new Error("Expected 1 argument for get operation");const e=ci(s[1],t);if(!(e instanceof Ft))throw new Error("Expected a literal argument for get operation");if(typeof e.value!="string")throw new Error("Expected a string argument for get operation");return t.properties.add(e.value),[e]}function Ba(s,t){if(s.length!==2)throw new Error("Expected 1 argument for var operation");const e=ci(s[1],t);if(!(e instanceof Ft))throw new Error("Expected a literal argument for var operation");if(typeof e.value!="string")throw new Error("Expected a string argument for get operation");return t.variables.add(e.value),[e]}function Wa(s,t){const e=s[0];if(s.length!==1)throw new Error(`Expected no arguments for ${e} operation`);return[]}function Y(s,t,e){return function(i,n){const r=i[0],o=i.length-1;if(s===t){if(o!==s){const l=s===1?"":"s";throw new Error(`Expected ${s} argument${l} for operation ${r}, got ${o}`)}}else if(ot)throw new Error(`Expected ${s} to ${t} arguments for operation ${r}, got ${o}`);const a=new Array(o);for(let l=0;li.resolution;case y.Any:case y.All:case y.Not:return za(s);case y.Equal:case y.NotEqual:case y.LessThan:case y.LessThanOrEqualTo:case y.GreaterThan:case y.GreaterThanOrEqualTo:return ja(s);case y.Multiply:case y.Divide:case y.Add:case y.Subtract:case y.Clamp:case y.Mod:case y.Pow:case y.Abs:case y.Floor:case y.Ceil:case y.Round:case y.Sin:case y.Cos:case y.Atan:case y.Sqrt:return Va(s);case y.Match:return Ha(s);default:throw new Error(`Unsupported operator ${e}`)}}function Ya(s,t){const e=s.operator,i=s.args.length,n=new Array(i);for(let r=0;r{for(let o=0;on.properties[i];case y.Var:return n=>n.variables[i];default:throw new Error(`Unsupported accessor operator ${s.operator}`)}}function ja(s,t){const e=s.operator,i=Nt(s.args[0]),n=Nt(s.args[1]);switch(e){case y.Equal:return r=>i(r)===n(r);case y.NotEqual:return r=>i(r)!==n(r);case y.LessThan:return r=>i(r)i(r)<=n(r);case y.GreaterThan:return r=>i(r)>n(r);case y.GreaterThanOrEqualTo:return r=>i(r)>=n(r);default:throw new Error(`Unsupported comparison operator ${e}`)}}function za(s,t){const e=s.operator,i=s.args.length,n=new Array(i);for(let r=0;r{for(let o=0;o{for(let o=0;o!n[0](r);default:throw new Error(`Unsupported logical operator ${e}`)}}function Va(s,t){const e=s.operator,i=s.args.length,n=new Array(i);for(let r=0;r{let o=1;for(let a=0;an[0](r)/n[1](r);case y.Add:return r=>{let o=0;for(let a=0;an[0](r)-n[1](r);case y.Clamp:return r=>{const o=n[0](r),a=n[1](r);if(ol?l:o};case y.Mod:return r=>n[0](r)%n[1](r);case y.Pow:return r=>Math.pow(n[0](r),n[1](r));case y.Abs:return r=>Math.abs(n[0](r));case y.Floor:return r=>Math.floor(n[0](r));case y.Ceil:return r=>Math.ceil(n[0](r));case y.Round:return r=>Math.round(n[0](r));case y.Sin:return r=>Math.sin(n[0](r));case y.Cos:return r=>Math.cos(n[0](r));case y.Atan:return i===2?r=>Math.atan2(n[0](r),n[1](r)):r=>Math.atan(n[0](r));case y.Sqrt:return r=>Math.sqrt(n[0](r));default:throw new Error(`Unsupported numeric operator ${e}`)}}function Ha(s,t){const e=s.args.length,i=new Array(e);for(let n=0;n{const r=i[0](n);for(let o=1;o4)throw new Error(`Expected a color with 3 or 4 values for ${t}`);return e}function rl(s,t){if(typeof s=="number")return s;const e=Me(s,t);if(e.length!==2)throw new Error(`Expected an array of two numbers for ${t}`);return e}const An={RENDER_ORDER:"renderOrder"};class ol extends Er{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!==void 0?t.declutter:!1,this.renderBuffer_=t.renderBuffer!==void 0?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=t.updateWhileAnimating!==void 0?t.updateWhileAnimating:!1,this.updateWhileInteracting_=t.updateWhileInteracting!==void 0?t.updateWhileInteracting:!1}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(An.RENDER_ORDER)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t){t.declutterTree||(t.declutterTree=new xs(9)),this.getRenderer().renderDeclutter(t)}setRenderOrder(t){this.set(An.RENDER_ORDER,t)}setStyle(t){this.style_=al(t),this.styleFunction_=t===null?void 0:Ra(this.style_),this.changed()}}function al(s){if(s===void 0)return ka;if(!s)return null;if(typeof s=="function"||s instanceof Je)return s;if(!Array.isArray(s))return Tn([s]);if(s.length===0)return[];const t=s.length,e=s[0];if(e instanceof Je){const n=new Array(t);for(let r=0;ra&&(this.instructions.push([k.CUSTOM,a,h,t,i,Jt]),this.hitDetectionInstructions.push([k.CUSTOM,a,h,t,n||i,Jt]));break;case"Point":l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),h=this.coordinates.length,this.instructions.push([k.CUSTOM,a,h,t,i]),this.hitDetectionInstructions.push([k.CUSTOM,a,h,t,n||i]);break}this.endGeometry(e)}beginGeometry(t,e){this.beginGeometryInstruction1_=[k.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[k.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;t.reverse();let e;const i=t.length;let n,r,o=-1;for(e=0;ethis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0}createFill(t){const e=t.fillStyle,i=[k.SET_FILL_STYLE,e];return typeof e!="string"&&i.push(!0),i}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[k.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const i=t.fillStyle;(typeof i!="string"||t.currentFillStyle!=i)&&(i!==void 0&&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;(t.currentStrokeStyle!=i||t.currentLineCap!=n||r!=t.currentLineDash&&!hi(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=l||t.currentMiterLimit!=h)&&(i!==void 0&&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)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[k.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=kr(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;ji(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}const Oe=cl;class ul extends Oe{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){if(!this.image_)return;this.beginGeometry(t,e);const i=t.getFlatCoordinates(),n=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(i,n);this.instructions.push([k.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([k.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){if(!this.image_)return;this.beginGeometry(t,e);const i=t.getFlatCoordinates(),n=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(i,n);this.instructions.push([k.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([k.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(),r=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_=r[0],this.originY_=r[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=n[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}}const dl=ul;class fl extends Oe{constructor(t,e,i,n){super(t,e,i,n)}drawFlatCoordinates_(t,e,i,n){const r=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,i,n,!1,!1),a=[k.MOVE_TO_LINE_TO,r,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),i}drawLineString(t,e){const i=this.state,n=i.strokeStyle,r=i.lineWidth;if(n===void 0||r===void 0)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([k.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,Ct,wt],Wt);const o=t.getFlatCoordinates(),a=t.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(Tt),this.endGeometry(e)}drawMultiLineString(t,e){const i=this.state,n=i.strokeStyle,r=i.lineWidth;if(n===void 0||r===void 0)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([k.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,Ct,wt],Wt);const o=t.getEnds(),a=t.getFlatCoordinates(),l=t.getStride();let h=0;for(let c=0,u=o.length;c=s){const g=(s-a+f)/f,p=at(h,u,g),m=at(c,d,g);l.push(p,m),r.push(l),l=[p,m],a==s&&(o+=n),a=0}else if(a0&&r.push(l),r}function pl(s,t,e,i,n){let r=e,o=e,a=0,l=0,h=e,c,u,d,f,g,p,m,_,x,S;for(u=e;us&&(l>a&&(a=l,r=h,o=u),l=0,h=u-n)),d=f,m=x,_=S),g=I,p=E}return l+=f,l>a?[h,u]:[r,o]}const ai={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};class yl extends Oe{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.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[Z]={fillStyle:Z},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",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){const i=this.textFillState_,n=this.textStrokeState_,r=this.textState_;if(this.text_===""||!r||!i&&!n)return;const o=this.coordinates;let a=o.length;const l=t.getType();let h=null,c=t.getStride();if(r.placement==="line"&&(l=="LineString"||l=="MultiLineString"||l=="Polygon"||l=="MultiPolygon")){if(!St(this.getBufferedMaxExtent(),t.getExtent()))return;let u;if(h=t.getFlatCoordinates(),l=="LineString")u=[h.length];else if(l=="MultiLineString")u=t.getEnds();else if(l=="Polygon")u=t.getEnds().slice(0,1);else if(l=="MultiPolygon"){const p=t.getEndss();u=[];for(let m=0,_=p.length;m<_;++m)u.push(p[m][0])}this.beginGeometry(t,e);const d=r.repeat,f=d?void 0:r.textAlign;let g=0;for(let p=0,m=u.length;p{const I=o[(_+S)*2]===h[S*c]&&o[(_+S)*2+1]===h[S*c+1];return I||--_,I})}this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&this.updateFillStyle(this.state,this.createFill),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);let f=r.padding;if(f!=Bt&&(r.scale[0]<0||r.scale[1]<0)){let _=r.padding[0],x=r.padding[1],S=r.padding[2],I=r.padding[3];r.scale[0]<0&&(x=-x,I=-I),r.scale[1]<0&&(_=-_,S=-S),f=[_,x,S,I]}const g=this.pixelRatio;this.instructions.push([k.DRAW_IMAGE,a,d,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,f==Bt?Bt:f.map(function(_){return _*g}),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,u]);const p=1/g,m=this.state.fillStyle;r.backgroundFill&&(this.state.fillStyle=Z,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([k.DRAW_IMAGE,a,d,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[p,p],NaN,void 0,this.declutterImageWithText_,f,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?Z:this.fillKey_,this.textOffsetX_,this.textOffsetY_,u]),r.backgroundFill&&(this.state.fillStyle=m,this.hitDetectionInstructions.push(this.createFill(this.state))),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 r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||we,justify:e.justify,textBaseline:e.textBaseline||Qe,scale:e.scale});const o=this.fillKey_;i&&(o in this.fillStates||(this.fillStates[o]={fillStyle:i.fillStyle}))}drawChars_(t,e){const i=this.textStrokeState_,n=this.textState_,r=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();const l=this.pixelRatio,h=ai[n.textBaseline],c=this.textOffsetY_*l,u=this.text_,d=i?i.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([k.DRAW_CHARS,t,e,h,n.overflow,a,n.maxAngle,l,c,r,d*l,u,o,1]),this.hitDetectionInstructions.push([k.DRAW_CHARS,t,e,h,n.overflow,a&&Z,n.maxAngle,l,c,r,d*l,u,o,1/l])}setTextStyle(t,e){let i,n,r;if(!t)this.text_="";else{const o=t.getFill();o?(n=this.textFillState_,n||(n={},this.textFillState_=n),n.fillStyle=gt(o.getColor()||Z)):(n=null,this.textFillState_=n);const a=t.getStroke();if(!a)r=null,this.textStrokeState_=r;else{r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);const g=a.getLineDash(),p=a.getLineDashOffset(),m=a.getWidth(),_=a.getMiterLimit();r.lineCap=a.getLineCap()||Zt,r.lineDash=g?g.slice():Ct,r.lineDashOffset=p===void 0?wt:p,r.lineJoin=a.getLineJoin()||Qt,r.lineWidth=m===void 0?Se:m,r.miterLimit=_===void 0?Ce:_,r.strokeStyle=gt(a.getColor()||xe)}i=this.textState_;const l=t.getFont()||Vn;Tr(l);const h=t.getScaleArray();i.overflow=t.getOverflow(),i.font=l,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.repeat=t.getRepeat(),i.justify=t.getJustify(),i.textBaseline=t.getTextBaseline()||Qe,i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||Bt,i.scale=h===void 0?[1,1]:h;const c=t.getOffsetX(),u=t.getOffsetY(),d=t.getRotateWithView(),f=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=c===void 0?0:c,this.textOffsetY_=u===void 0?0:u,this.textRotateWithView_=d===void 0?!1:d,this.textRotation_=f===void 0?0:f,this.strokeKey_=r?(typeof r.strokeStyle=="string"?r.strokeStyle:U(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.repeat||"?")+(i.justify||"?")+(i.textBaseline||"?"),this.fillKey_=n?typeof n.fillStyle=="string"?n.fillStyle:"|"+U(n.fillStyle):""}this.declutterImageWithText_=e}}const xl={Circle:Dn,Default:Oe,Image:dl,LineString:gl,Polygon:Dn,Text:yl};class Sl{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 r=i[n].finish();t[e][n]=r}}return t}getBuilder(t,e){const i=t!==void 0?t.toString():"0";let n=this.buildersByZIndex_[i];n===void 0&&(n={},this.buildersByZIndex_[i]=n);let r=n[e];if(r===void 0){const o=xl[e];r=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[e]=r}return r}}const Pn=Sl;function Cl(s,t,e,i,n,r,o,a,l,h,c,u){let d=s[t],f=s[t+1],g=0,p=0,m=0,_=0;function x(){g=d,p=f,t+=i,d=s[t],f=s[t+1],_+=m,m=Math.sqrt((d-g)*(d-g)+(f-p)*(f-p))}do x();while(tL[2]}else j=I>A;const N=Math.PI,B=[],q=C+i===t;t=C,m=0,_=v,d=s[t],f=s[t+1];let F;if(q){x(),F=Math.atan2(f-p,d-g),j&&(F+=F>0?-N:N);const L=(A+I)/2,M=(G+E)/2;return B[0]=[L,M,(b-r)/2,F,n],B}n=n.replace(/\n/g," ");for(let L=0,M=n.length;L0?-N:N),F!==void 0){let et=D-F;if(et+=et>N?-2*N:et<-N?2*N:0,Math.abs(et)>o)return null}F=D;const z=L;let V=0;for(;L0&&s.push(` +import{aj as zs,u as qe,o as Ke,E as Kt,aW as Lt,bq as Vs,br as Re,bs as Hs,bt as $s,l as Us,y as Rt,s as Js,bu as X,bv as qs,bw as at,P as li,bh as Mt,bx as Ks,by as Zs,bz as Qs,bA as Jt,bB as tr,bC as er,bD as jn,bE as ir,bF as nr,bG as Li,bH as sr,bI as rr,bJ as or,ac as ar,a8 as Mi,bK as lr,be as hr,bL as me,bM as cr,bN as ur,bO as dr,bP as fr,bQ as mn,bR as Ai,bg as gr,bS as _r,bT as mr,aa as Oi,bU as pr,bV as yr,b6 as pe,aR as ye,bW as xr,aZ as At,I as H,bX as zn,bY as Z,bZ as Zt,b_ as Qt,b$ as xe,c0 as Se,c1 as Ce,c2 as pn,c3 as Sr,c4 as Cr,c5 as wr,aO as U,c6 as Ze,L as Er,c as br,c7 as Ir,c8 as vr,c9 as Rr,ca as Ct,cb as wt,cc as hi,cd as kr,aP as ji,ce as Fr,h as St,cf as Bt,cg as we,ch as Qe,ci as Vn,bm as Tr,W as Lr,aM as ti,cj as Mr,e as zi,a as $t,Q as Di,ck as Ar,bi as ge,cl as Or,cm as yn,cn as Dr,ab as Pr,co as Gr,ae as xn,C as Br,V as je,b as ze,a_ as Wr,cp as Sn,cq as Nr,m as Yr,t as Xr,cr as Cn,f as jr,j as ue,aQ as zr,cs as Vr,ct as Hr,v as Hn,cu as $n,S as $r,au as Ur,ay as Jr,cv as wn,cw as qr,B as Kr,Z as Zr,ah as Vi,ai as Hi,bl as Qr}from"./67c4f96ddb71.js";import{C as $i,D as Un,E as Jn,r as R,G as to,I as eo,J as io,d as qn,f as ke,j as T,h as te,g as Fe,K as no,L as so,M as Ci,N as le,O as dt,e as ro,o as oo,P as ao,Q as lo,R as ho,S as co,T as uo,u as Kn,F as Zn,B as Ui,U as fo}from"./49b2c148dcb3.js";import{c as Qn,B as Pi,T as En,S as bn}from"./fa35e3e86a4c.js";import{F as go,a as _o,b as mo,c as po}from"./37c62c6c4df6.js";import{L as yo,B as xo}from"./1241ef5f2dc5.js";import{T as ts}from"./5091d4253a81.js";import{F as es}from"./adc90c48e771.js";import{C as So}from"./f3ffe551a463.js";function Co(s){return"current"in s}var is=()=>typeof window<"u";function wo(){var s;const t=navigator.userAgentData;return(s=t?.platform)!=null?s:navigator.platform}var Eo=s=>is()&&s.test(navigator.vendor),bo=s=>is()&&s.test(wo()),Io=()=>bo(/mac|iphone|ipad|ipod/i),vo=()=>Io()&&Eo(/apple/i);function Ro(s){const{ref:t,elements:e,enabled:i}=s,n=()=>{var r,o;return(o=(r=t.current)==null?void 0:r.ownerDocument)!=null?o:document};$i(n,"pointerdown",r=>{if(!vo()||!i)return;const o=r.target,l=(e??[t]).some(h=>{const c=Co(h)?h.current:h;return c?.contains(o)||c===o});n().activeElement!==o&&l&&(r.preventDefault(),o.focus())})}var ns=s=>s.hasAttribute("tabindex"),ko=s=>ns(s)&&s.tabIndex===-1;function Fo(s){return!!s.getAttribute("disabled")||!!s.getAttribute("aria-disabled")}function ss(s){return s.parentElement&&ss(s.parentElement)?!0:s.hidden}function To(s){const t=s.getAttribute("contenteditable");return t!=="false"&&t!=null}function rs(s){if(!Un(s)||ss(s)||Fo(s))return!1;const{localName:t}=s;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const i={a:()=>s.hasAttribute("href"),audio:()=>s.hasAttribute("controls"),video:()=>s.hasAttribute("controls")};return t in i?i[t]():To(s)?!0:ns(s)}function Lo(s){return s?Un(s)&&rs(s)&&!ko(s):!1}var Mo=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],Ao=Mo.join(),Oo=s=>s.offsetWidth>0&&s.offsetHeight>0;function Do(s){const t=Array.from(s.querySelectorAll(Ao));return t.unshift(s),t.filter(e=>rs(e)&&Oo(e))}function Po(s){const t=s.current;if(!t)return!1;const e=eo(t);return!e||t.contains(e)?!1:!!Lo(e)}function Go(s,t){const{shouldFocus:e,visible:i,focusRef:n}=t,r=e&&!i;Jn(()=>{if(!r||Po(s))return;const o=n?.current||s.current;let a;if(o)return a=requestAnimationFrame(()=>{o.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(a)}},[r,s,n])}var Bo={preventScroll:!0,shouldFocus:!1};function Wo(s,t=Bo){const{focusRef:e,preventScroll:i,shouldFocus:n,visible:r}=t,o=No(s)?s.current:s,a=n&&r,l=R.useRef(a),h=R.useRef(r);to(()=>{!h.current&&r&&(l.current=a),h.current=r},[r,a]);const c=R.useCallback(()=>{if(!(!r||!o||!l.current)&&(l.current=!1,!o.contains(document.activeElement)))if(e?.current)requestAnimationFrame(()=>{var u;(u=e.current)==null||u.focus({preventScroll:i})});else{const u=Do(o);u.length>0&&requestAnimationFrame(()=>{u[0].focus({preventScroll:i})})}},[r,i,o,e]);Jn(()=>{c()},[c]),$i(o,"transitionend",c)}function No(s){return"current"in s}function Yo(s){const{isOpen:t,ref:e}=s,[i,n]=R.useState(t),[r,o]=R.useState(!1);return R.useEffect(()=>{r||(n(t),o(!0))},[t,r,i]),$i(()=>e.current,"animationend",()=>{n(t)}),{present:!(t?!1:!i),onComplete(){var l;const h=io(e.current),c=new h.CustomEvent("animationend",{bubbles:!0});(l=e.current)==null||l.dispatchEvent(c)}}}function Xo(s){const{wasSelected:t,enabled:e,isSelected:i,mode:n="unmount"}=s;return!!(!e||i||n==="keepMounted"&&t)}var[jo,Yt]=qn({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[zo,Te]=qn({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),os=ke(function(t,e){const{getHeaderProps:i}=Yt(),n=Te();return T.jsx(te.header,{...i(t,e),className:Fe("chakra-popover__header",t.className),__css:n.header})});os.displayName="PopoverHeader";function as(s){const t=R.Children.only(s.children),{getTriggerProps:e}=Yt();return R.cloneElement(t,e(t.props,t.ref))}as.displayName="PopoverTrigger";var zt={click:"click",hover:"hover"};function Vo(s={}){const{closeOnBlur:t=!0,closeOnEsc:e=!0,initialFocusRef:i,id:n,returnFocusOnClose:r=!0,autoFocus:o=!0,arrowSize:a,arrowShadowColor:l,trigger:h=zt.click,openDelay:c=200,closeDelay:u=200,isLazy:d,lazyBehavior:f="unmount",computePositionOnMount:g,...p}=s,{isOpen:m,onClose:_,onOpen:x,onToggle:S}=no(s),I=R.useRef(null),E=R.useRef(null),C=R.useRef(null),v=R.useRef(!1),b=R.useRef(!1);m&&(b.current=!0);const[A,G]=R.useState(!1),[j,N]=R.useState(!1),B=R.useId(),q=n??B,[F,L,M,D]=["popover-trigger","popover-content","popover-header","popover-body"].map(P=>`${P}-${q}`),{referenceRef:z,getArrowProps:V,getPopperProps:tt,getArrowInnerProps:w,forceUpdate:De}=so({...p,enabled:m||!!g}),et=Yo({isOpen:m,ref:C});Ro({enabled:m,ref:E}),Go(C,{focusRef:E,visible:m,shouldFocus:r&&h===zt.click}),Wo(C,{focusRef:i,visible:m,shouldFocus:o&&h===zt.click});const _t=Xo({wasSelected:b.current,enabled:d,mode:f,isSelected:et.present}),di=R.useCallback((P={},it=null)=>{const $={...P,style:{...P.style,transformOrigin:Ci.transformOrigin.varRef,[Ci.arrowSize.var]:a?`${a}px`:void 0,[Ci.arrowShadowColor.var]:l},ref:le(C,it),children:_t?P.children:null,id:L,tabIndex:-1,role:"dialog",onKeyDown:dt(P.onKeyDown,lt=>{e&<.key==="Escape"&&_()}),onBlur:dt(P.onBlur,lt=>{const Pt=In(lt),Gt=wi(C.current,Pt),_i=wi(E.current,Pt);m&&t&&(!Gt&&!_i)&&_()}),"aria-labelledby":A?M:void 0,"aria-describedby":j?D:void 0};return h===zt.hover&&($.role="tooltip",$.onMouseEnter=dt(P.onMouseEnter,()=>{v.current=!0}),$.onMouseLeave=dt(P.onMouseLeave,lt=>{lt.nativeEvent.relatedTarget!==null&&(v.current=!1,setTimeout(()=>_(),u))})),$},[_t,L,A,M,j,D,h,e,_,m,t,u,l,a]),fi=R.useCallback((P={},it=null)=>tt({...P,style:{visibility:m?"visible":"hidden",...P.style}},it),[m,tt]),Pe=R.useCallback((P,it=null)=>({...P,ref:le(it,I,z)}),[I,z]),ut=R.useRef(),Xt=R.useRef(),Ge=R.useCallback(P=>{I.current==null&&z(P)},[z]),gi=R.useCallback((P={},it=null)=>{const $={...P,ref:le(E,it,Ge),id:F,"aria-haspopup":"dialog","aria-expanded":m,"aria-controls":L};return h===zt.click&&($.onClick=dt(P.onClick,S)),h===zt.hover&&($.onFocus=dt(P.onFocus,()=>{ut.current===void 0&&x()}),$.onBlur=dt(P.onBlur,lt=>{const Pt=In(lt),Gt=!wi(C.current,Pt);m&&t&&Gt&&_()}),$.onKeyDown=dt(P.onKeyDown,lt=>{lt.key==="Escape"&&_()}),$.onMouseEnter=dt(P.onMouseEnter,()=>{v.current=!0,ut.current=window.setTimeout(()=>x(),c)}),$.onMouseLeave=dt(P.onMouseLeave,()=>{v.current=!1,ut.current&&(clearTimeout(ut.current),ut.current=void 0),Xt.current=window.setTimeout(()=>{v.current===!1&&_()},u)})),$},[F,m,L,h,Ge,S,x,t,_,c,u]);R.useEffect(()=>()=>{ut.current&&clearTimeout(ut.current),Xt.current&&clearTimeout(Xt.current)},[]);const Be=R.useCallback((P={},it=null)=>({...P,id:M,ref:le(it,$=>{G(!!$)})}),[M]),Dt=R.useCallback((P={},it=null)=>({...P,id:D,ref:le(it,$=>{N(!!$)})}),[D]);return{forceUpdate:De,isOpen:m,onAnimationComplete:et.onComplete,onClose:_,getAnchorProps:Pe,getArrowProps:V,getArrowInnerProps:w,getPopoverPositionerProps:fi,getPopoverProps:di,getTriggerProps:gi,getHeaderProps:Be,getBodyProps:Dt}}function wi(s,t){return s===t||s?.contains(t)}function In(s){var t;const e=s.currentTarget.ownerDocument.activeElement;return(t=s.relatedTarget)!=null?t:e}function ls(s){const t=ro("Popover",s),{children:e,...i}=oo(s),n=ao(),r=Vo({...i,direction:n.direction});return T.jsx(jo,{value:r,children:T.jsx(zo,{value:t,children:lo(e,{isOpen:r.isOpen,onClose:r.onClose,forceUpdate:r.forceUpdate})})})}ls.displayName="Popover";var Ei=(s,t)=>t?`${s}.${t}, ${t}`:void 0;function hs(s){var t;const{bg:e,bgColor:i,backgroundColor:n,shadow:r,boxShadow:o,shadowColor:a}=s,{getArrowProps:l,getArrowInnerProps:h}=Yt(),c=Te(),u=(t=e??i)!=null?t:n,d=r??o;return T.jsx(te.div,{...l(),className:"chakra-popover__arrow-positioner",children:T.jsx(te.div,{className:Fe("chakra-popover__arrow",s.className),...h(s),__css:{"--popper-arrow-shadow-color":Ei("colors",a),"--popper-arrow-bg":Ei("colors",u),"--popper-arrow-shadow":Ei("shadows",d),...c.arrow}})})}hs.displayName="PopoverArrow";var cs=ke(function(t,e){const{getBodyProps:i}=Yt(),n=Te();return T.jsx(te.div,{...i(t,e),className:Fe("chakra-popover__body",t.className),__css:n.body})});cs.displayName="PopoverBody";var us=ke(function(t,e){const{onClose:i}=Yt(),n=Te();return T.jsx(ho,{size:"sm",onClick:i,className:Fe("chakra-popover__close-btn",t.className),__css:n.closeButton,ref:e,...t})});us.displayName="PopoverCloseButton";function Ho(s){if(s)return{enter:{...s.enter,visibility:"visible"},exit:{...s.exit,transitionEnd:{visibility:"hidden"}}}}var $o={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},Uo=te(co.section),ds=ke(function(t,e){const{variants:i=$o,...n}=t,{isOpen:r}=Yt();return T.jsx(Uo,{ref:e,variants:Ho(i),initial:!1,animate:r?"enter":"exit",...n})});ds.displayName="PopoverTransition";var fs=ke(function(t,e){const{rootProps:i,motionProps:n,...r}=t,{getPopoverProps:o,getPopoverPositionerProps:a,onAnimationComplete:l}=Yt(),h=Te(),c={position:"relative",display:"flex",flexDirection:"column",...h.content};return T.jsx(te.div,{...a(i),__css:h.popper,className:"chakra-popover__popper",children:T.jsx(ds,{...n,...o(r,e),onAnimationComplete:uo(l,r.onAnimationComplete),className:Fe("chakra-popover__content",t.className),__css:c})})});fs.displayName="PopoverContent";class Ji extends zs{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(typeof t.getSimplifiedGeometry=="function"){const e=t;this.setGeometry(e)}else{const e=t;this.setProperties(e)}}clone(){const t=new Ji(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());const e=this.getGeometry();e&&t.setGeometry(e.clone());const i=this.getStyle();return i&&t.setStyle(i),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_&&(qe(this.geometryChangeKey_),this.geometryChangeKey_=null);const t=this.getGeometry();t&&(this.geometryChangeKey_=Ke(t,Kt.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?Jo(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}function Jo(s){if(typeof s=="function")return s;let t;return Array.isArray(s)?t=s:(Lt(typeof s.getZIndex=="function","Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),t=[s]),function(){return t}}const qo=Ji;class ei extends Vs{constructor(t){super(),this.geometries_=t||null,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(qe),this.changeEventsKeys_.length=0}listenGeometriesChange_(){if(this.geometries_)for(let t=0,e=this.geometries_.length;t1?o:2,r=r||new Array(o);for(let c=0;c>1;ne;){if(i-e>600){var r=i-e+1,o=t-e+1,a=Math.log(r),l=.5*Math.exp(2*a/3),h=.5*Math.sqrt(a*l*(r-l)/r)*(o-r/2<0?-1:1),c=Math.max(e,Math.floor(t-o*l/r+h)),u=Math.min(i,Math.floor(t+(r-o)*l/r+h));ys(s,t,c,u,n)}var d=s[t],f=e,g=i;for(he(s,e,t),n(s[i],d)>0&&he(s,e,i);f0;)g--}n(s[e],d)===0?he(s,e,g):(g++,he(s,g,i)),g<=t&&(e=g+1),t<=g&&(i=g-1)}}function he(s,t,e){var i=s[t];s[t]=s[e],s[e]=i}function Ca(s,t){return st?1:0}let xs=class{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data;const i=[];if(!$e(t,e))return i;const n=this.toBBox,r=[];for(;e;){for(let o=0;o=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(n,r,e)}_split(t,e){const i=t[e],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);const o=this._chooseSplitIndex(i,r,n),a=Ut(i.children.splice(o,i.children.length-o));a.height=i.height,a.leaf=i.leaf,Vt(i,this.toBBox),Vt(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)}_splitRoot(t,e){this.data=Ut([t,e]),this.data.height=t.height+1,this.data.leaf=!1,Vt(this.data,this.toBBox)}_chooseSplitIndex(t,e,i){let n,r=1/0,o=1/0;for(let a=e;a<=i-e;a++){const l=de(t,0,a,this.toBBox),h=de(t,a,i,this.toBBox),c=va(l,h),u=bi(l)+bi(h);c=e;h--){const c=t.children[h];fe(a,t.leaf?r(c):c),l+=He(a)}return l}_adjustParentBBoxes(t,e,i){for(let n=i;n>=0;n--)fe(e[n],t)}_condense(t){for(let e=t.length-1,i;e>=0;e--)t[e].children.length===0?e>0?(i=t[e-1].children,i.splice(i.indexOf(t[e]),1)):this.clear():Vt(t[e],this.toBBox)}};function wa(s,t,e){if(!e)return t.indexOf(s);for(let i=0;i=s.minX&&t.maxY>=s.minY}function Ut(s){return{children:s,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Rn(s,t,e,i,n){const r=[t,e];for(;r.length;){if(e=r.pop(),t=r.pop(),e-t<=i)continue;const o=t+Math.ceil((e-t)/i/2)*i;Sa(s,o,t,e,n),r.push(t,o,o,e)}}class Ki{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=ye(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new Ki({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 X()}getImage(t){return X()}getHitDetectionImage(){return X()}getPixelRatio(t){return 1}getImageState(){return X()}getImageSize(){return X()}getOrigin(){return X()}getSize(){return X()}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_=ye(t)}listenImageChange(t){X()}load(){X()}unlistenImageChange(t){X()}}const Ss=Ki;function gt(s){return Array.isArray(s)?xr(s):s}class Zi extends Ss{constructor(t){const e=t.rotateWithView!==void 0?t.rotateWithView:!1;super({opacity:1,rotateWithView:e,rotation:t.rotation!==void 0?t.rotation:0,scale:t.scale!==void 0?t.scale:1,displacement:t.displacement!==void 0?t.displacement:[0,0],declutterMode:t.declutterMode}),this.canvas_=void 0,this.hitDetectionCanvas_=null,this.fill_=t.fill!==void 0?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius_=t.radius!==void 0?t.radius:t.radius1,this.radius2_=t.radius2,this.angle_=t.angle!==void 0?t.angle:0,this.stroke_=t.stroke!==void 0?t.stroke:null,this.size_=null,this.renderOptions_=null,this.render()}clone(){const t=this.getScale(),e=new Zi({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_;if(!t)return null;const 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.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_}getImage(t){let e=this.canvas_[t];if(!e){const i=this.renderOptions_,n=At(i.size*t,i.size*t);this.draw_(i,n,t),e=n.canvas,this.canvas_[t]=e}return e}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return H.LOADED}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}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(e===0||this.points_===1/0||t!=="bevel"&&t!=="miter")return e;let n=this.radius_,r=this.radius2_===void 0?n:this.radius2_;if(n{this.image_=t,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==H.LOADED)return;const e=this.image_,i=document.createElement("canvas");i.width=Math.ceil(e.width*t),i.height=Math.ceil(e.height*t);const n=i.getContext("2d");n.scale(t,t),n.drawImage(e,0,0),n.globalCompositeOperation="multiply",n.fillStyle=wr(this.color_),n.fillRect(0,0,i.width/t,i.height/t),n.globalCompositeOperation="destination-in",n.drawImage(e,0,0),this.canvas_[t]=i}}function Ta(s,t,e,i,n){let r=t===void 0?void 0:pn.get(t,e,n);return r||(r=new Fa(s,s instanceof HTMLImageElement?s.src||void 0:t,e,i,n),pn.set(t,e,n,r)),r}function Fn(s,t,e,i){return e!==void 0&&i!==void 0?[e/s,i/t]:e!==void 0?e/s:i!==void 0?i/t:1}class sn extends Ss{constructor(t){t=t||{};const e=t.opacity!==void 0?t.opacity:1,i=t.rotation!==void 0?t.rotation:0,n=t.scale!==void 0?t.scale:1,r=t.rotateWithView!==void 0?t.rotateWithView:!1;super({opacity:e,rotation:i,scale:n,displacement:t.displacement!==void 0?t.displacement:[0,0],rotateWithView:r,declutterMode:t.declutterMode}),this.anchor_=t.anchor!==void 0?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=t.anchorOrigin!==void 0?t.anchorOrigin:"top-left",this.anchorXUnits_=t.anchorXUnits!==void 0?t.anchorXUnits:"fraction",this.anchorYUnits_=t.anchorYUnits!==void 0?t.anchorYUnits:"fraction",this.crossOrigin_=t.crossOrigin!==void 0?t.crossOrigin:null;const o=t.img!==void 0?t.img:null;let a=t.src;Lt(!(a!==void 0&&o),"`image` and `src` cannot be provided at the same time"),(a===void 0||a.length===0)&&o&&(a=o.src||U(o)),Lt(a!==void 0&&a.length>0,"A defined and non-empty `src` or `image` must be provided"),Lt(!((t.width!==void 0||t.height!==void 0)&&t.scale!==void 0),"`width` or `height` cannot be provided together with `scale`");let l;if(t.src!==void 0?l=H.IDLE:o!==void 0&&(o instanceof HTMLImageElement?o.complete?l=o.src?H.LOADED:H.IDLE:l=H.LOADING:l=H.LOADED),this.color_=t.color!==void 0?zn(t.color):null,this.iconImage_=Ta(o,a,this.crossOrigin_,l,this.color_),this.offset_=t.offset!==void 0?t.offset:[0,0],this.offsetOrigin_=t.offsetOrigin!==void 0?t.offsetOrigin:"top-left",this.origin_=null,this.size_=t.size!==void 0?t.size:null,t.width!==void 0||t.height!==void 0){let h,c;if(t.size)[h,c]=t.size;else{const u=this.getImage(1);if(u.width&&u.height)h=u.width,c=u.height;else if(u instanceof HTMLImageElement){this.initialOptions_=t;const d=()=>{if(this.unlistenImageChange(d),!this.initialOptions_)return;const f=this.iconImage_.getSize();this.setScale(Fn(f[0],f[1],t.width,t.height))};this.listenImageChange(d);return}}h!==void 0&&this.setScale(Fn(h,c,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 sn({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_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:i,size:this.size_!==null?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 n=this.getSize();if(this.anchorXUnits_=="fraction"||this.anchorYUnits_=="fraction"){if(!n)return null;t=this.anchor_.slice(),this.anchorXUnits_=="fraction"&&(t[0]*=n[0]),this.anchorYUnits_=="fraction"&&(t[1]*=n[1])}if(this.anchorOrigin_!="top-left"){if(!n)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_=="top-right"||this.anchorOrigin_=="bottom-right")&&(t[0]=-t[0]+n[0]),(this.anchorOrigin_=="bottom-left"||this.anchorOrigin_=="bottom-right")&&(t[1]=-t[1]+n[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_}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(this.offsetOrigin_!="top-left"){const e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),(this.offsetOrigin_=="top-right"||this.offsetOrigin_=="bottom-right")&&(t[0]=i[0]-e[0]-t[0]),(this.offsetOrigin_=="bottom-left"||this.offsetOrigin_=="bottom-right")&&(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();if(this.size_)return this.size_[0]*t[0];if(this.iconImage_.getImageState()==H.LOADED)return this.iconImage_.getSize()[0]*t[0]}getHeight(){const t=this.getScaleArray();if(this.size_)return this.size_[1]*t[1];if(this.iconImage_.getImageState()==H.LOADED)return this.iconImage_.getSize()[1]*t[1]}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(Kt.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(Kt.CHANGE,t)}}const ws=sn,La="#333";class rn{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=ye(t.scale!==void 0?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_=t.fill!==void 0?t.fill:new Ee({color:La}),this.maxAngle_=t.maxAngle!==void 0?t.maxAngle:Math.PI/4,this.placement_=t.placement!==void 0?t.placement:"point",this.overflow_=!!t.overflow,this.stroke_=t.stroke!==void 0?t.stroke:null,this.offsetX_=t.offsetX!==void 0?t.offsetX:0,this.offsetY_=t.offsetY!==void 0?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=t.padding===void 0?null:t.padding}clone(){const t=this.getScale();return new rn({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})}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_}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_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}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}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=ye(t!==void 0?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 Ma=rn;let ie=0;const J=1<",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match"},Pa={[y.Number]:W(Y(1,1/0,ht),O),[y.String]:W(Y(1,1/0,ht),ee),[y.Get]:W(Ga,ht),[y.Var]:W(Ba,ht),[y.Resolution]:W(Wa,O),[y.Any]:W(Y(2,1/0,J),J),[y.All]:W(Y(2,1/0,J),J),[y.Not]:W(Y(1,1,J),J),[y.Equal]:W(Y(2,2,ht),J),[y.NotEqual]:W(Y(2,2,ht),J),[y.GreaterThan]:W(Y(2,2,ht),J),[y.GreaterThanOrEqualTo]:W(Y(2,2,ht),J),[y.LessThan]:W(Y(2,2,ht),J),[y.LessThanOrEqualTo]:W(Y(2,2,ht),J),[y.Multiply]:W(Y(2,1/0,O),O),[y.Divide]:W(Y(2,2,O),O),[y.Add]:W(Y(2,1/0,O),O),[y.Subtract]:W(Y(2,2,O),O),[y.Clamp]:W(Y(3,3,O),O),[y.Mod]:W(Y(2,2,O),O),[y.Pow]:W(Y(2,2,O),O),[y.Abs]:W(Y(1,1,O),O),[y.Floor]:W(Y(1,1,O),O),[y.Ceil]:W(Y(1,1,O),O),[y.Round]:W(Y(1,1,O),O),[y.Sin]:W(Y(1,1,O),O),[y.Cos]:W(Y(1,1,O),O),[y.Atan]:W(Y(1,2,O),O),[y.Sqrt]:W(Y(1,1,O),O),[y.Match]:W(Y(4,1/0,ee|O),ht)};function Ga(s,t){if(s.length!==2)throw new Error("Expected 1 argument for get operation");const e=ci(s[1],t);if(!(e instanceof Ft))throw new Error("Expected a literal argument for get operation");if(typeof e.value!="string")throw new Error("Expected a string argument for get operation");return t.properties.add(e.value),[e]}function Ba(s,t){if(s.length!==2)throw new Error("Expected 1 argument for var operation");const e=ci(s[1],t);if(!(e instanceof Ft))throw new Error("Expected a literal argument for var operation");if(typeof e.value!="string")throw new Error("Expected a string argument for get operation");return t.variables.add(e.value),[e]}function Wa(s,t){const e=s[0];if(s.length!==1)throw new Error(`Expected no arguments for ${e} operation`);return[]}function Y(s,t,e){return function(i,n){const r=i[0],o=i.length-1;if(s===t){if(o!==s){const l=s===1?"":"s";throw new Error(`Expected ${s} argument${l} for operation ${r}, got ${o}`)}}else if(ot)throw new Error(`Expected ${s} to ${t} arguments for operation ${r}, got ${o}`);const a=new Array(o);for(let l=0;li.resolution;case y.Any:case y.All:case y.Not:return za(s);case y.Equal:case y.NotEqual:case y.LessThan:case y.LessThanOrEqualTo:case y.GreaterThan:case y.GreaterThanOrEqualTo:return ja(s);case y.Multiply:case y.Divide:case y.Add:case y.Subtract:case y.Clamp:case y.Mod:case y.Pow:case y.Abs:case y.Floor:case y.Ceil:case y.Round:case y.Sin:case y.Cos:case y.Atan:case y.Sqrt:return Va(s);case y.Match:return Ha(s);default:throw new Error(`Unsupported operator ${e}`)}}function Ya(s,t){const e=s.operator,i=s.args.length,n=new Array(i);for(let r=0;r{for(let o=0;on.properties[i];case y.Var:return n=>n.variables[i];default:throw new Error(`Unsupported accessor operator ${s.operator}`)}}function ja(s,t){const e=s.operator,i=Nt(s.args[0]),n=Nt(s.args[1]);switch(e){case y.Equal:return r=>i(r)===n(r);case y.NotEqual:return r=>i(r)!==n(r);case y.LessThan:return r=>i(r)i(r)<=n(r);case y.GreaterThan:return r=>i(r)>n(r);case y.GreaterThanOrEqualTo:return r=>i(r)>=n(r);default:throw new Error(`Unsupported comparison operator ${e}`)}}function za(s,t){const e=s.operator,i=s.args.length,n=new Array(i);for(let r=0;r{for(let o=0;o{for(let o=0;o!n[0](r);default:throw new Error(`Unsupported logical operator ${e}`)}}function Va(s,t){const e=s.operator,i=s.args.length,n=new Array(i);for(let r=0;r{let o=1;for(let a=0;an[0](r)/n[1](r);case y.Add:return r=>{let o=0;for(let a=0;an[0](r)-n[1](r);case y.Clamp:return r=>{const o=n[0](r),a=n[1](r);if(ol?l:o};case y.Mod:return r=>n[0](r)%n[1](r);case y.Pow:return r=>Math.pow(n[0](r),n[1](r));case y.Abs:return r=>Math.abs(n[0](r));case y.Floor:return r=>Math.floor(n[0](r));case y.Ceil:return r=>Math.ceil(n[0](r));case y.Round:return r=>Math.round(n[0](r));case y.Sin:return r=>Math.sin(n[0](r));case y.Cos:return r=>Math.cos(n[0](r));case y.Atan:return i===2?r=>Math.atan2(n[0](r),n[1](r)):r=>Math.atan(n[0](r));case y.Sqrt:return r=>Math.sqrt(n[0](r));default:throw new Error(`Unsupported numeric operator ${e}`)}}function Ha(s,t){const e=s.args.length,i=new Array(e);for(let n=0;n{const r=i[0](n);for(let o=1;o4)throw new Error(`Expected a color with 3 or 4 values for ${t}`);return e}function rl(s,t){if(typeof s=="number")return s;const e=Me(s,t);if(e.length!==2)throw new Error(`Expected an array of two numbers for ${t}`);return e}const An={RENDER_ORDER:"renderOrder"};class ol extends Er{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!==void 0?t.declutter:!1,this.renderBuffer_=t.renderBuffer!==void 0?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=t.updateWhileAnimating!==void 0?t.updateWhileAnimating:!1,this.updateWhileInteracting_=t.updateWhileInteracting!==void 0?t.updateWhileInteracting:!1}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(An.RENDER_ORDER)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t){t.declutterTree||(t.declutterTree=new xs(9)),this.getRenderer().renderDeclutter(t)}setRenderOrder(t){this.set(An.RENDER_ORDER,t)}setStyle(t){this.style_=al(t),this.styleFunction_=t===null?void 0:Ra(this.style_),this.changed()}}function al(s){if(s===void 0)return ka;if(!s)return null;if(typeof s=="function"||s instanceof Je)return s;if(!Array.isArray(s))return Tn([s]);if(s.length===0)return[];const t=s.length,e=s[0];if(e instanceof Je){const n=new Array(t);for(let r=0;ra&&(this.instructions.push([k.CUSTOM,a,h,t,i,Jt]),this.hitDetectionInstructions.push([k.CUSTOM,a,h,t,n||i,Jt]));break;case"Point":l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),h=this.coordinates.length,this.instructions.push([k.CUSTOM,a,h,t,i]),this.hitDetectionInstructions.push([k.CUSTOM,a,h,t,n||i]);break}this.endGeometry(e)}beginGeometry(t,e){this.beginGeometryInstruction1_=[k.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[k.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;t.reverse();let e;const i=t.length;let n,r,o=-1;for(e=0;ethis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0}createFill(t){const e=t.fillStyle,i=[k.SET_FILL_STYLE,e];return typeof e!="string"&&i.push(!0),i}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[k.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const i=t.fillStyle;(typeof i!="string"||t.currentFillStyle!=i)&&(i!==void 0&&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;(t.currentStrokeStyle!=i||t.currentLineCap!=n||r!=t.currentLineDash&&!hi(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=l||t.currentMiterLimit!=h)&&(i!==void 0&&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)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[k.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=kr(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;ji(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}const Oe=cl;class ul extends Oe{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){if(!this.image_)return;this.beginGeometry(t,e);const i=t.getFlatCoordinates(),n=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(i,n);this.instructions.push([k.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([k.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){if(!this.image_)return;this.beginGeometry(t,e);const i=t.getFlatCoordinates(),n=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(i,n);this.instructions.push([k.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([k.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(),r=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_=r[0],this.originY_=r[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=n[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}}const dl=ul;class fl extends Oe{constructor(t,e,i,n){super(t,e,i,n)}drawFlatCoordinates_(t,e,i,n){const r=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,i,n,!1,!1),a=[k.MOVE_TO_LINE_TO,r,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),i}drawLineString(t,e){const i=this.state,n=i.strokeStyle,r=i.lineWidth;if(n===void 0||r===void 0)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([k.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,Ct,wt],Wt);const o=t.getFlatCoordinates(),a=t.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(Tt),this.endGeometry(e)}drawMultiLineString(t,e){const i=this.state,n=i.strokeStyle,r=i.lineWidth;if(n===void 0||r===void 0)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([k.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,Ct,wt],Wt);const o=t.getEnds(),a=t.getFlatCoordinates(),l=t.getStride();let h=0;for(let c=0,u=o.length;c=s){const g=(s-a+f)/f,p=at(h,u,g),m=at(c,d,g);l.push(p,m),r.push(l),l=[p,m],a==s&&(o+=n),a=0}else if(a0&&r.push(l),r}function pl(s,t,e,i,n){let r=e,o=e,a=0,l=0,h=e,c,u,d,f,g,p,m,_,x,S;for(u=e;us&&(l>a&&(a=l,r=h,o=u),l=0,h=u-n)),d=f,m=x,_=S),g=I,p=E}return l+=f,l>a?[h,u]:[r,o]}const ai={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};class yl extends Oe{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.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[Z]={fillStyle:Z},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",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){const i=this.textFillState_,n=this.textStrokeState_,r=this.textState_;if(this.text_===""||!r||!i&&!n)return;const o=this.coordinates;let a=o.length;const l=t.getType();let h=null,c=t.getStride();if(r.placement==="line"&&(l=="LineString"||l=="MultiLineString"||l=="Polygon"||l=="MultiPolygon")){if(!St(this.getBufferedMaxExtent(),t.getExtent()))return;let u;if(h=t.getFlatCoordinates(),l=="LineString")u=[h.length];else if(l=="MultiLineString")u=t.getEnds();else if(l=="Polygon")u=t.getEnds().slice(0,1);else if(l=="MultiPolygon"){const p=t.getEndss();u=[];for(let m=0,_=p.length;m<_;++m)u.push(p[m][0])}this.beginGeometry(t,e);const d=r.repeat,f=d?void 0:r.textAlign;let g=0;for(let p=0,m=u.length;p{const I=o[(_+S)*2]===h[S*c]&&o[(_+S)*2+1]===h[S*c+1];return I||--_,I})}this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&this.updateFillStyle(this.state,this.createFill),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);let f=r.padding;if(f!=Bt&&(r.scale[0]<0||r.scale[1]<0)){let _=r.padding[0],x=r.padding[1],S=r.padding[2],I=r.padding[3];r.scale[0]<0&&(x=-x,I=-I),r.scale[1]<0&&(_=-_,S=-S),f=[_,x,S,I]}const g=this.pixelRatio;this.instructions.push([k.DRAW_IMAGE,a,d,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,f==Bt?Bt:f.map(function(_){return _*g}),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,u]);const p=1/g,m=this.state.fillStyle;r.backgroundFill&&(this.state.fillStyle=Z,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([k.DRAW_IMAGE,a,d,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[p,p],NaN,void 0,this.declutterImageWithText_,f,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?Z:this.fillKey_,this.textOffsetX_,this.textOffsetY_,u]),r.backgroundFill&&(this.state.fillStyle=m,this.hitDetectionInstructions.push(this.createFill(this.state))),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 r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||we,justify:e.justify,textBaseline:e.textBaseline||Qe,scale:e.scale});const o=this.fillKey_;i&&(o in this.fillStates||(this.fillStates[o]={fillStyle:i.fillStyle}))}drawChars_(t,e){const i=this.textStrokeState_,n=this.textState_,r=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();const l=this.pixelRatio,h=ai[n.textBaseline],c=this.textOffsetY_*l,u=this.text_,d=i?i.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([k.DRAW_CHARS,t,e,h,n.overflow,a,n.maxAngle,l,c,r,d*l,u,o,1]),this.hitDetectionInstructions.push([k.DRAW_CHARS,t,e,h,n.overflow,a&&Z,n.maxAngle,l,c,r,d*l,u,o,1/l])}setTextStyle(t,e){let i,n,r;if(!t)this.text_="";else{const o=t.getFill();o?(n=this.textFillState_,n||(n={},this.textFillState_=n),n.fillStyle=gt(o.getColor()||Z)):(n=null,this.textFillState_=n);const a=t.getStroke();if(!a)r=null,this.textStrokeState_=r;else{r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);const g=a.getLineDash(),p=a.getLineDashOffset(),m=a.getWidth(),_=a.getMiterLimit();r.lineCap=a.getLineCap()||Zt,r.lineDash=g?g.slice():Ct,r.lineDashOffset=p===void 0?wt:p,r.lineJoin=a.getLineJoin()||Qt,r.lineWidth=m===void 0?Se:m,r.miterLimit=_===void 0?Ce:_,r.strokeStyle=gt(a.getColor()||xe)}i=this.textState_;const l=t.getFont()||Vn;Tr(l);const h=t.getScaleArray();i.overflow=t.getOverflow(),i.font=l,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.repeat=t.getRepeat(),i.justify=t.getJustify(),i.textBaseline=t.getTextBaseline()||Qe,i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||Bt,i.scale=h===void 0?[1,1]:h;const c=t.getOffsetX(),u=t.getOffsetY(),d=t.getRotateWithView(),f=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=c===void 0?0:c,this.textOffsetY_=u===void 0?0:u,this.textRotateWithView_=d===void 0?!1:d,this.textRotation_=f===void 0?0:f,this.strokeKey_=r?(typeof r.strokeStyle=="string"?r.strokeStyle:U(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.repeat||"?")+(i.justify||"?")+(i.textBaseline||"?"),this.fillKey_=n?typeof n.fillStyle=="string"?n.fillStyle:"|"+U(n.fillStyle):""}this.declutterImageWithText_=e}}const xl={Circle:Dn,Default:Oe,Image:dl,LineString:gl,Polygon:Dn,Text:yl};class Sl{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 r=i[n].finish();t[e][n]=r}}return t}getBuilder(t,e){const i=t!==void 0?t.toString():"0";let n=this.buildersByZIndex_[i];n===void 0&&(n={},this.buildersByZIndex_[i]=n);let r=n[e];if(r===void 0){const o=xl[e];r=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[e]=r}return r}}const Pn=Sl;function Cl(s,t,e,i,n,r,o,a,l,h,c,u){let d=s[t],f=s[t+1],g=0,p=0,m=0,_=0;function x(){g=d,p=f,t+=i,d=s[t],f=s[t+1],_+=m,m=Math.sqrt((d-g)*(d-g)+(f-p)*(f-p))}do x();while(tL[2]}else j=I>A;const N=Math.PI,B=[],q=C+i===t;t=C,m=0,_=v,d=s[t],f=s[t+1];let F;if(q){x(),F=Math.atan2(f-p,d-g),j&&(F+=F>0?-N:N);const L=(A+I)/2,M=(G+E)/2;return B[0]=[L,M,(b-r)/2,F,n],B}n=n.replace(/\n/g," ");for(let L=0,M=n.length;L0?-N:N),F!==void 0){let et=D-F;if(et+=et>N?-2*N:et<-N?2*N:0,Math.abs(et)>o)return null}F=D;const z=L;let V=0;for(;L0&&s.push(` `,""),s.push(t,""),s}class El{constructor(t,e,i,n){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=ti(),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_={}}createLabel(t,e,i,n){const r=t+e+i+n;if(this.labels_[r])return this.labels_[r];const o=n?this.strokeStates[n]:null,a=i?this.fillStates[i]:null,l=this.textStates[e],h=this.pixelRatio,c=[l.scale[0]*h,l.scale[1]*h],u=Array.isArray(t),d=l.justify?ai[l.justify]:Ri(Array.isArray(t)?t[0]:t,l.textAlign||we),f=n&&o.lineWidth?o.lineWidth:0,g=u?t:t.split(` `).reduce(wl,[]),{width:p,height:m,widths:_,heights:x,lineWidths:S}=Mr(l,g),I=p+f,E=[],C=(I+2)*c[0],v=(m+f)*c[1],b={width:C<0?Math.floor(C):Math.ceil(C),height:v<0?Math.floor(v):Math.ceil(v),contextInstructions:E};(c[0]!=1||c[1]!=1)&&E.push("scale",c),n&&(E.push("strokeStyle",o.strokeStyle),E.push("lineWidth",f),E.push("lineCap",o.lineCap),E.push("lineJoin",o.lineJoin),E.push("miterLimit",o.miterLimit),E.push("setLineDash",[o.lineDash]),E.push("lineDashOffset",o.lineDashOffset)),i&&E.push("fillStyle",a.fillStyle),E.push("textBaseline","middle"),E.push("textAlign","center");const A=.5-d;let G=d*I+A*f;const j=[],N=[];let B=0,q=0,F=0,L=0,M;for(let D=0,z=g.length;Dt?t-h:r,I=o+c>e?e-c:o,E=g[3]+S*d[0]+g[1],C=g[0]+I*d[1]+g[2],v=_-g[3],b=x-g[0];(p||u!==0)&&(Et[0]=v,bt[0]=v,Et[1]=b,yt[1]=b,yt[0]=v+E,xt[0]=yt[0],xt[1]=b+C,bt[1]=xt[1]);let A;return u!==0?(A=zi(ti(),i,n,1,1,u,-i,-n),$t(A,Et),$t(A,yt),$t(A,xt),$t(A,bt),Di(Math.min(Et[0],yt[0],xt[0],bt[0]),Math.min(Et[1],yt[1],xt[1],bt[1]),Math.max(Et[0],yt[0],xt[0],bt[0]),Math.max(Et[1],yt[1],xt[1],bt[1]),Ht)):Di(Math.min(v,v+E),Math.min(b,b+C),Math.max(v,v+E),Math.max(b,b+C),Ht),f&&(_=Math.round(_),x=Math.round(x)),{drawImageX:_,drawImageY:x,drawImageW:S,drawImageH:I,originX:h,originY:c,declutterBox:{minX:Ht[0],minY:Ht[1],maxX:Ht[2],maxY:Ht[3],value:m},canvasTransform:A,scale:d}}replayImageOrLabel_(t,e,i,n,r,o,a){const l=!!(o||a),h=n.declutterBox,c=t.canvas,u=a?a[2]*n.scale[0]/2:0;return h.minX-u<=c.width/e&&h.maxX+u>=0&&h.minY-u<=c.height/e&&h.maxY+u>=0&&(l&&this.replayTextBackground_(t,Et,yt,xt,bt,o,a),Ar(t,n.canvasTransform,r,i,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0}fill_(t){if(this.alignFill_){const e=$t(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(e[0]%i,e[1]%i),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()}setStrokeStyle_(t,e){t.strokeStyle=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 r=this.textStates[e],o=this.createLabel(t,e,n,i),a=this.strokeStates[i],l=this.pixelRatio,h=Ri(Array.isArray(t)?t[0]:t,r.textAlign||we),c=ai[r.textBaseline||Qe],u=a&&a.lineWidth?a.lineWidth:0,d=o.width/l-2*r.scale[0],f=h*d+2*(.5-h)*u,g=c*o.height/l+2*(.5-c)*u;return{label:o,anchorX:f,anchorY:g}}execute_(t,e,i,n,r,o,a,l){let h;this.pixelCoordinates_&&hi(i,this.renderedTransform_)?h=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),h=ge(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),Or(this.renderedTransform_,i));let c=0;const u=n.length;let d=0,f,g,p,m,_,x,S,I,E,C,v,b,A=0,G=0,j=null,N=null;const B=this.coordinateCache_,q=this.viewRotation_,F=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,L={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:q},M=this.instructions!=n||this.overlaps?0:200;let D,z,V,tt;for(;cM&&(this.fill_(t),A=0),G>M&&(t.stroke(),G=0),!A&&!G&&(t.beginPath(),m=NaN,_=NaN),++c;break;case k.CIRCLE:d=w[1];const et=h[d],_t=h[d+1],di=h[d+2],fi=h[d+3],Pe=di-et,ut=fi-_t,Xt=Math.sqrt(Pe*Pe+ut*ut);t.moveTo(et+Xt,_t),t.arc(et,_t,Xt,0,2*Math.PI,!0),++c;break;case k.CLOSE_PATH:t.closePath(),++c;break;case k.CUSTOM:d=w[1],f=w[2];const Ge=w[3],gi=w[4],Be=w.length==6?w[5]:void 0;L.geometry=Ge,L.feature=D,c in B||(B[c]=[]);const Dt=B[c];Be?Be(h,d,f,2,Dt):(Dt[0]=h[d],Dt[1]=h[d+1],Dt.length=2),gi(Dt,L),++c;break;case k.DRAW_IMAGE:d=w[1],f=w[2],I=w[3],g=w[4],p=w[5];let P=w[6];const it=w[7],$=w[8],lt=w[9],Pt=w[10];let Gt=w[11];const _i=w[12];let ne=w[13];const ln=w[14],se=w[15];if(!I&&w.length>=20){E=w[19],C=w[20],v=w[21],b=w[22];const nt=this.drawLabelWithPointPlacement_(E,C,v,b);I=nt.label,w[3]=I;const jt=w[23];g=(nt.anchorX-jt)*this.pixelRatio,w[4]=g;const rt=w[24];p=(nt.anchorY-rt)*this.pixelRatio,w[5]=p,P=I.height,w[6]=P,ne=I.width,w[13]=ne}let mi;w.length>25&&(mi=w[25]);let pi,We,Ne;w.length>17?(pi=w[16],We=w[17],Ne=w[18]):(pi=Bt,We=!1,Ne=!1),Pt&&F?Gt+=q:!Pt&&!F&&(Gt-=q);let Ns=0;for(;d0){if(!o||f!=="Image"&&f!=="Text"||o.includes(E)){const G=(d[b]-3)/4,j=n-G%a,N=n-(G/a|0),B=r(E,C,j*j+N*N);if(B)return B}c.clearRect(0,0,a,a);break}}const p=Object.keys(this.executorsByZIndex_).map(Number);p.sort(Ze);let m,_,x,S,I;for(m=p.length-1;m>=0;--m){const E=p[m].toString();for(x=this.executorsByZIndex_[E],_=ki.length-1;_>=0;--_)if(f=ki[_],S=x[f],S!==void 0&&(I=S.executeHitDetection(c,l,i,g,u),I))return I}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const i=e[0],n=e[1],r=e[2],o=e[3],a=[i,n,i,o,r,o,r,n];return ge(a,0,8,2,t,a),a}isEmpty(){return pe(this.executorsByZIndex_)}execute(t,e,i,n,r,o,a){const l=Object.keys(this.executorsByZIndex_).map(Number);l.sort(Ze),this.maxExtent_&&(t.save(),this.clip(t,i)),o=o||ki;let h,c,u,d,f,g;for(a&&l.reverse(),h=0,c=l.length;he)break;let l=i[a];l||(l=[],i[a]=l),l.push(((s+r)*t+(s+o))*4+3),r>0&&l.push(((s-r)*t+(s+o))*4+3),o>0&&(l.push(((s+r)*t+(s-o))*4+3),r>0&&l.push(((s-r)*t+(s-o))*4+3))}const n=[];for(let r=0,o=i.length;ru*this.pixelRatio_),lineDashOffset:(o||wt)*this.pixelRatio_,lineJoin:a!==void 0?a:Qt,lineWidth:(l!==void 0?l:Se)*this.pixelRatio_,miterLimit:h!==void 0?h:Ce,strokeStyle:gt(i||xe)}}}setImageStyle(t){let e;if(!t||!(e=t.getSize())){this.image_=null;return}const i=t.getPixelRatio(this.pixelRatio_),n=t.getAnchor(),r=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_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const o=t.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/i,o[1]*this.pixelRatio_/i],this.imageWidth_=e[0]*i}setTextStyle(t){if(!t)this.text_="";else{const e=t.getFill();if(!e)this.textFillState_=null;else{const f=e.getColor();this.textFillState_={fillStyle:gt(f||Z)}}const i=t.getStroke();if(!i)this.textStrokeState_=null;else{const f=i.getColor(),g=i.getLineCap(),p=i.getLineDash(),m=i.getLineDashOffset(),_=i.getLineJoin(),x=i.getWidth(),S=i.getMiterLimit();this.textStrokeState_={lineCap:g!==void 0?g:Zt,lineDash:p||Ct,lineDashOffset:m||wt,lineJoin:_!==void 0?_:Qt,lineWidth:x!==void 0?x:Se,miterLimit:S!==void 0?S:Ce,strokeStyle:gt(f||xe)}}const n=t.getFont(),r=t.getOffsetX(),o=t.getOffsetY(),a=t.getRotateWithView(),l=t.getRotation(),h=t.getScaleArray(),c=t.getText(),u=t.getTextAlign(),d=t.getTextBaseline();this.textState_={font:n!==void 0?n:Vn,textAlign:u!==void 0?u:we,textBaseline:d!==void 0?d:Qe},this.text_=c!==void 0?Array.isArray(c)?c.reduce((f,g,p)=>f+=p%2?" ":g,""):c:"",this.textOffsetX_=r!==void 0?this.pixelRatio_*r:0,this.textOffsetY_=o!==void 0?this.pixelRatio_*o:0,this.textRotateWithView_=a!==void 0?a:!1,this.textRotation_=l!==void 0?l:0,this.textScale_=[this.pixelRatio_*h[0],this.pixelRatio_*h[1]]}}}const kl=Rl,ft=.5;function Fl(s,t,e,i,n,r,o){const a=s[0]*ft,l=s[1]*ft,h=At(a,l);h.imageSmoothingEnabled=!1;const c=h.canvas,u=new kl(h,ft,n,null,o),d=e.length,f=Math.floor((256*256*256-1)/d),g={};for(let m=1;m<=d;++m){const _=e[m-1],x=_.getStyleFunction()||i;if(!x)continue;let S=x(_,r);if(!S)continue;Array.isArray(S)||(S=[S]);const E=(m*f).toString(16).padStart(7,"#00000");for(let C=0,v=S.length;C{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const i=[this.context.canvas.width,this.context.canvas.height];$t(this.pixelTransform,i);const n=this.renderedCenter_,r=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,l=this.wrappedRenderedExtent_,h=this.getLayer(),c=[],u=i[0]*ft,d=i[1]*ft;c.push(this.getRenderTransform(n,r,o,ft,u,d,0).slice());const f=h.getSource(),g=a.getExtent();if(f.getWrapX()&&a.canWrapX()&&!ue(g,l)){let p=l[0];const m=ze(g);let _=0,x;for(;pg[2];)++_,x=m*_,c.push(this.getRenderTransform(n,r,o,ft,u,d,x).slice()),p-=m}this.hitDetectionImageData_=Fl(i,c,this.renderedFeatures_,h.getStyleFunction(),l,r,o)}e(Tl(t,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(t,e,i,n,r){if(!this.replayGroup_)return;const o=e.viewState.resolution,a=e.viewState.rotation,l=this.getLayer(),h={},c=function(f,g,p){const m=U(f),_=h[m];if(_){if(_!==!0&&p<_.distanceSq){if(p===0)return h[m]=!0,r.splice(r.lastIndexOf(_),1),n(f,l,g);_.geometry=g,_.distanceSq=p}}else{if(p===0)return h[m]=!0,n(f,l,g);r.push(h[m]={feature:f,layer:l,geometry:g,distanceSq:p,callback:n})}};let u;const d=[this.replayGroup_];return this.declutterExecutorGroup&&d.push(this.declutterExecutorGroup),d.some(f=>u=f.forEachFeatureAtCoordinate(t,o,a,i,c,f===this.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map(g=>g.value):null)),u}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 n=t.viewHints[je.ANIMATING],r=t.viewHints[je.INTERACTING],o=e.getUpdateWhileAnimating(),a=e.getUpdateWhileInteracting();if(this.ready&&!o&&n||!a&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const l=t.extent,h=t.viewState,c=h.projection,u=h.resolution,d=t.pixelRatio,f=e.getRevision(),g=e.getRenderBuffer();let p=e.getRenderOrder();p===void 0&&(p=Ml);const m=h.center.slice(),_=ji(l,g*u),x=_.slice(),S=[_.slice()],I=c.getExtent();if(i.getWrapX()&&c.canWrapX()&&!ue(I,t.extent)){const F=ze(I),L=Math.max(ze(_)/2,F);_[0]=I[0]-L,_[2]=I[2]+L,zr(m,c);const M=Vr(S[0],c);M[0]I[0]&&M[2]>I[2]&&S.push([M[0]-F,M[1],M[2]-F,M[3]])}if(this.ready&&this.renderedResolution_==u&&this.renderedRevision_==f&&this.renderedRenderOrder_==p&&ue(this.wrappedRenderedExtent_,_))return hi(this.renderedExtent_,x)||(this.hitDetectionImageData_=null,this.renderedExtent_=x),this.renderedCenter_=m,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const E=new Pn(Xi(u,d),_,u,d);let C;this.getLayer().getDeclutter()&&(C=new Pn(Xi(u,d),_,u,d));let v;for(let F=0,L=S.length;F{let L;const M=F.getStyleFunction()||e.getStyleFunction();if(M&&(L=M(F,u)),L){const D=this.renderFeature(F,b,L,E,v,C);A=A&&!D}},j=Hr(_),N=i.getFeaturesInExtent(j);p&&N.sort(p);for(let F=0,L=N.length;F=200&&a.status<300){const h=t.getType();let c;h=="json"||h=="text"?c=a.responseText:h=="xml"?(c=a.responseXML,c||(c=new DOMParser().parseFromString(a.responseText,"application/xml"))):h=="arraybuffer"&&(c=a.response),c?r(t.readFeatures(c,{extent:e,featureProjection:n}),t.readProjection(c)):o()}else o()},a.onerror=o,a.send()}function Xn(s,t){return function(e,i,n,r,o){const a=this;Jl(s,t,e,i,n,function(l,h){a.addFeatures(l),r!==void 0&&r(l)},o||$n)}}class It extends Kr{constructor(t,e,i){super(t),this.feature=e,this.features=i}}class ql extends $r{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:t.wrapX!==void 0?t.wrapX:!0}),this.on,this.once,this.un,this.loader_=$n,this.format_=t.format,this.overlaps_=t.overlaps===void 0?!0:t.overlaps,this.url_=t.url,t.loader!==void 0?this.loader_=t.loader:this.url_!==void 0&&(Lt(this.format_,"`format` must be set when `url` is set"),this.loader_=Xn(this.url_,this.format_)),this.strategy_=t.strategy!==void 0?t.strategy:$l;const e=t.useSpatialIndex!==void 0?t.useSpatialIndex:!0;this.featuresRtree_=e?new Yn:null,this.loadedExtentsRtree_=new Yn,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null;let i,n;Array.isArray(t.features)?n=t.features:t.features&&(i=t.features,n=i.getArray()),!e&&i===void 0&&(i=new Ur(n)),n!==void 0&&this.addFeaturesInternal(n),i!==void 0&&this.bindFeaturesCollection_(i)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=U(t);if(!this.addToIndex_(e,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(e,t);const i=t.getGeometry();if(i){const n=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(n,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new It(ct.ADDFEATURE,t))}setupChangeEvents_(t,e){this.featureChangeKeys_[t]=[Ke(e,Kt.CHANGE,this.handleFeatureChange_,this),Ke(e,Jr.PROPERTYCHANGE,this.handleFeatureChange_,this)]}addToIndex_(t,e){let i=!0;const n=e.getId();return n!==void 0&&(n.toString()in this.idIndex_?i=!1:this.idIndex_[n.toString()]=e),i&&(Lt(!(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 r=0,o=t.length;r{e||(e=!0,this.addFeature(i.element),e=!1)}),t.addEventListener(wn.REMOVE,i=>{e||(e=!0,this.removeFeature(i.element),e=!1)}),this.featuresCollection_=t}clear(t){if(t){for(const i in this.featureChangeKeys_)this.featureChangeKeys_[i].forEach(qe);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const i=n=>{this.removeFeatureInternal(n)};this.featuresRtree_.forEach(i);for(const n in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[n])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new It(ct.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(n){if(n.getGeometry().intersectsCoordinate(t))return e(n)})}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){if(i.getGeometry().intersectsExtent(t)){const r=e(i);if(r)return r}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),pe(this.nullGeometryFeatures_)||Mt(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,function(i){e.push(i)}),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);const n=qr(t,e);return[].concat(...n.map(r=>this.featuresRtree_.getInExtent(r)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const i=t[0],n=t[1];let r=null;const o=[NaN,NaN];let a=1/0;const l=[-1/0,-1/0,1/0,1/0];return e=e||Zr,this.featuresRtree_.forEachInExtent(l,function(h){if(e(h)){const c=h.getGeometry(),u=a;if(a=c.closestPointXY(i,n,o,a),a{--this.loadingExtentsCount_,this.dispatchEvent(new It(ct.FEATURESLOADEND,void 0,c))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new It(ct.FEATURESLOADERROR))}),n.insert(l,{extent:l.slice()}))}this.loading=this.loader_.length<4?!1:this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_;let i;e.forEachInExtent(t,function(n){if(Hn(n.extent,t))return i=n,!0}),i&&e.remove(i)}removeFeature(t){if(!t)return;const e=U(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){const e=U(t),i=this.featureChangeKeys_[e];if(!i)return;i.forEach(qe),delete this.featureChangeKeys_[e];const n=t.getId();return n!==void 0&&delete this.idIndex_[n.toString()],delete this.uidIndex_[e],this.dispatchEvent(new It(ct.REMOVEFEATURE,t)),t}removeFromIdIndex_(t){let e=!1;for(const i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],e=!0;break}return e}setLoader(t){this.loader_=t}setUrl(t){Lt(this.format_,"`format` must be set when `url` is set"),this.url_=t,this.setLoader(Xn(t,this.format_))}}const Eh=ql,Kl="@open-pioneer/map-navigation",Ds=Kn.bind(void 0,Kl),bh=R.forwardRef(function(t,e){const{mapId:i}=t,{containerProps:n}=Vi("initial-extent",t),{map:r}=Hi(i),o=Ds();function a(){const l=r?.initialExtent,h=r?.olMap;if(l&&h){const c=[l.xMin,l.yMin,l.xMax,l.yMax];h.getView().fit(c,{duration:200})}}return T.jsx(Zn,{label:o.formatMessage({id:"initial-extent.title"}),placement:"auto",openDelay:500,children:T.jsx(Ui,{className:"initial-extent-button",ref:e,"aria-label":o.formatMessage({id:"initial-extent.title"}),leftIcon:T.jsx(go,{}),onClick:a,iconSpacing:0,padding:0,...n})})}),Ih=R.forwardRef(function(t,e){return T.jsx(Ps,{zoomDirection:"in",ref:e,...t})}),vh=R.forwardRef(function(t,e){return T.jsx(Ps,{zoomDirection:"out",ref:e,...t})}),Ps=R.forwardRef(function(t,e){const{mapId:i,zoomDirection:n}=t,{map:r}=Hi(i),o=Ds(),{defaultClassName:a,buttonLabel:l,buttonIcon:h}=Zl(o,n),{containerProps:c}=Vi(Qn("zoom",a),t);function u(){const d=r?.olMap.getView();let f=d?.getZoom();d&&f!==void 0&&(n==="in"?++f:--f,d.animate({zoom:f,duration:200}))}return T.jsx(Zn,{label:l,placement:"auto",openDelay:500,children:T.jsx(Ui,{ref:e,"aria-label":l,leftIcon:h,onClick:u,iconSpacing:0,padding:0,...c})})});function Zl(s,t){switch(t){case"in":return{defaultClassName:"zoom-in",buttonLabel:s.formatMessage({id:"zoom-in.title"}),buttonIcon:T.jsx(mo,{})};case"out":return{defaultClassName:"zoom-out",buttonLabel:s.formatMessage({id:"zoom-out.title"}),buttonIcon:T.jsx(_o,{})}}}const Ql="@open-pioneer/toc",Gs=Kn.bind(void 0,Ql);function th(s){const{map:t,"aria-labelledby":e}=s,i=Gs(),n=oh(t);return n.length?Bs(n,i,{"aria-labelledby":e}):T.jsx(ts,{className:"toc-missing-layers","aria-labelledby":e,children:i.formatMessage({id:"missingLayers"})})}function Bs(s,t,e){const i=s.map(n=>T.jsx(eh,{layer:n,intl:t},n.id));return T.jsx(yo,{as:"ul",className:"toc-layer-list",listStyleType:"none",...e,children:i})}function eh(s){const{layer:t,intl:e}=s,i=sh(t),{isVisible:n,setVisible:r}=rh(t),o=ah(t);let a;return o?.length&&(a=Bs(o,e,{ml:4})),T.jsxs(Pi,{as:"li",className:Qn("toc-layer-item",`layer-${hh(t.id)}`),children:[T.jsxs(es,{className:"toc-layer-item-content",width:"100%",flexDirection:"row",align:"center",justifyContent:"space-between",gap:2,minHeight:10,children:[T.jsx(So,{isChecked:n,onChange:l=>r(l.target.checked),children:i}),t.description&&T.jsx(ih,{layer:t,title:i,intl:e})]}),a]})}function ih(s){const{layer:t,title:e,intl:i}=s,n=i.formatMessage({id:"descriptionLabel"}),r=nh(t);return T.jsxs(ls,{children:[T.jsx(as,{children:T.jsx(Ui,{className:"toc-layer-item-details-button","aria-label":n,borderRadius:"full",iconSpacing:0,padding:0,variant:"ghost",leftIcon:T.jsx(po,{})})}),T.jsx(fo,{children:T.jsxs(fs,{className:"toc-layer-item-details",overflowY:"auto",maxHeight:"400",children:[T.jsx(hs,{}),T.jsx(us,{}),T.jsx(os,{children:e}),T.jsx(cs,{children:r})]})})]})}function nh(s){const t=R.useCallback(()=>s.description,[s]),e=R.useCallback(i=>{const n=s.on("changed:description",i);return()=>n.destroy()},[s]);return R.useSyncExternalStore(e,t)}function sh(s){const t=R.useCallback(()=>s.title,[s]),e=R.useCallback(i=>{const n=s.on("changed:title",i);return()=>n.destroy()},[s]);return R.useSyncExternalStore(e,t)}function rh(s){const t=R.useCallback(()=>s.visible,[s]),e=R.useCallback(r=>{const o=s.on("changed:visible",r);return()=>o.destroy()},[s]),i=R.useSyncExternalStore(e,t),n=R.useCallback(r=>{s.setVisible(r)},[s]);return{isVisible:i,setVisible:n}}function oh(s){const t=R.useCallback(i=>{const n=s.layers.on("changed",i);return()=>n.destroy()},[s]),e=R.useCallback(()=>{let i=s.layers.getOperationalLayers({sortByDisplayOrder:!0})??[];return i=i.reverse().filter(lh),i},[s]);return Ws(t,e)}function ah(s){const t=R.useCallback(i=>{const n=s.sublayers?.on("changed",i);return()=>n?.destroy()},[s]),e=R.useCallback(()=>{if(!s.sublayers)return;let n=s.sublayers?.getSublayers({sortByDisplayOrder:!0});return n=n.reverse(),n},[s]);return Ws(t,e)}function Ws(s,t){const e=R.useRef(),i=R.useCallback(r=>{const o=s(()=>{e.current=void 0,r()});return()=>{e.current=void 0,o()}},[s]),n=R.useCallback(()=>{if(e.current)return e.current.value;const r=t();return e.current={value:r},r},[t]);return R.useSyncExternalStore(i,n)}function lh(s){return!(s.olLayer instanceof Qr)}function hh(s){return s.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}const Ti=2,Rh=s=>{const t=Gs(),{mapId:e,showBasemapSwitcher:i=!0,basemapSwitcherProps:n}=s,{containerProps:r}=Vi("toc",s),o=R.useId(),a=R.useId(),l=Hi(e);let h;switch(l.kind){case"loading":h=null;break;case"rejected":h=T.jsx(ts,{className:"toc-error",children:t.formatMessage({id:"error"})});break;case"resolved":{const c=i&&T.jsx(Pi,{className:"toc-basemap-switcher",children:T.jsx(En,{title:T.jsx(bn,{id:o,size:"sm",mb:Ti,children:t.formatMessage({id:"basemapsLabel"})}),children:T.jsx(xo,{mapId:e,"aria-labelledby":o,...n})})}),u=T.jsx(Pi,{className:"toc-operational-layers",children:T.jsx(En,{title:T.jsx(bn,{id:a,size:"sm",mb:Ti,children:t.formatMessage({id:"operationalLayerLabel"})}),children:T.jsx(th,{map:l.map,"aria-labelledby":a})})});h=T.jsxs(T.Fragment,{children:[c,u]});break}}return T.jsx(es,{...r,direction:"column",gap:Ti,children:h})};export{ll as B,tn as C,qo as F,yh as G,ft as H,bh as I,Bi as L,ps as M,Je as S,Rh as T,Eh as V,Ih as Z,Ch as a,ia as b,sa as c,Sh as d,Ko as e,_e as f,Ee as g,vh as h,Pn as i,Al as j,Wn as k,Fl as l,Tl as m,Jl as n,wh as o,na as p,_s as q,Nn as r,Zo as s,Ra as t,gs as u,ws as v,Ma as w}; diff --git a/openlayers-base-packages/assets/7033ed36aa8c.js b/openlayers-base-packages/assets/1241ef5f2dc5.js similarity index 97% rename from openlayers-base-packages/assets/7033ed36aa8c.js rename to openlayers-base-packages/assets/1241ef5f2dc5.js index 378be779a..7026a475f 100644 --- a/openlayers-base-packages/assets/7033ed36aa8c.js +++ b/openlayers-base-packages/assets/1241ef5f2dc5.js @@ -1 +1 @@ -import{d as v,f as m,e as x,o as B,j as i,h,Z as _,u as I,r as d}from"./49b2c148dcb3.js";import{g as C}from"./5091d4253a81.js";import{ah as j,ai as N}from"./c0d2fbcdd7fa.js";import{B as E}from"./fa35e3e86a4c.js";import{S as P}from"./dda37e0a503c.js";var[w,S]=v({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),L=m(function(e,a){const t=x("List",e),{children:n,styleType:r="none",stylePosition:o,spacing:c,...u}=B(e),y=C(n),p=c?{["& > *:not(style) ~ *:not(style)"]:{mt:c}}:{};return i.jsx(w,{value:t,children:i.jsx(h.ul,{ref:a,listStyleType:r,listStylePosition:o,role:"list",__css:{...t.container,...p},...u,children:y})})});L.displayName="List";var A=m((s,e)=>{const{as:a,...t}=s;return i.jsx(L,{ref:e,as:"ol",styleType:"decimal",marginStart:"1em",...t})});A.displayName="OrderedList";var O=m(function(e,a){const{as:t,...n}=e;return i.jsx(L,{ref:a,as:"ul",styleType:"initial",marginStart:"1em",...n})});O.displayName="UnorderedList";var M=m(function(e,a){const t=S();return i.jsx(h.li,{ref:a,...e,__css:t.item})});M.displayName="ListItem";var T=m(function(e,a){const t=S();return i.jsx(_,{ref:a,role:"presentation",...e,__css:t.icon})});T.displayName="ListIcon";const U="@open-pioneer/basemap-switcher",k=I.bind(void 0,U),f="___NO_BASEMAP___",F=s=>{const e=k(),{mapId:a,allowSelectingEmptyBasemap:t,"aria-label":n,"aria-labelledby":r}=s,{containerProps:o}=j("basemap-switcher",s),c=e.formatMessage({id:"emptyBasemapLabel"}),{map:u}=N(a),y=R(u),{selectOptions:b,selectedId:p}=d.useMemo(()=>D({baseLayers:y,allowSelectingEmptyBasemap:t,emptyBasemapLabel:c}),[y,t,c]),g=l=>{u?.layers.activateBaseLayer(l===f?void 0:l)};return i.jsx(E,{...o,children:u?i.jsx(P,{"aria-label":n,"aria-labelledby":r,className:"basemap-switcher-select",value:p,onChange:l=>g(l.target.value),children:b.map(l=>i.jsx("option",{value:l.id,children:l.label},l.id))}):""})};function R(s){const e=d.useRef(),a=d.useCallback(n=>{if(e.current=void 0,!s)return()=>{};const r=s.layers.on("changed",()=>{e.current=void 0,n()});return()=>r.destroy()},[s]),t=d.useCallback(()=>e.current?e.current:e.current=s?.layers.getBaseLayers()??[],[s]);return d.useSyncExternalStore(a,t)}function D(s){const{baseLayers:e=[],allowSelectingEmptyBasemap:a=!1,emptyBasemapLabel:t}=s,n=e.map(o=>({id:o.id,label:o.title}));let r=e.find(o=>o.visible)?.id;return(a||r==null)&&n.push(G(t)),r==null&&(r=f),{selectOptions:n,selectedId:r}}function G(s){return{id:f,label:s}}export{F as B,L,O as U,M as a}; +import{d as v,f as m,e as x,o as B,j as i,h,Z as _,u as I,r as d}from"./49b2c148dcb3.js";import{g as C}from"./5091d4253a81.js";import{ah as j,ai as N}from"./67c4f96ddb71.js";import{B as E}from"./fa35e3e86a4c.js";import{S as P}from"./dda37e0a503c.js";var[w,S]=v({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),L=m(function(e,a){const t=x("List",e),{children:n,styleType:r="none",stylePosition:o,spacing:c,...u}=B(e),y=C(n),p=c?{["& > *:not(style) ~ *:not(style)"]:{mt:c}}:{};return i.jsx(w,{value:t,children:i.jsx(h.ul,{ref:a,listStyleType:r,listStylePosition:o,role:"list",__css:{...t.container,...p},...u,children:y})})});L.displayName="List";var A=m((s,e)=>{const{as:a,...t}=s;return i.jsx(L,{ref:e,as:"ol",styleType:"decimal",marginStart:"1em",...t})});A.displayName="OrderedList";var O=m(function(e,a){const{as:t,...n}=e;return i.jsx(L,{ref:a,as:"ul",styleType:"initial",marginStart:"1em",...n})});O.displayName="UnorderedList";var M=m(function(e,a){const t=S();return i.jsx(h.li,{ref:a,...e,__css:t.item})});M.displayName="ListItem";var T=m(function(e,a){const t=S();return i.jsx(_,{ref:a,role:"presentation",...e,__css:t.icon})});T.displayName="ListIcon";const U="@open-pioneer/basemap-switcher",k=I.bind(void 0,U),f="___NO_BASEMAP___",F=s=>{const e=k(),{mapId:a,allowSelectingEmptyBasemap:t,"aria-label":n,"aria-labelledby":r}=s,{containerProps:o}=j("basemap-switcher",s),c=e.formatMessage({id:"emptyBasemapLabel"}),{map:u}=N(a),y=R(u),{selectOptions:b,selectedId:p}=d.useMemo(()=>D({baseLayers:y,allowSelectingEmptyBasemap:t,emptyBasemapLabel:c}),[y,t,c]),g=l=>{u?.layers.activateBaseLayer(l===f?void 0:l)};return i.jsx(E,{...o,children:u?i.jsx(P,{"aria-label":n,"aria-labelledby":r,className:"basemap-switcher-select",value:p,onChange:l=>g(l.target.value),children:b.map(l=>i.jsx("option",{value:l.id,children:l.label},l.id))}):""})};function R(s){const e=d.useRef(),a=d.useCallback(n=>{if(e.current=void 0,!s)return()=>{};const r=s.layers.on("changed",()=>{e.current=void 0,n()});return()=>r.destroy()},[s]),t=d.useCallback(()=>e.current?e.current:e.current=s?.layers.getBaseLayers()??[],[s]);return d.useSyncExternalStore(a,t)}function D(s){const{baseLayers:e=[],allowSelectingEmptyBasemap:a=!1,emptyBasemapLabel:t}=s,n=e.map(o=>({id:o.id,label:o.title}));let r=e.find(o=>o.visible)?.id;return(a||r==null)&&n.push(G(t)),r==null&&(r=f),{selectOptions:n,selectedId:r}}function G(s){return{id:f,label:s}}export{F as B,L,O as U,M as a}; diff --git a/openlayers-base-packages/assets/4700028c3f2c.js b/openlayers-base-packages/assets/4700028c3f2c.js new file mode 100644 index 000000000..bd26aee0d --- /dev/null +++ b/openlayers-base-packages/assets/4700028c3f2c.js @@ -0,0 +1 @@ +const e=JSON.parse('{"ol-map":{"basemapLabel":"Select basemap:","tocTitle":"Table of contents","measurementTitle":"Measurement","overviewMapTitle":"Overview map","ariaLabel.header":"Header bar","ariaLabel.footer":"Base bar with scale information, spatial reference system and coordinate display","ariaLabel.map":"Map. Use the arrow keys to move the map. Zoom in with the plus button and zoom out with the minus button.","ariaLabel.toolbar":"Maptools"},"@open-pioneer/toc":{"basemapsLabel":"Basemaps","descriptionLabel":"Layer description","operationalLayerLabel":"Operational layers","missingLayers":"There are no layers to display.","error":"Error while creating map content."},"@open-pioneer/measurement":{"measurementLabel":"Mode","distance":"Distance","area":"Area","deleteMeasurementLabel":"Delete measurements","measurementInfoText":"Click in the map to start a measurement.","tooltips.help":"Click to start measuring.","tooltips.continue":"Double click to end the measurement."},"@open-pioneer/experimental-layout-sidebar":{"toggle.expand":"Expand","toggle.collapse":"Collapse"},"@open-pioneer/map-navigation":{"initial-extent.title":"Zoom to initial extent","zoom-in.title":"Zoom in","zoom-out.title":"Zoom out"},"@open-pioneer/basemap-switcher":{"emptyBasemapLabel":"Without basemap"}}');export{e as default}; diff --git a/openlayers-base-packages/assets/486860ac05a9.js b/openlayers-base-packages/assets/486860ac05a9.js new file mode 100644 index 000000000..b74a50748 --- /dev/null +++ b/openlayers-base-packages/assets/486860ac05a9.js @@ -0,0 +1 @@ +const e=JSON.parse('{"ol-map":{"basemapLabel":"Hintergrundkarte auswählen: ","tocTitle":"Karteninhalt","measurementTitle":"Messen","overviewMapTitle":"Übersichtskarte","ariaLabel.header":"Kopfleiste","ariaLabel.footer":"Fussleiste mit Maßstabsangabe, Raumbezugssystem und Koordinatenanzeige","ariaLabel.map":"Karte. Mit den Pfeiltasten kannst du die Karte bewegen. Mit der Plus Taste hineinzoomen und mit der Minus Taste herauszoomen.","ariaLabel.toolbar":"Kartenwerkzeuge"},"@open-pioneer/toc":{"basemapsLabel":"Hintergrundkarten","descriptionLabel":"Layer Beschreibung","operationalLayerLabel":"Layer","missingLayers":"Es sind keine Layer vorhanden.","error":"Beim Erstellen des Karteninhalts ist ein Fehler aufgetreten."},"@open-pioneer/measurement":{"measurementLabel":"Modus","distance":"Strecke","area":"Fläche","deleteMeasurementLabel":"Messungen löschen","measurementInfoText":"Klicken Sie in die Karte, um eine Messung zu beginnen.","tooltips.help":"Klicken, um mit der Messung zu beginnen.","tooltips.continue":"Doppelt klicken, um die Messung zu beenden."},"@open-pioneer/experimental-layout-sidebar":{"toggle.expand":"Ausklappen","toggle.collapse":"Einklappen"},"@open-pioneer/map-navigation":{"initial-extent.title":"Zoom auf initiale Ausdehnung","zoom-in.title":"Vergrößern","zoom-out.title":"Verkleinern"},"@open-pioneer/basemap-switcher":{"emptyBasemapLabel":"Ohne Hintergrundkarte"}}');export{e as default}; diff --git a/openlayers-base-packages/assets/493dc123a2d2.js b/openlayers-base-packages/assets/493dc123a2d2.js deleted file mode 100644 index 86958f713..000000000 --- a/openlayers-base-packages/assets/493dc123a2d2.js +++ /dev/null @@ -1 +0,0 @@ -const e=JSON.parse('{"ol-map":{"basemapLabel":"Hintergrundkarte auswählen: ","tocTitle":"Karteninhalt","measurementTitle":"Messen","ariaLabel.header":"Kopfleiste","ariaLabel.footer":"Fussleiste mit Maßstabsangabe, Raumbezugssystem und Koordinatenanzeige","ariaLabel.map":"Karte. Mit den Pfeiltasten kannst du die Karte bewegen. Mit der Plus Taste hineinzoomen und mit der Minus Taste herauszoomen.","ariaLabel.toolbar":"Kartenwerkzeuge"},"@open-pioneer/toc":{"basemapsLabel":"Hintergrundkarten","descriptionLabel":"Layer Beschreibung","operationalLayerLabel":"Layer","missingLayers":"Es sind keine Layer vorhanden.","error":"Beim Erstellen des Karteninhalts ist ein Fehler aufgetreten."},"@open-pioneer/measurement":{"measurementLabel":"Modus","distance":"Strecke","area":"Fläche","deleteMeasurementLabel":"Messungen löschen","measurementInfoText":"Klicken Sie in die Karte, um eine Messung zu beginnen.","tooltips.help":"Klicken, um mit der Messung zu beginnen.","tooltips.continue":"Doppelt klicken, um die Messung zu beenden."},"@open-pioneer/experimental-layout-sidebar":{"toggle.expand":"Ausklappen","toggle.collapse":"Einklappen"},"@open-pioneer/map-navigation":{"initial-extent.title":"Zoom auf initiale Ausdehnung","zoom-in.title":"Vergrößern","zoom-out.title":"Verkleinern"},"@open-pioneer/basemap-switcher":{"emptyBasemapLabel":"Ohne Hintergrundkarte"}}');export{e as default}; diff --git a/openlayers-base-packages/assets/662c8a6b4d1f.js b/openlayers-base-packages/assets/662c8a6b4d1f.js deleted file mode 100644 index 7017754b6..000000000 --- a/openlayers-base-packages/assets/662c8a6b4d1f.js +++ /dev/null @@ -1,2 +0,0 @@ -var Ie=(r,e,t)=>{if(!e.has(r))throw TypeError("Cannot "+t)};var f=(r,e,t)=>(Ie(r,e,"read from private field"),t?t.call(r):e.get(r)),S=(r,e,t)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,t)},x=(r,e,t,s)=>(Ie(r,e,"write to private field"),s?s.call(r,t):e.set(r,t),t);var re=(r,e,t)=>(Ie(r,e,"access private method"),t);import{f as Wt,j as u,c as Ut,r as b,a as Vt,u as fe,B as ot,F as Bt,b as $t}from"./49b2c148dcb3.js";import{L as qt,C as Ht,g as at,f as He,V as Ke,i as lt,I as C,a as Kt,c as Yt,b as Q,d as J,e as Ye,m as Xt,t as Zt,h as ct,j as ge,k as ht,l as dt,n as ut,T as Qt,r as Jt,o as gt,E as Ge,u as pt,p as es,S as ts,q as ss,s as Xe,v as is,w as oe,x as mt,B as ft,y as _t,z as yt,A as Ze,D as ns,F as Qe,G as rs,H as os,J as Oe,K as X,M as A,N as bt,O as as,P as ls,Q as cs,R as hs,U as ds,W as us,X as gs,Y as ps,Z as ms,_ as Je,$ as fs,a0 as _s,a1 as et,a2 as ys,a3 as bs,a4 as k,a5 as ws,a6 as vs,a7 as wt,a8 as Te,a9 as tt,aa as _e,ab as xs,ac as vt,ad as Ss,ae as Cs,af as Es,ag as st,ah as ze,ai as ye,aj as Is,ak as Ts,al as Ps,am as ks,an as Ls,ao as Ms,ap as Rs,aq as Ds,ar as Fs,as as Os,at as As,au as Ns,av as js,aw as it}from"./c0d2fbcdd7fa.js";import{a as xt,W as Gs,b as zs}from"./d9e8a3de521c.js";import{E as Ws,F as ae}from"./adc90c48e771.js";import{B as D,T as Pe,S as ke}from"./fa35e3e86a4c.js";import{V as be,G as St,a as we,F as K,L as G,M as Us,b as Ct,c as Et,d as Vs,e as Bs,t as $s,S as pe,f as Z,g as Ae,C as qs,T as Hs,I as Ks,Z as Ys,h as Xs}from"./cccb52663858.js";import{T as We,F as Zs}from"./5091d4253a81.js";import{S as Qs,F as Js}from"./5697241972e7.js";import{S as ei}from"./dda37e0a503c.js";import{G as It}from"./37c62c6c4df6.js";import"./7033ed36aa8c.js";import"./f3ffe551a463.js";var Tt=Wt((r,e)=>u.jsx(Qs,{align:"center",...r,direction:"row",ref:e}));Tt.displayName="HStack";function Pt(r,e){const t=(""+r).split("."),s=(""+e).split(".");for(let i=0;io)return 1;if(o>n)return-1}return 0}class ti extends qt{constructor(e){e=e||{},super(e)}}const si=ti;class ii extends Ht{constructor(e){super(e),this.image_=null}getImage(){return this.image_?this.image_.getImage():null}prepareFrame(e){const t=e.layerStatesArray[e.layerIndex],s=e.pixelRatio,i=e.viewState,n=i.resolution,o=this.getLayer().getSource(),a=e.viewHints;let l=e.extent;if(t.extent!==void 0&&(l=at(l,He(t.extent,i.projection))),!a[Ke.ANIMATING]&&!a[Ke.INTERACTING]&&!lt(l))if(o){const h=i.projection,c=o.getImage(l,n,s,h);c&&(this.loadImage(c)?this.image_=c:c.getState()===C.EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_}getData(e){const t=this.frameState;if(!t)return null;const s=this.getLayer(),i=Kt(t.pixelToCoordinateTransform,e.slice()),n=s.getExtent();if(n&&!Yt(n,i))return null;const o=this.image_.getExtent(),a=this.image_.getImage(),l=Q(o),h=Math.floor(a.width*((i[0]-o[0])/l));if(h<0||h>=a.width)return null;const c=J(o),d=Math.floor(a.height*((o[3]-i[1])/c));return d<0||d>=a.height?null:this.getImageData(a,h,d)}renderFrame(e,t){const s=this.image_,i=s.getExtent(),n=s.getResolution(),[o,a]=Array.isArray(n)?n:[n,n],l=s.getPixelRatio(),h=e.layerStatesArray[e.layerIndex],c=e.pixelRatio,d=e.viewState,p=d.center,g=d.resolution,m=c*o/(g*l),_=c*a/(g*l),y=e.extent,P=d.resolution,I=d.rotation,v=Math.round(Q(y)/P*c),$=Math.round(J(y)/P*c);Ye(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/c,1/c,I,-v/2,-$/2),Xt(this.inversePixelTransform,this.pixelTransform);const xe=Zt(this.pixelTransform);this.useContainer(t,xe,this.getBackground(e));const E=this.context,O=E.canvas;O.width!=v||O.height!=$?(O.width=v,O.height=$):this.containerReused||E.clearRect(0,0,v,$);let Se=!1,Ce=!0;if(h.extent){const H=He(h.extent,d.projection);Ce=ct(H,e.extent),Se=Ce&&!ge(H,e.extent),Se&&this.clipUnrotated(E,e,H)}const q=s.getImage(),ne=Ye(this.tempTransform,v/2,$/2,m,_,0,l*(i[0]-p[0])/o,l*(p[1]-i[3])/a);this.renderedResolution=a*c/l;const Be=q.width*ne[0],$e=q.height*ne[3];if(this.getLayer().getSource().getInterpolate()||(E.imageSmoothingEnabled=!1),this.preRender(E,e),Ce&&Be>=.5&&$e>=.5){const H=ne[4],zt=ne[5],Ee=h.opacity;let qe;Ee!==1&&(qe=E.globalAlpha,E.globalAlpha=Ee),E.drawImage(q,0,0,+q.width,+q.height,H,zt,Be,$e),Ee!==1&&(E.globalAlpha=qe)}return this.postRender(E,e),Se&&E.restore(),E.imageSmoothingEnabled=!0,xe!==O.style.transform&&(O.style.transform=xe),this.container}}const ni=ii;class ri extends si{constructor(e){super(e)}createRenderer(){return new ni(this)}getData(e){return super.getData(e)}}const oi=ri;function Ne(r){return Array.isArray(r)?Math.min(...r):r}class ai extends ht{constructor(e,t,s,i,n,o,a){let l=e.getExtent();l&&e.canWrapX()&&(l=l.slice(),l[0]=-1/0,l[2]=1/0);let h=t.getExtent();h&&t.canWrapX()&&(h=h.slice(),h[0]=-1/0,h[2]=1/0);const c=h?at(s,h):s,d=dt(c),p=ut(e,t,d,i),g=es,m=new Qt(e,t,c,l,p*g,i),_=m.calculateSourceExtent(),y=lt(_)?null:o(_,p,n),P=y?C.IDLE:C.EMPTY,I=y?y.getPixelRatio():1;super(s,i,I,P),this.targetProj_=t,this.maxSourceExtent_=l,this.triangulation_=m,this.targetResolution_=i,this.targetExtent_=s,this.sourceImage_=y,this.sourcePixelRatio_=I,this.interpolate_=a,this.canvas_=null,this.sourceListenerKey_=null}disposeInternal(){this.state==C.LOADING&&this.unlistenSource_(),super.disposeInternal()}getImage(){return this.canvas_}getProjection(){return this.targetProj_}reproject_(){const e=this.sourceImage_.getState();if(e==C.LOADED){const t=Q(this.targetExtent_)/this.targetResolution_,s=J(this.targetExtent_)/this.targetResolution_;this.canvas_=Jt(t,s,this.sourcePixelRatio_,Ne(this.sourceImage_.getResolution()),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=e,this.changed()}load(){if(this.state==C.IDLE){this.state=C.LOADING,this.changed();const e=this.sourceImage_.getState();e==C.LOADED||e==C.ERROR?this.reproject_():(this.sourceListenerKey_=gt(this.sourceImage_,Ge.CHANGE,function(t){const s=this.sourceImage_.getState();(s==C.LOADED||s==C.ERROR)&&(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}}unlistenSource_(){pt(this.sourceListenerKey_),this.sourceListenerKey_=null}}const li=ai,R=4,Le={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"};class ci extends ft{constructor(e,t){super(e),this.image=t}}class hi extends ts{constructor(e){super({attributions:e.attributions,projection:e.projection,state:e.state,interpolate:e.interpolate!==void 0?e.interpolate:!0}),this.on,this.once,this.un,this.loader=e.loader||null,this.resolutions_=e.resolutions!==void 0?e.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0,this.image=null,this.wantedExtent_,this.wantedResolution_,this.static_=e.loader?e.loader.length===0:!1}getResolutions(){return this.resolutions_}setResolutions(e){this.resolutions_=e}findNearestResolution(e){const t=this.getResolutions();if(t){const s=ss(t,e,0);e=t[s]}return e}getImage(e,t,s,i){const n=this.getProjection();if(!n||!i||Xe(n,i))return n&&(i=n),this.getImageInternal(e,t,s,i);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Xe(this.reprojectedImage_.getProjection(),i)&&this.reprojectedImage_.getResolution()==t&&is(this.reprojectedImage_.getExtent(),e))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new li(n,i,e,t,s,(o,a,l)=>this.getImageInternal(o,a,l,n),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}getImageInternal(e,t,s,i){if(this.loader){const n=kt(e,t,s,1),o=this.findNearestResolution(t);if(this.image&&(this.static_||(this.wantedExtent_&&ge(this.wantedExtent_,n)||ge(this.image.getExtent(),n))&&(this.wantedResolution_&&Ne(this.wantedResolution_)===o||Ne(this.image.getResolution())===o)))return this.image;this.wantedExtent_=n,this.wantedResolution_=o,this.image=new ht(n,o,s,this.loader),this.image.addEventListener(Ge.CHANGE,this.handleImageChange.bind(this))}return this.image}handleImageChange(e){const t=e.target;let s;switch(t.getState()){case C.LOADING:this.loading=!0,s=Le.IMAGELOADSTART;break;case C.LOADED:this.loading=!1,s=Le.IMAGELOADEND;break;case C.ERROR:this.loading=!1,s=Le.IMAGELOADERROR;break;default:return}this.hasListener(s)&&this.dispatchEvent(new ci(s,t))}}function di(r,e){r.getImage().src=e}function kt(r,e,t,s){const i=e/t,n=dt(r),o=oe(Q(r)/i,R),a=oe(J(r)/i,R),l=oe((s-1)*o/2,R),h=o+2*l,c=oe((s-1)*a/2,R),d=a+2*c;return mt(n,i,0,[h,d])}const ui=hi,Lt="1.3.0";function Mt(r,e,t,s,i){i.WIDTH=t[0],i.HEIGHT=t[1];const n=s.getAxisOrientation();let o;const a=Pt(i.VERSION,"1.3")>=0;return i[a?"CRS":"SRS"]=s.getCode(),a&&n.substr(0,2)=="ne"?o=[e[1],e[0],e[3],e[2]]:o=e,i.BBOX=o.join(","),xt(r,i)}function gi(r,e,t,s,i,n,o){n=Object.assign({REQUEST:"GetMap"},n);const a=e/t,l=[Ze(Q(r)/a,R),Ze(J(r)/a,R)];if(t!=1)switch(o){case"geoserver":const c=90*t+.5|0;"FORMAT_OPTIONS"in n?n.FORMAT_OPTIONS+=";dpi:"+c:n.FORMAT_OPTIONS="dpi:"+c;break;case"mapserver":n.MAP_RESOLUTION=90*t;break;case"carmentaserver":case"qgis":n.DPI=90*t;break;default:throw new Error("Unknown `serverType` configured")}return Mt(i,r,l,s,n)}function Rt(r,e){return Object.assign({REQUEST:e,SERVICE:"WMS",VERSION:Lt,FORMAT:"image/png",STYLES:"",TRANSPARENT:!0},r)}function pi(r){const e=r.hidpi===void 0?!0:r.hidpi,t=_t(r.projection||"EPSG:3857"),s=r.ratio||1.5,i=r.load||yt;return(n,o,a)=>{n=kt(n,o,a,s),a!=1&&(!e||r.serverType===void 0)&&(a=1);const l=gi(n,o,a,t,r.url,Rt(r.params,"GetMap"),r.serverType),h=new Image;return r.crossOrigin!==null&&(h.crossOrigin=r.crossOrigin),i(h,l).then(c=>({image:c,extent:n,pixelRatio:a}))}}const nt=[101,101];class mi extends ui{constructor(e){e=e||{},super({attributions:e.attributions,interpolate:e.interpolate,projection:e.projection,resolutions:e.resolutions}),this.crossOrigin_=e.crossOrigin!==void 0?e.crossOrigin:null,this.url_=e.url,this.imageLoadFunction_=e.imageLoadFunction!==void 0?e.imageLoadFunction:di,this.params_=e.params,this.serverType_=e.serverType,this.hidpi_=e.hidpi!==void 0?e.hidpi:!0,this.renderedRevision_=0,this.ratio_=e.ratio!==void 0?e.ratio:1.5}getFeatureInfoUrl(e,t,s,i){if(this.url_===void 0)return;const n=_t(s),o=this.getProjection();o&&o!==n&&(t=ut(o,n,e,t),e=ns(e,n,o));const a=mt(e,t,0,nt),l={QUERY_LAYERS:this.params_.LAYERS};Object.assign(l,Rt(this.params_,"GetFeatureInfo"),i);const h=Qe((e[0]-a[0])/t,R),c=Qe((a[3]-e[1])/t,R),d=Pt(l.VERSION,"1.3")>=0;return l[d?"I":"X"]=h,l[d?"J":"Y"]=c,Mt(this.url_,a,nt,o||n,l)}getLegendUrl(e,t){if(this.url_===void 0)return;const s={SERVICE:"WMS",VERSION:Lt,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(t===void 0||t.LAYER===void 0){const i=this.params_.LAYERS;if(!(!Array.isArray(i)||i.length===1))return;s.LAYER=i}if(e!==void 0){const i=this.getProjection()?this.getProjection().getMetersPerUnit():1,n=28e-5;s.SCALE=e*i/n}return Object.assign(s,t),xt(this.url_,s)}getParams(){return this.params_}getImageInternal(e,t,s,i){return this.url_===void 0?null:(this.loader||(this.loader=pi({crossOrigin:this.crossOrigin_,params:this.params_,projection:i,serverType:this.serverType_,hidpi:this.hidpi_,url:this.url_,ratio:this.ratio_,load:(n,o)=>(this.image.setImage(n),this.imageLoadFunction_(this.image,o),yt(n))})),super.getImageInternal(e,t,s,i))}getImageLoadFunction(){return this.imageLoadFunction_}getUrl(){return this.url_}setImageLoadFunction(e){this.imageLoadFunction_=e,this.changed()}setUrl(e){e!=this.url_&&(this.url_=e,this.loader=null,this.changed())}updateParams(e){Object.assign(this.params_,e),this.changed()}changed(){this.image=null,super.changed()}}const fi=mi;function _i(r){let e=!1,t=setTimeout(()=>{e=!0,t=void 0,r()});return{reschedule(){return!e},cancel(){t&&clearTimeout(t)}}}var L;class Dt extends Ws{constructor(t){super();S(this,L,void 0);x(this,L,t)}destroy(){for(const t of f(this,L))t.destroy();x(this,L,[])}getSublayers(t){return f(this,L).slice()}__getRawSublayers(){return f(this,L)}}L=new WeakMap;const yi=Ut("map:WMSLayer");var ee,z,W,U,V,te,je,me,Ft;class bi extends rs{constructor(t){const s=new oi;super({...t,olLayer:s});S(this,te);S(this,me);S(this,ee,void 0);S(this,z,void 0);S(this,W,void 0);S(this,U,void 0);S(this,V,void 0);const i=new fi({...t.sourceOptions,url:t.url,params:{...t.sourceOptions?.params}});x(this,ee,t.url),x(this,V,i),x(this,U,s),x(this,z,new Dt(Ot(t.sublayers))),re(this,te,je).call(this)}get url(){return f(this,ee)}get sublayers(){return f(this,z)}__attach(t){super.__attach(t);for(const s of f(this,z).getSublayers())s.__attach(t,this,this)}__updateSublayerVisibility(){f(this,W)?.reschedule()||x(this,W,_i(()=>{try{re(this,te,je).call(this),x(this,W,void 0)}catch(t){yi.error(`Failed to update sublayer visibility on WMS layer '${this.id}'.`,t)}}))}}ee=new WeakMap,z=new WeakMap,W=new WeakMap,U=new WeakMap,V=new WeakMap,te=new WeakSet,je=function(){const t=re(this,me,Ft).call(this);f(this,V).updateParams({LAYERS:t});const s=t.length===0?null:f(this,V);f(this,U).getSource()!==s&&f(this,U).setSource(s)},me=new WeakSet,Ft=function(){const t=[],s=i=>{if(!i.visible)return;const n=i.sublayers.__getRawSublayers();if(n.length)for(const o of n)s(o);else t.push(i.name)};for(const i of this.sublayers.__getRawSublayers())s(i);return t};var F,M,se,ie,B;class wi extends os{constructor(t){super(t);S(this,F,void 0);S(this,M,void 0);S(this,se,void 0);S(this,ie,void 0);S(this,B,void 0);x(this,se,t.name),x(this,B,t.visible??!0),x(this,ie,new Dt(Ot(t.sublayers)))}get name(){return f(this,se)}get sublayers(){return f(this,ie)}get parent(){const t=f(this,F);if(!t)throw new Error(`WMS sublayer ${this.id} has not been attached to its parent yet.`);return t}get parentLayer(){const t=f(this,M);if(!t)throw new Error(`WMS sublayer ${this.id} has not been attached to its parent yet.`);return t}__attach(t,s,i){if(super.__attachToMap(t),f(this,F))throw new Error(`WMS sublayer '${this.id}' has already been attached to parent '${f(this,F).id}'`);if(x(this,F,i),f(this,M))throw new Error(`WMS sublayer '${this.id}' has already been attached to parent layer '${f(this,M).id}'`);x(this,M,s);for(const n of this.sublayers.__getRawSublayers())n.__attach(t,s,this)}get visible(){return f(this,B)}setVisible(t){this.visible!==t&&(x(this,B,t),f(this,M)?.__updateSublayerVisibility(),this.__emitChangeEvent("changed:visible"))}}F=new WeakMap,M=new WeakMap,se=new WeakMap,ie=new WeakMap,B=new WeakMap;function Ot(r=[]){const e=[];try{for(const t of r)e.push(new wi(t));return e}catch(t){for(;e.length;)e.pop()?.destroy();throw new Error("Failed to construct sublayers.",{cause:t})}}const At=bi,vi=25.4/.28,xi=39.37;function Ue(r){return Ve(r,Si,Ci)}function Si(r){return r.getView()}function Ci(r,e){return r.on("change:view",e)}function Nt(r){return Ue(r)?.getProjection()}function Ei(r){const e=Ue(r);return Ve(e,Ii,Ti)}function Ii(r){return r.getResolution()}function Ti(r,e){return r.on("change:resolution",e)}function Pi(r){const e=Ue(r);return Ve(e,ki,Li)}function ki(r){return r.getCenter()}function Li(r,e){return r.on("change:center",e)}function Mi(r){const e=Pi(r),t=Ei(r),s=Nt(r);return b.useMemo(()=>{if(s==null||t==null||e==null)return;const n=Oe(s,t,e);return Math.round(n*xi*vi)},[s,t,e])}function Ve(r,e,t){const s=b.useCallback(()=>r?e(r):void 0,[r,e]),i=b.useCallback(n=>{if(!r)return()=>{};const o=t(r,n);return()=>X(o)},[r,t]);return b.useSyncExternalStore(i,s)}const T="main";class Ri{mapId=T;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},projection:"EPSG:25832",layers:[new A({id:"topplus_open",title:"TopPlus Open",isBaseLayer:!0,visible:!0,olLayer:Me("web")}),new A({id:"topplus_open_grau",title:"TopPlus Open (Grau)",isBaseLayer:!0,visible:!1,olLayer:Me("web_grau")}),new A({id:"topplus_open_light",title:"TopPlus Open (Light)",isBaseLayer:!0,visible:!1,olLayer:Me("web_light")}),new A({title:"OSM",visible:!1,isBaseLayer:!0,olLayer:new bt({source:new as})}),new A({title:"Haltestellen Stadt Rostock",visible:!0,description:"Haltestellen des öffentlichen Personenverkehrs in der Hanse- und Universitätsstadt Rostock.",olLayer:Di()}),new A({title:"Kindertagesstätten",visible:!0,olLayer:Fi()}),Oi(),Ai()]}}}function Me(r){const e=[-380316598427299e-8,880590808284866e-8],t=[4891.96981025128,2445.98490512564,1222.99245256282,611.49622628141,305.748113140705,152.874056570353,76.4370282851763,38.2185141425881,19.1092570712941,9.55462853564703,4.77731426782352,2.38865713391176,1.19432856695588,.59716428347794],s=new Array(t.length);for(let n=0;nDatenquellen`});return new bt({source:i})}function Di(){const r=new be({url:"https://geo.sv.rostock.de/download/opendata/haltestellen/haltestellen.json",format:new St,attributions:"Haltestellen Stadt Rostock, Creative Commons CC Zero License (cc-zero)"});return new we({source:r})}function Fi(){const r=new be({url:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1/collections/governmentalservice/items?f=json&limit=10000",format:new St,attributions:'© Bundesamt für Kartographie und Geodäsie 2017, Datenquellen'});return new we({source:r})}function Oi(){return new At({title:"Schulstandorte",description:"Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.",visible:!0,url:"https://www.wms.nrw.de/wms/wms_nw_inspire-schulen",sublayers:[{name:"US.education",title:"INSPIRE - WMS Schulstandorte NRW"}],sourceOptions:{ratio:1}})}function Ai(){return new At({title:"Straßennetz Landesbetrieb Straßenbau NRW",url:"https://www.wms.nrw.de/wms/strassen_nrw_wms",sublayers:[{name:"1",title:"Verwaltungen"},{name:"4",title:"Abschnitte und Äste"},{name:"6",title:"Unfälle"}]})}class ve extends ls{constructor(e,t,s){super(),s!==void 0&&t===void 0?this.setFlatCoordinates(s,e):(t=t||0,this.setCenterAndRadius(e,t,s))}clone(){const e=new ve(this.flatCoordinates.slice(),void 0,this.layout);return e.applyProperties(this),e}closestPointXY(e,t,s,i){const n=this.flatCoordinates,o=e-n[0],a=t-n[1],l=o*o+a*a;if(l=s[0]||e[1]<=s[1]&&e[3]>=s[1]?!0:hs(e,this.intersectsCoordinate.bind(this))}return!1}setCenter(e){const t=this.stride,s=this.flatCoordinates[t]-this.flatCoordinates[0],i=e.slice();i[t]=i[0]+s;for(let n=1;n=t?r[e-t]:r[e]}function de(r,e,t){let s,i;eo){const l=j(r,s),h=j(r,i);return he(l,h)}let a=0;if(sp.startIndex?_p.startIndex&&(_-=g.length)),l=_,a=d)}const h=e.targets[a];let c=h.ring;if(e.targetIndex===a&&c){const d=j(h.coordinates,l),p=t.getPixelFromCoordinate(d);wt(p,e.startPx)>s&&(c=!1)}if(c){const d=h.coordinates,p=d.length,g=h.startIndex,m=l;if(g=t?s-=t:s<0&&(s+=t);let n=s+1;n>=t&&(n-=t);const o=r[s],a=o[0],l=o[1],h=r[n],c=h[0]-a,d=h[1]-l;return[a+c*i,l+d*i]}class zi extends gs{constructor(e){const t=e;t.stopDown||(t.stopDown=ps),super(t),this.on,this.once,this.un,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=Ui(this.type_),this.stopClick_=!!e.stopClick,this.minPoints_=e.minPoints?e.minPoints:this.mode_==="Polygon"?3:2,this.maxPoints_=this.mode_==="Circle"?2:e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:ms,this.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";let s=e.geometryFunction;if(!s){const i=this.mode_;if(i==="Circle")s=function(n,o,a){const l=o||new Ni([NaN,NaN]),h=Je(n[0]),c=fs(h,Je(n[n.length-1]));return l.setCenterAndRadius(h,Math.sqrt(c),this.geometryLayout_),l};else{let n;i==="Point"?n=Te:i==="LineString"?n=G:i==="Polygon"&&(n=_e),s=function(o,a,l){return a?i==="Polygon"?o[0].length?a.setCoordinates([o[0].concat([o[0][0]])],this.geometryLayout_):a.setCoordinates([],this.geometryLayout_):a.setCoordinates(o,this.geometryLayout_):a=new n(o,this.geometryLayout_),a}}}this.geometryFunction_=s,this.dragVertexDelay_=e.dragVertexDelay!==void 0?e.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new we({source:new be({useSpatialIndex:!1,wrapX:e.wrapX?e.wrapX:!1}),style:e.style?e.style:Wi(),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:_s,this.freehandCondition_,e.freehand?this.freehandCondition_=et:this.freehandCondition_=e.freehandCondition?e.freehandCondition:ys,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSource_=e.traceSource||e.source||null,this.addChangeListener(bs.ACTIVE,this.updateState_)}setTrace(e){let t;e?e===!0?t=et:t=e:t=Ss,this.traceCondition_=t}setMap(e){super.setMap(e),this.updateState_()}getOverlay(){return this.overlay_}handleEvent(e){e.originalEvent.type===Ge.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!=="Point"&&this.freehandCondition_(e);let t=e.type===k.POINTERMOVE,s=!0;return!this.freehand_&&this.lastDragTime_&&e.type===k.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&this.downTimeout_!==void 0&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&e.type===k.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(e.coordinate),s=!1):this.freehand_&&e.type===k.POINTERDOWN?s=!1:t&&this.getPointerCount()<2?(s=e.type===k.POINTERMOVE,s&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):(e.originalEvent.pointerType==="mouse"||e.type===k.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(e)):e.type===k.DBLCLICK&&(s=!1),super.handleEvent(e)&&s}handleDownEvent(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(()=>{this.handlePointerMove_(new ws(k.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))},this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active){this.deactivateTrace_();return}const t=this.getMap(),s=t.getCoordinateFromPixel([e.pixel[0]-this.snapTolerance_,e.pixel[1]+this.snapTolerance_]),i=t.getCoordinateFromPixel([e.pixel[0]+this.snapTolerance_,e.pixel[1]-this.snapTolerance_]),n=vs([s,i]),o=this.traceSource_.getFeaturesInExtent(n);if(o.length===0)return;const a=ji(e.coordinate,o);a.length&&(this.traceState_={active:!0,startPx:e.pixel.slice(),targets:a,targetIndex:-1})}addOrRemoveTracedCoordinates_(e,t){const s=e.startIndex<=e.endIndex,i=e.startIndex<=t;s===i?s&&t>e.endIndex||!s&&te.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}removeTracedCoordinates_(e,t){if(e===t)return;let s=0;if(e0&&this.removeLastPoints_(s)}addTracedCoordinates_(e,t,s){if(t===s)return;const i=[];if(t=o;--a)i.push(N(e.coordinates,a))}i.length&&this.appendCoordinates(i)}updateTrace_(e){const t=this.traceState_;if(!t.active||t.targetIndex===-1&&wt(t.startPx,e.pixel)this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}if(!this.finishCoordinate_){this.createOrUpdateSketchPoint_(e.coordinate.slice());return}this.updateTrace_(e),this.modifyDrawing_(e.coordinate)}atFinish_(e,t){let s=!1;if(this.sketchFeature_){let i=!1,n=[this.finishCoordinate_];const o=this.mode_;if(o==="Point")s=!0;else if(o==="Circle")s=this.sketchCoords_.length===2;else if(o==="LineString")i=!t&&this.sketchCoords_.length>this.minPoints_;else if(o==="Polygon"){const a=this.sketchCoords_;i=a[0].length>this.minPoints_,n=[a[0][0],a[0][a[0].length-2]],t?n=[a[0][0]]:n=[a[0][0],a[0][a[0].length-2]]}if(i){const a=this.getMap();for(let l=0,h=n.length;l=this.maxPoints_&&(this.freehand_?n.pop():i=!0),n.push(e.slice()),this.geometryFunction_(n,t,s)):o==="Polygon"&&(n=this.sketchCoords_[0],n.length>=this.maxPoints_&&(this.freehand_?n.pop():i=!0),n.push(e.slice()),i&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,t,s)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),i&&this.finishDrawing()}removeLastPoints_(e){if(!this.sketchFeature_)return;const t=this.sketchFeature_.getGeometry(),s=this.getMap().getView().getProjection(),i=this.mode_;for(let n=0;n=2){this.finishCoordinate_=o[o.length-2].slice();const a=this.finishCoordinate_.slice();o[o.length-1]=a,this.createOrUpdateSketchPoint_(a)}this.geometryFunction_(o,t,s),t.getType()==="Polygon"&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(i==="Polygon"){o=this.sketchCoords_[0],o.splice(-2,1);const a=this.sketchLine_.getGeometry();if(o.length>=2){const l=o[o.length-2].slice();o[o.length-1]=l,this.createOrUpdateSketchPoint_(l)}a.setCoordinates(o),this.geometryFunction_(this.sketchCoords_,t,s)}if(o.length===1){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){const e=this.abortDrawing_();if(!e)return;let t=this.sketchCoords_;const s=e.getGeometry(),i=this.getMap().getView().getProjection();this.mode_==="LineString"?(t.pop(),this.geometryFunction_(t,s,i)):this.mode_==="Polygon"&&(t[0].pop(),this.geometryFunction_(t,s,i),t=s.getCoordinates()),this.type_==="MultiPoint"?e.setGeometry(new Us([t])):this.type_==="MultiLineString"?e.setGeometry(new Ct([t])):this.type_==="MultiPolygon"&&e.setGeometry(new Et([t])),this.dispatchEvent(new ce(le.DRAWEND,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}abortDrawing_(){this.finishCoordinate_=null;const e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),e}abortDrawing(){const e=this.abortDrawing_();e&&this.dispatchEvent(new ce(le.DRAWABORT,e))}appendCoordinates(e){const t=this.mode_,s=!this.sketchFeature_;s&&this.startDrawing_(e[0]);let i;if(t==="LineString"||t==="Circle")i=this.sketchCoords_;else if(t==="Polygon")i=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[];else return;s&&i.shift(),i.pop();for(let o=0;oimport("./e02eed165bd0.js"),[],import.meta.url).then(e=>e.default);case"de":return st(()=>import("./493dc123a2d2.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${r}'`)}const Yi=Vt(qi),Xi=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:Ki,locales:Hi,packages:$i,styles:Yi},Symbol.toStringTag,{value:"Module"})),Zi="@open-pioneer/coordinate-viewer",Qi=fe.bind(void 0,Zi),Ji=4,en=r=>{const{mapId:e,precision:t}=r,{containerProps:s}=ze("coordinate-viewer",r),{map:i}=ye(e),n=i?.olMap,{coordinates:o}=sn(n),a=tn(o,t),l=Nt(n)?.getCode()??"",h=a?a+" "+l:"";return u.jsx(D,{...s,children:u.jsx(We,{className:"coordinate-viewer-text",children:h})})};function tn(r,e){const t=Qi();return r?nn(r,e,t):""}function sn(r){const[e,t]=b.useState();return b.useEffect(()=>{if(!r)return;const s=r.on("pointermove",i=>{t(i.coordinate)});return()=>X(s)},[r]),{coordinates:e}}function nn(r,e,t){if(r[0]==null||r[1]==null)return"";const s=e??Ji,[i,n]=r,o=t.formatNumber(i,{maximumFractionDigits:s,minimumFractionDigits:s}),a=t.formatNumber(n,{maximumFractionDigits:s,minimumFractionDigits:s});return o+" "+a}const rn="@open-pioneer/measurement",on=fe.bind(void 0,rn),w={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"};class an extends Is{constructor(e){super(),this.on,this.once,this.un,this.options=e,this.id=e.id,this.insertFirst=e.insertFirst!==void 0?e.insertFirst:!0,this.stopEvent=e.stopEvent!==void 0?e.stopEvent:!0,this.element=document.createElement("div"),this.element.className=e.className!==void 0?e.className:"ol-overlay-container "+Ts,this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.autoPan=e.autoPan===!0?{}:e.autoPan||void 0,this.rendered={transform_:"",visible:!0},this.mapPostrenderListenerKey=null,this.addChangeListener(w.ELEMENT,this.handleElementChanged),this.addChangeListener(w.MAP,this.handleMapChanged),this.addChangeListener(w.OFFSET,this.handleOffsetChanged),this.addChangeListener(w.POSITION,this.handlePositionChanged),this.addChangeListener(w.POSITIONING,this.handlePositioningChanged),e.element!==void 0&&this.setElement(e.element),this.setOffset(e.offset!==void 0?e.offset:[0,0]),this.setPositioning(e.positioning||"top-left"),e.position!==void 0&&this.setPosition(e.position)}getElement(){return this.get(w.ELEMENT)}getId(){return this.id}getMap(){return this.get(w.MAP)||null}getOffset(){return this.get(w.OFFSET)}getPosition(){return this.get(w.POSITION)}getPositioning(){return this.get(w.POSITIONING)}handleElementChanged(){Ps(this.element);const e=this.getElement();e&&this.element.appendChild(e)}handleMapChanged(){this.mapPostrenderListenerKey&&(ks(this.element),pt(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);const e=this.getMap();if(e){this.mapPostrenderListenerKey=gt(e,Ls.POSTRENDER,this.render,this),this.updatePixelPosition();const t=this.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this.insertFirst?t.insertBefore(this.element,t.childNodes[0]||null):t.appendChild(this.element),this.performAutoPan()}}render(){this.updatePixelPosition()}handleOffsetChanged(){this.updatePixelPosition()}handlePositionChanged(){this.updatePixelPosition(),this.performAutoPan()}handlePositioningChanged(){this.updatePixelPosition()}setElement(e){this.set(w.ELEMENT,e)}setMap(e){this.set(w.MAP,e)}setOffset(e){this.set(w.OFFSET,e)}setPosition(e){this.set(w.POSITION,e)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(e){const t=this.getMap();if(!t||!t.getTargetElement()||!this.get(w.POSITION))return;const s=this.getRect(t.getTargetElement(),t.getSize()),i=this.getElement(),n=this.getRect(i,[Ms(i),Rs(i)]);e=e||{};const o=e.margin===void 0?20:e.margin;if(!ge(s,n)){const a=n[0]-s[0],l=s[2]-n[2],h=n[1]-s[1],c=s[3]-n[3],d=[0,0];if(a<0?d[0]=a-o:l<0&&(d[0]=Math.abs(l)+o),h<0?d[1]=h-o:c<0&&(d[1]=Math.abs(c)+o),d[0]!==0||d[1]!==0){const p=t.getView().getCenterInternal(),g=t.getPixelFromCoordinateInternal(p);if(!g)return;const m=[g[0]+d[0],g[1]+d[1]],_=e.animation||{};t.getView().animateInternal({center:t.getCoordinateFromPixelInternal(m),duration:_.duration,easing:_.easing})}}}getRect(e,t){const s=e.getBoundingClientRect(),i=s.left+window.pageXOffset,n=s.top+window.pageYOffset;return[i,n,i+t[0],n+t[1]]}setPositioning(e){this.set(w.POSITIONING,e)}setVisible(e){this.rendered.visible!==e&&(this.element.style.display=e?"":"none",this.rendered.visible=e)}updatePixelPosition(){const e=this.getMap(),t=this.getPosition();if(!e||!e.isRendered()||!t){this.setVisible(!1);return}const s=e.getPixelFromCoordinate(t),i=e.getSize();this.updateRenderedPosition(s,i)}updateRenderedPosition(e,t){const s=this.element.style,i=this.getOffset(),n=this.getPositioning();this.setVisible(!0);const o=Math.round(e[0]+i[0])+"px",a=Math.round(e[1]+i[1])+"px";let l="0%",h="0%";n=="bottom-right"||n=="center-right"||n=="top-right"?l="-100%":(n=="bottom-center"||n=="center-center"||n=="top-center")&&(l="-50%"),n=="bottom-left"||n=="bottom-center"||n=="bottom-right"?h="-100%":(n=="center-left"||n=="center-center"||n=="center-right")&&(h="-50%");const c=`translate(${l}, ${h}) translate(${o}, ${a})`;this.rendered.transform_!=c&&(this.rendered.transform_=c,s.transform=c)}getOptions(){return this.options}}const rt=an;class ln{olMap;messages;activeFeatureStyle;layer;source;draw=void 0;sketch=void 0;helpTooltip;measureTooltip;overlayTooltips=[];resources=[];constructor(e,t){this.olMap=e,this.messages=t;const s=this.source=new be;this.layer=new we({source:s}),e.addLayer(this.layer);const i=e.on("pointermove",this.handlePointerMove.bind(this));this.resources.push({destroy(){X(i)}});const n=()=>{this.helpTooltip.element.classList.add("hidden")};e.getViewport().addEventListener("mouseout",n),this.resources.push({destroy(){e.getViewport().removeEventListener("mouseout",n)}}),this.helpTooltip=this.createHelpTooltip()}destroy(){this.stopMeasurement();for(const e of this.resources)e.destroy();this.resources=[],this.helpTooltip.destroy(),this.measureTooltip?.destroy();for(const e of this.overlayTooltips)e.destroy();this.overlayTooltips=[],this.olMap.removeLayer(this.layer),this.layer.dispose(),this.source.dispose()}getVectorLayer(){return this.layer}setFinishedFeatureStyle(e){this.layer.setStyle(e)}setActiveFeatureStyle(e){const t=$s(e);this.activeFeatureStyle=(s,...i)=>{const n=s?.getGeometry()?.getType();if(n==="Polygon"||n==="LineString"||n==="Point")return t(s,...i)},this.draw?.getOverlay().setStyle(this.activeFeatureStyle)}clearMeasurements(){this.source.clear();for(const e of this.overlayTooltips)e.destroy();this.overlayTooltips=[]}startMeasurement(e){if(this.draw)throw new Error("Internal error: another measurement interaction is still active.");const t=e==="area"?"Polygon":"LineString",s=this.draw=new Vi({source:this.source,type:t,style:this.activeFeatureStyle});this.olMap.addInteraction(s);let i,n;s.on("drawstart",o=>{i=this.measureTooltip=this.createMeasureTooltip();const a=this.sketch=o.feature;if(!a)return;let l;n=a.getGeometry()?.on("change",h=>{const c=h.target,d=this.olMap.getView().getProjection();let p="";c instanceof _e?(p=hn(c,d,this.messages),l=c.getInteriorPoint().getCoordinates()||null):c instanceof G&&(p=dn(c,d,this.messages),l=c.getLastCoordinate()||null),i&&(i.element.innerHTML=p,l&&i?.overlay.setPosition(l))})}),s.on("drawend",()=>{if(i){const o=i.element.classList;o.remove("measurement-active-tooltip"),o.add("measurement-finished-tooltip"),i.overlay.setOffset([0,-7]),this.overlayTooltips.push(i),this.measureTooltip=i=void 0}this.sketch=void 0,n&&X(n)}),s.on("drawabort",()=>{i&&(i.destroy(),this.measureTooltip=i=void 0),this.sketch=void 0,n&&X(n)})}stopMeasurement(){this.draw&&(this.olMap.removeInteraction(this.draw),this.draw.abortDrawing(),this.draw.dispose(),this.draw=void 0),this.sketch=void 0,this.measureTooltip?.destroy(),this.measureTooltip=void 0}createMeasureTooltip(){const e=document.createElement("div");e.className="measurement-tooltip measurement-active-tooltip";const t=new rt({element:e,offset:[0,-15],positioning:"bottom-center",stopEvent:!1,insertFirst:!1}),s=this.olMap;return s.addOverlay(t),{overlay:t,element:e,destroy(){s.removeOverlay(t)}}}createHelpTooltip(){const e=document.createElement("div");e.className="measurement-tooltip hidden";const t=new rt({element:e,offset:[15,0],positioning:"center-left"}),s=this.olMap;return s.addOverlay(t),{overlay:t,element:e,destroy(){s.removeOverlay(t)}}}handlePointerMove(e){if(e.dragging)return;const t=this.helpTooltip,s=cn(this.messages,this.sketch);t.element.textContent=s,t.overlay.setPosition(e.coordinate),t.element.classList.remove("hidden")}}function cn(r,e){if(e){const t=e.getGeometry();if(t instanceof _e||t instanceof G)return r.getContinueMessage()}return r.getHelpMessage()}function hn(r,e,t){const s=Ds(r,{projection:e});let i;return s>=1e6?i=`${t.formatNumber(s/1e6)} km2`:i=`${t.formatNumber(s)} m2`,i}function dn(r,e,t){const s=Fs(r,{projection:e});let i;return s>=1e3?i=`${t.formatNumber(s/1e3)} km`:i=`${t.formatNumber(s)} m`,i}const un=r=>{const e=on(),{mapId:t,activeFeatureStyle:s,finishedFeatureStyle:i}=r,{containerProps:n}=ze("measurement",r),[o,a]=b.useState("distance"),l=g=>e.formatMessage({id:g}),h=ye(t),c=gn(h.map,e);b.useEffect(()=>{c?.setActiveFeatureStyle(s??pn())},[c,s]),b.useEffect(()=>{c?.setFinishedFeatureStyle(i??mn())},[c,i]),b.useEffect(()=>{if(c)return c.startMeasurement(o),()=>{c.stopMeasurement()}},[c,o]);function d(g){if(g==="distance"||g==="area")a(g);else throw new Error(`Unexpected measurement type: '${g}'.`)}function p(){c?.clearMeasurements()}return u.jsxs(D,{...n,children:[u.jsx(We,{width:"340px",mb:3,children:e.formatMessage({id:"measurementInfoText"})}),u.jsx(Zs,{mb:4,alignItems:"center",children:u.jsxs(Tt,{mb:2,children:[u.jsx(Js,{mb:1,children:l("measurementLabel")}),u.jsxs(ei,{value:o,onChange:g=>d(g.target.value),className:"measurement-select",children:[u.jsx("option",{value:"distance",children:l("distance")}),u.jsx("option",{value:"area",children:l("area")})]})]})}),u.jsx(ot,{padding:2,className:"measurement-delete-button",onClick:p,width:"100%",children:l("deleteMeasurementLabel")})]})};function gn(r,e){const[t,s]=b.useState(void 0);return b.useEffect(()=>{if(!r)return;const i=new ln(r.olMap,{getContinueMessage(){return e.formatMessage({id:"tooltips.continue"})},getHelpMessage(){return e.formatMessage({id:"tooltips.help"})},formatNumber(n){return e.formatNumber(n,{maximumFractionDigits:2})}});return s(i),()=>{i.destroy(),s(void 0)}},[r,e]),t}function pn(){return[new pe({stroke:new Z({color:"#fff",lineDash:[10,10],width:5})}),new pe({fill:new Ae({color:"rgba(0,0,0,0.15)"}),stroke:new Z({color:"rgba(0, 0, 0, 0.7)",lineDash:[10,10],width:3}),image:new qs({radius:5,stroke:new Z({color:"rgba(0, 0, 0, 0.7)",width:2}),fill:new Ae({color:"rgba(255, 255, 255, 0.2)"})})})]}function mn(){return[new pe({stroke:new Z({color:"#fff",width:5})}),new pe({stroke:new Z({color:"#0b96fc",width:3}),fill:new Ae({color:"rgba(11,150,252,0.15)"})})]}const fn="@open-pioneer/scale-viewer",_n=fe.bind(void 0,fn),yn=r=>{const{mapId:e}=r,{containerProps:t}=ze("scale-viewer",r),{map:s}=ye(e),i=_n(),n=Mi(s?.olMap),o=n?i.formatNumber(n):void 0;return u.jsx(D,{...t,children:o&&u.jsxs(We,{children:["1:",o]})})},Fe="units",bn=[1,2,5],Y=25.4/.28;class wn extends Os{constructor(e){e=e||{};const t=document.createElement("div");t.style.pointerEvents="none",super({element:t,render:e.render,target:e.target}),this.on,this.once,this.un;const s=e.className!==void 0?e.className:e.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=s+"-inner",this.element.className=s+" "+As,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=e.minWidth!==void 0?e.minWidth:64,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(Fe,this.handleUnitsChanged_),this.setUnits(e.units||"metric"),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(Fe)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(Fe,e)}setDpi(e){this.dpi_=e}updateElement_(){const e=this.viewState_;if(!e){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const t=e.center,s=e.projection,i=this.getUnits(),n=i=="degrees"?"degrees":"m";let o=Oe(s,e.resolution,t,n);const a=this.minWidth_*(this.dpi_||Y)/Y,l=this.maxWidth_!==void 0?this.maxWidth_*(this.dpi_||Y)/Y:void 0;let h=a*o,c="";if(i=="degrees"){const v=Ns.degrees;h*=v,h=l){p=_,g=y,m=P;break}else if(g>=a)break;_=p,y=g,P=m,++d}const I=this.scaleBar_?this.createScaleBar(g,p,c):p.toFixed(m<0?-m:0)+" "+c;this.renderedHTML_!=I&&(this.innerElement_.innerHTML=I,this.renderedHTML_=I),this.renderedWidth_!=g&&(this.innerElement_.style.width=g+"px",this.renderedWidth_=g),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(e,t,s){const i=this.getScaleForResolution(),n=i<1?Math.round(1/i).toLocaleString()+" : 1":"1 : "+Math.round(i).toLocaleString(),o=this.scaleBarSteps_,a=e/o,l=[this.createMarker("absolute")];for(let c=0;c
`+this.createMarker("relative")+(c%2===0||o===2?this.createStepText(c,e,!1,t,s):"")+"")}return l.push(this.createStepText(o,e,!0,t,s)),(this.scaleBarText_?`
`+n+"
":"")+l.join("")}createMarker(e){return`
`}createStepText(e,t,s,i,n){const a=(e===0?0:Math.round(i/this.scaleBarSteps_*e*100)/100)+(e===0?"":" "+n),l=e===0?-3:t/this.scaleBarSteps_*-1,h=e===0?0:t/this.scaleBarSteps_*2;return`
`+a+"
"}getScaleForResolution(){const e=Oe(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m"),t=this.dpi_||Y,s=1e3/25.4;return e*s*t}render(e){const t=e.frameState;t?this.viewState_=t.viewState:this.viewState_=null,this.updateElement_()}}const vn=wn;function xn(r){const{mapId:e,...t}=r,s=b.useRef(null),{map:i}=ye(e);return b.useEffect(()=>{if(s.current&&i){const n=i.olMap,o=new vn({units:"metric",target:s.current});return n.addControl(o),()=>{n.removeControl(o)}}},[i]),u.jsx("div",{className:"scale-wrapper",ref:s,...t})}const Sn="ol-map",Cn=fe.bind(void 0,Sn);function En(r){return It({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M235.32,96,96,235.31a16,16,0,0,1-22.63,0L20.68,182.63a16,16,0,0,1,0-22.63l29.17-29.17a4,4,0,0,1,5.66,0l34.83,34.83a8,8,0,0,0,11.71-.43,8.18,8.18,0,0,0-.6-11.09L66.82,119.51a4,4,0,0,1,0-5.65l15-15a4,4,0,0,1,5.66,0l34.83,34.83a8,8,0,0,0,11.71-.43,8.18,8.18,0,0,0-.6-11.09L98.83,87.51a4,4,0,0,1,0-5.65l15-15a4,4,0,0,1,5.65,0l34.83,34.83a8,8,0,0,0,11.72-.43,8.18,8.18,0,0,0-.61-11.09L130.83,55.51a4,4,0,0,1,0-5.65L160,20.69a16,16,0,0,1,22.63,0l52.69,52.68A16,16,0,0,1,235.32,96Z"}}]})(r)}function In(r){return It({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M233.91,74.79,181.22,22.1a14,14,0,0,0-19.8,0L22.09,161.41a14,14,0,0,0,0,19.8L74.78,233.9a14,14,0,0,0,19.8,0L233.91,94.59A14,14,0,0,0,233.91,74.79ZM225.42,86.1,86.1,225.41h0a2,2,0,0,1-2.83,0L30.58,172.73a2,2,0,0,1,0-2.83L64,136.48l27.76,27.76a6,6,0,1,0,8.48-8.48L72.48,128,96,104.48l27.76,27.76a6,6,0,0,0,8.48-8.48L104.48,96,128,72.49l27.76,27.75a6,6,0,0,0,8.48-8.48L136.49,64,169.9,30.59a2,2,0,0,1,2.83,0l52.69,52.68A2,2,0,0,1,225.42,86.1Z"}}]})(r)}function Tn(){const r=Cn(),e=b.useId(),t=b.useId(),[s,i]=b.useState(!1);function n(){i(!s)}return u.jsx(ae,{height:"100%",direction:"column",overflow:"hidden",children:u.jsxs(Pe,{title:u.jsx(D,{role:"region","aria-label":r.formatMessage({id:"ariaLabel.header"}),textAlign:"center",py:1,children:u.jsx(ke,{size:"md",children:"OpenLayers Base Packages - Default Sample"})}),children:[u.jsx(ae,{flex:"1",direction:"column",position:"relative",children:u.jsxs(js,{mapId:T,role:"main","aria-label":r.formatMessage({id:"ariaLabel.map"}),children:[u.jsx(it,{position:"top-left",horizontalGap:20,verticalGap:20,children:u.jsxs(D,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:[u.jsx(D,{role:"dialog","aria-labelledby":e,children:u.jsx(Pe,{title:u.jsx(ke,{id:e,size:"md",mb:2,children:r.formatMessage({id:"tocTitle"})}),children:u.jsx(Hs,{mapId:T,basemapSwitcherProps:{allowSelectingEmptyBasemap:!0}})})}),s&&u.jsx(D,{role:"dialog","aria-labelledby":t,mt:5,children:u.jsx(Pe,{title:u.jsx(ke,{id:t,size:"md",mb:2,children:r.formatMessage({id:"measurementTitle"})}),children:u.jsx(un,{mapId:T})})})]})}),u.jsx(it,{position:"bottom-right",horizontalGap:10,verticalGap:30,children:u.jsxs(ae,{role:"toolbar","aria-label":r.formatMessage({id:"ariaLabel.toolbar"}),direction:"column",gap:1,padding:1,children:[u.jsx(Bt,{label:r.formatMessage({id:"measurementTitle"}),placement:"auto",openDelay:500,children:u.jsx(ot,{"aria-label":r.formatMessage({id:"measurementTitle"}),leftIcon:s?u.jsx(En,{}):u.jsx(In,{}),onClick:n,iconSpacing:0,padding:0})}),u.jsx(Ks,{mapId:T}),u.jsx(Ys,{mapId:T}),u.jsx(Xs,{mapId:T})]})})]})}),u.jsxs(ae,{role:"region","aria-label":r.formatMessage({id:"ariaLabel.footer"}),gap:3,alignItems:"center",justifyContent:"center",children:[u.jsx(en,{mapId:T,precision:2}),u.jsx(xn,{mapId:T}),u.jsx(yn,{mapId:T})]})]})})}const Pn=$t({component:Tn,appMetadata:Xi,openShadowRoot:!0,async resolveConfig(r){const e=r.getAttribute("forced-locale");if(e)return{locale:e}}});customElements.define("ol-map-app",Pn);const kn=document.getElementsByTagName("body")[0];Ln();function Ln(){const r=window.location.search,t=new URLSearchParams(r).get("lang"),s=document.createElement("ol-map-app");s.classList.add("full-height"),s.classList.add("app"),s.setAttribute("id","test"),t&&s.setAttribute("forced-locale",t),kn.appendChild(s)} diff --git a/openlayers-base-packages/assets/c0d2fbcdd7fa.js b/openlayers-base-packages/assets/67c4f96ddb71.js similarity index 52% rename from openlayers-base-packages/assets/c0d2fbcdd7fa.js rename to openlayers-base-packages/assets/67c4f96ddb71.js index c683304e6..2154996e8 100644 --- a/openlayers-base-packages/assets/c0d2fbcdd7fa.js +++ b/openlayers-base-packages/assets/67c4f96ddb71.js @@ -1,12 +1,12 @@ -var ls=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)};var E=(e,t,i)=>(ls(e,t,"read from private field"),i?i.call(e):t.get(e)),L=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},O=(e,t,i,n)=>(ls(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i);var Sr=(e,t,i,n)=>({set _(s){O(e,t,s,i)},get _(){return E(e,t,n)}}),bt=(e,t,i)=>(ls(e,t,"access private method"),i);import{c as Se,r as H,a2 as bh,j as Rn,q as Rh,a3 as Or,y as Nr,p as Th,m as Dr}from"./49b2c148dcb3.js";import{c as wh,B as Ih}from"./fa35e3e86a4c.js";import{E as Xs}from"./adc90c48e771.js";class Ph{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}const qs=Ph;class Ah{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}const me=Ah;function Bm(e,t,i){let n,s;i=i||Wn;let r=0,a=e.length,o=!1;for(;r>1),s=+i(e[n],t),s<0?r=n+1:(a=n,o=!s);return o?r:~r}function Wn(e,t){return e>t?1:e0?s-1:s}return n-1}if(i>0){for(let s=1;s0||i&&a===0)})}function Tn(){return!0}function qi(){return!1}function wn(){}function Oh(e){let t=!1,i,n,s;return function(){const r=Array.prototype.slice.call(arguments);return(!t||this!==s||!Yn(r,n))&&(t=!0,s=this,n=r,i=e.apply(this,arguments)),i}}function Nh(e){function t(){let i;try{i=e()}catch(n){return Promise.reject(n)}return i instanceof Promise?i:Promise.resolve(i)}return t()}function Zi(e){for(const t in e)delete e[t]}function Dh(e){let t;for(t in e)return!1;return!t}class Fh extends qs{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,i){if(!t||!i)return;const n=this.listeners_||(this.listeners_={}),s=n[t]||(n[t]=[]);s.includes(i)||s.push(i)}dispatchEvent(t){const i=typeof t=="string",n=i?t:t.type,s=this.listeners_&&this.listeners_[n];if(!s)return;const r=i?new me(t):t;r.target||(r.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),o=this.pendingRemovals_||(this.pendingRemovals_={});n in a||(a[n]=0,o[n]=0),++a[n];let h;for(let l=0,c=s.length;l0:!1}removeEventListener(t,i){const n=this.listeners_&&this.listeners_[t];if(n){const s=n.indexOf(i);s!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[s]=wn,++this.pendingRemovals_[t]):(n.splice(s,1),n.length===0&&delete this.listeners_[t]))}}}const Hn=Fh,S={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"};function G(e,t,i,n,s){if(n&&n!==e&&(i=i.bind(n)),s){const a=i;i=function(){e.removeEventListener(t,i),a.apply(this,arguments)}}const r={target:e,type:t,listener:i};return e.addEventListener(t,i),r}function In(e,t,i,n){return G(e,t,i,n,!0)}function B(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),Zi(e))}class Ki extends Hn{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(S.CHANGE)}getRevision(){return this.revision_}onInternal(t,i){if(Array.isArray(t)){const n=t.length,s=new Array(n);for(let r=0;r1?(i=s,n=r):h>0&&(i+=a*h,n+=o*h)}return ei(e,t,i,n)}function ei(e,t,i,n){const s=i-e,r=n-t;return s*s+r*r}function jh(e){const t=e.length;for(let n=0;nr&&(r=h,s=o)}if(r===0)return null;const a=e[s];e[s]=e[n],e[n]=a;for(let o=n+1;o=0;n--){i[n]=e[n][t]/e[n][n];for(let s=n-1;s>=0;s--)e[s][t]-=e[s][n]*i[n]}return i}function Ie(e){return e*Math.PI/180}function ii(e,t){const i=e%t;return i*t<0?i+t:i}function Uh(e,t,i){return e+i*(t-e)}function Ks(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}function Wm(e,t){return Math.round(Ks(e,t))}function hn(e,t){return Math.floor(Ks(e,t))}function ln(e,t){return Math.ceil(Ks(e,t))}class $h extends Bt{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const i=Object.assign({},t);typeof t.properties=="object"&&(delete i.properties,Object.assign(i,t.properties)),i[F.OPACITY]=t.opacity!==void 0?t.opacity:1,j(typeof i[F.OPACITY]=="number","Layer opacity must be a number"),i[F.VISIBLE]=t.visible!==void 0?t.visible:!0,i[F.Z_INDEX]=t.zIndex,i[F.MAX_RESOLUTION]=t.maxResolution!==void 0?t.maxResolution:1/0,i[F.MIN_RESOLUTION]=t.minResolution!==void 0?t.minResolution:0,i[F.MIN_ZOOM]=t.minZoom!==void 0?t.minZoom:-1/0,i[F.MAX_ZOOM]=t.maxZoom!==void 0?t.maxZoom:1/0,this.className_=i.className!==void 0?i.className:"ol-layer",delete i.className,this.setProperties(i),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const i=this.state_||{layer:this,managed:t===void 0?!0:t},n=this.getZIndex();return i.opacity=W(Math.round(this.getOpacity()*100)/100,0,1),i.visible=this.getVisible(),i.extent=this.getExtent(),i.zIndex=n===void 0&&!i.managed?1/0:n,i.maxResolution=this.getMaxResolution(),i.minResolution=Math.max(this.getMinResolution(),0),i.minZoom=this.getMinZoom(),i.maxZoom=this.getMaxZoom(),this.state_=i,i}getLayersArray(t){return Z()}getLayerStatesArray(t){return Z()}getExtent(){return this.get(F.EXTENT)}getMaxResolution(){return this.get(F.MAX_RESOLUTION)}getMinResolution(){return this.get(F.MIN_RESOLUTION)}getMinZoom(){return this.get(F.MIN_ZOOM)}getMaxZoom(){return this.get(F.MAX_ZOOM)}getOpacity(){return this.get(F.OPACITY)}getSourceState(){return Z()}getVisible(){return this.get(F.VISIBLE)}getZIndex(){return this.get(F.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(F.EXTENT,t)}setMaxResolution(t){this.set(F.MAX_RESOLUTION,t)}setMinResolution(t){this.set(F.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(F.MAX_ZOOM,t)}setMinZoom(t){this.set(F.MIN_ZOOM,t)}setOpacity(t){j(typeof t=="number","Layer opacity must be a number"),this.set(F.OPACITY,t)}setVisible(t){this.set(F.VISIBLE,t)}setZIndex(t){this.set(F.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const Da=$h,ce={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"},pt={ANIMATING:0,INTERACTING:1},Rt={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},Xh=42,Bs=256,Ai={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};let qh=class{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=t.extent!==void 0?t.extent:null,this.worldExtent_=t.worldExtent!==void 0?t.worldExtent:null,this.axisOrientation_=t.axisOrientation!==void 0?t.axisOrientation:"enu",this.global_=t.global!==void 0?t.global:!1,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_||Ai[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_}};const Vs=qh,Bi=6378137,Ve=Math.PI*Bi,Zh=[-Ve,-Ve,Ve,Ve],Kh=[-180,-85,180,85],cn=Bi*Math.log(Math.tan(Math.PI/2));class ze extends Vs{constructor(t){super({code:t,units:"m",extent:Zh,global:!0,worldExtent:Kh,getPointResolution:function(i,n){return i/Math.cosh(n[1]/Bi)}})}}const Gr=[new ze("EPSG:3857"),new ze("EPSG:102100"),new ze("EPSG:102113"),new ze("EPSG:900913"),new ze("http://www.opengis.net/def/crs/EPSG/0/3857"),new ze("http://www.opengis.net/gml/srs/epsg.xml#3857")];function Bh(e,t,i){const n=e.length;i=i>1?i:2,t===void 0&&(i>2?t=e.slice():t=new Array(n));for(let s=0;scn?r=cn:r<-cn&&(r=-cn),t[s+1]=r}return t}function Vh(e,t,i){const n=e.length;i=i>1?i:2,t===void 0&&(i>2?t=e.slice():t=new Array(n));for(let s=0;ss&&(h=h|nt.RIGHT),or&&(h=h|nt.ABOVE),h===nt.UNKNOWN&&(h=nt.INTERSECTING),h}function Oe(){return[1/0,1/0,-1/0,-1/0]}function yi(e,t,i,n,s){return s?(s[0]=e,s[1]=t,s[2]=i,s[3]=n,s):[e,t,i,n]}function Vi(e){return yi(1/0,1/0,-1/0,-1/0,e)}function il(e,t){const i=e[0],n=e[1];return yi(i,n,i,n,t)}function nl(e,t,i,n,s){const r=Vi(s);return ka(r,e,t,i,n)}function Pn(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function sl(e,t){return t[0]e[2]&&(e[2]=t[2]),t[1]e[3]&&(e[3]=t[3]),e}function pn(e,t){t[0]e[2]&&(e[2]=t[0]),t[1]e[3]&&(e[3]=t[1])}function ka(e,t,i,n,s){for(;it[0]?n[0]=e[0]:n[0]=t[0],e[1]>t[1]?n[1]=e[1]:n[1]=t[1],e[2]=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function Yi(e){return e[2]=a&&_<=h),!n&&r&nt.RIGHT&&!(s&nt.RIGHT)&&(m=f-(d-h)*g,n=m>=o&&m<=l),!n&&r&nt.BELOW&&!(s&nt.BELOW)&&(_=d-(f-o)/g,n=_>=a&&_<=h),!n&&r&nt.LEFT&&!(s&nt.LEFT)&&(m=f-(d-a)*g,n=m>=o&&m<=l)}return n}function Qm(e,t,i,n){if(Yi(e))return Vi(i);let s=[];if(n>1){const o=e[2]-e[0],h=e[3]-e[1];for(let l=0;l=i[2])){const s=X(i),a=Math.floor((n[0]-i[0])/s)*s;e[0]-=a,e[2]-=a}return e}function Jm(e,t){if(t.canWrapX()){const i=t.getExtent();if(!isFinite(e[0])||!isFinite(e[2]))return[[i[0],e[1],i[2],e[3]]];ll(e,t);const n=X(i);if(X(e)>n)return[[i[0],e[1],i[2],e[3]]];if(e[0]i[2])return[[e[0],e[1],i[2],e[3]],[i[0],e[1],e[2]-n,e[3]]]}return[e]}function cl(e,t){return e[0]+=+t[0],e[1]+=+t[1],e}function An(e,t){let i=!0;for(let n=e.length-1;n>=0;--n)if(e[n]!=t[n]){i=!1;break}return i}function Ys(e,t){const i=Math.cos(t),n=Math.sin(t),s=e[0]*i-e[1]*n,r=e[1]*i+e[0]*n;return e[0]=s,e[1]=r,e}function ul(e,t){return e[0]*=t,e[1]*=t,e}function dl(e,t){const i=e[0]-t[0],n=e[1]-t[1];return i*i+n*n}function t1(e,t){return Math.sqrt(dl(e,t))}function fl(e,t){if(t.canWrapX()){const i=X(t.getExtent()),n=Ua(e,t,i);n&&(e[0]-=n*i)}return e}function Ua(e,t,i){const n=t.getExtent();let s=0;return t.canWrapX()&&(e[0]n[2])&&(i=i||X(n),s=Math.floor((e[0]-n[0])/i)),s}const Hs=63710088e-1;function Is(e,t,i){i=i||Hs;const n=Ie(e[1]),s=Ie(t[1]),r=(s-n)/2,a=Ie(t[0]-e[0])/2,o=Math.sin(r)*Math.sin(r)+Math.sin(a)*Math.sin(a)*Math.cos(n)*Math.cos(s);return 2*i*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))}function cs(e,t){let i=0;for(let n=0,s=e.length;n$a.warn||console.warn(...e)}let Ps=!0;function qa(e){Ps=!(e===void 0?!0:e)}function Qs(e,t){if(t!==void 0){for(let i=0,n=e.length;i=o?t[r+h]:a[h]}return i}}function Ml(e,t,i,n){const s=J(e),r=J(t);gi(s,r,Xr(i)),gi(r,s,Xr(n))}function e1(e,t){return qa(),Ba(e,"EPSG:4326",t!==void 0?t:"EPSG:3857")}function Xe(e,t){if(e===t)return!0;const i=e.getUnits()===t.getUnits();return(e.getCode()===t.getCode()||tr(e,t)===Qs)&&i}function tr(e,t){const i=e.getCode(),n=t.getCode();let s=Fa(i,n);return s||(s=Za),s}function Ln(e,t){const i=J(e),n=J(t);return tr(i,n)}function Ba(e,t,i){return Ln(t,i)(e,void 0,e.length)}function Ls(e,t){return e}function $t(e,t){return Ps&&!An(e,[0,0])&&e[0]>=-180&&e[0]<=180&&e[1]>=-90&&e[1]<=90&&(Ps=!1,Xa("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),e}function pl(e,t){return e}function We(e,t){return e}function qr(e,t,i){return function(n){let s,r;if(e.canWrapX()){const a=e.getExtent(),o=X(a);n=n.slice(0),r=Ua(n,e,o),r&&(n[0]=n[0]-r*o),n[0]=W(n[0],a[0],a[2]),n[1]=W(n[1],a[1],a[3]),s=i(n)}else s=i(n);return r&&t.canWrapX()&&(s[0]+=r*X(t.getExtent())),s}}function El(){As(Gr),As(kr),vl(kr,Gr,Bh,Vh)}El();function Zr(e,t,i){return function(n,s,r,a,o){if(!n)return;if(!s&&!t)return n;const h=t?0:r[0]*s,l=t?0:r[1]*s,c=o?o[0]:0,u=o?o[1]:0;let d=e[0]+h/2+c,f=e[2]-h/2+c,g=e[1]+l/2+u,_=e[3]-l/2+u;d>f&&(d=(f+d)/2,f=d),g>_&&(g=(_+g)/2,_=g);let m=W(n[0],d,f),v=W(n[1],g,_);if(a&&i&&s){const y=30*s;m+=-y*Math.log(1+Math.max(0,d-n[0])/y)+y*Math.log(1+Math.max(0,n[0]-f)/y),v+=-y*Math.log(1+Math.max(0,g-n[1])/y)+y*Math.log(1+Math.max(0,n[1]-_)/y)}return[m,v]}}function xl(e){return e}function er(e,t,i,n){const s=X(t)/i[0],r=Ft(t)/i[1];return n?Math.min(e,Math.max(s,r)):Math.min(e,Math.min(s,r))}function ir(e,t,i){let n=Math.min(e,t);const s=50;return n*=Math.log(1+s*Math.max(0,e/t-1))/s+1,i&&(n=Math.max(n,i),n/=Math.log(1+s*Math.max(0,i/e-1))/s+1),W(n,i/2,t*2)}function Cl(e,t,i,n){return t=t!==void 0?t:!0,function(s,r,a,o){if(s!==void 0){const h=e[0],l=e[e.length-1],c=i?er(h,i,a,n):h;if(o)return t?ir(s,c,l):W(s,l,c);const u=Math.min(c,s),d=Math.floor(Zs(e,u,r));return e[d]>c&&d1)u=i;else if(d>0){for(let f=0;fs&&(s=l),r=o,a=h}return s}function no(e,t,i,n,s){for(let r=0,a=i.length;r0;){const u=l.pop(),d=l.pop();let f=0;const g=e[d],_=e[d+1],m=e[u],v=e[u+1];for(let y=d+n;yf&&(c=y,f=C)}f>s&&(h[(c-t)/n]=1,d+n0&&_>f)&&(g<0&&m0&&m>g)){l=u,c=d;continue}r[a++]=l,r[a++]=c,o=l,h=c,l=u,c=d}return r[a++]=l,r[a++]=c,a}function lo(e,t,i,n,s,r,a,o){for(let h=0,l=i.length;hr&&(l-o)*(r-h)-(s-o)*(c-h)>0&&a++:c<=r&&(l-o)*(r-h)-(s-o)*(c-h)<0&&a--,o=l,h=c}return a!==0}function or(e,t,i,n,s,r){if(i.length===0||!Ee(e,t,i[0],n,s,r))return!1;for(let a=1,o=i.length;av&&(l=(c+u)/2,or(e,t,i,n,l,g)&&(m=l,v=y)),c=u}return isNaN(m)&&(m=s[r]),a?(a.push(m,g,v),a):[m,g,v]}function m1(e,t,i,n,s){let r=[];for(let a=0,o=i.length;a=s[0]&&r[2]<=s[2]||r[1]>=s[1]&&r[3]<=s[3]?!0:Bl(e,t,i,n,function(a,o){return hl(s,a,o)}):!1}function y1(e,t,i,n,s){for(let r=0,a=i.length;r0}function Mo(e,t,i,n,s){s=s!==void 0?s:!1;for(let r=0,a=i.length;r1&&typeof arguments[i-1]=="function"&&(n=arguments[i-1],--i);let s=0;for(;s0}getInteracting(){return this.hints_[pt.INTERACTING]>0}cancelAnimations(){this.setHint(pt.ANIMATING,-this.hints_[pt.ANIMATING]);let t;for(let i=0,n=this.animations_.length;i=0;--n){const s=this.animations_[n];let r=!0;for(let a=0,o=s.length;a0?l/h.duration:1;c>=1?(h.complete=!0,c=1):r=!1;const u=h.easing(c);if(h.sourceCenter){const d=h.sourceCenter[0],f=h.sourceCenter[1],g=h.targetCenter[0],_=h.targetCenter[1];this.nextCenter_=h.targetCenter;const m=d+u*(g-d),v=f+u*(_-f);this.targetCenter_=[m,v]}if(h.sourceResolution&&h.targetResolution){const d=u===1?h.targetResolution:h.sourceResolution+u*(h.targetResolution-h.sourceResolution);if(h.anchor){const f=this.getViewportSize_(this.getRotation()),g=this.constraints_.resolution(d,0,f,!0);this.targetCenter_=this.calculateCenterZoom(g,h.anchor)}this.nextResolution_=h.targetResolution,this.targetResolution_=d,this.applyTargetState_(!0)}if(h.sourceRotation!==void 0&&h.targetRotation!==void 0){const d=u===1?ii(h.targetRotation+Math.PI,2*Math.PI)-Math.PI:h.sourceRotation+u*(h.targetRotation-h.sourceRotation);if(h.anchor){const f=this.constraints_.rotation(d,!0);this.targetCenter_=this.calculateCenterRotate(f,h.anchor)}this.nextRotation_=h.targetRotation,this.targetRotation_=d}if(this.applyTargetState_(!0),i=!0,!h.complete)break}if(r){this.animations_[n]=null,this.setHint(pt.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const a=s[0].callback;a&&dn(a,!0)}}this.animations_=this.animations_.filter(Boolean),i&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,i){let n;const s=this.getCenterInternal();return s!==void 0&&(n=[s[0]-i[0],s[1]-i[1]],Ys(n,t-this.getRotation()),cl(n,i)),n}calculateCenterZoom(t,i){let n;const s=this.getCenterInternal(),r=this.getResolution();if(s!==void 0&&r!==void 0){const a=i[0]-t*(i[0]-s[0])/r,o=i[1]-t*(i[1]-s[1])/r;n=[a,o]}return n}getViewportSize_(t){const i=this.viewportSize_;if(t){const n=i[0],s=i[1];return[Math.abs(n*Math.cos(t))+Math.abs(s*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(s*Math.cos(t))]}return i}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t&&Ls(t,this.getProjection())}getCenterInternal(){return this.get(Rt.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return t!==void 0?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const i=this.calculateExtentInternal(t);return pl(i,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const i=this.getCenterInternal();j(i,"The view center is not defined");const n=this.getResolution();j(n!==void 0,"The view resolution is not defined");const s=this.getRotation();return j(s!==void 0,"The view rotation is not defined"),Ts(i,n,s,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(Rt.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,i){return this.getResolutionForExtentInternal(We(t,this.getProjection()),i)}getResolutionForExtentInternal(t,i){i=i||this.getViewportSizeMinusPadding_();const n=X(t)/i[0],s=Ft(t)/i[1];return Math.max(n,s)}getResolutionForValueFunction(t){t=t||2;const i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,s=Math.log(i/n)/Math.log(t);return function(r){return i/Math.pow(t,r*s)}}getRotation(){return this.get(Rt.ROTATION)}getValueForResolutionFunction(t){const i=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),s=this.minResolution_,r=Math.log(n/s)/i;return function(a){return Math.log(n/a)/i/r}}getViewportSizeMinusPadding_(t){let i=this.getViewportSize_(t);const n=this.padding_;return n&&(i=[i[0]-n[1]-n[3],i[1]-n[0]-n[2]]),i}getState(){const t=this.getProjection(),i=this.getResolution(),n=this.getRotation();let s=this.getCenterInternal();const r=this.padding_;if(r){const a=this.getViewportSizeMinusPadding_();s=ds(s,this.getViewportSize_(),[a[0]/2+r[3],a[1]/2+r[0]],i,n)}return{center:s.slice(0),projection:t!==void 0?t:null,resolution:i,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const i=this.getResolution();return i!==void 0&&(t=this.getZoomForResolution(i)),t}getZoomForResolution(t){let i=this.minZoom_||0,n,s;if(this.resolutions_){const r=Zs(this.resolutions_,t,1);i=r,n=this.resolutions_[r],r==this.resolutions_.length-1?s=2:s=n/this.resolutions_[r+1]}else n=this.maxResolution_,s=this.zoomFactor_;return i+Math.log(n/t)/Math.log(s)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const i=W(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[i]/this.resolutions_[i+1];return this.resolutions_[i]/Math.pow(n,W(t-i,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,i){let n;if(j(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function","Invalid extent or geometry provided as `geometry`"),Array.isArray(t)){j(!Yi(t),"Cannot fit empty extent provided as `geometry`");const s=We(t,this.getProjection());n=Jr(s)}else if(t.getType()==="Circle"){const s=We(t.getExtent(),this.getProjection());n=Jr(s),n.rotate(this.getRotation(),de(s))}else n=t;this.fitInternal(n,i)}rotatedExtentForGeometry(t){const i=this.getRotation(),n=Math.cos(i),s=Math.sin(-i),r=t.getFlatCoordinates(),a=t.getStride();let o=1/0,h=1/0,l=-1/0,c=-1/0;for(let u=0,d=r.length;u{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return!this.renderer_||!this.rendered?null:this.renderer_.getData(t)}isVisible(t){let i;const n=this.getMapInternal();!t&&n&&(t=n.getView()),t instanceof Ct?i={viewState:t.getState(),extent:t.calculateExtent()}:i=t,!i.layerStatesArray&&n&&(i.layerStatesArray=n.getLayerGroup().getLayerStatesArray());let s;i.layerStatesArray?s=i.layerStatesArray.find(a=>a.layer===this):s=this.getLayerState();const r=this.getExtent();return cr(s,i.viewState)&&(!r||Wi(r,i.extent))}getAttributions(t){if(!this.isVisible(t))return[];let i;const n=this.getSource();if(n&&(i=n.getAttributions()),!i)return[];const s=t instanceof Ct?t.getViewStateAndExtent():t;let r=i(s);return Array.isArray(r)||(r=[r]),r}render(t,i){const n=this.getRenderer();return n.prepareFrame(t)?(this.rendered=!0,n.renderFrame(t,i)):null}unrender(){this.rendered=!1}setMapInternal(t){t||this.unrender(),this.set(F.MAP,t)}getMapInternal(){return this.get(F.MAP)}setMap(t){this.mapPrecomposeKey_&&(B(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(B(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=G(t,ce.PRECOMPOSE,function(i){const s=i.frameState.layerStatesArray,r=this.getLayerState(!1);j(!s.some(function(a){return a.layer===r.layer}),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),s.push(r)},this),this.mapRenderKey_=G(this,S.CHANGE,t.render,t),this.changed())}setSource(t){this.set(F.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function cr(e,t){if(!e.visible)return!1;const i=t.resolution;if(i=e.maxResolution)return!1;const n=t.zoom;return n>e.minZoom&&n<=e.maxZoom}const is=ec;let fn;const ic=new Uint8Array(16);function nc(){if(!fn&&(fn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!fn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fn(ic)}const et=[];for(let e=0;e<256;++e)et.push((e+256).toString(16).slice(1));function sc(e,t=0){return(et[e[t+0]]+et[e[t+1]]+et[e[t+2]]+et[e[t+3]]+"-"+et[e[t+4]]+et[e[t+5]]+"-"+et[e[t+6]]+et[e[t+7]]+"-"+et[e[t+8]]+et[e[t+9]]+"-"+et[e[t+10]]+et[e[t+11]]+et[e[t+12]]+et[e[t+13]]+et[e[t+14]]+et[e[t+15]]).toLowerCase()}const rc=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ta={randomUUID:rc};function ac(e,t,i){if(ta.randomUUID&&!t&&!e)return ta.randomUUID();e=e||{};const n=e.random||(e.rng||nc)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){i=i||0;for(let s=0;s<16;++s)t[i+s]=n[s];return t}return sc(n)}const oc=Se("map:AbstractLayerModel");var hi,Fi,xe,Ce,be,li;class hc extends Xs{constructor(i){super();L(this,hi,void 0);L(this,Fi,void 0);L(this,xe,void 0);L(this,Ce,void 0);L(this,be,void 0);L(this,li,!1);O(this,Fi,i.id??ac()),O(this,be,i.attributes??{}),O(this,xe,i.title),O(this,Ce,i.description??"")}get __destroyed(){return E(this,li)}get map(){const i=E(this,hi);if(!i)throw new Error(`Layer '${this.id}' has not been attached to a map yet.`);return i}get id(){return E(this,Fi)}get title(){return E(this,xe)}get description(){return E(this,Ce)}get attributes(){return E(this,be)}destroy(){if(!E(this,li)){O(this,li,!0),this.sublayers?.destroy();try{this.emit("destroy")}catch(i){oc.warn("Unexpected error from event listener during layer destruction:",i)}}}__attachToMap(i){if(E(this,hi))throw new Error(`Layer '${this.id}' has already been attached to the map '${this.map.id}'`);O(this,hi,i)}setTitle(i){i!==E(this,xe)&&(O(this,xe,i),this.__emitChangeEvent("changed:title"))}setDescription(i){i!==E(this,Ce)&&(O(this,Ce,i),this.__emitChangeEvent("changed:description"))}updateAttributes(i){const n=E(this,be),s=Reflect.ownKeys(i);let r=!1;for(const a of s){const o=n[a],h=i[a];o!==h&&(n[a]=h,r=!0)}r&&this.__emitChangeEvent("changed:attributes")}deleteAttribute(i){const n=E(this,be);n[i]&&(delete n[i],this.__emitChangeEvent("changed:attributes"))}__emitChangeEvent(i){this.emit(i),this.emit("changed")}}hi=new WeakMap,Fi=new WeakMap,xe=new WeakMap,Ce=new WeakMap,be=new WeakMap,li=new WeakMap;const lc=Se("map:AbstractLayer");var ee,Gi,ie,ci,zi;class On extends hc{constructor(i){super(i);L(this,ee,void 0);L(this,Gi,void 0);L(this,ie,void 0);L(this,ci,void 0);L(this,zi,void 0);O(this,ee,i.olLayer),O(this,Gi,i.isBaseLayer??!1),O(this,ie,i.visible??!0);const{initial:n,resource:s}=cc(E(this,ee),r=>{O(this,ci,r),this.__emitChangeEvent("changed:loadState")});O(this,ci,n),O(this,zi,s)}get visible(){return E(this,ie)}get olLayer(){return E(this,ee)}get isBaseLayer(){return E(this,Gi)}get loadState(){return E(this,ci)}destroy(){this.__destroyed||(E(this,zi)?.destroy(),this.olLayer.dispose(),super.destroy())}__attach(i){super.__attachToMap(i)}setVisible(i){if(this.isBaseLayer){lc.warn(`Cannot change visibility of base layer '${this.id}': use activateBaseLayer() on the map's LayerCollection instead.`);return}this.__setVisible(i)}__setVisible(i){let n=!1;E(this,ie)!==i&&(O(this,ie,i),n=!0),E(this,ee).getVisible()!=E(this,ie)&&E(this,ee).setVisible(i),n&&this.__emitChangeEvent("changed:visible")}}ee=new WeakMap,Gi=new WeakMap,ie=new WeakMap,ci=new WeakMap,zi=new WeakMap;function cc(e,t){if(!(e instanceof is))return{initial:"loaded",resource:{destroy(){}}};let i=e?.getSource(),n=ea(i?.getState());const s=()=>{const o=ea(i?.getState());n!==o&&(n=o,t(n))};let r;r=i?.on("change",()=>{s()});const a=e.on("change:source",()=>{r&&ti(r),r=void 0,i=e?.getSource(),r=i?.on("change",()=>{s()}),s()});return{initial:n,resource:{destroy(){r&&ti(r),ti(a)}}}}function ea(e){switch(e){case void 0:return"loaded";case"undefined":return"not-loaded";case"loading":return"loading";case"ready":return"loaded";case"error":return"error"}}class uc extends On{get sublayers(){}}const x1=uc,Tt={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};class dc extends Ki{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.declutterExecutorGroup=null}getFeatures(t){return Z()}getData(t){return null}prepareFrame(t){return Z()}renderFrame(t,i){return Z()}loadedTileCallback(t,i,n){t[i]||(t[i]={}),t[i][n.tileCoord.toString()]=n}createLoadedTileFinder(t,i,n){return(s,r)=>{const a=this.loadedTileCallback.bind(this,n,s);return t.forEachLoadedTile(i,s,r,a)}}forEachFeatureAtCoordinate(t,i,n,s,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const i=t.target;(i.getState()===Tt.LOADED||i.getState()===Tt.ERROR)&&this.renderIfReadyAndVisible()}loadImage(t){let i=t.getState();return i!=Tt.LOADED&&i!=Tt.ERROR&&t.addEventListener(S.CHANGE,this.boundHandleImageChange_),i==Tt.IDLE&&(t.load(),i=t.getState()),i==Tt.LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&t.getSourceState()==="ready"&&t.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}}const fc=dc;class gc extends me{constructor(t,i,n,s){super(t),this.inversePixelTransform=i,this.frameState=n,this.context=s}}const po=gc,_c=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,mc=/^([a-z]*)$|^hsla?\(.*\)$/i;function yc(e){return typeof e=="string"?e:Ec(e)}function vc(e){const t=document.createElement("div");if(t.style.color=e,t.style.color!==""){document.body.appendChild(t);const i=getComputedStyle(t).color;return document.body.removeChild(t),i}return""}const Mc=function(){const t={};let i=0;return function(n){let s;if(t.hasOwnProperty(n))s=t[n];else{if(i>=1024){let r=0;for(const a in t)r++&3||(delete t[a],--i)}s=pc(n),t[n]=s,++i}return s}}();function ia(e){return Array.isArray(e)?e:Mc(e)}function pc(e){let t,i,n,s,r;if(mc.exec(e)&&(e=vc(e)),_c.exec(e)){const a=e.length-1;let o;a<=4?o=1:o=2;const h=a===4||a===8;t=parseInt(e.substr(1+0*o,o),16),i=parseInt(e.substr(1+1*o,o),16),n=parseInt(e.substr(1+2*o,o),16),h?s=parseInt(e.substr(1+3*o,o),16):s=255,o==1&&(t=(t<<4)+t,i=(i<<4)+i,n=(n<<4)+n,h&&(s=(s<<4)+s)),r=[t,i,n,s/255]}else if(e.startsWith("rgba("))r=e.slice(5,-1).split(",").map(Number),na(r);else if(e.startsWith("rgb("))r=e.slice(4,-1).split(",").map(Number),r.push(1),na(r);else throw new Error("Invalid color");return r}function na(e){return e[0]=W(e[0]+.5|0,0,255),e[1]=W(e[1]+.5|0,0,255),e[2]=W(e[2]+.5|0,0,255),e[3]=W(e[3],0,1),e}function Ec(e){let t=e[0];t!=(t|0)&&(t=t+.5|0);let i=e[1];i!=(i|0)&&(i=i+.5|0);let n=e[2];n!=(n|0)&&(n=n+.5|0);const s=e[3]===void 0?1:Math.round(e[3]*100)/100;return"rgba("+t+","+i+","+n+","+s+")"}function Pe(e,t,i,n){let s;return i&&i.length?s=i.shift():sr?s=new OffscreenCanvas(e||300,t||300):s=document.createElement("canvas"),e&&(s.width=e),t&&(s.height=t),s.getContext("2d",n)}function ur(e){const t=e.canvas;t.width=1,t.height=1,e.clearRect(0,0,1,1)}function C1(e){let t=e.offsetWidth;const i=getComputedStyle(e);return t+=parseInt(i.marginLeft,10)+parseInt(i.marginRight,10),t}function b1(e){let t=e.offsetHeight;const i=getComputedStyle(e);return t+=parseInt(i.marginTop,10)+parseInt(i.marginBottom,10),t}function sa(e,t){const i=t.parentNode;i&&i.replaceChild(e,t)}function Os(e){return e&&e.parentNode?e.parentNode.removeChild(e):null}function xc(e){for(;e.lastChild;)e.removeChild(e.lastChild)}function Cc(e,t){const i=e.childNodes;for(let n=0;;++n){const s=i[n],r=t[n];if(!s&&!r)break;if(s!==r){if(!s){e.appendChild(r);continue}if(!r){e.removeChild(s),--n;continue}e.insertBefore(r,s)}}}const R1=[];let qe=null;function bc(){qe=Pe(1,1,void 0,{willReadFrequently:!0})}class Rc extends fc{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=si(),this.pixelTransform=si(),this.inversePixelTransform=si(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,i,n){qe||bc(),qe.clearRect(0,0,1,1);let s;try{qe.drawImage(t,i,n,1,1,0,0,1,1),s=qe.getImageData(0,0,1,1).data}catch{return qe=null,null}return s}getBackground(t){let n=this.getLayer().getBackground();return typeof n=="function"&&(n=n(t.viewState.resolution)),n||void 0}useContainer(t,i,n){const s=this.getLayer().getClassName();let r,a;if(t&&t.className===s&&(!n||t&&t.style.backgroundColor&&Yn(ia(t.style.backgroundColor),ia(n)))){const o=t.firstElementChild;o instanceof HTMLCanvasElement&&(a=o.getContext("2d"))}if(a&&a.canvas.style.transform===i?(this.container=t,this.context=a,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){r=document.createElement("div"),r.className=s;let o=r.style;o.position="absolute",o.width="100%",o.height="100%",a=Pe();const h=a.canvas;r.appendChild(h),o=h.style,o.position="absolute",o.left="0",o.transformOrigin="top left",this.container=r,this.context=a}!this.containerReused&&n&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=n)}clipUnrotated(t,i,n){const s=Ne(n),r=ts(n),a=Jn(n),o=Qn(n);Et(i.coordinateToPixelTransform,s),Et(i.coordinateToPixelTransform,r),Et(i.coordinateToPixelTransform,a),Et(i.coordinateToPixelTransform,o);const h=this.inversePixelTransform;Et(h,s),Et(h,r),Et(h,a),Et(h,o),t.save(),t.beginPath(),t.moveTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.clip()}dispatchRenderEvent_(t,i,n){const s=this.getLayer();if(s.hasListener(t)){const r=new po(t,this.inversePixelTransform,n,i);s.dispatchEvent(r)}}preRender(t,i){this.frameState=i,this.dispatchRenderEvent_(ce.PRERENDER,t,i)}postRender(t,i){this.dispatchRenderEvent_(ce.POSTRENDER,t,i)}getRenderTransform(t,i,n,s,r,a,o){const h=r/2,l=a/2,c=s/i,u=-c,d=-t[0]+o,f=-t[1];return Li(this.tempTransform,h,l,c,u,-n,d,f)}disposeInternal(){delete this.frameState,super.disposeInternal()}}const Tc=Rc;class T1 extends Hn{constructor(t,i,n,s){super(),this.extent=t,this.pixelRatio_=n,this.resolution=i,this.state=typeof s=="function"?Tt.IDLE:s,this.image_=null,this.loader=typeof s=="function"?s:null}changed(){this.dispatchEvent(S.CHANGE)}getExtent(){return this.extent}getImage(){return this.image_}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){if(this.state==Tt.IDLE&&this.loader){this.state=Tt.LOADING,this.changed();const t=this.getResolution(),i=Array.isArray(t)?t[0]:t;Nh(()=>this.loader(this.getExtent(),i,this.getPixelRatio())).then(n=>{"image"in n&&(this.image_=n.image),"extent"in n&&(this.extent=n.extent),"resolution"in n&&(this.resolution=n.resolution),"pixelRatio"in n&&(this.pixelRatio_=n.pixelRatio),(n instanceof HTMLImageElement||n instanceof ImageBitmap||n instanceof HTMLCanvasElement||n instanceof HTMLVideoElement)&&(this.image_=n),this.state=Tt.LOADED}).catch(n=>{this.state=Tt.ERROR,console.error(n)}).finally(()=>this.changed())}}setImage(t){this.image_=t}setResolution(t){this.resolution=t}}function wc(e,t,i){const n=e;let s=!0,r=!1,a=!1;const o=[In(n,S.LOAD,function(){a=!0,r||t()})];return n.src&&rr?(r=!0,n.decode().then(function(){s&&t()}).catch(function(h){s&&(a?t():i())})):o.push(In(n,S.ERROR,i)),function(){s=!1,o.forEach(B)}}function Ic(e,t){return new Promise((i,n)=>{function s(){a(),i(e)}function r(){a(),n(new Error("Image load error"))}function a(){e.removeEventListener("load",s),e.removeEventListener("error",r)}e.addEventListener("load",s),e.addEventListener("error",r),t&&(e.src=t)})}function Pc(e,t){return t&&(e.src=t),rr?new Promise((i,n)=>e.decode().then(()=>i(e),n)):Ic(e)}function w1(e,t){return t&&(e.src=t),rr&&Sl?e.decode().then(()=>createImageBitmap(e)):Pc(e)}const Ac=.5,Lc=10,ra=.25;class Sc{constructor(t,i,n,s,r,a){this.sourceProj_=t,this.targetProj_=i;let o={};const h=Ln(this.targetProj_,this.sourceProj_);this.transformInv_=function(y){const p=y[0]+"/"+y[1];return o[p]||(o[p]=h(y)),o[p]},this.maxSourceExtent_=s,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!s&&!!this.sourceProj_.getExtent()&&X(s)>=X(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?X(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?X(this.targetProj_.getExtent()):null;const l=Ne(n),c=ts(n),u=Jn(n),d=Qn(n),f=this.transformInv_(l),g=this.transformInv_(c),_=this.transformInv_(u),m=this.transformInv_(d),v=Lc+(a?Math.max(0,Math.ceil(Math.log2(Rs(n)/(a*a*256*256)))):0);if(this.addQuad_(l,c,u,d,f,g,_,m,v),this.wrapsXInSource_){let y=1/0;this.triangles_.forEach(function(p,M,C){y=Math.min(y,p.source[0][0],p.source[1][0],p.source[2][0])}),this.triangles_.forEach(p=>{if(Math.max(p.source[0][0],p.source[1][0],p.source[2][0])-y>this.sourceWorldWidth_/2){const M=[[p.source[0][0],p.source[0][1]],[p.source[1][0],p.source[1][1]],[p.source[2][0],p.source[2][1]]];M[0][0]-y>this.sourceWorldWidth_/2&&(M[0][0]-=this.sourceWorldWidth_),M[1][0]-y>this.sourceWorldWidth_/2&&(M[1][0]-=this.sourceWorldWidth_),M[2][0]-y>this.sourceWorldWidth_/2&&(M[2][0]-=this.sourceWorldWidth_);const C=Math.min(M[0][0],M[1][0],M[2][0]);Math.max(M[0][0],M[1][0],M[2][0])-C.5&&u<1;let g=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const m=jr([t,i,n,s]);g=X(m)/this.targetWorldWidth_>ra||g}!f&&this.sourceProj_.isGlobal()&&u&&(g=u>ra||g)}if(!g&&this.maxSourceExtent_&&isFinite(c[0])&&isFinite(c[1])&&isFinite(c[2])&&isFinite(c[3])&&!Wi(c,this.maxSourceExtent_))return;let _=0;if(!g&&(!isFinite(r[0])||!isFinite(r[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(h[0])||!isFinite(h[1]))){if(l>0)g=!0;else if(_=(!isFinite(r[0])||!isFinite(r[1])?8:0)+(!isFinite(a[0])||!isFinite(a[1])?4:0)+(!isFinite(o[0])||!isFinite(o[1])?2:0)+(!isFinite(h[0])||!isFinite(h[1])?1:0),_!=1&&_!=2&&_!=4&&_!=8)return}if(l>0){if(!g){const m=[(t[0]+n[0])/2,(t[1]+n[1])/2],v=this.transformInv_(m);let y;f?y=(ii(r[0],d)+ii(o[0],d))/2-ii(v[0],d):y=(r[0]+o[0])/2-v[0];const p=(r[1]+o[1])/2-v[1];g=y*y+p*p>this.errorThresholdSquared_}if(g){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){const m=[(i[0]+n[0])/2,(i[1]+n[1])/2],v=this.transformInv_(m),y=[(s[0]+t[0])/2,(s[1]+t[1])/2],p=this.transformInv_(y);this.addQuad_(t,i,m,y,r,a,v,p,l-1),this.addQuad_(y,m,n,s,p,v,o,h,l-1)}else{const m=[(t[0]+i[0])/2,(t[1]+i[1])/2],v=this.transformInv_(m),y=[(n[0]+s[0])/2,(n[1]+s[1])/2],p=this.transformInv_(y);this.addQuad_(t,m,y,s,r,v,p,h,l-1),this.addQuad_(m,i,n,y,v,a,o,p,l-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}_&11||this.addTriangle_(t,n,s,r,o,h),_&14||this.addTriangle_(t,n,i,r,o,a),_&&(_&13||this.addTriangle_(i,s,t,a,h,r),_&7||this.addTriangle_(i,s,n,a,h,o))}calculateSourceExtent(){const t=Oe();return this.triangles_.forEach(function(i,n,s){const r=i.source;pn(t,r[0]),pn(t,r[1]),pn(t,r[2])}),t}getTriangles(){return this.triangles_}}const Oc=Sc;let fs;const ri=[];function aa(e,t,i,n,s){e.beginPath(),e.moveTo(0,0),e.lineTo(t,i),e.lineTo(n,s),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(t,n)+1,Math.max(i,s)),e.restore()}function gs(e,t){return Math.abs(e[t*4]-210)>2||Math.abs(e[t*4+3]-.75*255)>2}function Nc(){if(fs===void 0){const e=Pe(6,6,ri);e.globalCompositeOperation="lighter",e.fillStyle="rgba(210, 0, 0, 0.75)",aa(e,4,5,4,0),aa(e,4,5,0,5);const t=e.getImageData(0,0,3,3).data;fs=gs(t,0)||gs(t,4)||gs(t,8),ur(e),ri.push(e.canvas)}return fs}function oa(e,t,i,n){const s=Ba(i,t,e);let r=$r(t,n,i);const a=t.getMetersPerUnit();a!==void 0&&(r*=a);const o=e.getMetersPerUnit();o!==void 0&&(r/=o);const h=e.getExtent();if(!h||Ws(h,s)){const l=$r(e,r,s)/r;isFinite(l)&&l>0&&(r/=l)}return r}function Dc(e,t,i,n){const s=de(i);let r=oa(e,t,s,n);return(!isFinite(r)||r<=0)&&ja(i,function(a){return r=oa(e,t,a,n),isFinite(r)&&r>0}),r}function Fc(e,t,i,n,s,r,a,o,h,l,c,u){const d=Pe(Math.round(i*e),Math.round(i*t),ri);if(u||(d.imageSmoothingEnabled=!1),h.length===0)return d.canvas;d.scale(i,i);function f(M){return Math.round(M*i)/i}d.globalCompositeOperation="lighter";const g=Oe();h.forEach(function(M,C,T){sl(g,M.extent)});const _=X(g),m=Ft(g),v=Pe(Math.round(i*_/n),Math.round(i*m/n),ri);u||(v.imageSmoothingEnabled=!1);const y=i/n;h.forEach(function(M,C,T){const I=M.extent[0]-g[0],P=-(M.extent[3]-g[3]),z=X(M.extent),U=Ft(M.extent);M.image.width>0&&M.image.height>0&&v.drawImage(M.image,l,l,M.image.width-2*l,M.image.height-2*l,I*y,P*y,z*y,U*y)});const p=Ne(a);return o.getTriangles().forEach(function(M,C,T){const I=M.source,P=M.target;let z=I[0][0],U=I[0][1],Q=I[1][0],gt=I[1][1],Pt=I[2][0],pi=I[2][1];const At=f((P[0][0]-p[0])/r),zt=f(-(P[0][1]-p[1])/r),k=f((P[1][0]-p[0])/r),_t=f(-(P[1][1]-p[1])/r),kt=f((P[2][0]-p[0])/r),Lt=f(-(P[2][1]-p[1])/r),ye=z,ht=U;z=0,U=0,Q-=ye,gt-=ht,Pt-=ye,pi-=ht;const St=[[Q,gt,0,0,k-At],[Pt,pi,0,0,kt-At],[0,0,Q,gt,_t-zt],[0,0,Pt,pi,Lt-zt]],Y=jh(St);if(Y){if(d.save(),d.beginPath(),Nc()||!u){d.moveTo(k,_t);const V=4,De=At-k,Wt=zt-_t;for(let lt=0;lt=this.text.length)return;e=this.text[this.place++]}switch(this.state){case Ni:return this.neutral(e);case Eo:return this.keyword(e);case Nn:return this.quoted(e);case Co:return this.afterquote(e);case xo:return this.number(e);case dr:return}};Vt.prototype.afterquote=function(e){if(e==='"'){this.word+='"',this.state=Nn;return}if(ns.test(e)){this.word=this.word.trim(),this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in afterquote yet, index '+this.place)};Vt.prototype.afterItem=function(e){if(e===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=Ni;return}if(e==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=Ni,this.currentObject=this.stack.pop(),this.currentObject||(this.state=dr);return}};Vt.prototype.number=function(e){if(bo.test(e)){this.word+=e;return}if(ns.test(e)){this.word=parseFloat(this.word),this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in number yet, index '+this.place)};Vt.prototype.quoted=function(e){if(e==='"'){this.state=Co;return}this.word+=e};Vt.prototype.keyword=function(e){if(Yc.test(e)){this.word+=e;return}if(e==="["){var t=[];t.push(this.word),this.level++,this.root===null?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,this.state=Ni;return}if(ns.test(e)){this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in keyword yet, index '+this.place)};Vt.prototype.neutral=function(e){if(Wc.test(e)){this.word=e,this.state=Eo;return}if(e==='"'){this.word="",this.state=Nn;return}if(bo.test(e)){this.word=e,this.state=xo;return}if(ns.test(e)){this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in neutral yet, index '+this.place)};Vt.prototype.output=function(){for(;this.place0?90:-90),e.lat_ts=e.lat1):!e.lat_ts&&e.lat0&&e.projName==="Polar_Stereographic"&&(e.lat_ts=e.lat0,e.lat0=Ot(e.lat0>0?90:-90))}function Ro(e){var t=Hc(e),i=t.shift(),n=t.shift();t.unshift(["name",n]),t.unshift(["type",i]);var s={};return Ye(t,s),tu(s),s}function at(e){var t=this;if(arguments.length===2){var i=arguments[1];typeof i=="string"?i.charAt(0)==="+"?at[e]=Ds(arguments[1]):at[e]=Ro(arguments[1]):at[e]=i}else if(arguments.length===1){if(Array.isArray(e))return e.map(function(n){Array.isArray(n)?at.apply(t,n):at(n)});if(typeof e=="string"){if(e in at)return at[e]}else"EPSG"in e?at["EPSG:"+e.EPSG]=e:"ESRI"in e?at["ESRI:"+e.ESRI]=e:"IAU2000"in e?at["IAU2000:"+e.IAU2000]=e:console.log(e);return}}Uc(at);function eu(e){return typeof e=="string"}function iu(e){return e in at}var nu=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function su(e){return nu.some(function(t){return e.indexOf(t)>-1})}var ru=["3857","900913","3785","102113"];function au(e){var t=ge(e,"authority");if(t){var i=ge(t,"epsg");return i&&ru.indexOf(i)>-1}}function ou(e){var t=ge(e,"extension");if(t)return ge(t,"proj4")}function hu(e){return e[0]==="+"}function lu(e){if(eu(e)){if(iu(e))return at[e];if(su(e)){var t=Ro(e);if(au(t))return at["EPSG:3857"];var i=ou(t);return i?Ds(i):t}if(hu(e))return Ds(e)}else return e}function fa(e,t){e=e||{};var i,n;if(!t)return e;for(n in t)i=t[n],i!==void 0&&(e[n]=i);return e}function Gt(e,t,i){var n=e*t;return i/Math.sqrt(1-n*n)}function Hi(e){return e<0?-1:1}function R(e){return Math.abs(e)<=K?e:e-Hi(e)*Oi}function It(e,t,i){var n=e*i,s=.5*e;return n=Math.pow((1-n)/(1+n),s),Math.tan(.5*(x-t))/n}function Di(e,t){for(var i=.5*e,n,s,r=x-2*Math.atan(t),a=0;a<=15;a++)if(n=e*Math.sin(r),s=x-2*Math.atan(t*Math.pow((1-n)/(1+n),i))-r,r+=s,Math.abs(s)<=1e-10)return r;return-9999}function cu(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=Gt(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function uu(e){var t=e.x,i=e.y;if(i*Nt>90&&i*Nt<-90&&t*Nt>180&&t*Nt<-180)return null;var n,s;if(Math.abs(Math.abs(i)-x)<=b)return null;if(this.sphere)n=this.x0+this.a*this.k0*R(t-this.long0),s=this.y0+this.a*this.k0*Math.log(Math.tan(N+.5*i));else{var r=Math.sin(i),a=It(this.e,i,r);n=this.x0+this.a*this.k0*R(t-this.long0),s=this.y0-this.a*this.k0*Math.log(a)}return e.x=n,e.y=s,e}function du(e){var t=e.x-this.x0,i=e.y-this.y0,n,s;if(this.sphere)s=x-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var r=Math.exp(-i/(this.a*this.k0));if(s=Di(this.e,r),s===-9999)return null}return n=R(this.long0+t/(this.a*this.k0)),e.x=n,e.y=s,e}var fu=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];const gu={init:cu,forward:uu,inverse:du,names:fu};function _u(){}function ga(e){return e}var mu=["longlat","identity"];const yu={init:_u,forward:ga,inverse:ga,names:mu};var vu=[gu,yu],En={},Dn=[];function To(e,t){var i=Dn.length;return e.names?(Dn[i]=e,e.names.forEach(function(n){En[n.toLowerCase()]=i}),this):(console.log(t),!0)}function Mu(e){if(!e)return!1;var t=e.toLowerCase();if(typeof En[t]<"u"&&Dn[En[t]])return Dn[En[t]]}function pu(){vu.forEach(To)}const Eu={start:pu,add:To,get:Mu};var A={};A.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};A.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};A.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};A.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};A.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};A.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};A.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};A.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};A.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};A.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};A.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};A.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};A.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};A.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};A.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};A.clrk80ign={a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"};A.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};A.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};A.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};A.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};A.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};A.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};A.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};A.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};A.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};A.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};A.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};A.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};A.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};A.hough={a:6378270,rf:297,ellipseName:"Hough"};A.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};A.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};A.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};A.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};A.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};A.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};A.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};A.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};A.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};A.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};A.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};A.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var xu=A.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};A.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function Cu(e,t,i,n){var s=e*e,r=t*t,a=(s-r)/s,o=0;n?(e*=1-a*(qc+a*(Zc+a*Kc)),s=e*e,a=0):o=Math.sqrt(a);var h=(s-r)/r;return{es:a,e:o,ep2:h}}function bu(e,t,i,n,s){if(!e){var r=ge(A,n);r||(r=xu),e=r.a,t=r.b,i=r.rf}return i&&!t&&(t=(1-1/i)*e),(i===0||Math.abs(e-t)3&&(o.datum_params[3]!==0||o.datum_params[4]!==0||o.datum_params[5]!==0||o.datum_params[6]!==0)&&(o.datum_type=Le,o.datum_params[3]*=Ii,o.datum_params[4]*=Ii,o.datum_params[5]*=Ii,o.datum_params[6]=o.datum_params[6]/1e6+1)),a&&(o.datum_type=ai,o.grids=a),o.a=i,o.b=n,o.es=s,o.ep2=r,o}var wo={};function Tu(e,t){var i=new DataView(t),n=Pu(i),s=Au(i,n);s.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var r=Lu(i,s,n),a={header:s,subgrids:r};return wo[e]=a,a}function wu(e){if(e===void 0)return null;var t=e.split(",");return t.map(Iu)}function Iu(e){if(e.length===0)return null;var t=e[0]==="@";return t&&(e=e.slice(1)),e==="null"?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:wo[e]||null,isNull:!1}}function He(e){return e/3600*Math.PI/180}function Pu(e){var t=e.getInt32(8,!1);return t===11?!1:(t=e.getInt32(8,!0),t!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function Au(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:Fs(e,56,56+8).trim(),fromSemiMajorAxis:e.getFloat64(120,t),fromSemiMinorAxis:e.getFloat64(136,t),toSemiMajorAxis:e.getFloat64(152,t),toSemiMinorAxis:e.getFloat64(168,t)}}function Fs(e,t,i){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,i)))}function Lu(e,t,i){for(var n=176,s=[],r=0;r5e-11?!1:e.datum_type===Ae?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type===Le?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6]:!0}function Io(e,t,i){var n=e.x,s=e.y,r=e.z?e.z:0,a,o,h,l;if(s<-x&&s>-1.001*x)s=-x;else if(s>x&&s<1.001*x)s=x;else{if(s<-x)return{x:-1/0,y:-1/0,z:e.z};if(s>x)return{x:1/0,y:1/0,z:e.z}}return n>Math.PI&&(n-=2*Math.PI),o=Math.sin(s),l=Math.cos(s),h=o*o,a=i/Math.sqrt(1-t*h),{x:(a+r)*l*Math.cos(n),y:(a+r)*l*Math.sin(n),z:(a*(1-t)+r)*o}}function Po(e,t,i,n){var s=1e-12,r=s*s,a=30,o,h,l,c,u,d,f,g,_,m,v,y,p,M=e.x,C=e.y,T=e.z?e.z:0,I,P,z;if(o=Math.sqrt(M*M+C*C),h=Math.sqrt(M*M+C*C+T*T),o/ir&&pn.y||c>n.x||fo&&Math.abs(h.y)>o);if(a<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=R(r.x+i.ll[0]),n.y=r.y+i.ll[1]}else isNaN(r.x)||(n.x=e.x+r.x,n.y=e.y+r.y);return n}function ma(e,t){var i={x:e.x/t.del[0],y:e.y/t.del[1]},n={x:Math.floor(i.x),y:Math.floor(i.y)},s={x:i.x-1*n.x,y:i.y-1*n.y},r={x:Number.NaN,y:Number.NaN},a;if(n.x<0||n.x>=t.lim[0]||n.y<0||n.y>=t.lim[1])return r;a=n.y*t.lim[0]+n.x;var o={x:t.cvs[a][0],y:t.cvs[a][1]};a++;var h={x:t.cvs[a][0],y:t.cvs[a][1]};a+=t.lim[0];var l={x:t.cvs[a][0],y:t.cvs[a][1]};a--;var c={x:t.cvs[a][0],y:t.cvs[a][1]},u=s.x*s.y,d=s.x*(1-s.y),f=(1-s.x)*(1-s.y),g=(1-s.x)*s.y;return r.x=f*o.x+d*h.x+g*c.x+u*l.x,r.y=f*o.y+d*h.y+g*c.y+u*l.y,r}function ya(e,t,i){var n=i.x,s=i.y,r=i.z||0,a,o,h,l={};for(h=0;h<3;h++)if(!(t&&h===2&&i.z===void 0))switch(h===0?(a=n,"ew".indexOf(e.axis[h])!==-1?o="x":o="y"):h===1?(a=s,"ns".indexOf(e.axis[h])!==-1?o="y":o="x"):(a=r,o="z"),e.axis[h]){case"e":l[o]=a;break;case"w":l[o]=-a;break;case"n":l[o]=a;break;case"s":l[o]=-a;break;case"u":i[o]!==void 0&&(l.z=a);break;case"d":i[o]!==void 0&&(l.z=-a);break;default:return null}return l}function Ao(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t}function ju(e){va(e.x),va(e.y)}function va(e){if(typeof Number.isFinite=="function"){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if(typeof e!="number"||e!==e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function Uu(e,t){return(e.datum.datum_type===Ae||e.datum.datum_type===Le||e.datum.datum_type===ai)&&t.datumCode!=="WGS84"||(t.datum.datum_type===Ae||t.datum.datum_type===Le||t.datum.datum_type===ai)&&e.datumCode!=="WGS84"}function Fn(e,t,i,n){var s;Array.isArray(i)?i=Ao(i):i={x:i.x,y:i.y,z:i.z,m:i.m};var r=i.z!==void 0;if(ju(i),e.datum&&t.datum&&Uu(e,t)&&(s=new Dt("WGS84"),i=Fn(e,s,i,n),e=s),n&&e.axis!=="enu"&&(i=ya(e,!1,i)),e.projName==="longlat")i={x:i.x*it,y:i.y*it,z:i.z||0};else if(e.to_meter&&(i={x:i.x*e.to_meter,y:i.y*e.to_meter,z:i.z||0}),i=e.inverse(i),!i)return;if(e.from_greenwich&&(i.x+=e.from_greenwich),i=zu(e.datum,t.datum,i),!!i)return t.from_greenwich&&(i={x:i.x-t.from_greenwich,y:i.y,z:i.z||0}),t.projName==="longlat"?i={x:i.x*Nt,y:i.y*Nt,z:i.z||0}:(i=t.forward(i),t.to_meter&&(i={x:i.x/t.to_meter,y:i.y/t.to_meter,z:i.z||0})),n&&t.axis!=="enu"?ya(t,!0,i):(r||delete i.z,i)}var Ma=Dt("WGS84");function _s(e,t,i,n){var s,r,a;return Array.isArray(i)?(s=Fn(e,t,i,n)||{x:NaN,y:NaN},i.length>2?typeof e.name<"u"&&e.name==="geocent"||typeof t.name<"u"&&t.name==="geocent"?typeof s.z=="number"?[s.x,s.y,s.z].concat(i.splice(3)):[s.x,s.y,i[2]].concat(i.splice(3)):[s.x,s.y].concat(i.splice(2)):[s.x,s.y]):(r=Fn(e,t,i,n),a=Object.keys(i),a.length===2||a.forEach(function(o){if(typeof e.name<"u"&&e.name==="geocent"||typeof t.name<"u"&&t.name==="geocent"){if(o==="x"||o==="y"||o==="z")return}else if(o==="x"||o==="y")return;r[o]=i[o]}),r)}function pa(e){return e instanceof Dt?e:e.oProj?e.oProj:Dt(e)}function dt(e,t,i){e=pa(e);var n=!1,s;return typeof t>"u"?(t=e,e=Ma,n=!0):(typeof t.x<"u"||Array.isArray(t))&&(i=t,t=e,e=Ma,n=!0),t=pa(t),i?_s(e,t,i):(s={forward:function(r,a){return _s(e,t,r,a)},inverse:function(r,a){return _s(t,e,r,a)}},n&&(s.oProj=t),s)}var Ea=6,Lo="AJSAJS",So="AFAFAF",Qe=65,ct=73,vt=79,bi=86,Ri=90;const $u={forward:Oo,inverse:Xu,toPoint:No};function Oo(e,t){return t=t||5,Ku(qu({lat:e[1],lon:e[0]}),t)}function Xu(e){var t=fr(Fo(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]}function No(e){var t=fr(Fo(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function ms(e){return e*(Math.PI/180)}function xa(e){return 180*(e/Math.PI)}function qu(e){var t=e.lat,i=e.lon,n=6378137,s=.00669438,r=.9996,a,o,h,l,c,u,d,f=ms(t),g=ms(i),_,m;m=Math.floor((i+180)/6)+1,i===180&&(m=60),t>=56&&t<64&&i>=3&&i<12&&(m=32),t>=72&&t<84&&(i>=0&&i<9?m=31:i>=9&&i<21?m=33:i>=21&&i<33?m=35:i>=33&&i<42&&(m=37)),a=(m-1)*6-180+3,_=ms(a),o=s/(1-s),h=n/Math.sqrt(1-s*Math.sin(f)*Math.sin(f)),l=Math.tan(f)*Math.tan(f),c=o*Math.cos(f)*Math.cos(f),u=Math.cos(f)*(g-_),d=n*((1-s/4-3*s*s/64-5*s*s*s/256)*f-(3*s/8+3*s*s/32+45*s*s*s/1024)*Math.sin(2*f)+(15*s*s/256+45*s*s*s/1024)*Math.sin(4*f)-35*s*s*s/3072*Math.sin(6*f));var v=r*h*(u+(1-l+c)*u*u*u/6+(5-18*l+l*l+72*c-58*o)*u*u*u*u*u/120)+5e5,y=r*(d+h*Math.tan(f)*(u*u/2+(5-l+9*c+4*c*c)*u*u*u*u/24+(61-58*l+l*l+600*c-330*o)*u*u*u*u*u*u/720));return t<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(v),zoneNumber:m,zoneLetter:Zu(t)}}function fr(e){var t=e.northing,i=e.easting,n=e.zoneLetter,s=e.zoneNumber;if(s<0||s>60)return null;var r=.9996,a=6378137,o=.00669438,h,l=(1-Math.sqrt(1-o))/(1+Math.sqrt(1-o)),c,u,d,f,g,_,m,v,y,p=i-5e5,M=t;n<"N"&&(M-=1e7),m=(s-1)*6-180+3,h=o/(1-o),_=M/r,v=_/(a*(1-o/4-3*o*o/64-5*o*o*o/256)),y=v+(3*l/2-27*l*l*l/32)*Math.sin(2*v)+(21*l*l/16-55*l*l*l*l/32)*Math.sin(4*v)+151*l*l*l/96*Math.sin(6*v),c=a/Math.sqrt(1-o*Math.sin(y)*Math.sin(y)),u=Math.tan(y)*Math.tan(y),d=h*Math.cos(y)*Math.cos(y),f=a*(1-o)/Math.pow(1-o*Math.sin(y)*Math.sin(y),1.5),g=p/(c*r);var C=y-c*Math.tan(y)/f*(g*g/2-(5+3*u+10*d-4*d*d-9*h)*g*g*g*g/24+(61+90*u+298*d+45*u*u-252*h-3*d*d)*g*g*g*g*g*g/720);C=xa(C);var T=(g-(1+2*u+d)*g*g*g/6+(5-2*d+28*u-3*d*d+8*h+24*u*u)*g*g*g*g*g/120)/Math.cos(y);T=m+xa(T);var I;if(e.accuracy){var P=fr({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});I={top:P.lat,right:P.lon,bottom:C,left:T}}else I={lat:C,lon:T};return I}function Zu(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function Ku(e,t){var i="00000"+e.easting,n="00000"+e.northing;return e.zoneNumber+e.zoneLetter+Bu(e.easting,e.northing,e.zoneNumber)+i.substr(i.length-5,t)+n.substr(n.length-5,t)}function Bu(e,t,i){var n=Do(i),s=Math.floor(e/1e5),r=Math.floor(t/1e5)%20;return Vu(s,r,n)}function Do(e){var t=e%Ea;return t===0&&(t=Ea),t}function Vu(e,t,i){var n=i-1,s=Lo.charCodeAt(n),r=So.charCodeAt(n),a=s+e-1,o=r+t,h=!1;a>Ri&&(a=a-Ri+Qe-1,h=!0),(a===ct||sct||(a>ct||svt||(a>vt||sRi&&(a=a-Ri+Qe-1),o>bi?(o=o-bi+Qe-1,h=!0):h=!1,(o===ct||rct||(o>ct||rvt||(o>vt||rbi&&(o=o-bi+Qe-1);var l=String.fromCharCode(a)+String.fromCharCode(o);return l}function Fo(e){if(e&&e.length===0)throw"MGRSPoint coverting from nothing";for(var t=e.length,i=null,n="",s,r=0;!/[A-Z]/.test(s=e.charAt(r));){if(r>=2)throw"MGRSPoint bad conversion from: "+e;n+=s,r++}var a=parseInt(n,10);if(r===0||r+3>t)throw"MGRSPoint bad conversion from: "+e;var o=e.charAt(r++);if(o<="A"||o==="B"||o==="Y"||o>="Z"||o==="I"||o==="O")throw"MGRSPoint zone letter "+o+" not handled: "+e;i=e.substring(r,r+=2);for(var h=Do(a),l=Wu(i.charAt(0),h),c=Yu(i.charAt(1),h);c{if(!t.has(e))throw TypeError("Cannot "+i)};var E=(e,t,i)=>(ls(e,t,"read from private field"),i?i.call(e):t.get(e)),L=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},O=(e,t,i,n)=>(ls(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i);var Sr=(e,t,i,n)=>({set _(s){O(e,t,s,i)},get _(){return E(e,t,n)}}),bt=(e,t,i)=>(ls(e,t,"access private method"),i);import{c as Se,r as H,a2 as Th,j as Rn,q as wh,a3 as Or,y as Nr,p as Ih,m as Dr}from"./49b2c148dcb3.js";import{c as Ph,B as Ah}from"./fa35e3e86a4c.js";import{E as Xs}from"./adc90c48e771.js";class Lh{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}const qs=Lh;class Sh{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}const me=Sh;function Vm(e,t,i){let n,s;i=i||Wn;let r=0,a=e.length,o=!1;for(;r>1),s=+i(e[n],t),s<0?r=n+1:(a=n,o=!s);return o?r:~r}function Wn(e,t){return e>t?1:e0?s-1:s}return n-1}if(i>0){for(let s=1;s0||i&&a===0)})}function Tn(){return!0}function qi(){return!1}function wn(){}function Dh(e){let t=!1,i,n,s;return function(){const r=Array.prototype.slice.call(arguments);return(!t||this!==s||!Yn(r,n))&&(t=!0,s=this,n=r,i=e.apply(this,arguments)),i}}function Fh(e){function t(){let i;try{i=e()}catch(n){return Promise.reject(n)}return i instanceof Promise?i:Promise.resolve(i)}return t()}function Zi(e){for(const t in e)delete e[t]}function Gh(e){let t;for(t in e)return!1;return!t}class zh extends qs{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,i){if(!t||!i)return;const n=this.listeners_||(this.listeners_={}),s=n[t]||(n[t]=[]);s.includes(i)||s.push(i)}dispatchEvent(t){const i=typeof t=="string",n=i?t:t.type,s=this.listeners_&&this.listeners_[n];if(!s)return;const r=i?new me(t):t;r.target||(r.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),o=this.pendingRemovals_||(this.pendingRemovals_={});n in a||(a[n]=0,o[n]=0),++a[n];let h;for(let l=0,c=s.length;l0:!1}removeEventListener(t,i){const n=this.listeners_&&this.listeners_[t];if(n){const s=n.indexOf(i);s!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[s]=wn,++this.pendingRemovals_[t]):(n.splice(s,1),n.length===0&&delete this.listeners_[t]))}}}const Hn=zh,S={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"};function G(e,t,i,n,s){if(n&&n!==e&&(i=i.bind(n)),s){const a=i;i=function(){e.removeEventListener(t,i),a.apply(this,arguments)}}const r={target:e,type:t,listener:i};return e.addEventListener(t,i),r}function In(e,t,i,n){return G(e,t,i,n,!0)}function B(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),Zi(e))}class Ki extends Hn{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(S.CHANGE)}getRevision(){return this.revision_}onInternal(t,i){if(Array.isArray(t)){const n=t.length,s=new Array(n);for(let r=0;r1?(i=s,n=r):h>0&&(i+=a*h,n+=o*h)}return ei(e,t,i,n)}function ei(e,t,i,n){const s=i-e,r=n-t;return s*s+r*r}function $h(e){const t=e.length;for(let n=0;nr&&(r=h,s=o)}if(r===0)return null;const a=e[s];e[s]=e[n],e[n]=a;for(let o=n+1;o=0;n--){i[n]=e[n][t]/e[n][n];for(let s=n-1;s>=0;s--)e[s][t]-=e[s][n]*i[n]}return i}function Ie(e){return e*Math.PI/180}function ii(e,t){const i=e%t;return i*t<0?i+t:i}function Xh(e,t,i){return e+i*(t-e)}function Ks(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}function Ym(e,t){return Math.round(Ks(e,t))}function hn(e,t){return Math.floor(Ks(e,t))}function ln(e,t){return Math.ceil(Ks(e,t))}class qh extends Bt{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const i=Object.assign({},t);typeof t.properties=="object"&&(delete i.properties,Object.assign(i,t.properties)),i[F.OPACITY]=t.opacity!==void 0?t.opacity:1,j(typeof i[F.OPACITY]=="number","Layer opacity must be a number"),i[F.VISIBLE]=t.visible!==void 0?t.visible:!0,i[F.Z_INDEX]=t.zIndex,i[F.MAX_RESOLUTION]=t.maxResolution!==void 0?t.maxResolution:1/0,i[F.MIN_RESOLUTION]=t.minResolution!==void 0?t.minResolution:0,i[F.MIN_ZOOM]=t.minZoom!==void 0?t.minZoom:-1/0,i[F.MAX_ZOOM]=t.maxZoom!==void 0?t.maxZoom:1/0,this.className_=i.className!==void 0?i.className:"ol-layer",delete i.className,this.setProperties(i),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const i=this.state_||{layer:this,managed:t===void 0?!0:t},n=this.getZIndex();return i.opacity=W(Math.round(this.getOpacity()*100)/100,0,1),i.visible=this.getVisible(),i.extent=this.getExtent(),i.zIndex=n===void 0&&!i.managed?1/0:n,i.maxResolution=this.getMaxResolution(),i.minResolution=Math.max(this.getMinResolution(),0),i.minZoom=this.getMinZoom(),i.maxZoom=this.getMaxZoom(),this.state_=i,i}getLayersArray(t){return Z()}getLayerStatesArray(t){return Z()}getExtent(){return this.get(F.EXTENT)}getMaxResolution(){return this.get(F.MAX_RESOLUTION)}getMinResolution(){return this.get(F.MIN_RESOLUTION)}getMinZoom(){return this.get(F.MIN_ZOOM)}getMaxZoom(){return this.get(F.MAX_ZOOM)}getOpacity(){return this.get(F.OPACITY)}getSourceState(){return Z()}getVisible(){return this.get(F.VISIBLE)}getZIndex(){return this.get(F.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(F.EXTENT,t)}setMaxResolution(t){this.set(F.MAX_RESOLUTION,t)}setMinResolution(t){this.set(F.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(F.MAX_ZOOM,t)}setMinZoom(t){this.set(F.MIN_ZOOM,t)}setOpacity(t){j(typeof t=="number","Layer opacity must be a number"),this.set(F.OPACITY,t)}setVisible(t){this.set(F.VISIBLE,t)}setZIndex(t){this.set(F.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const Fa=qh,ce={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"},pt={ANIMATING:0,INTERACTING:1},Rt={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},Zh=42,Bs=256,Ai={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};let Kh=class{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=t.extent!==void 0?t.extent:null,this.worldExtent_=t.worldExtent!==void 0?t.worldExtent:null,this.axisOrientation_=t.axisOrientation!==void 0?t.axisOrientation:"enu",this.global_=t.global!==void 0?t.global:!1,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_||Ai[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_}};const Vs=Kh,Bi=6378137,Ve=Math.PI*Bi,Bh=[-Ve,-Ve,Ve,Ve],Vh=[-180,-85,180,85],cn=Bi*Math.log(Math.tan(Math.PI/2));class ze extends Vs{constructor(t){super({code:t,units:"m",extent:Bh,global:!0,worldExtent:Vh,getPointResolution:function(i,n){return i/Math.cosh(n[1]/Bi)}})}}const Gr=[new ze("EPSG:3857"),new ze("EPSG:102100"),new ze("EPSG:102113"),new ze("EPSG:900913"),new ze("http://www.opengis.net/def/crs/EPSG/0/3857"),new ze("http://www.opengis.net/gml/srs/epsg.xml#3857")];function Wh(e,t,i){const n=e.length;i=i>1?i:2,t===void 0&&(i>2?t=e.slice():t=new Array(n));for(let s=0;scn?r=cn:r<-cn&&(r=-cn),t[s+1]=r}return t}function Yh(e,t,i){const n=e.length;i=i>1?i:2,t===void 0&&(i>2?t=e.slice():t=new Array(n));for(let s=0;ss&&(h=h|nt.RIGHT),or&&(h=h|nt.ABOVE),h===nt.UNKNOWN&&(h=nt.INTERSECTING),h}function Oe(){return[1/0,1/0,-1/0,-1/0]}function yi(e,t,i,n,s){return s?(s[0]=e,s[1]=t,s[2]=i,s[3]=n,s):[e,t,i,n]}function Vi(e){return yi(1/0,1/0,-1/0,-1/0,e)}function sl(e,t){const i=e[0],n=e[1];return yi(i,n,i,n,t)}function rl(e,t,i,n,s){const r=Vi(s);return ja(r,e,t,i,n)}function Pn(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function al(e,t){return t[0]e[2]&&(e[2]=t[2]),t[1]e[3]&&(e[3]=t[3]),e}function pn(e,t){t[0]e[2]&&(e[2]=t[0]),t[1]e[3]&&(e[3]=t[1])}function ja(e,t,i,n,s){for(;it[0]?n[0]=e[0]:n[0]=t[0],e[1]>t[1]?n[1]=e[1]:n[1]=t[1],e[2]=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function Yi(e){return e[2]=a&&_<=h),!n&&r&nt.RIGHT&&!(s&nt.RIGHT)&&(m=f-(d-h)*g,n=m>=o&&m<=l),!n&&r&nt.BELOW&&!(s&nt.BELOW)&&(_=d-(f-o)/g,n=_>=a&&_<=h),!n&&r&nt.LEFT&&!(s&nt.LEFT)&&(m=f-(d-a)*g,n=m>=o&&m<=l)}return n}function t1(e,t,i,n){if(Yi(e))return Vi(i);let s=[];if(n>1){const o=e[2]-e[0],h=e[3]-e[1];for(let l=0;l=i[2])){const s=X(i),a=Math.floor((n[0]-i[0])/s)*s;e[0]-=a,e[2]-=a}return e}function e1(e,t){if(t.canWrapX()){const i=t.getExtent();if(!isFinite(e[0])||!isFinite(e[2]))return[[i[0],e[1],i[2],e[3]]];ul(e,t);const n=X(i);if(X(e)>n)return[[i[0],e[1],i[2],e[3]]];if(e[0]i[2])return[[e[0],e[1],i[2],e[3]],[i[0],e[1],e[2]-n,e[3]]]}return[e]}function dl(e,t){return e[0]+=+t[0],e[1]+=+t[1],e}function An(e,t){let i=!0;for(let n=e.length-1;n>=0;--n)if(e[n]!=t[n]){i=!1;break}return i}function Ys(e,t){const i=Math.cos(t),n=Math.sin(t),s=e[0]*i-e[1]*n,r=e[1]*i+e[0]*n;return e[0]=s,e[1]=r,e}function fl(e,t){return e[0]*=t,e[1]*=t,e}function gl(e,t){const i=e[0]-t[0],n=e[1]-t[1];return i*i+n*n}function i1(e,t){return Math.sqrt(gl(e,t))}function _l(e,t){if(t.canWrapX()){const i=X(t.getExtent()),n=$a(e,t,i);n&&(e[0]-=n*i)}return e}function $a(e,t,i){const n=t.getExtent();let s=0;return t.canWrapX()&&(e[0]n[2])&&(i=i||X(n),s=Math.floor((e[0]-n[0])/i)),s}const Hs=63710088e-1;function Is(e,t,i){i=i||Hs;const n=Ie(e[1]),s=Ie(t[1]),r=(s-n)/2,a=Ie(t[0]-e[0])/2,o=Math.sin(r)*Math.sin(r)+Math.sin(a)*Math.sin(a)*Math.cos(n)*Math.cos(s);return 2*i*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))}function cs(e,t){let i=0;for(let n=0,s=e.length;nXa.warn||console.warn(...e)}let Ps=!0;function Za(e){Ps=!(e===void 0?!0:e)}function Qs(e,t){if(t!==void 0){for(let i=0,n=e.length;i=o?t[r+h]:a[h]}return i}}function El(e,t,i,n){const s=J(e),r=J(t);gi(s,r,Xr(i)),gi(r,s,Xr(n))}function n1(e,t){return Za(),Va(e,"EPSG:4326",t!==void 0?t:"EPSG:3857")}function Xe(e,t){if(e===t)return!0;const i=e.getUnits()===t.getUnits();return(e.getCode()===t.getCode()||tr(e,t)===Qs)&&i}function tr(e,t){const i=e.getCode(),n=t.getCode();let s=Ga(i,n);return s||(s=Ka),s}function Ln(e,t){const i=J(e),n=J(t);return tr(i,n)}function Va(e,t,i){return Ln(t,i)(e,void 0,e.length)}function Ls(e,t){return e}function $t(e,t){return Ps&&!An(e,[0,0])&&e[0]>=-180&&e[0]<=180&&e[1]>=-90&&e[1]<=90&&(Ps=!1,qa("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),e}function xl(e,t){return e}function We(e,t){return e}function qr(e,t,i){return function(n){let s,r;if(e.canWrapX()){const a=e.getExtent(),o=X(a);n=n.slice(0),r=$a(n,e,o),r&&(n[0]=n[0]-r*o),n[0]=W(n[0],a[0],a[2]),n[1]=W(n[1],a[1],a[3]),s=i(n)}else s=i(n);return r&&t.canWrapX()&&(s[0]+=r*X(t.getExtent())),s}}function Cl(){As(Gr),As(kr),pl(kr,Gr,Wh,Yh)}Cl();function Zr(e,t,i){return function(n,s,r,a,o){if(!n)return;if(!s&&!t)return n;const h=t?0:r[0]*s,l=t?0:r[1]*s,c=o?o[0]:0,u=o?o[1]:0;let d=e[0]+h/2+c,f=e[2]-h/2+c,g=e[1]+l/2+u,_=e[3]-l/2+u;d>f&&(d=(f+d)/2,f=d),g>_&&(g=(_+g)/2,_=g);let m=W(n[0],d,f),v=W(n[1],g,_);if(a&&i&&s){const y=30*s;m+=-y*Math.log(1+Math.max(0,d-n[0])/y)+y*Math.log(1+Math.max(0,n[0]-f)/y),v+=-y*Math.log(1+Math.max(0,g-n[1])/y)+y*Math.log(1+Math.max(0,n[1]-_)/y)}return[m,v]}}function bl(e){return e}function er(e,t,i,n){const s=X(t)/i[0],r=Ft(t)/i[1];return n?Math.min(e,Math.max(s,r)):Math.min(e,Math.min(s,r))}function ir(e,t,i){let n=Math.min(e,t);const s=50;return n*=Math.log(1+s*Math.max(0,e/t-1))/s+1,i&&(n=Math.max(n,i),n/=Math.log(1+s*Math.max(0,i/e-1))/s+1),W(n,i/2,t*2)}function Rl(e,t,i,n){return t=t!==void 0?t:!0,function(s,r,a,o){if(s!==void 0){const h=e[0],l=e[e.length-1],c=i?er(h,i,a,n):h;if(o)return t?ir(s,c,l):W(s,l,c);const u=Math.min(c,s),d=Math.floor(Zs(e,u,r));return e[d]>c&&d1)u=i;else if(d>0){for(let f=0;fs&&(s=l),r=o,a=h}return s}function so(e,t,i,n,s){for(let r=0,a=i.length;r0;){const u=l.pop(),d=l.pop();let f=0;const g=e[d],_=e[d+1],m=e[u],v=e[u+1];for(let y=d+n;yf&&(c=y,f=C)}f>s&&(h[(c-t)/n]=1,d+n0&&_>f)&&(g<0&&m0&&m>g)){l=u,c=d;continue}r[a++]=l,r[a++]=c,o=l,h=c,l=u,c=d}return r[a++]=l,r[a++]=c,a}function co(e,t,i,n,s,r,a,o){for(let h=0,l=i.length;hr&&(l-o)*(r-h)-(s-o)*(c-h)>0&&a++:c<=r&&(l-o)*(r-h)-(s-o)*(c-h)<0&&a--,o=l,h=c}return a!==0}function or(e,t,i,n,s,r){if(i.length===0||!Ee(e,t,i[0],n,s,r))return!1;for(let a=1,o=i.length;av&&(l=(c+u)/2,or(e,t,i,n,l,g)&&(m=l,v=y)),c=u}return isNaN(m)&&(m=s[r]),a?(a.push(m,g,v),a):[m,g,v]}function v1(e,t,i,n,s){let r=[];for(let a=0,o=i.length;a=s[0]&&r[2]<=s[2]||r[1]>=s[1]&&r[3]<=s[3]?!0:Wl(e,t,i,n,function(a,o){return cl(s,a,o)}):!1}function M1(e,t,i,n,s){for(let r=0,a=i.length;r0}function po(e,t,i,n,s){s=s!==void 0?s:!1;for(let r=0,a=i.length;r1&&typeof arguments[i-1]=="function"&&(n=arguments[i-1],--i);let s=0;for(;s0}getInteracting(){return this.hints_[pt.INTERACTING]>0}cancelAnimations(){this.setHint(pt.ANIMATING,-this.hints_[pt.ANIMATING]);let t;for(let i=0,n=this.animations_.length;i=0;--n){const s=this.animations_[n];let r=!0;for(let a=0,o=s.length;a0?l/h.duration:1;c>=1?(h.complete=!0,c=1):r=!1;const u=h.easing(c);if(h.sourceCenter){const d=h.sourceCenter[0],f=h.sourceCenter[1],g=h.targetCenter[0],_=h.targetCenter[1];this.nextCenter_=h.targetCenter;const m=d+u*(g-d),v=f+u*(_-f);this.targetCenter_=[m,v]}if(h.sourceResolution&&h.targetResolution){const d=u===1?h.targetResolution:h.sourceResolution+u*(h.targetResolution-h.sourceResolution);if(h.anchor){const f=this.getViewportSize_(this.getRotation()),g=this.constraints_.resolution(d,0,f,!0);this.targetCenter_=this.calculateCenterZoom(g,h.anchor)}this.nextResolution_=h.targetResolution,this.targetResolution_=d,this.applyTargetState_(!0)}if(h.sourceRotation!==void 0&&h.targetRotation!==void 0){const d=u===1?ii(h.targetRotation+Math.PI,2*Math.PI)-Math.PI:h.sourceRotation+u*(h.targetRotation-h.sourceRotation);if(h.anchor){const f=this.constraints_.rotation(d,!0);this.targetCenter_=this.calculateCenterRotate(f,h.anchor)}this.nextRotation_=h.targetRotation,this.targetRotation_=d}if(this.applyTargetState_(!0),i=!0,!h.complete)break}if(r){this.animations_[n]=null,this.setHint(pt.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const a=s[0].callback;a&&dn(a,!0)}}this.animations_=this.animations_.filter(Boolean),i&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,i){let n;const s=this.getCenterInternal();return s!==void 0&&(n=[s[0]-i[0],s[1]-i[1]],Ys(n,t-this.getRotation()),dl(n,i)),n}calculateCenterZoom(t,i){let n;const s=this.getCenterInternal(),r=this.getResolution();if(s!==void 0&&r!==void 0){const a=i[0]-t*(i[0]-s[0])/r,o=i[1]-t*(i[1]-s[1])/r;n=[a,o]}return n}getViewportSize_(t){const i=this.viewportSize_;if(t){const n=i[0],s=i[1];return[Math.abs(n*Math.cos(t))+Math.abs(s*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(s*Math.cos(t))]}return i}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t&&Ls(t,this.getProjection())}getCenterInternal(){return this.get(Rt.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return t!==void 0?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const i=this.calculateExtentInternal(t);return xl(i,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const i=this.getCenterInternal();j(i,"The view center is not defined");const n=this.getResolution();j(n!==void 0,"The view resolution is not defined");const s=this.getRotation();return j(s!==void 0,"The view rotation is not defined"),Ts(i,n,s,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(Rt.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,i){return this.getResolutionForExtentInternal(We(t,this.getProjection()),i)}getResolutionForExtentInternal(t,i){i=i||this.getViewportSizeMinusPadding_();const n=X(t)/i[0],s=Ft(t)/i[1];return Math.max(n,s)}getResolutionForValueFunction(t){t=t||2;const i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,s=Math.log(i/n)/Math.log(t);return function(r){return i/Math.pow(t,r*s)}}getRotation(){return this.get(Rt.ROTATION)}getValueForResolutionFunction(t){const i=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),s=this.minResolution_,r=Math.log(n/s)/i;return function(a){return Math.log(n/a)/i/r}}getViewportSizeMinusPadding_(t){let i=this.getViewportSize_(t);const n=this.padding_;return n&&(i=[i[0]-n[1]-n[3],i[1]-n[0]-n[2]]),i}getState(){const t=this.getProjection(),i=this.getResolution(),n=this.getRotation();let s=this.getCenterInternal();const r=this.padding_;if(r){const a=this.getViewportSizeMinusPadding_();s=ds(s,this.getViewportSize_(),[a[0]/2+r[3],a[1]/2+r[0]],i,n)}return{center:s.slice(0),projection:t!==void 0?t:null,resolution:i,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const i=this.getResolution();return i!==void 0&&(t=this.getZoomForResolution(i)),t}getZoomForResolution(t){let i=this.minZoom_||0,n,s;if(this.resolutions_){const r=Zs(this.resolutions_,t,1);i=r,n=this.resolutions_[r],r==this.resolutions_.length-1?s=2:s=n/this.resolutions_[r+1]}else n=this.maxResolution_,s=this.zoomFactor_;return i+Math.log(n/t)/Math.log(s)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const i=W(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[i]/this.resolutions_[i+1];return this.resolutions_[i]/Math.pow(n,W(t-i,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,i){let n;if(j(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function","Invalid extent or geometry provided as `geometry`"),Array.isArray(t)){j(!Yi(t),"Cannot fit empty extent provided as `geometry`");const s=We(t,this.getProjection());n=Jr(s)}else if(t.getType()==="Circle"){const s=We(t.getExtent(),this.getProjection());n=Jr(s),n.rotate(this.getRotation(),de(s))}else n=t;this.fitInternal(n,i)}rotatedExtentForGeometry(t){const i=this.getRotation(),n=Math.cos(i),s=Math.sin(-i),r=t.getFlatCoordinates(),a=t.getStride();let o=1/0,h=1/0,l=-1/0,c=-1/0;for(let u=0,d=r.length;u{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return!this.renderer_||!this.rendered?null:this.renderer_.getData(t)}isVisible(t){let i;const n=this.getMapInternal();!t&&n&&(t=n.getView()),t instanceof Ct?i={viewState:t.getState(),extent:t.calculateExtent()}:i=t,!i.layerStatesArray&&n&&(i.layerStatesArray=n.getLayerGroup().getLayerStatesArray());let s;i.layerStatesArray?s=i.layerStatesArray.find(a=>a.layer===this):s=this.getLayerState();const r=this.getExtent();return cr(s,i.viewState)&&(!r||Wi(r,i.extent))}getAttributions(t){if(!this.isVisible(t))return[];let i;const n=this.getSource();if(n&&(i=n.getAttributions()),!i)return[];const s=t instanceof Ct?t.getViewStateAndExtent():t;let r=i(s);return Array.isArray(r)||(r=[r]),r}render(t,i){const n=this.getRenderer();return n.prepareFrame(t)?(this.rendered=!0,n.renderFrame(t,i)):null}unrender(){this.rendered=!1}setMapInternal(t){t||this.unrender(),this.set(F.MAP,t)}getMapInternal(){return this.get(F.MAP)}setMap(t){this.mapPrecomposeKey_&&(B(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(B(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=G(t,ce.PRECOMPOSE,function(i){const s=i.frameState.layerStatesArray,r=this.getLayerState(!1);j(!s.some(function(a){return a.layer===r.layer}),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),s.push(r)},this),this.mapRenderKey_=G(this,S.CHANGE,t.render,t),this.changed())}setSource(t){this.set(F.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function cr(e,t){if(!e.visible)return!1;const i=t.resolution;if(i=e.maxResolution)return!1;const n=t.zoom;return n>e.minZoom&&n<=e.maxZoom}const is=nc;let fn;const sc=new Uint8Array(16);function rc(){if(!fn&&(fn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!fn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fn(sc)}const et=[];for(let e=0;e<256;++e)et.push((e+256).toString(16).slice(1));function ac(e,t=0){return(et[e[t+0]]+et[e[t+1]]+et[e[t+2]]+et[e[t+3]]+"-"+et[e[t+4]]+et[e[t+5]]+"-"+et[e[t+6]]+et[e[t+7]]+"-"+et[e[t+8]]+et[e[t+9]]+"-"+et[e[t+10]]+et[e[t+11]]+et[e[t+12]]+et[e[t+13]]+et[e[t+14]]+et[e[t+15]]).toLowerCase()}const oc=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ta={randomUUID:oc};function hc(e,t,i){if(ta.randomUUID&&!t&&!e)return ta.randomUUID();e=e||{};const n=e.random||(e.rng||rc)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){i=i||0;for(let s=0;s<16;++s)t[i+s]=n[s];return t}return ac(n)}const lc=Se("map:AbstractLayerModel");var hi,Fi,xe,Ce,be,li;class cc extends Xs{constructor(i){super();L(this,hi,void 0);L(this,Fi,void 0);L(this,xe,void 0);L(this,Ce,void 0);L(this,be,void 0);L(this,li,!1);O(this,Fi,i.id??hc()),O(this,be,i.attributes??{}),O(this,xe,i.title),O(this,Ce,i.description??"")}get __destroyed(){return E(this,li)}get map(){const i=E(this,hi);if(!i)throw new Error(`Layer '${this.id}' has not been attached to a map yet.`);return i}get id(){return E(this,Fi)}get title(){return E(this,xe)}get description(){return E(this,Ce)}get attributes(){return E(this,be)}destroy(){if(!E(this,li)){O(this,li,!0),this.sublayers?.destroy();try{this.emit("destroy")}catch(i){lc.warn("Unexpected error from event listener during layer destruction:",i)}}}__attachToMap(i){if(E(this,hi))throw new Error(`Layer '${this.id}' has already been attached to the map '${this.map.id}'`);O(this,hi,i)}setTitle(i){i!==E(this,xe)&&(O(this,xe,i),this.__emitChangeEvent("changed:title"))}setDescription(i){i!==E(this,Ce)&&(O(this,Ce,i),this.__emitChangeEvent("changed:description"))}updateAttributes(i){const n=E(this,be),s=Reflect.ownKeys(i);let r=!1;for(const a of s){const o=n[a],h=i[a];o!==h&&(n[a]=h,r=!0)}r&&this.__emitChangeEvent("changed:attributes")}deleteAttribute(i){const n=E(this,be);n[i]&&(delete n[i],this.__emitChangeEvent("changed:attributes"))}__emitChangeEvent(i){this.emit(i),this.emit("changed")}}hi=new WeakMap,Fi=new WeakMap,xe=new WeakMap,Ce=new WeakMap,be=new WeakMap,li=new WeakMap;const uc=Se("map:AbstractLayer");var ee,Gi,ie,ci,zi;class On extends cc{constructor(i){super(i);L(this,ee,void 0);L(this,Gi,void 0);L(this,ie,void 0);L(this,ci,void 0);L(this,zi,void 0);O(this,ee,i.olLayer),O(this,Gi,i.isBaseLayer??!1),O(this,ie,i.visible??!0);const{initial:n,resource:s}=dc(E(this,ee),r=>{O(this,ci,r),this.__emitChangeEvent("changed:loadState")});O(this,ci,n),O(this,zi,s)}get visible(){return E(this,ie)}get olLayer(){return E(this,ee)}get isBaseLayer(){return E(this,Gi)}get loadState(){return E(this,ci)}destroy(){this.__destroyed||(E(this,zi)?.destroy(),this.olLayer.dispose(),super.destroy())}__attach(i){super.__attachToMap(i)}setVisible(i){if(this.isBaseLayer){uc.warn(`Cannot change visibility of base layer '${this.id}': use activateBaseLayer() on the map's LayerCollection instead.`);return}this.__setVisible(i)}__setVisible(i){let n=!1;E(this,ie)!==i&&(O(this,ie,i),n=!0),E(this,ee).getVisible()!=E(this,ie)&&E(this,ee).setVisible(i),n&&this.__emitChangeEvent("changed:visible")}}ee=new WeakMap,Gi=new WeakMap,ie=new WeakMap,ci=new WeakMap,zi=new WeakMap;function dc(e,t){if(!(e instanceof is))return{initial:"loaded",resource:{destroy(){}}};let i=e?.getSource(),n=ea(i?.getState());const s=()=>{const o=ea(i?.getState());n!==o&&(n=o,t(n))};let r;r=i?.on("change",()=>{s()});const a=e.on("change:source",()=>{r&&ti(r),r=void 0,i=e?.getSource(),r=i?.on("change",()=>{s()}),s()});return{initial:n,resource:{destroy(){r&&ti(r),ti(a)}}}}function ea(e){switch(e){case void 0:return"loaded";case"undefined":return"not-loaded";case"loading":return"loading";case"ready":return"loaded";case"error":return"error"}}class fc extends On{get sublayers(){}}const b1=fc,Tt={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};class gc extends Ki{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.declutterExecutorGroup=null}getFeatures(t){return Z()}getData(t){return null}prepareFrame(t){return Z()}renderFrame(t,i){return Z()}loadedTileCallback(t,i,n){t[i]||(t[i]={}),t[i][n.tileCoord.toString()]=n}createLoadedTileFinder(t,i,n){return(s,r)=>{const a=this.loadedTileCallback.bind(this,n,s);return t.forEachLoadedTile(i,s,r,a)}}forEachFeatureAtCoordinate(t,i,n,s,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const i=t.target;(i.getState()===Tt.LOADED||i.getState()===Tt.ERROR)&&this.renderIfReadyAndVisible()}loadImage(t){let i=t.getState();return i!=Tt.LOADED&&i!=Tt.ERROR&&t.addEventListener(S.CHANGE,this.boundHandleImageChange_),i==Tt.IDLE&&(t.load(),i=t.getState()),i==Tt.LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&t.getSourceState()==="ready"&&t.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}}const _c=gc;class mc extends me{constructor(t,i,n,s){super(t),this.inversePixelTransform=i,this.frameState=n,this.context=s}}const Eo=mc,yc=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,vc=/^([a-z]*)$|^hsla?\(.*\)$/i;function Mc(e){return typeof e=="string"?e:Cc(e)}function pc(e){const t=document.createElement("div");if(t.style.color=e,t.style.color!==""){document.body.appendChild(t);const i=getComputedStyle(t).color;return document.body.removeChild(t),i}return""}const Ec=function(){const t={};let i=0;return function(n){let s;if(t.hasOwnProperty(n))s=t[n];else{if(i>=1024){let r=0;for(const a in t)r++&3||(delete t[a],--i)}s=xc(n),t[n]=s,++i}return s}}();function ia(e){return Array.isArray(e)?e:Ec(e)}function xc(e){let t,i,n,s,r;if(vc.exec(e)&&(e=pc(e)),yc.exec(e)){const a=e.length-1;let o;a<=4?o=1:o=2;const h=a===4||a===8;t=parseInt(e.substr(1+0*o,o),16),i=parseInt(e.substr(1+1*o,o),16),n=parseInt(e.substr(1+2*o,o),16),h?s=parseInt(e.substr(1+3*o,o),16):s=255,o==1&&(t=(t<<4)+t,i=(i<<4)+i,n=(n<<4)+n,h&&(s=(s<<4)+s)),r=[t,i,n,s/255]}else if(e.startsWith("rgba("))r=e.slice(5,-1).split(",").map(Number),na(r);else if(e.startsWith("rgb("))r=e.slice(4,-1).split(",").map(Number),r.push(1),na(r);else throw new Error("Invalid color");return r}function na(e){return e[0]=W(e[0]+.5|0,0,255),e[1]=W(e[1]+.5|0,0,255),e[2]=W(e[2]+.5|0,0,255),e[3]=W(e[3],0,1),e}function Cc(e){let t=e[0];t!=(t|0)&&(t=t+.5|0);let i=e[1];i!=(i|0)&&(i=i+.5|0);let n=e[2];n!=(n|0)&&(n=n+.5|0);const s=e[3]===void 0?1:Math.round(e[3]*100)/100;return"rgba("+t+","+i+","+n+","+s+")"}function Pe(e,t,i,n){let s;return i&&i.length?s=i.shift():sr?s=new OffscreenCanvas(e||300,t||300):s=document.createElement("canvas"),e&&(s.width=e),t&&(s.height=t),s.getContext("2d",n)}function ur(e){const t=e.canvas;t.width=1,t.height=1,e.clearRect(0,0,1,1)}function R1(e){let t=e.offsetWidth;const i=getComputedStyle(e);return t+=parseInt(i.marginLeft,10)+parseInt(i.marginRight,10),t}function T1(e){let t=e.offsetHeight;const i=getComputedStyle(e);return t+=parseInt(i.marginTop,10)+parseInt(i.marginBottom,10),t}function sa(e,t){const i=t.parentNode;i&&i.replaceChild(e,t)}function Os(e){return e&&e.parentNode?e.parentNode.removeChild(e):null}function bc(e){for(;e.lastChild;)e.removeChild(e.lastChild)}function Rc(e,t){const i=e.childNodes;for(let n=0;;++n){const s=i[n],r=t[n];if(!s&&!r)break;if(s!==r){if(!s){e.appendChild(r);continue}if(!r){e.removeChild(s),--n;continue}e.insertBefore(r,s)}}}const w1=[];let qe=null;function Tc(){qe=Pe(1,1,void 0,{willReadFrequently:!0})}class wc extends _c{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=si(),this.pixelTransform=si(),this.inversePixelTransform=si(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,i,n){qe||Tc(),qe.clearRect(0,0,1,1);let s;try{qe.drawImage(t,i,n,1,1,0,0,1,1),s=qe.getImageData(0,0,1,1).data}catch{return qe=null,null}return s}getBackground(t){let n=this.getLayer().getBackground();return typeof n=="function"&&(n=n(t.viewState.resolution)),n||void 0}useContainer(t,i,n){const s=this.getLayer().getClassName();let r,a;if(t&&t.className===s&&(!n||t&&t.style.backgroundColor&&Yn(ia(t.style.backgroundColor),ia(n)))){const o=t.firstElementChild;o instanceof HTMLCanvasElement&&(a=o.getContext("2d"))}if(a&&a.canvas.style.transform===i?(this.container=t,this.context=a,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){r=document.createElement("div"),r.className=s;let o=r.style;o.position="absolute",o.width="100%",o.height="100%",a=Pe();const h=a.canvas;r.appendChild(h),o=h.style,o.position="absolute",o.left="0",o.transformOrigin="top left",this.container=r,this.context=a}!this.containerReused&&n&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=n)}clipUnrotated(t,i,n){const s=Ne(n),r=ts(n),a=Jn(n),o=Qn(n);Et(i.coordinateToPixelTransform,s),Et(i.coordinateToPixelTransform,r),Et(i.coordinateToPixelTransform,a),Et(i.coordinateToPixelTransform,o);const h=this.inversePixelTransform;Et(h,s),Et(h,r),Et(h,a),Et(h,o),t.save(),t.beginPath(),t.moveTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.clip()}dispatchRenderEvent_(t,i,n){const s=this.getLayer();if(s.hasListener(t)){const r=new Eo(t,this.inversePixelTransform,n,i);s.dispatchEvent(r)}}preRender(t,i){this.frameState=i,this.dispatchRenderEvent_(ce.PRERENDER,t,i)}postRender(t,i){this.dispatchRenderEvent_(ce.POSTRENDER,t,i)}getRenderTransform(t,i,n,s,r,a,o){const h=r/2,l=a/2,c=s/i,u=-c,d=-t[0]+o,f=-t[1];return Li(this.tempTransform,h,l,c,u,-n,d,f)}disposeInternal(){delete this.frameState,super.disposeInternal()}}const Ic=wc;class I1 extends Hn{constructor(t,i,n,s){super(),this.extent=t,this.pixelRatio_=n,this.resolution=i,this.state=typeof s=="function"?Tt.IDLE:s,this.image_=null,this.loader=typeof s=="function"?s:null}changed(){this.dispatchEvent(S.CHANGE)}getExtent(){return this.extent}getImage(){return this.image_}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){if(this.state==Tt.IDLE&&this.loader){this.state=Tt.LOADING,this.changed();const t=this.getResolution(),i=Array.isArray(t)?t[0]:t;Fh(()=>this.loader(this.getExtent(),i,this.getPixelRatio())).then(n=>{"image"in n&&(this.image_=n.image),"extent"in n&&(this.extent=n.extent),"resolution"in n&&(this.resolution=n.resolution),"pixelRatio"in n&&(this.pixelRatio_=n.pixelRatio),(n instanceof HTMLImageElement||n instanceof ImageBitmap||n instanceof HTMLCanvasElement||n instanceof HTMLVideoElement)&&(this.image_=n),this.state=Tt.LOADED}).catch(n=>{this.state=Tt.ERROR,console.error(n)}).finally(()=>this.changed())}}setImage(t){this.image_=t}setResolution(t){this.resolution=t}}function Pc(e,t,i){const n=e;let s=!0,r=!1,a=!1;const o=[In(n,S.LOAD,function(){a=!0,r||t()})];return n.src&&rr?(r=!0,n.decode().then(function(){s&&t()}).catch(function(h){s&&(a?t():i())})):o.push(In(n,S.ERROR,i)),function(){s=!1,o.forEach(B)}}function Ac(e,t){return new Promise((i,n)=>{function s(){a(),i(e)}function r(){a(),n(new Error("Image load error"))}function a(){e.removeEventListener("load",s),e.removeEventListener("error",r)}e.addEventListener("load",s),e.addEventListener("error",r),t&&(e.src=t)})}function Lc(e,t){return t&&(e.src=t),rr?new Promise((i,n)=>e.decode().then(()=>i(e),n)):Ac(e)}function P1(e,t){return t&&(e.src=t),rr&&Nl?e.decode().then(()=>createImageBitmap(e)):Lc(e)}const Sc=.5,Oc=10,ra=.25;class Nc{constructor(t,i,n,s,r,a){this.sourceProj_=t,this.targetProj_=i;let o={};const h=Ln(this.targetProj_,this.sourceProj_);this.transformInv_=function(y){const p=y[0]+"/"+y[1];return o[p]||(o[p]=h(y)),o[p]},this.maxSourceExtent_=s,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!s&&!!this.sourceProj_.getExtent()&&X(s)>=X(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?X(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?X(this.targetProj_.getExtent()):null;const l=Ne(n),c=ts(n),u=Jn(n),d=Qn(n),f=this.transformInv_(l),g=this.transformInv_(c),_=this.transformInv_(u),m=this.transformInv_(d),v=Oc+(a?Math.max(0,Math.ceil(Math.log2(Rs(n)/(a*a*256*256)))):0);if(this.addQuad_(l,c,u,d,f,g,_,m,v),this.wrapsXInSource_){let y=1/0;this.triangles_.forEach(function(p,M,C){y=Math.min(y,p.source[0][0],p.source[1][0],p.source[2][0])}),this.triangles_.forEach(p=>{if(Math.max(p.source[0][0],p.source[1][0],p.source[2][0])-y>this.sourceWorldWidth_/2){const M=[[p.source[0][0],p.source[0][1]],[p.source[1][0],p.source[1][1]],[p.source[2][0],p.source[2][1]]];M[0][0]-y>this.sourceWorldWidth_/2&&(M[0][0]-=this.sourceWorldWidth_),M[1][0]-y>this.sourceWorldWidth_/2&&(M[1][0]-=this.sourceWorldWidth_),M[2][0]-y>this.sourceWorldWidth_/2&&(M[2][0]-=this.sourceWorldWidth_);const C=Math.min(M[0][0],M[1][0],M[2][0]);Math.max(M[0][0],M[1][0],M[2][0])-C.5&&u<1;let g=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const m=jr([t,i,n,s]);g=X(m)/this.targetWorldWidth_>ra||g}!f&&this.sourceProj_.isGlobal()&&u&&(g=u>ra||g)}if(!g&&this.maxSourceExtent_&&isFinite(c[0])&&isFinite(c[1])&&isFinite(c[2])&&isFinite(c[3])&&!Wi(c,this.maxSourceExtent_))return;let _=0;if(!g&&(!isFinite(r[0])||!isFinite(r[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(h[0])||!isFinite(h[1]))){if(l>0)g=!0;else if(_=(!isFinite(r[0])||!isFinite(r[1])?8:0)+(!isFinite(a[0])||!isFinite(a[1])?4:0)+(!isFinite(o[0])||!isFinite(o[1])?2:0)+(!isFinite(h[0])||!isFinite(h[1])?1:0),_!=1&&_!=2&&_!=4&&_!=8)return}if(l>0){if(!g){const m=[(t[0]+n[0])/2,(t[1]+n[1])/2],v=this.transformInv_(m);let y;f?y=(ii(r[0],d)+ii(o[0],d))/2-ii(v[0],d):y=(r[0]+o[0])/2-v[0];const p=(r[1]+o[1])/2-v[1];g=y*y+p*p>this.errorThresholdSquared_}if(g){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){const m=[(i[0]+n[0])/2,(i[1]+n[1])/2],v=this.transformInv_(m),y=[(s[0]+t[0])/2,(s[1]+t[1])/2],p=this.transformInv_(y);this.addQuad_(t,i,m,y,r,a,v,p,l-1),this.addQuad_(y,m,n,s,p,v,o,h,l-1)}else{const m=[(t[0]+i[0])/2,(t[1]+i[1])/2],v=this.transformInv_(m),y=[(n[0]+s[0])/2,(n[1]+s[1])/2],p=this.transformInv_(y);this.addQuad_(t,m,y,s,r,v,p,h,l-1),this.addQuad_(m,i,n,y,v,a,o,p,l-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}_&11||this.addTriangle_(t,n,s,r,o,h),_&14||this.addTriangle_(t,n,i,r,o,a),_&&(_&13||this.addTriangle_(i,s,t,a,h,r),_&7||this.addTriangle_(i,s,n,a,h,o))}calculateSourceExtent(){const t=Oe();return this.triangles_.forEach(function(i,n,s){const r=i.source;pn(t,r[0]),pn(t,r[1]),pn(t,r[2])}),t}getTriangles(){return this.triangles_}}const Dc=Nc;let fs;const ri=[];function aa(e,t,i,n,s){e.beginPath(),e.moveTo(0,0),e.lineTo(t,i),e.lineTo(n,s),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(t,n)+1,Math.max(i,s)),e.restore()}function gs(e,t){return Math.abs(e[t*4]-210)>2||Math.abs(e[t*4+3]-.75*255)>2}function Fc(){if(fs===void 0){const e=Pe(6,6,ri);e.globalCompositeOperation="lighter",e.fillStyle="rgba(210, 0, 0, 0.75)",aa(e,4,5,4,0),aa(e,4,5,0,5);const t=e.getImageData(0,0,3,3).data;fs=gs(t,0)||gs(t,4)||gs(t,8),ur(e),ri.push(e.canvas)}return fs}function oa(e,t,i,n){const s=Va(i,t,e);let r=$r(t,n,i);const a=t.getMetersPerUnit();a!==void 0&&(r*=a);const o=e.getMetersPerUnit();o!==void 0&&(r/=o);const h=e.getExtent();if(!h||Ws(h,s)){const l=$r(e,r,s)/r;isFinite(l)&&l>0&&(r/=l)}return r}function Gc(e,t,i,n){const s=de(i);let r=oa(e,t,s,n);return(!isFinite(r)||r<=0)&&Ua(i,function(a){return r=oa(e,t,a,n),isFinite(r)&&r>0}),r}function zc(e,t,i,n,s,r,a,o,h,l,c,u){const d=Pe(Math.round(i*e),Math.round(i*t),ri);if(u||(d.imageSmoothingEnabled=!1),h.length===0)return d.canvas;d.scale(i,i);function f(M){return Math.round(M*i)/i}d.globalCompositeOperation="lighter";const g=Oe();h.forEach(function(M,C,T){al(g,M.extent)});const _=X(g),m=Ft(g),v=Pe(Math.round(i*_/n),Math.round(i*m/n),ri);u||(v.imageSmoothingEnabled=!1);const y=i/n;h.forEach(function(M,C,T){const I=M.extent[0]-g[0],P=-(M.extent[3]-g[3]),z=X(M.extent),U=Ft(M.extent);M.image.width>0&&M.image.height>0&&v.drawImage(M.image,l,l,M.image.width-2*l,M.image.height-2*l,I*y,P*y,z*y,U*y)});const p=Ne(a);return o.getTriangles().forEach(function(M,C,T){const I=M.source,P=M.target;let z=I[0][0],U=I[0][1],Q=I[1][0],gt=I[1][1],Pt=I[2][0],pi=I[2][1];const At=f((P[0][0]-p[0])/r),zt=f(-(P[0][1]-p[1])/r),k=f((P[1][0]-p[0])/r),_t=f(-(P[1][1]-p[1])/r),kt=f((P[2][0]-p[0])/r),Lt=f(-(P[2][1]-p[1])/r),ye=z,ht=U;z=0,U=0,Q-=ye,gt-=ht,Pt-=ye,pi-=ht;const St=[[Q,gt,0,0,k-At],[Pt,pi,0,0,kt-At],[0,0,Q,gt,_t-zt],[0,0,Pt,pi,Lt-zt]],Y=$h(St);if(Y){if(d.save(),d.beginPath(),Fc()||!u){d.moveTo(k,_t);const V=4,De=At-k,Wt=zt-_t;for(let lt=0;lt=this.text.length)return;e=this.text[this.place++]}switch(this.state){case Ni:return this.neutral(e);case xo:return this.keyword(e);case Nn:return this.quoted(e);case bo:return this.afterquote(e);case Co:return this.number(e);case dr:return}};Vt.prototype.afterquote=function(e){if(e==='"'){this.word+='"',this.state=Nn;return}if(ns.test(e)){this.word=this.word.trim(),this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in afterquote yet, index '+this.place)};Vt.prototype.afterItem=function(e){if(e===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=Ni;return}if(e==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=Ni,this.currentObject=this.stack.pop(),this.currentObject||(this.state=dr);return}};Vt.prototype.number=function(e){if(Ro.test(e)){this.word+=e;return}if(ns.test(e)){this.word=parseFloat(this.word),this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in number yet, index '+this.place)};Vt.prototype.quoted=function(e){if(e==='"'){this.state=bo;return}this.word+=e};Vt.prototype.keyword=function(e){if(Qc.test(e)){this.word+=e;return}if(e==="["){var t=[];t.push(this.word),this.level++,this.root===null?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,this.state=Ni;return}if(ns.test(e)){this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in keyword yet, index '+this.place)};Vt.prototype.neutral=function(e){if(Hc.test(e)){this.word=e,this.state=xo;return}if(e==='"'){this.word="",this.state=Nn;return}if(Ro.test(e)){this.word=e,this.state=Co;return}if(ns.test(e)){this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in neutral yet, index '+this.place)};Vt.prototype.output=function(){for(;this.place0?90:-90),e.lat_ts=e.lat1):!e.lat_ts&&e.lat0&&e.projName==="Polar_Stereographic"&&(e.lat_ts=e.lat0,e.lat0=Ot(e.lat0>0?90:-90))}function To(e){var t=Jc(e),i=t.shift(),n=t.shift();t.unshift(["name",n]),t.unshift(["type",i]);var s={};return Ye(t,s),iu(s),s}function at(e){var t=this;if(arguments.length===2){var i=arguments[1];typeof i=="string"?i.charAt(0)==="+"?at[e]=Ds(arguments[1]):at[e]=To(arguments[1]):at[e]=i}else if(arguments.length===1){if(Array.isArray(e))return e.map(function(n){Array.isArray(n)?at.apply(t,n):at(n)});if(typeof e=="string"){if(e in at)return at[e]}else"EPSG"in e?at["EPSG:"+e.EPSG]=e:"ESRI"in e?at["ESRI:"+e.ESRI]=e:"IAU2000"in e?at["IAU2000:"+e.IAU2000]=e:console.log(e);return}}Xc(at);function nu(e){return typeof e=="string"}function su(e){return e in at}var ru=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function au(e){return ru.some(function(t){return e.indexOf(t)>-1})}var ou=["3857","900913","3785","102113"];function hu(e){var t=ge(e,"authority");if(t){var i=ge(t,"epsg");return i&&ou.indexOf(i)>-1}}function lu(e){var t=ge(e,"extension");if(t)return ge(t,"proj4")}function cu(e){return e[0]==="+"}function uu(e){if(nu(e)){if(su(e))return at[e];if(au(e)){var t=To(e);if(hu(t))return at["EPSG:3857"];var i=lu(t);return i?Ds(i):t}if(cu(e))return Ds(e)}else return e}function fa(e,t){e=e||{};var i,n;if(!t)return e;for(n in t)i=t[n],i!==void 0&&(e[n]=i);return e}function Gt(e,t,i){var n=e*t;return i/Math.sqrt(1-n*n)}function Hi(e){return e<0?-1:1}function R(e){return Math.abs(e)<=K?e:e-Hi(e)*Oi}function It(e,t,i){var n=e*i,s=.5*e;return n=Math.pow((1-n)/(1+n),s),Math.tan(.5*(x-t))/n}function Di(e,t){for(var i=.5*e,n,s,r=x-2*Math.atan(t),a=0;a<=15;a++)if(n=e*Math.sin(r),s=x-2*Math.atan(t*Math.pow((1-n)/(1+n),i))-r,r+=s,Math.abs(s)<=1e-10)return r;return-9999}function du(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=Gt(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function fu(e){var t=e.x,i=e.y;if(i*Nt>90&&i*Nt<-90&&t*Nt>180&&t*Nt<-180)return null;var n,s;if(Math.abs(Math.abs(i)-x)<=b)return null;if(this.sphere)n=this.x0+this.a*this.k0*R(t-this.long0),s=this.y0+this.a*this.k0*Math.log(Math.tan(N+.5*i));else{var r=Math.sin(i),a=It(this.e,i,r);n=this.x0+this.a*this.k0*R(t-this.long0),s=this.y0-this.a*this.k0*Math.log(a)}return e.x=n,e.y=s,e}function gu(e){var t=e.x-this.x0,i=e.y-this.y0,n,s;if(this.sphere)s=x-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var r=Math.exp(-i/(this.a*this.k0));if(s=Di(this.e,r),s===-9999)return null}return n=R(this.long0+t/(this.a*this.k0)),e.x=n,e.y=s,e}var _u=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];const mu={init:du,forward:fu,inverse:gu,names:_u};function yu(){}function ga(e){return e}var vu=["longlat","identity"];const Mu={init:yu,forward:ga,inverse:ga,names:vu};var pu=[mu,Mu],En={},Dn=[];function wo(e,t){var i=Dn.length;return e.names?(Dn[i]=e,e.names.forEach(function(n){En[n.toLowerCase()]=i}),this):(console.log(t),!0)}function Eu(e){if(!e)return!1;var t=e.toLowerCase();if(typeof En[t]<"u"&&Dn[En[t]])return Dn[En[t]]}function xu(){pu.forEach(wo)}const Cu={start:xu,add:wo,get:Eu};var A={};A.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};A.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};A.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};A.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};A.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};A.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};A.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};A.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};A.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};A.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};A.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};A.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};A.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};A.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};A.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};A.clrk80ign={a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"};A.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};A.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};A.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};A.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};A.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};A.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};A.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};A.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};A.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};A.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};A.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};A.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};A.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};A.hough={a:6378270,rf:297,ellipseName:"Hough"};A.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};A.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};A.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};A.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};A.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};A.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};A.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};A.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};A.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};A.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};A.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};A.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var bu=A.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};A.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function Ru(e,t,i,n){var s=e*e,r=t*t,a=(s-r)/s,o=0;n?(e*=1-a*(Kc+a*(Bc+a*Vc)),s=e*e,a=0):o=Math.sqrt(a);var h=(s-r)/r;return{es:a,e:o,ep2:h}}function Tu(e,t,i,n,s){if(!e){var r=ge(A,n);r||(r=bu),e=r.a,t=r.b,i=r.rf}return i&&!t&&(t=(1-1/i)*e),(i===0||Math.abs(e-t)3&&(o.datum_params[3]!==0||o.datum_params[4]!==0||o.datum_params[5]!==0||o.datum_params[6]!==0)&&(o.datum_type=Le,o.datum_params[3]*=Ii,o.datum_params[4]*=Ii,o.datum_params[5]*=Ii,o.datum_params[6]=o.datum_params[6]/1e6+1)),a&&(o.datum_type=ai,o.grids=a),o.a=i,o.b=n,o.es=s,o.ep2=r,o}var Io={};function Iu(e,t){var i=new DataView(t),n=Lu(i),s=Su(i,n);s.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var r=Ou(i,s,n),a={header:s,subgrids:r};return Io[e]=a,a}function Pu(e){if(e===void 0)return null;var t=e.split(",");return t.map(Au)}function Au(e){if(e.length===0)return null;var t=e[0]==="@";return t&&(e=e.slice(1)),e==="null"?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:Io[e]||null,isNull:!1}}function He(e){return e/3600*Math.PI/180}function Lu(e){var t=e.getInt32(8,!1);return t===11?!1:(t=e.getInt32(8,!0),t!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function Su(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:Fs(e,56,56+8).trim(),fromSemiMajorAxis:e.getFloat64(120,t),fromSemiMinorAxis:e.getFloat64(136,t),toSemiMajorAxis:e.getFloat64(152,t),toSemiMinorAxis:e.getFloat64(168,t)}}function Fs(e,t,i){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,i)))}function Ou(e,t,i){for(var n=176,s=[],r=0;r5e-11?!1:e.datum_type===Ae?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type===Le?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6]:!0}function Po(e,t,i){var n=e.x,s=e.y,r=e.z?e.z:0,a,o,h,l;if(s<-x&&s>-1.001*x)s=-x;else if(s>x&&s<1.001*x)s=x;else{if(s<-x)return{x:-1/0,y:-1/0,z:e.z};if(s>x)return{x:1/0,y:1/0,z:e.z}}return n>Math.PI&&(n-=2*Math.PI),o=Math.sin(s),l=Math.cos(s),h=o*o,a=i/Math.sqrt(1-t*h),{x:(a+r)*l*Math.cos(n),y:(a+r)*l*Math.sin(n),z:(a*(1-t)+r)*o}}function Ao(e,t,i,n){var s=1e-12,r=s*s,a=30,o,h,l,c,u,d,f,g,_,m,v,y,p,M=e.x,C=e.y,T=e.z?e.z:0,I,P,z;if(o=Math.sqrt(M*M+C*C),h=Math.sqrt(M*M+C*C+T*T),o/ir&&pn.y||c>n.x||fo&&Math.abs(h.y)>o);if(a<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=R(r.x+i.ll[0]),n.y=r.y+i.ll[1]}else isNaN(r.x)||(n.x=e.x+r.x,n.y=e.y+r.y);return n}function ma(e,t){var i={x:e.x/t.del[0],y:e.y/t.del[1]},n={x:Math.floor(i.x),y:Math.floor(i.y)},s={x:i.x-1*n.x,y:i.y-1*n.y},r={x:Number.NaN,y:Number.NaN},a;if(n.x<0||n.x>=t.lim[0]||n.y<0||n.y>=t.lim[1])return r;a=n.y*t.lim[0]+n.x;var o={x:t.cvs[a][0],y:t.cvs[a][1]};a++;var h={x:t.cvs[a][0],y:t.cvs[a][1]};a+=t.lim[0];var l={x:t.cvs[a][0],y:t.cvs[a][1]};a--;var c={x:t.cvs[a][0],y:t.cvs[a][1]},u=s.x*s.y,d=s.x*(1-s.y),f=(1-s.x)*(1-s.y),g=(1-s.x)*s.y;return r.x=f*o.x+d*h.x+g*c.x+u*l.x,r.y=f*o.y+d*h.y+g*c.y+u*l.y,r}function ya(e,t,i){var n=i.x,s=i.y,r=i.z||0,a,o,h,l={};for(h=0;h<3;h++)if(!(t&&h===2&&i.z===void 0))switch(h===0?(a=n,"ew".indexOf(e.axis[h])!==-1?o="x":o="y"):h===1?(a=s,"ns".indexOf(e.axis[h])!==-1?o="y":o="x"):(a=r,o="z"),e.axis[h]){case"e":l[o]=a;break;case"w":l[o]=-a;break;case"n":l[o]=a;break;case"s":l[o]=-a;break;case"u":i[o]!==void 0&&(l.z=a);break;case"d":i[o]!==void 0&&(l.z=-a);break;default:return null}return l}function Lo(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t}function $u(e){va(e.x),va(e.y)}function va(e){if(typeof Number.isFinite=="function"){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if(typeof e!="number"||e!==e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function Xu(e,t){return(e.datum.datum_type===Ae||e.datum.datum_type===Le||e.datum.datum_type===ai)&&t.datumCode!=="WGS84"||(t.datum.datum_type===Ae||t.datum.datum_type===Le||t.datum.datum_type===ai)&&e.datumCode!=="WGS84"}function Fn(e,t,i,n){var s;Array.isArray(i)?i=Lo(i):i={x:i.x,y:i.y,z:i.z,m:i.m};var r=i.z!==void 0;if($u(i),e.datum&&t.datum&&Xu(e,t)&&(s=new Dt("WGS84"),i=Fn(e,s,i,n),e=s),n&&e.axis!=="enu"&&(i=ya(e,!1,i)),e.projName==="longlat")i={x:i.x*it,y:i.y*it,z:i.z||0};else if(e.to_meter&&(i={x:i.x*e.to_meter,y:i.y*e.to_meter,z:i.z||0}),i=e.inverse(i),!i)return;if(e.from_greenwich&&(i.x+=e.from_greenwich),i=ju(e.datum,t.datum,i),!!i)return t.from_greenwich&&(i={x:i.x-t.from_greenwich,y:i.y,z:i.z||0}),t.projName==="longlat"?i={x:i.x*Nt,y:i.y*Nt,z:i.z||0}:(i=t.forward(i),t.to_meter&&(i={x:i.x/t.to_meter,y:i.y/t.to_meter,z:i.z||0})),n&&t.axis!=="enu"?ya(t,!0,i):(r||delete i.z,i)}var Ma=Dt("WGS84");function _s(e,t,i,n){var s,r,a;return Array.isArray(i)?(s=Fn(e,t,i,n)||{x:NaN,y:NaN},i.length>2?typeof e.name<"u"&&e.name==="geocent"||typeof t.name<"u"&&t.name==="geocent"?typeof s.z=="number"?[s.x,s.y,s.z].concat(i.splice(3)):[s.x,s.y,i[2]].concat(i.splice(3)):[s.x,s.y].concat(i.splice(2)):[s.x,s.y]):(r=Fn(e,t,i,n),a=Object.keys(i),a.length===2||a.forEach(function(o){if(typeof e.name<"u"&&e.name==="geocent"||typeof t.name<"u"&&t.name==="geocent"){if(o==="x"||o==="y"||o==="z")return}else if(o==="x"||o==="y")return;r[o]=i[o]}),r)}function pa(e){return e instanceof Dt?e:e.oProj?e.oProj:Dt(e)}function dt(e,t,i){e=pa(e);var n=!1,s;return typeof t>"u"?(t=e,e=Ma,n=!0):(typeof t.x<"u"||Array.isArray(t))&&(i=t,t=e,e=Ma,n=!0),t=pa(t),i?_s(e,t,i):(s={forward:function(r,a){return _s(e,t,r,a)},inverse:function(r,a){return _s(t,e,r,a)}},n&&(s.oProj=t),s)}var Ea=6,So="AJSAJS",Oo="AFAFAF",Qe=65,ct=73,vt=79,bi=86,Ri=90;const qu={forward:No,inverse:Zu,toPoint:Do};function No(e,t){return t=t||5,Vu(Ku({lat:e[1],lon:e[0]}),t)}function Zu(e){var t=fr(Go(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]}function Do(e){var t=fr(Go(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function ms(e){return e*(Math.PI/180)}function xa(e){return 180*(e/Math.PI)}function Ku(e){var t=e.lat,i=e.lon,n=6378137,s=.00669438,r=.9996,a,o,h,l,c,u,d,f=ms(t),g=ms(i),_,m;m=Math.floor((i+180)/6)+1,i===180&&(m=60),t>=56&&t<64&&i>=3&&i<12&&(m=32),t>=72&&t<84&&(i>=0&&i<9?m=31:i>=9&&i<21?m=33:i>=21&&i<33?m=35:i>=33&&i<42&&(m=37)),a=(m-1)*6-180+3,_=ms(a),o=s/(1-s),h=n/Math.sqrt(1-s*Math.sin(f)*Math.sin(f)),l=Math.tan(f)*Math.tan(f),c=o*Math.cos(f)*Math.cos(f),u=Math.cos(f)*(g-_),d=n*((1-s/4-3*s*s/64-5*s*s*s/256)*f-(3*s/8+3*s*s/32+45*s*s*s/1024)*Math.sin(2*f)+(15*s*s/256+45*s*s*s/1024)*Math.sin(4*f)-35*s*s*s/3072*Math.sin(6*f));var v=r*h*(u+(1-l+c)*u*u*u/6+(5-18*l+l*l+72*c-58*o)*u*u*u*u*u/120)+5e5,y=r*(d+h*Math.tan(f)*(u*u/2+(5-l+9*c+4*c*c)*u*u*u*u/24+(61-58*l+l*l+600*c-330*o)*u*u*u*u*u*u/720));return t<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(v),zoneNumber:m,zoneLetter:Bu(t)}}function fr(e){var t=e.northing,i=e.easting,n=e.zoneLetter,s=e.zoneNumber;if(s<0||s>60)return null;var r=.9996,a=6378137,o=.00669438,h,l=(1-Math.sqrt(1-o))/(1+Math.sqrt(1-o)),c,u,d,f,g,_,m,v,y,p=i-5e5,M=t;n<"N"&&(M-=1e7),m=(s-1)*6-180+3,h=o/(1-o),_=M/r,v=_/(a*(1-o/4-3*o*o/64-5*o*o*o/256)),y=v+(3*l/2-27*l*l*l/32)*Math.sin(2*v)+(21*l*l/16-55*l*l*l*l/32)*Math.sin(4*v)+151*l*l*l/96*Math.sin(6*v),c=a/Math.sqrt(1-o*Math.sin(y)*Math.sin(y)),u=Math.tan(y)*Math.tan(y),d=h*Math.cos(y)*Math.cos(y),f=a*(1-o)/Math.pow(1-o*Math.sin(y)*Math.sin(y),1.5),g=p/(c*r);var C=y-c*Math.tan(y)/f*(g*g/2-(5+3*u+10*d-4*d*d-9*h)*g*g*g*g/24+(61+90*u+298*d+45*u*u-252*h-3*d*d)*g*g*g*g*g*g/720);C=xa(C);var T=(g-(1+2*u+d)*g*g*g/6+(5-2*d+28*u-3*d*d+8*h+24*u*u)*g*g*g*g*g/120)/Math.cos(y);T=m+xa(T);var I;if(e.accuracy){var P=fr({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});I={top:P.lat,right:P.lon,bottom:C,left:T}}else I={lat:C,lon:T};return I}function Bu(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function Vu(e,t){var i="00000"+e.easting,n="00000"+e.northing;return e.zoneNumber+e.zoneLetter+Wu(e.easting,e.northing,e.zoneNumber)+i.substr(i.length-5,t)+n.substr(n.length-5,t)}function Wu(e,t,i){var n=Fo(i),s=Math.floor(e/1e5),r=Math.floor(t/1e5)%20;return Yu(s,r,n)}function Fo(e){var t=e%Ea;return t===0&&(t=Ea),t}function Yu(e,t,i){var n=i-1,s=So.charCodeAt(n),r=Oo.charCodeAt(n),a=s+e-1,o=r+t,h=!1;a>Ri&&(a=a-Ri+Qe-1,h=!0),(a===ct||sct||(a>ct||svt||(a>vt||sRi&&(a=a-Ri+Qe-1),o>bi?(o=o-bi+Qe-1,h=!0):h=!1,(o===ct||rct||(o>ct||rvt||(o>vt||rbi&&(o=o-bi+Qe-1);var l=String.fromCharCode(a)+String.fromCharCode(o);return l}function Go(e){if(e&&e.length===0)throw"MGRSPoint coverting from nothing";for(var t=e.length,i=null,n="",s,r=0;!/[A-Z]/.test(s=e.charAt(r));){if(r>=2)throw"MGRSPoint bad conversion from: "+e;n+=s,r++}var a=parseInt(n,10);if(r===0||r+3>t)throw"MGRSPoint bad conversion from: "+e;var o=e.charAt(r++);if(o<="A"||o==="B"||o==="Y"||o>="Z"||o==="I"||o==="O")throw"MGRSPoint zone letter "+o+" not handled: "+e;i=e.substring(r,r+=2);for(var h=Fo(a),l=Hu(i.charAt(0),h),c=Qu(i.charAt(1),h);c0&&(_=1e5/Math.pow(10,d),m=e.substring(r,r+d),f=parseFloat(m)*_,v=e.substring(r+d),g=parseFloat(v)*_),y=f+l,p=g+c,{easting:y,northing:p,zoneLetter:o,zoneNumber:a,accuracy:_}}function Wu(e,t){for(var i=Lo.charCodeAt(t-1),n=1e5,s=!1;i!==e.charCodeAt(0);){if(i++,i===ct&&i++,i===vt&&i++,i>Ri){if(s)throw"Bad character: "+e;i=Qe,s=!0}n+=1e5}return n}function Yu(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;for(var i=So.charCodeAt(t-1),n=0,s=!1;i!==e.charCodeAt(0);){if(i++,i===ct&&i++,i===vt&&i++,i>bi){if(s)throw"Bad character: "+e;i=Qe,s=!0}n+=1e5}return n}function Hu(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function _i(e,t,i){if(!(this instanceof _i))return new _i(e,t,i);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if(typeof e=="object")this.x=e.x,this.y=e.y,this.z=e.z||0;else if(typeof e=="string"&&typeof t>"u"){var n=e.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=e,this.y=t,this.z=i||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}_i.fromMGRS=function(e){return new _i(No(e))};_i.prototype.toMGRS=function(e){return Oo([this.x,this.y],e)};var Qu=1,Ju=.25,Ca=.046875,ba=.01953125,Ra=.01068115234375,td=.75,ed=.46875,id=.013020833333333334,nd=.007120768229166667,sd=.3645833333333333,rd=.005696614583333333,ad=.3076171875;function Go(e){var t=[];t[0]=Qu-e*(Ju+e*(Ca+e*(ba+e*Ra))),t[1]=e*(td-e*(Ca+e*(ba+e*Ra)));var i=e*e;return t[2]=i*(ed-e*(id+e*nd)),i*=e,t[3]=i*(sd-e*rd),t[4]=i*e*ad,t}function ss(e,t,i,n){return i*=t,t*=t,n[0]*e-i*(n[1]+t*(n[2]+t*(n[3]+t*n[4])))}var od=20;function zo(e,t,i){for(var n=1/(1-t),s=e,r=od;r;--r){var a=Math.sin(s),o=1-t*a*a;if(o=(ss(s,a,Math.cos(s),i)-e)*(o*Math.sqrt(o))*n,s-=o,Math.abs(o)b?Math.tan(i):0,_=Math.pow(g,2),m=Math.pow(_,2);s=1-this.es*Math.pow(o,2),c=c/Math.sqrt(s);var v=ss(i,o,h,this.en);r=this.a*(this.k0*c*(1+u/6*(1-_+d+u/20*(5-18*_+m+14*d-58*_*d+u/42*(61+179*m-m*_-479*_)))))+this.x0,a=this.a*(this.k0*(v-this.ml0+o*n*c/2*(1+u/12*(5-_+9*d+4*f+u/30*(61+m-58*_+270*d-330*_*d+u/56*(1385+543*m-m*_-3111*_))))))+this.y0}else{var l=h*Math.sin(n);if(Math.abs(Math.abs(l)-1)=1){if(l-1>b)return 93;a=0}else a=Math.acos(a);i<0&&(a=-a),a=this.a*this.k0*(a-this.lat0)+this.y0}return e.x=r,e.y=a,e}function cd(e){var t,i,n,s,r=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+a/this.k0,i=zo(t,this.es,this.en),Math.abs(i)b?Math.tan(i):0,g=this.ep2*Math.pow(d,2),_=Math.pow(g,2),m=Math.pow(f,2),v=Math.pow(m,2);t=1-this.es*Math.pow(u,2);var y=r*Math.sqrt(t)/this.k0,p=Math.pow(y,2);t=t*f,n=i-t*p/(1-this.es)*.5*(1-p/12*(5+3*m-9*g*m+g-4*_-p/30*(61+90*m-252*g*m+45*v+46*g-p/56*(1385+3633*m+4095*v+1574*v*m)))),s=R(this.long0+y*(1-p/6*(1+2*m+g-p/20*(5+28*m+24*v+8*g*m+6*g-p/42*(61+662*m+1320*v+720*v*m))))/d)}else n=x*Hi(a),s=0;else{var o=Math.exp(r/this.k0),h=.5*(o-1/o),l=this.lat0+a/this.k0,c=Math.cos(l);t=Math.sqrt((1-Math.pow(c,2))/(1+Math.pow(h,2))),n=Math.asin(t),a<0&&(n=-n),h===0&&c===0?s=0:s=R(Math.atan2(h,c)+this.long0)}return e.x=s,e.y=n,e}var ud=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const xn={init:hd,forward:ld,inverse:cd,names:ud};function ko(e){var t=Math.exp(e);return t=(t-1/t)/2,t}function wt(e,t){e=Math.abs(e),t=Math.abs(t);var i=Math.max(e,t),n=Math.min(e,t)/(i||1);return i*Math.sqrt(1+Math.pow(n,2))}function dd(e){var t=1+e,i=t-1;return i===0?e:e*Math.log(t)/i}function fd(e){var t=Math.abs(e);return t=dd(t*(1+t/(wt(1,t)+1))),e<0?-t:t}function gr(e,t){for(var i=2*Math.cos(2*t),n=e.length-1,s=e[n],r=0,a;--n>=0;)a=-r+i*s+e[n],r=s,s=a;return t+a*Math.sin(2*t)}function gd(e,t){for(var i=2*Math.cos(t),n=e.length-1,s=e[n],r=0,a;--n>=0;)a=-r+i*s+e[n],r=s,s=a;return Math.sin(t)*a}function _d(e){var t=Math.exp(e);return t=(t+1/t)/2,t}function jo(e,t,i){for(var n=Math.sin(t),s=Math.cos(t),r=ko(i),a=_d(i),o=2*s*a,h=-2*n*r,l=e.length-1,c=e[l],u=0,d=0,f=0,g,_;--l>=0;)g=d,_=u,d=c,u=f,c=-g+o*d-h*u+e[l],f=-_+h*d+o*u;return o=n*a,h=s*r,[o*c-h*f,o*f+h*c]}function md(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(xn.init.apply(this),this.forward=xn.forward,this.inverse=xn.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),i=t;this.cgb[0]=t*(2+t*(-2/3+t*(-2+t*(116/45+t*(26/45+t*(-2854/675)))))),this.cbg[0]=t*(-2+t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))),i=i*t,this.cgb[1]=i*(7/3+t*(-8/5+t*(-227/45+t*(2704/315+t*(2323/945))))),this.cbg[1]=i*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),i=i*t,this.cgb[2]=i*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=i*(-26/15+t*(34/21+t*(8/5+t*(-12686/2835)))),i=i*t,this.cgb[3]=i*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=i*(1237/630+t*(-12/5+t*(-24832/14175))),i=i*t,this.cgb[4]=i*(4174/315+t*(-144838/6237)),this.cbg[4]=i*(-734/315+t*(109598/31185)),i=i*t,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+i*(1/4+i*(1/64+i/256))),this.utg[0]=t*(-.5+t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=i*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=i*(13/48+t*(-3/5+t*(557/1440+t*(281/630+t*(-1983433/1935360))))),i=i*t,this.utg[2]=i*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=i*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),i=i*t,this.utg[3]=i*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=i*(49561/161280+t*(-179/168+t*(6601661/7257600))),i=i*t,this.utg[4]=i*(-4583/161280+t*(108847/3991680)),this.gtu[4]=i*(34729/80640+t*(-3418889/1995840)),i=i*t,this.utg[5]=i*(-20648693/638668800),this.gtu[5]=i*(212378941/319334400);var n=gr(this.cbg,this.lat0);this.Zb=-this.Qn*(n+gd(this.gtu,2*n))}function yd(e){var t=R(e.x-this.long0),i=e.y;i=gr(this.cbg,i);var n=Math.sin(i),s=Math.cos(i),r=Math.sin(t),a=Math.cos(t);i=Math.atan2(n,a*s),t=Math.atan2(r*s,wt(n,s*a)),t=fd(Math.tan(t));var o=jo(this.gtu,2*i,2*t);i=i+o[0],t=t+o[1];var h,l;return Math.abs(t)<=2.623395162778?(h=this.a*(this.Qn*t)+this.x0,l=this.a*(this.Qn*i+this.Zb)+this.y0):(h=1/0,l=1/0),e.x=h,e.y=l,e}function vd(e){var t=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);i=(i-this.Zb)/this.Qn,t=t/this.Qn;var n,s;if(Math.abs(t)<=2.623395162778){var r=jo(this.utg,2*i,2*t);i=i+r[0],t=t+r[1],t=Math.atan(ko(t));var a=Math.sin(i),o=Math.cos(i),h=Math.sin(t),l=Math.cos(t);i=Math.atan2(a*l,wt(h,l*o)),t=Math.atan2(h,l*o),n=R(t+this.long0),s=gr(this.cgb,i)}else n=1/0,s=1/0;return e.x=n,e.y=s,e}var Md=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"];const Cn={init:md,forward:yd,inverse:vd,names:Md};function pd(e,t){if(e===void 0){if(e=Math.floor((R(t)+Math.PI)*30/Math.PI)+1,e<0)return 0;if(e>60)return 60}return e}var Ed="etmerc";function xd(){var e=pd(this.zone,this.long0);if(e===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*it,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Cn.init.apply(this),this.forward=Cn.forward,this.inverse=Cn.inverse}var Cd=["Universal Transverse Mercator System","utm"];const bd={init:xd,names:Cd,dependsOn:Ed};function _r(e,t){return Math.pow((1-e)/(1+e),t)}var Rd=20;function Td(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+N)/(Math.pow(Math.tan(.5*this.lat0+N),this.C)*_r(this.e*e,this.ratexp))}function wd(e){var t=e.x,i=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+N),this.C)*_r(this.e*Math.sin(i),this.ratexp))-x,e.x=this.C*t,e}function Id(e){for(var t=1e-14,i=e.x/this.C,n=e.y,s=Math.pow(Math.tan(.5*n+N)/this.K,1/this.C),r=Rd;r>0&&(n=2*Math.atan(s*_r(this.e*Math.sin(e.y),-.5*this.e))-x,!(Math.abs(n-e.y)0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=b&&(this.k0=.5*this.cons*Gt(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/It(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Gt(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-x,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function Gd(e){var t=e.x,i=e.y,n=Math.sin(i),s=Math.cos(i),r,a,o,h,l,c,u=R(t-this.long0);return Math.abs(Math.abs(t-this.long0)-Math.PI)<=b&&Math.abs(i+this.lat0)<=b?(e.x=NaN,e.y=NaN,e):this.sphere?(r=2*this.k0/(1+this.sinlat0*n+this.coslat0*s*Math.cos(u)),e.x=this.a*r*s*Math.sin(u)+this.x0,e.y=this.a*r*(this.coslat0*n-this.sinlat0*s*Math.cos(u))+this.y0,e):(a=2*Math.atan(this.ssfn_(i,n,this.e))-x,h=Math.cos(a),o=Math.sin(a),Math.abs(this.coslat0)<=b?(l=It(this.e,i*this.con,this.con*n),c=2*this.a*this.k0*l/this.cons,e.x=this.x0+c*Math.sin(t-this.long0),e.y=this.y0-this.con*c*Math.cos(t-this.long0),e):(Math.abs(this.sinlat0)0?t=R(this.long0+Math.atan2(e.x,-1*e.y)):t=R(this.long0+Math.atan2(e.x,e.y)):t=R(this.long0+Math.atan2(e.x*Math.sin(o),a*this.coslat0*Math.cos(o)-e.y*this.sinlat0*Math.sin(o))),e.x=t,e.y=i,e)}else if(Math.abs(this.coslat0)<=b){if(a<=b)return i=this.lat0,t=this.long0,e.x=t,e.y=i,e;e.x*=this.con,e.y*=this.con,n=a*this.cons/(2*this.a*this.k0),i=this.con*Di(this.e,n),t=this.con*R(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else s=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,a<=b?r=this.X0:(r=Math.asin(Math.cos(s)*this.sinX0+e.y*Math.sin(s)*this.cosX0/a),t=R(this.long0+Math.atan2(e.x*Math.sin(s),a*this.cosX0*Math.cos(s)-e.y*this.sinX0*Math.sin(s)))),i=-1*Di(this.e,Math.tan(.5*(x+r)));return e.x=t,e.y=i,e}var kd=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"];const jd={init:Fd,forward:Gd,inverse:zd,names:kd,ssfn_:Dd};function Ud(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),i=this.a,n=this.rf,s=1/n,r=2*s-Math.pow(s,2),a=this.e=Math.sqrt(r);this.R=this.k0*i*Math.sqrt(1-r)/(1-r*Math.pow(t,2)),this.alpha=Math.sqrt(1+r/(1-r)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var o=Math.log(Math.tan(Math.PI/4+this.b0/2)),h=Math.log(Math.tan(Math.PI/4+e/2)),l=Math.log((1+a*t)/(1-a*t));this.K=o-this.alpha*h+this.alpha*a/2*l}function $d(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),i=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),n=-this.alpha*(t+i)+this.K,s=2*(Math.atan(Math.exp(n))-Math.PI/4),r=this.alpha*(e.x-this.lambda0),a=Math.atan(Math.sin(r)/(Math.sin(this.b0)*Math.tan(s)+Math.cos(this.b0)*Math.cos(r))),o=Math.asin(Math.cos(this.b0)*Math.sin(s)-Math.sin(this.b0)*Math.cos(s)*Math.cos(r));return e.y=this.R/2*Math.log((1+Math.sin(o))/(1-Math.sin(o)))+this.y0,e.x=this.R*a+this.x0,e}function Xd(e){for(var t=e.x-this.x0,i=e.y-this.y0,n=t/this.R,s=2*(Math.atan(Math.exp(i/this.R))-Math.PI/4),r=Math.asin(Math.cos(this.b0)*Math.sin(s)+Math.sin(this.b0)*Math.cos(s)*Math.cos(n)),a=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(s))),o=this.lambda0+a/this.alpha,h=0,l=r,c=-1e3,u=0;Math.abs(l-c)>1e-7;){if(++u>20)return;h=1/this.alpha*(Math.log(Math.tan(Math.PI/4+r/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),c=l,l=2*Math.atan(Math.exp(h))-Math.PI/2}return e.x=o,e.y=l,e}var qd=["somerc"];const Zd={init:Ud,forward:$d,inverse:Xd,names:qd};var Ze=1e-7;function Kd(e){var t=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],i=typeof e.PROJECTION=="object"?Object.keys(e.PROJECTION)[0]:e.PROJECTION;return"no_uoff"in e||"no_off"in e||t.indexOf(i)!==-1}function Bd(){var e,t,i,n,s,r,a,o,h,l,c=0,u,d=0,f=0,g=0,_=0,m=0,v=0;this.no_off=Kd(this),this.no_rot="no_rot"in this;var y=!1;"alpha"in this&&(y=!0);var p=!1;if("rectified_grid_angle"in this&&(p=!0),y&&(v=this.alpha),p&&(c=this.rectified_grid_angle*it),y||p)d=this.longc;else if(f=this.long1,_=this.lat1,g=this.long2,m=this.lat2,Math.abs(_-m)<=Ze||(e=Math.abs(_))<=Ze||Math.abs(e-x)<=Ze||Math.abs(Math.abs(this.lat0)-x)<=Ze||Math.abs(Math.abs(m)-x)<=Ze)throw new Error;var M=1-this.es;t=Math.sqrt(M),Math.abs(this.lat0)>b?(o=Math.sin(this.lat0),i=Math.cos(this.lat0),e=1-this.es*o*o,this.B=i*i,this.B=Math.sqrt(1+this.es*this.B*this.B/M),this.A=this.B*this.k0*t/e,n=this.B*t/(i*Math.sqrt(e)),s=n*n-1,s<=0?s=0:(s=Math.sqrt(s),this.lat0<0&&(s=-s)),this.E=s+=n,this.E*=Math.pow(It(this.e,this.lat0,o),this.B)):(this.B=1/t,this.A=this.k0,this.E=n=s=1),y||p?(y?(u=Math.asin(Math.sin(v)/n),p||(c=v)):(u=c,v=Math.asin(n*Math.sin(u))),this.lam0=d-Math.asin(.5*(s-1/s)*Math.tan(u))/this.B):(r=Math.pow(It(this.e,_,Math.sin(_)),this.B),a=Math.pow(It(this.e,m,Math.sin(m)),this.B),s=this.E/r,h=(a-r)/(a+r),l=this.E*this.E,l=(l-a*r)/(l+a*r),e=f-g,e<-Math.pi?g-=Oi:e>Math.pi&&(g+=Oi),this.lam0=R(.5*(f+g)-Math.atan(l*Math.tan(.5*this.B*(f-g))/h)/this.B),u=Math.atan(2*Math.sin(this.B*R(f-this.lam0))/(s-1/s)),c=v=Math.asin(n*Math.sin(u))),this.singam=Math.sin(u),this.cosgam=Math.cos(u),this.sinrot=Math.sin(c),this.cosrot=Math.cos(c),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A*this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(v))),this.lat0<0&&(this.u_0=-this.u_0)),s=.5*u,this.v_pole_n=this.ArB*Math.log(Math.tan(N-s)),this.v_pole_s=this.ArB*Math.log(Math.tan(N+s))}function Vd(e){var t={},i,n,s,r,a,o,h,l;if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-x)>b){if(a=this.E/Math.pow(It(this.e,e.y,Math.sin(e.y)),this.B),o=1/a,i=.5*(a-o),n=.5*(a+o),r=Math.sin(this.B*e.x),s=(i*this.singam-r*this.cosgam)/n,Math.abs(Math.abs(s)-1)0?this.v_pole_n:this.v_pole_s,h=this.ArB*e.y;return this.no_rot?(t.x=h,t.y=l):(h-=this.u_0,t.x=l*this.cosrot+h*this.sinrot,t.y=h*this.cosrot-l*this.sinrot),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function Wd(e){var t,i,n,s,r,a,o,h={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(i=e.y,t=e.x):(i=e.x*this.cosrot-e.y*this.sinrot,t=e.y*this.cosrot+e.x*this.sinrot+this.u_0),n=Math.exp(-this.BrA*i),s=.5*(n-1/n),r=.5*(n+1/n),a=Math.sin(this.BrA*t),o=(a*this.cosgam+s*this.singam)/r,Math.abs(Math.abs(o)-1)b?this.ns=Math.log(n/o)/Math.log(s/h):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=n/(this.ns*Math.pow(s,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function Jd(e){var t=e.x,i=e.y;Math.abs(2*Math.abs(i)-Math.PI)<=b&&(i=Hi(i)*(x-2*b));var n=Math.abs(Math.abs(i)-x),s,r;if(n>b)s=It(this.e,i,Math.sin(i)),r=this.a*this.f0*Math.pow(s,this.ns);else{if(n=i*this.ns,n<=0)return null;r=0}var a=this.ns*R(t-this.long0);return e.x=this.k0*(r*Math.sin(a))+this.x0,e.y=this.k0*(this.rh-r*Math.cos(a))+this.y0,e}function tf(e){var t,i,n,s,r,a=(e.x-this.x0)/this.k0,o=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(a*a+o*o),i=1):(t=-Math.sqrt(a*a+o*o),i=-1);var h=0;if(t!==0&&(h=Math.atan2(i*a,i*o)),t!==0||this.ns>0){if(i=1/this.ns,n=Math.pow(t/(this.a*this.f0),i),s=Di(this.e,n),s===-9999)return null}else s=-x;return r=R(h/this.ns+this.long0),e.x=r,e.y=s,e}var ef=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"];const nf={init:Qd,forward:Jd,inverse:tf,names:ef};function sf(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function rf(e){var t,i,n,s,r,a,o,h=e.x,l=e.y,c=R(h-this.long0);return t=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/t)-this.s45),n=-c*this.alfa,s=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(n)),r=Math.asin(Math.cos(i)*Math.sin(n)/Math.cos(s)),a=this.n*r,o=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(s/2+this.s45),this.n),e.y=o*Math.cos(a)/1,e.x=o*Math.sin(a)/1,this.czech||(e.y*=-1,e.x*=-1),e}function af(e){var t,i,n,s,r,a,o,h,l=e.x;e.x=e.y,e.y=l,this.czech||(e.y*=-1,e.x*=-1),a=Math.sqrt(e.x*e.x+e.y*e.y),r=Math.atan2(e.y,e.x),s=r/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/a,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(s)),i=Math.asin(Math.cos(n)*Math.sin(s)/Math.cos(t)),e.x=this.long0-i/this.alfa,o=t,h=0;var c=0;do e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(o))/(1-this.e*Math.sin(o)),this.e/2))-this.s45),Math.abs(o-e.y)<1e-10&&(h=1),o=e.y,c+=1;while(h===0&&c<15);return c>=15?null:e}var of=["Krovak","krovak"];const hf={init:sf,forward:rf,inverse:af,names:of};function ot(e,t,i,n,s){return e*s-t*Math.sin(2*s)+i*Math.sin(4*s)-n*Math.sin(6*s)}function Qi(e){return 1-.25*e*(1+e/16*(3+1.25*e))}function Ji(e){return .375*e*(1+.25*e*(1+.46875*e))}function tn(e){return .05859375*e*e*(1+.75*e)}function en(e){return e*e*e*(35/3072)}function mi(e,t,i){var n=t*i;return e/Math.sqrt(1-n*n)}function Mi(e){return Math.abs(e)1e-7?(i=e*t,(1-e*e)*(t/(1-i*i)-.5/e*Math.log((1-i)/(1+i)))):2*t}var gf=1,_f=2,mf=3,yf=4;function vf(){var e=Math.abs(this.lat0);if(Math.abs(e-x)0){var t;switch(this.qp=ue(this.e,1),this.mmf=.5/(1-this.es),this.apa=wf(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=ue(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function Mf(e){var t,i,n,s,r,a,o,h,l,c,u=e.x,d=e.y;if(u=R(u-this.long0),this.sphere){if(r=Math.sin(d),c=Math.cos(d),n=Math.cos(u),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(i=this.mode===this.EQUIT?1+c*n:1+this.sinph0*r+this.cosph0*c*n,i<=b)return null;i=Math.sqrt(2/i),t=i*c*Math.sin(u),i*=this.mode===this.EQUIT?r:this.cosph0*r-this.sinph0*c*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(d+this.lat0)=0?(t=(l=Math.sqrt(a))*s,i=n*(this.mode===this.S_POLE?l:-l)):t=i=0;break}}return e.x=this.a*t+this.x0,e.y=this.a*i+this.y0,e}function pf(e){e.x-=this.x0,e.y-=this.y0;var t=e.x/this.a,i=e.y/this.a,n,s,r,a,o,h,l;if(this.sphere){var c=0,u,d=0;if(u=Math.sqrt(t*t+i*i),s=u*.5,s>1)return null;switch(s=2*Math.asin(s),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(d=Math.sin(s),c=Math.cos(s)),this.mode){case this.EQUIT:s=Math.abs(u)<=b?0:Math.asin(i*d/u),t*=d,i=c*u;break;case this.OBLIQ:s=Math.abs(u)<=b?this.lat0:Math.asin(c*this.sinph0+i*d*this.cosph0/u),t*=d*this.cosph0,i=(c-Math.sin(s)*this.sinph0)*u;break;case this.N_POLE:i=-i,s=x-s;break;case this.S_POLE:s-=x;break}n=i===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(t,i)}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(t/=this.dd,i*=this.dd,h=Math.sqrt(t*t+i*i),h1&&(e=e>1?1:-1),Math.asin(e)}function Lf(){Math.abs(this.lat1+this.lat2)b?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function Sf(e){var t=e.x,i=e.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var n=ue(this.e3,this.sin_phi),s=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,r=this.ns0*R(t-this.long0),a=s*Math.sin(r)+this.x0,o=this.rh-s*Math.cos(r)+this.y0;return e.x=a,e.y=o,e}function Of(e){var t,i,n,s,r,a;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),n=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),n=-1),s=0,t!==0&&(s=Math.atan2(n*e.x,n*e.y)),n=t*this.ns0/this.a,this.sphere?a=Math.asin((this.c-n*n)/(2*this.ns0)):(i=(this.c-n*n)/this.ns0,a=this.phi1z(this.e3,i)),r=R(s/this.ns0+this.long0),e.x=r,e.y=a,e}function Nf(e,t){var i,n,s,r,a,o=_e(.5*t);if(e0||Math.abs(a)<=b?(o=this.x0+this.a*r*i*Math.sin(n)/a,h=this.y0+this.a*r*(this.cos_p14*t-this.sin_p14*i*s)/a):(o=this.x0+this.infinity_dist*i*Math.sin(n),h=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*i*s)),e.x=o,e.y=h,e}function kf(e){var t,i,n,s,r,a;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(s=Math.atan2(t,this.rc),i=Math.sin(s),n=Math.cos(s),a=_e(n*this.sin_p14+e.y*i*this.cos_p14/t),r=Math.atan2(e.x*i,t*this.cos_p14*n-e.y*this.sin_p14*i),r=R(this.long0+r)):(a=this.phic0,r=0),e.x=r,e.y=a,e}var jf=["gnom"];const Uf={init:Gf,forward:zf,inverse:kf,names:jf};function $f(e,t){var i=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-i)<1e-6)return t<0?-1*x:x;for(var n=Math.asin(.5*t),s,r,a,o,h=0;h<30;h++)if(r=Math.sin(n),a=Math.cos(n),o=e*r,s=Math.pow(1-o*o,2)/(2*a)*(t/(1-e*e)-r/(1-o*o)+.5/e*Math.log((1-o)/(1+o))),n+=s,Math.abs(s)<=1e-10)return n;return NaN}function Xf(){this.sphere||(this.k0=Gt(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function qf(e){var t=e.x,i=e.y,n,s,r=R(t-this.long0);if(this.sphere)n=this.x0+this.a*r*Math.cos(this.lat_ts),s=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var a=ue(this.e,Math.sin(i));n=this.x0+this.a*this.k0*r,s=this.y0+this.a*a*.5/this.k0}return e.x=n,e.y=s,e}function Zf(e){e.x-=this.x0,e.y-=this.y0;var t,i;return this.sphere?(t=R(this.long0+e.x/this.a/Math.cos(this.lat_ts)),i=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(i=$f(this.e,2*e.y*this.k0/this.a),t=R(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=i,e}var Kf=["cea"];const Bf={init:Xf,forward:qf,inverse:Zf,names:Kf};function Vf(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function Wf(e){var t=e.x,i=e.y,n=R(t-this.long0),s=Mi(i-this.lat0);return e.x=this.x0+this.a*n*this.rc,e.y=this.y0+this.a*s,e}function Yf(e){var t=e.x,i=e.y;return e.x=R(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=Mi(this.lat0+(i-this.y0)/this.a),e}var Hf=["Equirectangular","Equidistant_Cylindrical","eqc"];const Qf={init:Vf,forward:Wf,inverse:Yf,names:Hf};var Ta=20;function Jf(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Qi(this.es),this.e1=Ji(this.es),this.e2=tn(this.es),this.e3=en(this.es),this.ml0=this.a*ot(this.e0,this.e1,this.e2,this.e3,this.lat0)}function t0(e){var t=e.x,i=e.y,n,s,r,a=R(t-this.long0);if(r=a*Math.sin(i),this.sphere)Math.abs(i)<=b?(n=this.a*a,s=-1*this.a*this.lat0):(n=this.a*Math.sin(r)/Math.tan(i),s=this.a*(Mi(i-this.lat0)+(1-Math.cos(r))/Math.tan(i)));else if(Math.abs(i)<=b)n=this.a*a,s=-1*this.ml0;else{var o=mi(this.a,this.e,Math.sin(i))/Math.tan(i);n=o*Math.sin(r),s=this.a*ot(this.e0,this.e1,this.e2,this.e3,i)-this.ml0+o*(1-Math.cos(r))}return e.x=n+this.x0,e.y=s+this.y0,e}function e0(e){var t,i,n,s,r,a,o,h,l;if(n=e.x-this.x0,s=e.y-this.y0,this.sphere)if(Math.abs(s+this.a*this.lat0)<=b)t=R(n/this.a+this.long0),i=0;else{a=this.lat0+s/this.a,o=n*n/this.a/this.a+a*a,h=a;var c;for(r=Ta;r;--r)if(c=Math.tan(h),l=-1*(a*(h*c+1)-h-.5*(h*h+o)*c)/((h-a)/c-1),h+=l,Math.abs(l)<=b){i=h;break}t=R(this.long0+Math.asin(n*Math.tan(h)/this.a)/Math.sin(i))}else if(Math.abs(s+this.ml0)<=b)i=0,t=R(this.long0+n/this.a);else{a=(this.ml0+s)/this.a,o=n*n/this.a/this.a+a*a,h=a;var u,d,f,g,_;for(r=Ta;r;--r)if(_=this.e*Math.sin(h),u=Math.sqrt(1-_*_)*Math.tan(h),d=this.a*ot(this.e0,this.e1,this.e2,this.e3,h),f=this.e0-2*this.e1*Math.cos(2*h)+4*this.e2*Math.cos(4*h)-6*this.e3*Math.cos(6*h),g=d/this.a,l=(a*(u*g+1)-g-.5*u*(g*g+o))/(this.es*Math.sin(2*h)*(g*g+o-2*a*g)/(4*u)+(a-g)*(u*f-2/Math.sin(2*h))-f),h-=l,Math.abs(l)<=b){i=h;break}u=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),t=R(this.long0+Math.asin(n*u/this.a)/Math.sin(i))}return e.x=t,e.y=i,e}var i0=["Polyconic","poly"];const n0={init:Jf,forward:t0,inverse:e0,names:i0};function s0(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function r0(e){var t,i=e.x,n=e.y,s=n-this.lat0,r=i-this.long0,a=s/Ii*1e-5,o=r,h=1,l=0;for(t=1;t<=10;t++)h=h*a,l=l+this.A[t]*h;var c=l,u=o,d=1,f=0,g,_,m=0,v=0;for(t=1;t<=6;t++)g=d*c-f*u,_=f*c+d*u,d=g,f=_,m=m+this.B_re[t]*d-this.B_im[t]*f,v=v+this.B_im[t]*d+this.B_re[t]*f;return e.x=v*this.a+this.x0,e.y=m*this.a+this.y0,e}function a0(e){var t,i=e.x,n=e.y,s=i-this.x0,r=n-this.y0,a=r/this.a,o=s/this.a,h=1,l=0,c,u,d=0,f=0;for(t=1;t<=6;t++)c=h*a-l*o,u=l*a+h*o,h=c,l=u,d=d+this.C_re[t]*h-this.C_im[t]*l,f=f+this.C_im[t]*h+this.C_re[t]*l;for(var g=0;g.999999999999&&(i=.999999999999),t=Math.asin(i);var n=R(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),i=(2*t+Math.sin(2*t))/Math.PI,Math.abs(i)>1&&(i=1);var s=Math.asin(i);return e.x=n,e.y=s,e}var C0=["Mollweide","moll"];const b0={init:p0,forward:E0,inverse:x0,names:C0};function R0(){Math.abs(this.lat1+this.lat2)=0?(i=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(i=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var r=0;if(i!==0&&(r=Math.atan2(t*e.x,t*e.y)),this.sphere)return s=R(this.long0+r/this.ns),n=Mi(this.g-i/this.a),e.x=s,e.y=n,e;var a=this.g-i/this.a;return n=Gn(a,this.e0,this.e1,this.e2,this.e3),s=R(this.long0+r/this.ns),e.x=s,e.y=n,e}var I0=["Equidistant_Conic","eqdc"];const P0={init:R0,forward:T0,inverse:w0,names:I0};function A0(){this.R=this.a}function L0(e){var t=e.x,i=e.y,n=R(t-this.long0),s,r;Math.abs(i)<=b&&(s=this.x0+this.R*n,r=this.y0);var a=_e(2*Math.abs(i/Math.PI));(Math.abs(n)<=b||Math.abs(Math.abs(i)-x)<=b)&&(s=this.x0,i>=0?r=this.y0+Math.PI*this.R*Math.tan(.5*a):r=this.y0+Math.PI*this.R*-Math.tan(.5*a));var o=.5*Math.abs(Math.PI/n-n/Math.PI),h=o*o,l=Math.sin(a),c=Math.cos(a),u=c/(l+c-1),d=u*u,f=u*(2/l-1),g=f*f,_=Math.PI*this.R*(o*(u-g)+Math.sqrt(h*(u-g)*(u-g)-(g+h)*(d-g)))/(g+h);n<0&&(_=-_),s=this.x0+_;var m=h+u;return _=Math.PI*this.R*(f*m-o*Math.sqrt((g+h)*(h+1)-m*m))/(g+h),i>=0?r=this.y0+_:r=this.y0-_,e.x=s,e.y=r,e}function S0(e){var t,i,n,s,r,a,o,h,l,c,u,d,f;return e.x-=this.x0,e.y-=this.y0,u=Math.PI*this.R,n=e.x/u,s=e.y/u,r=n*n+s*s,a=-Math.abs(s)*(1+r),o=a-2*s*s+n*n,h=-2*a+1+2*s*s+r*r,f=s*s/h+(2*o*o*o/h/h/h-9*a*o/h/h)/27,l=(a-o*o/3/h)/h,c=2*Math.sqrt(-l/3),u=3*f/l/c,Math.abs(u)>1&&(u>=0?u=1:u=-1),d=Math.acos(u)/3,e.y>=0?i=(-c*Math.cos(d+Math.PI/3)-o/3/h)*Math.PI:i=-(-c*Math.cos(d+Math.PI/3)-o/3/h)*Math.PI,Math.abs(n)2*x*this.a?void 0:(i=t/this.a,n=Math.sin(i),s=Math.cos(i),r=this.long0,Math.abs(t)<=b?a=this.lat0:(a=_e(s*this.sin_p12+e.y*n*this.cos_p12/t),o=Math.abs(this.lat0)-x,Math.abs(o)<=b?this.lat0>=0?r=R(this.long0+Math.atan2(e.x,-e.y)):r=R(this.long0-Math.atan2(-e.x,e.y)):r=R(this.long0+Math.atan2(e.x*n,t*this.cos_p12*s-e.y*this.sin_p12*n))),e.x=r,e.y=a,e)):(h=Qi(this.es),l=Ji(this.es),c=tn(this.es),u=en(this.es),Math.abs(this.sin_p12-1)<=b?(d=this.a*ot(h,l,c,u,x),t=Math.sqrt(e.x*e.x+e.y*e.y),f=d-t,a=Gn(f/this.a,h,l,c,u),r=R(this.long0+Math.atan2(e.x,-1*e.y)),e.x=r,e.y=a,e):Math.abs(this.sin_p12+1)<=b?(d=this.a*ot(h,l,c,u,x),t=Math.sqrt(e.x*e.x+e.y*e.y),f=t-d,a=Gn(f/this.a,h,l,c,u),r=R(this.long0+Math.atan2(e.x,e.y)),e.x=r,e.y=a,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),m=Math.atan2(e.x,e.y),g=mi(this.a,this.e,this.sin_p12),v=Math.cos(m),y=this.e*this.cos_p12*v,p=-y*y/(1-this.es),M=3*this.es*(1-p)*this.sin_p12*this.cos_p12*v/(1-this.es),C=t/g,T=C-p*(1+p)*Math.pow(C,3)/6-M*(1+3*p)*Math.pow(C,4)/24,I=1-p*T*T/2-C*T*T*T/6,_=Math.asin(this.sin_p12*Math.cos(T)+this.cos_p12*Math.sin(T)*v),r=R(this.long0+Math.asin(Math.sin(m)*Math.sin(T)/Math.cos(_))),P=Math.sin(_),a=Math.atan2((P-this.es*I*this.sin_p12)*Math.tan(_),P*(1-this.es)),e.x=r,e.y=a,e))}var z0=["Azimuthal_Equidistant","aeqd"];const k0={init:D0,forward:F0,inverse:G0,names:z0};function j0(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function U0(e){var t,i,n,s,r,a,o,h,l=e.x,c=e.y;return n=R(l-this.long0),t=Math.sin(c),i=Math.cos(c),s=Math.cos(n),a=this.sin_p14*t+this.cos_p14*i*s,r=1,(a>0||Math.abs(a)<=b)&&(o=this.a*r*i*Math.sin(n),h=this.y0+this.a*r*(this.cos_p14*t-this.sin_p14*i*s)),e.x=o,e.y=h,e}function $0(e){var t,i,n,s,r,a,o;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),i=_e(t/this.a),n=Math.sin(i),s=Math.cos(i),a=this.long0,Math.abs(t)<=b?(o=this.lat0,e.x=a,e.y=o,e):(o=_e(s*this.sin_p14+e.y*n*this.cos_p14/t),r=Math.abs(this.lat0)-x,Math.abs(r)<=b?(this.lat0>=0?a=R(this.long0+Math.atan2(e.x,-e.y)):a=R(this.long0-Math.atan2(-e.x,e.y)),e.x=a,e.y=o,e):(a=R(this.long0+Math.atan2(e.x*n,t*this.cos_p14*s-e.y*this.sin_p14*n)),e.x=a,e.y=o,e))}var X0=["ortho"];const q0={init:j0,forward:U0,inverse:$0,names:X0};var $={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},D={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function Z0(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=x-N/2?this.face=$.TOP:this.lat0<=-(x-N/2)?this.face=$.BOTTOM:Math.abs(this.long0)<=N?this.face=$.FRONT:Math.abs(this.long0)<=x+N?this.face=this.long0>0?$.RIGHT:$.LEFT:this.face=$.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function K0(e){var t={x:0,y:0},i,n,s,r,a,o,h={value:0};if(e.x-=this.long0,this.es!==0?i=Math.atan(this.one_minus_f_squared*Math.tan(e.y)):i=e.y,n=e.x,this.face===$.TOP)r=x-i,n>=N&&n<=x+N?(h.value=D.AREA_0,s=n-x):n>x+N||n<=-(x+N)?(h.value=D.AREA_1,s=n>0?n-K:n+K):n>-(x+N)&&n<=-N?(h.value=D.AREA_2,s=n+x):(h.value=D.AREA_3,s=n);else if(this.face===$.BOTTOM)r=x+i,n>=N&&n<=x+N?(h.value=D.AREA_0,s=-n+x):n=-N?(h.value=D.AREA_1,s=-n):n<-N&&n>=-(x+N)?(h.value=D.AREA_2,s=-n-x):(h.value=D.AREA_3,s=n>0?-n+K:-n-K);else{var l,c,u,d,f,g,_;this.face===$.RIGHT?n=oi(n,+x):this.face===$.BACK?n=oi(n,+K):this.face===$.LEFT&&(n=oi(n,-x)),d=Math.sin(i),f=Math.cos(i),g=Math.sin(n),_=Math.cos(n),l=f*_,c=f*g,u=d,this.face===$.FRONT?(r=Math.acos(l),s=_n(r,u,c,h)):this.face===$.RIGHT?(r=Math.acos(c),s=_n(r,u,-l,h)):this.face===$.BACK?(r=Math.acos(-l),s=_n(r,u,-c,h)):this.face===$.LEFT?(r=Math.acos(-c),s=_n(r,u,l,h)):(r=s=0,h.value=D.AREA_0)}return o=Math.atan(12/K*(s+Math.acos(Math.sin(s)*Math.cos(N))-x)),a=Math.sqrt((1-Math.cos(r))/(Math.cos(o)*Math.cos(o))/(1-Math.cos(Math.atan(1/Math.cos(s))))),h.value===D.AREA_1?o+=x:h.value===D.AREA_2?o+=K:h.value===D.AREA_3&&(o+=1.5*K),t.x=a*Math.cos(o),t.y=a*Math.sin(o),t.x=t.x*this.a+this.x0,t.y=t.y*this.a+this.y0,e.x=t.x,e.y=t.y,e}function B0(e){var t={lam:0,phi:0},i,n,s,r,a,o,h,l,c,u={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),i=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?u.value=D.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(u.value=D.AREA_1,i-=x):e.x<0&&-e.x>=Math.abs(e.y)?(u.value=D.AREA_2,i=i<0?i+K:i-K):(u.value=D.AREA_3,i+=x),c=K/12*Math.tan(i),a=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),o=Math.atan(a),s=Math.cos(i),r=Math.tan(n),h=1-s*s*r*r*(1-Math.cos(Math.atan(1/Math.cos(o)))),h<-1?h=-1:h>1&&(h=1),this.face===$.TOP)l=Math.acos(h),t.phi=x-l,u.value===D.AREA_0?t.lam=o+x:u.value===D.AREA_1?t.lam=o<0?o+K:o-K:u.value===D.AREA_2?t.lam=o-x:t.lam=o;else if(this.face===$.BOTTOM)l=Math.acos(h),t.phi=l-x,u.value===D.AREA_0?t.lam=-o+x:u.value===D.AREA_1?t.lam=-o:u.value===D.AREA_2?t.lam=-o-x:t.lam=o<0?-o-K:-o+K;else{var d,f,g;d=h,c=d*d,c>=1?g=0:g=Math.sqrt(1-c)*Math.sin(o),c+=g*g,c>=1?f=0:f=Math.sqrt(1-c),u.value===D.AREA_1?(c=f,f=-g,g=c):u.value===D.AREA_2?(f=-f,g=-g):u.value===D.AREA_3&&(c=f,f=g,g=-c),this.face===$.RIGHT?(c=d,d=-f,f=c):this.face===$.BACK?(d=-d,f=-f):this.face===$.LEFT&&(c=d,d=f,f=-c),t.phi=Math.acos(-g)-x,t.lam=Math.atan2(f,d),this.face===$.RIGHT?t.lam=oi(t.lam,-x):this.face===$.BACK?t.lam=oi(t.lam,-K):this.face===$.LEFT&&(t.lam=oi(t.lam,+x))}if(this.es!==0){var _,m,v;_=t.phi<0?1:0,m=Math.tan(t.phi),v=this.b/Math.sqrt(m*m+this.one_minus_f_squared),t.phi=Math.atan(Math.sqrt(this.a*this.a-v*v)/(this.one_minus_f*v)),_&&(t.phi=-t.phi)}return t.lam+=this.long0,e.x=t.lam,e.y=t.phi,e}function _n(e,t,i,n){var s;return eN&&s<=x+N?(n.value=D.AREA_1,s-=x):s>x+N||s<=-(x+N)?(n.value=D.AREA_2,s=s>=0?s-K:s+K):(n.value=D.AREA_3,s+=x)),s}function oi(e,t){var i=e+t;return i<-K?i+=Oi:i>+K&&(i-=Oi),i}var V0=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const W0={init:Z0,forward:K0,inverse:B0,names:V0};var Gs=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Ti=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Uo=.8487,$o=1.3523,Xo=Nt/5,Y0=1/Xo,Je=18,zn=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},H0=function(e,t){return e[1]+t*(2*e[2]+t*3*e[3])};function Q0(e,t,i,n){for(var s=t;n;--n){var r=e(s);if(s-=r,Math.abs(r)=Je&&(n=Je-1),i=Nt*(i-Y0*n);var s={x:zn(Gs[n],i)*t,y:zn(Ti[n],i)};return e.y<0&&(s.y=-s.y),s.x=s.x*this.a*Uo+this.x0,s.y=s.y*this.a*$o+this.y0,s}function eg(e){var t={x:(e.x-this.x0)/(this.a*Uo),y:Math.abs(e.y-this.y0)/(this.a*$o)};if(t.y>=1)t.x/=Gs[Je][0],t.y=e.y<0?-x:x;else{var i=Math.floor(t.y*Je);for(i<0?i=0:i>=Je&&(i=Je-1);;)if(Ti[i][0]>t.y)--i;else if(Ti[i+1][0]<=t.y)++i;else break;var n=Ti[i],s=5*(t.y-n[0])/(Ti[i+1][0]-n[0]);s=Q0(function(r){return(zn(n,r)-t.y)/H0(n,r)},s,b,100),t.x/=zn(Gs[i],s),t.y=(5*i+s)*it,e.y<0&&(t.y=-t.y)}return t.x=R(t.x+this.long0),t}var ig=["Robinson","robin"];const ng={init:J0,forward:tg,inverse:eg,names:ig};function sg(){this.name="geocent"}function rg(e){var t=Io(e,this.es,this.a);return t}function ag(e){var t=Po(e,this.es,this.a,this.b);return t}var og=["Geocentric","geocentric","geocent","Geocent"];const hg={init:sg,forward:rg,inverse:ag,names:og};var rt={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},Ci={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function lg(){if(Object.keys(Ci).forEach((function(i){if(typeof this[i]>"u")this[i]=Ci[i].def;else{if(Ci[i].num&&isNaN(this[i]))throw new Error("Invalid parameter value, must be numeric "+i+" = "+this[i]);Ci[i].num&&(this[i]=parseFloat(this[i]))}Ci[i].degrees&&(this[i]=this[i]*it)}).bind(this)),Math.abs(Math.abs(this.lat0)-x)1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var e=this.tilt,t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(e),this.sw=Math.sin(e)}function cg(e){e.x-=this.long0;var t=Math.sin(e.y),i=Math.cos(e.y),n=Math.cos(e.x),s,r;switch(this.mode){case rt.OBLIQ:r=this.sinph0*t+this.cosph0*i*n;break;case rt.EQUIT:r=i*n;break;case rt.S_POLE:r=-t;break;case rt.N_POLE:r=t;break}switch(r=this.pn1/(this.p-r),s=r*i*Math.sin(e.x),this.mode){case rt.OBLIQ:r*=this.cosph0*t-this.sinph0*i*n;break;case rt.EQUIT:r*=t;break;case rt.N_POLE:r*=-(i*n);break;case rt.S_POLE:r*=i*n;break}var a,o;return a=r*this.cg+s*this.sg,o=1/(a*this.sw*this.h1+this.cw),s=(s*this.cg-r*this.sg)*this.cw*o,r=a*o,e.x=s*this.a,e.y=r*this.a,e}function ug(e){e.x/=this.a,e.y/=this.a;var t={x:e.x,y:e.y},i,n,s;s=1/(this.pn1-e.y*this.sw),i=this.pn1*e.x*s,n=this.pn1*e.y*this.cw*s,e.x=i*this.cg+n*this.sg,e.y=n*this.cg-i*this.sg;var r=wt(e.x,e.y);if(Math.abs(r)1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,this.es!==0){var e=1-this.es,t=1/e;this.radius_p=Math.sqrt(e),this.radius_p2=e,this.radius_p_inv2=t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function _g(e){var t=e.x,i=e.y,n,s,r,a;if(t=t-this.long0,this.shape==="ellipse"){i=Math.atan(this.radius_p2*Math.tan(i));var o=this.radius_p/wt(this.radius_p*Math.cos(i),Math.sin(i));if(s=o*Math.cos(t)*Math.cos(i),r=o*Math.sin(t)*Math.cos(i),a=o*Math.sin(i),(this.radius_g-s)*s-r*r-a*a*this.radius_p_inv2<0)return e.x=Number.NaN,e.y=Number.NaN,e;n=this.radius_g-s,this.flip_axis?(e.x=this.radius_g_1*Math.atan(r/wt(a,n)),e.y=this.radius_g_1*Math.atan(a/n)):(e.x=this.radius_g_1*Math.atan(r/n),e.y=this.radius_g_1*Math.atan(a/wt(r,n)))}else this.shape==="sphere"&&(n=Math.cos(i),s=Math.cos(t)*n,r=Math.sin(t)*n,a=Math.sin(i),n=this.radius_g-s,this.flip_axis?(e.x=this.radius_g_1*Math.atan(r/wt(a,n)),e.y=this.radius_g_1*Math.atan(a/n)):(e.x=this.radius_g_1*Math.atan(r/n),e.y=this.radius_g_1*Math.atan(a/wt(r,n))));return e.x=e.x*this.a,e.y=e.y*this.a,e}function mg(e){var t=-1,i=0,n=0,s,r,a,o;if(e.x=e.x/this.a,e.y=e.y/this.a,this.shape==="ellipse"){this.flip_axis?(n=Math.tan(e.y/this.radius_g_1),i=Math.tan(e.x/this.radius_g_1)*wt(1,n)):(i=Math.tan(e.x/this.radius_g_1),n=Math.tan(e.y/this.radius_g_1)*wt(1,i));var h=n/this.radius_p;if(s=i*i+h*h+t*t,r=2*this.radius_g*t,a=r*r-4*s*this.C,a<0)return e.x=Number.NaN,e.y=Number.NaN,e;o=(-r-Math.sqrt(a))/(2*s),t=this.radius_g+o*t,i*=o,n*=o,e.x=Math.atan2(i,t),e.y=Math.atan(n*Math.cos(e.x)/t),e.y=Math.atan(this.radius_p_inv2*Math.tan(e.y))}else if(this.shape==="sphere"){if(this.flip_axis?(n=Math.tan(e.y/this.radius_g_1),i=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+n*n)):(i=Math.tan(e.x/this.radius_g_1),n=Math.tan(e.y/this.radius_g_1)*Math.sqrt(1+i*i)),s=i*i+n*n+t*t,r=2*this.radius_g*t,a=r*r-4*s*this.C,a<0)return e.x=Number.NaN,e.y=Number.NaN,e;o=(-r-Math.sqrt(a))/(2*s),t=this.radius_g+o*t,i*=o,n*=o,e.x=Math.atan2(i,t),e.y=Math.atan(n*Math.cos(e.x)/t)}return e.x=e.x+this.long0,e}var yg=["Geostationary Satellite View","Geostationary_Satellite","geos"];const vg={init:gg,forward:_g,inverse:mg,names:yg};function Mg(e){e.Proj.projections.add(xn),e.Proj.projections.add(Cn),e.Proj.projections.add(bd),e.Proj.projections.add(Nd),e.Proj.projections.add(jd),e.Proj.projections.add(Zd),e.Proj.projections.add(Hd),e.Proj.projections.add(nf),e.Proj.projections.add(hf),e.Proj.projections.add(ff),e.Proj.projections.add(Af),e.Proj.projections.add(Ff),e.Proj.projections.add(Uf),e.Proj.projections.add(Bf),e.Proj.projections.add(Qf),e.Proj.projections.add(n0),e.Proj.projections.add(h0),e.Proj.projections.add(f0),e.Proj.projections.add(M0),e.Proj.projections.add(b0),e.Proj.projections.add(P0),e.Proj.projections.add(N0),e.Proj.projections.add(k0),e.Proj.projections.add(q0),e.Proj.projections.add(W0),e.Proj.projections.add(ng),e.Proj.projections.add(hg),e.Proj.projections.add(fg),e.Proj.projections.add(vg)}dt.defaultDatum="WGS84";dt.Proj=Dt;dt.WGS84=new dt.Proj("WGS84");dt.Point=_i;dt.toPoint=Ao;dt.defs=at;dt.nadgrid=Tu;dt.transform=Fn;dt.mgrs=$u;dt.version="__VERSION__";Mg(dt);function pg(e){for(const[t,i]of Object.entries(e))dt.defs(t,i);jc(dt)}const w={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};class Eg extends Hn{constructor(t,i,n){super(),n=n||{},this.tileCoord=t,this.state=i,this.interimTile=null,this.key="",this.transition_=n.transition===void 0?250:n.transition,this.transitionStarts_={},this.interpolate=!!n.interpolate}changed(){this.dispatchEvent(S.CHANGE)}release(){this.state===w.ERROR&&this.setState(w.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){if(!this.interimTile)return this;let t=this.interimTile;do{if(t.getState()==w.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this}refreshInterimChain(){if(!this.interimTile)return;let t=this.interimTile,i=this;do{if(t.getState()==w.LOADED){t.interimTile=null;break}else t.getState()==w.LOADING?i=t:t.getState()==w.IDLE?i.interimTile=t.interimTile:i=t;t=i.interimTile}while(t)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(this.state!==w.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){Z()}getAlpha(t,i){if(!this.transition_)return 1;let n=this.transitionStarts_[t];if(!n)n=i,this.transitionStarts_[t]=n;else if(n===-1)return 1;const s=i-n+1e3/60;return s>=this.transition_?1:Va(s/this.transition_)}inTransition(t){return this.transition_?this.transitionStarts_[t]!==-1:!1}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}}const qo=Eg;class xg extends qo{constructor(t,i,n,s,r,a){super(t,i,a),this.crossOrigin_=s,this.src_=n,this.key=n,this.image_=new Image,s!==null&&(this.image_.crossOrigin=s),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(t){this.image_=t,this.state=w.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=w.ERROR,this.unlistenImage_(),this.image_=Cg(),this.changed()}handleImageLoad_(){const t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=w.LOADED:this.state=w.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==w.ERROR&&(this.state=w.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==w.IDLE&&(this.state=w.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=wc(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}function Cg(){const e=Pe(1,1);return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),e.canvas}const Zo=xg;class bg extends qo{constructor(t,i,n,s,r,a,o,h,l,c,u,d){super(r,w.IDLE,{interpolate:!!d}),this.renderEdges_=u!==void 0?u:!1,this.pixelRatio_=o,this.gutter_=h,this.canvas_=null,this.sourceTileGrid_=i,this.targetTileGrid_=s,this.wrappedTileCoord_=a||r,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const f=s.getTileCoordExtent(this.wrappedTileCoord_),g=this.targetTileGrid_.getExtent();let _=this.sourceTileGrid_.getExtent();const m=g?wi(f,g):f;if(Rs(m)===0){this.state=w.EMPTY;return}const v=t.getExtent();v&&(_?_=wi(_,v):_=v);const y=s.getResolution(this.wrappedTileCoord_[0]),p=Dc(t,n,m,y);if(!isFinite(p)||p<=0){this.state=w.EMPTY;return}const M=c!==void 0?c:Ac;if(this.triangulation_=new Oc(t,n,m,_,p*M,y),this.triangulation_.getTriangles().length===0){this.state=w.EMPTY;return}this.sourceZ_=i.getZForResolution(p);let C=this.triangulation_.calculateSourceExtent();if(_&&(t.canWrapX()?(C[1]=W(C[1],_[1],_[3]),C[3]=W(C[3],_[1],_[3])):C=wi(C,_)),!Rs(C))this.state=w.EMPTY;else{const T=i.getTileRangeForExtentAndZ(C,this.sourceZ_);for(let I=T.minX;I<=T.maxX;I++)for(let P=T.minY;P<=T.maxY;P++){const z=l(this.sourceZ_,I,P,o);z&&this.sourceTiles_.push(z)}this.sourceTiles_.length===0&&(this.state=w.EMPTY)}}getImage(){return this.canvas_}reproject_(){const t=[];if(this.sourceTiles_.forEach(i=>{i&&i.getState()==w.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(i.tileCoord),image:i.getImage()})}),this.sourceTiles_.length=0,t.length===0)this.state=w.ERROR;else{const i=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(i),s=typeof n=="number"?n:n[0],r=typeof n=="number"?n:n[1],a=this.targetTileGrid_.getResolution(i),o=this.sourceTileGrid_.getResolution(this.sourceZ_),h=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Fc(s,r,this.pixelRatio_,o,this.sourceTileGrid_.getExtent(),a,h,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=w.LOADED}this.changed()}load(){if(this.state==w.IDLE){this.state=w.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(i=>{const n=i.getState();if(n==w.IDLE||n==w.LOADING){t++;const s=G(i,S.CHANGE,function(r){const a=i.getState();(a==w.LOADED||a==w.ERROR||a==w.EMPTY)&&(B(s),t--,t===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(s)}}),t===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(i,n,s){i.getState()==w.IDLE&&i.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(B),this.sourcesListenerKeys_=null}release(){this.canvas_&&(ur(this.canvas_.getContext("2d")),ri.push(this.canvas_),this.canvas_=null),super.release()}}const zs=bg;class Rg{constructor(t){this.highWaterMark=t!==void 0?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let i=this.oldest_;for(;i;)t(i.value_,i.key_,this),i=i.newer}get(t,i){const n=this.entries_[t];return j(n!==void 0,"Tried to get a value for a key that does not exist in the cache"),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_}remove(t){const i=this.entries_[t];return j(i!==void 0,"Tried to get a value for a key that does not exist in the cache"),i===this.newest_?(this.newest_=i.older,this.newest_&&(this.newest_.newer=null)):i===this.oldest_?(this.oldest_=i.newer,this.oldest_&&(this.oldest_.older=null)):(i.newer.older=i.older,i.older.newer=i.newer),delete this.entries_[t],--this.count_,i.value_}getCount(){return this.count_}getKeys(){const t=new Array(this.count_);let i=0,n;for(n=this.newest_;n;n=n.older)t[i++]=n.key_;return t}getValues(){const t=new Array(this.count_);let i=0,n;for(n=this.newest_;n;n=n.older)t[i++]=n.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){if(this.containsKey(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,i){this.get(t),this.entries_[t].value_=i}set(t,i){j(!(t in this.entries_),"Tried to set a value for a key that is used already");const n={key_:t,newer:null,older:this.newest_,value_:i};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_}setSize(t){this.highWaterMark=t}}const Tg=Rg;function wa(e,t,i,n){return n!==void 0?(n[0]=e,n[1]=t,n[2]=i,n):[e,t,i]}function nn(e,t,i){return e+"/"+t+"/"+i}function Ko(e){return nn(e[0],e[1],e[2])}function I1(e){const[t,i,n]=e.substring(e.lastIndexOf("/")+1,e.length).split(",").map(Number);return nn(t,i,n)}function wg(e){return e.split("/").map(Number)}function Ig(e){return(e[1]<i||i>t.getMaxZoom())return!1;const r=t.getFullTileRange(i);return r?r.containsXY(n,s):!0}class Ag extends Tg{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()}pruneExceptNewestZ(){if(this.getCount()===0)return;const t=this.peekFirstKey(),n=wg(t)[0];this.forEach(s=>{s.tileCoord[0]!==n&&(this.remove(Ko(s.tileCoord)),s.release())})}}const Bo=Ag,ys={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"};class Vo{constructor(t,i,n,s){this.minX=t,this.maxX=i,this.minY=n,this.maxY=s}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,i){return this.minX<=t&&t<=this.maxX&&this.minY<=i&&i<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.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 je(e,t,i,n,s){return s!==void 0?(s.minX=e,s.maxX=t,s.minY=i,s.maxY=n,s):new Vo(e,t,i,n)}const Wo=Vo;function Ia(e){return e[0]>0&&e[1]>0}function Lg(e,t,i){return i===void 0&&(i=[0,0]),i[0]=e[0]*t+.5|0,i[1]=e[1]*t+.5|0,i}function le(e,t){return Array.isArray(e)?e:(t===void 0?t=[e,e]:(t[0]=e,t[1]=e),t)}const Ue=[0,0,0],Yt=5;class Sg{constructor(t){this.minZoom=t.minZoom!==void 0?t.minZoom:0,this.resolutions_=t.resolutions,j(Sh(this.resolutions_,function(s,r){return r-s},!0),"`resolutions` must be sorted in descending order");let i;if(!t.origins){for(let s=0,r=this.resolutions_.length-1;s=this.minZoom;){if(this.zoomFactor_===2?(a=Math.floor(a/2),o=Math.floor(o/2),r=je(a,a,o,o,n)):r=this.getTileRangeForExtentAndZ(h,l,n),i(l,r))return!0;--l}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,i,n){if(t[0]this.maxZoom||i0?n:Math.max(r/i[0],s/i[1]);const a=t+1,o=new Array(a);for(let h=0;hn.highWaterMark&&(n.highWaterMark=t)}useTile(t,i,n,s){}}class zg extends me{constructor(t,i){super(t),this.tile=i}}const kg=Gg;function jg(e,t){const i=/\{z\}/g,n=/\{x\}/g,s=/\{y\}/g,r=/\{-y\}/g;return function(a,o,h){if(a)return e.replace(i,a[0].toString()).replace(n,a[1].toString()).replace(s,a[2].toString()).replace(r,function(){const l=a[0],c=t.getFullTileRange(l);return j(c,"The {-y} placeholder requires a tile grid with extent"),(c.getHeight()-a[2]-1).toString()})}}function Ug(e,t){const i=e.length,n=new Array(i);for(let s=0;sthis.getTileInternal(m,v,y,p,a),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return _.key=u,l?(_.interimTile=l,_.refreshInterimChain(),o.replace(c,_)):o.set(c,_),_}getTileInternal(t,i,n,s,r){let a=null;const o=nn(t,i,n),h=this.getKey();if(!this.tileCache.containsKey(o))a=this.createTile_(t,i,n,s,r,h),this.tileCache.set(o,a);else if(a=this.tileCache.get(o),a.key!=h){const l=a;a=this.createTile_(t,i,n,s,r,h),l.getState()==w.IDLE?a.interimTile=l.interimTile:a.interimTile=l,a.refreshInterimChain(),this.tileCache.replace(o,a)}return a}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(const i in this.tileCacheForProjection)this.tileCacheForProjection[i].clear();this.changed()}}setTileGridForProjection(t,i){const n=J(t);if(n){const s=ut(n);s in this.tileGridForProjection||(this.tileGridForProjection[s]=i)}}clear(){super.clear();for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}}function Kg(e,t){e.getImage().src=t}const Bg=Zg;function Jo(e,t){return{containerProps:{className:wh(e,t.className),"data-testid":t["data-testid"]}}}const Mr=H.createContext(void 0);Mr.displayName="MapContext";const Vg=Mr.Provider;function Wg(){const e=H.useContext(Mr);if(!e)throw new Error("Map context is not available. The component must be a child of the component.");return e}const Yg="top-right";function P1(e){const{position:t=Yg,stopEvents:i=!0,children:n,horizontalGap:s,verticalGap:r}=e,{containerProps:a}=Jo("map-anchor",e),{padding:o,mapAnchorsHost:h}=Wg(),l=H.useMemo(()=>{const c=i?Jg:void 0;return{onPointerDown:c,onPointerUp:c,onContextMenu:c}},[i]);return bh.createPortal(Rn.jsx(Ih,{...a,pointerEvents:"auto",userSelect:"text",...l,...Qg(t,o,s,r),children:n}),h)}function Hg(e){return{gap:e===void 0?20+10:0,space:10}}function Qg(e,t,i,n){const s={position:"absolute",transitionProperty:"left, right, top, bottom",transitionDuration:"200ms",transitionTimingFunction:"ease-out"},a=i??0,h=n??0,l=Hg(n),c=u=>`${u}px`;switch(e){case"top-left":s.left=c(t.left+a),s.top=c(t.top+h);break;case"top-right":s.right=c(t.right+a),s.top=c(t.top+h);break;case"bottom-left":s.left=c(t.left+a),s.bottom=c(t.bottom+h+l.gap);break;case"bottom-right":s.right=c(t.right+a),s.bottom=c(t.bottom+h+l.gap);break}return s.maxH=`calc((100%) - ${s.top??"0px"} - ${s.bottom??l.gap+"px"} - ${h+"px"} - ${l.space+"px"})`,s.maxW=`calc((100%) - ${s.left??"0px"} - ${s.right??"0px"} - ${a+"px"})`,s.overflow="hidden",s}function Jg(e){e.stopPropagation()}const t_="@open-pioneer/map",e_=Rh.bind(void 0,t_);function i_(){var e=H.useRef(!1),t=H.useCallback(function(){return e.current},[]);return H.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}function n_(e,t,i){t===void 0&&(t=[]),i===void 0&&(i={loading:!1});var n=H.useRef(0),s=i_(),r=H.useState(i),a=r[0],o=r[1],h=H.useCallback(function(){for(var l=[],c=0;ct.getMapModel(e),[t,e]);return H.useMemo(()=>i.loading?{kind:"loading"}:i.error?{kind:"rejected",error:i.error}:{kind:"resolved",map:i.value},[i])}const pe=Se("map:MapContainer");function A1(e){const{mapId:t,viewPadding:i,viewPaddingChangeBehavior:n,children:s,role:r,"aria-label":a,"aria-labelledby":o}=e,{containerProps:h}=Jo("map-container",e),l=H.useRef(null),c=r_(t),u=c.map;H.useEffect(()=>{if(c.kind!=="loading"){if(c.kind==="rejected"){pe.error("Cannot display the map. Caused by ",c.error);return}if(!u){pe.error(`No configuration available for map with id '${t}'.`);return}if(l.current){const f=a_(u,l.current);return()=>f?.destroy()}}},[c,u,t]),H.useEffect(()=>{const f=u?.olMap.getView();if(i&&f){const g=f.getCenter(),{top:_=0,right:m=0,bottom:v=0,left:y=0}=i;f.padding=[_,m,v,y],f.animate({center:g,duration:300})}},[i,u]);const d={height:"100%"};return Rn.jsx("div",{...h,role:r,"aria-label":a,"aria-labelledby":o,ref:l,style:d,tabIndex:0,children:u&&Rn.jsx(o_,{map:u.olMap,viewPadding:i,viewPaddingChangeBehavior:n,children:s})})}function a_(e,t){const i=e.id,n=e.olMap;if(n.getTarget()){pe.error("Failed to display the map: the map already has a target. There may be more than one .");return}pe.isDebug()&&pe.debug(`Setting target of map '${i}':`,t),n.setTarget(t);let s=!1;return{destroy(){s||(pe.isDebug()&&pe.debug(`Removing target of map '${i}':`,t),n.setTarget(void 0),s=!0)}}}function o_(e){const{map:t,viewPadding:i,viewPaddingChangeBehavior:n="preserve-center",children:s}=e,r=h_(t),a=H.useMemo(()=>({left:i?.left??0,right:i?.right??0,top:i?.top??0,bottom:i?.bottom??0}),[i]);H.useEffect(()=>{const h=t?.getView();if(!t||!h)return;const l=h.getCenter(),c=c_(h.padding),u=l_(t,c);switch(h.padding=u_(a),n){case"preserve-center":h.animate({center:l,duration:300});break;case"preserve-extent":{u&&h.animate({center:l,resolution:h.getResolutionForExtent(u),duration:300});break}}},[a,t,n]);const o=H.useMemo(()=>({map:t,mapAnchorsHost:r,padding:a}),[t,a,r]);return Rn.jsx(Vg,{value:o,children:s})}function h_(e){const t=H.useRef();return t.current||(t.current=document.createElement("div"),t.current.classList.add("map-anchors")),H.useEffect(()=>{const i=t.current,n=e.getOverlayContainerStopEvent();return n.insertBefore(i,n.firstChild),()=>i.remove()},[e]),t.current}function l_(e,t){const i=e.getSize();if(!i||i.length<2)return;const[n,s]=i,r=e.getCoordinateFromPixel([t.left,t.bottom]),a=e.getCoordinateFromPixel([Math.max(0,n-t.right),Math.max(0,s-t.top)]);if(!r||!a)return;const[o,h]=r,[l,c]=a;return[o,h,l,c]}function c_(e){return{top:e?.[0]??0,right:e?.[1]??0,bottom:e?.[2]??0,left:e?.[3]??0}}function u_(e){const{top:t,right:i,bottom:n,left:s}=e;return[t,i,n,s]}const mn={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};class d_ extends is{constructor(t){t=t||{};const i=Object.assign({},t);delete i.preload,delete i.useInterimTilesOnError,super(i),this.on,this.once,this.un,this.setPreload(t.preload!==void 0?t.preload:0),this.setUseInterimTilesOnError(t.useInterimTilesOnError!==void 0?t.useInterimTilesOnError:!0)}getPreload(){return this.get(mn.PRELOAD)}setPreload(t){this.set(mn.PRELOAD,t)}getUseInterimTilesOnError(){return this.get(mn.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(t){this.set(mn.USE_INTERIM_TILES_ON_ERROR,t)}getData(t){return super.getData(t)}}const f_=d_;class g_ extends Tc{constructor(t){super(t),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=Oe(),this.tmpTileRange_=new Wo(0,0,0,0)}isDrawableTile(t){const i=this.getLayer(),n=t.getState(),s=i.getUseInterimTilesOnError();return n==w.LOADED||n==w.EMPTY||n==w.ERROR&&!s}getTile(t,i,n,s){const r=s.pixelRatio,a=s.viewState.projection,o=this.getLayer();let l=o.getSource().getTile(t,i,n,r,a);return l.getState()==w.ERROR&&o.getUseInterimTilesOnError()&&o.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(l)||(l=l.getInterimTile()),l}getData(t){const i=this.frameState;if(!i)return null;const n=this.getLayer(),s=Et(i.pixelToCoordinateTransform,t.slice()),r=n.getExtent();if(r&&!Ws(r,s))return null;const a=i.pixelRatio,o=i.viewState.projection,h=i.viewState,l=n.getRenderSource(),c=l.getTileGridForProjection(h.projection),u=l.getTilePixelRatio(i.pixelRatio);for(let d=c.getZForResolution(h.resolution);d>=c.getMinZoom();--d){const f=c.getTileCoordForCoordAndZ(s,d),g=l.getTile(d,f[1],f[2],a,o);if(!(g instanceof Zo||g instanceof zs)||g instanceof zs&&g.getState()===w.EMPTY)return null;if(g.getState()!==w.LOADED)continue;const _=c.getOrigin(d),m=le(c.getTileSize(d)),v=c.getResolution(d),y=Math.floor(u*((s[0]-_[0])/v-f[1]*m[0])),p=Math.floor(u*((_[1]-s[1])/v-f[2]*m[1])),M=Math.round(u*l.getGutterForProjection(h.projection));return this.getImageData(g.getImage(),y+M,p+M)}return null}loadedTileCallback(t,i,n){return this.isDrawableTile(n)?super.loadedTileCallback(t,i,n):!1}prepareFrame(t){return!!this.getLayer().getSource()}renderFrame(t,i){const n=t.layerStatesArray[t.layerIndex],s=t.viewState,r=s.projection,a=s.resolution,o=s.center,h=s.rotation,l=t.pixelRatio,c=this.getLayer(),u=c.getSource(),d=u.getRevision(),f=u.getTileGridForProjection(r),g=f.getZForResolution(a,u.zDirection),_=f.getResolution(g);let m=t.extent;const v=t.viewState.resolution,y=u.getTilePixelRatio(l),p=Math.round(X(m)/v*l),M=Math.round(Ft(m)/v*l),C=n.extent&&We(n.extent);C&&(m=wi(m,We(n.extent)));const T=_*p/2/y,I=_*M/2/y,P=[o[0]-T,o[1]-I,o[0]+T,o[1]+I],z=f.getTileRangeForExtentAndZ(m,g),U={};U[g]={};const Q=this.createLoadedTileFinder(u,r,U),gt=this.tmpExtent,Pt=this.tmpTileRange_;this.newTiles_=!1;const pi=h?ws(s.center,v,h,t.size):void 0;for(let St=z.minX;St<=z.maxX;++St)for(let Y=z.minY;Y<=z.maxY;++Y){if(h&&!f.tileCoordIntersectsViewport([g,St,Y],pi))continue;const V=this.getTile(g,St,Y,t);if(this.isDrawableTile(V)){const lt=ut(this);if(V.getState()==w.LOADED){U[g][V.tileCoord.toString()]=V;let Fe=V.inTransition(lt);Fe&&n.opacity!==1&&(V.endTransition(lt),Fe=!1),!this.newTiles_&&(Fe||!this.renderedTiles.includes(V))&&(this.newTiles_=!0)}if(V.getAlpha(lt,t.time)===1)continue}const De=f.getTileCoordChildTileRange(V.tileCoord,Pt,gt);let Wt=!1;De&&(Wt=Q(g+1,De)),Wt||f.forEachTileCoordParentTileRange(V.tileCoord,Q,Pt,gt)}const At=_/a*l/y;Li(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/l,1/l,h,-p/2,-M/2);const zt=Nl(this.pixelTransform);this.useContainer(i,zt,this.getBackground(t));const k=this.context,_t=k.canvas;to(this.inversePixelTransform,this.pixelTransform),Li(this.tempTransform,p/2,M/2,At,At,0,-p/2,-M/2),_t.width!=p||_t.height!=M?(_t.width=p,_t.height=M):this.containerReused||k.clearRect(0,0,p,M),C&&this.clipUnrotated(k,t,C),u.getInterpolate()||(k.imageSmoothingEnabled=!1),this.preRender(k,t),this.renderedTiles.length=0;let kt=Object.keys(U).map(Number);kt.sort(Wn);let Lt,ye,ht;n.opacity===1&&(!this.containerReused||u.getOpaque(t.viewState.projection))?kt=kt.reverse():(Lt=[],ye=[]);for(let St=kt.length-1;St>=0;--St){const Y=kt[St],V=u.getTilePixelSize(Y,l,r),Wt=f.getResolution(Y)/_,lt=V[0]*Wt*At,Fe=V[1]*Wt*At,os=f.getTileCoordForCoordAndZ(Ne(P),Y),Rr=f.getTileCoordExtent(os),an=Et(this.tempTransform,[y*(Rr[0]-P[0])/_,y*(P[3]-Rr[3])/_]),Mh=y*u.getGutterForProjection(r),Tr=U[Y];for(const ph in Tr){const Ge=Tr[ph],wr=Ge.tileCoord,Ir=os[1]-wr[1],Eh=Math.round(an[0]-(Ir-1)*lt),Pr=os[2]-wr[2],xh=Math.round(an[1]-(Pr-1)*Fe),jt=Math.round(an[0]-Ir*lt),Ut=Math.round(an[1]-Pr*Fe),Ei=Eh-jt,xi=xh-Ut,Ar=g===Y,Lr=Ar&&Ge.getAlpha(ut(this),t.time)!==1;let hs=!1;if(!Lr)if(Lt){ht=[jt,Ut,jt+Ei,Ut,jt+Ei,Ut+xi,jt,Ut+xi];for(let on=0,Ch=Lt.length;on0&&(_=1e5/Math.pow(10,d),m=e.substring(r,r+d),f=parseFloat(m)*_,v=e.substring(r+d),g=parseFloat(v)*_),y=f+l,p=g+c,{easting:y,northing:p,zoneLetter:o,zoneNumber:a,accuracy:_}}function Hu(e,t){for(var i=So.charCodeAt(t-1),n=1e5,s=!1;i!==e.charCodeAt(0);){if(i++,i===ct&&i++,i===vt&&i++,i>Ri){if(s)throw"Bad character: "+e;i=Qe,s=!0}n+=1e5}return n}function Qu(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;for(var i=Oo.charCodeAt(t-1),n=0,s=!1;i!==e.charCodeAt(0);){if(i++,i===ct&&i++,i===vt&&i++,i>bi){if(s)throw"Bad character: "+e;i=Qe,s=!0}n+=1e5}return n}function Ju(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function _i(e,t,i){if(!(this instanceof _i))return new _i(e,t,i);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if(typeof e=="object")this.x=e.x,this.y=e.y,this.z=e.z||0;else if(typeof e=="string"&&typeof t>"u"){var n=e.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=e,this.y=t,this.z=i||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}_i.fromMGRS=function(e){return new _i(Do(e))};_i.prototype.toMGRS=function(e){return No([this.x,this.y],e)};var td=1,ed=.25,Ca=.046875,ba=.01953125,Ra=.01068115234375,id=.75,nd=.46875,sd=.013020833333333334,rd=.007120768229166667,ad=.3645833333333333,od=.005696614583333333,hd=.3076171875;function zo(e){var t=[];t[0]=td-e*(ed+e*(Ca+e*(ba+e*Ra))),t[1]=e*(id-e*(Ca+e*(ba+e*Ra)));var i=e*e;return t[2]=i*(nd-e*(sd+e*rd)),i*=e,t[3]=i*(ad-e*od),t[4]=i*e*hd,t}function ss(e,t,i,n){return i*=t,t*=t,n[0]*e-i*(n[1]+t*(n[2]+t*(n[3]+t*n[4])))}var ld=20;function ko(e,t,i){for(var n=1/(1-t),s=e,r=ld;r;--r){var a=Math.sin(s),o=1-t*a*a;if(o=(ss(s,a,Math.cos(s),i)-e)*(o*Math.sqrt(o))*n,s-=o,Math.abs(o)b?Math.tan(i):0,_=Math.pow(g,2),m=Math.pow(_,2);s=1-this.es*Math.pow(o,2),c=c/Math.sqrt(s);var v=ss(i,o,h,this.en);r=this.a*(this.k0*c*(1+u/6*(1-_+d+u/20*(5-18*_+m+14*d-58*_*d+u/42*(61+179*m-m*_-479*_)))))+this.x0,a=this.a*(this.k0*(v-this.ml0+o*n*c/2*(1+u/12*(5-_+9*d+4*f+u/30*(61+m-58*_+270*d-330*_*d+u/56*(1385+543*m-m*_-3111*_))))))+this.y0}else{var l=h*Math.sin(n);if(Math.abs(Math.abs(l)-1)=1){if(l-1>b)return 93;a=0}else a=Math.acos(a);i<0&&(a=-a),a=this.a*this.k0*(a-this.lat0)+this.y0}return e.x=r,e.y=a,e}function dd(e){var t,i,n,s,r=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+a/this.k0,i=ko(t,this.es,this.en),Math.abs(i)b?Math.tan(i):0,g=this.ep2*Math.pow(d,2),_=Math.pow(g,2),m=Math.pow(f,2),v=Math.pow(m,2);t=1-this.es*Math.pow(u,2);var y=r*Math.sqrt(t)/this.k0,p=Math.pow(y,2);t=t*f,n=i-t*p/(1-this.es)*.5*(1-p/12*(5+3*m-9*g*m+g-4*_-p/30*(61+90*m-252*g*m+45*v+46*g-p/56*(1385+3633*m+4095*v+1574*v*m)))),s=R(this.long0+y*(1-p/6*(1+2*m+g-p/20*(5+28*m+24*v+8*g*m+6*g-p/42*(61+662*m+1320*v+720*v*m))))/d)}else n=x*Hi(a),s=0;else{var o=Math.exp(r/this.k0),h=.5*(o-1/o),l=this.lat0+a/this.k0,c=Math.cos(l);t=Math.sqrt((1-Math.pow(c,2))/(1+Math.pow(h,2))),n=Math.asin(t),a<0&&(n=-n),h===0&&c===0?s=0:s=R(Math.atan2(h,c)+this.long0)}return e.x=s,e.y=n,e}var fd=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const xn={init:cd,forward:ud,inverse:dd,names:fd};function jo(e){var t=Math.exp(e);return t=(t-1/t)/2,t}function wt(e,t){e=Math.abs(e),t=Math.abs(t);var i=Math.max(e,t),n=Math.min(e,t)/(i||1);return i*Math.sqrt(1+Math.pow(n,2))}function gd(e){var t=1+e,i=t-1;return i===0?e:e*Math.log(t)/i}function _d(e){var t=Math.abs(e);return t=gd(t*(1+t/(wt(1,t)+1))),e<0?-t:t}function gr(e,t){for(var i=2*Math.cos(2*t),n=e.length-1,s=e[n],r=0,a;--n>=0;)a=-r+i*s+e[n],r=s,s=a;return t+a*Math.sin(2*t)}function md(e,t){for(var i=2*Math.cos(t),n=e.length-1,s=e[n],r=0,a;--n>=0;)a=-r+i*s+e[n],r=s,s=a;return Math.sin(t)*a}function yd(e){var t=Math.exp(e);return t=(t+1/t)/2,t}function Uo(e,t,i){for(var n=Math.sin(t),s=Math.cos(t),r=jo(i),a=yd(i),o=2*s*a,h=-2*n*r,l=e.length-1,c=e[l],u=0,d=0,f=0,g,_;--l>=0;)g=d,_=u,d=c,u=f,c=-g+o*d-h*u+e[l],f=-_+h*d+o*u;return o=n*a,h=s*r,[o*c-h*f,o*f+h*c]}function vd(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(xn.init.apply(this),this.forward=xn.forward,this.inverse=xn.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),i=t;this.cgb[0]=t*(2+t*(-2/3+t*(-2+t*(116/45+t*(26/45+t*(-2854/675)))))),this.cbg[0]=t*(-2+t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))),i=i*t,this.cgb[1]=i*(7/3+t*(-8/5+t*(-227/45+t*(2704/315+t*(2323/945))))),this.cbg[1]=i*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),i=i*t,this.cgb[2]=i*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=i*(-26/15+t*(34/21+t*(8/5+t*(-12686/2835)))),i=i*t,this.cgb[3]=i*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=i*(1237/630+t*(-12/5+t*(-24832/14175))),i=i*t,this.cgb[4]=i*(4174/315+t*(-144838/6237)),this.cbg[4]=i*(-734/315+t*(109598/31185)),i=i*t,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+i*(1/4+i*(1/64+i/256))),this.utg[0]=t*(-.5+t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=i*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=i*(13/48+t*(-3/5+t*(557/1440+t*(281/630+t*(-1983433/1935360))))),i=i*t,this.utg[2]=i*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=i*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),i=i*t,this.utg[3]=i*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=i*(49561/161280+t*(-179/168+t*(6601661/7257600))),i=i*t,this.utg[4]=i*(-4583/161280+t*(108847/3991680)),this.gtu[4]=i*(34729/80640+t*(-3418889/1995840)),i=i*t,this.utg[5]=i*(-20648693/638668800),this.gtu[5]=i*(212378941/319334400);var n=gr(this.cbg,this.lat0);this.Zb=-this.Qn*(n+md(this.gtu,2*n))}function Md(e){var t=R(e.x-this.long0),i=e.y;i=gr(this.cbg,i);var n=Math.sin(i),s=Math.cos(i),r=Math.sin(t),a=Math.cos(t);i=Math.atan2(n,a*s),t=Math.atan2(r*s,wt(n,s*a)),t=_d(Math.tan(t));var o=Uo(this.gtu,2*i,2*t);i=i+o[0],t=t+o[1];var h,l;return Math.abs(t)<=2.623395162778?(h=this.a*(this.Qn*t)+this.x0,l=this.a*(this.Qn*i+this.Zb)+this.y0):(h=1/0,l=1/0),e.x=h,e.y=l,e}function pd(e){var t=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);i=(i-this.Zb)/this.Qn,t=t/this.Qn;var n,s;if(Math.abs(t)<=2.623395162778){var r=Uo(this.utg,2*i,2*t);i=i+r[0],t=t+r[1],t=Math.atan(jo(t));var a=Math.sin(i),o=Math.cos(i),h=Math.sin(t),l=Math.cos(t);i=Math.atan2(a*l,wt(h,l*o)),t=Math.atan2(h,l*o),n=R(t+this.long0),s=gr(this.cgb,i)}else n=1/0,s=1/0;return e.x=n,e.y=s,e}var Ed=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"];const Cn={init:vd,forward:Md,inverse:pd,names:Ed};function xd(e,t){if(e===void 0){if(e=Math.floor((R(t)+Math.PI)*30/Math.PI)+1,e<0)return 0;if(e>60)return 60}return e}var Cd="etmerc";function bd(){var e=xd(this.zone,this.long0);if(e===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*it,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Cn.init.apply(this),this.forward=Cn.forward,this.inverse=Cn.inverse}var Rd=["Universal Transverse Mercator System","utm"];const Td={init:bd,names:Rd,dependsOn:Cd};function _r(e,t){return Math.pow((1-e)/(1+e),t)}var wd=20;function Id(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+N)/(Math.pow(Math.tan(.5*this.lat0+N),this.C)*_r(this.e*e,this.ratexp))}function Pd(e){var t=e.x,i=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+N),this.C)*_r(this.e*Math.sin(i),this.ratexp))-x,e.x=this.C*t,e}function Ad(e){for(var t=1e-14,i=e.x/this.C,n=e.y,s=Math.pow(Math.tan(.5*n+N)/this.K,1/this.C),r=wd;r>0&&(n=2*Math.atan(s*_r(this.e*Math.sin(e.y),-.5*this.e))-x,!(Math.abs(n-e.y)0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=b&&(this.k0=.5*this.cons*Gt(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/It(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Gt(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-x,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function kd(e){var t=e.x,i=e.y,n=Math.sin(i),s=Math.cos(i),r,a,o,h,l,c,u=R(t-this.long0);return Math.abs(Math.abs(t-this.long0)-Math.PI)<=b&&Math.abs(i+this.lat0)<=b?(e.x=NaN,e.y=NaN,e):this.sphere?(r=2*this.k0/(1+this.sinlat0*n+this.coslat0*s*Math.cos(u)),e.x=this.a*r*s*Math.sin(u)+this.x0,e.y=this.a*r*(this.coslat0*n-this.sinlat0*s*Math.cos(u))+this.y0,e):(a=2*Math.atan(this.ssfn_(i,n,this.e))-x,h=Math.cos(a),o=Math.sin(a),Math.abs(this.coslat0)<=b?(l=It(this.e,i*this.con,this.con*n),c=2*this.a*this.k0*l/this.cons,e.x=this.x0+c*Math.sin(t-this.long0),e.y=this.y0-this.con*c*Math.cos(t-this.long0),e):(Math.abs(this.sinlat0)0?t=R(this.long0+Math.atan2(e.x,-1*e.y)):t=R(this.long0+Math.atan2(e.x,e.y)):t=R(this.long0+Math.atan2(e.x*Math.sin(o),a*this.coslat0*Math.cos(o)-e.y*this.sinlat0*Math.sin(o))),e.x=t,e.y=i,e)}else if(Math.abs(this.coslat0)<=b){if(a<=b)return i=this.lat0,t=this.long0,e.x=t,e.y=i,e;e.x*=this.con,e.y*=this.con,n=a*this.cons/(2*this.a*this.k0),i=this.con*Di(this.e,n),t=this.con*R(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else s=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,a<=b?r=this.X0:(r=Math.asin(Math.cos(s)*this.sinX0+e.y*Math.sin(s)*this.cosX0/a),t=R(this.long0+Math.atan2(e.x*Math.sin(s),a*this.cosX0*Math.cos(s)-e.y*this.sinX0*Math.sin(s)))),i=-1*Di(this.e,Math.tan(.5*(x+r)));return e.x=t,e.y=i,e}var Ud=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"];const $d={init:zd,forward:kd,inverse:jd,names:Ud,ssfn_:Gd};function Xd(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),i=this.a,n=this.rf,s=1/n,r=2*s-Math.pow(s,2),a=this.e=Math.sqrt(r);this.R=this.k0*i*Math.sqrt(1-r)/(1-r*Math.pow(t,2)),this.alpha=Math.sqrt(1+r/(1-r)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var o=Math.log(Math.tan(Math.PI/4+this.b0/2)),h=Math.log(Math.tan(Math.PI/4+e/2)),l=Math.log((1+a*t)/(1-a*t));this.K=o-this.alpha*h+this.alpha*a/2*l}function qd(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),i=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),n=-this.alpha*(t+i)+this.K,s=2*(Math.atan(Math.exp(n))-Math.PI/4),r=this.alpha*(e.x-this.lambda0),a=Math.atan(Math.sin(r)/(Math.sin(this.b0)*Math.tan(s)+Math.cos(this.b0)*Math.cos(r))),o=Math.asin(Math.cos(this.b0)*Math.sin(s)-Math.sin(this.b0)*Math.cos(s)*Math.cos(r));return e.y=this.R/2*Math.log((1+Math.sin(o))/(1-Math.sin(o)))+this.y0,e.x=this.R*a+this.x0,e}function Zd(e){for(var t=e.x-this.x0,i=e.y-this.y0,n=t/this.R,s=2*(Math.atan(Math.exp(i/this.R))-Math.PI/4),r=Math.asin(Math.cos(this.b0)*Math.sin(s)+Math.sin(this.b0)*Math.cos(s)*Math.cos(n)),a=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(s))),o=this.lambda0+a/this.alpha,h=0,l=r,c=-1e3,u=0;Math.abs(l-c)>1e-7;){if(++u>20)return;h=1/this.alpha*(Math.log(Math.tan(Math.PI/4+r/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),c=l,l=2*Math.atan(Math.exp(h))-Math.PI/2}return e.x=o,e.y=l,e}var Kd=["somerc"];const Bd={init:Xd,forward:qd,inverse:Zd,names:Kd};var Ze=1e-7;function Vd(e){var t=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],i=typeof e.PROJECTION=="object"?Object.keys(e.PROJECTION)[0]:e.PROJECTION;return"no_uoff"in e||"no_off"in e||t.indexOf(i)!==-1}function Wd(){var e,t,i,n,s,r,a,o,h,l,c=0,u,d=0,f=0,g=0,_=0,m=0,v=0;this.no_off=Vd(this),this.no_rot="no_rot"in this;var y=!1;"alpha"in this&&(y=!0);var p=!1;if("rectified_grid_angle"in this&&(p=!0),y&&(v=this.alpha),p&&(c=this.rectified_grid_angle*it),y||p)d=this.longc;else if(f=this.long1,_=this.lat1,g=this.long2,m=this.lat2,Math.abs(_-m)<=Ze||(e=Math.abs(_))<=Ze||Math.abs(e-x)<=Ze||Math.abs(Math.abs(this.lat0)-x)<=Ze||Math.abs(Math.abs(m)-x)<=Ze)throw new Error;var M=1-this.es;t=Math.sqrt(M),Math.abs(this.lat0)>b?(o=Math.sin(this.lat0),i=Math.cos(this.lat0),e=1-this.es*o*o,this.B=i*i,this.B=Math.sqrt(1+this.es*this.B*this.B/M),this.A=this.B*this.k0*t/e,n=this.B*t/(i*Math.sqrt(e)),s=n*n-1,s<=0?s=0:(s=Math.sqrt(s),this.lat0<0&&(s=-s)),this.E=s+=n,this.E*=Math.pow(It(this.e,this.lat0,o),this.B)):(this.B=1/t,this.A=this.k0,this.E=n=s=1),y||p?(y?(u=Math.asin(Math.sin(v)/n),p||(c=v)):(u=c,v=Math.asin(n*Math.sin(u))),this.lam0=d-Math.asin(.5*(s-1/s)*Math.tan(u))/this.B):(r=Math.pow(It(this.e,_,Math.sin(_)),this.B),a=Math.pow(It(this.e,m,Math.sin(m)),this.B),s=this.E/r,h=(a-r)/(a+r),l=this.E*this.E,l=(l-a*r)/(l+a*r),e=f-g,e<-Math.pi?g-=Oi:e>Math.pi&&(g+=Oi),this.lam0=R(.5*(f+g)-Math.atan(l*Math.tan(.5*this.B*(f-g))/h)/this.B),u=Math.atan(2*Math.sin(this.B*R(f-this.lam0))/(s-1/s)),c=v=Math.asin(n*Math.sin(u))),this.singam=Math.sin(u),this.cosgam=Math.cos(u),this.sinrot=Math.sin(c),this.cosrot=Math.cos(c),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A*this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(v))),this.lat0<0&&(this.u_0=-this.u_0)),s=.5*u,this.v_pole_n=this.ArB*Math.log(Math.tan(N-s)),this.v_pole_s=this.ArB*Math.log(Math.tan(N+s))}function Yd(e){var t={},i,n,s,r,a,o,h,l;if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-x)>b){if(a=this.E/Math.pow(It(this.e,e.y,Math.sin(e.y)),this.B),o=1/a,i=.5*(a-o),n=.5*(a+o),r=Math.sin(this.B*e.x),s=(i*this.singam-r*this.cosgam)/n,Math.abs(Math.abs(s)-1)0?this.v_pole_n:this.v_pole_s,h=this.ArB*e.y;return this.no_rot?(t.x=h,t.y=l):(h-=this.u_0,t.x=l*this.cosrot+h*this.sinrot,t.y=h*this.cosrot-l*this.sinrot),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function Hd(e){var t,i,n,s,r,a,o,h={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(i=e.y,t=e.x):(i=e.x*this.cosrot-e.y*this.sinrot,t=e.y*this.cosrot+e.x*this.sinrot+this.u_0),n=Math.exp(-this.BrA*i),s=.5*(n-1/n),r=.5*(n+1/n),a=Math.sin(this.BrA*t),o=(a*this.cosgam+s*this.singam)/r,Math.abs(Math.abs(o)-1)b?this.ns=Math.log(n/o)/Math.log(s/h):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=n/(this.ns*Math.pow(s,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function ef(e){var t=e.x,i=e.y;Math.abs(2*Math.abs(i)-Math.PI)<=b&&(i=Hi(i)*(x-2*b));var n=Math.abs(Math.abs(i)-x),s,r;if(n>b)s=It(this.e,i,Math.sin(i)),r=this.a*this.f0*Math.pow(s,this.ns);else{if(n=i*this.ns,n<=0)return null;r=0}var a=this.ns*R(t-this.long0);return e.x=this.k0*(r*Math.sin(a))+this.x0,e.y=this.k0*(this.rh-r*Math.cos(a))+this.y0,e}function nf(e){var t,i,n,s,r,a=(e.x-this.x0)/this.k0,o=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(a*a+o*o),i=1):(t=-Math.sqrt(a*a+o*o),i=-1);var h=0;if(t!==0&&(h=Math.atan2(i*a,i*o)),t!==0||this.ns>0){if(i=1/this.ns,n=Math.pow(t/(this.a*this.f0),i),s=Di(this.e,n),s===-9999)return null}else s=-x;return r=R(h/this.ns+this.long0),e.x=r,e.y=s,e}var sf=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"];const rf={init:tf,forward:ef,inverse:nf,names:sf};function af(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function of(e){var t,i,n,s,r,a,o,h=e.x,l=e.y,c=R(h-this.long0);return t=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/t)-this.s45),n=-c*this.alfa,s=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(n)),r=Math.asin(Math.cos(i)*Math.sin(n)/Math.cos(s)),a=this.n*r,o=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(s/2+this.s45),this.n),e.y=o*Math.cos(a)/1,e.x=o*Math.sin(a)/1,this.czech||(e.y*=-1,e.x*=-1),e}function hf(e){var t,i,n,s,r,a,o,h,l=e.x;e.x=e.y,e.y=l,this.czech||(e.y*=-1,e.x*=-1),a=Math.sqrt(e.x*e.x+e.y*e.y),r=Math.atan2(e.y,e.x),s=r/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/a,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(s)),i=Math.asin(Math.cos(n)*Math.sin(s)/Math.cos(t)),e.x=this.long0-i/this.alfa,o=t,h=0;var c=0;do e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(o))/(1-this.e*Math.sin(o)),this.e/2))-this.s45),Math.abs(o-e.y)<1e-10&&(h=1),o=e.y,c+=1;while(h===0&&c<15);return c>=15?null:e}var lf=["Krovak","krovak"];const cf={init:af,forward:of,inverse:hf,names:lf};function ot(e,t,i,n,s){return e*s-t*Math.sin(2*s)+i*Math.sin(4*s)-n*Math.sin(6*s)}function Qi(e){return 1-.25*e*(1+e/16*(3+1.25*e))}function Ji(e){return .375*e*(1+.25*e*(1+.46875*e))}function tn(e){return .05859375*e*e*(1+.75*e)}function en(e){return e*e*e*(35/3072)}function mi(e,t,i){var n=t*i;return e/Math.sqrt(1-n*n)}function Mi(e){return Math.abs(e)1e-7?(i=e*t,(1-e*e)*(t/(1-i*i)-.5/e*Math.log((1-i)/(1+i)))):2*t}var mf=1,yf=2,vf=3,Mf=4;function pf(){var e=Math.abs(this.lat0);if(Math.abs(e-x)0){var t;switch(this.qp=ue(this.e,1),this.mmf=.5/(1-this.es),this.apa=Pf(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=ue(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function Ef(e){var t,i,n,s,r,a,o,h,l,c,u=e.x,d=e.y;if(u=R(u-this.long0),this.sphere){if(r=Math.sin(d),c=Math.cos(d),n=Math.cos(u),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(i=this.mode===this.EQUIT?1+c*n:1+this.sinph0*r+this.cosph0*c*n,i<=b)return null;i=Math.sqrt(2/i),t=i*c*Math.sin(u),i*=this.mode===this.EQUIT?r:this.cosph0*r-this.sinph0*c*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(d+this.lat0)=0?(t=(l=Math.sqrt(a))*s,i=n*(this.mode===this.S_POLE?l:-l)):t=i=0;break}}return e.x=this.a*t+this.x0,e.y=this.a*i+this.y0,e}function xf(e){e.x-=this.x0,e.y-=this.y0;var t=e.x/this.a,i=e.y/this.a,n,s,r,a,o,h,l;if(this.sphere){var c=0,u,d=0;if(u=Math.sqrt(t*t+i*i),s=u*.5,s>1)return null;switch(s=2*Math.asin(s),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(d=Math.sin(s),c=Math.cos(s)),this.mode){case this.EQUIT:s=Math.abs(u)<=b?0:Math.asin(i*d/u),t*=d,i=c*u;break;case this.OBLIQ:s=Math.abs(u)<=b?this.lat0:Math.asin(c*this.sinph0+i*d*this.cosph0/u),t*=d*this.cosph0,i=(c-Math.sin(s)*this.sinph0)*u;break;case this.N_POLE:i=-i,s=x-s;break;case this.S_POLE:s-=x;break}n=i===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(t,i)}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(t/=this.dd,i*=this.dd,h=Math.sqrt(t*t+i*i),h1&&(e=e>1?1:-1),Math.asin(e)}function Of(){Math.abs(this.lat1+this.lat2)b?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function Nf(e){var t=e.x,i=e.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var n=ue(this.e3,this.sin_phi),s=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,r=this.ns0*R(t-this.long0),a=s*Math.sin(r)+this.x0,o=this.rh-s*Math.cos(r)+this.y0;return e.x=a,e.y=o,e}function Df(e){var t,i,n,s,r,a;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),n=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),n=-1),s=0,t!==0&&(s=Math.atan2(n*e.x,n*e.y)),n=t*this.ns0/this.a,this.sphere?a=Math.asin((this.c-n*n)/(2*this.ns0)):(i=(this.c-n*n)/this.ns0,a=this.phi1z(this.e3,i)),r=R(s/this.ns0+this.long0),e.x=r,e.y=a,e}function Ff(e,t){var i,n,s,r,a,o=_e(.5*t);if(e0||Math.abs(a)<=b?(o=this.x0+this.a*r*i*Math.sin(n)/a,h=this.y0+this.a*r*(this.cos_p14*t-this.sin_p14*i*s)/a):(o=this.x0+this.infinity_dist*i*Math.sin(n),h=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*i*s)),e.x=o,e.y=h,e}function Uf(e){var t,i,n,s,r,a;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(s=Math.atan2(t,this.rc),i=Math.sin(s),n=Math.cos(s),a=_e(n*this.sin_p14+e.y*i*this.cos_p14/t),r=Math.atan2(e.x*i,t*this.cos_p14*n-e.y*this.sin_p14*i),r=R(this.long0+r)):(a=this.phic0,r=0),e.x=r,e.y=a,e}var $f=["gnom"];const Xf={init:kf,forward:jf,inverse:Uf,names:$f};function qf(e,t){var i=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-i)<1e-6)return t<0?-1*x:x;for(var n=Math.asin(.5*t),s,r,a,o,h=0;h<30;h++)if(r=Math.sin(n),a=Math.cos(n),o=e*r,s=Math.pow(1-o*o,2)/(2*a)*(t/(1-e*e)-r/(1-o*o)+.5/e*Math.log((1-o)/(1+o))),n+=s,Math.abs(s)<=1e-10)return n;return NaN}function Zf(){this.sphere||(this.k0=Gt(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function Kf(e){var t=e.x,i=e.y,n,s,r=R(t-this.long0);if(this.sphere)n=this.x0+this.a*r*Math.cos(this.lat_ts),s=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var a=ue(this.e,Math.sin(i));n=this.x0+this.a*this.k0*r,s=this.y0+this.a*a*.5/this.k0}return e.x=n,e.y=s,e}function Bf(e){e.x-=this.x0,e.y-=this.y0;var t,i;return this.sphere?(t=R(this.long0+e.x/this.a/Math.cos(this.lat_ts)),i=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(i=qf(this.e,2*e.y*this.k0/this.a),t=R(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=i,e}var Vf=["cea"];const Wf={init:Zf,forward:Kf,inverse:Bf,names:Vf};function Yf(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function Hf(e){var t=e.x,i=e.y,n=R(t-this.long0),s=Mi(i-this.lat0);return e.x=this.x0+this.a*n*this.rc,e.y=this.y0+this.a*s,e}function Qf(e){var t=e.x,i=e.y;return e.x=R(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=Mi(this.lat0+(i-this.y0)/this.a),e}var Jf=["Equirectangular","Equidistant_Cylindrical","eqc"];const t0={init:Yf,forward:Hf,inverse:Qf,names:Jf};var Ta=20;function e0(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Qi(this.es),this.e1=Ji(this.es),this.e2=tn(this.es),this.e3=en(this.es),this.ml0=this.a*ot(this.e0,this.e1,this.e2,this.e3,this.lat0)}function i0(e){var t=e.x,i=e.y,n,s,r,a=R(t-this.long0);if(r=a*Math.sin(i),this.sphere)Math.abs(i)<=b?(n=this.a*a,s=-1*this.a*this.lat0):(n=this.a*Math.sin(r)/Math.tan(i),s=this.a*(Mi(i-this.lat0)+(1-Math.cos(r))/Math.tan(i)));else if(Math.abs(i)<=b)n=this.a*a,s=-1*this.ml0;else{var o=mi(this.a,this.e,Math.sin(i))/Math.tan(i);n=o*Math.sin(r),s=this.a*ot(this.e0,this.e1,this.e2,this.e3,i)-this.ml0+o*(1-Math.cos(r))}return e.x=n+this.x0,e.y=s+this.y0,e}function n0(e){var t,i,n,s,r,a,o,h,l;if(n=e.x-this.x0,s=e.y-this.y0,this.sphere)if(Math.abs(s+this.a*this.lat0)<=b)t=R(n/this.a+this.long0),i=0;else{a=this.lat0+s/this.a,o=n*n/this.a/this.a+a*a,h=a;var c;for(r=Ta;r;--r)if(c=Math.tan(h),l=-1*(a*(h*c+1)-h-.5*(h*h+o)*c)/((h-a)/c-1),h+=l,Math.abs(l)<=b){i=h;break}t=R(this.long0+Math.asin(n*Math.tan(h)/this.a)/Math.sin(i))}else if(Math.abs(s+this.ml0)<=b)i=0,t=R(this.long0+n/this.a);else{a=(this.ml0+s)/this.a,o=n*n/this.a/this.a+a*a,h=a;var u,d,f,g,_;for(r=Ta;r;--r)if(_=this.e*Math.sin(h),u=Math.sqrt(1-_*_)*Math.tan(h),d=this.a*ot(this.e0,this.e1,this.e2,this.e3,h),f=this.e0-2*this.e1*Math.cos(2*h)+4*this.e2*Math.cos(4*h)-6*this.e3*Math.cos(6*h),g=d/this.a,l=(a*(u*g+1)-g-.5*u*(g*g+o))/(this.es*Math.sin(2*h)*(g*g+o-2*a*g)/(4*u)+(a-g)*(u*f-2/Math.sin(2*h))-f),h-=l,Math.abs(l)<=b){i=h;break}u=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),t=R(this.long0+Math.asin(n*u/this.a)/Math.sin(i))}return e.x=t,e.y=i,e}var s0=["Polyconic","poly"];const r0={init:e0,forward:i0,inverse:n0,names:s0};function a0(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function o0(e){var t,i=e.x,n=e.y,s=n-this.lat0,r=i-this.long0,a=s/Ii*1e-5,o=r,h=1,l=0;for(t=1;t<=10;t++)h=h*a,l=l+this.A[t]*h;var c=l,u=o,d=1,f=0,g,_,m=0,v=0;for(t=1;t<=6;t++)g=d*c-f*u,_=f*c+d*u,d=g,f=_,m=m+this.B_re[t]*d-this.B_im[t]*f,v=v+this.B_im[t]*d+this.B_re[t]*f;return e.x=v*this.a+this.x0,e.y=m*this.a+this.y0,e}function h0(e){var t,i=e.x,n=e.y,s=i-this.x0,r=n-this.y0,a=r/this.a,o=s/this.a,h=1,l=0,c,u,d=0,f=0;for(t=1;t<=6;t++)c=h*a-l*o,u=l*a+h*o,h=c,l=u,d=d+this.C_re[t]*h-this.C_im[t]*l,f=f+this.C_im[t]*h+this.C_re[t]*l;for(var g=0;g.999999999999&&(i=.999999999999),t=Math.asin(i);var n=R(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),i=(2*t+Math.sin(2*t))/Math.PI,Math.abs(i)>1&&(i=1);var s=Math.asin(i);return e.x=n,e.y=s,e}var R0=["Mollweide","moll"];const T0={init:x0,forward:C0,inverse:b0,names:R0};function w0(){Math.abs(this.lat1+this.lat2)=0?(i=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(i=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var r=0;if(i!==0&&(r=Math.atan2(t*e.x,t*e.y)),this.sphere)return s=R(this.long0+r/this.ns),n=Mi(this.g-i/this.a),e.x=s,e.y=n,e;var a=this.g-i/this.a;return n=Gn(a,this.e0,this.e1,this.e2,this.e3),s=R(this.long0+r/this.ns),e.x=s,e.y=n,e}var A0=["Equidistant_Conic","eqdc"];const L0={init:w0,forward:I0,inverse:P0,names:A0};function S0(){this.R=this.a}function O0(e){var t=e.x,i=e.y,n=R(t-this.long0),s,r;Math.abs(i)<=b&&(s=this.x0+this.R*n,r=this.y0);var a=_e(2*Math.abs(i/Math.PI));(Math.abs(n)<=b||Math.abs(Math.abs(i)-x)<=b)&&(s=this.x0,i>=0?r=this.y0+Math.PI*this.R*Math.tan(.5*a):r=this.y0+Math.PI*this.R*-Math.tan(.5*a));var o=.5*Math.abs(Math.PI/n-n/Math.PI),h=o*o,l=Math.sin(a),c=Math.cos(a),u=c/(l+c-1),d=u*u,f=u*(2/l-1),g=f*f,_=Math.PI*this.R*(o*(u-g)+Math.sqrt(h*(u-g)*(u-g)-(g+h)*(d-g)))/(g+h);n<0&&(_=-_),s=this.x0+_;var m=h+u;return _=Math.PI*this.R*(f*m-o*Math.sqrt((g+h)*(h+1)-m*m))/(g+h),i>=0?r=this.y0+_:r=this.y0-_,e.x=s,e.y=r,e}function N0(e){var t,i,n,s,r,a,o,h,l,c,u,d,f;return e.x-=this.x0,e.y-=this.y0,u=Math.PI*this.R,n=e.x/u,s=e.y/u,r=n*n+s*s,a=-Math.abs(s)*(1+r),o=a-2*s*s+n*n,h=-2*a+1+2*s*s+r*r,f=s*s/h+(2*o*o*o/h/h/h-9*a*o/h/h)/27,l=(a-o*o/3/h)/h,c=2*Math.sqrt(-l/3),u=3*f/l/c,Math.abs(u)>1&&(u>=0?u=1:u=-1),d=Math.acos(u)/3,e.y>=0?i=(-c*Math.cos(d+Math.PI/3)-o/3/h)*Math.PI:i=-(-c*Math.cos(d+Math.PI/3)-o/3/h)*Math.PI,Math.abs(n)2*x*this.a?void 0:(i=t/this.a,n=Math.sin(i),s=Math.cos(i),r=this.long0,Math.abs(t)<=b?a=this.lat0:(a=_e(s*this.sin_p12+e.y*n*this.cos_p12/t),o=Math.abs(this.lat0)-x,Math.abs(o)<=b?this.lat0>=0?r=R(this.long0+Math.atan2(e.x,-e.y)):r=R(this.long0-Math.atan2(-e.x,e.y)):r=R(this.long0+Math.atan2(e.x*n,t*this.cos_p12*s-e.y*this.sin_p12*n))),e.x=r,e.y=a,e)):(h=Qi(this.es),l=Ji(this.es),c=tn(this.es),u=en(this.es),Math.abs(this.sin_p12-1)<=b?(d=this.a*ot(h,l,c,u,x),t=Math.sqrt(e.x*e.x+e.y*e.y),f=d-t,a=Gn(f/this.a,h,l,c,u),r=R(this.long0+Math.atan2(e.x,-1*e.y)),e.x=r,e.y=a,e):Math.abs(this.sin_p12+1)<=b?(d=this.a*ot(h,l,c,u,x),t=Math.sqrt(e.x*e.x+e.y*e.y),f=t-d,a=Gn(f/this.a,h,l,c,u),r=R(this.long0+Math.atan2(e.x,e.y)),e.x=r,e.y=a,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),m=Math.atan2(e.x,e.y),g=mi(this.a,this.e,this.sin_p12),v=Math.cos(m),y=this.e*this.cos_p12*v,p=-y*y/(1-this.es),M=3*this.es*(1-p)*this.sin_p12*this.cos_p12*v/(1-this.es),C=t/g,T=C-p*(1+p)*Math.pow(C,3)/6-M*(1+3*p)*Math.pow(C,4)/24,I=1-p*T*T/2-C*T*T*T/6,_=Math.asin(this.sin_p12*Math.cos(T)+this.cos_p12*Math.sin(T)*v),r=R(this.long0+Math.asin(Math.sin(m)*Math.sin(T)/Math.cos(_))),P=Math.sin(_),a=Math.atan2((P-this.es*I*this.sin_p12)*Math.tan(_),P*(1-this.es)),e.x=r,e.y=a,e))}var j0=["Azimuthal_Equidistant","aeqd"];const U0={init:G0,forward:z0,inverse:k0,names:j0};function $0(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function X0(e){var t,i,n,s,r,a,o,h,l=e.x,c=e.y;return n=R(l-this.long0),t=Math.sin(c),i=Math.cos(c),s=Math.cos(n),a=this.sin_p14*t+this.cos_p14*i*s,r=1,(a>0||Math.abs(a)<=b)&&(o=this.a*r*i*Math.sin(n),h=this.y0+this.a*r*(this.cos_p14*t-this.sin_p14*i*s)),e.x=o,e.y=h,e}function q0(e){var t,i,n,s,r,a,o;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),i=_e(t/this.a),n=Math.sin(i),s=Math.cos(i),a=this.long0,Math.abs(t)<=b?(o=this.lat0,e.x=a,e.y=o,e):(o=_e(s*this.sin_p14+e.y*n*this.cos_p14/t),r=Math.abs(this.lat0)-x,Math.abs(r)<=b?(this.lat0>=0?a=R(this.long0+Math.atan2(e.x,-e.y)):a=R(this.long0-Math.atan2(-e.x,e.y)),e.x=a,e.y=o,e):(a=R(this.long0+Math.atan2(e.x*n,t*this.cos_p14*s-e.y*this.sin_p14*n)),e.x=a,e.y=o,e))}var Z0=["ortho"];const K0={init:$0,forward:X0,inverse:q0,names:Z0};var $={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},D={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function B0(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=x-N/2?this.face=$.TOP:this.lat0<=-(x-N/2)?this.face=$.BOTTOM:Math.abs(this.long0)<=N?this.face=$.FRONT:Math.abs(this.long0)<=x+N?this.face=this.long0>0?$.RIGHT:$.LEFT:this.face=$.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function V0(e){var t={x:0,y:0},i,n,s,r,a,o,h={value:0};if(e.x-=this.long0,this.es!==0?i=Math.atan(this.one_minus_f_squared*Math.tan(e.y)):i=e.y,n=e.x,this.face===$.TOP)r=x-i,n>=N&&n<=x+N?(h.value=D.AREA_0,s=n-x):n>x+N||n<=-(x+N)?(h.value=D.AREA_1,s=n>0?n-K:n+K):n>-(x+N)&&n<=-N?(h.value=D.AREA_2,s=n+x):(h.value=D.AREA_3,s=n);else if(this.face===$.BOTTOM)r=x+i,n>=N&&n<=x+N?(h.value=D.AREA_0,s=-n+x):n=-N?(h.value=D.AREA_1,s=-n):n<-N&&n>=-(x+N)?(h.value=D.AREA_2,s=-n-x):(h.value=D.AREA_3,s=n>0?-n+K:-n-K);else{var l,c,u,d,f,g,_;this.face===$.RIGHT?n=oi(n,+x):this.face===$.BACK?n=oi(n,+K):this.face===$.LEFT&&(n=oi(n,-x)),d=Math.sin(i),f=Math.cos(i),g=Math.sin(n),_=Math.cos(n),l=f*_,c=f*g,u=d,this.face===$.FRONT?(r=Math.acos(l),s=_n(r,u,c,h)):this.face===$.RIGHT?(r=Math.acos(c),s=_n(r,u,-l,h)):this.face===$.BACK?(r=Math.acos(-l),s=_n(r,u,-c,h)):this.face===$.LEFT?(r=Math.acos(-c),s=_n(r,u,l,h)):(r=s=0,h.value=D.AREA_0)}return o=Math.atan(12/K*(s+Math.acos(Math.sin(s)*Math.cos(N))-x)),a=Math.sqrt((1-Math.cos(r))/(Math.cos(o)*Math.cos(o))/(1-Math.cos(Math.atan(1/Math.cos(s))))),h.value===D.AREA_1?o+=x:h.value===D.AREA_2?o+=K:h.value===D.AREA_3&&(o+=1.5*K),t.x=a*Math.cos(o),t.y=a*Math.sin(o),t.x=t.x*this.a+this.x0,t.y=t.y*this.a+this.y0,e.x=t.x,e.y=t.y,e}function W0(e){var t={lam:0,phi:0},i,n,s,r,a,o,h,l,c,u={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),i=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?u.value=D.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(u.value=D.AREA_1,i-=x):e.x<0&&-e.x>=Math.abs(e.y)?(u.value=D.AREA_2,i=i<0?i+K:i-K):(u.value=D.AREA_3,i+=x),c=K/12*Math.tan(i),a=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),o=Math.atan(a),s=Math.cos(i),r=Math.tan(n),h=1-s*s*r*r*(1-Math.cos(Math.atan(1/Math.cos(o)))),h<-1?h=-1:h>1&&(h=1),this.face===$.TOP)l=Math.acos(h),t.phi=x-l,u.value===D.AREA_0?t.lam=o+x:u.value===D.AREA_1?t.lam=o<0?o+K:o-K:u.value===D.AREA_2?t.lam=o-x:t.lam=o;else if(this.face===$.BOTTOM)l=Math.acos(h),t.phi=l-x,u.value===D.AREA_0?t.lam=-o+x:u.value===D.AREA_1?t.lam=-o:u.value===D.AREA_2?t.lam=-o-x:t.lam=o<0?-o-K:-o+K;else{var d,f,g;d=h,c=d*d,c>=1?g=0:g=Math.sqrt(1-c)*Math.sin(o),c+=g*g,c>=1?f=0:f=Math.sqrt(1-c),u.value===D.AREA_1?(c=f,f=-g,g=c):u.value===D.AREA_2?(f=-f,g=-g):u.value===D.AREA_3&&(c=f,f=g,g=-c),this.face===$.RIGHT?(c=d,d=-f,f=c):this.face===$.BACK?(d=-d,f=-f):this.face===$.LEFT&&(c=d,d=f,f=-c),t.phi=Math.acos(-g)-x,t.lam=Math.atan2(f,d),this.face===$.RIGHT?t.lam=oi(t.lam,-x):this.face===$.BACK?t.lam=oi(t.lam,-K):this.face===$.LEFT&&(t.lam=oi(t.lam,+x))}if(this.es!==0){var _,m,v;_=t.phi<0?1:0,m=Math.tan(t.phi),v=this.b/Math.sqrt(m*m+this.one_minus_f_squared),t.phi=Math.atan(Math.sqrt(this.a*this.a-v*v)/(this.one_minus_f*v)),_&&(t.phi=-t.phi)}return t.lam+=this.long0,e.x=t.lam,e.y=t.phi,e}function _n(e,t,i,n){var s;return eN&&s<=x+N?(n.value=D.AREA_1,s-=x):s>x+N||s<=-(x+N)?(n.value=D.AREA_2,s=s>=0?s-K:s+K):(n.value=D.AREA_3,s+=x)),s}function oi(e,t){var i=e+t;return i<-K?i+=Oi:i>+K&&(i-=Oi),i}var Y0=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const H0={init:B0,forward:V0,inverse:W0,names:Y0};var Gs=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Ti=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],$o=.8487,Xo=1.3523,qo=Nt/5,Q0=1/qo,Je=18,zn=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},J0=function(e,t){return e[1]+t*(2*e[2]+t*3*e[3])};function tg(e,t,i,n){for(var s=t;n;--n){var r=e(s);if(s-=r,Math.abs(r)=Je&&(n=Je-1),i=Nt*(i-Q0*n);var s={x:zn(Gs[n],i)*t,y:zn(Ti[n],i)};return e.y<0&&(s.y=-s.y),s.x=s.x*this.a*$o+this.x0,s.y=s.y*this.a*Xo+this.y0,s}function ng(e){var t={x:(e.x-this.x0)/(this.a*$o),y:Math.abs(e.y-this.y0)/(this.a*Xo)};if(t.y>=1)t.x/=Gs[Je][0],t.y=e.y<0?-x:x;else{var i=Math.floor(t.y*Je);for(i<0?i=0:i>=Je&&(i=Je-1);;)if(Ti[i][0]>t.y)--i;else if(Ti[i+1][0]<=t.y)++i;else break;var n=Ti[i],s=5*(t.y-n[0])/(Ti[i+1][0]-n[0]);s=tg(function(r){return(zn(n,r)-t.y)/J0(n,r)},s,b,100),t.x/=zn(Gs[i],s),t.y=(5*i+s)*it,e.y<0&&(t.y=-t.y)}return t.x=R(t.x+this.long0),t}var sg=["Robinson","robin"];const rg={init:eg,forward:ig,inverse:ng,names:sg};function ag(){this.name="geocent"}function og(e){var t=Po(e,this.es,this.a);return t}function hg(e){var t=Ao(e,this.es,this.a,this.b);return t}var lg=["Geocentric","geocentric","geocent","Geocent"];const cg={init:ag,forward:og,inverse:hg,names:lg};var rt={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},Ci={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function ug(){if(Object.keys(Ci).forEach((function(i){if(typeof this[i]>"u")this[i]=Ci[i].def;else{if(Ci[i].num&&isNaN(this[i]))throw new Error("Invalid parameter value, must be numeric "+i+" = "+this[i]);Ci[i].num&&(this[i]=parseFloat(this[i]))}Ci[i].degrees&&(this[i]=this[i]*it)}).bind(this)),Math.abs(Math.abs(this.lat0)-x)1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var e=this.tilt,t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(e),this.sw=Math.sin(e)}function dg(e){e.x-=this.long0;var t=Math.sin(e.y),i=Math.cos(e.y),n=Math.cos(e.x),s,r;switch(this.mode){case rt.OBLIQ:r=this.sinph0*t+this.cosph0*i*n;break;case rt.EQUIT:r=i*n;break;case rt.S_POLE:r=-t;break;case rt.N_POLE:r=t;break}switch(r=this.pn1/(this.p-r),s=r*i*Math.sin(e.x),this.mode){case rt.OBLIQ:r*=this.cosph0*t-this.sinph0*i*n;break;case rt.EQUIT:r*=t;break;case rt.N_POLE:r*=-(i*n);break;case rt.S_POLE:r*=i*n;break}var a,o;return a=r*this.cg+s*this.sg,o=1/(a*this.sw*this.h1+this.cw),s=(s*this.cg-r*this.sg)*this.cw*o,r=a*o,e.x=s*this.a,e.y=r*this.a,e}function fg(e){e.x/=this.a,e.y/=this.a;var t={x:e.x,y:e.y},i,n,s;s=1/(this.pn1-e.y*this.sw),i=this.pn1*e.x*s,n=this.pn1*e.y*this.cw*s,e.x=i*this.cg+n*this.sg,e.y=n*this.cg-i*this.sg;var r=wt(e.x,e.y);if(Math.abs(r)1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,this.es!==0){var e=1-this.es,t=1/e;this.radius_p=Math.sqrt(e),this.radius_p2=e,this.radius_p_inv2=t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function yg(e){var t=e.x,i=e.y,n,s,r,a;if(t=t-this.long0,this.shape==="ellipse"){i=Math.atan(this.radius_p2*Math.tan(i));var o=this.radius_p/wt(this.radius_p*Math.cos(i),Math.sin(i));if(s=o*Math.cos(t)*Math.cos(i),r=o*Math.sin(t)*Math.cos(i),a=o*Math.sin(i),(this.radius_g-s)*s-r*r-a*a*this.radius_p_inv2<0)return e.x=Number.NaN,e.y=Number.NaN,e;n=this.radius_g-s,this.flip_axis?(e.x=this.radius_g_1*Math.atan(r/wt(a,n)),e.y=this.radius_g_1*Math.atan(a/n)):(e.x=this.radius_g_1*Math.atan(r/n),e.y=this.radius_g_1*Math.atan(a/wt(r,n)))}else this.shape==="sphere"&&(n=Math.cos(i),s=Math.cos(t)*n,r=Math.sin(t)*n,a=Math.sin(i),n=this.radius_g-s,this.flip_axis?(e.x=this.radius_g_1*Math.atan(r/wt(a,n)),e.y=this.radius_g_1*Math.atan(a/n)):(e.x=this.radius_g_1*Math.atan(r/n),e.y=this.radius_g_1*Math.atan(a/wt(r,n))));return e.x=e.x*this.a,e.y=e.y*this.a,e}function vg(e){var t=-1,i=0,n=0,s,r,a,o;if(e.x=e.x/this.a,e.y=e.y/this.a,this.shape==="ellipse"){this.flip_axis?(n=Math.tan(e.y/this.radius_g_1),i=Math.tan(e.x/this.radius_g_1)*wt(1,n)):(i=Math.tan(e.x/this.radius_g_1),n=Math.tan(e.y/this.radius_g_1)*wt(1,i));var h=n/this.radius_p;if(s=i*i+h*h+t*t,r=2*this.radius_g*t,a=r*r-4*s*this.C,a<0)return e.x=Number.NaN,e.y=Number.NaN,e;o=(-r-Math.sqrt(a))/(2*s),t=this.radius_g+o*t,i*=o,n*=o,e.x=Math.atan2(i,t),e.y=Math.atan(n*Math.cos(e.x)/t),e.y=Math.atan(this.radius_p_inv2*Math.tan(e.y))}else if(this.shape==="sphere"){if(this.flip_axis?(n=Math.tan(e.y/this.radius_g_1),i=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+n*n)):(i=Math.tan(e.x/this.radius_g_1),n=Math.tan(e.y/this.radius_g_1)*Math.sqrt(1+i*i)),s=i*i+n*n+t*t,r=2*this.radius_g*t,a=r*r-4*s*this.C,a<0)return e.x=Number.NaN,e.y=Number.NaN,e;o=(-r-Math.sqrt(a))/(2*s),t=this.radius_g+o*t,i*=o,n*=o,e.x=Math.atan2(i,t),e.y=Math.atan(n*Math.cos(e.x)/t)}return e.x=e.x+this.long0,e}var Mg=["Geostationary Satellite View","Geostationary_Satellite","geos"];const pg={init:mg,forward:yg,inverse:vg,names:Mg};function Eg(e){e.Proj.projections.add(xn),e.Proj.projections.add(Cn),e.Proj.projections.add(Td),e.Proj.projections.add(Fd),e.Proj.projections.add($d),e.Proj.projections.add(Bd),e.Proj.projections.add(Jd),e.Proj.projections.add(rf),e.Proj.projections.add(cf),e.Proj.projections.add(_f),e.Proj.projections.add(Sf),e.Proj.projections.add(zf),e.Proj.projections.add(Xf),e.Proj.projections.add(Wf),e.Proj.projections.add(t0),e.Proj.projections.add(r0),e.Proj.projections.add(c0),e.Proj.projections.add(_0),e.Proj.projections.add(E0),e.Proj.projections.add(T0),e.Proj.projections.add(L0),e.Proj.projections.add(F0),e.Proj.projections.add(U0),e.Proj.projections.add(K0),e.Proj.projections.add(H0),e.Proj.projections.add(rg),e.Proj.projections.add(cg),e.Proj.projections.add(_g),e.Proj.projections.add(pg)}dt.defaultDatum="WGS84";dt.Proj=Dt;dt.WGS84=new dt.Proj("WGS84");dt.Point=_i;dt.toPoint=Lo;dt.defs=at;dt.nadgrid=Iu;dt.transform=Fn;dt.mgrs=qu;dt.version="__VERSION__";Eg(dt);function xg(e){for(const[t,i]of Object.entries(e))dt.defs(t,i);$c(dt)}const w={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};class Cg extends Hn{constructor(t,i,n){super(),n=n||{},this.tileCoord=t,this.state=i,this.interimTile=null,this.key="",this.transition_=n.transition===void 0?250:n.transition,this.transitionStarts_={},this.interpolate=!!n.interpolate}changed(){this.dispatchEvent(S.CHANGE)}release(){this.state===w.ERROR&&this.setState(w.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){if(!this.interimTile)return this;let t=this.interimTile;do{if(t.getState()==w.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this}refreshInterimChain(){if(!this.interimTile)return;let t=this.interimTile,i=this;do{if(t.getState()==w.LOADED){t.interimTile=null;break}else t.getState()==w.LOADING?i=t:t.getState()==w.IDLE?i.interimTile=t.interimTile:i=t;t=i.interimTile}while(t)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(this.state!==w.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){Z()}getAlpha(t,i){if(!this.transition_)return 1;let n=this.transitionStarts_[t];if(!n)n=i,this.transitionStarts_[t]=n;else if(n===-1)return 1;const s=i-n+1e3/60;return s>=this.transition_?1:Wa(s/this.transition_)}inTransition(t){return this.transition_?this.transitionStarts_[t]!==-1:!1}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}}const Zo=Cg;class bg extends Zo{constructor(t,i,n,s,r,a){super(t,i,a),this.crossOrigin_=s,this.src_=n,this.key=n,this.image_=new Image,s!==null&&(this.image_.crossOrigin=s),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(t){this.image_=t,this.state=w.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=w.ERROR,this.unlistenImage_(),this.image_=Rg(),this.changed()}handleImageLoad_(){const t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=w.LOADED:this.state=w.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==w.ERROR&&(this.state=w.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==w.IDLE&&(this.state=w.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Pc(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}function Rg(){const e=Pe(1,1);return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),e.canvas}const Ko=bg;class Tg extends Zo{constructor(t,i,n,s,r,a,o,h,l,c,u,d){super(r,w.IDLE,{interpolate:!!d}),this.renderEdges_=u!==void 0?u:!1,this.pixelRatio_=o,this.gutter_=h,this.canvas_=null,this.sourceTileGrid_=i,this.targetTileGrid_=s,this.wrappedTileCoord_=a||r,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const f=s.getTileCoordExtent(this.wrappedTileCoord_),g=this.targetTileGrid_.getExtent();let _=this.sourceTileGrid_.getExtent();const m=g?wi(f,g):f;if(Rs(m)===0){this.state=w.EMPTY;return}const v=t.getExtent();v&&(_?_=wi(_,v):_=v);const y=s.getResolution(this.wrappedTileCoord_[0]),p=Gc(t,n,m,y);if(!isFinite(p)||p<=0){this.state=w.EMPTY;return}const M=c!==void 0?c:Sc;if(this.triangulation_=new Dc(t,n,m,_,p*M,y),this.triangulation_.getTriangles().length===0){this.state=w.EMPTY;return}this.sourceZ_=i.getZForResolution(p);let C=this.triangulation_.calculateSourceExtent();if(_&&(t.canWrapX()?(C[1]=W(C[1],_[1],_[3]),C[3]=W(C[3],_[1],_[3])):C=wi(C,_)),!Rs(C))this.state=w.EMPTY;else{const T=i.getTileRangeForExtentAndZ(C,this.sourceZ_);for(let I=T.minX;I<=T.maxX;I++)for(let P=T.minY;P<=T.maxY;P++){const z=l(this.sourceZ_,I,P,o);z&&this.sourceTiles_.push(z)}this.sourceTiles_.length===0&&(this.state=w.EMPTY)}}getImage(){return this.canvas_}reproject_(){const t=[];if(this.sourceTiles_.forEach(i=>{i&&i.getState()==w.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(i.tileCoord),image:i.getImage()})}),this.sourceTiles_.length=0,t.length===0)this.state=w.ERROR;else{const i=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(i),s=typeof n=="number"?n:n[0],r=typeof n=="number"?n:n[1],a=this.targetTileGrid_.getResolution(i),o=this.sourceTileGrid_.getResolution(this.sourceZ_),h=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=zc(s,r,this.pixelRatio_,o,this.sourceTileGrid_.getExtent(),a,h,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=w.LOADED}this.changed()}load(){if(this.state==w.IDLE){this.state=w.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(i=>{const n=i.getState();if(n==w.IDLE||n==w.LOADING){t++;const s=G(i,S.CHANGE,function(r){const a=i.getState();(a==w.LOADED||a==w.ERROR||a==w.EMPTY)&&(B(s),t--,t===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(s)}}),t===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(i,n,s){i.getState()==w.IDLE&&i.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(B),this.sourcesListenerKeys_=null}release(){this.canvas_&&(ur(this.canvas_.getContext("2d")),ri.push(this.canvas_),this.canvas_=null),super.release()}}const zs=Tg;class wg{constructor(t){this.highWaterMark=t!==void 0?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let i=this.oldest_;for(;i;)t(i.value_,i.key_,this),i=i.newer}get(t,i){const n=this.entries_[t];return j(n!==void 0,"Tried to get a value for a key that does not exist in the cache"),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_}remove(t){const i=this.entries_[t];return j(i!==void 0,"Tried to get a value for a key that does not exist in the cache"),i===this.newest_?(this.newest_=i.older,this.newest_&&(this.newest_.newer=null)):i===this.oldest_?(this.oldest_=i.newer,this.oldest_&&(this.oldest_.older=null)):(i.newer.older=i.older,i.older.newer=i.newer),delete this.entries_[t],--this.count_,i.value_}getCount(){return this.count_}getKeys(){const t=new Array(this.count_);let i=0,n;for(n=this.newest_;n;n=n.older)t[i++]=n.key_;return t}getValues(){const t=new Array(this.count_);let i=0,n;for(n=this.newest_;n;n=n.older)t[i++]=n.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){if(this.containsKey(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,i){this.get(t),this.entries_[t].value_=i}set(t,i){j(!(t in this.entries_),"Tried to set a value for a key that is used already");const n={key_:t,newer:null,older:this.newest_,value_:i};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_}setSize(t){this.highWaterMark=t}}const Ig=wg;function wa(e,t,i,n){return n!==void 0?(n[0]=e,n[1]=t,n[2]=i,n):[e,t,i]}function nn(e,t,i){return e+"/"+t+"/"+i}function Bo(e){return nn(e[0],e[1],e[2])}function A1(e){const[t,i,n]=e.substring(e.lastIndexOf("/")+1,e.length).split(",").map(Number);return nn(t,i,n)}function Pg(e){return e.split("/").map(Number)}function Ag(e){return(e[1]<i||i>t.getMaxZoom())return!1;const r=t.getFullTileRange(i);return r?r.containsXY(n,s):!0}class Sg extends Ig{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()}pruneExceptNewestZ(){if(this.getCount()===0)return;const t=this.peekFirstKey(),n=Pg(t)[0];this.forEach(s=>{s.tileCoord[0]!==n&&(this.remove(Bo(s.tileCoord)),s.release())})}}const Vo=Sg,ys={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"};class Wo{constructor(t,i,n,s){this.minX=t,this.maxX=i,this.minY=n,this.maxY=s}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,i){return this.minX<=t&&t<=this.maxX&&this.minY<=i&&i<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.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 je(e,t,i,n,s){return s!==void 0?(s.minX=e,s.maxX=t,s.minY=i,s.maxY=n,s):new Wo(e,t,i,n)}const Yo=Wo;function Ia(e){return e[0]>0&&e[1]>0}function Og(e,t,i){return i===void 0&&(i=[0,0]),i[0]=e[0]*t+.5|0,i[1]=e[1]*t+.5|0,i}function le(e,t){return Array.isArray(e)?e:(t===void 0?t=[e,e]:(t[0]=e,t[1]=e),t)}const Ue=[0,0,0],Yt=5;class Ng{constructor(t){this.minZoom=t.minZoom!==void 0?t.minZoom:0,this.resolutions_=t.resolutions,j(Nh(this.resolutions_,function(s,r){return r-s},!0),"`resolutions` must be sorted in descending order");let i;if(!t.origins){for(let s=0,r=this.resolutions_.length-1;s=this.minZoom;){if(this.zoomFactor_===2?(a=Math.floor(a/2),o=Math.floor(o/2),r=je(a,a,o,o,n)):r=this.getTileRangeForExtentAndZ(h,l,n),i(l,r))return!0;--l}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,i,n){if(t[0]this.maxZoom||i0?n:Math.max(r/i[0],s/i[1]);const a=t+1,o=new Array(a);for(let h=0;hn.highWaterMark&&(n.highWaterMark=t)}useTile(t,i,n,s){}}class jg extends me{constructor(t,i){super(t),this.tile=i}}const Ug=kg;function $g(e,t){const i=/\{z\}/g,n=/\{x\}/g,s=/\{y\}/g,r=/\{-y\}/g;return function(a,o,h){if(a)return e.replace(i,a[0].toString()).replace(n,a[1].toString()).replace(s,a[2].toString()).replace(r,function(){const l=a[0],c=t.getFullTileRange(l);return j(c,"The {-y} placeholder requires a tile grid with extent"),(c.getHeight()-a[2]-1).toString()})}}function Xg(e,t){const i=e.length,n=new Array(i);for(let s=0;sthis.getTileInternal(m,v,y,p,a),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return _.key=u,l?(_.interimTile=l,_.refreshInterimChain(),o.replace(c,_)):o.set(c,_),_}getTileInternal(t,i,n,s,r){let a=null;const o=nn(t,i,n),h=this.getKey();if(!this.tileCache.containsKey(o))a=this.createTile_(t,i,n,s,r,h),this.tileCache.set(o,a);else if(a=this.tileCache.get(o),a.key!=h){const l=a;a=this.createTile_(t,i,n,s,r,h),l.getState()==w.IDLE?a.interimTile=l.interimTile:a.interimTile=l,a.refreshInterimChain(),this.tileCache.replace(o,a)}return a}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(const i in this.tileCacheForProjection)this.tileCacheForProjection[i].clear();this.changed()}}setTileGridForProjection(t,i){const n=J(t);if(n){const s=ut(n);s in this.tileGridForProjection||(this.tileGridForProjection[s]=i)}}clear(){super.clear();for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}}function Vg(e,t){e.getImage().src=t}const Wg=Bg;function th(e,t){return{containerProps:{className:Ph(e,t.className),"data-testid":t["data-testid"]}}}const Mr=H.createContext(void 0);Mr.displayName="MapContext";const Yg=Mr.Provider;function Hg(){const e=H.useContext(Mr);if(!e)throw new Error("Map context is not available. The component must be a child of the component.");return e}const Qg="top-right";function L1(e){const{position:t=Qg,stopEvents:i=!0,children:n,horizontalGap:s,verticalGap:r}=e,{containerProps:a}=th("map-anchor",e),{padding:o,mapAnchorsHost:h}=Hg(),l=H.useMemo(()=>{const c=i?e_:void 0;return{onPointerDown:c,onPointerUp:c,onContextMenu:c}},[i]);return Th.createPortal(Rn.jsx(Ah,{...a,pointerEvents:"auto",userSelect:"text",...l,...t_(t,o,s,r),children:n}),h)}function Jg(e){return{gap:e===void 0?20+10:0,space:10}}function t_(e,t,i,n){const s={position:"absolute",transitionProperty:"left, right, top, bottom",transitionDuration:"200ms",transitionTimingFunction:"ease-out"},a=i??0,h=n??0,l=Jg(n),c=u=>`${u}px`;switch(e){case"top-left":s.left=c(t.left+a),s.top=c(t.top+h);break;case"top-right":s.right=c(t.right+a),s.top=c(t.top+h);break;case"bottom-left":s.left=c(t.left+a),s.bottom=c(t.bottom+h+l.gap);break;case"bottom-right":s.right=c(t.right+a),s.bottom=c(t.bottom+h+l.gap);break}return s.maxH=`calc((100%) - ${s.top??"0px"} - ${s.bottom??l.gap+"px"} - ${h+"px"} - ${l.space+"px"})`,s.maxW=`calc((100%) - ${s.left??"0px"} - ${s.right??"0px"} - ${a+"px"})`,s.overflow="hidden",s}function e_(e){e.stopPropagation()}const i_="@open-pioneer/map",n_=wh.bind(void 0,i_);function s_(){var e=H.useRef(!1),t=H.useCallback(function(){return e.current},[]);return H.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}function r_(e,t,i){t===void 0&&(t=[]),i===void 0&&(i={loading:!1});var n=H.useRef(0),s=s_(),r=H.useState(i),a=r[0],o=r[1],h=H.useCallback(function(){for(var l=[],c=0;ct.getMapModel(e),[t,e]);return H.useMemo(()=>i.loading?{kind:"loading"}:i.error?{kind:"rejected",error:i.error}:{kind:"resolved",map:i.value},[i])}const pe=Se("map:MapContainer");function S1(e){const{mapId:t,viewPadding:i,viewPaddingChangeBehavior:n,children:s,role:r,"aria-label":a,"aria-labelledby":o}=e,{containerProps:h}=th("map-container",e),l=H.useRef(null),c=o_(t),u=c.map;H.useEffect(()=>{if(c.kind!=="loading"){if(c.kind==="rejected"){pe.error("Cannot display the map. Caused by ",c.error);return}if(!u){pe.error(`No configuration available for map with id '${t}'.`);return}if(l.current){const f=h_(u,l.current);return()=>f?.destroy()}}},[c,u,t]),H.useEffect(()=>{const f=u?.olMap.getView();if(i&&f){const g=f.getCenter(),{top:_=0,right:m=0,bottom:v=0,left:y=0}=i;f.padding=[_,m,v,y],f.animate({center:g,duration:300})}},[i,u]);const d={height:"100%"};return Rn.jsx("div",{...h,role:r,"aria-label":a,"aria-labelledby":o,ref:l,style:d,tabIndex:0,children:u&&Rn.jsx(l_,{map:u.olMap,viewPadding:i,viewPaddingChangeBehavior:n,children:s})})}function h_(e,t){const i=e.id,n=e.olMap;if(n.getTarget()){pe.error("Failed to display the map: the map already has a target. There may be more than one .");return}pe.isDebug()&&pe.debug(`Setting target of map '${i}':`,t),n.setTarget(t);let s=!1;return{destroy(){s||(pe.isDebug()&&pe.debug(`Removing target of map '${i}':`,t),n.setTarget(void 0),s=!0)}}}function l_(e){const{map:t,viewPadding:i,viewPaddingChangeBehavior:n="preserve-center",children:s}=e,r=c_(t),a=H.useMemo(()=>({left:i?.left??0,right:i?.right??0,top:i?.top??0,bottom:i?.bottom??0}),[i]);H.useEffect(()=>{const h=t?.getView();if(!t||!h)return;const l=h.getCenter(),c=d_(h.padding),u=u_(t,c);switch(h.padding=f_(a),n){case"preserve-center":h.animate({center:l,duration:300});break;case"preserve-extent":{u&&h.animate({center:l,resolution:h.getResolutionForExtent(u),duration:300});break}}},[a,t,n]);const o=H.useMemo(()=>({map:t,mapAnchorsHost:r,padding:a}),[t,a,r]);return Rn.jsx(Yg,{value:o,children:s})}function c_(e){const t=H.useRef();return t.current||(t.current=document.createElement("div"),t.current.classList.add("map-anchors")),H.useEffect(()=>{const i=t.current,n=e.getOverlayContainerStopEvent();return n.insertBefore(i,n.firstChild),()=>i.remove()},[e]),t.current}function u_(e,t){const i=e.getSize();if(!i||i.length<2)return;const[n,s]=i,r=e.getCoordinateFromPixel([t.left,t.bottom]),a=e.getCoordinateFromPixel([Math.max(0,n-t.right),Math.max(0,s-t.top)]);if(!r||!a)return;const[o,h]=r,[l,c]=a;return[o,h,l,c]}function d_(e){return{top:e?.[0]??0,right:e?.[1]??0,bottom:e?.[2]??0,left:e?.[3]??0}}function f_(e){const{top:t,right:i,bottom:n,left:s}=e;return[t,i,n,s]}const mn={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};class g_ extends is{constructor(t){t=t||{};const i=Object.assign({},t);delete i.preload,delete i.useInterimTilesOnError,super(i),this.on,this.once,this.un,this.setPreload(t.preload!==void 0?t.preload:0),this.setUseInterimTilesOnError(t.useInterimTilesOnError!==void 0?t.useInterimTilesOnError:!0)}getPreload(){return this.get(mn.PRELOAD)}setPreload(t){this.set(mn.PRELOAD,t)}getUseInterimTilesOnError(){return this.get(mn.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(t){this.set(mn.USE_INTERIM_TILES_ON_ERROR,t)}getData(t){return super.getData(t)}}const __=g_;class m_ extends Ic{constructor(t){super(t),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=Oe(),this.tmpTileRange_=new Yo(0,0,0,0)}isDrawableTile(t){const i=this.getLayer(),n=t.getState(),s=i.getUseInterimTilesOnError();return n==w.LOADED||n==w.EMPTY||n==w.ERROR&&!s}getTile(t,i,n,s){const r=s.pixelRatio,a=s.viewState.projection,o=this.getLayer();let l=o.getSource().getTile(t,i,n,r,a);return l.getState()==w.ERROR&&o.getUseInterimTilesOnError()&&o.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(l)||(l=l.getInterimTile()),l}getData(t){const i=this.frameState;if(!i)return null;const n=this.getLayer(),s=Et(i.pixelToCoordinateTransform,t.slice()),r=n.getExtent();if(r&&!Ws(r,s))return null;const a=i.pixelRatio,o=i.viewState.projection,h=i.viewState,l=n.getRenderSource(),c=l.getTileGridForProjection(h.projection),u=l.getTilePixelRatio(i.pixelRatio);for(let d=c.getZForResolution(h.resolution);d>=c.getMinZoom();--d){const f=c.getTileCoordForCoordAndZ(s,d),g=l.getTile(d,f[1],f[2],a,o);if(!(g instanceof Ko||g instanceof zs)||g instanceof zs&&g.getState()===w.EMPTY)return null;if(g.getState()!==w.LOADED)continue;const _=c.getOrigin(d),m=le(c.getTileSize(d)),v=c.getResolution(d),y=Math.floor(u*((s[0]-_[0])/v-f[1]*m[0])),p=Math.floor(u*((_[1]-s[1])/v-f[2]*m[1])),M=Math.round(u*l.getGutterForProjection(h.projection));return this.getImageData(g.getImage(),y+M,p+M)}return null}loadedTileCallback(t,i,n){return this.isDrawableTile(n)?super.loadedTileCallback(t,i,n):!1}prepareFrame(t){return!!this.getLayer().getSource()}renderFrame(t,i){const n=t.layerStatesArray[t.layerIndex],s=t.viewState,r=s.projection,a=s.resolution,o=s.center,h=s.rotation,l=t.pixelRatio,c=this.getLayer(),u=c.getSource(),d=u.getRevision(),f=u.getTileGridForProjection(r),g=f.getZForResolution(a,u.zDirection),_=f.getResolution(g);let m=t.extent;const v=t.viewState.resolution,y=u.getTilePixelRatio(l),p=Math.round(X(m)/v*l),M=Math.round(Ft(m)/v*l),C=n.extent&&We(n.extent);C&&(m=wi(m,We(n.extent)));const T=_*p/2/y,I=_*M/2/y,P=[o[0]-T,o[1]-I,o[0]+T,o[1]+I],z=f.getTileRangeForExtentAndZ(m,g),U={};U[g]={};const Q=this.createLoadedTileFinder(u,r,U),gt=this.tmpExtent,Pt=this.tmpTileRange_;this.newTiles_=!1;const pi=h?ws(s.center,v,h,t.size):void 0;for(let St=z.minX;St<=z.maxX;++St)for(let Y=z.minY;Y<=z.maxY;++Y){if(h&&!f.tileCoordIntersectsViewport([g,St,Y],pi))continue;const V=this.getTile(g,St,Y,t);if(this.isDrawableTile(V)){const lt=ut(this);if(V.getState()==w.LOADED){U[g][V.tileCoord.toString()]=V;let Fe=V.inTransition(lt);Fe&&n.opacity!==1&&(V.endTransition(lt),Fe=!1),!this.newTiles_&&(Fe||!this.renderedTiles.includes(V))&&(this.newTiles_=!0)}if(V.getAlpha(lt,t.time)===1)continue}const De=f.getTileCoordChildTileRange(V.tileCoord,Pt,gt);let Wt=!1;De&&(Wt=Q(g+1,De)),Wt||f.forEachTileCoordParentTileRange(V.tileCoord,Q,Pt,gt)}const At=_/a*l/y;Li(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/l,1/l,h,-p/2,-M/2);const zt=Fl(this.pixelTransform);this.useContainer(i,zt,this.getBackground(t));const k=this.context,_t=k.canvas;eo(this.inversePixelTransform,this.pixelTransform),Li(this.tempTransform,p/2,M/2,At,At,0,-p/2,-M/2),_t.width!=p||_t.height!=M?(_t.width=p,_t.height=M):this.containerReused||k.clearRect(0,0,p,M),C&&this.clipUnrotated(k,t,C),u.getInterpolate()||(k.imageSmoothingEnabled=!1),this.preRender(k,t),this.renderedTiles.length=0;let kt=Object.keys(U).map(Number);kt.sort(Wn);let Lt,ye,ht;n.opacity===1&&(!this.containerReused||u.getOpaque(t.viewState.projection))?kt=kt.reverse():(Lt=[],ye=[]);for(let St=kt.length-1;St>=0;--St){const Y=kt[St],V=u.getTilePixelSize(Y,l,r),Wt=f.getResolution(Y)/_,lt=V[0]*Wt*At,Fe=V[1]*Wt*At,os=f.getTileCoordForCoordAndZ(Ne(P),Y),Rr=f.getTileCoordExtent(os),an=Et(this.tempTransform,[y*(Rr[0]-P[0])/_,y*(P[3]-Rr[3])/_]),Eh=y*u.getGutterForProjection(r),Tr=U[Y];for(const xh in Tr){const Ge=Tr[xh],wr=Ge.tileCoord,Ir=os[1]-wr[1],Ch=Math.round(an[0]-(Ir-1)*lt),Pr=os[2]-wr[2],bh=Math.round(an[1]-(Pr-1)*Fe),jt=Math.round(an[0]-Ir*lt),Ut=Math.round(an[1]-Pr*Fe),Ei=Ch-jt,xi=bh-Ut,Ar=g===Y,Lr=Ar&&Ge.getAlpha(ut(this),t.time)!==1;let hs=!1;if(!Lr)if(Lt){ht=[jt,Ut,jt+Ei,Ut,jt+Ei,Ut+xi,jt,Ut+xi];for(let on=0,Rh=Lt.length;onMath.max(s,kn(e,r)),0);return i[t]=n,n}function K1(e,t){const i=[],n=[],s=[];let r=0,a=0,o=0,h=0;for(let l=0,c=t.length;l<=c;l+=2){const u=t[l];if(u===` -`||l===c){r=Math.max(r,a),s.push(a),a=0,o+=h;continue}const d=t[l+1]||e.font,f=kn(d,u);i.push(f),a+=f;const g=M_(d);n.push(g),h=Math.max(h,g)}return{width:r,height:o,widths:i,heights:n,lineWidths:s}}function B1(e,t,i,n,s,r,a,o,h,l,c){e.save(),i!==1&&(e.globalAlpha*=i),t&&e.transform.apply(e,t),n.contextInstructions?(e.translate(h,l),e.scale(c[0],c[1]),p_(n,e)):c[0]<0||c[1]<0?(e.translate(h,l),e.scale(c[0],c[1]),e.drawImage(n,s,r,a,o,0,0,a,o)):e.drawImage(n,s,r,a,o,h,l,a*c[0],o*c[1]),e.restore()}function p_(e,t){const i=e.contextInstructions;for(let n=0,s=i.length;nthis.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const i in this.cache_){const n=this.cache_[i];!(t++&3)&&!n.hasListener()&&(delete this.cache_[i],--this.cacheSize_)}}}get(t,i,n){const s=La(t,i,n);return s in this.cache_?this.cache_[s]:null}set(t,i,n,s){const r=La(t,i,n);this.cache_[r]=s,++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}}function La(e,t,i){const n=i?yc(i):"null";return t+":"+e+":"+n}const ih=new E_;class x_ extends Bg{constructor(t){t=t||{};const i=t.projection!==void 0?t.projection:"EPSG:3857",n=t.tileGrid!==void 0?t.tileGrid:Dg({extent:yr(i),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,opaque:t.opaque,projection:i,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=t.gutter!==void 0?t.gutter:0}getGutter(){return this.gutter_}}const C_=x_,b_='© OpenStreetMap contributors.';class R_ extends C_{constructor(t){t=t||{};let i;t.attributions!==void 0?i=t.attributions:i=[b_];const n=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",s=t.url!==void 0?t.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:i,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:n,interpolate:t.interpolate,maxZoom:t.maxZoom!==void 0?t.maxZoom:19,opaque:t.opaque!==void 0?t.opaque:!0,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:s,wrapX:t.wrapX,zDirection:t.zDirection})}}const T_=R_,xt={ADD:"add",REMOVE:"remove"},Sa={LENGTH:"length"};class vn extends me{constructor(t,i,n){super(t),this.element=i,this.index=n}}class w_ extends Bt{constructor(t,i){if(super(),this.on,this.once,this.un,i=i||{},this.unique_=!!i.unique,this.array_=t||[],this.unique_)for(let n=0,s=this.array_.length;n0;)this.pop()}extend(t){for(let i=0,n=t.length;ithis.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(i),this.array_.splice(t,0,i),this.updateLength_(),this.dispatchEvent(new vn(xt.ADD,i,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const i=this.getLength();return this.insertAt(i,t),this.getLength()}remove(t){const i=this.array_;for(let n=0,s=i.length;n=this.getLength())return;const i=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new vn(xt.REMOVE,i,t)),i}setAt(t,i){const n=this.getLength();if(t>=n){this.insertAt(t,i);return}if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(i,t);const s=this.array_[t];this.array_[t]=i,this.dispatchEvent(new vn(xt.REMOVE,s,t)),this.dispatchEvent(new vn(xt.ADD,i,t))}updateLength_(){this.set(Sa.LENGTH,this.array_.length)}assertUnique_(t,i){for(let n=0,s=this.array_.length;n=0;--C){const T=_[C],I=T.layer;if(I.hasRenderer()&&cr(T,c)&&o.call(h,I)){const P=I.getRenderer(),z=I.getSource();if(P&&z){const U=z.getWrapX()?f:t,Q=u.bind(null,T.managed);y[0]=U[0]+g[M][0],y[1]=U[1]+g[M][1],l=P.forEachFeatureAtCoordinate(y,i,n,Q,v)}if(l)return l}}if(v.length===0)return;const p=1/v.length;return v.forEach((M,C)=>M.distanceSq+=C*p),v.sort((M,C)=>M.distanceSq-C.distanceSq),v.some(M=>l=M.callback(M.feature,M.layer,M.geometry)),l}hasFeatureAtCoordinate(t,i,n,s,r,a){return this.forEachFeatureAtCoordinate(t,i,n,s,Tn,this,r,a)!==void 0}getMap(){return this.map_}renderFrame(t){Z()}flushDeclutterItems(t){}scheduleExpireIconCache(t){ih.canExpireCache()&&t.postRenderFunctions.push(P_)}}function P_(e,t){ih.expire()}const A_=I_;class L_ extends A_{constructor(t){super(t),this.fontChangeListenerKey_=G(Xt,Pi.PROPERTYCHANGE,t.redrawText.bind(t)),this.element_=document.createElement("div");const i=this.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",this.element_.className=rs+" ol-layers";const n=t.getViewport();n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0,this.declutterLayers_=[]}dispatchRenderEvent(t,i){const n=this.getMap();if(n.hasListener(t)){const s=new po(t,void 0,i);n.dispatchEvent(s)}}disposeInternal(){B(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(t){if(!t){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(t),this.dispatchRenderEvent(ce.PRECOMPOSE,t);const i=t.layerStatesArray.sort(function(a,o){return a.zIndex-o.zIndex}),n=t.viewState;this.children_.length=0;const s=this.declutterLayers_;s.length=0;let r=null;for(let a=0,o=i.length;a=0;--n)i[n].renderDeclutter(t);i.length=0}}const S_=L_;class te extends me{constructor(t,i){super(t),this.layer=i}}const vs={LAYERS:"layers"};class Er extends Da{constructor(t){t=t||{};const i=Object.assign({},t);delete i.layers;let n=t.layers;super(i),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(vs.LAYERS,this.handleLayersChanged_),n?Array.isArray(n)?n=new Kt(n.slice(),{unique:!0}):j(typeof n.getArray=="function","Expected `layers` to be an array or a `Collection`"):n=new Kt(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(B),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push(G(t,xt.ADD,this.handleLayersAdd_,this),G(t,xt.REMOVE,this.handleLayersRemove_,this));for(const n in this.listenerKeys_)this.listenerKeys_[n].forEach(B);Zi(this.listenerKeys_);const i=t.getArray();for(let n=0,s=i.length;n{this.clickTimeoutId_=void 0;const n=new Qt(q.SINGLECLICK,this.map_,t);this.dispatchEvent(n)},250)}updateActivePointers_(t){const i=t,n=i.pointerId;if(i.type==q.POINTERUP||i.type==q.POINTERCANCEL){delete this.trackedTouches_[n];for(const s in this.trackedTouches_)if(this.trackedTouches_[s].target!==i.target){delete this.trackedTouches_[s];break}}else(i.type==q.POINTERDOWN||i.type==q.POINTERMOVE)&&(this.trackedTouches_[n]=i);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const i=new Qt(q.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(i),this.emulateClicks_&&!i.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),this.activePointers_.length===0&&(this.dragListenerKeys_.forEach(B),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return t.button===0}handlePointerDown_(t){this.emulateClicks_=this.activePointers_.length===0,this.updateActivePointers_(t);const i=new Qt(q.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(i),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),this.dragListenerKeys_.length===0){const n=this.map_.getOwnerDocument();this.dragListenerKeys_.push(G(n,q.POINTERMOVE,this.handlePointerMove_,this),G(n,q.POINTERUP,this.handlePointerUp_,this),G(this.element_,q.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==n&&this.dragListenerKeys_.push(G(this.element_.getRootNode(),q.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const i=new Qt(q.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(i)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const i=!!(this.down_&&this.isMoving_(t));this.dispatchEvent(new Qt(q.POINTERMOVE,this.map_,t,i))}handleTouchMove_(t){const i=this.originalPointerMoveEvent_;(!i||i.defaultPrevented)&&(typeof t.cancelable!="boolean"||t.cancelable===!0)&&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_&&(B(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(S.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(B(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(B),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const F_=D_,Jt={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},st={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},jn=1/0;class G_{constructor(t,i){this.priorityFunction_=t,this.keyFunction_=i,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,Zi(this.queuedElements_)}dequeue(){const t=this.elements_,i=this.priorities_,n=t[0];t.length==1?(t.length=0,i.length=0):(t[0]=t.pop(),i[0]=i.pop(),this.siftUp_(0));const s=this.keyFunction_(n);return delete this.queuedElements_[s],n}enqueue(t){j(!(this.keyFunction_(t)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const i=this.priorityFunction_(t);return i!=jn?(this.elements_.push(t),this.priorities_.push(i),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1}getCount(){return this.elements_.length}getLeftChildIndex_(t){return t*2+1}getRightChildIndex_(t){return t*2+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 this.elements_.length===0}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const i=this.elements_,n=this.priorities_,s=i.length,r=i[t],a=n[t],o=t;for(;t>1;){const h=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),c=lt;){const o=this.getParentIndex_(i);if(s[o]>a)n[i]=n[o],s[i]=s[o],i=o;else break}n[i]=r,s[i]=a}reprioritize(){const t=this.priorityFunction_,i=this.elements_,n=this.priorities_;let s=0;const r=i.length;let a,o,h;for(o=0;o0;)r=this.dequeue()[0],a=r.getKey(),s=r.getState(),s===w.IDLE&&!(a in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[a]=!0,++this.tilesLoading_,++n,r.load())}}const j_=k_;function U_(e,t,i,n,s){if(!e||!(i in e.wantedTiles)||!e.wantedTiles[i][t.getKey()])return jn;const r=e.viewState.center,a=n[0]-r[0],o=n[1]-r[1];return 65536*Math.log(s)+Math.sqrt(a*a+o*o)/s}class $_ extends Bt{constructor(t){super();const i=t.element;i&&!t.target&&!i.style.pointerEvents&&(i.style.pointerEvents="auto"),this.element=i||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){Os(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&Os(this.element);for(let i=0,n=this.listenerKeys.length;is.getAttributions(t)))),n=!this.getMap().getAllLayers().some(s=>s.getSource()&&s.getSource().getAttributionsCollapsible()===!1);return this.overrideCollapsible_||this.setCollapsible(n),i}updateElement_(t){if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const i=this.collectSourceAttributions_(t),n=i.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!Yn(i,this.renderedAttributions_)){xc(this.ulElement_);for(let s=0,r=i.length;s0&&n%(2*Math.PI)!==0?i.animate({rotation:0,duration:this.duration_,easing:vi}):i.setRotation(0))}render(t){const i=t.frameState;if(!i)return;const n=i.viewState.rotation;if(n!=this.rotation_){const s="rotate("+n+"rad)";if(this.autoHide_){const r=this.element.classList.contains(yn);!r&&n===0?this.element.classList.add(yn):r&&n!==0&&this.element.classList.remove(yn)}this.label_.style.transform=s}this.rotation_=n}}const Z_=q_;class K_ extends xr{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const i=t.className!==void 0?t.className:"ol-zoom",n=t.delta!==void 0?t.delta:1,s=t.zoomInClassName!==void 0?t.zoomInClassName:i+"-in",r=t.zoomOutClassName!==void 0?t.zoomOutClassName:i+"-out",a=t.zoomInLabel!==void 0?t.zoomInLabel:"+",o=t.zoomOutLabel!==void 0?t.zoomOutLabel:"–",h=t.zoomInTipLabel!==void 0?t.zoomInTipLabel:"Zoom in",l=t.zoomOutTipLabel!==void 0?t.zoomOutTipLabel:"Zoom out",c=document.createElement("button");c.className=s,c.setAttribute("type","button"),c.title=h,c.appendChild(typeof a=="string"?document.createTextNode(a):a),c.addEventListener(S.CLICK,this.handleClick_.bind(this,n),!1);const u=document.createElement("button");u.className=r,u.setAttribute("type","button"),u.title=l,u.appendChild(typeof o=="string"?document.createTextNode(o):o),u.addEventListener(S.CLICK,this.handleClick_.bind(this,-n),!1);const d=i+" "+rs+" "+pr,f=this.element;f.className=d,f.appendChild(c),f.appendChild(u),this.duration_=t.duration!==void 0?t.duration:250}handleClick_(t,i){i.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const n=this.getMap().getView();if(!n)return;const s=n.getZoom();if(s!==void 0){const r=n.getConstrainedZoom(s+t);this.duration_>0?(n.getAnimating()&&n.cancelAnimations(),n.animate({zoom:r,duration:this.duration_,easing:vi})):n.setZoom(r)}}}const B_=K_;function V_(e){e=e||{};const t=new Kt;return(e.zoom!==void 0?e.zoom:!0)&&t.push(new B_(e.zoomOptions)),(e.rotate!==void 0?e.rotate:!0)&&t.push(new Z_(e.rotateOptions)),(e.attribution!==void 0?e.attribution:!0)&&t.push(new nh(e.attributionOptions)),t}const Oa={ACTIVE:"active"};class W_ extends Bt{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(Oa.ACTIVE)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(Oa.ACTIVE,t)}setMap(t){this.map_=t}}function Y_(e,t,i){const n=e.getCenterInternal();if(n){const s=[n[0]+t[0],n[1]+t[1]];e.animateInternal({duration:i!==void 0?i:250,easing:Il,center:e.getConstrainedCenter(s)})}}function Cr(e,t,i,n){const s=e.getZoom();if(s===void 0)return;const r=e.getConstrainedZoom(s+t),a=e.getResolutionForZoom(r);e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:a,anchor:i,duration:n!==void 0?n:250,easing:vi})}const sn=W_;class H_ extends sn{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=t.duration!==void 0?t.duration:250}handleEvent(t){let i=!1;if(t.type==q.DBLCLICK){const n=t.originalEvent,s=t.map,r=t.coordinate,a=n.shiftKey?-this.delta_:this.delta_,o=s.getView();Cr(o,a,r,this.duration_),n.preventDefault(),i=!0}return!i}}const Q_=H_;class J_ extends sn{constructor(t){t=t||{},super(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 i=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==q.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==q.POINTERUP){const n=this.handleUpEvent(t);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(t.type==q.POINTERDOWN){const n=this.handleDownEvent(t);this.handlingDownUpSequence=n,i=this.stopDown(n)}else t.type==q.POINTERMOVE&&this.handleMoveEvent(t);return!i}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}}function br(e){const t=e.length;let i=0,n=0;for(let s=0;s0&&this.condition_(t)){const n=t.map.getView();return this.lastCentroid=null,n.getAnimating()&&n.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}}const om=am;class hm extends rn{constructor(t){t=t||{},super({stopDown:qi}),this.condition_=t.condition?t.condition:tm,this.lastAngle_=void 0,this.duration_=t.duration!==void 0?t.duration:250}handleDragEvent(t){if(!Ms(t))return;const i=t.map,n=i.getView();if(n.getConstraints().rotation===nr)return;const s=i.getSize(),r=t.pixel,a=Math.atan2(s[1]/2-r[1],r[0]-s[0]/2);if(this.lastAngle_!==void 0){const o=a-this.lastAngle_;n.adjustRotationInternal(-o)}this.lastAngle_=a}handleUpEvent(t){return Ms(t)?(t.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(t){return Ms(t)&&rh(t)&&this.condition_(t)?(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0):!1}}const lm=hm;class cm extends qs{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_,i=this.endPixel_,n="px",s=this.element_.style;s.left=Math.min(t[0],i[0])+n,s.top=Math.min(t[1],i[1])+n,s.width=Math.abs(i[0]-t[0])+n,s.height=Math.abs(i[1]-t[1])+n}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const i=this.element_.style;i.left="inherit",i.top="inherit",i.width="inherit",i.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,i){this.startPixel_=t,this.endPixel_=i,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const t=this.startPixel_,i=this.endPixel_,s=[t,[t[0],i[1]],i,[i[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);s[4]=s[0].slice(),this.geometry_?this.geometry_.setCoordinates([s]):this.geometry_=new Wl([s])}getGeometry(){return this.geometry_}}const um=cm,Mn={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"};class ps extends me{constructor(t,i,n){super(t),this.coordinate=i,this.mapBrowserEvent=n}}class dm extends rn{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.box_=new um(t.className||"ol-dragbox"),this.minArea_=t.minArea!==void 0?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:rh,this.boxEndCondition_=t.boxEndCondition?t.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(t,i,n){const s=n[0]-i[0],r=n[1]-i[1];return s*s+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new ps(Mn.BOXDRAG,t.coordinate,t))}handleUpEvent(t){this.box_.setMap(null);const i=this.boxEndCondition_(t,this.startPixel_,t.pixel);return i&&this.onBoxEnd(t),this.dispatchEvent(new ps(i?Mn.BOXEND:Mn.BOXCANCEL,t.coordinate,t)),!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 ps(Mn.BOXSTART,t.coordinate,t)),!0):!1}onBoxEnd(t){}}const fm=dm;class gm extends fm{constructor(t){t=t||{};const i=t.condition?t.condition:sm;super({condition:i,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=t.duration!==void 0?t.duration:200,this.out_=t.out!==void 0?t.out:!1}onBoxEnd(t){const n=this.getMap().getView();let s=this.getGeometry();if(this.out_){const r=n.rotatedExtentForGeometry(s),a=n.getResolutionForExtentInternal(r),o=n.getResolution()/a;s=s.clone(),s.scale(o*o)}n.fitInternal(s,{duration:this.duration_,easing:vi})}}const hh=gm,Me={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};class _m extends sn{constructor(t){super(),t=t||{},this.defaultCondition_=function(i){return ah(i)&&oh(i)},this.condition_=t.condition!==void 0?t.condition:this.defaultCondition_,this.duration_=t.duration!==void 0?t.duration:100,this.pixelDelta_=t.pixelDelta!==void 0?t.pixelDelta:128}handleEvent(t){let i=!1;if(t.type==S.KEYDOWN){const n=t.originalEvent,s=n.key;if(this.condition_(t)&&(s==Me.DOWN||s==Me.LEFT||s==Me.RIGHT||s==Me.UP)){const a=t.map.getView(),o=a.getResolution()*this.pixelDelta_;let h=0,l=0;s==Me.DOWN?l=-o:s==Me.LEFT?h=-o:s==Me.RIGHT?h=o:l=o;const c=[h,l];Ys(c,a.getRotation()),Y_(a,c,this.duration_),n.preventDefault(),i=!0}}return!i}}const mm=_m;class ym extends sn{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(i){return!nm(i)&&oh(i)},this.delta_=t.delta?t.delta:1,this.duration_=t.duration!==void 0?t.duration:100}handleEvent(t){let i=!1;if(t.type==S.KEYDOWN||t.type==S.KEYPRESS){const n=t.originalEvent,s=n.key;if(this.condition_(t)&&(s==="+"||s==="-")){const r=t.map,a=s==="+"?this.delta_:-this.delta_,o=r.getView();Cr(o,a,void 0,this.duration_),n.preventDefault(),i=!0}}return!i}}const vm=ym;class Mm{constructor(t,i,n){this.decay_=t,this.minVelocity_=i,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,i){this.points_.push(t,i,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,i=this.points_.length-3;if(this.points_[i+2]0&&this.points_[n+2]>t;)n-=3;const s=this.points_[i+2]-this.points_[n+2];if(s<1e3/60)return!1;const r=this.points_[i]-this.points_[n],a=this.points_[i+1]-this.points_[n+1];return this.angle_=Math.atan2(a,r),this.initialVelocity_=Math.sqrt(r*r+a*a)/s,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}const pm=Mm;class Em extends sn{constructor(t){t=t||{},super(t),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=t.maxDelta!==void 0?t.maxDelta:1,this.duration_=t.duration!==void 0?t.duration:250,this.timeout_=t.timeout!==void 0?t.timeout:80,this.useAnchor_=t.useAnchor!==void 0?t.useAnchor:!0,this.constrainResolution_=t.constrainResolution!==void 0?t.constrainResolution:!1;const i=t.condition?t.condition:im;this.condition_=t.onFocusOnly?$s(sh,i):i,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();if(!t)return;t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t)||t.type!==S.WHEEL)return!0;const n=t.map,s=t.originalEvent;s.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);let r;if(t.type==S.WHEEL&&(r=s.deltaY,Pl&&s.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=Ya),s.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),r===0)return!1;this.lastDelta_=r;const a=Date.now();this.startTime_===void 0&&(this.startTime_=a),(!this.mode_||a-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");const o=n.getView();if(this.mode_==="trackpad"&&!(o.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=a,!1;this.totalDelta_+=r;const h=Math.max(this.timeout_-(a-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),h),!1}handleWheelZoom_(t){const i=t.getView();i.getAnimating()&&i.cancelAnimations();let n=-W(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(i.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),Cr(i,n,this.lastAnchor_,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 xm=Em;class Cm extends rn{constructor(t){t=t||{};const i=t;i.stopDown||(i.stopDown=qi),super(i),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=t.threshold!==void 0?t.threshold:.3,this.duration_=t.duration!==void 0?t.duration:250}handleDragEvent(t){let i=0;const n=this.targetPointers[0],s=this.targetPointers[1],r=Math.atan2(s.clientY-n.clientY,s.clientX-n.clientX);if(this.lastAngle_!==void 0){const h=r-this.lastAngle_;this.rotationDelta_+=h,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),i=h}this.lastAngle_=r;const a=t.map,o=a.getView();o.getConstraints().rotation!==nr&&(this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(br(this.targetPointers))),this.rotating_&&(a.render(),o.adjustRotationInternal(i,this.anchor_)))}handleUpEvent(t){return this.targetPointers.length<2?(t.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(t){if(this.targetPointers.length>=2){const i=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||i.getView().beginInteraction(),!0}return!1}}const bm=Cm;class Rm extends rn{constructor(t){t=t||{};const i=t;i.stopDown||(i.stopDown=qi),super(i),this.anchor_=null,this.duration_=t.duration!==void 0?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let i=1;const n=this.targetPointers[0],s=this.targetPointers[1],r=n.clientX-s.clientX,a=n.clientY-s.clientY,o=Math.sqrt(r*r+a*a);this.lastDistance_!==void 0&&(i=this.lastDistance_/o),this.lastDistance_=o;const h=t.map,l=h.getView();i!=1&&(this.lastScaleDelta_=i),this.anchor_=h.getCoordinateFromPixelInternal(h.getEventPixel(br(this.targetPointers))),h.render(),l.adjustResolutionInternal(i,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const n=t.map.getView(),s=this.lastScaleDelta_>1?1:-1;return n.endInteraction(this.duration_,s),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const i=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||i.getView().beginInteraction(),!0}return!1}}const Tm=Rm;function lh(e){e=e||{};const t=new Kt,i=new pm(-.005,.05,100);return(e.altShiftDragRotate!==void 0?e.altShiftDragRotate:!0)&&t.push(new lm),(e.doubleClickZoom!==void 0?e.doubleClickZoom:!0)&&t.push(new Q_({delta:e.zoomDelta,duration:e.zoomDuration})),(e.dragPan!==void 0?e.dragPan:!0)&&t.push(new om({onFocusOnly:e.onFocusOnly,kinetic:i})),(e.pinchRotate!==void 0?e.pinchRotate:!0)&&t.push(new bm),(e.pinchZoom!==void 0?e.pinchZoom:!0)&&t.push(new Tm({duration:e.zoomDuration})),(e.keyboard!==void 0?e.keyboard:!0)&&(t.push(new mm),t.push(new vm({delta:e.zoomDelta,duration:e.zoomDuration}))),(e.mouseWheelZoom!==void 0?e.mouseWheelZoom:!0)&&t.push(new xm({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration})),(e.shiftDragZoom!==void 0?e.shiftDragZoom:!0)&&t.push(new hh({duration:e.zoomDuration})),t}function ch(e){if(e instanceof is){e.setMapInternal(null);return}e instanceof as&&e.getLayers().forEach(ch)}function uh(e,t){if(e instanceof is){e.setMapInternal(t);return}if(e instanceof as){const i=e.getLayers().getArray();for(let n=0,s=i.length;nthis.updateSize()),this.controls=i.controls||V_(),this.interactions=i.interactions||lh({onFocusOnly:!0}),this.overlays_=i.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new j_(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(st.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(st.VIEW,this.handleViewChanged_),this.addChangeListener(st.SIZE,this.handleSizeChanged_),this.addChangeListener(st.TARGET,this.handleTargetChanged_),this.setProperties(i.values);const n=this;t.view&&!(t.view instanceof Ct)&&t.view.then(function(s){n.setView(new Ct(s))}),this.controls.addEventListener(xt.ADD,s=>{s.element.setMap(this)}),this.controls.addEventListener(xt.REMOVE,s=>{s.element.setMap(null)}),this.interactions.addEventListener(xt.ADD,s=>{s.element.setMap(this)}),this.interactions.addEventListener(xt.REMOVE,s=>{s.element.setMap(null)}),this.overlays_.addEventListener(xt.ADD,s=>{this.addOverlayInternal_(s.element)}),this.overlays_.addEventListener(xt.REMOVE,s=>{const r=s.element.getId();r!==void 0&&delete this.overlayIdIndex_[r.toString()],s.element.setMap(null)}),this.controls.forEach(s=>{s.setMap(this)}),this.interactions.forEach(s=>{s.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){uh(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const i=t.getId();i!==void 0&&(this.overlayIdIndex_[i.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,i,n){if(!this.frameState_||!this.renderer_)return;const s=this.getCoordinateFromPixelInternal(t);n=n!==void 0?n:{};const r=n.hitTolerance!==void 0?n.hitTolerance:0,a=n.layerFilter!==void 0?n.layerFilter:Tn,o=n.checkWrapped!==!1;return this.renderer_.forEachFeatureAtCoordinate(s,this.frameState_,r,o,i,null,a,null)}getFeaturesAtPixel(t,i){const n=[];return this.forEachFeatureAtPixel(t,function(s){n.push(s)},i),n}getAllLayers(){const t=[];function i(n){n.forEach(function(s){s instanceof as?i(s.getLayers()):t.push(s)})}return i(this.getLayers()),t}hasFeatureAtPixel(t,i){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(t);i=i!==void 0?i:{};const s=i.layerFilter!==void 0?i.layerFilter:Tn,r=i.hitTolerance!==void 0?i.hitTolerance:0,a=i.checkWrapped!==!1;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,r,a,s,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const n=this.viewport_.getBoundingClientRect(),s=this.getSize(),r=n.width/s[0],a=n.height/s[1],o="changedTouches"in t?t.changedTouches[0]:t;return[(o.clientX-n.left)/r,(o.clientY-n.top)/a]}getTarget(){return this.get(st.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return Ls(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const i=this.frameState_;return i?Et(i.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const i=this.overlayIdIndex_[t.toString()];return i!==void 0?i:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(st.LAYERGROUP)}setLayers(t){const i=this.getLayerGroup();if(t instanceof Kt){i.setLayers(t);return}const n=i.getLayers();n.clear(),n.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let i=0,n=t.length;i=0;r--){const a=s[r];if(a.getMap()!==this||!a.getActive()||!this.getTargetElement())continue;if(!a.handleEvent(t)||t.propagationStopped)break}}}handlePostRender(){const t=this.frameState_,i=this.tileQueue_;if(!i.isEmpty()){let s=this.maxTilesLoading_,r=s;if(t){const a=t.viewHints;if(a[pt.ANIMATING]||a[pt.INTERACTING]){const o=Date.now()-t.time>8;s=o?0:8,r=o?0:2}}i.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(t){const i=this.getLayerGroup();i&&this.handleLayerRemove_(new te("removelayer",i)),this.set(st.LAYERGROUP,t)}setSize(t){this.set(st.SIZE,t)}setTarget(t){this.set(st.TARGET,t)}setView(t){if(!t||t instanceof Ct){this.set(st.VIEW,t);return}this.set(st.VIEW,new Ct);const i=this;t.then(function(n){i.setView(new Ct(n))})}updateSize(){const t=this.getTargetElement();let i;if(t){const s=getComputedStyle(t),r=t.offsetWidth-parseFloat(s.borderLeftWidth)-parseFloat(s.paddingLeft)-parseFloat(s.paddingRight)-parseFloat(s.borderRightWidth),a=t.offsetHeight-parseFloat(s.borderTopWidth)-parseFloat(s.paddingTop)-parseFloat(s.paddingBottom)-parseFloat(s.borderBottomWidth);!isNaN(r)&&!isNaN(a)&&(i=[r,a],!Ia(i)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&Xa("No map visible because the map container's width or height are 0."))}const n=this.getSize();i&&(!n||!Yn(i,n))&&(this.setSize(i),this.updateViewportSize_())}updateViewportSize_(){const t=this.getView();if(t){let i;const n=getComputedStyle(this.viewport_);n.width&&n.height&&(i=[parseInt(n.width,10),parseInt(n.height,10)]),t.setViewportSize(i)}}};function Im(e){let t=null;e.keyboardEventTarget!==void 0&&(t=typeof e.keyboardEventTarget=="string"?document.getElementById(e.keyboardEventTarget):e.keyboardEventTarget);const i={},n=e.layers&&typeof e.layers.getLayers=="function"?e.layers:new as({layers:e.layers});i[st.LAYERGROUP]=n,i[st.TARGET]=e.target,i[st.VIEW]=e.view instanceof Ct?e.view:new Ct;let s;e.controls!==void 0&&(Array.isArray(e.controls)?s=new Kt(e.controls.slice()):(j(typeof e.controls.getArray=="function","Expected `controls` to be an array or an `ol/Collection.js`"),s=e.controls));let r;e.interactions!==void 0&&(Array.isArray(e.interactions)?r=new Kt(e.interactions.slice()):(j(typeof e.interactions.getArray=="function","Expected `interactions` to be an array or an `ol/Collection.js`"),r=e.interactions));let a;return e.overlays!==void 0?Array.isArray(e.overlays)?a=new Kt(e.overlays.slice()):(j(typeof e.overlays.getArray=="function","Expected `overlays` to be an array or an `ol/Collection.js`"),a=e.overlays):a=new Kt,{controls:s,interactions:r,keyboardEventTarget:t,overlays:a,values:i}}const Pm=wm,Ht=Se("map:LayerCollection"),Am=0,Lm=1;var Re,ne,Mt,se,mt,Un,$n,dh,Xn,fh,ui,bn,qn,gh,Zn,_h;class Sm extends Xs{constructor(i){super();L(this,$n);L(this,Xn);L(this,ui);L(this,qn);L(this,Zn);L(this,Re,void 0);L(this,ne,new Set);L(this,Mt,new Map);L(this,se,new WeakMap);L(this,mt,void 0);L(this,Un,Lm);O(this,Re,i)}destroy(){for(const i of E(this,Mt).values())i.destroy();E(this,ne).clear(),E(this,Mt).clear(),O(this,mt,void 0)}addLayer(i){if(!Nm(i))throw new Error("Layer is not a valid layer instance. Use one of the classes provided by the map package instead.");i.__attach(E(this,Re)),bt(this,$n,dh).call(this,i)}getBaseLayers(){return this.getAllLayers().filter(i=>i.isBaseLayer)}getActiveBaseLayer(){return E(this,mt)}activateBaseLayer(i){let n;if(i!=null){if(n=E(this,Mt).get(i),!(n instanceof On))return Ht.warn(`Cannot activate base layer '${i}: layer has an invalid type.'`),!1;if(!n)return Ht.warn(`Cannot activate base layer '${i}': layer is unknown.`),!1;if(!n.isBaseLayer)return Ht.warn(`Cannot activate base layer '${i}': layer is not a base layer.`),!1}return n!==E(this,mt)&&(bt(this,ui,bn).call(this,n),this.emit("changed")),!0}getOperationalLayers(i){return this.getAllLayers(i).filter(n=>!n.isBaseLayer)}getAllLayers(i){const n=Array.from(E(this,ne).values());return i?.sortByDisplayOrder&&Om(n),n}getLayerById(i){return E(this,Mt).get(i)}removeLayerById(i){const n=E(this,Mt).get(i);if(!n){Ht.isDebug()&&Ht.debug(`Cannot remove layer '${i}': layer is unknown.`);return}bt(this,Xn,fh).call(this,n)}getLayerByRawInstance(i){return E(this,se)?.get(i)}}Re=new WeakMap,ne=new WeakMap,Mt=new WeakMap,se=new WeakMap,mt=new WeakMap,Un=new WeakMap,$n=new WeakSet,dh=function(i){bt(this,qn,gh).call(this,i);const n=i.olLayer;i.isBaseLayer?(n.setZIndex(Am),!E(this,mt)&&i.visible?bt(this,ui,bn).call(this,i):i.__setVisible(!1)):(n.setZIndex(Sr(this,Un)._++),i.__setVisible(i.visible)),E(this,ne).add(i),E(this,Re).olMap.addLayer(n),this.emit("changed")},Xn=new WeakSet,fh=function(i){if(!E(this,ne).has(i)){Ht.warn(`Cannot remove layer '${i.id}': only top level layers can be removed at this time.`);return}if(!(i instanceof On))throw new Error("Internal error: expected top level layer to be an instance of AbstractLayer.");E(this,Re).olMap.removeLayer(i.olLayer),E(this,ne).delete(i),bt(this,Zn,_h).call(this,i),E(this,mt)===i&&bt(this,ui,bn).call(this,this.getBaseLayers()[0]),i.destroy(),this.emit("changed")},ui=new WeakSet,bn=function(i){if(E(this,mt)!==i){if(Ht.isDebug()){const n=s=>s?`'${s.id}'`:void 0;Ht.debug(`Switching active base layer from ${n(E(this,mt))} to ${n(i)}`)}E(this,mt)?.__setVisible(!1),O(this,mt,i),E(this,mt)?.__setVisible(!0)}},qn=new WeakSet,gh=function(i){const n=[],s=r=>{const a=r.id,o="olLayer"in r?r.olLayer:void 0;if(E(this,Mt).has(a))throw new Error(`Layer id '${a}' is not unique. Either assign a unique id yourself or skip configuring 'id' for an automatically generated id.`);if(o&&E(this,se).has(o))throw new Error("OlLayer has already been used in this or another layer.");E(this,Mt).set(a,r),o&&E(this,se).set(o,r),n.push([a,o]);for(const h of r.sublayers?.__getRawSublayers()??[])s(h)};try{s(i)}catch(r){for(const[a,o]of n)E(this,Mt).delete(a),o&&E(this,se).delete(o);throw r}},Zn=new WeakSet,_h=function(i){const n=s=>{"olLayer"in s&&E(this,se).delete(s.olLayer),E(this,Mt).delete(s.id);for(const r of s.sublayers?.__getRawSublayers()??[])n(r)};n(i)};function Om(e){e.sort((t,i)=>{const n=t.olLayer.getZIndex()??1,s=i.olLayer.getZIndex()??1;return n!==s?n-s:t.id.localeCompare(i.id,"en")})}function Nm(e){return e instanceof On}const $e=Se("map:MapModel");var ki,qt,ji,di,fi,re,Te,Ui,ae,Zt,Kn,mh,Bn,yh;class Dm extends Xs{constructor(i){super();L(this,Kn);L(this,Bn);L(this,ki,void 0);L(this,qt,void 0);L(this,ji,new Sm(this));L(this,di,!1);L(this,fi,void 0);L(this,re,void 0);L(this,Te,void 0);L(this,Ui,new AbortController);L(this,ae,void 0);L(this,Zt,void 0);O(this,ki,i.id),O(this,qt,i.olMap),O(this,re,i.initialExtent),O(this,ae,"waiting"),bt(this,Kn,mh).call(this).then(()=>{O(this,ae,"ready"),E(this,Zt)?.resolve(),O(this,Zt,void 0)},n=>{Nr(n)||$e.error("Failed to initialize map",n),O(this,ae,"error"),E(this,Zt)?.reject(new Error("Failed to initialize map.")),O(this,Zt,void 0)}),O(this,Te,E(this,qt).on("change:target",()=>{bt(this,Bn,yh).call(this)}))}destroy(){if(!E(this,di)){O(this,di,!0);try{this.emit("destroy")}catch(i){$e.warn("Unexpected error from event listener during map model destruction:",i)}E(this,Te)&&ti(E(this,Te)),O(this,Te,void 0),E(this,Ui).abort(),E(this,Zt)?.reject(new Error("Map model was destroyed.")),E(this,ji).destroy(),E(this,qt).dispose()}}get id(){return E(this,ki)}get olMap(){return E(this,qt)}get layers(){return E(this,ji)}get container(){return E(this,fi)}get initialExtent(){return E(this,re)}whenDisplayed(){return E(this,di)?Promise.reject(new Error("Map model was destroyed.")):E(this,ae)==="error"?Promise.reject(new Error("Failed to initialize map.")):E(this,ae)==="ready"?Promise.resolve():(E(this,Zt)??O(this,Zt,Th())).promise}}ki=new WeakMap,qt=new WeakMap,ji=new WeakMap,di=new WeakMap,fi=new WeakMap,re=new WeakMap,Te=new WeakMap,Ui=new WeakMap,ae=new WeakMap,Zt=new WeakMap,Kn=new WeakSet,mh=async function(){try{await Fm(this.olMap,E(this,Ui).signal)}catch(i){throw Nr(i)?i:new Error("Failed to wait for the map to be displayed.",{cause:i})}try{const n=E(this,qt).getView();if(E(this,re)){const s=E(this,re),r=[s.xMin,s.yMin,s.xMax,s.yMax],a=de(r),o=n.getResolutionForExtent(r);$e.debug("Applying initial extent",s),$e.debug(" Computed center:",a),$e.debug(" Computed resolution:",o),n.setCenter(a),n.setResolution(o)}else{const s=n.calculateExtent(),[r=0,a=0,o=0,h=0]=s,l={xMin:r,yMin:a,xMax:o,yMax:h};$e.debug("Detected initial extent",l),O(this,re,l),this.emit("changed:initialExtent"),this.emit("changed")}}catch(i){throw new Error("Failed to apply the initial extent.",{cause:i})}},Bn=new WeakSet,yh=function(){const i=E(this,qt).getTargetElement()??void 0;E(this,fi)!==i&&(O(this,fi,i),this.emit("changed:container"),this.emit("changed"))};function Fm(e,t){return new Promise((n,s)=>{let r;function a(){const l=e.getSize()??[],[c=0,u=0]=l;l&&c>0&&u>0&&h()}function o(){h(Dr())}function h(l){r&&(ti(r),r=void 0),t.removeEventListener("abort",o),l?s(l):n(Gm(25))}if(t.aborted){h(Dr());return}t.addEventListener("abort",o),r=e.on("change:size",a)})}function Gm(e){return new Promise(t=>setTimeout(t,e))}pg({"EPSG:25832":"+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs","EPSG:25833":"+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs"});const Es=Se("map:createMapModel");async function zm(e,t){return await new km(e,t).createMapModel()}class km{mapId;mapConfig;constructor(t,i){this.mapId=t,this.mapConfig=i}async createMapModel(){const t=this.mapId,i=this.mapConfig,{view:n,...s}=i.advanced??{},r={...s};if(r.controls||(r.controls=[new nh({collapsible:!1})]),!r.interactions){const u=d=>{const f=d.originalEvent;return(f.metaKey||f.ctrlKey)&&f.shiftKey};r.interactions=lh({dragPan:!0,altShiftDragRotate:!1,pinchRotate:!1,mouseWheelZoom:!0}).extend([new hh({out:!0,condition:u})])}const a=await n??{};this.initializeViewOptions(a),r.view=a instanceof Ct?a:new Ct(a),!r.layers&&!i.layers&&(r.layers=[new y_({source:new T_})]);const o=i.initialView,h=o?.kind==="extent"?o.extent:void 0;Es.debug("Constructing open layers map with options",r);const l=new Pm(r);jm(l);const c=new Dm({id:t,olMap:l,initialExtent:h});try{if(i.layers)for(const u of i.layers)c.layers.addLayer(u);return c}catch(u){throw c.destroy(),u}}initializeViewOptions(t){const i=this.mapId,n=this.mapConfig;if(t instanceof Ct){const a=o=>{Es.warn(`The advanced configuration for map id '${i}' has provided a fully constructed view instance: ${o} cannot be applied. +`+g;Xt.get(_)===void 0&&(Xt.set(_,100,!0),o(c.style,c.weight,g)||(Xt.set(_,0,!0),r===void 0&&(r=setInterval(h,32))))}}}(),E_=function(){let e;return function(t){let i=js[t];if(i==null){if(sr){const n=eh(t),s=ih(t,"Žg");i=(isNaN(Number(n.lineHeight))?1.2:Number(n.lineHeight))*(s.actualBoundingBoxAscent+s.actualBoundingBoxDescent)}else e||(e=document.createElement("div"),e.innerHTML="M",e.style.minHeight="0",e.style.maxHeight="none",e.style.height="auto",e.style.padding="0",e.style.border="none",e.style.position="absolute",e.style.display="block",e.style.left="-99999px"),e.style.font=t,document.body.appendChild(e),i=e.offsetHeight,document.body.removeChild(e);js[t]=i}return i}}();function ih(e,t){return Ke||(Ke=Pe(1,1)),e!=ks&&(Ke.font=e,ks=Ke.font),Ke.measureText(t)}function kn(e,t){return ih(e,t).width}function B1(e,t,i){if(t in i)return i[t];const n=t.split(` +`).reduce((s,r)=>Math.max(s,kn(e,r)),0);return i[t]=n,n}function V1(e,t){const i=[],n=[],s=[];let r=0,a=0,o=0,h=0;for(let l=0,c=t.length;l<=c;l+=2){const u=t[l];if(u===` +`||l===c){r=Math.max(r,a),s.push(a),a=0,o+=h;continue}const d=t[l+1]||e.font,f=kn(d,u);i.push(f),a+=f;const g=E_(d);n.push(g),h=Math.max(h,g)}return{width:r,height:o,widths:i,heights:n,lineWidths:s}}function W1(e,t,i,n,s,r,a,o,h,l,c){e.save(),i!==1&&(e.globalAlpha*=i),t&&e.transform.apply(e,t),n.contextInstructions?(e.translate(h,l),e.scale(c[0],c[1]),x_(n,e)):c[0]<0||c[1]<0?(e.translate(h,l),e.scale(c[0],c[1]),e.drawImage(n,s,r,a,o,0,0,a,o)):e.drawImage(n,s,r,a,o,h,l,a*c[0],o*c[1]),e.restore()}function x_(e,t){const i=e.contextInstructions;for(let n=0,s=i.length;nthis.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const i in this.cache_){const n=this.cache_[i];!(t++&3)&&!n.hasListener()&&(delete this.cache_[i],--this.cacheSize_)}}}get(t,i,n){const s=La(t,i,n);return s in this.cache_?this.cache_[s]:null}set(t,i,n,s){const r=La(t,i,n);this.cache_[r]=s,++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}}function La(e,t,i){const n=i?Mc(i):"null";return t+":"+e+":"+n}const nh=new C_;class b_ extends Wg{constructor(t){t=t||{};const i=t.projection!==void 0?t.projection:"EPSG:3857",n=t.tileGrid!==void 0?t.tileGrid:Gg({extent:yr(i),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,opaque:t.opaque,projection:i,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=t.gutter!==void 0?t.gutter:0}getGutter(){return this.gutter_}}const R_=b_,T_='© OpenStreetMap contributors.';class w_ extends R_{constructor(t){t=t||{};let i;t.attributions!==void 0?i=t.attributions:i=[T_];const n=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",s=t.url!==void 0?t.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:i,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:n,interpolate:t.interpolate,maxZoom:t.maxZoom!==void 0?t.maxZoom:19,opaque:t.opaque!==void 0?t.opaque:!0,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:s,wrapX:t.wrapX,zDirection:t.zDirection})}}const I_=w_,xt={ADD:"add",REMOVE:"remove"},Sa={LENGTH:"length"};class vn extends me{constructor(t,i,n){super(t),this.element=i,this.index=n}}class P_ extends Bt{constructor(t,i){if(super(),this.on,this.once,this.un,i=i||{},this.unique_=!!i.unique,this.array_=t||[],this.unique_)for(let n=0,s=this.array_.length;n0;)this.pop()}extend(t){for(let i=0,n=t.length;ithis.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(i),this.array_.splice(t,0,i),this.updateLength_(),this.dispatchEvent(new vn(xt.ADD,i,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const i=this.getLength();return this.insertAt(i,t),this.getLength()}remove(t){const i=this.array_;for(let n=0,s=i.length;n=this.getLength())return;const i=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new vn(xt.REMOVE,i,t)),i}setAt(t,i){const n=this.getLength();if(t>=n){this.insertAt(t,i);return}if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(i,t);const s=this.array_[t];this.array_[t]=i,this.dispatchEvent(new vn(xt.REMOVE,s,t)),this.dispatchEvent(new vn(xt.ADD,i,t))}updateLength_(){this.set(Sa.LENGTH,this.array_.length)}assertUnique_(t,i){for(let n=0,s=this.array_.length;n=0;--C){const T=_[C],I=T.layer;if(I.hasRenderer()&&cr(T,c)&&o.call(h,I)){const P=I.getRenderer(),z=I.getSource();if(P&&z){const U=z.getWrapX()?f:t,Q=u.bind(null,T.managed);y[0]=U[0]+g[M][0],y[1]=U[1]+g[M][1],l=P.forEachFeatureAtCoordinate(y,i,n,Q,v)}if(l)return l}}if(v.length===0)return;const p=1/v.length;return v.forEach((M,C)=>M.distanceSq+=C*p),v.sort((M,C)=>M.distanceSq-C.distanceSq),v.some(M=>l=M.callback(M.feature,M.layer,M.geometry)),l}hasFeatureAtCoordinate(t,i,n,s,r,a){return this.forEachFeatureAtCoordinate(t,i,n,s,Tn,this,r,a)!==void 0}getMap(){return this.map_}renderFrame(t){Z()}flushDeclutterItems(t){}scheduleExpireIconCache(t){nh.canExpireCache()&&t.postRenderFunctions.push(L_)}}function L_(e,t){nh.expire()}const S_=A_;class O_ extends S_{constructor(t){super(t),this.fontChangeListenerKey_=G(Xt,Pi.PROPERTYCHANGE,t.redrawText.bind(t)),this.element_=document.createElement("div");const i=this.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",this.element_.className=rs+" ol-layers";const n=t.getViewport();n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0,this.declutterLayers_=[]}dispatchRenderEvent(t,i){const n=this.getMap();if(n.hasListener(t)){const s=new Eo(t,void 0,i);n.dispatchEvent(s)}}disposeInternal(){B(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(t){if(!t){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(t),this.dispatchRenderEvent(ce.PRECOMPOSE,t);const i=t.layerStatesArray.sort(function(a,o){return a.zIndex-o.zIndex}),n=t.viewState;this.children_.length=0;const s=this.declutterLayers_;s.length=0;let r=null;for(let a=0,o=i.length;a=0;--n)i[n].renderDeclutter(t);i.length=0}}const N_=O_;class te extends me{constructor(t,i){super(t),this.layer=i}}const vs={LAYERS:"layers"};class Er extends Fa{constructor(t){t=t||{};const i=Object.assign({},t);delete i.layers;let n=t.layers;super(i),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(vs.LAYERS,this.handleLayersChanged_),n?Array.isArray(n)?n=new Kt(n.slice(),{unique:!0}):j(typeof n.getArray=="function","Expected `layers` to be an array or a `Collection`"):n=new Kt(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(B),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push(G(t,xt.ADD,this.handleLayersAdd_,this),G(t,xt.REMOVE,this.handleLayersRemove_,this));for(const n in this.listenerKeys_)this.listenerKeys_[n].forEach(B);Zi(this.listenerKeys_);const i=t.getArray();for(let n=0,s=i.length;n{this.clickTimeoutId_=void 0;const n=new Qt(q.SINGLECLICK,this.map_,t);this.dispatchEvent(n)},250)}updateActivePointers_(t){const i=t,n=i.pointerId;if(i.type==q.POINTERUP||i.type==q.POINTERCANCEL){delete this.trackedTouches_[n];for(const s in this.trackedTouches_)if(this.trackedTouches_[s].target!==i.target){delete this.trackedTouches_[s];break}}else(i.type==q.POINTERDOWN||i.type==q.POINTERMOVE)&&(this.trackedTouches_[n]=i);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const i=new Qt(q.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(i),this.emulateClicks_&&!i.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),this.activePointers_.length===0&&(this.dragListenerKeys_.forEach(B),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return t.button===0}handlePointerDown_(t){this.emulateClicks_=this.activePointers_.length===0,this.updateActivePointers_(t);const i=new Qt(q.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(i),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),this.dragListenerKeys_.length===0){const n=this.map_.getOwnerDocument();this.dragListenerKeys_.push(G(n,q.POINTERMOVE,this.handlePointerMove_,this),G(n,q.POINTERUP,this.handlePointerUp_,this),G(this.element_,q.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==n&&this.dragListenerKeys_.push(G(this.element_.getRootNode(),q.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const i=new Qt(q.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(i)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const i=!!(this.down_&&this.isMoving_(t));this.dispatchEvent(new Qt(q.POINTERMOVE,this.map_,t,i))}handleTouchMove_(t){const i=this.originalPointerMoveEvent_;(!i||i.defaultPrevented)&&(typeof t.cancelable!="boolean"||t.cancelable===!0)&&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_&&(B(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(S.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(B(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(B),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const z_=G_,Jt={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},st={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},jn=1/0;class k_{constructor(t,i){this.priorityFunction_=t,this.keyFunction_=i,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,Zi(this.queuedElements_)}dequeue(){const t=this.elements_,i=this.priorities_,n=t[0];t.length==1?(t.length=0,i.length=0):(t[0]=t.pop(),i[0]=i.pop(),this.siftUp_(0));const s=this.keyFunction_(n);return delete this.queuedElements_[s],n}enqueue(t){j(!(this.keyFunction_(t)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const i=this.priorityFunction_(t);return i!=jn?(this.elements_.push(t),this.priorities_.push(i),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1}getCount(){return this.elements_.length}getLeftChildIndex_(t){return t*2+1}getRightChildIndex_(t){return t*2+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 this.elements_.length===0}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const i=this.elements_,n=this.priorities_,s=i.length,r=i[t],a=n[t],o=t;for(;t>1;){const h=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),c=lt;){const o=this.getParentIndex_(i);if(s[o]>a)n[i]=n[o],s[i]=s[o],i=o;else break}n[i]=r,s[i]=a}reprioritize(){const t=this.priorityFunction_,i=this.elements_,n=this.priorities_;let s=0;const r=i.length;let a,o,h;for(o=0;o0;)r=this.dequeue()[0],a=r.getKey(),s=r.getState(),s===w.IDLE&&!(a in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[a]=!0,++this.tilesLoading_,++n,r.load())}}const $_=U_;function X_(e,t,i,n,s){if(!e||!(i in e.wantedTiles)||!e.wantedTiles[i][t.getKey()])return jn;const r=e.viewState.center,a=n[0]-r[0],o=n[1]-r[1];return 65536*Math.log(s)+Math.sqrt(a*a+o*o)/s}class q_ extends Bt{constructor(t){super();const i=t.element;i&&!t.target&&!i.style.pointerEvents&&(i.style.pointerEvents="auto"),this.element=i||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){Os(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&Os(this.element);for(let i=0,n=this.listenerKeys.length;is.getAttributions(t)))),n=!this.getMap().getAllLayers().some(s=>s.getSource()&&s.getSource().getAttributionsCollapsible()===!1);return this.overrideCollapsible_||this.setCollapsible(n),i}updateElement_(t){if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const i=this.collectSourceAttributions_(t),n=i.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!Yn(i,this.renderedAttributions_)){bc(this.ulElement_);for(let s=0,r=i.length;s0&&n%(2*Math.PI)!==0?i.animate({rotation:0,duration:this.duration_,easing:vi}):i.setRotation(0))}render(t){const i=t.frameState;if(!i)return;const n=i.viewState.rotation;if(n!=this.rotation_){const s="rotate("+n+"rad)";if(this.autoHide_){const r=this.element.classList.contains(yn);!r&&n===0?this.element.classList.add(yn):r&&n!==0&&this.element.classList.remove(yn)}this.label_.style.transform=s}this.rotation_=n}}const B_=K_;class V_ extends xr{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const i=t.className!==void 0?t.className:"ol-zoom",n=t.delta!==void 0?t.delta:1,s=t.zoomInClassName!==void 0?t.zoomInClassName:i+"-in",r=t.zoomOutClassName!==void 0?t.zoomOutClassName:i+"-out",a=t.zoomInLabel!==void 0?t.zoomInLabel:"+",o=t.zoomOutLabel!==void 0?t.zoomOutLabel:"–",h=t.zoomInTipLabel!==void 0?t.zoomInTipLabel:"Zoom in",l=t.zoomOutTipLabel!==void 0?t.zoomOutTipLabel:"Zoom out",c=document.createElement("button");c.className=s,c.setAttribute("type","button"),c.title=h,c.appendChild(typeof a=="string"?document.createTextNode(a):a),c.addEventListener(S.CLICK,this.handleClick_.bind(this,n),!1);const u=document.createElement("button");u.className=r,u.setAttribute("type","button"),u.title=l,u.appendChild(typeof o=="string"?document.createTextNode(o):o),u.addEventListener(S.CLICK,this.handleClick_.bind(this,-n),!1);const d=i+" "+rs+" "+pr,f=this.element;f.className=d,f.appendChild(c),f.appendChild(u),this.duration_=t.duration!==void 0?t.duration:250}handleClick_(t,i){i.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const n=this.getMap().getView();if(!n)return;const s=n.getZoom();if(s!==void 0){const r=n.getConstrainedZoom(s+t);this.duration_>0?(n.getAnimating()&&n.cancelAnimations(),n.animate({zoom:r,duration:this.duration_,easing:vi})):n.setZoom(r)}}}const W_=V_;function Y_(e){e=e||{};const t=new Kt;return(e.zoom!==void 0?e.zoom:!0)&&t.push(new W_(e.zoomOptions)),(e.rotate!==void 0?e.rotate:!0)&&t.push(new B_(e.rotateOptions)),(e.attribution!==void 0?e.attribution:!0)&&t.push(new sh(e.attributionOptions)),t}const Oa={ACTIVE:"active"};class H_ extends Bt{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(Oa.ACTIVE)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(Oa.ACTIVE,t)}setMap(t){this.map_=t}}function Q_(e,t,i){const n=e.getCenterInternal();if(n){const s=[n[0]+t[0],n[1]+t[1]];e.animateInternal({duration:i!==void 0?i:250,easing:Al,center:e.getConstrainedCenter(s)})}}function Cr(e,t,i,n){const s=e.getZoom();if(s===void 0)return;const r=e.getConstrainedZoom(s+t),a=e.getResolutionForZoom(r);e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:a,anchor:i,duration:n!==void 0?n:250,easing:vi})}const sn=H_;class J_ extends sn{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=t.duration!==void 0?t.duration:250}handleEvent(t){let i=!1;if(t.type==q.DBLCLICK){const n=t.originalEvent,s=t.map,r=t.coordinate,a=n.shiftKey?-this.delta_:this.delta_,o=s.getView();Cr(o,a,r,this.duration_),n.preventDefault(),i=!0}return!i}}const tm=J_;class em extends sn{constructor(t){t=t||{},super(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 i=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==q.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==q.POINTERUP){const n=this.handleUpEvent(t);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(t.type==q.POINTERDOWN){const n=this.handleDownEvent(t);this.handlingDownUpSequence=n,i=this.stopDown(n)}else t.type==q.POINTERMOVE&&this.handleMoveEvent(t);return!i}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}}function br(e){const t=e.length;let i=0,n=0;for(let s=0;s0&&this.condition_(t)){const n=t.map.getView();return this.lastCentroid=null,n.getAnimating()&&n.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}}const lm=hm;class cm extends rn{constructor(t){t=t||{},super({stopDown:qi}),this.condition_=t.condition?t.condition:im,this.lastAngle_=void 0,this.duration_=t.duration!==void 0?t.duration:250}handleDragEvent(t){if(!Ms(t))return;const i=t.map,n=i.getView();if(n.getConstraints().rotation===nr)return;const s=i.getSize(),r=t.pixel,a=Math.atan2(s[1]/2-r[1],r[0]-s[0]/2);if(this.lastAngle_!==void 0){const o=a-this.lastAngle_;n.adjustRotationInternal(-o)}this.lastAngle_=a}handleUpEvent(t){return Ms(t)?(t.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(t){return Ms(t)&&ah(t)&&this.condition_(t)?(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0):!1}}const um=cm;class dm extends qs{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_,i=this.endPixel_,n="px",s=this.element_.style;s.left=Math.min(t[0],i[0])+n,s.top=Math.min(t[1],i[1])+n,s.width=Math.abs(i[0]-t[0])+n,s.height=Math.abs(i[1]-t[1])+n}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const i=this.element_.style;i.left="inherit",i.top="inherit",i.width="inherit",i.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,i){this.startPixel_=t,this.endPixel_=i,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const t=this.startPixel_,i=this.endPixel_,s=[t,[t[0],i[1]],i,[i[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);s[4]=s[0].slice(),this.geometry_?this.geometry_.setCoordinates([s]):this.geometry_=new Hl([s])}getGeometry(){return this.geometry_}}const fm=dm,Mn={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"};class ps extends me{constructor(t,i,n){super(t),this.coordinate=i,this.mapBrowserEvent=n}}class gm extends rn{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.box_=new fm(t.className||"ol-dragbox"),this.minArea_=t.minArea!==void 0?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:ah,this.boxEndCondition_=t.boxEndCondition?t.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(t,i,n){const s=n[0]-i[0],r=n[1]-i[1];return s*s+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new ps(Mn.BOXDRAG,t.coordinate,t))}handleUpEvent(t){this.box_.setMap(null);const i=this.boxEndCondition_(t,this.startPixel_,t.pixel);return i&&this.onBoxEnd(t),this.dispatchEvent(new ps(i?Mn.BOXEND:Mn.BOXCANCEL,t.coordinate,t)),!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 ps(Mn.BOXSTART,t.coordinate,t)),!0):!1}onBoxEnd(t){}}const _m=gm;class mm extends _m{constructor(t){t=t||{};const i=t.condition?t.condition:am;super({condition:i,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=t.duration!==void 0?t.duration:200,this.out_=t.out!==void 0?t.out:!1}onBoxEnd(t){const n=this.getMap().getView();let s=this.getGeometry();if(this.out_){const r=n.rotatedExtentForGeometry(s),a=n.getResolutionForExtentInternal(r),o=n.getResolution()/a;s=s.clone(),s.scale(o*o)}n.fitInternal(s,{duration:this.duration_,easing:vi})}}const lh=mm,Me={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};class ym extends sn{constructor(t){super(),t=t||{},this.defaultCondition_=function(i){return oh(i)&&hh(i)},this.condition_=t.condition!==void 0?t.condition:this.defaultCondition_,this.duration_=t.duration!==void 0?t.duration:100,this.pixelDelta_=t.pixelDelta!==void 0?t.pixelDelta:128}handleEvent(t){let i=!1;if(t.type==S.KEYDOWN){const n=t.originalEvent,s=n.key;if(this.condition_(t)&&(s==Me.DOWN||s==Me.LEFT||s==Me.RIGHT||s==Me.UP)){const a=t.map.getView(),o=a.getResolution()*this.pixelDelta_;let h=0,l=0;s==Me.DOWN?l=-o:s==Me.LEFT?h=-o:s==Me.RIGHT?h=o:l=o;const c=[h,l];Ys(c,a.getRotation()),Q_(a,c,this.duration_),n.preventDefault(),i=!0}}return!i}}const vm=ym;class Mm extends sn{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(i){return!rm(i)&&hh(i)},this.delta_=t.delta?t.delta:1,this.duration_=t.duration!==void 0?t.duration:100}handleEvent(t){let i=!1;if(t.type==S.KEYDOWN||t.type==S.KEYPRESS){const n=t.originalEvent,s=n.key;if(this.condition_(t)&&(s==="+"||s==="-")){const r=t.map,a=s==="+"?this.delta_:-this.delta_,o=r.getView();Cr(o,a,void 0,this.duration_),n.preventDefault(),i=!0}}return!i}}const pm=Mm;class Em{constructor(t,i,n){this.decay_=t,this.minVelocity_=i,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,i){this.points_.push(t,i,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,i=this.points_.length-3;if(this.points_[i+2]0&&this.points_[n+2]>t;)n-=3;const s=this.points_[i+2]-this.points_[n+2];if(s<1e3/60)return!1;const r=this.points_[i]-this.points_[n],a=this.points_[i+1]-this.points_[n+1];return this.angle_=Math.atan2(a,r),this.initialVelocity_=Math.sqrt(r*r+a*a)/s,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}const xm=Em;class Cm extends sn{constructor(t){t=t||{},super(t),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=t.maxDelta!==void 0?t.maxDelta:1,this.duration_=t.duration!==void 0?t.duration:250,this.timeout_=t.timeout!==void 0?t.timeout:80,this.useAnchor_=t.useAnchor!==void 0?t.useAnchor:!0,this.constrainResolution_=t.constrainResolution!==void 0?t.constrainResolution:!1;const i=t.condition?t.condition:sm;this.condition_=t.onFocusOnly?$s(rh,i):i,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();if(!t)return;t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t)||t.type!==S.WHEEL)return!0;const n=t.map,s=t.originalEvent;s.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);let r;if(t.type==S.WHEEL&&(r=s.deltaY,Ll&&s.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=Ha),s.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),r===0)return!1;this.lastDelta_=r;const a=Date.now();this.startTime_===void 0&&(this.startTime_=a),(!this.mode_||a-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");const o=n.getView();if(this.mode_==="trackpad"&&!(o.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=a,!1;this.totalDelta_+=r;const h=Math.max(this.timeout_-(a-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),h),!1}handleWheelZoom_(t){const i=t.getView();i.getAnimating()&&i.cancelAnimations();let n=-W(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(i.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),Cr(i,n,this.lastAnchor_,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 bm=Cm;class Rm extends rn{constructor(t){t=t||{};const i=t;i.stopDown||(i.stopDown=qi),super(i),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=t.threshold!==void 0?t.threshold:.3,this.duration_=t.duration!==void 0?t.duration:250}handleDragEvent(t){let i=0;const n=this.targetPointers[0],s=this.targetPointers[1],r=Math.atan2(s.clientY-n.clientY,s.clientX-n.clientX);if(this.lastAngle_!==void 0){const h=r-this.lastAngle_;this.rotationDelta_+=h,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),i=h}this.lastAngle_=r;const a=t.map,o=a.getView();o.getConstraints().rotation!==nr&&(this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(br(this.targetPointers))),this.rotating_&&(a.render(),o.adjustRotationInternal(i,this.anchor_)))}handleUpEvent(t){return this.targetPointers.length<2?(t.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(t){if(this.targetPointers.length>=2){const i=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||i.getView().beginInteraction(),!0}return!1}}const Tm=Rm;class wm extends rn{constructor(t){t=t||{};const i=t;i.stopDown||(i.stopDown=qi),super(i),this.anchor_=null,this.duration_=t.duration!==void 0?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let i=1;const n=this.targetPointers[0],s=this.targetPointers[1],r=n.clientX-s.clientX,a=n.clientY-s.clientY,o=Math.sqrt(r*r+a*a);this.lastDistance_!==void 0&&(i=this.lastDistance_/o),this.lastDistance_=o;const h=t.map,l=h.getView();i!=1&&(this.lastScaleDelta_=i),this.anchor_=h.getCoordinateFromPixelInternal(h.getEventPixel(br(this.targetPointers))),h.render(),l.adjustResolutionInternal(i,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const n=t.map.getView(),s=this.lastScaleDelta_>1?1:-1;return n.endInteraction(this.duration_,s),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const i=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||i.getView().beginInteraction(),!0}return!1}}const Im=wm;function ch(e){e=e||{};const t=new Kt,i=new xm(-.005,.05,100);return(e.altShiftDragRotate!==void 0?e.altShiftDragRotate:!0)&&t.push(new um),(e.doubleClickZoom!==void 0?e.doubleClickZoom:!0)&&t.push(new tm({delta:e.zoomDelta,duration:e.zoomDuration})),(e.dragPan!==void 0?e.dragPan:!0)&&t.push(new lm({onFocusOnly:e.onFocusOnly,kinetic:i})),(e.pinchRotate!==void 0?e.pinchRotate:!0)&&t.push(new Tm),(e.pinchZoom!==void 0?e.pinchZoom:!0)&&t.push(new Im({duration:e.zoomDuration})),(e.keyboard!==void 0?e.keyboard:!0)&&(t.push(new vm),t.push(new pm({delta:e.zoomDelta,duration:e.zoomDuration}))),(e.mouseWheelZoom!==void 0?e.mouseWheelZoom:!0)&&t.push(new bm({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration})),(e.shiftDragZoom!==void 0?e.shiftDragZoom:!0)&&t.push(new lh({duration:e.zoomDuration})),t}function uh(e){if(e instanceof is){e.setMapInternal(null);return}e instanceof as&&e.getLayers().forEach(uh)}function dh(e,t){if(e instanceof is){e.setMapInternal(t);return}if(e instanceof as){const i=e.getLayers().getArray();for(let n=0,s=i.length;nthis.updateSize()),this.controls=i.controls||Y_(),this.interactions=i.interactions||ch({onFocusOnly:!0}),this.overlays_=i.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new $_(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(st.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(st.VIEW,this.handleViewChanged_),this.addChangeListener(st.SIZE,this.handleSizeChanged_),this.addChangeListener(st.TARGET,this.handleTargetChanged_),this.setProperties(i.values);const n=this;t.view&&!(t.view instanceof Ct)&&t.view.then(function(s){n.setView(new Ct(s))}),this.controls.addEventListener(xt.ADD,s=>{s.element.setMap(this)}),this.controls.addEventListener(xt.REMOVE,s=>{s.element.setMap(null)}),this.interactions.addEventListener(xt.ADD,s=>{s.element.setMap(this)}),this.interactions.addEventListener(xt.REMOVE,s=>{s.element.setMap(null)}),this.overlays_.addEventListener(xt.ADD,s=>{this.addOverlayInternal_(s.element)}),this.overlays_.addEventListener(xt.REMOVE,s=>{const r=s.element.getId();r!==void 0&&delete this.overlayIdIndex_[r.toString()],s.element.setMap(null)}),this.controls.forEach(s=>{s.setMap(this)}),this.interactions.forEach(s=>{s.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){dh(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const i=t.getId();i!==void 0&&(this.overlayIdIndex_[i.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,i,n){if(!this.frameState_||!this.renderer_)return;const s=this.getCoordinateFromPixelInternal(t);n=n!==void 0?n:{};const r=n.hitTolerance!==void 0?n.hitTolerance:0,a=n.layerFilter!==void 0?n.layerFilter:Tn,o=n.checkWrapped!==!1;return this.renderer_.forEachFeatureAtCoordinate(s,this.frameState_,r,o,i,null,a,null)}getFeaturesAtPixel(t,i){const n=[];return this.forEachFeatureAtPixel(t,function(s){n.push(s)},i),n}getAllLayers(){const t=[];function i(n){n.forEach(function(s){s instanceof as?i(s.getLayers()):t.push(s)})}return i(this.getLayers()),t}hasFeatureAtPixel(t,i){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(t);i=i!==void 0?i:{};const s=i.layerFilter!==void 0?i.layerFilter:Tn,r=i.hitTolerance!==void 0?i.hitTolerance:0,a=i.checkWrapped!==!1;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,r,a,s,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const n=this.viewport_.getBoundingClientRect(),s=this.getSize(),r=n.width/s[0],a=n.height/s[1],o="changedTouches"in t?t.changedTouches[0]:t;return[(o.clientX-n.left)/r,(o.clientY-n.top)/a]}getTarget(){return this.get(st.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return Ls(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const i=this.frameState_;return i?Et(i.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const i=this.overlayIdIndex_[t.toString()];return i!==void 0?i:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(st.LAYERGROUP)}setLayers(t){const i=this.getLayerGroup();if(t instanceof Kt){i.setLayers(t);return}const n=i.getLayers();n.clear(),n.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let i=0,n=t.length;i=0;r--){const a=s[r];if(a.getMap()!==this||!a.getActive()||!this.getTargetElement())continue;if(!a.handleEvent(t)||t.propagationStopped)break}}}handlePostRender(){const t=this.frameState_,i=this.tileQueue_;if(!i.isEmpty()){let s=this.maxTilesLoading_,r=s;if(t){const a=t.viewHints;if(a[pt.ANIMATING]||a[pt.INTERACTING]){const o=Date.now()-t.time>8;s=o?0:8,r=o?0:2}}i.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(t){const i=this.getLayerGroup();i&&this.handleLayerRemove_(new te("removelayer",i)),this.set(st.LAYERGROUP,t)}setSize(t){this.set(st.SIZE,t)}setTarget(t){this.set(st.TARGET,t)}setView(t){if(!t||t instanceof Ct){this.set(st.VIEW,t);return}this.set(st.VIEW,new Ct);const i=this;t.then(function(n){i.setView(new Ct(n))})}updateSize(){const t=this.getTargetElement();let i;if(t){const s=getComputedStyle(t),r=t.offsetWidth-parseFloat(s.borderLeftWidth)-parseFloat(s.paddingLeft)-parseFloat(s.paddingRight)-parseFloat(s.borderRightWidth),a=t.offsetHeight-parseFloat(s.borderTopWidth)-parseFloat(s.paddingTop)-parseFloat(s.paddingBottom)-parseFloat(s.borderBottomWidth);!isNaN(r)&&!isNaN(a)&&(i=[r,a],!Ia(i)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&qa("No map visible because the map container's width or height are 0."))}const n=this.getSize();i&&(!n||!Yn(i,n))&&(this.setSize(i),this.updateViewportSize_())}updateViewportSize_(){const t=this.getView();if(t){let i;const n=getComputedStyle(this.viewport_);n.width&&n.height&&(i=[parseInt(n.width,10),parseInt(n.height,10)]),t.setViewportSize(i)}}};function Am(e){let t=null;e.keyboardEventTarget!==void 0&&(t=typeof e.keyboardEventTarget=="string"?document.getElementById(e.keyboardEventTarget):e.keyboardEventTarget);const i={},n=e.layers&&typeof e.layers.getLayers=="function"?e.layers:new as({layers:e.layers});i[st.LAYERGROUP]=n,i[st.TARGET]=e.target,i[st.VIEW]=e.view instanceof Ct?e.view:new Ct;let s;e.controls!==void 0&&(Array.isArray(e.controls)?s=new Kt(e.controls.slice()):(j(typeof e.controls.getArray=="function","Expected `controls` to be an array or an `ol/Collection.js`"),s=e.controls));let r;e.interactions!==void 0&&(Array.isArray(e.interactions)?r=new Kt(e.interactions.slice()):(j(typeof e.interactions.getArray=="function","Expected `interactions` to be an array or an `ol/Collection.js`"),r=e.interactions));let a;return e.overlays!==void 0?Array.isArray(e.overlays)?a=new Kt(e.overlays.slice()):(j(typeof e.overlays.getArray=="function","Expected `overlays` to be an array or an `ol/Collection.js`"),a=e.overlays):a=new Kt,{controls:s,interactions:r,keyboardEventTarget:t,overlays:a,values:i}}const fh=Pm,Ht=Se("map:LayerCollection"),Lm=0,Sm=1;var Re,ne,Mt,se,mt,Un,$n,gh,Xn,_h,ui,bn,qn,mh,Zn,yh;class Om extends Xs{constructor(i){super();L(this,$n);L(this,Xn);L(this,ui);L(this,qn);L(this,Zn);L(this,Re,void 0);L(this,ne,new Set);L(this,Mt,new Map);L(this,se,new WeakMap);L(this,mt,void 0);L(this,Un,Sm);O(this,Re,i)}destroy(){for(const i of E(this,Mt).values())i.destroy();E(this,ne).clear(),E(this,Mt).clear(),O(this,mt,void 0)}addLayer(i){if(!Dm(i))throw new Error("Layer is not a valid layer instance. Use one of the classes provided by the map package instead.");i.__attach(E(this,Re)),bt(this,$n,gh).call(this,i)}getBaseLayers(){return this.getAllLayers().filter(i=>i.isBaseLayer)}getActiveBaseLayer(){return E(this,mt)}activateBaseLayer(i){let n;if(i!=null){if(n=E(this,Mt).get(i),!(n instanceof On))return Ht.warn(`Cannot activate base layer '${i}: layer has an invalid type.'`),!1;if(!n)return Ht.warn(`Cannot activate base layer '${i}': layer is unknown.`),!1;if(!n.isBaseLayer)return Ht.warn(`Cannot activate base layer '${i}': layer is not a base layer.`),!1}return n!==E(this,mt)&&(bt(this,ui,bn).call(this,n),this.emit("changed")),!0}getOperationalLayers(i){return this.getAllLayers(i).filter(n=>!n.isBaseLayer)}getAllLayers(i){const n=Array.from(E(this,ne).values());return i?.sortByDisplayOrder&&Nm(n),n}getLayerById(i){return E(this,Mt).get(i)}removeLayerById(i){const n=E(this,Mt).get(i);if(!n){Ht.isDebug()&&Ht.debug(`Cannot remove layer '${i}': layer is unknown.`);return}bt(this,Xn,_h).call(this,n)}getLayerByRawInstance(i){return E(this,se)?.get(i)}}Re=new WeakMap,ne=new WeakMap,Mt=new WeakMap,se=new WeakMap,mt=new WeakMap,Un=new WeakMap,$n=new WeakSet,gh=function(i){bt(this,qn,mh).call(this,i);const n=i.olLayer;i.isBaseLayer?(n.setZIndex(Lm),!E(this,mt)&&i.visible?bt(this,ui,bn).call(this,i):i.__setVisible(!1)):(n.setZIndex(Sr(this,Un)._++),i.__setVisible(i.visible)),E(this,ne).add(i),E(this,Re).olMap.addLayer(n),this.emit("changed")},Xn=new WeakSet,_h=function(i){if(!E(this,ne).has(i)){Ht.warn(`Cannot remove layer '${i.id}': only top level layers can be removed at this time.`);return}if(!(i instanceof On))throw new Error("Internal error: expected top level layer to be an instance of AbstractLayer.");E(this,Re).olMap.removeLayer(i.olLayer),E(this,ne).delete(i),bt(this,Zn,yh).call(this,i),E(this,mt)===i&&bt(this,ui,bn).call(this,this.getBaseLayers()[0]),i.destroy(),this.emit("changed")},ui=new WeakSet,bn=function(i){if(E(this,mt)!==i){if(Ht.isDebug()){const n=s=>s?`'${s.id}'`:void 0;Ht.debug(`Switching active base layer from ${n(E(this,mt))} to ${n(i)}`)}E(this,mt)?.__setVisible(!1),O(this,mt,i),E(this,mt)?.__setVisible(!0)}},qn=new WeakSet,mh=function(i){const n=[],s=r=>{const a=r.id,o="olLayer"in r?r.olLayer:void 0;if(E(this,Mt).has(a))throw new Error(`Layer id '${a}' is not unique. Either assign a unique id yourself or skip configuring 'id' for an automatically generated id.`);if(o&&E(this,se).has(o))throw new Error("OlLayer has already been used in this or another layer.");E(this,Mt).set(a,r),o&&E(this,se).set(o,r),n.push([a,o]);for(const h of r.sublayers?.__getRawSublayers()??[])s(h)};try{s(i)}catch(r){for(const[a,o]of n)E(this,Mt).delete(a),o&&E(this,se).delete(o);throw r}},Zn=new WeakSet,yh=function(i){const n=s=>{"olLayer"in s&&E(this,se).delete(s.olLayer),E(this,Mt).delete(s.id);for(const r of s.sublayers?.__getRawSublayers()??[])n(r)};n(i)};function Nm(e){e.sort((t,i)=>{const n=t.olLayer.getZIndex()??1,s=i.olLayer.getZIndex()??1;return n!==s?n-s:t.id.localeCompare(i.id,"en")})}function Dm(e){return e instanceof On}const $e=Se("map:MapModel");var ki,qt,ji,di,fi,re,Te,Ui,ae,Zt,Kn,vh,Bn,Mh;class Fm extends Xs{constructor(i){super();L(this,Kn);L(this,Bn);L(this,ki,void 0);L(this,qt,void 0);L(this,ji,new Om(this));L(this,di,!1);L(this,fi,void 0);L(this,re,void 0);L(this,Te,void 0);L(this,Ui,new AbortController);L(this,ae,void 0);L(this,Zt,void 0);O(this,ki,i.id),O(this,qt,i.olMap),O(this,re,i.initialExtent),O(this,ae,"waiting"),bt(this,Kn,vh).call(this).then(()=>{O(this,ae,"ready"),E(this,Zt)?.resolve(),O(this,Zt,void 0)},n=>{Nr(n)||$e.error("Failed to initialize map",n),O(this,ae,"error"),E(this,Zt)?.reject(new Error("Failed to initialize map.")),O(this,Zt,void 0)}),O(this,Te,E(this,qt).on("change:target",()=>{bt(this,Bn,Mh).call(this)}))}destroy(){if(!E(this,di)){O(this,di,!0);try{this.emit("destroy")}catch(i){$e.warn("Unexpected error from event listener during map model destruction:",i)}E(this,Te)&&ti(E(this,Te)),O(this,Te,void 0),E(this,Ui).abort(),E(this,Zt)?.reject(new Error("Map model was destroyed.")),E(this,ji).destroy(),E(this,qt).dispose()}}get id(){return E(this,ki)}get olMap(){return E(this,qt)}get layers(){return E(this,ji)}get container(){return E(this,fi)}get initialExtent(){return E(this,re)}whenDisplayed(){return E(this,di)?Promise.reject(new Error("Map model was destroyed.")):E(this,ae)==="error"?Promise.reject(new Error("Failed to initialize map.")):E(this,ae)==="ready"?Promise.resolve():(E(this,Zt)??O(this,Zt,Ih())).promise}}ki=new WeakMap,qt=new WeakMap,ji=new WeakMap,di=new WeakMap,fi=new WeakMap,re=new WeakMap,Te=new WeakMap,Ui=new WeakMap,ae=new WeakMap,Zt=new WeakMap,Kn=new WeakSet,vh=async function(){try{await Gm(this.olMap,E(this,Ui).signal)}catch(i){throw Nr(i)?i:new Error("Failed to wait for the map to be displayed.",{cause:i})}try{const n=E(this,qt).getView();if(E(this,re)){const s=E(this,re),r=[s.xMin,s.yMin,s.xMax,s.yMax],a=de(r),o=n.getResolutionForExtent(r);$e.debug("Applying initial extent",s),$e.debug(" Computed center:",a),$e.debug(" Computed resolution:",o),n.setCenter(a),n.setResolution(o)}else{const s=n.calculateExtent(),[r=0,a=0,o=0,h=0]=s,l={xMin:r,yMin:a,xMax:o,yMax:h};$e.debug("Detected initial extent",l),O(this,re,l),this.emit("changed:initialExtent"),this.emit("changed")}}catch(i){throw new Error("Failed to apply the initial extent.",{cause:i})}},Bn=new WeakSet,Mh=function(){const i=E(this,qt).getTargetElement()??void 0;E(this,fi)!==i&&(O(this,fi,i),this.emit("changed:container"),this.emit("changed"))};function Gm(e,t){return new Promise((n,s)=>{let r;function a(){const l=e.getSize()??[],[c=0,u=0]=l;l&&c>0&&u>0&&h()}function o(){h(Dr())}function h(l){r&&(ti(r),r=void 0),t.removeEventListener("abort",o),l?s(l):n(zm(25))}if(t.aborted){h(Dr());return}t.addEventListener("abort",o),r=e.on("change:size",a)})}function zm(e){return new Promise(t=>setTimeout(t,e))}let Na=!1;function km(){Na||(fh.prototype.updateSize=function(){const n=this.getTargetElement()?[500,500]:void 0,s=this.getSize();n&&(!s||!Pn(n,s))&&(this.setSize(n),this.updateViewportSize_())},Na=!0)}xg({"EPSG:25832":"+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs","EPSG:25833":"+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs"});const Es=Se("map:createMapModel");async function jm(e,t){return await new Um(e,t).createMapModel()}class Um{mapId;mapConfig;constructor(t,i){this.mapId=t,this.mapConfig=i}async createMapModel(){const t=this.mapId,i=this.mapConfig,{view:n,...s}=i.advanced??{},r={...s};if(r.controls||(r.controls=[new sh({collapsible:!1})]),!r.interactions){const u=d=>{const f=d.originalEvent;return(f.metaKey||f.ctrlKey)&&f.shiftKey};r.interactions=ch({dragPan:!0,altShiftDragRotate:!1,pinchRotate:!1,mouseWheelZoom:!0}).extend([new lh({out:!0,condition:u})])}const a=await n??{};this.initializeViewOptions(a),r.view=a instanceof Ct?a:new Ct(a),!r.layers&&!i.layers&&(r.layers=[new M_({source:new I_})]);const o=i.initialView,h=o?.kind==="extent"?o.extent:void 0;Es.debug("Constructing open layers map with options",r),{}.VITEST&&km();const l=new fh(r),c=new Fm({id:t,olMap:l,initialExtent:h});try{if(i.layers)for(const u of i.layers)c.layers.addLayer(u);return c}catch(u){throw c.destroy(),u}}initializeViewOptions(t){const i=this.mapId,n=this.mapConfig;if(t instanceof Ct){const a=o=>{Es.warn(`The advanced configuration for map id '${i}' has provided a fully constructed view instance: ${o} cannot be applied. Use ViewOptions instead of a View instance.`)};n.projection!=null&&a("projection"),n.initialView!=null&&a("initialView");return}const s=t.projection=this.initializeProjection(n.projection),r=n.initialView;if(r)switch(r.kind){case"position":t.zoom=r.zoom,t.center=[r.center.x,r.center.y];break;case"extent":{const a=r.extent;t.zoom=0,t.center=[a.xMin+(a.xMax-a.xMin)/2,a.yMin+(a.yMax-a.yMin)/2];break}}else this.setViewDefaults(t,s)}setViewDefaults(t,i){if(t.center==null){const n=i.getExtent();n?t.center=de(n):Es.warn(`Cannot set default center coordinate because the current projection has no associated extent. -Try to configure 'initialView' explicity.`)}(t.zoom==null||t.resolution==null)&&(t.zoom=0)}initializeProjection(t){if(t==null)return J("EPSG:3857");const i=J(t);if(!i)throw new Error(`Failed to retrieve projection for code '${t}'.`);return i}}function jm(e){({}).VITEST&&(e.updateSize=()=>{const s=e.getTargetElement()?[500,500]:void 0,r=e.getSize();s&&(!r||!Pn(s,r))&&(e.setSize(s),e.updateViewportSize_())})}const xs=Se("map:MapRegistry");var $i,oe,he,Xi,we,Vn,vh;class Y1{constructor(t){L(this,Vn);L(this,$i,new Map);L(this,oe,new Map);L(this,he,new Map);L(this,Xi,new WeakMap);L(this,we,!1);const i=t.references.providers;for(const n of i)E(this,$i).set(n.mapId,n)}destroy(){E(this,we)||(xs.info("Destroy map registry and all maps"),O(this,we,!0),E(this,oe).forEach(t=>{t.kind==="model"&&t.model.destroy()}),E(this,oe).clear(),E(this,he).clear())}async getMapModel(t){if(E(this,we))throw new Error("MapRegistry has already been destroyed.");const i=E(this,he).get(t);if(i)return Cs(await i);const n=E(this,oe).get(t);if(n)return Cs(n);const s=E(this,$i).get(t);if(!s){xs.debug(`Failed to find a config provider for map id '${t}'.`);return}const r=bt(this,Vn,vh).call(this,t,s).catch(a=>{const h={kind:"error",error:new Error(`Failed to construct map '${t}'`,{cause:a})};return E(this,he).delete(t),E(this,oe).set(t,h),h});return E(this,he).set(t,r),Cs(await r)}async expectMapModel(t){const i=await this.getMapModel(t);if(!i)throw new Error(`No configuration available for map with id '${t}'.`);return i}getMapModelByRawInstance(t){return E(this,Xi).get(t)}}$i=new WeakMap,oe=new WeakMap,he=new WeakMap,Xi=new WeakMap,we=new WeakMap,Vn=new WeakSet,vh=async function(t,i){xs.info(`Creating map with id '${t}'`);const n=await i.getMapConfig(),s=await zm(t,n);if(E(this,we))throw s.destroy(),new Error("MapRegistry has been destroyed.");const r={kind:"model",model:s};return E(this,oe).set(t,r),E(this,he).delete(t),E(this,Xi).set(s.olMap,s),r};function Cs(e){if(e.kind==="error")throw e.error;return e.model}const Um="modulepreload",$m=function(e,t){return new URL(e,t).href},Na={},H1=function(t,i,n){if(!i||i.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(i.map(r=>{if(r=$m(r,n),r in Na)return;Na[r]=!0;const a=r.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!n)for(let c=s.length-1;c>=0;c--){const u=s[c];if(u.href===r&&(!a||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${o}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":Um,a||(l.as="script",l.crossOrigin=""),l.href=r,document.head.appendChild(l),a)return new Promise((c,u)=>{l.addEventListener("load",c),l.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t()).catch(r=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r})};export{dl as $,Wm as A,me as B,Tc as C,Ba as D,S as E,hn as F,On as G,hc as H,Tt as I,$r as J,ti as K,is as L,x1 as M,y_ as N,T_ as O,ar as P,yi as Q,ja as R,zc as S,Oc as T,$l as U,pt as V,Dl as W,rn as X,qi as Y,Tn as Z,$t as _,Et as a,Ug as a$,ah as a0,im as a1,sm as a2,Oa as a3,q as a4,Qt as a5,jr as a6,t1 as a7,Zl as a8,Yr as a9,ut as aA,Hm as aB,fl as aC,Ne as aD,le as aE,Ja as aF,s1 as aG,i1 as aH,a1 as aI,j as aJ,mn as aK,qo as aL,Pe as aM,ur as aN,qg as aO,yr as aP,Dg as aQ,Bo as aR,wg as aS,I1 as aT,Yo as aU,Dh as aV,nn as aW,Xh as aX,Bg as aY,tr as aZ,Qm as a_,Wl as aa,Ks as ab,ei as ac,V1 as ad,W as ae,Y1 as af,H1 as ag,Jo as ah,r_ as ai,Bt as aj,L1 as ak,xc as al,Os as am,Jt as an,C1 as ao,b1 as ap,_l as aq,gl as ar,xr as as,rs as at,Ai as au,A1 as av,P1 as aw,__ as ax,si as ay,w as az,X as b,F1 as b$,il as b0,nl as b1,mo as b2,m1 as b3,Lh as b4,eo as b5,Vs as b6,E1 as b7,Pm as b8,as as b9,h1 as bA,l1 as bB,_1 as bC,g1 as bD,p1 as bE,f1 as bF,M1 as bG,d1 as bH,v1 as bI,c1 as bJ,Ec as bK,ia as bL,O1 as bM,N1 as bN,G1 as bO,k1 as bP,X1 as bQ,z1 as bR,ih as bS,Hn as bT,Pc as bU,yc as bV,Wn as bW,Ur as bX,nt as bY,Vm as bZ,D1 as b_,q1 as ba,Xt as bb,Xg as bc,e1 as bd,kl as be,Ga as bf,Vi as bg,sl as bh,Z as bi,Bm as bj,Uh as bk,io as bl,so as bm,Bl as bn,co as bo,ho as bp,hr as bq,ao as br,no as bs,ro as bt,uo as bu,u1 as bv,y1 as bw,oo as bx,za as by,Oe as bz,Ws as c,Yn as c0,tl as c1,ke as c2,$1 as c3,j1 as c4,U1 as c5,S1 as c6,K1 as c7,B1 as c8,n1 as c9,Z1 as ca,pn as cb,o1 as cc,R1 as cd,r1 as ce,ce as cf,ll as cg,pl as ch,wn as ci,Kt as cj,Pi as ck,xt as cl,Jm as cm,$g as cn,Ft as d,Li as e,We as f,wi as g,Wi as h,Yi as i,el as j,T1 as k,de as l,to as m,oa as n,G as o,Ac as p,Zs as q,Fc as r,Xe as s,Nl as t,B as u,Pn as v,ln as w,Ts as x,J as y,w1 as z}; +Try to configure 'initialView' explicity.`)}(t.zoom==null||t.resolution==null)&&(t.zoom=0)}initializeProjection(t){if(t==null)return J("EPSG:3857");const i=J(t);if(!i)throw new Error(`Failed to retrieve projection for code '${t}'.`);return i}}const xs=Se("map:MapRegistry");var $i,oe,he,Xi,we,Vn,ph;class Q1{constructor(t){L(this,Vn);L(this,$i,new Map);L(this,oe,new Map);L(this,he,new Map);L(this,Xi,new WeakMap);L(this,we,!1);const i=t.references.providers;for(const n of i)E(this,$i).set(n.mapId,n)}destroy(){E(this,we)||(xs.info("Destroy map registry and all maps"),O(this,we,!0),E(this,oe).forEach(t=>{t.kind==="model"&&t.model.destroy()}),E(this,oe).clear(),E(this,he).clear())}async getMapModel(t){if(E(this,we))throw new Error("MapRegistry has already been destroyed.");const i=E(this,he).get(t);if(i)return Cs(await i);const n=E(this,oe).get(t);if(n)return Cs(n);const s=E(this,$i).get(t);if(!s){xs.debug(`Failed to find a config provider for map id '${t}'.`);return}const r=bt(this,Vn,ph).call(this,t,s).catch(a=>{const h={kind:"error",error:new Error(`Failed to construct map '${t}'`,{cause:a})};return E(this,he).delete(t),E(this,oe).set(t,h),h});return E(this,he).set(t,r),Cs(await r)}async expectMapModel(t){const i=await this.getMapModel(t);if(!i)throw new Error(`No configuration available for map with id '${t}'.`);return i}getMapModelByRawInstance(t){return E(this,Xi).get(t)}}$i=new WeakMap,oe=new WeakMap,he=new WeakMap,Xi=new WeakMap,we=new WeakMap,Vn=new WeakSet,ph=async function(t,i){xs.info(`Creating map with id '${t}'`);const n=await i.getMapConfig(),s=await jm(t,n);if(E(this,we))throw s.destroy(),new Error("MapRegistry has been destroyed.");const r={kind:"model",model:s};return E(this,oe).set(t,r),E(this,he).delete(t),E(this,Xi).set(s.olMap,s),r};function Cs(e){if(e.kind==="error")throw e.error;return e.model}const $m="modulepreload",Xm=function(e,t){return new URL(e,t).href},Da={},J1=function(t,i,n){if(!i||i.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(i.map(r=>{if(r=Xm(r,n),r in Da)return;Da[r]=!0;const a=r.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!n)for(let c=s.length-1;c>=0;c--){const u=s[c];if(u.href===r&&(!a||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${o}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":$m,a||(l.as="script",l.crossOrigin=""),l.href=r,document.head.appendChild(l),a)return new Promise((c,u)=>{l.addEventListener("load",c),l.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t()).catch(r=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r})};export{gl as $,Ym as A,me as B,Ic as C,Va as D,S as E,hn as F,On as G,cc as H,Tt as I,$r as J,ti as K,is as L,b1 as M,M_ as N,I_ as O,ar as P,yi as Q,Ua as R,jc as S,Dc as T,ql as U,pt as V,Gl as W,rn as X,qi as Y,Tn as Z,$t as _,Et as a,Kg as a$,oh as a0,sm as a1,am as a2,Oa as a3,q as a4,Qt as a5,jr as a6,i1 as a7,Bl as a8,Yr as a9,Ct as aA,Rt as aB,Ne as aC,Jn as aD,Jm as aE,Jr as aF,In as aG,sa as aH,Ai as aI,S1 as aJ,L1 as aK,y_ as aL,si as aM,w as aN,ut as aO,Qm as aP,_l as aQ,le as aR,to as aS,a1 as aT,s1 as aU,h1 as aV,j as aW,mn as aX,Zo as aY,Pe as aZ,ur as a_,Hl as aa,Ks as ab,ei as ac,Y1 as ad,W as ae,Q1 as af,J1 as ag,th as ah,o_ as ai,Bt as aj,O1 as ak,bc as al,Os as am,Jt as an,R1 as ao,T1 as ap,yl as aq,ml as ar,xr as as,fh as at,Kt as au,rs as av,pr as aw,Pa as ax,Pi as ay,st as az,X as b,U1 as b$,yr as b0,Gg as b1,Vo as b2,Pg as b3,A1 as b4,Ho as b5,Gh as b6,nn as b7,Zh as b8,Wg as b9,uo as bA,lo as bB,hr as bC,oo as bD,so as bE,ao as bF,fo as bG,f1 as bH,M1 as bI,ho as bJ,ka as bK,Oe as bL,c1 as bM,u1 as bN,y1 as bO,m1 as bP,x1 as bQ,_1 as bR,E1 as bS,g1 as bT,p1 as bU,d1 as bV,Cc as bW,ia as bX,D1 as bY,F1 as bZ,k1 as b_,tr as ba,t1 as bb,Xg as bc,sl as bd,rl as be,yo as bf,v1 as bg,Oh as bh,io as bi,Vs as bj,C1 as bk,as as bl,K1 as bm,Xt as bn,Zg as bo,n1 as bp,Ul as bq,za as br,Vi as bs,al as bt,Z as bu,Vm as bv,Xh as bw,no as bx,ro as by,Wl as bz,Ws as c,Z1 as c0,j1 as c1,nh as c2,Hn as c3,Lc as c4,Mc as c5,Wn as c6,Ur as c7,nt as c8,Wm as c9,G1 as ca,z1 as cb,Yn as cc,il as cd,ke as ce,q1 as cf,$1 as cg,X1 as ch,N1 as ci,V1 as cj,W1 as ck,r1 as cl,B1 as cm,pn as cn,l1 as co,w1 as cp,o1 as cq,ce as cr,ul as cs,xl as ct,wn as cu,xt as cv,e1 as cw,qg as cx,Ft as d,Li as e,We as f,wi as g,Wi as h,Yi as i,nl as j,I1 as k,de as l,eo as m,oa as n,G as o,Sc as p,Zs as q,zc as r,Xe as s,Fl as t,B as u,Pn as v,ln as w,Ts as x,J as y,P1 as z}; diff --git a/openlayers-base-packages/assets/9fe272ea434f.js b/openlayers-base-packages/assets/781df4ef3c5f.js similarity index 96% rename from openlayers-base-packages/assets/9fe272ea434f.js rename to openlayers-base-packages/assets/781df4ef3c5f.js index d26989f06..2d9240777 100644 --- a/openlayers-base-packages/assets/9fe272ea434f.js +++ b/openlayers-base-packages/assets/781df4ef3c5f.js @@ -1,10 +1,10 @@ -import{y as ao,c as lo,z as uo,a as co,u as po,j as re,b as fo}from"./49b2c148dcb3.js";import{ax as ho,ay as ri,az as q,V as qe,aA as pe,g as ni,aB as ct,v as mo,h as De,a6 as yo,a as go,j as xo,aC as bo,aD as ii,aE as oi,aF as vo,aG as rr,aH as hn,aI as wo,aJ as To,aK as Tt,aL as si,aM as ko,aN as zo,aO as Fo,aP as ai,aQ as Lr,aR as Co,aS as Eo,aT as So,E as vr,aU as li,aV as Ro,aW as _o,aX as Io,aY as Mo,y as $e,aZ as Po,a_ as Ao,a$ as Lo,b0 as Do,b1 as jo,l as $o,b2 as Oo,b3 as qo,b4 as No,d as mn,e as Go,b5 as Vo,b6 as Uo,b7 as Bo,aa as Zo,a8 as Ho,B as Xo,au as Wo,L as ui,b8 as Jo,b9 as Ko,S as Yo,ba as Qo,bb as es,s as ts,bc as rs,bd as yn,M as kt,N as ns,O as is,af as os,ag as gn,av as ss,aw as xn}from"./c0d2fbcdd7fa.js";import{T as bn,B as vn,S as wn}from"./fa35e3e86a4c.js";import{i as Tn,j as as,k as kn,H as nr,l as ls,m as us,r as zn,B as cs,n as ps,V as Pt,G as wr,o as ci,p as ds,q as Fn,s as fs,c as hs,L as ms,M as ys,b as gs,u as xs,a as Tr,f as zt,g as ut,S as Le,v as Cn,C as pi,w as bs,T as vs,I as ws,Z as Ts,h as ks}from"./cccb52663858.js";import{F as ir}from"./adc90c48e771.js";import"./37c62c6c4df6.js";import"./7033ed36aa8c.js";import"./5091d4253a81.js";import"./dda37e0a503c.js";import"./f3ffe551a463.js";const zs={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},Fs={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]};class Cs extends ho{constructor(e){super(e),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.renderedLayerRevision_,this.renderedPixelToCoordinateTransform_=null,this.renderedRotation_,this.tmpTransform_=ri()}prepareTile(e,r,n){let i;const o=e.getState();return(o===q.LOADED||o===q.ERROR)&&(this.updateExecutorGroup_(e,r,n),this.tileImageNeedsRender_(e)&&(i=!0)),i}getTile(e,r,n,i){const o=i.pixelRatio,s=i.viewState,a=s.resolution,l=s.projection,u=this.getLayer(),c=u.getSource().getTile(e,r,n,o,l),p=i.viewHints,d=!(p[qe.ANIMATING]||p[qe.INTERACTING]);return(d||!c.wantedResolution)&&(c.wantedResolution=a),this.prepareTile(c,o,l)&&(d||Date.now()-i.time<8)&&u.getRenderMode()!=="vector"&&this.renderTileImage_(c,i),super.getTile(e,r,n,i)}isDrawableTile(e){const r=this.getLayer();return super.isDrawableTile(e)&&(r.getRenderMode()==="vector"?pe(r)in e.executorGroups:e.hasContext(r))}getTileImage(e){return e.getImage(this.getLayer())}prepareFrame(e){const r=this.getLayer().getRevision();return this.renderedLayerRevision_!==r&&(this.renderedLayerRevision_=r,this.renderedTiles.length=0),super.prepareFrame(e)}updateExecutorGroup_(e,r,n){const i=this.getLayer(),o=i.getRevision(),s=i.getRenderOrder()||null,a=e.wantedResolution,l=e.getReplayState(i);if(!l.dirty&&l.renderedResolution===a&&l.renderedRevision==o&&l.renderedRenderOrder==s)return;const u=i.getSource(),c=i.getDeclutter(),p=u.getTileGrid(),f=u.getTileGridForProjection(n).getTileCoordExtent(e.wrappedTileCoord),h=u.getSourceTiles(r,n,e),g=pe(i);delete e.hitDetectionImageData[g],e.executorGroups[g]=[],c&&(e.declutterExecutorGroups[g]=[]),l.dirty=!1;for(let m=0,_=h.length;m<_;++m){const F=h[m];if(F.getState()!=q.LOADED)continue;const R=F.tileCoord,k=p.getTileCoordExtent(R),S=ni(f,k),L=ct(S,i.getRenderBuffer()*a,this.tmpExtent),w=mo(k,S)?null:L,z=new Tn(0,L,a,r),I=c?new Tn(0,S,a,r):void 0,Y=as(a,r),U=function(j){let ve;const _e=j.getStyleFunction()||i.getStyleFunction();if(_e&&(ve=_e(j,a)),ve){const bt=this.renderFeature(j,Y,ve,z,I);l.dirty=l.dirty||bt}},v=F.getFeatures();s&&s!==l.renderedRenderOrder&&v.sort(s);for(let j=0,ve=v.length;j{const z=w===L?r.declutterTree.all().map(I=>I.value):null;for(let I=0,Y=w.length;I{const i=this.getLayer(),o=pe(i),s=i.getSource(),a=this.renderedProjection,l=a.getExtent(),u=this.renderedResolution,c=s.getTileGridForProjection(a),p=go(this.renderedPixelToCoordinateTransform_,e.slice()),d=c.getTileCoordForCoordAndResolution(p,u);let f;for(let R=0,k=this.renderedTiles.length;R0){r([]);return}const h=c.getTileCoordExtent(f.wrappedTileCoord),g=ii(h),m=[(p[0]-g[0])/u,(g[1]-p[1])/u],_=f.getSourceTiles().reduce(function(R,k){return R.concat(k.getFeatures())},[]);let F=f.hitDetectionImageData[o];if(!F){const R=oi(c.getTileSize(c.getZForResolution(u,s.zDirection))),k=this.renderedRotation_,S=[this.getRenderTransform(c.getTileCoordCenter(f.wrappedTileCoord),u,0,nr,R[0]*nr,R[1]*nr,0)];F=ls(R,S,_,i.getStyleFunction(),c.getTileCoordExtent(f.wrappedTileCoord),f.getReplayState(i).renderedResolution,k),f.hitDetectionImageData[o]=F}r(us(m,_,F))})}handleFontsChanged(){const e=this.getLayer();e.getVisible()&&this.renderedLayerRevision_!==void 0&&e.changed()}handleStyleImageChange_(e){this.renderIfReadyAndVisible()}renderDeclutter(e){const r=this.context,n=r.globalAlpha;r.globalAlpha=this.getLayer().getOpacity();const i=e.viewHints,o=!(i[qe.ANIMATING]||i[qe.INTERACTING]),s=this.renderedTiles;for(let a=0,l=s.length;a=0;--p)c[p].execute(this.context,1,this.getTileRenderTransform(u,e),e.viewState.rotation,o,void 0,e.declutterTree)}r.globalAlpha=n}getTileRenderTransform(e,r){const n=r.pixelRatio,i=r.viewState,o=i.center,s=i.resolution,a=i.rotation,l=r.size,u=Math.round(l[0]*n),c=Math.round(l[1]*n),d=this.getLayer().getSource().getTileGridForProjection(r.viewState.projection),f=e.tileCoord,h=d.getTileCoordExtent(e.wrappedTileCoord),g=d.getTileCoordExtent(f,this.tmpExtent)[0]-h[0];return vo(rr(this.inversePixelTransform.slice(),1/n,1/n),this.getRenderTransform(o,s,a,n,u,c,g))}postRender(e,r){const n=r.viewHints,i=!(n[qe.ANIMATING]||n[qe.INTERACTING]);this.renderedPixelToCoordinateTransform_=r.pixelToCoordinateTransform.slice(),this.renderedRotation_=r.viewState.rotation;const o=this.getLayer(),s=o.getRenderMode(),a=e.globalAlpha;e.globalAlpha=o.getOpacity();const l=Fs[s],u=r.viewState,c=u.rotation,p=o.getSource(),f=p.getTileGridForProjection(u.projection).getZForResolution(u.resolution,p.zDirection),h=this.renderedTiles,g=[],m=[];let _=!0;for(let F=h.length-1;F>=0;--F){const R=h[F];_=_&&!R.getReplayState(o).dirty;const k=R.executorGroups[pe(o)].filter(I=>I.hasExecutors(l));if(k.length===0)continue;const S=this.getTileRenderTransform(R,r),L=R.tileCoord[0];let w=!1;const z=k[0].getClipCoords(S);if(z){for(let I=0,Y=g.length;I{const a=So(s),l=n.peek(a);if(l){const u=l.sourceTiles;for(let c=0,p=u.length;c{const f=this.tileUrlFunction(d,e,r),h=this.sourceTileCache.containsKey(f)?this.sourceTileCache.get(f):new this.tileClass(d,f?q.IDLE:q.EMPTY,f,this.format_,this.tileLoadFunction);n.sourceTiles.push(h);const g=h.getState();if(g{this.handleTileChange(_);const F=h.getState();if(F===q.LOADED||F===q.ERROR){const R=h.getKey();R in n.errorTileKeys?h.getState()===q.LOADED&&delete n.errorTileKeys[R]:n.loadingSourceTiles--,F===q.ERROR?n.errorTileKeys[R]=!0:h.removeEventListener(vr.CHANGE,m),n.loadingSourceTiles===0&&n.setState(Ro(n.errorTileKeys)?q.LOADED:q.ERROR)}};h.addEventListener(vr.CHANGE,m),n.loadingSourceTiles++}g===q.IDLE&&(h.extent=u.getTileCoordExtent(d),h.projection=r,h.resolution=u.getResolution(d[0]),this.sourceTileCache.set(f,h),h.load())}),n.loadingSourceTiles||n.setState(n.sourceTiles.some(d=>d.getState()===q.ERROR)?q.ERROR:q.LOADED)}return n.sourceTiles}getTile(e,r,n,i,o){const s=_o(e,r,n),a=this.getKey();let l;if(this.tileCache.containsKey(s)&&(l=this.tileCache.get(s),l.key===a))return l;const u=[e,r,n];let c=this.getTileCoordForTileUrlFunction(u,o);const p=this.getTileGrid().getExtent(),d=this.getTileGridForProjection(o);if(c&&p){const g=d.getTileCoordExtent(c);ct(g,-d.getResolution(e),g),De(p,g)||(c=null)}let f=!0;if(c!==null){const g=this.tileGrid,m=d.getResolution(e),_=g.getZForResolution(m,1),F=d.getTileCoordExtent(c);ct(F,-m,F),g.forEachTileCoord(F,_,R=>{f=f&&!this.tileUrlFunction(R,i,o)})}const h=new Ms(u,f?q.EMPTY:q.IDLE,c,this.getSourceTiles.bind(this,i,o));return h.key=a,l?(h.interimTile=l,h.refreshInterimChain(),this.tileCache.replace(s,h)):this.tileCache.set(s,h),h}getTileGridForProjection(e){const r=e.getCode();let n=this.tileGrids_[r];if(!n){const i=this.tileGrid,o=i.getResolutions().slice(),s=o.map(function(u,c){return i.getOrigin(c)}),a=o.map(function(u,c){return i.getTileSize(c)}),l=Io+1;for(let u=o.length;u=200&&r.status<300){let n;try{n=JSON.parse(r.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(n)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const r=$e("EPSG:4326"),n=this.getProjection();let i;if(e.bounds!==void 0){const u=Po(r,n);i=Ao(e.bounds,u)}const o=ai(n),s=e.minzoom||0,a=e.maxzoom||22,l=Lr({extent:o,maxZoom:a,minZoom:s,tileSize:this.tileSize_});if(this.tileGrid=l,this.tileUrlFunction=Lo(e.tiles,l),e.attribution&&!this.getAttributions()){const u=i!==void 0?i:o;this.setAttributions(function(c){return De(u,c.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}const Ls=As,Ds="next";function js(t,e,r){const n=new URL(t),i=n.searchParams;return i.set("bbox",e.join(",")),i.set("bbox-crs",r),i.set("crs",r),i.set("f","json"),n}function $s(t,e,r){const n=new URL(t),i=n.searchParams;return i.set("offset",e.toString()),i.set("limit",r.toString()),n.toString()}function mi(t){if(!Array.isArray(t))return;const r=t.filter(n=>n.rel===Ds);if(r.length===1)return r[0]?.href}async function yi(t,e,r){let n=[];const o=await fetch(t,{headers:{Accept:"application/geo+json"},signal:r});if(o.status!==200)throw new Error(`Failed to query features from service (status code ${o.status})`);const s=await o.json();e&&(n=e.readFeatures(s));const a=mi(s.links);return{features:n,numberMatched:s.numberMatched,nextURL:a}}async function Os(t){const e={supportsOffsetStrategy:!1},r=new URL(t);r.searchParams.set("limit","1"),r.searchParams.set("f","json");const n=await fetch(r.toString(),{headers:{Accept:"application/geo+json"}});if(n.status!==200)throw new Error(`Failed to probe collection information (status code ${n.status})`);const i=await n.json(),o=mi(i.links);if(!o)return e;const a=new URL(o).searchParams.has("offset");return e.supportsOffsetStrategy=a,e}async function qs(t){const{fullURL:e,featureFormat:r,signal:n,addFeatures:i,queryFeatures:o}=t,s=t.limit,a=t.maxConcurrentRequests;let l=0,u=e;const c=[];let p;for(;u;){let d;p==null?d=a:d=Math.ceil((p-l)/s),d=Math.max(1,Math.min(d,a));const f=[];for(let g=0;g{c??=a(i);let _;try{_=await c}catch(k){Ue.error("Failed to retrieve collection information",k),m?.(),c=void 0;return}u?.abort("Extent changed"),u=new AbortController;const F=js(i,d,t.crs),R=_?.supportsOffsetStrategy?"offset":"next";try{const k=await Us(R,{fullURL:F.toString(),featureFormat:o.getFormat(),queryFeatures:s,addFeatures:l,limit:t.limit??Ns,maxConcurrentRequests:t.maxConcurrentRequests??Gs,signal:u.signal,collectionInfos:_});g?.(k),Ue.debug("Finished loading features for extent:",d)}catch(k){ao(k)?(Ue.debug("Query-Feature-Request aborted",k),o.removeLoadedExtent(d),m?.()):Ue.error("Failed to load features",k)}};return o.setLoader(p),o}function Us(t,e){switch(t){case"next":return Bs(e);case"offset":return qs(e)}}async function Bs(t){const e=t.limit;let r=new URL(t.fullURL);r.searchParams.set("limit",e.toString());let n=[];do{const i=await gi([r.toString()],t.featureFormat,t.signal,t.addFeatures,t.queryFeatures);if(n=n.concat(i.features),!i.nextURL)break;r=new URL(i.nextURL)}while(1);return n}async function gi(t,e,r,n,i=yi){const o={nextURL:void 0,numberMatched:void 0,features:[]},s=t.map(async(a,l)=>{const u=l===t.length-1,c=await i(a,e,r);n(c.features),Ue.debug(`NextURL for index = ${l} (isLast = ${u}): ${c.nextURL||"No Next URL"}`),o.features.push(...c.features),u&&(o.numberMatched=c.numberMatched,o.nextURL=c.nextURL)});return await Promise.all(s),o}const Rn=ri();class ht{constructor(e,r,n,i,o){this.styleFunction,this.extent_,this.id_=o,this.type_=e,this.flatCoordinates_=r,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=n,this.properties_=i}get(e){return this.properties_[e]}getExtent(){return this.extent_||(this.extent_=this.type_==="Point"?Do(this.flatCoordinates_):jo(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const e=$o(this.getExtent());this.flatInteriorPoints_=Oo(this.flatCoordinates_,0,this.ends_,2,e,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const e=ds(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=qo(this.flatCoordinates_,0,this.ends_,2,e)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=Fn(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const e=this.flatCoordinates_;let r=0;const n=this.ends_;for(let i=0,o=n.length;i */Dr.read=function(t,e,r,n,i){var o,s,a=i*8-n-1,l=(1<>1,c=-7,p=r?i-1:0,d=r?-1:1,f=t[e+p];for(p+=d,o=f&(1<<-c)-1,f>>=-c,c+=a;c>0;o=o*256+t[e+p],p+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=s*256+t[e+p],p+=d,c-=8);if(o===0)o=1-u;else{if(o===l)return s?NaN:(f?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-u}return(f?-1:1)*s*Math.pow(2,o-n)};Dr.write=function(t,e,r,n,i,o){var s,a,l,u=o*8-i-1,c=(1<>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,h=n?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+p>=1?e+=d/l:e+=d*Math.pow(2,1-p),e*l>=2&&(s++,l/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(e*l-1)*Math.pow(2,i),s=s+p):(a=e*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;t[r+f]=a&255,f+=h,a/=256,i-=8);for(s=s<0;t[r+f]=s&255,f+=h,s/=256,u-=8);t[r+f-h]|=g*128};var Zs=D,Ft=Dr;function D(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}D.Varint=0;D.Fixed64=1;D.Bytes=2;D.Fixed32=5;var zr=65536*65536,_n=1/zr,Hs=12,xi=typeof TextDecoder>"u"?null:new TextDecoder("utf8");D.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos>3,o=this.pos;this.type=n&7,t(i,e,this),this.pos===o&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=Ct(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=Mn(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=Ct(this.buf,this.pos)+Ct(this.buf,this.pos+4)*zr;return this.pos+=8,t},readSFixed64:function(){var t=Ct(this.buf,this.pos)+Mn(this.buf,this.pos+4)*zr;return this.pos+=8,t},readFloat:function(){var t=Ft.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Ft.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e=this.buf,r,n;return n=e[this.pos++],r=n&127,n<128||(n=e[this.pos++],r|=(n&127)<<7,n<128)||(n=e[this.pos++],r|=(n&127)<<14,n<128)||(n=e[this.pos++],r|=(n&127)<<21,n<128)?r:(n=e[this.pos],r|=(n&15)<<28,Xs(r,t,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2===1?(t+1)/-2:t/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=Hs&&xi?la(this.buf,e,t):aa(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==D.Bytes)return t.push(this.readVarint(e));var r=ke(this);for(t=t||[];this.pos127;);else if(e===D.Bytes)this.pos=this.readVarint()+this.pos;else if(e===D.Fixed32)this.pos+=4;else if(e===D.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+e)},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e268435455||t<0){Ws(t,this);return}this.realloc(4),this.buf[this.pos++]=t&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=t>>>7&127)))},writeSVarint:function(t){this.writeVarint(t<0?-t*2-1:t*2)},writeBoolean:function(t){this.writeVarint(!!t)},writeString:function(t){t=String(t),this.realloc(t.length*4),this.pos++;var e=this.pos;this.pos=ua(this.buf,t,this.pos);var r=this.pos-e;r>=128&&In(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),Ft.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),Ft.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r=128&&In(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,D.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,Ys,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,Qs,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,ra,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,ea,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,ta,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,na,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,ia,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,oa,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,sa,e)},writeBytesField:function(t,e){this.writeTag(t,D.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,D.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,D.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,D.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,D.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,D.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,D.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,D.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,D.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,D.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,!!e)}};function Xs(t,e,r){var n=r.buf,i,o;if(o=n[r.pos++],i=(o&112)>>4,o<128||(o=n[r.pos++],i|=(o&127)<<3,o<128)||(o=n[r.pos++],i|=(o&127)<<10,o<128)||(o=n[r.pos++],i|=(o&127)<<17,o<128)||(o=n[r.pos++],i|=(o&127)<<24,o<128)||(o=n[r.pos++],i|=(o&1)<<31,o<128))return Ne(t,i,e);throw new Error("Expected varint not more than 10 bytes")}function ke(t){return t.type===D.Bytes?t.readVarint()+t.pos:t.pos+1}function Ne(t,e,r){return r?e*4294967296+(t>>>0):(e>>>0)*4294967296+(t>>>0)}function Ws(t,e){var r,n;if(t>=0?(r=t%4294967296|0,n=t/4294967296|0):(r=~(-t%4294967296),n=~(-t/4294967296),r^4294967295?r=r+1|0:(r=0,n=n+1|0)),t>=18446744073709552e3||t<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),Js(r,n,e),Ks(n,e)}function Js(t,e,r){r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos]=t&127}function Ks(t,e){var r=(t&7)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127)))))}function In(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));r.realloc(n);for(var i=r.pos-1;i>=t;i--)r.buf[i+n]=r.buf[i]}function Ys(t,e){for(var r=0;r>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function Mn(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function aa(t,e,r){for(var n="",i=e;i239?4:o>223?3:o>191?2:1;if(i+a>r)break;var l,u,c;a===1?o<128&&(s=o):a===2?(l=t[i+1],(l&192)===128&&(s=(o&31)<<6|l&63,s<=127&&(s=null))):a===3?(l=t[i+1],u=t[i+2],(l&192)===128&&(u&192)===128&&(s=(o&15)<<12|(l&63)<<6|u&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):a===4&&(l=t[i+1],u=t[i+2],c=t[i+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(s=(o&15)<<18|(l&63)<<12|(u&63)<<6|c&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,a=1):s>65535&&(s-=65536,n+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),n+=String.fromCharCode(s),i+=a}return n}function la(t,e,r){return xi.decode(t.subarray(e,r))}function ua(t,e,r){for(var n=0,i,o;n55295&&i<57344)if(o)if(i<56320){t[r++]=239,t[r++]=191,t[r++]=189,o=i;continue}else i=o-55296<<10|i-56320|65536,o=null;else{i>56319||n+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):o=i;continue}else o&&(t[r++]=239,t[r++]=191,t[r++]=189,o=null);i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:(i<65536?t[r++]=i>>12|224:(t[r++]=i>>18|240,t[r++]=i>>12&63|128),t[r++]=i>>6&63|128),t[r++]=i&63|128)}return r}const ca=uo(Zs);class pa extends fs{constructor(e){super(),e=e||{},this.dataProjection=new Uo({code:"",units:"tile-pixels"}),this.featureClass_=e.featureClass?e.featureClass:kr,this.geometryName_=e.geometryName,this.layerName_=e.layerName?e.layerName:"layer",this.layers_=e.layers?e.layers:null,this.idProperty_=e.idProperty,this.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"]}readRawGeometry_(e,r,n,i){e.pos=r.geometry;const o=e.readVarint()+e.pos;let s=1,a=0,l=0,u=0,c=0,p=0;for(;e.pos>3}if(a--,s===1||s===2)l+=e.readSVarint(),u+=e.readSVarint(),s===1&&c>p&&(i.push(c),p=c),n.push(l,u),c+=2;else if(s===7)c>p&&(n.push(n[p],n[p+1]),c+=2);else throw new Error("Invalid command found in the PBF")}c>p&&(i.push(c),p=c)}createFeature_(e,r,n){const i=r.type;if(i===0)return null;let o;const s=r.properties;let a;this.idProperty_?(a=s[this.idProperty_],delete s[this.idProperty_]):a=r.id,s[this.layerName_]=r.layer.name;const l=[],u=[];this.readRawGeometry_(e,r,l,u);const c=ya(i,u.length);if(this.featureClass_===kr)o=new this.featureClass_(c,l,u,s,a),o.transform(n.dataProjection);else{let p;if(c=="Polygon"){const h=Bo(l,u);p=h.length>1?new hs(l,"XY",h):new Zo(l,"XY",u)}else p=c==="Point"?new Ho(l,"XY"):c==="LineString"?new ms(l,"XY"):c==="MultiPoint"?new ys(l,"XY"):c==="MultiLineString"?new gs(l,"XY",u):null;const d=this.featureClass_;o=new d,this.geometryName_&&o.setGeometryName(this.geometryName_);const f=xs(p,!1,n);o.setGeometry(f),a!==void 0&&o.setId(a),o.setProperties(s,!0)}return o}getType(){return"arraybuffer"}readFeatures(e,r){const n=this.layers_;r=this.adaptOptions(r);const i=$e(r.dataProjection);i.setWorldExtent(r.extent),r.dataProjection=i;const o=new ca(e),s=o.readFields(da,{}),a=[];for(const l in s){if(n&&!n.includes(l))continue;const u=s[l],c=u?[0,0,u.extent,u.extent]:null;i.setExtent(c);for(let p=0,d=u.length;p>3,n=t===1?r.readString():t===2?r.readFloat():t===3?r.readDouble():t===4?r.readVarint64():t===5?r.readVarint():t===6?r.readSVarint():t===7?r.readBoolean():null;e.values.push(n)}}function ha(t,e,r){if(t==1)e.id=r.readVarint();else if(t==2){const n=r.readVarint()+r.pos;for(;r.pos255?255:t}function An(t){return t<0?0:t>1?1:t}function or(t){return t[t.length-1]==="%"?pt(parseFloat(t)/100*255):pt(parseInt(t))}function Et(t){return t[t.length-1]==="%"?An(parseFloat(t)/100):An(parseFloat(t))}function sr(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function xa(t){var e=t.replace(/ /g,"").toLowerCase();if(e in Pn)return Pn[e].slice();if(e[0]==="#"){if(e.length===4){var r=parseInt(e.substr(1),16);return r>=0&&r<=4095?[(r&3840)>>4|(r&3840)>>8,r&240|(r&240)>>4,r&15|(r&15)<<4,1]:null}else if(e.length===7){var r=parseInt(e.substr(1),16);return r>=0&&r<=16777215?[(r&16711680)>>16,(r&65280)>>8,r&255,1]:null}return null}var n=e.indexOf("("),i=e.indexOf(")");if(n!==-1&&i+1===e.length){var o=e.substr(0,n),s=e.substr(n+1,i-(n+1)).split(","),a=1;switch(o){case"rgba":if(s.length!==4)return null;a=Et(s.pop());case"rgb":return s.length!==3?null:[or(s[0]),or(s[1]),or(s[2]),a];case"hsla":if(s.length!==4)return null;a=Et(s.pop());case"hsl":if(s.length!==3)return null;var l=(parseFloat(s[0])%360+360)%360/360,u=Et(s[1]),c=Et(s[2]),p=c<=.5?c*(u+1):c+u-c*u,d=c*2-p;return[pt(sr(d,p,l+1/3)*255),pt(sr(d,p,l)*255),pt(sr(d,p,l-1/3)*255),a];default:return null}}return null}try{wi=ga.parseCSSColor=xa}catch{}class ae{constructor(e,r,n,i=1){this.r=e,this.g=r,this.b=n,this.a=i}static parse(e){if(!e)return;if(e instanceof ae)return e;if(typeof e!="string")return;const r=wi(e);if(r)return new ae(r[0]/255*r[3],r[1]/255*r[3],r[2]/255*r[3],r[3])}toString(){const[e,r,n,i]=this.toArray();return`rgba(${Math.round(e)},${Math.round(r)},${Math.round(n)},${i})`}toArray(){const{r:e,g:r,b:n,a:i}=this;return i===0?[0,0,0,0]:[e*255/i,r*255/i,n*255/i,i]}toArray01(){const{r:e,g:r,b:n,a:i}=this;return i===0?[0,0,0,0]:[e/i,r/i,n/i,i]}toArray01PremultipliedAlpha(){const{r:e,g:r,b:n,a:i}=this;return[e,r,n,i]}}ae.black=new ae(0,0,0,1);ae.white=new ae(1,1,1,1);ae.transparent=new ae(0,0,0,0);ae.red=new ae(1,0,0,1);ae.blue=new ae(0,0,1,1);var fe=ae;function mt(t){return typeof t=="object"?["literal",t]:t}function ba(t,e){let r=t.stops;if(!r)return va(t,e);const n=r&&typeof r[0][0]=="object",i=n||t.property!==void 0,o=n||!i;return r=r.map(s=>!i&&e.tokens&&typeof s[1]=="string"?[s[0],za(s[1])]:[s[0],mt(s[1])]),n?wa(t,e,r):o?ka(t,e,r):Fr(t,e,r)}function va(t,e){const r=["get",t.property];if(t.default===void 0)return e.type==="string"?["string",r]:r;if(e.type==="enum")return["match",r,Object.keys(e.values),r,t.default];{const n=[e.type==="color"?"to-color":e.type,r,mt(t.default)];return e.type==="array"&&n.splice(1,0,e.value,e.length||null),n}}function jr(t){switch(t.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function wa(t,e,r){const n={},i={},o=[];for(let a=0;a3&&e===t[t.length-2]||(n&&t.length===2||t.push(e),t.push(r))}function Or(t,e){return t.type?t.type:e.expression.interpolated?"exponential":"interval"}function za(t){const e=["concat"],r=/{([^{}]+)}/g;let n=0;for(let i=r.exec(t);i!==null;i=r.exec(t)){const o=t.slice(n,r.lastIndex-i[0].length);n=r.lastIndex,o.length>0&&e.push(o),e.push(["get",i[1]])}if(e.length===1)return t;if(n`:t.itemType.kind==="value"?"array":`array<${e}>`}else return t.kind}const Sa=[Zt,y,A,M,Fe,Xt,Je,me(P),xt];function yt(t,e){if(e.kind==="error")return null;if(t.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!yt(t.itemType,e.itemType))&&(typeof t.N!="number"||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(t.kind==="value"){for(const r of Sa)if(!yt(r,e))return null}}return`Expected ${V(t)} but found ${V(e)} instead.`}function Nr(t,e){return e.some(r=>r.kind===t.kind)}function gt(t,e){return e.some(r=>r==="null"?t===null:r==="array"?Array.isArray(t):r==="object"?t&&!Array.isArray(t)&&typeof t=="object":r===typeof t)}class Gr{constructor(e,r,n){e?this.sensitivity=r?"variant":"case":this.sensitivity=r?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,r){return this.collator.compare(e,r)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Cr{constructor(e,r,n,i,o){this.text=e.normalize?e.normalize():e,this.image=r,this.scale=n,this.fontStack=i,this.textColor=o}}class be{constructor(e){this.sections=e}static fromString(e){return new be([new Cr(e,null,null,null,null)])}isEmpty(){return this.sections.length===0?!0:!this.sections.some(e=>e.text.length!==0||e.image&&e.image.name.length!==0)}static factory(e){return e instanceof be?e:be.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const r of this.sections){if(r.image){e.push(["image",r.image.name]);continue}e.push(r.text);const n={};r.fontStack&&(n["text-font"]=["literal",r.fontStack.split(",")]),r.scale&&(n["font-scale"]=r.scale),r.textColor&&(n["text-color"]=["rgba"].concat(r.textColor.toArray())),e.push(n)}return e}}class Re{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new Re({name:e,available:!1}):null}serialize(){return["image",this.name]}}function Ti(t,e,r,n){return typeof t=="number"&&t>=0&&t<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof r=="number"&&r>=0&&r<=255?typeof n>"u"||typeof n=="number"&&n>=0&&n<=1?null:`Invalid rgba value [${[t,e,r,n].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof n=="number"?[t,e,r,n]:[t,e,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function jt(t){if(t===null)return!0;if(typeof t=="string")return!0;if(typeof t=="boolean")return!0;if(typeof t=="number")return!0;if(t instanceof fe)return!0;if(t instanceof Gr)return!0;if(t instanceof be)return!0;if(t instanceof Re)return!0;if(Array.isArray(t)){for(const e of t)if(!jt(e))return!1;return!0}else if(typeof t=="object"){for(const e in t)if(!jt(t[e]))return!1;return!0}else return!1}function K(t){if(t===null)return Zt;if(typeof t=="string")return A;if(typeof t=="boolean")return M;if(typeof t=="number")return y;if(t instanceof fe)return Fe;if(t instanceof Gr)return Ht;if(t instanceof be)return Xt;if(t instanceof Re)return xt;if(Array.isArray(t)){const e=t.length;let r;for(const n of t){const i=K(n);if(!r)r=i;else{if(r===i)continue;r=P;break}}return me(r||P,e)}else return Je}function dt(t){const e=typeof t;return t===null?"":e==="string"||e==="number"||e==="boolean"?String(t):t instanceof fe||t instanceof be||t instanceof Re?t.toString():JSON.stringify(t)}class Vr{constructor(e,r){this.type=e,this.value=r}static parse(e,r){if(e.length!==2)return r.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!jt(e[1]))return r.error("invalid value");const n=e[1];let i=K(n);const o=r.expectedType;return i.kind==="array"&&i.N===0&&o&&o.kind==="array"&&(typeof o.N!="number"||o.N===0)&&(i=o),new Vr(i,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof fe?["rgba"].concat(this.value.toArray()):this.value instanceof be?this.value.serialize():this.value}}var $t=Vr;class Ra{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}var ee=Ra;const ar={string:A,number:y,boolean:M,object:Je};class Ur{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let n=1,i;const o=e[0];if(o==="array"){let a;if(e.length>2){const u=e[1];if(typeof u!="string"||!(u in ar)||u==="object")return r.error('The item type argument of "array" must be one of string, number, boolean',1);a=ar[u],n++}else a=P;let l;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return r.error('The length argument to "array" must be a positive integer literal',2);l=e[2],n++}i=me(a,l)}else i=ar[o];const s=[];for(;ne.outputDefined())}serialize(){const e=this.type,r=[e.kind];if(e.kind==="array"){const n=e.itemType;if(n.kind==="string"||n.kind==="number"||n.kind==="boolean"){r.push(n.kind);const i=e.N;(typeof i=="number"||this.args.length>1)&&r.push(i)}}return r.concat(this.args.map(n=>n.serialize()))}}var ze=Ur;class Wt{constructor(e){this.type=Xt,this.sections=e}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");const n=e[1];if(!Array.isArray(n)&&typeof n=="object")return r.error("First argument must be an image or text section.");const i=[];let o=!1;for(let s=1;s<=e.length-1;++s){const a=e[s];if(o&&typeof a=="object"&&!Array.isArray(a)){o=!1;let l=null;if(a["font-scale"]&&(l=r.parse(a["font-scale"],1,y),!l))return null;let u=null;if(a["text-font"]&&(u=r.parse(a["text-font"],1,me(A)),!u))return null;let c=null;if(a["text-color"]&&(c=r.parse(a["text-color"],1,Fe),!c))return null;const p=i[i.length-1];p.scale=l,p.font=u,p.textColor=c}else{const l=r.parse(e[s],1,P);if(!l)return null;const u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");o=!0,i.push({content:l,scale:null,font:null,textColor:null})}}return new Wt(i)}evaluate(e){const r=n=>{const i=n.content.evaluate(e);return K(i)===xt?new Cr("",i,null,null,null):new Cr(dt(i),null,n.scale?n.scale.evaluate(e):null,n.font?n.font.evaluate(e).join(","):null,n.textColor?n.textColor.evaluate(e):null)};return new be(this.sections.map(r))}eachChild(e){for(const r of this.sections)e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const r of this.sections){e.push(r.content.serialize());const n={};r.scale&&(n["font-scale"]=r.scale.serialize()),r.font&&(n["text-font"]=r.font.serialize()),r.textColor&&(n["text-color"]=r.textColor.serialize()),e.push(n)}return e}}class Jt{constructor(e){this.type=xt,this.input=e}static parse(e,r){if(e.length!==2)return r.error("Expected two arguments.");const n=r.parse(e[1],1,A);return n?new Jt(n):r.error("No image name provided.")}evaluate(e){const r=this.input.evaluate(e),n=Re.fromString(r);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(r)>-1),n}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const _a={"to-boolean":M,"to-color":Fe,"to-number":y,"to-string":A};class Br{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");const n=e[0];if((n==="to-boolean"||n==="to-string")&&e.length!==2)return r.error("Expected one argument.");const i=_a[n],o=[];for(let s=1;s4?n=`Invalid rbga value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:n=Ti(r[0],r[1],r[2],r[3]),!n))return new fe(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new ee(n||`Could not parse color from value '${typeof r=="string"?r:String(JSON.stringify(r))}'`)}else if(this.type.kind==="number"){let r=null;for(const n of this.args){if(r=n.evaluate(e),r===null)return 0;const i=Number(r);if(!isNaN(i))return i}throw new ee(`Could not convert ${JSON.stringify(r)} to number.`)}else return this.type.kind==="formatted"?be.fromString(dt(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?Re.fromString(dt(this.args[0].evaluate(e))):dt(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if(this.type.kind==="formatted")return new Wt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new Jt(this.args[0]).serialize();const e=[`to-${this.type.kind}`];return this.eachChild(r=>{e.push(r.serialize())}),e}}var He=Br;const Ia=["Unknown","Point","LineString","Polygon"];class Ma{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Ia[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,r=this.featureDistanceData.scale,{x:n,y:i}=this.featureTileCoord,o=n*r-e[0],s=i*r-e[1],a=this.featureDistanceData.bearing[0],l=this.featureDistanceData.bearing[1];return a*o+l*s}return 0}parseColor(e){let r=this._parseColorCache[e];return r||(r=this._parseColorCache[e]=fe.parse(e)),r}}var ki=Ma;class Xe{constructor(e,r,n,i){this.name=e,this.type=r,this._evaluate=n,this.args=i}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,r){const n=e[0],i=Xe.definitions[n];if(!i)return r.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const o=Array.isArray(i)?i[0]:i.type,s=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,a=s.filter(([u])=>!Array.isArray(u)||u.length===e.length-1);let l=null;for(const[u,c]of a){l=new Si(r.registry,r.path,null,r.scope);const p=[];let d=!1;for(let f=1;fPa(d)).join(" | "),p=[];for(let d=1;d=e[2]||t[1]<=e[1]||t[3]>=e[3])}function Da(t,e){const r=Aa(t[0]),n=La(t[1]),i=Math.pow(2,e.z);return[Math.round(r*i*Se),Math.round(n*i*Se)]}function ja(t,e,r){const n=t[0]-e[0],i=t[1]-e[1],o=t[0]-r[0],s=t[1]-r[1];return n*s-o*i===0&&n*o<=0&&i*s<=0}function $a(t,e,r){return e[1]>t[1]!=r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function Hr(t,e){let r=!1;for(let n=0,i=e.length;n0&&p<0||c<0&&p>0}function Na(t,e,r,n){const i=[e[0]-t[0],e[1]-t[1]],o=[n[0]-r[0],n[1]-r[1]];return qa(o,i)===0?!1:!!(Dn(t,e,r,n)&&Dn(r,n,t,e))}function Ga(t,e,r){for(const n of r)for(let i=0;ir[2]){const i=n*.5;let o=t[0]-r[0]>i?-n:r[0]-t[0]>i?n:0;o===0&&(o=t[0]-r[2]>i?-n:r[2]-t[0]>i?n:0),t[0]+=o}Zr(e,t)}function Ua(t){t[0]=t[1]=1/0,t[2]=t[3]=-1/0}function jn(t,e,r,n){const i=Math.pow(2,n.z)*Se,o=[n.x*Se,n.y*Se],s=[];if(!t)return s;for(const a of t)for(const l of a){const u=[l.x+o[0],l.y+o[1]];Ci(u,e,r,i),s.push(u)}return s}function $n(t,e,r,n){const i=Math.pow(2,n.z)*Se,o=[n.x*Se,n.y*Se],s=[];if(!t)return s;for(const a of t){const l=[];for(const u of a){const c=[u.x+o[0],u.y+o[1]];Zr(e,c),l.push(c)}s.push(l)}if(e[2]-e[0]<=i/2){Ua(e);for(const a of s)for(const l of a)Ci(l,e,r,i)}return s}function Ba(t,e){const r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(!i)return!1;if(e.type==="Polygon"){const o=Xr(e.coordinates,n,i),s=jn(t.geometry(),r,n,i);if(!Ot(r,n))return!1;for(const a of s)if(!Hr(a,o))return!1}if(e.type==="MultiPolygon"){const o=Fi(e.coordinates,n,i),s=jn(t.geometry(),r,n,i);if(!Ot(r,n))return!1;for(const a of s)if(!Oa(a,o))return!1}return!0}function Za(t,e){const r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(!i)return!1;if(e.type==="Polygon"){const o=Xr(e.coordinates,n,i),s=$n(t.geometry(),r,n,i);if(!Ot(r,n))return!1;for(const a of s)if(!zi(a,o))return!1}if(e.type==="MultiPolygon"){const o=Fi(e.coordinates,n,i),s=$n(t.geometry(),r,n,i);if(!Ot(r,n))return!1;for(const a of s)if(!Va(a,o))return!1}return!0}class ft{constructor(e,r){this.type=M,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(jt(e[1])){const n=e[1];if(n.type==="FeatureCollection")for(let i=0;i{e&&!Yt(r)&&(e=!1)}),e}function Jr(t){if(t instanceof et&&t.name==="feature-state")return!1;let e=!0;return t.eachChild(r=>{e&&!Jr(r)&&(e=!1)}),e}function Kr(t,e){if(t instanceof et&&e.indexOf(t.name)>=0)return!1;let r=!0;return t.eachChild(n=>{r&&!Kr(n,e)&&(r=!1)}),r}class Yr{constructor(e,r){this.type=r.type,this.name=e,this.boundExpression=r}static parse(e,r){if(e.length!==2||typeof e[1]!="string")return r.error("'var' expression requires exactly one string literal argument.");const n=e[1];return r.scope.has(n)?new Yr(n,r.scope.get(n)):r.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Ei=Yr;class Qr{constructor(e,r=[],n,i=new Ca,o=[]){this.registry=e,this.path=r,this.key=r.map(s=>`[${s}]`).join(""),this.scope=i,this.errors=o,this.expectedType=n}parse(e,r,n,i,o={}){return r?this.concat(r,n,i)._parse(e,o):this._parse(e,o)}_parse(e,r){(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number")&&(e=["literal",e]);function n(i,o,s){return s==="assert"?new ze(o,[i]):s==="coerce"?new He(o,[i]):i}if(Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const i=e[0];if(typeof i!="string")return this.error(`Expression name must be a string, but found ${typeof i} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const o=this.registry[i];if(o){let s=o.parse(e,this);if(!s)return null;if(this.expectedType){const a=this.expectedType,l=s.type;if((a.kind==="string"||a.kind==="number"||a.kind==="boolean"||a.kind==="object"||a.kind==="array")&&l.kind==="value")s=n(s,a,r.typeAnnotation||"assert");else if((a.kind==="color"||a.kind==="formatted"||a.kind==="resolvedImage")&&(l.kind==="value"||l.kind==="string"))s=n(s,a,r.typeAnnotation||"coerce");else if(this.checkSubtype(a,l))return null}if(!(s instanceof $t)&&s.type.kind!=="resolvedImage"&&Er(s)){const a=new ki;try{s=new $t(s.type,s.evaluate(a))}catch(l){return this.error(l.message),null}}return s}return this.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0)}else return typeof e>"u"?this.error("'undefined' value invalid. Use null instead."):typeof e=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof e} instead.`)}concat(e,r,n){const i=typeof e=="number"?this.path.concat(e):this.path,o=n?this.scope.concat(n):this.scope;return new Qr(this.registry,i,r||null,o,this.errors)}error(e,...r){const n=`${this.key}${r.map(i=>`[${i}]`).join("")}`;this.errors.push(new xe(n,e))}checkSubtype(e,r){const n=yt(e,r);return n&&this.error(n),n}}var Si=Qr;function Er(t){if(t instanceof Ei)return Er(t.boundExpression);if(t instanceof et&&t.name==="error")return!1;if(t instanceof Kt)return!1;if(t instanceof Wr)return!1;const e=t instanceof He||t instanceof ze;let r=!0;return t.eachChild(n=>{e?r=r&&Er(n):r=r&&n instanceof $t}),r?Yt(t)&&Kr(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"]):!1}function Ri(t,e){const r=t.length-1;let n=0,i=r,o=0,s,a;for(;n<=i;)if(o=Math.floor((n+i)/2),s=t[o],a=t[o+1],s<=e){if(o===r||ee)i=o-1;else throw new ee("Input is not a number.");return 0}class en{constructor(e,r,n){this.type=e,this.input=r,this.labels=[],this.outputs=[];for(const[i,o]of n)this.labels.push(i),this.outputs.push(o)}static parse(e,r){if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!==0)return r.error("Expected an even number of arguments.");const n=r.parse(e[1],1,y);if(!n)return null;const i=[];let o=null;r.expectedType&&r.expectedType.kind!=="value"&&(o=r.expectedType);for(let s=1;s=a)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);const p=r.parse(l,c,o);if(!p)return null;o=o||p.type,i.push([a,p])}return new en(o,n,i)}evaluate(e){const r=this.labels,n=this.outputs;if(r.length===1)return n[0].evaluate(e);const i=this.input.evaluate(e);if(i<=r[0])return n[0].evaluate(e);const o=r.length;if(i>=r[o-1])return n[o-1].evaluate(e);const s=Ri(r,i);return n[s].evaluate(e)}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let r=0;r0&&e.push(this.labels[r]),e.push(this.outputs[r].serialize());return e}}var _i=en,Ha=tt;function tt(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}tt.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t};tt.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t};tt.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx};tt.prototype.solveCurveX=function(t,e){typeof e>"u"&&(e=1e-6);var r,n,i,o,s;for(i=t,s=0;s<8;s++){if(o=this.sampleCurveX(i)-t,Math.abs(o)n)return n;for(;ro?r=i:n=i,i=(n-r)*.5+r}return i};tt.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var Xa=vi(Ha);function de(t,e,r){return t*(1-r)+e*r}function Wa(t,e,r){return new fe(de(t.r,e.r,r),de(t.g,e.g,r),de(t.b,e.b,r),de(t.a,e.a,r))}function Ja(t,e,r){return t.map((n,i)=>de(n,e[i],r))}var Ka=Object.freeze({__proto__:null,number:de,color:Wa,array:Ja});const Ii=.95047,Mi=1,Pi=1.08883,Ai=4/29,Ke=6/29,Li=3*Ke*Ke,Ya=Ke*Ke*Ke,Qa=Math.PI/180,el=180/Math.PI;function lr(t){return t>Ya?Math.pow(t,1/3):t/Li+Ai}function ur(t){return t>Ke?t*t*t:Li*(t-Ai)}function cr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function pr(t){return t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Di(t){const e=pr(t.r),r=pr(t.g),n=pr(t.b),i=lr((.4124564*e+.3575761*r+.1804375*n)/Ii),o=lr((.2126729*e+.7151522*r+.072175*n)/Mi),s=lr((.0193339*e+.119192*r+.9503041*n)/Pi);return{l:116*o-16,a:500*(i-o),b:200*(o-s),alpha:t.a}}function ji(t){let e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=Mi*ur(e),r=Ii*ur(r),n=Pi*ur(n),new fe(cr(3.2404542*r-1.5371385*e-.4985314*n),cr(-.969266*r+1.8760108*e+.041556*n),cr(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function tl(t,e,r){return{l:de(t.l,e.l,r),a:de(t.a,e.a,r),b:de(t.b,e.b,r),alpha:de(t.alpha,e.alpha,r)}}function rl(t){const{l:e,a:r,b:n}=Di(t),i=Math.atan2(n,r)*el;return{h:i<0?i+360:i,c:Math.sqrt(r*r+n*n),l:e,alpha:t.a}}function nl(t){const e=t.h*Qa,r=t.c,n=t.l;return ji({l:n,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})}function il(t,e,r){const n=e-t;return t+r*(n>180||n<-180?n-360*Math.round(n/360):n)}function ol(t,e,r){return{h:il(t.h,e.h,r),c:de(t.c,e.c,r),l:de(t.l,e.l,r),alpha:de(t.alpha,e.alpha,r)}}const St={forward:Di,reverse:ji,interpolate:tl},Rt={forward:rl,reverse:nl,interpolate:ol};class qt{constructor(e,r,n,i,o){this.type=e,this.operator=r,this.interpolation=n,this.input=i,this.labels=[],this.outputs=[];for(const[s,a]of o)this.labels.push(s),this.outputs.push(a)}static interpolationFactor(e,r,n,i){let o=0;if(e.name==="exponential")o=dr(r,e.base,n,i);else if(e.name==="linear")o=dr(r,1,n,i);else if(e.name==="cubic-bezier"){const s=e.controlPoints;o=new Xa(s[0],s[1],s[2],s[3]).solve(dr(r,1,n,i))}return o}static parse(e,r){let[n,i,o,...s]=e;if(!Array.isArray(i)||i.length===0)return r.error("Expected an interpolation type expression.",1);if(i[0]==="linear")i={name:"linear"};else if(i[0]==="exponential"){const u=i[1];if(typeof u!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);i={name:"exponential",base:u}}else if(i[0]==="cubic-bezier"){const u=i.slice(1);if(u.length!==4||u.some(c=>typeof c!="number"||c<0||c>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);i={name:"cubic-bezier",controlPoints:u}}else return r.error(`Unknown interpolation type ${String(i[0])}`,1,0);if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!==0)return r.error("Expected an even number of arguments.");if(o=r.parse(o,2,y),!o)return null;const a=[];let l=null;n==="interpolate-hcl"||n==="interpolate-lab"?l=Fe:r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);for(let u=0;u=c)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);const h=r.parse(p,f,l);if(!h)return null;l=l||h.type,a.push([c,h])}return l.kind!=="number"&&l.kind!=="color"&&!(l.kind==="array"&&l.itemType.kind==="number"&&typeof l.N=="number")?r.error(`Type ${V(l)} is not interpolatable.`):new qt(l,n,i,o,a)}evaluate(e){const r=this.labels,n=this.outputs;if(r.length===1)return n[0].evaluate(e);const i=this.input.evaluate(e);if(i<=r[0])return n[0].evaluate(e);const o=r.length;if(i>=r[o-1])return n[o-1].evaluate(e);const s=Ri(r,i),a=r[s],l=r[s+1],u=qt.interpolationFactor(this.interpolation,i,a,l),c=n[s].evaluate(e),p=n[s+1].evaluate(e);return this.operator==="interpolate"?Ka[this.type.kind.toLowerCase()](c,p,u):this.operator==="interpolate-hcl"?Rt.reverse(Rt.interpolate(Rt.forward(c),Rt.forward(p),u)):St.reverse(St.interpolate(St.forward(c),St.forward(p),u))}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;this.interpolation.name==="linear"?e=["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?e=["linear"]:e=["exponential",this.interpolation.base]:e=["cubic-bezier"].concat(this.interpolation.controlPoints);const r=[this.operator,e,this.input.serialize()];for(let n=0;nyt(i,a.type))?new Nt(P,o):new Nt(n,o)}evaluate(e){let r=null,n=0,i;for(const o of this.args){if(n++,r=o.evaluate(e),r&&r instanceof Re&&!r.available&&(i||(i=r),r=null,n===this.args.length))return i;if(r!==null)break}return r}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(r=>{e.push(r.serialize())}),e}}var $i=Nt;class tn{constructor(e,r){this.type=r.type,this.bindings=[].concat(e),this.result=r}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const r of this.bindings)e(r[1]);e(this.result)}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const n=[];for(let o=1;o=n.length)throw new ee(`Array index out of bounds: ${r} > ${n.length-1}.`);if(r!==Math.floor(r))throw new ee(`Array index must be an integer, but found ${r} instead.`);return n[r]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var sl=rn;class nn{constructor(e,r){this.type=M,this.needle=e,this.haystack=r}static parse(e,r){if(e.length!==3)return r.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=r.parse(e[1],1,P),i=r.parse(e[2],2,P);return!n||!i?null:Nr(n.type,[M,A,y,Zt,P])?new nn(n,i):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${V(n.type)} instead`)}evaluate(e){const r=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(n==null)return!1;if(!gt(r,["boolean","string","number","null"]))throw new ee(`Expected first argument to be of type boolean, string, number or null, but found ${V(K(r))} instead.`);if(!gt(n,["string","array"]))throw new ee(`Expected second argument to be of type array or string, but found ${V(K(n))} instead.`);return n.indexOf(r)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var al=nn;class Gt{constructor(e,r,n){this.type=y,this.needle=e,this.haystack=r,this.fromIndex=n}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=r.parse(e[1],1,P),i=r.parse(e[2],2,P);if(!n||!i)return null;if(!Nr(n.type,[M,A,y,Zt,P]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${V(n.type)} instead`);if(e.length===4){const o=r.parse(e[3],3,y);return o?new Gt(n,i,o):null}else return new Gt(n,i)}evaluate(e){const r=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!gt(r,["boolean","string","number","null"]))throw new ee(`Expected first argument to be of type boolean, string, number or null, but found ${V(K(r))} instead.`);if(!gt(n,["string","array"]))throw new ee(`Expected second argument to be of type array or string, but found ${V(K(n))} instead.`);if(this.fromIndex){const i=this.fromIndex.evaluate(e);return n.indexOf(r,i)}return n.indexOf(r)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var ll=Gt;class on{constructor(e,r,n,i,o,s){this.inputType=e,this.type=r,this.input=n,this.cases=i,this.outputs=o,this.otherwise=s}static parse(e,r){if(e.length<5)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!==1)return r.error("Expected an even number of arguments.");let n,i;r.expectedType&&r.expectedType.kind!=="value"&&(i=r.expectedType);const o={},s=[];for(let u=2;uNumber.MAX_SAFE_INTEGER)return d.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof h=="number"&&Math.floor(h)!==h)return d.error("Numeric branch labels must be integer values.");if(!n)n=K(h);else if(d.checkSubtype(n,K(h)))return null;if(typeof o[String(h)]<"u")return d.error("Branch labels must be unique.");o[String(h)]=s.length}const f=r.parse(p,u,i);if(!f)return null;i=i||f.type,s.push(f)}const a=r.parse(e[1],1,P);if(!a)return null;const l=r.parse(e[e.length-1],e.length-1,i);return!l||a.type.kind!=="value"&&r.concat(1).checkSubtype(n,a.type)?null:new on(n,i,a,o,s,l)}evaluate(e){const r=this.input.evaluate(e);return(K(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],r=Object.keys(this.cases).sort(),n=[],i={};for(const s of r){const a=i[this.cases[s]];a===void 0?(i[this.cases[s]]=n.length,n.push([this.cases[s],[s]])):n[a][1].push(s)}const o=s=>this.inputType.kind==="number"?Number(s):s;for(const[s,a]of n)a.length===1?e.push(o(a[0])):e.push(a.map(o)),e.push(this.outputs[s].serialize());return e.push(this.otherwise.serialize()),e}}var ul=on;class sn{constructor(e,r,n){this.type=e,this.branches=r,this.otherwise=n}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!==0)return r.error("Expected an odd number of arguments.");let n;r.expectedType&&r.expectedType.kind!=="value"&&(n=r.expectedType);const i=[];for(let s=1;sr.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(r=>{e.push(r.serialize())}),e}}var cl=sn;class Vt{constructor(e,r,n,i){this.type=e,this.input=r,this.beginIndex=n,this.endIndex=i}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=r.parse(e[1],1,P),i=r.parse(e[2],2,y);if(!n||!i)return null;if(!Nr(n.type,[me(P),A,P]))return r.error(`Expected first argument to be of type array or string, but found ${V(n.type)} instead`);if(e.length===4){const o=r.parse(e[3],3,y);return o?new Vt(n.type,n,i,o):null}else return new Vt(n.type,n,i)}evaluate(e){const r=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!gt(r,["string","array"]))throw new ee(`Expected first argument to be of type array or string, but found ${V(K(r))} instead.`);if(this.endIndex){const i=this.endIndex.evaluate(e);return r.slice(n,i)}return r.slice(n)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var pl=Vt;function On(t,e){return t==="=="||t==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function dl(t,e,r){return e===r}function fl(t,e,r){return e!==r}function hl(t,e,r){return er}function yl(t,e,r){return e<=r}function gl(t,e,r){return e>=r}function qi(t,e,r,n){return n.compare(e,r)===0}function xl(t,e,r,n){return!qi(t,e,r,n)}function bl(t,e,r,n){return n.compare(e,r)<0}function vl(t,e,r,n){return n.compare(e,r)>0}function wl(t,e,r,n){return n.compare(e,r)<=0}function Tl(t,e,r,n){return n.compare(e,r)>=0}function rt(t,e,r){const n=t!=="=="&&t!=="!=";return class Ni{constructor(o,s,a){this.type=M,this.lhs=o,this.rhs=s,this.collator=a,this.hasUntypedArgument=o.type.kind==="value"||s.type.kind==="value"}static parse(o,s){if(o.length!==3&&o.length!==4)return s.error("Expected two or three arguments.");const a=o[0];let l=s.parse(o[1],1,P);if(!l)return null;if(!On(a,l.type))return s.concat(1).error(`"${a}" comparisons are not supported for type '${V(l.type)}'.`);let u=s.parse(o[2],2,P);if(!u)return null;if(!On(a,u.type))return s.concat(2).error(`"${a}" comparisons are not supported for type '${V(u.type)}'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return s.error(`Cannot compare types '${V(l.type)}' and '${V(u.type)}'.`);n&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new ze(u.type,[l]):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new ze(l.type,[u])));let c=null;if(o.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return s.error("Cannot use collator to compare non-string types.");if(c=s.parse(o[3],3,Ht),!c)return null}return new Ni(l,u,c)}evaluate(o){const s=this.lhs.evaluate(o),a=this.rhs.evaluate(o);if(n&&this.hasUntypedArgument){const l=K(s),u=K(a);if(l.kind!==u.kind||!(l.kind==="string"||l.kind==="number"))throw new ee(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`)}if(this.collator&&!n&&this.hasUntypedArgument){const l=K(s),u=K(a);if(l.kind!=="string"||u.kind!=="string")return e(o,s,a)}return this.collator?r(o,s,a,this.collator.evaluate(o)):e(o,s,a)}eachChild(o){o(this.lhs),o(this.rhs),this.collator&&o(this.collator)}outputDefined(){return!0}serialize(){const o=[t];return this.eachChild(s=>{o.push(s.serialize())}),o}}}const kl=rt("==",dl,qi),zl=rt("!=",fl,xl),Fl=rt("<",hl,bl),Cl=rt(">",ml,vl),El=rt("<=",yl,wl),Sl=rt(">=",gl,Tl);class an{constructor(e,r,n,i,o,s){this.type=A,this.number=e,this.locale=r,this.currency=n,this.unit=i,this.minFractionDigits=o,this.maxFractionDigits=s}static parse(e,r){if(e.length!==3)return r.error("Expected two arguments.");const n=r.parse(e[1],1,y);if(!n)return null;const i=e[2];if(typeof i!="object"||Array.isArray(i))return r.error("NumberFormat options argument must be an object.");let o=null;if(i.locale&&(o=r.parse(i.locale,1,A),!o))return null;let s=null;if(i.currency&&(s=r.parse(i.currency,1,A),!s))return null;let a=null;if(i.unit&&(a=r.parse(i.unit,1,A),!a))return null;let l=null;if(i["min-fraction-digits"]&&(l=r.parse(i["min-fraction-digits"],1,y),!l))return null;let u=null;return i["max-fraction-digits"]&&(u=r.parse(i["max-fraction-digits"],1,y),!u)?null:new an(n,o,s,a,l,u)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency&&"currency"||this.unit&&"unit"||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class ln{constructor(e){this.type=y,this.input=e}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);const n=r.parse(e[1],1);return n?n.type.kind!=="array"&&n.type.kind!=="string"&&n.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${V(n.type)} instead.`):new ln(n):null}evaluate(e){const r=this.input.evaluate(e);if(typeof r=="string")return r.length;if(Array.isArray(r))return r.length;throw new ee(`Expected value to be of type string or array, but found ${V(K(r))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(r=>{e.push(r.serialize())}),e}}var Rl=ln;const Gi={"==":kl,"!=":zl,">":Cl,"<":Fl,">=":Sl,"<=":El,array:ze,at:sl,boolean:ze,case:cl,coalesce:$i,collator:Kt,format:Wt,image:Jt,in:al,"index-of":ll,interpolate:je,"interpolate-hcl":je,"interpolate-lab":je,length:Rl,let:Oi,literal:$t,match:ul,number:ze,"number-format":an,object:ze,slice:pl,step:_i,string:ze,"to-boolean":He,"to-color":He,"to-number":He,"to-string":He,var:Ei,within:Wr};function qn(t,[e,r,n,i]){e=e.evaluate(t),r=r.evaluate(t),n=n.evaluate(t);const o=i?i.evaluate(t):1,s=Ti(e,r,n,o);if(s)throw new ee(s);return new fe(e/255*o,r/255*o,n/255*o,o)}function Nn(t,e){return t in e}function fr(t,e){const r=e[t];return typeof r>"u"?null:r}function _l(t,e,r,n){for(;r<=n;){const i=r+n>>1;if(e[i]===t)return!0;e[i]>t?n=i-1:r=i+1}return!1}function Pe(t){return{type:t}}et.register(Gi,{error:[Ea,[A],(t,[e])=>{throw new ee(e.evaluate(t))}],typeof:[A,[P],(t,[e])=>V(K(e.evaluate(t)))],"to-rgba":[me(y,4),[Fe],(t,[e])=>e.evaluate(t).toArray()],rgb:[Fe,[y,y,y],qn],rgba:[Fe,[y,y,y,y],qn],has:{type:M,overloads:[[[A],(t,[e])=>Nn(e.evaluate(t),t.properties())],[[A,Je],(t,[e,r])=>Nn(e.evaluate(t),r.evaluate(t))]]},get:{type:P,overloads:[[[A],(t,[e])=>fr(e.evaluate(t),t.properties())],[[A,Je],(t,[e,r])=>fr(e.evaluate(t),r.evaluate(t))]]},"feature-state":[P,[A],(t,[e])=>fr(e.evaluate(t),t.featureState||{})],properties:[Je,[],t=>t.properties()],"geometry-type":[A,[],t=>t.geometryType()],id:[P,[],t=>t.id()],zoom:[y,[],t=>t.globals.zoom],pitch:[y,[],t=>t.globals.pitch||0],"distance-from-center":[y,[],t=>t.distanceFromCenter()],"heatmap-density":[y,[],t=>t.globals.heatmapDensity||0],"line-progress":[y,[],t=>t.globals.lineProgress||0],"sky-radial-progress":[y,[],t=>t.globals.skyRadialProgress||0],accumulated:[P,[],t=>t.globals.accumulated===void 0?null:t.globals.accumulated],"+":[y,Pe(y),(t,e)=>{let r=0;for(const n of e)r+=n.evaluate(t);return r}],"*":[y,Pe(y),(t,e)=>{let r=1;for(const n of e)r*=n.evaluate(t);return r}],"-":{type:y,overloads:[[[y,y],(t,[e,r])=>e.evaluate(t)-r.evaluate(t)],[[y],(t,[e])=>-e.evaluate(t)]]},"/":[y,[y,y],(t,[e,r])=>e.evaluate(t)/r.evaluate(t)],"%":[y,[y,y],(t,[e,r])=>e.evaluate(t)%r.evaluate(t)],ln2:[y,[],()=>Math.LN2],pi:[y,[],()=>Math.PI],e:[y,[],()=>Math.E],"^":[y,[y,y],(t,[e,r])=>Math.pow(e.evaluate(t),r.evaluate(t))],sqrt:[y,[y],(t,[e])=>Math.sqrt(e.evaluate(t))],log10:[y,[y],(t,[e])=>Math.log(e.evaluate(t))/Math.LN10],ln:[y,[y],(t,[e])=>Math.log(e.evaluate(t))],log2:[y,[y],(t,[e])=>Math.log(e.evaluate(t))/Math.LN2],sin:[y,[y],(t,[e])=>Math.sin(e.evaluate(t))],cos:[y,[y],(t,[e])=>Math.cos(e.evaluate(t))],tan:[y,[y],(t,[e])=>Math.tan(e.evaluate(t))],asin:[y,[y],(t,[e])=>Math.asin(e.evaluate(t))],acos:[y,[y],(t,[e])=>Math.acos(e.evaluate(t))],atan:[y,[y],(t,[e])=>Math.atan(e.evaluate(t))],min:[y,Pe(y),(t,e)=>Math.min(...e.map(r=>r.evaluate(t)))],max:[y,Pe(y),(t,e)=>Math.max(...e.map(r=>r.evaluate(t)))],abs:[y,[y],(t,[e])=>Math.abs(e.evaluate(t))],round:[y,[y],(t,[e])=>{const r=e.evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[y,[y],(t,[e])=>Math.floor(e.evaluate(t))],ceil:[y,[y],(t,[e])=>Math.ceil(e.evaluate(t))],"filter-==":[M,[A,P],(t,[e,r])=>t.properties()[e.value]===r.value],"filter-id-==":[M,[P],(t,[e])=>t.id()===e.value],"filter-type-==":[M,[A],(t,[e])=>t.geometryType()===e.value],"filter-<":[M,[A,P],(t,[e,r])=>{const n=t.properties()[e.value],i=r.value;return typeof n==typeof i&&n{const r=t.id(),n=e.value;return typeof r==typeof n&&r":[M,[A,P],(t,[e,r])=>{const n=t.properties()[e.value],i=r.value;return typeof n==typeof i&&n>i}],"filter-id->":[M,[P],(t,[e])=>{const r=t.id(),n=e.value;return typeof r==typeof n&&r>n}],"filter-<=":[M,[A,P],(t,[e,r])=>{const n=t.properties()[e.value],i=r.value;return typeof n==typeof i&&n<=i}],"filter-id-<=":[M,[P],(t,[e])=>{const r=t.id(),n=e.value;return typeof r==typeof n&&r<=n}],"filter->=":[M,[A,P],(t,[e,r])=>{const n=t.properties()[e.value],i=r.value;return typeof n==typeof i&&n>=i}],"filter-id->=":[M,[P],(t,[e])=>{const r=t.id(),n=e.value;return typeof r==typeof n&&r>=n}],"filter-has":[M,[P],(t,[e])=>e.value in t.properties()],"filter-has-id":[M,[],t=>t.id()!==null&&t.id()!==void 0],"filter-type-in":[M,[me(A)],(t,[e])=>e.value.indexOf(t.geometryType())>=0],"filter-id-in":[M,[me(P)],(t,[e])=>e.value.indexOf(t.id())>=0],"filter-in-small":[M,[A,me(P)],(t,[e,r])=>r.value.indexOf(t.properties()[e.value])>=0],"filter-in-large":[M,[A,me(P)],(t,[e,r])=>_l(t.properties()[e.value],r.value,0,r.value.length-1)],all:{type:M,overloads:[[[M,M],(t,[e,r])=>e.evaluate(t)&&r.evaluate(t)],[Pe(M),(t,e)=>{for(const r of e)if(!r.evaluate(t))return!1;return!0}]]},any:{type:M,overloads:[[[M,M],(t,[e,r])=>e.evaluate(t)||r.evaluate(t)],[Pe(M),(t,e)=>{for(const r of e)if(r.evaluate(t))return!0;return!1}]]},"!":[M,[M],(t,[e])=>!e.evaluate(t)],"is-supported-script":[M,[A],(t,[e])=>{const r=t.globals&&t.globals.isSupportedScript;return r?r(e.evaluate(t)):!0}],upcase:[A,[A],(t,[e])=>e.evaluate(t).toUpperCase()],downcase:[A,[A],(t,[e])=>e.evaluate(t).toLowerCase()],concat:[A,Pe(P),(t,e)=>e.map(r=>dt(r.evaluate(t))).join("")],"resolved-locale":[A,[Ht],(t,[e])=>e.evaluate(t).resolvedLocale()]});var Vi=Gi;function Sr(t){return{result:"success",value:t}}function Be(t){return{result:"error",value:t}}function Il(t){return t["property-type"]==="data-driven"}function Ml(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Pl(t){return!!t.expression&&t.expression.interpolated}function Ui(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}class Al{constructor(e,r){this.expression=e,this._warningHistory={},this._evaluator=new ki,this._defaultValue=r?$l(r):null,this._enumValues=r&&r.type==="enum"?r.values:null}evaluateWithoutErrorHandling(e,r,n,i,o,s,a,l){return this._evaluator.globals=e,this._evaluator.feature=r,this._evaluator.featureState=n,this._evaluator.canonical=i||null,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=s,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=l||null,this.expression.evaluate(this._evaluator)}evaluate(e,r,n,i,o,s,a,l){this._evaluator.globals=e,this._evaluator.feature=r||null,this._evaluator.featureState=n||null,this._evaluator.canonical=i||null,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=s||null,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=l||null;try{const u=this.expression.evaluate(this._evaluator);if(u==null||typeof u=="number"&&u!==u)return this._defaultValue;if(this._enumValues&&!(u in this._enumValues))throw new ee(`Expected value to be one of ${Object.keys(this._enumValues).map(c=>JSON.stringify(c)).join(", ")}, but found ${JSON.stringify(u)} instead.`);return u}catch(u){return this._warningHistory[u.message]||(this._warningHistory[u.message]=!0,typeof console<"u"&&console.warn(u.message)),this._defaultValue}}}function Ll(t){return Array.isArray(t)&&t.length>0&&typeof t[0]=="string"&&t[0]in Vi}function Rr(t,e){const r=new Si(Vi,[],e?jl(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return n?Sr(new Al(n,e)):Be(r.errors)}class Gn{constructor(e,r){this.kind=e,this._styleExpression=r,this.isStateDependent=e!=="constant"&&!Jr(r.expression)}evaluateWithoutErrorHandling(e,r,n,i,o,s){return this._styleExpression.evaluateWithoutErrorHandling(e,r,n,i,o,s)}evaluate(e,r,n,i,o,s){return this._styleExpression.evaluate(e,r,n,i,o,s)}}class Vn{constructor(e,r,n,i){this.kind=e,this.zoomStops=n,this._styleExpression=r,this.isStateDependent=e!=="camera"&&!Jr(r.expression),this.interpolationType=i}evaluateWithoutErrorHandling(e,r,n,i,o,s){return this._styleExpression.evaluateWithoutErrorHandling(e,r,n,i,o,s)}evaluate(e,r,n,i,o,s){return this._styleExpression.evaluate(e,r,n,i,o,s)}interpolationFactor(e,r,n){return this.interpolationType?je.interpolationFactor(this.interpolationType,e,r,n):0}}function Dl(t,e){if(t=Rr(t,e),t.result==="error")return t;const r=t.value.expression,n=Yt(r);if(!n&&!Il(e))return Be([new xe("","data expressions not supported")]);const i=Kr(r,["zoom","pitch","distance-from-center"]);if(!i&&!Ml(e))return Be([new xe("","zoom expressions not supported")]);const o=Lt(r);if(!o&&!i)return Be([new xe("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof xe)return Be([o]);if(o instanceof je&&!Pl(e))return Be([new xe("",'"interpolate" expressions cannot be used with this property')]);if(!o)return Sr(n?new Gn("constant",t.value):new Gn("source",t.value));const s=o instanceof je?o.interpolation:void 0;return Sr(n?new Vn("camera",t.value,o.labels,s):new Vn("composite",t.value,o.labels,s))}function Lt(t){let e=null;if(t instanceof Oi)e=Lt(t.result);else if(t instanceof $i){for(const r of t.args)if(e=Lt(r),e)break}else(t instanceof _i||t instanceof je)&&t.input instanceof et&&t.input.name==="zoom"&&(e=t);return e instanceof xe||t.eachChild(r=>{const n=Lt(r);n instanceof xe?e=n:!e&&n?e=new xe("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&n&&e!==n&&(e=new xe("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}function jl(t){const e={color:Fe,string:A,number:y,enum:A,boolean:M,formatted:Xt,resolvedImage:xt};return t.type==="array"?me(e[t.value]||P,t.length):e[t.type]}function $l(t){return t.type==="color"&&(Ui(t.default)||Array.isArray(t.default))?new fe(0,0,0,0):t.type==="color"?fe.parse(t.default)||null:t.default===void 0?null:t.default}function Ol(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function _r(t){if(Array.isArray(t))return t.map(_r);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){const e={};for(const r in t)e[r]=_r(t[r]);return e}return Ol(t)}var Bi={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},fog:{type:"fog"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},projection:{type:"projection"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{},sky:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"},"fill-extrusion-edge-radius":{type:"number",private:!0,default:0,minimum:0,maximum:1,"property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_symbol:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature","pitch","distance-from-center"]}},filter_fill:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_line:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_circle:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},"filter_fill-extrusion":{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_heatmap:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Camera"},pitch:{group:"Camera"},"distance-from-center":{group:"Camera"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"sky-radial-progress":{group:"sky"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"high-color":{type:"color","property-type":"data-constant",default:"#245cdf",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"space-color":{type:"color","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,.2,7,.1],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"star-intensity":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],5,.35,6,0],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},projection:{name:{type:"enum",values:{albers:{},equalEarth:{},equirectangular:{},lambertConformalConic:{},mercator:{},naturalEarth:{},winkelTripel:{},globe:{}},default:"mercator",required:!0},center:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-180,-90],maximum:[180,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-90,-90],maximum:[90,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["source"]}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant",type:"number",private:!0,default:0,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant",type:"number",private:!0,default:3,minimum:0,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["fill-extrusion-edge-radius"]}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!1,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{type:"array",value:"number",length:2,default:[0,0],minimum:[0,0],maximum:[1,1],transition:!1,requires:[{source:"geojson",has:{lineMetrics:!0}}],"property-type":"constant"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};function Zi(t){if(t===!0||t===!1)return!0;if(!Array.isArray(t)||t.length===0)return!1;switch(t[0]){case"has":return t.length>=2&&t[1]!=="$id"&&t[1]!=="$type";case"in":return t.length>=3&&(typeof t[1]!="string"||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return t.length!==3||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(const e of t.slice(1))if(!Zi(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}function ql(t,e="fill"){if(t==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};Zi(t)||(t=Ut(t));const r=t;let n=!0;try{n=Nl(r)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate. +import{y as ao,c as lo,z as uo,a as co,u as po,j as re,b as fo}from"./49b2c148dcb3.js";import{aL as ho,aM as ri,aN as q,V as qe,aO as pe,g as ni,aP as ct,v as mo,h as De,a6 as yo,a as go,j as xo,aQ as bo,aC as ii,aR as oi,aS as vo,aT as rr,aU as hn,aV as wo,aW as To,aX as Tt,aY as si,aZ as ko,a_ as zo,a$ as Fo,b0 as ai,b1 as Lr,b2 as Co,b3 as Eo,b4 as So,E as vr,b5 as li,b6 as Ro,b7 as _o,b8 as Io,b9 as Mo,y as $e,ba as Po,bb as Ao,bc as Lo,bd as Do,be as jo,l as $o,bf as Oo,bg as qo,bh as No,d as mn,e as Go,bi as Vo,bj as Uo,bk as Bo,aa as Zo,a8 as Xo,B as Ho,aI as Wo,L as ui,at as Jo,bl as Ko,S as Yo,bm as Qo,bn as es,s as ts,bo as rs,bp as yn,M as kt,N as ns,O as is,af as os,ag as gn,aJ as ss,aK as xn}from"./67c4f96ddb71.js";import{T as bn,B as vn,S as wn}from"./fa35e3e86a4c.js";import{i as Tn,j as as,k as kn,H as nr,l as ls,m as us,r as zn,B as cs,n as ps,V as Pt,G as wr,o as ci,p as ds,q as Fn,s as fs,c as hs,L as ms,M as ys,b as gs,u as xs,a as Tr,f as zt,g as ut,S as Le,v as Cn,C as pi,w as bs,T as vs,I as ws,Z as Ts,h as ks}from"./070a56af8b93.js";import{F as ir}from"./adc90c48e771.js";import"./37c62c6c4df6.js";import"./1241ef5f2dc5.js";import"./5091d4253a81.js";import"./dda37e0a503c.js";import"./f3ffe551a463.js";const zs={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},Fs={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]};class Cs extends ho{constructor(e){super(e),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.renderedLayerRevision_,this.renderedPixelToCoordinateTransform_=null,this.renderedRotation_,this.tmpTransform_=ri()}prepareTile(e,r,n){let i;const o=e.getState();return(o===q.LOADED||o===q.ERROR)&&(this.updateExecutorGroup_(e,r,n),this.tileImageNeedsRender_(e)&&(i=!0)),i}getTile(e,r,n,i){const o=i.pixelRatio,s=i.viewState,a=s.resolution,l=s.projection,u=this.getLayer(),c=u.getSource().getTile(e,r,n,o,l),p=i.viewHints,d=!(p[qe.ANIMATING]||p[qe.INTERACTING]);return(d||!c.wantedResolution)&&(c.wantedResolution=a),this.prepareTile(c,o,l)&&(d||Date.now()-i.time<8)&&u.getRenderMode()!=="vector"&&this.renderTileImage_(c,i),super.getTile(e,r,n,i)}isDrawableTile(e){const r=this.getLayer();return super.isDrawableTile(e)&&(r.getRenderMode()==="vector"?pe(r)in e.executorGroups:e.hasContext(r))}getTileImage(e){return e.getImage(this.getLayer())}prepareFrame(e){const r=this.getLayer().getRevision();return this.renderedLayerRevision_!==r&&(this.renderedLayerRevision_=r,this.renderedTiles.length=0),super.prepareFrame(e)}updateExecutorGroup_(e,r,n){const i=this.getLayer(),o=i.getRevision(),s=i.getRenderOrder()||null,a=e.wantedResolution,l=e.getReplayState(i);if(!l.dirty&&l.renderedResolution===a&&l.renderedRevision==o&&l.renderedRenderOrder==s)return;const u=i.getSource(),c=i.getDeclutter(),p=u.getTileGrid(),f=u.getTileGridForProjection(n).getTileCoordExtent(e.wrappedTileCoord),h=u.getSourceTiles(r,n,e),g=pe(i);delete e.hitDetectionImageData[g],e.executorGroups[g]=[],c&&(e.declutterExecutorGroups[g]=[]),l.dirty=!1;for(let m=0,_=h.length;m<_;++m){const F=h[m];if(F.getState()!=q.LOADED)continue;const R=F.tileCoord,k=p.getTileCoordExtent(R),S=ni(f,k),L=ct(S,i.getRenderBuffer()*a,this.tmpExtent),w=mo(k,S)?null:L,z=new Tn(0,L,a,r),I=c?new Tn(0,S,a,r):void 0,Y=as(a,r),U=function(j){let ve;const _e=j.getStyleFunction()||i.getStyleFunction();if(_e&&(ve=_e(j,a)),ve){const bt=this.renderFeature(j,Y,ve,z,I);l.dirty=l.dirty||bt}},v=F.getFeatures();s&&s!==l.renderedRenderOrder&&v.sort(s);for(let j=0,ve=v.length;j{const z=w===L?r.declutterTree.all().map(I=>I.value):null;for(let I=0,Y=w.length;I{const i=this.getLayer(),o=pe(i),s=i.getSource(),a=this.renderedProjection,l=a.getExtent(),u=this.renderedResolution,c=s.getTileGridForProjection(a),p=go(this.renderedPixelToCoordinateTransform_,e.slice()),d=c.getTileCoordForCoordAndResolution(p,u);let f;for(let R=0,k=this.renderedTiles.length;R0){r([]);return}const h=c.getTileCoordExtent(f.wrappedTileCoord),g=ii(h),m=[(p[0]-g[0])/u,(g[1]-p[1])/u],_=f.getSourceTiles().reduce(function(R,k){return R.concat(k.getFeatures())},[]);let F=f.hitDetectionImageData[o];if(!F){const R=oi(c.getTileSize(c.getZForResolution(u,s.zDirection))),k=this.renderedRotation_,S=[this.getRenderTransform(c.getTileCoordCenter(f.wrappedTileCoord),u,0,nr,R[0]*nr,R[1]*nr,0)];F=ls(R,S,_,i.getStyleFunction(),c.getTileCoordExtent(f.wrappedTileCoord),f.getReplayState(i).renderedResolution,k),f.hitDetectionImageData[o]=F}r(us(m,_,F))})}handleFontsChanged(){const e=this.getLayer();e.getVisible()&&this.renderedLayerRevision_!==void 0&&e.changed()}handleStyleImageChange_(e){this.renderIfReadyAndVisible()}renderDeclutter(e){const r=this.context,n=r.globalAlpha;r.globalAlpha=this.getLayer().getOpacity();const i=e.viewHints,o=!(i[qe.ANIMATING]||i[qe.INTERACTING]),s=this.renderedTiles;for(let a=0,l=s.length;a=0;--p)c[p].execute(this.context,1,this.getTileRenderTransform(u,e),e.viewState.rotation,o,void 0,e.declutterTree)}r.globalAlpha=n}getTileRenderTransform(e,r){const n=r.pixelRatio,i=r.viewState,o=i.center,s=i.resolution,a=i.rotation,l=r.size,u=Math.round(l[0]*n),c=Math.round(l[1]*n),d=this.getLayer().getSource().getTileGridForProjection(r.viewState.projection),f=e.tileCoord,h=d.getTileCoordExtent(e.wrappedTileCoord),g=d.getTileCoordExtent(f,this.tmpExtent)[0]-h[0];return vo(rr(this.inversePixelTransform.slice(),1/n,1/n),this.getRenderTransform(o,s,a,n,u,c,g))}postRender(e,r){const n=r.viewHints,i=!(n[qe.ANIMATING]||n[qe.INTERACTING]);this.renderedPixelToCoordinateTransform_=r.pixelToCoordinateTransform.slice(),this.renderedRotation_=r.viewState.rotation;const o=this.getLayer(),s=o.getRenderMode(),a=e.globalAlpha;e.globalAlpha=o.getOpacity();const l=Fs[s],u=r.viewState,c=u.rotation,p=o.getSource(),f=p.getTileGridForProjection(u.projection).getZForResolution(u.resolution,p.zDirection),h=this.renderedTiles,g=[],m=[];let _=!0;for(let F=h.length-1;F>=0;--F){const R=h[F];_=_&&!R.getReplayState(o).dirty;const k=R.executorGroups[pe(o)].filter(I=>I.hasExecutors(l));if(k.length===0)continue;const S=this.getTileRenderTransform(R,r),L=R.tileCoord[0];let w=!1;const z=k[0].getClipCoords(S);if(z){for(let I=0,Y=g.length;I{const a=So(s),l=n.peek(a);if(l){const u=l.sourceTiles;for(let c=0,p=u.length;c{const f=this.tileUrlFunction(d,e,r),h=this.sourceTileCache.containsKey(f)?this.sourceTileCache.get(f):new this.tileClass(d,f?q.IDLE:q.EMPTY,f,this.format_,this.tileLoadFunction);n.sourceTiles.push(h);const g=h.getState();if(g{this.handleTileChange(_);const F=h.getState();if(F===q.LOADED||F===q.ERROR){const R=h.getKey();R in n.errorTileKeys?h.getState()===q.LOADED&&delete n.errorTileKeys[R]:n.loadingSourceTiles--,F===q.ERROR?n.errorTileKeys[R]=!0:h.removeEventListener(vr.CHANGE,m),n.loadingSourceTiles===0&&n.setState(Ro(n.errorTileKeys)?q.LOADED:q.ERROR)}};h.addEventListener(vr.CHANGE,m),n.loadingSourceTiles++}g===q.IDLE&&(h.extent=u.getTileCoordExtent(d),h.projection=r,h.resolution=u.getResolution(d[0]),this.sourceTileCache.set(f,h),h.load())}),n.loadingSourceTiles||n.setState(n.sourceTiles.some(d=>d.getState()===q.ERROR)?q.ERROR:q.LOADED)}return n.sourceTiles}getTile(e,r,n,i,o){const s=_o(e,r,n),a=this.getKey();let l;if(this.tileCache.containsKey(s)&&(l=this.tileCache.get(s),l.key===a))return l;const u=[e,r,n];let c=this.getTileCoordForTileUrlFunction(u,o);const p=this.getTileGrid().getExtent(),d=this.getTileGridForProjection(o);if(c&&p){const g=d.getTileCoordExtent(c);ct(g,-d.getResolution(e),g),De(p,g)||(c=null)}let f=!0;if(c!==null){const g=this.tileGrid,m=d.getResolution(e),_=g.getZForResolution(m,1),F=d.getTileCoordExtent(c);ct(F,-m,F),g.forEachTileCoord(F,_,R=>{f=f&&!this.tileUrlFunction(R,i,o)})}const h=new Ms(u,f?q.EMPTY:q.IDLE,c,this.getSourceTiles.bind(this,i,o));return h.key=a,l?(h.interimTile=l,h.refreshInterimChain(),this.tileCache.replace(s,h)):this.tileCache.set(s,h),h}getTileGridForProjection(e){const r=e.getCode();let n=this.tileGrids_[r];if(!n){const i=this.tileGrid,o=i.getResolutions().slice(),s=o.map(function(u,c){return i.getOrigin(c)}),a=o.map(function(u,c){return i.getTileSize(c)}),l=Io+1;for(let u=o.length;u=200&&r.status<300){let n;try{n=JSON.parse(r.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(n)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const r=$e("EPSG:4326"),n=this.getProjection();let i;if(e.bounds!==void 0){const u=Po(r,n);i=Ao(e.bounds,u)}const o=ai(n),s=e.minzoom||0,a=e.maxzoom||22,l=Lr({extent:o,maxZoom:a,minZoom:s,tileSize:this.tileSize_});if(this.tileGrid=l,this.tileUrlFunction=Lo(e.tiles,l),e.attribution&&!this.getAttributions()){const u=i!==void 0?i:o;this.setAttributions(function(c){return De(u,c.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}const Ls=As,Ds="next";function js(t,e,r){const n=new URL(t),i=n.searchParams;return i.set("bbox",e.join(",")),i.set("bbox-crs",r),i.set("crs",r),i.set("f","json"),n}function $s(t,e,r){const n=new URL(t),i=n.searchParams;return i.set("offset",e.toString()),i.set("limit",r.toString()),n.toString()}function mi(t){if(!Array.isArray(t))return;const r=t.filter(n=>n.rel===Ds);if(r.length===1)return r[0]?.href}async function yi(t,e,r){let n=[];const o=await fetch(t,{headers:{Accept:"application/geo+json"},signal:r});if(o.status!==200)throw new Error(`Failed to query features from service (status code ${o.status})`);const s=await o.json();e&&(n=e.readFeatures(s));const a=mi(s.links);return{features:n,numberMatched:s.numberMatched,nextURL:a}}async function Os(t){const e={supportsOffsetStrategy:!1},r=new URL(t);r.searchParams.set("limit","1"),r.searchParams.set("f","json");const n=await fetch(r.toString(),{headers:{Accept:"application/geo+json"}});if(n.status!==200)throw new Error(`Failed to probe collection information (status code ${n.status})`);const i=await n.json(),o=mi(i.links);if(!o)return e;const a=new URL(o).searchParams.has("offset");return e.supportsOffsetStrategy=a,e}async function qs(t){const{fullURL:e,featureFormat:r,signal:n,addFeatures:i,queryFeatures:o}=t,s=t.limit,a=t.maxConcurrentRequests;let l=0,u=e;const c=[];let p;for(;u;){let d;p==null?d=a:d=Math.ceil((p-l)/s),d=Math.max(1,Math.min(d,a));const f=[];for(let g=0;g{c??=a(i);let _;try{_=await c}catch(k){Ue.error("Failed to retrieve collection information",k),m?.(),c=void 0;return}u?.abort("Extent changed"),u=new AbortController;const F=js(i,d,t.crs),R=_?.supportsOffsetStrategy?"offset":"next";try{const k=await Us(R,{fullURL:F.toString(),featureFormat:o.getFormat(),queryFeatures:s,addFeatures:l,limit:t.limit??Ns,maxConcurrentRequests:t.maxConcurrentRequests??Gs,signal:u.signal,collectionInfos:_});g?.(k),Ue.debug("Finished loading features for extent:",d)}catch(k){ao(k)?(Ue.debug("Query-Feature-Request aborted",k),o.removeLoadedExtent(d),m?.()):Ue.error("Failed to load features",k)}};return o.setLoader(p),o}function Us(t,e){switch(t){case"next":return Bs(e);case"offset":return qs(e)}}async function Bs(t){const e=t.limit;let r=new URL(t.fullURL);r.searchParams.set("limit",e.toString());let n=[];do{const i=await gi([r.toString()],t.featureFormat,t.signal,t.addFeatures,t.queryFeatures);if(n=n.concat(i.features),!i.nextURL)break;r=new URL(i.nextURL)}while(1);return n}async function gi(t,e,r,n,i=yi){const o={nextURL:void 0,numberMatched:void 0,features:[]},s=t.map(async(a,l)=>{const u=l===t.length-1,c=await i(a,e,r);n(c.features),Ue.debug(`NextURL for index = ${l} (isLast = ${u}): ${c.nextURL||"No Next URL"}`),o.features.push(...c.features),u&&(o.numberMatched=c.numberMatched,o.nextURL=c.nextURL)});return await Promise.all(s),o}const Rn=ri();class ht{constructor(e,r,n,i,o){this.styleFunction,this.extent_,this.id_=o,this.type_=e,this.flatCoordinates_=r,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=n,this.properties_=i}get(e){return this.properties_[e]}getExtent(){return this.extent_||(this.extent_=this.type_==="Point"?Do(this.flatCoordinates_):jo(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const e=$o(this.getExtent());this.flatInteriorPoints_=Oo(this.flatCoordinates_,0,this.ends_,2,e,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const e=ds(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=qo(this.flatCoordinates_,0,this.ends_,2,e)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=Fn(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const e=this.flatCoordinates_;let r=0;const n=this.ends_;for(let i=0,o=n.length;i */Dr.read=function(t,e,r,n,i){var o,s,a=i*8-n-1,l=(1<>1,c=-7,p=r?i-1:0,d=r?-1:1,f=t[e+p];for(p+=d,o=f&(1<<-c)-1,f>>=-c,c+=a;c>0;o=o*256+t[e+p],p+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=s*256+t[e+p],p+=d,c-=8);if(o===0)o=1-u;else{if(o===l)return s?NaN:(f?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-u}return(f?-1:1)*s*Math.pow(2,o-n)};Dr.write=function(t,e,r,n,i,o){var s,a,l,u=o*8-i-1,c=(1<>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,h=n?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+p>=1?e+=d/l:e+=d*Math.pow(2,1-p),e*l>=2&&(s++,l/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(e*l-1)*Math.pow(2,i),s=s+p):(a=e*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;t[r+f]=a&255,f+=h,a/=256,i-=8);for(s=s<0;t[r+f]=s&255,f+=h,s/=256,u-=8);t[r+f-h]|=g*128};var Zs=D,Ft=Dr;function D(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}D.Varint=0;D.Fixed64=1;D.Bytes=2;D.Fixed32=5;var zr=65536*65536,_n=1/zr,Xs=12,xi=typeof TextDecoder>"u"?null:new TextDecoder("utf8");D.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos>3,o=this.pos;this.type=n&7,t(i,e,this),this.pos===o&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=Ct(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=Mn(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=Ct(this.buf,this.pos)+Ct(this.buf,this.pos+4)*zr;return this.pos+=8,t},readSFixed64:function(){var t=Ct(this.buf,this.pos)+Mn(this.buf,this.pos+4)*zr;return this.pos+=8,t},readFloat:function(){var t=Ft.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Ft.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e=this.buf,r,n;return n=e[this.pos++],r=n&127,n<128||(n=e[this.pos++],r|=(n&127)<<7,n<128)||(n=e[this.pos++],r|=(n&127)<<14,n<128)||(n=e[this.pos++],r|=(n&127)<<21,n<128)?r:(n=e[this.pos],r|=(n&15)<<28,Hs(r,t,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2===1?(t+1)/-2:t/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=Xs&&xi?la(this.buf,e,t):aa(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==D.Bytes)return t.push(this.readVarint(e));var r=ke(this);for(t=t||[];this.pos127;);else if(e===D.Bytes)this.pos=this.readVarint()+this.pos;else if(e===D.Fixed32)this.pos+=4;else if(e===D.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+e)},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e268435455||t<0){Ws(t,this);return}this.realloc(4),this.buf[this.pos++]=t&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=t>>>7&127)))},writeSVarint:function(t){this.writeVarint(t<0?-t*2-1:t*2)},writeBoolean:function(t){this.writeVarint(!!t)},writeString:function(t){t=String(t),this.realloc(t.length*4),this.pos++;var e=this.pos;this.pos=ua(this.buf,t,this.pos);var r=this.pos-e;r>=128&&In(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),Ft.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),Ft.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r=128&&In(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,D.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,Ys,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,Qs,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,ra,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,ea,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,ta,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,na,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,ia,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,oa,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,sa,e)},writeBytesField:function(t,e){this.writeTag(t,D.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,D.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,D.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,D.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,D.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,D.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,D.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,D.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,D.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,D.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,!!e)}};function Hs(t,e,r){var n=r.buf,i,o;if(o=n[r.pos++],i=(o&112)>>4,o<128||(o=n[r.pos++],i|=(o&127)<<3,o<128)||(o=n[r.pos++],i|=(o&127)<<10,o<128)||(o=n[r.pos++],i|=(o&127)<<17,o<128)||(o=n[r.pos++],i|=(o&127)<<24,o<128)||(o=n[r.pos++],i|=(o&1)<<31,o<128))return Ne(t,i,e);throw new Error("Expected varint not more than 10 bytes")}function ke(t){return t.type===D.Bytes?t.readVarint()+t.pos:t.pos+1}function Ne(t,e,r){return r?e*4294967296+(t>>>0):(e>>>0)*4294967296+(t>>>0)}function Ws(t,e){var r,n;if(t>=0?(r=t%4294967296|0,n=t/4294967296|0):(r=~(-t%4294967296),n=~(-t/4294967296),r^4294967295?r=r+1|0:(r=0,n=n+1|0)),t>=18446744073709552e3||t<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),Js(r,n,e),Ks(n,e)}function Js(t,e,r){r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos]=t&127}function Ks(t,e){var r=(t&7)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127)))))}function In(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));r.realloc(n);for(var i=r.pos-1;i>=t;i--)r.buf[i+n]=r.buf[i]}function Ys(t,e){for(var r=0;r>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function Mn(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function aa(t,e,r){for(var n="",i=e;i239?4:o>223?3:o>191?2:1;if(i+a>r)break;var l,u,c;a===1?o<128&&(s=o):a===2?(l=t[i+1],(l&192)===128&&(s=(o&31)<<6|l&63,s<=127&&(s=null))):a===3?(l=t[i+1],u=t[i+2],(l&192)===128&&(u&192)===128&&(s=(o&15)<<12|(l&63)<<6|u&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):a===4&&(l=t[i+1],u=t[i+2],c=t[i+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(s=(o&15)<<18|(l&63)<<12|(u&63)<<6|c&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,a=1):s>65535&&(s-=65536,n+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),n+=String.fromCharCode(s),i+=a}return n}function la(t,e,r){return xi.decode(t.subarray(e,r))}function ua(t,e,r){for(var n=0,i,o;n55295&&i<57344)if(o)if(i<56320){t[r++]=239,t[r++]=191,t[r++]=189,o=i;continue}else i=o-55296<<10|i-56320|65536,o=null;else{i>56319||n+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):o=i;continue}else o&&(t[r++]=239,t[r++]=191,t[r++]=189,o=null);i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:(i<65536?t[r++]=i>>12|224:(t[r++]=i>>18|240,t[r++]=i>>12&63|128),t[r++]=i>>6&63|128),t[r++]=i&63|128)}return r}const ca=uo(Zs);class pa extends fs{constructor(e){super(),e=e||{},this.dataProjection=new Uo({code:"",units:"tile-pixels"}),this.featureClass_=e.featureClass?e.featureClass:kr,this.geometryName_=e.geometryName,this.layerName_=e.layerName?e.layerName:"layer",this.layers_=e.layers?e.layers:null,this.idProperty_=e.idProperty,this.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"]}readRawGeometry_(e,r,n,i){e.pos=r.geometry;const o=e.readVarint()+e.pos;let s=1,a=0,l=0,u=0,c=0,p=0;for(;e.pos>3}if(a--,s===1||s===2)l+=e.readSVarint(),u+=e.readSVarint(),s===1&&c>p&&(i.push(c),p=c),n.push(l,u),c+=2;else if(s===7)c>p&&(n.push(n[p],n[p+1]),c+=2);else throw new Error("Invalid command found in the PBF")}c>p&&(i.push(c),p=c)}createFeature_(e,r,n){const i=r.type;if(i===0)return null;let o;const s=r.properties;let a;this.idProperty_?(a=s[this.idProperty_],delete s[this.idProperty_]):a=r.id,s[this.layerName_]=r.layer.name;const l=[],u=[];this.readRawGeometry_(e,r,l,u);const c=ya(i,u.length);if(this.featureClass_===kr)o=new this.featureClass_(c,l,u,s,a),o.transform(n.dataProjection);else{let p;if(c=="Polygon"){const h=Bo(l,u);p=h.length>1?new hs(l,"XY",h):new Zo(l,"XY",u)}else p=c==="Point"?new Xo(l,"XY"):c==="LineString"?new ms(l,"XY"):c==="MultiPoint"?new ys(l,"XY"):c==="MultiLineString"?new gs(l,"XY",u):null;const d=this.featureClass_;o=new d,this.geometryName_&&o.setGeometryName(this.geometryName_);const f=xs(p,!1,n);o.setGeometry(f),a!==void 0&&o.setId(a),o.setProperties(s,!0)}return o}getType(){return"arraybuffer"}readFeatures(e,r){const n=this.layers_;r=this.adaptOptions(r);const i=$e(r.dataProjection);i.setWorldExtent(r.extent),r.dataProjection=i;const o=new ca(e),s=o.readFields(da,{}),a=[];for(const l in s){if(n&&!n.includes(l))continue;const u=s[l],c=u?[0,0,u.extent,u.extent]:null;i.setExtent(c);for(let p=0,d=u.length;p>3,n=t===1?r.readString():t===2?r.readFloat():t===3?r.readDouble():t===4?r.readVarint64():t===5?r.readVarint():t===6?r.readSVarint():t===7?r.readBoolean():null;e.values.push(n)}}function ha(t,e,r){if(t==1)e.id=r.readVarint();else if(t==2){const n=r.readVarint()+r.pos;for(;r.pos255?255:t}function An(t){return t<0?0:t>1?1:t}function or(t){return t[t.length-1]==="%"?pt(parseFloat(t)/100*255):pt(parseInt(t))}function Et(t){return t[t.length-1]==="%"?An(parseFloat(t)/100):An(parseFloat(t))}function sr(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function xa(t){var e=t.replace(/ /g,"").toLowerCase();if(e in Pn)return Pn[e].slice();if(e[0]==="#"){if(e.length===4){var r=parseInt(e.substr(1),16);return r>=0&&r<=4095?[(r&3840)>>4|(r&3840)>>8,r&240|(r&240)>>4,r&15|(r&15)<<4,1]:null}else if(e.length===7){var r=parseInt(e.substr(1),16);return r>=0&&r<=16777215?[(r&16711680)>>16,(r&65280)>>8,r&255,1]:null}return null}var n=e.indexOf("("),i=e.indexOf(")");if(n!==-1&&i+1===e.length){var o=e.substr(0,n),s=e.substr(n+1,i-(n+1)).split(","),a=1;switch(o){case"rgba":if(s.length!==4)return null;a=Et(s.pop());case"rgb":return s.length!==3?null:[or(s[0]),or(s[1]),or(s[2]),a];case"hsla":if(s.length!==4)return null;a=Et(s.pop());case"hsl":if(s.length!==3)return null;var l=(parseFloat(s[0])%360+360)%360/360,u=Et(s[1]),c=Et(s[2]),p=c<=.5?c*(u+1):c+u-c*u,d=c*2-p;return[pt(sr(d,p,l+1/3)*255),pt(sr(d,p,l)*255),pt(sr(d,p,l-1/3)*255),a];default:return null}}return null}try{wi=ga.parseCSSColor=xa}catch{}class ae{constructor(e,r,n,i=1){this.r=e,this.g=r,this.b=n,this.a=i}static parse(e){if(!e)return;if(e instanceof ae)return e;if(typeof e!="string")return;const r=wi(e);if(r)return new ae(r[0]/255*r[3],r[1]/255*r[3],r[2]/255*r[3],r[3])}toString(){const[e,r,n,i]=this.toArray();return`rgba(${Math.round(e)},${Math.round(r)},${Math.round(n)},${i})`}toArray(){const{r:e,g:r,b:n,a:i}=this;return i===0?[0,0,0,0]:[e*255/i,r*255/i,n*255/i,i]}toArray01(){const{r:e,g:r,b:n,a:i}=this;return i===0?[0,0,0,0]:[e/i,r/i,n/i,i]}toArray01PremultipliedAlpha(){const{r:e,g:r,b:n,a:i}=this;return[e,r,n,i]}}ae.black=new ae(0,0,0,1);ae.white=new ae(1,1,1,1);ae.transparent=new ae(0,0,0,0);ae.red=new ae(1,0,0,1);ae.blue=new ae(0,0,1,1);var fe=ae;function mt(t){return typeof t=="object"?["literal",t]:t}function ba(t,e){let r=t.stops;if(!r)return va(t,e);const n=r&&typeof r[0][0]=="object",i=n||t.property!==void 0,o=n||!i;return r=r.map(s=>!i&&e.tokens&&typeof s[1]=="string"?[s[0],za(s[1])]:[s[0],mt(s[1])]),n?wa(t,e,r):o?ka(t,e,r):Fr(t,e,r)}function va(t,e){const r=["get",t.property];if(t.default===void 0)return e.type==="string"?["string",r]:r;if(e.type==="enum")return["match",r,Object.keys(e.values),r,t.default];{const n=[e.type==="color"?"to-color":e.type,r,mt(t.default)];return e.type==="array"&&n.splice(1,0,e.value,e.length||null),n}}function jr(t){switch(t.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function wa(t,e,r){const n={},i={},o=[];for(let a=0;a3&&e===t[t.length-2]||(n&&t.length===2||t.push(e),t.push(r))}function Or(t,e){return t.type?t.type:e.expression.interpolated?"exponential":"interval"}function za(t){const e=["concat"],r=/{([^{}]+)}/g;let n=0;for(let i=r.exec(t);i!==null;i=r.exec(t)){const o=t.slice(n,r.lastIndex-i[0].length);n=r.lastIndex,o.length>0&&e.push(o),e.push(["get",i[1]])}if(e.length===1)return t;if(n`:t.itemType.kind==="value"?"array":`array<${e}>`}else return t.kind}const Sa=[Zt,y,A,M,Fe,Ht,Je,me(P),xt];function yt(t,e){if(e.kind==="error")return null;if(t.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!yt(t.itemType,e.itemType))&&(typeof t.N!="number"||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(t.kind==="value"){for(const r of Sa)if(!yt(r,e))return null}}return`Expected ${V(t)} but found ${V(e)} instead.`}function Nr(t,e){return e.some(r=>r.kind===t.kind)}function gt(t,e){return e.some(r=>r==="null"?t===null:r==="array"?Array.isArray(t):r==="object"?t&&!Array.isArray(t)&&typeof t=="object":r===typeof t)}class Gr{constructor(e,r,n){e?this.sensitivity=r?"variant":"case":this.sensitivity=r?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,r){return this.collator.compare(e,r)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Cr{constructor(e,r,n,i,o){this.text=e.normalize?e.normalize():e,this.image=r,this.scale=n,this.fontStack=i,this.textColor=o}}class be{constructor(e){this.sections=e}static fromString(e){return new be([new Cr(e,null,null,null,null)])}isEmpty(){return this.sections.length===0?!0:!this.sections.some(e=>e.text.length!==0||e.image&&e.image.name.length!==0)}static factory(e){return e instanceof be?e:be.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const r of this.sections){if(r.image){e.push(["image",r.image.name]);continue}e.push(r.text);const n={};r.fontStack&&(n["text-font"]=["literal",r.fontStack.split(",")]),r.scale&&(n["font-scale"]=r.scale),r.textColor&&(n["text-color"]=["rgba"].concat(r.textColor.toArray())),e.push(n)}return e}}class Re{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new Re({name:e,available:!1}):null}serialize(){return["image",this.name]}}function Ti(t,e,r,n){return typeof t=="number"&&t>=0&&t<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof r=="number"&&r>=0&&r<=255?typeof n>"u"||typeof n=="number"&&n>=0&&n<=1?null:`Invalid rgba value [${[t,e,r,n].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof n=="number"?[t,e,r,n]:[t,e,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function jt(t){if(t===null)return!0;if(typeof t=="string")return!0;if(typeof t=="boolean")return!0;if(typeof t=="number")return!0;if(t instanceof fe)return!0;if(t instanceof Gr)return!0;if(t instanceof be)return!0;if(t instanceof Re)return!0;if(Array.isArray(t)){for(const e of t)if(!jt(e))return!1;return!0}else if(typeof t=="object"){for(const e in t)if(!jt(t[e]))return!1;return!0}else return!1}function K(t){if(t===null)return Zt;if(typeof t=="string")return A;if(typeof t=="boolean")return M;if(typeof t=="number")return y;if(t instanceof fe)return Fe;if(t instanceof Gr)return Xt;if(t instanceof be)return Ht;if(t instanceof Re)return xt;if(Array.isArray(t)){const e=t.length;let r;for(const n of t){const i=K(n);if(!r)r=i;else{if(r===i)continue;r=P;break}}return me(r||P,e)}else return Je}function dt(t){const e=typeof t;return t===null?"":e==="string"||e==="number"||e==="boolean"?String(t):t instanceof fe||t instanceof be||t instanceof Re?t.toString():JSON.stringify(t)}class Vr{constructor(e,r){this.type=e,this.value=r}static parse(e,r){if(e.length!==2)return r.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!jt(e[1]))return r.error("invalid value");const n=e[1];let i=K(n);const o=r.expectedType;return i.kind==="array"&&i.N===0&&o&&o.kind==="array"&&(typeof o.N!="number"||o.N===0)&&(i=o),new Vr(i,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof fe?["rgba"].concat(this.value.toArray()):this.value instanceof be?this.value.serialize():this.value}}var $t=Vr;class Ra{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}var ee=Ra;const ar={string:A,number:y,boolean:M,object:Je};class Ur{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let n=1,i;const o=e[0];if(o==="array"){let a;if(e.length>2){const u=e[1];if(typeof u!="string"||!(u in ar)||u==="object")return r.error('The item type argument of "array" must be one of string, number, boolean',1);a=ar[u],n++}else a=P;let l;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return r.error('The length argument to "array" must be a positive integer literal',2);l=e[2],n++}i=me(a,l)}else i=ar[o];const s=[];for(;ne.outputDefined())}serialize(){const e=this.type,r=[e.kind];if(e.kind==="array"){const n=e.itemType;if(n.kind==="string"||n.kind==="number"||n.kind==="boolean"){r.push(n.kind);const i=e.N;(typeof i=="number"||this.args.length>1)&&r.push(i)}}return r.concat(this.args.map(n=>n.serialize()))}}var ze=Ur;class Wt{constructor(e){this.type=Ht,this.sections=e}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");const n=e[1];if(!Array.isArray(n)&&typeof n=="object")return r.error("First argument must be an image or text section.");const i=[];let o=!1;for(let s=1;s<=e.length-1;++s){const a=e[s];if(o&&typeof a=="object"&&!Array.isArray(a)){o=!1;let l=null;if(a["font-scale"]&&(l=r.parse(a["font-scale"],1,y),!l))return null;let u=null;if(a["text-font"]&&(u=r.parse(a["text-font"],1,me(A)),!u))return null;let c=null;if(a["text-color"]&&(c=r.parse(a["text-color"],1,Fe),!c))return null;const p=i[i.length-1];p.scale=l,p.font=u,p.textColor=c}else{const l=r.parse(e[s],1,P);if(!l)return null;const u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");o=!0,i.push({content:l,scale:null,font:null,textColor:null})}}return new Wt(i)}evaluate(e){const r=n=>{const i=n.content.evaluate(e);return K(i)===xt?new Cr("",i,null,null,null):new Cr(dt(i),null,n.scale?n.scale.evaluate(e):null,n.font?n.font.evaluate(e).join(","):null,n.textColor?n.textColor.evaluate(e):null)};return new be(this.sections.map(r))}eachChild(e){for(const r of this.sections)e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const r of this.sections){e.push(r.content.serialize());const n={};r.scale&&(n["font-scale"]=r.scale.serialize()),r.font&&(n["text-font"]=r.font.serialize()),r.textColor&&(n["text-color"]=r.textColor.serialize()),e.push(n)}return e}}class Jt{constructor(e){this.type=xt,this.input=e}static parse(e,r){if(e.length!==2)return r.error("Expected two arguments.");const n=r.parse(e[1],1,A);return n?new Jt(n):r.error("No image name provided.")}evaluate(e){const r=this.input.evaluate(e),n=Re.fromString(r);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(r)>-1),n}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const _a={"to-boolean":M,"to-color":Fe,"to-number":y,"to-string":A};class Br{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");const n=e[0];if((n==="to-boolean"||n==="to-string")&&e.length!==2)return r.error("Expected one argument.");const i=_a[n],o=[];for(let s=1;s4?n=`Invalid rbga value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:n=Ti(r[0],r[1],r[2],r[3]),!n))return new fe(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new ee(n||`Could not parse color from value '${typeof r=="string"?r:String(JSON.stringify(r))}'`)}else if(this.type.kind==="number"){let r=null;for(const n of this.args){if(r=n.evaluate(e),r===null)return 0;const i=Number(r);if(!isNaN(i))return i}throw new ee(`Could not convert ${JSON.stringify(r)} to number.`)}else return this.type.kind==="formatted"?be.fromString(dt(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?Re.fromString(dt(this.args[0].evaluate(e))):dt(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if(this.type.kind==="formatted")return new Wt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new Jt(this.args[0]).serialize();const e=[`to-${this.type.kind}`];return this.eachChild(r=>{e.push(r.serialize())}),e}}var Xe=Br;const Ia=["Unknown","Point","LineString","Polygon"];class Ma{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Ia[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,r=this.featureDistanceData.scale,{x:n,y:i}=this.featureTileCoord,o=n*r-e[0],s=i*r-e[1],a=this.featureDistanceData.bearing[0],l=this.featureDistanceData.bearing[1];return a*o+l*s}return 0}parseColor(e){let r=this._parseColorCache[e];return r||(r=this._parseColorCache[e]=fe.parse(e)),r}}var ki=Ma;class He{constructor(e,r,n,i){this.name=e,this.type=r,this._evaluate=n,this.args=i}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,r){const n=e[0],i=He.definitions[n];if(!i)return r.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const o=Array.isArray(i)?i[0]:i.type,s=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,a=s.filter(([u])=>!Array.isArray(u)||u.length===e.length-1);let l=null;for(const[u,c]of a){l=new Si(r.registry,r.path,null,r.scope);const p=[];let d=!1;for(let f=1;fPa(d)).join(" | "),p=[];for(let d=1;d=e[2]||t[1]<=e[1]||t[3]>=e[3])}function Da(t,e){const r=Aa(t[0]),n=La(t[1]),i=Math.pow(2,e.z);return[Math.round(r*i*Se),Math.round(n*i*Se)]}function ja(t,e,r){const n=t[0]-e[0],i=t[1]-e[1],o=t[0]-r[0],s=t[1]-r[1];return n*s-o*i===0&&n*o<=0&&i*s<=0}function $a(t,e,r){return e[1]>t[1]!=r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function Xr(t,e){let r=!1;for(let n=0,i=e.length;n0&&p<0||c<0&&p>0}function Na(t,e,r,n){const i=[e[0]-t[0],e[1]-t[1]],o=[n[0]-r[0],n[1]-r[1]];return qa(o,i)===0?!1:!!(Dn(t,e,r,n)&&Dn(r,n,t,e))}function Ga(t,e,r){for(const n of r)for(let i=0;ir[2]){const i=n*.5;let o=t[0]-r[0]>i?-n:r[0]-t[0]>i?n:0;o===0&&(o=t[0]-r[2]>i?-n:r[2]-t[0]>i?n:0),t[0]+=o}Zr(e,t)}function Ua(t){t[0]=t[1]=1/0,t[2]=t[3]=-1/0}function jn(t,e,r,n){const i=Math.pow(2,n.z)*Se,o=[n.x*Se,n.y*Se],s=[];if(!t)return s;for(const a of t)for(const l of a){const u=[l.x+o[0],l.y+o[1]];Ci(u,e,r,i),s.push(u)}return s}function $n(t,e,r,n){const i=Math.pow(2,n.z)*Se,o=[n.x*Se,n.y*Se],s=[];if(!t)return s;for(const a of t){const l=[];for(const u of a){const c=[u.x+o[0],u.y+o[1]];Zr(e,c),l.push(c)}s.push(l)}if(e[2]-e[0]<=i/2){Ua(e);for(const a of s)for(const l of a)Ci(l,e,r,i)}return s}function Ba(t,e){const r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(!i)return!1;if(e.type==="Polygon"){const o=Hr(e.coordinates,n,i),s=jn(t.geometry(),r,n,i);if(!Ot(r,n))return!1;for(const a of s)if(!Xr(a,o))return!1}if(e.type==="MultiPolygon"){const o=Fi(e.coordinates,n,i),s=jn(t.geometry(),r,n,i);if(!Ot(r,n))return!1;for(const a of s)if(!Oa(a,o))return!1}return!0}function Za(t,e){const r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(!i)return!1;if(e.type==="Polygon"){const o=Hr(e.coordinates,n,i),s=$n(t.geometry(),r,n,i);if(!Ot(r,n))return!1;for(const a of s)if(!zi(a,o))return!1}if(e.type==="MultiPolygon"){const o=Fi(e.coordinates,n,i),s=$n(t.geometry(),r,n,i);if(!Ot(r,n))return!1;for(const a of s)if(!Va(a,o))return!1}return!0}class ft{constructor(e,r){this.type=M,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(jt(e[1])){const n=e[1];if(n.type==="FeatureCollection")for(let i=0;i{e&&!Yt(r)&&(e=!1)}),e}function Jr(t){if(t instanceof et&&t.name==="feature-state")return!1;let e=!0;return t.eachChild(r=>{e&&!Jr(r)&&(e=!1)}),e}function Kr(t,e){if(t instanceof et&&e.indexOf(t.name)>=0)return!1;let r=!0;return t.eachChild(n=>{r&&!Kr(n,e)&&(r=!1)}),r}class Yr{constructor(e,r){this.type=r.type,this.name=e,this.boundExpression=r}static parse(e,r){if(e.length!==2||typeof e[1]!="string")return r.error("'var' expression requires exactly one string literal argument.");const n=e[1];return r.scope.has(n)?new Yr(n,r.scope.get(n)):r.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Ei=Yr;class Qr{constructor(e,r=[],n,i=new Ca,o=[]){this.registry=e,this.path=r,this.key=r.map(s=>`[${s}]`).join(""),this.scope=i,this.errors=o,this.expectedType=n}parse(e,r,n,i,o={}){return r?this.concat(r,n,i)._parse(e,o):this._parse(e,o)}_parse(e,r){(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number")&&(e=["literal",e]);function n(i,o,s){return s==="assert"?new ze(o,[i]):s==="coerce"?new Xe(o,[i]):i}if(Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const i=e[0];if(typeof i!="string")return this.error(`Expression name must be a string, but found ${typeof i} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const o=this.registry[i];if(o){let s=o.parse(e,this);if(!s)return null;if(this.expectedType){const a=this.expectedType,l=s.type;if((a.kind==="string"||a.kind==="number"||a.kind==="boolean"||a.kind==="object"||a.kind==="array")&&l.kind==="value")s=n(s,a,r.typeAnnotation||"assert");else if((a.kind==="color"||a.kind==="formatted"||a.kind==="resolvedImage")&&(l.kind==="value"||l.kind==="string"))s=n(s,a,r.typeAnnotation||"coerce");else if(this.checkSubtype(a,l))return null}if(!(s instanceof $t)&&s.type.kind!=="resolvedImage"&&Er(s)){const a=new ki;try{s=new $t(s.type,s.evaluate(a))}catch(l){return this.error(l.message),null}}return s}return this.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0)}else return typeof e>"u"?this.error("'undefined' value invalid. Use null instead."):typeof e=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof e} instead.`)}concat(e,r,n){const i=typeof e=="number"?this.path.concat(e):this.path,o=n?this.scope.concat(n):this.scope;return new Qr(this.registry,i,r||null,o,this.errors)}error(e,...r){const n=`${this.key}${r.map(i=>`[${i}]`).join("")}`;this.errors.push(new xe(n,e))}checkSubtype(e,r){const n=yt(e,r);return n&&this.error(n),n}}var Si=Qr;function Er(t){if(t instanceof Ei)return Er(t.boundExpression);if(t instanceof et&&t.name==="error")return!1;if(t instanceof Kt)return!1;if(t instanceof Wr)return!1;const e=t instanceof Xe||t instanceof ze;let r=!0;return t.eachChild(n=>{e?r=r&&Er(n):r=r&&n instanceof $t}),r?Yt(t)&&Kr(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"]):!1}function Ri(t,e){const r=t.length-1;let n=0,i=r,o=0,s,a;for(;n<=i;)if(o=Math.floor((n+i)/2),s=t[o],a=t[o+1],s<=e){if(o===r||ee)i=o-1;else throw new ee("Input is not a number.");return 0}class en{constructor(e,r,n){this.type=e,this.input=r,this.labels=[],this.outputs=[];for(const[i,o]of n)this.labels.push(i),this.outputs.push(o)}static parse(e,r){if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!==0)return r.error("Expected an even number of arguments.");const n=r.parse(e[1],1,y);if(!n)return null;const i=[];let o=null;r.expectedType&&r.expectedType.kind!=="value"&&(o=r.expectedType);for(let s=1;s=a)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);const p=r.parse(l,c,o);if(!p)return null;o=o||p.type,i.push([a,p])}return new en(o,n,i)}evaluate(e){const r=this.labels,n=this.outputs;if(r.length===1)return n[0].evaluate(e);const i=this.input.evaluate(e);if(i<=r[0])return n[0].evaluate(e);const o=r.length;if(i>=r[o-1])return n[o-1].evaluate(e);const s=Ri(r,i);return n[s].evaluate(e)}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let r=0;r0&&e.push(this.labels[r]),e.push(this.outputs[r].serialize());return e}}var _i=en,Xa=tt;function tt(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}tt.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t};tt.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t};tt.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx};tt.prototype.solveCurveX=function(t,e){typeof e>"u"&&(e=1e-6);var r,n,i,o,s;for(i=t,s=0;s<8;s++){if(o=this.sampleCurveX(i)-t,Math.abs(o)n)return n;for(;ro?r=i:n=i,i=(n-r)*.5+r}return i};tt.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var Ha=vi(Xa);function de(t,e,r){return t*(1-r)+e*r}function Wa(t,e,r){return new fe(de(t.r,e.r,r),de(t.g,e.g,r),de(t.b,e.b,r),de(t.a,e.a,r))}function Ja(t,e,r){return t.map((n,i)=>de(n,e[i],r))}var Ka=Object.freeze({__proto__:null,number:de,color:Wa,array:Ja});const Ii=.95047,Mi=1,Pi=1.08883,Ai=4/29,Ke=6/29,Li=3*Ke*Ke,Ya=Ke*Ke*Ke,Qa=Math.PI/180,el=180/Math.PI;function lr(t){return t>Ya?Math.pow(t,1/3):t/Li+Ai}function ur(t){return t>Ke?t*t*t:Li*(t-Ai)}function cr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function pr(t){return t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Di(t){const e=pr(t.r),r=pr(t.g),n=pr(t.b),i=lr((.4124564*e+.3575761*r+.1804375*n)/Ii),o=lr((.2126729*e+.7151522*r+.072175*n)/Mi),s=lr((.0193339*e+.119192*r+.9503041*n)/Pi);return{l:116*o-16,a:500*(i-o),b:200*(o-s),alpha:t.a}}function ji(t){let e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=Mi*ur(e),r=Ii*ur(r),n=Pi*ur(n),new fe(cr(3.2404542*r-1.5371385*e-.4985314*n),cr(-.969266*r+1.8760108*e+.041556*n),cr(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function tl(t,e,r){return{l:de(t.l,e.l,r),a:de(t.a,e.a,r),b:de(t.b,e.b,r),alpha:de(t.alpha,e.alpha,r)}}function rl(t){const{l:e,a:r,b:n}=Di(t),i=Math.atan2(n,r)*el;return{h:i<0?i+360:i,c:Math.sqrt(r*r+n*n),l:e,alpha:t.a}}function nl(t){const e=t.h*Qa,r=t.c,n=t.l;return ji({l:n,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})}function il(t,e,r){const n=e-t;return t+r*(n>180||n<-180?n-360*Math.round(n/360):n)}function ol(t,e,r){return{h:il(t.h,e.h,r),c:de(t.c,e.c,r),l:de(t.l,e.l,r),alpha:de(t.alpha,e.alpha,r)}}const St={forward:Di,reverse:ji,interpolate:tl},Rt={forward:rl,reverse:nl,interpolate:ol};class qt{constructor(e,r,n,i,o){this.type=e,this.operator=r,this.interpolation=n,this.input=i,this.labels=[],this.outputs=[];for(const[s,a]of o)this.labels.push(s),this.outputs.push(a)}static interpolationFactor(e,r,n,i){let o=0;if(e.name==="exponential")o=dr(r,e.base,n,i);else if(e.name==="linear")o=dr(r,1,n,i);else if(e.name==="cubic-bezier"){const s=e.controlPoints;o=new Ha(s[0],s[1],s[2],s[3]).solve(dr(r,1,n,i))}return o}static parse(e,r){let[n,i,o,...s]=e;if(!Array.isArray(i)||i.length===0)return r.error("Expected an interpolation type expression.",1);if(i[0]==="linear")i={name:"linear"};else if(i[0]==="exponential"){const u=i[1];if(typeof u!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);i={name:"exponential",base:u}}else if(i[0]==="cubic-bezier"){const u=i.slice(1);if(u.length!==4||u.some(c=>typeof c!="number"||c<0||c>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);i={name:"cubic-bezier",controlPoints:u}}else return r.error(`Unknown interpolation type ${String(i[0])}`,1,0);if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!==0)return r.error("Expected an even number of arguments.");if(o=r.parse(o,2,y),!o)return null;const a=[];let l=null;n==="interpolate-hcl"||n==="interpolate-lab"?l=Fe:r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);for(let u=0;u=c)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);const h=r.parse(p,f,l);if(!h)return null;l=l||h.type,a.push([c,h])}return l.kind!=="number"&&l.kind!=="color"&&!(l.kind==="array"&&l.itemType.kind==="number"&&typeof l.N=="number")?r.error(`Type ${V(l)} is not interpolatable.`):new qt(l,n,i,o,a)}evaluate(e){const r=this.labels,n=this.outputs;if(r.length===1)return n[0].evaluate(e);const i=this.input.evaluate(e);if(i<=r[0])return n[0].evaluate(e);const o=r.length;if(i>=r[o-1])return n[o-1].evaluate(e);const s=Ri(r,i),a=r[s],l=r[s+1],u=qt.interpolationFactor(this.interpolation,i,a,l),c=n[s].evaluate(e),p=n[s+1].evaluate(e);return this.operator==="interpolate"?Ka[this.type.kind.toLowerCase()](c,p,u):this.operator==="interpolate-hcl"?Rt.reverse(Rt.interpolate(Rt.forward(c),Rt.forward(p),u)):St.reverse(St.interpolate(St.forward(c),St.forward(p),u))}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;this.interpolation.name==="linear"?e=["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?e=["linear"]:e=["exponential",this.interpolation.base]:e=["cubic-bezier"].concat(this.interpolation.controlPoints);const r=[this.operator,e,this.input.serialize()];for(let n=0;nyt(i,a.type))?new Nt(P,o):new Nt(n,o)}evaluate(e){let r=null,n=0,i;for(const o of this.args){if(n++,r=o.evaluate(e),r&&r instanceof Re&&!r.available&&(i||(i=r),r=null,n===this.args.length))return i;if(r!==null)break}return r}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(r=>{e.push(r.serialize())}),e}}var $i=Nt;class tn{constructor(e,r){this.type=r.type,this.bindings=[].concat(e),this.result=r}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const r of this.bindings)e(r[1]);e(this.result)}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const n=[];for(let o=1;o=n.length)throw new ee(`Array index out of bounds: ${r} > ${n.length-1}.`);if(r!==Math.floor(r))throw new ee(`Array index must be an integer, but found ${r} instead.`);return n[r]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var sl=rn;class nn{constructor(e,r){this.type=M,this.needle=e,this.haystack=r}static parse(e,r){if(e.length!==3)return r.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=r.parse(e[1],1,P),i=r.parse(e[2],2,P);return!n||!i?null:Nr(n.type,[M,A,y,Zt,P])?new nn(n,i):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${V(n.type)} instead`)}evaluate(e){const r=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(n==null)return!1;if(!gt(r,["boolean","string","number","null"]))throw new ee(`Expected first argument to be of type boolean, string, number or null, but found ${V(K(r))} instead.`);if(!gt(n,["string","array"]))throw new ee(`Expected second argument to be of type array or string, but found ${V(K(n))} instead.`);return n.indexOf(r)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var al=nn;class Gt{constructor(e,r,n){this.type=y,this.needle=e,this.haystack=r,this.fromIndex=n}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=r.parse(e[1],1,P),i=r.parse(e[2],2,P);if(!n||!i)return null;if(!Nr(n.type,[M,A,y,Zt,P]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${V(n.type)} instead`);if(e.length===4){const o=r.parse(e[3],3,y);return o?new Gt(n,i,o):null}else return new Gt(n,i)}evaluate(e){const r=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!gt(r,["boolean","string","number","null"]))throw new ee(`Expected first argument to be of type boolean, string, number or null, but found ${V(K(r))} instead.`);if(!gt(n,["string","array"]))throw new ee(`Expected second argument to be of type array or string, but found ${V(K(n))} instead.`);if(this.fromIndex){const i=this.fromIndex.evaluate(e);return n.indexOf(r,i)}return n.indexOf(r)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var ll=Gt;class on{constructor(e,r,n,i,o,s){this.inputType=e,this.type=r,this.input=n,this.cases=i,this.outputs=o,this.otherwise=s}static parse(e,r){if(e.length<5)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!==1)return r.error("Expected an even number of arguments.");let n,i;r.expectedType&&r.expectedType.kind!=="value"&&(i=r.expectedType);const o={},s=[];for(let u=2;uNumber.MAX_SAFE_INTEGER)return d.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof h=="number"&&Math.floor(h)!==h)return d.error("Numeric branch labels must be integer values.");if(!n)n=K(h);else if(d.checkSubtype(n,K(h)))return null;if(typeof o[String(h)]<"u")return d.error("Branch labels must be unique.");o[String(h)]=s.length}const f=r.parse(p,u,i);if(!f)return null;i=i||f.type,s.push(f)}const a=r.parse(e[1],1,P);if(!a)return null;const l=r.parse(e[e.length-1],e.length-1,i);return!l||a.type.kind!=="value"&&r.concat(1).checkSubtype(n,a.type)?null:new on(n,i,a,o,s,l)}evaluate(e){const r=this.input.evaluate(e);return(K(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],r=Object.keys(this.cases).sort(),n=[],i={};for(const s of r){const a=i[this.cases[s]];a===void 0?(i[this.cases[s]]=n.length,n.push([this.cases[s],[s]])):n[a][1].push(s)}const o=s=>this.inputType.kind==="number"?Number(s):s;for(const[s,a]of n)a.length===1?e.push(o(a[0])):e.push(a.map(o)),e.push(this.outputs[s].serialize());return e.push(this.otherwise.serialize()),e}}var ul=on;class sn{constructor(e,r,n){this.type=e,this.branches=r,this.otherwise=n}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!==0)return r.error("Expected an odd number of arguments.");let n;r.expectedType&&r.expectedType.kind!=="value"&&(n=r.expectedType);const i=[];for(let s=1;sr.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(r=>{e.push(r.serialize())}),e}}var cl=sn;class Vt{constructor(e,r,n,i){this.type=e,this.input=r,this.beginIndex=n,this.endIndex=i}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=r.parse(e[1],1,P),i=r.parse(e[2],2,y);if(!n||!i)return null;if(!Nr(n.type,[me(P),A,P]))return r.error(`Expected first argument to be of type array or string, but found ${V(n.type)} instead`);if(e.length===4){const o=r.parse(e[3],3,y);return o?new Vt(n.type,n,i,o):null}else return new Vt(n.type,n,i)}evaluate(e){const r=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!gt(r,["string","array"]))throw new ee(`Expected first argument to be of type array or string, but found ${V(K(r))} instead.`);if(this.endIndex){const i=this.endIndex.evaluate(e);return r.slice(n,i)}return r.slice(n)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var pl=Vt;function On(t,e){return t==="=="||t==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function dl(t,e,r){return e===r}function fl(t,e,r){return e!==r}function hl(t,e,r){return er}function yl(t,e,r){return e<=r}function gl(t,e,r){return e>=r}function qi(t,e,r,n){return n.compare(e,r)===0}function xl(t,e,r,n){return!qi(t,e,r,n)}function bl(t,e,r,n){return n.compare(e,r)<0}function vl(t,e,r,n){return n.compare(e,r)>0}function wl(t,e,r,n){return n.compare(e,r)<=0}function Tl(t,e,r,n){return n.compare(e,r)>=0}function rt(t,e,r){const n=t!=="=="&&t!=="!=";return class Ni{constructor(o,s,a){this.type=M,this.lhs=o,this.rhs=s,this.collator=a,this.hasUntypedArgument=o.type.kind==="value"||s.type.kind==="value"}static parse(o,s){if(o.length!==3&&o.length!==4)return s.error("Expected two or three arguments.");const a=o[0];let l=s.parse(o[1],1,P);if(!l)return null;if(!On(a,l.type))return s.concat(1).error(`"${a}" comparisons are not supported for type '${V(l.type)}'.`);let u=s.parse(o[2],2,P);if(!u)return null;if(!On(a,u.type))return s.concat(2).error(`"${a}" comparisons are not supported for type '${V(u.type)}'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return s.error(`Cannot compare types '${V(l.type)}' and '${V(u.type)}'.`);n&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new ze(u.type,[l]):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new ze(l.type,[u])));let c=null;if(o.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return s.error("Cannot use collator to compare non-string types.");if(c=s.parse(o[3],3,Xt),!c)return null}return new Ni(l,u,c)}evaluate(o){const s=this.lhs.evaluate(o),a=this.rhs.evaluate(o);if(n&&this.hasUntypedArgument){const l=K(s),u=K(a);if(l.kind!==u.kind||!(l.kind==="string"||l.kind==="number"))throw new ee(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`)}if(this.collator&&!n&&this.hasUntypedArgument){const l=K(s),u=K(a);if(l.kind!=="string"||u.kind!=="string")return e(o,s,a)}return this.collator?r(o,s,a,this.collator.evaluate(o)):e(o,s,a)}eachChild(o){o(this.lhs),o(this.rhs),this.collator&&o(this.collator)}outputDefined(){return!0}serialize(){const o=[t];return this.eachChild(s=>{o.push(s.serialize())}),o}}}const kl=rt("==",dl,qi),zl=rt("!=",fl,xl),Fl=rt("<",hl,bl),Cl=rt(">",ml,vl),El=rt("<=",yl,wl),Sl=rt(">=",gl,Tl);class an{constructor(e,r,n,i,o,s){this.type=A,this.number=e,this.locale=r,this.currency=n,this.unit=i,this.minFractionDigits=o,this.maxFractionDigits=s}static parse(e,r){if(e.length!==3)return r.error("Expected two arguments.");const n=r.parse(e[1],1,y);if(!n)return null;const i=e[2];if(typeof i!="object"||Array.isArray(i))return r.error("NumberFormat options argument must be an object.");let o=null;if(i.locale&&(o=r.parse(i.locale,1,A),!o))return null;let s=null;if(i.currency&&(s=r.parse(i.currency,1,A),!s))return null;let a=null;if(i.unit&&(a=r.parse(i.unit,1,A),!a))return null;let l=null;if(i["min-fraction-digits"]&&(l=r.parse(i["min-fraction-digits"],1,y),!l))return null;let u=null;return i["max-fraction-digits"]&&(u=r.parse(i["max-fraction-digits"],1,y),!u)?null:new an(n,o,s,a,l,u)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency&&"currency"||this.unit&&"unit"||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class ln{constructor(e){this.type=y,this.input=e}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);const n=r.parse(e[1],1);return n?n.type.kind!=="array"&&n.type.kind!=="string"&&n.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${V(n.type)} instead.`):new ln(n):null}evaluate(e){const r=this.input.evaluate(e);if(typeof r=="string")return r.length;if(Array.isArray(r))return r.length;throw new ee(`Expected value to be of type string or array, but found ${V(K(r))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(r=>{e.push(r.serialize())}),e}}var Rl=ln;const Gi={"==":kl,"!=":zl,">":Cl,"<":Fl,">=":Sl,"<=":El,array:ze,at:sl,boolean:ze,case:cl,coalesce:$i,collator:Kt,format:Wt,image:Jt,in:al,"index-of":ll,interpolate:je,"interpolate-hcl":je,"interpolate-lab":je,length:Rl,let:Oi,literal:$t,match:ul,number:ze,"number-format":an,object:ze,slice:pl,step:_i,string:ze,"to-boolean":Xe,"to-color":Xe,"to-number":Xe,"to-string":Xe,var:Ei,within:Wr};function qn(t,[e,r,n,i]){e=e.evaluate(t),r=r.evaluate(t),n=n.evaluate(t);const o=i?i.evaluate(t):1,s=Ti(e,r,n,o);if(s)throw new ee(s);return new fe(e/255*o,r/255*o,n/255*o,o)}function Nn(t,e){return t in e}function fr(t,e){const r=e[t];return typeof r>"u"?null:r}function _l(t,e,r,n){for(;r<=n;){const i=r+n>>1;if(e[i]===t)return!0;e[i]>t?n=i-1:r=i+1}return!1}function Pe(t){return{type:t}}et.register(Gi,{error:[Ea,[A],(t,[e])=>{throw new ee(e.evaluate(t))}],typeof:[A,[P],(t,[e])=>V(K(e.evaluate(t)))],"to-rgba":[me(y,4),[Fe],(t,[e])=>e.evaluate(t).toArray()],rgb:[Fe,[y,y,y],qn],rgba:[Fe,[y,y,y,y],qn],has:{type:M,overloads:[[[A],(t,[e])=>Nn(e.evaluate(t),t.properties())],[[A,Je],(t,[e,r])=>Nn(e.evaluate(t),r.evaluate(t))]]},get:{type:P,overloads:[[[A],(t,[e])=>fr(e.evaluate(t),t.properties())],[[A,Je],(t,[e,r])=>fr(e.evaluate(t),r.evaluate(t))]]},"feature-state":[P,[A],(t,[e])=>fr(e.evaluate(t),t.featureState||{})],properties:[Je,[],t=>t.properties()],"geometry-type":[A,[],t=>t.geometryType()],id:[P,[],t=>t.id()],zoom:[y,[],t=>t.globals.zoom],pitch:[y,[],t=>t.globals.pitch||0],"distance-from-center":[y,[],t=>t.distanceFromCenter()],"heatmap-density":[y,[],t=>t.globals.heatmapDensity||0],"line-progress":[y,[],t=>t.globals.lineProgress||0],"sky-radial-progress":[y,[],t=>t.globals.skyRadialProgress||0],accumulated:[P,[],t=>t.globals.accumulated===void 0?null:t.globals.accumulated],"+":[y,Pe(y),(t,e)=>{let r=0;for(const n of e)r+=n.evaluate(t);return r}],"*":[y,Pe(y),(t,e)=>{let r=1;for(const n of e)r*=n.evaluate(t);return r}],"-":{type:y,overloads:[[[y,y],(t,[e,r])=>e.evaluate(t)-r.evaluate(t)],[[y],(t,[e])=>-e.evaluate(t)]]},"/":[y,[y,y],(t,[e,r])=>e.evaluate(t)/r.evaluate(t)],"%":[y,[y,y],(t,[e,r])=>e.evaluate(t)%r.evaluate(t)],ln2:[y,[],()=>Math.LN2],pi:[y,[],()=>Math.PI],e:[y,[],()=>Math.E],"^":[y,[y,y],(t,[e,r])=>Math.pow(e.evaluate(t),r.evaluate(t))],sqrt:[y,[y],(t,[e])=>Math.sqrt(e.evaluate(t))],log10:[y,[y],(t,[e])=>Math.log(e.evaluate(t))/Math.LN10],ln:[y,[y],(t,[e])=>Math.log(e.evaluate(t))],log2:[y,[y],(t,[e])=>Math.log(e.evaluate(t))/Math.LN2],sin:[y,[y],(t,[e])=>Math.sin(e.evaluate(t))],cos:[y,[y],(t,[e])=>Math.cos(e.evaluate(t))],tan:[y,[y],(t,[e])=>Math.tan(e.evaluate(t))],asin:[y,[y],(t,[e])=>Math.asin(e.evaluate(t))],acos:[y,[y],(t,[e])=>Math.acos(e.evaluate(t))],atan:[y,[y],(t,[e])=>Math.atan(e.evaluate(t))],min:[y,Pe(y),(t,e)=>Math.min(...e.map(r=>r.evaluate(t)))],max:[y,Pe(y),(t,e)=>Math.max(...e.map(r=>r.evaluate(t)))],abs:[y,[y],(t,[e])=>Math.abs(e.evaluate(t))],round:[y,[y],(t,[e])=>{const r=e.evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[y,[y],(t,[e])=>Math.floor(e.evaluate(t))],ceil:[y,[y],(t,[e])=>Math.ceil(e.evaluate(t))],"filter-==":[M,[A,P],(t,[e,r])=>t.properties()[e.value]===r.value],"filter-id-==":[M,[P],(t,[e])=>t.id()===e.value],"filter-type-==":[M,[A],(t,[e])=>t.geometryType()===e.value],"filter-<":[M,[A,P],(t,[e,r])=>{const n=t.properties()[e.value],i=r.value;return typeof n==typeof i&&n{const r=t.id(),n=e.value;return typeof r==typeof n&&r":[M,[A,P],(t,[e,r])=>{const n=t.properties()[e.value],i=r.value;return typeof n==typeof i&&n>i}],"filter-id->":[M,[P],(t,[e])=>{const r=t.id(),n=e.value;return typeof r==typeof n&&r>n}],"filter-<=":[M,[A,P],(t,[e,r])=>{const n=t.properties()[e.value],i=r.value;return typeof n==typeof i&&n<=i}],"filter-id-<=":[M,[P],(t,[e])=>{const r=t.id(),n=e.value;return typeof r==typeof n&&r<=n}],"filter->=":[M,[A,P],(t,[e,r])=>{const n=t.properties()[e.value],i=r.value;return typeof n==typeof i&&n>=i}],"filter-id->=":[M,[P],(t,[e])=>{const r=t.id(),n=e.value;return typeof r==typeof n&&r>=n}],"filter-has":[M,[P],(t,[e])=>e.value in t.properties()],"filter-has-id":[M,[],t=>t.id()!==null&&t.id()!==void 0],"filter-type-in":[M,[me(A)],(t,[e])=>e.value.indexOf(t.geometryType())>=0],"filter-id-in":[M,[me(P)],(t,[e])=>e.value.indexOf(t.id())>=0],"filter-in-small":[M,[A,me(P)],(t,[e,r])=>r.value.indexOf(t.properties()[e.value])>=0],"filter-in-large":[M,[A,me(P)],(t,[e,r])=>_l(t.properties()[e.value],r.value,0,r.value.length-1)],all:{type:M,overloads:[[[M,M],(t,[e,r])=>e.evaluate(t)&&r.evaluate(t)],[Pe(M),(t,e)=>{for(const r of e)if(!r.evaluate(t))return!1;return!0}]]},any:{type:M,overloads:[[[M,M],(t,[e,r])=>e.evaluate(t)||r.evaluate(t)],[Pe(M),(t,e)=>{for(const r of e)if(r.evaluate(t))return!0;return!1}]]},"!":[M,[M],(t,[e])=>!e.evaluate(t)],"is-supported-script":[M,[A],(t,[e])=>{const r=t.globals&&t.globals.isSupportedScript;return r?r(e.evaluate(t)):!0}],upcase:[A,[A],(t,[e])=>e.evaluate(t).toUpperCase()],downcase:[A,[A],(t,[e])=>e.evaluate(t).toLowerCase()],concat:[A,Pe(P),(t,e)=>e.map(r=>dt(r.evaluate(t))).join("")],"resolved-locale":[A,[Xt],(t,[e])=>e.evaluate(t).resolvedLocale()]});var Vi=Gi;function Sr(t){return{result:"success",value:t}}function Be(t){return{result:"error",value:t}}function Il(t){return t["property-type"]==="data-driven"}function Ml(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Pl(t){return!!t.expression&&t.expression.interpolated}function Ui(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}class Al{constructor(e,r){this.expression=e,this._warningHistory={},this._evaluator=new ki,this._defaultValue=r?$l(r):null,this._enumValues=r&&r.type==="enum"?r.values:null}evaluateWithoutErrorHandling(e,r,n,i,o,s,a,l){return this._evaluator.globals=e,this._evaluator.feature=r,this._evaluator.featureState=n,this._evaluator.canonical=i||null,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=s,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=l||null,this.expression.evaluate(this._evaluator)}evaluate(e,r,n,i,o,s,a,l){this._evaluator.globals=e,this._evaluator.feature=r||null,this._evaluator.featureState=n||null,this._evaluator.canonical=i||null,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=s||null,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=l||null;try{const u=this.expression.evaluate(this._evaluator);if(u==null||typeof u=="number"&&u!==u)return this._defaultValue;if(this._enumValues&&!(u in this._enumValues))throw new ee(`Expected value to be one of ${Object.keys(this._enumValues).map(c=>JSON.stringify(c)).join(", ")}, but found ${JSON.stringify(u)} instead.`);return u}catch(u){return this._warningHistory[u.message]||(this._warningHistory[u.message]=!0,typeof console<"u"&&console.warn(u.message)),this._defaultValue}}}function Ll(t){return Array.isArray(t)&&t.length>0&&typeof t[0]=="string"&&t[0]in Vi}function Rr(t,e){const r=new Si(Vi,[],e?jl(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return n?Sr(new Al(n,e)):Be(r.errors)}class Gn{constructor(e,r){this.kind=e,this._styleExpression=r,this.isStateDependent=e!=="constant"&&!Jr(r.expression)}evaluateWithoutErrorHandling(e,r,n,i,o,s){return this._styleExpression.evaluateWithoutErrorHandling(e,r,n,i,o,s)}evaluate(e,r,n,i,o,s){return this._styleExpression.evaluate(e,r,n,i,o,s)}}class Vn{constructor(e,r,n,i){this.kind=e,this.zoomStops=n,this._styleExpression=r,this.isStateDependent=e!=="camera"&&!Jr(r.expression),this.interpolationType=i}evaluateWithoutErrorHandling(e,r,n,i,o,s){return this._styleExpression.evaluateWithoutErrorHandling(e,r,n,i,o,s)}evaluate(e,r,n,i,o,s){return this._styleExpression.evaluate(e,r,n,i,o,s)}interpolationFactor(e,r,n){return this.interpolationType?je.interpolationFactor(this.interpolationType,e,r,n):0}}function Dl(t,e){if(t=Rr(t,e),t.result==="error")return t;const r=t.value.expression,n=Yt(r);if(!n&&!Il(e))return Be([new xe("","data expressions not supported")]);const i=Kr(r,["zoom","pitch","distance-from-center"]);if(!i&&!Ml(e))return Be([new xe("","zoom expressions not supported")]);const o=Lt(r);if(!o&&!i)return Be([new xe("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof xe)return Be([o]);if(o instanceof je&&!Pl(e))return Be([new xe("",'"interpolate" expressions cannot be used with this property')]);if(!o)return Sr(n?new Gn("constant",t.value):new Gn("source",t.value));const s=o instanceof je?o.interpolation:void 0;return Sr(n?new Vn("camera",t.value,o.labels,s):new Vn("composite",t.value,o.labels,s))}function Lt(t){let e=null;if(t instanceof Oi)e=Lt(t.result);else if(t instanceof $i){for(const r of t.args)if(e=Lt(r),e)break}else(t instanceof _i||t instanceof je)&&t.input instanceof et&&t.input.name==="zoom"&&(e=t);return e instanceof xe||t.eachChild(r=>{const n=Lt(r);n instanceof xe?e=n:!e&&n?e=new xe("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&n&&e!==n&&(e=new xe("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}function jl(t){const e={color:Fe,string:A,number:y,enum:A,boolean:M,formatted:Ht,resolvedImage:xt};return t.type==="array"?me(e[t.value]||P,t.length):e[t.type]}function $l(t){return t.type==="color"&&(Ui(t.default)||Array.isArray(t.default))?new fe(0,0,0,0):t.type==="color"?fe.parse(t.default)||null:t.default===void 0?null:t.default}function Ol(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function _r(t){if(Array.isArray(t))return t.map(_r);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){const e={};for(const r in t)e[r]=_r(t[r]);return e}return Ol(t)}var Bi={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},fog:{type:"fog"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},projection:{type:"projection"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{},sky:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"},"fill-extrusion-edge-radius":{type:"number",private:!0,default:0,minimum:0,maximum:1,"property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_symbol:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature","pitch","distance-from-center"]}},filter_fill:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_line:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_circle:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},"filter_fill-extrusion":{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_heatmap:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Camera"},pitch:{group:"Camera"},"distance-from-center":{group:"Camera"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"sky-radial-progress":{group:"sky"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"high-color":{type:"color","property-type":"data-constant",default:"#245cdf",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"space-color":{type:"color","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,.2,7,.1],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"star-intensity":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],5,.35,6,0],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},projection:{name:{type:"enum",values:{albers:{},equalEarth:{},equirectangular:{},lambertConformalConic:{},mercator:{},naturalEarth:{},winkelTripel:{},globe:{}},default:"mercator",required:!0},center:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-180,-90],maximum:[180,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-90,-90],maximum:[90,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["source"]}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant",type:"number",private:!0,default:0,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant",type:"number",private:!0,default:3,minimum:0,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["fill-extrusion-edge-radius"]}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!1,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{type:"array",value:"number",length:2,default:[0,0],minimum:[0,0],maximum:[1,1],transition:!1,requires:[{source:"geojson",has:{lineMetrics:!0}}],"property-type":"constant"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};function Zi(t){if(t===!0||t===!1)return!0;if(!Array.isArray(t)||t.length===0)return!1;switch(t[0]){case"has":return t.length>=2&&t[1]!=="$id"&&t[1]!=="$type";case"in":return t.length>=3&&(typeof t[1]!="string"||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return t.length!==3||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(const e of t.slice(1))if(!Zi(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}function ql(t,e="fill"){if(t==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};Zi(t)||(t=Ut(t));const r=t;let n=!0;try{n=Nl(r)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate. This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md and paste the contents of this message in the report. Thank you! Filter Expression: ${JSON.stringify(r,null,2)} - `)}const i=Bi[`filter_${e}`],o=Rr(n,i);let s=null;if(o.result==="error")throw new Error(o.value.map(c=>`${c.key}: ${c.message}`).join(", "));s=(c,p,d)=>o.value.evaluate(c,p,{},d);let a=null,l=null;if(n!==r){const c=Rr(r,i);if(c.result==="error")throw new Error(c.value.map(p=>`${p.key}: ${p.message}`).join(", "));a=(p,d,f,h,g)=>c.value.evaluate(p,d,{},f,void 0,void 0,h,g),l=!Yt(c.value.expression)}s=s;const u=Wi(n);return{filter:s,dynamicFilter:a||void 0,needGeometry:u,needFeature:!!l}}function Nl(t){if(!Ye(t))return t;let e=_r(t);return Xi(e),e=Hi(e),e}function Hi(t){if(!Array.isArray(t))return t;const e=Ul(t);return e===!0?e:e.map(r=>Hi(r))}function Xi(t){let e=!1;const r=[];if(t[0]==="case"){for(let n=1;n",">=","<","<=","to-boolean"]);function Ul(t){if(Vl.has(t[0]))for(let e=1;ee?1:0}function Wi(t){if(!Array.isArray(t))return!1;if(t[0]==="within")return!0;for(let e=1;e"||e==="<="||e===">="?hr(t[1],t[2],e):e==="any"?Zl(t.slice(1)):e==="all"?["all"].concat(t.slice(1).map(Ut)):e==="none"?["all"].concat(t.slice(1).map(Ut).map(_t)):e==="in"?Un(t[1],t.slice(2)):e==="!in"?_t(Un(t[1],t.slice(2))):e==="has"?Bn(t[1]):e==="!has"?_t(Bn(t[1])):e==="within"?t:!0}function hr(t,e,r){switch(t){case"$type":return[`filter-type-${r}`,e];case"$id":return[`filter-id-${r}`,e];default:return[`filter-${r}`,t,e]}}function Zl(t){return["any"].concat(t.map(Ut))}function Un(t,e){if(e.length===0)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(r=>typeof r!=typeof e[0])?["filter-in-large",t,["literal",e.sort(Bl)]]:["filter-in-small",t,["literal",e]]}}function Bn(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function _t(t){return["!",t]}var Hl=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Xl(t,e){const r={};for(const n in t)n!=="ref"&&(r[n]=t[n]);return Hl.forEach(n=>{n in e&&(r[n]=e[n])}),r}function Wl(t){t=t.slice();const e=Object.create(null);for(let r=0;r1?d[d.length-2].toLowerCase():"";if(f==h||f==h.replace("-","")||g+"-"+f==h){i=a?i:Zn[h],d.pop(),g&&h.startsWith(g)&&d.pop();break}}!a&&typeof f=="number"&&(i=f);var m=d.join(lt).replace("Klokantech Noto Sans","Noto Sans");m.indexOf(lt)!==-1&&(m='"'+m+'"'),s.push(m)}n=Xn[t]=[o,i,s]}return n[0]+lt+n[1]+lt+e+"px"+(r?"/"+r:"")+lt+n[2]},Ir=vi(Jl);const Ji="https://api.mapbox.com";function un(t){const e="mapbox://";return t.indexOf(e)!==0?"":t.slice(e.length)}function Kl(t,e,r){const n=un(t);if(!n)return decodeURI(new URL(t,r).href);const i="sprites/";if(n.indexOf(i)!==0)throw new Error(`unexpected sprites url: ${t}`);const o=n.slice(i.length);return`${Ji}/styles/v1/${o}/sprite?access_token=${e}`}function Ki(t,e){const r=un(t);if(!r)return decodeURI(new URL(t,location.href).href);const n="styles/";if(r.indexOf(n)!==0)throw new Error(`unexpected style url: ${t}`);const i=r.slice(n.length);return`${Ji}/styles/v1/${i}?&access_token=${e}`}function Dt(t,e,r,n){const i=new URL(t,n),o=un(t);if(!o)return e&&i.searchParams.set(r,e),decodeURI(i.href);if(o==="mapbox.satellite"){const s=window.devicePixelRatio>=1.5?"@2x":"";return`https://api.mapbox.com/v4/${o}/{z}/{x}/{y}${s}.webp?access_token=${e}`}return`https://{a-d}.tiles.mapbox.com/v4/${o}/{z}/{x}/{y}.vector.pbf?access_token=${e}`}const Wn={},Jn={};let Yl=0;function cn(t){return t.id||(t.id=Yl++),t.id}function Ql(t,e){return cn(t)+"."+pe(e)}function eu(t){let e=Wn[t.id];return e||(e={},Wn[cn(t)]=e),e}function tu(t){let e=Jn[t.id];return e||(e={},Jn[cn(t)]=e),e}function mr(t){return t*Math.PI/180}const Qt=function(){const t=[];for(let e=78271.51696402048;t.length<=24;e/=2)t.push(e);return t}();function Yi(t,e){if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof OffscreenCanvas<"u")return new OffscreenCanvas(t,e);const r=document.createElement("canvas");return r.width=t,r.height=e,r}function Qi(t,e){let r=0;const n=e.length;for(;r{const u=r.transformRequest&&r.transformRequest(l,"Tiles")||l;if(a instanceof di)a.setLoader((c,p,d)=>{fetch(u).then(f=>f.arrayBuffer()).then(f=>{const g=a.getFormat().readFeatures(f,{extent:c,featureProjection:d});a.setFeatures(g)}).catch(f=>a.setState(q.ERROR))});else{const c=a.getImage();u instanceof Request?fetch(u).then(p=>p.blob()).then(p=>{const d=URL.createObjectURL(p);c.addEventListener("load",()=>URL.revokeObjectURL(d)),c.addEventListener("error",()=>URL.revokeObjectURL(d)),c.src=d}).catch(p=>a.setState(q.ERROR)):c.src=u}});const s=t.url;if(s&&!t.tiles){const a=Dt(s,r.accessToken,r.accessTokenParam||"access_token",e||location.href);if(s.startsWith("mapbox://"))i=Promise.resolve({tileJson:Object.assign({},t,{url:void 0,tiles:rs(a)}),tileLoadFunction:o});else{const l={};i=Qe("Source",a,r,l).then(function(u){return u.tiles=u.tiles.map(function(c){return u.scheme==="tms"&&(c=c.replace("{y}","{-y}")),Dt(c,r.accessToken,r.accessTokenParam||"access_token",l.request.url)}),Promise.resolve({tileJson:u,tileLoadFunction:o})})}}else t=Object.assign({},t,{tiles:t.tiles.map(function(a){return t.scheme==="tms"&&(a=a.replace("{y}","{-y}")),Dt(a,r.accessToken,r.accessTokenParam||"access_token",e||location.href)})}),i=Promise.resolve({tileJson:Object.assign({},t),tileLoadFunction:o});Kn[n]=i}return i}function Yn(t,e,r,n){const i=document.createElement("canvas"),o=[2*r*e.pixelRatio+e.width,2*r*e.pixelRatio+e.height];i.width=o[0],i.height=o[1];const s=i.getContext("2d");s.drawImage(t,e.x,e.y,e.width,e.height,r*e.pixelRatio,r*e.pixelRatio,e.width,e.height);const a=s.getImageData(0,0,o[0],o[1]);s.globalCompositeOperation="destination-over",s.fillStyle=`rgba(${n.r*255},${n.g*255},${n.b*255},${n.a})`;const l=a.data;for(let u=0,c=a.width;u0&&s.arc(u,p,r*e.pixelRatio,0,2*Math.PI)}return s.fill(),i}function nu(t,e,r){const n=Math.max(0,Math.min(1,(r-t)/(e-t)));return n*n*(3-2*n)}function Qn(t,e,r){const n=document.createElement("canvas");n.width=e.width,n.height=e.height;const i=n.getContext("2d");i.drawImage(t,e.x,e.y,e.width,e.height,0,0,e.width,e.height);const o=i.getImageData(0,0,e.width,e.height),s=o.data;for(let a=0,l=o.width;a0?(s[p+0]=Math.round(255*r.r*g),s[p+1]=Math.round(255*r.g*g),s[p+2]=Math.round(255*r.b*g),s[p+3]=Math.round(255*g)):s[p+3]=0}return i.putImageData(o,0,0),n}const iu=Array(256).join(" ");function Mr(t,e){if(e>=.05){let r="";const n=t.split(` + `)}const i=Bi[`filter_${e}`],o=Rr(n,i);let s=null;if(o.result==="error")throw new Error(o.value.map(c=>`${c.key}: ${c.message}`).join(", "));s=(c,p,d)=>o.value.evaluate(c,p,{},d);let a=null,l=null;if(n!==r){const c=Rr(r,i);if(c.result==="error")throw new Error(c.value.map(p=>`${p.key}: ${p.message}`).join(", "));a=(p,d,f,h,g)=>c.value.evaluate(p,d,{},f,void 0,void 0,h,g),l=!Yt(c.value.expression)}s=s;const u=Wi(n);return{filter:s,dynamicFilter:a||void 0,needGeometry:u,needFeature:!!l}}function Nl(t){if(!Ye(t))return t;let e=_r(t);return Hi(e),e=Xi(e),e}function Xi(t){if(!Array.isArray(t))return t;const e=Ul(t);return e===!0?e:e.map(r=>Xi(r))}function Hi(t){let e=!1;const r=[];if(t[0]==="case"){for(let n=1;n",">=","<","<=","to-boolean"]);function Ul(t){if(Vl.has(t[0]))for(let e=1;ee?1:0}function Wi(t){if(!Array.isArray(t))return!1;if(t[0]==="within")return!0;for(let e=1;e"||e==="<="||e===">="?hr(t[1],t[2],e):e==="any"?Zl(t.slice(1)):e==="all"?["all"].concat(t.slice(1).map(Ut)):e==="none"?["all"].concat(t.slice(1).map(Ut).map(_t)):e==="in"?Un(t[1],t.slice(2)):e==="!in"?_t(Un(t[1],t.slice(2))):e==="has"?Bn(t[1]):e==="!has"?_t(Bn(t[1])):e==="within"?t:!0}function hr(t,e,r){switch(t){case"$type":return[`filter-type-${r}`,e];case"$id":return[`filter-id-${r}`,e];default:return[`filter-${r}`,t,e]}}function Zl(t){return["any"].concat(t.map(Ut))}function Un(t,e){if(e.length===0)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(r=>typeof r!=typeof e[0])?["filter-in-large",t,["literal",e.sort(Bl)]]:["filter-in-small",t,["literal",e]]}}function Bn(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function _t(t){return["!",t]}var Xl=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Hl(t,e){const r={};for(const n in t)n!=="ref"&&(r[n]=t[n]);return Xl.forEach(n=>{n in e&&(r[n]=e[n])}),r}function Wl(t){t=t.slice();const e=Object.create(null);for(let r=0;r1?d[d.length-2].toLowerCase():"";if(f==h||f==h.replace("-","")||g+"-"+f==h){i=a?i:Zn[h],d.pop(),g&&h.startsWith(g)&&d.pop();break}}!a&&typeof f=="number"&&(i=f);var m=d.join(lt).replace("Klokantech Noto Sans","Noto Sans");m.indexOf(lt)!==-1&&(m='"'+m+'"'),s.push(m)}n=Hn[t]=[o,i,s]}return n[0]+lt+n[1]+lt+e+"px"+(r?"/"+r:"")+lt+n[2]},Ir=vi(Jl);const Ji="https://api.mapbox.com";function un(t){const e="mapbox://";return t.indexOf(e)!==0?"":t.slice(e.length)}function Kl(t,e,r){const n=un(t);if(!n)return decodeURI(new URL(t,r).href);const i="sprites/";if(n.indexOf(i)!==0)throw new Error(`unexpected sprites url: ${t}`);const o=n.slice(i.length);return`${Ji}/styles/v1/${o}/sprite?access_token=${e}`}function Ki(t,e){const r=un(t);if(!r)return decodeURI(new URL(t,location.href).href);const n="styles/";if(r.indexOf(n)!==0)throw new Error(`unexpected style url: ${t}`);const i=r.slice(n.length);return`${Ji}/styles/v1/${i}?&access_token=${e}`}function Dt(t,e,r,n){const i=new URL(t,n),o=un(t);if(!o)return e&&i.searchParams.set(r,e),decodeURI(i.href);if(o==="mapbox.satellite"){const s=window.devicePixelRatio>=1.5?"@2x":"";return`https://api.mapbox.com/v4/${o}/{z}/{x}/{y}${s}.webp?access_token=${e}`}return`https://{a-d}.tiles.mapbox.com/v4/${o}/{z}/{x}/{y}.vector.pbf?access_token=${e}`}const Wn={},Jn={};let Yl=0;function cn(t){return t.id||(t.id=Yl++),t.id}function Ql(t,e){return cn(t)+"."+pe(e)}function eu(t){let e=Wn[t.id];return e||(e={},Wn[cn(t)]=e),e}function tu(t){let e=Jn[t.id];return e||(e={},Jn[cn(t)]=e),e}function mr(t){return t*Math.PI/180}const Qt=function(){const t=[];for(let e=78271.51696402048;t.length<=24;e/=2)t.push(e);return t}();function Yi(t,e){if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof OffscreenCanvas<"u")return new OffscreenCanvas(t,e);const r=document.createElement("canvas");return r.width=t,r.height=e,r}function Qi(t,e){let r=0;const n=e.length;for(;r{const u=r.transformRequest&&r.transformRequest(l,"Tiles")||l;if(a instanceof di)a.setLoader((c,p,d)=>{fetch(u).then(f=>f.arrayBuffer()).then(f=>{const g=a.getFormat().readFeatures(f,{extent:c,featureProjection:d});a.setFeatures(g)}).catch(f=>a.setState(q.ERROR))});else{const c=a.getImage();u instanceof Request?fetch(u).then(p=>p.blob()).then(p=>{const d=URL.createObjectURL(p);c.addEventListener("load",()=>URL.revokeObjectURL(d)),c.addEventListener("error",()=>URL.revokeObjectURL(d)),c.src=d}).catch(p=>a.setState(q.ERROR)):c.src=u}});const s=t.url;if(s&&!t.tiles){const a=Dt(s,r.accessToken,r.accessTokenParam||"access_token",e||location.href);if(s.startsWith("mapbox://"))i=Promise.resolve({tileJson:Object.assign({},t,{url:void 0,tiles:rs(a)}),tileLoadFunction:o});else{const l={};i=Qe("Source",a,r,l).then(function(u){return u.tiles=u.tiles.map(function(c){return u.scheme==="tms"&&(c=c.replace("{y}","{-y}")),Dt(c,r.accessToken,r.accessTokenParam||"access_token",l.request.url)}),Promise.resolve({tileJson:u,tileLoadFunction:o})})}}else t=Object.assign({},t,{tiles:t.tiles.map(function(a){return t.scheme==="tms"&&(a=a.replace("{y}","{-y}")),Dt(a,r.accessToken,r.accessTokenParam||"access_token",e||location.href)})}),i=Promise.resolve({tileJson:Object.assign({},t),tileLoadFunction:o});Kn[n]=i}return i}function Yn(t,e,r,n){const i=document.createElement("canvas"),o=[2*r*e.pixelRatio+e.width,2*r*e.pixelRatio+e.height];i.width=o[0],i.height=o[1];const s=i.getContext("2d");s.drawImage(t,e.x,e.y,e.width,e.height,r*e.pixelRatio,r*e.pixelRatio,e.width,e.height);const a=s.getImageData(0,0,o[0],o[1]);s.globalCompositeOperation="destination-over",s.fillStyle=`rgba(${n.r*255},${n.g*255},${n.b*255},${n.a})`;const l=a.data;for(let u=0,c=a.width;u0&&s.arc(u,p,r*e.pixelRatio,0,2*Math.PI)}return s.fill(),i}function nu(t,e,r){const n=Math.max(0,Math.min(1,(r-t)/(e-t)));return n*n*(3-2*n)}function Qn(t,e,r){const n=document.createElement("canvas");n.width=e.width,n.height=e.height;const i=n.getContext("2d");i.drawImage(t,e.x,e.y,e.width,e.height,0,0,e.width,e.height);const o=i.getImageData(0,0,e.width,e.height),s=o.data;for(let a=0,l=o.width;a0?(s[p+0]=Math.round(255*r.r*g),s[p+1]=Math.round(255*r.g*g),s[p+2]=Math.round(255*r.b*g),s[p+3]=Math.round(255*g)):s[p+3]=0}return i.putImageData(o,0,0),n}const iu=Array(256).join(" ");function Mr(t,e){if(e>=.05){let r="";const n=t.split(` `),i=iu.slice(0,Math.round(e/.1));for(let o=0,s=n.length;o0&&(r+=` `),r+=n[o].split("").join(i);return r}return t}let yr;function to(){return yr||(yr=Yi(1,1).getContext("2d")),yr}function Ae(t,e){return to().measureText(t).width+(t.length-1)*e}const ei={};function Pr(t,e,r,n){if(t.indexOf(` `)!==-1){const s=t.split(` @@ -12,9 +12,9 @@ ${JSON.stringify(r,null,2)} `)}const i=r+","+e+","+t+","+n;let o=ei[i];if(!o){const s=t.split(" ");if(s.length>1){const a=to();a.font=e;const u=a.measureText("M").width*r;let c="";const p=[];for(let d=0,f=s.length;d1;++d){const h=p[d];if(Ae(h,n)0?Ae(p[d-1],n):1/0,m=du*.7&&Ae(g,n)`${n.key}: ${n.message}`).join(", "));return r.value},Ar={},Bt={zoom:0};let Mt,xr;function C(t,e,r,n,i,o,s){const a=t.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[a]||(o[a]={});const l=o[a];if(!l[r]){let u=(t[e]||Ar)[r];const c=Bi[`${e}_${t.type}`][r];u===void 0&&(u=c.default);let p=Ll(u);if(!p&&Ui(u)&&(u=ba(u,c),p=!0),p){const d=pu(u,c);l[r]=d.evaluate.bind(d)}else c.type=="color"&&(u=fe.parse(u)),l[r]=function(){return u}}return Bt.zoom=n,l[r](Bt,i,s)}function du(t,e,r,n){return C(t,"layout","icon-allow-overlap",e,r,n)?C(t,"layout","icon-ignore-placement",e,r,n)?"none":"obstacle":"declutter"}function fu(t,e,r,n,i){return i||console.warn("No filterCache provided to evaluateFilter()"),t in i||(i[t]=ql(e).filter),Bt.zoom=n,i[t](Bt,r)}function Ee(t,e){if(t){if(t.a===0||e===0)return;const r=t.a;return e=e===void 0?1:e,r===0?"transparent":"rgba("+Math.round(t.r*255/r)+","+Math.round(t.g*255/r)+","+Math.round(t.b*255/r)+","+r*e+")"}return t}const hu=/\{[^{}}]*\}/g;function br(t,e){return t.replace(hu,function(r){return e[r.slice(1,-1)]||""})}const mu={};function yu(t,e,r,n=Qt,i=void 0,o=void 0,s=void 0,a=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");mu[Ql(e,t)]=Array.from(arguments);let l,u,c;if(o){if(typeof Image<"u"){const w=new Image;let z;o instanceof Request?fetch(o).then(I=>I.blob()).then(I=>{z=URL.createObjectURL(I),w.src=z}).catch(()=>{}):(w.crossOrigin="anonymous",w.src=o,z&&URL.revokeObjectURL(z)),w.onload=function(){l=w,u=[w.width,w.height],t.changed(),w.onload=null}}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const w=self;w.postMessage({action:"loadImage",src:o}),w.addEventListener("message",function(I){I.data.action==="imageLoaded"&&I.data.src===o&&(l=I.data.image,u=[l.width,l.height])})}}const p=Wl(e.layers),d={},f=[],h={},g={},m=eu(e),_=tu(e);let F;for(let w=0,z=p.length;w=x.maxzoom)continue;const dn=x.filter;if(!dn||fu(pn,dn,T,v,_)){let ye,we,vt,ge,Te,b;const Oe=bt.index;if(te==3&&(x.type=="fill"||x.type=="fill-extrusion"))if(we=C(x,"paint",x.type+"-opacity",v,T,m,E),x.type+"-pattern"in Ie){const B=C(x,"paint",x.type+"-pattern",v,T,m,E);if(B){const Z=typeof B=="string"?br(B,Y):B.toString();if(l&&i&&i[Z]){++j,b=S[j],(!b||!b.getFill()||b.getStroke()||b.getText())&&(b=new Le({fill:new ut}),S[j]=b),vt=b.getFill(),b.setZIndex(Oe);const N=Z+"."+we;let H=g[N];if(!H){const $=i[Z],O=Yi($.width,$.height),ie=O.getContext("2d");ie.globalAlpha=we,ie.drawImage(l,$.x,$.y,$.width,$.height,0,0,$.width,$.height),H=ie.createPattern(O,"repeat"),g[N]=H}vt.setColor(H)}}}else ye=Ee(C(x,"paint",x.type+"-color",v,T,m,E),we),x.type+"-outline-color"in Ie&&(Te=Ee(C(x,"paint",x.type+"-outline-color",v,T,m,E),we)),Te||(Te=ye),(ye||Te)&&(++j,b=S[j],(!b||ye&&!b.getFill()||!ye&&b.getFill()||Te&&!b.getStroke()||!Te&&b.getStroke()||b.getText())&&(b=new Le({fill:ye?new ut:void 0,stroke:Te?new zt:void 0}),S[j]=b),ye&&(vt=b.getFill(),vt.setColor(ye)),Te&&(ge=b.getStroke(),ge.setColor(Te),ge.setWidth(.5)),b.setZIndex(Oe));if(te!=1&&x.type=="line"){ye=!("line-pattern"in Ie)&&"line-color"in Ie?Ee(C(x,"paint","line-color",v,T,m,E),C(x,"paint","line-opacity",v,T,m,E)):void 0;const B=C(x,"paint","line-width",v,T,m,E);ye&&B>0&&(++j,b=S[j],(!b||!b.getStroke()||b.getFill()||b.getText())&&(b=new Le({stroke:new zt}),S[j]=b),ge=b.getStroke(),ge.setLineCap(C(x,"layout","line-cap",v,T,m,E)),ge.setLineJoin(C(x,"layout","line-join",v,T,m,E)),ge.setMiterLimit(C(x,"layout","line-miter-limit",v,T,m,E)),ge.setColor(ye),ge.setWidth(B),ge.setLineDash(Ie["line-dasharray"]?C(x,"paint","line-dasharray",v,T,m,E).map(function(Z){return Z*B}):null),b.setZIndex(Oe))}let wt=!1,G=null,fn=0,it,ne,er;if((te==1||te==2)&&"icon-image"in nt){const B=C(x,"layout","icon-image",v,T,m,E);if(B){it=typeof B=="string"?br(B,Y):B.toString();let Z;const N=a?a(t,it):void 0;if(l&&i&&i[it]||N){const H=C(x,"layout","icon-rotation-alignment",v,T,m,E);if(te==2){const $=w.getGeometry();if($.getFlatMidpoint||$.getFlatMidpoints){const O=$.getExtent();if(Math.sqrt(Math.max(Math.pow((O[2]-O[0])/z,2),Math.pow((O[3]-O[1])/z,2)))>150){const W=$.getType()==="MultiLineString"?$.getFlatMidpoints():$.getFlatMidpoint();if(xr||(Mt=[NaN,NaN],xr=new kr("Point",Mt,[],{},null)),Z=xr,Mt[0]=W[0],Mt[1]=W[1],C(x,"layout","symbol-placement",v,T,m,E)==="line"&&H==="map"){const ue=$.getStride(),se=$.getFlatCoordinates();for(let ce=0,X=se.length-ue;ce=no&&W[0]<=oo&&W[1]>=io&&W[1]<=so){fn=Math.atan2(he-Me,J-oe);break}}}}}}if(te!==2||Z){const $=C(x,"layout","icon-size",v,T,m,E),O=Ie["icon-color"]!==void 0?C(x,"paint","icon-color",v,T,m,E):null;if(!O||O.a!==0){const ie=C(x,"paint","icon-halo-color",v,T,m,E),W=C(x,"paint","icon-halo-width",v,T,m,E);let le=`${it}.${$}.${W}.${ie}`;if(O!==null&&(le+=`.${O}`),ne=h[le],!ne){const ue=du(x,v,T,m);let se;"icon-offset"in nt&&(se=C(x,"layout","icon-offset",v,T,m,E).slice(0),se[1]*=-1);let ce=O?[O.r*255,O.g*255,O.b*255,O.a]:void 0;if(N){const X={color:ce,rotateWithView:H==="map",displacement:se,declutterMode:ue};typeof N=="string"?X.src=N:(X.img=N,X.imgSize=[N.width,N.height]),ne=new Cn(X)}else{const X=i[it];let oe,he,J;W?X.sdf?(oe=Yn(Qn(l,X,O),{x:0,y:0,width:X.width,height:X.height,pixelRatio:X.pixelRatio},W,ie),ce=void 0):oe=Yn(l,X,W,ie):(X.sdf?(c||(c=Qn(l,{x:0,y:0,width:u[0],height:u[1]},{r:1,g:1,b:1,a:1})),oe=c):oe=l,he=[X.width,X.height],J=[X.x,X.y]),ne=new Cn({color:ce,img:oe,imgSize:u,size:he,offset:J,rotateWithView:H==="map",scale:$/X.pixelRatio,displacement:se,declutterMode:ue})}h[le]=ne}}ne&&(++j,b=S[j],(!b||!b.getImage()||b.getFill()||b.getStroke())&&(b=new Le,S[j]=b),b.setGeometry(Z),ne.setRotation(fn+mr(C(x,"layout","icon-rotate",v,T,m,E))),ne.setOpacity(C(x,"paint","icon-opacity",v,T,m,E)),ne.setAnchor(cu[C(x,"layout","icon-anchor",v,T,m,E)]),b.setImage(ne),G=b.getText(),b.setText(void 0),b.setZIndex(Oe),wt=!0,er=!1)}else er=!0}}}if(te==1&&x.type==="circle"){++j,b=S[j],(!b||!b.getImage()||b.getFill()||b.getStroke())&&(b=new Le,S[j]=b);const B="circle-radius"in Ie?C(x,"paint","circle-radius",v,T,m,E):5,Z=Ee(C(x,"paint","circle-stroke-color",v,T,m,E),C(x,"paint","circle-stroke-opacity",v,T,m,E)),N=Ee(C(x,"paint","circle-color",v,T,m,E),C(x,"paint","circle-opacity",v,T,m,E)),H=C(x,"paint","circle-stroke-width",v,T,m,E),$=B+"."+Z+"."+N+"."+H;ne=h[$],ne||(ne=new pi({radius:B,stroke:Z&&H>0?new zt({width:H,color:Z}):void 0,fill:N?new ut({color:N}):void 0,declutterMode:"none"}),h[$]=ne),b.setImage(ne),G=b.getText(),b.setText(void 0),b.setGeometry(void 0),b.setZIndex(Oe),wt=!0}let Q,ot,st,Ce,at,tr;if("text-field"in nt){Ce=Math.round(C(x,"layout","text-size",v,T,m,E));const B=C(x,"layout","text-font",v,T,m,E);st=C(x,"layout","text-line-height",v,T,m,E),ot=Ir(s?s(B,e.metadata?e.metadata["ol:webfonts"]:void 0):B,Ce,st),ot.includes("sans-serif")||(ot+=",sans-serif"),at=C(x,"layout","text-letter-spacing",v,T,m,E),tr=C(x,"layout","text-max-width",v,T,m,E);const Z=C(x,"layout","text-field",v,T,m,E);typeof Z=="object"&&Z.sections?Z.sections.length===1?Q=Z.toString():Q=Z.sections.reduce((N,H,$)=>{const O=H.fontStack?H.fontStack.split(","):B,ie=Ir(s?s(O):O,Ce*(H.scale||1),st);let W=H.text;if(W===` +${a}`)!==100){const l=e.replace("{font-family}",a.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",a.replace(/ /g,"+")).replace("{fontweight}",s[1]).replace("{-fontstyle}",s[2].replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",s[2]);if(!document.querySelector('link[href="'+l+'"]')){const u=document.createElement("link");u.href=l,u.rel="stylesheet",document.head.appendChild(u)}}}return gr[r]=t,t}const uu={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},cu={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},pu=function(t,e){const r=Dl(t,e);if(r.result==="error")throw new Error(r.value.map(n=>`${n.key}: ${n.message}`).join(", "));return r.value},Ar={},Bt={zoom:0};let Mt,xr;function C(t,e,r,n,i,o,s){const a=t.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[a]||(o[a]={});const l=o[a];if(!l[r]){let u=(t[e]||Ar)[r];const c=Bi[`${e}_${t.type}`][r];u===void 0&&(u=c.default);let p=Ll(u);if(!p&&Ui(u)&&(u=ba(u,c),p=!0),p){const d=pu(u,c);l[r]=d.evaluate.bind(d)}else c.type=="color"&&(u=fe.parse(u)),l[r]=function(){return u}}return Bt.zoom=n,l[r](Bt,i,s)}function du(t,e,r,n){return C(t,"layout","icon-allow-overlap",e,r,n)?C(t,"layout","icon-ignore-placement",e,r,n)?"none":"obstacle":"declutter"}function fu(t,e,r,n,i){return i||console.warn("No filterCache provided to evaluateFilter()"),t in i||(i[t]=ql(e).filter),Bt.zoom=n,i[t](Bt,r)}function Ee(t,e){if(t){if(t.a===0||e===0)return;const r=t.a;return e=e===void 0?1:e,r===0?"transparent":"rgba("+Math.round(t.r*255/r)+","+Math.round(t.g*255/r)+","+Math.round(t.b*255/r)+","+r*e+")"}return t}const hu=/\{[^{}}]*\}/g;function br(t,e){return t.replace(hu,function(r){return e[r.slice(1,-1)]||""})}const mu={};function yu(t,e,r,n=Qt,i=void 0,o=void 0,s=void 0,a=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");mu[Ql(e,t)]=Array.from(arguments);let l,u,c;if(o){if(typeof Image<"u"){const w=new Image;let z;o instanceof Request?fetch(o).then(I=>I.blob()).then(I=>{z=URL.createObjectURL(I),w.src=z}).catch(()=>{}):(w.crossOrigin="anonymous",w.src=o,z&&URL.revokeObjectURL(z)),w.onload=function(){l=w,u=[w.width,w.height],t.changed(),w.onload=null}}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const w=self;w.postMessage({action:"loadImage",src:o}),w.addEventListener("message",function(I){I.data.action==="imageLoaded"&&I.data.src===o&&(l=I.data.image,u=[l.width,l.height])})}}const p=Wl(e.layers),d={},f=[],h={},g={},m=eu(e),_=tu(e);let F;for(let w=0,z=p.length;w=x.maxzoom)continue;const dn=x.filter;if(!dn||fu(pn,dn,T,v,_)){let ye,we,vt,ge,Te,b;const Oe=bt.index;if(te==3&&(x.type=="fill"||x.type=="fill-extrusion"))if(we=C(x,"paint",x.type+"-opacity",v,T,m,E),x.type+"-pattern"in Ie){const B=C(x,"paint",x.type+"-pattern",v,T,m,E);if(B){const Z=typeof B=="string"?br(B,Y):B.toString();if(l&&i&&i[Z]){++j,b=S[j],(!b||!b.getFill()||b.getStroke()||b.getText())&&(b=new Le({fill:new ut}),S[j]=b),vt=b.getFill(),b.setZIndex(Oe);const N=Z+"."+we;let X=g[N];if(!X){const $=i[Z],O=Yi($.width,$.height),ie=O.getContext("2d");ie.globalAlpha=we,ie.drawImage(l,$.x,$.y,$.width,$.height,0,0,$.width,$.height),X=ie.createPattern(O,"repeat"),g[N]=X}vt.setColor(X)}}}else ye=Ee(C(x,"paint",x.type+"-color",v,T,m,E),we),x.type+"-outline-color"in Ie&&(Te=Ee(C(x,"paint",x.type+"-outline-color",v,T,m,E),we)),Te||(Te=ye),(ye||Te)&&(++j,b=S[j],(!b||ye&&!b.getFill()||!ye&&b.getFill()||Te&&!b.getStroke()||!Te&&b.getStroke()||b.getText())&&(b=new Le({fill:ye?new ut:void 0,stroke:Te?new zt:void 0}),S[j]=b),ye&&(vt=b.getFill(),vt.setColor(ye)),Te&&(ge=b.getStroke(),ge.setColor(Te),ge.setWidth(.5)),b.setZIndex(Oe));if(te!=1&&x.type=="line"){ye=!("line-pattern"in Ie)&&"line-color"in Ie?Ee(C(x,"paint","line-color",v,T,m,E),C(x,"paint","line-opacity",v,T,m,E)):void 0;const B=C(x,"paint","line-width",v,T,m,E);ye&&B>0&&(++j,b=S[j],(!b||!b.getStroke()||b.getFill()||b.getText())&&(b=new Le({stroke:new zt}),S[j]=b),ge=b.getStroke(),ge.setLineCap(C(x,"layout","line-cap",v,T,m,E)),ge.setLineJoin(C(x,"layout","line-join",v,T,m,E)),ge.setMiterLimit(C(x,"layout","line-miter-limit",v,T,m,E)),ge.setColor(ye),ge.setWidth(B),ge.setLineDash(Ie["line-dasharray"]?C(x,"paint","line-dasharray",v,T,m,E).map(function(Z){return Z*B}):null),b.setZIndex(Oe))}let wt=!1,G=null,fn=0,it,ne,er;if((te==1||te==2)&&"icon-image"in nt){const B=C(x,"layout","icon-image",v,T,m,E);if(B){it=typeof B=="string"?br(B,Y):B.toString();let Z;const N=a?a(t,it):void 0;if(l&&i&&i[it]||N){const X=C(x,"layout","icon-rotation-alignment",v,T,m,E);if(te==2){const $=w.getGeometry();if($.getFlatMidpoint||$.getFlatMidpoints){const O=$.getExtent();if(Math.sqrt(Math.max(Math.pow((O[2]-O[0])/z,2),Math.pow((O[3]-O[1])/z,2)))>150){const W=$.getType()==="MultiLineString"?$.getFlatMidpoints():$.getFlatMidpoint();if(xr||(Mt=[NaN,NaN],xr=new kr("Point",Mt,[],{},null)),Z=xr,Mt[0]=W[0],Mt[1]=W[1],C(x,"layout","symbol-placement",v,T,m,E)==="line"&&X==="map"){const ue=$.getStride(),se=$.getFlatCoordinates();for(let ce=0,H=se.length-ue;ce=no&&W[0]<=oo&&W[1]>=io&&W[1]<=so){fn=Math.atan2(he-Me,J-oe);break}}}}}}if(te!==2||Z){const $=C(x,"layout","icon-size",v,T,m,E),O=Ie["icon-color"]!==void 0?C(x,"paint","icon-color",v,T,m,E):null;if(!O||O.a!==0){const ie=C(x,"paint","icon-halo-color",v,T,m,E),W=C(x,"paint","icon-halo-width",v,T,m,E);let le=`${it}.${$}.${W}.${ie}`;if(O!==null&&(le+=`.${O}`),ne=h[le],!ne){const ue=du(x,v,T,m);let se;"icon-offset"in nt&&(se=C(x,"layout","icon-offset",v,T,m,E).slice(0),se[1]*=-1);let ce=O?[O.r*255,O.g*255,O.b*255,O.a]:void 0;if(N){const H={color:ce,rotateWithView:X==="map",displacement:se,declutterMode:ue};typeof N=="string"?H.src=N:(H.img=N,H.imgSize=[N.width,N.height]),ne=new Cn(H)}else{const H=i[it];let oe,he,J;W?H.sdf?(oe=Yn(Qn(l,H,O),{x:0,y:0,width:H.width,height:H.height,pixelRatio:H.pixelRatio},W,ie),ce=void 0):oe=Yn(l,H,W,ie):(H.sdf?(c||(c=Qn(l,{x:0,y:0,width:u[0],height:u[1]},{r:1,g:1,b:1,a:1})),oe=c):oe=l,he=[H.width,H.height],J=[H.x,H.y]),ne=new Cn({color:ce,img:oe,imgSize:u,size:he,offset:J,rotateWithView:X==="map",scale:$/H.pixelRatio,displacement:se,declutterMode:ue})}h[le]=ne}}ne&&(++j,b=S[j],(!b||!b.getImage()||b.getFill()||b.getStroke())&&(b=new Le,S[j]=b),b.setGeometry(Z),ne.setRotation(fn+mr(C(x,"layout","icon-rotate",v,T,m,E))),ne.setOpacity(C(x,"paint","icon-opacity",v,T,m,E)),ne.setAnchor(cu[C(x,"layout","icon-anchor",v,T,m,E)]),b.setImage(ne),G=b.getText(),b.setText(void 0),b.setZIndex(Oe),wt=!0,er=!1)}else er=!0}}}if(te==1&&x.type==="circle"){++j,b=S[j],(!b||!b.getImage()||b.getFill()||b.getStroke())&&(b=new Le,S[j]=b);const B="circle-radius"in Ie?C(x,"paint","circle-radius",v,T,m,E):5,Z=Ee(C(x,"paint","circle-stroke-color",v,T,m,E),C(x,"paint","circle-stroke-opacity",v,T,m,E)),N=Ee(C(x,"paint","circle-color",v,T,m,E),C(x,"paint","circle-opacity",v,T,m,E)),X=C(x,"paint","circle-stroke-width",v,T,m,E),$=B+"."+Z+"."+N+"."+X;ne=h[$],ne||(ne=new pi({radius:B,stroke:Z&&X>0?new zt({width:X,color:Z}):void 0,fill:N?new ut({color:N}):void 0,declutterMode:"none"}),h[$]=ne),b.setImage(ne),G=b.getText(),b.setText(void 0),b.setGeometry(void 0),b.setZIndex(Oe),wt=!0}let Q,ot,st,Ce,at,tr;if("text-field"in nt){Ce=Math.round(C(x,"layout","text-size",v,T,m,E));const B=C(x,"layout","text-font",v,T,m,E);st=C(x,"layout","text-line-height",v,T,m,E),ot=Ir(s?s(B,e.metadata?e.metadata["ol:webfonts"]:void 0):B,Ce,st),ot.includes("sans-serif")||(ot+=",sans-serif"),at=C(x,"layout","text-letter-spacing",v,T,m,E),tr=C(x,"layout","text-max-width",v,T,m,E);const Z=C(x,"layout","text-field",v,T,m,E);typeof Z=="object"&&Z.sections?Z.sections.length===1?Q=Z.toString():Q=Z.sections.reduce((N,X,$)=>{const O=X.fontStack?X.fontStack.split(","):B,ie=Ir(s?s(O):O,Ce*(X.scale||1),st);let W=X.text;if(W===` `)return N.push(` `,""),N;if(te==2){N.push(Mr(W,at),ie);return}W=Pr(W,ie,tr,at).split(` `);for(let le=0,ue=W.length;le0&&N.push(` -`,""),N.push(W[le],ie);return N},[]):Q=br(Z,Y).trim(),we=C(x,"paint","text-opacity",v,T,m,E)}if(Q&&we&&!er){wt||(++j,b=S[j],(!b||!b.getText()||b.getFill()||b.getStroke())&&(b=new Le,S[j]=b),b.setImage(void 0),b.setGeometry(void 0)),b.getText()||b.setText(G||new bs({padding:[2,2,2,2]})),G=b.getText();const B=nt["text-transform"];B=="uppercase"?Q=Array.isArray(Q)?Q.map((J,Me)=>Me%2?J:J.toUpperCase()):Q.toUpperCase():B=="lowercase"&&(Q=Array.isArray(Q)?Q.map((J,Me)=>Me%2?J:J.toLowerCase()):Q.toLowerCase());const Z=Array.isArray(Q)?Q:te==2?Mr(Q,at):Pr(Q,ot,tr,at);G.setText(Z),G.setFont(ot),G.setRotation(mr(C(x,"layout","text-rotate",v,T,m,E)));const N=C(x,"layout","text-anchor",v,T,m,E),H=wt||te==1?"point":C(x,"layout","symbol-placement",v,T,m,E);let $;if(H==="line-center"?(G.setPlacement("line"),$="center"):G.setPlacement(H),H==="line"&&typeof G.setRepeat=="function"){const J=C(x,"layout","symbol-spacing",v,T,m,E);G.setRepeat(J*2)}G.setOverflow(H==="point");let O=C(x,"paint","text-halo-width",v,T,m,E);const ie=C(x,"layout","text-offset",v,T,m,E),W=C(x,"paint","text-translate",v,T,m,E);let le=0,ue=0;if(H=="point"){$="center",N.indexOf("left")!==-1?($="left",ue=O):N.indexOf("right")!==-1&&($="right",ue=-O);const J=C(x,"layout","text-rotation-alignment",v,T,m,E);G.setRotateWithView(J=="map")}else G.setMaxAngle(mr(C(x,"layout","text-max-angle",v,T,m,E))*Q.length/Z.length),G.setRotateWithView(!1);G.setTextAlign($);let se="middle";N.indexOf("bottom")==0?(se="bottom",le=-O-.5*(st-1)*Ce):N.indexOf("top")==0&&(se="top",le=O+.5*(st-1)*Ce),G.setTextBaseline(se);const ce=C(x,"layout","text-justify",v,T,m,E);G.setJustify(ce==="auto"?void 0:ce),G.setOffsetX(ie[0]*Ce+ue+W[0]),G.setOffsetY(ie[1]*Ce+le+W[1]),k.setColor(Ee(C(x,"paint","text-color",v,T,m,E),we)),G.setFill(k);const X=Ee(C(x,"paint","text-halo-color",v,T,m,E),we);if(X){R.setColor(X),O*=2;const J=.5*Ce;R.setWidth(O<=J?O:J),G.setStroke(R)}else G.setStroke(void 0);const oe=C(x,"layout","text-padding",v,T,m,E),he=G.getPadding();oe!==he[0]&&(he[0]=oe,he[1]=oe,he[2]=oe,he[3]=oe),b.setZIndex(Oe)}}}if(j>-1)return S.length=j+1,S};return t.setStyle(L),t.set("mapbox-source",F),t.set("mapbox-layers",f),t.set("mapbox-featurestate",t.get("mapbox-featurestate")||{}),L}function gu(t,e=512){return t.getExtent()?Lr({extent:t.getExtent(),tileSize:e,maxZoom:22}).getResolutions():Qt}function xu(t,e){return!e.accessToken&&e.accessToken!==null&&(e=Object.assign({},e),new URL(t).searchParams.forEach((n,i)=>{e.accessToken=n,e.accessTokenParam=i})),e}function bu(t,e,r="",n={},i=void 0){let o,s,a,l,u=!0;return typeof r!="string"&&!Array.isArray(r)?(a=r,l=a.source||a.layers,n=a):l=r,typeof n=="string"?(o=n,a={}):(o=n.styleUrl,a=n),a.updateSource===!1&&(u=!1),i||(i=a.resolutions),!o&&typeof e=="string"&&!e.trim().startsWith("{")&&(o=e),o&&(o=o.startsWith("data:")?location.href:Ki(o,a.accessToken),a=xu(o,a)),new Promise(function(c,p){eo(e,a).then(function(d){if(d.version!=8)return p(new Error("glStyle version 8 required."));if(!(t instanceof Tr||t instanceof At))return p(new Error("Can only apply to VectorLayer or VectorTileLayer"));const f=t instanceof At?"vector":"geojson";if(l?Array.isArray(l)?s=d.layers.find(function(k){return k.id===l[0]}).source:s=l:(s=Object.keys(d.sources).find(function(k){return d.sources[k].type===f}),l=s),!s)return p(new Error(`No ${f} source found in the glStyle.`));function h(){if(!u)return Promise.resolve();if(t instanceof At)return Fu(d.sources[s],o,a).then(function(w){const z=t.getSource();if(z?w!==z&&(z.setTileUrlFunction(w.getTileUrlFunction()),typeof z.setUrls=="function"&&typeof w.getUrls=="function"&&z.setUrls(w.getUrls()),z.format_||(z.format_=w.format_),z.getAttributions()||z.setAttributions(w.getAttributions()),z.getTileLoadFunction()===hi&&z.setTileLoadFunction(w.getTileLoadFunction()),ts(z.getProjection(),w.getProjection())&&(z.tileGrid=w.getTileGrid())):t.setSource(w),!isFinite(t.getMaxResolution())&&!isFinite(t.getMinZoom())){const I=t.getSource().getTileGrid();t.setMaxResolution(I.getResolution(I.getMinZoom()))}});const k=d.sources[s];let S=t.getSource();(!S||S.get("mapbox-source")!==k)&&(S=Eu(k,o,a));const L=t.getSource();return L?S!==L&&(L.getAttributions()||L.setAttributions(S.getAttributions()),L.format_||(L.format_=S.getFormat()),L.url_=S.getUrl()):t.setSource(S),Promise.resolve()}let g,m,_,F;function R(){if(!F&&(!d.sprite||m)){if(a.projection&&!i){const S=$e(a.projection).getUnits();S!=="m"&&(i=Qt.map(L=>L/Wo[S]))}F=yu(t,d,l,i,m,_,lu,a.getImage),t.getStyle()?h().then(c).catch(p):p(new Error(`Nothing to show for source [${s}]`))}else F?(t.setStyle(F),h().then(c).catch(p)):p(new Error("Something went wrong trying to apply style."))}if(d.sprite){const k=new URL(Kl(d.sprite,a.accessToken,o||location.href));g=window.devicePixelRatio>=1.5?.5:1;const S=g==.5?"@2x":"";let L=k.origin+k.pathname+S+".json"+k.search;new Promise(function(w,z){Qe("Sprite",L,a).then(w).catch(function(I){L=k.origin+k.pathname+".json"+k.search,Qe("Sprite",L,a).then(w).catch(z)})}).then(function(w){if(w===void 0&&p(new Error("No sprites found.")),m=w,_=k.origin+k.pathname+S+".png"+k.search,a.transformRequest){const z=a.transformRequest(_,"SpriteImage")||_;z instanceof Request&&(_=z)}R()}).catch(function(w){p(new Error(`Sprites cannot be loaded: ${L}: ${w.message}`))})}else R()}).catch(p)})}const ti={};function vu(t,e,r){e.layers.some(function(n){if(n.type==="background"){if(t instanceof ui)return t.setBackground(function(i){return ro(n,i,r,{})}),!0;if(t instanceof Jo||t instanceof Ko)return t.getLayers().push(zu(n,r,{})),!0}})}function wu(t,e,r={}){return eo(e,r).then(function(n){vu(t,n,r)})}function Tu(t,e){const r=t.bounds;if(r){const n=yn([r[0],r[1]],e),i=yn([r[2],r[3]],e);return[n[0],n[1],i[0],i[1]]}return $e(e).getExtent()}function ku(t,e,r){const n=new Ls({tileJSON:e,tileSize:t.tileSize||e.tileSize||512}),i=n.getTileJSON(),o=n.getTileGrid(),s=$e(r.projection||"EPSG:3857"),a=Tu(i,s),l=s.getExtent(),u=i.minzoom||0,c=i.maxzoom||22,p={attributions:n.getAttributions(),projection:s,tileGrid:new li({origin:l?ii(l):o.getOrigin(0),extent:a||o.getExtent(),minZoom:u,resolutions:gu(s,e.tileSize).slice(0,c+1),tileSize:o.getTileSize(0)})};return Array.isArray(i.tiles)?p.urls=i.tiles:p.url=i.tiles,p}function ro(t,e,r,n){const i={id:t.id,type:t.type},o=t.layout||{},s=t.paint||{};i.paint=s;const a=Qi(e,r.resolutions||Qt);let l,u;return s["background-color"]!==void 0&&(l=C(i,"paint","background-color",a,ti,n)),s["background-opacity"]!==void 0&&(u=C(i,"paint","background-opacity",a,ti,n)),o.visibility=="none"?void 0:Ee(l,u)}function zu(t,e,r){const n=document.createElement("div");return n.className="ol-mapbox-style-background",n.style.position="absolute",n.style.width="100%",n.style.height="100%",new ui({source:new Yo({}),render(i){const o=ro(t,i.viewState.resolution,e,r);return n.style.backgroundColor=o,n}})}function Fu(t,e,r){return new Promise(function(n,i){ru(t,e,r).then(function({tileJson:o,tileLoadFunction:s}){const a=ku(t,o,r);a.tileLoadFunction=s,a.format=new bi,n(new fi(a))}).catch(i)})}function Cu(t){return`{bbox-${(t?t.getCode():"EPSG:3857").toLowerCase().replace(/[^a-z0-9]/g,"-")}}`}function Eu(t,e,r){const n=r.projection?new wr({dataProjection:r.projection}):new wr,i=t.data,o={};if(typeof i=="string"){const a=Dt(i,r.accessToken,r.accessTokenParam||"access_token",e||location.href);if(/\{bbox-[0-9a-z-]+\}/.test(a)){const u=(p,d,f)=>{const h=Cu(f);return a.replace(h,`${p.join(",")}`)},c=new Pt({attributions:t.attribution,format:n,loader:(p,d,f,h,g)=>{const m=typeof u=="function"?u(p,d,f):u;Qe("GeoJSON",m,r).then(_=>{const F=c.getFormat().readFeatures(_,{featureProjection:f});c.addFeatures(F),h(F)}).catch(_=>{c.removeLoadedExtent(p),g()})},strategy:ci});return c.set("mapbox-source",t),c}const l=new Pt({attributions:t.attribution,format:n,url:a,loader:(u,c,p,d,f)=>{Qe("GeoJSON",a,r).then(h=>{const g=l.getFormat().readFeatures(h,{featureProjection:p});l.addFeatures(g),d(g)}).catch(h=>{l.removeLoadedExtent(u),f()})}});return l}o.features=n.readFeatures(i,{featureProjection:"EPSG:3857"});const s=new Pt(Object.assign({attributions:t.attribution,format:n},o));return s.set("mapbox-source",t),s}class Su extends Xo{constructor(e){super(vr.ERROR),this.error=e}}class Ru extends At{constructor(e){const r="declutter"in e?e.declutter:!0,n=new fi({state:"loading",format:new bi});super({source:n,background:e.background,declutter:r,className:e.className,opacity:e.opacity,visible:e.visible,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution,minZoom:e.minZoom,maxZoom:e.maxZoom,renderOrder:e.renderOrder,renderBuffer:e.renderBuffer,renderMode:e.renderMode,map:e.map,updateWhileAnimating:e.updateWhileAnimating,updateWhileInteracting:e.updateWhileInteracting,preload:e.preload,useInterimTilesOnError:e.useInterimTilesOnError,properties:e.properties}),(e.accessToken||e.accessToken===null)&&(this.accessToken=e.accessToken);const i=e.styleUrl,o=[bu(this,i,e.layers||e.source,{accessToken:this.accessToken})];this.getBackground()===void 0&&o.push(wu(this,e.styleUrl,{accessToken:this.accessToken})),Promise.all(o).then(()=>{n.setState("ready")}).catch(s=>{this.dispatchEvent(new Su(s)),this.getSource().setState("error")})}}const Ze="main";class _u{mapId=Ze;async getMapConfig(){return{projection:"EPSG:3857",initialView:{kind:"position",center:{x:848890,y:6793350},zoom:13},layers:[new kt({title:"OSM",visible:!0,isBaseLayer:!0,olLayer:new ns({source:new is})}),new kt({id:"inspire-us-kindergarten",title:"Kindertageseinrichtungen in NRW",visible:!0,olLayer:new Tr({style:new Le({image:new pi({fill:new ut({color:"blue"}),radius:5})}),source:Sn({baseUrl:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1",collectionId:"governmentalservice",crs:"http://www.opengis.net/def/crs/EPSG/0/3857",attributions:"Datenlizenz Deutschland - Namensnennung - Version 2.0"})})}),new kt({id:"ogc_katasterbezirk",title:"Liegenschaftskatasterbezirke in NRW (viele Daten)",visible:!1,olLayer:new Tr({source:Sn({baseUrl:"https://ogc-api.nrw.de/lika/v1",collectionId:"katasterbezirk",limit:1e3,crs:"http://www.opengis.net/def/crs/EPSG/0/3857",attributions:"Datenlizenz Deutschland - Namensnennung - Version 2.0"})})}),new kt({title:"Abschnitte/Äste mit Unfällen (Mapbox Style)",visible:!1,olLayer:new Ru({styleUrl:"https://demo.ldproxy.net/strassen/styles/default?f=mbs",accessToken:null})})]}}}const Iu={"ogc-feature-app":{name:"ogc-feature-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:_u,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:os,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/ogc-features":{name:"@open-pioneer/ogc-features",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-navigation":{name:"@open-pioneer/map-navigation",services:{},ui:{references:[]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/test-utils":{name:"@open-pioneer/test-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-test-utils":{name:"@open-pioneer/map-test-utils",services:{},ui:{references:[]},properties:{}}},Mu=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:none}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move} +`,""),N.push(W[le],ie);return N},[]):Q=br(Z,Y).trim(),we=C(x,"paint","text-opacity",v,T,m,E)}if(Q&&we&&!er){wt||(++j,b=S[j],(!b||!b.getText()||b.getFill()||b.getStroke())&&(b=new Le,S[j]=b),b.setImage(void 0),b.setGeometry(void 0)),b.getText()||b.setText(G||new bs({padding:[2,2,2,2]})),G=b.getText();const B=nt["text-transform"];B=="uppercase"?Q=Array.isArray(Q)?Q.map((J,Me)=>Me%2?J:J.toUpperCase()):Q.toUpperCase():B=="lowercase"&&(Q=Array.isArray(Q)?Q.map((J,Me)=>Me%2?J:J.toLowerCase()):Q.toLowerCase());const Z=Array.isArray(Q)?Q:te==2?Mr(Q,at):Pr(Q,ot,tr,at);G.setText(Z),G.setFont(ot),G.setRotation(mr(C(x,"layout","text-rotate",v,T,m,E)));const N=C(x,"layout","text-anchor",v,T,m,E),X=wt||te==1?"point":C(x,"layout","symbol-placement",v,T,m,E);let $;if(X==="line-center"?(G.setPlacement("line"),$="center"):G.setPlacement(X),X==="line"&&typeof G.setRepeat=="function"){const J=C(x,"layout","symbol-spacing",v,T,m,E);G.setRepeat(J*2)}G.setOverflow(X==="point");let O=C(x,"paint","text-halo-width",v,T,m,E);const ie=C(x,"layout","text-offset",v,T,m,E),W=C(x,"paint","text-translate",v,T,m,E);let le=0,ue=0;if(X=="point"){$="center",N.indexOf("left")!==-1?($="left",ue=O):N.indexOf("right")!==-1&&($="right",ue=-O);const J=C(x,"layout","text-rotation-alignment",v,T,m,E);G.setRotateWithView(J=="map")}else G.setMaxAngle(mr(C(x,"layout","text-max-angle",v,T,m,E))*Q.length/Z.length),G.setRotateWithView(!1);G.setTextAlign($);let se="middle";N.indexOf("bottom")==0?(se="bottom",le=-O-.5*(st-1)*Ce):N.indexOf("top")==0&&(se="top",le=O+.5*(st-1)*Ce),G.setTextBaseline(se);const ce=C(x,"layout","text-justify",v,T,m,E);G.setJustify(ce==="auto"?void 0:ce),G.setOffsetX(ie[0]*Ce+ue+W[0]),G.setOffsetY(ie[1]*Ce+le+W[1]),k.setColor(Ee(C(x,"paint","text-color",v,T,m,E),we)),G.setFill(k);const H=Ee(C(x,"paint","text-halo-color",v,T,m,E),we);if(H){R.setColor(H),O*=2;const J=.5*Ce;R.setWidth(O<=J?O:J),G.setStroke(R)}else G.setStroke(void 0);const oe=C(x,"layout","text-padding",v,T,m,E),he=G.getPadding();oe!==he[0]&&(he[0]=oe,he[1]=oe,he[2]=oe,he[3]=oe),b.setZIndex(Oe)}}}if(j>-1)return S.length=j+1,S};return t.setStyle(L),t.set("mapbox-source",F),t.set("mapbox-layers",f),t.set("mapbox-featurestate",t.get("mapbox-featurestate")||{}),L}function gu(t,e=512){return t.getExtent()?Lr({extent:t.getExtent(),tileSize:e,maxZoom:22}).getResolutions():Qt}function xu(t,e){return!e.accessToken&&e.accessToken!==null&&(e=Object.assign({},e),new URL(t).searchParams.forEach((n,i)=>{e.accessToken=n,e.accessTokenParam=i})),e}function bu(t,e,r="",n={},i=void 0){let o,s,a,l,u=!0;return typeof r!="string"&&!Array.isArray(r)?(a=r,l=a.source||a.layers,n=a):l=r,typeof n=="string"?(o=n,a={}):(o=n.styleUrl,a=n),a.updateSource===!1&&(u=!1),i||(i=a.resolutions),!o&&typeof e=="string"&&!e.trim().startsWith("{")&&(o=e),o&&(o=o.startsWith("data:")?location.href:Ki(o,a.accessToken),a=xu(o,a)),new Promise(function(c,p){eo(e,a).then(function(d){if(d.version!=8)return p(new Error("glStyle version 8 required."));if(!(t instanceof Tr||t instanceof At))return p(new Error("Can only apply to VectorLayer or VectorTileLayer"));const f=t instanceof At?"vector":"geojson";if(l?Array.isArray(l)?s=d.layers.find(function(k){return k.id===l[0]}).source:s=l:(s=Object.keys(d.sources).find(function(k){return d.sources[k].type===f}),l=s),!s)return p(new Error(`No ${f} source found in the glStyle.`));function h(){if(!u)return Promise.resolve();if(t instanceof At)return Fu(d.sources[s],o,a).then(function(w){const z=t.getSource();if(z?w!==z&&(z.setTileUrlFunction(w.getTileUrlFunction()),typeof z.setUrls=="function"&&typeof w.getUrls=="function"&&z.setUrls(w.getUrls()),z.format_||(z.format_=w.format_),z.getAttributions()||z.setAttributions(w.getAttributions()),z.getTileLoadFunction()===hi&&z.setTileLoadFunction(w.getTileLoadFunction()),ts(z.getProjection(),w.getProjection())&&(z.tileGrid=w.getTileGrid())):t.setSource(w),!isFinite(t.getMaxResolution())&&!isFinite(t.getMinZoom())){const I=t.getSource().getTileGrid();t.setMaxResolution(I.getResolution(I.getMinZoom()))}});const k=d.sources[s];let S=t.getSource();(!S||S.get("mapbox-source")!==k)&&(S=Eu(k,o,a));const L=t.getSource();return L?S!==L&&(L.getAttributions()||L.setAttributions(S.getAttributions()),L.format_||(L.format_=S.getFormat()),L.url_=S.getUrl()):t.setSource(S),Promise.resolve()}let g,m,_,F;function R(){if(!F&&(!d.sprite||m)){if(a.projection&&!i){const S=$e(a.projection).getUnits();S!=="m"&&(i=Qt.map(L=>L/Wo[S]))}F=yu(t,d,l,i,m,_,lu,a.getImage),t.getStyle()?h().then(c).catch(p):p(new Error(`Nothing to show for source [${s}]`))}else F?(t.setStyle(F),h().then(c).catch(p)):p(new Error("Something went wrong trying to apply style."))}if(d.sprite){const k=new URL(Kl(d.sprite,a.accessToken,o||location.href));g=window.devicePixelRatio>=1.5?.5:1;const S=g==.5?"@2x":"";let L=k.origin+k.pathname+S+".json"+k.search;new Promise(function(w,z){Qe("Sprite",L,a).then(w).catch(function(I){L=k.origin+k.pathname+".json"+k.search,Qe("Sprite",L,a).then(w).catch(z)})}).then(function(w){if(w===void 0&&p(new Error("No sprites found.")),m=w,_=k.origin+k.pathname+S+".png"+k.search,a.transformRequest){const z=a.transformRequest(_,"SpriteImage")||_;z instanceof Request&&(_=z)}R()}).catch(function(w){p(new Error(`Sprites cannot be loaded: ${L}: ${w.message}`))})}else R()}).catch(p)})}const ti={};function vu(t,e,r){e.layers.some(function(n){if(n.type==="background"){if(t instanceof ui)return t.setBackground(function(i){return ro(n,i,r,{})}),!0;if(t instanceof Jo||t instanceof Ko)return t.getLayers().push(zu(n,r,{})),!0}})}function wu(t,e,r={}){return eo(e,r).then(function(n){vu(t,n,r)})}function Tu(t,e){const r=t.bounds;if(r){const n=yn([r[0],r[1]],e),i=yn([r[2],r[3]],e);return[n[0],n[1],i[0],i[1]]}return $e(e).getExtent()}function ku(t,e,r){const n=new Ls({tileJSON:e,tileSize:t.tileSize||e.tileSize||512}),i=n.getTileJSON(),o=n.getTileGrid(),s=$e(r.projection||"EPSG:3857"),a=Tu(i,s),l=s.getExtent(),u=i.minzoom||0,c=i.maxzoom||22,p={attributions:n.getAttributions(),projection:s,tileGrid:new li({origin:l?ii(l):o.getOrigin(0),extent:a||o.getExtent(),minZoom:u,resolutions:gu(s,e.tileSize).slice(0,c+1),tileSize:o.getTileSize(0)})};return Array.isArray(i.tiles)?p.urls=i.tiles:p.url=i.tiles,p}function ro(t,e,r,n){const i={id:t.id,type:t.type},o=t.layout||{},s=t.paint||{};i.paint=s;const a=Qi(e,r.resolutions||Qt);let l,u;return s["background-color"]!==void 0&&(l=C(i,"paint","background-color",a,ti,n)),s["background-opacity"]!==void 0&&(u=C(i,"paint","background-opacity",a,ti,n)),o.visibility=="none"?void 0:Ee(l,u)}function zu(t,e,r){const n=document.createElement("div");return n.className="ol-mapbox-style-background",n.style.position="absolute",n.style.width="100%",n.style.height="100%",new ui({source:new Yo({}),render(i){const o=ro(t,i.viewState.resolution,e,r);return n.style.backgroundColor=o,n}})}function Fu(t,e,r){return new Promise(function(n,i){ru(t,e,r).then(function({tileJson:o,tileLoadFunction:s}){const a=ku(t,o,r);a.tileLoadFunction=s,a.format=new bi,n(new fi(a))}).catch(i)})}function Cu(t){return`{bbox-${(t?t.getCode():"EPSG:3857").toLowerCase().replace(/[^a-z0-9]/g,"-")}}`}function Eu(t,e,r){const n=r.projection?new wr({dataProjection:r.projection}):new wr,i=t.data,o={};if(typeof i=="string"){const a=Dt(i,r.accessToken,r.accessTokenParam||"access_token",e||location.href);if(/\{bbox-[0-9a-z-]+\}/.test(a)){const u=(p,d,f)=>{const h=Cu(f);return a.replace(h,`${p.join(",")}`)},c=new Pt({attributions:t.attribution,format:n,loader:(p,d,f,h,g)=>{const m=typeof u=="function"?u(p,d,f):u;Qe("GeoJSON",m,r).then(_=>{const F=c.getFormat().readFeatures(_,{featureProjection:f});c.addFeatures(F),h(F)}).catch(_=>{c.removeLoadedExtent(p),g()})},strategy:ci});return c.set("mapbox-source",t),c}const l=new Pt({attributions:t.attribution,format:n,url:a,loader:(u,c,p,d,f)=>{Qe("GeoJSON",a,r).then(h=>{const g=l.getFormat().readFeatures(h,{featureProjection:p});l.addFeatures(g),d(g)}).catch(h=>{l.removeLoadedExtent(u),f()})}});return l}o.features=n.readFeatures(i,{featureProjection:"EPSG:3857"});const s=new Pt(Object.assign({attributions:t.attribution,format:n},o));return s.set("mapbox-source",t),s}class Su extends Ho{constructor(e){super(vr.ERROR),this.error=e}}class Ru extends At{constructor(e){const r="declutter"in e?e.declutter:!0,n=new fi({state:"loading",format:new bi});super({source:n,background:e.background,declutter:r,className:e.className,opacity:e.opacity,visible:e.visible,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution,minZoom:e.minZoom,maxZoom:e.maxZoom,renderOrder:e.renderOrder,renderBuffer:e.renderBuffer,renderMode:e.renderMode,map:e.map,updateWhileAnimating:e.updateWhileAnimating,updateWhileInteracting:e.updateWhileInteracting,preload:e.preload,useInterimTilesOnError:e.useInterimTilesOnError,properties:e.properties}),(e.accessToken||e.accessToken===null)&&(this.accessToken=e.accessToken);const i=e.styleUrl,o=[bu(this,i,e.layers||e.source,{accessToken:this.accessToken})];this.getBackground()===void 0&&o.push(wu(this,e.styleUrl,{accessToken:this.accessToken})),Promise.all(o).then(()=>{n.setState("ready")}).catch(s=>{this.dispatchEvent(new Su(s)),this.getSource().setState("error")})}}const Ze="main";class _u{mapId=Ze;async getMapConfig(){return{projection:"EPSG:3857",initialView:{kind:"position",center:{x:848890,y:6793350},zoom:13},layers:[new kt({title:"OSM",visible:!0,isBaseLayer:!0,olLayer:new ns({source:new is})}),new kt({id:"inspire-us-kindergarten",title:"Kindertageseinrichtungen in NRW",visible:!0,olLayer:new Tr({style:new Le({image:new pi({fill:new ut({color:"blue"}),radius:5})}),source:Sn({baseUrl:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1",collectionId:"governmentalservice",crs:"http://www.opengis.net/def/crs/EPSG/0/3857",attributions:"Datenlizenz Deutschland - Namensnennung - Version 2.0"})})}),new kt({id:"ogc_katasterbezirk",title:"Liegenschaftskatasterbezirke in NRW (viele Daten)",visible:!1,olLayer:new Tr({source:Sn({baseUrl:"https://ogc-api.nrw.de/lika/v1",collectionId:"katasterbezirk",limit:1e3,crs:"http://www.opengis.net/def/crs/EPSG/0/3857",attributions:"Datenlizenz Deutschland - Namensnennung - Version 2.0"})})}),new kt({title:"Abschnitte/Äste mit Unfällen (Mapbox Style)",visible:!1,olLayer:new Ru({styleUrl:"https://demo.ldproxy.net/strassen/styles/default?f=mbs",accessToken:null})})]}}}const Iu={"ogc-feature-app":{name:"ogc-feature-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:_u,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:os,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/ogc-features":{name:"@open-pioneer/ogc-features",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-navigation":{name:"@open-pioneer/map-navigation",services:{},ui:{references:[]},properties:{}},"@open-pioneer/toc":{name:"@open-pioneer/toc",services:{},ui:{references:[]},properties:{}},"@open-pioneer/test-utils":{name:"@open-pioneer/test-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-test-utils":{name:"@open-pioneer/map-test-utils",services:{},ui:{references:[]},properties:{}}},Mu=`:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:none}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move} `,Pu=["en","de"];function Au(t){switch(t){case"en":return gn(()=>import("./d2a160d1cb20.js"),[],import.meta.url).then(e=>e.default);case"de":return gn(()=>import("./c00db4b76887.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${t}'`)}const Lu=co(Mu),Du=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:Au,locales:Pu,packages:Iu,styles:Lu},Symbol.toStringTag,{value:"Module"})),ju="ogc-feature-app",$u=po.bind(void 0,ju);function Ou(){const t=$u();return re.jsx(ir,{height:"100%",direction:"column",overflow:"hidden",children:re.jsx(bn,{title:re.jsx(vn,{textAlign:"center",py:1,children:re.jsx(wn,{size:"md",children:"Open Pioneer - OGC-Feature-Sample"})}),children:re.jsx(ir,{flex:"1",direction:"column",position:"relative",children:re.jsxs(ss,{mapId:Ze,children:[re.jsx(xn,{position:"top-left",horizontalGap:20,verticalGap:20,children:re.jsx(vn,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:re.jsx(bn,{title:re.jsx(wn,{size:"md",children:t.formatMessage({id:"tocTitle"})}),children:re.jsx(vs,{mapId:Ze,basemapSwitcherProps:{allowSelectingEmptyBasemap:!0}})})})}),re.jsx(xn,{position:"bottom-right",horizontalGap:10,verticalGap:30,children:re.jsxs(ir,{direction:"column",gap:1,padding:1,children:[re.jsx(ws,{mapId:Ze}),re.jsx(Ts,{mapId:Ze}),re.jsx(ks,{mapId:Ze})]})})]})})})})}const qu=fo({component:Ou,appMetadata:Du,async resolveConfig(t){const e=t.getAttribute("forced-locale");if(e)return{locale:e}}});customElements.define("ogc-feature-app",qu);const Nu=document.getElementsByTagName("body")[0];Gu();function Gu(){const t=window.location.search,r=new URLSearchParams(t).get("lang"),n=document.createElement("ogc-feature-app");n.classList.add("full-height"),n.setAttribute("id","test"),r&&n.setAttribute("forced-locale",r),Nu.appendChild(n)} diff --git a/openlayers-base-packages/assets/a6ee6b7525cc.js b/openlayers-base-packages/assets/a6ee6b7525cc.js new file mode 100644 index 000000000..fdd4f88a2 --- /dev/null +++ b/openlayers-base-packages/assets/a6ee6b7525cc.js @@ -0,0 +1,2 @@ +var Me=(o,e,t)=>{if(!e.has(o))throw TypeError("Cannot "+t)};var _=(o,e,t)=>(Me(o,e,"read from private field"),t?t.call(o):e.get(o)),C=(o,e,t)=>{if(e.has(o))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(o):e.set(o,t)},S=(o,e,t,s)=>(Me(o,e,"write to private field"),s?s.call(o,t):e.set(o,t),t);var ae=(o,e,t)=>(Me(o,e,"access private method"),t);import{f as es,j as u,c as ts,r as w,a as ss,u as ve,B as We,F as st,b as is}from"./49b2c148dcb3.js";import{L as ns,C as os,g as vt,f as it,V as nt,i as wt,I as E,a as rs,c as as,b as Q,d as J,e as ot,m as ls,t as cs,h as bt,j as ee,k as yt,l as xt,n as St,T as hs,r as ds,o as Ke,E as we,u as Ct,p as us,S as gs,q as ps,s as rt,v as Et,w as le,x as It,B as Lt,y as Tt,z as Pt,A as at,D as ms,F as lt,G as fs,H as _s,J as Be,K as X,M as N,N as Ye,O as Mt,P as vs,Q as ws,R as bs,U as ys,W as xs,X as Ss,Y as Cs,Z as Es,_ as ct,$ as Is,a0 as Ls,a1 as ht,a2 as Ts,a3 as Ps,a4 as P,a5 as Ms,a6 as ks,a7 as kt,a8 as ke,a9 as dt,aa as be,ab as Rs,ac as Rt,ad as Os,ae as Ds,af as As,ag as ut,ah as ye,ai as oe,aj as Fs,ak as Ns,al as js,am as Vs,an as Ot,ao as Gs,ap as zs,aq as Ws,ar as Bs,as as Dt,at as Us,au as gt,av as At,aw as Hs,ax as pt,ay as $s,az as Re,aA as qs,aB as mt,aC as Ks,aD as Ys,aE as Xs,aF as Zs,aG as Qs,aH as ft,aI as Js,aJ as ei,aK as Oe}from"./67c4f96ddb71.js";import{a as Ft,W as ti,b as si}from"./fa5b23f988e6.js";import{E as ii,F as ce}from"./adc90c48e771.js";import{B as R,T as De,S as Ae}from"./fa35e3e86a4c.js";import{V as xe,G as Nt,a as Se,F as K,L as G,M as ni,b as jt,c as Vt,d as oi,e as ri,t as ai,S as fe,f as Z,g as Ue,C as li,T as ci,I as hi,Z as di,h as ui}from"./070a56af8b93.js";import{T as Xe,F as gi}from"./5091d4253a81.js";import{S as pi,F as mi}from"./5697241972e7.js";import{S as fi}from"./dda37e0a503c.js";import{G as Ce}from"./37c62c6c4df6.js";import"./1241ef5f2dc5.js";import"./f3ffe551a463.js";var Gt=es((o,e)=>u.jsx(pi,{align:"center",...o,direction:"row",ref:e}));Gt.displayName="HStack";function zt(o,e){const t=(""+o).split("."),s=(""+e).split(".");for(let i=0;ir)return 1;if(r>n)return-1}return 0}class _i extends ns{constructor(e){e=e||{},super(e)}}const vi=_i;class wi extends os{constructor(e){super(e),this.image_=null}getImage(){return this.image_?this.image_.getImage():null}prepareFrame(e){const t=e.layerStatesArray[e.layerIndex],s=e.pixelRatio,i=e.viewState,n=i.resolution,r=this.getLayer().getSource(),a=e.viewHints;let l=e.extent;if(t.extent!==void 0&&(l=vt(l,it(t.extent,i.projection))),!a[nt.ANIMATING]&&!a[nt.INTERACTING]&&!wt(l))if(r){const h=i.projection,c=r.getImage(l,n,s,h);c&&(this.loadImage(c)?this.image_=c:c.getState()===E.EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_}getData(e){const t=this.frameState;if(!t)return null;const s=this.getLayer(),i=rs(t.pixelToCoordinateTransform,e.slice()),n=s.getExtent();if(n&&!as(n,i))return null;const r=this.image_.getExtent(),a=this.image_.getImage(),l=Q(r),h=Math.floor(a.width*((i[0]-r[0])/l));if(h<0||h>=a.width)return null;const c=J(r),d=Math.floor(a.height*((r[3]-i[1])/c));return d<0||d>=a.height?null:this.getImageData(a,h,d)}renderFrame(e,t){const s=this.image_,i=s.getExtent(),n=s.getResolution(),[r,a]=Array.isArray(n)?n:[n,n],l=s.getPixelRatio(),h=e.layerStatesArray[e.layerIndex],c=e.pixelRatio,d=e.viewState,p=d.center,g=d.resolution,m=c*r/(g*l),f=c*a/(g*l),v=e.extent,I=d.resolution,b=d.rotation,y=Math.round(Q(v)/I*c),D=Math.round(J(v)/I*c);ot(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/c,1/c,b,-y/2,-D/2),ls(this.inversePixelTransform,this.pixelTransform);const Ie=cs(this.pixelTransform);this.useContainer(t,Ie,this.getBackground(e));const L=this.context,F=L.canvas;F.width!=y||F.height!=D?(F.width=y,F.height=D):this.containerReused||L.clearRect(0,0,y,D);let Le=!1,Te=!0;if(h.extent){const q=it(h.extent,d.projection);Te=bt(q,e.extent),Le=Te&&!ee(q,e.extent),Le&&this.clipUnrotated(L,e,q)}const $=s.getImage(),re=ot(this.tempTransform,y/2,D/2,m,f,0,l*(i[0]-p[0])/r,l*(p[1]-i[3])/a);this.renderedResolution=a*c/l;const Je=$.width*re[0],et=$.height*re[3];if(this.getLayer().getSource().getInterpolate()||(L.imageSmoothingEnabled=!1),this.preRender(L,e),Te&&Je>=.5&&et>=.5){const q=re[4],Jt=re[5],Pe=h.opacity;let tt;Pe!==1&&(tt=L.globalAlpha,L.globalAlpha=Pe),L.drawImage($,0,0,+$.width,+$.height,q,Jt,Je,et),Pe!==1&&(L.globalAlpha=tt)}return this.postRender(L,e),Le&&L.restore(),L.imageSmoothingEnabled=!0,Ie!==F.style.transform&&(F.style.transform=Ie),this.container}}const bi=wi;class yi extends vi{constructor(e){super(e)}createRenderer(){return new bi(this)}getData(e){return super.getData(e)}}const xi=yi;function He(o){return Array.isArray(o)?Math.min(...o):o}class Si extends yt{constructor(e,t,s,i,n,r,a){let l=e.getExtent();l&&e.canWrapX()&&(l=l.slice(),l[0]=-1/0,l[2]=1/0);let h=t.getExtent();h&&t.canWrapX()&&(h=h.slice(),h[0]=-1/0,h[2]=1/0);const c=h?vt(s,h):s,d=xt(c),p=St(e,t,d,i),g=us,m=new hs(e,t,c,l,p*g,i),f=m.calculateSourceExtent(),v=wt(f)?null:r(f,p,n),I=v?E.IDLE:E.EMPTY,b=v?v.getPixelRatio():1;super(s,i,b,I),this.targetProj_=t,this.maxSourceExtent_=l,this.triangulation_=m,this.targetResolution_=i,this.targetExtent_=s,this.sourceImage_=v,this.sourcePixelRatio_=b,this.interpolate_=a,this.canvas_=null,this.sourceListenerKey_=null}disposeInternal(){this.state==E.LOADING&&this.unlistenSource_(),super.disposeInternal()}getImage(){return this.canvas_}getProjection(){return this.targetProj_}reproject_(){const e=this.sourceImage_.getState();if(e==E.LOADED){const t=Q(this.targetExtent_)/this.targetResolution_,s=J(this.targetExtent_)/this.targetResolution_;this.canvas_=ds(t,s,this.sourcePixelRatio_,He(this.sourceImage_.getResolution()),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=e,this.changed()}load(){if(this.state==E.IDLE){this.state=E.LOADING,this.changed();const e=this.sourceImage_.getState();e==E.LOADED||e==E.ERROR?this.reproject_():(this.sourceListenerKey_=Ke(this.sourceImage_,we.CHANGE,function(t){const s=this.sourceImage_.getState();(s==E.LOADED||s==E.ERROR)&&(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}}unlistenSource_(){Ct(this.sourceListenerKey_),this.sourceListenerKey_=null}}const Ci=Si,O=4,Fe={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"};class Ei extends Lt{constructor(e,t){super(e),this.image=t}}class Ii extends gs{constructor(e){super({attributions:e.attributions,projection:e.projection,state:e.state,interpolate:e.interpolate!==void 0?e.interpolate:!0}),this.on,this.once,this.un,this.loader=e.loader||null,this.resolutions_=e.resolutions!==void 0?e.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0,this.image=null,this.wantedExtent_,this.wantedResolution_,this.static_=e.loader?e.loader.length===0:!1}getResolutions(){return this.resolutions_}setResolutions(e){this.resolutions_=e}findNearestResolution(e){const t=this.getResolutions();if(t){const s=ps(t,e,0);e=t[s]}return e}getImage(e,t,s,i){const n=this.getProjection();if(!n||!i||rt(n,i))return n&&(i=n),this.getImageInternal(e,t,s,i);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&rt(this.reprojectedImage_.getProjection(),i)&&this.reprojectedImage_.getResolution()==t&&Et(this.reprojectedImage_.getExtent(),e))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new Ci(n,i,e,t,s,(r,a,l)=>this.getImageInternal(r,a,l,n),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}getImageInternal(e,t,s,i){if(this.loader){const n=Wt(e,t,s,1),r=this.findNearestResolution(t);if(this.image&&(this.static_||(this.wantedExtent_&&ee(this.wantedExtent_,n)||ee(this.image.getExtent(),n))&&(this.wantedResolution_&&He(this.wantedResolution_)===r||He(this.image.getResolution())===r)))return this.image;this.wantedExtent_=n,this.wantedResolution_=r,this.image=new yt(n,r,s,this.loader),this.image.addEventListener(we.CHANGE,this.handleImageChange.bind(this))}return this.image}handleImageChange(e){const t=e.target;let s;switch(t.getState()){case E.LOADING:this.loading=!0,s=Fe.IMAGELOADSTART;break;case E.LOADED:this.loading=!1,s=Fe.IMAGELOADEND;break;case E.ERROR:this.loading=!1,s=Fe.IMAGELOADERROR;break;default:return}this.hasListener(s)&&this.dispatchEvent(new Ei(s,t))}}function Li(o,e){o.getImage().src=e}function Wt(o,e,t,s){const i=e/t,n=xt(o),r=le(Q(o)/i,O),a=le(J(o)/i,O),l=le((s-1)*r/2,O),h=r+2*l,c=le((s-1)*a/2,O),d=a+2*c;return It(n,i,0,[h,d])}const Ti=Ii,Bt="1.3.0";function Ut(o,e,t,s,i){i.WIDTH=t[0],i.HEIGHT=t[1];const n=s.getAxisOrientation();let r;const a=zt(i.VERSION,"1.3")>=0;return i[a?"CRS":"SRS"]=s.getCode(),a&&n.substr(0,2)=="ne"?r=[e[1],e[0],e[3],e[2]]:r=e,i.BBOX=r.join(","),Ft(o,i)}function Pi(o,e,t,s,i,n,r){n=Object.assign({REQUEST:"GetMap"},n);const a=e/t,l=[at(Q(o)/a,O),at(J(o)/a,O)];if(t!=1)switch(r){case"geoserver":const c=90*t+.5|0;"FORMAT_OPTIONS"in n?n.FORMAT_OPTIONS+=";dpi:"+c:n.FORMAT_OPTIONS="dpi:"+c;break;case"mapserver":n.MAP_RESOLUTION=90*t;break;case"carmentaserver":case"qgis":n.DPI=90*t;break;default:throw new Error("Unknown `serverType` configured")}return Ut(i,o,l,s,n)}function Ht(o,e){return Object.assign({REQUEST:e,SERVICE:"WMS",VERSION:Bt,FORMAT:"image/png",STYLES:"",TRANSPARENT:!0},o)}function Mi(o){const e=o.hidpi===void 0?!0:o.hidpi,t=Tt(o.projection||"EPSG:3857"),s=o.ratio||1.5,i=o.load||Pt;return(n,r,a)=>{n=Wt(n,r,a,s),a!=1&&(!e||o.serverType===void 0)&&(a=1);const l=Pi(n,r,a,t,o.url,Ht(o.params,"GetMap"),o.serverType),h=new Image;return o.crossOrigin!==null&&(h.crossOrigin=o.crossOrigin),i(h,l).then(c=>({image:c,extent:n,pixelRatio:a}))}}const _t=[101,101];class ki extends Ti{constructor(e){e=e||{},super({attributions:e.attributions,interpolate:e.interpolate,projection:e.projection,resolutions:e.resolutions}),this.crossOrigin_=e.crossOrigin!==void 0?e.crossOrigin:null,this.url_=e.url,this.imageLoadFunction_=e.imageLoadFunction!==void 0?e.imageLoadFunction:Li,this.params_=e.params,this.serverType_=e.serverType,this.hidpi_=e.hidpi!==void 0?e.hidpi:!0,this.renderedRevision_=0,this.ratio_=e.ratio!==void 0?e.ratio:1.5}getFeatureInfoUrl(e,t,s,i){if(this.url_===void 0)return;const n=Tt(s),r=this.getProjection();r&&r!==n&&(t=St(r,n,e,t),e=ms(e,n,r));const a=It(e,t,0,_t),l={QUERY_LAYERS:this.params_.LAYERS};Object.assign(l,Ht(this.params_,"GetFeatureInfo"),i);const h=lt((e[0]-a[0])/t,O),c=lt((a[3]-e[1])/t,O),d=zt(l.VERSION,"1.3")>=0;return l[d?"I":"X"]=h,l[d?"J":"Y"]=c,Ut(this.url_,a,_t,r||n,l)}getLegendUrl(e,t){if(this.url_===void 0)return;const s={SERVICE:"WMS",VERSION:Bt,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(t===void 0||t.LAYER===void 0){const i=this.params_.LAYERS;if(!(!Array.isArray(i)||i.length===1))return;s.LAYER=i}if(e!==void 0){const i=this.getProjection()?this.getProjection().getMetersPerUnit():1,n=28e-5;s.SCALE=e*i/n}return Object.assign(s,t),Ft(this.url_,s)}getParams(){return this.params_}getImageInternal(e,t,s,i){return this.url_===void 0?null:(this.loader||(this.loader=Mi({crossOrigin:this.crossOrigin_,params:this.params_,projection:i,serverType:this.serverType_,hidpi:this.hidpi_,url:this.url_,ratio:this.ratio_,load:(n,r)=>(this.image.setImage(n),this.imageLoadFunction_(this.image,r),Pt(n))})),super.getImageInternal(e,t,s,i))}getImageLoadFunction(){return this.imageLoadFunction_}getUrl(){return this.url_}setImageLoadFunction(e){this.imageLoadFunction_=e,this.changed()}setUrl(e){e!=this.url_&&(this.url_=e,this.loader=null,this.changed())}updateParams(e){Object.assign(this.params_,e),this.changed()}changed(){this.image=null,super.changed()}}const Ri=ki;function Oi(o){let e=!1,t=setTimeout(()=>{e=!0,t=void 0,o()});return{reschedule(){return!e},cancel(){t&&clearTimeout(t)}}}var M;class $t extends ii{constructor(t){super();C(this,M,void 0);S(this,M,t)}destroy(){for(const t of _(this,M))t.destroy();S(this,M,[])}getSublayers(t){return _(this,M).slice()}__getRawSublayers(){return _(this,M)}}M=new WeakMap;const Di=ts("map:WMSLayer");var te,z,W,B,U,se,$e,_e,qt;class Ai extends fs{constructor(t){const s=new xi;super({...t,olLayer:s});C(this,se);C(this,_e);C(this,te,void 0);C(this,z,void 0);C(this,W,void 0);C(this,B,void 0);C(this,U,void 0);const i=new Ri({...t.sourceOptions,url:t.url,params:{...t.sourceOptions?.params}});S(this,te,t.url),S(this,U,i),S(this,B,s),S(this,z,new $t(Kt(t.sublayers))),ae(this,se,$e).call(this)}get url(){return _(this,te)}get sublayers(){return _(this,z)}__attach(t){super.__attach(t);for(const s of _(this,z).getSublayers())s.__attach(t,this,this)}__updateSublayerVisibility(){_(this,W)?.reschedule()||S(this,W,Oi(()=>{try{ae(this,se,$e).call(this),S(this,W,void 0)}catch(t){Di.error(`Failed to update sublayer visibility on WMS layer '${this.id}'.`,t)}}))}}te=new WeakMap,z=new WeakMap,W=new WeakMap,B=new WeakMap,U=new WeakMap,se=new WeakSet,$e=function(){const t=ae(this,_e,qt).call(this);_(this,U).updateParams({LAYERS:t});const s=t.length===0?null:_(this,U);_(this,B).getSource()!==s&&_(this,B).setSource(s)},_e=new WeakSet,qt=function(){const t=[],s=i=>{if(!i.visible)return;const n=i.sublayers.__getRawSublayers();if(n.length)for(const r of n)s(r);else t.push(i.name)};for(const i of this.sublayers.__getRawSublayers())s(i);return t};var A,k,ie,ne,H;class Fi extends _s{constructor(t){super(t);C(this,A,void 0);C(this,k,void 0);C(this,ie,void 0);C(this,ne,void 0);C(this,H,void 0);S(this,ie,t.name),S(this,H,t.visible??!0),S(this,ne,new $t(Kt(t.sublayers)))}get name(){return _(this,ie)}get sublayers(){return _(this,ne)}get parent(){const t=_(this,A);if(!t)throw new Error(`WMS sublayer ${this.id} has not been attached to its parent yet.`);return t}get parentLayer(){const t=_(this,k);if(!t)throw new Error(`WMS sublayer ${this.id} has not been attached to its parent yet.`);return t}__attach(t,s,i){if(super.__attachToMap(t),_(this,A))throw new Error(`WMS sublayer '${this.id}' has already been attached to parent '${_(this,A).id}'`);if(S(this,A,i),_(this,k))throw new Error(`WMS sublayer '${this.id}' has already been attached to parent layer '${_(this,k).id}'`);S(this,k,s);for(const n of this.sublayers.__getRawSublayers())n.__attach(t,s,this)}get visible(){return _(this,H)}setVisible(t){this.visible!==t&&(S(this,H,t),_(this,k)?.__updateSublayerVisibility(),this.__emitChangeEvent("changed:visible"))}}A=new WeakMap,k=new WeakMap,ie=new WeakMap,ne=new WeakMap,H=new WeakMap;function Kt(o=[]){const e=[];try{for(const t of o)e.push(new Fi(t));return e}catch(t){for(;e.length;)e.pop()?.destroy();throw new Error("Failed to construct sublayers.",{cause:t})}}const Yt=Ai,Ni=25.4/.28,ji=39.37;function Ze(o){return Qe(o,Vi,Gi)}function Vi(o){return o.getView()}function Gi(o,e){return o.on("change:view",e)}function Xt(o){return Ze(o)?.getProjection()}function zi(o){const e=Ze(o);return Qe(e,Wi,Bi)}function Wi(o){return o.getResolution()}function Bi(o,e){return o.on("change:resolution",e)}function Ui(o){const e=Ze(o);return Qe(e,Hi,$i)}function Hi(o){return o.getCenter()}function $i(o,e){return o.on("change:center",e)}function qi(o){const e=Ui(o),t=zi(o),s=Xt(o);return w.useMemo(()=>{if(s==null||t==null||e==null)return;const n=Be(s,t,e);return Math.round(n*ji*Ni)},[s,t,e])}function Qe(o,e,t){const s=w.useCallback(()=>o?e(o):void 0,[o,e]),i=w.useCallback(n=>{if(!o)return()=>{};const r=t(o,n);return()=>X(r)},[o,t]);return w.useSyncExternalStore(i,s)}const T="main";class Ki{mapId=T;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},projection:"EPSG:25832",layers:[new N({id:"topplus_open",title:"TopPlus Open",isBaseLayer:!0,visible:!0,olLayer:Ne("web")}),new N({id:"topplus_open_grau",title:"TopPlus Open (Grau)",isBaseLayer:!0,visible:!1,olLayer:Ne("web_grau")}),new N({id:"topplus_open_light",title:"TopPlus Open (Light)",isBaseLayer:!0,visible:!1,olLayer:Ne("web_light")}),new N({title:"OSM",visible:!1,isBaseLayer:!0,olLayer:new Ye({source:new Mt})}),new N({title:"Haltestellen Stadt Rostock",visible:!0,description:"Haltestellen des öffentlichen Personenverkehrs in der Hanse- und Universitätsstadt Rostock.",olLayer:Yi()}),new N({title:"Kindertagesstätten",visible:!0,olLayer:Xi()}),Zi(),Qi()]}}}function Ne(o){const e=[-380316598427299e-8,880590808284866e-8],t=[4891.96981025128,2445.98490512564,1222.99245256282,611.49622628141,305.748113140705,152.874056570353,76.4370282851763,38.2185141425881,19.1092570712941,9.55462853564703,4.77731426782352,2.38865713391176,1.19432856695588,.59716428347794],s=new Array(t.length);for(let n=0;nDatenquellen`});return new Ye({source:i})}function Yi(){const o=new xe({url:"https://geo.sv.rostock.de/download/opendata/haltestellen/haltestellen.json",format:new Nt,attributions:"Haltestellen Stadt Rostock, Creative Commons CC Zero License (cc-zero)"});return new Se({source:o})}function Xi(){const o=new xe({url:"https://ogc-api.nrw.de/inspire-us-kindergarten/v1/collections/governmentalservice/items?f=json&limit=10000",format:new Nt,attributions:'© Bundesamt für Kartographie und Geodäsie 2017, Datenquellen'});return new Se({source:o})}function Zi(){return new Yt({title:"Schulstandorte",description:"Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.Der vorliegende Datenbestand / Dienst zu den Schulstandorten in NRW stammt aus der Schuldatenbank. Die Informationen werden von den Schulträgern bzw. Schulen selbst eingetragen und aktuell gehalten. Die Daten werden tagesaktuell bereitgestellt und enthalten alle grundlegenden Informationen zu Schulen wie Schulnummer, Schulbezeichnung und Adresse.",visible:!0,url:"https://www.wms.nrw.de/wms/wms_nw_inspire-schulen",sublayers:[{name:"US.education",title:"INSPIRE - WMS Schulstandorte NRW"}],sourceOptions:{ratio:1}})}function Qi(){return new Yt({title:"Straßennetz Landesbetrieb Straßenbau NRW",url:"https://www.wms.nrw.de/wms/strassen_nrw_wms",sublayers:[{name:"1",title:"Verwaltungen"},{name:"4",title:"Abschnitte und Äste"},{name:"6",title:"Unfälle"}]})}class Ee extends vs{constructor(e,t,s){super(),s!==void 0&&t===void 0?this.setFlatCoordinates(s,e):(t=t||0,this.setCenterAndRadius(e,t,s))}clone(){const e=new Ee(this.flatCoordinates.slice(),void 0,this.layout);return e.applyProperties(this),e}closestPointXY(e,t,s,i){const n=this.flatCoordinates,r=e-n[0],a=t-n[1],l=r*r+a*a;if(l=s[0]||e[1]<=s[1]&&e[3]>=s[1]?!0:bs(e,this.intersectsCoordinate.bind(this))}return!1}setCenter(e){const t=this.stride,s=this.flatCoordinates[t]-this.flatCoordinates[0],i=e.slice();i[t]=i[0]+s;for(let n=1;n=t?o[e-t]:o[e]}function ge(o,e,t){let s,i;er){const l=V(o,s),h=V(o,i);return ue(l,h)}let a=0;if(sp.startIndex?fp.startIndex&&(f-=g.length)),l=f,a=d)}const h=e.targets[a];let c=h.ring;if(e.targetIndex===a&&c){const d=V(h.coordinates,l),p=t.getPixelFromCoordinate(d);kt(p,e.startPx)>s&&(c=!1)}if(c){const d=h.coordinates,p=d.length,g=h.startIndex,m=l;if(g=t?s-=t:s<0&&(s+=t);let n=s+1;n>=t&&(n-=t);const r=o[s],a=r[0],l=r[1],h=o[n],c=h[0]-a,d=h[1]-l;return[a+c*i,l+d*i]}class sn extends Ss{constructor(e){const t=e;t.stopDown||(t.stopDown=Cs),super(t),this.on,this.once,this.un,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=on(this.type_),this.stopClick_=!!e.stopClick,this.minPoints_=e.minPoints?e.minPoints:this.mode_==="Polygon"?3:2,this.maxPoints_=this.mode_==="Circle"?2:e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:Es,this.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";let s=e.geometryFunction;if(!s){const i=this.mode_;if(i==="Circle")s=function(n,r,a){const l=r||new Ji([NaN,NaN]),h=ct(n[0]),c=Is(h,ct(n[n.length-1]));return l.setCenterAndRadius(h,Math.sqrt(c),this.geometryLayout_),l};else{let n;i==="Point"?n=ke:i==="LineString"?n=G:i==="Polygon"&&(n=be),s=function(r,a,l){return a?i==="Polygon"?r[0].length?a.setCoordinates([r[0].concat([r[0][0]])],this.geometryLayout_):a.setCoordinates([],this.geometryLayout_):a.setCoordinates(r,this.geometryLayout_):a=new n(r,this.geometryLayout_),a}}}this.geometryFunction_=s,this.dragVertexDelay_=e.dragVertexDelay!==void 0?e.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new Se({source:new xe({useSpatialIndex:!1,wrapX:e.wrapX?e.wrapX:!1}),style:e.style?e.style:nn(),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:Ls,this.freehandCondition_,e.freehand?this.freehandCondition_=ht:this.freehandCondition_=e.freehandCondition?e.freehandCondition:Ts,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSource_=e.traceSource||e.source||null,this.addChangeListener(Ps.ACTIVE,this.updateState_)}setTrace(e){let t;e?e===!0?t=ht:t=e:t=Os,this.traceCondition_=t}setMap(e){super.setMap(e),this.updateState_()}getOverlay(){return this.overlay_}handleEvent(e){e.originalEvent.type===we.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!=="Point"&&this.freehandCondition_(e);let t=e.type===P.POINTERMOVE,s=!0;return!this.freehand_&&this.lastDragTime_&&e.type===P.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&this.downTimeout_!==void 0&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&e.type===P.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(e.coordinate),s=!1):this.freehand_&&e.type===P.POINTERDOWN?s=!1:t&&this.getPointerCount()<2?(s=e.type===P.POINTERMOVE,s&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):(e.originalEvent.pointerType==="mouse"||e.type===P.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(e)):e.type===P.DBLCLICK&&(s=!1),super.handleEvent(e)&&s}handleDownEvent(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(()=>{this.handlePointerMove_(new Ms(P.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))},this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active){this.deactivateTrace_();return}const t=this.getMap(),s=t.getCoordinateFromPixel([e.pixel[0]-this.snapTolerance_,e.pixel[1]+this.snapTolerance_]),i=t.getCoordinateFromPixel([e.pixel[0]+this.snapTolerance_,e.pixel[1]-this.snapTolerance_]),n=ks([s,i]),r=this.traceSource_.getFeaturesInExtent(n);if(r.length===0)return;const a=en(e.coordinate,r);a.length&&(this.traceState_={active:!0,startPx:e.pixel.slice(),targets:a,targetIndex:-1})}addOrRemoveTracedCoordinates_(e,t){const s=e.startIndex<=e.endIndex,i=e.startIndex<=t;s===i?s&&t>e.endIndex||!s&&te.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}removeTracedCoordinates_(e,t){if(e===t)return;let s=0;if(e0&&this.removeLastPoints_(s)}addTracedCoordinates_(e,t,s){if(t===s)return;const i=[];if(t=r;--a)i.push(j(e.coordinates,a))}i.length&&this.appendCoordinates(i)}updateTrace_(e){const t=this.traceState_;if(!t.active||t.targetIndex===-1&&kt(t.startPx,e.pixel)this.squaredClickTolerance_:r<=this.squaredClickTolerance_,!this.shouldHandle_)return}if(!this.finishCoordinate_){this.createOrUpdateSketchPoint_(e.coordinate.slice());return}this.updateTrace_(e),this.modifyDrawing_(e.coordinate)}atFinish_(e,t){let s=!1;if(this.sketchFeature_){let i=!1,n=[this.finishCoordinate_];const r=this.mode_;if(r==="Point")s=!0;else if(r==="Circle")s=this.sketchCoords_.length===2;else if(r==="LineString")i=!t&&this.sketchCoords_.length>this.minPoints_;else if(r==="Polygon"){const a=this.sketchCoords_;i=a[0].length>this.minPoints_,n=[a[0][0],a[0][a[0].length-2]],t?n=[a[0][0]]:n=[a[0][0],a[0][a[0].length-2]]}if(i){const a=this.getMap();for(let l=0,h=n.length;l=this.maxPoints_&&(this.freehand_?n.pop():i=!0),n.push(e.slice()),this.geometryFunction_(n,t,s)):r==="Polygon"&&(n=this.sketchCoords_[0],n.length>=this.maxPoints_&&(this.freehand_?n.pop():i=!0),n.push(e.slice()),i&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,t,s)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),i&&this.finishDrawing()}removeLastPoints_(e){if(!this.sketchFeature_)return;const t=this.sketchFeature_.getGeometry(),s=this.getMap().getView().getProjection(),i=this.mode_;for(let n=0;n=2){this.finishCoordinate_=r[r.length-2].slice();const a=this.finishCoordinate_.slice();r[r.length-1]=a,this.createOrUpdateSketchPoint_(a)}this.geometryFunction_(r,t,s),t.getType()==="Polygon"&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(i==="Polygon"){r=this.sketchCoords_[0],r.splice(-2,1);const a=this.sketchLine_.getGeometry();if(r.length>=2){const l=r[r.length-2].slice();r[r.length-1]=l,this.createOrUpdateSketchPoint_(l)}a.setCoordinates(r),this.geometryFunction_(this.sketchCoords_,t,s)}if(r.length===1){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){const e=this.abortDrawing_();if(!e)return;let t=this.sketchCoords_;const s=e.getGeometry(),i=this.getMap().getView().getProjection();this.mode_==="LineString"?(t.pop(),this.geometryFunction_(t,s,i)):this.mode_==="Polygon"&&(t[0].pop(),this.geometryFunction_(t,s,i),t=s.getCoordinates()),this.type_==="MultiPoint"?e.setGeometry(new ni([t])):this.type_==="MultiLineString"?e.setGeometry(new jt([t])):this.type_==="MultiPolygon"&&e.setGeometry(new Vt([t])),this.dispatchEvent(new de(he.DRAWEND,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}abortDrawing_(){this.finishCoordinate_=null;const e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),e}abortDrawing(){const e=this.abortDrawing_();e&&this.dispatchEvent(new de(he.DRAWABORT,e))}appendCoordinates(e){const t=this.mode_,s=!this.sketchFeature_;s&&this.startDrawing_(e[0]);let i;if(t==="LineString"||t==="Circle")i=this.sketchCoords_;else if(t==="Polygon")i=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[];else return;s&&i.shift(),i.pop();for(let r=0;rimport("./4700028c3f2c.js"),[],import.meta.url).then(e=>e.default);case"de":return ut(()=>import("./486860ac05a9.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${o}'`)}const un=ss(cn),gn=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:dn,locales:hn,packages:ln,styles:un},Symbol.toStringTag,{value:"Module"})),pn="@open-pioneer/coordinate-viewer",mn=ve.bind(void 0,pn),fn=4,_n=o=>{const{mapId:e,precision:t}=o,{containerProps:s}=ye("coordinate-viewer",o),{map:i}=oe(e),n=i?.olMap,{coordinates:r}=wn(n),a=vn(r,t),l=Xt(n)?.getCode()??"",h=a?a+" "+l:"";return u.jsx(R,{...s,children:u.jsx(Xe,{className:"coordinate-viewer-text",children:h})})};function vn(o,e){const t=mn();return o?bn(o,e,t):""}function wn(o){const[e,t]=w.useState();return w.useEffect(()=>{if(!o)return;const s=o.on("pointermove",i=>{t(i.coordinate)});return()=>X(s)},[o]),{coordinates:e}}function bn(o,e,t){if(o[0]==null||o[1]==null)return"";const s=e??fn,[i,n]=o,r=t.formatNumber(i,{maximumFractionDigits:s,minimumFractionDigits:s}),a=t.formatNumber(n,{maximumFractionDigits:s,minimumFractionDigits:s});return r+" "+a}const yn="@open-pioneer/measurement",xn=ve.bind(void 0,yn),x={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"};class Sn extends Fs{constructor(e){super(),this.on,this.once,this.un,this.options=e,this.id=e.id,this.insertFirst=e.insertFirst!==void 0?e.insertFirst:!0,this.stopEvent=e.stopEvent!==void 0?e.stopEvent:!0,this.element=document.createElement("div"),this.element.className=e.className!==void 0?e.className:"ol-overlay-container "+Ns,this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.autoPan=e.autoPan===!0?{}:e.autoPan||void 0,this.rendered={transform_:"",visible:!0},this.mapPostrenderListenerKey=null,this.addChangeListener(x.ELEMENT,this.handleElementChanged),this.addChangeListener(x.MAP,this.handleMapChanged),this.addChangeListener(x.OFFSET,this.handleOffsetChanged),this.addChangeListener(x.POSITION,this.handlePositionChanged),this.addChangeListener(x.POSITIONING,this.handlePositioningChanged),e.element!==void 0&&this.setElement(e.element),this.setOffset(e.offset!==void 0?e.offset:[0,0]),this.setPositioning(e.positioning||"top-left"),e.position!==void 0&&this.setPosition(e.position)}getElement(){return this.get(x.ELEMENT)}getId(){return this.id}getMap(){return this.get(x.MAP)||null}getOffset(){return this.get(x.OFFSET)}getPosition(){return this.get(x.POSITION)}getPositioning(){return this.get(x.POSITIONING)}handleElementChanged(){js(this.element);const e=this.getElement();e&&this.element.appendChild(e)}handleMapChanged(){this.mapPostrenderListenerKey&&(Vs(this.element),Ct(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);const e=this.getMap();if(e){this.mapPostrenderListenerKey=Ke(e,Ot.POSTRENDER,this.render,this),this.updatePixelPosition();const t=this.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this.insertFirst?t.insertBefore(this.element,t.childNodes[0]||null):t.appendChild(this.element),this.performAutoPan()}}render(){this.updatePixelPosition()}handleOffsetChanged(){this.updatePixelPosition()}handlePositionChanged(){this.updatePixelPosition(),this.performAutoPan()}handlePositioningChanged(){this.updatePixelPosition()}setElement(e){this.set(x.ELEMENT,e)}setMap(e){this.set(x.MAP,e)}setOffset(e){this.set(x.OFFSET,e)}setPosition(e){this.set(x.POSITION,e)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(e){const t=this.getMap();if(!t||!t.getTargetElement()||!this.get(x.POSITION))return;const s=this.getRect(t.getTargetElement(),t.getSize()),i=this.getElement(),n=this.getRect(i,[Gs(i),zs(i)]);e=e||{};const r=e.margin===void 0?20:e.margin;if(!ee(s,n)){const a=n[0]-s[0],l=s[2]-n[2],h=n[1]-s[1],c=s[3]-n[3],d=[0,0];if(a<0?d[0]=a-r:l<0&&(d[0]=Math.abs(l)+r),h<0?d[1]=h-r:c<0&&(d[1]=Math.abs(c)+r),d[0]!==0||d[1]!==0){const p=t.getView().getCenterInternal(),g=t.getPixelFromCoordinateInternal(p);if(!g)return;const m=[g[0]+d[0],g[1]+d[1]],f=e.animation||{};t.getView().animateInternal({center:t.getCoordinateFromPixelInternal(m),duration:f.duration,easing:f.easing})}}}getRect(e,t){const s=e.getBoundingClientRect(),i=s.left+window.pageXOffset,n=s.top+window.pageYOffset;return[i,n,i+t[0],n+t[1]]}setPositioning(e){this.set(x.POSITIONING,e)}setVisible(e){this.rendered.visible!==e&&(this.element.style.display=e?"":"none",this.rendered.visible=e)}updatePixelPosition(){const e=this.getMap(),t=this.getPosition();if(!e||!e.isRendered()||!t){this.setVisible(!1);return}const s=e.getPixelFromCoordinate(t),i=e.getSize();this.updateRenderedPosition(s,i)}updateRenderedPosition(e,t){const s=this.element.style,i=this.getOffset(),n=this.getPositioning();this.setVisible(!0);const r=Math.round(e[0]+i[0])+"px",a=Math.round(e[1]+i[1])+"px";let l="0%",h="0%";n=="bottom-right"||n=="center-right"||n=="top-right"?l="-100%":(n=="bottom-center"||n=="center-center"||n=="top-center")&&(l="-50%"),n=="bottom-left"||n=="bottom-center"||n=="bottom-right"?h="-100%":(n=="center-left"||n=="center-center"||n=="center-right")&&(h="-50%");const c=`translate(${l}, ${h}) translate(${r}, ${a})`;this.rendered.transform_!=c&&(this.rendered.transform_=c,s.transform=c)}getOptions(){return this.options}}const qe=Sn;class Cn{olMap;messages;activeFeatureStyle;layer;source;draw=void 0;sketch=void 0;helpTooltip;measureTooltip;overlayTooltips=[];resources=[];constructor(e,t){this.olMap=e,this.messages=t;const s=this.source=new xe;this.layer=new Se({source:s}),e.addLayer(this.layer);const i=e.on("pointermove",this.handlePointerMove.bind(this));this.resources.push({destroy(){X(i)}});const n=()=>{this.helpTooltip.element.classList.add("hidden")};e.getViewport().addEventListener("mouseout",n),this.resources.push({destroy(){e.getViewport().removeEventListener("mouseout",n)}}),this.helpTooltip=this.createHelpTooltip()}destroy(){this.stopMeasurement();for(const e of this.resources)e.destroy();this.resources=[],this.helpTooltip.destroy(),this.measureTooltip?.destroy();for(const e of this.overlayTooltips)e.destroy();this.overlayTooltips=[],this.olMap.removeLayer(this.layer),this.layer.dispose(),this.source.dispose()}getVectorLayer(){return this.layer}setFinishedFeatureStyle(e){this.layer.setStyle(e)}setActiveFeatureStyle(e){const t=ai(e);this.activeFeatureStyle=(s,...i)=>{const n=s?.getGeometry()?.getType();if(n==="Polygon"||n==="LineString"||n==="Point")return t(s,...i)},this.draw?.getOverlay().setStyle(this.activeFeatureStyle)}clearMeasurements(){this.source.clear();for(const e of this.overlayTooltips)e.destroy();this.overlayTooltips=[]}startMeasurement(e){if(this.draw)throw new Error("Internal error: another measurement interaction is still active.");const t=e==="area"?"Polygon":"LineString",s=this.draw=new rn({source:this.source,type:t,style:this.activeFeatureStyle});this.olMap.addInteraction(s);let i,n;s.on("drawstart",r=>{i=this.measureTooltip=this.createMeasureTooltip();const a=this.sketch=r.feature;if(!a)return;let l;n=a.getGeometry()?.on("change",h=>{const c=h.target,d=this.olMap.getView().getProjection();let p="";c instanceof be?(p=In(c,d,this.messages),l=c.getInteriorPoint().getCoordinates()||null):c instanceof G&&(p=Ln(c,d,this.messages),l=c.getLastCoordinate()||null),i&&(i.element.innerHTML=p,l&&i?.overlay.setPosition(l))})}),s.on("drawend",()=>{if(i){const r=i.element.classList;r.remove("measurement-active-tooltip"),r.add("measurement-finished-tooltip"),i.overlay.setOffset([0,-7]),this.overlayTooltips.push(i),this.measureTooltip=i=void 0}this.sketch=void 0,n&&X(n)}),s.on("drawabort",()=>{i&&(i.destroy(),this.measureTooltip=i=void 0),this.sketch=void 0,n&&X(n)})}stopMeasurement(){this.draw&&(this.olMap.removeInteraction(this.draw),this.draw.abortDrawing(),this.draw.dispose(),this.draw=void 0),this.sketch=void 0,this.measureTooltip?.destroy(),this.measureTooltip=void 0}createMeasureTooltip(){const e=document.createElement("div");e.className="measurement-tooltip measurement-active-tooltip";const t=new qe({element:e,offset:[0,-15],positioning:"bottom-center",stopEvent:!1,insertFirst:!1}),s=this.olMap;return s.addOverlay(t),{overlay:t,element:e,destroy(){s.removeOverlay(t)}}}createHelpTooltip(){const e=document.createElement("div");e.className="measurement-tooltip hidden";const t=new qe({element:e,offset:[15,0],positioning:"center-left"}),s=this.olMap;return s.addOverlay(t),{overlay:t,element:e,destroy(){s.removeOverlay(t)}}}handlePointerMove(e){if(e.dragging)return;const t=this.helpTooltip,s=En(this.messages,this.sketch);t.element.textContent=s,t.overlay.setPosition(e.coordinate),t.element.classList.remove("hidden")}}function En(o,e){if(e){const t=e.getGeometry();if(t instanceof be||t instanceof G)return o.getContinueMessage()}return o.getHelpMessage()}function In(o,e,t){const s=Ws(o,{projection:e});let i;return s>=1e6?i=`${t.formatNumber(s/1e6)} km2`:i=`${t.formatNumber(s)} m2`,i}function Ln(o,e,t){const s=Bs(o,{projection:e});let i;return s>=1e3?i=`${t.formatNumber(s/1e3)} km`:i=`${t.formatNumber(s)} m`,i}const Tn=o=>{const e=xn(),{mapId:t,activeFeatureStyle:s,finishedFeatureStyle:i}=o,{containerProps:n}=ye("measurement",o),[r,a]=w.useState("distance"),l=g=>e.formatMessage({id:g}),h=oe(t),c=Pn(h.map,e);w.useEffect(()=>{c?.setActiveFeatureStyle(s??Mn())},[c,s]),w.useEffect(()=>{c?.setFinishedFeatureStyle(i??kn())},[c,i]),w.useEffect(()=>{if(c)return c.startMeasurement(r),()=>{c.stopMeasurement()}},[c,r]);function d(g){if(g==="distance"||g==="area")a(g);else throw new Error(`Unexpected measurement type: '${g}'.`)}function p(){c?.clearMeasurements()}return u.jsxs(R,{...n,children:[u.jsx(Xe,{width:"340px",mb:3,children:e.formatMessage({id:"measurementInfoText"})}),u.jsx(gi,{mb:4,alignItems:"center",children:u.jsxs(Gt,{mb:2,children:[u.jsx(mi,{mb:1,children:l("measurementLabel")}),u.jsxs(fi,{value:r,onChange:g=>d(g.target.value),className:"measurement-select",children:[u.jsx("option",{value:"distance",children:l("distance")}),u.jsx("option",{value:"area",children:l("area")})]})]})}),u.jsx(We,{padding:2,className:"measurement-delete-button",onClick:p,width:"100%",children:l("deleteMeasurementLabel")})]})};function Pn(o,e){const[t,s]=w.useState(void 0);return w.useEffect(()=>{if(!o)return;const i=new Cn(o.olMap,{getContinueMessage(){return e.formatMessage({id:"tooltips.continue"})},getHelpMessage(){return e.formatMessage({id:"tooltips.help"})},formatNumber(n){return e.formatNumber(n,{maximumFractionDigits:2})}});return s(i),()=>{i.destroy(),s(void 0)}},[o,e]),t}function Mn(){return[new fe({stroke:new Z({color:"#fff",lineDash:[10,10],width:5})}),new fe({fill:new Ue({color:"rgba(0,0,0,0.15)"}),stroke:new Z({color:"rgba(0, 0, 0, 0.7)",lineDash:[10,10],width:3}),image:new li({radius:5,stroke:new Z({color:"rgba(0, 0, 0, 0.7)",width:2}),fill:new Ue({color:"rgba(255, 255, 255, 0.2)"})})})]}function kn(){return[new fe({stroke:new Z({color:"#fff",width:5})}),new fe({stroke:new Z({color:"#0b96fc",width:3}),fill:new Ue({color:"rgba(11,150,252,0.15)"})})]}const Ge=.75,me=.1;let Rn=class extends Dt{constructor(e){e=e||{},super({element:document.createElement("div"),render:e.render,target:e.target}),this.boundHandleRotationChanged_=this.handleRotationChanged_.bind(this),this.collapsed_=e.collapsed!==void 0?e.collapsed:!0,this.collapsible_=e.collapsible!==void 0?e.collapsible:!0,this.collapsible_||(this.collapsed_=!1),this.rotateWithView_=e.rotateWithView!==void 0?e.rotateWithView:!1,this.viewExtent_=void 0;const t=e.className!==void 0?e.className:"ol-overviewmap",s=e.tipLabel!==void 0?e.tipLabel:"Overview map",i=e.collapseLabel!==void 0?e.collapseLabel:"‹";typeof i=="string"?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=i):this.collapseLabel_=i;const n=e.label!==void 0?e.label:"›";typeof n=="string"?(this.label_=document.createElement("span"),this.label_.textContent=n):this.label_=n;const r=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,a=document.createElement("button");a.setAttribute("type","button"),a.title=s,a.appendChild(r),a.addEventListener(we.CLICK,this.handleClick_.bind(this),!1),this.ovmapDiv_=document.createElement("div"),this.ovmapDiv_.className="ol-overviewmap-map",this.view_=e.view;const l=new Us({view:e.view,controls:new gt,interactions:new gt});this.ovmap_=l,e.layers&&e.layers.forEach(function(b){l.addLayer(b)});const h=document.createElement("div");h.className="ol-overviewmap-box",h.style.boxSizing="border-box",this.boxOverlay_=new qe({position:[0,0],positioning:"center-center",element:h}),this.ovmap_.addOverlay(this.boxOverlay_);const c=t+" "+At+" "+Hs+(this.collapsed_&&this.collapsible_?" "+pt:"")+(this.collapsible_?"":" ol-uncollapsible"),d=this.element;d.className=c,d.appendChild(this.ovmapDiv_),d.appendChild(a);const p=this,g=this.boxOverlay_,m=this.boxOverlay_.getElement(),f=function(b){return{clientX:b.clientX,clientY:b.clientY}},v=function(b){const y=f(b),D=l.getEventCoordinateInternal(y);g.setPosition(D)},I=function(b){const y=l.getEventCoordinateInternal(b);p.getMap().getView().setCenterInternal(y),window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",I)};m.addEventListener("mousedown",function(){window.addEventListener("mousemove",v),window.addEventListener("mouseup",I)})}setMap(e){const t=this.getMap();if(e!==t){if(t){const s=t.getView();s&&this.unbindView_(s),this.ovmap_.setTarget(null)}if(super.setMap(e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(Ke(e,$s.PROPERTYCHANGE,this.handleMapPropertyChange_,this));const s=e.getView();s&&(this.bindView_(s),s.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}}handleMapPropertyChange_(e){if(e.key===Re.VIEW){const t=e.oldValue;t&&this.unbindView_(t);const s=this.getMap().getView();this.bindView_(s)}else!this.ovmap_.isRendered()&&(e.key===Re.TARGET||e.key===Re.SIZE)&&this.ovmap_.updateSize()}bindView_(e){if(!this.view_){const t=new qs({projection:e.getProjection()});this.ovmap_.setView(t)}e.addChangeListener(mt.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_()}unbindView_(e){e.removeChangeListener(mt.ROTATION,this.boundHandleRotationChanged_)}handleRotationChanged_(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())}validateExtent_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const s=e.getSize(),n=e.getView().calculateExtentInternal(s);if(this.viewExtent_&&Et(n,this.viewExtent_))return;this.viewExtent_=n;const r=t.getSize(),l=t.getView().calculateExtentInternal(r),h=t.getPixelFromCoordinateInternal(Ks(n)),c=t.getPixelFromCoordinateInternal(Ys(n)),d=Math.abs(h[0]-c[0]),p=Math.abs(h[1]-c[1]),g=r[0],m=r[1];dg*Ge||p>m*Ge?this.resetExtent_():ee(l,n)||this.recenter_()}resetExtent_(){const e=this.getMap(),t=this.ovmap_,s=e.getSize(),n=e.getView().calculateExtentInternal(s),r=t.getView(),a=Math.log(Ge/me)/Math.LN2,l=1/(Math.pow(2,a/2)*me);Xs(n,l),r.fitInternal(Zs(n))}recenter_(){const e=this.getMap(),t=this.ovmap_,s=e.getView();t.getView().setCenterInternal(s.getCenterInternal())}updateBox_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const s=e.getSize(),i=e.getView(),n=t.getView(),r=this.rotateWithView_?0:-i.getRotation(),a=this.boxOverlay_,l=this.boxOverlay_.getElement(),h=i.getCenterInternal(),c=i.getResolution(),d=n.getResolution(),p=s[0]*c/d,g=s[1]*c/d;if(a.setPosition(h),l){l.style.width=p+"px",l.style.height=g+"px";const m="rotate("+r+"rad)";l.style.transform=m}}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=Qs(this.ovmap_,Ot.POSTRENDER,function(e){delete this.ovmapPostrenderKey_,this.updateBox_()},this))}handleClick_(e){e.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(pt),this.collapsed_?ft(this.collapseLabel_,this.label_):ft(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;const e=this.ovmap_;if(!this.collapsed_){if(e.isRendered()){this.viewExtent_=void 0,e.render();return}e.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())}setCollapsed(e){!this.collapsible_||this.collapsed_===e||this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(e){this.rotateWithView_!==e&&(this.rotateWithView_=e,this.getMap().getView().getRotation()!==0&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))}getOverviewMap(){return this.ovmap_}render(e){this.validateExtent_(),this.updateBox_()}};const On=Rn,ze="units",Dn=[1,2,5],Y=25.4/.28;class An extends Dt{constructor(e){e=e||{};const t=document.createElement("div");t.style.pointerEvents="none",super({element:t,render:e.render,target:e.target}),this.on,this.once,this.un;const s=e.className!==void 0?e.className:e.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=s+"-inner",this.element.className=s+" "+At,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=e.minWidth!==void 0?e.minWidth:64,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(ze,this.handleUnitsChanged_),this.setUnits(e.units||"metric"),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(ze)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(ze,e)}setDpi(e){this.dpi_=e}updateElement_(){const e=this.viewState_;if(!e){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const t=e.center,s=e.projection,i=this.getUnits(),n=i=="degrees"?"degrees":"m";let r=Be(s,e.resolution,t,n);const a=this.minWidth_*(this.dpi_||Y)/Y,l=this.maxWidth_!==void 0?this.maxWidth_*(this.dpi_||Y)/Y:void 0;let h=a*r,c="";if(i=="degrees"){const y=Js.degrees;h*=y,h=l){p=f,g=v,m=I;break}else if(g>=a)break;f=p,v=g,I=m,++d}const b=this.scaleBar_?this.createScaleBar(g,p,c):p.toFixed(m<0?-m:0)+" "+c;this.renderedHTML_!=b&&(this.innerElement_.innerHTML=b,this.renderedHTML_=b),this.renderedWidth_!=g&&(this.innerElement_.style.width=g+"px",this.renderedWidth_=g),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(e,t,s){const i=this.getScaleForResolution(),n=i<1?Math.round(1/i).toLocaleString()+" : 1":"1 : "+Math.round(i).toLocaleString(),r=this.scaleBarSteps_,a=e/r,l=[this.createMarker("absolute")];for(let c=0;c
`+this.createMarker("relative")+(c%2===0||r===2?this.createStepText(c,e,!1,t,s):"")+"")}return l.push(this.createStepText(r,e,!0,t,s)),(this.scaleBarText_?`
`+n+"
":"")+l.join("")}createMarker(e){return`
`}createStepText(e,t,s,i,n){const a=(e===0?0:Math.round(i/this.scaleBarSteps_*e*100)/100)+(e===0?"":" "+n),l=e===0?-3:t/this.scaleBarSteps_*-1,h=e===0?0:t/this.scaleBarSteps_*2;return`
`+a+"
"}getScaleForResolution(){const e=Be(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m"),t=this.dpi_||Y,s=1e3/25.4;return e*s*t}render(e){const t=e.frameState;t?this.viewState_=t.viewState:this.viewState_=null,this.updateElement_()}}const Fn=An,Nn=o=>{const{mapId:e,olLayer:t}=o,{containerProps:s}=ye("overview-map",o),i=w.useRef(null),{map:n}=oe(e);return w.useEffect(()=>{if(i.current&&n&&t){const r=n.olMap,a=new On({className:"ol-overviewmap",layers:[t],collapsible:!1,collapsed:!1,target:i.current});return r.addControl(a),()=>{r.removeControl(a)}}},[n,t]),u.jsx(R,{ref:i,...s})},jn="@open-pioneer/scale-viewer",Vn=ve.bind(void 0,jn),Gn=o=>{const{mapId:e}=o,{containerProps:t}=ye("scale-viewer",o),{map:s}=oe(e),i=Vn(),n=qi(s?.olMap),r=n?i.formatNumber(n):void 0;return u.jsx(R,{...t,children:r&&u.jsxs(Xe,{children:["1:",r]})})};function zn(o){const{mapId:e,...t}=o,s=w.useRef(null),{map:i}=oe(e);return w.useEffect(()=>{if(s.current&&i){const n=i.olMap,r=new Fn({units:"metric",target:s.current});return n.addControl(r),()=>{n.removeControl(r)}}},[i]),u.jsx("div",{className:"scale-wrapper",ref:s,...t})}const Wn="ol-map",Bn=ve.bind(void 0,Wn);function Un(o){return Ce({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M235.32,96,96,235.31a16,16,0,0,1-22.63,0L20.68,182.63a16,16,0,0,1,0-22.63l29.17-29.17a4,4,0,0,1,5.66,0l34.83,34.83a8,8,0,0,0,11.71-.43,8.18,8.18,0,0,0-.6-11.09L66.82,119.51a4,4,0,0,1,0-5.65l15-15a4,4,0,0,1,5.66,0l34.83,34.83a8,8,0,0,0,11.71-.43,8.18,8.18,0,0,0-.6-11.09L98.83,87.51a4,4,0,0,1,0-5.65l15-15a4,4,0,0,1,5.65,0l34.83,34.83a8,8,0,0,0,11.72-.43,8.18,8.18,0,0,0-.61-11.09L130.83,55.51a4,4,0,0,1,0-5.65L160,20.69a16,16,0,0,1,22.63,0l52.69,52.68A16,16,0,0,1,235.32,96Z"}}]})(o)}function Hn(o){return Ce({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M233.91,74.79,181.22,22.1a14,14,0,0,0-19.8,0L22.09,161.41a14,14,0,0,0,0,19.8L74.78,233.9a14,14,0,0,0,19.8,0L233.91,94.59A14,14,0,0,0,233.91,74.79ZM225.42,86.1,86.1,225.41h0a2,2,0,0,1-2.83,0L30.58,172.73a2,2,0,0,1,0-2.83L64,136.48l27.76,27.76a6,6,0,1,0,8.48-8.48L72.48,128,96,104.48l27.76,27.76a6,6,0,0,0,8.48-8.48L104.48,96,128,72.49l27.76,27.75a6,6,0,0,0,8.48-8.48L136.49,64,169.9,30.59a2,2,0,0,1,2.83,0l52.69,52.68A2,2,0,0,1,225.42,86.1Z"}}]})(o)}function $n(o){return Ce({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M205.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L131.31,128ZM51.31,128l74.35-74.34a8,8,0,0,0-11.32-11.32l-80,80a8,8,0,0,0,0,11.32l80,80a8,8,0,0,0,11.32-11.32Z"}}]})(o)}function qn(o){return Ce({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z"}}]})(o)}function Kn(){const o=Bn(),e=w.useId(),t=w.useId(),[s,i]=w.useState(!1),[n,r]=w.useState(!0);function a(){i(!s)}function l(){r(!n)}const h=w.useMemo(()=>new Ye({source:new Mt}),[]);return u.jsx(ce,{height:"100%",direction:"column",overflow:"hidden",children:u.jsxs(De,{title:u.jsx(R,{role:"region","aria-label":o.formatMessage({id:"ariaLabel.header"}),textAlign:"center",py:1,children:u.jsx(Ae,{size:"md",children:"OpenLayers Base Packages - Default Sample"})}),children:[u.jsx(ce,{flex:"1",direction:"column",position:"relative",children:u.jsxs(ei,{mapId:T,role:"main","aria-label":o.formatMessage({id:"ariaLabel.map"}),children:[u.jsx(Oe,{position:"top-left",horizontalGap:20,verticalGap:20,children:u.jsxs(R,{backgroundColor:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:[u.jsx(R,{role:"dialog","aria-labelledby":e,children:u.jsx(De,{title:u.jsx(Ae,{id:e,size:"md",mb:2,children:o.formatMessage({id:"tocTitle"})}),children:u.jsx(ci,{mapId:T,basemapSwitcherProps:{allowSelectingEmptyBasemap:!0}})})}),s&&u.jsx(R,{role:"dialog","aria-labelledby":t,mt:5,children:u.jsx(De,{title:u.jsx(Ae,{id:t,size:"md",mb:2,children:o.formatMessage({id:"measurementTitle"})}),children:u.jsx(Tn,{mapId:T})})})]})}),u.jsx(Oe,{position:"top-right",horizontalGap:10,verticalGap:10,children:n&&u.jsx(Nn,{mapId:T,olLayer:h})}),u.jsx(Oe,{position:"bottom-right",horizontalGap:10,verticalGap:30,children:u.jsxs(ce,{role:"toolbar","aria-label":o.formatMessage({id:"ariaLabel.toolbar"}),direction:"column",gap:1,padding:1,children:[u.jsx(st,{label:o.formatMessage({id:"overviewMapTitle"}),placement:"auto",openDelay:500,children:u.jsx(We,{"aria-label":o.formatMessage({id:"overviewMapTitle"}),leftIcon:n?u.jsx(qn,{}):u.jsx($n,{}),onClick:l,iconSpacing:0,padding:0})}),u.jsx(st,{label:o.formatMessage({id:"measurementTitle"}),placement:"auto",openDelay:500,children:u.jsx(We,{"aria-label":o.formatMessage({id:"measurementTitle"}),leftIcon:s?u.jsx(Un,{}):u.jsx(Hn,{}),onClick:a,iconSpacing:0,padding:0})}),u.jsx(hi,{mapId:T}),u.jsx(di,{mapId:T}),u.jsx(ui,{mapId:T})]})})]})}),u.jsxs(ce,{role:"region","aria-label":o.formatMessage({id:"ariaLabel.footer"}),gap:3,alignItems:"center",justifyContent:"center",children:[u.jsx(_n,{mapId:T,precision:2}),u.jsx(zn,{mapId:T}),u.jsx(Gn,{mapId:T})]})]})})}const Yn=is({component:Kn,appMetadata:gn,openShadowRoot:!0,async resolveConfig(o){const e=o.getAttribute("forced-locale");if(e)return{locale:e}}});customElements.define("ol-map-app",Yn);const Xn=document.getElementsByTagName("body")[0];Zn();function Zn(){const o=window.location.search,t=new URLSearchParams(o).get("lang"),s=document.createElement("ol-map-app");s.classList.add("full-height"),s.classList.add("app"),s.setAttribute("id","test"),t&&s.setAttribute("forced-locale",t),Xn.appendChild(s)} diff --git a/openlayers-base-packages/assets/e02eed165bd0.js b/openlayers-base-packages/assets/e02eed165bd0.js deleted file mode 100644 index 148ac7d9a..000000000 --- a/openlayers-base-packages/assets/e02eed165bd0.js +++ /dev/null @@ -1 +0,0 @@ -const e=JSON.parse('{"ol-map":{"basemapLabel":"Select basemap:","tocTitle":"Table of contents","measurementTitle":"Measurement","ariaLabel.header":"Header bar","ariaLabel.footer":"Base bar with scale information, spatial reference system and coordinate display","ariaLabel.map":"Map. Use the arrow keys to move the map. Zoom in with the plus button and zoom out with the minus button.","ariaLabel.toolbar":"Maptools"},"@open-pioneer/toc":{"basemapsLabel":"Basemaps","descriptionLabel":"Layer description","operationalLayerLabel":"Operational layers","missingLayers":"There are no layers to display.","error":"Error while creating map content."},"@open-pioneer/measurement":{"measurementLabel":"Mode","distance":"Distance","area":"Area","deleteMeasurementLabel":"Delete measurements","measurementInfoText":"Click in the map to start a measurement.","tooltips.help":"Click to start measuring.","tooltips.continue":"Double click to end the measurement."},"@open-pioneer/experimental-layout-sidebar":{"toggle.expand":"Expand","toggle.collapse":"Collapse"},"@open-pioneer/map-navigation":{"initial-extent.title":"Zoom to initial extent","zoom-in.title":"Zoom in","zoom-out.title":"Zoom out"},"@open-pioneer/basemap-switcher":{"emptyBasemapLabel":"Without basemap"}}');export{e as default}; diff --git a/openlayers-base-packages/assets/d9e8a3de521c.js b/openlayers-base-packages/assets/fa5b23f988e6.js similarity index 86% rename from openlayers-base-packages/assets/d9e8a3de521c.js rename to openlayers-base-packages/assets/fa5b23f988e6.js index a8ff7d883..de516bac1 100644 --- a/openlayers-base-packages/assets/d9e8a3de521c.js +++ b/openlayers-base-packages/assets/fa5b23f988e6.js @@ -1,2 +1,2 @@ -import{aU as m,aY as g,bc as _,cn as u}from"./c0d2fbcdd7fa.js";function d(s,e){const i=[];Object.keys(e).forEach(function(t){e[t]!==null&&e[t]!==void 0&&i.push(t+"="+encodeURIComponent(e[t]))});const r=i.join("&");return s=s.replace(/[?&]$/,""),s+=s.includes("?")?"&":"?",s+r}class f extends m{constructor(e){super({extent:e.extent,origin:e.origin,origins:e.origins,resolutions:e.resolutions,tileSize:e.tileSize,tileSizes:e.tileSizes,sizes:e.sizes}),this.matrixIds_=e.matrixIds}getMatrixId(e){return this.matrixIds_[e]}getMatrixIds(){return this.matrixIds_}}const b=f;class x extends g{constructor(e){const i=e.requestEncoding!==void 0?e.requestEncoding:"KVP",r=e.tileGrid;let t=e.urls;t===void 0&&e.url!==void 0&&(t=_(e.url)),super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:r,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,urls:t,wrapX:e.wrapX!==void 0?e.wrapX:!1,transition:e.transition,zDirection:e.zDirection}),this.version_=e.version!==void 0?e.version:"1.0.0",this.format_=e.format!==void 0?e.format:"image/jpeg",this.dimensions_=e.dimensions!==void 0?e.dimensions:{},this.layer_=e.layer,this.matrixSet_=e.matrixSet,this.style_=e.style,this.requestEncoding_=i,this.setKey(this.getKeyForDimensions_()),t&&t.length>0&&(this.tileUrlFunction=u(t.map(this.createFromWMTSTemplate.bind(this))))}setUrls(e){this.urls=e;const i=e.join(` -`);this.setTileUrlFunction(u(e.map(this.createFromWMTSTemplate.bind(this))),i)}getDimensions(){return this.dimensions_}getFormat(){return this.format_}getLayer(){return this.layer_}getMatrixSet(){return this.matrixSet_}getRequestEncoding(){return this.requestEncoding_}getStyle(){return this.style_}getVersion(){return this.version_}getKeyForDimensions_(){const e=this.urls?this.urls.slice(0):[];for(const i in this.dimensions_)e.push(i+"-"+this.dimensions_[i]);return e.join("/")}updateDimensions(e){Object.assign(this.dimensions_,e),this.setKey(this.getKeyForDimensions_())}createFromWMTSTemplate(e){const i=this.requestEncoding_,r={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};i=="KVP"&&Object.assign(r,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),e=i=="KVP"?d(e,r):e.replace(/\{(\w+?)\}/g,function(n,l){return l.toLowerCase()in r?r[l.toLowerCase()]:n});const t=this.tileGrid,o=this.dimensions_;return function(n,l,T){if(!n)return;const c={TileMatrix:t.getMatrixId(n[0]),TileCol:n[1],TileRow:n[2]};Object.assign(c,o);let a=e;return i=="KVP"?a=d(a,c):a=a.replace(/\{(\w+?)\}/g,function(y,h){return c[h]}),a}}}const F=x;export{F as W,d as a,b}; +import{b5 as m,b9 as g,bo as _,cx as u}from"./67c4f96ddb71.js";function d(s,e){const i=[];Object.keys(e).forEach(function(t){e[t]!==null&&e[t]!==void 0&&i.push(t+"="+encodeURIComponent(e[t]))});const r=i.join("&");return s=s.replace(/[?&]$/,""),s+=s.includes("?")?"&":"?",s+r}class f extends m{constructor(e){super({extent:e.extent,origin:e.origin,origins:e.origins,resolutions:e.resolutions,tileSize:e.tileSize,tileSizes:e.tileSizes,sizes:e.sizes}),this.matrixIds_=e.matrixIds}getMatrixId(e){return this.matrixIds_[e]}getMatrixIds(){return this.matrixIds_}}const b=f;class x extends g{constructor(e){const i=e.requestEncoding!==void 0?e.requestEncoding:"KVP",r=e.tileGrid;let t=e.urls;t===void 0&&e.url!==void 0&&(t=_(e.url)),super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:r,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,urls:t,wrapX:e.wrapX!==void 0?e.wrapX:!1,transition:e.transition,zDirection:e.zDirection}),this.version_=e.version!==void 0?e.version:"1.0.0",this.format_=e.format!==void 0?e.format:"image/jpeg",this.dimensions_=e.dimensions!==void 0?e.dimensions:{},this.layer_=e.layer,this.matrixSet_=e.matrixSet,this.style_=e.style,this.requestEncoding_=i,this.setKey(this.getKeyForDimensions_()),t&&t.length>0&&(this.tileUrlFunction=u(t.map(this.createFromWMTSTemplate.bind(this))))}setUrls(e){this.urls=e;const i=e.join(` +`);this.setTileUrlFunction(u(e.map(this.createFromWMTSTemplate.bind(this))),i)}getDimensions(){return this.dimensions_}getFormat(){return this.format_}getLayer(){return this.layer_}getMatrixSet(){return this.matrixSet_}getRequestEncoding(){return this.requestEncoding_}getStyle(){return this.style_}getVersion(){return this.version_}getKeyForDimensions_(){const e=this.urls?this.urls.slice(0):[];for(const i in this.dimensions_)e.push(i+"-"+this.dimensions_[i]);return e.join("/")}updateDimensions(e){Object.assign(this.dimensions_,e),this.setKey(this.getKeyForDimensions_())}createFromWMTSTemplate(e){const i=this.requestEncoding_,r={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};i=="KVP"&&Object.assign(r,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),e=i=="KVP"?d(e,r):e.replace(/\{(\w+?)\}/g,function(n,a){return a.toLowerCase()in r?r[a.toLowerCase()]:n});const t=this.tileGrid,o=this.dimensions_;return function(n,a,T){if(!n)return;const c={TileMatrix:t.getMatrixId(n[0]),TileCol:n[1],TileRow:n[2]};Object.assign(c,o);let l=e;return i=="KVP"?l=d(l,c):l=l.replace(/\{(\w+?)\}/g,function(y,h){return c[h]}),l}}}const F=x;export{F as W,d as a,b}; diff --git a/openlayers-base-packages/assets/8bac41c38e3b.js b/openlayers-base-packages/assets/fd7109e0266f.js similarity index 99% rename from openlayers-base-packages/assets/8bac41c38e3b.js rename to openlayers-base-packages/assets/fd7109e0266f.js index d1cff0c50..ded208cf6 100644 --- a/openlayers-base-packages/assets/8bac41c38e3b.js +++ b/openlayers-base-packages/assets/fd7109e0266f.js @@ -1,2 +1,2 @@ -import{f as L,r as l,j as e,B as j,a0 as B,h as _,a as N,u as T,F as S,R as F,b as D}from"./49b2c148dcb3.js";import{M as V,N as Z,O as $,af as q,ag as W,ai as G,av as U,aw as H}from"./c0d2fbcdd7fa.js";import{B as x,T as K,S as J}from"./fa35e3e86a4c.js";import{c as P}from"./14d0bb09fe00.js";import{F as v}from"./adc90c48e771.js";import{d as Q}from"./37c62c6c4df6.js";function X(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Y=X(),w=L((r,a)=>{const{icon:t,children:d,isRound:s,"aria-label":c,...i}=r,n=t||d,u=l.isValidElement(n)?l.cloneElement(n,{"aria-hidden":!0,focusable:!1}):null;return e.jsx(j,{padding:"0",borderRadius:s?"full":void 0,ref:a,"aria-label":c,...i,children:u})});w.displayName="IconButton";var ee=Y?l.useLayoutEffect:l.useEffect;function M(r,a=[]){const t=l.useRef(r);return ee(()=>{t.current=r}),l.useCallback((...d)=>{var s;return(s=t.current)==null?void 0:s.call(t,...d)},a)}function oe(r,a){const t=l.useId();return l.useMemo(()=>r||[a,t].filter(Boolean).join("-"),[r,a,t])}function re(r,a){const t=r!==void 0;return[t,t&&typeof r<"u"?r:a]}function I(r={}){const{onClose:a,onOpen:t,isOpen:d,id:s}=r,c=M(t),i=M(a),[n,u]=l.useState(r.defaultIsOpen||!1),[p,b]=re(d,n),m=oe(s,"disclosure"),g=l.useCallback(()=>{p||u(!1),i?.()},[p,i]),h=l.useCallback(()=>{p||u(!0),c?.()},[p,c]),f=l.useCallback(()=>{(b?g:h)()},[b,h,g]);return{isOpen:!!b,onOpen:h,onClose:g,onToggle:f,isControlled:p,getButtonProps:(o={})=>({...o,"aria-expanded":b,"aria-controls":m,onClick:B(o.onClick,f)}),getDisclosureProps:(o={})=>({...o,hidden:!b,id:m})}}var k=_("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});k.displayName="Spacer";var te=P({displayName:"ArrowLeftIcon",path:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),e.jsx("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"})]})}),ne=P({displayName:"ArrowRightIcon",path:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),e.jsx("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"})]})});const y="main";class ae{mapId=y;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new V({title:"OSM",isBaseLayer:!0,olLayer:new Z({source:new $})})]}}}const le={"sidebar-app":{name:"sidebar-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:ae,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:q,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/experimental-layout-sidebar":{name:"@open-pioneer/experimental-layout-sidebar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/test-utils":{name:"@open-pioneer/test-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-test-utils":{name:"@open-pioneer/map-test-utils",services:{},ui:{references:[]},properties:{}}},ie=`.layout-sidebar{z-index:99}:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:none}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.layout-sidebar{height:100%;position:absolute;top:0}.layout-sidebar[data-theme=light]{background-color:var(--chakra-colors-whiteAlpha-700)}.layout-sidebar[data-theme=dark]{background-color:var(--chakra-colors-blackAlpha-700)}.layout-sidebar .layout-sidebar-main{transition:width .3s ease-out 0s;border-right:1px solid var(--chakra-colors-chakra-border-color)}.layout-sidebar .layout-sidebar-content{overflow:auto;transition:width .3s ease-out 0s}.layout-sidebar .layout-sidebar-content .content-section .content-header{font-size:1.5em;background-color:var(--chakra-colors-blackAlpha-500);padding:.5rem 1rem}.layout-sidebar .layout-sidebar-content .content-section .content-body{padding:1rem} +import{f as L,r as l,j as e,B as j,a0 as B,h as _,a as N,u as T,F as S,R as F,b as D}from"./49b2c148dcb3.js";import{M as V,N as Z,O as $,af as q,ag as W,ai as G,aJ as U,aK as H}from"./67c4f96ddb71.js";import{B as x,T as K,S as J}from"./fa35e3e86a4c.js";import{c as P}from"./14d0bb09fe00.js";import{F as v}from"./adc90c48e771.js";import{d as Q}from"./37c62c6c4df6.js";function X(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Y=X(),w=L((r,a)=>{const{icon:t,children:d,isRound:s,"aria-label":c,...i}=r,n=t||d,u=l.isValidElement(n)?l.cloneElement(n,{"aria-hidden":!0,focusable:!1}):null;return e.jsx(j,{padding:"0",borderRadius:s?"full":void 0,ref:a,"aria-label":c,...i,children:u})});w.displayName="IconButton";var ee=Y?l.useLayoutEffect:l.useEffect;function M(r,a=[]){const t=l.useRef(r);return ee(()=>{t.current=r}),l.useCallback((...d)=>{var s;return(s=t.current)==null?void 0:s.call(t,...d)},a)}function oe(r,a){const t=l.useId();return l.useMemo(()=>r||[a,t].filter(Boolean).join("-"),[r,a,t])}function re(r,a){const t=r!==void 0;return[t,t&&typeof r<"u"?r:a]}function I(r={}){const{onClose:a,onOpen:t,isOpen:d,id:s}=r,c=M(t),i=M(a),[n,u]=l.useState(r.defaultIsOpen||!1),[p,b]=re(d,n),m=oe(s,"disclosure"),g=l.useCallback(()=>{p||u(!1),i?.()},[p,i]),h=l.useCallback(()=>{p||u(!0),c?.()},[p,c]),f=l.useCallback(()=>{(b?g:h)()},[b,h,g]);return{isOpen:!!b,onOpen:h,onClose:g,onToggle:f,isControlled:p,getButtonProps:(o={})=>({...o,"aria-expanded":b,"aria-controls":m,onClick:B(o.onClick,f)}),getDisclosureProps:(o={})=>({...o,hidden:!b,id:m})}}var k=_("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});k.displayName="Spacer";var te=P({displayName:"ArrowLeftIcon",path:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),e.jsx("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"})]})}),ne=P({displayName:"ArrowRightIcon",path:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),e.jsx("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"})]})});const y="main";class ae{mapId=y;async getMapConfig(){return{initialView:{kind:"position",center:{x:404747,y:5757920},zoom:14},layers:[new V({title:"OSM",isBaseLayer:!0,olLayer:new Z({source:new $})})]}}}const le={"sidebar-app":{name:"sidebar-app",services:{MapConfigProviderImpl:{name:"MapConfigProviderImpl",clazz:ae,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:q,provides:[{name:"map.MapRegistry",qualifier:void 0}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/experimental-layout-sidebar":{name:"@open-pioneer/experimental-layout-sidebar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/test-utils":{name:"@open-pioneer/test-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-test-utils":{name:"@open-pioneer/map-test-utils",services:{},ui:{references:[]},properties:{}}},ie=`.layout-sidebar{z-index:99}:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:none}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.layout-sidebar{height:100%;position:absolute;top:0}.layout-sidebar[data-theme=light]{background-color:var(--chakra-colors-whiteAlpha-700)}.layout-sidebar[data-theme=dark]{background-color:var(--chakra-colors-blackAlpha-700)}.layout-sidebar .layout-sidebar-main{transition:width .3s ease-out 0s;border-right:1px solid var(--chakra-colors-chakra-border-color)}.layout-sidebar .layout-sidebar-content{overflow:auto;transition:width .3s ease-out 0s}.layout-sidebar .layout-sidebar-content .content-section .content-header{font-size:1.5em;background-color:var(--chakra-colors-blackAlpha-500);padding:.5rem 1rem}.layout-sidebar .layout-sidebar-content .content-section .content-body{padding:1rem} `,se=["en"];function ce(r){switch(r){case"en":return W(()=>import("./55e2013ec527.js"),[],import.meta.url).then(a=>a.default)}throw new Error(`Unsupported locale: '${r}'`)}const de=N(ie),pe=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:ce,locales:se,packages:le,styles:de},Symbol.toStringTag,{value:"Module"})),ue="@open-pioneer/experimental-layout-sidebar",be=T.bind(void 0,ue),A=60,E=180,O=300;function me({defaultExpanded:r,expandedChanged:a,sidebarWidthChanged:t,items:d}){const s=be(),[c,{toggle:i}]=ge(d),{isOpen:n,onToggle:u}=I({defaultIsOpen:r,onOpen(){a?.(!0)},onClose(){a?.(!1)}}),{isOpen:p,onToggle:b}=I(),m=c.size>0;l.useEffect(()=>{m&&!p&&b(),!m&&p&&b()},[m]),l.useEffect(()=>{if(t){let o=A;n&&(o=E),p&&(o+=O),t(o)}},[n,p]);const g=d?.map((o,R)=>{const C="white",z=c.has(o.id)?"outline":"ghost";return e.jsx("div",{children:n?e.jsx(j,{leftIcon:o.icon,variant:z,colorScheme:C,onClick:()=>i(o),children:o.label},o.id):e.jsx(S,{hasArrow:!0,label:o.label,placement:"right",children:e.jsx(w,{"aria-label":o.label,variant:z,colorScheme:C,icon:o.icon,onClick:()=>i(o)})},o.id)},R)}),h=d?.filter(o=>c.has(o.id)).map(o=>e.jsxs("div",{className:"content-section",children:[e.jsxs(v,{className:"content-header",alignItems:"center",children:[e.jsx(x,{children:o.label}),e.jsx(k,{}),e.jsx(F,{onClick:()=>i(o)})]}),e.jsx("div",{className:"content-body",children:o.content})]},o.id)),f=s.formatMessage({id:n?"toggle.collapse":"toggle.expand"});return e.jsxs(v,{className:"layout-sidebar",children:[e.jsxs(x,{className:"layout-sidebar-main",display:"flex",flexDirection:"column",width:n?`${E}px`:`${A}px`,padding:"10px",gap:"10px",children:[g,e.jsx(k,{}),e.jsx(S,{label:f,hasArrow:!0,placement:"right",children:e.jsx(w,{"aria-label":f,variant:"ghost",icon:n?e.jsx(te,{}):e.jsx(ne,{}),onClick:u})})]}),e.jsx(x,{className:"layout-sidebar-content",width:p?`${O}px`:"0px",children:h})]})}function ge(r){const[a,t]=l.useReducer((s,c)=>{switch(c.type){case"toggle":{const i=new Set(s);return i.has(c.id)?i.delete(c.id):i.add(c.id),i}case"retain":{const i=new Set(c.ids),n=new Set(s);for(const u of n)i.has(u)||n.delete(u);return n}}},void 0,()=>new Set),d=l.useCallback(s=>{t({type:"toggle",id:s.id})},[t]);return l.useEffect(()=>{t({type:"retain",ids:r?.map(s=>s.id)??[]})},[r,t]),[a,{toggle:d}]}const he=[796987,5827477,796987,5827477];function fe(){const[r,a]=l.useState(),[t,d]=l.useState(!0),s=G(y),c=()=>{const n=s.map?.olMap;n&&n?.getView().fit(he,{maxZoom:13})},i=[{id:"sandbox",icon:e.jsx(Q,{}),label:"Sandbox",content:e.jsx(j,{onClick:c,children:"Center Berlin"})}];return e.jsx(v,{height:"100%",direction:"column",overflow:"hidden",children:e.jsx(K,{title:e.jsx(x,{textAlign:"center",py:1,px:1,children:e.jsx(J,{size:"md",children:"Sidebar sample"})}),children:e.jsxs(v,{flex:"1",direction:"column",position:"relative",children:[e.jsx(me,{defaultExpanded:t,expandedChanged:n=>d(n),sidebarWidthChanged:n=>a({left:n}),items:i}),e.jsx(U,{mapId:y,viewPadding:r,viewPaddingChangeBehavior:"preserve-extent",children:e.jsx(H,{position:"top-left",horizontalGap:10,verticalGap:10,children:e.jsx(x,{backgroundColor:"whiteAlpha.800",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",children:"This is a sample for a sidebar component."})})})]})})})}const xe=D({component:fe,appMetadata:pe});customElements.define("sidebar-app",xe); diff --git a/openlayers-base-packages/docs/assets/search.js b/openlayers-base-packages/docs/assets/search.js index d3941249f..7f24431e6 100644 --- a/openlayers-base-packages/docs/assets/search.js +++ b/openlayers-base-packages/docs/assets/search.js @@ -1 +1 @@ -window.searchData = JSON.parse("{\"rows\":[{\"kind\":2,\"name\":\"@open-pioneer/experimental-layout-sidebar\",\"url\":\"modules/_open_pioneer_experimental_layout_sidebar.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"SidebarItem\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarItem.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar\"},{\"kind\":1024,\"name\":\"content\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarItem.html#content\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarItem\"},{\"kind\":1024,\"name\":\"icon\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarItem.html#icon\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarItem\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarItem.html#id\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarItem\"},{\"kind\":1024,\"name\":\"label\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarItem.html#label\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarItem\"},{\"kind\":256,\"name\":\"SidebarProperties\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarProperties.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar\"},{\"kind\":1024,\"name\":\"defaultExpanded\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarProperties.html#defaultExpanded\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarProperties\"},{\"kind\":1024,\"name\":\"expandedChanged\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarProperties.html#expandedChanged\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarProperties\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarProperties.html#expandedChanged.__type\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarProperties.expandedChanged\"},{\"kind\":1024,\"name\":\"items\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarProperties.html#items\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarProperties\"},{\"kind\":1024,\"name\":\"sidebarWidthChanged\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarProperties.html#sidebarWidthChanged\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarProperties\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarProperties.html#sidebarWidthChanged.__type-2\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarProperties.sidebarWidthChanged\"},{\"kind\":64,\"name\":\"Sidebar\",\"url\":\"functions/_open_pioneer_experimental_layout_sidebar.Sidebar.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar\"},{\"kind\":2,\"name\":\"@open-pioneer/map\",\"url\":\"modules/_open_pioneer_map.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"CoordinateConfig\",\"url\":\"interfaces/_open_pioneer_map.CoordinateConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"x\",\"url\":\"interfaces/_open_pioneer_map.CoordinateConfig.html#x\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.CoordinateConfig\"},{\"kind\":1024,\"name\":\"y\",\"url\":\"interfaces/_open_pioneer_map.CoordinateConfig.html#y\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.CoordinateConfig\"},{\"kind\":1024,\"name\":\"z\",\"url\":\"interfaces/_open_pioneer_map.CoordinateConfig.html#z\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.CoordinateConfig\"},{\"kind\":256,\"name\":\"ExtentConfig\",\"url\":\"interfaces/_open_pioneer_map.ExtentConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"xMax\",\"url\":\"interfaces/_open_pioneer_map.ExtentConfig.html#xMax\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.ExtentConfig\"},{\"kind\":1024,\"name\":\"xMin\",\"url\":\"interfaces/_open_pioneer_map.ExtentConfig.html#xMin\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.ExtentConfig\"},{\"kind\":1024,\"name\":\"yMax\",\"url\":\"interfaces/_open_pioneer_map.ExtentConfig.html#yMax\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.ExtentConfig\"},{\"kind\":1024,\"name\":\"yMin\",\"url\":\"interfaces/_open_pioneer_map.ExtentConfig.html#yMin\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.ExtentConfig\"},{\"kind\":256,\"name\":\"InitialExtentConfig\",\"url\":\"interfaces/_open_pioneer_map.InitialExtentConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"extent\",\"url\":\"interfaces/_open_pioneer_map.InitialExtentConfig.html#extent\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.InitialExtentConfig\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_map.InitialExtentConfig.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.InitialExtentConfig\"},{\"kind\":256,\"name\":\"InitialPositionConfig\",\"url\":\"interfaces/_open_pioneer_map.InitialPositionConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"center\",\"url\":\"interfaces/_open_pioneer_map.InitialPositionConfig.html#center\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.InitialPositionConfig\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_map.InitialPositionConfig.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.InitialPositionConfig\"},{\"kind\":1024,\"name\":\"zoom\",\"url\":\"interfaces/_open_pioneer_map.InitialPositionConfig.html#zoom\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.InitialPositionConfig\"},{\"kind\":256,\"name\":\"Layer\",\"url\":\"interfaces/_open_pioneer_map.Layer.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#attributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#description\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#id\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"isBaseLayer\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#isBaseLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"loadState\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#loadState\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"map\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#map\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"olLayer\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#olLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"sublayers\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#sublayers\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#title\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#visible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":2048,\"name\":\"deleteAttribute\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#deleteAttribute\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":2048,\"name\":\"setDescription\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#setDescription\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":2048,\"name\":\"setTitle\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#setTitle\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":2048,\"name\":\"setVisible\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#setVisible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":2048,\"name\":\"updateAttributes\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#updateAttributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":256,\"name\":\"LayerBase\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#attributes\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#description\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#id\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":1024,\"name\":\"map\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#map\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":1024,\"name\":\"sublayers\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#sublayers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#title\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#visible\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":2048,\"name\":\"deleteAttribute\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#deleteAttribute\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":2048,\"name\":\"setDescription\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#setDescription\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":2048,\"name\":\"setTitle\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#setTitle\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":2048,\"name\":\"setVisible\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#setVisible\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":2048,\"name\":\"updateAttributes\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#updateAttributes\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":256,\"name\":\"LayerBaseConfig\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseConfig.html#attributes\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseConfig\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseConfig.html#description\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseConfig\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseConfig.html#id\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseConfig\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseConfig.html#title\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseConfig\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseConfig.html#visible\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseConfig\"},{\"kind\":256,\"name\":\"LayerBaseEvents\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseEvents.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"changed\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseEvents.html#changed\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseEvents\"},{\"kind\":1024,\"name\":\"changed:attributes\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseEvents.html#changed_attributes\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseEvents\"},{\"kind\":1024,\"name\":\"changed:description\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseEvents.html#changed_description\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseEvents\"},{\"kind\":1024,\"name\":\"changed:loadState\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseEvents.html#changed_loadState\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseEvents\"},{\"kind\":1024,\"name\":\"changed:title\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseEvents.html#changed_title\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseEvents\"},{\"kind\":1024,\"name\":\"changed:visible\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseEvents.html#changed_visible\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseEvents\"},{\"kind\":1024,\"name\":\"destroy\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseEvents.html#destroy\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseEvents\"},{\"kind\":256,\"name\":\"LayerCollection\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":2048,\"name\":\"activateBaseLayer\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#activateBaseLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":2048,\"name\":\"addLayer\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#addLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":2048,\"name\":\"getActiveBaseLayer\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#getActiveBaseLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":2048,\"name\":\"getAllLayers\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#getAllLayers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":2048,\"name\":\"getBaseLayers\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#getBaseLayers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":2048,\"name\":\"getLayerById\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#getLayerById\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":2048,\"name\":\"getLayerByRawInstance\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#getLayerByRawInstance\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":2048,\"name\":\"getOperationalLayers\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#getOperationalLayers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":2048,\"name\":\"removeLayerById\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#removeLayerById\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":256,\"name\":\"LayerCollectionEvents\",\"url\":\"interfaces/_open_pioneer_map.LayerCollectionEvents.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"changed\",\"url\":\"interfaces/_open_pioneer_map.LayerCollectionEvents.html#changed\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollectionEvents\"},{\"kind\":256,\"name\":\"LayerConfig\",\"url\":\"interfaces/_open_pioneer_map.LayerConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.LayerConfig.html#attributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.LayerConfig\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.LayerConfig.html#description\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.LayerConfig\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.LayerConfig.html#id\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.LayerConfig\"},{\"kind\":1024,\"name\":\"isBaseLayer\",\"url\":\"interfaces/_open_pioneer_map.LayerConfig.html#isBaseLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerConfig\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.LayerConfig.html#title\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.LayerConfig\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.LayerConfig.html#visible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.LayerConfig\"},{\"kind\":256,\"name\":\"LayerRetrievalOptions\",\"url\":\"interfaces/_open_pioneer_map.LayerRetrievalOptions.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"sortByDisplayOrder\",\"url\":\"interfaces/_open_pioneer_map.LayerRetrievalOptions.html#sortByDisplayOrder\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerRetrievalOptions\"},{\"kind\":256,\"name\":\"MapAnchorProps\",\"url\":\"interfaces/_open_pioneer_map.MapAnchorProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"children\",\"url\":\"interfaces/_open_pioneer_map.MapAnchorProps.html#children\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapAnchorProps\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_map.MapAnchorProps.html#className\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.MapAnchorProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_map.MapAnchorProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.MapAnchorProps\"},{\"kind\":1024,\"name\":\"horizontalGap\",\"url\":\"interfaces/_open_pioneer_map.MapAnchorProps.html#horizontalGap\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapAnchorProps\"},{\"kind\":1024,\"name\":\"position\",\"url\":\"interfaces/_open_pioneer_map.MapAnchorProps.html#position\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapAnchorProps\"},{\"kind\":1024,\"name\":\"stopEvents\",\"url\":\"interfaces/_open_pioneer_map.MapAnchorProps.html#stopEvents\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapAnchorProps\"},{\"kind\":1024,\"name\":\"verticalGap\",\"url\":\"interfaces/_open_pioneer_map.MapAnchorProps.html#verticalGap\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapAnchorProps\"},{\"kind\":256,\"name\":\"MapConfig\",\"url\":\"interfaces/_open_pioneer_map.MapConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"advanced\",\"url\":\"interfaces/_open_pioneer_map.MapConfig.html#advanced\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapConfig\"},{\"kind\":1024,\"name\":\"initialView\",\"url\":\"interfaces/_open_pioneer_map.MapConfig.html#initialView\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapConfig\"},{\"kind\":1024,\"name\":\"layers\",\"url\":\"interfaces/_open_pioneer_map.MapConfig.html#layers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapConfig\"},{\"kind\":1024,\"name\":\"projection\",\"url\":\"interfaces/_open_pioneer_map.MapConfig.html#projection\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapConfig\"},{\"kind\":256,\"name\":\"MapConfigProvider\",\"url\":\"interfaces/_open_pioneer_map.MapConfigProvider.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_map.MapConfigProvider.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapConfigProvider\"},{\"kind\":2048,\"name\":\"getMapConfig\",\"url\":\"interfaces/_open_pioneer_map.MapConfigProvider.html#getMapConfig\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapConfigProvider\"},{\"kind\":256,\"name\":\"MapContainerProps\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"aria-label\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#aria_label\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":1024,\"name\":\"aria-labelledby\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#aria_labelledby\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":1024,\"name\":\"children\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#children\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#className\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":1024,\"name\":\"role\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#role\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":1024,\"name\":\"viewPadding\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#viewPadding\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":1024,\"name\":\"viewPaddingChangeBehavior\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#viewPaddingChangeBehavior\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":256,\"name\":\"MapModel\",\"url\":\"interfaces/_open_pioneer_map.MapModel.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"container\",\"url\":\"interfaces/_open_pioneer_map.MapModel.html#container\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModel\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.MapModel.html#id\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModel\"},{\"kind\":1024,\"name\":\"initialExtent\",\"url\":\"interfaces/_open_pioneer_map.MapModel.html#initialExtent\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModel\"},{\"kind\":1024,\"name\":\"layers\",\"url\":\"interfaces/_open_pioneer_map.MapModel.html#layers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModel\"},{\"kind\":1024,\"name\":\"olMap\",\"url\":\"interfaces/_open_pioneer_map.MapModel.html#olMap\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModel\"},{\"kind\":2048,\"name\":\"whenDisplayed\",\"url\":\"interfaces/_open_pioneer_map.MapModel.html#whenDisplayed\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModel\"},{\"kind\":256,\"name\":\"MapModelEvents\",\"url\":\"interfaces/_open_pioneer_map.MapModelEvents.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"changed\",\"url\":\"interfaces/_open_pioneer_map.MapModelEvents.html#changed\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModelEvents\"},{\"kind\":1024,\"name\":\"changed:container\",\"url\":\"interfaces/_open_pioneer_map.MapModelEvents.html#changed_container\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModelEvents\"},{\"kind\":1024,\"name\":\"changed:initialExtent\",\"url\":\"interfaces/_open_pioneer_map.MapModelEvents.html#changed_initialExtent\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModelEvents\"},{\"kind\":1024,\"name\":\"destroy\",\"url\":\"interfaces/_open_pioneer_map.MapModelEvents.html#destroy\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModelEvents\"},{\"kind\":256,\"name\":\"MapPadding\",\"url\":\"interfaces/_open_pioneer_map.MapPadding.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"bottom\",\"url\":\"interfaces/_open_pioneer_map.MapPadding.html#bottom\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapPadding\"},{\"kind\":1024,\"name\":\"left\",\"url\":\"interfaces/_open_pioneer_map.MapPadding.html#left\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapPadding\"},{\"kind\":1024,\"name\":\"right\",\"url\":\"interfaces/_open_pioneer_map.MapPadding.html#right\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapPadding\"},{\"kind\":1024,\"name\":\"top\",\"url\":\"interfaces/_open_pioneer_map.MapPadding.html#top\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapPadding\"},{\"kind\":256,\"name\":\"MapRegistry\",\"url\":\"interfaces/_open_pioneer_map.MapRegistry.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":2048,\"name\":\"expectMapModel\",\"url\":\"interfaces/_open_pioneer_map.MapRegistry.html#expectMapModel\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapRegistry\"},{\"kind\":2048,\"name\":\"getMapModel\",\"url\":\"interfaces/_open_pioneer_map.MapRegistry.html#getMapModel\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapRegistry\"},{\"kind\":2048,\"name\":\"getMapModelByRawInstance\",\"url\":\"interfaces/_open_pioneer_map.MapRegistry.html#getMapModelByRawInstance\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapRegistry\"},{\"kind\":256,\"name\":\"OlMapOptions\",\"url\":\"interfaces/_open_pioneer_map.OlMapOptions.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"view\",\"url\":\"interfaces/_open_pioneer_map.OlMapOptions.html#view\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.OlMapOptions\"},{\"kind\":256,\"name\":\"SimpleLayerConfig\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConfig.html#attributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.SimpleLayerConfig\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConfig.html#description\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.SimpleLayerConfig\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConfig.html#id\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.SimpleLayerConfig\"},{\"kind\":1024,\"name\":\"isBaseLayer\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConfig.html#isBaseLayer\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.SimpleLayerConfig\"},{\"kind\":1024,\"name\":\"olLayer\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConfig.html#olLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.SimpleLayerConfig\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConfig.html#title\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.SimpleLayerConfig\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConfig.html#visible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.SimpleLayerConfig\"},{\"kind\":256,\"name\":\"SimpleLayerConstructor\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConstructor.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConstructor.html#constructor\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.SimpleLayerConstructor\"},{\"kind\":1024,\"name\":\"prototype\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConstructor.html#prototype\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.SimpleLayerConstructor\"},{\"kind\":256,\"name\":\"Sublayer\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#attributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#description\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#id\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":1024,\"name\":\"map\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#map\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":1024,\"name\":\"parent\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#parent\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":1024,\"name\":\"parentLayer\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#parentLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":1024,\"name\":\"sublayers\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#sublayers\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#title\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#visible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":2048,\"name\":\"deleteAttribute\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#deleteAttribute\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":2048,\"name\":\"setDescription\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#setDescription\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":2048,\"name\":\"setTitle\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#setTitle\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":2048,\"name\":\"setVisible\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#setVisible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":2048,\"name\":\"updateAttributes\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#updateAttributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":256,\"name\":\"SublayersCollection\",\"url\":\"interfaces/_open_pioneer_map.SublayersCollection.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":2048,\"name\":\"getSublayers\",\"url\":\"interfaces/_open_pioneer_map.SublayersCollection.html#getSublayers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.SublayersCollection\"},{\"kind\":256,\"name\":\"SublayersCollectionEvents\",\"url\":\"interfaces/_open_pioneer_map.SublayersCollectionEvents.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"changed\",\"url\":\"interfaces/_open_pioneer_map.SublayersCollectionEvents.html#changed\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.SublayersCollectionEvents\"},{\"kind\":256,\"name\":\"UseMapModelLoading\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelLoading.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"error\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelLoading.html#error\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelLoading\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelLoading.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelLoading\"},{\"kind\":1024,\"name\":\"map\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelLoading.html#map\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelLoading\"},{\"kind\":256,\"name\":\"UseMapModelRejected\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelRejected.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"error\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelRejected.html#error\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelRejected\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelRejected.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelRejected\"},{\"kind\":1024,\"name\":\"map\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelRejected.html#map\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelRejected\"},{\"kind\":256,\"name\":\"UseMapModelResolved\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelResolved.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"error\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelResolved.html#error\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelResolved\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelResolved.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelResolved\"},{\"kind\":1024,\"name\":\"map\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelResolved.html#map\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelResolved\"},{\"kind\":256,\"name\":\"WMSLayer\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#attributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#description\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#id\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"isBaseLayer\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#isBaseLayer\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"loadState\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#loadState\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"map\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#map\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"olLayer\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#olLayer\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"sublayers\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#sublayers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#title\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"url\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#url\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#visible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":2048,\"name\":\"deleteAttribute\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#deleteAttribute\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":2048,\"name\":\"setDescription\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#setDescription\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":2048,\"name\":\"setTitle\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#setTitle\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":2048,\"name\":\"setVisible\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#setVisible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":2048,\"name\":\"updateAttributes\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#updateAttributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":256,\"name\":\"WMSLayerConfig\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html#attributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayerConfig\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html#description\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayerConfig\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html#id\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayerConfig\"},{\"kind\":1024,\"name\":\"sourceOptions\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html#sourceOptions\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSLayerConfig\"},{\"kind\":1024,\"name\":\"sublayers\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html#sublayers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSLayerConfig\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html#title\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayerConfig\"},{\"kind\":1024,\"name\":\"url\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html#url\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSLayerConfig\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html#visible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayerConfig\"},{\"kind\":256,\"name\":\"WMSLayerConstructor\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConstructor.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConstructor.html#constructor\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSLayerConstructor\"},{\"kind\":1024,\"name\":\"prototype\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConstructor.html#prototype\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSLayerConstructor\"},{\"kind\":256,\"name\":\"WMSSublayerConfig\",\"url\":\"interfaces/_open_pioneer_map.WMSSublayerConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.WMSSublayerConfig.html#attributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSSublayerConfig\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.WMSSublayerConfig.html#description\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSSublayerConfig\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.WMSSublayerConfig.html#id\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSSublayerConfig\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"interfaces/_open_pioneer_map.WMSSublayerConfig.html#name\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSSublayerConfig\"},{\"kind\":1024,\"name\":\"sublayers\",\"url\":\"interfaces/_open_pioneer_map.WMSSublayerConfig.html#sublayers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSSublayerConfig\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.WMSSublayerConfig.html#title\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSSublayerConfig\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.WMSSublayerConfig.html#visible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSSublayerConfig\"},{\"kind\":4194304,\"name\":\"InitialViewConfig\",\"url\":\"types/_open_pioneer_map.InitialViewConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":4194304,\"name\":\"LayerLoadState\",\"url\":\"types/_open_pioneer_map.LayerLoadState.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":4194304,\"name\":\"MapAnchorPosition\",\"url\":\"types/_open_pioneer_map.MapAnchorPosition.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":4194304,\"name\":\"ProjectionDefinition\",\"url\":\"types/_open_pioneer_map.ProjectionDefinition.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":4194304,\"name\":\"SimpleLayer\",\"url\":\"types/_open_pioneer_map.SimpleLayer.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":4194304,\"name\":\"UseMapModelResult\",\"url\":\"types/_open_pioneer_map.UseMapModelResult.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":32,\"name\":\"SimpleLayer\",\"url\":\"variables/_open_pioneer_map.SimpleLayer-1.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":32,\"name\":\"WMSLayer\",\"url\":\"variables/_open_pioneer_map.WMSLayer-1.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"MapAnchor\",\"url\":\"functions/_open_pioneer_map.MapAnchor.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"MapContainer\",\"url\":\"functions/_open_pioneer_map.MapContainer.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"getProjection\",\"url\":\"functions/_open_pioneer_map.getProjection.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"registerProjections\",\"url\":\"functions/_open_pioneer_map.registerProjections.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"useCenter\",\"url\":\"functions/_open_pioneer_map.useCenter.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"useMapModel\",\"url\":\"functions/_open_pioneer_map.useMapModel.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"useProjection\",\"url\":\"functions/_open_pioneer_map.useProjection.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"useResolution\",\"url\":\"functions/_open_pioneer_map.useResolution.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"useScale\",\"url\":\"functions/_open_pioneer_map.useScale.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":2,\"name\":\"@open-pioneer/map-test-utils\",\"url\":\"modules/_open_pioneer_map_test_utils.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"SimpleMapOptions\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils\"},{\"kind\":1024,\"name\":\"advanced\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#advanced\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions\"},{\"kind\":1024,\"name\":\"center\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#center\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#center.__type\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions.center\"},{\"kind\":1024,\"name\":\"x\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#center.__type.x\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions.center.__type\"},{\"kind\":1024,\"name\":\"y\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#center.__type.y\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions.center.__type\"},{\"kind\":1024,\"name\":\"extent\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#extent\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions\"},{\"kind\":1024,\"name\":\"layers\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#layers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions\"},{\"kind\":1024,\"name\":\"noInitialView\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#noInitialView\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions\"},{\"kind\":1024,\"name\":\"noProjection\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#noProjection\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions\"},{\"kind\":1024,\"name\":\"projection\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#projection\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions\"},{\"kind\":1024,\"name\":\"zoom\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#zoom\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions\"},{\"kind\":64,\"name\":\"createServiceOptions\",\"url\":\"functions/_open_pioneer_map_test_utils.createServiceOptions.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils\"},{\"kind\":64,\"name\":\"setupMap\",\"url\":\"functions/_open_pioneer_map_test_utils.setupMap.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils\"},{\"kind\":64,\"name\":\"waitForInitialExtent\",\"url\":\"functions/_open_pioneer_map_test_utils.waitForInitialExtent.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils\"},{\"kind\":64,\"name\":\"waitForMapMount\",\"url\":\"functions/_open_pioneer_map_test_utils.waitForMapMount.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils\"},{\"kind\":2,\"name\":\"@open-pioneer/notifier\",\"url\":\"modules/_open_pioneer_notifier.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"NotificationOptions\",\"url\":\"interfaces/_open_pioneer_notifier.NotificationOptions.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier\"},{\"kind\":1024,\"name\":\"displayDuration\",\"url\":\"interfaces/_open_pioneer_notifier.NotificationOptions.html#displayDuration\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier.NotificationOptions\"},{\"kind\":1024,\"name\":\"level\",\"url\":\"interfaces/_open_pioneer_notifier.NotificationOptions.html#level\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier.NotificationOptions\"},{\"kind\":1024,\"name\":\"message\",\"url\":\"interfaces/_open_pioneer_notifier.NotificationOptions.html#message\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier.NotificationOptions\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_notifier.NotificationOptions.html#title\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier.NotificationOptions\"},{\"kind\":256,\"name\":\"NotificationService\",\"url\":\"interfaces/_open_pioneer_notifier.NotificationService.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier\"},{\"kind\":2048,\"name\":\"closeAll\",\"url\":\"interfaces/_open_pioneer_notifier.NotificationService.html#closeAll\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier.NotificationService\"},{\"kind\":2048,\"name\":\"notify\",\"url\":\"interfaces/_open_pioneer_notifier.NotificationService.html#notify\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier.NotificationService\"},{\"kind\":256,\"name\":\"NotifierProps\",\"url\":\"interfaces/_open_pioneer_notifier.NotifierProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier\"},{\"kind\":1024,\"name\":\"position\",\"url\":\"interfaces/_open_pioneer_notifier.NotifierProps.html#position\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier.NotifierProps\"},{\"kind\":4194304,\"name\":\"NotificationLevel\",\"url\":\"types/_open_pioneer_notifier.NotificationLevel.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier\"},{\"kind\":64,\"name\":\"Notifier\",\"url\":\"functions/_open_pioneer_notifier.Notifier.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier\"},{\"kind\":2,\"name\":\"@open-pioneer/react-utils\",\"url\":\"modules/_open_pioneer_react_utils.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"CommonComponentProps\",\"url\":\"interfaces/_open_pioneer_react_utils.CommonComponentProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_react_utils.CommonComponentProps.html#className\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.CommonComponentProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_react_utils.CommonComponentProps.html#data_testid\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.CommonComponentProps\"},{\"kind\":256,\"name\":\"ConfigureTitledSectionProps\",\"url\":\"interfaces/_open_pioneer_react_utils.ConfigureTitledSectionProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":1024,\"name\":\"children\",\"url\":\"interfaces/_open_pioneer_react_utils.ConfigureTitledSectionProps.html#children\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.ConfigureTitledSectionProps\"},{\"kind\":1024,\"name\":\"level\",\"url\":\"interfaces/_open_pioneer_react_utils.ConfigureTitledSectionProps.html#level\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.ConfigureTitledSectionProps\"},{\"kind\":256,\"name\":\"SectionHeadingProps\",\"url\":\"interfaces/_open_pioneer_react_utils.SectionHeadingProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":1024,\"name\":\"children\",\"url\":\"interfaces/_open_pioneer_react_utils.SectionHeadingProps.html#children\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.SectionHeadingProps\"},{\"kind\":256,\"name\":\"TitledSectionProps\",\"url\":\"interfaces/_open_pioneer_react_utils.TitledSectionProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":1024,\"name\":\"children\",\"url\":\"interfaces/_open_pioneer_react_utils.TitledSectionProps.html#children\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.TitledSectionProps\"},{\"kind\":1024,\"name\":\"substituteHeadingLevel\",\"url\":\"interfaces/_open_pioneer_react_utils.TitledSectionProps.html#substituteHeadingLevel\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.TitledSectionProps\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_react_utils.TitledSectionProps.html#title\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.TitledSectionProps\"},{\"kind\":4194304,\"name\":\"HeadingLevel\",\"url\":\"types/_open_pioneer_react_utils.HeadingLevel.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":64,\"name\":\"ConfigureTitledSection\",\"url\":\"functions/_open_pioneer_react_utils.ConfigureTitledSection.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":64,\"name\":\"SectionHeading\",\"url\":\"functions/_open_pioneer_react_utils.SectionHeading.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":64,\"name\":\"TitledSection\",\"url\":\"functions/_open_pioneer_react_utils.TitledSection.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":64,\"name\":\"useCommonComponentProps\",\"url\":\"functions/_open_pioneer_react_utils.useCommonComponentProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/_open_pioneer_react_utils.useCommonComponentProps.html#useCommonComponentProps.__type\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.useCommonComponentProps.useCommonComponentProps\"},{\"kind\":1024,\"name\":\"containerProps\",\"url\":\"functions/_open_pioneer_react_utils.useCommonComponentProps.html#useCommonComponentProps.__type.containerProps\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.useCommonComponentProps.useCommonComponentProps.__type\"},{\"kind\":64,\"name\":\"useEvent\",\"url\":\"functions/_open_pioneer_react_utils.useEvent.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":64,\"name\":\"useHeadingLevel\",\"url\":\"functions/_open_pioneer_react_utils.useHeadingLevel.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":2,\"name\":\"@open-pioneer/authentication\",\"url\":\"modules/_open_pioneer_authentication.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"AuthEvents\",\"url\":\"interfaces/_open_pioneer_authentication.AuthEvents.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"changed\",\"url\":\"interfaces/_open_pioneer_authentication.AuthEvents.html#changed\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthEvents\"},{\"kind\":256,\"name\":\"AuthPlugin\",\"url\":\"interfaces/_open_pioneer_authentication.AuthPlugin.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":2048,\"name\":\"getAuthState\",\"url\":\"interfaces/_open_pioneer_authentication.AuthPlugin.html#getAuthState\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthPlugin\"},{\"kind\":2048,\"name\":\"getLoginBehavior\",\"url\":\"interfaces/_open_pioneer_authentication.AuthPlugin.html#getLoginBehavior\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthPlugin\"},{\"kind\":2048,\"name\":\"logout\",\"url\":\"interfaces/_open_pioneer_authentication.AuthPlugin.html#logout\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthPlugin\"},{\"kind\":256,\"name\":\"AuthPluginEvents\",\"url\":\"interfaces/_open_pioneer_authentication.AuthPluginEvents.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"changed\",\"url\":\"interfaces/_open_pioneer_authentication.AuthPluginEvents.html#changed\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthPluginEvents\"},{\"kind\":256,\"name\":\"AuthService\",\"url\":\"interfaces/_open_pioneer_authentication.AuthService.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":2048,\"name\":\"getAuthState\",\"url\":\"interfaces/_open_pioneer_authentication.AuthService.html#getAuthState\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthService\"},{\"kind\":2048,\"name\":\"getLoginBehavior\",\"url\":\"interfaces/_open_pioneer_authentication.AuthService.html#getLoginBehavior\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthService\"},{\"kind\":2048,\"name\":\"getSessionInfo\",\"url\":\"interfaces/_open_pioneer_authentication.AuthService.html#getSessionInfo\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthService\"},{\"kind\":2048,\"name\":\"logout\",\"url\":\"interfaces/_open_pioneer_authentication.AuthService.html#logout\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthService\"},{\"kind\":256,\"name\":\"AuthStateAuthenticated\",\"url\":\"interfaces/_open_pioneer_authentication.AuthStateAuthenticated.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_authentication.AuthStateAuthenticated.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthStateAuthenticated\"},{\"kind\":1024,\"name\":\"sessionInfo\",\"url\":\"interfaces/_open_pioneer_authentication.AuthStateAuthenticated.html#sessionInfo\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthStateAuthenticated\"},{\"kind\":256,\"name\":\"AuthStateNotAuthenticated\",\"url\":\"interfaces/_open_pioneer_authentication.AuthStateNotAuthenticated.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_authentication.AuthStateNotAuthenticated.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthStateNotAuthenticated\"},{\"kind\":256,\"name\":\"AuthStatePending\",\"url\":\"interfaces/_open_pioneer_authentication.AuthStatePending.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_authentication.AuthStatePending.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthStatePending\"},{\"kind\":256,\"name\":\"ForceAuthProps\",\"url\":\"interfaces/_open_pioneer_authentication.ForceAuthProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"children\",\"url\":\"interfaces/_open_pioneer_authentication.ForceAuthProps.html#children\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.ForceAuthProps\"},{\"kind\":1024,\"name\":\"fallbackProps\",\"url\":\"interfaces/_open_pioneer_authentication.ForceAuthProps.html#fallbackProps\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.ForceAuthProps\"},{\"kind\":1024,\"name\":\"renderFallback\",\"url\":\"interfaces/_open_pioneer_authentication.ForceAuthProps.html#renderFallback\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.ForceAuthProps\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/_open_pioneer_authentication.ForceAuthProps.html#renderFallback.__type\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.ForceAuthProps.renderFallback\"},{\"kind\":256,\"name\":\"LoginEffect\",\"url\":\"interfaces/_open_pioneer_authentication.LoginEffect.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_authentication.LoginEffect.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.LoginEffect\"},{\"kind\":2048,\"name\":\"login\",\"url\":\"interfaces/_open_pioneer_authentication.LoginEffect.html#login\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.LoginEffect\"},{\"kind\":256,\"name\":\"LoginFallback\",\"url\":\"interfaces/_open_pioneer_authentication.LoginFallback.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"Fallback\",\"url\":\"interfaces/_open_pioneer_authentication.LoginFallback.html#Fallback\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.LoginFallback\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_authentication.LoginFallback.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.LoginFallback\"},{\"kind\":256,\"name\":\"SessionInfo\",\"url\":\"interfaces/_open_pioneer_authentication.SessionInfo.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_authentication.SessionInfo.html#attributes\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.SessionInfo\"},{\"kind\":1024,\"name\":\"expiresAt\",\"url\":\"interfaces/_open_pioneer_authentication.SessionInfo.html#expiresAt\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.SessionInfo\"},{\"kind\":1024,\"name\":\"userId\",\"url\":\"interfaces/_open_pioneer_authentication.SessionInfo.html#userId\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.SessionInfo\"},{\"kind\":1024,\"name\":\"userName\",\"url\":\"interfaces/_open_pioneer_authentication.SessionInfo.html#userName\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.SessionInfo\"},{\"kind\":4194304,\"name\":\"AuthPluginEventBase\",\"url\":\"types/_open_pioneer_authentication.AuthPluginEventBase.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":4194304,\"name\":\"AuthState\",\"url\":\"types/_open_pioneer_authentication.AuthState.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":4194304,\"name\":\"LoginBehavior\",\"url\":\"types/_open_pioneer_authentication.LoginBehavior.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":64,\"name\":\"ForceAuth\",\"url\":\"functions/_open_pioneer_authentication.ForceAuth.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":64,\"name\":\"useAuthState\",\"url\":\"functions/_open_pioneer_authentication.useAuthState.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":2,\"name\":\"@open-pioneer/coordinate-viewer\",\"url\":\"modules/_open_pioneer_coordinate_viewer.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"CoordinateViewerProps\",\"url\":\"interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/coordinate-viewer\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html#className\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/coordinate-viewer.CoordinateViewerProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/coordinate-viewer.CoordinateViewerProps\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/coordinate-viewer.CoordinateViewerProps\"},{\"kind\":1024,\"name\":\"precision\",\"url\":\"interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html#precision\",\"classes\":\"\",\"parent\":\"@open-pioneer/coordinate-viewer.CoordinateViewerProps\"},{\"kind\":64,\"name\":\"CoordinateViewer\",\"url\":\"functions/_open_pioneer_coordinate_viewer.CoordinateViewer.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/coordinate-viewer\"},{\"kind\":2,\"name\":\"@open-pioneer/scale-viewer\",\"url\":\"modules/_open_pioneer_scale_viewer.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"ScaleViewerProps\",\"url\":\"interfaces/_open_pioneer_scale_viewer.ScaleViewerProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/scale-viewer\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_scale_viewer.ScaleViewerProps.html#className\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/scale-viewer.ScaleViewerProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_scale_viewer.ScaleViewerProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/scale-viewer.ScaleViewerProps\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_scale_viewer.ScaleViewerProps.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/scale-viewer.ScaleViewerProps\"},{\"kind\":64,\"name\":\"ScaleViewer\",\"url\":\"functions/_open_pioneer_scale_viewer.ScaleViewer.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/scale-viewer\"},{\"kind\":2,\"name\":\"@open-pioneer/basemap-switcher\",\"url\":\"modules/_open_pioneer_basemap_switcher.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"BasemapSwitcherProps\",\"url\":\"interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/basemap-switcher\"},{\"kind\":1024,\"name\":\"allowSelectingEmptyBasemap\",\"url\":\"interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html#allowSelectingEmptyBasemap\",\"classes\":\"\",\"parent\":\"@open-pioneer/basemap-switcher.BasemapSwitcherProps\"},{\"kind\":1024,\"name\":\"aria-label\",\"url\":\"interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html#aria_label\",\"classes\":\"\",\"parent\":\"@open-pioneer/basemap-switcher.BasemapSwitcherProps\"},{\"kind\":1024,\"name\":\"aria-labelledby\",\"url\":\"interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html#aria_labelledby\",\"classes\":\"\",\"parent\":\"@open-pioneer/basemap-switcher.BasemapSwitcherProps\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html#className\",\"classes\":\"\",\"parent\":\"@open-pioneer/basemap-switcher.BasemapSwitcherProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/basemap-switcher.BasemapSwitcherProps\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/basemap-switcher.BasemapSwitcherProps\"},{\"kind\":64,\"name\":\"BasemapSwitcher\",\"url\":\"functions/_open_pioneer_basemap_switcher.BasemapSwitcher.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/basemap-switcher\"},{\"kind\":2,\"name\":\"@open-pioneer/map-navigation\",\"url\":\"modules/_open_pioneer_map_navigation.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"InitialExtentProps\",\"url\":\"interfaces/_open_pioneer_map_navigation.InitialExtentProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_map_navigation.InitialExtentProps.html#className\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map-navigation.InitialExtentProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_map_navigation.InitialExtentProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map-navigation.InitialExtentProps\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_map_navigation.InitialExtentProps.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation.InitialExtentProps\"},{\"kind\":256,\"name\":\"ZoomProps\",\"url\":\"interfaces/_open_pioneer_map_navigation.ZoomProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_map_navigation.ZoomProps.html#className\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map-navigation.ZoomProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_map_navigation.ZoomProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map-navigation.ZoomProps\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_map_navigation.ZoomProps.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation.ZoomProps\"},{\"kind\":1024,\"name\":\"zoomDirection\",\"url\":\"interfaces/_open_pioneer_map_navigation.ZoomProps.html#zoomDirection\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation.ZoomProps\"},{\"kind\":4194304,\"name\":\"ZoomInProps\",\"url\":\"types/_open_pioneer_map_navigation.ZoomInProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation\"},{\"kind\":4194304,\"name\":\"ZoomOutProps\",\"url\":\"types/_open_pioneer_map_navigation.ZoomOutProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation\"},{\"kind\":64,\"name\":\"InitialExtent\",\"url\":\"functions/_open_pioneer_map_navigation.InitialExtent.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation\"},{\"kind\":64,\"name\":\"Zoom\",\"url\":\"functions/_open_pioneer_map_navigation.Zoom.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation\"},{\"kind\":64,\"name\":\"ZoomIn\",\"url\":\"functions/_open_pioneer_map_navigation.ZoomIn.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation\"},{\"kind\":64,\"name\":\"ZoomOut\",\"url\":\"functions/_open_pioneer_map_navigation.ZoomOut.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation\"},{\"kind\":2,\"name\":\"@open-pioneer/measurement\",\"url\":\"modules/_open_pioneer_measurement.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"MeasurementProps\",\"url\":\"interfaces/_open_pioneer_measurement.MeasurementProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/measurement\"},{\"kind\":1024,\"name\":\"activeFeatureStyle\",\"url\":\"interfaces/_open_pioneer_measurement.MeasurementProps.html#activeFeatureStyle\",\"classes\":\"\",\"parent\":\"@open-pioneer/measurement.MeasurementProps\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_measurement.MeasurementProps.html#className\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/measurement.MeasurementProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_measurement.MeasurementProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/measurement.MeasurementProps\"},{\"kind\":1024,\"name\":\"finishedFeatureStyle\",\"url\":\"interfaces/_open_pioneer_measurement.MeasurementProps.html#finishedFeatureStyle\",\"classes\":\"\",\"parent\":\"@open-pioneer/measurement.MeasurementProps\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_measurement.MeasurementProps.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/measurement.MeasurementProps\"},{\"kind\":64,\"name\":\"Measurement\",\"url\":\"functions/_open_pioneer_measurement.Measurement.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/measurement\"},{\"kind\":2,\"name\":\"@open-pioneer/ogc-features\",\"url\":\"modules/_open_pioneer_ogc_features.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"OgcFeatureSourceOptions\",\"url\":\"interfaces/_open_pioneer_ogc_features.OgcFeatureSourceOptions.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features\"},{\"kind\":1024,\"name\":\"additionalOptions\",\"url\":\"interfaces/_open_pioneer_ogc_features.OgcFeatureSourceOptions.html#additionalOptions\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features.OgcFeatureSourceOptions\"},{\"kind\":1024,\"name\":\"attributions\",\"url\":\"interfaces/_open_pioneer_ogc_features.OgcFeatureSourceOptions.html#attributions\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features.OgcFeatureSourceOptions\"},{\"kind\":1024,\"name\":\"baseUrl\",\"url\":\"interfaces/_open_pioneer_ogc_features.OgcFeatureSourceOptions.html#baseUrl\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features.OgcFeatureSourceOptions\"},{\"kind\":1024,\"name\":\"collectionId\",\"url\":\"interfaces/_open_pioneer_ogc_features.OgcFeatureSourceOptions.html#collectionId\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features.OgcFeatureSourceOptions\"},{\"kind\":1024,\"name\":\"crs\",\"url\":\"interfaces/_open_pioneer_ogc_features.OgcFeatureSourceOptions.html#crs\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features.OgcFeatureSourceOptions\"},{\"kind\":1024,\"name\":\"limit\",\"url\":\"interfaces/_open_pioneer_ogc_features.OgcFeatureSourceOptions.html#limit\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features.OgcFeatureSourceOptions\"},{\"kind\":1024,\"name\":\"maxConcurrentRequests\",\"url\":\"interfaces/_open_pioneer_ogc_features.OgcFeatureSourceOptions.html#maxConcurrentRequests\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features.OgcFeatureSourceOptions\"},{\"kind\":64,\"name\":\"createVectorSource\",\"url\":\"functions/_open_pioneer_ogc_features.createVectorSource.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,16.454,1,26.586,2,26.586,3,24.145]],[\"comment/0\",[]],[\"name/1\",[4,57.572]],[\"comment/1\",[]],[\"name/2\",[5,57.572]],[\"comment/2\",[]],[\"name/3\",[6,57.572]],[\"comment/3\",[]],[\"name/4\",[7,36.493]],[\"comment/4\",[]],[\"name/5\",[8,48.804]],[\"comment/5\",[]],[\"name/6\",[9,57.572]],[\"comment/6\",[]],[\"name/7\",[10,57.572]],[\"comment/7\",[]],[\"name/8\",[11,57.572]],[\"comment/8\",[]],[\"name/9\",[12,44.126]],[\"comment/9\",[]],[\"name/10\",[13,57.572]],[\"comment/10\",[]],[\"name/11\",[14,57.572]],[\"comment/11\",[]],[\"name/12\",[12,44.126]],[\"comment/12\",[]],[\"name/13\",[3,52.286]],[\"comment/13\",[]],[\"name/14\",[0,25.661,15,35.149]],[\"comment/14\",[]],[\"name/15\",[16,57.572]],[\"comment/15\",[]],[\"name/16\",[17,52.286]],[\"comment/16\",[]],[\"name/17\",[18,52.286]],[\"comment/17\",[]],[\"name/18\",[19,57.572]],[\"comment/18\",[]],[\"name/19\",[20,57.572]],[\"comment/19\",[]],[\"name/20\",[21,57.572]],[\"comment/20\",[]],[\"name/21\",[22,57.572]],[\"comment/21\",[]],[\"name/22\",[23,57.572]],[\"comment/22\",[]],[\"name/23\",[24,57.572]],[\"comment/23\",[]],[\"name/24\",[25,57.572]],[\"comment/24\",[]],[\"name/25\",[26,52.286]],[\"comment/25\",[]],[\"name/26\",[27,37.434]],[\"comment/26\",[]],[\"name/27\",[28,57.572]],[\"comment/27\",[]],[\"name/28\",[29,52.286]],[\"comment/28\",[]],[\"name/29\",[27,37.434]],[\"comment/29\",[]],[\"name/30\",[30,48.804]],[\"comment/30\",[]],[\"name/31\",[31,57.572]],[\"comment/31\",[]],[\"name/32\",[32,37.434]],[\"comment/32\",[]],[\"name/33\",[33,38.47]],[\"comment/33\",[]],[\"name/34\",[7,36.493]],[\"comment/34\",[]],[\"name/35\",[34,46.203]],[\"comment/35\",[]],[\"name/36\",[35,52.286]],[\"comment/36\",[]],[\"name/37\",[36,40.917]],[\"comment/37\",[]],[\"name/38\",[37,48.804]],[\"comment/38\",[]],[\"name/39\",[38,42.397]],[\"comment/39\",[]],[\"name/40\",[39,36.493]],[\"comment/40\",[]],[\"name/41\",[40,38.47]],[\"comment/41\",[]],[\"name/42\",[41,46.203]],[\"comment/42\",[]],[\"name/43\",[42,46.203]],[\"comment/43\",[]],[\"name/44\",[43,46.203]],[\"comment/44\",[]],[\"name/45\",[44,46.203]],[\"comment/45\",[]],[\"name/46\",[45,46.203]],[\"comment/46\",[]],[\"name/47\",[46,57.572]],[\"comment/47\",[]],[\"name/48\",[32,37.434]],[\"comment/48\",[]],[\"name/49\",[33,38.47]],[\"comment/49\",[]],[\"name/50\",[7,36.493]],[\"comment/50\",[]],[\"name/51\",[36,40.917]],[\"comment/51\",[]],[\"name/52\",[38,42.397]],[\"comment/52\",[]],[\"name/53\",[39,36.493]],[\"comment/53\",[]],[\"name/54\",[40,38.47]],[\"comment/54\",[]],[\"name/55\",[41,46.203]],[\"comment/55\",[]],[\"name/56\",[42,46.203]],[\"comment/56\",[]],[\"name/57\",[43,46.203]],[\"comment/57\",[]],[\"name/58\",[44,46.203]],[\"comment/58\",[]],[\"name/59\",[45,46.203]],[\"comment/59\",[]],[\"name/60\",[47,57.572]],[\"comment/60\",[]],[\"name/61\",[32,37.434]],[\"comment/61\",[]],[\"name/62\",[33,38.47]],[\"comment/62\",[]],[\"name/63\",[7,36.493]],[\"comment/63\",[]],[\"name/64\",[39,36.493]],[\"comment/64\",[]],[\"name/65\",[40,38.47]],[\"comment/65\",[]],[\"name/66\",[48,57.572]],[\"comment/66\",[]],[\"name/67\",[49,42.397]],[\"comment/67\",[]],[\"name/68\",[50,57.572]],[\"comment/68\",[]],[\"name/69\",[51,57.572]],[\"comment/69\",[]],[\"name/70\",[52,57.572]],[\"comment/70\",[]],[\"name/71\",[53,57.572]],[\"comment/71\",[]],[\"name/72\",[54,57.572]],[\"comment/72\",[]],[\"name/73\",[55,52.286]],[\"comment/73\",[]],[\"name/74\",[56,57.572]],[\"comment/74\",[]],[\"name/75\",[57,57.572]],[\"comment/75\",[]],[\"name/76\",[58,57.572]],[\"comment/76\",[]],[\"name/77\",[59,57.572]],[\"comment/77\",[]],[\"name/78\",[60,57.572]],[\"comment/78\",[]],[\"name/79\",[61,57.572]],[\"comment/79\",[]],[\"name/80\",[62,57.572]],[\"comment/80\",[]],[\"name/81\",[63,57.572]],[\"comment/81\",[]],[\"name/82\",[64,57.572]],[\"comment/82\",[]],[\"name/83\",[65,57.572]],[\"comment/83\",[]],[\"name/84\",[66,57.572]],[\"comment/84\",[]],[\"name/85\",[49,42.397]],[\"comment/85\",[]],[\"name/86\",[67,57.572]],[\"comment/86\",[]],[\"name/87\",[32,37.434]],[\"comment/87\",[]],[\"name/88\",[33,38.47]],[\"comment/88\",[]],[\"name/89\",[7,36.493]],[\"comment/89\",[]],[\"name/90\",[34,46.203]],[\"comment/90\",[]],[\"name/91\",[39,36.493]],[\"comment/91\",[]],[\"name/92\",[40,38.47]],[\"comment/92\",[]],[\"name/93\",[68,57.572]],[\"comment/93\",[]],[\"name/94\",[69,57.572]],[\"comment/94\",[]],[\"name/95\",[70,57.572]],[\"comment/95\",[]],[\"name/96\",[71,42.397]],[\"comment/96\",[]],[\"name/97\",[72,38.47]],[\"comment/97\",[]],[\"name/98\",[73,27.707,74,27.707]],[\"comment/98\",[]],[\"name/99\",[75,57.572]],[\"comment/99\",[]],[\"name/100\",[76,52.286]],[\"comment/100\",[]],[\"name/101\",[77,57.572]],[\"comment/101\",[]],[\"name/102\",[78,57.572]],[\"comment/102\",[]],[\"name/103\",[79,57.572]],[\"comment/103\",[]],[\"name/104\",[80,52.286]],[\"comment/104\",[]],[\"name/105\",[81,57.572]],[\"comment/105\",[]],[\"name/106\",[82,48.804]],[\"comment/106\",[]],[\"name/107\",[83,52.286]],[\"comment/107\",[]],[\"name/108\",[84,57.572]],[\"comment/108\",[]],[\"name/109\",[85,39.621]],[\"comment/109\",[]],[\"name/110\",[86,57.572]],[\"comment/110\",[]],[\"name/111\",[87,57.572]],[\"comment/111\",[]],[\"name/112\",[8,35.149,88,33.276]],[\"comment/112\",[]],[\"name/113\",[88,33.276,89,37.657]],[\"comment/113\",[]],[\"name/114\",[71,42.397]],[\"comment/114\",[]],[\"name/115\",[72,38.47]],[\"comment/115\",[]],[\"name/116\",[73,27.707,74,27.707]],[\"comment/116\",[]],[\"name/117\",[85,39.621]],[\"comment/117\",[]],[\"name/118\",[90,57.572]],[\"comment/118\",[]],[\"name/119\",[91,57.572]],[\"comment/119\",[]],[\"name/120\",[92,57.572]],[\"comment/120\",[]],[\"name/121\",[93,57.572]],[\"comment/121\",[]],[\"name/122\",[94,57.572]],[\"comment/122\",[]],[\"name/123\",[7,36.493]],[\"comment/123\",[]],[\"name/124\",[95,52.286]],[\"comment/124\",[]],[\"name/125\",[82,48.804]],[\"comment/125\",[]],[\"name/126\",[96,57.572]],[\"comment/126\",[]],[\"name/127\",[97,57.572]],[\"comment/127\",[]],[\"name/128\",[98,57.572]],[\"comment/128\",[]],[\"name/129\",[49,42.397]],[\"comment/129\",[]],[\"name/130\",[99,57.572]],[\"comment/130\",[]],[\"name/131\",[100,57.572]],[\"comment/131\",[]],[\"name/132\",[55,52.286]],[\"comment/132\",[]],[\"name/133\",[101,57.572]],[\"comment/133\",[]],[\"name/134\",[102,57.572]],[\"comment/134\",[]],[\"name/135\",[103,57.572]],[\"comment/135\",[]],[\"name/136\",[104,57.572]],[\"comment/136\",[]],[\"name/137\",[105,57.572]],[\"comment/137\",[]],[\"name/138\",[106,57.572]],[\"comment/138\",[]],[\"name/139\",[107,57.572]],[\"comment/139\",[]],[\"name/140\",[108,57.572]],[\"comment/140\",[]],[\"name/141\",[109,57.572]],[\"comment/141\",[]],[\"name/142\",[110,57.572]],[\"comment/142\",[]],[\"name/143\",[111,57.572]],[\"comment/143\",[]],[\"name/144\",[112,57.572]],[\"comment/144\",[]],[\"name/145\",[32,37.434]],[\"comment/145\",[]],[\"name/146\",[33,38.47]],[\"comment/146\",[]],[\"name/147\",[7,36.493]],[\"comment/147\",[]],[\"name/148\",[34,46.203]],[\"comment/148\",[]],[\"name/149\",[37,48.804]],[\"comment/149\",[]],[\"name/150\",[39,36.493]],[\"comment/150\",[]],[\"name/151\",[40,38.47]],[\"comment/151\",[]],[\"name/152\",[113,57.572]],[\"comment/152\",[]],[\"name/153\",[114,52.286]],[\"comment/153\",[]],[\"name/154\",[115,52.286]],[\"comment/154\",[]],[\"name/155\",[116,57.572]],[\"comment/155\",[]],[\"name/156\",[32,37.434]],[\"comment/156\",[]],[\"name/157\",[33,38.47]],[\"comment/157\",[]],[\"name/158\",[7,36.493]],[\"comment/158\",[]],[\"name/159\",[36,40.917]],[\"comment/159\",[]],[\"name/160\",[117,57.572]],[\"comment/160\",[]],[\"name/161\",[118,57.572]],[\"comment/161\",[]],[\"name/162\",[38,42.397]],[\"comment/162\",[]],[\"name/163\",[39,36.493]],[\"comment/163\",[]],[\"name/164\",[40,38.47]],[\"comment/164\",[]],[\"name/165\",[41,46.203]],[\"comment/165\",[]],[\"name/166\",[42,46.203]],[\"comment/166\",[]],[\"name/167\",[43,46.203]],[\"comment/167\",[]],[\"name/168\",[44,46.203]],[\"comment/168\",[]],[\"name/169\",[45,46.203]],[\"comment/169\",[]],[\"name/170\",[119,57.572]],[\"comment/170\",[]],[\"name/171\",[120,57.572]],[\"comment/171\",[]],[\"name/172\",[121,57.572]],[\"comment/172\",[]],[\"name/173\",[49,42.397]],[\"comment/173\",[]],[\"name/174\",[122,57.572]],[\"comment/174\",[]],[\"name/175\",[123,48.804]],[\"comment/175\",[]],[\"name/176\",[27,37.434]],[\"comment/176\",[]],[\"name/177\",[36,40.917]],[\"comment/177\",[]],[\"name/178\",[124,57.572]],[\"comment/178\",[]],[\"name/179\",[123,48.804]],[\"comment/179\",[]],[\"name/180\",[27,37.434]],[\"comment/180\",[]],[\"name/181\",[36,40.917]],[\"comment/181\",[]],[\"name/182\",[125,57.572]],[\"comment/182\",[]],[\"name/183\",[123,48.804]],[\"comment/183\",[]],[\"name/184\",[27,37.434]],[\"comment/184\",[]],[\"name/185\",[36,40.917]],[\"comment/185\",[]],[\"name/186\",[126,52.286]],[\"comment/186\",[]],[\"name/187\",[32,37.434]],[\"comment/187\",[]],[\"name/188\",[33,38.47]],[\"comment/188\",[]],[\"name/189\",[7,36.493]],[\"comment/189\",[]],[\"name/190\",[34,46.203]],[\"comment/190\",[]],[\"name/191\",[35,52.286]],[\"comment/191\",[]],[\"name/192\",[36,40.917]],[\"comment/192\",[]],[\"name/193\",[37,48.804]],[\"comment/193\",[]],[\"name/194\",[38,42.397]],[\"comment/194\",[]],[\"name/195\",[39,36.493]],[\"comment/195\",[]],[\"name/196\",[127,52.286]],[\"comment/196\",[]],[\"name/197\",[40,38.47]],[\"comment/197\",[]],[\"name/198\",[41,46.203]],[\"comment/198\",[]],[\"name/199\",[42,46.203]],[\"comment/199\",[]],[\"name/200\",[43,46.203]],[\"comment/200\",[]],[\"name/201\",[44,46.203]],[\"comment/201\",[]],[\"name/202\",[45,46.203]],[\"comment/202\",[]],[\"name/203\",[128,57.572]],[\"comment/203\",[]],[\"name/204\",[32,37.434]],[\"comment/204\",[]],[\"name/205\",[33,38.47]],[\"comment/205\",[]],[\"name/206\",[7,36.493]],[\"comment/206\",[]],[\"name/207\",[129,57.572]],[\"comment/207\",[]],[\"name/208\",[38,42.397]],[\"comment/208\",[]],[\"name/209\",[39,36.493]],[\"comment/209\",[]],[\"name/210\",[127,52.286]],[\"comment/210\",[]],[\"name/211\",[40,38.47]],[\"comment/211\",[]],[\"name/212\",[130,57.572]],[\"comment/212\",[]],[\"name/213\",[114,52.286]],[\"comment/213\",[]],[\"name/214\",[115,52.286]],[\"comment/214\",[]],[\"name/215\",[131,57.572]],[\"comment/215\",[]],[\"name/216\",[32,37.434]],[\"comment/216\",[]],[\"name/217\",[33,38.47]],[\"comment/217\",[]],[\"name/218\",[7,36.493]],[\"comment/218\",[]],[\"name/219\",[132,57.572]],[\"comment/219\",[]],[\"name/220\",[38,42.397]],[\"comment/220\",[]],[\"name/221\",[39,36.493]],[\"comment/221\",[]],[\"name/222\",[40,38.47]],[\"comment/222\",[]],[\"name/223\",[133,57.572]],[\"comment/223\",[]],[\"name/224\",[134,57.572]],[\"comment/224\",[]],[\"name/225\",[135,57.572]],[\"comment/225\",[]],[\"name/226\",[136,57.572]],[\"comment/226\",[]],[\"name/227\",[137,52.286]],[\"comment/227\",[]],[\"name/228\",[138,57.572]],[\"comment/228\",[]],[\"name/229\",[137,52.286]],[\"comment/229\",[]],[\"name/230\",[126,52.286]],[\"comment/230\",[]],[\"name/231\",[139,57.572]],[\"comment/231\",[]],[\"name/232\",[140,57.572]],[\"comment/232\",[]],[\"name/233\",[141,57.572]],[\"comment/233\",[]],[\"name/234\",[142,57.572]],[\"comment/234\",[]],[\"name/235\",[143,57.572]],[\"comment/235\",[]],[\"name/236\",[144,57.572]],[\"comment/236\",[]],[\"name/237\",[145,57.572]],[\"comment/237\",[]],[\"name/238\",[146,57.572]],[\"comment/238\",[]],[\"name/239\",[147,57.572]],[\"comment/239\",[]],[\"name/240\",[0,16.454,15,22.537,148,26.586,149,24.145]],[\"comment/240\",[]],[\"name/241\",[150,57.572]],[\"comment/241\",[]],[\"name/242\",[80,52.286]],[\"comment/242\",[]],[\"name/243\",[29,52.286]],[\"comment/243\",[]],[\"name/244\",[12,44.126]],[\"comment/244\",[]],[\"name/245\",[17,52.286]],[\"comment/245\",[]],[\"name/246\",[18,52.286]],[\"comment/246\",[]],[\"name/247\",[26,52.286]],[\"comment/247\",[]],[\"name/248\",[82,48.804]],[\"comment/248\",[]],[\"name/249\",[151,57.572]],[\"comment/249\",[]],[\"name/250\",[152,57.572]],[\"comment/250\",[]],[\"name/251\",[83,52.286]],[\"comment/251\",[]],[\"name/252\",[30,48.804]],[\"comment/252\",[]],[\"name/253\",[153,57.572]],[\"comment/253\",[]],[\"name/254\",[154,57.572]],[\"comment/254\",[]],[\"name/255\",[155,57.572]],[\"comment/255\",[]],[\"name/256\",[156,57.572]],[\"comment/256\",[]],[\"name/257\",[0,25.661,157,41.464]],[\"comment/257\",[]],[\"name/258\",[158,57.572]],[\"comment/258\",[]],[\"name/259\",[159,57.572]],[\"comment/259\",[]],[\"name/260\",[160,52.286]],[\"comment/260\",[]],[\"name/261\",[161,57.572]],[\"comment/261\",[]],[\"name/262\",[39,36.493]],[\"comment/262\",[]],[\"name/263\",[162,57.572]],[\"comment/263\",[]],[\"name/264\",[163,57.572]],[\"comment/264\",[]],[\"name/265\",[164,57.572]],[\"comment/265\",[]],[\"name/266\",[165,57.572]],[\"comment/266\",[]],[\"name/267\",[76,52.286]],[\"comment/267\",[]],[\"name/268\",[166,57.572]],[\"comment/268\",[]],[\"name/269\",[167,57.572]],[\"comment/269\",[]],[\"name/270\",[0,20.051,149,29.424,168,32.399]],[\"comment/270\",[]],[\"name/271\",[169,57.572]],[\"comment/271\",[]],[\"name/272\",[72,38.47]],[\"comment/272\",[]],[\"name/273\",[73,27.707,74,27.707]],[\"comment/273\",[]],[\"name/274\",[170,57.572]],[\"comment/274\",[]],[\"name/275\",[71,42.397]],[\"comment/275\",[]],[\"name/276\",[160,52.286]],[\"comment/276\",[]],[\"name/277\",[171,57.572]],[\"comment/277\",[]],[\"name/278\",[71,42.397]],[\"comment/278\",[]],[\"name/279\",[172,57.572]],[\"comment/279\",[]],[\"name/280\",[71,42.397]],[\"comment/280\",[]],[\"name/281\",[173,57.572]],[\"comment/281\",[]],[\"name/282\",[39,36.493]],[\"comment/282\",[]],[\"name/283\",[174,57.572]],[\"comment/283\",[]],[\"name/284\",[175,57.572]],[\"comment/284\",[]],[\"name/285\",[176,57.572]],[\"comment/285\",[]],[\"name/286\",[177,57.572]],[\"comment/286\",[]],[\"name/287\",[178,57.572]],[\"comment/287\",[]],[\"name/288\",[12,44.126]],[\"comment/288\",[]],[\"name/289\",[179,57.572]],[\"comment/289\",[]],[\"name/290\",[180,57.572]],[\"comment/290\",[]],[\"name/291\",[181,57.572]],[\"comment/291\",[]],[\"name/292\",[0,25.661,182,41.464]],[\"comment/292\",[]],[\"name/293\",[183,57.572]],[\"comment/293\",[]],[\"name/294\",[49,42.397]],[\"comment/294\",[]],[\"name/295\",[184,57.572]],[\"comment/295\",[]],[\"name/296\",[185,52.286]],[\"comment/296\",[]],[\"name/297\",[186,52.286]],[\"comment/297\",[]],[\"name/298\",[187,52.286]],[\"comment/298\",[]],[\"name/299\",[188,57.572]],[\"comment/299\",[]],[\"name/300\",[49,42.397]],[\"comment/300\",[]],[\"name/301\",[189,57.572]],[\"comment/301\",[]],[\"name/302\",[185,52.286]],[\"comment/302\",[]],[\"name/303\",[186,52.286]],[\"comment/303\",[]],[\"name/304\",[190,57.572]],[\"comment/304\",[]],[\"name/305\",[187,52.286]],[\"comment/305\",[]],[\"name/306\",[191,57.572]],[\"comment/306\",[]],[\"name/307\",[27,37.434]],[\"comment/307\",[]],[\"name/308\",[192,52.286]],[\"comment/308\",[]],[\"name/309\",[193,57.572]],[\"comment/309\",[]],[\"name/310\",[27,37.434]],[\"comment/310\",[]],[\"name/311\",[194,57.572]],[\"comment/311\",[]],[\"name/312\",[27,37.434]],[\"comment/312\",[]],[\"name/313\",[195,57.572]],[\"comment/313\",[]],[\"name/314\",[71,42.397]],[\"comment/314\",[]],[\"name/315\",[196,57.572]],[\"comment/315\",[]],[\"name/316\",[197,57.572]],[\"comment/316\",[]],[\"name/317\",[12,44.126]],[\"comment/317\",[]],[\"name/318\",[198,57.572]],[\"comment/318\",[]],[\"name/319\",[27,37.434]],[\"comment/319\",[]],[\"name/320\",[199,57.572]],[\"comment/320\",[]],[\"name/321\",[200,57.572]],[\"comment/321\",[]],[\"name/322\",[201,57.572]],[\"comment/322\",[]],[\"name/323\",[27,37.434]],[\"comment/323\",[]],[\"name/324\",[192,52.286]],[\"comment/324\",[]],[\"name/325\",[32,37.434]],[\"comment/325\",[]],[\"name/326\",[202,57.572]],[\"comment/326\",[]],[\"name/327\",[203,57.572]],[\"comment/327\",[]],[\"name/328\",[204,57.572]],[\"comment/328\",[]],[\"name/329\",[205,57.572]],[\"comment/329\",[]],[\"name/330\",[206,57.572]],[\"comment/330\",[]],[\"name/331\",[207,57.572]],[\"comment/331\",[]],[\"name/332\",[208,57.572]],[\"comment/332\",[]],[\"name/333\",[209,57.572]],[\"comment/333\",[]],[\"name/334\",[0,20.051,210,32.399,211,29.424]],[\"comment/334\",[]],[\"name/335\",[212,57.572]],[\"comment/335\",[]],[\"name/336\",[72,38.47]],[\"comment/336\",[]],[\"name/337\",[73,27.707,74,27.707]],[\"comment/337\",[]],[\"name/338\",[85,39.621]],[\"comment/338\",[]],[\"name/339\",[213,57.572]],[\"comment/339\",[]],[\"name/340\",[214,57.572]],[\"comment/340\",[]],[\"name/341\",[0,20.051,211,29.424,215,32.399]],[\"comment/341\",[]],[\"name/342\",[216,57.572]],[\"comment/342\",[]],[\"name/343\",[72,38.47]],[\"comment/343\",[]],[\"name/344\",[73,27.707,74,27.707]],[\"comment/344\",[]],[\"name/345\",[85,39.621]],[\"comment/345\",[]],[\"name/346\",[217,57.572]],[\"comment/346\",[]],[\"name/347\",[0,20.051,218,32.399,219,32.399]],[\"comment/347\",[]],[\"name/348\",[220,57.572]],[\"comment/348\",[]],[\"name/349\",[221,57.572]],[\"comment/349\",[]],[\"name/350\",[8,35.149,88,33.276]],[\"comment/350\",[]],[\"name/351\",[88,33.276,89,37.657]],[\"comment/351\",[]],[\"name/352\",[72,38.47]],[\"comment/352\",[]],[\"name/353\",[73,27.707,74,27.707]],[\"comment/353\",[]],[\"name/354\",[85,39.621]],[\"comment/354\",[]],[\"name/355\",[222,57.572]],[\"comment/355\",[]],[\"name/356\",[0,20.051,15,27.464,223,32.399]],[\"comment/356\",[]],[\"name/357\",[224,57.572]],[\"comment/357\",[]],[\"name/358\",[72,38.47]],[\"comment/358\",[]],[\"name/359\",[73,27.707,74,27.707]],[\"comment/359\",[]],[\"name/360\",[85,39.621]],[\"comment/360\",[]],[\"name/361\",[225,57.572]],[\"comment/361\",[]],[\"name/362\",[72,38.47]],[\"comment/362\",[]],[\"name/363\",[73,27.707,74,27.707]],[\"comment/363\",[]],[\"name/364\",[85,39.621]],[\"comment/364\",[]],[\"name/365\",[226,57.572]],[\"comment/365\",[]],[\"name/366\",[227,57.572]],[\"comment/366\",[]],[\"name/367\",[228,57.572]],[\"comment/367\",[]],[\"name/368\",[95,52.286]],[\"comment/368\",[]],[\"name/369\",[30,48.804]],[\"comment/369\",[]],[\"name/370\",[229,57.572]],[\"comment/370\",[]],[\"name/371\",[230,57.572]],[\"comment/371\",[]],[\"name/372\",[0,25.661,231,41.464]],[\"comment/372\",[]],[\"name/373\",[232,57.572]],[\"comment/373\",[]],[\"name/374\",[233,57.572]],[\"comment/374\",[]],[\"name/375\",[72,38.47]],[\"comment/375\",[]],[\"name/376\",[73,27.707,74,27.707]],[\"comment/376\",[]],[\"name/377\",[234,57.572]],[\"comment/377\",[]],[\"name/378\",[85,39.621]],[\"comment/378\",[]],[\"name/379\",[235,57.572]],[\"comment/379\",[]],[\"name/380\",[0,20.051,236,32.399,237,32.399]],[\"comment/380\",[]],[\"name/381\",[238,57.572]],[\"comment/381\",[]],[\"name/382\",[239,57.572]],[\"comment/382\",[]],[\"name/383\",[240,57.572]],[\"comment/383\",[]],[\"name/384\",[241,57.572]],[\"comment/384\",[]],[\"name/385\",[242,57.572]],[\"comment/385\",[]],[\"name/386\",[243,57.572]],[\"comment/386\",[]],[\"name/387\",[244,57.572]],[\"comment/387\",[]],[\"name/388\",[245,57.572]],[\"comment/388\",[]],[\"name/389\",[246,57.572]],[\"comment/389\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":12,\"name\":{\"9\":{},\"12\":{},\"244\":{},\"288\":{},\"317\":{}},\"comment\":{}}],[\"activatebaselayer\",{\"_index\":57,\"name\":{\"75\":{}},\"comment\":{}}],[\"activefeaturestyle\",{\"_index\":233,\"name\":{\"374\":{}},\"comment\":{}}],[\"additionaloptions\",{\"_index\":239,\"name\":{\"382\":{}},\"comment\":{}}],[\"addlayer\",{\"_index\":58,\"name\":{\"76\":{}},\"comment\":{}}],[\"advanced\",{\"_index\":80,\"name\":{\"104\":{},\"242\":{}},\"comment\":{}}],[\"allowselectingemptybasemap\",{\"_index\":221,\"name\":{\"349\":{}},\"comment\":{}}],[\"aria\",{\"_index\":88,\"name\":{\"112\":{},\"113\":{},\"350\":{},\"351\":{}},\"comment\":{}}],[\"attributes\",{\"_index\":32,\"name\":{\"32\":{},\"48\":{},\"61\":{},\"87\":{},\"145\":{},\"156\":{},\"187\":{},\"204\":{},\"216\":{},\"325\":{}},\"comment\":{}}],[\"attributions\",{\"_index\":240,\"name\":{\"383\":{}},\"comment\":{}}],[\"authevents\",{\"_index\":183,\"name\":{\"293\":{}},\"comment\":{}}],[\"authplugin\",{\"_index\":184,\"name\":{\"295\":{}},\"comment\":{}}],[\"authplugineventbase\",{\"_index\":205,\"name\":{\"329\":{}},\"comment\":{}}],[\"authpluginevents\",{\"_index\":188,\"name\":{\"299\":{}},\"comment\":{}}],[\"authservice\",{\"_index\":189,\"name\":{\"301\":{}},\"comment\":{}}],[\"authstate\",{\"_index\":206,\"name\":{\"330\":{}},\"comment\":{}}],[\"authstateauthenticated\",{\"_index\":191,\"name\":{\"306\":{}},\"comment\":{}}],[\"authstatenotauthenticated\",{\"_index\":193,\"name\":{\"309\":{}},\"comment\":{}}],[\"authstatepending\",{\"_index\":194,\"name\":{\"311\":{}},\"comment\":{}}],[\"basemapswitcher\",{\"_index\":222,\"name\":{\"355\":{}},\"comment\":{}}],[\"basemapswitcherprops\",{\"_index\":220,\"name\":{\"348\":{}},\"comment\":{}}],[\"baseurl\",{\"_index\":241,\"name\":{\"384\":{}},\"comment\":{}}],[\"bottom\",{\"_index\":102,\"name\":{\"134\":{}},\"comment\":{}}],[\"center\",{\"_index\":29,\"name\":{\"28\":{},\"243\":{}},\"comment\":{}}],[\"changed\",{\"_index\":49,\"name\":{\"67\":{},\"85\":{},\"129\":{},\"173\":{},\"294\":{},\"300\":{}},\"comment\":{}}],[\"changed:attributes\",{\"_index\":50,\"name\":{\"68\":{}},\"comment\":{}}],[\"changed:container\",{\"_index\":99,\"name\":{\"130\":{}},\"comment\":{}}],[\"changed:description\",{\"_index\":51,\"name\":{\"69\":{}},\"comment\":{}}],[\"changed:initialextent\",{\"_index\":100,\"name\":{\"131\":{}},\"comment\":{}}],[\"changed:loadstate\",{\"_index\":52,\"name\":{\"70\":{}},\"comment\":{}}],[\"changed:title\",{\"_index\":53,\"name\":{\"71\":{}},\"comment\":{}}],[\"changed:visible\",{\"_index\":54,\"name\":{\"72\":{}},\"comment\":{}}],[\"children\",{\"_index\":71,\"name\":{\"96\":{},\"114\":{},\"275\":{},\"278\":{},\"280\":{},\"314\":{}},\"comment\":{}}],[\"classname\",{\"_index\":72,\"name\":{\"97\":{},\"115\":{},\"272\":{},\"336\":{},\"343\":{},\"352\":{},\"358\":{},\"362\":{},\"375\":{}},\"comment\":{}}],[\"closeall\",{\"_index\":163,\"name\":{\"264\":{}},\"comment\":{}}],[\"collectionid\",{\"_index\":242,\"name\":{\"385\":{}},\"comment\":{}}],[\"commoncomponentprops\",{\"_index\":169,\"name\":{\"271\":{}},\"comment\":{}}],[\"configuretitledsection\",{\"_index\":175,\"name\":{\"284\":{}},\"comment\":{}}],[\"configuretitledsectionprops\",{\"_index\":170,\"name\":{\"274\":{}},\"comment\":{}}],[\"constructor\",{\"_index\":114,\"name\":{\"153\":{},\"213\":{}},\"comment\":{}}],[\"container\",{\"_index\":94,\"name\":{\"122\":{}},\"comment\":{}}],[\"containerprops\",{\"_index\":179,\"name\":{\"289\":{}},\"comment\":{}}],[\"content\",{\"_index\":5,\"name\":{\"2\":{}},\"comment\":{}}],[\"coordinateconfig\",{\"_index\":16,\"name\":{\"15\":{}},\"comment\":{}}],[\"coordinateviewer\",{\"_index\":214,\"name\":{\"340\":{}},\"comment\":{}}],[\"coordinateviewerprops\",{\"_index\":212,\"name\":{\"335\":{}},\"comment\":{}}],[\"createserviceoptions\",{\"_index\":153,\"name\":{\"253\":{}},\"comment\":{}}],[\"createvectorsource\",{\"_index\":246,\"name\":{\"389\":{}},\"comment\":{}}],[\"crs\",{\"_index\":243,\"name\":{\"386\":{}},\"comment\":{}}],[\"data\",{\"_index\":73,\"name\":{\"98\":{},\"116\":{},\"273\":{},\"337\":{},\"344\":{},\"353\":{},\"359\":{},\"363\":{},\"376\":{}},\"comment\":{}}],[\"defaultexpanded\",{\"_index\":10,\"name\":{\"7\":{}},\"comment\":{}}],[\"deleteattribute\",{\"_index\":41,\"name\":{\"42\":{},\"55\":{},\"165\":{},\"198\":{}},\"comment\":{}}],[\"description\",{\"_index\":33,\"name\":{\"33\":{},\"49\":{},\"62\":{},\"88\":{},\"146\":{},\"157\":{},\"188\":{},\"205\":{},\"217\":{}},\"comment\":{}}],[\"destroy\",{\"_index\":55,\"name\":{\"73\":{},\"132\":{}},\"comment\":{}}],[\"displayduration\",{\"_index\":159,\"name\":{\"259\":{}},\"comment\":{}}],[\"error\",{\"_index\":123,\"name\":{\"175\":{},\"179\":{},\"183\":{}},\"comment\":{}}],[\"expandedchanged\",{\"_index\":11,\"name\":{\"8\":{}},\"comment\":{}}],[\"expectmapmodel\",{\"_index\":107,\"name\":{\"139\":{}},\"comment\":{}}],[\"expiresat\",{\"_index\":202,\"name\":{\"326\":{}},\"comment\":{}}],[\"extent\",{\"_index\":26,\"name\":{\"25\":{},\"247\":{}},\"comment\":{}}],[\"extentconfig\",{\"_index\":20,\"name\":{\"19\":{}},\"comment\":{}}],[\"fallback\",{\"_index\":201,\"name\":{\"322\":{}},\"comment\":{}}],[\"fallbackprops\",{\"_index\":196,\"name\":{\"315\":{}},\"comment\":{}}],[\"features\",{\"_index\":237,\"name\":{\"380\":{}},\"comment\":{}}],[\"finishedfeaturestyle\",{\"_index\":234,\"name\":{\"377\":{}},\"comment\":{}}],[\"forceauth\",{\"_index\":208,\"name\":{\"332\":{}},\"comment\":{}}],[\"forceauthprops\",{\"_index\":195,\"name\":{\"313\":{}},\"comment\":{}}],[\"getactivebaselayer\",{\"_index\":59,\"name\":{\"77\":{}},\"comment\":{}}],[\"getalllayers\",{\"_index\":60,\"name\":{\"78\":{}},\"comment\":{}}],[\"getauthstate\",{\"_index\":185,\"name\":{\"296\":{},\"302\":{}},\"comment\":{}}],[\"getbaselayers\",{\"_index\":61,\"name\":{\"79\":{}},\"comment\":{}}],[\"getlayerbyid\",{\"_index\":62,\"name\":{\"80\":{}},\"comment\":{}}],[\"getlayerbyrawinstance\",{\"_index\":63,\"name\":{\"81\":{}},\"comment\":{}}],[\"getloginbehavior\",{\"_index\":186,\"name\":{\"297\":{},\"303\":{}},\"comment\":{}}],[\"getmapconfig\",{\"_index\":86,\"name\":{\"110\":{}},\"comment\":{}}],[\"getmapmodel\",{\"_index\":108,\"name\":{\"140\":{}},\"comment\":{}}],[\"getmapmodelbyrawinstance\",{\"_index\":109,\"name\":{\"141\":{}},\"comment\":{}}],[\"getoperationallayers\",{\"_index\":64,\"name\":{\"82\":{}},\"comment\":{}}],[\"getprojection\",{\"_index\":141,\"name\":{\"233\":{}},\"comment\":{}}],[\"getsessioninfo\",{\"_index\":190,\"name\":{\"304\":{}},\"comment\":{}}],[\"getsublayers\",{\"_index\":120,\"name\":{\"171\":{}},\"comment\":{}}],[\"headinglevel\",{\"_index\":174,\"name\":{\"283\":{}},\"comment\":{}}],[\"horizontalgap\",{\"_index\":75,\"name\":{\"99\":{}},\"comment\":{}}],[\"icon\",{\"_index\":6,\"name\":{\"3\":{}},\"comment\":{}}],[\"id\",{\"_index\":7,\"name\":{\"4\":{},\"34\":{},\"50\":{},\"63\":{},\"89\":{},\"123\":{},\"147\":{},\"158\":{},\"189\":{},\"206\":{},\"218\":{}},\"comment\":{}}],[\"initialextent\",{\"_index\":95,\"name\":{\"124\":{},\"368\":{}},\"comment\":{}}],[\"initialextentconfig\",{\"_index\":25,\"name\":{\"24\":{}},\"comment\":{}}],[\"initialextentprops\",{\"_index\":224,\"name\":{\"357\":{}},\"comment\":{}}],[\"initialpositionconfig\",{\"_index\":28,\"name\":{\"27\":{}},\"comment\":{}}],[\"initialview\",{\"_index\":81,\"name\":{\"105\":{}},\"comment\":{}}],[\"initialviewconfig\",{\"_index\":133,\"name\":{\"223\":{}},\"comment\":{}}],[\"isbaselayer\",{\"_index\":34,\"name\":{\"35\":{},\"90\":{},\"148\":{},\"190\":{}},\"comment\":{}}],[\"items\",{\"_index\":13,\"name\":{\"10\":{}},\"comment\":{}}],[\"kind\",{\"_index\":27,\"name\":{\"26\":{},\"29\":{},\"176\":{},\"180\":{},\"184\":{},\"307\":{},\"310\":{},\"312\":{},\"319\":{},\"323\":{}},\"comment\":{}}],[\"label\",{\"_index\":8,\"name\":{\"5\":{},\"112\":{},\"350\":{}},\"comment\":{}}],[\"labelledby\",{\"_index\":89,\"name\":{\"113\":{},\"351\":{}},\"comment\":{}}],[\"layer\",{\"_index\":31,\"name\":{\"31\":{}},\"comment\":{}}],[\"layerbase\",{\"_index\":46,\"name\":{\"47\":{}},\"comment\":{}}],[\"layerbaseconfig\",{\"_index\":47,\"name\":{\"60\":{}},\"comment\":{}}],[\"layerbaseevents\",{\"_index\":48,\"name\":{\"66\":{}},\"comment\":{}}],[\"layercollection\",{\"_index\":56,\"name\":{\"74\":{}},\"comment\":{}}],[\"layercollectionevents\",{\"_index\":66,\"name\":{\"84\":{}},\"comment\":{}}],[\"layerconfig\",{\"_index\":67,\"name\":{\"86\":{}},\"comment\":{}}],[\"layerloadstate\",{\"_index\":134,\"name\":{\"224\":{}},\"comment\":{}}],[\"layerretrievaloptions\",{\"_index\":68,\"name\":{\"93\":{}},\"comment\":{}}],[\"layers\",{\"_index\":82,\"name\":{\"106\":{},\"125\":{},\"248\":{}},\"comment\":{}}],[\"layout\",{\"_index\":2,\"name\":{\"0\":{}},\"comment\":{}}],[\"left\",{\"_index\":103,\"name\":{\"135\":{}},\"comment\":{}}],[\"level\",{\"_index\":160,\"name\":{\"260\":{},\"276\":{}},\"comment\":{}}],[\"limit\",{\"_index\":244,\"name\":{\"387\":{}},\"comment\":{}}],[\"loadstate\",{\"_index\":35,\"name\":{\"36\":{},\"191\":{}},\"comment\":{}}],[\"login\",{\"_index\":199,\"name\":{\"320\":{}},\"comment\":{}}],[\"loginbehavior\",{\"_index\":207,\"name\":{\"331\":{}},\"comment\":{}}],[\"logineffect\",{\"_index\":198,\"name\":{\"318\":{}},\"comment\":{}}],[\"loginfallback\",{\"_index\":200,\"name\":{\"321\":{}},\"comment\":{}}],[\"logout\",{\"_index\":187,\"name\":{\"298\":{},\"305\":{}},\"comment\":{}}],[\"map\",{\"_index\":36,\"name\":{\"37\":{},\"51\":{},\"159\":{},\"177\":{},\"181\":{},\"185\":{},\"192\":{}},\"comment\":{}}],[\"mapanchor\",{\"_index\":139,\"name\":{\"231\":{}},\"comment\":{}}],[\"mapanchorposition\",{\"_index\":135,\"name\":{\"225\":{}},\"comment\":{}}],[\"mapanchorprops\",{\"_index\":70,\"name\":{\"95\":{}},\"comment\":{}}],[\"mapconfig\",{\"_index\":79,\"name\":{\"103\":{}},\"comment\":{}}],[\"mapconfigprovider\",{\"_index\":84,\"name\":{\"108\":{}},\"comment\":{}}],[\"mapcontainer\",{\"_index\":140,\"name\":{\"232\":{}},\"comment\":{}}],[\"mapcontainerprops\",{\"_index\":87,\"name\":{\"111\":{}},\"comment\":{}}],[\"mapid\",{\"_index\":85,\"name\":{\"109\":{},\"117\":{},\"338\":{},\"345\":{},\"354\":{},\"360\":{},\"364\":{},\"378\":{}},\"comment\":{}}],[\"mapmodel\",{\"_index\":93,\"name\":{\"121\":{}},\"comment\":{}}],[\"mapmodelevents\",{\"_index\":98,\"name\":{\"128\":{}},\"comment\":{}}],[\"mappadding\",{\"_index\":101,\"name\":{\"133\":{}},\"comment\":{}}],[\"mapregistry\",{\"_index\":106,\"name\":{\"138\":{}},\"comment\":{}}],[\"maxconcurrentrequests\",{\"_index\":245,\"name\":{\"388\":{}},\"comment\":{}}],[\"measurement\",{\"_index\":235,\"name\":{\"379\":{}},\"comment\":{}}],[\"measurementprops\",{\"_index\":232,\"name\":{\"373\":{}},\"comment\":{}}],[\"message\",{\"_index\":161,\"name\":{\"261\":{}},\"comment\":{}}],[\"name\",{\"_index\":132,\"name\":{\"219\":{}},\"comment\":{}}],[\"navigation\",{\"_index\":223,\"name\":{\"356\":{}},\"comment\":{}}],[\"noinitialview\",{\"_index\":151,\"name\":{\"249\":{}},\"comment\":{}}],[\"noprojection\",{\"_index\":152,\"name\":{\"250\":{}},\"comment\":{}}],[\"notificationlevel\",{\"_index\":166,\"name\":{\"268\":{}},\"comment\":{}}],[\"notificationoptions\",{\"_index\":158,\"name\":{\"258\":{}},\"comment\":{}}],[\"notificationservice\",{\"_index\":162,\"name\":{\"263\":{}},\"comment\":{}}],[\"notifier\",{\"_index\":167,\"name\":{\"269\":{}},\"comment\":{}}],[\"notifierprops\",{\"_index\":165,\"name\":{\"266\":{}},\"comment\":{}}],[\"notify\",{\"_index\":164,\"name\":{\"265\":{}},\"comment\":{}}],[\"ogcfeaturesourceoptions\",{\"_index\":238,\"name\":{\"381\":{}},\"comment\":{}}],[\"ollayer\",{\"_index\":37,\"name\":{\"38\":{},\"149\":{},\"193\":{}},\"comment\":{}}],[\"olmap\",{\"_index\":96,\"name\":{\"126\":{}},\"comment\":{}}],[\"olmapoptions\",{\"_index\":110,\"name\":{\"142\":{}},\"comment\":{}}],[\"open\",{\"_index\":0,\"name\":{\"0\":{},\"14\":{},\"240\":{},\"257\":{},\"270\":{},\"292\":{},\"334\":{},\"341\":{},\"347\":{},\"356\":{},\"372\":{},\"380\":{}},\"comment\":{}}],[\"parent\",{\"_index\":117,\"name\":{\"160\":{}},\"comment\":{}}],[\"parentlayer\",{\"_index\":118,\"name\":{\"161\":{}},\"comment\":{}}],[\"pioneer/authentication\",{\"_index\":182,\"name\":{\"292\":{}},\"comment\":{}}],[\"pioneer/basemap\",{\"_index\":218,\"name\":{\"347\":{}},\"comment\":{}}],[\"pioneer/coordinate\",{\"_index\":210,\"name\":{\"334\":{}},\"comment\":{}}],[\"pioneer/experimental\",{\"_index\":1,\"name\":{\"0\":{}},\"comment\":{}}],[\"pioneer/map\",{\"_index\":15,\"name\":{\"14\":{},\"240\":{},\"356\":{}},\"comment\":{}}],[\"pioneer/measurement\",{\"_index\":231,\"name\":{\"372\":{}},\"comment\":{}}],[\"pioneer/notifier\",{\"_index\":157,\"name\":{\"257\":{}},\"comment\":{}}],[\"pioneer/ogc\",{\"_index\":236,\"name\":{\"380\":{}},\"comment\":{}}],[\"pioneer/react\",{\"_index\":168,\"name\":{\"270\":{}},\"comment\":{}}],[\"pioneer/scale\",{\"_index\":215,\"name\":{\"341\":{}},\"comment\":{}}],[\"position\",{\"_index\":76,\"name\":{\"100\":{},\"267\":{}},\"comment\":{}}],[\"precision\",{\"_index\":213,\"name\":{\"339\":{}},\"comment\":{}}],[\"projection\",{\"_index\":83,\"name\":{\"107\":{},\"251\":{}},\"comment\":{}}],[\"projectiondefinition\",{\"_index\":136,\"name\":{\"226\":{}},\"comment\":{}}],[\"prototype\",{\"_index\":115,\"name\":{\"154\":{},\"214\":{}},\"comment\":{}}],[\"registerprojections\",{\"_index\":142,\"name\":{\"234\":{}},\"comment\":{}}],[\"removelayerbyid\",{\"_index\":65,\"name\":{\"83\":{}},\"comment\":{}}],[\"renderfallback\",{\"_index\":197,\"name\":{\"316\":{}},\"comment\":{}}],[\"right\",{\"_index\":104,\"name\":{\"136\":{}},\"comment\":{}}],[\"role\",{\"_index\":90,\"name\":{\"118\":{}},\"comment\":{}}],[\"scaleviewer\",{\"_index\":217,\"name\":{\"346\":{}},\"comment\":{}}],[\"scaleviewerprops\",{\"_index\":216,\"name\":{\"342\":{}},\"comment\":{}}],[\"sectionheading\",{\"_index\":176,\"name\":{\"285\":{}},\"comment\":{}}],[\"sectionheadingprops\",{\"_index\":171,\"name\":{\"277\":{}},\"comment\":{}}],[\"sessioninfo\",{\"_index\":192,\"name\":{\"308\":{},\"324\":{}},\"comment\":{}}],[\"setdescription\",{\"_index\":42,\"name\":{\"43\":{},\"56\":{},\"166\":{},\"199\":{}},\"comment\":{}}],[\"settitle\",{\"_index\":43,\"name\":{\"44\":{},\"57\":{},\"167\":{},\"200\":{}},\"comment\":{}}],[\"setupmap\",{\"_index\":154,\"name\":{\"254\":{}},\"comment\":{}}],[\"setvisible\",{\"_index\":44,\"name\":{\"45\":{},\"58\":{},\"168\":{},\"201\":{}},\"comment\":{}}],[\"sidebar\",{\"_index\":3,\"name\":{\"0\":{},\"13\":{}},\"comment\":{}}],[\"sidebaritem\",{\"_index\":4,\"name\":{\"1\":{}},\"comment\":{}}],[\"sidebarproperties\",{\"_index\":9,\"name\":{\"6\":{}},\"comment\":{}}],[\"sidebarwidthchanged\",{\"_index\":14,\"name\":{\"11\":{}},\"comment\":{}}],[\"simplelayer\",{\"_index\":137,\"name\":{\"227\":{},\"229\":{}},\"comment\":{}}],[\"simplelayerconfig\",{\"_index\":112,\"name\":{\"144\":{}},\"comment\":{}}],[\"simplelayerconstructor\",{\"_index\":113,\"name\":{\"152\":{}},\"comment\":{}}],[\"simplemapoptions\",{\"_index\":150,\"name\":{\"241\":{}},\"comment\":{}}],[\"sortbydisplayorder\",{\"_index\":69,\"name\":{\"94\":{}},\"comment\":{}}],[\"sourceoptions\",{\"_index\":129,\"name\":{\"207\":{}},\"comment\":{}}],[\"stopevents\",{\"_index\":77,\"name\":{\"101\":{}},\"comment\":{}}],[\"sublayer\",{\"_index\":116,\"name\":{\"155\":{}},\"comment\":{}}],[\"sublayers\",{\"_index\":38,\"name\":{\"39\":{},\"52\":{},\"162\":{},\"194\":{},\"208\":{},\"220\":{}},\"comment\":{}}],[\"sublayerscollection\",{\"_index\":119,\"name\":{\"170\":{}},\"comment\":{}}],[\"sublayerscollectionevents\",{\"_index\":121,\"name\":{\"172\":{}},\"comment\":{}}],[\"substituteheadinglevel\",{\"_index\":173,\"name\":{\"281\":{}},\"comment\":{}}],[\"switcher\",{\"_index\":219,\"name\":{\"347\":{}},\"comment\":{}}],[\"test\",{\"_index\":148,\"name\":{\"240\":{}},\"comment\":{}}],[\"testid\",{\"_index\":74,\"name\":{\"98\":{},\"116\":{},\"273\":{},\"337\":{},\"344\":{},\"353\":{},\"359\":{},\"363\":{},\"376\":{}},\"comment\":{}}],[\"title\",{\"_index\":39,\"name\":{\"40\":{},\"53\":{},\"64\":{},\"91\":{},\"150\":{},\"163\":{},\"195\":{},\"209\":{},\"221\":{},\"262\":{},\"282\":{}},\"comment\":{}}],[\"titledsection\",{\"_index\":177,\"name\":{\"286\":{}},\"comment\":{}}],[\"titledsectionprops\",{\"_index\":172,\"name\":{\"279\":{}},\"comment\":{}}],[\"top\",{\"_index\":105,\"name\":{\"137\":{}},\"comment\":{}}],[\"updateattributes\",{\"_index\":45,\"name\":{\"46\":{},\"59\":{},\"169\":{},\"202\":{}},\"comment\":{}}],[\"url\",{\"_index\":127,\"name\":{\"196\":{},\"210\":{}},\"comment\":{}}],[\"useauthstate\",{\"_index\":209,\"name\":{\"333\":{}},\"comment\":{}}],[\"usecenter\",{\"_index\":143,\"name\":{\"235\":{}},\"comment\":{}}],[\"usecommoncomponentprops\",{\"_index\":178,\"name\":{\"287\":{}},\"comment\":{}}],[\"useevent\",{\"_index\":180,\"name\":{\"290\":{}},\"comment\":{}}],[\"useheadinglevel\",{\"_index\":181,\"name\":{\"291\":{}},\"comment\":{}}],[\"usemapmodel\",{\"_index\":144,\"name\":{\"236\":{}},\"comment\":{}}],[\"usemapmodelloading\",{\"_index\":122,\"name\":{\"174\":{}},\"comment\":{}}],[\"usemapmodelrejected\",{\"_index\":124,\"name\":{\"178\":{}},\"comment\":{}}],[\"usemapmodelresolved\",{\"_index\":125,\"name\":{\"182\":{}},\"comment\":{}}],[\"usemapmodelresult\",{\"_index\":138,\"name\":{\"228\":{}},\"comment\":{}}],[\"useprojection\",{\"_index\":145,\"name\":{\"237\":{}},\"comment\":{}}],[\"useresolution\",{\"_index\":146,\"name\":{\"238\":{}},\"comment\":{}}],[\"userid\",{\"_index\":203,\"name\":{\"327\":{}},\"comment\":{}}],[\"username\",{\"_index\":204,\"name\":{\"328\":{}},\"comment\":{}}],[\"usescale\",{\"_index\":147,\"name\":{\"239\":{}},\"comment\":{}}],[\"utils\",{\"_index\":149,\"name\":{\"240\":{},\"270\":{}},\"comment\":{}}],[\"verticalgap\",{\"_index\":78,\"name\":{\"102\":{}},\"comment\":{}}],[\"view\",{\"_index\":111,\"name\":{\"143\":{}},\"comment\":{}}],[\"viewer\",{\"_index\":211,\"name\":{\"334\":{},\"341\":{}},\"comment\":{}}],[\"viewpadding\",{\"_index\":91,\"name\":{\"119\":{}},\"comment\":{}}],[\"viewpaddingchangebehavior\",{\"_index\":92,\"name\":{\"120\":{}},\"comment\":{}}],[\"visible\",{\"_index\":40,\"name\":{\"41\":{},\"54\":{},\"65\":{},\"92\":{},\"151\":{},\"164\":{},\"197\":{},\"211\":{},\"222\":{}},\"comment\":{}}],[\"waitforinitialextent\",{\"_index\":155,\"name\":{\"255\":{}},\"comment\":{}}],[\"waitformapmount\",{\"_index\":156,\"name\":{\"256\":{}},\"comment\":{}}],[\"whendisplayed\",{\"_index\":97,\"name\":{\"127\":{}},\"comment\":{}}],[\"wmslayer\",{\"_index\":126,\"name\":{\"186\":{},\"230\":{}},\"comment\":{}}],[\"wmslayerconfig\",{\"_index\":128,\"name\":{\"203\":{}},\"comment\":{}}],[\"wmslayerconstructor\",{\"_index\":130,\"name\":{\"212\":{}},\"comment\":{}}],[\"wmssublayerconfig\",{\"_index\":131,\"name\":{\"215\":{}},\"comment\":{}}],[\"x\",{\"_index\":17,\"name\":{\"16\":{},\"245\":{}},\"comment\":{}}],[\"xmax\",{\"_index\":21,\"name\":{\"20\":{}},\"comment\":{}}],[\"xmin\",{\"_index\":22,\"name\":{\"21\":{}},\"comment\":{}}],[\"y\",{\"_index\":18,\"name\":{\"17\":{},\"246\":{}},\"comment\":{}}],[\"ymax\",{\"_index\":23,\"name\":{\"22\":{}},\"comment\":{}}],[\"ymin\",{\"_index\":24,\"name\":{\"23\":{}},\"comment\":{}}],[\"z\",{\"_index\":19,\"name\":{\"18\":{}},\"comment\":{}}],[\"zoom\",{\"_index\":30,\"name\":{\"30\":{},\"252\":{},\"369\":{}},\"comment\":{}}],[\"zoomdirection\",{\"_index\":226,\"name\":{\"365\":{}},\"comment\":{}}],[\"zoomin\",{\"_index\":229,\"name\":{\"370\":{}},\"comment\":{}}],[\"zoominprops\",{\"_index\":227,\"name\":{\"366\":{}},\"comment\":{}}],[\"zoomout\",{\"_index\":230,\"name\":{\"371\":{}},\"comment\":{}}],[\"zoomoutprops\",{\"_index\":228,\"name\":{\"367\":{}},\"comment\":{}}],[\"zoomprops\",{\"_index\":225,\"name\":{\"361\":{}},\"comment\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file +window.searchData = JSON.parse("{\"rows\":[{\"kind\":2,\"name\":\"@open-pioneer/experimental-layout-sidebar\",\"url\":\"modules/_open_pioneer_experimental_layout_sidebar.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"SidebarItem\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarItem.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar\"},{\"kind\":1024,\"name\":\"content\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarItem.html#content\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarItem\"},{\"kind\":1024,\"name\":\"icon\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarItem.html#icon\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarItem\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarItem.html#id\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarItem\"},{\"kind\":1024,\"name\":\"label\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarItem.html#label\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarItem\"},{\"kind\":256,\"name\":\"SidebarProperties\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarProperties.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar\"},{\"kind\":1024,\"name\":\"defaultExpanded\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarProperties.html#defaultExpanded\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarProperties\"},{\"kind\":1024,\"name\":\"expandedChanged\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarProperties.html#expandedChanged\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarProperties\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarProperties.html#expandedChanged.__type\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarProperties.expandedChanged\"},{\"kind\":1024,\"name\":\"items\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarProperties.html#items\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarProperties\"},{\"kind\":1024,\"name\":\"sidebarWidthChanged\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarProperties.html#sidebarWidthChanged\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarProperties\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/_open_pioneer_experimental_layout_sidebar.SidebarProperties.html#sidebarWidthChanged.__type-2\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar.SidebarProperties.sidebarWidthChanged\"},{\"kind\":64,\"name\":\"Sidebar\",\"url\":\"functions/_open_pioneer_experimental_layout_sidebar.Sidebar.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/experimental-layout-sidebar\"},{\"kind\":2,\"name\":\"@open-pioneer/map\",\"url\":\"modules/_open_pioneer_map.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"CoordinateConfig\",\"url\":\"interfaces/_open_pioneer_map.CoordinateConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"x\",\"url\":\"interfaces/_open_pioneer_map.CoordinateConfig.html#x\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.CoordinateConfig\"},{\"kind\":1024,\"name\":\"y\",\"url\":\"interfaces/_open_pioneer_map.CoordinateConfig.html#y\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.CoordinateConfig\"},{\"kind\":1024,\"name\":\"z\",\"url\":\"interfaces/_open_pioneer_map.CoordinateConfig.html#z\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.CoordinateConfig\"},{\"kind\":256,\"name\":\"ExtentConfig\",\"url\":\"interfaces/_open_pioneer_map.ExtentConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"xMax\",\"url\":\"interfaces/_open_pioneer_map.ExtentConfig.html#xMax\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.ExtentConfig\"},{\"kind\":1024,\"name\":\"xMin\",\"url\":\"interfaces/_open_pioneer_map.ExtentConfig.html#xMin\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.ExtentConfig\"},{\"kind\":1024,\"name\":\"yMax\",\"url\":\"interfaces/_open_pioneer_map.ExtentConfig.html#yMax\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.ExtentConfig\"},{\"kind\":1024,\"name\":\"yMin\",\"url\":\"interfaces/_open_pioneer_map.ExtentConfig.html#yMin\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.ExtentConfig\"},{\"kind\":256,\"name\":\"InitialExtentConfig\",\"url\":\"interfaces/_open_pioneer_map.InitialExtentConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"extent\",\"url\":\"interfaces/_open_pioneer_map.InitialExtentConfig.html#extent\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.InitialExtentConfig\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_map.InitialExtentConfig.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.InitialExtentConfig\"},{\"kind\":256,\"name\":\"InitialPositionConfig\",\"url\":\"interfaces/_open_pioneer_map.InitialPositionConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"center\",\"url\":\"interfaces/_open_pioneer_map.InitialPositionConfig.html#center\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.InitialPositionConfig\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_map.InitialPositionConfig.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.InitialPositionConfig\"},{\"kind\":1024,\"name\":\"zoom\",\"url\":\"interfaces/_open_pioneer_map.InitialPositionConfig.html#zoom\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.InitialPositionConfig\"},{\"kind\":256,\"name\":\"Layer\",\"url\":\"interfaces/_open_pioneer_map.Layer.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#attributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#description\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#id\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"isBaseLayer\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#isBaseLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"loadState\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#loadState\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"map\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#map\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"olLayer\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#olLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"sublayers\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#sublayers\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#title\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#visible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":2048,\"name\":\"deleteAttribute\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#deleteAttribute\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":2048,\"name\":\"setDescription\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#setDescription\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":2048,\"name\":\"setTitle\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#setTitle\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":2048,\"name\":\"setVisible\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#setVisible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":2048,\"name\":\"updateAttributes\",\"url\":\"interfaces/_open_pioneer_map.Layer.html#updateAttributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Layer\"},{\"kind\":256,\"name\":\"LayerBase\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#attributes\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#description\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#id\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":1024,\"name\":\"map\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#map\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":1024,\"name\":\"sublayers\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#sublayers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#title\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#visible\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":2048,\"name\":\"deleteAttribute\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#deleteAttribute\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":2048,\"name\":\"setDescription\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#setDescription\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":2048,\"name\":\"setTitle\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#setTitle\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":2048,\"name\":\"setVisible\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#setVisible\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":2048,\"name\":\"updateAttributes\",\"url\":\"interfaces/_open_pioneer_map.LayerBase.html#updateAttributes\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBase\"},{\"kind\":256,\"name\":\"LayerBaseConfig\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseConfig.html#attributes\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseConfig\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseConfig.html#description\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseConfig\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseConfig.html#id\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseConfig\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseConfig.html#title\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseConfig\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseConfig.html#visible\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseConfig\"},{\"kind\":256,\"name\":\"LayerBaseEvents\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseEvents.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"changed\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseEvents.html#changed\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseEvents\"},{\"kind\":1024,\"name\":\"changed:attributes\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseEvents.html#changed_attributes\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseEvents\"},{\"kind\":1024,\"name\":\"changed:description\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseEvents.html#changed_description\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseEvents\"},{\"kind\":1024,\"name\":\"changed:loadState\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseEvents.html#changed_loadState\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseEvents\"},{\"kind\":1024,\"name\":\"changed:title\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseEvents.html#changed_title\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseEvents\"},{\"kind\":1024,\"name\":\"changed:visible\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseEvents.html#changed_visible\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseEvents\"},{\"kind\":1024,\"name\":\"destroy\",\"url\":\"interfaces/_open_pioneer_map.LayerBaseEvents.html#destroy\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerBaseEvents\"},{\"kind\":256,\"name\":\"LayerCollection\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":2048,\"name\":\"activateBaseLayer\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#activateBaseLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":2048,\"name\":\"addLayer\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#addLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":2048,\"name\":\"getActiveBaseLayer\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#getActiveBaseLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":2048,\"name\":\"getAllLayers\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#getAllLayers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":2048,\"name\":\"getBaseLayers\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#getBaseLayers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":2048,\"name\":\"getLayerById\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#getLayerById\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":2048,\"name\":\"getLayerByRawInstance\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#getLayerByRawInstance\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":2048,\"name\":\"getOperationalLayers\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#getOperationalLayers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":2048,\"name\":\"removeLayerById\",\"url\":\"interfaces/_open_pioneer_map.LayerCollection.html#removeLayerById\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollection\"},{\"kind\":256,\"name\":\"LayerCollectionEvents\",\"url\":\"interfaces/_open_pioneer_map.LayerCollectionEvents.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"changed\",\"url\":\"interfaces/_open_pioneer_map.LayerCollectionEvents.html#changed\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerCollectionEvents\"},{\"kind\":256,\"name\":\"LayerConfig\",\"url\":\"interfaces/_open_pioneer_map.LayerConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.LayerConfig.html#attributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.LayerConfig\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.LayerConfig.html#description\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.LayerConfig\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.LayerConfig.html#id\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.LayerConfig\"},{\"kind\":1024,\"name\":\"isBaseLayer\",\"url\":\"interfaces/_open_pioneer_map.LayerConfig.html#isBaseLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerConfig\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.LayerConfig.html#title\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.LayerConfig\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.LayerConfig.html#visible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.LayerConfig\"},{\"kind\":256,\"name\":\"LayerRetrievalOptions\",\"url\":\"interfaces/_open_pioneer_map.LayerRetrievalOptions.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"sortByDisplayOrder\",\"url\":\"interfaces/_open_pioneer_map.LayerRetrievalOptions.html#sortByDisplayOrder\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.LayerRetrievalOptions\"},{\"kind\":256,\"name\":\"MapAnchorProps\",\"url\":\"interfaces/_open_pioneer_map.MapAnchorProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"children\",\"url\":\"interfaces/_open_pioneer_map.MapAnchorProps.html#children\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapAnchorProps\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_map.MapAnchorProps.html#className\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.MapAnchorProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_map.MapAnchorProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.MapAnchorProps\"},{\"kind\":1024,\"name\":\"horizontalGap\",\"url\":\"interfaces/_open_pioneer_map.MapAnchorProps.html#horizontalGap\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapAnchorProps\"},{\"kind\":1024,\"name\":\"position\",\"url\":\"interfaces/_open_pioneer_map.MapAnchorProps.html#position\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapAnchorProps\"},{\"kind\":1024,\"name\":\"stopEvents\",\"url\":\"interfaces/_open_pioneer_map.MapAnchorProps.html#stopEvents\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapAnchorProps\"},{\"kind\":1024,\"name\":\"verticalGap\",\"url\":\"interfaces/_open_pioneer_map.MapAnchorProps.html#verticalGap\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapAnchorProps\"},{\"kind\":256,\"name\":\"MapConfig\",\"url\":\"interfaces/_open_pioneer_map.MapConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"advanced\",\"url\":\"interfaces/_open_pioneer_map.MapConfig.html#advanced\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapConfig\"},{\"kind\":1024,\"name\":\"initialView\",\"url\":\"interfaces/_open_pioneer_map.MapConfig.html#initialView\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapConfig\"},{\"kind\":1024,\"name\":\"layers\",\"url\":\"interfaces/_open_pioneer_map.MapConfig.html#layers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapConfig\"},{\"kind\":1024,\"name\":\"projection\",\"url\":\"interfaces/_open_pioneer_map.MapConfig.html#projection\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapConfig\"},{\"kind\":256,\"name\":\"MapConfigProvider\",\"url\":\"interfaces/_open_pioneer_map.MapConfigProvider.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_map.MapConfigProvider.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapConfigProvider\"},{\"kind\":2048,\"name\":\"getMapConfig\",\"url\":\"interfaces/_open_pioneer_map.MapConfigProvider.html#getMapConfig\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapConfigProvider\"},{\"kind\":256,\"name\":\"MapContainerProps\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"aria-label\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#aria_label\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":1024,\"name\":\"aria-labelledby\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#aria_labelledby\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":1024,\"name\":\"children\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#children\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#className\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":1024,\"name\":\"role\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#role\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":1024,\"name\":\"viewPadding\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#viewPadding\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":1024,\"name\":\"viewPaddingChangeBehavior\",\"url\":\"interfaces/_open_pioneer_map.MapContainerProps.html#viewPaddingChangeBehavior\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapContainerProps\"},{\"kind\":256,\"name\":\"MapModel\",\"url\":\"interfaces/_open_pioneer_map.MapModel.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"container\",\"url\":\"interfaces/_open_pioneer_map.MapModel.html#container\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModel\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.MapModel.html#id\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModel\"},{\"kind\":1024,\"name\":\"initialExtent\",\"url\":\"interfaces/_open_pioneer_map.MapModel.html#initialExtent\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModel\"},{\"kind\":1024,\"name\":\"layers\",\"url\":\"interfaces/_open_pioneer_map.MapModel.html#layers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModel\"},{\"kind\":1024,\"name\":\"olMap\",\"url\":\"interfaces/_open_pioneer_map.MapModel.html#olMap\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModel\"},{\"kind\":2048,\"name\":\"whenDisplayed\",\"url\":\"interfaces/_open_pioneer_map.MapModel.html#whenDisplayed\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModel\"},{\"kind\":256,\"name\":\"MapModelEvents\",\"url\":\"interfaces/_open_pioneer_map.MapModelEvents.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"changed\",\"url\":\"interfaces/_open_pioneer_map.MapModelEvents.html#changed\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModelEvents\"},{\"kind\":1024,\"name\":\"changed:container\",\"url\":\"interfaces/_open_pioneer_map.MapModelEvents.html#changed_container\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModelEvents\"},{\"kind\":1024,\"name\":\"changed:initialExtent\",\"url\":\"interfaces/_open_pioneer_map.MapModelEvents.html#changed_initialExtent\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModelEvents\"},{\"kind\":1024,\"name\":\"destroy\",\"url\":\"interfaces/_open_pioneer_map.MapModelEvents.html#destroy\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapModelEvents\"},{\"kind\":256,\"name\":\"MapPadding\",\"url\":\"interfaces/_open_pioneer_map.MapPadding.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"bottom\",\"url\":\"interfaces/_open_pioneer_map.MapPadding.html#bottom\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapPadding\"},{\"kind\":1024,\"name\":\"left\",\"url\":\"interfaces/_open_pioneer_map.MapPadding.html#left\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapPadding\"},{\"kind\":1024,\"name\":\"right\",\"url\":\"interfaces/_open_pioneer_map.MapPadding.html#right\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapPadding\"},{\"kind\":1024,\"name\":\"top\",\"url\":\"interfaces/_open_pioneer_map.MapPadding.html#top\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapPadding\"},{\"kind\":256,\"name\":\"MapRegistry\",\"url\":\"interfaces/_open_pioneer_map.MapRegistry.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":2048,\"name\":\"expectMapModel\",\"url\":\"interfaces/_open_pioneer_map.MapRegistry.html#expectMapModel\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapRegistry\"},{\"kind\":2048,\"name\":\"getMapModel\",\"url\":\"interfaces/_open_pioneer_map.MapRegistry.html#getMapModel\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapRegistry\"},{\"kind\":2048,\"name\":\"getMapModelByRawInstance\",\"url\":\"interfaces/_open_pioneer_map.MapRegistry.html#getMapModelByRawInstance\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.MapRegistry\"},{\"kind\":256,\"name\":\"OlMapOptions\",\"url\":\"interfaces/_open_pioneer_map.OlMapOptions.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"view\",\"url\":\"interfaces/_open_pioneer_map.OlMapOptions.html#view\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.OlMapOptions\"},{\"kind\":256,\"name\":\"SimpleLayerConfig\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConfig.html#attributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.SimpleLayerConfig\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConfig.html#description\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.SimpleLayerConfig\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConfig.html#id\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.SimpleLayerConfig\"},{\"kind\":1024,\"name\":\"isBaseLayer\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConfig.html#isBaseLayer\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.SimpleLayerConfig\"},{\"kind\":1024,\"name\":\"olLayer\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConfig.html#olLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.SimpleLayerConfig\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConfig.html#title\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.SimpleLayerConfig\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConfig.html#visible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.SimpleLayerConfig\"},{\"kind\":256,\"name\":\"SimpleLayerConstructor\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConstructor.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConstructor.html#constructor\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.SimpleLayerConstructor\"},{\"kind\":1024,\"name\":\"prototype\",\"url\":\"interfaces/_open_pioneer_map.SimpleLayerConstructor.html#prototype\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.SimpleLayerConstructor\"},{\"kind\":256,\"name\":\"Sublayer\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#attributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#description\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#id\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":1024,\"name\":\"map\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#map\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":1024,\"name\":\"parent\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#parent\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":1024,\"name\":\"parentLayer\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#parentLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":1024,\"name\":\"sublayers\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#sublayers\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#title\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#visible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":2048,\"name\":\"deleteAttribute\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#deleteAttribute\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":2048,\"name\":\"setDescription\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#setDescription\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":2048,\"name\":\"setTitle\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#setTitle\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":2048,\"name\":\"setVisible\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#setVisible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":2048,\"name\":\"updateAttributes\",\"url\":\"interfaces/_open_pioneer_map.Sublayer.html#updateAttributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.Sublayer\"},{\"kind\":256,\"name\":\"SublayersCollection\",\"url\":\"interfaces/_open_pioneer_map.SublayersCollection.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":2048,\"name\":\"getSublayers\",\"url\":\"interfaces/_open_pioneer_map.SublayersCollection.html#getSublayers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.SublayersCollection\"},{\"kind\":256,\"name\":\"SublayersCollectionEvents\",\"url\":\"interfaces/_open_pioneer_map.SublayersCollectionEvents.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"changed\",\"url\":\"interfaces/_open_pioneer_map.SublayersCollectionEvents.html#changed\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.SublayersCollectionEvents\"},{\"kind\":256,\"name\":\"UseMapModelLoading\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelLoading.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"error\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelLoading.html#error\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelLoading\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelLoading.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelLoading\"},{\"kind\":1024,\"name\":\"map\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelLoading.html#map\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelLoading\"},{\"kind\":256,\"name\":\"UseMapModelRejected\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelRejected.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"error\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelRejected.html#error\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelRejected\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelRejected.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelRejected\"},{\"kind\":1024,\"name\":\"map\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelRejected.html#map\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelRejected\"},{\"kind\":256,\"name\":\"UseMapModelResolved\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelResolved.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"error\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelResolved.html#error\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelResolved\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelResolved.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelResolved\"},{\"kind\":1024,\"name\":\"map\",\"url\":\"interfaces/_open_pioneer_map.UseMapModelResolved.html#map\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.UseMapModelResolved\"},{\"kind\":256,\"name\":\"WMSLayer\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#attributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#description\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#id\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"isBaseLayer\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#isBaseLayer\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"loadState\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#loadState\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"map\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#map\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"olLayer\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#olLayer\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"sublayers\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#sublayers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#title\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"url\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#url\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#visible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":2048,\"name\":\"deleteAttribute\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#deleteAttribute\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":2048,\"name\":\"setDescription\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#setDescription\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":2048,\"name\":\"setTitle\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#setTitle\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":2048,\"name\":\"setVisible\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#setVisible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":2048,\"name\":\"updateAttributes\",\"url\":\"interfaces/_open_pioneer_map.WMSLayer.html#updateAttributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayer\"},{\"kind\":256,\"name\":\"WMSLayerConfig\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html#attributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayerConfig\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html#description\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayerConfig\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html#id\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayerConfig\"},{\"kind\":1024,\"name\":\"sourceOptions\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html#sourceOptions\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSLayerConfig\"},{\"kind\":1024,\"name\":\"sublayers\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html#sublayers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSLayerConfig\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html#title\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayerConfig\"},{\"kind\":1024,\"name\":\"url\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html#url\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSLayerConfig\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConfig.html#visible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSLayerConfig\"},{\"kind\":256,\"name\":\"WMSLayerConstructor\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConstructor.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConstructor.html#constructor\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSLayerConstructor\"},{\"kind\":1024,\"name\":\"prototype\",\"url\":\"interfaces/_open_pioneer_map.WMSLayerConstructor.html#prototype\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSLayerConstructor\"},{\"kind\":256,\"name\":\"WMSSublayerConfig\",\"url\":\"interfaces/_open_pioneer_map.WMSSublayerConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_map.WMSSublayerConfig.html#attributes\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSSublayerConfig\"},{\"kind\":1024,\"name\":\"description\",\"url\":\"interfaces/_open_pioneer_map.WMSSublayerConfig.html#description\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSSublayerConfig\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/_open_pioneer_map.WMSSublayerConfig.html#id\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSSublayerConfig\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"interfaces/_open_pioneer_map.WMSSublayerConfig.html#name\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSSublayerConfig\"},{\"kind\":1024,\"name\":\"sublayers\",\"url\":\"interfaces/_open_pioneer_map.WMSSublayerConfig.html#sublayers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map.WMSSublayerConfig\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_map.WMSSublayerConfig.html#title\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSSublayerConfig\"},{\"kind\":1024,\"name\":\"visible\",\"url\":\"interfaces/_open_pioneer_map.WMSSublayerConfig.html#visible\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map.WMSSublayerConfig\"},{\"kind\":4194304,\"name\":\"InitialViewConfig\",\"url\":\"types/_open_pioneer_map.InitialViewConfig.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":4194304,\"name\":\"LayerLoadState\",\"url\":\"types/_open_pioneer_map.LayerLoadState.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":4194304,\"name\":\"MapAnchorPosition\",\"url\":\"types/_open_pioneer_map.MapAnchorPosition.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":4194304,\"name\":\"ProjectionDefinition\",\"url\":\"types/_open_pioneer_map.ProjectionDefinition.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":4194304,\"name\":\"SimpleLayer\",\"url\":\"types/_open_pioneer_map.SimpleLayer.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":4194304,\"name\":\"UseMapModelResult\",\"url\":\"types/_open_pioneer_map.UseMapModelResult.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":32,\"name\":\"SimpleLayer\",\"url\":\"variables/_open_pioneer_map.SimpleLayer-1.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":32,\"name\":\"WMSLayer\",\"url\":\"variables/_open_pioneer_map.WMSLayer-1.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"MapAnchor\",\"url\":\"functions/_open_pioneer_map.MapAnchor.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"MapContainer\",\"url\":\"functions/_open_pioneer_map.MapContainer.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"getProjection\",\"url\":\"functions/_open_pioneer_map.getProjection.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"registerProjections\",\"url\":\"functions/_open_pioneer_map.registerProjections.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"useCenter\",\"url\":\"functions/_open_pioneer_map.useCenter.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"useMapModel\",\"url\":\"functions/_open_pioneer_map.useMapModel.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"useProjection\",\"url\":\"functions/_open_pioneer_map.useProjection.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"useResolution\",\"url\":\"functions/_open_pioneer_map.useResolution.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":64,\"name\":\"useScale\",\"url\":\"functions/_open_pioneer_map.useScale.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map\"},{\"kind\":2,\"name\":\"@open-pioneer/map-test-utils\",\"url\":\"modules/_open_pioneer_map_test_utils.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"SimpleMapOptions\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils\"},{\"kind\":1024,\"name\":\"advanced\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#advanced\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions\"},{\"kind\":1024,\"name\":\"center\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#center\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#center.__type\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions.center\"},{\"kind\":1024,\"name\":\"x\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#center.__type.x\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions.center.__type\"},{\"kind\":1024,\"name\":\"y\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#center.__type.y\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions.center.__type\"},{\"kind\":1024,\"name\":\"extent\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#extent\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions\"},{\"kind\":1024,\"name\":\"layers\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#layers\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions\"},{\"kind\":1024,\"name\":\"noInitialView\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#noInitialView\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions\"},{\"kind\":1024,\"name\":\"noProjection\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#noProjection\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions\"},{\"kind\":1024,\"name\":\"projection\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#projection\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions\"},{\"kind\":1024,\"name\":\"zoom\",\"url\":\"interfaces/_open_pioneer_map_test_utils.SimpleMapOptions.html#zoom\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils.SimpleMapOptions\"},{\"kind\":64,\"name\":\"createServiceOptions\",\"url\":\"functions/_open_pioneer_map_test_utils.createServiceOptions.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils\"},{\"kind\":64,\"name\":\"setupMap\",\"url\":\"functions/_open_pioneer_map_test_utils.setupMap.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils\"},{\"kind\":64,\"name\":\"waitForInitialExtent\",\"url\":\"functions/_open_pioneer_map_test_utils.waitForInitialExtent.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils\"},{\"kind\":64,\"name\":\"waitForMapMount\",\"url\":\"functions/_open_pioneer_map_test_utils.waitForMapMount.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-test-utils\"},{\"kind\":2,\"name\":\"@open-pioneer/notifier\",\"url\":\"modules/_open_pioneer_notifier.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"NotificationOptions\",\"url\":\"interfaces/_open_pioneer_notifier.NotificationOptions.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier\"},{\"kind\":1024,\"name\":\"displayDuration\",\"url\":\"interfaces/_open_pioneer_notifier.NotificationOptions.html#displayDuration\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier.NotificationOptions\"},{\"kind\":1024,\"name\":\"level\",\"url\":\"interfaces/_open_pioneer_notifier.NotificationOptions.html#level\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier.NotificationOptions\"},{\"kind\":1024,\"name\":\"message\",\"url\":\"interfaces/_open_pioneer_notifier.NotificationOptions.html#message\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier.NotificationOptions\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_notifier.NotificationOptions.html#title\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier.NotificationOptions\"},{\"kind\":256,\"name\":\"NotificationService\",\"url\":\"interfaces/_open_pioneer_notifier.NotificationService.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier\"},{\"kind\":2048,\"name\":\"closeAll\",\"url\":\"interfaces/_open_pioneer_notifier.NotificationService.html#closeAll\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier.NotificationService\"},{\"kind\":2048,\"name\":\"notify\",\"url\":\"interfaces/_open_pioneer_notifier.NotificationService.html#notify\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier.NotificationService\"},{\"kind\":256,\"name\":\"NotifierProps\",\"url\":\"interfaces/_open_pioneer_notifier.NotifierProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier\"},{\"kind\":1024,\"name\":\"position\",\"url\":\"interfaces/_open_pioneer_notifier.NotifierProps.html#position\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier.NotifierProps\"},{\"kind\":4194304,\"name\":\"NotificationLevel\",\"url\":\"types/_open_pioneer_notifier.NotificationLevel.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier\"},{\"kind\":64,\"name\":\"Notifier\",\"url\":\"functions/_open_pioneer_notifier.Notifier.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/notifier\"},{\"kind\":2,\"name\":\"@open-pioneer/react-utils\",\"url\":\"modules/_open_pioneer_react_utils.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"CommonComponentProps\",\"url\":\"interfaces/_open_pioneer_react_utils.CommonComponentProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_react_utils.CommonComponentProps.html#className\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.CommonComponentProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_react_utils.CommonComponentProps.html#data_testid\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.CommonComponentProps\"},{\"kind\":256,\"name\":\"ConfigureTitledSectionProps\",\"url\":\"interfaces/_open_pioneer_react_utils.ConfigureTitledSectionProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":1024,\"name\":\"children\",\"url\":\"interfaces/_open_pioneer_react_utils.ConfigureTitledSectionProps.html#children\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.ConfigureTitledSectionProps\"},{\"kind\":1024,\"name\":\"level\",\"url\":\"interfaces/_open_pioneer_react_utils.ConfigureTitledSectionProps.html#level\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.ConfigureTitledSectionProps\"},{\"kind\":256,\"name\":\"SectionHeadingProps\",\"url\":\"interfaces/_open_pioneer_react_utils.SectionHeadingProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":1024,\"name\":\"children\",\"url\":\"interfaces/_open_pioneer_react_utils.SectionHeadingProps.html#children\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.SectionHeadingProps\"},{\"kind\":256,\"name\":\"TitledSectionProps\",\"url\":\"interfaces/_open_pioneer_react_utils.TitledSectionProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":1024,\"name\":\"children\",\"url\":\"interfaces/_open_pioneer_react_utils.TitledSectionProps.html#children\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.TitledSectionProps\"},{\"kind\":1024,\"name\":\"substituteHeadingLevel\",\"url\":\"interfaces/_open_pioneer_react_utils.TitledSectionProps.html#substituteHeadingLevel\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.TitledSectionProps\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/_open_pioneer_react_utils.TitledSectionProps.html#title\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.TitledSectionProps\"},{\"kind\":4194304,\"name\":\"HeadingLevel\",\"url\":\"types/_open_pioneer_react_utils.HeadingLevel.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":64,\"name\":\"ConfigureTitledSection\",\"url\":\"functions/_open_pioneer_react_utils.ConfigureTitledSection.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":64,\"name\":\"SectionHeading\",\"url\":\"functions/_open_pioneer_react_utils.SectionHeading.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":64,\"name\":\"TitledSection\",\"url\":\"functions/_open_pioneer_react_utils.TitledSection.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":64,\"name\":\"useCommonComponentProps\",\"url\":\"functions/_open_pioneer_react_utils.useCommonComponentProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/_open_pioneer_react_utils.useCommonComponentProps.html#useCommonComponentProps.__type\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.useCommonComponentProps.useCommonComponentProps\"},{\"kind\":1024,\"name\":\"containerProps\",\"url\":\"functions/_open_pioneer_react_utils.useCommonComponentProps.html#useCommonComponentProps.__type.containerProps\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils.useCommonComponentProps.useCommonComponentProps.__type\"},{\"kind\":64,\"name\":\"useEvent\",\"url\":\"functions/_open_pioneer_react_utils.useEvent.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":64,\"name\":\"useHeadingLevel\",\"url\":\"functions/_open_pioneer_react_utils.useHeadingLevel.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/react-utils\"},{\"kind\":2,\"name\":\"@open-pioneer/authentication\",\"url\":\"modules/_open_pioneer_authentication.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"AuthEvents\",\"url\":\"interfaces/_open_pioneer_authentication.AuthEvents.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"changed\",\"url\":\"interfaces/_open_pioneer_authentication.AuthEvents.html#changed\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthEvents\"},{\"kind\":256,\"name\":\"AuthPlugin\",\"url\":\"interfaces/_open_pioneer_authentication.AuthPlugin.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":2048,\"name\":\"getAuthState\",\"url\":\"interfaces/_open_pioneer_authentication.AuthPlugin.html#getAuthState\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthPlugin\"},{\"kind\":2048,\"name\":\"getLoginBehavior\",\"url\":\"interfaces/_open_pioneer_authentication.AuthPlugin.html#getLoginBehavior\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthPlugin\"},{\"kind\":2048,\"name\":\"logout\",\"url\":\"interfaces/_open_pioneer_authentication.AuthPlugin.html#logout\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthPlugin\"},{\"kind\":256,\"name\":\"AuthPluginEvents\",\"url\":\"interfaces/_open_pioneer_authentication.AuthPluginEvents.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"changed\",\"url\":\"interfaces/_open_pioneer_authentication.AuthPluginEvents.html#changed\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthPluginEvents\"},{\"kind\":256,\"name\":\"AuthService\",\"url\":\"interfaces/_open_pioneer_authentication.AuthService.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":2048,\"name\":\"getAuthState\",\"url\":\"interfaces/_open_pioneer_authentication.AuthService.html#getAuthState\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthService\"},{\"kind\":2048,\"name\":\"getLoginBehavior\",\"url\":\"interfaces/_open_pioneer_authentication.AuthService.html#getLoginBehavior\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthService\"},{\"kind\":2048,\"name\":\"getSessionInfo\",\"url\":\"interfaces/_open_pioneer_authentication.AuthService.html#getSessionInfo\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthService\"},{\"kind\":2048,\"name\":\"logout\",\"url\":\"interfaces/_open_pioneer_authentication.AuthService.html#logout\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthService\"},{\"kind\":256,\"name\":\"AuthStateAuthenticated\",\"url\":\"interfaces/_open_pioneer_authentication.AuthStateAuthenticated.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_authentication.AuthStateAuthenticated.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthStateAuthenticated\"},{\"kind\":1024,\"name\":\"sessionInfo\",\"url\":\"interfaces/_open_pioneer_authentication.AuthStateAuthenticated.html#sessionInfo\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthStateAuthenticated\"},{\"kind\":256,\"name\":\"AuthStateNotAuthenticated\",\"url\":\"interfaces/_open_pioneer_authentication.AuthStateNotAuthenticated.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_authentication.AuthStateNotAuthenticated.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthStateNotAuthenticated\"},{\"kind\":256,\"name\":\"AuthStatePending\",\"url\":\"interfaces/_open_pioneer_authentication.AuthStatePending.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_authentication.AuthStatePending.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.AuthStatePending\"},{\"kind\":256,\"name\":\"ForceAuthProps\",\"url\":\"interfaces/_open_pioneer_authentication.ForceAuthProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"children\",\"url\":\"interfaces/_open_pioneer_authentication.ForceAuthProps.html#children\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.ForceAuthProps\"},{\"kind\":1024,\"name\":\"fallbackProps\",\"url\":\"interfaces/_open_pioneer_authentication.ForceAuthProps.html#fallbackProps\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.ForceAuthProps\"},{\"kind\":1024,\"name\":\"renderFallback\",\"url\":\"interfaces/_open_pioneer_authentication.ForceAuthProps.html#renderFallback\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.ForceAuthProps\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/_open_pioneer_authentication.ForceAuthProps.html#renderFallback.__type\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.ForceAuthProps.renderFallback\"},{\"kind\":256,\"name\":\"LoginEffect\",\"url\":\"interfaces/_open_pioneer_authentication.LoginEffect.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_authentication.LoginEffect.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.LoginEffect\"},{\"kind\":2048,\"name\":\"login\",\"url\":\"interfaces/_open_pioneer_authentication.LoginEffect.html#login\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.LoginEffect\"},{\"kind\":256,\"name\":\"LoginFallback\",\"url\":\"interfaces/_open_pioneer_authentication.LoginFallback.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"Fallback\",\"url\":\"interfaces/_open_pioneer_authentication.LoginFallback.html#Fallback\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.LoginFallback\"},{\"kind\":1024,\"name\":\"kind\",\"url\":\"interfaces/_open_pioneer_authentication.LoginFallback.html#kind\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.LoginFallback\"},{\"kind\":256,\"name\":\"SessionInfo\",\"url\":\"interfaces/_open_pioneer_authentication.SessionInfo.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":1024,\"name\":\"attributes\",\"url\":\"interfaces/_open_pioneer_authentication.SessionInfo.html#attributes\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.SessionInfo\"},{\"kind\":1024,\"name\":\"expiresAt\",\"url\":\"interfaces/_open_pioneer_authentication.SessionInfo.html#expiresAt\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.SessionInfo\"},{\"kind\":1024,\"name\":\"userId\",\"url\":\"interfaces/_open_pioneer_authentication.SessionInfo.html#userId\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.SessionInfo\"},{\"kind\":1024,\"name\":\"userName\",\"url\":\"interfaces/_open_pioneer_authentication.SessionInfo.html#userName\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication.SessionInfo\"},{\"kind\":4194304,\"name\":\"AuthPluginEventBase\",\"url\":\"types/_open_pioneer_authentication.AuthPluginEventBase.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":4194304,\"name\":\"AuthState\",\"url\":\"types/_open_pioneer_authentication.AuthState.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":4194304,\"name\":\"LoginBehavior\",\"url\":\"types/_open_pioneer_authentication.LoginBehavior.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":64,\"name\":\"ForceAuth\",\"url\":\"functions/_open_pioneer_authentication.ForceAuth.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":64,\"name\":\"useAuthState\",\"url\":\"functions/_open_pioneer_authentication.useAuthState.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/authentication\"},{\"kind\":2,\"name\":\"@open-pioneer/coordinate-viewer\",\"url\":\"modules/_open_pioneer_coordinate_viewer.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"CoordinateViewerProps\",\"url\":\"interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/coordinate-viewer\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html#className\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/coordinate-viewer.CoordinateViewerProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/coordinate-viewer.CoordinateViewerProps\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/coordinate-viewer.CoordinateViewerProps\"},{\"kind\":1024,\"name\":\"precision\",\"url\":\"interfaces/_open_pioneer_coordinate_viewer.CoordinateViewerProps.html#precision\",\"classes\":\"\",\"parent\":\"@open-pioneer/coordinate-viewer.CoordinateViewerProps\"},{\"kind\":64,\"name\":\"CoordinateViewer\",\"url\":\"functions/_open_pioneer_coordinate_viewer.CoordinateViewer.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/coordinate-viewer\"},{\"kind\":2,\"name\":\"@open-pioneer/scale-viewer\",\"url\":\"modules/_open_pioneer_scale_viewer.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"ScaleViewerProps\",\"url\":\"interfaces/_open_pioneer_scale_viewer.ScaleViewerProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/scale-viewer\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_scale_viewer.ScaleViewerProps.html#className\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/scale-viewer.ScaleViewerProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_scale_viewer.ScaleViewerProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/scale-viewer.ScaleViewerProps\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_scale_viewer.ScaleViewerProps.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/scale-viewer.ScaleViewerProps\"},{\"kind\":64,\"name\":\"ScaleViewer\",\"url\":\"functions/_open_pioneer_scale_viewer.ScaleViewer.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/scale-viewer\"},{\"kind\":2,\"name\":\"@open-pioneer/basemap-switcher\",\"url\":\"modules/_open_pioneer_basemap_switcher.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"BasemapSwitcherProps\",\"url\":\"interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/basemap-switcher\"},{\"kind\":1024,\"name\":\"allowSelectingEmptyBasemap\",\"url\":\"interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html#allowSelectingEmptyBasemap\",\"classes\":\"\",\"parent\":\"@open-pioneer/basemap-switcher.BasemapSwitcherProps\"},{\"kind\":1024,\"name\":\"aria-label\",\"url\":\"interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html#aria_label\",\"classes\":\"\",\"parent\":\"@open-pioneer/basemap-switcher.BasemapSwitcherProps\"},{\"kind\":1024,\"name\":\"aria-labelledby\",\"url\":\"interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html#aria_labelledby\",\"classes\":\"\",\"parent\":\"@open-pioneer/basemap-switcher.BasemapSwitcherProps\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html#className\",\"classes\":\"\",\"parent\":\"@open-pioneer/basemap-switcher.BasemapSwitcherProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/basemap-switcher.BasemapSwitcherProps\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_basemap_switcher.BasemapSwitcherProps.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/basemap-switcher.BasemapSwitcherProps\"},{\"kind\":64,\"name\":\"BasemapSwitcher\",\"url\":\"functions/_open_pioneer_basemap_switcher.BasemapSwitcher.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/basemap-switcher\"},{\"kind\":2,\"name\":\"@open-pioneer/map-navigation\",\"url\":\"modules/_open_pioneer_map_navigation.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"InitialExtentProps\",\"url\":\"interfaces/_open_pioneer_map_navigation.InitialExtentProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_map_navigation.InitialExtentProps.html#className\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map-navigation.InitialExtentProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_map_navigation.InitialExtentProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map-navigation.InitialExtentProps\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_map_navigation.InitialExtentProps.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation.InitialExtentProps\"},{\"kind\":256,\"name\":\"ZoomProps\",\"url\":\"interfaces/_open_pioneer_map_navigation.ZoomProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_map_navigation.ZoomProps.html#className\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map-navigation.ZoomProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_map_navigation.ZoomProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/map-navigation.ZoomProps\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_map_navigation.ZoomProps.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation.ZoomProps\"},{\"kind\":1024,\"name\":\"zoomDirection\",\"url\":\"interfaces/_open_pioneer_map_navigation.ZoomProps.html#zoomDirection\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation.ZoomProps\"},{\"kind\":4194304,\"name\":\"ZoomInProps\",\"url\":\"types/_open_pioneer_map_navigation.ZoomInProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation\"},{\"kind\":4194304,\"name\":\"ZoomOutProps\",\"url\":\"types/_open_pioneer_map_navigation.ZoomOutProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation\"},{\"kind\":64,\"name\":\"InitialExtent\",\"url\":\"functions/_open_pioneer_map_navigation.InitialExtent.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation\"},{\"kind\":64,\"name\":\"Zoom\",\"url\":\"functions/_open_pioneer_map_navigation.Zoom.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation\"},{\"kind\":64,\"name\":\"ZoomIn\",\"url\":\"functions/_open_pioneer_map_navigation.ZoomIn.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation\"},{\"kind\":64,\"name\":\"ZoomOut\",\"url\":\"functions/_open_pioneer_map_navigation.ZoomOut.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/map-navigation\"},{\"kind\":2,\"name\":\"@open-pioneer/measurement\",\"url\":\"modules/_open_pioneer_measurement.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"MeasurementProps\",\"url\":\"interfaces/_open_pioneer_measurement.MeasurementProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/measurement\"},{\"kind\":1024,\"name\":\"activeFeatureStyle\",\"url\":\"interfaces/_open_pioneer_measurement.MeasurementProps.html#activeFeatureStyle\",\"classes\":\"\",\"parent\":\"@open-pioneer/measurement.MeasurementProps\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_measurement.MeasurementProps.html#className\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/measurement.MeasurementProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_measurement.MeasurementProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/measurement.MeasurementProps\"},{\"kind\":1024,\"name\":\"finishedFeatureStyle\",\"url\":\"interfaces/_open_pioneer_measurement.MeasurementProps.html#finishedFeatureStyle\",\"classes\":\"\",\"parent\":\"@open-pioneer/measurement.MeasurementProps\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_measurement.MeasurementProps.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/measurement.MeasurementProps\"},{\"kind\":64,\"name\":\"Measurement\",\"url\":\"functions/_open_pioneer_measurement.Measurement.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/measurement\"},{\"kind\":2,\"name\":\"@open-pioneer/ogc-features\",\"url\":\"modules/_open_pioneer_ogc_features.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"OgcFeatureSourceOptions\",\"url\":\"interfaces/_open_pioneer_ogc_features.OgcFeatureSourceOptions.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features\"},{\"kind\":1024,\"name\":\"additionalOptions\",\"url\":\"interfaces/_open_pioneer_ogc_features.OgcFeatureSourceOptions.html#additionalOptions\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features.OgcFeatureSourceOptions\"},{\"kind\":1024,\"name\":\"attributions\",\"url\":\"interfaces/_open_pioneer_ogc_features.OgcFeatureSourceOptions.html#attributions\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features.OgcFeatureSourceOptions\"},{\"kind\":1024,\"name\":\"baseUrl\",\"url\":\"interfaces/_open_pioneer_ogc_features.OgcFeatureSourceOptions.html#baseUrl\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features.OgcFeatureSourceOptions\"},{\"kind\":1024,\"name\":\"collectionId\",\"url\":\"interfaces/_open_pioneer_ogc_features.OgcFeatureSourceOptions.html#collectionId\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features.OgcFeatureSourceOptions\"},{\"kind\":1024,\"name\":\"crs\",\"url\":\"interfaces/_open_pioneer_ogc_features.OgcFeatureSourceOptions.html#crs\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features.OgcFeatureSourceOptions\"},{\"kind\":1024,\"name\":\"limit\",\"url\":\"interfaces/_open_pioneer_ogc_features.OgcFeatureSourceOptions.html#limit\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features.OgcFeatureSourceOptions\"},{\"kind\":1024,\"name\":\"maxConcurrentRequests\",\"url\":\"interfaces/_open_pioneer_ogc_features.OgcFeatureSourceOptions.html#maxConcurrentRequests\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features.OgcFeatureSourceOptions\"},{\"kind\":64,\"name\":\"createVectorSource\",\"url\":\"functions/_open_pioneer_ogc_features.createVectorSource.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/ogc-features\"},{\"kind\":2,\"name\":\"@open-pioneer/overview-map\",\"url\":\"modules/_open_pioneer_overview_map.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"OverviewMapProps\",\"url\":\"interfaces/_open_pioneer_overview_map.OverviewMapProps.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/overview-map\"},{\"kind\":1024,\"name\":\"className\",\"url\":\"interfaces/_open_pioneer_overview_map.OverviewMapProps.html#className\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/overview-map.OverviewMapProps\"},{\"kind\":1024,\"name\":\"data-testid\",\"url\":\"interfaces/_open_pioneer_overview_map.OverviewMapProps.html#data_testid\",\"classes\":\"tsd-is-inherited\",\"parent\":\"@open-pioneer/overview-map.OverviewMapProps\"},{\"kind\":1024,\"name\":\"mapId\",\"url\":\"interfaces/_open_pioneer_overview_map.OverviewMapProps.html#mapId\",\"classes\":\"\",\"parent\":\"@open-pioneer/overview-map.OverviewMapProps\"},{\"kind\":1024,\"name\":\"olLayer\",\"url\":\"interfaces/_open_pioneer_overview_map.OverviewMapProps.html#olLayer\",\"classes\":\"\",\"parent\":\"@open-pioneer/overview-map.OverviewMapProps\"},{\"kind\":64,\"name\":\"OverviewMap\",\"url\":\"functions/_open_pioneer_overview_map.OverviewMap.html\",\"classes\":\"\",\"parent\":\"@open-pioneer/overview-map\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,16.234,1,26.776,2,26.776,3,24.325]],[\"comment/0\",[]],[\"name/1\",[4,57.878]],[\"comment/1\",[]],[\"name/2\",[5,57.878]],[\"comment/2\",[]],[\"name/3\",[6,57.878]],[\"comment/3\",[]],[\"name/4\",[7,36.755]],[\"comment/4\",[]],[\"name/5\",[8,49.091]],[\"comment/5\",[]],[\"name/6\",[9,57.878]],[\"comment/6\",[]],[\"name/7\",[10,57.878]],[\"comment/7\",[]],[\"name/8\",[11,57.878]],[\"comment/8\",[]],[\"name/9\",[12,44.404]],[\"comment/9\",[]],[\"name/10\",[13,57.878]],[\"comment/10\",[]],[\"name/11\",[14,57.878]],[\"comment/11\",[]],[\"name/12\",[12,44.404]],[\"comment/12\",[]],[\"name/13\",[3,52.581]],[\"comment/13\",[]],[\"name/14\",[0,25.297,15,35.389]],[\"comment/14\",[]],[\"name/15\",[16,57.878]],[\"comment/15\",[]],[\"name/16\",[17,52.581]],[\"comment/16\",[]],[\"name/17\",[18,52.581]],[\"comment/17\",[]],[\"name/18\",[19,57.878]],[\"comment/18\",[]],[\"name/19\",[20,57.878]],[\"comment/19\",[]],[\"name/20\",[21,57.878]],[\"comment/20\",[]],[\"name/21\",[22,57.878]],[\"comment/21\",[]],[\"name/22\",[23,57.878]],[\"comment/22\",[]],[\"name/23\",[24,57.878]],[\"comment/23\",[]],[\"name/24\",[25,57.878]],[\"comment/24\",[]],[\"name/25\",[26,52.581]],[\"comment/25\",[]],[\"name/26\",[27,37.698]],[\"comment/26\",[]],[\"name/27\",[28,57.878]],[\"comment/27\",[]],[\"name/28\",[29,52.581]],[\"comment/28\",[]],[\"name/29\",[27,37.698]],[\"comment/29\",[]],[\"name/30\",[30,49.091]],[\"comment/30\",[]],[\"name/31\",[31,57.878]],[\"comment/31\",[]],[\"name/32\",[32,37.698]],[\"comment/32\",[]],[\"name/33\",[33,38.736]],[\"comment/33\",[]],[\"name/34\",[7,36.755]],[\"comment/34\",[]],[\"name/35\",[34,46.485]],[\"comment/35\",[]],[\"name/36\",[35,52.581]],[\"comment/36\",[]],[\"name/37\",[36,39.889]],[\"comment/37\",[]],[\"name/38\",[37,46.485]],[\"comment/38\",[]],[\"name/39\",[38,42.671]],[\"comment/39\",[]],[\"name/40\",[39,36.755]],[\"comment/40\",[]],[\"name/41\",[40,38.736]],[\"comment/41\",[]],[\"name/42\",[41,46.485]],[\"comment/42\",[]],[\"name/43\",[42,46.485]],[\"comment/43\",[]],[\"name/44\",[43,46.485]],[\"comment/44\",[]],[\"name/45\",[44,46.485]],[\"comment/45\",[]],[\"name/46\",[45,46.485]],[\"comment/46\",[]],[\"name/47\",[46,57.878]],[\"comment/47\",[]],[\"name/48\",[32,37.698]],[\"comment/48\",[]],[\"name/49\",[33,38.736]],[\"comment/49\",[]],[\"name/50\",[7,36.755]],[\"comment/50\",[]],[\"name/51\",[36,39.889]],[\"comment/51\",[]],[\"name/52\",[38,42.671]],[\"comment/52\",[]],[\"name/53\",[39,36.755]],[\"comment/53\",[]],[\"name/54\",[40,38.736]],[\"comment/54\",[]],[\"name/55\",[41,46.485]],[\"comment/55\",[]],[\"name/56\",[42,46.485]],[\"comment/56\",[]],[\"name/57\",[43,46.485]],[\"comment/57\",[]],[\"name/58\",[44,46.485]],[\"comment/58\",[]],[\"name/59\",[45,46.485]],[\"comment/59\",[]],[\"name/60\",[47,57.878]],[\"comment/60\",[]],[\"name/61\",[32,37.698]],[\"comment/61\",[]],[\"name/62\",[33,38.736]],[\"comment/62\",[]],[\"name/63\",[7,36.755]],[\"comment/63\",[]],[\"name/64\",[39,36.755]],[\"comment/64\",[]],[\"name/65\",[40,38.736]],[\"comment/65\",[]],[\"name/66\",[48,57.878]],[\"comment/66\",[]],[\"name/67\",[49,42.671]],[\"comment/67\",[]],[\"name/68\",[50,57.878]],[\"comment/68\",[]],[\"name/69\",[51,57.878]],[\"comment/69\",[]],[\"name/70\",[52,57.878]],[\"comment/70\",[]],[\"name/71\",[53,57.878]],[\"comment/71\",[]],[\"name/72\",[54,57.878]],[\"comment/72\",[]],[\"name/73\",[55,52.581]],[\"comment/73\",[]],[\"name/74\",[56,57.878]],[\"comment/74\",[]],[\"name/75\",[57,57.878]],[\"comment/75\",[]],[\"name/76\",[58,57.878]],[\"comment/76\",[]],[\"name/77\",[59,57.878]],[\"comment/77\",[]],[\"name/78\",[60,57.878]],[\"comment/78\",[]],[\"name/79\",[61,57.878]],[\"comment/79\",[]],[\"name/80\",[62,57.878]],[\"comment/80\",[]],[\"name/81\",[63,57.878]],[\"comment/81\",[]],[\"name/82\",[64,57.878]],[\"comment/82\",[]],[\"name/83\",[65,57.878]],[\"comment/83\",[]],[\"name/84\",[66,57.878]],[\"comment/84\",[]],[\"name/85\",[49,42.671]],[\"comment/85\",[]],[\"name/86\",[67,57.878]],[\"comment/86\",[]],[\"name/87\",[32,37.698]],[\"comment/87\",[]],[\"name/88\",[33,38.736]],[\"comment/88\",[]],[\"name/89\",[7,36.755]],[\"comment/89\",[]],[\"name/90\",[34,46.485]],[\"comment/90\",[]],[\"name/91\",[39,36.755]],[\"comment/91\",[]],[\"name/92\",[40,38.736]],[\"comment/92\",[]],[\"name/93\",[68,57.878]],[\"comment/93\",[]],[\"name/94\",[69,57.878]],[\"comment/94\",[]],[\"name/95\",[70,57.878]],[\"comment/95\",[]],[\"name/96\",[71,42.671]],[\"comment/96\",[]],[\"name/97\",[72,37.698]],[\"comment/97\",[]],[\"name/98\",[73,27.176,74,27.176]],[\"comment/98\",[]],[\"name/99\",[75,57.878]],[\"comment/99\",[]],[\"name/100\",[76,52.581]],[\"comment/100\",[]],[\"name/101\",[77,57.878]],[\"comment/101\",[]],[\"name/102\",[78,57.878]],[\"comment/102\",[]],[\"name/103\",[79,57.878]],[\"comment/103\",[]],[\"name/104\",[80,52.581]],[\"comment/104\",[]],[\"name/105\",[81,57.878]],[\"comment/105\",[]],[\"name/106\",[82,49.091]],[\"comment/106\",[]],[\"name/107\",[83,52.581]],[\"comment/107\",[]],[\"name/108\",[84,57.878]],[\"comment/108\",[]],[\"name/109\",[85,38.736]],[\"comment/109\",[]],[\"name/110\",[86,57.878]],[\"comment/110\",[]],[\"name/111\",[87,57.878]],[\"comment/111\",[]],[\"name/112\",[8,35.389,88,33.51]],[\"comment/112\",[]],[\"name/113\",[88,33.51,89,37.904]],[\"comment/113\",[]],[\"name/114\",[71,42.671]],[\"comment/114\",[]],[\"name/115\",[72,37.698]],[\"comment/115\",[]],[\"name/116\",[73,27.176,74,27.176]],[\"comment/116\",[]],[\"name/117\",[85,38.736]],[\"comment/117\",[]],[\"name/118\",[90,57.878]],[\"comment/118\",[]],[\"name/119\",[91,57.878]],[\"comment/119\",[]],[\"name/120\",[92,57.878]],[\"comment/120\",[]],[\"name/121\",[93,57.878]],[\"comment/121\",[]],[\"name/122\",[94,57.878]],[\"comment/122\",[]],[\"name/123\",[7,36.755]],[\"comment/123\",[]],[\"name/124\",[95,52.581]],[\"comment/124\",[]],[\"name/125\",[82,49.091]],[\"comment/125\",[]],[\"name/126\",[96,57.878]],[\"comment/126\",[]],[\"name/127\",[97,57.878]],[\"comment/127\",[]],[\"name/128\",[98,57.878]],[\"comment/128\",[]],[\"name/129\",[49,42.671]],[\"comment/129\",[]],[\"name/130\",[99,57.878]],[\"comment/130\",[]],[\"name/131\",[100,57.878]],[\"comment/131\",[]],[\"name/132\",[55,52.581]],[\"comment/132\",[]],[\"name/133\",[101,57.878]],[\"comment/133\",[]],[\"name/134\",[102,57.878]],[\"comment/134\",[]],[\"name/135\",[103,57.878]],[\"comment/135\",[]],[\"name/136\",[104,57.878]],[\"comment/136\",[]],[\"name/137\",[105,57.878]],[\"comment/137\",[]],[\"name/138\",[106,57.878]],[\"comment/138\",[]],[\"name/139\",[107,57.878]],[\"comment/139\",[]],[\"name/140\",[108,57.878]],[\"comment/140\",[]],[\"name/141\",[109,57.878]],[\"comment/141\",[]],[\"name/142\",[110,57.878]],[\"comment/142\",[]],[\"name/143\",[111,57.878]],[\"comment/143\",[]],[\"name/144\",[112,57.878]],[\"comment/144\",[]],[\"name/145\",[32,37.698]],[\"comment/145\",[]],[\"name/146\",[33,38.736]],[\"comment/146\",[]],[\"name/147\",[7,36.755]],[\"comment/147\",[]],[\"name/148\",[34,46.485]],[\"comment/148\",[]],[\"name/149\",[37,46.485]],[\"comment/149\",[]],[\"name/150\",[39,36.755]],[\"comment/150\",[]],[\"name/151\",[40,38.736]],[\"comment/151\",[]],[\"name/152\",[113,57.878]],[\"comment/152\",[]],[\"name/153\",[114,52.581]],[\"comment/153\",[]],[\"name/154\",[115,52.581]],[\"comment/154\",[]],[\"name/155\",[116,57.878]],[\"comment/155\",[]],[\"name/156\",[32,37.698]],[\"comment/156\",[]],[\"name/157\",[33,38.736]],[\"comment/157\",[]],[\"name/158\",[7,36.755]],[\"comment/158\",[]],[\"name/159\",[36,39.889]],[\"comment/159\",[]],[\"name/160\",[117,57.878]],[\"comment/160\",[]],[\"name/161\",[118,57.878]],[\"comment/161\",[]],[\"name/162\",[38,42.671]],[\"comment/162\",[]],[\"name/163\",[39,36.755]],[\"comment/163\",[]],[\"name/164\",[40,38.736]],[\"comment/164\",[]],[\"name/165\",[41,46.485]],[\"comment/165\",[]],[\"name/166\",[42,46.485]],[\"comment/166\",[]],[\"name/167\",[43,46.485]],[\"comment/167\",[]],[\"name/168\",[44,46.485]],[\"comment/168\",[]],[\"name/169\",[45,46.485]],[\"comment/169\",[]],[\"name/170\",[119,57.878]],[\"comment/170\",[]],[\"name/171\",[120,57.878]],[\"comment/171\",[]],[\"name/172\",[121,57.878]],[\"comment/172\",[]],[\"name/173\",[49,42.671]],[\"comment/173\",[]],[\"name/174\",[122,57.878]],[\"comment/174\",[]],[\"name/175\",[123,49.091]],[\"comment/175\",[]],[\"name/176\",[27,37.698]],[\"comment/176\",[]],[\"name/177\",[36,39.889]],[\"comment/177\",[]],[\"name/178\",[124,57.878]],[\"comment/178\",[]],[\"name/179\",[123,49.091]],[\"comment/179\",[]],[\"name/180\",[27,37.698]],[\"comment/180\",[]],[\"name/181\",[36,39.889]],[\"comment/181\",[]],[\"name/182\",[125,57.878]],[\"comment/182\",[]],[\"name/183\",[123,49.091]],[\"comment/183\",[]],[\"name/184\",[27,37.698]],[\"comment/184\",[]],[\"name/185\",[36,39.889]],[\"comment/185\",[]],[\"name/186\",[126,52.581]],[\"comment/186\",[]],[\"name/187\",[32,37.698]],[\"comment/187\",[]],[\"name/188\",[33,38.736]],[\"comment/188\",[]],[\"name/189\",[7,36.755]],[\"comment/189\",[]],[\"name/190\",[34,46.485]],[\"comment/190\",[]],[\"name/191\",[35,52.581]],[\"comment/191\",[]],[\"name/192\",[36,39.889]],[\"comment/192\",[]],[\"name/193\",[37,46.485]],[\"comment/193\",[]],[\"name/194\",[38,42.671]],[\"comment/194\",[]],[\"name/195\",[39,36.755]],[\"comment/195\",[]],[\"name/196\",[127,52.581]],[\"comment/196\",[]],[\"name/197\",[40,38.736]],[\"comment/197\",[]],[\"name/198\",[41,46.485]],[\"comment/198\",[]],[\"name/199\",[42,46.485]],[\"comment/199\",[]],[\"name/200\",[43,46.485]],[\"comment/200\",[]],[\"name/201\",[44,46.485]],[\"comment/201\",[]],[\"name/202\",[45,46.485]],[\"comment/202\",[]],[\"name/203\",[128,57.878]],[\"comment/203\",[]],[\"name/204\",[32,37.698]],[\"comment/204\",[]],[\"name/205\",[33,38.736]],[\"comment/205\",[]],[\"name/206\",[7,36.755]],[\"comment/206\",[]],[\"name/207\",[129,57.878]],[\"comment/207\",[]],[\"name/208\",[38,42.671]],[\"comment/208\",[]],[\"name/209\",[39,36.755]],[\"comment/209\",[]],[\"name/210\",[127,52.581]],[\"comment/210\",[]],[\"name/211\",[40,38.736]],[\"comment/211\",[]],[\"name/212\",[130,57.878]],[\"comment/212\",[]],[\"name/213\",[114,52.581]],[\"comment/213\",[]],[\"name/214\",[115,52.581]],[\"comment/214\",[]],[\"name/215\",[131,57.878]],[\"comment/215\",[]],[\"name/216\",[32,37.698]],[\"comment/216\",[]],[\"name/217\",[33,38.736]],[\"comment/217\",[]],[\"name/218\",[7,36.755]],[\"comment/218\",[]],[\"name/219\",[132,57.878]],[\"comment/219\",[]],[\"name/220\",[38,42.671]],[\"comment/220\",[]],[\"name/221\",[39,36.755]],[\"comment/221\",[]],[\"name/222\",[40,38.736]],[\"comment/222\",[]],[\"name/223\",[133,57.878]],[\"comment/223\",[]],[\"name/224\",[134,57.878]],[\"comment/224\",[]],[\"name/225\",[135,57.878]],[\"comment/225\",[]],[\"name/226\",[136,57.878]],[\"comment/226\",[]],[\"name/227\",[137,52.581]],[\"comment/227\",[]],[\"name/228\",[138,57.878]],[\"comment/228\",[]],[\"name/229\",[137,52.581]],[\"comment/229\",[]],[\"name/230\",[126,52.581]],[\"comment/230\",[]],[\"name/231\",[139,57.878]],[\"comment/231\",[]],[\"name/232\",[140,57.878]],[\"comment/232\",[]],[\"name/233\",[141,57.878]],[\"comment/233\",[]],[\"name/234\",[142,57.878]],[\"comment/234\",[]],[\"name/235\",[143,57.878]],[\"comment/235\",[]],[\"name/236\",[144,57.878]],[\"comment/236\",[]],[\"name/237\",[145,57.878]],[\"comment/237\",[]],[\"name/238\",[146,57.878]],[\"comment/238\",[]],[\"name/239\",[147,57.878]],[\"comment/239\",[]],[\"name/240\",[0,16.234,15,22.711,148,26.776,149,24.325]],[\"comment/240\",[]],[\"name/241\",[150,57.878]],[\"comment/241\",[]],[\"name/242\",[80,52.581]],[\"comment/242\",[]],[\"name/243\",[29,52.581]],[\"comment/243\",[]],[\"name/244\",[12,44.404]],[\"comment/244\",[]],[\"name/245\",[17,52.581]],[\"comment/245\",[]],[\"name/246\",[18,52.581]],[\"comment/246\",[]],[\"name/247\",[26,52.581]],[\"comment/247\",[]],[\"name/248\",[82,49.091]],[\"comment/248\",[]],[\"name/249\",[151,57.878]],[\"comment/249\",[]],[\"name/250\",[152,57.878]],[\"comment/250\",[]],[\"name/251\",[83,52.581]],[\"comment/251\",[]],[\"name/252\",[30,49.091]],[\"comment/252\",[]],[\"name/253\",[153,57.878]],[\"comment/253\",[]],[\"name/254\",[154,57.878]],[\"comment/254\",[]],[\"name/255\",[155,57.878]],[\"comment/255\",[]],[\"name/256\",[156,57.878]],[\"comment/256\",[]],[\"name/257\",[0,25.297,157,41.723]],[\"comment/257\",[]],[\"name/258\",[158,57.878]],[\"comment/258\",[]],[\"name/259\",[159,57.878]],[\"comment/259\",[]],[\"name/260\",[160,52.581]],[\"comment/260\",[]],[\"name/261\",[161,57.878]],[\"comment/261\",[]],[\"name/262\",[39,36.755]],[\"comment/262\",[]],[\"name/263\",[162,57.878]],[\"comment/263\",[]],[\"name/264\",[163,57.878]],[\"comment/264\",[]],[\"name/265\",[164,57.878]],[\"comment/265\",[]],[\"name/266\",[165,57.878]],[\"comment/266\",[]],[\"name/267\",[76,52.581]],[\"comment/267\",[]],[\"name/268\",[166,57.878]],[\"comment/268\",[]],[\"name/269\",[167,57.878]],[\"comment/269\",[]],[\"name/270\",[0,19.777,149,29.633,168,32.619]],[\"comment/270\",[]],[\"name/271\",[169,57.878]],[\"comment/271\",[]],[\"name/272\",[72,37.698]],[\"comment/272\",[]],[\"name/273\",[73,27.176,74,27.176]],[\"comment/273\",[]],[\"name/274\",[170,57.878]],[\"comment/274\",[]],[\"name/275\",[71,42.671]],[\"comment/275\",[]],[\"name/276\",[160,52.581]],[\"comment/276\",[]],[\"name/277\",[171,57.878]],[\"comment/277\",[]],[\"name/278\",[71,42.671]],[\"comment/278\",[]],[\"name/279\",[172,57.878]],[\"comment/279\",[]],[\"name/280\",[71,42.671]],[\"comment/280\",[]],[\"name/281\",[173,57.878]],[\"comment/281\",[]],[\"name/282\",[39,36.755]],[\"comment/282\",[]],[\"name/283\",[174,57.878]],[\"comment/283\",[]],[\"name/284\",[175,57.878]],[\"comment/284\",[]],[\"name/285\",[176,57.878]],[\"comment/285\",[]],[\"name/286\",[177,57.878]],[\"comment/286\",[]],[\"name/287\",[178,57.878]],[\"comment/287\",[]],[\"name/288\",[12,44.404]],[\"comment/288\",[]],[\"name/289\",[179,57.878]],[\"comment/289\",[]],[\"name/290\",[180,57.878]],[\"comment/290\",[]],[\"name/291\",[181,57.878]],[\"comment/291\",[]],[\"name/292\",[0,25.297,182,41.723]],[\"comment/292\",[]],[\"name/293\",[183,57.878]],[\"comment/293\",[]],[\"name/294\",[49,42.671]],[\"comment/294\",[]],[\"name/295\",[184,57.878]],[\"comment/295\",[]],[\"name/296\",[185,52.581]],[\"comment/296\",[]],[\"name/297\",[186,52.581]],[\"comment/297\",[]],[\"name/298\",[187,52.581]],[\"comment/298\",[]],[\"name/299\",[188,57.878]],[\"comment/299\",[]],[\"name/300\",[49,42.671]],[\"comment/300\",[]],[\"name/301\",[189,57.878]],[\"comment/301\",[]],[\"name/302\",[185,52.581]],[\"comment/302\",[]],[\"name/303\",[186,52.581]],[\"comment/303\",[]],[\"name/304\",[190,57.878]],[\"comment/304\",[]],[\"name/305\",[187,52.581]],[\"comment/305\",[]],[\"name/306\",[191,57.878]],[\"comment/306\",[]],[\"name/307\",[27,37.698]],[\"comment/307\",[]],[\"name/308\",[192,52.581]],[\"comment/308\",[]],[\"name/309\",[193,57.878]],[\"comment/309\",[]],[\"name/310\",[27,37.698]],[\"comment/310\",[]],[\"name/311\",[194,57.878]],[\"comment/311\",[]],[\"name/312\",[27,37.698]],[\"comment/312\",[]],[\"name/313\",[195,57.878]],[\"comment/313\",[]],[\"name/314\",[71,42.671]],[\"comment/314\",[]],[\"name/315\",[196,57.878]],[\"comment/315\",[]],[\"name/316\",[197,57.878]],[\"comment/316\",[]],[\"name/317\",[12,44.404]],[\"comment/317\",[]],[\"name/318\",[198,57.878]],[\"comment/318\",[]],[\"name/319\",[27,37.698]],[\"comment/319\",[]],[\"name/320\",[199,57.878]],[\"comment/320\",[]],[\"name/321\",[200,57.878]],[\"comment/321\",[]],[\"name/322\",[201,57.878]],[\"comment/322\",[]],[\"name/323\",[27,37.698]],[\"comment/323\",[]],[\"name/324\",[192,52.581]],[\"comment/324\",[]],[\"name/325\",[32,37.698]],[\"comment/325\",[]],[\"name/326\",[202,57.878]],[\"comment/326\",[]],[\"name/327\",[203,57.878]],[\"comment/327\",[]],[\"name/328\",[204,57.878]],[\"comment/328\",[]],[\"name/329\",[205,57.878]],[\"comment/329\",[]],[\"name/330\",[206,57.878]],[\"comment/330\",[]],[\"name/331\",[207,57.878]],[\"comment/331\",[]],[\"name/332\",[208,57.878]],[\"comment/332\",[]],[\"name/333\",[209,57.878]],[\"comment/333\",[]],[\"name/334\",[0,19.777,210,32.619,211,29.633]],[\"comment/334\",[]],[\"name/335\",[212,57.878]],[\"comment/335\",[]],[\"name/336\",[72,37.698]],[\"comment/336\",[]],[\"name/337\",[73,27.176,74,27.176]],[\"comment/337\",[]],[\"name/338\",[85,38.736]],[\"comment/338\",[]],[\"name/339\",[213,57.878]],[\"comment/339\",[]],[\"name/340\",[214,57.878]],[\"comment/340\",[]],[\"name/341\",[0,19.777,211,29.633,215,32.619]],[\"comment/341\",[]],[\"name/342\",[216,57.878]],[\"comment/342\",[]],[\"name/343\",[72,37.698]],[\"comment/343\",[]],[\"name/344\",[73,27.176,74,27.176]],[\"comment/344\",[]],[\"name/345\",[85,38.736]],[\"comment/345\",[]],[\"name/346\",[217,57.878]],[\"comment/346\",[]],[\"name/347\",[0,19.777,218,32.619,219,32.619]],[\"comment/347\",[]],[\"name/348\",[220,57.878]],[\"comment/348\",[]],[\"name/349\",[221,57.878]],[\"comment/349\",[]],[\"name/350\",[8,35.389,88,33.51]],[\"comment/350\",[]],[\"name/351\",[88,33.51,89,37.904]],[\"comment/351\",[]],[\"name/352\",[72,37.698]],[\"comment/352\",[]],[\"name/353\",[73,27.176,74,27.176]],[\"comment/353\",[]],[\"name/354\",[85,38.736]],[\"comment/354\",[]],[\"name/355\",[222,57.878]],[\"comment/355\",[]],[\"name/356\",[0,19.777,15,27.667,223,32.619]],[\"comment/356\",[]],[\"name/357\",[224,57.878]],[\"comment/357\",[]],[\"name/358\",[72,37.698]],[\"comment/358\",[]],[\"name/359\",[73,27.176,74,27.176]],[\"comment/359\",[]],[\"name/360\",[85,38.736]],[\"comment/360\",[]],[\"name/361\",[225,57.878]],[\"comment/361\",[]],[\"name/362\",[72,37.698]],[\"comment/362\",[]],[\"name/363\",[73,27.176,74,27.176]],[\"comment/363\",[]],[\"name/364\",[85,38.736]],[\"comment/364\",[]],[\"name/365\",[226,57.878]],[\"comment/365\",[]],[\"name/366\",[227,57.878]],[\"comment/366\",[]],[\"name/367\",[228,57.878]],[\"comment/367\",[]],[\"name/368\",[95,52.581]],[\"comment/368\",[]],[\"name/369\",[30,49.091]],[\"comment/369\",[]],[\"name/370\",[229,57.878]],[\"comment/370\",[]],[\"name/371\",[230,57.878]],[\"comment/371\",[]],[\"name/372\",[0,25.297,231,41.723]],[\"comment/372\",[]],[\"name/373\",[232,57.878]],[\"comment/373\",[]],[\"name/374\",[233,57.878]],[\"comment/374\",[]],[\"name/375\",[72,37.698]],[\"comment/375\",[]],[\"name/376\",[73,27.176,74,27.176]],[\"comment/376\",[]],[\"name/377\",[234,57.878]],[\"comment/377\",[]],[\"name/378\",[85,38.736]],[\"comment/378\",[]],[\"name/379\",[235,57.878]],[\"comment/379\",[]],[\"name/380\",[0,19.777,236,32.619,237,32.619]],[\"comment/380\",[]],[\"name/381\",[238,57.878]],[\"comment/381\",[]],[\"name/382\",[239,57.878]],[\"comment/382\",[]],[\"name/383\",[240,57.878]],[\"comment/383\",[]],[\"name/384\",[241,57.878]],[\"comment/384\",[]],[\"name/385\",[242,57.878]],[\"comment/385\",[]],[\"name/386\",[243,57.878]],[\"comment/386\",[]],[\"name/387\",[244,57.878]],[\"comment/387\",[]],[\"name/388\",[245,57.878]],[\"comment/388\",[]],[\"name/389\",[246,57.878]],[\"comment/389\",[]],[\"name/390\",[0,19.777,36,22.481,247,32.619]],[\"comment/390\",[]],[\"name/391\",[248,57.878]],[\"comment/391\",[]],[\"name/392\",[72,37.698]],[\"comment/392\",[]],[\"name/393\",[73,27.176,74,27.176]],[\"comment/393\",[]],[\"name/394\",[85,38.736]],[\"comment/394\",[]],[\"name/395\",[37,46.485]],[\"comment/395\",[]],[\"name/396\",[249,57.878]],[\"comment/396\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":12,\"name\":{\"9\":{},\"12\":{},\"244\":{},\"288\":{},\"317\":{}},\"comment\":{}}],[\"activatebaselayer\",{\"_index\":57,\"name\":{\"75\":{}},\"comment\":{}}],[\"activefeaturestyle\",{\"_index\":233,\"name\":{\"374\":{}},\"comment\":{}}],[\"additionaloptions\",{\"_index\":239,\"name\":{\"382\":{}},\"comment\":{}}],[\"addlayer\",{\"_index\":58,\"name\":{\"76\":{}},\"comment\":{}}],[\"advanced\",{\"_index\":80,\"name\":{\"104\":{},\"242\":{}},\"comment\":{}}],[\"allowselectingemptybasemap\",{\"_index\":221,\"name\":{\"349\":{}},\"comment\":{}}],[\"aria\",{\"_index\":88,\"name\":{\"112\":{},\"113\":{},\"350\":{},\"351\":{}},\"comment\":{}}],[\"attributes\",{\"_index\":32,\"name\":{\"32\":{},\"48\":{},\"61\":{},\"87\":{},\"145\":{},\"156\":{},\"187\":{},\"204\":{},\"216\":{},\"325\":{}},\"comment\":{}}],[\"attributions\",{\"_index\":240,\"name\":{\"383\":{}},\"comment\":{}}],[\"authevents\",{\"_index\":183,\"name\":{\"293\":{}},\"comment\":{}}],[\"authplugin\",{\"_index\":184,\"name\":{\"295\":{}},\"comment\":{}}],[\"authplugineventbase\",{\"_index\":205,\"name\":{\"329\":{}},\"comment\":{}}],[\"authpluginevents\",{\"_index\":188,\"name\":{\"299\":{}},\"comment\":{}}],[\"authservice\",{\"_index\":189,\"name\":{\"301\":{}},\"comment\":{}}],[\"authstate\",{\"_index\":206,\"name\":{\"330\":{}},\"comment\":{}}],[\"authstateauthenticated\",{\"_index\":191,\"name\":{\"306\":{}},\"comment\":{}}],[\"authstatenotauthenticated\",{\"_index\":193,\"name\":{\"309\":{}},\"comment\":{}}],[\"authstatepending\",{\"_index\":194,\"name\":{\"311\":{}},\"comment\":{}}],[\"basemapswitcher\",{\"_index\":222,\"name\":{\"355\":{}},\"comment\":{}}],[\"basemapswitcherprops\",{\"_index\":220,\"name\":{\"348\":{}},\"comment\":{}}],[\"baseurl\",{\"_index\":241,\"name\":{\"384\":{}},\"comment\":{}}],[\"bottom\",{\"_index\":102,\"name\":{\"134\":{}},\"comment\":{}}],[\"center\",{\"_index\":29,\"name\":{\"28\":{},\"243\":{}},\"comment\":{}}],[\"changed\",{\"_index\":49,\"name\":{\"67\":{},\"85\":{},\"129\":{},\"173\":{},\"294\":{},\"300\":{}},\"comment\":{}}],[\"changed:attributes\",{\"_index\":50,\"name\":{\"68\":{}},\"comment\":{}}],[\"changed:container\",{\"_index\":99,\"name\":{\"130\":{}},\"comment\":{}}],[\"changed:description\",{\"_index\":51,\"name\":{\"69\":{}},\"comment\":{}}],[\"changed:initialextent\",{\"_index\":100,\"name\":{\"131\":{}},\"comment\":{}}],[\"changed:loadstate\",{\"_index\":52,\"name\":{\"70\":{}},\"comment\":{}}],[\"changed:title\",{\"_index\":53,\"name\":{\"71\":{}},\"comment\":{}}],[\"changed:visible\",{\"_index\":54,\"name\":{\"72\":{}},\"comment\":{}}],[\"children\",{\"_index\":71,\"name\":{\"96\":{},\"114\":{},\"275\":{},\"278\":{},\"280\":{},\"314\":{}},\"comment\":{}}],[\"classname\",{\"_index\":72,\"name\":{\"97\":{},\"115\":{},\"272\":{},\"336\":{},\"343\":{},\"352\":{},\"358\":{},\"362\":{},\"375\":{},\"392\":{}},\"comment\":{}}],[\"closeall\",{\"_index\":163,\"name\":{\"264\":{}},\"comment\":{}}],[\"collectionid\",{\"_index\":242,\"name\":{\"385\":{}},\"comment\":{}}],[\"commoncomponentprops\",{\"_index\":169,\"name\":{\"271\":{}},\"comment\":{}}],[\"configuretitledsection\",{\"_index\":175,\"name\":{\"284\":{}},\"comment\":{}}],[\"configuretitledsectionprops\",{\"_index\":170,\"name\":{\"274\":{}},\"comment\":{}}],[\"constructor\",{\"_index\":114,\"name\":{\"153\":{},\"213\":{}},\"comment\":{}}],[\"container\",{\"_index\":94,\"name\":{\"122\":{}},\"comment\":{}}],[\"containerprops\",{\"_index\":179,\"name\":{\"289\":{}},\"comment\":{}}],[\"content\",{\"_index\":5,\"name\":{\"2\":{}},\"comment\":{}}],[\"coordinateconfig\",{\"_index\":16,\"name\":{\"15\":{}},\"comment\":{}}],[\"coordinateviewer\",{\"_index\":214,\"name\":{\"340\":{}},\"comment\":{}}],[\"coordinateviewerprops\",{\"_index\":212,\"name\":{\"335\":{}},\"comment\":{}}],[\"createserviceoptions\",{\"_index\":153,\"name\":{\"253\":{}},\"comment\":{}}],[\"createvectorsource\",{\"_index\":246,\"name\":{\"389\":{}},\"comment\":{}}],[\"crs\",{\"_index\":243,\"name\":{\"386\":{}},\"comment\":{}}],[\"data\",{\"_index\":73,\"name\":{\"98\":{},\"116\":{},\"273\":{},\"337\":{},\"344\":{},\"353\":{},\"359\":{},\"363\":{},\"376\":{},\"393\":{}},\"comment\":{}}],[\"defaultexpanded\",{\"_index\":10,\"name\":{\"7\":{}},\"comment\":{}}],[\"deleteattribute\",{\"_index\":41,\"name\":{\"42\":{},\"55\":{},\"165\":{},\"198\":{}},\"comment\":{}}],[\"description\",{\"_index\":33,\"name\":{\"33\":{},\"49\":{},\"62\":{},\"88\":{},\"146\":{},\"157\":{},\"188\":{},\"205\":{},\"217\":{}},\"comment\":{}}],[\"destroy\",{\"_index\":55,\"name\":{\"73\":{},\"132\":{}},\"comment\":{}}],[\"displayduration\",{\"_index\":159,\"name\":{\"259\":{}},\"comment\":{}}],[\"error\",{\"_index\":123,\"name\":{\"175\":{},\"179\":{},\"183\":{}},\"comment\":{}}],[\"expandedchanged\",{\"_index\":11,\"name\":{\"8\":{}},\"comment\":{}}],[\"expectmapmodel\",{\"_index\":107,\"name\":{\"139\":{}},\"comment\":{}}],[\"expiresat\",{\"_index\":202,\"name\":{\"326\":{}},\"comment\":{}}],[\"extent\",{\"_index\":26,\"name\":{\"25\":{},\"247\":{}},\"comment\":{}}],[\"extentconfig\",{\"_index\":20,\"name\":{\"19\":{}},\"comment\":{}}],[\"fallback\",{\"_index\":201,\"name\":{\"322\":{}},\"comment\":{}}],[\"fallbackprops\",{\"_index\":196,\"name\":{\"315\":{}},\"comment\":{}}],[\"features\",{\"_index\":237,\"name\":{\"380\":{}},\"comment\":{}}],[\"finishedfeaturestyle\",{\"_index\":234,\"name\":{\"377\":{}},\"comment\":{}}],[\"forceauth\",{\"_index\":208,\"name\":{\"332\":{}},\"comment\":{}}],[\"forceauthprops\",{\"_index\":195,\"name\":{\"313\":{}},\"comment\":{}}],[\"getactivebaselayer\",{\"_index\":59,\"name\":{\"77\":{}},\"comment\":{}}],[\"getalllayers\",{\"_index\":60,\"name\":{\"78\":{}},\"comment\":{}}],[\"getauthstate\",{\"_index\":185,\"name\":{\"296\":{},\"302\":{}},\"comment\":{}}],[\"getbaselayers\",{\"_index\":61,\"name\":{\"79\":{}},\"comment\":{}}],[\"getlayerbyid\",{\"_index\":62,\"name\":{\"80\":{}},\"comment\":{}}],[\"getlayerbyrawinstance\",{\"_index\":63,\"name\":{\"81\":{}},\"comment\":{}}],[\"getloginbehavior\",{\"_index\":186,\"name\":{\"297\":{},\"303\":{}},\"comment\":{}}],[\"getmapconfig\",{\"_index\":86,\"name\":{\"110\":{}},\"comment\":{}}],[\"getmapmodel\",{\"_index\":108,\"name\":{\"140\":{}},\"comment\":{}}],[\"getmapmodelbyrawinstance\",{\"_index\":109,\"name\":{\"141\":{}},\"comment\":{}}],[\"getoperationallayers\",{\"_index\":64,\"name\":{\"82\":{}},\"comment\":{}}],[\"getprojection\",{\"_index\":141,\"name\":{\"233\":{}},\"comment\":{}}],[\"getsessioninfo\",{\"_index\":190,\"name\":{\"304\":{}},\"comment\":{}}],[\"getsublayers\",{\"_index\":120,\"name\":{\"171\":{}},\"comment\":{}}],[\"headinglevel\",{\"_index\":174,\"name\":{\"283\":{}},\"comment\":{}}],[\"horizontalgap\",{\"_index\":75,\"name\":{\"99\":{}},\"comment\":{}}],[\"icon\",{\"_index\":6,\"name\":{\"3\":{}},\"comment\":{}}],[\"id\",{\"_index\":7,\"name\":{\"4\":{},\"34\":{},\"50\":{},\"63\":{},\"89\":{},\"123\":{},\"147\":{},\"158\":{},\"189\":{},\"206\":{},\"218\":{}},\"comment\":{}}],[\"initialextent\",{\"_index\":95,\"name\":{\"124\":{},\"368\":{}},\"comment\":{}}],[\"initialextentconfig\",{\"_index\":25,\"name\":{\"24\":{}},\"comment\":{}}],[\"initialextentprops\",{\"_index\":224,\"name\":{\"357\":{}},\"comment\":{}}],[\"initialpositionconfig\",{\"_index\":28,\"name\":{\"27\":{}},\"comment\":{}}],[\"initialview\",{\"_index\":81,\"name\":{\"105\":{}},\"comment\":{}}],[\"initialviewconfig\",{\"_index\":133,\"name\":{\"223\":{}},\"comment\":{}}],[\"isbaselayer\",{\"_index\":34,\"name\":{\"35\":{},\"90\":{},\"148\":{},\"190\":{}},\"comment\":{}}],[\"items\",{\"_index\":13,\"name\":{\"10\":{}},\"comment\":{}}],[\"kind\",{\"_index\":27,\"name\":{\"26\":{},\"29\":{},\"176\":{},\"180\":{},\"184\":{},\"307\":{},\"310\":{},\"312\":{},\"319\":{},\"323\":{}},\"comment\":{}}],[\"label\",{\"_index\":8,\"name\":{\"5\":{},\"112\":{},\"350\":{}},\"comment\":{}}],[\"labelledby\",{\"_index\":89,\"name\":{\"113\":{},\"351\":{}},\"comment\":{}}],[\"layer\",{\"_index\":31,\"name\":{\"31\":{}},\"comment\":{}}],[\"layerbase\",{\"_index\":46,\"name\":{\"47\":{}},\"comment\":{}}],[\"layerbaseconfig\",{\"_index\":47,\"name\":{\"60\":{}},\"comment\":{}}],[\"layerbaseevents\",{\"_index\":48,\"name\":{\"66\":{}},\"comment\":{}}],[\"layercollection\",{\"_index\":56,\"name\":{\"74\":{}},\"comment\":{}}],[\"layercollectionevents\",{\"_index\":66,\"name\":{\"84\":{}},\"comment\":{}}],[\"layerconfig\",{\"_index\":67,\"name\":{\"86\":{}},\"comment\":{}}],[\"layerloadstate\",{\"_index\":134,\"name\":{\"224\":{}},\"comment\":{}}],[\"layerretrievaloptions\",{\"_index\":68,\"name\":{\"93\":{}},\"comment\":{}}],[\"layers\",{\"_index\":82,\"name\":{\"106\":{},\"125\":{},\"248\":{}},\"comment\":{}}],[\"layout\",{\"_index\":2,\"name\":{\"0\":{}},\"comment\":{}}],[\"left\",{\"_index\":103,\"name\":{\"135\":{}},\"comment\":{}}],[\"level\",{\"_index\":160,\"name\":{\"260\":{},\"276\":{}},\"comment\":{}}],[\"limit\",{\"_index\":244,\"name\":{\"387\":{}},\"comment\":{}}],[\"loadstate\",{\"_index\":35,\"name\":{\"36\":{},\"191\":{}},\"comment\":{}}],[\"login\",{\"_index\":199,\"name\":{\"320\":{}},\"comment\":{}}],[\"loginbehavior\",{\"_index\":207,\"name\":{\"331\":{}},\"comment\":{}}],[\"logineffect\",{\"_index\":198,\"name\":{\"318\":{}},\"comment\":{}}],[\"loginfallback\",{\"_index\":200,\"name\":{\"321\":{}},\"comment\":{}}],[\"logout\",{\"_index\":187,\"name\":{\"298\":{},\"305\":{}},\"comment\":{}}],[\"map\",{\"_index\":36,\"name\":{\"37\":{},\"51\":{},\"159\":{},\"177\":{},\"181\":{},\"185\":{},\"192\":{},\"390\":{}},\"comment\":{}}],[\"mapanchor\",{\"_index\":139,\"name\":{\"231\":{}},\"comment\":{}}],[\"mapanchorposition\",{\"_index\":135,\"name\":{\"225\":{}},\"comment\":{}}],[\"mapanchorprops\",{\"_index\":70,\"name\":{\"95\":{}},\"comment\":{}}],[\"mapconfig\",{\"_index\":79,\"name\":{\"103\":{}},\"comment\":{}}],[\"mapconfigprovider\",{\"_index\":84,\"name\":{\"108\":{}},\"comment\":{}}],[\"mapcontainer\",{\"_index\":140,\"name\":{\"232\":{}},\"comment\":{}}],[\"mapcontainerprops\",{\"_index\":87,\"name\":{\"111\":{}},\"comment\":{}}],[\"mapid\",{\"_index\":85,\"name\":{\"109\":{},\"117\":{},\"338\":{},\"345\":{},\"354\":{},\"360\":{},\"364\":{},\"378\":{},\"394\":{}},\"comment\":{}}],[\"mapmodel\",{\"_index\":93,\"name\":{\"121\":{}},\"comment\":{}}],[\"mapmodelevents\",{\"_index\":98,\"name\":{\"128\":{}},\"comment\":{}}],[\"mappadding\",{\"_index\":101,\"name\":{\"133\":{}},\"comment\":{}}],[\"mapregistry\",{\"_index\":106,\"name\":{\"138\":{}},\"comment\":{}}],[\"maxconcurrentrequests\",{\"_index\":245,\"name\":{\"388\":{}},\"comment\":{}}],[\"measurement\",{\"_index\":235,\"name\":{\"379\":{}},\"comment\":{}}],[\"measurementprops\",{\"_index\":232,\"name\":{\"373\":{}},\"comment\":{}}],[\"message\",{\"_index\":161,\"name\":{\"261\":{}},\"comment\":{}}],[\"name\",{\"_index\":132,\"name\":{\"219\":{}},\"comment\":{}}],[\"navigation\",{\"_index\":223,\"name\":{\"356\":{}},\"comment\":{}}],[\"noinitialview\",{\"_index\":151,\"name\":{\"249\":{}},\"comment\":{}}],[\"noprojection\",{\"_index\":152,\"name\":{\"250\":{}},\"comment\":{}}],[\"notificationlevel\",{\"_index\":166,\"name\":{\"268\":{}},\"comment\":{}}],[\"notificationoptions\",{\"_index\":158,\"name\":{\"258\":{}},\"comment\":{}}],[\"notificationservice\",{\"_index\":162,\"name\":{\"263\":{}},\"comment\":{}}],[\"notifier\",{\"_index\":167,\"name\":{\"269\":{}},\"comment\":{}}],[\"notifierprops\",{\"_index\":165,\"name\":{\"266\":{}},\"comment\":{}}],[\"notify\",{\"_index\":164,\"name\":{\"265\":{}},\"comment\":{}}],[\"ogcfeaturesourceoptions\",{\"_index\":238,\"name\":{\"381\":{}},\"comment\":{}}],[\"ollayer\",{\"_index\":37,\"name\":{\"38\":{},\"149\":{},\"193\":{},\"395\":{}},\"comment\":{}}],[\"olmap\",{\"_index\":96,\"name\":{\"126\":{}},\"comment\":{}}],[\"olmapoptions\",{\"_index\":110,\"name\":{\"142\":{}},\"comment\":{}}],[\"open\",{\"_index\":0,\"name\":{\"0\":{},\"14\":{},\"240\":{},\"257\":{},\"270\":{},\"292\":{},\"334\":{},\"341\":{},\"347\":{},\"356\":{},\"372\":{},\"380\":{},\"390\":{}},\"comment\":{}}],[\"overviewmap\",{\"_index\":249,\"name\":{\"396\":{}},\"comment\":{}}],[\"overviewmapprops\",{\"_index\":248,\"name\":{\"391\":{}},\"comment\":{}}],[\"parent\",{\"_index\":117,\"name\":{\"160\":{}},\"comment\":{}}],[\"parentlayer\",{\"_index\":118,\"name\":{\"161\":{}},\"comment\":{}}],[\"pioneer/authentication\",{\"_index\":182,\"name\":{\"292\":{}},\"comment\":{}}],[\"pioneer/basemap\",{\"_index\":218,\"name\":{\"347\":{}},\"comment\":{}}],[\"pioneer/coordinate\",{\"_index\":210,\"name\":{\"334\":{}},\"comment\":{}}],[\"pioneer/experimental\",{\"_index\":1,\"name\":{\"0\":{}},\"comment\":{}}],[\"pioneer/map\",{\"_index\":15,\"name\":{\"14\":{},\"240\":{},\"356\":{}},\"comment\":{}}],[\"pioneer/measurement\",{\"_index\":231,\"name\":{\"372\":{}},\"comment\":{}}],[\"pioneer/notifier\",{\"_index\":157,\"name\":{\"257\":{}},\"comment\":{}}],[\"pioneer/ogc\",{\"_index\":236,\"name\":{\"380\":{}},\"comment\":{}}],[\"pioneer/overview\",{\"_index\":247,\"name\":{\"390\":{}},\"comment\":{}}],[\"pioneer/react\",{\"_index\":168,\"name\":{\"270\":{}},\"comment\":{}}],[\"pioneer/scale\",{\"_index\":215,\"name\":{\"341\":{}},\"comment\":{}}],[\"position\",{\"_index\":76,\"name\":{\"100\":{},\"267\":{}},\"comment\":{}}],[\"precision\",{\"_index\":213,\"name\":{\"339\":{}},\"comment\":{}}],[\"projection\",{\"_index\":83,\"name\":{\"107\":{},\"251\":{}},\"comment\":{}}],[\"projectiondefinition\",{\"_index\":136,\"name\":{\"226\":{}},\"comment\":{}}],[\"prototype\",{\"_index\":115,\"name\":{\"154\":{},\"214\":{}},\"comment\":{}}],[\"registerprojections\",{\"_index\":142,\"name\":{\"234\":{}},\"comment\":{}}],[\"removelayerbyid\",{\"_index\":65,\"name\":{\"83\":{}},\"comment\":{}}],[\"renderfallback\",{\"_index\":197,\"name\":{\"316\":{}},\"comment\":{}}],[\"right\",{\"_index\":104,\"name\":{\"136\":{}},\"comment\":{}}],[\"role\",{\"_index\":90,\"name\":{\"118\":{}},\"comment\":{}}],[\"scaleviewer\",{\"_index\":217,\"name\":{\"346\":{}},\"comment\":{}}],[\"scaleviewerprops\",{\"_index\":216,\"name\":{\"342\":{}},\"comment\":{}}],[\"sectionheading\",{\"_index\":176,\"name\":{\"285\":{}},\"comment\":{}}],[\"sectionheadingprops\",{\"_index\":171,\"name\":{\"277\":{}},\"comment\":{}}],[\"sessioninfo\",{\"_index\":192,\"name\":{\"308\":{},\"324\":{}},\"comment\":{}}],[\"setdescription\",{\"_index\":42,\"name\":{\"43\":{},\"56\":{},\"166\":{},\"199\":{}},\"comment\":{}}],[\"settitle\",{\"_index\":43,\"name\":{\"44\":{},\"57\":{},\"167\":{},\"200\":{}},\"comment\":{}}],[\"setupmap\",{\"_index\":154,\"name\":{\"254\":{}},\"comment\":{}}],[\"setvisible\",{\"_index\":44,\"name\":{\"45\":{},\"58\":{},\"168\":{},\"201\":{}},\"comment\":{}}],[\"sidebar\",{\"_index\":3,\"name\":{\"0\":{},\"13\":{}},\"comment\":{}}],[\"sidebaritem\",{\"_index\":4,\"name\":{\"1\":{}},\"comment\":{}}],[\"sidebarproperties\",{\"_index\":9,\"name\":{\"6\":{}},\"comment\":{}}],[\"sidebarwidthchanged\",{\"_index\":14,\"name\":{\"11\":{}},\"comment\":{}}],[\"simplelayer\",{\"_index\":137,\"name\":{\"227\":{},\"229\":{}},\"comment\":{}}],[\"simplelayerconfig\",{\"_index\":112,\"name\":{\"144\":{}},\"comment\":{}}],[\"simplelayerconstructor\",{\"_index\":113,\"name\":{\"152\":{}},\"comment\":{}}],[\"simplemapoptions\",{\"_index\":150,\"name\":{\"241\":{}},\"comment\":{}}],[\"sortbydisplayorder\",{\"_index\":69,\"name\":{\"94\":{}},\"comment\":{}}],[\"sourceoptions\",{\"_index\":129,\"name\":{\"207\":{}},\"comment\":{}}],[\"stopevents\",{\"_index\":77,\"name\":{\"101\":{}},\"comment\":{}}],[\"sublayer\",{\"_index\":116,\"name\":{\"155\":{}},\"comment\":{}}],[\"sublayers\",{\"_index\":38,\"name\":{\"39\":{},\"52\":{},\"162\":{},\"194\":{},\"208\":{},\"220\":{}},\"comment\":{}}],[\"sublayerscollection\",{\"_index\":119,\"name\":{\"170\":{}},\"comment\":{}}],[\"sublayerscollectionevents\",{\"_index\":121,\"name\":{\"172\":{}},\"comment\":{}}],[\"substituteheadinglevel\",{\"_index\":173,\"name\":{\"281\":{}},\"comment\":{}}],[\"switcher\",{\"_index\":219,\"name\":{\"347\":{}},\"comment\":{}}],[\"test\",{\"_index\":148,\"name\":{\"240\":{}},\"comment\":{}}],[\"testid\",{\"_index\":74,\"name\":{\"98\":{},\"116\":{},\"273\":{},\"337\":{},\"344\":{},\"353\":{},\"359\":{},\"363\":{},\"376\":{},\"393\":{}},\"comment\":{}}],[\"title\",{\"_index\":39,\"name\":{\"40\":{},\"53\":{},\"64\":{},\"91\":{},\"150\":{},\"163\":{},\"195\":{},\"209\":{},\"221\":{},\"262\":{},\"282\":{}},\"comment\":{}}],[\"titledsection\",{\"_index\":177,\"name\":{\"286\":{}},\"comment\":{}}],[\"titledsectionprops\",{\"_index\":172,\"name\":{\"279\":{}},\"comment\":{}}],[\"top\",{\"_index\":105,\"name\":{\"137\":{}},\"comment\":{}}],[\"updateattributes\",{\"_index\":45,\"name\":{\"46\":{},\"59\":{},\"169\":{},\"202\":{}},\"comment\":{}}],[\"url\",{\"_index\":127,\"name\":{\"196\":{},\"210\":{}},\"comment\":{}}],[\"useauthstate\",{\"_index\":209,\"name\":{\"333\":{}},\"comment\":{}}],[\"usecenter\",{\"_index\":143,\"name\":{\"235\":{}},\"comment\":{}}],[\"usecommoncomponentprops\",{\"_index\":178,\"name\":{\"287\":{}},\"comment\":{}}],[\"useevent\",{\"_index\":180,\"name\":{\"290\":{}},\"comment\":{}}],[\"useheadinglevel\",{\"_index\":181,\"name\":{\"291\":{}},\"comment\":{}}],[\"usemapmodel\",{\"_index\":144,\"name\":{\"236\":{}},\"comment\":{}}],[\"usemapmodelloading\",{\"_index\":122,\"name\":{\"174\":{}},\"comment\":{}}],[\"usemapmodelrejected\",{\"_index\":124,\"name\":{\"178\":{}},\"comment\":{}}],[\"usemapmodelresolved\",{\"_index\":125,\"name\":{\"182\":{}},\"comment\":{}}],[\"usemapmodelresult\",{\"_index\":138,\"name\":{\"228\":{}},\"comment\":{}}],[\"useprojection\",{\"_index\":145,\"name\":{\"237\":{}},\"comment\":{}}],[\"useresolution\",{\"_index\":146,\"name\":{\"238\":{}},\"comment\":{}}],[\"userid\",{\"_index\":203,\"name\":{\"327\":{}},\"comment\":{}}],[\"username\",{\"_index\":204,\"name\":{\"328\":{}},\"comment\":{}}],[\"usescale\",{\"_index\":147,\"name\":{\"239\":{}},\"comment\":{}}],[\"utils\",{\"_index\":149,\"name\":{\"240\":{},\"270\":{}},\"comment\":{}}],[\"verticalgap\",{\"_index\":78,\"name\":{\"102\":{}},\"comment\":{}}],[\"view\",{\"_index\":111,\"name\":{\"143\":{}},\"comment\":{}}],[\"viewer\",{\"_index\":211,\"name\":{\"334\":{},\"341\":{}},\"comment\":{}}],[\"viewpadding\",{\"_index\":91,\"name\":{\"119\":{}},\"comment\":{}}],[\"viewpaddingchangebehavior\",{\"_index\":92,\"name\":{\"120\":{}},\"comment\":{}}],[\"visible\",{\"_index\":40,\"name\":{\"41\":{},\"54\":{},\"65\":{},\"92\":{},\"151\":{},\"164\":{},\"197\":{},\"211\":{},\"222\":{}},\"comment\":{}}],[\"waitforinitialextent\",{\"_index\":155,\"name\":{\"255\":{}},\"comment\":{}}],[\"waitformapmount\",{\"_index\":156,\"name\":{\"256\":{}},\"comment\":{}}],[\"whendisplayed\",{\"_index\":97,\"name\":{\"127\":{}},\"comment\":{}}],[\"wmslayer\",{\"_index\":126,\"name\":{\"186\":{},\"230\":{}},\"comment\":{}}],[\"wmslayerconfig\",{\"_index\":128,\"name\":{\"203\":{}},\"comment\":{}}],[\"wmslayerconstructor\",{\"_index\":130,\"name\":{\"212\":{}},\"comment\":{}}],[\"wmssublayerconfig\",{\"_index\":131,\"name\":{\"215\":{}},\"comment\":{}}],[\"x\",{\"_index\":17,\"name\":{\"16\":{},\"245\":{}},\"comment\":{}}],[\"xmax\",{\"_index\":21,\"name\":{\"20\":{}},\"comment\":{}}],[\"xmin\",{\"_index\":22,\"name\":{\"21\":{}},\"comment\":{}}],[\"y\",{\"_index\":18,\"name\":{\"17\":{},\"246\":{}},\"comment\":{}}],[\"ymax\",{\"_index\":23,\"name\":{\"22\":{}},\"comment\":{}}],[\"ymin\",{\"_index\":24,\"name\":{\"23\":{}},\"comment\":{}}],[\"z\",{\"_index\":19,\"name\":{\"18\":{}},\"comment\":{}}],[\"zoom\",{\"_index\":30,\"name\":{\"30\":{},\"252\":{},\"369\":{}},\"comment\":{}}],[\"zoomdirection\",{\"_index\":226,\"name\":{\"365\":{}},\"comment\":{}}],[\"zoomin\",{\"_index\":229,\"name\":{\"370\":{}},\"comment\":{}}],[\"zoominprops\",{\"_index\":227,\"name\":{\"366\":{}},\"comment\":{}}],[\"zoomout\",{\"_index\":230,\"name\":{\"371\":{}},\"comment\":{}}],[\"zoomoutprops\",{\"_index\":228,\"name\":{\"367\":{}},\"comment\":{}}],[\"zoomprops\",{\"_index\":225,\"name\":{\"361\":{}},\"comment\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file diff --git a/openlayers-base-packages/docs/functions/_open_pioneer_authentication.ForceAuth.html b/openlayers-base-packages/docs/functions/_open_pioneer_authentication.ForceAuth.html index f0b850ca1..3daf0ca55 100644 --- a/openlayers-base-packages/docs/functions/_open_pioneer_authentication.ForceAuth.html +++ b/openlayers-base-packages/docs/functions/_open_pioneer_authentication.ForceAuth.html @@ -88,7 +88,8 @@

Theme