@performant-software/geospatial 2.3.12-beta.1 → 2.3.12-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +2 -0
- package/build/index.js.map +1 -0
- package/build/main.css +127 -0
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs228.js +1 -1
- package/dist/index.cjs233.js +1 -1
- package/dist/index.cjs233.js.map +1 -1
- package/dist/index.cjs234.js +1 -1
- package/dist/index.cjs234.js.map +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs235.js.map +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs236.js.map +1 -1
- package/dist/index.cjs237.js +1 -1
- package/dist/index.cjs237.js.map +1 -1
- package/dist/index.cjs245.js +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs250.js +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs258.js.map +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs259.js.map +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs6.js.map +1 -1
- package/dist/index.cjs60.js +1 -9
- package/dist/index.cjs60.js.map +1 -1
- package/dist/index.cjs61.js +1 -19
- package/dist/index.cjs61.js.map +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs63.js +9 -1
- package/dist/index.cjs63.js.map +1 -1
- package/dist/index.cjs64.js +19 -1
- package/dist/index.cjs64.js.map +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs65.js.map +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs66.js.map +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs67.js.map +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs68.js.map +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs69.js.map +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs70.js.map +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs71.js.map +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs72.js.map +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs73.js.map +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs75.js.map +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs77.js.map +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs79.js.map +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs80.js.map +1 -1
- package/dist/index.es14.js +2 -2
- package/dist/index.es15.js +8 -8
- package/dist/index.es16.js +1 -1
- package/dist/index.es17.js +3 -3
- package/dist/index.es19.js +2 -2
- package/dist/index.es198.js +2 -2
- package/dist/index.es208.js +1 -1
- package/dist/index.es209.js +1 -1
- package/dist/index.es21.js +2 -2
- package/dist/index.es210.js +1 -1
- package/dist/index.es22.js +2 -2
- package/dist/index.es228.js +1 -1
- package/dist/index.es233.js +3 -46
- package/dist/index.es233.js.map +1 -1
- package/dist/index.es234.js +5 -22
- package/dist/index.es234.js.map +1 -1
- package/dist/index.es235.js +8 -3
- package/dist/index.es235.js.map +1 -1
- package/dist/index.es236.js +44 -6
- package/dist/index.es236.js.map +1 -1
- package/dist/index.es237.js +22 -5
- package/dist/index.es237.js.map +1 -1
- package/dist/index.es245.js +1 -1
- package/dist/index.es249.js +1 -1
- package/dist/index.es250.js +2 -2
- package/dist/index.es258.js +4 -70
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +70 -4
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es26.js +1 -1
- package/dist/index.es52.js +4 -4
- package/dist/index.es59.js +6 -2
- package/dist/index.es59.js.map +1 -1
- package/dist/index.es6.js +4 -4
- package/dist/index.es6.js.map +1 -1
- package/dist/index.es60.js +2 -30
- package/dist/index.es60.js.map +1 -1
- package/dist/index.es61.js +2 -602
- package/dist/index.es61.js.map +1 -1
- package/dist/index.es62.js +2 -6
- package/dist/index.es62.js.map +1 -1
- package/dist/index.es63.js +30 -2
- package/dist/index.es63.js.map +1 -1
- package/dist/index.es64.js +601 -106
- package/dist/index.es64.js.map +1 -1
- package/dist/index.es65.js +107 -10
- package/dist/index.es65.js.map +1 -1
- package/dist/index.es66.js +10 -2
- package/dist/index.es66.js.map +1 -1
- package/dist/index.es67.js +27 -54
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js +56 -47
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js +46 -37
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es70.js +38 -11
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +10 -13
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +14 -29
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +29 -14
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +13 -12
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +13 -12
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +51 -2
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +65 -2
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +10 -27
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +2 -51
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es80.js +2 -65
- package/dist/index.es80.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/LocationMarkers.js +2 -2
- package/types/components/LocationMarker.js.flow +82 -0
- package/types/components/LocationMarkers.js.flow +2 -2
package/dist/index.cjs198.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const d=require("./index.
|
|
1
|
+
"use strict";const d=require("./index.cjs236.js"),p=require("./index.cjs237.js"),u=require("./index.cjs203.js"),_={version:8,sources:{},layers:[]},v={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},f={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"},g={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},y=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],S=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class m{constructor(e,o,n){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=t=>{const r=this.props[g[t.type]];r?r(t):t.type==="error"&&console.error(t.error)},this._onPointerEvent=t=>{(t.type==="mousemove"||t.type==="mouseout")&&this._updateHover(t);const r=this.props[v[t.type]];r&&(this.props.interactiveLayerIds&&t.type!=="mouseover"&&t.type!=="mouseout"&&(t.features=this._hoveredFeatures||this._queryRenderedFeatures(t.point)),r(t),delete t.features)},this._onCameraEvent=t=>{if(!this._internalUpdate){const r=this.props[f[t.type]];r&&r(t)}t.type in this._deferredEvents&&(this._deferredEvents[t.type]=!1)},this._MapClass=e,this.props=o,this._initialize(n)}get map(){return this._map}get transform(){return this._renderTransform}setProps(e){const o=this.props;this.props=e;const n=this._updateSettings(e,o);n&&this._createShadowTransform(this._map);const t=this._updateSize(e),r=this._updateViewState(e,!0);this._updateStyle(e,o),this._updateStyleComponents(e,o),this._updateHandlers(e,o),(n||t||r&&!this._map.isMoving())&&this.redraw()}static reuse(e,o){const n=m.savedMaps.pop();if(!n)return null;const t=n.map,r=t.getContainer();for(o.className=r.className;r.childNodes.length>0;)o.appendChild(r.childNodes[0]);t._container=o;const s=t._resizeObserver;s&&(s.disconnect(),s.observe(o)),n.setProps({...e,styleDiffing:!1}),t.resize();const{initialViewState:i}=e;return i&&(i.bounds?t.fitBounds(i.bounds,{...i.fitBoundsOptions,duration:0}):n._updateViewState(i,!1)),t.isStyleLoaded()?t.fire("load"):t.once("styledata",()=>t.fire("load")),t._update(),n}_initialize(e){const{props:o}=this,{mapStyle:n=_}=o,t={...o,...o.initialViewState,accessToken:o.mapboxAccessToken||E()||null,container:e,style:p.normalizeStyle(n)},r=t.initialViewState||t.viewState||t;if(Object.assign(t,{center:[r.longitude||0,r.latitude||0],zoom:r.zoom||0,pitch:r.pitch||0,bearing:r.bearing||0}),o.gl){const a=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=a,o.gl)}const s=new this._MapClass(t);r.padding&&s.setPadding(r.padding),o.cursor&&(s.getCanvas().style.cursor=o.cursor),this._createShadowTransform(s);const i=s._render;s._render=a=>{this._inRender=!0,i.call(s,a),this._inRender=!1};const c=s._renderTaskQueue.run;s._renderTaskQueue.run=a=>{c.call(s._renderTaskQueue,a),this._onBeforeRepaint()},s.on("render",()=>this._onAfterRepaint());const h=s.fire;s.fire=this._fireEvent.bind(this,h),s.on("resize",()=>{this._renderTransform.resize(s.transform.width,s.transform.height)}),s.on("styledata",()=>{this._updateStyleComponents(this.props,{}),d.syncProjection(s.transform,this._renderTransform)}),s.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const a in v)s.on(a,this._onPointerEvent);for(const a in f)s.on(a,this._onCameraEvent);for(const a in g)s.on(a,this._onEvent);this._map=s}recycle(){const o=this.map.getContainer().querySelector("[mapboxgl-children]");o==null||o.remove(),m.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const e=this._map;!this._inRender&&e.style&&(e._frame&&(e._frame.cancel(),e._frame=null),e._render())}_createShadowTransform(e){const o=d.cloneTransform(e.transform);e.painter.transform=o,this._renderTransform=o}_updateSize(e){const{viewState:o}=e;if(o){const n=this._map;if(o.width!==n.transform.width||o.height!==n.transform.height)return n.resize(),!0}return!1}_updateViewState(e,o){if(this._internalUpdate)return!1;const n=this._map,t=this._renderTransform,{zoom:r,pitch:s,bearing:i}=t,c=n.isMoving();c&&(t.cameraElevationReference="sea");const h=d.applyViewStateToTransform(t,{...d.transformToViewState(n.transform),...e});if(c&&(t.cameraElevationReference="ground"),h&&o){const a=this._deferredEvents;a.move=!0,a.zoom||(a.zoom=r!==t.zoom),a.rotate||(a.rotate=i!==t.bearing),a.pitch||(a.pitch=s!==t.pitch)}return c||d.applyViewStateToTransform(n.transform,e),h}_updateSettings(e,o){const n=this._map;let t=!1;for(const r of y)if(r in e&&!u.deepEqual(e[r],o[r])){t=!0;const s=n[`set${r[0].toUpperCase()}${r.slice(1)}`];s==null||s.call(n,e[r])}return t}_updateStyle(e,o){if(e.cursor!==o.cursor&&(this._map.getCanvas().style.cursor=e.cursor||""),e.mapStyle!==o.mapStyle){const{mapStyle:n=_,styleDiffing:t=!0}=e,r={diff:t};return"localIdeographFontFamily"in e&&(r.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(p.normalizeStyle(n),r),!0}return!1}_updateStyleComponents(e,o){const n=this._map;let t=!1;return n.isStyleLoaded()&&("light"in e&&n.setLight&&!u.deepEqual(e.light,o.light)&&(t=!0,n.setLight(e.light)),"fog"in e&&n.setFog&&!u.deepEqual(e.fog,o.fog)&&(t=!0,n.setFog(e.fog)),"terrain"in e&&n.setTerrain&&!u.deepEqual(e.terrain,o.terrain)&&(!e.terrain||n.getSource(e.terrain.source))&&(t=!0,n.setTerrain(e.terrain))),t}_updateHandlers(e,o){var n,t;const r=this._map;let s=!1;for(const i of S){const c=(n=e[i])!==null&&n!==void 0?n:!0,h=(t=o[i])!==null&&t!==void 0?t:!0;u.deepEqual(c,h)||(s=!0,c?r[i].enable(c):r[i].disable())}return s}_queryRenderedFeatures(e){const o=this._map,n=o.transform,{interactiveLayerIds:t=[]}=this.props;try{return o.transform=this._renderTransform,o.queryRenderedFeatures(e,{layers:t.filter(o.getLayer.bind(o))})}catch{return[]}finally{o.transform=n}}_updateHover(e){var o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const r=e.type,s=((o=this._hoveredFeatures)===null||o===void 0?void 0:o.length)>0,i=this._queryRenderedFeatures(e.point),c=i.length>0;!c&&s&&(e.type="mouseleave",this._onPointerEvent(e)),this._hoveredFeatures=i,c&&!s&&(e.type="mouseenter",this._onPointerEvent(e)),e.type=r}else this._hoveredFeatures=null}_fireEvent(e,o,n){const t=this._map,r=t.transform,s=typeof o=="string"?o:o.type;return s==="move"&&this._updateViewState(this.props,!1),s in f&&(typeof o=="object"&&(o.viewState=d.transformToViewState(r)),this._map.isMoving())?(t.transform=this._renderTransform,e.call(t,o,n),t.transform=r,t):(e.call(t,o,n),t)}_onBeforeRepaint(){const e=this._map;this._internalUpdate=!0;for(const n in this._deferredEvents)this._deferredEvents[n]&&e.fire(n);this._internalUpdate=!1;const o=this._map.transform;e.transform=this._renderTransform,this._onAfterRepaint=()=>{d.syncProjection(this._renderTransform,o),e.transform=o}}}m.savedMaps=[];function E(){let l=null;if(typeof location<"u"){const e=/access_token=([^&\/]*)/.exec(location.search);l=e&&e[1]}try{l=l||process.env.MapboxAccessToken}catch{}try{l=l||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return l}module.exports=m;
|
|
2
2
|
//# sourceMappingURL=index.cjs198.js.map
|
package/dist/index.cjs208.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.
|
|
1
|
+
"use strict";const e=require("./index.cjs235.js"),t=require("./index.cjs210.js"),r=e(t);module.exports=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs208.js.map
|
package/dist/index.cjs209.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./index.
|
|
1
|
+
"use strict";const t=require("./index.cjs234.js"),e=t("length");module.exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs209.js.map
|
package/dist/index.cjs21.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs65.js");require("./index.cjs66.js");function c(t){return a.GenIcon({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m14.12 10.163 1.715.858c.22.11.22.424 0 .534L8.267 15.34a.598.598 0 0 1-.534 0L.165 11.555a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66zM7.733.063a.598.598 0 0 1 .534 0l7.568 3.784a.3.3 0 0 1 0 .535L8.267 8.165a.598.598 0 0 1-.534 0L.165 4.382a.299.299 0 0 1 0-.535L7.733.063z"},child:[]},{tag:"path",attr:{d:"m14.12 6.576 1.715.858c.22.11.22.424 0 .534l-7.568 3.784a.598.598 0 0 1-.534 0L.165 7.968a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.659z"},child:[]}]})(t)}exports.BsStack=c;
|
|
2
2
|
//# sourceMappingURL=index.cjs21.js.map
|
package/dist/index.cjs210.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./index.
|
|
1
|
+
"use strict";const t=require("./index.cjs234.js"),e=t("byteLength");module.exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs210.js.map
|
package/dist/index.cjs22.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs65.js");require("./index.cjs66.js");function r(e){return t.GenIcon({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(e)}exports.IoCheckmarkOutline=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs22.js.map
|
package/dist/index.cjs228.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.
|
|
1
|
+
"use strict";const e=require("./index.cjs235.js"),r=require("./index.cjs209.js"),t=e(r);module.exports=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs228.js.map
|
package/dist/index.cjs233.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const t=require("./index.cjs206.js"),e=t("Object");module.exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs233.js.map
|
package/dist/index.cjs233.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs233.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index.cjs233.js","sources":["../../../node_modules/underscore/modules/_hasObjectTag.js"],"sourcesContent":["import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n"],"names":["tagTester"],"mappings":"kDAEeA,EAAAA,EAAU,QAAQ","x_google_ignoreList":[0]}
|
package/dist/index.cjs234.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";function n(t){return function(r){return r==null?void 0:r[t]}}module.exports=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs234.js.map
|
package/dist/index.cjs234.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs234.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index.cjs234.js","sources":["../../../node_modules/underscore/modules/_shallowProperty.js"],"sourcesContent":["// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n"],"names":["shallowProperty","key","obj"],"mappings":"aACA,SAAwBA,EAAgBC,EAAK,CAC3C,OAAO,SAASC,EAAK,CACnB,OAAOA,GAAO,KAAO,OAASA,EAAID,CAAG,CAAA,CAEzC","x_google_ignoreList":[0]}
|
package/dist/index.cjs235.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const n=require("./index.cjs24.js");function u(r){return function(t){var e=r(t);return typeof e=="number"&&e>=0&&e<=n.MAX_ARRAY_INDEX}}module.exports=u;
|
|
2
2
|
//# sourceMappingURL=index.cjs235.js.map
|
package/dist/index.cjs235.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs235.js","sources":["../../../node_modules/underscore/modules/
|
|
1
|
+
{"version":3,"file":"index.cjs235.js","sources":["../../../node_modules/underscore/modules/_createSizePropertyCheck.js"],"sourcesContent":["import { MAX_ARRAY_INDEX } from './_setup.js';\n\n// Common internal logic for `isArrayLike` and `isBufferLike`.\nexport default function createSizePropertyCheck(getSizeProperty) {\n return function(collection) {\n var sizeProperty = getSizeProperty(collection);\n return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;\n }\n}\n"],"names":["createSizePropertyCheck","getSizeProperty","collection","sizeProperty","MAX_ARRAY_INDEX"],"mappings":"iDAGA,SAAwBA,EAAwBC,EAAiB,CAC/D,OAAO,SAASC,EAAY,CACtB,IAAAC,EAAeF,EAAgBC,CAAU,EAC7C,OAAO,OAAOC,GAAgB,UAAYA,GAAgB,GAAKA,GAAgBC,iBAAA,CAEnF","x_google_ignoreList":[0]}
|
package/dist/index.cjs236.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs203.js");function a(n){const i=n.clone();return i.pixelsToGLUnits=n.pixelsToGLUnits,i}function r(n,i){if(!n.getProjection)return;const e=n.getProjection(),o=i.getProjection();c.deepEqual(e,o)||i.setProjection(e)}function s(n){return{longitude:n.center.lng,latitude:n.center.lat,zoom:n.zoom,pitch:n.pitch,bearing:n.bearing,padding:n.padding}}function d(n,i){const e=i.viewState||i;let o=!1;if("longitude"in e&&"latitude"in e){const t=n.center;n.center=new t.constructor(e.longitude,e.latitude),o=o||t!==n.center}if("zoom"in e){const t=n.zoom;n.zoom=e.zoom,o=o||t!==n.zoom}if("bearing"in e){const t=n.bearing;n.bearing=e.bearing,o=o||t!==n.bearing}if("pitch"in e){const t=n.pitch;n.pitch=e.pitch,o=o||t!==n.pitch}return e.padding&&!n.isPaddingEqual(e.padding)&&(o=!0,n.padding=e.padding),o}exports.applyViewStateToTransform=d;exports.cloneTransform=a;exports.syncProjection=r;exports.transformToViewState=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs236.js.map
|
package/dist/index.cjs236.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs236.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index.cjs236.js","sources":["../../../node_modules/react-map-gl/dist/esm/utils/transform.js"],"sourcesContent":["import { deepEqual } from './deep-equal';\n/**\n * Make a copy of a transform\n * @param tr\n */\nexport function cloneTransform(tr) {\n const newTransform = tr.clone();\n // Work around mapbox bug - this value is not assigned in clone(), only in resize()\n newTransform.pixelsToGLUnits = tr.pixelsToGLUnits;\n return newTransform;\n}\n/**\n * Copy projection from one transform to another. This only applies to mapbox-gl transforms\n * @param src the transform to copy projection settings from\n * @param dest to transform to copy projection settings to\n */\nexport function syncProjection(src, dest) {\n if (!src.getProjection) {\n return;\n }\n const srcProjection = src.getProjection();\n const destProjection = dest.getProjection();\n if (!deepEqual(srcProjection, destProjection)) {\n dest.setProjection(srcProjection);\n }\n}\n/**\n * Capture a transform's current state\n * @param transform\n * @returns descriptor of the view state\n */\nexport function transformToViewState(tr) {\n return {\n longitude: tr.center.lng,\n latitude: tr.center.lat,\n zoom: tr.zoom,\n pitch: tr.pitch,\n bearing: tr.bearing,\n padding: tr.padding\n };\n}\n/* eslint-disable complexity */\n/**\n * Mutate a transform to match the given view state\n * @param transform\n * @param viewState\n * @returns true if the transform has changed\n */\nexport function applyViewStateToTransform(tr, props) {\n const v = props.viewState || props;\n let changed = false;\n if ('longitude' in v && 'latitude' in v) {\n const center = tr.center;\n // @ts-ignore\n tr.center = new center.constructor(v.longitude, v.latitude);\n changed = changed || center !== tr.center;\n }\n if ('zoom' in v) {\n const zoom = tr.zoom;\n tr.zoom = v.zoom;\n changed = changed || zoom !== tr.zoom;\n }\n if ('bearing' in v) {\n const bearing = tr.bearing;\n tr.bearing = v.bearing;\n changed = changed || bearing !== tr.bearing;\n }\n if ('pitch' in v) {\n const pitch = tr.pitch;\n tr.pitch = v.pitch;\n changed = changed || pitch !== tr.pitch;\n }\n if (v.padding && !tr.isPaddingEqual(v.padding)) {\n changed = true;\n tr.padding = v.padding;\n }\n return changed;\n}\n//# sourceMappingURL=transform.js.map"],"names":["cloneTransform","tr","newTransform","syncProjection","src","dest","srcProjection","destProjection","deepEqual","transformToViewState","applyViewStateToTransform","props","v","changed","center","zoom","bearing","pitch"],"mappings":"qHAKO,SAASA,EAAeC,EAAI,CACzB,MAAAC,EAAeD,EAAG,QAExB,OAAAC,EAAa,gBAAkBD,EAAG,gBAC3BC,CACX,CAMgB,SAAAC,EAAeC,EAAKC,EAAM,CAClC,GAAA,CAACD,EAAI,cACL,OAEE,MAAAE,EAAgBF,EAAI,gBACpBG,EAAiBF,EAAK,gBACvBG,EAAA,UAAUF,EAAeC,CAAc,GACxCF,EAAK,cAAcC,CAAa,CAExC,CAMO,SAASG,EAAqBR,EAAI,CAC9B,MAAA,CACH,UAAWA,EAAG,OAAO,IACrB,SAAUA,EAAG,OAAO,IACpB,KAAMA,EAAG,KACT,MAAOA,EAAG,MACV,QAASA,EAAG,QACZ,QAASA,EAAG,OAAA,CAEpB,CAQgB,SAAAS,EAA0BT,EAAIU,EAAO,CAC3C,MAAAC,EAAID,EAAM,WAAaA,EAC7B,IAAIE,EAAU,GACV,GAAA,cAAeD,GAAK,aAAcA,EAAG,CACrC,MAAME,EAASb,EAAG,OAElBA,EAAG,OAAS,IAAIa,EAAO,YAAYF,EAAE,UAAWA,EAAE,QAAQ,EAChDC,EAAAA,GAAWC,IAAWb,EAAG,MACvC,CACA,GAAI,SAAUW,EAAG,CACb,MAAMG,EAAOd,EAAG,KAChBA,EAAG,KAAOW,EAAE,KACFC,EAAAA,GAAWE,IAASd,EAAG,IACrC,CACA,GAAI,YAAaW,EAAG,CAChB,MAAMI,EAAUf,EAAG,QACnBA,EAAG,QAAUW,EAAE,QACLC,EAAAA,GAAWG,IAAYf,EAAG,OACxC,CACA,GAAI,UAAWW,EAAG,CACd,MAAMK,EAAQhB,EAAG,MACjBA,EAAG,MAAQW,EAAE,MACHC,EAAAA,GAAWI,IAAUhB,EAAG,KACtC,CACA,OAAIW,EAAE,SAAW,CAACX,EAAG,eAAeW,EAAE,OAAO,IAC/BC,EAAA,GACVZ,EAAG,QAAUW,EAAE,SAEZC,CACX","x_google_ignoreList":[0]}
|
package/dist/index.cjs237.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function c(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const f=e.layers.map(r=>{let n=null;"interactive"in r&&(n=Object.assign({},r),delete n.interactive);const o=t[r.ref];if(o){n=n||Object.assign({},r),delete n.ref;for(const i of a)i in o&&(n[i]=o[i])}return n||r});return{...e,layers:f}}exports.normalizeStyle=c;
|
|
2
2
|
//# sourceMappingURL=index.cjs237.js.map
|
package/dist/index.cjs237.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs237.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index.cjs237.js","sources":["../../../node_modules/react-map-gl/dist/esm/utils/style-utils.js"],"sourcesContent":["const refProps = ['type', 'source', 'source-layer', 'minzoom', 'maxzoom', 'filter', 'layout'];\n// Prepare a map style object for diffing\n// If immutable - convert to plain object\n// Work around some issues in older styles that would fail Mapbox's diffing\nexport function normalizeStyle(style) {\n if (!style) {\n return null;\n }\n if (typeof style === 'string') {\n return style;\n }\n if ('toJS' in style) {\n style = style.toJS();\n }\n if (!style.layers) {\n return style;\n }\n const layerIndex = {};\n for (const layer of style.layers) {\n layerIndex[layer.id] = layer;\n }\n const layers = style.layers.map(layer => {\n let normalizedLayer = null;\n if ('interactive' in layer) {\n normalizedLayer = Object.assign({}, layer);\n // Breaks style diffing :(\n // @ts-ignore legacy field not typed\n delete normalizedLayer.interactive;\n }\n // Style diffing doesn't work with refs so expand them out manually before diffing.\n // @ts-ignore legacy field not typed\n const layerRef = layerIndex[layer.ref];\n if (layerRef) {\n normalizedLayer = normalizedLayer || Object.assign({}, layer);\n // @ts-ignore\n delete normalizedLayer.ref;\n // https://github.com/mapbox/mapbox-gl-js/blob/master/src/style-spec/deref.js\n for (const propName of refProps) {\n if (propName in layerRef) {\n normalizedLayer[propName] = layerRef[propName];\n }\n }\n }\n return normalizedLayer || layer;\n });\n // Do not mutate the style object provided by the user\n return { ...style, layers };\n}\n//# sourceMappingURL=style-utils.js.map"],"names":["refProps","normalizeStyle","style","layerIndex","layer","layers","normalizedLayer","layerRef","propName"],"mappings":"gFAAA,MAAMA,EAAW,CAAC,OAAQ,SAAU,eAAgB,UAAW,UAAW,SAAU,QAAQ,EAIrF,SAASC,EAAeC,EAAO,CAClC,GAAI,CAACA,EACM,OAAA,KAQP,GANA,OAAOA,GAAU,WAGjB,SAAUA,IACVA,EAAQA,EAAM,QAEd,CAACA,EAAM,QACA,OAAAA,EAEX,MAAMC,EAAa,CAAA,EACR,UAAAC,KAASF,EAAM,OACXC,EAAAC,EAAM,EAAE,EAAIA,EAE3B,MAAMC,EAASH,EAAM,OAAO,IAAaE,GAAA,CACrC,IAAIE,EAAkB,KAClB,gBAAiBF,IACjBE,EAAkB,OAAO,OAAO,CAAC,EAAGF,CAAK,EAGzC,OAAOE,EAAgB,aAIrB,MAAAC,EAAWJ,EAAWC,EAAM,GAAG,EACrC,GAAIG,EAAU,CACVD,EAAkBA,GAAmB,OAAO,OAAO,GAAIF,CAAK,EAE5D,OAAOE,EAAgB,IAEvB,UAAWE,KAAYR,EACfQ,KAAYD,IACID,EAAAE,CAAQ,EAAID,EAASC,CAAQ,EAGzD,CACA,OAAOF,GAAmBF,CAAA,CAC7B,EAEM,MAAA,CAAE,GAAGF,EAAO,OAAAG,EACvB","x_google_ignoreList":[0]}
|
package/dist/index.cjs245.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const A=require("./index.
|
|
1
|
+
"use strict";const A=require("./index.cjs258.js");function d(h,v,f,o){this.x=h,this.z=v,this.o=f,this.e=o,this.v=!1,this.n=this.p=null}function B(h,v,f,o,n){var x=[],s=[],l,z;if(h.forEach(function(w){if(!((g=w.length-1)<=0)){var g,u=w[0],q=w[g],t;if(A(u,q)){for(n.lineStart(),l=0;l<g;++l)n.point((u=w[l])[0],u[1]);n.lineEnd();return}x.push(t=new d(u,w,null,!0)),s.push(t.o=new d(u,null,t,!1)),x.push(t=new d(q,w,null,!1)),s.push(t.o=new d(q,null,t,!0))}}),!!x.length){for(s.sort(v),P(x),P(s),l=0,z=s.length;l<z;++l)s[l].e=f=!f;for(var k=x[0],p,E;;){for(var i=k,e=!0;i.v;)if((i=i.n)===k)return;p=i.z,n.lineStart();do{if(i.v=i.o.v=!0,i.e){if(e)for(l=0,z=p.length;l<z;++l)n.point((E=p[l])[0],E[1]);else o(i.x,i.n.x,1,n);i=i.n}else{if(e)for(p=i.p.z,l=p.length-1;l>=0;--l)n.point((E=p[l])[0],E[1]);else o(i.x,i.p.x,-1,n);i=i.p}i=i.o,p=i.z,e=!e}while(!i.v);n.lineEnd()}}}function P(h){if(v=h.length){for(var v,f=0,o=h[0],n;++f<v;)o.n=n=h[f],n.p=o,o=n;o.n=n=h[0],n.p=o}}module.exports=B;
|
|
2
2
|
//# sourceMappingURL=index.cjs245.js.map
|
package/dist/index.cjs249.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const s=require("./index.
|
|
1
|
+
"use strict";const s=require("./index.cjs259.js"),i=require("./index.cjs241.js"),N=s(function(){return!0},P,A,[-i.pi,-i.halfPi]);function P(p){var l=NaN,t=NaN,n=NaN,o;return{lineStart:function(){p.lineStart(),o=1},point:function(c,e){var u=c>0?i.pi:-i.pi,f=i.abs(c-l);i.abs(f-i.pi)<i.epsilon?(p.point(l,t=(t+e)/2>0?i.halfPi:-i.halfPi),p.point(n,t),p.lineEnd(),p.lineStart(),p.point(u,t),p.point(c,t),o=0):n!==u&&f>=i.pi&&(i.abs(l-n)<i.epsilon&&(l-=n*i.epsilon),i.abs(c-u)<i.epsilon&&(c-=u*i.epsilon),t=v(l,t,c,e),p.point(n,t),p.lineEnd(),p.lineStart(),p.point(u,t),o=0),p.point(l=c,t=e),n=u},lineEnd:function(){p.lineEnd(),l=t=NaN},clean:function(){return 2-o}}}function v(p,l,t,n){var o,c,e=i.sin(p-t);return i.abs(e)>i.epsilon?i.atan((i.sin(l)*(c=i.cos(n))*i.sin(t)-i.sin(n)*(o=i.cos(l))*i.sin(p))/(o*c*e)):(l+n)/2}function A(p,l,t,n){var o;if(p==null)o=t*i.halfPi,n.point(-i.pi,o),n.point(0,o),n.point(i.pi,o),n.point(i.pi,0),n.point(i.pi,-o),n.point(0,-o),n.point(-i.pi,-o),n.point(-i.pi,0),n.point(-i.pi,o);else if(i.abs(p[0]-l[0])>i.epsilon){var c=p[0]<l[0]?i.pi:-i.pi;o=t*c/2,n.point(-c,o),n.point(0,o),n.point(c,o)}else n.point(l[0],l[1])}module.exports=N;
|
|
2
2
|
//# sourceMappingURL=index.cjs249.js.map
|
package/dist/index.cjs250.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./index.cjs240.js"),Q=require("./index.cjs239.js"),e=require("./index.cjs241.js"),j=require("./index.
|
|
1
|
+
"use strict";const t=require("./index.cjs240.js"),Q=require("./index.cjs239.js"),e=require("./index.cjs241.js"),j=require("./index.cjs258.js"),T=require("./index.cjs259.js");function U(d,G){var D=e.cos(d),x=D>0,J=e.abs(D)>e.epsilon;function K(n,i,o,r){Q.circleStream(r,d,G,o,n,i)}function L(n,i){return e.cos(n)*e.cos(i)>D}function M(n){var i,o,r,C,u;return{lineStart:function(){C=r=!1,u=1},point:function(s,v){var c=[s,v],a,l=L(s,v),z=x?l?0:k(s,v):l?k(s+(s<0?e.pi:-e.pi),v):0;if(!i&&(C=r=l)&&n.lineStart(),l!==r&&(a=h(i,c),(!a||j(i,a)||j(c,a))&&(c[0]+=e.epsilon,c[1]+=e.epsilon,l=L(c[0],c[1]))),l!==r)u=0,l?(n.lineStart(),a=h(c,i),n.point(a[0],a[1])):(a=h(i,c),n.point(a[0],a[1]),n.lineEnd()),i=a;else if(J&&i&&x^l){var p;!(z&o)&&(p=h(c,i,!0))&&(u=0,x?(n.lineStart(),n.point(p[0][0],p[0][1]),n.point(p[1][0],p[1][1]),n.lineEnd()):(n.point(p[1][0],p[1][1]),n.lineEnd(),n.lineStart(),n.point(p[0][0],p[0][1])))}l&&(!i||!j(i,c))&&n.point(c[0],c[1]),i=c,r=l,o=z},lineEnd:function(){r&&n.lineEnd(),i=null},clean:function(){return u|(C&&r)<<1}}}function h(n,i,o){var r=t.cartesian(n),C=t.cartesian(i),u=[1,0,0],s=t.cartesianCross(r,C),v=t.cartesianDot(s,s),c=s[0],a=v-c*c;if(!a)return!o&&n;var l=D*v/a,z=-D*c/a,p=t.cartesianCross(u,s),S=t.cartesianScale(u,l),N=t.cartesianScale(s,z);t.cartesianAddInPlace(S,N);var I=p,B=t.cartesianDot(S,I),R=t.cartesianDot(I,I),w=B*B-R*(t.cartesianDot(S,S)-1);if(!(w<0)){var y=e.sqrt(w),f=t.cartesianScale(I,(-B-y)/R);if(t.cartesianAddInPlace(f,S),f=t.spherical(f),!o)return f;var q=n[0],P=i[0],E=n[1],A=i[1],H;P<q&&(H=q,q=P,P=H);var b=P-q,g=e.abs(b-e.pi)<e.epsilon,O=g||b<e.epsilon;if(!g&&A<E&&(H=E,E=A,A=H),O?g?E+A>0^f[1]<(e.abs(f[0]-q)<e.epsilon?E:A):E<=f[1]&&f[1]<=A:b>e.pi^(q<=f[0]&&f[0]<=P)){var F=t.cartesianScale(I,(-B+y)/R);return t.cartesianAddInPlace(F,S),[f,t.spherical(F)]}}}function k(n,i){var o=x?d:e.pi-d,r=0;return n<-o?r|=1:n>o&&(r|=2),i<-o?r|=4:i>o&&(r|=8),r}return T(L,M,K,x?[0,-d]:[-e.pi,d-e.pi])}module.exports=U;
|
|
2
2
|
//# sourceMappingURL=index.cjs250.js.map
|
package/dist/index.cjs258.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const s=require("./index.cjs241.js");function n(t,e){return s.abs(t[0]-e[0])<s.epsilon&&s.abs(t[1]-e[1])<s.epsilon}module.exports=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs258.js.map
|
package/dist/index.cjs258.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs258.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs258.js","sources":["../../../node_modules/d3-geo/src/pointEqual.js"],"sourcesContent":["import {abs, epsilon} from \"./math\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n"],"names":["pointEqual","a","b","abs","epsilon"],"mappings":"kDAEA,SAAAA,EAAwBC,EAAGC,EAAG,CAC5B,OAAOC,EAAAA,IAAIF,EAAE,CAAC,EAAIC,EAAE,CAAC,CAAC,EAAIE,EAAAA,SAAWD,EAAAA,IAAIF,EAAE,CAAC,EAAIC,EAAE,CAAC,CAAC,EAAIE,SAC1D","x_google_ignoreList":[0]}
|
package/dist/index.cjs259.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const w=require("./index.cjs243.js"),z=require("./index.cjs245.js"),g=require("./index.cjs241.js"),A=require("./index.cjs190.js");require("./index.cjs189.js");const D=require("./index.cjs246.js");function F(r,u,d,s){return function(c,n){var h=u(n),C=c.invert(s[0],s[1]),v=w(),a=u(v),l=!1,S,f,p,o={point:y,lineStart:q,lineEnd:m,polygonStart:function(){o.point=P,o.lineStart=$,o.lineEnd=j,f=[],S=[]},polygonEnd:function(){o.point=y,o.lineStart=q,o.lineEnd=m,f=D(f);var e=A(S,C);f.length?(l||(n.polygonStart(),l=!0),z(f,H,e,d,n)):e&&(l||(n.polygonStart(),l=!0),n.lineStart(),d(null,null,1,n),n.lineEnd()),l&&(n.polygonEnd(),l=!1),f=S=null},sphere:function(){n.polygonStart(),n.lineStart(),d(null,null,1,n),n.lineEnd(),n.polygonEnd()}};function y(e,t){var i=c(e,t);r(e=i[0],t=i[1])&&n.point(e,t)}function R(e,t){var i=c(e,t);h.point(i[0],i[1])}function q(){o.point=R,h.lineStart()}function m(){o.point=y,h.lineEnd()}function P(e,t){p.push([e,t]);var i=c(e,t);a.point(i[0],i[1])}function $(){a.lineStart(),p=[]}function j(){P(p[0][0],p[0][1]),a.lineEnd();var e=a.clean(),t=v.result(),i,x=t.length,I,E,B;if(p.pop(),S.push(p),p=null,!!x){if(e&1){if(E=t[0],(I=E.length-1)>0){for(l||(n.polygonStart(),l=!0),n.lineStart(),i=0;i<I;++i)n.point((B=E[i])[0],B[1]);n.lineEnd()}return}x>1&&e&2&&t.push(t.pop().concat(t.shift())),f.push(t.filter(G))}}return o}}function G(r){return r.length>1}function H(r,u){return((r=r.x)[0]<0?r[1]-g.halfPi-g.epsilon:g.halfPi-r[1])-((u=u.x)[0]<0?u[1]-g.halfPi-g.epsilon:g.halfPi-u[1])}module.exports=F;
|
|
2
2
|
//# sourceMappingURL=index.cjs259.js.map
|
package/dist/index.cjs259.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs259.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs259.js","sources":["../../../node_modules/d3-geo/src/clip/index.js"],"sourcesContent":["import clipBuffer from \"./buffer\";\nimport clipPolygon from \"./polygon\";\nimport {epsilon, halfPi} from \"../math\";\nimport polygonContains from \"../polygonContains\";\nimport {merge} from \"d3-array\";\n\nexport default function(pointVisible, clipLine, interpolate, start) {\n return function(rotate, sink) {\n var line = clipLine(sink),\n rotatedStart = rotate.invert(start[0], start[1]),\n ringBuffer = clipBuffer(),\n ringSink = clipLine(ringBuffer),\n polygonStarted = false,\n polygon,\n segments,\n ring;\n\n var clip = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() {\n clip.point = pointRing;\n clip.lineStart = ringStart;\n clip.lineEnd = ringEnd;\n segments = [];\n polygon = [];\n },\n polygonEnd: function() {\n clip.point = point;\n clip.lineStart = lineStart;\n clip.lineEnd = lineEnd;\n segments = merge(segments);\n var startInside = polygonContains(polygon, rotatedStart);\n if (segments.length) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n clipPolygon(segments, compareIntersection, startInside, interpolate, sink);\n } else if (startInside) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n }\n if (polygonStarted) sink.polygonEnd(), polygonStarted = false;\n segments = polygon = null;\n },\n sphere: function() {\n sink.polygonStart();\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n sink.polygonEnd();\n }\n };\n\n function point(lambda, phi) {\n var point = rotate(lambda, phi);\n if (pointVisible(lambda = point[0], phi = point[1])) sink.point(lambda, phi);\n }\n\n function pointLine(lambda, phi) {\n var point = rotate(lambda, phi);\n line.point(point[0], point[1]);\n }\n\n function lineStart() {\n clip.point = pointLine;\n line.lineStart();\n }\n\n function lineEnd() {\n clip.point = point;\n line.lineEnd();\n }\n\n function pointRing(lambda, phi) {\n ring.push([lambda, phi]);\n var point = rotate(lambda, phi);\n ringSink.point(point[0], point[1]);\n }\n\n function ringStart() {\n ringSink.lineStart();\n ring = [];\n }\n\n function ringEnd() {\n pointRing(ring[0][0], ring[0][1]);\n ringSink.lineEnd();\n\n var clean = ringSink.clean(),\n ringSegments = ringBuffer.result(),\n i, n = ringSegments.length, m,\n segment,\n point;\n\n ring.pop();\n polygon.push(ring);\n ring = null;\n\n if (!n) return;\n\n // No intersections.\n if (clean & 1) {\n segment = ringSegments[0];\n if ((m = segment.length - 1) > 0) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);\n sink.lineEnd();\n }\n return;\n }\n\n // Rejoin connected segments.\n // TODO reuse ringBuffer.rejoin()?\n if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));\n\n segments.push(ringSegments.filter(validSegment));\n }\n\n return clip;\n };\n}\n\nfunction validSegment(segment) {\n return segment.length > 1;\n}\n\n// Intersections are sorted along the clip edge. For both antimeridian cutting\n// and circle clipping, the same comparison is used.\nfunction compareIntersection(a, b) {\n return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1])\n - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);\n}\n"],"names":["clip","pointVisible","clipLine","interpolate","start","rotate","sink","line","rotatedStart","ringBuffer","clipBuffer","ringSink","polygonStarted","polygon","segments","ring","point","lineStart","lineEnd","pointRing","ringStart","ringEnd","merge","startInside","polygonContains","clipPolygon","compareIntersection","lambda","phi","pointLine","clean","ringSegments","n","m","segment","validSegment","a","b","halfPi","epsilon"],"mappings":"iNAMwB,SAAAA,EAAAC,EAAcC,EAAUC,EAAaC,EAAO,CAC3D,OAAA,SAASC,EAAQC,EAAM,CACxB,IAAAC,EAAOL,EAASI,CAAI,EACpBE,EAAeH,EAAO,OAAOD,EAAM,CAAC,EAAGA,EAAM,CAAC,CAAC,EAC/CK,EAAaC,EAAW,EACxBC,EAAWT,EAASO,CAAU,EAC9BG,EAAiB,GACjBC,EACAC,EACAC,EAEAf,EAAO,CACT,MAAAgB,EACA,UAAAC,EACA,QAAAC,EACA,aAAc,UAAW,CACvBlB,EAAK,MAAQmB,EACbnB,EAAK,UAAYoB,EACjBpB,EAAK,QAAUqB,EACfP,EAAW,CAAA,EACXD,EAAU,CAAA,CACZ,EACA,WAAY,UAAW,CACrBb,EAAK,MAAQgB,EACbhB,EAAK,UAAYiB,EACjBjB,EAAK,QAAUkB,EACfJ,EAAWQ,EAAMR,CAAQ,EACrB,IAAAS,EAAcC,EAAgBX,EAASL,CAAY,EACnDM,EAAS,QACNF,IAAqBN,EAAA,aAAA,EAAgBM,EAAiB,IAC3Da,EAAYX,EAAUY,EAAqBH,EAAapB,EAAaG,CAAI,GAChEiB,IACJX,IAAqBN,EAAA,aAAA,EAAgBM,EAAiB,IAC3DN,EAAK,UAAU,EACHH,EAAA,KAAM,KAAM,EAAGG,CAAI,EAC/BA,EAAK,QAAQ,GAEXM,IAAqBN,EAAA,WAAA,EAAcM,EAAiB,IACxDE,EAAWD,EAAU,IACvB,EACA,OAAQ,UAAW,CACjBP,EAAK,aAAa,EAClBA,EAAK,UAAU,EACHH,EAAA,KAAM,KAAM,EAAGG,CAAI,EAC/BA,EAAK,QAAQ,EACbA,EAAK,WAAW,CAClB,CAAA,EAGO,SAAAU,EAAMW,EAAQC,EAAK,CACtBZ,IAAAA,EAAQX,EAAOsB,EAAQC,CAAG,EAC1B3B,EAAa0B,EAASX,EAAM,CAAC,EAAGY,EAAMZ,EAAM,CAAC,CAAC,GAAQV,EAAA,MAAMqB,EAAQC,CAAG,CAC7E,CAES,SAAAC,EAAUF,EAAQC,EAAK,CAC1BZ,IAAAA,EAAQX,EAAOsB,EAAQC,CAAG,EAC9BrB,EAAK,MAAMS,EAAM,CAAC,EAAGA,EAAM,CAAC,CAAC,CAC/B,CAEA,SAASC,GAAY,CACnBjB,EAAK,MAAQ6B,EACbtB,EAAK,UAAU,CACjB,CAEA,SAASW,GAAU,CACjBlB,EAAK,MAAQgB,EACbT,EAAK,QAAQ,CACf,CAES,SAAAY,EAAUQ,EAAQC,EAAK,CAC9Bb,EAAK,KAAK,CAACY,EAAQC,CAAG,CAAC,EACnBZ,IAAAA,EAAQX,EAAOsB,EAAQC,CAAG,EAC9BjB,EAAS,MAAMK,EAAM,CAAC,EAAGA,EAAM,CAAC,CAAC,CACnC,CAEA,SAASI,GAAY,CACnBT,EAAS,UAAU,EACnBI,EAAO,CAAA,CACT,CAEA,SAASM,GAAU,CACPF,EAAAJ,EAAK,CAAC,EAAE,CAAC,EAAGA,EAAK,CAAC,EAAE,CAAC,CAAC,EAChCJ,EAAS,QAAQ,EAEjB,IAAImB,EAAQnB,EAAS,MAAM,EACvBoB,EAAetB,EAAW,OAAO,EACjC,EAAGuB,EAAID,EAAa,OAAQE,EAC5BC,EACAlB,EAMJ,GAJAD,EAAK,IAAI,EACTF,EAAQ,KAAKE,CAAI,EACVA,EAAA,KAEH,EAACiB,EAGL,IAAIF,EAAQ,EAAG,CAEb,GADAI,EAAUH,EAAa,CAAC,GACnBE,EAAIC,EAAQ,OAAS,GAAK,EAAG,CAGhC,IAFKtB,IAAqBN,EAAA,aAAA,EAAgBM,EAAiB,IAC3DN,EAAK,UAAU,EACV,EAAI,EAAG,EAAI2B,EAAG,EAAE,EAAQ3B,EAAA,OAAOU,EAAQkB,EAAQ,CAAC,GAAG,CAAC,EAAGlB,EAAM,CAAC,CAAC,EACpEV,EAAK,QAAQ,CACf,CACA,MACF,CAII0B,EAAI,GAAKF,EAAQ,GAAgBC,EAAA,KAAKA,EAAa,IAAI,EAAE,OAAOA,EAAa,MAAO,CAAA,CAAC,EAEzFjB,EAAS,KAAKiB,EAAa,OAAOI,CAAY,CAAC,EACjD,CAEO,OAAAnC,CAAA,CAEX,CAEA,SAASmC,EAAaD,EAAS,CAC7B,OAAOA,EAAQ,OAAS,CAC1B,CAIA,SAASR,EAAoBU,EAAGC,EAAG,CACjC,QAASD,EAAIA,EAAE,GAAG,CAAC,EAAI,EAAIA,EAAE,CAAC,EAAIE,EAAA,OAASC,EAAU,QAAAD,EAAA,OAASF,EAAE,CAAC,KACxDC,EAAIA,EAAE,GAAG,CAAC,EAAI,EAAIA,EAAE,CAAC,EAAIC,EAAAA,OAASC,EAAAA,QAAUD,EAAAA,OAASD,EAAE,CAAC,EACnE","x_google_ignoreList":[0]}
|
package/dist/index.cjs26.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs24.js"),e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs24.js"),e=require("./index.cjs233.js");var t=a.supportsDataView&&e(new DataView(new ArrayBuffer(8))),r=typeof Map<"u"&&e(new Map);exports.hasStringTagBug=t;exports.isIE11=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs26.js.map
|
package/dist/index.cjs52.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),u=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),u=require("./index.cjs68.js");require("./index.cjs69.js");require("./index.cjs70.js");require("./index.cjs71.js");const c=require("./index.cjs72.js");require("./index.cjs73.js");require("./index.cjs74.js");require("./index.cjs75.js");require("./index.cjs78.js");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=i(o),a=Promise.resolve().then(()=>require("./index.cjs19.js")).then(e=>e.on);l.forwardRef(function(t,r){return u.default(t,r,a)});const s=c;exports.FullscreenControl=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs52.js.map
|
package/dist/index.cjs59.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}exports.commonjsGlobal=o;exports.getDefaultExportFromCjs=l;
|
|
2
2
|
//# sourceMappingURL=index.cjs59.js.map
|
package/dist/index.cjs6.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./index.cjs17.js"),u=require("@peripleo/maplibre"),l=require("react"),
|
|
1
|
+
"use strict";const t=require("./index.cjs17.js"),u=require("@peripleo/maplibre"),l=require("react"),q=require("./index.cjs23.js");require("./index.cjs24.js");require("./index.cjs25.js");require("./index.cjs26.js");require("./index.cjs27.js");require("./index.cjs28.js");require("./index.cjs29.js");require("./index.cjs30.js");require("./index.cjs31.js");require("./index.cjs32.js");require("./index.cjs33.js");require("./index.cjs34.js");require("./index.cjs35.js");require("./index.cjs36.js");require("./index.cjs37.js");require("./index.cjs38.js");require("./index.cjs39.js");require("./index.cjs40.js");require("./index.cjs41.js");require("./index.cjs42.js");require("./index.cjs43.js");require("./index.cjs44.js");require("./index.cjs45.js");require("./index.cjs46.js");require("./index.cjs47.js");require("./index.cjs48.js");require("./index.cjs49.js");require("./index.cjs50.js");const n=require("./index.cjs13.js"),s=require("./index.cjs12.js"),d=2,o=e=>{const r=u.useLoadedMap(),i=l.useMemo(()=>q.isEmpty(e.data)?null:e.data,[e.data]);return l.useEffect(()=>{if(r&&i&&e.fitBoundingBox){const a=s.getBoundingBox(i,e.buffer);a&&r.fitBounds(a,e.boundingBoxOptions,e.boundingBoxData)}},[r,e.buffer,e.data,e.boundingBoxData,e.boundingBoxOptions,e.fitBoundingBox]),i?t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[e.animate&&t.jsxRuntimeExports.jsx(u.PulsingMarkerLayer,{data:e.data,id:e.layerId}),t.jsxRuntimeExports.jsx(u.GeoJSONLayer,{cluster:e.cluster,clusterMaxZoom:e.clusterMaxZoom,clusterMinPoints:e.clusterMinPoints,clusterProperties:e.clusterProperties,clusterRadius:e.clusterRadius,data:e.data,fillStyle:e.fillStyle,id:e.layerId,interactive:e.interactive,strokeStyle:e.strokeStyle,pointStyle:e.pointStyle})]}):null};o.defaultProps={buffer:d,fillStyle:n.fill,fitBoundingBox:!0,pointStyle:n.point,strokeStyle:n.stroke};module.exports=o;
|
|
2
2
|
//# sourceMappingURL=index.cjs6.js.map
|
package/dist/index.cjs6.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs6.js","sources":["../src/components/LocationMarkers.js"],"sourcesContent":["// @flow\n\nimport { GeoJSONLayer, PulsingMarkerLayer,
|
|
1
|
+
{"version":3,"file":"index.cjs6.js","sources":["../src/components/LocationMarkers.js"],"sourcesContent":["// @flow\n\nimport { GeoJSONLayer, PulsingMarkerLayer, useLoadedMap } from '@peripleo/maplibre';\nimport React, { useEffect, useMemo } from 'react';\nimport _ from 'underscore';\nimport MapStyles from '../utils/MapStyles';\nimport MapUtils from '../utils/Map';\n\ntype Props = {\n /**\n * If `true`, the point marker will display with a pulsing animation.\n */\n animate?: boolean,\n\n /**\n * (Optional) data to pass to the fitToBounds function.\n */\n boundingBoxData?: any,\n\n /**\n * (Optional) options to pass to the fitToBounds function.\n * See [spec](https://maplibre.org/maplibre-gl-js/docs/API/types/FitBoundsOptions/).\n */\n boundingBoxOptions?: any,\n\n /**\n * The number of miles to buffer the GeoJSON data.\n */\n buffer: number,\n\n /**\n * If true, markers will be clustered before the specified zoom level.\n */\n cluster?: boolean,\n\n /**\n * Max zoom to cluster points on.\n */\n clusterMaxZoom?: number,\n\n /**\n * Minimum number of points necessary to form a cluster.\n */\n clusterMinPoints?: number,\n\n /**\n * An object defining custom properties on the generated clusters.\n */\n clusterProperties?: any,\n\n /**\n * Radius of each cluster when clustering point.\n */\n clusterRadius?: number,\n\n /**\n * The GeoJSON data representing the location.\n */\n data: { [key: string]: any },\n\n /**\n * GeoJSON layer fill style.\n */\n fillStyle?: { [key: string]: any },\n\n /**\n * If `true`, the map will fit the bounding box around the passed data.\n */\n fitBoundingBox?: boolean,\n\n /**\n * If `true`, the selection and hover state will apply to the layer.\n */\n interactive?: boolean,\n\n /**\n * An ID value to apply to the layer.\n */\n layerId?: string,\n\n /**\n * GeoJSON layer point style.\n */\n pointStyle?: { [key: string]: any },\n\n /**\n * GeoJSON layer stroke style\n */\n strokeStyle?: { [key: string]: any }\n};\n\nconst DEFAULT_BUFFER = 2;\n\n/**\n * This component renders a location marker to be used in a Peripleo context.\n */\nconst LocationMarkers = (props: Props) => {\n const map = useLoadedMap();\n\n /**\n * Memo-izes the data prop.\n *\n * @type {{[p: string]: *}}\n */\n const data = useMemo(() => (_.isEmpty(props.data) ? null : props.data), [props.data]);\n\n /**\n * Sets the bounding box on the map.\n */\n useEffect(() => {\n if (map && data && props.fitBoundingBox) {\n const bbox = MapUtils.getBoundingBox(data, props.buffer);\n\n if (bbox) {\n map.fitBounds(bbox, props.boundingBoxOptions, props.boundingBoxData);\n }\n }\n }, [map, props.buffer, props.data, props.boundingBoxData, props.boundingBoxOptions, props.fitBoundingBox]);\n\n if (!data) {\n return null;\n }\n\n return (\n <>\n { props.animate && (\n <PulsingMarkerLayer\n data={props.data}\n id={props.layerId}\n />\n )}\n <GeoJSONLayer\n cluster={props.cluster}\n clusterMaxZoom={props.clusterMaxZoom}\n clusterMinPoints={props.clusterMinPoints}\n clusterProperties={props.clusterProperties}\n clusterRadius={props.clusterRadius}\n data={props.data}\n fillStyle={props.fillStyle}\n id={props.layerId}\n interactive={props.interactive}\n strokeStyle={props.strokeStyle}\n pointStyle={props.pointStyle}\n />\n </>\n );\n};\n\nLocationMarkers.defaultProps = {\n buffer: DEFAULT_BUFFER,\n fillStyle: MapStyles.fill,\n fitBoundingBox: true,\n pointStyle: MapStyles.point,\n strokeStyle: MapStyles.stroke\n};\n\nexport default LocationMarkers;\n"],"names":["DEFAULT_BUFFER","LocationMarkers","props","map","useLoadedMap","data","useMemo","_","useEffect","bbox","MapUtils","jsxs","Fragment","jsx","PulsingMarkerLayer","GeoJSONLayer","MapStyles"],"mappings":"w7BA2FMA,EAAiB,EAKjBC,EAAmBC,GAAiB,CACxC,MAAMC,EAAMC,EAAAA,eAONC,EAAOC,EAAA,QAAQ,IAAOC,EAAE,QAAQL,EAAM,IAAI,EAAI,KAAOA,EAAM,KAAO,CAACA,EAAM,IAAI,CAAC,EAepF,OAVAM,EAAAA,UAAU,IAAM,CACV,GAAAL,GAAOE,GAAQH,EAAM,eAAgB,CACvC,MAAMO,EAAOC,EAAS,eAAeL,EAAMH,EAAM,MAAM,EAEnDO,GACFN,EAAI,UAAUM,EAAMP,EAAM,mBAAoBA,EAAM,eAAe,CAEvE,CACC,EAAA,CAACC,EAAKD,EAAM,OAAQA,EAAM,KAAMA,EAAM,gBAAiBA,EAAM,mBAAoBA,EAAM,cAAc,CAAC,EAEpGG,EAMCM,EAAA,kBAAA,KAAAC,6BAAA,CAAA,SAAA,CAAAV,EAAM,SACNW,EAAA,kBAAA,IAACC,EAAA,mBAAA,CACC,KAAMZ,EAAM,KACZ,GAAIA,EAAM,OAAA,CACZ,EAEFW,EAAA,kBAAA,IAACE,EAAA,aAAA,CACC,QAASb,EAAM,QACf,eAAgBA,EAAM,eACtB,iBAAkBA,EAAM,iBACxB,kBAAmBA,EAAM,kBACzB,cAAeA,EAAM,cACrB,KAAMA,EAAM,KACZ,UAAWA,EAAM,UACjB,GAAIA,EAAM,QACV,YAAaA,EAAM,YACnB,YAAaA,EAAM,YACnB,WAAYA,EAAM,UAAA,CACpB,CACF,CAAA,CAAA,EAxBO,IA0BX,EAEAD,EAAgB,aAAe,CAC7B,OAAQD,EACR,UAAWgB,EAAU,KACrB,eAAgB,GAChB,WAAYA,EAAU,MACtB,YAAaA,EAAU,MACzB"}
|
package/dist/index.cjs60.js
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var f=R,c=Symbol.for("react.element"),l=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function u(o,e,i){var r,n={},_=null,s=null;i!==void 0&&(_=""+i),e.key!==void 0&&(_=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)d.call(e,r)&&!y.hasOwnProperty(r)&&(n[r]=e[r]);if(o&&o.defaultProps)for(r in e=o.defaultProps,e)n[r]===void 0&&(n[r]=e[r]);return{$$typeof:c,type:o,key:_,ref:s,props:n,_owner:m.current}}return t.__exports.Fragment=l,t.__exports.jsx=u,t.__exports.jsxs=u,t.__exports}exports.__require=a;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
10
2
|
//# sourceMappingURL=index.cjs60.js.map
|
package/dist/index.cjs60.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs60.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs60.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs61.js
CHANGED
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.development.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/return process.env.NODE_ENV!=="production"&&function(){var Ee=tr,x=Symbol.for("react.element"),_e=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),q=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),G=Symbol.iterator,Re="@@iterator";function me(e){if(e===null||typeof e!="object")return null;var r=G&&e[G]||e[Re];return typeof r=="function"?r:null}var b=Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];Te("error",e,t)}}function Te(e,r,t){{var a=b.ReactDebugCurrentFrame,i=a.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Ce=!1,Pe=!1,Se=!1,Oe=!1,we=!1,z;z=Symbol.for("react.module.reference");function je(e){return!!(typeof e=="string"||typeof e=="function"||e===m||e===N||we||e===U||e===k||e===D||Oe||e===ye||Ce||Pe||Se||typeof e=="object"&&e!==null&&(e.$$typeof===F||e.$$typeof===C||e.$$typeof===B||e.$$typeof===q||e.$$typeof===T||e.$$typeof===z||e.getModuleId!==void 0))}function xe(e,r,t){var a=e.displayName;if(a)return a;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function J(e){return e.displayName||"Context"}function d(e){if(e==null)return null;if(typeof e.tag=="number"&&f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case _e:return"Portal";case N:return"Profiler";case U:return"StrictMode";case k:return"Suspense";case D:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case q:var r=e;return J(r)+".Consumer";case B:var t=e;return J(t._context)+".Provider";case T:return xe(e,e.render,"ForwardRef");case C:var a=e.displayName||null;return a!==null?a:d(e.type)||"Memo";case F:{var i=e,u=i._payload,o=i._init;try{return d(o(u))}catch{return null}}}return null}var g=Object.assign,_=0,K,H,X,Z,Q,ee,re;function te(){}te.__reactDisabledLog=!0;function ke(){{if(_===0){K=console.log,H=console.info,X=console.warn,Z=console.error,Q=console.group,ee=console.groupCollapsed,re=console.groupEnd;var e={configurable:!0,enumerable:!0,value:te,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}_++}}function De(){{if(_--,_===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:g({},e,{value:K}),info:g({},e,{value:H}),warn:g({},e,{value:X}),error:g({},e,{value:Z}),group:g({},e,{value:Q}),groupCollapsed:g({},e,{value:ee}),groupEnd:g({},e,{value:re})})}_<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var A=b.ReactCurrentDispatcher,I;function P(e,r,t){{if(I===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);I=a&&a[1]||""}return`
|
|
10
|
-
`+I+e}}var W=!1,S;{var Fe=typeof WeakMap=="function"?WeakMap:Map;S=new Fe}function ae(e,r){if(!e||W)return"";{var t=S.get(e);if(t!==void 0)return t}var a;W=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=A.current,A.current=null,ke();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(p){a=p}Reflect.construct(e,[],o)}else{try{o.call()}catch(p){a=p}e.call(o.prototype)}}else{try{throw Error()}catch(p){a=p}e()}}catch(p){if(p&&a&&typeof p.stack=="string"){for(var n=p.stack.split(`
|
|
11
|
-
`),c=a.stack.split(`
|
|
12
|
-
`),s=n.length-1,l=c.length-1;s>=1&&l>=0&&n[s]!==c[l];)l--;for(;s>=1&&l>=0;s--,l--)if(n[s]!==c[l]){if(s!==1||l!==1)do if(s--,l--,l<0||n[s]!==c[l]){var v=`
|
|
13
|
-
`+n[s].replace(" at new "," at ");return e.displayName&&v.includes("<anonymous>")&&(v=v.replace("<anonymous>",e.displayName)),typeof e=="function"&&S.set(e,v),v}while(s>=1&&l>=0);break}}}finally{W=!1,A.current=u,De(),Error.prepareStackTrace=i}var E=e?e.displayName||e.name:"",be=E?P(E):"";return typeof e=="function"&&S.set(e,be),be}function Ae(e,r,t){return ae(e,!1)}function Ie(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function O(e,r,t){if(e==null)return"";if(typeof e=="function")return ae(e,Ie(e));if(typeof e=="string")return P(e);switch(e){case k:return P("Suspense");case D:return P("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case T:return Ae(e.render);case C:return O(e.type,r,t);case F:{var a=e,i=a._payload,u=a._init;try{return O(u(i),r,t)}catch{}}}return""}var w=Object.prototype.hasOwnProperty,ne={},oe=b.ReactDebugCurrentFrame;function j(e){if(e){var r=e._owner,t=O(e.type,e._source,r?r.type:null);oe.setExtraStackFrame(t)}else oe.setExtraStackFrame(null)}function We(e,r,t,a,i){{var u=Function.call.bind(w);for(var o in e)if(u(e,o)){var n=void 0;try{if(typeof e[o]!="function"){var c=Error((a||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}n=e[o](r,o,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){n=s}n&&!(n instanceof Error)&&(j(i),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,o,typeof n),j(null)),n instanceof Error&&!(n.message in ne)&&(ne[n.message]=!0,j(i),f("Failed %s type: %s",t,n.message),j(null))}}}var Ye=Array.isArray;function Y(e){return Ye(e)}function $e(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Me(e){try{return ie(e),!1}catch{return!0}}function ie(e){return""+e}function ue(e){if(Me(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",$e(e)),ie(e)}var y=b.ReactCurrentOwner,Ve={key:!0,ref:!0,__self:!0,__source:!0},se,le,$;$={};function Le(e){if(w.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ue(e){if(w.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ne(e,r){if(typeof e.ref=="string"&&y.current&&r&&y.current.stateNode!==r){var t=d(y.current.type);$[t]||(f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',d(y.current.type),e.ref),$[t]=!0)}}function Be(e,r){{var t=function(){se||(se=!0,f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function qe(e,r){{var t=function(){le||(le=!0,f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Ge=function(e,r,t,a,i,u,o){var n={$$typeof:x,type:e,key:r,ref:t,props:o,_owner:u};return n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(n,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(n,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n};function ze(e,r,t,a,i){{var u,o={},n=null,c=null;t!==void 0&&(ue(t),n=""+t),Ue(r)&&(ue(r.key),n=""+r.key),Le(r)&&(c=r.ref,Ne(r,i));for(u in r)w.call(r,u)&&!Ve.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)o[u]===void 0&&(o[u]=s[u])}if(n||c){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;n&&Be(o,l),c&&qe(o,l)}return Ge(e,n,c,i,a,y.current,o)}}var M=b.ReactCurrentOwner,fe=b.ReactDebugCurrentFrame;function h(e){if(e){var r=e._owner,t=O(e.type,e._source,r?r.type:null);fe.setExtraStackFrame(t)}else fe.setExtraStackFrame(null)}var V;V=!1;function L(e){return typeof e=="object"&&e!==null&&e.$$typeof===x}function ce(){{if(M.current){var e=d(M.current.type);if(e)return`
|
|
14
|
-
|
|
15
|
-
Check the render method of \``+e+"`."}return""}}function Je(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
16
|
-
|
|
17
|
-
Check your code at `+r+":"+t+"."}return""}}var ve={};function Ke(e){{var r=ce();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
18
|
-
|
|
19
|
-
Check the top-level render call using <`+t+">.")}return r}}function de(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Ke(r);if(ve[t])return;ve[t]=!0;var a="";e&&e._owner&&e._owner!==M.current&&(a=" It was passed a child from "+d(e._owner.type)+"."),h(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),h(null)}}function pe(e,r){{if(typeof e!="object")return;if(Y(e))for(var t=0;t<e.length;t++){var a=e[t];L(a)&&de(a,r)}else if(L(e))e._store&&(e._store.validated=!0);else if(e){var i=me(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)L(o.value)&&de(o.value,r)}}}function He(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===T||r.$$typeof===C))t=r.propTypes;else return;if(t){var a=d(r);We(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!V){V=!0;var i=d(r);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xe(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){h(e),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),h(null);break}}e.ref!==null&&(h(e),f("Invalid attribute `ref` supplied to `React.Fragment`."),h(null))}}function ge(e,r,t,a,i,u){{var o=je(e);if(!o){var n="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(n+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var c=Je(i);c?n+=c:n+=ce();var s;e===null?s="null":Y(e)?s="array":e!==void 0&&e.$$typeof===x?(s="<"+(d(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,n)}var l=ze(e,r,t,i,u);if(l==null)return l;if(o){var v=r.children;if(v!==void 0)if(a)if(Y(v)){for(var E=0;E<v.length;E++)pe(v[E],e);Object.freeze&&Object.freeze(v)}else f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else pe(v,e)}return e===m?Xe(l):He(l),l}}function Ze(e,r,t){return ge(e,r,t,!0)}function Qe(e,r,t){return ge(e,r,t,!1)}var er=Qe,rr=Ze;R.__exports.Fragment=m,R.__exports.jsx=er,R.__exports.jsxs=rr}(),R.__exports}exports.__require=ar;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
20
2
|
//# sourceMappingURL=index.cjs61.js.map
|