"use strict";(self["webpackChunknewfront"]=self["webpackChunknewfront"]||[]).push([[3818],{24312:function(t,e,o){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=o(84102),i=n(o(77254)),u=n(o(36467));function s(t){var e=i.default.fromGeoJson(t);e.deleteDangles(),e.deleteCutEdges();var o=[],n=[];return e.getEdgeRings().filter((function(t){return t.isValid()})).forEach((function(t){t.isHole()?o.push(t):n.push(t)})),o.forEach((function(t){u.default.findEdgeRingContaining(t,n)&&n.push(t)})),r.featureCollection(n.map((function(t){return t.toPolygon()})))}e["default"]=s},95344:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=o(84102),r=o(34772),i=function(){function t(t,e){this.from=t,this.to=e,this.next=void 0,this.label=void 0,this.symetric=void 0,this.ring=void 0,this.from.addOuterEdge(this),this.to.addInnerEdge(this)}return t.prototype.getSymetric=function(){return this.symetric||(this.symetric=new t(this.to,this.from),this.symetric.symetric=this),this.symetric},t.prototype.deleteEdge=function(){this.from.removeOuterEdge(this),this.to.removeInnerEdge(this)},t.prototype.isEqual=function(t){return this.from.id===t.from.id&&this.to.id===t.to.id},t.prototype.toString=function(){return"Edge { "+this.from.id+" -> "+this.to.id+" }"},t.prototype.toLineString=function(){return n.lineString([this.from.coordinates,this.to.coordinates])},t.prototype.compareTo=function(t){return r.orientationIndex(t.from.coordinates,t.to.coordinates,this.to.coordinates)},t}();e["default"]=i},36467:function(t,e,o){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=o(34772),i=o(84102),u=n(o(19062)),s=n(o(88147)),a=function(){function t(){this.edges=[],this.polygon=void 0,this.envelope=void 0}return t.prototype.push=function(t){this.edges.push(t),this.polygon=this.envelope=void 0},t.prototype.get=function(t){return this.edges[t]},Object.defineProperty(t.prototype,"length",{get:function(){return this.edges.length},enumerable:!0,configurable:!0}),t.prototype.forEach=function(t){this.edges.forEach(t)},t.prototype.map=function(t){return this.edges.map(t)},t.prototype.some=function(t){return this.edges.some(t)},t.prototype.isValid=function(){return!0},t.prototype.isHole=function(){var t=this,e=this.edges.reduce((function(e,o,n){return o.from.coordinates[1]>t.edges[e].from.coordinates[1]&&(e=n),e}),0),o=(0===e?this.length:e)-1,n=(e+1)%this.length,i=r.orientationIndex(this.edges[o].from.coordinates,this.edges[e].from.coordinates,this.edges[n].from.coordinates);return 0===i?this.edges[o].from.coordinates[0]>this.edges[n].from.coordinates[0]:i>0},t.prototype.toMultiPoint=function(){return i.multiPoint(this.edges.map((function(t){return t.from.coordinates})))},t.prototype.toPolygon=function(){if(this.polygon)return this.polygon;var t=this.edges.map((function(t){return t.from.coordinates}));return t.push(this.edges[0].from.coordinates),this.polygon=i.polygon([t])},t.prototype.getEnvelope=function(){return this.envelope?this.envelope:this.envelope=u.default(this.toPolygon())},t.findEdgeRingContaining=function(t,e){var o,n,u=t.getEnvelope();return e.forEach((function(e){var s=e.getEnvelope();if(n&&(o=n.getEnvelope()),!r.envelopeIsEqual(s,u)&&r.envelopeContains(s,u)){for(var a=t.map((function(t){return t.from.coordinates})),d=void 0,f=function(t){e.some((function(e){return r.coordinatesEqual(t,e.from.coordinates)}))||(d=t)},c=0,h=a;c<h.length;c++){var l=h[c];f(l)}d&&e.inside(i.point(d))&&(n&&!r.envelopeContains(o,s)||(n=e))}})),n},t.prototype.inside=function(t){return s.default(t,this.toPolygon())},t}();e["default"]=a},77254:function(t,e,o){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=n(o(23424)),i=n(o(95344)),u=n(o(36467)),s=o(31540),a=o(10611);function d(t){if(!t)throw new Error("No geojson passed");if("FeatureCollection"!==t.type&&"GeometryCollection"!==t.type&&"MultiLineString"!==t.type&&"LineString"!==t.type&&"Feature"!==t.type)throw new Error("Invalid input type '"+t.type+"'. Geojson must be FeatureCollection, GeometryCollection, LineString, MultiLineString or Feature")}var f=function(){function t(){this.edges=[],this.nodes={}}return t.fromGeoJson=function(e){d(e);var o=new t;return s.flattenEach(e,(function(t){a.featureOf(t,"LineString","Graph::fromGeoJson"),s.coordReduce(t,(function(t,e){if(t){var n=o.getNode(t),r=o.getNode(e);o.addEdge(n,r)}return e}))})),o},t.prototype.getNode=function(t){var e=r.default.buildId(t),o=this.nodes[e];return o||(o=this.nodes[e]=new r.default(t)),o},t.prototype.addEdge=function(t,e){var o=new i.default(t,e),n=o.getSymetric();this.edges.push(o),this.edges.push(n)},t.prototype.deleteDangles=function(){var t=this;Object.keys(this.nodes).map((function(e){return t.nodes[e]})).forEach((function(e){return t._removeIfDangle(e)}))},t.prototype._removeIfDangle=function(t){var e=this;if(t.innerEdges.length<=1){var o=t.getOuterEdges().map((function(t){return t.to}));this.removeNode(t),o.forEach((function(t){return e._removeIfDangle(t)}))}},t.prototype.deleteCutEdges=function(){var t=this;this._computeNextCWEdges(),this._findLabeledEdgeRings(),this.edges.forEach((function(e){e.label===e.symetric.label&&(t.removeEdge(e.symetric),t.removeEdge(e))}))},t.prototype._computeNextCWEdges=function(t){var e=this;"undefined"===typeof t?Object.keys(this.nodes).forEach((function(t){return e._computeNextCWEdges(e.nodes[t])})):t.getOuterEdges().forEach((function(e,o){t.getOuterEdge((0===o?t.getOuterEdges().length:o)-1).symetric.next=e}))},t.prototype._computeNextCCWEdges=function(t,e){for(var o,n,r=t.getOuterEdges(),i=r.length-1;i>=0;--i){var u=r[i],s=u.symetric,a=void 0,d=void 0;u.label===e&&(a=u),s.label===e&&(d=s),a&&d&&(d&&(n=d),a&&(n&&(n.next=a,n=void 0),o||(o=a)))}n&&(n.next=o)},t.prototype._findLabeledEdgeRings=function(){var t=[],e=0;return this.edges.forEach((function(o){if(!(o.label>=0)){t.push(o);var n=o;do{n.label=e,n=n.next}while(!o.isEqual(n));e++}})),t},t.prototype.getEdgeRings=function(){var t=this;this._computeNextCWEdges(),this.edges.forEach((function(t){t.label=void 0})),this._findLabeledEdgeRings().forEach((function(e){t._findIntersectionNodes(e).forEach((function(o){t._computeNextCCWEdges(o,e.label)}))}));var e=[];return this.edges.forEach((function(o){o.ring||e.push(t._findEdgeRing(o))})),e},t.prototype._findIntersectionNodes=function(t){var e=[],o=t,n=function(){var n=0;o.from.getOuterEdges().forEach((function(e){e.label===t.label&&++n})),n>1&&e.push(o.from),o=o.next};do{n()}while(!t.isEqual(o));return e},t.prototype._findEdgeRing=function(t){var e=t,o=new u.default;do{o.push(e),e.ring=o,e=e.next}while(!t.isEqual(e));return o},t.prototype.removeNode=function(t){var e=this;t.getOuterEdges().forEach((function(t){return e.removeEdge(t)})),t.innerEdges.forEach((function(t){return e.removeEdge(t)})),delete this.nodes[t.id]},t.prototype.removeEdge=function(t){this.edges=this.edges.filter((function(e){return!e.isEqual(t)})),t.deleteEdge()},t}();e["default"]=f},23424:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=o(34772),r=function(){function t(e){this.id=t.buildId(e),this.coordinates=e,this.innerEdges=[],this.outerEdges=[],this.outerEdgesSorted=!1}return t.buildId=function(t){return t.join(",")},t.prototype.removeInnerEdge=function(t){this.innerEdges=this.innerEdges.filter((function(e){return e.from.id!==t.from.id}))},t.prototype.removeOuterEdge=function(t){this.outerEdges=this.outerEdges.filter((function(e){return e.to.id!==t.to.id}))},t.prototype.addOuterEdge=function(t){this.outerEdges.push(t),this.outerEdgesSorted=!1},t.prototype.sortOuterEdges=function(){var t=this;this.outerEdgesSorted||(this.outerEdges.sort((function(e,o){var r=e.to,i=o.to;if(r.coordinates[0]-t.coordinates[0]>=0&&i.coordinates[0]-t.coordinates[0]<0)return 1;if(r.coordinates[0]-t.coordinates[0]<0&&i.coordinates[0]-t.coordinates[0]>=0)return-1;if(r.coordinates[0]-t.coordinates[0]===0&&i.coordinates[0]-t.coordinates[0]===0)return r.coordinates[1]-t.coordinates[1]>=0||i.coordinates[1]-t.coordinates[1]>=0?r.coordinates[1]-i.coordinates[1]:i.coordinates[1]-r.coordinates[1];var u=n.orientationIndex(t.coordinates,r.coordinates,i.coordinates);if(u<0)return 1;if(u>0)return-1;var s=Math.pow(r.coordinates[0]-t.coordinates[0],2)+Math.pow(r.coordinates[1]-t.coordinates[1],2),a=Math.pow(i.coordinates[0]-t.coordinates[0],2)+Math.pow(i.coordinates[1]-t.coordinates[1],2);return s-a})),this.outerEdgesSorted=!0)},t.prototype.getOuterEdges=function(){return this.sortOuterEdges(),this.outerEdges},t.prototype.getOuterEdge=function(t){return this.sortOuterEdges(),this.outerEdges[t]},t.prototype.addInnerEdge=function(t){this.innerEdges.push(t)},t}();e["default"]=r},34772:function(t,e,o){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=n(o(88147)),i=o(84102);function u(t){return(t>0)-(t<0)||+t}function s(t,e,o){var n=e[0]-t[0],r=e[1]-t[1],i=o[0]-e[0],s=o[1]-e[1];return u(n*s-i*r)}function a(t,e){var o=t.geometry.coordinates[0].map((function(t){return t[0]})),n=t.geometry.coordinates[0].map((function(t){return t[1]})),r=e.geometry.coordinates[0].map((function(t){return t[0]})),i=e.geometry.coordinates[0].map((function(t){return t[1]}));return Math.max.apply(null,o)===Math.max.apply(null,r)&&Math.max.apply(null,n)===Math.max.apply(null,i)&&Math.min.apply(null,o)===Math.min.apply(null,r)&&Math.min.apply(null,n)===Math.min.apply(null,i)}function d(t,e){return e.geometry.coordinates[0].every((function(e){return r.default(i.point(e),t)}))}function f(t,e){return t[0]===e[0]&&t[1]===e[1]}e.orientationIndex=s,e.envelopeIsEqual=a,e.envelopeContains=d,e.coordinatesEqual=f},20981:function(t,e,o){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=o(31540),i=o(84102),u=n(o(76565));function s(t,e){return void 0===e&&(e={}),d(t,"mercator",e)}function a(t,e){return void 0===e&&(e={}),d(t,"wgs84",e)}function d(t,e,o){void 0===o&&(o={}),o=o||{};var n=o.mutate;if(!t)throw new Error("geojson is required");return Array.isArray(t)&&i.isNumber(t[0])?t="mercator"===e?f(t):c(t):(!0!==n&&(t=u.default(t)),r.coordEach(t,(function(t){var o="mercator"===e?f(t):c(t);t[0]=o[0],t[1]=o[1]}))),t}function f(t){var e=Math.PI/180,o=6378137,n=20037508.342789244,r=Math.abs(t[0])<=180?t[0]:t[0]-360*h(t[0]),i=[o*r*e,o*Math.log(Math.tan(.25*Math.PI+.5*t[1]*e))];return i[0]>n&&(i[0]=n),i[0]<-n&&(i[0]=-n),i[1]>n&&(i[1]=n),i[1]<-n&&(i[1]=-n),i}function c(t){var e=180/Math.PI,o=6378137;return[t[0]*e/o,(.5*Math.PI-2*Math.atan(Math.exp(-t[1]/o)))*e]}function h(t){return t<0?-1:t>0?1:0}e.toMercator=s,e.toWgs84=a},16295:function(t,e,o){var n=this&&this.__spreadArrays||function(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<o;e++)for(var i=arguments[e],u=0,s=i.length;u<s;u++,r++)n[r]=i[u];return n};Object.defineProperty(e,"__esModule",{value:!0});var r=o(84102);function i(t){return Array.isArray(t)?l(t):t&&t.bbox?l(t.bbox):[c(),h()]}function u(t,e){void 0===e&&(e={}),void 0!==t&&null!==t||(t=1);for(var o=[],n=0;n<t;n++)o.push(r.point(i(e.bbox)));return r.featureCollection(o)}function s(t,e){void 0===e&&(e={}),void 0!==t&&null!==t||(t=1),r.isNumber(e.num_vertices)&&void 0!==e.num_vertices||(e.num_vertices=10),r.isNumber(e.max_radial_length)&&void 0!==e.max_radial_length||(e.max_radial_length=10);for(var o=[],u=function(t){var u=[],s=n(Array(e.num_vertices+1)).map(Math.random);s.forEach((function(t,e,o){o[e]=e>0?t+o[e-1]:t})),s.forEach((function(t){t=2*t*Math.PI/s[s.length-1];var o=Math.random();u.push([o*(e.max_radial_length||10)*Math.sin(t),o*(e.max_radial_length||10)*Math.cos(t)])})),u[u.length-1]=u[0],u=u.map(d(i(e.bbox))),o.push(r.polygon([u]))},s=0;s<t;s++)u(s);return r.featureCollection(o)}function a(t,e){if(void 0===e&&(e={}),e=e||{},!r.isObject(e))throw new Error("options is invalid");var o=e.bbox,n=e.num_vertices,u=e.max_length,s=e.max_rotation;void 0!==t&&null!==t||(t=1),(!r.isNumber(n)||void 0===n||n<2)&&(n=10),r.isNumber(u)&&void 0!==u||(u=1e-4),r.isNumber(s)&&void 0!==s||(s=Math.PI/8);for(var a=[],d=0;d<t;d++){for(var f=i(o),c=[f],h=0;h<n-1;h++){var l=0===h?2*Math.random()*Math.PI:Math.tan((c[h][1]-c[h-1][1])/(c[h][0]-c[h-1][0])),p=l+(Math.random()-.5)*s*2,g=Math.random()*u;c.push([c[h][0]+g*Math.cos(p),c[h][1]+g*Math.sin(p)])}a.push(r.lineString(c))}return r.featureCollection(a)}function d(t){return function(e){return[e[0]+t[0],e[1]+t[1]]}}function f(){return Math.random()-.5}function c(){return 360*f()}function h(){return 180*f()}function l(t){return[Math.random()*(t[2]-t[0])+t[0],Math.random()*(t[3]-t[1])+t[1]]}e.randomPosition=i,e.randomPoint=u,e.randomPolygon=s,e.randomLineString=a},54131:function(t,e,o){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=n(o(84255)),i=n(o(31013)),u=o(84102);function s(t,e,o,n){void 0===n&&(n={});for(var s=[],a=t[0],d=t[1],f=t[2],c=t[3],h=e/i.default([a,d],[f,d],n),l=h*(f-a),p=o/i.default([a,d],[a,c],n),g=p*(c-d),v=f-a,m=c-d,y=Math.floor(v/l),E=Math.floor(m/g),_=(v-y*l)/2,M=(m-E*g)/2,b=a+_,x=0;x<y;x++){for(var O=d+M,C=0;C<E;C++){var I=u.polygon([[[b,O],[b,O+g],[b+l,O+g],[b+l,O],[b,O]]],n.properties);n.mask?r.default(n.mask,I)&&s.push(I):s.push(I),O+=g}b+=l}return u.featureCollection(s)}e["default"]=s}}]);