1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f0bbae8a-30ab-46af-98c3-7bebb1a2533b",e._sentryDebugIdIdentifier="sentry-dbid-f0bbae8a-30ab-46af-98c3-7bebb1a2533b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8833],{11322:function(){},79958:function(){},68378:function(e,t,r){"use strict";r.d(t,{$Z:function(){return z},JS:function(){return I},K_:function(){return O},Ko:function(){return T},O0:function(){return L},PE:function(){return A},RX:function(){return N},Sx:function(){return S},Zr:function(){return k},he:function(){return P},rO:function(){return E},z7:function(){return j}});var o,n=r(2265),i=r(87748),l=r(57437),s=r(54887);function a(e,t){let r={},o={};for(let n in e){if(null==t?void 0:t.includes(n)){o[n]=e[n];continue}if(n.startsWith("on"))r[n]=e[n];else{let t=n.startsWith("initial")?n[7].toLowerCase()+n.substring(8):n;if(o[t])throw Error("duplicate key ".concat(t));o[t]=e[n]}}return[o,r]}function u(e,t){return Object.keys(e).filter(r=>e[r]in t).sort()}function c(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!c(e[r],t[r]))return!1;return!0}if(Array.isArray(t))return!1;if("object"==typeof e&&"object"==typeof t){let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let o of r)if(!Object.prototype.hasOwnProperty.call(t,o)||!c(e[o],t[o]))return!1;return!0}return!1}function d(e,t,r){t.forEach(t=>{""!==t&&-1===r.indexOf(t)&&e.classList.remove(t)}),r.forEach(r=>{""===r||-1!==t.indexOf(r)&&e.classList.contains(r)||e.classList.add(r)})}let h={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mouseout:"onMouseOut",mousemove:"onMouseMove",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",click:"onClick",dblclick:"onDblClick",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchcancel:"onTouchCancel",touchmove:"onTouchMove",movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd",wheel:"onWheel",resize:"onResize",remove:"onRemove",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",webglcontextlost:"onWebglContextLost",webglcontextrestored:"onWebglContextRestored",load:"onLoad",render:"onRender",idle:"onIdle",error:"onError",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",dataloading:"onDataLoading",styledataloading:"onStyleDataLoading",sourcedataloading:"onSourceDataLoading",tiledataloading:"onTileDataLoading",styleimagemissing:"onStyleImageMissing",dataabort:"onDataAbort",sourcedataabort:"onSourceDataAbort",terrain:"onTerrain"},f=["maxBounds","minZoom","maxZoom","minPitch","maxPitch","renderWorldCopies","pixelRatio","centerClampedToGround"],p=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch","cooperativeGestures"],m="https://demotiles.maplibre.org/style.json";var y=class{setProps(e,t){let{mapStyle:r=m,styleDiffing:o=!0,styleTransformStyle:n,padding:i}=e,[l,s,a]=function(e){let t={},r={},o={};for(let n in e)if(n.startsWith("on"))t[n]=e[n];else if(p.includes(n))r[n]=e[n];else if(f.includes(n))o[n]=e[n];else if(!n.startsWith("initial")&&"container"!==n&&"style"!==n)throw Error("unknown map option key ".concat(n));return[o,t,r]}(t);this._updateCallbacks(s),this._updateStyle(r,{diff:o,transformStyle:n}),this._updateReactiveOptions(l,{padding:i}),this._updateHandlers(a)}getControlledTerrain(){return this.controlledTerrain}setControlledTerrain(e){this.controlledTerrain=e}getControlledLayer(e){var t;return null!==(t=this.controlledLayers[e])&&void 0!==t?t:null}setControlledLayer(e,t){t?this.controlledLayers[e]=t:delete this.controlledLayers[e]}getControlledSource(e){var t;return null!==(t=this.controlledSources[e])&&void 0!==t?t:null}setControlledSource(e,t){t?this.controlledSources[e]=t:delete this.controlledSources[e]}_updateStyle(e,t){e!==this.mapStyle&&(this.mapStyle=e,this._map.setStyle(e,{diff:t.diff,transformStyle:(e,r)=>{let o=e?Object.fromEntries(Object.entries(null==e?void 0:e.sources).filter(e=>{let[t]=e;return t in this.controlledSources})):{},n=e?e.layers.filter(e=>e.id in this.controlledLayers):[],i={...r,sources:{...r.sources,...o},layers:[...r.layers,...n],terrain:this.controlledTerrain?null==e?void 0:e.terrain:r.terrain};return t.transformStyle?t.transformStyle(e,i):i}}))}_updateReactiveOptions(e,t){let{padding:r}=t,o=this.reactiveOptions;for(let t of(this.reactiveOptions=e,f))if(t in e&&!c(o[t],e[t])){let r="set".concat(t[0].toUpperCase()).concat(t.substring(1));this._map[r](e[t])}r&&!c(this.padding,r)&&this._map.setPadding(r),this.padding=r}_updateCallbacks(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.callbacks=e;let t=u(h,e);if(this.eventNames.join("-")!==t.join("-")){var r,o,n;r=this.eventNames,o=e=>this._map.on(e,this._onMapEvent),n=e=>
1this._map.off(e,this._onMapEvent),r.forEach(e=>{""!==e&&-1===t.indexOf(e)&&n(e)}),t.forEach(e=>{""!==e&&-1===r.indexOf(e)&&o(e)}),this.eventNames=t}}_updateHandlers(e){let t=this.handlerOptions;for(let n of(this.handlerOptions=e,p)){var r,o;let i=null===(r=e[n])||void 0===r||r;c(i,null===(o=t[n])||void 0===o||o)||(i?this._map[n].enable(i):this._map[n].disable())}}get map(){return this._map}destroy(){this._updateCallbacks(),this._map.remove()}constructor({mapStyle:e=m,padding:t},r,o){this.reactiveOptions={},this.handlerOptions={},this.eventNames=[],this.controlledSources={},this.controlledLayers={},this.controlledTerrain=null,this._onStyleError=e=>{"AbortError"!==e.error.name&&console.error(e.error)},this._onMapEvent=e=>{var t,r;let o=e.type,n=h[o];this.callbacks[n]?null===(t=(r=this.callbacks)[n])||void 0===t||t.call(r,e):console.info("not managed RMap event",o,e)},this.mapStyle=e,this.padding=t;let[n,l]=a(r);this.callbacks=l;let s={...n,container:o,style:e},u=new i.Map(s);u.style.on("error",this._onStyleError),t&&u.setPadding(t),this._map=u,this._updateCallbacks(l)}};let v="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;var g=class{add(e,t){var r;this._maps[e]=t,null===(r=this._listeners[e])||void 0===r||r.forEach(e=>{let[t,r]=e;t||r(!0)})}remove(e){var t;delete this._maps[e],null===(t=this._listeners[e])||void 0===t||t.forEach(e=>{let[t,r]=e;t&&r(!1)})}get(e){var t;return e&&null!==(t=this._maps[e])&&void 0!==t?t:null}addListener(e,t){this._listeners[e]?this._listeners[e].push(t):this._listeners[e]=[t];let r=!!this._maps[e];t[0]!==r&&t[1](r)}removeListener(e,t){let[,r]=t;this._listeners[e]=this._listeners[e].filter(e=>{let[,t]=e;return t!==r})}constructor(){this._maps={},this._listeners={}}};let b=(0,n.createContext)(null),x=(0,n.createContext)(null),_={height:"100%"},E=(0,n.forwardRef)(function(e,t){let{children:r,style:o,id:i,className:s,onMounted:a,mapStyle:u,styleDiffing:c,styleTransformStyle:d,padding:h,...f}=e,p=(0,n.useRef)(null),m=(0,n.useRef)(!0),E=(0,n.useRef)(null!=i?i:function(){let e="abcdefghijklmnopqrstuvwxyz0123456789",t="";for(let r=0;r<8;r++){let r=Math.floor(Math.random()*e.length);t+=e[r]}return t}());if(i&&i!==E.current)throw Error('RMap id should not change. "'.concat(i,'" "').concat(E.current,'". If you defined id as const string add a "key" prop to your RMap component'));let w=E.current,S=(0,n.useContext)(b),M=(0,n.useRef)(null);S||M.current||(M.current=new g);let L=S?S.current:M.current,[,C]=(0,n.useState)(0);v(()=>{let e=L.get(w);if(e)m.current?e.setProps({mapStyle:u,padding:h,styleDiffing:c,styleTransformStyle:d},f):m.current=!0;else{let e=new y({mapStyle:u,styleDiffing:c,padding:h},f,p.current);L.add(w,e),a&&a(e.map),C(e=>e+1),m.current=!1}}),v(()=>()=>{let e=L.get(w);e&&(e.destroy(),L.remove(w))},[]),(0,n.useImperativeHandle)(t,()=>{var e;return(null===(e=L.get(w))||void 0===e?void 0:e.map)||null},[w,L]),v(()=>{if(!s)return;let e=p.current;return s.split(" ").map(t=>e.classList.add(t)),()=>void s.split(" ").map(t=>e.classList.remove(t))},[s]);let k=(0,n.useMemo)(()=>({position:"relative",width:"100%",height:"100%",...o}),[o]);return(0,l.jsx)("div",{ref:p,id:w,style:k,children:L.get(w)&&(0,l.jsx)(x.Provider,{value:w,children:S?(0,l.jsx)("div",{className:"maplibregl-children",style:_,children:r}):(0,l.jsx)(b.Provider,{value:M,children:(0,l.jsx)("div",{className:"maplibregl-children",style:_,children:r})})})})});function w(e){var t;let r=(0,n.useContext)(b),o=(0,n.useContext)(x),i=null!=e?e:o,l=null!==(t=null==r?void 0:r.current.get(i))&&void 0!==t?t:null,s=(0,n.useState)(null!==l);if(!(null==r?void 0:r.current))throw Error("use useMapManager in components inside <RMap /> or inside <RMapContextProvider />");if(!i)throw Error("provide an id to useMap or use inside <RMap />");return(0,n.useEffect)(()=>{let e=r.current;if(!e)throw Error("mapManagers can't disappear");return e.addListener(i,s),()=>{e.removeListener(i,s)}},[i,r,s,l]),l}function S(e){var t,r;return null!==(r=null===(t=w(e))||void 0===t?void 0:t.map)&&void 0!==r?r:null}let M={dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",click:"onClick"},L=(0,n.memo)((0,n.forwardRef)(function(e,t){var r;let{longitude:o,latitude:l,children:c,...h}=e,f=S(),[p,m]=a(h),y=(0,n.useRef)(p),v=(0,n.useRef)(null);v.current=m;let g=(0,n.useMemo)(()=>{let e={...p,element:c?document.createElement("div"):void 0},t=new i.Marker(e);return t.setLngLat([o,l]),t},[]),b=u(M,m).join("-");(0,n.useEffect)(()=>{function e(e){var t,r,o;let n=e.type,i=M[n];(null===(t=v.current)||void 0===t?void 0:t[i])?null===(r=(o=v.current)[i])||void 0===r||r.call(o,e):console.info("not managed RMarker event",n,e)}let t=b.split("-");return t.forEach(t=>{"click"===t?g.getElement().addEventListener("click",e):g.on(t,e)}),()=>{t.forEach(t=>{"click"===t?g.getElement().removeEventListener("click",e):g.off(t,e)})}},[b,g]),(0,n.useEffect)(()=>(g.addTo(f),()=>void g.remove()),[]);let{className:x,offset:_,draggable:E,clickTolerance:w=0,rotation:L,rotationAlignment:C,subpixelPositioning:k=!1,pitchAlignment:R,opacity:P,opacityWhenCovered:O}
1=p;return(0,n.useImperativeHandle)(t,()=>g,[g]),y.current.className!==x&&d(g._element,(null===(r=y.current.className)||void 0===r?void 0:r.split(" "))||[],(null==x?void 0:x.split(" "))||[]),(g.getLngLat().lng!==o||g.getLngLat().lat!==l)&&g.setLngLat([o,l]),_&&!function(e,t){let r=Array.isArray(e)?e[0]:e?e.x:0,o=Array.isArray(e)?e[1]:e?e.y:0,n=Array.isArray(t)?t[0]:t?t.x:0,i=Array.isArray(t)?t[1]:t?t.y:0;return r===n&&o===i}(g.getOffset(),_)&&g.setOffset(_),g.isDraggable()!==E&&g.setDraggable(E),g._clickTolerance!==w&&(g._clickTolerance=w),g.getRotation()!==L&&g.setRotation(L),g.getRotationAlignment()!==C&&g.setRotationAlignment(C),g.getPitchAlignment()!==R&&g.setPitchAlignment(R),(g._opacity!==P||g._opacityWhenCovered!==O)&&g.setOpacity(P,O),g.setSubpixelPositioning&&g._subpixelPositioning!==k&&g.setSubpixelPositioning(k),y.current=p,c?(0,s.createPortal)(c,g.getElement()):null})),C={map_click:"onMapClick",map_move:"onMapMove"},k=(0,n.memo)((0,n.forwardRef)(function(e,t){let{longitude:r,latitude:o,children:l,...h}=e,f=S(),[p,m]=a(h),y=(0,n.useRef)(null),v=(0,n.useRef)(p),g=(0,n.useRef)(null);g.current=m;let b=(0,n.useMemo)(()=>document.createElement("div"),[]);y.current||(y.current=new i.Popup({...p,closeButton:!1,closeOnClick:!1,closeOnMove:!1}),void 0!==r&&void 0!==o&&y.current.setLngLat([r,o]));let x=u(C,m).join("-");(0,n.useEffect)(()=>{function e(e){var t,r,o;let n=e.type,i=C[n]||C["map_".concat(n)];(null===(t=g.current)||void 0===t?void 0:t[i])?null===(r=(o=g.current)[i])||void 0===r||r.call(o,e):console.info("not managed RPopup event",n,e)}if(""===x)return;let t=x.split("-"),r=y.current;return t.forEach(t=>{t.startsWith("map_")?f.on(t.substring(4),e):r.on(t,e)}),()=>{t.forEach(t=>{t.startsWith("map_")?f.off(t.substring(4),e):r.off(t,e)})}},[x,f]),(0,n.useEffect)(()=>(y.current.setDOMContent(b).addTo(f),()=>void y.current.remove()),[b,f]);let{offset:_,maxWidth:E="240px",className:w}=p;if((0,n.useImperativeHandle)(t,()=>y.current,[y]),y.current.isOpen()){var M;void 0!==r&&void 0!==o&&(y.current.getLngLat().lng!==r||y.current.getLngLat().lat!==o)&&y.current.setLngLat([r,o]),_&&!c(y.current.options.offset,_)&&y.current.setOffset(_),v.current.className!==w&&d(b,(null===(M=v.current.className)||void 0===M?void 0:M.split(" "))||[],(null==w?void 0:w.split(" "))||[]),y.current.getMaxWidth()!==E&&y.current.setMaxWidth(E)}return v.current=p,(0,s.createPortal)(l,b)})),R={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mouseout:"onMouseOut",mousemove:"onMouseMove",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",click:"onClick",dblclick:"onDblClick",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchcancel:"onTouchCancel",touchmove:"onTouchMove"},P=(0,n.memo)((0,n.forwardRef)(function(e,t){var r,o;let{beforeId:i,...l}=e,[s,c]=a(l,["onAdd"]),d=s.id,h=w();if(!h)throw Error("use <RLayer /> component inside <RMap />");let f=h.map,p=(0,n.useRef)(d);if(d!==p.current)throw Error('RLayer id should not change. "'.concat(d,'" "').concat(p.current,'". If you defined id as const string add a "key" prop to your RLayer component'));let m=null!==(o=h.getControlledLayer(d))&&void 0!==o?o:e,[,y]=(0,n.useState)(0),v=(0,n.useCallback)(()=>y(e=>e+1),[]);if(e.type!==m.type)throw Error('RLayer type should not change. "'.concat(e.type,'" "').concat(m.type,'"'));let g=(0,n.useRef)(null);g.current=c,(0,n.useEffect)(()=>(f.on("styledata",v),f.style&&f.style._loaded&&v(),()=>{f.off("styledata",v),f.style&&f.style._loaded&&f.getLayer(d)&&f.removeLayer(d),null==h||h.setControlledLayer(d,null)}),[f,d,h,v]);let b=u(R,c).join("-");(0,n.useEffect)(()=>{function e(e){var t,r,o;let n=e.type,i=R[n];(null===(t=g.current)||void 0===t?void 0:t[i])?null===(r=(o=g.current)[i])||void 0===r||r.call(o,e):console.info("not managed RLayer event",n,e)}let t=b.split("-");return t.forEach(t=>{f.on(t,d,e)}),()=>{t.forEach(t=>{f.off(t,d,e)})}},[b,d,f]);let x=(null===(r=f.style)||void 0===r?void 0:r._loaded)&&f.getLayer(d);return x?function(e,t,r){var o,n;let{beforeId:i,...l}=t,{beforeId:s,...a}=r;if("custom"!==a.type&&"custom"!==l.type){if(s!==i&&e.moveLayer(l.id,i),"background"!==l.type&&"custom"!==l.type&&a.filter!==l.filter&&e.setFilter(l.id,l.filter),a.layout!==l.layout){if(l.layout)for(let t of Object.keys(l.layout))l.layout[t]!==(null===(o=a.layout)||void 0===o?void 0:o[t])&&e.setLayoutProperty(l.id,t,l.layout[t]);for(let t in a.layout)Object.prototype.hasOwnProperty.call(l.layout,t)||e.setLayoutProperty(l.id,t,void 0)}if(a.paint!==l.paint){if(l.paint)for(let t of Object.keys(l.paint))l.paint[t]!==(null===(n=a.paint)||void 0===n?void 0:n[t])&&e.setPaintProperty(l.id,t,l.paint[t]);for(let t in a.paint)Object.prototype.hasOwnProperty.call(l.paint,t)||e.setPaintProperty(l.id,t,void 0)}(a.minzoom!==l.minzoom||a.maxzoom!==l.maxzoom)&&l.minzoom&&l.maxzoom&&e.setLayerZoomRange(l.id,l.minzoom,l.maxzoom)}}(f,e,m):(x=function(e,t,r){var o;if((null===(o=e.style)||void 0===o?void 0:o._loaded)&&("background"===t.type||"custom"===t.type||t.source&&e.getSource(t.source)))return e.addLayer(t,r&&e.getLayer(r)?r:void 0),e.getLayer(t.id)}(f,s,i))&&f.off("styledata",v),(0,n.useImperativeHandle)(t,()=>x||null,[x]),h.setControlledLayer(d,e),null})),O=(0,n.memo)((0,n.forwardRef)(function(e,t){var r,o;let{id:i,...l}=e,s=w(),a=s.map,u=(0,n.useRef)(i);if(i!==u.current)throw Error('RSource id should not change. "'.concat(i,'" "').concat(u.current,'". If you defined id as const string add a "key" prop to your RSource component'));let{id:c,...d}=null!==(o=s.getControlledSource(i))&&void 0!==o?o:e;if(l.type!==d.type)throw Error('RSource type should not change. "'.concat(l.type,'" "').concat(d.type,'"'));
1let[,h]=(0,n.useState)(0),f=(0,n.useCallback)(()=>void setTimeout(()=>h(e=>e+1),0),[]);(0,n.useEffect)(()=>(a.on("styledata",f),a.style&&a.style._loaded&&f(),()=>{if(a.off("styledata",f),a.style&&a.getSource(i)){var e;let t=null===(e=a.getStyle())||void 0===e?void 0:e.layers;if(t)for(let e of t)"background"!==e.type&&"custom"!==e.type&&e.source===i&&a.removeLayer(e.id);a.removeSource(i)}null==s||s.setControlledSource(i,null)}),[a,i,s,f]);let p=(null===(r=a.style)||void 0===r?void 0:r._loaded)&&a.getSource(i);return p?function(e,t,r){switch(t.type){case"image":r.url!==t.url&&e.updateImage({url:t.url,coordinates:t.coordinates}),r.coordinates!==t.coordinates&&e.setCoordinates(t.coordinates);break;case"video":r.coordinates!==t.coordinates&&e.setCoordinates(t.coordinates);break;case"geojson":r.data!==t.data&&e.setData(t.data),(r.cluster!==t.cluster||r.clusterMaxZoom!==t.clusterMaxZoom||r.clusterRadius!==t.clusterRadius)&&e.setClusterOptions({cluster:t.cluster,clusterMaxZoom:t.clusterMaxZoom,clusterRadius:t.clusterRadius});break;case"raster":case"raster-dem":case"vector":r.tiles!==t.tiles&&t.tiles&&e.setTiles(t.tiles),r.url!==t.url&&t.url&&e.setUrl(t.url)}}(p,l,d):(p=function(e,t,r){var o;if(null===(o=e.style)||void 0===o?void 0:o._loaded)return e.addSource(t,r),e.getSource(t)}(a,i,l))&&a.off("styledata",f),(0,n.useImperativeHandle)(t,()=>p||null,[p]),s.setControlledSource(i,e),null}));function D(e,t){this.x=e,this.y=t}function T(e){var t;let{position:r,className:o="maplibregl-ctrl maplibregl-ctrl-group"}=e,i=S(),l=(0,n.useRef)(null),s=(0,n.useRef)({className:o});if(!l.current){let e=document.createElement("div");e.className=o,l.current=e}return(0,n.useEffect)(()=>{let e=l.current;if(e&&!e.parentElement){let t=i._controlPositions[r];if(!t)throw Error("Unable to add control, position ".concat(r," doesn't exists"));-1!==r.indexOf("bottom")?t.insertBefore(e,t.firstChild):t.appendChild(e)}return()=>{l.current&&l.current.remove()}},[i,r]),s.current.className!==o&&d(l.current,(null===(t=s.current.className)||void 0===t?void 0:t.split(" "))||[],(null==o?void 0:o.split(" "))||[]),s.current={className:o},{container:l.current}}function A(e){let{position:t="top-right",factory:r,onRemove:o}=e,i=S(),l=(0,n.useMemo)(()=>r(i),[i]),s=function(e){let t=(0,n.useRef)(()=>{throw Error("Cannot call an event handler while rendering.")});return t.current=e,(0,n.useCallback)(function(){for(var e,r=arguments.length,o=Array(r),n=0;n<r;n++)o[n]=arguments[n];return null===(e=t.current)||void 0===e?void 0:e.call(t,...o)},[t])}(o||null);return(0,n.useEffect)(()=>(i.hasControl(l)||i.addControl(l,t),()=>{s&&s(i),i.hasControl(l)&&i.removeControl(l)}),[i,l,s,t]),l}D.prototype={clone(){return new D(this.x,this.y)},add(e){return this.clone()._add(e)},sub(e){return this.clone()._sub(e)},multByPoint(e){return this.clone()._multByPoint(e)},divByPoint(e){return this.clone()._divByPoint(e)},mult(e){return this.clone()._mult(e)},div(e){return this.clone()._div(e)},rotate(e){return this.clone()._rotate(e)},rotateAround(e,t){return this.clone()._rotateAround(e,t)},matMult(e){return this.clone()._matMult(e)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(e){return this.x===e.x&&this.y===e.y},dist(e){return Math.sqrt(this.distSqr(e))},distSqr(e){let t=e.x-this.x,r=e.y-this.y;return t*t+r*r},angle(){return Math.atan2(this.y,this.x)},angleTo(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith(e){return this.angleWithSep(e.x,e.y)},angleWithSep(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult(e){let t=e[0]*this.x+e[1]*this.y,r=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=r,this},_add(e){return this.x+=e.x,this.y+=e.y,this},_sub(e){return this.x-=e.x,this.y-=e.y,this},_mult(e){return this.x*=e,this.y*=e,this},_div(e){return this.x/=e,this.y/=e,this},_multByPoint(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint(e){return this.x/=e.x,this.y/=e.y,this},_unit(){return this._div(this.mag()),this},_perp(){let e=this.y;return this.y=this.x,this.x=-e,this},_rotate(e){let t=Math.cos(e),r=Math.sin(e),o=t*this.x-r*this.y,n=r*this.x+t*this.y;return this.x=o,this.y=n,this}
1,_rotateAround(e,t){let r=Math.cos(e),o=Math.sin(e),n=t.x+r*(this.x-t.x)-o*(this.y-t.y),i=t.y+o*(this.x-t.x)+r*(this.y-t.y);return this.x=n,this.y=i,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:D},D.convert=function(e){if(e instanceof D)return e;if(Array.isArray(e))return new D(+e[0],+e[1]);if(void 0!==e.x&&void 0!==e.y)return new D(+e.x,+e.y);throw Error("Expected [x, y] or {x, y} point format")},(o=class e{static testProp(t){if(!e.docStyle)return t[0];for(let r=0;r<t.length;r++)if(t[r]in e.docStyle)return t[r];return t[0]}static create(e,t,r){let o=window.document.createElement(e);return void 0!==t&&(o.className=t),r&&r.appendChild(o),o}static createNS(e,t){return window.document.createElementNS(e,t)}static disableDrag(){e.docStyle&&e.selectProp&&(e.userSelect=e.docStyle[e.selectProp],e.docStyle[e.selectProp]="none")}static enableDrag(){e.docStyle&&e.selectProp&&(e.docStyle[e.selectProp]=e.userSelect)}static setTransform(t,r){t.style[e.transformProp]=r}static addEventListener(e,t,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"passive"in o?e.addEventListener(t,r,o):e.addEventListener(t,r,o.capture)}static removeEventListener(e,t,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"passive"in o?e.removeEventListener(t,r,o):e.removeEventListener(t,r,o.capture)}static suppressClickInternal(t){t.preventDefault(),t.stopPropagation(),window.removeEventListener("click",e.suppressClickInternal,!0)}static suppressClick(){window.addEventListener("click",e.suppressClickInternal,!0),window.setTimeout(()=>{window.removeEventListener("click",e.suppressClickInternal,!0)},0)}static getScale(e){let t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}static getPoint(e,t,r){let o=t.boundingClientRect;return new D((r.clientX-o.left)/t.x-e.clientLeft,(r.clientY-o.top)/t.y-e.clientTop)}static mousePos(t,r){let o=e.getScale(t);return e.getPoint(t,o,r)}static touchPos(t,r){let o=[],n=e.getScale(t);for(let i=0;i<r.length;i++)o.push(e.getPoint(t,n,r[i]));return o}static mouseButton(e){return e.button}static remove(e){e.parentNode&&e.parentNode.removeChild(e)}}).docStyle="undefined"!=typeof window&&window.document&&window.document.documentElement.style,o.selectProp=o.testProp(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]),o.transformProp=o.testProp(["transform","WebkitTransform"]),i.Marker;let I=(0,n.memo)((0,n.forwardRef)(function(e,t){let{position:r="top-right",...o}=e,l=A({position:r,factory:()=>new i.FullscreenControl(o)});return(0,n.useImperativeHandle)(t,()=>l),null})),j=(0,n.memo)((0,n.forwardRef)(function(e,t){let{position:r="top-right",...o}=e,l=A({position:r,factory:()=>new i.GeolocateControl(o)});return(0,n.useImperativeHandle)(t,()=>l),null})),N=(0,n.memo)((0,n.forwardRef)(function(e,t){let{position:r="top-right",...o}=e,l=A({position:r,factory:()=>new i.NavigationControl(o)});return(0,n.useImperativeHandle)(t,()=>l),null})),z=(0,n.memo)((0,n.forwardRef)(function(e,t){let{position:r="bottom-left",...o}=e,l=A({position:r,factory:()=>new i.ScaleControl(o)});return(0,n.useImperativeHandle)(t,()=>l),null}))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.