@performant-software/geospatial 2.1.4-beta.5 → 2.1.4-beta.6

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.
Files changed (166) hide show
  1. package/dist/index.cjs15.js +1 -1
  2. package/dist/index.cjs16.js +1 -1
  3. package/dist/index.cjs164.js +1 -1
  4. package/dist/index.cjs165.js +1 -1
  5. package/dist/index.cjs166.js +1 -1
  6. package/dist/index.cjs167.js +1 -1
  7. package/dist/index.cjs168.js +1 -1
  8. package/dist/index.cjs169.js +1 -1
  9. package/dist/index.cjs170.js +1 -1
  10. package/dist/index.cjs171.js +1 -1
  11. package/dist/index.cjs172.js +1 -1
  12. package/dist/index.cjs173.js +1 -1
  13. package/dist/index.cjs174.js +1 -1
  14. package/dist/index.cjs176.js +1 -1
  15. package/dist/index.cjs176.js.map +1 -1
  16. package/dist/index.cjs177.js +1 -1
  17. package/dist/index.cjs177.js.map +1 -1
  18. package/dist/index.cjs178.js +1 -4
  19. package/dist/index.cjs178.js.map +1 -1
  20. package/dist/index.cjs179.js +1 -1
  21. package/dist/index.cjs179.js.map +1 -1
  22. package/dist/index.cjs180.js +1 -1
  23. package/dist/index.cjs180.js.map +1 -1
  24. package/dist/index.cjs181.js +1 -1
  25. package/dist/index.cjs181.js.map +1 -1
  26. package/dist/index.cjs182.js +1 -1
  27. package/dist/index.cjs182.js.map +1 -1
  28. package/dist/index.cjs183.js +1 -1
  29. package/dist/index.cjs183.js.map +1 -1
  30. package/dist/index.cjs184.js +1 -1
  31. package/dist/index.cjs184.js.map +1 -1
  32. package/dist/index.cjs185.js +1 -1
  33. package/dist/index.cjs185.js.map +1 -1
  34. package/dist/index.cjs186.js +4 -1
  35. package/dist/index.cjs186.js.map +1 -1
  36. package/dist/index.cjs187.js +1 -1
  37. package/dist/index.cjs187.js.map +1 -1
  38. package/dist/index.cjs188.js +1 -1
  39. package/dist/index.cjs188.js.map +1 -1
  40. package/dist/index.cjs189.js +1 -1
  41. package/dist/index.cjs189.js.map +1 -1
  42. package/dist/index.cjs190.js +1 -1
  43. package/dist/index.cjs190.js.map +1 -1
  44. package/dist/index.cjs191.js +1 -1
  45. package/dist/index.cjs191.js.map +1 -1
  46. package/dist/index.cjs192.js +1 -1
  47. package/dist/index.cjs192.js.map +1 -1
  48. package/dist/index.cjs193.js +1 -1
  49. package/dist/index.cjs193.js.map +1 -1
  50. package/dist/index.cjs194.js +1 -1
  51. package/dist/index.cjs194.js.map +1 -1
  52. package/dist/index.cjs195.js +1 -1
  53. package/dist/index.cjs195.js.map +1 -1
  54. package/dist/index.cjs196.js +1 -1
  55. package/dist/index.cjs196.js.map +1 -1
  56. package/dist/index.cjs197.js +1 -1
  57. package/dist/index.cjs197.js.map +1 -1
  58. package/dist/index.cjs198.js +1 -1
  59. package/dist/index.cjs198.js.map +1 -1
  60. package/dist/index.cjs201.js +1 -1
  61. package/dist/index.cjs202.js +1 -1
  62. package/dist/index.cjs203.js +1 -1
  63. package/dist/index.cjs221.js +1 -1
  64. package/dist/index.cjs226.js +1 -1
  65. package/dist/index.cjs229.js +1 -1
  66. package/dist/index.cjs229.js.map +1 -1
  67. package/dist/index.cjs230.js +1 -1
  68. package/dist/index.cjs230.js.map +1 -1
  69. package/dist/index.cjs232.js +1 -1
  70. package/dist/index.cjs235.js +1 -1
  71. package/dist/index.cjs241.js +1 -1
  72. package/dist/index.cjs247.js +1 -1
  73. package/dist/index.cjs252.js +1 -1
  74. package/dist/index.cjs46.js +1 -1
  75. package/dist/index.cjs49.js +1 -1
  76. package/dist/index.cjs51.js +1 -1
  77. package/dist/index.cjs57.js +1 -1
  78. package/dist/index.cjs57.js.map +1 -1
  79. package/dist/index.cjs58.js +1 -1
  80. package/dist/index.cjs58.js.map +1 -1
  81. package/dist/index.cjs59.js +1 -1
  82. package/dist/index.cjs59.js.map +1 -1
  83. package/dist/index.es15.js +2 -2
  84. package/dist/index.es16.js +2 -2
  85. package/dist/index.es164.js +1 -1
  86. package/dist/index.es165.js +4 -4
  87. package/dist/index.es166.js +2 -2
  88. package/dist/index.es167.js +2 -2
  89. package/dist/index.es168.js +1 -1
  90. package/dist/index.es169.js +1 -1
  91. package/dist/index.es170.js +1 -1
  92. package/dist/index.es171.js +1 -1
  93. package/dist/index.es172.js +1 -1
  94. package/dist/index.es173.js +2 -2
  95. package/dist/index.es174.js +2 -2
  96. package/dist/index.es176.js +320 -7
  97. package/dist/index.es176.js.map +1 -1
  98. package/dist/index.es177.js +71 -144
  99. package/dist/index.es177.js.map +1 -1
  100. package/dist/index.es178.js +3 -12197
  101. package/dist/index.es178.js.map +1 -1
  102. package/dist/index.es179.js +18 -3
  103. package/dist/index.es179.js.map +1 -1
  104. package/dist/index.es180.js +13 -3
  105. package/dist/index.es180.js.map +1 -1
  106. package/dist/index.es181.js +28 -33
  107. package/dist/index.es181.js.map +1 -1
  108. package/dist/index.es182.js +7 -3
  109. package/dist/index.es182.js.map +1 -1
  110. package/dist/index.es183.js +2 -23
  111. package/dist/index.es183.js.map +1 -1
  112. package/dist/index.es184.js +10 -2
  113. package/dist/index.es184.js.map +1 -1
  114. package/dist/index.es185.js +150 -3
  115. package/dist/index.es185.js.map +1 -1
  116. package/dist/index.es186.js +12199 -2
  117. package/dist/index.es186.js.map +1 -1
  118. package/dist/index.es187.js +3 -34
  119. package/dist/index.es187.js.map +1 -1
  120. package/dist/index.es188.js +2 -14
  121. package/dist/index.es188.js.map +1 -1
  122. package/dist/index.es189.js +35 -13
  123. package/dist/index.es189.js.map +1 -1
  124. package/dist/index.es190.js +3 -11
  125. package/dist/index.es190.js.map +1 -1
  126. package/dist/index.es191.js +21 -319
  127. package/dist/index.es191.js.map +1 -1
  128. package/dist/index.es192.js +2 -77
  129. package/dist/index.es192.js.map +1 -1
  130. package/dist/index.es193.js +3 -5
  131. package/dist/index.es193.js.map +1 -1
  132. package/dist/index.es194.js +2 -18
  133. package/dist/index.es194.js.map +1 -1
  134. package/dist/index.es195.js +31 -10
  135. package/dist/index.es195.js.map +1 -1
  136. package/dist/index.es196.js +13 -31
  137. package/dist/index.es196.js.map +1 -1
  138. package/dist/index.es197.js +13 -4
  139. package/dist/index.es197.js.map +1 -1
  140. package/dist/index.es198.js +9 -2
  141. package/dist/index.es198.js.map +1 -1
  142. package/dist/index.es201.js +1 -1
  143. package/dist/index.es202.js +1 -1
  144. package/dist/index.es203.js +1 -1
  145. package/dist/index.es221.js +1 -1
  146. package/dist/index.es226.js +1 -1
  147. package/dist/index.es229.js +6 -4
  148. package/dist/index.es229.js.map +1 -1
  149. package/dist/index.es230.js +4 -6
  150. package/dist/index.es230.js.map +1 -1
  151. package/dist/index.es232.js +1 -1
  152. package/dist/index.es235.js +1 -1
  153. package/dist/index.es241.js +2 -2
  154. package/dist/index.es247.js +1 -1
  155. package/dist/index.es252.js +2 -2
  156. package/dist/index.es46.js +1 -1
  157. package/dist/index.es49.js +1 -1
  158. package/dist/index.es51.js +12 -12
  159. package/dist/index.es57.js +107 -2
  160. package/dist/index.es57.js.map +1 -1
  161. package/dist/index.es58.js +10 -107
  162. package/dist/index.es58.js.map +1 -1
  163. package/dist/index.es59.js +2 -10
  164. package/dist/index.es59.js.map +1 -1
  165. package/dist/style.css +1 -1
  166. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs177.js");function t(f){var i=[1/0,1/0,-1/0,-1/0];return e.coordEach(f,function(n){i[0]>n[0]&&(i[0]=n[0]),i[1]>n[1]&&(i[1]=n[1]),i[2]<n[0]&&(i[2]=n[0]),i[3]<n[1]&&(i[3]=n[1])}),i}t.default=t;module.exports=t;
1
+ "use strict";const e=require("./index.cjs185.js");function t(f){var i=[1/0,1/0,-1/0,-1/0];return e.coordEach(f,function(n){i[0]>n[0]&&(i[0]=n[0]),i[1]>n[1]&&(i[1]=n[1]),i[2]<n[0]&&(i[2]=n[0]),i[3]<n[1]&&(i[3]=n[1])}),i}t.default=t;module.exports=t;
2
2
  //# sourceMappingURL=index.cjs49.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const x=require("./index.cjs176.js"),v=require("./index.cjs178.js"),p=require("./index.cjs177.js");require("./index.cjs179.js");require("./index.cjs180.js");require("./index.cjs181.js");require("./index.cjs182.js");require("./index.cjs183.js");require("./index.cjs184.js");require("./index.cjs185.js");require("./index.cjs186.js");require("./index.cjs187.js");require("./index.cjs188.js");const G=require("./index.cjs189.js");require("./index.cjs190.js");const a=require("./index.cjs48.js");function O(e,r,t){t=t||{};var o=t.units||"kilometers",n=t.steps||8;if(!e)throw new Error("geojson is required");if(typeof t!="object")throw new Error("options must be an object");if(typeof n!="number")throw new Error("steps must be an number");if(r===void 0)throw new Error("radius is required");if(n<=0)throw new Error("steps must be greater than 0");var i=[];switch(e.type){case"GeometryCollection":return p.geomEach(e,function(f){var u=d(f,r,o,n);u&&i.push(u)}),a.featureCollection(i);case"FeatureCollection":return p.featureEach(e,function(f){var u=d(f,r,o,n);u&&p.featureEach(u,function(s){s&&i.push(s)})}),a.featureCollection(i)}return d(e,r,o,n)}function d(e,r,t,o){var n=e.properties||{},i=e.type==="Feature"?e.geometry:e;if(i.type==="GeometryCollection"){var f=[];return p.geomEach(e,function(N){var l=d(N,r,t,o);l&&f.push(l)}),a.featureCollection(f)}var u=F(i),s={type:i.type,coordinates:q(i.coordinates,u)},y=new v.GeoJSONReader,w=y.read(s),b=a.radiansToLength(a.lengthToRadians(r,t),"meters"),c=v.BufferOp.bufferOp(w,b,o),E=new v.GeoJSONWriter;if(c=E.write(c),!m(c.coordinates)){var C={type:c.type,coordinates:h(c.coordinates,u)};return a.feature(C,n)}}function m(e){return Array.isArray(e[0])?m(e[0]):isNaN(e[0])}function q(e,r){return typeof e[0]!="object"?r(e):e.map(function(t){return q(t,r)})}function h(e,r){return typeof e[0]!="object"?r.invert(e):e.map(function(t){return h(t,r)})}function F(e){var r=x(e).geometry.coordinates,t=[-r[0],-r[1]];return G.default().rotate(t).scale(a.earthRadius)}module.exports=O;
1
+ "use strict";const x=require("./index.cjs184.js"),v=require("./index.cjs186.js"),p=require("./index.cjs185.js");require("./index.cjs187.js");require("./index.cjs188.js");require("./index.cjs189.js");require("./index.cjs190.js");require("./index.cjs191.js");require("./index.cjs192.js");require("./index.cjs193.js");require("./index.cjs194.js");require("./index.cjs195.js");require("./index.cjs196.js");const G=require("./index.cjs197.js");require("./index.cjs198.js");const a=require("./index.cjs48.js");function O(e,r,t){t=t||{};var o=t.units||"kilometers",n=t.steps||8;if(!e)throw new Error("geojson is required");if(typeof t!="object")throw new Error("options must be an object");if(typeof n!="number")throw new Error("steps must be an number");if(r===void 0)throw new Error("radius is required");if(n<=0)throw new Error("steps must be greater than 0");var i=[];switch(e.type){case"GeometryCollection":return p.geomEach(e,function(f){var u=d(f,r,o,n);u&&i.push(u)}),a.featureCollection(i);case"FeatureCollection":return p.featureEach(e,function(f){var u=d(f,r,o,n);u&&p.featureEach(u,function(s){s&&i.push(s)})}),a.featureCollection(i)}return d(e,r,o,n)}function d(e,r,t,o){var n=e.properties||{},i=e.type==="Feature"?e.geometry:e;if(i.type==="GeometryCollection"){var f=[];return p.geomEach(e,function(N){var l=d(N,r,t,o);l&&f.push(l)}),a.featureCollection(f)}var u=F(i),s={type:i.type,coordinates:q(i.coordinates,u)},y=new v.GeoJSONReader,w=y.read(s),b=a.radiansToLength(a.lengthToRadians(r,t),"meters"),c=v.BufferOp.bufferOp(w,b,o),E=new v.GeoJSONWriter;if(c=E.write(c),!m(c.coordinates)){var C={type:c.type,coordinates:h(c.coordinates,u)};return a.feature(C,n)}}function m(e){return Array.isArray(e[0])?m(e[0]):isNaN(e[0])}function q(e,r){return typeof e[0]!="object"?r(e):e.map(function(t){return q(t,r)})}function h(e,r){return typeof e[0]!="object"?r.invert(e):e.map(function(t){return h(t,r)})}function F(e){var r=x(e).geometry.coordinates,t=[-r[0],-r[1]];return G.default().rotate(t).scale(a.earthRadius)}module.exports=O;
2
2
  //# sourceMappingURL=index.cjs51.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),s=require("./index.cjs58.js");var O=["attr","size","title"];function v(e,t){if(e==null)return{};var r=p(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(n){j(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j(e,t,r){return t=P(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e){var t=d(e,"string");return typeof t=="symbol"?t:String(t)}function d(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b(e){return e&&e.map((t,r)=>l.createElement(t.tag,u({key:r},t.attr),b(t.child)))}function h(e){return t=>l.createElement(g,c({attr:u({},e.attr)},t),b(e.child))}function g(e){var t=r=>{var{attr:n,size:i,title:o}=e,y=v(e,O),f=i||r.size||"1em",a;return r.className&&(a=r.className),e.className&&(a=(a?a+" ":"")+e.className),l.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,y,{className:a,style:u(u({color:e.color||r.color},r.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),o&&l.createElement("title",null,o),e.children)};return s.IconContext!==void 0?l.createElement(s.IconContext.Consumer,null,r=>t(r)):t(s.DefaultContext)}exports.GenIcon=h;exports.IconBase=g;
2
2
  //# sourceMappingURL=index.cjs57.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs57.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs57.js","sources":["../../../node_modules/react-icons/lib/iconBase.mjs"],"sourcesContent":["var _excluded = [\"attr\", \"size\", \"title\"];\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport React from \"react\";\nimport { IconContext, DefaultContext } from \"./iconContext.mjs\";\nfunction Tree2Element(tree) {\n return tree && tree.map((node, i) => /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: i\n }, node.attr), Tree2Element(node.child)));\n}\nexport function GenIcon(data) {\n // eslint-disable-next-line react/display-name\n return props => /*#__PURE__*/React.createElement(IconBase, _extends({\n attr: _objectSpread({}, data.attr)\n }, props), Tree2Element(data.child));\n}\nexport function IconBase(props) {\n var elem = conf => {\n var {\n attr,\n size,\n title\n } = props,\n svgProps = _objectWithoutProperties(props, _excluded);\n var computedSize = size || conf.size || \"1em\";\n var className;\n if (conf.className) className = conf.className;\n if (props.className) className = (className ? className + \" \" : \"\") + props.className;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: \"0\"\n }, conf.attr, attr, svgProps, {\n className: className,\n style: _objectSpread(_objectSpread({\n color: props.color || conf.color\n }, conf.style), props.style),\n height: computedSize,\n width: computedSize,\n xmlns: \"http://www.w3.org/2000/svg\"\n }), title && /*#__PURE__*/React.createElement(\"title\", null, title), props.children);\n };\n return IconContext !== undefined ? /*#__PURE__*/React.createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);\n}"],"names":["_excluded","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","key","sourceSymbolKeys","sourceKeys","i","_extends","ownKeys","r","t","o","_objectSpread","_defineProperty","obj","value","_toPropertyKey","arg","_toPrimitive","input","hint","prim","res","Tree2Element","tree","node","React","GenIcon","data","props","IconBase","elem","conf","attr","size","title","svgProps","computedSize","className","IconContext","DefaultContext"],"mappings":"uIAAA,IAAIA,EAAY,CAAC,OAAQ,OAAQ,OAAO,EACxC,SAASC,EAAyBC,EAAQC,EAAU,CAAE,GAAID,GAAU,KAAM,MAAO,GAAI,IAAIE,EAASC,EAA8BH,EAAQC,CAAQ,EAAOG,EAAK,EAAG,GAAI,OAAO,sBAAuB,CAAE,IAAIC,EAAmB,OAAO,sBAAsBL,CAAM,EAAG,IAAK,EAAI,EAAG,EAAIK,EAAiB,OAAQ,IAAOD,EAAMC,EAAiB,CAAC,EAAO,EAAAJ,EAAS,QAAQG,CAAG,GAAK,IAAkB,OAAO,UAAU,qBAAqB,KAAKJ,EAAQI,CAAG,IAAaF,EAAOE,CAAG,EAAIJ,EAAOI,CAAG,EAAI,CAAG,OAAOF,CAAS,CAC5e,SAASC,EAA8BH,EAAQC,EAAU,CAAE,GAAID,GAAU,KAAM,MAAO,CAAE,EAAE,IAAIE,EAAS,CAAE,EAAMI,EAAa,OAAO,KAAKN,CAAM,EAAOI,EAAKG,EAAG,IAAKA,EAAI,EAAGA,EAAID,EAAW,OAAQC,IAAOH,EAAME,E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OhC,CAAS,EAClDwC,EAAeH,GAAQF,EAAK,MAAQ,MACpCM,EACJ,OAAIN,EAAK,YAAWM,EAAYN,EAAK,WACjCH,EAAM,YAAWS,GAAaA,EAAYA,EAAY,IAAM,IAAMT,EAAM,WACxDH,EAAM,cAAc,MAAOnB,EAAS,CACtD,OAAQ,eACR,KAAM,eACN,YAAa,GACd,EAAEyB,EAAK,KAAMC,EAAMG,EAAU,CAC5B,UAAWE,EACX,MAAO1B,EAAcA,EAAc,CACjC,MAAOiB,EAAM,OAASG,EAAK,KAC5B,EAAEA,EAAK,KAAK,EAAGH,EAAM,KAAK,EAC3B,OAAQQ,EACR,MAAOA,EACP,MAAO,4BACb,CAAK,EAAGF,GAAsBT,EAAM,cAAc,QAAS,KAAMS,CAAK,EAAGN,EAAM,QAAQ,CACvF,EACE,OAAOU,EAAW,cAAK,OAAyBb,EAAM,cAAca,EAAW,YAAC,SAAU,KAAMP,GAAQD,EAAKC,CAAI,CAAC,EAAID,EAAKS,EAAc,cAAA,CAC3I","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),s=require("./index.cjs59.js");var O=["attr","size","title"];function v(e,t){if(e==null)return{};var r=p(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(n){j(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j(e,t,r){return t=P(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e){var t=d(e,"string");return typeof t=="symbol"?t:String(t)}function d(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b(e){return e&&e.map((t,r)=>l.createElement(t.tag,u({key:r},t.attr),b(t.child)))}function h(e){return t=>l.createElement(g,c({attr:u({},e.attr)},t),b(e.child))}function g(e){var t=r=>{var{attr:n,size:i,title:o}=e,y=v(e,O),f=i||r.size||"1em",a;return r.className&&(a=r.className),e.className&&(a=(a?a+" ":"")+e.className),l.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,y,{className:a,style:u(u({color:e.color||r.color},r.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),o&&l.createElement("title",null,o),e.children)};return s.IconContext!==void 0?l.createElement(s.IconContext.Consumer,null,r=>t(r)):t(s.DefaultContext)}exports.GenIcon=h;exports.IconBase=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");var t={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=e.createContext&&e.createContext(t);exports.DefaultContext=t;exports.IconContext=n;
2
2
  //# sourceMappingURL=index.cjs58.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs58.js","sources":["../../../node_modules/react-icons/lib/iconBase.mjs"],"sourcesContent":["var _excluded = [\"attr\", \"size\", \"title\"];\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport React from \"react\";\nimport { IconContext, DefaultContext } from \"./iconContext.mjs\";\nfunction Tree2Element(tree) {\n return tree && tree.map((node, i) => /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: i\n }, node.attr), Tree2Element(node.child)));\n}\nexport function GenIcon(data) {\n // eslint-disable-next-line react/display-name\n return props => /*#__PURE__*/React.createElement(IconBase, _extends({\n attr: _objectSpread({}, data.attr)\n }, props), Tree2Element(data.child));\n}\nexport function IconBase(props) {\n var elem = conf => {\n var {\n attr,\n size,\n title\n } = props,\n svgProps = _objectWithoutProperties(props, _excluded);\n var computedSize = size || conf.size || \"1em\";\n var className;\n if (conf.className) className = conf.className;\n if (props.className) className = (className ? className + \" \" : \"\") + props.className;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: \"0\"\n }, conf.attr, attr, svgProps, {\n className: className,\n style: _objectSpread(_objectSpread({\n color: props.color || conf.color\n }, conf.style), props.style),\n height: computedSize,\n width: computedSize,\n xmlns: \"http://www.w3.org/2000/svg\"\n }), title && /*#__PURE__*/React.createElement(\"title\", null, title), props.children);\n };\n return IconContext !== undefined ? /*#__PURE__*/React.createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);\n}"],"names":["_excluded","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","key","sourceSymbolKeys","sourceKeys","i","_extends","ownKeys","r","t","o","_objectSpread","_defineProperty","obj","value","_toPropertyKey","arg","_toPrimitive","input","hint","prim","res","Tree2Element","tree","node","React","GenIcon","data","props","IconBase","elem","conf","attr","size","title","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K,OAAyBb,EAAM,cAAca,EAAW,YAAC,SAAU,KAAMP,GAAQD,EAAKC,CAAI,CAAC,EAAID,EAAKS,EAAc,cAAA,CAC3I","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs58.js","sources":["../../../node_modules/react-icons/lib/iconContext.mjs"],"sourcesContent":["import React from \"react\";\nexport var DefaultContext = {\n color: undefined,\n size: undefined,\n className: undefined,\n style: undefined,\n attr: undefined\n};\nexport var IconContext = React.createContext && /*#__PURE__*/React.createContext(DefaultContext);"],"names":["DefaultContext","IconContext","React"],"mappings":"yGACU,IAACA,EAAiB,CAC1B,MAAO,OACP,KAAM,OACN,UAAW,OACX,MAAO,OACP,KAAM,MACR,EACWC,EAAcC,EAAM,eAA8BA,EAAM,cAAcF,CAAc","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");var t={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=e.createContext&&e.createContext(t);exports.DefaultContext=t;exports.IconContext=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
2
2
  //# sourceMappingURL=index.cjs59.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs59.js","sources":["../../../node_modules/react-icons/lib/iconContext.mjs"],"sourcesContent":["import React from \"react\";\nexport var DefaultContext = {\n color: undefined,\n size: undefined,\n className: undefined,\n style: undefined,\n attr: undefined\n};\nexport var IconContext = React.createContext && /*#__PURE__*/React.createContext(DefaultContext);"],"names":["DefaultContext","IconContext","React"],"mappings":"yGACU,IAACA,EAAiB,CAC1B,MAAO,OACP,KAAM,OACN,UAAW,OACX,MAAO,OACP,KAAM,MACR,EACWC,EAAcC,EAAM,eAA8BA,EAAM,cAAcF,CAAc","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs59.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- import { GenIcon as a } from "./index.es58.js";
2
- import "./index.es59.js";
1
+ import { GenIcon as a } from "./index.es57.js";
2
+ import "./index.es58.js";
3
3
  function c(t) {
4
4
  return a({ 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);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { GenIcon as o } from "./index.es58.js";
2
- import "./index.es59.js";
1
+ import { GenIcon as o } from "./index.es57.js";
2
+ import "./index.es58.js";
3
3
  function e(t) {
4
4
  return o({ 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: [] }] })(t);
5
5
  }
@@ -1,4 +1,4 @@
1
- import { __exports as a } from "./index.es198.js";
1
+ import { __exports as a } from "./index.es183.js";
2
2
  function i(r, s) {
3
3
  for (var o = 0; o < s.length; o++) {
4
4
  const e = s[o];
@@ -1,10 +1,10 @@
1
1
  import * as l from "react";
2
2
  import { useContext as b, useState as E, useRef as c, useEffect as x, useImperativeHandle as w, useMemo as y } from "react";
3
3
  import { MountedMapsContext as L } from "./index.es175.js";
4
- import m from "./index.es191.js";
5
- import I from "./index.es192.js";
6
- import C from "./index.es193.js";
7
- import g from "./index.es194.js";
4
+ import m from "./index.es176.js";
5
+ import I from "./index.es177.js";
6
+ import C from "./index.es178.js";
7
+ import g from "./index.es179.js";
8
8
  const R = l.createContext(null);
9
9
  function A(e, f, d) {
10
10
  const o = b(L), [i, p] = E(null), s = c(), { current: a } = c({ mapLib: null, map: null });
@@ -1,9 +1,9 @@
1
1
  import * as k from "react";
2
2
  import { memo as A, forwardRef as P, useContext as C, useRef as D, useMemo as M, useEffect as h, useImperativeHandle as y } from "react";
3
3
  import { createPortal as w } from "react-dom";
4
- import { applyReactStyle as x } from "./index.es195.js";
4
+ import { applyReactStyle as x } from "./index.es180.js";
5
5
  import { MapContext as O } from "./index.es165.js";
6
- import { arePointsEqual as S } from "./index.es196.js";
6
+ import { arePointsEqual as S } from "./index.es181.js";
7
7
  function q(o, E) {
8
8
  const { map: R, mapLib: b } = C(O), i = D({ props: o });
9
9
  i.current.props = o;
@@ -1,8 +1,8 @@
1
1
  import { createPortal as h } from "react-dom";
2
2
  import { memo as L, forwardRef as v, useContext as C, useMemo as f, useRef as x, useEffect as m, useImperativeHandle as N } from "react";
3
- import { applyReactStyle as M } from "./index.es195.js";
3
+ import { applyReactStyle as M } from "./index.es180.js";
4
4
  import { MapContext as O } from "./index.es165.js";
5
- import { deepEqual as y } from "./index.es196.js";
5
+ import { deepEqual as y } from "./index.es181.js";
6
6
  function r(t) {
7
7
  return new Set(t ? t.trim().split(/\s+/) : []);
8
8
  }
@@ -1,5 +1,5 @@
1
1
  import { memo as i, useEffect as r } from "react";
2
- import { applyReactStyle as e } from "./index.es195.js";
2
+ import { applyReactStyle as e } from "./index.es180.js";
3
3
  import l from "./index.es13.js";
4
4
  function m(t) {
5
5
  const o = l(({ mapLib: n }) => new n.AttributionControl(t), {
@@ -1,5 +1,5 @@
1
1
  import { memo as o, useEffect as l } from "react";
2
- import { applyReactStyle as r } from "./index.es195.js";
2
+ import { applyReactStyle as r } from "./index.es180.js";
3
3
  import c from "./index.es13.js";
4
4
  function i(t) {
5
5
  const n = c(({ mapLib: e }) => new e.FullscreenControl({
@@ -1,5 +1,5 @@
1
1
  import { memo as s, forwardRef as d, useRef as v, useImperativeHandle as _, useEffect as f } from "react";
2
- import { applyReactStyle as p } from "./index.es195.js";
2
+ import { applyReactStyle as p } from "./index.es180.js";
3
3
  import m from "./index.es13.js";
4
4
  function b(e, c) {
5
5
  const a = v({ props: e }), l = m(({ mapLib: i }) => {
@@ -1,5 +1,5 @@
1
1
  import { memo as i, useEffect as e } from "react";
2
- import { applyReactStyle as l } from "./index.es195.js";
2
+ import { applyReactStyle as l } from "./index.es180.js";
3
3
  import r from "./index.es13.js";
4
4
  function m(t) {
5
5
  const o = r(({ mapLib: n }) => new n.NavigationControl(t), {
@@ -1,5 +1,5 @@
1
1
  import { memo as m, useRef as u, useEffect as l } from "react";
2
- import { applyReactStyle as a } from "./index.es195.js";
2
+ import { applyReactStyle as a } from "./index.es180.js";
3
3
  import f from "./index.es13.js";
4
4
  function r(t) {
5
5
  const i = f(({ mapLib: c }) => new c.ScaleControl(t), {
@@ -1,7 +1,7 @@
1
1
  import { useContext as m, useRef as L, useState as g, useMemo as x, useEffect as h } from "react";
2
2
  import { MapContext as b } from "./index.es165.js";
3
- import d from "./index.es197.js";
4
- import { deepEqual as l } from "./index.es196.js";
3
+ import d from "./index.es182.js";
4
+ import { deepEqual as l } from "./index.es181.js";
5
5
  function k(t, e, a, o) {
6
6
  if (d(a.id === o.id, "layer id changed"), d(a.type === o.type, "layer type changed"), a.type === "custom" || o.type === "custom")
7
7
  return;
@@ -1,8 +1,8 @@
1
1
  import * as u from "react";
2
2
  import { useContext as f, useRef as y, useState as m, useMemo as g, useEffect as S, cloneElement as h } from "react";
3
3
  import { MapContext as C } from "./index.es165.js";
4
- import s from "./index.es197.js";
5
- import { deepEqual as v } from "./index.es196.js";
4
+ import s from "./index.es182.js";
5
+ import { deepEqual as v } from "./index.es181.js";
6
6
  let x = 0;
7
7
  function U(t, e, a) {
8
8
  if (t.style && t.style._loaded) {
@@ -1,11 +1,324 @@
1
- import i from "./index.es49.js";
2
- import { point as m } from "./index.es48.js";
3
- function x(t, r) {
4
- r === void 0 && (r = {});
5
- var e = i(t), a = (e[0] + e[2]) / 2, f = (e[1] + e[3]) / 2;
6
- return m([a, f], r.properties, r);
1
+ import { syncProjection as f, cloneTransform as T, applyViewStateToTransform as p, transformToViewState as _ } from "./index.es226.js";
2
+ import { normalizeStyle as v } from "./index.es227.js";
3
+ import { deepEqual as h } from "./index.es181.js";
4
+ const g = { version: 8, sources: {}, layers: [] }, y = {
5
+ mousedown: "onMouseDown",
6
+ mouseup: "onMouseUp",
7
+ mouseover: "onMouseOver",
8
+ mousemove: "onMouseMove",
9
+ click: "onClick",
10
+ dblclick: "onDblClick",
11
+ mouseenter: "onMouseEnter",
12
+ mouseleave: "onMouseLeave",
13
+ mouseout: "onMouseOut",
14
+ contextmenu: "onContextMenu",
15
+ touchstart: "onTouchStart",
16
+ touchend: "onTouchEnd",
17
+ touchmove: "onTouchMove",
18
+ touchcancel: "onTouchCancel"
19
+ }, u = {
20
+ movestart: "onMoveStart",
21
+ move: "onMove",
22
+ moveend: "onMoveEnd",
23
+ dragstart: "onDragStart",
24
+ drag: "onDrag",
25
+ dragend: "onDragEnd",
26
+ zoomstart: "onZoomStart",
27
+ zoom: "onZoom",
28
+ zoomend: "onZoomEnd",
29
+ rotatestart: "onRotateStart",
30
+ rotate: "onRotate",
31
+ rotateend: "onRotateEnd",
32
+ pitchstart: "onPitchStart",
33
+ pitch: "onPitch",
34
+ pitchend: "onPitchEnd"
35
+ }, S = {
36
+ wheel: "onWheel",
37
+ boxzoomstart: "onBoxZoomStart",
38
+ boxzoomend: "onBoxZoomEnd",
39
+ boxzoomcancel: "onBoxZoomCancel",
40
+ resize: "onResize",
41
+ load: "onLoad",
42
+ render: "onRender",
43
+ idle: "onIdle",
44
+ remove: "onRemove",
45
+ data: "onData",
46
+ styledata: "onStyleData",
47
+ sourcedata: "onSourceData",
48
+ error: "onError"
49
+ }, E = [
50
+ "minZoom",
51
+ "maxZoom",
52
+ "minPitch",
53
+ "maxPitch",
54
+ "maxBounds",
55
+ "projection",
56
+ "renderWorldCopies"
57
+ ], C = [
58
+ "scrollZoom",
59
+ "boxZoom",
60
+ "dragRotate",
61
+ "dragPan",
62
+ "keyboard",
63
+ "doubleClickZoom",
64
+ "touchZoomRotate",
65
+ "touchPitch"
66
+ ];
67
+ class m {
68
+ constructor(e, o, n) {
69
+ this._map = null, this._internalUpdate = !1, this._inRender = !1, this._hoveredFeatures = null, this._deferredEvents = {
70
+ move: !1,
71
+ zoom: !1,
72
+ pitch: !1,
73
+ rotate: !1
74
+ }, this._onEvent = (t) => {
75
+ const r = this.props[S[t.type]];
76
+ r ? r(t) : t.type === "error" && console.error(t.error);
77
+ }, this._onPointerEvent = (t) => {
78
+ (t.type === "mousemove" || t.type === "mouseout") && this._updateHover(t);
79
+ const r = this.props[y[t.type]];
80
+ r && (this.props.interactiveLayerIds && t.type !== "mouseover" && t.type !== "mouseout" && (t.features = this._hoveredFeatures || this._queryRenderedFeatures(t.point)), r(t), delete t.features);
81
+ }, this._onCameraEvent = (t) => {
82
+ if (!this._internalUpdate) {
83
+ const r = this.props[u[t.type]];
84
+ r && r(t);
85
+ }
86
+ t.type in this._deferredEvents && (this._deferredEvents[t.type] = !1);
87
+ }, this._MapClass = e, this.props = o, this._initialize(n);
88
+ }
89
+ get map() {
90
+ return this._map;
91
+ }
92
+ get transform() {
93
+ return this._renderTransform;
94
+ }
95
+ setProps(e) {
96
+ const o = this.props;
97
+ this.props = e;
98
+ const n = this._updateSettings(e, o);
99
+ n && this._createShadowTransform(this._map);
100
+ const t = this._updateSize(e), r = this._updateViewState(e, !0);
101
+ this._updateStyle(e, o), this._updateStyleComponents(e, o), this._updateHandlers(e, o), (n || t || r && !this._map.isMoving()) && this.redraw();
102
+ }
103
+ static reuse(e, o) {
104
+ const n = m.savedMaps.pop();
105
+ if (!n)
106
+ return null;
107
+ const t = n.map, r = t.getContainer();
108
+ for (o.className = r.className; r.childNodes.length > 0; )
109
+ o.appendChild(r.childNodes[0]);
110
+ t._container = o;
111
+ const s = t._resizeObserver;
112
+ s && (s.disconnect(), s.observe(o)), n.setProps({ ...e, styleDiffing: !1 }), t.resize();
113
+ const { initialViewState: i } = e;
114
+ 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;
115
+ }
116
+ /* eslint-disable complexity,max-statements */
117
+ _initialize(e) {
118
+ const { props: o } = this, { mapStyle: n = g } = o, t = {
119
+ ...o,
120
+ ...o.initialViewState,
121
+ accessToken: o.mapboxAccessToken || M() || null,
122
+ container: e,
123
+ style: v(n)
124
+ }, r = t.initialViewState || t.viewState || t;
125
+ if (Object.assign(t, {
126
+ center: [r.longitude || 0, r.latitude || 0],
127
+ zoom: r.zoom || 0,
128
+ pitch: r.pitch || 0,
129
+ bearing: r.bearing || 0
130
+ }), o.gl) {
131
+ const a = HTMLCanvasElement.prototype.getContext;
132
+ HTMLCanvasElement.prototype.getContext = () => (HTMLCanvasElement.prototype.getContext = a, o.gl);
133
+ }
134
+ const s = new this._MapClass(t);
135
+ r.padding && s.setPadding(r.padding), o.cursor && (s.getCanvas().style.cursor = o.cursor), this._createShadowTransform(s);
136
+ const i = s._render;
137
+ s._render = (a) => {
138
+ this._inRender = !0, i.call(s, a), this._inRender = !1;
139
+ };
140
+ const c = s._renderTaskQueue.run;
141
+ s._renderTaskQueue.run = (a) => {
142
+ c.call(s._renderTaskQueue, a), this._onBeforeRepaint();
143
+ }, s.on("render", () => this._onAfterRepaint());
144
+ const l = s.fire;
145
+ s.fire = this._fireEvent.bind(this, l), s.on("resize", () => {
146
+ this._renderTransform.resize(s.transform.width, s.transform.height);
147
+ }), s.on("styledata", () => {
148
+ this._updateStyleComponents(this.props, {}), f(s.transform, this._renderTransform);
149
+ }), s.on("sourcedata", () => this._updateStyleComponents(this.props, {}));
150
+ for (const a in y)
151
+ s.on(a, this._onPointerEvent);
152
+ for (const a in u)
153
+ s.on(a, this._onCameraEvent);
154
+ for (const a in S)
155
+ s.on(a, this._onEvent);
156
+ this._map = s;
157
+ }
158
+ /* eslint-enable complexity,max-statements */
159
+ recycle() {
160
+ const o = this.map.getContainer().querySelector("[mapboxgl-children]");
161
+ o == null || o.remove(), m.savedMaps.push(this);
162
+ }
163
+ destroy() {
164
+ this._map.remove();
165
+ }
166
+ // Force redraw the map now. Typically resize() and jumpTo() is reflected in the next
167
+ // render cycle, which is managed by Mapbox's animation loop.
168
+ // This removes the synchronization issue caused by requestAnimationFrame.
169
+ redraw() {
170
+ const e = this._map;
171
+ !this._inRender && e.style && (e._frame && (e._frame.cancel(), e._frame = null), e._render());
172
+ }
173
+ _createShadowTransform(e) {
174
+ const o = T(e.transform);
175
+ e.painter.transform = o, this._renderTransform = o;
176
+ }
177
+ /* Trigger map resize if size is controlled
178
+ @param {object} nextProps
179
+ @returns {bool} true if size has changed
180
+ */
181
+ _updateSize(e) {
182
+ const { viewState: o } = e;
183
+ if (o) {
184
+ const n = this._map;
185
+ if (o.width !== n.transform.width || o.height !== n.transform.height)
186
+ return n.resize(), !0;
187
+ }
188
+ return !1;
189
+ }
190
+ // Adapted from map.jumpTo
191
+ /* Update camera to match props
192
+ @param {object} nextProps
193
+ @param {bool} triggerEvents - should fire camera events
194
+ @returns {bool} true if anything is changed
195
+ */
196
+ _updateViewState(e, o) {
197
+ if (this._internalUpdate)
198
+ return !1;
199
+ const n = this._map, t = this._renderTransform, { zoom: r, pitch: s, bearing: i } = t, c = n.isMoving();
200
+ c && (t.cameraElevationReference = "sea");
201
+ const l = p(t, {
202
+ ..._(n.transform),
203
+ ...e
204
+ });
205
+ if (c && (t.cameraElevationReference = "ground"), l && o) {
206
+ const a = this._deferredEvents;
207
+ a.move = !0, a.zoom || (a.zoom = r !== t.zoom), a.rotate || (a.rotate = i !== t.bearing), a.pitch || (a.pitch = s !== t.pitch);
208
+ }
209
+ return c || p(n.transform, e), l;
210
+ }
211
+ /* Update camera constraints and projection settings to match props
212
+ @param {object} nextProps
213
+ @param {object} currProps
214
+ @returns {bool} true if anything is changed
215
+ */
216
+ _updateSettings(e, o) {
217
+ const n = this._map;
218
+ let t = !1;
219
+ for (const r of E)
220
+ if (r in e && !h(e[r], o[r])) {
221
+ t = !0;
222
+ const s = n[`set${r[0].toUpperCase()}${r.slice(1)}`];
223
+ s == null || s.call(n, e[r]);
224
+ }
225
+ return t;
226
+ }
227
+ /* Update map style to match props
228
+ @param {object} nextProps
229
+ @param {object} currProps
230
+ @returns {bool} true if style is changed
231
+ */
232
+ _updateStyle(e, o) {
233
+ if (e.cursor !== o.cursor && (this._map.getCanvas().style.cursor = e.cursor || ""), e.mapStyle !== o.mapStyle) {
234
+ const { mapStyle: n = g, styleDiffing: t = !0 } = e, r = {
235
+ diff: t
236
+ };
237
+ return "localIdeographFontFamily" in e && (r.localIdeographFontFamily = e.localIdeographFontFamily), this._map.setStyle(v(n), r), !0;
238
+ }
239
+ return !1;
240
+ }
241
+ /* Update fog, light and terrain to match props
242
+ @param {object} nextProps
243
+ @param {object} currProps
244
+ @returns {bool} true if anything is changed
245
+ */
246
+ _updateStyleComponents(e, o) {
247
+ const n = this._map;
248
+ let t = !1;
249
+ return n.isStyleLoaded() && ("light" in e && n.setLight && !h(e.light, o.light) && (t = !0, n.setLight(e.light)), "fog" in e && n.setFog && !h(e.fog, o.fog) && (t = !0, n.setFog(e.fog)), "terrain" in e && n.setTerrain && !h(e.terrain, o.terrain) && (!e.terrain || n.getSource(e.terrain.source)) && (t = !0, n.setTerrain(e.terrain))), t;
250
+ }
251
+ /* Update interaction handlers to match props
252
+ @param {object} nextProps
253
+ @param {object} currProps
254
+ @returns {bool} true if anything is changed
255
+ */
256
+ _updateHandlers(e, o) {
257
+ var n, t;
258
+ const r = this._map;
259
+ let s = !1;
260
+ for (const i of C) {
261
+ const c = (n = e[i]) !== null && n !== void 0 ? n : !0, l = (t = o[i]) !== null && t !== void 0 ? t : !0;
262
+ h(c, l) || (s = !0, c ? r[i].enable(c) : r[i].disable());
263
+ }
264
+ return s;
265
+ }
266
+ _queryRenderedFeatures(e) {
267
+ const o = this._map, n = o.transform, { interactiveLayerIds: t = [] } = this.props;
268
+ try {
269
+ return o.transform = this._renderTransform, o.queryRenderedFeatures(e, {
270
+ layers: t.filter(o.getLayer.bind(o))
271
+ });
272
+ } catch {
273
+ return [];
274
+ } finally {
275
+ o.transform = n;
276
+ }
277
+ }
278
+ _updateHover(e) {
279
+ var o;
280
+ const { props: n } = this;
281
+ if (n.interactiveLayerIds && (n.onMouseMove || n.onMouseEnter || n.onMouseLeave)) {
282
+ 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;
283
+ !c && s && (e.type = "mouseleave", this._onPointerEvent(e)), this._hoveredFeatures = i, c && !s && (e.type = "mouseenter", this._onPointerEvent(e)), e.type = r;
284
+ } else
285
+ this._hoveredFeatures = null;
286
+ }
287
+ _fireEvent(e, o, n) {
288
+ const t = this._map, r = t.transform, s = typeof o == "string" ? o : o.type;
289
+ return s === "move" && this._updateViewState(this.props, !1), s in u && (typeof o == "object" && (o.viewState = _(r)), this._map.isMoving()) ? (t.transform = this._renderTransform, e.call(t, o, n), t.transform = r, t) : (e.call(t, o, n), t);
290
+ }
291
+ // All camera manipulations are complete, ready to repaint
292
+ _onBeforeRepaint() {
293
+ const e = this._map;
294
+ this._internalUpdate = !0;
295
+ for (const n in this._deferredEvents)
296
+ this._deferredEvents[n] && e.fire(n);
297
+ this._internalUpdate = !1;
298
+ const o = this._map.transform;
299
+ e.transform = this._renderTransform, this._onAfterRepaint = () => {
300
+ f(this._renderTransform, o), e.transform = o;
301
+ };
302
+ }
303
+ }
304
+ m.savedMaps = [];
305
+ function M() {
306
+ let d = null;
307
+ if (typeof location < "u") {
308
+ const e = /access_token=([^&\/]*)/.exec(location.search);
309
+ d = e && e[1];
310
+ }
311
+ try {
312
+ d = d || process.env.MapboxAccessToken;
313
+ } catch {
314
+ }
315
+ try {
316
+ d = d || process.env.REACT_APP_MAPBOX_ACCESS_TOKEN;
317
+ } catch {
318
+ }
319
+ return d;
7
320
  }
8
321
  export {
9
- x as default
322
+ m as default
10
323
  };
11
324
  //# sourceMappingURL=index.es176.js.map