!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=58)}([function(t,e,r){var n=r(126);t.exports=function(t,e,r){var i=null==t?void 0:n(t,e);return void 0===i?r:i}},function(t,e,r){"use strict";function n(t,e,r){void 0===r&&(r={});var n={type:"Feature"};return 0!==r.id&&!r.id||(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function i(t,e,r){return void 0===r&&(r={}),n({type:"Point",coordinates:t},e,r)}function o(t,e,r){void 0===r&&(r={});for(var i=0,o=t;i>1],s=n-1,l=i+1;;){for(;o(e[++s],a)<0;);for(;0n[0]?1:r[0]n[1]?1:-1:function(t,e,r,n){return t.left===e.left?0===l(r,t.otherEvent.point,e.otherEvent.point)?!t.isSubject&&e.isSubject?1:-1:t.isBelow(e.otherEvent.point)?-1:1:t.left?1:-1}(t,e,r)}function c(t,e,r){var n=new a(e,!1,t,t.isSubject),i=new a(e,!0,t.otherEvent,t.isSubject);return s(t.point,t.otherEvent.point)&&console.warn("what is that, a collapsed segment?",t),n.contourId=i.contourId=t.contourId,0e.contourId?1:-1):1===h(t,e)?1:-1}function g(t,e,r,n){var i=t+1,o=e.length;if(o-1>1)-1;0<=r;r--)this._down(r)}function v(t,e){return t>1,o=e[i];if(0<=r(n,o))break;e[t]=o,t=i}e[t]=n},_down:function(t){for(var e=this.data,r=this.compare,n=this.length>>1,i=e[t];tn[2]||n[0]>r[2]||r[1]>n[3]||n[1]>r[3])&&(0===i?o=w:2===i?o=t:1!==i&&3!==i||(o=t.concat(e))),o}(t,e,a,s,n))?o===w?null:o:function(t,e){var r,n,i,o=function(t){var e,r,n,i,o=[];for(r=0,n=t.length;rg||2===s&&m.point[0]>o[2])break;if(m.left){h=l=u.insert(m),l=l!==(c=u.minNode())?u.prev(l):null,h=u.next(h);var _=l?l.key:null;if(i(m,_,s),h&&2===f(m,h.key,t)&&(i(m,_,s),i(m,h.key,s)),l&&2===f(l.key,m,t)){var y=l;i(_,(y=y!==c?u.prev(y):null)?y.key:null,s),i(m,_,s)}}else m=m.otherEvent,h=l=u.find(m),l&&h&&(l=l!==c?u.prev(l):null,h=u.next(h),u.remove(m),h&&l&&f(l.key,h.key,t))}return p}(l,0,0,a,s,n),n)}var x={UNION:1,DIFFERENCE:2,INTERSECTION:0,XOR:3};t.union=function(t,e){return C(t,e,1)},t.diff=function(t,e){return C(t,e,2)},t.xor=function(t,e){return C(t,e,3)},t.intersection=function(t,e){return C(t,e,0)},t.operations=x,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1);function i(t,e,r){if(null!==t)for(var n,o,a,s,l,h,c,u,p=0,f=0,d=t.type,g="FeatureCollection"===d,m="Feature"===d,_=g?t.features.length:1,y=0;y<_;y++){l=(u=!!(c=g?t.features[y].geometry:m?t.geometry:t)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var v=0;v>>0,n=arguments[1],i=0;i>>0,n=arguments[1],i=0;i>>0;if(0==n)return!1;for(var i,o,a=0|e,s=Math.max(0<=a?a:n-Math.abs(a),0);s=u.length?void 0:a+1),l!==h){var p=u[h],f=u[l];this._createMiddleMarker(p,f)}u.splice(a,1),this._fireEdit(),this._layer.fire("pm:vertexremoved",{layer:this._layer,marker:r,indexPath:o})}},findDeepMarkerIndex:function(t,e){var r;t.some(function t(n){return function(i,o){var a=n.concat(o);return i._leaflet_id===e._leaflet_id?(r=a,!0):Array.isArray(i)&&i.some(t(a))}}([]));var n={};return r&&(n={indexPath:r,index:r[r.length-1],parentPath:r.slice(0,r.length-1)}),n},updatePolygonCoordsFromMarkerDrag:function(t){var e=this._layer.getLatLngs(),r=t.getLatLng(),n=this.findDeepMarkerIndex(this._markers,t),i=n.indexPath,o=n.index,a=n.parentPath;(1