From 0aedf9fcc6103929d5547f9ea67606b7e6a310c8 Mon Sep 17 00:00:00 2001 From: nnatter Date: Wed, 9 Dec 2020 16:18:00 +0100 Subject: [PATCH 1/3] Adjust phpunit.xml.dist to use xsd of installed phpunit package (#80) --- phpunit.xml.dist | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 3fd3d5d0..bc7a56c8 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -2,7 +2,7 @@ - + + + @@ -29,4 +31,3 @@ - From 0ba5d19c931c645f3d3237c4134cd36bfe2762ac Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Tue, 15 Dec 2020 10:41:33 +0100 Subject: [PATCH 2/3] Fix stof extension bundle default locale (#81) --- config/packages/stof_doctrine_extensions.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/packages/stof_doctrine_extensions.yaml b/config/packages/stof_doctrine_extensions.yaml index c83f3b1d..d3ce9e30 100644 --- a/config/packages/stof_doctrine_extensions.yaml +++ b/config/packages/stof_doctrine_extensions.yaml @@ -1,4 +1,4 @@ # Read the documentation: https://symfony.com/doc/current/bundles/StofDoctrineExtensionsBundle/index.html # See the official DoctrineExtensions documentation for more details: https://github.com/Atlantic18/DoctrineExtensions/tree/master/doc/ stof_doctrine_extensions: - default_locale: en_US + default_locale: '%default_locale%' From 74533d53bc4964de30293d89190ecd1cad6a4556 Mon Sep 17 00:00:00 2001 From: Niklas Natter Date: Fri, 18 Dec 2020 10:22:58 +0100 Subject: [PATCH 3/3] Bump version --- composer.json | 2 +- ...ccb5.css => main.67cfc2d3956f3fbbfde5.css} | 0 ...77ccb5.js => main.67cfc2d3956f3fbbfde5.js} | 592 +++++++++--------- ...s.map => main.67cfc2d3956f3fbbfde5.js.map} | 2 +- public/build/admin/manifest.json | 6 +- 5 files changed, 301 insertions(+), 301 deletions(-) rename public/build/admin/{main.a46e603cda73cc77ccb5.css => main.67cfc2d3956f3fbbfde5.css} (100%) rename public/build/admin/{main.a46e603cda73cc77ccb5.js => main.67cfc2d3956f3fbbfde5.js} (69%) rename public/build/admin/{main.a46e603cda73cc77ccb5.js.map => main.67cfc2d3956f3fbbfde5.js.map} (55%) diff --git a/composer.json b/composer.json index c775c555..5a62806c 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ "friendsofsymfony/http-cache-bundle": "^2.8", "handcraftedinthealps/zendsearch": "^2.0", "jackalope/jackalope-doctrine-dbal": "^1.3", - "sulu/sulu": "~2.1.1", + "sulu/sulu": "~2.1.7", "symfony/config": "^5.1", "symfony/dotenv": "^5.1", "symfony/flex": "^1.2", diff --git a/public/build/admin/main.a46e603cda73cc77ccb5.css b/public/build/admin/main.67cfc2d3956f3fbbfde5.css similarity index 100% rename from public/build/admin/main.a46e603cda73cc77ccb5.css rename to public/build/admin/main.67cfc2d3956f3fbbfde5.css diff --git a/public/build/admin/main.a46e603cda73cc77ccb5.js b/public/build/admin/main.67cfc2d3956f3fbbfde5.js similarity index 69% rename from public/build/admin/main.a46e603cda73cc77ccb5.js rename to public/build/admin/main.67cfc2d3956f3fbbfde5.js index 13047372..8aa44f8b 100644 --- a/public/build/admin/main.a46e603cda73cc77ccb5.js +++ b/public/build/admin/main.67cfc2d3956f3fbbfde5.js @@ -1,4 +1,4 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=672)}([function(e,t,n){"use strict";e.exports=n(454)},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return On})),n.d(t,"b",(function(){return Ke})),n.d(t,"c",(function(){return Ce})),n.d(t,"d",(function(){return ut})),n.d(t,"e",(function(){return lt})),n.d(t,"f",(function(){return L})),n.d(t,"g",(function(){return ce})),n.d(t,"h",(function(){return yt})),n.d(t,"i",(function(){return R})),n.d(t,"j",(function(){return bn})),n.d(t,"k",(function(){return gt})),n.d(t,"l",(function(){return v})),n.d(t,"m",(function(){return Qt})),n.d(t,"n",(function(){return nn})),n.d(t,"o",(function(){return hn})),n.d(t,"p",(function(){return oe})),n.d(t,"q",(function(){return pt})),n.d(t,"r",(function(){return St})),n.d(t,"s",(function(){return rt})),n.d(t,"t",(function(){return Et})),n.d(t,"u",(function(){return be})),n.d(t,"v",(function(){return xt}));var o=[];Object.freeze(o);var i={};Object.freeze(i);var a={};function u(){return"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:a}function s(){return++Fe.mobxGuid}function l(e){throw c(!1,e),"X"}function c(e,t){if(!e)throw new Error("[mobx] "+(t||"An invariant failed, however the error is obfuscated because this is an production build."))}function f(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var p=function(){};function d(e){return null!==e&&"object"==typeof e}function h(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function y(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function m(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function b(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return d(e)&&!0===e[n]}}function v(e){return Array.isArray(e)||Qt(e)}function g(e){return void 0!==u().Map&&e instanceof u().Map}function _(e){return e instanceof Set}function w(e){for(var t=[];;){var n=e.next();if(n.done)break;t.push(n.value)}return t}function O(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function S(e){return null===e?null:"object"==typeof e?""+e:e}function k(e,t){for(var n=e.next();!n.done;)t(n.value),n=e.next()}function P(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function E(e,t){m(e,P(),t)}function j(e){return e[P()]=x,e}function C(){return"function"==typeof Symbol&&Symbol.toStringTag||"@@toStringTag"}function x(){return this}var T=function(){function e(e){void 0===e&&(e="Atom@"+s()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=ae.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.reportObserved=function(){return We(this)},e.prototype.reportChanged=function(){He(),function(e){if(e.lowestObserverState===ae.STALE)return;e.lowestObserverState=ae.STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===ae.UP_TO_DATE&&(r.isTracing!==ue.NONE&&Ue(r,e),r.onBecomeStale()),r.dependenciesState=ae.STALE}}(this),Ve()},e.prototype.toString=function(){return this.name},e}(),D=b("Atom",T);function R(e,t,n){void 0===t&&(t=p),void 0===n&&(n=p);var r,o=new T(e);return ht("onBecomeObserved",o,t,r),dt(o,n),o}function M(e,t){return e===t}var L={identity:M,structural:function(e,t){return gn(e,t)},default:function(e,t){return function(e,t){return"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(e,t)||M(e,t)},shallow:function(e,t){return gn(e,t,1)}},A=function(e,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)}; +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=672)}([function(e,t,n){"use strict";e.exports=n(454)},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return On})),n.d(t,"b",(function(){return Ke})),n.d(t,"c",(function(){return Ce})),n.d(t,"d",(function(){return ut})),n.d(t,"e",(function(){return lt})),n.d(t,"f",(function(){return L})),n.d(t,"g",(function(){return ce})),n.d(t,"h",(function(){return yt})),n.d(t,"i",(function(){return R})),n.d(t,"j",(function(){return bn})),n.d(t,"k",(function(){return gt})),n.d(t,"l",(function(){return v})),n.d(t,"m",(function(){return Qt})),n.d(t,"n",(function(){return nn})),n.d(t,"o",(function(){return hn})),n.d(t,"p",(function(){return oe})),n.d(t,"q",(function(){return pt})),n.d(t,"r",(function(){return kt})),n.d(t,"s",(function(){return rt})),n.d(t,"t",(function(){return Et})),n.d(t,"u",(function(){return be})),n.d(t,"v",(function(){return xt}));var o=[];Object.freeze(o);var i={};Object.freeze(i);var a={};function u(){return"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:a}function s(){return++Fe.mobxGuid}function l(e){throw c(!1,e),"X"}function c(e,t){if(!e)throw new Error("[mobx] "+(t||"An invariant failed, however the error is obfuscated because this is an production build."))}function f(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var p=function(){};function d(e){return null!==e&&"object"==typeof e}function h(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function y(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function m(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function b(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return d(e)&&!0===e[n]}}function v(e){return Array.isArray(e)||Qt(e)}function g(e){return void 0!==u().Map&&e instanceof u().Map}function _(e){return e instanceof Set}function w(e){for(var t=[];;){var n=e.next();if(n.done)break;t.push(n.value)}return t}function O(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function k(e){return null===e?null:"object"==typeof e?""+e:e}function S(e,t){for(var n=e.next();!n.done;)t(n.value),n=e.next()}function P(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function E(e,t){m(e,P(),t)}function j(e){return e[P()]=x,e}function C(){return"function"==typeof Symbol&&Symbol.toStringTag||"@@toStringTag"}function x(){return this}var T=function(){function e(e){void 0===e&&(e="Atom@"+s()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=ae.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.reportObserved=function(){return We(this)},e.prototype.reportChanged=function(){He(),function(e){if(e.lowestObserverState===ae.STALE)return;e.lowestObserverState=ae.STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===ae.UP_TO_DATE&&(r.isTracing!==ue.NONE&&Ue(r,e),r.onBecomeStale()),r.dependenciesState=ae.STALE}}(this),Ve()},e.prototype.toString=function(){return this.name},e}(),D=b("Atom",T);function R(e,t,n){void 0===t&&(t=p),void 0===n&&(n=p);var r,o=new T(e);return ht("onBecomeObserved",o,t,r),dt(o,n),o}function M(e,t){return e===t}var L={identity:M,structural:function(e,t){return gn(e,t)},default:function(e,t){return function(e,t){return"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(e,t)||M(e,t)},shallow:function(e,t){return gn(e,t,1)}},A=function(e,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use @@ -12,7 +12,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. -***************************************************************************** */function I(e,t){function n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var z=function(){return(z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Y(){for(var e=[],t=0;t2&&ie("box");var n=J(t);return new De(e,Q(n),n.name,!0,n.equals)},shallowBox:function(e,t){return arguments.length>2&&ie("shallowBox"),oe.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&ie("array");var n=J(t);return new Kt(e,Q(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&ie("shallowArray"),oe.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&ie("map");var n=J(t);return new en(e,Q(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&ie("shallowMap"),oe.map(e,{name:t,deep:!1})},set:function(e,t){arguments.length>2&&ie("set");var n=J(t);return new on(e,Q(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&ie("object");var r=J(n);return mt({},e,t,r)},shallowObject:function(e,t){return"string"==typeof arguments[1]&&ie("shallowObject"),oe.object(e,{},{name:t,deep:!1})},ref:te,shallow:ee,deep:X,struct:ne},oe=function(e,t,n){if("string"==typeof arguments[1])return X.apply(null,arguments);if(wt(e))return e;var r=h(e)?oe.object(e,t,n):Array.isArray(e)?oe.array(e,t):g(e)?oe.map(e,t):_(e)?oe.set(e,t):e;if(r!==e)return r;l(!1)};function ie(e){l("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(re).forEach((function(e){return oe[e]=re[e]}));var ae,ue,se=W(!1,(function(e,t,n,r,o){var i=n.get,a=n.set,u=o[0]||{};!function(e,t,n){var r=sn(e);n.name=r.name+"."+t,n.context=e,r.values[t]=new Me(n),Object.defineProperty(e,t,function(e){return fn[e]||(fn[e]={configurable:Fe.computedConfigurable,enumerable:!1,get:function(){return pn(this).read(this,e)},set:function(t){pn(this).write(this,e,t)}})}(t))}(e,t,z({get:i,set:a},u))})),le=se({equals:L.structural}),ce=function(e,t,n){if("string"==typeof t)return se.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return se.apply(null,arguments);var r="object"==typeof t?t:{};return r.get=e,r.set="function"==typeof t?t:r.set,r.name=r.name||e.name||"",new Me(r)};ce.struct=le,function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(ae||(ae={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(ue||(ue={}));var fe=function(e){this.cause=e};function pe(e){return e instanceof fe}function de(e){switch(e.dependenciesState){case ae.UP_TO_DATE:return!1;case ae.NOT_TRACKING:case ae.STALE:return!0;case ae.POSSIBLY_STALE:for(var t=_e(!0),n=ve(),r=e.observing,o=r.length,i=0;i0;Fe.computationDepth>0&&t&&l(!1),Fe.allowStateChanges||!t&&"strict"!==Fe.enforceActions||l(!1)}function ye(e,t,n){var r=_e(!0);Oe(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Fe.runId;var o,i=Fe.trackingDerivation;if(Fe.trackingDerivation=e,!0===Fe.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(e){o=new fe(e)}return Fe.trackingDerivation=i,function(e){for(var t=e.observing,n=e.observing=e.newObserving,r=ae.UP_TO_DATE,o=0,i=e.unboundDepsCount,a=0;ar&&(r=u.dependenciesState)}n.length=o,e.newObserving=null,i=t.length;for(;i--;){0===(u=t[i]).diffValue&&Ne(u,e),u.diffValue=0}for(;o--;){var u;1===(u=n[o]).diffValue&&(u.diffValue=0,Ye(u,e))}r!==ae.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}(e),e.observing.length,we(r),o}function me(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Ne(t[n],e);e.dependenciesState=ae.NOT_TRACKING}function be(e){var t=ve(),n=e();return ge(t),n}function ve(){var e=Fe.trackingDerivation;return Fe.trackingDerivation=null,e}function ge(e){Fe.trackingDerivation=e}function _e(e){var t=Fe.allowStateReads;return Fe.allowStateReads=e,t}function we(e){Fe.allowStateReads=e}function Oe(e){if(e.dependenciesState!==ae.UP_TO_DATE){e.dependenciesState=ae.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=ae.UP_TO_DATE}}var Se=0,ke=1,Pe=Object.getOwnPropertyDescriptor((function(){}),"name");Pe&&Pe.configurable;function Ee(e,t){var n=function(){return je(e,t,this,arguments)};return n.isMobxAction=!0,n}function je(e,t,n,r){var o=function(e,t,n){var r=Qe()&&!!e,o=0;if(r){o=Date.now();var i=n&&n.length||0,a=new Array(i);if(i>0)for(var u=0;u0&&!e.__mobxGlobals&&(Ie=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Ae).version&&(Ie=!1),Ie?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Ae):(setTimeout((function(){ze||l("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Ae)}();function Ye(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Ne(e,t){if(1===e.observers.length)e.observers.length=0,Be(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var i=r[t.__mapid]||0;i?r[o.__mapid]=i:delete r[o.__mapid],n[i]=o}delete r[t.__mapid]}}function Be(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Fe.pendingUnobservations.push(e))}function He(){Fe.inBatch++}function Ve(){if(0==--Fe.inBatch){$e();for(var e=Fe.pendingUnobservations,t=0;t0&&Be(e),!1)}function Ue(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===ue.BREAK){var n=[];!function e(t,n,r){if(n.length>=1e3)return void n.push("(and many more)");n.push(""+new Array(r).join("\t")+t.name),t.dependencies&&t.dependencies.forEach((function(t){return e(t,n,r+1)}))}((r=e,bt(yn(r,o))),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.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"+(e instanceof Me?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}var r,o}var Ke=function(){function e(e,t,n,r){void 0===e&&(e="Reaction@"+s()),void 0===r&&(r=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=ae.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+s(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=ue.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Fe.pendingReactions.push(this),$e())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(He(),this._isScheduled=!1,de(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&Qe()&&Xe({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}Ve()}},e.prototype.track=function(e){He();var t,n=Qe();n&&(t=Date.now(),et({name:this.name,type:"reaction"})),this._isRunning=!0;var r=ye(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&me(this),pe(r)&&this.reportExceptionInDerivation(r.cause),n&&nt({time:Date.now()-t}),Ve()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Fe.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Fe.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),Qe()&&Xe({type:"error",name:this.name,message:n,error:""+e}),Fe.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(He(),me(this),Ve()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),function(){for(var e=[],t=0;t0||Fe.isRunningReactions||qe(Ge)}function Ge(){Fe.isRunningReactions=!0;for(var e=Fe.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r",e):2===arguments.length&&"function"==typeof t?Ee(e,t):1===arguments.length&&"string"==typeof e?it(e):!0!==r?it(t).apply(null,arguments):void(e[t]=Ee(e.name||t,n.value))};function st(e,t,n){y(e,t,Ee(t,n.bind(e)))}function lt(e,t){void 0===t&&(t=i);var n,r=t&&t.name||e.name||"Autorun@"+s();if(!t.scheduler&&!t.delay)n=new Ke(r,(function(){this.track(u)}),t.onError,t.requiresObservable);else{var o=ft(t),a=!1;n=new Ke(r,(function(){a||(a=!0,o((function(){a=!1,n.isDisposed||n.track(u)})))}),t.onError,t.requiresObservable)}function u(){e(n)}return n.schedule(),n.getDisposer()}ut.bound=function(e,t,n,r){return!0===r?(st(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return st(this,t,n.value||n.initializer.call(this)),this[t]},set:ot}:{enumerable:!1,configurable:!0,set:function(e){st(this,t,e)},get:function(){}}};var ct=function(e){return e()};function ft(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:ct}function pt(e,t,n){void 0===n&&(n=i),"boolean"==typeof n&&(n={fireImmediately:n});var r,o,a,u=n.name||"Reaction@"+s(),l=ut(u,n.onError?(r=n.onError,o=t,function(){try{return o.apply(this,arguments)}catch(e){r.call(this,e)}}):t),c=!n.scheduler&&!n.delay,f=ft(n),p=!0,d=!1,h=n.compareStructural?L.structural:n.equals||L.default,y=new Ke(u,(function(){p||c?m():d||(d=!0,f(m))}),n.onError,n.requiresObservable);function m(){if(d=!1,!y.isDisposed){var t=!1;y.track((function(){var n=e(y);t=p||!h(a,n),a=n})),p&&n.fireImmediately&&l(a,y),p||!0!==t||l(a,y),p&&(p=!1)}}return y.schedule(),y.getDisposer()}function dt(e,t,n){return ht("onBecomeUnobserved",e,t,n)}function ht(e,t,n,r){var o="function"==typeof r?yn(t,n):yn(t),i="function"==typeof r?r:n,a=o[e];return"function"!=typeof a?l(!1):(o[e]=function(){a.call(this),i.call(this)},function(){o[e]=a})}function yt(e){var t=e.enforceActions,n=e.computedRequiresReaction,r=e.computedConfigurable,o=e.disableErrorBoundaries,i=e.arrayBuffer,a=e.reactionScheduler,s=e.reactionRequiresObservable,c=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((Fe.pendingReactions.length||Fe.inBatch||Fe.isRunningReactions)&&l("isolateGlobalState should be called before MobX is running any reactions"),ze=!0,Ie&&(0==--u().__mobxInstanceCount&&(u().__mobxGlobals=void 0),Fe=new Ae)),void 0!==t){var f=void 0;switch(t){case!0:case"observed":f=!0;break;case!1:case"never":f=!1;break;case"strict":case"always":f="strict";break;default:l("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}Fe.enforceActions=f,Fe.allowStateChanges=!0!==f&&"strict"!==f}void 0!==n&&(Fe.computedRequiresReaction=!!n),void 0!==s&&(Fe.reactionRequiresObservable=!!s),void 0!==c&&(Fe.observableRequiresReaction=!!c,Fe.allowStateReads=!Fe.observableRequiresReaction),void 0!==r&&(Fe.computedConfigurable=!!r),void 0!==o&&(!0===o&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),Fe.disableErrorBoundaries=!!o),"number"==typeof i&&Zt(i),a&&Je(a)}function mt(e,t,n,r){var o=(r=J(r)).defaultDecorator||(!1===r.deep?te:X);V(e),sn(e,r.name,o.enhancer),He();try{for(var i=Object.getOwnPropertyNames(t),a=0,u=i.length;a0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(bt)),r}function vt(){this.message="FLOW_CANCELLED"}function gt(e,t,n){return"function"==typeof n?function(e,t,n){return mn(e,t).intercept(n)}(e,t,n):function(e,t){return mn(e).intercept(t)}(e,t)}function _t(e,t){if(null==e)return!1;if(void 0!==t){if(hn(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return hn(e)||!!e.$mobx||D(e)||Ze(e)||Le(e)}function wt(e){return 1!==arguments.length&&l(!1),_t(e)}function Ot(e){return hn(e)?e.$mobx.getKeys():nn(e)||an(e)?w(e.keys()):Qt(e)?e.map((function(e,t){return t})):l(!1)}function St(e,t,n){if(2!==arguments.length||an(e))if(hn(e)){var r=e.$mobx,o=r.values[t];o?r.write(e,t,n):ln(e,t,n,r.defaultEnhancer)}else if(nn(e))e.set(t,n);else if(an(e))e.add(t);else{if(!Qt(e))return l(!1);"number"!=typeof t&&(t=parseInt(t,10)),c(t>=0,"Not a valid index: '"+t+"'"),He(),t>=e.length&&(e.length=t+1),e[t]=n,Ve()}else{He();var i=t;try{for(var a in i)St(e,a,i[a])}finally{Ve()}}}vt.prototype=Object.create(Error.prototype);var kt={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function Pt(e,t,n,r){return r.detectCycles&&e.set(t,n),n}function Et(e,t){var n;return"boolean"==typeof t&&(t={detectCycles:t}),t||(t=kt),t.detectCycles=void 0===t.detectCycles?!0===t.recurseEverything:!0===t.detectCycles,t.detectCycles&&(n=new Map),function e(t,n,r){if(!n.recurseEverything&&!wt(t))return t;if("object"!=typeof t)return t;if(null===t)return null;if(t instanceof Date)return t;if(Re(t))return e(t.get(),n,r);if(wt(t)&&Ot(t),!0===n.detectCycles&&null!==t&&r.has(t))return r.get(t);if(Qt(t)||Array.isArray(t)){var o=Pt(r,t,[],n),i=t.map((function(t){return e(t,n,r)}));o.length=i.length;for(var a=0,u=i.length;a0}function Mt(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),f((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Lt(e,t){var n=ve();try{var r=e.interceptors;if(r)for(var o=0,i=r.length;o0}function It(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),f((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function zt(e,t){var n=ve(),r=e.changeListeners;if(r){for(var o=0,i=(r=r.slice()).length;o0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return Mt(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),It(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r0&&e+t+1>Vt&&Zt(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var r=this;he(this.atom);var i=this.values.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=o),Rt(this)){var a=Lt(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!a)return o;t=a.removedCount,n=a.added}var u=(n=0===n.length?n:n.map((function(e){return r.enhancer(e,void 0)}))).length-t;this.updateArrayLength(i,u);var s=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,Y([e,t],n));var o=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),o},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&Qe(),o=At(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&et(z(z({},i),{name:this.atom.name})),this.atom.reportChanged(),o&&zt(this,i),r&&nt()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&Qe(),o=At(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&et(z(z({},i),{name:this.atom.name})),this.atom.reportChanged(),o&&zt(this,i),r&&nt()},e}(),Kt=function(e){function t(t,n,r,o){void 0===r&&(r="ObservableArray@"+s()),void 0===o&&(o=!1);var i=e.call(this)||this,a=new Ut(r,n,i,o);if(m(i,"$mobx",a),t&&t.length){var u=xe(!0);i.spliceWithArray(0,0,t),Te(u)}return Ht&&Object.defineProperty(a.array,"0",qt),i}return I(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=e0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Y(){for(var e=[],t=0;t2&&ie("box");var n=J(t);return new De(e,Q(n),n.name,!0,n.equals)},shallowBox:function(e,t){return arguments.length>2&&ie("shallowBox"),oe.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&ie("array");var n=J(t);return new Kt(e,Q(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&ie("shallowArray"),oe.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&ie("map");var n=J(t);return new en(e,Q(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&ie("shallowMap"),oe.map(e,{name:t,deep:!1})},set:function(e,t){arguments.length>2&&ie("set");var n=J(t);return new on(e,Q(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&ie("object");var r=J(n);return mt({},e,t,r)},shallowObject:function(e,t){return"string"==typeof arguments[1]&&ie("shallowObject"),oe.object(e,{},{name:t,deep:!1})},ref:te,shallow:ee,deep:X,struct:ne},oe=function(e,t,n){if("string"==typeof arguments[1])return X.apply(null,arguments);if(wt(e))return e;var r=h(e)?oe.object(e,t,n):Array.isArray(e)?oe.array(e,t):g(e)?oe.map(e,t):_(e)?oe.set(e,t):e;if(r!==e)return r;l(!1)};function ie(e){l("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(re).forEach((function(e){return oe[e]=re[e]}));var ae,ue,se=W(!1,(function(e,t,n,r,o){var i=n.get,a=n.set,u=o[0]||{};!function(e,t,n){var r=sn(e);n.name=r.name+"."+t,n.context=e,r.values[t]=new Me(n),Object.defineProperty(e,t,function(e){return fn[e]||(fn[e]={configurable:Fe.computedConfigurable,enumerable:!1,get:function(){return pn(this).read(this,e)},set:function(t){pn(this).write(this,e,t)}})}(t))}(e,t,z({get:i,set:a},u))})),le=se({equals:L.structural}),ce=function(e,t,n){if("string"==typeof t)return se.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return se.apply(null,arguments);var r="object"==typeof t?t:{};return r.get=e,r.set="function"==typeof t?t:r.set,r.name=r.name||e.name||"",new Me(r)};ce.struct=le,function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(ae||(ae={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(ue||(ue={}));var fe=function(e){this.cause=e};function pe(e){return e instanceof fe}function de(e){switch(e.dependenciesState){case ae.UP_TO_DATE:return!1;case ae.NOT_TRACKING:case ae.STALE:return!0;case ae.POSSIBLY_STALE:for(var t=_e(!0),n=ve(),r=e.observing,o=r.length,i=0;i0;Fe.computationDepth>0&&t&&l(!1),Fe.allowStateChanges||!t&&"strict"!==Fe.enforceActions||l(!1)}function ye(e,t,n){var r=_e(!0);Oe(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Fe.runId;var o,i=Fe.trackingDerivation;if(Fe.trackingDerivation=e,!0===Fe.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(e){o=new fe(e)}return Fe.trackingDerivation=i,function(e){for(var t=e.observing,n=e.observing=e.newObserving,r=ae.UP_TO_DATE,o=0,i=e.unboundDepsCount,a=0;ar&&(r=u.dependenciesState)}n.length=o,e.newObserving=null,i=t.length;for(;i--;){0===(u=t[i]).diffValue&&Ne(u,e),u.diffValue=0}for(;o--;){var u;1===(u=n[o]).diffValue&&(u.diffValue=0,Ye(u,e))}r!==ae.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}(e),e.observing.length,we(r),o}function me(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Ne(t[n],e);e.dependenciesState=ae.NOT_TRACKING}function be(e){var t=ve(),n=e();return ge(t),n}function ve(){var e=Fe.trackingDerivation;return Fe.trackingDerivation=null,e}function ge(e){Fe.trackingDerivation=e}function _e(e){var t=Fe.allowStateReads;return Fe.allowStateReads=e,t}function we(e){Fe.allowStateReads=e}function Oe(e){if(e.dependenciesState!==ae.UP_TO_DATE){e.dependenciesState=ae.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=ae.UP_TO_DATE}}var ke=0,Se=1,Pe=Object.getOwnPropertyDescriptor((function(){}),"name");Pe&&Pe.configurable;function Ee(e,t){var n=function(){return je(e,t,this,arguments)};return n.isMobxAction=!0,n}function je(e,t,n,r){var o=function(e,t,n){var r=Qe()&&!!e,o=0;if(r){o=Date.now();var i=n&&n.length||0,a=new Array(i);if(i>0)for(var u=0;u0&&!e.__mobxGlobals&&(Ie=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Ae).version&&(Ie=!1),Ie?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Ae):(setTimeout((function(){ze||l("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Ae)}();function Ye(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Ne(e,t){if(1===e.observers.length)e.observers.length=0,Be(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var i=r[t.__mapid]||0;i?r[o.__mapid]=i:delete r[o.__mapid],n[i]=o}delete r[t.__mapid]}}function Be(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Fe.pendingUnobservations.push(e))}function He(){Fe.inBatch++}function Ve(){if(0==--Fe.inBatch){$e();for(var e=Fe.pendingUnobservations,t=0;t0&&Be(e),!1)}function Ue(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===ue.BREAK){var n=[];!function e(t,n,r){if(n.length>=1e3)return void n.push("(and many more)");n.push(""+new Array(r).join("\t")+t.name),t.dependencies&&t.dependencies.forEach((function(t){return e(t,n,r+1)}))}((r=e,bt(yn(r,o))),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.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"+(e instanceof Me?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}var r,o}var Ke=function(){function e(e,t,n,r){void 0===e&&(e="Reaction@"+s()),void 0===r&&(r=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=ae.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+s(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=ue.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Fe.pendingReactions.push(this),$e())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(He(),this._isScheduled=!1,de(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&Qe()&&Xe({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}Ve()}},e.prototype.track=function(e){He();var t,n=Qe();n&&(t=Date.now(),et({name:this.name,type:"reaction"})),this._isRunning=!0;var r=ye(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&me(this),pe(r)&&this.reportExceptionInDerivation(r.cause),n&&nt({time:Date.now()-t}),Ve()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Fe.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Fe.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),Qe()&&Xe({type:"error",name:this.name,message:n,error:""+e}),Fe.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(He(),me(this),Ve()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),function(){for(var e=[],t=0;t0||Fe.isRunningReactions||qe(Ge)}function Ge(){Fe.isRunningReactions=!0;for(var e=Fe.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r",e):2===arguments.length&&"function"==typeof t?Ee(e,t):1===arguments.length&&"string"==typeof e?it(e):!0!==r?it(t).apply(null,arguments):void(e[t]=Ee(e.name||t,n.value))};function st(e,t,n){y(e,t,Ee(t,n.bind(e)))}function lt(e,t){void 0===t&&(t=i);var n,r=t&&t.name||e.name||"Autorun@"+s();if(!t.scheduler&&!t.delay)n=new Ke(r,(function(){this.track(u)}),t.onError,t.requiresObservable);else{var o=ft(t),a=!1;n=new Ke(r,(function(){a||(a=!0,o((function(){a=!1,n.isDisposed||n.track(u)})))}),t.onError,t.requiresObservable)}function u(){e(n)}return n.schedule(),n.getDisposer()}ut.bound=function(e,t,n,r){return!0===r?(st(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return st(this,t,n.value||n.initializer.call(this)),this[t]},set:ot}:{enumerable:!1,configurable:!0,set:function(e){st(this,t,e)},get:function(){}}};var ct=function(e){return e()};function ft(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:ct}function pt(e,t,n){void 0===n&&(n=i),"boolean"==typeof n&&(n={fireImmediately:n});var r,o,a,u=n.name||"Reaction@"+s(),l=ut(u,n.onError?(r=n.onError,o=t,function(){try{return o.apply(this,arguments)}catch(e){r.call(this,e)}}):t),c=!n.scheduler&&!n.delay,f=ft(n),p=!0,d=!1,h=n.compareStructural?L.structural:n.equals||L.default,y=new Ke(u,(function(){p||c?m():d||(d=!0,f(m))}),n.onError,n.requiresObservable);function m(){if(d=!1,!y.isDisposed){var t=!1;y.track((function(){var n=e(y);t=p||!h(a,n),a=n})),p&&n.fireImmediately&&l(a,y),p||!0!==t||l(a,y),p&&(p=!1)}}return y.schedule(),y.getDisposer()}function dt(e,t,n){return ht("onBecomeUnobserved",e,t,n)}function ht(e,t,n,r){var o="function"==typeof r?yn(t,n):yn(t),i="function"==typeof r?r:n,a=o[e];return"function"!=typeof a?l(!1):(o[e]=function(){a.call(this),i.call(this)},function(){o[e]=a})}function yt(e){var t=e.enforceActions,n=e.computedRequiresReaction,r=e.computedConfigurable,o=e.disableErrorBoundaries,i=e.arrayBuffer,a=e.reactionScheduler,s=e.reactionRequiresObservable,c=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((Fe.pendingReactions.length||Fe.inBatch||Fe.isRunningReactions)&&l("isolateGlobalState should be called before MobX is running any reactions"),ze=!0,Ie&&(0==--u().__mobxInstanceCount&&(u().__mobxGlobals=void 0),Fe=new Ae)),void 0!==t){var f=void 0;switch(t){case!0:case"observed":f=!0;break;case!1:case"never":f=!1;break;case"strict":case"always":f="strict";break;default:l("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}Fe.enforceActions=f,Fe.allowStateChanges=!0!==f&&"strict"!==f}void 0!==n&&(Fe.computedRequiresReaction=!!n),void 0!==s&&(Fe.reactionRequiresObservable=!!s),void 0!==c&&(Fe.observableRequiresReaction=!!c,Fe.allowStateReads=!Fe.observableRequiresReaction),void 0!==r&&(Fe.computedConfigurable=!!r),void 0!==o&&(!0===o&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),Fe.disableErrorBoundaries=!!o),"number"==typeof i&&Zt(i),a&&Je(a)}function mt(e,t,n,r){var o=(r=J(r)).defaultDecorator||(!1===r.deep?te:X);V(e),sn(e,r.name,o.enhancer),He();try{for(var i=Object.getOwnPropertyNames(t),a=0,u=i.length;a0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(bt)),r}function vt(){this.message="FLOW_CANCELLED"}function gt(e,t,n){return"function"==typeof n?function(e,t,n){return mn(e,t).intercept(n)}(e,t,n):function(e,t){return mn(e).intercept(t)}(e,t)}function _t(e,t){if(null==e)return!1;if(void 0!==t){if(hn(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return hn(e)||!!e.$mobx||D(e)||Ze(e)||Le(e)}function wt(e){return 1!==arguments.length&&l(!1),_t(e)}function Ot(e){return hn(e)?e.$mobx.getKeys():nn(e)||an(e)?w(e.keys()):Qt(e)?e.map((function(e,t){return t})):l(!1)}function kt(e,t,n){if(2!==arguments.length||an(e))if(hn(e)){var r=e.$mobx,o=r.values[t];o?r.write(e,t,n):ln(e,t,n,r.defaultEnhancer)}else if(nn(e))e.set(t,n);else if(an(e))e.add(t);else{if(!Qt(e))return l(!1);"number"!=typeof t&&(t=parseInt(t,10)),c(t>=0,"Not a valid index: '"+t+"'"),He(),t>=e.length&&(e.length=t+1),e[t]=n,Ve()}else{He();var i=t;try{for(var a in i)kt(e,a,i[a])}finally{Ve()}}}vt.prototype=Object.create(Error.prototype);var St={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function Pt(e,t,n,r){return r.detectCycles&&e.set(t,n),n}function Et(e,t){var n;return"boolean"==typeof t&&(t={detectCycles:t}),t||(t=St),t.detectCycles=void 0===t.detectCycles?!0===t.recurseEverything:!0===t.detectCycles,t.detectCycles&&(n=new Map),function e(t,n,r){if(!n.recurseEverything&&!wt(t))return t;if("object"!=typeof t)return t;if(null===t)return null;if(t instanceof Date)return t;if(Re(t))return e(t.get(),n,r);if(wt(t)&&Ot(t),!0===n.detectCycles&&null!==t&&r.has(t))return r.get(t);if(Qt(t)||Array.isArray(t)){var o=Pt(r,t,[],n),i=t.map((function(t){return e(t,n,r)}));o.length=i.length;for(var a=0,u=i.length;a0}function Mt(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),f((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Lt(e,t){var n=ve();try{var r=e.interceptors;if(r)for(var o=0,i=r.length;o0}function It(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),f((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function zt(e,t){var n=ve(),r=e.changeListeners;if(r){for(var o=0,i=(r=r.slice()).length;o0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return Mt(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),It(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r0&&e+t+1>Vt&&Zt(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var r=this;he(this.atom);var i=this.values.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=o),Rt(this)){var a=Lt(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!a)return o;t=a.removedCount,n=a.added}var u=(n=0===n.length?n:n.map((function(e){return r.enhancer(e,void 0)}))).length-t;this.updateArrayLength(i,u);var s=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,Y([e,t],n));var o=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),o},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&Qe(),o=At(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&et(z(z({},i),{name:this.atom.name})),this.atom.reportChanged(),o&&zt(this,i),r&&nt()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&Qe(),o=At(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&et(z(z({},i),{name:this.atom.name})),this.atom.reportChanged(),o&&zt(this,i),r&&nt()},e}(),Kt=function(e){function t(t,n,r,o){void 0===r&&(r="ObservableArray@"+s()),void 0===o&&(o=!1);var i=e.call(this)||this,a=new Ut(r,n,i,o);if(m(i,"$mobx",a),t&&t.length){var u=xe(!0);i.spliceWithArray(0,0,t),Te(u)}return Ht&&Object.defineProperty(a.array,"0",qt),i}return I(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=e>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,P=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,M=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},A={};function I(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(A[e]=o),t&&(A[t[0]]=function(){return D(o.apply(this,arguments),t[1],t[2])}),n&&(A[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function z(e,t){return e.isValid()?(t=F(t,e.localeData()),L[t]=L[t]||function(e){var t,n,r,o=e.match(R);for(t=0,n=o.length;t=0&&M.test(e);)e=e.replace(M,r),M.lastIndex=0,n-=1;return e}var Y={};function N(e,t){var n=e.toLowerCase();Y[n]=Y[n+"s"]=Y[t]=e}function B(e){return"string"==typeof e?Y[e]||Y[e.toLowerCase()]:void 0}function H(e){var t,n,r={};for(n in e)u(e,n)&&(t=B(n))&&(r[t]=e[n]);return r}var V={};function W(e,t){V[e]=t}function U(e){return e%4==0&&e%100!=0||e%400==0}function K(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function q(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=K(t)),n}function $(e,t){return function(n){return null!=n?(Z(this,e,n),o.updateOffset(this,t),this):G(this,e)}}function G(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Z(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&U(e.year())&&1===e.month()&&29===e.date()?(n=q(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Oe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var J,Q=/\d/,X=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,oe=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,ae=/\d{1,3}/,ue=/\d{1,4}/,se=/[+-]?\d{1,6}/,le=/\d+/,ce=/[+-]?\d+/,fe=/Z|[+-]\d\d:?\d\d/gi,pe=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function he(e,t,n){J[e]=C(t)?t:function(e,r){return e&&n?n:t}}function ye(e,t){return u(J,e)?J[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={};var be,ve={};function ge(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=q(e)}),n=0;n68?1900:2e3)};var Me=$("FullYear",!0);function Le(e,t,n,r,o,i,a){var u;return e<100&&e>=0?(u=new Date(e+400,t,n,r,o,i,a),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,n,r,o,i,a),u}function Ae(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ie(e,t,n){var r=7+t-n;return-(7+Ae(e,0,r).getUTCDay()-t)%7+r-1}function ze(e,t,n,r,o){var i,a,u=1+7*(t-1)+(7+n-r)%7+Ie(e,r,o);return u<=0?a=Re(i=e-1)+u:u>Re(e)?(i=e+1,a=u-Re(e)):(i=e,a=u),{year:i,dayOfYear:a}}function Fe(e,t,n){var r,o,i=Ie(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+Ye(o=e.year()-1,t,n):a>Ye(e.year(),t,n)?(r=a-Ye(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Ye(e,t,n){var r=Ie(e,t,n),o=Ie(e+1,t,n);return(Re(e)-r+o)/7}function Ne(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),W("week",5),W("isoWeek",5),he("w",re),he("ww",re,X),he("W",re),he("WW",re,X),_e(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=q(e)})),I("d",0,"do","day"),I("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),I("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),I("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),he("d",re),he("e",re),he("E",re),he("dd",(function(e,t){return t.weekdaysMinRegex(e)})),he("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),he("dddd",(function(e,t){return t.weekdaysRegex(e)})),_e(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:y(n).invalidWeekday=e})),_e(["d","e","E"],(function(e,t,n,r){t[r]=q(e)}));var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ve="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),We=de,Ue=de,Ke=de;function qe(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=be.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=be.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=be.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=be.call(this._weekdaysParse,a))||-1!==(o=be.call(this._shortWeekdaysParse,a))||-1!==(o=be.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=be.call(this._shortWeekdaysParse,a))||-1!==(o=be.call(this._weekdaysParse,a))||-1!==(o=be.call(this._minWeekdaysParse,a))?o:null:-1!==(o=be.call(this._minWeekdaysParse,a))||-1!==(o=be.call(this._weekdaysParse,a))||-1!==(o=be.call(this._shortWeekdaysParse,a))?o:null}function $e(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],u=[],s=[],l=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=me(this.weekdaysMin(n,"")),o=me(this.weekdaysShort(n,"")),i=me(this.weekdays(n,"")),a.push(r),u.push(o),s.push(i),l.push(r),l.push(o),l.push(i);a.sort(e),u.sort(e),s.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ge(){return this.hours()%12||12}function Ze(e,t){I(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Je(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Ge),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+Ge.apply(this)+D(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Ge.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),Ze("a",!0),Ze("A",!1),N("hour","h"),W("hour",13),he("a",Je),he("A",Je),he("H",re),he("h",re),he("k",re),he("HH",re,X),he("hh",re,X),he("kk",re,X),he("hmm",oe),he("hmmss",ie),he("Hmm",oe),he("Hmmss",ie),ge(["H","HH"],3),ge(["k","kk"],(function(e,t,n){var r=q(e);t[3]=24===r?0:r})),ge(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ge(["h","hh"],(function(e,t,n){t[3]=q(e),y(n).bigHour=!0})),ge("hmm",(function(e,t,n){var r=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r)),y(n).bigHour=!0})),ge("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r,2)),t[5]=q(e.substr(o)),y(n).bigHour=!0})),ge("Hmm",(function(e,t,n){var r=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r))})),ge("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r,2)),t[5]=q(e.substr(o))}));var Qe,Xe=$("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Se,monthsShort:ke,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:Ve,weekdaysShort:He,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=it(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(o,n)>=t-1)break;t--}i++}return Qe}(e)}function lt(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Oe(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,y(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),y(e)._overflowWeeks&&-1===t&&(t=7),y(e)._overflowWeekday&&-1===t&&(t=8),y(e).overflow=t),e}var ct=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,dt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ht=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yt=/^\/?Date\((-?\d+)/i,mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,bt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,n,r,o,i,a,u=e._i,s=ct.exec(u)||ft.exec(u);if(s){for(y(e).iso=!0,t=0,n=dt.length;t7)&&(s=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,l=Fe(Et(),i,a),n=wt(t.gg,e._a[0],l.year),r=wt(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(s=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(s=!0)):o=i),r<1||r>Ye(n,i,a)?y(e)._overflowWeeks=!0:null!=s?y(e)._overflowWeekday=!0:(u=ze(n,r,o,i,a),e._a[0]=u.year,e._dayOfYear=u.dayOfYear)}(e),null!=e._dayOfYear&&(a=wt(e._a[0],r[0]),(e._dayOfYear>Re(a)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=Ae(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=u[t]=r[t];for(;t<7;t++)e._a[t]=u[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ae:Le).apply(null,u),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(y(e).weekdayMismatch=!0)}}function St(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],y(e).empty=!0;var t,n,r,i,a,u,s=""+e._i,l=s.length,c=0;for(r=F(e._f,e._locale).match(R)||[],t=0;t0&&y(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),A[i]?(n?y(e).empty=!1:y(e).unusedTokens.push(i),we(i,n,e)):e._strict&&!n&&y(e).unusedTokens.push(i);y(e).charsLeftOver=l-c,s.length>0&&y(e).unusedInput.push(s),e._a[3]<=12&&!0===y(e).bigHour&&e._a[3]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(u=y(e).era)&&(e._a[0]=e._locale.erasConvertYear(u,e._a[0])),Ot(e),lt(e)}else _t(e);else vt(e)}function kt(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),O(t)?new w(lt(t)):(f(t)?e._d=t:i(n)?function(e){var t,n,r,o,i,a,u=!1;if(0===e._f.length)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:b()}));function xt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Et();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function on(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function an(e,t){return t.erasAbbrRegex(e)}function un(){var e,t,n=[],r=[],o=[],i=[],a=this.eras();for(e=0,t=a.length;e(i=Ye(e,r,o))&&(t=i),cn.call(this,e,t,n,r,o))}function cn(e,t,n,r,o){var i=ze(e,t,n,r,o),a=Ae(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),he("N",an),he("NN",an),he("NNN",an),he("NNNN",(function(e,t){return t.erasNameRegex(e)})),he("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ge(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?y(n).era=o:y(n).invalidEra=e})),he("y",le),he("yy",le),he("yyy",le),he("yyyy",le),he("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),ge(["y","yy","yyy","yyyy"],0),ge(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,o):t[0]=parseInt(e,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),he("G",ce),he("g",ce),he("GG",re,X),he("gg",re,X),he("GGGG",ue,te),he("gggg",ue,te),he("GGGGG",se,ne),he("ggggg",se,ne),_e(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=q(e)})),_e(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),N("quarter","Q"),W("quarter",7),he("Q",Q),ge("Q",(function(e,t){t[1]=3*(q(e)-1)})),I("D",["DD",2],"Do","date"),N("date","D"),W("date",9),he("D",re),he("DD",re,X),he("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],2),ge("Do",(function(e,t){t[2]=q(e.match(re)[0])}));var fn=$("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),W("dayOfYear",4),he("DDD",ae),he("DDDD",ee),ge(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=q(e)})),I("m",["mm",2],0,"minute"),N("minute","m"),W("minute",14),he("m",re),he("mm",re,X),ge(["m","mm"],4);var pn=$("Minutes",!1);I("s",["ss",2],0,"second"),N("second","s"),W("second",15),he("s",re),he("ss",re,X),ge(["s","ss"],5);var dn,hn,yn=$("Seconds",!1);for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),N("millisecond","ms"),W("millisecond",16),he("S",ae,Q),he("SS",ae,X),he("SSS",ae,ee),dn="SSSS";dn.length<=9;dn+="S")he(dn,le);function mn(e,t){t[6]=q(1e3*("0."+e))}for(dn="S";dn.length<=9;dn+="S")ge(dn,mn);hn=$("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var bn=w.prototype;function vn(e){return e}bn.add=qt,bn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Zt(arguments[0])?(e=arguments[0],t=void 0):Jt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Et(),r=zt(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(C(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Et(n)))},bn.clone=function(){return new w(this)},bn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=zt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=B(t)){case"year":i=Qt(this,r)/12;break;case"month":i=Qt(this,r);break;case"quarter":i=Qt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:K(i)},bn.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?on:rn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},bn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)},bn.from=function(e,t){return this.isValid()&&(O(e)&&e.isValid()||Et(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},bn.fromNow=function(e){return this.from(Et(),e)},bn.to=function(e,t){return this.isValid()&&(O(e)&&e.isValid()||Et(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},bn.toNow=function(e){return this.to(Et(),e)},bn.get=function(e){return C(this[e=B(e)])?this[e]():this},bn.invalidAt=function(){return y(this).overflow},bn.isAfter=function(e,t){var n=O(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},bn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(bn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),bn.toJSON=function(){return this.isValid()?this.toISOString():null},bn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},bn.unix=function(){return Math.floor(this.valueOf()/1e3)},bn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},bn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},bn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},bn.isLocal=function(){return!!this.isValid()&&!this._isUTC},bn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},bn.isUtc=Yt,bn.isUTC=Yt,bn.zoneAbbr=function(){return this._isUTC?"UTC":""},bn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},bn.dates=k("dates accessor is deprecated. Use date instead.",fn),bn.months=k("months accessor is deprecated. Use month instead",Te),bn.years=k("years accessor is deprecated. Use year instead",Me),bn.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),bn.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=kt(t))._a?(e=t._isUTC?h(t._a):Et(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted}));var gn=T.prototype;function _n(e,t,n,r){var o=st(),i=h().set(r,t);return o[n](i,e)}function wn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return _n(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=_n(e,r,n,"month");return o}function On(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var o,i=st(),a=e?i._week.dow:0,u=[];if(null!=n)return _n(t,(n+a)%7,r,"day");for(o=0;o<7;o++)u[o]=_n(t,(o+a)%7,r,"day");return u}gn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return C(r)?r.call(t,n):r},gn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},gn.invalidDate=function(){return this._invalidDate},gn.ordinal=function(e){return this._ordinal.replace("%d",e)},gn.preparse=vn,gn.postformat=vn,gn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return C(o)?o(e,t,n,r):o.replace(/%d/i,e)},gn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)},gn.set=function(e){var t,n;for(n in e)u(e,n)&&(C(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gn.eras=function(e,t){var n,r,i,a=this._eras||st("en")._eras;for(n=0,r=a.length;n=0)return s[r]},gn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n},gn.erasAbbrRegex=function(e){return u(this,"_erasAbbrRegex")||un.call(this),e?this._erasAbbrRegex:this._erasRegex},gn.erasNameRegex=function(e){return u(this,"_erasNameRegex")||un.call(this),e?this._erasNameRegex:this._erasRegex},gn.erasNarrowRegex=function(e){return u(this,"_erasNarrowRegex")||un.call(this),e?this._erasNarrowRegex:this._erasRegex},gn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pe).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},gn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pe.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return Ce.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},gn.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||De.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=je),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},gn.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||De.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Ee),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},gn.week=function(e){return Fe(e,this._week.dow,this._week.doy).week},gn.firstDayOfYear=function(){return this._week.doy},gn.firstDayOfWeek=function(){return this._week.dow},gn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ne(n,this._week.dow):e?n[e.day()]:n},gn.weekdaysMin=function(e){return!0===e?Ne(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},gn.weekdaysShort=function(e){return!0===e?Ne(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},gn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return qe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},gn.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=We),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},gn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ue),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ke),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},gn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},at("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===q(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=k("moment.lang is deprecated. Use moment.locale instead.",at),o.langData=k("moment.langData is deprecated. Use moment.localeData instead.",st);var Sn=Math.abs;function kn(e,t,n,r){var o=Ht(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Pn(e){return e<0?Math.floor(e):Math.ceil(e)}function En(e){return 4800*e/146097}function jn(e){return 146097*e/4800}function Cn(e){return function(){return this.as(e)}}var xn=Cn("ms"),Tn=Cn("s"),Dn=Cn("m"),Rn=Cn("h"),Mn=Cn("d"),Ln=Cn("w"),An=Cn("M"),In=Cn("Q"),zn=Cn("y");function Fn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Yn=Fn("milliseconds"),Nn=Fn("seconds"),Bn=Fn("minutes"),Hn=Fn("hours"),Vn=Fn("days"),Wn=Fn("months"),Un=Fn("years"),Kn=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function $n(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Gn=Math.abs;function Zn(e){return(e>0)-(e<0)||+e}function Jn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,u,s=Gn(this._milliseconds)/1e3,l=Gn(this._days),c=Gn(this._months),f=this.asSeconds();return f?(e=K(s/60),t=K(e/60),s%=60,e%=60,n=K(c/12),c%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",o=f<0?"-":"",i=Zn(this._months)!==Zn(f)?"-":"",a=Zn(this._days)!==Zn(f)?"-":"",u=Zn(this._milliseconds)!==Zn(f)?"-":"",o+"P"+(n?i+n+"Y":"")+(c?i+c+"M":"")+(l?a+l+"D":"")+(t||e||s?"T":"")+(t?u+t+"H":"")+(e?u+e+"M":"")+(s?u+r+"S":"")):"P0D"}var Qn=Dt.prototype;return Qn.isValid=function(){return this._isValid},Qn.abs=function(){var e=this._data;return this._milliseconds=Sn(this._milliseconds),this._days=Sn(this._days),this._months=Sn(this._months),e.milliseconds=Sn(e.milliseconds),e.seconds=Sn(e.seconds),e.minutes=Sn(e.minutes),e.hours=Sn(e.hours),e.months=Sn(e.months),e.years=Sn(e.years),this},Qn.add=function(e,t){return kn(this,e,t,1)},Qn.subtract=function(e,t){return kn(this,e,t,-1)},Qn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+En(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(jn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Qn.asMilliseconds=xn,Qn.asSeconds=Tn,Qn.asMinutes=Dn,Qn.asHours=Rn,Qn.asDays=Mn,Qn.asWeeks=Ln,Qn.asMonths=An,Qn.asQuarters=In,Qn.asYears=zn,Qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN},Qn._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,u=this._months,s=this._data;return i>=0&&a>=0&&u>=0||i<=0&&a<=0&&u<=0||(i+=864e5*Pn(jn(u)+a),a=0,u=0),s.milliseconds=i%1e3,e=K(i/1e3),s.seconds=e%60,t=K(e/60),s.minutes=t%60,n=K(t/60),s.hours=n%24,a+=K(n/24),o=K(En(a)),u+=o,a-=Pn(jn(o)),r=K(u/12),u%=12,s.days=a,s.months=u,s.years=r,this},Qn.clone=function(){return Ht(this)},Qn.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},Qn.milliseconds=Yn,Qn.seconds=Nn,Qn.minutes=Bn,Qn.hours=Hn,Qn.days=Vn,Qn.weeks=function(){return K(this.days()/7)},Qn.months=Wn,Qn.years=Un,Qn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=qn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(i=Object.assign({},qn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var o=Ht(e).abs(),i=Kn(o.as("s")),a=Kn(o.as("m")),u=Kn(o.as("h")),s=Kn(o.as("d")),l=Kn(o.as("M")),c=Kn(o.as("w")),f=Kn(o.as("y")),p=i<=n.ss&&["s",i]||i0,p[4]=r,$n.apply(null,p)}(this,!o,i,n),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},Qn.toISOString=Jn,Qn.toString=Jn,Qn.toJSON=Jn,Qn.locale=Xt,Qn.localeData=tn,Qn.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Jn),Qn.lang=en,I("X",0,0,"unix"),I("x",0,0,"valueOf"),he("x",ce),he("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ge("x",(function(e,t,n){n._d=new Date(q(e))})), +*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,P=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,M=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},A={};function I(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(A[e]=o),t&&(A[t[0]]=function(){return D(o.apply(this,arguments),t[1],t[2])}),n&&(A[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function z(e,t){return e.isValid()?(t=F(t,e.localeData()),L[t]=L[t]||function(e){var t,n,r,o=e.match(R);for(t=0,n=o.length;t=0&&M.test(e);)e=e.replace(M,r),M.lastIndex=0,n-=1;return e}var Y={};function N(e,t){var n=e.toLowerCase();Y[n]=Y[n+"s"]=Y[t]=e}function B(e){return"string"==typeof e?Y[e]||Y[e.toLowerCase()]:void 0}function H(e){var t,n,r={};for(n in e)u(e,n)&&(t=B(n))&&(r[t]=e[n]);return r}var V={};function W(e,t){V[e]=t}function U(e){return e%4==0&&e%100!=0||e%400==0}function K(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function q(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=K(t)),n}function $(e,t){return function(n){return null!=n?(Z(this,e,n),o.updateOffset(this,t),this):G(this,e)}}function G(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Z(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&U(e.year())&&1===e.month()&&29===e.date()?(n=q(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Oe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var J,Q=/\d/,X=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,oe=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,ae=/\d{1,3}/,ue=/\d{1,4}/,se=/[+-]?\d{1,6}/,le=/\d+/,ce=/[+-]?\d+/,fe=/Z|[+-]\d\d:?\d\d/gi,pe=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function he(e,t,n){J[e]=C(t)?t:function(e,r){return e&&n?n:t}}function ye(e,t){return u(J,e)?J[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={};var be,ve={};function ge(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=q(e)}),n=0;n68?1900:2e3)};var Me=$("FullYear",!0);function Le(e,t,n,r,o,i,a){var u;return e<100&&e>=0?(u=new Date(e+400,t,n,r,o,i,a),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,n,r,o,i,a),u}function Ae(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ie(e,t,n){var r=7+t-n;return-(7+Ae(e,0,r).getUTCDay()-t)%7+r-1}function ze(e,t,n,r,o){var i,a,u=1+7*(t-1)+(7+n-r)%7+Ie(e,r,o);return u<=0?a=Re(i=e-1)+u:u>Re(e)?(i=e+1,a=u-Re(e)):(i=e,a=u),{year:i,dayOfYear:a}}function Fe(e,t,n){var r,o,i=Ie(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+Ye(o=e.year()-1,t,n):a>Ye(e.year(),t,n)?(r=a-Ye(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Ye(e,t,n){var r=Ie(e,t,n),o=Ie(e+1,t,n);return(Re(e)-r+o)/7}function Ne(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),W("week",5),W("isoWeek",5),he("w",re),he("ww",re,X),he("W",re),he("WW",re,X),_e(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=q(e)})),I("d",0,"do","day"),I("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),I("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),I("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),he("d",re),he("e",re),he("E",re),he("dd",(function(e,t){return t.weekdaysMinRegex(e)})),he("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),he("dddd",(function(e,t){return t.weekdaysRegex(e)})),_e(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:y(n).invalidWeekday=e})),_e(["d","e","E"],(function(e,t,n,r){t[r]=q(e)}));var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ve="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),We=de,Ue=de,Ke=de;function qe(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=be.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=be.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=be.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=be.call(this._weekdaysParse,a))||-1!==(o=be.call(this._shortWeekdaysParse,a))||-1!==(o=be.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=be.call(this._shortWeekdaysParse,a))||-1!==(o=be.call(this._weekdaysParse,a))||-1!==(o=be.call(this._minWeekdaysParse,a))?o:null:-1!==(o=be.call(this._minWeekdaysParse,a))||-1!==(o=be.call(this._weekdaysParse,a))||-1!==(o=be.call(this._shortWeekdaysParse,a))?o:null}function $e(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],u=[],s=[],l=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=me(this.weekdaysMin(n,"")),o=me(this.weekdaysShort(n,"")),i=me(this.weekdays(n,"")),a.push(r),u.push(o),s.push(i),l.push(r),l.push(o),l.push(i);a.sort(e),u.sort(e),s.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ge(){return this.hours()%12||12}function Ze(e,t){I(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Je(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Ge),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+Ge.apply(this)+D(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Ge.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),Ze("a",!0),Ze("A",!1),N("hour","h"),W("hour",13),he("a",Je),he("A",Je),he("H",re),he("h",re),he("k",re),he("HH",re,X),he("hh",re,X),he("kk",re,X),he("hmm",oe),he("hmmss",ie),he("Hmm",oe),he("Hmmss",ie),ge(["H","HH"],3),ge(["k","kk"],(function(e,t,n){var r=q(e);t[3]=24===r?0:r})),ge(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ge(["h","hh"],(function(e,t,n){t[3]=q(e),y(n).bigHour=!0})),ge("hmm",(function(e,t,n){var r=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r)),y(n).bigHour=!0})),ge("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r,2)),t[5]=q(e.substr(o)),y(n).bigHour=!0})),ge("Hmm",(function(e,t,n){var r=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r))})),ge("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r,2)),t[5]=q(e.substr(o))}));var Qe,Xe=$("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ke,monthsShort:Se,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:Ve,weekdaysShort:He,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=it(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(o,n)>=t-1)break;t--}i++}return Qe}(e)}function lt(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Oe(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,y(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),y(e)._overflowWeeks&&-1===t&&(t=7),y(e)._overflowWeekday&&-1===t&&(t=8),y(e).overflow=t),e}var ct=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,dt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ht=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yt=/^\/?Date\((-?\d+)/i,mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,bt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,n,r,o,i,a,u=e._i,s=ct.exec(u)||ft.exec(u);if(s){for(y(e).iso=!0,t=0,n=dt.length;t7)&&(s=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,l=Fe(Et(),i,a),n=wt(t.gg,e._a[0],l.year),r=wt(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(s=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(s=!0)):o=i),r<1||r>Ye(n,i,a)?y(e)._overflowWeeks=!0:null!=s?y(e)._overflowWeekday=!0:(u=ze(n,r,o,i,a),e._a[0]=u.year,e._dayOfYear=u.dayOfYear)}(e),null!=e._dayOfYear&&(a=wt(e._a[0],r[0]),(e._dayOfYear>Re(a)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=Ae(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=u[t]=r[t];for(;t<7;t++)e._a[t]=u[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ae:Le).apply(null,u),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(y(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],y(e).empty=!0;var t,n,r,i,a,u,s=""+e._i,l=s.length,c=0;for(r=F(e._f,e._locale).match(R)||[],t=0;t0&&y(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),A[i]?(n?y(e).empty=!1:y(e).unusedTokens.push(i),we(i,n,e)):e._strict&&!n&&y(e).unusedTokens.push(i);y(e).charsLeftOver=l-c,s.length>0&&y(e).unusedInput.push(s),e._a[3]<=12&&!0===y(e).bigHour&&e._a[3]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(u=y(e).era)&&(e._a[0]=e._locale.erasConvertYear(u,e._a[0])),Ot(e),lt(e)}else _t(e);else vt(e)}function St(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),O(t)?new w(lt(t)):(f(t)?e._d=t:i(n)?function(e){var t,n,r,o,i,a,u=!1;if(0===e._f.length)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:b()}));function xt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Et();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function on(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function an(e,t){return t.erasAbbrRegex(e)}function un(){var e,t,n=[],r=[],o=[],i=[],a=this.eras();for(e=0,t=a.length;e(i=Ye(e,r,o))&&(t=i),cn.call(this,e,t,n,r,o))}function cn(e,t,n,r,o){var i=ze(e,t,n,r,o),a=Ae(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),he("N",an),he("NN",an),he("NNN",an),he("NNNN",(function(e,t){return t.erasNameRegex(e)})),he("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ge(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?y(n).era=o:y(n).invalidEra=e})),he("y",le),he("yy",le),he("yyy",le),he("yyyy",le),he("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),ge(["y","yy","yyy","yyyy"],0),ge(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,o):t[0]=parseInt(e,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),he("G",ce),he("g",ce),he("GG",re,X),he("gg",re,X),he("GGGG",ue,te),he("gggg",ue,te),he("GGGGG",se,ne),he("ggggg",se,ne),_e(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=q(e)})),_e(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),N("quarter","Q"),W("quarter",7),he("Q",Q),ge("Q",(function(e,t){t[1]=3*(q(e)-1)})),I("D",["DD",2],"Do","date"),N("date","D"),W("date",9),he("D",re),he("DD",re,X),he("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],2),ge("Do",(function(e,t){t[2]=q(e.match(re)[0])}));var fn=$("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),W("dayOfYear",4),he("DDD",ae),he("DDDD",ee),ge(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=q(e)})),I("m",["mm",2],0,"minute"),N("minute","m"),W("minute",14),he("m",re),he("mm",re,X),ge(["m","mm"],4);var pn=$("Minutes",!1);I("s",["ss",2],0,"second"),N("second","s"),W("second",15),he("s",re),he("ss",re,X),ge(["s","ss"],5);var dn,hn,yn=$("Seconds",!1);for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),N("millisecond","ms"),W("millisecond",16),he("S",ae,Q),he("SS",ae,X),he("SSS",ae,ee),dn="SSSS";dn.length<=9;dn+="S")he(dn,le);function mn(e,t){t[6]=q(1e3*("0."+e))}for(dn="S";dn.length<=9;dn+="S")ge(dn,mn);hn=$("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var bn=w.prototype;function vn(e){return e}bn.add=qt,bn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Zt(arguments[0])?(e=arguments[0],t=void 0):Jt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Et(),r=zt(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(C(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Et(n)))},bn.clone=function(){return new w(this)},bn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=zt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=B(t)){case"year":i=Qt(this,r)/12;break;case"month":i=Qt(this,r);break;case"quarter":i=Qt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:K(i)},bn.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?on:rn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},bn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)},bn.from=function(e,t){return this.isValid()&&(O(e)&&e.isValid()||Et(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},bn.fromNow=function(e){return this.from(Et(),e)},bn.to=function(e,t){return this.isValid()&&(O(e)&&e.isValid()||Et(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},bn.toNow=function(e){return this.to(Et(),e)},bn.get=function(e){return C(this[e=B(e)])?this[e]():this},bn.invalidAt=function(){return y(this).overflow},bn.isAfter=function(e,t){var n=O(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},bn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(bn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),bn.toJSON=function(){return this.isValid()?this.toISOString():null},bn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},bn.unix=function(){return Math.floor(this.valueOf()/1e3)},bn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},bn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},bn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},bn.isLocal=function(){return!!this.isValid()&&!this._isUTC},bn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},bn.isUtc=Yt,bn.isUTC=Yt,bn.zoneAbbr=function(){return this._isUTC?"UTC":""},bn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},bn.dates=S("dates accessor is deprecated. Use date instead.",fn),bn.months=S("months accessor is deprecated. Use month instead",Te),bn.years=S("years accessor is deprecated. Use year instead",Me),bn.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),bn.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=St(t))._a?(e=t._isUTC?h(t._a):Et(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted}));var gn=T.prototype;function _n(e,t,n,r){var o=st(),i=h().set(r,t);return o[n](i,e)}function wn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return _n(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=_n(e,r,n,"month");return o}function On(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var o,i=st(),a=e?i._week.dow:0,u=[];if(null!=n)return _n(t,(n+a)%7,r,"day");for(o=0;o<7;o++)u[o]=_n(t,(o+a)%7,r,"day");return u}gn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return C(r)?r.call(t,n):r},gn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},gn.invalidDate=function(){return this._invalidDate},gn.ordinal=function(e){return this._ordinal.replace("%d",e)},gn.preparse=vn,gn.postformat=vn,gn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return C(o)?o(e,t,n,r):o.replace(/%d/i,e)},gn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)},gn.set=function(e){var t,n;for(n in e)u(e,n)&&(C(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gn.eras=function(e,t){var n,r,i,a=this._eras||st("en")._eras;for(n=0,r=a.length;n=0)return s[r]},gn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n},gn.erasAbbrRegex=function(e){return u(this,"_erasAbbrRegex")||un.call(this),e?this._erasAbbrRegex:this._erasRegex},gn.erasNameRegex=function(e){return u(this,"_erasNameRegex")||un.call(this),e?this._erasNameRegex:this._erasRegex},gn.erasNarrowRegex=function(e){return u(this,"_erasNarrowRegex")||un.call(this),e?this._erasNarrowRegex:this._erasRegex},gn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pe).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},gn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pe.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return Ce.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},gn.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||De.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=je),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},gn.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||De.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Ee),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},gn.week=function(e){return Fe(e,this._week.dow,this._week.doy).week},gn.firstDayOfYear=function(){return this._week.doy},gn.firstDayOfWeek=function(){return this._week.dow},gn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ne(n,this._week.dow):e?n[e.day()]:n},gn.weekdaysMin=function(e){return!0===e?Ne(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},gn.weekdaysShort=function(e){return!0===e?Ne(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},gn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return qe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},gn.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=We),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},gn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ue),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ke),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},gn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},at("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===q(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=S("moment.lang is deprecated. Use moment.locale instead.",at),o.langData=S("moment.langData is deprecated. Use moment.localeData instead.",st);var kn=Math.abs;function Sn(e,t,n,r){var o=Ht(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Pn(e){return e<0?Math.floor(e):Math.ceil(e)}function En(e){return 4800*e/146097}function jn(e){return 146097*e/4800}function Cn(e){return function(){return this.as(e)}}var xn=Cn("ms"),Tn=Cn("s"),Dn=Cn("m"),Rn=Cn("h"),Mn=Cn("d"),Ln=Cn("w"),An=Cn("M"),In=Cn("Q"),zn=Cn("y");function Fn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Yn=Fn("milliseconds"),Nn=Fn("seconds"),Bn=Fn("minutes"),Hn=Fn("hours"),Vn=Fn("days"),Wn=Fn("months"),Un=Fn("years"),Kn=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function $n(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Gn=Math.abs;function Zn(e){return(e>0)-(e<0)||+e}function Jn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,u,s=Gn(this._milliseconds)/1e3,l=Gn(this._days),c=Gn(this._months),f=this.asSeconds();return f?(e=K(s/60),t=K(e/60),s%=60,e%=60,n=K(c/12),c%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",o=f<0?"-":"",i=Zn(this._months)!==Zn(f)?"-":"",a=Zn(this._days)!==Zn(f)?"-":"",u=Zn(this._milliseconds)!==Zn(f)?"-":"",o+"P"+(n?i+n+"Y":"")+(c?i+c+"M":"")+(l?a+l+"D":"")+(t||e||s?"T":"")+(t?u+t+"H":"")+(e?u+e+"M":"")+(s?u+r+"S":"")):"P0D"}var Qn=Dt.prototype;return Qn.isValid=function(){return this._isValid},Qn.abs=function(){var e=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),e.milliseconds=kn(e.milliseconds),e.seconds=kn(e.seconds),e.minutes=kn(e.minutes),e.hours=kn(e.hours),e.months=kn(e.months),e.years=kn(e.years),this},Qn.add=function(e,t){return Sn(this,e,t,1)},Qn.subtract=function(e,t){return Sn(this,e,t,-1)},Qn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+En(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(jn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Qn.asMilliseconds=xn,Qn.asSeconds=Tn,Qn.asMinutes=Dn,Qn.asHours=Rn,Qn.asDays=Mn,Qn.asWeeks=Ln,Qn.asMonths=An,Qn.asQuarters=In,Qn.asYears=zn,Qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN},Qn._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,u=this._months,s=this._data;return i>=0&&a>=0&&u>=0||i<=0&&a<=0&&u<=0||(i+=864e5*Pn(jn(u)+a),a=0,u=0),s.milliseconds=i%1e3,e=K(i/1e3),s.seconds=e%60,t=K(e/60),s.minutes=t%60,n=K(t/60),s.hours=n%24,a+=K(n/24),o=K(En(a)),u+=o,a-=Pn(jn(o)),r=K(u/12),u%=12,s.days=a,s.months=u,s.years=r,this},Qn.clone=function(){return Ht(this)},Qn.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},Qn.milliseconds=Yn,Qn.seconds=Nn,Qn.minutes=Bn,Qn.hours=Hn,Qn.days=Vn,Qn.weeks=function(){return K(this.days()/7)},Qn.months=Wn,Qn.years=Un,Qn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=qn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(i=Object.assign({},qn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var o=Ht(e).abs(),i=Kn(o.as("s")),a=Kn(o.as("m")),u=Kn(o.as("h")),s=Kn(o.as("d")),l=Kn(o.as("M")),c=Kn(o.as("w")),f=Kn(o.as("y")),p=i<=n.ss&&["s",i]||i0,p[4]=r,$n.apply(null,p)}(this,!o,i,n),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},Qn.toISOString=Jn,Qn.toString=Jn,Qn.toJSON=Jn,Qn.locale=Xt,Qn.localeData=tn,Qn.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Jn),Qn.lang=en,I("X",0,0,"unix"),I("x",0,0,"valueOf"),he("x",ce),he("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ge("x",(function(e,t,n){n._d=new Date(q(e))})), //! moment.js o.version="2.29.1",t=Et,o.fn=bn,o.min=function(){var e=[].slice.call(arguments,0);return xt("isBefore",e)},o.max=function(){var e=[].slice.call(arguments,0);return xt("isAfter",e)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=h,o.unix=function(e){return Et(1e3*e)},o.months=function(e,t){return wn(e,t,"months")},o.isDate=f,o.locale=at,o.invalid=b,o.duration=Ht,o.isMoment=O,o.weekdays=function(e,t,n){return On(e,t,n,"weekdays")},o.parseZone=function(){return Et.apply(null,arguments).parseZone()},o.localeData=st,o.isDuration=Rt,o.monthsShort=function(e,t){return wn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return On(e,t,n,"weekdaysMin")},o.defineLocale=ut,o.updateLocale=function(e,t){if(null!=t){var n,r,o=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(x(tt[e]._config,t)):(null!=(r=it(e))&&(o=r._config),t=x(o,t),null==r&&(t.abbr=e),(n=new T(t)).parentLocale=tt[e],tt[e]=n),at(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===at()&&at(e)):null!=tt[e]&&delete tt[e]);return tt[e]},o.locales=function(){return P(tt)},o.weekdaysShort=function(e,t,n){return On(e,t,n,"weekdaysShort")},o.normalizeUnits=B,o.relativeTimeRounding=function(e){return void 0===e?Kn:"function"==typeof e&&(Kn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==qn[e]&&(void 0===t?qn[e]:(qn[e]=t,"s"===e&&(qn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=bn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(82)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=l(n(520)),o=l(n(596)),i=l(n(622)),a=l(n(623)),u=l(n(624)),s=l(n(625));function l(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=u.default,t.loop=s.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a=0&&t<=i.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(o=t,!1!==r&&function(e){var t=(n[e]||"silent").toUpperCase();if("undefined"!=typeof window&&u){try{return void(window.localStorage[u]=t)}catch(e){}try{window.document.cookie=encodeURIComponent(u)+"="+t+";"}catch(e){}}}(t),a.call(i,t,e),"undefined"==typeof console&&t1&&void 0!==arguments[1]?arguments[1]:{},n=this.createExpression(e);return n.eval(t)}},{key:"evalSync",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.createExpression(e);return n.evalSync(t)}},{key:"expr",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r":".","?":"/","|":"\\"},f={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p=1;p<20;++p)s[111+p]="f"+p;for(p=0;p<=9;++p)s[p+96]=p.toString();v.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},v.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},v.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},v.prototype.reset=function(){return this._callbacks={},this._directMap={},this},v.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function e(t,n){return null!==t&&t!==i&&(t===n||e(t.parentNode,n))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},v.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},v.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);u=null},v.init=function(){var e=v(i);for(var t in e)"_"!==t.charAt(0)&&(v[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},v.init(),o.Mousetrap=v,e.exports&&(e.exports=v),void 0===(r=function(){return v}.call(t,n,t,e))||(e.exports=r)}function d(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function h(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return s[e.which]?s[e.which]:l[e.which]?l[e.which]:String.fromCharCode(e.which).toLowerCase()}function y(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function m(e,t,n){return n||(n=function(){if(!u)for(var e in u={},s)e>95&&e<112||s.hasOwnProperty(e)&&(u[s[e]]=e);return u}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function b(e,t){var n,r,o,i=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o1?p(e,u,n,r):(a=b(e,r),t._callbacks[a.key]=t._callbacks[a.key]||[],l(a.key,a.modifiers,{type:a.action},o,e,i),t._callbacks[a.key][o?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:o,level:i,combo:e}))}t._handleKey=function(e,t,n){var r,o=l(e,t,n),i={},f=0,p=!1;for(r=0;r0?Math.floor(e):Math.ceil(e)};function R(e,t,n){return e instanceof T?e:m(e)?new T(e[0],e[1]):null==e?e:"object"==typeof e&&"x"in e&&"y"in e?new T(e.x,e.y):new T(e,t,n)}function M(e,t){if(e)for(var n=t?[e,t]:e,r=0,o=n.length;r=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=A(e);var t=this.min,n=this.max,r=e.min,o=e.max,i=o.x>=t.x&&r.x<=n.x,a=o.y>=t.y&&r.y<=n.y;return i&&a},overlaps:function(e){e=A(e);var t=this.min,n=this.max,r=e.min,o=e.max,i=o.x>t.x&&r.xt.y&&r.y=r.lat&&n.lat<=o.lat&&t.lng>=r.lng&&n.lng<=o.lng},intersects:function(e){e=z(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),o=e.getNorthEast(),i=o.lat>=t.lat&&r.lat<=n.lat,a=o.lng>=t.lng&&r.lng<=n.lng;return i&&a},overlaps:function(e){e=z(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),o=e.getNorthEast(),i=o.lat>t.lat&&r.latt.lng&&r.lng1,Pe=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",s,t),window.removeEventListener("testPassiveEventSupport",s,t)}catch(e){}return e}(),Ee=!!document.createElement("canvas").getContext,je=!(!document.createElementNS||!$("svg").createSVGRect),Ce=!je&&function(){try{var e=document.createElement("div");e.innerHTML='';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"==typeof t.adj}catch(e){return!1}}();function xe(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var Te={ie:J,ielt9:Q,edge:X,webkit:ee,android:te,android23:ne,androidStock:oe,opera:ie,chrome:ae,gecko:ue,safari:se,phantom:le,opera12:ce,win:fe,ie3d:pe,webkit3d:de,gecko3d:he,any3d:ye,mobile:me,mobileWebkit:be,mobileWebkit3d:ve,msPointer:ge,pointer:_e,touch:we,mobileOpera:Oe,mobileGecko:Se,retina:ke,passiveEvents:Pe,canvas:Ee,svg:je,vml:Ce},De=ge?"MSPointerDown":"pointerdown",Re=ge?"MSPointerMove":"pointermove",Me=ge?"MSPointerUp":"pointerup",Le=ge?"MSPointerCancel":"pointercancel",Ae={},Ie=!1;function ze(e,t,n,o){return"touchstart"===t?function(e,t,n){var o=r((function(e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Lt(e),Be(e,t)}));e["_leaflet_touchstart"+n]=o,e.addEventListener(De,o,!1),Ie||(document.addEventListener(De,Fe,!0),document.addEventListener(Re,Ye,!0),document.addEventListener(Me,Ne,!0),document.addEventListener(Le,Ne,!0),Ie=!0)}(e,n,o):"touchmove"===t?function(e,t,n){var r=function(e){e.pointerType===(e.MSPOINTER_TYPE_MOUSE||"mouse")&&0===e.buttons||Be(e,t)};e["_leaflet_touchmove"+n]=r,e.addEventListener(Re,r,!1)}(e,n,o):"touchend"===t&&function(e,t,n){var r=function(e){Be(e,t)};e["_leaflet_touchend"+n]=r,e.addEventListener(Me,r,!1),e.addEventListener(Le,r,!1)}(e,n,o),this}function Fe(e){Ae[e.pointerId]=e}function Ye(e){Ae[e.pointerId]&&(Ae[e.pointerId]=e)}function Ne(e){delete Ae[e.pointerId]}function Be(e,t){for(var n in e.touches=[],Ae)e.touches.push(Ae[n]);e.changedTouches=[e],t(e)}var He,Ve,We,Ue,Ke,qe=ge?"MSPointerDown":_e?"pointerdown":"touchstart",$e=ge?"MSPointerUp":_e?"pointerup":"touchend",Ge="_leaflet_",Ze=pt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Je=pt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Qe="webkitTransition"===Je||"OTransition"===Je?Je+"End":"transitionend";function Xe(e){return"string"==typeof e?document.getElementById(e):e}function et(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}function tt(e,t,n){var r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}function nt(e){var t=e.parentNode;t&&t.removeChild(e)}function rt(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ot(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function it(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function at(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=ct(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function ut(e,t){if(void 0!==e.classList)for(var n=f(t),r=0,o=n.length;r1)return;var t=Date.now(),n=t-(r||t);o=e.touches?e.touches[0]:e,i=n>0&&n<=250,r=t}function u(e){if(i&&!o.cancelBubble){if(_e){if("mouse"===e.pointerType)return;var n,a,u={};for(a in o)n=o[a],u[a]=n&&n.bind?n.bind(o):n;o=u}o.type="dblclick",o.button=0,t(o),r=null}}e[Ge+qe+n]=a,e[Ge+$e+n]=u,e[Ge+"dblclick"+n]=t,e.addEventListener(qe,a,!!Pe&&{passive:!1}),e.addEventListener($e,u,!!Pe&&{passive:!1}),e.addEventListener("dblclick",t,!1)}(e,a,o):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(Ct[t]||t,a,!!Pe&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(a=function(t){t=t||window.event,Ht(e,t)&&u(t)},e.addEventListener(Ct[t],a,!1)):e.addEventListener(t,u,!1):"attachEvent"in e&&e.attachEvent("on"+t,a),e[Pt]=e[Pt]||{},e[Pt][o]=a}function Tt(e,t,n,r){var o=t+i(n)+(r?"_"+i(r):""),a=e[Pt]&&e[Pt][o];if(!a)return this;_e&&0===t.indexOf("touch")?function(e,t,n){var r=e["_leaflet_"+t+n];"touchstart"===t?e.removeEventListener(De,r,!1):"touchmove"===t?e.removeEventListener(Re,r,!1):"touchend"===t&&(e.removeEventListener(Me,r,!1),e.removeEventListener(Le,r,!1))}(e,t,o):we&&"dblclick"===t&&!jt()?function(e,t){var n=e[Ge+qe+t],r=e[Ge+$e+t],o=e[Ge+"dblclick"+t];e.removeEventListener(qe,n,!!Pe&&{passive:!1}),e.removeEventListener($e,r,!!Pe&&{passive:!1}),e.removeEventListener("dblclick",o,!1)}(e,o):"removeEventListener"in e?e.removeEventListener(Ct[t]||t,a,!1):"detachEvent"in e&&e.detachEvent("on"+t,a),e[Pt][o]=null}function Dt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,Bt(e),this}function Rt(e){return xt(e,"wheel",Dt),this}function Mt(e){return kt(e,"mousedown touchstart dblclick",Dt),xt(e,"click",Nt),this}function Lt(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function At(e){return Lt(e),Dt(e),this}function It(e,t){if(!t)return new T(e.clientX,e.clientY);var n=Ot(t),r=n.boundingClientRect;return new T((e.clientX-r.left)/n.x-t.clientLeft,(e.clientY-r.top)/n.y-t.clientTop)}var zt=fe&&ae?2*window.devicePixelRatio:ue?window.devicePixelRatio:1;function Ft(e){return X?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/zt:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}var Yt={};function Nt(e){Yt[e.type]=!0}function Bt(e){var t=Yt[e.type];return Yt[e.type]=!1,t}function Ht(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(e){return!1}return n!==e}var Vt={on:kt,off:Et,stopPropagation:Dt,disableScrollPropagation:Rt,disableClickPropagation:Mt,preventDefault:Lt,stop:At,getMousePosition:It,getWheelDelta:Ft,fakeStop:Nt,skipped:Bt,isExternalTarget:Ht,addListener:kt,removeListener:Et},Wt=x.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=yt(e),this._offset=t.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=k(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;tthis.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,z(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=R((t=t||{}).paddingTopLeft||t.padding||[0,0]),r=R(t.paddingBottomRight||t.padding||[0,0]),o=this.getCenter(),i=this.project(o),a=this.project(e),u=this.getPixelBounds(),s=u.getSize().divideBy(2),l=A([u.min.add(n),u.max.subtract(r)]);if(!l.contains(a)){this._enforcingBounds=!0;var c=i.subtract(a),f=R(a.x+c.x,a.y+c.y);(a.xl.max.x)&&(f.x=i.x-c.x,c.x>0?f.x+=s.x-n.x:f.x-=s.x-r.x),(a.yl.max.y)&&(f.y=i.y-c.y,c.y>0?f.y+=s.y-n.y:f.y-=s.y-r.y),this.panTo(this.unproject(f),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=t({animate:!1,pan:!0},!0===e?{animate:!0}:e);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),i=n.divideBy(2).round(),a=o.divideBy(2).round(),u=i.subtract(a);return u.x||u.y?(e.animate&&e.pan?this.panBy(u):(e.pan&&this._rawPanBy(u),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=t({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=r(this._handleGeolocationResponse,this),o=r(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,e):navigator.geolocation.getCurrentPosition(n,o,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(e){var t=new F(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),r=this._locateOptions;if(r.setView){var o=this.getBoundsZoom(n);this.setView(t,r.maxZoom?Math.min(o,r.maxZoom):o)}var i={latlng:t,bounds:n,timestamp:e.timestamp};for(var a in e.coords)"number"==typeof e.coords[a]&&(i[a]=e.coords[a]);this.fire("locationfound",i)},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),nt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(P(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)nt(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=tt("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new I(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=z(e),n=R(n||[0,0]);var r=this.getZoom()||0,o=this.getMinZoom(),i=this.getMaxZoom(),a=e.getNorthWest(),u=e.getSouthEast(),s=this.getSize().subtract(n),l=A(this.project(u,r),this.project(a,r)).getSize(),c=ye?this.options.zoomSnap:1,f=s.x/l.x,p=s.y/l.y,d=t?Math.max(f,p):Math.min(f,p);return r=this.getScaleZoom(d,r),c&&(r=Math.round(r/(c/100))*(c/100),r=t?Math.ceil(r/c)*c:Math.floor(r/c)*c),Math.max(o,Math.min(i,r))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new T(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new M(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"==typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(Y(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(R(e),t)},layerPointToLatLng:function(e){var t=R(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(Y(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(Y(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(z(e))},distance:function(e,t){return this.options.crs.distance(Y(e),Y(t))},containerPointToLayerPoint:function(e){return R(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return R(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(R(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Y(e)))},mouseEventToContainerPoint:function(e){return It(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=Xe(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");kt(t,"scroll",this._onScroll,this),this._containerId=i(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&ye,ut(e,"leaflet-container"+(we?" leaflet-touch":"")+(ke?" leaflet-retina":"")+(Q?" leaflet-oldie":"")+(se?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=et(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ht(this._mapPane,new T(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ut(e.markerPane,"leaflet-zoom-hide"),ut(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t){ht(this._mapPane,new T(0,0));var n=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var r=this._zoom!==t;this._moveStart(r,!1)._move(e,t)._moveEnd(r),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n){void 0===t&&(t=this._zoom);var r=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),(r||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return P(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){ht(this._mapPane,this._getMapPanePos().subtract(e))},_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(e){this._targets={},this._targets[i(this._container)]=this;var t=e?Et:kt;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),ye&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){P(this._resizeRequest),this._resizeRequest=k((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,r=[],o="mouseout"===t||"mouseover"===t,a=e.target||e.srcElement,u=!1;a;){if((n=this._targets[i(a)])&&("click"===t||"preclick"===t)&&!e._simulated&&this._draggableMoved(n)){u=!0;break}if(n&&n.listens(t,!0)){if(o&&!Ht(a,e))break;if(r.push(n),o)break}if(a===this._container)break;a=a.parentNode}return r.length||u||o||!Ht(a,e)||(r=[this]),r},_handleDOMEvent:function(e){if(this._loaded&&!Bt(e)){var t=e.type;"mousedown"!==t&&"keypress"!==t&&"keyup"!==t&&"keydown"!==t||gt(e.target||e.srcElement),this._fireDOMEvent(e,t)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,n,r){if("click"===e.type){var o=t({},e);o.type="preclick",this._fireDOMEvent(o,o.type,r)}if(!e._stopped&&(r=(r||[]).concat(this._findEventTargets(e,n))).length){var i=r[0];"contextmenu"===n&&i.listens(n,!0)&&Lt(e);var a={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var u=i.getLatLng&&(!i._radius||i._radius<=10);a.containerPoint=u?this.latLngToContainerPoint(i.getLatLng()):this.mouseEventToContainerPoint(e),a.layerPoint=this.containerPointToLayerPoint(a.containerPoint),a.latlng=u?i.getLatLng():this.layerPointToLatLng(a.layerPoint)}for(var s=0;s0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=ye?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){st(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(n)||(this.panBy(n,t),0))},_createAnimProxy:function(){var e=this._proxy=tt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=Ze,n=this._proxy.style[t];dt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){nt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();dt(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),o=this._getCenterOffset(e)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(o)||(k((function(){this._moveStart(!0,!1)._animateZoom(e,t,!0)}),this),0))},_animateZoom:function(e,t,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,ut(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:o}),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&st(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),k((function(){this._moveEnd(!0)}),this))}}),Kt=j.extend({options:{position:"topright"},initialize:function(e){p(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return ut(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(nt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),qt=function(e){return new Kt(e)};Ut.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=tt("div",t+"control-container",this._container);function r(r,o){var i=t+r+" "+t+o;e[r+o]=tt("div",i,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)nt(this._controlCorners[e]);nt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var $t=Kt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(i(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n='",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(e){var t,n=document.createElement("label"),r=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=r):t=this._createRadioElement("leaflet-base-layers_"+i(this),r),this._layerControlInputs.push(t),t.layerId=i(e.layer),kt(t,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+e.name;var a=document.createElement("div");return n.appendChild(a),a.appendChild(t),a.appendChild(o),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var e,t,n=this._layerControlInputs,r=[],o=[];this._handlingClick=!0;for(var i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.checked?r.push(t):e.checked||o.push(t);for(i=0;i=0;o--)e=n[o],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&rt.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Gt=Kt.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=tt("div",t+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.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(e){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,o){var i=tt("a",n,r);return i.innerHTML=e,i.href="#",i.title=t,i.setAttribute("role","button"),i.setAttribute("aria-label",t),Mt(i),kt(i,"click",At),kt(i,"click",o,this),kt(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";st(this._zoomInButton,t),st(this._zoomOutButton,t),(this._disabled||e._zoom===e.getMinZoom())&&ut(this._zoomOutButton,t),(this._disabled||e._zoom===e.getMaxZoom())&&ut(this._zoomInButton,t)}});Ut.mergeOptions({zoomControl:!0}),Ut.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Gt,this.addControl(this.zoomControl))}));var Zt=Kt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t=tt("div","leaflet-control-scale"),n=this.options;return this._addScales(n,"leaflet-control-scale-line",t),e.on(n.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),t},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=tt("div",t,n)),e.imperial&&(this._iScale=tt("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,r,o=3.2808399*e;o>5280?(t=o/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(r=this._getRoundNum(o),this._updateScale(this._iScale,r+" ft",r/o))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),Jt=Kt.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(e){p(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=tt("div","leaflet-control-attribution"),Mt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),this._container},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(" | ")}}});Ut.mergeOptions({attributionControl:!0}),Ut.addInitHook((function(){this.options.attributionControl&&(new Jt).addTo(this)})),Kt.Layers=$t,Kt.Zoom=Gt,Kt.Scale=Zt,Kt.Attribution=Jt,qt.layers=function(e,t,n){return new $t(e,t,n)},qt.zoom=function(e){return new Gt(e)},qt.scale=function(e){return new Zt(e)},qt.attribution=function(e){return new Jt(e)};var Qt=j.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Qt.addTo=function(e,t){return e.addHandler(t,this),this};var Xt,en={Events:C},tn=we?"touchstart mousedown":"mousedown",nn={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},rn={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},on=x.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){p(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||(kt(this._dragStartTarget,tn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(on._dragging===this&&this.finishDrag(),Et(this._dragStartTarget,tn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(!e._simulated&&this._enabled&&(this._moved=!1,!at(this._element,"leaflet-zoom-anim")&&!(on._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches||(on._dragging=this,this._preventOutline&>(this._element),bt(),He(),this._moving)))){this.fire("down");var t=e.touches?e.touches[0]:e,n=wt(this._element);this._startPoint=new T(t.clientX,t.clientY),this._parentScale=Ot(n),kt(document,rn[e.type],this._onMove,this),kt(document,nn[e.type],this._onUp,this)}},_onMove:function(e){if(!e._simulated&&this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new T(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)l&&(a=u,l=s);l>r&&(n[a]=1,e(t,n,r,o,a),e(t,n,r,a,i))}(e,r,t,0,n-1);var o,i=[];for(o=0;ot&&(n.push(e[r]),o=r);var a,u,s,l;return ot.max.x&&(n|=2),e.yt.max.y&&(n|=8),n}function fn(e,t,n,r){var o,i=t.x,a=t.y,u=n.x-i,s=n.y-a,l=u*u+s*s;return l>0&&((o=((e.x-i)*u+(e.y-a)*s)/l)>1?(i=n.x,a=n.y):o>0&&(i+=u*o,a+=s*o)),u=e.x-i,s=e.y-a,r?u*u+s*s:new T(i,a)}function pn(e){return!m(e[0])||"object"!=typeof e[0][0]&&void 0!==e[0][0]}function dn(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),pn(e)}var hn={simplify:an,pointToSegmentDistance:un,closestPointOnSegment:function(e,t,n){return fn(e,t,n)},clipSegment:sn,_getEdgeIntersection:ln,_getBitCode:cn,_sqClosestPointOnSegment:fn,isFlat:pn,_flat:dn};function yn(e,t,n){var r,o,i,a,u,s,l,c,f,p=[1,4,2,8];for(o=0,l=e.length;o1e-7;s++)t=i*Math.sin(u),t=Math.pow((1-t)/(1+t),i/2),u+=l=Math.PI/2-2*Math.atan(a*t)-u;return new F(u*n,e.x*n/r)}},gn={LonLat:bn,Mercator:vn,SphericalMercator:V},_n=t({},H,{code:"EPSG:3395",projection:vn,transformation:function(){var e=.5/(Math.PI*vn.R);return U(e,.5,-e,.5)}()}),wn=t({},H,{code:"EPSG:4326",projection:bn,transformation:U(1/180,1,-1/180,.5)}),On=t({},B,{projection:bn,transformation:U(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});B.Earth=H,B.EPSG3395=_n,B.EPSG3857=K,B.EPSG900913=q,B.EPSG4326=wn,B.Simple=On;var Sn=x.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[i(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[i(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",(function(){t.off(n,this)}),this)}this.onAdd(t),this.getAttribution&&t.attributionControl&&t.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),t.fire("layeradd",{layer:this})}}});Ut.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=i(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=i(e);return this._layers[t]?(this._loaded&&e.onRemove(this),e.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(e.getAttribution()),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return!!e&&i(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?m(e)?e:[e]:[]).length;tthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()t)return a=(r-t)/n,this._map.layerPointToLatLng([i.x-a*(i.x-o.x),i.y-a*(i.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=Y(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new I,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return pn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=pn(e),r=0,o=e.length;r=2&&t[0]instanceof F&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){Mn.prototype._setLatLngs.call(this,e),pn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return pn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new T(t,t);if(e=new M(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var r,o=0,i=this._rings.length;oe.y!=r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(l=!l);return l||Mn.prototype._containsPoint.call(this,e,!0)}}),An=Pn.extend({initialize:function(e,t){p(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,o=m(e)?e:e.features;if(o){for(t=0,n=o.length;t0?o:[t.src]}else{m(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted;for(var a=0;ao?(t.height=o+"px",ut(e,"leaflet-popup-scrolled")):st(e,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();ht(this._container,t.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var e=this._map,t=parseInt(et(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+t,r=this._containerWidth,o=new T(this._containerLeft,-n-this._containerBottom);o._add(yt(this._container));var i=e.layerPointToContainerPoint(o),a=R(this.options.autoPanPadding),u=R(this.options.autoPanPaddingTopLeft||a),s=R(this.options.autoPanPaddingBottomRight||a),l=e.getSize(),c=0,f=0;i.x+r+s.x>l.x&&(c=i.x+r-l.x+s.x),i.x-c-u.x<0&&(c=i.x-u.x),i.y+n+s.y>l.y&&(f=i.y+n-l.y+s.y),i.y-f-u.y<0&&(f=i.y-u.y),(c||f)&&e.fire("autopanstart").panBy([c,f])}},_onCloseButtonClick:function(e){this._close(),At(e)},_getAnchor:function(){return R(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ut.mergeOptions({closePopupOnClick:!0}),Ut.include({openPopup:function(e,t,n){return e instanceof Jn||(e=new Jn(n).setContent(e)),t&&e.setLatLng(t),this.hasLayer(e)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=e,this.addLayer(e))},closePopup:function(e){return e&&e!==this._popup||(e=this._popup,this._popup=null),e&&this.removeLayer(e),this}}),Sn.include({bindPopup:function(e,t){return e instanceof Jn?(p(e,t),this._popup=e,e._source=this):(this._popup&&!t||(this._popup=new Jn(t,this)),this._popup.setContent(e)),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(e,t){return this._popup&&this._map&&(t=this._popup._prepareOpen(this,e,t),this._map.openPopup(this._popup,t)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(e){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(e)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){var t=e.layer||e.target;this._popup&&this._map&&(At(e),t instanceof Tn?this.openPopup(e.layer||e.target,e.latlng):this._map.hasLayer(this._popup)&&this._popup._source===t?this.closePopup():this.openPopup(t,e.latlng))},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var Qn=Zn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(e){Zn.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(e){Zn.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var e=Zn.prototype.getEvents.call(this);return we&&!this.options.permanent&&(e.preclick=this._close),e},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=tt("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,r=this._map,o=this._container,i=r.latLngToContainerPoint(r.getCenter()),a=r.layerPointToContainerPoint(e),u=this.options.direction,s=o.offsetWidth,l=o.offsetHeight,c=R(this.options.offset),f=this._getAnchor();"top"===u?(t=s/2,n=l):"bottom"===u?(t=s/2,n=0):"center"===u?(t=s/2,n=l/2):"right"===u?(t=0,n=l/2):"left"===u?(t=s,n=l/2):a.xthis.options.maxZoom||nr&&this._retainParent(o,i,a,r))},_retainChildren:function(e,t,n,r){for(var o=2*e;o<2*e+2;o++)for(var i=2*t;i<2*t+2;i++){var a=new T(o,i);a.z=n+1;var u=this._tileCoordsToKey(a),s=this._tiles[u];s&&s.active?s.retain=!0:(s&&s.loaded&&(s.retain=!0),n+1this.options.maxZoom||void 0!==this.options.minZoom&&o1)this._setView(e,n);else{for(var f=o.min.y;f<=o.max.y;f++)for(var p=o.min.x;p<=o.max.x;p++){var d=new T(p,f);if(d.z=this._tileZoom,this._isValidTile(d)){var h=this._tiles[this._tileCoordsToKey(d)];h?h.current=!0:a.push(d)}}if(a.sort((function(e,t){return e.distanceTo(i)-t.distanceTo(i)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var y=document.createDocumentFragment();for(p=0;pn.max.x)||!t.wrapLat&&(e.yn.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(e);return z(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),o=r.add(n);return[t.unproject(r,e.z),t.unproject(o,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new I(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new T(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(nt(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){ut(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=s,e.onmousemove=s,Q&&this.options.opacity<1&&ft(e,this.options.opacity),te&&!ne&&(e.style.WebkitBackfaceVisibility="hidden")},_addTile:function(e,t){var n=this._getTilePos(e),o=this._tileCoordsToKey(e),i=this.createTile(this._wrapCoords(e),r(this._tileReady,this,e));this._initTile(i),this.createTile.length<2&&k(r(this._tileReady,this,e,null,i)),ht(i,n),this._tiles[o]={el:i,coords:e,current:!0},t.appendChild(i),this.fire("tileloadstart",{tile:i,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var o=this._tileCoordsToKey(e);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(ft(n.el,0),P(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(ut(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Q||!this._map._fadeAnimated?k(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new T(this._wrapX?u(e.x,this._wrapX):e.x,this._wrapY?u(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new M(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}}),tr=er.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(e,t){this._url=e,(t=p(this,t)).detectRetina&&ke&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom++):(t.zoomOffset++,t.maxZoom--),t.minZoom=Math.max(0,t.minZoom)),"string"==typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),te||this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return kt(n,"load",r(this._tileOnLoad,this,t,n)),kt(n,"error",r(this._tileOnError,this,t,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(e),n},getTileUrl:function(e){var n={r:ke?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;this.options.tms&&(n.y=r),n["-y"]=r}return y(this._url,t(n,this.options))},_tileOnLoad:function(e,t){Q?setTimeout(r(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute("src")!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=s,t.onerror=s,t.complete||(t.src=v,nt(t),delete this._tiles[e]))},_removeTile:function(e){var t=this._tiles[e];if(t)return oe||t.el.setAttribute("src",v),er.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==v))return er.prototype._tileReady.call(this,e,t,n)}});function nr(e,t){return new tr(e,t)}var rr=tr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,n){this._url=e;var r=t({},this.defaultWmsParams);for(var o in n)o in this.options||(r[o]=n[o]);var i=(n=p(this,n)).detectRetina&&ke?2:1,a=this.getTileSize();r.width=a.x*i,r.height=a.y*i,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,tr.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=A(n.project(t[0]),n.project(t[1])),o=r.min,i=r.max,a=(this._wmsVersion>=1.3&&this._crs===wn?[o.y,o.x,i.y,i.x]:[o.x,o.y,i.x,i.y]).join(","),u=tr.prototype.getTileUrl.call(this,e);return u+d(this.wmsParams,u,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(e,n){return t(this.wmsParams,e),n||this.redraw(),this}});tr.WMS=rr,nr.wms=function(e,t){return new rr(e,t)};var or=Sn.extend({options:{padding:.1,tolerance:0},initialize:function(e){p(this,e),i(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&ut(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 e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=yt(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,t),a=this._map.project(e,t).subtract(i),u=o.multiplyBy(-n).add(r).add(o).subtract(a);ye?dt(this._container,u,n):ht(this._container,u)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new M(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ir=or.extend({getEvents:function(){var e=or.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){or.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");kt(e,"mousemove",this._onMouseMove,this),kt(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),kt(e,"mouseout",this._handleMouseOut,this),this._ctx=e.getContext("2d")},_destroyContainer:function(){P(this._redrawRequest),delete this._ctx,nt(this._container),Et(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){or.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=ke?2:1;ht(t,e.min),t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",ke&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){or.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[i(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,r=t.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete e._order,delete this._layers[i(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"==typeof e.options.dashArray){var t,n,r=e.options.dashArray.split(/[, ]+/),o=[];for(n=0;n')}}catch(e){return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),sr={_initContainer:function(){this._container=tt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(or.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=ur("shape");ut(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=ur("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[i(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;nt(t),e.removeInteractiveTarget(t),delete this._layers[i(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,o=e._container;o.stroked=!!r.stroke,o.filled=!!r.fill,r.stroke?(t||(t=e._stroke=ur("stroke")),o.appendChild(t),t.weight=r.weight+"px",t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=m(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=r.lineCap.replace("butt","flat"),t.joinstyle=r.lineJoin):t&&(o.removeChild(t),e._stroke=null),r.fill?(n||(n=e._fill=ur("fill")),o.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(o.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+r+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){ot(e._container)},_bringToBack:function(e){it(e._container)}},lr=Ce?ur:$,cr=or.extend({getEvents:function(){var e=or.prototype.getEvents.call(this);return e.zoomstart=this._onZoomStart,e},_initContainer:function(){this._container=lr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=lr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){nt(this._container),Et(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){or.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),ht(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=lr("path");e.options.className&&ut(t,e.options.className),e.options.interactive&&ut(t,"leaflet-interactive"),this._updateStyle(e),this._layers[i(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){nt(e._path),e.removeInteractiveTarget(e._path),delete this._layers[i(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,G(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",o=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(e,o)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){ot(e._path)},_bringToBack:function(e){it(e._path)}});function fr(e){return je||Ce?new cr(e):null}Ce&&cr.include(sr),Ut.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&ar(e)||fr(e)}});var pr=Ln.extend({initialize:function(e,t){Ln.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=z(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});cr.create=lr,cr.pointsToPath=G,An.geometryToLayer=In,An.coordsToLatLng=Fn,An.coordsToLatLngs=Yn,An.latLngToCoords=Nn,An.latLngsToCoords=Bn,An.getFeature=Hn,An.asFeature=Vn,Ut.mergeOptions({boxZoom:!0});var dr=Qt.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){kt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Et(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){nt(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(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),He(),bt(),this._startPoint=this._map.mouseEventToContainerPoint(e),kt(document,{contextmenu:At,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=tt("div","leaflet-zoom-box",this._container),ut(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new M(this._point,this._startPoint),n=t.getSize();ht(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(nt(this._box),st(this._container,"leaflet-crosshair")),Ve(),vt(),Et(document,{contextmenu:At,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var t=new I(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&this._finish()}});Ut.addInitHook("addHandler","boxZoom",dr),Ut.mergeOptions({doubleClickZoom:!0});var hr=Qt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,o=e.originalEvent.shiftKey?n-r:n+r;"center"===t.options.doubleClickZoom?t.setZoom(o):t.setZoomAround(e.containerPoint,o)}});Ut.addInitHook("addHandler","doubleClickZoom",hr),Ut.mergeOptions({dragging:!0,inertia:!ne,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var yr=Qt.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new on(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}ut(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){st(this._map._container,"leaflet-grab"),st(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 e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=z(this._map.options.maxBounds);this._offsetLimit=A(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.xt.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,o=(r-t+n)%e+t-n,i=(r+t+n)%e-t-n,a=Math.abs(o+n)0?i:-i))-t;this._delta=0,this._startTime=null,a&&("center"===e.options.scrollWheelZoom?e.setZoom(t+a):e.setZoomAround(this._lastMousePos,t+a))}});Ut.addInitHook("addHandler","scrollWheelZoom",br),Ut.mergeOptions({tap:!0,tapTolerance:15});var vr=Qt.extend({addHooks:function(){kt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Et(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(e.touches){if(Lt(e),this._fireClick=!0,e.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var t=e.touches[0],n=t.target;this._startPos=this._newPos=new T(t.clientX,t.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&ut(n,"leaflet-active"),this._holdTimeout=setTimeout(r((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",t))}),this),1e3),this._simulateEvent("mousedown",t),kt(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(e){if(clearTimeout(this._holdTimeout),Et(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&e&&e.changedTouches){var t=e.changedTouches[0],n=t.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&st(n,"leaflet-active"),this._simulateEvent("mouseup",t),this._isTapValid()&&this._simulateEvent("click",t)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(e){var t=e.touches[0];this._newPos=new T(t.clientX,t.clientY),this._simulateEvent("mousemove",t)},_simulateEvent:function(e,t){var n=document.createEvent("MouseEvents");n._simulated=!0,t.target._simulatedClick=!0,n.initMouseEvent(e,!0,!0,window,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n)}});!we||_e&&!se||Ut.addInitHook("addHandler","tap",vr),Ut.mergeOptions({touchZoom:we&&!ne,bounceAtZoomLimits:!0});var gr=Qt.extend({addHooks:function(){ut(this._map._container,"leaflet-touch-zoom"),kt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){st(this._map._container,"leaflet-touch-zoom"),Et(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),kt(document,"touchmove",this._onTouchMove,this),kt(document,"touchend",this._onTouchEnd,this),Lt(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),o=t.mouseEventToContainerPoint(e.touches[1]),i=n.distanceTo(o)/this._startDist;if(this._zoom=t.getScaleZoom(i,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoomt.getMaxZoom()&&i>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{var a=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===a.x&&0===a.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),P(this._animRequest);var u=r(t._move,t,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=k(u,this,!0),Lt(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,P(this._animRequest),Et(document,"touchmove",this._onTouchMove,this),Et(document,"touchend",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ut.addInitHook("addHandler","touchZoom",gr),Ut.BoxZoom=dr,Ut.DoubleClickZoom=hr,Ut.Drag=yr,Ut.Keyboard=mr,Ut.ScrollWheelZoom=br,Ut.Tap=vr,Ut.TouchZoom=gr,e.version="1.7.1",e.Control=Kt,e.control=qt,e.Browser=Te,e.Evented=x,e.Mixin=en,e.Util=E,e.Class=j,e.Handler=Qt,e.extend=t,e.bind=r,e.stamp=i,e.setOptions=p,e.DomEvent=Vt,e.DomUtil=St,e.PosAnimation=Wt,e.Draggable=on,e.LineUtil=hn,e.PolyUtil=mn,e.Point=T,e.point=R,e.Bounds=M,e.bounds=A,e.Transformation=W,e.transformation=U,e.Projection=gn,e.LatLng=F,e.latLng=Y,e.LatLngBounds=I,e.latLngBounds=z,e.CRS=B,e.GeoJSON=An,e.geoJSON=Un,e.geoJson=Kn,e.Layer=Sn,e.LayerGroup=kn,e.layerGroup=function(e,t){return new kn(e,t)},e.FeatureGroup=Pn,e.featureGroup=function(e,t){return new Pn(e,t)},e.ImageOverlay=qn,e.imageOverlay=function(e,t,n){return new qn(e,t,n)},e.VideoOverlay=$n,e.videoOverlay=function(e,t,n){return new $n(e,t,n)},e.SVGOverlay=Gn,e.svgOverlay=function(e,t,n){return new Gn(e,t,n)},e.DivOverlay=Zn,e.Popup=Jn,e.popup=function(e,t){return new Jn(e,t)},e.Tooltip=Qn,e.tooltip=function(e,t){return new Qn(e,t)},e.Icon=En,e.icon=function(e){return new En(e)},e.DivIcon=Xn,e.divIcon=function(e){return new Xn(e)},e.Marker=xn,e.marker=function(e,t){return new xn(e,t)},e.TileLayer=tr,e.tileLayer=nr,e.GridLayer=er,e.gridLayer=function(e){return new er(e)},e.SVG=cr,e.svg=fr,e.Renderer=or,e.Canvas=ir,e.canvas=ar,e.Path=Tn,e.CircleMarker=Dn,e.circleMarker=function(e,t){return new Dn(e,t)},e.Circle=Rn,e.circle=function(e,t,n){return new Rn(e,t,n)},e.Polyline=Mn,e.polyline=function(e,t){return new Mn(e,t)},e.Polygon=Ln,e.polygon=function(e,t){return new Ln(e,t)},e.Rectangle=pr,e.rectangle=function(e,t){return new pr(e,t)},e.Map=Ut,e.map=function(e,t){return new Ut(e,t)};var _r=window.L;e.noConflict=function(){return window.L=_r,this},window.L=e}(t)},function(e,t,n){e.exports={navigation:"navigation--1TPKGVcdtJ",header:"header--1yYASq55gP","header-content":"header-content--3q2ACaykun",headerContent:"header-content--3q2ACaykun","header-icon":"header-icon--3slb78kEn1",headerIcon:"header-icon--3slb78kEn1","header-title":"header-title--3llLneBogU",headerTitle:"header-title--3llLneBogU",user:"user--1yh8_EoOW4","user-content":"user-content--1HWDvaZ5qI",userContent:"user-content--1HWDvaZ5qI","no-user-image":"no-user-image--2r0uxVSaEY",noUserImage:"no-user-image--2r0uxVSaEY","user-profile":"user-profile--3h8wK9aFMr",userProfile:"user-profile--3h8wK9aFMr",username:"username--1iD-BWgeXO",logout:"logout--3rYtUBtY-s",items:"items--23JrT1L7Qn",footer:"footer--3d3KVHirl9",pin:"pin--1EfeTj0EjG","pin-active":"pin-active--2xYrKut_aI",pinActive:"pin-active--2xYrKut_aI","pin-icon":"pin-icon--2Bs7SKVMJD",pinIcon:"pin-icon--2Bs7SKVMJD",versions:"versions--1zEVIvOm77"}},function(e,t,n){e.exports={input:"input--YrRPhYPmPT",left:"left--3McDXiCrys",center:"center--JXk60IDjWJ",right:"right--pX9XMNaOG9",collapsed:"collapsed--3cKiJ1rgll","has-append-icon":"has-append-icon--pQms0sSnCj",hasAppendIcon:"has-append-icon--pQms0sSnCj",dark:"dark--tc2vktcDJ7",error:"error--1YjDkE4VYd",disabled:"disabled--1cFjjKATa0","prepended-container":"prepended-container--1HLUlo-uAQ",prependedContainer:"prepended-container--1HLUlo-uAQ",icon:"icon--ytM2BXHUpA",headline:"headline--2ofmFMh3Td","append-container":"append-container--260F-W2kJw",appendContainer:"append-container--260F-W2kJw","icon-clickable":"icon-clickable--2i8CXxR-rS",iconClickable:"icon-clickable--2i8CXxR-rS"}},function(e,t,n){e.exports={"media-card":"media-card--3zwVt4x9IY",mediaCard:"media-card--3zwVt4x9IY",checkbox:"checkbox--3fO94jPv5b",selected:"selected--2I8c2zZDkN",header:"header--1GmsmRN8kP","header-click-area":"header-click-area--2YgVRnlEME",headerClickArea:"header-click-area--2YgVRnlEME",description:"description--KIscyejKfD","no-download-list":"no-download-list--Dd02_LyMg8",noDownloadList:"no-download-list--Dd02_LyMg8","download-button":"download-button--29bmE_WcBM",downloadButton:"download-button--29bmE_WcBM",active:"active--3MvsR-oqxD","ghost-indicator":"ghost-indicator--1_EW3uSSK6",ghostIndicator:"ghost-indicator--1_EW3uSSK6",title:"title--2BoVb9Cwl9",meta:"meta--Lq76ippoF_","title-text":"title-text--1DQCap-AbL",titleText:"title-text--1DQCap-AbL",media:"media--1-OiFQVLjc",cover:"cover--3_DtNQ3fhJ","show-cover":"show-cover--3T0YdhAWC5",showCover:"show-cover--3T0YdhAWC5","media-icon":"media-icon--3lo3oU5U41",mediaIcon:"media-icon--3lo3oU5U41"}},function(e,t,n){e.exports={"edit-form":"edit-form--nxK2xbxTj_",editForm:"edit-form--nxK2xbxTj_",form:"form--1u86V3nB4Y","media-column":"media-column--1rlxVEqxfN",mediaColumn:"media-column--1rlxVEqxfN","media-button":"media-button--242y4MFzfr",mediaButton:"media-button--242y4MFzfr","media-button-edit-icon":"media-button-edit-icon--22_pNpdNWh",mediaButtonEditIcon:"media-button-edit-icon--22_pNpdNWh","media-button-icon":"media-button-icon--2jrmYJLxGn",mediaButtonIcon:"media-button-icon--2jrmYJLxGn","title-input":"title-input--1dN4wONatr",titleInput:"title-input--1dN4wONatr","description-text-area":"description-text-area--NcKuq5NJ3G",descriptionTextArea:"description-text-area--NcKuq5NJ3G",buttons:"buttons--1mapRd_g0a",item:"item--2Ik0bJ0TWt",media:"media--3hQPdb-uXy",title:"title--2x9BbBTKTw",content:"content--3874kh7Wj0",description:"description--1KwBL0sb0j",type:"type--174ojyRJQN"}},function(e,t){function n(e,t,n){var r,o,i,a,u;function s(){var l=Date.now()-a;l=0?r=setTimeout(s,t-l):(r=null,n||(u=e.apply(i,o),i=o=null))}null==t&&(t=100);var l=function(){i=this,o=arguments,a=Date.now();var l=n&&!r;return r||(r=setTimeout(s,t)),l&&(u=e.apply(i,o),i=o=null),u};return l.clear=function(){r&&(clearTimeout(r),r=null)},l.flush=function(){r&&(u=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},l}n.debounce=n,e.exports=n},function(e,t,n){e.exports={loader:"loader--2gdHZwemxA",root:"root--1xK2HnF3xf",visible:"visible--2-6zspTYQo","navigation-visible":"navigation-visible--2Y0-ThvmLG",navigationVisible:"navigation-visible--2Y0-ThvmLG",content:"content--2IfnEOTquo","with-pinned-navigation":"with-pinned-navigation--2VG8fUyABf",withPinnedNavigation:"with-pinned-navigation--2VG8fUyABf","with-sidebar":"with-sidebar--1mIP1_Go4G",withSidebar:"with-sidebar--1mIP1_Go4G","view-container":"view-container--3-uqYBnaX8",viewContainer:"view-container--3-uqYBnaX8",main:"main--3FrrdgELy2",sidebar:"sidebar--1h00XLaExU",small:"small--3wna2-Mqiy",medium:"medium--3kUvKyrWan",large:"large--3vpSCgRpSZ",navigation:"navigation--1r_Vo8arYt"}},function(e,t,n){e.exports={item:"item--1jtrJ1DYzL",text:"text--3n3NdvKI4C",active:"active--2idn-n2E2S",disabled:"disabled--1gI6QpUX0i",children:"children--7PRJYI6aBE",button:"button--2Fzrhq4BJX",visible:"visible--38dPT7rEGr",buttons:"buttons--1YMVp7Syw2",selected:"selected--34PSNwf2M_",indicator:"indicator--FffGEQh1l8","order-input":"order-input--nidbwm3RYU",orderInput:"order-input--nidbwm3RYU"}},function(e,t,n){e.exports={"media-container":"media-container--24xVCfsRYi",mediaContainer:"media-container--24xVCfsRYi","upload-indicator":"upload-indicator--1AR-kLZKnw",uploadIndicator:"upload-indicator--1AR-kLZKnw","show-upload-indicator":"show-upload-indicator--1T2VN-fo7m",showUploadIndicator:"show-upload-indicator--1T2VN-fo7m",disabled:"disabled--2DUBSGKHYW",progressbar:"progressbar--1ttu1M8akg","upload-indicator-container":"upload-indicator-container--jnVNyT85Go",uploadIndicatorContainer:"upload-indicator-container--jnVNyT85Go","mime-type-indicator":"mime-type-indicator--21ALKYDVwQ",mimeTypeIndicator:"mime-type-indicator--21ALKYDVwQ","empty-indicator":"empty-indicator--3RlQcJQgHp",emptyIndicator:"empty-indicator--3RlQcJQgHp","upload-icon":"upload-icon--3R_c-DlUGT",uploadIcon:"upload-icon--3R_c-DlUGT","upload-info-text":"upload-info-text--Ijzo9z9dY5",uploadInfoText:"upload-info-text--Ijzo9z9dY5",thumbnail:"thumbnail--2MX4oCKfh5",round:"round--7c0ME6Lf-H"}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){e.exports={item:"item--2LDR_-eyYV",disabled:"disabled--9G8g19bOyu","drag-handle":"drag-handle--PYzq-TCLBm",dragHandle:"drag-handle--PYzq-TCLBm",content:"content--3az5yUIqH-",clickable:"clickable--2utY9F6CqP",buttons:"buttons--1fNv9MnFr9",button:"button--3uyXay-Ezq",sortable:"sortable--3A6g3aviJT",index:"index--30Fe4D6eEr"}},function(e,t,n){e.exports={"single-item-selection":"single-item-selection--2syRAxxZ4m",singleItemSelection:"single-item-selection--2syRAxxZ4m","item-container":"item-container--1oXQM4YWNF",itemContainer:"item-container--1oXQM4YWNF",item:"item--91fU1JyQEP",clickable:"clickable--3DYlhyTdAV",empty:"empty--TMG50GIsw7","has-right-button":"has-right-button--DOZ1gbzWTA",hasRightButton:"has-right-button--DOZ1gbzWTA","remove-button":"remove-button--1Z8ahNPrk2",removeButton:"remove-button--1Z8ahNPrk2",loader:"loader--2frG0NlNR_",error:"error--33JnRZ2HjE",button:"button--1jwcGP42HK",disabled:"disabled--n-9zbzspzQ"}},function(e,t,n){e.exports={light:"light--3tjxVCiYyF",active:"active--3MNZFTtgLH",dark:"dark--2nNsKWO85H",button:"button--Fry28Tt4id",small:"small--eEYBskIrS1","dropdown-icon":"dropdown-icon--3f66DguOW7",dropdownIcon:"dropdown-icon--3f66DguOW7",primary:"primary--2KTH7pCs6s",success:"success--YYaRS6wxPm",icon:"icon--2BbYiI_UQ5",label:"label--36XumMAKrW",loader:"loader--2ZNvbLpbYF"}},function(e,t,n){e.exports={"search-result":"search-result--2QpYBrXe6P",searchResult:"search-result--2QpYBrXe6P","image-container":"image-container--23uWpGHNcx",imageContainer:"image-container--23uWpGHNcx",image:"image--1DYCIzJxSm",icon:"icon--lptN8-BH7B","result-container":"result-container--2XqHymsMQ-",resultContainer:"result-container--2XqHymsMQ-",resource:"resource--Pfe6DWXggj","title-container":"title-container--2gQrqxChGb",titleContainer:"title-container--2gQrqxChGb",title:"title--5708DCeWjs",locale:"locale--kVyvS1-L9W",description:"description--2Vv8-vW3SS"}},function(e,t,n){var r=n(340),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){e.exports={overlay:"overlay--k9H5mFbXyn",sorting:"sorting--ZdXIUoDhfl","column-option":"column-option--jZQUsDRZlT",columnOption:"column-option--jZQUsDRZlT","drag-handle":"drag-handle--10N92JZ3Y-",dragHandle:"drag-handle--10N92JZ3Y-",label:"label--1fD1ji4PAQ",icon:"icon--25swyaK0Z0",dragging:"dragging--29HRxXAtIb","column-option-disabled":"column-option-disabled--3L7Ort4fTy",columnOptionDisabled:"column-option-disabled--3L7Ort4fTy"}},function(e,t,n){e.exports={container:"container--1Af_ukQ1Tq",overlay:"overlay--1i69zMOzmm",small:"small--3LzryW5Wgh",large:"large--1vOJ_O2MxG","is-down":"is-down--1GrBJwFYKD",isDown:"is-down--1GrBJwFYKD",content:"content--uDzbc_yR5N",header:"header--2Xry65vbZk",article:"article--2N0Q6NmJIy",footer:"footer--1tWJvcS8dW",icon:"icon--3x5ECMVMng"}},function(e,t,n){e.exports={block:"block---lmRUaoC4J",expanded:"expanded--1OAMnWu3Nh",children:"children--2vr78c8PWl",header:"header--3Z6dsPKDx6",handle:"handle--DUvm6RDJgb",content:"content--Q--ddExW3x",types:"types--3BMYLuVPAf",type:"type--3zGitGam6V",icons:"icons--3gZEnEY5xT"}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";(function(e){var r=n(16),o=n(392);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a="object"==("undefined"==typeof exports?"undefined":i(exports))&&exports&&!exports.nodeType&&exports,u=a&&"object"==i(e)&&e&&!e.nodeType&&e,s=u&&u.exports===a?r.a.Buffer:void 0,l=(s?s.isBuffer:void 0)||o.a;t.a=l}).call(this,n(159)(e))},function(e,t,n){var r; +!function(e){"use strict";function t(e){var t,n,r,o;for(n=1,r=arguments.length;n0?Math.floor(e):Math.ceil(e)};function R(e,t,n){return e instanceof T?e:m(e)?new T(e[0],e[1]):null==e?e:"object"==typeof e&&"x"in e&&"y"in e?new T(e.x,e.y):new T(e,t,n)}function M(e,t){if(e)for(var n=t?[e,t]:e,r=0,o=n.length;r=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=A(e);var t=this.min,n=this.max,r=e.min,o=e.max,i=o.x>=t.x&&r.x<=n.x,a=o.y>=t.y&&r.y<=n.y;return i&&a},overlaps:function(e){e=A(e);var t=this.min,n=this.max,r=e.min,o=e.max,i=o.x>t.x&&r.xt.y&&r.y=r.lat&&n.lat<=o.lat&&t.lng>=r.lng&&n.lng<=o.lng},intersects:function(e){e=z(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),o=e.getNorthEast(),i=o.lat>=t.lat&&r.lat<=n.lat,a=o.lng>=t.lng&&r.lng<=n.lng;return i&&a},overlaps:function(e){e=z(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),o=e.getNorthEast(),i=o.lat>t.lat&&r.latt.lng&&r.lng1,Pe=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",s,t),window.removeEventListener("testPassiveEventSupport",s,t)}catch(e){}return e}(),Ee=!!document.createElement("canvas").getContext,je=!(!document.createElementNS||!$("svg").createSVGRect),Ce=!je&&function(){try{var e=document.createElement("div");e.innerHTML='';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"==typeof t.adj}catch(e){return!1}}();function xe(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var Te={ie:J,ielt9:Q,edge:X,webkit:ee,android:te,android23:ne,androidStock:oe,opera:ie,chrome:ae,gecko:ue,safari:se,phantom:le,opera12:ce,win:fe,ie3d:pe,webkit3d:de,gecko3d:he,any3d:ye,mobile:me,mobileWebkit:be,mobileWebkit3d:ve,msPointer:ge,pointer:_e,touch:we,mobileOpera:Oe,mobileGecko:ke,retina:Se,passiveEvents:Pe,canvas:Ee,svg:je,vml:Ce},De=ge?"MSPointerDown":"pointerdown",Re=ge?"MSPointerMove":"pointermove",Me=ge?"MSPointerUp":"pointerup",Le=ge?"MSPointerCancel":"pointercancel",Ae={},Ie=!1;function ze(e,t,n,o){return"touchstart"===t?function(e,t,n){var o=r((function(e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Lt(e),Be(e,t)}));e["_leaflet_touchstart"+n]=o,e.addEventListener(De,o,!1),Ie||(document.addEventListener(De,Fe,!0),document.addEventListener(Re,Ye,!0),document.addEventListener(Me,Ne,!0),document.addEventListener(Le,Ne,!0),Ie=!0)}(e,n,o):"touchmove"===t?function(e,t,n){var r=function(e){e.pointerType===(e.MSPOINTER_TYPE_MOUSE||"mouse")&&0===e.buttons||Be(e,t)};e["_leaflet_touchmove"+n]=r,e.addEventListener(Re,r,!1)}(e,n,o):"touchend"===t&&function(e,t,n){var r=function(e){Be(e,t)};e["_leaflet_touchend"+n]=r,e.addEventListener(Me,r,!1),e.addEventListener(Le,r,!1)}(e,n,o),this}function Fe(e){Ae[e.pointerId]=e}function Ye(e){Ae[e.pointerId]&&(Ae[e.pointerId]=e)}function Ne(e){delete Ae[e.pointerId]}function Be(e,t){for(var n in e.touches=[],Ae)e.touches.push(Ae[n]);e.changedTouches=[e],t(e)}var He,Ve,We,Ue,Ke,qe=ge?"MSPointerDown":_e?"pointerdown":"touchstart",$e=ge?"MSPointerUp":_e?"pointerup":"touchend",Ge="_leaflet_",Ze=pt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Je=pt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Qe="webkitTransition"===Je||"OTransition"===Je?Je+"End":"transitionend";function Xe(e){return"string"==typeof e?document.getElementById(e):e}function et(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}function tt(e,t,n){var r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}function nt(e){var t=e.parentNode;t&&t.removeChild(e)}function rt(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ot(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function it(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function at(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=ct(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function ut(e,t){if(void 0!==e.classList)for(var n=f(t),r=0,o=n.length;r1)return;var t=Date.now(),n=t-(r||t);o=e.touches?e.touches[0]:e,i=n>0&&n<=250,r=t}function u(e){if(i&&!o.cancelBubble){if(_e){if("mouse"===e.pointerType)return;var n,a,u={};for(a in o)n=o[a],u[a]=n&&n.bind?n.bind(o):n;o=u}o.type="dblclick",o.button=0,t(o),r=null}}e[Ge+qe+n]=a,e[Ge+$e+n]=u,e[Ge+"dblclick"+n]=t,e.addEventListener(qe,a,!!Pe&&{passive:!1}),e.addEventListener($e,u,!!Pe&&{passive:!1}),e.addEventListener("dblclick",t,!1)}(e,a,o):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(Ct[t]||t,a,!!Pe&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(a=function(t){t=t||window.event,Ht(e,t)&&u(t)},e.addEventListener(Ct[t],a,!1)):e.addEventListener(t,u,!1):"attachEvent"in e&&e.attachEvent("on"+t,a),e[Pt]=e[Pt]||{},e[Pt][o]=a}function Tt(e,t,n,r){var o=t+i(n)+(r?"_"+i(r):""),a=e[Pt]&&e[Pt][o];if(!a)return this;_e&&0===t.indexOf("touch")?function(e,t,n){var r=e["_leaflet_"+t+n];"touchstart"===t?e.removeEventListener(De,r,!1):"touchmove"===t?e.removeEventListener(Re,r,!1):"touchend"===t&&(e.removeEventListener(Me,r,!1),e.removeEventListener(Le,r,!1))}(e,t,o):we&&"dblclick"===t&&!jt()?function(e,t){var n=e[Ge+qe+t],r=e[Ge+$e+t],o=e[Ge+"dblclick"+t];e.removeEventListener(qe,n,!!Pe&&{passive:!1}),e.removeEventListener($e,r,!!Pe&&{passive:!1}),e.removeEventListener("dblclick",o,!1)}(e,o):"removeEventListener"in e?e.removeEventListener(Ct[t]||t,a,!1):"detachEvent"in e&&e.detachEvent("on"+t,a),e[Pt][o]=null}function Dt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,Bt(e),this}function Rt(e){return xt(e,"wheel",Dt),this}function Mt(e){return St(e,"mousedown touchstart dblclick",Dt),xt(e,"click",Nt),this}function Lt(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function At(e){return Lt(e),Dt(e),this}function It(e,t){if(!t)return new T(e.clientX,e.clientY);var n=Ot(t),r=n.boundingClientRect;return new T((e.clientX-r.left)/n.x-t.clientLeft,(e.clientY-r.top)/n.y-t.clientTop)}var zt=fe&&ae?2*window.devicePixelRatio:ue?window.devicePixelRatio:1;function Ft(e){return X?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/zt:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}var Yt={};function Nt(e){Yt[e.type]=!0}function Bt(e){var t=Yt[e.type];return Yt[e.type]=!1,t}function Ht(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(e){return!1}return n!==e}var Vt={on:St,off:Et,stopPropagation:Dt,disableScrollPropagation:Rt,disableClickPropagation:Mt,preventDefault:Lt,stop:At,getMousePosition:It,getWheelDelta:Ft,fakeStop:Nt,skipped:Bt,isExternalTarget:Ht,addListener:St,removeListener:Et},Wt=x.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=yt(e),this._offset=t.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=S(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;tthis.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,z(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=R((t=t||{}).paddingTopLeft||t.padding||[0,0]),r=R(t.paddingBottomRight||t.padding||[0,0]),o=this.getCenter(),i=this.project(o),a=this.project(e),u=this.getPixelBounds(),s=u.getSize().divideBy(2),l=A([u.min.add(n),u.max.subtract(r)]);if(!l.contains(a)){this._enforcingBounds=!0;var c=i.subtract(a),f=R(a.x+c.x,a.y+c.y);(a.xl.max.x)&&(f.x=i.x-c.x,c.x>0?f.x+=s.x-n.x:f.x-=s.x-r.x),(a.yl.max.y)&&(f.y=i.y-c.y,c.y>0?f.y+=s.y-n.y:f.y-=s.y-r.y),this.panTo(this.unproject(f),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=t({animate:!1,pan:!0},!0===e?{animate:!0}:e);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),i=n.divideBy(2).round(),a=o.divideBy(2).round(),u=i.subtract(a);return u.x||u.y?(e.animate&&e.pan?this.panBy(u):(e.pan&&this._rawPanBy(u),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=t({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=r(this._handleGeolocationResponse,this),o=r(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,e):navigator.geolocation.getCurrentPosition(n,o,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(e){var t=new F(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),r=this._locateOptions;if(r.setView){var o=this.getBoundsZoom(n);this.setView(t,r.maxZoom?Math.min(o,r.maxZoom):o)}var i={latlng:t,bounds:n,timestamp:e.timestamp};for(var a in e.coords)"number"==typeof e.coords[a]&&(i[a]=e.coords[a]);this.fire("locationfound",i)},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),nt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(P(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)nt(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=tt("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new I(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=z(e),n=R(n||[0,0]);var r=this.getZoom()||0,o=this.getMinZoom(),i=this.getMaxZoom(),a=e.getNorthWest(),u=e.getSouthEast(),s=this.getSize().subtract(n),l=A(this.project(u,r),this.project(a,r)).getSize(),c=ye?this.options.zoomSnap:1,f=s.x/l.x,p=s.y/l.y,d=t?Math.max(f,p):Math.min(f,p);return r=this.getScaleZoom(d,r),c&&(r=Math.round(r/(c/100))*(c/100),r=t?Math.ceil(r/c)*c:Math.floor(r/c)*c),Math.max(o,Math.min(i,r))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new T(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new M(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"==typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(Y(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(R(e),t)},layerPointToLatLng:function(e){var t=R(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(Y(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(Y(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(z(e))},distance:function(e,t){return this.options.crs.distance(Y(e),Y(t))},containerPointToLayerPoint:function(e){return R(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return R(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(R(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Y(e)))},mouseEventToContainerPoint:function(e){return It(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=Xe(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");St(t,"scroll",this._onScroll,this),this._containerId=i(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&ye,ut(e,"leaflet-container"+(we?" leaflet-touch":"")+(Se?" leaflet-retina":"")+(Q?" leaflet-oldie":"")+(se?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=et(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ht(this._mapPane,new T(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ut(e.markerPane,"leaflet-zoom-hide"),ut(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t){ht(this._mapPane,new T(0,0));var n=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var r=this._zoom!==t;this._moveStart(r,!1)._move(e,t)._moveEnd(r),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n){void 0===t&&(t=this._zoom);var r=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),(r||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return P(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){ht(this._mapPane,this._getMapPanePos().subtract(e))},_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(e){this._targets={},this._targets[i(this._container)]=this;var t=e?Et:St;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),ye&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){P(this._resizeRequest),this._resizeRequest=S((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,r=[],o="mouseout"===t||"mouseover"===t,a=e.target||e.srcElement,u=!1;a;){if((n=this._targets[i(a)])&&("click"===t||"preclick"===t)&&!e._simulated&&this._draggableMoved(n)){u=!0;break}if(n&&n.listens(t,!0)){if(o&&!Ht(a,e))break;if(r.push(n),o)break}if(a===this._container)break;a=a.parentNode}return r.length||u||o||!Ht(a,e)||(r=[this]),r},_handleDOMEvent:function(e){if(this._loaded&&!Bt(e)){var t=e.type;"mousedown"!==t&&"keypress"!==t&&"keyup"!==t&&"keydown"!==t||gt(e.target||e.srcElement),this._fireDOMEvent(e,t)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,n,r){if("click"===e.type){var o=t({},e);o.type="preclick",this._fireDOMEvent(o,o.type,r)}if(!e._stopped&&(r=(r||[]).concat(this._findEventTargets(e,n))).length){var i=r[0];"contextmenu"===n&&i.listens(n,!0)&&Lt(e);var a={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var u=i.getLatLng&&(!i._radius||i._radius<=10);a.containerPoint=u?this.latLngToContainerPoint(i.getLatLng()):this.mouseEventToContainerPoint(e),a.layerPoint=this.containerPointToLayerPoint(a.containerPoint),a.latlng=u?i.getLatLng():this.layerPointToLatLng(a.layerPoint)}for(var s=0;s0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=ye?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){st(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(n)||(this.panBy(n,t),0))},_createAnimProxy:function(){var e=this._proxy=tt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=Ze,n=this._proxy.style[t];dt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){nt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();dt(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),o=this._getCenterOffset(e)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(o)||(S((function(){this._moveStart(!0,!1)._animateZoom(e,t,!0)}),this),0))},_animateZoom:function(e,t,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,ut(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:o}),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&st(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),S((function(){this._moveEnd(!0)}),this))}}),Kt=j.extend({options:{position:"topright"},initialize:function(e){p(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return ut(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(nt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),qt=function(e){return new Kt(e)};Ut.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=tt("div",t+"control-container",this._container);function r(r,o){var i=t+r+" "+t+o;e[r+o]=tt("div",i,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)nt(this._controlCorners[e]);nt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var $t=Kt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(i(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n='",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(e){var t,n=document.createElement("label"),r=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=r):t=this._createRadioElement("leaflet-base-layers_"+i(this),r),this._layerControlInputs.push(t),t.layerId=i(e.layer),St(t,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+e.name;var a=document.createElement("div");return n.appendChild(a),a.appendChild(t),a.appendChild(o),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var e,t,n=this._layerControlInputs,r=[],o=[];this._handlingClick=!0;for(var i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.checked?r.push(t):e.checked||o.push(t);for(i=0;i=0;o--)e=n[o],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&rt.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Gt=Kt.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=tt("div",t+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.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(e){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,o){var i=tt("a",n,r);return i.innerHTML=e,i.href="#",i.title=t,i.setAttribute("role","button"),i.setAttribute("aria-label",t),Mt(i),St(i,"click",At),St(i,"click",o,this),St(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";st(this._zoomInButton,t),st(this._zoomOutButton,t),(this._disabled||e._zoom===e.getMinZoom())&&ut(this._zoomOutButton,t),(this._disabled||e._zoom===e.getMaxZoom())&&ut(this._zoomInButton,t)}});Ut.mergeOptions({zoomControl:!0}),Ut.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Gt,this.addControl(this.zoomControl))}));var Zt=Kt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t=tt("div","leaflet-control-scale"),n=this.options;return this._addScales(n,"leaflet-control-scale-line",t),e.on(n.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),t},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=tt("div",t,n)),e.imperial&&(this._iScale=tt("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,r,o=3.2808399*e;o>5280?(t=o/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(r=this._getRoundNum(o),this._updateScale(this._iScale,r+" ft",r/o))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),Jt=Kt.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(e){p(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=tt("div","leaflet-control-attribution"),Mt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),this._container},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(" | ")}}});Ut.mergeOptions({attributionControl:!0}),Ut.addInitHook((function(){this.options.attributionControl&&(new Jt).addTo(this)})),Kt.Layers=$t,Kt.Zoom=Gt,Kt.Scale=Zt,Kt.Attribution=Jt,qt.layers=function(e,t,n){return new $t(e,t,n)},qt.zoom=function(e){return new Gt(e)},qt.scale=function(e){return new Zt(e)},qt.attribution=function(e){return new Jt(e)};var Qt=j.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Qt.addTo=function(e,t){return e.addHandler(t,this),this};var Xt,en={Events:C},tn=we?"touchstart mousedown":"mousedown",nn={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},rn={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},on=x.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){p(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||(St(this._dragStartTarget,tn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(on._dragging===this&&this.finishDrag(),Et(this._dragStartTarget,tn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(!e._simulated&&this._enabled&&(this._moved=!1,!at(this._element,"leaflet-zoom-anim")&&!(on._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches||(on._dragging=this,this._preventOutline&>(this._element),bt(),He(),this._moving)))){this.fire("down");var t=e.touches?e.touches[0]:e,n=wt(this._element);this._startPoint=new T(t.clientX,t.clientY),this._parentScale=Ot(n),St(document,rn[e.type],this._onMove,this),St(document,nn[e.type],this._onUp,this)}},_onMove:function(e){if(!e._simulated&&this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new T(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)l&&(a=u,l=s);l>r&&(n[a]=1,e(t,n,r,o,a),e(t,n,r,a,i))}(e,r,t,0,n-1);var o,i=[];for(o=0;ot&&(n.push(e[r]),o=r);var a,u,s,l;return ot.max.x&&(n|=2),e.yt.max.y&&(n|=8),n}function fn(e,t,n,r){var o,i=t.x,a=t.y,u=n.x-i,s=n.y-a,l=u*u+s*s;return l>0&&((o=((e.x-i)*u+(e.y-a)*s)/l)>1?(i=n.x,a=n.y):o>0&&(i+=u*o,a+=s*o)),u=e.x-i,s=e.y-a,r?u*u+s*s:new T(i,a)}function pn(e){return!m(e[0])||"object"!=typeof e[0][0]&&void 0!==e[0][0]}function dn(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),pn(e)}var hn={simplify:an,pointToSegmentDistance:un,closestPointOnSegment:function(e,t,n){return fn(e,t,n)},clipSegment:sn,_getEdgeIntersection:ln,_getBitCode:cn,_sqClosestPointOnSegment:fn,isFlat:pn,_flat:dn};function yn(e,t,n){var r,o,i,a,u,s,l,c,f,p=[1,4,2,8];for(o=0,l=e.length;o1e-7;s++)t=i*Math.sin(u),t=Math.pow((1-t)/(1+t),i/2),u+=l=Math.PI/2-2*Math.atan(a*t)-u;return new F(u*n,e.x*n/r)}},gn={LonLat:bn,Mercator:vn,SphericalMercator:V},_n=t({},H,{code:"EPSG:3395",projection:vn,transformation:function(){var e=.5/(Math.PI*vn.R);return U(e,.5,-e,.5)}()}),wn=t({},H,{code:"EPSG:4326",projection:bn,transformation:U(1/180,1,-1/180,.5)}),On=t({},B,{projection:bn,transformation:U(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});B.Earth=H,B.EPSG3395=_n,B.EPSG3857=K,B.EPSG900913=q,B.EPSG4326=wn,B.Simple=On;var kn=x.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[i(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[i(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",(function(){t.off(n,this)}),this)}this.onAdd(t),this.getAttribution&&t.attributionControl&&t.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),t.fire("layeradd",{layer:this})}}});Ut.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=i(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=i(e);return this._layers[t]?(this._loaded&&e.onRemove(this),e.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(e.getAttribution()),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return!!e&&i(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?m(e)?e:[e]:[]).length;tthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()t)return a=(r-t)/n,this._map.layerPointToLatLng([i.x-a*(i.x-o.x),i.y-a*(i.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=Y(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new I,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return pn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=pn(e),r=0,o=e.length;r=2&&t[0]instanceof F&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){Mn.prototype._setLatLngs.call(this,e),pn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return pn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new T(t,t);if(e=new M(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var r,o=0,i=this._rings.length;oe.y!=r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(l=!l);return l||Mn.prototype._containsPoint.call(this,e,!0)}}),An=Pn.extend({initialize:function(e,t){p(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,o=m(e)?e:e.features;if(o){for(t=0,n=o.length;t0?o:[t.src]}else{m(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted;for(var a=0;ao?(t.height=o+"px",ut(e,"leaflet-popup-scrolled")):st(e,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();ht(this._container,t.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var e=this._map,t=parseInt(et(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+t,r=this._containerWidth,o=new T(this._containerLeft,-n-this._containerBottom);o._add(yt(this._container));var i=e.layerPointToContainerPoint(o),a=R(this.options.autoPanPadding),u=R(this.options.autoPanPaddingTopLeft||a),s=R(this.options.autoPanPaddingBottomRight||a),l=e.getSize(),c=0,f=0;i.x+r+s.x>l.x&&(c=i.x+r-l.x+s.x),i.x-c-u.x<0&&(c=i.x-u.x),i.y+n+s.y>l.y&&(f=i.y+n-l.y+s.y),i.y-f-u.y<0&&(f=i.y-u.y),(c||f)&&e.fire("autopanstart").panBy([c,f])}},_onCloseButtonClick:function(e){this._close(),At(e)},_getAnchor:function(){return R(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ut.mergeOptions({closePopupOnClick:!0}),Ut.include({openPopup:function(e,t,n){return e instanceof Jn||(e=new Jn(n).setContent(e)),t&&e.setLatLng(t),this.hasLayer(e)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=e,this.addLayer(e))},closePopup:function(e){return e&&e!==this._popup||(e=this._popup,this._popup=null),e&&this.removeLayer(e),this}}),kn.include({bindPopup:function(e,t){return e instanceof Jn?(p(e,t),this._popup=e,e._source=this):(this._popup&&!t||(this._popup=new Jn(t,this)),this._popup.setContent(e)),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(e,t){return this._popup&&this._map&&(t=this._popup._prepareOpen(this,e,t),this._map.openPopup(this._popup,t)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(e){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(e)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){var t=e.layer||e.target;this._popup&&this._map&&(At(e),t instanceof Tn?this.openPopup(e.layer||e.target,e.latlng):this._map.hasLayer(this._popup)&&this._popup._source===t?this.closePopup():this.openPopup(t,e.latlng))},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var Qn=Zn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(e){Zn.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(e){Zn.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var e=Zn.prototype.getEvents.call(this);return we&&!this.options.permanent&&(e.preclick=this._close),e},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=tt("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,r=this._map,o=this._container,i=r.latLngToContainerPoint(r.getCenter()),a=r.layerPointToContainerPoint(e),u=this.options.direction,s=o.offsetWidth,l=o.offsetHeight,c=R(this.options.offset),f=this._getAnchor();"top"===u?(t=s/2,n=l):"bottom"===u?(t=s/2,n=0):"center"===u?(t=s/2,n=l/2):"right"===u?(t=0,n=l/2):"left"===u?(t=s,n=l/2):a.xthis.options.maxZoom||nr&&this._retainParent(o,i,a,r))},_retainChildren:function(e,t,n,r){for(var o=2*e;o<2*e+2;o++)for(var i=2*t;i<2*t+2;i++){var a=new T(o,i);a.z=n+1;var u=this._tileCoordsToKey(a),s=this._tiles[u];s&&s.active?s.retain=!0:(s&&s.loaded&&(s.retain=!0),n+1this.options.maxZoom||void 0!==this.options.minZoom&&o1)this._setView(e,n);else{for(var f=o.min.y;f<=o.max.y;f++)for(var p=o.min.x;p<=o.max.x;p++){var d=new T(p,f);if(d.z=this._tileZoom,this._isValidTile(d)){var h=this._tiles[this._tileCoordsToKey(d)];h?h.current=!0:a.push(d)}}if(a.sort((function(e,t){return e.distanceTo(i)-t.distanceTo(i)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var y=document.createDocumentFragment();for(p=0;pn.max.x)||!t.wrapLat&&(e.yn.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(e);return z(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),o=r.add(n);return[t.unproject(r,e.z),t.unproject(o,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new I(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new T(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(nt(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){ut(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=s,e.onmousemove=s,Q&&this.options.opacity<1&&ft(e,this.options.opacity),te&&!ne&&(e.style.WebkitBackfaceVisibility="hidden")},_addTile:function(e,t){var n=this._getTilePos(e),o=this._tileCoordsToKey(e),i=this.createTile(this._wrapCoords(e),r(this._tileReady,this,e));this._initTile(i),this.createTile.length<2&&S(r(this._tileReady,this,e,null,i)),ht(i,n),this._tiles[o]={el:i,coords:e,current:!0},t.appendChild(i),this.fire("tileloadstart",{tile:i,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var o=this._tileCoordsToKey(e);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(ft(n.el,0),P(this._fadeFrame),this._fadeFrame=S(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(ut(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Q||!this._map._fadeAnimated?S(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new T(this._wrapX?u(e.x,this._wrapX):e.x,this._wrapY?u(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new M(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}}),tr=er.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(e,t){this._url=e,(t=p(this,t)).detectRetina&&Se&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom++):(t.zoomOffset++,t.maxZoom--),t.minZoom=Math.max(0,t.minZoom)),"string"==typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),te||this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return St(n,"load",r(this._tileOnLoad,this,t,n)),St(n,"error",r(this._tileOnError,this,t,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(e),n},getTileUrl:function(e){var n={r:Se?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;this.options.tms&&(n.y=r),n["-y"]=r}return y(this._url,t(n,this.options))},_tileOnLoad:function(e,t){Q?setTimeout(r(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute("src")!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=s,t.onerror=s,t.complete||(t.src=v,nt(t),delete this._tiles[e]))},_removeTile:function(e){var t=this._tiles[e];if(t)return oe||t.el.setAttribute("src",v),er.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==v))return er.prototype._tileReady.call(this,e,t,n)}});function nr(e,t){return new tr(e,t)}var rr=tr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,n){this._url=e;var r=t({},this.defaultWmsParams);for(var o in n)o in this.options||(r[o]=n[o]);var i=(n=p(this,n)).detectRetina&&Se?2:1,a=this.getTileSize();r.width=a.x*i,r.height=a.y*i,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,tr.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=A(n.project(t[0]),n.project(t[1])),o=r.min,i=r.max,a=(this._wmsVersion>=1.3&&this._crs===wn?[o.y,o.x,i.y,i.x]:[o.x,o.y,i.x,i.y]).join(","),u=tr.prototype.getTileUrl.call(this,e);return u+d(this.wmsParams,u,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(e,n){return t(this.wmsParams,e),n||this.redraw(),this}});tr.WMS=rr,nr.wms=function(e,t){return new rr(e,t)};var or=kn.extend({options:{padding:.1,tolerance:0},initialize:function(e){p(this,e),i(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&ut(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 e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=yt(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,t),a=this._map.project(e,t).subtract(i),u=o.multiplyBy(-n).add(r).add(o).subtract(a);ye?dt(this._container,u,n):ht(this._container,u)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new M(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ir=or.extend({getEvents:function(){var e=or.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){or.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");St(e,"mousemove",this._onMouseMove,this),St(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),St(e,"mouseout",this._handleMouseOut,this),this._ctx=e.getContext("2d")},_destroyContainer:function(){P(this._redrawRequest),delete this._ctx,nt(this._container),Et(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){or.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=Se?2:1;ht(t,e.min),t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",Se&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){or.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[i(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,r=t.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete e._order,delete this._layers[i(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"==typeof e.options.dashArray){var t,n,r=e.options.dashArray.split(/[, ]+/),o=[];for(n=0;n')}}catch(e){return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),sr={_initContainer:function(){this._container=tt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(or.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=ur("shape");ut(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=ur("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[i(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;nt(t),e.removeInteractiveTarget(t),delete this._layers[i(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,o=e._container;o.stroked=!!r.stroke,o.filled=!!r.fill,r.stroke?(t||(t=e._stroke=ur("stroke")),o.appendChild(t),t.weight=r.weight+"px",t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=m(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=r.lineCap.replace("butt","flat"),t.joinstyle=r.lineJoin):t&&(o.removeChild(t),e._stroke=null),r.fill?(n||(n=e._fill=ur("fill")),o.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(o.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+r+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){ot(e._container)},_bringToBack:function(e){it(e._container)}},lr=Ce?ur:$,cr=or.extend({getEvents:function(){var e=or.prototype.getEvents.call(this);return e.zoomstart=this._onZoomStart,e},_initContainer:function(){this._container=lr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=lr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){nt(this._container),Et(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){or.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),ht(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=lr("path");e.options.className&&ut(t,e.options.className),e.options.interactive&&ut(t,"leaflet-interactive"),this._updateStyle(e),this._layers[i(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){nt(e._path),e.removeInteractiveTarget(e._path),delete this._layers[i(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,G(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",o=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(e,o)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){ot(e._path)},_bringToBack:function(e){it(e._path)}});function fr(e){return je||Ce?new cr(e):null}Ce&&cr.include(sr),Ut.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&ar(e)||fr(e)}});var pr=Ln.extend({initialize:function(e,t){Ln.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=z(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});cr.create=lr,cr.pointsToPath=G,An.geometryToLayer=In,An.coordsToLatLng=Fn,An.coordsToLatLngs=Yn,An.latLngToCoords=Nn,An.latLngsToCoords=Bn,An.getFeature=Hn,An.asFeature=Vn,Ut.mergeOptions({boxZoom:!0});var dr=Qt.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){St(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Et(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){nt(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(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),He(),bt(),this._startPoint=this._map.mouseEventToContainerPoint(e),St(document,{contextmenu:At,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=tt("div","leaflet-zoom-box",this._container),ut(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new M(this._point,this._startPoint),n=t.getSize();ht(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(nt(this._box),st(this._container,"leaflet-crosshair")),Ve(),vt(),Et(document,{contextmenu:At,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var t=new I(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&this._finish()}});Ut.addInitHook("addHandler","boxZoom",dr),Ut.mergeOptions({doubleClickZoom:!0});var hr=Qt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,o=e.originalEvent.shiftKey?n-r:n+r;"center"===t.options.doubleClickZoom?t.setZoom(o):t.setZoomAround(e.containerPoint,o)}});Ut.addInitHook("addHandler","doubleClickZoom",hr),Ut.mergeOptions({dragging:!0,inertia:!ne,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var yr=Qt.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new on(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}ut(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){st(this._map._container,"leaflet-grab"),st(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 e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=z(this._map.options.maxBounds);this._offsetLimit=A(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.xt.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,o=(r-t+n)%e+t-n,i=(r+t+n)%e-t-n,a=Math.abs(o+n)0?i:-i))-t;this._delta=0,this._startTime=null,a&&("center"===e.options.scrollWheelZoom?e.setZoom(t+a):e.setZoomAround(this._lastMousePos,t+a))}});Ut.addInitHook("addHandler","scrollWheelZoom",br),Ut.mergeOptions({tap:!0,tapTolerance:15});var vr=Qt.extend({addHooks:function(){St(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Et(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(e.touches){if(Lt(e),this._fireClick=!0,e.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var t=e.touches[0],n=t.target;this._startPos=this._newPos=new T(t.clientX,t.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&ut(n,"leaflet-active"),this._holdTimeout=setTimeout(r((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",t))}),this),1e3),this._simulateEvent("mousedown",t),St(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(e){if(clearTimeout(this._holdTimeout),Et(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&e&&e.changedTouches){var t=e.changedTouches[0],n=t.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&st(n,"leaflet-active"),this._simulateEvent("mouseup",t),this._isTapValid()&&this._simulateEvent("click",t)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(e){var t=e.touches[0];this._newPos=new T(t.clientX,t.clientY),this._simulateEvent("mousemove",t)},_simulateEvent:function(e,t){var n=document.createEvent("MouseEvents");n._simulated=!0,t.target._simulatedClick=!0,n.initMouseEvent(e,!0,!0,window,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n)}});!we||_e&&!se||Ut.addInitHook("addHandler","tap",vr),Ut.mergeOptions({touchZoom:we&&!ne,bounceAtZoomLimits:!0});var gr=Qt.extend({addHooks:function(){ut(this._map._container,"leaflet-touch-zoom"),St(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){st(this._map._container,"leaflet-touch-zoom"),Et(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),St(document,"touchmove",this._onTouchMove,this),St(document,"touchend",this._onTouchEnd,this),Lt(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),o=t.mouseEventToContainerPoint(e.touches[1]),i=n.distanceTo(o)/this._startDist;if(this._zoom=t.getScaleZoom(i,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoomt.getMaxZoom()&&i>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{var a=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===a.x&&0===a.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),P(this._animRequest);var u=r(t._move,t,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=S(u,this,!0),Lt(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,P(this._animRequest),Et(document,"touchmove",this._onTouchMove,this),Et(document,"touchend",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ut.addInitHook("addHandler","touchZoom",gr),Ut.BoxZoom=dr,Ut.DoubleClickZoom=hr,Ut.Drag=yr,Ut.Keyboard=mr,Ut.ScrollWheelZoom=br,Ut.Tap=vr,Ut.TouchZoom=gr,e.version="1.7.1",e.Control=Kt,e.control=qt,e.Browser=Te,e.Evented=x,e.Mixin=en,e.Util=E,e.Class=j,e.Handler=Qt,e.extend=t,e.bind=r,e.stamp=i,e.setOptions=p,e.DomEvent=Vt,e.DomUtil=kt,e.PosAnimation=Wt,e.Draggable=on,e.LineUtil=hn,e.PolyUtil=mn,e.Point=T,e.point=R,e.Bounds=M,e.bounds=A,e.Transformation=W,e.transformation=U,e.Projection=gn,e.LatLng=F,e.latLng=Y,e.LatLngBounds=I,e.latLngBounds=z,e.CRS=B,e.GeoJSON=An,e.geoJSON=Un,e.geoJson=Kn,e.Layer=kn,e.LayerGroup=Sn,e.layerGroup=function(e,t){return new Sn(e,t)},e.FeatureGroup=Pn,e.featureGroup=function(e,t){return new Pn(e,t)},e.ImageOverlay=qn,e.imageOverlay=function(e,t,n){return new qn(e,t,n)},e.VideoOverlay=$n,e.videoOverlay=function(e,t,n){return new $n(e,t,n)},e.SVGOverlay=Gn,e.svgOverlay=function(e,t,n){return new Gn(e,t,n)},e.DivOverlay=Zn,e.Popup=Jn,e.popup=function(e,t){return new Jn(e,t)},e.Tooltip=Qn,e.tooltip=function(e,t){return new Qn(e,t)},e.Icon=En,e.icon=function(e){return new En(e)},e.DivIcon=Xn,e.divIcon=function(e){return new Xn(e)},e.Marker=xn,e.marker=function(e,t){return new xn(e,t)},e.TileLayer=tr,e.tileLayer=nr,e.GridLayer=er,e.gridLayer=function(e){return new er(e)},e.SVG=cr,e.svg=fr,e.Renderer=or,e.Canvas=ir,e.canvas=ar,e.Path=Tn,e.CircleMarker=Dn,e.circleMarker=function(e,t){return new Dn(e,t)},e.Circle=Rn,e.circle=function(e,t,n){return new Rn(e,t,n)},e.Polyline=Mn,e.polyline=function(e,t){return new Mn(e,t)},e.Polygon=Ln,e.polygon=function(e,t){return new Ln(e,t)},e.Rectangle=pr,e.rectangle=function(e,t){return new pr(e,t)},e.Map=Ut,e.map=function(e,t){return new Ut(e,t)};var _r=window.L;e.noConflict=function(){return window.L=_r,this},window.L=e}(t)},function(e,t,n){e.exports={navigation:"navigation--1TPKGVcdtJ",header:"header--1yYASq55gP","header-content":"header-content--3q2ACaykun",headerContent:"header-content--3q2ACaykun","header-icon":"header-icon--3slb78kEn1",headerIcon:"header-icon--3slb78kEn1","header-title":"header-title--3llLneBogU",headerTitle:"header-title--3llLneBogU",user:"user--1yh8_EoOW4","user-content":"user-content--1HWDvaZ5qI",userContent:"user-content--1HWDvaZ5qI","no-user-image":"no-user-image--2r0uxVSaEY",noUserImage:"no-user-image--2r0uxVSaEY","user-profile":"user-profile--3h8wK9aFMr",userProfile:"user-profile--3h8wK9aFMr",username:"username--1iD-BWgeXO",logout:"logout--3rYtUBtY-s",items:"items--23JrT1L7Qn",footer:"footer--3d3KVHirl9",pin:"pin--1EfeTj0EjG","pin-active":"pin-active--2xYrKut_aI",pinActive:"pin-active--2xYrKut_aI","pin-icon":"pin-icon--2Bs7SKVMJD",pinIcon:"pin-icon--2Bs7SKVMJD",versions:"versions--1zEVIvOm77"}},function(e,t,n){e.exports={input:"input--YrRPhYPmPT",left:"left--3McDXiCrys",center:"center--JXk60IDjWJ",right:"right--pX9XMNaOG9",collapsed:"collapsed--3cKiJ1rgll","has-append-icon":"has-append-icon--pQms0sSnCj",hasAppendIcon:"has-append-icon--pQms0sSnCj",dark:"dark--tc2vktcDJ7",error:"error--1YjDkE4VYd",disabled:"disabled--1cFjjKATa0","prepended-container":"prepended-container--1HLUlo-uAQ",prependedContainer:"prepended-container--1HLUlo-uAQ",icon:"icon--ytM2BXHUpA",headline:"headline--2ofmFMh3Td","append-container":"append-container--260F-W2kJw",appendContainer:"append-container--260F-W2kJw","icon-clickable":"icon-clickable--2i8CXxR-rS",iconClickable:"icon-clickable--2i8CXxR-rS"}},function(e,t,n){e.exports={"media-card":"media-card--3zwVt4x9IY",mediaCard:"media-card--3zwVt4x9IY",checkbox:"checkbox--3fO94jPv5b",selected:"selected--2I8c2zZDkN",header:"header--1GmsmRN8kP","header-click-area":"header-click-area--2YgVRnlEME",headerClickArea:"header-click-area--2YgVRnlEME",description:"description--KIscyejKfD","no-download-list":"no-download-list--Dd02_LyMg8",noDownloadList:"no-download-list--Dd02_LyMg8","download-button":"download-button--29bmE_WcBM",downloadButton:"download-button--29bmE_WcBM",active:"active--3MvsR-oqxD","ghost-indicator":"ghost-indicator--1_EW3uSSK6",ghostIndicator:"ghost-indicator--1_EW3uSSK6",title:"title--2BoVb9Cwl9",meta:"meta--Lq76ippoF_","title-text":"title-text--1DQCap-AbL",titleText:"title-text--1DQCap-AbL",media:"media--1-OiFQVLjc",cover:"cover--3_DtNQ3fhJ","show-cover":"show-cover--3T0YdhAWC5",showCover:"show-cover--3T0YdhAWC5","media-icon":"media-icon--3lo3oU5U41",mediaIcon:"media-icon--3lo3oU5U41"}},function(e,t,n){e.exports={"edit-form":"edit-form--nxK2xbxTj_",editForm:"edit-form--nxK2xbxTj_",form:"form--1u86V3nB4Y","media-column":"media-column--1rlxVEqxfN",mediaColumn:"media-column--1rlxVEqxfN","media-button":"media-button--242y4MFzfr",mediaButton:"media-button--242y4MFzfr","media-button-edit-icon":"media-button-edit-icon--22_pNpdNWh",mediaButtonEditIcon:"media-button-edit-icon--22_pNpdNWh","media-button-icon":"media-button-icon--2jrmYJLxGn",mediaButtonIcon:"media-button-icon--2jrmYJLxGn","title-input":"title-input--1dN4wONatr",titleInput:"title-input--1dN4wONatr","description-text-area":"description-text-area--NcKuq5NJ3G",descriptionTextArea:"description-text-area--NcKuq5NJ3G",buttons:"buttons--1mapRd_g0a",item:"item--2Ik0bJ0TWt",media:"media--3hQPdb-uXy",title:"title--2x9BbBTKTw",content:"content--3874kh7Wj0",description:"description--1KwBL0sb0j",type:"type--174ojyRJQN"}},function(e,t){function n(e,t,n){var r,o,i,a,u;function s(){var l=Date.now()-a;l=0?r=setTimeout(s,t-l):(r=null,n||(u=e.apply(i,o),i=o=null))}null==t&&(t=100);var l=function(){i=this,o=arguments,a=Date.now();var l=n&&!r;return r||(r=setTimeout(s,t)),l&&(u=e.apply(i,o),i=o=null),u};return l.clear=function(){r&&(clearTimeout(r),r=null)},l.flush=function(){r&&(u=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},l}n.debounce=n,e.exports=n},function(e,t,n){e.exports={loader:"loader--2gdHZwemxA",root:"root--1xK2HnF3xf",visible:"visible--2-6zspTYQo","navigation-visible":"navigation-visible--2Y0-ThvmLG",navigationVisible:"navigation-visible--2Y0-ThvmLG",content:"content--2IfnEOTquo","with-pinned-navigation":"with-pinned-navigation--2VG8fUyABf",withPinnedNavigation:"with-pinned-navigation--2VG8fUyABf","with-sidebar":"with-sidebar--1mIP1_Go4G",withSidebar:"with-sidebar--1mIP1_Go4G","view-container":"view-container--3-uqYBnaX8",viewContainer:"view-container--3-uqYBnaX8",main:"main--3FrrdgELy2",sidebar:"sidebar--1h00XLaExU",small:"small--3wna2-Mqiy",medium:"medium--3kUvKyrWan",large:"large--3vpSCgRpSZ",navigation:"navigation--1r_Vo8arYt"}},function(e,t,n){e.exports={item:"item--1jtrJ1DYzL",text:"text--3n3NdvKI4C",active:"active--2idn-n2E2S",disabled:"disabled--1gI6QpUX0i",children:"children--7PRJYI6aBE",button:"button--2Fzrhq4BJX",visible:"visible--38dPT7rEGr",buttons:"buttons--1YMVp7Syw2",selected:"selected--34PSNwf2M_",indicator:"indicator--FffGEQh1l8","order-input":"order-input--nidbwm3RYU",orderInput:"order-input--nidbwm3RYU"}},function(e,t,n){e.exports={"media-container":"media-container--24xVCfsRYi",mediaContainer:"media-container--24xVCfsRYi","upload-indicator":"upload-indicator--1AR-kLZKnw",uploadIndicator:"upload-indicator--1AR-kLZKnw","show-upload-indicator":"show-upload-indicator--1T2VN-fo7m",showUploadIndicator:"show-upload-indicator--1T2VN-fo7m",disabled:"disabled--2DUBSGKHYW",progressbar:"progressbar--1ttu1M8akg","upload-indicator-container":"upload-indicator-container--jnVNyT85Go",uploadIndicatorContainer:"upload-indicator-container--jnVNyT85Go","mime-type-indicator":"mime-type-indicator--21ALKYDVwQ",mimeTypeIndicator:"mime-type-indicator--21ALKYDVwQ","empty-indicator":"empty-indicator--3RlQcJQgHp",emptyIndicator:"empty-indicator--3RlQcJQgHp","upload-icon":"upload-icon--3R_c-DlUGT",uploadIcon:"upload-icon--3R_c-DlUGT","upload-info-text":"upload-info-text--Ijzo9z9dY5",uploadInfoText:"upload-info-text--Ijzo9z9dY5",thumbnail:"thumbnail--2MX4oCKfh5",round:"round--7c0ME6Lf-H"}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){e.exports={item:"item--2LDR_-eyYV",disabled:"disabled--9G8g19bOyu","drag-handle":"drag-handle--PYzq-TCLBm",dragHandle:"drag-handle--PYzq-TCLBm",content:"content--3az5yUIqH-",clickable:"clickable--2utY9F6CqP",buttons:"buttons--1fNv9MnFr9",button:"button--3uyXay-Ezq",sortable:"sortable--3A6g3aviJT",index:"index--30Fe4D6eEr"}},function(e,t,n){e.exports={"single-item-selection":"single-item-selection--2syRAxxZ4m",singleItemSelection:"single-item-selection--2syRAxxZ4m","item-container":"item-container--1oXQM4YWNF",itemContainer:"item-container--1oXQM4YWNF",item:"item--91fU1JyQEP",clickable:"clickable--3DYlhyTdAV",empty:"empty--TMG50GIsw7","has-right-button":"has-right-button--DOZ1gbzWTA",hasRightButton:"has-right-button--DOZ1gbzWTA","remove-button":"remove-button--1Z8ahNPrk2",removeButton:"remove-button--1Z8ahNPrk2",loader:"loader--2frG0NlNR_",error:"error--33JnRZ2HjE",button:"button--1jwcGP42HK",disabled:"disabled--n-9zbzspzQ"}},function(e,t,n){e.exports={light:"light--3tjxVCiYyF",active:"active--3MNZFTtgLH",dark:"dark--2nNsKWO85H",button:"button--Fry28Tt4id",small:"small--eEYBskIrS1","dropdown-icon":"dropdown-icon--3f66DguOW7",dropdownIcon:"dropdown-icon--3f66DguOW7",primary:"primary--2KTH7pCs6s",success:"success--YYaRS6wxPm",icon:"icon--2BbYiI_UQ5",label:"label--36XumMAKrW",loader:"loader--2ZNvbLpbYF"}},function(e,t,n){e.exports={"search-result":"search-result--2QpYBrXe6P",searchResult:"search-result--2QpYBrXe6P","image-container":"image-container--23uWpGHNcx",imageContainer:"image-container--23uWpGHNcx",image:"image--1DYCIzJxSm",icon:"icon--lptN8-BH7B","result-container":"result-container--2XqHymsMQ-",resultContainer:"result-container--2XqHymsMQ-",resource:"resource--Pfe6DWXggj","title-container":"title-container--2gQrqxChGb",titleContainer:"title-container--2gQrqxChGb",title:"title--5708DCeWjs",locale:"locale--kVyvS1-L9W",description:"description--2Vv8-vW3SS"}},function(e,t,n){var r=n(340),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){e.exports={overlay:"overlay--k9H5mFbXyn",sorting:"sorting--ZdXIUoDhfl","column-option":"column-option--jZQUsDRZlT",columnOption:"column-option--jZQUsDRZlT","drag-handle":"drag-handle--10N92JZ3Y-",dragHandle:"drag-handle--10N92JZ3Y-",label:"label--1fD1ji4PAQ",icon:"icon--25swyaK0Z0",dragging:"dragging--29HRxXAtIb","column-option-disabled":"column-option-disabled--3L7Ort4fTy",columnOptionDisabled:"column-option-disabled--3L7Ort4fTy"}},function(e,t,n){e.exports={container:"container--1Af_ukQ1Tq",overlay:"overlay--1i69zMOzmm",small:"small--3LzryW5Wgh",large:"large--1vOJ_O2MxG","is-down":"is-down--1GrBJwFYKD",isDown:"is-down--1GrBJwFYKD",content:"content--uDzbc_yR5N",header:"header--2Xry65vbZk",article:"article--2N0Q6NmJIy",footer:"footer--1tWJvcS8dW",icon:"icon--3x5ECMVMng"}},function(e,t,n){e.exports={block:"block---lmRUaoC4J",expanded:"expanded--1OAMnWu3Nh",children:"children--2vr78c8PWl",header:"header--3Z6dsPKDx6",handle:"handle--DUvm6RDJgb",content:"content--Q--ddExW3x",types:"types--3BMYLuVPAf",type:"type--3zGitGam6V",icons:"icons--3gZEnEY5xT"}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";(function(e){var r=n(16),o=n(392);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a="object"==("undefined"==typeof exports?"undefined":i(exports))&&exports&&!exports.nodeType&&exports,u=a&&"object"==i(e)&&e&&!e.nodeType&&e,s=u&&u.exports===a?r.a.Buffer:void 0,l=(s?s.isBuffer:void 0)||o.a;t.a=l}).call(this,n(159)(e))},function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see @@ -42,12 +42,12 @@ object-assign /** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license - */var o="object"===("undefined"==typeof window?"undefined":r(window))?window:e;if(o.CKEDITOR_VERSION)throw new t.b("ckeditor-duplicated-modules: Some CKEditor 5 modules are duplicated.",null);o.CKEDITOR_VERSION="18.0.0"}).call(this,n(52))},function(e,t,n){e.exports={"matrix-container":"matrix-container--3hg2NChpIl",matrixContainer:"matrix-container--3hg2NChpIl","select-container":"select-container--1btJ2KiILP",selectContainer:"select-container--1btJ2KiILP"}},function(e,t,n){e.exports={item:"item--2MP4_Vp3Oe",active:"active--2cQkrWKevT",title:"title--QVStj55_lI","children-indicator":"children-indicator--1u36bqdpDU",childrenIndicator:"children-indicator--1u36bqdpDU"}},function(e,t,n){e.exports={colSpan:"colSpan--1-dAvrr6Hs","colSpan-1":"colSpan-1--2FbmDHOf05",colSpan1:"colSpan-1--2FbmDHOf05","colSpan-2":"colSpan-2--32mWE8xnNT",colSpan2:"colSpan-2--32mWE8xnNT","colSpan-3":"colSpan-3--YWgZb8jzq2",colSpan3:"colSpan-3--YWgZb8jzq2","colSpan-4":"colSpan-4--3PrZt6EqIQ",colSpan4:"colSpan-4--3PrZt6EqIQ","colSpan-5":"colSpan-5--1rBEJVQGbT",colSpan5:"colSpan-5--1rBEJVQGbT","colSpan-6":"colSpan-6--1dEtnH0fLF",colSpan6:"colSpan-6--1dEtnH0fLF","colSpan-7":"colSpan-7--2HCkJEVswE",colSpan7:"colSpan-7--2HCkJEVswE","colSpan-8":"colSpan-8--34cDQl2pms",colSpan8:"colSpan-8--34cDQl2pms","colSpan-9":"colSpan-9--3wPTGWSNKn",colSpan9:"colSpan-9--3wPTGWSNKn","colSpan-10":"colSpan-10--2EG5Y65M5i",colSpan10:"colSpan-10--2EG5Y65M5i","colSpan-11":"colSpan-11--15lXSff09p",colSpan11:"colSpan-11--15lXSff09p","colSpan-12":"colSpan-12--auvwGOVazL",colSpan12:"colSpan-12--auvwGOVazL","space-before-1":"space-before-1--1esoCSFR-u",spaceBefore1:"space-before-1--1esoCSFR-u","space-before-2":"space-before-2--f1wHMt4Rmd",spaceBefore2:"space-before-2--f1wHMt4Rmd","space-before-3":"space-before-3--3HDe8T3Pje",spaceBefore3:"space-before-3--3HDe8T3Pje","space-before-4":"space-before-4--2RKyHLb2uI",spaceBefore4:"space-before-4--2RKyHLb2uI","space-before-5":"space-before-5--1nxb2II90k",spaceBefore5:"space-before-5--1nxb2II90k","space-before-6":"space-before-6--1K3F-ulqg4",spaceBefore6:"space-before-6--1K3F-ulqg4","space-before-7":"space-before-7--3uja_9LjlA",spaceBefore7:"space-before-7--3uja_9LjlA","space-before-8":"space-before-8--3cWhs0mPIQ",spaceBefore8:"space-before-8--3cWhs0mPIQ","space-before-9":"space-before-9--pzFcGgnpnX",spaceBefore9:"space-before-9--pzFcGgnpnX","space-before-10":"space-before-10--1ho3Bf-DtI",spaceBefore10:"space-before-10--1ho3Bf-DtI","space-before-11":"space-before-11--PwsJFZP62-",spaceBefore11:"space-before-11--PwsJFZP62-","space-before-12":"space-before-12--7njTyjsxdY",spaceBefore12:"space-before-12--7njTyjsxdY","space-after-1":"space-after-1--3iF2QSAogD",spaceAfter1:"space-after-1--3iF2QSAogD","space-after-2":"space-after-2--2jBiGc2Um2",spaceAfter2:"space-after-2--2jBiGc2Um2","space-after-3":"space-after-3--2pLVKlWYlr",spaceAfter3:"space-after-3--2pLVKlWYlr","space-after-4":"space-after-4--1t1ydT_lzZ",spaceAfter4:"space-after-4--1t1ydT_lzZ","space-after-5":"space-after-5---k4J3z7IEv",spaceAfter5:"space-after-5---k4J3z7IEv","space-after-6":"space-after-6--3DsSEzIWpw",spaceAfter6:"space-after-6--3DsSEzIWpw","space-after-7":"space-after-7--1Mv6x0Wauv",spaceAfter7:"space-after-7--1Mv6x0Wauv","space-after-8":"space-after-8--3PQwlQSKI0",spaceAfter8:"space-after-8--3PQwlQSKI0","space-after-9":"space-after-9--1g84Il2fiV",spaceAfter9:"space-after-9--1g84Il2fiV","space-after-10":"space-after-10--3XDTUmY_Ry",spaceAfter10:"space-after-10--3XDTUmY_Ry","space-after-11":"space-after-11--176XwWyHT6",spaceAfter11:"space-after-11--176XwWyHT6","space-after-12":"space-after-12--gbs-Ox5bvw",spaceAfter12:"space-after-12--gbs-Ox5bvw"}},function(e,t,n){e.exports={item:"item--15AVvF2Hj1",active:"active--3RZWM1Ykmv",icon:"icon--2p2c6gIM2J"}},function(e,t,n){e.exports={label:"label--22nuJrNdMC",disabled:"disabled--2Cej_PnzDf",switch:"switch--52fMu6kGAZ"}},function(e,t,n){e.exports={"cropped-text":"cropped-text--kjpmxHAsTL",croppedText:"cropped-text--kjpmxHAsTL",whole:"whole--3GXEeu7Wnq",front:"front--3wwBW91aMg",back:"back--2lOqwyu_8t"}},function(e,t,n){e.exports={"list-container":"list-container--1KaAm9Rrfq",listContainer:"list-container--1KaAm9Rrfq",list:"list--24qxBVT_IF",disabled:"disabled--1ABE7xWUvc",toolbar:"toolbar--1g1N15_Ogd"}},function(e,t,n){e.exports={label:"label--1-9olWEKhI",date:"date--2DBHcxzN6d"}},function(e,t,n){e.exports={button:"button--fW1pgmzp5J",left:"left--1FyHE23CXB",right:"right--1Djkp-LNoT","has-options":"has-options--1pqdYyAPAT",hasOptions:"has-options--1pqdYyAPAT",icon:"icon--zG2a3XJIeF"}},function(e,t,n){e.exports={"item-container":"item-container--3C3imm6Xvq",itemContainer:"item-container--3C3imm6Xvq","publish-indicator":"publish-indicator--18DaBFmV_K",publishIndicator:"publish-indicator--18DaBFmV_K","column-list":"column-list--ck4HNfUphH",columnList:"column-list--ck4HNfUphH","item-column":"item-column--21ye5lZzr_",itemColumn:"item-column--21ye5lZzr_"}},function(e,t,n){var r;!function(o){var i=/^\s+/,a=/\s+$/,u=0,s=o.round,l=o.min,c=o.max,f=o.random;function p(e,t){if(t=t||{},(e=e||"")instanceof p)return e;if(!(this instanceof p))return new p(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,u=null,s=null,f=!1,p=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(a,"").toLowerCase();var t,n=!1;if(T[e])e=T[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=V.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=V.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=V.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=V.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=V.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=V.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=V.hex8.exec(e))return{r:A(t[1]),g:A(t[2]),b:A(t[3]),a:Y(t[4]),format:n?"name":"hex8"};if(t=V.hex6.exec(e))return{r:A(t[1]),g:A(t[2]),b:A(t[3]),format:n?"name":"hex"};if(t=V.hex4.exec(e))return{r:A(t[1]+""+t[1]),g:A(t[2]+""+t[2]),b:A(t[3]+""+t[3]),a:Y(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=V.hex3.exec(e))return{r:A(t[1]+""+t[1]),g:A(t[2]+""+t[2]),b:A(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(d=e.r,h=e.g,y=e.b,t={r:255*M(d,255),g:255*M(h,255),b:255*M(y,255)},f=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=z(e.s),u=z(e.v),t=function(e,t,n){e=6*M(e,360),t=M(t,100),n=M(n,100);var r=o.floor(e),i=e-r,a=n*(1-t),u=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6;return{r:255*[n,u,a,a,s,n][l],g:255*[s,n,n,u,a,a][l],b:255*[a,a,s,n,n,u][l]}}(e.h,r,u),f=!0,p="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=z(e.s),s=z(e.l),t=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=M(e,360),t=M(t,100),n=M(n,100),0===t)r=o=i=n;else{var u=n<.5?n*(1+t):n+t-n*t,s=2*n-u;r=a(s,u,e+1/3),o=a(s,u,e),i=a(s,u,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,s),f=!0,p="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,h,y;return n=R(n),{ok:f,format:e.format||p,r:l(255,c(t.r,0)),g:l(255,c(t.g,0)),b:l(255,c(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=u++}function d(e,t,n){e=M(e,255),t=M(t,255),n=M(n,255);var r,o,i=c(e,t,n),a=l(e,t,n),u=(i+a)/2;if(i==a)r=o=0;else{var s=i-a;switch(o=u>.5?s/(2-i-a):s/(i+a),i){case e:r=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(p(r));return i}function x(e,t){t=t||6;for(var n=p(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],u=1/t;t--;)a.push(p({h:r,s:o,v:i})),i=(i+u)%1;return a}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=R(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return y(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[I(s(e).toString(16)),I(s(t).toString(16)),I(s(n).toString(16)),I(F(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*M(this._r,255))+"%",g:s(100*M(this._g,255))+"%",b:s(100*M(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*M(this._r,255))+"%, "+s(100*M(this._g,255))+"%, "+s(100*M(this._b,255))+"%)":"rgba("+s(100*M(this._r,255))+"%, "+s(100*M(this._g,255))+"%, "+s(100*M(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(D[y(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=p(e);n="#"+m(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return p(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(b,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(j,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},p.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:z(e[r]));e=n}return p(e,t)},p.equals=function(e,t){return!(!e||!t)&&p(e).toRgbString()==p(t).toRgbString()},p.random=function(){return p.fromRatio({r:f(),g:f(),b:f()})},p.mix=function(e,t,n){n=0===n?0:n||50;var r=p(e).toRgb(),o=p(t).toRgb(),i=n/100;return p({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},p.readability=function(e,t){var n=p(e),r=p(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},p.isReadable=function(e,t,n){var r,o,i=p.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},p.mostReadable=function(e,t,n){var r,o,i,a,u=null,s=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var l=0;ls&&(s=r,u=p(t[l]));return p.isReadable(e,u,{level:i,size:a})||!o?u:(n.includeFallbackColors=!1,p.mostReadable(e,["#fff","#000"],n))};var T=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},D=p.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(T);function R(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function M(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return l(1,c(0,e))}function A(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function F(e){return o.round(255*parseFloat(e)).toString(16)}function Y(e){return A(e)/255}var N,B,H,V=(B="[\\s|\\(]+("+(N="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",H="[\\s|\\(]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",{CSS_UNIT:new RegExp(N),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+H),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!V.CSS_UNIT.exec(e)}e.exports?e.exports=p:void 0===(r=function(){return p}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){e.exports={rectangle:"rectangle--3GjMVjMyRU",backdrop:"backdrop--3Geg1_TtUB","resize-handle":"resize-handle--1XhQq5CKsP",resizeHandle:"resize-handle--1XhQq5CKsP","min-size-notification":"min-size-notification--17iqzCRj_e",minSizeNotification:"min-size-notification--17iqzCRj_e"}},function(e,t,n){e.exports={row:"row--11K8_KO8ZG",name:"name--1EFSLXgPWF",items:"items--2TNV5qAIrT","row-button":"row-button--3bSQa-hVIK",rowButton:"row-button--3bSQa-hVIK"}},function(e,t,n){var r;!function(o,i,a){if(o){for(var u,s={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},l={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},c={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},f={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p=1;p<20;++p)s[111+p]="f"+p;for(p=0;p<=9;++p)s[p+96]=p.toString();v.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},v.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},v.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},v.prototype.reset=function(){return this._callbacks={},this._directMap={},this},v.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function e(t,n){return null!==t&&t!==i&&(t===n||e(t.parentNode,n))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},v.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},v.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);u=null},v.init=function(){var e=v(i);for(var t in e)"_"!==t.charAt(0)&&(v[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},v.init(),o.Mousetrap=v,e.exports&&(e.exports=v),void 0===(r=function(){return v}.call(t,n,t,e))||(e.exports=r)}function d(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function h(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return s[e.which]?s[e.which]:l[e.which]?l[e.which]:String.fromCharCode(e.which).toLowerCase()}function y(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function m(e,t,n){return n||(n=function(){if(!u)for(var e in u={},s)e>95&&e<112||s.hasOwnProperty(e)&&(u[s[e]]=e);return u}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function b(e,t){var n,r,o,i=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o1?p(e,u,n,r):(a=b(e,r),t._callbacks[a.key]=t._callbacks[a.key]||[],l(a.key,a.modifiers,{type:a.action},o,e,i),t._callbacks[a.key][o?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:o,level:i,combo:e}))}t._handleKey=function(e,t,n){var r,o=l(e,t,n),i={},f=0,p=!1;for(r=0;r[]:;@\\,."'.length;++t)e['()<>[]:;@\\,."'.codePointAt(t)]=!0;return function(t){return e[t]}}(),i.c0Controls=function(){const e=new Array(256);e.fill(!1);for(let t=0;t<33;++t)e[t]=!0;return function(t){return e[t]}}(),i.c1Controls=function(){const e=new Array(256);e.fill(!1);for(let t=127;t<160;++t)e[t]=!0;return function(t){return e[t]}}(),i.regex={ipV4:/\b(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipV6:/^[a-fA-F\d]{0,4}$/},i.normalizeSupportsNul="\0"==="\0".normalize("NFC"),i.nulNormalize=function(e){return e.split("\0").map(e=>e.normalize("NFC")).join("\0")},i.normalize=function(e){return e.normalize("NFC")},i.normalizeSupportsNul||(i.normalize=function(e){return e.indexOf("\0")>=0?i.nulNormalize(e):e.normalize("NFC")}),i.checkIpV6=function(e){return e.every(e=>i.regex.ipV6.test(e))},i.isIterable=Array.isArray,"undefined"!=typeof Symbol&&(i.isIterable=e=>Array.isArray(e)||!!e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]),i._isSet=e=>e instanceof Set,i._isMap=e=>e instanceof Map,i.isSet=o.types&&o.types.isSet||i._isSet,i.isMap=o.types&&o.types.isMap||i._isMap,i.normalizeTable=function(e){return i.isSet(e)||Array.isArray(e)?e:i.isMap(e)?e.keys():Object.keys(e)},i.canonicalizeAtom=function(e){return r.toASCII(e).toLowerCase()},i.includesMapped=function(e,t,n){for(const r of e)if(n===t(r))return!0;return!1},i.validDomain=function(e,t){const n=i.canonicalizeAtom(e);return t.tldBlacklist?!i.includesMapped(i.normalizeTable(t.tldBlacklist),i.canonicalizeAtom,n):i.includesMapped(i.normalizeTable(t.tldWhitelist),i.canonicalizeAtom,n)},i.hasDomainLiteralThenAtom=function(e){let t=!1;for(let n=0;n{!(e>s)||n.excludeDiagnoses&&n.excludeDiagnoses.has(e)||(s=e)};!(void 0===n.allowUnicode||!!n.allowUnicode)&&/[^\x00-\x7f]/.test(t)&&l(i.diagnoses.undesiredNonAscii);const c={now:i.components.localpart,prev:i.components.localpart,stack:[i.components.localpart]};let f="";const p={local:"",domain:""},d={locals:[""],domains:[""]};let h,y=0,m=0,b=0,v=!1,g=!1;const _=t.length;let w;for(let n=0;n<_;n+=w.length){switch(w=String.fromCodePoint(t.codePointAt(n)),c.now){case i.components.localpart:switch(w){case"(":0===m?l(0===y?i.diagnoses.cfwsComment:i.diagnoses.deprecatedComment):(l(i.diagnoses.cfwsComment),g=!0),c.stack.push(c.now),c.now=i.components.contextComment;break;case".":0===m?l(0===y?i.diagnoses.errDotStart:i.diagnoses.errConsecutiveDots):(g&&l(i.diagnoses.deprecatedLocalPart),g=!1,m=0,++y,p.local+=w,d.locals[y]="");break;case'"':0===m?(l(0===y?i.diagnoses.rfc5321QuotedString:i.diagnoses.deprecatedLocalPart),p.local+=w,d.locals[y]+=w,m+=e.byteLength(w,"utf8"),g=!0,c.stack.push(c.now),c.now=i.components.contextQuotedString):l(i.diagnoses.errExpectingATEXT);break;case"\r":if(_===++n||"\n"!==t[n]){l(i.diagnoses.errCRNoLF);break}case" ":case"\t":0===m?l(0===y?i.diagnoses.cfwsFWS:i.diagnoses.deprecatedFWS):g=!0,c.stack.push(c.now),c.now=i.components.contextFWS,f=w;break;case"@":if(1!==c.stack.length)throw new Error("unexpected item on context stack");0===p.local.length?l(i.diagnoses.errNoLocalPart):0===m?l(i.diagnoses.errDotEnd):e.byteLength(p.local,"utf8")>64?l(i.diagnoses.rfc5322LocalTooLong):c.prev!==i.components.contextComment&&c.prev!==i.components.contextFWS||l(i.diagnoses.deprecatedCFWSNearAt),c.now=i.components.domain,c.stack[0]=i.components.domain,y=0,m=0,g=!1;break;default:if(g)switch(c.prev){case i.components.contextComment:case i.components.contextFWS:l(i.diagnoses.errATEXTAfterCFWS);break;case i.components.contextQuotedString:l(i.diagnoses.errATEXTAfterQS);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+c.prev)}else c.prev=c.now,h=w.codePointAt(0),(i.specials(h)||i.c0Controls(h)||i.c1Controls(h))&&l(i.diagnoses.errExpectingATEXT),p.local+=w,d.locals[y]+=w,m+=e.byteLength(w,"utf8")}break;case i.components.domain:switch(w){case"(":0===m?l(0===y?i.diagnoses.deprecatedCFWSNearAt:i.diagnoses.deprecatedComment):(g=!0,l(i.diagnoses.cfwsComment)),c.stack.push(c.now),c.now=i.components.contextComment;break;case".":const o=r.toASCII(d.domains[y]).length;0===m?l(0===y?i.diagnoses.errDotStart:i.diagnoses.errConsecutiveDots):v?l(i.diagnoses.errDomainHyphenEnd):o>63&&l(i.diagnoses.rfc5322LabelTooLong),g=!1,m=0,++y,d.domains[y]="",p.domain+=w;break;case"[":0===d.domains[y].length?(p.domain.length&&l(i.diagnoses.errDotAfterDomainLiteral),g=!0,m+=e.byteLength(w,"utf8"),c.stack.push(c.now),c.now=i.components.literal,p.domain+=w,d.domains[y]+=w,p.literal=""):l(i.diagnoses.errExpectingATEXT);break;case"\r":if(_===++n||"\n"!==t[n]){l(i.diagnoses.errCRNoLF);break}case" ":case"\t":0===m?l(0===y?i.diagnoses.deprecatedCFWSNearAt:i.diagnoses.deprecatedFWS):(l(i.diagnoses.cfwsFWS),g=!0),c.stack.push(c.now),c.now=i.components.contextFWS,f=w;break;default:if(g)switch(c.prev){case i.components.contextComment:case i.components.contextFWS:l(i.diagnoses.errATEXTAfterCFWS);break;case i.components.literal:l(i.diagnoses.errATEXTAfterDomainLiteral);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+c.prev)}h=w.codePointAt(0),v=!1,i.specials(h)||i.c0Controls(h)||i.c1Controls(h)?l(i.diagnoses.errExpectingATEXT):"-"===w?(0===m&&l(i.diagnoses.errDomainHyphenStart),v=!0):(h<48||h>122&&h<192||h>57&&h<65||h>90&&h<97)&&l(i.diagnoses.rfc5322Domain),p.domain+=w,d.domains[y]+=w,m+=e.byteLength(w,"utf8")}break;case i.components.literal:switch(w){case"]":if(sr?l(i.diagnoses.rfc5322IPv6MaxGroups):o.length===r&&l(i.diagnoses.deprecatedIPv6)):o.length!==r&&l(i.diagnoses.rfc5322IPv6GroupCount),":"===n[0]&&":"!==n[1]?l(i.diagnoses.rfc5322IPv6ColonStart):":"===n[n.length-1]&&":"!==n[n.length-2]?l(i.diagnoses.rfc5322IPv6ColonEnd):i.checkIpV6(o)?l(i.diagnoses.rfc5321AddressLiteral):l(i.diagnoses.rfc5322IPv6BadCharacter)}}else l(i.diagnoses.rfc5322DomainLiteral);p.domain+=w,d.domains[y]+=w,m+=e.byteLength(w,"utf8"),c.prev=c.now,c.now=c.stack.pop();break;case"\\":l(i.diagnoses.rfc5322DomainLiteralOBSDText),c.stack.push(c.now),c.now=i.components.contextQuotedPair;break;case"\r":if(_===++n||"\n"!==t[n]){l(i.diagnoses.errCRNoLF);break}case" ":case"\t":l(i.diagnoses.cfwsFWS),c.stack.push(c.now),c.now=i.components.contextFWS,f=w;break;default:if(h=w.codePointAt(0),127!==h&&i.c1Controls(h)||0===h||"["===w){l(i.diagnoses.errExpectingDTEXT);break}(i.c0Controls(h)||127===h)&&l(i.diagnoses.rfc5322DomainLiteralOBSDText),p.literal+=w,p.domain+=w,d.domains[y]+=w,m+=e.byteLength(w,"utf8")}break;case i.components.contextQuotedString:switch(w){case"\\":c.stack.push(c.now),c.now=i.components.contextQuotedPair;break;case"\r":if(_===++n||"\n"!==t[n]){l(i.diagnoses.errCRNoLF);break}case"\t":p.local+=" ",d.locals[y]+=" ",m+=e.byteLength(w,"utf8"),l(i.diagnoses.cfwsFWS),c.stack.push(c.now),c.now=i.components.contextFWS,f=w;break;case'"':p.local+=w,d.locals[y]+=w,m+=e.byteLength(w,"utf8"),c.prev=c.now,c.now=c.stack.pop();break;default:h=w.codePointAt(0),127!==h&&i.c1Controls(h)||0===h||10===h?l(i.diagnoses.errExpectingQTEXT):(i.c0Controls(h)||127===h)&&l(i.diagnoses.deprecatedQTEXT),p.local+=w,d.locals[y]+=w,m+=e.byteLength(w,"utf8")}break;case i.components.contextQuotedPair:h=w.codePointAt(0),127!==h&&i.c1Controls(h)?l(i.diagnoses.errExpectingQPair):(h<31&&9!==h||127===h)&&l(i.diagnoses.deprecatedQP),c.prev=c.now,c.now=c.stack.pop();const o="\\"+w;switch(c.now){case i.components.contextComment:break;case i.components.contextQuotedString:p.local+=o,d.locals[y]+=o,m+=2;break;case i.components.literal:p.domain+=o,d.domains[y]+=o,m+=2;break;default:throw new Error("quoted pair logic invoked in an invalid context: "+c.now)}break;case i.components.contextComment:switch(w){case"(":c.stack.push(c.now),c.now=i.components.contextComment;break;case")":c.prev=c.now,c.now=c.stack.pop();break;case"\\":c.stack.push(c.now),c.now=i.components.contextQuotedPair;break;case"\r":if(_===++n||"\n"!==t[n]){l(i.diagnoses.errCRNoLF);break}case" ":case"\t":l(i.diagnoses.cfwsFWS),c.stack.push(c.now),c.now=i.components.contextFWS,f=w;break;default:if(h=w.codePointAt(0),0===h||10===h||127!==h&&i.c1Controls(h)){l(i.diagnoses.errExpectingCTEXT);break}(i.c0Controls(h)||127===h)&&l(i.diagnoses.deprecatedCTEXT)}break;case i.components.contextFWS:if("\r"===f){if("\r"===w){l(i.diagnoses.errFWSCRLFx2);break}++b>1?l(i.diagnoses.deprecatedFWS):b=1}switch(w){case"\r":_!==++n&&"\n"===t[n]||l(i.diagnoses.errCRNoLF);break;case" ":case"\t":break;default:"\r"===f&&l(i.diagnoses.errFWSCRLFEnd),b=0,c.prev=c.now,c.now=c.stack.pop(),--n}f=w;break;default:throw new Error("unknown context: "+c.now)}if(s>i.categories.rfc5322)break}if(s255)l(i.diagnoses.rfc5322DomainTooLong);else if(e.byteLength(p.local,"utf8")+t+1>254)l(i.diagnoses.rfc5322TooLong);else if(m>63)l(i.diagnoses.rfc5322LabelTooLong);else if(n.minDomainAtoms&&d.domains.length-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(340),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,u=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u}).call(this,n(82)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(346)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(103),o=n(543),i=n(544),a=n(545),u=n(546),s=n(547);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=u,l.prototype.set=s,e.exports=l},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(55)(n(32),"Map");e.exports=r},function(e,t,n){var r=n(552),o=n(559),i=n(561),a=n(562),u=n(563);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=M(e,360),t=M(t,100),n=M(n,100),0===t)r=o=i=n;else{var u=n<.5?n*(1+t):n+t-n*t,s=2*n-u;r=a(s,u,e+1/3),o=a(s,u,e),i=a(s,u,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,s),f=!0,p="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,h,y;return n=R(n),{ok:f,format:e.format||p,r:l(255,c(t.r,0)),g:l(255,c(t.g,0)),b:l(255,c(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=u++}function d(e,t,n){e=M(e,255),t=M(t,255),n=M(n,255);var r,o,i=c(e,t,n),a=l(e,t,n),u=(i+a)/2;if(i==a)r=o=0;else{var s=i-a;switch(o=u>.5?s/(2-i-a):s/(i+a),i){case e:r=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(p(r));return i}function x(e,t){t=t||6;for(var n=p(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],u=1/t;t--;)a.push(p({h:r,s:o,v:i})),i=(i+u)%1;return a}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=R(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return y(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[I(s(e).toString(16)),I(s(t).toString(16)),I(s(n).toString(16)),I(F(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*M(this._r,255))+"%",g:s(100*M(this._g,255))+"%",b:s(100*M(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*M(this._r,255))+"%, "+s(100*M(this._g,255))+"%, "+s(100*M(this._b,255))+"%)":"rgba("+s(100*M(this._r,255))+"%, "+s(100*M(this._g,255))+"%, "+s(100*M(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(D[y(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=p(e);n="#"+m(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return p(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(b,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(j,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},p.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:z(e[r]));e=n}return p(e,t)},p.equals=function(e,t){return!(!e||!t)&&p(e).toRgbString()==p(t).toRgbString()},p.random=function(){return p.fromRatio({r:f(),g:f(),b:f()})},p.mix=function(e,t,n){n=0===n?0:n||50;var r=p(e).toRgb(),o=p(t).toRgb(),i=n/100;return p({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},p.readability=function(e,t){var n=p(e),r=p(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},p.isReadable=function(e,t,n){var r,o,i=p.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},p.mostReadable=function(e,t,n){var r,o,i,a,u=null,s=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var l=0;ls&&(s=r,u=p(t[l]));return p.isReadable(e,u,{level:i,size:a})||!o?u:(n.includeFallbackColors=!1,p.mostReadable(e,["#fff","#000"],n))};var T=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},D=p.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(T);function R(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function M(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return l(1,c(0,e))}function A(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function F(e){return o.round(255*parseFloat(e)).toString(16)}function Y(e){return A(e)/255}var N,B,H,V=(B="[\\s|\\(]+("+(N="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",H="[\\s|\\(]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",{CSS_UNIT:new RegExp(N),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+H),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!V.CSS_UNIT.exec(e)}e.exports?e.exports=p:void 0===(r=function(){return p}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){e.exports={rectangle:"rectangle--3GjMVjMyRU",backdrop:"backdrop--3Geg1_TtUB","resize-handle":"resize-handle--1XhQq5CKsP",resizeHandle:"resize-handle--1XhQq5CKsP","min-size-notification":"min-size-notification--17iqzCRj_e",minSizeNotification:"min-size-notification--17iqzCRj_e"}},function(e,t,n){e.exports={row:"row--11K8_KO8ZG",name:"name--1EFSLXgPWF",items:"items--2TNV5qAIrT","row-button":"row-button--3bSQa-hVIK",rowButton:"row-button--3bSQa-hVIK"}},function(e,t,n){var r;!function(o,i,a){if(o){for(var u,s={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},l={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},c={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},f={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p=1;p<20;++p)s[111+p]="f"+p;for(p=0;p<=9;++p)s[p+96]=p.toString();v.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},v.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},v.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},v.prototype.reset=function(){return this._callbacks={},this._directMap={},this},v.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function e(t,n){return null!==t&&t!==i&&(t===n||e(t.parentNode,n))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},v.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},v.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);u=null},v.init=function(){var e=v(i);for(var t in e)"_"!==t.charAt(0)&&(v[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},v.init(),o.Mousetrap=v,e.exports&&(e.exports=v),void 0===(r=function(){return v}.call(t,n,t,e))||(e.exports=r)}function d(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function h(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return s[e.which]?s[e.which]:l[e.which]?l[e.which]:String.fromCharCode(e.which).toLowerCase()}function y(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function m(e,t,n){return n||(n=function(){if(!u)for(var e in u={},s)e>95&&e<112||s.hasOwnProperty(e)&&(u[s[e]]=e);return u}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function b(e,t){var n,r,o,i=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o1?p(e,u,n,r):(a=b(e,r),t._callbacks[a.key]=t._callbacks[a.key]||[],l(a.key,a.modifiers,{type:a.action},o,e,i),t._callbacks[a.key][o?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:o,level:i,combo:e}))}t._handleKey=function(e,t,n){var r,o=l(e,t,n),i={},f=0,p=!1;for(r=0;r[]:;@\\,."'.length;++t)e['()<>[]:;@\\,."'.codePointAt(t)]=!0;return function(t){return e[t]}}(),i.c0Controls=function(){const e=new Array(256);e.fill(!1);for(let t=0;t<33;++t)e[t]=!0;return function(t){return e[t]}}(),i.c1Controls=function(){const e=new Array(256);e.fill(!1);for(let t=127;t<160;++t)e[t]=!0;return function(t){return e[t]}}(),i.regex={ipV4:/\b(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipV6:/^[a-fA-F\d]{0,4}$/},i.normalizeSupportsNul="\0"==="\0".normalize("NFC"),i.nulNormalize=function(e){return e.split("\0").map(e=>e.normalize("NFC")).join("\0")},i.normalize=function(e){return e.normalize("NFC")},i.normalizeSupportsNul||(i.normalize=function(e){return e.indexOf("\0")>=0?i.nulNormalize(e):e.normalize("NFC")}),i.checkIpV6=function(e){return e.every(e=>i.regex.ipV6.test(e))},i.isIterable=Array.isArray,"undefined"!=typeof Symbol&&(i.isIterable=e=>Array.isArray(e)||!!e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]),i._isSet=e=>e instanceof Set,i._isMap=e=>e instanceof Map,i.isSet=o.types&&o.types.isSet||i._isSet,i.isMap=o.types&&o.types.isMap||i._isMap,i.normalizeTable=function(e){return i.isSet(e)||Array.isArray(e)?e:i.isMap(e)?e.keys():Object.keys(e)},i.canonicalizeAtom=function(e){return r.toASCII(e).toLowerCase()},i.includesMapped=function(e,t,n){for(const r of e)if(n===t(r))return!0;return!1},i.validDomain=function(e,t){const n=i.canonicalizeAtom(e);return t.tldBlacklist?!i.includesMapped(i.normalizeTable(t.tldBlacklist),i.canonicalizeAtom,n):i.includesMapped(i.normalizeTable(t.tldWhitelist),i.canonicalizeAtom,n)},i.hasDomainLiteralThenAtom=function(e){let t=!1;for(let n=0;n{!(e>s)||n.excludeDiagnoses&&n.excludeDiagnoses.has(e)||(s=e)};!(void 0===n.allowUnicode||!!n.allowUnicode)&&/[^\x00-\x7f]/.test(t)&&l(i.diagnoses.undesiredNonAscii);const c={now:i.components.localpart,prev:i.components.localpart,stack:[i.components.localpart]};let f="";const p={local:"",domain:""},d={locals:[""],domains:[""]};let h,y=0,m=0,b=0,v=!1,g=!1;const _=t.length;let w;for(let n=0;n<_;n+=w.length){switch(w=String.fromCodePoint(t.codePointAt(n)),c.now){case i.components.localpart:switch(w){case"(":0===m?l(0===y?i.diagnoses.cfwsComment:i.diagnoses.deprecatedComment):(l(i.diagnoses.cfwsComment),g=!0),c.stack.push(c.now),c.now=i.components.contextComment;break;case".":0===m?l(0===y?i.diagnoses.errDotStart:i.diagnoses.errConsecutiveDots):(g&&l(i.diagnoses.deprecatedLocalPart),g=!1,m=0,++y,p.local+=w,d.locals[y]="");break;case'"':0===m?(l(0===y?i.diagnoses.rfc5321QuotedString:i.diagnoses.deprecatedLocalPart),p.local+=w,d.locals[y]+=w,m+=e.byteLength(w,"utf8"),g=!0,c.stack.push(c.now),c.now=i.components.contextQuotedString):l(i.diagnoses.errExpectingATEXT);break;case"\r":if(_===++n||"\n"!==t[n]){l(i.diagnoses.errCRNoLF);break}case" ":case"\t":0===m?l(0===y?i.diagnoses.cfwsFWS:i.diagnoses.deprecatedFWS):g=!0,c.stack.push(c.now),c.now=i.components.contextFWS,f=w;break;case"@":if(1!==c.stack.length)throw new Error("unexpected item on context stack");0===p.local.length?l(i.diagnoses.errNoLocalPart):0===m?l(i.diagnoses.errDotEnd):e.byteLength(p.local,"utf8")>64?l(i.diagnoses.rfc5322LocalTooLong):c.prev!==i.components.contextComment&&c.prev!==i.components.contextFWS||l(i.diagnoses.deprecatedCFWSNearAt),c.now=i.components.domain,c.stack[0]=i.components.domain,y=0,m=0,g=!1;break;default:if(g)switch(c.prev){case i.components.contextComment:case i.components.contextFWS:l(i.diagnoses.errATEXTAfterCFWS);break;case i.components.contextQuotedString:l(i.diagnoses.errATEXTAfterQS);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+c.prev)}else c.prev=c.now,h=w.codePointAt(0),(i.specials(h)||i.c0Controls(h)||i.c1Controls(h))&&l(i.diagnoses.errExpectingATEXT),p.local+=w,d.locals[y]+=w,m+=e.byteLength(w,"utf8")}break;case i.components.domain:switch(w){case"(":0===m?l(0===y?i.diagnoses.deprecatedCFWSNearAt:i.diagnoses.deprecatedComment):(g=!0,l(i.diagnoses.cfwsComment)),c.stack.push(c.now),c.now=i.components.contextComment;break;case".":const o=r.toASCII(d.domains[y]).length;0===m?l(0===y?i.diagnoses.errDotStart:i.diagnoses.errConsecutiveDots):v?l(i.diagnoses.errDomainHyphenEnd):o>63&&l(i.diagnoses.rfc5322LabelTooLong),g=!1,m=0,++y,d.domains[y]="",p.domain+=w;break;case"[":0===d.domains[y].length?(p.domain.length&&l(i.diagnoses.errDotAfterDomainLiteral),g=!0,m+=e.byteLength(w,"utf8"),c.stack.push(c.now),c.now=i.components.literal,p.domain+=w,d.domains[y]+=w,p.literal=""):l(i.diagnoses.errExpectingATEXT);break;case"\r":if(_===++n||"\n"!==t[n]){l(i.diagnoses.errCRNoLF);break}case" ":case"\t":0===m?l(0===y?i.diagnoses.deprecatedCFWSNearAt:i.diagnoses.deprecatedFWS):(l(i.diagnoses.cfwsFWS),g=!0),c.stack.push(c.now),c.now=i.components.contextFWS,f=w;break;default:if(g)switch(c.prev){case i.components.contextComment:case i.components.contextFWS:l(i.diagnoses.errATEXTAfterCFWS);break;case i.components.literal:l(i.diagnoses.errATEXTAfterDomainLiteral);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+c.prev)}h=w.codePointAt(0),v=!1,i.specials(h)||i.c0Controls(h)||i.c1Controls(h)?l(i.diagnoses.errExpectingATEXT):"-"===w?(0===m&&l(i.diagnoses.errDomainHyphenStart),v=!0):(h<48||h>122&&h<192||h>57&&h<65||h>90&&h<97)&&l(i.diagnoses.rfc5322Domain),p.domain+=w,d.domains[y]+=w,m+=e.byteLength(w,"utf8")}break;case i.components.literal:switch(w){case"]":if(sr?l(i.diagnoses.rfc5322IPv6MaxGroups):o.length===r&&l(i.diagnoses.deprecatedIPv6)):o.length!==r&&l(i.diagnoses.rfc5322IPv6GroupCount),":"===n[0]&&":"!==n[1]?l(i.diagnoses.rfc5322IPv6ColonStart):":"===n[n.length-1]&&":"!==n[n.length-2]?l(i.diagnoses.rfc5322IPv6ColonEnd):i.checkIpV6(o)?l(i.diagnoses.rfc5321AddressLiteral):l(i.diagnoses.rfc5322IPv6BadCharacter)}}else l(i.diagnoses.rfc5322DomainLiteral);p.domain+=w,d.domains[y]+=w,m+=e.byteLength(w,"utf8"),c.prev=c.now,c.now=c.stack.pop();break;case"\\":l(i.diagnoses.rfc5322DomainLiteralOBSDText),c.stack.push(c.now),c.now=i.components.contextQuotedPair;break;case"\r":if(_===++n||"\n"!==t[n]){l(i.diagnoses.errCRNoLF);break}case" ":case"\t":l(i.diagnoses.cfwsFWS),c.stack.push(c.now),c.now=i.components.contextFWS,f=w;break;default:if(h=w.codePointAt(0),127!==h&&i.c1Controls(h)||0===h||"["===w){l(i.diagnoses.errExpectingDTEXT);break}(i.c0Controls(h)||127===h)&&l(i.diagnoses.rfc5322DomainLiteralOBSDText),p.literal+=w,p.domain+=w,d.domains[y]+=w,m+=e.byteLength(w,"utf8")}break;case i.components.contextQuotedString:switch(w){case"\\":c.stack.push(c.now),c.now=i.components.contextQuotedPair;break;case"\r":if(_===++n||"\n"!==t[n]){l(i.diagnoses.errCRNoLF);break}case"\t":p.local+=" ",d.locals[y]+=" ",m+=e.byteLength(w,"utf8"),l(i.diagnoses.cfwsFWS),c.stack.push(c.now),c.now=i.components.contextFWS,f=w;break;case'"':p.local+=w,d.locals[y]+=w,m+=e.byteLength(w,"utf8"),c.prev=c.now,c.now=c.stack.pop();break;default:h=w.codePointAt(0),127!==h&&i.c1Controls(h)||0===h||10===h?l(i.diagnoses.errExpectingQTEXT):(i.c0Controls(h)||127===h)&&l(i.diagnoses.deprecatedQTEXT),p.local+=w,d.locals[y]+=w,m+=e.byteLength(w,"utf8")}break;case i.components.contextQuotedPair:h=w.codePointAt(0),127!==h&&i.c1Controls(h)?l(i.diagnoses.errExpectingQPair):(h<31&&9!==h||127===h)&&l(i.diagnoses.deprecatedQP),c.prev=c.now,c.now=c.stack.pop();const o="\\"+w;switch(c.now){case i.components.contextComment:break;case i.components.contextQuotedString:p.local+=o,d.locals[y]+=o,m+=2;break;case i.components.literal:p.domain+=o,d.domains[y]+=o,m+=2;break;default:throw new Error("quoted pair logic invoked in an invalid context: "+c.now)}break;case i.components.contextComment:switch(w){case"(":c.stack.push(c.now),c.now=i.components.contextComment;break;case")":c.prev=c.now,c.now=c.stack.pop();break;case"\\":c.stack.push(c.now),c.now=i.components.contextQuotedPair;break;case"\r":if(_===++n||"\n"!==t[n]){l(i.diagnoses.errCRNoLF);break}case" ":case"\t":l(i.diagnoses.cfwsFWS),c.stack.push(c.now),c.now=i.components.contextFWS,f=w;break;default:if(h=w.codePointAt(0),0===h||10===h||127!==h&&i.c1Controls(h)){l(i.diagnoses.errExpectingCTEXT);break}(i.c0Controls(h)||127===h)&&l(i.diagnoses.deprecatedCTEXT)}break;case i.components.contextFWS:if("\r"===f){if("\r"===w){l(i.diagnoses.errFWSCRLFx2);break}++b>1?l(i.diagnoses.deprecatedFWS):b=1}switch(w){case"\r":_!==++n&&"\n"===t[n]||l(i.diagnoses.errCRNoLF);break;case" ":case"\t":break;default:"\r"===f&&l(i.diagnoses.errFWSCRLFEnd),b=0,c.prev=c.now,c.now=c.stack.pop(),--n}f=w;break;default:throw new Error("unknown context: "+c.now)}if(s>i.categories.rfc5322)break}if(s255)l(i.diagnoses.rfc5322DomainTooLong);else if(e.byteLength(p.local,"utf8")+t+1>254)l(i.diagnoses.rfc5322TooLong);else if(m>63)l(i.diagnoses.rfc5322LabelTooLong);else if(n.minDomainAtoms&&d.domains.length-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(340),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,u=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u}).call(this,n(82)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(346)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(103),o=n(543),i=n(544),a=n(545),u=n(546),s=n(547);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=u,l.prototype.set=s,e.exports=l},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(55)(n(32),"Map");e.exports=r},function(e,t,n){var r=n(552),o=n(559),i=n(561),a=n(562),u=n(563);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t