diff --git a/.github/workflows/build-workflow.yml b/.github/workflows/build-workflow.yml new file mode 100644 index 00000000..1a6884c9 --- /dev/null +++ b/.github/workflows/build-workflow.yml @@ -0,0 +1,48 @@ +## Continuous Integration Workflow +name: Build Tests + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + pull_request: + branches: [release, staging, develop] + paths: "src/app/**" + +# Target Branch Job +jobs: + Build-Export: + # Execute on Ubuntu-Latest Distro + runs-on: ubuntu-latest + steps: + # Check Out Repository + - uses: actions/checkout@v1 + + # Install Node.js + - uses: actions/setup-node@v1.4.4 + with: + node-version: 14 + registry-url: https://npm.pkg.github.com/ + scope: "@datature" + + # Install your dependencies + - name: Installing + working-directory: ./src/app + run: npm install + + # Build NextJS Project + - name: Building Nexus / NextJS + working-directory: ./src/app + run: npm run build:static + + - name: Pushing Static Files to Portal Build + shell: bash + run: | + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git add -f ./portal_build/out + git commit -m "Re-Exported Portal to Portal Build" -a + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.head_ref }} diff --git a/.github/workflows/release-workflow.yml b/.github/workflows/release-workflow.yml index f0433969..7fe1a753 100644 --- a/.github/workflows/release-workflow.yml +++ b/.github/workflows/release-workflow.yml @@ -33,7 +33,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + # os: [ubuntu-latest, windows-latest, macos-latest] + os: [macos-latest] steps: - uses: actions/checkout@v1 @@ -55,7 +56,7 @@ jobs: - name: Extract Version shell: bash - run: echo "##[set-output name=version;]$(echo ${GITHUB_REF#refs/heads/hotfix/release-})" + run: echo "##[set-output name=version;]$(echo ${GITHUB_REF#refs/heads/release-})" id: extract_version - name: Extract Executable name @@ -129,7 +130,7 @@ jobs: - name: Extract Version shell: bash - run: echo "##[set-output name=version;]$(echo ${GITHUB_REF#refs/heads/hotfix/release-})" + run: echo "##[set-output name=version;]$(echo ${GITHUB_REF#refs/heads/release-})" id: extract_version - name: release diff --git a/portal_build/out/404.html b/portal_build/out/404.html new file mode 100644 index 00000000..5134d38a --- /dev/null +++ b/portal_build/out/404.html @@ -0,0 +1 @@ +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/portal_build/out/_next/static/5sfRG-oWXsUG0Ve3uvxap/_buildManifest.js b/portal_build/out/_next/static/5sfRG-oWXsUG0Ve3uvxap/_buildManifest.js new file mode 100644 index 00000000..81da50b0 --- /dev/null +++ b/portal_build/out/_next/static/5sfRG-oWXsUG0Ve3uvxap/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,a){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,a,"static/chunks/835-91f7fb22de8eba0dd168.js","static/css/5441740d7d3b11650f51.css","static/chunks/pages/index-a254921adf3ca669f40e.js"],"/_error":["static/chunks/pages/_error-601c334056601a913688.js"],"/error":["static/chunks/pages/error-fdcb7b6987fa4610b3f6.js"],"/loading":[s,a,"static/chunks/pages/loading-935ccd8c6cfed757f093.js"],sortedPages:["/","/_app","/_error","/error","/loading"]}}("static/chunks/d3fccaa0-63df7080f69094ec068d.js","static/chunks/706-4b659fb8192237151302.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/portal_build/out/_next/static/5sfRG-oWXsUG0Ve3uvxap/_ssgManifest.js b/portal_build/out/_next/static/5sfRG-oWXsUG0Ve3uvxap/_ssgManifest.js new file mode 100644 index 00000000..0511aa89 --- /dev/null +++ b/portal_build/out/_next/static/5sfRG-oWXsUG0Ve3uvxap/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set,self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB(); \ No newline at end of file diff --git a/portal_build/out/_next/static/chunks/0b7b90cd.92b8a6d99817c87d21b6.js b/portal_build/out/_next/static/chunks/0b7b90cd.92b8a6d99817c87d21b6.js new file mode 100644 index 00000000..f158a060 --- /dev/null +++ b/portal_build/out/_next/static/chunks/0b7b90cd.92b8a6d99817c87d21b6.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[269],{5243:function(t,i){!function(t){"use strict";var i="1.7.1";function e(t){var i,e,n,o;for(e=1,n=arguments.length;e0?Math.floor(t):Math.ceil(t)};function I(t,i,e){return t instanceof B?t:g(t)?new B(t[0],t[1]):void 0===t||null===t?t:"object"===typeof t&&"x"in t&&"y"in t?new B(t.x,t.y):new B(t,i,e)}function O(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n=this.min.x&&e.x<=this.max.x&&i.y>=this.min.y&&e.y<=this.max.y},intersects:function(t){t=R(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>=i.x&&n.x<=e.x,r=o.y>=i.y&&n.y<=e.y;return s&&r},overlaps:function(t){t=R(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>i.x&&n.xi.y&&n.y=n.lat&&e.lat<=o.lat&&i.lng>=n.lng&&e.lng<=o.lng},intersects:function(t){t=D(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=i.lat&&n.lat<=e.lat,r=o.lng>=i.lng&&n.lng<=e.lng;return s&&r},overlaps:function(t){t=D(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>i.lat&&n.lati.lng&&n.lng1,zt=function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",u,i),window.removeEventListener("testPassiveEventSupport",u,i)}catch(e){}return t}(),Ct=!!document.createElement("canvas").getContext,St=!(!document.createElementNS||!X("svg").createSVGRect),Zt=!St&&function(){try{var t=document.createElement("div");t.innerHTML='';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&"object"===typeof i.adj}catch(e){return!1}}();function kt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Et={ie:Q,ielt9:tt,edge:it,webkit:et,android:nt,android23:ot,androidStock:rt,opera:at,chrome:ht,gecko:ut,safari:lt,phantom:ct,opera12:_t,win:dt,ie3d:pt,webkit3d:mt,gecko3d:ft,any3d:gt,mobile:vt,mobileWebkit:yt,mobileWebkit3d:xt,msPointer:wt,pointer:Pt,touch:Lt,mobileOpera:bt,mobileGecko:Tt,retina:Mt,passiveEvents:zt,canvas:Ct,svg:St,vml:Zt},Bt=wt?"MSPointerDown":"pointerdown",At=wt?"MSPointerMove":"pointermove",It=wt?"MSPointerUp":"pointerup",Ot=wt?"MSPointerCancel":"pointercancel",Rt={},Nt=!1;function Dt(t,i,e,n){return"touchstart"===i?Wt(t,e,n):"touchmove"===i?qt(t,e,n):"touchend"===i&&Gt(t,e,n),this}function jt(t,i,e){var n=t["_leaflet_"+i+e];return"touchstart"===i?t.removeEventListener(Bt,n,!1):"touchmove"===i?t.removeEventListener(At,n,!1):"touchend"===i&&(t.removeEventListener(It,n,!1),t.removeEventListener(Ot,n,!1)),this}function Wt(t,i,e){var n=o((function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Fi(t),Vt(t,i)}));t["_leaflet_touchstart"+e]=n,t.addEventListener(Bt,n,!1),Nt||(document.addEventListener(Bt,Ht,!0),document.addEventListener(At,Ft,!0),document.addEventListener(It,Ut,!0),document.addEventListener(Ot,Ut,!0),Nt=!0)}function Ht(t){Rt[t.pointerId]=t}function Ft(t){Rt[t.pointerId]&&(Rt[t.pointerId]=t)}function Ut(t){delete Rt[t.pointerId]}function Vt(t,i){for(var e in t.touches=[],Rt)t.touches.push(Rt[e]);t.changedTouches=[t],i(t)}function qt(t,i,e){var n=function(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||Vt(t,i)};t["_leaflet_touchmove"+e]=n,t.addEventListener(At,n,!1)}function Gt(t,i,e){var n=function(t){Vt(t,i)};t["_leaflet_touchend"+e]=n,t.addEventListener(It,n,!1),t.addEventListener(Ot,n,!1)}var Kt=wt?"MSPointerDown":Pt?"pointerdown":"touchstart",Yt=wt?"MSPointerUp":Pt?"pointerup":"touchend",Xt="_leaflet_";function Jt(t,i,e){var n,o,s=!1,r=250;function a(t){if(Pt){if(!t.isPrimary)return;if("mouse"===t.pointerType)return}else if(t.touches.length>1)return;var i=Date.now(),e=i-(n||i);o=t.touches?t.touches[0]:t,s=e>0&&e<=r,n=i}function h(t){if(s&&!o.cancelBubble){if(Pt){if("mouse"===t.pointerType)return;var e,r,a={};for(r in o)e=o[r],a[r]=e&&e.bind?e.bind(o):e;o=a}o.type="dblclick",o.button=0,i(o),n=null}}return t[Xt+Kt+e]=a,t[Xt+Yt+e]=h,t[Xt+"dblclick"+e]=i,t.addEventListener(Kt,a,!!zt&&{passive:!1}),t.addEventListener(Yt,h,!!zt&&{passive:!1}),t.addEventListener("dblclick",i,!1),this}function $t(t,i){var e=t[Xt+Kt+i],n=t[Xt+Yt+i],o=t[Xt+"dblclick"+i];return t.removeEventListener(Kt,e,!!zt&&{passive:!1}),t.removeEventListener(Yt,n,!!zt&&{passive:!1}),t.removeEventListener("dblclick",o,!1),this}var Qt,ti,ii,ei,ni,oi=wi(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),si=wi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ri="webkitTransition"===si||"OTransition"===si?si+"End":"transitionend";function ai(t){return"string"===typeof t?document.getElementById(t):t}function hi(t,i){var e=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!e||"auto"===e)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);e=n?n[i]:null}return"auto"===e?null:e}function ui(t,i,e){var n=document.createElement(t);return n.className=i||"",e&&e.appendChild(n),n}function li(t){var i=t.parentNode;i&&i.removeChild(t)}function ci(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function _i(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function di(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function pi(t,i){if(void 0!==t.classList)return t.classList.contains(i);var e=vi(t);return e.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(e)}function mi(t,i){if(void 0!==t.classList)for(var e=_(i),n=0,o=e.length;nthis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var e=this.getCenter(),n=this._limitCenter(e,this._zoom,D(t));return e.equals(n)||this.panTo(n,i),this._enforcingBounds=!1,this},panInside:function(t,i){var e=I((i=i||{}).paddingTopLeft||i.padding||[0,0]),n=I(i.paddingBottomRight||i.padding||[0,0]),o=this.getCenter(),s=this.project(o),r=this.project(t),a=this.getPixelBounds(),h=a.getSize().divideBy(2),u=R([a.min.add(e),a.max.subtract(n)]);if(!u.contains(r)){this._enforcingBounds=!0;var l=s.subtract(r),c=I(r.x+l.x,r.y+l.y);(r.xu.max.x)&&(c.x=s.x-l.x,l.x>0?c.x+=h.x-e.x:c.x-=h.x-n.x),(r.yu.max.y)&&(c.y=s.y-l.y,l.y>0?c.y+=h.y-e.y:c.y-=h.y-n.y),this.panTo(this.unproject(c),i),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),s=i.divideBy(2).round(),r=n.divideBy(2).round(),a=s.subtract(r);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,n,t):navigator.geolocation.getCurrentPosition(i,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var i=t.code,e=t.message||(1===i?"permission denied":2===i?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+e+"."})},_handleGeolocationResponse:function(t){var i=new j(t.coords.latitude,t.coords.longitude),e=i.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var o=this.getBoundsZoom(e);this.setView(i,n.maxZoom?Math.min(o,n.maxZoom):o)}var s={latlng:i,bounds:e,timestamp:t.timestamp};for(var r in t.coords)"number"===typeof t.coords[r]&&(s[r]=t.coords[r]);this.fire("locationfound",s)},addHandler:function(t,i){if(!i)return this;var e=this[t]=new i(this);return this._handlers.push(e),this.options[t]&&e.enable(),this},remove:function(){if(this._initEvents(!0),this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(i){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),li(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(z(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)li(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var e=ui("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i||this._mapPane);return t&&(this._panes[t]=e),e},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new N(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,e){t=D(t),e=I(e||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(e),u=R(this.project(a,n),this.project(r,n)).getSize(),l=gt?this.options.zoomSnap:1,c=h.x/u.x,_=h.y/u.y,d=i?Math.max(c,_):Math.min(c,_);return n=this.getScaleZoom(d,n),l&&(n=Math.round(n/(l/100))*(l/100),n=i?Math.ceil(n/l)*l:Math.floor(n/l)*l),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new B(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var e=this._getTopLeftPoint(t,i);return new O(e,e.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"===typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var e=this.options.crs;return i=void 0===i?this._zoom:i,e.scale(t)/e.scale(i)},getScaleZoom:function(t,i){var e=this.options.crs;i=void 0===i?this._zoom:i;var n=e.zoom(t*e.scale(i));return isNaN(n)?1/0:n},project:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.latLngToPoint(W(t),i)},unproject:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.pointToLatLng(I(t),i)},layerPointToLatLng:function(t){var i=I(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){return this.project(W(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(W(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(D(t))},distance:function(t,i){return this.options.crs.distance(W(t),W(i))},containerPointToLayerPoint:function(t){return I(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return I(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(I(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(W(t)))},mouseEventToContainerPoint:function(t){return Vi(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=ai(t);if(!i)throw new Error("Map container not found.");if(i._leaflet_id)throw new Error("Map container is already initialized.");Bi(i,"scroll",this._onScroll,this),this._containerId=r(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&>,mi(t,"leaflet-container"+(Lt?" leaflet-touch":"")+(Mt?" leaflet-retina":"")+(tt?" leaflet-oldie":"")+(lt?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=hi(t,"position");"absolute"!==i&&"relative"!==i&&"fixed"!==i&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Li(this._mapPane,new B(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(mi(t.markerPane,"leaflet-zoom-hide"),mi(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i){Li(this._mapPane,new B(0,0));var e=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var n=this._zoom!==i;this._moveStart(n,!1)._move(t,i)._moveEnd(n),this.fire("viewreset"),e&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,e){void 0===i&&(i=this._zoom);var n=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||e&&e.pinch)&&this.fire("zoom",e),this.fire("move",e)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return z(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Li(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[r(this._container)]=this;var i=t?Ii:Bi;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),gt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){z(this._resizeRequest),this._resizeRequest=M((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var e,n=[],o="mouseout"===i||"mouseover"===i,s=t.target||t.srcElement,a=!1;s;){if((e=this._targets[r(s)])&&("click"===i||"preclick"===i)&&!t._simulated&&this._draggableMoved(e)){a=!0;break}if(e&&e.listens(i,!0)){if(o&&!Ji(s,t))break;if(n.push(e),o)break}if(s===this._container)break;s=s.parentNode}return n.length||a||o||!Ji(s,t)||(n=[this]),n},_handleDOMEvent:function(t){if(this._loaded&&!Xi(t)){var i=t.type;"mousedown"!==i&&"keypress"!==i&&"keyup"!==i&&"keydown"!==i||Ci(t.target||t.srcElement),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,n){if("click"===t.type){var o=e({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}if(!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,i))).length){var s=n[0];"contextmenu"===i&&s.listens(i,!0)&&Fi(t);var r={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var a=s.getLatLng&&(!s._radius||s._radius<=10);r.containerPoint=a?this.latLngToContainerPoint(s.getLatLng()):this.mouseEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=a?s.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(var h=0;h0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),e=this.getMaxZoom(),n=gt?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(i,Math.min(e,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){fi(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var e=this._getCenterOffset(t)._trunc();return!(!0!==(i&&i.animate)&&!this.getSize().contains(e))&&(this.panBy(e,i),!0)},_createAnimProxy:function(){var t=this._proxy=ui("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var i=oi,e=this._proxy.style[i];Pi(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){li(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();Pi(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,e){if(this._animatingZoom)return!0;if(e=e||{},!this._zoomAnimated||!1===e.animate||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(i),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==e.animate&&!this.getSize().contains(o))&&(M((function(){this._moveStart(!0,!1)._animateZoom(t,i,!0)}),this),!0)},_animateZoom:function(t,i,e,n){this._mapPane&&(e&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,mi(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:n}),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&fi(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),M((function(){this._moveEnd(!0)}),this))}});function ie(t,i){return new te(t,i)}var ee=S.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),e=this.getPosition(),n=t._controlCorners[e];return mi(i,"leaflet-control"),-1!==e.indexOf("bottom")?n.insertBefore(i,n.firstChild):n.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(li(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ne=function(t){return new ee(t)};te.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",e=this._controlContainer=ui("div",i+"control-container",this._container);function n(n,o){var s=i+n+" "+i+o;t[n+o]=ui("div",s,e)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)li(this._controlCorners[t]);li(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var oe=ee.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,e,n){return e1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(r(t.target)),e=i.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;e&&this._map.fire(e,i)},_createRadioElement:function(t,i){var e='",n=document.createElement("div");return n.innerHTML=e,n.firstChild},_addItem:function(t){var i,e=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((i=document.createElement("input")).type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=n):i=this._createRadioElement("leaflet-base-layers_"+r(this),n),this._layerControlInputs.push(i),i.layerId=r(t.layer),Bi(i,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("div");return e.appendChild(s),s.appendChild(i),s.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){var t,i,e=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=e.length-1;s>=0;s--)t=e[s],i=this._getLayer(t.layerId).layer,t.checked?n.push(i):t.checked||o.push(i);for(s=0;s=0;o--)t=e[o],i=this._getLayer(t.layerId).layer,t.disabled=void 0!==i.options.minZoom&&ni.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),se=function(t,i,e){return new oe(t,i,e)},re=ee.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",e=ui("div",i+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,i+"-in",e,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,i+"-out",e,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),e},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,e,n,o){var s=ui("a",e,n);return s.innerHTML=t,s.href="#",s.title=i,s.setAttribute("role","button"),s.setAttribute("aria-label",i),Hi(s),Bi(s,"click",Ui),Bi(s,"click",o,this),Bi(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";fi(this._zoomInButton,i),fi(this._zoomOutButton,i),(this._disabled||t._zoom===t.getMinZoom())&&mi(this._zoomOutButton,i),(this._disabled||t._zoom===t.getMaxZoom())&&mi(this._zoomInButton,i)}});te.mergeOptions({zoomControl:!0}),te.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new re,this.addControl(this.zoomControl))}));var ae=function(t){return new re(t)},he=ee.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",e=ui("div",i),n=this.options;return this._addScales(n,i+"-line",e),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,e){t.metric&&(this._mScale=ui("div",i,e)),t.imperial&&(this._iScale=ui("div",i,e))},_update:function(){var t=this._map,i=t.getSize().y/2,e=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(e)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t),e=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,e,i/t)},_updateImperial:function(t){var i,e,n,o=3.2808399*t;o>5280?(i=o/5280,e=this._getRoundNum(i),this._updateScale(this._iScale,e+" mi",e/i)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,i,e){t.style.width=Math.round(this.options.maxWidth*e)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),e=t/i;return i*(e=e>=10?10:e>=5?5:e>=3?3:e>=2?2:1)}}),ue=function(t){return new he(t)},le=ee.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(t){d(this,t),this._attributions={}},onAdd:function(t){for(var i in t.attributionControl=this,this._container=ui("div","leaflet-control-attribution"),Hi(this._container),t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var e=[];this.options.prefix&&e.push(this.options.prefix),t.length&&e.push(t.join(", ")),this._container.innerHTML=e.join(" | ")}}});te.mergeOptions({attributionControl:!0}),te.addInitHook((function(){this.options.attributionControl&&(new le).addTo(this)}));var ce=function(t){return new le(t)};ee.Layers=oe,ee.Zoom=re,ee.Scale=he,ee.Attribution=le,ne.layers=se,ne.zoom=ae,ne.scale=ue,ne.attribution=ce;var _e=S.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});_e.addTo=function(t,i){return t.addHandler(i,this),this};var de,pe={Events:k},me=Lt?"touchstart mousedown":"mousedown",fe={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},ge={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},ve=E.extend({options:{clickTolerance:3},initialize:function(t,i,e,n){d(this,n),this._element=t,this._dragStartTarget=i||t,this._preventOutline=e},enable:function(){this._enabled||(Bi(this._dragStartTarget,me,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ve._dragging===this&&this.finishDrag(),Ii(this._dragStartTarget,me,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!pi(this._element,"leaflet-zoom-anim")&&!(ve._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches)&&(ve._dragging=this,this._preventOutline&&Ci(this._element),Mi(),Qt(),!this._moving))){this.fire("down");var i=t.touches?t.touches[0]:t,e=Zi(this._element);this._startPoint=new B(i.clientX,i.clientY),this._parentScale=ki(e),Bi(document,ge[t.type],this._onMove,this),Bi(document,fe[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var i=t.touches&&1===t.touches.length?t.touches[0]:t,e=new B(i.clientX,i.clientY)._subtract(this._startPoint);(e.x||e.y)&&(Math.abs(e.x)+Math.abs(e.y)h&&(s=r,h=a);h>e&&(i[s]=1,Le(t,i,e,n,s),Le(t,i,e,s,o))}function be(t,i){for(var e=[t[0]],n=1,o=0,s=t.length;ni&&(e.push(t[n]),o=n);return oi.max.x&&(e|=2),t.yi.max.y&&(e|=8),e}function Ce(t,i){var e=i.x-t.x,n=i.y-t.y;return e*e+n*n}function Se(t,i,e,n){var o,s=i.x,r=i.y,a=e.x-s,h=e.y-r,u=a*a+h*h;return u>0&&((o=((t.x-s)*a+(t.y-r)*h)/u)>1?(s=e.x,r=e.y):o>0&&(s+=a*o,r+=h*o)),a=t.x-s,h=t.y-r,n?a*a+h*h:new B(s,r)}function Ze(t){return!g(t[0])||"object"!==typeof t[0][0]&&"undefined"!==typeof t[0][0]}function ke(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ze(t)}var Ee={simplify:ye,pointToSegmentDistance:xe,closestPointOnSegment:we,clipSegment:Te,_getEdgeIntersection:Me,_getBitCode:ze,_sqClosestPointOnSegment:Se,isFlat:Ze,_flat:ke};function Be(t,i,e){var n,o,s,r,a,h,u,l,c,_=[1,4,2,8];for(o=0,u=t.length;o1e-7;h++)i=s*Math.sin(a),i=Math.pow((1-i)/(1+i),s/2),a+=u=Math.PI/2-2*Math.atan(r*i)-a;return new j(a*e,t.x*e/n)}},Re={LonLat:Ie,Mercator:Oe,SphericalMercator:V},Ne=e({},F,{code:"EPSG:3395",projection:Oe,transformation:function(){var t=.5/(Math.PI*Oe.R);return G(t,.5,-t,.5)}()}),De=e({},F,{code:"EPSG:4326",projection:Ie,transformation:G(1/180,1,-1/180,.5)}),je=e({},H,{projection:Ie,transformation:G(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var e=i.lng-t.lng,n=i.lat-t.lat;return Math.sqrt(e*e+n*n)},infinite:!0});H.Earth=F,H.EPSG3395=Ne,H.EPSG3857=K,H.EPSG900913=Y,H.EPSG4326=De,H.Simple=je;var We=E.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[r(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[r(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var e=this.getEvents();i.on(e,this),this.once("remove",(function(){i.off(e,this)}),this)}this.onAdd(i),this.getAttribution&&i.attributionControl&&i.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),i.fire("layeradd",{layer:this})}}});te.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=r(t);return this._layers[i]||(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var i=r(t);return this._layers[i]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&r(t)in this._layers},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},_addLayers:function(t){for(var i=0,e=(t=t?g(t)?t:[t]:[]).length;ithis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()i)return r=(n-i)/e,this._map.layerPointToLatLng([s.x-r*(s.x-o.x),s.y-r*(s.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=W(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new N,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Ze(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],e=Ze(t),n=0,o=t.length;n=2&&i[0]instanceof j&&i[0].equals(i[e-1])&&i.pop(),i},_setLatLngs:function(t){on.prototype._setLatLngs.call(this,t),Ze(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ze(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,e=new B(i,i);if(t=new O(t.min.subtract(e),t.max.add(e)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,s=this._rings.length;ot.y!==n.y>t.y&&t.x<(n.x-e.x)*(t.y-e.y)/(n.y-e.y)+e.x&&(u=!u);return u||on.prototype._containsPoint.call(this,t,!0)}});function an(t,i){return new rn(t,i)}var hn=Ue.extend({initialize:function(t,i){d(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,e,n,o=g(t)?t:t.features;if(o){for(i=0,e=o.length;i0?n:[i.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop,i.muted=!!this.options.muted;for(var r=0;ro?(i.height=o+"px",mi(t,s)):fi(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();Li(this._container,i.add(e))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,i=parseInt(hi(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+i,n=this._containerWidth,o=new B(this._containerLeft,-e-this._containerBottom);o._add(bi(this._container));var s=t.layerPointToContainerPoint(o),r=I(this.options.autoPanPadding),a=I(this.options.autoPanPaddingTopLeft||r),h=I(this.options.autoPanPaddingBottomRight||r),u=t.getSize(),l=0,c=0;s.x+n+h.x>u.x&&(l=s.x+n-u.x+h.x),s.x-l-a.x<0&&(l=s.x-a.x),s.y+e+h.y>u.y&&(c=s.y+e-u.y+h.y),s.y-c-a.y<0&&(c=s.y-a.y),(l||c)&&t.fire("autopanstart").panBy([l,c])}},_onCloseButtonClick:function(t){this._close(),Ui(t)},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Cn=function(t,i){return new zn(t,i)};te.mergeOptions({closePopupOnClick:!0}),te.include({openPopup:function(t,i,e){return t instanceof zn||(t=new zn(e).setContent(t)),i&&t.setLatLng(i),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),We.include({bindPopup:function(t,i){return t instanceof zn?(d(t,i),this._popup=t,t._source=this):(this._popup&&!i||(this._popup=new zn(i,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,i){return this._popup&&this._map&&(i=this._popup._prepareOpen(this,t,i),this._map.openPopup(this._popup,i)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var i=t.layer||t.target;this._popup&&this._map&&(Ui(t),i instanceof $e?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===i?this.closePopup():this.openPopup(i,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Sn=Mn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Mn.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){Mn.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Mn.prototype.getEvents.call(this);return Lt&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ui("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,e,n=this._map,o=this._container,s=n.latLngToContainerPoint(n.getCenter()),r=n.layerPointToContainerPoint(t),a=this.options.direction,h=o.offsetWidth,u=o.offsetHeight,l=I(this.options.offset),c=this._getAnchor();"top"===a?(i=h/2,e=u):"bottom"===a?(i=h/2,e=0):"center"===a?(i=h/2,e=u/2):"right"===a?(i=0,e=u/2):"left"===a?(i=h,e=u/2):r.xthis.options.maxZoom||en&&this._retainParent(o,s,r,n))},_retainChildren:function(t,i,e,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*i;s<2*i+2;s++){var r=new B(o,s);r.z=e+1;var a=this._tileCoordsToKey(r),h=this._tiles[a];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),e+1this.options.maxZoom||void 0!==this.options.minZoom&&o1)this._setView(t,e);else{for(var c=o.min.y;c<=o.max.y;c++)for(var _=o.min.x;_<=o.max.x;_++){var d=new B(_,c);if(d.z=this._tileZoom,this._isValidTile(d)){var p=this._tiles[this._tileCoordsToKey(d)];p?p.current=!0:r.push(d)}}if(r.sort((function(t,i){return t.distanceTo(s)-i.distanceTo(s)})),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(_=0;_e.max.x)||!i.wrapLat&&(t.ye.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return D(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,e=this.getTileSize(),n=t.scaleBy(e),o=n.add(e);return[i.unproject(n,t.z),i.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),e=new N(i[0],i[1]);return this.options.noWrap||(e=this._map.wrapLatLngBounds(e)),e},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),e=new B(+i[0],+i[1]);return e.z=+i[2],e},_removeTile:function(t){var i=this._tiles[t];i&&(li(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){mi(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=u,t.onmousemove=u,tt&&this.options.opacity<1&&yi(t,this.options.opacity),nt&&!ot&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,i){var e=this._getTilePos(t),n=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&M(o(this._tileReady,this,t,null,s)),Li(s,e),this._tiles[n]={el:s,coords:t,current:!0},i.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,i,e){i&&this.fire("tileerror",{error:i,tile:e,coords:t});var n=this._tileCoordsToKey(t);(e=this._tiles[n])&&(e.loaded=+new Date,this._map._fadeAnimated?(yi(e.el,0),z(this._fadeFrame),this._fadeFrame=M(this._updateOpacity,this)):(e.active=!0,this._pruneTiles()),i||(mi(e.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:e.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),tt||!this._map._fadeAnimated?M(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new B(this._wrapX?h(t.x,this._wrapX):t.x,this._wrapY?h(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new O(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function An(t){return new Bn(t)}var In=Bn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,i){this._url=t,(i=d(this,i)).detectRetina&&Mt&&i.maxZoom>0&&(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom++):(i.zoomOffset++,i.maxZoom--),i.minZoom=Math.max(0,i.minZoom)),"string"===typeof i.subdomains&&(i.subdomains=i.subdomains.split("")),nt||this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url===t&&void 0===i&&(i=!0),this._url=t,i||this.redraw(),this},createTile:function(t,i){var e=document.createElement("img");return Bi(e,"load",o(this._tileOnLoad,this,i,e)),Bi(e,"error",o(this._tileOnError,this,i,e)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),e.alt="",e.setAttribute("role","presentation"),e.src=this.getTileUrl(t),e},getTileUrl:function(t){var i={r:Mt?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(i.y=n),i["-y"]=n}return f(this._url,e(i,this.options))},_tileOnLoad:function(t,i){tt?setTimeout(o(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,e){var n=this.options.errorTileUrl;n&&i.getAttribute("src")!==n&&(i.src=n),t(e,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom;return this.options.zoomReverse&&(t=i-t),t+this.options.zoomOffset},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((i=this._tiles[t].el).onload=u,i.onerror=u,i.complete||(i.src=y,li(i),delete this._tiles[t]))},_removeTile:function(t){var i=this._tiles[t];if(i)return rt||i.el.setAttribute("src",y),Bn.prototype._removeTile.call(this,t)},_tileReady:function(t,i,e){if(this._map&&(!e||e.getAttribute("src")!==y))return Bn.prototype._tileReady.call(this,t,i,e)}});function On(t,i){return new In(t,i)}var Rn=In.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var n=e({},this.defaultWmsParams);for(var o in i)o in this.options||(n[o]=i[o]);var s=(i=d(this,i)).detectRetina&&Mt?2:1,r=this.getTileSize();n.width=r.x*s,n.height=r.y*s,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code,In.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),e=this._crs,n=R(e.project(i[0]),e.project(i[1])),o=n.min,s=n.max,r=(this._wmsVersion>=1.3&&this._crs===De?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=In.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,i){return e(this.wmsParams,t),i||this.redraw(),this}});function Nn(t,i){return new Rn(t,i)}In.WMS=Rn,On.wms=Nn;var Dn=We.extend({options:{padding:.1,tolerance:0},initialize:function(t){d(this,t),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&mi(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var e=this._map.getZoomScale(i,this._zoom),n=bi(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,i),r=this._map.project(t,i).subtract(s),a=o.multiplyBy(-e).add(n).add(o).subtract(r);gt?Pi(this._container,a,e):Li(this._container,a)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),e=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new O(e,e.add(i.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),jn=Dn.extend({getEvents:function(){var t=Dn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Dn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Bi(t,"mousemove",this._onMouseMove,this),Bi(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Bi(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){z(this._redrawRequest),delete this._ctx,li(this._container),Ii(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Dn.prototype._update.call(this);var t=this._bounds,i=this._container,e=t.getSize(),n=Mt?2:1;Li(i,t.min),i.width=n*e.x,i.height=n*e.y,i.style.width=e.x+"px",i.style.height=e.y+"px",Mt&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Dn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[r(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,e=i.next,n=i.prev;e?e.prev=n:this._drawLast=n,n?n.next=e:this._drawFirst=e,delete t._order,delete this._layers[r(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"===typeof t.options.dashArray){var i,e,n=t.options.dashArray.split(/[, ]+/),o=[];for(e=0;e')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),Fn={_initContainer:function(){this._container=ui("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Dn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=Hn("shape");mi(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=Hn("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;li(i),t.removeInteractiveTarget(i),delete this._layers[r(t)]},_updateStyle:function(t){var i=t._stroke,e=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(i||(i=t._stroke=Hn("stroke")),o.appendChild(i),i.weight=n.weight+"px",i.color=n.color,i.opacity=n.opacity,n.dashArray?i.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=n.lineCap.replace("butt","flat"),i.joinstyle=n.lineJoin):i&&(o.removeChild(i),t._stroke=null),n.fill?(e||(e=t._fill=Hn("fill")),o.appendChild(e),e.color=n.fillColor||n.color,e.opacity=n.fillOpacity):e&&(o.removeChild(e),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),e=Math.round(t._radius),n=Math.round(t._radiusY||e);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+e+","+n+" 0,23592600")},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){_i(t._container)},_bringToBack:function(t){di(t._container)}},Un=Zt?Hn:X,Vn=Dn.extend({getEvents:function(){var t=Dn.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=Un("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Un("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){li(this._container),Ii(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){Dn.prototype._update.call(this);var t=this._bounds,i=t.getSize(),e=this._container;this._svgSize&&this._svgSize.equals(i)||(this._svgSize=i,e.setAttribute("width",i.x),e.setAttribute("height",i.y)),Li(e,t.min),e.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(t){var i=t._path=Un("path");t.options.className&&mi(i,t.options.className),t.options.interactive&&mi(i,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){li(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,e=t.options;i&&(e.stroke?(i.setAttribute("stroke",e.color),i.setAttribute("stroke-opacity",e.opacity),i.setAttribute("stroke-width",e.weight),i.setAttribute("stroke-linecap",e.lineCap),i.setAttribute("stroke-linejoin",e.lineJoin),e.dashArray?i.setAttribute("stroke-dasharray",e.dashArray):i.removeAttribute("stroke-dasharray"),e.dashOffset?i.setAttribute("stroke-dashoffset",e.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),e.fill?(i.setAttribute("fill",e.fillColor||e.color),i.setAttribute("fill-opacity",e.fillOpacity),i.setAttribute("fill-rule",e.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,J(t._parts,i))},_updateCircle:function(t){var i=t._point,e=Math.max(Math.round(t._radius),1),n="a"+e+","+(Math.max(Math.round(t._radiusY),1)||e)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(i.x-e)+","+i.y+n+2*e+",0 "+n+2*-e+",0 ";this._setPath(t,o)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){_i(t._path)},_bringToBack:function(t){di(t._path)}});function qn(t){return St||Zt?new Vn(t):null}Zt&&Vn.include(Fn),te.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this._createRenderer()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var i=this._paneRenderers[t];return void 0===i&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&Wn(t)||qn(t)}});var Gn=rn.extend({initialize:function(t,i){rn.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=D(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Kn(t,i){return new Gn(t,i)}Vn.create=Un,Vn.pointsToPath=J,hn.geometryToLayer=un,hn.coordsToLatLng=cn,hn.coordsToLatLngs=_n,hn.latLngToCoords=dn,hn.latLngsToCoords=pn,hn.getFeature=mn,hn.asFeature=fn,te.mergeOptions({boxZoom:!0});var Yn=_e.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Bi(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ii(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){li(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Qt(),Mi(),this._startPoint=this._map.mouseEventToContainerPoint(t),Bi(document,{contextmenu:Ui,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ui("div","leaflet-zoom-box",this._container),mi(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new O(this._point,this._startPoint),e=i.getSize();Li(this._box,i.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(li(this._box),fi(this._container,"leaflet-crosshair")),ti(),zi(),Ii(document,{contextmenu:Ui,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var i=new N(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});te.addInitHook("addHandler","boxZoom",Yn),te.mergeOptions({doubleClickZoom:!0});var Xn=_e.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,e=i.getZoom(),n=i.options.zoomDelta,o=t.originalEvent.shiftKey?e-n:e+n;"center"===i.options.doubleClickZoom?i.setZoom(o):i.setZoomAround(t.containerPoint,o)}});te.addInitHook("addHandler","doubleClickZoom",Xn),te.mergeOptions({dragging:!0,inertia:!ot,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Jn=_e.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new ve(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}mi(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){fi(this._map._container,"leaflet-grab"),fi(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=D(this._map.options.maxBounds);this._offsetLimit=R(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(e),this._times.push(i),this._prunePositions(i)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.xi.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),e=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-i+e)%t+i-e,s=(n+i+e)%t-i-e,r=Math.abs(o+e)0?s:-s))-i;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(i+r):t.setZoomAround(this._lastMousePos,i+r))}});te.addInitHook("addHandler","scrollWheelZoom",Qn),te.mergeOptions({tap:!0,tapTolerance:15});var to=_e.extend({addHooks:function(){Bi(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ii(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Fi(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var i=t.touches[0],e=i.target;this._startPos=this._newPos=new B(i.clientX,i.clientY),e.tagName&&"a"===e.tagName.toLowerCase()&&mi(e,"leaflet-active"),this._holdTimeout=setTimeout(o((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",i))}),this),1e3),this._simulateEvent("mousedown",i),Bi(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),Ii(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var i=t.changedTouches[0],e=i.target;e&&e.tagName&&"a"===e.tagName.toLowerCase()&&fi(e,"leaflet-active"),this._simulateEvent("mouseup",i),this._isTapValid()&&this._simulateEvent("click",i)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var i=t.touches[0];this._newPos=new B(i.clientX,i.clientY),this._simulateEvent("mousemove",i)},_simulateEvent:function(t,i){var e=document.createEvent("MouseEvents");e._simulated=!0,i.target._simulatedClick=!0,e.initMouseEvent(t,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),i.target.dispatchEvent(e)}});!Lt||Pt&&!lt||te.addInitHook("addHandler","tap",to),te.mergeOptions({touchZoom:Lt&&!ot,bounceAtZoomLimits:!0});var io=_e.extend({addHooks:function(){mi(this._map._container,"leaflet-touch-zoom"),Bi(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){fi(this._map._container,"leaflet-touch-zoom"),Ii(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(t.touches&&2===t.touches.length&&!i._animatingZoom&&!this._zooming){var e=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),"center"!==i.options.touchZoom&&(this._pinchStartLatLng=i.containerPointToLatLng(e.add(n)._divideBy(2))),this._startDist=e.distanceTo(n),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),Bi(document,"touchmove",this._onTouchMove,this),Bi(document,"touchend",this._onTouchEnd,this),Fi(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var i=this._map,e=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]),s=e.distanceTo(n)/this._startDist;if(this._zoom=i.getScaleZoom(s,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoomi.getMaxZoom()&&s>1)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1===s)return}else{var r=e._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===s&&0===r.x&&0===r.y)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),z(this._animRequest);var a=o(i._move,i,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=M(a,this,!0),Fi(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,z(this._animRequest),Ii(document,"touchmove",this._onTouchMove,this),Ii(document,"touchend",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});te.addInitHook("addHandler","touchZoom",io),te.BoxZoom=Yn,te.DoubleClickZoom=Xn,te.Drag=Jn,te.Keyboard=$n,te.ScrollWheelZoom=Qn,te.Tap=to,te.TouchZoom=io,t.version=i,t.Control=ee,t.control=ne,t.Browser=Et,t.Evented=E,t.Mixin=pe,t.Util=C,t.Class=S,t.Handler=_e,t.extend=e,t.bind=o,t.stamp=r,t.setOptions=d,t.DomEvent=$i,t.DomUtil=Ei,t.PosAnimation=Qi,t.Draggable=ve,t.LineUtil=Ee,t.PolyUtil=Ae,t.Point=B,t.point=I,t.Bounds=O,t.bounds=R,t.Transformation=q,t.transformation=G,t.Projection=Re,t.LatLng=j,t.latLng=W,t.LatLngBounds=N,t.latLngBounds=D,t.CRS=H,t.GeoJSON=hn,t.geoJSON=vn,t.geoJson=yn,t.Layer=We,t.LayerGroup=He,t.layerGroup=Fe,t.FeatureGroup=Ue,t.featureGroup=Ve,t.ImageOverlay=xn,t.imageOverlay=wn,t.VideoOverlay=Pn,t.videoOverlay=Ln,t.SVGOverlay=bn,t.svgOverlay=Tn,t.DivOverlay=Mn,t.Popup=zn,t.popup=Cn,t.Tooltip=Sn,t.tooltip=Zn,t.Icon=qe,t.icon=Ge,t.DivIcon=kn,t.divIcon=En,t.Marker=Xe,t.marker=Je,t.TileLayer=In,t.tileLayer=On,t.GridLayer=Bn,t.gridLayer=An,t.SVG=Vn,t.svg=qn,t.Renderer=Dn,t.Canvas=jn,t.canvas=Wn,t.Path=$e,t.CircleMarker=Qe,t.circleMarker=tn,t.Circle=en,t.circle=nn,t.Polyline=on,t.polyline=sn,t.Polygon=rn,t.polygon=an,t.Rectangle=Gn,t.rectangle=Kn,t.Map=te,t.map=ie;var eo=window.L;t.noConflict=function(){return window.L=eo,this},window.L=t}(i)}}]); \ No newline at end of file diff --git a/portal_build/out/_next/static/chunks/29107295.2648cb5e919f7c78c7cc.js b/portal_build/out/_next/static/chunks/29107295.2648cb5e919f7c78c7cc.js new file mode 100644 index 00000000..38f66828 --- /dev/null +++ b/portal_build/out/_next/static/chunks/29107295.2648cb5e919f7c78c7cc.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[662],{6486:function(n,t,r){var e;n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=16,c=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,_=NaN,g=4294967295,y=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",c],["partialRight",l],["rearg",h]],d="[object Arguments]",b="[object Array]",w="[object Boolean]",m="[object Date]",x="[object Error]",j="[object Function]",A="[object GeneratorFunction]",k="[object Map]",O="[object Number]",I="[object Object]",E="[object Promise]",R="[object RegExp]",z="[object Set]",S="[object String]",C="[object Symbol]",W="[object WeakMap]",L="[object ArrayBuffer]",U="[object DataView]",B="[object Float32Array]",T="[object Float64Array]",$="[object Int8Array]",D="[object Int16Array]",N="[object Int32Array]",M="[object Uint8Array]",F="[object Uint8ClampedArray]",P="[object Uint16Array]",q="[object Uint32Array]",Z=/\b__p \+= '';/g,K=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,J=RegExp(G.source),Y=RegExp(H.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),fn=/^\s+/,an=/\s/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,yn=/^[-+]0x[0-9a-f]+$/i,dn=/^0b[01]+$/i,bn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jn=/($^)/,An=/['\n\r\u2028\u2029\\]/g,kn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",On="\\u2700-\\u27bf",In="a-z\\xdf-\\xf6\\xf8-\\xff",En="A-Z\\xc0-\\xd6\\xd8-\\xde",Rn="\\ufe0e\\ufe0f",zn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Sn="['\u2019]",Cn="[\\ud800-\\udfff]",Wn="["+zn+"]",Ln="["+kn+"]",Un="\\d+",Bn="[\\u2700-\\u27bf]",Tn="["+In+"]",$n="[^\\ud800-\\udfff"+zn+Un+On+In+En+"]",Dn="\\ud83c[\\udffb-\\udfff]",Nn="[^\\ud800-\\udfff]",Mn="(?:\\ud83c[\\udde6-\\uddff]){2}",Fn="[\\ud800-\\udbff][\\udc00-\\udfff]",Pn="["+En+"]",qn="(?:"+Tn+"|"+$n+")",Zn="(?:"+Pn+"|"+$n+")",Kn="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Vn="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Gn="(?:"+Ln+"|"+Dn+")"+"?",Hn="[\\ufe0e\\ufe0f]?",Jn=Hn+Gn+("(?:\\u200d(?:"+[Nn,Mn,Fn].join("|")+")"+Hn+Gn+")*"),Yn="(?:"+[Bn,Mn,Fn].join("|")+")"+Jn,Qn="(?:"+[Nn+Ln+"?",Ln,Mn,Fn,Cn].join("|")+")",Xn=RegExp(Sn,"g"),nt=RegExp(Ln,"g"),tt=RegExp(Dn+"(?="+Dn+")|"+Qn+Jn,"g"),rt=RegExp([Pn+"?"+Tn+"+"+Kn+"(?="+[Wn,Pn,"$"].join("|")+")",Zn+"+"+Vn+"(?="+[Wn,Pn+qn,"$"].join("|")+")",Pn+"?"+qn+"+"+Kn,Pn+"+"+Vn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Un,Yn].join("|"),"g"),et=RegExp("[\\u200d\\ud800-\\udfff"+kn+Rn+"]"),ut=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,ft={};ft[B]=ft[T]=ft[$]=ft[D]=ft[N]=ft[M]=ft[F]=ft[P]=ft[q]=!0,ft[d]=ft[b]=ft[L]=ft[w]=ft[U]=ft[m]=ft[x]=ft[j]=ft[k]=ft[O]=ft[I]=ft[R]=ft[z]=ft[S]=ft[W]=!1;var at={};at[d]=at[b]=at[L]=at[U]=at[w]=at[m]=at[B]=at[T]=at[$]=at[D]=at[N]=at[k]=at[O]=at[I]=at[R]=at[z]=at[S]=at[C]=at[M]=at[F]=at[P]=at[q]=!0,at[x]=at[j]=at[W]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,st=parseInt,ht="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,pt="object"==typeof self&&self&&self.Object===Object&&self,vt=ht||pt||Function("return this")(),_t=t&&!t.nodeType&&t,gt=_t&&n&&!n.nodeType&&n,yt=gt&>.exports===_t,dt=yt&&ht.process,bt=function(){try{var n=gt&>.require&>.require("util").types;return n||dt&&dt.binding&&dt.binding("util")}catch(t){}}(),wt=bt&&bt.isArrayBuffer,mt=bt&&bt.isDate,xt=bt&&bt.isMap,jt=bt&&bt.isRegExp,At=bt&&bt.isSet,kt=bt&&bt.isTypedArray;function Ot(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function It(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function Wt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function rr(n,t){for(var r=n.length;r--&&Ft(t,n[r],0)>-1;);return r}function er(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}var ur=Vt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),ir=Vt({"&":"&","<":"<",">":">",'"':""","'":"'"});function or(n){return"\\"+ct[n]}function fr(n){return et.test(n)}function ar(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function cr(n,t){return function(r){return n(t(r))}}function lr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"});var yr=function n(t){var r=(t=null==t?vt:yr.defaults(vt.Object(),t,yr.pick(vt,it))).Array,e=t.Date,an=t.Error,kn=t.Function,On=t.Math,In=t.Object,En=t.RegExp,Rn=t.String,zn=t.TypeError,Sn=r.prototype,Cn=kn.prototype,Wn=In.prototype,Ln=t["__core-js_shared__"],Un=Cn.toString,Bn=Wn.hasOwnProperty,Tn=0,$n=function(){var n=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Dn=Wn.toString,Nn=Un.call(In),Mn=vt._,Fn=En("^"+Un.call(Bn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pn=yt?t.Buffer:u,qn=t.Symbol,Zn=t.Uint8Array,Kn=Pn?Pn.allocUnsafe:u,Vn=cr(In.getPrototypeOf,In),Gn=In.create,Hn=Wn.propertyIsEnumerable,Jn=Sn.splice,Yn=qn?qn.isConcatSpreadable:u,Qn=qn?qn.iterator:u,tt=qn?qn.toStringTag:u,et=function(){try{var n=hi(In,"defineProperty");return n({},"",{}),n}catch(t){}}(),ct=t.clearTimeout!==vt.clearTimeout&&t.clearTimeout,ht=e&&e.now!==vt.Date.now&&e.now,pt=t.setTimeout!==vt.setTimeout&&t.setTimeout,_t=On.ceil,gt=On.floor,dt=In.getOwnPropertySymbols,bt=Pn?Pn.isBuffer:u,Dt=t.isFinite,Vt=Sn.join,dr=cr(In.keys,In),br=On.max,wr=On.min,mr=e.now,xr=t.parseInt,jr=On.random,Ar=Sn.reverse,kr=hi(t,"DataView"),Or=hi(t,"Map"),Ir=hi(t,"Promise"),Er=hi(t,"Set"),Rr=hi(t,"WeakMap"),zr=hi(In,"create"),Sr=Rr&&new Rr,Cr={},Wr=Di(kr),Lr=Di(Or),Ur=Di(Ir),Br=Di(Er),Tr=Di(Rr),$r=qn?qn.prototype:u,Dr=$r?$r.valueOf:u,Nr=$r?$r.toString:u;function Mr(n){if(ef(n)&&!Ko(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Bn.call(n,"__wrapped__"))return Ni(n)}return new qr(n)}var Fr=function(){function n(){}return function(t){if(!rf(t))return{};if(Gn)return Gn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Pr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Zr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Kr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function ce(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),f!==u)return f;if(!rf(n))return n;var s=Ko(n);if(s){if(f=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Bn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!a)return zu(n,f)}else{var h=_i(n),p=h==j||h==A;if(Jo(n))return Au(n,a);if(h==I||h==d||p&&!i){if(f=c||p?{}:yi(n),!a)return c?function(n,t){return Su(n,vi(n),t)}(n,function(n,t){return n&&Su(t,Uf(t),n)}(f,n)):function(n,t){return Su(n,pi(n),t)}(n,ie(f,n))}else{if(!at[h])return i?n:{};f=function(n,t,r){var e=n.constructor;switch(t){case L:return ku(n);case w:case m:return new e(+n);case U:return function(n,t){var r=t?ku(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case B:case T:case $:case D:case N:case M:case F:case P:case q:return Ou(n,r);case k:return new e;case O:case S:return new e(n);case R:return function(n){var t=new n.constructor(n.source,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case z:return new e;case C:return u=n,Dr?In(Dr.call(u)):{}}var u}(n,h,a)}}o||(o=new Jr);var v=o.get(n);if(v)return v;o.set(n,f),cf(n)?n.forEach((function(e){f.add(ce(e,t,r,e,n,o))})):uf(n)&&n.forEach((function(e,u){f.set(u,ce(e,t,r,u,n,o))}));var _=s?u:(l?c?ii:ui:c?Uf:Lf)(n);return Et(_||n,(function(e,u){_&&(e=n[u=e]),re(f,u,ce(e,t,r,u,n,o))})),f}function le(n,t,r){var e=r.length;if(null==n)return!e;for(n=In(n);e--;){var i=r[e],o=t[i],f=n[i];if(f===u&&!(i in n)||!o(f))return!1}return!0}function se(n,t,r){if("function"!=typeof n)throw new zn(i);return Ci((function(){n.apply(u,r)}),t)}function he(n,t,r,e){var u=-1,i=Ct,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=Lt(t,Qt(r))),e?(i=Wt,o=!1):t.length>=200&&(i=nr,o=!1,t=new Hr(t));n:for(;++u-1},Vr.prototype.set=function(n,t){var r=this.__data__,e=ee(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Gr.prototype.clear=function(){this.size=0,this.__data__={hash:new Kr,map:new(Or||Vr),string:new Kr}},Gr.prototype.delete=function(n){var t=li(this,n).delete(n);return this.size-=t?1:0,t},Gr.prototype.get=function(n){return li(this,n).get(n)},Gr.prototype.has=function(n){return li(this,n).has(n)},Gr.prototype.set=function(n,t){var r=li(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Hr.prototype.add=Hr.prototype.push=function(n){return this.__data__.set(n,o),this},Hr.prototype.has=function(n){return this.__data__.has(n)},Jr.prototype.clear=function(){this.__data__=new Vr,this.size=0},Jr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Jr.prototype.get=function(n){return this.__data__.get(n)},Jr.prototype.has=function(n){return this.__data__.has(n)},Jr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Vr){var e=r.__data__;if(!Or||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Gr(e)}return r.set(n,t),this.size=r.size,this};var pe=Lu(me),ve=Lu(xe,!0);function _e(n,t){var r=!0;return pe(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function ge(n,t,r){for(var e=-1,i=n.length;++e0&&r(f)?t>1?de(f,t-1,r,e,u):Ut(u,f):e||(u[u.length]=f)}return u}var be=Uu(),we=Uu(!0);function me(n,t){return n&&be(n,t,Lf)}function xe(n,t){return n&&we(n,t,Lf)}function je(n,t){return St(t,(function(t){return Xo(n[t])}))}function Ae(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&rt}function Ee(n,t){return null!=n&&Bn.call(n,t)}function Re(n,t){return null!=n&&t in In(n)}function ze(n,t,e){for(var i=e?Wt:Ct,o=n[0].length,f=n.length,a=f,c=r(f),l=1/0,s=[];a--;){var h=n[a];a&&t&&(h=Lt(h,Qt(t))),l=wr(h.length,l),c[a]=!e&&(t||o>=120&&h.length>=120)?new Hr(a&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p=f?a:a*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ke(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&Jn.call(f,a,1),Jn.call(n,a,1);return n}function Ge(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;bi(u)?Jn.call(n,u,1):hu(n,u)}}return n}function He(n,t){return n+gt(jr()*(t-n+1))}function Je(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=gt(t/2))&&(n+=n)}while(t);return r}function Ye(n,t){return Wi(Ii(n,t,oa),n+"")}function Qe(n){return Qr(Pf(n))}function Xe(n,t){var r=Pf(n);return Bi(r,ae(t,0,r.length))}function nu(n,t,r,e){if(!rf(n))return n;for(var i=-1,o=(t=wu(t,n)).length,f=o-1,a=n;null!=a&&++ii?0:i+t),(e=e>i?i:e)<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var o=r(i);++u>>1,o=n[i];null!==o&&!sf(o)&&(r?o<=t:o=200){var c=t?null:Ju(n);if(c)return sr(c);o=!1,u=nr,a=new Hr}else a=t?[]:f;n:for(;++e=e?n:uu(n,t,r)}var ju=ct||function(n){return vt.clearTimeout(n)};function Au(n,t){if(t)return n.slice();var r=n.length,e=Kn?Kn(r):new n.constructor(r);return n.copy(e),e}function ku(n){var t=new n.constructor(n.byteLength);return new Zn(t).set(new Zn(n)),t}function Ou(n,t){var r=t?ku(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Iu(n,t){if(n!==t){var r=n!==u,e=null===n,i=n===n,o=sf(n),f=t!==u,a=null===t,c=t===t,l=sf(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&wi(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=In(t);++e-1?i[o?t[f]:f]:u}}function Nu(n){return ei((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new zn(i);if(o&&!a&&"wrapper"==fi(f))var a=new qr([],!0)}for(e=a?e:r;++e1&&b.reverse(),p&&la))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Hr:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(cn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return Et(y,(function(r){var e="_."+r[0];t&r[1]&&!Ct(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Ui(n){var t=0,r=0;return function(){var e=mr(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Bi(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,oo(n,r)}));function po(n){var t=Mr(n);return t.__chain__=!0,t}function vo(n,t){return t(n)}var _o=ei((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return fe(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Zr&&bi(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:vo,args:[i],thisArg:u}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var go=Cu((function(n,t,r){Bn.call(n,r)?++n[r]:oe(n,r,1)}));var yo=Du(qi),bo=Du(Zi);function wo(n,t){return(Ko(n)?Et:pe)(n,ci(t,3))}function mo(n,t){return(Ko(n)?Rt:ve)(n,ci(t,3))}var xo=Cu((function(n,t,r){Bn.call(n,r)?n[r].push(t):oe(n,r,[t])}));var jo=Ye((function(n,t,e){var u=-1,i="function"==typeof t,o=Go(n)?r(n.length):[];return pe(n,(function(n){o[++u]=i?Ot(t,n,e):Se(n,t,e)})),o})),Ao=Cu((function(n,t,r){oe(n,r,t)}));function ko(n,t){return(Ko(n)?Lt:Ne)(n,ci(t,3))}var Oo=Cu((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var Io=Ye((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wi(n,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Ze(n,de(t,1),[])})),Eo=ht||function(){return vt.Date.now()};function Ro(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Qu(n,s,u,u,u,u,t)}function zo(n,t){var r;if("function"!=typeof t)throw new zn(i);return n=yf(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var So=Ye((function(n,t,r){var e=1;if(r.length){var u=lr(r,ai(So));e|=c}return Qu(n,e,t,r,u)})),Co=Ye((function(n,t,r){var e=3;if(r.length){var u=lr(r,ai(Co));e|=c}return Qu(t,e,n,r,u)}));function Wo(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new zn(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){return s=n,c=Ci(d,t),h?_(n):a}function y(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=f}function d(){var n=Eo();if(y(n))return b(n);c=Ci(d,function(n){var r=t-(n-l);return p?wr(r,f-(n-s)):r}(n))}function b(n){return c=u,v&&e?_(n):(e=o=u,a)}function w(){var n=Eo(),r=y(n);if(e=arguments,o=this,l=n,r){if(c===u)return g(l);if(p)return ju(c),c=Ci(d,t),_(l)}return c===u&&(c=Ci(d,t)),a}return t=bf(t)||0,rf(r)&&(h=!!r.leading,f=(p="maxWait"in r)?br(bf(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),w.cancel=function(){c!==u&&ju(c),s=0,e=l=o=c=u},w.flush=function(){return c===u?a:b(Eo())},w}var Lo=Ye((function(n,t){return se(n,1,t)})),Uo=Ye((function(n,t,r){return se(n,bf(t)||0,r)}));function Bo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new zn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Bo.Cache||Gr),r}function To(n){if("function"!=typeof n)throw new zn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Bo.Cache=Gr;var $o=mu((function(n,t){var r=(t=1==t.length&&Ko(t[0])?Lt(t[0],Qt(ci())):Lt(de(t,1),Qt(ci()))).length;return Ye((function(e){for(var u=-1,i=wr(e.length,r);++u=t})),Zo=Ce(function(){return arguments}())?Ce:function(n){return ef(n)&&Bn.call(n,"callee")&&!Hn.call(n,"callee")},Ko=r.isArray,Vo=wt?Qt(wt):function(n){return ef(n)&&Oe(n)==L};function Go(n){return null!=n&&tf(n.length)&&!Xo(n)}function Ho(n){return ef(n)&&Go(n)}var Jo=bt||ba,Yo=mt?Qt(mt):function(n){return ef(n)&&Oe(n)==m};function Qo(n){if(!ef(n))return!1;var t=Oe(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!ff(n)}function Xo(n){if(!rf(n))return!1;var t=Oe(n);return t==j||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function nf(n){return"number"==typeof n&&n==yf(n)}function tf(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function rf(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function ef(n){return null!=n&&"object"==typeof n}var uf=xt?Qt(xt):function(n){return ef(n)&&_i(n)==k};function of(n){return"number"==typeof n||ef(n)&&Oe(n)==O}function ff(n){if(!ef(n)||Oe(n)!=I)return!1;var t=Vn(n);if(null===t)return!0;var r=Bn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Un.call(r)==Nn}var af=jt?Qt(jt):function(n){return ef(n)&&Oe(n)==R};var cf=At?Qt(At):function(n){return ef(n)&&_i(n)==z};function lf(n){return"string"==typeof n||!Ko(n)&&ef(n)&&Oe(n)==S}function sf(n){return"symbol"==typeof n||ef(n)&&Oe(n)==C}var hf=kt?Qt(kt):function(n){return ef(n)&&tf(n.length)&&!!ft[Oe(n)]};var pf=Vu(De),vf=Vu((function(n,t){return n<=t}));function _f(n){if(!n)return[];if(Go(n))return lf(n)?vr(n):zu(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=_i(n);return(t==k?ar:t==z?sr:Pf)(n)}function gf(n){return n?(n=bf(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n===n?n:0:0===n?n:0}function yf(n){var t=gf(n),r=t%1;return t===t?r?t-r:t:0}function df(n){return n?ae(yf(n),0,g):0}function bf(n){if("number"==typeof n)return n;if(sf(n))return _;if(rf(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=rf(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Yt(n);var r=dn.test(n);return r||wn.test(n)?st(n.slice(2),r?2:8):yn.test(n)?_:+n}function wf(n){return Su(n,Uf(n))}function mf(n){return null==n?"":lu(n)}var xf=Wu((function(n,t){if(Ai(t)||Go(t))Su(t,Lf(t),n);else for(var r in t)Bn.call(t,r)&&re(n,r,t[r])})),jf=Wu((function(n,t){Su(t,Uf(t),n)})),Af=Wu((function(n,t,r,e){Su(t,Uf(t),n,e)})),kf=Wu((function(n,t,r,e){Su(t,Lf(t),n,e)})),Of=ei(fe);var If=Ye((function(n,t){n=In(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&wi(t[0],t[1],i)&&(e=1);++r1),t})),Su(n,ii(n),r),e&&(r=ce(r,7,ti));for(var u=t.length;u--;)hu(r,t[u]);return r}));var Df=ei((function(n,t){return null==n?{}:function(n,t){return Ke(n,t,(function(t,r){return zf(n,r)}))}(n,t)}));function Nf(n,t){if(null==n)return{};var r=Lt(ii(n),(function(n){return[n]}));return t=ci(t),Ke(n,r,(function(n,r){return t(n,r[0])}))}var Mf=Yu(Lf),Ff=Yu(Uf);function Pf(n){return null==n?[]:Xt(n,Lf(n))}var qf=Tu((function(n,t,r){return t=t.toLowerCase(),n+(r?Zf(t):t)}));function Zf(n){return Xf(mf(n).toLowerCase())}function Kf(n){return(n=mf(n))&&n.replace(xn,ur).replace(nt,"")}var Vf=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Gf=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Hf=Bu("toLowerCase");var Jf=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Yf=Tu((function(n,t,r){return n+(r?" ":"")+Xf(t)}));var Qf=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Xf=Bu("toUpperCase");function na(n,t,r){return n=mf(n),(t=r?u:t)===u?function(n){return ut.test(n)}(n)?function(n){return n.match(rt)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var ta=Ye((function(n,t){try{return Ot(n,u,t)}catch(r){return Qo(r)?r:new an(r)}})),ra=ei((function(n,t){return Et(t,(function(t){t=$i(t),oe(n,t,So(n[t],n))})),n}));function ea(n){return function(){return n}}var ua=Nu(),ia=Nu(!0);function oa(n){return n}function fa(n){return Be("function"==typeof n?n:ce(n,1))}var aa=Ye((function(n,t){return function(r){return Se(r,n,t)}})),ca=Ye((function(n,t){return function(r){return Se(n,r,t)}}));function la(n,t,r){var e=Lf(t),u=je(t,e);null!=r||rf(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=je(t,Lf(t)));var i=!(rf(r)&&"chain"in r)||!!r.chain,o=Xo(n);return Et(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__),u=r.__actions__=zu(this.__actions__);return u.push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Ut([this.value()],arguments))})})),n}function sa(){}var ha=qu(Lt),pa=qu(zt),va=qu($t);function _a(n){return mi(n)?Kt($i(n)):function(n){return function(t){return Ae(t,n)}}(n)}var ga=Ku(),ya=Ku(!0);function da(){return[]}function ba(){return!1}var wa=Pu((function(n,t){return n+t}),0),ma=Hu("ceil"),xa=Pu((function(n,t){return n/t}),1),ja=Hu("floor");var Aa=Pu((function(n,t){return n*t}),1),ka=Hu("round"),Oa=Pu((function(n,t){return n-t}),0);return Mr.after=function(n,t){if("function"!=typeof t)throw new zn(i);return n=yf(n),function(){if(--n<1)return t.apply(this,arguments)}},Mr.ary=Ro,Mr.assign=xf,Mr.assignIn=jf,Mr.assignInWith=Af,Mr.assignWith=kf,Mr.at=Of,Mr.before=zo,Mr.bind=So,Mr.bindAll=ra,Mr.bindKey=Co,Mr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Ko(n)?n:[n]},Mr.chain=po,Mr.chunk=function(n,t,e){t=(e?wi(n,t,e):t===u)?1:br(yf(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,f=0,a=r(_t(i/t));oi?0:i+r),(e=e===u||e>i?i:yf(e))<0&&(e+=i),e=r>e?0:df(e);r>>0)?(n=mf(n))&&("string"==typeof t||null!=t&&!af(t))&&!(t=lu(t))&&fr(n)?xu(vr(n),0,r):n.split(t,r):[]},Mr.spread=function(n,t){if("function"!=typeof n)throw new zn(i);return t=null==t?0:br(yf(t),0),Ye((function(r){var e=r[t],u=xu(r,0,t);return e&&Ut(u,e),Ot(n,this,u)}))},Mr.tail=function(n){var t=null==n?0:n.length;return t?uu(n,1,t):[]},Mr.take=function(n,t,r){return n&&n.length?uu(n,0,(t=r||t===u?1:yf(t))<0?0:t):[]},Mr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?uu(n,(t=e-(t=r||t===u?1:yf(t)))<0?0:t,e):[]},Mr.takeRightWhile=function(n,t){return n&&n.length?vu(n,ci(t,3),!1,!0):[]},Mr.takeWhile=function(n,t){return n&&n.length?vu(n,ci(t,3)):[]},Mr.tap=function(n,t){return t(n),n},Mr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new zn(i);return rf(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Wo(n,t,{leading:e,maxWait:t,trailing:u})},Mr.thru=vo,Mr.toArray=_f,Mr.toPairs=Mf,Mr.toPairsIn=Ff,Mr.toPath=function(n){return Ko(n)?Lt(n,$i):sf(n)?[n]:zu(Ti(mf(n)))},Mr.toPlainObject=wf,Mr.transform=function(n,t,r){var e=Ko(n),u=e||Jo(n)||hf(n);if(t=ci(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:rf(n)&&Xo(i)?Fr(Vn(n)):{}}return(u?Et:me)(n,(function(n,e,u){return t(r,n,e,u)})),r},Mr.unary=function(n){return Ro(n,1)},Mr.union=ro,Mr.unionBy=eo,Mr.unionWith=uo,Mr.uniq=function(n){return n&&n.length?su(n):[]},Mr.uniqBy=function(n,t){return n&&n.length?su(n,ci(t,2)):[]},Mr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?su(n,u,t):[]},Mr.unset=function(n,t){return null==n||hu(n,t)},Mr.unzip=io,Mr.unzipWith=oo,Mr.update=function(n,t,r){return null==n?n:pu(n,t,bu(r))},Mr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:pu(n,t,bu(r),e)},Mr.values=Pf,Mr.valuesIn=function(n){return null==n?[]:Xt(n,Uf(n))},Mr.without=fo,Mr.words=na,Mr.wrap=function(n,t){return Do(bu(t),n)},Mr.xor=ao,Mr.xorBy=co,Mr.xorWith=lo,Mr.zip=so,Mr.zipObject=function(n,t){return yu(n||[],t||[],re)},Mr.zipObjectDeep=function(n,t){return yu(n||[],t||[],nu)},Mr.zipWith=ho,Mr.entries=Mf,Mr.entriesIn=Ff,Mr.extend=jf,Mr.extendWith=Af,la(Mr,Mr),Mr.add=wa,Mr.attempt=ta,Mr.camelCase=qf,Mr.capitalize=Zf,Mr.ceil=ma,Mr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=bf(r))===r?r:0),t!==u&&(t=(t=bf(t))===t?t:0),ae(bf(n),t,r)},Mr.clone=function(n){return ce(n,4)},Mr.cloneDeep=function(n){return ce(n,5)},Mr.cloneDeepWith=function(n,t){return ce(n,5,t="function"==typeof t?t:u)},Mr.cloneWith=function(n,t){return ce(n,4,t="function"==typeof t?t:u)},Mr.conformsTo=function(n,t){return null==t||le(n,t,Lf(t))},Mr.deburr=Kf,Mr.defaultTo=function(n,t){return null==n||n!==n?t:n},Mr.divide=xa,Mr.endsWith=function(n,t,r){n=mf(n),t=lu(t);var e=n.length,i=r=r===u?e:ae(yf(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Mr.eq=Fo,Mr.escape=function(n){return(n=mf(n))&&Y.test(n)?n.replace(H,ir):n},Mr.escapeRegExp=function(n){return(n=mf(n))&&on.test(n)?n.replace(un,"\\$&"):n},Mr.every=function(n,t,r){var e=Ko(n)?zt:_e;return r&&wi(n,t,r)&&(t=u),e(n,ci(t,3))},Mr.find=yo,Mr.findIndex=qi,Mr.findKey=function(n,t){return Nt(n,ci(t,3),me)},Mr.findLast=bo,Mr.findLastIndex=Zi,Mr.findLastKey=function(n,t){return Nt(n,ci(t,3),xe)},Mr.floor=ja,Mr.forEach=wo,Mr.forEachRight=mo,Mr.forIn=function(n,t){return null==n?n:be(n,ci(t,3),Uf)},Mr.forInRight=function(n,t){return null==n?n:we(n,ci(t,3),Uf)},Mr.forOwn=function(n,t){return n&&me(n,ci(t,3))},Mr.forOwnRight=function(n,t){return n&&xe(n,ci(t,3))},Mr.get=Rf,Mr.gt=Po,Mr.gte=qo,Mr.has=function(n,t){return null!=n&&gi(n,t,Ee)},Mr.hasIn=zf,Mr.head=Vi,Mr.identity=oa,Mr.includes=function(n,t,r,e){n=Go(n)?n:Pf(n),r=r&&!e?yf(r):0;var u=n.length;return r<0&&(r=br(u+r,0)),lf(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&Ft(n,t,r)>-1},Mr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:yf(r);return u<0&&(u=br(e+u,0)),Ft(n,t,u)},Mr.inRange=function(n,t,r){return t=gf(t),r===u?(r=t,t=0):r=gf(r),function(n,t,r){return n>=wr(t,r)&&n=-9007199254740991&&n<=v},Mr.isSet=cf,Mr.isString=lf,Mr.isSymbol=sf,Mr.isTypedArray=hf,Mr.isUndefined=function(n){return n===u},Mr.isWeakMap=function(n){return ef(n)&&_i(n)==W},Mr.isWeakSet=function(n){return ef(n)&&"[object WeakSet]"==Oe(n)},Mr.join=function(n,t){return null==n?"":Vt.call(n,t)},Mr.kebabCase=Vf,Mr.last=Yi,Mr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=yf(r))<0?br(e+i,0):wr(i,e-1)),t===t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):Mt(n,qt,i,!0)},Mr.lowerCase=Gf,Mr.lowerFirst=Hf,Mr.lt=pf,Mr.lte=vf,Mr.max=function(n){return n&&n.length?ge(n,oa,Ie):u},Mr.maxBy=function(n,t){return n&&n.length?ge(n,ci(t,2),Ie):u},Mr.mean=function(n){return Zt(n,oa)},Mr.meanBy=function(n,t){return Zt(n,ci(t,2))},Mr.min=function(n){return n&&n.length?ge(n,oa,De):u},Mr.minBy=function(n,t){return n&&n.length?ge(n,ci(t,2),De):u},Mr.stubArray=da,Mr.stubFalse=ba,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=Aa,Mr.nth=function(n,t){return n&&n.length?qe(n,yf(t)):u},Mr.noConflict=function(){return vt._===this&&(vt._=Mn),this},Mr.noop=sa,Mr.now=Eo,Mr.pad=function(n,t,r){n=mf(n);var e=(t=yf(t))?pr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Zu(gt(u),r)+n+Zu(_t(u),r)},Mr.padEnd=function(n,t,r){n=mf(n);var e=(t=yf(t))?pr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=jr();return wr(n+i*(t-n+lt("1e-"+((i+"").length-1))),t)}return He(n,t)},Mr.reduce=function(n,t,r){var e=Ko(n)?Bt:Gt,u=arguments.length<3;return e(n,ci(t,4),r,u,pe)},Mr.reduceRight=function(n,t,r){var e=Ko(n)?Tt:Gt,u=arguments.length<3;return e(n,ci(t,4),r,u,ve)},Mr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:yf(t),Je(mf(n),t)},Mr.replace=function(){var n=arguments,t=mf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Mr.result=function(n,t,r){var e=-1,i=(t=wu(t,n)).length;for(i||(i=1,n=u);++ev)return[];var r=g,e=wr(n,g);t=ci(t),n-=g;for(var u=Jt(e,t);++r=o)return n;var a=r-pr(e);if(a<1)return e;var c=f?xu(f,0,a).join(""):n.slice(0,a);if(i===u)return c+e;if(f&&(a+=c.length-a),af(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=En(i.source,mf(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?a:h)}}else if(n.indexOf(lu(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Mr.unescape=function(n){return(n=mf(n))&&J.test(n)?n.replace(G,gr):n},Mr.uniqueId=function(n){var t=++Tn;return mf(n)+t},Mr.upperCase=Qf,Mr.upperFirst=Xf,Mr.each=wo,Mr.eachRight=mo,Mr.first=Vi,la(Mr,function(){var n={};return me(Mr,(function(t,r){Bn.call(Mr.prototype,r)||(n[r]=t)})),n}(),{chain:!1}),Mr.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Mr[n].placeholder=Mr})),Et(["drop","take"],(function(n,t){Zr.prototype[n]=function(r){r=r===u?1:br(yf(r),0);var e=this.__filtered__&&!t?new Zr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,g),type:n+(e.__dir__<0?"Right":"")}),e},Zr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),Et(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Zr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ci(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),Et(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Zr.prototype[n]=function(){return this[r](1).value()[0]}})),Et(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Zr.prototype[n]=function(){return this.__filtered__?new Zr(this):this[r](1)}})),Zr.prototype.compact=function(){return this.filter(oa)},Zr.prototype.find=function(n){return this.filter(n).head()},Zr.prototype.findLast=function(n){return this.reverse().find(n)},Zr.prototype.invokeMap=Ye((function(n,t){return"function"==typeof n?new Zr(this):this.map((function(r){return Se(r,n,t)}))})),Zr.prototype.reject=function(n){return this.filter(To(ci(n)))},Zr.prototype.slice=function(n,t){n=yf(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Zr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=yf(t))<0?r.dropRight(-t):r.take(t-n)),r)},Zr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Zr.prototype.toArray=function(){return this.take(g)},me(Zr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Mr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Mr.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof Zr,c=f[0],l=a||Ko(t),s=function(n){var t=i.apply(Mr,Ut([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new Zr(this);var g=n.apply(t,f);return g.__actions__.push({func:vo,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Sn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Mr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Ko(u)?u:[],n)}return this[r]((function(r){return t.apply(Ko(r)?r:[],n)}))}})),me(Zr.prototype,(function(n,t){var r=Mr[t];if(r){var e=r.name+"";Bn.call(Cr,e)||(Cr[e]=[]),Cr[e].push({name:t,func:r})}})),Cr[Mu(u,2).name]=[{name:"wrapper",func:u}],Zr.prototype.clone=function(){var n=new Zr(this.__wrapped__);return n.__actions__=zu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=zu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=zu(this.__views__),n},Zr.prototype.reverse=function(){if(this.__filtered__){var n=new Zr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Zr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Ko(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Mr.prototype.plant=function(n){for(var t,r=this;r instanceof Pr;){var e=Ni(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Mr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Zr){var t=n;return this.__actions__.length&&(t=new Zr(this)),(t=t.reverse()).__actions__.push({func:vo,args:[to],thisArg:u}),new qr(t,this.__chain__)}return this.thru(to)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return _u(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,Qn&&(Mr.prototype[Qn]=function(){return this}),Mr}();vt._=yr,(e=function(){return yr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)}}]); \ No newline at end of file diff --git a/portal_build/out/_next/static/chunks/3.dac82d28ef46f0b163d8.js b/portal_build/out/_next/static/chunks/3.dac82d28ef46f0b163d8.js new file mode 100644 index 00000000..89fced02 --- /dev/null +++ b/portal_build/out/_next/static/chunks/3.dac82d28ef46f0b163d8.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3],{1787:function(){var t,e;t=window,e=document,L.drawVersion="1.0.4",L.Draw={},L.drawLocal={draw:{toolbar:{actions:{title:"Cancel drawing",text:"Cancel"},finish:{title:"Finish drawing",text:"Finish"},undo:{title:"Delete last point drawn",text:"Delete last point"},buttons:{polyline:"Draw a polyline",polygon:"Draw a polygon",rectangle:"Draw a rectangle",circle:"Draw a circle",marker:"Draw a marker",circlemarker:"Draw a circlemarker"}},handlers:{circle:{tooltip:{start:"Click and drag to draw circle."},radius:"Radius"},circlemarker:{tooltip:{start:"Click map to place circle marker."}},marker:{tooltip:{start:"Click map to place marker."}},polygon:{tooltip:{start:"Click to start drawing shape.",cont:"Click to continue drawing shape.",end:"Click first point to close this shape."}},polyline:{error:"Error: shape edges cannot cross!",tooltip:{start:"Click to start drawing line.",cont:"Click to continue drawing line.",end:"Click last point to finish line."}},rectangle:{tooltip:{start:"Click and drag to draw rectangle."}},simpleshape:{tooltip:{end:"Release mouse to finish drawing."}}}},edit:{toolbar:{actions:{save:{title:"Save changes",text:"Save"},cancel:{title:"Cancel editing, discards all changes",text:"Cancel"},clearAll:{title:"Clear all layers",text:"Clear All"}},buttons:{edit:"Edit layers",editDisabled:"No layers to edit",remove:"Delete layers",removeDisabled:"No layers to delete"}},handlers:{edit:{tooltip:{text:"Drag handles or markers to edit features.",subtext:"Click cancel to undo changes."}},remove:{tooltip:{text:"Click on a feature to remove."}}}}},L.Draw.Event={},L.Draw.Event.CREATED="draw:created",L.Draw.Event.EDITED="draw:edited",L.Draw.Event.DELETED="draw:deleted",L.Draw.Event.DRAWSTART="draw:drawstart",L.Draw.Event.DRAWSTOP="draw:drawstop",L.Draw.Event.DRAWVERTEX="draw:drawvertex",L.Draw.Event.EDITSTART="draw:editstart",L.Draw.Event.EDITMOVE="draw:editmove",L.Draw.Event.EDITRESIZE="draw:editresize",L.Draw.Event.EDITVERTEX="draw:editvertex",L.Draw.Event.EDITSTOP="draw:editstop",L.Draw.Event.DELETESTART="draw:deletestart",L.Draw.Event.DELETESTOP="draw:deletestop",L.Draw.Event.TOOLBAROPENED="draw:toolbaropened",L.Draw.Event.TOOLBARCLOSED="draw:toolbarclosed",L.Draw.Event.MARKERCONTEXT="draw:markercontext",L.Draw=L.Draw||{},L.Draw.Feature=L.Handler.extend({initialize:function(t,e){this._map=t,this._container=t._container,this._overlayPane=t._panes.overlayPane,this._popupPane=t._panes.popupPane,e&&e.shapeOptions&&(e.shapeOptions=L.Util.extend({},this.options.shapeOptions,e.shapeOptions)),L.setOptions(this,e);var i=L.version.split(".");1===parseInt(i[0],10)&&parseInt(i[1],10)>=2?L.Draw.Feature.include(L.Evented.prototype):L.Draw.Feature.include(L.Mixin.Events)},enable:function(){this._enabled||(L.Handler.prototype.enable.call(this),this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DRAWSTART,{layerType:this.type}))},disable:function(){this._enabled&&(L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DRAWSTOP,{layerType:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var t=this._map;t&&(L.DomUtil.disableTextSelection(),t.getContainer().focus(),this._tooltip=new L.Draw.Tooltip(this._map),L.DomEvent.on(this._container,"keyup",this._cancelDrawing,this))},removeHooks:function(){this._map&&(L.DomUtil.enableTextSelection(),this._tooltip.dispose(),this._tooltip=null,L.DomEvent.off(this._container,"keyup",this._cancelDrawing,this))},setOptions:function(t){L.setOptions(this,t)},_fireCreatedEvent:function(t){this._map.fire(L.Draw.Event.CREATED,{layer:t,layerType:this.type})},_cancelDrawing:function(t){27===t.keyCode&&(this._map.fire("draw:canceled",{layerType:this.type}),this.disable())}}),L.Draw.Polyline=L.Draw.Feature.extend({statics:{TYPE:"polyline"},Poly:L.Polyline,options:{allowIntersection:!0,repeatMode:!1,drawError:{color:"#b00b00",timeout:2500},icon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),guidelineDistance:20,maxGuideLineLength:4e3,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!1,clickable:!0},metric:!0,feet:!0,nautic:!1,showLength:!0,zIndexOffset:2e3,factor:1,maxPoints:0},initialize:function(t,e){L.Browser.touch&&(this.options.icon=this.options.touchIcon),this.options.drawError.message=L.drawLocal.draw.handlers.polyline.error,e&&e.drawError&&(e.drawError=L.Util.extend({},this.options.drawError,e.drawError)),this.type=L.Draw.Polyline.TYPE,L.Draw.Feature.prototype.initialize.call(this,t,e)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._markers=[],this._markerGroup=new L.LayerGroup,this._map.addLayer(this._markerGroup),this._poly=new L.Polyline([],this.options.shapeOptions),this._tooltip.updateContent(this._getTooltipText()),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this).addTo(this._map),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("touchstart",this._onTouch,this).on("zoomend",this._onZoomEnd,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._cleanUpShape(),this._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers,this._map.removeLayer(this._poly),delete this._poly,this._mouseMarker.off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._clearGuides(),this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("touchstart",this._onTouch,this).off("click",this._onTouch,this)},deleteLastVertex:function(){if(!(this._markers.length<=1)){var t=this._markers.pop(),e=this._poly,i=e.getLatLngs(),o=i.splice(-1,1)[0];this._poly.setLatLngs(i),this._markerGroup.removeLayer(t),e.getLatLngs().length<2&&this._map.removeLayer(e),this._vertexChanged(o,!1)}},addVertex:function(t){this._markers.length>=2&&!this.options.allowIntersection&&this._poly.newLatLngIntersects(t)?this._showErrorTooltip():(this._errorShown&&this._hideErrorTooltip(),this._markers.push(this._createMarker(t)),this._poly.addLatLng(t),2===this._poly.getLatLngs().length&&this._map.addLayer(this._poly),this._vertexChanged(t,!0))},completeShape:function(){this._markers.length<=1||!this._shapeIsValid()||(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_finishShape:function(){var t=this._poly._defaultShape?this._poly._defaultShape():this._poly.getLatLngs(),e=this._poly.newLatLngIntersects(t[t.length-1]);!this.options.allowIntersection&&e||!this._shapeIsValid()?this._showErrorTooltip():(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_shapeIsValid:function(){return!0},_onZoomEnd:function(){null!==this._markers&&this._updateGuide()},_onMouseMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent),i=this._map.layerPointToLatLng(e);this._currentLatLng=i,this._updateTooltip(i),this._updateGuide(e),this._mouseMarker.setLatLng(i),L.DomEvent.preventDefault(t.originalEvent)},_vertexChanged:function(t,e){this._map.fire(L.Draw.Event.DRAWVERTEX,{layers:this._markerGroup}),this._updateFinishHandler(),this._updateRunningMeasure(t,e),this._clearGuides(),this._updateTooltip()},_onMouseDown:function(t){if(!this._clickHandled&&!this._touchHandled&&!this._disableMarkers){this._onMouseMove(t),this._clickHandled=!0,this._disableNewMarkers();var e=t.originalEvent,i=e.clientX,o=e.clientY;this._startPoint.call(this,i,o)}},_startPoint:function(t,e){this._mouseDownOrigin=L.point(t,e)},_onMouseUp:function(t){var e=t.originalEvent,i=e.clientX,o=e.clientY;this._endPoint.call(this,i,o,t),this._clickHandled=null},_endPoint:function(e,i,o){if(this._mouseDownOrigin){var n=L.point(e,i).distanceTo(this._mouseDownOrigin),r=this._calculateFinishDistance(o.latlng);this.options.maxPoints>1&&this.options.maxPoints==this._markers.length+1?(this.addVertex(o.latlng),this._finishShape()):r<10&&L.Browser.touch?this._finishShape():Math.abs(n)<9*(t.devicePixelRatio||1)&&this.addVertex(o.latlng),this._enableNewMarkers()}this._mouseDownOrigin=null},_onTouch:function(t){var e,i,o=t.originalEvent;!o.touches||!o.touches[0]||this._clickHandled||this._touchHandled||this._disableMarkers||(e=o.touches[0].clientX,i=o.touches[0].clientY,this._disableNewMarkers(),this._touchHandled=!0,this._startPoint.call(this,e,i),this._endPoint.call(this,e,i,t),this._touchHandled=null),this._clickHandled=null},_onMouseOut:function(){this._tooltip&&this._tooltip._onMouseOut.call(this._tooltip)},_calculateFinishDistance:function(t){var e;if(this._markers.length>0){var i;if(this.type===L.Draw.Polyline.TYPE)i=this._markers[this._markers.length-1];else{if(this.type!==L.Draw.Polygon.TYPE)return 1/0;i=this._markers[0]}var o=this._map.latLngToContainerPoint(i.getLatLng()),n=new L.Marker(t,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset}),r=this._map.latLngToContainerPoint(n.getLatLng());e=o.distanceTo(r)}else e=1/0;return e},_updateFinishHandler:function(){var t=this._markers.length;t>1&&this._markers[t-1].on("click",this._finishShape,this),t>2&&this._markers[t-2].off("click",this._finishShape,this)},_createMarker:function(t){var e=new L.Marker(t,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset});return this._markerGroup.addLayer(e),e},_updateGuide:function(t){var e=this._markers?this._markers.length:0;e>0&&(t=t||this._map.latLngToLayerPoint(this._currentLatLng),this._clearGuides(),this._drawGuide(this._map.latLngToLayerPoint(this._markers[e-1].getLatLng()),t))},_updateTooltip:function(t){var e=this._getTooltipText();t&&this._tooltip.updatePosition(t),this._errorShown||this._tooltip.updateContent(e)},_drawGuide:function(t,e){var i,o,n,r=Math.floor(Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))),a=this.options.guidelineDistance,s=this.options.maxGuideLineLength,l=r>s?r-s:a;for(this._guidesContainer||(this._guidesContainer=L.DomUtil.create("div","leaflet-draw-guides",this._overlayPane));l1&&this._markers[this._markers.length-1].off("click",this._finishShape,this)},_fireCreatedEvent:function(){var t=new this.Poly(this._poly.getLatLngs(),this.options.shapeOptions);L.Draw.Feature.prototype._fireCreatedEvent.call(this,t)}}),L.Draw.Polygon=L.Draw.Polyline.extend({statics:{TYPE:"polygon"},Poly:L.Polygon,options:{showArea:!1,showLength:!1,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},metric:!0,feet:!0,nautic:!1,precision:{}},initialize:function(t,e){L.Draw.Polyline.prototype.initialize.call(this,t,e),this.type=L.Draw.Polygon.TYPE},_updateFinishHandler:function(){var t=this._markers.length;1===t&&this._markers[0].on("click",this._finishShape,this),t>2&&(this._markers[t-1].on("dblclick",this._finishShape,this),t>3&&this._markers[t-2].off("dblclick",this._finishShape,this))},_getTooltipText:function(){var t,e;return 0===this._markers.length?t=L.drawLocal.draw.handlers.polygon.tooltip.start:this._markers.length<3?(t=L.drawLocal.draw.handlers.polygon.tooltip.cont,e=this._getMeasurementString()):(t=L.drawLocal.draw.handlers.polygon.tooltip.end,e=this._getMeasurementString()),{text:t,subtext:e}},_getMeasurementString:function(){var t=this._area,e="";return t||this.options.showLength?(this.options.showLength&&(e=L.Draw.Polyline.prototype._getMeasurementString.call(this)),t&&(e+="
"+L.GeometryUtil.readableArea(t,this.options.metric,this.options.precision)),e):null},_shapeIsValid:function(){return this._markers.length>=3},_vertexChanged:function(t,e){var i;!this.options.allowIntersection&&this.options.showArea&&(i=this._poly.getLatLngs(),this._area=L.GeometryUtil.geodesicArea(i)),L.Draw.Polyline.prototype._vertexChanged.call(this,t,e)},_cleanUpShape:function(){var t=this._markers.length;t>0&&(this._markers[0].off("click",this._finishShape,this),t>2&&this._markers[t-1].off("dblclick",this._finishShape,this))}}),L.SimpleShape={},L.Draw.SimpleShape=L.Draw.Feature.extend({options:{repeatMode:!1},initialize:function(t,e){this._endLabelText=L.drawLocal.draw.handlers.simpleshape.tooltip.end,L.Draw.Feature.prototype.initialize.call(this,t,e)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._mapDraggable=this._map.dragging.enabled(),this._mapDraggable&&this._map.dragging.disable(),this._container.style.cursor="crosshair",this._tooltip.updateContent({text:this._initialLabelText}),this._map.on("mousedown",this._onMouseDown,this).on("mousemove",this._onMouseMove,this).on("touchstart",this._onMouseDown,this).on("touchmove",this._onMouseMove,this),e.addEventListener("touchstart",L.DomEvent.preventDefault,{passive:!1}))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._mapDraggable&&this._map.dragging.enable(),this._container.style.cursor="",this._map.off("mousedown",this._onMouseDown,this).off("mousemove",this._onMouseMove,this).off("touchstart",this._onMouseDown,this).off("touchmove",this._onMouseMove,this),L.DomEvent.off(e,"mouseup",this._onMouseUp,this),L.DomEvent.off(e,"touchend",this._onMouseUp,this),e.removeEventListener("touchstart",L.DomEvent.preventDefault),this._shape&&(this._map.removeLayer(this._shape),delete this._shape)),this._isDrawing=!1},_getTooltipText:function(){return{text:this._endLabelText}},_onMouseDown:function(t){this._isDrawing=!0,this._startLatLng=t.latlng,L.DomEvent.on(e,"mouseup",this._onMouseUp,this).on(e,"touchend",this._onMouseUp,this).preventDefault(t.originalEvent)},_onMouseMove:function(t){var e=t.latlng;this._tooltip.updatePosition(e),this._isDrawing&&(this._tooltip.updateContent(this._getTooltipText()),this._drawShape(e))},_onMouseUp:function(){this._shape&&this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()}}),L.Draw.Rectangle=L.Draw.SimpleShape.extend({statics:{TYPE:"rectangle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showArea:!0,metric:!0},initialize:function(t,e){this.type=L.Draw.Rectangle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.rectangle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,t,e)},disable:function(){this._enabled&&(this._isCurrentlyTwoClickDrawing=!1,L.Draw.SimpleShape.prototype.disable.call(this))},_onMouseUp:function(t){this._shape||this._isCurrentlyTwoClickDrawing?this._isCurrentlyTwoClickDrawing&&!function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}(t.target,"leaflet-pane")||L.Draw.SimpleShape.prototype._onMouseUp.call(this):this._isCurrentlyTwoClickDrawing=!0},_drawShape:function(t){this._shape?this._shape.setBounds(new L.LatLngBounds(this._startLatLng,t)):(this._shape=new L.Rectangle(new L.LatLngBounds(this._startLatLng,t),this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var t=new L.Rectangle(this._shape.getBounds(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,t)},_getTooltipText:function(){var t,e,i,o=L.Draw.SimpleShape.prototype._getTooltipText.call(this),n=this._shape,r=this.options.showArea;return n&&(t=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),e=L.GeometryUtil.geodesicArea(t),i=r?L.GeometryUtil.readableArea(e,this.options.metric):""),{text:o.text,subtext:i}}}),L.Draw.Marker=L.Draw.Feature.extend({statics:{TYPE:"marker"},options:{icon:new L.Icon.Default,repeatMode:!1,zIndexOffset:2e3},initialize:function(t,e){this.type=L.Draw.Marker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.marker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,t,e)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._tooltip.updateContent({text:this._initialLabelText}),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("click",this._onClick,this).addTo(this._map),this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onTouch,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._map.off("click",this._onClick,this).off("click",this._onTouch,this),this._marker&&(this._marker.off("click",this._onClick,this),this._map.removeLayer(this._marker),delete this._marker),this._mouseMarker.off("click",this._onClick,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._map.off("mousemove",this._onMouseMove,this))},_onMouseMove:function(t){var e=t.latlng;this._tooltip.updatePosition(e),this._mouseMarker.setLatLng(e),this._marker?(e=this._mouseMarker.getLatLng(),this._marker.setLatLng(e)):(this._marker=this._createMarker(e),this._marker.on("click",this._onClick,this),this._map.on("click",this._onClick,this).addLayer(this._marker))},_createMarker:function(t){return new L.Marker(t,{icon:this.options.icon,zIndexOffset:this.options.zIndexOffset})},_onClick:function(){this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()},_onTouch:function(t){this._onMouseMove(t),this._onClick()},_fireCreatedEvent:function(){var t=new L.Marker.Touch(this._marker.getLatLng(),{icon:this.options.icon});L.Draw.Feature.prototype._fireCreatedEvent.call(this,t)}}),L.Draw.CircleMarker=L.Draw.Marker.extend({statics:{TYPE:"circlemarker"},options:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0,zIndexOffset:2e3},initialize:function(t,e){this.type=L.Draw.CircleMarker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circlemarker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,t,e)},_fireCreatedEvent:function(){var t=new L.CircleMarker(this._marker.getLatLng(),this.options);L.Draw.Feature.prototype._fireCreatedEvent.call(this,t)},_createMarker:function(t){return new L.CircleMarker(t,this.options)}}),L.Draw.Circle=L.Draw.SimpleShape.extend({statics:{TYPE:"circle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showRadius:!0,metric:!0,feet:!0,nautic:!1},initialize:function(t,e){this.type=L.Draw.Circle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,t,e)},_drawShape:function(t){if(L.GeometryUtil.isVersion07x())var e=this._startLatLng.distanceTo(t);else e=this._map.distance(this._startLatLng,t);this._shape?this._shape.setRadius(e):(this._shape=new L.Circle(this._startLatLng,e,this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var t=new L.Circle(this._startLatLng,this._shape.getRadius(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,t)},_onMouseMove:function(t){var e,i=t.latlng,o=this.options.showRadius,n=this.options.metric;if(this._tooltip.updatePosition(i),this._isDrawing){this._drawShape(i),e=this._shape.getRadius().toFixed(1);var r="";o&&(r=L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(e,n,this.options.feet,this.options.nautic)),this._tooltip.updateContent({text:this._endLabelText,subtext:r})}}}),L.Edit=L.Edit||{},L.Edit.Marker=L.Handler.extend({initialize:function(t,e){this._marker=t,L.setOptions(this,e)},addHooks:function(){var t=this._marker;t.dragging.enable(),t.on("dragend",this._onDragEnd,t),this._toggleMarkerHighlight()},removeHooks:function(){var t=this._marker;t.dragging.disable(),t.off("dragend",this._onDragEnd,t),this._toggleMarkerHighlight()},_onDragEnd:function(t){var e=t.target;e.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:e})},_toggleMarkerHighlight:function(){var t=this._marker._icon;t&&(t.style.display="none",L.DomUtil.hasClass(t,"leaflet-edit-marker-selected")?(L.DomUtil.removeClass(t,"leaflet-edit-marker-selected"),this._offsetMarker(t,-4)):(L.DomUtil.addClass(t,"leaflet-edit-marker-selected"),this._offsetMarker(t,4)),t.style.display="")},_offsetMarker:function(t,e){var i=parseInt(t.style.marginTop,10)-e,o=parseInt(t.style.marginLeft,10)-e;t.style.marginTop=i+"px",t.style.marginLeft=o+"px"}}),L.Marker.addInitHook((function(){L.Edit.Marker&&(this.editing=new L.Edit.Marker(this),this.options.editable&&this.editing.enable())})),L.Edit=L.Edit||{},L.Edit.Poly=L.Handler.extend({initialize:function(t){this.latlngs=[t._latlngs],t._holes&&(this.latlngs=this.latlngs.concat(t._holes)),this._poly=t,this._poly.on("revert-edited",this._updateLatLngs,this)},_defaultShape:function(){return L.Polyline._flat?L.Polyline._flat(this._poly._latlngs)?this._poly._latlngs:this._poly._latlngs[0]:this._poly._latlngs},_eachVertexHandler:function(t){for(var e=0;et&&(i._index+=e)}))},_createMiddleMarker:function(t,e){var i,o,n,r=this._getMiddleLatLng(t,e),a=this._createMarker(r);a.setOpacity(.6),t._middleRight=e._middleLeft=a,o=function(){a.off("touchmove",o,this);var n=e._index;a._index=n,a.off("click",i,this).on("click",this._onMarkerClick,this),r.lat=a.getLatLng().lat,r.lng=a.getLatLng().lng,this._spliceLatLngs(n,0,r),this._markers.splice(n,0,a),a.setOpacity(1),this._updateIndexes(n,1),e._index++,this._updatePrevNext(t,a),this._updatePrevNext(a,e),this._poly.fire("editstart")},n=function(){a.off("dragstart",o,this),a.off("dragend",n,this),a.off("touchmove",o,this),this._createMiddleMarker(t,a),this._createMiddleMarker(a,e)},i=function(){o.call(this),n.call(this),this._fireEdit()},a.on("click",i,this).on("dragstart",o,this).on("dragend",n,this).on("touchmove",o,this),this._markerGroup.addLayer(a)},_updatePrevNext:function(t,e){t&&(t._next=e),e&&(e._prev=t)},_getMiddleLatLng:function(t,e){var i=this._poly._map,o=i.project(t.getLatLng()),n=i.project(e.getLatLng());return i.unproject(o._add(n)._divideBy(2))}}),L.Polyline.addInitHook((function(){this.editing||(L.Edit.Poly&&(this.editing=new L.Edit.Poly(this),this.options.editable&&this.editing.enable()),this.on("add",(function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()})),this.on("remove",(function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()})))})),L.Edit=L.Edit||{},L.Edit.SimpleShape=L.Handler.extend({options:{moveIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move"}),resizeIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize"}),touchMoveIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move leaflet-touch-icon"}),touchResizeIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize leaflet-touch-icon"})},initialize:function(t,e){L.Browser.touch&&(this.options.moveIcon=this.options.touchMoveIcon,this.options.resizeIcon=this.options.touchResizeIcon),this._shape=t,L.Util.setOptions(this,e)},addHooks:function(){var t=this._shape;this._shape._map&&(this._map=this._shape._map,t.setStyle(t.options.editing),t._map&&(this._map=t._map,this._markerGroup||this._initMarkers(),this._map.addLayer(this._markerGroup)))},removeHooks:function(){var t=this._shape;if(t.setStyle(t.options.original),t._map){this._unbindMarker(this._moveMarker);for(var e=0,i=this._resizeMarkers.length;e"+L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(radius,!0,this.options.feet,this.options.nautic)}),this._shape.setRadius(radius),this._map.fire(L.Draw.Event.EDITRESIZE,{layer:this._shape})}}),L.Circle.addInitHook((function(){L.Edit.Circle&&(this.editing=new L.Edit.Circle(this),this.options.editable&&this.editing.enable())})),L.Map.mergeOptions({touchExtend:!0}),L.Map.TouchExtend=L.Handler.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane},addHooks:function(){L.DomEvent.on(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.on(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.on(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.on(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.on(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.on(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.on(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.on(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.on(this._container,"touchleave",this._onTouchLeave,this))},removeHooks:function(){L.DomEvent.off(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.off(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.off(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.off(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.off(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.off(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.off(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.off(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.off(this._container,"touchleave",this._onTouchLeave,this))},_touchEvent:function(t,e){var i={};if(void 0!==t.touches){if(!t.touches.length)return;i=t.touches[0]}else{if("touch"!==t.pointerType)return;if(i=t,!this._filterClick(t))return}var o=this._map.mouseEventToContainerPoint(i),n=this._map.mouseEventToLayerPoint(i),r=this._map.layerPointToLatLng(n);this._map.fire(e,{latlng:r,layerPoint:n,containerPoint:o,pageX:i.pageX,pageY:i.pageY,originalEvent:t})},_filterClick:function(t){var e=t.timeStamp||t.originalEvent.timeStamp,i=L.DomEvent._lastClick&&e-L.DomEvent._lastClick;return i&&i>100&&i<500||t.target._simulatedClick&&!t._simulated?(L.DomEvent.stop(t),!1):(L.DomEvent._lastClick=e,!0)},_onTouchStart:function(t){this._map._loaded&&this._touchEvent(t,"touchstart")},_onTouchEnd:function(t){this._map._loaded&&this._touchEvent(t,"touchend")},_onTouchCancel:function(t){if(this._map._loaded){var e="touchcancel";this._detectIE()&&(e="pointercancel"),this._touchEvent(t,e)}},_onTouchLeave:function(t){this._map._loaded&&this._touchEvent(t,"touchleave")},_onTouchMove:function(t){this._map._loaded&&this._touchEvent(t,"touchmove")},_detectIE:function(){var e=t.navigator.userAgent,i=e.indexOf("MSIE ");if(i>0)return parseInt(e.substring(i+5,e.indexOf(".",i)),10);if(e.indexOf("Trident/")>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var n=e.indexOf("Edge/");return n>0&&parseInt(e.substring(n+5,e.indexOf(".",n)),10)}}),L.Map.addInitHook("addHandler","touchExtend",L.Map.TouchExtend),L.Marker.Touch=L.Marker.extend({_initInteraction:function(){return this.addInteractiveTarget?L.Marker.prototype._initInteraction.apply(this):this._initInteractionLegacy()},_initInteractionLegacy:function(){if(this.options.clickable){var t=this._icon,e=["dblclick","mousedown","mouseover","mouseout","contextmenu","touchstart","touchend","touchmove"];this._detectIE?e.concat(["MSPointerDown","MSPointerUp","MSPointerMove","MSPointerCancel"]):e.concat(["touchcancel"]),L.DomUtil.addClass(t,"leaflet-clickable"),L.DomEvent.on(t,"click",this._onMouseClick,this),L.DomEvent.on(t,"keypress",this._onKeyPress,this);for(var i=0;i0)return parseInt(e.substring(i+5,e.indexOf(".",i)),10);if(e.indexOf("Trident/")>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var n=e.indexOf("Edge/");return n>0&&parseInt(e.substring(n+5,e.indexOf(".",n)),10)}}),L.LatLngUtil={cloneLatLngs:function(t){for(var e=[],i=0,o=t.length;i2){for(var a=0;a1&&(i=i+a+s[1])}return i},readableArea:function(e,i,o){var n,r;return o=L.Util.extend({},t,o),i?(r=["ha","m"],type=typeof i,"string"===type?r=[i]:"boolean"!==type&&(r=i),n=e>=1e6&&-1!==r.indexOf("km")?L.GeometryUtil.formattedNumber(1e-6*e,o.km)+" km\xb2":e>=1e4&&-1!==r.indexOf("ha")?L.GeometryUtil.formattedNumber(1e-4*e,o.ha)+" ha":L.GeometryUtil.formattedNumber(e,o.m)+" m\xb2"):n=(e/=.836127)>=3097600?L.GeometryUtil.formattedNumber(e/3097600,o.mi)+" mi\xb2":e>=4840?L.GeometryUtil.formattedNumber(e/4840,o.ac)+" acres":L.GeometryUtil.formattedNumber(e,o.yd)+" yd\xb2",n},readableDistance:function(e,i,o,n,r){var a;switch(r=L.Util.extend({},t,r),i?"string"==typeof i?i:"metric":o?"feet":n?"nauticalMile":"yards"){case"metric":a=e>1e3?L.GeometryUtil.formattedNumber(e/1e3,r.km)+" km":L.GeometryUtil.formattedNumber(e,r.m)+" m";break;case"feet":e*=3.28083,a=L.GeometryUtil.formattedNumber(e,r.ft)+" ft";break;case"nauticalMile":e*=.53996,a=L.GeometryUtil.formattedNumber(e/1e3,r.nm)+" nm";break;case"yards":default:a=(e*=1.09361)>1760?L.GeometryUtil.formattedNumber(e/1760,r.mi)+" miles":L.GeometryUtil.formattedNumber(e,r.yd)+" yd"}return a},isVersion07x:function(){var t=L.version.split(".");return 0===parseInt(t[0],10)&&7===parseInt(t[1],10)}})}(),L.Util.extend(L.LineUtil,{segmentsIntersect:function(t,e,i,o){return this._checkCounterclockwise(t,i,o)!==this._checkCounterclockwise(e,i,o)&&this._checkCounterclockwise(t,e,i)!==this._checkCounterclockwise(t,e,o)},_checkCounterclockwise:function(t,e,i){return(i.y-t.y)*(e.x-t.x)>(e.y-t.y)*(i.x-t.x)}}),L.Polyline.include({intersects:function(){var t,e,i,o=this._getProjectedPoints(),n=o?o.length:0;if(this._tooFewPointsForIntersection())return!1;for(t=n-1;t>=3;t--)if(e=o[t-1],i=o[t],this._lineSegmentsIntersectsRange(e,i,t-2))return!0;return!1},newLatLngIntersects:function(t,e){return!!this._map&&this.newPointIntersects(this._map.latLngToLayerPoint(t),e)},newPointIntersects:function(t,e){var i=this._getProjectedPoints(),o=i?i.length:0,n=i?i[o-1]:null,r=o-2;return!this._tooFewPointsForIntersection(1)&&this._lineSegmentsIntersectsRange(n,t,r,e?1:0)},_tooFewPointsForIntersection:function(t){var e=this._getProjectedPoints(),i=e?e.length:0;return!e||(i+=t||0)<=3},_lineSegmentsIntersectsRange:function(t,e,i,o){var n,r,a=this._getProjectedPoints();o=o||0;for(var s=i;s>o;s--)if(n=a[s-1],r=a[s],L.LineUtil.segmentsIntersect(t,e,n,r))return!0;return!1},_getProjectedPoints:function(){if(!this._defaultShape)return this._originalPoints;for(var t=[],e=this._defaultShape(),i=0;i=2?L.Toolbar.include(L.Evented.prototype):L.Toolbar.include(L.Mixin.Events)},enabled:function(){return null!==this._activeMode},disable:function(){this.enabled()&&this._activeMode.handler.disable()},addToolbar:function(t){var e,i=L.DomUtil.create("div","leaflet-draw-section"),o=0,n=this._toolbarClass||"",r=this.getModeHandlers(t);for(this._toolbarContainer=L.DomUtil.create("div","leaflet-draw-toolbar leaflet-bar"),this._map=t,e=0;e0&&this._singleLineLabel&&(L.DomUtil.removeClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!1):(L.DomUtil.addClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!0),this._container.innerHTML=(t.subtext.length>0?''+t.subtext+"
":"")+""+t.text+"",t.text||t.subtext?(this._visible=!0,this._container.style.visibility="inherit"):(this._visible=!1,this._container.style.visibility="hidden"),this):this},updatePosition:function(t){var e=this._map.latLngToLayerPoint(t),i=this._container;return this._container&&(this._visible&&(i.style.visibility="inherit"),L.DomUtil.setPosition(i,e)),this},showAsError:function(){return this._container&&L.DomUtil.addClass(this._container,"leaflet-error-draw-tooltip"),this},removeError:function(){return this._container&&L.DomUtil.removeClass(this._container,"leaflet-error-draw-tooltip"),this},_onMouseOut:function(){this._container&&(this._container.style.visibility="hidden")}}),L.DrawToolbar=L.Toolbar.extend({statics:{TYPE:"draw"},options:{polyline:{},polygon:{},rectangle:{},circle:{},marker:{},circlemarker:{}},initialize:function(t){for(var e in this.options)this.options.hasOwnProperty(e)&&t[e]&&(t[e]=L.extend({},this.options[e],t[e]));this._toolbarClass="leaflet-draw-draw",L.Toolbar.prototype.initialize.call(this,t)},getModeHandlers:function(t){return[{enabled:this.options.polyline,handler:new L.Draw.Polyline(t,this.options.polyline),title:L.drawLocal.draw.toolbar.buttons.polyline},{enabled:this.options.polygon,handler:new L.Draw.Polygon(t,this.options.polygon),title:L.drawLocal.draw.toolbar.buttons.polygon},{enabled:this.options.rectangle,handler:new L.Draw.Rectangle(t,this.options.rectangle),title:L.drawLocal.draw.toolbar.buttons.rectangle},{enabled:this.options.circle,handler:new L.Draw.Circle(t,this.options.circle),title:L.drawLocal.draw.toolbar.buttons.circle},{enabled:this.options.marker,handler:new L.Draw.Marker(t,this.options.marker),title:L.drawLocal.draw.toolbar.buttons.marker},{enabled:this.options.circlemarker,handler:new L.Draw.CircleMarker(t,this.options.circlemarker),title:L.drawLocal.draw.toolbar.buttons.circlemarker}]},getActions:function(t){return[{enabled:t.completeShape,title:L.drawLocal.draw.toolbar.finish.title,text:L.drawLocal.draw.toolbar.finish.text,callback:t.completeShape,context:t},{enabled:t.deleteLastVertex,title:L.drawLocal.draw.toolbar.undo.title,text:L.drawLocal.draw.toolbar.undo.text,callback:t.deleteLastVertex,context:t},{title:L.drawLocal.draw.toolbar.actions.title,text:L.drawLocal.draw.toolbar.actions.text,callback:this.disable,context:this}]},setOptions:function(t){for(var e in L.setOptions(this,t),this._modes)this._modes.hasOwnProperty(e)&&t.hasOwnProperty(e)&&this._modes[e].handler.setOptions(t[e])}}),L.EditToolbar=L.Toolbar.extend({statics:{TYPE:"edit"},options:{edit:{selectedPathOptions:{dashArray:"10, 10",fill:!0,fillColor:"#fe57a1",fillOpacity:.1,maintainColor:!1}},remove:{},poly:null,featureGroup:null},initialize:function(t){t.edit&&(void 0===t.edit.selectedPathOptions&&(t.edit.selectedPathOptions=this.options.edit.selectedPathOptions),t.edit.selectedPathOptions=L.extend({},this.options.edit.selectedPathOptions,t.edit.selectedPathOptions)),t.remove&&(t.remove=L.extend({},this.options.remove,t.remove)),t.poly&&(t.poly=L.extend({},this.options.poly,t.poly)),this._toolbarClass="leaflet-draw-edit",L.Toolbar.prototype.initialize.call(this,t),this._selectedFeatureCount=0},getModeHandlers:function(t){var e=this.options.featureGroup;return[{enabled:this.options.edit,handler:new L.EditToolbar.Edit(t,{featureGroup:e,selectedPathOptions:this.options.edit.selectedPathOptions,poly:this.options.poly}),title:L.drawLocal.edit.toolbar.buttons.edit},{enabled:this.options.remove,handler:new L.EditToolbar.Delete(t,{featureGroup:e}),title:L.drawLocal.edit.toolbar.buttons.remove}]},getActions:function(t){var e=[{title:L.drawLocal.edit.toolbar.actions.save.title,text:L.drawLocal.edit.toolbar.actions.save.text,callback:this._save,context:this},{title:L.drawLocal.edit.toolbar.actions.cancel.title,text:L.drawLocal.edit.toolbar.actions.cancel.text,callback:this.disable,context:this}];return t.removeAllLayers&&e.push({title:L.drawLocal.edit.toolbar.actions.clearAll.title,text:L.drawLocal.edit.toolbar.actions.clearAll.text,callback:this._clearAllLayers,context:this}),e},addToolbar:function(t){var e=L.Toolbar.prototype.addToolbar.call(this,t);return this._checkDisabled(),this.options.featureGroup.on("layeradd layerremove",this._checkDisabled,this),e},removeToolbar:function(){this.options.featureGroup.off("layeradd layerremove",this._checkDisabled,this),L.Toolbar.prototype.removeToolbar.call(this)},disable:function(){this.enabled()&&(this._activeMode.handler.revertLayers(),L.Toolbar.prototype.disable.call(this))},_save:function(){this._activeMode.handler.save(),this._activeMode&&this._activeMode.handler.disable()},_clearAllLayers:function(){this._activeMode.handler.removeAllLayers(),this._activeMode&&this._activeMode.handler.disable()},_checkDisabled:function(){var t,e=0!==this.options.featureGroup.getLayers().length;this.options.edit&&(t=this._modes[L.EditToolbar.Edit.TYPE].button,e?L.DomUtil.removeClass(t,"leaflet-disabled"):L.DomUtil.addClass(t,"leaflet-disabled"),t.setAttribute("title",e?L.drawLocal.edit.toolbar.buttons.edit:L.drawLocal.edit.toolbar.buttons.editDisabled)),this.options.remove&&(t=this._modes[L.EditToolbar.Delete.TYPE].button,e?L.DomUtil.removeClass(t,"leaflet-disabled"):L.DomUtil.addClass(t,"leaflet-disabled"),t.setAttribute("title",e?L.drawLocal.edit.toolbar.buttons.remove:L.drawLocal.edit.toolbar.buttons.removeDisabled))}}),L.EditToolbar.Edit=L.Handler.extend({statics:{TYPE:"edit"},initialize:function(t,e){if(L.Handler.prototype.initialize.call(this,t),L.setOptions(this,e),this._featureGroup=e.featureGroup,!(this._featureGroup instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this._uneditedLayerProps={},this.type=L.EditToolbar.Edit.TYPE;var i=L.version.split(".");1===parseInt(i[0],10)&&parseInt(i[1],10)>=2?L.EditToolbar.Edit.include(L.Evented.prototype):L.EditToolbar.Edit.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.EDITSTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._featureGroup.on("layeradd",this._enableLayerEdit,this).on("layerremove",this._disableLayerEdit,this))},disable:function(){this._enabled&&(this._featureGroup.off("layeradd",this._enableLayerEdit,this).off("layerremove",this._disableLayerEdit,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.EDITSTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var t=this._map;t&&(t.getContainer().focus(),this._featureGroup.eachLayer(this._enableLayerEdit,this),this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}),t._editTooltip=this._tooltip,this._updateTooltip(),this._map.on("mousemove",this._onMouseMove,this).on("touchmove",this._onMouseMove,this).on("MSPointerMove",this._onMouseMove,this).on(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},removeHooks:function(){this._map&&(this._featureGroup.eachLayer(this._disableLayerEdit,this),this._uneditedLayerProps={},this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this).off("touchmove",this._onMouseMove,this).off("MSPointerMove",this._onMouseMove,this).off(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},revertLayers:function(){this._featureGroup.eachLayer((function(t){this._revertLayer(t)}),this)},save:function(){var t=new L.LayerGroup;this._featureGroup.eachLayer((function(e){e.edited&&(t.addLayer(e),e.edited=!1)})),this._map.fire(L.Draw.Event.EDITED,{layers:t})},_backupLayer:function(t){var e=L.Util.stamp(t);this._uneditedLayerProps[e]||(t instanceof L.Polyline||t instanceof L.Polygon||t instanceof L.Rectangle?this._uneditedLayerProps[e]={latlngs:L.LatLngUtil.cloneLatLngs(t.getLatLngs())}:t instanceof L.Circle?this._uneditedLayerProps[e]={latlng:L.LatLngUtil.cloneLatLng(t.getLatLng()),radius:t.getRadius()}:(t instanceof L.Marker||t instanceof L.CircleMarker)&&(this._uneditedLayerProps[e]={latlng:L.LatLngUtil.cloneLatLng(t.getLatLng())}))},_getTooltipText:function(){return{text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}},_updateTooltip:function(){this._tooltip.updateContent(this._getTooltipText())},_revertLayer:function(t){var e=L.Util.stamp(t);t.edited=!1,this._uneditedLayerProps.hasOwnProperty(e)&&(t instanceof L.Polyline||t instanceof L.Polygon||t instanceof L.Rectangle?t.setLatLngs(this._uneditedLayerProps[e].latlngs):t instanceof L.Circle?(t.setLatLng(this._uneditedLayerProps[e].latlng),t.setRadius(this._uneditedLayerProps[e].radius)):(t instanceof L.Marker||t instanceof L.CircleMarker)&&t.setLatLng(this._uneditedLayerProps[e].latlng),t.fire("revert-edited",{layer:t}))},_enableLayerEdit:function(t){var e,i,o=t.layer||t.target||t;this._backupLayer(o),this.options.poly&&(i=L.Util.extend({},this.options.poly),o.options.poly=i),this.options.selectedPathOptions&&((e=L.Util.extend({},this.options.selectedPathOptions)).maintainColor&&(e.color=o.options.color,e.fillColor=o.options.fillColor),o.options.original=L.extend({},o.options),o.options.editing=e),o instanceof L.Marker?(o.editing&&o.editing.enable(),o.dragging.enable(),o.on("dragend",this._onMarkerDragEnd).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onMarkerDragEnd,this).on("MSPointerUp",this._onMarkerDragEnd,this)):o.editing.enable()},_disableLayerEdit:function(t){var e=t.layer||t.target||t;e.edited=!1,e.editing&&e.editing.disable(),delete e.options.editing,delete e.options.original,this._selectedPathOptions&&(e instanceof L.Marker?this._toggleMarkerHighlight(e):(e.setStyle(e.options.previousOptions),delete e.options.previousOptions)),e instanceof L.Marker?(e.dragging.disable(),e.off("dragend",this._onMarkerDragEnd,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onMarkerDragEnd,this).off("MSPointerUp",this._onMarkerDragEnd,this)):e.editing.disable()},_onMouseMove:function(t){this._tooltip.updatePosition(t.latlng)},_onMarkerDragEnd:function(t){var e=t.target;e.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:e})},_onTouchMove:function(t){var e=t.originalEvent.changedTouches[0],i=this._map.mouseEventToLayerPoint(e),o=this._map.layerPointToLatLng(i);t.target.setLatLng(o)},_hasAvailableLayers:function(){return 0!==this._featureGroup.getLayers().length}}),L.EditToolbar.Delete=L.Handler.extend({statics:{TYPE:"remove"},initialize:function(t,e){if(L.Handler.prototype.initialize.call(this,t),L.Util.setOptions(this,e),this._deletableLayers=this.options.featureGroup,!(this._deletableLayers instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this.type=L.EditToolbar.Delete.TYPE;var i=L.version.split(".");1===parseInt(i[0],10)&&parseInt(i[1],10)>=2?L.EditToolbar.Delete.include(L.Evented.prototype):L.EditToolbar.Delete.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DELETESTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._deletableLayers.on("layeradd",this._enableLayerDelete,this).on("layerremove",this._disableLayerDelete,this))},disable:function(){this._enabled&&(this._deletableLayers.off("layeradd",this._enableLayerDelete,this).off("layerremove",this._disableLayerDelete,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DELETESTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var t=this._map;t&&(t.getContainer().focus(),this._deletableLayers.eachLayer(this._enableLayerDelete,this),this._deletedLayers=new L.LayerGroup,this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.remove.tooltip.text}),this._map.on("mousemove",this._onMouseMove,this))},removeHooks:function(){this._map&&(this._deletableLayers.eachLayer(this._disableLayerDelete,this),this._deletedLayers=null,this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this))},revertLayers:function(){this._deletedLayers.eachLayer((function(t){this._deletableLayers.addLayer(t),t.fire("revert-deleted",{layer:t})}),this)},save:function(){this._map.fire(L.Draw.Event.DELETED,{layers:this._deletedLayers})},removeAllLayers:function(){this._deletableLayers.eachLayer((function(t){this._removeLayer({layer:t})}),this),this.save()},_enableLayerDelete:function(t){(t.layer||t.target||t).on("click",this._removeLayer,this)},_disableLayerDelete:function(t){var e=t.layer||t.target||t;e.off("click",this._removeLayer,this),this._deletedLayers.removeLayer(e)},_removeLayer:function(t){var e=t.layer||t.target||t;this._deletableLayers.removeLayer(e),this._deletedLayers.addLayer(e),e.fire("deleted")},_onMouseMove:function(t){this._tooltip.updatePosition(t.latlng)},_hasAvailableLayers:function(){return 0!==this._deletableLayers.getLayers().length}})},8552:function(t,e,i){var o=i(852)(i(5639),"DataView");t.exports=o},1989:function(t,e,i){var o=i(1945),n=i(401),r=i(7667),a=i(1327),s=i(1866);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1}},4705:function(t,e,i){var o=i(8470);t.exports=function(t,e){var i=this.__data__,n=o(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this}},4785:function(t,e,i){var o=i(1989),n=i(8407),r=i(7071);t.exports=function(){this.size=0,this.__data__={hash:new o,map:new(r||n),string:new o}}},1285:function(t,e,i){var o=i(5050);t.exports=function(t){var e=o(this,t).delete(t);return this.size-=e?1:0,e}},6e3:function(t,e,i){var o=i(5050);t.exports=function(t){return o(this,t).get(t)}},9916:function(t,e,i){var o=i(5050);t.exports=function(t){return o(this,t).has(t)}},5265:function(t,e,i){var o=i(5050);t.exports=function(t,e){var i=o(this,t),n=i.size;return i.set(t,e),this.size+=i.size==n?0:1,this}},4536:function(t,e,i){var o=i(852)(Object,"create");t.exports=o},6916:function(t,e,i){var o=i(5569)(Object.keys,Object);t.exports=o},3498:function(t){t.exports=function(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e}},1167:function(t,e,i){t=i.nmd(t);var o=i(1957),n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,a=r&&r.exports===n&&o.process,s=function(){try{var t=r&&r.require&&r.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(e){}}();t.exports=s},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(i){return t(e(i))}}},5639:function(t,e,i){var o=i(1957),n="object"==typeof self&&self&&self.Object===Object&&self,r=o||n||Function("return this")();t.exports=r},7465:function(t,e,i){var o=i(8407);t.exports=function(){this.__data__=new o,this.size=0}},3779:function(t){t.exports=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}},6912:function(t){t.exports=function(t){return this.__data__.get(t)}},4758:function(t){t.exports=function(t){return this.__data__.has(t)}},4309:function(t,e,i){var o=i(8407),n=i(7071),r=i(3369);t.exports=function(t,e){var i=this.__data__;if(i instanceof o){var a=i.__data__;if(!n||a.length<199)return a.push([t,e]),this.size=++i.size,this;i=this.__data__=new r(a)}return i.set(t,e),this.size=i.size,this}},346:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(i){}try{return t+""}catch(i){}}return""}},361:function(t,e,i){var o=i(5990);t.exports=function(t){return o(t,5)}},7813:function(t){t.exports=function(t,e){return t===e||t!==t&&e!==e}},5694:function(t,e,i){var o=i(9454),n=i(7005),r=Object.prototype,a=r.hasOwnProperty,s=r.propertyIsEnumerable,l=o(function(){return arguments}())?o:function(t){return n(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=l},1469:function(t){var e=Array.isArray;t.exports=e},1240:function(t,e,i){var o=i(3560),n=i(1780);t.exports=function(t){return null!=t&&n(t.length)&&!o(t)}},4144:function(t,e,i){t=i.nmd(t);var o=i(5639),n=i(5062),r=e&&!e.nodeType&&e,a=r&&t&&!t.nodeType&&t,s=a&&a.exports===r?o.Buffer:void 0,l=(s?s.isBuffer:void 0)||n;t.exports=l},3560:function(t,e,i){var o=i(4239),n=i(3218);t.exports=function(t){if(!n(t))return!1;var e=o(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:function(t,e,i){var o=i(5588),n=i(1717),r=i(1167),a=r&&r.isMap,s=a?n(a):o;t.exports=s},3218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},2928:function(t,e,i){var o=i(9221),n=i(1717),r=i(1167),a=r&&r.isSet,s=a?n(a):o;t.exports=s},6719:function(t,e,i){var o=i(8749),n=i(1717),r=i(1167),a=r&&r.isTypedArray,s=a?n(a):o;t.exports=s},3674:function(t,e,i){var o=i(4636),n=i(280),r=i(1240);t.exports=function(t){return r(t)?o(t):n(t)}},1704:function(t,e,i){var o=i(4636),n=i(313),r=i(1240);t.exports=function(t){return r(t)?o(t,!0):n(t)}},479:function(t){t.exports=function(){return[]}},5062:function(t){t.exports=function(){return!1}},5093:function(t,e,i){"use strict";function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=new Array(e);i=o)return 0;if(null===s)return 1/0;var e=(o-h)/s;return"number"===typeof t&&"number"===typeof l&&(e-=.001*(t-l)),Math.max(0,e)},rate:function(){return null===s?0:s}}}}}]); \ No newline at end of file diff --git a/portal_build/out/_next/static/chunks/607.9845b463cec8075a4934.js b/portal_build/out/_next/static/chunks/607.9845b463cec8075a4934.js new file mode 100644 index 00000000..434c0f09 --- /dev/null +++ b/portal_build/out/_next/static/chunks/607.9845b463cec8075a4934.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[607],{4607:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Ie}});var a=n(5579),o=n(4121),i=n(809),s=n.n(i),r=n(2447),l=n(4047),c=n(2700),u=n(4706),d=n(8127),p=n(4102),h=n(775),f=n(6265),m=n(5243),g=(n(1787),n(7294)),v=n.n(g),y=n(2689),b=n(2609),A=n(9481),S=n.n(A),k=n(6486),Z=n(8770),O=function(e,t){return function(e){return Z._[e%Z._.length]}(t)};function I(e,t,n,a,o,i,s){var r=[],l=[],c=Z.b;return n.annotations.forEach((function(e,n){switch(l=[],e.annotationID="".concat(n),e.boundType){case"masks":case"polygon":var s;if(void 0!==e.contour)null===(s=e.contour)||void 0===s||s.forEach((function(e){l.push(m.latLng((1-e[1])*i,e[0]*o))}));break;case"rectangle":e.bound.forEach((function(e){l.push(m.latLng((1-e[1])*i,e[0]*o))}))}var u;switch(e.boundType){case"rectangle":u=m.rectangle;break;case"polygon":case"masks":u=m.polygon;break;default:u=m.rectangle}var d=O(0,e.tag.id);c.color=d,c.fillColor=d,c.annotationTag=e.tag.id,c.annotationID=e.annotationID,c.annotationType=e.boundType,c.annotationProjectID=a,c.confidence=e.confidence,r.push(function(e,t,n,a,o){n.options.annotationID=o;var i=t.tags,s=(0,k.invert)(i);return n.bindTooltip("".concat(s[n.options.annotationTag])),n}(0,t,u(l,c),0,e.annotationID))})),r}var w=n(7316),T=n(9231),C=function(){function e(t,n){return(0,l.Z)(this,e),(0,f.Z)(this,"_map",void 0),(0,f.Z)(this,"_annotator",void 0),null===e.instance&&(this._map=t,this._annotator=n,e.instance=this),e.instance}return(0,c.Z)(e,null,[{key:"map",get:function(){var t;void 0===e.instance._map&&(e.instance._map=null===(t=e.instance._annotator)||void 0===t?void 0:t.map);return e.instance._map}},{key:"annotator",get:function(){return e.instance._annotator}}]),e}();(0,f.Z)(C,"instance",null);var D=C,N=n(9999),x=n(3766),R=n(9984),P=n.n(R),E=v().createElement;function F(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=(0,h.Z)(e);if(t){var o=(0,h.Z)(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return(0,p.Z)(this,n)}}var _=function(e){(0,d.Z)(n,e);var t=F(n);function n(e){return(0,l.Z)(this,n),t.call(this,e)}return(0,c.Z)(n,[{key:"render",value:function(){var e=E(y.zx,{icon:this.props.showSelected?"eye-open":"eye-off",onClick:this.props.callbacks.ToggleShowSelected});return E(v().Fragment,null,E(y.EG,{className:this.props.useDarkTheme?"bp3-dark":"",rightElement:e,values:this.props.filterArr,placeholder:"Enter filters here...",onChange:this.props.callbacks.SetFilterArr}))}}]),n}(v().Component),L=v().createElement;function j(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=(0,h.Z)(e);if(t){var o=(0,h.Z)(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return(0,p.Z)(this,n)}}var M={fill:!0,minimal:!0,round:!1,interactive:!0,className:"annotator-tags"};function V(e,t){var n={backgroundColor:Z._[t%Z._.length],fontSize:"12px",display:"inline-block",borderRadius:"3px",textAlign:"center",padding:"2px",width:"15px",height:"8px"};return L("div",{style:n})}var U=function(e){(0,d.Z)(n,e);var t=j(n);function n(e){var a;return(0,l.Z)(this,n),(a=t.call(this,e)).state={selectedTag:0,selectedAnnotationID:"",annotations:[]},a.tagIDtoDisplayIndex={},a.tagNames={},a.annotationRefs={},a.tagCount={},a.hiddenTagCount={},a.setAnnotationTag=a.setAnnotationTag.bind((0,u.Z)(a)),a}return(0,c.Z)(n,[{key:"setAnnotations",value:function(e){var t=this,n=Object.values(e._layers);n.sort((function(e,n){var a=t.tagIDtoDisplayIndex[e.options.annotationTag]-t.tagIDtoDisplayIndex[n.options.annotationTag];return 0!==a?a:e.options.annotationIDn.options.annotationID?1:0})),this.annotationRefs={},this.tagCount={},n.forEach((function(e){t.annotationRefs[e.options.annotationID]=v().createRef(),t.tagCount[e.options.annotationTag]=(t.tagCount[e.options.annotationTag]||0)+1}));var a=n.reduce((function(e,t,a){return 0===a||t.options.annotationTag!==n[a-1].options.annotationTag?e.push([t,1]):e.push([t,e[a-1][1]+1]),e}),[]);this.setState({annotations:a})}},{key:"setAnnotationTag",value:function(e){this.setState({selectedTag:e}),this.props.callbacks.SetAnnotationTag(e)}},{key:"setSelectedAnnotation",value:function(e){null!==e?(this.setState({selectedAnnotationID:e.options.annotationID}),this.annotationRefs[e.options.annotationID].current.scrollIntoView({block:"nearest"})):this.setState({selectedAnnotationID:""})}},{key:"generateTagHideIcon",value:function(e){var t=this,n=!(e in this.tagCount)||this.hiddenTagCount[e]!==this.tagCount[e];return L(y.JO,{icon:n?"eye-open":"eye-off",className:P().SpacedIcon,onClick:function(a){var o;a.stopPropagation(),(o=t.props.callbacks).SetAnnotationVisibility.apply(o,[!n].concat((0,N.Z)(t.state.annotations.map((function(e){return e[0]})).filter((function(t){return t.options.annotationTag===e})))))}})}},{key:"generateAnnotationHideIcon",value:function(e){var t=this,n=!this.props.hiddenAnnotations.has(e.options.annotationID);return L(y.JO,{icon:n?"eye-open":"eye-off",onClick:function(a){a.stopPropagation(),t.props.callbacks.SetAnnotationVisibility(!n,e)}})}},{key:"updateHiddenTagCount",value:function(){var e=this;this.hiddenTagCount={},this.state.annotations.forEach((function(t){if(e.props.hiddenAnnotations.has(t[0].options.annotationID)){var n=t[0].options.annotationTag;e.hiddenTagCount[n]=(e.hiddenTagCount[n]||0)+1}}))}},{key:"render",value:function(){var e=this;this.updateHiddenTagCount();var t=L("div",{className:["tag-list",P().TagList].join(" ")},Object.entries(this.props.projectTags).filter((function(t){var n=(0,o.Z)(t,2),a=n[0];n[1];return 0===e.props.filterArr.length||e.props.filterArr.some((function(e){return a.toLowerCase()===e.toLowerCase()}))===e.props.showSelected})).map((function(t,n){var i=(0,o.Z)(t,2),s=i[0],r=i[1];return e.tagIDtoDisplayIndex[r]=n,e.tagNames[r]=s,L(y.Vp,(0,a.Z)({className:P().MenuTag,key:r},M,{active:n===e.state.selectedTag,rightIcon:L("div",null,e.generateTagHideIcon(r),V(0,r)),onClick:function(){e.setAnnotationTag(n)}}),s)}))),n=L("div",{className:["tag-list",P().TagList].join(" ")},this.state.annotations.filter((function(t){var n=(0,o.Z)(t,2),a=n[0];n[1];return a.options.confidence>e.props.confidence&&(0===e.props.filterArr.length||e.props.showSelected===e.props.filterArr.some((function(t){return e.tagNames[a.options.annotationTag].toLowerCase().includes(t.toLowerCase())})))})).map((function(t){var n=(0,o.Z)(t,2),i=n[0],l=n[1];return L(y.Vp,(0,a.Z)({className:P().MenuTag,key:i.options.annotationID.split("-")[0],elementRef:e.annotationRefs[i.options.annotationID]},M,{active:i.options.annotationID===e.state.selectedAnnotationID,rightIcon:L("div",null,e.generateAnnotationHideIcon(i)),onClick:(0,r.Z)(s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.props.callbacks.SetAnnotationVisibility(!0,i);case 2:i.fire("click");case 3:case"end":return t.stop()}}),t)})))}),L(y.JO,{icon:"rectangle"===i.options.annotationType?"widget":"polygon-filter",iconSize:12,style:{color:Z._[i.options.annotationTag%Z._.length],marginRight:"5px",marginBottom:"2px"}}),"".concat(e.tagNames[i.options.annotationTag]," ").concat(l))})));return L(v().Fragment,null,L(y.v2,{className:"main-menu bp3-elevation-1"},L(y.sN,{icon:"graph",text:"Annotator Controls"}),L(y.R,{title:"Assets Folder"}),this.props.isSyncing?L(y.$j,{size:30,className:P().Spin}):L(v().Fragment,null,L(y.sN,{icon:"folder-new",text:"Open Folder",label:L(y.M2,{combo:"O"}),onClick:this.props.callbacks.OpenFileManagement}),L(y.sN,{icon:"repeat",text:"Sync All Folders",label:L(y.M2,{combo:"S"}),onClick:this.props.callbacks.SyncAllFolders})),L(y.R,{title:"Inference"}),0===this.props.predictDone?L(y.u,{content:"Load Model and Image before analysing",position:x.Ly.TOP,disabled:this.props.isConnected&&this.props.loadedModel&&!(0,k.isEmpty)(this.state.assetList)},L("div",{className:P().InferenceMenuItem},L(y.sN,{disabled:!this.props.isConnected||!this.props.loadedModel||(0,k.isEmpty)(this.props.currentAsset),icon:"redo",text:"Re-Analyse",label:L(y.M2,{combo:"R"}),className:"Re-Analyse"===this.props.userEditState?"bp3-active":"",onClick:function(){return e.props.callbacks.SingleAnalysis()}}),L(y.sN,{disabled:!this.props.isConnected||!this.props.loadedModel||(0,k.isEmpty)(this.props.assetList),icon:"heat-grid",text:"Bulk Analysis",label:L(y.M2,{combo:"B"}),className:"Bulk Analysis"===this.props.userEditState?"bp3-active":"",onClick:this.props.callbacks.BulkAnalysis}))):L(y.$j,{size:30,className:P().Spin}),L(y.R,{title:"Confidence Threshold"}),L(y.iR,{className:P().Slider,min:0,max:100,onChange:this.props.callbacks.ToggleConfidence,stepSize:1,labelStepSize:100,value:100*this.props.confidence,vertical:!1}),L(y.R,null),L(y.sN,{icon:"new-text-box",text:"Advanced Settings",onClick:this.props.callbacks.OpenAdvancedSettings}),L(y.R,{title:"Filter Tags"}),L(_,(0,a.Z)({showSelected:this.state.showSelected,filterArr:this.state.filterArr,callbacks:{SetFilterArr:this.setFilterArr,ToggleShowSelected:this.toggleShowSelected}},this.props)),L(y.R,null),L(y.mQ,{className:P().SelectionList},L(y.OK,{id:"annotation-objects",title:"Objects",panel:n}),L(y.OK,{id:"project-tags",title:"Tag Map",panel:t}))))}}]),n}(g.Component),J=n(5767),G=n.n(J),H=n(7019),z=n.n(H),B=v().createElement;function q(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=(0,h.Z)(e);if(t){var o=(0,h.Z)(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return(0,p.Z)(this,n)}}var K=function(e){(0,d.Z)(n,e);var t=q(n);function n(e){var a;return(0,l.Z)(this,n),a=t.call(this,e),(0,f.Z)((0,u.Z)(a),"currentAssetID",void 0),a.currentAssetID="",a.highlightAsset=a.highlightAsset.bind((0,u.Z)(a)),a}return(0,c.Z)(n,[{key:"highlightAsset",value:function(e){this.currentAssetID=e,this.forceUpdate()}},{key:"render",value:function(){var e=this;return B(v().Fragment,null,this.props.assetList.map((function(t){return n=t,a=t.assetUrl,o=e.props.useDarkTheme,i=e.props.callbacks.selectAssetCallback,s=e.currentAssetID,B(y.Zb,{className:["image-bar-thumbnail-card",z().Card].join(" "),key:a,onClick:function(){return i(n)}},B("div",{className:n.assetUrl===s?"image-bar-thumbnail image-bar-thumbnail-highlighted":"image-bar-thumbnail"},"video"===n.type?B(v().Fragment,null," ",B(y.JO,{className:z().StackTop,icon:"video",iconSize:y.Jh.STANDARD}),B("div",null,B(G(),{width:150,length:150,snapshotAtTime:1,videoUrl:n.thumbnailUrl}))):B("img",{src:n.thumbnailUrl,alt:n.filename}),B(y.Vp,{className:["image-bar-filename-tag",z().Tag].join(" "),fill:!0,style:{backgroundColor:o?"":"#CED9E0"},rightIcon:!!n.isCached&&B(y.u,{content:"Inference is Cached by Model",position:x.Ly.TOP},B(y.JO,{icon:"bookmark",color:o?"#0F9960":"#3DCC91"}))},B("span",{className:"bp3-ui-text bp3-monospace-text image-bar-filename-text"},n.filename))));var n,a,o,i,s})))}}]),n}(g.Component),W=n(451),Y=n(1164),Q=n.n(Y),$=v().createElement;function X(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=(0,h.Z)(e);if(t){var o=(0,h.Z)(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return(0,p.Z)(this,n)}}var ee=function(e){(0,d.Z)(n,e);var t=X(n);function n(e){return(0,l.Z)(this,n),t.call(this,e)}return(0,c.Z)(n,[{key:"render",value:function(){var e=this;return $(y.Vq,(0,a.Z)({icon:"cog",title:"Advanced Settings",canEscapeKeyClose:this.props.allowUserClose,canOutsideClickClose:this.props.allowUserClose,className:this.props.useDarkTheme?"bp3-dark":""},this.props),$("div",{className:Q().Dialog},$("div",{className:W.TmF},$("div",null,"General"),$("div",{className:Q().Section},$(y.eQ,{className:Q().SubTitle},$("div",null,"Bulk Analysis"),$(y.u,{content:"Types of files to analyse in bulk",position:x.Ly.TOP},$(y.JO,{icon:"help",className:Q().Icon}))),$(y.Ee,{inline:!0,name:"bulkAnalysisStatus",onChange:function(t){e.props.callbacks.HandleChangeInSettings(t.currentTarget.value,"bulkAnalysisStatus")},selectedValue:this.props.inferenceOptions.bulkAnalysisStatus},$(y.Y8,{label:"Image Only",value:"image"}),$(y.Y8,{label:"Video Only",value:"video"}),$(y.Y8,{label:"Image and Video",value:"both"}))),$("div",{className:Q().Section},$(y.eQ,{className:Q().SubTitle},$("div",null,"IoU"),$(y.u,{content:"Intersection Over Union index",position:x.Ly.TOP},$(y.JO,{icon:"help",className:Q().Icon}))),$(y.iR,{className:Q().Slider,min:0,max:1,onChange:function(t){e.props.callbacks.HandleChangeInSettings(Math.round(10*t)/10,"iou")},stepSize:.1,labelStepSize:1,value:this.props.inferenceOptions.iou,vertical:!1})),$(y.iz,{className:Q().Divider}),$("div",null,"Video"),$("div",{className:Q().Section},$(y.eQ,{className:Q().SubTitle},$("div",null,"Frame Interval"),$(y.u,{content:"Predictions generated per frame",position:x.Ly.TOP},$(y.JO,{icon:"help",className:Q().Icon}))),$(y.iR,{className:Q().Slider,min:1,max:20,onChange:function(t){e.props.callbacks.HandleChangeInSettings(t,"frameInterval")},stepSize:1,labelStepSize:19,value:this.props.inferenceOptions.video.frameInterval,vertical:!1}))," ")))}}]),n}(v().Component),te=n(361),ne=n.n(te),ae=n(9134),oe=n.n(ae),ie=n(5636),se=n.n(ie),re=v().createElement;function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ce(e){for(var t=1;t0&&a.setState((function(e){var t=ce({},e.notFoundFolder);return t.splice(n,1),{notFoundFolder:t}}))}a.props.callbacks.UpdateImage()})).catch((function(e){a.state.notFoundFolder.indexOf(t)<0&&a.setState((function(e){var n=e.notFoundFolder;return n.push(t),{notFoundFolder:n}}));var n="Failed to update folder.",o=b.S.DANGER;e.response&&(3002===e.response.data.error_code&&(o=b.S.PRIMARY),n="".concat(e.response.data.message)),(0,T.JJ)(n,o,3e3)}));case 3:a.refreshTree(),a.setState({isAPICalled:!1});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,f.Z)((0,u.Z)(a),"handleDeleteFolder",function(){var e=(0,r.Z)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q3)(t).then((function(e){200===e.status&&a.refreshTree(),a.props.callbacks.UpdateImage()})).catch((function(e){var t="Failed to delete folder.";e.response&&(t="".concat(e.response.data.message)),(0,T.JJ)(t,b.S.DANGER,3e3)}));case 2:a.setState({isAPICalled:!1});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,f.Z)((0,u.Z)(a),"handleNodeCollapse",(function(e,t){var n=a.state.parsedTree,o=ne()(n);a.forNodeAtPath(o,t,(function(e){e.isExpanded=!1})),a.setState({parsedTree:o})})),(0,f.Z)((0,u.Z)(a),"handleNodeExpand",(function(e,t){var n=a.state.parsedTree,o=ne()(n);a.forNodeAtPath(o,t,(function(e){e.isExpanded=!0})),a.setState({parsedTree:o})})),a.state={parsedTree:[],isAPICalled:!1,text:"",notFoundFolder:[]},a.handleKeyDown=a.handleKeyDown.bind((0,u.Z)(a)),a.handleElectronFileDialog=a.handleElectronFileDialog.bind((0,u.Z)(a)),a.handleDeleteFolder=a.handleDeleteFolder.bind((0,u.Z)(a)),a.handleNodeCollapse=a.handleNodeCollapse.bind((0,u.Z)(a)),a.handleNodeExpand=a.handleNodeExpand.bind((0,u.Z)(a)),a}return(0,c.Z)(n,[{key:"componentDidMount",value:function(){(this.refreshTree(),oe()())&&window.require("electron").ipcRenderer.on("select-dirs-reply",this.handleElectronRegisterListener)}},{key:"componentWillUnmount",value:function(){oe()()&&window.require("electron").ipcRenderer.removeListener("select-dirs-reply",this.handleElectronRegisterListener)}},{key:"createFile",value:function(e,t,n){var a=decodeURIComponent(e);return a=a.includes("\\")?"".concat(a,"\\").concat(t):"".concat(a,"/").concat(t),{id:encodeURIComponent(a),icon:re(y.JO,{icon:"document",intent:n?b.S.WARNING:b.S.NONE,className:n?[se().NotFound,se().Icon].join(" "):se().Icon}),label:t}}},{key:"createFolder",value:function(e,t,n,a,o,i){var s=this,r=[];return n.forEach((function(t){r.push(s.createFile(e,t,i))})),a.forEach((function(e){r.push(s.createFolder(e.path,e.name,e.images,e.folders,!1,i))})),{id:"".concat(e),icon:re(y.JO,{icon:"folder-close",className:i?[se().NotFound,se().Icon].join(" "):se().Icon}),isExpanded:!1,label:t,childNodes:r,secondaryLabel:re(v().Fragment,null,o?re(y.eQ,null,re(y.u,{content:"Sync"},re(y.zx,{icon:re(y.JO,{icon:"repeat",iconSize:10}),minimal:!0,onClick:function(){s.handleUpdateFolder("".concat(e))}})),re(y.u,{content:"Remove Folder"},re(y.zx,{icon:"small-cross",minimal:!0,onClick:function(){s.handleDeleteFolder("".concat(e))}}))):null)}}},{key:"setTreeNodeInfo",value:function(e){var t=this;return e.map((function(e){var n=!1;return t.state.notFoundFolder.indexOf(e.path)>=0&&(n=!0),t.createFolder(e.path,e.name,e.images,e.folders,!0,n)}))}},{key:"forNodeAtPath",value:function(e,t,n){n(y.mp.nodeFromPath(t,e))}},{key:"render",value:function(){var e=this,t=re(y.zx,{text:"Browse",icon:"folder-new",intent:"success",loading:!1,onClick:function(){e.handleElectronFileDialog()}}),n=re(y.u,{content:re(v().Fragment,null,re("p",null,"Type the path of the folder and press Enter"),re("b",null,"Example"),re("p",null,re("pre",null,"/user/example/folder"))),position:x.Ly.TOP},re(y.JO,{icon:"help",className:se().HintIcon}));return re(v().Fragment,null,re(y.Vq,(0,a.Z)({icon:"folder-open",title:"File Management",canEscapeKeyClose:this.props.allowUserClose,canOutsideClickClose:this.props.allowUserClose,className:[se().Dialog,this.props.useDarkTheme?"bp3-dark":""].join(" ")},this.props),re("div",{className:W.TmF},re(y.cw,{label:"Add new folder",labelFor:"label-input"},re(y.BZ,{id:"label-input",placeholder:"Enter folder path...",rightElement:oe()()?t:n,onKeyDown:this.handleKeyDown,value:this.state.text,onChange:function(t){e.setState({text:t.target.value})}})),re(y.iz,{className:se().Divider}),re("div",null,"Current Folders"),this.state.isAPICalled?re(y.$j,null):re(y.mp,{contents:this.state.parsedTree,onNodeCollapse:this.handleNodeCollapse,onNodeExpand:this.handleNodeExpand,className:(W.FZf,se().Tree)}))))}}]),n}(v().Component),pe=v().createElement;function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function fe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=(0,h.Z)(e);if(t){var o=(0,h.Z)(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return(0,p.Z)(this,n)}}var me,ge=function(e){(0,d.Z)(n,e);var t=fe(n);function n(e){var a;return(0,l.Z)(this,n),a=t.call(this,e),(0,f.Z)((0,u.Z)(a),"getImageElement",(function(){var e;return null!==(e=document.querySelector(".leaflet-pane.leaflet-overlay-pane img.leaflet-image-layer"))&&void 0!==e?e:document.querySelector(".leaflet-pane.leaflet-overlay-pane video.leaflet-image-layer")})),(0,f.Z)((0,u.Z)(a),"setFilter",(function(e){var t=window.getComputedStyle(a.getImageElement()).filter.split(" ");3===t.length?("brightness"===e.filterName?t[0]="brightness(".concat(e.value,"%)"):"contrast"===e.filterName?t[1]="contrast(".concat(e.value,"%)"):t[2]="saturate(".concat(e.value,"%)"),a.getImageElement().style.filter=t.join(" "),a.setState((function(t){var n=function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,r=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){r=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(r)throw i}}}}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n=t.length-1)){var o=e?-1:1,i=Math.min(Math.max(0,n+o),t.length-1);a.selectAsset(t[i]),a.setSelectedAnnotation(null);var s=document.getElementById("image-bar");null!==s&&(s.scrollLeft+=120*o)}})),(0,f.Z)((0,u.Z)(a),"handleProgressToast",(function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=a.toaster.show(a.renderProgress(0));t?a.progressToastInterval=window.setInterval((function(){(0,w.Ig)().then((function(t){var o=t.data,i=o.progress,s=o.total;if(a.isFirstCallPerformed)if(1===i&&1===s)a.toaster.show(a.renderProgress(100*i/s),n),window.clearInterval(a.progressToastInterval),a.isFirstCallPerformed=!1;else{e.report(i);var r=Math.ceil(e.estimate());a.toaster.show(a.renderProgress(100*i/s,ve(r)),n)}else a.isFirstCallPerformed=!0,(e=S()({min:i,max:s,historyTimeConstant:10})).start()}))}),500):a.progressToastInterval=window.setInterval((function(){if(null===a.state.uiState||a.state.predictDone===a.state.predictTotal)a.toaster.show(a.renderProgress(100),n),window.clearInterval(a.progressToastInterval);else{var e=15*Math.random()/a.state.multiplier;a.state.predictDone+e<.98*a.state.predictTotal&&a.setState((function(t){return{predictDone:t.predictDone+e,multiplier:t.multiplier+.18}}));var t=a.state.predictDone/a.state.predictTotal*100;a.toaster.show(a.renderProgress(t),n)}}),200)})),(0,f.Z)((0,u.Z)(a),"syncAllFolders",(0,r.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.setState({isSyncing:!0}),e.next=3,(0,w.T)().then((function(){a.updateImage()})).catch((function(e){var t="Failed to sync all folders.";e.response&&(t="".concat(e.response.data.message)),(0,T.JJ)(t,b.S.DANGER,3e3)}));case 3:a.setState({isSyncing:!1});case 4:case"end":return e.stop()}}),e)})))),a.state={currentAssetAnnotations:[],userEditState:"None",changesMade:!1,assetList:[],cacheList:[],tagInfo:{modelHash:void 0,tags:{}},fileManagementOpen:!1,advancedSettingsOpen:!1,imageListCollapsed:!1,annotatedAssetsHidden:!1,killVideoPrediction:!1,isSyncing:!1,hiddenAnnotations:new Set,uiState:null,predictTotal:0,predictDone:0,multiplier:1,confidence:.5,annotationOptions:{isOutlined:!0,opacity:.45},filterArr:[],showSelected:!0,inferenceOptions:{bulkAnalysisStatus:"both",cacheResults:!1,iou:.8,video:{frameInterval:20}},currAnnotationPlaybackId:0},a.toaster=new y.x7({},{}),a.progressToastInterval=600,a.currentTag=0,a.project=a.props.project,a.menubarRef=v().createRef(),a.menubarElement=void 0,a.isFirstCallPerformed=!1,a.currentAsset={},a.selectedAnnotation=null,a.annotationGroup=new m.FeatureGroup,a.imagebarRef=v().createRef(),a.backgroundImg=null,a.selectAsset=a.selectAsset.bind((0,u.Z)(a)),a.showToaster=a.showToaster.bind((0,u.Z)(a)),a.renderProgress=a.renderProgress.bind((0,u.Z)(a)),a.singleAnalysis=a.singleAnalysis.bind((0,u.Z)(a)),a.getInference=a.getInference.bind((0,u.Z)(a)),a.bulkAnalysis=a.bulkAnalysis.bind((0,u.Z)(a)),a.updateAnnotations=a.updateAnnotations.bind((0,u.Z)(a)),a.resetControls=a.resetControls.bind((0,u.Z)(a)),a.refreshProject=a.refreshProject.bind((0,u.Z)(a)),a.setAnnotationTag=a.setAnnotationTag.bind((0,u.Z)(a)),a.switchAnnotation=a.switchAnnotation.bind((0,u.Z)(a)),a.handleFileManagementOpen=a.handleFileManagementOpen.bind((0,u.Z)(a)),a.handleFileManagementClose=a.handleFileManagementClose.bind((0,u.Z)(a)),a.handleAdvancedSettingsOpen=a.handleAdvancedSettingsOpen.bind((0,u.Z)(a)),a.handleAdvancedSettingsClose=a.handleAdvancedSettingsClose.bind((0,u.Z)(a)),a.handlePlayPauseVideoOverlay=a.handlePlayPauseVideoOverlay.bind((0,u.Z)(a)),a.updateImage=a.updateImage.bind((0,u.Z)(a)),a.setAnnotationVisibility=a.setAnnotationVisibility.bind((0,u.Z)(a)),a.setAllAnnotationVisibility=a.setAllAnnotationVisibility.bind((0,u.Z)(a)),a.filterAnnotationVisibility=a.filterAnnotationVisibility.bind((0,u.Z)(a)),a.setAnnotationOptions=a.setAnnotationOptions.bind((0,u.Z)(a)),a.toggleShowSelected=a.toggleShowSelected.bind((0,u.Z)(a)),a.setAnnotatedAssetsHidden=a.setAnnotatedAssetsHidden.bind((0,u.Z)(a)),a}return(0,c.Z)(n,[{key:"componentDidMount",value:function(){var e=(0,r.Z)(s().mark((function e(){var t,n=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.menubarElement=document.getElementById("image-bar"),this.menubarElement.addEventListener("onwheel"in document?"wheel":"mousewheel",this.handleVerticalScrolling),this.map=m.map("annotation-map",{scrollWheelZoom:!0,zoomAnimation:!1,zoomDelta:0,zoomSnap:0,minZoom:-3,maxZoom:3,crs:m.CRS.Simple,attributionControl:!1,zoomControl:!1,doubleClickZoom:!1}).setView(Oe(5e3,5e3),0),this.annotationGroup.addTo(this.map),this.map.on("mouseup",(function(){if(n.videoOverlay){var e=n.videoOverlay.getElement();e!==document.activeElement&&(null===e||void 0===e||e.focus())}})),"",t=[Oe(3e4,0),Oe(0,23e3)],this.imageOverlay=m.imageOverlay("",t),this.videoOverlay=m.videoOverlay("",t,{interactive:!0}),new D(this.map,this),setTimeout((function(){return n.updateImage()}),200);case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"componentDidUpdate",value:function(){var e=this;this.props.loadedModel&&this.props.loadedModel.hash!==this.state.tagInfo.modelHash&&((0,w.PF)(this.props.loadedModel.hash).then((function(t){var n,a={modelHash:null===(n=e.props.loadedModel)||void 0===n?void 0:n.hash,tags:t.data};e.setState({tagInfo:a,advancedSettingsOpen:!1}),Object.keys(e.state.tagInfo.tags).length>0&&(e.currentTag=0),e.annotationGroup.tags=e.state.tagInfo.tags})).catch((function(e){var t="Failed to obtain loaded model tags.";e.response&&(t="".concat(e.response.data.message)),(0,T.JJ)(t,b.S.DANGER,3e3)})),this.updateImage()),this.props.loadedModel||void 0===this.state.tagInfo.modelHash||(this.setState({tagInfo:{modelHash:void 0,tags:{}}}),this.annotationGroup.tags=this.state.tagInfo.tags)}},{key:"componentWillUnmount",value:function(){void 0!==this.menubarElement&&this.menubarElement.removeEventListener("onwheel"in document?"wheel":"mousewheel",this.handleVerticalScrolling)}},{key:"handlePlayPauseVideoOverlay",value:function(){var e,t=null===(e=this.videoOverlay)||void 0===e?void 0:e.getElement();t&&t.onplaying&&(t.paused?t.play():t.pause())}},{key:"handleAdvancedSettingsClose",value:function(){this.setState({advancedSettingsOpen:!1})}},{key:"handleAdvancedSettingsOpen",value:function(){this.setState({advancedSettingsOpen:!0})}},{key:"handleFileManagementClose",value:function(){this.setState({fileManagementOpen:!1})}},{key:"handleFileManagementOpen",value:function(){this.setState({fileManagementOpen:!0})}},{key:"setUserState",value:function(e){this.state.userEditState!==e&&("None"!==e?(this.resetControls(),this.setState({userEditState:e})):this.setState({userEditState:e}))}},{key:"setAnnotationTag",value:function(e){return this.currentTag=e,this.currentTag}},{key:"setAnnotationOptions",value:function(e){var t=this;this.setState((function(t){var n=t.annotationOptions;switch(typeof e){case"boolean":n.isOutlined=!!e||!t.annotationOptions.isOutlined;break;case"number":n.opacity=e}return{annotationOptions:n}}),(function(){return t.filterAnnotationVisibility()}))}},{key:"setSelectedAnnotation",value:function(e){this.selectedAnnotation&&(this.selectedAnnotation.options.fillOpacity=.35,this.selectedAnnotation.fire("mouseout")),this.selectedAnnotation=e,this.selectedAnnotation&&(this.selectedAnnotation.options.fillOpacity=.7),null!==this.menubarRef.current&&this.menubarRef.current.setSelectedAnnotation(e)}},{key:"setAnnotationVisibility",value:function(e){for(var t=this,n=arguments.length,a=new Array(n>1?n-1:0),o=1;o0&&void 0!==o[0])||o[0],0===this.state.predictDone&&"Predicting"!==this.state.uiState){e.next=4;break}return(0,T.JJ)("Inference is already running",b.S.WARNING,3e3),e.abrupt("return");case 4:if(!(0,k.isEmpty)(this.currentAsset)||this.props.loadedModel){e.next=7;break}return(0,T.JJ)("There is no model and image loaded",b.S.WARNING,3e3),e.abrupt("return");case 7:if(!(0,k.isEmpty)(this.currentAsset)){e.next=10;break}return(0,T.JJ)("There is no image loaded",b.S.WARNING,3e3),e.abrupt("return");case 10:if(this.props.loadedModel){e.next=13;break}return(0,T.JJ)("There is no model loaded",b.S.WARNING,3e3),e.abrupt("return");case 13:return this.setState({predictTotal:100,predictDone:.01,multiplier:1,uiState:"Predicting"}),n&&"video"===this.currentAsset.type?(this.handleProgressToast(!0),null===(a=this.videoOverlay.getElement())||void 0===a||a.pause()):n&&this.handleProgressToast(),e.next=17,this.getInference(this.currentAsset,n);case 17:return e.next=19,this.updateImage();case 19:"video"===this.currentAsset.type&&(null===(t=this.videoOverlay.getElement())||void 0===t||t.play()),this.setState({predictDone:0,uiState:null,killVideoPrediction:!1});case 21:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getInference",value:function(){var e=(0,r.Z)(s().mark((function e(t){var n,a,o,i=this,r=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(r.length>1&&void 0!==r[1])||r[1],a=!(r.length>2&&void 0!==r[2])||r[2],this.props.loadedModel){e.next=4;break}return e.abrupt("return");case 4:if(o=this.props.loadedModel.hash,this.setState({hiddenAnnotations:new Set}),"image"!==t.type||"video"===this.state.inferenceOptions.bulkAnalysisStatus&&!a){e.next=9;break}return e.next=9,(0,w.hu)(o,t.localPath,n,this.state.inferenceOptions.iou,"json").then((function(e){i.currentAsset.url===t.url&&a&&i.updateAnnotations(e.data)})).catch((function(e){var t="Failed to predict image.";e.response&&(t="".concat(e.response.data.message)),(0,T.JJ)(t,b.S.DANGER,3e3)}));case 9:if("video"!==t.type||"image"===this.state.inferenceOptions.bulkAnalysisStatus&&!a){e.next=12;break}return e.next=12,(0,w.ym)(o,t.localPath,n,this.state.inferenceOptions.video.frameInterval,this.state.inferenceOptions.iou).then((function(e){if(i.currentAsset.url===t.url&&a){var n=i.videoOverlay.getElement();"requestVideoFrameCallback"in HTMLVideoElement.prototype&&n.requestVideoFrameCallback((function t(a,o){var s=i.state.inferenceOptions.video.frameInterval/e.data.fps,r=Math.floor(o.mediaTime/s),l=Math.floor(r*s*1e3).toString();e.data.frames[l]&&i.updateAnnotations(e.data.frames[l]);var c=n.requestVideoFrameCallback(t);i.setState({currAnnotationPlaybackId:c})}))}})).catch((function(e){var t="Failed to predict video.",n=b.S.DANGER;e.response&&(t="".concat(e.response.data.message)),"STOPPEDPROCESS"===e.response.data.error&&(n=b.S.PRIMARY),(0,T.JJ)(t,n,3e3)}));case 12:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"showToaster",value:function(e){this.toaster.show(e)}},{key:"filterAnnotationVisibility",value:function(){var e=this;this.annotationGroup.clearLayers();var t=(0,k.invert)(this.state.tagInfo.tags);this.state.currentAssetAnnotations.filter((function(n){return!e.state.hiddenAnnotations.has(n.options.annotationID)&&(0===e.state.filterArr.length||e.state.showSelected===e.state.filterArr.some((function(e){return t[n.options.annotationTag].toLowerCase().includes(e.toLowerCase())})))&&n.options.confidence>=e.state.confidence})).forEach((function(t){var n=(0,k.cloneDeep)(t);n.options.fillOpacity=e.state.annotationOptions.opacity,n.options.weight=e.state.annotationOptions.isOutlined?t.options.weight:0,e.annotationGroup.addLayer(n)}))}},{key:"isAssetVisible",value:function(){return!this.state.annotatedAssetsHidden}},{key:"selectAsset",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=!(e.assetUrl!==this.currentAsset.assetUrl);console.log("asset",e.url),console.log("currentasset",this.currentAsset.url),console.log("single analysis",n);var o=this.videoOverlay.getElement();a||(this.setState({currentAssetAnnotations:[]}),this.annotationGroup.eachLayer((function(e){t.annotationGroup.removeLayer(e)})),this.updateMenuBarAnnotations(),o&&o.cancelVideoFrameCallback(this.state.currAnnotationPlaybackId));var i=0===Object.keys(this.currentAsset).length;if(this.imagebarRef.highlightAsset(e.assetUrl),this.annotationGroup.clearLayers(),this.annotationGroup.tags=this.state.tagInfo.tags,"image"===e.type){this.map.hasLayer(this.imageOverlay)||(this.videoOverlay.remove(),this.imageOverlay.addTo(this.map));var s=new Image;this.imageOverlay.setUrl(e.assetUrl),s.src=e.assetUrl,s.onload=function(){t.imageOverlay.setBounds(new m.LatLngBounds([[0,0],[s.height,s.width]])),t.currentAsset=Ae(Ae({},e),{},{metadata:{width:s.width,height:s.height}}),a||(t.map.setMinZoom(-5),t.map.invalidateSize(),setTimeout((function(){t.map.fitBounds(t.imageOverlay.getBounds(),{padding:new m.Point(20,20)})}),150),t.map.setMinZoom(-3),e.isCached&&n&&t.singleAnalysis(!1)),i&&t.setState({})},this.backgroundImg=document.querySelector(".leaflet-pane.leaflet-overlay-pane img.leaflet-image-layer")}if("video"===e.type){this.map.hasLayer(this.videoOverlay)||(this.imageOverlay.remove(),this.videoOverlay.addTo(this.map));var r=document.createElement("video");r.setAttribute("src",e.assetUrl),this.videoOverlay.setUrl(e.assetUrl),r.onloadedmetadata=function(){t.videoOverlay.setBounds(new m.LatLngBounds([[0,0],[r.videoHeight,r.videoWidth]])),t.currentAsset=Ae(Ae({},e),{},{metadata:{width:r.videoWidth,height:r.videoHeight}});var o=t.videoOverlay.getElement();o&&(o.controls=!0,o.setAttribute("controlsList","nofullscreen nodownload")),a?null===o||void 0===o||o.focus():(t.map.setMinZoom(-5),t.map.invalidateSize(),setTimeout((function(){t.map.fitBounds(t.videoOverlay.getBounds(),{padding:new m.Point(20,20)}),t.map.setMinZoom(-3),null===o||void 0===o||o.focus()}),150),e.isCached&&n&&t.singleAnalysis(!1)),i&&t.setState({})},this.backgroundImg=document.querySelector(".leaflet-pane.leaflet-overlay-pane video.leaflet-image-layer")}}},{key:"updateMenuBarAnnotations",value:function(){null!==this.menubarRef.current&&this.menubarRef.current.setAnnotations(this.annotationGroup)}},{key:"selectAnnotationTagByHash",value:function(e){var t=Object.values(this.state.tagInfo.tags).indexOf(e);-1!==t&&(this.currentTag=t,null!==this.menubarRef.current&&this.menubarRef.current.setAnnotationTag(t))}},{key:"refreshProject",value:function(){var e=(0,r.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.selectAsset(this.currentAsset);case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"addNewTag",value:function(e,t){this.setState((function(n){var a=Ae({},n.tagInfo.tags);return a[e]=t,{tagInfo:{modelHash:n.tagInfo.modelHash,tags:a}}}))}},{key:"resetControls",value:function(){this.setUserState("None"),this.setSelectedAnnotation(null)}},{key:"renderProgress",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a={className:"bp3-text-muted ".concat(this.props.useDarkTheme?"bp3-dark":""),icon:"predictive-analysis",message:ye(y.ko,{className:"predict-prog",intent:e<100?"primary":"success",value:e/100}),onDismiss:function(e){e||(t.killVideoPrediction(),window.clearInterval(t.progressToastInterval)),t.isFirstCallPerformed=!1},timeout:e<100?0:600};return""!==n&&(a.action={text:n}),a}},{key:"renderHotkeys",value:function(){var e=this;return ye(y.SV,null,ye(y.qm,{global:!0,combo:"o",label:"Open Folder",onKeyDown:this.handleFileManagementOpen}),ye(y.qm,{global:!0,combo:"s",label:"Sync All Folders",onKeyDown:this.syncAllFolders}),ye(y.qm,{global:!0,combo:"r",label:"Re-Analyse",onKeyDown:function(){return e.singleAnalysis()}}),ye(y.qm,{global:!0,combo:"b",label:"Bulk Analysis",onKeyDown:this.bulkAnalysis}),ye(y.qm,{global:!0,combo:"esc",label:"Exit Current Mode",onKeyDown:this.resetControls}),ye(y.qm,{global:!0,combo:"h",label:"Hide Annotations",onKeyDown:function(){e.map.hasLayer(e.annotationGroup)?e.map.removeLayer(e.annotationGroup):e.map.addLayer(e.annotationGroup)}}),ye(y.qm,{global:!0,combo:"left",label:"Load previous asset",onKeyDown:function(){return e.switchAnnotation(!0)}}),ye(y.qm,{global:!0,combo:"right",label:"Load previous asset",onKeyDown:function(){return e.switchAnnotation(!1)}}),ye(y.qm,{global:!0,combo:"space",label:"Play/Pause Video",onKeyDown:this.handlePlayPauseVideoOverlay}),Object.entries(this.state.tagInfo.tags).map((function(t,n){var a=(0,o.Z)(t,1)[0];if(!(n>9))return ye(y.qm,{key:a,global:!0,combo:"".concat(n+1),label:"Shortcut : ".concat(a),onKeyDown:function(){e.currentTag=n,null!=e.menubarRef.current&&e.menubarRef.current.setAnnotationTag(n)}})})))}},{key:"render",value:function(){var e=this,t=this.props.useDarkTheme?"":"light-",n=this.state.imageListCollapsed?"collapsed-":"",o=this.state.assetList.filter((function(){return e.isAssetVisible()}));return ye("div",null,ye(y.x7,(0,a.Z)({},this.state,{ref:this.refHandlers.toaster})),ye("div",{className:"workspace"},ye("div",{className:[n,"image-list"].join(""),id:"image-list"},ye(y.zx,{className:[t,"collapse-button"].join(""),large:!0,icon:this.state.imageListCollapsed?"caret-up":"caret-down",onClick:function(){e.setState((function(e){return{imageListCollapsed:!e.imageListCollapsed}}))}}),ye("div",{className:[t,"collapse-button-effect"].join("")}),ye(y.Zb,{className:[n,"image-bar"].join(""),id:"image-bar"},ye(K,(0,a.Z)({ref:function(t){e.imagebarRef=t},assetList:o,callbacks:{selectAssetCallback:this.selectAsset}},this.props)))),ye("div",{className:this.state.imageListCollapsed?"expanded-annotator-space":"annotator-space"},0===Object.keys(this.currentAsset).length?ye(y.Zb,{className:"annotator-non-ideal"},ye("div",{className:"bp3-non-ideal-state"},ye("div",{className:"bp3-non-ideal-state-visual"},ye("span",null,ye(y.JO,{icon:"media",iconSize:60}))),ye("h4",{className:"bp3-heading bp3-text-muted"},"Select an Image to Annotate"))):null,ye(y.Zb,{className:"main-annotator"},ye("div",{id:"annotation-map",className:"style-annotator"}),this.backgroundImg?ye("div",{className:"annotator-settings-button"},ye(ge,{annotationOptions:this.state.annotationOptions,callbacks:{setAnnotatedAssetsHidden:this.setAnnotatedAssetsHidden,setAnnotationOptions:this.setAnnotationOptions}})):null)),ye("div",{className:"annotator-controls"},ye(U,{ref:this.menubarRef,isSyncing:this.state.isSyncing,projectTags:this.state.tagInfo.tags,userEditState:this.state.userEditState,changesMade:this.state.changesMade,uiState:this.state.uiState,predictDone:this.state.predictDone,predictTotal:this.state.predictTotal,hiddenAnnotations:this.state.hiddenAnnotations,confidence:this.state.confidence,filterArr:this.state.filterArr,showSelected:this.state.showSelected,useDarkTheme:this.props.useDarkTheme,isConnected:this.props.isConnected,loadedModel:this.props.loadedModel,currentAsset:this.currentAsset,assetList:this.state.assetList,callbacks:{ResetControls:this.resetControls,OpenFileManagement:this.handleFileManagementOpen,SetAnnotationTag:this.setAnnotationTag,OpenAdvancedSettings:this.handleAdvancedSettingsOpen,SetAnnotationVisibility:this.setAnnotationVisibility,SingleAnalysis:this.singleAnalysis,BulkAnalysis:this.bulkAnalysis,ToggleConfidence:this.toggleConfidence,SetFilterArr:this.setFilterArr,ToggleShowSelected:this.toggleShowSelected,SyncAllFolders:this.syncAllFolders}}),this.state.fileManagementOpen?ye(de,(0,a.Z)({onClose:this.handleFileManagementClose,isOpen:!0,allowUserClose:!0,callbacks:{RefreshProject:this.refreshProject,UpdateImage:this.updateImage}},this.props)):null,this.state.advancedSettingsOpen?ye(ee,(0,a.Z)({inferenceOptions:this.state.inferenceOptions,onClose:this.state.advancedSettingsOpen?this.handleAdvancedSettingsClose:this.handleAdvancedSettingsOpen,isOpen:!0,allowUserClose:!0,callbacks:{HandleChangeInSettings:this.handleChangeInAdvancedSettings}},this.props)):null)))}}]),n}(g.Component))||me},5636:function(e){e.exports={Dialog:"filemodal_Dialog__2rWYe",Divider:"filemodal_Divider__jky9p",Tree:"filemodal_Tree__209ZG",NotFound:"filemodal_NotFound__28dHw",Icon:"filemodal_Icon__2nHDp",HintIcon:"filemodal_HintIcon__38we2"}},7019:function(e){e.exports={Card:"imagebar_Card__3TthZ",StackTop:"imagebar_StackTop__3s46r",Tag:"imagebar_Tag__hH6pd"}},9984:function(e){e.exports={SpacedIcon:"menu_SpacedIcon__2TTAc",SelectionList:"menu_SelectionList__1AqpU",Spin:"menu_Spin__t3d2N",Slider:"menu_Slider__3eu1p",Icon:"menu_Icon__2akHD",InferenceMenuItem:"menu_InferenceMenuItem__1hZUs",TagList:"menu_TagList__3yjBd"}},1164:function(e){e.exports={Dialog:"settingsmodal_Dialog__2B1jD",Divider:"settingsmodal_Divider__2LpZ6",Section:"settingsmodal_Section__27Rr4",Icon:"settingsmodal_Icon__1i0mE",Slider:"settingsmodal_Slider__3nRpn",SubTitle:"settingsmodal_SubTitle__2Ifm8"}}}]); \ No newline at end of file diff --git a/portal_build/out/_next/static/chunks/706-4b659fb8192237151302.js b/portal_build/out/_next/static/chunks/706-4b659fb8192237151302.js new file mode 100644 index 00000000..32a28686 --- /dev/null +++ b/portal_build/out/_next/static/chunks/706-4b659fb8192237151302.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[706],{5318:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},1229:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r={CENTER:"center",LEFT:"left",RIGHT:"right"}},451:function(e,t,n){"use strict";n.d(t,{iNe:function(){return u},Pyr:function(){return f},rr$:function(){return d},ur0:function(){return h},jce:function(){return m},KtJ:function(){return v},znr:function(){return y},lnC:function(){return b},brc:function(){return g},IRm:function(){return E},QhV:function(){return O},oUC:function(){return w},HC1:function(){return x},yZ9:function(){return C},FZf:function(){return S},gSV:function(){return P},kjJ:function(){return N},J4_:function(){return T},Csj:function(){return k},cO4:function(){return _},GjQ:function(){return A},T5o:function(){return R},IYJ:function(){return M},zRT:function(){return D},DQL:function(){return j},T_g:function(){return I},c5b:function(){return L},q01:function(){return F},ZoI:function(){return B},tsZ:function(){return H},ILo:function(){return W},TUJ:function(){return U},scP:function(){return G},yW8:function(){return K},Vl1:function(){return V},Eye:function(){return z},AFY:function(){return q},TmF:function(){return $},H$A:function(){return Y},e$L:function(){return Z},ntJ:function(){return J},dah:function(){return X},Qec:function(){return Q},$fE:function(){return ee},bDx:function(){return te},xN4:function(){return ne},SDr:function(){return re},O4S:function(){return oe},xSi:function(){return ie},hPX:function(){return ae},RP2:function(){return le},cPG:function(){return se},jxF:function(){return ue},p5I:function(){return ce},eHu:function(){return pe},BgB:function(){return fe},HcK:function(){return de},YuG:function(){return he},ySA:function(){return me},FnI:function(){return ve},fHx:function(){return ye},uUL:function(){return be},xxO:function(){return ge},$u$:function(){return Ee},i7M:function(){return Oe},Gx:function(){return we},GPh:function(){return xe},AK$:function(){return Ce},M5e:function(){return Se},foX:function(){return Pe},skh:function(){return Ne},URx:function(){return Te},Bzc:function(){return ke},P1s:function(){return _e},GdN:function(){return Ae},RjW:function(){return Re},Auc:function(){return Me},Kyb:function(){return De},ktp:function(){return je},hlT:function(){return Ie},v8x:function(){return Le},XaB:function(){return Fe},nse:function(){return Be},G07:function(){return He},mCh:function(){return We},_4w:function(){return Ue},iEm:function(){return Ge},Cr2:function(){return Ke},D2c:function(){return Ve},mHA:function(){return ze},u$T:function(){return qe},YHb:function(){return $e},lik:function(){return Ye},oPt:function(){return Ze},Hpx:function(){return Je},ZA9:function(){return Xe},abV:function(){return Qe},TwV:function(){return et},EOg:function(){return tt},BOG:function(){return nt},_c_:function(){return rt},SJ$:function(){return ot},WSd:function(){return it},YbB:function(){return at},dd0:function(){return lt},xqG:function(){return st},TwB:function(){return ut},lzN:function(){return ct},YoZ:function(){return pt},Enz:function(){return ft},tj6:function(){return dt},uR6:function(){return ht},aSe:function(){return mt},KrR:function(){return vt},cDM:function(){return yt},Lf7:function(){return bt},qEr:function(){return gt},Mfv:function(){return Et},bIF:function(){return Ot},SHB:function(){return wt},YSh:function(){return xt},aXM:function(){return Ct},G7x:function(){return St},Kgk:function(){return Pt},cm4:function(){return Nt},Z5q:function(){return Tt},SiW:function(){return kt},VOT:function(){return _t},otd:function(){return At},KpW:function(){return Rt},cHF:function(){return Mt},LiQ:function(){return Dt},UCV:function(){return jt},JbT:function(){return It},$8o:function(){return Lt},GVK:function(){return Ft},EgP:function(){return Bt},DSu:function(){return Ht},Izg:function(){return Wt},LDi:function(){return Ut},L_R:function(){return Gt},mTs:function(){return Kt},cJu:function(){return Vt},UTM:function(){return zt},ZQV:function(){return qt},DEh:function(){return $t},Wmm:function(){return Yt},Fcr:function(){return Zt},_Kv:function(){return Jt},sfD:function(){return Xt},NL3:function(){return Qt},cHg:function(){return en}});var r=n(1229),o=n(762),i=n(2609),a=n(3766),l=n(4155),s=l.env.BLUEPRINT_NAMESPACE||l.env.REACT_APP_BLUEPRINT_NAMESPACE||"bp3",u=s+"-active",c=s+"-align-left",p=s+"-align-right",f=s+"-dark",d=s+"-disabled",h=s+"-fill",m=s+"-fixed-top",v=s+"-inline",y=s+"-interactive",b=s+"-large",g=s+"-loading",E=s+"-minimal",O=s+"-outlined",w=s+"-round",x=s+"-small",C=s+"-vertical",S=(en(a.Ly.TOP),en(a.Ly.BOTTOM),en(a.Ly.LEFT),en(a.Ly.RIGHT),Jt(o.u.ZERO)),P=(Jt(o.u.ONE),Jt(o.u.TWO),Jt(o.u.THREE),Jt(o.u.FOUR),Qt(i.S.PRIMARY)),N=(Qt(i.S.SUCCESS),Qt(i.S.WARNING),Qt(i.S.DANGER),s+"-text-muted"),T=s+"-text-overflow-ellipsis",k=s+"-blockquote",_=s+"-code",A=s+"-code-block",R=s+"-heading",M=s+"-list",D=s+"-alert",j=D+"-body",I=D+"-contents",L=D+"-footer",F=s+"-button",B=F+"-group",H=F+"-spinner",W=F+"-text",U=s+"-card",G=s+"-collapse",K=G+"-body",V=s+"-control-group",z=s+"-dialog",q=z+"-container",$=z+"-body",Y=z+"-close-button",Z=z+"-footer-actions",J=z+"-header",X=s+"-divider",Q=s+"-drawer",ee=Q+"-body",te=Q+"-footer",ne=Q+"-header",re=s+"-flex-expander",oe=s+"-input",ie=oe+"-ghost",ae=oe+"-group",le=oe+"-left-container",se=oe+"-action",ue=s+"-control",ce=ue+"-indicator",pe=ce+"-child",fe=s+"-checkbox",de=s+"-radio",he=s+"-switch",me=he+"-inner-text",ve=s+"-key",ye=ve+"-combo",be=s+"-modifier-key",ge=s+"-hotkey",Ee=ge+"-label",Oe=ge+"-column",we=ge+"-dialog",xe=s+"-label",Ce=s+"-form-group",Se=s+"-form-content",Pe=s+"-form-helper-text",Ne=s+"-menu",Te=Ne+"-item",ke=Te+"-label",_e=s+"-submenu",Ae=Ne+"-divider",Re=Ne+"-header",Me=s+"-navbar",De=Me+"-group",je=Me+"-heading",Ie=Me+"-divider",Le=s+"-overlay",Fe=Le+"-backdrop",Be=Le+"-container",He=Le+"-content",We=Le+"-inline",Ue=Le+"-open",Ge=Le+"-scroll-container",Ke=s+"-popover",Ve=Ke+"-arrow",ze=Ke+"-backdrop",qe=Ke+"-capturing-dismiss",$e=Ke+"-content",Ye=$e+"-sizing",Ze=Ke+"-dismiss",Je=Ze+"-override",Xe=Ke+"-open",Qe=Ke+"-target",et=Ke+"-wrapper",tt=s+"-transition-container",nt=s+"-progress-bar",rt=s+"-progress-meter",ot=s+"-no-stripes",it=s+"-no-animation",at=s+"-portal",lt=s+"-slider",st=lt+"-axis",ut=lt+"-handle",ct=lt+"-label",pt=lt+"-track",ft=lt+"-progress",dt=s+"-start",ht=s+"-end",mt=s+"-spinner",vt=mt+"-animation",yt=mt+"-head",bt=s+"-no-spin",gt=mt+"-track",Et=s+"-tab",Ot=Et+"-indicator",wt=Ot+"-wrapper",xt=Et+"-list",Ct=Et+"-panel",St=Et+"s",Pt=s+"-tag",Nt=Pt+"-remove",Tt=s+"-tag-input",kt=Tt+"-icon",_t=Tt+"-values",At=s+"-toast",Rt=At+"-container",Mt=At+"-message",Dt=s+"-tooltip",jt=s+"-tree",It=s+"-tree-node",Lt=It+"-caret",Ft=Lt+"-closed",Bt=Lt+"-none",Ht=Lt+"-open",Wt=It+"-content",Ut=It+"-expanded",Gt=It+"-icon",Kt=It+"-label",Vt=It+"-list",zt=It+"-secondary-label",qt=It+"-selected",$t=s+"-tree-root",Yt=s+"-icon";function Zt(e){switch(e){case r.v.LEFT:return c;case r.v.RIGHT:return p;default:return}}function Jt(e){if(void 0!==e)return s+"-elevation-"+e}function Xt(e){if(null!=e)return 0===e.indexOf(s+"-icon-")?e:s+"-icon-"+e}function Qt(e){if(null!=e&&e!==i.S.NONE)return s+"-intent-"+e.toLowerCase()}function en(e){if(void 0!==e)return s+"-position-"+e}},2435:function(e,t,n){"use strict";"undefined"!==typeof window&&"undefined"!==typeof document&&n(3839)},762:function(e,t,n){"use strict";n.d(t,{u:function(){return r}});var r={ZERO:0,ONE:1,TWO:2,THREE:3,FOUR:4}},2609:function(e,t,n){"use strict";n.d(t,{S:function(){return r}});var r={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"}},3766:function(e,t,n){"use strict";n.d(t,{Ly:function(){return r},lM:function(){return o},L3:function(){return i}});var r={BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",LEFT:"left",LEFT_BOTTOM:"left-bottom",LEFT_TOP:"left-top",RIGHT:"right",RIGHT_BOTTOM:"right-bottom",RIGHT_TOP:"right-top",TOP:"top",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"};function o(e){return e===r.TOP||e===r.TOP_LEFT||e===r.TOP_RIGHT||e===r.BOTTOM||e===r.BOTTOM_LEFT||e===r.BOTTOM_RIGHT}function i(e){return e===r.TOP||e===r.TOP_LEFT||e===r.TOP_RIGHT?r.TOP:e===r.BOTTOM||e===r.BOTTOM_LEFT||e===r.BOTTOM_RIGHT?r.BOTTOM:e===r.LEFT||e===r.LEFT_TOP||e===r.LEFT_BOTTOM?r.LEFT:r.RIGHT}},2689:function(e,t,n){"use strict";n.d(t,{bZ:function(){return se},AN:function(){return z},zx:function(){return V},Zb:function(){return ce},eQ:function(){return he},Vq:function(){return le},iz:function(){return pe},dy:function(){return de},cw:function(){return be},H5:function(){return Y},H6:function(){return Z},qm:function(){return Ie},SV:function(){return Le},No:function(){return Ue},JO:function(){return B},Jh:function(){return I},BZ:function(){return Ee},M2:function(){return je},__:function(){return J},v2:function(){return lr},R:function(){return Ge},sN:function(){return or},wp:function(){return fr},fT:function(){return cr},J2:function(){return nr},V3:function(){return tr},I2:function(){return dr},ko:function(){return hr},Y8:function(){return ye},Ee:function(){return xe},iR:function(){return Mr},$j:function(){return G},rs:function(){return ve},OK:function(){return Dr},mQ:function(){return Hr},Vp:function(){return Kr},EG:function(){return zr},x7:function(){return Yr},u:function(){return Vn},mp:function(){return Xr}});n(2435);var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function s(){for(var e=0,t=0,n=arguments.length;t iconName is ignored if title is omitted.",b=v+" isCloseButtonShown prop is ignored if title is omitted.",g=n(4155);function E(e){return"undefined"!==typeof g&&g.env&&"production"===e}function O(e,t,n){if(null==e)return e;if(n0){for(var e=0,t=r.timeoutIds;e0){for(var e=0,t=r.requestIds;e0?p.createElement(t,{},e):void 0:"number"===typeof e||"symbol"===typeof e.type||Array.isArray(e)?p.createElement(t,{},e):function(e){return"object"===typeof e&&"undefined"!==typeof e.type&&"undefined"!==typeof e.props}(e)?e:void 0}function D(e,t){return null!=e&&null!=e.type&&null!=e.type.displayName&&e.type.displayName===t.displayName}function j(){return"undefined"!==typeof p.createRef?p.createRef():{current:null}}var I,L=n(1367);!function(e){e[e.STANDARD=16]="STANDARD",e[e.LARGE=20]="LARGE"}(I||(I={}));var F,B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props.icon;if(null==e||"boolean"===typeof e)return null;if("string"!==typeof e)return e;var t=this.props,n=t.className,r=t.color,o=t.htmlTitle,l=t.iconSize,s=void 0===l?I.STANDARD:l,u=t.intent,f=t.title,h=void 0===f?e:f,m=t.tagName,v=void 0===m?"span":m,y=a(t,["className","color","htmlTitle","iconSize","intent","title","tagName"]),b=s>=I.LARGE?I.LARGE:I.STANDARD,g=this.renderSvgPaths(b,e),E=c()(d.Wmm,d.sfD(e),d.NL3(u),n),O="0 0 "+b+" "+b;return p.createElement(v,i(i({},y),{className:E,title:o}),p.createElement("svg",{fill:r,"data-icon":e,width:s,height:s,viewBox:O},h&&p.createElement("desc",null,h),g))},t.prototype.renderSvgPaths=function(e,t){var n=(e===I.STANDARD?L.q:L.V)[t];return null==n?null:n.map((function(e,t){return p.createElement("path",{key:t,d:e,fillRule:"evenodd"})}))},t.displayName="Blueprint3.Icon",t.SIZE_STANDARD=I.STANDARD,t.SIZE_LARGE=I.LARGE,t=l([f.polyfill],t)}(x);!function(e){e[e.SMALL=20]="SMALL",e[e.STANDARD=50]="STANDARD",e[e.LARGE=100]="LARGE"}(F||(F={}));var H=45,W="M 50,50 m 0,-45 a 45,45 0 1 1 0,90 a 45,45 0 1 1 0,-90",U=280,G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentDidUpdate=function(e){e.value!==this.props.value&&this.forceUpdate()},t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.intent,o=t.value,i=t.tagName,a=void 0===i?"div":i,l=this.getSize(),s=c()(d.aSe,d.NL3(r),((e={})[d.Lf7]=null!=o,e),n),u=Math.min(16,4*F.LARGE/l),f=U-U*(null==o?.25:O(o,0,1));return p.createElement(a,{className:s},p.createElement(a,{className:d.KrR},p.createElement("svg",{width:l,height:l,strokeWidth:u.toFixed(2),viewBox:this.getViewBox(u)},p.createElement("path",{className:d.qEr,d:W}),p.createElement("path",{className:d.cDM,d:W,pathLength:U,strokeDasharray:"280 280",strokeDashoffset:f}))))},t.prototype.validateProps=function(e){var t=e.className,n=void 0===t?"":t;null!=e.size&&(n.indexOf(d.HC1)>=0||n.indexOf(d.lnC)>=0)&&console.warn("[Blueprint] Classes.SMALL/LARGE are ignored if size prop is set.")},t.prototype.getSize=function(){var e=this.props,t=e.className,n=void 0===t?"":t,r=e.size;return null==r?n.indexOf(d.HC1)>=0?F.SMALL:n.indexOf(d.lnC)>=0?F.LARGE:F.STANDARD:Math.max(10,r)},t.prototype.getViewBox=function(e){var t=H+e/2,n=(50-t).toFixed(2),r=(2*t).toFixed(2);return n+" "+n+" "+r+" "+r},t.displayName="Blueprint3.Spinner",t.SIZE_SMALL=F.SMALL,t.SIZE_STANDARD=F.STANDARD,t.SIZE_LARGE=F.LARGE,t=l([f.polyfill],t)}(x),K=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isActive:!1},t.handleKeyDown=function(e){var n,r;_(e.which)&&(e.preventDefault(),e.which!==t.currentKeyDown&&t.setState({isActive:!0})),t.currentKeyDown=e.which,null===(r=(n=t.props).onKeyDown)||void 0===r||r.call(n,e)},t.handleKeyUp=function(e){var n,r,o;_(e.which)&&(t.setState({isActive:!1}),null===(n=t.buttonRef)||void 0===n||n.click()),t.currentKeyDown=void 0,null===(o=(r=t.props).onKeyUp)||void 0===o||o.call(r,e)},t.handleBlur=function(e){var n,r;t.state.isActive&&t.setState({isActive:!1}),null===(r=(n=t.props).onBlur)||void 0===r||r.call(n,e)},t}return o(t,e),t.prototype.getCommonButtonProps=function(){var e,t=this.props,n=t.active,r=t.alignText,o=t.fill,i=t.large,a=t.loading,l=t.outlined,s=t.minimal,u=t.small,p=t.tabIndex,f=this.props.disabled||a;return{className:c()(d.q01,((e={})[d.iNe]=!f&&(n||this.state.isActive),e[d.rr$]=f,e[d.ur0]=o,e[d.lnC]=i,e[d.brc]=a,e[d.IRm]=s,e[d.QhV]=l,e[d.HC1]=u,e),d.Fcr(r),d.NL3(this.props.intent),this.props.className),disabled:f,onBlur:this.handleBlur,onClick:f?void 0:this.props.onClick,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,tabIndex:f?-1:p}},t.prototype.renderChildren=function(){var e=this.props,t=e.children,n=e.icon,r=e.loading,o=e.rightIcon,i=e.text;return[r&&p.createElement(G,{key:"loading",className:d.tsZ,size:I.LARGE}),p.createElement(B,{key:"leftIcon",icon:n}),(!A(i)||!A(t))&&p.createElement("span",{key:"text",className:d.ILo},i,t),p.createElement(B,{key:"rightIcon",icon:o})]},t}(x),V=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttonRef=null,t.handleRef=S(t,"buttonRef",t.props.elementRef),t}return o(t,e),t.prototype.render=function(){return p.createElement("button",i({type:"button",ref:this.handleRef},m(this.props),this.getCommonButtonProps()),this.renderChildren())},t.prototype.componentDidUpdate=function(e){e.elementRef!==this.props.elementRef&&(C(e.elementRef,null),this.handleRef=S(this,"buttonRef",this.props.elementRef),C(this.props.elementRef,this.buttonRef))},t.displayName="Blueprint3.Button",t}(K),z=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttonRef=null,t.handleRef=S(t,"buttonRef",t.props.elementRef),t}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.href,n=e.tabIndex,r=void 0===n?0:n,o=this.getCommonButtonProps();return p.createElement("a",i({role:"button",ref:this.handleRef},m(this.props),o,{href:o.disabled?void 0:t,tabIndex:o.disabled?-1:r}),this.renderChildren())},t.prototype.componentDidUpdate=function(e){e.elementRef!==this.props.elementRef&&(C(e.elementRef,null),this.handleRef=S(this,"buttonRef",this.props.elementRef),C(this.props.elementRef,this.buttonRef))},t.displayName="Blueprint3.AnchorButton",t}(K);function q(e,t){return function(n){var r=n.className,o=n.elementRef,l=a(n,["className","elementRef"]);return p.createElement(e,i(i({},l),{className:c()(t,r),ref:o}))}}q("h1",d.T5o),q("h2",d.T5o),q("h3",d.T5o);var $=q("h4",d.T5o),Y=q("h5",d.T5o),Z=q("h6",d.T5o),J=(q("blockquote",d.Csj),q("code",d.cO4),q("pre",d.GjQ),q("label",d.GPh)),X=(q("ol",d.IYJ),q("ul",d.IYJ),n(3935)),Q=n(4317);function ee(e){return"function"===typeof e}var te=!ee(X.createPortal),ne={blueprintPortalClassName:function(e,t){if(null!=e[t]&&"string"!==typeof e[t])return new Error("[Blueprint] context blueprintPortalClassName must be string")}},re=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.context={},t.state={hasMounted:!1},t.portalElement=null,t}return o(t,e),t.prototype.render=function(){return te||"undefined"===typeof document||!this.state.hasMounted||null===this.portalElement?null:X.createPortal(this.props.children,this.portalElement)},t.prototype.componentDidMount=function(){this.props.container&&(this.portalElement=this.createContainerElement(),this.props.container.appendChild(this.portalElement),this.setState({hasMounted:!0},this.props.onChildrenMount),te&&this.unstableRenderNoPortal())},t.prototype.componentDidUpdate=function(e){var t,n;null!=this.portalElement&&e.className!==this.props.className&&(t=this.portalElement.classList,null!=(n=e.className)&&""!==n&&t.remove.apply(t,n.split(" ")),oe(this.portalElement.classList,this.props.className)),te&&this.unstableRenderNoPortal()},t.prototype.componentWillUnmount=function(){null!=this.portalElement&&(te&&X.unmountComponentAtNode(this.portalElement),this.portalElement.remove())},t.prototype.createContainerElement=function(){var e=document.createElement("div");return e.classList.add(d.YbB),oe(e.classList,this.props.className),null!=this.context&&oe(e.classList,this.context.blueprintPortalClassName),e},t.prototype.unstableRenderNoPortal=function(){null!==this.portalElement&&X.unstable_renderSubtreeIntoContainer(this,p.createElement("div",null,this.props.children),this.portalElement)},t.displayName="Blueprint3.Portal",t.contextTypes=ne,t.defaultProps={container:"undefined"!==typeof document?document.body:void 0},t}(p.Component);function oe(e,t){null!=t&&""!==t&&e.add.apply(e,t.split(" "))}var ie,ae=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={hasEverOpened:t.props.isOpen},t.containerElement=null,t.refHandlers={container:function(e){return t.containerElement=(0,X.findDOMNode)(e)}},t.maybeRenderChild=function(e){if(ee(e)&&(e=e()),null==e)return null;var n="object"===typeof e?p.cloneElement(e,{className:c()(e.props.className,d.G07),tabIndex:t.props.enforceFocus||t.props.autoFocus?0:void 0}):p.createElement("span",{className:d.G07},e),r=t.props,o=r.onOpening,i=r.onOpened,a=r.onClosing,l=r.onClosed,s=r.transitionDuration,u=r.transitionName,f=Q.CSSTransition;return p.createElement(f,{classNames:u,onEntering:o,onEntered:i,onExiting:a,onExited:l,timeout:s,addEndListener:t.handleTransitionAddEnd},n)},t.handleBackdropMouseDown=function(e){var n,r=t.props,o=r.backdropProps,i=r.canOutsideClickClose,a=r.enforceFocus,l=r.onClose;i&&(null===l||void 0===l||l(e)),a&&t.bringFocusInsideOverlay(),null===(n=null===o||void 0===o?void 0:o.onMouseDown)||void 0===n||n.call(o,e)},t.handleDocumentClick=function(e){var r=t.props,o=r.canOutsideClickClose,i=r.isOpen,a=r.onClose,l=e.composed?e.composedPath()[0]:e.target,s=n.openStack.indexOf(t),u=n.openStack.slice(s).some((function(e){var t=e.containerElement;return t&&t.contains(l)&&!t.isSameNode(l)}));i&&o&&!u&&(null===a||void 0===a||a(e))},t.handleDocumentFocus=function(e){var n=e.composed?e.composedPath()[0]:e.target;t.props.enforceFocus&&null!=t.containerElement&&n instanceof Node&&!t.containerElement.contains(n)&&(e.preventDefault(),e.stopImmediatePropagation(),t.bringFocusInsideOverlay())},t.handleKeyDown=function(e){var n=t.props,r=n.canEscapeKeyClose,o=n.onClose;27===e.which&&r&&(null===o||void 0===o||o(e),e.preventDefault())},t.handleTransitionAddEnd=function(){},t}var n;return o(t,e),n=t,t.getDerivedStateFromProps=function(e){var t=e.isOpen;return t?{hasEverOpened:t}:null},t.prototype.render=function(){var e,t;if(this.props.lazy&&!this.state.hasEverOpened)return null;var n=this.props,r=n.children,o=n.className,i=n.usePortal,a=n.isOpen,l=a&&null!==(t=p.Children.map(r,this.maybeRenderChild))&&void 0!==t?t:[],s=this.maybeRenderBackdrop();null!==s&&l.unshift(s);var u=c()(d.v8x,((e={})[d._4w]=a,e[d.mCh]=!i,e),o),f=p.createElement(Q.TransitionGroup,{appear:!0,className:u,component:"div",onKeyDown:this.handleKeyDown,ref:this.refHandlers.container},l);return i?p.createElement(re,{className:this.props.portalClassName,container:this.props.portalContainer},f):f},t.prototype.componentDidMount=function(){this.props.isOpen&&this.overlayWillOpen()},t.prototype.componentDidUpdate=function(e){e.isOpen&&!this.props.isOpen?this.overlayWillClose():!e.isOpen&&this.props.isOpen&&this.overlayWillOpen()},t.prototype.componentWillUnmount=function(){this.overlayWillClose()},t.prototype.bringFocusInsideOverlay=function(){var e=this;return this.requestAnimationFrame((function(){if(null!=e.containerElement&&null!=document.activeElement&&e.props.isOpen&&!e.containerElement.contains(document.activeElement)){var t=e.containerElement.querySelector("[autofocus]"),n=e.containerElement.querySelector("[tabindex]");null!=t?t.focus():null!=n&&n.focus()}}))},t.prototype.maybeRenderBackdrop=function(){var e=this.props,t=e.backdropClassName,n=e.backdropProps,r=e.hasBackdrop,o=e.isOpen,a=e.transitionDuration,l=e.transitionName;return r&&o?p.createElement(Q.CSSTransition,{classNames:l,key:"__backdrop",timeout:a,addEndListener:this.handleTransitionAddEnd},p.createElement("div",i({},n,{className:c()(d.XaB,t,null===n||void 0===n?void 0:n.className),onMouseDown:this.handleBackdropMouseDown,tabIndex:this.props.canOutsideClickClose?0:void 0}))):null},t.prototype.overlayWillClose=function(){document.removeEventListener("focus",this.handleDocumentFocus,!0),document.removeEventListener("mousedown",this.handleDocumentClick);var e=n.openStack,t=e.indexOf(this);if(-1!==t){if(e.splice(t,1),e.length>0){var r=n.getLastOpened();r.props.enforceFocus&&document.addEventListener("focus",r.handleDocumentFocus,!0)}0===e.filter((function(e){return e.props.usePortal&&e.props.hasBackdrop})).length&&document.body.classList.remove(d._4w)}},t.prototype.overlayWillOpen=function(){var e=n.openStack;e.length>0&&document.removeEventListener("focus",n.getLastOpened().handleDocumentFocus,!0),e.push(this),this.props.autoFocus&&this.bringFocusInsideOverlay(),this.props.enforceFocus&&document.addEventListener("focus",this.handleDocumentFocus,!0),this.props.canOutsideClickClose&&!this.props.hasBackdrop&&document.addEventListener("mousedown",this.handleDocumentClick),this.props.hasBackdrop&&this.props.usePortal&&document.body.classList.add(d._4w)},t.displayName="Blueprint3.Overlay",t.defaultProps={autoFocus:!0,backdropProps:{},canEscapeKeyClose:!0,canOutsideClickClose:!0,enforceFocus:!0,hasBackdrop:!0,isOpen:!1,lazy:!0,transitionDuration:300,transitionName:d.v8x,usePortal:!0},t.openStack=[],t.getLastOpened=function(){return n.openStack[n.openStack.length-1]},t=n=l([f.polyfill],t)}(x),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return p.createElement(ae,i({},this.props,{className:d.iEm,hasBackdrop:!0}),p.createElement("div",{className:d.AFY},p.createElement("div",{className:c()(d.Eye,this.props.className),style:this.props.style},this.maybeRenderHeader(),this.props.children)))},t.prototype.validateProps=function(e){null==e.title&&(null!=e.icon&&console.warn(y),null!=e.isCloseButtonShown&&console.warn(b))},t.prototype.maybeRenderCloseButton=function(){return!1!==this.props.isCloseButtonShown?p.createElement(V,{"aria-label":"Close",className:d.H$A,icon:p.createElement(B,{icon:"small-cross",iconSize:I.LARGE}),minimal:!0,onClick:this.props.onClose}):void 0},t.prototype.maybeRenderHeader=function(){var e=this.props,t=e.icon,n=e.title;if(null!=n)return p.createElement("div",{className:d.ntJ},p.createElement(B,{icon:t,iconSize:I.LARGE}),p.createElement($,null,n),this.maybeRenderCloseButton())},t.defaultProps={canOutsideClickClose:!0,isOpen:!1},t.displayName="Blueprint3.Dialog",t=l([f.polyfill],t)}(x),se=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleCancel=function(e){return t.internalHandleCallbacks(!1,e)},t.handleConfirm=function(e){return t.internalHandleCallbacks(!0,e)},t}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.canEscapeKeyCancel,n=e.canOutsideClickCancel,r=e.children,o=e.className,l=e.icon,s=e.intent,u=e.loading,f=e.cancelButtonText,h=e.confirmButtonText,m=(e.onClose,a(e,["canEscapeKeyCancel","canOutsideClickCancel","children","className","icon","intent","loading","cancelButtonText","confirmButtonText","onClose"]));return p.createElement(le,i({},m,{className:c()(d.zRT,o),canEscapeKeyClose:t,canOutsideClickClose:n,onClose:this.handleCancel,portalContainer:this.props.portalContainer}),p.createElement("div",{className:d.DQL},p.createElement(B,{icon:l,iconSize:40,intent:s}),p.createElement("div",{className:d.T_g},r)),p.createElement("div",{className:d.c5b},p.createElement(V,{loading:u,intent:s,text:h,onClick:this.handleConfirm}),f&&p.createElement(V,{text:f,disabled:u,onClick:this.handleCancel})))},t.prototype.validateProps=function(e){null==e.onClose&&null==e.cancelButtonText!==(null==e.onCancel)&&console.warn("[Blueprint] cancelButtonText and onCancel should be set together.");var t=null!=e.onCancel||null!=e.onClose;e.canEscapeKeyCancel&&!t&&console.warn("[Blueprint] canEscapeKeyCancel enabled without onCancel or onClose handler."),e.canOutsideClickCancel&&!t&&console.warn("[Blueprint] canOutsideClickCancel enbaled without onCancel or onClose handler.")},t.prototype.internalHandleCallbacks=function(e,t){var n,r=this.props,o=r.onCancel,i=r.onClose,a=r.onConfirm;null===(n=e?a:o)||void 0===n||n(t),null===i||void 0===i||i(e,t)},t.defaultProps={canEscapeKeyCancel:!1,canOutsideClickCancel:!1,confirmButtonText:"OK",isOpen:!1,loading:!1},t.displayName="Blueprint3.Alert",t=l([f.polyfill],t)}(x),ue=n(762),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.elevation,o=t.interactive,l=a(t,["className","elevation","interactive"]),s=c()(d.TUJ,((e={})[d.znr]=o,e),d._Kv(r),n);return p.createElement("div",i({className:s},l))},t.displayName="Blueprint3.Card",t.defaultProps={elevation:ue.u.ZERO,interactive:!1},t=l([f.polyfill],t)}(x),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.tagName,r=void 0===n?"div":n,o=a(e,["className","tagName"]),l=c()(d.dah,t);return p.createElement(r,i(i({},o),{className:l}))},t.displayName="Blueprint3.Divider",t=l([f.polyfill],t)}(x),fe=n(3766);!function(e){e.SMALL="360px",e.STANDARD="50%",e.LARGE="90%"}(ie||(ie={}));var de=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleOpening=function(e){var n,r;t.lastActiveElementBeforeOpened=document.activeElement,null===(r=(n=t.props).onOpening)||void 0===r||r.call(n,e)},t.handleClosed=function(e){var n,r;t.props.shouldReturnFocusOnClose&&t.lastActiveElementBeforeOpened instanceof HTMLElement&&t.lastActiveElementBeforeOpened.focus(),null===(r=(n=t.props).onClosed)||void 0===r||r.call(n,e)},t}return o(t,e),t.prototype.render=function(){var e,t,n,r=this.props,o=r.size,a=r.style,l=r.position,s=r.vertical,u=l?(0,fe.L3)(l):void 0,f=c()(d.Qec,((e={})[d.yZ9]=!u&&s,e[null!==(n=d.cHg(u))&&void 0!==n?n:""]=!0,e),this.props.className),h=null==o?a:i(i({},a),((t={})[(u?(0,fe.lM)(u):s)?"height":"width"]=o,t));return p.createElement(ae,i({},this.props,{className:d.nse,onOpening:this.handleOpening,onClosed:this.handleClosed}),p.createElement("div",{className:f,style:h},this.maybeRenderHeader(),this.props.children))},t.prototype.validateProps=function(e){null==e.title&&(null!=e.icon&&console.warn(y),null!=e.isCloseButtonShown&&console.warn(b)),null!=e.position&&(e.vertical&&console.warn("[Blueprint] vertical is ignored if position is defined"),e.position!==(0,fe.L3)(e.position)&&console.warn("[Blueprint] all angle positions are casted into pure position (TOP, BOTTOM, LEFT or RIGHT)"))},t.prototype.maybeRenderCloseButton=function(){return!1!==this.props.isCloseButtonShown?p.createElement(V,{"aria-label":"Close",className:d.H$A,icon:p.createElement(B,{icon:"small-cross",iconSize:I.LARGE}),minimal:!0,onClick:this.props.onClose}):null},t.prototype.maybeRenderHeader=function(){var e=this.props,t=e.icon,n=e.title;return null==n?null:p.createElement("div",{className:d.xN4},p.createElement(B,{icon:t,iconSize:I.LARGE}),p.createElement($,null,n),this.maybeRenderCloseButton())},t.displayName="Blueprint3.Drawer",t.defaultProps={canOutsideClickClose:!0,isOpen:!1,shouldReturnFocusOnClose:!0,style:{},vertical:!1},t.SIZE_SMALL=ie.SMALL,t.SIZE_STANDARD=ie.STANDARD,t.SIZE_LARGE=ie.LARGE,t=l([f.polyfill],t)}(x),he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e,t=this.props,n=t.children,r=t.className,o=t.fill,l=t.vertical,s=a(t,["children","className","fill","vertical"]),u=c()(d.Vl1,((e={})[d.ur0]=o,e[d.yZ9]=l,e),r);return p.createElement("div",i({},s,{className:u}),n)},t.displayName="Blueprint3.ControlGroup",t=l([f.polyfill],t)}(x),me=function(e){var t,n=e.alignIndicator,r=e.children,o=e.className,l=e.indicatorChildren,s=e.inline,u=e.inputRef,f=e.label,h=e.labelElement,m=e.large,v=e.style,y=e.type,b=e.typeClassName,g=e.tagName,E=void 0===g?"label":g,O=a(e,["alignIndicator","children","className","indicatorChildren","inline","inputRef","label","labelElement","large","style","type","typeClassName","tagName"]),w=c()(d.jxF,b,((t={})[d.rr$]=O.disabled,t[d.KtJ]=s,t[d.lnC]=m,t),d.Fcr(n),o);return p.createElement(E,{className:w,style:v},p.createElement("input",i({},O,{ref:u,type:y})),p.createElement("span",{className:d.p5I},l),f,h,r)},ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.innerLabelChecked,n=e.innerLabel,r=a(e,["innerLabelChecked","innerLabel"]),o=n||t?[p.createElement("div",{key:"checked",className:d.eHu},p.createElement("div",{className:d.ySA},t||n)),p.createElement("div",{key:"unchecked",className:d.eHu},p.createElement("div",{className:d.ySA},n))]:null;return p.createElement(me,i({},r,{type:"checkbox",typeClassName:d.YuG,indicatorChildren:o}))},t.displayName="Blueprint3.Switch",t=l([f.polyfill],t)}(x),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return p.createElement(me,i({},this.props,{type:"radio",typeClassName:d.HcK}))},t.displayName="Blueprint3.Radio",t=l([f.polyfill],t)}(x),be=(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={indeterminate:t.props.indeterminate||t.props.defaultIndeterminate||!1},t.input=null,t.handleInputRef=S(t,"input",t.props.inputRef),t.handleChange=function(e){var n,r,o=e.target.indeterminate;null==t.props.indeterminate&&t.setState({indeterminate:o}),null===(r=(n=t.props).onChange)||void 0===r||r.call(n,e)},t}o(t,e),t.getDerivedStateFromProps=function(e){var t=e.indeterminate;return null!=t?{indeterminate:t}:null},t.prototype.render=function(){var e=this.props,t=(e.defaultIndeterminate,e.indeterminate,a(e,["defaultIndeterminate","indeterminate"]));return p.createElement(me,i({},t,{inputRef:this.handleInputRef,onChange:this.handleChange,type:"checkbox",typeClassName:d.BgB}))},t.prototype.componentDidMount=function(){this.updateIndeterminate()},t.prototype.componentDidUpdate=function(e){this.updateIndeterminate(),e.inputRef!==this.props.inputRef&&(C(e.inputRef,null),this.handleInputRef=S(this,"input",this.props.inputRef),C(this.props.inputRef,this.input))},t.prototype.updateIndeterminate=function(){null!=this.input&&(this.input.indeterminate=this.state.indeterminate)},t.displayName="Blueprint3.Checkbox",t=l([f.polyfill],t)}(x),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.contentClassName,r=e.helperText,o=e.label,i=e.labelFor,a=e.labelInfo,l=e.style;return p.createElement("div",{className:this.getClassName(),style:l},o&&p.createElement("label",{className:d.GPh,htmlFor:i},o," ",p.createElement("span",{className:d.kjJ},a)),p.createElement("div",{className:c()(d.M5e,n)},t,r&&p.createElement("div",{className:d.foX},r)))},t.prototype.getClassName=function(){var e,t=this.props,n=t.className,r=t.disabled,o=t.inline,i=t.intent;return c()(d.AK$,d.NL3(i),((e={})[d.rr$]=r,e[d.KtJ]=o,e),n)},t.displayName="Blueprint3.FormGroup",t=l([f.polyfill],t)}(x)),ge=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={hasPendingUpdate:!1,isComposing:!1,nextValue:t.props.value,value:t.props.value},t.handleCompositionStart=function(e){var n,r;t.setState({isComposing:!0,nextValue:t.state.value}),null===(r=(n=t.props).onCompositionStart)||void 0===r||r.call(n,e)},t.handleCompositionEnd=function(e){var n,r;t.setState({isComposing:!1}),null===(r=(n=t.props).onCompositionEnd)||void 0===r||r.call(n,e)},t.handleChange=function(e){var n,r,o=e.target.value;t.setState({nextValue:o}),null===(r=(n=t.props).onChange)||void 0===r||r.call(n,e)},t}return o(t,e),t.getDerivedStateFromProps=function(e,t){return t.isComposing||void 0===e.value?null:t.nextValue!==t.value?e.value===t.nextValue?t.hasPendingUpdate?{value:e.value,hasPendingUpdate:!1}:{value:t.nextValue}:e.value===t.value?{hasPendingUpdate:!0}:{value:e.value,nextValue:e.value,hasPendingUpdate:!1}:{value:e.value,nextValue:e.value,hasPendingUpdate:!1}},t.prototype.render=function(){var e=this.state,t=e.isComposing,n=e.hasPendingUpdate,r=e.value,o=e.nextValue,l=this.props,s=l.inputRef,u=a(l,["inputRef"]);return p.createElement("input",i({},u,{ref:s,value:t||n?o:r,onCompositionStart:this.handleCompositionStart,onCompositionEnd:this.handleCompositionEnd,onChange:this.handleChange}))},t.displayName="Blueprint3.AsyncControllableInput",t=l([f.polyfill],t)}(p.PureComponent),Ee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.leftElement=null,t.rightElement=null,t.refHandlers={leftElement:function(e){return t.leftElement=e},rightElement:function(e){return t.rightElement=e}},t}return o(t,e),t.prototype.render=function(){var e,t=this.props,n=t.asyncControl,r=void 0!==n&&n,o=t.className,a=t.disabled,l=t.fill,s=t.inputRef,u=t.intent,f=t.large,h=t.small,v=t.round,y=c()(d.hPX,d.NL3(u),((e={})[d.rr$]=a,e[d.ur0]=l,e[d.lnC]=f,e[d.HC1]=h,e[d.oUC]=v,e),o),b=i(i({},this.props.style),{paddingLeft:this.state.leftElementWidth,paddingRight:this.state.rightElementWidth}),g=i(i({type:"text"},m(this.props)),{className:d.O4S,style:b});return p.createElement("div",{className:y},this.maybeRenderLeftElement(),r?p.createElement(ge,i({},g,{inputRef:s})):p.createElement("input",i({},g,{ref:s})),this.maybeRenderRightElement())},t.prototype.componentDidMount=function(){this.updateInputWidth()},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.leftElement,r=t.rightElement;e.leftElement===n&&e.rightElement===r||this.updateInputWidth()},t.prototype.validateProps=function(e){null!=e.leftElement&&null!=e.leftIcon&&console.warn("[Blueprint] leftElement and leftIcon prop are mutually exclusive, with leftElement taking priority.")},t.prototype.maybeRenderLeftElement=function(){var e=this.props,t=e.leftElement,n=e.leftIcon;return null!=t?p.createElement("span",{className:d.RP2,ref:this.refHandlers.leftElement},t):null!=n?p.createElement(B,{icon:n}):void 0},t.prototype.maybeRenderRightElement=function(){var e=this.props.rightElement;if(null!=e)return p.createElement("span",{className:d.cPG,ref:this.refHandlers.rightElement},e)},t.prototype.updateInputWidth=function(){var e=this.state,t=e.leftElementWidth,n=e.rightElementWidth;if(null!=this.leftElement){var r=this.leftElement.clientWidth;(void 0===t||Math.abs(r-t)>2)&&this.setState({leftElementWidth:r})}else this.setState({leftElementWidth:void 0});if(null!=this.rightElement){r=this.rightElement.clientWidth;(void 0===n||Math.abs(r-n)>2)&&this.setState({rightElementWidth:r})}else this.setState({rightElementWidth:void 0})},t.displayName="Blueprint3.InputGroup",t=l([f.polyfill],t)}(x),Oe=0;function we(){return xe.displayName+"-"+Oe++}for(var xe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoGroupName=we(),t}return o(t,e),t.prototype.render=function(){var e=this.props.label;return p.createElement("div",{className:this.props.className},null==e?null:p.createElement("label",{className:d.GPh},e),Array.isArray(this.props.options)?this.renderOptions():this.renderChildren())},t.prototype.validateProps=function(){null!=this.props.children&&null!=this.props.options&&console.warn("[Blueprint] children and options prop are mutually exclusive, with options taking priority.")},t.prototype.renderChildren=function(){var e=this;return p.Children.map(this.props.children,(function(t){return D(t,ye)?p.cloneElement(t,e.getRadioProps(t.props)):t}))},t.prototype.renderOptions=function(){var e,t=this;return null===(e=this.props.options)||void 0===e?void 0:e.map((function(e){return p.createElement(ye,i({},t.getRadioProps(e),{key:e.value,labelElement:e.label||e.value}))}))},t.prototype.getRadioProps=function(e){var t=this.props.name,n=e.className,r=e.disabled,o=e.value;return{checked:o===this.props.selectedValue,className:n,disabled:r||this.props.disabled,inline:this.props.inline,name:null==t?this.autoGroupName:t,onChange:this.props.onChange,value:o}},t.displayName="Blueprint3.RadioGroup",t=l([f.polyfill],t)}(x),Ce={8:"backspace",9:"tab",13:"enter",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Se={16:"shift",17:"ctrl",18:"alt",91:"meta",93:"meta",224:"meta"},Pe={alt:1,ctrl:2,meta:4,shift:8},Ne={cmd:"meta",command:"meta",escape:"esc",minus:"-",mod:Me()?"meta":"ctrl",option:"alt",plus:"+",return:"enter",win:"meta"},Te={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=","{":"[","}":"]","|":"\\",":":";",'"':"'","<":",",">":".","?":"/"},ke=1;ke<=12;++ke)Ce[111+ke]="f"+ke;for(ke=0;ke<=9;++ke)Ce[96+ke]="num"+ke.toString();function _e(e,t){return e.modifiers===t.modifiers&&e.key===t.key}var Ae=function(e){for(var t,n=0,r=0,o=e.replace(/\s/g,"").toLowerCase().split("+");rs must define a group")},t.displayName="Blueprint3.Hotkey",t.defaultProps={allowInInput:!1,disabled:!1,global:!1,preventDefault:!1,stopPropagation:!1},t=l([f.polyfill],t)}(x),Le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){if(!R(this.props.children))return null;var e,t=p.Children.map(this.props.children,(function(e){return e.props}));t.sort((function(e,t){return e.global===t.global&&e.group&&t.group?e.group.localeCompare(t.group):e.global?-1:1}));for(var n=[],r=0,o=t;r only accepts children.")}))},t.displayName="Blueprint3.Hotkeys",t.defaultProps={tabIndex:0},t=l([f.polyfill],t)}(x),Fe=new(function(){function e(){var e=this;this.componentProps={globalHotkeysGroup:"Global hotkeys"},this.container=null,this.hotkeysQueue=[],this.isDialogShowing=!1,this.show=function(){e.isDialogShowing=!0,e.render()},this.hide=function(){e.isDialogShowing=!1,e.render()}}return e.prototype.render=function(){null==this.container&&(this.container=this.getContainer()),X.render(this.renderComponent(),this.container)},e.prototype.unmount=function(){null!=this.container&&(X.unmountComponentAtNode(this.container),this.container.remove(),this.container=null)},e.prototype.enqueueHotkeysForDisplay=function(e){this.hotkeysQueue.push(e),window.clearTimeout(this.showTimeoutToken),this.showTimeoutToken=window.setTimeout(this.show,10)},e.prototype.hideAfterDelay=function(){window.clearTimeout(this.hideTimeoutToken),this.hideTimeoutToken=window.setTimeout(this.hide,10)},e.prototype.isShowing=function(){return this.isDialogShowing},e.prototype.getContainer=function(){return null==this.container&&(this.container=document.createElement("div"),this.container.classList.add(d.YbB),document.body.appendChild(this.container)),this.container},e.prototype.renderComponent=function(){return p.createElement(le,i({},this.componentProps,{className:c()(d.Gx,this.componentProps.className),isOpen:this.isDialogShowing,onClose:this.hide}),p.createElement("div",{className:d.TmF},this.renderHotkeys()))},e.prototype.renderHotkeys=function(){var e=this,t=this.emptyHotkeyQueue().map((function(t,n){var r=!0===t.global&&null==t.group?e.componentProps.globalHotkeysGroup:t.group;return p.createElement(Ie,i({key:n},t,{group:r}))}));return p.createElement(Le,null,t)},e.prototype.emptyHotkeyQueue=function(){var e=this.hotkeysQueue.reduce((function(e,t){return e.concat(t)}),[]);return this.hotkeysQueue.length=0,e},e}());function Be(){return Fe.isShowing()}var He;!function(e){e.LOCAL="local",e.GLOBAL="global"}(He||(He={}));var We=function(){function e(e){var t=this;this.scope=e,this.actions=[],this.handleKeyDown=function(e){var n,r=Re(e);t.isTextInput(e)||!_e(Ae("?"),r)?Be()||t.invokeNamedCallbackIfComboRecognized(r,"onKeyDown",e):Be()?Fe.hideAfterDelay():(n=t.actions.map((function(e){return e.props})),Fe.enqueueHotkeysForDisplay(n))},this.handleKeyUp=function(e){Be()||t.invokeNamedCallbackIfComboRecognized(Re(e),"onKeyUp",e)}}return e.prototype.count=function(){return this.actions.length},e.prototype.clear=function(){this.actions=[]},e.prototype.setHotkeys=function(e){var t=this,n=[];p.Children.forEach(e.children,(function(e){D(e,Ie)&&t.isScope(e.props)&&n.push({combo:Ae(e.props.combo),props:e.props})})),this.actions=n},e.prototype.invokeNamedCallbackIfComboRecognized=function(e,t,n){for(var r,o,i=this.isTextInput(n),a=0,l=this.actions;a0){var o=void 0===r.props.tabIndex?0:r.props.tabIndex,i=n.props,a=i.onKeyDown,l=i.onKeyUp;return p.cloneElement(n,{onKeyDown:function(e){t.localHotkeysEvents.handleKeyDown(e.nativeEvent),null===a||void 0===a||a(e)},onKeyUp:function(e){t.localHotkeysEvents.handleKeyUp(e.nativeEvent),null===l||void 0===l||l(e)},tabIndex:o})}}return n},t}(e)).displayName="HotkeysTarget("+(((n=e).displayName||n.name||"Unknown")+")"),t}var Ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.title;return null==n?p.createElement("li",{className:c()(d.GdN,t)}):p.createElement("li",{className:c()(d.RjW,t)},p.createElement(Z,null,n))},t.displayName="Blueprint3.MenuDivider",t}(p.Component);function Ke(){return(Ke=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r=0)return 1;return 0}();var pt=ut&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),ct))}};function ft(e){return e&&"[object Function]"==={}.toString.call(e)}function dt(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function ht(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function mt(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=dt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:mt(ht(e))}function vt(e){return e&&e.referenceNode?e.referenceNode:e}var yt=ut&&!(!window.MSInputMethodContext||!document.documentMode),bt=ut&&/MSIE 10/.test(navigator.userAgent);function gt(e){return 11===e?yt:10===e?bt:yt||bt}function Et(e){if(!e)return document.documentElement;for(var t=gt(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===dt(n,"position")?Et(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ot(e){return null!==e.parentNode?Ot(e.parentNode):e}function wt(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||r.contains(o))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||Et(e.firstElementChild)===e)}(a)?a:Et(a);var l=Ot(e);return l.host?wt(l.host,t):wt(e,Ot(t).host)}function xt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function Ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=xt(t,"top"),o=xt(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function St(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function Pt(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],gt(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function Nt(e){var t=e.body,n=e.documentElement,r=gt(10)&&getComputedStyle(n);return{height:Pt("Height",t,n,r),width:Pt("Width",t,n,r)}}var Tt=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},kt=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=gt(10),o="HTML"===t.nodeName,i=Mt(e),a=Mt(t),l=mt(e),s=dt(t),u=parseFloat(s.borderTopWidth),c=parseFloat(s.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=Rt({top:i.top-a.top-u,left:i.left-a.left-c,width:i.width,height:i.height});if(p.marginTop=0,p.marginLeft=0,!r&&o){var f=parseFloat(s.marginTop),d=parseFloat(s.marginLeft);p.top-=u-f,p.bottom-=u-f,p.left-=c-d,p.right-=c-d,p.marginTop=f,p.marginLeft=d}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(p=Ct(p,t)),p}function jt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Dt(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:xt(n),l=t?0:xt(n,"left"),s={top:a-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:o,height:i};return Rt(s)}function It(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===dt(e,"position"))return!0;var n=ht(e);return!!n&&It(n)}function Lt(e){if(!e||!e.parentElement||gt())return document.documentElement;for(var t=e.parentElement;t&&"none"===dt(t,"transform");)t=t.parentElement;return t||document.documentElement}function Ft(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?Lt(e):wt(e,vt(t));if("viewport"===r)i=jt(a,o);else{var l=void 0;"scrollParent"===r?"BODY"===(l=mt(ht(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===r?e.ownerDocument.documentElement:r;var s=Dt(l,a,o);if("HTML"!==l.nodeName||It(a))i=s;else{var u=Nt(e.ownerDocument),c=u.height,p=u.width;i.top+=s.top-s.marginTop,i.bottom=c+s.top,i.left+=s.left-s.marginLeft,i.right=p+s.left}}var f="number"===typeof(n=n||0);return i.left+=f?n:n.left||0,i.top+=f?n:n.top||0,i.right-=f?n:n.right||0,i.bottom-=f?n:n.bottom||0,i}function Bt(e){return e.width*e.height}function Ht(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=Ft(n,r,i,o),l={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},s=Object.keys(l).map((function(e){return At({key:e},l[e],{area:Bt(l[e])})})).sort((function(e,t){return t.area-e.area})),u=s.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=u.length>0?u[0].key:s[0].key,p=e.split("-")[1];return c+(p?"-"+p:"")}function Wt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?Lt(t):wt(t,vt(n));return Dt(n,o,r)}function Ut(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Gt(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function Kt(e,t,n){n=n.split("-")[0];var r=Ut(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",l=i?"left":"top",s=i?"height":"width",u=i?"width":"height";return o[a]=t[a]+t[s]/2-r[s]/2,o[l]=n===l?t[l]-r[u]:t[Gt(l)],o}function Vt(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function zt(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=Vt(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&ft(n)&&(t.offsets.popper=Rt(t.offsets.popper),t.offsets.reference=Rt(t.offsets.reference),t=n(t,e))})),t}function qt(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Wt(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Ht(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Kt(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=zt(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function $t(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Yt(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=sn.indexOf(e),r=sn.slice(n+1).concat(sn.slice(0,n));return t?r.reverse():r}var cn="flip",pn="clockwise",fn="counterclockwise";function dn(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),l=a.indexOf(Vt(a,(function(e){return-1!==e.search(/,|\s/)})));a[l]&&-1===a[l].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,u=-1!==l?[a.slice(0,l).concat([a[l].split(s)[0]]),[a[l].split(s)[1]].concat(a.slice(l+1))]:[a];return(u=u.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var l=void 0;switch(a){case"%p":l=n;break;case"%":case"%r":default:l=r}return Rt(l)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){nn(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var hn={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,l=-1!==["bottom","top"].indexOf(n),s=l?"left":"top",u=l?"width":"height",c={start:_t({},s,i[s]),end:_t({},s,i[s]+i[u]-a[u])};e.offsets.popper=At({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,l=r.split("-")[0],s=void 0;return s=nn(+n)?[+n,0]:dn(n,i,a,l),"left"===l?(i.top+=s[0],i.left-=s[1]):"right"===l?(i.top+=s[0],i.left+=s[1]):"top"===l?(i.left+=s[0],i.top-=s[1]):"bottom"===l&&(i.left+=s[0],i.top+=s[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Et(e.instance.popper);e.instance.reference===n&&(n=Et(n));var r=Yt("transform"),o=e.instance.popper.style,i=o.top,a=o.left,l=o[r];o.top="",o.left="",o[r]="";var s=Ft(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=l,t.boundaries=s;var u=t.priority,c=e.offsets.popper,p={primary:function(e){var n=c[e];return c[e]s[e]&&!t.escapeWithReference&&(r=Math.min(c[n],s[e]-("right"===e?c.width:c.height))),_t({},n,r)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=At({},c,p[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),l=a?"right":"bottom",s=a?"left":"top",u=a?"width":"height";return n[l]i(r[l])&&(e.offsets.popper[s]=i(r[l])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!an(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,l=i.reference,s=-1!==["left","right"].indexOf(o),u=s?"height":"width",c=s?"Top":"Left",p=c.toLowerCase(),f=s?"left":"top",d=s?"bottom":"right",h=Ut(r)[u];l[d]-ha[d]&&(e.offsets.popper[p]+=l[p]+h-a[d]),e.offsets.popper=Rt(e.offsets.popper);var m=l[p]+l[u]/2-h/2,v=dt(e.instance.popper),y=parseFloat(v["margin"+c]),b=parseFloat(v["border"+c+"Width"]),g=m-e.offsets.popper[p]-y-b;return g=Math.max(Math.min(a[u]-h,g),0),e.arrowElement=r,e.offsets.arrow=(_t(n={},p,Math.round(g)),_t(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if($t(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Ft(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Gt(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case cn:a=[r,o];break;case pn:a=un(r);break;case fn:a=un(r,!0);break;default:a=t.behavior}return a.forEach((function(l,s){if(r!==l||a.length===s+1)return e;r=e.placement.split("-")[0],o=Gt(r);var u=e.offsets.popper,c=e.offsets.reference,p=Math.floor,f="left"===r&&p(u.right)>p(c.left)||"right"===r&&p(u.left)p(c.top)||"bottom"===r&&p(u.top)p(n.right),m=p(u.top)p(n.bottom),y="left"===r&&d||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),g=!!t.flipVariations&&(b&&"start"===i&&d||b&&"end"===i&&h||!b&&"start"===i&&m||!b&&"end"===i&&v),E=!!t.flipVariationsByContent&&(b&&"start"===i&&h||b&&"end"===i&&d||!b&&"start"===i&&v||!b&&"end"===i&&m),O=g||E;(f||y||O)&&(e.flipped=!0,(f||y)&&(r=a[s+1]),O&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=At({},e.offsets.popper,Kt(e.instance.popper,e.offsets.reference,e.placement)),e=zt(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),l=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(l?o[a?"width":"height"]:0),e.placement=Gt(t),e.offsets.popper=Rt(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!an(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Vt(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};Tt(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=pt(this.update.bind(this)),this.options=At({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(At({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=At({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return At({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&ft(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return kt(e,[{key:"update",value:function(){return qt.call(this)}},{key:"destroy",value:function(){return Zt.call(this)}},{key:"enableEventListeners",value:function(){return en.call(this)}},{key:"disableEventListeners",value:function(){return tn.call(this)}}]),e}();mn.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,mn.placements=ln,mn.Defaults=hn;var vn=mn,yn={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},bn={},gn=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o=0||(o[n]=e[n]);return o}(e,["referenceElement"]);return p.createElement(Qe.Consumer,null,(function(e){return p.createElement(gn,Ke({referenceElement:void 0!==t?t:e},n))}))}function On(e,t){return e===t||e.contains(t)}var wn=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){xn&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Nn?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){xn&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Pn.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),kn=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),Wn="undefined"!==typeof WeakMap?new WeakMap:new wn,Un=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Tn.getInstance(),r=new Hn(t,n,this);Wn.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Un.prototype[e]=function(){var t;return(t=Wn.get(this))[e].apply(t,arguments)}}));var Gn="undefined"!==typeof Cn.ResizeObserver?Cn.ResizeObserver:Un,Kn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t.observer=new Gn((function(e){var n,r;return null===(r=(n=t.props).onResize)||void 0===r?void 0:r.call(n,e)})),t}return o(t,e),t.prototype.render=function(){return p.Children.only(this.props.children)},t.prototype.componentDidMount=function(){this.observeElement()},t.prototype.componentDidUpdate=function(e){this.observeElement(this.props.observeParents!==e.observeParents)},t.prototype.componentWillUnmount=function(){this.observer.disconnect()},t.prototype.observeElement=function(e){void 0===e&&(e=!1);var t=this.getElement();if(t instanceof Element){if((t!==this.element||e)&&(this.observer.disconnect(),this.element=t,this.observer.observe(t),this.props.observeParents))for(var n=t.parentElement;null!=n;)this.observer.observe(n),n=n.parentElement}else this.observer.disconnect()},t.prototype.getElement=function(){try{return(0,X.findDOMNode)(this)}catch(e){return null}},t.displayName="Blueprint3.ResizeSensor",t=l([f.polyfill],t)}(x),Vn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popover=null,t}return o(t,e),t.prototype.render=function(){var e,t=this,n=this.props,r=n.children,o=n.intent,l=n.popoverClassName,s=a(n,["children","intent","popoverClassName"]),u=c()(d.LiQ,((e={})[d.IRm]=this.props.minimal,e),d.NL3(o),l);return p.createElement(nr,i({interactionKind:tr.HOVER_TARGET_ONLY,modifiers:{arrow:{enabled:!this.props.minimal}}},s,{autoFocus:!1,canEscapeKeyClose:!1,enforceFocus:!1,lazy:!0,popoverClassName:u,portalContainer:this.props.portalContainer,ref:function(e){return t.popover=e}}),r)},t.prototype.reposition=function(){null!=this.popover&&this.popover.reposition()},t.displayName="Blueprint3.Tooltip",t.defaultProps={hoverCloseDelay:0,hoverOpenDelay:100,minimal:!1,transitionDuration:100},t=l([f.polyfill],t)}(x);function zn(e){return e.split("-")[0]}function qn(e){return-1!==["left","right"].indexOf(e)}function $n(e){switch(e){case"top":return"bottom";case"left":return"right";case"bottom":return"top";default:return"left"}}function Yn(e){switch(e.split("-")[1]){case"start":return"left";case"end":return"right";default:return"center"}}function Zn(e){var t=zn(e.placement);if(null==e.arrowElement)return qn(t)?$n(t)+" "+Yn(t):Yn(t)+" "+$n(t);var n=e.arrowElement.clientHeight/2,r=e.offsets.arrow;return qn(t)?$n(t)+" "+(r.top+n)+"px":r.left+n+"px "+$n(t)}var Jn=function(e){if(null==e.arrowElement)return e;var t=e.arrowElement.clientWidth,n=zn(e.placement),r=qn(n),o=r?"width":"height",i=r?"left":"top",a=Math.round(t/2/Math.sqrt(2));return"top"===n||"left"===n?(e.offsets.popper[i]-=a+4,e.offsets.arrow[i]=e.offsets.popper[o]-t+a):(e.offsets.popper[i]+=a+4,e.offsets.arrow[i]=-a),e};function Xn(e){if(null==e)return 0;switch(zn(e)){case"top":return-90;case"left":return 180;case"bottom":return 90;default:return 0}}var Qn=function(e){var t=e.arrowProps,n=t.ref,r=t.style,o=e.placement;return p.createElement("div",{className:d.D2c,ref:n,style:null==r.left||isNaN(+r.left)?{}:r},p.createElement("svg",{viewBox:"0 0 30 30",style:{transform:"rotate("+Xn(o)+"deg)"}},p.createElement("path",{className:d.D2c+"-border",d:"M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z"}),p.createElement("path",{className:d.D2c+"-fill",d:"M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z"})))};function er(e){switch(e){case fe.Ly.TOP_LEFT:return"top-start";case fe.Ly.TOP:return"top";case fe.Ly.TOP_RIGHT:return"top-end";case fe.Ly.RIGHT_TOP:return"right-start";case fe.Ly.RIGHT:return"right";case fe.Ly.RIGHT_BOTTOM:return"right-end";case fe.Ly.BOTTOM_RIGHT:return"bottom-end";case fe.Ly.BOTTOM:return"bottom";case fe.Ly.BOTTOM_LEFT:return"bottom-start";case fe.Ly.LEFT_BOTTOM:return"left-end";case fe.Ly.LEFT:return"left";case fe.Ly.LEFT_TOP:return"left-start";case"auto":case"auto-start":case"auto-end":return e;default:return function(e){throw new Error("Unexpected position: "+e)}(e)}}Qn.displayName="Blueprint3.PopoverArrow";var tr={CLICK:"click",CLICK_TARGET_ONLY:"click-target",HOVER:"hover",HOVER_TARGET_ONLY:"hover-target"},nr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popoverRef=j(),t.popoverElement=null,t.targetElement=null,t.state={hasDarkParent:!1,isOpen:t.getIsOpen(t.props),transformOrigin:""},t.isMouseInTargetOrPopover=!1,t.lostFocusOnSamePage=!0,t.handlePopoverRef=S(t,"popoverElement",t.props.popoverRef),t.handleTargetRef=function(e){return t.targetElement=e},t.reposition=function(){var e;return null===(e=t.popperScheduleUpdate)||void 0===e?void 0:e.call(t)},t.renderPopover=function(e){var n,r=t.props,o=r.usePortal,a=r.interactionKind,l=t.state.transformOrigin;t.popperScheduleUpdate=e.scheduleUpdate;var s={onClick:t.handlePopoverClick};(a===tr.HOVER||!o&&a===tr.HOVER_TARGET_ONLY)&&(s.onMouseEnter=t.handleMouseEnter,s.onMouseLeave=t.handleMouseLeave);var u=c()(d.Cr2,((n={})[d.Pyr]=t.props.inheritDarkTheme&&t.state.hasDarkParent,n[d.IRm]=t.props.minimal,n[d.u$T]=t.props.captureDismiss,n),t.props.popoverClassName);return p.createElement("div",{className:d.EOg,ref:e.ref,style:e.style},p.createElement(Kn,{onResize:t.reposition},p.createElement("div",i({className:u,style:{transformOrigin:l},ref:t.popoverRef},s),t.isArrowEnabled()&&p.createElement(Qn,{arrowProps:e.arrowProps,placement:e.placement}),p.createElement("div",{className:d.YHb},t.understandChildren().content))))},t.renderTarget=function(e){var n,r,o=t.props,a=o.fill,l=o.openOnTargetFocus,s=o.targetClassName,u=o.targetProps,f=void 0===u?{}:u,h=t.state.isOpen,m=t.isControlled(),v=t.isHoverInteractionKind(),y=t.props.targetTagName;a&&(y="div");var b=v?{onBlur:t.handleTargetBlur,onFocus:t.handleTargetFocus,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave}:{onClick:t.handleTargetClick};b.className=c()(d.abV,((n={})[d.ZA9]=h,n),f.className,s),b.ref=e.ref;var g=M(t.understandChildren().target);if(void 0===g)return null;var E=g.props.tabIndex,O=null==E&&l&&v?0:E,w=p.cloneElement(g,{className:c()(g.props.className,(r={},r[d.iNe]=h&&!m&&!v,r)),disabled:!(!h||!D(g,Vn))||g.props.disabled,tabIndex:O}),x=p.createElement(y,i(i({},f),b),w);return p.createElement(Kn,{onResize:t.reposition},x)},t.isControlled=function(){return void 0!==t.props.isOpen},t.handleTargetFocus=function(e){var n,r;if(t.props.openOnTargetFocus&&t.isHoverInteractionKind()){if(null==e.relatedTarget&&!t.lostFocusOnSamePage)return;t.handleMouseEnter(e)}null===(r=null===(n=t.props.targetProps)||void 0===n?void 0:n.onFocus)||void 0===r||r.call(n,e)},t.handleTargetBlur=function(e){var n,r;t.props.openOnTargetFocus&&t.isHoverInteractionKind()&&(null==e.relatedTarget||t.isElementInPopover(e.relatedTarget)||t.handleMouseLeave(e)),t.lostFocusOnSamePage=null!=e.relatedTarget,null===(r=null===(n=t.props.targetProps)||void 0===n?void 0:n.onBlur)||void 0===r||r.call(n,e)},t.handleMouseEnter=function(e){var n,r;t.isMouseInTargetOrPopover=!0,t.props.usePortal||!t.isElementInPopover(e.target)||t.props.interactionKind!==tr.HOVER_TARGET_ONLY||t.props.openOnTargetFocus?t.props.disabled||t.setOpenState(!0,e,t.props.hoverOpenDelay):t.handleMouseLeave(e),null===(r=null===(n=t.props.targetProps)||void 0===n?void 0:n.onMouseEnter)||void 0===r||r.call(n,e)},t.handleMouseLeave=function(e){var n,r;t.isMouseInTargetOrPopover=!1,t.setTimeout((function(){t.isMouseInTargetOrPopover||t.setOpenState(!1,e,t.props.hoverCloseDelay)})),null===(r=null===(n=t.props.targetProps)||void 0===n?void 0:n.onMouseLeave)||void 0===r||r.call(n,e)},t.handlePopoverClick=function(e){var n=e.target,r=n.closest("."+d.Cr2),o=r===t.popoverRef.current,i=null===r||void 0===r?void 0:r.classList.contains(d.u$T),a=n.closest("."+d.oPt+", ."+d.Hpx),l=null!=a&&a.classList.contains(d.oPt),s=null!=n.closest(":disabled, ."+d.rr$);!l||s||i&&!o||t.setOpenState(!1,e)},t.handleOverlayClose=function(e){if(null!==t.targetElement&&void 0!==e){var n=e.target;(!On(t.targetElement,n)||e.nativeEvent instanceof KeyboardEvent)&&t.setOpenState(!1,e)}},t.handleTargetClick=function(e){var n,r;t.props.disabled||t.isElementInPopover(e.target)||(null==t.props.isOpen?t.setState((function(e){return{isOpen:!e.isOpen}})):t.setOpenState(!t.props.isOpen,e)),null===(r=null===(n=t.props.targetProps)||void 0===n?void 0:n.onClick)||void 0===r||r.call(n,e)},t.updatePopoverState=function(e){return t.setState({transformOrigin:Zn(e)}),e},t}return o(t,e),t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.disabled,o=t.fill,i=t.placement,a=t.position,l=void 0===a?"auto":a,s=this.state.isOpen,u=this.props.wrapperTagName;o&&(u="div");var f=null==M(this.understandChildren().content);!f||r||!1===s||E("production")||console.warn("[Blueprint] Disabling with empty/whitespace content...");var h=c()(d.TwV,n,((e={})[d.ur0]=o,e)),m=p.createElement(u,{className:h},p.createElement(at,{innerRef:this.handleTargetRef},this.renderTarget),p.createElement(ae,{autoFocus:this.props.autoFocus,backdropClassName:d.mHA,backdropProps:this.props.backdropProps,canEscapeKeyClose:this.props.canEscapeKeyClose,canOutsideClickClose:this.props.interactionKind===tr.CLICK,className:this.props.portalClassName,enforceFocus:this.props.enforceFocus,hasBackdrop:this.props.hasBackdrop,isOpen:s&&!f,onClose:this.handleOverlayClose,onClosed:this.props.onClosed,onClosing:this.props.onClosing,onOpened:this.props.onOpened,onOpening:this.props.onOpening,transitionDuration:this.props.transitionDuration,transitionName:d.Cr2,usePortal:this.props.usePortal,portalContainer:this.props.portalContainer},p.createElement(En,{innerRef:this.handlePopoverRef,placement:null!==i&&void 0!==i?i:er(l),modifiers:this.getPopperModifiers()},this.renderPopover)));return p.createElement(tt,null,m)},t.prototype.componentDidMount=function(){this.updateDarkParent()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.popoverRef!==this.props.popoverRef&&(C(t.popoverRef,null),this.handlePopoverRef=S(this,"popoverElement",this.props.popoverRef),C(this.props.popoverRef,this.popoverElement)),this.updateDarkParent();var r=this.getIsOpen(this.props);null!=this.props.isOpen&&r!==this.state.isOpen?(this.setOpenState(r),this.setState({isOpen:r})):this.props.disabled&&this.state.isOpen&&null==this.props.isOpen&&this.setOpenState(!1)},t.prototype.validateProps=function(e){null==e.isOpen&&null!=e.onInteraction&&console.warn("[Blueprint] onInteraction is ignored when uncontrolled."),e.hasBackdrop&&!e.usePortal&&console.warn("[Blueprint] ignores hasBackdrop"),e.hasBackdrop&&e.interactionKind!==tr.CLICK&&console.error("[Blueprint] requires interactionKind={PopoverInteractionKind.CLICK}."),void 0!==e.placement&&void 0!==e.position&&console.warn("[Blueprint] supports either placement or position prop, not both.");var t=p.Children.count(e.children),n=void 0!==e.content,r=void 0!==e.target;0!==t||r||console.error("[Blueprint] requires target prop or at least one child element."),t>2&&console.warn("[Blueprint] supports one or two children; additional children are ignored. First child is the target, second child is the content. You may instead supply these two as props."),t>0&&r&&console.warn("[Blueprint] with children ignores target prop; use either prop or children."),2===t&&n&&console.warn("[Blueprint] with two children ignores content prop; use either prop or children.")},t.prototype.updateDarkParent=function(){if(this.props.usePortal&&this.state.isOpen){var e=null!=this.targetElement&&null!=this.targetElement.closest("."+d.Pyr);this.setState({hasDarkParent:e})}},t.prototype.understandChildren=function(){var e=this.props,t=e.children,n=e.content,r=e.target,o=p.Children.toArray(t),i=o[0],a=o[1];return{content:null==a?n:a,target:null==i?r:i}},t.prototype.getIsOpen=function(e){return!e.disabled&&(null!=e.isOpen?e.isOpen:e.defaultIsOpen)},t.prototype.getPopperModifiers=function(){var e=this.props,t=e.boundary,n=e.modifiers,r=n,o=r.flip,a=void 0===o?{}:o,l=r.preventOverflow,s=void 0===l?{}:l;return i(i({},n),{arrowOffset:{enabled:this.isArrowEnabled(),fn:Jn,order:510},flip:i({boundariesElement:t},a),preventOverflow:i({boundariesElement:t},s),updatePopoverState:{enabled:!0,fn:this.updatePopoverState,order:900}})},t.prototype.setOpenState=function(e,t,n){var r,o,i,a,l,s=this;null===(r=this.cancelOpenTimeout)||void 0===r||r.call(this),void 0!==n&&n>0?this.cancelOpenTimeout=this.setTimeout((function(){return s.setOpenState(e,t)}),n):(null==this.props.isOpen?this.setState({isOpen:e}):null===(i=(o=this.props).onInteraction)||void 0===i||i.call(o,e,t),e||null===(l=(a=this.props).onClose)||void 0===l||l.call(a,t))},t.prototype.isArrowEnabled=function(){var e=this.props,t=e.minimal,n=e.modifiers;return!t&&(null==(null===n||void 0===n?void 0:n.arrow)||n.arrow.enabled)},t.prototype.isElementInPopover=function(e){var t;return null===(t=this.popoverElement)||void 0===t?void 0:t.contains(e)},t.prototype.isHoverInteractionKind=function(){return this.props.interactionKind===tr.HOVER||this.props.interactionKind===tr.HOVER_TARGET_ONLY},t.displayName="Blueprint3.Popover",t.defaultProps={boundary:"scrollParent",captureDismiss:!1,defaultIsOpen:!1,disabled:!1,fill:!1,hasBackdrop:!1,hoverCloseDelay:300,hoverOpenDelay:150,inheritDarkTheme:!0,interactionKind:tr.CLICK,minimal:!1,modifiers:{},openOnTargetFocus:!0,targetTagName:"span",transitionDuration:300,usePortal:!0,wrapperTagName:"span"},t=l([f.polyfill],t)}(x),rr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isContentOverflowing:!1,textContent:""},t.textRef=null,t}return o(t,e),t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.render=function(){var e,t=this,n=c()(((e={})[d.J4_]=this.props.ellipsize,e),this.props.className),r=this.props,o=r.children,i=r.tagName,a=r.title;return p.createElement(i,{className:n,ref:function(e){return t.textRef=e},title:null!==a&&void 0!==a?a:this.state.isContentOverflowing?this.state.textContent:void 0},o)},t.prototype.update=function(){var e;if(null!=(null===(e=this.textRef)||void 0===e?void 0:e.textContent)){var t={isContentOverflowing:this.props.ellipsize&&this.textRef.scrollWidth>this.textRef.clientWidth,textContent:this.textRef.textContent};this.setState(t)}},t.displayName="Blueprint3.Text",t.defaultProps={ellipsize:!1,tagName:"div"},t=l([f.polyfill],t)}(x),or=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.active,o=n.className,l=n.children,s=n.disabled,u=n.icon,f=n.intent,h=(n.labelClassName,n.labelElement),m=n.multiline,v=(n.popoverProps,n.shouldDismissPopover),y=n.text,b=n.textClassName,g=n.tagName,E=void 0===g?"a":g,O=n.htmlTitle,w=a(n,["active","className","children","disabled","icon","intent","labelClassName","labelElement","multiline","popoverProps","shouldDismissPopover","text","textClassName","tagName","htmlTitle"]),x=null!=l,C=d.NL3(f),S=c()(d.URx,C,((e={})[d.iNe]=r,e[d.gSV]=r&&null==C,e[d.rr$]=s,e[d.oPt]=v&&!s&&!x,e),o),P=p.createElement(E,i(i(i({},w),s?ar:{}),{className:S}),p.createElement(B,{icon:u}),p.createElement(rr,{className:c()(d.ur0,b),ellipsize:!m,title:O},y),this.maybeRenderLabel(h),x?p.createElement(B,{icon:"caret-right"}):void 0),N=c()(((t={})[d.P1s]=x,t));return p.createElement("li",{className:N},this.maybeRenderPopover(P,l))},t.prototype.maybeRenderLabel=function(e){var t=this.props,n=t.label,r=t.labelClassName;return null==n&&null==e?null:p.createElement("span",{className:c()(d.Bzc,r)},n,e)},t.prototype.maybeRenderPopover=function(e,t){if(null==t)return e;var n=this.props,r=n.disabled,o=n.popoverProps;return p.createElement(nr,i({autoFocus:!1,captureDismiss:!1,disabled:r,enforceFocus:!1,hoverCloseDelay:0,interactionKind:tr.HOVER,modifiers:ir,position:fe.Ly.RIGHT_TOP,usePortal:!1},o,{content:p.createElement(lr,null,t),minimal:!0,popoverClassName:c()(d.P1s,null===o||void 0===o?void 0:o.popoverClassName),target:e}))},t.defaultProps={disabled:!1,multiline:!1,popoverProps:{},shouldDismissPopover:!0,text:""},t.displayName="Blueprint3.MenuItem",t=l([f.polyfill],t)}(x),ir={flip:{boundariesElement:"viewport",padding:20},offset:{offset:-5},preventOverflow:{boundariesElement:"viewport",padding:20}},ar={href:void 0,onClick:void 0,onMouseDown:void 0,onMouseEnter:void 0,onMouseLeave:void 0,tabIndex:-1},lr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.children,o=t.large,l=t.ulRef,s=a(t,["className","children","large","ulRef"]),u=c()(d.skh,((e={})[d.lnC]=o,e),n);return p.createElement("ul",i({},s,{className:u,ref:l}),r)},t.displayName="Blueprint3.Menu",t.Divider=Ge,t.Item=or,t=l([f.polyfill],t)}(x),sr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=a(e,["className"]);return p.createElement("div",i({className:c()(d.hlT,t)},n))},t.displayName="Blueprint3.NavbarDivider",t=l([f.polyfill],t)}(x),ur=n(1229),cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.align,n=e.children,r=e.className,o=a(e,["align","children","className"]),l=c()(d.Kyb,d.Fcr(t),r);return p.createElement("div",i({className:l},o),n)},t.displayName="Blueprint3.NavbarGroup",t.defaultProps={align:ur.v.LEFT},t=l([f.polyfill],t)}(x),pr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,r=a(e,["children","className"]);return p.createElement("div",i({className:c()(d.ktp,n)},r),t)},t.displayName="Blueprint3.NavbarHeading",t=l([f.polyfill],t)}(x),fr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e,t=this.props,n=t.children,r=t.className,o=t.fixedToTop,l=a(t,["children","className","fixedToTop"]),s=c()(d.Auc,((e={})[d.jce]=o,e),r);return p.createElement("div",i({className:s},l),n)},t.displayName="Blueprint3.Navbar",t.Divider=sr,t.Group=cr,t.Heading=pr,t=l([f.polyfill],t)}(x),dr=i(i({},fe.Ly),{AUTO:"auto",AUTO_END:"auto-end",AUTO_START:"auto-start"}),hr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e,t=this.props,n=t.animate,r=void 0===n||n,o=t.className,i=t.intent,a=t.stripes,l=void 0===a||a,s=t.value,u=c()(d.BOG,d.NL3(i),((e={})[d.WSd]=!r,e[d.SJ$]=!l,e),o),f=null==s?void 0:100*O(s,0,1)+"%";return p.createElement("div",{className:u},p.createElement("div",{className:d._c_,style:{width:f}}))},t.displayName="Blueprint3.ProgressBar",t=l([f.polyfill],t)}(x),mr=n(2609);function vr(e,t,n){return void 0===n&&(n=function(e,t){return e===t}),null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every((function(e,r){return n(e,t[r])}))}function yr(e,t,n){if(null==e&&null==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e)||Array.isArray(t))return!1;if(null!=n)return br(e,t,n);var r=Object.keys(e),o=Object.keys(t);return br(e,t,{include:r})&&br(e,t,{include:o})}function br(e,t,n){return function(e,t,n){if(function(e){return null!=e&&null!=e.include}(n))return n.include;if(function(e){return null!=e&&null!=e.exclude}(n)){var r=Object.keys(e),o=Object.keys(t),i=gr(r.concat(o));return n.exclude.forEach((function(e){return delete i[e]})),Object.keys(i)}return[]}(e,t,n).every((function(n){return e.hasOwnProperty(n)===t.hasOwnProperty(n)&&e[n]===t[n]}))}function gr(e){return e.reduce((function(e,t){return e[t]=!0,e}),{})}function Er(e){return(100*e).toFixed(2)+"%"}function Or(e,t,n,r){for(var o=t=0&&(null===(r=(n=t.props).onRelease)||void 0===r||r.call(n,t.props.value))},t}return o(t,e),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.disabled,o=t.label,i=this.state.isMoving;return p.createElement("span",{className:c()(d.TwB,(e={},e[d.iNe]=i,e),n),onKeyDown:r?void 0:this.handleKeyDown,onKeyUp:r?void 0:this.handleKeyUp,onMouseDown:r?void 0:this.beginHandleMovement,onTouchStart:r?void 0:this.beginHandleTouchMovement,ref:this.refHandlers.handle,style:this.getStyleProperties(),tabIndex:0},null==o?null:p.createElement("span",{className:d.lzN},o))},t.prototype.componentWillUnmount=function(){this.removeDocumentEventListeners()},t.prototype.clientToValue=function(e){var t=this.props,n=t.stepSize,r=t.tickSize,o=t.value,i=t.vertical;if(null==this.handleElement)return o;var a=(i?window.innerHeight-e:e)-this.getHandleElementCenterPixel(this.handleElement);return isNaN(a)?o:o+Math.round(a/(r*n))*n},t.prototype.mouseEventClientOffset=function(e){return this.props.vertical?e.clientY:e.clientX},t.prototype.touchEventClientOffset=function(e){var t=e.changedTouches[0];return this.props.vertical?t.clientY:t.clientX},t.prototype.validateProps=function(e){for(var t=0,n=wr;t requires number value for "+r+" prop")}},t.prototype.changeValue=function(e,t){return void 0===t&&(t=this.props.onChange),e=this.clamp(e),isNaN(e)||this.props.value===e||null===t||void 0===t||t(e),e},t.prototype.clamp=function(e){return O(e,this.props.min,this.props.max)},t.prototype.getHandleElementCenterPixel=function(e){var t=this.getHandleMidpointAndOffset(e),n=t.handleMidpoint;return t.handleOffset+n},t.prototype.getHandleMidpointAndOffset=function(e,t){if(void 0===t&&(t=!1),null==e)return{handleMidpoint:0,handleOffset:0};var n=this.props.vertical,r=e.getBoundingClientRect(),o=n?t?"width":"height":t?"height":"width",i=n?window.innerHeight-(r.top+r[o]):r.left;return{handleMidpoint:r[o]/2,handleOffset:i}},t.prototype.removeDocumentEventListeners=function(){document.removeEventListener("mousemove",this.handleHandleMovement),document.removeEventListener("mouseup",this.endHandleMovement),document.removeEventListener("touchmove",this.handleHandleTouchMovement),document.removeEventListener("touchend",this.endHandleTouchMovement),document.removeEventListener("touchcancel",this.endHandleTouchMovement)},t.displayName="Blueprint3.SliderHandle",t=l([f.polyfill],t)}(x),Cr="start",Sr="end",Pr="push",Nr="none",Tr=function(){return null};Tr.displayName="Blueprint3.MultiSliderHandle";var kr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={labelPrecision:_r(t.props),tickSize:0,tickSizeRatio:0},t.handleElements=[],t.trackElement=null,t.addHandleRef=function(e){null!=e&&t.handleElements.push(e)},t.maybeHandleTrackClick=function(e){if(t.canHandleTrackEvent(e)){var n=t.nearestHandleForValue(t.handleElements,(function(t){return t.mouseEventClientOffset(e)}));n&&n.beginHandleMovement(e)}},t.maybeHandleTrackTouch=function(e){if(t.canHandleTrackEvent(e)){var n=t.nearestHandleForValue(t.handleElements,(function(t){return t.touchEventClientOffset(e)}));n&&n.beginHandleTouchMovement(e)}},t.canHandleTrackEvent=function(e){var n=e.target;return!t.props.disabled&&null==n.closest("."+d.TwB)},t.getHandlerForIndex=function(e,n){return function(r){null===n||void 0===n||n(t.getNewHandleValues(r,e))}},t.handleChange=function(e){var n,r,o=Ar(t.props),i=o.map((function(e){return e.value}));vr(e,i)||(null===(r=(n=t.props).onChange)||void 0===r||r.call(n,e),o.forEach((function(t,n){var r;i[n]!==e[n]&&(null===(r=t.onChange)||void 0===r||r.call(t,e[n]))})))},t.handleRelease=function(e){var n,r,o=Ar(t.props);null===(r=(n=t.props).onRelease)||void 0===r||r.call(n,e),o.forEach((function(t,n){var r;null===(r=t.onRelease)||void 0===r||r.call(t,e[n])}))},t}var n;return o(t,e),n=t,t.getDerivedStateFromProps=function(e){return{labelPrecision:n.getLabelPrecision(e)}},t.getLabelPrecision=function(e){var t=e.labelPrecision,n=e.stepSize;return null==t?w(n):t},t.prototype.getSnapshotBeforeUpdate=function(e){var t=Ar(e);return Ar(this.props).length!==t.length&&(this.handleElements=[]),null},t.prototype.render=function(){var e,t=this,n=c()(d.dd0,((e={})[d.rr$]=this.props.disabled,e[d.dd0+"-unlabeled"]=!1===this.props.labelRenderer,e[d.yZ9]=this.props.vertical,e),this.props.className);return p.createElement("div",{className:n,onMouseDown:this.maybeHandleTrackClick,onTouchStart:this.maybeHandleTrackTouch},p.createElement("div",{className:d.YoZ,ref:function(e){return t.trackElement=e}},this.renderTracks()),p.createElement("div",{className:d.xqG},this.renderLabels()),this.renderHandles())},t.prototype.componentDidMount=function(){this.updateTickSize()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateTickSize()},t.prototype.validateProps=function(e){if(e.stepSize<=0)throw new Error("[Blueprint] stepSize must be greater than zero.");if(void 0!==e.labelStepSize&&void 0!==e.labelValues)throw new Error("[Blueprint] labelStepSize and labelValues prop are mutually exclusive, with labelStepSize taking priority.");if(void 0!==e.labelStepSize&&e.labelStepSize<=0)throw new Error("[Blueprint] labelStepSize must be greater than zero.");var t=!1;if(p.Children.forEach(e.children,(function(e){e&&!D(e,n.Handle)&&(t=!0)})),t)throw new Error("[Blueprint] children must be s or s")},t.prototype.formatLabel=function(e,t){void 0===t&&(t=!1);var n=this.props.labelRenderer;return!1===n?void 0:ee(n)?n(e,{isHandleTooltip:t}):e.toFixed(this.state.labelPrecision)},t.prototype.renderLabels=function(){var e=this;if(!1===this.props.labelRenderer)return null;var t=this.getLabelValues(),n=this.props,r=n.max,o=n.min;return t.map((function(t,n){var i=Er((t-o)/(r-o)),a=e.props.vertical?{bottom:i}:{left:i};return p.createElement("div",{className:d.lzN,key:n,style:a},e.formatLabel(t))}))},t.prototype.renderTracks=function(){var e=Rr(this.props);e.push({value:this.props.max});for(var t={value:this.props.min},n=[],r=0;r=t?n:void 0,onChange:o,onRelease:l}),p.createElement(kr.Handle,{value:t,interactionKind:"none"}))},t.defaultProps=i(i({},kr.defaultSliderProps),{initialValue:0,intent:mr.S.PRIMARY,value:0}),t.displayName="Blueprint3.Slider",t=l([f.polyfill],t)}(x),Dr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.panel;return p.createElement("div",{className:c()(d.aXM,t),role:"tablist"},n)},t.defaultProps={disabled:!1},t.displayName="Blueprint3.Tab",t=l([f.polyfill],t)}(x),jr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){return t.props.onClick(t.props.id,e)},t}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,r=e.disabled,o=e.id,l=e.parentId,s=e.selected,u=e.title,f=a(e,["className","children","disabled","id","parentId","selected","title"]);return p.createElement("div",i({},m(f),{"aria-controls":Ir(l,o),"aria-disabled":r,"aria-expanded":s,"aria-selected":s,className:c()(d.Mfv,t),"data-tab-id":o,id:Lr(l,o),onClick:r?void 0:this.handleClick,role:"tab",tabIndex:r?void 0:0}),u,n)},t.displayName="Blueprint3.TabTitle",t=l([f.polyfill],t)}(x);function Ir(e,t){return d.aXM+"_"+e+"_"+t}function Lr(e,t){return d.Mfv+"-title_"+e+"_"+t}var Fr=function(){return p.createElement("div",{className:d.SDr})},Br="."+d.Mfv,Hr=function(e){function t(t){var n=e.call(this,t)||this;n.tablistElement=null,n.refHandlers={tablist:function(e){return n.tablistElement=e}},n.handleKeyDown=function(e){var t,r=null===(t=document.activeElement)||void 0===t?void 0:t.closest(Br);if(null!=r){var o=n.getTabElements().filter((function(e){return"false"===e.getAttribute("aria-disabled")})),i=o.indexOf(r),a=n.getKeyCodeDirection(e);if(i>=0&&void 0!==a){e.preventDefault();var l=o.length;o[(i+a+l)%l].focus()}}},n.handleKeyPress=function(e){var t=e.target.closest(Br);null!=t&&_(e.which)&&(e.preventDefault(),t.click())},n.handleTabClick=function(e,t){var r,o;null===(o=(r=n.props).onChange)||void 0===o||o.call(r,e,n.state.selectedTabId,t),void 0===n.props.selectedTabId&&n.setState({selectedTabId:e})},n.renderTabPanel=function(e){var t=e.props,r=t.className,o=t.panel,i=t.id,a=t.panelClassName;if(void 0!==o)return p.createElement("div",{"aria-labelledby":Lr(n.props.id,i),"aria-hidden":i!==n.state.selectedTabId,className:c()(d.aXM,r,a),id:Ir(n.props.id,i),key:i,role:"tabpanel"},o)},n.renderTabTitle=function(e){if(Ur(e)){var t=e.props.id;return p.createElement(jr,i({},e.props,{parentId:n.props.id,onClick:n.handleTabClick,selected:t===n.state.selectedTabId}))}return e};var r=n.getInitialSelectedTabId();return n.state={selectedTabId:r},n}return o(t,e),t.getDerivedStateFromProps=function(e){var t=e.selectedTabId;return void 0!==t?{selectedTabId:t}:null},t.prototype.render=function(){var e,t,n=this.state,r=n.indicatorWrapperStyle,o=n.selectedTabId,i=p.Children.map(this.props.children,this.renderTabTitle),a=this.getTabChildren().filter(this.props.renderActiveTabPanelOnly?function(e){return e.props.id===o}:function(){return!0}).map(this.renderTabPanel),l=this.props.animate?p.createElement("div",{className:d.SHB,style:r},p.createElement("div",{className:d.bIF})):null,s=c()(d.G7x,((e={})[d.yZ9]=this.props.vertical,e),this.props.className),u=c()(d.YSh,((t={})[d.lnC]=this.props.large,t));return p.createElement("div",{className:s},p.createElement("div",{className:u,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,ref:this.refHandlers.tablist,role:"tablist"},l,i),a)},t.prototype.componentDidMount=function(){this.moveSelectionIndicator(!1)},t.prototype.componentDidUpdate=function(e,t){if(this.state.selectedTabId!==t.selectedTabId)this.moveSelectionIndicator();else if(null!=t.selectedTabId){!vr(this.getTabChildrenProps(e),this.getTabChildrenProps(),yr)&&this.moveSelectionIndicator()}},t.prototype.getInitialSelectedTabId=function(){var e=this.props,t=e.defaultSelectedTabId,n=e.selectedTabId;if(void 0!==n)return n;if(void 0!==t)return t;var r=this.getTabChildren();return 0===r.length?void 0:r[0].props.id},t.prototype.getKeyCodeDirection=function(e){return Wr(e,P,N)?-1:Wr(e,T,k)?1:void 0},t.prototype.getTabChildrenProps=function(e){return void 0===e&&(e=this.props),this.getTabChildren(e).map((function(e){return e.props}))},t.prototype.getTabChildren=function(e){return void 0===e&&(e=this.props),p.Children.toArray(e.children).filter(Ur)},t.prototype.getTabElements=function(e){return void 0===e&&(e=""),null==this.tablistElement?[]:Array.from(this.tablistElement.querySelectorAll(Br+e))},t.prototype.moveSelectionIndicator=function(e){if(void 0===e&&(e=!0),null!=this.tablistElement&&this.props.animate){var t=Br+'[data-tab-id="'+this.state.selectedTabId+'"]',n=this.tablistElement.querySelector(t),r={display:"none"};if(null!=n){var o=n.clientHeight,i=n.clientWidth,a=n.offsetLeft,l=n.offsetTop;r={height:o,transform:"translateX("+Math.floor(a)+"px) translateY("+Math.floor(l)+"px)",width:i},e||(r.transition="none")}this.setState({indicatorWrapperStyle:r})}},t.Expander=Fr,t.Tab=Dr,t.defaultProps={animate:!0,large:!1,renderActiveTabPanelOnly:!1,vertical:!1},t.displayName="Blueprint3.Tabs",t=l([f.polyfill],t)}(x);function Wr(e){for(var t=[],n=1;n=0}function Ur(e){return D(e,Dr)}var Gr,Kr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onRemoveClick=function(e){var n,r;null===(r=(n=t.props).onRemove)||void 0===r||r.call(n,e,t.props)},t}return o(t,e),t.prototype.render=function(){var e,t=this.props,n=t.active,r=t.children,o=t.className,l=t.fill,s=t.icon,u=t.intent,f=t.interactive,h=t.large,m=t.minimal,v=t.multiline,y=t.onRemove,b=t.rightIcon,g=t.round,E=t.tabIndex,O=void 0===E?0:E,w=t.htmlTitle,x=t.elementRef,C=a(t,["active","children","className","fill","icon","intent","interactive","large","minimal","multiline","onRemove","rightIcon","round","tabIndex","htmlTitle","elementRef"]),S=ee(y),P=c()(d.Kgk,d.NL3(u),((e={})[d.iNe]=n,e[d.ur0]=l,e[d.znr]=f,e[d.lnC]=h,e[d.IRm]=m,e[d.oUC]=g,e),o),N=h||P.indexOf(d.lnC)>=0,T=S?p.createElement("button",{type:"button",className:d.cm4,onClick:this.onRemoveClick,tabIndex:f?O:void 0},p.createElement(B,{icon:"small-cross",iconSize:N?I.LARGE:I.STANDARD})):null;return p.createElement("span",i({},C,{className:P,tabIndex:f?O:void 0,ref:x}),p.createElement(B,{icon:s}),!A(r)&&p.createElement(rr,{className:d.ur0,ellipsize:!v,tagName:"span",title:w},r),p.createElement(B,{icon:b}),T)},t.displayName="Blueprint3.Tag",t=l([f.polyfill],t)}(x),Vr=-1,zr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={activeIndex:Vr,inputValue:t.props.inputValue||"",isInputFocused:!1},t.inputElement=null,t.handleRef=S(t,"inputElement",t.props.inputRef),t.addTags=function(e,n){void 0===n&&(n="default");var r=t.props,o=r.inputValue,i=r.onAdd,a=r.onChange,l=r.values,u=t.getValues(e),c=!1!==(null===i||void 0===i?void 0:i(u,n))&&void 0===o;ee(a)&&(c=!1!==a(s(l,u))&&c),c&&t.setState({inputValue:""})},t.maybeRenderTag=function(e,n){if(!e)return null;var r=t.props,o=r.large,a=r.tagProps,l=ee(a)?a(e,n):a;return p.createElement(Kr,i({active:n===t.state.activeIndex,"data-tag-index":n,key:e+"__"+n,large:o,onRemove:t.props.disabled?void 0:t.handleRemoveTag},l),e)},t.handleContainerClick=function(){var e;null===(e=t.inputElement)||void 0===e||e.focus()},t.handleContainerBlur=function(e){var n=e.currentTarget;t.requestAnimationFrame((function(){n.contains(document.activeElement)||(t.props.addOnBlur&&void 0!==t.state.inputValue&&t.state.inputValue.length>0&&t.addTags(t.state.inputValue,"blur"),t.setState({activeIndex:Vr,isInputFocused:!1}))}))},t.handleInputFocus=function(e){var n,r;t.setState({isInputFocused:!0}),null===(r=null===(n=t.props.inputProps)||void 0===n?void 0:n.onFocus)||void 0===r||r.call(n,e)},t.handleInputChange=function(e){var n,r,o,i;t.setState({activeIndex:Vr,inputValue:e.currentTarget.value}),null===(r=(n=t.props).onInputChange)||void 0===r||r.call(n,e),null===(i=null===(o=t.props.inputProps)||void 0===o?void 0:o.onChange)||void 0===i||i.call(o,e)},t.handleInputKeyDown=function(e){var n=e.currentTarget,r=n.selectionEnd,o=n.value,i=t.state.activeIndex,a=i;if(13===e.which&&o.length>0)t.addTags(o,"default");else if(0===r&&t.props.values.length>0)if(e.which===P||e.which===T){var l=t.getNextActiveIndex(e.which===T?1:-1);l!==i&&(e.stopPropagation(),a=l,t.setState({activeIndex:l}))}else 8===e.which?t.handleBackspaceToRemove(e):46===e.which&&t.handleDeleteToRemove(e);t.invokeKeyPressCallback("onKeyDown",e,a)},t.handleInputKeyUp=function(e){t.invokeKeyPressCallback("onKeyUp",e,t.state.activeIndex)},t.handleInputPaste=function(e){var n=t.props.separator,r=e.clipboardData.getData("text");t.props.addOnPaste&&0!==r.length&&!1!==n&&1!==r.split(n).length&&(e.preventDefault(),t.addTags(r,"paste"))},t.handleRemoveTag=function(e){var n=+e.currentTarget.parentElement.getAttribute("data-tag-index");t.removeIndexFromValues(n)},t}return o(t,e),t.getDerivedStateFromProps=function(e,t){return e.inputValue!==t.prevInputValueProp?{inputValue:e.inputValue,prevInputValueProp:e.inputValue}:null},t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.disabled,o=t.fill,a=t.inputProps,l=t.intent,s=t.large,u=t.leftIcon,f=t.placeholder,h=t.values,m=c()(d.O4S,d.Z5q,((e={})[d.iNe]=this.state.isInputFocused,e[d.rr$]=r,e[d.ur0]=o,e[d.lnC]=s,e),d.NL3(l),n),v=m.indexOf(d.lnC)>Vr,y=h.some((function(e){return!!e})),b=null==f||y?null===a||void 0===a?void 0:a.placeholder:f;return p.createElement("div",{className:m,onBlur:this.handleContainerBlur,onClick:this.handleContainerClick},p.createElement(B,{className:d.SiW,icon:u,iconSize:v?I.LARGE:I.STANDARD}),p.createElement("div",{className:d.VOT},h.map(this.maybeRenderTag),this.props.children,p.createElement("input",i({value:this.state.inputValue},a,{onFocus:this.handleInputFocus,onChange:this.handleInputChange,onKeyDown:this.handleInputKeyDown,onKeyUp:this.handleInputKeyUp,onPaste:this.handleInputPaste,placeholder:b,ref:this.handleRef,className:c()(d.xSi,null===a||void 0===a?void 0:a.className),disabled:r}))),this.props.rightElement)},t.prototype.componentDidUpdate=function(e){e.inputRef!==this.props.inputRef&&(C(e.inputRef,null),this.handleRef=S(this,"inputElement",this.props.inputRef),C(this.props.inputRef,this.inputElement))},t.prototype.getNextActiveIndex=function(e){var t=this.state.activeIndex;return t===Vr?e<0?this.findNextIndex(this.props.values.length,-1):Vr:this.findNextIndex(t,e)},t.prototype.findNextIndex=function(e,t){for(var n=this.props.values,r=e+t;r>0&&r0}))},t.prototype.handleBackspaceToRemove=function(e){var t=this.state.activeIndex;this.setState({activeIndex:this.getNextActiveIndex(-1)}),this.isValidIndex(t)&&(e.stopPropagation(),this.removeIndexFromValues(t))},t.prototype.handleDeleteToRemove=function(e){var t=this.state.activeIndex;this.isValidIndex(t)&&(e.stopPropagation(),this.removeIndexFromValues(t))},t.prototype.removeIndexFromValues=function(e){var t=this.props,n=t.onChange,r=t.onRemove,o=t.values;null===r||void 0===r||r(o[e],e),ee(n)&&n(o.filter((function(t,n){return n!==e})))},t.prototype.invokeKeyPressCallback=function(e,t,n){var r,o,i,a;null===(o=(r=this.props)[e])||void 0===o||o.call(r,t,n===Vr?void 0:n),null===(a=(i=this.props.inputProps)[e])||void 0===a||a.call(i,t)},t.prototype.isValidIndex=function(e){return e!==Vr&&e0&&t.setTimeout((function(){return t.triggerDismiss(!0)}),t.props.timeout)},t}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.icon,r=e.intent,o=e.message;return p.createElement("div",{className:c()(d.otd,d.NL3(r),t),onBlur:this.startTimeout,onFocus:this.clearTimeouts,onMouseEnter:this.clearTimeouts,onMouseLeave:this.startTimeout,tabIndex:0},p.createElement(B,{icon:n}),p.createElement("span",{className:d.cHF},o),p.createElement(qr,{minimal:!0},this.maybeRenderActionButton(),p.createElement(V,{icon:"cross",onClick:this.handleCloseClick})))},t.prototype.componentDidMount=function(){this.startTimeout()},t.prototype.componentDidUpdate=function(e){e.timeout!==this.props.timeout&&(this.props.timeout>0?this.startTimeout():this.clearTimeouts())},t.prototype.componentWillUnmount=function(){this.clearTimeouts()},t.prototype.maybeRenderActionButton=function(){var e=this.props.action;return null==e?void 0:p.createElement(z,i({},e,{intent:void 0,onClick:this.handleActionClick}))},t.prototype.triggerDismiss=function(e){var t,n;this.clearTimeouts(),null===(n=(t=this.props).onDismiss)||void 0===n||n.call(t,e)},t.defaultProps={className:"",message:"",timeout:5e3},t.displayName="Blueprint3.Toast",t=l([f.polyfill],t)}(x),Yr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={toasts:[]},t.toastId=0,t.renderToast=function(e){return p.createElement($r,i({},e,{onDismiss:t.getDismissHandler(e)}))},t.getDismissHandler=function(e){return function(n){t.dismiss(e.key,n)}},t.handleClose=function(e){27===e.which&&t.clear()},t}var n;return o(t,e),n=t,t.create=function(e,t){void 0===t&&(t=document.body),null==e||null==e.usePortal||E("production")||console.warn("[Blueprint] Toaster.create() ignores inline prop as it always creates a new element.");var r=document.createElement("div");t.appendChild(r);var o=X.render(p.createElement(n,i({},e,{usePortal:!1})),r);if(null==o)throw new Error("[Blueprint] Toaster.create() is not supported inside React lifecycle methods in React 16. See usage example on the docs site.");return o},t.prototype.show=function(e,t){this.props.maxToasts&&this.dismissIfAtLimit();var n=this.createToastOptions(e,t);return void 0===t||this.isNewToastKey(t)?this.setState((function(e){return{toasts:s([n],e.toasts)}})):this.setState((function(e){return{toasts:e.toasts.map((function(e){return e.key===t?n:e}))}})),n.key},t.prototype.dismiss=function(e,t){void 0===t&&(t=!1),this.setState((function(n){return{toasts:n.toasts.filter((function(n){var r,o=n.key===e;return o&&(null===(r=n.onDismiss)||void 0===r||r.call(n,t)),!o}))}}))},t.prototype.clear=function(){this.state.toasts.forEach((function(e){var t;return null===(t=e.onDismiss)||void 0===t?void 0:t.call(e,!1)})),this.setState({toasts:[]})},t.prototype.getToasts=function(){return this.state.toasts},t.prototype.render=function(){var e=c()(d.KpW,this.getPositionClasses(),this.props.className);return p.createElement(ae,{autoFocus:this.props.autoFocus,canEscapeKeyClose:this.props.canEscapeKeyClear,canOutsideClickClose:!1,className:e,enforceFocus:!1,hasBackdrop:!1,isOpen:this.state.toasts.length>0||null!=this.props.children,onClose:this.handleClose,transitionDuration:350,transitionName:d.otd,usePortal:this.props.usePortal},this.state.toasts.map(this.renderToast,this),this.props.children)},t.prototype.validateProps=function(e){var t=e.maxToasts;if(void 0!==t&&t<1)throw new Error("[Blueprint] maxToasts is set to an invalid number, must be greater than 0")},t.prototype.isNewToastKey=function(e){return this.state.toasts.every((function(t){return t.key!==e}))},t.prototype.dismissIfAtLimit=function(){this.state.toasts.length===this.props.maxToasts&&this.dismiss(this.state.toasts[this.state.toasts.length-1].key)},t.prototype.createToastOptions=function(e,t){return void 0===t&&(t="toast-"+this.toastId++),i(i({},e),{key:t})},t.prototype.getPositionClasses=function(){return s(this.props.position.split("-").map((function(e){return d.KpW+"-"+e.toLowerCase()})),[d.KpW+"-"+(this.props.usePortal?"in-portal":"inline")])},t.displayName="Blueprint3.Toaster",t.defaultProps={autoFocus:!1,canEscapeKeyClear:!0,position:fe.Ly.TOP,usePortal:!0},t=n=l([f.polyfill],t)}(x);!function(e){e[e.OPEN_START=0]="OPEN_START",e[e.OPENING=1]="OPENING",e[e.OPEN=2]="OPEN",e[e.CLOSING_START=3]="CLOSING_START",e[e.CLOSING=4]="CLOSING",e[e.CLOSED=5]="CLOSED"}(Gr||(Gr={}));var Zr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={animationState:t.props.isOpen?Gr.OPEN:Gr.CLOSED,height:void 0,heightWhenOpen:void 0},t.contents=null,t.contentsRefHandler=function(e){if(t.contents=e,null!=t.contents){var n=t.contents.clientHeight;t.setState({animationState:t.props.isOpen?Gr.OPEN:Gr.CLOSED,height:0===n?void 0:n+"px",heightWhenOpen:0===n?void 0:n})}},t}return o(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.isOpen,r=t.animationState;if(n)switch(r){case Gr.OPEN:case Gr.OPENING:break;default:return{animationState:Gr.OPEN_START}}else switch(r){case Gr.CLOSED:case Gr.CLOSING:break;default:return{animationState:Gr.CLOSING_START,height:t.heightWhenOpen+"px"}}return null},t.prototype.render=function(){var e=this.state.animationState!==Gr.CLOSED,t=e||this.props.keepChildrenMounted,n=e&&this.state.animationState!==Gr.CLOSING,r="auto"===this.state.height,o={height:e?this.state.height:void 0,overflowY:r?"visible":void 0,transition:r?"none":void 0},i={transform:n?"translateY(0)":"translateY(-"+this.state.heightWhenOpen+"px)",transition:r?"none":void 0};return p.createElement(this.props.component,{className:c()(d.scP,this.props.className),style:o},p.createElement("div",{className:d.yW8,ref:this.contentsRefHandler,style:i,"aria-hidden":!e&&this.props.keepChildrenMounted},t?this.props.children:null))},t.prototype.componentDidMount=function(){this.forceUpdate(),this.props.isOpen?this.setState({animationState:Gr.OPEN,height:"auto"}):this.setState({animationState:Gr.CLOSED,height:"0px"})},t.prototype.componentDidUpdate=function(){var e=this;if(null!=this.contents){var t=this.props.transitionDuration,n=this.state.animationState;if(n===Gr.OPEN_START){var r=this.contents.clientHeight;this.setState({animationState:Gr.OPENING,height:r+"px",heightWhenOpen:r}),this.setTimeout((function(){return e.onDelayedStateChange()}),t)}else if(n===Gr.CLOSING_START){var o=this.contents.clientHeight;this.setTimeout((function(){return e.setState({animationState:Gr.CLOSING,height:"0px",heightWhenOpen:o})})),this.setTimeout((function(){return e.onDelayedStateChange()}),t)}}},t.prototype.onDelayedStateChange=function(){switch(this.state.animationState){case Gr.OPENING:this.setState({animationState:Gr.OPEN,height:"auto"});break;case Gr.CLOSING:this.setState({animationState:Gr.CLOSED})}},t.displayName="Blueprint3.Collapse",t.defaultProps={component:"div",isOpen:!1,keepChildrenMounted:!1,transitionDuration:200},t=l([f.polyfill],t)}(x),Jr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleCaretClick=function(e){var n;e.stopPropagation();var r=t.props,o=r.isExpanded,i=r.onCollapse,a=r.onExpand;null===(n=o?i:a)||void 0===n||n(t,e)},t.handleClick=function(e){var n,r;null===(r=(n=t.props).onClick)||void 0===r||r.call(n,t,e)},t.handleContentRef=function(e){var n,r;null===(r=(n=t.props).contentRef)||void 0===r||r.call(n,t,e)},t.handleContextMenu=function(e){var n,r;null===(r=(n=t.props).onContextMenu)||void 0===r||r.call(n,t,e)},t.handleDoubleClick=function(e){var n,r;null===(r=(n=t.props).onDoubleClick)||void 0===r||r.call(n,t,e)},t.handleMouseEnter=function(e){var n,r;null===(r=(n=t.props).onMouseEnter)||void 0===r||r.call(n,t,e)},t.handleMouseLeave=function(e){var n,r;null===(r=(n=t.props).onMouseLeave)||void 0===r||r.call(n,t,e)},t}return o(t,e),t.ofType=function(){return t},t.prototype.render=function(){var e,t=this.props,n=t.children,r=t.className,o=t.disabled,a=t.icon,l=t.isExpanded,s=t.isSelected,u=t.label,f=c()(d.JbT,((e={})[d.rr$]=o,e[d.ZQV]=s,e[d.LDi]=l,e),r),h=c()(d.Izg,d.Izg+"-"+this.props.depth),m=!0===o?{}:{onClick:this.handleClick,onContextMenu:this.handleContextMenu,onDoubleClick:this.handleDoubleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave};return p.createElement("li",{className:f},p.createElement("div",i({className:h,ref:this.handleContentRef},m),this.maybeRenderCaret(),p.createElement(B,{className:d.L_R,icon:a}),p.createElement("span",{className:d.mTs},u),this.maybeRenderSecondaryLabel()),p.createElement(Zr,{isOpen:l},n))},t.prototype.maybeRenderCaret=function(){var e=this.props,t=e.children,n=e.isExpanded,r=e.disabled,o=e.hasCaret;if(void 0===o?p.Children.count(t)>0:o){var i=c()(d.$8o,n?d.DSu:d.GVK),a=!0===r?void 0:this.handleCaretClick;return p.createElement(B,{className:i,onClick:a,icon:"chevron-right"})}return p.createElement("span",{className:d.EgP})},t.prototype.maybeRenderSecondaryLabel=function(){return null!=this.props.secondaryLabel?p.createElement("span",{className:d.UTM},this.props.secondaryLabel):void 0},t.displayName="Blueprint3.TreeNode",t}(p.Component),Xr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.nodeRefs={},t.handleNodeCollapse=function(e,n){t.handlerHelper(t.props.onNodeCollapse,e,n)},t.handleNodeClick=function(e,n){t.handlerHelper(t.props.onNodeClick,e,n)},t.handleContentRef=function(e,n){null!=n?t.nodeRefs[e.props.id]=n:delete t.nodeRefs[e.props.id]},t.handleNodeContextMenu=function(e,n){t.handlerHelper(t.props.onNodeContextMenu,e,n)},t.handleNodeDoubleClick=function(e,n){t.handlerHelper(t.props.onNodeDoubleClick,e,n)},t.handleNodeExpand=function(e,n){t.handlerHelper(t.props.onNodeExpand,e,n)},t.handleNodeMouseEnter=function(e,n){t.handlerHelper(t.props.onNodeMouseEnter,e,n)},t.handleNodeMouseLeave=function(e,n){t.handlerHelper(t.props.onNodeMouseLeave,e,n)},t}return o(t,e),t.ofType=function(){return t},t.nodeFromPath=function(e,n){return 1===e.length?n[e[0]]:t.nodeFromPath(e.slice(1),n[e[0]].childNodes)},t.prototype.render=function(){return p.createElement("div",{className:c()(d.UCV,this.props.className)},this.renderNodes(this.props.contents,[],d.DEh))},t.prototype.getNodeContentElement=function(e){return this.nodeRefs[e]},t.prototype.renderNodes=function(e,t,n){var r=this;if(null==e)return null;var o=e.map((function(e,n){var o=t.concat(n),a=Jr.ofType();return p.createElement(a,i({},e,{key:e.id,contentRef:r.handleContentRef,depth:o.length-1,onClick:r.handleNodeClick,onContextMenu:r.handleNodeContextMenu,onCollapse:r.handleNodeCollapse,onDoubleClick:r.handleNodeDoubleClick,onExpand:r.handleNodeExpand,onMouseEnter:r.handleNodeMouseEnter,onMouseLeave:r.handleNodeMouseLeave,path:o}),r.renderNodes(e.childNodes,o))}));return p.createElement("ul",{className:c()(d.cJu,n)},o)},t.prototype.handlerHelper=function(e,n,r){ee(e)&&e(t.nodeFromPath(n.props.path,this.props.contents),n.props.path,r)},t.displayName="Blueprint3.Tree",t}(p.Component)},5897:function(e,t,n){"use strict";t.__esModule=!0;var r=n(7294),o=(a(r),a(n(5697))),i=a(n(7815));a(n(2473));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=1073741823;function p(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}t.default=function(e,t){var n,a,f="__create-react-context-"+(0,i.default)()+"__",d=function(e){function n(){var t,r;l(this,n);for(var o=arguments.length,i=Array(o),a=0;a-1?o(n):n}},5559:function(e,t,n){"use strict";var r=n(8612),o=n(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||r.call(a,i),s=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),c=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(f){u=null}e.exports=function(e){var t=l(r,a,arguments);if(s&&u){var n=s(t,"length");n.configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var p=function(){return l(r,i,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p},4184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0;i--)if(b[i]!=g[i])return!1;for(i=b.length-1;i>=0;i--)if(!c(e[d=b[i]],t[d],n))return!1;return!0}(e,t,d))}function p(e){return null===e||void 0===e}function f(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0]))}e.exports=c},4289:function(e,t,n){"use strict";var r=n(2215),o="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,l=Object.defineProperty,s=l&&function(){var e={};try{for(var t in l(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(n){return!1}}(),u=function(e,t,n,r){var o;(!(t in e)||"function"===typeof(o=r)&&"[object Function]"===i.call(o)&&r())&&(s?l(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var l=0;l3?l(a):null,g=String(a.key),E=String(a.char),O=a.location,w=a.keyCode||(a.keyCode=g)&&g.charCodeAt(0)||0,x=a.charCode||(a.charCode=E)&&E.charCodeAt(0)||0,C=a.bubbles,S=a.cancelable,P=a.repeat,N=a.locale,T=a.view||e;if(a.which||(a.which=a.keyCode),"initKeyEvent"in f)f.initKeyEvent(t,C,S,T,d,m,h,v,w,x);else if(0>>0),t=Element.prototype,n=t.querySelector,r=t.querySelectorAll;function o(t,n,r){if(t.type!=p.ELEMENT_NODE)return n.call(t,r);t.setAttribute(e,null);var o=n.call(t,String(r).replace(/(^|,\s*)(:scope([ >]|$))/g,(function(t,n,r,o){return n+"["+e+"]"+(o||" ")})));return t.removeAttribute(e),o}t.querySelector=function(e){return o(this,n,e)},t.querySelectorAll=function(e){return o(this,r,e)}}()}}(window),function(e){"use strict";var t=e.WeakMap||function(){var e,t=0,n=!1,r=!1;function o(t,o,i){r=i,n=!1,e=void 0,t.dispatchEvent(o)}function a(e){this.value=e}function l(){t++,this.__ce__=new i("@DOMMap:"+t+Math.random())}return a.prototype.handleEvent=function(t){n=!0,r?t.currentTarget.removeEventListener(t.type,this,!1):e=this.value},l.prototype={constructor:l,delete:function(e){return o(e,this.__ce__,!0),n},get:function(t){o(t,this.__ce__,!1);var n=e;return e=void 0,n},has:function(e){return o(e,this.__ce__,!1),n},set:function(e,t){return o(e,this.__ce__,!0),e.addEventListener(this.__ce__.type,new a(t),!1),this}},l}();function n(){}function r(e,t,n){function o(e){o.once&&(e.currentTarget.removeEventListener(e.type,t,o),o.removed=!0),o.passive&&(e.preventDefault=r.preventDefault),"function"===typeof o.callback?o.callback.call(this,e):o.callback&&o.callback.handleEvent(e),o.passive&&delete e.preventDefault}return o.type=e,o.callback=t,o.capture=!!n.capture,o.passive=!!n.passive,o.once=!!n.once,o.removed=!1,o}n.prototype=(Object.create||Object)(null),r.preventDefault=function(){};var o,i=e.CustomEvent,a=e.dispatchEvent,l=e.addEventListener,s=e.removeEventListener,u=0,c=function(){u++},p=[].indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},f=function(e){return"".concat(e.capture?"1":"0",e.passive?"1":"0",e.once?"1":"0")};try{l("_",c,{once:!0}),a(new i("_")),a(new i("_")),s("_",c,{once:!0})}catch(d){}1!==u&&function(){var i=new t;o=function(e){if(e){var t=e.prototype;t.addEventListener=function(e){return function(t,o,a){if(a&&"boolean"!==typeof a){var l,s,u,c=i.get(this),d=f(a);c||i.set(this,c=new n),t in c||(c[t]={handler:[],wrap:[]}),s=c[t],(l=p.call(s.handler,o))<0?(l=s.handler.push(o)-1,s.wrap[l]=u=new n):u=s.wrap[l],d in u||(u[d]=r(t,o,a),e.call(this,t,u[d],u[d].capture))}else e.call(this,t,o,a)}}(t.addEventListener),t.removeEventListener=function(e){return function(t,n,r){if(r&&"boolean"!==typeof r){var o,a,l,s,u=i.get(this);if(u&&t in u&&(l=u[t],-1<(a=p.call(l.handler,n))&&(o=f(r))in(s=l.wrap[a]))){for(o in e.call(this,t,s[o],s[o].capture),delete s[o],s)return;l.handler.splice(a,1),l.wrap.splice(a,1),0===l.handler.length&&delete u[t]}}else e.call(this,t,n,r)}}(t.removeEventListener)}},e.EventTarget?o(EventTarget):(o(e.Text),o(e.Element||e.HTMLElement),o(e.HTMLDocument),o(e.Window||{prototype:e}),o(e.XMLHttpRequest))}()}(self)},7648:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,o="[object Function]";e.exports=function(e){var i=this;if("function"!==typeof i||r.call(i)!==o)throw new TypeError(t+i);for(var a,l=n.call(arguments,1),s=function(){if(this instanceof a){var t=i.apply(this,l.concat(n.call(arguments)));return Object(t)===t?t:this}return i.apply(e,l.concat(n.call(arguments)))},u=Math.max(0,i.length-l.length),c=[],p=0;p1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');var n=P(e),r=n.length>0?n[0]:"",i=N("%"+r+"%",t),l=i.name,u=i.value,c=!1,p=i.alias;p&&(r=p[0],O(n,E([0,1],p)));for(var f=1,d=!0;f=n.length){var b=s(u,h);u=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:u[h]}else d=g(u,h),u=u[h];d&&!c&&(m[l]=u)}}return u}},7815:function(e,t,n){"use strict";var r="__global_unique_id__";e.exports=function(){return n.g[r]=(n.g[r]||0)+1}},1405:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n(5419);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},5419:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7642:function(e,t,n){"use strict";var r=n(8612);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},2584:function(e,t,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag,o=n(1924)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},l=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=l?i:a},8923:function(e){"use strict";var t=Date.prototype.getDay,n=Object.prototype.toString,r="function"===typeof Symbol&&!!Symbol.toStringTag;e.exports=function(e){return"object"===typeof e&&null!==e&&(r?function(e){try{return t.call(e),!0}catch(n){return!1}}(e):"[object Date]"===n.call(e))}},8420:function(e,t,n){"use strict";var r,o,i,a,l=n(1924),s=n(5419)()&&!!Symbol.toStringTag;if(s){r=l("Object.prototype.hasOwnProperty"),o=l("RegExp.prototype.exec"),i={};var u=function(){throw i};a={toString:u,valueOf:u},"symbol"===typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=u)}var c=l("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor;e.exports=s?function(e){if(!e||"object"!==typeof e)return!1;var t=p(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,a)}catch(n){return n===i}}:function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&"[object RegExp]"===c(e)}},3367:function(e,t,n){"use strict";var r;t.__esModule=!0,t.AmpStateContext=void 0;var o=((r=n(7294))&&r.__esModule?r:{default:r}).default.createContext({});t.AmpStateContext=o},7845:function(e,t,n){"use strict";t.__esModule=!0,t.isInAmpMode=a,t.useAmp=function(){return a(o.default.useContext(i.AmpStateContext))};var r,o=(r=n(7294))&&r.__esModule?r:{default:r},i=n(3367);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,r=e.hybrid,o=void 0!==r&&r,i=e.hasQuery,a=void 0!==i&&i;return n||o&&a}},7947:function(e,t,n){"use strict";var r=n(1682);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.__esModule=!0,t.defaultHead=f,t.default=void 0;var i,a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7294)),l=(i=n(617))&&i.__esModule?i:{default:i},s=n(3367),u=n(4287),c=n(7845);function p(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[a.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function d(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var h=["name","httpEquiv","charSet","itemProp"];function m(e,t){return e.reduce((function(e,t){var n=a.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(d,[]).reverse().concat(f(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,n=new Set,r={};return function(o){var i=!0,a=!1;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){a=!0;var l=o.key.slice(o.key.indexOf("$")+1);e.has(l)?i=!1:e.add(l)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(var s=0,u=h.length;s0&&!o.call(e,0))for(var m=0;m0)for(var v=0;v=0&&"[object Function]"===t.call(e.callee)),r}},4155:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"===typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var l,s=[],u=!1,c=-1;function p(){u&&l&&(u=!1,l.length?s=l.concat(s):c=-1,s.length&&f())}function f(){if(!u){var e=a(p);u=!0;for(var t=s.length;t;){for(l=s,s=[];++c1)for(var n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var y=function(e){var t=e.children,n=e.xs,r=e.sm,i=e.md,c=e.lg,p=e.xl,f=e.xxl,d=e.offset,m=e.pull,y=e.push,b=e.debug,g=e.style,E=e.component,O=e.width,w=v(e,["children","xs","sm","md","lg","xl","xxl","offset","pull","push","debug","style","component","width"]);return o.default.createElement(u.default,null,(function(e){return o.default.createElement(s.GutterWidthContext.Consumer,null,(function(s){var u=(0,a.default)({forceWidth:O,width:{xs:n,sm:r,md:i,lg:c,xl:p,xxl:f},offset:d,pull:m,push:y,debug:b,screenClass:e,gutterWidth:s,gridColumns:(0,l.getConfiguration)().gridColumns,moreStyle:g});return(0,o.createElement)(E,h(h({style:u},w),{},{children:t}))}))}))};y.propTypes={children:i.default.node,xs:i.default.oneOfType([i.default.number,i.default.oneOf(["content"])]),sm:i.default.oneOfType([i.default.number,i.default.oneOf(["content"])]),md:i.default.oneOfType([i.default.number,i.default.oneOf(["content"])]),lg:i.default.oneOfType([i.default.number,i.default.oneOf(["content"])]),xl:i.default.oneOfType([i.default.number,i.default.oneOf(["content"])]),xxl:i.default.oneOfType([i.default.number,i.default.oneOf(["content"])]),width:i.default.oneOfType([i.default.number,i.default.string]),offset:i.default.shape({xs:i.default.number,sm:i.default.number,md:i.default.number,lg:i.default.number,xl:i.default.number,xxl:i.default.number}),push:i.default.shape({xs:i.default.number,sm:i.default.number,md:i.default.number,lg:i.default.number,xl:i.default.number,xxl:i.default.number}),pull:i.default.shape({xs:i.default.number,sm:i.default.number,md:i.default.number,lg:i.default.number,xl:i.default.number,xxl:i.default.number}),style:i.default.objectOf(i.default.oneOfType([i.default.number,i.default.string])),debug:i.default.bool,component:i.default.elementType},y.defaultProps={children:null,xs:null,sm:null,md:null,lg:null,xl:null,xxl:null,width:null,offset:{},push:{},pull:{},style:{},debug:!1,component:c.Div};var b=y;t.default=b},4035:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(1369);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=t){var n=l(s[e],g),o="content"===s[e];E.flexBasis=o?"auto":n||E.flexBasis,E.width=E.flexBasis,E.maxWidth=n||E.maxWidth,E.marginLeft=l(c[e],g)||E.marginLeft,E.right=l(f[e],g)||E.right,E.left=l(h[e],g)||E.left}})),t=s,Object.keys(t).reduce((function(e,n){return e||t[n]}),!1)||(E.flexBasis=0,E.flexGrow=1),o&&(E.flexBasis="unset",E.flexGrow="unset",E.flexShrink="unset",E.width=o),i(i({},E),b)}},1003:function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=f(n(7294)),i=c(n(5697)),a=f(n(2675)),l=n(444),s=c(n(5443)),u=n(7427);function c(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var v=function(e){var t=e.children,n=e.fluid,r=e.xs,i=e.sm,c=e.md,p=e.lg,f=e.xl,v=e.xxl,y=e.style,b=e.component,g=m(e,["children","fluid","xs","sm","md","lg","xl","xxl","style","component"]);return o.default.createElement(s.default,null,(function(e){return(0,o.createElement)(b,function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f=r.default.createContext(!1);t.GutterWidthContext=f;var d=function(e){var t=e.children,n=e.style,o=e.align,l=e.justify,s=e.debug,d=e.nogutter,h=e.gutterWidth,m=e.component,v=e.nowrap,y=e.direction,b=p(e,["children","style","align","justify","debug","nogutter","gutterWidth","component","nowrap","direction"]),g=(0,i.getConfiguration)().gutterWidth;d&&(g=0),"number"===typeof h&&(g=h);var E=(0,a.default)({gutterWidth:g,align:o,justify:l,debug:s,moreStyle:n,nowrap:v,direction:y});return r.default.createElement(m,function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=r[0]&&(u="sm"),r[1]&&c>=r[1]&&(u="md"),r[2]&&c>=r[2]&&(u="lg"),r[3]&&c>=r[3]&&(u="xl"),r[4]&&c>=r[4]&&(u="xxl")):t&&(u=t);var p=s.indexOf(u),f=s.indexOf(l);return f>=0&&p>f&&(u=s[f]),u},l=a((0,r.useState)(n()),2),u=l[0],c=l[1];return(0,r.useEffect)((function(){var e=function(){return c(n())};return i.Window.addEventListener("resize",e,!1),function(){i.Window.removeEventListener("resize",e,!1)}}),[]),u}},6871:function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,l=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?l="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==l){var s=e.displayName||e.name,u="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:function(){return a}}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},129:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(5697));var r=l(n(8141)),o=l(n(602)),i=l(n(7294)),a=l(n(644));n(4726);function l(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["children","in"]),a=r.default.Children.toArray(t),l=a[0],s=a[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(i.default,o,n?r.default.cloneElement(l,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);l.propTypes={};var s=l;t.default=s,e.exports=t.default},644:function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(5697)),o=l(n(7294)),i=l(n(3935)),a=n(6871);n(4726);function l(e){return e&&e.__esModule?e:{default:e}}var s="unmounted";t.UNMOUNTED=s;var u="exited";t.EXITED=u;var c="entering";t.ENTERING=c;var p="entered";t.ENTERED=p;var f="exiting";t.EXITING=f;var d=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var o,i=n.transitionGroup,a=i&&!i.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=u,r.appearStatus=c):o=p:o=t.unmountOnExit||t.mountOnEnter?s:u,r.state={status:o},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s?{status:u}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==p&&(t=c):n!==c&&n!==p||(t=f)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=i.default.findDOMNode(this);t===c?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:s})},a.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:c},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:p},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:p},(function(){n.props.onEntered(e)}))},a.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:f},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:u},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:u},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===s)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(e,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function h(){}d.contextTypes={transitionGroup:r.object},d.childContextTypes={transitionGroup:function(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4;var m=(0,a.polyfill)(d);t.default=m},2381:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=l(n(5697)),o=l(n(7294)),i=n(6871),a=n(537);function l(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=c(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i:o.default.createElement(t,r,i)},r}(o.default.Component);p.childContextTypes={transitionGroup:r.default.object.isRequired},p.propTypes={},p.defaultProps={component:"div",childFactory:function(e){return e}};var f=(0,i.polyfill)(p);t.default=f,e.exports=t.default},4317:function(e,t,n){"use strict";var r=l(n(129)),o=l(n(6093)),i=l(n(2381)),a=l(n(644));function l(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},537:function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=i,t.getInitialChildMapping=function(e,t){return o(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var l=o(e.children),s=i(t,l);return Object.keys(s).forEach((function(o){var i=s[o];if((0,r.isValidElement)(i)){var u=o in t,c=o in l,p=t[o],f=(0,r.isValidElement)(p)&&!p.props.in;!c||u&&!f?c||!u||f?c&&u&&(0,r.isValidElement)(p)&&(s[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:p.props.in,exit:a(i,"exit",e),enter:a(i,"enter",e)})):s[o]=(0,r.cloneElement)(i,{in:!1}):s[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:a(i,"exit",e),enter:a(i,"enter",e)})}})),s};var r=n(7294);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){u.headers[e]=o.merge(a)})),e.exports=u},1849:function(e){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4867:function(e,t,r){"use strict";var n=r(1849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function f(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r=0)}},1647:function(e,t,r){"use strict";var n=r(1682);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var r=function(){return y=!0,t()};j(m,e).then(r,r)}))},window.__NEXT_PRELOADREADY=x.preloadReady;var E=x;t.default=E},5152:function(e,t,r){e.exports=r(1647)},2447:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(c){return void r(c)}s.done?t(u):Promise.resolve(u).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,u,"next",e)}function u(e){n(a,o,i,s,u,"throw",e)}s(void 0)}))}}r.d(t,{Z:function(){return o}})},6265:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Z:function(){return n}})},5579:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t