74 lines
433 KiB
JavaScript
74 lines
433 KiB
JavaScript
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=39)}([function(t,e,n){"use strict";t.exports=n(19)},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"$mobx",function(){return P}),n.d(e,"IDerivationState",function(){return st}),n.d(e,"ObservableMap",function(){return un}),n.d(e,"ObservableSet",function(){return hn}),n.d(e,"Reaction",function(){return Bt}),n.d(e,"_allowStateChanges",function(){return rt}),n.d(e,"_allowStateChangesInsideComputed",function(){return at}),n.d(e,"_getAdministration",function(){return xn}),n.d(e,"_getGlobalState",function(){return Ot}),n.d(e,"_interceptReads",function(){return be}),n.d(e,"_isComputingDerivation",function(){return vt}),n.d(e,"_resetGlobalState",function(){return At}),n.d(e,"action",function(){return Qt}),n.d(e,"autorun",function(){return ee}),n.d(e,"comparer",function(){return O}),n.d(e,"computed",function(){return $}),n.d(e,"configure",function(){return le}),n.d(e,"createAtom",function(){return S}),n.d(e,"decorate",function(){return ue}),n.d(e,"entries",function(){return Ae}),n.d(e,"extendObservable",function(){return ce}),n.d(e,"flow",function(){return ge}),n.d(e,"get",function(){return je}),n.d(e,"getAtom",function(){return wn}),n.d(e,"getDebugName",function(){return Tn}),n.d(e,"getDependencyTree",function(){return de}),n.d(e,"getObserverTree",function(){return me}),n.d(e,"has",function(){return Me}),n.d(e,"intercept",function(){return we}),n.d(e,"isAction",function(){return $t}),n.d(e,"isArrayLike",function(){return _}),n.d(e,"isBoxedObservable",function(){return ct}),n.d(e,"isComputed",function(){return Te}),n.d(e,"isComputedProp",function(){return Ee}),n.d(e,"isObservable",function(){return ke}),n.d(e,"isObservableArray",function(){return an}),n.d(e,"isObservableMap",function(){return cn}),n.d(e,"isObservableObject",function(){return bn}),n.d(e,"isObservableProp",function(){return Ce}),n.d(e,"isObservableSet",function(){return dn}),n.d(e,"keys",function(){return Se}),n.d(e,"observable",function(){return Y}),n.d(e,"observe",function(){return Re}),n.d(e,"onBecomeObserved",function(){return oe}),n.d(e,"onBecomeUnobserved",function(){return ae}),n.d(e,"onReactionError",function(){return Ut}),n.d(e,"reaction",function(){return ie}),n.d(e,"remove",function(){return ze}),n.d(e,"runInAction",function(){return Xt}),n.d(e,"set",function(){return Le}),n.d(e,"spy",function(){return Gt}),n.d(e,"toJS",function(){return De}),n.d(e,"trace",function(){return Be}),n.d(e,"transaction",function(){return Ue}),n.d(e,"untracked",function(){return bt}),n.d(e,"values",function(){return Oe}),n.d(e,"when",function(){return Ze});
|
|
/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** */
|
|
var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function o(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var s="An invariant failed, however the error is obfuscated because this is an production build.",l=[];Object.freeze(l);var u={};function c(){return++St.mobxGuid}function f(t){throw h(!1,t),"X"}function h(t,e){if(!t)throw new Error("[mobx] "+(e||s))}Object.freeze(u);function d(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}var p=function(){};function m(t){return null!==t&&"object"==typeof t}function v(t){if(null===t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}function y(t,e,n){Object.defineProperty(t,e,{enumerable:!1,writable:!0,configurable:!0,value:n})}function g(t,e){var n="isMobX"+t;return e.prototype[n]=!0,function(t){return m(t)&&!0===t[n]}}function _(t){return Array.isArray(t)||an(t)}function b(t){return t instanceof Map}function w(t){return t instanceof Set}function x(t){var e=new Set;for(var n in t)e.add(n);return Object.getOwnPropertySymbols(t).forEach(function(n){Object.getOwnPropertyDescriptor(t,n).enumerable&&e.add(n)}),Array.from(e)}function T(t){return t&&t.toString?t.toString():new String(t).toString()}function E(t){return null===t?null:"object"==typeof t?""+t:t}var P=Symbol("mobx administration"),k=function(){function t(t){void 0===t&&(t="Atom@"+c()),this.name=t,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=st.NOT_TRACKING}return t.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(t){return t()})},t.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(t){return t()})},t.prototype.reportObserved=function(){return Nt(this)},t.prototype.reportChanged=function(){Rt(),function(t){if(t.lowestObserverState===st.STALE)return;t.lowestObserverState=st.STALE,t.observers.forEach(function(e){e.dependenciesState===st.UP_TO_DATE&&(e.isTracing!==lt.NONE&&Dt(e,t),e.onBecomeStale()),e.dependenciesState=st.STALE})}(this),It()},t.prototype.toString=function(){return this.name},t}(),C=g("Atom",k);function S(t,e,n){void 0===e&&(e=p),void 0===n&&(n=p);var r=new k(t);return e!==p&&oe(r,e),n!==p&&ae(r,n),r}var O={identity:function(t,e){return t===e},structural:function(t,e){return Pn(t,e)},default:function(t,e){return Object.is(t,e)}},A=Symbol("mobx did run lazy initializers"),L=Symbol("mobx pending decorators"),z={},M={};function j(t,e){var n=e?z:M;return n[t]||(n[t]={configurable:!0,enumerable:e,get:function(){return R(this),this[t]},set:function(e){R(this),this[t]=e}})}function R(t){if(!0!==t[A]){var e=t[L];if(e)for(var n in y(t,A,!0),e){var r=e[n];r.propertyCreator(t,r.prop,r.descriptor,r.decoratorTarget,r.decoratorArguments)}}}function I(t,e){return function(){var n,r=function(r,o,a,s){if(!0===s)return e(r,o,a,r,n),null;if(!Object.prototype.hasOwnProperty.call(r,L)){var l=r[L];y(r,L,i({},l))}return r[L][o]={prop:o,propertyCreator:e,descriptor:a,decoratorTarget:r,decoratorArguments:n},j(o,t)};return N(arguments)?(n=l,r.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),r)}}function N(t){return(2===t.length||3===t.length)&&"string"==typeof t[1]||4===t.length&&!0===t[3]}function D(t,e,n){return ke(t)?t:Array.isArray(t)?Y.array(t,{name:n}):v(t)?Y.object(t,void 0,{name:n}):b(t)?Y.map(t,{name:n}):w(t)?Y.set(t,{name:n}):t}function B(t){return t}function U(t){h(t);var e=I(!0,function(e,n,r,i,o){var a=r?r.initializer?r.initializer.call(e):r.value:void 0;mn(e).addObservableProp(n,a,t)}),n=("undefined"!=typeof process&&process.env,e);return n.enhancer=t,n}var Z={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function F(t){return null==t?Z:"string"==typeof t?{name:t,deep:!0,proxy:!0}:t}Object.freeze(Z);var W=U(D),V=U(function(t,e,n){return null==t?t:bn(t)||an(t)||cn(t)||dn(t)?t:Array.isArray(t)?Y.array(t,{name:n,deep:!1}):v(t)?Y.object(t,void 0,{name:n,deep:!1}):b(t)?Y.map(t,{name:n,deep:!1}):w(t)?Y.set(t,{name:n,deep:!1}):f(!1)}),H=U(B),q=U(function(t,e,n){return Pn(t,e)?e:t});function G(t){return t.defaultDecorator?t.defaultDecorator.enhancer:!1===t.deep?B:D}var K={box:function(t,e){arguments.length>2&&J("box");var n=F(e);return new ut(t,G(n),n.name,!0,n.equals)},array:function(t,e){arguments.length>2&&J("array");var n=F(e);return tn(t,G(n),n.name)},map:function(t,e){arguments.length>2&&J("map");var n=F(e);return new un(t,G(n),n.name)},set:function(t,e){arguments.length>2&&J("set");var n=F(e);return new hn(t,G(n),n.name)},object:function(t,e,n){"string"==typeof arguments[1]&&J("object");var r=F(n);if(!1===r.proxy)return ce({},t,e,r);var i=fe(r),o=ce({},void 0,void 0,r),a=qe(o);return he(a,t,e,i),a},ref:H,shallow:V,deep:W,struct:q},Y=function(t,e,n){if("string"==typeof arguments[1])return W.apply(null,arguments);if(ke(t))return t;var r=v(t)?Y.object(t,e,n):Array.isArray(t)?Y.array(t,e):b(t)?Y.map(t,e):w(t)?Y.set(t,e):t;if(r!==t)return r;f(!1)};function J(t){f("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}Object.keys(K).forEach(function(t){return Y[t]=K[t]});var Q=I(!1,function(t,e,n,r,o){var a=n.get,s=n.set,l=o[0]||{};mn(t).addComputedProp(t,e,i({get:a,set:s,context:t},l))}),X=Q({equals:O.structural}),$=function(t,e,n){if("string"==typeof e)return Q.apply(null,arguments);if(null!==t&&"object"==typeof t&&1===arguments.length)return Q.apply(null,arguments);var r="object"==typeof e?e:{};return r.get=t,r.set="function"==typeof e?e:r.set,r.name=r.name||t.name||"",new ft(r)};function tt(t,e,n){var r=function(){return et(t,e,n||this,arguments)};return r.isMobxAction=!0,r}function et(t,e,n,r){var i=function(t,e,n,r){var i=!1,o=0;var a=wt();Rt();var s=it(!0);return{prevDerivation:a,prevAllowStateChanges:s,notifySpy:i,startTime:o}}(),o=!0;try{var a=e.apply(n,r);return o=!1,a}finally{o?(St.suppressReactionErrors=o,nt(i),St.suppressReactionErrors=!1):nt(i)}}function nt(t){ot(t.prevAllowStateChanges),It(),xt(t.prevDerivation),t.notifySpy}function rt(t,e){var n,r=it(t);try{n=e()}finally{ot(r)}return n}function it(t){var e=St.allowStateChanges;return St.allowStateChanges=t,e}function ot(t){St.allowStateChanges=t}function at(t){var e,n=St.computationDepth;St.computationDepth=0;try{e=t()}finally{St.computationDepth=n}return e}$.struct=X;var st,lt,ut=function(t){function e(e,n,r,i,o){void 0===r&&(r="ObservableValue@"+c()),void 0===i&&(i=!0),void 0===o&&(o=O.default);var a=t.call(this,r)||this;return a.enhancer=n,a.name=r,a.equals=o,a.hasUnreportedChange=!1,a.value=n(e,void 0,r),a}return function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},e.prototype.set=function(t){this.value;if((t=this.prepareNewValue(t))!==St.UNCHANGED){0,this.setNewValue(t)}},e.prototype.prepareNewValue=function(t){if(yt(this),Ge(this)){var e=Ye(this,{object:this,type:"update",newValue:t});if(!e)return St.UNCHANGED;t=e.newValue}return t=this.enhancer(t,this.value,this.name),this.equals(this.value,t)?St.UNCHANGED:t},e.prototype.setNewValue=function(t){var e=this.value;this.value=t,this.reportChanged(),Je(this)&&Xe(this,{type:"update",object:this,newValue:t,oldValue:e})},e.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},e.prototype.intercept=function(t){return Ke(this,t)},e.prototype.observe=function(t,e){return e&&t({object:this,type:"update",newValue:this.value,oldValue:void 0}),Qe(this,t)},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.value+"]"},e.prototype.valueOf=function(){return E(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(k),ct=g("ObservableValue",ut),ft=function(){function t(t){this.dependenciesState=st.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=st.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+c(),this.value=new dt(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=lt.NONE,this.derivation=t.get,this.name=t.name||"ComputedValue@"+c(),t.set&&(this.setter=tt(this.name+"-setter",t.set)),this.equals=t.equals||(t.compareStructural||t.struct?O.structural:O.default),this.scope=t.context,this.requiresReaction=!!t.requiresReaction,this.keepAlive=!!t.keepAlive}return t.prototype.onBecomeStale=function(){!function(t){if(t.lowestObserverState!==st.UP_TO_DATE)return;t.lowestObserverState=st.POSSIBLY_STALE,t.observers.forEach(function(e){e.dependenciesState===st.UP_TO_DATE&&(e.dependenciesState=st.POSSIBLY_STALE,e.isTracing!==lt.NONE&&Dt(e,t),e.onBecomeStale())})}(this)},t.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(t){return t()})},t.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(t){return t()})},t.prototype.get=function(){this.isComputing&&f("Cycle detected in computation "+this.name+": "+this.derivation),0!==St.inBatch||0!==this.observers.size||this.keepAlive?(Nt(this),mt(this)&&this.trackAndCompute()&&function(t){if(t.lowestObserverState===st.STALE)return;t.lowestObserverState=st.STALE,t.observers.forEach(function(e){e.dependenciesState===st.POSSIBLY_STALE?e.dependenciesState=st.STALE:e.dependenciesState===st.UP_TO_DATE&&(t.lowestObserverState=st.UP_TO_DATE)})}(this)):mt(this)&&(this.warnAboutUntrackedRead(),Rt(),this.value=this.computeValue(!1),It());var t=this.value;if(pt(t))throw t.cause;return t},t.prototype.peek=function(){var t=this.computeValue(!1);if(pt(t))throw t.cause;return t},t.prototype.set=function(t){if(this.setter){h(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,t)}finally{this.isRunningSetter=!1}}else h(!1,!1)},t.prototype.trackAndCompute=function(){var t=this.value,e=this.dependenciesState===st.NOT_TRACKING,n=this.computeValue(!0),r=e||pt(t)||pt(n)||!this.equals(t,n);return r&&(this.value=n),r},t.prototype.computeValue=function(t){var e;if(this.isComputing=!0,St.computationDepth++,t)e=gt(this,this.derivation,this.scope);else if(!0===St.disableErrorBoundaries)e=this.derivation.call(this.scope);else try{e=this.derivation.call(this.scope)}catch(t){e=new dt(t)}return St.computationDepth--,this.isComputing=!1,e},t.prototype.suspend=function(){this.keepAlive||(_t(this),this.value=void 0)},t.prototype.observe=function(t,e){var n=this,r=!0,i=void 0;return ee(function(){var o=n.get();if(!r||e){var a=wt();t({type:"update",object:n,newValue:o,oldValue:i}),xt(a)}r=!1,i=o})},t.prototype.warnAboutUntrackedRead=function(){},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},t.prototype.valueOf=function(){return E(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}(),ht=g("ComputedValue",ft);!function(t){t[t.NOT_TRACKING=-1]="NOT_TRACKING",t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.POSSIBLY_STALE=1]="POSSIBLY_STALE",t[t.STALE=2]="STALE"}(st||(st={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(lt||(lt={}));var dt=function(t){this.cause=t};function pt(t){return t instanceof dt}function mt(t){switch(t.dependenciesState){case st.UP_TO_DATE:return!1;case st.NOT_TRACKING:case st.STALE:return!0;case st.POSSIBLY_STALE:for(var e=wt(),n=t.observing,r=n.length,i=0;i<r;i++){var o=n[i];if(ht(o)){if(St.disableErrorBoundaries)o.get();else try{o.get()}catch(t){return xt(e),!0}if(t.dependenciesState===st.STALE)return xt(e),!0}}return Tt(t),xt(e),!1}}function vt(){return null!==St.trackingDerivation}function yt(t){var e=t.observers.size>0;St.computationDepth>0&&e&&f(!1),St.allowStateChanges||!e&&"strict"!==St.enforceActions||f(!1)}function gt(t,e,n){Tt(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++St.runId;var r,i=St.trackingDerivation;if(St.trackingDerivation=t,!0===St.disableErrorBoundaries)r=e.call(n);else try{r=e.call(n)}catch(t){r=new dt(t)}return St.trackingDerivation=i,function(t){for(var e=t.observing,n=t.observing=t.newObserving,r=st.UP_TO_DATE,i=0,o=t.unboundDepsCount,a=0;a<o;a++){var s=n[a];0===s.diffValue&&(s.diffValue=1,i!==a&&(n[i]=s),i++),s.dependenciesState>r&&(r=s.dependenciesState)}n.length=i,t.newObserving=null,o=e.length;for(;o--;){var s=e[o];0===s.diffValue&&Mt(s,t),s.diffValue=0}for(;i--;){var s=n[i];1===s.diffValue&&(s.diffValue=0,zt(s,t))}r!==st.UP_TO_DATE&&(t.dependenciesState=r,t.onBecomeStale())}(t),r}function _t(t){var e=t.observing;t.observing=[];for(var n=e.length;n--;)Mt(e[n],t);t.dependenciesState=st.NOT_TRACKING}function bt(t){var e=wt();try{return t()}finally{xt(e)}}function wt(){var t=St.trackingDerivation;return St.trackingDerivation=null,t}function xt(t){St.trackingDerivation=t}function Tt(t){if(t.dependenciesState!==st.UP_TO_DATE){t.dependenciesState=st.UP_TO_DATE;for(var e=t.observing,n=e.length;n--;)e[n].lowestObserverState=st.UP_TO_DATE}}var Et=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","disableErrorBoundaries","runId","UNCHANGED"],Pt=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},kt=!0,Ct=!1,St=function(){var t=Lt();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(kt=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==(new Pt).version&&(kt=!1),kt?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new Pt):(setTimeout(function(){Ct||f("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Pt)}();function Ot(){return St}function At(){var t=new Pt;for(var e in t)-1===Et.indexOf(e)&&(St[e]=t[e]);St.allowStateChanges=!St.enforceActions}function Lt(){return"undefined"!=typeof window?window:t}function zt(t,e){t.observers.add(e),t.lowestObserverState>e.dependenciesState&&(t.lowestObserverState=e.dependenciesState)}function Mt(t,e){t.observers.delete(e),0===t.observers.size&&jt(t)}function jt(t){!1===t.isPendingUnobservation&&(t.isPendingUnobservation=!0,St.pendingUnobservations.push(t))}function Rt(){St.inBatch++}function It(){if(0==--St.inBatch){Wt();for(var t=St.pendingUnobservations,e=0;e<t.length;e++){var n=t[e];n.isPendingUnobservation=!1,0===n.observers.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof ft&&n.suspend())}St.pendingUnobservations=[]}}function Nt(t){var e=St.trackingDerivation;return null!==e?(e.runId!==t.lastAccessedBy&&(t.lastAccessedBy=e.runId,e.newObserving[e.unboundDepsCount++]=t,t.isBeingObserved||(t.isBeingObserved=!0,t.onBecomeObserved())),!0):(0===t.observers.size&&St.inBatch>0&&jt(t),!1)}function Dt(t,e){if(console.log("[mobx.trace] '"+t.name+"' is invalidated due to a change in: '"+e.name+"'"),t.isTracing===lt.BREAK){var n=[];!function t(e,n,r){if(n.length>=1e3)return void n.push("(and many more)");n.push(""+new Array(r).join("\t")+e.name);e.dependencies&&e.dependencies.forEach(function(e){return t(e,n,r+1)})}(de(t),n,1),new Function("debugger;\n/*\nTracing '"+t.name+"'\n\nYou are entering this break point because derivation '"+t.name+"' is being traced and '"+e.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(t instanceof ft?t.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}var Bt=function(){function t(t,e,n){void 0===t&&(t="Reaction@"+c()),this.name=t,this.onInvalidate=e,this.errorHandler=n,this.observing=[],this.newObserving=[],this.dependenciesState=st.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+c(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=lt.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,St.pendingReactions.push(this),Wt())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){if(!this.isDisposed){if(Rt(),this._isScheduled=!1,mt(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(t){this.reportExceptionInDerivation(t)}}It()}},t.prototype.track=function(t){if(!this.isDisposed){Rt();0,this._isRunning=!0;var e=gt(this,t,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&_t(this),pt(e)&&this.reportExceptionInDerivation(e.cause),It()}},t.prototype.reportExceptionInDerivation=function(t){var e=this;if(this.errorHandler)this.errorHandler(t,this);else{if(St.disableErrorBoundaries)throw t;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";St.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,t),St.globalReactionErrorHandlers.forEach(function(n){return n(t,e)})}},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Rt(),_t(this),It()))},t.prototype.getDisposer=function(){var t=this.dispose.bind(this);return t[P]=this,t},t.prototype.toString=function(){return"Reaction["+this.name+"]"},t.prototype.trace=function(t){void 0===t&&(t=!1),Be(this,t)},t}();function Ut(t){return St.globalReactionErrorHandlers.push(t),function(){var e=St.globalReactionErrorHandlers.indexOf(t);e>=0&&St.globalReactionErrorHandlers.splice(e,1)}}var Zt=100,Ft=function(t){return t()};function Wt(){St.inBatch>0||St.isRunningReactions||Ft(Vt)}function Vt(){St.isRunningReactions=!0;for(var t=St.pendingReactions,e=0;t.length>0;){++e===Zt&&(console.error("Reaction doesn't converge to a stable state after "+Zt+" iterations. Probably there is a cycle in the reactive function: "+t[0]),t.splice(0));for(var n=t.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction()}St.isRunningReactions=!1}var Ht=g("Reaction",Bt);function qt(t){var e=Ft;Ft=function(n){return t(function(){return e(n)})}}function Gt(t){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function Kt(){f(!1)}function Yt(t){return function(e,n,r){if(r){if(r.value)return{value:tt(t,r.value),enumerable:!1,configurable:!0,writable:!0};var i=r.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return tt(t,i.call(this))}}}return Jt(t).apply(this,arguments)}}function Jt(t){return function(e,n,r){Object.defineProperty(e,n,{configurable:!0,enumerable:!1,get:function(){},set:function(e){y(this,n,Qt(t,e))}})}}var Qt=function(t,e,n,r){return 1===arguments.length&&"function"==typeof t?tt(t.name||"<unnamed action>",t):2===arguments.length&&"function"==typeof e?tt(t,e):1===arguments.length&&"string"==typeof t?Yt(t):!0!==r?Yt(e).apply(null,arguments):void y(t,e,tt(t.name||e,n.value,this))};function Xt(t,e){"string"==typeof t||t.name;return et(0,"function"==typeof t?t:e,this,void 0)}function $t(t){return"function"==typeof t&&!0===t.isMobxAction}function te(t,e,n){y(t,e,tt(e,n.bind(t)))}function ee(t,e){void 0===e&&(e=u);var n,r=e&&e.name||t.name||"Autorun@"+c();if(!e.scheduler&&!e.delay)n=new Bt(r,function(){this.track(a)},e.onError);else{var i=re(e),o=!1;n=new Bt(r,function(){o||(o=!0,i(function(){o=!1,n.isDisposed||n.track(a)}))},e.onError)}function a(){t(n)}return n.schedule(),n.getDisposer()}Qt.bound=function(t,e,n,r){return!0===r?(te(t,e,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return te(this,e,n.value||n.initializer.call(this)),this[e]},set:Kt}:{enumerable:!1,configurable:!0,set:function(t){te(this,e,t)},get:function(){}}};var ne=function(t){return t()};function re(t){return t.scheduler?t.scheduler:t.delay?function(e){return setTimeout(e,t.delay)}:ne}function ie(t,e,n){void 0===n&&(n=u);var r,i,o,a=n.name||"Reaction@"+c(),s=Qt(a,n.onError?(r=n.onError,i=e,function(){try{return i.apply(this,arguments)}catch(t){r.call(this,t)}}):e),l=!n.scheduler&&!n.delay,f=re(n),h=!0,d=!1,p=n.compareStructural?O.structural:n.equals||O.default,m=new Bt(a,function(){h||l?v():d||(d=!0,f(v))},n.onError);function v(){if(d=!1,!m.isDisposed){var e=!1;m.track(function(){var n=t(m);e=h||!p(o,n),o=n}),h&&n.fireImmediately&&s(o,m),h||!0!==e||s(o,m),h&&(h=!1)}}return m.schedule(),m.getDisposer()}function oe(t,e,n){return se("onBecomeObserved",t,e,n)}function ae(t,e,n){return se("onBecomeUnobserved",t,e,n)}function se(t,e,n,r){var i="string"==typeof n?wn(e,n):wn(e),o="string"==typeof n?r:n,a=t+"Listeners";return i[a]?i[a].add(o):i[a]=new Set([o]),"function"!=typeof i[t]?f(!1):function(){var t=i[a];t&&(t.delete(o),0===t.size&&delete i[a])}}function le(t){var e=t.enforceActions,n=t.computedRequiresReaction,r=t.computedConfigurable,i=t.disableErrorBoundaries,o=t.reactionScheduler;if(!0===t.isolateGlobalState&&((St.pendingReactions.length||St.inBatch||St.isRunningReactions)&&f("isolateGlobalState should be called before MobX is running any reactions"),Ct=!0,kt&&(0==--Lt().__mobxInstanceCount&&(Lt().__mobxGlobals=void 0),St=new Pt)),void 0!==e){var a=void 0;switch(e){case!0:case"observed":a=!0;break;case!1:case"never":a=!1;break;case"strict":case"always":a="strict";break;default:f("Invalid value for 'enforceActions': '"+e+"', expected 'never', 'always' or 'observed'")}St.enforceActions=a,St.allowStateChanges=!0!==a&&"strict"!==a}void 0!==n&&(St.computedRequiresReaction=!!n),void 0!==r&&(St.computedConfigurable=!!r),void 0!==i&&(!0===i&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),St.disableErrorBoundaries=!!i),o&&qt(o)}function ue(t,e){var n="function"==typeof t?t.prototype:t,r=function(t){var r=e[t];Array.isArray(r)||(r=[r]);var i=Object.getOwnPropertyDescriptor(n,t),o=r.reduce(function(e,r){return r(n,t,e)},i);o&&Object.defineProperty(n,t,o)};for(var i in e)r(i);return t}function ce(t,e,n,r){var i=fe(r=F(r));return R(t),mn(t,r.name,i.enhancer),e&&he(t,e,n,i),t}function fe(t){return t.defaultDecorator||(!1===t.deep?H:W)}function he(t,e,n,r){var i,a;Rt();try{var s=x(e);try{for(var l=o(s),u=l.next();!u.done;u=l.next()){var c=u.value,f=Object.getOwnPropertyDescriptor(e,c);0;var h=(n&&c in n?n[c]:f.get?Q:r)(t,c,f,!0);h&&Object.defineProperty(t,c,h)}}catch(t){i={error:t}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}}finally{It()}}function de(t,e){return pe(wn(t,e))}function pe(t){var e,n,r={name:t.name};return t.observing&&t.observing.length>0&&(r.dependencies=(e=t.observing,n=[],e.forEach(function(t){-1===n.indexOf(t)&&n.push(t)}),n).map(pe)),r}function me(t,e){return ve(wn(t,e))}function ve(t){var e={name:t.name};return function(t){return t.observers&&t.observers.size>0}(t)&&(e.observers=Array.from(function(t){return t.observers}(t)).map(ve)),e}var ye=0;function ge(t){1!==arguments.length&&f("Flow expects one 1 argument and cannot be used as decorator");var e=t.name||"<unnamed flow>";return function(){var n,r=this,i=arguments,o=++ye,a=Qt(e+" - runid: "+o+" - init",t).apply(r,i),s=void 0,l=new Promise(function(t,r){var i=0;function l(t){var n;s=void 0;try{n=Qt(e+" - runid: "+o+" - yield "+i++,a.next).call(a,t)}catch(t){return r(t)}c(n)}function u(t){var n;s=void 0;try{n=Qt(e+" - runid: "+o+" - yield "+i++,a.throw).call(a,t)}catch(t){return r(t)}c(n)}function c(e){if(!e||"function"!=typeof e.then)return e.done?t(e.value):(s=Promise.resolve(e.value)).then(l,u);e.then(c,r)}n=r,l(void 0)});return l.cancel=Qt(e+" - runid: "+o+" - cancel",function(){try{s&&_e(s);var t=a.return(),e=Promise.resolve(t.value);e.then(p,p),_e(e),n(new Error("FLOW_CANCELLED"))}catch(t){n(t)}}),l}}function _e(t){"function"==typeof t.cancel&&t.cancel()}function be(t,e,n){var r;if(cn(t)||an(t)||ct(t))r=xn(t);else{if(!bn(t))return f(!1);if("string"!=typeof e)return f(!1);r=xn(t,e)}return void 0!==r.dehancer?f(!1):(r.dehancer="function"==typeof e?e:n,function(){r.dehancer=void 0})}function we(t,e,n){return"function"==typeof n?function(t,e,n){return xn(t,e).intercept(n)}(t,e,n):function(t,e){return xn(t).intercept(e)}(t,e)}function xe(t,e){if(null==t)return!1;if(void 0!==e){if(!1===bn(t))return!1;if(!t[P].values.has(e))return!1;var n=wn(t,e);return ht(n)}return ht(t)}function Te(t){return arguments.length>1?f(!1):xe(t)}function Ee(t,e){return"string"!=typeof e?f(!1):xe(t,e)}function Pe(t,e){return null!=t&&(void 0!==e?!!bn(t)&&t[P].values.has(e):bn(t)||!!t[P]||C(t)||Ht(t)||ht(t))}function ke(t){return 1!==arguments.length&&f(!1),Pe(t)}function Ce(t,e){return"string"!=typeof e?f(!1):Pe(t,e)}function Se(t){return bn(t)?t[P].getKeys():cn(t)?Array.from(t.keys()):dn(t)?Array.from(t.keys()):an(t)?t.map(function(t,e){return e}):f(!1)}function Oe(t){return bn(t)?Se(t).map(function(e){return t[e]}):cn(t)?Se(t).map(function(e){return t.get(e)}):dn(t)?Array.from(t.values()):an(t)?t.slice():f(!1)}function Ae(t){return bn(t)?Se(t).map(function(e){return[e,t[e]]}):cn(t)?Se(t).map(function(e){return[e,t.get(e)]}):dn(t)?Array.from(t.entries()):an(t)?t.map(function(t,e){return[e,t]}):f(!1)}function Le(t,e,n){if(2!==arguments.length||dn(t))if(bn(t)){var r=t[P];r.values.get(e)?r.write(e,n):r.addObservableProp(e,n,r.defaultEnhancer)}else if(cn(t))t.set(e,n);else if(dn(t))t.add(e);else{if(!an(t))return f(!1);"number"!=typeof e&&(e=parseInt(e,10)),h(e>=0,"Not a valid index: '"+e+"'"),Rt(),e>=t.length&&(t.length=e+1),t[e]=n,It()}else{Rt();var i=e;try{for(var o in i)Le(t,o,i[o])}finally{It()}}}function ze(t,e){if(bn(t))t[P].remove(e);else if(cn(t))t.delete(e);else if(dn(t))t.delete(e);else{if(!an(t))return f(!1);"number"!=typeof e&&(e=parseInt(e,10)),h(e>=0,"Not a valid index: '"+e+"'"),t.splice(e,1)}}function Me(t,e){return bn(t)?xn(t).has(e):cn(t)?t.has(e):dn(t)?t.has(e):an(t)?e>=0&&e<t.length:f(!1)}function je(t,e){if(Me(t,e))return bn(t)?t[e]:cn(t)?t.get(e):an(t)?t[e]:f(!1)}function Re(t,e,n,r){return"function"==typeof n?function(t,e,n,r){return xn(t,e).observe(n,r)}(t,e,n,r):function(t,e,n){return xn(t).observe(e,n)}(t,e,n)}var Ie={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function Ne(t,e,n,r){return r.detectCycles&&t.set(e,n),n}function De(t,e){var n;return"boolean"==typeof e&&(e={detectCycles:e}),e||(e=Ie),e.detectCycles=void 0===e.detectCycles?!0===e.recurseEverything:!0===e.detectCycles,e.detectCycles&&(n=new Map),function t(e,n,r){if(!n.recurseEverything&&!ke(e))return e;if("object"!=typeof e)return e;if(null===e)return null;if(e instanceof Date)return e;if(ct(e))return t(e.get(),n,r);if(ke(e)&&Se(e),!0===n.detectCycles&&null!==e&&r.has(e))return r.get(e);if(an(e)||Array.isArray(e)){var i=Ne(r,e,[],n),o=e.map(function(e){return t(e,n,r)});i.length=o.length;for(var a=0,s=o.length;a<s;a++)i[a]=o[a];return i}if(dn(e)||Object.getPrototypeOf(e)===Set.prototype){if(!1===n.exportMapsAsObjects){var l=Ne(r,e,new Set,n);return e.forEach(function(e){l.add(t(e,n,r))}),l}var u=Ne(r,e,[],n);return e.forEach(function(e){u.push(t(e,n,r))}),u}if(cn(e)||Object.getPrototypeOf(e)===Map.prototype){if(!1===n.exportMapsAsObjects){var c=Ne(r,e,new Map,n);return e.forEach(function(e,i){c.set(i,t(e,n,r))}),c}var f=Ne(r,e,{},n);return e.forEach(function(e,i){f[i]=t(e,n,r)}),f}var h=Ne(r,e,{},n);return x(e).forEach(function(i){h[i]=t(e[i],n,r)}),h}(t,e,n)}function Be(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=!1;"boolean"==typeof t[t.length-1]&&(n=t.pop());var r=function(t){switch(t.length){case 0:return St.trackingDerivation;case 1:return wn(t[0]);case 2:return wn(t[0],t[1])}}(t);if(!r)return f(!1);r.isTracing===lt.NONE&&console.log("[mobx.trace] '"+r.name+"' tracing enabled"),r.isTracing=n?lt.BREAK:lt.LOG}function Ue(t,e){void 0===e&&(e=void 0),Rt();try{return t.apply(e)}finally{It()}}function Ze(t,e,n){return 1===arguments.length||e&&"object"==typeof e?function(t,e){0;var n,r=new Promise(function(r,o){var a=Fe(t,r,i({},e,{onError:o}));n=function(){a(),o("WHEN_CANCELLED")}});return r.cancel=n,r}(t,e):Fe(t,e,n||{})}function Fe(t,e,n){var r;"number"==typeof n.timeout&&(r=setTimeout(function(){if(!o[P].isDisposed){o();var t=new Error("WHEN_TIMEOUT");if(!n.onError)throw t;n.onError(t)}},n.timeout)),n.name=n.name||"When@"+c();var i=tt(n.name+"-effect",e),o=ee(function(e){t()&&(e.dispose(),r&&clearTimeout(r),i())},n);return o}function We(t){return t[P]}function Ve(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t}var He={has:function(t,e){if(e===P||"constructor"===e||e===A)return!0;var n=We(t);return Ve(e)?n.has(e):e in t},get:function(t,e){if(e===P||"constructor"===e||e===A)return t[e];var n=We(t),r=n.values.get(e);if(r instanceof k){var i=r.get();return void 0===i&&n.has(e),i}return Ve(e)&&n.has(e),t[e]},set:function(t,e,n){return!!Ve(e)&&(Le(t,e,n),!0)},deleteProperty:function(t,e){return!!Ve(e)&&(We(t).remove(e),!0)},ownKeys:function(t){return We(t).keysAtom.reportObserved(),Reflect.ownKeys(t)},preventExtensions:function(t){return f("Dynamic observable objects cannot be frozen"),!1}};function qe(t){var e=new Proxy(t,He);return t[P].proxy=e,e}function Ge(t){return void 0!==t.interceptors&&t.interceptors.length>0}function Ke(t,e){var n=t.interceptors||(t.interceptors=[]);return n.push(e),d(function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})}function Ye(t,e){var n=wt();try{var r=t.interceptors;if(r)for(var i=0,o=r.length;i<o&&(h(!(e=r[i](e))||e.type,"Intercept handlers should return nothing or a change object"),e);i++);return e}finally{xt(n)}}function Je(t){return void 0!==t.changeListeners&&t.changeListeners.length>0}function Qe(t,e){var n=t.changeListeners||(t.changeListeners=[]);return n.push(e),d(function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})}function Xe(t,e){var n=wt(),r=t.changeListeners;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](e);xt(n)}}var $e={get:function(t,e){return e===P?t[P]:"length"===e?t[P].getArrayLength():"number"==typeof e?nn.get.call(t,e):"string"!=typeof e||isNaN(e)?nn.hasOwnProperty(e)?nn[e]:t[e]:nn.get.call(t,parseInt(e))},set:function(t,e,n){return"length"===e&&t[P].setArrayLength(n),"number"==typeof e&&nn.set.call(t,e,n),"symbol"==typeof e||isNaN(e)?t[e]=n:nn.set.call(t,parseInt(e),n),!0},preventExtensions:function(t){return f("Observable arrays cannot be frozen"),!1}};function tn(t,e,n,r){void 0===n&&(n="ObservableArray@"+c()),void 0===r&&(r=!1);var i,o,a,s=new en(n,e,r);i=s.values,o=P,a=s,Object.defineProperty(i,o,{enumerable:!1,writable:!1,configurable:!0,value:a});var l=new Proxy(s.values,$e);if(s.proxy=l,t&&t.length){var u=it(!0);s.spliceWithArray(0,0,t),ot(u)}return l}var en=function(){function t(t,e,n){this.owned=n,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new k(t||"ObservableArray@"+c()),this.enhancer=function(n,r){return e(n,r,t+"[..]")}}return t.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},t.prototype.dehanceValues=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},t.prototype.intercept=function(t){return Ke(this,t)},t.prototype.observe=function(t,e){return void 0===e&&(e=!1),e&&t({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Qe(this,t)},t.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},t.prototype.setArrayLength=function(t){if("number"!=typeof t||t<0)throw new Error("[mobx.array] Out of range: "+t);var e=this.values.length;if(t!==e)if(t>e){for(var n=new Array(t-e),r=0;r<t-e;r++)n[r]=void 0;this.spliceWithArray(e,0,n)}else this.spliceWithArray(t,e-t)},t.prototype.updateArrayLength=function(t,e){if(t!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed.");this.lastKnownLength+=e},t.prototype.spliceWithArray=function(t,e,n){var r=this;yt(this.atom);var i=this.values.length;if(void 0===t?t=0:t>i?t=i:t<0&&(t=Math.max(0,i+t)),e=1===arguments.length?i-t:null==e?0:Math.max(0,Math.min(e,i-t)),void 0===n&&(n=l),Ge(this)){var o=Ye(this,{object:this.proxy,type:"splice",index:t,removedCount:e,added:n});if(!o)return l;e=o.removedCount,n=o.added}n=0===n.length?n:n.map(function(t){return r.enhancer(t,void 0)});var a=this.spliceItemsIntoValues(t,e,n);return 0===e&&0===n.length||this.notifyArraySplice(t,n,a),this.dehanceValues(a)},t.prototype.spliceItemsIntoValues=function(t,e,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t}([t,e],n));var i=this.values.slice(t,t+e);return this.values=this.values.slice(0,t).concat(n,this.values.slice(t+e)),i},t.prototype.notifyArrayChildUpdate=function(t,e,n){var r=!this.owned&&!1,i=Je(this),o=i||r?{object:this.proxy,type:"update",index:t,newValue:e,oldValue:n}:null;this.atom.reportChanged(),i&&Xe(this,o)},t.prototype.notifyArraySplice=function(t,e,n){var r=!this.owned&&!1,i=Je(this),o=i||r?{object:this.proxy,type:"splice",index:t,removed:n,added:e,removedCount:n.length,addedCount:e.length}:null;this.atom.reportChanged(),i&&Xe(this,o)},t}(),nn={intercept:function(t){return this[P].intercept(t)},observe:function(t,e){return void 0===e&&(e=!1),this[P].observe(t,e)},clear:function(){return this.splice(0)},replace:function(t){var e=this[P];return e.spliceWithArray(0,e.values.length,t)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=this[P];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray(t);case 2:return i.spliceWithArray(t,e)}return i.spliceWithArray(t,e,n)},spliceWithArray:function(t,e,n){return this[P].spliceWithArray(t,e,n)},push:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this[P];return n.spliceWithArray(n.values.length,0,t),n.values.length},pop:function(){return this.splice(Math.max(this[P].values.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this[P];return n.spliceWithArray(0,0,t),n.values.length},reverse:function(){var t=this.slice();return t.reverse.apply(t,arguments)},sort:function(t){var e=this.slice();return e.sort.apply(e,arguments)},remove:function(t){var e=this[P],n=e.dehanceValues(e.values).indexOf(t);return n>-1&&(this.splice(n,1),!0)},get:function(t){var e=this[P];if(e){if(t<e.values.length)return e.atom.reportObserved(),e.dehanceValue(e.values[t]);console.warn("[mobx.array] Attempt to read an array index ("+t+") that is out of bounds ("+e.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},set:function(t,e){var n=this[P],r=n.values;if(t<r.length){yt(n.atom);var i=r[t];if(Ge(n)){var o=Ye(n,{type:"update",object:n.proxy,index:t,newValue:e});if(!o)return;e=o.newValue}(e=n.enhancer(e,i))!==i&&(r[t]=e,n.notifyArrayChildUpdate(t,e,i))}else{if(t!==r.length)throw new Error("[mobx.array] Index out of bounds, "+t+" is larger than "+r.length);n.spliceWithArray(t,0,[e])}}};["concat","every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some","toString","toLocaleString"].forEach(function(t){nn[t]=function(){var e=this[P];e.atom.reportObserved();var n=e.dehanceValues(e.values);return n[t].apply(n,arguments)}});var rn,on=g("ObservableArrayAdministration",en);function an(t){return m(t)&&on(t[P])}var sn,ln={},un=function(){function t(t,e,n){if(void 0===e&&(e=D),void 0===n&&(n="ObservableMap@"+c()),this.enhancer=e,this.name=n,this[rn]=ln,this._keysAtom=S(this.name+".keys()"),this[Symbol.toStringTag]="Map","function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(t)}return t.prototype._has=function(t){return this._data.has(t)},t.prototype.has=function(t){var e=this;if(!St.trackingDerivation)return this._has(t);var n=this._hasMap.get(t);if(!n){var r=n=new ut(this._has(t),B,this.name+"."+T(t)+"?",!1);this._hasMap.set(t,r),ae(r,function(){return e._hasMap.delete(t)})}return n.get()},t.prototype.set=function(t,e){var n=this._has(t);if(Ge(this)){var r=Ye(this,{type:n?"update":"add",object:this,newValue:e,name:t});if(!r)return this;e=r.newValue}return n?this._updateValue(t,e):this._addValue(t,e),this},t.prototype.delete=function(t){var e=this;if(Ge(this)&&!(r=Ye(this,{type:"delete",object:this,name:t})))return!1;if(this._has(t)){var n=Je(this),r=n?{type:"delete",object:this,oldValue:this._data.get(t).value,name:t}:null;return Ue(function(){e._keysAtom.reportChanged(),e._updateHasMapEntry(t,!1),e._data.get(t).setNewValue(void 0),e._data.delete(t)}),n&&Xe(this,r),!0}return!1},t.prototype._updateHasMapEntry=function(t,e){var n=this._hasMap.get(t);n&&n.setNewValue(e)},t.prototype._updateValue=function(t,e){var n=this._data.get(t);if((e=n.prepareNewValue(e))!==St.UNCHANGED){var r=Je(this),i=r?{type:"update",object:this,oldValue:n.value,name:t,newValue:e}:null;0,n.setNewValue(e),r&&Xe(this,i)}},t.prototype._addValue=function(t,e){var n=this;yt(this._keysAtom),Ue(function(){var r=new ut(e,n.enhancer,n.name+"."+T(t),!1);n._data.set(t,r),e=r.value,n._updateHasMapEntry(t,!0),n._keysAtom.reportChanged()});var r=Je(this),i=r?{type:"add",object:this,name:t,newValue:e}:null;r&&Xe(this,i)},t.prototype.get=function(t){return this.has(t)?this.dehanceValue(this._data.get(t).get()):this.dehanceValue(void 0)},t.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},t.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},t.prototype.values=function(){var t=this,e=0,n=Array.from(this.keys());return On({next:function(){return e<n.length?{value:t.get(n[e++]),done:!1}:{done:!0}}})},t.prototype.entries=function(){var t=this,e=0,n=Array.from(this.keys());return On({next:function(){if(e<n.length){var r=n[e++];return{value:[r,t.get(r)],done:!1}}return{done:!0}}})},t.prototype[(rn=P,Symbol.iterator)]=function(){return this.entries()},t.prototype.forEach=function(t,e){var n,r;try{for(var i=o(this),s=i.next();!s.done;s=i.next()){var l=a(s.value,2),u=l[0],c=l[1];t.call(e,c,u,this)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype.merge=function(t){var e=this;return cn(t)&&(t=t.toJS()),Ue(function(){v(t)?x(t).forEach(function(n){return e.set(n,t[n])}):Array.isArray(t)?t.forEach(function(t){var n=a(t,2),r=n[0],i=n[1];return e.set(r,i)}):b(t)?(t.constructor!==Map&&f("Cannot initialize from classes that inherit from Map: "+t.constructor.name),t.forEach(function(t,n){return e.set(n,t)})):null!=t&&f("Cannot initialize map from "+t)}),this},t.prototype.clear=function(){var t=this;Ue(function(){bt(function(){var e,n;try{for(var r=o(t.keys()),i=r.next();!i.done;i=r.next()){var a=i.value;t.delete(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}})})},t.prototype.replace=function(t){var e=this;return Ue(function(){var n,r=v(n=t)?Object.keys(n):Array.isArray(n)?n.map(function(t){return a(t,1)[0]}):b(n)||cn(n)?Array.from(n.keys()):f("Cannot get keys from '"+n+"'");Array.from(e.keys()).filter(function(t){return-1===r.indexOf(t)}).forEach(function(t){return e.delete(t)}),e.merge(t)}),this},Object.defineProperty(t.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),t.prototype.toPOJO=function(){var t,e,n={};try{for(var r=o(this),i=r.next();!i.done;i=r.next()){var s=a(i.value,2),l=s[0],u=s[1];n["symbol"==typeof l?l:T(l)]=u}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return n},t.prototype.toJS=function(){return new Map(this)},t.prototype.toJSON=function(){return this.toPOJO()},t.prototype.toString=function(){var t=this;return this.name+"[{ "+Array.from(this.keys()).map(function(e){return T(e)+": "+t.get(e)}).join(", ")+" }]"},t.prototype.observe=function(t,e){return Qe(this,t)},t.prototype.intercept=function(t){return Ke(this,t)},t}(),cn=g("ObservableMap",un),fn={},hn=function(){function t(t,e,n){if(void 0===e&&(e=D),void 0===n&&(n="ObservableSet@"+c()),this.name=n,this[sn]=fn,this._data=new Set,this._atom=S(this.name),this[Symbol.toStringTag]="Set","function"!=typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(t,r){return e(t,r,n)},t&&this.replace(t)}return t.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},t.prototype.clear=function(){var t=this;Ue(function(){bt(function(){var e,n;try{for(var r=o(t._data.values()),i=r.next();!i.done;i=r.next()){var a=i.value;t.delete(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}})})},t.prototype.forEach=function(t,e){var n,r;try{for(var i=o(this),a=i.next();!a.done;a=i.next()){var s=a.value;t.call(e,s,s,this)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},Object.defineProperty(t.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),t.prototype.add=function(t){var e=this;if((yt(this._atom),Ge(this))&&!(r=Ye(this,{type:"add",object:this,newValue:t})))return this;if(!this.has(t)){Ue(function(){e._data.add(e.enhancer(t,void 0)),e._atom.reportChanged()});var n=Je(this),r=n?{type:"add",object:this,newValue:t}:null;0,n&&Xe(this,r)}return this},t.prototype.delete=function(t){var e=this;if(Ge(this)&&!(r=Ye(this,{type:"delete",object:this,oldValue:t})))return!1;if(this.has(t)){var n=Je(this),r=n?{type:"delete",object:this,oldValue:t}:null;return Ue(function(){e._atom.reportChanged(),e._data.delete(t)}),n&&Xe(this,r),!0}return!1},t.prototype.has=function(t){return this._atom.reportObserved(),this._data.has(this.dehanceValue(t))},t.prototype.entries=function(){var t=0,e=Array.from(this.keys()),n=Array.from(this.values());return On({next:function(){var r=t;return t+=1,r<n.length?{value:[e[r],n[r]],done:!1}:{done:!0}}})},t.prototype.keys=function(){return this.values()},t.prototype.values=function(){this._atom.reportObserved();var t=this,e=0,n=Array.from(this._data.values());return On({next:function(){return e<n.length?{value:t.dehanceValue(n[e++]),done:!1}:{done:!0}}})},t.prototype.replace=function(t){var e=this;return dn(t)&&(t=t.toJS()),Ue(function(){Array.isArray(t)?(e.clear(),t.forEach(function(t){return e.add(t)})):w(t)?(e.clear(),t.forEach(function(t){return e.add(t)})):null!=t&&f("Cannot initialize set from "+t)}),this},t.prototype.observe=function(t,e){return Qe(this,t)},t.prototype.intercept=function(t){return Ke(this,t)},t.prototype.toJS=function(){return new Set(this)},t.prototype.toString=function(){return this.name+"[ "+Array.from(this).join(", ")+" ]"},t.prototype[(sn=P,Symbol.iterator)]=function(){return this.values()},t}(),dn=g("ObservableSet",hn),pn=function(){function t(t,e,n,r){void 0===e&&(e=new Map),this.target=t,this.values=e,this.name=n,this.defaultEnhancer=r,this.keysAtom=new k(n+".keys")}return t.prototype.read=function(t){return this.values.get(t).get()},t.prototype.write=function(t,e){var n=this.target,r=this.values.get(t);if(r instanceof ft)r.set(e);else{if(Ge(this)){if(!(o=Ye(this,{type:"update",object:this.proxy||n,name:t,newValue:e})))return;e=o.newValue}if((e=r.prepareNewValue(e))!==St.UNCHANGED){var i=Je(this),o=i?{type:"update",object:this.proxy||n,oldValue:r.value,name:t,newValue:e}:null;0,r.setNewValue(e),i&&Xe(this,o)}}},t.prototype.has=function(t){var e=this.pendingKeys||(this.pendingKeys=new Map),n=e.get(t);if(n)return n.get();var r=!!this.values.get(t);return n=new ut(r,B,this.name+"."+T(t)+"?",!1),e.set(t,n),n.get()},t.prototype.addObservableProp=function(t,e,n){void 0===n&&(n=this.defaultEnhancer);var r=this.target;if(Ge(this)){var i=Ye(this,{object:this.proxy||r,name:t,type:"add",newValue:e});if(!i)return;e=i.newValue}var o=new ut(e,n,this.name+"."+T(t),!1);this.values.set(t,o),e=o.value,Object.defineProperty(r,t,function(t){return vn[t]||(vn[t]={configurable:!0,enumerable:!0,get:function(){return this[P].read(t)},set:function(e){this[P].write(t,e)}})}(t)),this.notifyPropertyAddition(t,e)},t.prototype.addComputedProp=function(t,e,n){var r,i,o,a=this.target;n.name=n.name||this.name+"."+T(e),this.values.set(e,new ft(n)),(t===a||(r=t,i=e,!(o=Object.getOwnPropertyDescriptor(r,i))||!1!==o.configurable&&!1!==o.writable))&&Object.defineProperty(t,e,function(t){return yn[t]||(yn[t]={configurable:St.computedConfigurable,enumerable:!1,get:function(){return gn(this).read(t)},set:function(e){gn(this).write(t,e)}})}(e))},t.prototype.remove=function(t){if(this.values.has(t)){var e=this.target;if(Ge(this))if(!(a=Ye(this,{object:this.proxy||e,name:t,type:"remove"})))return;try{Rt();var n=Je(this),r=this.values.get(t),i=r&&r.get();if(r&&r.set(void 0),this.keysAtom.reportChanged(),this.values.delete(t),this.pendingKeys){var o=this.pendingKeys.get(t);o&&o.set(!1)}delete this.target[t];var a=n?{type:"remove",object:this.proxy||e,oldValue:i,name:t}:null;0,n&&Xe(this,a)}finally{It()}}},t.prototype.illegalAccess=function(t,e){console.warn("Property '"+e+"' of '"+t+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},t.prototype.observe=function(t,e){return Qe(this,t)},t.prototype.intercept=function(t){return Ke(this,t)},t.prototype.notifyPropertyAddition=function(t,e){var n=Je(this),r=n?{type:"add",object:this.proxy||this.target,name:t,newValue:e}:null;if(n&&Xe(this,r),this.pendingKeys){var i=this.pendingKeys.get(t);i&&i.set(!0)}this.keysAtom.reportChanged()},t.prototype.getKeys=function(){var t,e;this.keysAtom.reportObserved();var n=[];try{for(var r=o(this.values),i=r.next();!i.done;i=r.next()){var s=a(i.value,2),l=s[0];s[1]instanceof ut&&n.push(l)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return n},t}();function mn(t,e,n){if(void 0===e&&(e=""),void 0===n&&(n=D),Object.prototype.hasOwnProperty.call(t,P))return t[P];v(t)||(e=(t.constructor.name||"ObservableObject")+"@"+c()),e||(e="ObservableObject@"+c());var r=new pn(t,new Map,T(e),n);return y(t,P,r),r}var vn=Object.create(null),yn=Object.create(null);function gn(t){var e=t[P];return e||(R(t),t[P])}var _n=g("ObservableObjectAdministration",pn);function bn(t){return!!m(t)&&(R(t),_n(t[P]))}function wn(t,e){if("object"==typeof t&&null!==t){if(an(t))return void 0!==e&&f(!1),t[P].atom;if(dn(t))return t[P];if(cn(t)){var n=t;return void 0===e?n._keysAtom:((r=n._data.get(e)||n._hasMap.get(e))||f(!1),r)}var r;if(R(t),e&&!t[P]&&t[e],bn(t))return e?((r=t[P].values.get(e))||f(!1),r):f(!1);if(C(t)||ht(t)||Ht(t))return t}else if("function"==typeof t&&Ht(t[P]))return t[P];return f(!1)}function xn(t,e){return t||f("Expecting some object"),void 0!==e?xn(wn(t,e)):C(t)||ht(t)||Ht(t)?t:cn(t)||dn(t)?t:(R(t),t[P]?t[P]:void f(!1))}function Tn(t,e){return(void 0!==e?wn(t,e):bn(t)||cn(t)||dn(t)?xn(t):wn(t)).name}var En=Object.prototype.toString;function Pn(t,e){return kn(t,e)}function kn(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=typeof t;return("function"===i||"object"===i||"object"==typeof e)&&function(t,e,n,r){t=Cn(t),e=Cn(e);var i=En.call(t);if(i!==En.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(t)===Symbol.valueOf.call(e)}var o="[object Array]"===i;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!("function"==typeof a&&a instanceof a&&"function"==typeof s&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}r=r||[];var l=(n=n||[]).length;for(;l--;)if(n[l]===t)return r[l]===e;if(n.push(t),r.push(e),o){if((l=t.length)!==e.length)return!1;for(;l--;)if(!kn(t[l],e[l],n,r))return!1}else{var u=Object.keys(t),c=void 0;if(l=u.length,Object.keys(e).length!==l)return!1;for(;l--;)if(c=u[l],!Sn(e,c)||!kn(t[c],e[c],n,r))return!1}return n.pop(),r.pop(),!0}(t,e,n,r)}function Cn(t){return an(t)?t.slice():b(t)||cn(t)?Array.from(t.entries()):w(t)||dn(t)?Array.from(t.entries()):t}function Sn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function On(t){return t[Symbol.iterator]=An,t}function An(){return this}if("undefined"==typeof Proxy||"undefined"==typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Gt,extras:{getDebugName:Tn},$mobx:P})}.call(this,n(9))},function(t,e,n){
|
|
/* @preserve
|
|
* Leaflet 1.5.1+build.2e3e0ff, a JS library for interactive maps. http://leafletjs.com
|
|
* (c) 2010-2018 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
*/
|
|
!function(t){"use strict";var e=Object.freeze;function n(t){var e,n,r,i;for(n=1,r=arguments.length;n<r;n++)for(e in i=arguments[n])t[e]=i[e];return t}Object.freeze=function(t){return t};var r=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function i(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var r=n.call(arguments,2);return function(){return t.apply(e,r.length?r.concat(n.call(arguments)):arguments)}}var o=0;function a(t){return t._leaflet_id=t._leaflet_id||++o,t._leaflet_id}function s(t,e,n){var r,i,o,a;return a=function(){r=!1,i&&(o.apply(n,i),i=!1)},o=function(){r?i=arguments:(t.apply(n,arguments),setTimeout(a,e),r=!0)}}function l(t,e,n){var r=e[1],i=e[0],o=r-i;return t===r&&n?t:((t-i)%o+o)%o+i}function u(){return!1}function c(t,e){return e=void 0===e?6:e,+(Math.round(t+"e+"+e)+"e-"+e)}function f(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function h(t){return f(t).split(/\s+/)}function d(t,e){for(var n in t.hasOwnProperty("options")||(t.options=t.options?r(t.options):{}),e)t.options[n]=e[n];return t.options}function p(t,e,n){var r=[];for(var i in t)r.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(t[i]));return(e&&-1!==e.indexOf("?")?"&":"?")+r.join("&")}var m=/\{ *([\w_-]+) *\}/g;function v(t,e){return t.replace(m,function(t,n){var r=e[n];if(void 0===r)throw new Error("No value provided for variable "+t);return"function"==typeof r&&(r=r(e)),r})}var y=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function g(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var _="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var w=0;function x(t){var e=+new Date,n=Math.max(0,16-(e-w));return w=e+n,window.setTimeout(t,n)}var T=window.requestAnimationFrame||b("RequestAnimationFrame")||x,E=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function P(t,e,n){if(!n||T!==x)return T.call(window,i(t,e));t.call(e)}function k(t){t&&E.call(window,t)}var C=(Object.freeze||Object)({freeze:e,extend:n,create:r,bind:i,lastId:o,stamp:a,throttle:s,wrapNum:l,falseFn:u,formatNum:c,trim:f,splitWords:h,setOptions:d,getParamString:p,template:v,isArray:y,indexOf:g,emptyImageUrl:_,requestFn:T,cancelFn:E,requestAnimFrame:P,cancelAnimFrame:k});function S(){}S.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=e.__super__=this.prototype,o=r(i);for(var a in o.constructor=e,e.prototype=o,this)this.hasOwnProperty(a)&&"prototype"!==a&&"__super__"!==a&&(e[a]=this[a]);return t.statics&&(n(e,t.statics),delete t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=y(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),n.apply(null,[o].concat(t.includes)),delete t.includes),o.options&&(t.options=n(r(o.options),t.options)),n(o,t),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},e},S.include=function(t){return n(this.prototype,t),this},S.mergeOptions=function(t){return n(this.prototype.options,t),this},S.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var O={on:function(t,e,n){if("object"==typeof t)for(var r in t)this._on(r,t[r],e);else{t=h(t);for(var i=0,o=t.length;i<o;i++)this._on(t[i],e,n)}return this},off:function(t,e,n){if(t)if("object"==typeof t)for(var r in t)this._off(r,t[r],e);else{t=h(t);for(var i=0,o=t.length;i<o;i++)this._off(t[i],e,n)}else delete this._events;return this},_on:function(t,e,n){this._events=this._events||{};var r=this._events[t];r||(r=[],this._events[t]=r),n===this&&(n=void 0);for(var i={fn:e,ctx:n},o=r,a=0,s=o.length;a<s;a++)if(o[a].fn===e&&o[a].ctx===n)return;o.push(i)},_off:function(t,e,n){var r,i,o;if(this._events&&(r=this._events[t]))if(e){if(n===this&&(n=void 0),r)for(i=0,o=r.length;i<o;i++){var a=r[i];if(a.ctx===n&&a.fn===e)return a.fn=u,this._firingCount&&(this._events[t]=r=r.slice()),void r.splice(i,1)}}else{for(i=0,o=r.length;i<o;i++)r[i].fn=u;delete this._events[t]}},fire:function(t,e,r){if(!this.listens(t,r))return this;var i=n({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,s=o.length;a<s;a++){var l=o[a];l.fn.call(l.ctx||this,i)}this._firingCount--}}return r&&this._propagateEvent(i),this},listens:function(t,e){var n=this._events&&this._events[t];if(n&&n.length)return!0;if(e)for(var r in this._eventParents)if(this._eventParents[r].listens(t,e))return!0;return!1},once:function(t,e,n){if("object"==typeof t){for(var r in t)this.once(r,t[r],e);return this}var o=i(function(){this.off(t,e,n).off(t,o,n)},this);return this.on(t,e,n).on(t,o,n)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[a(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[a(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,n({layer:t.target,propagatedFrom:t.target},t),!0)}};O.addEventListener=O.on,O.removeEventListener=O.clearAllEventListeners=O.off,O.addOneTimeEventListener=O.once,O.fireEvent=O.fire,O.hasEventListeners=O.listens;var A=S.extend(O);function z(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var M=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function j(t,e,n){return t instanceof z?t:y(t)?new z(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new z(t.x,t.y):new z(t,e,n)}function R(t,e){if(t)for(var n=e?[t,e]:t,r=0,i=n.length;r<i;r++)this.extend(n[r])}function I(t,e){return!t||t instanceof R?t:new R(t,e)}function N(t,e){if(t)for(var n=e?[t,e]:t,r=0,i=n.length;r<i;r++)this.extend(n[r])}function D(t,e){return t instanceof N?t:new N(t,e)}function B(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function U(t,e,n){return t instanceof B?t:y(t)&&"object"!=typeof t[0]?3===t.length?new B(t[0],t[1],t[2]):2===t.length?new B(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new B(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new B(t,e,n)}z.prototype={clone:function(){return new z(this.x,this.y)},add:function(t){return this.clone()._add(j(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(j(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new z(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new z(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=M(this.x),this.y=M(this.y),this},distanceTo:function(t){var e=(t=j(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=j(t)).x===this.x&&t.y===this.y},contains:function(t){return t=j(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},R.prototype={extend:function(t){return t=j(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new z(this.min.x,this.max.y)},getTopRight:function(){return new z(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t="number"==typeof t[0]||t instanceof z?j(t):I(t))instanceof R?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=I(t);var e=this.min,n=this.max,r=t.min,i=t.max,o=i.x>=e.x&&r.x<=n.x,a=i.y>=e.y&&r.y<=n.y;return o&&a},overlaps:function(t){t=I(t);var e=this.min,n=this.max,r=t.min,i=t.max,o=i.x>e.x&&r.x<n.x,a=i.y>e.y&&r.y<n.y;return o&&a},isValid:function(){return!(!this.min||!this.max)}},N.prototype={extend:function(t){var e,n,r=this._southWest,i=this._northEast;if(t instanceof B)e=t,n=t;else{if(!(t instanceof N))return t?this.extend(U(t)||D(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return r||i?(r.lat=Math.min(e.lat,r.lat),r.lng=Math.min(e.lng,r.lng),i.lat=Math.max(n.lat,i.lat),i.lng=Math.max(n.lng,i.lng)):(this._southWest=new B(e.lat,e.lng),this._northEast=new B(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,r=Math.abs(e.lat-n.lat)*t,i=Math.abs(e.lng-n.lng)*t;return new N(new B(e.lat-r,e.lng-i),new B(n.lat+r,n.lng+i))},getCenter:function(){return new B((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new B(this.getNorth(),this.getWest())},getSouthEast:function(){return new B(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof B||"lat"in t?U(t):D(t);var e,n,r=this._southWest,i=this._northEast;return t instanceof N?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=r.lat&&n.lat<=i.lat&&e.lng>=r.lng&&n.lng<=i.lng},intersects:function(t){t=D(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),i=t.getNorthEast(),o=i.lat>=e.lat&&r.lat<=n.lat,a=i.lng>=e.lng&&r.lng<=n.lng;return o&&a},overlaps:function(t){t=D(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),i=t.getNorthEast(),o=i.lat>e.lat&&r.lat<n.lat,a=i.lng>e.lng&&r.lng<n.lng;return o&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=D(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},B.prototype={equals:function(t,e){if(!t)return!1;t=U(t);var n=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return n<=(void 0===e?1e-9:e)},toString:function(t){return"LatLng("+c(this.lat,t)+", "+c(this.lng,t)+")"},distanceTo:function(t){return W.distance(this,U(t))},wrap:function(){return W.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return D([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new B(this.lat,this.lng,this.alt)}};var Z,F={latLngToPoint:function(t,e){var n=this.projection.project(t),r=this.scale(e);return this.transformation._transform(n,r)},pointToLatLng:function(t,e){var n=this.scale(e),r=this.transformation.untransform(t,n);return this.projection.unproject(r)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t),r=this.transformation.transform(e.min,n),i=this.transformation.transform(e.max,n);return new R(r,i)},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng,n=this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,r=t.alt;return new B(n,e,r)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),r=e.lat-n.lat,i=e.lng-n.lng;if(0===r&&0===i)return t;var o=t.getSouthWest(),a=t.getNorthEast(),s=new B(o.lat-r,o.lng-i),l=new B(a.lat-r,a.lng-i);return new N(s,l)}},W=n({},F,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,r=t.lat*n,i=e.lat*n,o=Math.sin((e.lat-t.lat)*n/2),a=Math.sin((e.lng-t.lng)*n/2),s=o*o+Math.cos(r)*Math.cos(i)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),V={R:6378137,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,t.lat),-n),i=Math.sin(r*e);return new z(this.R*t.lng*e,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(t){var e=180/Math.PI;return new B((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(Z=6378137*Math.PI,new R([-Z,-Z],[Z,Z]))};function H(t,e,n,r){if(y(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=r}function q(t,e,n,r){return new H(t,e,n,r)}H.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new z((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var G=n({},W,{code:"EPSG:3857",projection:V,transformation:function(){var t=.5/(Math.PI*V.R);return q(t,.5,-t,.5)}()}),K=n({},G,{code:"EPSG:900913"});function Y(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function J(t,e){var n,r,i,o,a,s,l="";for(n=0,i=t.length;n<i;n++){for(a=t[n],r=0,o=a.length;r<o;r++)s=a[r],l+=(r?"L":"M")+s.x+" "+s.y;l+=e?Ct?"z":"x":""}return l||"M0 0"}var Q=document.documentElement.style,X="ActiveXObject"in window,$=X&&!document.addEventListener,tt="msLaunchUri"in navigator&&!("documentMode"in document),et=Ot("webkit"),nt=Ot("android"),rt=Ot("android 2")||Ot("android 3"),it=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ot=nt&&Ot("Google")&&it<537&&!("AudioNode"in window),at=!!window.opera,st=Ot("chrome"),lt=Ot("gecko")&&!et&&!at&&!X,ut=!st&&Ot("safari"),ct=Ot("phantom"),ft="OTransition"in Q,ht=0===navigator.platform.indexOf("Win"),dt=X&&"transition"in Q,pt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!rt,mt="MozPerspective"in Q,vt=!window.L_DISABLE_3D&&(dt||pt||mt)&&!ft&&!ct,yt="undefined"!=typeof orientation||Ot("mobile"),gt=yt&&et,_t=yt&&pt,bt=!window.PointerEvent&&window.MSPointerEvent,wt=!(!window.PointerEvent&&!bt),xt=!window.L_NO_TOUCH&&(wt||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),Tt=yt&&at,Et=yt&<,Pt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,kt=!!document.createElement("canvas").getContext,Ct=!(!document.createElementNS||!Y("svg").createSVGRect),St=!Ct&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function Ot(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var At=(Object.freeze||Object)({ie:X,ielt9:$,edge:tt,webkit:et,android:nt,android23:rt,androidStock:ot,opera:at,chrome:st,gecko:lt,safari:ut,phantom:ct,opera12:ft,win:ht,ie3d:dt,webkit3d:pt,gecko3d:mt,any3d:vt,mobile:yt,mobileWebkit:gt,mobileWebkit3d:_t,msPointer:bt,pointer:wt,touch:xt,mobileOpera:Tt,mobileGecko:Et,retina:Pt,canvas:kt,svg:Ct,vml:St}),Lt=bt?"MSPointerDown":"pointerdown",zt=bt?"MSPointerMove":"pointermove",Mt=bt?"MSPointerUp":"pointerup",jt=bt?"MSPointerCancel":"pointercancel",Rt=["INPUT","SELECT","OPTION"],It={},Nt=!1,Dt=0;function Bt(t,e,n,r){return"touchstart"===e?function(t,e,n){var r=i(function(t){if("mouse"!==t.pointerType&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(Rt.indexOf(t.target.tagName)<0))return;Ie(t)}Wt(t,e)});t["_leaflet_touchstart"+n]=r,t.addEventListener(Lt,r,!1),Nt||(document.documentElement.addEventListener(Lt,Ut,!0),document.documentElement.addEventListener(zt,Zt,!0),document.documentElement.addEventListener(Mt,Ft,!0),document.documentElement.addEventListener(jt,Ft,!0),Nt=!0)}(t,n,r):"touchmove"===e?function(t,e,n){var r=function(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&Wt(t,e)};t["_leaflet_touchmove"+n]=r,t.addEventListener(zt,r,!1)}(t,n,r):"touchend"===e&&function(t,e,n){var r=function(t){Wt(t,e)};t["_leaflet_touchend"+n]=r,t.addEventListener(Mt,r,!1),t.addEventListener(jt,r,!1)}(t,n,r),this}function Ut(t){It[t.pointerId]=t,Dt++}function Zt(t){It[t.pointerId]&&(It[t.pointerId]=t)}function Ft(t){delete It[t.pointerId],Dt--}function Wt(t,e){for(var n in t.touches=[],It)t.touches.push(It[n]);t.changedTouches=[t],e(t)}var Vt=bt?"MSPointerDown":wt?"pointerdown":"touchstart",Ht=bt?"MSPointerUp":wt?"pointerup":"touchend",qt="_leaflet_";function Gt(t,e,n){var r,i,o=!1,a=250;function s(t){var e;if(wt){if(!tt||"mouse"===t.pointerType)return;e=Dt}else e=t.touches.length;if(!(e>1)){var n=Date.now(),s=n-(r||n);i=t.touches?t.touches[0]:t,o=s>0&&s<=a,r=n}}function l(t){if(o&&!i.cancelBubble){if(wt){if(!tt||"mouse"===t.pointerType)return;var n,a,s={};for(a in i)n=i[a],s[a]=n&&n.bind?n.bind(i):n;i=s}i.type="dblclick",i.button=0,e(i),r=null}}return t[qt+Vt+n]=s,t[qt+Ht+n]=l,t[qt+"dblclick"+n]=e,t.addEventListener(Vt,s,!1),t.addEventListener(Ht,l,!1),t.addEventListener("dblclick",e,!1),this}function Kt(t,e){var n=t[qt+Vt+e],r=t[qt+Ht+e],i=t[qt+"dblclick"+e];return t.removeEventListener(Vt,n,!1),t.removeEventListener(Ht,r,!1),tt||t.removeEventListener("dblclick",i,!1),this}var Yt,Jt,Qt,Xt,$t,te=ve(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ee=ve(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ne="webkitTransition"===ee||"OTransition"===ee?ee+"End":"transitionend";function re(t){return"string"==typeof t?document.getElementById(t):t}function ie(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(t,null);n=r?r[e]:null}return"auto"===n?null:n}function oe(t,e,n){var r=document.createElement(t);return r.className=e||"",n&&n.appendChild(r),r}function ae(t){var e=t.parentNode;e&&e.removeChild(t)}function se(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function le(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ue(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ce(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=pe(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function fe(t,e){if(void 0!==t.classList)for(var n=h(e),r=0,i=n.length;r<i;r++)t.classList.add(n[r]);else if(!ce(t,e)){var o=pe(t);de(t,(o?o+" ":"")+e)}}function he(t,e){void 0!==t.classList?t.classList.remove(e):de(t,f((" "+pe(t)+" ").replace(" "+e+" "," ")))}function de(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function pe(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function me(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(r)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+r+"(opacity="+e+")"}(t,e)}function ve(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function ye(t,e,n){var r=e||new z(0,0);t.style[te]=(dt?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}function ge(t,e){t._leaflet_pos=e,vt?ye(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function _e(t){return t._leaflet_pos||new z(0,0)}if("onselectstart"in document)Yt=function(){Se(window,"selectstart",Ie)},Jt=function(){Ae(window,"selectstart",Ie)};else{var be=ve(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Yt=function(){if(be){var t=document.documentElement.style;Qt=t[be],t[be]="none"}},Jt=function(){be&&(document.documentElement.style[be]=Qt,Qt=void 0)}}function we(){Se(window,"dragstart",Ie)}function xe(){Ae(window,"dragstart",Ie)}function Te(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Ee(),Xt=t,$t=t.style.outline,t.style.outline="none",Se(window,"keydown",Ee))}function Ee(){Xt&&(Xt.style.outline=$t,Xt=void 0,$t=void 0,Ae(window,"keydown",Ee))}function Pe(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function ke(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ce=(Object.freeze||Object)({TRANSFORM:te,TRANSITION:ee,TRANSITION_END:ne,get:re,getStyle:ie,create:oe,remove:ae,empty:se,toFront:le,toBack:ue,hasClass:ce,addClass:fe,removeClass:he,setClass:de,getClass:pe,setOpacity:me,testProp:ve,setTransform:ye,setPosition:ge,getPosition:_e,disableTextSelection:Yt,enableTextSelection:Jt,disableImageDrag:we,enableImageDrag:xe,preventOutline:Te,restoreOutline:Ee,getSizedParentNode:Pe,getScale:ke});function Se(t,e,n,r){if("object"==typeof e)for(var i in e)Le(t,i,e[i],n);else{e=h(e);for(var o=0,a=e.length;o<a;o++)Le(t,e[o],n,r)}return this}var Oe="_leaflet_events";function Ae(t,e,n,r){if("object"==typeof e)for(var i in e)ze(t,i,e[i],n);else if(e){e=h(e);for(var o=0,a=e.length;o<a;o++)ze(t,e[o],n,r)}else{for(var s in t[Oe])ze(t,s,t[Oe][s]);delete t[Oe]}return this}function Le(t,e,n,r){var i=e+a(n)+(r?"_"+a(r):"");if(t[Oe]&&t[Oe][i])return this;var o=function(e){return n.call(r||t,e||window.event)},s=o;wt&&0===e.indexOf("touch")?Bt(t,e,o,i):!xt||"dblclick"!==e||!Gt||wt&&st?"addEventListener"in t?"mousewheel"===e?t.addEventListener("onwheel"in t?"wheel":"mousewheel",o,!1):"mouseenter"===e||"mouseleave"===e?(o=function(e){e=e||window.event,He(t,e)&&s(e)},t.addEventListener("mouseenter"===e?"mouseover":"mouseout",o,!1)):("click"===e&&nt&&(o=function(t){!function(t,e){var n=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,r=Ze&&n-Ze;r&&r>100&&r<500||t.target._simulatedClick&&!t._simulated?Ne(t):(Ze=n,e(t))}(t,s)}),t.addEventListener(e,o,!1)):"attachEvent"in t&&t.attachEvent("on"+e,o):Gt(t,o,i),t[Oe]=t[Oe]||{},t[Oe][i]=o}function ze(t,e,n,r){var i=e+a(n)+(r?"_"+a(r):""),o=t[Oe]&&t[Oe][i];if(!o)return this;wt&&0===e.indexOf("touch")?function(t,e,n){var r=t["_leaflet_"+e+n];"touchstart"===e?t.removeEventListener(Lt,r,!1):"touchmove"===e?t.removeEventListener(zt,r,!1):"touchend"===e&&(t.removeEventListener(Mt,r,!1),t.removeEventListener(jt,r,!1))}(t,e,i):!xt||"dblclick"!==e||!Kt||wt&&st?"removeEventListener"in t?"mousewheel"===e?t.removeEventListener("onwheel"in t?"wheel":"mousewheel",o,!1):t.removeEventListener("mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,o,!1):"detachEvent"in t&&t.detachEvent("on"+e,o):Kt(t,i),t[Oe][i]=null}function Me(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Ve(t),this}function je(t){return Le(t,"mousewheel",Me),this}function Re(t){return Se(t,"mousedown touchstart dblclick",Me),Le(t,"click",We),this}function Ie(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ne(t){return Ie(t),Me(t),this}function De(t,e){if(!e)return new z(t.clientX,t.clientY);var n=ke(e),r=n.boundingClientRect;return new z((t.clientX-r.left)/n.x-e.clientLeft,(t.clientY-r.top)/n.y-e.clientTop)}var Be=ht&&st?2*window.devicePixelRatio:lt?window.devicePixelRatio:1;function Ue(t){return tt?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Be:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}var Ze,Fe={};function We(t){Fe[t.type]=!0}function Ve(t){var e=Fe[t.type];return Fe[t.type]=!1,e}function He(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var qe=(Object.freeze||Object)({on:Se,off:Ae,stopPropagation:Me,disableScrollPropagation:je,disableClickPropagation:Re,preventDefault:Ie,stop:Ne,getMousePosition:De,getWheelDelta:Ue,fakeStop:We,skipped:Ve,isExternalTarget:He,addListener:Se,removeListener:Ae}),Ge=A.extend({run:function(t,e,n,r){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=_e(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=P(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),ge(this._el,n),this.fire("step")},_complete:function(){k(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Ke=A.extend({options:{crs:G,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=d(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(U(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ee&&vt&&!Tt&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Se(this._proxy,ne,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,r){if(e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(U(t),e,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r){void 0!==r.animate&&(r.zoom=n({animate:r.animate},r.zoom),r.pan=n({animate:r.animate,duration:r.duration},r.pan));var i=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,r.zoom):this._tryAnimatedPan(t,r.pan);if(i)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(vt?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(vt?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var r=this.getZoomScale(e),i=this.getSize().divideBy(2),o=t instanceof z?t:this.latLngToContainerPoint(t),a=o.subtract(i).multiplyBy(1-1/r),s=this.containerPointToLatLng(i.add(a));return this.setView(s,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():D(t);var n=j(e.paddingTopLeft||e.padding||[0,0]),r=j(e.paddingBottomRight||e.padding||[0,0]),i=this.getBoundsZoom(t,!1,n.add(r));if((i="number"==typeof e.maxZoom?Math.min(e.maxZoom,i):i)===1/0)return{center:t.getCenter(),zoom:i};var o=r.subtract(n).divideBy(2),a=this.project(t.getSouthWest(),i),s=this.project(t.getNorthEast(),i),l=this.unproject(a.add(s).divideBy(2).add(o),i);return{center:l,zoom:i}},fitBounds:function(t,e){if(!(t=D(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(t=j(t).round(),e=e||{},!t.x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Ge,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){fe(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!vt)return this.setView(t,e,n);this._stop();var r=this.project(this.getCenter()),i=this.project(t),o=this.getSize(),a=this._zoom;t=U(t),e=void 0===e?a:e;var s=Math.max(o.x,o.y),l=s*this.getZoomScale(a,e),u=i.distanceTo(r)||1,c=1.42,f=c*c;function h(t){var e=t?-1:1,n=t?l:s,r=l*l-s*s+e*f*f*u*u,i=2*n*f*u,o=r/i,a=Math.sqrt(o*o+1)-o,c=a<1e-9?-18:Math.log(a);return c}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}var m=h(0);function v(t){return s*(p(m)*(d(e=m+c*t)/p(e))-d(m))/f;var e}var y=Date.now(),g=(h(1)-m)/c,_=n.duration?1e3*n.duration:1e3*g*.8;return this._moveStart(!0,n.noMoveStart),function n(){var o=(Date.now()-y)/_,l=function(t){return 1-Math.pow(1-t,1.5)}(o)*g;o<=1?(this._flyToFrame=P(n,this),this._move(this.unproject(r.add(i.subtract(r).multiplyBy(v(l)/u)),a),this.getScaleZoom(s/function(t){return s*(p(m)/p(m+c*t))}(l),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return(t=D(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,D(t));return n.equals(r)||this.panTo(r,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=j((e=e||{}).paddingTopLeft||e.padding||[0,0]),r=j(e.paddingBottomRight||e.padding||[0,0]),i=this.getCenter(),o=this.project(i),a=this.project(t),s=this.getPixelBounds(),l=s.getSize().divideBy(2),u=I([s.min.add(n),s.max.subtract(r)]);if(!u.contains(a)){this._enforcingBounds=!0;var c=o.subtract(a),f=j(a.x+c.x,a.y+c.y);(a.x<u.min.x||a.x>u.max.x)&&(f.x=o.x-c.x,c.x>0?f.x+=l.x-n.x:f.x-=l.x-r.x),(a.y<u.min.y||a.y>u.max.y)&&(f.y=o.y-c.y,c.y>0?f.y+=l.y-n.y:f.y-=l.y-r.y),this.panTo(this.unproject(f),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),o=e.divideBy(2).round(),a=r.divideBy(2).round(),s=o.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:r})):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=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,r,t):navigator.geolocation.getCurrentPosition(e,r,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 e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,n=t.coords.longitude,r=new B(e,n),i=r.toBounds(2*t.coords.accuracy),o=this._locateOptions;if(o.setView){var a=this.getBoundsZoom(i);this.setView(r,o.maxZoom?Math.min(a,o.maxZoom):a)}var s={latlng:r,bounds:i,timestamp:t.timestamp};for(var l in t.coords)"number"==typeof t.coords[l]&&(s[l]=t.coords[l]);this.fire("locationfound",s)},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),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(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ae(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(k(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ae(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),r=oe("div",n,e||this._mapPane);return t&&(this._panes[t]=r),r},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(),e=this.unproject(t.getBottomLeft()),n=this.unproject(t.getTopRight());return new N(e,n)},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,e,n){t=D(t),n=j(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(n),u=I(this.project(s,r),this.project(a,r)).getSize(),c=vt?this.options.zoomSnap:1,f=l.x/u.x,h=l.y/u.y,d=e?Math.max(f,h):Math.min(f,h);return r=this.getScaleZoom(d,r),c&&(r=Math.round(r/(c/100))*(c/100),r=e?Math.ceil(r/c)*c:Math.floor(r/c)*c),Math.max(i,Math.min(o,r))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new R(n,n.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,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var r=n.zoom(t*n.scale(e));return isNaN(r)?1/0:r},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(U(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(j(t),e)},layerPointToLatLng:function(t){var e=j(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(U(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(U(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(D(t))},distance:function(t,e){return this.options.crs.distance(U(t),U(e))},containerPointToLayerPoint:function(t){return j(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return j(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(j(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(U(t)))},mouseEventToContainerPoint:function(t){return De(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 e=this._container=re(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Se(e,"scroll",this._onScroll,this),this._containerId=a(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&vt,fe(t,"leaflet-container"+(xt?" leaflet-touch":"")+(Pt?" leaflet-retina":"")+($?" leaflet-oldie":"")+(ut?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ie(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(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),ge(this._mapPane,new z(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(fe(t.markerPane,"leaflet-zoom-hide"),fe(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){ge(this._mapPane,new z(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var r=this._zoom!==e;this._moveStart(r,!1)._move(t,e)._moveEnd(r),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n){void 0===e&&(e=this._zoom);var r=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(r||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return k(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ge(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[a(this._container)]=this;var e=t?Ae:Se;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),vt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){k(this._resizeRequest),this._resizeRequest=P(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,e){for(var n,r=[],i="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,s=!1;o;){if((n=this._targets[a(o)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(i&&!He(o,t))break;if(r.push(n),i)break}if(o===this._container)break;o=o.parentNode}return r.length||s||i||!He(o,t)||(r=[this]),r},_handleDOMEvent:function(t){if(this._loaded&&!Ve(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||Te(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,r){if("click"===t.type){var i=n({},t);i.type="preclick",this._fireDOMEvent(i,i.type,r)}if(!t._stopped&&(r=(r||[]).concat(this._findEventTargets(t,e))).length){var o=r[0];"contextmenu"===e&&o.listens(e,!0)&&Ie(t);var a={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var s=o.getLatLng&&(!o._radius||o._radius<=10);a.containerPoint=s?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),a.layerPoint=this.containerPointToLayerPoint(a.containerPoint),a.latlng=s?o.getLatLng():this.layerPointToLatLng(a.layerPoint)}for(var l=0;l<r.length;l++)if(r[l].fire(e,a,!0),a.originalEvent._stopped||!1===r[l].options.bubblingMouseEvents&&-1!==g(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return _e(this._mapPane)||new z(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var n=t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return n.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var r=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(r)},_latLngBoundsToNewLayerBounds:function(t,e,n){var r=this._getNewPixelOrigin(n,e);return I([this.project(t.getSouthWest(),e)._subtract(r),this.project(t.getNorthWest(),e)._subtract(r),this.project(t.getSouthEast(),e)._subtract(r),this.project(t.getNorthEast(),e)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var r=this.project(t,e),i=this.getSize().divideBy(2),o=new R(r.subtract(i),r.add(i)),a=this._getBoundsOffset(o,n,e);return a.round().equals([0,0])?t:this.unproject(r.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),r=new R(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(r,e))},_getBoundsOffset:function(t,e,n){var r=I(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),i=r.min.subtract(t.min),o=r.max.subtract(t.max),a=this._rebound(i.x,-o.x),s=this._rebound(i.y,-o.y);return new z(a,s)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),r=vt?this.options.zoomSnap:1;return r&&(t=Math.round(t/r)*r),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){he(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=oe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=te,n=this._proxy.style[e];ye(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",function(){var t=this.getCenter(),e=this.getZoom();ye(this._proxy,this.project(t,e),this.getZoomScale(e,1))},this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ae(this._proxy),delete this._proxy},_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,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(e),i=this._getCenterOffset(t)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(i)||(P(function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)},this),0))},_animateZoom:function(t,e,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,fe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:r}),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&he(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),P(function(){this._moveEnd(!0)},this))}}),Ye=S.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),r=t._controlCorners[n];return fe(e,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(e,r.firstChild):r.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ae(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()}}),Je=function(t){return new Ye(t)};Ke.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=oe("div",e+"control-container",this._container);function r(r,i){var o=e+r+" "+e+i;t[r+i]=oe("div",o,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ae(this._controlCorners[t]);ae(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Qe=Ye.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,r){return n<r?-1:r<n?1:0}},initialize:function(t,e,n){for(var r in d(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[r],r);for(r in e)this._addLayer(e[r],r,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Ye.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(a(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){fe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(fe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):he(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return he(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=oe("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Re(e),je(e);var r=this._section=oe("section",t+"-list");n&&(this._map.on("click",this.collapse,this),nt||Se(e,{mouseenter:this.expand,mouseleave:this.collapse},this));var i=this._layersLink=oe("a",t+"-toggle",e);i.href="#",i.title="Layers",xt?(Se(i,"click",Ne),Se(i,"click",this.expand,this)):Se(i,"focus",this.expand,this),n||this.expand(),this._baseLayersList=oe("div",t+"-base",r),this._separator=oe("div",t+"-separator",r),this._overlaysList=oe("div",t+"-overlays",r),e.appendChild(r)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&a(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(i(function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;se(this._baseLayersList),se(this._overlaysList),this._layerControlInputs=[];var t,e,n,r,i=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),e=e||r.overlay,t=t||!r.overlay,i+=r.overlay?0:1;return this.options.hideSingleBase&&(t=t&&i>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(a(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(t){var e,n=document.createElement("label"),r=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=r):e=this._createRadioElement("leaflet-base-layers_"+a(this),r),this._layerControlInputs.push(e),e.layerId=a(t.layer),Se(e,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+t.name;var o=document.createElement("div");n.appendChild(o),o.appendChild(e),o.appendChild(i);var s=t.overlay?this._overlaysList:this._baseLayersList;return s.appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.checked?r.push(e):t.checked||i.push(e);for(o=0;o<i.length;o++)this._map.hasLayer(i[o])&&this._map.removeLayer(i[o]);for(o=0;o<r.length;o++)this._map.hasLayer(r[o])||this._map.addLayer(r[o]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,r=this._map.getZoom(),i=n.length-1;i>=0;i--)t=n[i],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&r<e.options.minZoom||void 0!==e.options.maxZoom&&r>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Xe=Ye.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=oe("div",e+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},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._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,r,i){var o=oe("a",n,r);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),Re(o),Se(o,"click",Ne),Se(o,"click",i,this),Se(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";he(this._zoomInButton,e),he(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&fe(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&fe(this._zoomInButton,e)}});Ke.mergeOptions({zoomControl:!0}),Ke.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Xe,this.addControl(this.zoomControl))});var $e=Ye.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e=oe("div","leaflet-control-scale"),n=this.options;return this._addScales(n,"leaflet-control-scale-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,e,n){t.metric&&(this._mScale=oe("div",e,n)),t.imperial&&(this._iScale=oe("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,r,i=3.2808399*t;i>5280?(e=i/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(r=this._getRoundNum(i),this._updateScale(this._iScale,r+" ft",r/i))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),tn=Ye.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){d(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=oe("div","leaflet-control-attribution"),Re(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].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 e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}}});Ke.mergeOptions({attributionControl:!0}),Ke.addInitHook(function(){this.options.attributionControl&&(new tn).addTo(this)}),Ye.Layers=Qe,Ye.Zoom=Xe,Ye.Scale=$e,Ye.Attribution=tn,Je.layers=function(t,e,n){return new Qe(t,e,n)},Je.zoom=function(t){return new Xe(t)},Je.scale=function(t){return new $e(t)},Je.attribution=function(t){return new tn(t)};var en=S.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});en.addTo=function(t,e){return t.addHandler(e,this),this};var nn,rn={Events:O},on=xt?"touchstart mousedown":"mousedown",an={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},sn={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},ln=A.extend({options:{clickTolerance:3},initialize:function(t,e,n,r){d(this,r),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Se(this._dragStartTarget,on,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ln._dragging===this&&this.finishDrag(),Ae(this._dragStartTarget,on,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!ce(this._element,"leaflet-zoom-anim")&&!(ln._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(ln._dragging=this,this._preventOutline&&Te(this._element),we(),Yt(),this._moving)))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Pe(this._element);this._startPoint=new z(e.clientX,e.clientY),this._parentScale=ke(n),Se(document,sn[t.type],this._onMove,this),Se(document,an[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 e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new z(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Ie(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=_e(this._element).subtract(n),fe(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),fe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,k(this._animRequest),this._lastEvent=t,this._animRequest=P(this._updatePosition,this,!0)))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),ge(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in he(document.body,"leaflet-dragging"),this._lastTarget&&(he(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),sn)Ae(document,sn[t],this._onMove,this),Ae(document,an[t],this._onUp,this);xe(),Jt(),this._moved&&this._moving&&(k(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,ln._dragging=!1}});function un(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=function(t,e){var n=t.length,r=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);r[0]=r[n-1]=1,function t(e,n,r,i,o){var a,s,l,u=0;for(s=i+1;s<=o-1;s++)(l=pn(e[s],e[i],e[o],!0))>u&&(a=s,u=l);u>r&&(n[a]=1,t(e,n,r,i,a),t(e,n,r,a,o))}(t,r,e,0,n-1);var i,o=[];for(i=0;i<n;i++)r[i]&&o.push(t[i]);return o}(t=function(t,e){for(var n=[t[0]],r=1,i=0,o=t.length;r<o;r++)a=t[r],s=t[i],l=void 0,u=void 0,l=s.x-a.x,u=s.y-a.y,l*l+u*u>e&&(n.push(t[r]),i=r);var a,s,l,u;return i<o-1&&n.push(t[o-1]),n}(t,n),n)}function cn(t,e,n){return Math.sqrt(pn(t,e,n,!0))}function fn(t,e,n,r,i){var o,a,s,l=r?nn:dn(t,n),u=dn(e,n);for(nn=u;;){if(!(l|u))return[t,e];if(l&u)return!1;a=hn(t,e,o=l||u,n,i),s=dn(a,n),o===l?(t=a,l=s):(e=a,u=s)}}function hn(t,e,n,r,i){var o,a,s=e.x-t.x,l=e.y-t.y,u=r.min,c=r.max;return 8&n?(o=t.x+s*(c.y-t.y)/l,a=c.y):4&n?(o=t.x+s*(u.y-t.y)/l,a=u.y):2&n?(o=c.x,a=t.y+l*(c.x-t.x)/s):1&n&&(o=u.x,a=t.y+l*(u.x-t.x)/s),new z(o,a,i)}function dn(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function pn(t,e,n,r){var i,o=e.x,a=e.y,s=n.x-o,l=n.y-a,u=s*s+l*l;return u>0&&((i=((t.x-o)*s+(t.y-a)*l)/u)>1?(o=n.x,a=n.y):i>0&&(o+=s*i,a+=l*i)),s=t.x-o,l=t.y-a,r?s*s+l*l:new z(o,a)}function mn(t){return!y(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function vn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),mn(t)}var yn=(Object.freeze||Object)({simplify:un,pointToSegmentDistance:cn,closestPointOnSegment:function(t,e,n){return pn(t,e,n)},clipSegment:fn,_getEdgeIntersection:hn,_getBitCode:dn,_sqClosestPointOnSegment:pn,isFlat:mn,_flat:vn});function gn(t,e,n){var r,i,o,a,s,l,u,c,f,h=[1,4,2,8];for(i=0,u=t.length;i<u;i++)t[i]._code=dn(t[i],e);for(a=0;a<4;a++){for(c=h[a],r=[],i=0,u=t.length,o=u-1;i<u;o=i++)s=t[i],l=t[o],s._code&c?l._code&c||((f=hn(l,s,c,e,n))._code=dn(f,e),r.push(f)):(l._code&c&&((f=hn(l,s,c,e,n))._code=dn(f,e),r.push(f)),r.push(s));t=r}return t}var _n=(Object.freeze||Object)({clipPolygon:gn}),bn={project:function(t){return new z(t.lng,t.lat)},unproject:function(t){return new B(t.y,t.x)},bounds:new R([-180,-90],[180,90])},wn={R:6378137,R_MINOR:6356752.314245179,bounds:new R([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,r=t.lat*e,i=this.R_MINOR/n,o=Math.sqrt(1-i*i),a=o*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/Math.pow((1-a)/(1+a),o/2);return r=-n*Math.log(Math.max(s,1e-10)),new z(t.lng*e*n,r)},unproject:function(t){for(var e,n=180/Math.PI,r=this.R,i=this.R_MINOR/r,o=Math.sqrt(1-i*i),a=Math.exp(-t.y/r),s=Math.PI/2-2*Math.atan(a),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)e=o*Math.sin(s),e=Math.pow((1-e)/(1+e),o/2),u=Math.PI/2-2*Math.atan(a*e)-s,s+=u;return new B(s*n,t.x*n/r)}},xn=(Object.freeze||Object)({LonLat:bn,Mercator:wn,SphericalMercator:V}),Tn=n({},W,{code:"EPSG:3395",projection:wn,transformation:function(){var t=.5/(Math.PI*wn.R);return q(t,.5,-t,.5)}()}),En=n({},W,{code:"EPSG:4326",projection:bn,transformation:q(1/180,1,-1/180,.5)}),Pn=n({},F,{projection:bn,transformation:q(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,r=e.lat-t.lat;return Math.sqrt(n*n+r*r)},infinite:!0});F.Earth=W,F.EPSG3395=Tn,F.EPSG3857=G,F.EPSG900913=K,F.EPSG4326=En,F.Simple=Pn;var kn=A.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[a(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[a(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});Ke.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=a(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=a(t);return this._layers[e]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&a(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){t=t?y(t)?t:[t]:[];for(var e=0,n=t.length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[a(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=a(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var i=this._zoomBoundLayers[r].options;t=void 0===i.minZoom?t:Math.min(t,i.minZoom),e=void 0===i.maxZoom?e:Math.max(e,i.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Cn=kn.extend({initialize:function(t,e){var n,r;if(d(this,e),this._layers={},t)for(n=0,r=t.length;n<r;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,r=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,r);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return a(t)}}),Sn=Cn.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Cn.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Cn.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new N;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),On=S.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){d(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(r,t),r},_setIconStyles:function(t,e){var n=this.options,r=n[e+"Size"];"number"==typeof r&&(r=[r,r]);var i=j(r),o=j("shadow"===e&&n.shadowAnchor||n.iconAnchor||i&&i.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),i&&(t.style.width=i.x+"px",t.style.height=i.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Pt&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),An=On.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return An.imagePath||(An.imagePath=this._detectIconPath()),(this.options.imagePath||An.imagePath)+On.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=oe("div","leaflet-default-icon-path",document.body),e=ie(t,"background-image")||ie(t,"backgroundImage");return document.body.removeChild(t),e=null===e||0!==e.indexOf("url")?"":e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),Ln=en.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new ln(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),fe(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&he(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,r=this._marker.options.autoPanSpeed,i=this._marker.options.autoPanPadding,o=_e(e._icon),a=n.getPixelBounds(),s=n.getPixelOrigin(),l=I(a.min._subtract(s).add(i),a.max._subtract(s).subtract(i));if(!l.contains(o)){var u=j((Math.max(l.max.x,o.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(r);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),ge(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=P(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup().fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(k(this._panRequest),this._panRequest=P(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,r=_e(e._icon),i=e._map.layerPointToLatLng(r);n&&ge(n,r),e._latlng=i,t.latlng=i,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){k(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),zn=kn.extend({options:{icon:new An,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){d(this,e),this._latlng=U(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=U(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),fe(n,e),t.keyboard&&(n.tabIndex="0"),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var i=t.icon.createShadow(this._shadow),o=!1;i!==this._shadow&&(this._removeShadow(),o=!0),i&&(fe(i,e),i.alt=""),this._shadow=i,t.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),ae(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ae(this._shadow),this._shadow=null},_setPos:function(t){ge(this._icon,t),this._shadow&&ge(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon.style.zIndex=this._zIndex+t},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(fe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ln)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ln(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&me(this._icon,t),this._shadow&&me(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),Mn=kn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return d(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t.hasOwnProperty("weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),jn=Mn.extend({options:{fill:!0,radius:10},initialize:function(t,e){d(this,e),this._latlng=U(t),this._radius=this.options.radius},setLatLng:function(t){return this._latlng=U(t),this.redraw(),this.fire("move",{latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return Mn.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),r=[t+n,e+n];this._pxBounds=new R(this._point.subtract(r),this._point.add(r))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),Rn=jn.extend({initialize:function(t,e,r){if("number"==typeof e&&(e=n({},r,{radius:e})),d(this,e),this._latlng=U(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new N(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Mn.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===W.distance){var i=Math.PI/180,o=this._mRadius/W.R/i,a=n.project([e+o,t]),s=n.project([e-o,t]),l=a.add(s).divideBy(2),u=n.unproject(l).lat,c=Math.acos((Math.cos(o*i)-Math.sin(e*i)*Math.sin(u*i))/(Math.cos(e*i)*Math.cos(u*i)))/i;(isNaN(c)||0===c)&&(c=o/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-n.project([u,t-c]).x,this._radiusY=l.y-a.y}else{var f=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(f).x}this._updateBounds()}}),In=Mn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){d(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,r=1/0,i=null,o=pn,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],u=1,c=l.length;u<c;u++){e=l[u-1],n=l[u];var f=o(t,e,n,!0);f<r&&(r=f,i=o(t,e,n))}return i&&(i.distance=Math.sqrt(r)),i},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,n,r,i,o,a,s=this._rings[0],l=s.length;if(!l)return null;for(t=0,e=0;t<l-1;t++)e+=s[t].distanceTo(s[t+1])/2;if(0===e)return this._map.layerPointToLatLng(s[0]);for(t=0,r=0;t<l-1;t++)if(i=s[t],o=s[t+1],n=i.distanceTo(o),(r+=n)>e)return a=(r-e)/n,this._map.layerPointToLatLng([o.x-a*(o.x-i.x),o.y-a*(o.y-i.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=U(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new N,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return mn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=mn(t),r=0,i=t.length;r<i;r++)n?(e[r]=U(t[r]),this._bounds.extend(e[r])):e[r]=this._convertLatLngs(t[r]);return e},_project:function(){var t=new R;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new z(t,t);this._pxBounds=new R([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,n){var r,i,o=t[0]instanceof B,a=t.length;if(o){for(i=[],r=0;r<a;r++)i[r]=this._map.latLngToLayerPoint(t[r]),n.extend(i[r]);e.push(i)}else for(r=0;r<a;r++)this._projectLatlngs(t[r],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,n,r,i,o,a,s,l=this._parts;for(e=0,r=0,i=this._rings.length;e<i;e++)for(s=this._rings[e],n=0,o=s.length;n<o-1;n++)(a=fn(s[n],s[n+1],t,n,!0))&&(l[r]=l[r]||[],l[r].push(a[0]),a[1]===s[n+1]&&n!==o-2||(l[r].push(a[1]),r++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,r=t.length;n<r;n++)t[n]=un(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,r,i,o,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,o=this._parts.length;n<o;n++)for(s=this._parts[n],r=0,a=s.length,i=a-1;r<a;i=r++)if((e||0!==r)&&cn(t,s[i],s[r])<=l)return!0;return!1}});In._flat=vn;var Nn=In.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,n,r,i,o,a,s,l,u=this._rings[0],c=u.length;if(!c)return null;for(o=a=s=0,t=0,e=c-1;t<c;e=t++)n=u[t],r=u[e],i=n.y*r.x-r.y*n.x,a+=(n.x+r.x)*i,s+=(n.y+r.y)*i,o+=3*i;return l=0===o?u[0]:[a/o,s/o],this._map.layerPointToLatLng(l)},_convertLatLngs:function(t){var e=In.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof B&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){In.prototype._setLatLngs.call(this,t),mn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return mn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new z(e,e);if(t=new R(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var r,i=0,o=this._rings.length;i<o;i++)(r=gn(this._rings[i],t,!0)).length&&this._parts.push(r)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,r,i,o,a,s,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,s=this._parts.length;i<s;i++)for(e=this._parts[i],o=0,l=e.length,a=l-1;o<l;a=o++)n=e[o],r=e[a],n.y>t.y!=r.y>t.y&&t.x<(r.x-n.x)*(t.y-n.y)/(r.y-n.y)+n.x&&(u=!u);return u||In.prototype._containsPoint.call(this,t,!0)}}),Dn=Sn.extend({initialize:function(t,e){d(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,r,i=y(t)?t:t.features;if(i){for(e=0,n=i.length;e<n;e++)((r=i[e]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var o=this.options;if(o.filter&&!o.filter(t))return this;var a=Bn(t,o);return a?(a.feature=Hn(t),a.defaultOptions=a.options,this.resetStyle(a),o.onEachFeature&&o.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return t.options=n({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function Bn(t,e){var n,r,i,o,a="Feature"===t.type?t.geometry:t,s=a?a.coordinates:null,l=[],u=e&&e.pointToLayer,c=e&&e.coordsToLatLng||Un;if(!s&&!a)return null;switch(a.type){case"Point":return n=c(s),u?u(t,n):new zn(n);case"MultiPoint":for(i=0,o=s.length;i<o;i++)n=c(s[i]),l.push(u?u(t,n):new zn(n));return new Sn(l);case"LineString":case"MultiLineString":return r=Zn(s,"LineString"===a.type?0:1,c),new In(r,e);case"Polygon":case"MultiPolygon":return r=Zn(s,"Polygon"===a.type?1:2,c),new Nn(r,e);case"GeometryCollection":for(i=0,o=a.geometries.length;i<o;i++){var f=Bn({geometry:a.geometries[i],type:"Feature",properties:t.properties},e);f&&l.push(f)}return new Sn(l);default:throw new Error("Invalid GeoJSON object.")}}function Un(t){return new B(t[1],t[0],t[2])}function Zn(t,e,n){for(var r,i=[],o=0,a=t.length;o<a;o++)r=e?Zn(t[o],e-1,n):(n||Un)(t[o]),i.push(r);return i}function Fn(t,e){return e="number"==typeof e?e:6,void 0!==t.alt?[c(t.lng,e),c(t.lat,e),c(t.alt,e)]:[c(t.lng,e),c(t.lat,e)]}function Wn(t,e,n,r){for(var i=[],o=0,a=t.length;o<a;o++)i.push(e?Wn(t[o],e-1,n,r):Fn(t[o],r));return!e&&n&&i.push(i[0]),i}function Vn(t,e){return t.feature?n({},t.feature,{geometry:e}):Hn(e)}function Hn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var qn={toGeoJSON:function(t){return Vn(this,{type:"Point",coordinates:Fn(this.getLatLng(),t)})}};function Gn(t,e){return new Dn(t,e)}zn.include(qn),Rn.include(qn),jn.include(qn),In.include({toGeoJSON:function(t){var e=!mn(this._latlngs),n=Wn(this._latlngs,e?1:0,!1,t);return Vn(this,{type:(e?"Multi":"")+"LineString",coordinates:n})}}),Nn.include({toGeoJSON:function(t){var e=!mn(this._latlngs),n=e&&!mn(this._latlngs[0]),r=Wn(this._latlngs,n?2:e?1:0,!0,t);return e||(r=[r]),Vn(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),Cn.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),Vn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,r=[];return this.eachLayer(function(e){if(e.toGeoJSON){var i=e.toGeoJSON(t);if(n)r.push(i.geometry);else{var o=Hn(i);"FeatureCollection"===o.type?r.push.apply(r,o.features):r.push(o)}}}),n?Vn(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var Kn=Gn,Yn=kn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=D(e),d(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(fe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ae(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&le(this._image),this},bringToBack:function(){return this._map&&ue(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=D(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:oe("img");fe(e,"leaflet-image-layer"),this._zoomAnimated&&fe(e,"leaflet-zoom-animated"),this.options.className&&fe(e,this.options.className),e.onselectstart=u,e.onmousemove=u,e.onload=i(this.fire,this,"load"),e.onerror=i(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ye(this._image,n,e)},_reset:function(){var t=this._image,e=new R(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();ge(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){me(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),Jn=Yn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:oe("video");if(fe(e,"leaflet-image-layer"),this._zoomAnimated&&fe(e,"leaflet-zoom-animated"),e.onselectstart=u,e.onmousemove=u,e.onloadeddata=i(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),r=[],o=0;o<n.length;o++)r.push(n[o].src);this._url=n.length>0?r:[e.src]}else{y(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&e.style.hasOwnProperty("objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop;for(var a=0;a<this._url.length;a++){var s=oe("source");s.src=this._url[a],e.appendChild(s)}}}}),Qn=Yn.extend({_initImage:function(){var t=this._image=this._url;fe(t,"leaflet-image-layer"),this._zoomAnimated&&fe(t,"leaflet-zoom-animated"),t.onselectstart=u,t.onmousemove=u}}),Xn=kn.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){d(this,t),this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&me(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&me(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(me(this._container,0),this._removeTimeout=setTimeout(i(ae,void 0,this._container),200)):ae(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=U(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&le(this._container),this},bringToBack:function(){return this._map&&ue(this._container),this},_prepareOpen:function(t,e,n){if(e instanceof kn||(n=e,e=t),e instanceof Sn)for(var r in t._layers){e=t._layers[r];break}if(!n)if(e.getCenter)n=e.getCenter();else{if(!e.getLatLng)throw new Error("Unable to get source layer LatLng.");n=e.getLatLng()}return this._source=e,this.update(),n},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=j(this.options.offset),n=this._getAnchor();this._zoomAnimated?ge(this._container,t.add(n)):e=e.add(t).add(n);var r=this._containerBottom=-e.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=r+"px",this._container.style.left=i+"px"}},_getAnchor:function(){return[0,0]}}),$n=Xn.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){Xn.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Mn||this._source.on("preclick",Me))},onRemove:function(t){Xn.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Mn||this._source.off("preclick",Me))},getEvents:function(){var t=Xn.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t="leaflet-popup",e=this._container=oe("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=oe("div",t+"-content-wrapper",e);if(this._contentNode=oe("div",t+"-content",n),Re(n),je(this._contentNode),Se(n,"contextmenu",Me),this._tipContainer=oe("div",t+"-tip-container",e),this._tip=oe("div",t+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=oe("a",t+"-close-button",e);r.href="#close",r.innerHTML="×",Se(r,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var r=t.offsetHeight,i=this.options.maxHeight;i&&r>i?(e.height=i+"px",fe(t,"leaflet-popup-scrolled")):he(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();ge(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(ie(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,r=this._containerWidth,i=new z(this._containerLeft,-n-this._containerBottom);i._add(_e(this._container));var o=t.layerPointToContainerPoint(i),a=j(this.options.autoPanPadding),s=j(this.options.autoPanPaddingTopLeft||a),l=j(this.options.autoPanPaddingBottomRight||a),u=t.getSize(),c=0,f=0;o.x+r+l.x>u.x&&(c=o.x+r-u.x+l.x),o.x-c-s.x<0&&(c=o.x-s.x),o.y+n+l.y>u.y&&(f=o.y+n-u.y+l.y),o.y-f-s.y<0&&(f=o.y-s.y),(c||f)&&t.fire("autopanstart").panBy([c,f])}},_onCloseButtonClick:function(t){this._close(),Ne(t)},_getAnchor:function(){return j(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ke.mergeOptions({closePopupOnClick:!0}),Ke.include({openPopup:function(t,e,n){return t instanceof $n||(t=new $n(n).setContent(t)),e&&t.setLatLng(e),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}}),kn.include({bindPopup:function(t,e){return t instanceof $n?(d(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new $n(e,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,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),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 e=t.layer||t.target;this._popup&&this._map&&(Ne(t),e instanceof Mn?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var tr=Xn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Xn.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){Xn.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Xn.prototype.getEvents.call(this);return xt&&!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=oe("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e=this._map,n=this._container,r=e.latLngToContainerPoint(e.getCenter()),i=e.layerPointToContainerPoint(t),o=this.options.direction,a=n.offsetWidth,s=n.offsetHeight,l=j(this.options.offset),u=this._getAnchor();"top"===o?t=t.add(j(-a/2+l.x,-s+l.y+u.y,!0)):"bottom"===o?t=t.subtract(j(a/2-l.x,-l.y,!0)):"center"===o?t=t.subtract(j(a/2+l.x,s/2-u.y+l.y,!0)):"right"===o||"auto"===o&&i.x<r.x?(o="right",t=t.add(j(l.x+u.x,u.y-s/2+l.y,!0))):(o="left",t=t.subtract(j(a+u.x-l.x,s/2-u.y-l.y,!0))),he(n,"leaflet-tooltip-right"),he(n,"leaflet-tooltip-left"),he(n,"leaflet-tooltip-top"),he(n,"leaflet-tooltip-bottom"),fe(n,"leaflet-tooltip-"+o),ge(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&me(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return j(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Ke.include({openTooltip:function(t,e,n){return t instanceof tr||(t=new tr(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),kn.include({bindTooltip:function(t,e){return t instanceof tr?(d(t,e),this._tooltip=t,t._source=this):(this._tooltip&&!e||(this._tooltip=new tr(e,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),xt&&(n.click=this._openTooltip)),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t,e){return this._tooltip&&this._map&&(e=this._tooltip._prepareOpen(this,t,e),this._map.openTooltip(this._tooltip,e),this._tooltip.options.interactive&&this._tooltip._container&&(fe(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(he(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var e=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(e,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,n,r=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});var er=On.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(se(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var r=j(n.bgPos);e.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});On.Default=An;var nr=kn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:yt,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){d(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ae(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(le(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ue(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof z?t:new z(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,r=-t(-1/0,1/0),i=0,o=n.length;i<o;i++)e=n[i].style.zIndex,n[i]!==this._container&&e&&(r=t(r,+e));isFinite(r)&&(this.options.zIndex=r+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!$){me(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var r in this._tiles){var i=this._tiles[r];if(i.current&&i.loaded){var o=Math.min(1,(t-i.loaded)/200);me(i.el,o),o<1?e=!0:(i.active?n=!0:this._onOpaqueTile(i),i.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(k(this._fadeFrame),this._fadeFrame=P(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=oe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(ae(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[t],i=this._map;return r||((r=this._levels[t]={}).el=oe("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=e,r.origin=i.project(i.unproject(i.getPixelOrigin()),t).round(),r.zoom=t,this._setZoomTransform(r,i.getCenter(),i.getZoom()),r.el.offsetWidth,this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var r=e.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ae(this._levels[t].el),this._onRemoveLevel(t),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,r){var i=Math.floor(t/2),o=Math.floor(e/2),a=n-1,s=new z(+i,+o);s.z=+a;var l=this._tileCoordsToKey(s),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),a>r&&this._retainParent(i,o,a,r))},_retainChildren:function(t,e,n,r){for(var i=2*t;i<2*t+2;i++)for(var o=2*e;o<2*e+2;o++){var a=new z(i,o);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<r&&this._retainChildren(i,o,n+1,r))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,r){var i=this._clampZoom(Math.round(e));(void 0!==this.options.maxZoom&&i>this.options.maxZoom||void 0!==this.options.minZoom&&i<this.options.minZoom)&&(i=void 0);var o=this.options.updateWhenZooming&&i!==this._tileZoom;r&&!o||(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==i&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var r=this._map.getZoomScale(n,t.zoom),i=t.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(e,n)).round();vt?ye(t.el,i,r):ge(t.el,i)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],r).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],r).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],r).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),r=e.getZoomScale(n,this._tileZoom),i=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(2*r);return new R(i.subtract(o),i.add(o))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var r=this._getTiledPixelBounds(t),i=this._pxBoundsToTileRange(r),o=i.getCenter(),a=[],s=this.options.keepBuffer,l=new R(i.getBottomLeft().subtract([s,-s]),i.getTopRight().add([s,-s]));if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new z(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var f=i.min.y;f<=i.max.y;f++)for(var h=i.min.x;h<=i.max.x;h++){var d=new z(h,f);if(d.z=this._tileZoom,this._isValidTile(d)){var p=this._tiles[this._tileCoordsToKey(d)];p?p.current=!0:a.push(d)}}if(a.sort(function(t,e){return t.distanceTo(o)-e.distanceTo(o)}),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(h=0;h<a.length;h++)this._addTile(a[h],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(t);return D(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),r=t.scaleBy(n),i=r.add(n),o=e.unproject(r,t.z),a=e.unproject(i,t.z);return[o,a]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new N(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new z(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(ae(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){fe(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=u,t.onmousemove=u,$&&this.options.opacity<1&&me(t,this.options.opacity),nt&&!rt&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),r=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&P(i(this._tileReady,this,t,null,o)),ge(o,n),this._tiles[r]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var r=this._tileCoordsToKey(t);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(me(n.el,0),k(this._fadeFrame),this._fadeFrame=P(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(fe(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),$||!this._map._fadeAnimated?P(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new z(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new R(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),rr=nr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=d(this,e)).detectRetina&&Pt&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),nt||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Se(n,"load",i(this._tileOnLoad,this,e,n)),Se(n,"error",i(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:Pt?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=r),e["-y"]=r}return v(this._url,n(e,this.options))},_tileOnLoad:function(t,e){$?setTimeout(i(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var r=this.options.errorTileUrl;r&&e.getAttribute("src")!==r&&(e.src=r),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,n=this.options.zoomReverse,r=this.options.zoomOffset;return n&&(t=e-t),t+r},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=u,e.onerror=u,e.complete||(e.src=_,ae(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return ot||e.el.setAttribute("src",_),nr.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==_))return nr.prototype._tileReady.call(this,t,e,n)}});function ir(t,e){return new rr(t,e)}var or=rr.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,e){this._url=t;var r=n({},this.defaultWmsParams);for(var i in e)i in this.options||(r[i]=e[i]);var o=(e=d(this,e)).detectRetina&&Pt?2:1,a=this.getTileSize();r.width=a.x*o,r.height=a.y*o,this.wmsParams=r},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,rr.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,r=I(n.project(e[0]),n.project(e[1])),i=r.min,o=r.max,a=(this._wmsVersion>=1.3&&this._crs===En?[i.y,i.x,o.y,o.x]:[i.x,i.y,o.x,o.y]).join(","),s=rr.prototype.getTileUrl.call(this,t);return s+p(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});rr.WMS=or,ir.wms=function(t,e){return new or(t,e)};var ar=kn.extend({options:{padding:.1,tolerance:0},initialize:function(t){d(this,t),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&fe(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,e){var n=this._map.getZoomScale(e,this._zoom),r=_e(this._container),i=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),a=this._map.project(t,e),s=a.subtract(o),l=i.multiplyBy(-n).add(r).add(i).subtract(s);vt?ye(this._container,l,n):ge(this._container,l)},_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,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new R(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),sr=ar.extend({getEvents:function(){var t=ar.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ar.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Se(t,"mousemove",s(this._onMouseMove,32,this),this),Se(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Se(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){k(this._redrawRequest),delete this._ctx,ae(this._container),Ae(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){ar.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),r=Pt?2:1;ge(e,t.min),e.width=r*n.x,e.height=r*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",Pt&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){ar.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[a(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,r=e.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete t._order,delete this._layers[a(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 e,n,r=t.options.dashArray.split(/[, ]+/),i=[];for(n=0;n<r.length;n++){if(e=Number(r[n]),isNaN(e))return;i.push(e)}t.options._dashArray=i}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||P(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new R,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)t=r.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,r,i,o,a=t._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(r=0,i=a[n].length;r<i;r++)o=a[n][r],l[r?"lineTo":"moveTo"](o.x,o.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,r=Math.max(Math.round(t._radius),1),i=(Math.max(Math.round(t._radiusY),1)||r)/r;1!==i&&(n.save(),n.scale(1,i)),n.beginPath(),n.arc(e.x,e.y/i,r,0,2*Math.PI,!1),1!==i&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,r=this._map.mouseEventToLayerPoint(t),i=this._drawFirst;i;i=i.next)(e=i.layer).options.interactive&&e._containsPoint(r)&&!this._map._draggableMoved(e)&&(n=e);n&&(We(t),this._fireEvent([n],t))},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(he(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null)},_handleMouseHover:function(t,e){for(var n,r,i=this._drawFirst;i;i=i.next)(n=i.layer).options.interactive&&n._containsPoint(e)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(t),r&&(fe(this._container,"leaflet-interactive"),this._fireEvent([r],t,"mouseover"),this._hoveredLayer=r)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t)},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,r=e.prev;n&&(n.prev=r,r?r.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,r=e.prev;r&&(r.next=n,n?n.prev=r:r&&(this._drawLast=r),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function lr(t){return kt?new sr(t):null}var ur=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),cr={_initContainer:function(){this._container=oe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ar.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=ur("shape");fe(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=ur("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ae(e),t.removeInteractiveTarget(e),delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,r=t.options,i=t._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(e||(e=t._stroke=ur("stroke")),i.appendChild(e),e.weight=r.weight+"px",e.color=r.color,e.opacity=r.opacity,r.dashArray?e.dashStyle=y(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=r.lineCap.replace("butt","flat"),e.joinstyle=r.lineJoin):e&&(i.removeChild(e),t._stroke=null),r.fill?(n||(n=t._fill=ur("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),r=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+r+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){le(t._container)},_bringToBack:function(t){ue(t._container)}},fr=St?ur:Y,hr=ar.extend({getEvents:function(){var t=ar.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=fr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=fr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ae(this._container),Ae(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){ar.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),ge(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=fr("path");t.options.className&&fe(e,t.options.className),t.options.interactive&&fe(e,"leaflet-interactive"),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ae(t._path),t.removeInteractiveTarget(t._path),delete this._layers[a(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,J(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),r=Math.max(Math.round(t._radiusY),1)||n,i="a"+n+","+r+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+i+2*n+",0 "+i+2*-n+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){le(t._path)},_bringToBack:function(t){ue(t._path)}});function dr(t){return Ct||St?new hr(t):null}St&&hr.include(cr),Ke.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&lr(t)||dr(t)}});var pr=Nn.extend({initialize:function(t,e){Nn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=D(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});hr.create=fr,hr.pointsToPath=J,Dn.geometryToLayer=Bn,Dn.coordsToLatLng=Un,Dn.coordsToLatLngs=Zn,Dn.latLngToCoords=Fn,Dn.latLngsToCoords=Wn,Dn.getFeature=Vn,Dn.asFeature=Hn,Ke.mergeOptions({boxZoom:!0});var mr=en.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(){Se(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ae(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ae(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(),Yt(),we(),this._startPoint=this._map.mouseEventToContainerPoint(t),Se(document,{contextmenu:Ne,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=oe("div","leaflet-zoom-box",this._container),fe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new R(this._point,this._startPoint),n=e.getSize();ge(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(ae(this._box),he(this._container,"leaflet-crosshair")),Jt(),xe(),Ae(document,{contextmenu:Ne,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(i(this._resetState,this),0);var e=new N(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});Ke.addInitHook("addHandler","boxZoom",mr),Ke.mergeOptions({doubleClickZoom:!0});var vr=en.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),r=e.options.zoomDelta,i=t.originalEvent.shiftKey?n-r:n+r;"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}});Ke.addInitHook("addHandler","doubleClickZoom",vr),Ke.mergeOptions({dragging:!0,inertia:!rt,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var yr=en.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new ln(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))}fe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){he(this._map._container,"leaflet-grab"),he(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 e=D(this._map.options.maxBounds);this._offsetLimit=I(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.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 e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}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),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-e+n)%t+e-n,o=(r+e+n)%t-e-n,a=Math.abs(i+n)<Math.abs(o+n)?i:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,n=e.options,r=!n.inertia||this._times.length<2;if(e.fire("dragend",t),r)e.fire("moveend");else{this._prunePositions(+new Date);var i=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,a=n.easeLinearity,s=i.multiplyBy(a/o),l=s.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),c=s.multiplyBy(u/l),f=u/(n.inertiaDeceleration*a),h=c.multiplyBy(-f/2).round();h.x||h.y?(h=e._limitOffset(h,e.options.maxBounds),P(function(){e.panBy(h,{duration:f,easeLinearity:a,noMoveStart:!0,animate:!0})})):e.fire("moveend")}}});Ke.addInitHook("addHandler","dragging",yr),Ke.mergeOptions({keyboard:!0,keyboardPanDelta:80});var gr=en.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Se(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ae(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,r=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,r=this._panKeys={},i=this.keyCodes;for(e=0,n=i.left.length;e<n;e++)r[i.left[e]]=[-1*t,0];for(e=0,n=i.right.length;e<n;e++)r[i.right[e]]=[t,0];for(e=0,n=i.down.length;e<n;e++)r[i.down[e]]=[0,t];for(e=0,n=i.up.length;e<n;e++)r[i.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,r=this._zoomKeys={},i=this.keyCodes;for(e=0,n=i.zoomIn.length;e<n;e++)r[i.zoomIn[e]]=t;for(e=0,n=i.zoomOut.length;e<n;e++)r[i.zoomOut[e]]=-t},_addHooks:function(){Se(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ae(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,r=this._map;if(n in this._panKeys)r._panAnim&&r._panAnim._inProgress||(e=this._panKeys[n],t.shiftKey&&(e=j(e).multiplyBy(3)),r.panBy(e),r.options.maxBounds&&r.panInsideBounds(r.options.maxBounds));else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}Ne(t)}}});Ke.addInitHook("addHandler","keyboard",gr),Ke.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var _r=en.extend({addHooks:function(){Se(this._map._container,"mousewheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ae(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ue(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),r),Ne(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var r=this._delta/(4*this._map.options.wheelPxPerZoomLevel),i=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,o=n?Math.ceil(i/n)*n:i,a=t._limitZoom(e+(this._delta>0?o:-o))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});Ke.addInitHook("addHandler","scrollWheelZoom",_r),Ke.mergeOptions({tap:!0,tapTolerance:15});var br=en.extend({addHooks:function(){Se(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ae(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Ie(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new z(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&fe(n,"leaflet-active"),this._holdTimeout=setTimeout(i(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))},this),1e3),this._simulateEvent("mousedown",e),Se(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),Ae(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],n=e.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&he(n,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new z(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var n=document.createEvent("MouseEvents");n._simulated=!0,e.target._simulatedClick=!0,n.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}});xt&&!wt&&Ke.addInitHook("addHandler","tap",br),Ke.mergeOptions({touchZoom:xt&&!rt,bounceAtZoomLimits:!0});var wr=en.extend({addHooks:function(){fe(this._map._container,"leaflet-touch-zoom"),Se(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){he(this._map._container,"leaflet-touch-zoom"),Ae(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Se(document,"touchmove",this._onTouchMove,this),Se(document,"touchend",this._onTouchEnd,this),Ie(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]),o=n.distanceTo(r)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),k(this._animRequest);var s=i(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=P(s,this,!0),Ie(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,k(this._animRequest),Ae(document,"touchmove",this._onTouchMove),Ae(document,"touchend",this._onTouchEnd),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}});Ke.addInitHook("addHandler","touchZoom",wr),Ke.BoxZoom=mr,Ke.DoubleClickZoom=vr,Ke.Drag=yr,Ke.Keyboard=gr,Ke.ScrollWheelZoom=_r,Ke.Tap=br,Ke.TouchZoom=wr,Object.freeze=e,t.version="1.5.1+build.2e3e0ffb",t.Control=Ye,t.control=Je,t.Browser=At,t.Evented=A,t.Mixin=rn,t.Util=C,t.Class=S,t.Handler=en,t.extend=n,t.bind=i,t.stamp=a,t.setOptions=d,t.DomEvent=qe,t.DomUtil=Ce,t.PosAnimation=Ge,t.Draggable=ln,t.LineUtil=yn,t.PolyUtil=_n,t.Point=z,t.point=j,t.Bounds=R,t.bounds=I,t.Transformation=H,t.transformation=q,t.Projection=xn,t.LatLng=B,t.latLng=U,t.LatLngBounds=N,t.latLngBounds=D,t.CRS=F,t.GeoJSON=Dn,t.geoJSON=Gn,t.geoJson=Kn,t.Layer=kn,t.LayerGroup=Cn,t.layerGroup=function(t,e){return new Cn(t,e)},t.FeatureGroup=Sn,t.featureGroup=function(t){return new Sn(t)},t.ImageOverlay=Yn,t.imageOverlay=function(t,e,n){return new Yn(t,e,n)},t.VideoOverlay=Jn,t.videoOverlay=function(t,e,n){return new Jn(t,e,n)},t.SVGOverlay=Qn,t.svgOverlay=function(t,e,n){return new Qn(t,e,n)},t.DivOverlay=Xn,t.Popup=$n,t.popup=function(t,e){return new $n(t,e)},t.Tooltip=tr,t.tooltip=function(t,e){return new tr(t,e)},t.Icon=On,t.icon=function(t){return new On(t)},t.DivIcon=er,t.divIcon=function(t){return new er(t)},t.Marker=zn,t.marker=function(t,e){return new zn(t,e)},t.TileLayer=rr,t.tileLayer=ir,t.GridLayer=nr,t.gridLayer=function(t){return new nr(t)},t.SVG=hr,t.svg=dr,t.Renderer=ar,t.Canvas=sr,t.canvas=lr,t.Path=Mn,t.CircleMarker=jn,t.circleMarker=function(t,e){return new jn(t,e)},t.Circle=Rn,t.circle=function(t,e,n){return new Rn(t,e,n)},t.Polyline=In,t.polyline=function(t,e){return new In(t,e)},t.Polygon=Nn,t.polygon=function(t,e){return new Nn(t,e)},t.Rectangle=pr,t.rectangle=function(t,e){return new pr(t,e)},t.Map=Ke,t.map=function(t,e){return new Ke(t,e)};var xr=window.L;t.noConflict=function(){return window.L=xr,this},window.L=t}(e)},function(t,e,n){"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=n(20)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11),i=n(10);e.throttledComputed=function(t,e,n){var o,a,s;function l(){c(),o=i.autorunThrottled(u,e,n)}function u(){try{var e=t();(s||e!==a)&&(a=e,s=void 0,f.reportChanged())}catch(t){s=t,f.reportChanged()}}function c(){var t=o;o=void 0,t&&t()}var f=r.createAtom(n||"DelayedComputedAtom",l,c);return{get:function(){if(f.reportObserved(),s)throw s;return a},refresh:function(){l()}}}},function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(11),a=n(23);function s(t){return t&&"function"==typeof t.then}function l(t){return{ok:!0,value:t}}function u(t){return{ok:!1,error:t}}e.isPromiseLike=s;var c=function(){function t(t,e,n){this.fetch=e,this.disableReactionChecking=n,this.refreshCallCount=0,this.cached=l(t)}return Object.defineProperty(t.prototype,"currentState",{get:function(){try{this.refreshCallCount;var t=this.fetch();return s(t)?a.fromPromise(t.then(l,function(t){return u(t)})):l(t)}catch(t){return u(t)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"busy",{get:function(){var t=this.currentState;return!(!a.isPromiseBasedObservable(t)||"pending"!==t.state)},enumerable:!0,configurable:!0}),t.prototype.refresh=function(){this.refreshCallCount++},t.prototype.get=function(){if(!this.disableReactionChecking&&!o.getGlobalState().trackingDerivation)throw new Error("promisedComputed must be used inside reactions");return this.value},Object.defineProperty(t.prototype,"value",{get:function(){var t=this.currentState,e=a.isPromiseBasedObservable(t)?"fulfilled"===t.state?t.value:this.cached:t;if(this.cached=e,e.ok)return e.value;throw e.error},enumerable:!0,configurable:!0}),r([i.observable],t.prototype,"refreshCallCount",void 0),r([i.computed],t.prototype,"currentState",null),r([i.computed],t.prototype,"busy",null),r([i.action],t.prototype,"refresh",null),r([i.computed],t.prototype,"value",null),t}();e.promisedComputed=function(t,e){return new c(t,e)},e.promisedComputedInternal=function(t,e){return new c(t,e,!0)}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),o=r.sources.map(function(t){return"/*# sourceURL=".concat(r.sourceRoot).concat(t," */")});return[n].concat(o).concat([i]).join("\n")}var a,s,l;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2],"{").concat(n,"}"):n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];null!=o&&(r[o]=!0)}for(var a=0;a<t.length;a++){var s=t[a];null!=s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="(".concat(s[2],") and (").concat(n,")")),e.push(s))}},e}},function(t,e,n){var r,i,o={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),s=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var r=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),l=null,u=0,c=[],f=n(28);function h(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=o[r.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](r.parts[a]);for(;a<r.parts.length;a++)i.parts.push(g(r.parts[a],e))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(g(r.parts[a],e));o[r.id]={id:r.id,refs:1,parts:s}}}}function d(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=e.base?o[0]+e.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function p(t,e){var n=s(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=c[c.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),c.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=s(t.insertAt.before,n);n.insertBefore(e,i)}}function m(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=c.indexOf(t);e>=0&&c.splice(e,1)}function v(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return y(e,t.attrs),p(t,e),e}function y(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function g(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var a=u++;n=l||(l=v(e)),r=w.bind(null,n,a,!1),i=w.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",y(e,t.attrs),p(t,e),e}(e),r=function(t,e,n){var r=n.css,i=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||o)&&(r=f(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,e),i=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(e),r=function(t,e){var n=e.css,r=e.media;r&&t.setAttribute("media",r);if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){m(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=d(t,e);return h(n,e),function(t){for(var r=[],i=0;i<n.length;i++){var a=n[i];(s=o[a.id]).refs--,r.push(s)}t&&h(d(t,e),e);for(i=0;i<r.length;i++){var s;if(0===(s=r[i]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete o[s.id]}}}};var _,b=(_=[],function(t,e){return _[t]=e,_.filter(Boolean).join("\n")});function w(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}},function(t,e,n){"use strict";
|
|
/*
|
|
object-assign
|
|
(c) Sindre Sorhus
|
|
@license MIT
|
|
*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,l=a(t),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(l[c]=n[c]);if(r){s=r(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(l[s[f]]=n[s[f]])}}return l}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.autorunThrottled=function(t,e,n){n||(n="autorunThrottled");var i=!1,o=!1,a=new r.Reaction(n,function(){o?i||(i=!0,setTimeout(function(){i=!1,a.isDisposed||a.track(t)},e||1)):(o=!0,a.track(t))});return a.runReaction(),a.getDisposer()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.useStrict=r.configure?function(t){return r.configure({enforceActions:t})}:r.useStrict,e.createAtom=r.createAtom||function(t,e,n){return new r.Atom(t,e,n)},e.getGlobalState=r._getGlobalState||r.extras.getGlobalState},function(t,e){},function(t,e){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var t="",e=!1,i=arguments.length-1;i>=-1&&!e;i--){var o=i>=0?arguments[i]:process.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,e="/"===o.charAt(0))}return(e?"/":"")+(t=n(r(t.split("/"),function(t){return!!t}),!e).join("/"))||"."},e.normalize=function(t){var o=e.isAbsolute(t),a="/"===i(t,-1);return(t=n(r(t.split("/"),function(t){return!!t}),!o).join("/"))||o||(t="."),t&&a&&(t+="/"),(o?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l<a;l++)if(i[l]!==o[l]){s=l;break}var u=[];for(l=s;l<i.length;l++)u.push("..");return(u=u.concat(o.slice(s))).join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!=typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,i=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=function(t){"string"!=typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var i="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(10)),r(n(4));var i=n(5);e.promisedComputed=i.promisedComputed,e.isPromiseLike=i.isPromiseLike,r(n(24)),r(n(25))},function(t,e,n){t.exports=n.p+"psimpl.a0337.wasm"},function(t,e,n){t.exports=n.p+"simplify.5a714.wasm"},function(t,e,n){"use strict";var r=n(37),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(t){return r.isMemo(t)?a:s[t.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(p){var i=d(n);i&&i!==p&&t(e,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=l(e),m=l(n),v=0;v<a.length;++v){var y=a[v];if(!(o[y]||r&&r[y]||m&&m[y]||s&&s[y])){var g=h(n,y);try{u(e,y,g)}catch(t){}}}return e}return e}},function(t,e,n){"use strict";var r=Array.isArray,i=Object.keys,o=Object.prototype.hasOwnProperty;t.exports=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){var a,s,l,u=r(e),c=r(n);if(u&&c){if((s=e.length)!=n.length)return!1;for(a=s;0!=a--;)if(!t(e[a],n[a]))return!1;return!0}if(u!=c)return!1;var f=e instanceof Date,h=n instanceof Date;if(f!=h)return!1;if(f&&h)return e.getTime()==n.getTime();var d=e instanceof RegExp,p=n instanceof RegExp;if(d!=p)return!1;if(d&&p)return e.toString()==n.toString();var m=i(e);if((s=m.length)!==i(n).length)return!1;for(a=s;0!=a--;)if(!o.call(n,m[a]))return!1;for(a=s;0!=a--;)if(!t(e[l=m[a]],n[l]))return!1;return!0}return e!=e&&n!=n}},function(t,e,n){"use strict";
|
|
/** @license React v16.8.6
|
|
* react.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var r=n(8),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,u=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.concurrent_mode"):60111,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,m=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function g(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(t,e,n,r,i,o,a,s){if(!t){if(t=void 0,void 0===e)t=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],u=0;(t=Error(e.replace(/%s/g,function(){return l[u++]}))).name="Invariant Violation"}throw t.framesToPop=1,t}}(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||_}function x(){}function T(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||_}w.prototype.isReactComponent={},w.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&g("85"),this.updater.enqueueSetState(this,t,e,"setState")},w.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},x.prototype=w.prototype;var E=T.prototype=new x;E.constructor=T,r(E,w.prototype),E.isPureReactComponent=!0;var P={current:null},k={current:null},C=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function O(t,e,n){var r=void 0,i={},a=null,s=null;if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)C.call(e,r)&&!S.hasOwnProperty(r)&&(i[r]=e[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(r in l=t.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:t,key:a,ref:s,props:i,_owner:k.current}}function A(t){return"object"==typeof t&&null!==t&&t.$$typeof===o}var L=/\/+/g,z=[];function M(t,e,n,r){if(z.length){var i=z.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function j(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>z.length&&z.push(t)}function R(t,e,n){return null==t?0:function t(e,n,r,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case a:l=!0}}if(l)return r(i,e,""===n?"."+I(e,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=n+I(s=e[u],u);l+=t(s,c,r,i)}else if(c=null===e||"object"!=typeof e?null:"function"==typeof(c=y&&e[y]||e["@@iterator"])?c:null,"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=t(s=s.value,c=n+I(s,u++),r,i);else"object"===s&&g("31","[object Object]"==(r=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":r,"");return l}(t,"",e,n)}function I(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(t){return e[t]})}(t.key):e.toString(36)}function N(t,e){t.func.call(t.context,e,t.count++)}function D(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?B(t,r,n,function(t){return t}):null!=t&&(A(t)&&(t=function(t,e){return{$$typeof:o,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(L,"$&/")+"/")+n)),r.push(t))}function B(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(L,"$&/")+"/"),R(t,D,e=M(e,o,r,i)),j(e)}function U(){var t=P.current;return null===t&&g("321"),t}var Z={Children:{map:function(t,e,n){if(null==t)return t;var r=[];return B(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;R(t,N,e=M(null,null,e,n)),j(e)},count:function(t){return R(t,function(){return null},null)},toArray:function(t){var e=[];return B(t,e,null,function(t){return t}),e},only:function(t){return A(t)||g("143"),t}},createRef:function(){return{current:null}},Component:w,PureComponent:T,createContext:function(t,e){return void 0===e&&(e=null),(t={$$typeof:f,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:t},t.Consumer=t},forwardRef:function(t){return{$$typeof:d,render:t}},lazy:function(t){return{$$typeof:v,_ctor:t,_status:-1,_result:null}},memo:function(t,e){return{$$typeof:m,type:t,compare:void 0===e?null:e}},useCallback:function(t,e){return U().useCallback(t,e)},useContext:function(t,e){return U().useContext(t,e)},useEffect:function(t,e){return U().useEffect(t,e)},useImperativeHandle:function(t,e,n){return U().useImperativeHandle(t,e,n)},useDebugValue:function(){},useLayoutEffect:function(t,e){return U().useLayoutEffect(t,e)},useMemo:function(t,e){return U().useMemo(t,e)},useReducer:function(t,e,n){return U().useReducer(t,e,n)},useRef:function(t){return U().useRef(t)},useState:function(t){return U().useState(t)},Fragment:s,StrictMode:l,Suspense:p,createElement:O,cloneElement:function(t,e,n){null==t&&g("267",t);var i=void 0,a=r({},t.props),s=t.key,l=t.ref,u=t._owner;if(null!=e){void 0!==e.ref&&(l=e.ref,u=k.current),void 0!==e.key&&(s=""+e.key);var c=void 0;for(i in t.type&&t.type.defaultProps&&(c=t.type.defaultProps),e)C.call(e,i)&&!S.hasOwnProperty(i)&&(a[i]=void 0===e[i]&&void 0!==c?c[i]:e[i])}if(1===(i=arguments.length-2))a.children=n;else if(1<i){c=Array(i);for(var f=0;f<i;f++)c[f]=arguments[f+2];a.children=c}return{$$typeof:o,type:t.type,key:s,ref:l,props:a,_owner:u}},createFactory:function(t){var e=O.bind(null,t);return e.type=t,e},isValidElement:A,version:"16.8.6",unstable_ConcurrentMode:h,unstable_Profiler:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:P,ReactCurrentOwner:k,assign:r}},F={default:Z},W=F&&Z||F;t.exports=W.default||W},function(t,e,n){"use strict";
|
|
/** @license React v16.8.6
|
|
* react-dom.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var r=n(0),i=n(8),o=n(21);function a(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(t,e,n,r,i,o,a,s){if(!t){if(t=void 0,void 0===e)t=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],u=0;(t=Error(e.replace(/%s/g,function(){return l[u++]}))).name="Invariant Violation"}throw t.framesToPop=1,t}}(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}r||a("227");var s=!1,l=null,u=!1,c=null,f={onError:function(t){s=!0,l=t}};function h(t,e,n,r,i,o,a,u,c){s=!1,l=null,function(t,e,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(t){this.onError(t)}}.apply(f,arguments)}var d=null,p={};function m(){if(d)for(var t in p){var e=p[t],n=d.indexOf(t);if(-1<n||a("96",t),!y[n])for(var r in e.extractEvents||a("97",t),y[n]=e,n=e.eventTypes){var i=void 0,o=n[r],s=e,l=r;g.hasOwnProperty(l)&&a("99",l),g[l]=o;var u=o.phasedRegistrationNames;if(u){for(i in u)u.hasOwnProperty(i)&&v(u[i],s,l);i=!0}else o.registrationName?(v(o.registrationName,s,l),i=!0):i=!1;i||a("98",r,t)}}}function v(t,e,n){_[t]&&a("100",t),_[t]=e,b[t]=e.eventTypes[n].dependencies}var y=[],g={},_={},b={},w=null,x=null,T=null;function E(t,e,n){var r=t.type||"unknown-event";t.currentTarget=T(n),function(t,e,n,r,i,o,f,d,p){if(h.apply(this,arguments),s){if(s){var m=l;s=!1,l=null}else a("198"),m=void 0;u||(u=!0,c=m)}}(r,e,void 0,t),t.currentTarget=null}function P(t,e){return null==e&&a("30"),null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function k(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var C=null;function S(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var r=0;r<e.length&&!t.isPropagationStopped();r++)E(t,e[r],n[r]);else e&&E(t,e,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}var O={injectEventPluginOrder:function(t){d&&a("101"),d=Array.prototype.slice.call(t),m()},injectEventPluginsByName:function(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];p.hasOwnProperty(e)&&p[e]===r||(p[e]&&a("102",e),p[e]=r,n=!0)}n&&m()}};function A(t,e){var n=t.stateNode;if(!n)return null;var r=w(n);if(!r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}return t?null:(n&&"function"!=typeof n&&a("231",e,typeof n),n)}function L(t){if(null!==t&&(C=P(C,t)),t=C,C=null,t&&(k(t,S),C&&a("95"),u))throw t=c,u=!1,c=null,t}var z=Math.random().toString(36).slice(2),M="__reactInternalInstance$"+z,j="__reactEventHandlers$"+z;function R(t){if(t[M])return t[M];for(;!t[M];){if(!t.parentNode)return null;t=t.parentNode}return 5===(t=t[M]).tag||6===t.tag?t:null}function I(t){return!(t=t[M])||5!==t.tag&&6!==t.tag?null:t}function N(t){if(5===t.tag||6===t.tag)return t.stateNode;a("33")}function D(t){return t[j]||null}function B(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function U(t,e,n){(e=A(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=P(n._dispatchListeners,e),n._dispatchInstances=P(n._dispatchInstances,t))}function Z(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=B(e);for(e=n.length;0<e--;)U(n[e],"captured",t);for(e=0;e<n.length;e++)U(n[e],"bubbled",t)}}function F(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=A(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=P(n._dispatchListeners,e),n._dispatchInstances=P(n._dispatchInstances,t))}function W(t){t&&t.dispatchConfig.registrationName&&F(t._targetInst,null,t)}function V(t){k(t,Z)}var H=!("undefined"==typeof window||!window.document||!window.document.createElement);function q(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var G={animationend:q("Animation","AnimationEnd"),animationiteration:q("Animation","AnimationIteration"),animationstart:q("Animation","AnimationStart"),transitionend:q("Transition","TransitionEnd")},K={},Y={};function J(t){if(K[t])return K[t];if(!G[t])return t;var e,n=G[t];for(e in n)if(n.hasOwnProperty(e)&&e in Y)return K[t]=n[e];return t}H&&(Y=document.createElement("div").style,"AnimationEvent"in window||(delete G.animationend.animation,delete G.animationiteration.animation,delete G.animationstart.animation),"TransitionEvent"in window||delete G.transitionend.transition);var Q=J("animationend"),X=J("animationiteration"),$=J("animationstart"),tt=J("transitionend"),et="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),nt=null,rt=null,it=null;function ot(){if(it)return it;var t,e,n=rt,r=n.length,i="value"in nt?nt.value:nt.textContent,o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===i[o-e];e++);return it=i.slice(t,1<e?1-e:void 0)}function at(){return!0}function st(){return!1}function lt(t,e,n,r){for(var i in this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface)t.hasOwnProperty(i)&&((e=t[i])?this[i]=e(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?at:st,this.isPropagationStopped=st,this}function ut(t,e,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,t,e,n,r),i}return new this(t,e,n,r)}function ct(t){t instanceof this||a("279"),t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function ft(t){t.eventPool=[],t.getPooled=ut,t.release=ct}i(lt.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=at)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=at)},persist:function(){this.isPersistent=at},isPersistent:st,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=st,this._dispatchInstances=this._dispatchListeners=null}}),lt.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},lt.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var o=new e;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,t),n.extend=r.extend,ft(n),n},ft(lt);var ht=lt.extend({data:null}),dt=lt.extend({data:null}),pt=[9,13,27,32],mt=H&&"CompositionEvent"in window,vt=null;H&&"documentMode"in document&&(vt=document.documentMode);var yt=H&&"TextEvent"in window&&!vt,gt=H&&(!mt||vt&&8<vt&&11>=vt),_t=String.fromCharCode(32),bt={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},wt=!1;function xt(t,e){switch(t){case"keyup":return-1!==pt.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Tt(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var Et=!1;var Pt={eventTypes:bt,extractEvents:function(t,e,n,r){var i=void 0,o=void 0;if(mt)t:{switch(t){case"compositionstart":i=bt.compositionStart;break t;case"compositionend":i=bt.compositionEnd;break t;case"compositionupdate":i=bt.compositionUpdate;break t}i=void 0}else Et?xt(t,n)&&(i=bt.compositionEnd):"keydown"===t&&229===n.keyCode&&(i=bt.compositionStart);return i?(gt&&"ko"!==n.locale&&(Et||i!==bt.compositionStart?i===bt.compositionEnd&&Et&&(o=ot()):(rt="value"in(nt=r)?nt.value:nt.textContent,Et=!0)),i=ht.getPooled(i,e,n,r),o?i.data=o:null!==(o=Tt(n))&&(i.data=o),V(i),o=i):o=null,(t=yt?function(t,e){switch(t){case"compositionend":return Tt(e);case"keypress":return 32!==e.which?null:(wt=!0,_t);case"textInput":return(t=e.data)===_t&&wt?null:t;default:return null}}(t,n):function(t,e){if(Et)return"compositionend"===t||!mt&&xt(t,e)?(t=ot(),it=rt=nt=null,Et=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return gt&&"ko"!==e.locale?null:e.data;default:return null}}(t,n))?((e=dt.getPooled(bt.beforeInput,e,n,r)).data=t,V(e)):e=null,null===o?e:null===e?o:[o,e]}},kt=null,Ct=null,St=null;function Ot(t){if(t=x(t)){"function"!=typeof kt&&a("280");var e=w(t.stateNode);kt(t.stateNode,t.type,e)}}function At(t){Ct?St?St.push(t):St=[t]:Ct=t}function Lt(){if(Ct){var t=Ct,e=St;if(St=Ct=null,Ot(t),e)for(t=0;t<e.length;t++)Ot(e[t])}}function zt(t,e){return t(e)}function Mt(t,e,n){return t(e,n)}function jt(){}var Rt=!1;function It(t,e){if(Rt)return t(e);Rt=!0;try{return zt(t,e)}finally{Rt=!1,(null!==Ct||null!==St)&&(jt(),Lt())}}var Nt={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Dt(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Nt[t.type]:"textarea"===e}function Bt(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function Ut(t){if(!H)return!1;var e=(t="on"+t)in document;return e||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"==typeof e[t]),e}function Zt(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function Ft(t){t._valueTracker||(t._valueTracker=function(t){var e=Zt(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function Wt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Zt(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}var Vt=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Vt.hasOwnProperty("ReactCurrentDispatcher")||(Vt.ReactCurrentDispatcher={current:null});var Ht=/^(.*)[\\\/]/,qt="function"==typeof Symbol&&Symbol.for,Gt=qt?Symbol.for("react.element"):60103,Kt=qt?Symbol.for("react.portal"):60106,Yt=qt?Symbol.for("react.fragment"):60107,Jt=qt?Symbol.for("react.strict_mode"):60108,Qt=qt?Symbol.for("react.profiler"):60114,Xt=qt?Symbol.for("react.provider"):60109,$t=qt?Symbol.for("react.context"):60110,te=qt?Symbol.for("react.concurrent_mode"):60111,ee=qt?Symbol.for("react.forward_ref"):60112,ne=qt?Symbol.for("react.suspense"):60113,re=qt?Symbol.for("react.memo"):60115,ie=qt?Symbol.for("react.lazy"):60116,oe="function"==typeof Symbol&&Symbol.iterator;function ae(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=oe&&t[oe]||t["@@iterator"])?t:null}function se(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case te:return"ConcurrentMode";case Yt:return"Fragment";case Kt:return"Portal";case Qt:return"Profiler";case Jt:return"StrictMode";case ne:return"Suspense"}if("object"==typeof t)switch(t.$$typeof){case $t:return"Context.Consumer";case Xt:return"Context.Provider";case ee:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case re:return se(t.type);case ie:if(t=1===t._status?t._result:null)return se(t)}return null}function le(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break t;default:var r=t._debugOwner,i=t._debugSource,o=se(t.type);n=null,r&&(n=se(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Ht,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}e+=n,t=t.return}while(t);return e}var ue=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ce=Object.prototype.hasOwnProperty,fe={},he={};function de(t,e,n,r,i){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){pe[t]=new de(t,0,!1,t,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];pe[e]=new de(e,1,!1,t[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){pe[t]=new de(t,2,!1,t.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){pe[t]=new de(t,2,!1,t,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){pe[t]=new de(t,3,!1,t.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(t){pe[t]=new de(t,3,!0,t,null)}),["capture","download"].forEach(function(t){pe[t]=new de(t,4,!1,t,null)}),["cols","rows","size","span"].forEach(function(t){pe[t]=new de(t,6,!1,t,null)}),["rowSpan","start"].forEach(function(t){pe[t]=new de(t,5,!1,t.toLowerCase(),null)});var me=/[\-:]([a-z])/g;function ve(t){return t[1].toUpperCase()}function ye(t,e,n,r){var i=pe.hasOwnProperty(e)?pe[e]:null;(null!==i?0===i.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(t,e,n,r){if(null==e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!ce.call(he,t)||!ce.call(fe,t)&&(ue.test(t)?he[t]=!0:(fe[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}function ge(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function _e(t,e){var n=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function be(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=ge(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function we(t,e){null!=(e=e.checked)&&ye(t,"checked",e,!1)}function xe(t,e){we(t,e);var n=ge(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?Ee(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ee(t,e.type,ge(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function Te(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function Ee(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(me,ve);pe[e]=new de(e,1,!1,t,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(me,ve);pe[e]=new de(e,1,!1,t,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(me,ve);pe[e]=new de(e,1,!1,t,"http://www.w3.org/XML/1998/namespace")}),["tabIndex","crossOrigin"].forEach(function(t){pe[t]=new de(t,1,!1,t.toLowerCase(),null)});var Pe={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function ke(t,e,n){return(t=lt.getPooled(Pe.change,t,e,n)).type="change",At(n),V(t),t}var Ce=null,Se=null;function Oe(t){L(t)}function Ae(t){if(Wt(N(t)))return t}function Le(t,e){if("change"===t)return e}var ze=!1;function Me(){Ce&&(Ce.detachEvent("onpropertychange",je),Se=Ce=null)}function je(t){"value"===t.propertyName&&Ae(Se)&&It(Oe,t=ke(Se,t,Bt(t)))}function Re(t,e,n){"focus"===t?(Me(),Se=n,(Ce=e).attachEvent("onpropertychange",je)):"blur"===t&&Me()}function Ie(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return Ae(Se)}function Ne(t,e){if("click"===t)return Ae(e)}function De(t,e){if("input"===t||"change"===t)return Ae(e)}H&&(ze=Ut("input")&&(!document.documentMode||9<document.documentMode));var Be={eventTypes:Pe,_isInputEventSupported:ze,extractEvents:function(t,e,n,r){var i=e?N(e):window,o=void 0,a=void 0,s=i.nodeName&&i.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===i.type?o=Le:Dt(i)?ze?o=De:(o=Ie,a=Re):(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=Ne),o&&(o=o(t,e)))return ke(o,n,r);a&&a(t,i,e),"blur"===t&&(t=i._wrapperState)&&t.controlled&&"number"===i.type&&Ee(i,"number",i.value)}},Ue=lt.extend({view:null,detail:null}),Ze={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fe(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Ze[t])&&!!e[t]}function We(){return Fe}var Ve=0,He=0,qe=!1,Ge=!1,Ke=Ue.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:We,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=Ve;return Ve=t.screenX,qe?"mousemove"===t.type?t.screenX-e:0:(qe=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=He;return He=t.screenY,Ge?"mousemove"===t.type?t.screenY-e:0:(Ge=!0,0)}}),Ye=Ke.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Je={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Qe={eventTypes:Je,extractEvents:function(t,e,n,r){var i="mouseover"===t||"pointerover"===t,o="mouseout"===t||"pointerout"===t;if(i&&(n.relatedTarget||n.fromElement)||!o&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=e,e=(e=n.relatedTarget||n.toElement)?R(e):null):o=null,o===e)return null;var a=void 0,s=void 0,l=void 0,u=void 0;"mouseout"===t||"mouseover"===t?(a=Ke,s=Je.mouseLeave,l=Je.mouseEnter,u="mouse"):"pointerout"!==t&&"pointerover"!==t||(a=Ye,s=Je.pointerLeave,l=Je.pointerEnter,u="pointer");var c=null==o?i:N(o);if(i=null==e?i:N(e),(t=a.getPooled(s,o,n,r)).type=u+"leave",t.target=c,t.relatedTarget=i,(n=a.getPooled(l,e,n,r)).type=u+"enter",n.target=i,n.relatedTarget=c,r=e,o&&r)t:{for(i=r,u=0,a=e=o;a;a=B(a))u++;for(a=0,l=i;l;l=B(l))a++;for(;0<u-a;)e=B(e),u--;for(;0<a-u;)i=B(i),a--;for(;u--;){if(e===i||e===i.alternate)break t;e=B(e),i=B(i)}e=null}else e=null;for(i=e,e=[];o&&o!==i&&(null===(u=o.alternate)||u!==i);)e.push(o),o=B(o);for(o=[];r&&r!==i&&(null===(u=r.alternate)||u!==i);)o.push(r),r=B(r);for(r=0;r<e.length;r++)F(e[r],"bubbled",t);for(r=o.length;0<r--;)F(o[r],"captured",n);return[t,n]}};function Xe(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e}var $e=Object.prototype.hasOwnProperty;function tn(t,e){if(Xe(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!$e.call(e,n[r])||!Xe(t[n[r]],e[n[r]]))return!1;return!0}function en(t){var e=t;if(t.alternate)for(;e.return;)e=e.return;else{if(0!=(2&e.effectTag))return 1;for(;e.return;)if(0!=(2&(e=e.return).effectTag))return 1}return 3===e.tag?2:3}function nn(t){2!==en(t)&&a("188")}function rn(t){if(!(t=function(t){var e=t.alternate;if(!e)return 3===(e=en(t))&&a("188"),1===e?null:t;for(var n=t,r=e;;){var i=n.return,o=i?i.alternate:null;if(!i||!o)break;if(i.child===o.child){for(var s=i.child;s;){if(s===n)return nn(i),t;if(s===r)return nn(i),e;s=s.sibling}a("188")}if(n.return!==r.return)n=i,r=o;else{s=!1;for(var l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}s||a("189")}}n.alternate!==r&&a("190")}return 3!==n.tag&&a("188"),n.stateNode.current===n?t:e}(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}var on=lt.extend({animationName:null,elapsedTime:null,pseudoElement:null}),an=lt.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),sn=Ue.extend({relatedTarget:null});function ln(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var un={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fn=Ue.extend({key:function(t){if(t.key){var e=un[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=ln(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?cn[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:We,charCode:function(t){return"keypress"===t.type?ln(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?ln(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),hn=Ke.extend({dataTransfer:null}),dn=Ue.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:We}),pn=lt.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),mn=Ke.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),vn=[["abort","abort"],[Q,"animationEnd"],[X,"animationIteration"],[$,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[tt,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],yn={},gn={};function _n(t,e){var n=t[0],r="on"+((t=t[1])[0].toUpperCase()+t.slice(1));e={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:e},yn[t]=e,gn[n]=e}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(t){_n(t,!0)}),vn.forEach(function(t){_n(t,!1)});var bn={eventTypes:yn,isInteractiveTopLevelEventType:function(t){return void 0!==(t=gn[t])&&!0===t.isInteractive},extractEvents:function(t,e,n,r){var i=gn[t];if(!i)return null;switch(t){case"keypress":if(0===ln(n))return null;case"keydown":case"keyup":t=fn;break;case"blur":case"focus":t=sn;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=Ke;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=dn;break;case Q:case X:case $:t=on;break;case tt:t=pn;break;case"scroll":t=Ue;break;case"wheel":t=mn;break;case"copy":case"cut":case"paste":t=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=Ye;break;default:t=lt}return V(e=t.getPooled(i,e,n,r)),e}},wn=bn.isInteractiveTopLevelEventType,xn=[];function Tn(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;t.ancestors.push(n),n=R(r)}while(n);for(n=0;n<t.ancestors.length;n++){e=t.ancestors[n];var i=Bt(t.nativeEvent);r=t.topLevelType;for(var o=t.nativeEvent,a=null,s=0;s<y.length;s++){var l=y[s];l&&(l=l.extractEvents(r,e,o,i))&&(a=P(a,l))}L(a)}}var En=!0;function Pn(t,e){if(!e)return null;var n=(wn(t)?Cn:Sn).bind(null,t);e.addEventListener(t,n,!1)}function kn(t,e){if(!e)return null;var n=(wn(t)?Cn:Sn).bind(null,t);e.addEventListener(t,n,!0)}function Cn(t,e){Mt(Sn,t,e)}function Sn(t,e){if(En){var n=Bt(e);if(null===(n=R(n))||"number"!=typeof n.tag||2===en(n)||(n=null),xn.length){var r=xn.pop();r.topLevelType=t,r.nativeEvent=e,r.targetInst=n,t=r}else t={topLevelType:t,nativeEvent:e,targetInst:n,ancestors:[]};try{It(Tn,t)}finally{t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>xn.length&&xn.push(t)}}}var On={},An=0,Ln="_reactListenersID"+(""+Math.random()).slice(2);function zn(t){return Object.prototype.hasOwnProperty.call(t,Ln)||(t[Ln]=An++,On[t[Ln]]={}),On[t[Ln]]}function Mn(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function jn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Rn(t,e){var n,r=jn(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=jn(r)}}function In(){for(var t=window,e=Mn();e instanceof t.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(t){n=!1}if(!n)break;e=Mn((t=e.contentWindow).document)}return e}function Nn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}function Dn(t){var e=In(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&function t(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}(n.ownerDocument.documentElement,n)){if(null!==r&&Nn(n))if(e=r.start,void 0===(t=r.end)&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if((t=(e=n.ownerDocument||document)&&e.defaultView||window).getSelection){t=t.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!t.extend&&o>r&&(i=r,r=o,o=i),i=Rn(n,o);var a=Rn(n,r);i&&a&&(1!==t.rangeCount||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&((e=e.createRange()).setStart(i.node,i.offset),t.removeAllRanges(),o>r?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<e.length;n++)(t=e[n]).element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Bn=H&&"documentMode"in document&&11>=document.documentMode,Un={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Zn=null,Fn=null,Wn=null,Vn=!1;function Hn(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Vn||null==Zn||Zn!==Mn(n)?null:("selectionStart"in(n=Zn)&&Nn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Wn&&tn(Wn,n)?null:(Wn=n,(t=lt.getPooled(Un.select,Fn,t,e)).type="select",t.target=Zn,V(t),t))}var qn={eventTypes:Un,extractEvents:function(t,e,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){t:{o=zn(o),i=b.onSelect;for(var a=0;a<i.length;a++){var s=i[a];if(!o.hasOwnProperty(s)||!o[s]){o=!1;break t}}o=!0}i=!o}if(i)return null;switch(o=e?N(e):window,t){case"focus":(Dt(o)||"true"===o.contentEditable)&&(Zn=o,Fn=e,Wn=null);break;case"blur":Wn=Fn=Zn=null;break;case"mousedown":Vn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vn=!1,Hn(n,r);case"selectionchange":if(Bn)break;case"keydown":case"keyup":return Hn(n,r)}return null}};function Gn(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,function(t){null!=t&&(e+=t)}),e}(e.children))&&(t.children=e),t}function Kn(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+ge(n),e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function Yn(t,e){return null!=e.dangerouslySetInnerHTML&&a("91"),i({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Jn(t,e){var n=e.value;null==n&&(n=e.defaultValue,null!=(e=e.children)&&(null!=n&&a("92"),Array.isArray(e)&&(1>=e.length||a("93"),e=e[0]),n=e),null==n&&(n="")),t._wrapperState={initialValue:ge(n)}}function Qn(t,e){var n=ge(e.value),r=ge(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function Xn(t){var e=t.textContent;e===t._wrapperState.initialValue&&(t.value=e)}O.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w=D,x=I,T=N,O.injectEventPluginsByName({SimpleEventPlugin:bn,EnterLeaveEventPlugin:Qe,ChangeEventPlugin:Be,SelectEventPlugin:qn,BeforeInputEventPlugin:Pt});var $n={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function tr(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function er(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?tr(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var nr=void 0,rr=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n)})}:t}(function(t,e){if(t.namespaceURI!==$n.svg||"innerHTML"in t)t.innerHTML=e;else{for((nr=nr||document.createElement("div")).innerHTML="<svg>"+e+"</svg>",e=nr.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ir(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}var or={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ar=["Webkit","ms","Moz","O"];function sr(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||or.hasOwnProperty(t)&&or[t]?(""+e).trim():e+"px"}function lr(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=sr(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(or).forEach(function(t){ar.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),or[e]=or[t]})});var ur=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cr(t,e){e&&(ur[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&a("137",t,""),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&a("60"),"object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML||a("61")),null!=e.style&&"object"!=typeof e.style&&a("62",""))}function fr(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function hr(t,e){var n=zn(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=b[e];for(var r=0;r<e.length;r++){var i=e[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":kn("scroll",t);break;case"focus":case"blur":kn("focus",t),kn("blur",t),n.blur=!0,n.focus=!0;break;case"cancel":case"close":Ut(i)&&kn(i,t);break;case"invalid":case"submit":case"reset":break;default:-1===et.indexOf(i)&&Pn(i,t)}n[i]=!0}}}function dr(){}var pr=null,mr=null;function vr(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function yr(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var gr="function"==typeof setTimeout?setTimeout:void 0,_r="function"==typeof clearTimeout?clearTimeout:void 0,br=o.unstable_scheduleCallback,wr=o.unstable_cancelCallback;function xr(t){for(t=t.nextSibling;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t}function Tr(t){for(t=t.firstChild;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t}new Set;var Er=[],Pr=-1;function kr(t){0>Pr||(t.current=Er[Pr],Er[Pr]=null,Pr--)}function Cr(t,e){Er[++Pr]=t.current,t.current=e}var Sr={},Or={current:Sr},Ar={current:!1},Lr=Sr;function zr(t,e){var n=t.type.contextTypes;if(!n)return Sr;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Mr(t){return null!=(t=t.childContextTypes)}function jr(t){kr(Ar),kr(Or)}function Rr(t){kr(Ar),kr(Or)}function Ir(t,e,n){Or.current!==Sr&&a("168"),Cr(Or,e),Cr(Ar,n)}function Nr(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())o in t||a("108",se(e)||"Unknown",o);return i({},n,r)}function Dr(t){var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||Sr,Lr=Or.current,Cr(Or,e),Cr(Ar,Ar.current),!0}function Br(t,e,n){var r=t.stateNode;r||a("169"),n?(e=Nr(t,e,Lr),r.__reactInternalMemoizedMergedChildContext=e,kr(Ar),kr(Or),Cr(Or,e)):kr(Ar),Cr(Ar,n)}var Ur=null,Zr=null;function Fr(t){return function(e){try{return t(e)}catch(t){}}}function Wr(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Vr(t,e,n,r){return new Wr(t,e,n,r)}function Hr(t){return!(!(t=t.prototype)||!t.isReactComponent)}function qr(t,e){var n=t.alternate;return null===n?((n=Vr(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,n.contextDependencies=t.contextDependencies,n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Gr(t,e,n,r,i,o){var s=2;if(r=t,"function"==typeof t)Hr(t)&&(s=1);else if("string"==typeof t)s=5;else t:switch(t){case Yt:return Kr(n.children,i,o,e);case te:return Yr(n,3|i,o,e);case Jt:return Yr(n,2|i,o,e);case Qt:return(t=Vr(12,n,e,4|i)).elementType=Qt,t.type=Qt,t.expirationTime=o,t;case ne:return(t=Vr(13,n,e,i)).elementType=ne,t.type=ne,t.expirationTime=o,t;default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case Xt:s=10;break t;case $t:s=9;break t;case ee:s=11;break t;case re:s=14;break t;case ie:s=16,r=null;break t}a("130",null==t?t:typeof t,"")}return(e=Vr(s,n,e,i)).elementType=t,e.type=r,e.expirationTime=o,e}function Kr(t,e,n,r){return(t=Vr(7,t,r,e)).expirationTime=n,t}function Yr(t,e,n,r){return t=Vr(8,t,r,e),e=0==(1&e)?Jt:te,t.elementType=e,t.type=e,t.expirationTime=n,t}function Jr(t,e,n){return(t=Vr(6,t,null,e)).expirationTime=n,t}function Qr(t,e,n){return(e=Vr(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Xr(t,e){t.didError=!1;var n=t.earliestPendingTime;0===n?t.earliestPendingTime=t.latestPendingTime=e:n<e?t.earliestPendingTime=e:t.latestPendingTime>e&&(t.latestPendingTime=e),ei(e,t)}function $r(t,e){t.didError=!1,t.latestPingedTime>=e&&(t.latestPingedTime=0);var n=t.earliestPendingTime,r=t.latestPendingTime;n===e?t.earliestPendingTime=r===e?t.latestPendingTime=0:r:r===e&&(t.latestPendingTime=n),n=t.earliestSuspendedTime,r=t.latestSuspendedTime,0===n?t.earliestSuspendedTime=t.latestSuspendedTime=e:n<e?t.earliestSuspendedTime=e:r>e&&(t.latestSuspendedTime=e),ei(e,t)}function ti(t,e){var n=t.earliestPendingTime;return n>e&&(e=n),(t=t.earliestSuspendedTime)>e&&(e=t),e}function ei(t,e){var n=e.earliestSuspendedTime,r=e.latestSuspendedTime,i=e.earliestPendingTime,o=e.latestPingedTime;0===(i=0!==i?i:o)&&(0===t||r<t)&&(i=r),0!==(t=i)&&n>t&&(t=n),e.nextExpirationTimeToWorkOn=i,e.expirationTime=t}function ni(t,e){if(t&&t.defaultProps)for(var n in e=i({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}var ri=(new r.Component).refs;function ii(t,e,n,r){n=null==(n=n(r,e=t.memoizedState))?e:i({},e,n),t.memoizedState=n,null!==(r=t.updateQueue)&&0===t.expirationTime&&(r.baseState=n)}var oi={isMounted:function(t){return!!(t=t._reactInternalFiber)&&2===en(t)},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=ws(),i=Yo(r=Ka(r,t));i.payload=e,null!=n&&(i.callback=n),Fa(),Qo(t,i),Qa(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=ws(),i=Yo(r=Ka(r,t));i.tag=Wo,i.payload=e,null!=n&&(i.callback=n),Fa(),Qo(t,i),Qa(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=ws(),r=Yo(n=Ka(n,t));r.tag=Vo,null!=e&&(r.callback=e),Fa(),Qo(t,r),Qa(t,n)}};function ai(t,e,n,r,i,o,a){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!tn(n,r)||!tn(i,o))}function si(t,e,n){var r=!1,i=Sr,o=e.contextType;return"object"==typeof o&&null!==o?o=Zo(o):(i=Mr(e)?Lr:Or.current,o=(r=null!=(r=e.contextTypes))?zr(t,i):Sr),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=oi,t.stateNode=e,e._reactInternalFiber=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function li(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&oi.enqueueReplaceState(e,e.state,null)}function ui(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=ri;var o=e.contextType;"object"==typeof o&&null!==o?i.context=Zo(o):(o=Mr(e)?Lr:Or.current,i.context=zr(t,o)),null!==(o=t.updateQueue)&&(ea(t,o,n,i,r),i.state=t.memoizedState),"function"==typeof(o=e.getDerivedStateFromProps)&&(ii(t,e,o,n),i.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(e=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&oi.enqueueReplaceState(i,i.state,null),null!==(o=t.updateQueue)&&(ea(t,o,n,i,r),i.state=t.memoizedState)),"function"==typeof i.componentDidMount&&(t.effectTag|=4)}var ci=Array.isArray;function fi(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&a("309"),r=n.stateNode),r||a("147",t);var i=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===i?e.ref:((e=function(t){var e=r.refs;e===ri&&(e=r.refs={}),null===t?delete e[i]:e[i]=t})._stringRef=i,e)}"string"!=typeof t&&a("284"),n._owner||a("290",t)}return t}function hi(t,e){"textarea"!==t.type&&a("31","[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,"")}function di(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e,n){return(t=qr(t,e)).index=0,t.sibling=null,t}function o(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.effectTag=2,n):r:(e.effectTag=2,n):n}function s(e){return t&&null===e.alternate&&(e.effectTag=2),e}function l(t,e,n,r){return null===e||6!==e.tag?((e=Jr(n,t.mode,r)).return=t,e):((e=i(e,n)).return=t,e)}function u(t,e,n,r){return null!==e&&e.elementType===n.type?((r=i(e,n.props)).ref=fi(t,e,n),r.return=t,r):((r=Gr(n.type,n.key,n.props,null,t.mode,r)).ref=fi(t,e,n),r.return=t,r)}function c(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Qr(n,t.mode,r)).return=t,e):((e=i(e,n.children||[])).return=t,e)}function f(t,e,n,r,o){return null===e||7!==e.tag?((e=Kr(n,t.mode,r,o)).return=t,e):((e=i(e,n)).return=t,e)}function h(t,e,n){if("string"==typeof e||"number"==typeof e)return(e=Jr(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case Gt:return(n=Gr(e.type,e.key,e.props,null,t.mode,n)).ref=fi(t,null,e),n.return=t,n;case Kt:return(e=Qr(e,t.mode,n)).return=t,e}if(ci(e)||ae(e))return(e=Kr(e,t.mode,n,null)).return=t,e;hi(t,e)}return null}function d(t,e,n,r){var i=null!==e?e.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Gt:return n.key===i?n.type===Yt?f(t,e,n.props.children,r,i):u(t,e,n,r):null;case Kt:return n.key===i?c(t,e,n,r):null}if(ci(n)||ae(n))return null!==i?null:f(t,e,n,r,null);hi(t,n)}return null}function p(t,e,n,r,i){if("string"==typeof r||"number"==typeof r)return l(e,t=t.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Gt:return t=t.get(null===r.key?n:r.key)||null,r.type===Yt?f(e,t,r.props.children,i,r.key):u(e,t,r,i);case Kt:return c(e,t=t.get(null===r.key?n:r.key)||null,r,i)}if(ci(r)||ae(r))return f(e,t=t.get(n)||null,r,i,null);hi(e,r)}return null}function m(i,a,s,l){for(var u=null,c=null,f=a,m=a=0,v=null;null!==f&&m<s.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var y=d(i,f,s[m],l);if(null===y){null===f&&(f=v);break}t&&f&&null===y.alternate&&e(i,f),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y,f=v}if(m===s.length)return n(i,f),u;if(null===f){for(;m<s.length;m++)(f=h(i,s[m],l))&&(a=o(f,a,m),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);m<s.length;m++)(v=p(f,i,m,s[m],l))&&(t&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v);return t&&f.forEach(function(t){return e(i,t)}),u}function v(i,s,l,u){var c=ae(l);"function"!=typeof c&&a("150"),null==(l=c.call(l))&&a("151");for(var f=c=null,m=s,v=s=0,y=null,g=l.next();null!==m&&!g.done;v++,g=l.next()){m.index>v?(y=m,m=null):y=m.sibling;var _=d(i,m,g.value,u);if(null===_){m||(m=y);break}t&&m&&null===_.alternate&&e(i,m),s=o(_,s,v),null===f?c=_:f.sibling=_,f=_,m=y}if(g.done)return n(i,m),c;if(null===m){for(;!g.done;v++,g=l.next())null!==(g=h(i,g.value,u))&&(s=o(g,s,v),null===f?c=g:f.sibling=g,f=g);return c}for(m=r(i,m);!g.done;v++,g=l.next())null!==(g=p(m,i,v,g.value,u))&&(t&&null!==g.alternate&&m.delete(null===g.key?v:g.key),s=o(g,s,v),null===f?c=g:f.sibling=g,f=g);return t&&m.forEach(function(t){return e(i,t)}),c}return function(t,r,o,l){var u="object"==typeof o&&null!==o&&o.type===Yt&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case Gt:t:{for(c=o.key,u=r;null!==u;){if(u.key===c){if(7===u.tag?o.type===Yt:u.elementType===o.type){n(t,u.sibling),(r=i(u,o.type===Yt?o.props.children:o.props)).ref=fi(t,u,o),r.return=t,t=r;break t}n(t,u);break}e(t,u),u=u.sibling}o.type===Yt?((r=Kr(o.props.children,t.mode,l,o.key)).return=t,t=r):((l=Gr(o.type,o.key,o.props,null,t.mode,l)).ref=fi(t,r,o),l.return=t,t=l)}return s(t);case Kt:t:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),(r=i(r,o.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=Qr(o,t.mode,l)).return=t,t=r}return s(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),(r=i(r,o)).return=t,t=r):(n(t,r),(r=Jr(o,t.mode,l)).return=t,t=r),s(t);if(ci(o))return m(t,r,o,l);if(ae(o))return v(t,r,o,l);if(c&&hi(t,o),void 0===o&&!u)switch(t.tag){case 1:case 0:a("152",(l=t.type).displayName||l.name||"Component")}return n(t,r)}}var pi=di(!0),mi=di(!1),vi={},yi={current:vi},gi={current:vi},_i={current:vi};function bi(t){return t===vi&&a("174"),t}function wi(t,e){Cr(_i,e),Cr(gi,t),Cr(yi,vi);var n=e.nodeType;switch(n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:er(null,"");break;default:e=er(e=(n=8===n?e.parentNode:e).namespaceURI||null,n=n.tagName)}kr(yi),Cr(yi,e)}function xi(t){kr(yi),kr(gi),kr(_i)}function Ti(t){bi(_i.current);var e=bi(yi.current),n=er(e,t.type);e!==n&&(Cr(gi,t),Cr(yi,n))}function Ei(t){gi.current===t&&(kr(yi),kr(gi))}var Pi=0,ki=2,Ci=4,Si=8,Oi=16,Ai=32,Li=64,zi=128,Mi=Vt.ReactCurrentDispatcher,ji=0,Ri=null,Ii=null,Ni=null,Di=null,Bi=null,Ui=null,Zi=0,Fi=null,Wi=0,Vi=!1,Hi=null,qi=0;function Gi(){a("321")}function Ki(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Xe(t[n],e[n]))return!1;return!0}function Yi(t,e,n,r,i,o){if(ji=o,Ri=e,Ni=null!==t?t.memoizedState:null,Mi.current=null===Ni?lo:uo,e=n(r,i),Vi){do{Vi=!1,qi+=1,Ni=null!==t?t.memoizedState:null,Ui=Di,Fi=Bi=Ii=null,Mi.current=uo,e=n(r,i)}while(Vi);Hi=null,qi=0}return Mi.current=so,(t=Ri).memoizedState=Di,t.expirationTime=Zi,t.updateQueue=Fi,t.effectTag|=Wi,t=null!==Ii&&null!==Ii.next,ji=0,Ui=Bi=Di=Ni=Ii=Ri=null,Zi=0,Fi=null,Wi=0,t&&a("300"),e}function Ji(){Mi.current=so,ji=0,Ui=Bi=Di=Ni=Ii=Ri=null,Zi=0,Fi=null,Wi=0,Vi=!1,Hi=null,qi=0}function Qi(){var t={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Bi?Di=Bi=t:Bi=Bi.next=t,Bi}function Xi(){if(null!==Ui)Ui=(Bi=Ui).next,Ni=null!==(Ii=Ni)?Ii.next:null;else{null===Ni&&a("310");var t={memoizedState:(Ii=Ni).memoizedState,baseState:Ii.baseState,queue:Ii.queue,baseUpdate:Ii.baseUpdate,next:null};Bi=null===Bi?Di=t:Bi.next=t,Ni=Ii.next}return Bi}function $i(t,e){return"function"==typeof e?e(t):e}function to(t){var e=Xi(),n=e.queue;if(null===n&&a("311"),n.lastRenderedReducer=t,0<qi){var r=n.dispatch;if(null!==Hi){var i=Hi.get(n);if(void 0!==i){Hi.delete(n);var o=e.memoizedState;do{o=t(o,i.action),i=i.next}while(null!==i);return Xe(o,e.memoizedState)||(wo=!0),e.memoizedState=o,e.baseUpdate===n.last&&(e.baseState=o),n.lastRenderedState=o,[o,r]}}return[e.memoizedState,r]}r=n.last;var s=e.baseUpdate;if(o=e.baseState,null!==s?(null!==r&&(r.next=null),r=s.next):r=null!==r?r.next:null,null!==r){var l=i=null,u=r,c=!1;do{var f=u.expirationTime;f<ji?(c||(c=!0,l=s,i=o),f>Zi&&(Zi=f)):o=u.eagerReducer===t?u.eagerState:t(o,u.action),s=u,u=u.next}while(null!==u&&u!==r);c||(l=s,i=o),Xe(o,e.memoizedState)||(wo=!0),e.memoizedState=o,e.baseUpdate=l,e.baseState=i,n.lastRenderedState=o}return[e.memoizedState,n.dispatch]}function eo(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===Fi?(Fi={lastEffect:null}).lastEffect=t.next=t:null===(e=Fi.lastEffect)?Fi.lastEffect=t.next=t:(n=e.next,e.next=t,t.next=n,Fi.lastEffect=t),t}function no(t,e,n,r){var i=Qi();Wi|=t,i.memoizedState=eo(e,n,void 0,void 0===r?null:r)}function ro(t,e,n,r){var i=Xi();r=void 0===r?null:r;var o=void 0;if(null!==Ii){var a=Ii.memoizedState;if(o=a.destroy,null!==r&&Ki(r,a.deps))return void eo(Pi,n,o,r)}Wi|=t,i.memoizedState=eo(e,n,o,r)}function io(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function oo(){}function ao(t,e,n){25>qi||a("301");var r=t.alternate;if(t===Ri||null!==r&&r===Ri)if(Vi=!0,t={expirationTime:ji,action:n,eagerReducer:null,eagerState:null,next:null},null===Hi&&(Hi=new Map),void 0===(n=Hi.get(e)))Hi.set(e,t);else{for(e=n;null!==e.next;)e=e.next;e.next=t}else{Fa();var i=ws(),o={expirationTime:i=Ka(i,t),action:n,eagerReducer:null,eagerState:null,next:null},s=e.last;if(null===s)o.next=o;else{var l=s.next;null!==l&&(o.next=l),s.next=o}if(e.last=o,0===t.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=e.lastRenderedReducer))try{var u=e.lastRenderedState,c=r(u,n);if(o.eagerReducer=r,o.eagerState=c,Xe(c,u))return}catch(t){}Qa(t,i)}}var so={readContext:Zo,useCallback:Gi,useContext:Gi,useEffect:Gi,useImperativeHandle:Gi,useLayoutEffect:Gi,useMemo:Gi,useReducer:Gi,useRef:Gi,useState:Gi,useDebugValue:Gi},lo={readContext:Zo,useCallback:function(t,e){return Qi().memoizedState=[t,void 0===e?null:e],t},useContext:Zo,useEffect:function(t,e){return no(516,zi|Li,t,e)},useImperativeHandle:function(t,e,n){return n=null!=n?n.concat([t]):null,no(4,Ci|Ai,io.bind(null,e,t),n)},useLayoutEffect:function(t,e){return no(4,Ci|Ai,t,e)},useMemo:function(t,e){var n=Qi();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Qi();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t=(t=r.queue={last:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e}).dispatch=ao.bind(null,Ri,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},Qi().memoizedState=t},useState:function(t){var e=Qi();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={last:null,dispatch:null,lastRenderedReducer:$i,lastRenderedState:t}).dispatch=ao.bind(null,Ri,t),[e.memoizedState,t]},useDebugValue:oo},uo={readContext:Zo,useCallback:function(t,e){var n=Xi();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Ki(e,r[1])?r[0]:(n.memoizedState=[t,e],t)},useContext:Zo,useEffect:function(t,e){return ro(516,zi|Li,t,e)},useImperativeHandle:function(t,e,n){return n=null!=n?n.concat([t]):null,ro(4,Ci|Ai,io.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ro(4,Ci|Ai,t,e)},useMemo:function(t,e){var n=Xi();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Ki(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)},useReducer:to,useRef:function(){return Xi().memoizedState},useState:function(t){return to($i)},useDebugValue:oo},co=null,fo=null,ho=!1;function po(t,e){var n=Vr(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function mo(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);case 13:default:return!1}}function vo(t){if(ho){var e=fo;if(e){var n=e;if(!mo(t,e)){if(!(e=xr(n))||!mo(t,e))return t.effectTag|=2,ho=!1,void(co=t);po(co,n)}co=t,fo=Tr(e)}else t.effectTag|=2,ho=!1,co=t}}function yo(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&18!==t.tag;)t=t.return;co=t}function go(t){if(t!==co)return!1;if(!ho)return yo(t),ho=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!yr(e,t.memoizedProps))for(e=fo;e;)po(t,e),e=xr(e);return yo(t),fo=co?xr(t.stateNode):null,!0}function _o(){fo=co=null,ho=!1}var bo=Vt.ReactCurrentOwner,wo=!1;function xo(t,e,n,r){e.child=null===t?mi(e,null,n,r):pi(e,t.child,n,r)}function To(t,e,n,r,i){n=n.render;var o=e.ref;return Uo(e,i),r=Yi(t,e,n,r,o,i),null===t||wo?(e.effectTag|=1,xo(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),zo(t,e,i))}function Eo(t,e,n,r,i,o){if(null===t){var a=n.type;return"function"!=typeof a||Hr(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Gr(n.type,null,r,null,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,Po(t,e,a,r,i,o))}return a=t.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:tn)(i,r)&&t.ref===e.ref)?zo(t,e,o):(e.effectTag|=1,(t=qr(a,r)).ref=e.ref,t.return=e,e.child=t)}function Po(t,e,n,r,i,o){return null!==t&&tn(t.memoizedProps,r)&&t.ref===e.ref&&(wo=!1,i<o)?zo(t,e,o):Co(t,e,n,r,o)}function ko(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function Co(t,e,n,r,i){var o=Mr(n)?Lr:Or.current;return o=zr(e,o),Uo(e,i),n=Yi(t,e,n,r,o,i),null===t||wo?(e.effectTag|=1,xo(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),zo(t,e,i))}function So(t,e,n,r,i){if(Mr(n)){var o=!0;Dr(e)}else o=!1;if(Uo(e,i),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),si(e,n,r),ui(e,n,r,i),r=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Zo(u):u=zr(e,u=Mr(n)?Lr:Or.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&li(e,a,r,u),qo=!1;var h=e.memoizedState;l=a.state=h;var d=e.updateQueue;null!==d&&(ea(e,d,r,a,i),l=e.memoizedState),s!==r||h!==l||Ar.current||qo?("function"==typeof c&&(ii(e,n,c,r),l=e.memoizedState),(s=qo||ai(e,n,s,r,h,l,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(e.effectTag|=4)):("function"==typeof a.componentDidMount&&(e.effectTag|=4),e.memoizedProps=r,e.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(e.effectTag|=4),r=!1)}else a=e.stateNode,s=e.memoizedProps,a.props=e.type===e.elementType?s:ni(e.type,s),l=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=Zo(u):u=zr(e,u=Mr(n)?Lr:Or.current),(f="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&li(e,a,r,u),qo=!1,l=e.memoizedState,h=a.state=l,null!==(d=e.updateQueue)&&(ea(e,d,r,a,i),h=e.memoizedState),s!==r||l!==h||Ar.current||qo?("function"==typeof c&&(ii(e,n,c,r),h=e.memoizedState),(c=qo||ai(e,n,s,r,l,h,u))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof a.componentDidUpdate&&(e.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=256),e.memoizedProps=r,e.memoizedState=h),a.props=r,a.state=h,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=256),r=!1);return Oo(t,e,n,r,o,i)}function Oo(t,e,n,r,i,o){ko(t,e);var a=0!=(64&e.effectTag);if(!r&&!a)return i&&Br(e,n,!1),zo(t,e,o);r=e.stateNode,bo.current=e;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return e.effectTag|=1,null!==t&&a?(e.child=pi(e,t.child,null,o),e.child=pi(e,null,s,o)):xo(t,e,s,o),e.memoizedState=r.state,i&&Br(e,n,!0),e.child}function Ao(t){var e=t.stateNode;e.pendingContext?Ir(0,e.pendingContext,e.pendingContext!==e.context):e.context&&Ir(0,e.context,!1),wi(t,e.containerInfo)}function Lo(t,e,n){var r=e.mode,i=e.pendingProps,o=e.memoizedState;if(0==(64&e.effectTag)){o=null;var a=!1}else o={timedOutAt:null!==o?o.timedOutAt:0},a=!0,e.effectTag&=-65;if(null===t)if(a){var s=i.fallback;t=Kr(null,r,0,null),0==(1&e.mode)&&(t.child=null!==e.memoizedState?e.child.child:e.child),r=Kr(s,r,n,null),t.sibling=r,(n=t).return=r.return=e}else n=r=mi(e,null,i.children,n);else null!==t.memoizedState?(s=(r=t.child).sibling,a?(n=i.fallback,i=qr(r,r.pendingProps),0==(1&e.mode)&&((a=null!==e.memoizedState?e.child.child:e.child)!==r.child&&(i.child=a)),r=i.sibling=qr(s,n,s.expirationTime),n=i,i.childExpirationTime=0,n.return=r.return=e):n=r=pi(e,r.child,i.children,n)):(s=t.child,a?(a=i.fallback,(i=Kr(null,r,0,null)).child=s,0==(1&e.mode)&&(i.child=null!==e.memoizedState?e.child.child:e.child),(r=i.sibling=Kr(a,r,n,null)).effectTag|=2,n=i,i.childExpirationTime=0,n.return=r.return=e):r=n=pi(e,s,i.children,n)),e.stateNode=t.stateNode;return e.memoizedState=o,e.child=n,r}function zo(t,e,n){if(null!==t&&(e.contextDependencies=t.contextDependencies),e.childExpirationTime<n)return null;if(null!==t&&e.child!==t.child&&a("153"),null!==e.child){for(n=qr(t=e.child,t.pendingProps,t.expirationTime),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=qr(t,t.pendingProps,t.expirationTime)).return=e;n.sibling=null}return e.child}function Mo(t,e,n){var r=e.expirationTime;if(null!==t){if(t.memoizedProps!==e.pendingProps||Ar.current)wo=!0;else if(r<n){switch(wo=!1,e.tag){case 3:Ao(e),_o();break;case 5:Ti(e);break;case 1:Mr(e.type)&&Dr(e);break;case 4:wi(e,e.stateNode.containerInfo);break;case 10:Do(e,e.memoizedProps.value);break;case 13:if(null!==e.memoizedState)return 0!==(r=e.child.childExpirationTime)&&r>=n?Lo(t,e,n):null!==(e=zo(t,e,n))?e.sibling:null}return zo(t,e,n)}}else wo=!1;switch(e.expirationTime=0,e.tag){case 2:r=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps;var i=zr(e,Or.current);if(Uo(e,n),i=Yi(null,e,r,t,i,n),e.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(e.tag=1,Ji(),Mr(r)){var o=!0;Dr(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var s=r.getDerivedStateFromProps;"function"==typeof s&&ii(e,r,s,t),i.updater=oi,e.stateNode=i,i._reactInternalFiber=e,ui(e,r,t,n),e=Oo(null,e,r,!0,o,n)}else e.tag=0,xo(null,e,i,n),e=e.child;return e;case 16:switch(i=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),o=e.pendingProps,t=function(t){var e=t._result;switch(t._status){case 1:return e;case 2:case 0:throw e;default:switch(t._status=0,(e=(e=t._ctor)()).then(function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)},function(e){0===t._status&&(t._status=2,t._result=e)}),t._status){case 1:return t._result;case 2:throw t._result}throw t._result=e,e}}(i),e.type=t,i=e.tag=function(t){if("function"==typeof t)return Hr(t)?1:0;if(null!=t){if((t=t.$$typeof)===ee)return 11;if(t===re)return 14}return 2}(t),o=ni(t,o),s=void 0,i){case 0:s=Co(null,e,t,o,n);break;case 1:s=So(null,e,t,o,n);break;case 11:s=To(null,e,t,o,n);break;case 14:s=Eo(null,e,t,ni(t.type,o),r,n);break;default:a("306",t,"")}return s;case 0:return r=e.type,i=e.pendingProps,Co(t,e,r,i=e.elementType===r?i:ni(r,i),n);case 1:return r=e.type,i=e.pendingProps,So(t,e,r,i=e.elementType===r?i:ni(r,i),n);case 3:return Ao(e),null===(r=e.updateQueue)&&a("282"),i=null!==(i=e.memoizedState)?i.element:null,ea(e,r,e.pendingProps,null,n),(r=e.memoizedState.element)===i?(_o(),e=zo(t,e,n)):(i=e.stateNode,(i=(null===t||null===t.child)&&i.hydrate)&&(fo=Tr(e.stateNode.containerInfo),co=e,i=ho=!0),i?(e.effectTag|=2,e.child=mi(e,null,r,n)):(xo(t,e,r,n),_o()),e=e.child),e;case 5:return Ti(e),null===t&&vo(e),r=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,s=i.children,yr(r,i)?s=null:null!==o&&yr(r,o)&&(e.effectTag|=16),ko(t,e),1!==n&&1&e.mode&&i.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(xo(t,e,s,n),e=e.child),e;case 6:return null===t&&vo(e),null;case 13:return Lo(t,e,n);case 4:return wi(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=pi(e,null,r,n):xo(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,To(t,e,r,i=e.elementType===r?i:ni(r,i),n);case 7:return xo(t,e,e.pendingProps,n),e.child;case 8:case 12:return xo(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(r=e.type._context,i=e.pendingProps,s=e.memoizedProps,Do(e,o=i.value),null!==s){var l=s.value;if(0===(o=Xe(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!Ar.current){e=zo(t,e,n);break t}}else for(null!==(l=e.child)&&(l.return=e);null!==l;){var u=l.contextDependencies;if(null!==u){s=l.child;for(var c=u.first;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===l.tag&&((c=Yo(n)).tag=Vo,Qo(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),c=n;for(var f=l.return;null!==f;){var h=f.alternate;if(f.childExpirationTime<c)f.childExpirationTime=c,null!==h&&h.childExpirationTime<c&&(h.childExpirationTime=c);else{if(!(null!==h&&h.childExpirationTime<c))break;h.childExpirationTime=c}f=f.return}u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else s=10===l.tag&&l.type===e.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===e){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}}xo(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=(o=e.pendingProps).children,Uo(e,n),r=r(i=Zo(i,o.unstable_observedBits)),e.effectTag|=1,xo(t,e,r,n),e.child;case 14:return o=ni(i=e.type,e.pendingProps),Eo(t,e,i,o=ni(i.type,o),r,n);case 15:return Po(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:ni(r,i),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,Mr(r)?(t=!0,Dr(e)):t=!1,Uo(e,n),si(e,r,i),ui(e,r,i,n),Oo(null,e,r,!0,t,n)}a("156")}var jo={current:null},Ro=null,Io=null,No=null;function Do(t,e){var n=t.type._context;Cr(jo,n._currentValue),n._currentValue=e}function Bo(t){var e=jo.current;kr(jo),t.type._context._currentValue=e}function Uo(t,e){Ro=t,No=Io=null;var n=t.contextDependencies;null!==n&&n.expirationTime>=e&&(wo=!0),t.contextDependencies=null}function Zo(t,e){return No!==t&&!1!==e&&0!==e&&("number"==typeof e&&1073741823!==e||(No=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Io?(null===Ro&&a("308"),Io=e,Ro.contextDependencies={first:e,expirationTime:0}):Io=Io.next=e),t._currentValue}var Fo=0,Wo=1,Vo=2,Ho=3,qo=!1;function Go(t){return{baseState:t,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ko(t){return{baseState:t.baseState,firstUpdate:t.firstUpdate,lastUpdate:t.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Yo(t){return{expirationTime:t,tag:Fo,payload:null,callback:null,next:null,nextEffect:null}}function Jo(t,e){null===t.lastUpdate?t.firstUpdate=t.lastUpdate=e:(t.lastUpdate.next=e,t.lastUpdate=e)}function Qo(t,e){var n=t.alternate;if(null===n){var r=t.updateQueue,i=null;null===r&&(r=t.updateQueue=Go(t.memoizedState))}else r=t.updateQueue,i=n.updateQueue,null===r?null===i?(r=t.updateQueue=Go(t.memoizedState),i=n.updateQueue=Go(n.memoizedState)):r=t.updateQueue=Ko(i):null===i&&(i=n.updateQueue=Ko(r));null===i||r===i?Jo(r,e):null===r.lastUpdate||null===i.lastUpdate?(Jo(r,e),Jo(i,e)):(Jo(r,e),i.lastUpdate=e)}function Xo(t,e){var n=t.updateQueue;null===(n=null===n?t.updateQueue=Go(t.memoizedState):$o(t,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=e:(n.lastCapturedUpdate.next=e,n.lastCapturedUpdate=e)}function $o(t,e){var n=t.alternate;return null!==n&&e===n.updateQueue&&(e=t.updateQueue=Ko(e)),e}function ta(t,e,n,r,o,a){switch(n.tag){case Wo:return"function"==typeof(t=n.payload)?t.call(a,r,o):t;case Ho:t.effectTag=-2049&t.effectTag|64;case Fo:if(null==(o="function"==typeof(t=n.payload)?t.call(a,r,o):t))break;return i({},r,o);case Vo:qo=!0}return r}function ea(t,e,n,r,i){qo=!1;for(var o=(e=$o(t,e)).baseState,a=null,s=0,l=e.firstUpdate,u=o;null!==l;){var c=l.expirationTime;c<i?(null===a&&(a=l,o=u),s<c&&(s=c)):(u=ta(t,0,l,u,n,r),null!==l.callback&&(t.effectTag|=32,l.nextEffect=null,null===e.lastEffect?e.firstEffect=e.lastEffect=l:(e.lastEffect.nextEffect=l,e.lastEffect=l))),l=l.next}for(c=null,l=e.firstCapturedUpdate;null!==l;){var f=l.expirationTime;f<i?(null===c&&(c=l,null===a&&(o=u)),s<f&&(s=f)):(u=ta(t,0,l,u,n,r),null!==l.callback&&(t.effectTag|=32,l.nextEffect=null,null===e.lastCapturedEffect?e.firstCapturedEffect=e.lastCapturedEffect=l:(e.lastCapturedEffect.nextEffect=l,e.lastCapturedEffect=l))),l=l.next}null===a&&(e.lastUpdate=null),null===c?e.lastCapturedUpdate=null:t.effectTag|=32,null===a&&null===c&&(o=u),e.baseState=o,e.firstUpdate=a,e.firstCapturedUpdate=c,t.expirationTime=s,t.memoizedState=u}function na(t,e,n){null!==e.firstCapturedUpdate&&(null!==e.lastUpdate&&(e.lastUpdate.next=e.firstCapturedUpdate,e.lastUpdate=e.lastCapturedUpdate),e.firstCapturedUpdate=e.lastCapturedUpdate=null),ra(e.firstEffect,n),e.firstEffect=e.lastEffect=null,ra(e.firstCapturedEffect,n),e.firstCapturedEffect=e.lastCapturedEffect=null}function ra(t,e){for(;null!==t;){var n=t.callback;if(null!==n){t.callback=null;var r=e;"function"!=typeof n&&a("191",n),n.call(r)}t=t.nextEffect}}function ia(t,e){return{value:t,source:e,stack:le(e)}}function oa(t){t.effectTag|=4}var aa=void 0,sa=void 0,la=void 0,ua=void 0;aa=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},sa=function(){},la=function(t,e,n,r,o){var a=t.memoizedProps;if(a!==r){var s=e.stateNode;switch(bi(yi.current),t=null,n){case"input":a=_e(s,a),r=_e(s,r),t=[];break;case"option":a=Gn(s,a),r=Gn(s,r),t=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),t=[];break;case"textarea":a=Yn(s,a),r=Yn(s,r),t=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(s.onclick=dr)}cr(n,r),s=n=void 0;var l=null;for(n in a)if(!r.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var u=a[n];for(s in u)u.hasOwnProperty(s)&&(l||(l={}),l[s]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(_.hasOwnProperty(n)?t||(t=[]):(t=t||[]).push(n,null));for(n in r){var c=r[n];if(u=null!=a?a[n]:void 0,r.hasOwnProperty(n)&&c!==u&&(null!=c||null!=u))if("style"===n)if(u){for(s in u)!u.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(l||(l={}),l[s]="");for(s in c)c.hasOwnProperty(s)&&u[s]!==c[s]&&(l||(l={}),l[s]=c[s])}else l||(t||(t=[]),t.push(n,l)),l=c;else"dangerouslySetInnerHTML"===n?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(t=t||[]).push(n,""+c)):"children"===n?u===c||"string"!=typeof c&&"number"!=typeof c||(t=t||[]).push(n,""+c):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(_.hasOwnProperty(n)?(null!=c&&hr(o,n),t||u===c||(t=[])):(t=t||[]).push(n,c))}l&&(t=t||[]).push("style",l),o=t,(e.updateQueue=o)&&oa(e)}},ua=function(t,e,n,r){n!==r&&oa(e)};var ca="function"==typeof WeakSet?WeakSet:Set;function fa(t,e){var n=e.source,r=e.stack;null===r&&null!==n&&(r=le(n)),null!==n&&se(n.type),e=e.value,null!==t&&1===t.tag&&se(t.type);try{console.error(e)}catch(t){setTimeout(function(){throw t})}}function ha(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){Ga(t,e)}else e.current=null}function da(t,e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if((r.tag&t)!==Pi){var i=r.destroy;r.destroy=void 0,void 0!==i&&i()}(r.tag&e)!==Pi&&(i=r.create,r.destroy=i()),r=r.next}while(r!==n)}}function pa(t){switch("function"==typeof Zr&&Zr(t),t.tag){case 0:case 11:case 14:case 15:var e=t.updateQueue;if(null!==e&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n.destroy;if(void 0!==r){var i=t;try{r()}catch(t){Ga(i,t)}}n=n.next}while(n!==e)}break;case 1:if(ha(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Ga(t,e)}break;case 5:ha(t);break;case 4:ya(t)}}function ma(t){return 5===t.tag||3===t.tag||4===t.tag}function va(t){t:{for(var e=t.return;null!==e;){if(ma(e)){var n=e;break t}e=e.return}a("160"),n=void 0}var r=e=void 0;switch(n.tag){case 5:e=n.stateNode,r=!1;break;case 3:case 4:e=n.stateNode.containerInfo,r=!0;break;default:a("161")}16&n.effectTag&&(ir(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||ma(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}for(var i=t;;){if(5===i.tag||6===i.tag)if(n)if(r){var o=e,s=i.stateNode,l=n;8===o.nodeType?o.parentNode.insertBefore(s,l):o.insertBefore(s,l)}else e.insertBefore(i.stateNode,n);else r?(s=e,l=i.stateNode,8===s.nodeType?(o=s.parentNode).insertBefore(l,s):(o=s).appendChild(l),null!=(s=s._reactRootContainer)||null!==o.onclick||(o.onclick=dr)):e.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function ya(t){for(var e=t,n=!1,r=void 0,i=void 0;;){if(!n){n=e.return;t:for(;;){switch(null===n&&a("160"),n.tag){case 5:r=n.stateNode,i=!1;break t;case 3:case 4:r=n.stateNode.containerInfo,i=!0;break t}n=n.return}n=!0}if(5===e.tag||6===e.tag){t:for(var o=e,s=o;;)if(pa(s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===o)break;for(;null===s.sibling;){if(null===s.return||s.return===o)break t;s=s.return}s.sibling.return=s.return,s=s.sibling}i?(o=r,s=e.stateNode,8===o.nodeType?o.parentNode.removeChild(s):o.removeChild(s)):r.removeChild(e.stateNode)}else if(4===e.tag){if(null!==e.child){r=e.stateNode.containerInfo,i=!0,e.child.return=e,e=e.child;continue}}else if(pa(e),null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;4===(e=e.return).tag&&(n=!1)}e.sibling.return=e.return,e=e.sibling}}function ga(t,e){switch(e.tag){case 0:case 11:case 14:case 15:da(Ci,Si,e);break;case 1:break;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps;t=null!==t?t.memoizedProps:r;var i=e.type,o=e.updateQueue;e.updateQueue=null,null!==o&&function(t,e,n,r,i){t[j]=i,"input"===n&&"radio"===i.type&&null!=i.name&&we(t,i),fr(n,r),r=fr(n,i);for(var o=0;o<e.length;o+=2){var a=e[o],s=e[o+1];"style"===a?lr(t,s):"dangerouslySetInnerHTML"===a?rr(t,s):"children"===a?ir(t,s):ye(t,a,s,r)}switch(n){case"input":xe(t,i);break;case"textarea":Qn(t,i);break;case"select":e=t._wrapperState.wasMultiple,t._wrapperState.wasMultiple=!!i.multiple,null!=(n=i.value)?Kn(t,!!i.multiple,n,!1):e!==!!i.multiple&&(null!=i.defaultValue?Kn(t,!!i.multiple,i.defaultValue,!0):Kn(t,!!i.multiple,i.multiple?[]:"",!1))}}(n,o,i,t,r)}break;case 6:null===e.stateNode&&a("162"),e.stateNode.nodeValue=e.memoizedProps;break;case 3:case 12:break;case 13:if(n=e.memoizedState,r=void 0,t=e,null===n?r=!1:(r=!0,t=e.child,0===n.timedOutAt&&(n.timedOutAt=ws())),null!==t&&function(t,e){for(var n=t;;){if(5===n.tag){var r=n.stateNode;if(e)r.style.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=sr("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=e?"":n.memoizedProps;else{if(13===n.tag&&null!==n.memoizedState){(r=n.child.sibling).return=n,n=r;continue}if(null!==n.child){n.child.return=n,n=n.child;continue}}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(t,r),null!==(n=e.updateQueue)){e.updateQueue=null;var s=e.stateNode;null===s&&(s=e.stateNode=new ca),n.forEach(function(t){var n=function(t,e){var n=t.stateNode;null!==n&&n.delete(e),e=Ka(e=ws(),t),null!==(t=Ja(t,e))&&(Xr(t,e),0!==(e=t.expirationTime)&&xs(t,e))}.bind(null,e,t);s.has(t)||(s.add(t),t.then(n,n))})}break;case 17:break;default:a("163")}}var _a="function"==typeof WeakMap?WeakMap:Map;function ba(t,e,n){(n=Yo(n)).tag=Ho,n.payload={element:null};var r=e.value;return n.callback=function(){Ls(r),fa(t,e)},n}function wa(t,e,n){(n=Yo(n)).tag=Ho;var r=t.type.getDerivedStateFromError;if("function"==typeof r){var i=e.value;n.payload=function(){return r(i)}}var o=t.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Na?Na=new Set([this]):Na.add(this));var n=e.value,i=e.stack;fa(t,e),this.componentDidCatch(n,{componentStack:null!==i?i:""})}),n}function xa(t){switch(t.tag){case 1:Mr(t.type)&&jr();var e=t.effectTag;return 2048&e?(t.effectTag=-2049&e|64,t):null;case 3:return xi(),Rr(),0!=(64&(e=t.effectTag))&&a("285"),t.effectTag=-2049&e|64,t;case 5:return Ei(t),null;case 13:return 2048&(e=t.effectTag)?(t.effectTag=-2049&e|64,t):null;case 18:return null;case 4:return xi(),null;case 10:return Bo(t),null;default:return null}}var Ta=Vt.ReactCurrentDispatcher,Ea=Vt.ReactCurrentOwner,Pa=1073741822,ka=!1,Ca=null,Sa=null,Oa=0,Aa=-1,La=!1,za=null,Ma=!1,ja=null,Ra=null,Ia=null,Na=null;function Da(){if(null!==Ca)for(var t=Ca.return;null!==t;){var e=t;switch(e.tag){case 1:var n=e.type.childContextTypes;null!=n&&jr();break;case 3:xi(),Rr();break;case 5:Ei(e);break;case 4:xi();break;case 10:Bo(e)}t=t.return}Sa=null,Oa=0,Aa=-1,La=!1,Ca=null}function Ba(){for(;null!==za;){var t=za.effectTag;if(16&t&&ir(za.stateNode,""),128&t){var e=za.alternate;null!==e&&(null!==(e=e.ref)&&("function"==typeof e?e(null):e.current=null))}switch(14&t){case 2:va(za),za.effectTag&=-3;break;case 6:va(za),za.effectTag&=-3,ga(za.alternate,za);break;case 4:ga(za.alternate,za);break;case 8:ya(t=za),t.return=null,t.child=null,t.memoizedState=null,t.updateQueue=null,null!==(t=t.alternate)&&(t.return=null,t.child=null,t.memoizedState=null,t.updateQueue=null)}za=za.nextEffect}}function Ua(){for(;null!==za;){if(256&za.effectTag)t:{var t=za.alternate,e=za;switch(e.tag){case 0:case 11:case 15:da(ki,Pi,e);break t;case 1:if(256&e.effectTag&&null!==t){var n=t.memoizedProps,r=t.memoizedState;e=(t=e.stateNode).getSnapshotBeforeUpdate(e.elementType===e.type?n:ni(e.type,n),r),t.__reactInternalSnapshotBeforeUpdate=e}break t;case 3:case 5:case 6:case 4:case 17:break t;default:a("163")}}za=za.nextEffect}}function Za(t,e){for(;null!==za;){var n=za.effectTag;if(36&n){var r=za.alternate,i=za,o=e;switch(i.tag){case 0:case 11:case 15:da(Oi,Ai,i);break;case 1:var s=i.stateNode;if(4&i.effectTag)if(null===r)s.componentDidMount();else{var l=i.elementType===i.type?r.memoizedProps:ni(i.type,r.memoizedProps);s.componentDidUpdate(l,r.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}null!==(r=i.updateQueue)&&na(0,r,s);break;case 3:if(null!==(r=i.updateQueue)){if(s=null,null!==i.child)switch(i.child.tag){case 5:s=i.child.stateNode;break;case 1:s=i.child.stateNode}na(0,r,s)}break;case 5:o=i.stateNode,null===r&&4&i.effectTag&&vr(i.type,i.memoizedProps)&&o.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:a("163")}}128&n&&(null!==(i=za.ref)&&(o=za.stateNode,"function"==typeof i?i(o):i.current=o)),512&n&&(ja=t),za=za.nextEffect}}function Fa(){null!==Ra&&wr(Ra),null!==Ia&&Ia()}function Wa(t,e){Ma=ka=!0,t.current===e&&a("177");var n=t.pendingCommitExpirationTime;0===n&&a("261"),t.pendingCommitExpirationTime=0;var r=e.expirationTime,i=e.childExpirationTime;for(function(t,e){if(t.didError=!1,0===e)t.earliestPendingTime=0,t.latestPendingTime=0,t.earliestSuspendedTime=0,t.latestSuspendedTime=0,t.latestPingedTime=0;else{e<t.latestPingedTime&&(t.latestPingedTime=0);var n=t.latestPendingTime;0!==n&&(n>e?t.earliestPendingTime=t.latestPendingTime=0:t.earliestPendingTime>e&&(t.earliestPendingTime=t.latestPendingTime)),0===(n=t.earliestSuspendedTime)?Xr(t,e):e<t.latestSuspendedTime?(t.earliestSuspendedTime=0,t.latestSuspendedTime=0,t.latestPingedTime=0,Xr(t,e)):e>n&&Xr(t,e)}ei(0,t)}(t,i>r?i:r),Ea.current=null,r=void 0,1<e.effectTag?null!==e.lastEffect?(e.lastEffect.nextEffect=e,r=e.firstEffect):r=e:r=e.firstEffect,pr=En,mr=function(){var t=In();if(Nn(t)){if("selectionStart"in t)var e={start:t.selectionStart,end:t.selectionEnd};else t:{var n=(e=(e=t.ownerDocument)&&e.defaultView||window).getSelection&&e.getSelection();if(n&&0!==n.rangeCount){e=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{e.nodeType,i.nodeType}catch(t){e=null;break t}var o=0,a=-1,s=-1,l=0,u=0,c=t,f=null;e:for(;;){for(var h;c!==e||0!==r&&3!==c.nodeType||(a=o+r),c!==i||0!==n&&3!==c.nodeType||(s=o+n),3===c.nodeType&&(o+=c.nodeValue.length),null!==(h=c.firstChild);)f=c,c=h;for(;;){if(c===t)break e;if(f===e&&++l===r&&(a=o),f===i&&++u===n&&(s=o),null!==(h=c.nextSibling))break;f=(c=f).parentNode}c=h}e=-1===a||-1===s?null:{start:a,end:s}}else e=null}e=e||{start:0,end:0}}else e=null;return{focusedElem:t,selectionRange:e}}(),En=!1,za=r;null!==za;){i=!1;var s=void 0;try{Ua()}catch(t){i=!0,s=t}i&&(null===za&&a("178"),Ga(za,s),null!==za&&(za=za.nextEffect))}for(za=r;null!==za;){i=!1,s=void 0;try{Ba()}catch(t){i=!0,s=t}i&&(null===za&&a("178"),Ga(za,s),null!==za&&(za=za.nextEffect))}for(Dn(mr),mr=null,En=!!pr,pr=null,t.current=e,za=r;null!==za;){i=!1,s=void 0;try{Za(t,n)}catch(t){i=!0,s=t}i&&(null===za&&a("178"),Ga(za,s),null!==za&&(za=za.nextEffect))}if(null!==r&&null!==ja){var l=function(t,e){Ia=Ra=ja=null;var n=rs;rs=!0;do{if(512&e.effectTag){var r=!1,i=void 0;try{var o=e;da(zi,Pi,o),da(Pi,Li,o)}catch(t){r=!0,i=t}r&&Ga(e,i)}e=e.nextEffect}while(null!==e);rs=n,0!==(n=t.expirationTime)&&xs(t,n),us||rs||Cs(1073741823,!1)}.bind(null,t,r);Ra=o.unstable_runWithPriority(o.unstable_NormalPriority,function(){return br(l)}),Ia=l}ka=Ma=!1,"function"==typeof Ur&&Ur(e.stateNode),n=e.expirationTime,0===(e=(e=e.childExpirationTime)>n?e:n)&&(Na=null),function(t,e){t.expirationTime=e,t.finishedWork=null}(t,e)}function Va(t){for(;;){var e=t.alternate,n=t.return,r=t.sibling;if(0==(1024&t.effectTag)){Ca=t;t:{var o=e,s=Oa,l=(e=t).pendingProps;switch(e.tag){case 2:case 16:break;case 15:case 0:break;case 1:Mr(e.type)&&jr();break;case 3:xi(),Rr(),(l=e.stateNode).pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==o&&null!==o.child||(go(e),e.effectTag&=-3),sa(e);break;case 5:Ei(e);var u=bi(_i.current);if(s=e.type,null!==o&&null!=e.stateNode)la(o,e,s,l,u),o.ref!==e.ref&&(e.effectTag|=128);else if(l){var c=bi(yi.current);if(go(e)){o=(l=e).stateNode;var f=l.type,h=l.memoizedProps,d=u;switch(o[M]=l,o[j]=h,s=void 0,u=f){case"iframe":case"object":Pn("load",o);break;case"video":case"audio":for(f=0;f<et.length;f++)Pn(et[f],o);break;case"source":Pn("error",o);break;case"img":case"image":case"link":Pn("error",o),Pn("load",o);break;case"form":Pn("reset",o),Pn("submit",o);break;case"details":Pn("toggle",o);break;case"input":be(o,h),Pn("invalid",o),hr(d,"onChange");break;case"select":o._wrapperState={wasMultiple:!!h.multiple},Pn("invalid",o),hr(d,"onChange");break;case"textarea":Jn(o,h),Pn("invalid",o),hr(d,"onChange")}for(s in cr(u,h),f=null,h)h.hasOwnProperty(s)&&(c=h[s],"children"===s?"string"==typeof c?o.textContent!==c&&(f=["children",c]):"number"==typeof c&&o.textContent!==""+c&&(f=["children",""+c]):_.hasOwnProperty(s)&&null!=c&&hr(d,s));switch(u){case"input":Ft(o),Te(o,h,!0);break;case"textarea":Ft(o),Xn(o);break;case"select":case"option":break;default:"function"==typeof h.onClick&&(o.onclick=dr)}s=f,l.updateQueue=s,(l=null!==s)&&oa(e)}else{h=e,d=s,o=l,f=9===u.nodeType?u:u.ownerDocument,c===$n.html&&(c=tr(d)),c===$n.html?"script"===d?((o=f.createElement("div")).innerHTML="<script><\/script>",f=o.removeChild(o.firstChild)):"string"==typeof o.is?f=f.createElement(d,{is:o.is}):(f=f.createElement(d),"select"===d&&(d=f,o.multiple?d.multiple=!0:o.size&&(d.size=o.size))):f=f.createElementNS(c,d),(o=f)[M]=h,o[j]=l,aa(o,e,!1,!1),d=o;var p=u,m=fr(f=s,h=l);switch(f){case"iframe":case"object":Pn("load",d),u=h;break;case"video":case"audio":for(u=0;u<et.length;u++)Pn(et[u],d);u=h;break;case"source":Pn("error",d),u=h;break;case"img":case"image":case"link":Pn("error",d),Pn("load",d),u=h;break;case"form":Pn("reset",d),Pn("submit",d),u=h;break;case"details":Pn("toggle",d),u=h;break;case"input":be(d,h),u=_e(d,h),Pn("invalid",d),hr(p,"onChange");break;case"option":u=Gn(d,h);break;case"select":d._wrapperState={wasMultiple:!!h.multiple},u=i({},h,{value:void 0}),Pn("invalid",d),hr(p,"onChange");break;case"textarea":Jn(d,h),u=Yn(d,h),Pn("invalid",d),hr(p,"onChange");break;default:u=h}cr(f,u),c=void 0;var v=f,y=d,g=u;for(c in g)if(g.hasOwnProperty(c)){var b=g[c];"style"===c?lr(y,b):"dangerouslySetInnerHTML"===c?null!=(b=b?b.__html:void 0)&&rr(y,b):"children"===c?"string"==typeof b?("textarea"!==v||""!==b)&&ir(y,b):"number"==typeof b&&ir(y,""+b):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(_.hasOwnProperty(c)?null!=b&&hr(p,c):null!=b&&ye(y,c,b,m))}switch(f){case"input":Ft(d),Te(d,h,!1);break;case"textarea":Ft(d),Xn(d);break;case"option":null!=h.value&&d.setAttribute("value",""+ge(h.value));break;case"select":(u=d).multiple=!!h.multiple,null!=(d=h.value)?Kn(u,!!h.multiple,d,!1):null!=h.defaultValue&&Kn(u,!!h.multiple,h.defaultValue,!0);break;default:"function"==typeof u.onClick&&(d.onclick=dr)}(l=vr(s,l))&&oa(e),e.stateNode=o}null!==e.ref&&(e.effectTag|=128)}else null===e.stateNode&&a("166");break;case 6:o&&null!=e.stateNode?ua(o,e,o.memoizedProps,l):("string"!=typeof l&&(null===e.stateNode&&a("166")),o=bi(_i.current),bi(yi.current),go(e)?(s=(l=e).stateNode,o=l.memoizedProps,s[M]=l,(l=s.nodeValue!==o)&&oa(e)):(s=e,(l=(9===o.nodeType?o:o.ownerDocument).createTextNode(l))[M]=e,s.stateNode=l));break;case 11:break;case 13:if(l=e.memoizedState,0!=(64&e.effectTag)){e.expirationTime=s,Ca=e;break t}l=null!==l,s=null!==o&&null!==o.memoizedState,null!==o&&!l&&s&&(null!==(o=o.child.sibling)&&(null!==(u=e.firstEffect)?(e.firstEffect=o,o.nextEffect=u):(e.firstEffect=e.lastEffect=o,o.nextEffect=null),o.effectTag=8)),(l||s)&&(e.effectTag|=4);break;case 7:case 8:case 12:break;case 4:xi(),sa(e);break;case 10:Bo(e);break;case 9:case 14:break;case 17:Mr(e.type)&&jr();break;case 18:break;default:a("156")}Ca=null}if(e=t,1===Oa||1!==e.childExpirationTime){for(l=0,s=e.child;null!==s;)(o=s.expirationTime)>l&&(l=o),(u=s.childExpirationTime)>l&&(l=u),s=s.sibling;e.childExpirationTime=l}if(null!==Ca)return Ca;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=t.firstEffect),n.lastEffect=t.lastEffect),1<t.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=t:n.firstEffect=t,n.lastEffect=t))}else{if(null!==(t=xa(t)))return t.effectTag&=1023,t;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;t=n}return null}function Ha(t){var e=Mo(t.alternate,t,Oa);return t.memoizedProps=t.pendingProps,null===e&&(e=Va(t)),Ea.current=null,e}function qa(t,e){ka&&a("243"),Fa(),ka=!0;var n=Ta.current;Ta.current=so;var r=t.nextExpirationTimeToWorkOn;r===Oa&&t===Sa&&null!==Ca||(Da(),Oa=r,Ca=qr((Sa=t).current,null),t.pendingCommitExpirationTime=0);for(var i=!1;;){try{if(e)for(;null!==Ca&&!Ps();)Ca=Ha(Ca);else for(;null!==Ca;)Ca=Ha(Ca)}catch(e){if(No=Io=Ro=null,Ji(),null===Ca)i=!0,Ls(e);else{null===Ca&&a("271");var o=Ca,s=o.return;if(null!==s){t:{var l=t,u=s,c=o,f=e;if(s=Oa,c.effectTag|=1024,c.firstEffect=c.lastEffect=null,null!==f&&"object"==typeof f&&"function"==typeof f.then){var h=f;f=u;var d=-1,p=-1;do{if(13===f.tag){var m=f.alternate;if(null!==m&&null!==(m=m.memoizedState)){p=10*(1073741822-m.timedOutAt);break}"number"==typeof(m=f.pendingProps.maxDuration)&&(0>=m?d=0:(-1===d||m<d)&&(d=m))}f=f.return}while(null!==f);f=u;do{if((m=13===f.tag)&&(m=void 0!==f.memoizedProps.fallback&&null===f.memoizedState),m){if(null===(u=f.updateQueue)?((u=new Set).add(h),f.updateQueue=u):u.add(h),0==(1&f.mode)){f.effectTag|=64,c.effectTag&=-1957,1===c.tag&&(null===c.alternate?c.tag=17:((s=Yo(1073741823)).tag=Vo,Qo(c,s))),c.expirationTime=1073741823;break t}u=s;var v=(c=l).pingCache;null===v?(v=c.pingCache=new _a,m=new Set,v.set(h,m)):void 0===(m=v.get(h))&&(m=new Set,v.set(h,m)),m.has(u)||(m.add(u),c=Ya.bind(null,c,h,u),h.then(c,c)),-1===d?l=1073741823:(-1===p&&(p=10*(1073741822-ti(l,s))-5e3),l=p+d),0<=l&&Aa<l&&(Aa=l),f.effectTag|=2048,f.expirationTime=s;break t}f=f.return}while(null!==f);f=Error((se(c.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+le(c))}La=!0,f=ia(f,c),l=u;do{switch(l.tag){case 3:l.effectTag|=2048,l.expirationTime=s,Xo(l,s=ba(l,f,s));break t;case 1:if(d=f,p=l.type,c=l.stateNode,0==(64&l.effectTag)&&("function"==typeof p.getDerivedStateFromError||null!==c&&"function"==typeof c.componentDidCatch&&(null===Na||!Na.has(c)))){l.effectTag|=2048,l.expirationTime=s,Xo(l,s=wa(l,d,s));break t}}l=l.return}while(null!==l)}Ca=Va(o);continue}i=!0,Ls(e)}}break}if(ka=!1,Ta.current=n,No=Io=Ro=null,Ji(),i)Sa=null,t.finishedWork=null;else if(null!==Ca)t.finishedWork=null;else{if(null===(n=t.current.alternate)&&a("281"),Sa=null,La){if(i=t.latestPendingTime,o=t.latestSuspendedTime,s=t.latestPingedTime,0!==i&&i<r||0!==o&&o<r||0!==s&&s<r)return $r(t,r),void bs(t,n,r,t.expirationTime,-1);if(!t.didError&&e)return t.didError=!0,r=t.nextExpirationTimeToWorkOn=r,e=t.expirationTime=1073741823,void bs(t,n,r,e,-1)}e&&-1!==Aa?($r(t,r),(e=10*(1073741822-ti(t,r)))<Aa&&(Aa=e),e=10*(1073741822-ws()),e=Aa-e,bs(t,n,r,t.expirationTime,0>e?0:e)):(t.pendingCommitExpirationTime=r,t.finishedWork=n)}}function Ga(t,e){for(var n=t.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Na||!Na.has(r)))return Qo(n,t=wa(n,t=ia(e,t),1073741823)),void Qa(n,1073741823);break;case 3:return Qo(n,t=ba(n,t=ia(e,t),1073741823)),void Qa(n,1073741823)}n=n.return}3===t.tag&&(Qo(t,n=ba(t,n=ia(e,t),1073741823)),Qa(t,1073741823))}function Ka(t,e){var n=o.unstable_getCurrentPriorityLevel(),r=void 0;if(0==(1&e.mode))r=1073741823;else if(ka&&!Ma)r=Oa;else{switch(n){case o.unstable_ImmediatePriority:r=1073741823;break;case o.unstable_UserBlockingPriority:r=1073741822-10*(1+((1073741822-t+15)/10|0));break;case o.unstable_NormalPriority:r=1073741822-25*(1+((1073741822-t+500)/25|0));break;case o.unstable_LowPriority:case o.unstable_IdlePriority:r=1;break;default:a("313")}null!==Sa&&r===Oa&&--r}return n===o.unstable_UserBlockingPriority&&(0===as||r<as)&&(as=r),r}function Ya(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),null!==Sa&&Oa===n?Sa=null:(e=t.earliestSuspendedTime,r=t.latestSuspendedTime,0!==e&&n<=e&&n>=r&&(t.didError=!1,(0===(e=t.latestPingedTime)||e>n)&&(t.latestPingedTime=n),ei(n,t),0!==(n=t.expirationTime)&&xs(t,n)))}function Ja(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e);var r=t.return,i=null;if(null===r&&3===t.tag)i=t.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<e&&(r.childExpirationTime=e),null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return i}function Qa(t,e){null!==(t=Ja(t,e))&&(!ka&&0!==Oa&&e>Oa&&Da(),Xr(t,e),ka&&!Ma&&Sa===t||xs(t,t.expirationTime),vs>ms&&(vs=0,a("185")))}function Xa(t,e,n,r,i){return o.unstable_runWithPriority(o.unstable_ImmediatePriority,function(){return t(e,n,r,i)})}var $a=null,ts=null,es=0,ns=void 0,rs=!1,is=null,os=0,as=0,ss=!1,ls=null,us=!1,cs=!1,fs=null,hs=o.unstable_now(),ds=1073741822-(hs/10|0),ps=ds,ms=50,vs=0,ys=null;function gs(){ds=1073741822-((o.unstable_now()-hs)/10|0)}function _s(t,e){if(0!==es){if(e<es)return;null!==ns&&o.unstable_cancelCallback(ns)}es=e,t=o.unstable_now()-hs,ns=o.unstable_scheduleCallback(ks,{timeout:10*(1073741822-e)-t})}function bs(t,e,n,r,i){t.expirationTime=r,0!==i||Ps()?0<i&&(t.timeoutHandle=gr(function(t,e,n){t.pendingCommitExpirationTime=n,t.finishedWork=e,gs(),ps=ds,Ss(t,n)}.bind(null,t,e,n),i)):(t.pendingCommitExpirationTime=n,t.finishedWork=e)}function ws(){return rs?ps:(Ts(),0!==os&&1!==os||(gs(),ps=ds),ps)}function xs(t,e){null===t.nextScheduledRoot?(t.expirationTime=e,null===ts?($a=ts=t,t.nextScheduledRoot=t):(ts=ts.nextScheduledRoot=t).nextScheduledRoot=$a):e>t.expirationTime&&(t.expirationTime=e),rs||(us?cs&&(is=t,os=1073741823,Os(t,1073741823,!1)):1073741823===e?Cs(1073741823,!1):_s(t,e))}function Ts(){var t=0,e=null;if(null!==ts)for(var n=ts,r=$a;null!==r;){var i=r.expirationTime;if(0===i){if((null===n||null===ts)&&a("244"),r===r.nextScheduledRoot){$a=ts=r.nextScheduledRoot=null;break}if(r===$a)$a=i=r.nextScheduledRoot,ts.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===ts){(ts=n).nextScheduledRoot=$a,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(i>t&&(t=i,e=r),r===ts)break;if(1073741823===t)break;n=r,r=r.nextScheduledRoot}}is=e,os=t}var Es=!1;function Ps(){return!!Es||!!o.unstable_shouldYield()&&(Es=!0)}function ks(){try{if(!Ps()&&null!==$a){gs();var t=$a;do{var e=t.expirationTime;0!==e&&ds<=e&&(t.nextExpirationTimeToWorkOn=ds),t=t.nextScheduledRoot}while(t!==$a)}Cs(0,!0)}finally{Es=!1}}function Cs(t,e){if(Ts(),e)for(gs(),ps=ds;null!==is&&0!==os&&t<=os&&!(Es&&ds>os);)Os(is,os,ds>os),Ts(),gs(),ps=ds;else for(;null!==is&&0!==os&&t<=os;)Os(is,os,!1),Ts();if(e&&(es=0,ns=null),0!==os&&_s(is,os),vs=0,ys=null,null!==fs)for(t=fs,fs=null,e=0;e<t.length;e++){var n=t[e];try{n._onComplete()}catch(t){ss||(ss=!0,ls=t)}}if(ss)throw t=ls,ls=null,ss=!1,t}function Ss(t,e){rs&&a("253"),is=t,os=e,Os(t,e,!1),Cs(1073741823,!1)}function Os(t,e,n){if(rs&&a("245"),rs=!0,n){var r=t.finishedWork;null!==r?As(t,r,e):(t.finishedWork=null,-1!==(r=t.timeoutHandle)&&(t.timeoutHandle=-1,_r(r)),qa(t,n),null!==(r=t.finishedWork)&&(Ps()?t.finishedWork=r:As(t,r,e)))}else null!==(r=t.finishedWork)?As(t,r,e):(t.finishedWork=null,-1!==(r=t.timeoutHandle)&&(t.timeoutHandle=-1,_r(r)),qa(t,n),null!==(r=t.finishedWork)&&As(t,r,e));rs=!1}function As(t,e,n){var r=t.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===fs?fs=[r]:fs.push(r),r._defer))return t.finishedWork=e,void(t.expirationTime=0);t.finishedWork=null,t===ys?vs++:(ys=t,vs=0),o.unstable_runWithPriority(o.unstable_ImmediatePriority,function(){Wa(t,e)})}function Ls(t){null===is&&a("246"),is.expirationTime=0,ss||(ss=!0,ls=t)}function zs(t,e){var n=us;us=!0;try{return t(e)}finally{(us=n)||rs||Cs(1073741823,!1)}}function Ms(t,e){if(us&&!cs){cs=!0;try{return t(e)}finally{cs=!1}}return t(e)}function js(t,e,n){us||rs||0===as||(Cs(as,!1),as=0);var r=us;us=!0;try{return o.unstable_runWithPriority(o.unstable_UserBlockingPriority,function(){return t(e,n)})}finally{(us=r)||rs||Cs(1073741823,!1)}}function Rs(t,e,n,r,i){var o=e.current;t:if(n){e:{2===en(n=n._reactInternalFiber)&&1===n.tag||a("170");var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Mr(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(null!==s);a("171"),s=void 0}if(1===n.tag){var l=n.type;if(Mr(l)){n=Nr(n,l,s);break t}}n=s}else n=Sr;return null===e.context?e.context=n:e.pendingContext=n,e=i,(i=Yo(r)).payload={element:t},null!==(e=void 0===e?null:e)&&(i.callback=e),Fa(),Qo(o,i),Qa(o,r),r}function Is(t,e,n,r){var i=e.current;return Rs(t,e,n,i=Ka(ws(),i),r)}function Ns(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function Ds(t){var e=1073741822-25*(1+((1073741822-ws()+500)/25|0));e>=Pa&&(e=Pa-1),this._expirationTime=Pa=e,this._root=t,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Bs(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Us(t,e,n){t={current:e=Vr(3,null,null,e?3:0),containerInfo:t,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=e.stateNode=t}function Zs(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Fs(t,e,n,r,i){var o=n._reactRootContainer;if(o){if("function"==typeof i){var a=i;i=function(){var t=Ns(o._internalRoot);a.call(t)}}null!=t?o.legacy_renderSubtreeIntoContainer(t,e,i):o.render(e,i)}else{if(o=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new Us(t,!1,e)}(n,r),"function"==typeof i){var s=i;i=function(){var t=Ns(o._internalRoot);s.call(t)}}Ms(function(){null!=t?o.legacy_renderSubtreeIntoContainer(t,e,i):o.render(e,i)})}return Ns(o._internalRoot)}function Ws(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Zs(e)||a("200"),function(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Kt,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}(t,e,null,n)}kt=function(t,e,n){switch(e){case"input":if(xe(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=D(r);i||a("90"),Wt(r),xe(r,i)}}}break;case"textarea":Qn(t,n);break;case"select":null!=(e=n.value)&&Kn(t,!!n.multiple,e,!1)}},Ds.prototype.render=function(t){this._defer||a("250"),this._hasChildren=!0,this._children=t;var e=this._root._internalRoot,n=this._expirationTime,r=new Bs;return Rs(t,e,null,n,r._onCommit),r},Ds.prototype.then=function(t){if(this._didComplete)t();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(t)}},Ds.prototype.commit=function(){var t=this._root._internalRoot,e=t.firstBatch;if(this._defer&&null!==e||a("251"),this._hasChildren){var n=this._expirationTime;if(e!==this){this._hasChildren&&(n=this._expirationTime=e._expirationTime,this.render(this._children));for(var r=null,i=e;i!==this;)r=i,i=i._next;null===r&&a("251"),r._next=i._next,this._next=e,t.firstBatch=this}this._defer=!1,Ss(t,n),e=this._next,this._next=null,null!==(e=t.firstBatch=e)&&e._hasChildren&&e.render(e._children)}else this._next=null,this._defer=!1},Ds.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var t=this._callbacks;if(null!==t)for(var e=0;e<t.length;e++)(0,t[e])()}},Bs.prototype.then=function(t){if(this._didCommit)t();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(t)}},Bs.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var t=this._callbacks;if(null!==t)for(var e=0;e<t.length;e++){var n=t[e];"function"!=typeof n&&a("191",n),n()}}},Us.prototype.render=function(t,e){var n=this._internalRoot,r=new Bs;return null!==(e=void 0===e?null:e)&&r.then(e),Is(t,n,null,r._onCommit),r},Us.prototype.unmount=function(t){var e=this._internalRoot,n=new Bs;return null!==(t=void 0===t?null:t)&&n.then(t),Is(null,e,null,n._onCommit),n},Us.prototype.legacy_renderSubtreeIntoContainer=function(t,e,n){var r=this._internalRoot,i=new Bs;return null!==(n=void 0===n?null:n)&&i.then(n),Is(e,r,t,i._onCommit),i},Us.prototype.createBatch=function(){var t=new Ds(this),e=t._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=t,t._next=null;else{for(n=null;null!==r&&r._expirationTime>=e;)n=r,r=r._next;t._next=r,null!==n&&(n._next=t)}return t},zt=zs,Mt=js,jt=function(){rs||0===as||(Cs(as,!1),as=0)};var Vs,Hs,qs={createPortal:Ws,findDOMNode:function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;return void 0===e&&("function"==typeof t.render?a("188"):a("268",Object.keys(t))),t=null===(t=rn(e))?null:t.stateNode},hydrate:function(t,e,n){return Zs(e)||a("200"),Fs(null,t,e,!0,n)},render:function(t,e,n){return Zs(e)||a("200"),Fs(null,t,e,!1,n)},unstable_renderSubtreeIntoContainer:function(t,e,n,r){return Zs(n)||a("200"),(null==t||void 0===t._reactInternalFiber)&&a("38"),Fs(t,e,n,!1,r)},unmountComponentAtNode:function(t){return Zs(t)||a("40"),!!t._reactRootContainer&&(Ms(function(){Fs(null,null,t,!1,function(){t._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Ws.apply(void 0,arguments)},unstable_batchedUpdates:zs,unstable_interactiveUpdates:js,flushSync:function(t,e){rs&&a("187");var n=us;us=!0;try{return Xa(t,e)}finally{us=n,Cs(1073741823,!1)}},unstable_createRoot:function(t,e){return Zs(t)||a("299","unstable_createRoot"),new Us(t,!0,null!=e&&!0===e.hydrate)},unstable_flushControlled:function(t){var e=us;us=!0;try{Xa(t)}finally{(us=e)||rs||Cs(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[I,N,D,O.injectEventPluginsByName,g,V,function(t){k(t,W)},At,Lt,Sn,L]}};Hs=(Vs={findFiberByHostInstance:R,bundleType:0,version:"16.8.6",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);Ur=Fr(function(t){return e.onCommitFiberRoot(n,t)}),Zr=Fr(function(t){return e.onCommitFiberUnmount(n,t)})}catch(t){}}(i({},Vs,{overrideProps:null,currentDispatcherRef:Vt.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=rn(t))?null:t.stateNode},findFiberByHostInstance:function(t){return Hs?Hs(t):null}}));var Gs={default:qs},Ks=Gs&&qs||Gs;t.exports=Ks.default||Ks},function(t,e,n){"use strict";t.exports=n(22)},function(t,e,n){"use strict";(function(t){
|
|
/** @license React v0.13.6
|
|
* scheduler.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
Object.defineProperty(e,"__esModule",{value:!0});var n=null,r=!1,i=3,o=-1,a=-1,s=!1,l=!1;function u(){if(!s){var t=n.expirationTime;l?T():l=!0,x(h,t)}}function c(){var t=n,e=n.next;if(n===e)n=null;else{var r=n.previous;n=r.next=e,e.previous=r}t.next=t.previous=null,r=t.callback,e=t.expirationTime,t=t.priorityLevel;var o=i,s=a;i=t,a=e;try{var l=r()}finally{i=o,a=s}if("function"==typeof l)if(l={callback:l,priorityLevel:t,expirationTime:e,next:null,previous:null},null===n)n=l.next=l.previous=l;else{r=null,t=n;do{if(t.expirationTime>=e){r=t;break}t=t.next}while(t!==n);null===r?r=n:r===n&&(n=l,u()),(e=r.previous).next=r.previous=l,l.next=r,l.previous=e}}function f(){if(-1===o&&null!==n&&1===n.priorityLevel){s=!0;try{do{c()}while(null!==n&&1===n.priorityLevel)}finally{s=!1,null!==n?u():l=!1}}}function h(t){s=!0;var i=r;r=t;try{if(t)for(;null!==n;){var o=e.unstable_now();if(!(n.expirationTime<=o))break;do{c()}while(null!==n&&n.expirationTime<=o)}else if(null!==n)do{c()}while(null!==n&&!E())}finally{s=!1,r=i,null!==n?u():l=!1,f()}}var d,p,m=Date,v="function"==typeof setTimeout?setTimeout:void 0,y="function"==typeof clearTimeout?clearTimeout:void 0,g="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,_="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function b(t){d=g(function(e){y(p),t(e)}),p=v(function(){_(d),t(e.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var w=performance;e.unstable_now=function(){return w.now()}}else e.unstable_now=function(){return m.now()};var x,T,E,P=null;if("undefined"!=typeof window?P=window:void 0!==t&&(P=t),P&&P._schedMock){var k=P._schedMock;x=k[0],T=k[1],E=k[2],e.unstable_now=k[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var C=null,S=function(t){if(null!==C)try{C(t)}finally{C=null}};x=function(t){null!==C?setTimeout(x,0,t):(C=t,setTimeout(S,0,!1))},T=function(){C=null},E=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof g&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof _&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var O=null,A=!1,L=-1,z=!1,M=!1,j=0,R=33,I=33;E=function(){return j<=e.unstable_now()};var N=new MessageChannel,D=N.port2;N.port1.onmessage=function(){A=!1;var t=O,n=L;O=null,L=-1;var r=e.unstable_now(),i=!1;if(0>=j-r){if(!(-1!==n&&n<=r))return z||(z=!0,b(B)),O=t,void(L=n);i=!0}if(null!==t){M=!0;try{t(i)}finally{M=!1}}};var B=function(t){if(null!==O){b(B);var e=t-j+I;e<I&&R<I?(8>e&&(e=8),I=e<R?R:e):R=e,j=t+I,A||(A=!0,D.postMessage(void 0))}else z=!1};x=function(t,e){O=t,L=e,M||0>e?D.postMessage(void 0):z||(z=!0,b(B))},T=function(){O=null,A=!1,L=-1}}e.unstable_ImmediatePriority=1,e.unstable_UserBlockingPriority=2,e.unstable_NormalPriority=3,e.unstable_IdlePriority=5,e.unstable_LowPriority=4,e.unstable_runWithPriority=function(t,n){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var r=i,a=o;i=t,o=e.unstable_now();try{return n()}finally{i=r,o=a,f()}},e.unstable_next=function(t){switch(i){case 1:case 2:case 3:var n=3;break;default:n=i}var r=i,a=o;i=n,o=e.unstable_now();try{return t()}finally{i=r,o=a,f()}},e.unstable_scheduleCallback=function(t,r){var a=-1!==o?o:e.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=a+r.timeout;else switch(i){case 1:r=a+-1;break;case 2:r=a+250;break;case 5:r=a+1073741823;break;case 4:r=a+1e4;break;default:r=a+5e3}if(t={callback:t,priorityLevel:i,expirationTime:r,next:null,previous:null},null===n)n=t.next=t.previous=t,u();else{a=null;var s=n;do{if(s.expirationTime>r){a=s;break}s=s.next}while(s!==n);null===a?a=n:a===n&&(n=t,u()),(r=a.previous).next=a.previous=t,t.next=a,t.previous=r}return t},e.unstable_cancelCallback=function(t){var e=t.next;if(null!==e){if(e===t)n=null;else{t===n&&(n=e);var r=t.previous;r.next=e,e.previous=r}t.next=t.previous=null}},e.unstable_wrapCallback=function(t){var n=i;return function(){var r=i,a=o;i=n,o=e.unstable_now();try{return t.apply(this,arguments)}finally{i=r,o=a,f()}}},e.unstable_getCurrentPriorityLevel=function(){return i},e.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime<a||E())},e.unstable_continueExecution=function(){null!==n&&u()},e.unstable_pauseExecution=function(){},e.unstable_getFirstCallbackNode=function(){return n}}).call(this,n(9))},function(t,e,n){"use strict";n.r(e),n.d(e,"computedFn",function(){return Y}),n.d(e,"PENDING",function(){return h}),n.d(e,"FULFILLED",function(){return d}),n.d(e,"REJECTED",function(){return p}),n.d(e,"fromPromise",function(){return v}),n.d(e,"isPromiseBasedObservable",function(){return y}),n.d(e,"moveItem",function(){return g}),n.d(e,"lazyObservable",function(){return b}),n.d(e,"fromResource",function(){return w}),n.d(e,"toStream",function(){return E}),n.d(e,"fromStream",function(){return k}),n.d(e,"ViewModel",function(){return A}),n.d(e,"createViewModel",function(){return L}),n.d(e,"whenWithTimeout",function(){return z}),n.d(e,"keepAlive",function(){return M}),n.d(e,"queueProcessor",function(){return j}),n.d(e,"chunkProcessor",function(){return R}),n.d(e,"now",function(){return N}),n.d(e,"NOOP",function(){return i}),n.d(e,"IDENTITY",function(){return o}),n.d(e,"invariant",function(){return a}),n.d(e,"deprecated",function(){return l}),n.d(e,"addHiddenProp",function(){return u}),n.d(e,"getAllMethodsAndProperties",function(){return f}),n.d(e,"asyncAction",function(){return B}),n.d(e,"whenAsync",function(){return U}),n.d(e,"expr",function(){return Z}),n.d(e,"createTransformer",function(){return W}),n.d(e,"deepObserve",function(){return q});var r=n(1),i=function(){},o=function(t){return t};function a(t,e){if(void 0===e&&(e="Illegal state"),!t)throw new Error("[mobx-utils] "+e)}var s=[];function l(t){-1===s.indexOf(t)&&(s.push(t),console.error("[mobx-utils] Deprecated: "+t))}function u(t,e,n){Object.defineProperty(t,e,{enumerable:!1,writable:!0,configurable:!0,value:n})}var c=function(t){return t&&t!==Object.prototype&&Object.getOwnPropertyNames(t).filter(function(e){return function(t,e){return(Object.getOwnPropertyDescriptor(t,e)||{}).get}(t,e)||function(t,e){return"function"==typeof t[e]}(t,e)}).concat(c(Object.getPrototypeOf(t))||[])},f=function(t){return function(t){return Array.from(new Set(c(t)))}(t).filter(function(t){return"constructor"!==t&&!~t.indexOf("__")})},h="pending",d="fulfilled",p="rejected";function m(t){switch(this.state){case h:return t.pending&&t.pending(this.value);case p:return t.rejected&&t.rejected(this.value);case d:return t.fulfilled?t.fulfilled(this.value):this.value}}var v=function(t,e){if(a(arguments.length<=2,"fromPromise expects up to two arguments"),a("function"==typeof t||"object"==typeof t&&t&&"function"==typeof t.then,"Please pass a promise or function to fromPromise"),!0===t.isPromiseBasedObservable)return t;"function"==typeof t&&(t=new Promise(t));var n=t;t.then(Object(r.action)("observableFromPromise-resolve",function(t){n.value=t,n.state=d}),Object(r.action)("observableFromPromise-reject",function(t){n.value=t,n.state=p})),n.isPromiseBasedObservable=!0,n.case=m;var i=e&&e.state===d?e.value:void 0;return Object(r.extendObservable)(n,{value:i,state:h},{},{deep:!1}),n};function y(t){return t&&!0===t.isPromiseBasedObservable}function g(t,e,n){if(_(t,e),_(t,n),e!==n){var i,o=t[r.$mobx].values;return i=e<n?o.slice(0,e).concat(o.slice(e+1,n+1),[o[e]],o.slice(n+1)):o.slice(0,n).concat([o[e]],o.slice(n,e),o.slice(e+1)),t.replace(i),t}}function _(t,e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var n=t[r.$mobx].values.length;if(e>=n)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+n)}function b(t,e){void 0===e&&(e=void 0);var n=!1,i=r.observable.box(e,{deep:!1}),o=r.observable.box(!1),a=function(){return n||(n=!0,o.set(!0),t(function(t){Object(r._allowStateChanges)(!0,function(){i.set(t),o.set(!1)})})),i.get()},s=Object(r.action)("lazyObservable-reset",function(){return n=!1,i.set(e),i.get()});return{current:a,refresh:function(){return n?(n=!1,a()):i.get()},reset:function(){return s()},get pending(){return o.get()}}}function w(t,e,n){void 0===e&&(e=i),void 0===n&&(n=void 0);var o=!1,s=!1,l=n,u=function(){o&&(o=!1,e())},c=Object(r.createAtom)("ResourceBasedObservable",function(){a(!o&&!s),o=!0,t(function(t){Object(r._allowStateChanges)(!0,function(){l=t,c.reportChanged()})})},u);return{current:function(){return a(!s,"subscribingObservable has already been disposed"),c.reportObserved()||o||console.warn("Called `get` of a subscribingObservable outside a reaction. Current value will be returned but no new subscription has started"),l},dispose:function(){s=!0,u()},isAlive:function(){return o}}}v.reject=Object(r.action)("fromPromise.reject",function(t){var e=v(Promise.reject(t));return e.state=p,e.value=t,e}),v.resolve=Object(r.action)("fromPromise.resolve",function(t){void 0===t&&(t=void 0);var e=v(Promise.resolve(t));return e.state=d,e.value=t,e});var x=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};function T(){return this}function E(t,e){var n;void 0===e&&(e=!1);var i=Object(r.computed)(t);return(n={subscribe:function(t){return{unsubscribe:i.observe("function"==typeof t?function(e){var n=e.newValue;return t(n)}:function(e){var n=e.newValue;return t.next(n)},e)}}})["function"==typeof Symbol&&Symbol.observable||"@@observable"]=T,n}var P=function(){function t(t,e){var n=this;this.current=void 0,Object(r.runInAction)(function(){n.current=e,n.subscription=t.subscribe(n)})}return t.prototype.dispose=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.next=function(t){this.current=t},t.prototype.complete=function(){this.dispose()},t.prototype.error=function(t){this.current=t,this.dispose()},x([r.observable.ref],t.prototype,"current",void 0),x([r.action.bound],t.prototype,"next",null),x([r.action.bound],t.prototype,"complete",null),x([r.action.bound],t.prototype,"error",null),t}();function k(t,e){return void 0===e&&(e=void 0),new P(t,e)}var C=function(){return(C=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},S=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},O=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"],A=function(){function t(t){var e=this;this.model=t,this.localValues=r.observable.map({}),this.localComputedValues=r.observable.map({}),this.isPropertyDirty=function(t){return e.localValues.has(t)},a(Object(r.isObservableObject)(t),"createViewModel expects an observable object"),f(t).forEach(function(n){if(n!==r.$mobx&&"__mobxDidRunLazyInitializers"!==n){if(a(-1===O.indexOf(n),"The propertyname "+n+" is reserved and cannot be used with viewModels"),Object(r.isComputedProp)(t,n)){var i=Object(r._getAdministration)(t,n).derivation;e.localComputedValues.set(n,Object(r.computed)(i.bind(e)))}var o=Object.getOwnPropertyDescriptor(t,n),s=o?{enumerable:o.enumerable}:{};Object.defineProperty(e,n,C({},s,{configurable:!0,get:function(){return Object(r.isComputedProp)(t,n)?e.localComputedValues.get(n).get():e.isPropertyDirty(n)?e.localValues.get(n):e.model[n]},set:Object(r.action)(function(t){t!==e.model[n]?e.localValues.set(n,t):e.localValues.delete(n)})}))}})}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changedValues",{get:function(){return this.localValues.toJS()},enumerable:!0,configurable:!0}),t.prototype.submit=function(){var t=this;Object(r.keys)(this.localValues).forEach(function(e){var n=t.localValues.get(e),i=t.model[e];Object(r.isObservableArray)(i)?i.replace(n):Object(r.isObservableMap)(i)?(i.clear(),i.merge(n)):Object(r.isComputed)(n)||(t.model[e]=n)}),this.localValues.clear()},t.prototype.reset=function(){this.localValues.clear()},t.prototype.resetProperty=function(t){this.localValues.delete(t)},S([r.computed],t.prototype,"isDirty",null),S([r.computed],t.prototype,"changedValues",null),S([r.action.bound],t.prototype,"submit",null),S([r.action.bound],t.prototype,"reset",null),S([r.action.bound],t.prototype,"resetProperty",null),t}();function L(t){return new A(t)}function z(t,e,n,i){return void 0===n&&(n=1e4),void 0===i&&(i=function(){}),l("whenWithTimeout is deprecated, use mobx.when with timeout option instead"),Object(r.when)(t,e,{timeout:n,onError:i})}function M(t,e){var n=Object(r.getAtom)(t,e);if(!n)throw new Error("No computed provided, please provide an object created with `computed(() => expr)` or an object + property name");return n.observe(function(){})}function j(t,e,n){if(void 0===n&&(n=0),!Object(r.isObservableArray)(t))throw new Error("Expected observable array as first argument");Object(r.isAction)(e)||(e=Object(r.action)("queueProcessor",e));var i=function(){var n=t.slice(0);Object(r.runInAction)(function(){return t.splice(0)}),n.forEach(e)};return n>0?Object(r.autorun)(i,{delay:n}):Object(r.autorun)(i)}function R(t,e,n,i){if(void 0===n&&(n=0),void 0===i&&(i=0),!Object(r.isObservableArray)(t))throw new Error("Expected observable array as first argument");Object(r.isAction)(e)||(e=Object(r.action)("chunkProcessor",e));var o=function(){for(var n=function(){var n=0===i?t.length:Math.min(t.length,i),o=t.slice(0,n);Object(r.runInAction)(function(){return t.splice(0,n)}),e(o)};t.length>0;)n()};return n>0?Object(r.autorun)(o,{delay:n}):Object(r.autorun)(o)}var I={};function N(t){return void 0===t&&(t=1e3),Object(r._isComputingDerivation)()?(I[t]||(I[t]="number"==typeof t?function(t){var e;return w(function(n){e=setInterval(function(){return n(Date.now())},t)},function(){clearInterval(e)},Date.now())}(t):e=w(function(t){!function n(){window.requestAnimationFrame(function(){t(Date.now()),e.isAlive()&&n()})}()},function(){},Date.now())),I[t].current()):Date.now();var e}var D=function(){return(D=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function B(t,e){if("string"==typeof arguments[1]){var n=arguments[1],i=arguments[2];return i&&i.value?Object.assign({},i,{value:Object(r.flow)(i.value)}):Object.assign({},i,{set:function(t){Object.defineProperty(this,n,D({},i,{value:Object(r.flow)(t)}))}})}var o="string"==typeof t?e:t;return l("asyncAction is deprecated. use mobx.flow instead"),Object(r.flow)(o)}function U(t,e){return void 0===e&&(e=0),l("whenAsync is deprecated, use mobx.when without effect instead"),Object(r.when)(t,{timeout:e})}function Z(t){return Object(r._isComputingDerivation)()||console.warn("'expr' should only be used inside other reactive functions."),Object(r.computed)(t).get()}var F=0;function W(t,e){a("function"==typeof t&&t.length<2,"createTransformer expects a function that accepts one argument");var n={},i=void 0,o=void 0;return function(a){var s=function(t){var e=typeof t;if("string"===e)return"string:"+t;if("number"===e)return"number:"+t;if(null===t||"object"!==e&&"function"!==e)throw new Error("[mobx-utils] transform expected an object, function, string or number, got: "+String(t));var n=t.$transformId;void 0===n&&(n="memoizationId:"+ ++F,u(t,"$transformId",n));return n}(a),l=n[s];return l?l.get():(l=n[s]=function(a,s){var l;"object"==typeof e?(i=e.onCleanup,o=e.debugNameGenerator):"function"==typeof e?i=e:(i=void 0,o=void 0);var u=o?o(s):"Transformer-"+t.name+"-"+a,c=Object(r.computed)(function(){return l=t(s)},{name:u}),f=Object(r.onBecomeUnobserved)(c,function(){delete n[a],f(),i&&i(l,s)});return c}(s,a)).get()}}function V(t){for(var e=[];t.parent;)e.push(t.path),t=t.parent;return e.reverse().join("/")}function H(t){return Object(r.isObservableObject)(t)||Object(r.isObservableArray)(t)||Object(r.isObservableMap)(t)}function q(t,e){var n=new WeakMap;function i(r){var i=n.get(r.object);!function(t,e){switch(t.type){case"add":o(t.newValue,e,t.name);break;case"update":a(t.oldValue),o(t.newValue,e,t.name||""+t.index);break;case"remove":case"delete":a(t.oldValue);break;case"splice":t.removed.map(a),t.added.forEach(function(n,r){return o(n,e,""+(t.index+r))});for(var r=t.index+t.addedCount;r<t.object.length;r++)if(H(t.object[r])){var i=n.get(t.object[r]);i&&(i.path=""+r)}}}(r,i),e(r,V(i),t)}function o(t,e,a){if(H(t))if(n.has(t)){var s=n.get(t);if(s.parent!==e||s.path!==a)throw new Error("The same observable object cannot appear twice in the same tree, trying to assign it to '"+V(e)+"/"+a+"', but it already exists at '"+V(s.parent)+"/"+s.path+"'")}else{var l={parent:e,path:a,dispose:Object(r.observe)(t,i)};n.set(t,l),Object(r.entries)(t).forEach(function(t){var e=t[0];return o(t[1],l,e)})}}function a(t){if(H(t)){var e=n.get(t);if(!e)return;n.delete(t),e.dispose(),Object(r.values)(t).forEach(a)}}return o(t,void 0,""),function(){a(t)}}var G=function(){function t(t,e){this.base=t,this.args=e,this.closestIdx=0,this.isDisposed=!1;for(var n=this.closest=this.root=t,r=0;r<this.args.length-1&&(n=n.get(e[r]));r++)this.closest=n;this.closestIdx=r}return t.prototype.exists=function(){this.assertNotDisposed();var t=this.args.length;return this.closestIdx>=t-1&&this.closest.has(this.args[t-1])},t.prototype.get=function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");return this.closest.get(this.args[this.args.length-1])},t.prototype.set=function(t){this.assertNotDisposed();for(var e=this.args.length,n=this.closest,r=this.closestIdx;r<e-1;r++){var i=new Map;n.set(this.args[r],i),n=i}this.closestIdx=e-1,this.closest=n,n.set(this.args[e-1],t)},t.prototype.delete=function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");var t=this.args.length;this.closest.delete(this.args[t-1]);for(var e=this.root,n=[e],r=0;r<t-1;r++)e=e.get(this.args[r]),n.push(e);for(r=n.length-1;r>0;r--)0===n[r].size&&n[r-1].delete(this.args[r-1]);this.isDisposed=!0},t.prototype.assertNotDisposed=function(){if(this.isDisposed)throw new Error("Concurrent modification exception")},t}(),K=function(){function t(){this.store=new Map,this.argsLength=-1}return t.prototype.entry=function(t){if(-1===this.argsLength)this.argsLength=t.length;else if(this.argsLength!==t.length)throw new Error("DeepMap should be used with functions with a consistent length, expected: "+this.argsLength+", got: "+t.length);return this.last&&(this.last.isDisposed=!0),this.last=new G(this.store,t)},t}();function Y(t,e){if(void 0===e&&(e=!1),Object(r.isAction)(t))throw new Error("computedFn shouldn't be used on actions");var n=!1,i=0,o=new K;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var l=this,u=o.entry(a);if(u.exists())return u.get().get();if(!e&&!Object(r._isComputingDerivation)())return n||(console.warn("invoking a computedFn from outside an reactive context won't be memoized, unless keepAlive is set"),n=!0),t.apply(l,a);var c=Object(r.computed)(function(){return t.apply(l,a)},{name:"computedFn("+t.name+"#"+ ++i+")",keepAlive:e});return u.set(c),e||Object(r.onBecomeUnobserved)(c,function(){o.entry(a).delete()}),c.get()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(4);e.asyncComputed=function(t,e,n,o){var a=i.throttledComputed(n,e,o),s=r.promisedComputed(t,a.get);return{get:function(){return s.get()},get busy(){return s.busy},refresh:function(){a.refresh()}}}},function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(5),a=n(4),s=function(){function t(t){var e=this;this.options=t,t.delay?this.computation=a.throttledComputed(t.fetch,t.delay):this.computation=i.computed(t.fetch),this.promised=o.promisedComputedInternal(t.init,function(){return e.computation.get()})}return Object.defineProperty(t.prototype,"busy",{get:function(){return this.promised.busy},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"failed",{get:function(){try{return this.promised.get(),!1}catch(t){return!0}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"error",{get:function(){try{return void this.promised.get()}catch(t){return t}},enumerable:!0,configurable:!0}),t.prototype.initializedValue=function(){return this.lastValue=this.promised.get(),this.lastValue},Object.defineProperty(t.prototype,"value",{get:function(){if(this.promised.busy&&this.options.revert)return this.options.init;if(this.options.rethrow)return this.initializedValue();try{return this.initializedValue()}catch(t){if(this.options.error)try{return this.options.error(t)}catch(t){console.error(t)}return void 0===this.lastValue?this.options.init:this.lastValue}},enumerable:!0,configurable:!0}),r([i.computed],t.prototype,"failed",null),r([i.computed],t.prototype,"error",null),r([i.computed],t.prototype,"value",null),t}();e.computedAsync=function(t,e,n){return 1===arguments.length?new s(t):new s({init:t,fetch:e,delay:n})}},function(t,e,n){var r=n(27);"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(7)(r,i);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(6)(!1)).push([t.i,"fieldset.radio-grp {\n border: none;\n}\n\n/* .radio-grp input[type='radio'] {\n display: none;\n} */\n\n.radio-grp input[type='radio']:focus + label {\n outline: 1px;\n}\n\n.radio-grp label {\n display: block;\n padding: 10px 20px;\n font-size: 16px;\n border-radius: 2px;\n background-color: #ddd;\n border: 1px solid #444;\n}\n\n.radio-grp label.selected {\n background-color: rgb(175, 243, 255);\n border-color: rgb(75, 174, 240);\n}\n\n.radio-grp label:hover {\n background-color: rgb(144, 208, 250);\n}\n",""])},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var i,o=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(t,e,n){var r=n(30);"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(7)(r,i);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(6)(!1)).push([t.i,".range-input label {\n display: grid;\n grid-template-columns: 1fr auto;\n}\n\n.range-input input {\n grid-row: 2/3;\n grid-column: 1/3;\n}\n",""])},function(t,e,n){var r=n(32);"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(7)(r,i);r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(6)(!1);var r=n(33),i=r(n(34)),o=r(n(35)),a=r(n(36));e.push([t.i,"/* required styles */\r\n\r\n.leaflet-pane,\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-tile-container,\r\n.leaflet-pane > svg,\r\n.leaflet-pane > canvas,\r\n.leaflet-zoom-box,\r\n.leaflet-image-layer,\r\n.leaflet-layer {\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\t}\r\n.leaflet-container {\r\n\toverflow: hidden;\r\n\t}\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\t-webkit-user-select: none;\r\n\t -moz-user-select: none;\r\n\t user-select: none;\r\n\t -webkit-user-drag: none;\r\n\t}\r\n/* Prevents IE11 from highlighting tiles in blue */\r\n.leaflet-tile::selection {\r\n\tbackground: transparent;\r\n}\r\n/* Safari renders non-retina tile on retina better with this, but Chrome is worse */\r\n.leaflet-safari .leaflet-tile {\r\n\timage-rendering: -webkit-optimize-contrast;\r\n\t}\r\n/* hack that prevents hw layers \"stretching\" when loading new tiles */\r\n.leaflet-safari .leaflet-tile-container {\r\n\twidth: 1600px;\r\n\theight: 1600px;\r\n\t-webkit-transform-origin: 0 0;\r\n\t}\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\tdisplay: block;\r\n\t}\r\n/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */\r\n/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */\r\n.leaflet-container .leaflet-overlay-pane svg,\r\n.leaflet-container .leaflet-marker-pane img,\r\n.leaflet-container .leaflet-shadow-pane img,\r\n.leaflet-container .leaflet-tile-pane img,\r\n.leaflet-container img.leaflet-image-layer,\r\n.leaflet-container .leaflet-tile {\r\n\tmax-width: none !important;\r\n\tmax-height: none !important;\r\n\t}\r\n\r\n.leaflet-container.leaflet-touch-zoom {\r\n\t-ms-touch-action: pan-x pan-y;\r\n\ttouch-action: pan-x pan-y;\r\n\t}\r\n.leaflet-container.leaflet-touch-drag {\r\n\t-ms-touch-action: pinch-zoom;\r\n\t/* Fallback for FF which doesn't support pinch-zoom */\r\n\ttouch-action: none;\r\n\ttouch-action: pinch-zoom;\r\n}\r\n.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {\r\n\t-ms-touch-action: none;\r\n\ttouch-action: none;\r\n}\r\n.leaflet-container {\r\n\t-webkit-tap-highlight-color: transparent;\r\n}\r\n.leaflet-container a {\r\n\t-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);\r\n}\r\n.leaflet-tile {\r\n\tfilter: inherit;\r\n\tvisibility: hidden;\r\n\t}\r\n.leaflet-tile-loaded {\r\n\tvisibility: inherit;\r\n\t}\r\n.leaflet-zoom-box {\r\n\twidth: 0;\r\n\theight: 0;\r\n\t-moz-box-sizing: border-box;\r\n\t box-sizing: border-box;\r\n\tz-index: 800;\r\n\t}\r\n/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */\r\n.leaflet-overlay-pane svg {\r\n\t-moz-user-select: none;\r\n\t}\r\n\r\n.leaflet-pane { z-index: 400; }\r\n\r\n.leaflet-tile-pane { z-index: 200; }\r\n.leaflet-overlay-pane { z-index: 400; }\r\n.leaflet-shadow-pane { z-index: 500; }\r\n.leaflet-marker-pane { z-index: 600; }\r\n.leaflet-tooltip-pane { z-index: 650; }\r\n.leaflet-popup-pane { z-index: 700; }\r\n\r\n.leaflet-map-pane canvas { z-index: 100; }\r\n.leaflet-map-pane svg { z-index: 200; }\r\n\r\n.leaflet-vml-shape {\r\n\twidth: 1px;\r\n\theight: 1px;\r\n\t}\r\n.lvml {\r\n\tbehavior: url(#default#VML);\r\n\tdisplay: inline-block;\r\n\tposition: absolute;\r\n\t}\r\n\r\n\r\n/* control positioning */\r\n\r\n.leaflet-control {\r\n\tposition: relative;\r\n\tz-index: 800;\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\r\n\tpointer-events: auto;\r\n\t}\r\n.leaflet-top,\r\n.leaflet-bottom {\r\n\tposition: absolute;\r\n\tz-index: 1000;\r\n\tpointer-events: none;\r\n\t}\r\n.leaflet-top {\r\n\ttop: 0;\r\n\t}\r\n.leaflet-right {\r\n\tright: 0;\r\n\t}\r\n.leaflet-bottom {\r\n\tbottom: 0;\r\n\t}\r\n.leaflet-left {\r\n\tleft: 0;\r\n\t}\r\n.leaflet-control {\r\n\tfloat: left;\r\n\tclear: both;\r\n\t}\r\n.leaflet-right .leaflet-control {\r\n\tfloat: right;\r\n\t}\r\n.leaflet-top .leaflet-control {\r\n\tmargin-top: 10px;\r\n\t}\r\n.leaflet-bottom .leaflet-control {\r\n\tmargin-bottom: 10px;\r\n\t}\r\n.leaflet-left .leaflet-control {\r\n\tmargin-left: 10px;\r\n\t}\r\n.leaflet-right .leaflet-control {\r\n\tmargin-right: 10px;\r\n\t}\r\n\r\n\r\n/* zoom and fade animations */\r\n\r\n.leaflet-fade-anim .leaflet-tile {\r\n\twill-change: opacity;\r\n\t}\r\n.leaflet-fade-anim .leaflet-popup {\r\n\topacity: 0;\r\n\t-webkit-transition: opacity 0.2s linear;\r\n\t -moz-transition: opacity 0.2s linear;\r\n\t transition: opacity 0.2s linear;\r\n\t}\r\n.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\r\n\topacity: 1;\r\n\t}\r\n.leaflet-zoom-animated {\r\n\t-webkit-transform-origin: 0 0;\r\n\t -ms-transform-origin: 0 0;\r\n\t transform-origin: 0 0;\r\n\t}\r\n.leaflet-zoom-anim .leaflet-zoom-animated {\r\n\twill-change: transform;\r\n\t}\r\n.leaflet-zoom-anim .leaflet-zoom-animated {\r\n\t-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t transition: transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t}\r\n.leaflet-zoom-anim .leaflet-tile,\r\n.leaflet-pan-anim .leaflet-tile {\r\n\t-webkit-transition: none;\r\n\t -moz-transition: none;\r\n\t transition: none;\r\n\t}\r\n\r\n.leaflet-zoom-anim .leaflet-zoom-hide {\r\n\tvisibility: hidden;\r\n\t}\r\n\r\n\r\n/* cursors */\r\n\r\n.leaflet-interactive {\r\n\tcursor: pointer;\r\n\t}\r\n.leaflet-grab {\r\n\tcursor: -webkit-grab;\r\n\tcursor: -moz-grab;\r\n\tcursor: grab;\r\n\t}\r\n.leaflet-crosshair,\r\n.leaflet-crosshair .leaflet-interactive {\r\n\tcursor: crosshair;\r\n\t}\r\n.leaflet-popup-pane,\r\n.leaflet-control {\r\n\tcursor: auto;\r\n\t}\r\n.leaflet-dragging .leaflet-grab,\r\n.leaflet-dragging .leaflet-grab .leaflet-interactive,\r\n.leaflet-dragging .leaflet-marker-draggable {\r\n\tcursor: move;\r\n\tcursor: -webkit-grabbing;\r\n\tcursor: -moz-grabbing;\r\n\tcursor: grabbing;\r\n\t}\r\n\r\n/* marker & overlays interactivity */\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-image-layer,\r\n.leaflet-pane > svg path,\r\n.leaflet-tile-container {\r\n\tpointer-events: none;\r\n\t}\r\n\r\n.leaflet-marker-icon.leaflet-interactive,\r\n.leaflet-image-layer.leaflet-interactive,\r\n.leaflet-pane > svg path.leaflet-interactive,\r\nsvg.leaflet-image-layer.leaflet-interactive path {\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\r\n\tpointer-events: auto;\r\n\t}\r\n\r\n/* visual tweaks */\r\n\r\n.leaflet-container {\r\n\tbackground: #ddd;\r\n\toutline: 0;\r\n\t}\r\n.leaflet-container a {\r\n\tcolor: #0078A8;\r\n\t}\r\n.leaflet-container a.leaflet-active {\r\n\toutline: 2px solid orange;\r\n\t}\r\n.leaflet-zoom-box {\r\n\tborder: 2px dotted #38f;\r\n\tbackground: rgba(255,255,255,0.5);\r\n\t}\r\n\r\n\r\n/* general typography */\r\n.leaflet-container {\r\n\tfont: 12px/1.5 \"Helvetica Neue\", Arial, Helvetica, sans-serif;\r\n\t}\r\n\r\n\r\n/* general toolbar styles */\r\n\r\n.leaflet-bar {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.65);\r\n\tborder-radius: 4px;\r\n\t}\r\n.leaflet-bar a,\r\n.leaflet-bar a:hover {\r\n\tbackground-color: #fff;\r\n\tborder-bottom: 1px solid #ccc;\r\n\twidth: 26px;\r\n\theight: 26px;\r\n\tline-height: 26px;\r\n\tdisplay: block;\r\n\ttext-align: center;\r\n\ttext-decoration: none;\r\n\tcolor: black;\r\n\t}\r\n.leaflet-bar a,\r\n.leaflet-control-layers-toggle {\r\n\tbackground-position: 50% 50%;\r\n\tbackground-repeat: no-repeat;\r\n\tdisplay: block;\r\n\t}\r\n.leaflet-bar a:hover {\r\n\tbackground-color: #f4f4f4;\r\n\t}\r\n.leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 4px;\r\n\tborder-top-right-radius: 4px;\r\n\t}\r\n.leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 4px;\r\n\tborder-bottom-right-radius: 4px;\r\n\tborder-bottom: none;\r\n\t}\r\n.leaflet-bar a.leaflet-disabled {\r\n\tcursor: default;\r\n\tbackground-color: #f4f4f4;\r\n\tcolor: #bbb;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-bar a {\r\n\twidth: 30px;\r\n\theight: 30px;\r\n\tline-height: 30px;\r\n\t}\r\n.leaflet-touch .leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 2px;\r\n\tborder-top-right-radius: 2px;\r\n\t}\r\n.leaflet-touch .leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 2px;\r\n\tborder-bottom-right-radius: 2px;\r\n\t}\r\n\r\n/* zoom control */\r\n\r\n.leaflet-control-zoom-in,\r\n.leaflet-control-zoom-out {\r\n\tfont: bold 18px 'Lucida Console', Monaco, monospace;\r\n\ttext-indent: 1px;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {\r\n\tfont-size: 22px;\r\n\t}\r\n\r\n\r\n/* layers control */\r\n\r\n.leaflet-control-layers {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.4);\r\n\tbackground: #fff;\r\n\tborder-radius: 5px;\r\n\t}\r\n.leaflet-control-layers-toggle {\r\n\tbackground-image: url("+i+");\r\n\twidth: 36px;\r\n\theight: 36px;\r\n\t}\r\n.leaflet-retina .leaflet-control-layers-toggle {\r\n\tbackground-image: url("+o+");\r\n\tbackground-size: 26px 26px;\r\n\t}\r\n.leaflet-touch .leaflet-control-layers-toggle {\r\n\twidth: 44px;\r\n\theight: 44px;\r\n\t}\r\n.leaflet-control-layers .leaflet-control-layers-list,\r\n.leaflet-control-layers-expanded .leaflet-control-layers-toggle {\r\n\tdisplay: none;\r\n\t}\r\n.leaflet-control-layers-expanded .leaflet-control-layers-list {\r\n\tdisplay: block;\r\n\tposition: relative;\r\n\t}\r\n.leaflet-control-layers-expanded {\r\n\tpadding: 6px 10px 6px 6px;\r\n\tcolor: #333;\r\n\tbackground: #fff;\r\n\t}\r\n.leaflet-control-layers-scrollbar {\r\n\toverflow-y: scroll;\r\n\toverflow-x: hidden;\r\n\tpadding-right: 5px;\r\n\t}\r\n.leaflet-control-layers-selector {\r\n\tmargin-top: 2px;\r\n\tposition: relative;\r\n\ttop: 1px;\r\n\t}\r\n.leaflet-control-layers label {\r\n\tdisplay: block;\r\n\t}\r\n.leaflet-control-layers-separator {\r\n\theight: 0;\r\n\tborder-top: 1px solid #ddd;\r\n\tmargin: 5px -10px 5px -6px;\r\n\t}\r\n\r\n/* Default icon URLs */\r\n.leaflet-default-icon-path {\r\n\tbackground-image: url("+a+');\r\n\t}\r\n\r\n\r\n/* attribution and scale controls */\r\n\r\n.leaflet-container .leaflet-control-attribution {\r\n\tbackground: #fff;\r\n\tbackground: rgba(255, 255, 255, 0.7);\r\n\tmargin: 0;\r\n\t}\r\n.leaflet-control-attribution,\r\n.leaflet-control-scale-line {\r\n\tpadding: 0 5px;\r\n\tcolor: #333;\r\n\t}\r\n.leaflet-control-attribution a {\r\n\ttext-decoration: none;\r\n\t}\r\n.leaflet-control-attribution a:hover {\r\n\ttext-decoration: underline;\r\n\t}\r\n.leaflet-container .leaflet-control-attribution,\r\n.leaflet-container .leaflet-control-scale {\r\n\tfont-size: 11px;\r\n\t}\r\n.leaflet-left .leaflet-control-scale {\r\n\tmargin-left: 5px;\r\n\t}\r\n.leaflet-bottom .leaflet-control-scale {\r\n\tmargin-bottom: 5px;\r\n\t}\r\n.leaflet-control-scale-line {\r\n\tborder: 2px solid #777;\r\n\tborder-top: none;\r\n\tline-height: 1.1;\r\n\tpadding: 2px 5px 1px;\r\n\tfont-size: 11px;\r\n\twhite-space: nowrap;\r\n\toverflow: hidden;\r\n\t-moz-box-sizing: border-box;\r\n\t box-sizing: border-box;\r\n\r\n\tbackground: #fff;\r\n\tbackground: rgba(255, 255, 255, 0.5);\r\n\t}\r\n.leaflet-control-scale-line:not(:first-child) {\r\n\tborder-top: 2px solid #777;\r\n\tborder-bottom: none;\r\n\tmargin-top: -2px;\r\n\t}\r\n.leaflet-control-scale-line:not(:first-child):not(:last-child) {\r\n\tborder-bottom: 2px solid #777;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-attribution,\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tbox-shadow: none;\r\n\t}\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tborder: 2px solid rgba(0,0,0,0.2);\r\n\tbackground-clip: padding-box;\r\n\t}\r\n\r\n\r\n/* popup */\r\n\r\n.leaflet-popup {\r\n\tposition: absolute;\r\n\ttext-align: center;\r\n\tmargin-bottom: 20px;\r\n\t}\r\n.leaflet-popup-content-wrapper {\r\n\tpadding: 1px;\r\n\ttext-align: left;\r\n\tborder-radius: 12px;\r\n\t}\r\n.leaflet-popup-content {\r\n\tmargin: 13px 19px;\r\n\tline-height: 1.4;\r\n\t}\r\n.leaflet-popup-content p {\r\n\tmargin: 18px 0;\r\n\t}\r\n.leaflet-popup-tip-container {\r\n\twidth: 40px;\r\n\theight: 20px;\r\n\tposition: absolute;\r\n\tleft: 50%;\r\n\tmargin-left: -20px;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\t}\r\n.leaflet-popup-tip {\r\n\twidth: 17px;\r\n\theight: 17px;\r\n\tpadding: 1px;\r\n\r\n\tmargin: -10px auto 0;\r\n\r\n\t-webkit-transform: rotate(45deg);\r\n\t -moz-transform: rotate(45deg);\r\n\t -ms-transform: rotate(45deg);\r\n\t transform: rotate(45deg);\r\n\t}\r\n.leaflet-popup-content-wrapper,\r\n.leaflet-popup-tip {\r\n\tbackground: white;\r\n\tcolor: #333;\r\n\tbox-shadow: 0 3px 14px rgba(0,0,0,0.4);\r\n\t}\r\n.leaflet-container a.leaflet-popup-close-button {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tpadding: 4px 4px 0 0;\r\n\tborder: none;\r\n\ttext-align: center;\r\n\twidth: 18px;\r\n\theight: 14px;\r\n\tfont: 16px/14px Tahoma, Verdana, sans-serif;\r\n\tcolor: #c3c3c3;\r\n\ttext-decoration: none;\r\n\tfont-weight: bold;\r\n\tbackground: transparent;\r\n\t}\r\n.leaflet-container a.leaflet-popup-close-button:hover {\r\n\tcolor: #999;\r\n\t}\r\n.leaflet-popup-scrolled {\r\n\toverflow: auto;\r\n\tborder-bottom: 1px solid #ddd;\r\n\tborder-top: 1px solid #ddd;\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-popup-content-wrapper {\r\n\tzoom: 1;\r\n\t}\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\twidth: 24px;\r\n\tmargin: 0 auto;\r\n\r\n\t-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";\r\n\tfilter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\r\n\t}\r\n.leaflet-oldie .leaflet-popup-tip-container {\r\n\tmargin-top: -1px;\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-control-zoom,\r\n.leaflet-oldie .leaflet-control-layers,\r\n.leaflet-oldie .leaflet-popup-content-wrapper,\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\tborder: 1px solid #999;\r\n\t}\r\n\r\n\r\n/* div icon */\r\n\r\n.leaflet-div-icon {\r\n\tbackground: #fff;\r\n\tborder: 1px solid #666;\r\n\t}\r\n\r\n\r\n/* Tooltip */\r\n/* Base styles for the element that has a tooltip */\r\n.leaflet-tooltip {\r\n\tposition: absolute;\r\n\tpadding: 6px;\r\n\tbackground-color: #fff;\r\n\tborder: 1px solid #fff;\r\n\tborder-radius: 3px;\r\n\tcolor: #222;\r\n\twhite-space: nowrap;\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none;\r\n\tpointer-events: none;\r\n\tbox-shadow: 0 1px 3px rgba(0,0,0,0.4);\r\n\t}\r\n.leaflet-tooltip.leaflet-clickable {\r\n\tcursor: pointer;\r\n\tpointer-events: auto;\r\n\t}\r\n.leaflet-tooltip-top:before,\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\tposition: absolute;\r\n\tpointer-events: none;\r\n\tborder: 6px solid transparent;\r\n\tbackground: transparent;\r\n\tcontent: "";\r\n\t}\r\n\r\n/* Directions */\r\n\r\n.leaflet-tooltip-bottom {\r\n\tmargin-top: 6px;\r\n}\r\n.leaflet-tooltip-top {\r\n\tmargin-top: -6px;\r\n}\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-top:before {\r\n\tleft: 50%;\r\n\tmargin-left: -6px;\r\n\t}\r\n.leaflet-tooltip-top:before {\r\n\tbottom: 0;\r\n\tmargin-bottom: -12px;\r\n\tborder-top-color: #fff;\r\n\t}\r\n.leaflet-tooltip-bottom:before {\r\n\ttop: 0;\r\n\tmargin-top: -12px;\r\n\tmargin-left: -6px;\r\n\tborder-bottom-color: #fff;\r\n\t}\r\n.leaflet-tooltip-left {\r\n\tmargin-left: -6px;\r\n}\r\n.leaflet-tooltip-right {\r\n\tmargin-left: 6px;\r\n}\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\ttop: 50%;\r\n\tmargin-top: -6px;\r\n\t}\r\n.leaflet-tooltip-left:before {\r\n\tright: 0;\r\n\tmargin-right: -12px;\r\n\tborder-left-color: #fff;\r\n\t}\r\n.leaflet-tooltip-right:before {\r\n\tleft: 0;\r\n\tmargin-left: -12px;\r\n\tborder-right-color: #fff;\r\n\t}\r\n',""])},function(t,e,n){"use strict";t.exports=function(t,e){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)||e?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC"},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII="},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII="},function(t,e,n){"use strict";t.exports=n(38)},function(t,e,n){"use strict";
|
|
/** @license React v16.8.6
|
|
* react-is.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116;function y(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case f:case h:case a:case l:case s:case p:return t;default:switch(t=t&&t.$$typeof){case c:case d:case u:return t;default:return e}}case v:case m:case o:return e}}}function g(t){return y(t)===h}e.typeOf=y,e.AsyncMode=f,e.ConcurrentMode=h,e.ContextConsumer=c,e.ContextProvider=u,e.Element=i,e.ForwardRef=d,e.Fragment=a,e.Lazy=v,e.Memo=m,e.Portal=o,e.Profiler=l,e.StrictMode=s,e.Suspense=p,e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===h||t===l||t===s||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===m||t.$$typeof===u||t.$$typeof===c||t.$$typeof===d)},e.isAsyncMode=function(t){return g(t)||y(t)===f},e.isConcurrentMode=g,e.isContextConsumer=function(t){return y(t)===c},e.isContextProvider=function(t){return y(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return y(t)===d},e.isFragment=function(t){return y(t)===a},e.isLazy=function(t){return y(t)===v},e.isMemo=function(t){return y(t)===m},e.isPortal=function(t){return y(t)===o},e.isProfiler=function(t){return y(t)===l},e.isStrictMode=function(t){return y(t)===s},e.isSuspense=function(t){return y(t)===p}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n.n(r),o=n(3),a=n.n(o),s=n(1);if(!r.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!s.spy)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var l=!1;function u(){return l}
|
|
/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** */var c=function(){return(c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function f(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function h(t){return t.current?Object(s.getDependencyTree)(t.current):"<unknown>"}var d=[];function p(){var t=f(Object(r.useState)(0),2)[1];return Object(r.useCallback)(function(){t(function(t){return t+1})},[])}var m={};function v(t,e,n){if(void 0===e&&(e="observed"),void 0===n&&(n=m),u())return t();var i=(n.useForceUpdate||p)(),o=Object(r.useRef)(null);o.current||(o.current=new s.Reaction("observer("+e+")",function(){i()}));var a,l,c=function(){o.current&&!o.current.isDisposed&&o.current.dispose()};if(Object(r.useDebugValue)(o,h),function(t){Object(r.useEffect)(function(){return t},d)}(function(){c()}),o.current.track(function(){try{a=t()}catch(t){l=t}}),l)throw c(),l;return a}function y(t,e){if(u())return t;var n,i,o,a=c({forwardRef:!1},e),s=t.displayName||t.name,l=function(e,n){return v(function(){return t(e,n)},s)};return l.displayName=s,n=a.forwardRef?Object(r.memo)(Object(r.forwardRef)(l)):Object(r.memo)(l),i=t,o=n,Object.keys(i).forEach(function(t){i.hasOwnProperty(t)&&!g[t]&&Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(i,t))}),n.displayName=s,n}var g={$$typeof:!0,render:!0,compare:!0,type:!0};function _(t){var e=t.children,n=t.render,r=e||n;return"function"!=typeof r?null:v(r)}function b(t,e,n,r,i){var o="children"===e?"render":"children",a="function"==typeof t[e],s="function"==typeof t[o];return a&&s?new Error("MobX Observer: Do not use children and render in the same time in`"+n):a||s?null:new Error("Invalid prop `"+i+"` of type `"+typeof t[e]+"` supplied to `"+n+"`, expected `function`.")}_.propTypes={children:b,render:b},_.displayName="Observer";var w=0,x={};function T(t){return x[t]||(x[t]=function(t){if("function"==typeof Symbol)return Symbol(t);var e="__$mobx-react "+t+" ("+w+")";return w++,e}(t)),x[t]}function E(t,e){if(P(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!hasOwnProperty.call(e,n[i])||!P(t[n[i]],e[n[i]]))return!1;return!0}function P(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function k(t,e,n){Object.hasOwnProperty.call(t,e)?t[e]=n:Object.defineProperty(t,e,{enumerable:!1,configurable:!0,writable:!0,value:n})}var C=T("patchMixins"),S=T("patchedDefinition");function O(t,e){for(var n=this,r=[],i=arguments.length-2;i-- >0;)r[i]=arguments[i+2];e.locks++;try{var o;return null!=t&&(o=t.apply(this,r)),o}finally{e.locks--,0===e.locks&&e.methods.forEach(function(t){t.apply(n,r)})}}function A(t,e){return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];O.call.apply(O,[this,t,e].concat(n))}}function L(t,e,n){var r=function(t,e){var n=t[C]=t[C]||{},r=n[e]=n[e]||{};return r.locks=r.locks||0,r.methods=r.methods||[],r}(t,e);r.methods.indexOf(n)<0&&r.methods.push(n);var i=Object.getOwnPropertyDescriptor(t,e);if(!i||!i[S]){var o=function t(e,n,r,i,o){var a,s=A(o,i);return(a={})[S]=!0,a.get=function(){return s},a.set=function(o){if(this===e)s=A(o,i);else{var a=t(this,n,r,i,o);Object.defineProperty(this,n,a)}},a.configurable=!0,a.enumerable=r,a}(t,e,i?i.enumerable:void 0,r,t[e]);Object.defineProperty(t,e,o)}}var z=s.$mobx||"$mobx",M=T("isUnmounted"),j=T("skipRender"),R=T("isForcingUpdate");function I(t,e){return u()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==e||!E(this.props,t)}function N(t,e){var n=T("reactProp_"+e+"_valueHolder"),r=T("reactProp_"+e+"_atomHolder");function i(){return this[r]||k(this,r,Object(s.createAtom)("reactive "+e)),this[r]}Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return i.call(this).reportObserved(),this[n]},set:function(t){this[R]||E(this[n],t)?k(this,n,t):(k(this,n,t),k(this,j,!0),i.call(this).reportChanged(),k(this,j,!1))}})}var D="function"==typeof r.forwardRef&&Object(r.forwardRef)(function(t,e){}).$$typeof;function B(t){if(!0===t.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),D&&t.$$typeof===D){var e=t.render;if("function"!=typeof e)throw new Error("render property of ForwardRef was not a function");return Object(r.forwardRef)(function(){var t=arguments;return i.a.createElement(_,null,function(){return e.apply(void 0,t)})})}return"function"!=typeof t||t.prototype&&t.prototype.render||t.isReactClass||r.Component.isPrototypeOf(t)?function(t){var e=t.prototype;if(e.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(t.__proto__!==r.PureComponent)if(e.shouldComponentUpdate){if(e.shouldComponentUpdate!==I)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else e.shouldComponentUpdate=I;N(e,"props"),N(e,"state");var n=e.render;return e.render=function(){return function(t){var e=this;if(!0===u())return t.call(this);k(this,j,!1),k(this,R,!1);var n=this.displayName||this.name||this.constructor&&(this.constructor.displayName||this.constructor.name)||"<component>",i=t.bind(this),o=!1,a=new s.Reaction(n+".render()",function(){if(!o&&(o=!0,!0!==e[M])){var t=!0;try{k(e,R,!0),e[j]||r.Component.prototype.forceUpdate.call(e),t=!1}finally{k(e,R,!1),t&&a.dispose()}}});function l(){o=!1;var t=void 0,e=void 0;if(a.track(function(){try{e=Object(s._allowStateChanges)(!1,i)}catch(e){t=e}}),t)throw t;return e}return a.reactComponent=this,l[z]=a,this.render=l,l.call(this)}.call(this,n)},L(e,"componentWillUnmount",function(){!0!==u()&&(this.render[z]&&this.render[z].dispose(),this[M]=!0)}),t}(t):y(t)}var U={children:!0,key:!0,ref:!0},Z=Object(r.createContext)({});function F(t){return!U[t]&&"suppressChangedStoreWarning"!==t}(function(t){function e(e,n){t.call(this,e,n),this.state=Object.assign({},n,function(t){var e={};if(!t)return e;for(var n in t)F(n)&&(e[n]=t[n]);return e}(e))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.render=function(){return Object(r.createElement)(Z.Provider,{value:this.state},r.Children.only(this.props.children))},e.getDerivedStateFromProps=function(t,e){return e},e}(r.Component)).contextType=Z;T("disposeOnUnmountProto"),T("disposeOnUnmountInst");function W(t){function e(e,n,r,i,o,a){for(var l=[],u=arguments.length-6;u-- >0;)l[u]=arguments[u+6];return Object(s.untracked)(function(){return i=i||"<<anonymous>>",a=a||r,null==n[r]?e?new Error("The "+o+" `"+a+"` is marked as required in `"+i+"`, but its value is `"+(null===n[r]?"null":"undefined")+"`."):null:t.apply(void 0,[n,r,i,o,a].concat(l))})}var n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n}function V(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||"Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol}(e,t)?"symbol":e}function H(t,e){return W(function(n,r,i,o,a){return Object(s.untracked)(function(){if(t&&V(n[r])===e.toLowerCase())return null;var o;switch(e){case"Array":o=s.isObservableArray;break;case"Object":o=s.isObservableObject;break;case"Map":o=s.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+e)}var l=n[r];if(!o(l)){var u=function(t){var e=V(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}(l),c=t?" or javascript `"+e.toLowerCase()+"`":"";return new Error("Invalid prop `"+a+"` of type `"+u+"` supplied to `"+i+"`, expected `mobx.Observable"+e+"`"+c+".")}return null})})}function q(t,e){return W(function(n,r,i,o,a){for(var l=[],u=arguments.length-5;u-- >0;)l[u]=arguments[u+5];return Object(s.untracked)(function(){if("function"!=typeof e)return new Error("Property `"+a+"` of component `"+i+"` has invalid PropType notation.");var s=H(t,"Array")(n,r,i);if(s instanceof Error)return s;for(var u=n[r],c=0;c<u.length;c++)if((s=e.apply(void 0,[u,c,i,o,a+"["+c+"]"].concat(l)))instanceof Error)return s;return null})})}H(!1,"Array"),q.bind(null,!1),H(!1,"Map"),H(!1,"Object"),H(!0,"Array"),q.bind(null,!0),H(!0,"Object");if(!r.Component)throw new Error("mobx-react requires React to be available");if(!s.observable)throw new Error("mobx-react requires mobx to be available");"function"==typeof o.unstable_batchedUpdates&&Object(s.configure)({reactionScheduler:o.unstable_batchedUpdates});var G,K=n(14),Y=(G="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(t){var e;t=t||{},e||(e=void 0!==t?t:{});var r,i={};for(r in e)e.hasOwnProperty(r)&&(i[r]=e[r]);e.arguments=[],e.thisProgram="./this.program",e.quit=function(t,e){throw e},e.preRun=[],e.postRun=[];var o=!1,a=!1,s=!1,l=!1;o="object"==typeof window,a="function"==typeof importScripts,s="object"==typeof process&&!o&&!a,l=!o&&!s&&!a;var u,c,f="";s?(f=__dirname+"/",e.read=function(t,e){return u||(u=n(12)),c||(c=n(13)),t=c.normalize(t),t=u.readFileSync(t),e?t:t.toString()},e.readBinary=function(t){return(t=e.read(t,!0)).buffer||(t=new Uint8Array(t)),t.buffer||le("Assertion failed: undefined"),t},1<process.argv.length&&(e.thisProgram=process.argv[1].replace(/\\/g,"/")),e.arguments=process.argv.slice(2),process.on("uncaughtException",function(t){if(!(t instanceof ae))throw t}),process.on("unhandledRejection",le),e.quit=function(t){process.exit(t)},e.inspect=function(){return"[Emscripten Module object]"}):l?("undefined"!=typeof read&&(e.read=function(t){return read(t)}),e.readBinary=function(t){return"function"==typeof readbuffer?new Uint8Array(readbuffer(t)):("object"==typeof(t=read(t,"binary"))||le("Assertion failed: undefined"),t)},"undefined"!=typeof scriptArgs?e.arguments=scriptArgs:void 0!==arguments&&(e.arguments=arguments),"function"==typeof quit&&(e.quit=function(t){quit(t)})):(o||a)&&(a?f=self.location.href:document.currentScript&&(f=document.currentScript.src),G&&(f=G),f=0!==f.indexOf("blob:")?f.substr(0,f.lastIndexOf("/")+1):"",e.read=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},a&&(e.readBinary=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),e.readAsync=function(t,e,n){var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?e(r.response):n()},r.onerror=n,r.send(null)},e.setWindowTitle=function(t){document.title=t});var h=e.print||("undefined"!=typeof console?console.log.bind(console):"undefined"!=typeof print?print:null),d=e.printErr||("undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&console.warn.bind(console)||h);for(r in i)i.hasOwnProperty(r)&&(e[r]=i[r]);i=void 0;var p={"f64-rem":function(t,e){return t%e},debugger:function(){}};"object"!=typeof WebAssembly&&d("no native wasm support detected");var m,v,y,g,_,b,w,x,T,E,P=!1,k="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function C(t,e,n){var r=e+n;for(n=e;t[n]&&!(n>=r);)++n;if(16<n-e&&t.subarray&&k)return k.decode(t.subarray(e,n));for(r="";e<n;){var i=t[e++];if(128&i){var o=63&t[e++];if(192==(224&i))r+=String.fromCharCode((31&i)<<6|o);else{var a=63&t[e++];65536>(i=224==(240&i)?(15&i)<<12|o<<6|a:(7&i)<<18|o<<12|a<<6|63&t[e++])?r+=String.fromCharCode(i):(i-=65536,r+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else r+=String.fromCharCode(i)}return r}function S(t,e,n){var r=g;if(0<n){n=e+n-1;for(var i=0;i<t.length;++i){var o=t.charCodeAt(i);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&t.charCodeAt(++i)),127>=o){if(e>=n)break;r[e++]=o}else{if(2047>=o){if(e+1>=n)break;r[e++]=192|o>>6}else{if(65535>=o){if(e+2>=n)break;r[e++]=224|o>>12}else{if(e+3>=n)break;r[e++]=240|o>>18,r[e++]=128|o>>12&63}r[e++]=128|o>>6&63}r[e++]=128|63&o}}r[e]=0}}function O(t){return 0<t%65536&&(t+=65536-t%65536),t}function A(){e.HEAP8=y=new Int8Array(v),e.HEAP16=_=new Int16Array(v),e.HEAP32=w=new Int32Array(v),e.HEAPU8=g=new Uint8Array(v),e.HEAPU16=b=new Uint16Array(v),e.HEAPU32=x=new Uint32Array(v),e.HEAPF32=T=new Float32Array(v),e.HEAPF64=E=new Float64Array(v)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var L=e.TOTAL_MEMORY||16777216;function z(t){for(;0<t.length;){var n=t.shift();if("function"==typeof n)n();else{var r=n.Ea;"number"==typeof r?void 0===n.ua?e.dynCall_v(r):e.dynCall_vi(r,n.ua):r(void 0===n.ua?null:n.ua)}}}5242880>L&&d("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+L+"! (TOTAL_STACK=5242880)"),e.buffer?v=e.buffer:"object"==typeof WebAssembly&&"function"==typeof WebAssembly.Memory?(m=new WebAssembly.Memory({initial:L/65536}),v=m.buffer):v=new ArrayBuffer(L),A(),w[1812]=5250160;var M=[],j=[],R=[],I=[],N=!1;function D(){var t=e.preRun.shift();M.unshift(t)}var B=0,U=null,Z=null;function F(){var t=W;return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}e.preloadedImages={},e.preloadedAudios={};var W="psimpl.wasm";if(!F()){var V=W;W=e.locateFile?e.locateFile(V,f):f+V}function H(){try{if(e.wasmBinary)return new Uint8Array(e.wasmBinary);if(e.readBinary)return e.readBinary(W);throw"both async and sync fetching of the wasm failed"}catch(t){le(t)}}function q(){return e.wasmBinary||!o&&!a||"function"!=typeof fetch?new Promise(function(t){t(H())}):fetch(W,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+W+"'";return t.arrayBuffer()}).catch(function(){return H()})}function K(t){function n(t){e.asm=t.exports,B--,e.monitorRunDependencies&&e.monitorRunDependencies(B),0==B&&(null!==U&&(clearInterval(U),U=null),Z&&(t=Z,Z=null,t()))}function r(t){n(t.instance)}function i(t){q().then(function(t){return WebAssembly.instantiate(t,o)}).then(t,function(t){d("failed to asynchronously prepare wasm: "+t),le(t)})}var o={env:t,global:{NaN:NaN,Infinity:1/0},"global.Math":Math,asm2wasm:p};if(B++,e.monitorRunDependencies&&e.monitorRunDependencies(B),e.instantiateWasm)try{return e.instantiateWasm(o,n)}catch(t){return d("Module.instantiateWasm callback failed with error: "+t),!1}return e.wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||F()||"function"!=typeof fetch?i(r):WebAssembly.instantiateStreaming(fetch(W,{credentials:"same-origin"}),o).then(r,function(t){d("wasm streaming compile failed: "+t),d("falling back to ArrayBuffer instantiation"),i(r)}),{}}function Y(){return!!Y.ya}e.asm=function(t,e){return e.memory=m,e.table=new WebAssembly.Table({initial:96,maximum:96,element:"anyfunc"}),e.__memory_base=1024,e.__table_base=0,K(e)},j.push({Ea:function(){oe()}});var J=[null,[],[]],Q=0;function X(){return w[(Q+=4)-4>>2]}var $={};function tt(t){switch(t){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+t)}}var et=void 0;function nt(t){for(var e="";g[t];)e+=et[g[t++]];return e}var rt={},it={},ot={};function at(t){if(void 0===t)return"_unknown";var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=e&&57>=e?"_"+t:t}function st(t,e){return t=at(t),new Function("body","return function "+t+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(e)}function lt(t){var e=Error,n=st(t,function(e){this.name=t,this.message=e,void 0!==(e=Error(e).stack)&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))});return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},n}var ut=void 0;function ct(t){throw new ut(t)}var ft=void 0;function ht(t){throw new ft(t)}function dt(t,e,n){function r(e){(e=n(e)).length!==t.length&&ht("Mismatched type converter count");for(var r=0;r<t.length;++r)pt(t[r],e[r])}t.forEach(function(t){ot[t]=e});var i=Array(e.length),o=[],a=0;e.forEach(function(t,e){it.hasOwnProperty(t)?i[e]=it[t]:(o.push(t),rt.hasOwnProperty(t)||(rt[t]=[]),rt[t].push(function(){i[e]=it[t],++a===o.length&&r(i)}))}),0===o.length&&r(i)}function pt(t,e,n){if(n=n||{},!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var r=e.name;if(t||ct('type "'+r+'" must have a positive integer typeid pointer'),it.hasOwnProperty(t)){if(n.Ia)return;ct("Cannot register type '"+r+"' twice")}it[t]=e,delete ot[t],rt.hasOwnProperty(t)&&(e=rt[t],delete rt[t],e.forEach(function(t){t()}))}function mt(t){return{count:t.count,na:t.na,pa:t.pa,ea:t.ea,fa:t.fa,ha:t.ha,ia:t.ia}}function vt(t){ct(t.ba.fa.da.name+" instance already deleted")}var yt=void 0,gt=[];function _t(){for(;gt.length;){var t=gt.pop();t.ba.na=!1,t.delete()}}function bt(){}var wt={};function xt(t,e,n){if(void 0===t[e].ga){var r=t[e];t[e]=function(){return t[e].ga.hasOwnProperty(arguments.length)||ct("Function '"+n+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+t[e].ga+")!"),t[e].ga[arguments.length].apply(this,arguments)},t[e].ga=[],t[e].ga[r.ra]=r}}function Tt(t,n,r){e.hasOwnProperty(t)?((void 0===r||void 0!==e[t].ga&&void 0!==e[t].ga[r])&&ct("Cannot register public name '"+t+"' twice"),xt(e,t,t),e.hasOwnProperty(r)&&ct("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),e[t].ga[r]=n):(e[t]=n,void 0!==r&&(e[t].Pa=r))}function Et(t,e,n,r,i,o,a,s){this.name=t,this.constructor=e,this.oa=n,this.ma=r,this.ja=i,this.Fa=o,this.qa=a,this.Da=s,this.Ka=[]}function Pt(t,e,n){for(;e!==n;)e.qa||ct("Expected null or instance of "+n.name+", got an instance of "+e.name),t=e.qa(t),e=e.ja;return t}function kt(t,e){return null===e?(this.va&&ct("null is not a valid "+this.name),0):(e.ba||ct('Cannot pass "'+Kt(e)+'" as a '+this.name),e.ba.ea||ct("Cannot pass deleted object as a pointer of type "+this.name),Pt(e.ba.ea,e.ba.fa.da,this.da))}function Ct(t,e){if(null===e){if(this.va&&ct("null is not a valid "+this.name),this.ta){var n=this.La();return null!==t&&t.push(this.ma,n),n}return 0}if(e.ba||ct('Cannot pass "'+Kt(e)+'" as a '+this.name),e.ba.ea||ct("Cannot pass deleted object as a pointer of type "+this.name),!this.sa&&e.ba.fa.sa&&ct("Cannot convert argument of type "+(e.ba.ia?e.ba.ia.name:e.ba.fa.name)+" to parameter type "+this.name),n=Pt(e.ba.ea,e.ba.fa.da,this.da),this.ta)switch(void 0===e.ba.ha&&ct("Passing raw pointer to smart pointer is illegal"),this.Na){case 0:e.ba.ia===this?n=e.ba.ha:ct("Cannot convert argument of type "+(e.ba.ia?e.ba.ia.name:e.ba.fa.name)+" to parameter type "+this.name);break;case 1:n=e.ba.ha;break;case 2:if(e.ba.ia===this)n=e.ba.ha;else{var r=e.clone();n=this.Ma(n,Gt(function(){r.delete()})),null!==t&&t.push(this.ma,n)}break;default:ct("Unsupporting sharing policy")}return n}function St(t,e){return null===e?(this.va&&ct("null is not a valid "+this.name),0):(e.ba||ct('Cannot pass "'+Kt(e)+'" as a '+this.name),e.ba.ea||ct("Cannot pass deleted object as a pointer of type "+this.name),e.ba.fa.sa&&ct("Cannot convert argument of type "+e.ba.fa.name+" to parameter type "+this.name),Pt(e.ba.ea,e.ba.fa.da,this.da))}function Ot(t){return this.fromWireType(x[t>>2])}function At(t,e,n){return e===n?t:void 0===n.ja?null:null===(t=At(t,e,n.ja))?null:n.Da(t)}var Lt={};function zt(t,e){for(void 0===e&&ct("ptr should not be undefined");t.ja;)e=t.qa(e),t=t.ja;return Lt[e]}function Mt(t,e){return e.fa&&e.ea||ht("makeClassHandle requires ptr and ptrType"),!!e.ia!=!!e.ha&&ht("Both smartPtrType and smartPtr must be specified"),e.count={value:1},Object.create(t,{ba:{value:e}})}function jt(t,e,n,r){this.name=t,this.da=e,this.va=n,this.sa=r,this.ta=!1,this.ma=this.Ma=this.La=this.Ba=this.Na=this.Ja=void 0,void 0!==e.ja?this.toWireType=Ct:(this.toWireType=r?kt:St,this.ka=null)}function Rt(t,n,r){e.hasOwnProperty(t)||ht("Replacing nonexistant public symbol"),void 0!==e[t].ga&&void 0!==r?e[t].ga[r]=n:(e[t]=n,e[t].ra=r)}function It(t,n){if(t=nt(t),void 0!==e["FUNCTION_TABLE_"+t])var r=e["FUNCTION_TABLE_"+t][n];else if("undefined"!=typeof FUNCTION_TABLE)r=FUNCTION_TABLE[n];else{void 0===(r=e["dynCall_"+t])&&void 0===(r=e["dynCall_"+t.replace(/f/g,"d")])&&ct("No dynCall invoker for signature: "+t);for(var i=[],o=1;o<t.length;++o)i.push("a"+o);o="return function dynCall_"+t+"_"+n+"("+i.join(", ")+") {\n",o+=" return dynCall(rawFunction"+(i.length?", ":"")+i.join(", ")+");\n",r=new Function("dynCall","rawFunction",o+"};\n")(r,n)}return"function"!=typeof r&&ct("unknown function pointer with signature "+t+": "+n),r}var Nt=void 0;function Dt(t){var e=nt(t=ne(t));return re(t),e}function Bt(t,e){var n=[],r={};throw e.forEach(function t(e){r[e]||it[e]||(ot[e]?ot[e].forEach(t):(n.push(e),r[e]=!0))}),new Nt(t+": "+n.map(Dt).join([", "]))}function Ut(t,e){for(var n=[],r=0;r<t;r++)n.push(w[(e>>2)+r]);return n}function Zt(t){for(;t.length;){var e=t.pop();t.pop()(e)}}function Ft(t){var e=Function;if(!(e instanceof Function))throw new TypeError("new_ called with constructor type "+typeof e+" which is not a function");var n=st(e.name||"unknownFunctionName",function(){});return n.prototype=e.prototype,n=new n,(t=e.apply(n,t))instanceof Object?t:n}function Wt(t,e,n,r,i){var o=e.length;2>o&&ct("argTypes array size mismatch! Must at least get return value and 'this' types!");var a=null!==e[1]&&null!==n,s=!1;for(n=1;n<e.length;++n)if(null!==e[n]&&void 0===e[n].ka){s=!0;break}var l="void"!==e[0].name,u="",c="";for(n=0;n<o-2;++n)u+=(0!==n?", ":"")+"arg"+n,c+=(0!==n?", ":"")+"arg"+n+"Wired";t="return function "+at(t)+"("+u+") {\nif (arguments.length !== "+(o-2)+") {\nthrowBindingError('function "+t+" called with ' + arguments.length + ' arguments, expected "+(o-2)+" args!');\n}\n",s&&(t+="var destructors = [];\n");var f=s?"destructors":"null";for(u="throwBindingError invoker fn runDestructors retType classParam".split(" "),r=[ct,r,i,Zt,e[0],e[1]],a&&(t+="var thisWired = classParam.toWireType("+f+", this);\n"),n=0;n<o-2;++n)t+="var arg"+n+"Wired = argType"+n+".toWireType("+f+", arg"+n+"); // "+e[n+2].name+"\n",u.push("argType"+n),r.push(e[n+2]);if(a&&(c="thisWired"+(0<c.length?", ":"")+c),t+=(l?"var rv = ":"")+"invoker(fn"+(0<c.length?", ":"")+c+");\n",s)t+="runDestructors(destructors);\n";else for(n=a?1:2;n<e.length;++n)o=1===n?"thisWired":"arg"+(n-2)+"Wired",null!==e[n].ka&&(t+=o+"_dtor("+o+"); // "+e[n].name+"\n",u.push(o+"_dtor"),r.push(e[n].ka));return l&&(t+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),u.push(t+"}\n"),Ft(u).apply(null,r)}var Vt=[],Ht=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function qt(t){4<t&&0==--Ht[t].wa&&(Ht[t]=void 0,Vt.push(t))}function Gt(t){switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=Vt.length?Vt.pop():Ht.length;return Ht[e]={wa:1,value:t},e}}function Kt(t){if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t}function Yt(t,e){switch(e){case 2:return function(t){return this.fromWireType(T[t>>2])};case 3:return function(t){return this.fromWireType(E[t>>3])};default:throw new TypeError("Unknown float type: "+t)}}function Jt(t,e,n){switch(e){case 0:return n?function(t){return y[t]}:function(t){return g[t]};case 1:return n?function(t){return _[t>>1]}:function(t){return b[t>>1]};case 2:return n?function(t){return w[t>>2]}:function(t){return x[t>>2]};default:throw new TypeError("Unknown integer type: "+t)}}function Qt(){return y.length}function Xt(t){t=O(t);var e=v.byteLength;try{return-1!==m.grow((t-e)/65536)&&(v=m.buffer,!0)}catch(t){return!1}}for(var $t=Array(256),te=0;256>te;++te)$t[te]=String.fromCharCode(te);et=$t,ut=e.BindingError=lt("BindingError"),ft=e.InternalError=lt("InternalError"),bt.prototype.isAliasOf=function(t){if(!(this instanceof bt&&t instanceof bt))return!1;var e=this.ba.fa.da,n=this.ba.ea,r=t.ba.fa.da;for(t=t.ba.ea;e.ja;)n=e.qa(n),e=e.ja;for(;r.ja;)t=r.qa(t),r=r.ja;return e===r&&n===t},bt.prototype.clone=function(){if(this.ba.ea||vt(this),this.ba.pa)return this.ba.count.value+=1,this;var t=Object.create(Object.getPrototypeOf(this),{ba:{value:mt(this.ba)}});return t.ba.count.value+=1,t.ba.na=!1,t},bt.prototype.delete=function(){if(this.ba.ea||vt(this),this.ba.na&&!this.ba.pa&&ct("Object already scheduled for deletion"),--this.ba.count.value,0===this.ba.count.value){var t=this.ba;t.ha?t.ia.ma(t.ha):t.fa.da.ma(t.ea)}this.ba.pa||(this.ba.ha=void 0,this.ba.ea=void 0)},bt.prototype.isDeleted=function(){return!this.ba.ea},bt.prototype.deleteLater=function(){return this.ba.ea||vt(this),this.ba.na&&!this.ba.pa&&ct("Object already scheduled for deletion"),gt.push(this),1===gt.length&&yt&&yt(_t),this.ba.na=!0,this},jt.prototype.Ga=function(t){return this.Ba&&(t=this.Ba(t)),t},jt.prototype.za=function(t){this.ma&&this.ma(t)},jt.prototype.argPackAdvance=8,jt.prototype.readValueFromPointer=Ot,jt.prototype.deleteObject=function(t){null!==t&&t.delete()},jt.prototype.fromWireType=function(t){function e(){return this.ta?Mt(this.da.oa,{fa:this.Ja,ea:n,ia:this,ha:t}):Mt(this.da.oa,{fa:this,ea:t})}var n=this.Ga(t);if(!n)return this.za(t),null;var r=zt(this.da,n);if(void 0!==r)return 0===r.ba.count.value?(r.ba.ea=n,r.ba.ha=t,r.clone()):(r=r.clone(),this.za(t),r);if(r=this.da.Fa(n),!(r=wt[r]))return e.call(this);r=this.sa?r.Ca:r.pointerType;var i=At(n,this.da,r.da);return null===i?e.call(this):this.ta?Mt(r.da.oa,{fa:r,ea:i,ia:this,ha:t}):Mt(r.da.oa,{fa:r,ea:i})},e.getInheritedInstanceCount=function(){return Object.keys(Lt).length},e.getLiveInheritedInstances=function(){var t,e=[];for(t in Lt)Lt.hasOwnProperty(t)&&e.push(Lt[t]);return e},e.flushPendingDeletes=_t,e.setDelayFunction=function(t){yt=t,gt.length&&yt&&yt(_t)},Nt=e.UnboundTypeError=lt("UnboundTypeError"),e.count_emval_handles=function(){for(var t=0,e=5;e<Ht.length;++e)void 0!==Ht[e]&&++t;return t},e.get_first_emval=function(){for(var t=5;t<Ht.length;++t)if(void 0!==Ht[t])return Ht[t];return null};var ee=e.asm({},{b:le,v:function(){},h:function(t){return ie(t)},f:function(t){throw"uncaught_exception"in Y?Y.ya++:Y.ya=1,t},n:function(t){return e.___errno_location&&(w[e.___errno_location()>>2]=t),t},u:function(t,e){Q=e;try{return $.Ha(),X(),X(),X(),X(),0}catch(t){return"undefined"!=typeof FS&&t instanceof FS.xa||le(t),-t.Aa}},m:function(t,e){Q=e;try{var n=X(),r=X(),i=X();for(e=t=0;e<i;e++){for(var o=w[r+8*e>>2],a=w[r+(8*e+4)>>2],s=0;s<a;s++){var l=g[o+s],u=J[n];0===l||10===l?((1===n?h:d)(C(u,0)),u.length=0):u.push(l)}t+=a}return t}catch(t){return"undefined"!=typeof FS&&t instanceof FS.xa||le(t),-t.Aa}},t:function(t,e){Q=e;try{return $.Ha(),0}catch(t){return"undefined"!=typeof FS&&t instanceof FS.xa||le(t),-t.Aa}},s:function(t,e,n,r,i){var o=tt(n);pt(t,{name:e=nt(e),fromWireType:function(t){return!!t},toWireType:function(t,e){return e?r:i},argPackAdvance:8,readValueFromPointer:function(t){if(1===n)var r=y;else if(2===n)r=_;else{if(4!==n)throw new TypeError("Unknown boolean type size: "+e);r=w}return this.fromWireType(r[t>>o])},ka:null})},r:function(t,e,n,r,i,o,a,s,l,u,c,f,h){c=nt(c),o=It(i,o),s&&(s=It(a,s)),u&&(u=It(l,u)),h=It(f,h);var d=at(c);Tt(d,function(){Bt("Cannot construct "+c+" due to unbound types",[r])}),dt([t,e,n],r?[r]:[],function(e){if(e=e[0],r)var n=e.da,i=n.oa;else i=bt.prototype;e=st(d,function(){if(Object.getPrototypeOf(this)!==a)throw new ut("Use 'new' to construct "+c);if(void 0===l.la)throw new ut(c+" has no accessible constructor");var t=l.la[arguments.length];if(void 0===t)throw new ut("Tried to invoke ctor of "+c+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(l.la).toString()+") parameters instead!");return t.apply(this,arguments)});var a=Object.create(i,{constructor:{value:e}});e.prototype=a;var l=new Et(c,e,a,h,n,o,s,u);n=new jt(c,l,!0,!1),i=new jt(c+"*",l,!1,!1);var f=new jt(c+" const*",l,!1,!0);return wt[t]={pointerType:i,Ca:f},Rt(d,e),[n,i,f]})},q:function(t,e,n,r,i,o){var a=Ut(e,n);i=It(r,i),dt([],[t],function(t){var n="constructor "+(t=t[0]).name;if(void 0===t.da.la&&(t.da.la=[]),void 0!==t.da.la[e-1])throw new ut("Cannot register multiple constructors with identical number of parameters ("+(e-1)+") for class '"+t.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return t.da.la[e-1]=function(){Bt("Cannot construct "+t.name+" due to unbound types",a)},dt([],a,function(r){return t.da.la[e-1]=function(){arguments.length!==e-1&&ct(n+" called with "+arguments.length+" arguments, expected "+(e-1));var t=[],a=Array(e);a[0]=o;for(var s=1;s<e;++s)a[s]=r[s].toWireType(t,arguments[s-1]);return a=i.apply(null,a),Zt(t),r[0].fromWireType(a)},[]}),[]})},k:function(t,e,n,r,i,o,a,s){var l=Ut(n,r);e=nt(e),o=It(i,o),dt([],[t],function(t){function r(){Bt("Cannot call "+i+" due to unbound types",l)}var i=(t=t[0]).name+"."+e;s&&t.da.Ka.push(e);var u=t.da.oa,c=u[e];return void 0===c||void 0===c.ga&&c.className!==t.name&&c.ra===n-2?(r.ra=n-2,r.className=t.name,u[e]=r):(xt(u,e,i),u[e].ga[n-2]=r),dt([],l,function(r){return r=Wt(i,r,t,o,a),void 0===u[e].ga?(r.ra=n-2,u[e]=r):u[e].ga[n-2]=r,[]}),[]})},C:function(t,e){pt(t,{name:e=nt(e),fromWireType:function(t){var e=Ht[t].value;return qt(t),e},toWireType:function(t,e){return Gt(e)},argPackAdvance:8,readValueFromPointer:Ot,ka:null})},p:function(t,e,n){n=tt(n),pt(t,{name:e=nt(e),fromWireType:function(t){return t},toWireType:function(t,e){if("number"!=typeof e&&"boolean"!=typeof e)throw new TypeError('Cannot convert "'+Kt(e)+'" to '+this.name);return e},argPackAdvance:8,readValueFromPointer:Yt(e,n),ka:null})},g:function(t,e,n,r,i,o){var a=Ut(e,n);t=nt(t),i=It(r,i),Tt(t,function(){Bt("Cannot call "+t+" due to unbound types",a)},e-1),dt([],a,function(n){return n=[n[0],null].concat(n.slice(1)),Rt(t,Wt(t,n,null,i,o),e-1),[]})},e:function(t,e,n,r,i){function o(t){return t}e=nt(e),-1===i&&(i=4294967295);var a=tt(n);if(0===r){var s=32-8*n;o=function(t){return t<<s>>>s}}var l=-1!=e.indexOf("unsigned");pt(t,{name:e,fromWireType:o,toWireType:function(t,n){if("number"!=typeof n&&"boolean"!=typeof n)throw new TypeError('Cannot convert "'+Kt(n)+'" to '+this.name);if(n<r||n>i)throw new TypeError('Passing a number "'+Kt(n)+'" from JS side to C/C++ side to an argument of type "'+e+'", which is outside the valid range ['+r+", "+i+"]!");return l?n>>>0:0|n},argPackAdvance:8,readValueFromPointer:Jt(e,a,0!==r),ka:null})},c:function(t,e,n){function r(t){t>>=2;var e=x;return new i(e.buffer,e[t+1],e[t])}var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];pt(t,{name:n=nt(n),fromWireType:r,argPackAdvance:8,readValueFromPointer:r},{Ia:!0})},o:function(t,e){var n="std::string"===(e=nt(e));pt(t,{name:e,fromWireType:function(t){var e=x[t>>2];if(n){var r=g[t+4+e],i=0;0!=r&&(i=r,g[t+4+e]=0);var o=t+4;for(r=0;r<=e;++r){var a=t+4+r;if(0==g[a]){if(o=o?C(g,o,void 0):"",void 0===s)var s=o;else s+=String.fromCharCode(0),s+=o;o=a+1}}0!=i&&(g[t+4+e]=i)}else{for(s=Array(e),r=0;r<e;++r)s[r]=String.fromCharCode(g[t+4+r]);s=s.join("")}return re(t),s},toWireType:function(t,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var r="string"==typeof e;r||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||ct("Cannot pass non-string to std::string");var i=(n&&r?function(){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);55296<=r&&57343>=r&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++n)),127>=r?++t:t=2047>=r?t+2:65535>=r?t+3:t+4}return t}:function(){return e.length})(),o=ie(4+i+1);if(x[o>>2]=i,n&&r)S(e,o+4,i+1);else if(r)for(r=0;r<i;++r){var a=e.charCodeAt(r);255<a&&(re(o),ct("String has UTF-16 code units that do not fit in 8 bits")),g[o+4+r]=a}else for(r=0;r<i;++r)g[o+4+r]=e[r];return null!==t&&t.push(re,o),o},argPackAdvance:8,readValueFromPointer:Ot,ka:function(t){re(t)}})},B:function(t,e,n){if(n=nt(n),2===e)var r=function(){return b},i=1;else 4===e&&(r=function(){return x},i=2);pt(t,{name:n,fromWireType:function(t){for(var e=r(),n=x[t>>2],o=Array(n),a=t+4>>i,s=0;s<n;++s)o[s]=String.fromCharCode(e[a+s]);return re(t),o.join("")},toWireType:function(t,n){var o=r(),a=n.length,s=ie(4+a*e);x[s>>2]=a;for(var l=s+4>>i,u=0;u<a;++u)o[l+u]=n.charCodeAt(u);return null!==t&&t.push(re,s),s},argPackAdvance:8,readValueFromPointer:Ot,ka:function(t){re(t)}})},A:function(t,e){pt(t,{Oa:!0,name:e=nt(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},j:qt,i:function(t){4<t&&(Ht[t].wa+=1)},d:function(t,e){var n=it[t];return void 0===n&&ct("_emval_take_value has unknown type "+Dt(t)),Gt(t=n.readValueFromPointer(e))},l:function(){e.abort()},z:Qt,y:function(t,e,n){g.set(g.subarray(e,e+n),t)},x:function(t){if(2147418112<t)return!1;for(var e=Math.max(Qt(),16777216);e<t;)e=536870912>=e?O(2*e):Math.min(O((3*e+2147483648)/4),2147418112);return!!Xt(e)&&(A(),!0)},w:function(){le("OOM")},a:7248},v);e.asm=ee,e.___errno_location=function(){return e.asm.D.apply(null,arguments)};var ne=e.___getTypeName=function(){return e.asm.E.apply(null,arguments)},re=e._free=function(){return e.asm.F.apply(null,arguments)},ie=e._malloc=function(){return e.asm.G.apply(null,arguments)},oe=e.globalCtors=function(){return e.asm.aa.apply(null,arguments)};function ae(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function se(){function t(){if(!e.calledRun&&(e.calledRun=!0,!P)){if(N||(N=!0,z(j)),z(R),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var t=e.postRun.shift();I.unshift(t)}z(I)}}if(!(0<B)){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)D();z(M),0<B||e.calledRun||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),t()},1)):t())}}function le(t){throw e.onAbort&&e.onAbort(t),void 0!==t?(h(t),d(t),t=JSON.stringify(t)):t="",P=!0,"abort("+t+"). Build with -s ASSERTIONS=1 for more info."}if(e.dynCall_i=function(){return e.asm.H.apply(null,arguments)},e.dynCall_ii=function(){return e.asm.I.apply(null,arguments)},e.dynCall_iidiiii=function(){return e.asm.J.apply(null,arguments)},e.dynCall_iii=function(){return e.asm.K.apply(null,arguments)},e.dynCall_iiii=function(){return e.asm.L.apply(null,arguments)},e.dynCall_iiiid=function(){return e.asm.M.apply(null,arguments)},e.dynCall_iiiidd=function(){return e.asm.N.apply(null,arguments)},e.dynCall_iiiidi=function(){return e.asm.O.apply(null,arguments)},e.dynCall_iiiii=function(){return e.asm.P.apply(null,arguments)},e.dynCall_jiji=function(){return e.asm.Q.apply(null,arguments)},e.dynCall_v=function(){return e.asm.R.apply(null,arguments)},e.dynCall_vi=function(){return e.asm.S.apply(null,arguments)},e.dynCall_vii=function(){return e.asm.T.apply(null,arguments)},e.dynCall_viid=function(){return e.asm.U.apply(null,arguments)},e.dynCall_viii=function(){return e.asm.V.apply(null,arguments)},e.dynCall_viiid=function(){return e.asm.W.apply(null,arguments)},e.dynCall_viiidd=function(){return e.asm.X.apply(null,arguments)},e.dynCall_viiidi=function(){return e.asm.Y.apply(null,arguments)},e.dynCall_viiii=function(){return e.asm.Z.apply(null,arguments)},e.dynCall_viiiii=function(){return e.asm._.apply(null,arguments)},e.dynCall_viiiiii=function(){return e.asm.$.apply(null,arguments)},e.asm=ee,e.then=function(t){if(e.calledRun)t(e);else{var n=e.onRuntimeInitialized;e.onRuntimeInitialized=function(){n&&n(),t(e)}}return e},ae.prototype=Error(),ae.prototype.constructor=ae,Z=function t(){e.calledRun||se(),e.calledRun||(Z=t)},e.run=se,e.abort=le,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();return e.noExitRuntime=!0,se(),t}),J=n(15),Q=n.n(J);function X(t,e){return new Promise(n=>{const r=t({noInitialRun:!0,locateFile:t=>e||t,onRuntimeInitialized(){delete r.then,n(r)}})})}function $(t,e){const n=2*e.length,r=t._malloc(n*Float64Array.BYTES_PER_ELEMENT),i=new Float64Array(t.HEAPF64.buffer,r,n);for(let t=0;t<e.length;t++)i[2*t]=e[t][0],i[2*t+1]=e[t][1];return r}function tt(t){const e=[];let n,r;for(let i=0;i<t.length;i+=2)n=t[i],r=t[i+1],e.push([n,r]);return e}async function et(t,e){return await ut("nth_point",t,[e])}async function nt(t,e){return await ut("radial_distance",t,[e])}async function rt(t,e,n){const r=[e,n];return await ut("perpendicular_distance",t,r)}async function it(t,e){return await ut("reumann_witkam",t,[e])}async function ot(t,e,n){return await ut("opheim",t,[e,n])}async function at(t,e,n){return await ut("lang",t,[e,n])}async function st(t,e){return await ut("douglas_peucker",t,[e])}async function lt(t,e){return await ut("douglas_peucker_n",t,[e])}async function ut(t,e,n){if(!function(t){return-1!==ct.indexOf(t)}(t))throw Error(`Routine ${t} not known`);const r=await async function(){ft||(ft=X(Y,Q.a));return await ft}(),i=$(r,e),o=r[t](i,2*e.length,...n);return r._free(i),tt(o)}const ct=["nth_point","radial_distance","perpendicular_distance","reumann_witkam","opheim","lang","douglas_peucker","douglas_peucker_n"];let ft;function ht(t,e,n){var r=e[0],i=e[1],o=n[0]-r,a=n[1]-i;if(0!==o||0!==a){var s=((t[0]-r)*o+(t[1]-i)*a)/(o*o+a*a);s>1?(r=n[0],i=n[1]):s>0&&(r+=o*s,i+=a*s)}return(o=t[0]-r)*o+(a=t[1]-i)*a}function dt(t,e){var n=t.length-1,r=[t[0]];return function t(e,n,r,i,o){for(var a,s=i,l=n+1;l<r;l++){var u=ht(e[l],e[n],e[r]);u>s&&(a=l,s=u)}s>i&&(a-n>1&&t(e,n,a,i,o),o.push(e[a]),r-a>1&&t(e,a,r,i,o))}(t,0,n,e,r),r.push(t[n]),r}function pt(t,e,n){if(t.length<=2)return t;var r=void 0!==e?e*e:1;return t=dt(t=n?t:function(t,e){for(var n,r,i,o,a,s=t[0],l=[s],u=1,c=t.length;u<c;u++)n=t[u],i=s,o=void 0,a=void 0,o=(r=n)[0]-i[0],a=r[1]-i[1],o*o+a*a>e&&(l.push(n),s=n);return s!==n&&l.push(n),l}(t,r),r)}var mt=function(){var t="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return function(e){var r;e=e||{},r||(r=void 0!==e?e:{});var i,o={};for(i in r)r.hasOwnProperty(i)&&(o[i]=r[i]);r.arguments=[],r.thisProgram="./this.program",r.quit=function(t,e){throw e},r.preRun=[],r.postRun=[];var a=!1,s=!1,l=!1,u=!1;a="object"==typeof window,s="function"==typeof importScripts,l="object"==typeof process&&!a&&!s,u=!a&&!l&&!s;var c,f,h="";l?(h=__dirname+"/",r.read=function(t,e){return c||(c=n(12)),f||(f=n(13)),t=f.normalize(t),t=c.readFileSync(t),e?t:t.toString()},r.readBinary=function(t){return(t=r.read(t,!0)).buffer||(t=new Uint8Array(t)),t.buffer||H("Assertion failed: undefined"),t},1<process.argv.length&&(r.thisProgram=process.argv[1].replace(/\\/g,"/")),r.arguments=process.argv.slice(2),process.on("uncaughtException",function(t){if(!(t instanceof W))throw t}),process.on("unhandledRejection",H),r.quit=function(t){process.exit(t)},r.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(r.read=function(t){return read(t)}),r.readBinary=function(t){return"function"==typeof readbuffer?new Uint8Array(readbuffer(t)):("object"==typeof(t=read(t,"binary"))||H("Assertion failed: undefined"),t)},"undefined"!=typeof scriptArgs?r.arguments=scriptArgs:void 0!==arguments&&(r.arguments=arguments),"function"==typeof quit&&(r.quit=function(t){quit(t)})):(a||s)&&(s?h=self.location.href:document.currentScript&&(h=document.currentScript.src),t&&(h=t),h=0!==h.indexOf("blob:")?h.substr(0,h.lastIndexOf("/")+1):"",r.read=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},s&&(r.readBinary=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),r.readAsync=function(t,e,n){var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?e(r.response):n()},r.onerror=n,r.send(null)},r.setWindowTitle=function(t){document.title=t});var d=r.print||("undefined"!=typeof console?console.log.bind(console):"undefined"!=typeof print?print:null),p=r.printErr||("undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&console.warn.bind(console)||d);for(i in o)o.hasOwnProperty(i)&&(r[i]=o[i]);o=void 0;var m={"f64-rem":function(t,e){return t%e},debugger:function(){}};"object"!=typeof WebAssembly&&p("no native wasm support detected");var v,y,g,_,b=!1;function w(t){return 0<t%65536&&(t+=65536-t%65536),t}function x(){r.HEAP8=g=new Int8Array(y),r.HEAP16=new Int16Array(y),r.HEAP32=_=new Int32Array(y),r.HEAPU8=new Uint8Array(y),r.HEAPU16=new Uint16Array(y),r.HEAPU32=new Uint32Array(y),r.HEAPF32=new Float32Array(y),r.HEAPF64=new Float64Array(y)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf8"),"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var T=r.TOTAL_MEMORY||16777216;function E(t){for(;0<t.length;){var e=t.shift();if("function"==typeof e)e();else{var n=e.l;"number"==typeof n?void 0===e.j?r.dynCall_v(n):r.dynCall_vi(n,e.j):n(void 0===e.j?null:e.j)}}}5242880>T&&p("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+T+"! (TOTAL_STACK=5242880)"),r.buffer?y=r.buffer:"object"==typeof WebAssembly&&"function"==typeof WebAssembly.Memory?(v=new WebAssembly.Memory({initial:T/65536}),y=v.buffer):y=new ArrayBuffer(T),x(),_[684]=5245648;var P=[],k=[],C=[],S=[],O=!1;function A(){var t=r.preRun.shift();P.unshift(t)}var L=0,z=null,M=null;function j(){var t=R;return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var R="simplify.wasm";if(!j()){var I=R;R=r.locateFile?r.locateFile(I,h):h+I}function N(){try{if(r.wasmBinary)return new Uint8Array(r.wasmBinary);if(r.readBinary)return r.readBinary(R);throw"both async and sync fetching of the wasm failed"}catch(t){H(t)}}function D(){return r.wasmBinary||!a&&!s||"function"!=typeof fetch?new Promise(function(t){t(N())}):fetch(R,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+R+"'";return t.arrayBuffer()}).catch(function(){return N()})}function B(t){function e(t){r.asm=t.exports,L--,r.monitorRunDependencies&&r.monitorRunDependencies(L),0==L&&(null!==z&&(clearInterval(z),z=null),M&&(t=M,M=null,t()))}function n(t){e(t.instance)}function i(t){D().then(function(t){return WebAssembly.instantiate(t,o)}).then(t,function(t){p("failed to asynchronously prepare wasm: "+t),H(t)})}var o={env:t,global:{NaN:NaN,Infinity:1/0},"global.Math":Math,asm2wasm:m};if(L++,r.monitorRunDependencies&&r.monitorRunDependencies(L),r.instantiateWasm)try{return r.instantiateWasm(o,e)}catch(t){return p("Module.instantiateWasm callback failed with error: "+t),!1}return r.wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||j()||"function"!=typeof fetch?i(n):WebAssembly.instantiateStreaming(fetch(R,{credentials:"same-origin"}),o).then(n,function(t){p("wasm streaming compile failed: "+t),p("falling back to ArrayBuffer instantiation"),i(n)}),{}}function U(){return g.length}function Z(t){t=w(t);var e=y.byteLength;try{return-1!==v.grow((t-e)/65536)&&(y=v.buffer,!0)}catch(t){return!1}}r.asm=function(t,e){return e.memory=v,e.table=new WebAssembly.Table({initial:0,maximum:0,element:"anyfunc"}),e.__memory_base=1024,e.__table_base=0,B(e)};var F=r.asm({},{b:function(t){return r.___errno_location&&(_[r.___errno_location()>>2]=t),t},e:U,d:function(t){if(2147418112<t)return!1;for(var e=Math.max(U(),16777216);e<t;)e=536870912>=e?w(2*e):Math.min(w((3*e+2147483648)/4),2147418112);return!!Z(e)&&(x(),!0)},c:function(){H("OOM")},a:2736},y);function W(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function V(){function t(){if(!r.calledRun&&(r.calledRun=!0,!b)){if(O||(O=!0,E(k)),E(C),r.onRuntimeInitialized&&r.onRuntimeInitialized(),r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;){var t=r.postRun.shift();S.unshift(t)}E(S)}}if(!(0<L)){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)A();E(P),0<L||r.calledRun||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),t()},1)):t())}}function H(t){throw r.onAbort&&r.onAbort(t),void 0!==t?(d(t),p(t),t=JSON.stringify(t)):t="",b=!0,"abort("+t+"). Build with -s ASSERTIONS=1 for more info."}if(r.asm=F,r.___errno_location=function(){return r.asm.f.apply(null,arguments)},r._free=function(){return r.asm.g.apply(null,arguments)},r._malloc=function(){return r.asm.h.apply(null,arguments)},r._simplify=function(){return r.asm.i.apply(null,arguments)},r.asm=F,r.then=function(t){if(r.calledRun)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},W.prototype=Error(),W.prototype.constructor=W,M=function t(){r.calledRun||V(),r.calledRun||(M=t)},r.run=V,r.abort=H,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);0<r.preInit.length;)r.preInit.pop()();return r.noExitRuntime=!0,V(),e}}(),vt=n(16),yt=n.n(vt);async function gt(t,e,n){const r=await async function(){_t||(_t=X(mt,yt.a));return await _t}(),i=$(r,t),o=r._simplify(i,2*t.length,e,n);return r._free(i),function(t,e){const[n,r]=new Uint32Array(t.HEAPU32.buffer,e,2),i=tt(new Float64Array(t.HEAPF64.buffer,n,r));return t._free(e),t._free(n),i}(r,o)}let _t;var bt,wt,xt;let Tt=(xt=class{constructor(t,e,n,r,i){var o,a,s,l;o=this,a="value",l=this,(s=wt)&&Object.defineProperty(o,a,{enumerable:s.enumerable,configurable:s.configurable,writable:s.writable,value:s.initializer?s.initializer.call(l):void 0}),this.name=t,this.id=e,this.type=n,this.props=r||{},this.value=i}},Et=(bt=xt).prototype,Pt="value",kt=[s.observable],Ct={configurable:!0,enumerable:!0,writable:!0,initializer:null},Ot={},Object.keys(Ct).forEach(function(t){Ot[t]=Ct[t]}),Ot.enumerable=!!Ot.enumerable,Ot.configurable=!!Ot.configurable,("value"in Ot||Ot.initializer)&&(Ot.writable=!0),Ot=kt.slice().reverse().reduce(function(t,e){return e(Et,Pt,t)||t},Ot),St&&void 0!==Ot.initializer&&(Ot.value=Ot.initializer?Ot.initializer.call(St):void 0,Ot.initializer=void 0),void 0===Ot.initializer&&(Object.defineProperty(Et,Pt,Ot),Ot=null),wt=Ot,bt);var Et,Pt,kt,Ct,St,Ot,At;class Lt extends Tt{constructor(t,e,n,r,i,o){super(t,e,"range",{min:n,max:r,step:i},o)}}class zt extends Tt{constructor(t,e,n){super(t,e,"checkbox",{},n)}}class Mt extends Lt{constructor(t="Tolerance",e="tol"){super(t,e,.001,1,.001,.2)}}let jt=(function(t,e,n,r,i){var o={};Object.keys(r).forEach(function(t){o[t]=r[t]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(t,e,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null)}((At=class{constructor(t,e,n){this.name=t,this.id=e,this.method=n,this.fields=[]}addField(t){this.fields.push(t)}get params(){this.fields.map(t=>t.value)}async simplifyLine(t,e){return this.method(t,...e)}async simplifyPolygon(t,e){return await Promise.all(t.map(t=>this.simplifyLine(t,e)))}async simplifyGeoJSON(t,e){let n=JSON.parse(JSON.stringify(t));for(let t of n.features){let n=t.geometry,r=n.coordinates;switch(n.type){case"Point":case"MultiPoint":break;case"LineString":n.coordinates=await this.simplifyLine(r,e);break;case"MultiLineString":n.coordinates=await Promise.all(r.map(t=>this.simplifyLine(t,e)));break;case"Polygon":n.coordinates=await this.simplifyPolygon(r,e);break;case"MultiPolygon":n.coordinates=await Promise.all(r.map(t=>this.simplifyPolygon(t,e)))}}return n}simplifyTopoJSON(t,e){}}).prototype,"params",[s.computed],Object.getOwnPropertyDescriptor(At.prototype,"params"),At.prototype),At);var Rt,It,Nt,Dt,Bt,Ut,Zt,Ft,Wt=[new class extends jt{constructor(){super("Nth Point","nth_point",et),this.addField(new Lt("n","n",1,15,1,3))}},new class extends jt{constructor(){super("RadialDistance","rad_dist",nt),this.addField(new Mt)}},new class extends jt{constructor(){super("Perpendicular Distance","perp_dist",rt),this.addField(new Mt),this.addField(new Lt("Repeat","repeat",1,10,1,3))}},new class extends jt{constructor(){super("Reuman-Witkam Algorithm","reumann_witkam",it),this.addField(new Mt)}},new class extends jt{constructor(){super("Opheim Algorithm","opheim",ot),this.addField(new Mt("Minimum Tolerance","minTol")),this.addField(new Mt("Maximum Tolerance","maxTol"))}},new class extends jt{constructor(){super("Lang Algorithm","lang",at),this.addField(new Mt),this.addField(new Lt("Look ahead","lookAhead",2,100,1,5))}},new class extends jt{constructor(){super("Douglas Peucker Algorithm","dougles_peucker",st),this.addField(new Mt)}},new class extends jt{constructor(){super("Douglas Peucker Alt. Algorithm","dougles_peucker_n",lt),this.addField(new Lt("Count","count",1,2e3,1,1e3))}},new class extends jt{constructor(){super("Simplify.js","simplify_js",pt),this.addField(new Mt),this.addField(new zt("High Quality","highQual",!1))}},new class extends jt{constructor(){super("Simplify.wasm","simplify_wasm",gt),this.addField(new Mt),this.addField(new zt("High Quality","highQual",!0))}}];function Vt(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Ht(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(t){o[t]=r[t]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(t,e,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}var qt,Gt=new(It=Ht((Rt=class{constructor(){Vt(this,"tileLayer",It,this),Vt(this,"originalActive",Nt,this),Vt(this,"simplifiedActive",Dt,this),Vt(this,"algorithmId",Bt,this),Vt(this,"topoJSON",Ut,this),Vt(this,"originalText",Zt,this),Vt(this,"originalName",Ft,this),this.simplifiedPromise=Object(K.asyncComputed)(this.original,500,async()=>await this.selectedAlgorithm.simplifyGeoJSON(this.original,this.algoParams))}get selectedAlgorithm(){return Wt.filter(t=>t.id===this.algorithmId)[0]}get algoParams(){return this.selectedAlgorithm.fields.map(t=>t.value)}get original(){return JSON.parse(this.originalText)}get simplified(){return this.simplifiedPromise.get()}get simplifiedText(){return JSON.stringify(this.simplified)}}).prototype,"tileLayer",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"osmDE"}}),Nt=Ht(Rt.prototype,"originalActive",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Dt=Ht(Rt.prototype,"simplifiedActive",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Bt=Ht(Rt.prototype,"algorithmId",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"nth_point"}}),Ut=Ht(Rt.prototype,"topoJSON",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ht(Rt.prototype,"selectedAlgorithm",[s.computed],Object.getOwnPropertyDescriptor(Rt.prototype,"selectedAlgorithm"),Rt.prototype),Ht(Rt.prototype,"algoParams",[s.computed],Object.getOwnPropertyDescriptor(Rt.prototype,"algoParams"),Rt.prototype),Zt=Ht(Rt.prototype,"originalText",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return'{"type": "FeatureCollection", "features": []}'}}),Ft=Ht(Rt.prototype,"originalName",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ht(Rt.prototype,"original",[s.computed],Object.getOwnPropertyDescriptor(Rt.prototype,"original"),Rt.prototype),Ht(Rt.prototype,"simplified",[s.computed],Object.getOwnPropertyDescriptor(Rt.prototype,"simplified"),Rt.prototype),Ht(Rt.prototype,"simplifiedText",[s.computed],Object.getOwnPropertyDescriptor(Rt.prototype,"simplifiedText"),Rt.prototype),Rt);n(26);const Kt=({option:t,selected:e,fullName:n})=>i.a.createElement("label",{className:t===e?"selected":""},i.a.createElement("input",{type:"radio",name:"tileLayer",value:t,checked:t===e,onChange:()=>{}}),n||t);let Yt=B(qt=class extends i.a.Component{render(){return i.a.createElement(i.a.Fragment,null,i.a.createElement("h3",null,"Background Layer"),i.a.createElement("fieldset",{className:"radio-grp",onChange:t=>Gt.tileLayer=t.target.value},i.a.createElement(Kt,{option:"none",selected:Gt.tileLayer,fullName:"None"}),i.a.createElement(Kt,{option:"osmDE",selected:Gt.tileLayer,fullName:"OpenStreetMap DE"}),i.a.createElement(Kt,{option:"osmMapnik",selected:Gt.tileLayer,fullName:"OpenStreetMap Mapnik"})))}})||qt;function Jt(t,e,n){const r=Array.from(t);let i;if(""===e)return i=r.filter(t=>"file"===t.kind),n?i:[i[0]];const o=e.toLowerCase().split(",").map(t=>t.split("/").map(t=>t.trim())).filter(t=>2===t.length);return i=i=r.filter(t=>{if("file"!==t.kind)return!1;const[e,n]=t.type.toLowerCase().split("/").map(t=>t.trim());for(const[t,r]of o)if(e===t&&("*"===r||n===r))return!0;return!1}),!1===n&&(i=[i[0]]),i}function Qt(t,e,n){const r=[];return Jt(t.items,e,n).forEach(t=>{const e=t.getAsFile();null!==e&&r.push(e)}),r}class Xt extends Event{constructor(t,e){var n;super(t,e),this instanceof(n=Xt)||Object.setPrototypeOf(this,n.prototype),this._files=e.files,this._action=e.action}get action(){return this._action}get files(){return this._files}}var $t;customElements.define("file-drop",class extends HTMLElement{constructor(){super(),this._dragEnterCount=0,this._onDragEnter=this._onDragEnter.bind(this),this._onDragLeave=this._onDragLeave.bind(this),this._onDrop=this._onDrop.bind(this),this._onPaste=this._onPaste.bind(this),this.addEventListener("dragover",t=>t.preventDefault()),this.addEventListener("drop",this._onDrop),this.addEventListener("dragenter",this._onDragEnter),this.addEventListener("dragend",()=>this._reset()),this.addEventListener("dragleave",this._onDragLeave),this.addEventListener("paste",this._onPaste)}get accept(){return this.getAttribute("accept")||""}set accept(t){this.setAttribute("accept",t)}get multiple(){return this.getAttribute("multiple")}set multiple(t){this.setAttribute("multiple",t||"")}_onDragEnter(t){if(this._dragEnterCount+=1,this._dragEnterCount>1)return;if(null===t.dataTransfer)return void this.classList.add("drop-invalid");const e=Jt(t.dataTransfer.items,this.accept,null!==this.multiple);this.classList.add(t.dataTransfer&&t.dataTransfer.items.length&&void 0===e[0]?"drop-invalid":"drop-valid")}_onDragLeave(){this._dragEnterCount-=1,0===this._dragEnterCount&&this._reset()}_onDrop(t){if(t.preventDefault(),null===t.dataTransfer)return;this._reset();const e=Qt(t.dataTransfer,this.accept,null!==this.multiple);void 0!==e&&this.dispatchEvent(new Xt("filedrop",{action:"drop",files:e}))}_onPaste(t){const e=Qt(t.clipboardData,this.accept,void 0!==this.multiple);void 0!==e&&this.dispatchEvent(new Xt("filedrop",{action:"paste",files:e}))}_reset(){this._dragEnterCount=0,this.classList.remove("drop-valid"),this.classList.remove("drop-invalid")}});let te=B($t=class extends i.a.Component{componentDidMount(){document.getElementsByTagName("file-drop")[0].addEventListener("filedrop",t=>{let e=t.files[0];Gt.originalName=e.name,async function(t){return new Promise(e=>{let n=new FileReader;n.readAsText(t),n.onload=function(){e(this.result)}})}(e).then(t=>{Gt.originalText=t})})}render(){return i.a.createElement(i.a.Fragment,null,i.a.createElement("h2",null,"Data"),i.a.createElement("file-drop",{accept:"application/geo+json"},"Drop GeoJSON here!"))}})||$t;var ee;let ne=B(ee=class extends i.a.Component{render(){return i.a.createElement(i.a.Fragment,null,i.a.createElement("h3",null,"Layers"),i.a.createElement("ul",null,i.a.createElement("li",null,i.a.createElement("label",null,i.a.createElement("input",{name:"originalActive",type:"checkbox",checked:Gt.originalActive,onChange:()=>Gt.originalActive=!Gt.originalActive}),"Original: ",Gt.originalName)),i.a.createElement("li",null,i.a.createElement("label",null,i.a.createElement("input",{name:"simplifiedActive",type:"checkbox",checked:Gt.simplifiedActive,onChange:()=>Gt.simplifiedActive=!Gt.simplifiedActive}),"Simplified"))))}})||ee;var re;n(29);class ie extends i.a.Component{constructor(t){super(t),this.state={rangeValue:t.value?this.indexOfValue(t.value):Math.floor((this.length-1)/2)},this.handleChange=this.handleChange.bind(this)}get options(){let{min:t,max:e,step:n}=this.props,r=[];if(n<=0||e<t)return[];for(;t<=e;t+=n)r.push(t);return r.map(t=>Math.round(1e4*t)/1e4)}get length(){return this.options.length}get realValue(){return this.options[this.state.rangeValue]}indexOfValue(t){let e=0;for(let n of this.options){if(n>=t)return e;e++}return e}handleChange(t){this.setState({rangeValue:t.target.value}),this.props.onChange&&this.props.onChange(this.options[t.target.value])}render(){return i.a.createElement("div",{className:"range-input"},i.a.createElement("label",null,i.a.createElement("span",null,this.props.label?this.props.label:this.props.name,":"),i.a.createElement("span",null,Number(this.realValue.toFixed(2))),i.a.createElement("input",{type:"range",min:0,max:this.length-1,value:this.state.rangeValue,onChange:this.handleChange})))}}function oe(){return(oe=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}const ae=B(({field:t})=>{switch(t.type){case"range":let{name:e,id:n}=t;return i.a.createElement(ie,oe({name:e,label:n},t.props,{value:t.value,onChange:e=>t.value=e}));case"checkbox":return i.a.createElement(i.a.Fragment,null,t.name,i.a.createElement("input",{type:"checkbox",onChange:e=>t.value=e.target.checked,checked:t.value}));default:return i.a.createElement("span",null,"Error: Field type ",t.type," not known.")}}),se=({fields:t})=>i.a.createElement("fieldset",null,t.map((t,e)=>i.a.createElement(ae,{key:e,field:t})));let le=B(re=class extends i.a.Component{render(){return i.a.createElement(i.a.Fragment,null,i.a.createElement("h3",null,"Simplification"),i.a.createElement("select",{name:"algorithm",value:Gt.algorithmId,onChange:t=>Gt.algorithmId=t.target.value},Wt.map((t,e)=>i.a.createElement("option",{key:e,value:t.id},t.name))),Wt.map((t,e)=>i.a.createElement("div",{key:e,hidden:!(t===Gt.selectedAlgorithm)},i.a.createElement(se,{fields:t.fields}))))}})||re;function ue(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var ce=n(2);function fe(){return(fe=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var he=n(17),de=n.n(he),pe=Object(r.createContext)({}),me=pe.Consumer,ve=pe.Provider,ye=function(t){var e=function(e,n){return i.a.createElement(me,null,function(r){return i.a.createElement(t,fe({},e,{leaflet:r,ref:n}))})},n=t.displayName||t.name||"Component";e.displayName="Leaflet("+n+")";var o=Object(r.forwardRef)(e);return de()(o,t),o};function ge(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function be(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var we=/^on(.+)$/i,xe=function(t){function e(e){var n;return be(_e(n=t.call(this,e)||this),"_leafletEvents",void 0),be(_e(n),"leafletElement",void 0),n._leafletEvents=n.extractLeafletEvents(e),n}ue(e,t);var n=e.prototype;return n.componentDidMount=function(){this.bindLeafletEvents(this._leafletEvents)},n.componentDidUpdate=function(t){this._leafletEvents=this.bindLeafletEvents(this.extractLeafletEvents(this.props),this._leafletEvents)},n.componentWillUnmount=function(){var t=this,e=this.leafletElement;e&&Object.keys(this._leafletEvents).forEach(function(n){e.off(n,t._leafletEvents[n])})},n.extractLeafletEvents=function(t){return Object.keys(t).reduce(function(e,n){we.test(n)&&(null!=t[n]&&(e[n.replace(we,function(t,e){return e.toLowerCase()})]=t[n]));return e},{})},n.bindLeafletEvents=function(t,e){void 0===t&&(t={}),void 0===e&&(e={});var n=this.leafletElement;if(null==n||null==n.on)return{};var r=fe({},e);return Object.keys(e).forEach(function(i){null!=t[i]&&e[i]===t[i]||(delete r[i],n.off(i,e[i]))}),Object.keys(t).forEach(function(i){null!=e[i]&&t[i]===e[i]||(r[i]=t[i],n.on(i,t[i]))}),r},n.fireLeafletEvent=function(t,e){var n=this.leafletElement;n&&n.fire(t,e)},e}(r.Component),Te=function(t){function e(e){var n;return be(_e(n=t.call(this,e)||this),"contextValue",void 0),be(_e(n),"leafletElement",void 0),n.leafletElement=n.createLeafletElement(e),n}ue(e,t);var n,o,a,s=e.prototype;return s.createLeafletElement=function(t){throw new Error("createLeafletElement() must be implemented")},s.updateLeafletElement=function(t,e){},s.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.layerContainer.addLayer(this.leafletElement)},s.componentDidUpdate=function(e){if(t.prototype.componentDidUpdate.call(this,e),this.props.attribution!==e.attribution){var n=this.props.leaflet.map;null!=n&&null!=n.attributionControl&&(n.attributionControl.removeAttribution(e.attribution),n.attributionControl.addAttribution(this.props.attribution))}this.updateLeafletElement(e,this.props)},s.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.layerContainer.removeLayer(this.leafletElement)},s.render=function(){var t=this.props.children;return null==t?null:null==this.contextValue?i.a.createElement(r.Fragment,null,t):i.a.createElement(ve,{value:this.contextValue},t)},n=e,(o=[{key:"layerContainer",get:function(){return this.props.leaflet.layerContainer||this.props.leaflet.map}}])&&ge(n.prototype,o),a&&ge(n,a),e}(function(t){function e(){return t.apply(this,arguments)||this}return ue(e,t),e.prototype.getOptions=function(t){return null!=t.pane?t:null!=t.leaflet&&null!=t.leaflet.pane?fe({},t,{pane:t.leaflet.pane}):t},e}(xe)),Ee=ye(function(t){function e(){return t.apply(this,arguments)||this}ue(e,t);var n=e.prototype;return n.createLeafletElement=function(t){return new ce.TileLayer(t.url,this.getOptions(t))},n.updateLeafletElement=function(e,n){t.prototype.updateLeafletElement.call(this,e,n),n.url!==e.url&&this.leafletElement.setUrl(n.url)},e}(function(t){function e(){return t.apply(this,arguments)||this}ue(e,t);var n=e.prototype;return n.createLeafletElement=function(t){return new ce.GridLayer(this.getOptions(t))},n.updateLeafletElement=function(t,e){var n=e.opacity,r=e.zIndex;n!==t.opacity&&this.leafletElement.setOpacity(n),r!==t.zIndex&&this.leafletElement.setZIndex(r)},n.getOptions=function(e){var n=t.prototype.getOptions.call(this,e);return null==e.leaflet.map?n:fe({maxZoom:e.leaflet.map.options.maxZoom,minZoom:e.leaflet.map.options.minZoom},n)},n.render=function(){return null},e}(Te)));var Pe=function(t){return void 0===t&&(t=""),t.split(" ").filter(Boolean)},ke=function(t,e,n){null!=t&&n!==e&&(null!=e&&e.length>0&&function(t,e){Pe(e).forEach(function(e){ce.DomUtil.removeClass(t,e)})}(t,e),null!=n&&n.length>0&&function(t,e){Pe(e).forEach(function(e){ce.DomUtil.addClass(t,e)})}(t,n))};var Ce=["children","className","id","style","useFlyTo","whenReady"],Se=function(t){return Array.isArray(t)?[t[0],t[1]]:[t.lat,t.lon?t.lon:t.lng]},Oe=function(t){function e(e){var n;return be(_e(n=t.call(this,e)||this),"className",void 0),be(_e(n),"contextValue",void 0),be(_e(n),"container",void 0),be(_e(n),"viewport",{center:void 0,zoom:void 0}),be(_e(n),"_ready",!1),be(_e(n),"_updating",!1),be(_e(n),"onViewportChange",function(){var t=n.leafletElement.getCenter();n.viewport={center:t?[t.lat,t.lng]:void 0,zoom:n.leafletElement.getZoom()},n.props.onViewportChange&&!n._updating&&n.props.onViewportChange(n.viewport)}),be(_e(n),"onViewportChanged",function(){n.props.onViewportChanged&&!n._updating&&n.props.onViewportChanged(n.viewport)}),be(_e(n),"bindContainer",function(t){n.container=t}),n.className=e.className,n}ue(e,t);var n=e.prototype;return n.createLeafletElement=function(t){var e=t.viewport,n=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,["viewport"]);return e&&(e.center&&(n.center=e.center),"number"==typeof e.zoom&&(n.zoom=e.zoom)),new ce.Map(this.container,n)},n.updateLeafletElement=function(t,e){this._updating=!0;var n=e.bounds,r=e.boundsOptions,i=e.boxZoom,o=e.center,a=e.className,s=e.doubleClickZoom,l=e.dragging,u=e.keyboard,c=e.maxBounds,f=e.scrollWheelZoom,h=e.tap,d=e.touchZoom,p=e.useFlyTo,m=e.viewport,v=e.zoom;if(ke(this.container,t.className,a),m&&m!==t.viewport){var y=m.center?m.center:o,g=null==m.zoom?v:m.zoom;!0===p?this.leafletElement.flyTo(y,g,this.getZoomPanOptions(e)):this.leafletElement.setView(y,g,this.getZoomPanOptions(e))}else o&&this.shouldUpdateCenter(o,t.center)?!0===p?this.leafletElement.flyTo(o,v,this.getZoomPanOptions(e)):this.leafletElement.setView(o,v,this.getZoomPanOptions(e)):"number"==typeof v&&v!==t.zoom&&(null==t.zoom?this.leafletElement.setView(o,v,this.getZoomPanOptions(e)):this.leafletElement.setZoom(v,this.getZoomPanOptions(e)));c&&this.shouldUpdateBounds(c,t.maxBounds)&&this.leafletElement.setMaxBounds(c),n&&(this.shouldUpdateBounds(n,t.bounds)||r!==t.boundsOptions)&&(!0===p?this.leafletElement.flyToBounds(n,this.getFitBoundsOptions(e)):this.leafletElement.fitBounds(n,this.getFitBoundsOptions(e))),i!==t.boxZoom&&(!0===i?this.leafletElement.boxZoom.enable():this.leafletElement.boxZoom.disable()),s!==t.doubleClickZoom&&(!0===s?this.leafletElement.doubleClickZoom.enable():this.leafletElement.doubleClickZoom.disable()),l!==t.dragging&&(!0===l?this.leafletElement.dragging.enable():this.leafletElement.dragging.disable()),u!==t.keyboard&&(!0===u?this.leafletElement.keyboard.enable():this.leafletElement.keyboard.disable()),f!==t.scrollWheelZoom&&(!0===f||"string"==typeof f?(this.leafletElement.options.scrollWheelZoom=f,this.leafletElement.scrollWheelZoom.enable()):this.leafletElement.scrollWheelZoom.disable()),h!==t.tap&&(!0===h?this.leafletElement.tap.enable():this.leafletElement.tap.disable()),d!==t.touchZoom&&(!0===d||"string"==typeof d?(this.leafletElement.options.touchZoom=d,this.leafletElement.touchZoom.enable()):this.leafletElement.touchZoom.disable()),this._updating=!1},n.getZoomPanOptions=function(t){return{animate:t.animate,duration:t.duration,easeLinearity:t.easeLinearity,noMoveStart:t.noMoveStart}},n.getFitBoundsOptions=function(t){return fe({},this.getZoomPanOptions(t),t.boundsOptions)},n.componentDidMount=function(){var e=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Object.keys(t).reduce(function(e,r){return-1===n.indexOf(r)&&(e[r]=t[r]),e},{})}.apply(void 0,[this.props].concat(Ce));this.leafletElement=this.createLeafletElement(e),this.leafletElement.on("move",this.onViewportChange),this.leafletElement.on("moveend",this.onViewportChanged),null!=e.bounds&&this.leafletElement.fitBounds(e.bounds,this.getFitBoundsOptions(e)),this.contextValue={layerContainer:this.leafletElement,map:this.leafletElement},t.prototype.componentDidMount.call(this),this.forceUpdate()},n.componentDidUpdate=function(e){!1===this._ready&&(this._ready=!0,this.props.whenReady&&this.leafletElement.whenReady(this.props.whenReady)),t.prototype.componentDidUpdate.call(this,e),this.updateLeafletElement(e,this.props)},n.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.leafletElement.off("move",this.onViewportChange),this.leafletElement.off("moveend",this.onViewportChanged),!0===this.props.preferCanvas?(this.leafletElement._initEvents(!0),this.leafletElement._stop()):this.leafletElement.remove()},n.shouldUpdateCenter=function(t,e){return!e||(t=Se(t),e=Se(e),t[0]!==e[0]||t[1]!==e[1])},n.shouldUpdateBounds=function(t,e){return!e||!Object(ce.latLngBounds)(t).equals(Object(ce.latLngBounds)(e))},n.render=function(){return i.a.createElement("div",{className:this.className,id:this.props.id,ref:this.bindContainer,style:this.props.style},this.contextValue?i.a.createElement(ve,{value:this.contextValue},this.props.children):null)},e}(xe),Ae=n(18),Le=n.n(Ae);var ze,Me=["stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","bubblingMouseEvents","renderer","className","interactive","pane","attribution"],je=ye(function(t){function e(){return t.apply(this,arguments)||this}ue(e,t);var n=e.prototype;return n.createLeafletElement=function(t){return new ce.GeoJSON(t.data,this.getOptions(t))},n.updateLeafletElement=function(t,e){"function"==typeof e.style?this.leafletElement.setStyle(e.style):this.setStyleIfChanged(t,e)},e}(function(t){function e(e){var n;return null==(n=t.call(this,e)||this).contextValue&&(n.contextValue=fe({},e.leaflet,{popupContainer:n.leafletElement})),n}ue(e,t);var n=e.prototype;return n.componentDidUpdate=function(e){t.prototype.componentDidUpdate.call(this,e),this.setStyleIfChanged(e,this.props)},n.getPathOptions=function(t){return e=t,Me.reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{});var e},n.setStyle=function(t){void 0===t&&(t={}),this.leafletElement.setStyle(t)},n.setStyleIfChanged=function(t,e){var n=this.getPathOptions(e);Le()(n,this.getPathOptions(t))||this.setStyle(n)},e}(Te)));n(31);const Re={nons:i.a.createElement(i.a.Fragment,null),osmDE:i.a.createElement(Ee,{url:"https://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png",attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}),osmMapnik:i.a.createElement(Ee,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'})};let Ie=B(ze=class extends i.a.Component{render(){return i.a.createElement(Oe,{center:[0,0],zoom:2},Re[Gt.tileLayer],Gt.originalActive&&i.a.createElement(je,{key:Gt.originalText,data:Gt.original}),Gt.simplifiedActive&&i.a.createElement(je,{key:Gt.simplifiedText,data:Gt.simplified}))}})||ze;a.a.render(i.a.createElement(class extends r.Component{render(){return i.a.createElement(i.a.Fragment,null,i.a.createElement(Ie,null),i.a.createElement("div",{id:"options"},i.a.createElement("h2",null,"Options"),i.a.createElement(Yt,null),i.a.createElement(te,null),i.a.createElement(ne,null),i.a.createElement(le,null)))}},null),document.getElementById("root"))}]);
|
|
//# sourceMappingURL=bundle.js.map
|